create-qwik 0.18.0 → 0.19.0

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/index.cjs CHANGED
@@ -1,133 +1,96 @@
1
1
  /**
2
2
  * @license
3
- * create-qwik 0.18.0
3
+ * create-qwik 0.19.0
4
4
  * Copyright Builder.io, Inc. All Rights Reserved.
5
5
  * Use of this source code is governed by an MIT-style license that can be
6
6
  * found in the LICENSE file at https://github.com/BuilderIO/qwik/blob/main/LICENSE
7
7
  */
8
- "use strict";var kc=Object.create;var mt=Object.defineProperty;var jc=Object.getOwnPropertyDescriptor;var Lc=Object.getOwnPropertyNames;var Fc=Object.getPrototypeOf,Bc=Object.prototype.hasOwnProperty;var Nc=(t,e,r)=>e in t?mt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var h=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),Uc=(t,e)=>{for(var r in e)mt(t,r,{get:e[r],enumerable:!0})},cn=(t,e,r,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of Lc(e))!Bc.call(t,s)&&s!==r&&mt(t,s,{get:()=>e[s],enumerable:!(i=jc(e,s))||i.enumerable});return t};var A=(t,e,r)=>(r=t!=null?kc(Fc(t)):{},cn(e||!t||!t.__esModule?mt(r,"default",{value:t,enumerable:!0}):r,t)),Hc=t=>cn(mt({},"__esModule",{value:!0}),t);var fn=(t,e,r)=>(Nc(t,typeof e!="symbol"?e+"":e,r),r),dn=(t,e,r)=>{if(!e.has(t))throw TypeError("Cannot "+r)};var c=(t,e,r)=>(dn(t,e,"read from private field"),r?r.call(t):e.get(t)),$=(t,e,r)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,r)},_=(t,e,r,i)=>(dn(t,e,"write to private field"),i?i.call(t,r):e.set(t,r),r),bt=(t,e,r,i)=>({set _(s){_(t,e,s,r)},get _(){return c(t,e,i)}});var wn=h((K0,vn)=>{"use strict";vn.exports=function(){if(process.env.npm_config_user_agent)return Gc(process.env.npm_config_user_agent)};function Gc(t){let e=t.split(" ")[0],r=e.lastIndexOf("/"),i=e.substring(0,r);return{name:i==="npminstall"?"cnpm":i,version:e.substring(r+1)}}});var Cn=h((rb,Vr)=>{"use strict";var Rn=(t,e)=>{for(let r of Reflect.ownKeys(e))Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r));return t};Vr.exports=Rn;Vr.exports.default=Rn});var An=h((ib,Xt)=>{"use strict";var Yc=Cn(),Zt=new WeakMap,Dn=(t,e={})=>{if(typeof t!="function")throw new TypeError("Expected a function");let r,i=0,s=t.displayName||t.name||"<anonymous>",n=function(...o){if(Zt.set(n,++i),i===1)r=t.apply(this,o),t=null;else if(e.throw===!0)throw new Error(`Function \`${s}\` can only be called once`);return r};return Yc(n,t),Zt.set(n,i),n};Xt.exports=Dn;Xt.exports.default=Dn;Xt.exports.callCount=t=>{if(!Zt.has(t))throw new Error(`The given function \`${t.name}\` is not wrapped by the \`onetime\` package`);return Zt.get(t)}});var qn=h((sb,Qt)=>{Qt.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"];process.platform!=="win32"&&Qt.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT");process.platform==="linux"&&Qt.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")});var kn=h((nb,Ze)=>{var D=global.process,Pe=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"};Pe(D)?(Mn=require("assert"),Ke=qn(),In=/^win/i.test(D.platform),yt=require("events"),typeof yt!="function"&&(yt=yt.EventEmitter),D.__signal_exit_emitter__?j=D.__signal_exit_emitter__:(j=D.__signal_exit_emitter__=new yt,j.count=0,j.emitted={}),j.infinite||(j.setMaxListeners(1/0),j.infinite=!0),Ze.exports=function(t,e){if(!Pe(global.process))return function(){};Mn.equal(typeof t,"function","a callback must be provided for exit handler"),ze===!1&&Jr();var r="exit";e&&e.alwaysLast&&(r="afterexit");var i=function(){j.removeListener(r,t),j.listeners("exit").length===0&&j.listeners("afterexit").length===0&&er()};return j.on(r,t),i},er=function(){!ze||!Pe(global.process)||(ze=!1,Ke.forEach(function(e){try{D.removeListener(e,tr[e])}catch{}}),D.emit=rr,D.reallyExit=Kr,j.count-=1)},Ze.exports.unload=er,$e=function(e,r,i){j.emitted[e]||(j.emitted[e]=!0,j.emit(e,r,i))},tr={},Ke.forEach(function(t){tr[t]=function(){if(Pe(global.process)){var r=D.listeners(t);r.length===j.count&&(er(),$e("exit",null,t),$e("afterexit",null,t),In&&t==="SIGHUP"&&(t="SIGINT"),D.kill(D.pid,t))}}}),Ze.exports.signals=function(){return Ke},ze=!1,Jr=function(){ze||!Pe(global.process)||(ze=!0,j.count+=1,Ke=Ke.filter(function(e){try{return D.on(e,tr[e]),!0}catch{return!1}}),D.emit=$n,D.reallyExit=Pn)},Ze.exports.load=Jr,Kr=D.reallyExit,Pn=function(e){Pe(global.process)&&(D.exitCode=e||0,$e("exit",D.exitCode,null),$e("afterexit",D.exitCode,null),Kr.call(D,D.exitCode))},rr=D.emit,$n=function(e,r){if(e==="exit"&&Pe(global.process)){r!==void 0&&(D.exitCode=r);var i=rr.apply(this,arguments);return $e("exit",D.exitCode,null),$e("afterexit",D.exitCode,null),i}else return rr.apply(this,arguments)}):Ze.exports=function(){return function(){}};var Mn,Ke,In,yt,j,er,$e,tr,ze,Jr,Kr,Pn,rr,$n});var Nn=h((ub,Jc)=>{Jc.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"]},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"]}}});var Wn=h((hb,Hn)=>{"use strict";var sr=Object.assign({},Nn()),Un=Object.keys(sr);Object.defineProperty(sr,"random",{get(){let t=Math.floor(Math.random()*Un.length),e=Un[t];return sr[e]}});Hn.exports=sr});var Gn=h((yb,nr)=>{var Xc=function(){"use strict";function t(o,a,l,u){var p;typeof a=="object"&&(l=a.depth,u=a.prototype,p=a.filter,a=a.circular);var f=[],d=[],g=typeof Buffer<"u";typeof a>"u"&&(a=!0),typeof l>"u"&&(l=1/0);function v(b,S){if(b===null)return null;if(S==0)return b;var w,X;if(typeof b!="object")return b;if(t.__isArray(b))w=[];else if(t.__isRegExp(b))w=new RegExp(b.source,n(b)),b.lastIndex&&(w.lastIndex=b.lastIndex);else if(t.__isDate(b))w=new Date(b.getTime());else{if(g&&Buffer.isBuffer(b))return Buffer.allocUnsafe?w=Buffer.allocUnsafe(b.length):w=new Buffer(b.length),b.copy(w),w;typeof u>"u"?(X=Object.getPrototypeOf(b),w=Object.create(X)):(w=Object.create(u),X=u)}if(a){var gt=f.indexOf(b);if(gt!=-1)return d[gt];f.push(b),d.push(w)}for(var Nr in b){var Ur;X&&(Ur=Object.getOwnPropertyDescriptor(X,Nr)),!(Ur&&Ur.set==null)&&(w[Nr]=v(b[Nr],S-1))}return w}return v(o,l)}t.clonePrototype=function(a){if(a===null)return null;var l=function(){};return l.prototype=a,new l};function e(o){return Object.prototype.toString.call(o)}t.__objToStr=e;function r(o){return typeof o=="object"&&e(o)==="[object Date]"}t.__isDate=r;function i(o){return typeof o=="object"&&e(o)==="[object Array]"}t.__isArray=i;function s(o){return typeof o=="object"&&e(o)==="[object RegExp]"}t.__isRegExp=s;function n(o){var a="";return o.global&&(a+="g"),o.ignoreCase&&(a+="i"),o.multiline&&(a+="m"),a}return t.__getRegExpFlags=n,t}();typeof nr=="object"&&nr.exports&&(nr.exports=Xc)});var Vn=h((vb,Yn)=>{var Qc=Gn();Yn.exports=function(t,e){return t=t||{},Object.keys(e).forEach(function(r){typeof t[r]>"u"&&(t[r]=Qc(e[r]))}),t}});var Kn=h((wb,Jn)=>{Jn.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 Qn=h((_b,ei)=>{"use strict";var ef=Vn(),_t=Kn(),Zn={nul:0,control:0};ei.exports=function(e){return Xn(e,Zn)};ei.exports.config=function(t){return t=ef(t||{},Zn),function(r){return Xn(r,t)}};function Xn(t,e){if(typeof t!="string")return zn(t,e);for(var r=0,i=0;i<t.length;i++){var s=zn(t.charCodeAt(i),e);if(s<0)return-1;r+=s}return r}function zn(t,e){return t===0?e.nul:t<32||t>=127&&t<160?e.control:tf(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 tf(t){var e=0,r=_t.length-1,i;if(t<_t[0][0]||t>_t[r][1])return!1;for(;r>=e;)if(i=Math.floor((e+r)/2),t>_t[i][1])e=i+1;else if(t<_t[i][0])r=i-1;else return!0;return!1}});var ri=h((Sb,eo)=>{eo.exports=require("stream")});var so=h((Eb,io)=>{"use strict";function to(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),r.push.apply(r,i)}return r}function rf(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?to(Object(r),!0).forEach(function(i){sf(t,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):to(Object(r)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(r,i))})}return t}function sf(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function nf(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ro(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,i.key,i)}}function of(t,e,r){return e&&ro(t.prototype,e),r&&ro(t,r),t}var af=require("buffer"),or=af.Buffer,lf=require("util"),ii=lf.inspect,uf=ii&&ii.custom||"inspect";function hf(t,e,r){or.prototype.copy.call(t,e,r)}io.exports=function(){function t(){nf(this,t),this.head=null,this.tail=null,this.length=0}return of(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,s=""+i.data;i=i.next;)s+=r+i.data;return s}},{key:"concat",value:function(r){if(this.length===0)return or.alloc(0);for(var i=or.allocUnsafe(r>>>0),s=this.head,n=0;s;)hf(s.data,i,n),n+=s.data.length,s=s.next;return i}},{key:"consume",value:function(r,i){var s;return r<this.head.data.length?(s=this.head.data.slice(0,r),this.head.data=this.head.data.slice(r)):r===this.head.data.length?s=this.shift():s=i?this._getString(r):this._getBuffer(r),s}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(r){var i=this.head,s=1,n=i.data;for(r-=n.length;i=i.next;){var o=i.data,a=r>o.length?o.length:r;if(a===o.length?n+=o:n+=o.slice(0,r),r-=a,r===0){a===o.length?(++s,i.next?this.head=i.next:this.head=this.tail=null):(this.head=i,i.data=o.slice(a));break}++s}return this.length-=s,n}},{key:"_getBuffer",value:function(r){var i=or.allocUnsafe(r),s=this.head,n=1;for(s.data.copy(i),r-=s.data.length;s=s.next;){var o=s.data,a=r>o.length?o.length:r;if(o.copy(i,i.length-r,0,a),r-=a,r===0){a===o.length?(++n,s.next?this.head=s.next:this.head=this.tail=null):(this.head=s,s.data=o.slice(a));break}++n}return this.length-=n,i}},{key:uf,value:function(r,i){return ii(this,rf({},i,{depth:0,customInspect:!1}))}}]),t}()});var ni=h((Tb,oo)=>{"use strict";function cf(t,e){var r=this,i=this._readableState&&this._readableState.destroyed,s=this._writableState&&this._writableState.destroyed;return i||s?(e?e(t):t&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(si,this,t)):process.nextTick(si,this,t)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,function(n){!e&&n?r._writableState?r._writableState.errorEmitted?process.nextTick(ar,r):(r._writableState.errorEmitted=!0,process.nextTick(no,r,n)):process.nextTick(no,r,n):e?(process.nextTick(ar,r),e(n)):process.nextTick(ar,r)}),this)}function no(t,e){si(t,e),ar(t)}function ar(t){t._writableState&&!t._writableState.emitClose||t._readableState&&!t._readableState.emitClose||t.emit("close")}function ff(){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 si(t,e){t.emit("error",e)}function df(t,e){var r=t._readableState,i=t._writableState;r&&r.autoDestroy||i&&i.autoDestroy?t.destroy(e):t.emit("error",e)}oo.exports={destroy:cf,undestroy:ff,errorOrDestroy:df}});var _e=h((Ob,uo)=>{"use strict";var lo={};function H(t,e,r){r||(r=Error);function i(n,o,a){return typeof e=="string"?e:e(n,o,a)}class s extends r{constructor(o,a,l){super(i(o,a,l))}}s.prototype.name=r.name,s.prototype.code=t,lo[t]=s}function ao(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 pf(t,e,r){return t.substr(!r||r<0?0:+r,e.length)===e}function gf(t,e,r){return(r===void 0||r>t.length)&&(r=t.length),t.substring(r-e.length,r)===e}function mf(t,e,r){return typeof r!="number"&&(r=0),r+e.length>t.length?!1:t.indexOf(e,r)!==-1}H("ERR_INVALID_OPT_VALUE",function(t,e){return'The value "'+e+'" is invalid for option "'+t+'"'},TypeError);H("ERR_INVALID_ARG_TYPE",function(t,e,r){let i;typeof e=="string"&&pf(e,"not ")?(i="must not be",e=e.replace(/^not /,"")):i="must be";let s;if(gf(t," argument"))s=`The ${t} ${i} ${ao(e,"type")}`;else{let n=mf(t,".")?"property":"argument";s=`The "${t}" ${n} ${i} ${ao(e,"type")}`}return s+=`. Received type ${typeof r}`,s},TypeError);H("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF");H("ERR_METHOD_NOT_IMPLEMENTED",function(t){return"The "+t+" method is not implemented"});H("ERR_STREAM_PREMATURE_CLOSE","Premature close");H("ERR_STREAM_DESTROYED",function(t){return"Cannot call "+t+" after a stream was destroyed"});H("ERR_MULTIPLE_CALLBACK","Callback called multiple times");H("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable");H("ERR_STREAM_WRITE_AFTER_END","write after end");H("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);H("ERR_UNKNOWN_ENCODING",function(t){return"Unknown encoding: "+t},TypeError);H("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event");uo.exports.codes=lo});var oi=h((Rb,ho)=>{"use strict";var bf=_e().codes.ERR_INVALID_OPT_VALUE;function yf(t,e,r){return t.highWaterMark!=null?t.highWaterMark:e?t[r]:null}function vf(t,e,r,i){var s=yf(e,i,r);if(s!=null){if(!(isFinite(s)&&Math.floor(s)===s)||s<0){var n=i?r:"highWaterMark";throw new bf(n,s)}return Math.floor(s)}return t.objectMode?16:16*1024}ho.exports={getHighWaterMark:vf}});var co=h((Cb,ai)=>{typeof Object.create=="function"?ai.exports=function(e,r){r&&(e.super_=r,e.prototype=Object.create(r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:ai.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 ke=h((Db,ui)=>{try{if(li=require("util"),typeof li.inherits!="function")throw"";ui.exports=li.inherits}catch{ui.exports=co()}var li});var po=h((Ab,fo)=>{fo.exports=require("util").deprecate});var fi=h((qb,wo)=>{"use strict";wo.exports=P;function mo(t){var e=this;this.next=null,this.entry=null,this.finish=function(){Yf(e,t)}}var Qe;P.WritableState=St;var wf={deprecate:po()},bo=ri(),ur=require("buffer").Buffer,_f=global.Uint8Array||function(){};function xf(t){return ur.from(t)}function Sf(t){return ur.isBuffer(t)||t instanceof _f}var ci=ni(),Ef=oi(),Tf=Ef.getHighWaterMark,xe=_e().codes,Of=xe.ERR_INVALID_ARG_TYPE,Rf=xe.ERR_METHOD_NOT_IMPLEMENTED,Cf=xe.ERR_MULTIPLE_CALLBACK,Df=xe.ERR_STREAM_CANNOT_PIPE,Af=xe.ERR_STREAM_DESTROYED,qf=xe.ERR_STREAM_NULL_VALUES,Mf=xe.ERR_STREAM_WRITE_AFTER_END,If=xe.ERR_UNKNOWN_ENCODING,et=ci.errorOrDestroy;ke()(P,bo);function Pf(){}function St(t,e,r){Qe=Qe||je(),t=t||{},typeof r!="boolean"&&(r=e instanceof Qe),this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.writableObjectMode),this.highWaterMark=Tf(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(s){Nf(e,s)},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 mo(this)}St.prototype.getBuffer=function(){for(var e=this.bufferedRequest,r=[];e;)r.push(e),e=e.next;return r};(function(){try{Object.defineProperty(St.prototype,"buffer",{get:wf.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})();var lr;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(lr=Function.prototype[Symbol.hasInstance],Object.defineProperty(P,Symbol.hasInstance,{value:function(e){return lr.call(this,e)?!0:this!==P?!1:e&&e._writableState instanceof St}})):lr=function(e){return e instanceof this};function P(t){Qe=Qe||je();var e=this instanceof Qe;if(!e&&!lr.call(P,this))return new P(t);this._writableState=new St(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)),bo.call(this)}P.prototype.pipe=function(){et(this,new Df)};function $f(t,e){var r=new Mf;et(t,r),process.nextTick(e,r)}function kf(t,e,r,i){var s;return r===null?s=new qf:typeof r!="string"&&!e.objectMode&&(s=new Of("chunk",["string","Buffer"],r)),s?(et(t,s),process.nextTick(i,s),!1):!0}P.prototype.write=function(t,e,r){var i=this._writableState,s=!1,n=!i.objectMode&&Sf(t);return n&&!ur.isBuffer(t)&&(t=xf(t)),typeof e=="function"&&(r=e,e=null),n?e="buffer":e||(e=i.defaultEncoding),typeof r!="function"&&(r=Pf),i.ending?$f(this,r):(n||kf(this,i,t,r))&&(i.pendingcb++,s=Lf(this,i,n,t,e,r)),s};P.prototype.cork=function(){this._writableState.corked++};P.prototype.uncork=function(){var t=this._writableState;t.corked&&(t.corked--,!t.writing&&!t.corked&&!t.bufferProcessing&&t.bufferedRequest&&yo(this,t))};P.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 If(e);return this._writableState.defaultEncoding=e,this};Object.defineProperty(P.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function jf(t,e,r){return!t.objectMode&&t.decodeStrings!==!1&&typeof e=="string"&&(e=ur.from(e,r)),e}Object.defineProperty(P.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function Lf(t,e,r,i,s,n){if(!r){var o=jf(e,i,s);i!==o&&(r=!0,s="buffer",i=o)}var a=e.objectMode?1:i.length;e.length+=a;var l=e.length<e.highWaterMark;if(l||(e.needDrain=!0),e.writing||e.corked){var u=e.lastBufferedRequest;e.lastBufferedRequest={chunk:i,encoding:s,isBuf:r,callback:n,next:null},u?u.next=e.lastBufferedRequest:e.bufferedRequest=e.lastBufferedRequest,e.bufferedRequestCount+=1}else hi(t,e,!1,a,i,s,n);return l}function hi(t,e,r,i,s,n,o){e.writelen=i,e.writecb=o,e.writing=!0,e.sync=!0,e.destroyed?e.onwrite(new Af("write")):r?t._writev(s,e.onwrite):t._write(s,n,e.onwrite),e.sync=!1}function Ff(t,e,r,i,s){--e.pendingcb,r?(process.nextTick(s,i),process.nextTick(xt,t,e),t._writableState.errorEmitted=!0,et(t,i)):(s(i),t._writableState.errorEmitted=!0,et(t,i),xt(t,e))}function Bf(t){t.writing=!1,t.writecb=null,t.length-=t.writelen,t.writelen=0}function Nf(t,e){var r=t._writableState,i=r.sync,s=r.writecb;if(typeof s!="function")throw new Cf;if(Bf(r),e)Ff(t,r,i,e,s);else{var n=vo(r)||t.destroyed;!n&&!r.corked&&!r.bufferProcessing&&r.bufferedRequest&&yo(t,r),i?process.nextTick(go,t,r,n,s):go(t,r,n,s)}}function go(t,e,r,i){r||Uf(t,e),e.pendingcb--,i(),xt(t,e)}function Uf(t,e){e.length===0&&e.needDrain&&(e.needDrain=!1,t.emit("drain"))}function yo(t,e){e.bufferProcessing=!0;var r=e.bufferedRequest;if(t._writev&&r&&r.next){var i=e.bufferedRequestCount,s=new Array(i),n=e.corkedRequestsFree;n.entry=r;for(var o=0,a=!0;r;)s[o]=r,r.isBuf||(a=!1),r=r.next,o+=1;s.allBuffers=a,hi(t,e,!0,e.length,s,"",n.finish),e.pendingcb++,e.lastBufferedRequest=null,n.next?(e.corkedRequestsFree=n.next,n.next=null):e.corkedRequestsFree=new mo(e),e.bufferedRequestCount=0}else{for(;r;){var l=r.chunk,u=r.encoding,p=r.callback,f=e.objectMode?1:l.length;if(hi(t,e,!1,f,l,u,p),r=r.next,e.bufferedRequestCount--,e.writing)break}r===null&&(e.lastBufferedRequest=null)}e.bufferedRequest=r,e.bufferProcessing=!1}P.prototype._write=function(t,e,r){r(new Rf("_write()"))};P.prototype._writev=null;P.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||Gf(this,i,r),this};Object.defineProperty(P.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function vo(t){return t.ending&&t.length===0&&t.bufferedRequest===null&&!t.finished&&!t.writing}function Hf(t,e){t._final(function(r){e.pendingcb--,r&&et(t,r),e.prefinished=!0,t.emit("prefinish"),xt(t,e)})}function Wf(t,e){!e.prefinished&&!e.finalCalled&&(typeof t._final=="function"&&!e.destroyed?(e.pendingcb++,e.finalCalled=!0,process.nextTick(Hf,t,e)):(e.prefinished=!0,t.emit("prefinish")))}function xt(t,e){var r=vo(e);if(r&&(Wf(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 Gf(t,e,r){e.ending=!0,xt(t,e),r&&(e.finished?process.nextTick(r):t.once("finish",r)),e.ended=!0,t.writable=!1}function Yf(t,e,r){var i=t.entry;for(t.entry=null;i;){var s=i.callback;e.pendingcb--,s(r),i=i.next}e.corkedRequestsFree.next=t}Object.defineProperty(P.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}});P.prototype.destroy=ci.destroy;P.prototype._undestroy=ci.undestroy;P.prototype._destroy=function(t,e){e(t)}});var je=h((Mb,xo)=>{"use strict";var Vf=Object.keys||function(t){var e=[];for(var r in t)e.push(r);return e};xo.exports=Q;var _o=gi(),pi=fi();ke()(Q,_o);for(di=Vf(pi.prototype),hr=0;hr<di.length;hr++)cr=di[hr],Q.prototype[cr]||(Q.prototype[cr]=pi.prototype[cr]);var di,cr,hr;function Q(t){if(!(this instanceof Q))return new Q(t);_o.call(this,t),pi.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",Jf)))}Object.defineProperty(Q.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});Object.defineProperty(Q.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});Object.defineProperty(Q.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function Jf(){this._writableState.ended||process.nextTick(Kf,this)}function Kf(t){t.end()}Object.defineProperty(Q.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 To=h((mi,Eo)=>{var fr=require("buffer"),ee=fr.Buffer;function So(t,e){for(var r in t)e[r]=t[r]}ee.from&&ee.alloc&&ee.allocUnsafe&&ee.allocUnsafeSlow?Eo.exports=fr:(So(fr,mi),mi.Buffer=Le);function Le(t,e,r){return ee(t,e,r)}Le.prototype=Object.create(ee.prototype);So(ee,Le);Le.from=function(t,e,r){if(typeof t=="number")throw new TypeError("Argument must not be a number");return ee(t,e,r)};Le.alloc=function(t,e,r){if(typeof t!="number")throw new TypeError("Argument must be a number");var i=ee(t);return e!==void 0?typeof r=="string"?i.fill(e,r):i.fill(e):i.fill(0),i};Le.allocUnsafe=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return ee(t)};Le.allocUnsafeSlow=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return fr.SlowBuffer(t)}});var vi=h(Ro=>{"use strict";var yi=To().Buffer,Oo=yi.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 zf(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 Zf(t){var e=zf(t);if(typeof e!="string"&&(yi.isEncoding===Oo||!Oo(t)))throw new Error("Unknown encoding: "+t);return e||t}Ro.StringDecoder=Et;function Et(t){this.encoding=Zf(t);var e;switch(this.encoding){case"utf16le":this.text=id,this.end=sd,e=4;break;case"utf8":this.fillLast=ed,e=4;break;case"base64":this.text=nd,this.end=od,e=3;break;default:this.write=ad,this.end=ld;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=yi.allocUnsafe(e)}Et.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||""};Et.prototype.end=rd;Et.prototype.text=td;Et.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 bi(t){return t<=127?0:t>>5===6?2:t>>4===14?3:t>>3===30?4:t>>6===2?-1:-2}function Xf(t,e,r){var i=e.length-1;if(i<r)return 0;var s=bi(e[i]);return s>=0?(s>0&&(t.lastNeed=s-1),s):--i<r||s===-2?0:(s=bi(e[i]),s>=0?(s>0&&(t.lastNeed=s-2),s):--i<r||s===-2?0:(s=bi(e[i]),s>=0?(s>0&&(s===2?s=0:t.lastNeed=s-3),s):0))}function Qf(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 ed(t){var e=this.lastTotal-this.lastNeed,r=Qf(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 td(t,e){var r=Xf(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 rd(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+"\uFFFD":e}function id(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 sd(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 nd(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 od(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function ad(t){return t.toString(this.encoding)}function ld(t){return t&&t.length?this.write(t):""}});var dr=h((Pb,Ao)=>{"use strict";var Co=_e().codes.ERR_STREAM_PREMATURE_CLOSE;function ud(t){var e=!1;return function(){if(!e){e=!0;for(var r=arguments.length,i=new Array(r),s=0;s<r;s++)i[s]=arguments[s];t.apply(this,i)}}}function hd(){}function cd(t){return t.setHeader&&typeof t.abort=="function"}function Do(t,e,r){if(typeof e=="function")return Do(t,null,e);e||(e={}),r=ud(r||hd);var i=e.readable||e.readable!==!1&&t.readable,s=e.writable||e.writable!==!1&&t.writable,n=function(){t.writable||a()},o=t._writableState&&t._writableState.finished,a=function(){s=!1,o=!0,i||r.call(t)},l=t._readableState&&t._readableState.endEmitted,u=function(){i=!1,l=!0,s||r.call(t)},p=function(v){r.call(t,v)},f=function(){var v;if(i&&!l)return(!t._readableState||!t._readableState.ended)&&(v=new Co),r.call(t,v);if(s&&!o)return(!t._writableState||!t._writableState.ended)&&(v=new Co),r.call(t,v)},d=function(){t.req.on("finish",a)};return cd(t)?(t.on("complete",a),t.on("abort",f),t.req?d():t.on("request",d)):s&&!t._writableState&&(t.on("end",n),t.on("close",n)),t.on("end",u),t.on("finish",a),e.error!==!1&&t.on("error",p),t.on("close",f),function(){t.removeListener("complete",a),t.removeListener("abort",f),t.removeListener("request",d),t.req&&t.req.removeListener("finish",a),t.removeListener("end",n),t.removeListener("close",n),t.removeListener("finish",a),t.removeListener("end",u),t.removeListener("error",p),t.removeListener("close",f)}}Ao.exports=Do});var Mo=h(($b,qo)=>{"use strict";var pr;function Se(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var fd=dr(),Ee=Symbol("lastResolve"),Fe=Symbol("lastReject"),Tt=Symbol("error"),gr=Symbol("ended"),Be=Symbol("lastPromise"),wi=Symbol("handlePromise"),Ne=Symbol("stream");function Te(t,e){return{value:t,done:e}}function dd(t){var e=t[Ee];if(e!==null){var r=t[Ne].read();r!==null&&(t[Be]=null,t[Ee]=null,t[Fe]=null,e(Te(r,!1)))}}function pd(t){process.nextTick(dd,t)}function gd(t,e){return function(r,i){t.then(function(){if(e[gr]){r(Te(void 0,!0));return}e[wi](r,i)},i)}}var md=Object.getPrototypeOf(function(){}),bd=Object.setPrototypeOf((pr={get stream(){return this[Ne]},next:function(){var e=this,r=this[Tt];if(r!==null)return Promise.reject(r);if(this[gr])return Promise.resolve(Te(void 0,!0));if(this[Ne].destroyed)return new Promise(function(o,a){process.nextTick(function(){e[Tt]?a(e[Tt]):o(Te(void 0,!0))})});var i=this[Be],s;if(i)s=new Promise(gd(i,this));else{var n=this[Ne].read();if(n!==null)return Promise.resolve(Te(n,!1));s=new Promise(this[wi])}return this[Be]=s,s}},Se(pr,Symbol.asyncIterator,function(){return this}),Se(pr,"return",function(){var e=this;return new Promise(function(r,i){e[Ne].destroy(null,function(s){if(s){i(s);return}r(Te(void 0,!0))})})}),pr),md),yd=function(e){var r,i=Object.create(bd,(r={},Se(r,Ne,{value:e,writable:!0}),Se(r,Ee,{value:null,writable:!0}),Se(r,Fe,{value:null,writable:!0}),Se(r,Tt,{value:null,writable:!0}),Se(r,gr,{value:e._readableState.endEmitted,writable:!0}),Se(r,wi,{value:function(n,o){var a=i[Ne].read();a?(i[Be]=null,i[Ee]=null,i[Fe]=null,n(Te(a,!1))):(i[Ee]=n,i[Fe]=o)},writable:!0}),r));return i[Be]=null,fd(e,function(s){if(s&&s.code!=="ERR_STREAM_PREMATURE_CLOSE"){var n=i[Fe];n!==null&&(i[Be]=null,i[Ee]=null,i[Fe]=null,n(s)),i[Tt]=s;return}var o=i[Ee];o!==null&&(i[Be]=null,i[Ee]=null,i[Fe]=null,o(Te(void 0,!0))),i[gr]=!0}),e.on("readable",pd.bind(null,i)),i};qo.exports=yd});var ko=h((kb,$o)=>{"use strict";function Io(t,e,r,i,s,n,o){try{var a=t[n](o),l=a.value}catch(u){r(u);return}a.done?e(l):Promise.resolve(l).then(i,s)}function vd(t){return function(){var e=this,r=arguments;return new Promise(function(i,s){var n=t.apply(e,r);function o(l){Io(n,i,s,o,a,"next",l)}function a(l){Io(n,i,s,o,a,"throw",l)}o(void 0)})}}function Po(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),r.push.apply(r,i)}return r}function wd(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Po(Object(r),!0).forEach(function(i){_d(t,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Po(Object(r)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(r,i))})}return t}function _d(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var xd=_e().codes.ERR_INVALID_ARG_TYPE;function Sd(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 xd("iterable",["Iterable"],e);var s=new t(wd({objectMode:!0},r)),n=!1;s._read=function(){n||(n=!0,o())};function o(){return a.apply(this,arguments)}function a(){return a=vd(function*(){try{var l=yield i.next(),u=l.value,p=l.done;p?s.push(null):s.push(yield u)?o():n=!1}catch(f){s.destroy(f)}}),a.apply(this,arguments)}return s}$o.exports=Sd});var gi=h((Lb,Yo)=>{"use strict";Yo.exports=x;var tt;x.ReadableState=Bo;var jb=require("events").EventEmitter,Fo=function(e,r){return e.listeners(r).length},Rt=ri(),mr=require("buffer").Buffer,Ed=global.Uint8Array||function(){};function Td(t){return mr.from(t)}function Od(t){return mr.isBuffer(t)||t instanceof Ed}var _i=require("util"),y;_i&&_i.debuglog?y=_i.debuglog("stream"):y=function(){};var Rd=so(),Ci=ni(),Cd=oi(),Dd=Cd.getHighWaterMark,br=_e().codes,Ad=br.ERR_INVALID_ARG_TYPE,qd=br.ERR_STREAM_PUSH_AFTER_EOF,Md=br.ERR_METHOD_NOT_IMPLEMENTED,Id=br.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,rt,xi,Si;ke()(x,Rt);var Ot=Ci.errorOrDestroy,Ei=["error","close","destroy","pause","resume"];function Pd(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 Bo(t,e,r){tt=tt||je(),t=t||{},typeof r!="boolean"&&(r=e instanceof tt),this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.readableObjectMode),this.highWaterMark=Dd(this,t,"readableHighWaterMark",r),this.buffer=new Rd,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&&(rt||(rt=vi().StringDecoder),this.decoder=new rt(t.encoding),this.encoding=t.encoding)}function x(t){if(tt=tt||je(),!(this instanceof x))return new x(t);var e=this instanceof tt;this._readableState=new Bo(t,this,e),this.readable=!0,t&&(typeof t.read=="function"&&(this._read=t.read),typeof t.destroy=="function"&&(this._destroy=t.destroy)),Rt.call(this)}Object.defineProperty(x.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}});x.prototype.destroy=Ci.destroy;x.prototype._undestroy=Ci.undestroy;x.prototype._destroy=function(t,e){e(t)};x.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=mr.from(t,e),e=""),i=!0),No(this,t,e,!1,i)};x.prototype.unshift=function(t){return No(this,t,null,!0,!1)};function No(t,e,r,i,s){y("readableAddChunk",e);var n=t._readableState;if(e===null)n.reading=!1,jd(t,n);else{var o;if(s||(o=$d(n,e)),o)Ot(t,o);else if(n.objectMode||e&&e.length>0)if(typeof e!="string"&&!n.objectMode&&Object.getPrototypeOf(e)!==mr.prototype&&(e=Td(e)),i)n.endEmitted?Ot(t,new Id):Ti(t,n,e,!0);else if(n.ended)Ot(t,new qd);else{if(n.destroyed)return!1;n.reading=!1,n.decoder&&!r?(e=n.decoder.write(e),n.objectMode||e.length!==0?Ti(t,n,e,!1):Ri(t,n)):Ti(t,n,e,!1)}else i||(n.reading=!1,Ri(t,n))}return!n.ended&&(n.length<n.highWaterMark||n.length===0)}function Ti(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&&yr(t)),Ri(t,e)}function $d(t,e){var r;return!Od(e)&&typeof e!="string"&&e!==void 0&&!t.objectMode&&(r=new Ad("chunk",["string","Buffer","Uint8Array"],e)),r}x.prototype.isPaused=function(){return this._readableState.flowing===!1};x.prototype.setEncoding=function(t){rt||(rt=vi().StringDecoder);var e=new rt(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 jo=1073741824;function kd(t){return t>=jo?t=jo:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}function Lo(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=kd(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}x.prototype.read=function(t){y("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 y("read: emitReadable",e.length,e.ended),e.length===0&&e.ended?Oi(this):yr(this),null;if(t=Lo(t,e),t===0&&e.ended)return e.length===0&&Oi(this),null;var i=e.needReadable;y("need readable",i),(e.length===0||e.length-t<e.highWaterMark)&&(i=!0,y("length less than watermark",i)),e.ended||e.reading?(i=!1,y("reading or ended",i)):i&&(y("do read"),e.reading=!0,e.sync=!0,e.length===0&&(e.needReadable=!0),this._read(e.highWaterMark),e.sync=!1,e.reading||(t=Lo(r,e)));var s;return t>0?s=Wo(t,e):s=null,s===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&&Oi(this)),s!==null&&this.emit("data",s),s};function jd(t,e){if(y("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?yr(t):(e.needReadable=!1,e.emittedReadable||(e.emittedReadable=!0,Uo(t)))}}function yr(t){var e=t._readableState;y("emitReadable",e.needReadable,e.emittedReadable),e.needReadable=!1,e.emittedReadable||(y("emitReadable",e.flowing),e.emittedReadable=!0,process.nextTick(Uo,t))}function Uo(t){var e=t._readableState;y("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,Di(t)}function Ri(t,e){e.readingMore||(e.readingMore=!0,process.nextTick(Ld,t,e))}function Ld(t,e){for(;!e.reading&&!e.ended&&(e.length<e.highWaterMark||e.flowing&&e.length===0);){var r=e.length;if(y("maybeReadMore read 0"),t.read(0),r===e.length)break}e.readingMore=!1}x.prototype._read=function(t){Ot(this,new Md("_read()"))};x.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,y("pipe count=%d opts=%j",i.pipesCount,e);var s=(!e||e.end!==!1)&&t!==process.stdout&&t!==process.stderr,n=s?a:b;i.endEmitted?process.nextTick(n):r.once("end",n),t.on("unpipe",o);function o(S,w){y("onunpipe"),S===r&&w&&w.hasUnpiped===!1&&(w.hasUnpiped=!0,p())}function a(){y("onend"),t.end()}var l=Fd(r);t.on("drain",l);var u=!1;function p(){y("cleanup"),t.removeListener("close",g),t.removeListener("finish",v),t.removeListener("drain",l),t.removeListener("error",d),t.removeListener("unpipe",o),r.removeListener("end",a),r.removeListener("end",b),r.removeListener("data",f),u=!0,i.awaitDrain&&(!t._writableState||t._writableState.needDrain)&&l()}r.on("data",f);function f(S){y("ondata");var w=t.write(S);y("dest.write",w),w===!1&&((i.pipesCount===1&&i.pipes===t||i.pipesCount>1&&Go(i.pipes,t)!==-1)&&!u&&(y("false write response, pause",i.awaitDrain),i.awaitDrain++),r.pause())}function d(S){y("onerror",S),b(),t.removeListener("error",d),Fo(t,"error")===0&&Ot(t,S)}Pd(t,"error",d);function g(){t.removeListener("finish",v),b()}t.once("close",g);function v(){y("onfinish"),t.removeListener("close",g),b()}t.once("finish",v);function b(){y("unpipe"),r.unpipe(t)}return t.emit("pipe",r),i.flowing||(y("pipe resume"),r.resume()),t};function Fd(t){return function(){var r=t._readableState;y("pipeOnDrain",r.awaitDrain),r.awaitDrain&&r.awaitDrain--,r.awaitDrain===0&&Fo(t,"data")&&(r.flowing=!0,Di(t))}}x.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,s=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var n=0;n<s;n++)i[n].emit("unpipe",this,{hasUnpiped:!1});return this}var o=Go(e.pipes,t);return o===-1?this:(e.pipes.splice(o,1),e.pipesCount-=1,e.pipesCount===1&&(e.pipes=e.pipes[0]),t.emit("unpipe",this,r),this)};x.prototype.on=function(t,e){var r=Rt.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,y("on readable",i.length,i.reading),i.length?yr(this):i.reading||process.nextTick(Bd,this)),r};x.prototype.addListener=x.prototype.on;x.prototype.removeListener=function(t,e){var r=Rt.prototype.removeListener.call(this,t,e);return t==="readable"&&process.nextTick(Ho,this),r};x.prototype.removeAllListeners=function(t){var e=Rt.prototype.removeAllListeners.apply(this,arguments);return(t==="readable"||t===void 0)&&process.nextTick(Ho,this),e};function Ho(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 Bd(t){y("readable nexttick read 0"),t.read(0)}x.prototype.resume=function(){var t=this._readableState;return t.flowing||(y("resume"),t.flowing=!t.readableListening,Nd(this,t)),t.paused=!1,this};function Nd(t,e){e.resumeScheduled||(e.resumeScheduled=!0,process.nextTick(Ud,t,e))}function Ud(t,e){y("resume",e.reading),e.reading||t.read(0),e.resumeScheduled=!1,t.emit("resume"),Di(t),e.flowing&&!e.reading&&t.read(0)}x.prototype.pause=function(){return y("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(y("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function Di(t){var e=t._readableState;for(y("flow",e.flowing);e.flowing&&t.read()!==null;);}x.prototype.wrap=function(t){var e=this,r=this._readableState,i=!1;t.on("end",function(){if(y("wrapped end"),r.decoder&&!r.ended){var o=r.decoder.end();o&&o.length&&e.push(o)}e.push(null)}),t.on("data",function(o){if(y("wrapped data"),r.decoder&&(o=r.decoder.write(o)),!(r.objectMode&&o==null)&&!(!r.objectMode&&(!o||!o.length))){var a=e.push(o);a||(i=!0,t.pause())}});for(var s in t)this[s]===void 0&&typeof t[s]=="function"&&(this[s]=function(a){return function(){return t[a].apply(t,arguments)}}(s));for(var n=0;n<Ei.length;n++)t.on(Ei[n],this.emit.bind(this,Ei[n]));return this._read=function(o){y("wrapped _read",o),i&&(i=!1,t.resume())},this};typeof Symbol=="function"&&(x.prototype[Symbol.asyncIterator]=function(){return xi===void 0&&(xi=Mo()),xi(this)});Object.defineProperty(x.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}});Object.defineProperty(x.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}});Object.defineProperty(x.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}});x._fromList=Wo;Object.defineProperty(x.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function Wo(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 Oi(t){var e=t._readableState;y("endReadable",e.endEmitted),e.endEmitted||(e.ended=!0,process.nextTick(Hd,e,t))}function Hd(t,e){if(y("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"&&(x.from=function(t,e){return Si===void 0&&(Si=ko()),Si(x,t,e)});function Go(t,e){for(var r=0,i=t.length;r<i;r++)if(t[r]===e)return r;return-1}});var Ai=h((Fb,Jo)=>{"use strict";Jo.exports=ce;var vr=_e().codes,Wd=vr.ERR_METHOD_NOT_IMPLEMENTED,Gd=vr.ERR_MULTIPLE_CALLBACK,Yd=vr.ERR_TRANSFORM_ALREADY_TRANSFORMING,Vd=vr.ERR_TRANSFORM_WITH_LENGTH_0,wr=je();ke()(ce,wr);function Jd(t,e){var r=this._transformState;r.transforming=!1;var i=r.writecb;if(i===null)return this.emit("error",new Gd);r.writechunk=null,r.writecb=null,e!=null&&this.push(e),i(t);var s=this._readableState;s.reading=!1,(s.needReadable||s.length<s.highWaterMark)&&this._read(s.highWaterMark)}function ce(t){if(!(this instanceof ce))return new ce(t);wr.call(this,t),this._transformState={afterTransform:Jd.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",Kd)}function Kd(){var t=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(e,r){Vo(t,e,r)}):Vo(this,null,null)}ce.prototype.push=function(t,e){return this._transformState.needTransform=!1,wr.prototype.push.call(this,t,e)};ce.prototype._transform=function(t,e,r){r(new Wd("_transform()"))};ce.prototype._write=function(t,e,r){var i=this._transformState;if(i.writecb=r,i.writechunk=t,i.writeencoding=e,!i.transforming){var s=this._readableState;(i.needTransform||s.needReadable||s.length<s.highWaterMark)&&this._read(s.highWaterMark)}};ce.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};ce.prototype._destroy=function(t,e){wr.prototype._destroy.call(this,t,function(r){e(r)})};function Vo(t,e,r){if(e)return t.emit("error",e);if(r!=null&&t.push(r),t._writableState.length)throw new Vd;if(t._transformState.transforming)throw new Yd;return t.push(null)}});var Zo=h((Bb,zo)=>{"use strict";zo.exports=Ct;var Ko=Ai();ke()(Ct,Ko);function Ct(t){if(!(this instanceof Ct))return new Ct(t);Ko.call(this,t)}Ct.prototype._transform=function(t,e,r){r(null,t)}});var ra=h((Nb,ta)=>{"use strict";var qi;function zd(t){var e=!1;return function(){e||(e=!0,t.apply(void 0,arguments))}}var ea=_e().codes,Zd=ea.ERR_MISSING_ARGS,Xd=ea.ERR_STREAM_DESTROYED;function Xo(t){if(t)throw t}function Qd(t){return t.setHeader&&typeof t.abort=="function"}function ep(t,e,r,i){i=zd(i);var s=!1;t.on("close",function(){s=!0}),qi===void 0&&(qi=dr()),qi(t,{readable:e,writable:r},function(o){if(o)return i(o);s=!0,i()});var n=!1;return function(o){if(!s&&!n){if(n=!0,Qd(t))return t.abort();if(typeof t.destroy=="function")return t.destroy();i(o||new Xd("pipe"))}}}function Qo(t){t()}function tp(t,e){return t.pipe(e)}function rp(t){return!t.length||typeof t[t.length-1]!="function"?Xo:t.pop()}function ip(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];var i=rp(e);if(Array.isArray(e[0])&&(e=e[0]),e.length<2)throw new Zd("streams");var s,n=e.map(function(o,a){var l=a<e.length-1,u=a>0;return ep(o,l,u,function(p){s||(s=p),p&&n.forEach(Qo),!l&&(n.forEach(Qo),i(s))})});return e.reduce(tp)}ta.exports=ip});var ia=h((W,At)=>{var Dt=require("stream");process.env.READABLE_STREAM==="disable"&&Dt?(At.exports=Dt.Readable,Object.assign(At.exports,Dt),At.exports.Stream=Dt):(W=At.exports=gi(),W.Stream=Dt||W,W.Readable=W,W.Writable=fi(),W.Duplex=je(),W.Transform=Ai(),W.PassThrough=Zo(),W.finished=dr(),W.pipeline=ra())});var oa=h((Ub,na)=>{"use strict";var{Buffer:J}=require("buffer"),sa=Symbol.for("BufferList");function R(t){if(!(this instanceof R))return new R(t);R._init.call(this,t)}R._init=function(e){Object.defineProperty(this,sa,{value:!0}),this._bufs=[],this.length=0,e&&this.append(e)};R.prototype._new=function(e){return new R(e)};R.prototype._offset=function(e){if(e===0)return[0,0];let r=0;for(let i=0;i<this._bufs.length;i++){let s=r+this._bufs[i].length;if(e<s||i===this._bufs.length-1)return[i,e-r];r=s}};R.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};R.prototype.get=function(e){if(e>this.length||e<0)return;let r=this._offset(e);return this._bufs[r[0]][r[1]]};R.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)};R.prototype.copy=function(e,r,i,s){if((typeof i!="number"||i<0)&&(i=0),(typeof s!="number"||s>this.length)&&(s=this.length),i>=this.length||s<=0)return e||J.alloc(0);let n=!!e,o=this._offset(i),a=s-i,l=a,u=n&&r||0,p=o[1];if(i===0&&s===this.length){if(!n)return this._bufs.length===1?this._bufs[0]:J.concat(this._bufs,this.length);for(let f=0;f<this._bufs.length;f++)this._bufs[f].copy(e,u),u+=this._bufs[f].length;return e}if(l<=this._bufs[o[0]].length-p)return n?this._bufs[o[0]].copy(e,r,p,p+l):this._bufs[o[0]].slice(p,p+l);n||(e=J.allocUnsafe(a));for(let f=o[0];f<this._bufs.length;f++){let d=this._bufs[f].length-p;if(l>d)this._bufs[f].copy(e,u,p),u+=d;else{this._bufs[f].copy(e,u,p,p+l),u+=d;break}l-=d,p&&(p=0)}return e.length>u?e.slice(0,u):e};R.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),s=this._offset(r),n=this._bufs.slice(i[0],s[0]+1);return s[1]===0?n.pop():n[n.length-1]=n[n.length-1].slice(0,s[1]),i[1]!==0&&(n[0]=n[0].slice(i[1])),this._new(n)};R.prototype.toString=function(e,r,i){return this.slice(r,i).toString(e)};R.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};R.prototype.duplicate=function(){let e=this._new();for(let r=0;r<this._bufs.length;r++)e.append(this._bufs[r]);return e};R.prototype.append=function(e){if(e==null)return this;if(e.buffer)this._appendBuffer(J.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(J.from(e));return this};R.prototype._appendBuffer=function(e){this._bufs.push(e),this.length+=e.length};R.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=J.from([t]):typeof t=="string"?t=J.from(t,r):this._isBufferList(t)?t=t.slice():Array.isArray(t.buffer)?t=J.from(t.buffer,t.byteOffset,t.byteLength):J.isBuffer(t)||(t=J.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),s=i[0],n=i[1];for(;s<this._bufs.length;s++){let o=this._bufs[s];for(;n<o.length;)if(o.length-n>=t.length){let l=o.indexOf(t,n);if(l!==-1)return this._reverseOffset([s,l]);n=o.length-t.length+1}else{let l=this._reverseOffset([s,n]);if(this._match(l,t))return l;n++}n=0}return-1};R.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?R.prototype[r]=function(i,s){return this.slice(i,i+s)[r](0,s)}:R.prototype[r]=function(i=0){return this.slice(i,i+t[r])[r](0)}})(e)})();R.prototype._isBufferList=function(e){return e instanceof R||R.isBufferList(e)};R.isBufferList=function(e){return e!=null&&e[sa]};na.exports=R});var aa=h((Hb,_r)=>{"use strict";var Mi=ia().Duplex,sp=ke(),qt=oa();function F(t){if(!(this instanceof F))return new F(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}qt._init.call(this,t),Mi.call(this)}sp(F,Mi);Object.assign(F.prototype,qt.prototype);F.prototype._new=function(e){return new F(e)};F.prototype._write=function(e,r,i){this._appendBuffer(e),typeof i=="function"&&i()};F.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)};F.prototype.end=function(e){Mi.prototype.end.call(this,e),this._callback&&(this._callback(null,this.slice()),this._callback=null)};F.prototype._destroy=function(e,r){this._bufs.length=0,this.length=0,r(e)};F.prototype._isBufferList=function(e){return e instanceof F||e instanceof qt||F.isBufferList(e)};F.isBufferList=qt.isBufferList;_r.exports=F;_r.exports.BufferListStream=F;_r.exports.BufferList=qt});var ga=h((ty,pa)=>{pa.exports=da;da.sync=ap;var ca=require("fs");function op(t,e){var r=e.pathExt!==void 0?e.pathExt:process.env.PATHEXT;if(!r||(r=r.split(";"),r.indexOf("")!==-1))return!0;for(var i=0;i<r.length;i++){var s=r[i].toLowerCase();if(s&&t.substr(-s.length).toLowerCase()===s)return!0}return!1}function fa(t,e,r){return!t.isSymbolicLink()&&!t.isFile()?!1:op(e,r)}function da(t,e,r){ca.stat(t,function(i,s){r(i,i?!1:fa(s,t,e))})}function ap(t,e){return fa(ca.statSync(t),t,e)}});var wa=h((ry,va)=>{va.exports=ba;ba.sync=lp;var ma=require("fs");function ba(t,e,r){ma.stat(t,function(i,s){r(i,i?!1:ya(s,e))})}function lp(t,e){return ya(ma.statSync(t),e)}function ya(t,e){return t.isFile()&&up(t,e)}function up(t,e){var r=t.mode,i=t.uid,s=t.gid,n=e.uid!==void 0?e.uid:process.getuid&&process.getuid(),o=e.gid!==void 0?e.gid:process.getgid&&process.getgid(),a=parseInt("100",8),l=parseInt("010",8),u=parseInt("001",8),p=a|l,f=r&u||r&l&&s===o||r&a&&i===n||r&p&&n===0;return f}});var xa=h((sy,_a)=>{var iy=require("fs"),Er;process.platform==="win32"||global.TESTING_WINDOWS?Er=ga():Er=wa();_a.exports=$i;$i.sync=hp;function $i(t,e,r){if(typeof e=="function"&&(r=e,e={}),!r){if(typeof Promise!="function")throw new TypeError("callback not provided");return new Promise(function(i,s){$i(t,e||{},function(n,o){n?s(n):i(o)})})}Er(t,e||{},function(i,s){i&&(i.code==="EACCES"||e&&e.ignoreErrors)&&(i=null,s=!1),r(i,s)})}function hp(t,e){try{return Er.sync(t,e||{})}catch(r){if(e&&e.ignoreErrors||r.code==="EACCES")return!1;throw r}}});var Da=h((ny,Ca)=>{var at=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys",Sa=require("path"),cp=at?";":":",Ea=xa(),Ta=t=>Object.assign(new Error(`not found: ${t}`),{code:"ENOENT"}),Oa=(t,e)=>{let r=e.colon||cp,i=t.match(/\//)||at&&t.match(/\\/)?[""]:[...at?[process.cwd()]:[],...(e.path||process.env.PATH||"").split(r)],s=at?e.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",n=at?s.split(r):[""];return at&&t.indexOf(".")!==-1&&n[0]!==""&&n.unshift(""),{pathEnv:i,pathExt:n,pathExtExe:s}},Ra=(t,e,r)=>{typeof e=="function"&&(r=e,e={}),e||(e={});let{pathEnv:i,pathExt:s,pathExtExe:n}=Oa(t,e),o=[],a=u=>new Promise((p,f)=>{if(u===i.length)return e.all&&o.length?p(o):f(Ta(t));let d=i[u],g=/^".*"$/.test(d)?d.slice(1,-1):d,v=Sa.join(g,t),b=!g&&/^\.[\\\/]/.test(t)?t.slice(0,2)+v:v;p(l(b,u,0))}),l=(u,p,f)=>new Promise((d,g)=>{if(f===s.length)return d(a(p+1));let v=s[f];Ea(u+v,{pathExt:n},(b,S)=>{if(!b&&S)if(e.all)o.push(u+v);else return d(u+v);return d(l(u,p,f+1))})});return r?a(0).then(u=>r(null,u),r):a(0)},fp=(t,e)=>{e=e||{};let{pathEnv:r,pathExt:i,pathExtExe:s}=Oa(t,e),n=[];for(let o=0;o<r.length;o++){let a=r[o],l=/^".*"$/.test(a)?a.slice(1,-1):a,u=Sa.join(l,t),p=!l&&/^\.[\\\/]/.test(t)?t.slice(0,2)+u:u;for(let f=0;f<i.length;f++){let d=p+i[f];try{if(Ea.sync(d,{pathExt:s}))if(e.all)n.push(d);else return d}catch{}}}if(e.all&&n.length)return n;if(e.nothrow)return null;throw Ta(t)};Ca.exports=Ra;Ra.sync=fp});var qa=h((oy,ki)=>{"use strict";var Aa=(t={})=>{let e=t.env||process.env;return(t.platform||process.platform)!=="win32"?"PATH":Object.keys(e).reverse().find(i=>i.toUpperCase()==="PATH")||"Path"};ki.exports=Aa;ki.exports.default=Aa});var $a=h((ay,Pa)=>{"use strict";var Ma=require("path"),dp=Da(),pp=qa();function Ia(t,e){let r=t.options.env||process.env,i=process.cwd(),s=t.options.cwd!=null,n=s&&process.chdir!==void 0&&!process.chdir.disabled;if(n)try{process.chdir(t.options.cwd)}catch{}let o;try{o=dp.sync(t.command,{path:r[pp({env:r})],pathExt:e?Ma.delimiter:void 0})}catch{}finally{n&&process.chdir(i)}return o&&(o=Ma.resolve(s?t.options.cwd:"",o)),o}function gp(t){return Ia(t)||Ia(t,!0)}Pa.exports=gp});var ka=h((ly,Li)=>{"use strict";var ji=/([()\][%!^"`<>&|;, *?])/g;function mp(t){return t=t.replace(ji,"^$1"),t}function bp(t,e){return t=`${t}`,t=t.replace(/(\\*)"/g,'$1$1\\"'),t=t.replace(/(\\*)$/,"$1$1"),t=`"${t}"`,t=t.replace(ji,"^$1"),e&&(t=t.replace(ji,"^$1")),t}Li.exports.command=mp;Li.exports.argument=bp});var La=h((uy,ja)=>{"use strict";ja.exports=/^#!(.*)/});var Ba=h((hy,Fa)=>{"use strict";var yp=La();Fa.exports=(t="")=>{let e=t.match(yp);if(!e)return null;let[r,i]=e[0].replace(/#! ?/,"").split(" "),s=r.split("/").pop();return s==="env"?i:i?`${s} ${i}`:s}});var Ua=h((cy,Na)=>{"use strict";var Fi=require("fs"),vp=Ba();function wp(t){let r=Buffer.alloc(150),i;try{i=Fi.openSync(t,"r"),Fi.readSync(i,r,0,150,0),Fi.closeSync(i)}catch{}return vp(r.toString())}Na.exports=wp});var Ya=h((fy,Ga)=>{"use strict";var _p=require("path"),Ha=$a(),Wa=ka(),xp=Ua(),Sp=process.platform==="win32",Ep=/\.(?:com|exe)$/i,Tp=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function Op(t){t.file=Ha(t);let e=t.file&&xp(t.file);return e?(t.args.unshift(t.file),t.command=e,Ha(t)):t.file}function Rp(t){if(!Sp)return t;let e=Op(t),r=!Ep.test(e);if(t.options.forceShell||r){let i=Tp.test(e);t.command=_p.normalize(t.command),t.command=Wa.command(t.command),t.args=t.args.map(n=>Wa.argument(n,i));let s=[t.command].concat(t.args).join(" ");t.args=["/d","/s","/c",`"${s}"`],t.command=process.env.comspec||"cmd.exe",t.options.windowsVerbatimArguments=!0}return t}function Cp(t,e,r){e&&!Array.isArray(e)&&(r=e,e=null),e=e?e.slice(0):[],r=Object.assign({},r);let i={command:t,args:e,options:r,file:void 0,original:{command:t,args:e}};return r.shell?i:Rp(i)}Ga.exports=Cp});var Ka=h((dy,Ja)=>{"use strict";var Bi=process.platform==="win32";function Ni(t,e){return Object.assign(new Error(`${e} ${t.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${e} ${t.command}`,path:t.command,spawnargs:t.args})}function Dp(t,e){if(!Bi)return;let r=t.emit;t.emit=function(i,s){if(i==="exit"){let n=Va(s,e,"spawn");if(n)return r.call(t,"error",n)}return r.apply(t,arguments)}}function Va(t,e){return Bi&&t===1&&!e.file?Ni(e.original,"spawn"):null}function Ap(t,e){return Bi&&t===1&&!e.file?Ni(e.original,"spawnSync"):null}Ja.exports={hookChildProcess:Dp,verifyENOENT:Va,verifyENOENTSync:Ap,notFoundError:Ni}});var Xa=h((py,lt)=>{"use strict";var za=require("child_process"),Ui=Ya(),Hi=Ka();function Za(t,e,r){let i=Ui(t,e,r),s=za.spawn(i.command,i.args,i.options);return Hi.hookChildProcess(s,i),s}function qp(t,e,r){let i=Ui(t,e,r),s=za.spawnSync(i.command,i.args,i.options);return s.error=s.error||Hi.verifyENOENTSync(s.status,i),s}lt.exports=Za;lt.exports.spawn=Za;lt.exports.sync=qp;lt.exports._parse=Ui;lt.exports._enoent=Hi});var q=h((My,ol)=>{"use strict";var{FORCE_COLOR:Bp,NODE_DISABLE_COLORS:Np,TERM:Up}=process.env,T={enabled:!Np&&Up!=="dumb"&&Bp!=="0",reset:C(0,0),bold:C(1,22),dim:C(2,22),italic:C(3,23),underline:C(4,24),inverse:C(7,27),hidden:C(8,28),strikethrough:C(9,29),black:C(30,39),red:C(31,39),green:C(32,39),yellow:C(33,39),blue:C(34,39),magenta:C(35,39),cyan:C(36,39),white:C(37,39),gray:C(90,39),grey:C(90,39),bgBlack:C(40,49),bgRed:C(41,49),bgGreen:C(42,49),bgYellow:C(43,49),bgBlue:C(44,49),bgMagenta:C(45,49),bgCyan:C(46,49),bgWhite:C(47,49)};function nl(t,e){let r=0,i,s="",n="";for(;r<t.length;r++)i=t[r],s+=i.open,n+=i.close,e.includes(i.close)&&(e=e.replace(i.rgx,i.close+i.open));return s+e+n}function Hp(t,e){let r={has:t,keys:e};return r.reset=T.reset.bind(r),r.bold=T.bold.bind(r),r.dim=T.dim.bind(r),r.italic=T.italic.bind(r),r.underline=T.underline.bind(r),r.inverse=T.inverse.bind(r),r.hidden=T.hidden.bind(r),r.strikethrough=T.strikethrough.bind(r),r.black=T.black.bind(r),r.red=T.red.bind(r),r.green=T.green.bind(r),r.yellow=T.yellow.bind(r),r.blue=T.blue.bind(r),r.magenta=T.magenta.bind(r),r.cyan=T.cyan.bind(r),r.white=T.white.bind(r),r.gray=T.gray.bind(r),r.grey=T.grey.bind(r),r.bgBlack=T.bgBlack.bind(r),r.bgRed=T.bgRed.bind(r),r.bgGreen=T.bgGreen.bind(r),r.bgYellow=T.bgYellow.bind(r),r.bgBlue=T.bgBlue.bind(r),r.bgMagenta=T.bgMagenta.bind(r),r.bgCyan=T.bgCyan.bind(r),r.bgWhite=T.bgWhite.bind(r),r}function C(t,e){let r={open:`\x1B[${t}m`,close:`\x1B[${e}m`,rgx:new RegExp(`\\x1b\\[${e}m`,"g")};return function(i){return this!==void 0&&this.has!==void 0?(this.has.includes(t)||(this.has.push(t),this.keys.push(r)),i===void 0?this:T.enabled?nl(this.keys,i+""):i+""):i===void 0?Hp([t],[r]):T.enabled?nl([r],i+""):i+""}}ol.exports=T});var ll=h((Iy,al)=>{"use strict";al.exports=(t,e)=>{if(!(t.meta&&t.name!=="escape")){if(t.ctrl){if(t.name==="a")return"first";if(t.name==="c"||t.name==="d")return"abort";if(t.name==="e")return"last";if(t.name==="g")return"reset"}if(e){if(t.name==="j")return"down";if(t.name==="k")return"up"}return t.name==="return"||t.name==="enter"?"submit":t.name==="backspace"?"delete":t.name==="delete"?"deleteForward":t.name==="abort"?"abort":t.name==="escape"?"exit":t.name==="tab"?"next":t.name==="pagedown"?"nextPage":t.name==="pageup"?"prevPage":t.name==="home"?"home":t.name==="end"?"end":t.name==="up"?"up":t.name==="down"?"down":t.name==="right"?"right":t.name==="left"?"left":!1}}});var Tr=h((Py,ul)=>{"use strict";ul.exports=t=>{let e=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PRZcf-ntqry=><~]))"].join("|"),r=new RegExp(e,"g");return typeof t=="string"?t.replace(r,""):t}});var I=h(($y,hl)=>{"use strict";var Qi="\x1B",M=`${Qi}[`,Wp="\x07",es={to(t,e){return e?`${M}${e+1};${t+1}H`:`${M}${t+1}G`},move(t,e){let r="";return t<0?r+=`${M}${-t}D`:t>0&&(r+=`${M}${t}C`),e<0?r+=`${M}${-e}A`:e>0&&(r+=`${M}${e}B`),r},up:(t=1)=>`${M}${t}A`,down:(t=1)=>`${M}${t}B`,forward:(t=1)=>`${M}${t}C`,backward:(t=1)=>`${M}${t}D`,nextLine:(t=1)=>`${M}E`.repeat(t),prevLine:(t=1)=>`${M}F`.repeat(t),left:`${M}G`,hide:`${M}?25l`,show:`${M}?25h`,save:`${Qi}7`,restore:`${Qi}8`},Gp={up:(t=1)=>`${M}S`.repeat(t),down:(t=1)=>`${M}T`.repeat(t)},Yp={screen:`${M}2J`,up:(t=1)=>`${M}1J`.repeat(t),down:(t=1)=>`${M}J`.repeat(t),line:`${M}2K`,lineEnd:`${M}K`,lineStart:`${M}1K`,lines(t){let e="";for(let r=0;r<t;r++)e+=this.line+(r<t-1?es.up():"");return t&&(e+=es.left),e}};hl.exports={cursor:es,scroll:Gp,erase:Yp,beep:Wp}});var gl=h((ky,pl)=>{"use strict";function Vp(t,e){var r=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=Jp(t))||e&&t&&typeof t.length=="number"){r&&(t=r);var i=0,s=function(){};return{s,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(u){throw u},f:s}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
9
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var n=!0,o=!1,a;return{s:function(){r=r.call(t)},n:function(){var u=r.next();return n=u.done,u},e:function(u){o=!0,a=u},f:function(){try{!n&&r.return!=null&&r.return()}finally{if(o)throw a}}}}function Jp(t,e){if(t){if(typeof t=="string")return cl(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return cl(t,e)}}function cl(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,i=new Array(e);r<e;r++)i[r]=t[r];return i}var Kp=Tr(),dl=I(),fl=dl.erase,zp=dl.cursor,Zp=t=>[...Kp(t)].length;pl.exports=function(t,e){if(!e)return fl.line+zp.to(0);let r=0,i=t.split(/\r?\n/);var s=Vp(i),n;try{for(s.s();!(n=s.n()).done;){let o=n.value;r+=1+Math.floor(Math.max(Zp(o)-1,0)/e)}}catch(o){s.e(o)}finally{s.f()}return fl.lines(r)}});var ts=h((jy,ml)=>{"use strict";var jt={arrowUp:"\u2191",arrowDown:"\u2193",arrowLeft:"\u2190",arrowRight:"\u2192",radioOn:"\u25C9",radioOff:"\u25EF",tick:"\u2714",cross:"\u2716",ellipsis:"\u2026",pointerSmall:"\u203A",line:"\u2500",pointer:"\u276F"},Xp={arrowUp:jt.arrowUp,arrowDown:jt.arrowDown,arrowLeft:jt.arrowLeft,arrowRight:jt.arrowRight,radioOn:"(*)",radioOff:"( )",tick:"\u221A",cross:"\xD7",ellipsis:"...",pointerSmall:"\xBB",line:"\u2500",pointer:">"},Qp=process.platform==="win32"?Xp:jt;ml.exports=Qp});var yl=h((Ly,bl)=>{"use strict";var ut=q(),Ge=ts(),rs=Object.freeze({password:{scale:1,render:t=>"*".repeat(t.length)},emoji:{scale:2,render:t=>"\u{1F603}".repeat(t.length)},invisible:{scale:0,render:t=>""},default:{scale:1,render:t=>`${t}`}}),eg=t=>rs[t]||rs.default,Lt=Object.freeze({aborted:ut.red(Ge.cross),done:ut.green(Ge.tick),exited:ut.yellow(Ge.cross),default:ut.cyan("?")}),tg=(t,e,r)=>e?Lt.aborted:r?Lt.exited:t?Lt.done:Lt.default,rg=t=>ut.gray(t?Ge.ellipsis:Ge.pointerSmall),ig=(t,e)=>ut.gray(t?e?Ge.pointerSmall:"+":Ge.line);bl.exports={styles:rs,render:eg,symbols:Lt,symbol:tg,delimiter:rg,item:ig}});var wl=h((Fy,vl)=>{"use strict";var sg=Tr();vl.exports=function(t,e){let r=String(sg(t)||"").split(/\r?\n/);return e?r.map(i=>Math.ceil(i.length/e)).reduce((i,s)=>i+s):r.length}});var xl=h((By,_l)=>{"use strict";_l.exports=(t,e={})=>{let r=Number.isSafeInteger(parseInt(e.margin))?new Array(parseInt(e.margin)).fill(" ").join(""):e.margin||"",i=e.width;return(t||"").split(/\r?\n/g).map(s=>s.split(/\s+/g).reduce((n,o)=>(o.length+r.length>=i||n[n.length-1].length+o.length+1<i?n[n.length-1]+=` ${o}`:n.push(`${r}${o}`),n),[r]).join(`
10
- `)).join(`
11
- `)}});var El=h((Ny,Sl)=>{"use strict";Sl.exports=(t,e,r)=>{r=r||e;let i=Math.min(e-r,t-Math.floor(r/2));i<0&&(i=0);let s=Math.min(i+r,e);return{startIndex:i,endIndex:s}}});var z=h((Uy,Tl)=>{"use strict";Tl.exports={action:ll(),clear:gl(),style:yl(),strip:Tr(),figures:ts(),lines:wl(),wrap:xl(),entriesToDisplay:El()}});var pe=h((Hy,Cl)=>{"use strict";var Ol=require("readline"),ng=z(),og=ng.action,ag=require("events"),Rl=I(),lg=Rl.beep,ug=Rl.cursor,hg=q(),is=class extends ag{constructor(e={}){super(),this.firstRender=!0,this.in=e.stdin||process.stdin,this.out=e.stdout||process.stdout,this.onRender=(e.onRender||(()=>{})).bind(this);let r=Ol.createInterface({input:this.in,escapeCodeTimeout:50});Ol.emitKeypressEvents(this.in,r),this.in.isTTY&&this.in.setRawMode(!0);let i=["SelectPrompt","MultiselectPrompt"].indexOf(this.constructor.name)>-1,s=(n,o)=>{let a=og(o,i);a===!1?this._&&this._(n,o):typeof this[a]=="function"?this[a](o):this.bell()};this.close=()=>{this.out.write(ug.show),this.in.removeListener("keypress",s),this.in.isTTY&&this.in.setRawMode(!1),r.close(),this.emit(this.aborted?"abort":this.exited?"exit":"submit",this.value),this.closed=!0},this.in.on("keypress",s)}fire(){this.emit("state",{value:this.value,aborted:!!this.aborted,exited:!!this.exited})}bell(){this.out.write(lg)}render(){this.onRender(hg),this.firstRender&&(this.firstRender=!1)}};Cl.exports=is});var Il=h((Wy,Ml)=>{"use strict";function Dl(t,e,r,i,s,n,o){try{var a=t[n](o),l=a.value}catch(u){r(u);return}a.done?e(l):Promise.resolve(l).then(i,s)}function Al(t){return function(){var e=this,r=arguments;return new Promise(function(i,s){var n=t.apply(e,r);function o(l){Dl(n,i,s,o,a,"next",l)}function a(l){Dl(n,i,s,o,a,"throw",l)}o(void 0)})}}var Or=q(),cg=pe(),ql=I(),fg=ql.erase,Ft=ql.cursor,Rr=z(),ss=Rr.style,ns=Rr.clear,dg=Rr.lines,pg=Rr.figures,os=class extends cg{constructor(e={}){super(e),this.transform=ss.render(e.style),this.scale=this.transform.scale,this.msg=e.message,this.initial=e.initial||"",this.validator=e.validate||(()=>!0),this.value="",this.errorMsg=e.error||"Please Enter A Valid Value",this.cursor=Number(!!this.initial),this.cursorOffset=0,this.clear=ns("",this.out.columns),this.render()}set value(e){!e&&this.initial?(this.placeholder=!0,this.rendered=Or.gray(this.transform.render(this.initial))):(this.placeholder=!1,this.rendered=this.transform.render(e)),this._value=e,this.fire()}get value(){return this._value}reset(){this.value="",this.cursor=Number(!!this.initial),this.cursorOffset=0,this.fire(),this.render()}exit(){this.abort()}abort(){this.value=this.value||this.initial,this.done=this.aborted=!0,this.error=!1,this.red=!1,this.fire(),this.render(),this.out.write(`
12
- `),this.close()}validate(){var e=this;return Al(function*(){let r=yield e.validator(e.value);typeof r=="string"&&(e.errorMsg=r,r=!1),e.error=!r})()}submit(){var e=this;return Al(function*(){if(e.value=e.value||e.initial,e.cursorOffset=0,e.cursor=e.rendered.length,yield e.validate(),e.error){e.red=!0,e.fire(),e.render();return}e.done=!0,e.aborted=!1,e.fire(),e.render(),e.out.write(`
13
- `),e.close()})()}next(){if(!this.placeholder)return this.bell();this.value=this.initial,this.cursor=this.rendered.length,this.fire(),this.render()}moveCursor(e){this.placeholder||(this.cursor=this.cursor+e,this.cursorOffset+=e)}_(e,r){let i=this.value.slice(0,this.cursor),s=this.value.slice(this.cursor);this.value=`${i}${e}${s}`,this.red=!1,this.cursor=this.placeholder?0:i.length+1,this.render()}delete(){if(this.isCursorAtStart())return this.bell();let e=this.value.slice(0,this.cursor-1),r=this.value.slice(this.cursor);this.value=`${e}${r}`,this.red=!1,this.isCursorAtStart()?this.cursorOffset=0:(this.cursorOffset++,this.moveCursor(-1)),this.render()}deleteForward(){if(this.cursor*this.scale>=this.rendered.length||this.placeholder)return this.bell();let e=this.value.slice(0,this.cursor),r=this.value.slice(this.cursor+1);this.value=`${e}${r}`,this.red=!1,this.isCursorAtEnd()?this.cursorOffset=0:this.cursorOffset++,this.render()}first(){this.cursor=0,this.render()}last(){this.cursor=this.value.length,this.render()}left(){if(this.cursor<=0||this.placeholder)return this.bell();this.moveCursor(-1),this.render()}right(){if(this.cursor*this.scale>=this.rendered.length||this.placeholder)return this.bell();this.moveCursor(1),this.render()}isCursorAtStart(){return this.cursor===0||this.placeholder&&this.cursor===1}isCursorAtEnd(){return this.cursor===this.rendered.length||this.placeholder&&this.cursor===this.rendered.length+1}render(){this.closed||(this.firstRender||(this.outputError&&this.out.write(Ft.down(dg(this.outputError,this.out.columns)-1)+ns(this.outputError,this.out.columns)),this.out.write(ns(this.outputText,this.out.columns))),super.render(),this.outputError="",this.outputText=[ss.symbol(this.done,this.aborted),Or.bold(this.msg),ss.delimiter(this.done),this.red?Or.red(this.rendered):this.rendered].join(" "),this.error&&(this.outputError+=this.errorMsg.split(`
14
- `).reduce((e,r,i)=>e+`
15
- ${i?" ":pg.pointerSmall} ${Or.red().italic(r)}`,"")),this.out.write(fg.line+Ft.to(0)+this.outputText+Ft.save+this.outputError+Ft.restore+Ft.move(this.cursorOffset,0)))}};Ml.exports=os});var jl=h((Gy,kl)=>{"use strict";var ge=q(),gg=pe(),Bt=z(),Pl=Bt.style,$l=Bt.clear,Cr=Bt.figures,mg=Bt.wrap,bg=Bt.entriesToDisplay,yg=I(),vg=yg.cursor,as=class extends gg{constructor(e={}){super(e),this.msg=e.message,this.hint=e.hint||"- Use arrow-keys. Return to submit.",this.warn=e.warn||"- This option is disabled",this.cursor=e.initial||0,this.choices=e.choices.map((r,i)=>(typeof r=="string"&&(r={title:r,value:i}),{title:r&&(r.title||r.value||r),value:r&&(r.value===void 0?i:r.value),description:r&&r.description,selected:r&&r.selected,disabled:r&&r.disabled})),this.optionsPerPage=e.optionsPerPage||10,this.value=(this.choices[this.cursor]||{}).value,this.clear=$l("",this.out.columns),this.render()}moveCursor(e){this.cursor=e,this.value=this.choices[e].value,this.fire()}reset(){this.moveCursor(0),this.fire(),this.render()}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.fire(),this.render(),this.out.write(`
16
- `),this.close()}submit(){this.selection.disabled?this.bell():(this.done=!0,this.aborted=!1,this.fire(),this.render(),this.out.write(`
17
- `),this.close())}first(){this.moveCursor(0),this.render()}last(){this.moveCursor(this.choices.length-1),this.render()}up(){this.cursor===0?this.moveCursor(this.choices.length-1):this.moveCursor(this.cursor-1),this.render()}down(){this.cursor===this.choices.length-1?this.moveCursor(0):this.moveCursor(this.cursor+1),this.render()}next(){this.moveCursor((this.cursor+1)%this.choices.length),this.render()}_(e,r){if(e===" ")return this.submit()}get selection(){return this.choices[this.cursor]}render(){if(this.closed)return;this.firstRender?this.out.write(vg.hide):this.out.write($l(this.outputText,this.out.columns)),super.render();let e=bg(this.cursor,this.choices.length,this.optionsPerPage),r=e.startIndex,i=e.endIndex;if(this.outputText=[Pl.symbol(this.done,this.aborted),ge.bold(this.msg),Pl.delimiter(!1),this.done?this.selection.title:this.selection.disabled?ge.yellow(this.warn):ge.gray(this.hint)].join(" "),!this.done){this.outputText+=`
18
- `;for(let s=r;s<i;s++){let n,o,a="",l=this.choices[s];s===r&&r>0?o=Cr.arrowUp:s===i-1&&i<this.choices.length?o=Cr.arrowDown:o=" ",l.disabled?(n=this.cursor===s?ge.gray().underline(l.title):ge.strikethrough().gray(l.title),o=(this.cursor===s?ge.bold().gray(Cr.pointer)+" ":" ")+o):(n=this.cursor===s?ge.cyan().underline(l.title):l.title,o=(this.cursor===s?ge.cyan(Cr.pointer)+" ":" ")+o,l.description&&this.cursor===s&&(a=` - ${l.description}`,(o.length+n.length+a.length>=this.out.columns||l.description.split(/\r?\n/).length>1)&&(a=`
19
- `+mg(l.description,{margin:3,width:this.out.columns})))),this.outputText+=`${o} ${n}${ge.gray(a)}
20
- `}}this.out.write(this.outputText)}};kl.exports=as});var Hl=h((Yy,Ul)=>{"use strict";var Dr=q(),wg=pe(),Bl=z(),Ll=Bl.style,_g=Bl.clear,Nl=I(),Fl=Nl.cursor,xg=Nl.erase,ls=class extends wg{constructor(e={}){super(e),this.msg=e.message,this.value=!!e.initial,this.active=e.active||"on",this.inactive=e.inactive||"off",this.initialValue=this.value,this.render()}reset(){this.value=this.initialValue,this.fire(),this.render()}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.fire(),this.render(),this.out.write(`
21
- `),this.close()}submit(){this.done=!0,this.aborted=!1,this.fire(),this.render(),this.out.write(`
22
- `),this.close()}deactivate(){if(this.value===!1)return this.bell();this.value=!1,this.render()}activate(){if(this.value===!0)return this.bell();this.value=!0,this.render()}delete(){this.deactivate()}left(){this.deactivate()}right(){this.activate()}down(){this.deactivate()}up(){this.activate()}next(){this.value=!this.value,this.fire(),this.render()}_(e,r){if(e===" ")this.value=!this.value;else if(e==="1")this.value=!0;else if(e==="0")this.value=!1;else return this.bell();this.render()}render(){this.closed||(this.firstRender?this.out.write(Fl.hide):this.out.write(_g(this.outputText,this.out.columns)),super.render(),this.outputText=[Ll.symbol(this.done,this.aborted),Dr.bold(this.msg),Ll.delimiter(this.done),this.value?this.inactive:Dr.cyan().underline(this.inactive),Dr.gray("/"),this.value?Dr.cyan().underline(this.active):this.active].join(" "),this.out.write(xg.line+Fl.to(0)+this.outputText))}};Ul.exports=ls});var ne=h((Vy,Wl)=>{"use strict";var ht=class{constructor({token:e,date:r,parts:i,locales:s}){this.token=e,this.date=r||new Date,this.parts=i||[this],this.locales=s||{}}up(){}down(){}next(){let e=this.parts.indexOf(this);return this.parts.find((r,i)=>i>e&&r instanceof ht)}setTo(e){}prev(){let e=[].concat(this.parts).reverse(),r=e.indexOf(this);return e.find((i,s)=>s>r&&i instanceof ht)}toString(){return String(this.date)}};Wl.exports=ht});var Yl=h((Jy,Gl)=>{"use strict";var Sg=ne(),us=class extends Sg{constructor(e={}){super(e)}up(){this.date.setHours((this.date.getHours()+12)%24)}down(){this.up()}toString(){let e=this.date.getHours()>12?"pm":"am";return/\A/.test(this.token)?e.toUpperCase():e}};Gl.exports=us});var Jl=h((Ky,Vl)=>{"use strict";var Eg=ne(),Tg=t=>(t=t%10,t===1?"st":t===2?"nd":t===3?"rd":"th"),hs=class extends Eg{constructor(e={}){super(e)}up(){this.date.setDate(this.date.getDate()+1)}down(){this.date.setDate(this.date.getDate()-1)}setTo(e){this.date.setDate(parseInt(e.substr(-2)))}toString(){let e=this.date.getDate(),r=this.date.getDay();return this.token==="DD"?String(e).padStart(2,"0"):this.token==="Do"?e+Tg(e):this.token==="d"?r+1:this.token==="ddd"?this.locales.weekdaysShort[r]:this.token==="dddd"?this.locales.weekdays[r]:e}};Vl.exports=hs});var zl=h((zy,Kl)=>{"use strict";var Og=ne(),cs=class extends Og{constructor(e={}){super(e)}up(){this.date.setHours(this.date.getHours()+1)}down(){this.date.setHours(this.date.getHours()-1)}setTo(e){this.date.setHours(parseInt(e.substr(-2)))}toString(){let e=this.date.getHours();return/h/.test(this.token)&&(e=e%12||12),this.token.length>1?String(e).padStart(2,"0"):e}};Kl.exports=cs});var Xl=h((Zy,Zl)=>{"use strict";var Rg=ne(),fs=class extends Rg{constructor(e={}){super(e)}up(){this.date.setMilliseconds(this.date.getMilliseconds()+1)}down(){this.date.setMilliseconds(this.date.getMilliseconds()-1)}setTo(e){this.date.setMilliseconds(parseInt(e.substr(-this.token.length)))}toString(){return String(this.date.getMilliseconds()).padStart(4,"0").substr(0,this.token.length)}};Zl.exports=fs});var eu=h((Xy,Ql)=>{"use strict";var Cg=ne(),ds=class extends Cg{constructor(e={}){super(e)}up(){this.date.setMinutes(this.date.getMinutes()+1)}down(){this.date.setMinutes(this.date.getMinutes()-1)}setTo(e){this.date.setMinutes(parseInt(e.substr(-2)))}toString(){let e=this.date.getMinutes();return this.token.length>1?String(e).padStart(2,"0"):e}};Ql.exports=ds});var ru=h((Qy,tu)=>{"use strict";var Dg=ne(),ps=class extends Dg{constructor(e={}){super(e)}up(){this.date.setMonth(this.date.getMonth()+1)}down(){this.date.setMonth(this.date.getMonth()-1)}setTo(e){e=parseInt(e.substr(-2))-1,this.date.setMonth(e<0?0:e)}toString(){let e=this.date.getMonth(),r=this.token.length;return r===2?String(e+1).padStart(2,"0"):r===3?this.locales.monthsShort[e]:r===4?this.locales.months[e]:String(e+1)}};tu.exports=ps});var su=h((ev,iu)=>{"use strict";var Ag=ne(),gs=class extends Ag{constructor(e={}){super(e)}up(){this.date.setSeconds(this.date.getSeconds()+1)}down(){this.date.setSeconds(this.date.getSeconds()-1)}setTo(e){this.date.setSeconds(parseInt(e.substr(-2)))}toString(){let e=this.date.getSeconds();return this.token.length>1?String(e).padStart(2,"0"):e}};iu.exports=gs});var ou=h((tv,nu)=>{"use strict";var qg=ne(),ms=class extends qg{constructor(e={}){super(e)}up(){this.date.setFullYear(this.date.getFullYear()+1)}down(){this.date.setFullYear(this.date.getFullYear()-1)}setTo(e){this.date.setFullYear(e.substr(-4))}toString(){let e=String(this.date.getFullYear()).padStart(4,"0");return this.token.length===2?e.substr(-2):e}};nu.exports=ms});var lu=h((rv,au)=>{"use strict";au.exports={DatePart:ne(),Meridiem:Yl(),Day:Jl(),Hours:zl(),Milliseconds:Xl(),Minutes:eu(),Month:ru(),Seconds:su(),Year:ou()}});var yu=h((iv,bu)=>{"use strict";function uu(t,e,r,i,s,n,o){try{var a=t[n](o),l=a.value}catch(u){r(u);return}a.done?e(l):Promise.resolve(l).then(i,s)}function hu(t){return function(){var e=this,r=arguments;return new Promise(function(i,s){var n=t.apply(e,r);function o(l){uu(n,i,s,o,a,"next",l)}function a(l){uu(n,i,s,o,a,"throw",l)}o(void 0)})}}var bs=q(),Mg=pe(),vs=z(),cu=vs.style,fu=vs.clear,Ig=vs.figures,mu=I(),Pg=mu.erase,du=mu.cursor,me=lu(),pu=me.DatePart,$g=me.Meridiem,kg=me.Day,jg=me.Hours,Lg=me.Milliseconds,Fg=me.Minutes,Bg=me.Month,Ng=me.Seconds,Ug=me.Year,Hg=/\\(.)|"((?:\\["\\]|[^"])+)"|(D[Do]?|d{3,4}|d)|(M{1,4})|(YY(?:YY)?)|([aA])|([Hh]{1,2})|(m{1,2})|(s{1,2})|(S{1,4})|./g,gu={1:({token:t})=>t.replace(/\\(.)/g,"$1"),2:t=>new kg(t),3:t=>new Bg(t),4:t=>new Ug(t),5:t=>new $g(t),6:t=>new jg(t),7:t=>new Fg(t),8:t=>new Ng(t),9:t=>new Lg(t)},Wg={months:"January,February,March,April,May,June,July,August,September,October,November,December".split(","),monthsShort:"Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec".split(","),weekdays:"Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday".split(","),weekdaysShort:"Sun,Mon,Tue,Wed,Thu,Fri,Sat".split(",")},ys=class extends Mg{constructor(e={}){super(e),this.msg=e.message,this.cursor=0,this.typed="",this.locales=Object.assign(Wg,e.locales),this._date=e.initial||new Date,this.errorMsg=e.error||"Please Enter A Valid Value",this.validator=e.validate||(()=>!0),this.mask=e.mask||"YYYY-MM-DD HH:mm:ss",this.clear=fu("",this.out.columns),this.render()}get value(){return this.date}get date(){return this._date}set date(e){e&&this._date.setTime(e.getTime())}set mask(e){let r;for(this.parts=[];r=Hg.exec(e);){let s=r.shift(),n=r.findIndex(o=>o!=null);this.parts.push(n in gu?gu[n]({token:r[n]||s,date:this.date,parts:this.parts,locales:this.locales}):r[n]||s)}let i=this.parts.reduce((s,n)=>(typeof n=="string"&&typeof s[s.length-1]=="string"?s[s.length-1]+=n:s.push(n),s),[]);this.parts.splice(0),this.parts.push(...i),this.reset()}moveCursor(e){this.typed="",this.cursor=e,this.fire()}reset(){this.moveCursor(this.parts.findIndex(e=>e instanceof pu)),this.fire(),this.render()}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.error=!1,this.fire(),this.render(),this.out.write(`
23
- `),this.close()}validate(){var e=this;return hu(function*(){let r=yield e.validator(e.value);typeof r=="string"&&(e.errorMsg=r,r=!1),e.error=!r})()}submit(){var e=this;return hu(function*(){if(yield e.validate(),e.error){e.color="red",e.fire(),e.render();return}e.done=!0,e.aborted=!1,e.fire(),e.render(),e.out.write(`
24
- `),e.close()})()}up(){this.typed="",this.parts[this.cursor].up(),this.render()}down(){this.typed="",this.parts[this.cursor].down(),this.render()}left(){let e=this.parts[this.cursor].prev();if(e==null)return this.bell();this.moveCursor(this.parts.indexOf(e)),this.render()}right(){let e=this.parts[this.cursor].next();if(e==null)return this.bell();this.moveCursor(this.parts.indexOf(e)),this.render()}next(){let e=this.parts[this.cursor].next();this.moveCursor(e?this.parts.indexOf(e):this.parts.findIndex(r=>r instanceof pu)),this.render()}_(e){/\d/.test(e)&&(this.typed+=e,this.parts[this.cursor].setTo(this.typed),this.render())}render(){this.closed||(this.firstRender?this.out.write(du.hide):this.out.write(fu(this.outputText,this.out.columns)),super.render(),this.outputText=[cu.symbol(this.done,this.aborted),bs.bold(this.msg),cu.delimiter(!1),this.parts.reduce((e,r,i)=>e.concat(i===this.cursor&&!this.done?bs.cyan().underline(r.toString()):r),[]).join("")].join(" "),this.error&&(this.outputText+=this.errorMsg.split(`
25
- `).reduce((e,r,i)=>e+`
26
- ${i?" ":Ig.pointerSmall} ${bs.red().italic(r)}`,"")),this.out.write(Pg.line+du.to(0)+this.outputText))}};bu.exports=ys});var Tu=h((sv,Eu)=>{"use strict";function vu(t,e,r,i,s,n,o){try{var a=t[n](o),l=a.value}catch(u){r(u);return}a.done?e(l):Promise.resolve(l).then(i,s)}function wu(t){return function(){var e=this,r=arguments;return new Promise(function(i,s){var n=t.apply(e,r);function o(l){vu(n,i,s,o,a,"next",l)}function a(l){vu(n,i,s,o,a,"throw",l)}o(void 0)})}}var Ar=q(),Gg=pe(),Su=I(),qr=Su.cursor,Yg=Su.erase,Mr=z(),ws=Mr.style,Vg=Mr.figures,_u=Mr.clear,Jg=Mr.lines,Kg=/[0-9]/,_s=t=>t!==void 0,xu=(t,e)=>{let r=Math.pow(10,e);return Math.round(t*r)/r},xs=class extends Gg{constructor(e={}){super(e),this.transform=ws.render(e.style),this.msg=e.message,this.initial=_s(e.initial)?e.initial:"",this.float=!!e.float,this.round=e.round||2,this.inc=e.increment||1,this.min=_s(e.min)?e.min:-1/0,this.max=_s(e.max)?e.max:1/0,this.errorMsg=e.error||"Please Enter A Valid Value",this.validator=e.validate||(()=>!0),this.color="cyan",this.value="",this.typed="",this.lastHit=0,this.render()}set value(e){!e&&e!==0?(this.placeholder=!0,this.rendered=Ar.gray(this.transform.render(`${this.initial}`)),this._value=""):(this.placeholder=!1,this.rendered=this.transform.render(`${xu(e,this.round)}`),this._value=xu(e,this.round)),this.fire()}get value(){return this._value}parse(e){return this.float?parseFloat(e):parseInt(e)}valid(e){return e==="-"||e==="."&&this.float||Kg.test(e)}reset(){this.typed="",this.value="",this.fire(),this.render()}exit(){this.abort()}abort(){let e=this.value;this.value=e!==""?e:this.initial,this.done=this.aborted=!0,this.error=!1,this.fire(),this.render(),this.out.write(`
27
- `),this.close()}validate(){var e=this;return wu(function*(){let r=yield e.validator(e.value);typeof r=="string"&&(e.errorMsg=r,r=!1),e.error=!r})()}submit(){var e=this;return wu(function*(){if(yield e.validate(),e.error){e.color="red",e.fire(),e.render();return}let r=e.value;e.value=r!==""?r:e.initial,e.done=!0,e.aborted=!1,e.error=!1,e.fire(),e.render(),e.out.write(`
28
- `),e.close()})()}up(){if(this.typed="",this.value===""&&(this.value=this.min-this.inc),this.value>=this.max)return this.bell();this.value+=this.inc,this.color="cyan",this.fire(),this.render()}down(){if(this.typed="",this.value===""&&(this.value=this.min+this.inc),this.value<=this.min)return this.bell();this.value-=this.inc,this.color="cyan",this.fire(),this.render()}delete(){let e=this.value.toString();if(e.length===0)return this.bell();this.value=this.parse(e=e.slice(0,-1))||"",this.value!==""&&this.value<this.min&&(this.value=this.min),this.color="cyan",this.fire(),this.render()}next(){this.value=this.initial,this.fire(),this.render()}_(e,r){if(!this.valid(e))return this.bell();let i=Date.now();if(i-this.lastHit>1e3&&(this.typed=""),this.typed+=e,this.lastHit=i,this.color="cyan",e===".")return this.fire();this.value=Math.min(this.parse(this.typed),this.max),this.value>this.max&&(this.value=this.max),this.value<this.min&&(this.value=this.min),this.fire(),this.render()}render(){this.closed||(this.firstRender||(this.outputError&&this.out.write(qr.down(Jg(this.outputError,this.out.columns)-1)+_u(this.outputError,this.out.columns)),this.out.write(_u(this.outputText,this.out.columns))),super.render(),this.outputError="",this.outputText=[ws.symbol(this.done,this.aborted),Ar.bold(this.msg),ws.delimiter(this.done),!this.done||!this.done&&!this.placeholder?Ar[this.color]().underline(this.rendered):this.rendered].join(" "),this.error&&(this.outputError+=this.errorMsg.split(`
29
- `).reduce((e,r,i)=>e+`
30
- ${i?" ":Vg.pointerSmall} ${Ar.red().italic(r)}`,"")),this.out.write(Yg.line+qr.to(0)+this.outputText+qr.save+this.outputError+qr.restore))}};Eu.exports=xs});var Es=h((nv,Cu)=>{"use strict";var oe=q(),zg=I(),Zg=zg.cursor,Xg=pe(),Nt=z(),Ou=Nt.clear,De=Nt.figures,Ru=Nt.style,Qg=Nt.wrap,em=Nt.entriesToDisplay,Ss=class extends Xg{constructor(e={}){super(e),this.msg=e.message,this.cursor=e.cursor||0,this.scrollIndex=e.cursor||0,this.hint=e.hint||"",this.warn=e.warn||"- This option is disabled -",this.minSelected=e.min,this.showMinError=!1,this.maxChoices=e.max,this.instructions=e.instructions,this.optionsPerPage=e.optionsPerPage||10,this.value=e.choices.map((r,i)=>(typeof r=="string"&&(r={title:r,value:i}),{title:r&&(r.title||r.value||r),description:r&&r.description,value:r&&(r.value===void 0?i:r.value),selected:r&&r.selected,disabled:r&&r.disabled})),this.clear=Ou("",this.out.columns),e.overrideRender||this.render()}reset(){this.value.map(e=>!e.selected),this.cursor=0,this.fire(),this.render()}selected(){return this.value.filter(e=>e.selected)}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.fire(),this.render(),this.out.write(`
31
- `),this.close()}submit(){let e=this.value.filter(r=>r.selected);this.minSelected&&e.length<this.minSelected?(this.showMinError=!0,this.render()):(this.done=!0,this.aborted=!1,this.fire(),this.render(),this.out.write(`
32
- `),this.close())}first(){this.cursor=0,this.render()}last(){this.cursor=this.value.length-1,this.render()}next(){this.cursor=(this.cursor+1)%this.value.length,this.render()}up(){this.cursor===0?this.cursor=this.value.length-1:this.cursor--,this.render()}down(){this.cursor===this.value.length-1?this.cursor=0:this.cursor++,this.render()}left(){this.value[this.cursor].selected=!1,this.render()}right(){if(this.value.filter(e=>e.selected).length>=this.maxChoices)return this.bell();this.value[this.cursor].selected=!0,this.render()}handleSpaceToggle(){let e=this.value[this.cursor];if(e.selected)e.selected=!1,this.render();else{if(e.disabled||this.value.filter(r=>r.selected).length>=this.maxChoices)return this.bell();e.selected=!0,this.render()}}toggleAll(){if(this.maxChoices!==void 0||this.value[this.cursor].disabled)return this.bell();let e=!this.value[this.cursor].selected;this.value.filter(r=>!r.disabled).forEach(r=>r.selected=e),this.render()}_(e,r){if(e===" ")this.handleSpaceToggle();else if(e==="a")this.toggleAll();else return this.bell()}renderInstructions(){return this.instructions===void 0||this.instructions?typeof this.instructions=="string"?this.instructions:`
33
- Instructions:
34
- ${De.arrowUp}/${De.arrowDown}: Highlight option
35
- ${De.arrowLeft}/${De.arrowRight}/[space]: Toggle selection
36
- `+(this.maxChoices===void 0?` a: Toggle all
37
- `:"")+" enter/return: Complete answer":""}renderOption(e,r,i,s){let n=(r.selected?oe.green(De.radioOn):De.radioOff)+" "+s+" ",o,a;return r.disabled?o=e===i?oe.gray().underline(r.title):oe.strikethrough().gray(r.title):(o=e===i?oe.cyan().underline(r.title):r.title,e===i&&r.description&&(a=` - ${r.description}`,(n.length+o.length+a.length>=this.out.columns||r.description.split(/\r?\n/).length>1)&&(a=`
38
- `+Qg(r.description,{margin:n.length,width:this.out.columns})))),n+o+oe.gray(a||"")}paginateOptions(e){if(e.length===0)return oe.red("No matches for this query.");let r=em(this.cursor,e.length,this.optionsPerPage),i=r.startIndex,s=r.endIndex,n,o=[];for(let a=i;a<s;a++)a===i&&i>0?n=De.arrowUp:a===s-1&&s<e.length?n=De.arrowDown:n=" ",o.push(this.renderOption(this.cursor,e[a],a,n));return`
39
- `+o.join(`
40
- `)}renderOptions(e){return this.done?"":this.paginateOptions(e)}renderDoneOrInstructions(){if(this.done)return this.value.filter(r=>r.selected).map(r=>r.title).join(", ");let e=[oe.gray(this.hint),this.renderInstructions()];return this.value[this.cursor].disabled&&e.push(oe.yellow(this.warn)),e.join(" ")}render(){if(this.closed)return;this.firstRender&&this.out.write(Zg.hide),super.render();let e=[Ru.symbol(this.done,this.aborted),oe.bold(this.msg),Ru.delimiter(!1),this.renderDoneOrInstructions()].join(" ");this.showMinError&&(e+=oe.red(`You must select a minimum of ${this.minSelected} choices.`),this.showMinError=!1),e+=this.renderOptions(this.value),this.out.write(this.clear+e),this.clear=Ou(e,this.out.columns)}};Cu.exports=Ss});var $u=h((ov,Pu)=>{"use strict";function Du(t,e,r,i,s,n,o){try{var a=t[n](o),l=a.value}catch(u){r(u);return}a.done?e(l):Promise.resolve(l).then(i,s)}function tm(t){return function(){var e=this,r=arguments;return new Promise(function(i,s){var n=t.apply(e,r);function o(l){Du(n,i,s,o,a,"next",l)}function a(l){Du(n,i,s,o,a,"throw",l)}o(void 0)})}}var Ut=q(),rm=pe(),Iu=I(),im=Iu.erase,Au=Iu.cursor,Ht=z(),Ts=Ht.style,qu=Ht.clear,Os=Ht.figures,sm=Ht.wrap,nm=Ht.entriesToDisplay,Mu=(t,e)=>t[e]&&(t[e].value||t[e].title||t[e]),om=(t,e)=>t[e]&&(t[e].title||t[e].value||t[e]),am=(t,e)=>{let r=t.findIndex(i=>i.value===e||i.title===e);return r>-1?r:void 0},Rs=class extends rm{constructor(e={}){super(e),this.msg=e.message,this.suggest=e.suggest,this.choices=e.choices,this.initial=typeof e.initial=="number"?e.initial:am(e.choices,e.initial),this.select=this.initial||e.cursor||0,this.i18n={noMatches:e.noMatches||"no matches found"},this.fallback=e.fallback||this.initial,this.clearFirst=e.clearFirst||!1,this.suggestions=[],this.input="",this.limit=e.limit||10,this.cursor=0,this.transform=Ts.render(e.style),this.scale=this.transform.scale,this.render=this.render.bind(this),this.complete=this.complete.bind(this),this.clear=qu("",this.out.columns),this.complete(this.render),this.render()}set fallback(e){this._fb=Number.isSafeInteger(parseInt(e))?parseInt(e):e}get fallback(){let e;return typeof this._fb=="number"?e=this.choices[this._fb]:typeof this._fb=="string"&&(e={title:this._fb}),e||this._fb||{title:this.i18n.noMatches}}moveSelect(e){this.select=e,this.suggestions.length>0?this.value=Mu(this.suggestions,e):this.value=this.fallback.value,this.fire()}complete(e){var r=this;return tm(function*(){let i=r.completing=r.suggest(r.input,r.choices),s=yield i;if(r.completing!==i)return;r.suggestions=s.map((o,a,l)=>({title:om(l,a),value:Mu(l,a),description:o.description})),r.completing=!1;let n=Math.max(s.length-1,0);r.moveSelect(Math.min(n,r.select)),e&&e()})()}reset(){this.input="",this.complete(()=>{this.moveSelect(this.initial!==void 0?this.initial:0),this.render()}),this.render()}exit(){this.clearFirst&&this.input.length>0?this.reset():(this.done=this.exited=!0,this.aborted=!1,this.fire(),this.render(),this.out.write(`
41
- `),this.close())}abort(){this.done=this.aborted=!0,this.exited=!1,this.fire(),this.render(),this.out.write(`
42
- `),this.close()}submit(){this.done=!0,this.aborted=this.exited=!1,this.fire(),this.render(),this.out.write(`
43
- `),this.close()}_(e,r){let i=this.input.slice(0,this.cursor),s=this.input.slice(this.cursor);this.input=`${i}${e}${s}`,this.cursor=i.length+1,this.complete(this.render),this.render()}delete(){if(this.cursor===0)return this.bell();let e=this.input.slice(0,this.cursor-1),r=this.input.slice(this.cursor);this.input=`${e}${r}`,this.complete(this.render),this.cursor=this.cursor-1,this.render()}deleteForward(){if(this.cursor*this.scale>=this.rendered.length)return this.bell();let e=this.input.slice(0,this.cursor),r=this.input.slice(this.cursor+1);this.input=`${e}${r}`,this.complete(this.render),this.render()}first(){this.moveSelect(0),this.render()}last(){this.moveSelect(this.suggestions.length-1),this.render()}up(){this.select===0?this.moveSelect(this.suggestions.length-1):this.moveSelect(this.select-1),this.render()}down(){this.select===this.suggestions.length-1?this.moveSelect(0):this.moveSelect(this.select+1),this.render()}next(){this.select===this.suggestions.length-1?this.moveSelect(0):this.moveSelect(this.select+1),this.render()}nextPage(){this.moveSelect(Math.min(this.select+this.limit,this.suggestions.length-1)),this.render()}prevPage(){this.moveSelect(Math.max(this.select-this.limit,0)),this.render()}left(){if(this.cursor<=0)return this.bell();this.cursor=this.cursor-1,this.render()}right(){if(this.cursor*this.scale>=this.rendered.length)return this.bell();this.cursor=this.cursor+1,this.render()}renderOption(e,r,i,s){let n,o=i?Os.arrowUp:s?Os.arrowDown:" ",a=r?Ut.cyan().underline(e.title):e.title;return o=(r?Ut.cyan(Os.pointer)+" ":" ")+o,e.description&&(n=` - ${e.description}`,(o.length+a.length+n.length>=this.out.columns||e.description.split(/\r?\n/).length>1)&&(n=`
44
- `+sm(e.description,{margin:3,width:this.out.columns}))),o+" "+a+Ut.gray(n||"")}render(){if(this.closed)return;this.firstRender?this.out.write(Au.hide):this.out.write(qu(this.outputText,this.out.columns)),super.render();let e=nm(this.select,this.choices.length,this.limit),r=e.startIndex,i=e.endIndex;if(this.outputText=[Ts.symbol(this.done,this.aborted,this.exited),Ut.bold(this.msg),Ts.delimiter(this.completing),this.done&&this.suggestions[this.select]?this.suggestions[this.select].title:this.rendered=this.transform.render(this.input)].join(" "),!this.done){let s=this.suggestions.slice(r,i).map((n,o)=>this.renderOption(n,this.select===o+r,o===0&&r>0,o+r===i-1&&i<this.choices.length)).join(`
45
- `);this.outputText+=`
46
- `+(s||Ut.gray(this.fallback.title))}this.out.write(im.line+Au.to(0)+this.outputText)}};Pu.exports=Rs});var Fu=h((av,Lu)=>{"use strict";var be=q(),lm=I(),um=lm.cursor,hm=Es(),Ds=z(),ku=Ds.clear,ju=Ds.style,ct=Ds.figures,Cs=class extends hm{constructor(e={}){e.overrideRender=!0,super(e),this.inputValue="",this.clear=ku("",this.out.columns),this.filteredOptions=this.value,this.render()}last(){this.cursor=this.filteredOptions.length-1,this.render()}next(){this.cursor=(this.cursor+1)%this.filteredOptions.length,this.render()}up(){this.cursor===0?this.cursor=this.filteredOptions.length-1:this.cursor--,this.render()}down(){this.cursor===this.filteredOptions.length-1?this.cursor=0:this.cursor++,this.render()}left(){this.filteredOptions[this.cursor].selected=!1,this.render()}right(){if(this.value.filter(e=>e.selected).length>=this.maxChoices)return this.bell();this.filteredOptions[this.cursor].selected=!0,this.render()}delete(){this.inputValue.length&&(this.inputValue=this.inputValue.substr(0,this.inputValue.length-1),this.updateFilteredOptions())}updateFilteredOptions(){let e=this.filteredOptions[this.cursor];this.filteredOptions=this.value.filter(i=>this.inputValue?!!(typeof i.title=="string"&&i.title.toLowerCase().includes(this.inputValue.toLowerCase())||typeof i.value=="string"&&i.value.toLowerCase().includes(this.inputValue.toLowerCase())):!0);let r=this.filteredOptions.findIndex(i=>i===e);this.cursor=r<0?0:r,this.render()}handleSpaceToggle(){let e=this.filteredOptions[this.cursor];if(e.selected)e.selected=!1,this.render();else{if(e.disabled||this.value.filter(r=>r.selected).length>=this.maxChoices)return this.bell();e.selected=!0,this.render()}}handleInputChange(e){this.inputValue=this.inputValue+e,this.updateFilteredOptions()}_(e,r){e===" "?this.handleSpaceToggle():this.handleInputChange(e)}renderInstructions(){return this.instructions===void 0||this.instructions?typeof this.instructions=="string"?this.instructions:`
47
- Instructions:
48
- ${ct.arrowUp}/${ct.arrowDown}: Highlight option
49
- ${ct.arrowLeft}/${ct.arrowRight}/[space]: Toggle selection
50
- [a,b,c]/delete: Filter choices
51
- enter/return: Complete answer
52
- `:""}renderCurrentInput(){return`
53
- Filtered results for: ${this.inputValue?this.inputValue:be.gray("Enter something to filter")}
54
- `}renderOption(e,r,i){let s;return r.disabled?s=e===i?be.gray().underline(r.title):be.strikethrough().gray(r.title):s=e===i?be.cyan().underline(r.title):r.title,(r.selected?be.green(ct.radioOn):ct.radioOff)+" "+s}renderDoneOrInstructions(){if(this.done)return this.value.filter(r=>r.selected).map(r=>r.title).join(", ");let e=[be.gray(this.hint),this.renderInstructions(),this.renderCurrentInput()];return this.filteredOptions.length&&this.filteredOptions[this.cursor].disabled&&e.push(be.yellow(this.warn)),e.join(" ")}render(){if(this.closed)return;this.firstRender&&this.out.write(um.hide),super.render();let e=[ju.symbol(this.done,this.aborted),be.bold(this.msg),ju.delimiter(!1),this.renderDoneOrInstructions()].join(" ");this.showMinError&&(e+=be.red(`You must select a minimum of ${this.minSelected} choices.`),this.showMinError=!1),e+=this.renderOptions(this.filteredOptions),this.out.write(this.clear+e),this.clear=ku(e,this.out.columns)}};Lu.exports=Cs});var Yu=h((lv,Gu)=>{"use strict";var Bu=q(),cm=pe(),Hu=z(),Nu=Hu.style,fm=Hu.clear,Wu=I(),dm=Wu.erase,Uu=Wu.cursor,As=class extends cm{constructor(e={}){super(e),this.msg=e.message,this.value=e.initial,this.initialValue=!!e.initial,this.yesMsg=e.yes||"yes",this.yesOption=e.yesOption||"(Y/n)",this.noMsg=e.no||"no",this.noOption=e.noOption||"(y/N)",this.render()}reset(){this.value=this.initialValue,this.fire(),this.render()}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.fire(),this.render(),this.out.write(`
55
- `),this.close()}submit(){this.value=this.value||!1,this.done=!0,this.aborted=!1,this.fire(),this.render(),this.out.write(`
56
- `),this.close()}_(e,r){return e.toLowerCase()==="y"?(this.value=!0,this.submit()):e.toLowerCase()==="n"?(this.value=!1,this.submit()):this.bell()}render(){this.closed||(this.firstRender?this.out.write(Uu.hide):this.out.write(fm(this.outputText,this.out.columns)),super.render(),this.outputText=[Nu.symbol(this.done,this.aborted),Bu.bold(this.msg),Nu.delimiter(this.done),this.done?this.value?this.yesMsg:this.noMsg:Bu.gray(this.initialValue?this.yesOption:this.noOption)].join(" "),this.out.write(dm.line+Uu.to(0)+this.outputText))}};Gu.exports=As});var Ju=h((uv,Vu)=>{"use strict";Vu.exports={TextPrompt:Il(),SelectPrompt:jl(),TogglePrompt:Hl(),DatePrompt:yu(),NumberPrompt:Tu(),MultiselectPrompt:Es(),AutocompletePrompt:$u(),AutocompleteMultiselectPrompt:Fu(),ConfirmPrompt:Yu()}});var zu=h(Ku=>{"use strict";var B=Ku,pm=Ju(),Ir=t=>t;function ae(t,e,r={}){return new Promise((i,s)=>{let n=new pm[t](e),o=r.onAbort||Ir,a=r.onSubmit||Ir,l=r.onExit||Ir;n.on("state",e.onState||Ir),n.on("submit",u=>i(a(u))),n.on("exit",u=>i(l(u))),n.on("abort",u=>s(o(u)))})}B.text=t=>ae("TextPrompt",t);B.password=t=>(t.style="password",B.text(t));B.invisible=t=>(t.style="invisible",B.text(t));B.number=t=>ae("NumberPrompt",t);B.date=t=>ae("DatePrompt",t);B.confirm=t=>ae("ConfirmPrompt",t);B.list=t=>{let e=t.separator||",";return ae("TextPrompt",t,{onSubmit:r=>r.split(e).map(i=>i.trim())})};B.toggle=t=>ae("TogglePrompt",t);B.select=t=>ae("SelectPrompt",t);B.multiselect=t=>{t.choices=[].concat(t.choices||[]);let e=r=>r.filter(i=>i.selected).map(i=>i.value);return ae("MultiselectPrompt",t,{onAbort:e,onSubmit:e})};B.autocompleteMultiselect=t=>{t.choices=[].concat(t.choices||[]);let e=r=>r.filter(i=>i.selected).map(i=>i.value);return ae("AutocompleteMultiselectPrompt",t,{onAbort:e,onSubmit:e})};var gm=(t,e)=>Promise.resolve(e.filter(r=>r.title.slice(0,t.length).toLowerCase()===t.toLowerCase()));B.autocomplete=t=>(t.suggest=t.suggest||gm,t.choices=[].concat(t.choices||[]),ae("AutocompletePrompt",t))});var sh=h((cv,ih)=>{"use strict";function Zu(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),r.push.apply(r,i)}return r}function Xu(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Zu(Object(r),!0).forEach(function(i){mm(t,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Zu(Object(r)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(r,i))})}return t}function mm(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function bm(t,e){var r=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=ym(t))||e&&t&&typeof t.length=="number"){r&&(t=r);var i=0,s=function(){};return{s,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(u){throw u},f:s}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
57
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var n=!0,o=!1,a;return{s:function(){r=r.call(t)},n:function(){var u=r.next();return n=u.done,u},e:function(u){o=!0,a=u},f:function(){try{!n&&r.return!=null&&r.return()}finally{if(o)throw a}}}}function ym(t,e){if(t){if(typeof t=="string")return Qu(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Qu(t,e)}}function Qu(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,i=new Array(e);r<e;r++)i[r]=t[r];return i}function eh(t,e,r,i,s,n,o){try{var a=t[n](o),l=a.value}catch(u){r(u);return}a.done?e(l):Promise.resolve(l).then(i,s)}function th(t){return function(){var e=this,r=arguments;return new Promise(function(i,s){var n=t.apply(e,r);function o(l){eh(n,i,s,o,a,"next",l)}function a(l){eh(n,i,s,o,a,"throw",l)}o(void 0)})}}var qs=zu(),vm=["suggest","format","onState","validate","onRender","type"],rh=()=>{};function Ae(){return Ms.apply(this,arguments)}function Ms(){return Ms=th(function*(t=[],{onSubmit:e=rh,onCancel:r=rh}={}){let i={},s=Ae._override||{};t=[].concat(t);let n,o,a,l,u,p,f=function(){var S=th(function*(w,X,gt=!1){if(!(!gt&&w.validate&&w.validate(X)!==!0))return w.format?yield w.format(X,i):X});return function(X,gt){return S.apply(this,arguments)}}();var d=bm(t),g;try{for(d.s();!(g=d.n()).done;){o=g.value;var v=o;if(l=v.name,u=v.type,typeof u=="function"&&(u=yield u(n,Xu({},i),o),o.type=u),!!u){for(let S in o){if(vm.includes(S))continue;let w=o[S];o[S]=typeof w=="function"?yield w(n,Xu({},i),p):w}if(p=o,typeof o.message!="string")throw new Error("prompt message is required");var b=o;if(l=b.name,u=b.type,qs[u]===void 0)throw new Error(`prompt type (${u}) is not defined`);if(s[o.name]!==void 0&&(n=yield f(o,s[o.name]),n!==void 0)){i[l]=n;continue}try{n=Ae._injected?wm(Ae._injected,o.initial):yield qs[u](o),i[l]=n=yield f(o,n,!0),a=yield e(o,n,i)}catch{a=!(yield r(o,i))}if(a)return i}}}catch(S){d.e(S)}finally{d.f()}return i}),Ms.apply(this,arguments)}function wm(t,e){let r=t.shift();if(r instanceof Error)throw r;return r===void 0?e:r}function _m(t){Ae._injected=(Ae._injected||[]).concat(t)}function xm(t){Ae._override=Object.assign({},t)}ih.exports=Object.assign(Ae,{prompt:Ae,prompts:qs,inject:_m,override:xm})});var oh=h((fv,nh)=>{"use strict";nh.exports=(t,e)=>{if(!(t.meta&&t.name!=="escape")){if(t.ctrl){if(t.name==="a")return"first";if(t.name==="c"||t.name==="d")return"abort";if(t.name==="e")return"last";if(t.name==="g")return"reset"}if(e){if(t.name==="j")return"down";if(t.name==="k")return"up"}return t.name==="return"||t.name==="enter"?"submit":t.name==="backspace"?"delete":t.name==="delete"?"deleteForward":t.name==="abort"?"abort":t.name==="escape"?"exit":t.name==="tab"?"next":t.name==="pagedown"?"nextPage":t.name==="pageup"?"prevPage":t.name==="home"?"home":t.name==="end"?"end":t.name==="up"?"up":t.name==="down"?"down":t.name==="right"?"right":t.name==="left"?"left":!1}}});var Pr=h((dv,ah)=>{"use strict";ah.exports=t=>{let e=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PRZcf-ntqry=><~]))"].join("|"),r=new RegExp(e,"g");return typeof t=="string"?t.replace(r,""):t}});var hh=h((pv,uh)=>{"use strict";var Sm=Pr(),{erase:lh,cursor:Em}=I(),Tm=t=>[...Sm(t)].length;uh.exports=function(t,e){if(!e)return lh.line+Em.to(0);let r=0,i=t.split(/\r?\n/);for(let s of i)r+=1+Math.floor(Math.max(Tm(s)-1,0)/e);return lh.lines(r)}});var Is=h((gv,ch)=>{"use strict";var Wt={arrowUp:"\u2191",arrowDown:"\u2193",arrowLeft:"\u2190",arrowRight:"\u2192",radioOn:"\u25C9",radioOff:"\u25EF",tick:"\u2714",cross:"\u2716",ellipsis:"\u2026",pointerSmall:"\u203A",line:"\u2500",pointer:"\u276F"},Om={arrowUp:Wt.arrowUp,arrowDown:Wt.arrowDown,arrowLeft:Wt.arrowLeft,arrowRight:Wt.arrowRight,radioOn:"(*)",radioOff:"( )",tick:"\u221A",cross:"\xD7",ellipsis:"...",pointerSmall:"\xBB",line:"\u2500",pointer:">"},Rm=process.platform==="win32"?Om:Wt;ch.exports=Rm});var dh=h((mv,fh)=>{"use strict";var ft=q(),Ye=Is(),Ps=Object.freeze({password:{scale:1,render:t=>"*".repeat(t.length)},emoji:{scale:2,render:t=>"\u{1F603}".repeat(t.length)},invisible:{scale:0,render:t=>""},default:{scale:1,render:t=>`${t}`}}),Cm=t=>Ps[t]||Ps.default,Gt=Object.freeze({aborted:ft.red(Ye.cross),done:ft.green(Ye.tick),exited:ft.yellow(Ye.cross),default:ft.cyan("?")}),Dm=(t,e,r)=>e?Gt.aborted:r?Gt.exited:t?Gt.done:Gt.default,Am=t=>ft.gray(t?Ye.ellipsis:Ye.pointerSmall),qm=(t,e)=>ft.gray(t?e?Ye.pointerSmall:"+":Ye.line);fh.exports={styles:Ps,render:Cm,symbols:Gt,symbol:Dm,delimiter:Am,item:qm}});var gh=h((bv,ph)=>{"use strict";var Mm=Pr();ph.exports=function(t,e){let r=String(Mm(t)||"").split(/\r?\n/);return e?r.map(i=>Math.ceil(i.length/e)).reduce((i,s)=>i+s):r.length}});var bh=h((yv,mh)=>{"use strict";mh.exports=(t,e={})=>{let r=Number.isSafeInteger(parseInt(e.margin))?new Array(parseInt(e.margin)).fill(" ").join(""):e.margin||"",i=e.width;return(t||"").split(/\r?\n/g).map(s=>s.split(/\s+/g).reduce((n,o)=>(o.length+r.length>=i||n[n.length-1].length+o.length+1<i?n[n.length-1]+=` ${o}`:n.push(`${r}${o}`),n),[r]).join(`
58
- `)).join(`
59
- `)}});var vh=h((vv,yh)=>{"use strict";yh.exports=(t,e,r)=>{r=r||e;let i=Math.min(e-r,t-Math.floor(r/2));i<0&&(i=0);let s=Math.min(i+r,e);return{startIndex:i,endIndex:s}}});var Z=h((wv,wh)=>{"use strict";wh.exports={action:oh(),clear:hh(),style:dh(),strip:Pr(),figures:Is(),lines:gh(),wrap:bh(),entriesToDisplay:vh()}});var ye=h((_v,xh)=>{"use strict";var _h=require("readline"),{action:Im}=Z(),Pm=require("events"),{beep:$m,cursor:km}=I(),jm=q(),$s=class extends Pm{constructor(e={}){super(),this.firstRender=!0,this.in=e.stdin||process.stdin,this.out=e.stdout||process.stdout,this.onRender=(e.onRender||(()=>{})).bind(this);let r=_h.createInterface({input:this.in,escapeCodeTimeout:50});_h.emitKeypressEvents(this.in,r),this.in.isTTY&&this.in.setRawMode(!0);let i=["SelectPrompt","MultiselectPrompt"].indexOf(this.constructor.name)>-1,s=(n,o)=>{let a=Im(o,i);a===!1?this._&&this._(n,o):typeof this[a]=="function"?this[a](o):this.bell()};this.close=()=>{this.out.write(km.show),this.in.removeListener("keypress",s),this.in.isTTY&&this.in.setRawMode(!1),r.close(),this.emit(this.aborted?"abort":this.exited?"exit":"submit",this.value),this.closed=!0},this.in.on("keypress",s)}fire(){this.emit("state",{value:this.value,aborted:!!this.aborted,exited:!!this.exited})}bell(){this.out.write($m)}render(){this.onRender(jm),this.firstRender&&(this.firstRender=!1)}};xh.exports=$s});var Eh=h((xv,Sh)=>{var $r=q(),Lm=ye(),{erase:Fm,cursor:Yt}=I(),{style:ks,clear:js,lines:Bm,figures:Nm}=Z(),Ls=class extends Lm{constructor(e={}){super(e),this.transform=ks.render(e.style),this.scale=this.transform.scale,this.msg=e.message,this.initial=e.initial||"",this.validator=e.validate||(()=>!0),this.value="",this.errorMsg=e.error||"Please Enter A Valid Value",this.cursor=Number(!!this.initial),this.cursorOffset=0,this.clear=js("",this.out.columns),this.render()}set value(e){!e&&this.initial?(this.placeholder=!0,this.rendered=$r.gray(this.transform.render(this.initial))):(this.placeholder=!1,this.rendered=this.transform.render(e)),this._value=e,this.fire()}get value(){return this._value}reset(){this.value="",this.cursor=Number(!!this.initial),this.cursorOffset=0,this.fire(),this.render()}exit(){this.abort()}abort(){this.value=this.value||this.initial,this.done=this.aborted=!0,this.error=!1,this.red=!1,this.fire(),this.render(),this.out.write(`
60
- `),this.close()}async validate(){let e=await this.validator(this.value);typeof e=="string"&&(this.errorMsg=e,e=!1),this.error=!e}async submit(){if(this.value=this.value||this.initial,this.cursorOffset=0,this.cursor=this.rendered.length,await this.validate(),this.error){this.red=!0,this.fire(),this.render();return}this.done=!0,this.aborted=!1,this.fire(),this.render(),this.out.write(`
61
- `),this.close()}next(){if(!this.placeholder)return this.bell();this.value=this.initial,this.cursor=this.rendered.length,this.fire(),this.render()}moveCursor(e){this.placeholder||(this.cursor=this.cursor+e,this.cursorOffset+=e)}_(e,r){let i=this.value.slice(0,this.cursor),s=this.value.slice(this.cursor);this.value=`${i}${e}${s}`,this.red=!1,this.cursor=this.placeholder?0:i.length+1,this.render()}delete(){if(this.isCursorAtStart())return this.bell();let e=this.value.slice(0,this.cursor-1),r=this.value.slice(this.cursor);this.value=`${e}${r}`,this.red=!1,this.isCursorAtStart()?this.cursorOffset=0:(this.cursorOffset++,this.moveCursor(-1)),this.render()}deleteForward(){if(this.cursor*this.scale>=this.rendered.length||this.placeholder)return this.bell();let e=this.value.slice(0,this.cursor),r=this.value.slice(this.cursor+1);this.value=`${e}${r}`,this.red=!1,this.isCursorAtEnd()?this.cursorOffset=0:this.cursorOffset++,this.render()}first(){this.cursor=0,this.render()}last(){this.cursor=this.value.length,this.render()}left(){if(this.cursor<=0||this.placeholder)return this.bell();this.moveCursor(-1),this.render()}right(){if(this.cursor*this.scale>=this.rendered.length||this.placeholder)return this.bell();this.moveCursor(1),this.render()}isCursorAtStart(){return this.cursor===0||this.placeholder&&this.cursor===1}isCursorAtEnd(){return this.cursor===this.rendered.length||this.placeholder&&this.cursor===this.rendered.length+1}render(){this.closed||(this.firstRender||(this.outputError&&this.out.write(Yt.down(Bm(this.outputError,this.out.columns)-1)+js(this.outputError,this.out.columns)),this.out.write(js(this.outputText,this.out.columns))),super.render(),this.outputError="",this.outputText=[ks.symbol(this.done,this.aborted),$r.bold(this.msg),ks.delimiter(this.done),this.red?$r.red(this.rendered):this.rendered].join(" "),this.error&&(this.outputError+=this.errorMsg.split(`
62
- `).reduce((e,r,i)=>e+`
63
- ${i?" ":Nm.pointerSmall} ${$r.red().italic(r)}`,"")),this.out.write(Fm.line+Yt.to(0)+this.outputText+Yt.save+this.outputError+Yt.restore+Yt.move(this.cursorOffset,0)))}};Sh.exports=Ls});var Ch=h((Sv,Rh)=>{"use strict";var ve=q(),Um=ye(),{style:Th,clear:Oh,figures:kr,wrap:Hm,entriesToDisplay:Wm}=Z(),{cursor:Gm}=I(),Fs=class extends Um{constructor(e={}){super(e),this.msg=e.message,this.hint=e.hint||"- Use arrow-keys. Return to submit.",this.warn=e.warn||"- This option is disabled",this.cursor=e.initial||0,this.choices=e.choices.map((r,i)=>(typeof r=="string"&&(r={title:r,value:i}),{title:r&&(r.title||r.value||r),value:r&&(r.value===void 0?i:r.value),description:r&&r.description,selected:r&&r.selected,disabled:r&&r.disabled})),this.optionsPerPage=e.optionsPerPage||10,this.value=(this.choices[this.cursor]||{}).value,this.clear=Oh("",this.out.columns),this.render()}moveCursor(e){this.cursor=e,this.value=this.choices[e].value,this.fire()}reset(){this.moveCursor(0),this.fire(),this.render()}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.fire(),this.render(),this.out.write(`
64
- `),this.close()}submit(){this.selection.disabled?this.bell():(this.done=!0,this.aborted=!1,this.fire(),this.render(),this.out.write(`
65
- `),this.close())}first(){this.moveCursor(0),this.render()}last(){this.moveCursor(this.choices.length-1),this.render()}up(){this.cursor===0?this.moveCursor(this.choices.length-1):this.moveCursor(this.cursor-1),this.render()}down(){this.cursor===this.choices.length-1?this.moveCursor(0):this.moveCursor(this.cursor+1),this.render()}next(){this.moveCursor((this.cursor+1)%this.choices.length),this.render()}_(e,r){if(e===" ")return this.submit()}get selection(){return this.choices[this.cursor]}render(){if(this.closed)return;this.firstRender?this.out.write(Gm.hide):this.out.write(Oh(this.outputText,this.out.columns)),super.render();let{startIndex:e,endIndex:r}=Wm(this.cursor,this.choices.length,this.optionsPerPage);if(this.outputText=[Th.symbol(this.done,this.aborted),ve.bold(this.msg),Th.delimiter(!1),this.done?this.selection.title:this.selection.disabled?ve.yellow(this.warn):ve.gray(this.hint)].join(" "),!this.done){this.outputText+=`
66
- `;for(let i=e;i<r;i++){let s,n,o="",a=this.choices[i];i===e&&e>0?n=kr.arrowUp:i===r-1&&r<this.choices.length?n=kr.arrowDown:n=" ",a.disabled?(s=this.cursor===i?ve.gray().underline(a.title):ve.strikethrough().gray(a.title),n=(this.cursor===i?ve.bold().gray(kr.pointer)+" ":" ")+n):(s=this.cursor===i?ve.cyan().underline(a.title):a.title,n=(this.cursor===i?ve.cyan(kr.pointer)+" ":" ")+n,a.description&&this.cursor===i&&(o=` - ${a.description}`,(n.length+s.length+o.length>=this.out.columns||a.description.split(/\r?\n/).length>1)&&(o=`
67
- `+Hm(a.description,{margin:3,width:this.out.columns})))),this.outputText+=`${n} ${s}${ve.gray(o)}
68
- `}}this.out.write(this.outputText)}};Rh.exports=Fs});var Mh=h((Ev,qh)=>{var jr=q(),Ym=ye(),{style:Dh,clear:Vm}=Z(),{cursor:Ah,erase:Jm}=I(),Bs=class extends Ym{constructor(e={}){super(e),this.msg=e.message,this.value=!!e.initial,this.active=e.active||"on",this.inactive=e.inactive||"off",this.initialValue=this.value,this.render()}reset(){this.value=this.initialValue,this.fire(),this.render()}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.fire(),this.render(),this.out.write(`
69
- `),this.close()}submit(){this.done=!0,this.aborted=!1,this.fire(),this.render(),this.out.write(`
70
- `),this.close()}deactivate(){if(this.value===!1)return this.bell();this.value=!1,this.render()}activate(){if(this.value===!0)return this.bell();this.value=!0,this.render()}delete(){this.deactivate()}left(){this.deactivate()}right(){this.activate()}down(){this.deactivate()}up(){this.activate()}next(){this.value=!this.value,this.fire(),this.render()}_(e,r){if(e===" ")this.value=!this.value;else if(e==="1")this.value=!0;else if(e==="0")this.value=!1;else return this.bell();this.render()}render(){this.closed||(this.firstRender?this.out.write(Ah.hide):this.out.write(Vm(this.outputText,this.out.columns)),super.render(),this.outputText=[Dh.symbol(this.done,this.aborted),jr.bold(this.msg),Dh.delimiter(this.done),this.value?this.inactive:jr.cyan().underline(this.inactive),jr.gray("/"),this.value?jr.cyan().underline(this.active):this.active].join(" "),this.out.write(Jm.line+Ah.to(0)+this.outputText))}};qh.exports=Bs});var le=h((Tv,Ih)=>{"use strict";var dt=class{constructor({token:e,date:r,parts:i,locales:s}){this.token=e,this.date=r||new Date,this.parts=i||[this],this.locales=s||{}}up(){}down(){}next(){let e=this.parts.indexOf(this);return this.parts.find((r,i)=>i>e&&r instanceof dt)}setTo(e){}prev(){let e=[].concat(this.parts).reverse(),r=e.indexOf(this);return e.find((i,s)=>s>r&&i instanceof dt)}toString(){return String(this.date)}};Ih.exports=dt});var $h=h((Ov,Ph)=>{"use strict";var Km=le(),Ns=class extends Km{constructor(e={}){super(e)}up(){this.date.setHours((this.date.getHours()+12)%24)}down(){this.up()}toString(){let e=this.date.getHours()>12?"pm":"am";return/\A/.test(this.token)?e.toUpperCase():e}};Ph.exports=Ns});var jh=h((Rv,kh)=>{"use strict";var zm=le(),Zm=t=>(t=t%10,t===1?"st":t===2?"nd":t===3?"rd":"th"),Us=class extends zm{constructor(e={}){super(e)}up(){this.date.setDate(this.date.getDate()+1)}down(){this.date.setDate(this.date.getDate()-1)}setTo(e){this.date.setDate(parseInt(e.substr(-2)))}toString(){let e=this.date.getDate(),r=this.date.getDay();return this.token==="DD"?String(e).padStart(2,"0"):this.token==="Do"?e+Zm(e):this.token==="d"?r+1:this.token==="ddd"?this.locales.weekdaysShort[r]:this.token==="dddd"?this.locales.weekdays[r]:e}};kh.exports=Us});var Fh=h((Cv,Lh)=>{"use strict";var Xm=le(),Hs=class extends Xm{constructor(e={}){super(e)}up(){this.date.setHours(this.date.getHours()+1)}down(){this.date.setHours(this.date.getHours()-1)}setTo(e){this.date.setHours(parseInt(e.substr(-2)))}toString(){let e=this.date.getHours();return/h/.test(this.token)&&(e=e%12||12),this.token.length>1?String(e).padStart(2,"0"):e}};Lh.exports=Hs});var Nh=h((Dv,Bh)=>{"use strict";var Qm=le(),Ws=class extends Qm{constructor(e={}){super(e)}up(){this.date.setMilliseconds(this.date.getMilliseconds()+1)}down(){this.date.setMilliseconds(this.date.getMilliseconds()-1)}setTo(e){this.date.setMilliseconds(parseInt(e.substr(-this.token.length)))}toString(){return String(this.date.getMilliseconds()).padStart(4,"0").substr(0,this.token.length)}};Bh.exports=Ws});var Hh=h((Av,Uh)=>{"use strict";var e0=le(),Gs=class extends e0{constructor(e={}){super(e)}up(){this.date.setMinutes(this.date.getMinutes()+1)}down(){this.date.setMinutes(this.date.getMinutes()-1)}setTo(e){this.date.setMinutes(parseInt(e.substr(-2)))}toString(){let e=this.date.getMinutes();return this.token.length>1?String(e).padStart(2,"0"):e}};Uh.exports=Gs});var Gh=h((qv,Wh)=>{"use strict";var t0=le(),Ys=class extends t0{constructor(e={}){super(e)}up(){this.date.setMonth(this.date.getMonth()+1)}down(){this.date.setMonth(this.date.getMonth()-1)}setTo(e){e=parseInt(e.substr(-2))-1,this.date.setMonth(e<0?0:e)}toString(){let e=this.date.getMonth(),r=this.token.length;return r===2?String(e+1).padStart(2,"0"):r===3?this.locales.monthsShort[e]:r===4?this.locales.months[e]:String(e+1)}};Wh.exports=Ys});var Vh=h((Mv,Yh)=>{"use strict";var r0=le(),Vs=class extends r0{constructor(e={}){super(e)}up(){this.date.setSeconds(this.date.getSeconds()+1)}down(){this.date.setSeconds(this.date.getSeconds()-1)}setTo(e){this.date.setSeconds(parseInt(e.substr(-2)))}toString(){let e=this.date.getSeconds();return this.token.length>1?String(e).padStart(2,"0"):e}};Yh.exports=Vs});var Kh=h((Iv,Jh)=>{"use strict";var i0=le(),Js=class extends i0{constructor(e={}){super(e)}up(){this.date.setFullYear(this.date.getFullYear()+1)}down(){this.date.setFullYear(this.date.getFullYear()-1)}setTo(e){this.date.setFullYear(e.substr(-4))}toString(){let e=String(this.date.getFullYear()).padStart(4,"0");return this.token.length===2?e.substr(-2):e}};Jh.exports=Js});var Zh=h((Pv,zh)=>{"use strict";zh.exports={DatePart:le(),Meridiem:$h(),Day:jh(),Hours:Fh(),Milliseconds:Nh(),Minutes:Hh(),Month:Gh(),Seconds:Vh(),Year:Kh()}});var sc=h(($v,ic)=>{"use strict";var Ks=q(),s0=ye(),{style:Xh,clear:Qh,figures:n0}=Z(),{erase:o0,cursor:ec}=I(),{DatePart:tc,Meridiem:a0,Day:l0,Hours:u0,Milliseconds:h0,Minutes:c0,Month:f0,Seconds:d0,Year:p0}=Zh(),g0=/\\(.)|"((?:\\["\\]|[^"])+)"|(D[Do]?|d{3,4}|d)|(M{1,4})|(YY(?:YY)?)|([aA])|([Hh]{1,2})|(m{1,2})|(s{1,2})|(S{1,4})|./g,rc={1:({token:t})=>t.replace(/\\(.)/g,"$1"),2:t=>new l0(t),3:t=>new f0(t),4:t=>new p0(t),5:t=>new a0(t),6:t=>new u0(t),7:t=>new c0(t),8:t=>new d0(t),9:t=>new h0(t)},m0={months:"January,February,March,April,May,June,July,August,September,October,November,December".split(","),monthsShort:"Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec".split(","),weekdays:"Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday".split(","),weekdaysShort:"Sun,Mon,Tue,Wed,Thu,Fri,Sat".split(",")},zs=class extends s0{constructor(e={}){super(e),this.msg=e.message,this.cursor=0,this.typed="",this.locales=Object.assign(m0,e.locales),this._date=e.initial||new Date,this.errorMsg=e.error||"Please Enter A Valid Value",this.validator=e.validate||(()=>!0),this.mask=e.mask||"YYYY-MM-DD HH:mm:ss",this.clear=Qh("",this.out.columns),this.render()}get value(){return this.date}get date(){return this._date}set date(e){e&&this._date.setTime(e.getTime())}set mask(e){let r;for(this.parts=[];r=g0.exec(e);){let s=r.shift(),n=r.findIndex(o=>o!=null);this.parts.push(n in rc?rc[n]({token:r[n]||s,date:this.date,parts:this.parts,locales:this.locales}):r[n]||s)}let i=this.parts.reduce((s,n)=>(typeof n=="string"&&typeof s[s.length-1]=="string"?s[s.length-1]+=n:s.push(n),s),[]);this.parts.splice(0),this.parts.push(...i),this.reset()}moveCursor(e){this.typed="",this.cursor=e,this.fire()}reset(){this.moveCursor(this.parts.findIndex(e=>e instanceof tc)),this.fire(),this.render()}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.error=!1,this.fire(),this.render(),this.out.write(`
71
- `),this.close()}async validate(){let e=await this.validator(this.value);typeof e=="string"&&(this.errorMsg=e,e=!1),this.error=!e}async submit(){if(await this.validate(),this.error){this.color="red",this.fire(),this.render();return}this.done=!0,this.aborted=!1,this.fire(),this.render(),this.out.write(`
72
- `),this.close()}up(){this.typed="",this.parts[this.cursor].up(),this.render()}down(){this.typed="",this.parts[this.cursor].down(),this.render()}left(){let e=this.parts[this.cursor].prev();if(e==null)return this.bell();this.moveCursor(this.parts.indexOf(e)),this.render()}right(){let e=this.parts[this.cursor].next();if(e==null)return this.bell();this.moveCursor(this.parts.indexOf(e)),this.render()}next(){let e=this.parts[this.cursor].next();this.moveCursor(e?this.parts.indexOf(e):this.parts.findIndex(r=>r instanceof tc)),this.render()}_(e){/\d/.test(e)&&(this.typed+=e,this.parts[this.cursor].setTo(this.typed),this.render())}render(){this.closed||(this.firstRender?this.out.write(ec.hide):this.out.write(Qh(this.outputText,this.out.columns)),super.render(),this.outputText=[Xh.symbol(this.done,this.aborted),Ks.bold(this.msg),Xh.delimiter(!1),this.parts.reduce((e,r,i)=>e.concat(i===this.cursor&&!this.done?Ks.cyan().underline(r.toString()):r),[]).join("")].join(" "),this.error&&(this.outputText+=this.errorMsg.split(`
73
- `).reduce((e,r,i)=>e+`
74
- ${i?" ":n0.pointerSmall} ${Ks.red().italic(r)}`,"")),this.out.write(o0.line+ec.to(0)+this.outputText))}};ic.exports=zs});var lc=h((kv,ac)=>{var Lr=q(),b0=ye(),{cursor:Fr,erase:y0}=I(),{style:Zs,figures:v0,clear:nc,lines:w0}=Z(),_0=/[0-9]/,Xs=t=>t!==void 0,oc=(t,e)=>{let r=Math.pow(10,e);return Math.round(t*r)/r},Qs=class extends b0{constructor(e={}){super(e),this.transform=Zs.render(e.style),this.msg=e.message,this.initial=Xs(e.initial)?e.initial:"",this.float=!!e.float,this.round=e.round||2,this.inc=e.increment||1,this.min=Xs(e.min)?e.min:-1/0,this.max=Xs(e.max)?e.max:1/0,this.errorMsg=e.error||"Please Enter A Valid Value",this.validator=e.validate||(()=>!0),this.color="cyan",this.value="",this.typed="",this.lastHit=0,this.render()}set value(e){!e&&e!==0?(this.placeholder=!0,this.rendered=Lr.gray(this.transform.render(`${this.initial}`)),this._value=""):(this.placeholder=!1,this.rendered=this.transform.render(`${oc(e,this.round)}`),this._value=oc(e,this.round)),this.fire()}get value(){return this._value}parse(e){return this.float?parseFloat(e):parseInt(e)}valid(e){return e==="-"||e==="."&&this.float||_0.test(e)}reset(){this.typed="",this.value="",this.fire(),this.render()}exit(){this.abort()}abort(){let e=this.value;this.value=e!==""?e:this.initial,this.done=this.aborted=!0,this.error=!1,this.fire(),this.render(),this.out.write(`
75
- `),this.close()}async validate(){let e=await this.validator(this.value);typeof e=="string"&&(this.errorMsg=e,e=!1),this.error=!e}async submit(){if(await this.validate(),this.error){this.color="red",this.fire(),this.render();return}let e=this.value;this.value=e!==""?e:this.initial,this.done=!0,this.aborted=!1,this.error=!1,this.fire(),this.render(),this.out.write(`
76
- `),this.close()}up(){if(this.typed="",this.value===""&&(this.value=this.min-this.inc),this.value>=this.max)return this.bell();this.value+=this.inc,this.color="cyan",this.fire(),this.render()}down(){if(this.typed="",this.value===""&&(this.value=this.min+this.inc),this.value<=this.min)return this.bell();this.value-=this.inc,this.color="cyan",this.fire(),this.render()}delete(){let e=this.value.toString();if(e.length===0)return this.bell();this.value=this.parse(e=e.slice(0,-1))||"",this.value!==""&&this.value<this.min&&(this.value=this.min),this.color="cyan",this.fire(),this.render()}next(){this.value=this.initial,this.fire(),this.render()}_(e,r){if(!this.valid(e))return this.bell();let i=Date.now();if(i-this.lastHit>1e3&&(this.typed=""),this.typed+=e,this.lastHit=i,this.color="cyan",e===".")return this.fire();this.value=Math.min(this.parse(this.typed),this.max),this.value>this.max&&(this.value=this.max),this.value<this.min&&(this.value=this.min),this.fire(),this.render()}render(){this.closed||(this.firstRender||(this.outputError&&this.out.write(Fr.down(w0(this.outputError,this.out.columns)-1)+nc(this.outputError,this.out.columns)),this.out.write(nc(this.outputText,this.out.columns))),super.render(),this.outputError="",this.outputText=[Zs.symbol(this.done,this.aborted),Lr.bold(this.msg),Zs.delimiter(this.done),!this.done||!this.done&&!this.placeholder?Lr[this.color]().underline(this.rendered):this.rendered].join(" "),this.error&&(this.outputError+=this.errorMsg.split(`
77
- `).reduce((e,r,i)=>e+`
78
- ${i?" ":v0.pointerSmall} ${Lr.red().italic(r)}`,"")),this.out.write(y0.line+Fr.to(0)+this.outputText+Fr.save+this.outputError+Fr.restore))}};ac.exports=Qs});var tn=h((jv,cc)=>{"use strict";var ue=q(),{cursor:x0}=I(),S0=ye(),{clear:uc,figures:qe,style:hc,wrap:E0,entriesToDisplay:T0}=Z(),en=class extends S0{constructor(e={}){super(e),this.msg=e.message,this.cursor=e.cursor||0,this.scrollIndex=e.cursor||0,this.hint=e.hint||"",this.warn=e.warn||"- This option is disabled -",this.minSelected=e.min,this.showMinError=!1,this.maxChoices=e.max,this.instructions=e.instructions,this.optionsPerPage=e.optionsPerPage||10,this.value=e.choices.map((r,i)=>(typeof r=="string"&&(r={title:r,value:i}),{title:r&&(r.title||r.value||r),description:r&&r.description,value:r&&(r.value===void 0?i:r.value),selected:r&&r.selected,disabled:r&&r.disabled})),this.clear=uc("",this.out.columns),e.overrideRender||this.render()}reset(){this.value.map(e=>!e.selected),this.cursor=0,this.fire(),this.render()}selected(){return this.value.filter(e=>e.selected)}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.fire(),this.render(),this.out.write(`
79
- `),this.close()}submit(){let e=this.value.filter(r=>r.selected);this.minSelected&&e.length<this.minSelected?(this.showMinError=!0,this.render()):(this.done=!0,this.aborted=!1,this.fire(),this.render(),this.out.write(`
80
- `),this.close())}first(){this.cursor=0,this.render()}last(){this.cursor=this.value.length-1,this.render()}next(){this.cursor=(this.cursor+1)%this.value.length,this.render()}up(){this.cursor===0?this.cursor=this.value.length-1:this.cursor--,this.render()}down(){this.cursor===this.value.length-1?this.cursor=0:this.cursor++,this.render()}left(){this.value[this.cursor].selected=!1,this.render()}right(){if(this.value.filter(e=>e.selected).length>=this.maxChoices)return this.bell();this.value[this.cursor].selected=!0,this.render()}handleSpaceToggle(){let e=this.value[this.cursor];if(e.selected)e.selected=!1,this.render();else{if(e.disabled||this.value.filter(r=>r.selected).length>=this.maxChoices)return this.bell();e.selected=!0,this.render()}}toggleAll(){if(this.maxChoices!==void 0||this.value[this.cursor].disabled)return this.bell();let e=!this.value[this.cursor].selected;this.value.filter(r=>!r.disabled).forEach(r=>r.selected=e),this.render()}_(e,r){if(e===" ")this.handleSpaceToggle();else if(e==="a")this.toggleAll();else return this.bell()}renderInstructions(){return this.instructions===void 0||this.instructions?typeof this.instructions=="string"?this.instructions:`
81
- Instructions:
82
- ${qe.arrowUp}/${qe.arrowDown}: Highlight option
83
- ${qe.arrowLeft}/${qe.arrowRight}/[space]: Toggle selection
84
- `+(this.maxChoices===void 0?` a: Toggle all
85
- `:"")+" enter/return: Complete answer":""}renderOption(e,r,i,s){let n=(r.selected?ue.green(qe.radioOn):qe.radioOff)+" "+s+" ",o,a;return r.disabled?o=e===i?ue.gray().underline(r.title):ue.strikethrough().gray(r.title):(o=e===i?ue.cyan().underline(r.title):r.title,e===i&&r.description&&(a=` - ${r.description}`,(n.length+o.length+a.length>=this.out.columns||r.description.split(/\r?\n/).length>1)&&(a=`
86
- `+E0(r.description,{margin:n.length,width:this.out.columns})))),n+o+ue.gray(a||"")}paginateOptions(e){if(e.length===0)return ue.red("No matches for this query.");let{startIndex:r,endIndex:i}=T0(this.cursor,e.length,this.optionsPerPage),s,n=[];for(let o=r;o<i;o++)o===r&&r>0?s=qe.arrowUp:o===i-1&&i<e.length?s=qe.arrowDown:s=" ",n.push(this.renderOption(this.cursor,e[o],o,s));return`
87
- `+n.join(`
88
- `)}renderOptions(e){return this.done?"":this.paginateOptions(e)}renderDoneOrInstructions(){if(this.done)return this.value.filter(r=>r.selected).map(r=>r.title).join(", ");let e=[ue.gray(this.hint),this.renderInstructions()];return this.value[this.cursor].disabled&&e.push(ue.yellow(this.warn)),e.join(" ")}render(){if(this.closed)return;this.firstRender&&this.out.write(x0.hide),super.render();let e=[hc.symbol(this.done,this.aborted),ue.bold(this.msg),hc.delimiter(!1),this.renderDoneOrInstructions()].join(" ");this.showMinError&&(e+=ue.red(`You must select a minimum of ${this.minSelected} choices.`),this.showMinError=!1),e+=this.renderOptions(this.value),this.out.write(this.clear+e),this.clear=uc(e,this.out.columns)}};cc.exports=en});var mc=h((Lv,gc)=>{"use strict";var Vt=q(),O0=ye(),{erase:R0,cursor:fc}=I(),{style:rn,clear:dc,figures:sn,wrap:C0,entriesToDisplay:D0}=Z(),pc=(t,e)=>t[e]&&(t[e].value||t[e].title||t[e]),A0=(t,e)=>t[e]&&(t[e].title||t[e].value||t[e]),q0=(t,e)=>{let r=t.findIndex(i=>i.value===e||i.title===e);return r>-1?r:void 0},nn=class extends O0{constructor(e={}){super(e),this.msg=e.message,this.suggest=e.suggest,this.choices=e.choices,this.initial=typeof e.initial=="number"?e.initial:q0(e.choices,e.initial),this.select=this.initial||e.cursor||0,this.i18n={noMatches:e.noMatches||"no matches found"},this.fallback=e.fallback||this.initial,this.clearFirst=e.clearFirst||!1,this.suggestions=[],this.input="",this.limit=e.limit||10,this.cursor=0,this.transform=rn.render(e.style),this.scale=this.transform.scale,this.render=this.render.bind(this),this.complete=this.complete.bind(this),this.clear=dc("",this.out.columns),this.complete(this.render),this.render()}set fallback(e){this._fb=Number.isSafeInteger(parseInt(e))?parseInt(e):e}get fallback(){let e;return typeof this._fb=="number"?e=this.choices[this._fb]:typeof this._fb=="string"&&(e={title:this._fb}),e||this._fb||{title:this.i18n.noMatches}}moveSelect(e){this.select=e,this.suggestions.length>0?this.value=pc(this.suggestions,e):this.value=this.fallback.value,this.fire()}async complete(e){let r=this.completing=this.suggest(this.input,this.choices),i=await r;if(this.completing!==r)return;this.suggestions=i.map((n,o,a)=>({title:A0(a,o),value:pc(a,o),description:n.description})),this.completing=!1;let s=Math.max(i.length-1,0);this.moveSelect(Math.min(s,this.select)),e&&e()}reset(){this.input="",this.complete(()=>{this.moveSelect(this.initial!==void 0?this.initial:0),this.render()}),this.render()}exit(){this.clearFirst&&this.input.length>0?this.reset():(this.done=this.exited=!0,this.aborted=!1,this.fire(),this.render(),this.out.write(`
89
- `),this.close())}abort(){this.done=this.aborted=!0,this.exited=!1,this.fire(),this.render(),this.out.write(`
90
- `),this.close()}submit(){this.done=!0,this.aborted=this.exited=!1,this.fire(),this.render(),this.out.write(`
91
- `),this.close()}_(e,r){let i=this.input.slice(0,this.cursor),s=this.input.slice(this.cursor);this.input=`${i}${e}${s}`,this.cursor=i.length+1,this.complete(this.render),this.render()}delete(){if(this.cursor===0)return this.bell();let e=this.input.slice(0,this.cursor-1),r=this.input.slice(this.cursor);this.input=`${e}${r}`,this.complete(this.render),this.cursor=this.cursor-1,this.render()}deleteForward(){if(this.cursor*this.scale>=this.rendered.length)return this.bell();let e=this.input.slice(0,this.cursor),r=this.input.slice(this.cursor+1);this.input=`${e}${r}`,this.complete(this.render),this.render()}first(){this.moveSelect(0),this.render()}last(){this.moveSelect(this.suggestions.length-1),this.render()}up(){this.select===0?this.moveSelect(this.suggestions.length-1):this.moveSelect(this.select-1),this.render()}down(){this.select===this.suggestions.length-1?this.moveSelect(0):this.moveSelect(this.select+1),this.render()}next(){this.select===this.suggestions.length-1?this.moveSelect(0):this.moveSelect(this.select+1),this.render()}nextPage(){this.moveSelect(Math.min(this.select+this.limit,this.suggestions.length-1)),this.render()}prevPage(){this.moveSelect(Math.max(this.select-this.limit,0)),this.render()}left(){if(this.cursor<=0)return this.bell();this.cursor=this.cursor-1,this.render()}right(){if(this.cursor*this.scale>=this.rendered.length)return this.bell();this.cursor=this.cursor+1,this.render()}renderOption(e,r,i,s){let n,o=i?sn.arrowUp:s?sn.arrowDown:" ",a=r?Vt.cyan().underline(e.title):e.title;return o=(r?Vt.cyan(sn.pointer)+" ":" ")+o,e.description&&(n=` - ${e.description}`,(o.length+a.length+n.length>=this.out.columns||e.description.split(/\r?\n/).length>1)&&(n=`
92
- `+C0(e.description,{margin:3,width:this.out.columns}))),o+" "+a+Vt.gray(n||"")}render(){if(this.closed)return;this.firstRender?this.out.write(fc.hide):this.out.write(dc(this.outputText,this.out.columns)),super.render();let{startIndex:e,endIndex:r}=D0(this.select,this.choices.length,this.limit);if(this.outputText=[rn.symbol(this.done,this.aborted,this.exited),Vt.bold(this.msg),rn.delimiter(this.completing),this.done&&this.suggestions[this.select]?this.suggestions[this.select].title:this.rendered=this.transform.render(this.input)].join(" "),!this.done){let i=this.suggestions.slice(e,r).map((s,n)=>this.renderOption(s,this.select===n+e,n===0&&e>0,n+e===r-1&&r<this.choices.length)).join(`
93
- `);this.outputText+=`
94
- `+(i||Vt.gray(this.fallback.title))}this.out.write(R0.line+fc.to(0)+this.outputText)}};gc.exports=nn});var wc=h((Fv,vc)=>{"use strict";var we=q(),{cursor:M0}=I(),I0=tn(),{clear:bc,style:yc,figures:pt}=Z(),on=class extends I0{constructor(e={}){e.overrideRender=!0,super(e),this.inputValue="",this.clear=bc("",this.out.columns),this.filteredOptions=this.value,this.render()}last(){this.cursor=this.filteredOptions.length-1,this.render()}next(){this.cursor=(this.cursor+1)%this.filteredOptions.length,this.render()}up(){this.cursor===0?this.cursor=this.filteredOptions.length-1:this.cursor--,this.render()}down(){this.cursor===this.filteredOptions.length-1?this.cursor=0:this.cursor++,this.render()}left(){this.filteredOptions[this.cursor].selected=!1,this.render()}right(){if(this.value.filter(e=>e.selected).length>=this.maxChoices)return this.bell();this.filteredOptions[this.cursor].selected=!0,this.render()}delete(){this.inputValue.length&&(this.inputValue=this.inputValue.substr(0,this.inputValue.length-1),this.updateFilteredOptions())}updateFilteredOptions(){let e=this.filteredOptions[this.cursor];this.filteredOptions=this.value.filter(i=>this.inputValue?!!(typeof i.title=="string"&&i.title.toLowerCase().includes(this.inputValue.toLowerCase())||typeof i.value=="string"&&i.value.toLowerCase().includes(this.inputValue.toLowerCase())):!0);let r=this.filteredOptions.findIndex(i=>i===e);this.cursor=r<0?0:r,this.render()}handleSpaceToggle(){let e=this.filteredOptions[this.cursor];if(e.selected)e.selected=!1,this.render();else{if(e.disabled||this.value.filter(r=>r.selected).length>=this.maxChoices)return this.bell();e.selected=!0,this.render()}}handleInputChange(e){this.inputValue=this.inputValue+e,this.updateFilteredOptions()}_(e,r){e===" "?this.handleSpaceToggle():this.handleInputChange(e)}renderInstructions(){return this.instructions===void 0||this.instructions?typeof this.instructions=="string"?this.instructions:`
95
- Instructions:
96
- ${pt.arrowUp}/${pt.arrowDown}: Highlight option
97
- ${pt.arrowLeft}/${pt.arrowRight}/[space]: Toggle selection
98
- [a,b,c]/delete: Filter choices
99
- enter/return: Complete answer
100
- `:""}renderCurrentInput(){return`
101
- Filtered results for: ${this.inputValue?this.inputValue:we.gray("Enter something to filter")}
102
- `}renderOption(e,r,i){let s;return r.disabled?s=e===i?we.gray().underline(r.title):we.strikethrough().gray(r.title):s=e===i?we.cyan().underline(r.title):r.title,(r.selected?we.green(pt.radioOn):pt.radioOff)+" "+s}renderDoneOrInstructions(){if(this.done)return this.value.filter(r=>r.selected).map(r=>r.title).join(", ");let e=[we.gray(this.hint),this.renderInstructions(),this.renderCurrentInput()];return this.filteredOptions.length&&this.filteredOptions[this.cursor].disabled&&e.push(we.yellow(this.warn)),e.join(" ")}render(){if(this.closed)return;this.firstRender&&this.out.write(M0.hide),super.render();let e=[yc.symbol(this.done,this.aborted),we.bold(this.msg),yc.delimiter(!1),this.renderDoneOrInstructions()].join(" ");this.showMinError&&(e+=we.red(`You must select a minimum of ${this.minSelected} choices.`),this.showMinError=!1),e+=this.renderOptions(this.filteredOptions),this.out.write(this.clear+e),this.clear=bc(e,this.out.columns)}};vc.exports=on});var Tc=h((Bv,Ec)=>{var _c=q(),P0=ye(),{style:xc,clear:$0}=Z(),{erase:k0,cursor:Sc}=I(),an=class extends P0{constructor(e={}){super(e),this.msg=e.message,this.value=e.initial,this.initialValue=!!e.initial,this.yesMsg=e.yes||"yes",this.yesOption=e.yesOption||"(Y/n)",this.noMsg=e.no||"no",this.noOption=e.noOption||"(y/N)",this.render()}reset(){this.value=this.initialValue,this.fire(),this.render()}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.fire(),this.render(),this.out.write(`
103
- `),this.close()}submit(){this.value=this.value||!1,this.done=!0,this.aborted=!1,this.fire(),this.render(),this.out.write(`
104
- `),this.close()}_(e,r){return e.toLowerCase()==="y"?(this.value=!0,this.submit()):e.toLowerCase()==="n"?(this.value=!1,this.submit()):this.bell()}render(){this.closed||(this.firstRender?this.out.write(Sc.hide):this.out.write($0(this.outputText,this.out.columns)),super.render(),this.outputText=[xc.symbol(this.done,this.aborted),_c.bold(this.msg),xc.delimiter(this.done),this.done?this.value?this.yesMsg:this.noMsg:_c.gray(this.initialValue?this.yesOption:this.noOption)].join(" "),this.out.write(k0.line+Sc.to(0)+this.outputText))}};Ec.exports=an});var Rc=h((Nv,Oc)=>{"use strict";Oc.exports={TextPrompt:Eh(),SelectPrompt:Ch(),TogglePrompt:Mh(),DatePrompt:sc(),NumberPrompt:lc(),MultiselectPrompt:tn(),AutocompletePrompt:mc(),AutocompleteMultiselectPrompt:wc(),ConfirmPrompt:Tc()}});var Dc=h(Cc=>{"use strict";var N=Cc,j0=Rc(),Br=t=>t;function he(t,e,r={}){return new Promise((i,s)=>{let n=new j0[t](e),o=r.onAbort||Br,a=r.onSubmit||Br,l=r.onExit||Br;n.on("state",e.onState||Br),n.on("submit",u=>i(a(u))),n.on("exit",u=>i(l(u))),n.on("abort",u=>s(o(u)))})}N.text=t=>he("TextPrompt",t);N.password=t=>(t.style="password",N.text(t));N.invisible=t=>(t.style="invisible",N.text(t));N.number=t=>he("NumberPrompt",t);N.date=t=>he("DatePrompt",t);N.confirm=t=>he("ConfirmPrompt",t);N.list=t=>{let e=t.separator||",";return he("TextPrompt",t,{onSubmit:r=>r.split(e).map(i=>i.trim())})};N.toggle=t=>he("TogglePrompt",t);N.select=t=>he("SelectPrompt",t);N.multiselect=t=>{t.choices=[].concat(t.choices||[]);let e=r=>r.filter(i=>i.selected).map(i=>i.value);return he("MultiselectPrompt",t,{onAbort:e,onSubmit:e})};N.autocompleteMultiselect=t=>{t.choices=[].concat(t.choices||[]);let e=r=>r.filter(i=>i.selected).map(i=>i.value);return he("AutocompleteMultiselectPrompt",t,{onAbort:e,onSubmit:e})};var L0=(t,e)=>Promise.resolve(e.filter(r=>r.title.slice(0,t.length).toLowerCase()===t.toLowerCase()));N.autocomplete=t=>(t.suggest=t.suggest||L0,t.choices=[].concat(t.choices||[]),he("AutocompletePrompt",t))});var Mc=h((Hv,qc)=>{"use strict";var ln=Dc(),F0=["suggest","format","onState","validate","onRender","type"],Ac=()=>{};async function Me(t=[],{onSubmit:e=Ac,onCancel:r=Ac}={}){let i={},s=Me._override||{};t=[].concat(t);let n,o,a,l,u,p,f=async(d,g,v=!1)=>{if(!(!v&&d.validate&&d.validate(g)!==!0))return d.format?await d.format(g,i):g};for(o of t)if({name:l,type:u}=o,typeof u=="function"&&(u=await u(n,{...i},o),o.type=u),!!u){for(let d in o){if(F0.includes(d))continue;let g=o[d];o[d]=typeof g=="function"?await g(n,{...i},p):g}if(p=o,typeof o.message!="string")throw new Error("prompt message is required");if({name:l,type:u}=o,ln[u]===void 0)throw new Error(`prompt type (${u}) is not defined`);if(s[o.name]!==void 0&&(n=await f(o,s[o.name]),n!==void 0)){i[l]=n;continue}try{n=Me._injected?B0(Me._injected,o.initial):await ln[u](o),i[l]=n=await f(o,n,!0),a=await e(o,n,i)}catch{a=!await r(o,i)}if(a)return i}return i}function B0(t,e){let r=t.shift();if(r instanceof Error)throw r;return r===void 0?e:r}function N0(t){Me._injected=(Me._injected||[]).concat(t)}function U0(t){Me._override=Object.assign({},t)}qc.exports=Object.assign(Me,{prompt:Me,prompts:ln,inject:N0,override:U0})});var Pc=h((Wv,Ic)=>{function H0(t){t=(Array.isArray(t)?t:t.split(".")).map(Number);let e=0,r=process.versions.node.split(".").map(Number);for(;e<t.length;e++){if(r[e]>t[e])return!1;if(t[e]>r[e])return!0}return!1}Ic.exports=H0("8.6.0")?sh():Mc()});var Y0={};Uc(Y0,{createApp:()=>kt,runCli:()=>W0,runCreateCli:()=>zi,runCreateInteractiveCli:()=>hn});module.exports=Hc(Y0);var $t=A(require("fs"));var Hr,gn,mn,bn,yn=!0;typeof process<"u"&&({FORCE_COLOR:Hr,NODE_DISABLE_COLORS:gn,NO_COLOR:mn,TERM:bn}=process.env||{},yn=process.stdout&&process.stdout.isTTY);var E={enabled:!gn&&mn==null&&bn!=="dumb"&&(Hr!=null&&Hr!=="0"||yn),reset:O(0,0),bold:O(1,22),dim:O(2,22),italic:O(3,23),underline:O(4,24),inverse:O(7,27),hidden:O(8,28),strikethrough:O(9,29),black:O(30,39),red:O(31,39),green:O(32,39),yellow:O(33,39),blue:O(34,39),magenta:O(35,39),cyan:O(36,39),white:O(37,39),gray:O(90,39),grey:O(90,39),bgBlack:O(40,49),bgRed:O(41,49),bgGreen:O(42,49),bgYellow:O(43,49),bgBlue:O(44,49),bgMagenta:O(45,49),bgCyan:O(46,49),bgWhite:O(47,49)};function pn(t,e){let r=0,i,s="",n="";for(;r<t.length;r++)i=t[r],s+=i.open,n+=i.close,~e.indexOf(i.close)&&(e=e.replace(i.rgx,i.close+i.open));return s+e+n}function Wc(t,e){let r={has:t,keys:e};return r.reset=E.reset.bind(r),r.bold=E.bold.bind(r),r.dim=E.dim.bind(r),r.italic=E.italic.bind(r),r.underline=E.underline.bind(r),r.inverse=E.inverse.bind(r),r.hidden=E.hidden.bind(r),r.strikethrough=E.strikethrough.bind(r),r.black=E.black.bind(r),r.red=E.red.bind(r),r.green=E.green.bind(r),r.yellow=E.yellow.bind(r),r.blue=E.blue.bind(r),r.magenta=E.magenta.bind(r),r.cyan=E.cyan.bind(r),r.white=E.white.bind(r),r.gray=E.gray.bind(r),r.grey=E.grey.bind(r),r.bgBlack=E.bgBlack.bind(r),r.bgRed=E.bgRed.bind(r),r.bgGreen=E.bgGreen.bind(r),r.bgYellow=E.bgYellow.bind(r),r.bgBlue=E.bgBlue.bind(r),r.bgMagenta=E.bgMagenta.bind(r),r.bgCyan=E.bgCyan.bind(r),r.bgWhite=E.bgWhite.bind(r),r}function O(t,e){let r={open:`\x1B[${t}m`,close:`\x1B[${e}m`,rgx:new RegExp(`\\x1b\\[${e}m`,"g")};return function(i){return this!==void 0&&this.has!==void 0?(~this.has.indexOf(t)||(this.has.push(t),this.keys.push(r)),i===void 0?this:E.enabled?pn(this.keys,i+""):i+""):i===void 0?Wc([t],[r]):E.enabled?pn([r],i+""):i+""}}var m=E;var Ce=require("path");var Wr=A(require("fs"),1),Gr=require("path");var _n=A(wn(),1);async function xn(t){let e=(0,Gr.join)(t,"package.json");return JSON.parse(await Wr.default.promises.readFile(e,"utf-8"))}async function Sn(t,e){let r=(0,Gr.join)(t,"package.json");await Wr.default.promises.writeFile(r,JSON.stringify(e,null,2)+`
105
- `)}function En(t){t={...t};let e={name:t.name,version:t.version,description:t.description,scripts:t.scripts,dependencies:t.dependencies,devDependencies:t.devDependencies,main:t.main,qwik:t.qwik,module:t.module,types:t.types,exports:t.exports,files:t.files,engines:{node:">=15.0.0"}};Object.keys(e).forEach(i=>{delete t[i]}),delete t.__qwik__;let r=Object.keys(t).sort();for(let i of r)e[i]=t[i];return e}function Tn(t){return t.toLocaleLowerCase().split("-").map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(" ")}function Ie(){var t;return((t=(0,_n.default)())==null?void 0:t.name)||"npm"}function Ve(t){console.error(`
106
- \u274C ${m.red(t)}
107
- `),process.exit(1)}var Kt=A(require("fs"),1),zt=require("path");var Yr=null;async function Je(){if(!Yr){let t=[],e=["app","feature","adapter"],r=(0,zt.join)(__dirname,"starters"),i=await Kt.default.promises.readdir(r);await Promise.all(i.map(async s=>{let n=s.slice(0,s.length-1);if(e.includes(n)){let o=(0,zt.join)(r,s),a=await Kt.default.promises.readdir(o);await Promise.all(a.map(async l=>{var f,d,g;let u=(0,zt.join)(o,l);if((await Kt.default.promises.stat(u)).isDirectory()){let v=await xn(u),b={id:l,name:((f=v.__qwik__)==null?void 0:f.displayName)??Tn(l),type:n,dir:u,pkgJson:v,docs:((d=v.__qwik__)==null?void 0:d.docs)??[],priority:((g=v==null?void 0:v.__qwik__)==null?void 0:g.priority)??0};t.push(b)}}))}})),t.sort((s,n)=>s.priority>n.priority?-1:s.priority<n.priority?1:s.id<n.id?-1:1),Yr=t}return Yr}function On(t){t.length>0&&(console.log(`\u{1F4DA} ${m.cyan("Relevant docs:")}`),t.forEach(e=>{console.log(` ${e}`)})),console.log(""),console.log(`\u{1F4AC} ${m.cyan("Questions? Start the conversation at:")}`),console.log(" https://qwik.builder.io/chat"),console.log(" https://twitter.com/QwikDev"),console.log("")}var rl=require("path"),Ji=A(require("fs"),1);var We=A(require("fs"),1);var It=A(require("process"),1);var zr=A(require("process"),1);var jn=A(require("process"),1),Ln=A(An(),1),Fn=A(kn(),1),Vc=(0,Ln.default)(()=>{(0,Fn.default)(()=>{jn.default.stderr.write("\x1B[?25h")},{alwaysLast:!0})}),Bn=Vc;var ir=!1,Xe={};Xe.show=(t=zr.default.stderr)=>{t.isTTY&&(ir=!1,t.write("\x1B[?25h"))};Xe.hide=(t=zr.default.stderr)=>{t.isTTY&&(Bn(),ir=!0,t.write("\x1B[?25l"))};Xe.toggle=(t,e)=>{t!==void 0&&(ir=t),ir?Xe.show(e):Xe.hide(e)};var Zr=Xe;var Pt=A(Wn(),1);var U=A(require("process"),1);function vt(){return U.default.platform!=="win32"?U.default.env.TERM!=="linux":Boolean(U.default.env.CI)||Boolean(U.default.env.WT_SESSION)||Boolean(U.default.env.TERMINUS_SUBLIME)||U.default.env.ConEmuTask==="{cmd::Cmder}"||U.default.env.TERM_PROGRAM==="Terminus-Sublime"||U.default.env.TERM_PROGRAM==="vscode"||U.default.env.TERM==="xterm-256color"||U.default.env.TERM==="alacritty"||U.default.env.TERMINAL_EMULATOR==="JetBrains-JediTerm"}var Kc={info:m.blue("\u2139"),success:m.green("\u2714"),warning:m.yellow("\u26A0"),error:m.red("\u2716")},zc={info:m.blue("i"),success:m.green("\u221A"),warning:m.yellow("\u203C"),error:m.red("\xD7")},Zc=vt()?Kc:zc,wt=Zc;function Xr({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")}function Qr(t){if(typeof t!="string")throw new TypeError(`Expected a \`string\`, got \`${typeof t}\``);return t.replace(Xr(),"")}var ha=A(Qn(),1);function ti({stream:t=process.stdout}={}){return Boolean(t&&t.isTTY&&process.env.TERM!=="dumb"&&!("CI"in process.env))}var G=A(require("process"),1),la=A(require("readline"),1),ua=A(aa(),1);var np=3,fe,Mt,it,Oe,xr=class{constructor(){$(this,fe,0);$(this,Mt,new ua.BufferListStream);$(this,it,void 0);$(this,Oe,void 0);c(this,Mt).pipe(G.default.stdout);let e=this;_(this,it,function(r,i,...s){let{stdin:n}=G.default;if(c(e,fe)>0||n.emit===c(e,it)){if(r==="keypress")return;r==="data"&&i.includes(np)&&G.default.emit("SIGINT"),Reflect.apply(c(e,it),this,[r,i,...s])}else Reflect.apply(G.default.stdin.emit,this,[r,i,...s])})}start(){bt(this,fe)._++,c(this,fe)===1&&this._realStart()}stop(){if(c(this,fe)<=0)throw new Error("`stop` called more times than `start`");bt(this,fe)._--,c(this,fe)===0&&this._realStop()}_realStart(){G.default.platform!=="win32"&&(_(this,Oe,la.default.createInterface({input:G.default.stdin,output:c(this,Mt)})),c(this,Oe).on("SIGINT",()=>{G.default.listenerCount("SIGINT")===0?G.default.emit("SIGINT"):(c(this,Oe).close(),G.default.kill(G.default.pid,"SIGINT"))}))}_realStop(){G.default.platform!=="win32"&&(c(this,Oe).close(),_(this,Oe,void 0))}};fe=new WeakMap,Mt=new WeakMap,it=new WeakMap,Oe=new WeakMap;var Sr,Re,st,Ue,de,k,te,L,He,nt,re,ie,se,ot,K,Ii=class{constructor(e){$(this,Re,0);$(this,st,!1);$(this,Ue,0);$(this,de,0);$(this,k,void 0);$(this,te,void 0);$(this,L,void 0);$(this,He,void 0);$(this,nt,void 0);$(this,re,void 0);$(this,ie,void 0);$(this,se,void 0);$(this,ot,void 0);$(this,K,void 0);fn(this,"color");Sr||(Sr=new xr),typeof e=="string"&&(e={text:e}),_(this,k,{color:"cyan",stream:It.default.stderr,discardStdin:!0,hideCursor:!0,...e}),this.color=c(this,k).color,this.spinner=c(this,k).spinner,_(this,nt,c(this,k).interval),_(this,L,c(this,k).stream),_(this,re,typeof c(this,k).isEnabled=="boolean"?c(this,k).isEnabled:ti({stream:c(this,L)})),_(this,ie,typeof c(this,k).isSilent=="boolean"?c(this,k).isSilent:!1),this.text=c(this,k).text,this.prefixText=c(this,k).prefixText,this.indent=c(this,k).indent,It.default.env.NODE_ENV==="test"&&(this._stream=c(this,L),this._isEnabled=c(this,re),Object.defineProperty(this,"_linesToClear",{get(){return c(this,Re)},set(r){_(this,Re,r)}}),Object.defineProperty(this,"_frameIndex",{get(){return c(this,de)}}),Object.defineProperty(this,"_lineCount",{get(){return c(this,Ue)}}))}get indent(){return c(this,se)}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,se,e),this.updateLineCount()}get interval(){return c(this,nt)||c(this,te).interval||100}get spinner(){return c(this,te)}set spinner(e){if(_(this,de,0),_(this,nt,void 0),typeof e=="object"){if(e.frames===void 0)throw new Error("The given spinner must have a `frames` property");_(this,te,e)}else if(!vt())_(this,te,Pt.default.line);else if(e===void 0)_(this,te,Pt.default.dots);else if(e!=="default"&&Pt.default[e])_(this,te,Pt.default[e]);else throw new Error(`There is no built-in spinner named '${e}'. See https://github.com/sindresorhus/cli-spinners/blob/main/spinners.json for a full list.`)}get text(){return c(this,ot)}set text(e){_(this,ot,e||""),this.updateLineCount()}get prefixText(){return c(this,K)}set prefixText(e){_(this,K,e||""),this.updateLineCount()}get isSpinning(){return c(this,He)!==void 0}getFullPrefixText(e=c(this,K),r=" "){return typeof e=="string"&&e!==""?e+r:typeof e=="function"?e()+r:""}updateLineCount(){let e=c(this,L).columns||80,r=this.getFullPrefixText(c(this,K),"-");_(this,Ue,0);for(let i of Qr(" ".repeat(c(this,se))+r+"--"+c(this,ot)).split(`
108
- `))_(this,Ue,c(this,Ue)+Math.max(1,Math.ceil((0,ha.default)(i)/e)))}get isEnabled(){return c(this,re)&&!c(this,ie)}set isEnabled(e){if(typeof e!="boolean")throw new TypeError("The `isEnabled` option must be a boolean");_(this,re,e)}get isSilent(){return c(this,ie)}set isSilent(e){if(typeof e!="boolean")throw new TypeError("The `isSilent` option must be a boolean");_(this,ie,e)}frame(){let{frames:e}=c(this,te),r=e[c(this,de)];this.color&&(r=m[this.color](r)),_(this,de,++bt(this,de)._%e.length);let i=typeof c(this,K)=="string"&&c(this,K)!==""?c(this,K)+" ":"",s=typeof this.text=="string"?" "+this.text:"";return i+r+s}clear(){if(!c(this,re)||!c(this,L).isTTY)return this;c(this,L).cursorTo(0);for(let e=0;e<c(this,Re);e++)e>0&&c(this,L).moveCursor(0,-1),c(this,L).clearLine(1);return(c(this,se)||this.lastIndent!==c(this,se))&&c(this,L).cursorTo(c(this,se)),this.lastIndent=c(this,se),_(this,Re,0),this}render(){return c(this,ie)?this:(this.clear(),c(this,L).write(this.frame()),_(this,Re,c(this,Ue)),this)}start(e){return e&&(this.text=e),c(this,ie)?this:c(this,re)?this.isSpinning?this:(c(this,k).hideCursor&&Zr.hide(c(this,L)),c(this,k).discardStdin&&It.default.stdin.isTTY&&(_(this,st,!0),Sr.start()),this.render(),_(this,He,setInterval(this.render.bind(this),this.interval)),this):(this.text&&c(this,L).write(`- ${this.text}
109
- `),this)}stop(){return c(this,re)?(clearInterval(c(this,He)),_(this,He,void 0),_(this,de,0),this.clear(),c(this,k).hideCursor&&Zr.show(c(this,L)),c(this,k).discardStdin&&It.default.stdin.isTTY&&c(this,st)&&(Sr.stop(),_(this,st,!1)),this):this}succeed(e){return this.stopAndPersist({symbol:wt.success,text:e})}fail(e){return this.stopAndPersist({symbol:wt.error,text:e})}warn(e){return this.stopAndPersist({symbol:wt.warning,text:e})}info(e){return this.stopAndPersist({symbol:wt.info,text:e})}stopAndPersist(e={}){if(c(this,ie))return this;let r=e.prefixText||c(this,K),i=e.text||this.text,s=typeof i=="string"?" "+i:"";return this.stop(),c(this,L).write(`${this.getFullPrefixText(r," ")}${e.symbol||" "}${s}
110
- `),this}};Re=new WeakMap,st=new WeakMap,Ue=new WeakMap,de=new WeakMap,k=new WeakMap,te=new WeakMap,L=new WeakMap,He=new WeakMap,nt=new WeakMap,re=new WeakMap,ie=new WeakMap,se=new WeakMap,ot=new WeakMap,K=new WeakMap;function Pi(t){return new Ii(t)}var Qa=A(require("os"),1),Y=A(require("path"),1),el=A(Xa(),1);function Wi(t,e){return Mp(t,["install"],e)}function Mp(t,e,r){let i,s=new Promise(o=>{try{i=(0,el.default)(t,e,{cwd:r,stdio:"ignore"}),i.on("error",()=>{o(!1)}),i.on("close",a=>{o(a===0)})}catch{o(!1)}});return{abort:async()=>{i&&i.kill("SIGINT")},install:s}}function Gi(t){return Pi(t).start()}function tl(t,e){let{tmpInstallDir:r}=Ip(e),{install:i,abort:s}=Wi(t,r);return{abort:s,complete:async(o,a)=>{let l=!1;if(o){let u=Gi(`Installing ${t} dependencies...`);try{if(await i){let f=Y.default.join(r,"node_modules"),d=Y.default.join(a,"node_modules");await We.default.promises.rename(f,d);try{await We.default.promises.rename(Y.default.join(r,"package-lock.json"),Y.default.join(a,"package-lock.json"))}catch{}try{await We.default.promises.rename(Y.default.join(r,"yarn.lock"),Y.default.join(a,"yarn.lock"))}catch{}try{await We.default.promises.rename(Y.default.join(r,"pnpm-lock.yaml"),Y.default.join(a,"pnpm-lock.yaml"))}catch{}u.succeed(),l=!0}else{let f=`
8
+ "use strict";var Mo=Object.create;var He=Object.defineProperty;var Po=Object.getOwnPropertyDescriptor;var Lo=Object.getOwnPropertyNames;var No=Object.getPrototypeOf,jo=Object.prototype.hasOwnProperty;var Fo=(e,t,r)=>t in e?He(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var d=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),qo=(e,t)=>{for(var r in t)He(e,r,{get:t[r],enumerable:!0})},Ri=(e,t,r,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of Lo(t))!jo.call(e,n)&&n!==r&&He(e,n,{get:()=>t[n],enumerable:!(i=Po(t,n))||i.enumerable});return e};var S=(e,t,r)=>(r=e!=null?Mo(No(e)):{},Ri(t||!e||!e.__esModule?He(r,"default",{value:e,enumerable:!0}):r,e)),Uo=e=>Ri(He({},"__esModule",{value:!0}),e);var Ci=(e,t,r)=>(Fo(e,typeof t!="symbol"?t+"":t,r),r),Ti=(e,t,r)=>{if(!t.has(e))throw TypeError("Cannot "+r)};var u=(e,t,r)=>(Ti(e,t,"read from private field"),r?r.call(e):t.get(e)),I=(e,t,r)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,r)},w=(e,t,r,i)=>(Ti(e,t,"write to private field"),i?i.call(e,r):t.set(e,r),r),Je=(e,t,r,i)=>({set _(n){w(e,t,n,r)},get _(){return u(e,t,i)}});var Bi=d((sf,ki)=>{"use strict";ki.exports=function(){if(process.env.npm_config_user_agent)return Vo(process.env.npm_config_user_agent)};function Vo(e){let t=e.split(" ")[0],r=t.lastIndexOf("/"),i=t.substring(0,r);return{name:i==="npminstall"?"cnpm":i,version:t.substring(r+1)}}});var Ui=d((hf,ir)=>{"use strict";var qi=(e,t)=>{for(let r of Reflect.ownKeys(t))Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r));return e};ir.exports=qi;ir.exports.default=qi});var Vi=d((df,bt)=>{"use strict";var Go=Ui(),yt=new WeakMap,Wi=(e,t={})=>{if(typeof e!="function")throw new TypeError("Expected a function");let r,i=0,n=e.displayName||e.name||"<anonymous>",s=function(...o){if(yt.set(s,++i),i===1)r=e.apply(this,o),e=null;else if(t.throw===!0)throw new Error(`Function \`${n}\` can only be called once`);return r};return Go(s,e),yt.set(s,i),s};bt.exports=Wi;bt.exports.default=Wi;bt.exports.callCount=e=>{if(!yt.has(e))throw new Error(`The given function \`${e.name}\` is not wrapped by the \`onetime\` package`);return yt.get(e)}});var Gi=d((pf,xt)=>{xt.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"];process.platform!=="win32"&&xt.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT");process.platform==="linux"&&xt.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")});var zi=d((gf,Ie)=>{var $=global.process,me=function(e){return e&&typeof e=="object"&&typeof e.removeListener=="function"&&typeof e.emit=="function"&&typeof e.reallyExit=="function"&&typeof e.listeners=="function"&&typeof e.kill=="function"&&typeof e.pid=="number"&&typeof e.on=="function"};me($)?(Hi=require("assert"),Oe=Gi(),Ji=/^win/i.test($.platform),Ye=require("events"),typeof Ye!="function"&&(Ye=Ye.EventEmitter),$.__signal_exit_emitter__?M=$.__signal_exit_emitter__:(M=$.__signal_exit_emitter__=new Ye,M.count=0,M.emitted={}),M.infinite||(M.setMaxListeners(1/0),M.infinite=!0),Ie.exports=function(e,t){if(!me(global.process))return function(){};Hi.equal(typeof e,"function","a callback must be provided for exit handler"),De===!1&&nr();var r="exit";t&&t.alwaysLast&&(r="afterexit");var i=function(){M.removeListener(r,e),M.listeners("exit").length===0&&M.listeners("afterexit").length===0&&vt()};return M.on(r,e),i},vt=function(){!De||!me(global.process)||(De=!1,Oe.forEach(function(t){try{$.removeListener(t,wt[t])}catch{}}),$.emit=Et,$.reallyExit=sr,M.count-=1)},Ie.exports.unload=vt,_e=function(t,r,i){M.emitted[t]||(M.emitted[t]=!0,M.emit(t,r,i))},wt={},Oe.forEach(function(e){wt[e]=function(){if(me(global.process)){var r=$.listeners(e);r.length===M.count&&(vt(),_e("exit",null,e),_e("afterexit",null,e),Ji&&e==="SIGHUP"&&(e="SIGINT"),$.kill($.pid,e))}}}),Ie.exports.signals=function(){return Oe},De=!1,nr=function(){De||!me(global.process)||(De=!0,M.count+=1,Oe=Oe.filter(function(t){try{return $.on(t,wt[t]),!0}catch{return!1}}),$.emit=Ki,$.reallyExit=Yi)},Ie.exports.load=nr,sr=$.reallyExit,Yi=function(t){me(global.process)&&($.exitCode=t||0,_e("exit",$.exitCode,null),_e("afterexit",$.exitCode,null),sr.call($,$.exitCode))},Et=$.emit,Ki=function(t,r){if(t==="exit"&&me(global.process)){r!==void 0&&($.exitCode=r);var i=Et.apply(this,arguments);return _e("exit",$.exitCode,null),_e("afterexit",$.exitCode,null),i}else return Et.apply(this,arguments)}):Ie.exports=function(){return function(){}};var Hi,Oe,Ji,Ye,M,vt,_e,wt,De,nr,sr,Yi,Et,Ki});var tn=d((bf,Jo)=>{Jo.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"]},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"]}}});var sn=d((xf,nn)=>{"use strict";var Rt=Object.assign({},tn()),rn=Object.keys(Rt);Object.defineProperty(Rt,"random",{get(){let e=Math.floor(Math.random()*rn.length),t=rn[e];return Rt[t]}});nn.exports=Rt});var on=d(($f,Ct)=>{var Zo=function(){"use strict";function e(o,a,l,f){var g;typeof a=="object"&&(l=a.depth,f=a.prototype,g=a.filter,a=a.circular);var h=[],m=[],x=typeof Buffer<"u";typeof a>"u"&&(a=!0),typeof l>"u"&&(l=1/0);function b(y,F){if(y===null)return null;if(F==0)return y;var v,se;if(typeof y!="object")return y;if(e.__isArray(y))v=[];else if(e.__isRegExp(y))v=new RegExp(y.source,s(y)),y.lastIndex&&(v.lastIndex=y.lastIndex);else if(e.__isDate(y))v=new Date(y.getTime());else{if(x&&Buffer.isBuffer(y))return Buffer.allocUnsafe?v=Buffer.allocUnsafe(y.length):v=new Buffer(y.length),y.copy(v),v;typeof f>"u"?(se=Object.getPrototypeOf(y),v=Object.create(se)):(v=Object.create(f),se=f)}if(a){var Si=h.indexOf(y);if(Si!=-1)return m[Si];h.push(y),m.push(v)}for(var Zt in y){var Xt;se&&(Xt=Object.getOwnPropertyDescriptor(se,Zt)),!(Xt&&Xt.set==null)&&(v[Zt]=b(y[Zt],F-1))}return v}return b(o,l)}e.clonePrototype=function(a){if(a===null)return null;var l=function(){};return l.prototype=a,new l};function t(o){return Object.prototype.toString.call(o)}e.__objToStr=t;function r(o){return typeof o=="object"&&t(o)==="[object Date]"}e.__isDate=r;function i(o){return typeof o=="object"&&t(o)==="[object Array]"}e.__isArray=i;function n(o){return typeof o=="object"&&t(o)==="[object RegExp]"}e.__isRegExp=n;function s(o){var a="";return o.global&&(a+="g"),o.ignoreCase&&(a+="i"),o.multiline&&(a+="m"),a}return e.__getRegExpFlags=s,e}();typeof Ct=="object"&&Ct.exports&&(Ct.exports=Zo)});var ln=d((Af,an)=>{var Xo=on();an.exports=function(e,t){return e=e||{},Object.keys(t).forEach(function(r){typeof e[r]>"u"&&(e[r]=Xo(t[r]))}),e}});var fn=d((Of,un)=>{un.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 pn=d((Df,fr)=>{"use strict";var Qo=ln(),Ze=fn(),hn={nul:0,control:0};fr.exports=function(t){return dn(t,hn)};fr.exports.config=function(e){return e=Qo(e||{},hn),function(r){return dn(r,e)}};function dn(e,t){if(typeof e!="string")return cn(e,t);for(var r=0,i=0;i<e.length;i++){var n=cn(e.charCodeAt(i),t);if(n<0)return-1;r+=n}return r}function cn(e,t){return e===0?t.nul:e<32||e>=127&&e<160?t.control:ea(e)?0:1+(e>=4352&&(e<=4447||e==9001||e==9002||e>=11904&&e<=42191&&e!=12351||e>=44032&&e<=55203||e>=63744&&e<=64255||e>=65040&&e<=65049||e>=65072&&e<=65135||e>=65280&&e<=65376||e>=65504&&e<=65510||e>=131072&&e<=196605||e>=196608&&e<=262141))}function ea(e){var t=0,r=Ze.length-1,i;if(e<Ze[0][0]||e>Ze[r][1])return!1;for(;r>=t;)if(i=Math.floor((t+r)/2),e>Ze[i][1])t=i+1;else if(e<Ze[i][0])r=i-1;else return!0;return!1}});var hr=d((kf,gn)=>{gn.exports=require("stream")});var bn=d((Bf,yn)=>{"use strict";function mn(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,i)}return r}function ta(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?mn(Object(r),!0).forEach(function(i){ra(e,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):mn(Object(r)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(r,i))})}return e}function ra(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ia(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _n(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function na(e,t,r){return t&&_n(e.prototype,t),r&&_n(e,r),e}var sa=require("buffer"),Tt=sa.Buffer,oa=require("util"),dr=oa.inspect,aa=dr&&dr.custom||"inspect";function la(e,t,r){Tt.prototype.copy.call(e,t,r)}yn.exports=function(){function e(){ia(this,e),this.head=null,this.tail=null,this.length=0}return na(e,[{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 Tt.alloc(0);for(var i=Tt.allocUnsafe(r>>>0),n=this.head,s=0;n;)la(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 o=i.data,a=r>o.length?o.length:r;if(a===o.length?s+=o:s+=o.slice(0,r),r-=a,r===0){a===o.length?(++n,i.next?this.head=i.next:this.head=this.tail=null):(this.head=i,i.data=o.slice(a));break}++n}return this.length-=n,s}},{key:"_getBuffer",value:function(r){var i=Tt.allocUnsafe(r),n=this.head,s=1;for(n.data.copy(i),r-=n.data.length;n=n.next;){var o=n.data,a=r>o.length?o.length:r;if(o.copy(i,i.length-r,0,a),r-=a,r===0){a===o.length?(++s,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=o.slice(a));break}++s}return this.length-=s,i}},{key:aa,value:function(r,i){return dr(this,ta({},i,{depth:0,customInspect:!1}))}}]),e}()});var gr=d((Mf,vn)=>{"use strict";function ua(e,t){var r=this,i=this._readableState&&this._readableState.destroyed,n=this._writableState&&this._writableState.destroyed;return i||n?(t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(pr,this,e)):process.nextTick(pr,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(s){!t&&s?r._writableState?r._writableState.errorEmitted?process.nextTick($t,r):(r._writableState.errorEmitted=!0,process.nextTick(xn,r,s)):process.nextTick(xn,r,s):t?(process.nextTick($t,r),t(s)):process.nextTick($t,r)}),this)}function xn(e,t){pr(e,t),$t(e)}function $t(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function fa(){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 pr(e,t){e.emit("error",t)}function ca(e,t){var r=e._readableState,i=e._writableState;r&&r.autoDestroy||i&&i.autoDestroy?e.destroy(t):e.emit("error",t)}vn.exports={destroy:ua,undestroy:fa,errorOrDestroy:ca}});var oe=d((Pf,Sn)=>{"use strict";var En={};function U(e,t,r){r||(r=Error);function i(s,o,a){return typeof t=="string"?t:t(s,o,a)}class n extends r{constructor(o,a,l){super(i(o,a,l))}}n.prototype.name=r.name,n.prototype.code=e,En[e]=n}function wn(e,t){if(Array.isArray(e)){let r=e.length;return e=e.map(i=>String(i)),r>2?`one of ${t} ${e.slice(0,r-1).join(", ")}, or `+e[r-1]:r===2?`one of ${t} ${e[0]} or ${e[1]}`:`of ${t} ${e[0]}`}else return`of ${t} ${String(e)}`}function ha(e,t,r){return e.substr(!r||r<0?0:+r,t.length)===t}function da(e,t,r){return(r===void 0||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}function pa(e,t,r){return typeof r!="number"&&(r=0),r+t.length>e.length?!1:e.indexOf(t,r)!==-1}U("ERR_INVALID_OPT_VALUE",function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'},TypeError);U("ERR_INVALID_ARG_TYPE",function(e,t,r){let i;typeof t=="string"&&ha(t,"not ")?(i="must not be",t=t.replace(/^not /,"")):i="must be";let n;if(da(e," argument"))n=`The ${e} ${i} ${wn(t,"type")}`;else{let s=pa(e,".")?"property":"argument";n=`The "${e}" ${s} ${i} ${wn(t,"type")}`}return n+=`. Received type ${typeof r}`,n},TypeError);U("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF");U("ERR_METHOD_NOT_IMPLEMENTED",function(e){return"The "+e+" method is not implemented"});U("ERR_STREAM_PREMATURE_CLOSE","Premature close");U("ERR_STREAM_DESTROYED",function(e){return"Cannot call "+e+" after a stream was destroyed"});U("ERR_MULTIPLE_CALLBACK","Callback called multiple times");U("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable");U("ERR_STREAM_WRITE_AFTER_END","write after end");U("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);U("ERR_UNKNOWN_ENCODING",function(e){return"Unknown encoding: "+e},TypeError);U("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event");Sn.exports.codes=En});var mr=d((Lf,Rn)=>{"use strict";var ga=oe().codes.ERR_INVALID_OPT_VALUE;function ma(e,t,r){return e.highWaterMark!=null?e.highWaterMark:t?e[r]:null}function _a(e,t,r,i){var n=ma(t,i,r);if(n!=null){if(!(isFinite(n)&&Math.floor(n)===n)||n<0){var s=i?r:"highWaterMark";throw new ga(s,n)}return Math.floor(n)}return e.objectMode?16:16*1024}Rn.exports={getHighWaterMark:_a}});var Cn=d((Nf,_r)=>{typeof Object.create=="function"?_r.exports=function(t,r){r&&(t.super_=r,t.prototype=Object.create(r.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:_r.exports=function(t,r){if(r){t.super_=r;var i=function(){};i.prototype=r.prototype,t.prototype=new i,t.prototype.constructor=t}}});var ye=d((jf,br)=>{try{if(yr=require("util"),typeof yr.inherits!="function")throw"";br.exports=yr.inherits}catch{br.exports=Cn()}var yr});var $n=d((Ff,Tn)=>{Tn.exports=require("util").deprecate});var wr=d((qf,Bn)=>{"use strict";Bn.exports=D;function On(e){var t=this;this.next=null,this.entry=null,this.finish=function(){Va(t,e)}}var Be;D.WritableState=Qe;var ya={deprecate:$n()},Dn=hr(),Ot=require("buffer").Buffer,ba=global.Uint8Array||function(){};function xa(e){return Ot.from(e)}function va(e){return Ot.isBuffer(e)||e instanceof ba}var vr=gr(),wa=mr(),Ea=wa.getHighWaterMark,ae=oe().codes,Sa=ae.ERR_INVALID_ARG_TYPE,Ra=ae.ERR_METHOD_NOT_IMPLEMENTED,Ca=ae.ERR_MULTIPLE_CALLBACK,Ta=ae.ERR_STREAM_CANNOT_PIPE,$a=ae.ERR_STREAM_DESTROYED,Aa=ae.ERR_STREAM_NULL_VALUES,Oa=ae.ERR_STREAM_WRITE_AFTER_END,Da=ae.ERR_UNKNOWN_ENCODING,Me=vr.errorOrDestroy;ye()(D,Dn);function Ia(){}function Qe(e,t,r){Be=Be||be(),e=e||{},typeof r!="boolean"&&(r=t instanceof Be),this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=Ea(this,e,"writableHighWaterMark",r),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var i=e.decodeStrings===!1;this.decodeStrings=!i,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(n){ja(t,n)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=e.emitClose!==!1,this.autoDestroy=!!e.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new On(this)}Qe.prototype.getBuffer=function(){for(var t=this.bufferedRequest,r=[];t;)r.push(t),t=t.next;return r};(function(){try{Object.defineProperty(Qe.prototype,"buffer",{get:ya.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})();var At;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(At=Function.prototype[Symbol.hasInstance],Object.defineProperty(D,Symbol.hasInstance,{value:function(t){return At.call(this,t)?!0:this!==D?!1:t&&t._writableState instanceof Qe}})):At=function(t){return t instanceof this};function D(e){Be=Be||be();var t=this instanceof Be;if(!t&&!At.call(D,this))return new D(e);this._writableState=new Qe(e,this,t),this.writable=!0,e&&(typeof e.write=="function"&&(this._write=e.write),typeof e.writev=="function"&&(this._writev=e.writev),typeof e.destroy=="function"&&(this._destroy=e.destroy),typeof e.final=="function"&&(this._final=e.final)),Dn.call(this)}D.prototype.pipe=function(){Me(this,new Ta)};function ka(e,t){var r=new Oa;Me(e,r),process.nextTick(t,r)}function Ba(e,t,r,i){var n;return r===null?n=new Aa:typeof r!="string"&&!t.objectMode&&(n=new Sa("chunk",["string","Buffer"],r)),n?(Me(e,n),process.nextTick(i,n),!1):!0}D.prototype.write=function(e,t,r){var i=this._writableState,n=!1,s=!i.objectMode&&va(e);return s&&!Ot.isBuffer(e)&&(e=xa(e)),typeof t=="function"&&(r=t,t=null),s?t="buffer":t||(t=i.defaultEncoding),typeof r!="function"&&(r=Ia),i.ending?ka(this,r):(s||Ba(this,i,e,r))&&(i.pendingcb++,n=Pa(this,i,s,e,t,r)),n};D.prototype.cork=function(){this._writableState.corked++};D.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,!e.writing&&!e.corked&&!e.bufferProcessing&&e.bufferedRequest&&In(this,e))};D.prototype.setDefaultEncoding=function(t){if(typeof t=="string"&&(t=t.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((t+"").toLowerCase())>-1))throw new Da(t);return this._writableState.defaultEncoding=t,this};Object.defineProperty(D.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function Ma(e,t,r){return!e.objectMode&&e.decodeStrings!==!1&&typeof t=="string"&&(t=Ot.from(t,r)),t}Object.defineProperty(D.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function Pa(e,t,r,i,n,s){if(!r){var o=Ma(t,i,n);i!==o&&(r=!0,n="buffer",i=o)}var a=t.objectMode?1:i.length;t.length+=a;var l=t.length<t.highWaterMark;if(l||(t.needDrain=!0),t.writing||t.corked){var f=t.lastBufferedRequest;t.lastBufferedRequest={chunk:i,encoding:n,isBuf:r,callback:s,next:null},f?f.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else xr(e,t,!1,a,i,n,s);return l}function xr(e,t,r,i,n,s,o){t.writelen=i,t.writecb=o,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new $a("write")):r?e._writev(n,t.onwrite):e._write(n,s,t.onwrite),t.sync=!1}function La(e,t,r,i,n){--t.pendingcb,r?(process.nextTick(n,i),process.nextTick(Xe,e,t),e._writableState.errorEmitted=!0,Me(e,i)):(n(i),e._writableState.errorEmitted=!0,Me(e,i),Xe(e,t))}function Na(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}function ja(e,t){var r=e._writableState,i=r.sync,n=r.writecb;if(typeof n!="function")throw new Ca;if(Na(r),t)La(e,r,i,t,n);else{var s=kn(r)||e.destroyed;!s&&!r.corked&&!r.bufferProcessing&&r.bufferedRequest&&In(e,r),i?process.nextTick(An,e,r,s,n):An(e,r,s,n)}}function An(e,t,r,i){r||Fa(e,t),t.pendingcb--,i(),Xe(e,t)}function Fa(e,t){t.length===0&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}function In(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var i=t.bufferedRequestCount,n=new Array(i),s=t.corkedRequestsFree;s.entry=r;for(var o=0,a=!0;r;)n[o]=r,r.isBuf||(a=!1),r=r.next,o+=1;n.allBuffers=a,xr(e,t,!0,t.length,n,"",s.finish),t.pendingcb++,t.lastBufferedRequest=null,s.next?(t.corkedRequestsFree=s.next,s.next=null):t.corkedRequestsFree=new On(t),t.bufferedRequestCount=0}else{for(;r;){var l=r.chunk,f=r.encoding,g=r.callback,h=t.objectMode?1:l.length;if(xr(e,t,!1,h,l,f,g),r=r.next,t.bufferedRequestCount--,t.writing)break}r===null&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}D.prototype._write=function(e,t,r){r(new Ra("_write()"))};D.prototype._writev=null;D.prototype.end=function(e,t,r){var i=this._writableState;return typeof e=="function"?(r=e,e=null,t=null):typeof t=="function"&&(r=t,t=null),e!=null&&this.write(e,t),i.corked&&(i.corked=1,this.uncork()),i.ending||Wa(this,i,r),this};Object.defineProperty(D.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function kn(e){return e.ending&&e.length===0&&e.bufferedRequest===null&&!e.finished&&!e.writing}function qa(e,t){e._final(function(r){t.pendingcb--,r&&Me(e,r),t.prefinished=!0,e.emit("prefinish"),Xe(e,t)})}function Ua(e,t){!t.prefinished&&!t.finalCalled&&(typeof e._final=="function"&&!t.destroyed?(t.pendingcb++,t.finalCalled=!0,process.nextTick(qa,e,t)):(t.prefinished=!0,e.emit("prefinish")))}function Xe(e,t){var r=kn(t);if(r&&(Ua(e,t),t.pendingcb===0&&(t.finished=!0,e.emit("finish"),t.autoDestroy))){var i=e._readableState;(!i||i.autoDestroy&&i.endEmitted)&&e.destroy()}return r}function Wa(e,t,r){t.ending=!0,Xe(e,t),r&&(t.finished?process.nextTick(r):e.once("finish",r)),t.ended=!0,e.writable=!1}function Va(e,t,r){var i=e.entry;for(e.entry=null;i;){var n=i.callback;t.pendingcb--,n(r),i=i.next}t.corkedRequestsFree.next=e}Object.defineProperty(D.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(t){this._writableState&&(this._writableState.destroyed=t)}});D.prototype.destroy=vr.destroy;D.prototype._undestroy=vr.undestroy;D.prototype._destroy=function(e,t){t(e)}});var be=d((Uf,Pn)=>{"use strict";var Ga=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};Pn.exports=z;var Mn=Rr(),Sr=wr();ye()(z,Mn);for(Er=Ga(Sr.prototype),Dt=0;Dt<Er.length;Dt++)It=Er[Dt],z.prototype[It]||(z.prototype[It]=Sr.prototype[It]);var Er,It,Dt;function z(e){if(!(this instanceof z))return new z(e);Mn.call(this,e),Sr.call(this,e),this.allowHalfOpen=!0,e&&(e.readable===!1&&(this.readable=!1),e.writable===!1&&(this.writable=!1),e.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",Ha)))}Object.defineProperty(z.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});Object.defineProperty(z.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});Object.defineProperty(z.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function Ha(){this._writableState.ended||process.nextTick(Ja,this)}function Ja(e){e.end()}Object.defineProperty(z.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(t){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=t,this._writableState.destroyed=t)}})});var jn=d((Cr,Nn)=>{var kt=require("buffer"),Z=kt.Buffer;function Ln(e,t){for(var r in e)t[r]=e[r]}Z.from&&Z.alloc&&Z.allocUnsafe&&Z.allocUnsafeSlow?Nn.exports=kt:(Ln(kt,Cr),Cr.Buffer=xe);function xe(e,t,r){return Z(e,t,r)}xe.prototype=Object.create(Z.prototype);Ln(Z,xe);xe.from=function(e,t,r){if(typeof e=="number")throw new TypeError("Argument must not be a number");return Z(e,t,r)};xe.alloc=function(e,t,r){if(typeof e!="number")throw new TypeError("Argument must be a number");var i=Z(e);return t!==void 0?typeof r=="string"?i.fill(t,r):i.fill(t):i.fill(0),i};xe.allocUnsafe=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return Z(e)};xe.allocUnsafeSlow=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return kt.SlowBuffer(e)}});var Ar=d(qn=>{"use strict";var $r=jn().Buffer,Fn=$r.isEncoding||function(e){switch(e=""+e,e&&e.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 Ya(e){if(!e)return"utf8";for(var t;;)switch(e){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 e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}function Ka(e){var t=Ya(e);if(typeof t!="string"&&($r.isEncoding===Fn||!Fn(e)))throw new Error("Unknown encoding: "+e);return t||e}qn.StringDecoder=et;function et(e){this.encoding=Ka(e);var t;switch(this.encoding){case"utf16le":this.text=tl,this.end=rl,t=4;break;case"utf8":this.fillLast=Xa,t=4;break;case"base64":this.text=il,this.end=nl,t=3;break;default:this.write=sl,this.end=ol;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=$r.allocUnsafe(t)}et.prototype.write=function(e){if(e.length===0)return"";var t,r;if(this.lastNeed){if(t=this.fillLast(e),t===void 0)return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<e.length?t?t+this.text(e,r):this.text(e,r):t||""};et.prototype.end=el;et.prototype.text=Qa;et.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length};function Tr(e){return e<=127?0:e>>5===6?2:e>>4===14?3:e>>3===30?4:e>>6===2?-1:-2}function za(e,t,r){var i=t.length-1;if(i<r)return 0;var n=Tr(t[i]);return n>=0?(n>0&&(e.lastNeed=n-1),n):--i<r||n===-2?0:(n=Tr(t[i]),n>=0?(n>0&&(e.lastNeed=n-2),n):--i<r||n===-2?0:(n=Tr(t[i]),n>=0?(n>0&&(n===2?n=0:e.lastNeed=n-3),n):0))}function Za(e,t,r){if((t[0]&192)!==128)return e.lastNeed=0,"\uFFFD";if(e.lastNeed>1&&t.length>1){if((t[1]&192)!==128)return e.lastNeed=1,"\uFFFD";if(e.lastNeed>2&&t.length>2&&(t[2]&192)!==128)return e.lastNeed=2,"\uFFFD"}}function Xa(e){var t=this.lastTotal-this.lastNeed,r=Za(this,e,t);if(r!==void 0)return r;if(this.lastNeed<=e.length)return e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,t,0,e.length),this.lastNeed-=e.length}function Qa(e,t){var r=za(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var i=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,i),e.toString("utf8",t,i)}function el(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"\uFFFD":t}function tl(e,t){if((e.length-t)%2===0){var r=e.toString("utf16le",t);if(r){var i=r.charCodeAt(r.length-1);if(i>=55296&&i<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function rl(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function il(e,t){var r=(e.length-t)%3;return r===0?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,r===1?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function nl(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function sl(e){return e.toString(this.encoding)}function ol(e){return e&&e.length?this.write(e):""}});var Bt=d((Vf,Vn)=>{"use strict";var Un=oe().codes.ERR_STREAM_PREMATURE_CLOSE;function al(e){var t=!1;return function(){if(!t){t=!0;for(var r=arguments.length,i=new Array(r),n=0;n<r;n++)i[n]=arguments[n];e.apply(this,i)}}}function ll(){}function ul(e){return e.setHeader&&typeof e.abort=="function"}function Wn(e,t,r){if(typeof t=="function")return Wn(e,null,t);t||(t={}),r=al(r||ll);var i=t.readable||t.readable!==!1&&e.readable,n=t.writable||t.writable!==!1&&e.writable,s=function(){e.writable||a()},o=e._writableState&&e._writableState.finished,a=function(){n=!1,o=!0,i||r.call(e)},l=e._readableState&&e._readableState.endEmitted,f=function(){i=!1,l=!0,n||r.call(e)},g=function(b){r.call(e,b)},h=function(){var b;if(i&&!l)return(!e._readableState||!e._readableState.ended)&&(b=new Un),r.call(e,b);if(n&&!o)return(!e._writableState||!e._writableState.ended)&&(b=new Un),r.call(e,b)},m=function(){e.req.on("finish",a)};return ul(e)?(e.on("complete",a),e.on("abort",h),e.req?m():e.on("request",m)):n&&!e._writableState&&(e.on("end",s),e.on("close",s)),e.on("end",f),e.on("finish",a),t.error!==!1&&e.on("error",g),e.on("close",h),function(){e.removeListener("complete",a),e.removeListener("abort",h),e.removeListener("request",m),e.req&&e.req.removeListener("finish",a),e.removeListener("end",s),e.removeListener("close",s),e.removeListener("finish",a),e.removeListener("end",f),e.removeListener("error",g),e.removeListener("close",h)}}Vn.exports=Wn});var Hn=d((Gf,Gn)=>{"use strict";var Mt;function le(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var fl=Bt(),ue=Symbol("lastResolve"),ve=Symbol("lastReject"),tt=Symbol("error"),Pt=Symbol("ended"),we=Symbol("lastPromise"),Or=Symbol("handlePromise"),Ee=Symbol("stream");function fe(e,t){return{value:e,done:t}}function cl(e){var t=e[ue];if(t!==null){var r=e[Ee].read();r!==null&&(e[we]=null,e[ue]=null,e[ve]=null,t(fe(r,!1)))}}function hl(e){process.nextTick(cl,e)}function dl(e,t){return function(r,i){e.then(function(){if(t[Pt]){r(fe(void 0,!0));return}t[Or](r,i)},i)}}var pl=Object.getPrototypeOf(function(){}),gl=Object.setPrototypeOf((Mt={get stream(){return this[Ee]},next:function(){var t=this,r=this[tt];if(r!==null)return Promise.reject(r);if(this[Pt])return Promise.resolve(fe(void 0,!0));if(this[Ee].destroyed)return new Promise(function(o,a){process.nextTick(function(){t[tt]?a(t[tt]):o(fe(void 0,!0))})});var i=this[we],n;if(i)n=new Promise(dl(i,this));else{var s=this[Ee].read();if(s!==null)return Promise.resolve(fe(s,!1));n=new Promise(this[Or])}return this[we]=n,n}},le(Mt,Symbol.asyncIterator,function(){return this}),le(Mt,"return",function(){var t=this;return new Promise(function(r,i){t[Ee].destroy(null,function(n){if(n){i(n);return}r(fe(void 0,!0))})})}),Mt),pl),ml=function(t){var r,i=Object.create(gl,(r={},le(r,Ee,{value:t,writable:!0}),le(r,ue,{value:null,writable:!0}),le(r,ve,{value:null,writable:!0}),le(r,tt,{value:null,writable:!0}),le(r,Pt,{value:t._readableState.endEmitted,writable:!0}),le(r,Or,{value:function(s,o){var a=i[Ee].read();a?(i[we]=null,i[ue]=null,i[ve]=null,s(fe(a,!1))):(i[ue]=s,i[ve]=o)},writable:!0}),r));return i[we]=null,fl(t,function(n){if(n&&n.code!=="ERR_STREAM_PREMATURE_CLOSE"){var s=i[ve];s!==null&&(i[we]=null,i[ue]=null,i[ve]=null,s(n)),i[tt]=n;return}var o=i[ue];o!==null&&(i[we]=null,i[ue]=null,i[ve]=null,o(fe(void 0,!0))),i[Pt]=!0}),t.on("readable",hl.bind(null,i)),i};Gn.exports=ml});var zn=d((Hf,Kn)=>{"use strict";function Jn(e,t,r,i,n,s,o){try{var a=e[s](o),l=a.value}catch(f){r(f);return}a.done?t(l):Promise.resolve(l).then(i,n)}function _l(e){return function(){var t=this,r=arguments;return new Promise(function(i,n){var s=e.apply(t,r);function o(l){Jn(s,i,n,o,a,"next",l)}function a(l){Jn(s,i,n,o,a,"throw",l)}o(void 0)})}}function Yn(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,i)}return r}function yl(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Yn(Object(r),!0).forEach(function(i){bl(e,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Yn(Object(r)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(r,i))})}return e}function bl(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var xl=oe().codes.ERR_INVALID_ARG_TYPE;function vl(e,t,r){var i;if(t&&typeof t.next=="function")i=t;else if(t&&t[Symbol.asyncIterator])i=t[Symbol.asyncIterator]();else if(t&&t[Symbol.iterator])i=t[Symbol.iterator]();else throw new xl("iterable",["Iterable"],t);var n=new e(yl({objectMode:!0},r)),s=!1;n._read=function(){s||(s=!0,o())};function o(){return a.apply(this,arguments)}function a(){return a=_l(function*(){try{var l=yield i.next(),f=l.value,g=l.done;g?n.push(null):n.push(yield f)?o():s=!1}catch(h){n.destroy(h)}}),a.apply(this,arguments)}return n}Kn.exports=vl});var Rr=d((Yf,os)=>{"use strict";os.exports=E;var Pe;E.ReadableState=es;var Jf=require("events").EventEmitter,Qn=function(t,r){return t.listeners(r).length},it=hr(),Lt=require("buffer").Buffer,wl=global.Uint8Array||function(){};function El(e){return Lt.from(e)}function Sl(e){return Lt.isBuffer(e)||e instanceof wl}var Dr=require("util"),_;Dr&&Dr.debuglog?_=Dr.debuglog("stream"):_=function(){};var Rl=bn(),Nr=gr(),Cl=mr(),Tl=Cl.getHighWaterMark,Nt=oe().codes,$l=Nt.ERR_INVALID_ARG_TYPE,Al=Nt.ERR_STREAM_PUSH_AFTER_EOF,Ol=Nt.ERR_METHOD_NOT_IMPLEMENTED,Dl=Nt.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,Le,Ir,kr;ye()(E,it);var rt=Nr.errorOrDestroy,Br=["error","close","destroy","pause","resume"];function Il(e,t,r){if(typeof e.prependListener=="function")return e.prependListener(t,r);!e._events||!e._events[t]?e.on(t,r):Array.isArray(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]}function es(e,t,r){Pe=Pe||be(),e=e||{},typeof r!="boolean"&&(r=t instanceof Pe),this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=Tl(this,e,"readableHighWaterMark",r),this.buffer=new Rl,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=e.emitClose!==!1,this.autoDestroy=!!e.autoDestroy,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(Le||(Le=Ar().StringDecoder),this.decoder=new Le(e.encoding),this.encoding=e.encoding)}function E(e){if(Pe=Pe||be(),!(this instanceof E))return new E(e);var t=this instanceof Pe;this._readableState=new es(e,this,t),this.readable=!0,e&&(typeof e.read=="function"&&(this._read=e.read),typeof e.destroy=="function"&&(this._destroy=e.destroy)),it.call(this)}Object.defineProperty(E.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(t){this._readableState&&(this._readableState.destroyed=t)}});E.prototype.destroy=Nr.destroy;E.prototype._undestroy=Nr.undestroy;E.prototype._destroy=function(e,t){t(e)};E.prototype.push=function(e,t){var r=this._readableState,i;return r.objectMode?i=!0:typeof e=="string"&&(t=t||r.defaultEncoding,t!==r.encoding&&(e=Lt.from(e,t),t=""),i=!0),ts(this,e,t,!1,i)};E.prototype.unshift=function(e){return ts(this,e,null,!0,!1)};function ts(e,t,r,i,n){_("readableAddChunk",t);var s=e._readableState;if(t===null)s.reading=!1,Ml(e,s);else{var o;if(n||(o=kl(s,t)),o)rt(e,o);else if(s.objectMode||t&&t.length>0)if(typeof t!="string"&&!s.objectMode&&Object.getPrototypeOf(t)!==Lt.prototype&&(t=El(t)),i)s.endEmitted?rt(e,new Dl):Mr(e,s,t,!0);else if(s.ended)rt(e,new Al);else{if(s.destroyed)return!1;s.reading=!1,s.decoder&&!r?(t=s.decoder.write(t),s.objectMode||t.length!==0?Mr(e,s,t,!1):Lr(e,s)):Mr(e,s,t,!1)}else i||(s.reading=!1,Lr(e,s))}return!s.ended&&(s.length<s.highWaterMark||s.length===0)}function Mr(e,t,r,i){t.flowing&&t.length===0&&!t.sync?(t.awaitDrain=0,e.emit("data",r)):(t.length+=t.objectMode?1:r.length,i?t.buffer.unshift(r):t.buffer.push(r),t.needReadable&&jt(e)),Lr(e,t)}function kl(e,t){var r;return!Sl(t)&&typeof t!="string"&&t!==void 0&&!e.objectMode&&(r=new $l("chunk",["string","Buffer","Uint8Array"],t)),r}E.prototype.isPaused=function(){return this._readableState.flowing===!1};E.prototype.setEncoding=function(e){Le||(Le=Ar().StringDecoder);var t=new Le(e);this._readableState.decoder=t,this._readableState.encoding=this._readableState.decoder.encoding;for(var r=this._readableState.buffer.head,i="";r!==null;)i+=t.write(r.data),r=r.next;return this._readableState.buffer.clear(),i!==""&&this._readableState.buffer.push(i),this._readableState.length=i.length,this};var Zn=1073741824;function Bl(e){return e>=Zn?e=Zn:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function Xn(e,t){return e<=0||t.length===0&&t.ended?0:t.objectMode?1:e!==e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=Bl(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}E.prototype.read=function(e){_("read",e),e=parseInt(e,10);var t=this._readableState,r=e;if(e!==0&&(t.emittedReadable=!1),e===0&&t.needReadable&&((t.highWaterMark!==0?t.length>=t.highWaterMark:t.length>0)||t.ended))return _("read: emitReadable",t.length,t.ended),t.length===0&&t.ended?Pr(this):jt(this),null;if(e=Xn(e,t),e===0&&t.ended)return t.length===0&&Pr(this),null;var i=t.needReadable;_("need readable",i),(t.length===0||t.length-e<t.highWaterMark)&&(i=!0,_("length less than watermark",i)),t.ended||t.reading?(i=!1,_("reading or ended",i)):i&&(_("do read"),t.reading=!0,t.sync=!0,t.length===0&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=Xn(r,t)));var n;return e>0?n=ns(e,t):n=null,n===null?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.awaitDrain=0),t.length===0&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&Pr(this)),n!==null&&this.emit("data",n),n};function Ml(e,t){if(_("onEofChunk"),!t.ended){if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,t.sync?jt(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,rs(e)))}}function jt(e){var t=e._readableState;_("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(_("emitReadable",t.flowing),t.emittedReadable=!0,process.nextTick(rs,e))}function rs(e){var t=e._readableState;_("emitReadable_",t.destroyed,t.length,t.ended),!t.destroyed&&(t.length||t.ended)&&(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,jr(e)}function Lr(e,t){t.readingMore||(t.readingMore=!0,process.nextTick(Pl,e,t))}function Pl(e,t){for(;!t.reading&&!t.ended&&(t.length<t.highWaterMark||t.flowing&&t.length===0);){var r=t.length;if(_("maybeReadMore read 0"),e.read(0),r===t.length)break}t.readingMore=!1}E.prototype._read=function(e){rt(this,new Ol("_read()"))};E.prototype.pipe=function(e,t){var r=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=e;break;case 1:i.pipes=[i.pipes,e];break;default:i.pipes.push(e);break}i.pipesCount+=1,_("pipe count=%d opts=%j",i.pipesCount,t);var n=(!t||t.end!==!1)&&e!==process.stdout&&e!==process.stderr,s=n?a:y;i.endEmitted?process.nextTick(s):r.once("end",s),e.on("unpipe",o);function o(F,v){_("onunpipe"),F===r&&v&&v.hasUnpiped===!1&&(v.hasUnpiped=!0,g())}function a(){_("onend"),e.end()}var l=Ll(r);e.on("drain",l);var f=!1;function g(){_("cleanup"),e.removeListener("close",x),e.removeListener("finish",b),e.removeListener("drain",l),e.removeListener("error",m),e.removeListener("unpipe",o),r.removeListener("end",a),r.removeListener("end",y),r.removeListener("data",h),f=!0,i.awaitDrain&&(!e._writableState||e._writableState.needDrain)&&l()}r.on("data",h);function h(F){_("ondata");var v=e.write(F);_("dest.write",v),v===!1&&((i.pipesCount===1&&i.pipes===e||i.pipesCount>1&&ss(i.pipes,e)!==-1)&&!f&&(_("false write response, pause",i.awaitDrain),i.awaitDrain++),r.pause())}function m(F){_("onerror",F),y(),e.removeListener("error",m),Qn(e,"error")===0&&rt(e,F)}Il(e,"error",m);function x(){e.removeListener("finish",b),y()}e.once("close",x);function b(){_("onfinish"),e.removeListener("close",x),y()}e.once("finish",b);function y(){_("unpipe"),r.unpipe(e)}return e.emit("pipe",r),i.flowing||(_("pipe resume"),r.resume()),e};function Ll(e){return function(){var r=e._readableState;_("pipeOnDrain",r.awaitDrain),r.awaitDrain&&r.awaitDrain--,r.awaitDrain===0&&Qn(e,"data")&&(r.flowing=!0,jr(e))}}E.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(t.pipesCount===0)return this;if(t.pipesCount===1)return e&&e!==t.pipes?this:(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r),this);if(!e){var i=t.pipes,n=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var s=0;s<n;s++)i[s].emit("unpipe",this,{hasUnpiped:!1});return this}var o=ss(t.pipes,e);return o===-1?this:(t.pipes.splice(o,1),t.pipesCount-=1,t.pipesCount===1&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,r),this)};E.prototype.on=function(e,t){var r=it.prototype.on.call(this,e,t),i=this._readableState;return e==="data"?(i.readableListening=this.listenerCount("readable")>0,i.flowing!==!1&&this.resume()):e==="readable"&&!i.endEmitted&&!i.readableListening&&(i.readableListening=i.needReadable=!0,i.flowing=!1,i.emittedReadable=!1,_("on readable",i.length,i.reading),i.length?jt(this):i.reading||process.nextTick(Nl,this)),r};E.prototype.addListener=E.prototype.on;E.prototype.removeListener=function(e,t){var r=it.prototype.removeListener.call(this,e,t);return e==="readable"&&process.nextTick(is,this),r};E.prototype.removeAllListeners=function(e){var t=it.prototype.removeAllListeners.apply(this,arguments);return(e==="readable"||e===void 0)&&process.nextTick(is,this),t};function is(e){var t=e._readableState;t.readableListening=e.listenerCount("readable")>0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function Nl(e){_("readable nexttick read 0"),e.read(0)}E.prototype.resume=function(){var e=this._readableState;return e.flowing||(_("resume"),e.flowing=!e.readableListening,jl(this,e)),e.paused=!1,this};function jl(e,t){t.resumeScheduled||(t.resumeScheduled=!0,process.nextTick(Fl,e,t))}function Fl(e,t){_("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),jr(e),t.flowing&&!t.reading&&e.read(0)}E.prototype.pause=function(){return _("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(_("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function jr(e){var t=e._readableState;for(_("flow",t.flowing);t.flowing&&e.read()!==null;);}E.prototype.wrap=function(e){var t=this,r=this._readableState,i=!1;e.on("end",function(){if(_("wrapped end"),r.decoder&&!r.ended){var o=r.decoder.end();o&&o.length&&t.push(o)}t.push(null)}),e.on("data",function(o){if(_("wrapped data"),r.decoder&&(o=r.decoder.write(o)),!(r.objectMode&&o==null)&&!(!r.objectMode&&(!o||!o.length))){var a=t.push(o);a||(i=!0,e.pause())}});for(var n in e)this[n]===void 0&&typeof e[n]=="function"&&(this[n]=function(a){return function(){return e[a].apply(e,arguments)}}(n));for(var s=0;s<Br.length;s++)e.on(Br[s],this.emit.bind(this,Br[s]));return this._read=function(o){_("wrapped _read",o),i&&(i=!1,e.resume())},this};typeof Symbol=="function"&&(E.prototype[Symbol.asyncIterator]=function(){return Ir===void 0&&(Ir=Hn()),Ir(this)});Object.defineProperty(E.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}});Object.defineProperty(E.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}});Object.defineProperty(E.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(t){this._readableState&&(this._readableState.flowing=t)}});E._fromList=ns;Object.defineProperty(E.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function ns(e,t){if(t.length===0)return null;var r;return t.objectMode?r=t.buffer.shift():!e||e>=t.length?(t.decoder?r=t.buffer.join(""):t.buffer.length===1?r=t.buffer.first():r=t.buffer.concat(t.length),t.buffer.clear()):r=t.buffer.consume(e,t.decoder),r}function Pr(e){var t=e._readableState;_("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,process.nextTick(ql,t,e))}function ql(e,t){if(_("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&e.length===0&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var r=t._writableState;(!r||r.autoDestroy&&r.finished)&&t.destroy()}}typeof Symbol=="function"&&(E.from=function(e,t){return kr===void 0&&(kr=zn()),kr(E,e,t)});function ss(e,t){for(var r=0,i=e.length;r<i;r++)if(e[r]===t)return r;return-1}});var Fr=d((Kf,ls)=>{"use strict";ls.exports=re;var Ft=oe().codes,Ul=Ft.ERR_METHOD_NOT_IMPLEMENTED,Wl=Ft.ERR_MULTIPLE_CALLBACK,Vl=Ft.ERR_TRANSFORM_ALREADY_TRANSFORMING,Gl=Ft.ERR_TRANSFORM_WITH_LENGTH_0,qt=be();ye()(re,qt);function Hl(e,t){var r=this._transformState;r.transforming=!1;var i=r.writecb;if(i===null)return this.emit("error",new Wl);r.writechunk=null,r.writecb=null,t!=null&&this.push(t),i(e);var n=this._readableState;n.reading=!1,(n.needReadable||n.length<n.highWaterMark)&&this._read(n.highWaterMark)}function re(e){if(!(this instanceof re))return new re(e);qt.call(this,e),this._transformState={afterTransform:Hl.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&(typeof e.transform=="function"&&(this._transform=e.transform),typeof e.flush=="function"&&(this._flush=e.flush)),this.on("prefinish",Jl)}function Jl(){var e=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(t,r){as(e,t,r)}):as(this,null,null)}re.prototype.push=function(e,t){return this._transformState.needTransform=!1,qt.prototype.push.call(this,e,t)};re.prototype._transform=function(e,t,r){r(new Ul("_transform()"))};re.prototype._write=function(e,t,r){var i=this._transformState;if(i.writecb=r,i.writechunk=e,i.writeencoding=t,!i.transforming){var n=this._readableState;(i.needTransform||n.needReadable||n.length<n.highWaterMark)&&this._read(n.highWaterMark)}};re.prototype._read=function(e){var t=this._transformState;t.writechunk!==null&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0};re.prototype._destroy=function(e,t){qt.prototype._destroy.call(this,e,function(r){t(r)})};function as(e,t,r){if(t)return e.emit("error",t);if(r!=null&&e.push(r),e._writableState.length)throw new Gl;if(e._transformState.transforming)throw new Vl;return e.push(null)}});var cs=d((zf,fs)=>{"use strict";fs.exports=nt;var us=Fr();ye()(nt,us);function nt(e){if(!(this instanceof nt))return new nt(e);us.call(this,e)}nt.prototype._transform=function(e,t,r){r(null,e)}});var ms=d((Zf,gs)=>{"use strict";var qr;function Yl(e){var t=!1;return function(){t||(t=!0,e.apply(void 0,arguments))}}var ps=oe().codes,Kl=ps.ERR_MISSING_ARGS,zl=ps.ERR_STREAM_DESTROYED;function hs(e){if(e)throw e}function Zl(e){return e.setHeader&&typeof e.abort=="function"}function Xl(e,t,r,i){i=Yl(i);var n=!1;e.on("close",function(){n=!0}),qr===void 0&&(qr=Bt()),qr(e,{readable:t,writable:r},function(o){if(o)return i(o);n=!0,i()});var s=!1;return function(o){if(!n&&!s){if(s=!0,Zl(e))return e.abort();if(typeof e.destroy=="function")return e.destroy();i(o||new zl("pipe"))}}}function ds(e){e()}function Ql(e,t){return e.pipe(t)}function eu(e){return!e.length||typeof e[e.length-1]!="function"?hs:e.pop()}function tu(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i=eu(t);if(Array.isArray(t[0])&&(t=t[0]),t.length<2)throw new Kl("streams");var n,s=t.map(function(o,a){var l=a<t.length-1,f=a>0;return Xl(o,l,f,function(g){n||(n=g),g&&s.forEach(ds),!l&&(s.forEach(ds),i(n))})});return t.reduce(Ql)}gs.exports=tu});var _s=d((W,ot)=>{var st=require("stream");process.env.READABLE_STREAM==="disable"&&st?(ot.exports=st.Readable,Object.assign(ot.exports,st),ot.exports.Stream=st):(W=ot.exports=Rr(),W.Stream=st||W,W.Readable=W,W.Writable=wr(),W.Duplex=be(),W.Transform=Fr(),W.PassThrough=cs(),W.finished=Bt(),W.pipeline=ms())});var xs=d((Xf,bs)=>{"use strict";var{Buffer:Y}=require("buffer"),ys=Symbol.for("BufferList");function T(e){if(!(this instanceof T))return new T(e);T._init.call(this,e)}T._init=function(t){Object.defineProperty(this,ys,{value:!0}),this._bufs=[],this.length=0,t&&this.append(t)};T.prototype._new=function(t){return new T(t)};T.prototype._offset=function(t){if(t===0)return[0,0];let r=0;for(let i=0;i<this._bufs.length;i++){let n=r+this._bufs[i].length;if(t<n||i===this._bufs.length-1)return[i,t-r];r=n}};T.prototype._reverseOffset=function(e){let t=e[0],r=e[1];for(let i=0;i<t;i++)r+=this._bufs[i].length;return r};T.prototype.get=function(t){if(t>this.length||t<0)return;let r=this._offset(t);return this._bufs[r[0]][r[1]]};T.prototype.slice=function(t,r){return typeof t=="number"&&t<0&&(t+=this.length),typeof r=="number"&&r<0&&(r+=this.length),this.copy(null,0,t,r)};T.prototype.copy=function(t,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 t||Y.alloc(0);let s=!!t,o=this._offset(i),a=n-i,l=a,f=s&&r||0,g=o[1];if(i===0&&n===this.length){if(!s)return this._bufs.length===1?this._bufs[0]:Y.concat(this._bufs,this.length);for(let h=0;h<this._bufs.length;h++)this._bufs[h].copy(t,f),f+=this._bufs[h].length;return t}if(l<=this._bufs[o[0]].length-g)return s?this._bufs[o[0]].copy(t,r,g,g+l):this._bufs[o[0]].slice(g,g+l);s||(t=Y.allocUnsafe(a));for(let h=o[0];h<this._bufs.length;h++){let m=this._bufs[h].length-g;if(l>m)this._bufs[h].copy(t,f,g),f+=m;else{this._bufs[h].copy(t,f,g,g+l),f+=m;break}l-=m,g&&(g=0)}return t.length>f?t.slice(0,f):t};T.prototype.shallowSlice=function(t,r){if(t=t||0,r=typeof r!="number"?this.length:r,t<0&&(t+=this.length),r<0&&(r+=this.length),t===r)return this._new();let i=this._offset(t),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)};T.prototype.toString=function(t,r,i){return this.slice(r,i).toString(t)};T.prototype.consume=function(t){if(t=Math.trunc(t),Number.isNaN(t)||t<=0)return this;for(;this._bufs.length;)if(t>=this._bufs[0].length)t-=this._bufs[0].length,this.length-=this._bufs[0].length,this._bufs.shift();else{this._bufs[0]=this._bufs[0].slice(t),this.length-=t;break}return this};T.prototype.duplicate=function(){let t=this._new();for(let r=0;r<this._bufs.length;r++)t.append(this._bufs[r]);return t};T.prototype.append=function(t){if(t==null)return this;if(t.buffer)this._appendBuffer(Y.from(t.buffer,t.byteOffset,t.byteLength));else if(Array.isArray(t))for(let r=0;r<t.length;r++)this.append(t[r]);else if(this._isBufferList(t))for(let r=0;r<t._bufs.length;r++)this.append(t._bufs[r]);else typeof t=="number"&&(t=t.toString()),this._appendBuffer(Y.from(t));return this};T.prototype._appendBuffer=function(t){this._bufs.push(t),this.length+=t.length};T.prototype.indexOf=function(e,t,r){if(r===void 0&&typeof t=="string"&&(r=t,t=void 0),typeof e=="function"||Array.isArray(e))throw new TypeError('The "value" argument must be one of type string, Buffer, BufferList, or Uint8Array.');if(typeof e=="number"?e=Y.from([e]):typeof e=="string"?e=Y.from(e,r):this._isBufferList(e)?e=e.slice():Array.isArray(e.buffer)?e=Y.from(e.buffer,e.byteOffset,e.byteLength):Y.isBuffer(e)||(e=Y.from(e)),t=Number(t||0),isNaN(t)&&(t=0),t<0&&(t=this.length+t),t<0&&(t=0),e.length===0)return t>this.length?this.length:t;let i=this._offset(t),n=i[0],s=i[1];for(;n<this._bufs.length;n++){let o=this._bufs[n];for(;s<o.length;)if(o.length-s>=e.length){let l=o.indexOf(e,s);if(l!==-1)return this._reverseOffset([n,l]);s=o.length-e.length+1}else{let l=this._reverseOffset([n,s]);if(this._match(l,e))return l;s++}s=0}return-1};T.prototype._match=function(e,t){if(this.length-e<t.length)return!1;for(let r=0;r<t.length;r++)if(this.get(e+r)!==t[r])return!1;return!0};(function(){let e={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 t in e)(function(r){e[r]===null?T.prototype[r]=function(i,n){return this.slice(i,i+n)[r](0,n)}:T.prototype[r]=function(i=0){return this.slice(i,i+e[r])[r](0)}})(t)})();T.prototype._isBufferList=function(t){return t instanceof T||T.isBufferList(t)};T.isBufferList=function(t){return t!=null&&t[ys]};bs.exports=T});var vs=d((Qf,Ut)=>{"use strict";var Ur=_s().Duplex,ru=ye(),at=xs();function L(e){if(!(this instanceof L))return new L(e);if(typeof e=="function"){this._callback=e;let t=function(i){this._callback&&(this._callback(i),this._callback=null)}.bind(this);this.on("pipe",function(i){i.on("error",t)}),this.on("unpipe",function(i){i.removeListener("error",t)}),e=null}at._init.call(this,e),Ur.call(this)}ru(L,Ur);Object.assign(L.prototype,at.prototype);L.prototype._new=function(t){return new L(t)};L.prototype._write=function(t,r,i){this._appendBuffer(t),typeof i=="function"&&i()};L.prototype._read=function(t){if(!this.length)return this.push(null);t=Math.min(t,this.length),this.push(this.slice(0,t)),this.consume(t)};L.prototype.end=function(t){Ur.prototype.end.call(this,t),this._callback&&(this._callback(null,this.slice()),this._callback=null)};L.prototype._destroy=function(t,r){this._bufs.length=0,this.length=0,r(t)};L.prototype._isBufferList=function(t){return t instanceof L||t instanceof at||L.isBufferList(t)};L.isBufferList=at.isBufferList;Ut.exports=L;Ut.exports.BufferListStream=L;Ut.exports.BufferList=at});var As=d((cc,$s)=>{$s.exports=Ts;Ts.sync=su;var Rs=require("fs");function nu(e,t){var r=t.pathExt!==void 0?t.pathExt:process.env.PATHEXT;if(!r||(r=r.split(";"),r.indexOf("")!==-1))return!0;for(var i=0;i<r.length;i++){var n=r[i].toLowerCase();if(n&&e.substr(-n.length).toLowerCase()===n)return!0}return!1}function Cs(e,t,r){return!e.isSymbolicLink()&&!e.isFile()?!1:nu(t,r)}function Ts(e,t,r){Rs.stat(e,function(i,n){r(i,i?!1:Cs(n,e,t))})}function su(e,t){return Cs(Rs.statSync(e),e,t)}});var Bs=d((hc,ks)=>{ks.exports=Ds;Ds.sync=ou;var Os=require("fs");function Ds(e,t,r){Os.stat(e,function(i,n){r(i,i?!1:Is(n,t))})}function ou(e,t){return Is(Os.statSync(e),t)}function Is(e,t){return e.isFile()&&au(e,t)}function au(e,t){var r=e.mode,i=e.uid,n=e.gid,s=t.uid!==void 0?t.uid:process.getuid&&process.getuid(),o=t.gid!==void 0?t.gid:process.getgid&&process.getgid(),a=parseInt("100",8),l=parseInt("010",8),f=parseInt("001",8),g=a|l,h=r&f||r&l&&n===o||r&a&&i===s||r&g&&s===0;return h}});var Ps=d((pc,Ms)=>{var dc=require("fs"),Gt;process.platform==="win32"||global.TESTING_WINDOWS?Gt=As():Gt=Bs();Ms.exports=Gr;Gr.sync=lu;function Gr(e,t,r){if(typeof t=="function"&&(r=t,t={}),!r){if(typeof Promise!="function")throw new TypeError("callback not provided");return new Promise(function(i,n){Gr(e,t||{},function(s,o){s?n(s):i(o)})})}Gt(e,t||{},function(i,n){i&&(i.code==="EACCES"||t&&t.ignoreErrors)&&(i=null,n=!1),r(i,n)})}function lu(e,t){try{return Gt.sync(e,t||{})}catch(r){if(t&&t.ignoreErrors||r.code==="EACCES")return!1;throw r}}});var Ws=d((gc,Us)=>{var Ue=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys",Ls=require("path"),uu=Ue?";":":",Ns=Ps(),js=e=>Object.assign(new Error(`not found: ${e}`),{code:"ENOENT"}),Fs=(e,t)=>{let r=t.colon||uu,i=e.match(/\//)||Ue&&e.match(/\\/)?[""]:[...Ue?[process.cwd()]:[],...(t.path||process.env.PATH||"").split(r)],n=Ue?t.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",s=Ue?n.split(r):[""];return Ue&&e.indexOf(".")!==-1&&s[0]!==""&&s.unshift(""),{pathEnv:i,pathExt:s,pathExtExe:n}},qs=(e,t,r)=>{typeof t=="function"&&(r=t,t={}),t||(t={});let{pathEnv:i,pathExt:n,pathExtExe:s}=Fs(e,t),o=[],a=f=>new Promise((g,h)=>{if(f===i.length)return t.all&&o.length?g(o):h(js(e));let m=i[f],x=/^".*"$/.test(m)?m.slice(1,-1):m,b=Ls.join(x,e),y=!x&&/^\.[\\\/]/.test(e)?e.slice(0,2)+b:b;g(l(y,f,0))}),l=(f,g,h)=>new Promise((m,x)=>{if(h===n.length)return m(a(g+1));let b=n[h];Ns(f+b,{pathExt:s},(y,F)=>{if(!y&&F)if(t.all)o.push(f+b);else return m(f+b);return m(l(f,g,h+1))})});return r?a(0).then(f=>r(null,f),r):a(0)},fu=(e,t)=>{t=t||{};let{pathEnv:r,pathExt:i,pathExtExe:n}=Fs(e,t),s=[];for(let o=0;o<r.length;o++){let a=r[o],l=/^".*"$/.test(a)?a.slice(1,-1):a,f=Ls.join(l,e),g=!l&&/^\.[\\\/]/.test(e)?e.slice(0,2)+f:f;for(let h=0;h<i.length;h++){let m=g+i[h];try{if(Ns.sync(m,{pathExt:n}))if(t.all)s.push(m);else return m}catch{}}}if(t.all&&s.length)return s;if(t.nothrow)return null;throw js(e)};Us.exports=qs;qs.sync=fu});var Gs=d((mc,Hr)=>{"use strict";var Vs=(e={})=>{let t=e.env||process.env;return(e.platform||process.platform)!=="win32"?"PATH":Object.keys(t).reverse().find(i=>i.toUpperCase()==="PATH")||"Path"};Hr.exports=Vs;Hr.exports.default=Vs});var Ks=d((_c,Ys)=>{"use strict";var Hs=require("path"),cu=Ws(),hu=Gs();function Js(e,t){let r=e.options.env||process.env,i=process.cwd(),n=e.options.cwd!=null,s=n&&process.chdir!==void 0&&!process.chdir.disabled;if(s)try{process.chdir(e.options.cwd)}catch{}let o;try{o=cu.sync(e.command,{path:r[hu({env:r})],pathExt:t?Hs.delimiter:void 0})}catch{}finally{s&&process.chdir(i)}return o&&(o=Hs.resolve(n?e.options.cwd:"",o)),o}function du(e){return Js(e)||Js(e,!0)}Ys.exports=du});var zs=d((yc,Yr)=>{"use strict";var Jr=/([()\][%!^"`<>&|;, *?])/g;function pu(e){return e=e.replace(Jr,"^$1"),e}function gu(e,t){return e=`${e}`,e=e.replace(/(\\*)"/g,'$1$1\\"'),e=e.replace(/(\\*)$/,"$1$1"),e=`"${e}"`,e=e.replace(Jr,"^$1"),t&&(e=e.replace(Jr,"^$1")),e}Yr.exports.command=pu;Yr.exports.argument=gu});var Xs=d((bc,Zs)=>{"use strict";Zs.exports=/^#!(.*)/});var eo=d((xc,Qs)=>{"use strict";var mu=Xs();Qs.exports=(e="")=>{let t=e.match(mu);if(!t)return null;let[r,i]=t[0].replace(/#! ?/,"").split(" "),n=r.split("/").pop();return n==="env"?i:i?`${n} ${i}`:n}});var ro=d((vc,to)=>{"use strict";var Kr=require("fs"),_u=eo();function yu(e){let r=Buffer.alloc(150),i;try{i=Kr.openSync(e,"r"),Kr.readSync(i,r,0,150,0),Kr.closeSync(i)}catch{}return _u(r.toString())}to.exports=yu});var oo=d((wc,so)=>{"use strict";var bu=require("path"),io=Ks(),no=zs(),xu=ro(),vu=process.platform==="win32",wu=/\.(?:com|exe)$/i,Eu=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function Su(e){e.file=io(e);let t=e.file&&xu(e.file);return t?(e.args.unshift(e.file),e.command=t,io(e)):e.file}function Ru(e){if(!vu)return e;let t=Su(e),r=!wu.test(t);if(e.options.forceShell||r){let i=Eu.test(t);e.command=bu.normalize(e.command),e.command=no.command(e.command),e.args=e.args.map(s=>no.argument(s,i));let n=[e.command].concat(e.args).join(" ");e.args=["/d","/s","/c",`"${n}"`],e.command=process.env.comspec||"cmd.exe",e.options.windowsVerbatimArguments=!0}return e}function Cu(e,t,r){t&&!Array.isArray(t)&&(r=t,t=null),t=t?t.slice(0):[],r=Object.assign({},r);let i={command:e,args:t,options:r,file:void 0,original:{command:e,args:t}};return r.shell?i:Ru(i)}so.exports=Cu});var uo=d((Ec,lo)=>{"use strict";var zr=process.platform==="win32";function Zr(e,t){return Object.assign(new Error(`${t} ${e.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${t} ${e.command}`,path:e.command,spawnargs:e.args})}function Tu(e,t){if(!zr)return;let r=e.emit;e.emit=function(i,n){if(i==="exit"){let s=ao(n,t,"spawn");if(s)return r.call(e,"error",s)}return r.apply(e,arguments)}}function ao(e,t){return zr&&e===1&&!t.file?Zr(t.original,"spawn"):null}function $u(e,t){return zr&&e===1&&!t.file?Zr(t.original,"spawnSync"):null}lo.exports={hookChildProcess:Tu,verifyENOENT:ao,verifyENOENTSync:$u,notFoundError:Zr}});var ho=d((Sc,We)=>{"use strict";var fo=require("child_process"),Xr=oo(),Qr=uo();function co(e,t,r){let i=Xr(e,t,r),n=fo.spawn(i.command,i.args,i.options);return Qr.hookChildProcess(n,i),n}function Au(e,t,r){let i=Xr(e,t,r),n=fo.spawnSync(i.command,i.args,i.options);return n.error=n.error||Qr.verifyENOENTSync(n.status,i),n}We.exports=co;We.exports.spawn=co;We.exports.sync=Au;We.exports._parse=Xr;We.exports._enoent=Qr});var ci=d((Uc,xo)=>{"use strict";var ui="\x1B",O=`${ui}[`,Nu="\x07",fi={to(e,t){return t?`${O}${t+1};${e+1}H`:`${O}${e+1}G`},move(e,t){let r="";return e<0?r+=`${O}${-e}D`:e>0&&(r+=`${O}${e}C`),t<0?r+=`${O}${-t}A`:t>0&&(r+=`${O}${t}B`),r},up:(e=1)=>`${O}${e}A`,down:(e=1)=>`${O}${e}B`,forward:(e=1)=>`${O}${e}C`,backward:(e=1)=>`${O}${e}D`,nextLine:(e=1)=>`${O}E`.repeat(e),prevLine:(e=1)=>`${O}F`.repeat(e),left:`${O}G`,hide:`${O}?25l`,show:`${O}?25h`,save:`${ui}7`,restore:`${ui}8`},ju={up:(e=1)=>`${O}S`.repeat(e),down:(e=1)=>`${O}T`.repeat(e)},Fu={screen:`${O}2J`,up:(e=1)=>`${O}1J`.repeat(e),down:(e=1)=>`${O}J`.repeat(e),line:`${O}2K`,lineEnd:`${O}K`,lineStart:`${O}1K`,lines(e){let t="";for(let r=0;r<e;r++)t+=this.line+(r<e-1?fi.up():"");return e&&(t+=fi.left),t}};xo.exports={cursor:fi,scroll:ju,erase:Fu,beep:Nu}});var di=d((Wc,hi)=>{var qu=require("tty"),Uu=!("NO_COLOR"in process.env||process.argv.includes("--no-color"))&&("FORCE_COLOR"in process.env||process.argv.includes("--color")||process.platform==="win32"||qu.isatty(1)&&process.env.TERM!=="dumb"||"CI"in process.env),A=(e,t,r=e)=>i=>{let n=""+i,s=n.indexOf(t,e.length);return~s?e+vo(n,t,r,s)+t:e+n+t},vo=(e,t,r,i)=>{let n=e.substring(0,i)+r,s=e.substring(i+t.length),o=s.indexOf(t);return~o?n+vo(s,t,r,o):n+s},wo=(e=Uu)=>({isColorSupported:e,reset:e?t=>`\x1B[0m${t}\x1B[0m`:String,bold:e?A("\x1B[1m","\x1B[22m","\x1B[22m\x1B[1m"):String,dim:e?A("\x1B[2m","\x1B[22m","\x1B[22m\x1B[2m"):String,italic:e?A("\x1B[3m","\x1B[23m"):String,underline:e?A("\x1B[4m","\x1B[24m"):String,inverse:e?A("\x1B[7m","\x1B[27m"):String,hidden:e?A("\x1B[8m","\x1B[28m"):String,strikethrough:e?A("\x1B[9m","\x1B[29m"):String,black:e?A("\x1B[30m","\x1B[39m"):String,red:e?A("\x1B[31m","\x1B[39m"):String,green:e?A("\x1B[32m","\x1B[39m"):String,yellow:e?A("\x1B[33m","\x1B[39m"):String,blue:e?A("\x1B[34m","\x1B[39m"):String,magenta:e?A("\x1B[35m","\x1B[39m"):String,cyan:e?A("\x1B[36m","\x1B[39m"):String,white:e?A("\x1B[37m","\x1B[39m"):String,gray:e?A("\x1B[90m","\x1B[39m"):String,bgBlack:e?A("\x1B[40m","\x1B[49m"):String,bgRed:e?A("\x1B[41m","\x1B[49m"):String,bgGreen:e?A("\x1B[42m","\x1B[49m"):String,bgYellow:e?A("\x1B[43m","\x1B[49m"):String,bgBlue:e?A("\x1B[44m","\x1B[49m"):String,bgMagenta:e?A("\x1B[45m","\x1B[49m"):String,bgCyan:e?A("\x1B[46m","\x1B[49m"):String,bgWhite:e?A("\x1B[47m","\x1B[49m"):String});hi.exports=wo();hi.exports.createColors=wo});var tf={};qo(tf,{createApp:()=>ht,runCli:()=>Xu,runCreateCli:()=>oi,runCreateInteractiveCli:()=>Ei});module.exports=Uo(tf);var ct=S(require("fs"));var Qt,Ai,Oi,Di,Ii=!0;typeof process<"u"&&({FORCE_COLOR:Qt,NODE_DISABLE_COLORS:Ai,NO_COLOR:Oi,TERM:Di}=process.env||{},Ii=process.stdout&&process.stdout.isTTY);var R={enabled:!Ai&&Oi==null&&Di!=="dumb"&&(Qt!=null&&Qt!=="0"||Ii),reset:C(0,0),bold:C(1,22),dim:C(2,22),italic:C(3,23),underline:C(4,24),inverse:C(7,27),hidden:C(8,28),strikethrough:C(9,29),black:C(30,39),red:C(31,39),green:C(32,39),yellow:C(33,39),blue:C(34,39),magenta:C(35,39),cyan:C(36,39),white:C(37,39),gray:C(90,39),grey:C(90,39),bgBlack:C(40,49),bgRed:C(41,49),bgGreen:C(42,49),bgYellow:C(43,49),bgBlue:C(44,49),bgMagenta:C(45,49),bgCyan:C(46,49),bgWhite:C(47,49)};function $i(e,t){let r=0,i,n="",s="";for(;r<e.length;r++)i=e[r],n+=i.open,s+=i.close,~t.indexOf(i.close)&&(t=t.replace(i.rgx,i.close+i.open));return n+t+s}function Wo(e,t){let r={has:e,keys:t};return r.reset=R.reset.bind(r),r.bold=R.bold.bind(r),r.dim=R.dim.bind(r),r.italic=R.italic.bind(r),r.underline=R.underline.bind(r),r.inverse=R.inverse.bind(r),r.hidden=R.hidden.bind(r),r.strikethrough=R.strikethrough.bind(r),r.black=R.black.bind(r),r.red=R.red.bind(r),r.green=R.green.bind(r),r.yellow=R.yellow.bind(r),r.blue=R.blue.bind(r),r.magenta=R.magenta.bind(r),r.cyan=R.cyan.bind(r),r.white=R.white.bind(r),r.gray=R.gray.bind(r),r.grey=R.grey.bind(r),r.bgBlack=R.bgBlack.bind(r),r.bgRed=R.bgRed.bind(r),r.bgGreen=R.bgGreen.bind(r),r.bgYellow=R.bgYellow.bind(r),r.bgBlue=R.bgBlue.bind(r),r.bgMagenta=R.bgMagenta.bind(r),r.bgCyan=R.bgCyan.bind(r),r.bgWhite=R.bgWhite.bind(r),r}function C(e,t){let r={open:`\x1B[${e}m`,close:`\x1B[${t}m`,rgx:new RegExp(`\\x1b\\[${t}m`,"g")};return function(i){return this!==void 0&&this.has!==void 0?(~this.has.indexOf(e)||(this.has.push(e),this.keys.push(r)),i===void 0?this:R.enabled?$i(this.keys,i+""):i+""):i===void 0?Wo([e],[r]):R.enabled?$i([r],i+""):i+""}}var p=R;var de=require("path");var er=S(require("fs"),1),tr=require("path");var Mi=S(Bi(),1);async function Pi(e){let t=(0,tr.join)(e,"package.json");return JSON.parse(await er.default.promises.readFile(t,"utf-8"))}async function Li(e,t){let r=(0,tr.join)(e,"package.json");await er.default.promises.writeFile(r,JSON.stringify(t,null,2)+`
9
+ `)}function Ni(e){e={...e};let t={name:e.name,version:e.version,description:e.description,scripts:e.scripts,dependencies:e.dependencies,devDependencies:e.devDependencies,main:e.main,qwik:e.qwik,module:e.module,types:e.types,exports:e.exports,files:e.files,engines:{node:">=15.0.0"}};Object.keys(t).forEach(i=>{delete e[i]}),delete e.__qwik__;let r=Object.keys(e).sort();for(let i of r)t[i]=e[i];return t}function ji(e){return e.toLocaleLowerCase().split("-").map(t=>t.charAt(0).toUpperCase()+t.slice(1)).join(" ")}function ge(){var e;return((e=(0,Mi.default)())==null?void 0:e.name)||"npm"}function $e(e){console.error(`
10
+ \u274C ${p.red(e)}
11
+ `),process.exit(1)}var mt=S(require("fs"),1),_t=require("path");var rr=null;async function Ae(){if(!rr){let e=[],t=["app","feature","adapter"],r=(0,_t.join)(__dirname,"starters"),i=await mt.default.promises.readdir(r);await Promise.all(i.map(async n=>{let s=n.slice(0,n.length-1);if(t.includes(s)){let o=(0,_t.join)(r,n),a=await mt.default.promises.readdir(o);await Promise.all(a.map(async l=>{var h,m,x;let f=(0,_t.join)(o,l);if((await mt.default.promises.stat(f)).isDirectory()){let b=await Pi(f),y={id:l,name:((h=b.__qwik__)==null?void 0:h.displayName)??ji(l),type:s,dir:f,pkgJson:b,docs:((m=b.__qwik__)==null?void 0:m.docs)??[],priority:((x=b==null?void 0:b.__qwik__)==null?void 0:x.priority)??0};e.push(y)}}))}})),e.sort((n,s)=>n.priority>s.priority?-1:n.priority<s.priority?1:n.id<s.id?-1:1),rr=e}return rr}function Fi(e){let t=[];return e.length>0&&(t.push(`\u{1F4C4} ${p.cyan("Relevant docs:")}`),e.forEach(r=>{t.push(` ${r}`)})),t.push(""),t.push(`\u{1F4AC} ${p.cyan("Questions? Start the conversation at:")}`),t.push(" https://qwik.builder.io/chat"),t.push(" https://twitter.com/QwikDev"),t.push(""),t.join(`
12
+ `)}var _o=require("path"),ni=S(require("fs"),1);var Ce=S(require("fs"),1);var ut=S(require("process"),1);var or=S(require("process"),1);var Zi=S(require("process"),1),Xi=S(Vi(),1),Qi=S(zi(),1),Ho=(0,Xi.default)(()=>{(0,Qi.default)(()=>{Zi.default.stderr.write("\x1B[?25h")},{alwaysLast:!0})}),en=Ho;var St=!1,ke={};ke.show=(e=or.default.stderr)=>{e.isTTY&&(St=!1,e.write("\x1B[?25h"))};ke.hide=(e=or.default.stderr)=>{e.isTTY&&(en(),St=!0,e.write("\x1B[?25l"))};ke.toggle=(e,t)=>{e!==void 0&&(St=e),St?ke.show(t):ke.hide(t)};var ar=ke;var ft=S(sn(),1);var q=S(require("process"),1);function Ke(){return q.default.platform!=="win32"?q.default.env.TERM!=="linux":Boolean(q.default.env.CI)||Boolean(q.default.env.WT_SESSION)||Boolean(q.default.env.TERMINUS_SUBLIME)||q.default.env.ConEmuTask==="{cmd::Cmder}"||q.default.env.TERM_PROGRAM==="Terminus-Sublime"||q.default.env.TERM_PROGRAM==="vscode"||q.default.env.TERM==="xterm-256color"||q.default.env.TERM==="alacritty"||q.default.env.TERMINAL_EMULATOR==="JetBrains-JediTerm"}var Yo={info:p.blue("\u2139"),success:p.green("\u2714"),warning:p.yellow("\u26A0"),error:p.red("\u2716")},Ko={info:p.blue("i"),success:p.green("\u221A"),warning:p.yellow("\u203C"),error:p.red("\xD7")},zo=Ke()?Yo:Ko,ze=zo;function lr({onlyFirst:e=!1}={}){let t=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(t,e?void 0:"g")}function ur(e){if(typeof e!="string")throw new TypeError(`Expected a \`string\`, got \`${typeof e}\``);return e.replace(lr(),"")}var Ss=S(pn(),1);function cr({stream:e=process.stdout}={}){return Boolean(e&&e.isTTY&&process.env.TERM!=="dumb"&&!("CI"in process.env))}var V=S(require("process"),1),ws=S(require("readline"),1),Es=S(vs(),1);var iu=3,ie,lt,Ne,ce,Wt=class{constructor(){I(this,ie,0);I(this,lt,new Es.BufferListStream);I(this,Ne,void 0);I(this,ce,void 0);u(this,lt).pipe(V.default.stdout);let t=this;w(this,Ne,function(r,i,...n){let{stdin:s}=V.default;if(u(t,ie)>0||s.emit===u(t,Ne)){if(r==="keypress")return;r==="data"&&i.includes(iu)&&V.default.emit("SIGINT"),Reflect.apply(u(t,Ne),this,[r,i,...n])}else Reflect.apply(V.default.stdin.emit,this,[r,i,...n])})}start(){Je(this,ie)._++,u(this,ie)===1&&this._realStart()}stop(){if(u(this,ie)<=0)throw new Error("`stop` called more times than `start`");Je(this,ie)._--,u(this,ie)===0&&this._realStop()}_realStart(){V.default.platform!=="win32"&&(w(this,ce,ws.default.createInterface({input:V.default.stdin,output:u(this,lt)})),u(this,ce).on("SIGINT",()=>{V.default.listenerCount("SIGINT")===0?V.default.emit("SIGINT"):(u(this,ce).close(),V.default.kill(V.default.pid,"SIGINT"))}))}_realStop(){V.default.platform!=="win32"&&(u(this,ce).close(),w(this,ce,void 0))}};ie=new WeakMap,lt=new WeakMap,Ne=new WeakMap,ce=new WeakMap;var Vt,he,je,Se,ne,B,X,P,Re,Fe,Q,ee,te,qe,K,Wr=class{constructor(t){I(this,he,0);I(this,je,!1);I(this,Se,0);I(this,ne,0);I(this,B,void 0);I(this,X,void 0);I(this,P,void 0);I(this,Re,void 0);I(this,Fe,void 0);I(this,Q,void 0);I(this,ee,void 0);I(this,te,void 0);I(this,qe,void 0);I(this,K,void 0);Ci(this,"color");Vt||(Vt=new Wt),typeof t=="string"&&(t={text:t}),w(this,B,{color:"cyan",stream:ut.default.stderr,discardStdin:!0,hideCursor:!0,...t}),this.color=u(this,B).color,this.spinner=u(this,B).spinner,w(this,Fe,u(this,B).interval),w(this,P,u(this,B).stream),w(this,Q,typeof u(this,B).isEnabled=="boolean"?u(this,B).isEnabled:cr({stream:u(this,P)})),w(this,ee,typeof u(this,B).isSilent=="boolean"?u(this,B).isSilent:!1),this.text=u(this,B).text,this.prefixText=u(this,B).prefixText,this.indent=u(this,B).indent,ut.default.env.NODE_ENV==="test"&&(this._stream=u(this,P),this._isEnabled=u(this,Q),Object.defineProperty(this,"_linesToClear",{get(){return u(this,he)},set(r){w(this,he,r)}}),Object.defineProperty(this,"_frameIndex",{get(){return u(this,ne)}}),Object.defineProperty(this,"_lineCount",{get(){return u(this,Se)}}))}get indent(){return u(this,te)}set indent(t=0){if(!(t>=0&&Number.isInteger(t)))throw new Error("The `indent` option must be an integer from 0 and up");w(this,te,t),this.updateLineCount()}get interval(){return u(this,Fe)||u(this,X).interval||100}get spinner(){return u(this,X)}set spinner(t){if(w(this,ne,0),w(this,Fe,void 0),typeof t=="object"){if(t.frames===void 0)throw new Error("The given spinner must have a `frames` property");w(this,X,t)}else if(!Ke())w(this,X,ft.default.line);else if(t===void 0)w(this,X,ft.default.dots);else if(t!=="default"&&ft.default[t])w(this,X,ft.default[t]);else throw new Error(`There is no built-in spinner named '${t}'. See https://github.com/sindresorhus/cli-spinners/blob/main/spinners.json for a full list.`)}get text(){return u(this,qe)}set text(t){w(this,qe,t||""),this.updateLineCount()}get prefixText(){return u(this,K)}set prefixText(t){w(this,K,t||""),this.updateLineCount()}get isSpinning(){return u(this,Re)!==void 0}getFullPrefixText(t=u(this,K),r=" "){return typeof t=="string"&&t!==""?t+r:typeof t=="function"?t()+r:""}updateLineCount(){let t=u(this,P).columns||80,r=this.getFullPrefixText(u(this,K),"-");w(this,Se,0);for(let i of ur(" ".repeat(u(this,te))+r+"--"+u(this,qe)).split(`
13
+ `))w(this,Se,u(this,Se)+Math.max(1,Math.ceil((0,Ss.default)(i)/t)))}get isEnabled(){return u(this,Q)&&!u(this,ee)}set isEnabled(t){if(typeof t!="boolean")throw new TypeError("The `isEnabled` option must be a boolean");w(this,Q,t)}get isSilent(){return u(this,ee)}set isSilent(t){if(typeof t!="boolean")throw new TypeError("The `isSilent` option must be a boolean");w(this,ee,t)}frame(){let{frames:t}=u(this,X),r=t[u(this,ne)];this.color&&(r=p[this.color](r)),w(this,ne,++Je(this,ne)._%t.length);let i=typeof u(this,K)=="string"&&u(this,K)!==""?u(this,K)+" ":"",n=typeof this.text=="string"?" "+this.text:"";return i+r+n}clear(){if(!u(this,Q)||!u(this,P).isTTY)return this;u(this,P).cursorTo(0);for(let t=0;t<u(this,he);t++)t>0&&u(this,P).moveCursor(0,-1),u(this,P).clearLine(1);return(u(this,te)||this.lastIndent!==u(this,te))&&u(this,P).cursorTo(u(this,te)),this.lastIndent=u(this,te),w(this,he,0),this}render(){return u(this,ee)?this:(this.clear(),u(this,P).write(this.frame()),w(this,he,u(this,Se)),this)}start(t){return t&&(this.text=t),u(this,ee)?this:u(this,Q)?this.isSpinning?this:(u(this,B).hideCursor&&ar.hide(u(this,P)),u(this,B).discardStdin&&ut.default.stdin.isTTY&&(w(this,je,!0),Vt.start()),this.render(),w(this,Re,setInterval(this.render.bind(this),this.interval)),this):(this.text&&u(this,P).write(`- ${this.text}
14
+ `),this)}stop(){return u(this,Q)?(clearInterval(u(this,Re)),w(this,Re,void 0),w(this,ne,0),this.clear(),u(this,B).hideCursor&&ar.show(u(this,P)),u(this,B).discardStdin&&ut.default.stdin.isTTY&&u(this,je)&&(Vt.stop(),w(this,je,!1)),this):this}succeed(t){return this.stopAndPersist({symbol:ze.success,text:t})}fail(t){return this.stopAndPersist({symbol:ze.error,text:t})}warn(t){return this.stopAndPersist({symbol:ze.warning,text:t})}info(t){return this.stopAndPersist({symbol:ze.info,text:t})}stopAndPersist(t={}){if(u(this,ee))return this;let r=t.prefixText||u(this,K),i=t.text||this.text,n=typeof i=="string"?" "+i:"";return this.stop(),u(this,P).write(`${this.getFullPrefixText(r," ")}${t.symbol||" "}${n}
15
+ `),this}};he=new WeakMap,je=new WeakMap,Se=new WeakMap,ne=new WeakMap,B=new WeakMap,X=new WeakMap,P=new WeakMap,Re=new WeakMap,Fe=new WeakMap,Q=new WeakMap,ee=new WeakMap,te=new WeakMap,qe=new WeakMap,K=new WeakMap;function Vr(e){return new Wr(e)}var po=S(require("os"),1),G=S(require("path"),1),go=S(ho(),1);function ei(e,t){return Ou(e,["install"],t)}function Ou(e,t,r){let i,n=new Promise(o=>{try{i=(0,go.default)(e,t,{cwd:r,stdio:"ignore"}),i.on("error",()=>{o(!1)}),i.on("close",a=>{o(a===0)})}catch{o(!1)}});return{abort:async()=>{i&&i.kill("SIGINT")},install:n}}function ti(e,t=!1){return t?{succeed:()=>{},fail:()=>{}}:Vr(e).start()}function mo(e,t,r=!1){let{tmpInstallDir:i}=Du(t),{install:n,abort:s}=ei(e,i);return{abort:s,complete:async(a,l)=>{let f=!1;if(a){let g=ti(`Installing ${e} dependencies...`,r);try{if(await n){let m=G.default.join(i,"node_modules"),x=G.default.join(l,"node_modules");await Ce.default.promises.rename(m,x);try{await Ce.default.promises.rename(G.default.join(i,"package-lock.json"),G.default.join(l,"package-lock.json"))}catch{}try{await Ce.default.promises.rename(G.default.join(i,"yarn.lock"),G.default.join(l,"yarn.lock"))}catch{}try{await Ce.default.promises.rename(G.default.join(i,"pnpm-lock.yaml"),G.default.join(l,"pnpm-lock.yaml"))}catch{}g.succeed(),f=!0}else{let m=`
111
16
 
112
- ${m.bgRed(` ${t} install failed `)}
113
- Automatic install failed. "${m.green(`${t} install`)}" must be manually executed to install deps.
114
- `;u.succeed(),console.error(f)}}catch{u.fail()}}else await s();return l}}}function Ip(t){let e="create-qwik-"+Math.round(Math.random()*Number.MAX_SAFE_INTEGER).toString(36).toLowerCase(),r=Y.default.join(Qa.default.tmpdir(),e);try{We.default.mkdirSync(r)}catch(n){console.error(`
115
- \u274C ${m.red(String(n))}
116
- `)}let i=Y.default.join(t.dir,"package.json"),s=Y.default.join(r,"package.json");return We.default.copyFileSync(i,s),{tmpInstallDir:r}}var V=A(require("fs"),1),Yi=require("path");async function Vi(t,e,r,i){let s=await V.default.promises.readdir(r);await Promise.all(s.map(async n=>{let o=n==="gitignore"?".gitignore":n,a=(0,Yi.join)(r,n),l=(0,Yi.join)(i,o),u=await V.default.promises.stat(a);u.isDirectory()?await Vi(t,e,a,l):u.isFile()&&(o==="package.json"?await Pp(t,a,l):o==="README.md"?await kp(t,a,l):o===".gitignore"?await jp(t,a,l):V.default.existsSync(l)?t.files.push({path:l,content:await V.default.promises.readFile(a,"utf-8"),type:"overwrite"}):t.files.push({path:l,content:await V.default.promises.readFile(a),type:"create"}))}))}async function Pp(t,e,r){var o;let i=await V.default.promises.readFile(e,"utf-8"),s=JSON.parse(i),n=["scripts","dependencies","devDependencies"];try{let a=JSON.parse(await V.default.promises.readFile(r,"utf-8"));if(n.forEach(l=>{$p(s,a,l)}),(o=a.scripts)!=null&&o.qwik){let l=a.scripts.qwik;delete a.scripts.qwik,a.scripts.qwik=l}t.files.push({path:r,content:JSON.stringify(a,null,2)+`
117
- `,type:"modify"})}catch{t.files.push({path:r,content:i,type:"create"})}}function $p(t,e,r){if(t[r]){e[r]?Object.assign(e[r],{...t[r]}):e[r]={...t[r]};let i={},s=Object.keys(e[r]).sort();for(let n of s)i[n]=e[r][n];e[r]=i}}async function kp(t,e,r){let i=await V.default.promises.readFile(e,"utf-8"),s,n="";try{n=await V.default.promises.readFile(r,"utf-8"),n=n.trim()+`
17
+ ${p.bgRed(` ${e} install failed `)}
18
+ Automatic install failed. "${p.green(`${e} install`)}" must be manually executed to install deps.
19
+ `;g.succeed(),console.error(m)}}catch{g.fail()}}else await s();return f}}}function Du(e){let t="create-qwik-"+Math.round(Math.random()*Number.MAX_SAFE_INTEGER).toString(36).toLowerCase(),r=G.default.join(po.default.tmpdir(),t);try{Ce.default.mkdirSync(r)}catch(s){console.error(`
20
+ \u274C ${p.red(String(s))}
21
+ `)}let i=G.default.join(e.dir,"package.json"),n=G.default.join(r,"package.json");return Ce.default.copyFileSync(i,n),{tmpInstallDir:r}}var H=S(require("fs"),1),ri=require("path");async function ii(e,t,r,i){let n=await H.default.promises.readdir(r);await Promise.all(n.map(async s=>{let o=s==="gitignore"?".gitignore":s,a=(0,ri.join)(r,s),l=(0,ri.join)(i,o),f=await H.default.promises.stat(a);f.isDirectory()?await ii(e,t,a,l):f.isFile()&&(o==="package.json"?await Iu(e,a,l):o==="README.md"?await Bu(e,a,l):o===".gitignore"?await Mu(e,a,l):H.default.existsSync(l)?e.files.push({path:l,content:await H.default.promises.readFile(a,"utf-8"),type:"overwrite"}):e.files.push({path:l,content:await H.default.promises.readFile(a),type:"create"}))}))}async function Iu(e,t,r){var o;let i=await H.default.promises.readFile(t,"utf-8"),n=JSON.parse(i),s=["scripts","dependencies","devDependencies"];try{let a=JSON.parse(await H.default.promises.readFile(r,"utf-8"));if(s.forEach(l=>{ku(n,a,l)}),(o=a.scripts)!=null&&o.qwik){let l=a.scripts.qwik;delete a.scripts.qwik,a.scripts.qwik=l}e.files.push({path:r,content:JSON.stringify(a,null,2)+`
22
+ `,type:"modify"})}catch{e.files.push({path:r,content:i,type:"create"})}}function ku(e,t,r){if(e[r]){t[r]?Object.assign(t[r],{...e[r]}):t[r]={...e[r]};let i={},n=Object.keys(t[r]).sort();for(let s of n)i[s]=t[r][s];t[r]=i}}async function Bu(e,t,r){let i=await H.default.promises.readFile(t,"utf-8"),n,s="";try{s=await H.default.promises.readFile(r,"utf-8"),s=s.trim()+`
118
23
 
119
- `+i,s="modify"}catch{n=i,s="create"}let o=Ie();o!=="npm"&&(n=n.replace(/npm run/g,o)),t.files.push({path:r,content:n.trim()+`
120
- `,type:s})}async function jp(t,e,r){let i=await V.default.promises.readFile(e,"utf-8");try{let s=await V.default.promises.readFile(r,"utf-8"),n=i.trim().split(/\r?\n/),o=s.trim().split(/\r?\n/);for(let a of n)o.includes(a)||(a.startsWith("#")&&o.push(""),o.push(a));t.files.push({path:r,content:o.join(`
24
+ `+i,n="modify"}catch{s=i,n="create"}let o=ge();o!=="npm"&&(s=s.replace(/npm run/g,o)),e.files.push({path:r,content:s.trim()+`
25
+ `,type:n})}async function Mu(e,t,r){let i=await H.default.promises.readFile(t,"utf-8");try{let n=await H.default.promises.readFile(r,"utf-8"),s=i.trim().split(/\r?\n/),o=n.trim().split(/\r?\n/);for(let a of s)o.includes(a)||(a.startsWith("#")&&o.push(""),o.push(a));e.files.push({path:r,content:o.join(`
121
26
  `).trim()+`
122
- `,type:"modify"})}catch{t.files.push({path:r,content:i,type:"create"})}}async function Ki(t,e){let i=(await Je()).find(a=>a.id===e.integration);if(!i)throw new Error(`Unable to find integration "${e.integration}"`);let s={files:[],installedDeps:{}};e.installDeps&&(s.installedDeps={...i.pkgJson.dependencies,...i.pkgJson.devDependencies}),await Vi(s,e,i.dir,e.rootDir);let n=async a=>{let l=Object.keys(s.installedDeps).length>0,u=a?Gi(`Updating app${l?" and installing dependencies":""}...`):null,p=!0;try{let f=new Set(s.files.map(g=>(0,rl.dirname)(g.path)));for(let g of Array.from(f))try{Ji.default.mkdirSync(g,{recursive:!0})}catch{}let d=Promise.all(s.files.map(async g=>{await Ji.default.promises.writeFile(g.path,g.content)}));if(e.installDeps&&Object.keys(s.installedDeps).length>0){let{install:g}=Wi(t,e.rootDir);p=await g}if(await d,u&&u.succeed(),!p){let g=`
27
+ `,type:"modify"})}catch{e.files.push({path:r,content:i,type:"create"})}}async function si(e,t){let i=(await Ae()).find(a=>a.id===t.integration);if(!i)throw new Error(`Unable to find integration "${t.integration}"`);let n={files:[],installedDeps:{}};t.installDeps&&(n.installedDeps={...i.pkgJson.dependencies,...i.pkgJson.devDependencies}),await ii(n,t,i.dir,t.rootDir);let s=async a=>{let l=Object.keys(n.installedDeps).length>0,f=a?ti(`Updating app${l?" and installing dependencies":""}...`):null,g=!0;try{let h=new Set(n.files.map(x=>(0,_o.dirname)(x.path)));for(let x of Array.from(h))try{ni.default.mkdirSync(x,{recursive:!0})}catch{}let m=Promise.all(n.files.map(async x=>{await ni.default.promises.writeFile(x.path,x.content)}));if(t.installDeps&&Object.keys(n.installedDeps).length>0){let{install:x}=ei(e,t.rootDir);g=await x}if(await m,f&&f.succeed(),!g){let x=`
123
28
 
124
- \u274C ${m.bgRed(` ${t} install failed `)}
29
+ \u274C ${p.bgRed(` ${e} install failed `)}
125
30
 
126
- You might need to run "${m.green(`${t} install`)}" manually inside the root of the project.
31
+ You might need to run "${p.green(`${e} install`)}" manually inside the root of the project.
127
32
 
128
- `;console.error(g)}}catch(f){u&&u.fail(),Ve(String(f))}};return{rootDir:e.rootDir,integration:i,updates:s,commit:n}}async function zi(t,e){Lp()?e=process.cwd():(e=Xi(e),$t.default.existsSync(e)&&Ve(`Directory "${e}" already exists. Please either remove this directory, or choose another location.`));let r=Ie(),s=await kt({starterId:t,outDir:e});return Zi(r,s,!1),s}function Zi(t,e,r){console.log(""),console.log("");let i=process.cwd()===e.outDir,s=(0,Ce.relative)(process.cwd(),e.outDir);console.log(i?`\u{1F984} ${m.bgMagenta(" Success! ")}`:`\u{1F984} ${m.bgMagenta(" Success! ")} ${m.cyan("Project created in")} ${m.bold(m.magenta(s))} ${m.cyan("directory")}`),console.log(""),console.log(`\u{1F430} ${m.cyan("Next steps:")}`),i||console.log(` cd ${s}`),r||console.log(` ${t} install`),console.log(` ${t} start`),console.log("");let n=t!=="npm"?`${t} qwik add`:"npm run qwik add";console.log(`\u{1F50C} ${m.cyan("Integrations? Add Netlify, Cloudflare, Tailwind...")}`),console.log(` ${n}`),console.log(""),On(e.docs),console.log(`\u{1F4FA} ${m.cyan("Presentations, Podcasts and Videos:")}`),console.log(" https://qwik.builder.io/media/"),console.log("")}async function kt(t){let e=Ie();if(!sl(t.starterId))throw new Error("Missing starter id");if(!sl(t.outDir))throw new Error("Missing outDir");if(!(0,Ce.isAbsolute)(t.outDir))throw new Error("outDir must be an absolute path");$t.default.existsSync(t.outDir)||$t.default.mkdirSync(t.outDir,{recursive:!0});let r={starterId:t.starterId,outDir:t.outDir,docs:[]},i=(await Je()).filter(n=>n.type==="app");if(t.starterId==="library"){let n=i.find(o=>o.id==="library");if(!n)throw new Error("Unable to find base app");await il(e,r,n)}else{let n=i.find(a=>a.id==="base");if(!n)throw new Error("Unable to find base app");let o=i.find(a=>a.id===t.starterId);if(!o)throw new Error(`Invalid starter id "${t.starterId}". It can only be one of${i.map(a=>` "${a.id}"`)}.`);await il(e,r,n,o)}return r}async function il(t,e,r,i){e.docs.push(...r.docs);let s=i??r,n=En({...r.pkgJson,name:`my-${s.pkgJson.name}`,description:s.pkgJson.description,scripts:void 0,dependencies:void 0,devDependencies:void 0});await Sn(e.outDir,n);let o=(0,Ce.join)(e.outDir,"README.md");await $t.default.promises.writeFile(o,""),await(await Ki(t,{rootDir:e.outDir,integration:r.id,installDeps:!1})).commit(!1),i&&(e.docs.push(...i.docs),await(await Ki(t,{rootDir:e.outDir,integration:i.id,installDeps:!1})).commit(!1))}function sl(t){return typeof t=="string"&&t.trim().length>0}function Xi(t){return(0,Ce.resolve)(process.cwd(),t)}function Lp(){return Fp()}function Fp(){try{return process.cwd().startsWith("/home/projects/")}catch{}return!1}var un=A(require("fs")),$c=require("path"),Jt=A(Pc());async function hn(){console.log(""),console.clear(),console.log(""),console.log(`\u{1F430} ${m.cyan("Let's create a")} ${m.bold(m.magenta("Qwik"))} ${m.cyan("app")} \u{1F407} ${m.dim("v0.18.0")}`),console.log("");let t=Ie(),r=(await Je()).filter(S=>S.type==="app"),i=r.find(S=>S.id==="base"),s=r.filter(S=>S.id!==i.id),n=tl(t,i),o=await(0,Jt.default)({type:"text",name:"outDir",message:"Where would you like to create your new project?",initial:"./qwik-app"},{onCancel:()=>{console.log(""),process.exit(1)}});console.log("");let a=Xi(o.outDir.trim()),l=null;if(un.default.existsSync(a)){let S=await(0,Jt.default)({type:"select",name:"outDirChoice",message:`Directory "./${(0,$c.relative)(process.cwd(),a)}" already exists. What would you like to do?`,choices:[{title:"Do not overwrite this directory and exit",value:"exit"},{title:"Overwrite and replace this directory",value:"replace"}],hint:"(use \u2193\u2191 arrows, hit enter)"},{onCancel:async()=>{console.log(m.dim(` - Exited without modifying "${a}"`)+`
129
- `),await n.abort(),process.exit(1)}});console.log(""),S.outDirChoice==="replace"?l=un.default.promises.rm(a,{recursive:!0}):(console.log(m.dim(` - Exited without modifying "${a}"`)+`
130
- `),await n.abort(),process.exit(1))}let u=await(0,Jt.default)({type:"select",name:"starterId",message:"Select a starter",choices:s.map(S=>{var w;return{title:S.name,value:S.id,description:"\u2514\u2500"+((w=S.pkgJson)==null?void 0:w.description)}}),hint:"(use \u2193\u2191 arrows, hit enter)"},{onCancel:async()=>{console.log(""),await n.abort(),process.exit(1)}});console.log("");let p=u.starterId,f=await(0,Jt.default)({type:"confirm",name:"runInstall",message:`Would you like to install ${t} dependencies?`,initial:!0},{onCancel:async()=>{console.log(""),await n.abort(),process.exit(1)}});console.log(""),l&&await l;let d=f.runInstall,v=await kt({starterId:p,outDir:a}),b=await n.complete(d,v.outDir);return Zi(t,v,b),v}async function W0(){G0();try{let t=process.argv.slice(2);t.length>=2?await zi(t[0],t[1]):await hn()}catch(t){Ve(t.message||t)}}function G0(){let t=process.version,[e,r]=t.replace("v","").split(".");Number(e)<16?(console.error(m.red(`Qwik requires Node.js 16.8 or higher. You are currently running Node.js ${t}.`)),process.exit(1)):Number(e)===16&&Number(r)<8&&console.warn(m.yellow(`Node.js 16.8 or higher is recommended. You are currently running Node.js ${t}.`))}0&&(module.exports={createApp,runCli,runCreateCli,runCreateInteractiveCli});
33
+ `;console.error(x)}}catch(h){f&&f.fail(),$e(String(h))}};return{rootDir:t.rootDir,integration:i,updates:n,commit:s}}async function oi(e,t){Pu()?t=process.cwd():(t=li(t),ct.default.existsSync(t)&&$e(`Directory "${t}" already exists. Please either remove this directory, or choose another location.`));let r=ge(),n=await ht({starterId:e,outDir:t});return ai(r,n,!1),n}function ai(e,t,r){let i=process.cwd()===t.outDir,n=(0,de.relative)(process.cwd(),t.outDir),s=[];i?s.push(`\u{1F984} ${p.bgMagenta(" Success! ")}`):s.push(`\u{1F984} ${p.bgMagenta(" Success! ")} ${p.cyan("Project created in")} ${p.bold(p.magenta(n))} ${p.cyan("directory")}`),s.push(""),s.push(`\u{1F430} ${p.cyan("Next steps:")}`),i||s.push(` cd ${n}`),r||s.push(` ${e} install`),s.push(` ${e} start`),s.push("");let o=e!=="npm"?`${e} qwik add`:"npm run qwik add";return s.push(`\u{1F90D} ${p.cyan("Integrations? Add Netlify, Cloudflare, Tailwind...")}`),s.push(` ${o}`),s.push(""),s.push(Fi(t.docs)),s.push(`\u{1F440} ${p.cyan("Presentations, Podcasts and Videos:")}`),s.push(" https://qwik.builder.io/media/"),s.push(""),s.join(`
34
+ `)}async function ht(e){let t=ge();if(!bo(e.starterId))throw new Error("Missing starter id");if(!bo(e.outDir))throw new Error("Missing outDir");if(!(0,de.isAbsolute)(e.outDir))throw new Error("outDir must be an absolute path");ct.default.existsSync(e.outDir)||ct.default.mkdirSync(e.outDir,{recursive:!0});let r={starterId:e.starterId,outDir:e.outDir,docs:[]},i=(await Ae()).filter(s=>s.type==="app");if(e.starterId==="library"){let s=i.find(o=>o.id==="library");if(!s)throw new Error("Unable to find base app");await yo(t,r,s)}else{let s=i.find(a=>a.id==="base");if(!s)throw new Error("Unable to find base app");let o=i.find(a=>a.id===e.starterId);if(!o)throw new Error(`Invalid starter id "${e.starterId}". It can only be one of${i.map(a=>` "${a.id}"`)}.`);await yo(t,r,s,o)}return r}async function yo(e,t,r,i){t.docs.push(...r.docs);let n=i??r,s=Ni({...r.pkgJson,name:`my-${n.pkgJson.name}`,description:n.pkgJson.description,scripts:void 0,dependencies:void 0,devDependencies:void 0});await Li(t.outDir,s);let o=(0,de.join)(t.outDir,"README.md");await ct.default.promises.writeFile(o,""),await(await si(e,{rootDir:t.outDir,integration:r.id,installDeps:!1})).commit(!1),i&&(t.docs.push(...i.docs),await(await si(e,{rootDir:t.outDir,integration:i.id,installDeps:!1})).commit(!1))}function bo(e){return typeof e=="string"&&e.trim().length>0}function li(e){return(0,de.resolve)(process.cwd(),e)}function Pu(){return Lu()}function Lu(){try{return process.cwd().startsWith("/home/projects/")}catch{}return!1}var wi=S(require("fs")),Bo=require("path");var j=S(ci(),1),Ve=require("process"),pe=S(require("readline"),1),pi=S(require("readline"),1),So=require("tty"),Jt=S(di(),1);function Wu(e,t){if(e===t)return;let r=e.split(`
35
+ `),i=t.split(`
36
+ `),n=[];for(let s=0;s<Math.max(r.length,i.length);s++)r[s]!==i[s]&&n.push(s);return n}var Ro=Symbol("clack:cancel");function Te(e){return e===Ro}function Ht(e,t){e.isTTY&&e.setRawMode(t)}var Eo=new Map([["k","up"],["j","down"],["h","left"],["l","right"]]),Vu=new Set(["up","down","left","right","space","enter"]),dt=class{constructor({render:t,input:r=Ve.stdin,output:i=Ve.stdout,...n},s=!0){this._track=!1,this._cursor=0,this.state="initial",this.error="",this.subscribers=new Map,this._prevFrame="",this.opts=n,this.onKeypress=this.onKeypress.bind(this),this.close=this.close.bind(this),this.render=this.render.bind(this),this._render=t.bind(this),this._track=s,this.input=r,this.output=i}prompt(){let t=new So.WriteStream(0);return t._write=(r,i,n)=>{this._track&&(this.value=this.rl.line.replace(/\t/g,""),this._cursor=this.rl.cursor,this.emit("value",this.value)),n()},this.input.pipe(t),this.rl=pi.default.createInterface({input:this.input,output:t,tabSize:2,prompt:"",escapeCodeTimeout:50}),pi.default.emitKeypressEvents(this.input,this.rl),this.rl.prompt(),this.opts.initialValue!==void 0&&this._track&&this.rl.write(this.opts.initialValue),this.input.on("keypress",this.onKeypress),Ht(this.input,!0),this.render(),new Promise((r,i)=>{this.once("submit",()=>{this.output.write(j.cursor.show),Ht(this.input,!1),r(this.value)}),this.once("cancel",()=>{this.output.write(j.cursor.show),Ht(this.input,!1),r(Ro)})})}on(t,r){let i=this.subscribers.get(t)??[];i.push({cb:r}),this.subscribers.set(t,i)}once(t,r){let i=this.subscribers.get(t)??[];i.push({cb:r,once:!0}),this.subscribers.set(t,i)}emit(t,...r){let i=this.subscribers.get(t)??[],n=[];for(let s of i)s.cb(...r),s.once&&n.push(()=>i.splice(i.indexOf(s),1));for(let s of n)s()}unsubscribe(){this.subscribers.clear()}onKeypress(t,r){if(this.state==="error"&&(this.state="active"),r!=null&&r.name&&!this._track&&Eo.has(r.name)&&this.emit("cursor",Eo.get(r.name)),r!=null&&r.name&&Vu.has(r.name)&&this.emit("cursor",r.name),t&&(t.toLowerCase()==="y"||t.toLowerCase()==="n")&&this.emit("confirm",t.toLowerCase()==="y"),(r==null?void 0:r.name)==="return"){if(this.opts.validate){let i=this.opts.validate(this.value);i&&(this.error=i,this.state="error",this.rl.write(this.value))}this.state!=="error"&&(this.state="submit")}t===""&&(this.state="cancel"),(this.state==="submit"||this.state==="cancel")&&this.emit("finalize"),this.render(),(this.state==="submit"||this.state==="cancel")&&this.close()}close(){this.input.unpipe(),this.input.removeListener("keypress",this.onKeypress),this.output.write(`
37
+ `),Ht(this.input,!1),this.rl.close(),this.emit(`${this.state}`,this.value),this.unsubscribe()}restoreCursor(){let t=this._prevFrame.split(`
38
+ `).length-1;this.output.write(j.cursor.move(-999,t*-1))}render(){let t=this._render(this)??"";if(t!==this._prevFrame){if(this.state==="initial")this.output.write(j.cursor.hide);else{let r=Wu(this._prevFrame,t);if(this.restoreCursor(),r&&(r==null?void 0:r.length)===1){let i=r[0];this.output.write(j.cursor.move(0,i)),this.output.write(j.erase.lines(1));let n=t.split(`
39
+ `);this.output.write(n[i]),this._prevFrame=t,this.output.write(j.cursor.move(0,n.length-i-1));return}else if(r&&(r==null?void 0:r.length)>1){let i=r[0];this.output.write(j.cursor.move(0,i)),this.output.write(j.erase.down());let n=t.split(`
40
+ `).slice(i);this.output.write(n.join(`
41
+ `)),this._prevFrame=t;return}this.output.write(j.erase.down())}this.output.write(t),this.state==="initial"&&(this.state="active"),this._prevFrame=t}}},Yt=class extends dt{get cursor(){return this.value?0:1}get _value(){return this.cursor===0}constructor(t){super(t,!1),this.value=!!t.initialValue,this.on("value",()=>{this.value=this._value}),this.on("confirm",r=>{this.output.write(j.cursor.move(0,-1)),this.value=r,this.state="submit",this.close()}),this.on("cursor",()=>{this.value=!this.value})}};var Kt=class extends dt{constructor(t){super(t,!1),this.cursor=0,this.options=t.options,this.cursor=this.options.findIndex(({value:r})=>r===t.initialValue),this.cursor===-1&&(this.cursor=0),this.changeValue(),this.on("cursor",r=>{switch(r){case"left":case"up":this.cursor=this.cursor===0?this.options.length-1:this.cursor-1;break;case"down":case"right":this.cursor=this.cursor===this.options.length-1?0:this.cursor+1;break}this.changeValue()})}get _value(){return this.options[this.cursor]}changeValue(){this.value=this._value.value}},zt=class extends dt{constructor(t){super(t),this.valueWithCursor="",this.on("finalize",()=>{this.value||(this.value=t.defaultValue),this.valueWithCursor=this.value}),this.on("value",()=>{if(this.cursor>=this.value.length)this.valueWithCursor=`${this.value}${Jt.default.inverse(Jt.default.hidden("_"))}`;else{let r=this.value.slice(0,this.cursor),i=this.value.slice(this.cursor);this.valueWithCursor=`${r}${Jt.default.inverse(i[0])}${i.slice(1)}`}})}get cursor(){return this._cursor}};function Co({input:e=Ve.stdin,output:t=Ve.stdout,overwrite:r=!0,hideCursor:i=!0}={}){let n=pe.createInterface({input:e,output:t,prompt:"",tabSize:1});pe.emitKeypressEvents(e,n),e.isTTY&&e.setRawMode(!0);let s=(o,{name:a})=>{if(String(o)===""&&process.exit(0),!r)return;pe.moveCursor(t,a==="return"?0:-1,a==="return"?-1:0,()=>{pe.clearLine(t,1,()=>{e.once("keypress",s)})})};return i&&process.stdout.write(j.cursor.hide),e.once("keypress",s),()=>{e.off("keypress",s),i&&process.stdout.write(j.cursor.show),n.close()}}var J=S(require("process"),1),c=S(di(),1),pt=S(ci(),1);function Gu(){return J.default.platform!=="win32"?J.default.env.TERM!=="linux":Boolean(J.default.env.CI)||Boolean(J.default.env.WT_SESSION)||Boolean(J.default.env.TERMINUS_SUBLIME)||J.default.env.ConEmuTask==="{cmd::Cmder}"||J.default.env.TERM_PROGRAM==="Terminus-Sublime"||J.default.env.TERM_PROGRAM==="vscode"||J.default.env.TERM==="xterm-256color"||J.default.env.TERM==="alacritty"||J.default.env.TERMINAL_EMULATOR==="JetBrains-JediTerm"}var yi=Gu(),N=(e,t)=>yi?e:t,Hu=N("\u25C6","*"),Ju=N("\u25A0","x"),Yu=N("\u25B2","x"),To=N("\u25C7","o"),Ku=N("\u250C","T"),k=N("\u2502","|"),Ge=N("\u2514","\u2014"),mi=N("\u25CF",">"),_i=N("\u25CB"," "),Jc=N("\u25FB","[\u2022]"),Yc=N("\u25FC","[+]"),Kc=N("\u25FB","[ ]"),zc=N("\u2500","-"),Zc=N("\u256E","+"),Xc=N("\u251C","+"),Qc=N("\u256F","+"),bi=e=>{switch(e){case"initial":case"active":return c.default.cyan(Hu);case"cancel":return c.default.red(Ju);case"error":return c.default.yellow(Yu);case"submit":return c.default.green(To)}},$o=e=>new zt({validate:e.validate,placeholder:e.placeholder,defaultValue:e.defaultValue,initialValue:e.initialValue,render(){var n;let t=`${c.default.gray(k)}
42
+ ${bi(this.state)} ${e.message}
43
+ `,r=e.placeholder?c.default.inverse(e.placeholder[0])+c.default.dim(e.placeholder.slice(1)):c.default.inverse(c.default.hidden("_")),i=this.value?this.valueWithCursor:r;switch(this.state){case"error":return`${t.trim()}
44
+ ${c.default.yellow(k)} ${i}
45
+ ${c.default.yellow(Ge)} ${c.default.yellow(this.error)}
46
+ `;case"submit":return`${t}${c.default.gray(k)} ${c.default.dim(this.value||e.placeholder)}`;case"cancel":return`${t}${c.default.gray(k)} ${c.default.strikethrough(c.default.dim(this.value??""))}${(n=this.value)!=null&&n.trim()?`
47
+ `+c.default.gray(k):""}`;default:return`${t}${c.default.cyan(k)} ${i}
48
+ ${c.default.cyan(Ge)}
49
+ `}}}).prompt(),Ao=e=>{let t=e.active??"Yes",r=e.inactive??"No";return new Yt({active:t,inactive:r,initialValue:e.initialValue??!0,render(){let i=`${c.default.gray(k)}
50
+ ${bi(this.state)} ${e.message}
51
+ `,n=this.value?t:r;switch(this.state){case"submit":return`${i}${c.default.gray(k)} ${c.default.dim(n)}`;case"cancel":return`${i}${c.default.gray(k)} ${c.default.strikethrough(c.default.dim(n))}
52
+ ${c.default.gray(k)}`;default:return`${i}${c.default.cyan(k)} ${this.value?`${c.default.green(mi)} ${t}`:`${c.default.dim(_i)} ${c.default.dim(t)}`} ${c.default.dim("/")} ${this.value?`${c.default.dim(_i)} ${c.default.dim(r)}`:`${c.default.green(mi)} ${r}`}
53
+ ${c.default.cyan(Ge)}
54
+ `}}}).prompt()},xi=e=>{let t=(r,i)=>{let n=r.label??String(r.value);return i==="active"?`${c.default.green(mi)} ${n} ${r.hint?c.default.dim(`(${r.hint})`):""}`:i==="selected"?`${c.default.dim(n)}`:i==="cancelled"?`${c.default.strikethrough(c.default.dim(n))}`:`${c.default.dim(_i)} ${c.default.dim(n)}`};return new Kt({options:e.options,initialValue:e.initialValue,render(){let r=`${c.default.gray(k)}
55
+ ${bi(this.state)} ${e.message}
56
+ `;switch(this.state){case"submit":return`${r}${c.default.gray(k)} ${t(this.options[this.cursor],"selected")}`;case"cancel":return`${r}${c.default.gray(k)} ${t(this.options[this.cursor],"cancelled")}
57
+ ${c.default.gray(k)}`;default:return`${r}${c.default.cyan(k)} ${this.options.map((i,n)=>t(i,n===this.cursor?"active":"inactive")).join(`
58
+ ${c.default.cyan(k)} `)}
59
+ ${c.default.cyan(Ge)}
60
+ `}}}).prompt()};var gt=(e="")=>{process.stdout.write(`${c.default.gray(Ge)} ${c.default.red(e)}
61
+
62
+ `)},Oo=(e="")=>{process.stdout.write(`${c.default.gray(Ku)} ${e}
63
+ `)},Do=(e="")=>{process.stdout.write(`${c.default.gray(k)}
64
+ ${c.default.gray(Ge)} ${e}
65
+
66
+ `)},gi=yi?["\u25D2","\u25D0","\u25D3","\u25D1"]:["\u2022","o","O","0"],Io=()=>{let e,t,r=yi?80:120;return{start(i=""){i=i.replace(/\.?\.?\.$/,""),e=Co(),process.stdout.write(`${c.default.gray(k)}
67
+ ${c.default.magenta("\u25CB")} ${i}
68
+ `);let n=0,s=0;t=setInterval(()=>{let o=gi[n];process.stdout.write(pt.cursor.move(-999,-1)),process.stdout.write(`${c.default.magenta(o)} ${i}${Math.floor(s)>=1?".".repeat(Math.floor(s)).slice(0,3):""}
69
+ `),n=n===gi.length-1?0:n+1,s=s===gi.length?0:s+.125},r)},stop(i=""){process.stdout.write(pt.cursor.move(-999,-2)),process.stdout.write(pt.erase.down(2)),clearInterval(t),process.stdout.write(`${c.default.gray(k)}
70
+ ${c.default.green(To)} ${i}
71
+ `),e()}}};function zu(){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-nq-uy=><~]))"].join("|");return new RegExp(e,"g")}var vi="\u2502",ko=e=>e.replace(zu(),""),Zu=(e="",t="")=>{let r=`
72
+ ${e}
73
+ `.split(`
74
+ `),i=r.reduce((s,o)=>(o=ko(o),o.length>s?o.length:s),0)+2,n=r.map(s=>`${p.gray(vi)} ${p.white(s)}${" ".repeat(i-ko(s).length)}${p.gray(vi)}`).join(`
75
+ `);process.stdout.write(`${p.gray(vi)}
76
+ ${p.green("\u25CB")} ${p.reset(t)} ${p.gray("\u2500".repeat(i-t.length-1)+"\u256E")}
77
+ ${n}
78
+ ${p.gray("\u251C"+"\u2500".repeat(i+2)+"\u256F")}
79
+ `)};async function Ei(){Oo("Let's create a Qwik App \u2728 (v0.19.0)");let e=await $o({message:"Where would you like to create your new project?",placeholder:"./qwik-app"});Te(e)&&(gt("Operation cancelled."),process.exit(0));let t=ge(),i=(await Ae()).filter(v=>v.type==="app"),n=i.find(v=>v.id==="base"),s=i.filter(v=>v.id!==n.id),o=mo(t,n,!0),a=li(e.trim()),l=null;if(wi.default.existsSync(a)){let v=await xi({message:`Directory "./${(0,Bo.relative)(process.cwd(),a)}" already exists. What would you like to do?`,options:[{value:"exit",label:"Do not overwrite this directory and exit"},{value:"replace",label:"Overwrite and replace this directory"}]});(Te(v)||v==="exit")&&(gt("Operation cancelled."),process.exit(0)),v==="replace"&&(l=wi.default.promises.rm(a,{recursive:!0}))}let f=await xi({message:"Select a starter",options:s.map(v=>{var se;return{label:v.name,value:v.id,hint:(se=v.pkgJson)==null?void 0:se.description}})});Te(f)&&(gt("Operation cancelled."),process.exit(0));let g=f,h=await Ao({message:`Would you like to install ${t} dependencies?`,initialValue:!0});Te(h)&&(gt("Operation cancelled."),process.exit(0)),l&&await l;let m=h,x={starterId:g,outDir:a},b=Io();b.start("Creating App");let y=await ht(x);b.stop("Created App \u{1F430}");let F=!1;return m&&(b.start("Installing dependencies"),F=await o.complete(m,y.outDir),b.stop("Installed dependencies \u{1F4CB}")),Zu(ai(t,y,F),"Result"),Do(""),y}async function Xu(){console.clear(),ef(),Qu();try{let e=process.argv.slice(2);e.length>=2?await oi(e[0],e[1]):await Ei()}catch(e){$e(e.message||e)}}function Qu(){let e=process.version,[t,r]=e.replace("v","").split(".");Number(t)<16?(console.error(p.red(`Qwik requires Node.js 16.8 or higher. You are currently running Node.js ${e}.`)),process.exit(1)):Number(t)===16&&Number(r)<8&&console.warn(p.yellow(`Node.js 16.8 or higher is recommended. You are currently running Node.js ${e}.`))}function ef(){console.log(p.blue(`
80
+ ............ :##+ ###-
81
+ .::: :--------:. ###-
82
+ .:::: .:-------:. -=+++++=-. .===. -==. .==- :##+ ###- .===.
83
+ .:::::. .:-------. .###=--=*##: -##+ .###+ +##. :##+ ###- =##+.
84
+ ::::::. .:------. +##- +##: =##: =####: :##+ :##+ ###- +##=
85
+ ::::::. :-----: *##. +##: *#* .##-*#* :###. :##+ ###=*##+
86
+ ::::::. .:-----. +##: +##: -##-+#* :##:*##: :##+ ###- =##+.
87
+ :::::::. .-----. :###=--=###: *####: *####= :##+ ###- :###:
88
+ ::::::::.. ---:. .=+**+=*##: .+++- :+++= :##+ ###- =##:
89
+ .:::::::::. :-:. +##:
90
+ ..:::::::::::: +##:
91
+ ...::::
92
+ `),`
93
+ `)}0&&(module.exports={createApp,runCli,runCreateCli,runCreateInteractiveCli});
131
94
  /*! Bundled license information:
132
95
 
133
96
  safe-buffer/index.js:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-qwik",
3
- "version": "0.18.0",
3
+ "version": "0.19.0",
4
4
  "description": "Interactive CLI for create Qwik projects and adding features.",
5
5
  "bin": "./create-qwik.cjs",
6
6
  "main": "./index.cjs",
@@ -28,10 +28,8 @@
28
28
  "url": "https://github.com/BuilderIO/qwik/issues"
29
29
  },
30
30
  "devDependencies": {
31
- "@types/prompts": "2.4.2",
32
- "kleur": "4.1.5",
33
- "ora": "^6.1.2",
34
- "prompts": "2.4.2"
31
+ "@clack/prompts": "^0.4.3",
32
+ "kleur": "4.1.5"
35
33
  },
36
34
  "engines": {
37
35
  "node": ">=16",
@@ -10,7 +10,6 @@ node_modules
10
10
  # Cache
11
11
  .cache
12
12
  .mf
13
- .vscode
14
13
  .rollup.cache
15
14
  tsconfig.tsbuildinfo
16
15
 
@@ -24,6 +23,7 @@ pnpm-debug.log*
24
23
  lerna-debug.log*
25
24
 
26
25
  # Editor
26
+ .vscode/*
27
27
  !.vscode/extensions.json
28
28
  .idea
29
29
  .DS_Store
@@ -16,20 +16,20 @@
16
16
  "qwik": "qwik"
17
17
  },
18
18
  "devDependencies": {
19
- "@builder.io/qwik": "0.18.0",
20
- "@builder.io/qwik-city": "0.2.0",
21
- "@types/eslint": "8.21.0",
22
- "@types/node": "^18.13.0",
19
+ "@builder.io/qwik": "0.19.0",
20
+ "@builder.io/qwik-city": "0.3.0",
21
+ "@types/eslint": "8.21.1",
22
+ "@types/node": "^18.14.0",
23
23
  "@types/node-fetch": "latest",
24
- "@typescript-eslint/eslint-plugin": "5.51.0",
25
- "@typescript-eslint/parser": "5.51.0",
26
- "eslint-plugin-qwik": "0.18.0",
27
- "eslint": "8.33.0",
24
+ "@typescript-eslint/eslint-plugin": "5.52.0",
25
+ "@typescript-eslint/parser": "5.52.0",
26
+ "eslint-plugin-qwik": "0.19.0",
27
+ "eslint": "8.34.0",
28
28
  "node-fetch": "3.3.0",
29
- "undici": "5.18.0",
29
+ "undici": "5.20.0",
30
30
  "prettier": "2.8.4",
31
31
  "typescript": "4.9.5",
32
- "vite": "4.1.1",
32
+ "vite": "4.1.2",
33
33
  "vite-tsconfig-paths": "3.5.0"
34
34
  },
35
35
  "private": true
@@ -45,5 +45,5 @@ export default component$(() => {
45
45
  });
46
46
 
47
47
  export const head: DocumentHead = {
48
- title: 'Qwik Flower',
48
+ title: 'Qwik To-Do',
49
49
  };
@@ -32,20 +32,20 @@
32
32
  "release": "np"
33
33
  },
34
34
  "devDependencies": {
35
- "@builder.io/qwik": "0.18.0",
36
- "@types/eslint": "8.21.0",
37
- "@types/node": "^18.13.0",
35
+ "@builder.io/qwik": "0.19.0",
36
+ "@types/eslint": "8.21.1",
37
+ "@types/node": "^18.14.0",
38
38
  "@types/node-fetch": "latest",
39
- "@typescript-eslint/eslint-plugin": "5.51.0",
40
- "@typescript-eslint/parser": "5.51.0",
39
+ "@typescript-eslint/eslint-plugin": "5.52.0",
40
+ "@typescript-eslint/parser": "5.52.0",
41
41
  "eslint-plugin-qwik": "latest",
42
- "eslint": "8.33.0",
42
+ "eslint": "8.34.0",
43
43
  "node-fetch": "3.3.0",
44
- "undici": "5.18.0",
44
+ "undici": "5.20.0",
45
45
  "np": "7.6.1",
46
46
  "prettier": "2.8.4",
47
47
  "typescript": "4.9.5",
48
- "vite": "4.1.1"
48
+ "vite": "4.1.2"
49
49
  },
50
50
  "__qwik__": {
51
51
  "displayName": "Component library",