create-storm-workspace 1.5.13 → 1.5.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +7 -0
- package/bin/index.ts +2 -23
- package/index.js +12 -12
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -4,33 +4,33 @@ var Df=Object.create;var Qt=Object.defineProperty;var Lf=Object.getOwnPropertyDe
|
|
|
4
4
|
`)+r,n=i+1,i=t.indexOf(`
|
|
5
5
|
`,n)}while(i!==-1);return s+=t.substr(n),s};Ya.exports={stringReplaceAll:fd,stringEncaseCRLFWithFirstIndex:dd}});var to=m((uv,eo)=>{"use strict";var pd=/(?:\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,Za=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,md=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,gd=/\\(u(?:[a-f\d]{4}|{[a-f\d]{1,6}})|x[a-f\d]{2}|.)|([^\\])/gi,yd=new Map([["n",`
|
|
6
6
|
`],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function Ja(t){let e=t[0]==="u",r=t[1]==="{";return e&&!r&&t.length===5||t[0]==="x"&&t.length===3?String.fromCharCode(parseInt(t.slice(1),16)):e&&r?String.fromCodePoint(parseInt(t.slice(2,-1),16)):yd.get(t)||t}function bd(t,e){let r=[],i=e.trim().split(/\s*,\s*/g),n;for(let s of i){let a=Number(s);if(!Number.isNaN(a))r.push(a);else if(n=s.match(md))r.push(n[2].replace(gd,(o,l,u)=>l?Ja(l):u));else throw new Error(`Invalid Chalk template style argument: ${s} (in style '${t}')`)}return r}function vd(t){Za.lastIndex=0;let e=[],r;for(;(r=Za.exec(t))!==null;){let i=r[1];if(r[2]){let n=bd(i,r[2]);e.push([i].concat(n))}else e.push([i])}return e}function Qa(t,e){let r={};for(let n of e)for(let s of n.styles)r[s[0]]=n.inverse?null:s.slice(1);let i=t;for(let[n,s]of Object.entries(r))if(Array.isArray(s)){if(!(n in i))throw new Error(`Unknown Chalk style: ${n}`);i=s.length>0?i[n](...s):i[n]}return i}eo.exports=(t,e)=>{let r=[],i=[],n=[];if(e.replace(pd,(s,a,o,l,u,h)=>{if(a)n.push(Ja(a));else if(l){let c=n.join("");n=[],i.push(r.length===0?c:Qa(t,r)(c)),r.push({inverse:o,styles:vd(l)})}else if(u){if(r.length===0)throw new Error("Found extraneous } in Chalk template literal");i.push(Qa(t,r)(n.join(""))),n=[],r.pop()}else n.push(h)}),i.push(n.join("")),r.length>0){let s=`Chalk template literal is missing ${r.length} closing bracket${r.length===1?"":"s"} (\`}\`)`;throw new Error(s)}return i.join("")}});var ur=m((cv,oo)=>{"use strict";var Ct=Wa(),{stdout:qi,stderr:ji}=Ka(),{stringReplaceAll:wd,stringEncaseCRLFWithFirstIndex:_d}=Xa(),{isArray:sr}=Array,io=["ansi","ansi","ansi256","ansi16m"],Ze=Object.create(null),xd=(t,e={})=>{if(e.level&&!(Number.isInteger(e.level)&&e.level>=0&&e.level<=3))throw new Error("The `level` option should be an integer from 0 to 3");let r=qi?qi.level:0;t.level=e.level===void 0?r:e.level},Mi=class{constructor(e){return no(e)}},no=t=>{let e={};return xd(e,t),e.template=(...r)=>ao(e.template,...r),Object.setPrototypeOf(e,ar.prototype),Object.setPrototypeOf(e.template,e),e.template.constructor=()=>{throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.")},e.template.Instance=Mi,e.template};function ar(t){return no(t)}for(let[t,e]of Object.entries(Ct))Ze[t]={get(){let r=or(this,Pi(e.open,e.close,this._styler),this._isEmpty);return Object.defineProperty(this,t,{value:r}),r}};Ze.visible={get(){let t=or(this,this._styler,!0);return Object.defineProperty(this,"visible",{value:t}),t}};var so=["rgb","hex","keyword","hsl","hsv","hwb","ansi","ansi256"];for(let t of so)Ze[t]={get(){let{level:e}=this;return function(...r){let i=Pi(Ct.color[io[e]][t](...r),Ct.color.close,this._styler);return or(this,i,this._isEmpty)}}};for(let t of so){let e="bg"+t[0].toUpperCase()+t.slice(1);Ze[e]={get(){let{level:r}=this;return function(...i){let n=Pi(Ct.bgColor[io[r]][t](...i),Ct.bgColor.close,this._styler);return or(this,n,this._isEmpty)}}}}var Ed=Object.defineProperties(()=>{},{...Ze,level:{enumerable:!0,get(){return this._generator.level},set(t){this._generator.level=t}}}),Pi=(t,e,r)=>{let i,n;return r===void 0?(i=t,n=e):(i=r.openAll+t,n=e+r.closeAll),{open:t,close:e,openAll:i,closeAll:n,parent:r}},or=(t,e,r)=>{let i=(...n)=>sr(n[0])&&sr(n[0].raw)?ro(i,ao(i,...n)):ro(i,n.length===1?""+n[0]:n.join(" "));return Object.setPrototypeOf(i,Ed),i._generator=t,i._styler=e,i._isEmpty=r,i},ro=(t,e)=>{if(t.level<=0||!e)return t._isEmpty?"":e;let r=t._styler;if(r===void 0)return e;let{openAll:i,closeAll:n}=r;if(e.indexOf("\x1B")!==-1)for(;r!==void 0;)e=wd(e,r.close,r.open),r=r.parent;let s=e.indexOf(`
|
|
7
|
-
`);return s!==-1&&(e=_d(e,n,i,s)),i+e+n},Ti,ao=(t,...e)=>{let[r]=e;if(!sr(r)||!sr(r.raw))return e.join(" ");let i=e.slice(1),n=[r.raw[0]];for(let s=1;s<r.length;s++)n.push(String(i[s-1]).replace(/[{}\\]/g,"\\$&"),String(r.raw[s]));return Ti===void 0&&(Ti=to()),Ti(t,n.join(""))};Object.defineProperties(ar.prototype,Ze);var lr=ar();lr.supportsColor=qi;lr.stderr=ar({level:ji?ji.level:0});lr.stderr.supportsColor=ji;oo.exports=lr});var lo=m(cr=>{"use strict";Object.defineProperty(cr,"__esModule",{value:!0});cr.isCI=void 0;function Sd(){return process.env.CI==="true"||process.env.TF_BUILD==="true"||process.env.GITHUB_ACTIONS==="true"||process.env.BUILDKITE==="true"||process.env.CIRCLECI==="true"||process.env.CIRRUS_CI==="true"||process.env.TRAVIS==="true"||!!process.env["bamboo.buildKey"]||!!process.env.CODEBUILD_BUILD_ID||!!process.env.GITLAB_CI||!!process.env.HEROKU_TEST_RUN_ID||!!process.env.BUILD_ID||!!process.env.BUILD_BUILDID||!!process.env.TEAMCITY_VERSION}cr.isCI=Sd});var ue=m(fr=>{"use strict";Object.defineProperty(fr,"__esModule",{value:!0});fr.output=void 0;var M=ur(),hr=require("os"),Od=lo();(0,Od.isCI)()&&(M.level=0);var Ii=class{constructor(){this.X_PADDING=" ",this.colors={gray:M.gray,green:M.green,red:M.red,cyan:M.cyan,white:M.white},this.bold=M.bold,this.underline=M.underline,this.dim=M.dim,this.cliName="NX"}get VERTICAL_SEPARATOR(){let e="";for(let r=0;r<process.stdout.columns-this.X_PADDING.length*2;r++)e+="\u2014";return e}writeToStdOut(e){process.stdout.write(e)}writeOutputTitle({color:e,title:r}){this.writeToStdOut(` ${this.applyCLIPrefix(e,r)}${hr.EOL}`)}writeOptionalOutputBody(e){e&&(this.addNewline(),e.forEach(r=>this.writeToStdOut(` ${r}${hr.EOL}`)))}setCliName(e){this.cliName=e}applyCLIPrefix(e="cyan",r){let i="";return M[e]?i=`${M[e](">")} ${M.reset.inverse.bold[e](` ${this.cliName} `)}`:i=`${M.keyword(e)(">")} ${M.reset.inverse.bold.keyword(e)(` ${this.cliName} `)}`,`${i} ${r}`}addNewline(){this.writeToStdOut(hr.EOL)}addVerticalSeparator(e="gray"){this.addNewline(),this.addVerticalSeparatorWithoutNewLines(e),this.addNewline()}addVerticalSeparatorWithoutNewLines(e="gray"){this.writeToStdOut(`${this.X_PADDING}${M.dim[e](this.VERTICAL_SEPARATOR)}${hr.EOL}`)}error({title:e,bodyLines:r}){this.addNewline(),this.writeOutputTitle({color:"red",title:M.red(e)}),this.writeOptionalOutputBody(r),this.addNewline()}warn({title:e,bodyLines:r}){this.addNewline(),this.writeOutputTitle({color:"yellow",title:M.yellow(e)}),this.writeOptionalOutputBody(r),this.addNewline()}note({title:e,bodyLines:r}){this.addNewline(),this.writeOutputTitle({color:"orange",title:M.keyword("orange")(e)}),this.writeOptionalOutputBody(r),this.addNewline()}success({title:e,bodyLines:r}){this.addNewline(),this.writeOutputTitle({color:"green",title:M.green(e)}),this.writeOptionalOutputBody(r),this.addNewline()}logSingleLine(e){this.addNewline(),this.writeOutputTitle({color:"gray",title:e}),this.addNewline()}log({title:e,bodyLines:r,color:i}){this.addNewline(),this.writeOutputTitle({color:"cyan",title:i?M[i](e):e}),this.writeOptionalOutputBody(r),this.addNewline()}};fr.output=new Ii});var co=m((dv,Ni)=>{"use strict";var uo=(t,e)=>{for(let r of Reflect.ownKeys(e))Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r));return t};Ni.exports=uo;Ni.exports.default=uo});var fo=m((pv,pr)=>{"use strict";var Cd=co(),dr=new WeakMap,ho=(t,e={})=>{if(typeof t!="function")throw new TypeError("Expected a function");let r,i=0,n=t.displayName||t.name||"<anonymous>",s=function(...a){if(dr.set(s,++i),i===1)r=t.apply(this,a),t=null;else if(e.throw===!0)throw new Error(`Function \`${n}\` can only be called once`);return r};return Cd(s,t),dr.set(s,i),s};pr.exports=ho;pr.exports.default=ho;pr.exports.callCount=t=>{if(!dr.has(t))throw new Error(`The given function \`${t.name}\` is not wrapped by the \`onetime\` package`);return dr.get(t)}});var po=m((mv,mr)=>{mr.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"];process.platform!=="win32"&&mr.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT");process.platform==="linux"&&mr.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")});var vo=m((gv,et)=>{var T=global.process,je=function(t){return t&&typeof t=="object"&&typeof t.removeListener=="function"&&typeof t.emit=="function"&&typeof t.reallyExit=="function"&&typeof t.listeners=="function"&&typeof t.kill=="function"&&typeof t.pid=="number"&&typeof t.on=="function"};je(T)?(mo=require("assert"),Qe=po(),go=/^win/i.test(T.platform),kt=require("events"),typeof kt!="function"&&(kt=kt.EventEmitter),T.__signal_exit_emitter__?D=T.__signal_exit_emitter__:(D=T.__signal_exit_emitter__=new kt,D.count=0,D.emitted={}),D.infinite||(D.setMaxListeners(1/0),D.infinite=!0),et.exports=function(t,e){if(!je(global.process))return function(){};mo.equal(typeof t,"function","a callback must be provided for exit handler"),Je===!1&&Bi();var r="exit";e&&e.alwaysLast&&(r="afterexit");var i=function(){D.removeListener(r,t),D.listeners("exit").length===0&&D.listeners("afterexit").length===0&&gr()};return D.on(r,t),i},gr=function(){!Je||!je(global.process)||(Je=!1,Qe.forEach(function(e){try{T.removeListener(e,yr[e])}catch{}}),T.emit=br,T.reallyExit=Di,D.count-=1)},et.exports.unload=gr,Me=function(e,r,i){D.emitted[e]||(D.emitted[e]=!0,D.emit(e,r,i))},yr={},Qe.forEach(function(t){yr[t]=function(){if(je(global.process)){var r=T.listeners(t);r.length===D.count&&(gr(),Me("exit",null,t),Me("afterexit",null,t),go&&t==="SIGHUP"&&(t="SIGINT"),T.kill(T.pid,t))}}}),et.exports.signals=function(){return Qe},Je=!1,Bi=function(){Je||!je(global.process)||(Je=!0,D.count+=1,Qe=Qe.filter(function(e){try{return T.on(e,yr[e]),!0}catch{return!1}}),T.emit=bo,T.reallyExit=yo)},et.exports.load=Bi,Di=T.reallyExit,yo=function(e){je(global.process)&&(T.exitCode=e||0,Me("exit",T.exitCode,null),Me("afterexit",T.exitCode,null),Di.call(T,T.exitCode))},br=T.emit,bo=function(e,r){if(e==="exit"&&je(global.process)){r!==void 0&&(T.exitCode=r);var i=br.apply(this,arguments);return Me("exit",T.exitCode,null),Me("afterexit",T.exitCode,null),i}else return br.apply(this,arguments)}):et.exports=function(){return function(){}};var mo,Qe,go,kt,D,gr,Me,yr,Je,Bi,Di,yo,br,bo});var _o=m((yv,wo)=>{"use strict";var kd=fo(),Rd=vo();wo.exports=kd(()=>{Rd(()=>{process.stderr.write("\x1B[?25h")},{alwaysLast:!0})})});var xo=m(tt=>{"use strict";var Ad=_o(),vr=!1;tt.show=(t=process.stderr)=>{t.isTTY&&(vr=!1,t.write("\x1B[?25h"))};tt.hide=(t=process.stderr)=>{t.isTTY&&(Ad(),vr=!0,t.write("\x1B[?25l"))};tt.toggle=(t,e)=>{t!==void 0&&(vr=t),vr?tt.show(e):tt.hide(e)}});var Eo=m((vv,Td)=>{Td.exports={dots:{interval:80,frames:["\u280B","\u2819","\u2839","\u2838","\u283C","\u2834","\u2826","\u2827","\u2807","\u280F"]},dots2:{interval:80,frames:["\u28FE","\u28FD","\u28FB","\u28BF","\u287F","\u28DF","\u28EF","\u28F7"]},dots3:{interval:80,frames:["\u280B","\u2819","\u281A","\u281E","\u2816","\u2826","\u2834","\u2832","\u2833","\u2813"]},dots4:{interval:80,frames:["\u2804","\u2806","\u2807","\u280B","\u2819","\u2838","\u2830","\u2820","\u2830","\u2838","\u2819","\u280B","\u2807","\u2806"]},dots5:{interval:80,frames:["\u280B","\u2819","\u281A","\u2812","\u2802","\u2802","\u2812","\u2832","\u2834","\u2826","\u2816","\u2812","\u2810","\u2810","\u2812","\u2813","\u280B"]},dots6:{interval:80,frames:["\u2801","\u2809","\u2819","\u281A","\u2812","\u2802","\u2802","\u2812","\u2832","\u2834","\u2824","\u2804","\u2804","\u2824","\u2834","\u2832","\u2812","\u2802","\u2802","\u2812","\u281A","\u2819","\u2809","\u2801"]},dots7:{interval:80,frames:["\u2808","\u2809","\u280B","\u2813","\u2812","\u2810","\u2810","\u2812","\u2816","\u2826","\u2824","\u2820","\u2820","\u2824","\u2826","\u2816","\u2812","\u2810","\u2810","\u2812","\u2813","\u280B","\u2809","\u2808"]},dots8:{interval:80,frames:["\u2801","\u2801","\u2809","\u2819","\u281A","\u2812","\u2802","\u2802","\u2812","\u2832","\u2834","\u2824","\u2804","\u2804","\u2824","\u2820","\u2820","\u2824","\u2826","\u2816","\u2812","\u2810","\u2810","\u2812","\u2813","\u280B","\u2809","\u2808","\u2808"]},dots9:{interval:80,frames:["\u28B9","\u28BA","\u28BC","\u28F8","\u28C7","\u2867","\u2857","\u284F"]},dots10:{interval:80,frames:["\u2884","\u2882","\u2881","\u2841","\u2848","\u2850","\u2860"]},dots11:{interval:100,frames:["\u2801","\u2802","\u2804","\u2840","\u2880","\u2820","\u2810","\u2808"]},dots12:{interval:80,frames:["\u2880\u2800","\u2840\u2800","\u2804\u2800","\u2882\u2800","\u2842\u2800","\u2805\u2800","\u2883\u2800","\u2843\u2800","\u280D\u2800","\u288B\u2800","\u284B\u2800","\u280D\u2801","\u288B\u2801","\u284B\u2801","\u280D\u2809","\u280B\u2809","\u280B\u2809","\u2809\u2819","\u2809\u2819","\u2809\u2829","\u2808\u2899","\u2808\u2859","\u2888\u2829","\u2840\u2899","\u2804\u2859","\u2882\u2829","\u2842\u2898","\u2805\u2858","\u2883\u2828","\u2843\u2890","\u280D\u2850","\u288B\u2820","\u284B\u2880","\u280D\u2841","\u288B\u2801","\u284B\u2801","\u280D\u2809","\u280B\u2809","\u280B\u2809","\u2809\u2819","\u2809\u2819","\u2809\u2829","\u2808\u2899","\u2808\u2859","\u2808\u2829","\u2800\u2899","\u2800\u2859","\u2800\u2829","\u2800\u2898","\u2800\u2858","\u2800\u2828","\u2800\u2890","\u2800\u2850","\u2800\u2820","\u2800\u2880","\u2800\u2840"]},dots13:{interval:80,frames:["\u28FC","\u28F9","\u28BB","\u283F","\u285F","\u28CF","\u28E7","\u28F6"]},dots8Bit:{interval:80,frames:["\u2800","\u2801","\u2802","\u2803","\u2804","\u2805","\u2806","\u2807","\u2840","\u2841","\u2842","\u2843","\u2844","\u2845","\u2846","\u2847","\u2808","\u2809","\u280A","\u280B","\u280C","\u280D","\u280E","\u280F","\u2848","\u2849","\u284A","\u284B","\u284C","\u284D","\u284E","\u284F","\u2810","\u2811","\u2812","\u2813","\u2814","\u2815","\u2816","\u2817","\u2850","\u2851","\u2852","\u2853","\u2854","\u2855","\u2856","\u2857","\u2818","\u2819","\u281A","\u281B","\u281C","\u281D","\u281E","\u281F","\u2858","\u2859","\u285A","\u285B","\u285C","\u285D","\u285E","\u285F","\u2820","\u2821","\u2822","\u2823","\u2824","\u2825","\u2826","\u2827","\u2860","\u2861","\u2862","\u2863","\u2864","\u2865","\u2866","\u2867","\u2828","\u2829","\u282A","\u282B","\u282C","\u282D","\u282E","\u282F","\u2868","\u2869","\u286A","\u286B","\u286C","\u286D","\u286E","\u286F","\u2830","\u2831","\u2832","\u2833","\u2834","\u2835","\u2836","\u2837","\u2870","\u2871","\u2872","\u2873","\u2874","\u2875","\u2876","\u2877","\u2838","\u2839","\u283A","\u283B","\u283C","\u283D","\u283E","\u283F","\u2878","\u2879","\u287A","\u287B","\u287C","\u287D","\u287E","\u287F","\u2880","\u2881","\u2882","\u2883","\u2884","\u2885","\u2886","\u2887","\u28C0","\u28C1","\u28C2","\u28C3","\u28C4","\u28C5","\u28C6","\u28C7","\u2888","\u2889","\u288A","\u288B","\u288C","\u288D","\u288E","\u288F","\u28C8","\u28C9","\u28CA","\u28CB","\u28CC","\u28CD","\u28CE","\u28CF","\u2890","\u2891","\u2892","\u2893","\u2894","\u2895","\u2896","\u2897","\u28D0","\u28D1","\u28D2","\u28D3","\u28D4","\u28D5","\u28D6","\u28D7","\u2898","\u2899","\u289A","\u289B","\u289C","\u289D","\u289E","\u289F","\u28D8","\u28D9","\u28DA","\u28DB","\u28DC","\u28DD","\u28DE","\u28DF","\u28A0","\u28A1","\u28A2","\u28A3","\u28A4","\u28A5","\u28A6","\u28A7","\u28E0","\u28E1","\u28E2","\u28E3","\u28E4","\u28E5","\u28E6","\u28E7","\u28A8","\u28A9","\u28AA","\u28AB","\u28AC","\u28AD","\u28AE","\u28AF","\u28E8","\u28E9","\u28EA","\u28EB","\u28EC","\u28ED","\u28EE","\u28EF","\u28B0","\u28B1","\u28B2","\u28B3","\u28B4","\u28B5","\u28B6","\u28B7","\u28F0","\u28F1","\u28F2","\u28F3","\u28F4","\u28F5","\u28F6","\u28F7","\u28B8","\u28B9","\u28BA","\u28BB","\u28BC","\u28BD","\u28BE","\u28BF","\u28F8","\u28F9","\u28FA","\u28FB","\u28FC","\u28FD","\u28FE","\u28FF"]},sand:{interval:80,frames:["\u2801","\u2802","\u2804","\u2840","\u2848","\u2850","\u2860","\u28C0","\u28C1","\u28C2","\u28C4","\u28CC","\u28D4","\u28E4","\u28E5","\u28E6","\u28EE","\u28F6","\u28F7","\u28FF","\u287F","\u283F","\u289F","\u281F","\u285B","\u281B","\u282B","\u288B","\u280B","\u280D","\u2849","\u2809","\u2811","\u2821","\u2881"]},line:{interval:130,frames:["-","\\","|","/"]},line2:{interval:100,frames:["\u2802","-","\u2013","\u2014","\u2013","-"]},pipe:{interval:100,frames:["\u2524","\u2518","\u2534","\u2514","\u251C","\u250C","\u252C","\u2510"]},simpleDots:{interval:400,frames:[". ",".. ","..."," "]},simpleDotsScrolling:{interval:200,frames:[". ",".. ","..."," .."," ."," "]},star:{interval:70,frames:["\u2736","\u2738","\u2739","\u273A","\u2739","\u2737"]},star2:{interval:80,frames:["+","x","*"]},flip:{interval:70,frames:["_","_","_","-","`","`","'","\xB4","-","_","_","_"]},hamburger:{interval:100,frames:["\u2631","\u2632","\u2634"]},growVertical:{interval:120,frames:["\u2581","\u2583","\u2584","\u2585","\u2586","\u2587","\u2586","\u2585","\u2584","\u2583"]},growHorizontal:{interval:120,frames:["\u258F","\u258E","\u258D","\u258C","\u258B","\u258A","\u2589","\u258A","\u258B","\u258C","\u258D","\u258E"]},balloon:{interval:140,frames:[" ",".","o","O","@","*"," "]},balloon2:{interval:120,frames:[".","o","O","\xB0","O","o","."]},noise:{interval:100,frames:["\u2593","\u2592","\u2591"]},bounce:{interval:120,frames:["\u2801","\u2802","\u2804","\u2802"]},boxBounce:{interval:120,frames:["\u2596","\u2598","\u259D","\u2597"]},boxBounce2:{interval:100,frames:["\u258C","\u2580","\u2590","\u2584"]},triangle:{interval:50,frames:["\u25E2","\u25E3","\u25E4","\u25E5"]},binary:{interval:80,frames:["010010","001100","100101","111010","111101","010111","101011","111000","110011","110101"]},arc:{interval:100,frames:["\u25DC","\u25E0","\u25DD","\u25DE","\u25E1","\u25DF"]},circle:{interval:120,frames:["\u25E1","\u2299","\u25E0"]},squareCorners:{interval:180,frames:["\u25F0","\u25F3","\u25F2","\u25F1"]},circleQuarters:{interval:120,frames:["\u25F4","\u25F7","\u25F6","\u25F5"]},circleHalves:{interval:50,frames:["\u25D0","\u25D3","\u25D1","\u25D2"]},squish:{interval:100,frames:["\u256B","\u256A"]},toggle:{interval:250,frames:["\u22B6","\u22B7"]},toggle2:{interval:80,frames:["\u25AB","\u25AA"]},toggle3:{interval:120,frames:["\u25A1","\u25A0"]},toggle4:{interval:100,frames:["\u25A0","\u25A1","\u25AA","\u25AB"]},toggle5:{interval:100,frames:["\u25AE","\u25AF"]},toggle6:{interval:300,frames:["\u101D","\u1040"]},toggle7:{interval:80,frames:["\u29BE","\u29BF"]},toggle8:{interval:100,frames:["\u25CD","\u25CC"]},toggle9:{interval:100,frames:["\u25C9","\u25CE"]},toggle10:{interval:100,frames:["\u3282","\u3280","\u3281"]},toggle11:{interval:50,frames:["\u29C7","\u29C6"]},toggle12:{interval:120,frames:["\u2617","\u2616"]},toggle13:{interval:80,frames:["=","*","-"]},arrow:{interval:100,frames:["\u2190","\u2196","\u2191","\u2197","\u2192","\u2198","\u2193","\u2199"]},arrow2:{interval:80,frames:["\u2B06\uFE0F ","\u2197\uFE0F ","\u27A1\uFE0F ","\u2198\uFE0F ","\u2B07\uFE0F ","\u2199\uFE0F ","\u2B05\uFE0F ","\u2196\uFE0F "]},arrow3:{interval:120,frames:["\u25B9\u25B9\u25B9\u25B9\u25B9","\u25B8\u25B9\u25B9\u25B9\u25B9","\u25B9\u25B8\u25B9\u25B9\u25B9","\u25B9\u25B9\u25B8\u25B9\u25B9","\u25B9\u25B9\u25B9\u25B8\u25B9","\u25B9\u25B9\u25B9\u25B9\u25B8"]},bouncingBar:{interval:80,frames:["[ ]","[= ]","[== ]","[=== ]","[====]","[ ===]","[ ==]","[ =]","[ ]","[ =]","[ ==]","[ ===]","[====]","[=== ]","[== ]","[= ]"]},bouncingBall:{interval:80,frames:["( \u25CF )","( \u25CF )","( \u25CF )","( \u25CF )","( \u25CF)","( \u25CF )","( \u25CF )","( \u25CF )","( \u25CF )","(\u25CF )"]},smiley:{interval:200,frames:["\u{1F604} ","\u{1F61D} "]},monkey:{interval:300,frames:["\u{1F648} ","\u{1F648} ","\u{1F649} ","\u{1F64A} "]},hearts:{interval:100,frames:["\u{1F49B} ","\u{1F499} ","\u{1F49C} ","\u{1F49A} ","\u2764\uFE0F "]},clock:{interval:100,frames:["\u{1F55B} ","\u{1F550} ","\u{1F551} ","\u{1F552} ","\u{1F553} ","\u{1F554} ","\u{1F555} ","\u{1F556} ","\u{1F557} ","\u{1F558} ","\u{1F559} ","\u{1F55A} "]},earth:{interval:180,frames:["\u{1F30D} ","\u{1F30E} ","\u{1F30F} "]},material:{interval:17,frames:["\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588","\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581"]},moon:{interval:80,frames:["\u{1F311} ","\u{1F312} ","\u{1F313} ","\u{1F314} ","\u{1F315} ","\u{1F316} ","\u{1F317} ","\u{1F318} "]},runner:{interval:140,frames:["\u{1F6B6} ","\u{1F3C3} "]},pong:{interval:80,frames:["\u2590\u2802 \u258C","\u2590\u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802\u258C","\u2590 \u2820\u258C","\u2590 \u2840\u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590\u2820 \u258C"]},shark:{interval:120,frames:["\u2590|\\____________\u258C","\u2590_|\\___________\u258C","\u2590__|\\__________\u258C","\u2590___|\\_________\u258C","\u2590____|\\________\u258C","\u2590_____|\\_______\u258C","\u2590______|\\______\u258C","\u2590_______|\\_____\u258C","\u2590________|\\____\u258C","\u2590_________|\\___\u258C","\u2590__________|\\__\u258C","\u2590___________|\\_\u258C","\u2590____________|\\\u258C","\u2590____________/|\u258C","\u2590___________/|_\u258C","\u2590__________/|__\u258C","\u2590_________/|___\u258C","\u2590________/|____\u258C","\u2590_______/|_____\u258C","\u2590______/|______\u258C","\u2590_____/|_______\u258C","\u2590____/|________\u258C","\u2590___/|_________\u258C","\u2590__/|__________\u258C","\u2590_/|___________\u258C","\u2590/|____________\u258C"]},dqpb:{interval:100,frames:["d","q","p","b"]},weather:{interval:100,frames:["\u2600\uFE0F ","\u2600\uFE0F ","\u2600\uFE0F ","\u{1F324} ","\u26C5\uFE0F ","\u{1F325} ","\u2601\uFE0F ","\u{1F327} ","\u{1F328} ","\u{1F327} ","\u{1F328} ","\u{1F327} ","\u{1F328} ","\u26C8 ","\u{1F328} ","\u{1F327} ","\u{1F328} ","\u2601\uFE0F ","\u{1F325} ","\u26C5\uFE0F ","\u{1F324} ","\u2600\uFE0F ","\u2600\uFE0F "]},christmas:{interval:400,frames:["\u{1F332}","\u{1F384}"]},grenade:{interval:80,frames:["\u060C ","\u2032 "," \xB4 "," \u203E "," \u2E0C"," \u2E0A"," |"," \u204E"," \u2055"," \u0DF4 "," \u2053"," "," "," "]},point:{interval:125,frames:["\u2219\u2219\u2219","\u25CF\u2219\u2219","\u2219\u25CF\u2219","\u2219\u2219\u25CF","\u2219\u2219\u2219"]},layer:{interval:150,frames:["-","=","\u2261"]},betaWave:{interval:80,frames:["\u03C1\u03B2\u03B2\u03B2\u03B2\u03B2\u03B2","\u03B2\u03C1\u03B2\u03B2\u03B2\u03B2\u03B2","\u03B2\u03B2\u03C1\u03B2\u03B2\u03B2\u03B2","\u03B2\u03B2\u03B2\u03C1\u03B2\u03B2\u03B2","\u03B2\u03B2\u03B2\u03B2\u03C1\u03B2\u03B2","\u03B2\u03B2\u03B2\u03B2\u03B2\u03C1\u03B2","\u03B2\u03B2\u03B2\u03B2\u03B2\u03B2\u03C1"]},fingerDance:{interval:160,frames:["\u{1F918} ","\u{1F91F} ","\u{1F596} ","\u270B ","\u{1F91A} ","\u{1F446} "]},fistBump:{interval:80,frames:["\u{1F91C}\u3000\u3000\u3000\u3000\u{1F91B} ","\u{1F91C}\u3000\u3000\u3000\u3000\u{1F91B} ","\u{1F91C}\u3000\u3000\u3000\u3000\u{1F91B} ","\u3000\u{1F91C}\u3000\u3000\u{1F91B}\u3000 ","\u3000\u3000\u{1F91C}\u{1F91B}\u3000\u3000 ","\u3000\u{1F91C}\u2728\u{1F91B}\u3000\u3000 ","\u{1F91C}\u3000\u2728\u3000\u{1F91B}\u3000 "]},soccerHeader:{interval:80,frames:[" \u{1F9D1}\u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F\u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} "]},mindblown:{interval:160,frames:["\u{1F610} ","\u{1F610} ","\u{1F62E} ","\u{1F62E} ","\u{1F626} ","\u{1F626} ","\u{1F627} ","\u{1F627} ","\u{1F92F} ","\u{1F4A5} ","\u2728 ","\u3000 ","\u3000 ","\u3000 "]},speaker:{interval:160,frames:["\u{1F508} ","\u{1F509} ","\u{1F50A} ","\u{1F509} "]},orangePulse:{interval:100,frames:["\u{1F538} ","\u{1F536} ","\u{1F7E0} ","\u{1F7E0} ","\u{1F536} "]},bluePulse:{interval:100,frames:["\u{1F539} ","\u{1F537} ","\u{1F535} ","\u{1F535} ","\u{1F537} "]},orangeBluePulse:{interval:100,frames:["\u{1F538} ","\u{1F536} ","\u{1F7E0} ","\u{1F7E0} ","\u{1F536} ","\u{1F539} ","\u{1F537} ","\u{1F535} ","\u{1F535} ","\u{1F537} "]},timeTravel:{interval:100,frames:["\u{1F55B} ","\u{1F55A} ","\u{1F559} ","\u{1F558} ","\u{1F557} ","\u{1F556} ","\u{1F555} ","\u{1F554} ","\u{1F553} ","\u{1F552} ","\u{1F551} ","\u{1F550} "]},aesthetic:{interval:80,frames:["\u25B0\u25B1\u25B1\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B1\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B0\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B0\u25B0\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B0\u25B0\u25B0","\u25B0\u25B1\u25B1\u25B1\u25B1\u25B1\u25B1"]},dwarfFortress:{interval:80,frames:[" \u2588\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2588\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2588\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2593\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2593\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2592\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2592\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2591\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2591\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A \u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A \u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A \u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\u2588\xA3\xA3\xA3 "," \u263A \u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\xA3\xA3\xA3 "," \u263A \u2588\xA3\xA3\xA3 "," \u263A\u2588\xA3\xA3\xA3 "," \u263A\u2588\xA3\xA3\xA3 "," \u263A\u2593\xA3\xA3\xA3 "," \u263A\u2593\xA3\xA3\xA3 "," \u263A\u2592\xA3\xA3\xA3 "," \u263A\u2592\xA3\xA3\xA3 "," \u263A\u2591\xA3\xA3\xA3 "," \u263A\u2591\xA3\xA3\xA3 "," \u263A \xA3\xA3\xA3 "," \u263A\xA3\xA3\xA3 "," \u263A\xA3\xA3\xA3 "," \u263A\u2593\xA3\xA3 "," \u263A\u2593\xA3\xA3 "," \u263A\u2592\xA3\xA3 "," \u263A\u2592\xA3\xA3 "," \u263A\u2591\xA3\xA3 "," \u263A\u2591\xA3\xA3 "," \u263A \xA3\xA3 "," \u263A\xA3\xA3 "," \u263A\xA3\xA3 "," \u263A\u2593\xA3 "," \u263A\u2593\xA3 "," \u263A\u2592\xA3 "," \u263A\u2592\xA3 "," \u263A\u2591\xA3 "," \u263A\u2591\xA3 "," \u263A \xA3 "," \u263A\xA3 "," \u263A\xA3 "," \u263A\u2593 "," \u263A\u2593 "," \u263A\u2592 "," \u263A\u2592 "," \u263A\u2591 "," \u263A\u2591 "," \u263A "," \u263A &"," \u263A \u263C&"," \u263A \u263C &"," \u263A\u263C &"," \u263A\u263C & "," \u203C & "," \u263A & "," \u203C & "," \u263A & "," \u203C & "," \u263A & ","\u203C & "," & "," & "," & \u2591 "," & \u2592 "," & \u2593 "," & \xA3 "," & \u2591\xA3 "," & \u2592\xA3 "," & \u2593\xA3 "," & \xA3\xA3 "," & \u2591\xA3\xA3 "," & \u2592\xA3\xA3 ","& \u2593\xA3\xA3 ","& \xA3\xA3\xA3 "," \u2591\xA3\xA3\xA3 "," \u2592\xA3\xA3\xA3 "," \u2593\xA3\xA3\xA3 "," \u2588\xA3\xA3\xA3 "," \u2591\u2588\xA3\xA3\xA3 "," \u2592\u2588\xA3\xA3\xA3 "," \u2593\u2588\xA3\xA3\xA3 "," \u2588\u2588\xA3\xA3\xA3 "," \u2591\u2588\u2588\xA3\xA3\xA3 "," \u2592\u2588\u2588\xA3\xA3\xA3 "," \u2593\u2588\u2588\xA3\xA3\xA3 "," \u2588\u2588\u2588\xA3\xA3\xA3 "," \u2591\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2592\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2593\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2591\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2592\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2593\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2591\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2592\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2593\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2588\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2588\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "]}}});var Co=m((wv,Oo)=>{"use strict";var wr=Object.assign({},Eo()),So=Object.keys(wr);Object.defineProperty(wr,"random",{get(){let t=Math.floor(Math.random()*So.length),e=So[t];return wr[e]}});Oo.exports=wr});var Ro=m((_v,ko)=>{"use strict";ko.exports=()=>process.platform!=="win32"?!0:!!process.env.CI||!!process.env.WT_SESSION||process.env.TERM_PROGRAM==="vscode"||process.env.TERM==="xterm-256color"||process.env.TERM==="alacritty"});var To=m((xv,Ao)=>{"use strict";var ge=ur(),qd=Ro(),jd={info:ge.blue("\u2139"),success:ge.green("\u2714"),warning:ge.yellow("\u26A0"),error:ge.red("\u2716")},Md={info:ge.blue("i"),success:ge.green("\u221A"),warning:ge.yellow("\u203C"),error:ge.red("\xD7")};Ao.exports=qd()?jd:Md});var jo=m((Ev,qo)=>{"use strict";qo.exports=({onlyFirst:t=!1}={})=>{let e=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(e,t?void 0:"g")}});var ce=m((Sv,Mo)=>{"use strict";var Pd=jo();Mo.exports=t=>typeof t=="string"?t.replace(Pd(),""):t});var Po=m((Ov,_r)=>{var Id=function(){"use strict";function t(a,o,l,u){var h;typeof o=="object"&&(l=o.depth,u=o.prototype,h=o.filter,o=o.circular);var c=[],f=[],d=typeof Buffer<"u";typeof o>"u"&&(o=!0),typeof l>"u"&&(l=1/0);function p(g,b){if(g===null)return null;if(b==0)return g;var y,w;if(typeof g!="object")return g;if(t.__isArray(g))y=[];else if(t.__isRegExp(g))y=new RegExp(g.source,s(g)),g.lastIndex&&(y.lastIndex=g.lastIndex);else if(t.__isDate(g))y=new Date(g.getTime());else{if(d&&Buffer.isBuffer(g))return Buffer.allocUnsafe?y=Buffer.allocUnsafe(g.length):y=new Buffer(g.length),g.copy(y),y;typeof u>"u"?(w=Object.getPrototypeOf(g),y=Object.create(w)):(y=Object.create(u),w=u)}if(o){var _=c.indexOf(g);if(_!=-1)return f[_];c.push(g),f.push(y)}for(var x in g){var C;w&&(C=Object.getOwnPropertyDescriptor(w,x)),!(C&&C.set==null)&&(y[x]=p(g[x],b-1))}return y}return p(a,l)}t.clonePrototype=function(o){if(o===null)return null;var l=function(){};return l.prototype=o,new l};function e(a){return Object.prototype.toString.call(a)}t.__objToStr=e;function r(a){return typeof a=="object"&&e(a)==="[object Date]"}t.__isDate=r;function i(a){return typeof a=="object"&&e(a)==="[object Array]"}t.__isArray=i;function n(a){return typeof a=="object"&&e(a)==="[object RegExp]"}t.__isRegExp=n;function s(a){var o="";return a.global&&(o+="g"),a.ignoreCase&&(o+="i"),a.multiline&&(o+="m"),o}return t.__getRegExpFlags=s,t}();typeof _r=="object"&&_r.exports&&(_r.exports=Id)});var No=m((Cv,Io)=>{var Nd=Po();Io.exports=function(t,e){return t=t||{},Object.keys(e).forEach(function(r){typeof t[r]>"u"&&(t[r]=Nd(e[r]))}),t}});var Do=m((kv,Bo)=>{Bo.exports=[[768,879],[1155,1158],[1160,1161],[1425,1469],[1471,1471],[1473,1474],[1476,1477],[1479,1479],[1536,1539],[1552,1557],[1611,1630],[1648,1648],[1750,1764],[1767,1768],[1770,1773],[1807,1807],[1809,1809],[1840,1866],[1958,1968],[2027,2035],[2305,2306],[2364,2364],[2369,2376],[2381,2381],[2385,2388],[2402,2403],[2433,2433],[2492,2492],[2497,2500],[2509,2509],[2530,2531],[2561,2562],[2620,2620],[2625,2626],[2631,2632],[2635,2637],[2672,2673],[2689,2690],[2748,2748],[2753,2757],[2759,2760],[2765,2765],[2786,2787],[2817,2817],[2876,2876],[2879,2879],[2881,2883],[2893,2893],[2902,2902],[2946,2946],[3008,3008],[3021,3021],[3134,3136],[3142,3144],[3146,3149],[3157,3158],[3260,3260],[3263,3263],[3270,3270],[3276,3277],[3298,3299],[3393,3395],[3405,3405],[3530,3530],[3538,3540],[3542,3542],[3633,3633],[3636,3642],[3655,3662],[3761,3761],[3764,3769],[3771,3772],[3784,3789],[3864,3865],[3893,3893],[3895,3895],[3897,3897],[3953,3966],[3968,3972],[3974,3975],[3984,3991],[3993,4028],[4038,4038],[4141,4144],[4146,4146],[4150,4151],[4153,4153],[4184,4185],[4448,4607],[4959,4959],[5906,5908],[5938,5940],[5970,5971],[6002,6003],[6068,6069],[6071,6077],[6086,6086],[6089,6099],[6109,6109],[6155,6157],[6313,6313],[6432,6434],[6439,6440],[6450,6450],[6457,6459],[6679,6680],[6912,6915],[6964,6964],[6966,6970],[6972,6972],[6978,6978],[7019,7027],[7616,7626],[7678,7679],[8203,8207],[8234,8238],[8288,8291],[8298,8303],[8400,8431],[12330,12335],[12441,12442],[43014,43014],[43019,43019],[43045,43046],[64286,64286],[65024,65039],[65056,65059],[65279,65279],[65529,65531],[68097,68099],[68101,68102],[68108,68111],[68152,68154],[68159,68159],[119143,119145],[119155,119170],[119173,119179],[119210,119213],[119362,119364],[917505,917505],[917536,917631],[917760,917999]]});var Go=m((Rv,Li)=>{"use strict";var Bd=No(),Rt=Do(),Fo={nul:0,control:0};Li.exports=function(e){return $o(e,Fo)};Li.exports.config=function(t){return t=Bd(t||{},Fo),function(r){return $o(r,t)}};function $o(t,e){if(typeof t!="string")return Lo(t,e);for(var r=0,i=0;i<t.length;i++){var n=Lo(t.charCodeAt(i),e);if(n<0)return-1;r+=n}return r}function Lo(t,e){return t===0?e.nul:t<32||t>=127&&t<160?e.control:Dd(t)?0:1+(t>=4352&&(t<=4447||t==9001||t==9002||t>=11904&&t<=42191&&t!=12351||t>=44032&&t<=55203||t>=63744&&t<=64255||t>=65040&&t<=65049||t>=65072&&t<=65135||t>=65280&&t<=65376||t>=65504&&t<=65510||t>=131072&&t<=196605||t>=196608&&t<=262141))}function Dd(t){var e=0,r=Rt.length-1,i;if(t<Rt[0][0]||t>Rt[r][1])return!1;for(;r>=e;)if(i=Math.floor((e+r)/2),t>Rt[i][1])e=i+1;else if(t<Rt[i][0])r=i-1;else return!0;return!1}});var Uo=m((Av,Wo)=>{"use strict";Wo.exports=({stream:t=process.stdout}={})=>!!(t&&t.isTTY&&process.env.TERM!=="dumb"&&!("CI"in process.env))});var Fi=m((Tv,Vo)=>{Vo.exports=require("stream")});var Zo=m((qv,Xo)=>{"use strict";function zo(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable})),r.push.apply(r,i)}return r}function Ho(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?zo(Object(r),!0).forEach(function(i){Ld(t,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):zo(Object(r)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(r,i))})}return t}function Ld(t,e,r){return e=Yo(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Fd(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Ko(t,e){for(var r=0;r<e.length;r++){var i=e[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,Yo(i.key),i)}}function $d(t,e,r){return e&&Ko(t.prototype,e),r&&Ko(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function Yo(t){var e=Gd(t,"string");return typeof e=="symbol"?e:String(e)}function Gd(t,e){if(typeof t!="object"||t===null)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var i=r.call(t,e||"default");if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var Wd=require("buffer"),xr=Wd.Buffer,Ud=require("util"),$i=Ud.inspect,Vd=$i&&$i.custom||"inspect";function zd(t,e,r){xr.prototype.copy.call(t,e,r)}Xo.exports=function(){function t(){Fd(this,t),this.head=null,this.tail=null,this.length=0}return $d(t,[{key:"push",value:function(r){var i={data:r,next:null};this.length>0?this.tail.next=i:this.head=i,this.tail=i,++this.length}},{key:"unshift",value:function(r){var i={data:r,next:this.head};this.length===0&&(this.tail=i),this.head=i,++this.length}},{key:"shift",value:function(){if(this.length!==0){var r=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,r}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(r){if(this.length===0)return"";for(var i=this.head,n=""+i.data;i=i.next;)n+=r+i.data;return n}},{key:"concat",value:function(r){if(this.length===0)return xr.alloc(0);for(var i=xr.allocUnsafe(r>>>0),n=this.head,s=0;n;)zd(n.data,i,s),s+=n.data.length,n=n.next;return i}},{key:"consume",value:function(r,i){var n;return r<this.head.data.length?(n=this.head.data.slice(0,r),this.head.data=this.head.data.slice(r)):r===this.head.data.length?n=this.shift():n=i?this._getString(r):this._getBuffer(r),n}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(r){var i=this.head,n=1,s=i.data;for(r-=s.length;i=i.next;){var a=i.data,o=r>a.length?a.length:r;if(o===a.length?s+=a:s+=a.slice(0,r),r-=o,r===0){o===a.length?(++n,i.next?this.head=i.next:this.head=this.tail=null):(this.head=i,i.data=a.slice(o));break}++n}return this.length-=n,s}},{key:"_getBuffer",value:function(r){var i=xr.allocUnsafe(r),n=this.head,s=1;for(n.data.copy(i),r-=n.data.length;n=n.next;){var a=n.data,o=r>a.length?a.length:r;if(a.copy(i,i.length-r,0,o),r-=o,r===0){o===a.length?(++s,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=a.slice(o));break}++s}return this.length-=s,i}},{key:Vd,value:function(r,i){return $i(this,Ho(Ho({},i),{},{depth:0,customInspect:!1}))}}]),t}()});var Wi=m((jv,Jo)=>{"use strict";function Hd(t,e){var r=this,i=this._readableState&&this._readableState.destroyed,n=this._writableState&&this._writableState.destroyed;return i||n?(e?e(t):t&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(Gi,this,t)):process.nextTick(Gi,this,t)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,function(s){!e&&s?r._writableState?r._writableState.errorEmitted?process.nextTick(Er,r):(r._writableState.errorEmitted=!0,process.nextTick(Qo,r,s)):process.nextTick(Qo,r,s):e?(process.nextTick(Er,r),e(s)):process.nextTick(Er,r)}),this)}function Qo(t,e){Gi(t,e),Er(t)}function Er(t){t._writableState&&!t._writableState.emitClose||t._readableState&&!t._readableState.emitClose||t.emit("close")}function Kd(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function Gi(t,e){t.emit("error",e)}function Yd(t,e){var r=t._readableState,i=t._writableState;r&&r.autoDestroy||i&&i.autoDestroy?t.destroy(e):t.emit("error",e)}Jo.exports={destroy:Hd,undestroy:Kd,errorOrDestroy:Yd}});var ye=m((Mv,rl)=>{"use strict";var tl={};function Z(t,e,r){r||(r=Error);function i(s,a,o){return typeof e=="string"?e:e(s,a,o)}class n extends r{constructor(a,o,l){super(i(a,o,l))}}n.prototype.name=r.name,n.prototype.code=t,tl[t]=n}function el(t,e){if(Array.isArray(t)){let r=t.length;return t=t.map(i=>String(i)),r>2?`one of ${e} ${t.slice(0,r-1).join(", ")}, or `+t[r-1]:r===2?`one of ${e} ${t[0]} or ${t[1]}`:`of ${e} ${t[0]}`}else return`of ${e} ${String(t)}`}function Xd(t,e,r){return t.substr(!r||r<0?0:+r,e.length)===e}function Zd(t,e,r){return(r===void 0||r>t.length)&&(r=t.length),t.substring(r-e.length,r)===e}function Qd(t,e,r){return typeof r!="number"&&(r=0),r+e.length>t.length?!1:t.indexOf(e,r)!==-1}Z("ERR_INVALID_OPT_VALUE",function(t,e){return'The value "'+e+'" is invalid for option "'+t+'"'},TypeError);Z("ERR_INVALID_ARG_TYPE",function(t,e,r){let i;typeof e=="string"&&Xd(e,"not ")?(i="must not be",e=e.replace(/^not /,"")):i="must be";let n;if(Zd(t," argument"))n=`The ${t} ${i} ${el(e,"type")}`;else{let s=Qd(t,".")?"property":"argument";n=`The "${t}" ${s} ${i} ${el(e,"type")}`}return n+=`. Received type ${typeof r}`,n},TypeError);Z("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF");Z("ERR_METHOD_NOT_IMPLEMENTED",function(t){return"The "+t+" method is not implemented"});Z("ERR_STREAM_PREMATURE_CLOSE","Premature close");Z("ERR_STREAM_DESTROYED",function(t){return"Cannot call "+t+" after a stream was destroyed"});Z("ERR_MULTIPLE_CALLBACK","Callback called multiple times");Z("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable");Z("ERR_STREAM_WRITE_AFTER_END","write after end");Z("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);Z("ERR_UNKNOWN_ENCODING",function(t){return"Unknown encoding: "+t},TypeError);Z("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event");rl.exports.codes=tl});var Ui=m((Pv,il)=>{"use strict";var Jd=ye().codes.ERR_INVALID_OPT_VALUE;function ep(t,e,r){return t.highWaterMark!=null?t.highWaterMark:e?t[r]:null}function tp(t,e,r,i){var n=ep(e,i,r);if(n!=null){if(!(isFinite(n)&&Math.floor(n)===n)||n<0){var s=i?r:"highWaterMark";throw new Jd(s,n)}return Math.floor(n)}return t.objectMode?16:16*1024}il.exports={getHighWaterMark:tp}});var nl=m((Iv,Vi)=>{typeof Object.create=="function"?Vi.exports=function(e,r){r&&(e.super_=r,e.prototype=Object.create(r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:Vi.exports=function(e,r){if(r){e.super_=r;var i=function(){};i.prototype=r.prototype,e.prototype=new i,e.prototype.constructor=e}}});var be=m((Nv,Hi)=>{try{if(zi=require("util"),typeof zi.inherits!="function")throw"";Hi.exports=zi.inherits}catch{Hi.exports=nl()}var zi});var al=m((Bv,sl)=>{sl.exports=require("util").deprecate});var Xi=m((Dv,fl)=>{"use strict";fl.exports=j;function ll(t){var e=this;this.next=null,this.entry=null,this.finish=function(){Rp(e,t)}}var rt;j.WritableState=Tt;var rp={deprecate:al()},ul=Fi(),Or=require("buffer").Buffer,ip=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function np(t){return Or.from(t)}function sp(t){return Or.isBuffer(t)||t instanceof ip}var Yi=Wi(),ap=Ui(),op=ap.getHighWaterMark,ve=ye().codes,lp=ve.ERR_INVALID_ARG_TYPE,up=ve.ERR_METHOD_NOT_IMPLEMENTED,cp=ve.ERR_MULTIPLE_CALLBACK,hp=ve.ERR_STREAM_CANNOT_PIPE,fp=ve.ERR_STREAM_DESTROYED,dp=ve.ERR_STREAM_NULL_VALUES,pp=ve.ERR_STREAM_WRITE_AFTER_END,mp=ve.ERR_UNKNOWN_ENCODING,it=Yi.errorOrDestroy;be()(j,ul);function gp(){}function Tt(t,e,r){rt=rt||Pe(),t=t||{},typeof r!="boolean"&&(r=e instanceof rt),this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.writableObjectMode),this.highWaterMark=op(this,t,"writableHighWaterMark",r),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var i=t.decodeStrings===!1;this.decodeStrings=!i,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(n){Ep(e,n)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=t.emitClose!==!1,this.autoDestroy=!!t.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new ll(this)}Tt.prototype.getBuffer=function(){for(var e=this.bufferedRequest,r=[];e;)r.push(e),e=e.next;return r};(function(){try{Object.defineProperty(Tt.prototype,"buffer",{get:rp.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})();var Sr;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(Sr=Function.prototype[Symbol.hasInstance],Object.defineProperty(j,Symbol.hasInstance,{value:function(e){return Sr.call(this,e)?!0:this!==j?!1:e&&e._writableState instanceof Tt}})):Sr=function(e){return e instanceof this};function j(t){rt=rt||Pe();var e=this instanceof rt;if(!e&&!Sr.call(j,this))return new j(t);this._writableState=new Tt(t,this,e),this.writable=!0,t&&(typeof t.write=="function"&&(this._write=t.write),typeof t.writev=="function"&&(this._writev=t.writev),typeof t.destroy=="function"&&(this._destroy=t.destroy),typeof t.final=="function"&&(this._final=t.final)),ul.call(this)}j.prototype.pipe=function(){it(this,new hp)};function yp(t,e){var r=new pp;it(t,r),process.nextTick(e,r)}function bp(t,e,r,i){var n;return r===null?n=new dp:typeof r!="string"&&!e.objectMode&&(n=new lp("chunk",["string","Buffer"],r)),n?(it(t,n),process.nextTick(i,n),!1):!0}j.prototype.write=function(t,e,r){var i=this._writableState,n=!1,s=!i.objectMode&&sp(t);return s&&!Or.isBuffer(t)&&(t=np(t)),typeof e=="function"&&(r=e,e=null),s?e="buffer":e||(e=i.defaultEncoding),typeof r!="function"&&(r=gp),i.ending?yp(this,r):(s||bp(this,i,t,r))&&(i.pendingcb++,n=wp(this,i,s,t,e,r)),n};j.prototype.cork=function(){this._writableState.corked++};j.prototype.uncork=function(){var t=this._writableState;t.corked&&(t.corked--,!t.writing&&!t.corked&&!t.bufferProcessing&&t.bufferedRequest&&cl(this,t))};j.prototype.setDefaultEncoding=function(e){if(typeof e=="string"&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new mp(e);return this._writableState.defaultEncoding=e,this};Object.defineProperty(j.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function vp(t,e,r){return!t.objectMode&&t.decodeStrings!==!1&&typeof e=="string"&&(e=Or.from(e,r)),e}Object.defineProperty(j.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function wp(t,e,r,i,n,s){if(!r){var a=vp(e,i,n);i!==a&&(r=!0,n="buffer",i=a)}var o=e.objectMode?1:i.length;e.length+=o;var l=e.length<e.highWaterMark;if(l||(e.needDrain=!0),e.writing||e.corked){var u=e.lastBufferedRequest;e.lastBufferedRequest={chunk:i,encoding:n,isBuf:r,callback:s,next:null},u?u.next=e.lastBufferedRequest:e.bufferedRequest=e.lastBufferedRequest,e.bufferedRequestCount+=1}else Ki(t,e,!1,o,i,n,s);return l}function Ki(t,e,r,i,n,s,a){e.writelen=i,e.writecb=a,e.writing=!0,e.sync=!0,e.destroyed?e.onwrite(new fp("write")):r?t._writev(n,e.onwrite):t._write(n,s,e.onwrite),e.sync=!1}function _p(t,e,r,i,n){--e.pendingcb,r?(process.nextTick(n,i),process.nextTick(At,t,e),t._writableState.errorEmitted=!0,it(t,i)):(n(i),t._writableState.errorEmitted=!0,it(t,i),At(t,e))}function xp(t){t.writing=!1,t.writecb=null,t.length-=t.writelen,t.writelen=0}function Ep(t,e){var r=t._writableState,i=r.sync,n=r.writecb;if(typeof n!="function")throw new cp;if(xp(r),e)_p(t,r,i,e,n);else{var s=hl(r)||t.destroyed;!s&&!r.corked&&!r.bufferProcessing&&r.bufferedRequest&&cl(t,r),i?process.nextTick(ol,t,r,s,n):ol(t,r,s,n)}}function ol(t,e,r,i){r||Sp(t,e),e.pendingcb--,i(),At(t,e)}function Sp(t,e){e.length===0&&e.needDrain&&(e.needDrain=!1,t.emit("drain"))}function cl(t,e){e.bufferProcessing=!0;var r=e.bufferedRequest;if(t._writev&&r&&r.next){var i=e.bufferedRequestCount,n=new Array(i),s=e.corkedRequestsFree;s.entry=r;for(var a=0,o=!0;r;)n[a]=r,r.isBuf||(o=!1),r=r.next,a+=1;n.allBuffers=o,Ki(t,e,!0,e.length,n,"",s.finish),e.pendingcb++,e.lastBufferedRequest=null,s.next?(e.corkedRequestsFree=s.next,s.next=null):e.corkedRequestsFree=new ll(e),e.bufferedRequestCount=0}else{for(;r;){var l=r.chunk,u=r.encoding,h=r.callback,c=e.objectMode?1:l.length;if(Ki(t,e,!1,c,l,u,h),r=r.next,e.bufferedRequestCount--,e.writing)break}r===null&&(e.lastBufferedRequest=null)}e.bufferedRequest=r,e.bufferProcessing=!1}j.prototype._write=function(t,e,r){r(new up("_write()"))};j.prototype._writev=null;j.prototype.end=function(t,e,r){var i=this._writableState;return typeof t=="function"?(r=t,t=null,e=null):typeof e=="function"&&(r=e,e=null),t!=null&&this.write(t,e),i.corked&&(i.corked=1,this.uncork()),i.ending||kp(this,i,r),this};Object.defineProperty(j.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function hl(t){return t.ending&&t.length===0&&t.bufferedRequest===null&&!t.finished&&!t.writing}function Op(t,e){t._final(function(r){e.pendingcb--,r&&it(t,r),e.prefinished=!0,t.emit("prefinish"),At(t,e)})}function Cp(t,e){!e.prefinished&&!e.finalCalled&&(typeof t._final=="function"&&!e.destroyed?(e.pendingcb++,e.finalCalled=!0,process.nextTick(Op,t,e)):(e.prefinished=!0,t.emit("prefinish")))}function At(t,e){var r=hl(e);if(r&&(Cp(t,e),e.pendingcb===0&&(e.finished=!0,t.emit("finish"),e.autoDestroy))){var i=t._readableState;(!i||i.autoDestroy&&i.endEmitted)&&t.destroy()}return r}function kp(t,e,r){e.ending=!0,At(t,e),r&&(e.finished?process.nextTick(r):t.once("finish",r)),e.ended=!0,t.writable=!1}function Rp(t,e,r){var i=t.entry;for(t.entry=null;i;){var n=i.callback;e.pendingcb--,n(r),i=i.next}e.corkedRequestsFree.next=t}Object.defineProperty(j.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}});j.prototype.destroy=Yi.destroy;j.prototype._undestroy=Yi.undestroy;j.prototype._destroy=function(t,e){e(t)}});var Pe=m((Lv,pl)=>{"use strict";var Ap=Object.keys||function(t){var e=[];for(var r in t)e.push(r);return e};pl.exports=se;var dl=Ji(),Qi=Xi();be()(se,dl);for(Zi=Ap(Qi.prototype),Cr=0;Cr<Zi.length;Cr++)kr=Zi[Cr],se.prototype[kr]||(se.prototype[kr]=Qi.prototype[kr]);var Zi,kr,Cr;function se(t){if(!(this instanceof se))return new se(t);dl.call(this,t),Qi.call(this,t),this.allowHalfOpen=!0,t&&(t.readable===!1&&(this.readable=!1),t.writable===!1&&(this.writable=!1),t.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",Tp)))}Object.defineProperty(se.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});Object.defineProperty(se.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});Object.defineProperty(se.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function Tp(){this._writableState.ended||process.nextTick(qp,this)}function qp(t){t.end()}Object.defineProperty(se.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(e){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=e,this._writableState.destroyed=e)}})});var yl=m((en,gl)=>{var Rr=require("buffer"),ae=Rr.Buffer;function ml(t,e){for(var r in t)e[r]=t[r]}ae.from&&ae.alloc&&ae.allocUnsafe&&ae.allocUnsafeSlow?gl.exports=Rr:(ml(Rr,en),en.Buffer=Ie);function Ie(t,e,r){return ae(t,e,r)}Ie.prototype=Object.create(ae.prototype);ml(ae,Ie);Ie.from=function(t,e,r){if(typeof t=="number")throw new TypeError("Argument must not be a number");return ae(t,e,r)};Ie.alloc=function(t,e,r){if(typeof t!="number")throw new TypeError("Argument must be a number");var i=ae(t);return e!==void 0?typeof r=="string"?i.fill(e,r):i.fill(e):i.fill(0),i};Ie.allocUnsafe=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return ae(t)};Ie.allocUnsafeSlow=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return Rr.SlowBuffer(t)}});var nn=m(vl=>{"use strict";var rn=yl().Buffer,bl=rn.isEncoding||function(t){switch(t=""+t,t&&t.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function jp(t){if(!t)return"utf8";for(var e;;)switch(t){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return t;default:if(e)return;t=(""+t).toLowerCase(),e=!0}}function Mp(t){var e=jp(t);if(typeof e!="string"&&(rn.isEncoding===bl||!bl(t)))throw new Error("Unknown encoding: "+t);return e||t}vl.StringDecoder=qt;function qt(t){this.encoding=Mp(t);var e;switch(this.encoding){case"utf16le":this.text=Lp,this.end=Fp,e=4;break;case"utf8":this.fillLast=Np,e=4;break;case"base64":this.text=$p,this.end=Gp,e=3;break;default:this.write=Wp,this.end=Up;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=rn.allocUnsafe(e)}qt.prototype.write=function(t){if(t.length===0)return"";var e,r;if(this.lastNeed){if(e=this.fillLast(t),e===void 0)return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<t.length?e?e+this.text(t,r):this.text(t,r):e||""};qt.prototype.end=Dp;qt.prototype.text=Bp;qt.prototype.fillLast=function(t){if(this.lastNeed<=t.length)return t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,t.length),this.lastNeed-=t.length};function tn(t){return t<=127?0:t>>5===6?2:t>>4===14?3:t>>3===30?4:t>>6===2?-1:-2}function Pp(t,e,r){var i=e.length-1;if(i<r)return 0;var n=tn(e[i]);return n>=0?(n>0&&(t.lastNeed=n-1),n):--i<r||n===-2?0:(n=tn(e[i]),n>=0?(n>0&&(t.lastNeed=n-2),n):--i<r||n===-2?0:(n=tn(e[i]),n>=0?(n>0&&(n===2?n=0:t.lastNeed=n-3),n):0))}function Ip(t,e,r){if((e[0]&192)!==128)return t.lastNeed=0,"\uFFFD";if(t.lastNeed>1&&e.length>1){if((e[1]&192)!==128)return t.lastNeed=1,"\uFFFD";if(t.lastNeed>2&&e.length>2&&(e[2]&192)!==128)return t.lastNeed=2,"\uFFFD"}}function Np(t){var e=this.lastTotal-this.lastNeed,r=Ip(this,t,e);if(r!==void 0)return r;if(this.lastNeed<=t.length)return t.copy(this.lastChar,e,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,e,0,t.length),this.lastNeed-=t.length}function Bp(t,e){var r=Pp(this,t,e);if(!this.lastNeed)return t.toString("utf8",e);this.lastTotal=r;var i=t.length-(r-this.lastNeed);return t.copy(this.lastChar,0,i),t.toString("utf8",e,i)}function Dp(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+"\uFFFD":e}function Lp(t,e){if((t.length-e)%2===0){var r=t.toString("utf16le",e);if(r){var i=r.charCodeAt(r.length-1);if(i>=55296&&i<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=t[t.length-1],t.toString("utf16le",e,t.length-1)}function Fp(t){var e=t&&t.length?this.write(t):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return e+this.lastChar.toString("utf16le",0,r)}return e}function $p(t,e){var r=(t.length-e)%3;return r===0?t.toString("base64",e):(this.lastNeed=3-r,this.lastTotal=3,r===1?this.lastChar[0]=t[t.length-1]:(this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1]),t.toString("base64",e,t.length-r))}function Gp(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function Wp(t){return t.toString(this.encoding)}function Up(t){return t&&t.length?this.write(t):""}});var Ar=m(($v,xl)=>{"use strict";var wl=ye().codes.ERR_STREAM_PREMATURE_CLOSE;function Vp(t){var e=!1;return function(){if(!e){e=!0;for(var r=arguments.length,i=new Array(r),n=0;n<r;n++)i[n]=arguments[n];t.apply(this,i)}}}function zp(){}function Hp(t){return t.setHeader&&typeof t.abort=="function"}function _l(t,e,r){if(typeof e=="function")return _l(t,null,e);e||(e={}),r=Vp(r||zp);var i=e.readable||e.readable!==!1&&t.readable,n=e.writable||e.writable!==!1&&t.writable,s=function(){t.writable||o()},a=t._writableState&&t._writableState.finished,o=function(){n=!1,a=!0,i||r.call(t)},l=t._readableState&&t._readableState.endEmitted,u=function(){i=!1,l=!0,n||r.call(t)},h=function(p){r.call(t,p)},c=function(){var p;if(i&&!l)return(!t._readableState||!t._readableState.ended)&&(p=new wl),r.call(t,p);if(n&&!a)return(!t._writableState||!t._writableState.ended)&&(p=new wl),r.call(t,p)},f=function(){t.req.on("finish",o)};return Hp(t)?(t.on("complete",o),t.on("abort",c),t.req?f():t.on("request",f)):n&&!t._writableState&&(t.on("end",s),t.on("close",s)),t.on("end",u),t.on("finish",o),e.error!==!1&&t.on("error",h),t.on("close",c),function(){t.removeListener("complete",o),t.removeListener("abort",c),t.removeListener("request",f),t.req&&t.req.removeListener("finish",o),t.removeListener("end",s),t.removeListener("close",s),t.removeListener("finish",o),t.removeListener("end",u),t.removeListener("error",h),t.removeListener("close",c)}}xl.exports=_l});var Sl=m((Gv,El)=>{"use strict";var Tr;function we(t,e,r){return e=Kp(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Kp(t){var e=Yp(t,"string");return typeof e=="symbol"?e:String(e)}function Yp(t,e){if(typeof t!="object"||t===null)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var i=r.call(t,e||"default");if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var Xp=Ar(),_e=Symbol("lastResolve"),Ne=Symbol("lastReject"),jt=Symbol("error"),qr=Symbol("ended"),Be=Symbol("lastPromise"),sn=Symbol("handlePromise"),De=Symbol("stream");function xe(t,e){return{value:t,done:e}}function Zp(t){var e=t[_e];if(e!==null){var r=t[De].read();r!==null&&(t[Be]=null,t[_e]=null,t[Ne]=null,e(xe(r,!1)))}}function Qp(t){process.nextTick(Zp,t)}function Jp(t,e){return function(r,i){t.then(function(){if(e[qr]){r(xe(void 0,!0));return}e[sn](r,i)},i)}}var e0=Object.getPrototypeOf(function(){}),t0=Object.setPrototypeOf((Tr={get stream(){return this[De]},next:function(){var e=this,r=this[jt];if(r!==null)return Promise.reject(r);if(this[qr])return Promise.resolve(xe(void 0,!0));if(this[De].destroyed)return new Promise(function(a,o){process.nextTick(function(){e[jt]?o(e[jt]):a(xe(void 0,!0))})});var i=this[Be],n;if(i)n=new Promise(Jp(i,this));else{var s=this[De].read();if(s!==null)return Promise.resolve(xe(s,!1));n=new Promise(this[sn])}return this[Be]=n,n}},we(Tr,Symbol.asyncIterator,function(){return this}),we(Tr,"return",function(){var e=this;return new Promise(function(r,i){e[De].destroy(null,function(n){if(n){i(n);return}r(xe(void 0,!0))})})}),Tr),e0),r0=function(e){var r,i=Object.create(t0,(r={},we(r,De,{value:e,writable:!0}),we(r,_e,{value:null,writable:!0}),we(r,Ne,{value:null,writable:!0}),we(r,jt,{value:null,writable:!0}),we(r,qr,{value:e._readableState.endEmitted,writable:!0}),we(r,sn,{value:function(s,a){var o=i[De].read();o?(i[Be]=null,i[_e]=null,i[Ne]=null,s(xe(o,!1))):(i[_e]=s,i[Ne]=a)},writable:!0}),r));return i[Be]=null,Xp(e,function(n){if(n&&n.code!=="ERR_STREAM_PREMATURE_CLOSE"){var s=i[Ne];s!==null&&(i[Be]=null,i[_e]=null,i[Ne]=null,s(n)),i[jt]=n;return}var a=i[_e];a!==null&&(i[Be]=null,i[_e]=null,i[Ne]=null,a(xe(void 0,!0))),i[qr]=!0}),e.on("readable",Qp.bind(null,i)),i};El.exports=r0});var Rl=m((Wv,kl)=>{"use strict";function Ol(t,e,r,i,n,s,a){try{var o=t[s](a),l=o.value}catch(u){r(u);return}o.done?e(l):Promise.resolve(l).then(i,n)}function i0(t){return function(){var e=this,r=arguments;return new Promise(function(i,n){var s=t.apply(e,r);function a(l){Ol(s,i,n,a,o,"next",l)}function o(l){Ol(s,i,n,a,o,"throw",l)}a(void 0)})}}function Cl(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable})),r.push.apply(r,i)}return r}function n0(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Cl(Object(r),!0).forEach(function(i){s0(t,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Cl(Object(r)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(r,i))})}return t}function s0(t,e,r){return e=a0(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function a0(t){var e=o0(t,"string");return typeof e=="symbol"?e:String(e)}function o0(t,e){if(typeof t!="object"||t===null)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var i=r.call(t,e||"default");if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var l0=ye().codes.ERR_INVALID_ARG_TYPE;function u0(t,e,r){var i;if(e&&typeof e.next=="function")i=e;else if(e&&e[Symbol.asyncIterator])i=e[Symbol.asyncIterator]();else if(e&&e[Symbol.iterator])i=e[Symbol.iterator]();else throw new l0("iterable",["Iterable"],e);var n=new t(n0({objectMode:!0},r)),s=!1;n._read=function(){s||(s=!0,a())};function a(){return o.apply(this,arguments)}function o(){return o=i0(function*(){try{var l=yield i.next(),u=l.value,h=l.done;h?n.push(null):n.push(yield u)?a():s=!1}catch(c){n.destroy(c)}}),o.apply(this,arguments)}return n}kl.exports=u0});var Ji=m((Vv,Dl)=>{"use strict";Dl.exports=O;var nt;O.ReadableState=jl;var Uv=require("events").EventEmitter,ql=function(e,r){return e.listeners(r).length},Pt=Fi(),jr=require("buffer").Buffer,c0=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function h0(t){return jr.from(t)}function f0(t){return jr.isBuffer(t)||t instanceof c0}var an=require("util"),E;an&&an.debuglog?E=an.debuglog("stream"):E=function(){};var d0=Zo(),dn=Wi(),p0=Ui(),m0=p0.getHighWaterMark,Mr=ye().codes,g0=Mr.ERR_INVALID_ARG_TYPE,y0=Mr.ERR_STREAM_PUSH_AFTER_EOF,b0=Mr.ERR_METHOD_NOT_IMPLEMENTED,v0=Mr.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,st,on,ln;be()(O,Pt);var Mt=dn.errorOrDestroy,un=["error","close","destroy","pause","resume"];function w0(t,e,r){if(typeof t.prependListener=="function")return t.prependListener(e,r);!t._events||!t._events[e]?t.on(e,r):Array.isArray(t._events[e])?t._events[e].unshift(r):t._events[e]=[r,t._events[e]]}function jl(t,e,r){nt=nt||Pe(),t=t||{},typeof r!="boolean"&&(r=e instanceof nt),this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.readableObjectMode),this.highWaterMark=m0(this,t,"readableHighWaterMark",r),this.buffer=new d0,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=t.emitClose!==!1,this.autoDestroy=!!t.autoDestroy,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(st||(st=nn().StringDecoder),this.decoder=new st(t.encoding),this.encoding=t.encoding)}function O(t){if(nt=nt||Pe(),!(this instanceof O))return new O(t);var e=this instanceof nt;this._readableState=new jl(t,this,e),this.readable=!0,t&&(typeof t.read=="function"&&(this._read=t.read),typeof t.destroy=="function"&&(this._destroy=t.destroy)),Pt.call(this)}Object.defineProperty(O.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}});O.prototype.destroy=dn.destroy;O.prototype._undestroy=dn.undestroy;O.prototype._destroy=function(t,e){e(t)};O.prototype.push=function(t,e){var r=this._readableState,i;return r.objectMode?i=!0:typeof t=="string"&&(e=e||r.defaultEncoding,e!==r.encoding&&(t=jr.from(t,e),e=""),i=!0),Ml(this,t,e,!1,i)};O.prototype.unshift=function(t){return Ml(this,t,null,!0,!1)};function Ml(t,e,r,i,n){E("readableAddChunk",e);var s=t._readableState;if(e===null)s.reading=!1,E0(t,s);else{var a;if(n||(a=_0(s,e)),a)Mt(t,a);else if(s.objectMode||e&&e.length>0)if(typeof e!="string"&&!s.objectMode&&Object.getPrototypeOf(e)!==jr.prototype&&(e=h0(e)),i)s.endEmitted?Mt(t,new v0):cn(t,s,e,!0);else if(s.ended)Mt(t,new y0);else{if(s.destroyed)return!1;s.reading=!1,s.decoder&&!r?(e=s.decoder.write(e),s.objectMode||e.length!==0?cn(t,s,e,!1):fn(t,s)):cn(t,s,e,!1)}else i||(s.reading=!1,fn(t,s))}return!s.ended&&(s.length<s.highWaterMark||s.length===0)}function cn(t,e,r,i){e.flowing&&e.length===0&&!e.sync?(e.awaitDrain=0,t.emit("data",r)):(e.length+=e.objectMode?1:r.length,i?e.buffer.unshift(r):e.buffer.push(r),e.needReadable&&Pr(t)),fn(t,e)}function _0(t,e){var r;return!f0(e)&&typeof e!="string"&&e!==void 0&&!t.objectMode&&(r=new g0("chunk",["string","Buffer","Uint8Array"],e)),r}O.prototype.isPaused=function(){return this._readableState.flowing===!1};O.prototype.setEncoding=function(t){st||(st=nn().StringDecoder);var e=new st(t);this._readableState.decoder=e,this._readableState.encoding=this._readableState.decoder.encoding;for(var r=this._readableState.buffer.head,i="";r!==null;)i+=e.write(r.data),r=r.next;return this._readableState.buffer.clear(),i!==""&&this._readableState.buffer.push(i),this._readableState.length=i.length,this};var Al=1073741824;function x0(t){return t>=Al?t=Al:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}function Tl(t,e){return t<=0||e.length===0&&e.ended?0:e.objectMode?1:t!==t?e.flowing&&e.length?e.buffer.head.data.length:e.length:(t>e.highWaterMark&&(e.highWaterMark=x0(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}O.prototype.read=function(t){E("read",t),t=parseInt(t,10);var e=this._readableState,r=t;if(t!==0&&(e.emittedReadable=!1),t===0&&e.needReadable&&((e.highWaterMark!==0?e.length>=e.highWaterMark:e.length>0)||e.ended))return E("read: emitReadable",e.length,e.ended),e.length===0&&e.ended?hn(this):Pr(this),null;if(t=Tl(t,e),t===0&&e.ended)return e.length===0&&hn(this),null;var i=e.needReadable;E("need readable",i),(e.length===0||e.length-t<e.highWaterMark)&&(i=!0,E("length less than watermark",i)),e.ended||e.reading?(i=!1,E("reading or ended",i)):i&&(E("do read"),e.reading=!0,e.sync=!0,e.length===0&&(e.needReadable=!0),this._read(e.highWaterMark),e.sync=!1,e.reading||(t=Tl(r,e)));var n;return t>0?n=Nl(t,e):n=null,n===null?(e.needReadable=e.length<=e.highWaterMark,t=0):(e.length-=t,e.awaitDrain=0),e.length===0&&(e.ended||(e.needReadable=!0),r!==t&&e.ended&&hn(this)),n!==null&&this.emit("data",n),n};function E0(t,e){if(E("onEofChunk"),!e.ended){if(e.decoder){var r=e.decoder.end();r&&r.length&&(e.buffer.push(r),e.length+=e.objectMode?1:r.length)}e.ended=!0,e.sync?Pr(t):(e.needReadable=!1,e.emittedReadable||(e.emittedReadable=!0,Pl(t)))}}function Pr(t){var e=t._readableState;E("emitReadable",e.needReadable,e.emittedReadable),e.needReadable=!1,e.emittedReadable||(E("emitReadable",e.flowing),e.emittedReadable=!0,process.nextTick(Pl,t))}function Pl(t){var e=t._readableState;E("emitReadable_",e.destroyed,e.length,e.ended),!e.destroyed&&(e.length||e.ended)&&(t.emit("readable"),e.emittedReadable=!1),e.needReadable=!e.flowing&&!e.ended&&e.length<=e.highWaterMark,pn(t)}function fn(t,e){e.readingMore||(e.readingMore=!0,process.nextTick(S0,t,e))}function S0(t,e){for(;!e.reading&&!e.ended&&(e.length<e.highWaterMark||e.flowing&&e.length===0);){var r=e.length;if(E("maybeReadMore read 0"),t.read(0),r===e.length)break}e.readingMore=!1}O.prototype._read=function(t){Mt(this,new b0("_read()"))};O.prototype.pipe=function(t,e){var r=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=t;break;case 1:i.pipes=[i.pipes,t];break;default:i.pipes.push(t);break}i.pipesCount+=1,E("pipe count=%d opts=%j",i.pipesCount,e);var n=(!e||e.end!==!1)&&t!==process.stdout&&t!==process.stderr,s=n?o:g;i.endEmitted?process.nextTick(s):r.once("end",s),t.on("unpipe",a);function a(b,y){E("onunpipe"),b===r&&y&&y.hasUnpiped===!1&&(y.hasUnpiped=!0,h())}function o(){E("onend"),t.end()}var l=O0(r);t.on("drain",l);var u=!1;function h(){E("cleanup"),t.removeListener("close",d),t.removeListener("finish",p),t.removeListener("drain",l),t.removeListener("error",f),t.removeListener("unpipe",a),r.removeListener("end",o),r.removeListener("end",g),r.removeListener("data",c),u=!0,i.awaitDrain&&(!t._writableState||t._writableState.needDrain)&&l()}r.on("data",c);function c(b){E("ondata");var y=t.write(b);E("dest.write",y),y===!1&&((i.pipesCount===1&&i.pipes===t||i.pipesCount>1&&Bl(i.pipes,t)!==-1)&&!u&&(E("false write response, pause",i.awaitDrain),i.awaitDrain++),r.pause())}function f(b){E("onerror",b),g(),t.removeListener("error",f),ql(t,"error")===0&&Mt(t,b)}w0(t,"error",f);function d(){t.removeListener("finish",p),g()}t.once("close",d);function p(){E("onfinish"),t.removeListener("close",d),g()}t.once("finish",p);function g(){E("unpipe"),r.unpipe(t)}return t.emit("pipe",r),i.flowing||(E("pipe resume"),r.resume()),t};function O0(t){return function(){var r=t._readableState;E("pipeOnDrain",r.awaitDrain),r.awaitDrain&&r.awaitDrain--,r.awaitDrain===0&&ql(t,"data")&&(r.flowing=!0,pn(t))}}O.prototype.unpipe=function(t){var e=this._readableState,r={hasUnpiped:!1};if(e.pipesCount===0)return this;if(e.pipesCount===1)return t&&t!==e.pipes?this:(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,t&&t.emit("unpipe",this,r),this);if(!t){var i=e.pipes,n=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var s=0;s<n;s++)i[s].emit("unpipe",this,{hasUnpiped:!1});return this}var a=Bl(e.pipes,t);return a===-1?this:(e.pipes.splice(a,1),e.pipesCount-=1,e.pipesCount===1&&(e.pipes=e.pipes[0]),t.emit("unpipe",this,r),this)};O.prototype.on=function(t,e){var r=Pt.prototype.on.call(this,t,e),i=this._readableState;return t==="data"?(i.readableListening=this.listenerCount("readable")>0,i.flowing!==!1&&this.resume()):t==="readable"&&!i.endEmitted&&!i.readableListening&&(i.readableListening=i.needReadable=!0,i.flowing=!1,i.emittedReadable=!1,E("on readable",i.length,i.reading),i.length?Pr(this):i.reading||process.nextTick(C0,this)),r};O.prototype.addListener=O.prototype.on;O.prototype.removeListener=function(t,e){var r=Pt.prototype.removeListener.call(this,t,e);return t==="readable"&&process.nextTick(Il,this),r};O.prototype.removeAllListeners=function(t){var e=Pt.prototype.removeAllListeners.apply(this,arguments);return(t==="readable"||t===void 0)&&process.nextTick(Il,this),e};function Il(t){var e=t._readableState;e.readableListening=t.listenerCount("readable")>0,e.resumeScheduled&&!e.paused?e.flowing=!0:t.listenerCount("data")>0&&t.resume()}function C0(t){E("readable nexttick read 0"),t.read(0)}O.prototype.resume=function(){var t=this._readableState;return t.flowing||(E("resume"),t.flowing=!t.readableListening,k0(this,t)),t.paused=!1,this};function k0(t,e){e.resumeScheduled||(e.resumeScheduled=!0,process.nextTick(R0,t,e))}function R0(t,e){E("resume",e.reading),e.reading||t.read(0),e.resumeScheduled=!1,t.emit("resume"),pn(t),e.flowing&&!e.reading&&t.read(0)}O.prototype.pause=function(){return E("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(E("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function pn(t){var e=t._readableState;for(E("flow",e.flowing);e.flowing&&t.read()!==null;);}O.prototype.wrap=function(t){var e=this,r=this._readableState,i=!1;t.on("end",function(){if(E("wrapped end"),r.decoder&&!r.ended){var a=r.decoder.end();a&&a.length&&e.push(a)}e.push(null)}),t.on("data",function(a){if(E("wrapped data"),r.decoder&&(a=r.decoder.write(a)),!(r.objectMode&&a==null)&&!(!r.objectMode&&(!a||!a.length))){var o=e.push(a);o||(i=!0,t.pause())}});for(var n in t)this[n]===void 0&&typeof t[n]=="function"&&(this[n]=function(o){return function(){return t[o].apply(t,arguments)}}(n));for(var s=0;s<un.length;s++)t.on(un[s],this.emit.bind(this,un[s]));return this._read=function(a){E("wrapped _read",a),i&&(i=!1,t.resume())},this};typeof Symbol=="function"&&(O.prototype[Symbol.asyncIterator]=function(){return on===void 0&&(on=Sl()),on(this)});Object.defineProperty(O.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}});Object.defineProperty(O.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}});Object.defineProperty(O.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}});O._fromList=Nl;Object.defineProperty(O.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function Nl(t,e){if(e.length===0)return null;var r;return e.objectMode?r=e.buffer.shift():!t||t>=e.length?(e.decoder?r=e.buffer.join(""):e.buffer.length===1?r=e.buffer.first():r=e.buffer.concat(e.length),e.buffer.clear()):r=e.buffer.consume(t,e.decoder),r}function hn(t){var e=t._readableState;E("endReadable",e.endEmitted),e.endEmitted||(e.ended=!0,process.nextTick(A0,e,t))}function A0(t,e){if(E("endReadableNT",t.endEmitted,t.length),!t.endEmitted&&t.length===0&&(t.endEmitted=!0,e.readable=!1,e.emit("end"),t.autoDestroy)){var r=e._writableState;(!r||r.autoDestroy&&r.finished)&&e.destroy()}}typeof Symbol=="function"&&(O.from=function(t,e){return ln===void 0&&(ln=Rl()),ln(O,t,e)});function Bl(t,e){for(var r=0,i=t.length;r<i;r++)if(t[r]===e)return r;return-1}});var mn=m((zv,Fl)=>{"use strict";Fl.exports=he;var Ir=ye().codes,T0=Ir.ERR_METHOD_NOT_IMPLEMENTED,q0=Ir.ERR_MULTIPLE_CALLBACK,j0=Ir.ERR_TRANSFORM_ALREADY_TRANSFORMING,M0=Ir.ERR_TRANSFORM_WITH_LENGTH_0,Nr=Pe();be()(he,Nr);function P0(t,e){var r=this._transformState;r.transforming=!1;var i=r.writecb;if(i===null)return this.emit("error",new q0);r.writechunk=null,r.writecb=null,e!=null&&this.push(e),i(t);var n=this._readableState;n.reading=!1,(n.needReadable||n.length<n.highWaterMark)&&this._read(n.highWaterMark)}function he(t){if(!(this instanceof he))return new he(t);Nr.call(this,t),this._transformState={afterTransform:P0.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,t&&(typeof t.transform=="function"&&(this._transform=t.transform),typeof t.flush=="function"&&(this._flush=t.flush)),this.on("prefinish",I0)}function I0(){var t=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(e,r){Ll(t,e,r)}):Ll(this,null,null)}he.prototype.push=function(t,e){return this._transformState.needTransform=!1,Nr.prototype.push.call(this,t,e)};he.prototype._transform=function(t,e,r){r(new T0("_transform()"))};he.prototype._write=function(t,e,r){var i=this._transformState;if(i.writecb=r,i.writechunk=t,i.writeencoding=e,!i.transforming){var n=this._readableState;(i.needTransform||n.needReadable||n.length<n.highWaterMark)&&this._read(n.highWaterMark)}};he.prototype._read=function(t){var e=this._transformState;e.writechunk!==null&&!e.transforming?(e.transforming=!0,this._transform(e.writechunk,e.writeencoding,e.afterTransform)):e.needTransform=!0};he.prototype._destroy=function(t,e){Nr.prototype._destroy.call(this,t,function(r){e(r)})};function Ll(t,e,r){if(e)return t.emit("error",e);if(r!=null&&t.push(r),t._writableState.length)throw new M0;if(t._transformState.transforming)throw new j0;return t.push(null)}});var Wl=m((Hv,Gl)=>{"use strict";Gl.exports=It;var $l=mn();be()(It,$l);function It(t){if(!(this instanceof It))return new It(t);$l.call(this,t)}It.prototype._transform=function(t,e,r){r(null,t)}});var Kl=m((Kv,Hl)=>{"use strict";var gn;function N0(t){var e=!1;return function(){e||(e=!0,t.apply(void 0,arguments))}}var zl=ye().codes,B0=zl.ERR_MISSING_ARGS,D0=zl.ERR_STREAM_DESTROYED;function Ul(t){if(t)throw t}function L0(t){return t.setHeader&&typeof t.abort=="function"}function F0(t,e,r,i){i=N0(i);var n=!1;t.on("close",function(){n=!0}),gn===void 0&&(gn=Ar()),gn(t,{readable:e,writable:r},function(a){if(a)return i(a);n=!0,i()});var s=!1;return function(a){if(!n&&!s){if(s=!0,L0(t))return t.abort();if(typeof t.destroy=="function")return t.destroy();i(a||new D0("pipe"))}}}function Vl(t){t()}function $0(t,e){return t.pipe(e)}function G0(t){return!t.length||typeof t[t.length-1]!="function"?Ul:t.pop()}function W0(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];var i=G0(e);if(Array.isArray(e[0])&&(e=e[0]),e.length<2)throw new B0("streams");var n,s=e.map(function(a,o){var l=o<e.length-1,u=o>0;return F0(a,l,u,function(h){n||(n=h),h&&s.forEach(Vl),!l&&(s.forEach(Vl),i(n))})});return e.reduce($0)}Hl.exports=W0});var Yl=m((Q,Bt)=>{var Nt=require("stream");process.env.READABLE_STREAM==="disable"&&Nt?(Bt.exports=Nt.Readable,Object.assign(Bt.exports,Nt),Bt.exports.Stream=Nt):(Q=Bt.exports=Ji(),Q.Stream=Nt||Q,Q.Readable=Q,Q.Writable=Xi(),Q.Duplex=Pe(),Q.Transform=mn(),Q.PassThrough=Wl(),Q.finished=Ar(),Q.pipeline=Kl())});var Ql=m((Yv,Zl)=>{"use strict";var{Buffer:re}=require("buffer"),Xl=Symbol.for("BufferList");function A(t){if(!(this instanceof A))return new A(t);A._init.call(this,t)}A._init=function(e){Object.defineProperty(this,Xl,{value:!0}),this._bufs=[],this.length=0,e&&this.append(e)};A.prototype._new=function(e){return new A(e)};A.prototype._offset=function(e){if(e===0)return[0,0];let r=0;for(let i=0;i<this._bufs.length;i++){let n=r+this._bufs[i].length;if(e<n||i===this._bufs.length-1)return[i,e-r];r=n}};A.prototype._reverseOffset=function(t){let e=t[0],r=t[1];for(let i=0;i<e;i++)r+=this._bufs[i].length;return r};A.prototype.get=function(e){if(e>this.length||e<0)return;let r=this._offset(e);return this._bufs[r[0]][r[1]]};A.prototype.slice=function(e,r){return typeof e=="number"&&e<0&&(e+=this.length),typeof r=="number"&&r<0&&(r+=this.length),this.copy(null,0,e,r)};A.prototype.copy=function(e,r,i,n){if((typeof i!="number"||i<0)&&(i=0),(typeof n!="number"||n>this.length)&&(n=this.length),i>=this.length||n<=0)return e||re.alloc(0);let s=!!e,a=this._offset(i),o=n-i,l=o,u=s&&r||0,h=a[1];if(i===0&&n===this.length){if(!s)return this._bufs.length===1?this._bufs[0]:re.concat(this._bufs,this.length);for(let c=0;c<this._bufs.length;c++)this._bufs[c].copy(e,u),u+=this._bufs[c].length;return e}if(l<=this._bufs[a[0]].length-h)return s?this._bufs[a[0]].copy(e,r,h,h+l):this._bufs[a[0]].slice(h,h+l);s||(e=re.allocUnsafe(o));for(let c=a[0];c<this._bufs.length;c++){let f=this._bufs[c].length-h;if(l>f)this._bufs[c].copy(e,u,h),u+=f;else{this._bufs[c].copy(e,u,h,h+l),u+=f;break}l-=f,h&&(h=0)}return e.length>u?e.slice(0,u):e};A.prototype.shallowSlice=function(e,r){if(e=e||0,r=typeof r!="number"?this.length:r,e<0&&(e+=this.length),r<0&&(r+=this.length),e===r)return this._new();let i=this._offset(e),n=this._offset(r),s=this._bufs.slice(i[0],n[0]+1);return n[1]===0?s.pop():s[s.length-1]=s[s.length-1].slice(0,n[1]),i[1]!==0&&(s[0]=s[0].slice(i[1])),this._new(s)};A.prototype.toString=function(e,r,i){return this.slice(r,i).toString(e)};A.prototype.consume=function(e){if(e=Math.trunc(e),Number.isNaN(e)||e<=0)return this;for(;this._bufs.length;)if(e>=this._bufs[0].length)e-=this._bufs[0].length,this.length-=this._bufs[0].length,this._bufs.shift();else{this._bufs[0]=this._bufs[0].slice(e),this.length-=e;break}return this};A.prototype.duplicate=function(){let e=this._new();for(let r=0;r<this._bufs.length;r++)e.append(this._bufs[r]);return e};A.prototype.append=function(e){if(e==null)return this;if(e.buffer)this._appendBuffer(re.from(e.buffer,e.byteOffset,e.byteLength));else if(Array.isArray(e))for(let r=0;r<e.length;r++)this.append(e[r]);else if(this._isBufferList(e))for(let r=0;r<e._bufs.length;r++)this.append(e._bufs[r]);else typeof e=="number"&&(e=e.toString()),this._appendBuffer(re.from(e));return this};A.prototype._appendBuffer=function(e){this._bufs.push(e),this.length+=e.length};A.prototype.indexOf=function(t,e,r){if(r===void 0&&typeof e=="string"&&(r=e,e=void 0),typeof t=="function"||Array.isArray(t))throw new TypeError('The "value" argument must be one of type string, Buffer, BufferList, or Uint8Array.');if(typeof t=="number"?t=re.from([t]):typeof t=="string"?t=re.from(t,r):this._isBufferList(t)?t=t.slice():Array.isArray(t.buffer)?t=re.from(t.buffer,t.byteOffset,t.byteLength):re.isBuffer(t)||(t=re.from(t)),e=Number(e||0),isNaN(e)&&(e=0),e<0&&(e=this.length+e),e<0&&(e=0),t.length===0)return e>this.length?this.length:e;let i=this._offset(e),n=i[0],s=i[1];for(;n<this._bufs.length;n++){let a=this._bufs[n];for(;s<a.length;)if(a.length-s>=t.length){let l=a.indexOf(t,s);if(l!==-1)return this._reverseOffset([n,l]);s=a.length-t.length+1}else{let l=this._reverseOffset([n,s]);if(this._match(l,t))return l;s++}s=0}return-1};A.prototype._match=function(t,e){if(this.length-t<e.length)return!1;for(let r=0;r<e.length;r++)if(this.get(t+r)!==e[r])return!1;return!0};(function(){let t={readDoubleBE:8,readDoubleLE:8,readFloatBE:4,readFloatLE:4,readInt32BE:4,readInt32LE:4,readUInt32BE:4,readUInt32LE:4,readInt16BE:2,readInt16LE:2,readUInt16BE:2,readUInt16LE:2,readInt8:1,readUInt8:1,readIntBE:null,readIntLE:null,readUIntBE:null,readUIntLE:null};for(let e in t)(function(r){t[r]===null?A.prototype[r]=function(i,n){return this.slice(i,i+n)[r](0,n)}:A.prototype[r]=function(i=0){return this.slice(i,i+t[r])[r](0)}})(e)})();A.prototype._isBufferList=function(e){return e instanceof A||A.isBufferList(e)};A.isBufferList=function(e){return e!=null&&e[Xl]};Zl.exports=A});var Jl=m((Xv,Br)=>{"use strict";var yn=Yl().Duplex,U0=be(),Dt=Ql();function G(t){if(!(this instanceof G))return new G(t);if(typeof t=="function"){this._callback=t;let e=function(i){this._callback&&(this._callback(i),this._callback=null)}.bind(this);this.on("pipe",function(i){i.on("error",e)}),this.on("unpipe",function(i){i.removeListener("error",e)}),t=null}Dt._init.call(this,t),yn.call(this)}U0(G,yn);Object.assign(G.prototype,Dt.prototype);G.prototype._new=function(e){return new G(e)};G.prototype._write=function(e,r,i){this._appendBuffer(e),typeof i=="function"&&i()};G.prototype._read=function(e){if(!this.length)return this.push(null);e=Math.min(e,this.length),this.push(this.slice(0,e)),this.consume(e)};G.prototype.end=function(e){yn.prototype.end.call(this,e),this._callback&&(this._callback(null,this.slice()),this._callback=null)};G.prototype._destroy=function(e,r){this._bufs.length=0,this.length=0,r(e)};G.prototype._isBufferList=function(e){return e instanceof G||e instanceof Dt||G.isBufferList(e)};G.isBufferList=Dt.isBufferList;Br.exports=G;Br.exports.BufferListStream=G;Br.exports.BufferList=Dt});var Lt=m((Zv,_n)=>{"use strict";var V0=require("readline"),z0=ur(),eu=xo(),Dr=Co(),Lr=To(),H0=ce(),K0=Go(),Y0=Uo(),{BufferListStream:X0}=Jl(),bn=Symbol("text"),vn=Symbol("prefixText"),Z0=3,Q0=()=>process.platform!=="win32"||process.env.TERM_PROGRAM==="vscode"||!!process.env.WT_SESSION,wn=class{constructor(){this.requests=0,this.mutedStream=new X0,this.mutedStream.pipe(process.stdout);let e=this;this.ourEmit=function(r,i,...n){let{stdin:s}=process;if(e.requests>0||s.emit===e.ourEmit){if(r==="keypress")return;r==="data"&&i.includes(Z0)&&process.emit("SIGINT"),Reflect.apply(e.oldEmit,this,[r,i,...n])}else Reflect.apply(process.stdin.emit,this,[r,i,...n])}}start(){this.requests++,this.requests===1&&this.realStart()}stop(){if(this.requests<=0)throw new Error("`stop` called more times than `start`");this.requests--,this.requests===0&&this.realStop()}realStart(){process.platform!=="win32"&&(this.rl=V0.createInterface({input:process.stdin,output:this.mutedStream}),this.rl.on("SIGINT",()=>{process.listenerCount("SIGINT")===0?process.emit("SIGINT"):(this.rl.close(),process.kill(process.pid,"SIGINT"))}))}realStop(){process.platform!=="win32"&&(this.rl.close(),this.rl=void 0)}},Fr,$r=class{constructor(e){Fr||(Fr=new wn),typeof e=="string"&&(e={text:e}),this.options={text:"",color:"cyan",stream:process.stderr,discardStdin:!0,...e},this.spinner=this.options.spinner,this.color=this.options.color,this.hideCursor=this.options.hideCursor!==!1,this.interval=this.options.interval||this.spinner.interval||100,this.stream=this.options.stream,this.id=void 0,this.isEnabled=typeof this.options.isEnabled=="boolean"?this.options.isEnabled:Y0({stream:this.stream}),this.isSilent=typeof this.options.isSilent=="boolean"?this.options.isSilent:!1,this.text=this.options.text,this.prefixText=this.options.prefixText,this.linesToClear=0,this.indent=this.options.indent,this.discardStdin=this.options.discardStdin,this.isDiscardingStdin=!1}get indent(){return this._indent}set indent(e=0){if(!(e>=0&&Number.isInteger(e)))throw new Error("The `indent` option must be an integer from 0 and up");this._indent=e}_updateInterval(e){e!==void 0&&(this.interval=e)}get spinner(){return this._spinner}set spinner(e){if(this.frameIndex=0,typeof e=="object"){if(e.frames===void 0)throw new Error("The given spinner must have a `frames` property");this._spinner=e}else if(!Q0())this._spinner=Dr.line;else if(e===void 0)this._spinner=Dr.dots;else if(Dr[e])this._spinner=Dr[e];else throw new Error(`There is no built-in spinner named '${e}'. See https://github.com/sindresorhus/cli-spinners/blob/master/spinners.json for a full list.`);this._updateInterval(this._spinner.interval)}get text(){return this[bn]}set text(e){this[bn]=e,this.updateLineCount()}get prefixText(){return this[vn]}set prefixText(e){this[vn]=e,this.updateLineCount()}get isSpinning(){return this.id!==void 0}getFullPrefixText(e=this[vn],r=" "){return typeof e=="string"?e+r:typeof e=="function"?e()+r:""}updateLineCount(){let e=this.stream.columns||80,r=this.getFullPrefixText(this.prefixText,"-");this.lineCount=0;for(let i of H0(r+"--"+this[bn]).split(`
|
|
7
|
+
`);return s!==-1&&(e=_d(e,n,i,s)),i+e+n},Ti,ao=(t,...e)=>{let[r]=e;if(!sr(r)||!sr(r.raw))return e.join(" ");let i=e.slice(1),n=[r.raw[0]];for(let s=1;s<r.length;s++)n.push(String(i[s-1]).replace(/[{}\\]/g,"\\$&"),String(r.raw[s]));return Ti===void 0&&(Ti=to()),Ti(t,n.join(""))};Object.defineProperties(ar.prototype,Ze);var lr=ar();lr.supportsColor=qi;lr.stderr=ar({level:ji?ji.level:0});lr.stderr.supportsColor=ji;oo.exports=lr});var lo=m(cr=>{"use strict";Object.defineProperty(cr,"__esModule",{value:!0});cr.isCI=void 0;function Sd(){return process.env.CI==="true"||process.env.TF_BUILD==="true"||process.env.GITHUB_ACTIONS==="true"||process.env.BUILDKITE==="true"||process.env.CIRCLECI==="true"||process.env.CIRRUS_CI==="true"||process.env.TRAVIS==="true"||!!process.env["bamboo.buildKey"]||!!process.env.CODEBUILD_BUILD_ID||!!process.env.GITLAB_CI||!!process.env.HEROKU_TEST_RUN_ID||!!process.env.BUILD_ID||!!process.env.BUILD_BUILDID||!!process.env.TEAMCITY_VERSION}cr.isCI=Sd});var ue=m(fr=>{"use strict";Object.defineProperty(fr,"__esModule",{value:!0});fr.output=void 0;var M=ur(),hr=require("os"),Od=lo();(0,Od.isCI)()&&(M.level=0);var Ii=class{constructor(){this.X_PADDING=" ",this.colors={gray:M.gray,green:M.green,red:M.red,cyan:M.cyan,white:M.white},this.bold=M.bold,this.underline=M.underline,this.dim=M.dim,this.cliName="NX"}get VERTICAL_SEPARATOR(){let e="";for(let r=0;r<process.stdout.columns-this.X_PADDING.length*2;r++)e+="\u2014";return e}writeToStdOut(e){process.stdout.write(e)}writeOutputTitle({color:e,title:r}){this.writeToStdOut(` ${this.applyCLIPrefix(e,r)}${hr.EOL}`)}writeOptionalOutputBody(e){e&&(this.addNewline(),e.forEach(r=>this.writeToStdOut(` ${r}${hr.EOL}`)))}setCliName(e){this.cliName=e}applyCLIPrefix(e="cyan",r){let i="";return M[e]?i=`${M[e](">")} ${M.reset.inverse.bold[e](` ${this.cliName} `)}`:i=`${M.keyword(e)(">")} ${M.reset.inverse.bold.keyword(e)(` ${this.cliName} `)}`,`${i} ${r}`}addNewline(){this.writeToStdOut(hr.EOL)}addVerticalSeparator(e="gray"){this.addNewline(),this.addVerticalSeparatorWithoutNewLines(e),this.addNewline()}addVerticalSeparatorWithoutNewLines(e="gray"){this.writeToStdOut(`${this.X_PADDING}${M.dim[e](this.VERTICAL_SEPARATOR)}${hr.EOL}`)}error({title:e,bodyLines:r}){this.addNewline(),this.writeOutputTitle({color:"red",title:M.red(e)}),this.writeOptionalOutputBody(r),this.addNewline()}warn({title:e,bodyLines:r}){this.addNewline(),this.writeOutputTitle({color:"yellow",title:M.yellow(e)}),this.writeOptionalOutputBody(r),this.addNewline()}note({title:e,bodyLines:r}){this.addNewline(),this.writeOutputTitle({color:"orange",title:M.keyword("orange")(e)}),this.writeOptionalOutputBody(r),this.addNewline()}success({title:e,bodyLines:r}){this.addNewline(),this.writeOutputTitle({color:"green",title:M.green(e)}),this.writeOptionalOutputBody(r),this.addNewline()}logSingleLine(e){this.addNewline(),this.writeOutputTitle({color:"gray",title:e}),this.addNewline()}log({title:e,bodyLines:r,color:i}){this.addNewline(),this.writeOutputTitle({color:"cyan",title:i?M[i](e):e}),this.writeOptionalOutputBody(r),this.addNewline()}};fr.output=new Ii});var co=m((dv,Ni)=>{"use strict";var uo=(t,e)=>{for(let r of Reflect.ownKeys(e))Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r));return t};Ni.exports=uo;Ni.exports.default=uo});var fo=m((pv,pr)=>{"use strict";var Cd=co(),dr=new WeakMap,ho=(t,e={})=>{if(typeof t!="function")throw new TypeError("Expected a function");let r,i=0,n=t.displayName||t.name||"<anonymous>",s=function(...a){if(dr.set(s,++i),i===1)r=t.apply(this,a),t=null;else if(e.throw===!0)throw new Error(`Function \`${n}\` can only be called once`);return r};return Cd(s,t),dr.set(s,i),s};pr.exports=ho;pr.exports.default=ho;pr.exports.callCount=t=>{if(!dr.has(t))throw new Error(`The given function \`${t.name}\` is not wrapped by the \`onetime\` package`);return dr.get(t)}});var po=m((mv,mr)=>{mr.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"];process.platform!=="win32"&&mr.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT");process.platform==="linux"&&mr.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")});var vo=m((gv,et)=>{var T=global.process,qe=function(t){return t&&typeof t=="object"&&typeof t.removeListener=="function"&&typeof t.emit=="function"&&typeof t.reallyExit=="function"&&typeof t.listeners=="function"&&typeof t.kill=="function"&&typeof t.pid=="number"&&typeof t.on=="function"};qe(T)?(mo=require("assert"),Qe=po(),go=/^win/i.test(T.platform),kt=require("events"),typeof kt!="function"&&(kt=kt.EventEmitter),T.__signal_exit_emitter__?D=T.__signal_exit_emitter__:(D=T.__signal_exit_emitter__=new kt,D.count=0,D.emitted={}),D.infinite||(D.setMaxListeners(1/0),D.infinite=!0),et.exports=function(t,e){if(!qe(global.process))return function(){};mo.equal(typeof t,"function","a callback must be provided for exit handler"),Je===!1&&Bi();var r="exit";e&&e.alwaysLast&&(r="afterexit");var i=function(){D.removeListener(r,t),D.listeners("exit").length===0&&D.listeners("afterexit").length===0&&gr()};return D.on(r,t),i},gr=function(){!Je||!qe(global.process)||(Je=!1,Qe.forEach(function(e){try{T.removeListener(e,yr[e])}catch{}}),T.emit=br,T.reallyExit=Di,D.count-=1)},et.exports.unload=gr,je=function(e,r,i){D.emitted[e]||(D.emitted[e]=!0,D.emit(e,r,i))},yr={},Qe.forEach(function(t){yr[t]=function(){if(qe(global.process)){var r=T.listeners(t);r.length===D.count&&(gr(),je("exit",null,t),je("afterexit",null,t),go&&t==="SIGHUP"&&(t="SIGINT"),T.kill(T.pid,t))}}}),et.exports.signals=function(){return Qe},Je=!1,Bi=function(){Je||!qe(global.process)||(Je=!0,D.count+=1,Qe=Qe.filter(function(e){try{return T.on(e,yr[e]),!0}catch{return!1}}),T.emit=bo,T.reallyExit=yo)},et.exports.load=Bi,Di=T.reallyExit,yo=function(e){qe(global.process)&&(T.exitCode=e||0,je("exit",T.exitCode,null),je("afterexit",T.exitCode,null),Di.call(T,T.exitCode))},br=T.emit,bo=function(e,r){if(e==="exit"&&qe(global.process)){r!==void 0&&(T.exitCode=r);var i=br.apply(this,arguments);return je("exit",T.exitCode,null),je("afterexit",T.exitCode,null),i}else return br.apply(this,arguments)}):et.exports=function(){return function(){}};var mo,Qe,go,kt,D,gr,je,yr,Je,Bi,Di,yo,br,bo});var _o=m((yv,wo)=>{"use strict";var kd=fo(),Rd=vo();wo.exports=kd(()=>{Rd(()=>{process.stderr.write("\x1B[?25h")},{alwaysLast:!0})})});var xo=m(tt=>{"use strict";var Ad=_o(),vr=!1;tt.show=(t=process.stderr)=>{t.isTTY&&(vr=!1,t.write("\x1B[?25h"))};tt.hide=(t=process.stderr)=>{t.isTTY&&(Ad(),vr=!0,t.write("\x1B[?25l"))};tt.toggle=(t,e)=>{t!==void 0&&(vr=t),vr?tt.show(e):tt.hide(e)}});var Eo=m((vv,Td)=>{Td.exports={dots:{interval:80,frames:["\u280B","\u2819","\u2839","\u2838","\u283C","\u2834","\u2826","\u2827","\u2807","\u280F"]},dots2:{interval:80,frames:["\u28FE","\u28FD","\u28FB","\u28BF","\u287F","\u28DF","\u28EF","\u28F7"]},dots3:{interval:80,frames:["\u280B","\u2819","\u281A","\u281E","\u2816","\u2826","\u2834","\u2832","\u2833","\u2813"]},dots4:{interval:80,frames:["\u2804","\u2806","\u2807","\u280B","\u2819","\u2838","\u2830","\u2820","\u2830","\u2838","\u2819","\u280B","\u2807","\u2806"]},dots5:{interval:80,frames:["\u280B","\u2819","\u281A","\u2812","\u2802","\u2802","\u2812","\u2832","\u2834","\u2826","\u2816","\u2812","\u2810","\u2810","\u2812","\u2813","\u280B"]},dots6:{interval:80,frames:["\u2801","\u2809","\u2819","\u281A","\u2812","\u2802","\u2802","\u2812","\u2832","\u2834","\u2824","\u2804","\u2804","\u2824","\u2834","\u2832","\u2812","\u2802","\u2802","\u2812","\u281A","\u2819","\u2809","\u2801"]},dots7:{interval:80,frames:["\u2808","\u2809","\u280B","\u2813","\u2812","\u2810","\u2810","\u2812","\u2816","\u2826","\u2824","\u2820","\u2820","\u2824","\u2826","\u2816","\u2812","\u2810","\u2810","\u2812","\u2813","\u280B","\u2809","\u2808"]},dots8:{interval:80,frames:["\u2801","\u2801","\u2809","\u2819","\u281A","\u2812","\u2802","\u2802","\u2812","\u2832","\u2834","\u2824","\u2804","\u2804","\u2824","\u2820","\u2820","\u2824","\u2826","\u2816","\u2812","\u2810","\u2810","\u2812","\u2813","\u280B","\u2809","\u2808","\u2808"]},dots9:{interval:80,frames:["\u28B9","\u28BA","\u28BC","\u28F8","\u28C7","\u2867","\u2857","\u284F"]},dots10:{interval:80,frames:["\u2884","\u2882","\u2881","\u2841","\u2848","\u2850","\u2860"]},dots11:{interval:100,frames:["\u2801","\u2802","\u2804","\u2840","\u2880","\u2820","\u2810","\u2808"]},dots12:{interval:80,frames:["\u2880\u2800","\u2840\u2800","\u2804\u2800","\u2882\u2800","\u2842\u2800","\u2805\u2800","\u2883\u2800","\u2843\u2800","\u280D\u2800","\u288B\u2800","\u284B\u2800","\u280D\u2801","\u288B\u2801","\u284B\u2801","\u280D\u2809","\u280B\u2809","\u280B\u2809","\u2809\u2819","\u2809\u2819","\u2809\u2829","\u2808\u2899","\u2808\u2859","\u2888\u2829","\u2840\u2899","\u2804\u2859","\u2882\u2829","\u2842\u2898","\u2805\u2858","\u2883\u2828","\u2843\u2890","\u280D\u2850","\u288B\u2820","\u284B\u2880","\u280D\u2841","\u288B\u2801","\u284B\u2801","\u280D\u2809","\u280B\u2809","\u280B\u2809","\u2809\u2819","\u2809\u2819","\u2809\u2829","\u2808\u2899","\u2808\u2859","\u2808\u2829","\u2800\u2899","\u2800\u2859","\u2800\u2829","\u2800\u2898","\u2800\u2858","\u2800\u2828","\u2800\u2890","\u2800\u2850","\u2800\u2820","\u2800\u2880","\u2800\u2840"]},dots13:{interval:80,frames:["\u28FC","\u28F9","\u28BB","\u283F","\u285F","\u28CF","\u28E7","\u28F6"]},dots8Bit:{interval:80,frames:["\u2800","\u2801","\u2802","\u2803","\u2804","\u2805","\u2806","\u2807","\u2840","\u2841","\u2842","\u2843","\u2844","\u2845","\u2846","\u2847","\u2808","\u2809","\u280A","\u280B","\u280C","\u280D","\u280E","\u280F","\u2848","\u2849","\u284A","\u284B","\u284C","\u284D","\u284E","\u284F","\u2810","\u2811","\u2812","\u2813","\u2814","\u2815","\u2816","\u2817","\u2850","\u2851","\u2852","\u2853","\u2854","\u2855","\u2856","\u2857","\u2818","\u2819","\u281A","\u281B","\u281C","\u281D","\u281E","\u281F","\u2858","\u2859","\u285A","\u285B","\u285C","\u285D","\u285E","\u285F","\u2820","\u2821","\u2822","\u2823","\u2824","\u2825","\u2826","\u2827","\u2860","\u2861","\u2862","\u2863","\u2864","\u2865","\u2866","\u2867","\u2828","\u2829","\u282A","\u282B","\u282C","\u282D","\u282E","\u282F","\u2868","\u2869","\u286A","\u286B","\u286C","\u286D","\u286E","\u286F","\u2830","\u2831","\u2832","\u2833","\u2834","\u2835","\u2836","\u2837","\u2870","\u2871","\u2872","\u2873","\u2874","\u2875","\u2876","\u2877","\u2838","\u2839","\u283A","\u283B","\u283C","\u283D","\u283E","\u283F","\u2878","\u2879","\u287A","\u287B","\u287C","\u287D","\u287E","\u287F","\u2880","\u2881","\u2882","\u2883","\u2884","\u2885","\u2886","\u2887","\u28C0","\u28C1","\u28C2","\u28C3","\u28C4","\u28C5","\u28C6","\u28C7","\u2888","\u2889","\u288A","\u288B","\u288C","\u288D","\u288E","\u288F","\u28C8","\u28C9","\u28CA","\u28CB","\u28CC","\u28CD","\u28CE","\u28CF","\u2890","\u2891","\u2892","\u2893","\u2894","\u2895","\u2896","\u2897","\u28D0","\u28D1","\u28D2","\u28D3","\u28D4","\u28D5","\u28D6","\u28D7","\u2898","\u2899","\u289A","\u289B","\u289C","\u289D","\u289E","\u289F","\u28D8","\u28D9","\u28DA","\u28DB","\u28DC","\u28DD","\u28DE","\u28DF","\u28A0","\u28A1","\u28A2","\u28A3","\u28A4","\u28A5","\u28A6","\u28A7","\u28E0","\u28E1","\u28E2","\u28E3","\u28E4","\u28E5","\u28E6","\u28E7","\u28A8","\u28A9","\u28AA","\u28AB","\u28AC","\u28AD","\u28AE","\u28AF","\u28E8","\u28E9","\u28EA","\u28EB","\u28EC","\u28ED","\u28EE","\u28EF","\u28B0","\u28B1","\u28B2","\u28B3","\u28B4","\u28B5","\u28B6","\u28B7","\u28F0","\u28F1","\u28F2","\u28F3","\u28F4","\u28F5","\u28F6","\u28F7","\u28B8","\u28B9","\u28BA","\u28BB","\u28BC","\u28BD","\u28BE","\u28BF","\u28F8","\u28F9","\u28FA","\u28FB","\u28FC","\u28FD","\u28FE","\u28FF"]},sand:{interval:80,frames:["\u2801","\u2802","\u2804","\u2840","\u2848","\u2850","\u2860","\u28C0","\u28C1","\u28C2","\u28C4","\u28CC","\u28D4","\u28E4","\u28E5","\u28E6","\u28EE","\u28F6","\u28F7","\u28FF","\u287F","\u283F","\u289F","\u281F","\u285B","\u281B","\u282B","\u288B","\u280B","\u280D","\u2849","\u2809","\u2811","\u2821","\u2881"]},line:{interval:130,frames:["-","\\","|","/"]},line2:{interval:100,frames:["\u2802","-","\u2013","\u2014","\u2013","-"]},pipe:{interval:100,frames:["\u2524","\u2518","\u2534","\u2514","\u251C","\u250C","\u252C","\u2510"]},simpleDots:{interval:400,frames:[". ",".. ","..."," "]},simpleDotsScrolling:{interval:200,frames:[". ",".. ","..."," .."," ."," "]},star:{interval:70,frames:["\u2736","\u2738","\u2739","\u273A","\u2739","\u2737"]},star2:{interval:80,frames:["+","x","*"]},flip:{interval:70,frames:["_","_","_","-","`","`","'","\xB4","-","_","_","_"]},hamburger:{interval:100,frames:["\u2631","\u2632","\u2634"]},growVertical:{interval:120,frames:["\u2581","\u2583","\u2584","\u2585","\u2586","\u2587","\u2586","\u2585","\u2584","\u2583"]},growHorizontal:{interval:120,frames:["\u258F","\u258E","\u258D","\u258C","\u258B","\u258A","\u2589","\u258A","\u258B","\u258C","\u258D","\u258E"]},balloon:{interval:140,frames:[" ",".","o","O","@","*"," "]},balloon2:{interval:120,frames:[".","o","O","\xB0","O","o","."]},noise:{interval:100,frames:["\u2593","\u2592","\u2591"]},bounce:{interval:120,frames:["\u2801","\u2802","\u2804","\u2802"]},boxBounce:{interval:120,frames:["\u2596","\u2598","\u259D","\u2597"]},boxBounce2:{interval:100,frames:["\u258C","\u2580","\u2590","\u2584"]},triangle:{interval:50,frames:["\u25E2","\u25E3","\u25E4","\u25E5"]},binary:{interval:80,frames:["010010","001100","100101","111010","111101","010111","101011","111000","110011","110101"]},arc:{interval:100,frames:["\u25DC","\u25E0","\u25DD","\u25DE","\u25E1","\u25DF"]},circle:{interval:120,frames:["\u25E1","\u2299","\u25E0"]},squareCorners:{interval:180,frames:["\u25F0","\u25F3","\u25F2","\u25F1"]},circleQuarters:{interval:120,frames:["\u25F4","\u25F7","\u25F6","\u25F5"]},circleHalves:{interval:50,frames:["\u25D0","\u25D3","\u25D1","\u25D2"]},squish:{interval:100,frames:["\u256B","\u256A"]},toggle:{interval:250,frames:["\u22B6","\u22B7"]},toggle2:{interval:80,frames:["\u25AB","\u25AA"]},toggle3:{interval:120,frames:["\u25A1","\u25A0"]},toggle4:{interval:100,frames:["\u25A0","\u25A1","\u25AA","\u25AB"]},toggle5:{interval:100,frames:["\u25AE","\u25AF"]},toggle6:{interval:300,frames:["\u101D","\u1040"]},toggle7:{interval:80,frames:["\u29BE","\u29BF"]},toggle8:{interval:100,frames:["\u25CD","\u25CC"]},toggle9:{interval:100,frames:["\u25C9","\u25CE"]},toggle10:{interval:100,frames:["\u3282","\u3280","\u3281"]},toggle11:{interval:50,frames:["\u29C7","\u29C6"]},toggle12:{interval:120,frames:["\u2617","\u2616"]},toggle13:{interval:80,frames:["=","*","-"]},arrow:{interval:100,frames:["\u2190","\u2196","\u2191","\u2197","\u2192","\u2198","\u2193","\u2199"]},arrow2:{interval:80,frames:["\u2B06\uFE0F ","\u2197\uFE0F ","\u27A1\uFE0F ","\u2198\uFE0F ","\u2B07\uFE0F ","\u2199\uFE0F ","\u2B05\uFE0F ","\u2196\uFE0F "]},arrow3:{interval:120,frames:["\u25B9\u25B9\u25B9\u25B9\u25B9","\u25B8\u25B9\u25B9\u25B9\u25B9","\u25B9\u25B8\u25B9\u25B9\u25B9","\u25B9\u25B9\u25B8\u25B9\u25B9","\u25B9\u25B9\u25B9\u25B8\u25B9","\u25B9\u25B9\u25B9\u25B9\u25B8"]},bouncingBar:{interval:80,frames:["[ ]","[= ]","[== ]","[=== ]","[====]","[ ===]","[ ==]","[ =]","[ ]","[ =]","[ ==]","[ ===]","[====]","[=== ]","[== ]","[= ]"]},bouncingBall:{interval:80,frames:["( \u25CF )","( \u25CF )","( \u25CF )","( \u25CF )","( \u25CF)","( \u25CF )","( \u25CF )","( \u25CF )","( \u25CF )","(\u25CF )"]},smiley:{interval:200,frames:["\u{1F604} ","\u{1F61D} "]},monkey:{interval:300,frames:["\u{1F648} ","\u{1F648} ","\u{1F649} ","\u{1F64A} "]},hearts:{interval:100,frames:["\u{1F49B} ","\u{1F499} ","\u{1F49C} ","\u{1F49A} ","\u2764\uFE0F "]},clock:{interval:100,frames:["\u{1F55B} ","\u{1F550} ","\u{1F551} ","\u{1F552} ","\u{1F553} ","\u{1F554} ","\u{1F555} ","\u{1F556} ","\u{1F557} ","\u{1F558} ","\u{1F559} ","\u{1F55A} "]},earth:{interval:180,frames:["\u{1F30D} ","\u{1F30E} ","\u{1F30F} "]},material:{interval:17,frames:["\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588","\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581"]},moon:{interval:80,frames:["\u{1F311} ","\u{1F312} ","\u{1F313} ","\u{1F314} ","\u{1F315} ","\u{1F316} ","\u{1F317} ","\u{1F318} "]},runner:{interval:140,frames:["\u{1F6B6} ","\u{1F3C3} "]},pong:{interval:80,frames:["\u2590\u2802 \u258C","\u2590\u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802\u258C","\u2590 \u2820\u258C","\u2590 \u2840\u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590\u2820 \u258C"]},shark:{interval:120,frames:["\u2590|\\____________\u258C","\u2590_|\\___________\u258C","\u2590__|\\__________\u258C","\u2590___|\\_________\u258C","\u2590____|\\________\u258C","\u2590_____|\\_______\u258C","\u2590______|\\______\u258C","\u2590_______|\\_____\u258C","\u2590________|\\____\u258C","\u2590_________|\\___\u258C","\u2590__________|\\__\u258C","\u2590___________|\\_\u258C","\u2590____________|\\\u258C","\u2590____________/|\u258C","\u2590___________/|_\u258C","\u2590__________/|__\u258C","\u2590_________/|___\u258C","\u2590________/|____\u258C","\u2590_______/|_____\u258C","\u2590______/|______\u258C","\u2590_____/|_______\u258C","\u2590____/|________\u258C","\u2590___/|_________\u258C","\u2590__/|__________\u258C","\u2590_/|___________\u258C","\u2590/|____________\u258C"]},dqpb:{interval:100,frames:["d","q","p","b"]},weather:{interval:100,frames:["\u2600\uFE0F ","\u2600\uFE0F ","\u2600\uFE0F ","\u{1F324} ","\u26C5\uFE0F ","\u{1F325} ","\u2601\uFE0F ","\u{1F327} ","\u{1F328} ","\u{1F327} ","\u{1F328} ","\u{1F327} ","\u{1F328} ","\u26C8 ","\u{1F328} ","\u{1F327} ","\u{1F328} ","\u2601\uFE0F ","\u{1F325} ","\u26C5\uFE0F ","\u{1F324} ","\u2600\uFE0F ","\u2600\uFE0F "]},christmas:{interval:400,frames:["\u{1F332}","\u{1F384}"]},grenade:{interval:80,frames:["\u060C ","\u2032 "," \xB4 "," \u203E "," \u2E0C"," \u2E0A"," |"," \u204E"," \u2055"," \u0DF4 "," \u2053"," "," "," "]},point:{interval:125,frames:["\u2219\u2219\u2219","\u25CF\u2219\u2219","\u2219\u25CF\u2219","\u2219\u2219\u25CF","\u2219\u2219\u2219"]},layer:{interval:150,frames:["-","=","\u2261"]},betaWave:{interval:80,frames:["\u03C1\u03B2\u03B2\u03B2\u03B2\u03B2\u03B2","\u03B2\u03C1\u03B2\u03B2\u03B2\u03B2\u03B2","\u03B2\u03B2\u03C1\u03B2\u03B2\u03B2\u03B2","\u03B2\u03B2\u03B2\u03C1\u03B2\u03B2\u03B2","\u03B2\u03B2\u03B2\u03B2\u03C1\u03B2\u03B2","\u03B2\u03B2\u03B2\u03B2\u03B2\u03C1\u03B2","\u03B2\u03B2\u03B2\u03B2\u03B2\u03B2\u03C1"]},fingerDance:{interval:160,frames:["\u{1F918} ","\u{1F91F} ","\u{1F596} ","\u270B ","\u{1F91A} ","\u{1F446} "]},fistBump:{interval:80,frames:["\u{1F91C}\u3000\u3000\u3000\u3000\u{1F91B} ","\u{1F91C}\u3000\u3000\u3000\u3000\u{1F91B} ","\u{1F91C}\u3000\u3000\u3000\u3000\u{1F91B} ","\u3000\u{1F91C}\u3000\u3000\u{1F91B}\u3000 ","\u3000\u3000\u{1F91C}\u{1F91B}\u3000\u3000 ","\u3000\u{1F91C}\u2728\u{1F91B}\u3000\u3000 ","\u{1F91C}\u3000\u2728\u3000\u{1F91B}\u3000 "]},soccerHeader:{interval:80,frames:[" \u{1F9D1}\u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F\u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} "]},mindblown:{interval:160,frames:["\u{1F610} ","\u{1F610} ","\u{1F62E} ","\u{1F62E} ","\u{1F626} ","\u{1F626} ","\u{1F627} ","\u{1F627} ","\u{1F92F} ","\u{1F4A5} ","\u2728 ","\u3000 ","\u3000 ","\u3000 "]},speaker:{interval:160,frames:["\u{1F508} ","\u{1F509} ","\u{1F50A} ","\u{1F509} "]},orangePulse:{interval:100,frames:["\u{1F538} ","\u{1F536} ","\u{1F7E0} ","\u{1F7E0} ","\u{1F536} "]},bluePulse:{interval:100,frames:["\u{1F539} ","\u{1F537} ","\u{1F535} ","\u{1F535} ","\u{1F537} "]},orangeBluePulse:{interval:100,frames:["\u{1F538} ","\u{1F536} ","\u{1F7E0} ","\u{1F7E0} ","\u{1F536} ","\u{1F539} ","\u{1F537} ","\u{1F535} ","\u{1F535} ","\u{1F537} "]},timeTravel:{interval:100,frames:["\u{1F55B} ","\u{1F55A} ","\u{1F559} ","\u{1F558} ","\u{1F557} ","\u{1F556} ","\u{1F555} ","\u{1F554} ","\u{1F553} ","\u{1F552} ","\u{1F551} ","\u{1F550} "]},aesthetic:{interval:80,frames:["\u25B0\u25B1\u25B1\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B1\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B0\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B0\u25B0\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B0\u25B0\u25B0","\u25B0\u25B1\u25B1\u25B1\u25B1\u25B1\u25B1"]},dwarfFortress:{interval:80,frames:[" \u2588\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2588\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2588\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2593\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2593\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2592\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2592\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2591\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2591\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A \u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A \u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A \u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\u2588\xA3\xA3\xA3 "," \u263A \u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\xA3\xA3\xA3 "," \u263A \u2588\xA3\xA3\xA3 "," \u263A\u2588\xA3\xA3\xA3 "," \u263A\u2588\xA3\xA3\xA3 "," \u263A\u2593\xA3\xA3\xA3 "," \u263A\u2593\xA3\xA3\xA3 "," \u263A\u2592\xA3\xA3\xA3 "," \u263A\u2592\xA3\xA3\xA3 "," \u263A\u2591\xA3\xA3\xA3 "," \u263A\u2591\xA3\xA3\xA3 "," \u263A \xA3\xA3\xA3 "," \u263A\xA3\xA3\xA3 "," \u263A\xA3\xA3\xA3 "," \u263A\u2593\xA3\xA3 "," \u263A\u2593\xA3\xA3 "," \u263A\u2592\xA3\xA3 "," \u263A\u2592\xA3\xA3 "," \u263A\u2591\xA3\xA3 "," \u263A\u2591\xA3\xA3 "," \u263A \xA3\xA3 "," \u263A\xA3\xA3 "," \u263A\xA3\xA3 "," \u263A\u2593\xA3 "," \u263A\u2593\xA3 "," \u263A\u2592\xA3 "," \u263A\u2592\xA3 "," \u263A\u2591\xA3 "," \u263A\u2591\xA3 "," \u263A \xA3 "," \u263A\xA3 "," \u263A\xA3 "," \u263A\u2593 "," \u263A\u2593 "," \u263A\u2592 "," \u263A\u2592 "," \u263A\u2591 "," \u263A\u2591 "," \u263A "," \u263A &"," \u263A \u263C&"," \u263A \u263C &"," \u263A\u263C &"," \u263A\u263C & "," \u203C & "," \u263A & "," \u203C & "," \u263A & "," \u203C & "," \u263A & ","\u203C & "," & "," & "," & \u2591 "," & \u2592 "," & \u2593 "," & \xA3 "," & \u2591\xA3 "," & \u2592\xA3 "," & \u2593\xA3 "," & \xA3\xA3 "," & \u2591\xA3\xA3 "," & \u2592\xA3\xA3 ","& \u2593\xA3\xA3 ","& \xA3\xA3\xA3 "," \u2591\xA3\xA3\xA3 "," \u2592\xA3\xA3\xA3 "," \u2593\xA3\xA3\xA3 "," \u2588\xA3\xA3\xA3 "," \u2591\u2588\xA3\xA3\xA3 "," \u2592\u2588\xA3\xA3\xA3 "," \u2593\u2588\xA3\xA3\xA3 "," \u2588\u2588\xA3\xA3\xA3 "," \u2591\u2588\u2588\xA3\xA3\xA3 "," \u2592\u2588\u2588\xA3\xA3\xA3 "," \u2593\u2588\u2588\xA3\xA3\xA3 "," \u2588\u2588\u2588\xA3\xA3\xA3 "," \u2591\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2592\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2593\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2591\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2592\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2593\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2591\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2592\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2593\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2588\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2588\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "]}}});var Co=m((wv,Oo)=>{"use strict";var wr=Object.assign({},Eo()),So=Object.keys(wr);Object.defineProperty(wr,"random",{get(){let t=Math.floor(Math.random()*So.length),e=So[t];return wr[e]}});Oo.exports=wr});var Ro=m((_v,ko)=>{"use strict";ko.exports=()=>process.platform!=="win32"?!0:!!process.env.CI||!!process.env.WT_SESSION||process.env.TERM_PROGRAM==="vscode"||process.env.TERM==="xterm-256color"||process.env.TERM==="alacritty"});var To=m((xv,Ao)=>{"use strict";var ge=ur(),qd=Ro(),jd={info:ge.blue("\u2139"),success:ge.green("\u2714"),warning:ge.yellow("\u26A0"),error:ge.red("\u2716")},Md={info:ge.blue("i"),success:ge.green("\u221A"),warning:ge.yellow("\u203C"),error:ge.red("\xD7")};Ao.exports=qd()?jd:Md});var jo=m((Ev,qo)=>{"use strict";qo.exports=({onlyFirst:t=!1}={})=>{let e=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(e,t?void 0:"g")}});var ce=m((Sv,Mo)=>{"use strict";var Pd=jo();Mo.exports=t=>typeof t=="string"?t.replace(Pd(),""):t});var Po=m((Ov,_r)=>{var Id=function(){"use strict";function t(a,o,l,u){var h;typeof o=="object"&&(l=o.depth,u=o.prototype,h=o.filter,o=o.circular);var c=[],f=[],d=typeof Buffer<"u";typeof o>"u"&&(o=!0),typeof l>"u"&&(l=1/0);function p(g,b){if(g===null)return null;if(b==0)return g;var y,w;if(typeof g!="object")return g;if(t.__isArray(g))y=[];else if(t.__isRegExp(g))y=new RegExp(g.source,s(g)),g.lastIndex&&(y.lastIndex=g.lastIndex);else if(t.__isDate(g))y=new Date(g.getTime());else{if(d&&Buffer.isBuffer(g))return Buffer.allocUnsafe?y=Buffer.allocUnsafe(g.length):y=new Buffer(g.length),g.copy(y),y;typeof u>"u"?(w=Object.getPrototypeOf(g),y=Object.create(w)):(y=Object.create(u),w=u)}if(o){var _=c.indexOf(g);if(_!=-1)return f[_];c.push(g),f.push(y)}for(var x in g){var C;w&&(C=Object.getOwnPropertyDescriptor(w,x)),!(C&&C.set==null)&&(y[x]=p(g[x],b-1))}return y}return p(a,l)}t.clonePrototype=function(o){if(o===null)return null;var l=function(){};return l.prototype=o,new l};function e(a){return Object.prototype.toString.call(a)}t.__objToStr=e;function r(a){return typeof a=="object"&&e(a)==="[object Date]"}t.__isDate=r;function i(a){return typeof a=="object"&&e(a)==="[object Array]"}t.__isArray=i;function n(a){return typeof a=="object"&&e(a)==="[object RegExp]"}t.__isRegExp=n;function s(a){var o="";return a.global&&(o+="g"),a.ignoreCase&&(o+="i"),a.multiline&&(o+="m"),o}return t.__getRegExpFlags=s,t}();typeof _r=="object"&&_r.exports&&(_r.exports=Id)});var No=m((Cv,Io)=>{var Nd=Po();Io.exports=function(t,e){return t=t||{},Object.keys(e).forEach(function(r){typeof t[r]>"u"&&(t[r]=Nd(e[r]))}),t}});var Do=m((kv,Bo)=>{Bo.exports=[[768,879],[1155,1158],[1160,1161],[1425,1469],[1471,1471],[1473,1474],[1476,1477],[1479,1479],[1536,1539],[1552,1557],[1611,1630],[1648,1648],[1750,1764],[1767,1768],[1770,1773],[1807,1807],[1809,1809],[1840,1866],[1958,1968],[2027,2035],[2305,2306],[2364,2364],[2369,2376],[2381,2381],[2385,2388],[2402,2403],[2433,2433],[2492,2492],[2497,2500],[2509,2509],[2530,2531],[2561,2562],[2620,2620],[2625,2626],[2631,2632],[2635,2637],[2672,2673],[2689,2690],[2748,2748],[2753,2757],[2759,2760],[2765,2765],[2786,2787],[2817,2817],[2876,2876],[2879,2879],[2881,2883],[2893,2893],[2902,2902],[2946,2946],[3008,3008],[3021,3021],[3134,3136],[3142,3144],[3146,3149],[3157,3158],[3260,3260],[3263,3263],[3270,3270],[3276,3277],[3298,3299],[3393,3395],[3405,3405],[3530,3530],[3538,3540],[3542,3542],[3633,3633],[3636,3642],[3655,3662],[3761,3761],[3764,3769],[3771,3772],[3784,3789],[3864,3865],[3893,3893],[3895,3895],[3897,3897],[3953,3966],[3968,3972],[3974,3975],[3984,3991],[3993,4028],[4038,4038],[4141,4144],[4146,4146],[4150,4151],[4153,4153],[4184,4185],[4448,4607],[4959,4959],[5906,5908],[5938,5940],[5970,5971],[6002,6003],[6068,6069],[6071,6077],[6086,6086],[6089,6099],[6109,6109],[6155,6157],[6313,6313],[6432,6434],[6439,6440],[6450,6450],[6457,6459],[6679,6680],[6912,6915],[6964,6964],[6966,6970],[6972,6972],[6978,6978],[7019,7027],[7616,7626],[7678,7679],[8203,8207],[8234,8238],[8288,8291],[8298,8303],[8400,8431],[12330,12335],[12441,12442],[43014,43014],[43019,43019],[43045,43046],[64286,64286],[65024,65039],[65056,65059],[65279,65279],[65529,65531],[68097,68099],[68101,68102],[68108,68111],[68152,68154],[68159,68159],[119143,119145],[119155,119170],[119173,119179],[119210,119213],[119362,119364],[917505,917505],[917536,917631],[917760,917999]]});var Go=m((Rv,Li)=>{"use strict";var Bd=No(),Rt=Do(),Fo={nul:0,control:0};Li.exports=function(e){return $o(e,Fo)};Li.exports.config=function(t){return t=Bd(t||{},Fo),function(r){return $o(r,t)}};function $o(t,e){if(typeof t!="string")return Lo(t,e);for(var r=0,i=0;i<t.length;i++){var n=Lo(t.charCodeAt(i),e);if(n<0)return-1;r+=n}return r}function Lo(t,e){return t===0?e.nul:t<32||t>=127&&t<160?e.control:Dd(t)?0:1+(t>=4352&&(t<=4447||t==9001||t==9002||t>=11904&&t<=42191&&t!=12351||t>=44032&&t<=55203||t>=63744&&t<=64255||t>=65040&&t<=65049||t>=65072&&t<=65135||t>=65280&&t<=65376||t>=65504&&t<=65510||t>=131072&&t<=196605||t>=196608&&t<=262141))}function Dd(t){var e=0,r=Rt.length-1,i;if(t<Rt[0][0]||t>Rt[r][1])return!1;for(;r>=e;)if(i=Math.floor((e+r)/2),t>Rt[i][1])e=i+1;else if(t<Rt[i][0])r=i-1;else return!0;return!1}});var Uo=m((Av,Wo)=>{"use strict";Wo.exports=({stream:t=process.stdout}={})=>!!(t&&t.isTTY&&process.env.TERM!=="dumb"&&!("CI"in process.env))});var Fi=m((Tv,Vo)=>{Vo.exports=require("stream")});var Zo=m((qv,Xo)=>{"use strict";function zo(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable})),r.push.apply(r,i)}return r}function Ho(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?zo(Object(r),!0).forEach(function(i){Ld(t,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):zo(Object(r)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(r,i))})}return t}function Ld(t,e,r){return e=Yo(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Fd(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Ko(t,e){for(var r=0;r<e.length;r++){var i=e[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,Yo(i.key),i)}}function $d(t,e,r){return e&&Ko(t.prototype,e),r&&Ko(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function Yo(t){var e=Gd(t,"string");return typeof e=="symbol"?e:String(e)}function Gd(t,e){if(typeof t!="object"||t===null)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var i=r.call(t,e||"default");if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var Wd=require("buffer"),xr=Wd.Buffer,Ud=require("util"),$i=Ud.inspect,Vd=$i&&$i.custom||"inspect";function zd(t,e,r){xr.prototype.copy.call(t,e,r)}Xo.exports=function(){function t(){Fd(this,t),this.head=null,this.tail=null,this.length=0}return $d(t,[{key:"push",value:function(r){var i={data:r,next:null};this.length>0?this.tail.next=i:this.head=i,this.tail=i,++this.length}},{key:"unshift",value:function(r){var i={data:r,next:this.head};this.length===0&&(this.tail=i),this.head=i,++this.length}},{key:"shift",value:function(){if(this.length!==0){var r=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,r}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(r){if(this.length===0)return"";for(var i=this.head,n=""+i.data;i=i.next;)n+=r+i.data;return n}},{key:"concat",value:function(r){if(this.length===0)return xr.alloc(0);for(var i=xr.allocUnsafe(r>>>0),n=this.head,s=0;n;)zd(n.data,i,s),s+=n.data.length,n=n.next;return i}},{key:"consume",value:function(r,i){var n;return r<this.head.data.length?(n=this.head.data.slice(0,r),this.head.data=this.head.data.slice(r)):r===this.head.data.length?n=this.shift():n=i?this._getString(r):this._getBuffer(r),n}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(r){var i=this.head,n=1,s=i.data;for(r-=s.length;i=i.next;){var a=i.data,o=r>a.length?a.length:r;if(o===a.length?s+=a:s+=a.slice(0,r),r-=o,r===0){o===a.length?(++n,i.next?this.head=i.next:this.head=this.tail=null):(this.head=i,i.data=a.slice(o));break}++n}return this.length-=n,s}},{key:"_getBuffer",value:function(r){var i=xr.allocUnsafe(r),n=this.head,s=1;for(n.data.copy(i),r-=n.data.length;n=n.next;){var a=n.data,o=r>a.length?a.length:r;if(a.copy(i,i.length-r,0,o),r-=o,r===0){o===a.length?(++s,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=a.slice(o));break}++s}return this.length-=s,i}},{key:Vd,value:function(r,i){return $i(this,Ho(Ho({},i),{},{depth:0,customInspect:!1}))}}]),t}()});var Wi=m((jv,Jo)=>{"use strict";function Hd(t,e){var r=this,i=this._readableState&&this._readableState.destroyed,n=this._writableState&&this._writableState.destroyed;return i||n?(e?e(t):t&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(Gi,this,t)):process.nextTick(Gi,this,t)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,function(s){!e&&s?r._writableState?r._writableState.errorEmitted?process.nextTick(Er,r):(r._writableState.errorEmitted=!0,process.nextTick(Qo,r,s)):process.nextTick(Qo,r,s):e?(process.nextTick(Er,r),e(s)):process.nextTick(Er,r)}),this)}function Qo(t,e){Gi(t,e),Er(t)}function Er(t){t._writableState&&!t._writableState.emitClose||t._readableState&&!t._readableState.emitClose||t.emit("close")}function Kd(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function Gi(t,e){t.emit("error",e)}function Yd(t,e){var r=t._readableState,i=t._writableState;r&&r.autoDestroy||i&&i.autoDestroy?t.destroy(e):t.emit("error",e)}Jo.exports={destroy:Hd,undestroy:Kd,errorOrDestroy:Yd}});var ye=m((Mv,rl)=>{"use strict";var tl={};function Z(t,e,r){r||(r=Error);function i(s,a,o){return typeof e=="string"?e:e(s,a,o)}class n extends r{constructor(a,o,l){super(i(a,o,l))}}n.prototype.name=r.name,n.prototype.code=t,tl[t]=n}function el(t,e){if(Array.isArray(t)){let r=t.length;return t=t.map(i=>String(i)),r>2?`one of ${e} ${t.slice(0,r-1).join(", ")}, or `+t[r-1]:r===2?`one of ${e} ${t[0]} or ${t[1]}`:`of ${e} ${t[0]}`}else return`of ${e} ${String(t)}`}function Xd(t,e,r){return t.substr(!r||r<0?0:+r,e.length)===e}function Zd(t,e,r){return(r===void 0||r>t.length)&&(r=t.length),t.substring(r-e.length,r)===e}function Qd(t,e,r){return typeof r!="number"&&(r=0),r+e.length>t.length?!1:t.indexOf(e,r)!==-1}Z("ERR_INVALID_OPT_VALUE",function(t,e){return'The value "'+e+'" is invalid for option "'+t+'"'},TypeError);Z("ERR_INVALID_ARG_TYPE",function(t,e,r){let i;typeof e=="string"&&Xd(e,"not ")?(i="must not be",e=e.replace(/^not /,"")):i="must be";let n;if(Zd(t," argument"))n=`The ${t} ${i} ${el(e,"type")}`;else{let s=Qd(t,".")?"property":"argument";n=`The "${t}" ${s} ${i} ${el(e,"type")}`}return n+=`. Received type ${typeof r}`,n},TypeError);Z("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF");Z("ERR_METHOD_NOT_IMPLEMENTED",function(t){return"The "+t+" method is not implemented"});Z("ERR_STREAM_PREMATURE_CLOSE","Premature close");Z("ERR_STREAM_DESTROYED",function(t){return"Cannot call "+t+" after a stream was destroyed"});Z("ERR_MULTIPLE_CALLBACK","Callback called multiple times");Z("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable");Z("ERR_STREAM_WRITE_AFTER_END","write after end");Z("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);Z("ERR_UNKNOWN_ENCODING",function(t){return"Unknown encoding: "+t},TypeError);Z("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event");rl.exports.codes=tl});var Ui=m((Pv,il)=>{"use strict";var Jd=ye().codes.ERR_INVALID_OPT_VALUE;function ep(t,e,r){return t.highWaterMark!=null?t.highWaterMark:e?t[r]:null}function tp(t,e,r,i){var n=ep(e,i,r);if(n!=null){if(!(isFinite(n)&&Math.floor(n)===n)||n<0){var s=i?r:"highWaterMark";throw new Jd(s,n)}return Math.floor(n)}return t.objectMode?16:16*1024}il.exports={getHighWaterMark:tp}});var nl=m((Iv,Vi)=>{typeof Object.create=="function"?Vi.exports=function(e,r){r&&(e.super_=r,e.prototype=Object.create(r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:Vi.exports=function(e,r){if(r){e.super_=r;var i=function(){};i.prototype=r.prototype,e.prototype=new i,e.prototype.constructor=e}}});var be=m((Nv,Hi)=>{try{if(zi=require("util"),typeof zi.inherits!="function")throw"";Hi.exports=zi.inherits}catch{Hi.exports=nl()}var zi});var al=m((Bv,sl)=>{sl.exports=require("util").deprecate});var Xi=m((Dv,fl)=>{"use strict";fl.exports=j;function ll(t){var e=this;this.next=null,this.entry=null,this.finish=function(){Rp(e,t)}}var rt;j.WritableState=Tt;var rp={deprecate:al()},ul=Fi(),Or=require("buffer").Buffer,ip=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function np(t){return Or.from(t)}function sp(t){return Or.isBuffer(t)||t instanceof ip}var Yi=Wi(),ap=Ui(),op=ap.getHighWaterMark,ve=ye().codes,lp=ve.ERR_INVALID_ARG_TYPE,up=ve.ERR_METHOD_NOT_IMPLEMENTED,cp=ve.ERR_MULTIPLE_CALLBACK,hp=ve.ERR_STREAM_CANNOT_PIPE,fp=ve.ERR_STREAM_DESTROYED,dp=ve.ERR_STREAM_NULL_VALUES,pp=ve.ERR_STREAM_WRITE_AFTER_END,mp=ve.ERR_UNKNOWN_ENCODING,it=Yi.errorOrDestroy;be()(j,ul);function gp(){}function Tt(t,e,r){rt=rt||Me(),t=t||{},typeof r!="boolean"&&(r=e instanceof rt),this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.writableObjectMode),this.highWaterMark=op(this,t,"writableHighWaterMark",r),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var i=t.decodeStrings===!1;this.decodeStrings=!i,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(n){Ep(e,n)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=t.emitClose!==!1,this.autoDestroy=!!t.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new ll(this)}Tt.prototype.getBuffer=function(){for(var e=this.bufferedRequest,r=[];e;)r.push(e),e=e.next;return r};(function(){try{Object.defineProperty(Tt.prototype,"buffer",{get:rp.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})();var Sr;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(Sr=Function.prototype[Symbol.hasInstance],Object.defineProperty(j,Symbol.hasInstance,{value:function(e){return Sr.call(this,e)?!0:this!==j?!1:e&&e._writableState instanceof Tt}})):Sr=function(e){return e instanceof this};function j(t){rt=rt||Me();var e=this instanceof rt;if(!e&&!Sr.call(j,this))return new j(t);this._writableState=new Tt(t,this,e),this.writable=!0,t&&(typeof t.write=="function"&&(this._write=t.write),typeof t.writev=="function"&&(this._writev=t.writev),typeof t.destroy=="function"&&(this._destroy=t.destroy),typeof t.final=="function"&&(this._final=t.final)),ul.call(this)}j.prototype.pipe=function(){it(this,new hp)};function yp(t,e){var r=new pp;it(t,r),process.nextTick(e,r)}function bp(t,e,r,i){var n;return r===null?n=new dp:typeof r!="string"&&!e.objectMode&&(n=new lp("chunk",["string","Buffer"],r)),n?(it(t,n),process.nextTick(i,n),!1):!0}j.prototype.write=function(t,e,r){var i=this._writableState,n=!1,s=!i.objectMode&&sp(t);return s&&!Or.isBuffer(t)&&(t=np(t)),typeof e=="function"&&(r=e,e=null),s?e="buffer":e||(e=i.defaultEncoding),typeof r!="function"&&(r=gp),i.ending?yp(this,r):(s||bp(this,i,t,r))&&(i.pendingcb++,n=wp(this,i,s,t,e,r)),n};j.prototype.cork=function(){this._writableState.corked++};j.prototype.uncork=function(){var t=this._writableState;t.corked&&(t.corked--,!t.writing&&!t.corked&&!t.bufferProcessing&&t.bufferedRequest&&cl(this,t))};j.prototype.setDefaultEncoding=function(e){if(typeof e=="string"&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new mp(e);return this._writableState.defaultEncoding=e,this};Object.defineProperty(j.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function vp(t,e,r){return!t.objectMode&&t.decodeStrings!==!1&&typeof e=="string"&&(e=Or.from(e,r)),e}Object.defineProperty(j.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function wp(t,e,r,i,n,s){if(!r){var a=vp(e,i,n);i!==a&&(r=!0,n="buffer",i=a)}var o=e.objectMode?1:i.length;e.length+=o;var l=e.length<e.highWaterMark;if(l||(e.needDrain=!0),e.writing||e.corked){var u=e.lastBufferedRequest;e.lastBufferedRequest={chunk:i,encoding:n,isBuf:r,callback:s,next:null},u?u.next=e.lastBufferedRequest:e.bufferedRequest=e.lastBufferedRequest,e.bufferedRequestCount+=1}else Ki(t,e,!1,o,i,n,s);return l}function Ki(t,e,r,i,n,s,a){e.writelen=i,e.writecb=a,e.writing=!0,e.sync=!0,e.destroyed?e.onwrite(new fp("write")):r?t._writev(n,e.onwrite):t._write(n,s,e.onwrite),e.sync=!1}function _p(t,e,r,i,n){--e.pendingcb,r?(process.nextTick(n,i),process.nextTick(At,t,e),t._writableState.errorEmitted=!0,it(t,i)):(n(i),t._writableState.errorEmitted=!0,it(t,i),At(t,e))}function xp(t){t.writing=!1,t.writecb=null,t.length-=t.writelen,t.writelen=0}function Ep(t,e){var r=t._writableState,i=r.sync,n=r.writecb;if(typeof n!="function")throw new cp;if(xp(r),e)_p(t,r,i,e,n);else{var s=hl(r)||t.destroyed;!s&&!r.corked&&!r.bufferProcessing&&r.bufferedRequest&&cl(t,r),i?process.nextTick(ol,t,r,s,n):ol(t,r,s,n)}}function ol(t,e,r,i){r||Sp(t,e),e.pendingcb--,i(),At(t,e)}function Sp(t,e){e.length===0&&e.needDrain&&(e.needDrain=!1,t.emit("drain"))}function cl(t,e){e.bufferProcessing=!0;var r=e.bufferedRequest;if(t._writev&&r&&r.next){var i=e.bufferedRequestCount,n=new Array(i),s=e.corkedRequestsFree;s.entry=r;for(var a=0,o=!0;r;)n[a]=r,r.isBuf||(o=!1),r=r.next,a+=1;n.allBuffers=o,Ki(t,e,!0,e.length,n,"",s.finish),e.pendingcb++,e.lastBufferedRequest=null,s.next?(e.corkedRequestsFree=s.next,s.next=null):e.corkedRequestsFree=new ll(e),e.bufferedRequestCount=0}else{for(;r;){var l=r.chunk,u=r.encoding,h=r.callback,c=e.objectMode?1:l.length;if(Ki(t,e,!1,c,l,u,h),r=r.next,e.bufferedRequestCount--,e.writing)break}r===null&&(e.lastBufferedRequest=null)}e.bufferedRequest=r,e.bufferProcessing=!1}j.prototype._write=function(t,e,r){r(new up("_write()"))};j.prototype._writev=null;j.prototype.end=function(t,e,r){var i=this._writableState;return typeof t=="function"?(r=t,t=null,e=null):typeof e=="function"&&(r=e,e=null),t!=null&&this.write(t,e),i.corked&&(i.corked=1,this.uncork()),i.ending||kp(this,i,r),this};Object.defineProperty(j.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function hl(t){return t.ending&&t.length===0&&t.bufferedRequest===null&&!t.finished&&!t.writing}function Op(t,e){t._final(function(r){e.pendingcb--,r&&it(t,r),e.prefinished=!0,t.emit("prefinish"),At(t,e)})}function Cp(t,e){!e.prefinished&&!e.finalCalled&&(typeof t._final=="function"&&!e.destroyed?(e.pendingcb++,e.finalCalled=!0,process.nextTick(Op,t,e)):(e.prefinished=!0,t.emit("prefinish")))}function At(t,e){var r=hl(e);if(r&&(Cp(t,e),e.pendingcb===0&&(e.finished=!0,t.emit("finish"),e.autoDestroy))){var i=t._readableState;(!i||i.autoDestroy&&i.endEmitted)&&t.destroy()}return r}function kp(t,e,r){e.ending=!0,At(t,e),r&&(e.finished?process.nextTick(r):t.once("finish",r)),e.ended=!0,t.writable=!1}function Rp(t,e,r){var i=t.entry;for(t.entry=null;i;){var n=i.callback;e.pendingcb--,n(r),i=i.next}e.corkedRequestsFree.next=t}Object.defineProperty(j.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}});j.prototype.destroy=Yi.destroy;j.prototype._undestroy=Yi.undestroy;j.prototype._destroy=function(t,e){e(t)}});var Me=m((Lv,pl)=>{"use strict";var Ap=Object.keys||function(t){var e=[];for(var r in t)e.push(r);return e};pl.exports=se;var dl=Ji(),Qi=Xi();be()(se,dl);for(Zi=Ap(Qi.prototype),Cr=0;Cr<Zi.length;Cr++)kr=Zi[Cr],se.prototype[kr]||(se.prototype[kr]=Qi.prototype[kr]);var Zi,kr,Cr;function se(t){if(!(this instanceof se))return new se(t);dl.call(this,t),Qi.call(this,t),this.allowHalfOpen=!0,t&&(t.readable===!1&&(this.readable=!1),t.writable===!1&&(this.writable=!1),t.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",Tp)))}Object.defineProperty(se.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});Object.defineProperty(se.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});Object.defineProperty(se.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function Tp(){this._writableState.ended||process.nextTick(qp,this)}function qp(t){t.end()}Object.defineProperty(se.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(e){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=e,this._writableState.destroyed=e)}})});var yl=m((en,gl)=>{var Rr=require("buffer"),ae=Rr.Buffer;function ml(t,e){for(var r in t)e[r]=t[r]}ae.from&&ae.alloc&&ae.allocUnsafe&&ae.allocUnsafeSlow?gl.exports=Rr:(ml(Rr,en),en.Buffer=Pe);function Pe(t,e,r){return ae(t,e,r)}Pe.prototype=Object.create(ae.prototype);ml(ae,Pe);Pe.from=function(t,e,r){if(typeof t=="number")throw new TypeError("Argument must not be a number");return ae(t,e,r)};Pe.alloc=function(t,e,r){if(typeof t!="number")throw new TypeError("Argument must be a number");var i=ae(t);return e!==void 0?typeof r=="string"?i.fill(e,r):i.fill(e):i.fill(0),i};Pe.allocUnsafe=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return ae(t)};Pe.allocUnsafeSlow=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return Rr.SlowBuffer(t)}});var nn=m(vl=>{"use strict";var rn=yl().Buffer,bl=rn.isEncoding||function(t){switch(t=""+t,t&&t.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function jp(t){if(!t)return"utf8";for(var e;;)switch(t){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return t;default:if(e)return;t=(""+t).toLowerCase(),e=!0}}function Mp(t){var e=jp(t);if(typeof e!="string"&&(rn.isEncoding===bl||!bl(t)))throw new Error("Unknown encoding: "+t);return e||t}vl.StringDecoder=qt;function qt(t){this.encoding=Mp(t);var e;switch(this.encoding){case"utf16le":this.text=Lp,this.end=Fp,e=4;break;case"utf8":this.fillLast=Np,e=4;break;case"base64":this.text=$p,this.end=Gp,e=3;break;default:this.write=Wp,this.end=Up;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=rn.allocUnsafe(e)}qt.prototype.write=function(t){if(t.length===0)return"";var e,r;if(this.lastNeed){if(e=this.fillLast(t),e===void 0)return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<t.length?e?e+this.text(t,r):this.text(t,r):e||""};qt.prototype.end=Dp;qt.prototype.text=Bp;qt.prototype.fillLast=function(t){if(this.lastNeed<=t.length)return t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,t.length),this.lastNeed-=t.length};function tn(t){return t<=127?0:t>>5===6?2:t>>4===14?3:t>>3===30?4:t>>6===2?-1:-2}function Pp(t,e,r){var i=e.length-1;if(i<r)return 0;var n=tn(e[i]);return n>=0?(n>0&&(t.lastNeed=n-1),n):--i<r||n===-2?0:(n=tn(e[i]),n>=0?(n>0&&(t.lastNeed=n-2),n):--i<r||n===-2?0:(n=tn(e[i]),n>=0?(n>0&&(n===2?n=0:t.lastNeed=n-3),n):0))}function Ip(t,e,r){if((e[0]&192)!==128)return t.lastNeed=0,"\uFFFD";if(t.lastNeed>1&&e.length>1){if((e[1]&192)!==128)return t.lastNeed=1,"\uFFFD";if(t.lastNeed>2&&e.length>2&&(e[2]&192)!==128)return t.lastNeed=2,"\uFFFD"}}function Np(t){var e=this.lastTotal-this.lastNeed,r=Ip(this,t,e);if(r!==void 0)return r;if(this.lastNeed<=t.length)return t.copy(this.lastChar,e,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,e,0,t.length),this.lastNeed-=t.length}function Bp(t,e){var r=Pp(this,t,e);if(!this.lastNeed)return t.toString("utf8",e);this.lastTotal=r;var i=t.length-(r-this.lastNeed);return t.copy(this.lastChar,0,i),t.toString("utf8",e,i)}function Dp(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+"\uFFFD":e}function Lp(t,e){if((t.length-e)%2===0){var r=t.toString("utf16le",e);if(r){var i=r.charCodeAt(r.length-1);if(i>=55296&&i<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=t[t.length-1],t.toString("utf16le",e,t.length-1)}function Fp(t){var e=t&&t.length?this.write(t):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return e+this.lastChar.toString("utf16le",0,r)}return e}function $p(t,e){var r=(t.length-e)%3;return r===0?t.toString("base64",e):(this.lastNeed=3-r,this.lastTotal=3,r===1?this.lastChar[0]=t[t.length-1]:(this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1]),t.toString("base64",e,t.length-r))}function Gp(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function Wp(t){return t.toString(this.encoding)}function Up(t){return t&&t.length?this.write(t):""}});var Ar=m(($v,xl)=>{"use strict";var wl=ye().codes.ERR_STREAM_PREMATURE_CLOSE;function Vp(t){var e=!1;return function(){if(!e){e=!0;for(var r=arguments.length,i=new Array(r),n=0;n<r;n++)i[n]=arguments[n];t.apply(this,i)}}}function zp(){}function Hp(t){return t.setHeader&&typeof t.abort=="function"}function _l(t,e,r){if(typeof e=="function")return _l(t,null,e);e||(e={}),r=Vp(r||zp);var i=e.readable||e.readable!==!1&&t.readable,n=e.writable||e.writable!==!1&&t.writable,s=function(){t.writable||o()},a=t._writableState&&t._writableState.finished,o=function(){n=!1,a=!0,i||r.call(t)},l=t._readableState&&t._readableState.endEmitted,u=function(){i=!1,l=!0,n||r.call(t)},h=function(p){r.call(t,p)},c=function(){var p;if(i&&!l)return(!t._readableState||!t._readableState.ended)&&(p=new wl),r.call(t,p);if(n&&!a)return(!t._writableState||!t._writableState.ended)&&(p=new wl),r.call(t,p)},f=function(){t.req.on("finish",o)};return Hp(t)?(t.on("complete",o),t.on("abort",c),t.req?f():t.on("request",f)):n&&!t._writableState&&(t.on("end",s),t.on("close",s)),t.on("end",u),t.on("finish",o),e.error!==!1&&t.on("error",h),t.on("close",c),function(){t.removeListener("complete",o),t.removeListener("abort",c),t.removeListener("request",f),t.req&&t.req.removeListener("finish",o),t.removeListener("end",s),t.removeListener("close",s),t.removeListener("finish",o),t.removeListener("end",u),t.removeListener("error",h),t.removeListener("close",c)}}xl.exports=_l});var Sl=m((Gv,El)=>{"use strict";var Tr;function we(t,e,r){return e=Kp(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Kp(t){var e=Yp(t,"string");return typeof e=="symbol"?e:String(e)}function Yp(t,e){if(typeof t!="object"||t===null)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var i=r.call(t,e||"default");if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var Xp=Ar(),_e=Symbol("lastResolve"),Ie=Symbol("lastReject"),jt=Symbol("error"),qr=Symbol("ended"),Ne=Symbol("lastPromise"),sn=Symbol("handlePromise"),Be=Symbol("stream");function xe(t,e){return{value:t,done:e}}function Zp(t){var e=t[_e];if(e!==null){var r=t[Be].read();r!==null&&(t[Ne]=null,t[_e]=null,t[Ie]=null,e(xe(r,!1)))}}function Qp(t){process.nextTick(Zp,t)}function Jp(t,e){return function(r,i){t.then(function(){if(e[qr]){r(xe(void 0,!0));return}e[sn](r,i)},i)}}var e0=Object.getPrototypeOf(function(){}),t0=Object.setPrototypeOf((Tr={get stream(){return this[Be]},next:function(){var e=this,r=this[jt];if(r!==null)return Promise.reject(r);if(this[qr])return Promise.resolve(xe(void 0,!0));if(this[Be].destroyed)return new Promise(function(a,o){process.nextTick(function(){e[jt]?o(e[jt]):a(xe(void 0,!0))})});var i=this[Ne],n;if(i)n=new Promise(Jp(i,this));else{var s=this[Be].read();if(s!==null)return Promise.resolve(xe(s,!1));n=new Promise(this[sn])}return this[Ne]=n,n}},we(Tr,Symbol.asyncIterator,function(){return this}),we(Tr,"return",function(){var e=this;return new Promise(function(r,i){e[Be].destroy(null,function(n){if(n){i(n);return}r(xe(void 0,!0))})})}),Tr),e0),r0=function(e){var r,i=Object.create(t0,(r={},we(r,Be,{value:e,writable:!0}),we(r,_e,{value:null,writable:!0}),we(r,Ie,{value:null,writable:!0}),we(r,jt,{value:null,writable:!0}),we(r,qr,{value:e._readableState.endEmitted,writable:!0}),we(r,sn,{value:function(s,a){var o=i[Be].read();o?(i[Ne]=null,i[_e]=null,i[Ie]=null,s(xe(o,!1))):(i[_e]=s,i[Ie]=a)},writable:!0}),r));return i[Ne]=null,Xp(e,function(n){if(n&&n.code!=="ERR_STREAM_PREMATURE_CLOSE"){var s=i[Ie];s!==null&&(i[Ne]=null,i[_e]=null,i[Ie]=null,s(n)),i[jt]=n;return}var a=i[_e];a!==null&&(i[Ne]=null,i[_e]=null,i[Ie]=null,a(xe(void 0,!0))),i[qr]=!0}),e.on("readable",Qp.bind(null,i)),i};El.exports=r0});var Rl=m((Wv,kl)=>{"use strict";function Ol(t,e,r,i,n,s,a){try{var o=t[s](a),l=o.value}catch(u){r(u);return}o.done?e(l):Promise.resolve(l).then(i,n)}function i0(t){return function(){var e=this,r=arguments;return new Promise(function(i,n){var s=t.apply(e,r);function a(l){Ol(s,i,n,a,o,"next",l)}function o(l){Ol(s,i,n,a,o,"throw",l)}a(void 0)})}}function Cl(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable})),r.push.apply(r,i)}return r}function n0(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Cl(Object(r),!0).forEach(function(i){s0(t,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Cl(Object(r)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(r,i))})}return t}function s0(t,e,r){return e=a0(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function a0(t){var e=o0(t,"string");return typeof e=="symbol"?e:String(e)}function o0(t,e){if(typeof t!="object"||t===null)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var i=r.call(t,e||"default");if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var l0=ye().codes.ERR_INVALID_ARG_TYPE;function u0(t,e,r){var i;if(e&&typeof e.next=="function")i=e;else if(e&&e[Symbol.asyncIterator])i=e[Symbol.asyncIterator]();else if(e&&e[Symbol.iterator])i=e[Symbol.iterator]();else throw new l0("iterable",["Iterable"],e);var n=new t(n0({objectMode:!0},r)),s=!1;n._read=function(){s||(s=!0,a())};function a(){return o.apply(this,arguments)}function o(){return o=i0(function*(){try{var l=yield i.next(),u=l.value,h=l.done;h?n.push(null):n.push(yield u)?a():s=!1}catch(c){n.destroy(c)}}),o.apply(this,arguments)}return n}kl.exports=u0});var Ji=m((Vv,Dl)=>{"use strict";Dl.exports=O;var nt;O.ReadableState=jl;var Uv=require("events").EventEmitter,ql=function(e,r){return e.listeners(r).length},Pt=Fi(),jr=require("buffer").Buffer,c0=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function h0(t){return jr.from(t)}function f0(t){return jr.isBuffer(t)||t instanceof c0}var an=require("util"),E;an&&an.debuglog?E=an.debuglog("stream"):E=function(){};var d0=Zo(),dn=Wi(),p0=Ui(),m0=p0.getHighWaterMark,Mr=ye().codes,g0=Mr.ERR_INVALID_ARG_TYPE,y0=Mr.ERR_STREAM_PUSH_AFTER_EOF,b0=Mr.ERR_METHOD_NOT_IMPLEMENTED,v0=Mr.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,st,on,ln;be()(O,Pt);var Mt=dn.errorOrDestroy,un=["error","close","destroy","pause","resume"];function w0(t,e,r){if(typeof t.prependListener=="function")return t.prependListener(e,r);!t._events||!t._events[e]?t.on(e,r):Array.isArray(t._events[e])?t._events[e].unshift(r):t._events[e]=[r,t._events[e]]}function jl(t,e,r){nt=nt||Me(),t=t||{},typeof r!="boolean"&&(r=e instanceof nt),this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.readableObjectMode),this.highWaterMark=m0(this,t,"readableHighWaterMark",r),this.buffer=new d0,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=t.emitClose!==!1,this.autoDestroy=!!t.autoDestroy,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(st||(st=nn().StringDecoder),this.decoder=new st(t.encoding),this.encoding=t.encoding)}function O(t){if(nt=nt||Me(),!(this instanceof O))return new O(t);var e=this instanceof nt;this._readableState=new jl(t,this,e),this.readable=!0,t&&(typeof t.read=="function"&&(this._read=t.read),typeof t.destroy=="function"&&(this._destroy=t.destroy)),Pt.call(this)}Object.defineProperty(O.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}});O.prototype.destroy=dn.destroy;O.prototype._undestroy=dn.undestroy;O.prototype._destroy=function(t,e){e(t)};O.prototype.push=function(t,e){var r=this._readableState,i;return r.objectMode?i=!0:typeof t=="string"&&(e=e||r.defaultEncoding,e!==r.encoding&&(t=jr.from(t,e),e=""),i=!0),Ml(this,t,e,!1,i)};O.prototype.unshift=function(t){return Ml(this,t,null,!0,!1)};function Ml(t,e,r,i,n){E("readableAddChunk",e);var s=t._readableState;if(e===null)s.reading=!1,E0(t,s);else{var a;if(n||(a=_0(s,e)),a)Mt(t,a);else if(s.objectMode||e&&e.length>0)if(typeof e!="string"&&!s.objectMode&&Object.getPrototypeOf(e)!==jr.prototype&&(e=h0(e)),i)s.endEmitted?Mt(t,new v0):cn(t,s,e,!0);else if(s.ended)Mt(t,new y0);else{if(s.destroyed)return!1;s.reading=!1,s.decoder&&!r?(e=s.decoder.write(e),s.objectMode||e.length!==0?cn(t,s,e,!1):fn(t,s)):cn(t,s,e,!1)}else i||(s.reading=!1,fn(t,s))}return!s.ended&&(s.length<s.highWaterMark||s.length===0)}function cn(t,e,r,i){e.flowing&&e.length===0&&!e.sync?(e.awaitDrain=0,t.emit("data",r)):(e.length+=e.objectMode?1:r.length,i?e.buffer.unshift(r):e.buffer.push(r),e.needReadable&&Pr(t)),fn(t,e)}function _0(t,e){var r;return!f0(e)&&typeof e!="string"&&e!==void 0&&!t.objectMode&&(r=new g0("chunk",["string","Buffer","Uint8Array"],e)),r}O.prototype.isPaused=function(){return this._readableState.flowing===!1};O.prototype.setEncoding=function(t){st||(st=nn().StringDecoder);var e=new st(t);this._readableState.decoder=e,this._readableState.encoding=this._readableState.decoder.encoding;for(var r=this._readableState.buffer.head,i="";r!==null;)i+=e.write(r.data),r=r.next;return this._readableState.buffer.clear(),i!==""&&this._readableState.buffer.push(i),this._readableState.length=i.length,this};var Al=1073741824;function x0(t){return t>=Al?t=Al:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}function Tl(t,e){return t<=0||e.length===0&&e.ended?0:e.objectMode?1:t!==t?e.flowing&&e.length?e.buffer.head.data.length:e.length:(t>e.highWaterMark&&(e.highWaterMark=x0(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}O.prototype.read=function(t){E("read",t),t=parseInt(t,10);var e=this._readableState,r=t;if(t!==0&&(e.emittedReadable=!1),t===0&&e.needReadable&&((e.highWaterMark!==0?e.length>=e.highWaterMark:e.length>0)||e.ended))return E("read: emitReadable",e.length,e.ended),e.length===0&&e.ended?hn(this):Pr(this),null;if(t=Tl(t,e),t===0&&e.ended)return e.length===0&&hn(this),null;var i=e.needReadable;E("need readable",i),(e.length===0||e.length-t<e.highWaterMark)&&(i=!0,E("length less than watermark",i)),e.ended||e.reading?(i=!1,E("reading or ended",i)):i&&(E("do read"),e.reading=!0,e.sync=!0,e.length===0&&(e.needReadable=!0),this._read(e.highWaterMark),e.sync=!1,e.reading||(t=Tl(r,e)));var n;return t>0?n=Nl(t,e):n=null,n===null?(e.needReadable=e.length<=e.highWaterMark,t=0):(e.length-=t,e.awaitDrain=0),e.length===0&&(e.ended||(e.needReadable=!0),r!==t&&e.ended&&hn(this)),n!==null&&this.emit("data",n),n};function E0(t,e){if(E("onEofChunk"),!e.ended){if(e.decoder){var r=e.decoder.end();r&&r.length&&(e.buffer.push(r),e.length+=e.objectMode?1:r.length)}e.ended=!0,e.sync?Pr(t):(e.needReadable=!1,e.emittedReadable||(e.emittedReadable=!0,Pl(t)))}}function Pr(t){var e=t._readableState;E("emitReadable",e.needReadable,e.emittedReadable),e.needReadable=!1,e.emittedReadable||(E("emitReadable",e.flowing),e.emittedReadable=!0,process.nextTick(Pl,t))}function Pl(t){var e=t._readableState;E("emitReadable_",e.destroyed,e.length,e.ended),!e.destroyed&&(e.length||e.ended)&&(t.emit("readable"),e.emittedReadable=!1),e.needReadable=!e.flowing&&!e.ended&&e.length<=e.highWaterMark,pn(t)}function fn(t,e){e.readingMore||(e.readingMore=!0,process.nextTick(S0,t,e))}function S0(t,e){for(;!e.reading&&!e.ended&&(e.length<e.highWaterMark||e.flowing&&e.length===0);){var r=e.length;if(E("maybeReadMore read 0"),t.read(0),r===e.length)break}e.readingMore=!1}O.prototype._read=function(t){Mt(this,new b0("_read()"))};O.prototype.pipe=function(t,e){var r=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=t;break;case 1:i.pipes=[i.pipes,t];break;default:i.pipes.push(t);break}i.pipesCount+=1,E("pipe count=%d opts=%j",i.pipesCount,e);var n=(!e||e.end!==!1)&&t!==process.stdout&&t!==process.stderr,s=n?o:g;i.endEmitted?process.nextTick(s):r.once("end",s),t.on("unpipe",a);function a(b,y){E("onunpipe"),b===r&&y&&y.hasUnpiped===!1&&(y.hasUnpiped=!0,h())}function o(){E("onend"),t.end()}var l=O0(r);t.on("drain",l);var u=!1;function h(){E("cleanup"),t.removeListener("close",d),t.removeListener("finish",p),t.removeListener("drain",l),t.removeListener("error",f),t.removeListener("unpipe",a),r.removeListener("end",o),r.removeListener("end",g),r.removeListener("data",c),u=!0,i.awaitDrain&&(!t._writableState||t._writableState.needDrain)&&l()}r.on("data",c);function c(b){E("ondata");var y=t.write(b);E("dest.write",y),y===!1&&((i.pipesCount===1&&i.pipes===t||i.pipesCount>1&&Bl(i.pipes,t)!==-1)&&!u&&(E("false write response, pause",i.awaitDrain),i.awaitDrain++),r.pause())}function f(b){E("onerror",b),g(),t.removeListener("error",f),ql(t,"error")===0&&Mt(t,b)}w0(t,"error",f);function d(){t.removeListener("finish",p),g()}t.once("close",d);function p(){E("onfinish"),t.removeListener("close",d),g()}t.once("finish",p);function g(){E("unpipe"),r.unpipe(t)}return t.emit("pipe",r),i.flowing||(E("pipe resume"),r.resume()),t};function O0(t){return function(){var r=t._readableState;E("pipeOnDrain",r.awaitDrain),r.awaitDrain&&r.awaitDrain--,r.awaitDrain===0&&ql(t,"data")&&(r.flowing=!0,pn(t))}}O.prototype.unpipe=function(t){var e=this._readableState,r={hasUnpiped:!1};if(e.pipesCount===0)return this;if(e.pipesCount===1)return t&&t!==e.pipes?this:(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,t&&t.emit("unpipe",this,r),this);if(!t){var i=e.pipes,n=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var s=0;s<n;s++)i[s].emit("unpipe",this,{hasUnpiped:!1});return this}var a=Bl(e.pipes,t);return a===-1?this:(e.pipes.splice(a,1),e.pipesCount-=1,e.pipesCount===1&&(e.pipes=e.pipes[0]),t.emit("unpipe",this,r),this)};O.prototype.on=function(t,e){var r=Pt.prototype.on.call(this,t,e),i=this._readableState;return t==="data"?(i.readableListening=this.listenerCount("readable")>0,i.flowing!==!1&&this.resume()):t==="readable"&&!i.endEmitted&&!i.readableListening&&(i.readableListening=i.needReadable=!0,i.flowing=!1,i.emittedReadable=!1,E("on readable",i.length,i.reading),i.length?Pr(this):i.reading||process.nextTick(C0,this)),r};O.prototype.addListener=O.prototype.on;O.prototype.removeListener=function(t,e){var r=Pt.prototype.removeListener.call(this,t,e);return t==="readable"&&process.nextTick(Il,this),r};O.prototype.removeAllListeners=function(t){var e=Pt.prototype.removeAllListeners.apply(this,arguments);return(t==="readable"||t===void 0)&&process.nextTick(Il,this),e};function Il(t){var e=t._readableState;e.readableListening=t.listenerCount("readable")>0,e.resumeScheduled&&!e.paused?e.flowing=!0:t.listenerCount("data")>0&&t.resume()}function C0(t){E("readable nexttick read 0"),t.read(0)}O.prototype.resume=function(){var t=this._readableState;return t.flowing||(E("resume"),t.flowing=!t.readableListening,k0(this,t)),t.paused=!1,this};function k0(t,e){e.resumeScheduled||(e.resumeScheduled=!0,process.nextTick(R0,t,e))}function R0(t,e){E("resume",e.reading),e.reading||t.read(0),e.resumeScheduled=!1,t.emit("resume"),pn(t),e.flowing&&!e.reading&&t.read(0)}O.prototype.pause=function(){return E("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(E("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function pn(t){var e=t._readableState;for(E("flow",e.flowing);e.flowing&&t.read()!==null;);}O.prototype.wrap=function(t){var e=this,r=this._readableState,i=!1;t.on("end",function(){if(E("wrapped end"),r.decoder&&!r.ended){var a=r.decoder.end();a&&a.length&&e.push(a)}e.push(null)}),t.on("data",function(a){if(E("wrapped data"),r.decoder&&(a=r.decoder.write(a)),!(r.objectMode&&a==null)&&!(!r.objectMode&&(!a||!a.length))){var o=e.push(a);o||(i=!0,t.pause())}});for(var n in t)this[n]===void 0&&typeof t[n]=="function"&&(this[n]=function(o){return function(){return t[o].apply(t,arguments)}}(n));for(var s=0;s<un.length;s++)t.on(un[s],this.emit.bind(this,un[s]));return this._read=function(a){E("wrapped _read",a),i&&(i=!1,t.resume())},this};typeof Symbol=="function"&&(O.prototype[Symbol.asyncIterator]=function(){return on===void 0&&(on=Sl()),on(this)});Object.defineProperty(O.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}});Object.defineProperty(O.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}});Object.defineProperty(O.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}});O._fromList=Nl;Object.defineProperty(O.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function Nl(t,e){if(e.length===0)return null;var r;return e.objectMode?r=e.buffer.shift():!t||t>=e.length?(e.decoder?r=e.buffer.join(""):e.buffer.length===1?r=e.buffer.first():r=e.buffer.concat(e.length),e.buffer.clear()):r=e.buffer.consume(t,e.decoder),r}function hn(t){var e=t._readableState;E("endReadable",e.endEmitted),e.endEmitted||(e.ended=!0,process.nextTick(A0,e,t))}function A0(t,e){if(E("endReadableNT",t.endEmitted,t.length),!t.endEmitted&&t.length===0&&(t.endEmitted=!0,e.readable=!1,e.emit("end"),t.autoDestroy)){var r=e._writableState;(!r||r.autoDestroy&&r.finished)&&e.destroy()}}typeof Symbol=="function"&&(O.from=function(t,e){return ln===void 0&&(ln=Rl()),ln(O,t,e)});function Bl(t,e){for(var r=0,i=t.length;r<i;r++)if(t[r]===e)return r;return-1}});var mn=m((zv,Fl)=>{"use strict";Fl.exports=he;var Ir=ye().codes,T0=Ir.ERR_METHOD_NOT_IMPLEMENTED,q0=Ir.ERR_MULTIPLE_CALLBACK,j0=Ir.ERR_TRANSFORM_ALREADY_TRANSFORMING,M0=Ir.ERR_TRANSFORM_WITH_LENGTH_0,Nr=Me();be()(he,Nr);function P0(t,e){var r=this._transformState;r.transforming=!1;var i=r.writecb;if(i===null)return this.emit("error",new q0);r.writechunk=null,r.writecb=null,e!=null&&this.push(e),i(t);var n=this._readableState;n.reading=!1,(n.needReadable||n.length<n.highWaterMark)&&this._read(n.highWaterMark)}function he(t){if(!(this instanceof he))return new he(t);Nr.call(this,t),this._transformState={afterTransform:P0.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,t&&(typeof t.transform=="function"&&(this._transform=t.transform),typeof t.flush=="function"&&(this._flush=t.flush)),this.on("prefinish",I0)}function I0(){var t=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(e,r){Ll(t,e,r)}):Ll(this,null,null)}he.prototype.push=function(t,e){return this._transformState.needTransform=!1,Nr.prototype.push.call(this,t,e)};he.prototype._transform=function(t,e,r){r(new T0("_transform()"))};he.prototype._write=function(t,e,r){var i=this._transformState;if(i.writecb=r,i.writechunk=t,i.writeencoding=e,!i.transforming){var n=this._readableState;(i.needTransform||n.needReadable||n.length<n.highWaterMark)&&this._read(n.highWaterMark)}};he.prototype._read=function(t){var e=this._transformState;e.writechunk!==null&&!e.transforming?(e.transforming=!0,this._transform(e.writechunk,e.writeencoding,e.afterTransform)):e.needTransform=!0};he.prototype._destroy=function(t,e){Nr.prototype._destroy.call(this,t,function(r){e(r)})};function Ll(t,e,r){if(e)return t.emit("error",e);if(r!=null&&t.push(r),t._writableState.length)throw new M0;if(t._transformState.transforming)throw new j0;return t.push(null)}});var Wl=m((Hv,Gl)=>{"use strict";Gl.exports=It;var $l=mn();be()(It,$l);function It(t){if(!(this instanceof It))return new It(t);$l.call(this,t)}It.prototype._transform=function(t,e,r){r(null,t)}});var Kl=m((Kv,Hl)=>{"use strict";var gn;function N0(t){var e=!1;return function(){e||(e=!0,t.apply(void 0,arguments))}}var zl=ye().codes,B0=zl.ERR_MISSING_ARGS,D0=zl.ERR_STREAM_DESTROYED;function Ul(t){if(t)throw t}function L0(t){return t.setHeader&&typeof t.abort=="function"}function F0(t,e,r,i){i=N0(i);var n=!1;t.on("close",function(){n=!0}),gn===void 0&&(gn=Ar()),gn(t,{readable:e,writable:r},function(a){if(a)return i(a);n=!0,i()});var s=!1;return function(a){if(!n&&!s){if(s=!0,L0(t))return t.abort();if(typeof t.destroy=="function")return t.destroy();i(a||new D0("pipe"))}}}function Vl(t){t()}function $0(t,e){return t.pipe(e)}function G0(t){return!t.length||typeof t[t.length-1]!="function"?Ul:t.pop()}function W0(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];var i=G0(e);if(Array.isArray(e[0])&&(e=e[0]),e.length<2)throw new B0("streams");var n,s=e.map(function(a,o){var l=o<e.length-1,u=o>0;return F0(a,l,u,function(h){n||(n=h),h&&s.forEach(Vl),!l&&(s.forEach(Vl),i(n))})});return e.reduce($0)}Hl.exports=W0});var Yl=m((Q,Bt)=>{var Nt=require("stream");process.env.READABLE_STREAM==="disable"&&Nt?(Bt.exports=Nt.Readable,Object.assign(Bt.exports,Nt),Bt.exports.Stream=Nt):(Q=Bt.exports=Ji(),Q.Stream=Nt||Q,Q.Readable=Q,Q.Writable=Xi(),Q.Duplex=Me(),Q.Transform=mn(),Q.PassThrough=Wl(),Q.finished=Ar(),Q.pipeline=Kl())});var Ql=m((Yv,Zl)=>{"use strict";var{Buffer:re}=require("buffer"),Xl=Symbol.for("BufferList");function A(t){if(!(this instanceof A))return new A(t);A._init.call(this,t)}A._init=function(e){Object.defineProperty(this,Xl,{value:!0}),this._bufs=[],this.length=0,e&&this.append(e)};A.prototype._new=function(e){return new A(e)};A.prototype._offset=function(e){if(e===0)return[0,0];let r=0;for(let i=0;i<this._bufs.length;i++){let n=r+this._bufs[i].length;if(e<n||i===this._bufs.length-1)return[i,e-r];r=n}};A.prototype._reverseOffset=function(t){let e=t[0],r=t[1];for(let i=0;i<e;i++)r+=this._bufs[i].length;return r};A.prototype.get=function(e){if(e>this.length||e<0)return;let r=this._offset(e);return this._bufs[r[0]][r[1]]};A.prototype.slice=function(e,r){return typeof e=="number"&&e<0&&(e+=this.length),typeof r=="number"&&r<0&&(r+=this.length),this.copy(null,0,e,r)};A.prototype.copy=function(e,r,i,n){if((typeof i!="number"||i<0)&&(i=0),(typeof n!="number"||n>this.length)&&(n=this.length),i>=this.length||n<=0)return e||re.alloc(0);let s=!!e,a=this._offset(i),o=n-i,l=o,u=s&&r||0,h=a[1];if(i===0&&n===this.length){if(!s)return this._bufs.length===1?this._bufs[0]:re.concat(this._bufs,this.length);for(let c=0;c<this._bufs.length;c++)this._bufs[c].copy(e,u),u+=this._bufs[c].length;return e}if(l<=this._bufs[a[0]].length-h)return s?this._bufs[a[0]].copy(e,r,h,h+l):this._bufs[a[0]].slice(h,h+l);s||(e=re.allocUnsafe(o));for(let c=a[0];c<this._bufs.length;c++){let f=this._bufs[c].length-h;if(l>f)this._bufs[c].copy(e,u,h),u+=f;else{this._bufs[c].copy(e,u,h,h+l),u+=f;break}l-=f,h&&(h=0)}return e.length>u?e.slice(0,u):e};A.prototype.shallowSlice=function(e,r){if(e=e||0,r=typeof r!="number"?this.length:r,e<0&&(e+=this.length),r<0&&(r+=this.length),e===r)return this._new();let i=this._offset(e),n=this._offset(r),s=this._bufs.slice(i[0],n[0]+1);return n[1]===0?s.pop():s[s.length-1]=s[s.length-1].slice(0,n[1]),i[1]!==0&&(s[0]=s[0].slice(i[1])),this._new(s)};A.prototype.toString=function(e,r,i){return this.slice(r,i).toString(e)};A.prototype.consume=function(e){if(e=Math.trunc(e),Number.isNaN(e)||e<=0)return this;for(;this._bufs.length;)if(e>=this._bufs[0].length)e-=this._bufs[0].length,this.length-=this._bufs[0].length,this._bufs.shift();else{this._bufs[0]=this._bufs[0].slice(e),this.length-=e;break}return this};A.prototype.duplicate=function(){let e=this._new();for(let r=0;r<this._bufs.length;r++)e.append(this._bufs[r]);return e};A.prototype.append=function(e){if(e==null)return this;if(e.buffer)this._appendBuffer(re.from(e.buffer,e.byteOffset,e.byteLength));else if(Array.isArray(e))for(let r=0;r<e.length;r++)this.append(e[r]);else if(this._isBufferList(e))for(let r=0;r<e._bufs.length;r++)this.append(e._bufs[r]);else typeof e=="number"&&(e=e.toString()),this._appendBuffer(re.from(e));return this};A.prototype._appendBuffer=function(e){this._bufs.push(e),this.length+=e.length};A.prototype.indexOf=function(t,e,r){if(r===void 0&&typeof e=="string"&&(r=e,e=void 0),typeof t=="function"||Array.isArray(t))throw new TypeError('The "value" argument must be one of type string, Buffer, BufferList, or Uint8Array.');if(typeof t=="number"?t=re.from([t]):typeof t=="string"?t=re.from(t,r):this._isBufferList(t)?t=t.slice():Array.isArray(t.buffer)?t=re.from(t.buffer,t.byteOffset,t.byteLength):re.isBuffer(t)||(t=re.from(t)),e=Number(e||0),isNaN(e)&&(e=0),e<0&&(e=this.length+e),e<0&&(e=0),t.length===0)return e>this.length?this.length:e;let i=this._offset(e),n=i[0],s=i[1];for(;n<this._bufs.length;n++){let a=this._bufs[n];for(;s<a.length;)if(a.length-s>=t.length){let l=a.indexOf(t,s);if(l!==-1)return this._reverseOffset([n,l]);s=a.length-t.length+1}else{let l=this._reverseOffset([n,s]);if(this._match(l,t))return l;s++}s=0}return-1};A.prototype._match=function(t,e){if(this.length-t<e.length)return!1;for(let r=0;r<e.length;r++)if(this.get(t+r)!==e[r])return!1;return!0};(function(){let t={readDoubleBE:8,readDoubleLE:8,readFloatBE:4,readFloatLE:4,readInt32BE:4,readInt32LE:4,readUInt32BE:4,readUInt32LE:4,readInt16BE:2,readInt16LE:2,readUInt16BE:2,readUInt16LE:2,readInt8:1,readUInt8:1,readIntBE:null,readIntLE:null,readUIntBE:null,readUIntLE:null};for(let e in t)(function(r){t[r]===null?A.prototype[r]=function(i,n){return this.slice(i,i+n)[r](0,n)}:A.prototype[r]=function(i=0){return this.slice(i,i+t[r])[r](0)}})(e)})();A.prototype._isBufferList=function(e){return e instanceof A||A.isBufferList(e)};A.isBufferList=function(e){return e!=null&&e[Xl]};Zl.exports=A});var Jl=m((Xv,Br)=>{"use strict";var yn=Yl().Duplex,U0=be(),Dt=Ql();function G(t){if(!(this instanceof G))return new G(t);if(typeof t=="function"){this._callback=t;let e=function(i){this._callback&&(this._callback(i),this._callback=null)}.bind(this);this.on("pipe",function(i){i.on("error",e)}),this.on("unpipe",function(i){i.removeListener("error",e)}),t=null}Dt._init.call(this,t),yn.call(this)}U0(G,yn);Object.assign(G.prototype,Dt.prototype);G.prototype._new=function(e){return new G(e)};G.prototype._write=function(e,r,i){this._appendBuffer(e),typeof i=="function"&&i()};G.prototype._read=function(e){if(!this.length)return this.push(null);e=Math.min(e,this.length),this.push(this.slice(0,e)),this.consume(e)};G.prototype.end=function(e){yn.prototype.end.call(this,e),this._callback&&(this._callback(null,this.slice()),this._callback=null)};G.prototype._destroy=function(e,r){this._bufs.length=0,this.length=0,r(e)};G.prototype._isBufferList=function(e){return e instanceof G||e instanceof Dt||G.isBufferList(e)};G.isBufferList=Dt.isBufferList;Br.exports=G;Br.exports.BufferListStream=G;Br.exports.BufferList=Dt});var Lt=m((Zv,_n)=>{"use strict";var V0=require("readline"),z0=ur(),eu=xo(),Dr=Co(),Lr=To(),H0=ce(),K0=Go(),Y0=Uo(),{BufferListStream:X0}=Jl(),bn=Symbol("text"),vn=Symbol("prefixText"),Z0=3,Q0=()=>process.platform!=="win32"||process.env.TERM_PROGRAM==="vscode"||!!process.env.WT_SESSION,wn=class{constructor(){this.requests=0,this.mutedStream=new X0,this.mutedStream.pipe(process.stdout);let e=this;this.ourEmit=function(r,i,...n){let{stdin:s}=process;if(e.requests>0||s.emit===e.ourEmit){if(r==="keypress")return;r==="data"&&i.includes(Z0)&&process.emit("SIGINT"),Reflect.apply(e.oldEmit,this,[r,i,...n])}else Reflect.apply(process.stdin.emit,this,[r,i,...n])}}start(){this.requests++,this.requests===1&&this.realStart()}stop(){if(this.requests<=0)throw new Error("`stop` called more times than `start`");this.requests--,this.requests===0&&this.realStop()}realStart(){process.platform!=="win32"&&(this.rl=V0.createInterface({input:process.stdin,output:this.mutedStream}),this.rl.on("SIGINT",()=>{process.listenerCount("SIGINT")===0?process.emit("SIGINT"):(this.rl.close(),process.kill(process.pid,"SIGINT"))}))}realStop(){process.platform!=="win32"&&(this.rl.close(),this.rl=void 0)}},Fr,$r=class{constructor(e){Fr||(Fr=new wn),typeof e=="string"&&(e={text:e}),this.options={text:"",color:"cyan",stream:process.stderr,discardStdin:!0,...e},this.spinner=this.options.spinner,this.color=this.options.color,this.hideCursor=this.options.hideCursor!==!1,this.interval=this.options.interval||this.spinner.interval||100,this.stream=this.options.stream,this.id=void 0,this.isEnabled=typeof this.options.isEnabled=="boolean"?this.options.isEnabled:Y0({stream:this.stream}),this.isSilent=typeof this.options.isSilent=="boolean"?this.options.isSilent:!1,this.text=this.options.text,this.prefixText=this.options.prefixText,this.linesToClear=0,this.indent=this.options.indent,this.discardStdin=this.options.discardStdin,this.isDiscardingStdin=!1}get indent(){return this._indent}set indent(e=0){if(!(e>=0&&Number.isInteger(e)))throw new Error("The `indent` option must be an integer from 0 and up");this._indent=e}_updateInterval(e){e!==void 0&&(this.interval=e)}get spinner(){return this._spinner}set spinner(e){if(this.frameIndex=0,typeof e=="object"){if(e.frames===void 0)throw new Error("The given spinner must have a `frames` property");this._spinner=e}else if(!Q0())this._spinner=Dr.line;else if(e===void 0)this._spinner=Dr.dots;else if(Dr[e])this._spinner=Dr[e];else throw new Error(`There is no built-in spinner named '${e}'. See https://github.com/sindresorhus/cli-spinners/blob/master/spinners.json for a full list.`);this._updateInterval(this._spinner.interval)}get text(){return this[bn]}set text(e){this[bn]=e,this.updateLineCount()}get prefixText(){return this[vn]}set prefixText(e){this[vn]=e,this.updateLineCount()}get isSpinning(){return this.id!==void 0}getFullPrefixText(e=this[vn],r=" "){return typeof e=="string"?e+r:typeof e=="function"?e()+r:""}updateLineCount(){let e=this.stream.columns||80,r=this.getFullPrefixText(this.prefixText,"-");this.lineCount=0;for(let i of H0(r+"--"+this[bn]).split(`
|
|
8
8
|
`))this.lineCount+=Math.max(1,Math.ceil(K0(i)/e))}get isEnabled(){return this._isEnabled&&!this.isSilent}set isEnabled(e){if(typeof e!="boolean")throw new TypeError("The `isEnabled` option must be a boolean");this._isEnabled=e}get isSilent(){return this._isSilent}set isSilent(e){if(typeof e!="boolean")throw new TypeError("The `isSilent` option must be a boolean");this._isSilent=e}frame(){let{frames:e}=this.spinner,r=e[this.frameIndex];this.color&&(r=z0[this.color](r)),this.frameIndex=++this.frameIndex%e.length;let i=typeof this.prefixText=="string"&&this.prefixText!==""?this.prefixText+" ":"",n=typeof this.text=="string"?" "+this.text:"";return i+r+n}clear(){if(!this.isEnabled||!this.stream.isTTY)return this;for(let e=0;e<this.linesToClear;e++)e>0&&this.stream.moveCursor(0,-1),this.stream.clearLine(),this.stream.cursorTo(this.indent);return this.linesToClear=0,this}render(){return this.isSilent?this:(this.clear(),this.stream.write(this.frame()),this.linesToClear=this.lineCount,this)}start(e){return e&&(this.text=e),this.isSilent?this:this.isEnabled?this.isSpinning?this:(this.hideCursor&&eu.hide(this.stream),this.discardStdin&&process.stdin.isTTY&&(this.isDiscardingStdin=!0,Fr.start()),this.render(),this.id=setInterval(this.render.bind(this),this.interval),this):(this.text&&this.stream.write(`- ${this.text}
|
|
9
9
|
`),this)}stop(){return this.isEnabled?(clearInterval(this.id),this.id=void 0,this.frameIndex=0,this.clear(),this.hideCursor&&eu.show(this.stream),this.discardStdin&&process.stdin.isTTY&&this.isDiscardingStdin&&(Fr.stop(),this.isDiscardingStdin=!1),this):this}succeed(e){return this.stopAndPersist({symbol:Lr.success,text:e})}fail(e){return this.stopAndPersist({symbol:Lr.error,text:e})}warn(e){return this.stopAndPersist({symbol:Lr.warning,text:e})}info(e){return this.stopAndPersist({symbol:Lr.info,text:e})}stopAndPersist(e={}){if(this.isSilent)return this;let r=e.prefixText||this.prefixText,i=e.text||this.text,n=typeof i=="string"?" "+i:"";return this.stop(),this.stream.write(`${this.getFullPrefixText(r," ")}${e.symbol||" "}${n}
|
|
10
|
-
`),this}},J0=function(t){return new $r(t)};_n.exports=J0;_n.exports.promise=(t,e)=>{if(typeof t.then!="function")throw new TypeError("Parameter `action` must be a Promise");let r=new $r(e);return r.start(),(async()=>{try{await t,r.succeed()}catch{r.fail()}})(),r}});var
|
|
11
|
-
`).filter(i=>!!i.trim())).length<3){let i=[`Error: ${t.message}`];return process.env.NX_VERBOSE_LOGGING&&i.push(`Stack: ${t.stack}`),i}let r=t instanceof Gr?[`Exit code: ${t.code}`,`Log file: ${t.logFile}`]:[];return process.env.NX_VERBOSE_LOGGING&&(r.push(`Error: ${t.message}`),r.push(`Stack: ${t.stack}`)),r}at.mapErrorToBodyLines=em});var lt=m(ot=>{"use strict";Object.defineProperty(ot,"__esModule",{value:!0});ot.execAndWait=ot.spawnAndWait=void 0;var tu=require("child_process"),tm=require("fs"),rm=require("path"),im=
|
|
10
|
+
`),this}},J0=function(t){return new $r(t)};_n.exports=J0;_n.exports.promise=(t,e)=>{if(typeof t.then!="function")throw new TypeError("Parameter `action` must be a Promise");let r=new $r(e);return r.start(),(async()=>{try{await t,r.succeed()}catch{r.fail()}})(),r}});var De=m(at=>{"use strict";Object.defineProperty(at,"__esModule",{value:!0});at.mapErrorToBodyLines=at.CreateNxWorkspaceError=void 0;var Gr=class extends Error{constructor(e,r,i){super(e),this.logMessage=e,this.code=r,this.logFile=i,this.name="CreateNxWorkspaceError"}};at.CreateNxWorkspaceError=Gr;function em(t){if((t.message?.split(`
|
|
11
|
+
`).filter(i=>!!i.trim())).length<3){let i=[`Error: ${t.message}`];return process.env.NX_VERBOSE_LOGGING&&i.push(`Stack: ${t.stack}`),i}let r=t instanceof Gr?[`Exit code: ${t.code}`,`Log file: ${t.logFile}`]:[];return process.env.NX_VERBOSE_LOGGING&&(r.push(`Error: ${t.message}`),r.push(`Stack: ${t.stack}`)),r}at.mapErrorToBodyLines=em});var lt=m(ot=>{"use strict";Object.defineProperty(ot,"__esModule",{value:!0});ot.execAndWait=ot.spawnAndWait=void 0;var tu=require("child_process"),tm=require("fs"),rm=require("path"),im=De();function nm(t,e,r){return new Promise((i,n)=>{(0,tu.spawn)(t,e,{cwd:r,stdio:"inherit",env:{...process.env,NX_DAEMON:"false"},shell:!0,windowsHide:!0}).on("exit",a=>{a!==0?n({code:a}):i({code:0})})})}ot.spawnAndWait=nm;function sm(t,e){return new Promise((r,i)=>{(0,tu.exec)(t,{cwd:e,env:{...process.env,NX_DAEMON:"false"}},(n,s,a)=>{if(n){let o=(0,rm.join)(e,"error.log");(0,tm.writeFileSync)(o,`${s}
|
|
12
12
|
${a}`);let l=a&&a.trim().length?a:s;i(new im.CreateNxWorkspaceError(l,n.code,o))}else r({code:0,stdout:s})})})}ot.execAndWait=sm});var ut=m(U=>{"use strict";Object.defineProperty(U,"__esModule",{value:!0});U.detectInvokedPackageManager=U.getPackageManagerVersion=U.generatePackageManagerFiles=U.getPackageManagerCommand=U.detectPackageManager=U.packageManagerList=void 0;var am=require("child_process"),Wr=require("fs"),Ur=require("path");U.packageManagerList=["pnpm","yarn","npm"];function En(t=""){return(0,Wr.existsSync)((0,Ur.join)(t,"yarn.lock"))?"yarn":(0,Wr.existsSync)((0,Ur.join)(t,"pnpm-lock.yaml"))?"pnpm":"npm"}U.detectPackageManager=En;function om(t=En()){let e=Sn(t),[r,i]=e.split(".");switch(t){case"yarn":let n=+r>=2,s="yarn install --silent";return{preInstall:`yarn set version ${e}`,install:n?s:`${s} --ignore-scripts`,exec:n?"npx":"yarn"};case"pnpm":let a=!1;return(+r>=6&&+i>=13||+r>=7)&&(a=!0),{install:"pnpm install --no-frozen-lockfile --silent --ignore-scripts",exec:a?"pnpm exec":"pnpx"};case"npm":return{install:"npm install --silent --ignore-scripts",exec:"npx"}}}U.getPackageManagerCommand=om;function lm(t,e=En()){let[r]=Sn(e).split(".");switch(e){case"yarn":+r>=2&&((0,Wr.writeFileSync)((0,Ur.join)(t,".yarnrc.yml"),`nodeLinker: node-modules
|
|
13
|
-
enableScripts: false`),(0,Wr.writeFileSync)((0,Ur.join)(t,"yarn.lock"),""));break}}U.generatePackageManagerFiles=lm;var xn=new Map;function Sn(t,e=process.cwd()){if(xn.has(t))return xn.get(t);let r=(0,am.execSync)(`${t} --version`,{cwd:e,encoding:"utf-8"}).trim();return xn.set(t,r),r}U.getPackageManagerVersion=Sn;function um(){let t="npm",e=require.main||process.mainModule;if(!e)return t;for(let r of U.packageManagerList)if(e.path.includes(r)){t=r;break}return t}U.detectInvokedPackageManager=um});var iu=m(ct=>{"use strict";Object.defineProperty(ct,"__esModule",{value:!0});ct.printNxCloudSuccessMessage=ct.setupNxCloud=void 0;var cm=Lt(),hm=lt(),ru=ue(),fm=ut(),dm=
|
|
14
|
-
`).map(r=>r.trim())})}ct.printNxCloudSuccessMessage=mm});var nu=m(On=>{var Fe=require("path"),Se=process.platform==="win32",Ee=require("fs"),gm=process.env.NODE_DEBUG&&/fs/.test(process.env.NODE_DEBUG);function ym(){var t;if(gm){var e=new Error;t=r}else t=i;return t;function r(n){n&&(e.message=n.message,n=e,i(n))}function i(n){if(n){if(process.throwDeprecation)throw n;if(!process.noDeprecation){var s="fs: missing callback "+(n.stack||n.message);process.traceDeprecation?console.trace(s):console.error(s)}}}}function bm(t){return typeof t=="function"?t:ym()}var rw=Fe.normalize;Se?fe=/(.*?)(?:[\/\\]+|$)/g:fe=/(.*?)(?:[\/]+|$)/g;var fe;Se?Ft=/^(?:[a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/][^\\\/]+)?[\\\/]*/:Ft=/^[\/]*/;var Ft;On.realpathSync=function(e,r){if(e=Fe.resolve(e),r&&Object.prototype.hasOwnProperty.call(r,e))return r[e];var i=e,n={},s={},a,o,l,u;h();function h(){var b=Ft.exec(e);a=b[0].length,o=b[0],l=b[0],u="",Se&&!s[l]&&(Ee.lstatSync(l),s[l]=!0)}for(;a<e.length;){fe.lastIndex=a;var c=fe.exec(e);if(u=o,o+=c[0],l=u+c[1],a=fe.lastIndex,!(s[l]||r&&r[l]===l)){var f;if(r&&Object.prototype.hasOwnProperty.call(r,l))f=r[l];else{var d=Ee.lstatSync(l);if(!d.isSymbolicLink()){s[l]=!0,r&&(r[l]=l);continue}var p=null;if(!Se){var g=d.dev.toString(32)+":"+d.ino.toString(32);n.hasOwnProperty(g)&&(p=n[g])}p===null&&(Ee.statSync(l),p=Ee.readlinkSync(l)),f=Fe.resolve(u,p),r&&(r[l]=f),Se||(n[g]=p)}e=Fe.resolve(f,e.slice(a)),h()}}return r&&(r[i]=e),e};On.realpath=function(e,r,i){if(typeof i!="function"&&(i=bm(r),r=null),e=Fe.resolve(e),r&&Object.prototype.hasOwnProperty.call(r,e))return process.nextTick(i.bind(null,null,r[e]));var n=e,s={},a={},o,l,u,h;c();function c(){var b=Ft.exec(e);o=b[0].length,l=b[0],u=b[0],h="",Se&&!a[u]?Ee.lstat(u,function(y){if(y)return i(y);a[u]=!0,f()}):process.nextTick(f)}function f(){if(o>=e.length)return r&&(r[n]=e),i(null,e);fe.lastIndex=o;var b=fe.exec(e);return h=l,l+=b[0],u=h+b[1],o=fe.lastIndex,a[u]||r&&r[u]===u?process.nextTick(f):r&&Object.prototype.hasOwnProperty.call(r,u)?g(r[u]):Ee.lstat(u,d)}function d(b,y){if(b)return i(b);if(!y.isSymbolicLink())return a[u]=!0,r&&(r[u]=u),process.nextTick(f);if(!Se){var w=y.dev.toString(32)+":"+y.ino.toString(32);if(s.hasOwnProperty(w))return p(null,s[w],u)}Ee.stat(u,function(_){if(_)return i(_);Ee.readlink(u,function(x,C){Se||(s[w]=C),p(x,C)})})}function p(b,y,w){if(b)return i(b);var _=Fe.resolve(h,y);r&&(r[w]=_),g(_)}function g(b){e=Fe.resolve(b,e.slice(o)),c()}}});var An=m((nw,lu)=>{lu.exports=Oe;Oe.realpath=Oe;Oe.sync=Rn;Oe.realpathSync=Rn;Oe.monkeypatch=wm;Oe.unmonkeypatch=_m;var ht=require("fs"),Cn=ht.realpath,kn=ht.realpathSync,vm=process.version,su=/^v[0-5]\./.test(vm),au=nu();function ou(t){return t&&t.syscall==="realpath"&&(t.code==="ELOOP"||t.code==="ENOMEM"||t.code==="ENAMETOOLONG")}function Oe(t,e,r){if(su)return Cn(t,e,r);typeof e=="function"&&(r=e,e=null),Cn(t,e,function(i,n){ou(i)?au.realpath(t,e,r):r(i,n)})}function Rn(t,e){if(su)return kn(t,e);try{return kn(t,e)}catch(r){if(ou(r))return au.realpathSync(t,e);throw r}}function wm(){ht.realpath=Oe,ht.realpathSync=Rn}function _m(){ht.realpath=Cn,ht.realpathSync=kn}});var cu=m((sw,uu)=>{uu.exports=function(t,e){for(var r=[],i=0;i<t.length;i++){var n=e(t[i],i);xm(n)?r.push.apply(r,n):r.push(n)}return r};var xm=Array.isArray||function(t){return Object.prototype.toString.call(t)==="[object Array]"}});var mu=m((aw,pu)=>{"use strict";pu.exports=fu;function fu(t,e,r){t instanceof RegExp&&(t=hu(t,r)),e instanceof RegExp&&(e=hu(e,r));var i=du(t,e,r);return i&&{start:i[0],end:i[1],pre:r.slice(0,i[0]),body:r.slice(i[0]+t.length,i[1]),post:r.slice(i[1]+e.length)}}function hu(t,e){var r=e.match(t);return r?r[0]:null}fu.range=du;function du(t,e,r){var i,n,s,a,o,l=r.indexOf(t),u=r.indexOf(e,l+1),h=l;if(l>=0&&u>0){if(t===e)return[l,u];for(i=[],s=r.length;h>=0&&!o;)h==l?(i.push(h),l=r.indexOf(t,h+1)):i.length==1?o=[i.pop(),u]:(n=i.pop(),n<s&&(s=n,a=u),u=r.indexOf(e,h+1)),h=l<u&&l>=0?l:u;i.length&&(o=[s,a])}return o}});var Eu=m((ow,xu)=>{var Em=cu(),gu=mu();xu.exports=Cm;var yu="\0SLASH"+Math.random()+"\0",bu="\0OPEN"+Math.random()+"\0",qn="\0CLOSE"+Math.random()+"\0",vu="\0COMMA"+Math.random()+"\0",wu="\0PERIOD"+Math.random()+"\0";function Tn(t){return parseInt(t,10)==t?parseInt(t,10):t.charCodeAt(0)}function Sm(t){return t.split("\\\\").join(yu).split("\\{").join(bu).split("\\}").join(qn).split("\\,").join(vu).split("\\.").join(wu)}function Om(t){return t.split(yu).join("\\").split(bu).join("{").split(qn).join("}").split(vu).join(",").split(wu).join(".")}function _u(t){if(!t)return[""];var e=[],r=gu("{","}",t);if(!r)return t.split(",");var i=r.pre,n=r.body,s=r.post,a=i.split(",");a[a.length-1]+="{"+n+"}";var o=_u(s);return s.length&&(a[a.length-1]+=o.shift(),a.push.apply(a,o)),e.push.apply(e,a),e}function Cm(t){return t?(t.substr(0,2)==="{}"&&(t="\\{\\}"+t.substr(2)),ft(Sm(t),!0).map(Om)):[]}function km(t){return"{"+t+"}"}function Rm(t){return/^-?0\d/.test(t)}function Am(t,e){return t<=e}function Tm(t,e){return t>=e}function ft(t,e){var r=[],i=gu("{","}",t);if(!i||/\$$/.test(i.pre))return[t];var n=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(i.body),s=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(i.body),a=n||s,o=i.body.indexOf(",")>=0;if(!a&&!o)return i.post.match(/,.*\}/)?(t=i.pre+"{"+i.body+qn+i.post,ft(t)):[t];var l;if(a)l=i.body.split(/\.\./);else if(l=_u(i.body),l.length===1&&(l=ft(l[0],!1).map(km),l.length===1)){var h=i.post.length?ft(i.post,!1):[""];return h.map(function(Et){return i.pre+l[0]+Et})}var u=i.pre,h=i.post.length?ft(i.post,!1):[""],c;if(a){var f=Tn(l[0]),d=Tn(l[1]),p=Math.max(l[0].length,l[1].length),g=l.length==3?Math.abs(Tn(l[2])):1,b=Am,y=d<f;y&&(g*=-1,b=Tm);var w=l.some(Rm);c=[];for(var _=f;b(_,d);_+=g){var x;if(s)x=String.fromCharCode(_),x==="\\"&&(x="");else if(x=String(_),w){var C=p-x.length;if(C>0){var N=new Array(C+1).join("0");_<0?x="-"+N+x.slice(1):x=N+x}}c.push(x)}}else c=Em(l,function(te){return ft(te,!1)});for(var le=0;le<c.length;le++)for(var H=0;H<h.length;H++){var ee=u+c[le]+h[H];(!e||a||ee)&&r.push(ee)}return r}});var Hr=m((lw,Ru)=>{Ru.exports=K;K.Minimatch=F;var $t=function(){try{return require("path")}catch{}}()||{sep:"/"};K.sep=$t.sep;var Pn=K.GLOBSTAR=F.GLOBSTAR={},qm=Eu(),Su={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}},jn="[^/]",Mn=jn+"*?",jm="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",Mm="(?:(?!(?:\\/|^)\\.).)*?",Ou=Pm("().*{}+?[]^$\\!");function Pm(t){return t.split("").reduce(function(e,r){return e[r]=!0,e},{})}var Cu=/\/+/;K.filter=Im;function Im(t,e){return e=e||{},function(r,i,n){return K(r,t,e)}}function Ce(t,e){e=e||{};var r={};return Object.keys(t).forEach(function(i){r[i]=t[i]}),Object.keys(e).forEach(function(i){r[i]=e[i]}),r}K.defaults=function(t){if(!t||typeof t!="object"||!Object.keys(t).length)return K;var e=K,r=function(n,s,a){return e(n,s,Ce(t,a))};return r.Minimatch=function(n,s){return new e.Minimatch(n,Ce(t,s))},r.Minimatch.defaults=function(n){return e.defaults(Ce(t,n)).Minimatch},r.filter=function(n,s){return e.filter(n,Ce(t,s))},r.defaults=function(n){return e.defaults(Ce(t,n))},r.makeRe=function(n,s){return e.makeRe(n,Ce(t,s))},r.braceExpand=function(n,s){return e.braceExpand(n,Ce(t,s))},r.match=function(i,n,s){return e.match(i,n,Ce(t,s))},r};F.defaults=function(t){return K.defaults(t).Minimatch};function K(t,e,r){return zr(e),r||(r={}),!r.nocomment&&e.charAt(0)==="#"?!1:new F(e,r).match(t)}function F(t,e){if(!(this instanceof F))return new F(t,e);zr(t),e||(e={}),t=t.trim(),!e.allowWindowsEscape&&$t.sep!=="/"&&(t=t.split($t.sep).join("/")),this.options=e,this.set=[],this.pattern=t,this.regexp=null,this.negate=!1,this.comment=!1,this.empty=!1,this.partial=!!e.partial,this.make()}F.prototype.debug=function(){};F.prototype.make=Nm;function Nm(){var t=this.pattern,e=this.options;if(!e.nocomment&&t.charAt(0)==="#"){this.comment=!0;return}if(!t){this.empty=!0;return}this.parseNegate();var r=this.globSet=this.braceExpand();e.debug&&(this.debug=function(){console.error.apply(console,arguments)}),this.debug(this.pattern,r),r=this.globParts=r.map(function(i){return i.split(Cu)}),this.debug(this.pattern,r),r=r.map(function(i,n,s){return i.map(this.parse,this)},this),this.debug(this.pattern,r),r=r.filter(function(i){return i.indexOf(!1)===-1}),this.debug(this.pattern,r),this.set=r}F.prototype.parseNegate=Bm;function Bm(){var t=this.pattern,e=!1,r=this.options,i=0;if(!r.nonegate){for(var n=0,s=t.length;n<s&&t.charAt(n)==="!";n++)e=!e,i++;i&&(this.pattern=t.substr(i)),this.negate=e}}K.braceExpand=function(t,e){return ku(t,e)};F.prototype.braceExpand=ku;function ku(t,e){return e||(this instanceof F?e=this.options:e={}),t=typeof t>"u"?this.pattern:t,zr(t),e.nobrace||!/\{(?:(?!\{).)*\}/.test(t)?[t]:qm(t)}var Dm=1024*64,zr=function(t){if(typeof t!="string")throw new TypeError("invalid pattern");if(t.length>Dm)throw new TypeError("pattern is too long")};F.prototype.parse=Lm;var Vr={};function Lm(t,e){zr(t);var r=this.options;if(t==="**")if(r.noglobstar)t="*";else return Pn;if(t==="")return"";var i="",n=!!r.nocase,s=!1,a=[],o=[],l,u=!1,h=-1,c=-1,f=t.charAt(0)==="."?"":r.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",d=this;function p(){if(l){switch(l){case"*":i+=Mn,n=!0;break;case"?":i+=jn,n=!0;break;default:i+="\\"+l;break}d.debug("clearStateChar %j %j",l,i),l=!1}}for(var g=0,b=t.length,y;g<b&&(y=t.charAt(g));g++){if(this.debug("%s %s %s %j",t,g,i,y),s&&Ou[y]){i+="\\"+y,s=!1;continue}switch(y){case"/":return!1;case"\\":p(),s=!0;continue;case"?":case"*":case"+":case"@":case"!":if(this.debug("%s %s %s %j <-- stateChar",t,g,i,y),u){this.debug(" in class"),y==="!"&&g===c+1&&(y="^"),i+=y;continue}d.debug("call clearStateChar %j",l),p(),l=y,r.noext&&p();continue;case"(":if(u){i+="(";continue}if(!l){i+="\\(";continue}a.push({type:l,start:g-1,reStart:i.length,open:Su[l].open,close:Su[l].close}),i+=l==="!"?"(?:(?!(?:":"(?:",this.debug("plType %j %j",l,i),l=!1;continue;case")":if(u||!a.length){i+="\\)";continue}p(),n=!0;var w=a.pop();i+=w.close,w.type==="!"&&o.push(w),w.reEnd=i.length;continue;case"|":if(u||!a.length||s){i+="\\|",s=!1;continue}p(),i+="|";continue;case"[":if(p(),u){i+="\\"+y;continue}u=!0,c=g,h=i.length,i+=y;continue;case"]":if(g===c+1||!u){i+="\\"+y,s=!1;continue}var _=t.substring(c+1,g);try{RegExp("["+_+"]")}catch{var x=this.parse(_,Vr);i=i.substr(0,h)+"\\["+x[0]+"\\]",n=n||x[1],u=!1;continue}n=!0,u=!1,i+=y;continue;default:p(),s?s=!1:Ou[y]&&!(y==="^"&&u)&&(i+="\\"),i+=y}}for(u&&(_=t.substr(c+1),x=this.parse(_,Vr),i=i.substr(0,h)+"\\["+x[0],n=n||x[1]),w=a.pop();w;w=a.pop()){var C=i.slice(w.reStart+w.open.length);this.debug("setting tail",i,w),C=C.replace(/((?:\\{2}){0,64})(\\?)\|/g,function(ra,ia,_i){return _i||(_i="\\"),ia+ia+_i+"|"}),this.debug(`tail=%j
|
|
13
|
+
enableScripts: false`),(0,Wr.writeFileSync)((0,Ur.join)(t,"yarn.lock"),""));break}}U.generatePackageManagerFiles=lm;var xn=new Map;function Sn(t,e=process.cwd()){if(xn.has(t))return xn.get(t);let r=(0,am.execSync)(`${t} --version`,{cwd:e,encoding:"utf-8"}).trim();return xn.set(t,r),r}U.getPackageManagerVersion=Sn;function um(){let t="npm",e=require.main||process.mainModule;if(!e)return t;for(let r of U.packageManagerList)if(e.path.includes(r)){t=r;break}return t}U.detectInvokedPackageManager=um});var iu=m(ct=>{"use strict";Object.defineProperty(ct,"__esModule",{value:!0});ct.printNxCloudSuccessMessage=ct.setupNxCloud=void 0;var cm=Lt(),hm=lt(),ru=ue(),fm=ut(),dm=De();async function pm(t,e){let r=cm("Setting up NxCloud").start();try{let i=(0,fm.getPackageManagerCommand)(e),n=await(0,hm.execAndWait)(`${i.exec} nx g nx:connect-to-nx-cloud --no-interactive --quiet`,t);return r.succeed("NxCloud has been set up successfully"),n}catch(i){r.fail(),i instanceof Error?ru.output.error({title:"Failed to setup NxCloud",bodyLines:(0,dm.mapErrorToBodyLines)(i)}):console.error(i),process.exit(1)}finally{r.stop()}}ct.setupNxCloud=pm;function mm(t){let e=t.split("Distributed caching via Nx Cloud has been enabled")[1].trim();ru.output.note({title:"Distributed caching via Nx Cloud has been enabled",bodyLines:e.split(`
|
|
14
|
+
`).map(r=>r.trim())})}ct.printNxCloudSuccessMessage=mm});var nu=m(On=>{var Le=require("path"),Se=process.platform==="win32",Ee=require("fs"),gm=process.env.NODE_DEBUG&&/fs/.test(process.env.NODE_DEBUG);function ym(){var t;if(gm){var e=new Error;t=r}else t=i;return t;function r(n){n&&(e.message=n.message,n=e,i(n))}function i(n){if(n){if(process.throwDeprecation)throw n;if(!process.noDeprecation){var s="fs: missing callback "+(n.stack||n.message);process.traceDeprecation?console.trace(s):console.error(s)}}}}function bm(t){return typeof t=="function"?t:ym()}var rw=Le.normalize;Se?fe=/(.*?)(?:[\/\\]+|$)/g:fe=/(.*?)(?:[\/]+|$)/g;var fe;Se?Ft=/^(?:[a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/][^\\\/]+)?[\\\/]*/:Ft=/^[\/]*/;var Ft;On.realpathSync=function(e,r){if(e=Le.resolve(e),r&&Object.prototype.hasOwnProperty.call(r,e))return r[e];var i=e,n={},s={},a,o,l,u;h();function h(){var b=Ft.exec(e);a=b[0].length,o=b[0],l=b[0],u="",Se&&!s[l]&&(Ee.lstatSync(l),s[l]=!0)}for(;a<e.length;){fe.lastIndex=a;var c=fe.exec(e);if(u=o,o+=c[0],l=u+c[1],a=fe.lastIndex,!(s[l]||r&&r[l]===l)){var f;if(r&&Object.prototype.hasOwnProperty.call(r,l))f=r[l];else{var d=Ee.lstatSync(l);if(!d.isSymbolicLink()){s[l]=!0,r&&(r[l]=l);continue}var p=null;if(!Se){var g=d.dev.toString(32)+":"+d.ino.toString(32);n.hasOwnProperty(g)&&(p=n[g])}p===null&&(Ee.statSync(l),p=Ee.readlinkSync(l)),f=Le.resolve(u,p),r&&(r[l]=f),Se||(n[g]=p)}e=Le.resolve(f,e.slice(a)),h()}}return r&&(r[i]=e),e};On.realpath=function(e,r,i){if(typeof i!="function"&&(i=bm(r),r=null),e=Le.resolve(e),r&&Object.prototype.hasOwnProperty.call(r,e))return process.nextTick(i.bind(null,null,r[e]));var n=e,s={},a={},o,l,u,h;c();function c(){var b=Ft.exec(e);o=b[0].length,l=b[0],u=b[0],h="",Se&&!a[u]?Ee.lstat(u,function(y){if(y)return i(y);a[u]=!0,f()}):process.nextTick(f)}function f(){if(o>=e.length)return r&&(r[n]=e),i(null,e);fe.lastIndex=o;var b=fe.exec(e);return h=l,l+=b[0],u=h+b[1],o=fe.lastIndex,a[u]||r&&r[u]===u?process.nextTick(f):r&&Object.prototype.hasOwnProperty.call(r,u)?g(r[u]):Ee.lstat(u,d)}function d(b,y){if(b)return i(b);if(!y.isSymbolicLink())return a[u]=!0,r&&(r[u]=u),process.nextTick(f);if(!Se){var w=y.dev.toString(32)+":"+y.ino.toString(32);if(s.hasOwnProperty(w))return p(null,s[w],u)}Ee.stat(u,function(_){if(_)return i(_);Ee.readlink(u,function(x,C){Se||(s[w]=C),p(x,C)})})}function p(b,y,w){if(b)return i(b);var _=Le.resolve(h,y);r&&(r[w]=_),g(_)}function g(b){e=Le.resolve(b,e.slice(o)),c()}}});var An=m((nw,lu)=>{lu.exports=Oe;Oe.realpath=Oe;Oe.sync=Rn;Oe.realpathSync=Rn;Oe.monkeypatch=wm;Oe.unmonkeypatch=_m;var ht=require("fs"),Cn=ht.realpath,kn=ht.realpathSync,vm=process.version,su=/^v[0-5]\./.test(vm),au=nu();function ou(t){return t&&t.syscall==="realpath"&&(t.code==="ELOOP"||t.code==="ENOMEM"||t.code==="ENAMETOOLONG")}function Oe(t,e,r){if(su)return Cn(t,e,r);typeof e=="function"&&(r=e,e=null),Cn(t,e,function(i,n){ou(i)?au.realpath(t,e,r):r(i,n)})}function Rn(t,e){if(su)return kn(t,e);try{return kn(t,e)}catch(r){if(ou(r))return au.realpathSync(t,e);throw r}}function wm(){ht.realpath=Oe,ht.realpathSync=Rn}function _m(){ht.realpath=Cn,ht.realpathSync=kn}});var cu=m((sw,uu)=>{uu.exports=function(t,e){for(var r=[],i=0;i<t.length;i++){var n=e(t[i],i);xm(n)?r.push.apply(r,n):r.push(n)}return r};var xm=Array.isArray||function(t){return Object.prototype.toString.call(t)==="[object Array]"}});var mu=m((aw,pu)=>{"use strict";pu.exports=fu;function fu(t,e,r){t instanceof RegExp&&(t=hu(t,r)),e instanceof RegExp&&(e=hu(e,r));var i=du(t,e,r);return i&&{start:i[0],end:i[1],pre:r.slice(0,i[0]),body:r.slice(i[0]+t.length,i[1]),post:r.slice(i[1]+e.length)}}function hu(t,e){var r=e.match(t);return r?r[0]:null}fu.range=du;function du(t,e,r){var i,n,s,a,o,l=r.indexOf(t),u=r.indexOf(e,l+1),h=l;if(l>=0&&u>0){if(t===e)return[l,u];for(i=[],s=r.length;h>=0&&!o;)h==l?(i.push(h),l=r.indexOf(t,h+1)):i.length==1?o=[i.pop(),u]:(n=i.pop(),n<s&&(s=n,a=u),u=r.indexOf(e,h+1)),h=l<u&&l>=0?l:u;i.length&&(o=[s,a])}return o}});var Eu=m((ow,xu)=>{var Em=cu(),gu=mu();xu.exports=Cm;var yu="\0SLASH"+Math.random()+"\0",bu="\0OPEN"+Math.random()+"\0",qn="\0CLOSE"+Math.random()+"\0",vu="\0COMMA"+Math.random()+"\0",wu="\0PERIOD"+Math.random()+"\0";function Tn(t){return parseInt(t,10)==t?parseInt(t,10):t.charCodeAt(0)}function Sm(t){return t.split("\\\\").join(yu).split("\\{").join(bu).split("\\}").join(qn).split("\\,").join(vu).split("\\.").join(wu)}function Om(t){return t.split(yu).join("\\").split(bu).join("{").split(qn).join("}").split(vu).join(",").split(wu).join(".")}function _u(t){if(!t)return[""];var e=[],r=gu("{","}",t);if(!r)return t.split(",");var i=r.pre,n=r.body,s=r.post,a=i.split(",");a[a.length-1]+="{"+n+"}";var o=_u(s);return s.length&&(a[a.length-1]+=o.shift(),a.push.apply(a,o)),e.push.apply(e,a),e}function Cm(t){return t?(t.substr(0,2)==="{}"&&(t="\\{\\}"+t.substr(2)),ft(Sm(t),!0).map(Om)):[]}function km(t){return"{"+t+"}"}function Rm(t){return/^-?0\d/.test(t)}function Am(t,e){return t<=e}function Tm(t,e){return t>=e}function ft(t,e){var r=[],i=gu("{","}",t);if(!i||/\$$/.test(i.pre))return[t];var n=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(i.body),s=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(i.body),a=n||s,o=i.body.indexOf(",")>=0;if(!a&&!o)return i.post.match(/,.*\}/)?(t=i.pre+"{"+i.body+qn+i.post,ft(t)):[t];var l;if(a)l=i.body.split(/\.\./);else if(l=_u(i.body),l.length===1&&(l=ft(l[0],!1).map(km),l.length===1)){var h=i.post.length?ft(i.post,!1):[""];return h.map(function(Et){return i.pre+l[0]+Et})}var u=i.pre,h=i.post.length?ft(i.post,!1):[""],c;if(a){var f=Tn(l[0]),d=Tn(l[1]),p=Math.max(l[0].length,l[1].length),g=l.length==3?Math.abs(Tn(l[2])):1,b=Am,y=d<f;y&&(g*=-1,b=Tm);var w=l.some(Rm);c=[];for(var _=f;b(_,d);_+=g){var x;if(s)x=String.fromCharCode(_),x==="\\"&&(x="");else if(x=String(_),w){var C=p-x.length;if(C>0){var N=new Array(C+1).join("0");_<0?x="-"+N+x.slice(1):x=N+x}}c.push(x)}}else c=Em(l,function(te){return ft(te,!1)});for(var le=0;le<c.length;le++)for(var H=0;H<h.length;H++){var ee=u+c[le]+h[H];(!e||a||ee)&&r.push(ee)}return r}});var Hr=m((lw,Ru)=>{Ru.exports=K;K.Minimatch=F;var $t=function(){try{return require("path")}catch{}}()||{sep:"/"};K.sep=$t.sep;var Pn=K.GLOBSTAR=F.GLOBSTAR={},qm=Eu(),Su={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}},jn="[^/]",Mn=jn+"*?",jm="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",Mm="(?:(?!(?:\\/|^)\\.).)*?",Ou=Pm("().*{}+?[]^$\\!");function Pm(t){return t.split("").reduce(function(e,r){return e[r]=!0,e},{})}var Cu=/\/+/;K.filter=Im;function Im(t,e){return e=e||{},function(r,i,n){return K(r,t,e)}}function Ce(t,e){e=e||{};var r={};return Object.keys(t).forEach(function(i){r[i]=t[i]}),Object.keys(e).forEach(function(i){r[i]=e[i]}),r}K.defaults=function(t){if(!t||typeof t!="object"||!Object.keys(t).length)return K;var e=K,r=function(n,s,a){return e(n,s,Ce(t,a))};return r.Minimatch=function(n,s){return new e.Minimatch(n,Ce(t,s))},r.Minimatch.defaults=function(n){return e.defaults(Ce(t,n)).Minimatch},r.filter=function(n,s){return e.filter(n,Ce(t,s))},r.defaults=function(n){return e.defaults(Ce(t,n))},r.makeRe=function(n,s){return e.makeRe(n,Ce(t,s))},r.braceExpand=function(n,s){return e.braceExpand(n,Ce(t,s))},r.match=function(i,n,s){return e.match(i,n,Ce(t,s))},r};F.defaults=function(t){return K.defaults(t).Minimatch};function K(t,e,r){return zr(e),r||(r={}),!r.nocomment&&e.charAt(0)==="#"?!1:new F(e,r).match(t)}function F(t,e){if(!(this instanceof F))return new F(t,e);zr(t),e||(e={}),t=t.trim(),!e.allowWindowsEscape&&$t.sep!=="/"&&(t=t.split($t.sep).join("/")),this.options=e,this.set=[],this.pattern=t,this.regexp=null,this.negate=!1,this.comment=!1,this.empty=!1,this.partial=!!e.partial,this.make()}F.prototype.debug=function(){};F.prototype.make=Nm;function Nm(){var t=this.pattern,e=this.options;if(!e.nocomment&&t.charAt(0)==="#"){this.comment=!0;return}if(!t){this.empty=!0;return}this.parseNegate();var r=this.globSet=this.braceExpand();e.debug&&(this.debug=function(){console.error.apply(console,arguments)}),this.debug(this.pattern,r),r=this.globParts=r.map(function(i){return i.split(Cu)}),this.debug(this.pattern,r),r=r.map(function(i,n,s){return i.map(this.parse,this)},this),this.debug(this.pattern,r),r=r.filter(function(i){return i.indexOf(!1)===-1}),this.debug(this.pattern,r),this.set=r}F.prototype.parseNegate=Bm;function Bm(){var t=this.pattern,e=!1,r=this.options,i=0;if(!r.nonegate){for(var n=0,s=t.length;n<s&&t.charAt(n)==="!";n++)e=!e,i++;i&&(this.pattern=t.substr(i)),this.negate=e}}K.braceExpand=function(t,e){return ku(t,e)};F.prototype.braceExpand=ku;function ku(t,e){return e||(this instanceof F?e=this.options:e={}),t=typeof t>"u"?this.pattern:t,zr(t),e.nobrace||!/\{(?:(?!\{).)*\}/.test(t)?[t]:qm(t)}var Dm=1024*64,zr=function(t){if(typeof t!="string")throw new TypeError("invalid pattern");if(t.length>Dm)throw new TypeError("pattern is too long")};F.prototype.parse=Lm;var Vr={};function Lm(t,e){zr(t);var r=this.options;if(t==="**")if(r.noglobstar)t="*";else return Pn;if(t==="")return"";var i="",n=!!r.nocase,s=!1,a=[],o=[],l,u=!1,h=-1,c=-1,f=t.charAt(0)==="."?"":r.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",d=this;function p(){if(l){switch(l){case"*":i+=Mn,n=!0;break;case"?":i+=jn,n=!0;break;default:i+="\\"+l;break}d.debug("clearStateChar %j %j",l,i),l=!1}}for(var g=0,b=t.length,y;g<b&&(y=t.charAt(g));g++){if(this.debug("%s %s %s %j",t,g,i,y),s&&Ou[y]){i+="\\"+y,s=!1;continue}switch(y){case"/":return!1;case"\\":p(),s=!0;continue;case"?":case"*":case"+":case"@":case"!":if(this.debug("%s %s %s %j <-- stateChar",t,g,i,y),u){this.debug(" in class"),y==="!"&&g===c+1&&(y="^"),i+=y;continue}d.debug("call clearStateChar %j",l),p(),l=y,r.noext&&p();continue;case"(":if(u){i+="(";continue}if(!l){i+="\\(";continue}a.push({type:l,start:g-1,reStart:i.length,open:Su[l].open,close:Su[l].close}),i+=l==="!"?"(?:(?!(?:":"(?:",this.debug("plType %j %j",l,i),l=!1;continue;case")":if(u||!a.length){i+="\\)";continue}p(),n=!0;var w=a.pop();i+=w.close,w.type==="!"&&o.push(w),w.reEnd=i.length;continue;case"|":if(u||!a.length||s){i+="\\|",s=!1;continue}p(),i+="|";continue;case"[":if(p(),u){i+="\\"+y;continue}u=!0,c=g,h=i.length,i+=y;continue;case"]":if(g===c+1||!u){i+="\\"+y,s=!1;continue}var _=t.substring(c+1,g);try{RegExp("["+_+"]")}catch{var x=this.parse(_,Vr);i=i.substr(0,h)+"\\["+x[0]+"\\]",n=n||x[1],u=!1;continue}n=!0,u=!1,i+=y;continue;default:p(),s?s=!1:Ou[y]&&!(y==="^"&&u)&&(i+="\\"),i+=y}}for(u&&(_=t.substr(c+1),x=this.parse(_,Vr),i=i.substr(0,h)+"\\["+x[0],n=n||x[1]),w=a.pop();w;w=a.pop()){var C=i.slice(w.reStart+w.open.length);this.debug("setting tail",i,w),C=C.replace(/((?:\\{2}){0,64})(\\?)\|/g,function(ra,ia,_i){return _i||(_i="\\"),ia+ia+_i+"|"}),this.debug(`tail=%j
|
|
15
15
|
%s`,C,C,w,i);var N=w.type==="*"?Mn:w.type==="?"?jn:"\\"+w.type;n=!0,i=i.slice(0,w.reStart)+N+"\\("+C}p(),s&&(i+="\\\\");var le=!1;switch(i.charAt(0)){case"[":case".":case"(":le=!0}for(var H=o.length-1;H>-1;H--){var ee=o[H],te=i.slice(0,ee.reStart),Et=i.slice(ee.reStart,ee.reEnd-8),ea=i.slice(ee.reEnd-8,ee.reEnd),St=i.slice(ee.reEnd);ea+=St;var If=te.split("(").length-1,vi=St;for(g=0;g<If;g++)vi=vi.replace(/\)[+*?]?/,"");St=vi;var ta="";St===""&&e!==Vr&&(ta="$");var Nf=te+Et+St+ta+ea;i=Nf}if(i!==""&&n&&(i="(?=.)"+i),le&&(i=f+i),e===Vr)return[i,n];if(!n)return $m(t);var Bf=r.nocase?"i":"";try{var wi=new RegExp("^"+i+"$",Bf)}catch{return new RegExp("$.")}return wi._glob=t,wi._src=i,wi}K.makeRe=function(t,e){return new F(t,e||{}).makeRe()};F.prototype.makeRe=Fm;function Fm(){if(this.regexp||this.regexp===!1)return this.regexp;var t=this.set;if(!t.length)return this.regexp=!1,this.regexp;var e=this.options,r=e.noglobstar?Mn:e.dot?jm:Mm,i=e.nocase?"i":"",n=t.map(function(s){return s.map(function(a){return a===Pn?r:typeof a=="string"?Gm(a):a._src}).join("\\/")}).join("|");n="^(?:"+n+")$",this.negate&&(n="^(?!"+n+").*$");try{this.regexp=new RegExp(n,i)}catch{this.regexp=!1}return this.regexp}K.match=function(t,e,r){r=r||{};var i=new F(e,r);return t=t.filter(function(n){return i.match(n)}),i.options.nonull&&!t.length&&t.push(e),t};F.prototype.match=function(e,r){if(typeof r>"u"&&(r=this.partial),this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return e==="";if(e==="/"&&r)return!0;var i=this.options;$t.sep!=="/"&&(e=e.split($t.sep).join("/")),e=e.split(Cu),this.debug(this.pattern,"split",e);var n=this.set;this.debug(this.pattern,"set",n);var s,a;for(a=e.length-1;a>=0&&(s=e[a],!s);a--);for(a=0;a<n.length;a++){var o=n[a],l=e;i.matchBase&&o.length===1&&(l=[s]);var u=this.matchOne(l,o,r);if(u)return i.flipNegate?!0:!this.negate}return i.flipNegate?!1:this.negate};F.prototype.matchOne=function(t,e,r){var i=this.options;this.debug("matchOne",{this:this,file:t,pattern:e}),this.debug("matchOne",t.length,e.length);for(var n=0,s=0,a=t.length,o=e.length;n<a&&s<o;n++,s++){this.debug("matchOne loop");var l=e[s],u=t[n];if(this.debug(e,l,u),l===!1)return!1;if(l===Pn){this.debug("GLOBSTAR",[e,l,u]);var h=n,c=s+1;if(c===o){for(this.debug("** at the end");n<a;n++)if(t[n]==="."||t[n]===".."||!i.dot&&t[n].charAt(0)===".")return!1;return!0}for(;h<a;){var f=t[h];if(this.debug(`
|
|
16
16
|
globstar while`,t,h,e,c,f),this.matchOne(t.slice(h),e.slice(c),r))return this.debug("globstar found match!",h,a,f),!0;if(f==="."||f===".."||!i.dot&&f.charAt(0)==="."){this.debug("dot detected!",t,h,e,c);break}this.debug("globstar swallow a segment, and continue"),h++}return!!(r&&(this.debug(`
|
|
17
|
-
>>> no match, partial?`,t,h,e,c),h===a))}var d;if(typeof l=="string"?(d=u===l,this.debug("string match",l,u,d)):(d=u.match(l),this.debug("pattern match",l,u,d)),!d)return!1}if(n===a&&s===o)return!0;if(n===a)return r;if(s===o)return n===a-1&&t[n]==="";throw new Error("wtf?")};function $m(t){return t.replace(/\\(.)/g,"$1")}function Gm(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}});var Yr=m((uw,Kr)=>{"use strict";function Au(t){return t.charAt(0)==="/"}function Tu(t){var e=/^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/,r=e.exec(t),i=r[1]||"",n=!!(i&&i.charAt(1)!==":");return!!(r[2]||n)}Kr.exports=process.platform==="win32"?Tu:Au;Kr.exports.posix=Au;Kr.exports.win32=Tu});var Nn=m(ke=>{ke.setopts=Km;ke.ownProp=qu;ke.makeAbs=Gt;ke.finish=Ym;ke.mark=Xm;ke.isIgnored=Mu;ke.childrenIgnored=Zm;function qu(t,e){return Object.prototype.hasOwnProperty.call(t,e)}var Wm=require("fs"),dt=require("path"),Um=Hr(),ju=Yr(),In=Um.Minimatch;function Vm(t,e){return t.localeCompare(e,"en")}function zm(t,e){t.ignore=e.ignore||[],Array.isArray(t.ignore)||(t.ignore=[t.ignore]),t.ignore.length&&(t.ignore=t.ignore.map(Hm))}function Hm(t){var e=null;if(t.slice(-3)==="/**"){var r=t.replace(/(\/\*\*)+$/,"");e=new In(r,{dot:!0})}return{matcher:new In(t,{dot:!0}),gmatcher:e}}function Km(t,e,r){if(r||(r={}),r.matchBase&&e.indexOf("/")===-1){if(r.noglobstar)throw new Error("base matching requires globstar");e="**/"+e}t.silent=!!r.silent,t.pattern=e,t.strict=r.strict!==!1,t.realpath=!!r.realpath,t.realpathCache=r.realpathCache||Object.create(null),t.follow=!!r.follow,t.dot=!!r.dot,t.mark=!!r.mark,t.nodir=!!r.nodir,t.nodir&&(t.mark=!0),t.sync=!!r.sync,t.nounique=!!r.nounique,t.nonull=!!r.nonull,t.nosort=!!r.nosort,t.nocase=!!r.nocase,t.stat=!!r.stat,t.noprocess=!!r.noprocess,t.absolute=!!r.absolute,t.fs=r.fs||Wm,t.maxLength=r.maxLength||1/0,t.cache=r.cache||Object.create(null),t.statCache=r.statCache||Object.create(null),t.symlinks=r.symlinks||Object.create(null),zm(t,r),t.changedCwd=!1;var i=process.cwd();qu(r,"cwd")?(t.cwd=dt.resolve(r.cwd),t.changedCwd=t.cwd!==i):t.cwd=i,t.root=r.root||dt.resolve(t.cwd,"/"),t.root=dt.resolve(t.root),process.platform==="win32"&&(t.root=t.root.replace(/\\/g,"/")),t.cwdAbs=ju(t.cwd)?t.cwd:Gt(t,t.cwd),process.platform==="win32"&&(t.cwdAbs=t.cwdAbs.replace(/\\/g,"/")),t.nomount=!!r.nomount,r.nonegate=!0,r.nocomment=!0,r.allowWindowsEscape=!1,t.minimatch=new In(e,r),t.options=t.minimatch.options}function Ym(t){for(var e=t.nounique,r=e?[]:Object.create(null),i=0,n=t.matches.length;i<n;i++){var s=t.matches[i];if(!s||Object.keys(s).length===0){if(t.nonull){var a=t.minimatch.globSet[i];e?r.push(a):r[a]=!0}}else{var o=Object.keys(s);e?r.push.apply(r,o):o.forEach(function(l){r[l]=!0})}}if(e||(r=Object.keys(r)),t.nosort||(r=r.sort(Vm)),t.mark){for(var i=0;i<r.length;i++)r[i]=t._mark(r[i]);t.nodir&&(r=r.filter(function(l){var u=!/\/$/.test(l),h=t.cache[l]||t.cache[Gt(t,l)];return u&&h&&(u=h!=="DIR"&&!Array.isArray(h)),u}))}t.ignore.length&&(r=r.filter(function(l){return!Mu(t,l)})),t.found=r}function Xm(t,e){var r=Gt(t,e),i=t.cache[r],n=e;if(i){var s=i==="DIR"||Array.isArray(i),a=e.slice(-1)==="/";if(s&&!a?n+="/":!s&&a&&(n=n.slice(0,-1)),n!==e){var o=Gt(t,n);t.statCache[o]=t.statCache[r],t.cache[o]=t.cache[r]}}return n}function Gt(t,e){var r=e;return e.charAt(0)==="/"?r=dt.join(t.root,e):ju(e)||e===""?r=e:t.changedCwd?r=dt.resolve(t.cwd,e):r=dt.resolve(e),process.platform==="win32"&&(r=r.replace(/\\/g,"/")),r}function Mu(t,e){return t.ignore.length?t.ignore.some(function(r){return r.matcher.match(e)||!!(r.gmatcher&&r.gmatcher.match(e))}):!1}function Zm(t,e){return t.ignore.length?t.ignore.some(function(r){return!!(r.gmatcher&&r.gmatcher.match(e))}):!1}});var Du=m((pw,Bu)=>{Bu.exports=Nu;Nu.GlobSync=P;var Qm=An(),Pu=Hr(),hw=Pu.Minimatch,fw=Ln().Glob,dw=require("util"),Bn=require("path"),Iu=require("assert"),Xr=Yr()
|
|
17
|
+
>>> no match, partial?`,t,h,e,c),h===a))}var d;if(typeof l=="string"?(d=u===l,this.debug("string match",l,u,d)):(d=u.match(l),this.debug("pattern match",l,u,d)),!d)return!1}if(n===a&&s===o)return!0;if(n===a)return r;if(s===o)return n===a-1&&t[n]==="";throw new Error("wtf?")};function $m(t){return t.replace(/\\(.)/g,"$1")}function Gm(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}});var Yr=m((uw,Kr)=>{"use strict";function Au(t){return t.charAt(0)==="/"}function Tu(t){var e=/^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/,r=e.exec(t),i=r[1]||"",n=!!(i&&i.charAt(1)!==":");return!!(r[2]||n)}Kr.exports=process.platform==="win32"?Tu:Au;Kr.exports.posix=Au;Kr.exports.win32=Tu});var Nn=m(ke=>{ke.setopts=Km;ke.ownProp=qu;ke.makeAbs=Gt;ke.finish=Ym;ke.mark=Xm;ke.isIgnored=Mu;ke.childrenIgnored=Zm;function qu(t,e){return Object.prototype.hasOwnProperty.call(t,e)}var Wm=require("fs"),dt=require("path"),Um=Hr(),ju=Yr(),In=Um.Minimatch;function Vm(t,e){return t.localeCompare(e,"en")}function zm(t,e){t.ignore=e.ignore||[],Array.isArray(t.ignore)||(t.ignore=[t.ignore]),t.ignore.length&&(t.ignore=t.ignore.map(Hm))}function Hm(t){var e=null;if(t.slice(-3)==="/**"){var r=t.replace(/(\/\*\*)+$/,"");e=new In(r,{dot:!0})}return{matcher:new In(t,{dot:!0}),gmatcher:e}}function Km(t,e,r){if(r||(r={}),r.matchBase&&e.indexOf("/")===-1){if(r.noglobstar)throw new Error("base matching requires globstar");e="**/"+e}t.silent=!!r.silent,t.pattern=e,t.strict=r.strict!==!1,t.realpath=!!r.realpath,t.realpathCache=r.realpathCache||Object.create(null),t.follow=!!r.follow,t.dot=!!r.dot,t.mark=!!r.mark,t.nodir=!!r.nodir,t.nodir&&(t.mark=!0),t.sync=!!r.sync,t.nounique=!!r.nounique,t.nonull=!!r.nonull,t.nosort=!!r.nosort,t.nocase=!!r.nocase,t.stat=!!r.stat,t.noprocess=!!r.noprocess,t.absolute=!!r.absolute,t.fs=r.fs||Wm,t.maxLength=r.maxLength||1/0,t.cache=r.cache||Object.create(null),t.statCache=r.statCache||Object.create(null),t.symlinks=r.symlinks||Object.create(null),zm(t,r),t.changedCwd=!1;var i=process.cwd();qu(r,"cwd")?(t.cwd=dt.resolve(r.cwd),t.changedCwd=t.cwd!==i):t.cwd=i,t.root=r.root||dt.resolve(t.cwd,"/"),t.root=dt.resolve(t.root),process.platform==="win32"&&(t.root=t.root.replace(/\\/g,"/")),t.cwdAbs=ju(t.cwd)?t.cwd:Gt(t,t.cwd),process.platform==="win32"&&(t.cwdAbs=t.cwdAbs.replace(/\\/g,"/")),t.nomount=!!r.nomount,r.nonegate=!0,r.nocomment=!0,r.allowWindowsEscape=!1,t.minimatch=new In(e,r),t.options=t.minimatch.options}function Ym(t){for(var e=t.nounique,r=e?[]:Object.create(null),i=0,n=t.matches.length;i<n;i++){var s=t.matches[i];if(!s||Object.keys(s).length===0){if(t.nonull){var a=t.minimatch.globSet[i];e?r.push(a):r[a]=!0}}else{var o=Object.keys(s);e?r.push.apply(r,o):o.forEach(function(l){r[l]=!0})}}if(e||(r=Object.keys(r)),t.nosort||(r=r.sort(Vm)),t.mark){for(var i=0;i<r.length;i++)r[i]=t._mark(r[i]);t.nodir&&(r=r.filter(function(l){var u=!/\/$/.test(l),h=t.cache[l]||t.cache[Gt(t,l)];return u&&h&&(u=h!=="DIR"&&!Array.isArray(h)),u}))}t.ignore.length&&(r=r.filter(function(l){return!Mu(t,l)})),t.found=r}function Xm(t,e){var r=Gt(t,e),i=t.cache[r],n=e;if(i){var s=i==="DIR"||Array.isArray(i),a=e.slice(-1)==="/";if(s&&!a?n+="/":!s&&a&&(n=n.slice(0,-1)),n!==e){var o=Gt(t,n);t.statCache[o]=t.statCache[r],t.cache[o]=t.cache[r]}}return n}function Gt(t,e){var r=e;return e.charAt(0)==="/"?r=dt.join(t.root,e):ju(e)||e===""?r=e:t.changedCwd?r=dt.resolve(t.cwd,e):r=dt.resolve(e),process.platform==="win32"&&(r=r.replace(/\\/g,"/")),r}function Mu(t,e){return t.ignore.length?t.ignore.some(function(r){return r.matcher.match(e)||!!(r.gmatcher&&r.gmatcher.match(e))}):!1}function Zm(t,e){return t.ignore.length?t.ignore.some(function(r){return!!(r.gmatcher&&r.gmatcher.match(e))}):!1}});var Du=m((pw,Bu)=>{Bu.exports=Nu;Nu.GlobSync=P;var Qm=An(),Pu=Hr(),hw=Pu.Minimatch,fw=Ln().Glob,dw=require("util"),Bn=require("path"),Iu=require("assert"),Xr=Yr(),Fe=Nn(),Jm=Fe.setopts,Dn=Fe.ownProp,eg=Fe.childrenIgnored,tg=Fe.isIgnored;function Nu(t,e){if(typeof e=="function"||arguments.length===3)throw new TypeError(`callback provided to sync glob
|
|
18
18
|
See: https://github.com/isaacs/node-glob/issues/167`);return new P(t,e).found}function P(t,e){if(!t)throw new Error("must provide pattern");if(typeof e=="function"||arguments.length===3)throw new TypeError(`callback provided to sync glob
|
|
19
|
-
See: https://github.com/isaacs/node-glob/issues/167`);if(!(this instanceof P))return new P(t,e);if(Jm(this,t,e),this.noprocess)return this;var r=this.minimatch.set.length;this.matches=new Array(r);for(var i=0;i<r;i++)this._process(this.minimatch.set[i],i,!1);this._finish()}P.prototype._finish=function(){if(Iu.ok(this instanceof P),this.realpath){var t=this;this.matches.forEach(function(e,r){var i=t.matches[r]=Object.create(null);for(var n in e)try{n=t._makeAbs(n);var s=Qm.realpathSync(n,t.realpathCache);i[s]=!0}catch(a){if(a.syscall==="stat")i[t._makeAbs(n)]=!0;else throw a}})}$e.finish(this)};P.prototype._process=function(t,e,r){Iu.ok(this instanceof P);for(var i=0;typeof t[i]=="string";)i++;var n;switch(i){case t.length:this._processSimple(t.join("/"),e);return;case 0:n=null;break;default:n=t.slice(0,i).join("/");break}var s=t.slice(i),a;n===null?a=".":((Xr(n)||Xr(t.map(function(u){return typeof u=="string"?u:"[*]"}).join("/")))&&(!n||!Xr(n))&&(n="/"+n),a=n);var o=this._makeAbs(a);if(!eg(this,a)){var l=s[0]===Pu.GLOBSTAR;l?this._processGlobStar(n,a,o,s,e,r):this._processReaddir(n,a,o,s,e,r)}};P.prototype._processReaddir=function(t,e,r,i,n,s){var a=this._readdir(r,s);if(a){for(var o=i[0],l=!!this.minimatch.negate,u=o._glob,h=this.dot||u.charAt(0)===".",c=[],f=0;f<a.length;f++){var d=a[f];if(d.charAt(0)!=="."||h){var p;l&&!t?p=!d.match(o):p=d.match(o),p&&c.push(d)}}var g=c.length;if(g!==0){if(i.length===1&&!this.mark&&!this.stat){this.matches[n]||(this.matches[n]=Object.create(null));for(var f=0;f<g;f++){var d=c[f];t&&(t.slice(-1)!=="/"?d=t+"/"+d:d=t+d),d.charAt(0)==="/"&&!this.nomount&&(d=Bn.join(this.root,d)),this._emitMatch(n,d)}return}i.shift();for(var f=0;f<g;f++){var d=c[f],b;t?b=[t,d]:b=[d],this._process(b.concat(i),n,s)}}}};P.prototype._emitMatch=function(t,e){if(!tg(this,e)){var r=this._makeAbs(e);if(this.mark&&(e=this._mark(e)),this.absolute&&(e=r),!this.matches[t][e]){if(this.nodir){var i=this.cache[r];if(i==="DIR"||Array.isArray(i))return}this.matches[t][e]=!0,this.stat&&this._stat(e)}}};P.prototype._readdirInGlobStar=function(t){if(this.follow)return this._readdir(t,!1);var e,r,i;try{r=this.fs.lstatSync(t)}catch(s){if(s.code==="ENOENT")return null}var n=r&&r.isSymbolicLink();return this.symlinks[t]=n,!n&&r&&!r.isDirectory()?this.cache[t]="FILE":e=this._readdir(t,!1),e};P.prototype._readdir=function(t,e){var r;if(e&&!Dn(this.symlinks,t))return this._readdirInGlobStar(t);if(Dn(this.cache,t)){var i=this.cache[t];if(!i||i==="FILE")return null;if(Array.isArray(i))return i}try{return this._readdirEntries(t,this.fs.readdirSync(t))}catch(n){return this._readdirError(t,n),null}};P.prototype._readdirEntries=function(t,e){if(!this.mark&&!this.stat)for(var r=0;r<e.length;r++){var i=e[r];t==="/"?i=t+i:i=t+"/"+i,this.cache[i]=!0}return this.cache[t]=e,e};P.prototype._readdirError=function(t,e){switch(e.code){case"ENOTSUP":case"ENOTDIR":var r=this._makeAbs(t);if(this.cache[r]="FILE",r===this.cwdAbs){var i=new Error(e.code+" invalid cwd "+this.cwd);throw i.path=this.cwd,i.code=e.code,i}break;case"ENOENT":case"ELOOP":case"ENAMETOOLONG":case"UNKNOWN":this.cache[this._makeAbs(t)]=!1;break;default:if(this.cache[this._makeAbs(t)]=!1,this.strict)throw e;this.silent||console.error("glob error",e);break}};P.prototype._processGlobStar=function(t,e,r,i,n,s){var a=this._readdir(r,s);if(a){var o=i.slice(1),l=t?[t]:[],u=l.concat(o);this._process(u,n,!1);var h=a.length,c=this.symlinks[r];if(!(c&&s))for(var f=0;f<h;f++){var d=a[f];if(!(d.charAt(0)==="."&&!this.dot)){var p=l.concat(a[f],o);this._process(p,n,!0);var g=l.concat(a[f],i);this._process(g,n,!0)}}}};P.prototype._processSimple=function(t,e){var r=this._stat(t);if(this.matches[e]||(this.matches[e]=Object.create(null)),!!r){if(t&&Xr(t)&&!this.nomount){var i=/[\/\\]$/.test(t);t.charAt(0)==="/"?t=Bn.join(this.root,t):(t=Bn.resolve(this.root,t),i&&(t+="/"))}process.platform==="win32"&&(t=t.replace(/\\/g,"/")),this._emitMatch(e,t)}};P.prototype._stat=function(t){var e=this._makeAbs(t),r=t.slice(-1)==="/";if(t.length>this.maxLength)return!1;if(!this.stat&&Dn(this.cache,e)){var a=this.cache[e];if(Array.isArray(a)&&(a="DIR"),!r||a==="DIR")return a;if(r&&a==="FILE")return!1}var i,n=this.statCache[e];if(!n){var s;try{s=this.fs.lstatSync(e)}catch(o){if(o&&(o.code==="ENOENT"||o.code==="ENOTDIR"))return this.statCache[e]=!1,!1}if(s&&s.isSymbolicLink())try{n=this.fs.statSync(e)}catch{n=s}else n=s}this.statCache[e]=n;var a=!0;return n&&(a=n.isDirectory()?"DIR":"FILE"),this.cache[e]=this.cache[e]||a,r&&a==="FILE"?!1:a};P.prototype._mark=function(t){return $e.mark(this,t)};P.prototype._makeAbs=function(t){return $e.makeAbs(this,t)}});var Fn=m((mw,Fu)=>{Fu.exports=Lu;function Lu(t,e){if(t&&e)return Lu(t)(e);if(typeof t!="function")throw new TypeError("need wrapper function");return Object.keys(t).forEach(function(i){r[i]=t[i]}),r;function r(){for(var i=new Array(arguments.length),n=0;n<i.length;n++)i[n]=arguments[n];var s=t.apply(this,i),a=i[i.length-1];return typeof s=="function"&&s!==a&&Object.keys(a).forEach(function(o){s[o]=a[o]}),s}}});var Gn=m((gw,$n)=>{var $u=Fn();$n.exports=$u(Zr);$n.exports.strict=$u(Gu);Zr.proto=Zr(function(){Object.defineProperty(Function.prototype,"once",{value:function(){return Zr(this)},configurable:!0}),Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return Gu(this)},configurable:!0})});function Zr(t){var e=function(){return e.called?e.value:(e.called=!0,e.value=t.apply(this,arguments))};return e.called=!1,e}function Gu(t){var e=function(){if(e.called)throw new Error(e.onceError);return e.called=!0,e.value=t.apply(this,arguments)},r=t.name||"Function wrapped with `once`";return e.onceError=r+" shouldn't be called more than once",e.called=!1,e}});var Uu=m((yw,Wu)=>{var rg=Fn(),Wt=Object.create(null),ig=Gn();Wu.exports=rg(ng);function ng(t,e){return Wt[t]?(Wt[t].push(e),null):(Wt[t]=[e],sg(t))}function sg(t){return ig(function e(){var r=Wt[t],i=r.length,n=ag(arguments);try{for(var s=0;s<i;s++)r[s].apply(null,n)}finally{r.length>i?(r.splice(0,i),process.nextTick(function(){e.apply(null,n)})):delete Wt[t]}})}function ag(t){for(var e=t.length,r=[],i=0;i<e;i++)r[i]=t[i];return r}});var Ln=m((ww,zu)=>{zu.exports=Ge;var og=An(),Vu=Hr(),bw=Vu.Minimatch,lg=be(),ug=require("events").EventEmitter,Wn=require("path"),Un=require("assert"),Ut=Yr(),zn=Du(),We=Nn(),cg=We.setopts,Vn=We.ownProp,Hn=Uu(),vw=require("util"),hg=We.childrenIgnored,fg=We.isIgnored,dg=Gn();function Ge(t,e,r){if(typeof e=="function"&&(r=e,e={}),e||(e={}),e.sync){if(r)throw new TypeError("callback provided to sync glob");return zn(t,e)}return new k(t,e,r)}Ge.sync=zn;var pg=Ge.GlobSync=zn.GlobSync;Ge.glob=Ge;function mg(t,e){if(e===null||typeof e!="object")return t;for(var r=Object.keys(e),i=r.length;i--;)t[r[i]]=e[r[i]];return t}Ge.hasMagic=function(t,e){var r=mg({},e);r.noprocess=!0;var i=new k(t,r),n=i.minimatch.set;if(!t)return!1;if(n.length>1)return!0;for(var s=0;s<n[0].length;s++)if(typeof n[0][s]!="string")return!0;return!1};Ge.Glob=k;lg(k,ug);function k(t,e,r){if(typeof e=="function"&&(r=e,e=null),e&&e.sync){if(r)throw new TypeError("callback provided to sync glob");return new pg(t,e)}if(!(this instanceof k))return new k(t,e,r);cg(this,t,e),this._didRealPath=!1;var i=this.minimatch.set.length;this.matches=new Array(i),typeof r=="function"&&(r=dg(r),this.on("error",r),this.on("end",function(l){r(null,l)}));var n=this;if(this._processing=0,this._emitQueue=[],this._processQueue=[],this.paused=!1,this.noprocess)return this;if(i===0)return o();for(var s=!0,a=0;a<i;a++)this._process(this.minimatch.set[a],a,!1,o);s=!1;function o(){--n._processing,n._processing<=0&&(s?process.nextTick(function(){n._finish()}):n._finish())}}k.prototype._finish=function(){if(Un(this instanceof k),!this.aborted){if(this.realpath&&!this._didRealpath)return this._realpath();We.finish(this),this.emit("end",this.found)}};k.prototype._realpath=function(){if(this._didRealpath)return;this._didRealpath=!0;var t=this.matches.length;if(t===0)return this._finish();for(var e=this,r=0;r<this.matches.length;r++)this._realpathSet(r,i);function i(){--t===0&&e._finish()}};k.prototype._realpathSet=function(t,e){var r=this.matches[t];if(!r)return e();var i=Object.keys(r),n=this,s=i.length;if(s===0)return e();var a=this.matches[t]=Object.create(null);i.forEach(function(o,l){o=n._makeAbs(o),og.realpath(o,n.realpathCache,function(u,h){u?u.syscall==="stat"?a[o]=!0:n.emit("error",u):a[h]=!0,--s===0&&(n.matches[t]=a,e())})})};k.prototype._mark=function(t){return We.mark(this,t)};k.prototype._makeAbs=function(t){return We.makeAbs(this,t)};k.prototype.abort=function(){this.aborted=!0,this.emit("abort")};k.prototype.pause=function(){this.paused||(this.paused=!0,this.emit("pause"))};k.prototype.resume=function(){if(this.paused){if(this.emit("resume"),this.paused=!1,this._emitQueue.length){var t=this._emitQueue.slice(0);this._emitQueue.length=0;for(var e=0;e<t.length;e++){var r=t[e];this._emitMatch(r[0],r[1])}}if(this._processQueue.length){var i=this._processQueue.slice(0);this._processQueue.length=0;for(var e=0;e<i.length;e++){var n=i[e];this._processing--,this._process(n[0],n[1],n[2],n[3])}}}};k.prototype._process=function(t,e,r,i){if(Un(this instanceof k),Un(typeof i=="function"),!this.aborted){if(this._processing++,this.paused){this._processQueue.push([t,e,r,i]);return}for(var n=0;typeof t[n]=="string";)n++;var s;switch(n){case t.length:this._processSimple(t.join("/"),e,i);return;case 0:s=null;break;default:s=t.slice(0,n).join("/");break}var a=t.slice(n),o;s===null?o=".":((Ut(s)||Ut(t.map(function(h){return typeof h=="string"?h:"[*]"}).join("/")))&&(!s||!Ut(s))&&(s="/"+s),o=s);var l=this._makeAbs(o);if(hg(this,o))return i();var u=a[0]===Vu.GLOBSTAR;u?this._processGlobStar(s,o,l,a,e,r,i):this._processReaddir(s,o,l,a,e,r,i)}};k.prototype._processReaddir=function(t,e,r,i,n,s,a){var o=this;this._readdir(r,s,function(l,u){return o._processReaddir2(t,e,r,i,n,s,u,a)})};k.prototype._processReaddir2=function(t,e,r,i,n,s,a,o){if(!a)return o();for(var l=i[0],u=!!this.minimatch.negate,h=l._glob,c=this.dot||h.charAt(0)===".",f=[],d=0;d<a.length;d++){var p=a[d];if(p.charAt(0)!=="."||c){var g;u&&!t?g=!p.match(l):g=p.match(l),g&&f.push(p)}}var b=f.length;if(b===0)return o();if(i.length===1&&!this.mark&&!this.stat){this.matches[n]||(this.matches[n]=Object.create(null));for(var d=0;d<b;d++){var p=f[d];t&&(t!=="/"?p=t+"/"+p:p=t+p),p.charAt(0)==="/"&&!this.nomount&&(p=Wn.join(this.root,p)),this._emitMatch(n,p)}return o()}i.shift();for(var d=0;d<b;d++){var p=f[d],y;t&&(t!=="/"?p=t+"/"+p:p=t+p),this._process([p].concat(i),n,s,o)}o()};k.prototype._emitMatch=function(t,e){if(!this.aborted&&!fg(this,e)){if(this.paused){this._emitQueue.push([t,e]);return}var r=Ut(e)?e:this._makeAbs(e);if(this.mark&&(e=this._mark(e)),this.absolute&&(e=r),!this.matches[t][e]){if(this.nodir){var i=this.cache[r];if(i==="DIR"||Array.isArray(i))return}this.matches[t][e]=!0;var n=this.statCache[r];n&&this.emit("stat",e,n),this.emit("match",e)}}};k.prototype._readdirInGlobStar=function(t,e){if(this.aborted)return;if(this.follow)return this._readdir(t,!1,e);var r="lstat\0"+t,i=this,n=Hn(r,s);n&&i.fs.lstat(t,n);function s(a,o){if(a&&a.code==="ENOENT")return e();var l=o&&o.isSymbolicLink();i.symlinks[t]=l,!l&&o&&!o.isDirectory()?(i.cache[t]="FILE",e()):i._readdir(t,!1,e)}};k.prototype._readdir=function(t,e,r){if(!this.aborted&&(r=Hn("readdir\0"+t+"\0"+e,r),!!r)){if(e&&!Vn(this.symlinks,t))return this._readdirInGlobStar(t,r);if(Vn(this.cache,t)){var i=this.cache[t];if(!i||i==="FILE")return r();if(Array.isArray(i))return r(null,i)}var n=this;n.fs.readdir(t,gg(this,t,r))}};function gg(t,e,r){return function(i,n){i?t._readdirError(e,i,r):t._readdirEntries(e,n,r)}}k.prototype._readdirEntries=function(t,e,r){if(!this.aborted){if(!this.mark&&!this.stat)for(var i=0;i<e.length;i++){var n=e[i];t==="/"?n=t+n:n=t+"/"+n,this.cache[n]=!0}return this.cache[t]=e,r(null,e)}};k.prototype._readdirError=function(t,e,r){if(!this.aborted){switch(e.code){case"ENOTSUP":case"ENOTDIR":var i=this._makeAbs(t);if(this.cache[i]="FILE",i===this.cwdAbs){var n=new Error(e.code+" invalid cwd "+this.cwd);n.path=this.cwd,n.code=e.code,this.emit("error",n),this.abort()}break;case"ENOENT":case"ELOOP":case"ENAMETOOLONG":case"UNKNOWN":this.cache[this._makeAbs(t)]=!1;break;default:this.cache[this._makeAbs(t)]=!1,this.strict&&(this.emit("error",e),this.abort()),this.silent||console.error("glob error",e);break}return r()}};k.prototype._processGlobStar=function(t,e,r,i,n,s,a){var o=this;this._readdir(r,s,function(l,u){o._processGlobStar2(t,e,r,i,n,s,u,a)})};k.prototype._processGlobStar2=function(t,e,r,i,n,s,a,o){if(!a)return o();var l=i.slice(1),u=t?[t]:[],h=u.concat(l);this._process(h,n,!1,o);var c=this.symlinks[r],f=a.length;if(c&&s)return o();for(var d=0;d<f;d++){var p=a[d];if(!(p.charAt(0)==="."&&!this.dot)){var g=u.concat(a[d],l);this._process(g,n,!0,o);var b=u.concat(a[d],i);this._process(b,n,!0,o)}}o()};k.prototype._processSimple=function(t,e,r){var i=this;this._stat(t,function(n,s){i._processSimple2(t,e,n,s,r)})};k.prototype._processSimple2=function(t,e,r,i,n){if(this.matches[e]||(this.matches[e]=Object.create(null)),!i)return n();if(t&&Ut(t)&&!this.nomount){var s=/[\/\\]$/.test(t);t.charAt(0)==="/"?t=Wn.join(this.root,t):(t=Wn.resolve(this.root,t),s&&(t+="/"))}process.platform==="win32"&&(t=t.replace(/\\/g,"/")),this._emitMatch(e,t),n()};k.prototype._stat=function(t,e){var r=this._makeAbs(t),i=t.slice(-1)==="/";if(t.length>this.maxLength)return e();if(!this.stat&&Vn(this.cache,r)){var n=this.cache[r];if(Array.isArray(n)&&(n="DIR"),!i||n==="DIR")return e(null,n);if(i&&n==="FILE")return e()}var s,a=this.statCache[r];if(a!==void 0){if(a===!1)return e(null,a);var o=a.isDirectory()?"DIR":"FILE";return i&&o==="FILE"?e():e(null,o,a)}var l=this,u=Hn("stat\0"+r,h);u&&l.fs.lstat(r,u);function h(c,f){if(f&&f.isSymbolicLink())return l.fs.stat(r,function(d,p){d?l._stat2(t,r,null,f,e):l._stat2(t,r,d,p,e)});l._stat2(t,r,c,f,e)}};k.prototype._stat2=function(t,e,r,i,n){if(r&&(r.code==="ENOENT"||r.code==="ENOTDIR"))return this.statCache[e]=!1,n();var s=t.slice(-1)==="/";if(this.statCache[e]=i,e.slice(-1)==="/"&&i&&!i.isDirectory())return n(null,!1,i);var a=!0;return i&&(a=i.isDirectory()?"DIR":"FILE"),this.cache[e]=this.cache[e]||a,s&&a==="FILE"?n():n(null,a,i)}});var ec=m((_w,Ju)=>{var R=require("assert"),Xu=require("path"),Hu=require("fs"),pt;try{pt=Ln()}catch{}var yg={nosort:!0,silent:!0},Kn=0,Vt=process.platform==="win32",Zu=t=>{if(["unlink","chmod","stat","lstat","rmdir","readdir"].forEach(r=>{t[r]=t[r]||Hu[r],r=r+"Sync",t[r]=t[r]||Hu[r]}),t.maxBusyTries=t.maxBusyTries||3,t.emfileWait=t.emfileWait||1e3,t.glob===!1&&(t.disableGlob=!0),t.disableGlob!==!0&&pt===void 0)throw Error("glob dependency not found, set `options.disableGlob = true` if intentional");t.disableGlob=t.disableGlob||!1,t.glob=t.glob||yg},Xn=(t,e,r)=>{typeof e=="function"&&(r=e,e={}),R(t,"rimraf: missing path"),R.equal(typeof t,"string","rimraf: path should be a string"),R.equal(typeof r,"function","rimraf: callback function required"),R(e,"rimraf: invalid options argument provided"),R.equal(typeof e,"object","rimraf: options should be object"),Zu(e);let i=0,n=null,s=0,a=l=>{n=n||l,--s===0&&r(n)},o=(l,u)=>{if(l)return r(l);if(s=u.length,s===0)return r();u.forEach(h=>{let c=f=>{if(f){if((f.code==="EBUSY"||f.code==="ENOTEMPTY"||f.code==="EPERM")&&i<e.maxBusyTries)return i++,setTimeout(()=>Yn(h,e,c),i*100);if(f.code==="EMFILE"&&Kn<e.emfileWait)return setTimeout(()=>Yn(h,e,c),Kn++);f.code==="ENOENT"&&(f=null)}Kn=0,a(f)};Yn(h,e,c)})};if(e.disableGlob||!pt.hasMagic(t))return o(null,[t]);e.lstat(t,(l,u)=>{if(!l)return o(null,[t]);pt(t,e.glob,o)})},Yn=(t,e,r)=>{R(t),R(e),R(typeof r=="function"),e.lstat(t,(i,n)=>{if(i&&i.code==="ENOENT")return r(null);if(i&&i.code==="EPERM"&&Vt&&Ku(t,e,i,r),n&&n.isDirectory())return Qr(t,e,i,r);e.unlink(t,s=>{if(s){if(s.code==="ENOENT")return r(null);if(s.code==="EPERM")return Vt?Ku(t,e,s,r):Qr(t,e,s,r);if(s.code==="EISDIR")return Qr(t,e,s,r)}return r(s)})})},Ku=(t,e,r,i)=>{R(t),R(e),R(typeof i=="function"),e.chmod(t,438,n=>{n?i(n.code==="ENOENT"?null:r):e.stat(t,(s,a)=>{s?i(s.code==="ENOENT"?null:r):a.isDirectory()?Qr(t,e,r,i):e.unlink(t,i)})})},Yu=(t,e,r)=>{R(t),R(e);try{e.chmodSync(t,438)}catch(n){if(n.code==="ENOENT")return;throw r}let i;try{i=e.statSync(t)}catch(n){if(n.code==="ENOENT")return;throw r}i.isDirectory()?Jr(t,e,r):e.unlinkSync(t)},Qr=(t,e,r,i)=>{R(t),R(e),R(typeof i=="function"),e.rmdir(t,n=>{n&&(n.code==="ENOTEMPTY"||n.code==="EEXIST"||n.code==="EPERM")?bg(t,e,i):n&&n.code==="ENOTDIR"?i(r):i(n)})},bg=(t,e,r)=>{R(t),R(e),R(typeof r=="function"),e.readdir(t,(i,n)=>{if(i)return r(i);let s=n.length;if(s===0)return e.rmdir(t,r);let a;n.forEach(o=>{Xn(Xu.join(t,o),e,l=>{if(!a){if(l)return r(a=l);--s===0&&e.rmdir(t,r)}})})})},Qu=(t,e)=>{e=e||{},Zu(e),R(t,"rimraf: missing path"),R.equal(typeof t,"string","rimraf: path should be a string"),R(e,"rimraf: missing options"),R.equal(typeof e,"object","rimraf: options should be object");let r;if(e.disableGlob||!pt.hasMagic(t))r=[t];else try{e.lstatSync(t),r=[t]}catch{r=pt.sync(t,e.glob)}if(r.length)for(let i=0;i<r.length;i++){let n=r[i],s;try{s=e.lstatSync(n)}catch(a){if(a.code==="ENOENT")return;a.code==="EPERM"&&Vt&&Yu(n,e,a)}try{s&&s.isDirectory()?Jr(n,e,null):e.unlinkSync(n)}catch(a){if(a.code==="ENOENT")return;if(a.code==="EPERM")return Vt?Yu(n,e,a):Jr(n,e,a);if(a.code!=="EISDIR")throw a;Jr(n,e,a)}}},Jr=(t,e,r)=>{R(t),R(e);try{e.rmdirSync(t)}catch(i){if(i.code==="ENOENT")return;if(i.code==="ENOTDIR")throw r;(i.code==="ENOTEMPTY"||i.code==="EEXIST"||i.code==="EPERM")&&vg(t,e)}},vg=(t,e)=>{R(t),R(e),e.readdirSync(t).forEach(n=>Qu(Xu.join(t,n),e));let r=Vt?100:1,i=0;do{let n=!0;try{let s=e.rmdirSync(t,e);return n=!1,s}finally{if(++i<r&&n)continue}}while(!0)};Ju.exports=Xn;Xn.sync=Qu});var bc=m((xw,de)=>{var L=require("fs"),ts=require("os"),Y=require("path"),tc=require("crypto"),oe={fs:L.constants,os:ts.constants},nc=ec(),rc="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",sc=/XXXXXX/,wg=3,ac=(oe.O_CREAT||oe.fs.O_CREAT)|(oe.O_EXCL||oe.fs.O_EXCL)|(oe.O_RDWR||oe.fs.O_RDWR),_g=ts.platform()==="win32",xg=oe.EBADF||oe.os.errno.EBADF,Eg=oe.ENOENT||oe.os.errno.ENOENT,oc=448,lc=384,Sg="exit",mt=[],uc=L.rmdirSync.bind(L),cc=nc.sync,hc=!1;function rs(t,e){let r=gt(t,e),i=r[0],n=r[1];try{mc(i)}catch(a){return n(a)}let s=i.tries;(function a(){try{let o=pc(i);L.stat(o,function(l){if(!l)return s-- >0?a():n(new Error("Could not get a unique tmp filename, max tries reached "+o));n(null,o)})}catch(o){n(o)}})()}function is(t){let e=gt(t),r=e[0];mc(r);let i=r.tries;do{let n=pc(r);try{L.statSync(n)}catch{return n}}while(i-- >0);throw new Error("Could not get a unique tmp filename, max tries reached")}function Og(t,e){let r=gt(t,e),i=r[0],n=r[1];rs(i,function(a,o){if(a)return n(a);L.open(o,ac,i.mode||lc,function(u,h){if(u)return n(u);if(i.discardDescriptor)return L.close(h,function(f){return n(f,o,void 0,Qn(o,-1,i,!1))});{let c=i.discardDescriptor||i.detachDescriptor;n(null,o,h,Qn(o,c?-1:h,i,!1))}})})}function Cg(t){let e=gt(t),r=e[0],i=r.discardDescriptor||r.detachDescriptor,n=is(r);var s=L.openSync(n,ac,r.mode||lc);return r.discardDescriptor&&(L.closeSync(s),s=void 0),{name:n,fd:s,removeCallback:Qn(n,i?-1:s,r,!0)}}function kg(t,e){let r=gt(t,e),i=r[0],n=r[1];rs(i,function(a,o){if(a)return n(a);L.mkdir(o,i.mode||oc,function(u){if(u)return n(u);n(null,o,fc(o,i,!1))})})}function Rg(t){let e=gt(t),r=e[0],i=is(r);return L.mkdirSync(i,r.mode||oc),{name:i,removeCallback:fc(i,r,!0)}}function Ag(t,e){let r=function(i){if(i&&!es(i))return e(i);e()};0<=t[0]?L.close(t[0],function(){L.unlink(t[1],r)}):L.unlink(t[1],r)}function Tg(t){let e=null;try{0<=t[0]&&L.closeSync(t[0])}catch(r){if(!jg(r)&&!es(r))throw r}finally{try{L.unlinkSync(t[1])}catch(r){es(r)||(e=r)}}if(e!==null)throw e}function Qn(t,e,r,i){let n=ei(Tg,[e,t],i),s=ei(Ag,[e,t],i,n);return r.keep||mt.unshift(n),i?n:s}function fc(t,e,r){let i=e.unsafeCleanup?nc:L.rmdir.bind(L),n=e.unsafeCleanup?cc:uc,s=ei(n,t,r),a=ei(i,t,r,s);return e.keep||mt.unshift(s),r?s:a}function ei(t,e,r,i){let n=!1;return function s(a){if(!n){let o=i||s,l=mt.indexOf(o);return l>=0&&mt.splice(l,1),n=!0,r||t===uc||t===cc?t(e):t(e,a||function(){})}}}function qg(){if(hc)for(;mt.length;)try{mt[0]()}catch{}}function ic(t){let e=[],r=null;try{r=tc.randomBytes(t)}catch{r=tc.pseudoRandomBytes(t)}for(var i=0;i<t;i++)e.push(rc[r[i]%rc.length]);return e.join("")}function dc(t){return t===null||V(t)||!t.trim()}function V(t){return typeof t>"u"}function gt(t,e){if(typeof t=="function")return[{},t];if(V(t))return[{},e];let r={};for(let i of Object.getOwnPropertyNames(t))r[i]=t[i];return[r,e]}function pc(t){let e=t.tmpdir;if(!V(t.name))return Y.join(e,t.dir,t.name);if(!V(t.template))return Y.join(e,t.dir,t.template).replace(sc,ic(6));let r=[t.prefix?t.prefix:"tmp","-",process.pid,"-",ic(12),t.postfix?"-"+t.postfix:""].join("");return Y.join(e,t.dir,r)}function mc(t){t.tmpdir=yc(t);let e=t.tmpdir;if(V(t.name)||Zn(t.name,"name",e),V(t.dir)||Zn(t.dir,"dir",e),!V(t.template)&&(Zn(t.template,"template",e),!t.template.match(sc)))throw new Error(`Invalid template, found "${t.template}".`);if(!V(t.tries)&&isNaN(t.tries)||t.tries<0)throw new Error(`Invalid tries, found "${t.tries}".`);t.tries=V(t.name)?t.tries||wg:1,t.keep=!!t.keep,t.detachDescriptor=!!t.detachDescriptor,t.discardDescriptor=!!t.discardDescriptor,t.unsafeCleanup=!!t.unsafeCleanup,t.dir=V(t.dir)?"":Y.relative(e,Jn(t.dir,e)),t.template=V(t.template)?void 0:Y.relative(e,Jn(t.template,e)),t.template=dc(t.template)?void 0:Y.relative(t.dir,t.template),t.name=V(t.name)?void 0:ns(t.name),t.prefix=V(t.prefix)?"":t.prefix,t.postfix=V(t.postfix)?"":t.postfix}function Jn(t,e){let r=ns(t);return r.startsWith(e)?Y.resolve(r):Y.resolve(Y.join(e,r))}function ns(t){return dc(t)?t:t.replace(/["']/g,"")}function Zn(t,e,r){if(e==="name"){if(Y.isAbsolute(t))throw new Error(`${e} option must not contain an absolute path, found "${t}".`);let i=Y.basename(t);if(i===".."||i==="."||i!==t)throw new Error(`${e} option must not contain a path, found "${t}".`)}else{if(Y.isAbsolute(t)&&!t.startsWith(r))throw new Error(`${e} option must be relative to "${r}", found "${t}".`);let i=Jn(t,r);if(!i.startsWith(r))throw new Error(`${e} option must be relative to "${r}", found "${i}".`)}}function jg(t){return gc(t,-xg,"EBADF")}function es(t){return gc(t,-Eg,"ENOENT")}function gc(t,e,r){return _g?t.code===r:t.code===r&&t.errno===e}function Mg(){hc=!0}function yc(t){return Y.resolve(ns(t&&t.tmpdir||ts.tmpdir()))}process.addListener(Sg,qg);Object.defineProperty(de.exports,"tmpdir",{enumerable:!0,configurable:!1,get:function(){return yc()}});de.exports.dir=kg;de.exports.dirSync=Rg;de.exports.file=Og;de.exports.fileSync=Cg;de.exports.tmpName=rs;de.exports.tmpNameSync=is;de.exports.setGracefulCleanup=Mg});var vc=m((Ew,Pg)=>{Pg.exports={name:"create-nx-workspace",version:"17.0.3",private:!1,description:"Smart, Fast and Extensible Build System",repository:{type:"git",url:"https://github.com/nrwl/nx.git",directory:"packages/create-nx-workspace"},keywords:["Monorepo","Angular","React","Web","Node","Nest","Jest","Cypress","CLI"],bin:{"create-nx-workspace":"./bin/index.js"},author:"Victor Savkin",license:"MIT",bugs:{url:"https://github.com/nrwl/nx/issues"},homepage:"https://nx.dev",dependencies:{chalk:"^4.1.0",enquirer:"~2.3.6",flat:"^5.0.2",ora:"5.3.0",tmp:"~0.2.1",tslib:"^2.3.0",yargs:"^17.6.2",axios:"^1.5.1"},publishConfig:{access:"public"},main:"./index.js",type:"commonjs"}});var wc=m(ti=>{"use strict";Object.defineProperty(ti,"__esModule",{value:!0});ti.nxVersion=void 0;ti.nxVersion=vc().version});var Sc=m(ri=>{"use strict";Object.defineProperty(ri,"__esModule",{value:!0});ri.createSandbox=void 0;var Ig=require("fs"),Ng=bc(),Bg=Lt(),Dg=require("path"),_c=ut(),xc=lt(),Lg=ue(),Ec=wc(),Fg=Le();async function $g(t){let e=Bg(`Installing dependencies with ${t}`).start(),{install:r,preInstall:i}=(0,_c.getPackageManagerCommand)(t),n=(0,Ng.dirSync)().name;try{(0,Ig.writeFileSync)((0,Dg.join)(n,"package.json"),JSON.stringify({dependencies:{nx:Ec.nxVersion,"@nx/workspace":Ec.nxVersion},license:"MIT"})),(0,_c.generatePackageManagerFiles)(n,t),i&&await(0,xc.execAndWait)(i,n),await(0,xc.execAndWait)(r,n),e.succeed()}catch(s){e.fail(),s instanceof Error?Lg.output.error({title:"Failed to install dependencies",bodyLines:(0,Fg.mapErrorToBodyLines)(s)}):console.error(s),process.exit(1)}finally{e.stop()}return n}ri.createSandbox=$g});var Oc=m(yt=>{"use strict";Object.defineProperty(yt,"__esModule",{value:!0});yt.getFileName=yt.stringifyCollection=void 0;function Gg(t){return t.map(e=>`"${e}"`).join(", ")}yt.stringifyCollection=Gg;function Wg(t){return t.replace(/([a-z\d])([A-Z])/g,"$1_$2").toLowerCase().replace(/[ _]/g,"-")}yt.getFileName=Wg});var Tc=m((kw,Ac)=>{Ac.exports=zt;zt.flatten=zt;zt.unflatten=Rc;function Cc(t){return t&&t.constructor&&typeof t.constructor.isBuffer=="function"&&t.constructor.isBuffer(t)}function kc(t){return t}function zt(t,e){e=e||{};let r=e.delimiter||".",i=e.maxDepth,n=e.transformKey||kc,s={};function a(o,l,u){u=u||1,Object.keys(o).forEach(function(h){let c=o[h],f=e.safe&&Array.isArray(c),d=Object.prototype.toString.call(c),p=Cc(c),g=d==="[object Object]"||d==="[object Array]",b=l?l+r+n(h):n(h);if(!f&&!p&&g&&Object.keys(c).length&&(!e.maxDepth||u<i))return a(c,b,u+1);s[b]=c})}return a(t),s}function Rc(t,e){e=e||{};let r=e.delimiter||".",i=e.overwrite||!1,n=e.transformKey||kc,s={};if(Cc(t)||Object.prototype.toString.call(t)!=="[object Object]")return t;function o(h){let c=Number(h);return isNaN(c)||h.indexOf(".")!==-1||e.object?h:c}function l(h,c,f){return Object.keys(f).reduce(function(d,p){return d[h+r+p]=f[p],d},c)}function u(h){let c=Object.prototype.toString.call(h),f=c==="[object Array]",d=c==="[object Object]";if(h){if(f)return!h.length;if(d)return!Object.keys(h).length}else return!0}return t=Object.keys(t).reduce(function(h,c){let f=Object.prototype.toString.call(t[c]);return!(f==="[object Object]"||f==="[object Array]")||u(t[c])?(h[c]=t[c],h):l(c,h,zt(t[c],e))},{}),Object.keys(t).forEach(function(h){let c=h.split(r).map(n),f=o(c.shift()),d=o(c[0]),p=s;for(;d!==void 0;){if(f==="__proto__")return;let g=Object.prototype.toString.call(p[f]),b=g==="[object Object]"||g==="[object Array]";if(!i&&!b&&typeof p[f]<"u")return;(i&&!b||!i&&p[f]==null)&&(p[f]=typeof d=="number"&&!e.object?[]:{}),p=p[f],c.length>0&&(f=o(c.shift()),d=o(c[0]))}p[f]=Rc(t[h],e)}),s}});var as=m(ii=>{"use strict";Object.defineProperty(ii,"__esModule",{value:!0});ii.unparse=void 0;var Ug=Tc();function Vg(t){let e=[];for(let r of Object.keys(t)){let i=t[r];ss(r,i,e)}return e}ii.unparse=Vg;function ss(t,e,r){if(e===!0)r.push(`--${t}`);else if(e===!1)r.push(`--no-${t}`);else if(Array.isArray(e))e.forEach(i=>ss(t,i,r));else if(Object.prototype.toString.call(e)==="[object Object]"){let i=(0,Ug.flatten)(e,{safe:!0});for(let n in i)ss(`${t}.${n}`,i[n],r)}else typeof e=="string"&&e.includes(" ")?r.push(`--${t}="${e}"`):e!=null&&r.push(`--${t}=${e}`)}});var jc=m(ni=>{"use strict";Object.defineProperty(ni,"__esModule",{value:!0});ni.createEmptyWorkspace=void 0;var zg=Lt(),Hg=require("path"),Kg=lt(),Yg=Le(),Xg=ue(),qc=ut(),Zg=Oc(),Qg=as();async function Jg(t,e,r,i){i.packageManager||(i.packageManager=r),i.name=(0,Zg.getFileName)(e);let n=i.name,s=(0,Qg.unparse)({...i}).join(" "),a=(0,qc.getPackageManagerCommand)(r),o=`new ${s}`,l=process.cwd().replace(/\\/g,"/"),u=`"${l}"`;process.platform==="win32"&&/\s/.test(u)&&r==="npm"&&+(0,qc.getPackageManagerVersion)(r,t).split(".")[0]<7&&(u=`\\"${u.slice(1,-1)}\\"`);let h=zg(`Creating your workspace in ${n}`).start();try{let c=`${a.exec} nx ${o} --nxWorkspaceRoot=${u}`;await(0,Kg.execAndWait)(c,t),h.succeed(`Successfully created the workspace: ${n}.`)}catch(c){h.fail(),c instanceof Error?Xg.output.error({title:"Failed to create a workspace.",bodyLines:(0,Yg.mapErrorToBodyLines)(c)}):console.error(c),process.exit(1)}finally{h.stop()}return(0,Hg.join)(l,n)}ni.createEmptyWorkspace=Jg});var Pc=m(si=>{"use strict";Object.defineProperty(si,"__esModule",{value:!0});si.createPreset=void 0;var ey=ue(),Mc=ut(),ty=lt(),ry=as();async function iy(t,e,r,i){let{skipGit:n,ci:s,commit:a,nxCloud:o,...l}=e,u=(0,ry.unparse)({interactive:!0,...l}).join(" "),h=(0,Mc.getPackageManagerCommand)(r),c=process.cwd().replace(/\\/g,"/"),f=`"${c}"`;process.platform==="win32"&&/\s/.test(f)&&r==="npm"&&+(0,Mc.getPackageManagerVersion)(r,c).split(".")[0]<7&&(f=`\\"${f.slice(1,-1)}\\"`),process.env.NX_VERBOSE_LOGGING==="true"||u.includes("--verbose")||(u="--quiet "+u);let d=`g ${t}:preset ${u}`;try{let[p,...g]=h.exec.split(" ");g.push("nx",`--nxWorkspaceRoot=${f}`,...d.split(" ")),await(0,ty.spawnAndWait)(p,g,i)}catch{ey.output.error({title:`Failed to apply preset: ${t}`,bodyLines:["See above"]}),process.exit(1)}}si.createPreset=iy});var Nc=m(ai=>{"use strict";Object.defineProperty(ai,"__esModule",{value:!0});ai.setupCI=void 0;var ny=Lt(),sy=lt(),ay=Le(),Ic=ue(),oy=ut();async function ly(t,e,r,i){i||Ic.output.error({title:"CI workflow generation skipped",bodyLines:["Nx Cloud was not installed","The autogenerated CI workflow requires Nx Cloud to be set-up."]});let n=ny("Generating CI workflow").start();try{let s=(0,oy.getPackageManagerCommand)(r),a=await(0,sy.execAndWait)(`${s.exec} nx g @nx/workspace:ci-workflow --ci=${e}`,t);return n.succeed("CI workflow has been generated successfully"),a}catch(s){n.fail(),s instanceof Error?Ic.output.error({title:"Failed to generate CI workflow",bodyLines:(0,ay.mapErrorToBodyLines)(s)}):console.error(s),process.exit(1)}finally{n.stop()}}ai.setupCI=ly});var Bc=m(oi=>{"use strict";Object.defineProperty(oi,"__esModule",{value:!0});oi.deduceDefaultBase=void 0;var uy=require("child_process");function cy(){let t="main";try{return(0,uy.execSync)("git config --get init.defaultBranch").toString().trim()||t}catch{return t}}oi.deduceDefaultBase=cy});var Fc=m(bt=>{"use strict";Object.defineProperty(bt,"__esModule",{value:!0});bt.initializeGitRepo=bt.checkGitVersion=void 0;var Dc=require("child_process"),hy=Bc(),fy=ue();function Lc(){try{return(0,Dc.execSync)("git --version").toString().trim().match(/[0-9]+\.[0-9]+\.+[0-9]+/)?.[0]}catch{return null}}bt.checkGitVersion=Lc;async function dy(t,e){let r=(l,u=!1)=>{let h="ignore",c=u?"ignore":process.stderr,f={stdio:[process.stdin,h,c],shell:!0,cwd:t,env:{...process.env,...e.commit?.name?{GIT_AUTHOR_NAME:e.commit.name,GIT_COMMITTER_NAME:e.commit.name}:{},...e.commit?.email?{GIT_AUTHOR_EMAIL:e.commit.email,GIT_COMMITTER_EMAIL:e.commit.email}:{}}};return new Promise((d,p)=>{(0,Dc.spawn)("git",l,f).on("close",g=>{g===0?d():p(g)})})},i=Lc();if(!i)return;if(await r(["rev-parse","--is-inside-work-tree"],!0).then(()=>!0,()=>!1)){fy.output.log({title:"Directory is already under version control. Skipping initialization of git."});return}let s=e.defaultBase||(0,hy.deduceDefaultBase)(),[a,o]=i.split(".");if(+a>2||+a==2&&+o>=28?await r(["init","-b",s]):(await r(["init"]),await r(["checkout","-b",s])),await r(["add","."]),e.commit){let l=e.commit.message||"initial commit";await r(["commit",`-m "${l}"`])}}bt.initializeGitRepo=dy});var $c=m(li=>{"use strict";Object.defineProperty(li,"__esModule",{value:!0});li.validateNpmPackage=void 0;var py=new RegExp("^(?:@([^/]+?)[/])?([^/]+?)$"),my=["node_modules","favicon.ico"];function gy(t){let e=[],r=[];if(t===null)return r.push("name cannot be null"),Ht(e,r);if(t===void 0)return r.push("name cannot be undefined"),Ht(e,r);if(typeof t!="string")return r.push("name must be a string"),Ht(e,r);if(t.length||r.push("name length must be greater than zero"),t.match(/^\./)&&r.push("name cannot start with a period"),t.match(/^_/)&&r.push("name cannot start with an underscore"),t.trim()!==t&&r.push("name cannot contain leading or trailing spaces"),my.forEach(function(i){t.toLowerCase()===i&&r.push(i+" is a deny listed name")}),t.length>214&&e.push("name can no longer contain more than 214 characters"),t.toLowerCase()!==t&&e.push("name can no longer contain capital letters"),/[~'!()*]/.test(t.split("/").slice(-1)[0])&&e.push(`name can no longer contain special characters ("~'!()*")`),encodeURIComponent(t)!==t){let i=t.match(py);if(i){let n=i[1],s=i[2];if(encodeURIComponent(n)===n&&encodeURIComponent(s)===s)return Ht(e,r)}r.push("name can only contain URL-friendly characters")}return Ht(e,r)}li.validateNpmPackage=gy;function Ht(t,e){return{validForNewPackages:e.length===0&&t.length===0,validForOldPackages:e.length===0,...t.length&&{warnings:t},...e.length&&{errors:e}}}});var Gc=m(vt=>{"use strict";Object.defineProperty(vt,"__esModule",{value:!0});vt.isKnownPreset=vt.Preset=void 0;var os;(function(t){t.Apps="apps",t.Empty="empty",t.Core="core",t.NPM="npm",t.TS="ts",t.WebComponents="web-components",t.AngularMonorepo="angular-monorepo",t.AngularStandalone="angular-standalone",t.ReactMonorepo="react-monorepo",t.ReactStandalone="react-standalone",t.VueMonorepo="vue-monorepo",t.VueStandalone="vue-standalone",t.NextJs="next",t.NextJsStandalone="nextjs-standalone",t.ReactNative="react-native",t.Expo="expo",t.Nest="nest",t.Express="express",t.React="react",t.Angular="angular",t.NodeStandalone="node-standalone",t.NodeMonorepo="node-monorepo",t.TsStandalone="ts-standalone"})(os||(vt.Preset=os={}));function yy(t){return Object.values(os).includes(t)}vt.isKnownPreset=yy});var Wc=m(ui=>{"use strict";Object.defineProperty(ui,"__esModule",{value:!0});ui.getThirdPartyPreset=void 0;var by=ue(),vy=$c(),wy=Gc();async function _y(t){if(t&&!(0,wy.isKnownPreset)(t)){let e=t.match(/.+@/)?t[0]+t.substring(1).split("@")[0]:t,r=(0,vy.validateNpmPackage)(e);if(r.validForNewPackages)return Promise.resolve(e);{throw by.output.error({title:"Invalid preset npm package",bodyLines:["There was an error with the preset npm package you provided:","",...r.errors??[]]}),new Error("Invalid preset npm package")}}else return Promise.resolve(null)}ui.getThirdPartyPreset=_y});var Vc=m(ci=>{"use strict";Object.defineProperty(ci,"__esModule",{value:!0});ci.createWorkspace=void 0;var Uc=ue(),xy=iu(),Ey=Sc(),Sy=jc(),Oy=Pc(),Cy=Nc(),ky=Fc(),Ry=Wc(),Ay=Le();async function Ty(t,e){let{packageManager:r,name:i,nxCloud:n,ci:s="",skipGit:a=!1,defaultBase:o="main",commit:l,cliName:u}=e;u&&Uc.output.setCliName(u??"NX");let h=await(0,Ey.createSandbox)(r),c=await(0,Sy.createEmptyWorkspace)(h,i,r,{...e,preset:t}),f=await(0,Ry.getThirdPartyPreset)(t);f&&await(0,Oy.createPreset)(f,e,r,c);let d;if(n&&(d=await(0,xy.setupNxCloud)(c,r)),s&&await(0,Cy.setupCI)(c,s,r,n&&d?.code===0),!a&&l)try{await(0,ky.initializeGitRepo)(c,{defaultBase:o,commit:l})}catch(p){p instanceof Error?Uc.output.error({title:"Could not initialize git repository",bodyLines:(0,Ay.mapErrorToBodyLines)(p)}):console.error(p)}return{nxCloudInfo:d?.stdout,directory:c}}ci.createWorkspace=Ty});var zc=m(ls=>{"use strict";Object.defineProperty(ls,"__esModule",{value:!0});var qy=(Aa(),Vf(Ra));qy.__exportStar(Vc(),ls)});var Xc=m((Lw,Kt)=>{"use strict";var jy=typeof process<"u"&&process.env.TERM_PROGRAM==="Hyper",My=typeof process<"u"&&process.platform==="win32",Hc=typeof process<"u"&&process.platform==="linux",us={ballotDisabled:"\u2612",ballotOff:"\u2610",ballotOn:"\u2611",bullet:"\u2022",bulletWhite:"\u25E6",fullBlock:"\u2588",heart:"\u2764",identicalTo:"\u2261",line:"\u2500",mark:"\u203B",middot:"\xB7",minus:"\uFF0D",multiplication:"\xD7",obelus:"\xF7",pencilDownRight:"\u270E",pencilRight:"\u270F",pencilUpRight:"\u2710",percent:"%",pilcrow2:"\u2761",pilcrow:"\xB6",plusMinus:"\xB1",question:"?",section:"\xA7",starsOff:"\u2606",starsOn:"\u2605",upDownArrow:"\u2195"},Kc=Object.assign({},us,{check:"\u221A",cross:"\xD7",ellipsisLarge:"...",ellipsis:"...",info:"i",questionSmall:"?",pointer:">",pointerSmall:"\xBB",radioOff:"( )",radioOn:"(*)",warning:"\u203C"}),Yc=Object.assign({},us,{ballotCross:"\u2718",check:"\u2714",cross:"\u2716",ellipsisLarge:"\u22EF",ellipsis:"\u2026",info:"\u2139",questionFull:"\uFF1F",questionSmall:"\uFE56",pointer:Hc?"\u25B8":"\u276F",pointerSmall:Hc?"\u2023":"\u203A",radioOff:"\u25EF",radioOn:"\u25C9",warning:"\u26A0"});Kt.exports=My&&!jy?Kc:Yc;Reflect.defineProperty(Kt.exports,"common",{enumerable:!1,value:us});Reflect.defineProperty(Kt.exports,"windows",{enumerable:!1,value:Kc});Reflect.defineProperty(Kt.exports,"other",{enumerable:!1,value:Yc})});var hi=m((Fw,cs)=>{"use strict";var Py=t=>t!==null&&typeof t=="object"&&!Array.isArray(t),Iy=/[\u001b\u009b][[\]#;?()]*(?:(?:(?:[^\W_]*;?[^\W_]*)\u0007)|(?:(?:[0-9]{1,4}(;[0-9]{0,4})*)?[~0-9=<>cf-nqrtyA-PRZ]))/g,Ny=()=>typeof process<"u"?process.env.FORCE_COLOR!=="0":!1,Zc=()=>{let t={enabled:Ny(),visible:!0,styles:{},keys:{}},e=s=>{let a=s.open=`\x1B[${s.codes[0]}m`,o=s.close=`\x1B[${s.codes[1]}m`,l=s.regex=new RegExp(`\\u001b\\[${s.codes[1]}m`,"g");return s.wrap=(u,h)=>{u.includes(o)&&(u=u.replace(l,o+a));let c=a+u+o;return h?c.replace(/\r*\n/g,`${o}$&${a}`):c},s},r=(s,a,o)=>typeof s=="function"?s(a):s.wrap(a,o),i=(s,a)=>{if(s===""||s==null)return"";if(t.enabled===!1)return s;if(t.visible===!1)return"";let o=""+s,l=o.includes(`
|
|
19
|
+
See: https://github.com/isaacs/node-glob/issues/167`);if(!(this instanceof P))return new P(t,e);if(Jm(this,t,e),this.noprocess)return this;var r=this.minimatch.set.length;this.matches=new Array(r);for(var i=0;i<r;i++)this._process(this.minimatch.set[i],i,!1);this._finish()}P.prototype._finish=function(){if(Iu.ok(this instanceof P),this.realpath){var t=this;this.matches.forEach(function(e,r){var i=t.matches[r]=Object.create(null);for(var n in e)try{n=t._makeAbs(n);var s=Qm.realpathSync(n,t.realpathCache);i[s]=!0}catch(a){if(a.syscall==="stat")i[t._makeAbs(n)]=!0;else throw a}})}Fe.finish(this)};P.prototype._process=function(t,e,r){Iu.ok(this instanceof P);for(var i=0;typeof t[i]=="string";)i++;var n;switch(i){case t.length:this._processSimple(t.join("/"),e);return;case 0:n=null;break;default:n=t.slice(0,i).join("/");break}var s=t.slice(i),a;n===null?a=".":((Xr(n)||Xr(t.map(function(u){return typeof u=="string"?u:"[*]"}).join("/")))&&(!n||!Xr(n))&&(n="/"+n),a=n);var o=this._makeAbs(a);if(!eg(this,a)){var l=s[0]===Pu.GLOBSTAR;l?this._processGlobStar(n,a,o,s,e,r):this._processReaddir(n,a,o,s,e,r)}};P.prototype._processReaddir=function(t,e,r,i,n,s){var a=this._readdir(r,s);if(a){for(var o=i[0],l=!!this.minimatch.negate,u=o._glob,h=this.dot||u.charAt(0)===".",c=[],f=0;f<a.length;f++){var d=a[f];if(d.charAt(0)!=="."||h){var p;l&&!t?p=!d.match(o):p=d.match(o),p&&c.push(d)}}var g=c.length;if(g!==0){if(i.length===1&&!this.mark&&!this.stat){this.matches[n]||(this.matches[n]=Object.create(null));for(var f=0;f<g;f++){var d=c[f];t&&(t.slice(-1)!=="/"?d=t+"/"+d:d=t+d),d.charAt(0)==="/"&&!this.nomount&&(d=Bn.join(this.root,d)),this._emitMatch(n,d)}return}i.shift();for(var f=0;f<g;f++){var d=c[f],b;t?b=[t,d]:b=[d],this._process(b.concat(i),n,s)}}}};P.prototype._emitMatch=function(t,e){if(!tg(this,e)){var r=this._makeAbs(e);if(this.mark&&(e=this._mark(e)),this.absolute&&(e=r),!this.matches[t][e]){if(this.nodir){var i=this.cache[r];if(i==="DIR"||Array.isArray(i))return}this.matches[t][e]=!0,this.stat&&this._stat(e)}}};P.prototype._readdirInGlobStar=function(t){if(this.follow)return this._readdir(t,!1);var e,r,i;try{r=this.fs.lstatSync(t)}catch(s){if(s.code==="ENOENT")return null}var n=r&&r.isSymbolicLink();return this.symlinks[t]=n,!n&&r&&!r.isDirectory()?this.cache[t]="FILE":e=this._readdir(t,!1),e};P.prototype._readdir=function(t,e){var r;if(e&&!Dn(this.symlinks,t))return this._readdirInGlobStar(t);if(Dn(this.cache,t)){var i=this.cache[t];if(!i||i==="FILE")return null;if(Array.isArray(i))return i}try{return this._readdirEntries(t,this.fs.readdirSync(t))}catch(n){return this._readdirError(t,n),null}};P.prototype._readdirEntries=function(t,e){if(!this.mark&&!this.stat)for(var r=0;r<e.length;r++){var i=e[r];t==="/"?i=t+i:i=t+"/"+i,this.cache[i]=!0}return this.cache[t]=e,e};P.prototype._readdirError=function(t,e){switch(e.code){case"ENOTSUP":case"ENOTDIR":var r=this._makeAbs(t);if(this.cache[r]="FILE",r===this.cwdAbs){var i=new Error(e.code+" invalid cwd "+this.cwd);throw i.path=this.cwd,i.code=e.code,i}break;case"ENOENT":case"ELOOP":case"ENAMETOOLONG":case"UNKNOWN":this.cache[this._makeAbs(t)]=!1;break;default:if(this.cache[this._makeAbs(t)]=!1,this.strict)throw e;this.silent||console.error("glob error",e);break}};P.prototype._processGlobStar=function(t,e,r,i,n,s){var a=this._readdir(r,s);if(a){var o=i.slice(1),l=t?[t]:[],u=l.concat(o);this._process(u,n,!1);var h=a.length,c=this.symlinks[r];if(!(c&&s))for(var f=0;f<h;f++){var d=a[f];if(!(d.charAt(0)==="."&&!this.dot)){var p=l.concat(a[f],o);this._process(p,n,!0);var g=l.concat(a[f],i);this._process(g,n,!0)}}}};P.prototype._processSimple=function(t,e){var r=this._stat(t);if(this.matches[e]||(this.matches[e]=Object.create(null)),!!r){if(t&&Xr(t)&&!this.nomount){var i=/[\/\\]$/.test(t);t.charAt(0)==="/"?t=Bn.join(this.root,t):(t=Bn.resolve(this.root,t),i&&(t+="/"))}process.platform==="win32"&&(t=t.replace(/\\/g,"/")),this._emitMatch(e,t)}};P.prototype._stat=function(t){var e=this._makeAbs(t),r=t.slice(-1)==="/";if(t.length>this.maxLength)return!1;if(!this.stat&&Dn(this.cache,e)){var a=this.cache[e];if(Array.isArray(a)&&(a="DIR"),!r||a==="DIR")return a;if(r&&a==="FILE")return!1}var i,n=this.statCache[e];if(!n){var s;try{s=this.fs.lstatSync(e)}catch(o){if(o&&(o.code==="ENOENT"||o.code==="ENOTDIR"))return this.statCache[e]=!1,!1}if(s&&s.isSymbolicLink())try{n=this.fs.statSync(e)}catch{n=s}else n=s}this.statCache[e]=n;var a=!0;return n&&(a=n.isDirectory()?"DIR":"FILE"),this.cache[e]=this.cache[e]||a,r&&a==="FILE"?!1:a};P.prototype._mark=function(t){return Fe.mark(this,t)};P.prototype._makeAbs=function(t){return Fe.makeAbs(this,t)}});var Fn=m((mw,Fu)=>{Fu.exports=Lu;function Lu(t,e){if(t&&e)return Lu(t)(e);if(typeof t!="function")throw new TypeError("need wrapper function");return Object.keys(t).forEach(function(i){r[i]=t[i]}),r;function r(){for(var i=new Array(arguments.length),n=0;n<i.length;n++)i[n]=arguments[n];var s=t.apply(this,i),a=i[i.length-1];return typeof s=="function"&&s!==a&&Object.keys(a).forEach(function(o){s[o]=a[o]}),s}}});var Gn=m((gw,$n)=>{var $u=Fn();$n.exports=$u(Zr);$n.exports.strict=$u(Gu);Zr.proto=Zr(function(){Object.defineProperty(Function.prototype,"once",{value:function(){return Zr(this)},configurable:!0}),Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return Gu(this)},configurable:!0})});function Zr(t){var e=function(){return e.called?e.value:(e.called=!0,e.value=t.apply(this,arguments))};return e.called=!1,e}function Gu(t){var e=function(){if(e.called)throw new Error(e.onceError);return e.called=!0,e.value=t.apply(this,arguments)},r=t.name||"Function wrapped with `once`";return e.onceError=r+" shouldn't be called more than once",e.called=!1,e}});var Uu=m((yw,Wu)=>{var rg=Fn(),Wt=Object.create(null),ig=Gn();Wu.exports=rg(ng);function ng(t,e){return Wt[t]?(Wt[t].push(e),null):(Wt[t]=[e],sg(t))}function sg(t){return ig(function e(){var r=Wt[t],i=r.length,n=ag(arguments);try{for(var s=0;s<i;s++)r[s].apply(null,n)}finally{r.length>i?(r.splice(0,i),process.nextTick(function(){e.apply(null,n)})):delete Wt[t]}})}function ag(t){for(var e=t.length,r=[],i=0;i<e;i++)r[i]=t[i];return r}});var Ln=m((ww,zu)=>{zu.exports=$e;var og=An(),Vu=Hr(),bw=Vu.Minimatch,lg=be(),ug=require("events").EventEmitter,Wn=require("path"),Un=require("assert"),Ut=Yr(),zn=Du(),Ge=Nn(),cg=Ge.setopts,Vn=Ge.ownProp,Hn=Uu(),vw=require("util"),hg=Ge.childrenIgnored,fg=Ge.isIgnored,dg=Gn();function $e(t,e,r){if(typeof e=="function"&&(r=e,e={}),e||(e={}),e.sync){if(r)throw new TypeError("callback provided to sync glob");return zn(t,e)}return new k(t,e,r)}$e.sync=zn;var pg=$e.GlobSync=zn.GlobSync;$e.glob=$e;function mg(t,e){if(e===null||typeof e!="object")return t;for(var r=Object.keys(e),i=r.length;i--;)t[r[i]]=e[r[i]];return t}$e.hasMagic=function(t,e){var r=mg({},e);r.noprocess=!0;var i=new k(t,r),n=i.minimatch.set;if(!t)return!1;if(n.length>1)return!0;for(var s=0;s<n[0].length;s++)if(typeof n[0][s]!="string")return!0;return!1};$e.Glob=k;lg(k,ug);function k(t,e,r){if(typeof e=="function"&&(r=e,e=null),e&&e.sync){if(r)throw new TypeError("callback provided to sync glob");return new pg(t,e)}if(!(this instanceof k))return new k(t,e,r);cg(this,t,e),this._didRealPath=!1;var i=this.minimatch.set.length;this.matches=new Array(i),typeof r=="function"&&(r=dg(r),this.on("error",r),this.on("end",function(l){r(null,l)}));var n=this;if(this._processing=0,this._emitQueue=[],this._processQueue=[],this.paused=!1,this.noprocess)return this;if(i===0)return o();for(var s=!0,a=0;a<i;a++)this._process(this.minimatch.set[a],a,!1,o);s=!1;function o(){--n._processing,n._processing<=0&&(s?process.nextTick(function(){n._finish()}):n._finish())}}k.prototype._finish=function(){if(Un(this instanceof k),!this.aborted){if(this.realpath&&!this._didRealpath)return this._realpath();Ge.finish(this),this.emit("end",this.found)}};k.prototype._realpath=function(){if(this._didRealpath)return;this._didRealpath=!0;var t=this.matches.length;if(t===0)return this._finish();for(var e=this,r=0;r<this.matches.length;r++)this._realpathSet(r,i);function i(){--t===0&&e._finish()}};k.prototype._realpathSet=function(t,e){var r=this.matches[t];if(!r)return e();var i=Object.keys(r),n=this,s=i.length;if(s===0)return e();var a=this.matches[t]=Object.create(null);i.forEach(function(o,l){o=n._makeAbs(o),og.realpath(o,n.realpathCache,function(u,h){u?u.syscall==="stat"?a[o]=!0:n.emit("error",u):a[h]=!0,--s===0&&(n.matches[t]=a,e())})})};k.prototype._mark=function(t){return Ge.mark(this,t)};k.prototype._makeAbs=function(t){return Ge.makeAbs(this,t)};k.prototype.abort=function(){this.aborted=!0,this.emit("abort")};k.prototype.pause=function(){this.paused||(this.paused=!0,this.emit("pause"))};k.prototype.resume=function(){if(this.paused){if(this.emit("resume"),this.paused=!1,this._emitQueue.length){var t=this._emitQueue.slice(0);this._emitQueue.length=0;for(var e=0;e<t.length;e++){var r=t[e];this._emitMatch(r[0],r[1])}}if(this._processQueue.length){var i=this._processQueue.slice(0);this._processQueue.length=0;for(var e=0;e<i.length;e++){var n=i[e];this._processing--,this._process(n[0],n[1],n[2],n[3])}}}};k.prototype._process=function(t,e,r,i){if(Un(this instanceof k),Un(typeof i=="function"),!this.aborted){if(this._processing++,this.paused){this._processQueue.push([t,e,r,i]);return}for(var n=0;typeof t[n]=="string";)n++;var s;switch(n){case t.length:this._processSimple(t.join("/"),e,i);return;case 0:s=null;break;default:s=t.slice(0,n).join("/");break}var a=t.slice(n),o;s===null?o=".":((Ut(s)||Ut(t.map(function(h){return typeof h=="string"?h:"[*]"}).join("/")))&&(!s||!Ut(s))&&(s="/"+s),o=s);var l=this._makeAbs(o);if(hg(this,o))return i();var u=a[0]===Vu.GLOBSTAR;u?this._processGlobStar(s,o,l,a,e,r,i):this._processReaddir(s,o,l,a,e,r,i)}};k.prototype._processReaddir=function(t,e,r,i,n,s,a){var o=this;this._readdir(r,s,function(l,u){return o._processReaddir2(t,e,r,i,n,s,u,a)})};k.prototype._processReaddir2=function(t,e,r,i,n,s,a,o){if(!a)return o();for(var l=i[0],u=!!this.minimatch.negate,h=l._glob,c=this.dot||h.charAt(0)===".",f=[],d=0;d<a.length;d++){var p=a[d];if(p.charAt(0)!=="."||c){var g;u&&!t?g=!p.match(l):g=p.match(l),g&&f.push(p)}}var b=f.length;if(b===0)return o();if(i.length===1&&!this.mark&&!this.stat){this.matches[n]||(this.matches[n]=Object.create(null));for(var d=0;d<b;d++){var p=f[d];t&&(t!=="/"?p=t+"/"+p:p=t+p),p.charAt(0)==="/"&&!this.nomount&&(p=Wn.join(this.root,p)),this._emitMatch(n,p)}return o()}i.shift();for(var d=0;d<b;d++){var p=f[d],y;t&&(t!=="/"?p=t+"/"+p:p=t+p),this._process([p].concat(i),n,s,o)}o()};k.prototype._emitMatch=function(t,e){if(!this.aborted&&!fg(this,e)){if(this.paused){this._emitQueue.push([t,e]);return}var r=Ut(e)?e:this._makeAbs(e);if(this.mark&&(e=this._mark(e)),this.absolute&&(e=r),!this.matches[t][e]){if(this.nodir){var i=this.cache[r];if(i==="DIR"||Array.isArray(i))return}this.matches[t][e]=!0;var n=this.statCache[r];n&&this.emit("stat",e,n),this.emit("match",e)}}};k.prototype._readdirInGlobStar=function(t,e){if(this.aborted)return;if(this.follow)return this._readdir(t,!1,e);var r="lstat\0"+t,i=this,n=Hn(r,s);n&&i.fs.lstat(t,n);function s(a,o){if(a&&a.code==="ENOENT")return e();var l=o&&o.isSymbolicLink();i.symlinks[t]=l,!l&&o&&!o.isDirectory()?(i.cache[t]="FILE",e()):i._readdir(t,!1,e)}};k.prototype._readdir=function(t,e,r){if(!this.aborted&&(r=Hn("readdir\0"+t+"\0"+e,r),!!r)){if(e&&!Vn(this.symlinks,t))return this._readdirInGlobStar(t,r);if(Vn(this.cache,t)){var i=this.cache[t];if(!i||i==="FILE")return r();if(Array.isArray(i))return r(null,i)}var n=this;n.fs.readdir(t,gg(this,t,r))}};function gg(t,e,r){return function(i,n){i?t._readdirError(e,i,r):t._readdirEntries(e,n,r)}}k.prototype._readdirEntries=function(t,e,r){if(!this.aborted){if(!this.mark&&!this.stat)for(var i=0;i<e.length;i++){var n=e[i];t==="/"?n=t+n:n=t+"/"+n,this.cache[n]=!0}return this.cache[t]=e,r(null,e)}};k.prototype._readdirError=function(t,e,r){if(!this.aborted){switch(e.code){case"ENOTSUP":case"ENOTDIR":var i=this._makeAbs(t);if(this.cache[i]="FILE",i===this.cwdAbs){var n=new Error(e.code+" invalid cwd "+this.cwd);n.path=this.cwd,n.code=e.code,this.emit("error",n),this.abort()}break;case"ENOENT":case"ELOOP":case"ENAMETOOLONG":case"UNKNOWN":this.cache[this._makeAbs(t)]=!1;break;default:this.cache[this._makeAbs(t)]=!1,this.strict&&(this.emit("error",e),this.abort()),this.silent||console.error("glob error",e);break}return r()}};k.prototype._processGlobStar=function(t,e,r,i,n,s,a){var o=this;this._readdir(r,s,function(l,u){o._processGlobStar2(t,e,r,i,n,s,u,a)})};k.prototype._processGlobStar2=function(t,e,r,i,n,s,a,o){if(!a)return o();var l=i.slice(1),u=t?[t]:[],h=u.concat(l);this._process(h,n,!1,o);var c=this.symlinks[r],f=a.length;if(c&&s)return o();for(var d=0;d<f;d++){var p=a[d];if(!(p.charAt(0)==="."&&!this.dot)){var g=u.concat(a[d],l);this._process(g,n,!0,o);var b=u.concat(a[d],i);this._process(b,n,!0,o)}}o()};k.prototype._processSimple=function(t,e,r){var i=this;this._stat(t,function(n,s){i._processSimple2(t,e,n,s,r)})};k.prototype._processSimple2=function(t,e,r,i,n){if(this.matches[e]||(this.matches[e]=Object.create(null)),!i)return n();if(t&&Ut(t)&&!this.nomount){var s=/[\/\\]$/.test(t);t.charAt(0)==="/"?t=Wn.join(this.root,t):(t=Wn.resolve(this.root,t),s&&(t+="/"))}process.platform==="win32"&&(t=t.replace(/\\/g,"/")),this._emitMatch(e,t),n()};k.prototype._stat=function(t,e){var r=this._makeAbs(t),i=t.slice(-1)==="/";if(t.length>this.maxLength)return e();if(!this.stat&&Vn(this.cache,r)){var n=this.cache[r];if(Array.isArray(n)&&(n="DIR"),!i||n==="DIR")return e(null,n);if(i&&n==="FILE")return e()}var s,a=this.statCache[r];if(a!==void 0){if(a===!1)return e(null,a);var o=a.isDirectory()?"DIR":"FILE";return i&&o==="FILE"?e():e(null,o,a)}var l=this,u=Hn("stat\0"+r,h);u&&l.fs.lstat(r,u);function h(c,f){if(f&&f.isSymbolicLink())return l.fs.stat(r,function(d,p){d?l._stat2(t,r,null,f,e):l._stat2(t,r,d,p,e)});l._stat2(t,r,c,f,e)}};k.prototype._stat2=function(t,e,r,i,n){if(r&&(r.code==="ENOENT"||r.code==="ENOTDIR"))return this.statCache[e]=!1,n();var s=t.slice(-1)==="/";if(this.statCache[e]=i,e.slice(-1)==="/"&&i&&!i.isDirectory())return n(null,!1,i);var a=!0;return i&&(a=i.isDirectory()?"DIR":"FILE"),this.cache[e]=this.cache[e]||a,s&&a==="FILE"?n():n(null,a,i)}});var ec=m((_w,Ju)=>{var R=require("assert"),Xu=require("path"),Hu=require("fs"),pt;try{pt=Ln()}catch{}var yg={nosort:!0,silent:!0},Kn=0,Vt=process.platform==="win32",Zu=t=>{if(["unlink","chmod","stat","lstat","rmdir","readdir"].forEach(r=>{t[r]=t[r]||Hu[r],r=r+"Sync",t[r]=t[r]||Hu[r]}),t.maxBusyTries=t.maxBusyTries||3,t.emfileWait=t.emfileWait||1e3,t.glob===!1&&(t.disableGlob=!0),t.disableGlob!==!0&&pt===void 0)throw Error("glob dependency not found, set `options.disableGlob = true` if intentional");t.disableGlob=t.disableGlob||!1,t.glob=t.glob||yg},Xn=(t,e,r)=>{typeof e=="function"&&(r=e,e={}),R(t,"rimraf: missing path"),R.equal(typeof t,"string","rimraf: path should be a string"),R.equal(typeof r,"function","rimraf: callback function required"),R(e,"rimraf: invalid options argument provided"),R.equal(typeof e,"object","rimraf: options should be object"),Zu(e);let i=0,n=null,s=0,a=l=>{n=n||l,--s===0&&r(n)},o=(l,u)=>{if(l)return r(l);if(s=u.length,s===0)return r();u.forEach(h=>{let c=f=>{if(f){if((f.code==="EBUSY"||f.code==="ENOTEMPTY"||f.code==="EPERM")&&i<e.maxBusyTries)return i++,setTimeout(()=>Yn(h,e,c),i*100);if(f.code==="EMFILE"&&Kn<e.emfileWait)return setTimeout(()=>Yn(h,e,c),Kn++);f.code==="ENOENT"&&(f=null)}Kn=0,a(f)};Yn(h,e,c)})};if(e.disableGlob||!pt.hasMagic(t))return o(null,[t]);e.lstat(t,(l,u)=>{if(!l)return o(null,[t]);pt(t,e.glob,o)})},Yn=(t,e,r)=>{R(t),R(e),R(typeof r=="function"),e.lstat(t,(i,n)=>{if(i&&i.code==="ENOENT")return r(null);if(i&&i.code==="EPERM"&&Vt&&Ku(t,e,i,r),n&&n.isDirectory())return Qr(t,e,i,r);e.unlink(t,s=>{if(s){if(s.code==="ENOENT")return r(null);if(s.code==="EPERM")return Vt?Ku(t,e,s,r):Qr(t,e,s,r);if(s.code==="EISDIR")return Qr(t,e,s,r)}return r(s)})})},Ku=(t,e,r,i)=>{R(t),R(e),R(typeof i=="function"),e.chmod(t,438,n=>{n?i(n.code==="ENOENT"?null:r):e.stat(t,(s,a)=>{s?i(s.code==="ENOENT"?null:r):a.isDirectory()?Qr(t,e,r,i):e.unlink(t,i)})})},Yu=(t,e,r)=>{R(t),R(e);try{e.chmodSync(t,438)}catch(n){if(n.code==="ENOENT")return;throw r}let i;try{i=e.statSync(t)}catch(n){if(n.code==="ENOENT")return;throw r}i.isDirectory()?Jr(t,e,r):e.unlinkSync(t)},Qr=(t,e,r,i)=>{R(t),R(e),R(typeof i=="function"),e.rmdir(t,n=>{n&&(n.code==="ENOTEMPTY"||n.code==="EEXIST"||n.code==="EPERM")?bg(t,e,i):n&&n.code==="ENOTDIR"?i(r):i(n)})},bg=(t,e,r)=>{R(t),R(e),R(typeof r=="function"),e.readdir(t,(i,n)=>{if(i)return r(i);let s=n.length;if(s===0)return e.rmdir(t,r);let a;n.forEach(o=>{Xn(Xu.join(t,o),e,l=>{if(!a){if(l)return r(a=l);--s===0&&e.rmdir(t,r)}})})})},Qu=(t,e)=>{e=e||{},Zu(e),R(t,"rimraf: missing path"),R.equal(typeof t,"string","rimraf: path should be a string"),R(e,"rimraf: missing options"),R.equal(typeof e,"object","rimraf: options should be object");let r;if(e.disableGlob||!pt.hasMagic(t))r=[t];else try{e.lstatSync(t),r=[t]}catch{r=pt.sync(t,e.glob)}if(r.length)for(let i=0;i<r.length;i++){let n=r[i],s;try{s=e.lstatSync(n)}catch(a){if(a.code==="ENOENT")return;a.code==="EPERM"&&Vt&&Yu(n,e,a)}try{s&&s.isDirectory()?Jr(n,e,null):e.unlinkSync(n)}catch(a){if(a.code==="ENOENT")return;if(a.code==="EPERM")return Vt?Yu(n,e,a):Jr(n,e,a);if(a.code!=="EISDIR")throw a;Jr(n,e,a)}}},Jr=(t,e,r)=>{R(t),R(e);try{e.rmdirSync(t)}catch(i){if(i.code==="ENOENT")return;if(i.code==="ENOTDIR")throw r;(i.code==="ENOTEMPTY"||i.code==="EEXIST"||i.code==="EPERM")&&vg(t,e)}},vg=(t,e)=>{R(t),R(e),e.readdirSync(t).forEach(n=>Qu(Xu.join(t,n),e));let r=Vt?100:1,i=0;do{let n=!0;try{let s=e.rmdirSync(t,e);return n=!1,s}finally{if(++i<r&&n)continue}}while(!0)};Ju.exports=Xn;Xn.sync=Qu});var bc=m((xw,de)=>{var L=require("fs"),ts=require("os"),Y=require("path"),tc=require("crypto"),oe={fs:L.constants,os:ts.constants},nc=ec(),rc="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",sc=/XXXXXX/,wg=3,ac=(oe.O_CREAT||oe.fs.O_CREAT)|(oe.O_EXCL||oe.fs.O_EXCL)|(oe.O_RDWR||oe.fs.O_RDWR),_g=ts.platform()==="win32",xg=oe.EBADF||oe.os.errno.EBADF,Eg=oe.ENOENT||oe.os.errno.ENOENT,oc=448,lc=384,Sg="exit",mt=[],uc=L.rmdirSync.bind(L),cc=nc.sync,hc=!1;function rs(t,e){let r=gt(t,e),i=r[0],n=r[1];try{mc(i)}catch(a){return n(a)}let s=i.tries;(function a(){try{let o=pc(i);L.stat(o,function(l){if(!l)return s-- >0?a():n(new Error("Could not get a unique tmp filename, max tries reached "+o));n(null,o)})}catch(o){n(o)}})()}function is(t){let e=gt(t),r=e[0];mc(r);let i=r.tries;do{let n=pc(r);try{L.statSync(n)}catch{return n}}while(i-- >0);throw new Error("Could not get a unique tmp filename, max tries reached")}function Og(t,e){let r=gt(t,e),i=r[0],n=r[1];rs(i,function(a,o){if(a)return n(a);L.open(o,ac,i.mode||lc,function(u,h){if(u)return n(u);if(i.discardDescriptor)return L.close(h,function(f){return n(f,o,void 0,Qn(o,-1,i,!1))});{let c=i.discardDescriptor||i.detachDescriptor;n(null,o,h,Qn(o,c?-1:h,i,!1))}})})}function Cg(t){let e=gt(t),r=e[0],i=r.discardDescriptor||r.detachDescriptor,n=is(r);var s=L.openSync(n,ac,r.mode||lc);return r.discardDescriptor&&(L.closeSync(s),s=void 0),{name:n,fd:s,removeCallback:Qn(n,i?-1:s,r,!0)}}function kg(t,e){let r=gt(t,e),i=r[0],n=r[1];rs(i,function(a,o){if(a)return n(a);L.mkdir(o,i.mode||oc,function(u){if(u)return n(u);n(null,o,fc(o,i,!1))})})}function Rg(t){let e=gt(t),r=e[0],i=is(r);return L.mkdirSync(i,r.mode||oc),{name:i,removeCallback:fc(i,r,!0)}}function Ag(t,e){let r=function(i){if(i&&!es(i))return e(i);e()};0<=t[0]?L.close(t[0],function(){L.unlink(t[1],r)}):L.unlink(t[1],r)}function Tg(t){let e=null;try{0<=t[0]&&L.closeSync(t[0])}catch(r){if(!jg(r)&&!es(r))throw r}finally{try{L.unlinkSync(t[1])}catch(r){es(r)||(e=r)}}if(e!==null)throw e}function Qn(t,e,r,i){let n=ei(Tg,[e,t],i),s=ei(Ag,[e,t],i,n);return r.keep||mt.unshift(n),i?n:s}function fc(t,e,r){let i=e.unsafeCleanup?nc:L.rmdir.bind(L),n=e.unsafeCleanup?cc:uc,s=ei(n,t,r),a=ei(i,t,r,s);return e.keep||mt.unshift(s),r?s:a}function ei(t,e,r,i){let n=!1;return function s(a){if(!n){let o=i||s,l=mt.indexOf(o);return l>=0&&mt.splice(l,1),n=!0,r||t===uc||t===cc?t(e):t(e,a||function(){})}}}function qg(){if(hc)for(;mt.length;)try{mt[0]()}catch{}}function ic(t){let e=[],r=null;try{r=tc.randomBytes(t)}catch{r=tc.pseudoRandomBytes(t)}for(var i=0;i<t;i++)e.push(rc[r[i]%rc.length]);return e.join("")}function dc(t){return t===null||V(t)||!t.trim()}function V(t){return typeof t>"u"}function gt(t,e){if(typeof t=="function")return[{},t];if(V(t))return[{},e];let r={};for(let i of Object.getOwnPropertyNames(t))r[i]=t[i];return[r,e]}function pc(t){let e=t.tmpdir;if(!V(t.name))return Y.join(e,t.dir,t.name);if(!V(t.template))return Y.join(e,t.dir,t.template).replace(sc,ic(6));let r=[t.prefix?t.prefix:"tmp","-",process.pid,"-",ic(12),t.postfix?"-"+t.postfix:""].join("");return Y.join(e,t.dir,r)}function mc(t){t.tmpdir=yc(t);let e=t.tmpdir;if(V(t.name)||Zn(t.name,"name",e),V(t.dir)||Zn(t.dir,"dir",e),!V(t.template)&&(Zn(t.template,"template",e),!t.template.match(sc)))throw new Error(`Invalid template, found "${t.template}".`);if(!V(t.tries)&&isNaN(t.tries)||t.tries<0)throw new Error(`Invalid tries, found "${t.tries}".`);t.tries=V(t.name)?t.tries||wg:1,t.keep=!!t.keep,t.detachDescriptor=!!t.detachDescriptor,t.discardDescriptor=!!t.discardDescriptor,t.unsafeCleanup=!!t.unsafeCleanup,t.dir=V(t.dir)?"":Y.relative(e,Jn(t.dir,e)),t.template=V(t.template)?void 0:Y.relative(e,Jn(t.template,e)),t.template=dc(t.template)?void 0:Y.relative(t.dir,t.template),t.name=V(t.name)?void 0:ns(t.name),t.prefix=V(t.prefix)?"":t.prefix,t.postfix=V(t.postfix)?"":t.postfix}function Jn(t,e){let r=ns(t);return r.startsWith(e)?Y.resolve(r):Y.resolve(Y.join(e,r))}function ns(t){return dc(t)?t:t.replace(/["']/g,"")}function Zn(t,e,r){if(e==="name"){if(Y.isAbsolute(t))throw new Error(`${e} option must not contain an absolute path, found "${t}".`);let i=Y.basename(t);if(i===".."||i==="."||i!==t)throw new Error(`${e} option must not contain a path, found "${t}".`)}else{if(Y.isAbsolute(t)&&!t.startsWith(r))throw new Error(`${e} option must be relative to "${r}", found "${t}".`);let i=Jn(t,r);if(!i.startsWith(r))throw new Error(`${e} option must be relative to "${r}", found "${i}".`)}}function jg(t){return gc(t,-xg,"EBADF")}function es(t){return gc(t,-Eg,"ENOENT")}function gc(t,e,r){return _g?t.code===r:t.code===r&&t.errno===e}function Mg(){hc=!0}function yc(t){return Y.resolve(ns(t&&t.tmpdir||ts.tmpdir()))}process.addListener(Sg,qg);Object.defineProperty(de.exports,"tmpdir",{enumerable:!0,configurable:!1,get:function(){return yc()}});de.exports.dir=kg;de.exports.dirSync=Rg;de.exports.file=Og;de.exports.fileSync=Cg;de.exports.tmpName=rs;de.exports.tmpNameSync=is;de.exports.setGracefulCleanup=Mg});var vc=m((Ew,Pg)=>{Pg.exports={name:"create-nx-workspace",version:"17.0.3",private:!1,description:"Smart, Fast and Extensible Build System",repository:{type:"git",url:"https://github.com/nrwl/nx.git",directory:"packages/create-nx-workspace"},keywords:["Monorepo","Angular","React","Web","Node","Nest","Jest","Cypress","CLI"],bin:{"create-nx-workspace":"./bin/index.js"},author:"Victor Savkin",license:"MIT",bugs:{url:"https://github.com/nrwl/nx/issues"},homepage:"https://nx.dev",dependencies:{chalk:"^4.1.0",enquirer:"~2.3.6",flat:"^5.0.2",ora:"5.3.0",tmp:"~0.2.1",tslib:"^2.3.0",yargs:"^17.6.2",axios:"^1.5.1"},publishConfig:{access:"public"},main:"./index.js",type:"commonjs"}});var wc=m(ti=>{"use strict";Object.defineProperty(ti,"__esModule",{value:!0});ti.nxVersion=void 0;ti.nxVersion=vc().version});var Sc=m(ri=>{"use strict";Object.defineProperty(ri,"__esModule",{value:!0});ri.createSandbox=void 0;var Ig=require("fs"),Ng=bc(),Bg=Lt(),Dg=require("path"),_c=ut(),xc=lt(),Lg=ue(),Ec=wc(),Fg=De();async function $g(t){let e=Bg(`Installing dependencies with ${t}`).start(),{install:r,preInstall:i}=(0,_c.getPackageManagerCommand)(t),n=(0,Ng.dirSync)().name;try{(0,Ig.writeFileSync)((0,Dg.join)(n,"package.json"),JSON.stringify({dependencies:{nx:Ec.nxVersion,"@nx/workspace":Ec.nxVersion},license:"MIT"})),(0,_c.generatePackageManagerFiles)(n,t),i&&await(0,xc.execAndWait)(i,n),await(0,xc.execAndWait)(r,n),e.succeed()}catch(s){e.fail(),s instanceof Error?Lg.output.error({title:"Failed to install dependencies",bodyLines:(0,Fg.mapErrorToBodyLines)(s)}):console.error(s),process.exit(1)}finally{e.stop()}return n}ri.createSandbox=$g});var Oc=m(yt=>{"use strict";Object.defineProperty(yt,"__esModule",{value:!0});yt.getFileName=yt.stringifyCollection=void 0;function Gg(t){return t.map(e=>`"${e}"`).join(", ")}yt.stringifyCollection=Gg;function Wg(t){return t.replace(/([a-z\d])([A-Z])/g,"$1_$2").toLowerCase().replace(/[ _]/g,"-")}yt.getFileName=Wg});var Tc=m((kw,Ac)=>{Ac.exports=zt;zt.flatten=zt;zt.unflatten=Rc;function Cc(t){return t&&t.constructor&&typeof t.constructor.isBuffer=="function"&&t.constructor.isBuffer(t)}function kc(t){return t}function zt(t,e){e=e||{};let r=e.delimiter||".",i=e.maxDepth,n=e.transformKey||kc,s={};function a(o,l,u){u=u||1,Object.keys(o).forEach(function(h){let c=o[h],f=e.safe&&Array.isArray(c),d=Object.prototype.toString.call(c),p=Cc(c),g=d==="[object Object]"||d==="[object Array]",b=l?l+r+n(h):n(h);if(!f&&!p&&g&&Object.keys(c).length&&(!e.maxDepth||u<i))return a(c,b,u+1);s[b]=c})}return a(t),s}function Rc(t,e){e=e||{};let r=e.delimiter||".",i=e.overwrite||!1,n=e.transformKey||kc,s={};if(Cc(t)||Object.prototype.toString.call(t)!=="[object Object]")return t;function o(h){let c=Number(h);return isNaN(c)||h.indexOf(".")!==-1||e.object?h:c}function l(h,c,f){return Object.keys(f).reduce(function(d,p){return d[h+r+p]=f[p],d},c)}function u(h){let c=Object.prototype.toString.call(h),f=c==="[object Array]",d=c==="[object Object]";if(h){if(f)return!h.length;if(d)return!Object.keys(h).length}else return!0}return t=Object.keys(t).reduce(function(h,c){let f=Object.prototype.toString.call(t[c]);return!(f==="[object Object]"||f==="[object Array]")||u(t[c])?(h[c]=t[c],h):l(c,h,zt(t[c],e))},{}),Object.keys(t).forEach(function(h){let c=h.split(r).map(n),f=o(c.shift()),d=o(c[0]),p=s;for(;d!==void 0;){if(f==="__proto__")return;let g=Object.prototype.toString.call(p[f]),b=g==="[object Object]"||g==="[object Array]";if(!i&&!b&&typeof p[f]<"u")return;(i&&!b||!i&&p[f]==null)&&(p[f]=typeof d=="number"&&!e.object?[]:{}),p=p[f],c.length>0&&(f=o(c.shift()),d=o(c[0]))}p[f]=Rc(t[h],e)}),s}});var as=m(ii=>{"use strict";Object.defineProperty(ii,"__esModule",{value:!0});ii.unparse=void 0;var Ug=Tc();function Vg(t){let e=[];for(let r of Object.keys(t)){let i=t[r];ss(r,i,e)}return e}ii.unparse=Vg;function ss(t,e,r){if(e===!0)r.push(`--${t}`);else if(e===!1)r.push(`--no-${t}`);else if(Array.isArray(e))e.forEach(i=>ss(t,i,r));else if(Object.prototype.toString.call(e)==="[object Object]"){let i=(0,Ug.flatten)(e,{safe:!0});for(let n in i)ss(`${t}.${n}`,i[n],r)}else typeof e=="string"&&e.includes(" ")?r.push(`--${t}="${e}"`):e!=null&&r.push(`--${t}=${e}`)}});var jc=m(ni=>{"use strict";Object.defineProperty(ni,"__esModule",{value:!0});ni.createEmptyWorkspace=void 0;var zg=Lt(),Hg=require("path"),Kg=lt(),Yg=De(),Xg=ue(),qc=ut(),Zg=Oc(),Qg=as();async function Jg(t,e,r,i){i.packageManager||(i.packageManager=r),i.name=(0,Zg.getFileName)(e);let n=i.name,s=(0,Qg.unparse)({...i}).join(" "),a=(0,qc.getPackageManagerCommand)(r),o=`new ${s}`,l=process.cwd().replace(/\\/g,"/"),u=`"${l}"`;process.platform==="win32"&&/\s/.test(u)&&r==="npm"&&+(0,qc.getPackageManagerVersion)(r,t).split(".")[0]<7&&(u=`\\"${u.slice(1,-1)}\\"`);let h=zg(`Creating your workspace in ${n}`).start();try{let c=`${a.exec} nx ${o} --nxWorkspaceRoot=${u}`;await(0,Kg.execAndWait)(c,t),h.succeed(`Successfully created the workspace: ${n}.`)}catch(c){h.fail(),c instanceof Error?Xg.output.error({title:"Failed to create a workspace.",bodyLines:(0,Yg.mapErrorToBodyLines)(c)}):console.error(c),process.exit(1)}finally{h.stop()}return(0,Hg.join)(l,n)}ni.createEmptyWorkspace=Jg});var Pc=m(si=>{"use strict";Object.defineProperty(si,"__esModule",{value:!0});si.createPreset=void 0;var ey=ue(),Mc=ut(),ty=lt(),ry=as();async function iy(t,e,r,i){let{skipGit:n,ci:s,commit:a,nxCloud:o,...l}=e,u=(0,ry.unparse)({interactive:!0,...l}).join(" "),h=(0,Mc.getPackageManagerCommand)(r),c=process.cwd().replace(/\\/g,"/"),f=`"${c}"`;process.platform==="win32"&&/\s/.test(f)&&r==="npm"&&+(0,Mc.getPackageManagerVersion)(r,c).split(".")[0]<7&&(f=`\\"${f.slice(1,-1)}\\"`),process.env.NX_VERBOSE_LOGGING==="true"||u.includes("--verbose")||(u="--quiet "+u);let d=`g ${t}:preset ${u}`;try{let[p,...g]=h.exec.split(" ");g.push("nx",`--nxWorkspaceRoot=${f}`,...d.split(" ")),await(0,ty.spawnAndWait)(p,g,i)}catch{ey.output.error({title:`Failed to apply preset: ${t}`,bodyLines:["See above"]}),process.exit(1)}}si.createPreset=iy});var Nc=m(ai=>{"use strict";Object.defineProperty(ai,"__esModule",{value:!0});ai.setupCI=void 0;var ny=Lt(),sy=lt(),ay=De(),Ic=ue(),oy=ut();async function ly(t,e,r,i){i||Ic.output.error({title:"CI workflow generation skipped",bodyLines:["Nx Cloud was not installed","The autogenerated CI workflow requires Nx Cloud to be set-up."]});let n=ny("Generating CI workflow").start();try{let s=(0,oy.getPackageManagerCommand)(r),a=await(0,sy.execAndWait)(`${s.exec} nx g @nx/workspace:ci-workflow --ci=${e}`,t);return n.succeed("CI workflow has been generated successfully"),a}catch(s){n.fail(),s instanceof Error?Ic.output.error({title:"Failed to generate CI workflow",bodyLines:(0,ay.mapErrorToBodyLines)(s)}):console.error(s),process.exit(1)}finally{n.stop()}}ai.setupCI=ly});var Bc=m(oi=>{"use strict";Object.defineProperty(oi,"__esModule",{value:!0});oi.deduceDefaultBase=void 0;var uy=require("child_process");function cy(){let t="main";try{return(0,uy.execSync)("git config --get init.defaultBranch").toString().trim()||t}catch{return t}}oi.deduceDefaultBase=cy});var Fc=m(bt=>{"use strict";Object.defineProperty(bt,"__esModule",{value:!0});bt.initializeGitRepo=bt.checkGitVersion=void 0;var Dc=require("child_process"),hy=Bc(),fy=ue();function Lc(){try{return(0,Dc.execSync)("git --version").toString().trim().match(/[0-9]+\.[0-9]+\.+[0-9]+/)?.[0]}catch{return null}}bt.checkGitVersion=Lc;async function dy(t,e){let r=(l,u=!1)=>{let h="ignore",c=u?"ignore":process.stderr,f={stdio:[process.stdin,h,c],shell:!0,cwd:t,env:{...process.env,...e.commit?.name?{GIT_AUTHOR_NAME:e.commit.name,GIT_COMMITTER_NAME:e.commit.name}:{},...e.commit?.email?{GIT_AUTHOR_EMAIL:e.commit.email,GIT_COMMITTER_EMAIL:e.commit.email}:{}}};return new Promise((d,p)=>{(0,Dc.spawn)("git",l,f).on("close",g=>{g===0?d():p(g)})})},i=Lc();if(!i)return;if(await r(["rev-parse","--is-inside-work-tree"],!0).then(()=>!0,()=>!1)){fy.output.log({title:"Directory is already under version control. Skipping initialization of git."});return}let s=e.defaultBase||(0,hy.deduceDefaultBase)(),[a,o]=i.split(".");if(+a>2||+a==2&&+o>=28?await r(["init","-b",s]):(await r(["init"]),await r(["checkout","-b",s])),await r(["add","."]),e.commit){let l=e.commit.message||"initial commit";await r(["commit",`-m "${l}"`])}}bt.initializeGitRepo=dy});var $c=m(li=>{"use strict";Object.defineProperty(li,"__esModule",{value:!0});li.validateNpmPackage=void 0;var py=new RegExp("^(?:@([^/]+?)[/])?([^/]+?)$"),my=["node_modules","favicon.ico"];function gy(t){let e=[],r=[];if(t===null)return r.push("name cannot be null"),Ht(e,r);if(t===void 0)return r.push("name cannot be undefined"),Ht(e,r);if(typeof t!="string")return r.push("name must be a string"),Ht(e,r);if(t.length||r.push("name length must be greater than zero"),t.match(/^\./)&&r.push("name cannot start with a period"),t.match(/^_/)&&r.push("name cannot start with an underscore"),t.trim()!==t&&r.push("name cannot contain leading or trailing spaces"),my.forEach(function(i){t.toLowerCase()===i&&r.push(i+" is a deny listed name")}),t.length>214&&e.push("name can no longer contain more than 214 characters"),t.toLowerCase()!==t&&e.push("name can no longer contain capital letters"),/[~'!()*]/.test(t.split("/").slice(-1)[0])&&e.push(`name can no longer contain special characters ("~'!()*")`),encodeURIComponent(t)!==t){let i=t.match(py);if(i){let n=i[1],s=i[2];if(encodeURIComponent(n)===n&&encodeURIComponent(s)===s)return Ht(e,r)}r.push("name can only contain URL-friendly characters")}return Ht(e,r)}li.validateNpmPackage=gy;function Ht(t,e){return{validForNewPackages:e.length===0&&t.length===0,validForOldPackages:e.length===0,...t.length&&{warnings:t},...e.length&&{errors:e}}}});var Gc=m(vt=>{"use strict";Object.defineProperty(vt,"__esModule",{value:!0});vt.isKnownPreset=vt.Preset=void 0;var os;(function(t){t.Apps="apps",t.Empty="empty",t.Core="core",t.NPM="npm",t.TS="ts",t.WebComponents="web-components",t.AngularMonorepo="angular-monorepo",t.AngularStandalone="angular-standalone",t.ReactMonorepo="react-monorepo",t.ReactStandalone="react-standalone",t.VueMonorepo="vue-monorepo",t.VueStandalone="vue-standalone",t.NextJs="next",t.NextJsStandalone="nextjs-standalone",t.ReactNative="react-native",t.Expo="expo",t.Nest="nest",t.Express="express",t.React="react",t.Angular="angular",t.NodeStandalone="node-standalone",t.NodeMonorepo="node-monorepo",t.TsStandalone="ts-standalone"})(os||(vt.Preset=os={}));function yy(t){return Object.values(os).includes(t)}vt.isKnownPreset=yy});var Wc=m(ui=>{"use strict";Object.defineProperty(ui,"__esModule",{value:!0});ui.getThirdPartyPreset=void 0;var by=ue(),vy=$c(),wy=Gc();async function _y(t){if(t&&!(0,wy.isKnownPreset)(t)){let e=t.match(/.+@/)?t[0]+t.substring(1).split("@")[0]:t,r=(0,vy.validateNpmPackage)(e);if(r.validForNewPackages)return Promise.resolve(e);{throw by.output.error({title:"Invalid preset npm package",bodyLines:["There was an error with the preset npm package you provided:","",...r.errors??[]]}),new Error("Invalid preset npm package")}}else return Promise.resolve(null)}ui.getThirdPartyPreset=_y});var Vc=m(ci=>{"use strict";Object.defineProperty(ci,"__esModule",{value:!0});ci.createWorkspace=void 0;var Uc=ue(),xy=iu(),Ey=Sc(),Sy=jc(),Oy=Pc(),Cy=Nc(),ky=Fc(),Ry=Wc(),Ay=De();async function Ty(t,e){let{packageManager:r,name:i,nxCloud:n,ci:s="",skipGit:a=!1,defaultBase:o="main",commit:l,cliName:u}=e;u&&Uc.output.setCliName(u??"NX");let h=await(0,Ey.createSandbox)(r),c=await(0,Sy.createEmptyWorkspace)(h,i,r,{...e,preset:t}),f=await(0,Ry.getThirdPartyPreset)(t);f&&await(0,Oy.createPreset)(f,e,r,c);let d;if(n&&(d=await(0,xy.setupNxCloud)(c,r)),s&&await(0,Cy.setupCI)(c,s,r,n&&d?.code===0),!a&&l)try{await(0,ky.initializeGitRepo)(c,{defaultBase:o,commit:l})}catch(p){p instanceof Error?Uc.output.error({title:"Could not initialize git repository",bodyLines:(0,Ay.mapErrorToBodyLines)(p)}):console.error(p)}return{nxCloudInfo:d?.stdout,directory:c}}ci.createWorkspace=Ty});var zc=m(ls=>{"use strict";Object.defineProperty(ls,"__esModule",{value:!0});var qy=(Aa(),Vf(Ra));qy.__exportStar(Vc(),ls)});var Xc=m((Lw,Kt)=>{"use strict";var jy=typeof process<"u"&&process.env.TERM_PROGRAM==="Hyper",My=typeof process<"u"&&process.platform==="win32",Hc=typeof process<"u"&&process.platform==="linux",us={ballotDisabled:"\u2612",ballotOff:"\u2610",ballotOn:"\u2611",bullet:"\u2022",bulletWhite:"\u25E6",fullBlock:"\u2588",heart:"\u2764",identicalTo:"\u2261",line:"\u2500",mark:"\u203B",middot:"\xB7",minus:"\uFF0D",multiplication:"\xD7",obelus:"\xF7",pencilDownRight:"\u270E",pencilRight:"\u270F",pencilUpRight:"\u2710",percent:"%",pilcrow2:"\u2761",pilcrow:"\xB6",plusMinus:"\xB1",question:"?",section:"\xA7",starsOff:"\u2606",starsOn:"\u2605",upDownArrow:"\u2195"},Kc=Object.assign({},us,{check:"\u221A",cross:"\xD7",ellipsisLarge:"...",ellipsis:"...",info:"i",questionSmall:"?",pointer:">",pointerSmall:"\xBB",radioOff:"( )",radioOn:"(*)",warning:"\u203C"}),Yc=Object.assign({},us,{ballotCross:"\u2718",check:"\u2714",cross:"\u2716",ellipsisLarge:"\u22EF",ellipsis:"\u2026",info:"\u2139",questionFull:"\uFF1F",questionSmall:"\uFE56",pointer:Hc?"\u25B8":"\u276F",pointerSmall:Hc?"\u2023":"\u203A",radioOff:"\u25EF",radioOn:"\u25C9",warning:"\u26A0"});Kt.exports=My&&!jy?Kc:Yc;Reflect.defineProperty(Kt.exports,"common",{enumerable:!1,value:us});Reflect.defineProperty(Kt.exports,"windows",{enumerable:!1,value:Kc});Reflect.defineProperty(Kt.exports,"other",{enumerable:!1,value:Yc})});var hi=m((Fw,cs)=>{"use strict";var Py=t=>t!==null&&typeof t=="object"&&!Array.isArray(t),Iy=/[\u001b\u009b][[\]#;?()]*(?:(?:(?:[^\W_]*;?[^\W_]*)\u0007)|(?:(?:[0-9]{1,4}(;[0-9]{0,4})*)?[~0-9=<>cf-nqrtyA-PRZ]))/g,Ny=()=>typeof process<"u"?process.env.FORCE_COLOR!=="0":!1,Zc=()=>{let t={enabled:Ny(),visible:!0,styles:{},keys:{}},e=s=>{let a=s.open=`\x1B[${s.codes[0]}m`,o=s.close=`\x1B[${s.codes[1]}m`,l=s.regex=new RegExp(`\\u001b\\[${s.codes[1]}m`,"g");return s.wrap=(u,h)=>{u.includes(o)&&(u=u.replace(l,o+a));let c=a+u+o;return h?c.replace(/\r*\n/g,`${o}$&${a}`):c},s},r=(s,a,o)=>typeof s=="function"?s(a):s.wrap(a,o),i=(s,a)=>{if(s===""||s==null)return"";if(t.enabled===!1)return s;if(t.visible===!1)return"";let o=""+s,l=o.includes(`
|
|
20
20
|
`),u=a.length;for(u>0&&a.includes("unstyle")&&(a=[...new Set(["unstyle",...a])].reverse());u-- >0;)o=r(t.styles[a[u]],o,l);return o},n=(s,a,o)=>{t.styles[s]=e({name:s,codes:a}),(t.keys[o]||(t.keys[o]=[])).push(s),Reflect.defineProperty(t,s,{configurable:!0,enumerable:!0,set(u){t.alias(s,u)},get(){let u=h=>i(h,u.stack);return Reflect.setPrototypeOf(u,t),u.stack=this.stack?this.stack.concat(s):[s],u}})};return n("reset",[0,0],"modifier"),n("bold",[1,22],"modifier"),n("dim",[2,22],"modifier"),n("italic",[3,23],"modifier"),n("underline",[4,24],"modifier"),n("inverse",[7,27],"modifier"),n("hidden",[8,28],"modifier"),n("strikethrough",[9,29],"modifier"),n("black",[30,39],"color"),n("red",[31,39],"color"),n("green",[32,39],"color"),n("yellow",[33,39],"color"),n("blue",[34,39],"color"),n("magenta",[35,39],"color"),n("cyan",[36,39],"color"),n("white",[37,39],"color"),n("gray",[90,39],"color"),n("grey",[90,39],"color"),n("bgBlack",[40,49],"bg"),n("bgRed",[41,49],"bg"),n("bgGreen",[42,49],"bg"),n("bgYellow",[43,49],"bg"),n("bgBlue",[44,49],"bg"),n("bgMagenta",[45,49],"bg"),n("bgCyan",[46,49],"bg"),n("bgWhite",[47,49],"bg"),n("blackBright",[90,39],"bright"),n("redBright",[91,39],"bright"),n("greenBright",[92,39],"bright"),n("yellowBright",[93,39],"bright"),n("blueBright",[94,39],"bright"),n("magentaBright",[95,39],"bright"),n("cyanBright",[96,39],"bright"),n("whiteBright",[97,39],"bright"),n("bgBlackBright",[100,49],"bgBright"),n("bgRedBright",[101,49],"bgBright"),n("bgGreenBright",[102,49],"bgBright"),n("bgYellowBright",[103,49],"bgBright"),n("bgBlueBright",[104,49],"bgBright"),n("bgMagentaBright",[105,49],"bgBright"),n("bgCyanBright",[106,49],"bgBright"),n("bgWhiteBright",[107,49],"bgBright"),t.ansiRegex=Iy,t.hasColor=t.hasAnsi=s=>(t.ansiRegex.lastIndex=0,typeof s=="string"&&s!==""&&t.ansiRegex.test(s)),t.alias=(s,a)=>{let o=typeof a=="string"?t[a]:a;if(typeof o!="function")throw new TypeError("Expected alias to be the name of an existing color (string) or a function");o.stack||(Reflect.defineProperty(o,"name",{value:s}),t.styles[s]=o,o.stack=[s]),Reflect.defineProperty(t,s,{configurable:!0,enumerable:!0,set(l){t.alias(s,l)},get(){let l=u=>i(u,l.stack);return Reflect.setPrototypeOf(l,t),l.stack=this.stack?this.stack.concat(o.stack):o.stack,l}})},t.theme=s=>{if(!Py(s))throw new TypeError("Expected theme to be an object");for(let a of Object.keys(s))t.alias(a,s[a]);return t},t.alias("unstyle",s=>typeof s=="string"&&s!==""?(t.ansiRegex.lastIndex=0,s.replace(t.ansiRegex,"")):""),t.alias("noop",s=>s),t.none=t.clear=t.noop,t.stripColor=t.unstyle,t.symbols=Xc(),t.define=n,t};cs.exports=Zc();cs.exports.create=Zc});var W=m(S=>{"use strict";var By=Object.prototype.toString,J=hi(),Qc=!1,Yt=new Set,Jc={yellow:"blue",cyan:"red",green:"magenta",black:"white",blue:"yellow",red:"cyan",magenta:"green",white:"black"};S.longest=(t,e)=>t.reduce((r,i)=>Math.max(r,e?i[e].length:i.length),0);S.hasColor=t=>!!t&&J.hasColor(t);var fi=S.isObject=t=>t!==null&&typeof t=="object"&&!Array.isArray(t);S.nativeType=t=>By.call(t).slice(8,-1).toLowerCase().replace(/\s/g,"");S.isAsyncFn=t=>S.nativeType(t)==="asyncfunction";S.isPrimitive=t=>t!=null&&typeof t!="object"&&typeof t!="function";S.resolve=(t,e,...r)=>typeof e=="function"?e.call(t,...r):e;S.scrollDown=(t=[])=>[...t.slice(1),t[0]];S.scrollUp=(t=[])=>[t.pop(),...t];S.reorder=(t=[])=>{let e=t.slice();return e.sort((r,i)=>r.index>i.index?1:r.index<i.index?-1:0),e};S.swap=(t,e,r)=>{let i=t.length,n=r===i?0:r<0?i-1:r,s=t[e];t[e]=t[n],t[n]=s};S.width=(t,e=80)=>{let r=t&&t.columns?t.columns:e;return t&&typeof t.getWindowSize=="function"&&(r=t.getWindowSize()[0]),process.platform==="win32"?r-1:r};S.height=(t,e=20)=>{let r=t&&t.rows?t.rows:e;return t&&typeof t.getWindowSize=="function"&&(r=t.getWindowSize()[1]),r};S.wordWrap=(t,e={})=>{if(!t)return t;typeof e=="number"&&(e={width:e});let{indent:r="",newline:i=`
|
|
21
21
|
`+r,width:n=80}=e,s=(i+r).match(/[^\S\n]/g)||[];n-=s.length;let a=`.{1,${n}}([\\s\\u200B]+|$)|[^\\s\\u200B]+?([\\s\\u200B]+|$)`,o=t.trim(),l=new RegExp(a,"g"),u=o.match(l)||[];return u=u.map(h=>h.replace(/\n$/,"")),e.padEnd&&(u=u.map(h=>h.padEnd(n," "))),e.padStart&&(u=u.map(h=>h.padStart(n," "))),r+u.join(i)};S.unmute=t=>{let e=t.stack.find(i=>J.keys.color.includes(i));return e?J[e]:t.stack.find(i=>i.slice(2)==="bg")?J[e.slice(2)]:i=>i};S.pascal=t=>t?t[0].toUpperCase()+t.slice(1):"";S.inverse=t=>{if(!t||!t.stack)return t;let e=t.stack.find(i=>J.keys.color.includes(i));if(e){let i=J["bg"+S.pascal(e)];return i?i.black:t}let r=t.stack.find(i=>i.slice(0,2)==="bg");return r?J[r.slice(2).toLowerCase()]||t:J.none};S.complement=t=>{if(!t||!t.stack)return t;let e=t.stack.find(i=>J.keys.color.includes(i)),r=t.stack.find(i=>i.slice(0,2)==="bg");if(e&&!r)return J[Jc[e]||e];if(r){let i=r.slice(2).toLowerCase(),n=Jc[i];return n&&J["bg"+S.pascal(n)]||t}return J.none};S.meridiem=t=>{let e=t.getHours(),r=t.getMinutes(),i=e>=12?"pm":"am";e=e%12;let n=e===0?12:e,s=r<10?"0"+r:r;return n+":"+s+" "+i};S.set=(t={},e="",r)=>e.split(".").reduce((i,n,s,a)=>{let o=a.length-1>s?i[n]||{}:r;return!S.isObject(o)&&s<a.length-1&&(o={}),i[n]=o},t);S.get=(t={},e="",r)=>{let i=t[e]==null?e.split(".").reduce((n,s)=>n&&n[s],t):t[e];return i??r};S.mixin=(t,e)=>{if(!fi(t))return e;if(!fi(e))return t;for(let r of Object.keys(e)){let i=Object.getOwnPropertyDescriptor(e,r);if(hasOwnProperty.call(i,"value"))if(hasOwnProperty.call(t,r)&&fi(i.value)){let n=Object.getOwnPropertyDescriptor(t,r);fi(n.value)&&n.value!==i.value?t[r]=S.merge({},t[r],e[r]):Reflect.defineProperty(t,r,i)}else Reflect.defineProperty(t,r,i);else Reflect.defineProperty(t,r,i)}return t};S.merge=(...t)=>{let e={};for(let r of t)S.mixin(e,r);return e};S.mixinEmitter=(t,e)=>{let r=e.constructor.prototype;for(let i of Object.keys(r)){let n=r[i];typeof n=="function"?S.define(t,i,n.bind(e)):S.define(t,i,n)}};var di=(t,e)=>{Qc||(Qc=!0,Yt.forEach(r=>r()),t===!0&&process.exit(128+e))},eh=di.bind(null,!0,15),th=di.bind(null,!0,2);S.onExit=t=>(Yt.size===0&&(process.once("SIGTERM",eh),process.once("SIGINT",th),process.once("exit",di)),Yt.add(t),()=>{Yt.delete(t),Yt.size===0&&(process.off("SIGTERM",eh),process.off("SIGINT",th),process.off("exit",di))});S.define=(t,e,r)=>{Reflect.defineProperty(t,e,{value:r})};S.defineExport=(t,e,r)=>{let i;Reflect.defineProperty(t,e,{enumerable:!0,configurable:!0,set(n){i=n},get(){return i?i():r()}})}});var rh=m(wt=>{"use strict";wt.ctrl={a:"first",b:"backward",c:"cancel",d:"deleteForward",e:"last",f:"forward",g:"reset",i:"tab",k:"cutForward",l:"reset",n:"newItem",m:"cancel",j:"submit",p:"search",r:"remove",s:"save",u:"undo",w:"cutLeft",x:"toggleCursor",v:"paste"};wt.shift={up:"shiftUp",down:"shiftDown",left:"shiftLeft",right:"shiftRight",tab:"prev"};wt.fn={up:"pageUp",down:"pageDown",left:"pageLeft",right:"pageRight",delete:"deleteForward"};wt.option={b:"backward",f:"forward",d:"cutRight",left:"cutLeft",up:"altUp",down:"altDown"};wt.keys={pageup:"pageUp",pagedown:"pageDown",home:"home",end:"end",cancel:"cancel",delete:"deleteForward",backspace:"delete",down:"down",enter:"submit",escape:"cancel",left:"left",space:"space",number:"number",return:"submit",right:"right",tab:"next",up:"up"}});var nh=m((Uw,ih)=>{"use strict";ih.exports=class{_queue=[];_executing=!1;_jobRunner=null;constructor(e){this._jobRunner=e}enqueue=(...e)=>{this._queue.push(e),this._dequeue()};destroy(){this._queue.length=0,this._jobRunner=null}_dequeue(){this._executing||!this._queue.length||(this._executing=!0,this._jobRunner(...this._queue.shift()),setTimeout(()=>{this._executing=!1,this._dequeue()}))}}});var hs=m((Vw,ah)=>{"use strict";var sh=require("readline"),Dy=rh(),Ly=nh(),Fy=/^(?:\x1b)([a-zA-Z0-9])$/,$y=/^(?:\x1b+)(O|N|\[|\[\[)(?:(\d+)(?:;(\d+))?([~^$])|(?:1;)?(\d+)?([a-zA-Z]))/,Gy={OP:"f1",OQ:"f2",OR:"f3",OS:"f4","[11~":"f1","[12~":"f2","[13~":"f3","[14~":"f4","[[A":"f1","[[B":"f2","[[C":"f3","[[D":"f4","[[E":"f5","[15~":"f5","[17~":"f6","[18~":"f7","[19~":"f8","[20~":"f9","[21~":"f10","[23~":"f11","[24~":"f12","[A":"up","[B":"down","[C":"right","[D":"left","[E":"clear","[F":"end","[H":"home",OA:"up",OB:"down",OC:"right",OD:"left",OE:"clear",OF:"end",OH:"home","[1~":"home","[2~":"insert","[3~":"delete","[4~":"end","[5~":"pageup","[6~":"pagedown","[[5~":"pageup","[[6~":"pagedown","[7~":"home","[8~":"end","[a":"up","[b":"down","[c":"right","[d":"left","[e":"clear","[2$":"insert","[3$":"delete","[5$":"pageup","[6$":"pagedown","[7$":"home","[8$":"end",Oa:"up",Ob:"down",Oc:"right",Od:"left",Oe:"clear","[2^":"insert","[3^":"delete","[5^":"pageup","[6^":"pagedown","[7^":"home","[8^":"end","[Z":"tab"};function Wy(t){return["[a","[b","[c","[d","[e","[2$","[3$","[5$","[6$","[7$","[8$","[Z"].includes(t)}function Uy(t){return["Oa","Ob","Oc","Od","Oe","[2^","[3^","[5^","[6^","[7^","[8^"].includes(t)}var pi=(t="",e={})=>{let r,i={name:e.name,ctrl:!1,meta:!1,shift:!1,option:!1,sequence:t,raw:t,...e};if(Buffer.isBuffer(t)?t[0]>127&&t[1]===void 0?(t[0]-=128,t="\x1B"+String(t)):t=String(t):t!==void 0&&typeof t!="string"?t=String(t):t||(t=i.sequence||""),i.sequence=i.sequence||t||i.name,t==="\r")i.raw=void 0,i.name="return";else if(t===`
|
|
22
|
-
`)i.name="enter";else if(t===" ")i.name="tab";else if(t==="\b"||t==="\x7F"||t==="\x1B\x7F"||t==="\x1B\b")i.name="backspace",i.meta=t.charAt(0)==="\x1B";else if(t==="\x1B"||t==="\x1B\x1B")i.name="escape",i.meta=t.length===2;else if(t===" "||t==="\x1B ")i.name="space",i.meta=t.length===2;else if(t<="")i.name=String.fromCharCode(t.charCodeAt(0)+"a".charCodeAt(0)-1),i.ctrl=!0;else if(t.length===1&&t>="0"&&t<="9")i.name="number";else if(t.length===1&&t>="a"&&t<="z")i.name=t;else if(t.length===1&&t>="A"&&t<="Z")i.name=t.toLowerCase(),i.shift=!0;else if(r=Fy.exec(t))i.meta=!0,i.shift=/^[A-Z]$/.test(r[1]);else if(r=$y.exec(t)){let n=[...t];n[0]==="\x1B"&&n[1]==="\x1B"&&(i.option=!0);let s=[r[1],r[2],r[4],r[6]].filter(Boolean).join(""),a=(r[3]||r[5]||1)-1;i.ctrl=!!(a&4),i.meta=!!(a&10),i.shift=!!(a&1),i.code=s,i.name=Gy[s],i.shift=Wy(s)||i.shift,i.ctrl=Uy(s)||i.ctrl}return i};pi.listen=(t={},e)=>{let{stdin:r}=t;if(!r||r!==process.stdin&&!r.isTTY)throw new Error("Invalid stream passed");let i=sh.createInterface({terminal:!0,input:r});sh.emitKeypressEvents(r,i);let n=new Ly((o,l)=>e(o,pi(o,l),i)),s=r.isRaw;return r.isTTY&&r.setRawMode(!0),r.on("keypress",n.enqueue),i.resume(),()=>{r.isTTY&&r.setRawMode(s),r.removeListener("keypress",n.enqueue),n.destroy(),i.pause(),i.close()}};pi.action=(t,e,r)=>{let i={...Dy,...r};return e.ctrl?(e.action=i.ctrl[e.name],e):e.option&&i.option?(e.action=i.option[e.name],e):e.shift?(e.action=i.shift[e.name],e):(e.action=i.keys[e.name],e)};ah.exports=pi});var lh=m((zw,oh)=>{"use strict";oh.exports=t=>{t.timers=t.timers||{};let e=t.options.timers;if(e)for(let r of Object.keys(e)){let i=e[r];typeof i=="number"&&(i={interval:i}),Vy(t,r,i)}};function Vy(t,e,r={}){let i=t.timers[e]={name:e,start:Date.now(),ms:0,tick:0},n=r.interval||120;i.frames=r.frames||[],i.loading=!0;let s=setInterval(()=>{i.ms=Date.now()-i.start,i.tick++,t.render()},n);return i.stop=()=>{i.loading=!1,clearInterval(s)},Reflect.defineProperty(i,"interval",{value:s}),t.once("close",()=>i.stop()),i.stop}});var ch=m((Hw,uh)=>{"use strict";var{define:zy,width:Hy}=W(),fs=class{constructor(e){let r=e.options;zy(this,"_prompt",e),this.type=e.type,this.name=e.name,this.message="",this.header="",this.footer="",this.error="",this.hint="",this.input="",this.cursor=0,this.index=0,this.lines=0,this.tick=0,this.prompt="",this.buffer="",this.width=Hy(r.stdout||process.stdout),Object.assign(this,r),this.name=this.name||this.message,this.message=this.message||this.name,this.symbols=e.symbols,this.styles=e.styles,this.required=new Set,this.cancelled=!1,this.submitted=!1}clone(){let e={...this};return e.status=this.status,e.buffer=Buffer.from(e.buffer),delete e.clone,e}set color(e){this._color=e}get color(){let e=this.prompt.styles;if(this.cancelled)return e.cancelled;if(this.submitted)return e.submitted;let r=this._color||e[this.status];return typeof r=="function"?r:e.pending}set loading(e){this._loading=e}get loading(){return typeof this._loading=="boolean"?this._loading:this.loadingChoices?"choices":!1}get status(){return this.cancelled?"cancelled":this.submitted?"submitted":"pending"}};uh.exports=fs});var fh=m((Kw,hh)=>{"use strict";var ds=W(),$=hi(),ps={default:$.noop,noop:$.noop,set inverse(t){this._inverse=t},get inverse(){return this._inverse||ds.inverse(this.primary)},set complement(t){this._complement=t},get complement(){return this._complement||ds.complement(this.primary)},primary:$.cyan,success:$.green,danger:$.magenta,strong:$.bold,warning:$.yellow,muted:$.dim,disabled:$.gray,dark:$.dim.gray,underline:$.underline,set info(t){this._info=t},get info(){return this._info||this.primary},set em(t){this._em=t},get em(){return this._em||this.primary.underline},set heading(t){this._heading=t},get heading(){return this._heading||this.muted.underline},set pending(t){this._pending=t},get pending(){return this._pending||this.primary},set submitted(t){this._submitted=t},get submitted(){return this._submitted||this.success},set cancelled(t){this._cancelled=t},get cancelled(){return this._cancelled||this.danger},set typing(t){this._typing=t},get typing(){return this._typing||this.dim},set placeholder(t){this._placeholder=t},get placeholder(){return this._placeholder||this.primary.dim},set highlight(t){this._highlight=t},get highlight(){return this._highlight||this.inverse}};ps.merge=(t={})=>{t.styles&&typeof t.styles.enabled=="boolean"&&($.enabled=t.styles.enabled),t.styles&&typeof t.styles.visible=="boolean"&&($.visible=t.styles.visible);let e=ds.merge({},ps,t.styles);delete e.merge;for(let r of Object.keys($))hasOwnProperty.call(e,r)||Reflect.defineProperty(e,r,{get:()=>$[r]});for(let r of Object.keys($.styles))hasOwnProperty.call(e,r)||Reflect.defineProperty(e,r,{get:()=>$[r]});return e};hh.exports=ps});var ph=m((Yw,dh)=>{"use strict";var ms=process.platform==="win32",pe=hi(),Ky=W(),gs={...pe.symbols,upDownDoubleArrow:"\u21D5",upDownDoubleArrow2:"\u2B0D",upDownArrow:"\u2195",asterisk:"*",asterism:"\u2042",bulletWhite:"\u25E6",electricArrow:"\u2301",ellipsisLarge:"\u22EF",ellipsisSmall:"\u2026",fullBlock:"\u2588",identicalTo:"\u2261",indicator:pe.symbols.check,leftAngle:"\u2039",mark:"\u203B",minus:"\u2212",multiplication:"\xD7",obelus:"\xF7",percent:"%",pilcrow:"\xB6",pilcrow2:"\u2761",pencilUpRight:"\u2710",pencilDownRight:"\u270E",pencilRight:"\u270F",plus:"+",plusMinus:"\xB1",pointRight:"\u261E",rightAngle:"\u203A",section:"\xA7",hexagon:{off:"\u2B21",on:"\u2B22",disabled:"\u2B22"},ballot:{on:"\u2611",off:"\u2610",disabled:"\u2612"},stars:{on:"\u2605",off:"\u2606",disabled:"\u2606"},folder:{on:"\u25BC",off:"\u25B6",disabled:"\u25B6"},prefix:{pending:pe.symbols.question,submitted:pe.symbols.check,cancelled:pe.symbols.cross},separator:{pending:pe.symbols.pointerSmall,submitted:pe.symbols.middot,cancelled:pe.symbols.middot},radio:{off:ms?"( )":"\u25EF",on:ms?"(*)":"\u25C9",disabled:ms?"(|)":"\u24BE"},numbers:["\u24EA","\u2460","\u2461","\u2462","\u2463","\u2464","\u2465","\u2466","\u2467","\u2468","\u2469","\u246A","\u246B","\u246C","\u246D","\u246E","\u246F","\u2470","\u2471","\u2472","\u2473","\u3251","\u3252","\u3253","\u3254","\u3255","\u3256","\u3257","\u3258","\u3259","\u325A","\u325B","\u325C","\u325D","\u325E","\u325F","\u32B1","\u32B2","\u32B3","\u32B4","\u32B5","\u32B6","\u32B7","\u32B8","\u32B9","\u32BA","\u32BB","\u32BC","\u32BD","\u32BE","\u32BF"]};gs.merge=t=>{let e=Ky.merge({},pe.symbols,gs,t.symbols);return delete e.merge,e};dh.exports=gs});var gh=m((Xw,mh)=>{"use strict";var Yy=fh(),Xy=ph(),Zy=W();mh.exports=t=>{t.options=Zy.merge({},t.options.theme,t.options),t.symbols=Xy.merge(t.options),t.styles=Yy.merge(t.options)}});var _h=m((vh,wh)=>{"use strict";var yh=process.env.TERM_PROGRAM==="Apple_Terminal",Qy=ce(),ys=W(),ie=wh.exports=vh,q="\x1B[",bh="\x07",bs=!1,Re=ie.code={bell:bh,beep:bh,beginning:`${q}G`,down:`${q}J`,esc:q,getPosition:`${q}6n`,hide:`${q}?25l`,line:`${q}2K`,lineEnd:`${q}K`,lineStart:`${q}1K`,restorePosition:q+(yh?"8":"u"),savePosition:q+(yh?"7":"s"),screen:`${q}2J`,show:`${q}?25h`,up:`${q}1J`},Ue=ie.cursor={get hidden(){return bs},hide(){return bs=!0,Re.hide},show(){return bs=!1,Re.show},forward:(t=1)=>`${q}${t}C`,backward:(t=1)=>`${q}${t}D`,nextLine:(t=1)=>`${q}E`.repeat(t),prevLine:(t=1)=>`${q}F`.repeat(t),up:(t=1)=>t?`${q}${t}A`:"",down:(t=1)=>t?`${q}${t}B`:"",right:(t=1)=>t?`${q}${t}C`:"",left:(t=1)=>t?`${q}${t}D`:"",to(t,e){return e?`${q}${e+1};${t+1}H`:`${q}${t+1}G`},move(t=0,e=0){let r="";return r+=t<0?Ue.left(-t):t>0?Ue.right(t):"",r+=e<0?Ue.up(-e):e>0?Ue.down(e):"",r},strLen(t){for(var e=0,r=t.length,i=-1,n=0;n<r;n++)i=t.charCodeAt(n),i>=0&&i<=128?e+=1:e+=2;return e},restore(t={}){let{after:e,cursor:r,initial:i,input:n,prompt:s,size:a,value:o}=t;if(i=ys.isPrimitive(i)?String(i):"",n=ys.isPrimitive(n)?String(n):"",o=ys.isPrimitive(o)?String(o):"",a){let l=ie.cursor.up(a)+ie.cursor.to(this.strLen(s)),u=n.length-r;return u>0&&(l+=ie.cursor.left(u)),l}if(o||e){let l=!n&&i?-this.strLen(i):-this.strLen(n)+r;return e&&(l-=this.strLen(e)),n===""&&i&&!s.includes(i)&&(l+=this.strLen(i)),ie.cursor.move(l)}}},vs=ie.erase={screen:Re.screen,up:Re.up,down:Re.down,line:Re.line,lineEnd:Re.lineEnd,lineStart:Re.lineStart,lines(t){let e="";for(let r=0;r<t;r++)e+=ie.erase.line+(r<t-1?ie.cursor.up(1):"");return t&&(e+=ie.code.beginning),e}};ie.clear=(t="",e=process.stdout.columns)=>{if(!e)return vs.line+Ue.to(0);let r=s=>[...Qy(s)].length,i=t.split(/\r?\n/),n=0;for(let s of i)n+=1+Math.floor(Math.max(r(s)-1,0)/e);return(vs.line+Ue.prevLine()).repeat(n-1)+vs.line+Ue.to(0)}});var _t=m((Zw,Eh)=>{"use strict";var Jy=require("events"),xh=ce(),ws=hs(),eb=lh(),tb=ch(),rb=gh(),z=W(),Ve=_h(),_s=class t extends Jy{constructor(e={}){super(),this.name=e.name,this.type=e.type,this.options=e,rb(this),eb(this),this.state=new tb(this),this.initial=[e.initial,e.default].find(r=>r!=null),this.stdout=e.stdout||process.stdout,this.stdin=e.stdin||process.stdin,this.scale=e.scale||1,this.term=this.options.term||process.env.TERM_PROGRAM,this.margin=nb(this.options.margin),this.setMaxListeners(0),ib(this)}async keypress(e,r={}){this.keypressed=!0;let i=ws.action(e,ws(e,r),this.options.actions);this.state.keypress=i,this.emit("keypress",e,i),this.emit("state",this.state.clone());let n=this.options[i.action]||this[i.action]||this.dispatch;if(typeof n=="function")return await n.call(this,e,i);this.alert()}alert(){delete this.state.alert,this.options.show===!1?this.emit("alert"):this.stdout.write(Ve.code.beep)}cursorHide(){this.stdout.write(Ve.cursor.hide());let e=z.onExit(()=>this.cursorShow());this.on("close",()=>{this.cursorShow(),e()})}cursorShow(){this.stdout.write(Ve.cursor.show())}write(e){e&&(this.stdout&&this.state.show!==!1&&this.stdout.write(e),this.state.buffer+=e)}clear(e=0){let r=this.state.buffer;this.state.buffer="",!(!r&&!e||this.options.show===!1)&&this.stdout.write(Ve.cursor.down(e)+Ve.clear(r,this.width))}restore(){if(this.state.closed||this.options.show===!1)return;let{prompt:e,after:r,rest:i}=this.sections(),{cursor:n,initial:s="",input:a="",value:o=""}=this,l=this.state.size=i.length,u={after:r,cursor:n,initial:s,input:a,prompt:e,size:l,value:o},h=Ve.cursor.restore(u);h&&this.stdout.write(h)}sections(){let{buffer:e,input:r,prompt:i}=this.state;i=xh(i);let n=xh(e),s=n.indexOf(i),a=n.slice(0,s),l=n.slice(s).split(`
|
|
22
|
+
`)i.name="enter";else if(t===" ")i.name="tab";else if(t==="\b"||t==="\x7F"||t==="\x1B\x7F"||t==="\x1B\b")i.name="backspace",i.meta=t.charAt(0)==="\x1B";else if(t==="\x1B"||t==="\x1B\x1B")i.name="escape",i.meta=t.length===2;else if(t===" "||t==="\x1B ")i.name="space",i.meta=t.length===2;else if(t<="")i.name=String.fromCharCode(t.charCodeAt(0)+"a".charCodeAt(0)-1),i.ctrl=!0;else if(t.length===1&&t>="0"&&t<="9")i.name="number";else if(t.length===1&&t>="a"&&t<="z")i.name=t;else if(t.length===1&&t>="A"&&t<="Z")i.name=t.toLowerCase(),i.shift=!0;else if(r=Fy.exec(t))i.meta=!0,i.shift=/^[A-Z]$/.test(r[1]);else if(r=$y.exec(t)){let n=[...t];n[0]==="\x1B"&&n[1]==="\x1B"&&(i.option=!0);let s=[r[1],r[2],r[4],r[6]].filter(Boolean).join(""),a=(r[3]||r[5]||1)-1;i.ctrl=!!(a&4),i.meta=!!(a&10),i.shift=!!(a&1),i.code=s,i.name=Gy[s],i.shift=Wy(s)||i.shift,i.ctrl=Uy(s)||i.ctrl}return i};pi.listen=(t={},e)=>{let{stdin:r}=t;if(!r||r!==process.stdin&&!r.isTTY)throw new Error("Invalid stream passed");let i=sh.createInterface({terminal:!0,input:r});sh.emitKeypressEvents(r,i);let n=new Ly((o,l)=>e(o,pi(o,l),i)),s=r.isRaw;return r.isTTY&&r.setRawMode(!0),r.on("keypress",n.enqueue),i.resume(),()=>{r.isTTY&&r.setRawMode(s),r.removeListener("keypress",n.enqueue),n.destroy(),i.pause(),i.close()}};pi.action=(t,e,r)=>{let i={...Dy,...r};return e.ctrl?(e.action=i.ctrl[e.name],e):e.option&&i.option?(e.action=i.option[e.name],e):e.shift?(e.action=i.shift[e.name],e):(e.action=i.keys[e.name],e)};ah.exports=pi});var lh=m((zw,oh)=>{"use strict";oh.exports=t=>{t.timers=t.timers||{};let e=t.options.timers;if(e)for(let r of Object.keys(e)){let i=e[r];typeof i=="number"&&(i={interval:i}),Vy(t,r,i)}};function Vy(t,e,r={}){let i=t.timers[e]={name:e,start:Date.now(),ms:0,tick:0},n=r.interval||120;i.frames=r.frames||[],i.loading=!0;let s=setInterval(()=>{i.ms=Date.now()-i.start,i.tick++,t.render()},n);return i.stop=()=>{i.loading=!1,clearInterval(s)},Reflect.defineProperty(i,"interval",{value:s}),t.once("close",()=>i.stop()),i.stop}});var ch=m((Hw,uh)=>{"use strict";var{define:zy,width:Hy}=W(),fs=class{constructor(e){let r=e.options;zy(this,"_prompt",e),this.type=e.type,this.name=e.name,this.message="",this.header="",this.footer="",this.error="",this.hint="",this.input="",this.cursor=0,this.index=0,this.lines=0,this.tick=0,this.prompt="",this.buffer="",this.width=Hy(r.stdout||process.stdout),Object.assign(this,r),this.name=this.name||this.message,this.message=this.message||this.name,this.symbols=e.symbols,this.styles=e.styles,this.required=new Set,this.cancelled=!1,this.submitted=!1}clone(){let e={...this};return e.status=this.status,e.buffer=Buffer.from(e.buffer),delete e.clone,e}set color(e){this._color=e}get color(){let e=this.prompt.styles;if(this.cancelled)return e.cancelled;if(this.submitted)return e.submitted;let r=this._color||e[this.status];return typeof r=="function"?r:e.pending}set loading(e){this._loading=e}get loading(){return typeof this._loading=="boolean"?this._loading:this.loadingChoices?"choices":!1}get status(){return this.cancelled?"cancelled":this.submitted?"submitted":"pending"}};uh.exports=fs});var fh=m((Kw,hh)=>{"use strict";var ds=W(),$=hi(),ps={default:$.noop,noop:$.noop,set inverse(t){this._inverse=t},get inverse(){return this._inverse||ds.inverse(this.primary)},set complement(t){this._complement=t},get complement(){return this._complement||ds.complement(this.primary)},primary:$.cyan,success:$.green,danger:$.magenta,strong:$.bold,warning:$.yellow,muted:$.dim,disabled:$.gray,dark:$.dim.gray,underline:$.underline,set info(t){this._info=t},get info(){return this._info||this.primary},set em(t){this._em=t},get em(){return this._em||this.primary.underline},set heading(t){this._heading=t},get heading(){return this._heading||this.muted.underline},set pending(t){this._pending=t},get pending(){return this._pending||this.primary},set submitted(t){this._submitted=t},get submitted(){return this._submitted||this.success},set cancelled(t){this._cancelled=t},get cancelled(){return this._cancelled||this.danger},set typing(t){this._typing=t},get typing(){return this._typing||this.dim},set placeholder(t){this._placeholder=t},get placeholder(){return this._placeholder||this.primary.dim},set highlight(t){this._highlight=t},get highlight(){return this._highlight||this.inverse}};ps.merge=(t={})=>{t.styles&&typeof t.styles.enabled=="boolean"&&($.enabled=t.styles.enabled),t.styles&&typeof t.styles.visible=="boolean"&&($.visible=t.styles.visible);let e=ds.merge({},ps,t.styles);delete e.merge;for(let r of Object.keys($))hasOwnProperty.call(e,r)||Reflect.defineProperty(e,r,{get:()=>$[r]});for(let r of Object.keys($.styles))hasOwnProperty.call(e,r)||Reflect.defineProperty(e,r,{get:()=>$[r]});return e};hh.exports=ps});var ph=m((Yw,dh)=>{"use strict";var ms=process.platform==="win32",pe=hi(),Ky=W(),gs={...pe.symbols,upDownDoubleArrow:"\u21D5",upDownDoubleArrow2:"\u2B0D",upDownArrow:"\u2195",asterisk:"*",asterism:"\u2042",bulletWhite:"\u25E6",electricArrow:"\u2301",ellipsisLarge:"\u22EF",ellipsisSmall:"\u2026",fullBlock:"\u2588",identicalTo:"\u2261",indicator:pe.symbols.check,leftAngle:"\u2039",mark:"\u203B",minus:"\u2212",multiplication:"\xD7",obelus:"\xF7",percent:"%",pilcrow:"\xB6",pilcrow2:"\u2761",pencilUpRight:"\u2710",pencilDownRight:"\u270E",pencilRight:"\u270F",plus:"+",plusMinus:"\xB1",pointRight:"\u261E",rightAngle:"\u203A",section:"\xA7",hexagon:{off:"\u2B21",on:"\u2B22",disabled:"\u2B22"},ballot:{on:"\u2611",off:"\u2610",disabled:"\u2612"},stars:{on:"\u2605",off:"\u2606",disabled:"\u2606"},folder:{on:"\u25BC",off:"\u25B6",disabled:"\u25B6"},prefix:{pending:pe.symbols.question,submitted:pe.symbols.check,cancelled:pe.symbols.cross},separator:{pending:pe.symbols.pointerSmall,submitted:pe.symbols.middot,cancelled:pe.symbols.middot},radio:{off:ms?"( )":"\u25EF",on:ms?"(*)":"\u25C9",disabled:ms?"(|)":"\u24BE"},numbers:["\u24EA","\u2460","\u2461","\u2462","\u2463","\u2464","\u2465","\u2466","\u2467","\u2468","\u2469","\u246A","\u246B","\u246C","\u246D","\u246E","\u246F","\u2470","\u2471","\u2472","\u2473","\u3251","\u3252","\u3253","\u3254","\u3255","\u3256","\u3257","\u3258","\u3259","\u325A","\u325B","\u325C","\u325D","\u325E","\u325F","\u32B1","\u32B2","\u32B3","\u32B4","\u32B5","\u32B6","\u32B7","\u32B8","\u32B9","\u32BA","\u32BB","\u32BC","\u32BD","\u32BE","\u32BF"]};gs.merge=t=>{let e=Ky.merge({},pe.symbols,gs,t.symbols);return delete e.merge,e};dh.exports=gs});var gh=m((Xw,mh)=>{"use strict";var Yy=fh(),Xy=ph(),Zy=W();mh.exports=t=>{t.options=Zy.merge({},t.options.theme,t.options),t.symbols=Xy.merge(t.options),t.styles=Yy.merge(t.options)}});var _h=m((vh,wh)=>{"use strict";var yh=process.env.TERM_PROGRAM==="Apple_Terminal",Qy=ce(),ys=W(),ie=wh.exports=vh,q="\x1B[",bh="\x07",bs=!1,Re=ie.code={bell:bh,beep:bh,beginning:`${q}G`,down:`${q}J`,esc:q,getPosition:`${q}6n`,hide:`${q}?25l`,line:`${q}2K`,lineEnd:`${q}K`,lineStart:`${q}1K`,restorePosition:q+(yh?"8":"u"),savePosition:q+(yh?"7":"s"),screen:`${q}2J`,show:`${q}?25h`,up:`${q}1J`},We=ie.cursor={get hidden(){return bs},hide(){return bs=!0,Re.hide},show(){return bs=!1,Re.show},forward:(t=1)=>`${q}${t}C`,backward:(t=1)=>`${q}${t}D`,nextLine:(t=1)=>`${q}E`.repeat(t),prevLine:(t=1)=>`${q}F`.repeat(t),up:(t=1)=>t?`${q}${t}A`:"",down:(t=1)=>t?`${q}${t}B`:"",right:(t=1)=>t?`${q}${t}C`:"",left:(t=1)=>t?`${q}${t}D`:"",to(t,e){return e?`${q}${e+1};${t+1}H`:`${q}${t+1}G`},move(t=0,e=0){let r="";return r+=t<0?We.left(-t):t>0?We.right(t):"",r+=e<0?We.up(-e):e>0?We.down(e):"",r},strLen(t){for(var e=0,r=t.length,i=-1,n=0;n<r;n++)i=t.charCodeAt(n),i>=0&&i<=128?e+=1:e+=2;return e},restore(t={}){let{after:e,cursor:r,initial:i,input:n,prompt:s,size:a,value:o}=t;if(i=ys.isPrimitive(i)?String(i):"",n=ys.isPrimitive(n)?String(n):"",o=ys.isPrimitive(o)?String(o):"",a){let l=ie.cursor.up(a)+ie.cursor.to(this.strLen(s)),u=n.length-r;return u>0&&(l+=ie.cursor.left(u)),l}if(o||e){let l=!n&&i?-this.strLen(i):-this.strLen(n)+r;return e&&(l-=this.strLen(e)),n===""&&i&&!s.includes(i)&&(l+=this.strLen(i)),ie.cursor.move(l)}}},vs=ie.erase={screen:Re.screen,up:Re.up,down:Re.down,line:Re.line,lineEnd:Re.lineEnd,lineStart:Re.lineStart,lines(t){let e="";for(let r=0;r<t;r++)e+=ie.erase.line+(r<t-1?ie.cursor.up(1):"");return t&&(e+=ie.code.beginning),e}};ie.clear=(t="",e=process.stdout.columns)=>{if(!e)return vs.line+We.to(0);let r=s=>[...Qy(s)].length,i=t.split(/\r?\n/),n=0;for(let s of i)n+=1+Math.floor(Math.max(r(s)-1,0)/e);return(vs.line+We.prevLine()).repeat(n-1)+vs.line+We.to(0)}});var _t=m((Zw,Eh)=>{"use strict";var Jy=require("events"),xh=ce(),ws=hs(),eb=lh(),tb=ch(),rb=gh(),z=W(),Ue=_h(),_s=class t extends Jy{constructor(e={}){super(),this.name=e.name,this.type=e.type,this.options=e,rb(this),eb(this),this.state=new tb(this),this.initial=[e.initial,e.default].find(r=>r!=null),this.stdout=e.stdout||process.stdout,this.stdin=e.stdin||process.stdin,this.scale=e.scale||1,this.term=this.options.term||process.env.TERM_PROGRAM,this.margin=nb(this.options.margin),this.setMaxListeners(0),ib(this)}async keypress(e,r={}){this.keypressed=!0;let i=ws.action(e,ws(e,r),this.options.actions);this.state.keypress=i,this.emit("keypress",e,i),this.emit("state",this.state.clone());let n=this.options[i.action]||this[i.action]||this.dispatch;if(typeof n=="function")return await n.call(this,e,i);this.alert()}alert(){delete this.state.alert,this.options.show===!1?this.emit("alert"):this.stdout.write(Ue.code.beep)}cursorHide(){this.stdout.write(Ue.cursor.hide());let e=z.onExit(()=>this.cursorShow());this.on("close",()=>{this.cursorShow(),e()})}cursorShow(){this.stdout.write(Ue.cursor.show())}write(e){e&&(this.stdout&&this.state.show!==!1&&this.stdout.write(e),this.state.buffer+=e)}clear(e=0){let r=this.state.buffer;this.state.buffer="",!(!r&&!e||this.options.show===!1)&&this.stdout.write(Ue.cursor.down(e)+Ue.clear(r,this.width))}restore(){if(this.state.closed||this.options.show===!1)return;let{prompt:e,after:r,rest:i}=this.sections(),{cursor:n,initial:s="",input:a="",value:o=""}=this,l=this.state.size=i.length,u={after:r,cursor:n,initial:s,input:a,prompt:e,size:l,value:o},h=Ue.cursor.restore(u);h&&this.stdout.write(h)}sections(){let{buffer:e,input:r,prompt:i}=this.state;i=xh(i);let n=xh(e),s=n.indexOf(i),a=n.slice(0,s),l=n.slice(s).split(`
|
|
23
23
|
`),u=l[0],h=l[l.length-1],f=(i+(r?" "+r:"")).length,d=f<u.length?u.slice(f+1):"";return{header:a,prompt:u,after:d,rest:l.slice(1),last:h}}async submit(){this.state.submitted=!0,this.state.validating=!0,this.options.onSubmit&&await this.options.onSubmit.call(this,this.name,this.value,this);let e=this.state.error||await this.validate(this.value,this.state);if(e!==!0){let r=`
|
|
24
24
|
`+this.symbols.pointer+" ";typeof e=="string"?r+=e.trim():r+="Invalid input",this.state.error=`
|
|
25
|
-
`+this.styles.danger(r),this.state.submitted=!1,await this.render(),await this.alert(),this.state.validating=!1,this.state.error=void 0;return}this.state.validating=!1,await this.render(),await this.close(),this.value=await this.result(this.value),this.emit("submit",this.value)}async cancel(e){this.state.cancelled=this.state.submitted=!0,await this.render(),await this.close(),typeof this.options.onCancel=="function"&&await this.options.onCancel.call(this,this.name,this.value,this),this.emit("cancel",await this.error(e))}async close(){this.state.closed=!0;try{let e=this.sections(),r=Math.ceil(e.prompt.length/this.width);e.rest&&this.write(
|
|
25
|
+
`+this.styles.danger(r),this.state.submitted=!1,await this.render(),await this.alert(),this.state.validating=!1,this.state.error=void 0;return}this.state.validating=!1,await this.render(),await this.close(),this.value=await this.result(this.value),this.emit("submit",this.value)}async cancel(e){this.state.cancelled=this.state.submitted=!0,await this.render(),await this.close(),typeof this.options.onCancel=="function"&&await this.options.onCancel.call(this,this.name,this.value,this),this.emit("cancel",await this.error(e))}async close(){this.state.closed=!0;try{let e=this.sections(),r=Math.ceil(e.prompt.length/this.width);e.rest&&this.write(Ue.cursor.down(e.rest.length)),this.write(`
|
|
26
26
|
`.repeat(r))}catch{}this.emit("close")}start(){!this.stop&&this.options.show!==!1&&(this.stop=ws.listen(this,this.keypress.bind(this)),this.once("close",this.stop),this.emit("start",this))}async skip(){return this.skipped=this.options.skip===!0,typeof this.options.skip=="function"&&(this.skipped=await this.options.skip.call(this,this.name,this.value)),this.skipped}async initialize(){let{format:e,options:r,result:i}=this;if(this.format=()=>e.call(this,this.value),this.result=()=>i.call(this,this.value),typeof r.initial=="function"&&(this.initial=await r.initial.call(this,this)),typeof r.onRun=="function"&&await r.onRun.call(this,this),typeof r.onSubmit=="function"){let n=r.onSubmit.bind(this),s=this.submit.bind(this);delete this.options.onSubmit,this.submit=async()=>(await n(this.name,this.value,this),s())}await this.start(),await this.render()}render(){throw new Error("expected prompt to have a custom render method")}run(){return new Promise(async(e,r)=>{if(this.once("submit",e),this.once("cancel",r),await this.skip())return this.render=()=>{},this.submit();await this.initialize(),this.emit("run")})}async element(e,r,i){let{options:n,state:s,symbols:a,timers:o}=this,l=o&&o[e];s.timer=l;let u=n[e]||s[e]||a[e],h=r&&r[e]!=null?r[e]:await u;if(h==="")return h;let c=await this.resolve(h,s,r,i);return!c&&r&&r[e]?this.resolve(u,s,r,i):c}async prefix(){let e=await this.element("prefix")||this.symbols,r=this.timers&&this.timers.prefix,i=this.state;return i.timer=r,z.isObject(e)&&(e=e[i.status]||e.pending),z.hasColor(e)?e:(this.styles[i.status]||this.styles.pending)(e)}async message(){let e=await this.element("message");return z.hasColor(e)?e:this.styles.strong(e)}async separator(){let e=await this.element("separator")||this.symbols,r=this.timers&&this.timers.separator,i=this.state;i.timer=r;let n=e[i.status]||e.pending||i.separator,s=await this.resolve(n,i);return z.isObject(s)&&(s=s[i.status]||s.pending),z.hasColor(s)?s:this.styles.muted(s)}async pointer(e,r){let i=await this.element("pointer",e,r);if(typeof i=="string"&&z.hasColor(i))return i;if(i){let n=this.styles,s=this.index===r,a=s?n.primary:u=>u,o=await this.resolve(i[s?"on":"off"]||i,this.state),l=z.hasColor(o)?o:a(o);return s?l:" ".repeat(o.length)}}async indicator(e,r){let i=await this.element("indicator",e,r);if(typeof i=="string"&&z.hasColor(i))return i;if(i){let n=this.styles,s=e.enabled===!0,a=s?n.success:n.dark,o=i[s?"on":"off"]||i;return z.hasColor(o)?o:a(o)}return""}body(){return null}footer(){if(this.state.status==="pending")return this.element("footer")}header(){if(this.state.status==="pending")return this.element("header")}async hint(){if(this.state.status==="pending"&&!this.isValue(this.state.input)){let e=await this.element("hint");return z.hasColor(e)?e:this.styles.muted(e)}}error(e){return this.state.submitted?"":e||this.state.error}format(e){return e}result(e){return e}validate(e){return this.options.required===!0?this.isValue(e):!0}isValue(e){return e!=null&&e!==""}resolve(e,...r){return z.resolve(this,e,...r)}get base(){return t.prototype}get style(){return this.styles[this.state.status]}get height(){return this.options.rows||z.height(this.stdout,25)}get width(){return this.options.columns||z.width(this.stdout,80)}get size(){return{width:this.width,height:this.height}}set cursor(e){this.state.cursor=e}get cursor(){return this.state.cursor}set input(e){this.state.input=e}get input(){return this.state.input}set value(e){this.state.value=e}get value(){let{input:e,value:r}=this.state,i=[r,e].find(this.isValue.bind(this));return this.isValue(i)?i:this.initial}static get prompt(){return e=>new this(e).run()}};function ib(t){let e=n=>t[n]===void 0||typeof t[n]=="function",r=["actions","choices","initial","margin","roles","styles","symbols","theme","timers","value"],i=["body","footer","error","header","hint","indicator","message","prefix","separator","skip"];for(let n of Object.keys(t.options)){if(r.includes(n)||/^on[A-Z]/.test(n))continue;let s=t.options[n];typeof s=="function"&&e(n)?i.includes(n)||(t[n]=s.bind(t)):typeof t[n]!="function"&&(t[n]=s)}}function nb(t){typeof t=="number"&&(t=[t,t,t,t]);let e=[].concat(t||[]),r=n=>n%2===0?`
|
|
27
27
|
`:" ",i=[];for(let n=0;n<4;n++){let s=r(n);e[n]?i.push(s.repeat(e[n])):i.push("")}return i}Eh.exports=_s});var Ch=m((Qw,Oh)=>{"use strict";var sb=W(),Sh={default(t,e){return e},checkbox(t,e){throw new Error("checkbox role is not implemented yet")},editable(t,e){throw new Error("editable role is not implemented yet")},expandable(t,e){throw new Error("expandable role is not implemented yet")},heading(t,e){return e.disabled="",e.indicator=[e.indicator," "].find(r=>r!=null),e.message=e.message||"",e},input(t,e){throw new Error("input role is not implemented yet")},option(t,e){return Sh.default(t,e)},radio(t,e){throw new Error("radio role is not implemented yet")},separator(t,e){return e.disabled="",e.indicator=[e.indicator," "].find(r=>r!=null),e.message=e.message||t.symbols.line.repeat(5),e},spacer(t,e){return e}};Oh.exports=(t,e={})=>{let r=sb.merge({},Sh,e.roles);return r[t]||r.default}});var Xt=m((Jw,Ah)=>{"use strict";var ab=ce(),ob=_t(),lb=Ch(),mi=W(),{reorder:xs,scrollUp:ub,scrollDown:cb,isObject:kh,swap:hb}=mi,Es=class extends ob{constructor(e){super(e),this.cursorHide(),this.maxSelected=e.maxSelected||1/0,this.multiple=e.multiple||!1,this.initial=e.initial||0,this.delay=e.delay||0,this.longest=0,this.num=""}async initialize(){typeof this.options.initial=="function"&&(this.initial=await this.options.initial.call(this)),await this.reset(!0),await super.initialize()}async reset(){let{choices:e,initial:r,autofocus:i,suggest:n}=this.options;if(this.state._choices=[],this.state.choices=[],this.choices=await Promise.all(await this.toChoices(e)),this.choices.forEach(s=>s.enabled=!1),typeof n!="function"&&this.selectable.length===0)throw new Error("At least one choice must be selectable");kh(r)&&(r=Object.keys(r)),Array.isArray(r)?(i!=null&&(this.index=this.findIndex(i)),r.forEach(s=>this.enable(this.find(s))),await this.render()):(i!=null&&(r=i),typeof r=="string"&&(r=this.findIndex(r)),typeof r=="number"&&r>-1&&(this.index=Math.max(0,Math.min(r,this.choices.length)),this.enable(this.find(this.index)))),this.isDisabled(this.focused)&&await this.down()}async toChoices(e,r){this.state.loadingChoices=!0;let i=[],n=0,s=async(a,o)=>{typeof a=="function"&&(a=await a.call(this)),a instanceof Promise&&(a=await a);for(let l=0;l<a.length;l++){let u=a[l]=await this.toChoice(a[l],n++,o);i.push(u),u.choices&&await s(u.choices,u)}return i};return s(e,r).then(a=>(this.state.loadingChoices=!1,a))}async toChoice(e,r,i){if(typeof e=="function"&&(e=await e.call(this,this)),e instanceof Promise&&(e=await e),typeof e=="string"&&(e={name:e}),e.normalized)return e;e.normalized=!0;let n=e.value;if(e=lb(e.role,this.options)(this,e),typeof e.disabled=="string"&&!e.hint&&(e.hint=e.disabled,e.disabled=!0),e.disabled===!0&&e.hint==null&&(e.hint="(disabled)"),e.index!=null)return e;e.name=e.name||e.key||e.title||e.value||e.message,e.message=e.message||e.name||"",e.value=[e.value,e.name].find(this.isValue.bind(this)),e.input="",e.index=r,e.cursor=0,mi.define(e,"parent",i),e.level=i?i.level+1:1,e.indent==null&&(e.indent=i?i.indent+" ":e.indent||""),e.path=i?i.path+"."+e.name:e.name,e.enabled=!!(this.multiple&&!this.isDisabled(e)&&(e.enabled||this.isSelected(e))),this.isDisabled(e)||(this.longest=Math.max(this.longest,ab(e.message).length));let a={...e};return e.reset=(o=a.input,l=a.value)=>{for(let u of Object.keys(a))e[u]=a[u];e.input=o,e.value=l},n==null&&typeof e.initial=="function"&&(e.input=await e.initial.call(this,this.state,e,r)),e}async onChoice(e,r){this.emit("choice",e,r,this),typeof e.onChoice=="function"&&await e.onChoice.call(this,this.state,e,r)}async addChoice(e,r,i){let n=await this.toChoice(e,r,i);return this.choices.push(n),this.index=this.choices.length-1,this.limit=this.choices.length,n}async newItem(e,r,i){let n={name:"New choice name?",editable:!0,newChoice:!0,...e},s=await this.addChoice(n,r,i);return s.updateChoice=()=>{delete s.newChoice,s.name=s.message=s.input,s.input="",s.cursor=0},this.render()}indent(e){return e.indent==null?e.level>1?" ".repeat(e.level-1):"":e.indent}dispatch(e,r){if(this.multiple&&this[r.name])return this[r.name]();this.alert()}focus(e,r){return typeof r!="boolean"&&(r=e.enabled),r&&!e.enabled&&this.selected.length>=this.maxSelected?this.alert():(this.index=e.index,e.enabled=r&&!this.isDisabled(e),e)}space(){if(!this.multiple)return this.alert();if(this.focused)return this.toggle(this.focused),this.render()}a(){if(this.maxSelected<this.choices.length)return this.alert();let e=this.selectable.every(r=>r.enabled);return this.choices.forEach(r=>r.enabled=!e),this.render()}i(){return this.choices.length-this.selected.length>this.maxSelected?this.alert():(this.choices.forEach(e=>e.enabled=!e.enabled),this.render())}g(){if(!this.choices.some(r=>!!r.parent))return this.a();let e=this.focused;return this.toggle(e.parent&&!e.choices?e.parent:e),this.render()}toggle(e,r){if(!e.enabled&&this.selected.length>=this.maxSelected)return this.alert();typeof r!="boolean"&&(r=!e.enabled),e.enabled=r,e.choices&&e.choices.forEach(n=>this.toggle(n,r));let i=e.parent;for(;i;){let n=i.choices.filter(s=>this.isDisabled(s));i.enabled=n.every(s=>s.enabled===!0),i=i.parent}return Rh(this,this.choices),this.emit("toggle",e,this),e}enable(e){return this.selected.length>=this.maxSelected?this.alert():(e.enabled=!this.isDisabled(e),e.choices&&e.choices.forEach(this.enable.bind(this)),e)}disable(e){return e.enabled=!1,e.choices&&e.choices.forEach(this.disable.bind(this)),e}number(e){this.num+=e;let r=i=>{let n=Number(i);if(n>this.choices.length-1)return this.alert();let s=this.focused,a=this.choices.find(o=>n===o.index);if(!a.enabled&&this.selected.length>=this.maxSelected)return this.alert();if(this.visible.indexOf(a)===-1){let o=xs(this.choices),l=o.indexOf(a);if(s.index>l){let u=o.slice(l,l+this.limit),h=o.filter(c=>!u.includes(c));this.choices=u.concat(h)}else{let u=l-this.limit+1;this.choices=o.slice(u).concat(o.slice(0,u))}}return this.index=this.choices.indexOf(a),this.toggle(this.focused),this.render()};return clearTimeout(this.numberTimeout),new Promise(i=>{let n=this.choices.length,s=this.num,a=(o=!1,l)=>{clearTimeout(this.numberTimeout),o&&(l=r(s)),this.num="",i(l)};if(s==="0"||s.length===1&&+(s+"0")>n)return a(!0);if(Number(s)>n)return a(!1,this.alert());this.numberTimeout=setTimeout(()=>a(!0),this.delay)})}home(){return this.choices=xs(this.choices),this.index=0,this.render()}end(){let e=this.choices.length-this.limit,r=xs(this.choices);return this.choices=r.slice(e).concat(r.slice(0,e)),this.index=this.limit-1,this.render()}first(){return this.index=0,this.render()}last(){return this.index=this.visible.length-1,this.render()}prev(){return this.visible.length<=1?this.alert():this.up()}next(){return this.visible.length<=1?this.alert():this.down()}right(){return this.cursor>=this.input.length?this.alert():(this.cursor++,this.render())}left(){return this.cursor<=0?this.alert():(this.cursor--,this.render())}up(){let e=this.choices.length,r=this.visible.length,i=this.index;return this.options.scroll===!1&&i===0?this.alert():e>r&&i===0?this.scrollUp():(this.index=(i-1%e+e)%e,this.isDisabled()&&!this.allChoicesAreDisabled()?this.up():this.render())}down(){let e=this.choices.length,r=this.visible.length,i=this.index;return this.options.scroll===!1&&i===r-1?this.alert():e>r&&i===r-1?this.scrollDown():(this.index=(i+1)%e,this.isDisabled()&&!this.allChoicesAreDisabled()?this.down():this.render())}scrollUp(e=0){return this.choices=ub(this.choices),this.index=e,this.isDisabled()?this.up():this.render()}scrollDown(e=this.visible.length-1){return this.choices=cb(this.choices),this.index=e,this.isDisabled()?this.down():this.render()}async shiftUp(){if(this.options.sort===!0){this.sorting=!0,this.swap(this.index-1),await this.up(),this.sorting=!1;return}return this.scrollUp(this.index)}async shiftDown(){if(this.options.sort===!0){this.sorting=!0,this.swap(this.index+1),await this.down(),this.sorting=!1;return}return this.scrollDown(this.index)}pageUp(){return this.visible.length<=1?this.alert():(this.limit=Math.max(this.limit-1,0),this.index=Math.min(this.limit-1,this.index),this._limit=this.limit,this.isDisabled()?this.up():this.render())}pageDown(){return this.visible.length>=this.choices.length?this.alert():(this.index=Math.max(0,this.index),this.limit=Math.min(this.limit+1,this.choices.length),this._limit=this.limit,this.isDisabled()?this.down():this.render())}swap(e){hb(this.choices,this.index,e)}allChoicesAreDisabled(e=this.choices){return e.every(r=>this.isDisabled(r))}isDisabled(e=this.focused){return e&&["disabled","collapsed","hidden","completing","readonly"].some(i=>e[i]===!0)?!0:e&&e.role==="heading"}isEnabled(e=this.focused){if(Array.isArray(e))return e.every(r=>this.isEnabled(r));if(e.choices){let r=e.choices.filter(i=>!this.isDisabled(i));return e.enabled&&r.every(i=>this.isEnabled(i))}return e.enabled&&!this.isDisabled(e)}isChoice(e,r){return e.name===r||e.index===Number(r)}isSelected(e){return Array.isArray(this.initial)?this.initial.some(r=>this.isChoice(e,r)):this.isChoice(e,this.initial)}map(e=[],r="value"){return[].concat(e||[]).reduce((i,n)=>(i[n]=this.find(n,r),i),{})}filter(e,r){let n=typeof e=="function"?e:(o,l)=>[o.name,l].includes(e),a=(this.options.multiple?this.state._choices:this.choices).filter(n);return r?a.map(o=>o[r]):a}find(e,r){if(kh(e))return r?e[r]:e;let n=typeof e=="function"?e:(a,o)=>[a.name,o].includes(e),s=this.choices.find(n);if(s)return r?s[r]:s}findIndex(e){return this.choices.indexOf(this.find(e))}async submit(){let e=this.focused;if(!e)return this.alert();if(e.newChoice)return e.input?(e.updateChoice(),this.render()):this.alert();if(this.choices.some(a=>a.newChoice))return this.alert();let{reorder:r,sort:i}=this.options,n=this.multiple===!0,s=this.selected;return s===void 0?this.alert():(Array.isArray(s)&&r!==!1&&i!==!0&&(s=mi.reorder(s)),this.value=n?s.map(a=>a.name):s.name,super.submit())}set choices(e=[]){this.state._choices=this.state._choices||[],this.state.choices=e;for(let r of e)this.state._choices.some(i=>i.name===r.name)||this.state._choices.push(r);if(!this._initial&&this.options.initial){this._initial=!0;let r=this.initial;if(typeof r=="string"||typeof r=="number"){let i=this.find(r);i&&(this.initial=i.index,this.focus(i,!0))}}}get choices(){return Rh(this,this.state.choices||[])}set visible(e){this.state.visible=e}get visible(){return(this.state.visible||this.choices).slice(0,this.limit)}set limit(e){this.state.limit=e}get limit(){let{state:e,options:r,choices:i}=this,n=e.limit||this._limit||r.limit||i.length;return Math.min(n,this.height)}set value(e){super.value=e}get value(){return typeof super.value!="string"&&super.value===this.initial?this.input:super.value}set index(e){this.state.index=e}get index(){return Math.max(0,this.state?this.state.index:0)}get enabled(){return this.filter(this.isEnabled.bind(this))}get focused(){let e=this.choices[this.index];return e&&this.state.submitted&&this.multiple!==!0&&(e.enabled=!0),e}get selectable(){return this.choices.filter(e=>!this.isDisabled(e))}get selected(){return this.multiple?this.enabled:this.focused}};function Rh(t,e){if(e instanceof Promise)return e;if(typeof e=="function"){if(mi.isAsyncFn(e))return e;e=e.call(t,t)}for(let r of e){if(Array.isArray(r.choices)){let i=r.choices.filter(n=>!t.isDisabled(n));r.enabled=i.every(n=>n.enabled===!0)}t.isDisabled(r)===!0&&delete r.enabled}return e}Ah.exports=Es});var Ae=m((e_,Th)=>{"use strict";var fb=Xt(),Ss=W(),Os=class extends fb{constructor(e){super(e),this.emptyError=this.options.emptyError||"No items were selected"}async dispatch(e,r){if(this.multiple)return this[r.name]?await this[r.name](e,r):await super.dispatch(e,r);this.alert()}separator(){if(this.options.separator)return super.separator();let e=this.styles.muted(this.symbols.ellipsis);return this.state.submitted?super.separator():e}pointer(e,r){return!this.multiple||this.options.pointer?super.pointer(e,r):""}indicator(e,r){return this.multiple?super.indicator(e,r):""}choiceMessage(e,r){let i=this.resolve(e.message,this.state,e,r);return e.role==="heading"&&!Ss.hasColor(i)&&(i=this.styles.strong(i)),this.resolve(i,this.state,e,r)}choiceSeparator(){return":"}async renderChoice(e,r){await this.onChoice(e,r);let i=this.index===r,n=await this.pointer(e,r),s=await this.indicator(e,r)+(e.pad||""),a=await this.resolve(e.hint,this.state,e,r);a&&!Ss.hasColor(a)&&(a=this.styles.muted(a));let o=this.indent(e),l=await this.choiceMessage(e,r),u=()=>[this.margin[3],o+n+s,l,this.margin[1],a].filter(Boolean).join(" ");return e.role==="heading"?u():e.disabled?(Ss.hasColor(l)||(l=this.styles.disabled(l)),u()):(i&&(l=this.styles.em(l)),u())}async renderChoices(){if(this.state.loading==="choices")return this.styles.warning("Loading choices");if(this.state.submitted)return"";let e=this.visible.map(async(s,a)=>await this.renderChoice(s,a)),r=await Promise.all(e);r.length||r.push(this.styles.danger("No matching choices"));let i=this.margin[0]+r.join(`
|
|
28
28
|
`),n;return this.options.choicesHeader&&(n=await this.resolve(this.options.choicesHeader,this.state)),[n,i].filter(Boolean).join(`
|
|
29
29
|
`)}format(){return!this.state.submitted||this.state.cancelled?"":Array.isArray(this.selected)?this.selected.map(e=>this.styles.primary(e.name)).join(", "):this.styles.primary(this.selected.name)}async render(){let{submitted:e,size:r}=this.state,i="",n=await this.header(),s=await this.prefix(),a=await this.separator(),o=await this.message();this.options.promptLine!==!1&&(i=[s,o,a,""].join(" "),this.state.prompt=i);let l=await this.format(),u=await this.error()||await this.hint(),h=await this.renderChoices(),c=await this.footer();l&&(i+=l),u&&!i.includes(u)&&(i+=" "+u),e&&!l&&!h.trim()&&this.multiple&&this.emptyError!=null&&(i+=this.styles.danger(this.emptyError)),this.clear(r),this.write([n,i,h,c].filter(Boolean).join(`
|
|
30
30
|
`)),this.write(this.margin[2]),this.restore()}};Th.exports=Os});var jh=m((t_,qh)=>{"use strict";var db=Ae(),pb=(t,e)=>{let r=t?new RegExp(t,"ig"):/$^/;return i=>t?i.replace(r,n=>e(n)):i},Cs=class extends db{constructor(e){super(e),this.cursorShow()}moveCursor(e){this.state.cursor+=e}dispatch(e){return this.append(e)}space(e){return this.options.multiple?super.space(e):this.append(e)}append(e){let{cursor:r,input:i}=this.state;return this.input=i.slice(0,r)+e+i.slice(r),this.moveCursor(1),this.complete()}delete(){let{cursor:e,input:r}=this.state;return r?(this.input=r.slice(0,e-1)+r.slice(e),this.moveCursor(-1),this.complete()):this.alert()}deleteForward(){let{cursor:e,input:r}=this.state;return r[e]===void 0?this.alert():(this.input=`${r}`.slice(0,e)+`${r}`.slice(e+1),this.complete())}number(e){return this.append(e)}async complete(){this.completing=!0,this.choices=await this.suggest(this.input,this.state._choices),this.state.limit=void 0,this.index=Math.min(Math.max(this.visible.length-1,0),this.index),await this.render(),this.completing=!1}suggest(e=this.input,r=this.state._choices){if(typeof this.options.suggest=="function")return this.options.suggest.call(this,e,r);let i=e.toLowerCase();return r.filter(n=>n.message.toLowerCase().includes(i))}pointer(){return""}format(){if(!this.focused)return this.input;if(this.options.multiple&&this.state.submitted)return this.selected.map(e=>this.styles.primary(e.message)).join(", ");if(this.state.submitted){let e=this.value=this.input=this.focused.value;return this.styles.primary(e)}return this.input}async render(){if(this.state.status!=="pending")return super.render();let e=this.options.highlight||this.styles.complement,r=(s,a)=>s&&(e.stack?e(s):e.call(this,s)),i=pb(this.input,r),n=this.choices;this.choices=n.map(s=>({...s,message:i(s.message)})),await super.render(),this.choices=n}submit(){return this.options.multiple&&(this.value=this.selected.map(e=>e.name)),super.submit()}};qh.exports=Cs});var Rs=m((r_,Mh)=>{"use strict";var ks=W();Mh.exports=(t,e={})=>{t.cursorHide();let{input:r="",initial:i="",pos:n,showCursor:s=!0,color:a}=e,o=a||t.styles.placeholder,l=ks.inverse(t.styles.primary),u=g=>l(t.styles.black(g)),h=r,c=" ",f=u(c);if(t.blink&&t.blink.off===!0&&(u=g=>g,f=""),s&&n===0&&i===""&&r==="")return u(c);if(s&&n===0&&(r===i||r===""))return u(i[0])+o(i.slice(1));i=ks.isPrimitive(i)?`${i}`:"",r=ks.isPrimitive(r)?`${r}`:"";let d=i&&i.startsWith(r)&&i!==r,p=d?u(i[r.length]):f;if(n!==r.length&&s===!0&&(h=r.slice(0,n)+u(r[n])+r.slice(n+1),p=""),s===!1&&(p=""),d){let g=t.styles.unstyle(h+p);return h+p+o(i.slice(g.length))}return h+p}});var gi=m((i_,Ph)=>{"use strict";var mb=ce(),gb=Ae(),yb=Rs(),As=class extends gb{constructor(e){super({...e,multiple:!0}),this.type="form",this.initial=this.options.initial,this.align=[this.options.align,"right"].find(r=>r!=null),this.emptyError="",this.values={}}async reset(e){return await super.reset(),e===!0&&(this._index=this.index),this.index=this._index,this.values={},this.choices.forEach(r=>r.reset&&r.reset()),this.render()}dispatch(e){return!!e&&this.append(e)}append(e){let r=this.focused;if(!r)return this.alert();let{cursor:i,input:n}=r;return r.value=r.input=n.slice(0,i)+e+n.slice(i),r.cursor++,this.render()}delete(){let e=this.focused;if(!e||e.cursor<=0)return this.alert();let{cursor:r,input:i}=e;return e.value=e.input=i.slice(0,r-1)+i.slice(r),e.cursor--,this.render()}deleteForward(){let e=this.focused;if(!e)return this.alert();let{cursor:r,input:i}=e;if(i[r]===void 0)return this.alert();let n=`${i}`.slice(0,r)+`${i}`.slice(r+1);return e.value=e.input=n,this.render()}right(){let e=this.focused;return e?e.cursor>=e.input.length?this.alert():(e.cursor++,this.render()):this.alert()}left(){let e=this.focused;return e?e.cursor<=0?this.alert():(e.cursor--,this.render()):this.alert()}space(e,r){return this.dispatch(e,r)}number(e,r){return this.dispatch(e,r)}next(){let e=this.focused;if(!e)return this.alert();let{initial:r,input:i}=e;return r&&r.startsWith(i)&&i!==r?(e.value=e.input=r,e.cursor=e.value.length,this.render()):super.next()}prev(){let e=this.focused;return e?e.cursor===0?super.prev():(e.value=e.input="",e.cursor=0,this.render()):this.alert()}separator(){return""}format(e){return this.state.submitted?"":super.format(e)}pointer(){return""}indicator(e){return e.input?"\u29BF":"\u2299"}async choiceSeparator(e,r){let i=await this.resolve(e.separator,this.state,e,r)||":";return i?" "+this.styles.disabled(i):""}async renderChoice(e,r){await this.onChoice(e,r);let{state:i,styles:n}=this,{cursor:s,initial:a="",name:o,input:l=""}=e,{muted:u,submitted:h,primary:c,danger:f}=n,d=this.index===r,p=e.validate||(()=>!0),g=await this.choiceSeparator(e,r),b=e.message;this.align==="right"&&(b=b.padStart(this.longest+1," ")),this.align==="left"&&(b=b.padEnd(this.longest+1," "));let y=this.values[o]=l||a,w=l?"success":"dark";await p.call(e,y,this.state)!==!0&&(w="danger");let _=n[w],x=_(await this.indicator(e,r))+(e.pad||""),C=this.indent(e),N=()=>[C,x,b+g,l].filter(Boolean).join(" ");if(i.submitted)return b=mb(b),l=h(l),N();if(e.format)l=await e.format.call(this,l,e,r);else{let le=this.styles.muted;l=yb(this,{input:l,initial:a,pos:s,showCursor:d,color:le})}return this.isValue(l)||(l=this.styles.muted(this.symbols.ellipsis)),e.result&&(this.values[o]=await e.result.call(this,y,e,r)),d&&(b=c(b)),e.error?l+=(l?" ":"")+f(e.error.trim()):e.hint&&(l+=(l?" ":"")+u(e.hint.trim())),N()}async submit(){return this.value=this.values,super.base.submit.call(this)}};Ph.exports=As});var Ts=m((n_,Nh)=>{"use strict";var bb=gi(),vb=()=>{throw new Error("expected prompt to have a custom authenticate method")},Ih=(t=vb)=>{class e extends bb{constructor(i){super(i)}async submit(){this.value=await t.call(this,this.values,this.state),super.base.submit.call(this)}static create(i){return Ih(i)}}return e};Nh.exports=Ih()});var Lh=m((s_,Dh)=>{"use strict";var wb=Ts();function _b(t,e){return t.username===this.options.username&&t.password===this.options.password}var Bh=(t=_b)=>{let e=[{name:"username",message:"username"},{name:"password",message:"password",format(i){return this.options.showPassword?i:(this.state.submitted?this.styles.primary:this.styles.muted)(this.symbols.asterisk.repeat(i.length))}}];class r extends wb.create(t){constructor(n){super({...n,choices:e})}static create(n){return Bh(n)}}return r};Dh.exports=Bh()});var yi=m((a_,Fh)=>{"use strict";var xb=_t(),{isPrimitive:Eb,hasColor:Sb}=W(),qs=class extends xb{constructor(e){super(e),this.cursorHide()}async initialize(){let e=await this.resolve(this.initial,this.state);this.input=await this.cast(e),await super.initialize()}dispatch(e){return this.isValue(e)?(this.input=e,this.submit()):this.alert()}format(e){let{styles:r,state:i}=this;return i.submitted?r.success(e):r.primary(e)}cast(e){return this.isTrue(e)}isTrue(e){return/^[ty1]/i.test(e)}isFalse(e){return/^[fn0]/i.test(e)}isValue(e){return Eb(e)&&(this.isTrue(e)||this.isFalse(e))}async hint(){if(this.state.status==="pending"){let e=await this.element("hint");return Sb(e)?e:this.styles.muted(e)}}async render(){let{input:e,size:r}=this.state,i=await this.prefix(),n=await this.separator(),s=await this.message(),a=this.styles.muted(this.default),o=[i,s,a,n].filter(Boolean).join(" ");this.state.prompt=o;let l=await this.header(),u=this.value=this.cast(e),h=await this.format(u),c=await this.error()||await this.hint(),f=await this.footer();c&&!o.includes(c)&&(h+=" "+c),o+=" "+h,this.clear(r),this.write([l,o,f].filter(Boolean).join(`
|
|
31
|
-
`)),this.restore()}set value(e){super.value=e}get value(){return this.cast(super.value)}};Fh.exports=qs});var Gh=m((o_,$h)=>{"use strict";var Ob=yi(),js=class extends Ob{constructor(e){super(e),this.default=this.options.default||(this.initial?"(Y/n)":"(y/N)")}};$h.exports=js});var Uh=m((l_,Wh)=>{"use strict";var Cb=Ae(),kb=gi(),xt=kb.prototype,Ms=class extends Cb{constructor(e){super({...e,multiple:!0}),this.align=[this.options.align,"left"].find(r=>r!=null),this.emptyError="",this.values={}}dispatch(e,r){let i=this.focused,n=i.parent||{};return!i.editable&&!n.editable&&(e==="a"||e==="i")?super[e]():xt.dispatch.call(this,e,r)}append(e,r){return xt.append.call(this,e,r)}delete(e,r){return xt.delete.call(this,e,r)}space(e){return this.focused.editable?this.append(e):super.space()}number(e){return this.focused.editable?this.append(e):super.number(e)}next(){return this.focused.editable?xt.next.call(this):super.next()}prev(){return this.focused.editable?xt.prev.call(this):super.prev()}async indicator(e,r){let i=e.indicator||"",n=e.editable?i:super.indicator(e,r);return await this.resolve(n,this.state,e,r)||""}indent(e){return e.role==="heading"?"":e.editable?" ":" "}async renderChoice(e,r){return e.indent="",e.editable?xt.renderChoice.call(this,e,r):super.renderChoice(e,r)}error(){return""}footer(){return this.state.error}async validate(){let e=!0;for(let r of this.choices){if(typeof r.validate!="function"||r.role==="heading")continue;let i=r.parent?this.value[r.parent.name]:this.value;if(r.editable?i=r.value===r.name?r.initial||"":r.value:this.isDisabled(r)||(i=r.enabled===!0),e=await r.validate(i,this.state),e!==!0)break}return e!==!0&&(this.state.error=typeof e=="string"?e:"Invalid Input"),e}submit(){if(this.focused.newChoice===!0)return super.submit();if(this.choices.some(e=>e.newChoice))return this.alert();this.value={};for(let e of this.choices){let r=e.parent?this.value[e.parent.name]:this.value;if(e.role==="heading"){this.value[e.name]={};continue}e.editable?r[e.name]=e.value===e.name?e.initial||"":e.value:this.isDisabled(e)||(r[e.name]=e.enabled===!0)}return this.base.submit.call(this)}};Wh.exports=Ms});var
|
|
31
|
+
`)),this.restore()}set value(e){super.value=e}get value(){return this.cast(super.value)}};Fh.exports=qs});var Gh=m((o_,$h)=>{"use strict";var Ob=yi(),js=class extends Ob{constructor(e){super(e),this.default=this.options.default||(this.initial?"(Y/n)":"(y/N)")}};$h.exports=js});var Uh=m((l_,Wh)=>{"use strict";var Cb=Ae(),kb=gi(),xt=kb.prototype,Ms=class extends Cb{constructor(e){super({...e,multiple:!0}),this.align=[this.options.align,"left"].find(r=>r!=null),this.emptyError="",this.values={}}dispatch(e,r){let i=this.focused,n=i.parent||{};return!i.editable&&!n.editable&&(e==="a"||e==="i")?super[e]():xt.dispatch.call(this,e,r)}append(e,r){return xt.append.call(this,e,r)}delete(e,r){return xt.delete.call(this,e,r)}space(e){return this.focused.editable?this.append(e):super.space()}number(e){return this.focused.editable?this.append(e):super.number(e)}next(){return this.focused.editable?xt.next.call(this):super.next()}prev(){return this.focused.editable?xt.prev.call(this):super.prev()}async indicator(e,r){let i=e.indicator||"",n=e.editable?i:super.indicator(e,r);return await this.resolve(n,this.state,e,r)||""}indent(e){return e.role==="heading"?"":e.editable?" ":" "}async renderChoice(e,r){return e.indent="",e.editable?xt.renderChoice.call(this,e,r):super.renderChoice(e,r)}error(){return""}footer(){return this.state.error}async validate(){let e=!0;for(let r of this.choices){if(typeof r.validate!="function"||r.role==="heading")continue;let i=r.parent?this.value[r.parent.name]:this.value;if(r.editable?i=r.value===r.name?r.initial||"":r.value:this.isDisabled(r)||(i=r.enabled===!0),e=await r.validate(i,this.state),e!==!0)break}return e!==!0&&(this.state.error=typeof e=="string"?e:"Invalid Input"),e}submit(){if(this.focused.newChoice===!0)return super.submit();if(this.choices.some(e=>e.newChoice))return this.alert();this.value={};for(let e of this.choices){let r=e.parent?this.value[e.parent.name]:this.value;if(e.role==="heading"){this.value[e.name]={};continue}e.editable?r[e.name]=e.value===e.name?e.initial||"":e.value:this.isDisabled(e)||(r[e.name]=e.enabled===!0)}return this.base.submit.call(this)}};Wh.exports=Ms});var Ve=m((u_,Vh)=>{"use strict";var Rb=_t(),Ab=hs(),Tb=Rs(),{isPrimitive:qb}=W(),Ps=class extends Rb{constructor(e){super(e),this.initial=qb(this.initial)?String(this.initial):"",this.initial&&this.cursorHide(),this.state.prevCursor=0,this.state.clipboard=[],this.keypressTimeout=this.options.keypressTimeout!==void 0?this.options.keypressTimeout:null}async keypress(e,r=e?Ab(e,{}):{}){let i=Date.now(),n=i-this.lastKeypress;this.lastKeypress=i;let s=r.name==="return"||r.name==="enter",a=this.state.prevKeypress,o;if(this.state.prevKeypress=r,this.keypressTimeout!=null&&s){if(n<this.keypressTimeout)return this.submit();this.state.multilineBuffer=this.state.multilineBuffer||"",this.state.multilineBuffer+=e,o=!0,a=null}return(o||this.options.multiline&&s)&&(!a||a.name!=="return")?this.append(`
|
|
32
32
|
`,r):super.keypress(e,r)}moveCursor(e){this.cursor+=e}reset(){return this.input=this.value="",this.cursor=0,this.render()}dispatch(e,r){if(!e||r.ctrl||r.code)return this.alert();this.append(e)}append(e){let{cursor:r,input:i}=this.state;this.input=`${i}`.slice(0,r)+e+`${i}`.slice(r),this.moveCursor(String(e).length),this.render()}insert(e){this.append(e)}delete(){let{cursor:e,input:r}=this.state;if(e<=0)return this.alert();this.input=`${r}`.slice(0,e-1)+`${r}`.slice(e),this.moveCursor(-1),this.render()}deleteForward(){let{cursor:e,input:r}=this.state;if(r[e]===void 0)return this.alert();this.input=`${r}`.slice(0,e)+`${r}`.slice(e+1),this.render()}cutForward(){let e=this.cursor;if(this.input.length<=e)return this.alert();this.state.clipboard.push(this.input.slice(e)),this.input=this.input.slice(0,e),this.render()}cutLeft(){let e=this.cursor;if(e===0)return this.alert();let r=this.input.slice(0,e),i=this.input.slice(e),n=r.split(" ");this.state.clipboard.push(n.pop()),this.input=n.join(" "),this.cursor=this.input.length,this.input+=i,this.render()}paste(){if(!this.state.clipboard.length)return this.alert();this.insert(this.state.clipboard.pop()),this.render()}toggleCursor(){this.state.prevCursor?(this.cursor=this.state.prevCursor,this.state.prevCursor=0):(this.state.prevCursor=this.cursor,this.cursor=0),this.render()}first(){this.cursor=0,this.render()}last(){this.cursor=this.input.length-1,this.render()}next(){let e=this.initial!=null?String(this.initial):"";if(!e||!e.startsWith(this.input))return this.alert();this.input=this.initial,this.cursor=this.initial.length,this.render()}prev(){if(!this.input)return this.alert();this.reset()}backward(){return this.left()}forward(){return this.right()}right(){return this.cursor>=this.input.length?this.alert():(this.moveCursor(1),this.render())}left(){return this.cursor<=0?this.alert():(this.moveCursor(-1),this.render())}isValue(e){return!!e}async format(e=this.value){let r=await this.resolve(this.initial,this.state);return this.state.submitted?this.styles.submitted(e||r):Tb(this,{input:e,initial:r,pos:this.cursor})}async render(){let e=this.state.size,r=await this.prefix(),i=await this.separator(),n=await this.message(),s=[r,n,i].filter(Boolean).join(" ");this.state.prompt=s;let a=await this.header(),o=await this.format(),l=await this.error()||await this.hint(),u=await this.footer();l&&!o.includes(l)&&(o+=" "+l),s+=" "+o,this.clear(e),this.write([a,s,u].filter(Boolean).join(`
|
|
33
|
-
`)),this.restore()}};Vh.exports=Ps});var Hh=m((c_,zh)=>{"use strict";var jb=t=>t.filter((e,r)=>t.lastIndexOf(e)===r),bi=t=>jb(t).filter(Boolean);zh.exports=(t,e={},r="")=>{let{past:i=[],present:n=""}=e,s,a;switch(t){case"prev":case"undo":return s=i.slice(0,i.length-1),a=i[i.length-1]||"",{past:bi([r,...s]),present:a};case"next":case"redo":return s=i.slice(1),a=i[0]||"",{past:bi([...s,r]),present:a};case"save":return{past:bi([...i,r]),present:""};case"remove":return a=bi(i.filter(o=>o!==r)),n="",a.length&&(n=a.pop()),{past:a,present:n};default:throw new Error(`Invalid action: "${t}"`)}}});var Ns=m((h_,Yh)=>{"use strict";var Mb=
|
|
33
|
+
`)),this.restore()}};Vh.exports=Ps});var Hh=m((c_,zh)=>{"use strict";var jb=t=>t.filter((e,r)=>t.lastIndexOf(e)===r),bi=t=>jb(t).filter(Boolean);zh.exports=(t,e={},r="")=>{let{past:i=[],present:n=""}=e,s,a;switch(t){case"prev":case"undo":return s=i.slice(0,i.length-1),a=i[i.length-1]||"",{past:bi([r,...s]),present:a};case"next":case"redo":return s=i.slice(1),a=i[0]||"",{past:bi([...s,r]),present:a};case"save":return{past:bi([...i,r]),present:""};case"remove":return a=bi(i.filter(o=>o!==r)),n="",a.length&&(n=a.pop()),{past:a,present:n};default:throw new Error(`Invalid action: "${t}"`)}}});var Ns=m((h_,Yh)=>{"use strict";var Mb=Ve(),Kh=Hh(),Is=class extends Mb{constructor(e){super(e);let r=this.options.history;if(r&&r.store){let i=r.values||this.initial;this.autosave=!!r.autosave,this.store=r.store,this.data=this.store.get("values")||{past:[],present:i},this.initial=this.data.present||this.data.past[this.data.past.length-1]}}completion(e){return this.store?(this.data=Kh(e,this.data,this.input),this.data.present?(this.input=this.data.present,this.cursor=this.input.length,this.render()):this.alert()):this.alert()}altUp(){return this.completion("prev")}altDown(){return this.completion("next")}prev(){return this.save(),super.prev()}save(){this.store&&(this.data=Kh("save",this.data,this.input),this.store.set("values",this.data))}submit(){return this.store&&this.autosave===!0&&this.save(),super.submit()}};Yh.exports=Is});var Zh=m((f_,Xh)=>{"use strict";var Pb=Ve(),Bs=class extends Pb{format(){return""}};Xh.exports=Bs});var Jh=m((d_,Qh)=>{"use strict";var Ib=Ve(),Ds=class extends Ib{constructor(e={}){super(e),this.sep=this.options.separator||/, */,this.initial=e.initial||""}split(e=this.value){return e?String(e).split(this.sep):[]}format(){let e=this.state.submitted?this.styles.primary:r=>r;return this.list.map(e).join(", ")}async submit(e){let r=this.state.error||await this.validate(this.list,this.state);return r!==!0?(this.state.error=r,super.submit()):(this.value=this.list,super.submit())}get list(){return this.split()}};Qh.exports=Ds});var tf=m((p_,ef)=>{"use strict";var Nb=Ae(),Ls=class extends Nb{constructor(e){super({...e,multiple:!0})}};ef.exports=Ls});var $s=m((m_,rf)=>{"use strict";var Bb=Ve(),Fs=class extends Bb{constructor(e={}){super({style:"number",...e}),this.min=this.isValue(e.min)?this.toNumber(e.min):-1/0,this.max=this.isValue(e.max)?this.toNumber(e.max):1/0,this.delay=e.delay!=null?e.delay:1e3,this.float=e.float!==!1,this.round=e.round===!0||e.float===!1,this.major=e.major||10,this.minor=e.minor||1,this.initial=e.initial!=null?e.initial:"",this.input=String(this.initial),this.cursor=this.input.length,this.cursorShow()}append(e){return!/[-+.]/.test(e)||e==="."&&this.input.includes(".")?this.alert("invalid number"):super.append(e)}number(e){return super.append(e)}next(){return this.input&&this.input!==this.initial?this.alert():this.isValue(this.initial)?(this.input=this.initial,this.cursor=String(this.initial).length,this.render()):this.alert()}up(e){let r=e||this.minor,i=this.toNumber(this.input);return i>this.max+r?this.alert():(this.input=`${i+r}`,this.render())}down(e){let r=e||this.minor,i=this.toNumber(this.input);return i<this.min-r?this.alert():(this.input=`${i-r}`,this.render())}shiftDown(){return this.down(this.major)}shiftUp(){return this.up(this.major)}format(e=this.input){return typeof this.options.format=="function"?this.options.format.call(this,e):this.styles.info(e)}toNumber(e=""){return this.float?+e:Math.round(+e)}isValue(e){return/^[-+]?[0-9]+((\.)|(\.[0-9]+))?$/.test(e)}submit(){let e=[this.input,this.initial].find(r=>this.isValue(r));return this.value=this.toNumber(e||0),super.submit()}};rf.exports=Fs});var sf=m((g_,nf)=>{nf.exports=$s()});var of=m((y_,af)=>{"use strict";var Db=Ve(),Gs=class extends Db{constructor(e){super(e),this.cursorShow()}format(e=this.input){return this.keypressed?(this.state.submitted?this.styles.primary:this.styles.muted)(this.symbols.asterisk.repeat(e.length)):""}};af.exports=Gs});var cf=m((b_,uf)=>{"use strict";var Lb=ce(),Fb=Xt(),lf=W(),Ws=class extends Fb{constructor(e={}){super(e),this.widths=[].concat(e.messageWidth||50),this.align=[].concat(e.align||"left"),this.linebreak=e.linebreak||!1,this.edgeLength=e.edgeLength||3,this.newline=e.newline||`
|
|
34
34
|
`;let r=e.startNumber||1;typeof this.scale=="number"&&(this.scaleKey=!1,this.scale=Array(this.scale).fill(0).map((i,n)=>({name:n+r})))}async reset(){return this.tableized=!1,await super.reset(),this.render()}tableize(){if(this.tableized===!0)return;this.tableized=!0;let e=0;for(let r of this.choices){e=Math.max(e,r.message.length),r.scaleIndex=r.initial||2,r.scale=[];for(let i=0;i<this.scale.length;i++)r.scale.push({index:i})}this.widths[0]=Math.min(this.widths[0],e+3)}async dispatch(e,r){if(this.multiple)return this[r.name]?await this[r.name](e,r):await super.dispatch(e,r);this.alert()}heading(e,r,i){return this.styles.strong(e)}separator(){return this.styles.muted(this.symbols.ellipsis)}right(){let e=this.focused;return e.scaleIndex>=this.scale.length-1?this.alert():(e.scaleIndex++,this.render())}left(){let e=this.focused;return e.scaleIndex<=0?this.alert():(e.scaleIndex--,this.render())}indent(){return""}format(){return this.state.submitted?this.choices.map(r=>this.styles.info(r.index)).join(", "):""}pointer(){return""}renderScaleKey(){return this.scaleKey===!1||this.state.submitted?"":["",...this.scale.map(i=>` ${i.name} - ${i.message}`)].map(i=>this.styles.muted(i)).join(`
|
|
35
35
|
`)}renderScaleHeading(e){let r=this.scale.map(l=>l.name);typeof this.options.renderScaleHeading=="function"&&(r=this.options.renderScaleHeading.call(this,e));let i=this.scaleLength-r.join("").length,n=Math.round(i/(r.length-1)),a=r.map(l=>this.styles.strong(l)).join(" ".repeat(n)),o=" ".repeat(this.widths[0]);return this.margin[3]+o+this.margin[1]+a}scaleIndicator(e,r,i){if(typeof this.options.scaleIndicator=="function")return this.options.scaleIndicator.call(this,e,r,i);let n=e.scaleIndex===r.index;return r.disabled?this.styles.hint(this.symbols.radio.disabled):n?this.styles.success(this.symbols.radio.on):this.symbols.radio.off}renderScale(e,r){let i=e.scale.map(s=>this.scaleIndicator(e,s,r)),n=this.term==="Hyper"?"":" ";return i.join(n+this.symbols.line.repeat(this.edgeLength))}async renderChoice(e,r){await this.onChoice(e,r);let i=this.index===r,n=await this.pointer(e,r),s=await e.hint;s&&!lf.hasColor(s)&&(s=this.styles.muted(s));let a=p=>this.margin[3]+p.replace(/\s+$/,"").padEnd(this.widths[0]," "),o=this.newline,l=this.indent(e),u=await this.resolve(e.message,this.state,e,r),h=await this.renderScale(e,r),c=this.margin[1]+this.margin[3];this.scaleLength=Lb(h).length,this.widths[0]=Math.min(this.widths[0],this.width-this.scaleLength-c.length);let d=lf.wordWrap(u,{width:this.widths[0],newline:o}).split(`
|
|
36
36
|
`).map(p=>a(p)+this.margin[1]);return i&&(h=this.styles.info(h),d=d.map(p=>this.styles.info(p))),d[0]+=h,this.linebreak&&d.push(""),[l+n,d.join(`
|
|
@@ -48,7 +48,7 @@ See: https://github.com/isaacs/node-glob/issues/167`);if(!(this instanceof P))re
|
|
|
48
48
|
`);return i&&(p=this.styles.cyan(p),b=this.styles.cyan(b)),w()}async renderChoices(){if(this.state.submitted)return"";let e=this.visible.map(async(i,n)=>await this.renderChoice(i,n)),r=await Promise.all(e);return r.length||r.push(this.styles.danger("No matching choices")),r.join(`
|
|
49
49
|
`)}format(){return this.state.submitted?this.choices.map(r=>this.styles.info(r.scaleIdx)).join(", "):""}async render(){let{submitted:e,size:r}=this.state,i=await this.prefix(),n=await this.separator(),s=await this.message(),a=[i,s,n].filter(Boolean).join(" ");this.state.prompt=a;let o=await this.header(),l=await this.format(),u=await this.error()||await this.hint(),h=await this.renderChoices(),c=await this.footer();(l||!u)&&(a+=" "+l),u&&!a.includes(u)&&(a+=" "+u),e&&!l&&!h&&this.multiple&&this.type!=="form"&&(a+=this.styles.danger(this.emptyError)),this.clear(r),this.write([a,o,h,c].filter(Boolean).join(`
|
|
50
50
|
`)),this.restore()}submit(){this.value={};for(let e of this.choices)this.value[e.name]=e.scaleIdx;return this.base.submit.call(this)}};function Yb(t,e={}){if(Array.isArray(e.scale))return e.scale.map(i=>({...i}));let r=[];for(let i=1;i<t+1;i++)r.push({i,selected:!1});return r}bf.exports=Ks});var _f=m((E_,wf)=>{wf.exports=Ns()});var Ef=m((S_,xf)=>{"use strict";var Xb=yi(),Ys=class extends Xb{async initialize(){await super.initialize(),this.value=this.initial=this.resolve(this.options.initial),this.disabled=this.options.disabled||"no",this.enabled=this.options.enabled||"yes",await this.render()}reset(){this.value=this.initial,this.render()}delete(){this.alert()}toggle(){this.value=!this.value,this.render()}enable(){if(this.value===!0)return this.alert();this.value=!0,this.render()}disable(){if(this.value===!1)return this.alert();this.value=!1,this.render()}up(){this.toggle()}down(){this.toggle()}right(){this.toggle()}left(){this.toggle()}next(){this.toggle()}prev(){this.toggle()}dispatch(e="",r){switch(e.toLowerCase()){case" ":return this.toggle();case"1":case"y":case"t":return this.enable();case"0":case"n":case"f":return this.disable();default:return this.alert()}}format(){let e=i=>this.styles.primary.underline(i);return[this.value?this.disabled:e(this.disabled),this.value?e(this.enabled):this.enabled].join(this.styles.muted(" / "))}async render(){let{size:e}=this.state,r=await this.header(),i=await this.prefix(),n=await this.separator(),s=await this.message(),a=await this.format(),o=await this.error()||await this.hint(),l=await this.footer(),u=[i,s,n,a].join(" ");this.state.prompt=u,o&&!u.includes(o)&&(u+=" "+o),this.clear(e),this.write([r,u,l].filter(Boolean).join(`
|
|
51
|
-
`)),this.write(this.margin[2]),this.restore()}};xf.exports=Ys});var Of=m((O_,Sf)=>{"use strict";var Zb=Ae(),Xs=class extends Zb{constructor(e){if(super(e),typeof this.options.correctChoice!="number"||this.options.correctChoice<0)throw new Error("Please specify the index of the correct answer from the list of choices")}async toChoices(e,r){let i=await super.toChoices(e,r);if(i.length<2)throw new Error("Please give at least two choices to the user");if(this.options.correctChoice>i.length)throw new Error("Please specify the index of the correct answer from the list of choices");return i}check(e){return e.index===this.options.correctChoice}async result(e){return{selectedAnswer:e,correctAnswer:this.options.choices[this.options.correctChoice].value,correct:await this.check(this.state)}}};Sf.exports=Xs});var kf=m(Zs=>{"use strict";var Cf=W(),I=(t,e)=>{Cf.defineExport(Zs,t,e),Cf.defineExport(Zs,t.toLowerCase(),e)};I("AutoComplete",()=>jh());I("BasicAuth",()=>Lh());I("Confirm",()=>Gh());I("Editable",()=>Uh());I("Form",()=>gi());I("Input",()=>Ns());I("Invisible",()=>Zh());I("List",()=>Jh());I("MultiSelect",()=>tf());I("Numeral",()=>sf());I("Password",()=>of());I("Scale",()=>cf());I("Select",()=>Ae());I("Snippet",()=>mf());I("Sort",()=>yf());I("Survey",()=>vf());I("Text",()=>_f());I("Toggle",()=>Ef());I("Quiz",()=>Of())});var Af=m((k_,Rf)=>{Rf.exports={ArrayPrompt:Xt(),AuthPrompt:Ts(),BooleanPrompt:yi(),NumberPrompt:$s(),StringPrompt:
|
|
51
|
+
`)),this.write(this.margin[2]),this.restore()}};xf.exports=Ys});var Of=m((O_,Sf)=>{"use strict";var Zb=Ae(),Xs=class extends Zb{constructor(e){if(super(e),typeof this.options.correctChoice!="number"||this.options.correctChoice<0)throw new Error("Please specify the index of the correct answer from the list of choices")}async toChoices(e,r){let i=await super.toChoices(e,r);if(i.length<2)throw new Error("Please give at least two choices to the user");if(this.options.correctChoice>i.length)throw new Error("Please specify the index of the correct answer from the list of choices");return i}check(e){return e.index===this.options.correctChoice}async result(e){return{selectedAnswer:e,correctAnswer:this.options.choices[this.options.correctChoice].value,correct:await this.check(this.state)}}};Sf.exports=Xs});var kf=m(Zs=>{"use strict";var Cf=W(),I=(t,e)=>{Cf.defineExport(Zs,t,e),Cf.defineExport(Zs,t.toLowerCase(),e)};I("AutoComplete",()=>jh());I("BasicAuth",()=>Lh());I("Confirm",()=>Gh());I("Editable",()=>Uh());I("Form",()=>gi());I("Input",()=>Ns());I("Invisible",()=>Zh());I("List",()=>Jh());I("MultiSelect",()=>tf());I("Numeral",()=>sf());I("Password",()=>of());I("Scale",()=>cf());I("Select",()=>Ae());I("Snippet",()=>mf());I("Sort",()=>yf());I("Survey",()=>vf());I("Text",()=>_f());I("Toggle",()=>Ef());I("Quiz",()=>Of())});var Af=m((k_,Rf)=>{Rf.exports={ArrayPrompt:Xt(),AuthPrompt:Ts(),BooleanPrompt:yi(),NumberPrompt:$s(),StringPrompt:Ve()}});var jf=m((R_,qf)=>{"use strict";var Tf=require("assert"),Js=require("events"),Te=W(),ne=class extends Js{constructor(e,r){super(),this.options=Te.merge({},e),this.answers={...r}}register(e,r){if(Te.isObject(e)){for(let n of Object.keys(e))this.register(n,e[n]);return this}Tf.equal(typeof r,"function","expected a function");let i=e.toLowerCase();return r.prototype instanceof this.Prompt?this.prompts[i]=r:this.prompts[i]=r(this.Prompt,this),this}async prompt(e=[]){for(let r of[].concat(e))try{typeof r=="function"&&(r=await r.call(this)),await this.ask(Te.merge({},this.options,r))}catch(i){return Promise.reject(i)}return this.answers}async ask(e){typeof e=="function"&&(e=await e.call(this));let r=Te.merge({},this.options,e),{type:i,name:n}=e,{set:s,get:a}=Te;if(typeof i=="function"&&(i=await i.call(this,e,this.answers)),!i)return this.answers[n];i==="number"&&(i="numeral"),Tf(this.prompts[i],`Prompt "${i}" is not registered`);let o=new this.prompts[i](r),l=a(this.answers,n);o.state.answers=this.answers,o.enquirer=this,n&&o.on("submit",h=>{this.emit("answer",n,h,o),s(this.answers,n,h)});let u=o.emit.bind(o);return o.emit=(...h)=>(this.emit.call(this,...h),u(...h)),this.emit("prompt",o,this),r.autofill&&l!=null?(o.value=o.input=l,r.autofill==="show"&&await o.submit()):l=o.value=await o.run(),l}use(e){return e.call(this,this),this}set Prompt(e){this._Prompt=e}get Prompt(){return this._Prompt||this.constructor.Prompt}get prompts(){return this.constructor.prompts}static set Prompt(e){this._Prompt=e}static get Prompt(){return this._Prompt||_t()}static get prompts(){return kf()}static get types(){return Af()}static get prompt(){let e=(r,...i)=>{let n=new this(...i),s=n.emit.bind(n);return n.emit=(...a)=>(e.emit(...a),s(...a)),n.prompt(r)};return Te.mixinEmitter(e,new Js),e}};Te.mixinEmitter(ne,new Js);var Qs=ne.prompts;for(let t of Object.keys(Qs)){let e=t.toLowerCase(),r=i=>new Qs[t](i).run();ne.prompt[e]=r,ne[e]=r,ne[t]||Reflect.defineProperty(ne,t,{get:()=>Qs[t]})}var Zt=t=>{Te.defineExport(ne,t,()=>ne.types[t])};Zt("ArrayPrompt");Zt("AuthPrompt");Zt("BooleanPrompt");Zt("NumberPrompt");Zt("StringPrompt");qf.exports=ne});var Mf=xi(sa()),Pf=xi(zc()),ze=xi(jf());async function Qb(){try{let t=process.argv.length>2?process.argv[2]:null;t||(t=(await(0,ze.prompt)({type:"input",name:"name",message:"What is the name of the workspace?"})).name);let e=process.argv.length>3?process.argv[3]:null;e||(e=(await(0,ze.prompt)({type:"input",name:"organization",message:"What organization owns this repository?",initial:"storm-software"})).organization);let r=process.argv.length>4?process.argv[4]:null;r||(r=(await(0,ze.prompt)({type:"input",name:"namespace",message:"What is the namespace of this repository (npm scope)?",initial:e||"storm-software"})).namespace);let i=process.argv.length>5&&process.argv[5]?!!process.argv[5]:null;!i&&typeof i!="boolean"&&(i=(await(0,ze.prompt)({type:"confirm",name:"includeApps",message:"Should a separate `apps` folder be created for this workspace (if Yes: `apps` and `libs` folders will be added, if No: `packages` folders will be added)?",initial:!1})).includeApps);let n=process.argv.length>6?process.argv[6]:null;n||(n=(await(0,ze.prompt)({type:"input",name:"description",message:"Provide a description of the workspace to use in the package.json and README.md files.",initial:`\u26A1 The ${r||t} monorepo contains utility applications, tools, and various libraries to create modern and scalable web applications.`})).description);let s=process.argv.length>7?process.argv[7]:null;s||(s=(await(0,ze.prompt)({type:"input",name:"repositoryUrl",message:"What is the workspace's Git repository's URL?",initial:`https://github.com/${e||"storm-software"}/${t}`})).repositoryUrl),console.log(`\u26A1 Creating the Storm Workspace: ${t}`);let a=(0,Mf.getNpmPackageVersion)("@storm-software/workspace-tools"),{directory:o}=await(0,Pf.createWorkspace)(`@storm-software/workspace-tools@${a||"latest"}`,{name:t,organization:e,namespace:r,description:n,includeApps:i,repositoryUrl:s,packageManager:"pnpm",nxCloud:!1,mode:"dark"});console.log(`\u26A1 Successfully created the workspace: ${o}.`)}catch(t){console.log("\u274C An error occurred while creating the workspace. Please correct the below issue:"),console.error(t)}}Qb();
|
|
52
52
|
/*! Bundled license information:
|
|
53
53
|
|
|
54
54
|
safe-buffer/index.js:
|