UNPKG

699 kBJavaScriptView Raw
1#!/usr/bin/env node
2module.exports=(()=>{var e={9059:e=>{"use strict";e.exports=JSON.parse('{"name":"@expo/package-manager","version":"0.0.28","description":"A library for installing and finding packages in a node project","main":"build","scripts":{"watch":"tsc --watch","build":"tsc","prepare":"yarn run clean && yarn build","clean":"rimraf build ./tsconfig.tsbuildinfo","lint":"eslint .","test":"jest"},"repository":{"type":"git","url":"https://github.com/expo/expo-cli.git","directory":"packages/package-manager"},"keywords":["react-native","package-manager","package-json","node","yarn","yarnpkg"],"license":"MIT","bugs":{"url":"https://github.com/expo/expo-cli/issues"},"homepage":"https://github.com/expo/expo-cli/tree/master/packages/package-manager#readme","files":["build"],"dependencies":{"@expo/json-file":"8.2.21","@expo/spawn-async":"^1.5.0","ansi-regex":"^5.0.0","chalk":"^4.0.0","find-yarn-workspace-root":"~2.0.0","npm-package-arg":"^7.0.0","rimraf":"^3.0.2","split":"^1.0.1","sudo-prompt":"9.1.1"},"devDependencies":{"@expo/babel-preset-cli":"0.2.16","@types/npm-package-arg":"^6.1.0","@types/split":"^1.0.0"},"publishConfig":{"access":"public"}}')},5211:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.codeFrameColumns=codeFrameColumns;t.default=_default;var n=_interopRequireWildcard(r(6860));function _getRequireWildcardCache(){if(typeof WeakMap!=="function")return null;var e=new WeakMap;_getRequireWildcardCache=function(){return e};return e}function _interopRequireWildcard(e){if(e&&e.__esModule){return e}if(e===null||typeof e!=="object"&&typeof e!=="function"){return{default:e}}var t=_getRequireWildcardCache();if(t&&t.has(e)){return t.get(e)}var r={};var n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e){if(Object.prototype.hasOwnProperty.call(e,i)){var s=n?Object.getOwnPropertyDescriptor(e,i):null;if(s&&(s.get||s.set)){Object.defineProperty(r,i,s)}else{r[i]=e[i]}}}r.default=e;if(t){t.set(e,r)}return r}let i=false;function getDefs(e){return{gutter:e.grey,marker:e.red.bold,message:e.red.bold}}const s=/\r\n|[\n\r\u2028\u2029]/;function getMarkerLines(e,t,r){const n=Object.assign({column:0,line:-1},e.start);const i=Object.assign({},n,{},e.end);const{linesAbove:s=2,linesBelow:o=3}=r||{};const a=n.line;const u=n.column;const c=i.line;const l=i.column;let h=Math.max(a-(s+1),0);let f=Math.min(t.length,c+o);if(a===-1){h=0}if(c===-1){f=t.length}const d=c-a;const p={};if(d){for(let e=0;e<=d;e++){const r=e+a;if(!u){p[r]=true}else if(e===0){const e=t[r-1].length;p[r]=[u,e-u+1]}else if(e===d){p[r]=[0,l]}else{const n=t[r-e].length;p[r]=[0,n]}}}else{if(u===l){if(u){p[a]=[u,0]}else{p[a]=true}}else{p[a]=[u,l-u]}}return{start:h,end:f,markerLines:p}}function codeFrameColumns(e,t,r={}){const i=(r.highlightCode||r.forceColor)&&(0,n.shouldHighlight)(r);const o=(0,n.getChalk)(r);const a=getDefs(o);const u=(e,t)=>{return i?e(t):t};const c=e.split(s);const{start:l,end:h,markerLines:f}=getMarkerLines(t,c,r);const d=t.start&&typeof t.start.column==="number";const p=String(h).length;const m=i?(0,n.default)(e,r):e;let y=m.split(s).slice(l,h).map((e,t)=>{const n=l+1+t;const i=` ${n}`.slice(-p);const s=` ${i} | `;const o=f[n];const c=!f[n+1];if(o){let t="";if(Array.isArray(o)){const n=e.slice(0,Math.max(o[0]-1,0)).replace(/[^\t]/g," ");const i=o[1]||1;t=["\n ",u(a.gutter,s.replace(/\d/g," ")),n,u(a.marker,"^").repeat(i)].join("");if(c&&r.message){t+=" "+u(a.message,r.message)}}return[u(a.marker,">"),u(a.gutter,s),e,t].join("")}else{return` ${u(a.gutter,s)}${e}`}}).join("\n");if(r.message&&!d){y=`${" ".repeat(p+1)}${r.message}\n${y}`}if(i){return o.reset(y)}else{return y}}function _default(e,t,r,n={}){if(!i){i=true;const e="Passing lineNumber and colNumber is deprecated to @babel/code-frame. Please use `codeFrameColumns`.";if(process.emitWarning){process.emitWarning(e,"DeprecationWarning")}else{const t=new Error(e);t.name="DeprecationWarning";console.warn(new Error(e))}}r=Math.max(r,0);const s={start:{column:r,line:t}};return codeFrameColumns(e,s,n)}},6396:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isIdentifierStart=isIdentifierStart;t.isIdentifierChar=isIdentifierChar;t.isIdentifierName=isIdentifierName;let r="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࢠ-ࢴࢶ-ࣇऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲈᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-鿼ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞿꟂ-ꟊꟵ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ";let n="‌‍·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛࣓-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-ໍ໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜔ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠐-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿᫀᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷹᷻-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_";const i=new RegExp("["+r+"]");const s=new RegExp("["+r+n+"]");r=n=null;const o=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,157,310,10,21,11,7,153,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,349,41,7,1,79,28,11,0,9,21,107,20,28,22,13,52,76,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,85,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,159,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,230,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,35,56,264,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,190,0,80,921,103,110,18,195,2749,1070,4050,582,8634,568,8,30,114,29,19,47,17,3,32,20,6,18,689,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,43,8,8952,286,50,2,18,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,2357,44,11,6,17,0,370,43,1301,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42717,35,4148,12,221,3,5761,15,7472,3104,541,1507,4938];const a=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,370,1,154,10,176,2,54,14,32,9,16,3,46,10,54,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,161,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,193,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,84,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,406,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,19306,9,135,4,60,6,26,9,1014,0,2,54,8,3,82,0,12,1,19628,1,5319,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,262,6,10,9,419,13,1495,6,110,6,6,9,4759,9,787719,239];function isInAstralSet(e,t){let r=65536;for(let n=0,i=t.length;n<i;n+=2){r+=t[n];if(r>e)return false;r+=t[n+1];if(r>=e)return true}return false}function isIdentifierStart(e){if(e<65)return e===36;if(e<=90)return true;if(e<97)return e===95;if(e<=122)return true;if(e<=65535){return e>=170&&i.test(String.fromCharCode(e))}return isInAstralSet(e,o)}function isIdentifierChar(e){if(e<48)return e===36;if(e<58)return true;if(e<65)return false;if(e<=90)return true;if(e<97)return e===95;if(e<=122)return true;if(e<=65535){return e>=170&&s.test(String.fromCharCode(e))}return isInAstralSet(e,o)||isInAstralSet(e,a)}function isIdentifierName(e){let t=true;for(let r=0,n=Array.from(e);r<n.length;r++){const e=n[r];const i=e.codePointAt(0);if(t){if(!isIdentifierStart(i)){return false}t=false}else if(!isIdentifierChar(i)){return false}}return!t}},6607:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});Object.defineProperty(t,"isIdentifierName",{enumerable:true,get:function(){return n.isIdentifierName}});Object.defineProperty(t,"isIdentifierChar",{enumerable:true,get:function(){return n.isIdentifierChar}});Object.defineProperty(t,"isIdentifierStart",{enumerable:true,get:function(){return n.isIdentifierStart}});Object.defineProperty(t,"isReservedWord",{enumerable:true,get:function(){return i.isReservedWord}});Object.defineProperty(t,"isStrictBindOnlyReservedWord",{enumerable:true,get:function(){return i.isStrictBindOnlyReservedWord}});Object.defineProperty(t,"isStrictBindReservedWord",{enumerable:true,get:function(){return i.isStrictBindReservedWord}});Object.defineProperty(t,"isStrictReservedWord",{enumerable:true,get:function(){return i.isStrictReservedWord}});Object.defineProperty(t,"isKeyword",{enumerable:true,get:function(){return i.isKeyword}});var n=r(6396);var i=r(7249)},7249:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isReservedWord=isReservedWord;t.isStrictReservedWord=isStrictReservedWord;t.isStrictBindOnlyReservedWord=isStrictBindOnlyReservedWord;t.isStrictBindReservedWord=isStrictBindReservedWord;t.isKeyword=isKeyword;const r={keyword:["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete"],strict:["implements","interface","let","package","private","protected","public","static","yield"],strictBind:["eval","arguments"]};const n=new Set(r.keyword);const i=new Set(r.strict);const s=new Set(r.strictBind);function isReservedWord(e,t){return t&&e==="await"||e==="enum"}function isStrictReservedWord(e,t){return isReservedWord(e,t)||i.has(e)}function isStrictBindOnlyReservedWord(e){return s.has(e)}function isStrictBindReservedWord(e,t){return isStrictReservedWord(e,t)||isStrictBindOnlyReservedWord(e)}function isKeyword(e){return n.has(e)}},6860:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.shouldHighlight=shouldHighlight;t.getChalk=getChalk;t.default=highlight;var n=_interopRequireWildcard(r(1531));var i=r(6607);var s=_interopRequireDefault(r(8707));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _getRequireWildcardCache(){if(typeof WeakMap!=="function")return null;var e=new WeakMap;_getRequireWildcardCache=function(){return e};return e}function _interopRequireWildcard(e){if(e&&e.__esModule){return e}if(e===null||typeof e!=="object"&&typeof e!=="function"){return{default:e}}var t=_getRequireWildcardCache();if(t&&t.has(e)){return t.get(e)}var r={};var n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e){if(Object.prototype.hasOwnProperty.call(e,i)){var s=n?Object.getOwnPropertyDescriptor(e,i):null;if(s&&(s.get||s.set)){Object.defineProperty(r,i,s)}else{r[i]=e[i]}}}r.default=e;if(t){t.set(e,r)}return r}function getDefs(e){return{keyword:e.cyan,capitalized:e.yellow,jsx_tag:e.yellow,punctuator:e.yellow,number:e.magenta,string:e.green,regex:e.magenta,comment:e.grey,invalid:e.white.bgRed.bold}}const o=/\r\n|[\n\r\u2028\u2029]/;const a=/^[a-z][\w-]*$/i;const u=/^[()[\]{}]$/;function getTokenType(e){const[t,r]=e.slice(-2);const s=(0,n.matchToToken)(e);if(s.type==="name"){if((0,i.isKeyword)(s.value)||(0,i.isReservedWord)(s.value)){return"keyword"}if(a.test(s.value)&&(r[t-1]==="<"||r.substr(t-2,2)=="</")){return"jsx_tag"}if(s.value[0]!==s.value[0].toLowerCase()){return"capitalized"}}if(s.type==="punctuator"&&u.test(s.value)){return"bracket"}if(s.type==="invalid"&&(s.value==="@"||s.value==="#")){return"punctuator"}return s.type}function highlightTokens(e,t){return t.replace(n.default,function(...t){const r=getTokenType(t);const n=e[r];if(n){return t[0].split(o).map(e=>n(e)).join("\n")}else{return t[0]}})}function shouldHighlight(e){return s.default.supportsColor||e.forceColor}function getChalk(e){let t=s.default;if(e.forceColor){t=new s.default.constructor({enabled:true,level:1})}return t}function highlight(e,t={}){if(shouldHighlight(t)){const r=getChalk(t);const n=getDefs(r);return highlightTokens(n,e)}else{return e}}},9090:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});const i=r(5747);const s=r(1669);const o=n(r(6908));const a=n(r(2900));const u=n(r(6904));const c=n(r(2221));const l=r(5211);const h=n(r(2212));const f=s.promisify(i.readFile);const d=s.promisify(c.default);const p={badJsonDefault:undefined,jsonParseErrorDefault:undefined,cantReadFileDefault:undefined,default:undefined,json5:false,space:2,addNewLineAtEOF:true};class JsonFile{constructor(e,t={}){this.file=e;this.options=t}read(e){return read(this.file,this._getOptions(e))}async readAsync(e){return readAsync(this.file,this._getOptions(e))}async writeAsync(e,t){return writeAsync(this.file,e,this._getOptions(t))}parseJsonString(e,t){return parseJsonString(e,t)}async getAsync(e,t,r){return getAsync(this.file,e,t,this._getOptions(r))}async setAsync(e,t,r){return setAsync(this.file,e,t,this._getOptions(r))}async mergeAsync(e,t){return mergeAsync(this.file,e,this._getOptions(t))}async deleteKeyAsync(e,t){return deleteKeyAsync(this.file,e,this._getOptions(t))}async deleteKeysAsync(e,t){return deleteKeysAsync(this.file,e,this._getOptions(t))}async rewriteAsync(e){return rewriteAsync(this.file,this._getOptions(e))}_getOptions(e){return Object.assign(Object.assign({},this.options),e)}}t.default=JsonFile;JsonFile.read=read;JsonFile.readAsync=readAsync;JsonFile.parseJsonString=parseJsonString;JsonFile.writeAsync=writeAsync;JsonFile.getAsync=getAsync;JsonFile.setAsync=setAsync;JsonFile.mergeAsync=mergeAsync;JsonFile.deleteKeyAsync=deleteKeyAsync;JsonFile.deleteKeysAsync=deleteKeysAsync;JsonFile.rewriteAsync=rewriteAsync;function read(e,t){let r;try{r=i.readFileSync(e,"utf8")}catch(r){let n=cantReadFileDefault(t);if(n===undefined){throw new h.default(`Can't read JSON file: ${e}`,r,r.code)}else{return n}}return parseJsonString(r,t)}async function readAsync(e,t){let r;try{r=await f(e,"utf8")}catch(r){let n=cantReadFileDefault(t);if(n===undefined){throw new h.default(`Can't read JSON file: ${e}`,r,r.code)}else{return n}}return parseJsonString(r,t)}function parseJsonString(e,t){try{if(_getOption(t,"json5")){return u.default.parse(e)}else{return JSON.parse(e)}}catch(r){let n=jsonParseErrorDefault(t);if(n===undefined){let t=locationFromSyntaxError(r,e);if(t){let n=l.codeFrameColumns(e,{start:t});r.codeFrame=n;r.message+=`\n${n}`}throw new h.default(`Error parsing JSON: ${e}`,r,"EJSONPARSE")}else{return n}}}async function getAsync(e,t,r,n){const i=await readAsync(e,n);if(r===undefined&&!(t in i)){throw new h.default(`No value at key path "${t}" in JSON object from: ${e}`)}return o.default(i,t,r)}async function writeAsync(e,t,r){const n=_getOption(r,"space");const i=_getOption(r,"json5");const s=_getOption(r,"addNewLineAtEOF");let o;try{if(i){o=u.default.stringify(t,null,n)}else{o=JSON.stringify(t,null,n)}}catch(t){throw new h.default(`Couldn't JSON.stringify object for file: ${e}`,t)}const a=s?`${o}\n`:o;await d(e,a,{});return t}async function setAsync(e,t,r,n){let i=await readAsync(e,n);i=a.default(i,t,r);return writeAsync(e,i,n)}async function mergeAsync(e,t,r){const n=await readAsync(e,r);if(Array.isArray(t)){Object.assign(n,...t)}else{Object.assign(n,t)}return writeAsync(e,n,r)}async function deleteKeyAsync(e,t,r){return deleteKeysAsync(e,[t],r)}async function deleteKeysAsync(e,t,r){const n=await readAsync(e,r);let i=false;for(let e=0;e<t.length;e++){let r=t[e];if(n.hasOwnProperty(r)){delete n[r];i=true}}if(i){return writeAsync(e,n,r)}return n}async function rewriteAsync(e,t){const r=await readAsync(e,t);return writeAsync(e,r,t)}function jsonParseErrorDefault(e={}){if(e.jsonParseErrorDefault===undefined){return e.default}else{return e.jsonParseErrorDefault}}function cantReadFileDefault(e={}){if(e.cantReadFileDefault===undefined){return e.default}else{return e.cantReadFileDefault}}function _getOption(e,t){if(e){if(e[t]!==undefined){return e[t]}}return p[t]}function locationFromSyntaxError(e,t){if("lineNumber"in e&&"columnNumber"in e){return{line:e.lineNumber,column:e.columnNumber}}let r=/at position (\d+)/.exec(e.message);if(r){let e=parseInt(r[1],10);let n=t.slice(0,e+1).split("\n");return{line:n.length,column:n[n.length-1].length}}return null}},2212:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});class JsonFileError extends Error{constructor(e,t,r){let n=t?`${e}\n└─ Cause: ${t.name}: ${t.message}`:e;super(n);this.name=this.constructor.name;this.cause=t;this.code=r;this.isJsonFileError=true}}t.default=JsonFileError},2783:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});const i=n(r(5562));const s=n(r(8006));const o=r(5747);const a=n(r(5622));const u=r(6353);class CocoaPodsPackageManager{constructor({cwd:e,log:t,silent:r}){this.log=t||console.log;this.silent=!!r;this.options=Object.assign({cwd:e},r?{ignoreStdio:true}:{stdio:["inherit","inherit","pipe"]})}static getPodProjectRoot(e){if(CocoaPodsPackageManager.isUsingPods(e))return e;const t=a.default.join(e,"ios");if(CocoaPodsPackageManager.isUsingPods(t))return t;return null}static isUsingPods(e){return o.existsSync(a.default.join(e,"Podfile"))}static async gemInstallCLIAsync(e=false,t={stdio:"inherit"}){const r=["install","cocoapods","--no-document"];try{await i.default("gem",r,t)}catch(t){if(e){throw t}await u.spawnSudoAsync(`gem ${r.join(" ")}`)}}static async brewLinkCLIAsync(e={stdio:"inherit"}){await i.default("brew",["link","cocoapods"],e)}static async brewInstallCLIAsync(e={stdio:"inherit"}){await i.default("brew",["install","cocoapods"],e)}static async installCLIAsync({nonInteractive:e=false,spawnOptions:t={stdio:"inherit"}}){if(!t){t={stdio:"inherit"}}let r=!!t.ignoreStdio;try{!r&&console.log(s.default.magenta(`› Attempting to install CocoaPods with Gem`));await CocoaPodsPackageManager.gemInstallCLIAsync(e,t);!r&&console.log(s.default.magenta(`› Successfully installed CocoaPods with Gem`));return true}catch(e){!r&&console.log(s.default.yellow(`› Failed to install CocoaPods with Gem`));!r&&console.log(s.default.black.bgRed(e.stderr));try{!r&&console.log(s.default.magenta(`› Attempting to install CocoaPods with Homebrew`));await CocoaPodsPackageManager.brewInstallCLIAsync(t);if(!await CocoaPodsPackageManager.isCLIInstalledAsync(t)){try{await CocoaPodsPackageManager.brewLinkCLIAsync(t);if(!await CocoaPodsPackageManager.isCLIInstalledAsync(t)){throw new Error}}catch(e){throw Error("Homebrew installation appeared to succeed but CocoaPods not found in PATH and unable to link.")}}!r&&console.log(s.default.magenta(`› Successfully installed CocoaPods with Homebrew`));return true}catch(e){!r&&console.log(s.default.yellow(`› Failed to install CocoaPods with Homebrew. Please install CocoaPods manually and try again.`));throw new Error(e.stderr)}}}static isAvailable(e,t){if(process.platform!=="darwin"){!t&&console.log(s.default.red("CocoaPods is only supported on macOS machines"));return false}if(!CocoaPodsPackageManager.isUsingPods(e)){!t&&console.log(s.default.yellow("CocoaPods is not supported in this project"));return false}return true}static async isCLIInstalledAsync(e={stdio:"inherit"}){try{await i.default("pod",["--version"],e);return true}catch(e){return false}}get name(){return"CocoaPods"}async installAsync(){await this._installAsync()}isCLIInstalledAsync(){return CocoaPodsPackageManager.isCLIInstalledAsync(this.options)}installCLIAsync(){return CocoaPodsPackageManager.installCLIAsync({nonInteractive:true,spawnOptions:this.options})}async _installAsync(e=true){var t;try{await this._runAsync(["install"])}catch(r){const n=(t=r.stderr)!==null&&t!==void 0?t:r.stdout;if(n.includes("pod repo update")&&e){!this.silent&&console.log(s.default.yellow(`› Couldn't install Pods. ${s.default.dim(`Updating the repo and trying again.`)}`));await this.podRepoUpdateAsync();await this._installAsync(false)}else{throw new Error(n)}}}async addAsync(...e){throw new Error("Unimplemented")}async addDevAsync(...e){throw new Error("Unimplemented")}async versionAsync(){const{stdout:e}=await i.default("pod",["--version"],this.options);return e.trim()}async getConfigAsync(e){throw new Error("Unimplemented")}async removeLockfileAsync(){throw new Error("Unimplemented")}async cleanAsync(){throw new Error("Unimplemented")}async podRepoUpdateAsync(){var e;try{await this._runAsync(["repo","update"])}catch(t){throw new Error((e=t.stderr)!==null&&e!==void 0?e:t.stdout)}}async _runAsync(e){if(!this.silent){this.log(`> pod ${e.join(" ")}`)}return i.default("pod",[...e],this.options)}}t.CocoaPodsPackageManager=CocoaPodsPackageManager},7158:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});const i=n(r(9090));const s=n(r(5562));const o=n(r(5063));const a=n(r(6748));const u=r(5747);const c=n(r(2695));const l=n(r(5622));const h=n(r(4959));const f=n(r(6354));const d=r(2413);const p=n(r(2564));const m={DISABLE_OPENCOLLECTIVE:"1",ADBLOCK:"1"};const y=`(?:${o.default().source})*`;const g=new RegExp(`${y}npm${y} ${y}WARN${y}.+You must install peer dependencies yourself\\.\n`,"g");const v=new RegExp(`${y}warning${y} "[^"]+" has (?:unmet|incorrect) peer dependency "[^"]+"\\.\n`,"g");function isUsingYarn(e){const t=a.default(e);if(t){return u.existsSync(l.default.join(t,"yarn.lock"))}return u.existsSync(l.default.join(e,"yarn.lock"))}t.isUsingYarn=isUsingYarn;class NpmStderrTransform extends d.Transform{_transform(e,t,r){this.push(e.toString().replace(g,""));r()}}class YarnStderrTransform extends d.Transform{_transform(e,t,r){this.push(e.toString().replace(v,""));r()}}class NpmPackageManager{constructor({cwd:e,log:t,silent:r}){this.log=t||console.log;this.options=Object.assign({env:Object.assign(Object.assign({},process.env),m),cwd:e},r?{ignoreStdio:true}:{stdio:["inherit","inherit","pipe"]})}get name(){return"npm"}async installAsync(){await this._runAsync(["install"])}async addAsync(...e){if(!e.length)return this.installAsync();const{versioned:t,unversioned:r}=this._parseSpecs(e);if(t.length){await this._patchAsync(t,"dependencies");await this._runAsync(["install"])}if(r.length){await this._runAsync(["install","--save",...r.map(e=>e.raw)])}}async addDevAsync(...e){if(!e.length)return this.installAsync();const{versioned:t,unversioned:r}=this._parseSpecs(e);if(t.length){await this._patchAsync(t,"devDependencies");await this._runAsync(["install"])}if(r.length){await this._runAsync(["install","--save-dev",...r.map(e=>e.raw)])}}async versionAsync(){const{stdout:e}=await s.default("npm",["--version"],{stdio:"pipe"});return e.trim()}async getConfigAsync(e){const{stdout:t}=await s.default("npm",["config","get",e],{stdio:"pipe"});return t.trim()}async removeLockfileAsync(){if(!this.options.cwd){throw new Error("cwd required for NpmPackageManager.removeLockfileAsync")}let e=l.default.join(this.options.cwd,"package-lock.json");if(u.existsSync(e)){h.default.sync(e)}}async cleanAsync(){if(!this.options.cwd){throw new Error("cwd required for NpmPackageManager.cleanAsync")}let e=l.default.join(this.options.cwd,"node_modules");if(u.existsSync(e)){h.default.sync(e)}}async _runAsync(e){if(!this.options.ignoreStdio){this.log(`> npm ${e.join(" ")}`)}const t=s.default("npm",[...e],Object.assign(Object.assign({},this.options),{ignoreStdio:false}));if(t.child.stderr&&!this.options.ignoreStdio){t.child.stderr.pipe(f.default(/\r?\n/,e=>e+"\n")).pipe(new NpmStderrTransform).pipe(process.stderr)}return t}_parseSpecs(e){const t={versioned:[],unversioned:[]};e.map(e=>c.default(e)).forEach(e=>{if(e.rawSpec){t.versioned.push(e)}else{t.unversioned.push(e)}});return t}async _patchAsync(e,t){const r=l.default.join(this.options.cwd||".","package.json");const n=await i.default.readAsync(r);e.forEach(e=>{n[t]=n[t]||{};n[t][e.name]=e.rawSpec});await i.default.writeAsync(r,n,{json5:false})}}t.NpmPackageManager=NpmPackageManager;class YarnPackageManager{constructor({cwd:e,log:t,silent:r}){this.log=t||console.log;this.options=Object.assign({env:Object.assign(Object.assign({},process.env),m),cwd:e},r?{ignoreStdio:true}:{stdio:["inherit","inherit","pipe"]})}get name(){return"Yarn"}async withOfflineSupportAsync(...e){if(await p.default()){e.push("--offline")}return e}async installAsync(){const e=await this.withOfflineSupportAsync("install");await this._runAsync(e)}async addAsync(...e){if(!e.length)return this.installAsync();const t=await this.withOfflineSupportAsync("add");t.push(...e);await this._runAsync(t)}async addDevAsync(...e){if(!e.length)return this.installAsync();const t=await this.withOfflineSupportAsync("add","--dev");t.push(...e);await this._runAsync(t)}async versionAsync(){const{stdout:e}=await s.default("yarnpkg",["--version"],{stdio:"pipe"});return e.trim()}async getConfigAsync(e){const{stdout:t}=await s.default("yarnpkg",["config","get",e],{stdio:"pipe"});return t.trim()}async removeLockfileAsync(){if(!this.options.cwd){throw new Error("cwd required for YarnPackageManager.removeLockfileAsync")}let e=l.default.join(this.options.cwd,"yarn-lock.json");if(u.existsSync(e)){h.default.sync(e)}}async cleanAsync(){if(!this.options.cwd){throw new Error("cwd required for YarnPackageManager.cleanAsync")}let e=l.default.join(this.options.cwd,"node_modules");if(u.existsSync(e)){h.default.sync(e)}}async _runAsync(e){if(!this.options.ignoreStdio){this.log(`> yarn ${e.join(" ")}`)}const t=s.default("yarnpkg",e,Object.assign(Object.assign({},this.options),{ignoreStdio:false}));if(t.child.stderr&&!this.options.ignoreStdio){t.child.stderr.pipe(new YarnStderrTransform).pipe(process.stderr)}return t}}t.YarnPackageManager=YarnPackageManager;function createForProject(e,t={}){let r;if(t.npm){r=NpmPackageManager}else if(t.yarn){r=YarnPackageManager}else if(isUsingYarn(e)){r=YarnPackageManager}else{r=NpmPackageManager}return new r({cwd:e,log:t.log,silent:t.silent})}t.createForProject=createForProject;function getModulesPath(e){const t=a.default(l.default.resolve(e));if(t){return l.default.resolve(t,"node_modules")}return l.default.resolve(e,"node_modules")}t.getModulesPath=getModulesPath},6353:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});const i=r(5747);const s=n(r(8566));function getPossibleProjectRoot(){return i.realpathSync(process.cwd())}t.getPossibleProjectRoot=getPossibleProjectRoot;function spawnSudoAsync(e){const t=r(9059);return new Promise((r,n)=>{s.default.exec(e,{name:t.name},e=>{if(e){n(e)}r()})})}t.spawnSudoAsync=spawnSudoAsync},6395:(e,t,r)=>{"use strict";function __export(e){for(var r in e)if(!t.hasOwnProperty(r))t[r]=e[r]}Object.defineProperty(t,"__esModule",{value:true});__export(r(6353));__export(r(7158));__export(r(2783));var n=r(4889);t.shouldUseYarn=n.default;var i=r(2564);t.isYarnOfflineAsync=i.default},2564:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});const i=r(3129);const s=n(r(1819));const o=n(r(8835));function getNpmProxy(){var e;if(process.env.https_proxy){return(e=process.env.https_proxy)!==null&&e!==void 0?e:null}try{const e=i.execSync("npm config get https-proxy").toString().trim();return e!=="null"?e:null}catch(e){return null}}t.getNpmProxy=getNpmProxy;function isUrlAvailableAsync(e){return new Promise(t=>{s.default.lookup(e,e=>{t(!e)})})}async function isYarnOfflineAsync(){if(await isUrlAvailableAsync("registry.yarnpkg.com")){return false}const e=getNpmProxy();if(!e){return true}const{hostname:t}=o.default.parse(e);if(!t){return true}return!await isUrlAvailableAsync(t)}t.default=isYarnOfflineAsync},4889:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(3129);function shouldUseYarn(){var e;try{if((e=process.env.npm_config_user_agent)===null||e===void 0?void 0:e.startsWith("yarn")){return true}n.execSync("yarnpkg --version",{stdio:"ignore"});return true}catch(e){return false}}t.default=shouldUseYarn},8006:(e,t,r)=>{"use strict";const n=r(2068);const{stdout:i,stderr:s}=r(9318);const{stringReplaceAll:o,stringEncaseCRLFWithFirstIndex:a}=r(4879);const u=["ansi","ansi","ansi256","ansi16m"];const c=Object.create(null);const l=(e,t={})=>{if(t.level&&!(Number.isInteger(t.level)&&t.level>=0&&t.level<=3)){throw new Error("The `level` option should be an integer from 0 to 3")}const r=i?i.level:0;e.level=t.level===undefined?r:t.level};class ChalkClass{constructor(e){return h(e)}}const h=e=>{const t={};l(t,e);t.template=((...e)=>v(t.template,...e));Object.setPrototypeOf(t,Chalk.prototype);Object.setPrototypeOf(t.template,t);t.template.constructor=(()=>{throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.")});t.template.Instance=ChalkClass;return t.template};function Chalk(e){return h(e)}for(const[e,t]of Object.entries(n)){c[e]={get(){const r=m(this,p(t.open,t.close,this._styler),this._isEmpty);Object.defineProperty(this,e,{value:r});return r}}}c.visible={get(){const e=m(this,this._styler,true);Object.defineProperty(this,"visible",{value:e});return e}};const f=["rgb","hex","keyword","hsl","hsv","hwb","ansi","ansi256"];for(const e of f){c[e]={get(){const{level:t}=this;return function(...r){const i=p(n.color[u[t]][e](...r),n.color.close,this._styler);return m(this,i,this._isEmpty)}}}}for(const e of f){const t="bg"+e[0].toUpperCase()+e.slice(1);c[t]={get(){const{level:t}=this;return function(...r){const i=p(n.bgColor[u[t]][e](...r),n.bgColor.close,this._styler);return m(this,i,this._isEmpty)}}}}const d=Object.defineProperties(()=>{},{...c,level:{enumerable:true,get(){return this._generator.level},set(e){this._generator.level=e}}});const p=(e,t,r)=>{let n;let i;if(r===undefined){n=e;i=t}else{n=r.openAll+e;i=t+r.closeAll}return{open:e,close:t,openAll:n,closeAll:i,parent:r}};const m=(e,t,r)=>{const n=(...e)=>{return y(n,e.length===1?""+e[0]:e.join(" "))};Object.setPrototypeOf(n,d);n._generator=e;n._styler=t;n._isEmpty=r;return n};const y=(e,t)=>{if(e.level<=0||!t){return e._isEmpty?"":t}let r=e._styler;if(r===undefined){return t}const{openAll:n,closeAll:i}=r;if(t.indexOf("")!==-1){while(r!==undefined){t=o(t,r.close,r.open);r=r.parent}}const s=t.indexOf("\n");if(s!==-1){t=a(t,i,n,s)}return n+t+i};let g;const v=(e,...t)=>{const[n]=t;if(!Array.isArray(n)){return t.join(" ")}const i=t.slice(1);const s=[n.raw[0]];for(let e=1;e<n.length;e++){s.push(String(i[e-1]).replace(/[{}\\]/g,"\\$&"),String(n.raw[e]))}if(g===undefined){g=r(3787)}return g(e,s.join(""))};Object.defineProperties(Chalk.prototype,c);const b=Chalk();b.supportsColor=i;b.stderr=Chalk({level:s?s.level:0});b.stderr.supportsColor=s;e.exports=b},3787:e=>{"use strict";const t=/(?:\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi;const r=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g;const n=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/;const i=/\\(u(?:[a-f\d]{4}|{[a-f\d]{1,6}})|x[a-f\d]{2}|.)|([^\\])/gi;const s=new Map([["n","\n"],["r","\r"],["t","\t"],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e",""],["a",""]]);function unescape(e){const t=e[0]==="u";const r=e[1]==="{";if(t&&!r&&e.length===5||e[0]==="x"&&e.length===3){return String.fromCharCode(parseInt(e.slice(1),16))}if(t&&r){return String.fromCodePoint(parseInt(e.slice(2,-1),16))}return s.get(e)||e}function parseArguments(e,t){const r=[];const s=t.trim().split(/\s*,\s*/g);let o;for(const t of s){const s=Number(t);if(!Number.isNaN(s)){r.push(s)}else if(o=t.match(n)){r.push(o[2].replace(i,(e,t,r)=>t?unescape(t):r))}else{throw new Error(`Invalid Chalk template style argument: ${t} (in style '${e}')`)}}return r}function parseStyle(e){r.lastIndex=0;const t=[];let n;while((n=r.exec(e))!==null){const e=n[1];if(n[2]){const r=parseArguments(e,n[2]);t.push([e].concat(r))}else{t.push([e])}}return t}function buildStyle(e,t){const r={};for(const e of t){for(const t of e.styles){r[t[0]]=e.inverse?null:t.slice(1)}}let n=e;for(const[e,t]of Object.entries(r)){if(!Array.isArray(t)){continue}if(!(e in n)){throw new Error(`Unknown Chalk style: ${e}`)}n=t.length>0?n[e](...t):n[e]}return n}e.exports=((e,r)=>{const n=[];const i=[];let s=[];r.replace(t,(t,r,o,a,u,c)=>{if(r){s.push(unescape(r))}else if(a){const t=s.join("");s=[];i.push(n.length===0?t:buildStyle(e,n)(t));n.push({inverse:o,styles:parseStyle(a)})}else if(u){if(n.length===0){throw new Error("Found extraneous } in Chalk template literal")}i.push(buildStyle(e,n)(s.join("")));s=[];n.pop()}else{s.push(c)}});i.push(s.join(""));if(n.length>0){const e=`Chalk template literal is missing ${n.length} closing bracket${n.length===1?"":"s"} (\`}\`)`;throw new Error(e)}return i.join("")})},4879:e=>{"use strict";const t=(e,t,r)=>{let n=e.indexOf(t);if(n===-1){return e}const i=t.length;let s=0;let o="";do{o+=e.substr(s,n-s)+t+r;s=n+i;n=e.indexOf(t,s)}while(n!==-1);o+=e.substr(s);return o};const r=(e,t,r,n)=>{let i=0;let s="";do{const o=e[n-1]==="\r";s+=e.substr(i,(o?n-1:n)-i)+t+(o?"\r\n":"\n")+r;i=n+1;n=e.indexOf("\n",i)}while(n!==-1);s+=e.substr(i);return s};e.exports={stringReplaceAll:t,stringEncaseCRLFWithFirstIndex:r}},4927:function(e,t,r){"use strict";var n=this&&this.__rest||function(e,t){var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0)r[n]=e[n];if(e!=null&&typeof Object.getOwnPropertySymbols==="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)if(t.indexOf(n[i])<0)r[n[i]]=e[n[i]];return r};var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});const s=i(r(2746));function spawnAsync(e,t,r={}){const i=new Error("fake error just to preserve stacktrace");const o=i.stack&&i.stack.split("\n").splice(1);const a=o&&[" ...",...o].join("\n");let u;let c=new Promise((i,o)=>{let{ignoreStdio:c}=r,l=n(r,["ignoreStdio"]);u=s.default(e,t,l);let h="";let f="";if(!c){if(u.stdout){u.stdout.on("data",e=>{h+=e})}if(u.stderr){u.stderr.on("data",e=>{f+=e})}}let d=(t,r)=>{u.removeListener("error",p);let n={pid:u.pid,output:[h,f],stdout:h,stderr:f,status:t,signal:r};if(t!==0){let i=r?new Error(`${e} exited with signal: ${r}`):new Error(`${e} exited with non-zero code: ${t}`);if(i.stack&&a){i.stack+=`\n${a}`}Object.assign(i,n);o(i)}else{i(n)}};let p=e=>{if(c){u.removeListener("exit",d)}else{u.removeListener("close",d)}Object.assign(e,{pid:u.pid,output:[h,f],stdout:h,stderr:f,status:null,signal:null});o(e)};if(c){u.once("exit",d)}else{u.once("close",d)}u.once("error",p)});c.child=u;return c}t.default=spawnAsync},5562:(e,t,r)=>{e.exports=r(4927).default},7678:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const{toString:r}=Object.prototype;const n=e=>t=>typeof t===e;const i=e=>{const t=r.call(e).slice(8,-1);if(t){return t}return undefined};const s=e=>t=>i(t)===e;function is(e){switch(e){case null:return"null";case true:case false:return"boolean";default:}switch(typeof e){case"undefined":return"undefined";case"string":return"string";case"number":return"number";case"bigint":return"bigint";case"symbol":return"symbol";default:}if(is.function_(e)){return"Function"}if(is.observable(e)){return"Observable"}if(is.array(e)){return"Array"}if(is.buffer(e)){return"Buffer"}const t=i(e);if(t){return t}if(e instanceof String||e instanceof Boolean||e instanceof Number){throw new TypeError("Please don't use object wrappers for primitive types")}return"Object"}is.undefined=n("undefined");is.string=n("string");const o=n("number");is.number=(e=>o(e)&&!is.nan(e));is.bigint=n("bigint");is.function_=n("function");is.null_=(e=>e===null);is.class_=(e=>is.function_(e)&&e.toString().startsWith("class "));is.boolean=(e=>e===true||e===false);is.symbol=n("symbol");is.numericString=(e=>is.string(e)&&!is.emptyStringOrWhitespace(e)&&!Number.isNaN(Number(e)));is.array=Array.isArray;is.buffer=(e=>{var t,r,n,i;return(i=(n=(r=(t=e)===null||t===void 0?void 0:t.constructor)===null||r===void 0?void 0:r.isBuffer)===null||n===void 0?void 0:n.call(r,e))!==null&&i!==void 0?i:false});is.nullOrUndefined=(e=>is.null_(e)||is.undefined(e));is.object=(e=>!is.null_(e)&&(typeof e==="object"||is.function_(e)));is.iterable=(e=>{var t;return is.function_((t=e)===null||t===void 0?void 0:t[Symbol.iterator])});is.asyncIterable=(e=>{var t;return is.function_((t=e)===null||t===void 0?void 0:t[Symbol.asyncIterator])});is.generator=(e=>is.iterable(e)&&is.function_(e.next)&&is.function_(e.throw));is.asyncGenerator=(e=>is.asyncIterable(e)&&is.function_(e.next)&&is.function_(e.throw));is.nativePromise=(e=>s("Promise")(e));const a=e=>{var t,r;return is.function_((t=e)===null||t===void 0?void 0:t.then)&&is.function_((r=e)===null||r===void 0?void 0:r.catch)};is.promise=(e=>is.nativePromise(e)||a(e));is.generatorFunction=s("GeneratorFunction");is.asyncGeneratorFunction=(e=>i(e)==="AsyncGeneratorFunction");is.asyncFunction=(e=>i(e)==="AsyncFunction");is.boundFunction=(e=>is.function_(e)&&!e.hasOwnProperty("prototype"));is.regExp=s("RegExp");is.date=s("Date");is.error=s("Error");is.map=(e=>s("Map")(e));is.set=(e=>s("Set")(e));is.weakMap=(e=>s("WeakMap")(e));is.weakSet=(e=>s("WeakSet")(e));is.int8Array=s("Int8Array");is.uint8Array=s("Uint8Array");is.uint8ClampedArray=s("Uint8ClampedArray");is.int16Array=s("Int16Array");is.uint16Array=s("Uint16Array");is.int32Array=s("Int32Array");is.uint32Array=s("Uint32Array");is.float32Array=s("Float32Array");is.float64Array=s("Float64Array");is.bigInt64Array=s("BigInt64Array");is.bigUint64Array=s("BigUint64Array");is.arrayBuffer=s("ArrayBuffer");is.sharedArrayBuffer=s("SharedArrayBuffer");is.dataView=s("DataView");is.directInstanceOf=((e,t)=>Object.getPrototypeOf(e)===t.prototype);is.urlInstance=(e=>s("URL")(e));is.urlString=(e=>{if(!is.string(e)){return false}try{new URL(e);return true}catch(e){return false}});is.truthy=(e=>Boolean(e));is.falsy=(e=>!e);is.nan=(e=>Number.isNaN(e));const u=new Set(["undefined","string","number","bigint","boolean","symbol"]);is.primitive=(e=>is.null_(e)||u.has(typeof e));is.integer=(e=>Number.isInteger(e));is.safeInteger=(e=>Number.isSafeInteger(e));is.plainObject=(e=>{if(i(e)!=="Object"){return false}const t=Object.getPrototypeOf(e);return t===null||t===Object.getPrototypeOf({})});const c=new Set(["Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Uint16Array","Int32Array","Uint32Array","Float32Array","Float64Array","BigInt64Array","BigUint64Array"]);is.typedArray=(e=>{const t=i(e);if(t===undefined){return false}return c.has(t)});const l=e=>is.safeInteger(e)&&e>=0;is.arrayLike=(e=>!is.nullOrUndefined(e)&&!is.function_(e)&&l(e.length));is.inRange=((e,t)=>{if(is.number(t)){return e>=Math.min(0,t)&&e<=Math.max(t,0)}if(is.array(t)&&t.length===2){return e>=Math.min(...t)&&e<=Math.max(...t)}throw new TypeError(`Invalid range: ${JSON.stringify(t)}`)});const h=1;const f=["innerHTML","ownerDocument","style","attributes","nodeValue"];is.domElement=(e=>is.object(e)&&e.nodeType===h&&is.string(e.nodeName)&&!is.plainObject(e)&&f.every(t=>t in e));is.observable=(e=>{var t,r,n,i;if(!e){return false}if(e===((r=(t=e)[Symbol.observable])===null||r===void 0?void 0:r.call(t))){return true}if(e===((i=(n=e)["@@observable"])===null||i===void 0?void 0:i.call(n))){return true}return false});is.nodeStream=(e=>is.object(e)&&is.function_(e.pipe)&&!is.observable(e));is.infinite=(e=>e===Infinity||e===-Infinity);const d=e=>t=>is.integer(t)&&Math.abs(t%2)===e;is.evenInteger=d(0);is.oddInteger=d(1);is.emptyArray=(e=>is.array(e)&&e.length===0);is.nonEmptyArray=(e=>is.array(e)&&e.length>0);is.emptyString=(e=>is.string(e)&&e.length===0);is.nonEmptyString=(e=>is.string(e)&&e.length>0);const p=e=>is.string(e)&&!/\S/.test(e);is.emptyStringOrWhitespace=(e=>is.emptyString(e)||p(e));is.emptyObject=(e=>is.object(e)&&!is.map(e)&&!is.set(e)&&Object.keys(e).length===0);is.nonEmptyObject=(e=>is.object(e)&&!is.map(e)&&!is.set(e)&&Object.keys(e).length>0);is.emptySet=(e=>is.set(e)&&e.size===0);is.nonEmptySet=(e=>is.set(e)&&e.size>0);is.emptyMap=(e=>is.map(e)&&e.size===0);is.nonEmptyMap=(e=>is.map(e)&&e.size>0);const m=(e,t,r)=>{if(!is.function_(t)){throw new TypeError(`Invalid predicate: ${JSON.stringify(t)}`)}if(r.length===0){throw new TypeError("Invalid number of values")}return e.call(r,t)};is.any=((e,...t)=>{const r=is.array(e)?e:[e];return r.some(e=>m(Array.prototype.some,e,t))});is.all=((e,...t)=>m(Array.prototype.every,e,t));const y=(e,t,r)=>{if(!e){throw new TypeError(`Expected value which is \`${t}\`, received value of type \`${is(r)}\`.`)}};t.assert={undefined:e=>y(is.undefined(e),"undefined",e),string:e=>y(is.string(e),"string",e),number:e=>y(is.number(e),"number",e),bigint:e=>y(is.bigint(e),"bigint",e),function_:e=>y(is.function_(e),"Function",e),null_:e=>y(is.null_(e),"null",e),class_:e=>y(is.class_(e),"Class",e),boolean:e=>y(is.boolean(e),"boolean",e),symbol:e=>y(is.symbol(e),"symbol",e),numericString:e=>y(is.numericString(e),"string with a number",e),array:e=>y(is.array(e),"Array",e),buffer:e=>y(is.buffer(e),"Buffer",e),nullOrUndefined:e=>y(is.nullOrUndefined(e),"null or undefined",e),object:e=>y(is.object(e),"Object",e),iterable:e=>y(is.iterable(e),"Iterable",e),asyncIterable:e=>y(is.asyncIterable(e),"AsyncIterable",e),generator:e=>y(is.generator(e),"Generator",e),asyncGenerator:e=>y(is.asyncGenerator(e),"AsyncGenerator",e),nativePromise:e=>y(is.nativePromise(e),"native Promise",e),promise:e=>y(is.promise(e),"Promise",e),generatorFunction:e=>y(is.generatorFunction(e),"GeneratorFunction",e),asyncGeneratorFunction:e=>y(is.asyncGeneratorFunction(e),"AsyncGeneratorFunction",e),asyncFunction:e=>y(is.asyncFunction(e),"AsyncFunction",e),boundFunction:e=>y(is.boundFunction(e),"Function",e),regExp:e=>y(is.regExp(e),"RegExp",e),date:e=>y(is.date(e),"Date",e),error:e=>y(is.error(e),"Error",e),map:e=>y(is.map(e),"Map",e),set:e=>y(is.set(e),"Set",e),weakMap:e=>y(is.weakMap(e),"WeakMap",e),weakSet:e=>y(is.weakSet(e),"WeakSet",e),int8Array:e=>y(is.int8Array(e),"Int8Array",e),uint8Array:e=>y(is.uint8Array(e),"Uint8Array",e),uint8ClampedArray:e=>y(is.uint8ClampedArray(e),"Uint8ClampedArray",e),int16Array:e=>y(is.int16Array(e),"Int16Array",e),uint16Array:e=>y(is.uint16Array(e),"Uint16Array",e),int32Array:e=>y(is.int32Array(e),"Int32Array",e),uint32Array:e=>y(is.uint32Array(e),"Uint32Array",e),float32Array:e=>y(is.float32Array(e),"Float32Array",e),float64Array:e=>y(is.float64Array(e),"Float64Array",e),bigInt64Array:e=>y(is.bigInt64Array(e),"BigInt64Array",e),bigUint64Array:e=>y(is.bigUint64Array(e),"BigUint64Array",e),arrayBuffer:e=>y(is.arrayBuffer(e),"ArrayBuffer",e),sharedArrayBuffer:e=>y(is.sharedArrayBuffer(e),"SharedArrayBuffer",e),dataView:e=>y(is.dataView(e),"DataView",e),urlInstance:e=>y(is.urlInstance(e),"URL",e),urlString:e=>y(is.urlString(e),"string with a URL",e),truthy:e=>y(is.truthy(e),"truthy",e),falsy:e=>y(is.falsy(e),"falsy",e),nan:e=>y(is.nan(e),"NaN",e),primitive:e=>y(is.primitive(e),"primitive",e),integer:e=>y(is.integer(e),"integer",e),safeInteger:e=>y(is.safeInteger(e),"integer",e),plainObject:e=>y(is.plainObject(e),"plain object",e),typedArray:e=>y(is.typedArray(e),"TypedArray",e),arrayLike:e=>y(is.arrayLike(e),"array-like",e),domElement:e=>y(is.domElement(e),"Element",e),observable:e=>y(is.observable(e),"Observable",e),nodeStream:e=>y(is.nodeStream(e),"Node.js Stream",e),infinite:e=>y(is.infinite(e),"infinite number",e),emptyArray:e=>y(is.emptyArray(e),"empty array",e),nonEmptyArray:e=>y(is.nonEmptyArray(e),"non-empty array",e),emptyString:e=>y(is.emptyString(e),"empty string",e),nonEmptyString:e=>y(is.nonEmptyString(e),"non-empty string",e),emptyStringOrWhitespace:e=>y(is.emptyStringOrWhitespace(e),"empty string or whitespace",e),emptyObject:e=>y(is.emptyObject(e),"empty object",e),nonEmptyObject:e=>y(is.nonEmptyObject(e),"non-empty object",e),emptySet:e=>y(is.emptySet(e),"empty set",e),nonEmptySet:e=>y(is.nonEmptySet(e),"non-empty set",e),emptyMap:e=>y(is.emptyMap(e),"empty map",e),nonEmptyMap:e=>y(is.nonEmptyMap(e),"non-empty map",e),evenInteger:e=>y(is.evenInteger(e),"even integer",e),oddInteger:e=>y(is.oddInteger(e),"odd integer",e),directInstanceOf:(e,t)=>y(is.directInstanceOf(e,t),"T",e),inRange:(e,t)=>y(is.inRange(e,t),"in range",e),any:(e,...t)=>y(is.any(e,...t),"predicate returns truthy for any value",t),all:(e,...t)=>y(is.all(e,...t),"predicate returns truthy for all values",t)};Object.defineProperties(is,{class:{value:is.class_},function:{value:is.function_},null:{value:is.null_}});Object.defineProperties(t.assert,{class:{value:t.assert.class_},function:{value:t.assert.function_},null:{value:t.assert.null_}});t.default=is;e.exports=is;e.exports.default=is;e.exports.assert=t.assert},8097:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(6214);const i=Number(process.versions.node.split(".")[0]);const s=e=>{const t={start:Date.now(),socket:undefined,lookup:undefined,connect:undefined,secureConnect:undefined,upload:undefined,response:undefined,end:undefined,error:undefined,abort:undefined,phases:{wait:undefined,dns:undefined,tcp:undefined,tls:undefined,request:undefined,firstByte:undefined,download:undefined,total:undefined}};e.timings=t;const r=e=>{const r=e.emit.bind(e);e.emit=((n,...i)=>{if(n==="error"){t.error=Date.now();t.phases.total=t.error-t.start;e.emit=r}return r(n,...i)})};r(e);e.prependOnceListener("abort",()=>{t.abort=Date.now();if(!t.response||i>=13){t.phases.total=Date.now()-t.start}});const s=e=>{t.socket=Date.now();t.phases.wait=t.socket-t.start;const r=()=>{t.lookup=Date.now();t.phases.dns=t.lookup-t.socket};e.prependOnceListener("lookup",r);n.default(e,{connect:()=>{t.connect=Date.now();if(t.lookup===undefined){e.removeListener("lookup",r);t.lookup=t.connect;t.phases.dns=t.lookup-t.socket}t.phases.tcp=t.connect-t.lookup},secureConnect:()=>{t.secureConnect=Date.now();t.phases.tls=t.secureConnect-t.connect}})};if(e.socket){s(e.socket)}else{e.prependOnceListener("socket",s)}const o=()=>{var e;t.upload=Date.now();t.phases.request=t.upload-(e=t.secureConnect,e!==null&&e!==void 0?e:t.connect)};const a=()=>{if(typeof e.writableFinished==="boolean"){return e.writableFinished}return e.finished&&e.outputSize===0&&(!e.socket||e.socket.writableLength===0)};if(a()){o()}else{e.prependOnceListener("finish",o)}e.prependOnceListener("response",e=>{t.response=Date.now();t.phases.firstByte=t.response-t.upload;e.timings=t;r(e);e.prependOnceListener("end",()=>{t.end=Date.now();t.phases.download=t.end-t.response;t.phases.total=t.end-t.start})});return t};t.default=s;e.exports=s;e.exports.default=s},8512:e=>{"use strict";const t=e.exports;e.exports.default=t;const r="[";const n="]";const i="";const s=";";const o=process.env.TERM_PROGRAM==="Apple_Terminal";t.cursorTo=((e,t)=>{if(typeof e!=="number"){throw new TypeError("The `x` argument is required")}if(typeof t!=="number"){return r+(e+1)+"G"}return r+(t+1)+";"+(e+1)+"H"});t.cursorMove=((e,t)=>{if(typeof e!=="number"){throw new TypeError("The `x` argument is required")}let n="";if(e<0){n+=r+-e+"D"}else if(e>0){n+=r+e+"C"}if(t<0){n+=r+-t+"A"}else if(t>0){n+=r+t+"B"}return n});t.cursorUp=((e=1)=>r+e+"A");t.cursorDown=((e=1)=>r+e+"B");t.cursorForward=((e=1)=>r+e+"C");t.cursorBackward=((e=1)=>r+e+"D");t.cursorLeft=r+"G";t.cursorSavePosition=o?"7":r+"s";t.cursorRestorePosition=o?"8":r+"u";t.cursorGetPosition=r+"6n";t.cursorNextLine=r+"E";t.cursorPrevLine=r+"F";t.cursorHide=r+"?25l";t.cursorShow=r+"?25h";t.eraseLines=(e=>{let r="";for(let n=0;n<e;n++){r+=t.eraseLine+(n<e-1?t.cursorUp():"")}if(e){r+=t.cursorLeft}return r});t.eraseEndLine=r+"K";t.eraseStartLine=r+"1K";t.eraseLine=r+"2K";t.eraseDown=r+"J";t.eraseUp=r+"1J";t.eraseScreen=r+"2J";t.scrollUp=r+"S";t.scrollDown=r+"T";t.clearScreen="c";t.clearTerminal=process.platform==="win32"?`${t.eraseScreen}${r}0f`:`${t.eraseScreen}${r}3J${r}H`;t.beep=i;t.link=((e,t)=>{return[n,"8",s,s,t,i,e,n,"8",s,s,i].join("")});t.image=((e,t={})=>{let r=`${n}1337;File=inline=1`;if(t.width){r+=`;width=${t.width}`}if(t.height){r+=`;height=${t.height}`}if(t.preserveAspectRatio===false){r+=";preserveAspectRatio=0"}return r+":"+e.toString("base64")+i});t.iTerm={setCwd:(e=process.cwd())=>`${n}50;CurrentDir=${e}${i}`,annotation:(e,t={})=>{let r=`${n}1337;`;const s=typeof t.x!=="undefined";const o=typeof t.y!=="undefined";if((s||o)&&!(s&&o&&typeof t.length!=="undefined")){throw new Error("`x`, `y` and `length` must be defined when `x` or `y` is defined")}e=e.replace(/\|/g,"");r+=t.isHidden?"AddHiddenAnnotation=":"AddAnnotation=";if(t.length>0){r+=(s?[e,t.length,t.x,t.y]:[t.length,e]).join("|")}else{r+=e}return r+i}}},5063:e=>{"use strict";e.exports=(({onlyFirst:e=false}={})=>{const t=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:[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?undefined:"g")})},2068:(e,t,r)=>{"use strict";e=r.nmd(e);const n=(e,t)=>(...r)=>{const n=e(...r);return`[${n+t}m`};const i=(e,t)=>(...r)=>{const n=e(...r);return`[${38+t};5;${n}m`};const s=(e,t)=>(...r)=>{const n=e(...r);return`[${38+t};2;${n[0]};${n[1]};${n[2]}m`};const o=e=>e;const a=(e,t,r)=>[e,t,r];const u=(e,t,r)=>{Object.defineProperty(e,t,{get:()=>{const n=r();Object.defineProperty(e,t,{value:n,enumerable:true,configurable:true});return n},enumerable:true,configurable:true})};let c;const l=(e,t,n,i)=>{if(c===undefined){c=r(6931)}const s=i?10:0;const o={};for(const[r,i]of Object.entries(c)){const a=r==="ansi16"?"ansi":r;if(r===t){o[a]=e(n,s)}else if(typeof i==="object"){o[a]=e(i[t],s)}}return o};function assembleStyles(){const e=new Map;const t={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};t.color.gray=t.color.blackBright;t.bgColor.bgGray=t.bgColor.bgBlackBright;t.color.grey=t.color.blackBright;t.bgColor.bgGrey=t.bgColor.bgBlackBright;for(const[r,n]of Object.entries(t)){for(const[r,i]of Object.entries(n)){t[r]={open:`[${i[0]}m`,close:`[${i[1]}m`};n[r]=t[r];e.set(i[0],i[1])}Object.defineProperty(t,r,{value:n,enumerable:false})}Object.defineProperty(t,"codes",{value:e,enumerable:false});t.color.close="";t.bgColor.close="";u(t.color,"ansi",()=>l(n,"ansi16",o,false));u(t.color,"ansi256",()=>l(i,"ansi256",o,false));u(t.color,"ansi16m",()=>l(s,"rgb",a,false));u(t.bgColor,"ansi",()=>l(n,"ansi16",o,true));u(t.bgColor,"ansi256",()=>l(i,"ansi256",o,true));u(t.bgColor,"ansi16m",()=>l(s,"rgb",a,true));return t}Object.defineProperty(e,"exports",{enumerable:true,get:assembleStyles})},5995:e=>{e.exports=(e=>{const t=process.versions.node.split(".").map(e=>parseInt(e,10));e=e.split(".").map(e=>parseInt(e,10));return t[0]>e[0]||t[0]===e[0]&&(t[1]>e[1]||t[1]===e[1]&&t[2]>=e[2])})},9417:e=>{"use strict";e.exports=balanced;function balanced(e,t,r){if(e instanceof RegExp)e=maybeMatch(e,r);if(t instanceof RegExp)t=maybeMatch(t,r);var n=range(e,t,r);return n&&{start:n[0],end:n[1],pre:r.slice(0,n[0]),body:r.slice(n[0]+e.length,n[1]),post:r.slice(n[1]+t.length)}}function maybeMatch(e,t){var r=t.match(e);return r?r[0]:null}balanced.range=range;function range(e,t,r){var n,i,s,o,a;var u=r.indexOf(e);var c=r.indexOf(t,u+1);var l=u;if(u>=0&&c>0){n=[];s=r.length;while(l>=0&&!a){if(l==u){n.push(l);u=r.indexOf(e,l+1)}else if(n.length==1){a=[n.pop(),c]}else{i=n.pop();if(i<s){s=i;o=c}c=r.indexOf(t,l+1)}l=u<c&&u>=0?u:c}if(n.length){a=[s,o]}}return a}},3717:(e,t,r)=>{var n=r(6891);var i=r(9417);e.exports=expandTop;var s="\0SLASH"+Math.random()+"\0";var o="\0OPEN"+Math.random()+"\0";var a="\0CLOSE"+Math.random()+"\0";var u="\0COMMA"+Math.random()+"\0";var c="\0PERIOD"+Math.random()+"\0";function numeric(e){return parseInt(e,10)==e?parseInt(e,10):e.charCodeAt(0)}function escapeBraces(e){return e.split("\\\\").join(s).split("\\{").join(o).split("\\}").join(a).split("\\,").join(u).split("\\.").join(c)}function unescapeBraces(e){return e.split(s).join("\\").split(o).join("{").split(a).join("}").split(u).join(",").split(c).join(".")}function parseCommaParts(e){if(!e)return[""];var t=[];var r=i("{","}",e);if(!r)return e.split(",");var n=r.pre;var s=r.body;var o=r.post;var a=n.split(",");a[a.length-1]+="{"+s+"}";var u=parseCommaParts(o);if(o.length){a[a.length-1]+=u.shift();a.push.apply(a,u)}t.push.apply(t,a);return t}function expandTop(e){if(!e)return[];if(e.substr(0,2)==="{}"){e="\\{\\}"+e.substr(2)}return expand(escapeBraces(e),true).map(unescapeBraces)}function identity(e){return e}function embrace(e){return"{"+e+"}"}function isPadded(e){return/^-?0\d/.test(e)}function lte(e,t){return e<=t}function gte(e,t){return e>=t}function expand(e,t){var r=[];var s=i("{","}",e);if(!s||/\$$/.test(s.pre))return[e];var o=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(s.body);var u=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(s.body);var c=o||u;var l=s.body.indexOf(",")>=0;if(!c&&!l){if(s.post.match(/,.*\}/)){e=s.pre+"{"+s.body+a+s.post;return expand(e)}return[e]}var h;if(c){h=s.body.split(/\.\./)}else{h=parseCommaParts(s.body);if(h.length===1){h=expand(h[0],false).map(embrace);if(h.length===1){var f=s.post.length?expand(s.post,false):[""];return f.map(function(e){return s.pre+h[0]+e})}}}var d=s.pre;var f=s.post.length?expand(s.post,false):[""];var p;if(c){var m=numeric(h[0]);var y=numeric(h[1]);var g=Math.max(h[0].length,h[1].length);var v=h.length==3?Math.abs(numeric(h[2])):1;var b=lte;var w=y<m;if(w){v*=-1;b=gte}var A=h.some(isPadded);p=[];for(var E=m;b(E,y);E+=v){var _;if(u){_=String.fromCharCode(E);if(_==="\\")_=""}else{_=String(E);if(A){var D=g-_.length;if(D>0){var S=new Array(D+1).join("0");if(E<0)_="-"+S+_.slice(1);else _=S+_}}}p.push(_)}}else{p=n(h,function(e){return expand(e,false)})}for(var C=0;C<p.length;C++){for(var x=0;x<f.length;x++){var R=d+p[C]+f[x];if(!t||c||R)r.push(R)}}return r}},610:(e,t,r)=>{"use strict";const n=r(8750);const i=r(9434);const s=r(5873);const o=r(6477);const a=(e,t={})=>{let r=[];if(Array.isArray(e)){for(let n of e){let e=a.create(n,t);if(Array.isArray(e)){r.push(...e)}else{r.push(e)}}}else{r=[].concat(a.create(e,t))}if(t&&t.expand===true&&t.nodupes===true){r=[...new Set(r)]}return r};a.parse=((e,t={})=>o(e,t));a.stringify=((e,t={})=>{if(typeof e==="string"){return n(a.parse(e,t),t)}return n(e,t)});a.compile=((e,t={})=>{if(typeof e==="string"){e=a.parse(e,t)}return i(e,t)});a.expand=((e,t={})=>{if(typeof e==="string"){e=a.parse(e,t)}let r=s(e,t);if(t.noempty===true){r=r.filter(Boolean)}if(t.nodupes===true){r=[...new Set(r)]}return r});a.create=((e,t={})=>{if(e===""||e.length<3){return[e]}return t.expand!==true?a.compile(e,t):a.expand(e,t)});e.exports=a},9434:(e,t,r)=>{"use strict";const n=r(6330);const i=r(5207);const s=(e,t={})=>{let r=(e,s={})=>{let o=i.isInvalidBrace(s);let a=e.invalid===true&&t.escapeInvalid===true;let u=o===true||a===true;let c=t.escapeInvalid===true?"\\":"";let l="";if(e.isOpen===true){return c+e.value}if(e.isClose===true){return c+e.value}if(e.type==="open"){return u?c+e.value:"("}if(e.type==="close"){return u?c+e.value:")"}if(e.type==="comma"){return e.prev.type==="comma"?"":u?e.value:"|"}if(e.value){return e.value}if(e.nodes&&e.ranges>0){let r=i.reduce(e.nodes);let s=n(...r,{...t,wrap:false,toRegex:true});if(s.length!==0){return r.length>1&&s.length>1?`(${s})`:s}}if(e.nodes){for(let t of e.nodes){l+=r(t,e)}}return l};return r(e)};e.exports=s},8774:e=>{"use strict";e.exports={MAX_LENGTH:1024*64,CHAR_0:"0",CHAR_9:"9",CHAR_UPPERCASE_A:"A",CHAR_LOWERCASE_A:"a",CHAR_UPPERCASE_Z:"Z",CHAR_LOWERCASE_Z:"z",CHAR_LEFT_PARENTHESES:"(",CHAR_RIGHT_PARENTHESES:")",CHAR_ASTERISK:"*",CHAR_AMPERSAND:"&",CHAR_AT:"@",CHAR_BACKSLASH:"\\",CHAR_BACKTICK:"`",CHAR_CARRIAGE_RETURN:"\r",CHAR_CIRCUMFLEX_ACCENT:"^",CHAR_COLON:":",CHAR_COMMA:",",CHAR_DOLLAR:"$",CHAR_DOT:".",CHAR_DOUBLE_QUOTE:'"',CHAR_EQUAL:"=",CHAR_EXCLAMATION_MARK:"!",CHAR_FORM_FEED:"\f",CHAR_FORWARD_SLASH:"/",CHAR_HASH:"#",CHAR_HYPHEN_MINUS:"-",CHAR_LEFT_ANGLE_BRACKET:"<",CHAR_LEFT_CURLY_BRACE:"{",CHAR_LEFT_SQUARE_BRACKET:"[",CHAR_LINE_FEED:"\n",CHAR_NO_BREAK_SPACE:" ",CHAR_PERCENT:"%",CHAR_PLUS:"+",CHAR_QUESTION_MARK:"?",CHAR_RIGHT_ANGLE_BRACKET:">",CHAR_RIGHT_CURLY_BRACE:"}",CHAR_RIGHT_SQUARE_BRACKET:"]",CHAR_SEMICOLON:";",CHAR_SINGLE_QUOTE:"'",CHAR_SPACE:" ",CHAR_TAB:"\t",CHAR_UNDERSCORE:"_",CHAR_VERTICAL_LINE:"|",CHAR_ZERO_WIDTH_NOBREAK_SPACE:"\ufeff"}},5873:(e,t,r)=>{"use strict";const n=r(6330);const i=r(8750);const s=r(5207);const o=(e="",t="",r=false)=>{let n=[];e=[].concat(e);t=[].concat(t);if(!t.length)return e;if(!e.length){return r?s.flatten(t).map(e=>`{${e}}`):t}for(let i of e){if(Array.isArray(i)){for(let e of i){n.push(o(e,t,r))}}else{for(let e of t){if(r===true&&typeof e==="string")e=`{${e}}`;n.push(Array.isArray(e)?o(i,e,r):i+e)}}}return s.flatten(n)};const a=(e,t={})=>{let r=t.rangeLimit===void 0?1e3:t.rangeLimit;let a=(e,u={})=>{e.queue=[];let c=u;let l=u.queue;while(c.type!=="brace"&&c.type!=="root"&&c.parent){c=c.parent;l=c.queue}if(e.invalid||e.dollar){l.push(o(l.pop(),i(e,t)));return}if(e.type==="brace"&&e.invalid!==true&&e.nodes.length===2){l.push(o(l.pop(),["{}"]));return}if(e.nodes&&e.ranges>0){let a=s.reduce(e.nodes);if(s.exceedsLimit(...a,t.step,r)){throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.")}let u=n(...a,t);if(u.length===0){u=i(e,t)}l.push(o(l.pop(),u));e.nodes=[];return}let h=s.encloseBrace(e);let f=e.queue;let d=e;while(d.type!=="brace"&&d.type!=="root"&&d.parent){d=d.parent;f=d.queue}for(let t=0;t<e.nodes.length;t++){let r=e.nodes[t];if(r.type==="comma"&&e.type==="brace"){if(t===1)f.push("");f.push("");continue}if(r.type==="close"){l.push(o(l.pop(),f,h));continue}if(r.value&&r.type!=="open"){f.push(o(f.pop(),r.value));continue}if(r.nodes){a(r,e)}}return f};return s.flatten(a(e))};e.exports=a},6477:(e,t,r)=>{"use strict";const n=r(8750);const{MAX_LENGTH:i,CHAR_BACKSLASH:s,CHAR_BACKTICK:o,CHAR_COMMA:a,CHAR_DOT:u,CHAR_LEFT_PARENTHESES:c,CHAR_RIGHT_PARENTHESES:l,CHAR_LEFT_CURLY_BRACE:h,CHAR_RIGHT_CURLY_BRACE:f,CHAR_LEFT_SQUARE_BRACKET:d,CHAR_RIGHT_SQUARE_BRACKET:p,CHAR_DOUBLE_QUOTE:m,CHAR_SINGLE_QUOTE:y,CHAR_NO_BREAK_SPACE:g,CHAR_ZERO_WIDTH_NOBREAK_SPACE:v}=r(8774);const b=(e,t={})=>{if(typeof e!=="string"){throw new TypeError("Expected a string")}let r=t||{};let b=typeof r.maxLength==="number"?Math.min(i,r.maxLength):i;if(e.length>b){throw new SyntaxError(`Input length (${e.length}), exceeds max characters (${b})`)}let w={type:"root",input:e,nodes:[]};let A=[w];let E=w;let _=w;let D=0;let S=e.length;let C=0;let x=0;let R;let O={};const F=()=>e[C++];const P=e=>{if(e.type==="text"&&_.type==="dot"){_.type="text"}if(_&&_.type==="text"&&e.type==="text"){_.value+=e.value;return}E.nodes.push(e);e.parent=E;e.prev=_;_=e;return e};P({type:"bos"});while(C<S){E=A[A.length-1];R=F();if(R===v||R===g){continue}if(R===s){P({type:"text",value:(t.keepEscaping?R:"")+F()});continue}if(R===p){P({type:"text",value:"\\"+R});continue}if(R===d){D++;let e=true;let t;while(C<S&&(t=F())){R+=t;if(t===d){D++;continue}if(t===s){R+=F();continue}if(t===p){D--;if(D===0){break}}}P({type:"text",value:R});continue}if(R===c){E=P({type:"paren",nodes:[]});A.push(E);P({type:"text",value:R});continue}if(R===l){if(E.type!=="paren"){P({type:"text",value:R});continue}E=A.pop();P({type:"text",value:R});E=A[A.length-1];continue}if(R===m||R===y||R===o){let e=R;let r;if(t.keepQuotes!==true){R=""}while(C<S&&(r=F())){if(r===s){R+=r+F();continue}if(r===e){if(t.keepQuotes===true)R+=r;break}R+=r}P({type:"text",value:R});continue}if(R===h){x++;let e=_.value&&_.value.slice(-1)==="$"||E.dollar===true;let t={type:"brace",open:true,close:false,dollar:e,depth:x,commas:0,ranges:0,nodes:[]};E=P(t);A.push(E);P({type:"open",value:R});continue}if(R===f){if(E.type!=="brace"){P({type:"text",value:R});continue}let e="close";E=A.pop();E.close=true;P({type:e,value:R});x--;E=A[A.length-1];continue}if(R===a&&x>0){if(E.ranges>0){E.ranges=0;let e=E.nodes.shift();E.nodes=[e,{type:"text",value:n(E)}]}P({type:"comma",value:R});E.commas++;continue}if(R===u&&x>0&&E.commas===0){let e=E.nodes;if(x===0||e.length===0){P({type:"text",value:R});continue}if(_.type==="dot"){E.range=[];_.value+=R;_.type="range";if(E.nodes.length!==3&&E.nodes.length!==5){E.invalid=true;E.ranges=0;_.type="text";continue}E.ranges++;E.args=[];continue}if(_.type==="range"){e.pop();let t=e[e.length-1];t.value+=_.value+R;_=t;E.ranges--;continue}P({type:"dot",value:R});continue}P({type:"text",value:R})}do{E=A.pop();if(E.type!=="root"){E.nodes.forEach(e=>{if(!e.nodes){if(e.type==="open")e.isOpen=true;if(e.type==="close")e.isClose=true;if(!e.nodes)e.type="text";e.invalid=true}});let e=A[A.length-1];let t=e.nodes.indexOf(E);e.nodes.splice(t,1,...E.nodes)}}while(A.length>0);P({type:"eos"});return w};e.exports=b},8750:(e,t,r)=>{"use strict";const n=r(5207);e.exports=((e,t={})=>{let r=(e,i={})=>{let s=t.escapeInvalid&&n.isInvalidBrace(i);let o=e.invalid===true&&t.escapeInvalid===true;let a="";if(e.value){if((s||o)&&n.isOpenOrClose(e)){return"\\"+e.value}return e.value}if(e.value){return e.value}if(e.nodes){for(let t of e.nodes){a+=r(t)}}return a};return r(e)})},5207:(e,t)=>{"use strict";t.isInteger=(e=>{if(typeof e==="number"){return Number.isInteger(e)}if(typeof e==="string"&&e.trim()!==""){return Number.isInteger(Number(e))}return false});t.find=((e,t)=>e.nodes.find(e=>e.type===t));t.exceedsLimit=((e,r,n=1,i)=>{if(i===false)return false;if(!t.isInteger(e)||!t.isInteger(r))return false;return(Number(r)-Number(e))/Number(n)>=i});t.escapeNode=((e,t=0,r)=>{let n=e.nodes[t];if(!n)return;if(r&&n.type===r||n.type==="open"||n.type==="close"){if(n.escaped!==true){n.value="\\"+n.value;n.escaped=true}}});t.encloseBrace=(e=>{if(e.type!=="brace")return false;if(e.commas>>0+e.ranges>>0===0){e.invalid=true;return true}return false});t.isInvalidBrace=(e=>{if(e.type!=="brace")return false;if(e.invalid===true||e.dollar)return true;if(e.commas>>0+e.ranges>>0===0){e.invalid=true;return true}if(e.open!==true||e.close!==true){e.invalid=true;return true}return false});t.isOpenOrClose=(e=>{if(e.type==="open"||e.type==="close"){return true}return e.open===true||e.close===true});t.reduce=(e=>e.reduce((e,t)=>{if(t.type==="text")e.push(t.value);if(t.type==="range")t.type="text";return e},[]));t.flatten=((...e)=>{const t=[];const r=e=>{for(let n=0;n<e.length;n++){let i=e[n];Array.isArray(i)?r(i,t):i!==void 0&&t.push(i)}return t};r(e);return t})},6066:(e,t,r)=>{"use strict";const n=r(5622);const{watch:i}=r(5747);const{readFile:s}=r(5747).promises;const{isIP:o}=r(1631);const a=process.platform==="win32";const u=a?n.join(process.env.SystemDrive,"Windows\\System32\\drivers\\etc\\hosts"):"/etc/hosts";const c=/^(?:(?:[a-zA-Z\d]|[a-zA-Z\d][a-zA-Z\d-]*[a-zA-Z\d])\.)*(?:[A-Za-z\d]|[A-Za-z\d][A-Za-z\d-]*[A-Za-z\d])$/;const l=e=>c.test(e);const h={encoding:"utf8"};const f=/\s+/g;class HostsResolver{constructor({watching:e,customHostsPath:t=u}){this._hostsPath=t;this._error=null;this._watcher=null;this._watching=e;this._hosts={};this._init()}_init(){if(typeof this._hostsPath!=="string"){return}this._promise=(async()=>{await this._update();this._promise=null;if(this._error){return}if(this._watching){this._watcher=i(this._hostsPath,{persistent:false},e=>{if(e==="change"){this._update()}else{this._watcher.close()}});this._watcher.once("error",e=>{this._error=e;this._hosts={}});this._watcher.once("close",()=>{this._init()})}})()}async _update(){try{let e=await s(this._hostsPath,h);e=e.split("\n");this._hosts={};for(let t of e){t=t.replace(f," ").trim();const e=t.split(" ");const r=o(e[0]);if(!r){continue}const n=e.shift();for(const t of e){if(!l(t)){break}if(this._hosts[t]){let e=false;for(const n of this._hosts[t]){if(n.family===r){e=true;break}}if(e){continue}}else{this._hosts[t]=[];this._hosts[t].expires=Infinity}this._hosts[t].push({address:n,family:r,expires:Infinity,ttl:Infinity})}}}catch(e){this._hosts={};this._error=e}}async get(e){if(this._promise){await this._promise}if(this._error){throw this._error}return this._hosts[e]}}const d={};const p=({customHostsPath:e,watching:t})=>{if(e!==undefined&&typeof e!=="string"){e=false}t=Boolean(t);const r=`${e}:${t}`;let n=d[r];if(n){return n}n=new HostsResolver({customHostsPath:e,watching:t});d[r]=n;return n};HostsResolver.getResolver=p;e.exports=HostsResolver},2286:(e,t,r)=>{"use strict";const{V4MAPPED:n,ADDRCONFIG:i,promises:{Resolver:s},lookup:o}=r(1819);const{promisify:a}=r(1669);const u=r(2087);const{getResolver:c}=r(6066);const l=Symbol("cacheableLookupCreateConnection");const h=Symbol("cacheableLookupInstance");const f=e=>{if(!(e&&typeof e.createConnection==="function")){throw new Error("Expected an Agent instance as the first argument")}};const d=e=>{for(const t of e){t.address=`::ffff:${t.address}`;t.family=6}};const p=()=>{let e=false;let t=false;for(const r of Object.values(u.networkInterfaces())){for(const n of r){if(n.internal){continue}if(n.family==="IPv6"){t=true}else{e=true}if(e&&t){return{has4:e,has6:t}}}}return{has4:e,has6:t}};const m={ttl:true};class CacheableLookup{constructor({customHostsPath:e,watchingHostsFile:t=false,cache:r=new Map,maxTtl:n=Infinity,resolver:i=new s,fallbackTtl:u=1,errorTtl:l=.15}={}){this.maxTtl=n;this.fallbackTtl=u;this.errorTtl=l;this._cache=r;this._resolver=i;this._lookup=a(o);if(this._resolver instanceof s){this._resolve4=this._resolver.resolve4.bind(this._resolver);this._resolve6=this._resolver.resolve6.bind(this._resolver)}else{this._resolve4=a(this._resolver.resolve4.bind(this._resolver));this._resolve6=a(this._resolver.resolve6.bind(this._resolver))}this._iface=p();this._hostsResolver=c({customHostsPath:e,watching:t});this._pending={};this._nextRemovalTime=false;this.lookup=this.lookup.bind(this);this.lookupAsync=this.lookupAsync.bind(this)}set servers(e){this.updateInterfaceInfo();this._resolver.setServers(e)}get servers(){return this._resolver.getServers()}lookup(e,t,r){if(typeof t==="function"){r=t;t={}}else if(typeof t==="number"){t={family:t}}if(!r){throw new Error("Callback must be a function.")}this.lookupAsync(e,t).then(e=>{if(t.all){r(null,e)}else{r(null,e.address,e.family,e.expires,e.ttl)}},r)}async lookupAsync(e,t={}){if(typeof t==="number"){t={family:t}}let r=await this.query(e);if(t.family===6){const e=r.filter(e=>e.family===6);if(e.length===0&&t.hints&n){d(r)}else{r=e}}else if(t.family===4){r=r.filter(e=>e.family===4)}if(t.hints&i){const{_iface:e}=this;r=r.filter(t=>t.family===6?e.has6:e.has4)}if(r.length===0){const t=new Error(`ENOTFOUND ${e}`);t.code="ENOTFOUND";t.hostname=e;throw t}if(t.all){return r}if(r.length===1){return r[0]}return this._getEntry(r,e)}async query(e){let t=await this._hostsResolver.get(e)||await this._cache.get(e);if(!t){const r=this._pending[e];if(r){t=await r}else{const r=this.queryAndCache(e);this._pending[e]=r;t=await r}}t=t.map(e=>{return{...e}});return t}async queryAndCache(e){const[t,r]=await Promise.all([this._resolve4(e,m).catch(()=>[]),this._resolve6(e,m).catch(()=>[])]);let n=0;if(t){for(const e of t){e.family=4;e.expires=Date.now()+e.ttl*1e3;n=Math.max(n,e.ttl)}}if(r){for(const e of r){e.family=6;e.expires=Date.now()+e.ttl*1e3;n=Math.max(n,e.ttl)}}let i=[...t||[],...r||[]];if(i.length===0){try{i=await this._lookup(e,{all:true});for(const e of i){e.ttl=this.fallbackTtl;e.expires=Date.now()+e.ttl*1e3}n=this.fallbackTtl*1e3}catch(t){delete this._pending[e];if(t.code==="ENOTFOUND"){n=this.errorTtl*1e3;i.expires=Date.now()+n;await this._cache.set(e,i,n);this._tick(n)}throw t}}else{n=Math.min(this.maxTtl,n)*1e3}if(this.maxTtl>0&&n>0){i.expires=Date.now()+n;await this._cache.set(e,i,n);this._tick(n)}delete this._pending[e];return i}_getEntry(e,t){return e[0]}tick(){}_tick(e){if(!(this._cache instanceof Map)||e===undefined){return}const t=this._nextRemovalTime;if(!t||e<t){clearTimeout(this._removalTimeout);this._nextRemovalTime=e;this._removalTimeout=setTimeout(()=>{this._nextRemovalTime=false;let e=Infinity;const t=Date.now();for(const[r,{expires:n}]of this._cache){if(t>=n){this._cache.delete(r)}else if(n<e){e=n}}if(e!==Infinity){this._tick(e-t)}},e);if(this._removalTimeout.unref){this._removalTimeout.unref()}}}install(e){f(e);if(l in e){throw new Error("CacheableLookup has been already installed")}e[l]=e.createConnection;e[h]=this;e.createConnection=((t,r)=>{if(!("lookup"in t)){t.lookup=this.lookup}return e[l](t,r)})}uninstall(e){f(e);if(e[l]){if(e[h]!==this){throw new Error("The agent is not owned by this CacheableLookup instance")}e.createConnection=e[l];delete e[l];delete e[h]}}updateInterfaceInfo(){this._iface=p();this._cache.clear()}clear(e){if(e){this._cache.delete(e);return}this._cache.clear()}}e.exports=CacheableLookup;e.exports.default=CacheableLookup},8116:(e,t,r)=>{"use strict";const n=r(8614);const i=r(8835);const s=r(7952);const o=r(1766);const a=r(1002);const u=r(9004);const c=r(9662);const l=r(1312);const h=r(9971);class CacheableRequest{constructor(e,t){if(typeof e!=="function"){throw new TypeError("Parameter `request` must be a function")}this.cache=new h({uri:typeof t==="string"&&t,store:typeof t!=="string"&&t,namespace:"cacheable-request"});return this.createCacheableRequest(e)}createCacheableRequest(e){return(t,r)=>{let h;if(typeof t==="string"){h=normalizeUrlObject(i.parse(t));t={}}else if(t instanceof i.URL){h=normalizeUrlObject(i.parse(t.toString()));t={}}else{const[e,...r]=(t.path||"").split("?");const n=r.length>0?`?${r.join("?")}`:"";h=normalizeUrlObject({...t,pathname:e,search:n})}t={headers:{},method:"GET",cache:true,strictTtl:false,automaticFailover:false,...t,...urlObjectToRequestOptions(h)};t.headers=c(t.headers);const f=new n;const d=s(i.format(h),{stripWWW:false,removeTrailingSlash:false,stripAuthentication:false});const p=`${t.method}:${d}`;let m=false;let y=false;const g=t=>{y=true;let n=false;let i;const s=new Promise(e=>{i=(()=>{if(!n){n=true;e()}})});const c=e=>{if(m&&!t.forceRefresh){e.status=e.statusCode;const r=a.fromObject(m.cachePolicy).revalidatedPolicy(t,e);if(!r.modified){const t=r.policy.responseHeaders();e=new u(m.statusCode,t,m.body,m.url);e.cachePolicy=r.policy;e.fromCache=true}}if(!e.fromCache){e.cachePolicy=new a(t,e,t);e.fromCache=false}let i;if(t.cache&&e.cachePolicy.storable()){i=l(e);(async()=>{try{const r=o.buffer(e);await Promise.race([s,new Promise(t=>e.once("end",t))]);if(n){return}const i=await r;const a={cachePolicy:e.cachePolicy.toObject(),url:e.url,statusCode:e.fromCache?m.statusCode:e.statusCode,body:i};let u=t.strictTtl?e.cachePolicy.timeToLive():undefined;if(t.maxTtl){u=u?Math.min(u,t.maxTtl):t.maxTtl}await this.cache.set(p,a,u)}catch(e){f.emit("error",new CacheableRequest.CacheError(e))}})()}else if(t.cache&&m){(async()=>{try{await this.cache.delete(p)}catch(e){f.emit("error",new CacheableRequest.CacheError(e))}})()}f.emit("response",i||e);if(typeof r==="function"){r(i||e)}};try{const r=e(t,c);r.once("error",i);r.once("abort",i);f.emit("request",r)}catch(e){f.emit("error",new CacheableRequest.RequestError(e))}};(async()=>{const e=async e=>{await Promise.resolve();const t=e.cache?await this.cache.get(p):undefined;if(typeof t==="undefined"){return g(e)}const n=a.fromObject(t.cachePolicy);if(n.satisfiesWithoutRevalidation(e)&&!e.forceRefresh){const e=n.responseHeaders();const i=new u(t.statusCode,e,t.body,t.url);i.cachePolicy=n;i.fromCache=true;f.emit("response",i);if(typeof r==="function"){r(i)}}else{m=t;e.headers=n.revalidationHeaders(e);g(e)}};const n=e=>f.emit("error",new CacheableRequest.CacheError(e));this.cache.once("error",n);f.on("response",()=>this.cache.removeListener("error",n));try{await e(t)}catch(e){if(t.automaticFailover&&!y){g(t)}f.emit("error",new CacheableRequest.CacheError(e))}})();return f}}}function urlObjectToRequestOptions(e){const t={...e};t.path=`${e.pathname||"/"}${e.search||""}`;delete t.pathname;delete t.search;return t}function normalizeUrlObject(e){return{protocol:e.protocol,auth:e.auth,hostname:e.hostname||e.host||"localhost",port:e.port,pathname:e.pathname,search:e.search}}CacheableRequest.RequestError=class extends Error{constructor(e){super(e.message);this.name="RequestError";Object.assign(this,e)}};CacheableRequest.CacheError=class extends Error{constructor(e){super(e.message);this.name="CacheError";Object.assign(this,e)}};e.exports=CacheableRequest},8707:(e,t,r)=>{"use strict";const n=r(8691);const i=r(6734);const s=r(4955).stdout;const o=r(2138);const a=process.platform==="win32"&&!(process.env.TERM||"").toLowerCase().startsWith("xterm");const u=["ansi","ansi","ansi256","ansi16m"];const c=new Set(["gray"]);const l=Object.create(null);function applyOptions(e,t){t=t||{};const r=s?s.level:0;e.level=t.level===undefined?r:t.level;e.enabled="enabled"in t?t.enabled:e.level>0}function Chalk(e){if(!this||!(this instanceof Chalk)||this.template){const t={};applyOptions(t,e);t.template=function(){const e=[].slice.call(arguments);return chalkTag.apply(null,[t.template].concat(e))};Object.setPrototypeOf(t,Chalk.prototype);Object.setPrototypeOf(t.template,t);t.template.constructor=Chalk;return t.template}applyOptions(this,e)}if(a){i.blue.open=""}for(const e of Object.keys(i)){i[e].closeRe=new RegExp(n(i[e].close),"g");l[e]={get(){const t=i[e];return build.call(this,this._styles?this._styles.concat(t):[t],this._empty,e)}}}l.visible={get(){return build.call(this,this._styles||[],true,"visible")}};i.color.closeRe=new RegExp(n(i.color.close),"g");for(const e of Object.keys(i.color.ansi)){if(c.has(e)){continue}l[e]={get(){const t=this.level;return function(){const r=i.color[u[t]][e].apply(null,arguments);const n={open:r,close:i.color.close,closeRe:i.color.closeRe};return build.call(this,this._styles?this._styles.concat(n):[n],this._empty,e)}}}}i.bgColor.closeRe=new RegExp(n(i.bgColor.close),"g");for(const e of Object.keys(i.bgColor.ansi)){if(c.has(e)){continue}const t="bg"+e[0].toUpperCase()+e.slice(1);l[t]={get(){const t=this.level;return function(){const r=i.bgColor[u[t]][e].apply(null,arguments);const n={open:r,close:i.bgColor.close,closeRe:i.bgColor.closeRe};return build.call(this,this._styles?this._styles.concat(n):[n],this._empty,e)}}}}const h=Object.defineProperties(()=>{},l);function build(e,t,r){const n=function(){return applyStyle.apply(n,arguments)};n._styles=e;n._empty=t;const i=this;Object.defineProperty(n,"level",{enumerable:true,get(){return i.level},set(e){i.level=e}});Object.defineProperty(n,"enabled",{enumerable:true,get(){return i.enabled},set(e){i.enabled=e}});n.hasGrey=this.hasGrey||r==="gray"||r==="grey";n.__proto__=h;return n}function applyStyle(){const e=arguments;const t=e.length;let r=String(arguments[0]);if(t===0){return""}if(t>1){for(let n=1;n<t;n++){r+=" "+e[n]}}if(!this.enabled||this.level<=0||!r){return this._empty?"":r}const n=i.dim.open;if(a&&this.hasGrey){i.dim.open=""}for(const e of this._styles.slice().reverse()){r=e.open+r.replace(e.closeRe,e.open)+e.close;r=r.replace(/\r?\n/g,`${e.close}$&${e.open}`)}i.dim.open=n;return r}function chalkTag(e,t){if(!Array.isArray(t)){return[].slice.call(arguments,1).join(" ")}const r=[].slice.call(arguments,2);const n=[t.raw[0]];for(let e=1;e<t.length;e++){n.push(String(r[e-1]).replace(/[{}\\]/g,"\\$&"));n.push(String(t.raw[e]))}return o(e,n.join(""))}Object.defineProperties(Chalk.prototype,l);e.exports=Chalk();e.exports.supportsColor=s;e.exports.default=e.exports},6734:(e,t,r)=>{"use strict";e=r.nmd(e);const n=r(5121);const i=(e,t)=>(function(){const r=e.apply(n,arguments);return`[${r+t}m`});const s=(e,t)=>(function(){const r=e.apply(n,arguments);return`[${38+t};5;${r}m`});const o=(e,t)=>(function(){const r=e.apply(n,arguments);return`[${38+t};2;${r[0]};${r[1]};${r[2]}m`});function assembleStyles(){const e=new Map;const t={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};t.color.grey=t.color.gray;for(const r of Object.keys(t)){const n=t[r];for(const r of Object.keys(n)){const i=n[r];t[r]={open:`[${i[0]}m`,close:`[${i[1]}m`};n[r]=t[r];e.set(i[0],i[1])}Object.defineProperty(t,r,{value:n,enumerable:false});Object.defineProperty(t,"codes",{value:e,enumerable:false})}const r=e=>e;const a=(e,t,r)=>[e,t,r];t.color.close="";t.bgColor.close="";t.color.ansi={ansi:i(r,0)};t.color.ansi256={ansi256:s(r,0)};t.color.ansi16m={rgb:o(a,0)};t.bgColor.ansi={ansi:i(r,10)};t.bgColor.ansi256={ansi256:s(r,10)};t.bgColor.ansi16m={rgb:o(a,10)};for(let e of Object.keys(n)){if(typeof n[e]!=="object"){continue}const r=n[e];if(e==="ansi16"){e="ansi"}if("ansi16"in r){t.color.ansi[e]=i(r.ansi16,0);t.bgColor.ansi[e]=i(r.ansi16,10)}if("ansi256"in r){t.color.ansi256[e]=s(r.ansi256,0);t.bgColor.ansi256[e]=s(r.ansi256,10)}if("rgb"in r){t.color.ansi16m[e]=o(r.rgb,0);t.bgColor.ansi16m[e]=o(r.rgb,10)}}return t}Object.defineProperty(e,"exports",{enumerable:true,get:assembleStyles})},8159:(e,t,r)=>{var n=r(8510);var i={};for(var s in n){if(n.hasOwnProperty(s)){i[n[s]]=s}}var o=e.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(var a in o){if(o.hasOwnProperty(a)){if(!("channels"in o[a])){throw new Error("missing channels property: "+a)}if(!("labels"in o[a])){throw new Error("missing channel labels property: "+a)}if(o[a].labels.length!==o[a].channels){throw new Error("channel and label counts mismatch: "+a)}var u=o[a].channels;var c=o[a].labels;delete o[a].channels;delete o[a].labels;Object.defineProperty(o[a],"channels",{value:u});Object.defineProperty(o[a],"labels",{value:c})}}o.rgb.hsl=function(e){var t=e[0]/255;var r=e[1]/255;var n=e[2]/255;var i=Math.min(t,r,n);var s=Math.max(t,r,n);var o=s-i;var a;var u;var c;if(s===i){a=0}else if(t===s){a=(r-n)/o}else if(r===s){a=2+(n-t)/o}else if(n===s){a=4+(t-r)/o}a=Math.min(a*60,360);if(a<0){a+=360}c=(i+s)/2;if(s===i){u=0}else if(c<=.5){u=o/(s+i)}else{u=o/(2-s-i)}return[a,u*100,c*100]};o.rgb.hsv=function(e){var t=e[0];var r=e[1];var n=e[2];var i=Math.min(t,r,n);var s=Math.max(t,r,n);var o=s-i;var a;var u;var c;if(s===0){u=0}else{u=o/s*1e3/10}if(s===i){a=0}else if(t===s){a=(r-n)/o}else if(r===s){a=2+(n-t)/o}else if(n===s){a=4+(t-r)/o}a=Math.min(a*60,360);if(a<0){a+=360}c=s/255*1e3/10;return[a,u,c]};o.rgb.hwb=function(e){var t=e[0];var r=e[1];var n=e[2];var i=o.rgb.hsl(e)[0];var s=1/255*Math.min(t,Math.min(r,n));n=1-1/255*Math.max(t,Math.max(r,n));return[i,s*100,n*100]};o.rgb.cmyk=function(e){var t=e[0]/255;var r=e[1]/255;var n=e[2]/255;var i;var s;var o;var a;a=Math.min(1-t,1-r,1-n);i=(1-t-a)/(1-a)||0;s=(1-r-a)/(1-a)||0;o=(1-n-a)/(1-a)||0;return[i*100,s*100,o*100,a*100]};function comparativeDistance(e,t){return Math.pow(e[0]-t[0],2)+Math.pow(e[1]-t[1],2)+Math.pow(e[2]-t[2],2)}o.rgb.keyword=function(e){var t=i[e];if(t){return t}var r=Infinity;var s;for(var o in n){if(n.hasOwnProperty(o)){var a=n[o];var u=comparativeDistance(e,a);if(u<r){r=u;s=o}}}return s};o.keyword.rgb=function(e){return n[e]};o.rgb.xyz=function(e){var t=e[0]/255;var r=e[1]/255;var n=e[2]/255;t=t>.04045?Math.pow((t+.055)/1.055,2.4):t/12.92;r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92;n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92;var i=t*.4124+r*.3576+n*.1805;var s=t*.2126+r*.7152+n*.0722;var o=t*.0193+r*.1192+n*.9505;return[i*100,s*100,o*100]};o.rgb.lab=function(e){var t=o.rgb.xyz(e);var r=t[0];var n=t[1];var i=t[2];var s;var a;var u;r/=95.047;n/=100;i/=108.883;r=r>.008856?Math.pow(r,1/3):7.787*r+16/116;n=n>.008856?Math.pow(n,1/3):7.787*n+16/116;i=i>.008856?Math.pow(i,1/3):7.787*i+16/116;s=116*n-16;a=500*(r-n);u=200*(n-i);return[s,a,u]};o.hsl.rgb=function(e){var t=e[0]/360;var r=e[1]/100;var n=e[2]/100;var i;var s;var o;var a;var u;if(r===0){u=n*255;return[u,u,u]}if(n<.5){s=n*(1+r)}else{s=n+r-n*r}i=2*n-s;a=[0,0,0];for(var c=0;c<3;c++){o=t+1/3*-(c-1);if(o<0){o++}if(o>1){o--}if(6*o<1){u=i+(s-i)*6*o}else if(2*o<1){u=s}else if(3*o<2){u=i+(s-i)*(2/3-o)*6}else{u=i}a[c]=u*255}return a};o.hsl.hsv=function(e){var t=e[0];var r=e[1]/100;var n=e[2]/100;var i=r;var s=Math.max(n,.01);var o;var a;n*=2;r*=n<=1?n:2-n;i*=s<=1?s:2-s;a=(n+r)/2;o=n===0?2*i/(s+i):2*r/(n+r);return[t,o*100,a*100]};o.hsv.rgb=function(e){var t=e[0]/60;var r=e[1]/100;var n=e[2]/100;var i=Math.floor(t)%6;var s=t-Math.floor(t);var o=255*n*(1-r);var a=255*n*(1-r*s);var u=255*n*(1-r*(1-s));n*=255;switch(i){case 0:return[n,u,o];case 1:return[a,n,o];case 2:return[o,n,u];case 3:return[o,a,n];case 4:return[u,o,n];case 5:return[n,o,a]}};o.hsv.hsl=function(e){var t=e[0];var r=e[1]/100;var n=e[2]/100;var i=Math.max(n,.01);var s;var o;var a;a=(2-r)*n;s=(2-r)*i;o=r*i;o/=s<=1?s:2-s;o=o||0;a/=2;return[t,o*100,a*100]};o.hwb.rgb=function(e){var t=e[0]/360;var r=e[1]/100;var n=e[2]/100;var i=r+n;var s;var o;var a;var u;if(i>1){r/=i;n/=i}s=Math.floor(6*t);o=1-n;a=6*t-s;if((s&1)!==0){a=1-a}u=r+a*(o-r);var c;var l;var h;switch(s){default:case 6:case 0:c=o;l=u;h=r;break;case 1:c=u;l=o;h=r;break;case 2:c=r;l=o;h=u;break;case 3:c=r;l=u;h=o;break;case 4:c=u;l=r;h=o;break;case 5:c=o;l=r;h=u;break}return[c*255,l*255,h*255]};o.cmyk.rgb=function(e){var t=e[0]/100;var r=e[1]/100;var n=e[2]/100;var i=e[3]/100;var s;var o;var a;s=1-Math.min(1,t*(1-i)+i);o=1-Math.min(1,r*(1-i)+i);a=1-Math.min(1,n*(1-i)+i);return[s*255,o*255,a*255]};o.xyz.rgb=function(e){var t=e[0]/100;var r=e[1]/100;var n=e[2]/100;var i;var s;var o;i=t*3.2406+r*-1.5372+n*-.4986;s=t*-.9689+r*1.8758+n*.0415;o=t*.0557+r*-.204+n*1.057;i=i>.0031308?1.055*Math.pow(i,1/2.4)-.055:i*12.92;s=s>.0031308?1.055*Math.pow(s,1/2.4)-.055:s*12.92;o=o>.0031308?1.055*Math.pow(o,1/2.4)-.055:o*12.92;i=Math.min(Math.max(0,i),1);s=Math.min(Math.max(0,s),1);o=Math.min(Math.max(0,o),1);return[i*255,s*255,o*255]};o.xyz.lab=function(e){var t=e[0];var r=e[1];var n=e[2];var i;var s;var o;t/=95.047;r/=100;n/=108.883;t=t>.008856?Math.pow(t,1/3):7.787*t+16/116;r=r>.008856?Math.pow(r,1/3):7.787*r+16/116;n=n>.008856?Math.pow(n,1/3):7.787*n+16/116;i=116*r-16;s=500*(t-r);o=200*(r-n);return[i,s,o]};o.lab.xyz=function(e){var t=e[0];var r=e[1];var n=e[2];var i;var s;var o;s=(t+16)/116;i=r/500+s;o=s-n/200;var a=Math.pow(s,3);var u=Math.pow(i,3);var c=Math.pow(o,3);s=a>.008856?a:(s-16/116)/7.787;i=u>.008856?u:(i-16/116)/7.787;o=c>.008856?c:(o-16/116)/7.787;i*=95.047;s*=100;o*=108.883;return[i,s,o]};o.lab.lch=function(e){var t=e[0];var r=e[1];var n=e[2];var i;var s;var o;i=Math.atan2(n,r);s=i*360/2/Math.PI;if(s<0){s+=360}o=Math.sqrt(r*r+n*n);return[t,o,s]};o.lch.lab=function(e){var t=e[0];var r=e[1];var n=e[2];var i;var s;var o;o=n/360*2*Math.PI;i=r*Math.cos(o);s=r*Math.sin(o);return[t,i,s]};o.rgb.ansi16=function(e){var t=e[0];var r=e[1];var n=e[2];var i=1 in arguments?arguments[1]:o.rgb.hsv(e)[2];i=Math.round(i/50);if(i===0){return 30}var s=30+(Math.round(n/255)<<2|Math.round(r/255)<<1|Math.round(t/255));if(i===2){s+=60}return s};o.hsv.ansi16=function(e){return o.rgb.ansi16(o.hsv.rgb(e),e[2])};o.rgb.ansi256=function(e){var t=e[0];var r=e[1];var n=e[2];if(t===r&&r===n){if(t<8){return 16}if(t>248){return 231}return Math.round((t-8)/247*24)+232}var i=16+36*Math.round(t/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5);return i};o.ansi16.rgb=function(e){var t=e%10;if(t===0||t===7){if(e>50){t+=3.5}t=t/10.5*255;return[t,t,t]}var r=(~~(e>50)+1)*.5;var n=(t&1)*r*255;var i=(t>>1&1)*r*255;var s=(t>>2&1)*r*255;return[n,i,s]};o.ansi256.rgb=function(e){if(e>=232){var t=(e-232)*10+8;return[t,t,t]}e-=16;var r;var n=Math.floor(e/36)/5*255;var i=Math.floor((r=e%36)/6)/5*255;var s=r%6/5*255;return[n,i,s]};o.rgb.hex=function(e){var t=((Math.round(e[0])&255)<<16)+((Math.round(e[1])&255)<<8)+(Math.round(e[2])&255);var r=t.toString(16).toUpperCase();return"000000".substring(r.length)+r};o.hex.rgb=function(e){var t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t){return[0,0,0]}var r=t[0];if(t[0].length===3){r=r.split("").map(function(e){return e+e}).join("")}var n=parseInt(r,16);var i=n>>16&255;var s=n>>8&255;var o=n&255;return[i,s,o]};o.rgb.hcg=function(e){var t=e[0]/255;var r=e[1]/255;var n=e[2]/255;var i=Math.max(Math.max(t,r),n);var s=Math.min(Math.min(t,r),n);var o=i-s;var a;var u;if(o<1){a=s/(1-o)}else{a=0}if(o<=0){u=0}else if(i===t){u=(r-n)/o%6}else if(i===r){u=2+(n-t)/o}else{u=4+(t-r)/o+4}u/=6;u%=1;return[u*360,o*100,a*100]};o.hsl.hcg=function(e){var t=e[1]/100;var r=e[2]/100;var n=1;var i=0;if(r<.5){n=2*t*r}else{n=2*t*(1-r)}if(n<1){i=(r-.5*n)/(1-n)}return[e[0],n*100,i*100]};o.hsv.hcg=function(e){var t=e[1]/100;var r=e[2]/100;var n=t*r;var i=0;if(n<1){i=(r-n)/(1-n)}return[e[0],n*100,i*100]};o.hcg.rgb=function(e){var t=e[0]/360;var r=e[1]/100;var n=e[2]/100;if(r===0){return[n*255,n*255,n*255]}var i=[0,0,0];var s=t%1*6;var o=s%1;var a=1-o;var u=0;switch(Math.floor(s)){case 0:i[0]=1;i[1]=o;i[2]=0;break;case 1:i[0]=a;i[1]=1;i[2]=0;break;case 2:i[0]=0;i[1]=1;i[2]=o;break;case 3:i[0]=0;i[1]=a;i[2]=1;break;case 4:i[0]=o;i[1]=0;i[2]=1;break;default:i[0]=1;i[1]=0;i[2]=a}u=(1-r)*n;return[(r*i[0]+u)*255,(r*i[1]+u)*255,(r*i[2]+u)*255]};o.hcg.hsv=function(e){var t=e[1]/100;var r=e[2]/100;var n=t+r*(1-t);var i=0;if(n>0){i=t/n}return[e[0],i*100,n*100]};o.hcg.hsl=function(e){var t=e[1]/100;var r=e[2]/100;var n=r*(1-t)+.5*t;var i=0;if(n>0&&n<.5){i=t/(2*n)}else if(n>=.5&&n<1){i=t/(2*(1-n))}return[e[0],i*100,n*100]};o.hcg.hwb=function(e){var t=e[1]/100;var r=e[2]/100;var n=t+r*(1-t);return[e[0],(n-t)*100,(1-n)*100]};o.hwb.hcg=function(e){var t=e[1]/100;var r=e[2]/100;var n=1-r;var i=n-t;var s=0;if(i<1){s=(n-i)/(1-i)}return[e[0],i*100,s*100]};o.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]};o.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]};o.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]};o.gray.hsl=o.gray.hsv=function(e){return[0,0,e[0]]};o.gray.hwb=function(e){return[0,100,e[0]]};o.gray.cmyk=function(e){return[0,0,0,e[0]]};o.gray.lab=function(e){return[e[0],0,0]};o.gray.hex=function(e){var t=Math.round(e[0]/100*255)&255;var r=(t<<16)+(t<<8)+t;var n=r.toString(16).toUpperCase();return"000000".substring(n.length)+n};o.rgb.gray=function(e){var t=(e[0]+e[1]+e[2])/3;return[t/255*100]}},5121:(e,t,r)=>{var n=r(8159);var i=r(4663);var s={};var o=Object.keys(n);function wrapRaw(e){var t=function(t){if(t===undefined||t===null){return t}if(arguments.length>1){t=Array.prototype.slice.call(arguments)}return e(t)};if("conversion"in e){t.conversion=e.conversion}return t}function wrapRounded(e){var t=function(t){if(t===undefined||t===null){return t}if(arguments.length>1){t=Array.prototype.slice.call(arguments)}var r=e(t);if(typeof r==="object"){for(var n=r.length,i=0;i<n;i++){r[i]=Math.round(r[i])}}return r};if("conversion"in e){t.conversion=e.conversion}return t}o.forEach(function(e){s[e]={};Object.defineProperty(s[e],"channels",{value:n[e].channels});Object.defineProperty(s[e],"labels",{value:n[e].labels});var t=i(e);var r=Object.keys(t);r.forEach(function(r){var n=t[r];s[e][r]=wrapRounded(n);s[e][r].raw=wrapRaw(n)})});e.exports=s},4663:(e,t,r)=>{var n=r(8159);var i=Object.keys(n);function buildGraph(){var e={};for(var t=i.length,r=0;r<t;r++){e[i[r]]={distance:-1,parent:null}}return e}function deriveBFS(e){var t=buildGraph();var r=[e];t[e].distance=0;while(r.length){var i=r.pop();var s=Object.keys(n[i]);for(var o=s.length,a=0;a<o;a++){var u=s[a];var c=t[u];if(c.distance===-1){c.distance=t[i].distance+1;c.parent=i;r.unshift(u)}}}return t}function link(e,t){return function(r){return t(e(r))}}function wrapConversion(e,t){var r=[t[e].parent,e];var i=n[t[e].parent][e];var s=t[e].parent;while(t[s].parent){r.unshift(t[s].parent);i=link(n[t[s].parent][s],i);s=t[s].parent}i.conversion=r;return i}e.exports=function(e){var t=deriveBFS(e);var r={};var n=Object.keys(t);for(var i=n.length,s=0;s<i;s++){var o=n[s];var a=t[o];if(a.parent===null){continue}r[o]=wrapConversion(o,t)}return r}},1538:e=>{"use strict";e.exports=((e,t)=>{t=t||process.argv;const r=e.startsWith("-")?"":e.length===1?"-":"--";const n=t.indexOf(r+e);const i=t.indexOf("--");return n!==-1&&(i===-1?true:n<i)})},4955:(e,t,r)=>{"use strict";const n=r(2087);const i=r(1538);const s=process.env;let o;if(i("no-color")||i("no-colors")||i("color=false")){o=false}else if(i("color")||i("colors")||i("color=true")||i("color=always")){o=true}if("FORCE_COLOR"in s){o=s.FORCE_COLOR.length===0||parseInt(s.FORCE_COLOR,10)!==0}function translateLevel(e){if(e===0){return false}return{level:e,hasBasic:true,has256:e>=2,has16m:e>=3}}function supportsColor(e){if(o===false){return 0}if(i("color=16m")||i("color=full")||i("color=truecolor")){return 3}if(i("color=256")){return 2}if(e&&!e.isTTY&&o!==true){return 0}const t=o?1:0;if(process.platform==="win32"){const e=n.release().split(".");if(Number(process.versions.node.split(".")[0])>=8&&Number(e[0])>=10&&Number(e[2])>=10586){return Number(e[2])>=14931?3:2}return 1}if("CI"in s){if(["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(e=>e in s)||s.CI_NAME==="codeship"){return 1}return t}if("TEAMCITY_VERSION"in s){return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(s.TEAMCITY_VERSION)?1:0}if(s.COLORTERM==="truecolor"){return 3}if("TERM_PROGRAM"in s){const e=parseInt((s.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(s.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}if(/-256(color)?$/i.test(s.TERM)){return 2}if(/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(s.TERM)){return 1}if("COLORTERM"in s){return 1}if(s.TERM==="dumb"){return t}return t}function getSupportLevel(e){const t=supportsColor(e);return translateLevel(t)}e.exports={supportsColor:getSupportLevel,stdout:getSupportLevel(process.stdout),stderr:getSupportLevel(process.stderr)}},2138:e=>{"use strict";const t=/(?:\\(u[a-f\d]{4}|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi;const r=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g;const n=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/;const i=/\\(u[a-f\d]{4}|x[a-f\d]{2}|.)|([^\\])/gi;const s=new Map([["n","\n"],["r","\r"],["t","\t"],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e",""],["a",""]]);function unescape(e){if(e[0]==="u"&&e.length===5||e[0]==="x"&&e.length===3){return String.fromCharCode(parseInt(e.slice(1),16))}return s.get(e)||e}function parseArguments(e,t){const r=[];const s=t.trim().split(/\s*,\s*/g);let o;for(const t of s){if(!isNaN(t)){r.push(Number(t))}else if(o=t.match(n)){r.push(o[2].replace(i,(e,t,r)=>t?unescape(t):r))}else{throw new Error(`Invalid Chalk template style argument: ${t} (in style '${e}')`)}}return r}function parseStyle(e){r.lastIndex=0;const t=[];let n;while((n=r.exec(e))!==null){const e=n[1];if(n[2]){const r=parseArguments(e,n[2]);t.push([e].concat(r))}else{t.push([e])}}return t}function buildStyle(e,t){const r={};for(const e of t){for(const t of e.styles){r[t[0]]=e.inverse?null:t.slice(1)}}let n=e;for(const e of Object.keys(r)){if(Array.isArray(r[e])){if(!(e in n)){throw new Error(`Unknown Chalk style: ${e}`)}if(r[e].length>0){n=n[e].apply(n,r[e])}else{n=n[e]}}}return n}e.exports=((e,r)=>{const n=[];const i=[];let s=[];r.replace(t,(t,r,o,a,u,c)=>{if(r){s.push(unescape(r))}else if(a){const t=s.join("");s=[];i.push(n.length===0?t:buildStyle(e,n)(t));n.push({inverse:o,styles:parseStyle(a)})}else if(u){if(n.length===0){throw new Error("Found extraneous } in Chalk template literal")}i.push(buildStyle(e,n)(s.join("")));s=[];n.pop()}else{s.push(c)}});i.push(s.join(""));if(n.length>0){const e=`Chalk template literal is missing ${n.length} closing bracket${n.length===1?"":"s"} (\`}\`)`;throw new Error(e)}return i.join("")})},9051:(e,t,r)=>{"use strict";const n=r(5747);const i=r(5622);const s=n.lchown?"lchown":"chown";const o=n.lchownSync?"lchownSync":"chownSync";const a=n.lchown&&!process.version.match(/v1[1-9]+\./)&&!process.version.match(/v10\.[6-9]/);const u=(e,t,r)=>{try{return n[o](e,t,r)}catch(e){if(e.code!=="ENOENT")throw e}};const c=(e,t,r)=>{try{return n.chownSync(e,t,r)}catch(e){if(e.code!=="ENOENT")throw e}};const l=a?(e,t,r,i)=>s=>{if(!s||s.code!=="EISDIR")i(s);else n.chown(e,t,r,i)}:(e,t,r,n)=>n;const h=a?(e,t,r)=>{try{return u(e,t,r)}catch(n){if(n.code!=="EISDIR")throw n;c(e,t,r)}}:(e,t,r)=>u(e,t,r);const f=process.version;let d=(e,t,r)=>n.readdir(e,t,r);let p=(e,t)=>n.readdirSync(e,t);if(/^v4\./.test(f))d=((e,t,r)=>n.readdir(e,r));const m=(e,t,r,i)=>{n[s](e,t,r,l(e,t,r,e=>{i(e&&e.code!=="ENOENT"?e:null)}))};const y=(e,t,r,s,o)=>{if(typeof t==="string")return n.lstat(i.resolve(e,t),(n,i)=>{if(n)return o(n.code!=="ENOENT"?n:null);i.name=t;y(e,i,r,s,o)});if(t.isDirectory()){g(i.resolve(e,t.name),r,s,n=>{if(n)return o(n);const a=i.resolve(e,t.name);m(a,r,s,o)})}else{const n=i.resolve(e,t.name);m(n,r,s,o)}};const g=(e,t,r,n)=>{d(e,{withFileTypes:true},(i,s)=>{if(i){if(i.code==="ENOENT")return n();else if(i.code!=="ENOTDIR"&&i.code!=="ENOTSUP")return n(i)}if(i||!s.length)return m(e,t,r,n);let o=s.length;let a=null;const u=i=>{if(a)return;if(i)return n(a=i);if(--o===0)return m(e,t,r,n)};s.forEach(n=>y(e,n,t,r,u))})};const v=(e,t,r,s)=>{if(typeof t==="string"){try{const r=n.lstatSync(i.resolve(e,t));r.name=t;t=r}catch(e){if(e.code==="ENOENT")return;else throw e}}if(t.isDirectory())b(i.resolve(e,t.name),r,s);h(i.resolve(e,t.name),r,s)};const b=(e,t,r)=>{let n;try{n=p(e,{withFileTypes:true})}catch(n){if(n.code==="ENOENT")return;else if(n.code==="ENOTDIR"||n.code==="ENOTSUP")return h(e,t,r);else throw n}if(n&&n.length)n.forEach(n=>v(e,n,t,r));return h(e,t,r)};e.exports=g;g.sync=b},2031:(e,t,r)=>{"use strict";const n=Object.assign({},r(6615));e.exports=n;e.exports.default=n},9372:e=>{"use strict";const t=["destroy","setTimeout","socket","headers","trailers","rawHeaders","statusCode","httpVersion","httpVersionMinor","httpVersionMajor","rawTrailers","statusMessage"];e.exports=((e,r)=>{const n=new Set(Object.keys(e).concat(t));for(const t of n){if(t in r){continue}r[t]=typeof e[t]==="function"?e[t].bind(e):e[t]}})},1312:(e,t,r)=>{"use strict";const n=r(2413).PassThrough;const i=r(9372);const s=e=>{if(!(e&&e.pipe)){throw new TypeError("Parameter `response` must be a response stream.")}const t=new n;i(e,t);return e.pipe(t)};e.exports=s},8606:e=>{var t=function(){"use strict";function clone(e,t,r,n){var i;if(typeof t==="object"){r=t.depth;n=t.prototype;i=t.filter;t=t.circular}var s=[];var o=[];var a=typeof Buffer!="undefined";if(typeof t=="undefined")t=true;if(typeof r=="undefined")r=Infinity;function _clone(e,r){if(e===null)return null;if(r==0)return e;var i;var u;if(typeof e!="object"){return e}if(clone.__isArray(e)){i=[]}else if(clone.__isRegExp(e)){i=new RegExp(e.source,__getRegExpFlags(e));if(e.lastIndex)i.lastIndex=e.lastIndex}else if(clone.__isDate(e)){i=new Date(e.getTime())}else if(a&&Buffer.isBuffer(e)){if(Buffer.allocUnsafe){i=Buffer.allocUnsafe(e.length)}else{i=new Buffer(e.length)}e.copy(i);return i}else{if(typeof n=="undefined"){u=Object.getPrototypeOf(e);i=Object.create(u)}else{i=Object.create(n);u=n}}if(t){var c=s.indexOf(e);if(c!=-1){return o[c]}s.push(e);o.push(i)}for(var l in e){var h;if(u){h=Object.getOwnPropertyDescriptor(u,l)}if(h&&h.set==null){continue}i[l]=_clone(e[l],r-1)}return i}return _clone(e,r)}clone.clonePrototype=function clonePrototype(e){if(e===null)return null;var t=function(){};t.prototype=e;return new t};function __objToStr(e){return Object.prototype.toString.call(e)}clone.__objToStr=__objToStr;function __isDate(e){return typeof e==="object"&&__objToStr(e)==="[object Date]"}clone.__isDate=__isDate;function __isArray(e){return typeof e==="object"&&__objToStr(e)==="[object Array]"}clone.__isArray=__isArray;function __isRegExp(e){return typeof e==="object"&&__objToStr(e)==="[object RegExp]"}clone.__isRegExp=__isRegExp;function __getRegExpFlags(e){var t="";if(e.global)t+="g";if(e.ignoreCase)t+="i";if(e.multiline)t+="m";return t}clone.__getRegExpFlags=__getRegExpFlags;return clone}();if(true&&e.exports){e.exports=t}},7391:(e,t,r)=>{const n=r(8510);const i={};for(const e of Object.keys(n)){i[n[e]]=e}const s={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};e.exports=s;for(const e of Object.keys(s)){if(!("channels"in s[e])){throw new Error("missing channels property: "+e)}if(!("labels"in s[e])){throw new Error("missing channel labels property: "+e)}if(s[e].labels.length!==s[e].channels){throw new Error("channel and label counts mismatch: "+e)}const{channels:t,labels:r}=s[e];delete s[e].channels;delete s[e].labels;Object.defineProperty(s[e],"channels",{value:t});Object.defineProperty(s[e],"labels",{value:r})}s.rgb.hsl=function(e){const t=e[0]/255;const r=e[1]/255;const n=e[2]/255;const i=Math.min(t,r,n);const s=Math.max(t,r,n);const o=s-i;let a;let u;if(s===i){a=0}else if(t===s){a=(r-n)/o}else if(r===s){a=2+(n-t)/o}else if(n===s){a=4+(t-r)/o}a=Math.min(a*60,360);if(a<0){a+=360}const c=(i+s)/2;if(s===i){u=0}else if(c<=.5){u=o/(s+i)}else{u=o/(2-s-i)}return[a,u*100,c*100]};s.rgb.hsv=function(e){let t;let r;let n;let i;let s;const o=e[0]/255;const a=e[1]/255;const u=e[2]/255;const c=Math.max(o,a,u);const l=c-Math.min(o,a,u);const h=function(e){return(c-e)/6/l+1/2};if(l===0){i=0;s=0}else{s=l/c;t=h(o);r=h(a);n=h(u);if(o===c){i=n-r}else if(a===c){i=1/3+t-n}else if(u===c){i=2/3+r-t}if(i<0){i+=1}else if(i>1){i-=1}}return[i*360,s*100,c*100]};s.rgb.hwb=function(e){const t=e[0];const r=e[1];let n=e[2];const i=s.rgb.hsl(e)[0];const o=1/255*Math.min(t,Math.min(r,n));n=1-1/255*Math.max(t,Math.max(r,n));return[i,o*100,n*100]};s.rgb.cmyk=function(e){const t=e[0]/255;const r=e[1]/255;const n=e[2]/255;const i=Math.min(1-t,1-r,1-n);const s=(1-t-i)/(1-i)||0;const o=(1-r-i)/(1-i)||0;const a=(1-n-i)/(1-i)||0;return[s*100,o*100,a*100,i*100]};function comparativeDistance(e,t){return(e[0]-t[0])**2+(e[1]-t[1])**2+(e[2]-t[2])**2}s.rgb.keyword=function(e){const t=i[e];if(t){return t}let r=Infinity;let s;for(const t of Object.keys(n)){const i=n[t];const o=comparativeDistance(e,i);if(o<r){r=o;s=t}}return s};s.keyword.rgb=function(e){return n[e]};s.rgb.xyz=function(e){let t=e[0]/255;let r=e[1]/255;let n=e[2]/255;t=t>.04045?((t+.055)/1.055)**2.4:t/12.92;r=r>.04045?((r+.055)/1.055)**2.4:r/12.92;n=n>.04045?((n+.055)/1.055)**2.4:n/12.92;const i=t*.4124+r*.3576+n*.1805;const s=t*.2126+r*.7152+n*.0722;const o=t*.0193+r*.1192+n*.9505;return[i*100,s*100,o*100]};s.rgb.lab=function(e){const t=s.rgb.xyz(e);let r=t[0];let n=t[1];let i=t[2];r/=95.047;n/=100;i/=108.883;r=r>.008856?r**(1/3):7.787*r+16/116;n=n>.008856?n**(1/3):7.787*n+16/116;i=i>.008856?i**(1/3):7.787*i+16/116;const o=116*n-16;const a=500*(r-n);const u=200*(n-i);return[o,a,u]};s.hsl.rgb=function(e){const t=e[0]/360;const r=e[1]/100;const n=e[2]/100;let i;let s;let o;if(r===0){o=n*255;return[o,o,o]}if(n<.5){i=n*(1+r)}else{i=n+r-n*r}const a=2*n-i;const u=[0,0,0];for(let e=0;e<3;e++){s=t+1/3*-(e-1);if(s<0){s++}if(s>1){s--}if(6*s<1){o=a+(i-a)*6*s}else if(2*s<1){o=i}else if(3*s<2){o=a+(i-a)*(2/3-s)*6}else{o=a}u[e]=o*255}return u};s.hsl.hsv=function(e){const t=e[0];let r=e[1]/100;let n=e[2]/100;let i=r;const s=Math.max(n,.01);n*=2;r*=n<=1?n:2-n;i*=s<=1?s:2-s;const o=(n+r)/2;const a=n===0?2*i/(s+i):2*r/(n+r);return[t,a*100,o*100]};s.hsv.rgb=function(e){const t=e[0]/60;const r=e[1]/100;let n=e[2]/100;const i=Math.floor(t)%6;const s=t-Math.floor(t);const o=255*n*(1-r);const a=255*n*(1-r*s);const u=255*n*(1-r*(1-s));n*=255;switch(i){case 0:return[n,u,o];case 1:return[a,n,o];case 2:return[o,n,u];case 3:return[o,a,n];case 4:return[u,o,n];case 5:return[n,o,a]}};s.hsv.hsl=function(e){const t=e[0];const r=e[1]/100;const n=e[2]/100;const i=Math.max(n,.01);let s;let o;o=(2-r)*n;const a=(2-r)*i;s=r*i;s/=a<=1?a:2-a;s=s||0;o/=2;return[t,s*100,o*100]};s.hwb.rgb=function(e){const t=e[0]/360;let r=e[1]/100;let n=e[2]/100;const i=r+n;let s;if(i>1){r/=i;n/=i}const o=Math.floor(6*t);const a=1-n;s=6*t-o;if((o&1)!==0){s=1-s}const u=r+s*(a-r);let c;let l;let h;switch(o){default:case 6:case 0:c=a;l=u;h=r;break;case 1:c=u;l=a;h=r;break;case 2:c=r;l=a;h=u;break;case 3:c=r;l=u;h=a;break;case 4:c=u;l=r;h=a;break;case 5:c=a;l=r;h=u;break}return[c*255,l*255,h*255]};s.cmyk.rgb=function(e){const t=e[0]/100;const r=e[1]/100;const n=e[2]/100;const i=e[3]/100;const s=1-Math.min(1,t*(1-i)+i);const o=1-Math.min(1,r*(1-i)+i);const a=1-Math.min(1,n*(1-i)+i);return[s*255,o*255,a*255]};s.xyz.rgb=function(e){const t=e[0]/100;const r=e[1]/100;const n=e[2]/100;let i;let s;let o;i=t*3.2406+r*-1.5372+n*-.4986;s=t*-.9689+r*1.8758+n*.0415;o=t*.0557+r*-.204+n*1.057;i=i>.0031308?1.055*i**(1/2.4)-.055:i*12.92;s=s>.0031308?1.055*s**(1/2.4)-.055:s*12.92;o=o>.0031308?1.055*o**(1/2.4)-.055:o*12.92;i=Math.min(Math.max(0,i),1);s=Math.min(Math.max(0,s),1);o=Math.min(Math.max(0,o),1);return[i*255,s*255,o*255]};s.xyz.lab=function(e){let t=e[0];let r=e[1];let n=e[2];t/=95.047;r/=100;n/=108.883;t=t>.008856?t**(1/3):7.787*t+16/116;r=r>.008856?r**(1/3):7.787*r+16/116;n=n>.008856?n**(1/3):7.787*n+16/116;const i=116*r-16;const s=500*(t-r);const o=200*(r-n);return[i,s,o]};s.lab.xyz=function(e){const t=e[0];const r=e[1];const n=e[2];let i;let s;let o;s=(t+16)/116;i=r/500+s;o=s-n/200;const a=s**3;const u=i**3;const c=o**3;s=a>.008856?a:(s-16/116)/7.787;i=u>.008856?u:(i-16/116)/7.787;o=c>.008856?c:(o-16/116)/7.787;i*=95.047;s*=100;o*=108.883;return[i,s,o]};s.lab.lch=function(e){const t=e[0];const r=e[1];const n=e[2];let i;const s=Math.atan2(n,r);i=s*360/2/Math.PI;if(i<0){i+=360}const o=Math.sqrt(r*r+n*n);return[t,o,i]};s.lch.lab=function(e){const t=e[0];const r=e[1];const n=e[2];const i=n/360*2*Math.PI;const s=r*Math.cos(i);const o=r*Math.sin(i);return[t,s,o]};s.rgb.ansi16=function(e,t=null){const[r,n,i]=e;let o=t===null?s.rgb.hsv(e)[2]:t;o=Math.round(o/50);if(o===0){return 30}let a=30+(Math.round(i/255)<<2|Math.round(n/255)<<1|Math.round(r/255));if(o===2){a+=60}return a};s.hsv.ansi16=function(e){return s.rgb.ansi16(s.hsv.rgb(e),e[2])};s.rgb.ansi256=function(e){const t=e[0];const r=e[1];const n=e[2];if(t===r&&r===n){if(t<8){return 16}if(t>248){return 231}return Math.round((t-8)/247*24)+232}const i=16+36*Math.round(t/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5);return i};s.ansi16.rgb=function(e){let t=e%10;if(t===0||t===7){if(e>50){t+=3.5}t=t/10.5*255;return[t,t,t]}const r=(~~(e>50)+1)*.5;const n=(t&1)*r*255;const i=(t>>1&1)*r*255;const s=(t>>2&1)*r*255;return[n,i,s]};s.ansi256.rgb=function(e){if(e>=232){const t=(e-232)*10+8;return[t,t,t]}e-=16;let t;const r=Math.floor(e/36)/5*255;const n=Math.floor((t=e%36)/6)/5*255;const i=t%6/5*255;return[r,n,i]};s.rgb.hex=function(e){const t=((Math.round(e[0])&255)<<16)+((Math.round(e[1])&255)<<8)+(Math.round(e[2])&255);const r=t.toString(16).toUpperCase();return"000000".substring(r.length)+r};s.hex.rgb=function(e){const t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t){return[0,0,0]}let r=t[0];if(t[0].length===3){r=r.split("").map(e=>{return e+e}).join("")}const n=parseInt(r,16);const i=n>>16&255;const s=n>>8&255;const o=n&255;return[i,s,o]};s.rgb.hcg=function(e){const t=e[0]/255;const r=e[1]/255;const n=e[2]/255;const i=Math.max(Math.max(t,r),n);const s=Math.min(Math.min(t,r),n);const o=i-s;let a;let u;if(o<1){a=s/(1-o)}else{a=0}if(o<=0){u=0}else if(i===t){u=(r-n)/o%6}else if(i===r){u=2+(n-t)/o}else{u=4+(t-r)/o}u/=6;u%=1;return[u*360,o*100,a*100]};s.hsl.hcg=function(e){const t=e[1]/100;const r=e[2]/100;const n=r<.5?2*t*r:2*t*(1-r);let i=0;if(n<1){i=(r-.5*n)/(1-n)}return[e[0],n*100,i*100]};s.hsv.hcg=function(e){const t=e[1]/100;const r=e[2]/100;const n=t*r;let i=0;if(n<1){i=(r-n)/(1-n)}return[e[0],n*100,i*100]};s.hcg.rgb=function(e){const t=e[0]/360;const r=e[1]/100;const n=e[2]/100;if(r===0){return[n*255,n*255,n*255]}const i=[0,0,0];const s=t%1*6;const o=s%1;const a=1-o;let u=0;switch(Math.floor(s)){case 0:i[0]=1;i[1]=o;i[2]=0;break;case 1:i[0]=a;i[1]=1;i[2]=0;break;case 2:i[0]=0;i[1]=1;i[2]=o;break;case 3:i[0]=0;i[1]=a;i[2]=1;break;case 4:i[0]=o;i[1]=0;i[2]=1;break;default:i[0]=1;i[1]=0;i[2]=a}u=(1-r)*n;return[(r*i[0]+u)*255,(r*i[1]+u)*255,(r*i[2]+u)*255]};s.hcg.hsv=function(e){const t=e[1]/100;const r=e[2]/100;const n=t+r*(1-t);let i=0;if(n>0){i=t/n}return[e[0],i*100,n*100]};s.hcg.hsl=function(e){const t=e[1]/100;const r=e[2]/100;const n=r*(1-t)+.5*t;let i=0;if(n>0&&n<.5){i=t/(2*n)}else if(n>=.5&&n<1){i=t/(2*(1-n))}return[e[0],i*100,n*100]};s.hcg.hwb=function(e){const t=e[1]/100;const r=e[2]/100;const n=t+r*(1-t);return[e[0],(n-t)*100,(1-n)*100]};s.hwb.hcg=function(e){const t=e[1]/100;const r=e[2]/100;const n=1-r;const i=n-t;let s=0;if(i<1){s=(n-i)/(1-i)}return[e[0],i*100,s*100]};s.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]};s.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]};s.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]};s.gray.hsl=function(e){return[0,0,e[0]]};s.gray.hsv=s.gray.hsl;s.gray.hwb=function(e){return[0,100,e[0]]};s.gray.cmyk=function(e){return[0,0,0,e[0]]};s.gray.lab=function(e){return[e[0],0,0]};s.gray.hex=function(e){const t=Math.round(e[0]/100*255)&255;const r=(t<<16)+(t<<8)+t;const n=r.toString(16).toUpperCase();return"000000".substring(n.length)+n};s.rgb.gray=function(e){const t=(e[0]+e[1]+e[2])/3;return[t/255*100]}},6931:(e,t,r)=>{const n=r(7391);const i=r(880);const s={};const o=Object.keys(n);function wrapRaw(e){const t=function(...t){const r=t[0];if(r===undefined||r===null){return r}if(r.length>1){t=r}return e(t)};if("conversion"in e){t.conversion=e.conversion}return t}function wrapRounded(e){const t=function(...t){const r=t[0];if(r===undefined||r===null){return r}if(r.length>1){t=r}const n=e(t);if(typeof n==="object"){for(let e=n.length,t=0;t<e;t++){n[t]=Math.round(n[t])}}return n};if("conversion"in e){t.conversion=e.conversion}return t}o.forEach(e=>{s[e]={};Object.defineProperty(s[e],"channels",{value:n[e].channels});Object.defineProperty(s[e],"labels",{value:n[e].labels});const t=i(e);const r=Object.keys(t);r.forEach(r=>{const n=t[r];s[e][r]=wrapRounded(n);s[e][r].raw=wrapRaw(n)})});e.exports=s},880:(e,t,r)=>{const n=r(7391);function buildGraph(){const e={};const t=Object.keys(n);for(let r=t.length,n=0;n<r;n++){e[t[n]]={distance:-1,parent:null}}return e}function deriveBFS(e){const t=buildGraph();const r=[e];t[e].distance=0;while(r.length){const e=r.pop();const i=Object.keys(n[e]);for(let n=i.length,s=0;s<n;s++){const n=i[s];const o=t[n];if(o.distance===-1){o.distance=t[e].distance+1;o.parent=e;r.unshift(n)}}}return t}function link(e,t){return function(r){return t(e(r))}}function wrapConversion(e,t){const r=[t[e].parent,e];let i=n[t[e].parent][e];let s=t[e].parent;while(t[s].parent){r.unshift(t[s].parent);i=link(n[t[s].parent][s],i);s=t[s].parent}i.conversion=r;return i}e.exports=function(e){const t=deriveBFS(e);const r={};const n=Object.keys(t);for(let e=n.length,i=0;i<e;i++){const e=n[i];const s=t[e];if(s.parent===null){continue}r[e]=wrapConversion(e,t)}return r}},8510:e=>{"use strict";e.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},1904:(e,t,r)=>{var n=r(8614).EventEmitter;var i=r(3129).spawn;var s=r(5622);var o=s.dirname;var a=s.basename;var u=r(5747);r(1669).inherits(Command,n);t=e.exports=new Command;t.Command=Command;t.Option=Option;function Option(e,t){this.flags=e;this.required=e.indexOf("<")>=0;this.optional=e.indexOf("[")>=0;this.bool=e.indexOf("-no-")===-1;e=e.split(/[ ,|]+/);if(e.length>1&&!/^[[<]/.test(e[1]))this.short=e.shift();this.long=e.shift();this.description=t||""}Option.prototype.name=function(){return this.long.replace("--","").replace("no-","")};Option.prototype.attributeName=function(){return camelcase(this.name())};Option.prototype.is=function(e){return this.short===e||this.long===e};function Command(e){this.commands=[];this.options=[];this._execs={};this._allowUnknownOption=false;this._args=[];this._name=e||""}Command.prototype.command=function(e,t,r){if(typeof t==="object"&&t!==null){r=t;t=null}r=r||{};var n=e.split(/ +/);var i=new Command(n.shift());if(t){i.description(t);this.executables=true;this._execs[i._name]=true;if(r.isDefault)this.defaultExecutable=i._name}i._noHelp=!!r.noHelp;this.commands.push(i);i.parseExpectedArgs(n);i.parent=this;if(t)return this;return i};Command.prototype.arguments=function(e){return this.parseExpectedArgs(e.split(/ +/))};Command.prototype.addImplicitHelpCommand=function(){this.command("help [cmd]","display help for [cmd]")};Command.prototype.parseExpectedArgs=function(e){if(!e.length)return;var t=this;e.forEach(function(e){var r={required:false,name:"",variadic:false};switch(e[0]){case"<":r.required=true;r.name=e.slice(1,-1);break;case"[":r.name=e.slice(1,-1);break}if(r.name.length>3&&r.name.slice(-3)==="..."){r.variadic=true;r.name=r.name.slice(0,-3)}if(r.name){t._args.push(r)}});return this};Command.prototype.action=function(e){var t=this;var r=function(r,n){r=r||[];n=n||[];var i=t.parseOptions(n);outputHelpIfNecessary(t,i.unknown);if(i.unknown.length>0){t.unknownOption(i.unknown[0])}if(i.args.length)r=i.args.concat(r);t._args.forEach(function(e,n){if(e.required&&r[n]==null){t.missingArgument(e.name)}else if(e.variadic){if(n!==t._args.length-1){t.variadicArgNotLast(e.name)}r[n]=r.splice(n)}});if(t._args.length){r[t._args.length]=t}else{r.push(t)}e.apply(t,r)};var n=this.parent||this;var i=n===this?"*":this._name;n.on("command:"+i,r);if(this._alias)n.on("command:"+this._alias,r);return this};Command.prototype.option=function(e,t,r,n){var i=this,s=new Option(e,t),o=s.name(),a=s.attributeName();if(typeof r!=="function"){if(r instanceof RegExp){var u=r;r=function(e,t){var r=u.exec(e);return r?r[0]:t}}else{n=r;r=null}}if(!s.bool||s.optional||s.required){if(!s.bool)n=true;if(n!==undefined){i[a]=n;s.defaultValue=n}}this.options.push(s);this.on("option:"+o,function(e){if(e!==null&&r){e=r(e,i[a]===undefined?n:i[a])}if(typeof i[a]==="boolean"||typeof i[a]==="undefined"){if(e==null){i[a]=s.bool?n||true:false}else{i[a]=e}}else if(e!==null){i[a]=e}});return this};Command.prototype.allowUnknownOption=function(e){this._allowUnknownOption=arguments.length===0||e;return this};Command.prototype.parse=function(e){if(this.executables)this.addImplicitHelpCommand();this.rawArgs=e;this._name=this._name||a(e[1],".js");if(this.executables&&e.length<3&&!this.defaultExecutable){e.push("--help")}var t=this.parseOptions(this.normalize(e.slice(2)));var r=this.args=t.args;var n=this.parseArgs(this.args,t.unknown);var i=n.args[0];var s=null;if(i){s=this.commands.filter(function(e){return e.alias()===i})[0]}if(this._execs[i]&&typeof this._execs[i]!=="function"){return this.executeSubCommand(e,r,t.unknown)}else if(s){r[0]=s._name;return this.executeSubCommand(e,r,t.unknown)}else if(this.defaultExecutable){r.unshift(this.defaultExecutable);return this.executeSubCommand(e,r,t.unknown)}return n};Command.prototype.executeSubCommand=function(e,t,r){t=t.concat(r);if(!t.length)this.help();if(t[0]==="help"&&t.length===1)this.help();if(t[0]==="help"){t[0]=t[1];t[1]="--help"}var n=e[1];var c=a(n,s.extname(n))+"-"+t[0];var l;var h=u.realpathSync(n);l=o(h);var f=s.join(l,c);var d=false;if(exists(f+".js")){c=f+".js";d=true}else if(exists(f+".ts")){c=f+".ts";d=true}else if(exists(f)){c=f}t=t.slice(1);var p;if(process.platform!=="win32"){if(d){t.unshift(c);t=(process.execArgv||[]).concat(t);p=i(process.argv[0],t,{stdio:"inherit",customFds:[0,1,2]})}else{p=i(c,t,{stdio:"inherit",customFds:[0,1,2]})}}else{t.unshift(c);p=i(process.execPath,t,{stdio:"inherit"})}var m=["SIGUSR1","SIGUSR2","SIGTERM","SIGINT","SIGHUP"];m.forEach(function(e){process.on(e,function(){if(p.killed===false&&p.exitCode===null){p.kill(e)}})});p.on("close",process.exit.bind(process));p.on("error",function(e){if(e.code==="ENOENT"){console.error("error: %s(1) does not exist, try --help",c)}else if(e.code==="EACCES"){console.error("error: %s(1) not executable. try chmod or run with root",c)}process.exit(1)});this.runningCommand=p};Command.prototype.normalize=function(e){var t=[],r,n,i;for(var s=0,o=e.length;s<o;++s){r=e[s];if(s>0){n=this.optionFor(e[s-1])}if(r==="--"){t=t.concat(e.slice(s));break}else if(n&&n.required){t.push(r)}else if(r.length>1&&r[0]==="-"&&r[1]!=="-"){r.slice(1).split("").forEach(function(e){t.push("-"+e)})}else if(/^--/.test(r)&&~(i=r.indexOf("="))){t.push(r.slice(0,i),r.slice(i+1))}else{t.push(r)}}return t};Command.prototype.parseArgs=function(e,t){var r;if(e.length){r=e[0];if(this.listeners("command:"+r).length){this.emit("command:"+e.shift(),e,t)}else{this.emit("command:*",e)}}else{outputHelpIfNecessary(this,t);if(t.length>0){this.unknownOption(t[0])}if(this.commands.length===0&&this._args.filter(function(e){return e.required}).length===0){this.emit("command:*")}}return this};Command.prototype.optionFor=function(e){for(var t=0,r=this.options.length;t<r;++t){if(this.options[t].is(e)){return this.options[t]}}};Command.prototype.parseOptions=function(e){var t=[],r=e.length,n,i,s;var o=[];for(var a=0;a<r;++a){s=e[a];if(n){t.push(s);continue}if(s==="--"){n=true;continue}i=this.optionFor(s);if(i){if(i.required){s=e[++a];if(s==null)return this.optionMissingArgument(i);this.emit("option:"+i.name(),s)}else if(i.optional){s=e[a+1];if(s==null||s[0]==="-"&&s!=="-"){s=null}else{++a}this.emit("option:"+i.name(),s)}else{this.emit("option:"+i.name())}continue}if(s.length>1&&s[0]==="-"){o.push(s);if(a+1<e.length&&e[a+1][0]!=="-"){o.push(e[++a])}continue}t.push(s)}return{args:t,unknown:o}};Command.prototype.opts=function(){var e={},t=this.options.length;for(var r=0;r<t;r++){var n=this.options[r].attributeName();e[n]=n===this._versionOptionName?this._version:this[n]}return e};Command.prototype.missingArgument=function(e){console.error("error: missing required argument `%s'",e);process.exit(1)};Command.prototype.optionMissingArgument=function(e,t){if(t){console.error("error: option `%s' argument missing, got `%s'",e.flags,t)}else{console.error("error: option `%s' argument missing",e.flags)}process.exit(1)};Command.prototype.unknownOption=function(e){if(this._allowUnknownOption)return;console.error("error: unknown option `%s'",e);process.exit(1)};Command.prototype.variadicArgNotLast=function(e){console.error("error: variadic arguments must be last `%s'",e);process.exit(1)};Command.prototype.version=function(e,t){if(arguments.length===0)return this._version;this._version=e;t=t||"-V, --version";var r=new Option(t,"output the version number");this._versionOptionName=r.long.substr(2)||"version";this.options.push(r);this.on("option:"+this._versionOptionName,function(){process.stdout.write(e+"\n");process.exit(0)});return this};Command.prototype.description=function(e,t){if(arguments.length===0)return this._description;this._description=e;this._argsDescription=t;return this};Command.prototype.alias=function(e){var t=this;if(this.commands.length!==0){t=this.commands[this.commands.length-1]}if(arguments.length===0)return t._alias;if(e===t._name)throw new Error("Command alias can't be the same as its name");t._alias=e;return this};Command.prototype.usage=function(e){var t=this._args.map(function(e){return humanReadableArgName(e)});var r="[options]"+(this.commands.length?" [command]":"")+(this._args.length?" "+t.join(" "):"");if(arguments.length===0)return this._usage||r;this._usage=e;return this};Command.prototype.name=function(e){if(arguments.length===0)return this._name;this._name=e;return this};Command.prototype.prepareCommands=function(){return this.commands.filter(function(e){return!e._noHelp}).map(function(e){var t=e._args.map(function(e){return humanReadableArgName(e)}).join(" ");return[e._name+(e._alias?"|"+e._alias:"")+(e.options.length?" [options]":"")+(t?" "+t:""),e._description]})};Command.prototype.largestCommandLength=function(){var e=this.prepareCommands();return e.reduce(function(e,t){return Math.max(e,t[0].length)},0)};Command.prototype.largestOptionLength=function(){var e=[].slice.call(this.options);e.push({flags:"-h, --help"});return e.reduce(function(e,t){return Math.max(e,t.flags.length)},0)};Command.prototype.largestArgLength=function(){return this._args.reduce(function(e,t){return Math.max(e,t.name.length)},0)};Command.prototype.padWidth=function(){var e=this.largestOptionLength();if(this._argsDescription&&this._args.length){if(this.largestArgLength()>e){e=this.largestArgLength()}}if(this.commands&&this.commands.length){if(this.largestCommandLength()>e){e=this.largestCommandLength()}}return e};Command.prototype.optionHelp=function(){var e=this.padWidth();return this.options.map(function(t){return pad(t.flags,e)+" "+t.description+(t.bool&&t.defaultValue!==undefined?" (default: "+JSON.stringify(t.defaultValue)+")":"")}).concat([pad("-h, --help",e)+" "+"output usage information"]).join("\n")};Command.prototype.commandHelp=function(){if(!this.commands.length)return"";var e=this.prepareCommands();var t=this.padWidth();return["Commands:",e.map(function(e){var r=e[1]?" "+e[1]:"";return(r?pad(e[0],t):e[0])+r}).join("\n").replace(/^/gm," "),""].join("\n")};Command.prototype.helpInformation=function(){var e=[];if(this._description){e=[this._description,""];var t=this._argsDescription;if(t&&this._args.length){var r=this.padWidth();e.push("Arguments:");e.push("");this._args.forEach(function(n){e.push(" "+pad(n.name,r)+" "+t[n.name])});e.push("")}}var n=this._name;if(this._alias){n=n+"|"+this._alias}var i=["Usage: "+n+" "+this.usage(),""];var s=[];var o=this.commandHelp();if(o)s=[o];var a=["Options:",""+this.optionHelp().replace(/^/gm," "),""];return i.concat(e).concat(a).concat(s).join("\n")};Command.prototype.outputHelp=function(e){if(!e){e=function(e){return e}}process.stdout.write(e(this.helpInformation()));this.emit("--help")};Command.prototype.help=function(e){this.outputHelp(e);process.exit()};function camelcase(e){return e.split("-").reduce(function(e,t){return e+t[0].toUpperCase()+t.slice(1)})}function pad(e,t){var r=Math.max(0,t-e.length);return e+Array(r+1).join(" ")}function outputHelpIfNecessary(e,t){t=t||[];for(var r=0;r<t.length;r++){if(t[r]==="--help"||t[r]==="-h"){e.outputHelp();process.exit(0)}}}function humanReadableArgName(e){var t=e.name+(e.variadic===true?"...":"");return e.required?"<"+t+">":"["+t+"]"}function exists(e){try{if(u.statSync(e).isFile()){return true}}catch(e){return false}}},6891:e=>{e.exports=function(e,r){var n=[];for(var i=0;i<e.length;i++){var s=r(e[i],i);if(t(s))n.push.apply(n,s);else n.push(s)}return n};var t=Array.isArray||function(e){return Object.prototype.toString.call(e)==="[object Array]"}},2746:(e,t,r)=>{"use strict";const n=r(3129);const i=r(6855);const s=r(4101);function spawn(e,t,r){const o=i(e,t,r);const a=n.spawn(o.command,o.args,o.options);s.hookChildProcess(a,o);return a}function spawnSync(e,t,r){const o=i(e,t,r);const a=n.spawnSync(o.command,o.args,o.options);a.error=a.error||s.verifyENOENTSync(a.status,o);return a}e.exports=spawn;e.exports.spawn=spawn;e.exports.sync=spawnSync;e.exports._parse=i;e.exports._enoent=s},4101:e=>{"use strict";const t=process.platform==="win32";function notFoundError(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 hookChildProcess(e,r){if(!t){return}const n=e.emit;e.emit=function(t,i){if(t==="exit"){const t=verifyENOENT(i,r,"spawn");if(t){return n.call(e,"error",t)}}return n.apply(e,arguments)}}function verifyENOENT(e,r){if(t&&e===1&&!r.file){return notFoundError(r.original,"spawn")}return null}function verifyENOENTSync(e,r){if(t&&e===1&&!r.file){return notFoundError(r.original,"spawnSync")}return null}e.exports={hookChildProcess:hookChildProcess,verifyENOENT:verifyENOENT,verifyENOENTSync:verifyENOENTSync,notFoundError:notFoundError}},6855:(e,t,r)=>{"use strict";const n=r(5622);const i=r(8560);const s=r(7274);const o=r(4274);const a=r(1252);const u=r(5911);const c=process.platform==="win32";const l=/\.(?:com|exe)$/i;const h=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;const f=i(()=>u.satisfies(process.version,"^4.8.0 || ^5.7.0 || >= 6.0.0",true))||false;function detectShebang(e){e.file=s(e);const t=e.file&&a(e.file);if(t){e.args.unshift(e.file);e.command=t;return s(e)}return e.file}function parseNonShell(e){if(!c){return e}const t=detectShebang(e);const r=!l.test(t);if(e.options.forceShell||r){const r=h.test(t);e.command=n.normalize(e.command);e.command=o.command(e.command);e.args=e.args.map(e=>o.argument(e,r));const i=[e.command].concat(e.args).join(" ");e.args=["/d","/s","/c",`"${i}"`];e.command=process.env.comspec||"cmd.exe";e.options.windowsVerbatimArguments=true}return e}function parseShell(e){if(f){return e}const t=[e.command].concat(e.args).join(" ");if(c){e.command=typeof e.options.shell==="string"?e.options.shell:process.env.comspec||"cmd.exe";e.args=["/d","/s","/c",`"${t}"`];e.options.windowsVerbatimArguments=true}else{if(typeof e.options.shell==="string"){e.command=e.options.shell}else if(process.platform==="android"){e.command="/system/bin/sh"}else{e.command="/bin/sh"}e.args=["-c",t]}return e}function parse(e,t,r){if(t&&!Array.isArray(t)){r=t;t=null}t=t?t.slice(0):[];r=Object.assign({},r);const n={command:e,args:t,options:r,file:undefined,original:{command:e,args:t}};return r.shell?parseShell(n):parseNonShell(n)}e.exports=parse},4274:e=>{"use strict";const t=/([()\][%!^"`<>&|;, *?])/g;function escapeCommand(e){e=e.replace(t,"^$1");return e}function escapeArgument(e,r){e=`${e}`;e=e.replace(/(\\*)"/g,'$1$1\\"');e=e.replace(/(\\*)$/,"$1$1");e=`"${e}"`;e=e.replace(t,"^$1");if(r){e=e.replace(t,"^$1")}return e}e.exports.command=escapeCommand;e.exports.argument=escapeArgument},1252:(e,t,r)=>{"use strict";const n=r(5747);const i=r(7032);function readShebang(e){const t=150;let r;if(Buffer.alloc){r=Buffer.alloc(t)}else{r=new Buffer(t);r.fill(0)}let s;try{s=n.openSync(e,"r");n.readSync(s,r,0,t,0);n.closeSync(s)}catch(e){}return i(r.toString())}e.exports=readShebang},7274:(e,t,r)=>{"use strict";const n=r(5622);const i=r(4207);const s=r(539)();function resolveCommandAttempt(e,t){const r=process.cwd();const o=e.options.cwd!=null;if(o){try{process.chdir(e.options.cwd)}catch(e){}}let a;try{a=i.sync(e.command,{path:(e.options.env||process.env)[s],pathExt:t?n.delimiter:undefined})}catch(e){}finally{process.chdir(r)}if(a){a=n.resolve(o?e.options.cwd:"",a)}return a}function resolveCommand(e){return resolveCommandAttempt(e)||resolveCommandAttempt(e,true)}e.exports=resolveCommand},2391:(e,t,r)=>{"use strict";const{pipeline:n,PassThrough:i}=r(2413);const s=r(1903);const o=r(2610);const a=e=>{const t=(e.headers["content-encoding"]||"").toLowerCase();if(!["gzip","deflate","br"].includes(t)){return e}const r=t==="br";if(r&&typeof s.createBrotliDecompress!=="function"){return e}const a=r?s.createBrotliDecompress():s.createUnzip();const u=new i;a.on("error",e=>{if(e.code==="Z_BUF_ERROR"){u.end();return}u.emit("error",e)});const c=n(e,a,u,()=>{});o(e,c);return c};e.exports=a},1705:e=>{"use strict";function isSpecificValue(e){return e instanceof Buffer||e instanceof Date||e instanceof RegExp?true:false}function cloneSpecificValue(e){if(e instanceof Buffer){var t=Buffer.alloc?Buffer.alloc(e.length):new Buffer(e.length);e.copy(t);return t}else if(e instanceof Date){return new Date(e.getTime())}else if(e instanceof RegExp){return new RegExp(e)}else{throw new Error("Unexpected situation")}}function deepCloneArray(e){var r=[];e.forEach(function(e,n){if(typeof e==="object"&&e!==null){if(Array.isArray(e)){r[n]=deepCloneArray(e)}else if(isSpecificValue(e)){r[n]=cloneSpecificValue(e)}else{r[n]=t({},e)}}else{r[n]=e}});return r}function safeGetProperty(e,t){return t==="__proto__"?undefined:e[t]}var t=e.exports=function(){if(arguments.length<1||typeof arguments[0]!=="object"){return false}if(arguments.length<2){return arguments[0]}var e=arguments[0];var r=Array.prototype.slice.call(arguments,1);var n,i,s;r.forEach(function(r){if(typeof r!=="object"||r===null||Array.isArray(r)){return}Object.keys(r).forEach(function(s){i=safeGetProperty(e,s);n=safeGetProperty(r,s);if(n===e){return}else if(typeof n!=="object"||n===null){e[s]=n;return}else if(Array.isArray(n)){e[s]=deepCloneArray(n);return}else if(isSpecificValue(n)){e[s]=cloneSpecificValue(n);return}else if(typeof i!=="object"||i===null||Array.isArray(i)){e[s]=t({},n);return}else{e[s]=t(i,n);return}})});return e}},732:(e,t,r)=>{var n=r(8606);e.exports=function(e,t){e=e||{};Object.keys(t).forEach(function(r){if(typeof e[r]==="undefined"){e[r]=n(t[r])}});return e}},6214:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(4016);const i=(e,t)=>{let r;if(typeof t==="function"){const e=t;r={connect:e}}else{r=t}const i=typeof r.connect==="function";const s=typeof r.secureConnect==="function";const o=typeof r.close==="function";const a=()=>{if(i){r.connect()}if(e instanceof n.TLSSocket&&s){if(e.authorized){r.secureConnect()}else if(!e.authorizationError){e.once("secureConnect",r.secureConnect)}}if(o){e.once("close",r.close)}};if(e.writable&&!e.connecting){a()}else if(e.connecting){e.once("connect",a)}else if(e.destroyed&&o){r.close(e._hadError)}};t.default=i;e.exports=i;e.exports.default=i},1205:(e,t,r)=>{var n=r(1223);var i=function(){};var s=function(e){return e.setHeader&&typeof e.abort==="function"};var o=function(e){return e.stdio&&Array.isArray(e.stdio)&&e.stdio.length===3};var a=function(e,t,r){if(typeof t==="function")return a(e,null,t);if(!t)t={};r=n(r||i);var u=e._writableState;var c=e._readableState;var l=t.readable||t.readable!==false&&e.readable;var h=t.writable||t.writable!==false&&e.writable;var f=false;var d=function(){if(!e.writable)p()};var p=function(){h=false;if(!l)r.call(e)};var m=function(){l=false;if(!h)r.call(e)};var y=function(t){r.call(e,t?new Error("exited with error code: "+t):null)};var g=function(t){r.call(e,t)};var v=function(){process.nextTick(b)};var b=function(){if(f)return;if(l&&!(c&&(c.ended&&!c.destroyed)))return r.call(e,new Error("premature close"));if(h&&!(u&&(u.ended&&!u.destroyed)))return r.call(e,new Error("premature close"))};var w=function(){e.req.on("finish",p)};if(s(e)){e.on("complete",p);e.on("abort",v);if(e.req)w();else e.on("request",w)}else if(h&&!u){e.on("end",d);e.on("close",d)}if(o(e))e.on("exit",y);e.on("end",m);e.on("finish",p);if(t.error!==false)e.on("error",g);e.on("close",v);return function(){f=true;e.removeListener("complete",p);e.removeListener("abort",v);e.removeListener("request",w);if(e.req)e.req.removeListener("finish",p);e.removeListener("end",d);e.removeListener("close",d);e.removeListener("finish",p);e.removeListener("exit",y);e.removeListener("end",m);e.removeListener("error",g);e.removeListener("close",v)}};e.exports=a},8691:e=>{"use strict";var t=/[|\\{}()[\]^$+*?.]/g;e.exports=function(e){if(typeof e!=="string"){throw new TypeError("Expected a string")}return e.replace(t,"\\$&")}},6330:(e,t,r)=>{"use strict";const n=r(1669);const i=r(1861);const s=e=>e!==null&&typeof e==="object"&&!Array.isArray(e);const o=e=>{return t=>e===true?Number(t):String(t)};const a=e=>{return typeof e==="number"||typeof e==="string"&&e!==""};const u=e=>Number.isInteger(+e);const c=e=>{let t=`${e}`;let r=-1;if(t[0]==="-")t=t.slice(1);if(t==="0")return false;while(t[++r]==="0");return r>0};const l=(e,t,r)=>{if(typeof e==="string"||typeof t==="string"){return true}return r.stringify===true};const h=(e,t,r)=>{if(t>0){let r=e[0]==="-"?"-":"";if(r)e=e.slice(1);e=r+e.padStart(r?t-1:t,"0")}if(r===false){return String(e)}return e};const f=(e,t)=>{let r=e[0]==="-"?"-":"";if(r){e=e.slice(1);t--}while(e.length<t)e="0"+e;return r?"-"+e:e};const d=(e,t)=>{e.negatives.sort((e,t)=>e<t?-1:e>t?1:0);e.positives.sort((e,t)=>e<t?-1:e>t?1:0);let r=t.capture?"":"?:";let n="";let i="";let s;if(e.positives.length){n=e.positives.join("|")}if(e.negatives.length){i=`-(${r}${e.negatives.join("|")})`}if(n&&i){s=`${n}|${i}`}else{s=n||i}if(t.wrap){return`(${r}${s})`}return s};const p=(e,t,r,n)=>{if(r){return i(e,t,{wrap:false,...n})}let s=String.fromCharCode(e);if(e===t)return s;let o=String.fromCharCode(t);return`[${s}-${o}]`};const m=(e,t,r)=>{if(Array.isArray(e)){let t=r.wrap===true;let n=r.capture?"":"?:";return t?`(${n}${e.join("|")})`:e.join("|")}return i(e,t,r)};const y=(...e)=>{return new RangeError("Invalid range arguments: "+n.inspect(...e))};const g=(e,t,r)=>{if(r.strictRanges===true)throw y([e,t]);return[]};const v=(e,t)=>{if(t.strictRanges===true){throw new TypeError(`Expected step "${e}" to be a number`)}return[]};const b=(e,t,r=1,n={})=>{let i=Number(e);let s=Number(t);if(!Number.isInteger(i)||!Number.isInteger(s)){if(n.strictRanges===true)throw y([e,t]);return[]}if(i===0)i=0;if(s===0)s=0;let a=i>s;let u=String(e);let g=String(t);let v=String(r);r=Math.max(Math.abs(r),1);let b=c(u)||c(g)||c(v);let w=b?Math.max(u.length,g.length,v.length):0;let A=b===false&&l(e,t,n)===false;let E=n.transform||o(A);if(n.toRegex&&r===1){return p(f(e,w),f(t,w),true,n)}let _={negatives:[],positives:[]};let D=e=>_[e<0?"negatives":"positives"].push(Math.abs(e));let S=[];let C=0;while(a?i>=s:i<=s){if(n.toRegex===true&&r>1){D(i)}else{S.push(h(E(i,C),w,A))}i=a?i-r:i+r;C++}if(n.toRegex===true){return r>1?d(_,n):m(S,null,{wrap:false,...n})}return S};const w=(e,t,r=1,n={})=>{if(!u(e)&&e.length>1||!u(t)&&t.length>1){return g(e,t,n)}let i=n.transform||(e=>String.fromCharCode(e));let s=`${e}`.charCodeAt(0);let o=`${t}`.charCodeAt(0);let a=s>o;let c=Math.min(s,o);let l=Math.max(s,o);if(n.toRegex&&r===1){return p(c,l,false,n)}let h=[];let f=0;while(a?s>=o:s<=o){h.push(i(s,f));s=a?s-r:s+r;f++}if(n.toRegex===true){return m(h,null,{wrap:false,options:n})}return h};const A=(e,t,r,n={})=>{if(t==null&&a(e)){return[e]}if(!a(e)||!a(t)){return g(e,t,n)}if(typeof r==="function"){return A(e,t,1,{transform:r})}if(s(r)){return A(e,t,0,r)}let i={...n};if(i.capture===true)i.wrap=true;r=r||i.step||1;if(!u(r)){if(r!=null&&!s(r))return v(r,i);return A(e,t,1,r)}if(u(e)&&u(t)){return b(e,t,r,i)}return w(e,t,Math.max(Math.abs(r),1),i)};e.exports=A},6748:(e,t,r)=>{"use strict";const n=r(5747);const i=r(6228);const s=r(5622);e.exports=findWorkspaceRoot;function findWorkspaceRoot(e){if(!e){e=process.cwd()}let t=null;let r=s.normalize(e);do{const n=readPackageJSON(r);const o=extractWorkspaces(n);if(o){const t=s.relative(r,e);if(t===""||i([t],o).length>0){return r}else{return null}}t=r;r=s.dirname(r)}while(r!==t);return null}function extractWorkspaces(e){const t=(e||{}).workspaces;return t&&t.packages||(Array.isArray(t)?t:null)}function readPackageJSON(e){const t=s.join(e,"package.json");if(n.existsSync(t)){return JSON.parse(n.readFileSync(t,"utf8"))}return null}},3338:(e,t,r)=>{"use strict";const n=r(7758);const i=r(5622);const s=r(8605).mkdirsSync;const o=r(2548).utimesMillisSync;const a=r(3901);function copySync(e,t,r){if(typeof r==="function"){r={filter:r}}r=r||{};r.clobber="clobber"in r?!!r.clobber:true;r.overwrite="overwrite"in r?!!r.overwrite:r.clobber;if(r.preserveTimestamps&&process.arch==="ia32"){console.warn(`fs-extra: Using the preserveTimestamps option in 32-bit node is not recommended;\n\n see https://github.com/jprichardson/node-fs-extra/issues/269`)}const{srcStat:n,destStat:i}=a.checkPathsSync(e,t,"copy");a.checkParentPathsSync(e,n,t,"copy");return handleFilterAndCopy(i,e,t,r)}function handleFilterAndCopy(e,t,r,o){if(o.filter&&!o.filter(t,r))return;const a=i.dirname(r);if(!n.existsSync(a))s(a);return startCopy(e,t,r,o)}function startCopy(e,t,r,n){if(n.filter&&!n.filter(t,r))return;return getStats(e,t,r,n)}function getStats(e,t,r,i){const s=i.dereference?n.statSync:n.lstatSync;const o=s(t);if(o.isDirectory())return onDir(o,e,t,r,i);else if(o.isFile()||o.isCharacterDevice()||o.isBlockDevice())return onFile(o,e,t,r,i);else if(o.isSymbolicLink())return onLink(e,t,r,i)}function onFile(e,t,r,n,i){if(!t)return copyFile(e,r,n,i);return mayCopyFile(e,r,n,i)}function mayCopyFile(e,t,r,i){if(i.overwrite){n.unlinkSync(r);return copyFile(e,t,r,i)}else if(i.errorOnExist){throw new Error(`'${r}' already exists`)}}function copyFile(e,t,r,i){n.copyFileSync(t,r);if(i.preserveTimestamps)handleTimestamps(e.mode,t,r);return setDestMode(r,e.mode)}function handleTimestamps(e,t,r){if(fileIsNotWritable(e))makeFileWritable(r,e);return setDestTimestamps(t,r)}function fileIsNotWritable(e){return(e&128)===0}function makeFileWritable(e,t){return setDestMode(e,t|128)}function setDestMode(e,t){return n.chmodSync(e,t)}function setDestTimestamps(e,t){const r=n.statSync(e);return o(t,r.atime,r.mtime)}function onDir(e,t,r,n,i){if(!t)return mkDirAndCopy(e.mode,r,n,i);if(t&&!t.isDirectory()){throw new Error(`Cannot overwrite non-directory '${n}' with directory '${r}'.`)}return copyDir(r,n,i)}function mkDirAndCopy(e,t,r,i){n.mkdirSync(r);copyDir(t,r,i);return setDestMode(r,e)}function copyDir(e,t,r){n.readdirSync(e).forEach(n=>copyDirItem(n,e,t,r))}function copyDirItem(e,t,r,n){const s=i.join(t,e);const o=i.join(r,e);const{destStat:u}=a.checkPathsSync(s,o,"copy");return startCopy(u,s,o,n)}function onLink(e,t,r,s){let o=n.readlinkSync(t);if(s.dereference){o=i.resolve(process.cwd(),o)}if(!e){return n.symlinkSync(o,r)}else{let e;try{e=n.readlinkSync(r)}catch(e){if(e.code==="EINVAL"||e.code==="UNKNOWN")return n.symlinkSync(o,r);throw e}if(s.dereference){e=i.resolve(process.cwd(),e)}if(a.isSrcSubdir(o,e)){throw new Error(`Cannot copy '${o}' to a subdirectory of itself, '${e}'.`)}if(n.statSync(r).isDirectory()&&a.isSrcSubdir(e,o)){throw new Error(`Cannot overwrite '${e}' with '${o}'.`)}return copyLink(o,r)}}function copyLink(e,t){n.unlinkSync(t);return n.symlinkSync(e,t)}e.exports=copySync},1135:(e,t,r)=>{"use strict";e.exports={copySync:r(3338)}},8834:(e,t,r)=>{"use strict";const n=r(7758);const i=r(5622);const s=r(8605).mkdirs;const o=r(3835).pathExists;const a=r(2548).utimesMillis;const u=r(3901);function copy(e,t,r,n){if(typeof r==="function"&&!n){n=r;r={}}else if(typeof r==="function"){r={filter:r}}n=n||function(){};r=r||{};r.clobber="clobber"in r?!!r.clobber:true;r.overwrite="overwrite"in r?!!r.overwrite:r.clobber;if(r.preserveTimestamps&&process.arch==="ia32"){console.warn(`fs-extra: Using the preserveTimestamps option in 32-bit node is not recommended;\n\n see https://github.com/jprichardson/node-fs-extra/issues/269`)}u.checkPaths(e,t,"copy",(i,s)=>{if(i)return n(i);const{srcStat:o,destStat:a}=s;u.checkParentPaths(e,o,t,"copy",i=>{if(i)return n(i);if(r.filter)return handleFilter(checkParentDir,a,e,t,r,n);return checkParentDir(a,e,t,r,n)})})}function checkParentDir(e,t,r,n,a){const u=i.dirname(r);o(u,(i,o)=>{if(i)return a(i);if(o)return startCopy(e,t,r,n,a);s(u,i=>{if(i)return a(i);return startCopy(e,t,r,n,a)})})}function handleFilter(e,t,r,n,i,s){Promise.resolve(i.filter(r,n)).then(o=>{if(o)return e(t,r,n,i,s);return s()},e=>s(e))}function startCopy(e,t,r,n,i){if(n.filter)return handleFilter(getStats,e,t,r,n,i);return getStats(e,t,r,n,i)}function getStats(e,t,r,i,s){const o=i.dereference?n.stat:n.lstat;o(t,(n,o)=>{if(n)return s(n);if(o.isDirectory())return onDir(o,e,t,r,i,s);else if(o.isFile()||o.isCharacterDevice()||o.isBlockDevice())return onFile(o,e,t,r,i,s);else if(o.isSymbolicLink())return onLink(e,t,r,i,s)})}function onFile(e,t,r,n,i,s){if(!t)return copyFile(e,r,n,i,s);return mayCopyFile(e,r,n,i,s)}function mayCopyFile(e,t,r,i,s){if(i.overwrite){n.unlink(r,n=>{if(n)return s(n);return copyFile(e,t,r,i,s)})}else if(i.errorOnExist){return s(new Error(`'${r}' already exists`))}else return s()}function copyFile(e,t,r,i,s){n.copyFile(t,r,n=>{if(n)return s(n);if(i.preserveTimestamps)return handleTimestampsAndMode(e.mode,t,r,s);return setDestMode(r,e.mode,s)})}function handleTimestampsAndMode(e,t,r,n){if(fileIsNotWritable(e)){return makeFileWritable(r,e,i=>{if(i)return n(i);return setDestTimestampsAndMode(e,t,r,n)})}return setDestTimestampsAndMode(e,t,r,n)}function fileIsNotWritable(e){return(e&128)===0}function makeFileWritable(e,t,r){return setDestMode(e,t|128,r)}function setDestTimestampsAndMode(e,t,r,n){setDestTimestamps(t,r,t=>{if(t)return n(t);return setDestMode(r,e,n)})}function setDestMode(e,t,r){return n.chmod(e,t,r)}function setDestTimestamps(e,t,r){n.stat(e,(e,n)=>{if(e)return r(e);return a(t,n.atime,n.mtime,r)})}function onDir(e,t,r,n,i,s){if(!t)return mkDirAndCopy(e.mode,r,n,i,s);if(t&&!t.isDirectory()){return s(new Error(`Cannot overwrite non-directory '${n}' with directory '${r}'.`))}return copyDir(r,n,i,s)}function mkDirAndCopy(e,t,r,i,s){n.mkdir(r,n=>{if(n)return s(n);copyDir(t,r,i,t=>{if(t)return s(t);return setDestMode(r,e,s)})})}function copyDir(e,t,r,i){n.readdir(e,(n,s)=>{if(n)return i(n);return copyDirItems(s,e,t,r,i)})}function copyDirItems(e,t,r,n,i){const s=e.pop();if(!s)return i();return copyDirItem(e,s,t,r,n,i)}function copyDirItem(e,t,r,n,s,o){const a=i.join(r,t);const c=i.join(n,t);u.checkPaths(a,c,"copy",(t,i)=>{if(t)return o(t);const{destStat:u}=i;startCopy(u,a,c,s,t=>{if(t)return o(t);return copyDirItems(e,r,n,s,o)})})}function onLink(e,t,r,s,o){n.readlink(t,(t,a)=>{if(t)return o(t);if(s.dereference){a=i.resolve(process.cwd(),a)}if(!e){return n.symlink(a,r,o)}else{n.readlink(r,(t,c)=>{if(t){if(t.code==="EINVAL"||t.code==="UNKNOWN")return n.symlink(a,r,o);return o(t)}if(s.dereference){c=i.resolve(process.cwd(),c)}if(u.isSrcSubdir(a,c)){return o(new Error(`Cannot copy '${a}' to a subdirectory of itself, '${c}'.`))}if(e.isDirectory()&&u.isSrcSubdir(c,a)){return o(new Error(`Cannot overwrite '${c}' with '${a}'.`))}return copyLink(a,r,o)})}})}function copyLink(e,t,r){n.unlink(t,i=>{if(i)return r(i);return n.symlink(e,t,r)})}e.exports=copy},1335:(e,t,r)=>{"use strict";const n=r(9046).fromCallback;e.exports={copy:n(r(8834))}},6970:(e,t,r)=>{"use strict";const n=r(9046).fromCallback;const i=r(7758);const s=r(5622);const o=r(8605);const a=r(7357);const u=n(function emptyDir(e,t){t=t||function(){};i.readdir(e,(r,n)=>{if(r)return o.mkdirs(e,t);n=n.map(t=>s.join(e,t));deleteItem();function deleteItem(){const e=n.pop();if(!e)return t();a.remove(e,e=>{if(e)return t(e);deleteItem()})}})});function emptyDirSync(e){let t;try{t=i.readdirSync(e)}catch{return o.mkdirsSync(e)}t.forEach(t=>{t=s.join(e,t);a.removeSync(t)})}e.exports={emptyDirSync:emptyDirSync,emptydirSync:emptyDirSync,emptyDir:u,emptydir:u}},2164:(e,t,r)=>{"use strict";const n=r(9046).fromCallback;const i=r(5622);const s=r(7758);const o=r(8605);function createFile(e,t){function makeFile(){s.writeFile(e,"",e=>{if(e)return t(e);t()})}s.stat(e,(r,n)=>{if(!r&&n.isFile())return t();const a=i.dirname(e);s.stat(a,(e,r)=>{if(e){if(e.code==="ENOENT"){return o.mkdirs(a,e=>{if(e)return t(e);makeFile()})}return t(e)}if(r.isDirectory())makeFile();else{s.readdir(a,e=>{if(e)return t(e)})}})})}function createFileSync(e){let t;try{t=s.statSync(e)}catch{}if(t&&t.isFile())return;const r=i.dirname(e);try{if(!s.statSync(r).isDirectory()){s.readdirSync(r)}}catch(e){if(e&&e.code==="ENOENT")o.mkdirsSync(r);else throw e}s.writeFileSync(e,"")}e.exports={createFile:n(createFile),createFileSync:createFileSync}},55:(e,t,r)=>{"use strict";const n=r(2164);const i=r(3797);const s=r(2549);e.exports={createFile:n.createFile,createFileSync:n.createFileSync,ensureFile:n.createFile,ensureFileSync:n.createFileSync,createLink:i.createLink,createLinkSync:i.createLinkSync,ensureLink:i.createLink,ensureLinkSync:i.createLinkSync,createSymlink:s.createSymlink,createSymlinkSync:s.createSymlinkSync,ensureSymlink:s.createSymlink,ensureSymlinkSync:s.createSymlinkSync}},3797:(e,t,r)=>{"use strict";const n=r(9046).fromCallback;const i=r(5622);const s=r(7758);const o=r(8605);const a=r(3835).pathExists;function createLink(e,t,r){function makeLink(e,t){s.link(e,t,e=>{if(e)return r(e);r(null)})}a(t,(n,u)=>{if(n)return r(n);if(u)return r(null);s.lstat(e,n=>{if(n){n.message=n.message.replace("lstat","ensureLink");return r(n)}const s=i.dirname(t);a(s,(n,i)=>{if(n)return r(n);if(i)return makeLink(e,t);o.mkdirs(s,n=>{if(n)return r(n);makeLink(e,t)})})})})}function createLinkSync(e,t){const r=s.existsSync(t);if(r)return undefined;try{s.lstatSync(e)}catch(e){e.message=e.message.replace("lstat","ensureLink");throw e}const n=i.dirname(t);const a=s.existsSync(n);if(a)return s.linkSync(e,t);o.mkdirsSync(n);return s.linkSync(e,t)}e.exports={createLink:n(createLink),createLinkSync:createLinkSync}},3727:(e,t,r)=>{"use strict";const n=r(5622);const i=r(7758);const s=r(3835).pathExists;function symlinkPaths(e,t,r){if(n.isAbsolute(e)){return i.lstat(e,t=>{if(t){t.message=t.message.replace("lstat","ensureSymlink");return r(t)}return r(null,{toCwd:e,toDst:e})})}else{const o=n.dirname(t);const a=n.join(o,e);return s(a,(t,s)=>{if(t)return r(t);if(s){return r(null,{toCwd:a,toDst:e})}else{return i.lstat(e,t=>{if(t){t.message=t.message.replace("lstat","ensureSymlink");return r(t)}return r(null,{toCwd:e,toDst:n.relative(o,e)})})}})}}function symlinkPathsSync(e,t){let r;if(n.isAbsolute(e)){r=i.existsSync(e);if(!r)throw new Error("absolute srcpath does not exist");return{toCwd:e,toDst:e}}else{const s=n.dirname(t);const o=n.join(s,e);r=i.existsSync(o);if(r){return{toCwd:o,toDst:e}}else{r=i.existsSync(e);if(!r)throw new Error("relative srcpath does not exist");return{toCwd:e,toDst:n.relative(s,e)}}}}e.exports={symlinkPaths:symlinkPaths,symlinkPathsSync:symlinkPathsSync}},8254:(e,t,r)=>{"use strict";const n=r(7758);function symlinkType(e,t,r){r=typeof t==="function"?t:r;t=typeof t==="function"?false:t;if(t)return r(null,t);n.lstat(e,(e,n)=>{if(e)return r(null,"file");t=n&&n.isDirectory()?"dir":"file";r(null,t)})}function symlinkTypeSync(e,t){let r;if(t)return t;try{r=n.lstatSync(e)}catch{return"file"}return r&&r.isDirectory()?"dir":"file"}e.exports={symlinkType:symlinkType,symlinkTypeSync:symlinkTypeSync}},2549:(e,t,r)=>{"use strict";const n=r(9046).fromCallback;const i=r(5622);const s=r(7758);const o=r(8605);const a=o.mkdirs;const u=o.mkdirsSync;const c=r(3727);const l=c.symlinkPaths;const h=c.symlinkPathsSync;const f=r(8254);const d=f.symlinkType;const p=f.symlinkTypeSync;const m=r(3835).pathExists;function createSymlink(e,t,r,n){n=typeof r==="function"?r:n;r=typeof r==="function"?false:r;m(t,(o,u)=>{if(o)return n(o);if(u)return n(null);l(e,t,(o,u)=>{if(o)return n(o);e=u.toDst;d(u.toCwd,r,(r,o)=>{if(r)return n(r);const u=i.dirname(t);m(u,(r,i)=>{if(r)return n(r);if(i)return s.symlink(e,t,o,n);a(u,r=>{if(r)return n(r);s.symlink(e,t,o,n)})})})})})}function createSymlinkSync(e,t,r){const n=s.existsSync(t);if(n)return undefined;const o=h(e,t);e=o.toDst;r=p(o.toCwd,r);const a=i.dirname(t);const c=s.existsSync(a);if(c)return s.symlinkSync(e,t,r);u(a);return s.symlinkSync(e,t,r)}e.exports={createSymlink:n(createSymlink),createSymlinkSync:createSymlinkSync}},1176:(e,t,r)=>{"use strict";const n=r(9046).fromCallback;const i=r(7758);const s=["access","appendFile","chmod","chown","close","copyFile","fchmod","fchown","fdatasync","fstat","fsync","ftruncate","futimes","lchmod","lchown","link","lstat","mkdir","mkdtemp","open","opendir","readdir","readFile","readlink","realpath","rename","rmdir","stat","symlink","truncate","unlink","utimes","writeFile"].filter(e=>{return typeof i[e]==="function"});Object.keys(i).forEach(e=>{if(e==="promises"){return}t[e]=i[e]});s.forEach(e=>{t[e]=n(i[e])});t.exists=function(e,t){if(typeof t==="function"){return i.exists(e,t)}return new Promise(t=>{return i.exists(e,t)})};t.read=function(e,t,r,n,s,o){if(typeof o==="function"){return i.read(e,t,r,n,s,o)}return new Promise((o,a)=>{i.read(e,t,r,n,s,(e,t,r)=>{if(e)return a(e);o({bytesRead:t,buffer:r})})})};t.write=function(e,t,...r){if(typeof r[r.length-1]==="function"){return i.write(e,t,...r)}return new Promise((n,s)=>{i.write(e,t,...r,(e,t,r)=>{if(e)return s(e);n({bytesWritten:t,buffer:r})})})};if(typeof i.writev==="function"){t.writev=function(e,t,...r){if(typeof r[r.length-1]==="function"){return i.writev(e,t,...r)}return new Promise((n,s)=>{i.writev(e,t,...r,(e,t,r)=>{if(e)return s(e);n({bytesWritten:t,buffers:r})})})}}if(typeof i.realpath.native==="function"){t.realpath.native=n(i.realpath.native)}},5630:(e,t,r)=>{"use strict";e.exports={...r(1176),...r(1135),...r(1335),...r(6970),...r(55),...r(213),...r(8605),...r(9665),...r(1497),...r(6570),...r(3835),...r(7357)};const n=r(5747);if(Object.getOwnPropertyDescriptor(n,"promises")){Object.defineProperty(e.exports,"promises",{get(){return n.promises}})}},213:(e,t,r)=>{"use strict";const n=r(9046).fromPromise;const i=r(8970);i.outputJson=n(r(531));i.outputJsonSync=r(9421);i.outputJSON=i.outputJson;i.outputJSONSync=i.outputJsonSync;i.writeJSON=i.writeJson;i.writeJSONSync=i.writeJsonSync;i.readJSON=i.readJson;i.readJSONSync=i.readJsonSync;e.exports=i},8970:(e,t,r)=>{"use strict";const n=r(6160);e.exports={readJson:n.readFile,readJsonSync:n.readFileSync,writeJson:n.writeFile,writeJsonSync:n.writeFileSync}},9421:(e,t,r)=>{"use strict";const{stringify:n}=r(5902);const{outputFileSync:i}=r(6570);function outputJsonSync(e,t,r){const s=n(t,r);i(e,s,r)}e.exports=outputJsonSync},531:(e,t,r)=>{"use strict";const{stringify:n}=r(5902);const{outputFile:i}=r(6570);async function outputJson(e,t,r={}){const s=n(t,r);await i(e,s,r)}e.exports=outputJson},8605:(e,t,r)=>{"use strict";const n=r(9046).fromPromise;const{makeDir:i,makeDirSync:s}=r(2751);const o=n(i);e.exports={mkdirs:o,mkdirsSync:s,mkdirp:o,mkdirpSync:s,ensureDir:o,ensureDirSync:s}},2751:(e,t,r)=>{"use strict";const n=r(1176);const i=r(5622);const s=r(5995);const o=s("10.12.0");const a=e=>{if(process.platform==="win32"){const t=/[<>:"|?*]/.test(e.replace(i.parse(e).root,""));if(t){const t=new Error(`Path contains invalid characters: ${e}`);t.code="EINVAL";throw t}}};const u=e=>{const t={mode:511&~process.umask()};if(typeof e==="number")e={mode:e};return{...t,...e}};const c=e=>{const t=new Error(`operation not permitted, mkdir '${e}'`);t.code="EPERM";t.errno=-4048;t.path=e;t.syscall="mkdir";return t};e.exports.makeDir=(async(e,t)=>{a(e);t=u(t);if(o){const r=i.resolve(e);return n.mkdir(r,{mode:t.mode,recursive:true})}const r=async e=>{try{await n.mkdir(e,t.mode)}catch(t){if(t.code==="EPERM"){throw t}if(t.code==="ENOENT"){if(i.dirname(e)===e){throw c(e)}if(t.message.includes("null bytes")){throw t}await r(i.dirname(e));return r(e)}try{const r=await n.stat(e);if(!r.isDirectory()){throw new Error("The path is not a directory")}}catch{throw t}}};return r(i.resolve(e))});e.exports.makeDirSync=((e,t)=>{a(e);t=u(t);if(o){const r=i.resolve(e);return n.mkdirSync(r,{mode:t.mode,recursive:true})}const r=e=>{try{n.mkdirSync(e,t.mode)}catch(t){if(t.code==="EPERM"){throw t}if(t.code==="ENOENT"){if(i.dirname(e)===e){throw c(e)}if(t.message.includes("null bytes")){throw t}r(i.dirname(e));return r(e)}try{if(!n.statSync(e).isDirectory()){throw new Error("The path is not a directory")}}catch{throw t}}};return r(i.resolve(e))})},9665:(e,t,r)=>{"use strict";e.exports={moveSync:r(6445)}},6445:(e,t,r)=>{"use strict";const n=r(7758);const i=r(5622);const s=r(1135).copySync;const o=r(7357).removeSync;const a=r(8605).mkdirpSync;const u=r(3901);function moveSync(e,t,r){r=r||{};const n=r.overwrite||r.clobber||false;const{srcStat:s}=u.checkPathsSync(e,t,"move");u.checkParentPathsSync(e,s,t,"move");a(i.dirname(t));return doRename(e,t,n)}function doRename(e,t,r){if(r){o(t);return rename(e,t,r)}if(n.existsSync(t))throw new Error("dest already exists.");return rename(e,t,r)}function rename(e,t,r){try{n.renameSync(e,t)}catch(n){if(n.code!=="EXDEV")throw n;return moveAcrossDevice(e,t,r)}}function moveAcrossDevice(e,t,r){const n={overwrite:r,errorOnExist:true};s(e,t,n);return o(e)}e.exports=moveSync},1497:(e,t,r)=>{"use strict";const n=r(9046).fromCallback;e.exports={move:n(r(2231))}},2231:(e,t,r)=>{"use strict";const n=r(7758);const i=r(5622);const s=r(1335).copy;const o=r(7357).remove;const a=r(8605).mkdirp;const u=r(3835).pathExists;const c=r(3901);function move(e,t,r,n){if(typeof r==="function"){n=r;r={}}const s=r.overwrite||r.clobber||false;c.checkPaths(e,t,"move",(r,o)=>{if(r)return n(r);const{srcStat:u}=o;c.checkParentPaths(e,u,t,"move",r=>{if(r)return n(r);a(i.dirname(t),r=>{if(r)return n(r);return doRename(e,t,s,n)})})})}function doRename(e,t,r,n){if(r){return o(t,i=>{if(i)return n(i);return rename(e,t,r,n)})}u(t,(i,s)=>{if(i)return n(i);if(s)return n(new Error("dest already exists."));return rename(e,t,r,n)})}function rename(e,t,r,i){n.rename(e,t,n=>{if(!n)return i();if(n.code!=="EXDEV")return i(n);return moveAcrossDevice(e,t,r,i)})}function moveAcrossDevice(e,t,r,n){const i={overwrite:r,errorOnExist:true};s(e,t,i,t=>{if(t)return n(t);return o(e,n)})}e.exports=move},6570:(e,t,r)=>{"use strict";const n=r(9046).fromCallback;const i=r(7758);const s=r(5622);const o=r(8605);const a=r(3835).pathExists;function outputFile(e,t,r,n){if(typeof r==="function"){n=r;r="utf8"}const u=s.dirname(e);a(u,(s,a)=>{if(s)return n(s);if(a)return i.writeFile(e,t,r,n);o.mkdirs(u,s=>{if(s)return n(s);i.writeFile(e,t,r,n)})})}function outputFileSync(e,...t){const r=s.dirname(e);if(i.existsSync(r)){return i.writeFileSync(e,...t)}o.mkdirsSync(r);i.writeFileSync(e,...t)}e.exports={outputFile:n(outputFile),outputFileSync:outputFileSync}},3835:(e,t,r)=>{"use strict";const n=r(9046).fromPromise;const i=r(1176);function pathExists(e){return i.access(e).then(()=>true).catch(()=>false)}e.exports={pathExists:n(pathExists),pathExistsSync:i.existsSync}},7357:(e,t,r)=>{"use strict";const n=r(9046).fromCallback;const i=r(8761);e.exports={remove:n(i),removeSync:i.sync}},8761:(e,t,r)=>{"use strict";const n=r(7758);const i=r(5622);const s=r(2357);const o=process.platform==="win32";function defaults(e){const t=["unlink","chmod","stat","lstat","rmdir","readdir"];t.forEach(t=>{e[t]=e[t]||n[t];t=t+"Sync";e[t]=e[t]||n[t]});e.maxBusyTries=e.maxBusyTries||3}function rimraf(e,t,r){let n=0;if(typeof t==="function"){r=t;t={}}s(e,"rimraf: missing path");s.strictEqual(typeof e,"string","rimraf: path should be a string");s.strictEqual(typeof r,"function","rimraf: callback function required");s(t,"rimraf: invalid options argument provided");s.strictEqual(typeof t,"object","rimraf: options should be object");defaults(t);rimraf_(e,t,function CB(i){if(i){if((i.code==="EBUSY"||i.code==="ENOTEMPTY"||i.code==="EPERM")&&n<t.maxBusyTries){n++;const r=n*100;return setTimeout(()=>rimraf_(e,t,CB),r)}if(i.code==="ENOENT")i=null}r(i)})}function rimraf_(e,t,r){s(e);s(t);s(typeof r==="function");t.lstat(e,(n,i)=>{if(n&&n.code==="ENOENT"){return r(null)}if(n&&n.code==="EPERM"&&o){return fixWinEPERM(e,t,n,r)}if(i&&i.isDirectory()){return rmdir(e,t,n,r)}t.unlink(e,n=>{if(n){if(n.code==="ENOENT"){return r(null)}if(n.code==="EPERM"){return o?fixWinEPERM(e,t,n,r):rmdir(e,t,n,r)}if(n.code==="EISDIR"){return rmdir(e,t,n,r)}}return r(n)})})}function fixWinEPERM(e,t,r,n){s(e);s(t);s(typeof n==="function");if(r){s(r instanceof Error)}t.chmod(e,438,i=>{if(i){n(i.code==="ENOENT"?null:r)}else{t.stat(e,(i,s)=>{if(i){n(i.code==="ENOENT"?null:r)}else if(s.isDirectory()){rmdir(e,t,r,n)}else{t.unlink(e,n)}})}})}function fixWinEPERMSync(e,t,r){let n;s(e);s(t);if(r){s(r instanceof Error)}try{t.chmodSync(e,438)}catch(e){if(e.code==="ENOENT"){return}else{throw r}}try{n=t.statSync(e)}catch(e){if(e.code==="ENOENT"){return}else{throw r}}if(n.isDirectory()){rmdirSync(e,t,r)}else{t.unlinkSync(e)}}function rmdir(e,t,r,n){s(e);s(t);if(r){s(r instanceof Error)}s(typeof n==="function");t.rmdir(e,i=>{if(i&&(i.code==="ENOTEMPTY"||i.code==="EEXIST"||i.code==="EPERM")){rmkids(e,t,n)}else if(i&&i.code==="ENOTDIR"){n(r)}else{n(i)}})}function rmkids(e,t,r){s(e);s(t);s(typeof r==="function");t.readdir(e,(n,s)=>{if(n)return r(n);let o=s.length;let a;if(o===0)return t.rmdir(e,r);s.forEach(n=>{rimraf(i.join(e,n),t,n=>{if(a){return}if(n)return r(a=n);if(--o===0){t.rmdir(e,r)}})})})}function rimrafSync(e,t){let r;t=t||{};defaults(t);s(e,"rimraf: missing path");s.strictEqual(typeof e,"string","rimraf: path should be a string");s(t,"rimraf: missing options");s.strictEqual(typeof t,"object","rimraf: options should be object");try{r=t.lstatSync(e)}catch(r){if(r.code==="ENOENT"){return}if(r.code==="EPERM"&&o){fixWinEPERMSync(e,t,r)}}try{if(r&&r.isDirectory()){rmdirSync(e,t,null)}else{t.unlinkSync(e)}}catch(r){if(r.code==="ENOENT"){return}else if(r.code==="EPERM"){return o?fixWinEPERMSync(e,t,r):rmdirSync(e,t,r)}else if(r.code!=="EISDIR"){throw r}rmdirSync(e,t,r)}}function rmdirSync(e,t,r){s(e);s(t);if(r){s(r instanceof Error)}try{t.rmdirSync(e)}catch(n){if(n.code==="ENOTDIR"){throw r}else if(n.code==="ENOTEMPTY"||n.code==="EEXIST"||n.code==="EPERM"){rmkidsSync(e,t)}else if(n.code!=="ENOENT"){throw n}}}function rmkidsSync(e,t){s(e);s(t);t.readdirSync(e).forEach(r=>rimrafSync(i.join(e,r),t));if(o){const r=Date.now();do{try{const r=t.rmdirSync(e,t);return r}catch{}}while(Date.now()-r<500)}else{const r=t.rmdirSync(e,t);return r}}e.exports=rimraf;rimraf.sync=rimrafSync},3901:(e,t,r)=>{"use strict";const n=r(1176);const i=r(5622);const s=r(1669);const o=r(5995);const a=o("10.5.0");const u=e=>a?n.stat(e,{bigint:true}):n.stat(e);const c=e=>a?n.statSync(e,{bigint:true}):n.statSync(e);function getStats(e,t){return Promise.all([u(e),u(t).catch(e=>{if(e.code==="ENOENT")return null;throw e})]).then(([e,t])=>({srcStat:e,destStat:t}))}function getStatsSync(e,t){let r;const n=c(e);try{r=c(t)}catch(e){if(e.code==="ENOENT")return{srcStat:n,destStat:null};throw e}return{srcStat:n,destStat:r}}function checkPaths(e,t,r,n){s.callbackify(getStats)(e,t,(i,s)=>{if(i)return n(i);const{srcStat:o,destStat:a}=s;if(a&&areIdentical(o,a)){return n(new Error("Source and destination must not be the same."))}if(o.isDirectory()&&isSrcSubdir(e,t)){return n(new Error(errMsg(e,t,r)))}return n(null,{srcStat:o,destStat:a})})}function checkPathsSync(e,t,r){const{srcStat:n,destStat:i}=getStatsSync(e,t);if(i&&areIdentical(n,i)){throw new Error("Source and destination must not be the same.")}if(n.isDirectory()&&isSrcSubdir(e,t)){throw new Error(errMsg(e,t,r))}return{srcStat:n,destStat:i}}function checkParentPaths(e,t,r,s,o){const u=i.resolve(i.dirname(e));const c=i.resolve(i.dirname(r));if(c===u||c===i.parse(c).root)return o();const l=(n,i)=>{if(n){if(n.code==="ENOENT")return o();return o(n)}if(areIdentical(t,i)){return o(new Error(errMsg(e,r,s)))}return checkParentPaths(e,t,c,s,o)};if(a)n.stat(c,{bigint:true},l);else n.stat(c,l)}function checkParentPathsSync(e,t,r,n){const s=i.resolve(i.dirname(e));const o=i.resolve(i.dirname(r));if(o===s||o===i.parse(o).root)return;let a;try{a=c(o)}catch(e){if(e.code==="ENOENT")return;throw e}if(areIdentical(t,a)){throw new Error(errMsg(e,r,n))}return checkParentPathsSync(e,t,o,n)}function areIdentical(e,t){if(t.ino&&t.dev&&t.ino===e.ino&&t.dev===e.dev){if(a||t.ino<Number.MAX_SAFE_INTEGER){return true}if(t.size===e.size&&t.mode===e.mode&&t.nlink===e.nlink&&t.atimeMs===e.atimeMs&&t.mtimeMs===e.mtimeMs&&t.ctimeMs===e.ctimeMs&&t.birthtimeMs===e.birthtimeMs){return true}}return false}function isSrcSubdir(e,t){const r=i.resolve(e).split(i.sep).filter(e=>e);const n=i.resolve(t).split(i.sep).filter(e=>e);return r.reduce((e,t,r)=>e&&n[r]===t,true)}function errMsg(e,t,r){return`Cannot ${r} '${e}' to a subdirectory of itself, '${t}'.`}e.exports={checkPaths:checkPaths,checkPathsSync:checkPathsSync,checkParentPaths:checkParentPaths,checkParentPathsSync:checkParentPathsSync,isSrcSubdir:isSrcSubdir}},2548:(e,t,r)=>{"use strict";const n=r(7758);function utimesMillis(e,t,r,i){n.open(e,"r+",(e,s)=>{if(e)return i(e);n.futimes(s,t,r,e=>{n.close(s,t=>{if(i)i(e||t)})})})}function utimesMillisSync(e,t,r){const i=n.openSync(e,"r+");n.futimesSync(i,t,r);return n.closeSync(i)}e.exports={utimesMillis:utimesMillis,utimesMillisSync:utimesMillisSync}},7714:(e,t,r)=>{"use strict";const n=r(1077);const i=r(8614).EventEmitter;const s=r(5747);let o=s.writev;if(!o){const e=process.binding("fs");const t=e.FSReqWrap||e.FSReqCallback;o=((r,n,i,s)=>{const o=(e,t)=>s(e,t,n);const a=new t;a.oncomplete=o;e.writeBuffers(r,n,i,a)})}const a=Symbol("_autoClose");const u=Symbol("_close");const c=Symbol("_ended");const l=Symbol("_fd");const h=Symbol("_finished");const f=Symbol("_flags");const d=Symbol("_flush");const p=Symbol("_handleChunk");const m=Symbol("_makeBuf");const y=Symbol("_mode");const g=Symbol("_needDrain");const v=Symbol("_onerror");const b=Symbol("_onopen");const w=Symbol("_onread");const A=Symbol("_onwrite");const E=Symbol("_open");const _=Symbol("_path");const D=Symbol("_pos");const S=Symbol("_queue");const C=Symbol("_read");const x=Symbol("_readSize");const R=Symbol("_reading");const O=Symbol("_remain");const F=Symbol("_size");const P=Symbol("_write");const T=Symbol("_writing");const k=Symbol("_defaultFlag");const B=Symbol("_errored");class ReadStream extends n{constructor(e,t){t=t||{};super(t);this.readable=true;this.writable=false;if(typeof e!=="string")throw new TypeError("path must be a string");this[B]=false;this[l]=typeof t.fd==="number"?t.fd:null;this[_]=e;this[x]=t.readSize||16*1024*1024;this[R]=false;this[F]=typeof t.size==="number"?t.size:Infinity;this[O]=this[F];this[a]=typeof t.autoClose==="boolean"?t.autoClose:true;if(typeof this[l]==="number")this[C]();else this[E]()}get fd(){return this[l]}get path(){return this[_]}write(){throw new TypeError("this is a readable stream")}end(){throw new TypeError("this is a readable stream")}[E](){s.open(this[_],"r",(e,t)=>this[b](e,t))}[b](e,t){if(e)this[v](e);else{this[l]=t;this.emit("open",t);this[C]()}}[m](){return Buffer.allocUnsafe(Math.min(this[x],this[O]))}[C](){if(!this[R]){this[R]=true;const e=this[m]();if(e.length===0)return process.nextTick(()=>this[w](null,0,e));s.read(this[l],e,0,e.length,null,(e,t,r)=>this[w](e,t,r))}}[w](e,t,r){this[R]=false;if(e)this[v](e);else if(this[p](t,r))this[C]()}[u](){if(this[a]&&typeof this[l]==="number"){const e=this[l];this[l]=null;s.close(e,e=>e?this.emit("error",e):this.emit("close"))}}[v](e){this[R]=true;this[u]();this.emit("error",e)}[p](e,t){let r=false;this[O]-=e;if(e>0)r=super.write(e<t.length?t.slice(0,e):t);if(e===0||this[O]<=0){r=false;this[u]();super.end()}return r}emit(e,t){switch(e){case"prefinish":case"finish":break;case"drain":if(typeof this[l]==="number")this[C]();break;case"error":if(this[B])return;this[B]=true;return super.emit(e,t);default:return super.emit(e,t)}}}class ReadStreamSync extends ReadStream{[E](){let e=true;try{this[b](null,s.openSync(this[_],"r"));e=false}finally{if(e)this[u]()}}[C](){let e=true;try{if(!this[R]){this[R]=true;do{const e=this[m]();const t=e.length===0?0:s.readSync(this[l],e,0,e.length,null);if(!this[p](t,e))break}while(true);this[R]=false}e=false}finally{if(e)this[u]()}}[u](){if(this[a]&&typeof this[l]==="number"){const e=this[l];this[l]=null;s.closeSync(e);this.emit("close")}}}class WriteStream extends i{constructor(e,t){t=t||{};super(t);this.readable=false;this.writable=true;this[B]=false;this[T]=false;this[c]=false;this[g]=false;this[S]=[];this[_]=e;this[l]=typeof t.fd==="number"?t.fd:null;this[y]=t.mode===undefined?438:t.mode;this[D]=typeof t.start==="number"?t.start:null;this[a]=typeof t.autoClose==="boolean"?t.autoClose:true;const r=this[D]!==null?"r+":"w";this[k]=t.flags===undefined;this[f]=this[k]?r:t.flags;if(this[l]===null)this[E]()}emit(e,t){if(e==="error"){if(this[B])return;this[B]=true}return super.emit(e,t)}get fd(){return this[l]}get path(){return this[_]}[v](e){this[u]();this[T]=true;this.emit("error",e)}[E](){s.open(this[_],this[f],this[y],(e,t)=>this[b](e,t))}[b](e,t){if(this[k]&&this[f]==="r+"&&e&&e.code==="ENOENT"){this[f]="w";this[E]()}else if(e)this[v](e);else{this[l]=t;this.emit("open",t);this[d]()}}end(e,t){if(e)this.write(e,t);this[c]=true;if(!this[T]&&!this[S].length&&typeof this[l]==="number")this[A](null,0);return this}write(e,t){if(typeof e==="string")e=Buffer.from(e,t);if(this[c]){this.emit("error",new Error("write() after end()"));return false}if(this[l]===null||this[T]||this[S].length){this[S].push(e);this[g]=true;return false}this[T]=true;this[P](e);return true}[P](e){s.write(this[l],e,0,e.length,this[D],(e,t)=>this[A](e,t))}[A](e,t){if(e)this[v](e);else{if(this[D]!==null)this[D]+=t;if(this[S].length)this[d]();else{this[T]=false;if(this[c]&&!this[h]){this[h]=true;this[u]();this.emit("finish")}else if(this[g]){this[g]=false;this.emit("drain")}}}}[d](){if(this[S].length===0){if(this[c])this[A](null,0)}else if(this[S].length===1)this[P](this[S].pop());else{const e=this[S];this[S]=[];o(this[l],e,this[D],(e,t)=>this[A](e,t))}}[u](){if(this[a]&&typeof this[l]==="number"){const e=this[l];this[l]=null;s.close(e,e=>e?this.emit("error",e):this.emit("close"))}}}class WriteStreamSync extends WriteStream{[E](){let e;if(this[k]&&this[f]==="r+"){try{e=s.openSync(this[_],this[f],this[y])}catch(e){if(e.code==="ENOENT"){this[f]="w";return this[E]()}else throw e}}else e=s.openSync(this[_],this[f],this[y]);this[b](null,e)}[u](){if(this[a]&&typeof this[l]==="number"){const e=this[l];this[l]=null;s.closeSync(e);this.emit("close")}}[P](e){let t=true;try{this[A](null,s.writeSync(this[l],e,0,e.length,this[D]));t=false}finally{if(t)try{this[u]()}catch(e){}}}}t.ReadStream=ReadStream;t.ReadStreamSync=ReadStreamSync;t.WriteStream=WriteStream;t.WriteStreamSync=WriteStreamSync},6863:(e,t,r)=>{e.exports=realpath;realpath.realpath=realpath;realpath.sync=realpathSync;realpath.realpathSync=realpathSync;realpath.monkeypatch=monkeypatch;realpath.unmonkeypatch=unmonkeypatch;var n=r(5747);var i=n.realpath;var s=n.realpathSync;var o=process.version;var a=/^v[0-5]\./.test(o);var u=r(1734);function newError(e){return e&&e.syscall==="realpath"&&(e.code==="ELOOP"||e.code==="ENOMEM"||e.code==="ENAMETOOLONG")}function realpath(e,t,r){if(a){return i(e,t,r)}if(typeof t==="function"){r=t;t=null}i(e,t,function(n,i){if(newError(n)){u.realpath(e,t,r)}else{r(n,i)}})}function realpathSync(e,t){if(a){return s(e,t)}try{return s(e,t)}catch(r){if(newError(r)){return u.realpathSync(e,t)}else{throw r}}}function monkeypatch(){n.realpath=realpath;n.realpathSync=realpathSync}function unmonkeypatch(){n.realpath=i;n.realpathSync=s}},1734:(e,t,r)=>{var n=r(5622);var i=process.platform==="win32";var s=r(5747);var o=process.env.NODE_DEBUG&&/fs/.test(process.env.NODE_DEBUG);function rethrow(){var e;if(o){var t=new Error;e=debugCallback}else e=missingCallback;return e;function debugCallback(e){if(e){t.message=e.message;e=t;missingCallback(e)}}function missingCallback(e){if(e){if(process.throwDeprecation)throw e;else if(!process.noDeprecation){var t="fs: missing callback "+(e.stack||e.message);if(process.traceDeprecation)console.trace(t);else console.error(t)}}}}function maybeCallback(e){return typeof e==="function"?e:rethrow()}var a=n.normalize;if(i){var u=/(.*?)(?:[\/\\]+|$)/g}else{var u=/(.*?)(?:[\/]+|$)/g}if(i){var c=/^(?:[a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/][^\\\/]+)?[\\\/]*/}else{var c=/^[\/]*/}t.realpathSync=function realpathSync(e,t){e=n.resolve(e);if(t&&Object.prototype.hasOwnProperty.call(t,e)){return t[e]}var r=e,o={},a={};var l;var h;var f;var d;start();function start(){var t=c.exec(e);l=t[0].length;h=t[0];f=t[0];d="";if(i&&!a[f]){s.lstatSync(f);a[f]=true}}while(l<e.length){u.lastIndex=l;var p=u.exec(e);d=h;h+=p[0];f=d+p[1];l=u.lastIndex;if(a[f]||t&&t[f]===f){continue}var m;if(t&&Object.prototype.hasOwnProperty.call(t,f)){m=t[f]}else{var y=s.lstatSync(f);if(!y.isSymbolicLink()){a[f]=true;if(t)t[f]=f;continue}var g=null;if(!i){var v=y.dev.toString(32)+":"+y.ino.toString(32);if(o.hasOwnProperty(v)){g=o[v]}}if(g===null){s.statSync(f);g=s.readlinkSync(f)}m=n.resolve(d,g);if(t)t[f]=m;if(!i)o[v]=g}e=n.resolve(m,e.slice(l));start()}if(t)t[r]=e;return e};t.realpath=function realpath(e,t,r){if(typeof r!=="function"){r=maybeCallback(t);t=null}e=n.resolve(e);if(t&&Object.prototype.hasOwnProperty.call(t,e)){return process.nextTick(r.bind(null,null,t[e]))}var o=e,a={},l={};var h;var f;var d;var p;start();function start(){var t=c.exec(e);h=t[0].length;f=t[0];d=t[0];p="";if(i&&!l[d]){s.lstat(d,function(e){if(e)return r(e);l[d]=true;LOOP()})}else{process.nextTick(LOOP)}}function LOOP(){if(h>=e.length){if(t)t[o]=e;return r(null,e)}u.lastIndex=h;var n=u.exec(e);p=f;f+=n[0];d=p+n[1];h=u.lastIndex;if(l[d]||t&&t[d]===d){return process.nextTick(LOOP)}if(t&&Object.prototype.hasOwnProperty.call(t,d)){return gotResolvedLink(t[d])}return s.lstat(d,gotStat)}function gotStat(e,n){if(e)return r(e);if(!n.isSymbolicLink()){l[d]=true;if(t)t[d]=d;return process.nextTick(LOOP)}if(!i){var o=n.dev.toString(32)+":"+n.ino.toString(32);if(a.hasOwnProperty(o)){return gotTarget(null,a[o],d)}}s.stat(d,function(e){if(e)return r(e);s.readlink(d,function(e,t){if(!i)a[o]=t;gotTarget(e,t)})})}function gotTarget(e,i,s){if(e)return r(e);var o=n.resolve(p,i);if(t)t[s]=o;gotResolvedLink(o)}function gotResolvedLink(t){e=n.resolve(t,e.slice(h));start()}}},1585:(e,t,r)=>{"use strict";const{PassThrough:n}=r(2413);e.exports=(e=>{e={...e};const{array:t}=e;let{encoding:r}=e;const i=r==="buffer";let s=false;if(t){s=!(r||i)}else{r=r||"utf8"}if(i){r=null}const o=new n({objectMode:s});if(r){o.setEncoding(r)}let a=0;const u=[];o.on("data",e=>{u.push(e);if(s){a=u.length}else{a+=e.length}});o.getBufferedValue=(()=>{if(t){return u}return i?Buffer.concat(u,a):u.join("")});o.getBufferedLength=(()=>a);return o})},1766:(e,t,r)=>{"use strict";const n=r(8341);const i=r(1585);class MaxBufferError extends Error{constructor(){super("maxBuffer exceeded");this.name="MaxBufferError"}}async function getStream(e,t){if(!e){return Promise.reject(new Error("Expected a stream"))}t={maxBuffer:Infinity,...t};const{maxBuffer:r}=t;let s;await new Promise((o,a)=>{const u=e=>{if(e){e.bufferedData=s.getBufferedValue()}a(e)};s=n(e,i(t),e=>{if(e){u(e);return}o()});s.on("data",()=>{if(s.getBufferedLength()>r){u(new MaxBufferError)}})});return s.getBufferedValue()}e.exports=getStream;e.exports.default=getStream;e.exports.buffer=((e,t)=>getStream(e,{...t,encoding:"buffer"}));e.exports.array=((e,t)=>getStream(e,{...t,array:true}));e.exports.MaxBufferError=MaxBufferError},6037:(e,t,r)=>{const n=r(1669);const i=r(8835);let s=false;let o=true;function _value(e,t){const r=process.env[e];if(r===undefined){if(t===undefined&&!o){return r}if(t===undefined){throw new Error("GetEnv.Nonexistent: "+e+" does not exist "+"and no fallback value provided.")}if(s){throw new Error("GetEnv.DisabledFallbacks: "+e+" relying on fallback "+"when fallbacks have been disabled")}return""+t}return r}const a={string:function(e){return""+e},int:function(e){const t=e.match(/^-?\d+$/);if(!t){throw new Error("GetEnv.NoInteger: "+e+" is not an integer.")}return+e},float:function(e){const t=+e===Infinity||+e===-Infinity;if(t){throw new Error("GetEnv.Infinity: "+e+" is set to +/-Infinity.")}const r=!(isNaN(e)||e==="");if(!r){throw new Error("GetEnv.NoFloat: "+e+" is not a number.")}return+e},bool:function(e){const t=e==="true"||e==="false";if(!t){throw new Error("GetEnv.NoBoolean: "+e+" is not a boolean.")}return e==="true"},boolish:function(e){try{return a.bool(e)}catch(t){const r=e==="1"||e==="0";if(!r){throw new Error("GetEnv.NoBoolean: "+e+" is not a boolean.")}return e==="1"}},url:i.parse};function converter(e){return function(t,r){if(typeof t=="string"){const n=_value(t,r);return a[e](n)}else{return u.multi(t)}}}const u=converter("string");Object.keys(a).forEach(function(e){u[e]=converter(e)});u.array=function array(e,t,r){t=t||"string";if(Object.keys(a).indexOf(t)===-1){throw new Error("GetEnv.ArrayUndefinedType: Unknown array type "+t)}const n=_value(e,r);return n.split(/\s*,\s*/).map(a[t])};u.multi=function multi(e){const t={};for(let r in e){const i=e[r];if(n.isArray(i)){switch(i.length){case 1:case 2:t[r]=u(i[0],i[1]);break;case 3:t[r]=u[i[2]](i[0],i[1]);break;default:throw"getenv.multi(): invalid spec";break}}else{t[r]=u(i)}}return t};u.disableFallbacks=function(){s=true};u.enableFallbacks=function(){s=false};u.disableErrors=function(){o=false};u.enableErrors=function(){o=true};e.exports=u},7625:(e,t,r)=>{t.alphasort=alphasort;t.alphasorti=alphasorti;t.setopts=setopts;t.ownProp=ownProp;t.makeAbs=makeAbs;t.finish=finish;t.mark=mark;t.isIgnored=isIgnored;t.childrenIgnored=childrenIgnored;function ownProp(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var n=r(5622);var i=r(3973);var s=r(8714);var o=i.Minimatch;function alphasorti(e,t){return e.toLowerCase().localeCompare(t.toLowerCase())}function alphasort(e,t){return e.localeCompare(t)}function setupIgnores(e,t){e.ignore=t.ignore||[];if(!Array.isArray(e.ignore))e.ignore=[e.ignore];if(e.ignore.length){e.ignore=e.ignore.map(ignoreMap)}}function ignoreMap(e){var t=null;if(e.slice(-3)==="/**"){var r=e.replace(/(\/\*\*)+$/,"");t=new o(r,{dot:true})}return{matcher:new o(e,{dot:true}),gmatcher:t}}function setopts(e,t,r){if(!r)r={};if(r.matchBase&&-1===t.indexOf("/")){if(r.noglobstar){throw new Error("base matching requires globstar")}t="**/"+t}e.silent=!!r.silent;e.pattern=t;e.strict=r.strict!==false;e.realpath=!!r.realpath;e.realpathCache=r.realpathCache||Object.create(null);e.follow=!!r.follow;e.dot=!!r.dot;e.mark=!!r.mark;e.nodir=!!r.nodir;if(e.nodir)e.mark=true;e.sync=!!r.sync;e.nounique=!!r.nounique;e.nonull=!!r.nonull;e.nosort=!!r.nosort;e.nocase=!!r.nocase;e.stat=!!r.stat;e.noprocess=!!r.noprocess;e.absolute=!!r.absolute;e.maxLength=r.maxLength||Infinity;e.cache=r.cache||Object.create(null);e.statCache=r.statCache||Object.create(null);e.symlinks=r.symlinks||Object.create(null);setupIgnores(e,r);e.changedCwd=false;var i=process.cwd();if(!ownProp(r,"cwd"))e.cwd=i;else{e.cwd=n.resolve(r.cwd);e.changedCwd=e.cwd!==i}e.root=r.root||n.resolve(e.cwd,"/");e.root=n.resolve(e.root);if(process.platform==="win32")e.root=e.root.replace(/\\/g,"/");e.cwdAbs=s(e.cwd)?e.cwd:makeAbs(e,e.cwd);if(process.platform==="win32")e.cwdAbs=e.cwdAbs.replace(/\\/g,"/");e.nomount=!!r.nomount;r.nonegate=true;r.nocomment=true;e.minimatch=new o(t,r);e.options=e.minimatch.options}function finish(e){var t=e.nounique;var r=t?[]:Object.create(null);for(var n=0,i=e.matches.length;n<i;n++){var s=e.matches[n];if(!s||Object.keys(s).length===0){if(e.nonull){var o=e.minimatch.globSet[n];if(t)r.push(o);else r[o]=true}}else{var a=Object.keys(s);if(t)r.push.apply(r,a);else a.forEach(function(e){r[e]=true})}}if(!t)r=Object.keys(r);if(!e.nosort)r=r.sort(e.nocase?alphasorti:alphasort);if(e.mark){for(var n=0;n<r.length;n++){r[n]=e._mark(r[n])}if(e.nodir){r=r.filter(function(t){var r=!/\/$/.test(t);var n=e.cache[t]||e.cache[makeAbs(e,t)];if(r&&n)r=n!=="DIR"&&!Array.isArray(n);return r})}}if(e.ignore.length)r=r.filter(function(t){return!isIgnored(e,t)});e.found=r}function mark(e,t){var r=makeAbs(e,t);var n=e.cache[r];var i=t;if(n){var s=n==="DIR"||Array.isArray(n);var o=t.slice(-1)==="/";if(s&&!o)i+="/";else if(!s&&o)i=i.slice(0,-1);if(i!==t){var a=makeAbs(e,i);e.statCache[a]=e.statCache[r];e.cache[a]=e.cache[r]}}return i}function makeAbs(e,t){var r=t;if(t.charAt(0)==="/"){r=n.join(e.root,t)}else if(s(t)||t===""){r=t}else if(e.changedCwd){r=n.resolve(e.cwd,t)}else{r=n.resolve(t)}if(process.platform==="win32")r=r.replace(/\\/g,"/");return r}function isIgnored(e,t){if(!e.ignore.length)return false;return e.ignore.some(function(e){return e.matcher.match(t)||!!(e.gmatcher&&e.gmatcher.match(t))})}function childrenIgnored(e,t){if(!e.ignore.length)return false;return e.ignore.some(function(e){return!!(e.gmatcher&&e.gmatcher.match(t))})}},1957:(e,t,r)=>{e.exports=glob;var n=r(5747);var i=r(6863);var s=r(3973);var o=s.Minimatch;var a=r(4124);var u=r(8614).EventEmitter;var c=r(5622);var l=r(2357);var h=r(8714);var f=r(9010);var d=r(7625);var p=d.alphasort;var m=d.alphasorti;var y=d.setopts;var g=d.ownProp;var v=r(2492);var b=r(1669);var w=d.childrenIgnored;var A=d.isIgnored;var E=r(1223);function glob(e,t,r){if(typeof t==="function")r=t,t={};if(!t)t={};if(t.sync){if(r)throw new TypeError("callback provided to sync glob");return f(e,t)}return new Glob(e,t,r)}glob.sync=f;var _=glob.GlobSync=f.GlobSync;glob.glob=glob;function extend(e,t){if(t===null||typeof t!=="object"){return e}var r=Object.keys(t);var n=r.length;while(n--){e[r[n]]=t[r[n]]}return e}glob.hasMagic=function(e,t){var r=extend({},t);r.noprocess=true;var n=new Glob(e,r);var i=n.minimatch.set;if(!e)return false;if(i.length>1)return true;for(var s=0;s<i[0].length;s++){if(typeof i[0][s]!=="string")return true}return false};glob.Glob=Glob;a(Glob,u);function Glob(e,t,r){if(typeof t==="function"){r=t;t=null}if(t&&t.sync){if(r)throw new TypeError("callback provided to sync glob");return new _(e,t)}if(!(this instanceof Glob))return new Glob(e,t,r);y(this,e,t);this._didRealPath=false;var n=this.minimatch.set.length;this.matches=new Array(n);if(typeof r==="function"){r=E(r);this.on("error",r);this.on("end",function(e){r(null,e)})}var i=this;this._processing=0;this._emitQueue=[];this._processQueue=[];this.paused=false;if(this.noprocess)return this;if(n===0)return done();var s=true;for(var o=0;o<n;o++){this._process(this.minimatch.set[o],o,false,done)}s=false;function done(){--i._processing;if(i._processing<=0){if(s){process.nextTick(function(){i._finish()})}else{i._finish()}}}}Glob.prototype._finish=function(){l(this instanceof Glob);if(this.aborted)return;if(this.realpath&&!this._didRealpath)return this._realpath();d.finish(this);this.emit("end",this.found)};Glob.prototype._realpath=function(){if(this._didRealpath)return;this._didRealpath=true;var e=this.matches.length;if(e===0)return this._finish();var t=this;for(var r=0;r<this.matches.length;r++)this._realpathSet(r,next);function next(){if(--e===0)t._finish()}};Glob.prototype._realpathSet=function(e,t){var r=this.matches[e];if(!r)return t();var n=Object.keys(r);var s=this;var o=n.length;if(o===0)return t();var a=this.matches[e]=Object.create(null);n.forEach(function(r,n){r=s._makeAbs(r);i.realpath(r,s.realpathCache,function(n,i){if(!n)a[i]=true;else if(n.syscall==="stat")a[r]=true;else s.emit("error",n);if(--o===0){s.matches[e]=a;t()}})})};Glob.prototype._mark=function(e){return d.mark(this,e)};Glob.prototype._makeAbs=function(e){return d.makeAbs(this,e)};Glob.prototype.abort=function(){this.aborted=true;this.emit("abort")};Glob.prototype.pause=function(){if(!this.paused){this.paused=true;this.emit("pause")}};Glob.prototype.resume=function(){if(this.paused){this.emit("resume");this.paused=false;if(this._emitQueue.length){var e=this._emitQueue.slice(0);this._emitQueue.length=0;for(var t=0;t<e.length;t++){var r=e[t];this._emitMatch(r[0],r[1])}}if(this._processQueue.length){var n=this._processQueue.slice(0);this._processQueue.length=0;for(var t=0;t<n.length;t++){var i=n[t];this._processing--;this._process(i[0],i[1],i[2],i[3])}}}};Glob.prototype._process=function(e,t,r,n){l(this instanceof Glob);l(typeof n==="function");if(this.aborted)return;this._processing++;if(this.paused){this._processQueue.push([e,t,r,n]);return}var i=0;while(typeof e[i]==="string"){i++}var o;switch(i){case e.length:this._processSimple(e.join("/"),t,n);return;case 0:o=null;break;default:o=e.slice(0,i).join("/");break}var a=e.slice(i);var u;if(o===null)u=".";else if(h(o)||h(e.join("/"))){if(!o||!h(o))o="/"+o;u=o}else u=o;var c=this._makeAbs(u);if(w(this,u))return n();var f=a[0]===s.GLOBSTAR;if(f)this._processGlobStar(o,u,c,a,t,r,n);else this._processReaddir(o,u,c,a,t,r,n)};Glob.prototype._processReaddir=function(e,t,r,n,i,s,o){var a=this;this._readdir(r,s,function(u,c){return a._processReaddir2(e,t,r,n,i,s,c,o)})};Glob.prototype._processReaddir2=function(e,t,r,n,i,s,o,a){if(!o)return a();var u=n[0];var l=!!this.minimatch.negate;var h=u._glob;var f=this.dot||h.charAt(0)===".";var d=[];for(var p=0;p<o.length;p++){var m=o[p];if(m.charAt(0)!=="."||f){var y;if(l&&!e){y=!m.match(u)}else{y=m.match(u)}if(y)d.push(m)}}var g=d.length;if(g===0)return a();if(n.length===1&&!this.mark&&!this.stat){if(!this.matches[i])this.matches[i]=Object.create(null);for(var p=0;p<g;p++){var m=d[p];if(e){if(e!=="/")m=e+"/"+m;else m=e+m}if(m.charAt(0)==="/"&&!this.nomount){m=c.join(this.root,m)}this._emitMatch(i,m)}return a()}n.shift();for(var p=0;p<g;p++){var m=d[p];var v;if(e){if(e!=="/")m=e+"/"+m;else m=e+m}this._process([m].concat(n),i,s,a)}a()};Glob.prototype._emitMatch=function(e,t){if(this.aborted)return;if(A(this,t))return;if(this.paused){this._emitQueue.push([e,t]);return}var r=h(t)?t:this._makeAbs(t);if(this.mark)t=this._mark(t);if(this.absolute)t=r;if(this.matches[e][t])return;if(this.nodir){var n=this.cache[r];if(n==="DIR"||Array.isArray(n))return}this.matches[e][t]=true;var i=this.statCache[r];if(i)this.emit("stat",t,i);this.emit("match",t)};Glob.prototype._readdirInGlobStar=function(e,t){if(this.aborted)return;if(this.follow)return this._readdir(e,false,t);var r="lstat\0"+e;var i=this;var s=v(r,lstatcb_);if(s)n.lstat(e,s);function lstatcb_(r,n){if(r&&r.code==="ENOENT")return t();var s=n&&n.isSymbolicLink();i.symlinks[e]=s;if(!s&&n&&!n.isDirectory()){i.cache[e]="FILE";t()}else i._readdir(e,false,t)}};Glob.prototype._readdir=function(e,t,r){if(this.aborted)return;r=v("readdir\0"+e+"\0"+t,r);if(!r)return;if(t&&!g(this.symlinks,e))return this._readdirInGlobStar(e,r);if(g(this.cache,e)){var i=this.cache[e];if(!i||i==="FILE")return r();if(Array.isArray(i))return r(null,i)}var s=this;n.readdir(e,readdirCb(this,e,r))};function readdirCb(e,t,r){return function(n,i){if(n)e._readdirError(t,n,r);else e._readdirEntries(t,i,r)}}Glob.prototype._readdirEntries=function(e,t,r){if(this.aborted)return;if(!this.mark&&!this.stat){for(var n=0;n<t.length;n++){var i=t[n];if(e==="/")i=e+i;else i=e+"/"+i;this.cache[i]=true}}this.cache[e]=t;return r(null,t)};Glob.prototype._readdirError=function(e,t,r){if(this.aborted)return;switch(t.code){case"ENOTSUP":case"ENOTDIR":var n=this._makeAbs(e);this.cache[n]="FILE";if(n===this.cwdAbs){var i=new Error(t.code+" invalid cwd "+this.cwd);i.path=this.cwd;i.code=t.code;this.emit("error",i);this.abort()}break;case"ENOENT":case"ELOOP":case"ENAMETOOLONG":case"UNKNOWN":this.cache[this._makeAbs(e)]=false;break;default:this.cache[this._makeAbs(e)]=false;if(this.strict){this.emit("error",t);this.abort()}if(!this.silent)console.error("glob error",t);break}return r()};Glob.prototype._processGlobStar=function(e,t,r,n,i,s,o){var a=this;this._readdir(r,s,function(u,c){a._processGlobStar2(e,t,r,n,i,s,c,o)})};Glob.prototype._processGlobStar2=function(e,t,r,n,i,s,o,a){if(!o)return a();var u=n.slice(1);var c=e?[e]:[];var l=c.concat(u);this._process(l,i,false,a);var h=this.symlinks[r];var f=o.length;if(h&&s)return a();for(var d=0;d<f;d++){var p=o[d];if(p.charAt(0)==="."&&!this.dot)continue;var m=c.concat(o[d],u);this._process(m,i,true,a);var y=c.concat(o[d],n);this._process(y,i,true,a)}a()};Glob.prototype._processSimple=function(e,t,r){var n=this;this._stat(e,function(i,s){n._processSimple2(e,t,i,s,r)})};Glob.prototype._processSimple2=function(e,t,r,n,i){if(!this.matches[t])this.matches[t]=Object.create(null);if(!n)return i();if(e&&h(e)&&!this.nomount){var s=/[\/\\]$/.test(e);if(e.charAt(0)==="/"){e=c.join(this.root,e)}else{e=c.resolve(this.root,e);if(s)e+="/"}}if(process.platform==="win32")e=e.replace(/\\/g,"/");this._emitMatch(t,e);i()};Glob.prototype._stat=function(e,t){var r=this._makeAbs(e);var i=e.slice(-1)==="/";if(e.length>this.maxLength)return t();if(!this.stat&&g(this.cache,r)){var s=this.cache[r];if(Array.isArray(s))s="DIR";if(!i||s==="DIR")return t(null,s);if(i&&s==="FILE")return t()}var o;var a=this.statCache[r];if(a!==undefined){if(a===false)return t(null,a);else{var u=a.isDirectory()?"DIR":"FILE";if(i&&u==="FILE")return t();else return t(null,u,a)}}var c=this;var l=v("stat\0"+r,lstatcb_);if(l)n.lstat(r,l);function lstatcb_(i,s){if(s&&s.isSymbolicLink()){return n.stat(r,function(n,i){if(n)c._stat2(e,r,null,s,t);else c._stat2(e,r,n,i,t)})}else{c._stat2(e,r,i,s,t)}}};Glob.prototype._stat2=function(e,t,r,n,i){if(r&&(r.code==="ENOENT"||r.code==="ENOTDIR")){this.statCache[t]=false;return i()}var s=e.slice(-1)==="/";this.statCache[t]=n;if(t.slice(-1)==="/"&&n&&!n.isDirectory())return i(null,false,n);var o=true;if(n)o=n.isDirectory()?"DIR":"FILE";this.cache[t]=this.cache[t]||o;if(s&&o==="FILE")return i();return i(null,o,n)}},9010:(e,t,r)=>{e.exports=globSync;globSync.GlobSync=GlobSync;var n=r(5747);var i=r(6863);var s=r(3973);var o=s.Minimatch;var a=r(1957).Glob;var u=r(1669);var c=r(5622);var l=r(2357);var h=r(8714);var f=r(7625);var d=f.alphasort;var p=f.alphasorti;var m=f.setopts;var y=f.ownProp;var g=f.childrenIgnored;var v=f.isIgnored;function globSync(e,t){if(typeof t==="function"||arguments.length===3)throw new TypeError("callback provided to sync glob\n"+"See: https://github.com/isaacs/node-glob/issues/167");return new GlobSync(e,t).found}function GlobSync(e,t){if(!e)throw new Error("must provide pattern");if(typeof t==="function"||arguments.length===3)throw new TypeError("callback provided to sync glob\n"+"See: https://github.com/isaacs/node-glob/issues/167");if(!(this instanceof GlobSync))return new GlobSync(e,t);m(this,e,t);if(this.noprocess)return this;var r=this.minimatch.set.length;this.matches=new Array(r);for(var n=0;n<r;n++){this._process(this.minimatch.set[n],n,false)}this._finish()}GlobSync.prototype._finish=function(){l(this instanceof GlobSync);if(this.realpath){var e=this;this.matches.forEach(function(t,r){var n=e.matches[r]=Object.create(null);for(var s in t){try{s=e._makeAbs(s);var o=i.realpathSync(s,e.realpathCache);n[o]=true}catch(t){if(t.syscall==="stat")n[e._makeAbs(s)]=true;else throw t}}})}f.finish(this)};GlobSync.prototype._process=function(e,t,r){l(this instanceof GlobSync);var n=0;while(typeof e[n]==="string"){n++}var i;switch(n){case e.length:this._processSimple(e.join("/"),t);return;case 0:i=null;break;default:i=e.slice(0,n).join("/");break}var o=e.slice(n);var a;if(i===null)a=".";else if(h(i)||h(e.join("/"))){if(!i||!h(i))i="/"+i;a=i}else a=i;var u=this._makeAbs(a);if(g(this,a))return;var c=o[0]===s.GLOBSTAR;if(c)this._processGlobStar(i,a,u,o,t,r);else this._processReaddir(i,a,u,o,t,r)};GlobSync.prototype._processReaddir=function(e,t,r,n,i,s){var o=this._readdir(r,s);if(!o)return;var a=n[0];var u=!!this.minimatch.negate;var l=a._glob;var h=this.dot||l.charAt(0)===".";var f=[];for(var d=0;d<o.length;d++){var p=o[d];if(p.charAt(0)!=="."||h){var m;if(u&&!e){m=!p.match(a)}else{m=p.match(a)}if(m)f.push(p)}}var y=f.length;if(y===0)return;if(n.length===1&&!this.mark&&!this.stat){if(!this.matches[i])this.matches[i]=Object.create(null);for(var d=0;d<y;d++){var p=f[d];if(e){if(e.slice(-1)!=="/")p=e+"/"+p;else p=e+p}if(p.charAt(0)==="/"&&!this.nomount){p=c.join(this.root,p)}this._emitMatch(i,p)}return}n.shift();for(var d=0;d<y;d++){var p=f[d];var g;if(e)g=[e,p];else g=[p];this._process(g.concat(n),i,s)}};GlobSync.prototype._emitMatch=function(e,t){if(v(this,t))return;var r=this._makeAbs(t);if(this.mark)t=this._mark(t);if(this.absolute){t=r}if(this.matches[e][t])return;if(this.nodir){var n=this.cache[r];if(n==="DIR"||Array.isArray(n))return}this.matches[e][t]=true;if(this.stat)this._stat(t)};GlobSync.prototype._readdirInGlobStar=function(e){if(this.follow)return this._readdir(e,false);var t;var r;var i;try{r=n.lstatSync(e)}catch(e){if(e.code==="ENOENT"){return null}}var s=r&&r.isSymbolicLink();this.symlinks[e]=s;if(!s&&r&&!r.isDirectory())this.cache[e]="FILE";else t=this._readdir(e,false);return t};GlobSync.prototype._readdir=function(e,t){var r;if(t&&!y(this.symlinks,e))return this._readdirInGlobStar(e);if(y(this.cache,e)){var i=this.cache[e];if(!i||i==="FILE")return null;if(Array.isArray(i))return i}try{return this._readdirEntries(e,n.readdirSync(e))}catch(t){this._readdirError(e,t);return null}};GlobSync.prototype._readdirEntries=function(e,t){if(!this.mark&&!this.stat){for(var r=0;r<t.length;r++){var n=t[r];if(e==="/")n=e+n;else n=e+"/"+n;this.cache[n]=true}}this.cache[e]=t;return t};GlobSync.prototype._readdirError=function(e,t){switch(t.code){case"ENOTSUP":case"ENOTDIR":var r=this._makeAbs(e);this.cache[r]="FILE";if(r===this.cwdAbs){var n=new Error(t.code+" invalid cwd "+this.cwd);n.path=this.cwd;n.code=t.code;throw n}break;case"ENOENT":case"ELOOP":case"ENAMETOOLONG":case"UNKNOWN":this.cache[this._makeAbs(e)]=false;break;default:this.cache[this._makeAbs(e)]=false;if(this.strict)throw t;if(!this.silent)console.error("glob error",t);break}};GlobSync.prototype._processGlobStar=function(e,t,r,n,i,s){var o=this._readdir(r,s);if(!o)return;var a=n.slice(1);var u=e?[e]:[];var c=u.concat(a);this._process(c,i,false);var l=o.length;var h=this.symlinks[r];if(h&&s)return;for(var f=0;f<l;f++){var d=o[f];if(d.charAt(0)==="."&&!this.dot)continue;var p=u.concat(o[f],a);this._process(p,i,true);var m=u.concat(o[f],n);this._process(m,i,true)}};GlobSync.prototype._processSimple=function(e,t){var r=this._stat(e);if(!this.matches[t])this.matches[t]=Object.create(null);if(!r)return;if(e&&h(e)&&!this.nomount){var n=/[\/\\]$/.test(e);if(e.charAt(0)==="/"){e=c.join(this.root,e)}else{e=c.resolve(this.root,e);if(n)e+="/"}}if(process.platform==="win32")e=e.replace(/\\/g,"/");this._emitMatch(t,e)};GlobSync.prototype._stat=function(e){var t=this._makeAbs(e);var r=e.slice(-1)==="/";if(e.length>this.maxLength)return false;if(!this.stat&&y(this.cache,t)){var i=this.cache[t];if(Array.isArray(i))i="DIR";if(!r||i==="DIR")return i;if(r&&i==="FILE")return false}var s;var o=this.statCache[t];if(!o){var a;try{a=n.lstatSync(t)}catch(e){if(e&&(e.code==="ENOENT"||e.code==="ENOTDIR")){this.statCache[t]=false;return false}}if(a&&a.isSymbolicLink()){try{o=n.statSync(t)}catch(e){o=a}}else{o=a}}this.statCache[t]=o;var i=true;if(o)i=o.isDirectory()?"DIR":"FILE";this.cache[t]=this.cache[t]||i;if(r&&i==="FILE")return false;return i};GlobSync.prototype._mark=function(e){return f.mark(this,e)};GlobSync.prototype._makeAbs=function(e){return f.makeAbs(this,e)}},3088:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(4597);const i=new Set([413,429,503]);const s=e=>e instanceof n.HTTPError||e instanceof n.ParseError||e instanceof n.MaxRedirectsError;const o=({attemptCount:e,retryOptions:t,error:r})=>{if(e>t.limit){return 0}const n=t.methods.includes(r.options.method);const o=t.errorCodes.includes(r.code);const a=s(r)&&t.statusCodes.includes(r.response.statusCode);if(!n||!o&&!a){return 0}if(s(r)){const{response:e}=r;if(e&&"retry-after"in e.headers&&i.has(e.statusCode)){let r=Number(e.headers["retry-after"]);if(Number.isNaN(r)){r=Date.parse(e.headers["retry-after"])-Date.now()}else{r*=1e3}if(t.maxRetryAfter===undefined||r>t.maxRetryAfter){return 0}return r}if(e.statusCode===413){return 0}}const u=Math.random()*100;return 2**(e-1)*1e3+u};t.default=o},9266:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(7678);const i=r(4597);const s=r(94);if(!s.knownHookEvents.includes("beforeRetry")){s.knownHookEvents.push("beforeRetry","afterResponse")}t.knownBodyTypes=["json","buffer","text"];t.parseBody=((e,t,r)=>{const{rawBody:n}=e;try{if(t==="text"){return n.toString(r)}if(t==="json"){return n.length===0?"":JSON.parse(n.toString())}if(t==="buffer"){return Buffer.from(n)}throw new i.ParseError({message:`Unknown body type '${t}'`,name:"Error"},e)}catch(t){throw new i.ParseError(t,e)}});class PromisableRequest extends s.default{static normalizeArguments(e,t,r){const i=super.normalizeArguments(e,t,r);if(n.default.null_(i.encoding)){throw new TypeError("To get a Buffer, set `options.responseType` to `buffer` instead")}n.assert.any([n.default.string,n.default.undefined],i.encoding);n.assert.any([n.default.boolean,n.default.undefined],i.resolveBodyOnly);n.assert.any([n.default.boolean,n.default.undefined],i.methodRewriting);n.assert.any([n.default.boolean,n.default.undefined],i.isStream);const{retry:s}=i;if(r){i.retry={...r.retry}}else{i.retry={calculateDelay:e=>e.computedValue,limit:0,methods:[],statusCodes:[],errorCodes:[],maxRetryAfter:undefined}}if(n.default.object(s)){i.retry={...i.retry,...s};i.retry.methods=[...new Set(i.retry.methods.map(e=>e.toUpperCase()))];i.retry.statusCodes=[...new Set(i.retry.statusCodes)];i.retry.errorCodes=[...new Set(i.retry.errorCodes)]}else if(n.default.number(s)){i.retry.limit=s}if(n.default.undefined(i.retry.maxRetryAfter)){i.retry.maxRetryAfter=Math.min(...[i.timeout.request,i.timeout.connect].filter(n.default.number))}if(n.default.object(i.pagination)){if(r){i.pagination={...r.pagination,...i.pagination}}const{pagination:e}=i;if(!n.default.function_(e.transform)){throw new Error("`options.pagination.transform` must be implemented")}if(!n.default.function_(e.shouldContinue)){throw new Error("`options.pagination.shouldContinue` must be implemented")}if(!n.default.function_(e.filter)){throw new TypeError("`options.pagination.filter` must be implemented")}if(!n.default.function_(e.paginate)){throw new Error("`options.pagination.paginate` must be implemented")}}if(i.responseType==="json"&&i.headers.accept===undefined){i.headers.accept="application/json"}return i}static mergeOptions(...e){let t;for(const r of e){t=PromisableRequest.normalizeArguments(undefined,r,t)}return t}async _beforeError(e){if(!(e instanceof s.RequestError)){e=new s.RequestError(e.message,e,this)}this.emit("error",e)}}t.default=PromisableRequest},6457:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(4597);function createRejection(e,...t){const r=(async()=>{if(e instanceof n.RequestError){try{for(const r of t){if(r){for(const t of r){e=await t(e)}}}}catch(t){e=t}}throw e})();const i=()=>r;r.json=i;r.text=i;r.buffer=i;r.on=i;return r}t.default=createRejection},6056:(e,t,r)=>{"use strict";function __export(e){for(var r in e)if(!t.hasOwnProperty(r))t[r]=e[r]}Object.defineProperty(t,"__esModule",{value:true});const n=r(8614);const i=r(1766);const s=r(9072);const o=r(3088);const a=r(4597);const u=r(9266);t.PromisableRequest=u.default;const c=r(3021);const l=["request","response","redirect","uploadProgress","downloadProgress"];function asPromise(e){let t=0;let r;let h;const f=new n.EventEmitter;const d=new s((n,s,p)=>{const m=()=>{const{throwHttpErrors:y}=e;if(!y){e.throwHttpErrors=true}const g=new u.default(e.url,e);g._noPipe=true;p(()=>g.destroy());const v=async t=>{try{for(const r of e.hooks.beforeError){t=await r(t)}}catch(e){s(new a.RequestError(e.message,e,g));return}s(t)};r=g;g.once("response",async r=>{r.retryCount=t;if(r.request.aborted){return}const s=()=>{const{statusCode:t}=r;const n=e.followRedirect?299:399;return t>=200&&t<=n||t===304};let o;try{o=await i.buffer(g);r.rawBody=o}catch(e){return}try{r.body=u.parseBody(r,e.responseType,e.encoding)}catch(e){r.body=o.toString();if(s()){v(e);return}}try{for(const[t,n]of e.hooks.afterResponse.entries()){r=await n(r,async r=>{const n=u.default.normalizeArguments(undefined,{...r,retry:{calculateDelay:()=>0},throwHttpErrors:false,resolveBodyOnly:false},e);n.hooks.afterResponse=n.hooks.afterResponse.slice(0,t);for(const e of n.hooks.beforeRetry){await e(n)}const i=asPromise(n);p(()=>{i.catch(()=>{});i.cancel()});return i})}}catch(e){v(new a.RequestError(e.message,e,g));return}if(y&&!s()){v(new a.HTTPError(r));return}h=r;n(e.resolveBodyOnly?r.body:r)});g.once("error",r=>{if(d.isCanceled){return}if(!g.options){v(r);return}let n;t++;try{n=e.retry.calculateDelay({attemptCount:t,retryOptions:e.retry,error:r,computedValue:o.default({attemptCount:t,retryOptions:e.retry,error:r,computedValue:0})})}catch(e){g.destroy();v(new a.RequestError(e.message,r,g));return}if(n){g.destroy();const i=async()=>{e.throwHttpErrors=y;try{for(const n of e.hooks.beforeRetry){await n(e,r,t)}}catch(e){g.destroy();v(new a.RequestError(e.message,r,g));return}m()};setTimeout(i,n);return}t--;if(r instanceof a.HTTPError){return}g.destroy();v(r)});c.default(g,f,l)};m()});d.on=((e,t)=>{f.on(e,t);return d});const p=t=>{const r=(async()=>{await d;return u.parseBody(h,t,e.encoding)})();Object.defineProperties(r,Object.getOwnPropertyDescriptors(d));return r};d.json=(()=>{if(!r.writableFinished&&e.headers.accept===undefined){e.headers.accept="application/json"}return p("json")});d.buffer=(()=>p("buffer"));d.text=(()=>p("text"));return d}t.default=asPromise;__export(r(4597))},4597:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(9072);t.CancelError=n.CancelError;const i=r(94);t.RequestError=i.RequestError;t.MaxRedirectsError=i.MaxRedirectsError;t.CacheError=i.CacheError;t.UploadError=i.UploadError;t.TimeoutError=i.TimeoutError;t.HTTPError=i.HTTPError;t.ReadError=i.ReadError;t.UnsupportedProtocolError=i.UnsupportedProtocolError;class ParseError extends i.RequestError{constructor(e,t){const{options:r}=t.request;super(`${e.message} in "${r.url.toString()}"`,e,t.request);this.name="ParseError";Object.defineProperty(this,"response",{enumerable:false,value:t})}}t.ParseError=ParseError},94:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(1669);const i=r(2413);const s=r(5747);const o=r(8835);const a=r(4363);const u=r(4363);const c=r(7211);const l=r(8097);const h=r(2391);const f=r(2286);const d=r(8116);const p=r(4645);const m=r(9662);const y=r(1766);const g=r(7678);const v=r(4564);const b=r(40);const w=r(3021);const A=r(2454);const E=r(8026);const _=r(9219);const D=r(7288);const S=Symbol("request");const C=Symbol("response");const x=Symbol("responseSize");const R=Symbol("downloadedSize");const O=Symbol("bodySize");const F=Symbol("uploadedSize");const P=Symbol("serverResponsesPiped");const T=Symbol("unproxyEvents");const k=Symbol("isFromCache");const B=Symbol("cancelTimeouts");const I=Symbol("startedReading");const j=Symbol("stopReading");const N=Symbol("triggerRead");const M=Symbol("body");const L=Symbol("jobs");const $=Symbol("originalResponse");t.kIsNormalizedAlready=Symbol("isNormalizedAlready");const H=g.default.string(process.versions.brotli);t.withoutBody=new Set(["GET","HEAD"]);t.knownHookEvents=["init","beforeRequest","beforeRedirect","beforeError"];function validateSearchParameters(e){for(const t in e){const r=e[t];if(!g.default.string(r)&&!g.default.number(r)&&!g.default.boolean(r)&&!g.default.null_(r)){throw new TypeError(`The \`searchParams\` value '${String(r)}' must be a string, number, boolean or null`)}}}function isClientRequest(e){return g.default.object(e)&&!("statusCode"in e)}const U=new D.default;const G=async e=>new Promise((t,r)=>{const n=e=>{r(e)};e.once("error",n);e.once("open",()=>{e.off("error",n);t()})});const z=new Set([300,301,302,303,304,307,308]);const q=["context","body","json","form"];const W=(e,t)=>{const r={};for(const t of e){if(!t){continue}for(const e of q){if(!(e in t)){continue}r[e]={writable:true,configurable:true,enumerable:false,value:t[e]}}}Object.defineProperties(t,r)};class RequestError extends Error{constructor(e,t,r){var n;super(e);Error.captureStackTrace(this,this.constructor);this.name="RequestError";this.code=t.code;if(r instanceof Request){Object.defineProperty(this,"request",{enumerable:false,value:r});Object.defineProperty(this,"response",{enumerable:false,value:r[C]});Object.defineProperty(this,"options",{enumerable:false,value:r.options})}else{Object.defineProperty(this,"options",{enumerable:false,value:r})}this.timings=(n=this.request)===null||n===void 0?void 0:n.timings;if(!g.default.undefined(t.stack)){const e=this.stack.indexOf(this.message)+this.message.length;const r=this.stack.slice(e).split("\n").reverse();const n=t.stack.slice(t.stack.indexOf(t.message)+t.message.length).split("\n").reverse();while(n.length!==0&&n[0]===r[0]){r.shift()}this.stack=`${this.stack.slice(0,e)}${r.reverse().join("\n")}${n.reverse().join("\n")}`}}}t.RequestError=RequestError;class MaxRedirectsError extends RequestError{constructor(e){super(`Redirected ${e.options.maxRedirects} times. Aborting.`,{},e);this.name="MaxRedirectsError"}}t.MaxRedirectsError=MaxRedirectsError;class HTTPError extends RequestError{constructor(e){super(`Response code ${e.statusCode} (${e.statusMessage})`,{},e.request);this.name="HTTPError"}}t.HTTPError=HTTPError;class CacheError extends RequestError{constructor(e,t){super(e.message,e,t);this.name="CacheError"}}t.CacheError=CacheError;class UploadError extends RequestError{constructor(e,t){super(e.message,e,t);this.name="UploadError"}}t.UploadError=UploadError;class TimeoutError extends RequestError{constructor(e,t,r){super(e.message,e,r);this.name="TimeoutError";this.event=e.event;this.timings=t}}t.TimeoutError=TimeoutError;class ReadError extends RequestError{constructor(e,t){super(e.message,e,t);this.name="ReadError"}}t.ReadError=ReadError;class UnsupportedProtocolError extends RequestError{constructor(e){super(`Unsupported protocol "${e.url.protocol}"`,{},e);this.name="UnsupportedProtocolError"}}t.UnsupportedProtocolError=UnsupportedProtocolError;const Y=["socket","connect","continue","information","upgrade","timeout"];class Request extends i.Duplex{constructor(e,r={},n){super({highWaterMark:0});this[R]=0;this[F]=0;this.requestInitialized=false;this[P]=new Set;this.redirects=[];this[j]=false;this[N]=false;this[L]=[];this._progressCallbacks=[];const i=()=>this._unlockWrite();const o=()=>this._lockWrite();this.on("pipe",e=>{e.prependListener("data",i);e.on("data",o);e.prependListener("end",i);e.on("end",o)});this.on("unpipe",e=>{e.off("data",i);e.off("data",o);e.off("end",i);e.off("end",o)});this.on("pipe",e=>{if(e instanceof u.IncomingMessage){this.options.headers={...e.headers,...this.options.headers}}});const{json:a,body:c,form:l}=r;if(a||c||l){this._lockWrite()}(async r=>{var i;try{if(r.body instanceof s.ReadStream){await G(r.body)}if(t.kIsNormalizedAlready in r){this.options=r}else{this.options=this.constructor.normalizeArguments(e,r,n)}const{url:o}=this.options;if(!o){throw new TypeError("Missing `url` property")}this.requestUrl=o.toString();decodeURI(this.requestUrl);await this._finalizeBody();await this._makeRequest();if(this.destroyed){(i=this[S])===null||i===void 0?void 0:i.destroy();return}for(const e of this[L]){e()}this.requestInitialized=true}catch(e){if(e instanceof RequestError){this._beforeError(e);return}if(!this.destroyed){this.destroy(e)}}})(r)}static normalizeArguments(e,r,i){var s,a,u,c;const l=r;if(g.default.object(e)&&!g.default.urlInstance(e)){r={...i,...e,...r}}else{if(e&&r&&r.url){throw new TypeError("The `url` option is mutually exclusive with the `input` argument")}r={...i,...r};if(e){r.url=e}if(g.default.urlInstance(r.url)){r.url=new o.URL(r.url.toString())}}if(r.cache===false){r.cache=undefined}if(r.dnsCache===false){r.dnsCache=undefined}g.assert.any([g.default.string,g.default.undefined],r.method);g.assert.any([g.default.object,g.default.undefined],r.headers);g.assert.any([g.default.string,g.default.urlInstance,g.default.undefined],r.prefixUrl);g.assert.any([g.default.object,g.default.undefined],r.cookieJar);g.assert.any([g.default.object,g.default.string,g.default.undefined],r.searchParams);g.assert.any([g.default.object,g.default.string,g.default.undefined],r.cache);g.assert.any([g.default.object,g.default.number,g.default.undefined],r.timeout);g.assert.any([g.default.object,g.default.undefined],r.context);g.assert.any([g.default.object,g.default.undefined],r.hooks);g.assert.any([g.default.boolean,g.default.undefined],r.decompress);g.assert.any([g.default.boolean,g.default.undefined],r.ignoreInvalidCookies);g.assert.any([g.default.boolean,g.default.undefined],r.followRedirect);g.assert.any([g.default.number,g.default.undefined],r.maxRedirects);g.assert.any([g.default.boolean,g.default.undefined],r.throwHttpErrors);g.assert.any([g.default.boolean,g.default.undefined],r.http2);g.assert.any([g.default.boolean,g.default.undefined],r.allowGetBody);g.assert.any([g.default.boolean,g.default.undefined],r.rejectUnauthorized);if(g.default.string(r.method)){r.method=r.method.toUpperCase()}else{r.method="GET"}if(r.headers===(i===null||i===void 0?void 0:i.headers)){r.headers={...r.headers}}else{r.headers=m({...i===null||i===void 0?void 0:i.headers,...r.headers})}if("slashes"in r){throw new TypeError("The legacy `url.Url` has been deprecated. Use `URL` instead.")}if("auth"in r){throw new TypeError("Parameter `auth` is deprecated. Use `username` / `password` instead.")}if("searchParams"in r){if(r.searchParams&&r.searchParams!==(i===null||i===void 0?void 0:i.searchParams)){if(!g.default.string(r.searchParams)&&!(r.searchParams instanceof o.URLSearchParams)){validateSearchParameters(r.searchParams)}const e=new o.URLSearchParams(r.searchParams);(s=i===null||i===void 0?void 0:i.searchParams)===null||s===void 0?void 0:s.forEach((t,r)=>{if(!e.has(r)){e.append(r,t)}});r.searchParams=e}}r.username=(a=r.username)!==null&&a!==void 0?a:"";r.password=(u=r.password)!==null&&u!==void 0?u:"";if(r.prefixUrl){r.prefixUrl=r.prefixUrl.toString();if(r.prefixUrl!==""&&!r.prefixUrl.endsWith("/")){r.prefixUrl+="/"}}else{r.prefixUrl=""}if(g.default.string(r.url)){if(r.url.startsWith("/")){throw new Error("`input` must not start with a slash when using `prefixUrl`")}r.url=_.default(r.prefixUrl+r.url,r)}else if(g.default.undefined(r.url)&&r.prefixUrl!==""||r.protocol){r.url=_.default(r.prefixUrl,r)}if(r.url){let{prefixUrl:e}=r;Object.defineProperty(r,"prefixUrl",{set:t=>{const n=r.url;if(!n.href.startsWith(t)){throw new Error(`Cannot change \`prefixUrl\` from ${e} to ${t}: ${n.href}`)}r.url=new o.URL(t+n.href.slice(e.length));e=t},get:()=>e});let{protocol:t}=r.url;if(t==="unix:"){t="http:";r.url=new o.URL(`http://unix${r.url.pathname}${r.url.search}`)}if(r.searchParams){r.url.search=r.searchParams.toString()}if(r.url.search){const e="_GOT_INTERNAL_TRIGGER_NORMALIZATION";r.url.searchParams.append(e,"");r.url.searchParams.delete(e)}if(t!=="http:"&&t!=="https:"){throw new UnsupportedProtocolError(r)}if(r.username===""){r.username=r.url.username}else{r.url.username=r.username}if(r.password===""){r.password=r.url.password}else{r.url.password=r.password}}const{cookieJar:h}=r;if(h){let{setCookie:e,getCookieString:t}=h;g.assert.function_(e);g.assert.function_(t);if(e.length===4&&t.length===0){e=n.promisify(e.bind(r.cookieJar));t=n.promisify(t.bind(r.cookieJar));r.cookieJar={setCookie:e,getCookieString:t}}}const{cache:p}=r;if(p){if(!U.has(p)){U.set(p,new d((e,t)=>e[S](e,t),p))}}if(r.dnsCache===true){r.dnsCache=new f.default}else if(!g.default.undefined(r.dnsCache)&&!(r.dnsCache instanceof f.default)){throw new TypeError(`Parameter \`dnsCache\` must be a CacheableLookup instance or a boolean, got ${g.default(r.dnsCache)}`)}if(g.default.number(r.timeout)){r.timeout={request:r.timeout}}else if(i&&r.timeout!==i.timeout){r.timeout={...i.timeout,...r.timeout}}else{r.timeout={...r.timeout}}if(!r.context){r.context={}}const y=r.hooks===(i===null||i===void 0?void 0:i.hooks);r.hooks={...r.hooks};for(const e of t.knownHookEvents){if(e in r.hooks){if(g.default.array(r.hooks[e])){r.hooks[e]=[...r.hooks[e]]}else{throw new TypeError(`Parameter \`${e}\` must be an Array, got ${g.default(r.hooks[e])}`)}}else{r.hooks[e]=[]}}if(i&&!y){for(const e of t.knownHookEvents){const t=i.hooks[e];if(t.length!==0){r.hooks[e]=[...i.hooks[e],...r.hooks[e]]}}}if("followRedirects"in r){throw new TypeError("The `followRedirects` option does not exist. Use `followRedirect` instead.")}if(r.agent){for(const e in r.agent){if(e!=="http"&&e!=="https"&&e!=="http2"){throw new TypeError(`Expected the \`options.agent\` properties to be \`http\`, \`https\` or \`http2\`, got \`${e}\``)}}}r.maxRedirects=(c=r.maxRedirects)!==null&&c!==void 0?c:0;W([i,l],r);return r}_lockWrite(){const e=()=>{throw new TypeError("The payload has been already provided")};this.write=e;this.end=e}_unlockWrite(){this.write=super.write;this.end=super.end}async _finalizeBody(){const{options:e}=this;const{headers:r}=e;const n=!g.default.undefined(e.form);const s=!g.default.undefined(e.json);const a=!g.default.undefined(e.body);const u=n||s||a;const c=t.withoutBody.has(e.method)&&!(e.method==="GET"&&e.allowGetBody);this._cannotHaveBody=c;if(u){if(c){throw new TypeError(`The \`${e.method}\` method cannot be used with a body`)}if([a,n,s].filter(e=>e).length>1){throw new TypeError("The `body`, `json` and `form` options are mutually exclusive")}if(a&&!(e.body instanceof i.Readable)&&!g.default.string(e.body)&&!g.default.buffer(e.body)&&!b.default(e.body)){throw new TypeError("The `body` option must be a stream.Readable, string or Buffer")}if(n&&!g.default.object(e.form)){throw new TypeError("The `form` option must be an Object")}{const t=!g.default.string(r["content-type"]);if(a){if(b.default(e.body)&&t){r["content-type"]=`multipart/form-data; boundary=${e.body.getBoundary()}`}this[M]=e.body}else if(n){if(t){r["content-type"]="application/x-www-form-urlencoded"}this[M]=new o.URLSearchParams(e.form).toString()}else{if(t){r["content-type"]="application/json"}this[M]=JSON.stringify(e.json)}const i=await v.default(this[M],e.headers);if(g.default.undefined(r["content-length"])&&g.default.undefined(r["transfer-encoding"])){if(!c&&!g.default.undefined(i)){r["content-length"]=String(i)}}}}else if(c){this._lockWrite()}else{this._unlockWrite()}this[O]=Number(r["content-length"])||undefined}async _onResponse(e){const{options:t}=this;const{url:r}=t;this[$]=e;if(t.decompress){e=h(e)}const n=e.statusCode;const i=e;i.statusMessage=i.statusMessage?i.statusMessage:a.STATUS_CODES[n];i.url=t.url.toString();i.requestUrl=this.requestUrl;i.redirectUrls=this.redirects;i.request=this;i.isFromCache=e.fromCache||false;i.ip=this.ip;this[k]=i.isFromCache;this[x]=Number(e.headers["content-length"])||undefined;this[C]=e;e.once("end",()=>{this[x]=this[R];this.emit("downloadProgress",this.downloadProgress)});e.once("error",t=>{e.destroy();this._beforeError(new ReadError(t,this))});e.once("aborted",()=>{if(this.aborted){return}this._beforeError(new ReadError({name:"Error",message:"The server aborted the pending request"},this))});this.emit("downloadProgress",this.downloadProgress);const s=e.headers["set-cookie"];if(g.default.object(t.cookieJar)&&s){let e=s.map(async e=>t.cookieJar.setCookie(e,r.toString()));if(t.ignoreInvalidCookies){e=e.map(async e=>e.catch(()=>{}))}try{await Promise.all(e)}catch(e){this._beforeError(e);return}}if(t.followRedirect&&e.headers.location&&z.has(n)){e.resume();if(this[S]){this[B]();delete this[S];this[T]()}const s=n===303&&t.method!=="GET"&&t.method!=="HEAD";if(s||!t.methodRewriting){t.method="GET";if("body"in t){delete t.body}if("json"in t){delete t.json}if("form"in t){delete t.form}}if(this.redirects.length>=t.maxRedirects){this._beforeError(new MaxRedirectsError(this));return}try{const n=Buffer.from(e.headers.location,"binary").toString();const s=new o.URL(n,r);const a=s.toString();decodeURI(a);if(s.hostname!==r.hostname){if("host"in t.headers){delete t.headers.host}if("cookie"in t.headers){delete t.headers.cookie}if("authorization"in t.headers){delete t.headers.authorization}if(t.username||t.password){delete t.username;delete t.password}}this.redirects.push(a);t.url=s;for(const e of t.hooks.beforeRedirect){await e(t,i)}this.emit("redirect",i,t);await this._makeRequest()}catch(e){this._beforeError(e);return}return}const u=t.followRedirect?299:399;const c=n>=200&&n<=u||n===304;if(t.throwHttpErrors&&!c){await this._beforeError(new HTTPError(i));if(this.destroyed){return}}e.on("readable",()=>{if(this[N]){this._read()}});this.on("resume",()=>{e.resume()});this.on("pause",()=>{e.pause()});e.once("end",()=>{this.push(null)});this.emit("response",e);for(const r of this[P]){if(r.headersSent){continue}for(const n in e.headers){const i=t.decompress?n!=="content-encoding":true;const s=e.headers[n];if(i){r.setHeader(n,s)}}r.statusCode=n}}_onRequest(e){const{options:t}=this;const{timeout:r,url:n}=t;l.default(e);this[B]=A.default(e,r,n);const i=t.cache?"cacheableResponse":"response";e.once(i,e=>{this._onResponse(e)});e.once("error",t=>{e.destroy();if(t instanceof A.TimeoutError){t=new TimeoutError(t,this.timings,this)}else{t=new RequestError(t.message,t,this)}this._beforeError(t)});this[T]=w.default(e,this,Y);this[S]=e;this.emit("uploadProgress",this.uploadProgress);const s=this[M];const o=this.redirects.length===0?this:e;if(g.default.nodeStream(s)){s.pipe(o);s.once("error",e=>{this._beforeError(new UploadError(e,this))});s.once("end",()=>{delete t.body})}else{this._unlockWrite();if(!g.default.undefined(s)){this._writeRequest(s,null,()=>{});o.end();this._lockWrite()}else if(this._cannotHaveBody||this._noPipe){o.end();this._lockWrite()}}this.emit("request",e)}async _createCacheableRequest(e,t){return new Promise((r,n)=>{Object.assign(t,E.default(e));delete t.url;const i=U.get(t.cache)(t,e=>{const t=e;const{req:n}=t;if(n){n.emit("cacheableResponse",t)}r(t)});t.url=e;i.once("error",n);i.once("request",r)})}async _makeRequest(){var e;const{options:t}=this;const{url:r,headers:n,request:i,agent:s,timeout:o}=t;for(const e in n){if(g.default.undefined(n[e])){delete n[e]}else if(g.default.null_(n[e])){throw new TypeError(`Use \`undefined\` instead of \`null\` to delete the \`${e}\` header`)}}if(t.decompress&&g.default.undefined(n["accept-encoding"])){n["accept-encoding"]=H?"gzip, deflate, br":"gzip, deflate"}if(t.cookieJar){const e=await t.cookieJar.getCookieString(t.url.toString());if(g.default.nonEmptyString(e)){t.headers.cookie=e}}for(const e of t.hooks.beforeRequest){const r=await e(t);if(!g.default.undefined(r)){t.request=(()=>r);break}}if(t.dnsCache&&!("lookup"in t)){t.lookup=t.dnsCache.lookup}if(r.hostname==="unix"){const e=/(?<socketPath>.+?):(?<path>.+)/.exec(`${r.pathname}${r.search}`);if(e===null||e===void 0?void 0:e.groups){const{socketPath:r,path:n}=e.groups;Object.assign(t,{socketPath:r,path:n,host:""})}}const u=r.protocol==="https:";let l;if(t.http2){l=p.auto}else{l=u?c.request:a.request}const h=(e=t.request)!==null&&e!==void 0?e:l;const f=t.cache?this._createCacheableRequest:h;if(s&&!t.http2){t.agent=s[u?"https":"http"]}t[S]=h;delete t.request;delete t.timeout;try{let e=await f(r,t);if(g.default.undefined(e)){e=l(r,t)}t.request=i;t.timeout=o;t.agent=s;if(isClientRequest(e)){this._onRequest(e)}else if(this.writable){this.once("finish",()=>{this._onResponse(e)});this._unlockWrite();this.end();this._lockWrite()}else{this._onResponse(e)}}catch(e){if(e instanceof d.CacheError){throw new CacheError(e,this)}throw new RequestError(e.message,e,this)}}async _beforeError(e){this[j]=true;if(!(e instanceof RequestError)){e=new RequestError(e.message,e,this)}try{const{response:t}=e;if(t){t.setEncoding(this._readableState.encoding);t.rawBody=await y.buffer(t);t.body=t.rawBody.toString()}}catch(e){}try{for(const t of this.options.hooks.beforeError){e=await t(e)}}catch(t){e=new RequestError(t.message,t,this)}if(!this.destroyed){this.destroy(e)}}_read(){this[N]=true;const e=this[C];if(e&&!this[j]){if(e.readableLength){this[N]=false}let t;while((t=e.read())!==null){this[R]+=t.length;this[I]=true;const e=this.downloadProgress;if(e.percent<1){this.emit("downloadProgress",e)}this.push(t)}}}_write(e,t,r){const n=()=>{this._writeRequest(e,t,r)};if(this.requestInitialized){n()}else{this[L].push(n)}}_writeRequest(e,t,r){this._progressCallbacks.push(()=>{this[F]+=Buffer.byteLength(e,t);const r=this.uploadProgress;if(r.percent<1){this.emit("uploadProgress",r)}});this[S].write(e,t,e=>{if(!e&&this._progressCallbacks.length!==0){this._progressCallbacks.shift()()}r(e)})}_final(e){const t=()=>{while(this._progressCallbacks.length!==0){this._progressCallbacks.shift()()}if(!(S in this)){e();return}this[S].end(t=>{if(!t){this[O]=this[F];this.emit("uploadProgress",this.uploadProgress);this[S].emit("upload-complete")}e(t)})};if(this.requestInitialized){t()}else{this[L].push(t)}}_destroy(e,t){var r;if(S in this){this[B]();if(!((r=this[C])===null||r===void 0?void 0:r.complete)){this[S].destroy()}}if(e!==null&&!g.default.undefined(e)&&!(e instanceof RequestError)){e=new RequestError(e.message,e,this)}t(e)}get ip(){var e;return(e=this[S])===null||e===void 0?void 0:e.socket.remoteAddress}get aborted(){var e,t,r;return((t=(e=this[S])===null||e===void 0?void 0:e.destroyed)!==null&&t!==void 0?t:this.destroyed)&&!((r=this[$])===null||r===void 0?void 0:r.complete)}get socket(){var e;return(e=this[S])===null||e===void 0?void 0:e.socket}get downloadProgress(){let e;if(this[x]){e=this[R]/this[x]}else if(this[x]===this[R]){e=1}else{e=0}return{percent:e,transferred:this[R],total:this[x]}}get uploadProgress(){let e;if(this[O]){e=this[F]/this[O]}else if(this[O]===this[F]){e=1}else{e=0}return{percent:e,transferred:this[F],total:this[O]}}get timings(){var e;return(e=this[S])===null||e===void 0?void 0:e.timings}get isFromCache(){return this[k]}pipe(e,t){if(this[I]){throw new Error("Failed to pipe. The response has been emitted already.")}if(e instanceof u.ServerResponse){this[P].add(e)}return super.pipe(e,t)}unpipe(e){if(e instanceof u.ServerResponse){this[P].delete(e)}super.unpipe(e);return this}}t.default=Request},4564:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(5747);const i=r(1669);const s=r(7678);const o=r(40);const a=i.promisify(n.stat);t.default=(async(e,t)=>{if(t&&"content-length"in t){return Number(t["content-length"])}if(!e){return 0}if(s.default.string(e)){return Buffer.byteLength(e)}if(s.default.buffer(e)){return e.length}if(o.default(e)){return i.promisify(e.getLength.bind(e))()}if(e instanceof n.ReadStream){const{size:t}=await a(e.path);return t}return undefined})},40:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(7678);t.default=(e=>n.default.nodeStream(e)&&n.default.function_(e.getBoundary))},9219:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(8835);const i=["protocol","host","hostname","port","pathname","search"];t.default=((e,t)=>{var r,s;if(t.path){if(t.pathname){throw new TypeError("Parameters `path` and `pathname` are mutually exclusive.")}if(t.search){throw new TypeError("Parameters `path` and `search` are mutually exclusive.")}if(t.searchParams){throw new TypeError("Parameters `path` and `searchParams` are mutually exclusive.")}}if(t.search&&t.searchParams){throw new TypeError("Parameters `search` and `searchParams` are mutually exclusive.")}if(!e){if(!t.protocol){throw new TypeError("No URL protocol specified")}e=`${t.protocol}//${(s=(r=t.hostname)!==null&&r!==void 0?r:t.host)!==null&&s!==void 0?s:""}`}const o=new n.URL(e);if(t.path){const e=t.path.indexOf("?");if(e===-1){t.pathname=t.path}else{t.pathname=t.path.slice(0,e);t.search=t.path.slice(e+1)}delete t.path}for(const e of i){if(t[e]){o[e]=t[e].toString()}}return o})},3021:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});function default_1(e,t,r){const n={};for(const i of r){n[i]=((...e)=>{t.emit(i,...e)});e.on(i,n[i])}return()=>{for(const t of r){e.off(t,n[t])}}}t.default=default_1},2454:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(1631);const i=r(1593);const s=Symbol("reentry");const o=()=>{};class TimeoutError extends Error{constructor(e,t){super(`Timeout awaiting '${t}' for ${e}ms`);this.event=t;this.name="TimeoutError";this.code="ETIMEDOUT"}}t.TimeoutError=TimeoutError;t.default=((e,t,r)=>{if(s in e){return o}e[s]=true;const a=[];const{once:u,unhandleAll:c}=i.default();const l=(e,t,r)=>{var n;const i=setTimeout(t,e,e,r);(n=i.unref)===null||n===void 0?void 0:n.call(i);const s=()=>{clearTimeout(i)};a.push(s);return s};const{host:h,hostname:f}=r;const d=(t,r)=>{e.destroy(new TimeoutError(t,r))};const p=()=>{for(const e of a){e()}c()};e.once("error",t=>{p();if(e.listenerCount("error")===0){throw t}});e.once("close",p);u(e,"response",e=>{u(e,"end",p)});if(typeof t.request!=="undefined"){l(t.request,d,"request")}if(typeof t.socket!=="undefined"){const r=()=>{d(t.socket,"socket")};e.setTimeout(t.socket,r);a.push(()=>{e.removeListener("timeout",r)})}u(e,"socket",i=>{var s;const{socketPath:o}=e;if(i.connecting){const e=Boolean(o!==null&&o!==void 0?o:n.isIP((s=f!==null&&f!==void 0?f:h)!==null&&s!==void 0?s:"")!==0);if(typeof t.lookup!=="undefined"&&!e&&typeof i.address().address==="undefined"){const e=l(t.lookup,d,"lookup");u(i,"lookup",e)}if(typeof t.connect!=="undefined"){const r=()=>l(t.connect,d,"connect");if(e){u(i,"connect",r())}else{u(i,"lookup",e=>{if(e===null){u(i,"connect",r())}})}}if(typeof t.secureConnect!=="undefined"&&r.protocol==="https:"){u(i,"connect",()=>{const e=l(t.secureConnect,d,"secureConnect");u(i,"secureConnect",e)})}}if(typeof t.send!=="undefined"){const r=()=>l(t.send,d,"send");if(i.connecting){u(i,"connect",()=>{u(e,"upload-complete",r())})}else{u(e,"upload-complete",r())}}});if(typeof t.response!=="undefined"){u(e,"upload-complete",()=>{const r=l(t.response,d,"response");u(e,"response",r)})}return p})},1593:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=(()=>{const e=[];return{once(t,r,n){t.once(r,n);e.push({origin:t,event:r,fn:n})},unhandleAll(){for(const t of e){const{origin:e,event:r,fn:n}=t;e.removeListener(r,n)}e.length=0}}})},8026:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(7678);t.default=(e=>{e=e;const t={protocol:e.protocol,hostname:n.default.string(e.hostname)&&e.hostname.startsWith("[")?e.hostname.slice(1,-1):e.hostname,host:e.host,hash:e.hash,search:e.search,pathname:e.pathname,href:e.href,path:`${e.pathname||""}${e.search||""}`};if(n.default.string(e.port)&&e.port.length!==0){t.port=Number(e.port)}if(e.username||e.password){t.auth=`${e.username||""}:${e.password||""}`}return t})},7288:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});class WeakableMap{constructor(){this.weakMap=new WeakMap;this.map=new Map}set(e,t){if(typeof e==="object"){this.weakMap.set(e,t)}else{this.map.set(e,t)}}get(e){if(typeof e==="object"){return this.weakMap.get(e)}return this.map.get(e)}has(e){if(typeof e==="object"){return this.weakMap.has(e)}return this.map.has(e)}}t.default=WeakableMap},4337:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(9072);const i=r(7678);const s=r(6056);const o=r(6457);const a=r(94);const u=r(285);const c={RequestError:s.RequestError,CacheError:s.CacheError,ReadError:s.ReadError,HTTPError:s.HTTPError,MaxRedirectsError:s.MaxRedirectsError,TimeoutError:s.TimeoutError,ParseError:s.ParseError,CancelError:n.CancelError,UnsupportedProtocolError:s.UnsupportedProtocolError,UploadError:s.UploadError};const{normalizeArguments:l,mergeOptions:h}=s.PromisableRequest;const f=e=>e.isStream?new a.default(e.url,e):s.default(e);const d=e=>"defaults"in e&&"options"in e.defaults;const p=["get","post","put","patch","head","delete"];t.defaultHandler=((e,t)=>t(e));const m=(e,t)=>{if(e){for(const r of e){r(t)}}};const y=e=>{e._rawHandlers=e.handlers;e.handlers=e.handlers.map(e=>(t,r)=>{let n;const i=e(t,e=>{n=r(e);return n});if(i!==n&&!t.isStream&&n){const e=i;const{then:t,catch:r,finally:s}=e;Object.setPrototypeOf(e,Object.getPrototypeOf(n));Object.defineProperties(e,Object.getOwnPropertyDescriptors(n));e.then=t;e.catch=r;e.finally=s}return i});const r=(t,r)=>{var n,u;let c=0;const h=t=>{return e.handlers[c++](t,c===e.handlers.length?f:h)};if(i.default.plainObject(t)){r={...t,...r};t=undefined}try{let i;try{m(e.options.hooks.init,r);m((n=r===null||r===void 0?void 0:r.hooks)===null||n===void 0?void 0:n.init,r)}catch(e){i=e}const c=l(t,r,e.options);c[a.kIsNormalizedAlready]=true;if(i){throw new s.RequestError(i.message,i,c)}return h(c)}catch(t){if(r===null||r===void 0?void 0:r.isStream){throw t}else{return o.default(t,e.options.hooks.beforeError,(u=r===null||r===void 0?void 0:r.hooks)===null||u===void 0?void 0:u.beforeError)}}};r.extend=((...r)=>{const n=[e.options];let i=[...e._rawHandlers];let s;for(const e of r){if(d(e)){n.push(e.defaults.options);i.push(...e.defaults._rawHandlers);s=e.defaults.mutableDefaults}else{n.push(e);if("handlers"in e){i.push(...e.handlers)}s=e.mutableDefaults}}i=i.filter(e=>e!==t.defaultHandler);if(i.length===0){i.push(t.defaultHandler)}return y({options:h(...n),handlers:i,mutableDefaults:Boolean(s)})});r.paginate=async function*(t,n){let s=l(t,n,e.options);s.resolveBodyOnly=false;const o=s.pagination;if(!i.default.object(o)){throw new TypeError("`options.pagination` must be implemented")}const a=[];let{countLimit:u}=o;let c=0;while(c<o.requestLimit){const e=await r("",s);const t=await o.transform(e);const n=[];for(const e of t){if(o.filter(e,a,n)){if(!o.shouldContinue(e,a,n)){return}yield e;if(o.stackAllItems){a.push(e)}n.push(e);if(--u<=0){return}}}const i=o.paginate(e,a,n);if(i===false){return}if(i===e.request.options){s=e.request.options}else if(i!==undefined){s=l(undefined,i,s)}c++}};r.paginate.all=(async(e,t)=>{const n=[];for await(const i of r.paginate(e,t)){n.push(i)}return n});r.stream=((e,t)=>r(e,{...t,isStream:true}));for(const e of p){r[e]=((t,n)=>r(t,{...n,method:e}));r.stream[e]=((t,n)=>{return r(t,{...n,method:e,isStream:true})})}Object.assign(r,{...c,mergeOptions:h});Object.defineProperty(r,"defaults",{value:e.mutableDefaults?e:u.default(e),writable:e.mutableDefaults,configurable:e.mutableDefaults,enumerable:true});return r};t.default=y},3061:(e,t,r)=>{"use strict";function __export(e){for(var r in e)if(!t.hasOwnProperty(r))t[r]=e[r]}Object.defineProperty(t,"__esModule",{value:true});const n=r(8835);const i=r(4337);const s={options:{method:"GET",retry:{limit:2,methods:["GET","PUT","HEAD","DELETE","OPTIONS","TRACE"],statusCodes:[408,413,429,500,502,503,504,521,522,524],errorCodes:["ETIMEDOUT","ECONNRESET","EADDRINUSE","ECONNREFUSED","EPIPE","ENOTFOUND","ENETUNREACH","EAI_AGAIN"],maxRetryAfter:undefined,calculateDelay:({computedValue:e})=>e},timeout:{},headers:{"user-agent":"got (https://github.com/sindresorhus/got)"},hooks:{init:[],beforeRequest:[],beforeRedirect:[],beforeRetry:[],beforeError:[],afterResponse:[]},cache:undefined,dnsCache:undefined,decompress:true,throwHttpErrors:true,followRedirect:true,isStream:false,responseType:"text",resolveBodyOnly:false,maxRedirects:10,prefixUrl:"",methodRewriting:true,ignoreInvalidCookies:false,context:{},http2:false,allowGetBody:false,rejectUnauthorized:true,pagination:{transform:e=>{if(e.request.options.responseType==="json"){return e.body}return JSON.parse(e.body)},paginate:e=>{if(!Reflect.has(e.headers,"link")){return false}const t=e.headers.link.split(",");let r;for(const e of t){const t=e.split(";");if(t[1].includes("next")){r=t[0].trimStart().trim();r=r.slice(1,-1);break}}if(r){const e={url:new n.URL(r)};return e}return false},filter:()=>true,shouldContinue:()=>true,countLimit:Infinity,requestLimit:1e4,stackAllItems:true}},handlers:[i.defaultHandler],mutableDefaults:false};const o=i.default(s);t.default=o;e.exports=o;e.exports.default=o;__export(r(4337));__export(r(6056))},285:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(7678);function deepFreeze(e){for(const t of Object.values(e)){if(n.default.plainObject(t)||n.default.array(t)){deepFreeze(t)}}return Object.freeze(e)}t.default=deepFreeze},7356:e=>{"use strict";e.exports=clone;function clone(e){if(e===null||typeof e!=="object")return e;if(e instanceof Object)var t={__proto__:e.__proto__};else var t=Object.create(null);Object.getOwnPropertyNames(e).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))});return t}},7758:(e,t,r)=>{var n=r(5747);var i=r(263);var s=r(3086);var o=r(7356);var a=r(1669);var u;var c;if(typeof Symbol==="function"&&typeof Symbol.for==="function"){u=Symbol.for("graceful-fs.queue");c=Symbol.for("graceful-fs.previous")}else{u="___graceful-fs.queue";c="___graceful-fs.previous"}function noop(){}function publishQueue(e,t){Object.defineProperty(e,u,{get:function(){return t}})}var l=noop;if(a.debuglog)l=a.debuglog("gfs4");else if(/\bgfs4\b/i.test(process.env.NODE_DEBUG||""))l=function(){var e=a.format.apply(a,arguments);e="GFS4: "+e.split(/\n/).join("\nGFS4: ");console.error(e)};if(!n[u]){var h=global[u]||[];publishQueue(n,h);n.close=function(e){function close(t,r){return e.call(n,t,function(e){if(!e){retry()}if(typeof r==="function")r.apply(this,arguments)})}Object.defineProperty(close,c,{value:e});return close}(n.close);n.closeSync=function(e){function closeSync(t){e.apply(n,arguments);retry()}Object.defineProperty(closeSync,c,{value:e});return closeSync}(n.closeSync);if(/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")){process.on("exit",function(){l(n[u]);r(2357).equal(n[u].length,0)})}}if(!global[u]){publishQueue(global,n[u])}e.exports=patch(o(n));if(process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!n.__patched){e.exports=patch(n);n.__patched=true}function patch(e){i(e);e.gracefulify=patch;e.createReadStream=createReadStream;e.createWriteStream=createWriteStream;var t=e.readFile;e.readFile=readFile;function readFile(e,r,n){if(typeof r==="function")n=r,r=null;return go$readFile(e,r,n);function go$readFile(e,r,n){return t(e,r,function(t){if(t&&(t.code==="EMFILE"||t.code==="ENFILE"))enqueue([go$readFile,[e,r,n]]);else{if(typeof n==="function")n.apply(this,arguments);retry()}})}}var r=e.writeFile;e.writeFile=writeFile;function writeFile(e,t,n,i){if(typeof n==="function")i=n,n=null;return go$writeFile(e,t,n,i);function go$writeFile(e,t,n,i){return r(e,t,n,function(r){if(r&&(r.code==="EMFILE"||r.code==="ENFILE"))enqueue([go$writeFile,[e,t,n,i]]);else{if(typeof i==="function")i.apply(this,arguments);retry()}})}}var n=e.appendFile;if(n)e.appendFile=appendFile;function appendFile(e,t,r,i){if(typeof r==="function")i=r,r=null;return go$appendFile(e,t,r,i);function go$appendFile(e,t,r,i){return n(e,t,r,function(n){if(n&&(n.code==="EMFILE"||n.code==="ENFILE"))enqueue([go$appendFile,[e,t,r,i]]);else{if(typeof i==="function")i.apply(this,arguments);retry()}})}}var o=e.readdir;e.readdir=readdir;function readdir(e,t,r){var n=[e];if(typeof t!=="function"){n.push(t)}else{r=t}n.push(go$readdir$cb);return go$readdir(n);function go$readdir$cb(e,t){if(t&&t.sort)t.sort();if(e&&(e.code==="EMFILE"||e.code==="ENFILE"))enqueue([go$readdir,[n]]);else{if(typeof r==="function")r.apply(this,arguments);retry()}}}function go$readdir(t){return o.apply(e,t)}if(process.version.substr(0,4)==="v0.8"){var a=s(e);ReadStream=a.ReadStream;WriteStream=a.WriteStream}var u=e.ReadStream;if(u){ReadStream.prototype=Object.create(u.prototype);ReadStream.prototype.open=ReadStream$open}var c=e.WriteStream;if(c){WriteStream.prototype=Object.create(c.prototype);WriteStream.prototype.open=WriteStream$open}Object.defineProperty(e,"ReadStream",{get:function(){return ReadStream},set:function(e){ReadStream=e},enumerable:true,configurable:true});Object.defineProperty(e,"WriteStream",{get:function(){return WriteStream},set:function(e){WriteStream=e},enumerable:true,configurable:true});var l=ReadStream;Object.defineProperty(e,"FileReadStream",{get:function(){return l},set:function(e){l=e},enumerable:true,configurable:true});var h=WriteStream;Object.defineProperty(e,"FileWriteStream",{get:function(){return h},set:function(e){h=e},enumerable:true,configurable:true});function ReadStream(e,t){if(this instanceof ReadStream)return u.apply(this,arguments),this;else return ReadStream.apply(Object.create(ReadStream.prototype),arguments)}function ReadStream$open(){var e=this;open(e.path,e.flags,e.mode,function(t,r){if(t){if(e.autoClose)e.destroy();e.emit("error",t)}else{e.fd=r;e.emit("open",r);e.read()}})}function WriteStream(e,t){if(this instanceof WriteStream)return c.apply(this,arguments),this;else return WriteStream.apply(Object.create(WriteStream.prototype),arguments)}function WriteStream$open(){var e=this;open(e.path,e.flags,e.mode,function(t,r){if(t){e.destroy();e.emit("error",t)}else{e.fd=r;e.emit("open",r)}})}function createReadStream(t,r){return new e.ReadStream(t,r)}function createWriteStream(t,r){return new e.WriteStream(t,r)}var f=e.open;e.open=open;function open(e,t,r,n){if(typeof r==="function")n=r,r=null;return go$open(e,t,r,n);function go$open(e,t,r,n){return f(e,t,r,function(i,s){if(i&&(i.code==="EMFILE"||i.code==="ENFILE"))enqueue([go$open,[e,t,r,n]]);else{if(typeof n==="function")n.apply(this,arguments);retry()}})}}return e}function enqueue(e){l("ENQUEUE",e[0].name,e[1]);n[u].push(e)}function retry(){var e=n[u].shift();if(e){l("RETRY",e[0].name,e[1]);e[0].apply(null,e[1])}}},3086:(e,t,r)=>{var n=r(2413).Stream;e.exports=legacy;function legacy(e){return{ReadStream:ReadStream,WriteStream:WriteStream};function ReadStream(t,r){if(!(this instanceof ReadStream))return new ReadStream(t,r);n.call(this);var i=this;this.path=t;this.fd=null;this.readable=true;this.paused=false;this.flags="r";this.mode=438;this.bufferSize=64*1024;r=r||{};var s=Object.keys(r);for(var o=0,a=s.length;o<a;o++){var u=s[o];this[u]=r[u]}if(this.encoding)this.setEncoding(this.encoding);if(this.start!==undefined){if("number"!==typeof this.start){throw TypeError("start must be a Number")}if(this.end===undefined){this.end=Infinity}else if("number"!==typeof this.end){throw TypeError("end must be a Number")}if(this.start>this.end){throw new Error("start must be <= end")}this.pos=this.start}if(this.fd!==null){process.nextTick(function(){i._read()});return}e.open(this.path,this.flags,this.mode,function(e,t){if(e){i.emit("error",e);i.readable=false;return}i.fd=t;i.emit("open",t);i._read()})}function WriteStream(t,r){if(!(this instanceof WriteStream))return new WriteStream(t,r);n.call(this);this.path=t;this.fd=null;this.writable=true;this.flags="w";this.encoding="binary";this.mode=438;this.bytesWritten=0;r=r||{};var i=Object.keys(r);for(var s=0,o=i.length;s<o;s++){var a=i[s];this[a]=r[a]}if(this.start!==undefined){if("number"!==typeof this.start){throw TypeError("start must be a Number")}if(this.start<0){throw new Error("start must be >= zero")}this.pos=this.start}this.busy=false;this._queue=[];if(this.fd===null){this._open=e.open;this._queue.push([this._open,this.path,this.flags,this.mode,undefined]);this.flush()}}}},263:(e,t,r)=>{var n=r(7619);var i=process.cwd;var s=null;var o=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){if(!s)s=i.call(process);return s};try{process.cwd()}catch(e){}var a=process.chdir;process.chdir=function(e){s=null;a.call(process,e)};e.exports=patch;function patch(e){if(n.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)){patchLchmod(e)}if(!e.lutimes){patchLutimes(e)}e.chown=chownFix(e.chown);e.fchown=chownFix(e.fchown);e.lchown=chownFix(e.lchown);e.chmod=chmodFix(e.chmod);e.fchmod=chmodFix(e.fchmod);e.lchmod=chmodFix(e.lchmod);e.chownSync=chownFixSync(e.chownSync);e.fchownSync=chownFixSync(e.fchownSync);e.lchownSync=chownFixSync(e.lchownSync);e.chmodSync=chmodFixSync(e.chmodSync);e.fchmodSync=chmodFixSync(e.fchmodSync);e.lchmodSync=chmodFixSync(e.lchmodSync);e.stat=statFix(e.stat);e.fstat=statFix(e.fstat);e.lstat=statFix(e.lstat);e.statSync=statFixSync(e.statSync);e.fstatSync=statFixSync(e.fstatSync);e.lstatSync=statFixSync(e.lstatSync);if(!e.lchmod){e.lchmod=function(e,t,r){if(r)process.nextTick(r)};e.lchmodSync=function(){}}if(!e.lchown){e.lchown=function(e,t,r,n){if(n)process.nextTick(n)};e.lchownSync=function(){}}if(o==="win32"){e.rename=function(t){return function(r,n,i){var s=Date.now();var o=0;t(r,n,function CB(a){if(a&&(a.code==="EACCES"||a.code==="EPERM")&&Date.now()-s<6e4){setTimeout(function(){e.stat(n,function(e,s){if(e&&e.code==="ENOENT")t(r,n,CB);else i(a)})},o);if(o<100)o+=10;return}if(i)i(a)})}}(e.rename)}e.read=function(t){function read(r,n,i,s,o,a){var u;if(a&&typeof a==="function"){var c=0;u=function(l,h,f){if(l&&l.code==="EAGAIN"&&c<10){c++;return t.call(e,r,n,i,s,o,u)}a.apply(this,arguments)}}return t.call(e,r,n,i,s,o,u)}read.__proto__=t;return read}(e.read);e.readSync=function(t){return function(r,n,i,s,o){var a=0;while(true){try{return t.call(e,r,n,i,s,o)}catch(e){if(e.code==="EAGAIN"&&a<10){a++;continue}throw e}}}}(e.readSync);function patchLchmod(e){e.lchmod=function(t,r,i){e.open(t,n.O_WRONLY|n.O_SYMLINK,r,function(t,n){if(t){if(i)i(t);return}e.fchmod(n,r,function(t){e.close(n,function(e){if(i)i(t||e)})})})};e.lchmodSync=function(t,r){var i=e.openSync(t,n.O_WRONLY|n.O_SYMLINK,r);var s=true;var o;try{o=e.fchmodSync(i,r);s=false}finally{if(s){try{e.closeSync(i)}catch(e){}}else{e.closeSync(i)}}return o}}function patchLutimes(e){if(n.hasOwnProperty("O_SYMLINK")){e.lutimes=function(t,r,i,s){e.open(t,n.O_SYMLINK,function(t,n){if(t){if(s)s(t);return}e.futimes(n,r,i,function(t){e.close(n,function(e){if(s)s(t||e)})})})};e.lutimesSync=function(t,r,i){var s=e.openSync(t,n.O_SYMLINK);var o;var a=true;try{o=e.futimesSync(s,r,i);a=false}finally{if(a){try{e.closeSync(s)}catch(e){}}else{e.closeSync(s)}}return o}}else{e.lutimes=function(e,t,r,n){if(n)process.nextTick(n)};e.lutimesSync=function(){}}}function chmodFix(t){if(!t)return t;return function(r,n,i){return t.call(e,r,n,function(e){if(chownErOk(e))e=null;if(i)i.apply(this,arguments)})}}function chmodFixSync(t){if(!t)return t;return function(r,n){try{return t.call(e,r,n)}catch(e){if(!chownErOk(e))throw e}}}function chownFix(t){if(!t)return t;return function(r,n,i,s){return t.call(e,r,n,i,function(e){if(chownErOk(e))e=null;if(s)s.apply(this,arguments)})}}function chownFixSync(t){if(!t)return t;return function(r,n,i){try{return t.call(e,r,n,i)}catch(e){if(!chownErOk(e))throw e}}}function statFix(t){if(!t)return t;return function(r,n,i){if(typeof n==="function"){i=n;n=null}function callback(e,t){if(t){if(t.uid<0)t.uid+=4294967296;if(t.gid<0)t.gid+=4294967296}if(i)i.apply(this,arguments)}return n?t.call(e,r,n,callback):t.call(e,r,callback)}}function statFixSync(t){if(!t)return t;return function(r,n){var i=n?t.call(e,r,n):t.call(e,r);if(i.uid<0)i.uid+=4294967296;if(i.gid<0)i.gid+=4294967296;return i}}function chownErOk(e){if(!e)return true;if(e.code==="ENOSYS")return true;var t=!process.getuid||process.getuid()!==0;if(t){if(e.code==="EINVAL"||e.code==="EPERM")return true}return false}}},1621:e=>{"use strict";e.exports=((e,t=process.argv)=>{const r=e.startsWith("-")?"":e.length===1?"-":"--";const n=t.indexOf(r+e);const i=t.indexOf("--");return n!==-1&&(i===-1||n<i)})},135:e=>{"use strict";var t=e.exports={github:{protocols:["git","http","git+ssh","git+https","ssh","https"],domain:"github.com",treepath:"tree",filetemplate:"https://{auth@}raw.githubusercontent.com/{user}/{project}/{committish}/{path}",bugstemplate:"https://{domain}/{user}/{project}/issues",gittemplate:"git://{auth@}{domain}/{user}/{project}.git{#committish}",tarballtemplate:"https://codeload.{domain}/{user}/{project}/tar.gz/{committish}"},bitbucket:{protocols:["git+ssh","git+https","ssh","https"],domain:"bitbucket.org",treepath:"src",tarballtemplate:"https://{domain}/{user}/{project}/get/{committish}.tar.gz"},gitlab:{protocols:["git+ssh","git+https","ssh","https"],domain:"gitlab.com",treepath:"tree",bugstemplate:"https://{domain}/{user}/{project}/issues",httpstemplate:"git+https://{auth@}{domain}/{user}/{projectPath}.git{#committish}",tarballtemplate:"https://{domain}/{user}/{project}/repository/archive.tar.gz?ref={committish}",pathmatch:/^[/]([^/]+)[/]((?!.*(\/-\/|\/repository\/archive\.tar\.gz\?=.*|\/repository\/[^/]+\/archive.tar.gz$)).*?)(?:[.]git|[/])?$/},gist:{protocols:["git","git+ssh","git+https","ssh","https"],domain:"gist.github.com",pathmatch:/^[/](?:([^/]+)[/])?([a-z0-9]{32,})(?:[.]git)?$/,filetemplate:"https://gist.githubusercontent.com/{user}/{project}/raw{/committish}/{path}",bugstemplate:"https://{domain}/{project}",gittemplate:"git://{domain}/{project}.git{#committish}",sshtemplate:"git@{domain}:/{project}.git{#committish}",sshurltemplate:"git+ssh://git@{domain}/{project}.git{#committish}",browsetemplate:"https://{domain}/{project}{/committish}",browsefiletemplate:"https://{domain}/{project}{/committish}{#path}",docstemplate:"https://{domain}/{project}{/committish}",httpstemplate:"git+https://{domain}/{project}.git{#committish}",shortcuttemplate:"{type}:{project}{#committish}",pathtemplate:"{project}{#committish}",tarballtemplate:"https://codeload.github.com/gist/{project}/tar.gz/{committish}",hashformat:function(e){return"file-"+formatHashFragment(e)}}};var r={sshtemplate:"git@{domain}:{user}/{project}.git{#committish}",sshurltemplate:"git+ssh://git@{domain}/{user}/{project}.git{#committish}",browsetemplate:"https://{domain}/{user}/{project}{/tree/committish}",browsefiletemplate:"https://{domain}/{user}/{project}/{treepath}/{committish}/{path}{#fragment}",docstemplate:"https://{domain}/{user}/{project}{/tree/committish}#readme",httpstemplate:"git+https://{auth@}{domain}/{user}/{project}.git{#committish}",filetemplate:"https://{domain}/{user}/{project}/raw/{committish}/{path}",shortcuttemplate:"{type}:{user}/{project}{#committish}",pathtemplate:"{user}/{project}{#committish}",pathmatch:/^[/]([^/]+)[/]([^/]+?)(?:[.]git|[/])?$/,hashformat:formatHashFragment};Object.keys(t).forEach(function(e){Object.keys(r).forEach(function(n){if(t[e][n])return;t[e][n]=r[n]});t[e].protocols_re=RegExp("^("+t[e].protocols.map(function(e){return e.replace(/([\\+*{}()[\]$^|])/g,"\\$1")}).join("|")+"):$")});function formatHashFragment(e){return e.toLowerCase().replace(/^\W+|\/|\W+$/g,"").replace(/\W+/g,"-")}},8145:(e,t,r)=>{"use strict";var n=r(135);var i=Object.assign||function _extend(e,t){if(t===null||typeof t!=="object")return e;const r=Object.keys(t);let n=r.length;while(n--){e[r[n]]=t[r[n]]}return e};e.exports=GitHost;function GitHost(e,t,r,i,s,o,a){var u=this;u.type=e;Object.keys(n[e]).forEach(function(t){u[t]=n[e][t]});u.user=t;u.auth=r;u.project=i;u.committish=s;u.default=o;u.opts=a||{}}GitHost.prototype.hash=function(){return this.committish?"#"+this.committish:""};GitHost.prototype._fill=function(e,t){if(!e)return;var r=i({},t);r.path=r.path?r.path.replace(/^[/]+/g,""):"";t=i(i({},this.opts),t);var n=this;Object.keys(this).forEach(function(e){if(n[e]!=null&&r[e]==null)r[e]=n[e]});var s=r.auth;var o=r.committish;var a=r.fragment;var u=r.path;var c=r.project;Object.keys(r).forEach(function(e){var t=r[e];if((e==="path"||e==="project")&&typeof t==="string"){r[e]=t.split("/").map(function(e){return encodeURIComponent(e)}).join("/")}else if(e!=="domain"){r[e]=encodeURIComponent(t)}});r["auth@"]=s?s+"@":"";r["#fragment"]=a?"#"+this.hashformat(a):"";r.fragment=r.fragment?r.fragment:"";r["#path"]=u?"#"+this.hashformat(u):"";r["/path"]=r.path?"/"+r.path:"";r.projectPath=c.split("/").map(encodeURIComponent).join("/");if(t.noCommittish){r["#committish"]="";r["/tree/committish"]="";r["/committish"]="";r.committish=""}else{r["#committish"]=o?"#"+o:"";r["/tree/committish"]=r.committish?"/"+r.treepath+"/"+r.committish:"";r["/committish"]=r.committish?"/"+r.committish:"";r.committish=r.committish||"master"}var l=e;Object.keys(r).forEach(function(e){l=l.replace(new RegExp("[{]"+e+"[}]","g"),r[e])});if(t.noGitPlus){return l.replace(/^git[+]/,"")}else{return l}};GitHost.prototype.ssh=function(e){return this._fill(this.sshtemplate,e)};GitHost.prototype.sshurl=function(e){return this._fill(this.sshurltemplate,e)};GitHost.prototype.browse=function(e,t,r){if(typeof e==="string"){if(typeof t!=="string"){r=t;t=null}return this._fill(this.browsefiletemplate,i({fragment:t,path:e},r))}else{return this._fill(this.browsetemplate,e)}};GitHost.prototype.docs=function(e){return this._fill(this.docstemplate,e)};GitHost.prototype.bugs=function(e){return this._fill(this.bugstemplate,e)};GitHost.prototype.https=function(e){return this._fill(this.httpstemplate,e)};GitHost.prototype.git=function(e){return this._fill(this.gittemplate,e)};GitHost.prototype.shortcut=function(e){return this._fill(this.shortcuttemplate,e)};GitHost.prototype.path=function(e){return this._fill(this.pathtemplate,e)};GitHost.prototype.tarball=function(e){var t=i({},e,{noCommittish:false});return this._fill(this.tarballtemplate,t)};GitHost.prototype.file=function(e,t){return this._fill(this.filetemplate,i({path:e},t))};GitHost.prototype.getDefaultRepresentation=function(){return this.default};GitHost.prototype.toString=function(e){if(this.default&&typeof this[this.default]==="function")return this[this.default](e);return this.sshurl(e)}},8869:(e,t,r)=>{"use strict";var n=r(8835);var i=r(135);var s=e.exports=r(8145);var o=r(7129);var a=new o({max:1e3});var u={"git+ssh:":"sshurl","git+https:":"https","ssh:":"sshurl","git:":"git"};function protocolToRepresentation(e){return u[e]||e.slice(0,-1)}var c={"git:":true,"https:":true,"git+https:":true,"http:":true,"git+http:":true};e.exports.fromUrl=function(e,t){if(typeof e!=="string")return;var r=e+JSON.stringify(t||{});if(!a.has(r)){a.set(r,fromUrl(e,t))}return a.get(r)};function fromUrl(e,t){if(e==null||e==="")return;var r=fixupUnqualifiedGist(isGitHubShorthand(e)?"github:"+e:e);var n=parseGitUrl(r);var o=r.match(new RegExp("^([^:]+):(?:(?:[^@:]+(?:[^@]+)?@)?([^/]*))[/](.+?)(?:[.]git)?($|#)"));var a=Object.keys(i).map(function(e){try{var r=i[e];var a=null;if(n.auth&&c[n.protocol]){a=n.auth}var u=n.hash?decodeURIComponent(n.hash.substr(1)):null;var l=null;var h=null;var f=null;if(o&&o[1]===e){l=o[2]&&decodeURIComponent(o[2]);h=decodeURIComponent(o[3]);f="shortcut"}else{if(n.host&&n.host!==r.domain&&n.host.replace(/^www[.]/,"")!==r.domain)return;if(!r.protocols_re.test(n.protocol))return;if(!n.path)return;var d=r.pathmatch;var p=n.path.match(d);if(!p)return;if(p[1]!==null&&p[1]!==undefined){l=decodeURIComponent(p[1].replace(/^:/,""))}h=decodeURIComponent(p[2]);f=protocolToRepresentation(n.protocol)}return new s(e,l,a,h,u,f,t)}catch(e){if(e instanceof URIError){}else throw e}}).filter(function(e){return e});if(a.length!==1)return;return a[0]}function isGitHubShorthand(e){return/^[^:@%/\s.-][^:@%/\s]*[/][^:@\s/%]+(?:#.*)?$/.test(e)}function fixupUnqualifiedGist(e){var t=n.parse(e);if(t.protocol==="gist:"&&t.host&&!t.path){return t.protocol+"/"+t.host}else{return e}}function parseGitUrl(e){var t=e.match(/^([^@]+)@([^:/]+):[/]?((?:[^/]+[/])?[^/]+?)(?:[.]git)?(#.*)?$/);if(!t){var r=n.parse(e);if(r.auth){const t=e.match(/[^@]+@[^:/]+/);if(t){var i=new n.URL(t[0]);r.auth=i.username||"";if(i.password)r.auth+=":"+i.password}}return r}return{protocol:"git+ssh:",slashes:true,auth:t[1],host:t[2],port:null,hostname:t[2],hash:t[4],search:null,query:null,pathname:"/"+t[3],path:"/"+t[3],href:"git+ssh://"+t[1]+"@"+t[2]+"/"+t[3]+(t[4]||"")}}},1002:e=>{"use strict";const t=new Set([200,203,204,206,300,301,404,405,410,414,501]);const r=new Set([200,203,204,300,301,302,303,307,308,404,405,410,414,501]);const n=new Set([500,502,503,504]);const i={date:true,connection:true,"keep-alive":true,"proxy-authenticate":true,"proxy-authorization":true,te:true,trailer:true,"transfer-encoding":true,upgrade:true};const s={"content-length":true,"content-encoding":true,"transfer-encoding":true,"content-range":true};function toNumberOrZero(e){const t=parseInt(e,10);return isFinite(t)?t:0}function isErrorResponse(e){if(!e){return true}return n.has(e.status)}function parseCacheControl(e){const t={};if(!e)return t;const r=e.trim().split(/\s*,\s*/);for(const e of r){const[r,n]=e.split(/\s*=\s*/,2);t[r]=n===undefined?true:n.replace(/^"|"$/g,"")}return t}function formatCacheControl(e){let t=[];for(const r in e){const n=e[r];t.push(n===true?r:r+"="+n)}if(!t.length){return undefined}return t.join(", ")}e.exports=class CachePolicy{constructor(e,t,{shared:r,cacheHeuristic:n,immutableMinTimeToLive:i,ignoreCargoCult:s,_fromObject:o}={}){if(o){this._fromObject(o);return}if(!t||!t.headers){throw Error("Response headers missing")}this._assertRequestHasHeaders(e);this._responseTime=this.now();this._isShared=r!==false;this._cacheHeuristic=undefined!==n?n:.1;this._immutableMinTtl=undefined!==i?i:24*3600*1e3;this._status="status"in t?t.status:200;this._resHeaders=t.headers;this._rescc=parseCacheControl(t.headers["cache-control"]);this._method="method"in e?e.method:"GET";this._url=e.url;this._host=e.headers.host;this._noAuthorization=!e.headers.authorization;this._reqHeaders=t.headers.vary?e.headers:null;this._reqcc=parseCacheControl(e.headers["cache-control"]);if(s&&"pre-check"in this._rescc&&"post-check"in this._rescc){delete this._rescc["pre-check"];delete this._rescc["post-check"];delete this._rescc["no-cache"];delete this._rescc["no-store"];delete this._rescc["must-revalidate"];this._resHeaders=Object.assign({},this._resHeaders,{"cache-control":formatCacheControl(this._rescc)});delete this._resHeaders.expires;delete this._resHeaders.pragma}if(t.headers["cache-control"]==null&&/no-cache/.test(t.headers.pragma)){this._rescc["no-cache"]=true}}now(){return Date.now()}storable(){return!!(!this._reqcc["no-store"]&&("GET"===this._method||"HEAD"===this._method||"POST"===this._method&&this._hasExplicitExpiration())&&r.has(this._status)&&!this._rescc["no-store"]&&(!this._isShared||!this._rescc.private)&&(!this._isShared||this._noAuthorization||this._allowsStoringAuthenticated())&&(this._resHeaders.expires||this._rescc["max-age"]||this._isShared&&this._rescc["s-maxage"]||this._rescc.public||t.has(this._status)))}_hasExplicitExpiration(){return this._isShared&&this._rescc["s-maxage"]||this._rescc["max-age"]||this._resHeaders.expires}_assertRequestHasHeaders(e){if(!e||!e.headers){throw Error("Request headers missing")}}satisfiesWithoutRevalidation(e){this._assertRequestHasHeaders(e);const t=parseCacheControl(e.headers["cache-control"]);if(t["no-cache"]||/no-cache/.test(e.headers.pragma)){return false}if(t["max-age"]&&this.age()>t["max-age"]){return false}if(t["min-fresh"]&&this.timeToLive()<1e3*t["min-fresh"]){return false}if(this.stale()){const e=t["max-stale"]&&!this._rescc["must-revalidate"]&&(true===t["max-stale"]||t["max-stale"]>this.age()-this.maxAge());if(!e){return false}}return this._requestMatches(e,false)}_requestMatches(e,t){return(!this._url||this._url===e.url)&&this._host===e.headers.host&&(!e.method||this._method===e.method||t&&"HEAD"===e.method)&&this._varyMatches(e)}_allowsStoringAuthenticated(){return this._rescc["must-revalidate"]||this._rescc.public||this._rescc["s-maxage"]}_varyMatches(e){if(!this._resHeaders.vary){return true}if(this._resHeaders.vary==="*"){return false}const t=this._resHeaders.vary.trim().toLowerCase().split(/\s*,\s*/);for(const r of t){if(e.headers[r]!==this._reqHeaders[r])return false}return true}_copyWithoutHopByHopHeaders(e){const t={};for(const r in e){if(i[r])continue;t[r]=e[r]}if(e.connection){const r=e.connection.trim().split(/\s*,\s*/);for(const e of r){delete t[e]}}if(t.warning){const e=t.warning.split(/,/).filter(e=>{return!/^\s*1[0-9][0-9]/.test(e)});if(!e.length){delete t.warning}else{t.warning=e.join(",").trim()}}return t}responseHeaders(){const e=this._copyWithoutHopByHopHeaders(this._resHeaders);const t=this.age();if(t>3600*24&&!this._hasExplicitExpiration()&&this.maxAge()>3600*24){e.warning=(e.warning?`${e.warning}, `:"")+'113 - "rfc7234 5.5.4"'}e.age=`${Math.round(t)}`;e.date=new Date(this.now()).toUTCString();return e}date(){const e=Date.parse(this._resHeaders.date);if(isFinite(e)){return e}return this._responseTime}age(){let e=this._ageValue();const t=(this.now()-this._responseTime)/1e3;return e+t}_ageValue(){return toNumberOrZero(this._resHeaders.age)}maxAge(){if(!this.storable()||this._rescc["no-cache"]){return 0}if(this._isShared&&(this._resHeaders["set-cookie"]&&!this._rescc.public&&!this._rescc.immutable)){return 0}if(this._resHeaders.vary==="*"){return 0}if(this._isShared){if(this._rescc["proxy-revalidate"]){return 0}if(this._rescc["s-maxage"]){return toNumberOrZero(this._rescc["s-maxage"])}}if(this._rescc["max-age"]){return toNumberOrZero(this._rescc["max-age"])}const e=this._rescc.immutable?this._immutableMinTtl:0;const t=this.date();if(this._resHeaders.expires){const r=Date.parse(this._resHeaders.expires);if(Number.isNaN(r)||r<t){return 0}return Math.max(e,(r-t)/1e3)}if(this._resHeaders["last-modified"]){const r=Date.parse(this._resHeaders["last-modified"]);if(isFinite(r)&&t>r){return Math.max(e,(t-r)/1e3*this._cacheHeuristic)}}return e}timeToLive(){const e=this.maxAge()-this.age();const t=e+toNumberOrZero(this._rescc["stale-if-error"]);const r=e+toNumberOrZero(this._rescc["stale-while-revalidate"]);return Math.max(0,e,t,r)*1e3}stale(){return this.maxAge()<=this.age()}_useStaleIfError(){return this.maxAge()+toNumberOrZero(this._rescc["stale-if-error"])>this.age()}useStaleWhileRevalidate(){return this.maxAge()+toNumberOrZero(this._rescc["stale-while-revalidate"])>this.age()}static fromObject(e){return new this(undefined,undefined,{_fromObject:e})}_fromObject(e){if(this._responseTime)throw Error("Reinitialized");if(!e||e.v!==1)throw Error("Invalid serialization");this._responseTime=e.t;this._isShared=e.sh;this._cacheHeuristic=e.ch;this._immutableMinTtl=e.imm!==undefined?e.imm:24*3600*1e3;this._status=e.st;this._resHeaders=e.resh;this._rescc=e.rescc;this._method=e.m;this._url=e.u;this._host=e.h;this._noAuthorization=e.a;this._reqHeaders=e.reqh;this._reqcc=e.reqcc}toObject(){return{v:1,t:this._responseTime,sh:this._isShared,ch:this._cacheHeuristic,imm:this._immutableMinTtl,st:this._status,resh:this._resHeaders,rescc:this._rescc,m:this._method,u:this._url,h:this._host,a:this._noAuthorization,reqh:this._reqHeaders,reqcc:this._reqcc}}revalidationHeaders(e){this._assertRequestHasHeaders(e);const t=this._copyWithoutHopByHopHeaders(e.headers);delete t["if-range"];if(!this._requestMatches(e,true)||!this.storable()){delete t["if-none-match"];delete t["if-modified-since"];return t}if(this._resHeaders.etag){t["if-none-match"]=t["if-none-match"]?`${t["if-none-match"]}, ${this._resHeaders.etag}`:this._resHeaders.etag}const r=t["accept-ranges"]||t["if-match"]||t["if-unmodified-since"]||this._method&&this._method!="GET";if(r){delete t["if-modified-since"];if(t["if-none-match"]){const e=t["if-none-match"].split(/,/).filter(e=>{return!/^\s*W\//.test(e)});if(!e.length){delete t["if-none-match"]}else{t["if-none-match"]=e.join(",").trim()}}}else if(this._resHeaders["last-modified"]&&!t["if-modified-since"]){t["if-modified-since"]=this._resHeaders["last-modified"]}return t}revalidatedPolicy(e,t){this._assertRequestHasHeaders(e);if(this._useStaleIfError()&&isErrorResponse(t)){return{modified:false,matches:false,policy:this}}if(!t||!t.headers){throw Error("Response headers missing")}let r=false;if(t.status!==undefined&&t.status!=304){r=false}else if(t.headers.etag&&!/^\s*W\//.test(t.headers.etag)){r=this._resHeaders.etag&&this._resHeaders.etag.replace(/^\s*W\//,"")===t.headers.etag}else if(this._resHeaders.etag&&t.headers.etag){r=this._resHeaders.etag.replace(/^\s*W\//,"")===t.headers.etag.replace(/^\s*W\//,"")}else if(this._resHeaders["last-modified"]){r=this._resHeaders["last-modified"]===t.headers["last-modified"]}else{if(!this._resHeaders.etag&&!this._resHeaders["last-modified"]&&!t.headers.etag&&!t.headers["last-modified"]){r=true}}if(!r){return{policy:new this.constructor(e,t),modified:t.status!=304,matches:false}}const n={};for(const e in this._resHeaders){n[e]=e in t.headers&&!s[e]?t.headers[e]:this._resHeaders[e]}const i=Object.assign({},t,{status:this._status,method:this._method,headers:n});return{policy:new this.constructor(e,i,{shared:this._isShared,cacheHeuristic:this._cacheHeuristic,immutableMinTimeToLive:this._immutableMinTtl}),modified:false,matches:true}}}},9898:(e,t,r)=>{"use strict";const n=r(8614);const i=r(4016);const s=r(7565);const o=r(9273);const a=Symbol("currentStreamsCount");const u=Symbol("request");const c=Symbol("cachedOriginSet");const l=["maxDeflateDynamicTableSize","maxSessionMemory","maxHeaderListPairs","maxOutstandingPings","maxReservedRemoteStreams","maxSendHeaderBlockLength","paddingStrategy","localAddress","path","rejectUnauthorized","minDHSize","ca","cert","clientCertEngine","ciphers","key","pfx","servername","minVersion","maxVersion","secureProtocol","crl","honorCipherOrder","ecdhCurve","dhparam","secureOptions","sessionIdContext"];const h=(e,t,r)=>{if(t in e){const n=e[t].indexOf(r);if(n!==-1){e[t].splice(n,1);if(e[t].length===0){delete e[t]}return true}}return false};const f=(e,t,r)=>{if(t in e){e[t].push(r)}else{e[t]=[r]}};const d=(e,t,r)=>{if(!(t in e)){return[]}return e[t].filter(e=>{return!e.closed&&!e.destroyed&&e[c].includes(r)})};const p=(e,t,r)=>{if(!(t in e)){return}for(const n of e[t]){if(n[c].length<r[c].length&&n[c].every(e=>r[c].includes(e))&&n[a]+r[a]<=r.remoteSettings.maxConcurrentStreams){n.close()}}};const m=(e,t,r)=>{if(!(t in e)){return}for(const n of e[t]){if(r[c].length<n[c].length&&r[c].every(e=>n[c].includes(e))&&r[a]+n[a]<=n.remoteSettings.maxConcurrentStreams){r.close()}}};class Agent extends n{constructor({timeout:e=6e4,maxSessions:t=Infinity,maxFreeSessions:r=1,maxCachedTlsSessions:n=100}={}){super();this.busySessions={};this.freeSessions={};this.queue={};this.timeout=e;this.maxSessions=t;this.maxFreeSessions=r;this.settings={enablePush:false};this.tlsSessionCache=new o({maxSize:n})}static normalizeOrigin(e,t){if(typeof e==="string"){e=new URL(e)}if(t&&e.hostname!==t){e.hostname=t}return e.origin}normalizeOptions(e){let t="";if(e){for(const r of l){if(e[r]){t+=`:${e[r]}`}}}return t}_tryToCreateNewSession(e,t){if(!(e in this.queue)||!(t in this.queue[e])){return}const r=d(this.busySessions,e,t).length;const n=this.queue[e][t];if(r<this.maxSessions&&!n.completed){n.completed=true;n()}}_closeCoveredSessions(e,t){p(this.freeSessions,e,t);p(this.busySessions,e,t)}getSession(e,t,r){return new Promise((n,i)=>{if(Array.isArray(r)){r=[...r];n()}else{r=[{resolve:n,reject:i}]}const o=this.normalizeOptions(t);const l=Agent.normalizeOrigin(e,t&&t.servername);if(l===undefined){for(const{reject:e}of r){e(new TypeError("The `origin` argument needs to be a string or an URL object"))}return}if(o in this.freeSessions){const e=d(this.freeSessions,o,l);if(e.length!==0){const t=e.reduce((e,t)=>{if(t.remoteSettings.maxConcurrentStreams>=e.remoteSettings.maxConcurrentStreams&&t[a]>e[a]){return t}return e});for(const{resolve:e}of r){e(t)}return}}if(o in this.queue){if(l in this.queue[o]){this.queue[o][l].listeners.push(...r);return}}else{this.queue[o]={}}const p=()=>{if(o in this.queue&&this.queue[o][l]===y){delete this.queue[o][l];if(Object.keys(this.queue[o]).length===0){delete this.queue[o]}}};const y=()=>{const n=`${l}:${o}`;let i=false;let g;try{const v=this.tlsSessionCache.get(n);const b=s.connect(e,{createConnection:this.createConnection,settings:this.settings,session:v?v.session:undefined,...t});b[a]=0;const w=()=>{const e=b[c].reduce((e,t)=>{return Math.min(e,d(this.freeSessions,o,t).length)},Infinity);if(e<this.maxFreeSessions){f(this.freeSessions,o,b);return true}return false};const A=()=>b[a]<b.remoteSettings.maxConcurrentStreams;b.socket.once("session",e=>{setImmediate(()=>{this.tlsSessionCache.set(n,{session:e,servername:g})})});b.socket.once("secureConnect",()=>{g=b.socket.servername;if(g===false&&typeof v!=="undefined"&&typeof v.servername!=="undefined"){b.socket.servername=v.servername}});b.once("error",e=>{if(!i){for(const{reject:t}of r){t(e)}}this.tlsSessionCache.delete(n)});b.setTimeout(this.timeout,()=>{b.destroy()});b.once("close",()=>{if(!i){const e=new Error("Session closed without receiving a SETTINGS frame");for(const{reject:t}of r){t(e)}}p();h(this.freeSessions,o,b);this._tryToCreateNewSession(o,l)});const E=()=>{if(!(o in this.queue)){return}for(const e of b[c]){if(e in this.queue[o]){const{listeners:t}=this.queue[o][e];while(t.length!==0&&A()){t.shift().resolve(b)}if(this.queue[o][e].listeners.length===0){delete this.queue[o][e];if(Object.keys(this.queue[o]).length===0){delete this.queue[o];break}}if(!A()){break}}}};b.once("origin",()=>{b[c]=b.originSet;if(!A()){return}this._closeCoveredSessions(o,b);E();b.on("remoteSettings",()=>{this._closeCoveredSessions(o,b)})});b.once("remoteSettings",()=>{if(y.destroyed){const e=new Error("Agent has been destroyed");for(const t of r){t.reject(e)}b.destroy();return}b[c]=b.originSet;this.emit("session",b);if(w()){E()}else if(this.maxFreeSessions===0){E();setImmediate(()=>{b.close()})}else{b.close()}p();if(r.length!==0){this.getSession(l,t,r);r.length=0}i=true;b.on("remoteSettings",()=>{if(A()&&h(this.busySessions,o,b)){if(w()){E()}else{f(this.busySessions,o,b)}}})});b[u]=b.request;b.request=(e=>{const t=b[u](e,{endStream:false});b.ref();++b[a];if(!A()&&h(this.freeSessions,o,b)){f(this.busySessions,o,b)}t.once("close",()=>{--b[a];if(A()){if(b[a]===0){b.unref()}if(h(this.busySessions,o,b)&&!b.destroyed&&!b.closed){if(w()){this._closeCoveredSessions(o,b);E()}else{b.close()}}}if(!b.destroyed&&!b.closed){m(this.freeSessions,o,b)}});return t})}catch(e){for(const t of r){t.reject(e)}p()}};y.listeners=r;y.completed=false;y.destroyed=false;this.queue[o][l]=y;this._tryToCreateNewSession(o,l)})}request(e,t,r){return new Promise((n,i)=>{this.getSession(e,t,[{reject:i,resolve:e=>{n(e.request(r))}}])})}createConnection(e,t){return Agent.connect(e,t)}static connect(e,t){t.ALPNProtocols=["h2"];const r=e.port||443;const n=e.hostname||e.host;if(typeof t.servername==="undefined"){t.servername=n}return i.connect(r,n,t)}closeFreeSessions(){for(const e of Object.values(this.freeSessions)){for(const t of e){if(t[a]===0){t.close()}}}}destroy(e){for(const t of Object.values(this.busySessions)){for(const r of t){r.destroy(e)}}for(const t of Object.values(this.freeSessions)){for(const r of t){r.destroy(e)}}for(const e of Object.values(this.queue)){for(const t of Object.values(e)){t.destroyed=true}}this.queue={}}}e.exports={Agent:Agent,globalAgent:new Agent}},7167:(e,t,r)=>{"use strict";const n=r(4363);const i=r(7211);const s=r(6624);const o=r(9273);const a=r(9632);const u=r(1982);const c=r(2686);const l=new o({maxSize:100});const h=new Map;const f=(e,t,r)=>{t._httpMessage={shouldKeepAlive:true};const n=()=>{e.emit("free",t,r)};t.on("free",n);const i=()=>{e.removeSocket(t,r)};t.on("close",i);const s=()=>{e.removeSocket(t,r);t.off("close",i);t.off("free",n);t.off("agentRemove",s)};t.on("agentRemove",s);e.emit("free",t,r)};const d=async e=>{const t=`${e.host}:${e.port}:${e.ALPNProtocols.sort()}`;if(!l.has(t)){if(h.has(t)){const e=await h.get(t);return e.alpnProtocol}const{path:r,agent:n}=e;e.path=e.socketPath;const o=s(e);h.set(t,o);try{const{socket:s,alpnProtocol:a}=await o;l.set(t,a);e.path=r;if(a==="h2"){s.destroy()}else{const{globalAgent:t}=i;const r=i.Agent.prototype.createConnection;if(n){if(n.createConnection===r){f(n,s,e)}else{s.destroy()}}else if(t.createConnection===r){f(t,s,e)}else{s.destroy()}}h.delete(t);return a}catch(e){h.delete(t);throw e}}return l.get(t)};e.exports=(async(e,t,r)=>{if(typeof e==="string"||e instanceof URL){e=c(new URL(e))}if(typeof t==="function"){r=t;t=undefined}t={ALPNProtocols:["h2","http/1.1"],protocol:"https:",...e,...t,resolveSocket:true};const s=t.protocol==="https:";const o=t.agent;t.host=t.hostname||t.host||"localhost";t.session=t.tlsSession;t.servername=t.servername||u(t);t.port=t.port||(s?443:80);t._defaultAgent=s?i.globalAgent:n.globalAgent;if(o){if(o.addRequest){throw new Error("The `options.agent` object can contain only `http`, `https` or `http2` properties")}t.agent=o[s?"https":"http"]}if(s){const e=await d(t);if(e==="h2"){if(o){t.agent=o.http2}return new a(t,r)}}return n.request(t,r)});e.exports.protocolCache=l},9632:(e,t,r)=>{"use strict";const n=r(7565);const{Writable:i}=r(2413);const{Agent:s,globalAgent:o}=r(9898);const a=r(2575);const u=r(2686);const c=r(1818);const l=r(1199);const{ERR_INVALID_ARG_TYPE:h,ERR_INVALID_PROTOCOL:f,ERR_HTTP_HEADERS_SENT:d,ERR_INVALID_HTTP_TOKEN:p,ERR_HTTP_INVALID_HEADER_VALUE:m,ERR_INVALID_CHAR:y}=r(7087);const{HTTP2_HEADER_STATUS:g,HTTP2_HEADER_METHOD:v,HTTP2_HEADER_PATH:b,HTTP2_METHOD_CONNECT:w}=n.constants;const A=Symbol("headers");const E=Symbol("origin");const _=Symbol("session");const D=Symbol("options");const S=Symbol("flushedHeaders");const C=Symbol("jobs");const x=/^[\^_`a-zA-Z\-0-9!#$%&'*+.|~]+$/;const R=/[^\t\u0020-\u007E\u0080-\u00FF]/;class ClientRequest extends i{constructor(e,t,r){super({autoDestroy:false});const n=typeof e==="string"||e instanceof URL;if(n){e=u(e instanceof URL?e:new URL(e))}if(typeof t==="function"||t===undefined){r=t;t=n?e:{...e}}else{t={...e,...t}}if(t.h2session){this[_]=t.h2session}else if(t.agent===false){this.agent=new s({maxFreeSessions:0})}else if(typeof t.agent==="undefined"||t.agent===null){if(typeof t.createConnection==="function"){this.agent=new s({maxFreeSessions:0});this.agent.createConnection=t.createConnection}else{this.agent=o}}else if(typeof t.agent.request==="function"){this.agent=t.agent}else{throw new h("options.agent",["Agent-like Object","undefined","false"],t.agent)}if(!t.port){t.port=t.defaultPort||this.agent&&this.agent.defaultPort||443}t.host=t.hostname||t.host||"localhost";if(t.protocol&&t.protocol!=="https:"){throw new f(t.protocol,"https:")}const{timeout:i}=t;t.timeout=undefined;this[A]=Object.create(null);this[C]=[];this.socket=null;this.connection=null;this.method=t.method;this.path=t.path;this.res=null;this.aborted=false;this.reusedSocket=false;if(t.headers){for(const[e,r]of Object.entries(t.headers)){this.setHeader(e,r)}}if(t.auth&&!("authorization"in this[A])){this[A].authorization="Basic "+Buffer.from(t.auth).toString("base64")}t.session=t.tlsSession;t.path=t.socketPath;this[D]=t;if(t.port===443){t.origin=`https://${t.host}`;if(!(":authority"in this[A])){this[A][":authority"]=t.host}}else{t.origin=`https://${t.host}:${t.port}`;if(!(":authority"in this[A])){this[A][":authority"]=`${t.host}:${t.port}`}}this[E]=t;if(i){this.setTimeout(i)}if(r){this.once("response",r)}this[S]=false}get method(){return this[A][v]}set method(e){if(e){this[A][v]=e.toUpperCase()}}get path(){return this[A][b]}set path(e){if(e){this[A][b]=e}}_write(e,t,r){this.flushHeaders();const n=()=>this._request.write(e,t,r);if(this._request){n()}else{this[C].push(n)}}_final(e){if(this.destroyed){return}this.flushHeaders();const t=()=>this._request.end(e);if(this._request){t()}else{this[C].push(t)}}abort(){if(this.res&&this.res.complete){return}if(!this.aborted){process.nextTick(()=>this.emit("abort"))}this.aborted=true;this.destroy()}_destroy(e,t){if(this.res){this.res._dump()}if(this._request){this._request.destroy()}t(e)}async flushHeaders(){if(this[S]||this.destroyed){return}this[S]=true;const e=this.method===w;const t=t=>{this._request=t;if(this.destroyed){t.destroy();return}if(!e){c(t,this,["timeout","continue","close","error"])}t.once("response",(r,n,i)=>{const s=new a(this.socket,t.readableHighWaterMark);this.res=s;s.req=this;s.statusCode=r[g];s.headers=r;s.rawHeaders=i;s.once("end",()=>{if(this.aborted){s.aborted=true;s.emit("aborted")}else{s.complete=true;s.socket=null;s.connection=null}});if(e){s.upgrade=true;if(this.emit("connect",s,t,Buffer.alloc(0))){this.emit("close")}else{t.destroy()}}else{t.on("data",e=>{if(!s._dumped&&!s.push(e)){t.pause()}});t.once("end",()=>{s.push(null)});if(!this.emit("response",s)){s._dump()}}});t.once("headers",e=>this.emit("information",{statusCode:e[g]}));t.once("trailers",(e,t,r)=>{const{res:n}=this;n.trailers=e;n.rawTrailers=r});const{socket:r}=t.session;this.socket=r;this.connection=r;for(const e of this[C]){e()}this.emit("socket",this.socket)};if(this[_]){try{t(this[_].request(this[A],{endStream:false}))}catch(e){this.emit("error",e)}}else{this.reusedSocket=true;try{t(await this.agent.request(this[E],this[D],this[A]))}catch(e){this.emit("error",e)}}}getHeader(e){if(typeof e!=="string"){throw new h("name","string",e)}return this[A][e.toLowerCase()]}get headersSent(){return this[S]}removeHeader(e){if(typeof e!=="string"){throw new h("name","string",e)}if(this.headersSent){throw new d("remove")}delete this[A][e.toLowerCase()]}setHeader(e,t){if(this.headersSent){throw new d("set")}if(typeof e!=="string"||!x.test(e)&&!l(e)){throw new p("Header name",e)}if(typeof t==="undefined"){throw new m(t,e)}if(R.test(t)){throw new y("header content",e)}this[A][e.toLowerCase()]=t}setNoDelay(){}setSocketKeepAlive(){}setTimeout(e,t){const r=()=>this._request.setTimeout(e,t);if(this._request){r()}else{this[C].push(r)}return this}get maxHeadersCount(){if(!this.destroyed&&this._request){return this._request.session.localSettings.maxHeaderListSize}return undefined}set maxHeadersCount(e){}}e.exports=ClientRequest},2575:(e,t,r)=>{"use strict";const{Readable:n}=r(2413);class IncomingMessage extends n{constructor(e,t){super({highWaterMark:t,autoDestroy:false});this.statusCode=null;this.statusMessage="";this.httpVersion="2.0";this.httpVersionMajor=2;this.httpVersionMinor=0;this.headers={};this.trailers={};this.req=null;this.aborted=false;this.complete=false;this.upgrade=null;this.rawHeaders=[];this.rawTrailers=[];this.socket=e;this.connection=e;this._dumped=false}_destroy(e){this.req._request.destroy(e)}setTimeout(e,t){this.req.setTimeout(e,t);return this}_dump(){if(!this._dumped){this._dumped=true;this.removeAllListeners("data");this.resume()}}_read(){if(this.req){this.req._request.resume()}}}e.exports=IncomingMessage},4645:(e,t,r)=>{"use strict";const n=r(7565);const i=r(9898);const s=r(9632);const o=r(2575);const a=r(7167);const u=(e,t,r)=>{return new s(e,t,r)};const c=(e,t,r)=>{const n=new s(e,t,r);n.end();return n};e.exports={...n,ClientRequest:s,IncomingMessage:o,...i,request:u,get:c,auto:a}},1982:(e,t,r)=>{"use strict";const n=r(1631);e.exports=(e=>{let t=e.host;const r=e.headers&&e.headers.host;if(r){if(r.startsWith("[")){const e=r.indexOf("]");if(e===-1){t=r}else{t=r.slice(1,-1)}}else{t=r.split(":",1)[0]}}if(n.isIP(t)){return""}return t})},7087:e=>{"use strict";const t=(t,r,n)=>{e.exports[r]=class NodeError extends t{constructor(...e){super(typeof n==="string"?n:n(e));this.name=`${super.name} [${r}]`;this.code=r}}};t(TypeError,"ERR_INVALID_ARG_TYPE",e=>{const t=e[0].includes(".")?"property":"argument";let r=e[1];const n=Array.isArray(r);if(n){r=`${r.slice(0,-1).join(", ")} or ${r.slice(-1)}`}return`The "${e[0]}" ${t} must be ${n?"one of":"of"} type ${r}. Received ${typeof e[2]}`});t(TypeError,"ERR_INVALID_PROTOCOL",e=>{return`Protocol "${e[0]}" not supported. Expected "${e[1]}"`});t(Error,"ERR_HTTP_HEADERS_SENT",e=>{return`Cannot ${e[0]} headers after they are sent to the client`});t(TypeError,"ERR_INVALID_HTTP_TOKEN",e=>{return`${e[0]} must be a valid HTTP token [${e[1]}]`});t(TypeError,"ERR_HTTP_INVALID_HEADER_VALUE",e=>{return`Invalid value "${e[0]} for header "${e[1]}"`});t(TypeError,"ERR_INVALID_CHAR",e=>{return`Invalid character in ${e[0]} [${e[1]}]`})},1199:e=>{"use strict";e.exports=(e=>{switch(e){case":method":case":scheme":case":authority":case":path":return true;default:return false}})},1818:e=>{"use strict";e.exports=((e,t,r)=>{for(const n of r){e.on(n,(...e)=>t.emit(n,...e))}})},2686:e=>{"use strict";e.exports=(e=>{const t={protocol:e.protocol,hostname:typeof e.hostname==="string"&&e.hostname.startsWith("[")?e.hostname.slice(1,-1):e.hostname,host:e.host,hash:e.hash,search:e.search,pathname:e.pathname,href:e.href,path:`${e.pathname||""}${e.search||""}`};if(typeof e.port==="string"&&e.port.length!==0){t.port=Number(e.port)}if(e.username||e.password){t.auth=`${e.username||""}:${e.password||""}`}return t})},2527:e=>{(function(){var t;function MurmurHash3(e,r){var n=this instanceof MurmurHash3?this:t;n.reset(r);if(typeof e==="string"&&e.length>0){n.hash(e)}if(n!==this){return n}}MurmurHash3.prototype.hash=function(e){var t,r,n,i,s;s=e.length;this.len+=s;r=this.k1;n=0;switch(this.rem){case 0:r^=s>n?e.charCodeAt(n++)&65535:0;case 1:r^=s>n?(e.charCodeAt(n++)&65535)<<8:0;case 2:r^=s>n?(e.charCodeAt(n++)&65535)<<16:0;case 3:r^=s>n?(e.charCodeAt(n)&255)<<24:0;r^=s>n?(e.charCodeAt(n++)&65280)>>8:0}this.rem=s+this.rem&3;s-=this.rem;if(s>0){t=this.h1;while(1){r=r*11601+(r&65535)*3432906752&4294967295;r=r<<15|r>>>17;r=r*13715+(r&65535)*461832192&4294967295;t^=r;t=t<<13|t>>>19;t=t*5+3864292196&4294967295;if(n>=s){break}r=e.charCodeAt(n++)&65535^(e.charCodeAt(n++)&65535)<<8^(e.charCodeAt(n++)&65535)<<16;i=e.charCodeAt(n++);r^=(i&255)<<24^(i&65280)>>8}r=0;switch(this.rem){case 3:r^=(e.charCodeAt(n+2)&65535)<<16;case 2:r^=(e.charCodeAt(n+1)&65535)<<8;case 1:r^=e.charCodeAt(n)&65535}this.h1=t}this.k1=r;return this};MurmurHash3.prototype.result=function(){var e,t;e=this.k1;t=this.h1;if(e>0){e=e*11601+(e&65535)*3432906752&4294967295;e=e<<15|e>>>17;e=e*13715+(e&65535)*461832192&4294967295;t^=e}t^=this.len;t^=t>>>16;t=t*51819+(t&65535)*2246770688&4294967295;t^=t>>>13;t=t*44597+(t&65535)*3266445312&4294967295;t^=t>>>16;return t>>>0};MurmurHash3.prototype.reset=function(e){this.h1=typeof e==="number"?e:0;this.rem=this.k1=this.len=0;return this};t=new MurmurHash3;if(true){e.exports=MurmurHash3}else{}})()},2492:(e,t,r)=>{var n=r(2940);var i=Object.create(null);var s=r(1223);e.exports=n(inflight);function inflight(e,t){if(i[e]){i[e].push(t);return null}else{i[e]=[t];return makeres(e)}}function makeres(e){return s(function RES(){var t=i[e];var r=t.length;var n=slice(arguments);try{for(var s=0;s<r;s++){t[s].apply(null,n)}}finally{if(t.length>r){t.splice(0,r);process.nextTick(function(){RES.apply(null,n)})}else{delete i[e]}}})}function slice(e){var t=e.length;var r=[];for(var n=0;n<t;n++)r[n]=e[n];return r}},4124:(e,t,r)=>{try{var n=r(1669);if(typeof n.inherits!=="function")throw"";e.exports=n.inherits}catch(t){e.exports=r(8544)}},8544:e=>{if(typeof Object.create==="function"){e.exports=function inherits(e,t){e.super_=t;e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}})}}else{e.exports=function inherits(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype;e.prototype=new r;e.prototype.constructor=e}}},8885:(e,t)=>{t.parse=t.decode=decode;t.stringify=t.encode=encode;t.safe=safe;t.unsafe=unsafe;var r=typeof process!=="undefined"&&process.platform==="win32"?"\r\n":"\n";function encode(e,t){var n=[];var i="";if(typeof t==="string"){t={section:t,whitespace:false}}else{t=t||{};t.whitespace=t.whitespace===true}var s=t.whitespace?" = ":"=";Object.keys(e).forEach(function(t,o,a){var u=e[t];if(u&&Array.isArray(u)){u.forEach(function(e){i+=safe(t+"[]")+s+safe(e)+"\n"})}else if(u&&typeof u==="object")n.push(t);else i+=safe(t)+s+safe(u)+r});if(t.section&&i.length)i="["+safe(t.section)+"]"+r+i;n.forEach(function(n,s,o){var a=dotSplit(n).join("\\.");var u=(t.section?t.section+".":"")+a;var c=encode(e[n],{section:u,whitespace:t.whitespace});if(i.length&&c.length)i+=r;i+=c});return i}function dotSplit(e){return e.replace(/\1/g,"LITERAL\\1LITERAL").replace(/\\\./g,"").split(/\./).map(function(e){return e.replace(/\1/g,"\\.").replace(/\2LITERAL\\1LITERAL\2/g,"")})}function decode(e){var t={};var r=t;var n=null;var i=/^\[([^\]]*)\]$|^([^=]+)(=(.*))?$/i;var s=e.split(/[\r\n]+/g);s.forEach(function(e,s,o){if(!e||e.match(/^\s*[;#]/))return;var a=e.match(i);if(!a)return;if(a[1]!==undefined){n=unsafe(a[1]);if(n==="__proto__"){r={};return}r=t[n]=t[n]||{};return}var u=unsafe(a[2]);if(u==="__proto__")return;var c=a[3]?unsafe(a[4]):true;switch(c){case"true":case"false":case"null":c=JSON.parse(c)}if(u.length>2&&u.slice(-2)==="[]"){u=u.substring(0,u.length-2);if(u==="__proto__")return;if(!r[u])r[u]=[];else if(!Array.isArray(r[u]))r[u]=[r[u]]}if(Array.isArray(r[u]))r[u].push(c);else r[u]=c});Object.keys(t).filter(function(e,r,n){if(!t[e]||typeof t[e]!=="object"||Array.isArray(t[e]))return false;var i=dotSplit(e);var s=t;var o=i.pop();var a=o.replace(/\\\./g,".");i.forEach(function(e,t,r){if(e==="__proto__")return;if(!s[e]||typeof s[e]!=="object")s[e]={};s=s[e]});if(s===t&&a===o)return false;s[a]=t[e];return true}).forEach(function(e,r,n){delete t[e]});return t}function isQuoted(e){return e.charAt(0)==='"'&&e.slice(-1)==='"'||e.charAt(0)==="'"&&e.slice(-1)==="'"}function safe(e){return typeof e!=="string"||e.match(/[=\r\n]/)||e.match(/^\[/)||e.length>1&&isQuoted(e)||e!==e.trim()?JSON.stringify(e):e.replace(/;/g,"\\;").replace(/#/g,"\\#")}function unsafe(e,t){e=(e||"").trim();if(isQuoted(e)){if(e.charAt(0)==="'")e=e.substr(1,e.length-2);try{e=JSON.parse(e)}catch(e){}}else{var r=false;var n="";for(var i=0,s=e.length;i<s;i++){var o=e.charAt(i);if(r){if("\\;#".indexOf(o)!==-1)n+=o;else n+="\\"+o;r=false}else if(";#".indexOf(o)!==-1)break;else if(o==="\\")r=true;else n+=o}if(r)n+="\\";return n.trim()}return e}},284:e=>{"use strict";e.exports=(({stream:e=process.stdout}={})=>{return Boolean(e&&e.isTTY&&process.env.TERM!=="dumb"&&!("CI"in process.env))})},7126:(e,t,r)=>{var n=r(5747);var i;if(process.platform==="win32"||global.TESTING_WINDOWS){i=r(2001)}else{i=r(9728)}e.exports=isexe;isexe.sync=sync;function isexe(e,t,r){if(typeof t==="function"){r=t;t={}}if(!r){if(typeof Promise!=="function"){throw new TypeError("callback not provided")}return new Promise(function(r,n){isexe(e,t||{},function(e,t){if(e){n(e)}else{r(t)}})})}i(e,t||{},function(e,n){if(e){if(e.code==="EACCES"||t&&t.ignoreErrors){e=null;n=false}}r(e,n)})}function sync(e,t){try{return i.sync(e,t||{})}catch(e){if(t&&t.ignoreErrors||e.code==="EACCES"){return false}else{throw e}}}},9728:(e,t,r)=>{e.exports=isexe;isexe.sync=sync;var n=r(5747);function isexe(e,t,r){n.stat(e,function(e,n){r(e,e?false:checkStat(n,t))})}function sync(e,t){return checkStat(n.statSync(e),t)}function checkStat(e,t){return e.isFile()&&checkMode(e,t)}function checkMode(e,t){var r=e.mode;var n=e.uid;var i=e.gid;var s=t.uid!==undefined?t.uid:process.getuid&&process.getuid();var o=t.gid!==undefined?t.gid:process.getgid&&process.getgid();var a=parseInt("100",8);var u=parseInt("010",8);var c=parseInt("001",8);var l=a|u;var h=r&c||r&u&&i===o||r&a&&n===s||r&l&&s===0;return h}},2001:(e,t,r)=>{e.exports=isexe;isexe.sync=sync;var n=r(5747);function checkPathExt(e,t){var r=t.pathExt!==undefined?t.pathExt:process.env.PATHEXT;if(!r){return true}r=r.split(";");if(r.indexOf("")!==-1){return true}for(var n=0;n<r.length;n++){var i=r[n].toLowerCase();if(i&&e.substr(-i.length).toLowerCase()===i){return true}}return false}function checkStat(e,t,r){if(!e.isSymbolicLink()&&!e.isFile()){return false}return checkPathExt(t,r)}function isexe(e,t,r){n.stat(e,function(n,i){r(n,n?false:checkStat(i,e,t))})}function sync(e,t){return checkStat(n.statSync(e),e,t)}},1531:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.default=/((['"])(?:(?!\2|\\).|\\(?:\r\n|[\s\S]))*(\2)?|`(?:[^`\\$]|\\[\s\S]|\$(?!\{)|\$\{(?:[^{}]|\{[^}]*\}?)*\}?)*(`)?)|(\/\/.*)|(\/\*(?:[^*]|\*(?!\/))*(\*\/)?)|(\/(?!\*)(?:\[(?:(?![\]\\]).|\\.)*\]|(?![\/\]\\]).|\\.)+\/(?:(?!\s*(?:\b|[\u0080-\uFFFF$\\'"~({]|[+\-!](?!=)|\.?\d))|[gmiyus]{1,6}\b(?![\u0080-\uFFFF$\\]|\s*(?:[+\-*%&|^<>!=?({]|\/(?![\/*])))))|(0[xX][\da-fA-F]+|0[oO][0-7]+|0[bB][01]+|(?:\d*\.\d+|\d+\.?)(?:[eE][+-]?\d+)?)|((?!\d)(?:(?!\s)[$\w\u0080-\uFFFF]|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+)|(--|\+\+|&&|\|\||=>|\.{3}|(?:[+\-\/%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2})=?|[?~.,:;[\](){}])|(\s+)|(^$|[\s\S])/g;t.matchToToken=function(e){var t={type:"invalid",value:e[0],closed:undefined};if(e[1])t.type="string",t.closed=!!(e[3]||e[4]);else if(e[5])t.type="comment";else if(e[6])t.type="comment",t.closed=!!e[7];else if(e[8])t.type="regex";else if(e[9])t.type="number";else if(e[10])t.type="name";else if(e[11])t.type="punctuator";else if(e[12])t.type="whitespace";return t}},2820:(e,t)=>{t.stringify=function stringify(e){if("undefined"==typeof e)return e;if(e&&Buffer.isBuffer(e))return JSON.stringify(":base64:"+e.toString("base64"));if(e&&e.toJSON)e=e.toJSON();if(e&&"object"===typeof e){var t="";var r=Array.isArray(e);t=r?"[":"{";var n=true;for(var i in e){var s="function"==typeof e[i]||!r&&"undefined"===typeof e[i];if(Object.hasOwnProperty.call(e,i)&&!s){if(!n)t+=",";n=false;if(r){if(e[i]==undefined)t+="null";else t+=stringify(e[i])}else if(e[i]!==void 0){t+=stringify(i)+":"+stringify(e[i])}}}t+=r?"]":"}";return t}else if("string"===typeof e){return JSON.stringify(/^:/.test(e)?":"+e:e)}else if("undefined"===typeof e){return"null"}else return JSON.stringify(e)};t.parse=function(e){return JSON.parse(e,function(e,t){if("string"===typeof t){if(/^:base64:/.test(t))return Buffer.from(t.substring(8),"base64");else return/^:/.test(t)?t.substring(1):t}return t})}},6904:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(7583);var i=_interopRequireDefault(n);var s=r(749);var o=_interopRequireDefault(s);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}t.default={parse:i.default,stringify:o.default};e.exports=t["default"]},7583:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol==="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.default=parse;var i=r(7393);var s=_interopRequireWildcard(i);function _interopRequireWildcard(e){if(e&&e.__esModule){return e}else{var t={};if(e!=null){for(var r in e){if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]}}t.default=e;return t}}var o=void 0;var a=void 0;var u=void 0;var c=void 0;var l=void 0;var h=void 0;var f=void 0;var d=void 0;var p=void 0;function parse(e,t){o=String(e);a="start";u=[];c=0;l=1;h=0;f=undefined;d=undefined;p=undefined;do{f=lex();A[a]()}while(f.type!=="eof");if(typeof t==="function"){return internalize({"":p},"",t)}return p}function internalize(e,t,r){var i=e[t];if(i!=null&&(typeof i==="undefined"?"undefined":n(i))==="object"){for(var s in i){var o=internalize(i,s,r);if(o===undefined){delete i[s]}else{i[s]=o}}}return r.call(e,t,i)}var m=void 0;var y=void 0;var g=void 0;var v=void 0;var b=void 0;function lex(){m="default";y="";g=false;v=1;for(;;){b=peek();var e=w[m]();if(e){return e}}}function peek(){if(o[c]){return String.fromCodePoint(o.codePointAt(c))}}function read(){var e=peek();if(e==="\n"){l++;h=0}else if(e){h+=e.length}else{h++}if(e){c+=e.length}return e}var w={default:function _default(){switch(b){case"\t":case"\v":case"\f":case" ":case" ":case"\ufeff":case"\n":case"\r":case"\u2028":case"\u2029":read();return;case"/":read();m="comment";return;case undefined:read();return newToken("eof")}if(s.isSpaceSeparator(b)){read();return}return w[a]()},comment:function comment(){switch(b){case"*":read();m="multiLineComment";return;case"/":read();m="singleLineComment";return}throw invalidChar(read())},multiLineComment:function multiLineComment(){switch(b){case"*":read();m="multiLineCommentAsterisk";return;case undefined:throw invalidChar(read())}read()},multiLineCommentAsterisk:function multiLineCommentAsterisk(){switch(b){case"*":read();return;case"/":read();m="default";return;case undefined:throw invalidChar(read())}read();m="multiLineComment"},singleLineComment:function singleLineComment(){switch(b){case"\n":case"\r":case"\u2028":case"\u2029":read();m="default";return;case undefined:read();return newToken("eof")}read()},value:function value(){switch(b){case"{":case"[":return newToken("punctuator",read());case"n":read();literal("ull");return newToken("null",null);case"t":read();literal("rue");return newToken("boolean",true);case"f":read();literal("alse");return newToken("boolean",false);case"-":case"+":if(read()==="-"){v=-1}m="sign";return;case".":y=read();m="decimalPointLeading";return;case"0":y=read();m="zero";return;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":y=read();m="decimalInteger";return;case"I":read();literal("nfinity");return newToken("numeric",Infinity);case"N":read();literal("aN");return newToken("numeric",NaN);case'"':case"'":g=read()==='"';y="";m="string";return}throw invalidChar(read())},identifierNameStartEscape:function identifierNameStartEscape(){if(b!=="u"){throw invalidChar(read())}read();var e=unicodeEscape();switch(e){case"$":case"_":break;default:if(!s.isIdStartChar(e)){throw invalidIdentifier()}break}y+=e;m="identifierName"},identifierName:function identifierName(){switch(b){case"$":case"_":case"‌":case"‍":y+=read();return;case"\\":read();m="identifierNameEscape";return}if(s.isIdContinueChar(b)){y+=read();return}return newToken("identifier",y)},identifierNameEscape:function identifierNameEscape(){if(b!=="u"){throw invalidChar(read())}read();var e=unicodeEscape();switch(e){case"$":case"_":case"‌":case"‍":break;default:if(!s.isIdContinueChar(e)){throw invalidIdentifier()}break}y+=e;m="identifierName"},sign:function sign(){switch(b){case".":y=read();m="decimalPointLeading";return;case"0":y=read();m="zero";return;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":y=read();m="decimalInteger";return;case"I":read();literal("nfinity");return newToken("numeric",v*Infinity);case"N":read();literal("aN");return newToken("numeric",NaN)}throw invalidChar(read())},zero:function zero(){switch(b){case".":y+=read();m="decimalPoint";return;case"e":case"E":y+=read();m="decimalExponent";return;case"x":case"X":y+=read();m="hexadecimal";return}return newToken("numeric",v*0)},decimalInteger:function decimalInteger(){switch(b){case".":y+=read();m="decimalPoint";return;case"e":case"E":y+=read();m="decimalExponent";return}if(s.isDigit(b)){y+=read();return}return newToken("numeric",v*Number(y))},decimalPointLeading:function decimalPointLeading(){if(s.isDigit(b)){y+=read();m="decimalFraction";return}throw invalidChar(read())},decimalPoint:function decimalPoint(){switch(b){case"e":case"E":y+=read();m="decimalExponent";return}if(s.isDigit(b)){y+=read();m="decimalFraction";return}return newToken("numeric",v*Number(y))},decimalFraction:function decimalFraction(){switch(b){case"e":case"E":y+=read();m="decimalExponent";return}if(s.isDigit(b)){y+=read();return}return newToken("numeric",v*Number(y))},decimalExponent:function decimalExponent(){switch(b){case"+":case"-":y+=read();m="decimalExponentSign";return}if(s.isDigit(b)){y+=read();m="decimalExponentInteger";return}throw invalidChar(read())},decimalExponentSign:function decimalExponentSign(){if(s.isDigit(b)){y+=read();m="decimalExponentInteger";return}throw invalidChar(read())},decimalExponentInteger:function decimalExponentInteger(){if(s.isDigit(b)){y+=read();return}return newToken("numeric",v*Number(y))},hexadecimal:function hexadecimal(){if(s.isHexDigit(b)){y+=read();m="hexadecimalInteger";return}throw invalidChar(read())},hexadecimalInteger:function hexadecimalInteger(){if(s.isHexDigit(b)){y+=read();return}return newToken("numeric",v*Number(y))},string:function string(){switch(b){case"\\":read();y+=escape();return;case'"':if(g){read();return newToken("string",y)}y+=read();return;case"'":if(!g){read();return newToken("string",y)}y+=read();return;case"\n":case"\r":throw invalidChar(read());case"\u2028":case"\u2029":separatorChar(b);break;case undefined:throw invalidChar(read())}y+=read()},start:function start(){switch(b){case"{":case"[":return newToken("punctuator",read())}m="value"},beforePropertyName:function beforePropertyName(){switch(b){case"$":case"_":y=read();m="identifierName";return;case"\\":read();m="identifierNameStartEscape";return;case"}":return newToken("punctuator",read());case'"':case"'":g=read()==='"';m="string";return}if(s.isIdStartChar(b)){y+=read();m="identifierName";return}throw invalidChar(read())},afterPropertyName:function afterPropertyName(){if(b===":"){return newToken("punctuator",read())}throw invalidChar(read())},beforePropertyValue:function beforePropertyValue(){m="value"},afterPropertyValue:function afterPropertyValue(){switch(b){case",":case"}":return newToken("punctuator",read())}throw invalidChar(read())},beforeArrayValue:function beforeArrayValue(){if(b==="]"){return newToken("punctuator",read())}m="value"},afterArrayValue:function afterArrayValue(){switch(b){case",":case"]":return newToken("punctuator",read())}throw invalidChar(read())},end:function end(){throw invalidChar(read())}};function newToken(e,t){return{type:e,value:t,line:l,column:h}}function literal(e){var t=true;var r=false;var n=undefined;try{for(var i=e[Symbol.iterator](),s;!(t=(s=i.next()).done);t=true){var o=s.value;var a=peek();if(a!==o){throw invalidChar(read())}read()}}catch(e){r=true;n=e}finally{try{if(!t&&i.return){i.return()}}finally{if(r){throw n}}}}function escape(){var e=peek();switch(e){case"b":read();return"\b";case"f":read();return"\f";case"n":read();return"\n";case"r":read();return"\r";case"t":read();return"\t";case"v":read();return"\v";case"0":read();if(s.isDigit(peek())){throw invalidChar(read())}return"\0";case"x":read();return hexEscape();case"u":read();return unicodeEscape();case"\n":case"\u2028":case"\u2029":read();return"";case"\r":read();if(peek()==="\n"){read()}return"";case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":throw invalidChar(read());case undefined:throw invalidChar(read())}return read()}function hexEscape(){var e="";var t=peek();if(!s.isHexDigit(t)){throw invalidChar(read())}e+=read();t=peek();if(!s.isHexDigit(t)){throw invalidChar(read())}e+=read();return String.fromCodePoint(parseInt(e,16))}function unicodeEscape(){var e="";var t=4;while(t-- >0){var r=peek();if(!s.isHexDigit(r)){throw invalidChar(read())}e+=read()}return String.fromCodePoint(parseInt(e,16))}var A={start:function start(){if(f.type==="eof"){throw invalidEOF()}push()},beforePropertyName:function beforePropertyName(){switch(f.type){case"identifier":case"string":d=f.value;a="afterPropertyName";return;case"punctuator":pop();return;case"eof":throw invalidEOF()}},afterPropertyName:function afterPropertyName(){if(f.type==="eof"){throw invalidEOF()}a="beforePropertyValue"},beforePropertyValue:function beforePropertyValue(){if(f.type==="eof"){throw invalidEOF()}push()},beforeArrayValue:function beforeArrayValue(){if(f.type==="eof"){throw invalidEOF()}if(f.type==="punctuator"&&f.value==="]"){pop();return}push()},afterPropertyValue:function afterPropertyValue(){if(f.type==="eof"){throw invalidEOF()}switch(f.value){case",":a="beforePropertyName";return;case"}":pop()}},afterArrayValue:function afterArrayValue(){if(f.type==="eof"){throw invalidEOF()}switch(f.value){case",":a="beforeArrayValue";return;case"]":pop()}},end:function end(){}};function push(){var e=void 0;switch(f.type){case"punctuator":switch(f.value){case"{":e={};break;case"[":e=[];break}break;case"null":case"boolean":case"numeric":case"string":e=f.value;break}if(p===undefined){p=e}else{var t=u[u.length-1];if(Array.isArray(t)){t.push(e)}else{t[d]=e}}if(e!==null&&(typeof e==="undefined"?"undefined":n(e))==="object"){u.push(e);if(Array.isArray(e)){a="beforeArrayValue"}else{a="beforePropertyName"}}else{var r=u[u.length-1];if(r==null){a="end"}else if(Array.isArray(r)){a="afterArrayValue"}else{a="afterPropertyValue"}}}function pop(){u.pop();var e=u[u.length-1];if(e==null){a="end"}else if(Array.isArray(e)){a="afterArrayValue"}else{a="afterPropertyValue"}}function invalidChar(e){if(e===undefined){return syntaxError("JSON5: invalid end of input at "+l+":"+h)}return syntaxError("JSON5: invalid character '"+formatChar(e)+"' at "+l+":"+h)}function invalidEOF(){return syntaxError("JSON5: invalid end of input at "+l+":"+h)}function invalidIdentifier(){h-=5;return syntaxError("JSON5: invalid identifier character at "+l+":"+h)}function separatorChar(e){console.warn("JSON5: '"+e+"' is not valid ECMAScript; consider escaping")}function formatChar(e){var t={"'":"\\'",'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\v":"\\v","\0":"\\0","\u2028":"\\u2028","\u2029":"\\u2029"};if(t[e]){return t[e]}if(e<" "){var r=e.charCodeAt(0).toString(16);return"\\x"+("00"+r).substring(r.length)}return e}function syntaxError(e){var t=new SyntaxError(e);t.lineNumber=l;t.columnNumber=h;return t}e.exports=t["default"]},749:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol==="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.default=stringify;var i=r(7393);var s=_interopRequireWildcard(i);function _interopRequireWildcard(e){if(e&&e.__esModule){return e}else{var t={};if(e!=null){for(var r in e){if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]}}t.default=e;return t}}function stringify(e,t,r){var i=[];var o="";var a=void 0;var u=void 0;var c="";var l=void 0;if(t!=null&&(typeof t==="undefined"?"undefined":n(t))==="object"&&!Array.isArray(t)){r=t.space;l=t.quote;t=t.replacer}if(typeof t==="function"){u=t}else if(Array.isArray(t)){a=[];var h=true;var f=false;var d=undefined;try{for(var p=t[Symbol.iterator](),m;!(h=(m=p.next()).done);h=true){var y=m.value;var g=void 0;if(typeof y==="string"){g=y}else if(typeof y==="number"||y instanceof String||y instanceof Number){g=String(y)}if(g!==undefined&&a.indexOf(g)<0){a.push(g)}}}catch(e){f=true;d=e}finally{try{if(!h&&p.return){p.return()}}finally{if(f){throw d}}}}if(r instanceof Number){r=Number(r)}else if(r instanceof String){r=String(r)}if(typeof r==="number"){if(r>0){r=Math.min(10,Math.floor(r));c=" ".substr(0,r)}}else if(typeof r==="string"){c=r.substr(0,10)}return serializeProperty("",{"":e});function serializeProperty(e,t){var r=t[e];if(r!=null){if(typeof r.toJSON5==="function"){r=r.toJSON5(e)}else if(typeof r.toJSON==="function"){r=r.toJSON(e)}}if(u){r=u.call(t,e,r)}if(r instanceof Number){r=Number(r)}else if(r instanceof String){r=String(r)}else if(r instanceof Boolean){r=r.valueOf()}switch(r){case null:return"null";case true:return"true";case false:return"false"}if(typeof r==="string"){return quoteString(r,false)}if(typeof r==="number"){return String(r)}if((typeof r==="undefined"?"undefined":n(r))==="object"){return Array.isArray(r)?serializeArray(r):serializeObject(r)}return undefined}function quoteString(e){var t={"'":.1,'"':.2};var r={"'":"\\'",'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\v":"\\v","\0":"\\0","\u2028":"\\u2028","\u2029":"\\u2029"};var n="";var i=true;var s=false;var o=undefined;try{for(var a=e[Symbol.iterator](),u;!(i=(u=a.next()).done);i=true){var c=u.value;switch(c){case"'":case'"':t[c]++;n+=c;continue}if(r[c]){n+=r[c];continue}if(c<" "){var h=c.charCodeAt(0).toString(16);n+="\\x"+("00"+h).substring(h.length);continue}n+=c}}catch(e){s=true;o=e}finally{try{if(!i&&a.return){a.return()}}finally{if(s){throw o}}}var f=l||Object.keys(t).reduce(function(e,r){return t[e]<t[r]?e:r});n=n.replace(new RegExp(f,"g"),r[f]);return f+n+f}function serializeObject(e){if(i.indexOf(e)>=0){throw TypeError("Converting circular structure to JSON5")}i.push(e);var t=o;o=o+c;var r=a||Object.keys(e);var n=[];var s=true;var u=false;var l=undefined;try{for(var h=r[Symbol.iterator](),f;!(s=(f=h.next()).done);s=true){var d=f.value;var p=serializeProperty(d,e);if(p!==undefined){var m=serializeKey(d)+":";if(c!==""){m+=" "}m+=p;n.push(m)}}}catch(e){u=true;l=e}finally{try{if(!s&&h.return){h.return()}}finally{if(u){throw l}}}var y=void 0;if(n.length===0){y="{}"}else{var g=void 0;if(c===""){g=n.join(",");y="{"+g+"}"}else{var v=",\n"+o;g=n.join(v);y="{\n"+o+g+",\n"+t+"}"}}i.pop();o=t;return y}function serializeKey(e){if(e.length===0){return quoteString(e,true)}var t=String.fromCodePoint(e.codePointAt(0));if(!s.isIdStartChar(t)){return quoteString(e,true)}for(var r=t.length;r<e.length;r++){if(!s.isIdContinueChar(String.fromCodePoint(e.codePointAt(r)))){return quoteString(e,true)}}return e}function serializeArray(e){if(i.indexOf(e)>=0){throw TypeError("Converting circular structure to JSON5")}i.push(e);var t=o;o=o+c;var r=[];for(var n=0;n<e.length;n++){var s=serializeProperty(String(n),e);r.push(s!==undefined?s:"null")}var a=void 0;if(r.length===0){a="[]"}else{if(c===""){var u=r.join(",");a="["+u+"]"}else{var l=",\n"+o;var h=r.join(l);a="[\n"+o+h+",\n"+t+"]"}}i.pop();o=t;return a}}e.exports=t["default"]},1927:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});var r=t.Space_Separator=/[\u1680\u2000-\u200A\u202F\u205F\u3000]/;var n=t.ID_Start=/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]/;var i=t.ID_Continue=/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE3E\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC59\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F\uDFE0]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6\uDD00-\uDD4A\uDD50-\uDD59]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/},7393:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isSpaceSeparator=isSpaceSeparator;t.isIdStartChar=isIdStartChar;t.isIdContinueChar=isIdContinueChar;t.isDigit=isDigit;t.isHexDigit=isHexDigit;var n=r(1927);var i=_interopRequireWildcard(n);function _interopRequireWildcard(e){if(e&&e.__esModule){return e}else{var t={};if(e!=null){for(var r in e){if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]}}t.default=e;return t}}function isSpaceSeparator(e){return i.Space_Separator.test(e)}function isIdStartChar(e){return e>="a"&&e<="z"||e>="A"&&e<="Z"||e==="$"||e==="_"||i.ID_Start.test(e)}function isIdContinueChar(e){return e>="a"&&e<="z"||e>="A"&&e<="Z"||e>="0"&&e<="9"||e==="$"||e==="_"||e==="‌"||e==="‍"||i.ID_Continue.test(e)}function isDigit(e){return/[0-9]/.test(e)}function isHexDigit(e){return/[0-9A-Fa-f]/.test(e)}},6160:(e,t,r)=>{let n;try{n=r(7758)}catch(e){n=r(5747)}const i=r(9046);const{stringify:s,stripBom:o}=r(5902);async function _readFile(e,t={}){if(typeof t==="string"){t={encoding:t}}const r=t.fs||n;const s="throws"in t?t.throws:true;let a=await i.fromCallback(r.readFile)(e,t);a=o(a);let u;try{u=JSON.parse(a,t?t.reviver:null)}catch(t){if(s){t.message=`${e}: ${t.message}`;throw t}else{return null}}return u}const a=i.fromPromise(_readFile);function readFileSync(e,t={}){if(typeof t==="string"){t={encoding:t}}const r=t.fs||n;const i="throws"in t?t.throws:true;try{let n=r.readFileSync(e,t);n=o(n);return JSON.parse(n,t.reviver)}catch(t){if(i){t.message=`${e}: ${t.message}`;throw t}else{return null}}}async function _writeFile(e,t,r={}){const o=r.fs||n;const a=s(t,r);await i.fromCallback(o.writeFile)(e,a,r)}const u=i.fromPromise(_writeFile);function writeFileSync(e,t,r={}){const i=r.fs||n;const o=s(t,r);return i.writeFileSync(e,o,r)}const c={readFile:a,readFileSync:readFileSync,writeFile:u,writeFileSync:writeFileSync};e.exports=c},5902:e=>{function stringify(e,t={}){const r=t.EOL||"\n";const n=JSON.stringify(e,t?t.replacer:null,t.spaces);return n.replace(/\n/g,r)+r}function stripBom(e){if(Buffer.isBuffer(e))e=e.toString("utf8");return e.replace(/^\uFEFF/,"")}e.exports={stringify:stringify,stripBom:stripBom}},9971:(e,t,r)=>{"use strict";const n=r(8614);const i=r(2820);const s=e=>{const t={redis:"@keyv/redis",mongodb:"@keyv/mongo",mongo:"@keyv/mongo",sqlite:"@keyv/sqlite",postgresql:"@keyv/postgres",postgres:"@keyv/postgres",mysql:"@keyv/mysql"};if(e.adapter||e.uri){const r=e.adapter||/^[^:]*/.exec(e.uri)[0];return new(require(t[r]))(e)}return new Map};class Keyv extends n{constructor(e,t){super();this.opts=Object.assign({namespace:"keyv",serialize:i.stringify,deserialize:i.parse},typeof e==="string"?{uri:e}:e,t);if(!this.opts.store){const e=Object.assign({},this.opts);this.opts.store=s(e)}if(typeof this.opts.store.on==="function"){this.opts.store.on("error",e=>this.emit("error",e))}this.opts.store.namespace=this.opts.namespace}_getKeyPrefix(e){return`${this.opts.namespace}:${e}`}get(e,t){const r=this._getKeyPrefix(e);const{store:n}=this.opts;return Promise.resolve().then(()=>n.get(r)).then(e=>{return typeof e==="string"?this.opts.deserialize(e):e}).then(r=>{if(r===undefined){return undefined}if(typeof r.expires==="number"&&Date.now()>r.expires){this.delete(e);return undefined}return t&&t.raw?r:r.value})}set(e,t,r){const n=this._getKeyPrefix(e);if(typeof r==="undefined"){r=this.opts.ttl}if(r===0){r=undefined}const{store:i}=this.opts;return Promise.resolve().then(()=>{const e=typeof r==="number"?Date.now()+r:null;t={value:t,expires:e};return this.opts.serialize(t)}).then(e=>i.set(n,e,r)).then(()=>true)}delete(e){const t=this._getKeyPrefix(e);const{store:r}=this.opts;return Promise.resolve().then(()=>r.delete(t))}clear(){const{store:e}=this.opts;return Promise.resolve().then(()=>e.clear())}}e.exports=Keyv},5215:e=>{"use strict";const{FORCE_COLOR:t,NODE_DISABLE_COLORS:r,TERM:n}=process.env;const i={enabled:!r&&n!=="dumb"&&t!=="0",reset:init(0,0),bold:init(1,22),dim:init(2,22),italic:init(3,23),underline:init(4,24),inverse:init(7,27),hidden:init(8,28),strikethrough:init(9,29),black:init(30,39),red:init(31,39),green:init(32,39),yellow:init(33,39),blue:init(34,39),magenta:init(35,39),cyan:init(36,39),white:init(37,39),gray:init(90,39),grey:init(90,39),bgBlack:init(40,49),bgRed:init(41,49),bgGreen:init(42,49),bgYellow:init(43,49),bgBlue:init(44,49),bgMagenta:init(45,49),bgCyan:init(46,49),bgWhite:init(47,49)};function run(e,t){let r=0,n,i="",s="";for(;r<e.length;r++){n=e[r];i+=n.open;s+=n.close;if(t.includes(n.close)){t=t.replace(n.rgx,n.close+n.open)}}return i+t+s}function chain(e,t){let r={has:e,keys:t};r.reset=i.reset.bind(r);r.bold=i.bold.bind(r);r.dim=i.dim.bind(r);r.italic=i.italic.bind(r);r.underline=i.underline.bind(r);r.inverse=i.inverse.bind(r);r.hidden=i.hidden.bind(r);r.strikethrough=i.strikethrough.bind(r);r.black=i.black.bind(r);r.red=i.red.bind(r);r.green=i.green.bind(r);r.yellow=i.yellow.bind(r);r.blue=i.blue.bind(r);r.magenta=i.magenta.bind(r);r.cyan=i.cyan.bind(r);r.white=i.white.bind(r);r.gray=i.gray.bind(r);r.grey=i.grey.bind(r);r.bgBlack=i.bgBlack.bind(r);r.bgRed=i.bgRed.bind(r);r.bgGreen=i.bgGreen.bind(r);r.bgYellow=i.bgYellow.bind(r);r.bgBlue=i.bgBlue.bind(r);r.bgMagenta=i.bgMagenta.bind(r);r.bgCyan=i.bgCyan.bind(r);r.bgWhite=i.bgWhite.bind(r);return r}function init(e,t){let r={open:`[${e}m`,close:`[${t}m`,rgx:new RegExp(`\\x1b\\[${t}m`,"g")};return function(t){if(this!==void 0&&this.has!==void 0){this.has.includes(e)||(this.has.push(e),this.keys.push(r));return t===void 0?this:i.enabled?run(this.keys,t+""):t+""}return t===void 0?chain([e],[r]):i.enabled?run([r],t+""):t+""}}e.exports=i},5209:(e,t,r)=>{var n=r(1789),i=r(712),s=r(5395),o=r(5232),a=r(7320);function Hash(e){var t=-1,r=e==null?0:e.length;this.clear();while(++t<r){var n=e[t];this.set(n[0],n[1])}}Hash.prototype.clear=n;Hash.prototype["delete"]=i;Hash.prototype.get=s;Hash.prototype.has=o;Hash.prototype.set=a;e.exports=Hash},6608:(e,t,r)=>{var n=r(9792),i=r(7716),s=r(5789),o=r(9386),a=r(7399);function ListCache(e){var t=-1,r=e==null?0:e.length;this.clear();while(++t<r){var n=e[t];this.set(n[0],n[1])}}ListCache.prototype.clear=n;ListCache.prototype["delete"]=i;ListCache.prototype.get=s;ListCache.prototype.has=o;ListCache.prototype.set=a;e.exports=ListCache},881:(e,t,r)=>{var n=r(4479),i=r(9882);var s=n(i,"Map");e.exports=s},938:(e,t,r)=>{var n=r(1610),i=r(6657),s=r(1372),o=r(609),a=r(5582);function MapCache(e){var t=-1,r=e==null?0:e.length;this.clear();while(++t<r){var n=e[t];this.set(n[0],n[1])}}MapCache.prototype.clear=n;MapCache.prototype["delete"]=i;MapCache.prototype.get=s;MapCache.prototype.has=o;MapCache.prototype.set=a;e.exports=MapCache},5323:(e,t,r)=>{var n=r(6608),i=r(2843),s=r(4717),o=r(21),a=r(3910),u=r(9955);function Stack(e){var t=this.__data__=new n(e);this.size=t.size}Stack.prototype.clear=i;Stack.prototype["delete"]=s;Stack.prototype.get=o;Stack.prototype.has=a;Stack.prototype.set=u;e.exports=Stack},9213:(e,t,r)=>{var n=r(9882);var i=n.Symbol;e.exports=i},3261:(e,t,r)=>{var n=r(9882);var i=n.Uint8Array;e.exports=i},9647:e=>{function apply(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}e.exports=apply},2237:(e,t,r)=>{var n=r(7765),i=r(8495),s=r(4869),o=r(4190),a=r(2936),u=r(2496);var c=Object.prototype;var l=c.hasOwnProperty;function arrayLikeKeys(e,t){var r=s(e),c=!r&&i(e),h=!r&&!c&&o(e),f=!r&&!c&&!h&&u(e),d=r||c||h||f,p=d?n(e.length,String):[],m=p.length;for(var y in e){if((t||l.call(e,y))&&!(d&&(y=="length"||h&&(y=="offset"||y=="parent")||f&&(y=="buffer"||y=="byteLength"||y=="byteOffset")||a(y,m)))){p.push(y)}}return p}e.exports=arrayLikeKeys},4356:e=>{function arrayMap(e,t){var r=-1,n=e==null?0:e.length,i=Array(n);while(++r<n){i[r]=t(e[r],r,e)}return i}e.exports=arrayMap},1950:(e,t,r)=>{var n=r(3868),i=r(1901);function assignMergeValue(e,t,r){if(r!==undefined&&!i(e[t],r)||r===undefined&&!(t in e)){n(e,t,r)}}e.exports=assignMergeValue},9725:(e,t,r)=>{var n=r(3868),i=r(1901);var s=Object.prototype;var o=s.hasOwnProperty;function assignValue(e,t,r){var s=e[t];if(!(o.call(e,t)&&i(s,r))||r===undefined&&!(t in e)){n(e,t,r)}}e.exports=assignValue},6752:(e,t,r)=>{var n=r(1901);function assocIndexOf(e,t){var r=e.length;while(r--){if(n(e[r][0],t)){return r}}return-1}e.exports=assocIndexOf},3868:(e,t,r)=>{var n=r(416);function baseAssignValue(e,t,r){if(t=="__proto__"&&n){n(e,t,{configurable:true,enumerable:true,value:r,writable:true})}else{e[t]=r}}e.exports=baseAssignValue},6706:(e,t,r)=>{var n=r(3334);var i=Object.create;var s=function(){function object(){}return function(e){if(!n(e)){return{}}if(i){return i(e)}object.prototype=e;var t=new object;object.prototype=undefined;return t}}();e.exports=s},6588:(e,t,r)=>{var n=r(5709);var i=n();e.exports=i},5758:(e,t,r)=>{var n=r(2688),i=r(9071);function baseGet(e,t){t=n(t,e);var r=0,s=t.length;while(e!=null&&r<s){e=e[i(t[r++])]}return r&&r==s?e:undefined}e.exports=baseGet},7497:(e,t,r)=>{var n=r(9213),i=r(923),s=r(4200);var o="[object Null]",a="[object Undefined]";var u=n?n.toStringTag:undefined;function baseGetTag(e){if(e==null){return e===undefined?a:o}return u&&u in Object(e)?i(e):s(e)}e.exports=baseGetTag},2177:(e,t,r)=>{var n=r(7497),i=r(5926);var s="[object Arguments]";function baseIsArguments(e){return i(e)&&n(e)==s}e.exports=baseIsArguments},411:(e,t,r)=>{var n=r(7799),i=r(9058),s=r(3334),o=r(6928);var a=/[\\^$.*+?()[\]{}|]/g;var u=/^\[object .+?Constructor\]$/;var c=Function.prototype,l=Object.prototype;var h=c.toString;var f=l.hasOwnProperty;var d=RegExp("^"+h.call(f).replace(a,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function baseIsNative(e){if(!s(e)||i(e)){return false}var t=n(e)?d:u;return t.test(o(e))}e.exports=baseIsNative},1528:(e,t,r)=>{var n=r(7497),i=r(4530),s=r(5926);var o="[object Arguments]",a="[object Array]",u="[object Boolean]",c="[object Date]",l="[object Error]",h="[object Function]",f="[object Map]",d="[object Number]",p="[object Object]",m="[object RegExp]",y="[object Set]",g="[object String]",v="[object WeakMap]";var b="[object ArrayBuffer]",w="[object DataView]",A="[object Float32Array]",E="[object Float64Array]",_="[object Int8Array]",D="[object Int16Array]",S="[object Int32Array]",C="[object Uint8Array]",x="[object Uint8ClampedArray]",R="[object Uint16Array]",O="[object Uint32Array]";var F={};F[A]=F[E]=F[_]=F[D]=F[S]=F[C]=F[x]=F[R]=F[O]=true;F[o]=F[a]=F[b]=F[u]=F[w]=F[c]=F[l]=F[h]=F[f]=F[d]=F[p]=F[m]=F[y]=F[g]=F[v]=false;function baseIsTypedArray(e){return s(e)&&i(e.length)&&!!F[n(e)]}e.exports=baseIsTypedArray},297:(e,t,r)=>{var n=r(3334),i=r(10),s=r(5383);var o=Object.prototype;var a=o.hasOwnProperty;function baseKeysIn(e){if(!n(e)){return s(e)}var t=i(e),r=[];for(var o in e){if(!(o=="constructor"&&(t||!a.call(e,o)))){r.push(o)}}return r}e.exports=baseKeysIn},5451:(e,t,r)=>{var n=r(5323),i=r(1950),s=r(6588),o=r(5254),a=r(3334),u=r(9109),c=r(9020);function baseMerge(e,t,r,l,h){if(e===t){return}s(t,function(s,u){h||(h=new n);if(a(s)){o(e,t,u,r,baseMerge,l,h)}else{var f=l?l(c(e,u),s,u+"",e,t,h):undefined;if(f===undefined){f=s}i(e,u,f)}},u)}e.exports=baseMerge},5254:(e,t,r)=>{var n=r(1950),i=r(2974),s=r(7764),o=r(5157),a=r(1532),u=r(8495),c=r(4869),l=r(2015),h=r(4190),f=r(7799),d=r(3334),p=r(6169),m=r(2496),y=r(9020),g=r(9321);function baseMergeDeep(e,t,r,v,b,w,A){var E=y(e,r),_=y(t,r),D=A.get(_);if(D){n(e,r,D);return}var S=w?w(E,_,r+"",e,t,A):undefined;var C=S===undefined;if(C){var x=c(_),R=!x&&h(_),O=!x&&!R&&m(_);S=_;if(x||R||O){if(c(E)){S=E}else if(l(E)){S=o(E)}else if(R){C=false;S=i(_,true)}else if(O){C=false;S=s(_,true)}else{S=[]}}else if(p(_)||u(_)){S=E;if(u(E)){S=g(E)}else if(!d(E)||f(E)){S=a(_)}}else{C=false}}if(C){A.set(_,S);b(S,_,v,w,A);A["delete"](_)}n(e,r,S)}e.exports=baseMergeDeep},5979:(e,t,r)=>{var n=r(7822),i=r(2417),s=r(8416);function baseRest(e,t){return s(i(e,t,n),e+"")}e.exports=baseRest},8580:(e,t,r)=>{var n=r(9725),i=r(2688),s=r(2936),o=r(3334),a=r(9071);function baseSet(e,t,r,u){if(!o(e)){return e}t=i(t,e);var c=-1,l=t.length,h=l-1,f=e;while(f!=null&&++c<l){var d=a(t[c]),p=r;if(d==="__proto__"||d==="constructor"||d==="prototype"){return e}if(c!=h){var m=f[d];p=u?u(m,d,f):undefined;if(p===undefined){p=o(m)?m:s(t[c+1])?[]:{}}}n(f,d,p);f=f[d]}return e}e.exports=baseSet},979:(e,t,r)=>{var n=r(5946),i=r(416),s=r(7822);var o=!i?s:function(e,t){return i(e,"toString",{configurable:true,enumerable:false,value:n(t),writable:true})};e.exports=o},7765:e=>{function baseTimes(e,t){var r=-1,n=Array(e);while(++r<e){n[r]=t(r)}return n}e.exports=baseTimes},6792:(e,t,r)=>{var n=r(9213),i=r(4356),s=r(4869),o=r(6403);var a=1/0;var u=n?n.prototype:undefined,c=u?u.toString:undefined;function baseToString(e){if(typeof e=="string"){return e}if(s(e)){return i(e,baseToString)+""}if(o(e)){return c?c.call(e):""}var t=e+"";return t=="0"&&1/e==-a?"-0":t}e.exports=baseToString},9258:e=>{function baseUnary(e){return function(t){return e(t)}}e.exports=baseUnary},2688:(e,t,r)=>{var n=r(4869),i=r(9084),s=r(1853),o=r(2931);function castPath(e,t){if(n(e)){return e}return i(e,t)?[e]:s(o(e))}e.exports=castPath},1094:(e,t,r)=>{var n=r(3261);function cloneArrayBuffer(e){var t=new e.constructor(e.byteLength);new n(t).set(new n(e));return t}e.exports=cloneArrayBuffer},2974:(e,t,r)=>{e=r.nmd(e);var n=r(9882);var i=true&&t&&!t.nodeType&&t;var s=i&&"object"=="object"&&e&&!e.nodeType&&e;var o=s&&s.exports===i;var a=o?n.Buffer:undefined,u=a?a.allocUnsafe:undefined;function cloneBuffer(e,t){if(t){return e.slice()}var r=e.length,n=u?u(r):new e.constructor(r);e.copy(n);return n}e.exports=cloneBuffer},7764:(e,t,r)=>{var n=r(1094);function cloneTypedArray(e,t){var r=t?n(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}e.exports=cloneTypedArray},5157:e=>{function copyArray(e,t){var r=-1,n=e.length;t||(t=Array(n));while(++r<n){t[r]=e[r]}return t}e.exports=copyArray},6388:(e,t,r)=>{var n=r(9725),i=r(3868);function copyObject(e,t,r,s){var o=!r;r||(r={});var a=-1,u=t.length;while(++a<u){var c=t[a];var l=s?s(r[c],e[c],c,r,e):undefined;if(l===undefined){l=e[c]}if(o){i(r,c,l)}else{n(r,c,l)}}return r}e.exports=copyObject},8380:(e,t,r)=>{var n=r(9882);var i=n["__core-js_shared__"];e.exports=i},1911:(e,t,r)=>{var n=r(5979),i=r(8494);function createAssigner(e){return n(function(t,r){var n=-1,s=r.length,o=s>1?r[s-1]:undefined,a=s>2?r[2]:undefined;o=e.length>3&&typeof o=="function"?(s--,o):undefined;if(a&&i(r[0],r[1],a)){o=s<3?undefined:o;s=1}t=Object(t);while(++n<s){var u=r[n];if(u){e(t,u,n,o)}}return t})}e.exports=createAssigner},5709:e=>{function createBaseFor(e){return function(t,r,n){var i=-1,s=Object(t),o=n(t),a=o.length;while(a--){var u=o[e?a:++i];if(r(s[u],u,s)===false){break}}return t}}e.exports=createBaseFor},416:(e,t,r)=>{var n=r(4479);var i=function(){try{var e=n(Object,"defineProperty");e({},"",{});return e}catch(e){}}();e.exports=i},2085:e=>{var t=typeof global=="object"&&global&&global.Object===Object&&global;e.exports=t},9980:(e,t,r)=>{var n=r(3308);function getMapData(e,t){var r=e.__data__;return n(t)?r[typeof t=="string"?"string":"hash"]:r.map}e.exports=getMapData},4479:(e,t,r)=>{var n=r(411),i=r(3542);function getNative(e,t){var r=i(e,t);return n(r)?r:undefined}e.exports=getNative},6271:(e,t,r)=>{var n=r(6320);var i=n(Object.getPrototypeOf,Object);e.exports=i},923:(e,t,r)=>{var n=r(9213);var i=Object.prototype;var s=i.hasOwnProperty;var o=i.toString;var a=n?n.toStringTag:undefined;function getRawTag(e){var t=s.call(e,a),r=e[a];try{e[a]=undefined;var n=true}catch(e){}var i=o.call(e);if(n){if(t){e[a]=r}else{delete e[a]}}return i}e.exports=getRawTag},3542:e=>{function getValue(e,t){return e==null?undefined:e[t]}e.exports=getValue},1789:(e,t,r)=>{var n=r(3041);function hashClear(){this.__data__=n?n(null):{};this.size=0}e.exports=hashClear},712:e=>{function hashDelete(e){var t=this.has(e)&&delete this.__data__[e];this.size-=t?1:0;return t}e.exports=hashDelete},5395:(e,t,r)=>{var n=r(3041);var i="__lodash_hash_undefined__";var s=Object.prototype;var o=s.hasOwnProperty;function hashGet(e){var t=this.__data__;if(n){var r=t[e];return r===i?undefined:r}return o.call(t,e)?t[e]:undefined}e.exports=hashGet},5232:(e,t,r)=>{var n=r(3041);var i=Object.prototype;var s=i.hasOwnProperty;function hashHas(e){var t=this.__data__;return n?t[e]!==undefined:s.call(t,e)}e.exports=hashHas},7320:(e,t,r)=>{var n=r(3041);var i="__lodash_hash_undefined__";function hashSet(e,t){var r=this.__data__;this.size+=this.has(e)?0:1;r[e]=n&&t===undefined?i:t;return this}e.exports=hashSet},1532:(e,t,r)=>{var n=r(6706),i=r(6271),s=r(10);function initCloneObject(e){return typeof e.constructor=="function"&&!s(e)?n(i(e)):{}}e.exports=initCloneObject},2936:e=>{var t=9007199254740991;var r=/^(?:0|[1-9]\d*)$/;function isIndex(e,n){var i=typeof e;n=n==null?t:n;return!!n&&(i=="number"||i!="symbol"&&r.test(e))&&(e>-1&&e%1==0&&e<n)}e.exports=isIndex},8494:(e,t,r)=>{var n=r(1901),i=r(8017),s=r(2936),o=r(3334);function isIterateeCall(e,t,r){if(!o(r)){return false}var a=typeof t;if(a=="number"?i(r)&&s(t,r.length):a=="string"&&t in r){return n(r[t],e)}return false}e.exports=isIterateeCall},9084:(e,t,r)=>{var n=r(4869),i=r(6403);var s=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,o=/^\w*$/;function isKey(e,t){if(n(e)){return false}var r=typeof e;if(r=="number"||r=="symbol"||r=="boolean"||e==null||i(e)){return true}return o.test(e)||!s.test(e)||t!=null&&e in Object(t)}e.exports=isKey},3308:e=>{function isKeyable(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}e.exports=isKeyable},9058:(e,t,r)=>{var n=r(8380);var i=function(){var e=/[^.]+$/.exec(n&&n.keys&&n.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function isMasked(e){return!!i&&i in e}e.exports=isMasked},10:e=>{var t=Object.prototype;function isPrototype(e){var r=e&&e.constructor,n=typeof r=="function"&&r.prototype||t;return e===n}e.exports=isPrototype},9792:e=>{function listCacheClear(){this.__data__=[];this.size=0}e.exports=listCacheClear},7716:(e,t,r)=>{var n=r(6752);var i=Array.prototype;var s=i.splice;function listCacheDelete(e){var t=this.__data__,r=n(t,e);if(r<0){return false}var i=t.length-1;if(r==i){t.pop()}else{s.call(t,r,1)}--this.size;return true}e.exports=listCacheDelete},5789:(e,t,r)=>{var n=r(6752);function listCacheGet(e){var t=this.__data__,r=n(t,e);return r<0?undefined:t[r][1]}e.exports=listCacheGet},9386:(e,t,r)=>{var n=r(6752);function listCacheHas(e){return n(this.__data__,e)>-1}e.exports=listCacheHas},7399:(e,t,r)=>{var n=r(6752);function listCacheSet(e,t){var r=this.__data__,i=n(r,e);if(i<0){++this.size;r.push([e,t])}else{r[i][1]=t}return this}e.exports=listCacheSet},1610:(e,t,r)=>{var n=r(5209),i=r(6608),s=r(881);function mapCacheClear(){this.size=0;this.__data__={hash:new n,map:new(s||i),string:new n}}e.exports=mapCacheClear},6657:(e,t,r)=>{var n=r(9980);function mapCacheDelete(e){var t=n(this,e)["delete"](e);this.size-=t?1:0;return t}e.exports=mapCacheDelete},1372:(e,t,r)=>{var n=r(9980);function mapCacheGet(e){return n(this,e).get(e)}e.exports=mapCacheGet},609:(e,t,r)=>{var n=r(9980);function mapCacheHas(e){return n(this,e).has(e)}e.exports=mapCacheHas},5582:(e,t,r)=>{var n=r(9980);function mapCacheSet(e,t){var r=n(this,e),i=r.size;r.set(e,t);this.size+=r.size==i?0:1;return this}e.exports=mapCacheSet},9422:(e,t,r)=>{var n=r(9885);var i=500;function memoizeCapped(e){var t=n(e,function(e){if(r.size===i){r.clear()}return e});var r=t.cache;return t}e.exports=memoizeCapped},3041:(e,t,r)=>{var n=r(4479);var i=n(Object,"create");e.exports=i},5383:e=>{function nativeKeysIn(e){var t=[];if(e!=null){for(var r in Object(e)){t.push(r)}}return t}e.exports=nativeKeysIn},4643:(e,t,r)=>{e=r.nmd(e);var n=r(2085);var i=true&&t&&!t.nodeType&&t;var s=i&&"object"=="object"&&e&&!e.nodeType&&e;var o=s&&s.exports===i;var a=o&&n.process;var u=function(){try{var e=s&&s.require&&s.require("util").types;if(e){return e}return a&&a.binding&&a.binding("util")}catch(e){}}();e.exports=u},4200:e=>{var t=Object.prototype;var r=t.toString;function objectToString(e){return r.call(e)}e.exports=objectToString},6320:e=>{function overArg(e,t){return function(r){return e(t(r))}}e.exports=overArg},2417:(e,t,r)=>{var n=r(9647);var i=Math.max;function overRest(e,t,r){t=i(t===undefined?e.length-1:t,0);return function(){var s=arguments,o=-1,a=i(s.length-t,0),u=Array(a);while(++o<a){u[o]=s[t+o]}o=-1;var c=Array(t+1);while(++o<t){c[o]=s[o]}c[t]=r(u);return n(e,this,c)}}e.exports=overRest},9882:(e,t,r)=>{var n=r(2085);var i=typeof self=="object"&&self&&self.Object===Object&&self;var s=n||i||Function("return this")();e.exports=s},9020:e=>{function safeGet(e,t){if(t==="constructor"&&typeof e[t]==="function"){return}if(t=="__proto__"){return}return e[t]}e.exports=safeGet},8416:(e,t,r)=>{var n=r(979),i=r(7882);var s=i(n);e.exports=s},7882:e=>{var t=800,r=16;var n=Date.now;function shortOut(e){var i=0,s=0;return function(){var o=n(),a=r-(o-s);s=o;if(a>0){if(++i>=t){return arguments[0]}}else{i=0}return e.apply(undefined,arguments)}}e.exports=shortOut},2843:(e,t,r)=>{var n=r(6608);function stackClear(){this.__data__=new n;this.size=0}e.exports=stackClear},4717:e=>{function stackDelete(e){var t=this.__data__,r=t["delete"](e);this.size=t.size;return r}e.exports=stackDelete},21:e=>{function stackGet(e){return this.__data__.get(e)}e.exports=stackGet},3910:e=>{function stackHas(e){return this.__data__.has(e)}e.exports=stackHas},9955:(e,t,r)=>{var n=r(6608),i=r(881),s=r(938);var o=200;function stackSet(e,t){var r=this.__data__;if(r instanceof n){var a=r.__data__;if(!i||a.length<o-1){a.push([e,t]);this.size=++r.size;return this}r=this.__data__=new s(a)}r.set(e,t);this.size=r.size;return this}e.exports=stackSet},1853:(e,t,r)=>{var n=r(9422);var i=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;var s=/\\(\\)?/g;var o=n(function(e){var t=[];if(e.charCodeAt(0)===46){t.push("")}e.replace(i,function(e,r,n,i){t.push(n?i.replace(s,"$1"):r||e)});return t});e.exports=o},9071:(e,t,r)=>{var n=r(6403);var i=1/0;function toKey(e){if(typeof e=="string"||n(e)){return e}var t=e+"";return t=="0"&&1/e==-i?"-0":t}e.exports=toKey},6928:e=>{var t=Function.prototype;var r=t.toString;function toSource(e){if(e!=null){try{return r.call(e)}catch(e){}try{return e+""}catch(e){}}return""}e.exports=toSource},5946:e=>{function constant(e){return function(){return e}}e.exports=constant},1901:e=>{function eq(e,t){return e===t||e!==e&&t!==t}e.exports=eq},6908:(e,t,r)=>{var n=r(5758);function get(e,t,r){var i=e==null?undefined:n(e,t);return i===undefined?r:i}e.exports=get},7822:e=>{function identity(e){return e}e.exports=identity},8495:(e,t,r)=>{var n=r(2177),i=r(5926);var s=Object.prototype;var o=s.hasOwnProperty;var a=s.propertyIsEnumerable;var u=n(function(){return arguments}())?n:function(e){return i(e)&&o.call(e,"callee")&&!a.call(e,"callee")};e.exports=u},4869:e=>{var t=Array.isArray;e.exports=t},8017:(e,t,r)=>{var n=r(7799),i=r(4530);function isArrayLike(e){return e!=null&&i(e.length)&&!n(e)}e.exports=isArrayLike},2015:(e,t,r)=>{var n=r(8017),i=r(5926);function isArrayLikeObject(e){return i(e)&&n(e)}e.exports=isArrayLikeObject},4190:(e,t,r)=>{e=r.nmd(e);var n=r(9882),i=r(7744);var s=true&&t&&!t.nodeType&&t;var o=s&&"object"=="object"&&e&&!e.nodeType&&e;var a=o&&o.exports===s;var u=a?n.Buffer:undefined;var c=u?u.isBuffer:undefined;var l=c||i;e.exports=l},7799:(e,t,r)=>{var n=r(7497),i=r(3334);var s="[object AsyncFunction]",o="[object Function]",a="[object GeneratorFunction]",u="[object Proxy]";function isFunction(e){if(!i(e)){return false}var t=n(e);return t==o||t==a||t==s||t==u}e.exports=isFunction},4530:e=>{var t=9007199254740991;function isLength(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=t}e.exports=isLength},3334:e=>{function isObject(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}e.exports=isObject},5926:e=>{function isObjectLike(e){return e!=null&&typeof e=="object"}e.exports=isObjectLike},6169:(e,t,r)=>{var n=r(7497),i=r(6271),s=r(5926);var o="[object Object]";var a=Function.prototype,u=Object.prototype;var c=a.toString;var l=u.hasOwnProperty;var h=c.call(Object);function isPlainObject(e){if(!s(e)||n(e)!=o){return false}var t=i(e);if(t===null){return true}var r=l.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&c.call(r)==h}e.exports=isPlainObject},6403:(e,t,r)=>{var n=r(7497),i=r(5926);var s="[object Symbol]";function isSymbol(e){return typeof e=="symbol"||i(e)&&n(e)==s}e.exports=isSymbol},2496:(e,t,r)=>{var n=r(1528),i=r(9258),s=r(4643);var o=s&&s.isTypedArray;var a=o?i(o):n;e.exports=a},9109:(e,t,r)=>{var n=r(2237),i=r(297),s=r(8017);function keysIn(e){return s(e)?n(e,true):i(e)}e.exports=keysIn},9885:(e,t,r)=>{var n=r(938);var i="Expected a function";function memoize(e,t){if(typeof e!="function"||t!=null&&typeof t!="function"){throw new TypeError(i)}var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],s=r.cache;if(s.has(i)){return s.get(i)}var o=e.apply(this,n);r.cache=s.set(i,o)||s;return o};r.cache=new(memoize.Cache||n);return r}memoize.Cache=n;e.exports=memoize},481:(e,t,r)=>{var n=r(5451),i=r(1911);var s=i(function(e,t,r){n(e,t,r)});e.exports=s},2900:(e,t,r)=>{var n=r(8580);function set(e,t,r){return e==null?e:n(e,t,r)}e.exports=set},7744:e=>{function stubFalse(){return false}e.exports=stubFalse},9321:(e,t,r)=>{var n=r(6388),i=r(9109);function toPlainObject(e){return n(e,i(e))}e.exports=toPlainObject},2931:(e,t,r)=>{var n=r(6792);function toString(e){return e==null?"":n(e)}e.exports=toString},9662:e=>{"use strict";e.exports=(e=>{const t={};for(const[r,n]of Object.entries(e)){t[r.toLowerCase()]=n}return t})},7129:(e,t,r)=>{"use strict";const n=r(1128);const i=Symbol("max");const s=Symbol("length");const o=Symbol("lengthCalculator");const a=Symbol("allowStale");const u=Symbol("maxAge");const c=Symbol("dispose");const l=Symbol("noDisposeOnSet");const h=Symbol("lruList");const f=Symbol("cache");const d=Symbol("updateAgeOnGet");const p=()=>1;class LRUCache{constructor(e){if(typeof e==="number")e={max:e};if(!e)e={};if(e.max&&(typeof e.max!=="number"||e.max<0))throw new TypeError("max must be a non-negative number");const t=this[i]=e.max||Infinity;const r=e.length||p;this[o]=typeof r!=="function"?p:r;this[a]=e.stale||false;if(e.maxAge&&typeof e.maxAge!=="number")throw new TypeError("maxAge must be a number");this[u]=e.maxAge||0;this[c]=e.dispose;this[l]=e.noDisposeOnSet||false;this[d]=e.updateAgeOnGet||false;this.reset()}set max(e){if(typeof e!=="number"||e<0)throw new TypeError("max must be a non-negative number");this[i]=e||Infinity;g(this)}get max(){return this[i]}set allowStale(e){this[a]=!!e}get allowStale(){return this[a]}set maxAge(e){if(typeof e!=="number")throw new TypeError("maxAge must be a non-negative number");this[u]=e;g(this)}get maxAge(){return this[u]}set lengthCalculator(e){if(typeof e!=="function")e=p;if(e!==this[o]){this[o]=e;this[s]=0;this[h].forEach(e=>{e.length=this[o](e.value,e.key);this[s]+=e.length})}g(this)}get lengthCalculator(){return this[o]}get length(){return this[s]}get itemCount(){return this[h].length}rforEach(e,t){t=t||this;for(let r=this[h].tail;r!==null;){const n=r.prev;b(this,e,r,t);r=n}}forEach(e,t){t=t||this;for(let r=this[h].head;r!==null;){const n=r.next;b(this,e,r,t);r=n}}keys(){return this[h].toArray().map(e=>e.key)}values(){return this[h].toArray().map(e=>e.value)}reset(){if(this[c]&&this[h]&&this[h].length){this[h].forEach(e=>this[c](e.key,e.value))}this[f]=new Map;this[h]=new n;this[s]=0}dump(){return this[h].map(e=>y(this,e)?false:{k:e.key,v:e.value,e:e.now+(e.maxAge||0)}).toArray().filter(e=>e)}dumpLru(){return this[h]}set(e,t,r){r=r||this[u];if(r&&typeof r!=="number")throw new TypeError("maxAge must be a number");const n=r?Date.now():0;const a=this[o](t,e);if(this[f].has(e)){if(a>this[i]){v(this,this[f].get(e));return false}const o=this[f].get(e);const u=o.value;if(this[c]){if(!this[l])this[c](e,u.value)}u.now=n;u.maxAge=r;u.value=t;this[s]+=a-u.length;u.length=a;this.get(e);g(this);return true}const d=new Entry(e,t,a,n,r);if(d.length>this[i]){if(this[c])this[c](e,t);return false}this[s]+=d.length;this[h].unshift(d);this[f].set(e,this[h].head);g(this);return true}has(e){if(!this[f].has(e))return false;const t=this[f].get(e).value;return!y(this,t)}get(e){return m(this,e,true)}peek(e){return m(this,e,false)}pop(){const e=this[h].tail;if(!e)return null;v(this,e);return e.value}del(e){v(this,this[f].get(e))}load(e){this.reset();const t=Date.now();for(let r=e.length-1;r>=0;r--){const n=e[r];const i=n.e||0;if(i===0)this.set(n.k,n.v);else{const e=i-t;if(e>0){this.set(n.k,n.v,e)}}}}prune(){this[f].forEach((e,t)=>m(this,t,false))}}const m=(e,t,r)=>{const n=e[f].get(t);if(n){const t=n.value;if(y(e,t)){v(e,n);if(!e[a])return undefined}else{if(r){if(e[d])n.value.now=Date.now();e[h].unshiftNode(n)}}return t.value}};const y=(e,t)=>{if(!t||!t.maxAge&&!e[u])return false;const r=Date.now()-t.now;return t.maxAge?r>t.maxAge:e[u]&&r>e[u]};const g=e=>{if(e[s]>e[i]){for(let t=e[h].tail;e[s]>e[i]&&t!==null;){const r=t.prev;v(e,t);t=r}}};const v=(e,t)=>{if(t){const r=t.value;if(e[c])e[c](r.key,r.value);e[s]-=r.length;e[f].delete(r.key);e[h].removeNode(t)}};class Entry{constructor(e,t,r,n,i){this.key=e;this.value=t;this.length=r;this.now=n;this.maxAge=i||0}}const b=(e,t,r,n)=>{let i=r.value;if(y(e,i)){v(e,r);if(!e[a])i=undefined}if(i)t.call(n,i.value,i.key,e)};e.exports=LRUCache},5114:e=>{"use strict";e.exports=function(e){e.prototype[Symbol.iterator]=function*(){for(let e=this.head;e;e=e.next){yield e.value}}}},1128:(e,t,r)=>{"use strict";e.exports=Yallist;Yallist.Node=Node;Yallist.create=Yallist;function Yallist(e){var t=this;if(!(t instanceof Yallist)){t=new Yallist}t.tail=null;t.head=null;t.length=0;if(e&&typeof e.forEach==="function"){e.forEach(function(e){t.push(e)})}else if(arguments.length>0){for(var r=0,n=arguments.length;r<n;r++){t.push(arguments[r])}}return t}Yallist.prototype.removeNode=function(e){if(e.list!==this){throw new Error("removing node which does not belong to this list")}var t=e.next;var r=e.prev;if(t){t.prev=r}if(r){r.next=t}if(e===this.head){this.head=t}if(e===this.tail){this.tail=r}e.list.length--;e.next=null;e.prev=null;e.list=null;return t};Yallist.prototype.unshiftNode=function(e){if(e===this.head){return}if(e.list){e.list.removeNode(e)}var t=this.head;e.list=this;e.next=t;if(t){t.prev=e}this.head=e;if(!this.tail){this.tail=e}this.length++};Yallist.prototype.pushNode=function(e){if(e===this.tail){return}if(e.list){e.list.removeNode(e)}var t=this.tail;e.list=this;e.prev=t;if(t){t.next=e}this.tail=e;if(!this.head){this.head=e}this.length++};Yallist.prototype.push=function(){for(var e=0,t=arguments.length;e<t;e++){push(this,arguments[e])}return this.length};Yallist.prototype.unshift=function(){for(var e=0,t=arguments.length;e<t;e++){unshift(this,arguments[e])}return this.length};Yallist.prototype.pop=function(){if(!this.tail){return undefined}var e=this.tail.value;this.tail=this.tail.prev;if(this.tail){this.tail.next=null}else{this.head=null}this.length--;return e};Yallist.prototype.shift=function(){if(!this.head){return undefined}var e=this.head.value;this.head=this.head.next;if(this.head){this.head.prev=null}else{this.tail=null}this.length--;return e};Yallist.prototype.forEach=function(e,t){t=t||this;for(var r=this.head,n=0;r!==null;n++){e.call(t,r.value,n,this);r=r.next}};Yallist.prototype.forEachReverse=function(e,t){t=t||this;for(var r=this.tail,n=this.length-1;r!==null;n--){e.call(t,r.value,n,this);r=r.prev}};Yallist.prototype.get=function(e){for(var t=0,r=this.head;r!==null&&t<e;t++){r=r.next}if(t===e&&r!==null){return r.value}};Yallist.prototype.getReverse=function(e){for(var t=0,r=this.tail;r!==null&&t<e;t++){r=r.prev}if(t===e&&r!==null){return r.value}};Yallist.prototype.map=function(e,t){t=t||this;var r=new Yallist;for(var n=this.head;n!==null;){r.push(e.call(t,n.value,this));n=n.next}return r};Yallist.prototype.mapReverse=function(e,t){t=t||this;var r=new Yallist;for(var n=this.tail;n!==null;){r.push(e.call(t,n.value,this));n=n.prev}return r};Yallist.prototype.reduce=function(e,t){var r;var n=this.head;if(arguments.length>1){r=t}else if(this.head){n=this.head.next;r=this.head.value}else{throw new TypeError("Reduce of empty list with no initial value")}for(var i=0;n!==null;i++){r=e(r,n.value,i);n=n.next}return r};Yallist.prototype.reduceReverse=function(e,t){var r;var n=this.tail;if(arguments.length>1){r=t}else if(this.tail){n=this.tail.prev;r=this.tail.value}else{throw new TypeError("Reduce of empty list with no initial value")}for(var i=this.length-1;n!==null;i--){r=e(r,n.value,i);n=n.prev}return r};Yallist.prototype.toArray=function(){var e=new Array(this.length);for(var t=0,r=this.head;r!==null;t++){e[t]=r.value;r=r.next}return e};Yallist.prototype.toArrayReverse=function(){var e=new Array(this.length);for(var t=0,r=this.tail;r!==null;t++){e[t]=r.value;r=r.prev}return e};Yallist.prototype.slice=function(e,t){t=t||this.length;if(t<0){t+=this.length}e=e||0;if(e<0){e+=this.length}var r=new Yallist;if(t<e||t<0){return r}if(e<0){e=0}if(t>this.length){t=this.length}for(var n=0,i=this.head;i!==null&&n<e;n++){i=i.next}for(;i!==null&&n<t;n++,i=i.next){r.push(i.value)}return r};Yallist.prototype.sliceReverse=function(e,t){t=t||this.length;if(t<0){t+=this.length}e=e||0;if(e<0){e+=this.length}var r=new Yallist;if(t<e||t<0){return r}if(e<0){e=0}if(t>this.length){t=this.length}for(var n=this.length,i=this.tail;i!==null&&n>t;n--){i=i.prev}for(;i!==null&&n>e;n--,i=i.prev){r.push(i.value)}return r};Yallist.prototype.splice=function(e,t){if(e>this.length){e=this.length-1}if(e<0){e=this.length+e}for(var r=0,n=this.head;n!==null&&r<e;r++){n=n.next}var i=[];for(var r=0;n&&r<t;r++){i.push(n.value);n=this.removeNode(n)}if(n===null){n=this.tail}if(n!==this.head&&n!==this.tail){n=n.prev}for(var r=2;r<arguments.length;r++){n=insert(this,n,arguments[r])}return i};Yallist.prototype.reverse=function(){var e=this.head;var t=this.tail;for(var r=e;r!==null;r=r.prev){var n=r.prev;r.prev=r.next;r.next=n}this.head=t;this.tail=e;return this};function insert(e,t,r){var n=t===e.head?new Node(r,null,t,e):new Node(r,t,t.next,e);if(n.next===null){e.tail=n}if(n.prev===null){e.head=n}e.length++;return n}function push(e,t){e.tail=new Node(t,e.tail,null,e);if(!e.head){e.head=e.tail}e.length++}function unshift(e,t){e.head=new Node(t,null,e.head,e);if(!e.tail){e.tail=e.head}e.length++}function Node(e,t,r,n){if(!(this instanceof Node)){return new Node(e,t,r,n)}this.list=n;this.value=e;if(t){t.next=this;this.prev=t}else{this.prev=null}if(r){r.prev=this;this.next=r}else{this.next=null}}try{r(5114)(Yallist)}catch(e){}},6228:(e,t,r)=>{"use strict";const n=r(1669);const i=r(610);const s=r(8569);const o=r(479);const a=e=>typeof e==="string"&&(e===""||e==="./");const u=(e,t,r)=>{t=[].concat(t);e=[].concat(e);let n=new Set;let i=new Set;let o=new Set;let a=0;let u=e=>{o.add(e.output);if(r&&r.onResult){r.onResult(e)}};for(let o=0;o<t.length;o++){let c=s(String(t[o]),{...r,onResult:u},true);let l=c.state.negated||c.state.negatedExtglob;if(l)a++;for(let t of e){let e=c(t,true);let r=l?!e.isMatch:e.isMatch;if(!r)continue;if(l){n.add(e.output)}else{n.delete(e.output);i.add(e.output)}}}let c=a===t.length?[...o]:[...i];let l=c.filter(e=>!n.has(e));if(r&&l.length===0){if(r.failglob===true){throw new Error(`No matches found for "${t.join(", ")}"`)}if(r.nonull===true||r.nullglob===true){return r.unescape?t.map(e=>e.replace(/\\/g,"")):t}}return l};u.match=u;u.matcher=((e,t)=>s(e,t));u.isMatch=((e,t,r)=>s(t,r)(e));u.any=u.isMatch;u.not=((e,t,r={})=>{t=[].concat(t).map(String);let n=new Set;let i=[];let s=e=>{if(r.onResult)r.onResult(e);i.push(e.output)};let o=u(e,t,{...r,onResult:s});for(let e of i){if(!o.includes(e)){n.add(e)}}return[...n]});u.contains=((e,t,r)=>{if(typeof e!=="string"){throw new TypeError(`Expected a string: "${n.inspect(e)}"`)}if(Array.isArray(t)){return t.some(t=>u.contains(e,t,r))}if(typeof t==="string"){if(a(e)||a(t)){return false}if(e.includes(t)||e.startsWith("./")&&e.slice(2).includes(t)){return true}}return u.isMatch(e,t,{...r,contains:true})});u.matchKeys=((e,t,r)=>{if(!o.isObject(e)){throw new TypeError("Expected the first argument to be an object")}let n=u(Object.keys(e),t,r);let i={};for(let t of n)i[t]=e[t];return i});u.some=((e,t,r)=>{let n=[].concat(e);for(let e of[].concat(t)){let t=s(String(e),r);if(n.some(e=>t(e))){return true}}return false});u.every=((e,t,r)=>{let n=[].concat(e);for(let e of[].concat(t)){let t=s(String(e),r);if(!n.every(e=>t(e))){return false}}return true});u.all=((e,t,r)=>{if(typeof e!=="string"){throw new TypeError(`Expected a string: "${n.inspect(e)}"`)}return[].concat(t).every(t=>s(t,r)(e))});u.capture=((e,t,r)=>{let n=o.isWindows(r);let i=s.makeRe(String(e),{...r,capture:true});let a=i.exec(n?o.toPosixSlashes(t):t);if(a){return a.slice(1).map(e=>e===void 0?"":e)}});u.makeRe=((...e)=>s.makeRe(...e));u.scan=((...e)=>s.scan(...e));u.parse=((e,t)=>{let r=[];for(let n of[].concat(e||[])){for(let e of i(String(n),t)){r.push(s.parse(e,t))}}return r});u.braces=((e,t)=>{if(typeof e!=="string")throw new TypeError("Expected a string");if(t&&t.nobrace===true||!/\{.*\}/.test(e)){return[e]}return i(e,t)});u.braceExpand=((e,t)=>{if(typeof e!=="string")throw new TypeError("Expected a string");return u.braces(e,{...t,expand:true})});e.exports=u},6047:e=>{"use strict";const t=(e,t)=>{for(const r of Reflect.ownKeys(t)){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}return e};e.exports=t;e.exports.default=t},2610:e=>{"use strict";const t=["aborted","complete","destroy","headers","httpVersion","httpVersionMinor","httpVersionMajor","method","rawHeaders","rawTrailers","setTimeout","socket","statusCode","statusMessage","trailers","url"];e.exports=((e,r)=>{const n=new Set(Object.keys(e).concat(t));for(const t of n){if(t in r){continue}r[t]=typeof e[t]==="function"?e[t].bind(e):e[t]}return r})},3973:(e,t,r)=>{e.exports=minimatch;minimatch.Minimatch=Minimatch;var n={sep:"/"};try{n=r(5622)}catch(e){}var i=minimatch.GLOBSTAR=Minimatch.GLOBSTAR={};var s=r(3717);var o={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}};var a="[^/]";var u=a+"*?";var c="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?";var l="(?:(?!(?:\\/|^)\\.).)*?";var h=charSet("().*{}+?[]^$\\!");function charSet(e){return e.split("").reduce(function(e,t){e[t]=true;return e},{})}var f=/\/+/;minimatch.filter=filter;function filter(e,t){t=t||{};return function(r,n,i){return minimatch(r,e,t)}}function ext(e,t){e=e||{};t=t||{};var r={};Object.keys(t).forEach(function(e){r[e]=t[e]});Object.keys(e).forEach(function(t){r[t]=e[t]});return r}minimatch.defaults=function(e){if(!e||!Object.keys(e).length)return minimatch;var t=minimatch;var r=function minimatch(r,n,i){return t.minimatch(r,n,ext(e,i))};r.Minimatch=function Minimatch(r,n){return new t.Minimatch(r,ext(e,n))};return r};Minimatch.defaults=function(e){if(!e||!Object.keys(e).length)return Minimatch;return minimatch.defaults(e).Minimatch};function minimatch(e,t,r){if(typeof t!=="string"){throw new TypeError("glob pattern string required")}if(!r)r={};if(!r.nocomment&&t.charAt(0)==="#"){return false}if(t.trim()==="")return e==="";return new Minimatch(t,r).match(e)}function Minimatch(e,t){if(!(this instanceof Minimatch)){return new Minimatch(e,t)}if(typeof e!=="string"){throw new TypeError("glob pattern string required")}if(!t)t={};e=e.trim();if(n.sep!=="/"){e=e.split(n.sep).join("/")}this.options=t;this.set=[];this.pattern=e;this.regexp=null;this.negate=false;this.comment=false;this.empty=false;this.make()}Minimatch.prototype.debug=function(){};Minimatch.prototype.make=make;function make(){if(this._made)return;var e=this.pattern;var t=this.options;if(!t.nocomment&&e.charAt(0)==="#"){this.comment=true;return}if(!e){this.empty=true;return}this.parseNegate();var r=this.globSet=this.braceExpand();if(t.debug)this.debug=console.error;this.debug(this.pattern,r);r=this.globParts=r.map(function(e){return e.split(f)});this.debug(this.pattern,r);r=r.map(function(e,t,r){return e.map(this.parse,this)},this);this.debug(this.pattern,r);r=r.filter(function(e){return e.indexOf(false)===-1});this.debug(this.pattern,r);this.set=r}Minimatch.prototype.parseNegate=parseNegate;function parseNegate(){var e=this.pattern;var t=false;var r=this.options;var n=0;if(r.nonegate)return;for(var i=0,s=e.length;i<s&&e.charAt(i)==="!";i++){t=!t;n++}if(n)this.pattern=e.substr(n);this.negate=t}minimatch.braceExpand=function(e,t){return braceExpand(e,t)};Minimatch.prototype.braceExpand=braceExpand;function braceExpand(e,t){if(!t){if(this instanceof Minimatch){t=this.options}else{t={}}}e=typeof e==="undefined"?this.pattern:e;if(typeof e==="undefined"){throw new TypeError("undefined pattern")}if(t.nobrace||!e.match(/\{.*\}/)){return[e]}return s(e)}Minimatch.prototype.parse=parse;var d={};function parse(e,t){if(e.length>1024*64){throw new TypeError("pattern is too long")}var r=this.options;if(!r.noglobstar&&e==="**")return i;if(e==="")return"";var n="";var s=!!r.nocase;var c=false;var l=[];var f=[];var p;var m=false;var y=-1;var g=-1;var v=e.charAt(0)==="."?"":r.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)";var b=this;function clearStateChar(){if(p){switch(p){case"*":n+=u;s=true;break;case"?":n+=a;s=true;break;default:n+="\\"+p;break}b.debug("clearStateChar %j %j",p,n);p=false}}for(var w=0,A=e.length,E;w<A&&(E=e.charAt(w));w++){this.debug("%s\t%s %s %j",e,w,n,E);if(c&&h[E]){n+="\\"+E;c=false;continue}switch(E){case"/":return false;case"\\":clearStateChar();c=true;continue;case"?":case"*":case"+":case"@":case"!":this.debug("%s\t%s %s %j <-- stateChar",e,w,n,E);if(m){this.debug(" in class");if(E==="!"&&w===g+1)E="^";n+=E;continue}b.debug("call clearStateChar %j",p);clearStateChar();p=E;if(r.noext)clearStateChar();continue;case"(":if(m){n+="(";continue}if(!p){n+="\\(";continue}l.push({type:p,start:w-1,reStart:n.length,open:o[p].open,close:o[p].close});n+=p==="!"?"(?:(?!(?:":"(?:";this.debug("plType %j %j",p,n);p=false;continue;case")":if(m||!l.length){n+="\\)";continue}clearStateChar();s=true;var _=l.pop();n+=_.close;if(_.type==="!"){f.push(_)}_.reEnd=n.length;continue;case"|":if(m||!l.length||c){n+="\\|";c=false;continue}clearStateChar();n+="|";continue;case"[":clearStateChar();if(m){n+="\\"+E;continue}m=true;g=w;y=n.length;n+=E;continue;case"]":if(w===g+1||!m){n+="\\"+E;c=false;continue}if(m){var D=e.substring(g+1,w);try{RegExp("["+D+"]")}catch(e){var S=this.parse(D,d);n=n.substr(0,y)+"\\["+S[0]+"\\]";s=s||S[1];m=false;continue}}s=true;m=false;n+=E;continue;default:clearStateChar();if(c){c=false}else if(h[E]&&!(E==="^"&&m)){n+="\\"}n+=E}}if(m){D=e.substr(g+1);S=this.parse(D,d);n=n.substr(0,y)+"\\["+S[0];s=s||S[1]}for(_=l.pop();_;_=l.pop()){var C=n.slice(_.reStart+_.open.length);this.debug("setting tail",n,_);C=C.replace(/((?:\\{2}){0,64})(\\?)\|/g,function(e,t,r){if(!r){r="\\"}return t+t+r+"|"});this.debug("tail=%j\n %s",C,C,_,n);var x=_.type==="*"?u:_.type==="?"?a:"\\"+_.type;s=true;n=n.slice(0,_.reStart)+x+"\\("+C}clearStateChar();if(c){n+="\\\\"}var R=false;switch(n.charAt(0)){case".":case"[":case"(":R=true}for(var O=f.length-1;O>-1;O--){var F=f[O];var P=n.slice(0,F.reStart);var T=n.slice(F.reStart,F.reEnd-8);var k=n.slice(F.reEnd-8,F.reEnd);var B=n.slice(F.reEnd);k+=B;var I=P.split("(").length-1;var j=B;for(w=0;w<I;w++){j=j.replace(/\)[+*?]?/,"")}B=j;var N="";if(B===""&&t!==d){N="$"}var M=P+T+B+N+k;n=M}if(n!==""&&s){n="(?=.)"+n}if(R){n=v+n}if(t===d){return[n,s]}if(!s){return globUnescape(e)}var L=r.nocase?"i":"";try{var $=new RegExp("^"+n+"$",L)}catch(e){return new RegExp("$.")}$._glob=e;$._src=n;return $}minimatch.makeRe=function(e,t){return new Minimatch(e,t||{}).makeRe()};Minimatch.prototype.makeRe=makeRe;function makeRe(){if(this.regexp||this.regexp===false)return this.regexp;var e=this.set;if(!e.length){this.regexp=false;return this.regexp}var t=this.options;var r=t.noglobstar?u:t.dot?c:l;var n=t.nocase?"i":"";var s=e.map(function(e){return e.map(function(e){return e===i?r:typeof e==="string"?regExpEscape(e):e._src}).join("\\/")}).join("|");s="^(?:"+s+")$";if(this.negate)s="^(?!"+s+").*$";try{this.regexp=new RegExp(s,n)}catch(e){this.regexp=false}return this.regexp}minimatch.match=function(e,t,r){r=r||{};var n=new Minimatch(t,r);e=e.filter(function(e){return n.match(e)});if(n.options.nonull&&!e.length){e.push(t)}return e};Minimatch.prototype.match=match;function match(e,t){this.debug("match",e,this.pattern);if(this.comment)return false;if(this.empty)return e==="";if(e==="/"&&t)return true;var r=this.options;if(n.sep!=="/"){e=e.split(n.sep).join("/")}e=e.split(f);this.debug(this.pattern,"split",e);var i=this.set;this.debug(this.pattern,"set",i);var s;var o;for(o=e.length-1;o>=0;o--){s=e[o];if(s)break}for(o=0;o<i.length;o++){var a=i[o];var u=e;if(r.matchBase&&a.length===1){u=[s]}var c=this.matchOne(u,a,t);if(c){if(r.flipNegate)return true;return!this.negate}}if(r.flipNegate)return false;return this.negate}Minimatch.prototype.matchOne=function(e,t,r){var n=this.options;this.debug("matchOne",{this:this,file:e,pattern:t});this.debug("matchOne",e.length,t.length);for(var s=0,o=0,a=e.length,u=t.length;s<a&&o<u;s++,o++){this.debug("matchOne loop");var c=t[o];var l=e[s];this.debug(t,c,l);if(c===false)return false;if(c===i){this.debug("GLOBSTAR",[t,c,l]);var h=s;var f=o+1;if(f===u){this.debug("** at the end");for(;s<a;s++){if(e[s]==="."||e[s]===".."||!n.dot&&e[s].charAt(0)===".")return false}return true}while(h<a){var d=e[h];this.debug("\nglobstar while",e,h,t,f,d);if(this.matchOne(e.slice(h),t.slice(f),r)){this.debug("globstar found match!",h,a,d);return true}else{if(d==="."||d===".."||!n.dot&&d.charAt(0)==="."){this.debug("dot detected!",e,h,t,f);break}this.debug("globstar swallow a segment, and continue");h++}}if(r){this.debug("\n>>> no match, partial?",e,h,t,f);if(h===a)return true}return false}var p;if(typeof c==="string"){if(n.nocase){p=l.toLowerCase()===c.toLowerCase()}else{p=l===c}this.debug("string match",c,l,p)}else{p=l.match(c);this.debug("pattern match",c,l,p)}if(!p)return false}if(s===a&&o===u){return true}else if(s===a){return r}else if(o===u){var m=s===a-1&&e[s]==="";return m}throw new Error("wtf?")};function globUnescape(e){return e.replace(/\\(.)/g,"$1")}function regExpEscape(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}},5871:e=>{e.exports=function(e,t){if(!t)t={};var r={bools:{},strings:{},unknownFn:null};if(typeof t["unknown"]==="function"){r.unknownFn=t["unknown"]}if(typeof t["boolean"]==="boolean"&&t["boolean"]){r.allBools=true}else{[].concat(t["boolean"]).filter(Boolean).forEach(function(e){r.bools[e]=true})}var n={};Object.keys(t.alias||{}).forEach(function(e){n[e]=[].concat(t.alias[e]);n[e].forEach(function(t){n[t]=[e].concat(n[e].filter(function(e){return t!==e}))})});[].concat(t.string).filter(Boolean).forEach(function(e){r.strings[e]=true;if(n[e]){r.strings[n[e]]=true}});var i=t["default"]||{};var s={_:[]};Object.keys(r.bools).forEach(function(e){setArg(e,i[e]===undefined?false:i[e])});var o=[];if(e.indexOf("--")!==-1){o=e.slice(e.indexOf("--")+1);e=e.slice(0,e.indexOf("--"))}function argDefined(e,t){return r.allBools&&/^--[^=]+$/.test(t)||r.strings[e]||r.bools[e]||n[e]}function setArg(e,t,i){if(i&&r.unknownFn&&!argDefined(e,i)){if(r.unknownFn(i)===false)return}var o=!r.strings[e]&&isNumber(t)?Number(t):t;setKey(s,e.split("."),o);(n[e]||[]).forEach(function(e){setKey(s,e.split("."),o)})}function setKey(e,t,n){var i=e;for(var s=0;s<t.length-1;s++){var o=t[s];if(o==="__proto__")return;if(i[o]===undefined)i[o]={};if(i[o]===Object.prototype||i[o]===Number.prototype||i[o]===String.prototype)i[o]={};if(i[o]===Array.prototype)i[o]=[];i=i[o]}var o=t[t.length-1];if(o==="__proto__")return;if(i===Object.prototype||i===Number.prototype||i===String.prototype)i={};if(i===Array.prototype)i=[];if(i[o]===undefined||r.bools[o]||typeof i[o]==="boolean"){i[o]=n}else if(Array.isArray(i[o])){i[o].push(n)}else{i[o]=[i[o],n]}}function aliasIsBoolean(e){return n[e].some(function(e){return r.bools[e]})}for(var a=0;a<e.length;a++){var u=e[a];if(/^--.+=/.test(u)){var c=u.match(/^--([^=]+)=([\s\S]*)$/);var l=c[1];var h=c[2];if(r.bools[l]){h=h!=="false"}setArg(l,h,u)}else if(/^--no-.+/.test(u)){var l=u.match(/^--no-(.+)/)[1];setArg(l,false,u)}else if(/^--.+/.test(u)){var l=u.match(/^--(.+)/)[1];var f=e[a+1];if(f!==undefined&&!/^-/.test(f)&&!r.bools[l]&&!r.allBools&&(n[l]?!aliasIsBoolean(l):true)){setArg(l,f,u);a++}else if(/^(true|false)$/.test(f)){setArg(l,f==="true",u);a++}else{setArg(l,r.strings[l]?"":true,u)}}else if(/^-[^-]+/.test(u)){var d=u.slice(1,-1).split("");var p=false;for(var m=0;m<d.length;m++){var f=u.slice(m+2);if(f==="-"){setArg(d[m],f,u);continue}if(/[A-Za-z]/.test(d[m])&&/=/.test(f)){setArg(d[m],f.split("=")[1],u);p=true;break}if(/[A-Za-z]/.test(d[m])&&/-?\d+(\.\d*)?(e-?\d+)?$/.test(f)){setArg(d[m],f,u);p=true;break}if(d[m+1]&&d[m+1].match(/\W/)){setArg(d[m],u.slice(m+2),u);p=true;break}else{setArg(d[m],r.strings[d[m]]?"":true,u)}}var l=u.slice(-1)[0];if(!p&&l!=="-"){if(e[a+1]&&!/^(-|--)[^-]/.test(e[a+1])&&!r.bools[l]&&(n[l]?!aliasIsBoolean(l):true)){setArg(l,e[a+1],u);a++}else if(e[a+1]&&/^(true|false)$/.test(e[a+1])){setArg(l,e[a+1]==="true",u);a++}else{setArg(l,r.strings[l]?"":true,u)}}}else{if(!r.unknownFn||r.unknownFn(u)!==false){s._.push(r.strings["_"]||!isNumber(u)?u:Number(u))}if(t.stopEarly){s._.push.apply(s._,e.slice(a+1));break}}}Object.keys(i).forEach(function(e){if(!hasKey(s,e.split("."))){setKey(s,e.split("."),i[e]);(n[e]||[]).forEach(function(t){setKey(s,t.split("."),i[e])})}});if(t["--"]){s["--"]=new Array;o.forEach(function(e){s["--"].push(e)})}else{o.forEach(function(e){s._.push(e)})}return s};function hasKey(e,t){var r=e;t.slice(0,-1).forEach(function(e){r=r[e]||{}});var n=t[t.length-1];return n in r}function isNumber(e){if(typeof e==="number")return true;if(/^0x[0-9a-f]+$/i.test(e))return true;return/^[-+]?(?:\d+(?:\.\d*)?|\.\d+)(e[-+]?\d+)?$/.test(e)}},1077:(e,t,r)=>{"use strict";const n=r(8614);const i=r(2413);const s=r(665);const o=r(4304).StringDecoder;const a=Symbol("EOF");const u=Symbol("maybeEmitEnd");const c=Symbol("emittedEnd");const l=Symbol("emittingEnd");const h=Symbol("closed");const f=Symbol("read");const d=Symbol("flush");const p=Symbol("flushChunk");const m=Symbol("encoding");const y=Symbol("decoder");const g=Symbol("flowing");const v=Symbol("paused");const b=Symbol("resume");const w=Symbol("bufferLength");const A=Symbol("bufferPush");const E=Symbol("bufferShift");const _=Symbol("objectMode");const D=Symbol("destroyed");const S=global._MP_NO_ITERATOR_SYMBOLS_!=="1";const C=S&&Symbol.asyncIterator||Symbol("asyncIterator not implemented");const x=S&&Symbol.iterator||Symbol("iterator not implemented");const R=e=>e==="end"||e==="finish"||e==="prefinish";const O=e=>e instanceof ArrayBuffer||typeof e==="object"&&e.constructor&&e.constructor.name==="ArrayBuffer"&&e.byteLength>=0;const F=e=>!Buffer.isBuffer(e)&&ArrayBuffer.isView(e);e.exports=class Minipass extends i{constructor(e){super();this[g]=false;this[v]=false;this.pipes=new s;this.buffer=new s;this[_]=e&&e.objectMode||false;if(this[_])this[m]=null;else this[m]=e&&e.encoding||null;if(this[m]==="buffer")this[m]=null;this[y]=this[m]?new o(this[m]):null;this[a]=false;this[c]=false;this[l]=false;this[h]=false;this.writable=true;this.readable=true;this[w]=0;this[D]=false}get bufferLength(){return this[w]}get encoding(){return this[m]}set encoding(e){if(this[_])throw new Error("cannot set encoding in objectMode");if(this[m]&&e!==this[m]&&(this[y]&&this[y].lastNeed||this[w]))throw new Error("cannot change encoding");if(this[m]!==e){this[y]=e?new o(e):null;if(this.buffer.length)this.buffer=this.buffer.map(e=>this[y].write(e))}this[m]=e}setEncoding(e){this.encoding=e}get objectMode(){return this[_]}set objectMode(e){this[_]=this[_]||!!e}write(e,t,r){if(this[a])throw new Error("write after end");if(this[D]){this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"}));return true}if(typeof t==="function")r=t,t="utf8";if(!t)t="utf8";if(!this[_]&&!Buffer.isBuffer(e)){if(F(e))e=Buffer.from(e.buffer,e.byteOffset,e.byteLength);else if(O(e))e=Buffer.from(e);else if(typeof e!=="string")this.objectMode=true}if(!this.objectMode&&!e.length){const e=this.flowing;if(this[w]!==0)this.emit("readable");if(r)r();return e}if(typeof e==="string"&&!this[_]&&!(t===this[m]&&!this[y].lastNeed)){e=Buffer.from(e,t)}if(Buffer.isBuffer(e)&&this[m])e=this[y].write(e);try{return this.flowing?(this.emit("data",e),this.flowing):(this[A](e),false)}finally{if(this[w]!==0)this.emit("readable");if(r)r()}}read(e){if(this[D])return null;try{if(this[w]===0||e===0||e>this[w])return null;if(this[_])e=null;if(this.buffer.length>1&&!this[_]){if(this.encoding)this.buffer=new s([Array.from(this.buffer).join("")]);else this.buffer=new s([Buffer.concat(Array.from(this.buffer),this[w])])}return this[f](e||null,this.buffer.head.value)}finally{this[u]()}}[f](e,t){if(e===t.length||e===null)this[E]();else{this.buffer.head.value=t.slice(e);t=t.slice(0,e);this[w]-=e}this.emit("data",t);if(!this.buffer.length&&!this[a])this.emit("drain");return t}end(e,t,r){if(typeof e==="function")r=e,e=null;if(typeof t==="function")r=t,t="utf8";if(e)this.write(e,t);if(r)this.once("end",r);this[a]=true;this.writable=false;if(this.flowing||!this[v])this[u]();return this}[b](){if(this[D])return;this[v]=false;this[g]=true;this.emit("resume");if(this.buffer.length)this[d]();else if(this[a])this[u]();else this.emit("drain")}resume(){return this[b]()}pause(){this[g]=false;this[v]=true}get destroyed(){return this[D]}get flowing(){return this[g]}get paused(){return this[v]}[A](e){if(this[_])this[w]+=1;else this[w]+=e.length;return this.buffer.push(e)}[E](){if(this.buffer.length){if(this[_])this[w]-=1;else this[w]-=this.buffer.head.value.length}return this.buffer.shift()}[d](){do{}while(this[p](this[E]()));if(!this.buffer.length&&!this[a])this.emit("drain")}[p](e){return e?(this.emit("data",e),this.flowing):false}pipe(e,t){if(this[D])return;const r=this[c];t=t||{};if(e===process.stdout||e===process.stderr)t.end=false;else t.end=t.end!==false;const n={dest:e,opts:t,ondrain:e=>this[b]()};this.pipes.push(n);e.on("drain",n.ondrain);this[b]();if(r&&n.opts.end)n.dest.end();return e}addListener(e,t){return this.on(e,t)}on(e,t){try{return super.on(e,t)}finally{if(e==="data"&&!this.pipes.length&&!this.flowing)this[b]();else if(R(e)&&this[c]){super.emit(e);this.removeAllListeners(e)}}}get emittedEnd(){return this[c]}[u](){if(!this[l]&&!this[c]&&!this[D]&&this.buffer.length===0&&this[a]){this[l]=true;this.emit("end");this.emit("prefinish");this.emit("finish");if(this[h])this.emit("close");this[l]=false}}emit(e,t){if(e!=="error"&&e!=="close"&&e!==D&&this[D])return;else if(e==="data"){if(!t)return;if(this.pipes.length)this.pipes.forEach(e=>e.dest.write(t)===false&&this.pause())}else if(e==="end"){if(this[c]===true)return;this[c]=true;this.readable=false;if(this[y]){t=this[y].end();if(t){this.pipes.forEach(e=>e.dest.write(t));super.emit("data",t)}}this.pipes.forEach(e=>{e.dest.removeListener("drain",e.ondrain);if(e.opts.end)e.dest.end()})}else if(e==="close"){this[h]=true;if(!this[c]&&!this[D])return}const r=new Array(arguments.length);r[0]=e;r[1]=t;if(arguments.length>2){for(let e=2;e<arguments.length;e++){r[e]=arguments[e]}}try{return super.emit.apply(this,r)}finally{if(!R(e))this[u]();else this.removeAllListeners(e)}}collect(){const e=[];if(!this[_])e.dataLength=0;const t=this.promise();this.on("data",t=>{e.push(t);if(!this[_])e.dataLength+=t.length});return t.then(()=>e)}concat(){return this[_]?Promise.reject(new Error("cannot concat in objectMode")):this.collect().then(e=>this[_]?Promise.reject(new Error("cannot concat in objectMode")):this[m]?e.join(""):Buffer.concat(e,e.dataLength))}promise(){return new Promise((e,t)=>{this.on(D,()=>t(new Error("stream destroyed")));this.on("end",()=>e());this.on("error",e=>t(e))})}[C](){const e=()=>{const e=this.read();if(e!==null)return Promise.resolve({done:false,value:e});if(this[a])return Promise.resolve({done:true});let t=null;let r=null;const n=e=>{this.removeListener("data",i);this.removeListener("end",s);r(e)};const i=e=>{this.removeListener("error",n);this.removeListener("end",s);this.pause();t({value:e,done:!!this[a]})};const s=()=>{this.removeListener("error",n);this.removeListener("data",i);t({done:true})};const o=()=>n(new Error("stream destroyed"));return new Promise((e,a)=>{r=a;t=e;this.once(D,o);this.once("error",n);this.once("end",s);this.once("data",i)})};return{next:e}}[x](){const e=()=>{const e=this.read();const t=e===null;return{value:e,done:t}};return{next:e}}destroy(e){if(this[D]){if(e)this.emit("error",e);else this.emit(D);return this}this[D]=true;this.buffer=new s;this[w]=0;if(typeof this.close==="function"&&!this[h])this.close();if(e)this.emit("error",e);else this.emit(D);return this}static isStream(e){return!!e&&(e instanceof Minipass||e instanceof i||e instanceof n&&(typeof e.pipe==="function"||typeof e.write==="function"&&typeof e.end==="function"))}}},6769:(e,t,r)=>{const n=r(1903).constants||{ZLIB_VERNUM:4736};e.exports=Object.freeze(Object.assign(Object.create(null),{Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_VERSION_ERROR:-6,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,DEFLATE:1,INFLATE:2,GZIP:3,GUNZIP:4,DEFLATERAW:5,INFLATERAW:6,UNZIP:7,BROTLI_DECODE:8,BROTLI_ENCODE:9,Z_MIN_WINDOWBITS:8,Z_MAX_WINDOWBITS:15,Z_DEFAULT_WINDOWBITS:15,Z_MIN_CHUNK:64,Z_MAX_CHUNK:Infinity,Z_DEFAULT_CHUNK:16384,Z_MIN_MEMLEVEL:1,Z_MAX_MEMLEVEL:9,Z_DEFAULT_MEMLEVEL:8,Z_MIN_LEVEL:-1,Z_MAX_LEVEL:9,Z_DEFAULT_LEVEL:-1,BROTLI_OPERATION_PROCESS:0,BROTLI_OPERATION_FLUSH:1,BROTLI_OPERATION_FINISH:2,BROTLI_OPERATION_EMIT_METADATA:3,BROTLI_MODE_GENERIC:0,BROTLI_MODE_TEXT:1,BROTLI_MODE_FONT:2,BROTLI_DEFAULT_MODE:0,BROTLI_MIN_QUALITY:0,BROTLI_MAX_QUALITY:11,BROTLI_DEFAULT_QUALITY:11,BROTLI_MIN_WINDOW_BITS:10,BROTLI_MAX_WINDOW_BITS:24,BROTLI_LARGE_MAX_WINDOW_BITS:30,BROTLI_DEFAULT_WINDOW:22,BROTLI_MIN_INPUT_BLOCK_BITS:16,BROTLI_MAX_INPUT_BLOCK_BITS:24,BROTLI_PARAM_MODE:0,BROTLI_PARAM_QUALITY:1,BROTLI_PARAM_LGWIN:2,BROTLI_PARAM_LGBLOCK:3,BROTLI_PARAM_DISABLE_LITERAL_CONTEXT_MODELING:4,BROTLI_PARAM_SIZE_HINT:5,BROTLI_PARAM_LARGE_WINDOW:6,BROTLI_PARAM_NPOSTFIX:7,BROTLI_PARAM_NDIRECT:8,BROTLI_DECODER_RESULT_ERROR:0,BROTLI_DECODER_RESULT_SUCCESS:1,BROTLI_DECODER_RESULT_NEEDS_MORE_INPUT:2,BROTLI_DECODER_RESULT_NEEDS_MORE_OUTPUT:3,BROTLI_DECODER_PARAM_DISABLE_RING_BUFFER_REALLOCATION:0,BROTLI_DECODER_PARAM_LARGE_WINDOW:1,BROTLI_DECODER_NO_ERROR:0,BROTLI_DECODER_SUCCESS:1,BROTLI_DECODER_NEEDS_MORE_INPUT:2,BROTLI_DECODER_NEEDS_MORE_OUTPUT:3,BROTLI_DECODER_ERROR_FORMAT_EXUBERANT_NIBBLE:-1,BROTLI_DECODER_ERROR_FORMAT_RESERVED:-2,BROTLI_DECODER_ERROR_FORMAT_EXUBERANT_META_NIBBLE:-3,BROTLI_DECODER_ERROR_FORMAT_SIMPLE_HUFFMAN_ALPHABET:-4,BROTLI_DECODER_ERROR_FORMAT_SIMPLE_HUFFMAN_SAME:-5,BROTLI_DECODER_ERROR_FORMAT_CL_SPACE:-6,BROTLI_DECODER_ERROR_FORMAT_HUFFMAN_SPACE:-7,BROTLI_DECODER_ERROR_FORMAT_CONTEXT_MAP_REPEAT:-8,BROTLI_DECODER_ERROR_FORMAT_BLOCK_LENGTH_1:-9,BROTLI_DECODER_ERROR_FORMAT_BLOCK_LENGTH_2:-10,BROTLI_DECODER_ERROR_FORMAT_TRANSFORM:-11,BROTLI_DECODER_ERROR_FORMAT_DICTIONARY:-12,BROTLI_DECODER_ERROR_FORMAT_WINDOW_BITS:-13,BROTLI_DECODER_ERROR_FORMAT_PADDING_1:-14,BROTLI_DECODER_ERROR_FORMAT_PADDING_2:-15,BROTLI_DECODER_ERROR_FORMAT_DISTANCE:-16,BROTLI_DECODER_ERROR_DICTIONARY_NOT_SET:-19,BROTLI_DECODER_ERROR_INVALID_ARGUMENTS:-20,BROTLI_DECODER_ERROR_ALLOC_CONTEXT_MODES:-21,BROTLI_DECODER_ERROR_ALLOC_TREE_GROUPS:-22,BROTLI_DECODER_ERROR_ALLOC_CONTEXT_MAP:-25,BROTLI_DECODER_ERROR_ALLOC_RING_BUFFER_1:-26,BROTLI_DECODER_ERROR_ALLOC_RING_BUFFER_2:-27,BROTLI_DECODER_ERROR_ALLOC_BLOCK_TYPE_TREES:-30,BROTLI_DECODER_ERROR_UNREACHABLE:-31},n))},3486:(e,t,r)=>{"use strict";const n=r(2357);const i=r(4293).Buffer;const s=r(1903);const o=t.constants=r(6769);const a=r(1077);const u=i.concat;const c=Symbol("_superWrite");class ZlibError extends Error{constructor(e){super("zlib: "+e.message);this.code=e.code;this.errno=e.errno;if(!this.code)this.code="ZLIB_ERROR";this.message="zlib: "+e.message;Error.captureStackTrace(this,this.constructor)}get name(){return"ZlibError"}}const l=Symbol("opts");const h=Symbol("flushFlag");const f=Symbol("finishFlushFlag");const d=Symbol("fullFlushFlag");const p=Symbol("handle");const m=Symbol("onError");const y=Symbol("sawError");const g=Symbol("level");const v=Symbol("strategy");const b=Symbol("ended");const w=Symbol("_defaultFullFlush");class ZlibBase extends a{constructor(e,t){if(!e||typeof e!=="object")throw new TypeError("invalid options for ZlibBase constructor");super(e);this[b]=false;this[l]=e;this[h]=e.flush;this[f]=e.finishFlush;try{this[p]=new s[t](e)}catch(e){throw new ZlibError(e)}this[m]=(e=>{this[y]=true;this.close();this.emit("error",e)});this[p].on("error",e=>this[m](new ZlibError(e)));this.once("end",()=>this.close)}close(){if(this[p]){this[p].close();this[p]=null;this.emit("close")}}reset(){if(!this[y]){n(this[p],"zlib binding closed");return this[p].reset()}}flush(e){if(this.ended)return;if(typeof e!=="number")e=this[d];this.write(Object.assign(i.alloc(0),{[h]:e}))}end(e,t,r){if(e)this.write(e,t);this.flush(this[f]);this[b]=true;return super.end(null,null,r)}get ended(){return this[b]}write(e,t,r){if(typeof t==="function")r=t,t="utf8";if(typeof e==="string")e=i.from(e,t);if(this[y])return;n(this[p],"zlib binding closed");const s=this[p]._handle;const o=s.close;s.close=(()=>{});const a=this[p].close;this[p].close=(()=>{});i.concat=(e=>e);let l;try{const t=typeof e[h]==="number"?e[h]:this[h];l=this[p]._processChunk(e,t);i.concat=u}catch(e){i.concat=u;this[m](new ZlibError(e))}finally{if(this[p]){this[p]._handle=s;s.close=o;this[p].close=a;this[p].removeAllListeners("error")}}let f;if(l){if(Array.isArray(l)&&l.length>0){f=this[c](i.from(l[0]));for(let e=1;e<l.length;e++){f=this[c](l[e])}}else{f=this[c](i.from(l))}}if(r)r();return f}[c](e){return super.write(e)}}class Zlib extends ZlibBase{constructor(e,t){e=e||{};e.flush=e.flush||o.Z_NO_FLUSH;e.finishFlush=e.finishFlush||o.Z_FINISH;super(e,t);this[d]=o.Z_FULL_FLUSH;this[g]=e.level;this[v]=e.strategy}params(e,t){if(this[y])return;if(!this[p])throw new Error("cannot switch params when binding is closed");if(!this[p].params)throw new Error("not supported in this implementation");if(this[g]!==e||this[v]!==t){this.flush(o.Z_SYNC_FLUSH);n(this[p],"zlib binding closed");const r=this[p].flush;this[p].flush=((e,t)=>{this.flush(e);t()});try{this[p].params(e,t)}finally{this[p].flush=r}if(this[p]){this[g]=e;this[v]=t}}}}class Deflate extends Zlib{constructor(e){super(e,"Deflate")}}class Inflate extends Zlib{constructor(e){super(e,"Inflate")}}const A=Symbol("_portable");class Gzip extends Zlib{constructor(e){super(e,"Gzip");this[A]=e&&!!e.portable}[c](e){if(!this[A])return super[c](e);this[A]=false;e[9]=255;return super[c](e)}}class Gunzip extends Zlib{constructor(e){super(e,"Gunzip")}}class DeflateRaw extends Zlib{constructor(e){super(e,"DeflateRaw")}}class InflateRaw extends Zlib{constructor(e){super(e,"InflateRaw")}}class Unzip extends Zlib{constructor(e){super(e,"Unzip")}}class Brotli extends ZlibBase{constructor(e,t){e=e||{};e.flush=e.flush||o.BROTLI_OPERATION_PROCESS;e.finishFlush=e.finishFlush||o.BROTLI_OPERATION_FINISH;super(e,t);this[d]=o.BROTLI_OPERATION_FLUSH}}class BrotliCompress extends Brotli{constructor(e){super(e,"BrotliCompress")}}class BrotliDecompress extends Brotli{constructor(e){super(e,"BrotliDecompress")}}t.Deflate=Deflate;t.Inflate=Inflate;t.Gzip=Gzip;t.Gunzip=Gunzip;t.DeflateRaw=DeflateRaw;t.InflateRaw=InflateRaw;t.Unzip=Unzip;if(typeof s.BrotliCompress==="function"){t.BrotliCompress=BrotliCompress;t.BrotliDecompress=BrotliDecompress}else{t.BrotliCompress=t.BrotliDecompress=class{constructor(){throw new Error("Brotli is not supported in this version of Node.js")}}}},3533:(e,t,r)=>{var n=r(2413);e.exports=MuteStream;function MuteStream(e){n.apply(this);e=e||{};this.writable=this.readable=true;this.muted=false;this.on("pipe",this._onpipe);this.replace=e.replace;this._prompt=e.prompt||null;this._hadControl=false}MuteStream.prototype=Object.create(n.prototype);Object.defineProperty(MuteStream.prototype,"constructor",{value:MuteStream,enumerable:false});MuteStream.prototype.mute=function(){this.muted=true};MuteStream.prototype.unmute=function(){this.muted=false};Object.defineProperty(MuteStream.prototype,"_onpipe",{value:onPipe,enumerable:false,writable:true,configurable:true});function onPipe(e){this._src=e}Object.defineProperty(MuteStream.prototype,"isTTY",{get:getIsTTY,set:setIsTTY,enumerable:true,configurable:true});function getIsTTY(){return this._dest?this._dest.isTTY:this._src?this._src.isTTY:false}function setIsTTY(e){Object.defineProperty(this,"isTTY",{value:e,enumerable:true,writable:true,configurable:true})}Object.defineProperty(MuteStream.prototype,"rows",{get:function(){return this._dest?this._dest.rows:this._src?this._src.rows:undefined},enumerable:true,configurable:true});Object.defineProperty(MuteStream.prototype,"columns",{get:function(){return this._dest?this._dest.columns:this._src?this._src.columns:undefined},enumerable:true,configurable:true});MuteStream.prototype.pipe=function(e,t){this._dest=e;return n.prototype.pipe.call(this,e,t)};MuteStream.prototype.pause=function(){if(this._src)return this._src.pause()};MuteStream.prototype.resume=function(){if(this._src)return this._src.resume()};MuteStream.prototype.write=function(e){if(this.muted){if(!this.replace)return true;if(e.match(/^\u001b/)){if(e.indexOf(this._prompt)===0){e=e.substr(this._prompt.length);e=e.replace(/./g,this.replace);e=this._prompt+e}this._hadControl=true;return this.emit("data",e)}else{if(this._prompt&&this._hadControl&&e.indexOf(this._prompt)===0){this._hadControl=false;this.emit("data",this._prompt);e=e.substr(this._prompt.length)}e=e.toString().replace(/./g,this.replace)}}this.emit("data",e)};MuteStream.prototype.end=function(e){if(this.muted){if(e&&this.replace){e=e.toString().replace(/./g,this.replace)}else{e=null}}if(e)this.emit("data",e);this.emit("end")};function proxy(e){return function(){var t=this._dest;var r=this._src;if(t&&t[e])t[e].apply(t,arguments);if(r&&r[e])r[e].apply(r,arguments)}}MuteStream.prototype.destroy=proxy("destroy");MuteStream.prototype.destroySoon=proxy("destroySoon");MuteStream.prototype.close=proxy("close")},8560:e=>{"use strict";e.exports=function(e){try{return e()}catch(e){}}},7952:(e,t,r)=>{"use strict";const n=typeof URL==="undefined"?r(8835).URL:URL;const i="text/plain";const s="us-ascii";const o=(e,t)=>{return t.some(t=>t instanceof RegExp?t.test(e):t===e)};const a=(e,{stripHash:t})=>{const r=e.match(/^data:([^,]*?),([^#]*?)(?:#(.*))?$/);if(!r){throw new Error(`Invalid URL: ${e}`)}const n=r[1].split(";");const o=r[2];const a=t?"":r[3];let u=false;if(n[n.length-1]==="base64"){n.pop();u=true}const c=(n.shift()||"").toLowerCase();const l=n.map(e=>{let[t,r=""]=e.split("=").map(e=>e.trim());if(t==="charset"){r=r.toLowerCase();if(r===s){return""}}return`${t}${r?`=${r}`:""}`}).filter(Boolean);const h=[...l];if(u){h.push("base64")}if(h.length!==0||c&&c!==i){h.unshift(c)}return`data:${h.join(";")},${u?o.trim():o}${a?`#${a}`:""}`};const u=(e,t)=>{t={defaultProtocol:"http:",normalizeProtocol:true,forceHttp:false,forceHttps:false,stripAuthentication:true,stripHash:false,stripWWW:true,removeQueryParameters:[/^utm_\w+/i],removeTrailingSlash:true,removeDirectoryIndex:false,sortQueryParameters:true,...t};if(Reflect.has(t,"normalizeHttps")){throw new Error("options.normalizeHttps is renamed to options.forceHttp")}if(Reflect.has(t,"normalizeHttp")){throw new Error("options.normalizeHttp is renamed to options.forceHttps")}if(Reflect.has(t,"stripFragment")){throw new Error("options.stripFragment is renamed to options.stripHash")}e=e.trim();if(/^data:/i.test(e)){return a(e,t)}const r=e.startsWith("//");const i=!r&&/^\.*\//.test(e);if(!i){e=e.replace(/^(?!(?:\w+:)?\/\/)|^\/\//,t.defaultProtocol)}const s=new n(e);if(t.forceHttp&&t.forceHttps){throw new Error("The `forceHttp` and `forceHttps` options cannot be used together")}if(t.forceHttp&&s.protocol==="https:"){s.protocol="http:"}if(t.forceHttps&&s.protocol==="http:"){s.protocol="https:"}if(t.stripAuthentication){s.username="";s.password=""}if(t.stripHash){s.hash=""}if(s.pathname){s.pathname=s.pathname.replace(/((?!:).|^)\/{2,}/g,(e,t)=>{if(/^(?!\/)/g.test(t)){return`${t}/`}return"/"})}if(s.pathname){s.pathname=decodeURI(s.pathname)}if(t.removeDirectoryIndex===true){t.removeDirectoryIndex=[/^index\.[a-z]+$/]}if(Array.isArray(t.removeDirectoryIndex)&&t.removeDirectoryIndex.length>0){let e=s.pathname.split("/");const r=e[e.length-1];if(o(r,t.removeDirectoryIndex)){e=e.slice(0,e.length-1);s.pathname=e.slice(1).join("/")+"/"}}if(s.hostname){s.hostname=s.hostname.replace(/\.$/,"");if(t.stripWWW&&/^www\.([a-z\-\d]{2,63})\.([a-z.]{2,5})$/.test(s.hostname)){s.hostname=s.hostname.replace(/^www\./,"")}}if(Array.isArray(t.removeQueryParameters)){for(const e of[...s.searchParams.keys()]){if(o(e,t.removeQueryParameters)){s.searchParams.delete(e)}}}if(t.sortQueryParameters){s.searchParams.sort()}if(t.removeTrailingSlash){s.pathname=s.pathname.replace(/\/$/,"")}e=s.toString();if((t.removeTrailingSlash||s.pathname==="/")&&s.hash===""){e=e.replace(/\/$/,"")}if(r&&!t.normalizeProtocol){e=e.replace(/^http:\/\//,"//")}if(t.stripProtocol){e=e.replace(/^(?:https?:)?\/\//,"")}return e};e.exports=u;e.exports.default=u},2695:(e,t,r)=>{"use strict";e.exports=npa;e.exports.resolve=resolve;e.exports.Result=Result;let n;let i;let s;let o;function path(){if(!o)o=r(5622);return o}let a;let u;const c=process.platform==="win32"||global.FAKE_WINDOWS;const l=c?/\\|[/]/:/[/]/;const h=/^(?:git[+])?[a-z]+:/i;const f=/[.](?:tgz|tar.gz|tar)$/i;function npa(e,t){let n;let i;if(typeof e==="object"){if(e instanceof Result&&(!t||t===e.where)){return e}else if(e.name&&e.rawSpec){return npa.resolve(e.name,e.rawSpec,t||e.where)}else{return npa(e.raw,t||e.where)}}const s=e[0]==="@"?e.slice(1).indexOf("@")+1:e.indexOf("@");const o=s>0?e.slice(0,s):e;if(h.test(e)){i=e}else if(o[0]!=="@"&&(l.test(o)||f.test(o))){i=e}else if(s>0){n=o;i=e.slice(s+1)}else{if(!a)a=r(4150);const t=a(e);if(t.validForOldPackages){n=e}else{i=e}}return resolve(n,i,t,e)}const d=c?/^(?:[.]|~[/]|[/\\]|[a-zA-Z]:)/:/^(?:[.]|~[/]|[/]|[a-zA-Z]:)/;function resolve(e,t,n,s){const o=new Result({raw:s,name:e,rawSpec:t,fromArgument:s!=null});if(e)o.setName(e);if(t&&(d.test(t)||/^file:/i.test(t))){return fromFile(o,n)}else if(t&&/^npm:/i.test(t)){return fromAlias(o,n)}if(!i)i=r(8869);const a=i.fromUrl(t,{noGitPlus:true,noCommittish:true});if(a){return fromHostedGit(o,a)}else if(t&&h.test(t)){return fromURL(o)}else if(t&&(l.test(t)||f.test(t))){return fromFile(o,n)}else{return fromRegistry(o)}}function invalidPackageName(e,t){const r=new Error(`Invalid package name "${e}": ${t.errors.join("; ")}`);r.code="EINVALIDPACKAGENAME";return r}function invalidTagName(e){const t=new Error(`Invalid tag name "${e}": Tags may not have any characters that encodeURIComponent encodes.`);t.code="EINVALIDTAGNAME";return t}function Result(e){this.type=e.type;this.registry=e.registry;this.where=e.where;if(e.raw==null){this.raw=e.name?e.name+"@"+e.rawSpec:e.rawSpec}else{this.raw=e.raw}this.name=undefined;this.escapedName=undefined;this.scope=undefined;this.rawSpec=e.rawSpec==null?"":e.rawSpec;this.saveSpec=e.saveSpec;this.fetchSpec=e.fetchSpec;if(e.name)this.setName(e.name);this.gitRange=e.gitRange;this.gitCommittish=e.gitCommittish;this.hosted=e.hosted}Result.prototype.setName=function(e){if(!a)a=r(4150);const t=a(e);if(!t.validForOldPackages){throw invalidPackageName(e,t)}this.name=e;this.scope=e[0]==="@"?e.slice(0,e.indexOf("/")):undefined;this.escapedName=e.replace("/","%2f");return this};Result.prototype.toString=function(){const e=[];if(this.name!=null&&this.name!=="")e.push(this.name);const t=this.saveSpec||this.fetchSpec||this.rawSpec;if(t!=null&&t!=="")e.push(t);return e.length?e.join("@"):this.raw};Result.prototype.toJSON=function(){const e=Object.assign({},this);delete e.hosted;return e};function setGitCommittish(e,t){if(t!=null&&t.length>=7&&t.slice(0,7)==="semver:"){e.gitRange=decodeURIComponent(t.slice(7));e.gitCommittish=null}else{e.gitCommittish=t===""?null:t}return e}const p=/^[/]|^[A-Za-z]:/;function resolvePath(e,t){if(p.test(t))return t;return path().resolve(e,t)}function isAbsolute(e){if(e[0]==="/")return true;if(/^[A-Za-z]:/.test(e))return true;return false}function fromFile(e,t){if(!t)t=process.cwd();e.type=f.test(e.rawSpec)?"file":"directory";e.where=t;const n=e.rawSpec.replace(/\\/g,"/").replace(/^file:[/]*([A-Za-z]:)/,"$1").replace(/^file:(?:[/]*([~./]))?/,"$1");if(/^~[/]/.test(n)){if(!u)u=r(4669);e.fetchSpec=resolvePath(u.home(),n.slice(2));e.saveSpec="file:"+n}else{e.fetchSpec=resolvePath(t,n);if(isAbsolute(n)){e.saveSpec="file:"+n}else{e.saveSpec="file:"+path().relative(t,e.fetchSpec)}}return e}function fromHostedGit(e,t){e.type="git";e.hosted=t;e.saveSpec=t.toString({noGitPlus:false,noCommittish:false});e.fetchSpec=t.getDefaultRepresentation()==="shortcut"?null:t.toString();return setGitCommittish(e,t.committish)}function unsupportedURLType(e,t){const r=new Error(`Unsupported URL Type "${e}": ${t}`);r.code="EUNSUPPORTEDPROTOCOL";return r}function matchGitScp(e){const t=e.match(/^git\+ssh:\/\/([^:#]+:[^#]+(?:\.git)?)(?:#(.*))?$/i);return t&&!t[1].match(/:[0-9]+\/?.*$/i)&&{fetchSpec:t[1],gitCommittish:t[2]==null?null:t[2]}}function fromURL(e){if(!n)n=r(8835);const t=n.parse(e.rawSpec);e.saveSpec=e.rawSpec;switch(t.protocol){case"git:":case"git+http:":case"git+https:":case"git+rsync:":case"git+ftp:":case"git+file:":case"git+ssh:":e.type="git";const r=t.protocol==="git+ssh:"&&matchGitScp(e.rawSpec);if(r){setGitCommittish(e,r.gitCommittish);e.fetchSpec=r.fetchSpec}else{setGitCommittish(e,t.hash!=null?t.hash.slice(1):"");t.protocol=t.protocol.replace(/^git[+]/,"");if(t.protocol==="file:"&&/^git\+file:\/\/[a-z]:/i.test(e.rawSpec)){t.host+=":";t.hostname+=":"}delete t.hash;e.fetchSpec=n.format(t)}break;case"http:":case"https:":e.type="remote";e.fetchSpec=e.saveSpec;break;default:throw unsupportedURLType(t.protocol,e.rawSpec)}return e}function fromAlias(e,t){const r=npa(e.rawSpec.substr(4),t);if(r.type==="alias"){throw new Error("nested aliases not supported")}if(!r.registry){throw new Error("aliases only work for registry deps")}e.subSpec=r;e.registry=true;e.type="alias";e.saveSpec=null;e.fetchSpec=null;return e}function fromRegistry(e){e.registry=true;const t=e.rawSpec===""?"latest":e.rawSpec;e.saveSpec=null;e.fetchSpec=t;if(!s)s=r(5911);const n=s.valid(t,true);const i=s.validRange(t,true);if(n){e.type="version"}else if(i){e.type="range"}else{if(encodeURIComponent(t)!==t){throw invalidTagName(t)}e.type="tag"}return e}},1223:(e,t,r)=>{var n=r(2940);e.exports=n(once);e.exports.strict=n(onceStrict);once.proto=once(function(){Object.defineProperty(Function.prototype,"once",{value:function(){return once(this)},configurable:true});Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return onceStrict(this)},configurable:true})});function once(e){var t=function(){if(t.called)return t.value;t.called=true;return t.value=e.apply(this,arguments)};t.called=false;return t}function onceStrict(e){var t=function(){if(t.called)throw new Error(t.onceError);t.called=true;return t.value=e.apply(this,arguments)};var r=e.name||"Function wrapped with `once`";t.onceError=r+" shouldn't be called more than once";t.called=false;return t}},9082:(e,t,r)=>{"use strict";const n=r(6047);const i=new WeakMap;const s=(e,t={})=>{if(typeof e!=="function"){throw new TypeError("Expected a function")}let r;let s=false;let o=0;const a=e.displayName||e.name||"<anonymous>";const u=function(...n){i.set(u,++o);if(s){if(t.throw===true){throw new Error(`Function \`${a}\` can only be called once`)}return r}s=true;r=e.apply(this,n);e=null;return r};n(u,e);i.set(u,o);return u};e.exports=s;e.exports.default=s;e.exports.callCount=(e=>{if(!i.has(e)){throw new Error(`The given function \`${e.name}\` is not wrapped by the \`onetime\` package`)}return i.get(e)})},970:(e,t,r)=>{"use strict";const n=r(1058);const i=r(7715);const s=r(301);const o=r(2031);const a=r(4911);const u=r(5591);const c=r(5917);const l=r(284);const h=r(3533);const f=Symbol("text");const d=Symbol("prefixText");const p=3;class StdinDiscarder{constructor(){this.requests=0;this.mutedStream=new h;this.mutedStream.pipe(process.stdout);this.mutedStream.mute();const e=this;this.ourEmit=function(t,r,...n){const{stdin:i}=process;if(e.requests>0||i.emit===e.ourEmit){if(t==="keypress"){return}if(t==="data"&&r.includes(p)){process.emit("SIGINT")}Reflect.apply(e.oldEmit,this,[t,r,...n])}else{Reflect.apply(process.stdin.emit,this,[t,r,...n])}}}start(){this.requests++;if(this.requests===1){this.realStart()}}stop(){if(this.requests<=0){throw new Error("`stop` called more times than `start`")}this.requests--;if(this.requests===0){this.realStop()}}realStart(){if(process.platform==="win32"){return}this.rl=n.createInterface({input:process.stdin,output:this.mutedStream});this.rl.on("SIGINT",()=>{if(process.listenerCount("SIGINT")===0){process.emit("SIGINT")}else{this.rl.close();process.kill(process.pid,"SIGINT")}})}realStop(){if(process.platform==="win32"){return}this.rl.close();this.rl=undefined}}const m=new StdinDiscarder;class Ora{constructor(e){if(typeof e==="string"){e={text:e}}this.options={text:"",color:"cyan",stream:process.stderr,discardStdin:true,...e};this.spinner=this.options.spinner;this.color=this.options.color;this.hideCursor=this.options.hideCursor!==false;this.interval=this.options.interval||this.spinner.interval||100;this.stream=this.options.stream;this.id=undefined;this.isEnabled=typeof this.options.isEnabled==="boolean"?this.options.isEnabled:l({stream:this.stream});this.text=this.options.text;this.prefixText=this.options.prefixText;this.linesToClear=0;this.indent=this.options.indent;this.discardStdin=this.options.discardStdin;this.isDiscardingStdin=false}get indent(){return this._indent}set indent(e=0){if(!(e>=0&&Number.isInteger(e))){throw new Error("The `indent` option must be an integer from 0 and up")}this._indent=e}_updateInterval(e){if(e!==undefined){this.interval=e}}get spinner(){return this._spinner}set spinner(e){this.frameIndex=0;if(typeof e==="object"){if(e.frames===undefined){throw new Error("The given spinner must have a `frames` property")}this._spinner=e}else if(process.platform==="win32"){this._spinner=o.line}else if(e===undefined){this._spinner=o.dots}else if(o[e]){this._spinner=o[e]}else{throw new Error(`There is no built-in spinner named '${e}'. See https://github.com/sindresorhus/cli-spinners/blob/master/spinners.json for a full list.`)}this._updateInterval(this._spinner.interval)}get text(){return this[f]}get prefixText(){return this[d]}get isSpinning(){return this.id!==undefined}updateLineCount(){const e=this.stream.columns||80;const t=typeof this[d]==="string"?this[d]+"-":"";this.lineCount=u(t+"--"+this[f]).split("\n").reduce((t,r)=>{return t+Math.max(1,Math.ceil(c(r)/e))},0)}set text(e){this[f]=e;this.updateLineCount()}set prefixText(e){this[d]=e;this.updateLineCount()}frame(){const{frames:e}=this.spinner;let t=e[this.frameIndex];if(this.color){t=i[this.color](t)}this.frameIndex=++this.frameIndex%e.length;const r=typeof this.prefixText==="string"&&this.prefixText!==""?this.prefixText+" ":"";const n=typeof this.text==="string"?" "+this.text:"";return r+t+n}clear(){if(!this.isEnabled||!this.stream.isTTY){return this}for(let e=0;e<this.linesToClear;e++){if(e>0){this.stream.moveCursor(0,-1)}this.stream.clearLine();this.stream.cursorTo(this.indent)}this.linesToClear=0;return this}render(){this.clear();this.stream.write(this.frame());this.linesToClear=this.lineCount;return this}start(e){if(e){this.text=e}if(!this.isEnabled){this.stream.write(`- ${this.text}\n`);return this}if(this.isSpinning){return this}if(this.hideCursor){s.hide(this.stream)}if(this.discardStdin&&process.stdin.isTTY){this.isDiscardingStdin=true;m.start()}this.render();this.id=setInterval(this.render.bind(this),this.interval);return this}stop(){if(!this.isEnabled){return this}clearInterval(this.id);this.id=undefined;this.frameIndex=0;this.clear();if(this.hideCursor){s.show(this.stream)}if(this.discardStdin&&process.stdin.isTTY&&this.isDiscardingStdin){m.stop();this.isDiscardingStdin=false}return this}succeed(e){return this.stopAndPersist({symbol:a.success,text:e})}fail(e){return this.stopAndPersist({symbol:a.error,text:e})}warn(e){return this.stopAndPersist({symbol:a.warning,text:e})}info(e){return this.stopAndPersist({symbol:a.info,text:e})}stopAndPersist(e={}){const t=e.prefixText||this.prefixText;const r=typeof t==="string"&&t!==""?t+" ":"";const n=e.text||this.text;const i=typeof n==="string"?" "+n:"";this.stop();this.stream.write(`${r}${e.symbol||" "}${i}\n`);return this}}const y=function(e){return new Ora(e)};e.exports=y;e.exports.promise=((e,t)=>{if(typeof e.then!=="function"){throw new TypeError("Parameter `action` must be a Promise")}const r=new Ora(t);r.start();(async()=>{try{await e;r.succeed()}catch(e){r.fail()}})();return r})},7715:(e,t,r)=>{"use strict";const n=r(2068);const{stdout:i,stderr:s}=r(9318);const{stringReplaceAll:o,stringEncaseCRLFWithFirstIndex:a}=r(7436);const u=["ansi","ansi","ansi256","ansi16m"];const c=Object.create(null);const l=(e,t={})=>{if(t.level>3||t.level<0){throw new Error("The `level` option should be an integer from 0 to 3")}const r=i?i.level:0;e.level=t.level===undefined?r:t.level};class ChalkClass{constructor(e){return h(e)}}const h=e=>{const t={};l(t,e);t.template=((...e)=>v(t.template,...e));Object.setPrototypeOf(t,Chalk.prototype);Object.setPrototypeOf(t.template,t);t.template.constructor=(()=>{throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.")});t.template.Instance=ChalkClass;return t.template};function Chalk(e){return h(e)}for(const[e,t]of Object.entries(n)){c[e]={get(){const r=m(this,p(t.open,t.close,this._styler),this._isEmpty);Object.defineProperty(this,e,{value:r});return r}}}c.visible={get(){const e=m(this,this._styler,true);Object.defineProperty(this,"visible",{value:e});return e}};const f=["rgb","hex","keyword","hsl","hsv","hwb","ansi","ansi256"];for(const e of f){c[e]={get(){const{level:t}=this;return function(...r){const i=p(n.color[u[t]][e](...r),n.color.close,this._styler);return m(this,i,this._isEmpty)}}}}for(const e of f){const t="bg"+e[0].toUpperCase()+e.slice(1);c[t]={get(){const{level:t}=this;return function(...r){const i=p(n.bgColor[u[t]][e](...r),n.bgColor.close,this._styler);return m(this,i,this._isEmpty)}}}}const d=Object.defineProperties(()=>{},{...c,level:{enumerable:true,get(){return this._generator.level},set(e){this._generator.level=e}}});const p=(e,t,r)=>{let n;let i;if(r===undefined){n=e;i=t}else{n=r.openAll+e;i=t+r.closeAll}return{open:e,close:t,openAll:n,closeAll:i,parent:r}};const m=(e,t,r)=>{const n=(...e)=>{return y(n,e.length===1?""+e[0]:e.join(" "))};n.__proto__=d;n._generator=e;n._styler=t;n._isEmpty=r;return n};const y=(e,t)=>{if(e.level<=0||!t){return e._isEmpty?"":t}let r=e._styler;if(r===undefined){return t}const{openAll:n,closeAll:i}=r;if(t.indexOf("")!==-1){while(r!==undefined){t=o(t,r.close,r.open);r=r.parent}}const s=t.indexOf("\n");if(s!==-1){t=a(t,i,n,s)}return n+t+i};let g;const v=(e,...t)=>{const[n]=t;if(!Array.isArray(n)){return t.join(" ")}const i=t.slice(1);const s=[n.raw[0]];for(let e=1;e<n.length;e++){s.push(String(i[e-1]).replace(/[{}\\]/g,"\\$&"),String(n.raw[e]))}if(g===undefined){g=r(939)}return g(e,s.join(""))};Object.defineProperties(Chalk.prototype,c);const b=Chalk();b.supportsColor=i;b.stderr=Chalk({level:s?s.level:0});b.stderr.supportsColor=s;b.Level={None:0,Basic:1,Ansi256:2,TrueColor:3,0:"None",1:"Basic",2:"Ansi256",3:"TrueColor"};e.exports=b},939:e=>{"use strict";const t=/(?:\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi;const r=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g;const n=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/;const i=/\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.)|([^\\])/gi;const s=new Map([["n","\n"],["r","\r"],["t","\t"],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e",""],["a",""]]);function unescape(e){const t=e[0]==="u";const r=e[1]==="{";if(t&&!r&&e.length===5||e[0]==="x"&&e.length===3){return String.fromCharCode(parseInt(e.slice(1),16))}if(t&&r){return String.fromCodePoint(parseInt(e.slice(2,-1),16))}return s.get(e)||e}function parseArguments(e,t){const r=[];const s=t.trim().split(/\s*,\s*/g);let o;for(const t of s){const s=Number(t);if(!Number.isNaN(s)){r.push(s)}else if(o=t.match(n)){r.push(o[2].replace(i,(e,t,r)=>t?unescape(t):r))}else{throw new Error(`Invalid Chalk template style argument: ${t} (in style '${e}')`)}}return r}function parseStyle(e){r.lastIndex=0;const t=[];let n;while((n=r.exec(e))!==null){const e=n[1];if(n[2]){const r=parseArguments(e,n[2]);t.push([e].concat(r))}else{t.push([e])}}return t}function buildStyle(e,t){const r={};for(const e of t){for(const t of e.styles){r[t[0]]=e.inverse?null:t.slice(1)}}let n=e;for(const[e,t]of Object.entries(r)){if(!Array.isArray(t)){continue}if(!(e in n)){throw new Error(`Unknown Chalk style: ${e}`)}n=t.length>0?n[e](...t):n[e]}return n}e.exports=((e,r)=>{const n=[];const i=[];let s=[];r.replace(t,(t,r,o,a,u,c)=>{if(r){s.push(unescape(r))}else if(a){const t=s.join("");s=[];i.push(n.length===0?t:buildStyle(e,n)(t));n.push({inverse:o,styles:parseStyle(a)})}else if(u){if(n.length===0){throw new Error("Found extraneous } in Chalk template literal")}i.push(buildStyle(e,n)(s.join("")));s=[];n.pop()}else{s.push(c)}});i.push(s.join(""));if(n.length>0){const e=`Chalk template literal is missing ${n.length} closing bracket${n.length===1?"":"s"} (\`}\`)`;throw new Error(e)}return i.join("")})},7436:e=>{"use strict";const t=(e,t,r)=>{let n=e.indexOf(t);if(n===-1){return e}const i=t.length;let s=0;let o="";do{o+=e.substr(s,n-s)+t+r;s=n+i;n=e.indexOf(t,s)}while(n!==-1);o+=e.substr(s);return o};const r=(e,t,r,n)=>{let i=0;let s="";do{const o=e[n-1]==="\r";s+=e.substr(i,(o?n-1:n)-i)+t+(o?"\r\n":"\n")+r;i=n+1;n=e.indexOf("\n",i)}while(n!==-1);s+=e.substr(i);return s};e.exports={stringReplaceAll:t,stringEncaseCRLFWithFirstIndex:r}},301:(e,t,r)=>{"use strict";const n=r(6547);let i=false;t.show=((e=process.stderr)=>{if(!e.isTTY){return}i=false;e.write("[?25h")});t.hide=((e=process.stderr)=>{if(!e.isTTY){return}n();i=true;e.write("[?25l")});t.toggle=((e,r)=>{if(e!==undefined){i=e}if(i){t.show(r)}else{t.hide(r)}})},9289:(e,t,r)=>{var n=r(8510);var i={};for(var s in n){if(n.hasOwnProperty(s)){i[n[s]]=s}}var o=e.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(var a in o){if(o.hasOwnProperty(a)){if(!("channels"in o[a])){throw new Error("missing channels property: "+a)}if(!("labels"in o[a])){throw new Error("missing channel labels property: "+a)}if(o[a].labels.length!==o[a].channels){throw new Error("channel and label counts mismatch: "+a)}var u=o[a].channels;var c=o[a].labels;delete o[a].channels;delete o[a].labels;Object.defineProperty(o[a],"channels",{value:u});Object.defineProperty(o[a],"labels",{value:c})}}o.rgb.hsl=function(e){var t=e[0]/255;var r=e[1]/255;var n=e[2]/255;var i=Math.min(t,r,n);var s=Math.max(t,r,n);var o=s-i;var a;var u;var c;if(s===i){a=0}else if(t===s){a=(r-n)/o}else if(r===s){a=2+(n-t)/o}else if(n===s){a=4+(t-r)/o}a=Math.min(a*60,360);if(a<0){a+=360}c=(i+s)/2;if(s===i){u=0}else if(c<=.5){u=o/(s+i)}else{u=o/(2-s-i)}return[a,u*100,c*100]};o.rgb.hsv=function(e){var t=e[0];var r=e[1];var n=e[2];var i=Math.min(t,r,n);var s=Math.max(t,r,n);var o=s-i;var a;var u;var c;if(s===0){u=0}else{u=o/s*1e3/10}if(s===i){a=0}else if(t===s){a=(r-n)/o}else if(r===s){a=2+(n-t)/o}else if(n===s){a=4+(t-r)/o}a=Math.min(a*60,360);if(a<0){a+=360}c=s/255*1e3/10;return[a,u,c]};o.rgb.hwb=function(e){var t=e[0];var r=e[1];var n=e[2];var i=o.rgb.hsl(e)[0];var s=1/255*Math.min(t,Math.min(r,n));n=1-1/255*Math.max(t,Math.max(r,n));return[i,s*100,n*100]};o.rgb.cmyk=function(e){var t=e[0]/255;var r=e[1]/255;var n=e[2]/255;var i;var s;var o;var a;a=Math.min(1-t,1-r,1-n);i=(1-t-a)/(1-a)||0;s=(1-r-a)/(1-a)||0;o=(1-n-a)/(1-a)||0;return[i*100,s*100,o*100,a*100]};function comparativeDistance(e,t){return Math.pow(e[0]-t[0],2)+Math.pow(e[1]-t[1],2)+Math.pow(e[2]-t[2],2)}o.rgb.keyword=function(e){var t=i[e];if(t){return t}var r=Infinity;var s;for(var o in n){if(n.hasOwnProperty(o)){var a=n[o];var u=comparativeDistance(e,a);if(u<r){r=u;s=o}}}return s};o.keyword.rgb=function(e){return n[e]};o.rgb.xyz=function(e){var t=e[0]/255;var r=e[1]/255;var n=e[2]/255;t=t>.04045?Math.pow((t+.055)/1.055,2.4):t/12.92;r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92;n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92;var i=t*.4124+r*.3576+n*.1805;var s=t*.2126+r*.7152+n*.0722;var o=t*.0193+r*.1192+n*.9505;return[i*100,s*100,o*100]};o.rgb.lab=function(e){var t=o.rgb.xyz(e);var r=t[0];var n=t[1];var i=t[2];var s;var a;var u;r/=95.047;n/=100;i/=108.883;r=r>.008856?Math.pow(r,1/3):7.787*r+16/116;n=n>.008856?Math.pow(n,1/3):7.787*n+16/116;i=i>.008856?Math.pow(i,1/3):7.787*i+16/116;s=116*n-16;a=500*(r-n);u=200*(n-i);return[s,a,u]};o.hsl.rgb=function(e){var t=e[0]/360;var r=e[1]/100;var n=e[2]/100;var i;var s;var o;var a;var u;if(r===0){u=n*255;return[u,u,u]}if(n<.5){s=n*(1+r)}else{s=n+r-n*r}i=2*n-s;a=[0,0,0];for(var c=0;c<3;c++){o=t+1/3*-(c-1);if(o<0){o++}if(o>1){o--}if(6*o<1){u=i+(s-i)*6*o}else if(2*o<1){u=s}else if(3*o<2){u=i+(s-i)*(2/3-o)*6}else{u=i}a[c]=u*255}return a};o.hsl.hsv=function(e){var t=e[0];var r=e[1]/100;var n=e[2]/100;var i=r;var s=Math.max(n,.01);var o;var a;n*=2;r*=n<=1?n:2-n;i*=s<=1?s:2-s;a=(n+r)/2;o=n===0?2*i/(s+i):2*r/(n+r);return[t,o*100,a*100]};o.hsv.rgb=function(e){var t=e[0]/60;var r=e[1]/100;var n=e[2]/100;var i=Math.floor(t)%6;var s=t-Math.floor(t);var o=255*n*(1-r);var a=255*n*(1-r*s);var u=255*n*(1-r*(1-s));n*=255;switch(i){case 0:return[n,u,o];case 1:return[a,n,o];case 2:return[o,n,u];case 3:return[o,a,n];case 4:return[u,o,n];case 5:return[n,o,a]}};o.hsv.hsl=function(e){var t=e[0];var r=e[1]/100;var n=e[2]/100;var i=Math.max(n,.01);var s;var o;var a;a=(2-r)*n;s=(2-r)*i;o=r*i;o/=s<=1?s:2-s;o=o||0;a/=2;return[t,o*100,a*100]};o.hwb.rgb=function(e){var t=e[0]/360;var r=e[1]/100;var n=e[2]/100;var i=r+n;var s;var o;var a;var u;if(i>1){r/=i;n/=i}s=Math.floor(6*t);o=1-n;a=6*t-s;if((s&1)!==0){a=1-a}u=r+a*(o-r);var c;var l;var h;switch(s){default:case 6:case 0:c=o;l=u;h=r;break;case 1:c=u;l=o;h=r;break;case 2:c=r;l=o;h=u;break;case 3:c=r;l=u;h=o;break;case 4:c=u;l=r;h=o;break;case 5:c=o;l=r;h=u;break}return[c*255,l*255,h*255]};o.cmyk.rgb=function(e){var t=e[0]/100;var r=e[1]/100;var n=e[2]/100;var i=e[3]/100;var s;var o;var a;s=1-Math.min(1,t*(1-i)+i);o=1-Math.min(1,r*(1-i)+i);a=1-Math.min(1,n*(1-i)+i);return[s*255,o*255,a*255]};o.xyz.rgb=function(e){var t=e[0]/100;var r=e[1]/100;var n=e[2]/100;var i;var s;var o;i=t*3.2406+r*-1.5372+n*-.4986;s=t*-.9689+r*1.8758+n*.0415;o=t*.0557+r*-.204+n*1.057;i=i>.0031308?1.055*Math.pow(i,1/2.4)-.055:i*12.92;s=s>.0031308?1.055*Math.pow(s,1/2.4)-.055:s*12.92;o=o>.0031308?1.055*Math.pow(o,1/2.4)-.055:o*12.92;i=Math.min(Math.max(0,i),1);s=Math.min(Math.max(0,s),1);o=Math.min(Math.max(0,o),1);return[i*255,s*255,o*255]};o.xyz.lab=function(e){var t=e[0];var r=e[1];var n=e[2];var i;var s;var o;t/=95.047;r/=100;n/=108.883;t=t>.008856?Math.pow(t,1/3):7.787*t+16/116;r=r>.008856?Math.pow(r,1/3):7.787*r+16/116;n=n>.008856?Math.pow(n,1/3):7.787*n+16/116;i=116*r-16;s=500*(t-r);o=200*(r-n);return[i,s,o]};o.lab.xyz=function(e){var t=e[0];var r=e[1];var n=e[2];var i;var s;var o;s=(t+16)/116;i=r/500+s;o=s-n/200;var a=Math.pow(s,3);var u=Math.pow(i,3);var c=Math.pow(o,3);s=a>.008856?a:(s-16/116)/7.787;i=u>.008856?u:(i-16/116)/7.787;o=c>.008856?c:(o-16/116)/7.787;i*=95.047;s*=100;o*=108.883;return[i,s,o]};o.lab.lch=function(e){var t=e[0];var r=e[1];var n=e[2];var i;var s;var o;i=Math.atan2(n,r);s=i*360/2/Math.PI;if(s<0){s+=360}o=Math.sqrt(r*r+n*n);return[t,o,s]};o.lch.lab=function(e){var t=e[0];var r=e[1];var n=e[2];var i;var s;var o;o=n/360*2*Math.PI;i=r*Math.cos(o);s=r*Math.sin(o);return[t,i,s]};o.rgb.ansi16=function(e){var t=e[0];var r=e[1];var n=e[2];var i=1 in arguments?arguments[1]:o.rgb.hsv(e)[2];i=Math.round(i/50);if(i===0){return 30}var s=30+(Math.round(n/255)<<2|Math.round(r/255)<<1|Math.round(t/255));if(i===2){s+=60}return s};o.hsv.ansi16=function(e){return o.rgb.ansi16(o.hsv.rgb(e),e[2])};o.rgb.ansi256=function(e){var t=e[0];var r=e[1];var n=e[2];if(t===r&&r===n){if(t<8){return 16}if(t>248){return 231}return Math.round((t-8)/247*24)+232}var i=16+36*Math.round(t/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5);return i};o.ansi16.rgb=function(e){var t=e%10;if(t===0||t===7){if(e>50){t+=3.5}t=t/10.5*255;return[t,t,t]}var r=(~~(e>50)+1)*.5;var n=(t&1)*r*255;var i=(t>>1&1)*r*255;var s=(t>>2&1)*r*255;return[n,i,s]};o.ansi256.rgb=function(e){if(e>=232){var t=(e-232)*10+8;return[t,t,t]}e-=16;var r;var n=Math.floor(e/36)/5*255;var i=Math.floor((r=e%36)/6)/5*255;var s=r%6/5*255;return[n,i,s]};o.rgb.hex=function(e){var t=((Math.round(e[0])&255)<<16)+((Math.round(e[1])&255)<<8)+(Math.round(e[2])&255);var r=t.toString(16).toUpperCase();return"000000".substring(r.length)+r};o.hex.rgb=function(e){var t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t){return[0,0,0]}var r=t[0];if(t[0].length===3){r=r.split("").map(function(e){return e+e}).join("")}var n=parseInt(r,16);var i=n>>16&255;var s=n>>8&255;var o=n&255;return[i,s,o]};o.rgb.hcg=function(e){var t=e[0]/255;var r=e[1]/255;var n=e[2]/255;var i=Math.max(Math.max(t,r),n);var s=Math.min(Math.min(t,r),n);var o=i-s;var a;var u;if(o<1){a=s/(1-o)}else{a=0}if(o<=0){u=0}else if(i===t){u=(r-n)/o%6}else if(i===r){u=2+(n-t)/o}else{u=4+(t-r)/o+4}u/=6;u%=1;return[u*360,o*100,a*100]};o.hsl.hcg=function(e){var t=e[1]/100;var r=e[2]/100;var n=1;var i=0;if(r<.5){n=2*t*r}else{n=2*t*(1-r)}if(n<1){i=(r-.5*n)/(1-n)}return[e[0],n*100,i*100]};o.hsv.hcg=function(e){var t=e[1]/100;var r=e[2]/100;var n=t*r;var i=0;if(n<1){i=(r-n)/(1-n)}return[e[0],n*100,i*100]};o.hcg.rgb=function(e){var t=e[0]/360;var r=e[1]/100;var n=e[2]/100;if(r===0){return[n*255,n*255,n*255]}var i=[0,0,0];var s=t%1*6;var o=s%1;var a=1-o;var u=0;switch(Math.floor(s)){case 0:i[0]=1;i[1]=o;i[2]=0;break;case 1:i[0]=a;i[1]=1;i[2]=0;break;case 2:i[0]=0;i[1]=1;i[2]=o;break;case 3:i[0]=0;i[1]=a;i[2]=1;break;case 4:i[0]=o;i[1]=0;i[2]=1;break;default:i[0]=1;i[1]=0;i[2]=a}u=(1-r)*n;return[(r*i[0]+u)*255,(r*i[1]+u)*255,(r*i[2]+u)*255]};o.hcg.hsv=function(e){var t=e[1]/100;var r=e[2]/100;var n=t+r*(1-t);var i=0;if(n>0){i=t/n}return[e[0],i*100,n*100]};o.hcg.hsl=function(e){var t=e[1]/100;var r=e[2]/100;var n=r*(1-t)+.5*t;var i=0;if(n>0&&n<.5){i=t/(2*n)}else if(n>=.5&&n<1){i=t/(2*(1-n))}return[e[0],i*100,n*100]};o.hcg.hwb=function(e){var t=e[1]/100;var r=e[2]/100;var n=t+r*(1-t);return[e[0],(n-t)*100,(1-n)*100]};o.hwb.hcg=function(e){var t=e[1]/100;var r=e[2]/100;var n=1-r;var i=n-t;var s=0;if(i<1){s=(n-i)/(1-i)}return[e[0],i*100,s*100]};o.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]};o.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]};o.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]};o.gray.hsl=o.gray.hsv=function(e){return[0,0,e[0]]};o.gray.hwb=function(e){return[0,100,e[0]]};o.gray.cmyk=function(e){return[0,0,0,e[0]]};o.gray.lab=function(e){return[e[0],0,0]};o.gray.hex=function(e){var t=Math.round(e[0]/100*255)&255;var r=(t<<16)+(t<<8)+t;var n=r.toString(16).toUpperCase();return"000000".substring(n.length)+n};o.rgb.gray=function(e){var t=(e[0]+e[1]+e[2])/3;return[t/255*100]}},2414:(e,t,r)=>{var n=r(9289);var i=r(1500);var s={};var o=Object.keys(n);function wrapRaw(e){var t=function(t){if(t===undefined||t===null){return t}if(arguments.length>1){t=Array.prototype.slice.call(arguments)}return e(t)};if("conversion"in e){t.conversion=e.conversion}return t}function wrapRounded(e){var t=function(t){if(t===undefined||t===null){return t}if(arguments.length>1){t=Array.prototype.slice.call(arguments)}var r=e(t);if(typeof r==="object"){for(var n=r.length,i=0;i<n;i++){r[i]=Math.round(r[i])}}return r};if("conversion"in e){t.conversion=e.conversion}return t}o.forEach(function(e){s[e]={};Object.defineProperty(s[e],"channels",{value:n[e].channels});Object.defineProperty(s[e],"labels",{value:n[e].labels});var t=i(e);var r=Object.keys(t);r.forEach(function(r){var n=t[r];s[e][r]=wrapRounded(n);s[e][r].raw=wrapRaw(n)})});e.exports=s},1500:(e,t,r)=>{var n=r(9289);var i=Object.keys(n);function buildGraph(){var e={};for(var t=i.length,r=0;r<t;r++){e[i[r]]={distance:-1,parent:null}}return e}function deriveBFS(e){var t=buildGraph();var r=[e];t[e].distance=0;while(r.length){var i=r.pop();var s=Object.keys(n[i]);for(var o=s.length,a=0;a<o;a++){var u=s[a];var c=t[u];if(c.distance===-1){c.distance=t[i].distance+1;c.parent=i;r.unshift(u)}}}return t}function link(e,t){return function(r){return t(e(r))}}function wrapConversion(e,t){var r=[t[e].parent,e];var i=n[t[e].parent][e];var s=t[e].parent;while(t[s].parent){r.unshift(t[s].parent);i=link(n[t[s].parent][s],i);s=t[s].parent}i.conversion=r;return i}e.exports=function(e){var t=deriveBFS(e);var r={};var n=Object.keys(t);for(var i=n.length,s=0;s<i;s++){var o=n[s];var a=t[o];if(a.parent===null){continue}r[o]=wrapConversion(o,t)}return r}},5150:e=>{"use strict";e.exports=((e,t)=>{t=t||process.argv;const r=e.startsWith("-")?"":e.length===1?"-":"--";const n=t.indexOf(r+e);const i=t.indexOf("--");return n!==-1&&(i===-1?true:n<i)})},4911:(e,t,r)=>{"use strict";const n=r(4034);const i=process.platform!=="win32"||process.env.CI||process.env.TERM==="xterm-256color";const s={info:n.blue("ℹ"),success:n.green("✔"),warning:n.yellow("⚠"),error:n.red("✖")};const o={info:n.blue("i"),success:n.green("√"),warning:n.yellow("‼"),error:n.red("×")};e.exports=i?s:o},2593:(e,t,r)=>{"use strict";e=r.nmd(e);const n=r(2414);const i=(e,t)=>(function(){const r=e.apply(n,arguments);return`[${r+t}m`});const s=(e,t)=>(function(){const r=e.apply(n,arguments);return`[${38+t};5;${r}m`});const o=(e,t)=>(function(){const r=e.apply(n,arguments);return`[${38+t};2;${r[0]};${r[1]};${r[2]}m`});function assembleStyles(){const e=new Map;const t={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};t.color.grey=t.color.gray;for(const r of Object.keys(t)){const n=t[r];for(const r of Object.keys(n)){const i=n[r];t[r]={open:`[${i[0]}m`,close:`[${i[1]}m`};n[r]=t[r];e.set(i[0],i[1])}Object.defineProperty(t,r,{value:n,enumerable:false});Object.defineProperty(t,"codes",{value:e,enumerable:false})}const r=e=>e;const a=(e,t,r)=>[e,t,r];t.color.close="";t.bgColor.close="";t.color.ansi={ansi:i(r,0)};t.color.ansi256={ansi256:s(r,0)};t.color.ansi16m={rgb:o(a,0)};t.bgColor.ansi={ansi:i(r,10)};t.bgColor.ansi256={ansi256:s(r,10)};t.bgColor.ansi16m={rgb:o(a,10)};for(let e of Object.keys(n)){if(typeof n[e]!=="object"){continue}const r=n[e];if(e==="ansi16"){e="ansi"}if("ansi16"in r){t.color.ansi[e]=i(r.ansi16,0);t.bgColor.ansi[e]=i(r.ansi16,10)}if("ansi256"in r){t.color.ansi256[e]=s(r.ansi256,0);t.bgColor.ansi256[e]=s(r.ansi256,10)}if("rgb"in r){t.color.ansi16m[e]=o(r.rgb,0);t.bgColor.ansi16m[e]=o(r.rgb,10)}}return t}Object.defineProperty(e,"exports",{enumerable:true,get:assembleStyles})},4034:(e,t,r)=>{"use strict";const n=r(8691);const i=r(2593);const s=r(6520).stdout;const o=r(6142);const a=process.platform==="win32"&&!(process.env.TERM||"").toLowerCase().startsWith("xterm");const u=["ansi","ansi","ansi256","ansi16m"];const c=new Set(["gray"]);const l=Object.create(null);function applyOptions(e,t){t=t||{};const r=s?s.level:0;e.level=t.level===undefined?r:t.level;e.enabled="enabled"in t?t.enabled:e.level>0}function Chalk(e){if(!this||!(this instanceof Chalk)||this.template){const t={};applyOptions(t,e);t.template=function(){const e=[].slice.call(arguments);return chalkTag.apply(null,[t.template].concat(e))};Object.setPrototypeOf(t,Chalk.prototype);Object.setPrototypeOf(t.template,t);t.template.constructor=Chalk;return t.template}applyOptions(this,e)}if(a){i.blue.open=""}for(const e of Object.keys(i)){i[e].closeRe=new RegExp(n(i[e].close),"g");l[e]={get(){const t=i[e];return build.call(this,this._styles?this._styles.concat(t):[t],this._empty,e)}}}l.visible={get(){return build.call(this,this._styles||[],true,"visible")}};i.color.closeRe=new RegExp(n(i.color.close),"g");for(const e of Object.keys(i.color.ansi)){if(c.has(e)){continue}l[e]={get(){const t=this.level;return function(){const r=i.color[u[t]][e].apply(null,arguments);const n={open:r,close:i.color.close,closeRe:i.color.closeRe};return build.call(this,this._styles?this._styles.concat(n):[n],this._empty,e)}}}}i.bgColor.closeRe=new RegExp(n(i.bgColor.close),"g");for(const e of Object.keys(i.bgColor.ansi)){if(c.has(e)){continue}const t="bg"+e[0].toUpperCase()+e.slice(1);l[t]={get(){const t=this.level;return function(){const r=i.bgColor[u[t]][e].apply(null,arguments);const n={open:r,close:i.bgColor.close,closeRe:i.bgColor.closeRe};return build.call(this,this._styles?this._styles.concat(n):[n],this._empty,e)}}}}const h=Object.defineProperties(()=>{},l);function build(e,t,r){const n=function(){return applyStyle.apply(n,arguments)};n._styles=e;n._empty=t;const i=this;Object.defineProperty(n,"level",{enumerable:true,get(){return i.level},set(e){i.level=e}});Object.defineProperty(n,"enabled",{enumerable:true,get(){return i.enabled},set(e){i.enabled=e}});n.hasGrey=this.hasGrey||r==="gray"||r==="grey";n.__proto__=h;return n}function applyStyle(){const e=arguments;const t=e.length;let r=String(arguments[0]);if(t===0){return""}if(t>1){for(let n=1;n<t;n++){r+=" "+e[n]}}if(!this.enabled||this.level<=0||!r){return this._empty?"":r}const n=i.dim.open;if(a&&this.hasGrey){i.dim.open=""}for(const e of this._styles.slice().reverse()){r=e.open+r.replace(e.closeRe,e.open)+e.close;r=r.replace(/\r?\n/g,`${e.close}$&${e.open}`)}i.dim.open=n;return r}function chalkTag(e,t){if(!Array.isArray(t)){return[].slice.call(arguments,1).join(" ")}const r=[].slice.call(arguments,2);const n=[t.raw[0]];for(let e=1;e<t.length;e++){n.push(String(r[e-1]).replace(/[{}\\]/g,"\\$&"));n.push(String(t.raw[e]))}return o(e,n.join(""))}Object.defineProperties(Chalk.prototype,l);e.exports=Chalk();e.exports.supportsColor=s;e.exports.default=e.exports},6142:e=>{"use strict";const t=/(?:\\(u[a-f\d]{4}|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi;const r=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g;const n=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/;const i=/\\(u[a-f\d]{4}|x[a-f\d]{2}|.)|([^\\])/gi;const s=new Map([["n","\n"],["r","\r"],["t","\t"],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e",""],["a",""]]);function unescape(e){if(e[0]==="u"&&e.length===5||e[0]==="x"&&e.length===3){return String.fromCharCode(parseInt(e.slice(1),16))}return s.get(e)||e}function parseArguments(e,t){const r=[];const s=t.trim().split(/\s*,\s*/g);let o;for(const t of s){if(!isNaN(t)){r.push(Number(t))}else if(o=t.match(n)){r.push(o[2].replace(i,(e,t,r)=>t?unescape(t):r))}else{throw new Error(`Invalid Chalk template style argument: ${t} (in style '${e}')`)}}return r}function parseStyle(e){r.lastIndex=0;const t=[];let n;while((n=r.exec(e))!==null){const e=n[1];if(n[2]){const r=parseArguments(e,n[2]);t.push([e].concat(r))}else{t.push([e])}}return t}function buildStyle(e,t){const r={};for(const e of t){for(const t of e.styles){r[t[0]]=e.inverse?null:t.slice(1)}}let n=e;for(const e of Object.keys(r)){if(Array.isArray(r[e])){if(!(e in n)){throw new Error(`Unknown Chalk style: ${e}`)}if(r[e].length>0){n=n[e].apply(n,r[e])}else{n=n[e]}}}return n}e.exports=((e,r)=>{const n=[];const i=[];let s=[];r.replace(t,(t,r,o,a,u,c)=>{if(r){s.push(unescape(r))}else if(a){const t=s.join("");s=[];i.push(n.length===0?t:buildStyle(e,n)(t));n.push({inverse:o,styles:parseStyle(a)})}else if(u){if(n.length===0){throw new Error("Found extraneous } in Chalk template literal")}i.push(buildStyle(e,n)(s.join("")));s=[];n.pop()}else{s.push(c)}});i.push(s.join(""));if(n.length>0){const e=`Chalk template literal is missing ${n.length} closing bracket${n.length===1?"":"s"} (\`}\`)`;throw new Error(e)}return i.join("")})},6520:(e,t,r)=>{"use strict";const n=r(2087);const i=r(5150);const s=process.env;let o;if(i("no-color")||i("no-colors")||i("color=false")){o=false}else if(i("color")||i("colors")||i("color=true")||i("color=always")){o=true}if("FORCE_COLOR"in s){o=s.FORCE_COLOR.length===0||parseInt(s.FORCE_COLOR,10)!==0}function translateLevel(e){if(e===0){return false}return{level:e,hasBasic:true,has256:e>=2,has16m:e>=3}}function supportsColor(e){if(o===false){return 0}if(i("color=16m")||i("color=full")||i("color=truecolor")){return 3}if(i("color=256")){return 2}if(e&&!e.isTTY&&o!==true){return 0}const t=o?1:0;if(process.platform==="win32"){const e=n.release().split(".");if(Number(process.versions.node.split(".")[0])>=8&&Number(e[0])>=10&&Number(e[2])>=10586){return Number(e[2])>=14931?3:2}return 1}if("CI"in s){if(["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(e=>e in s)||s.CI_NAME==="codeship"){return 1}return t}if("TEAMCITY_VERSION"in s){return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(s.TEAMCITY_VERSION)?1:0}if(s.COLORTERM==="truecolor"){return 3}if("TERM_PROGRAM"in s){const e=parseInt((s.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(s.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}if(/-256(color)?$/i.test(s.TERM)){return 2}if(/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(s.TERM)){return 1}if("COLORTERM"in s){return 1}if(s.TERM==="dumb"){return t}return t}function getSupportLevel(e){const t=supportsColor(e);return translateLevel(t)}e.exports={supportsColor:getSupportLevel,stdout:getSupportLevel(process.stdout),stderr:getSupportLevel(process.stderr)}},6547:(e,t,r)=>{"use strict";const n=r(9082);const i=r(4931);e.exports=n(()=>{i(()=>{process.stderr.write("[?25h")},{alwaysLast:true})})},3406:(e,t,r)=>{"use strict";var n=r(2087);function homedir(){var e=process.env;var t=e.HOME;var r=e.LOGNAME||e.USER||e.LNAME||e.USERNAME;if(process.platform==="win32"){return e.USERPROFILE||e.HOMEDRIVE+e.HOMEPATH||t||null}if(process.platform==="darwin"){return t||(r?"/Users/"+r:null)}if(process.platform==="linux"){return t||(process.getuid()===0?"/root":r?"/home/"+r:null)}return t||null}e.exports=typeof n.homedir==="function"?n.homedir:homedir},1284:e=>{"use strict";var t=process.platform==="win32";var r=t?/[^:]\\$/:/.\/$/;e.exports=function(){var e;if(t){e=process.env.TEMP||process.env.TMP||(process.env.SystemRoot||process.env.windir)+"\\temp"}else{e=process.env.TMPDIR||process.env.TMP||process.env.TEMP||"/tmp"}if(r.test(e)){e=e.slice(0,-1)}return e}},4669:(e,t,r)=>{var n=process.platform==="win32";var i=r(5622);var s=r(3129).exec;var o=r(1284);var a=r(3406);function memo(e,r,n){var i=false;var o=false;t[e]=function(a){var u=r();if(!u&&!i&&!o&&n){i=true;o=true;s(n,function(e,t,r){o=false;if(e)return;u=t.trim()})}t[e]=function(e){if(e)process.nextTick(e.bind(null,null,u));return u};if(a&&!o)process.nextTick(a.bind(null,null,u));return u}}memo("user",function(){return n?process.env.USERDOMAIN+"\\"+process.env.USERNAME:process.env.USER},"whoami");memo("prompt",function(){return n?process.env.PROMPT:process.env.PS1});memo("hostname",function(){return n?process.env.COMPUTERNAME:process.env.HOSTNAME},"hostname");memo("tmpdir",function(){return o()});memo("home",function(){return a()});memo("path",function(){return(process.env.PATH||process.env.Path||process.env.path).split(n?";":":")});memo("editor",function(){return process.env.EDITOR||process.env.VISUAL||(n?"notepad.exe":"vi")});memo("shell",function(){return n?process.env.ComSpec||"cmd":process.env.SHELL||"bash"})},9072:e=>{"use strict";class CancelError extends Error{constructor(e){super(e||"Promise was canceled");this.name="CancelError"}get isCanceled(){return true}}class PCancelable{static fn(e){return(...t)=>{return new PCancelable((r,n,i)=>{t.push(i);e(...t).then(r,n)})}}constructor(e){this._cancelHandlers=[];this._isPending=true;this._isCanceled=false;this._rejectOnCancel=true;this._promise=new Promise((t,r)=>{this._reject=r;const n=e=>{this._isPending=false;t(e)};const i=e=>{this._isPending=false;r(e)};const s=e=>{if(!this._isPending){throw new Error("The `onCancel` handler was attached after the promise settled.")}this._cancelHandlers.push(e)};Object.defineProperties(s,{shouldReject:{get:()=>this._rejectOnCancel,set:e=>{this._rejectOnCancel=e}}});return e(n,i,s)})}then(e,t){return this._promise.then(e,t)}catch(e){return this._promise.catch(e)}finally(e){return this._promise.finally(e)}cancel(e){if(!this._isPending||this._isCanceled){return}if(this._cancelHandlers.length>0){try{for(const e of this._cancelHandlers){e()}}catch(e){this._reject(e)}}this._isCanceled=true;if(this._rejectOnCancel){this._reject(new CancelError(e))}}get isCanceled(){return this._isCanceled}}Object.setPrototypeOf(PCancelable.prototype,Promise.prototype);e.exports=PCancelable;e.exports.CancelError=CancelError},8714:e=>{"use strict";function posix(e){return e.charAt(0)==="/"}function win32(e){var t=/^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/;var r=t.exec(e);var n=r[1]||"";var i=Boolean(n&&n.charAt(1)!==":");return Boolean(r[2]||i)}e.exports=process.platform==="win32"?win32:posix;e.exports.posix=posix;e.exports.win32=win32},539:e=>{"use strict";e.exports=(e=>{e=e||{};const t=e.env||process.env;const r=e.platform||process.platform;if(r!=="win32"){return"PATH"}return Object.keys(t).find(e=>e.toUpperCase()==="PATH")||"Path"})},8569:(e,t,r)=>{"use strict";e.exports=r(3322)},6099:(e,t,r)=>{"use strict";const n=r(5622);const i="\\\\/";const s=`[^${i}]`;const o="\\.";const a="\\+";const u="\\?";const c="\\/";const l="(?=.)";const h="[^/]";const f=`(?:${c}|$)`;const d=`(?:^|${c})`;const p=`${o}{1,2}${f}`;const m=`(?!${o})`;const y=`(?!${d}${p})`;const g=`(?!${o}{0,1}${f})`;const v=`(?!${p})`;const b=`[^.${c}]`;const w=`${h}*?`;const A={DOT_LITERAL:o,PLUS_LITERAL:a,QMARK_LITERAL:u,SLASH_LITERAL:c,ONE_CHAR:l,QMARK:h,END_ANCHOR:f,DOTS_SLASH:p,NO_DOT:m,NO_DOTS:y,NO_DOT_SLASH:g,NO_DOTS_SLASH:v,QMARK_NO_DOT:b,STAR:w,START_ANCHOR:d};const E={...A,SLASH_LITERAL:`[${i}]`,QMARK:s,STAR:`${s}*?`,DOTS_SLASH:`${o}{1,2}(?:[${i}]|$)`,NO_DOT:`(?!${o})`,NO_DOTS:`(?!(?:^|[${i}])${o}{1,2}(?:[${i}]|$))`,NO_DOT_SLASH:`(?!${o}{0,1}(?:[${i}]|$))`,NO_DOTS_SLASH:`(?!${o}{1,2}(?:[${i}]|$))`,QMARK_NO_DOT:`[^.${i}]`,START_ANCHOR:`(?:^|[${i}])`,END_ANCHOR:`(?:[${i}]|$)`};const _={alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"};e.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:_,REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,SEP:n.sep,extglobChars(e){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${e.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(e){return e===true?E:A}}},2139:(e,t,r)=>{"use strict";const n=r(6099);const i=r(479);const{MAX_LENGTH:s,POSIX_REGEX_SOURCE:o,REGEX_NON_SPECIAL_CHARS:a,REGEX_SPECIAL_CHARS_BACKREF:u,REPLACEMENTS:c}=n;const l=(e,t)=>{if(typeof t.expandRange==="function"){return t.expandRange(...e,t)}e.sort();const r=`[${e.join("-")}]`;try{new RegExp(r)}catch(t){return e.map(e=>i.escapeRegex(e)).join("..")}return r};const h=(e,t)=>{return`Missing ${e}: "${t}" - use "\\\\${t}" to match literal characters`};const f=(e,t)=>{if(typeof e!=="string"){throw new TypeError("Expected a string")}e=c[e]||e;const r={...t};const f=typeof r.maxLength==="number"?Math.min(s,r.maxLength):s;let d=e.length;if(d>f){throw new SyntaxError(`Input length: ${d}, exceeds maximum allowed length: ${f}`)}const p={type:"bos",value:"",output:r.prepend||""};const m=[p];const y=r.capture?"":"?:";const g=i.isWindows(t);const v=n.globChars(g);const b=n.extglobChars(v);const{DOT_LITERAL:w,PLUS_LITERAL:A,SLASH_LITERAL:E,ONE_CHAR:_,DOTS_SLASH:D,NO_DOT:S,NO_DOT_SLASH:C,NO_DOTS_SLASH:x,QMARK:R,QMARK_NO_DOT:O,STAR:F,START_ANCHOR:P}=v;const T=e=>{return`(${y}(?:(?!${P}${e.dot?D:w}).)*?)`};const k=r.dot?"":S;const B=r.dot?R:O;let I=r.bash===true?T(r):F;if(r.capture){I=`(${I})`}if(typeof r.noext==="boolean"){r.noextglob=r.noext}const j={input:e,index:-1,start:0,dot:r.dot===true,consumed:"",output:"",prefix:"",backtrack:false,negated:false,brackets:0,braces:0,parens:0,quotes:0,globstar:false,tokens:m};e=i.removePrefix(e,j);d=e.length;const N=[];const M=[];const L=[];let $=p;let H;const U=()=>j.index===d-1;const G=j.peek=((t=1)=>e[j.index+t]);const z=j.advance=(()=>e[++j.index]);const q=()=>e.slice(j.index+1);const W=(e="",t=0)=>{j.consumed+=e;j.index+=t};const Y=e=>{j.output+=e.output!=null?e.output:e.value;W(e.value)};const V=()=>{let e=1;while(G()==="!"&&(G(2)!=="("||G(3)==="?")){z();j.start++;e++}if(e%2===0){return false}j.negated=true;j.start++;return true};const Q=e=>{j[e]++;L.push(e)};const Z=e=>{j[e]--;L.pop()};const J=e=>{if($.type==="globstar"){const t=j.braces>0&&(e.type==="comma"||e.type==="brace");const r=e.extglob===true||N.length&&(e.type==="pipe"||e.type==="paren");if(e.type!=="slash"&&e.type!=="paren"&&!t&&!r){j.output=j.output.slice(0,-$.output.length);$.type="star";$.value="*";$.output=I;j.output+=$.output}}if(N.length&&e.type!=="paren"&&!b[e.value]){N[N.length-1].inner+=e.value}if(e.value||e.output)Y(e);if($&&$.type==="text"&&e.type==="text"){$.value+=e.value;$.output=($.output||"")+e.value;return}e.prev=$;m.push(e);$=e};const X=(e,t)=>{const n={...b[t],conditions:1,inner:""};n.prev=$;n.parens=j.parens;n.output=j.output;const i=(r.capture?"(":"")+n.open;Q("parens");J({type:e,value:t,output:j.output?"":_});J({type:"paren",extglob:true,value:z(),output:i});N.push(n)};const K=e=>{let t=e.close+(r.capture?")":"");if(e.type==="negate"){let n=I;if(e.inner&&e.inner.length>1&&e.inner.includes("/")){n=T(r)}if(n!==I||U()||/^\)+$/.test(q())){t=e.close=`)$))${n}`}if(e.prev.type==="bos"&&U()){j.negatedExtglob=true}}J({type:"paren",extglob:true,value:H,output:t});Z("parens")};if(r.fastpaths!==false&&!/(^[*!]|[/()[\]{}"])/.test(e)){let n=false;let s=e.replace(u,(e,t,r,i,s,o)=>{if(i==="\\"){n=true;return e}if(i==="?"){if(t){return t+i+(s?R.repeat(s.length):"")}if(o===0){return B+(s?R.repeat(s.length):"")}return R.repeat(r.length)}if(i==="."){return w.repeat(r.length)}if(i==="*"){if(t){return t+i+(s?I:"")}return I}return t?e:`\\${e}`});if(n===true){if(r.unescape===true){s=s.replace(/\\/g,"")}else{s=s.replace(/\\+/g,e=>{return e.length%2===0?"\\\\":e?"\\":""})}}if(s===e&&r.contains===true){j.output=e;return j}j.output=i.wrapOutput(s,j,t);return j}while(!U()){H=z();if(H==="\0"){continue}if(H==="\\"){const e=G();if(e==="/"&&r.bash!==true){continue}if(e==="."||e===";"){continue}if(!e){H+="\\";J({type:"text",value:H});continue}const t=/^\\+/.exec(q());let n=0;if(t&&t[0].length>2){n=t[0].length;j.index+=n;if(n%2!==0){H+="\\"}}if(r.unescape===true){H=z()||""}else{H+=z()||""}if(j.brackets===0){J({type:"text",value:H});continue}}if(j.brackets>0&&(H!=="]"||$.value==="["||$.value==="[^")){if(r.posix!==false&&H===":"){const e=$.value.slice(1);if(e.includes("[")){$.posix=true;if(e.includes(":")){const e=$.value.lastIndexOf("[");const t=$.value.slice(0,e);const r=$.value.slice(e+2);const n=o[r];if(n){$.value=t+n;j.backtrack=true;z();if(!p.output&&m.indexOf($)===1){p.output=_}continue}}}}if(H==="["&&G()!==":"||H==="-"&&G()==="]"){H=`\\${H}`}if(H==="]"&&($.value==="["||$.value==="[^")){H=`\\${H}`}if(r.posix===true&&H==="!"&&$.value==="["){H="^"}$.value+=H;Y({value:H});continue}if(j.quotes===1&&H!=='"'){H=i.escapeRegex(H);$.value+=H;Y({value:H});continue}if(H==='"'){j.quotes=j.quotes===1?0:1;if(r.keepQuotes===true){J({type:"text",value:H})}continue}if(H==="("){Q("parens");J({type:"paren",value:H});continue}if(H===")"){if(j.parens===0&&r.strictBrackets===true){throw new SyntaxError(h("opening","("))}const e=N[N.length-1];if(e&&j.parens===e.parens+1){K(N.pop());continue}J({type:"paren",value:H,output:j.parens?")":"\\)"});Z("parens");continue}if(H==="["){if(r.nobracket===true||!q().includes("]")){if(r.nobracket!==true&&r.strictBrackets===true){throw new SyntaxError(h("closing","]"))}H=`\\${H}`}else{Q("brackets")}J({type:"bracket",value:H});continue}if(H==="]"){if(r.nobracket===true||$&&$.type==="bracket"&&$.value.length===1){J({type:"text",value:H,output:`\\${H}`});continue}if(j.brackets===0){if(r.strictBrackets===true){throw new SyntaxError(h("opening","["))}J({type:"text",value:H,output:`\\${H}`});continue}Z("brackets");const e=$.value.slice(1);if($.posix!==true&&e[0]==="^"&&!e.includes("/")){H=`/${H}`}$.value+=H;Y({value:H});if(r.literalBrackets===false||i.hasRegexChars(e)){continue}const t=i.escapeRegex($.value);j.output=j.output.slice(0,-$.value.length);if(r.literalBrackets===true){j.output+=t;$.value=t;continue}$.value=`(${y}${t}|${$.value})`;j.output+=$.value;continue}if(H==="{"&&r.nobrace!==true){Q("braces");const e={type:"brace",value:H,output:"(",outputIndex:j.output.length,tokensIndex:j.tokens.length};M.push(e);J(e);continue}if(H==="}"){const e=M[M.length-1];if(r.nobrace===true||!e){J({type:"text",value:H,output:H});continue}let t=")";if(e.dots===true){const e=m.slice();const n=[];for(let t=e.length-1;t>=0;t--){m.pop();if(e[t].type==="brace"){break}if(e[t].type!=="dots"){n.unshift(e[t].value)}}t=l(n,r);j.backtrack=true}if(e.comma!==true&&e.dots!==true){const r=j.output.slice(0,e.outputIndex);const n=j.tokens.slice(e.tokensIndex);e.value=e.output="\\{";H=t="\\}";j.output=r;for(const e of n){j.output+=e.output||e.value}}J({type:"brace",value:H,output:t});Z("braces");M.pop();continue}if(H==="|"){if(N.length>0){N[N.length-1].conditions++}J({type:"text",value:H});continue}if(H===","){let e=H;const t=M[M.length-1];if(t&&L[L.length-1]==="braces"){t.comma=true;e="|"}J({type:"comma",value:H,output:e});continue}if(H==="/"){if($.type==="dot"&&j.index===j.start+1){j.start=j.index+1;j.consumed="";j.output="";m.pop();$=p;continue}J({type:"slash",value:H,output:E});continue}if(H==="."){if(j.braces>0&&$.type==="dot"){if($.value===".")$.output=w;const e=M[M.length-1];$.type="dots";$.output+=H;$.value+=H;e.dots=true;continue}if(j.braces+j.parens===0&&$.type!=="bos"&&$.type!=="slash"){J({type:"text",value:H,output:w});continue}J({type:"dot",value:H,output:w});continue}if(H==="?"){const e=$&&$.value==="(";if(!e&&r.noextglob!==true&&G()==="("&&G(2)!=="?"){X("qmark",H);continue}if($&&$.type==="paren"){const e=G();let t=H;if(e==="<"&&!i.supportsLookbehinds()){throw new Error("Node.js v10 or higher is required for regex lookbehinds")}if($.value==="("&&!/[!=<:]/.test(e)||e==="<"&&!/<([!=]|\w+>)/.test(q())){t=`\\${H}`}J({type:"text",value:H,output:t});continue}if(r.dot!==true&&($.type==="slash"||$.type==="bos")){J({type:"qmark",value:H,output:O});continue}J({type:"qmark",value:H,output:R});continue}if(H==="!"){if(r.noextglob!==true&&G()==="("){if(G(2)!=="?"||!/[!=<:]/.test(G(3))){X("negate",H);continue}}if(r.nonegate!==true&&j.index===0){V();continue}}if(H==="+"){if(r.noextglob!==true&&G()==="("&&G(2)!=="?"){X("plus",H);continue}if($&&$.value==="("||r.regex===false){J({type:"plus",value:H,output:A});continue}if($&&($.type==="bracket"||$.type==="paren"||$.type==="brace")||j.parens>0){J({type:"plus",value:H});continue}J({type:"plus",value:A});continue}if(H==="@"){if(r.noextglob!==true&&G()==="("&&G(2)!=="?"){J({type:"at",extglob:true,value:H,output:""});continue}J({type:"text",value:H});continue}if(H!=="*"){if(H==="$"||H==="^"){H=`\\${H}`}const e=a.exec(q());if(e){H+=e[0];j.index+=e[0].length}J({type:"text",value:H});continue}if($&&($.type==="globstar"||$.star===true)){$.type="star";$.star=true;$.value+=H;$.output=I;j.backtrack=true;j.globstar=true;W(H);continue}let t=q();if(r.noextglob!==true&&/^\([^?]/.test(t)){X("star",H);continue}if($.type==="star"){if(r.noglobstar===true){W(H);continue}const n=$.prev;const i=n.prev;const s=n.type==="slash"||n.type==="bos";const o=i&&(i.type==="star"||i.type==="globstar");if(r.bash===true&&(!s||t[0]&&t[0]!=="/")){J({type:"star",value:H,output:""});continue}const a=j.braces>0&&(n.type==="comma"||n.type==="brace");const u=N.length&&(n.type==="pipe"||n.type==="paren");if(!s&&n.type!=="paren"&&!a&&!u){J({type:"star",value:H,output:""});continue}while(t.slice(0,3)==="/**"){const r=e[j.index+4];if(r&&r!=="/"){break}t=t.slice(3);W("/**",3)}if(n.type==="bos"&&U()){$.type="globstar";$.value+=H;$.output=T(r);j.output=$.output;j.globstar=true;W(H);continue}if(n.type==="slash"&&n.prev.type!=="bos"&&!o&&U()){j.output=j.output.slice(0,-(n.output+$.output).length);n.output=`(?:${n.output}`;$.type="globstar";$.output=T(r)+(r.strictSlashes?")":"|$)");$.value+=H;j.globstar=true;j.output+=n.output+$.output;W(H);continue}if(n.type==="slash"&&n.prev.type!=="bos"&&t[0]==="/"){const e=t[1]!==void 0?"|$":"";j.output=j.output.slice(0,-(n.output+$.output).length);n.output=`(?:${n.output}`;$.type="globstar";$.output=`${T(r)}${E}|${E}${e})`;$.value+=H;j.output+=n.output+$.output;j.globstar=true;W(H+z());J({type:"slash",value:"/",output:""});continue}if(n.type==="bos"&&t[0]==="/"){$.type="globstar";$.value+=H;$.output=`(?:^|${E}|${T(r)}${E})`;j.output=$.output;j.globstar=true;W(H+z());J({type:"slash",value:"/",output:""});continue}j.output=j.output.slice(0,-$.output.length);$.type="globstar";$.output=T(r);$.value+=H;j.output+=$.output;j.globstar=true;W(H);continue}const n={type:"star",value:H,output:I};if(r.bash===true){n.output=".*?";if($.type==="bos"||$.type==="slash"){n.output=k+n.output}J(n);continue}if($&&($.type==="bracket"||$.type==="paren")&&r.regex===true){n.output=H;J(n);continue}if(j.index===j.start||$.type==="slash"||$.type==="dot"){if($.type==="dot"){j.output+=C;$.output+=C}else if(r.dot===true){j.output+=x;$.output+=x}else{j.output+=k;$.output+=k}if(G()!=="*"){j.output+=_;$.output+=_}}J(n)}while(j.brackets>0){if(r.strictBrackets===true)throw new SyntaxError(h("closing","]"));j.output=i.escapeLast(j.output,"[");Z("brackets")}while(j.parens>0){if(r.strictBrackets===true)throw new SyntaxError(h("closing",")"));j.output=i.escapeLast(j.output,"(");Z("parens")}while(j.braces>0){if(r.strictBrackets===true)throw new SyntaxError(h("closing","}"));j.output=i.escapeLast(j.output,"{");Z("braces")}if(r.strictSlashes!==true&&($.type==="star"||$.type==="bracket")){J({type:"maybe_slash",value:"",output:`${E}?`})}if(j.backtrack===true){j.output="";for(const e of j.tokens){j.output+=e.output!=null?e.output:e.value;if(e.suffix){j.output+=e.suffix}}}return j};f.fastpaths=((e,t)=>{const r={...t};const o=typeof r.maxLength==="number"?Math.min(s,r.maxLength):s;const a=e.length;if(a>o){throw new SyntaxError(`Input length: ${a}, exceeds maximum allowed length: ${o}`)}e=c[e]||e;const u=i.isWindows(t);const{DOT_LITERAL:l,SLASH_LITERAL:h,ONE_CHAR:f,DOTS_SLASH:d,NO_DOT:p,NO_DOTS:m,NO_DOTS_SLASH:y,STAR:g,START_ANCHOR:v}=n.globChars(u);const b=r.dot?m:p;const w=r.dot?y:p;const A=r.capture?"":"?:";const E={negated:false,prefix:""};let _=r.bash===true?".*?":g;if(r.capture){_=`(${_})`}const D=e=>{if(e.noglobstar===true)return _;return`(${A}(?:(?!${v}${e.dot?d:l}).)*?)`};const S=e=>{switch(e){case"*":return`${b}${f}${_}`;case".*":return`${l}${f}${_}`;case"*.*":return`${b}${_}${l}${f}${_}`;case"*/*":return`${b}${_}${h}${f}${w}${_}`;case"**":return b+D(r);case"**/*":return`(?:${b}${D(r)}${h})?${w}${f}${_}`;case"**/*.*":return`(?:${b}${D(r)}${h})?${w}${_}${l}${f}${_}`;case"**/.*":return`(?:${b}${D(r)}${h})?${l}${f}${_}`;default:{const t=/^(.*?)\.(\w+)$/.exec(e);if(!t)return;const r=S(t[1]);if(!r)return;return r+l+t[2]}}};const C=i.removePrefix(e,E);let x=S(C);if(x&&r.strictSlashes!==true){x+=`${h}?`}return x});e.exports=f},3322:(e,t,r)=>{"use strict";const n=r(5622);const i=r(2429);const s=r(2139);const o=r(479);const a=r(6099);const u=e=>e&&typeof e==="object"&&!Array.isArray(e);const c=(e,t,r=false)=>{if(Array.isArray(e)){const n=e.map(e=>c(e,t,r));const i=e=>{for(const t of n){const r=t(e);if(r)return r}return false};return i}const n=u(e)&&e.tokens&&e.input;if(e===""||typeof e!=="string"&&!n){throw new TypeError("Expected pattern to be a non-empty string")}const i=t||{};const s=o.isWindows(t);const a=n?c.compileRe(e,t):c.makeRe(e,t,false,true);const l=a.state;delete a.state;let h=()=>false;if(i.ignore){const e={...t,ignore:null,onMatch:null,onResult:null};h=c(i.ignore,e,r)}const f=(r,n=false)=>{const{isMatch:o,match:u,output:f}=c.test(r,a,t,{glob:e,posix:s});const d={glob:e,state:l,regex:a,posix:s,input:r,output:f,match:u,isMatch:o};if(typeof i.onResult==="function"){i.onResult(d)}if(o===false){d.isMatch=false;return n?d:false}if(h(r)){if(typeof i.onIgnore==="function"){i.onIgnore(d)}d.isMatch=false;return n?d:false}if(typeof i.onMatch==="function"){i.onMatch(d)}return n?d:true};if(r){f.state=l}return f};c.test=((e,t,r,{glob:n,posix:i}={})=>{if(typeof e!=="string"){throw new TypeError("Expected input to be a string")}if(e===""){return{isMatch:false,output:""}}const s=r||{};const a=s.format||(i?o.toPosixSlashes:null);let u=e===n;let l=u&&a?a(e):e;if(u===false){l=a?a(e):e;u=l===n}if(u===false||s.capture===true){if(s.matchBase===true||s.basename===true){u=c.matchBase(e,t,r,i)}else{u=t.exec(l)}}return{isMatch:Boolean(u),match:u,output:l}});c.matchBase=((e,t,r,i=o.isWindows(r))=>{const s=t instanceof RegExp?t:c.makeRe(t,r);return s.test(n.basename(e))});c.isMatch=((e,t,r)=>c(t,r)(e));c.parse=((e,t)=>{if(Array.isArray(e))return e.map(e=>c.parse(e,t));return s(e,{...t,fastpaths:false})});c.scan=((e,t)=>i(e,t));c.compileRe=((e,t,r=false,n=false)=>{if(r===true){return e.output}const i=t||{};const s=i.contains?"":"^";const o=i.contains?"":"$";let a=`${s}(?:${e.output})${o}`;if(e&&e.negated===true){a=`^(?!${a}).*$`}const u=c.toRegex(a,t);if(n===true){u.state=e}return u});c.makeRe=((e,t,r=false,n=false)=>{if(!e||typeof e!=="string"){throw new TypeError("Expected a non-empty string")}const i=t||{};let o={negated:false,fastpaths:true};let a="";let u;if(e.startsWith("./")){e=e.slice(2);a=o.prefix="./"}if(i.fastpaths!==false&&(e[0]==="."||e[0]==="*")){u=s.fastpaths(e,t)}if(u===undefined){o=s(e,t);o.prefix=a+(o.prefix||"")}else{o.output=u}return c.compileRe(o,t,r,n)});c.toRegex=((e,t)=>{try{const r=t||{};return new RegExp(e,r.flags||(r.nocase?"i":""))}catch(e){if(t&&t.debug===true)throw e;return/$^/}});c.constants=a;e.exports=c},2429:(e,t,r)=>{"use strict";const n=r(479);const{CHAR_ASTERISK:i,CHAR_AT:s,CHAR_BACKWARD_SLASH:o,CHAR_COMMA:a,CHAR_DOT:u,CHAR_EXCLAMATION_MARK:c,CHAR_FORWARD_SLASH:l,CHAR_LEFT_CURLY_BRACE:h,CHAR_LEFT_PARENTHESES:f,CHAR_LEFT_SQUARE_BRACKET:d,CHAR_PLUS:p,CHAR_QUESTION_MARK:m,CHAR_RIGHT_CURLY_BRACE:y,CHAR_RIGHT_PARENTHESES:g,CHAR_RIGHT_SQUARE_BRACKET:v}=r(6099);const b=e=>{return e===l||e===o};const w=e=>{if(e.isPrefix!==true){e.depth=e.isGlobstar?Infinity:1}};const A=(e,t)=>{const r=t||{};const A=e.length-1;const E=r.parts===true||r.scanToEnd===true;const _=[];const D=[];const S=[];let C=e;let x=-1;let R=0;let O=0;let F=false;let P=false;let T=false;let k=false;let B=false;let I=false;let j=false;let N=false;let M=false;let L=0;let $;let H;let U={value:"",depth:0,isGlob:false};const G=()=>x>=A;const z=()=>C.charCodeAt(x+1);const q=()=>{$=H;return C.charCodeAt(++x)};while(x<A){H=q();let e;if(H===o){j=U.backslashes=true;H=q();if(H===h){I=true}continue}if(I===true||H===h){L++;while(G()!==true&&(H=q())){if(H===o){j=U.backslashes=true;q();continue}if(H===h){L++;continue}if(I!==true&&H===u&&(H=q())===u){F=U.isBrace=true;T=U.isGlob=true;M=true;if(E===true){continue}break}if(I!==true&&H===a){F=U.isBrace=true;T=U.isGlob=true;M=true;if(E===true){continue}break}if(H===y){L--;if(L===0){I=false;F=U.isBrace=true;M=true;break}}}if(E===true){continue}break}if(H===l){_.push(x);D.push(U);U={value:"",depth:0,isGlob:false};if(M===true)continue;if($===u&&x===R+1){R+=2;continue}O=x+1;continue}if(r.noext!==true){const e=H===p||H===s||H===i||H===m||H===c;if(e===true&&z()===f){T=U.isGlob=true;k=U.isExtglob=true;M=true;if(E===true){while(G()!==true&&(H=q())){if(H===o){j=U.backslashes=true;H=q();continue}if(H===g){T=U.isGlob=true;M=true;break}}continue}break}}if(H===i){if($===i)B=U.isGlobstar=true;T=U.isGlob=true;M=true;if(E===true){continue}break}if(H===m){T=U.isGlob=true;M=true;if(E===true){continue}break}if(H===d){while(G()!==true&&(e=q())){if(e===o){j=U.backslashes=true;q();continue}if(e===v){P=U.isBracket=true;T=U.isGlob=true;M=true;if(E===true){continue}break}}}if(r.nonegate!==true&&H===c&&x===R){N=U.negated=true;R++;continue}if(r.noparen!==true&&H===f){T=U.isGlob=true;if(E===true){while(G()!==true&&(H=q())){if(H===f){j=U.backslashes=true;H=q();continue}if(H===g){M=true;break}}continue}break}if(T===true){M=true;if(E===true){continue}break}}if(r.noext===true){k=false;T=false}let W=C;let Y="";let V="";if(R>0){Y=C.slice(0,R);C=C.slice(R);O-=R}if(W&&T===true&&O>0){W=C.slice(0,O);V=C.slice(O)}else if(T===true){W="";V=C}else{W=C}if(W&&W!==""&&W!=="/"&&W!==C){if(b(W.charCodeAt(W.length-1))){W=W.slice(0,-1)}}if(r.unescape===true){if(V)V=n.removeBackslashes(V);if(W&&j===true){W=n.removeBackslashes(W)}}const Q={prefix:Y,input:e,start:R,base:W,glob:V,isBrace:F,isBracket:P,isGlob:T,isExtglob:k,isGlobstar:B,negated:N};if(r.tokens===true){Q.maxDepth=0;if(!b(H)){D.push(U)}Q.tokens=D}if(r.parts===true||r.tokens===true){let t;for(let n=0;n<_.length;n++){const i=t?t+1:R;const s=_[n];const o=e.slice(i,s);if(r.tokens){if(n===0&&R!==0){D[n].isPrefix=true;D[n].value=Y}else{D[n].value=o}w(D[n]);Q.maxDepth+=D[n].depth}if(n!==0||o!==""){S.push(o)}t=s}if(t&&t+1<e.length){const n=e.slice(t+1);S.push(n);if(r.tokens){D[D.length-1].value=n;w(D[D.length-1]);Q.maxDepth+=D[D.length-1].depth}}Q.slashes=_;Q.parts=S}return Q};e.exports=A},479:(e,t,r)=>{"use strict";const n=r(5622);const i=process.platform==="win32";const{REGEX_BACKSLASH:s,REGEX_REMOVE_BACKSLASH:o,REGEX_SPECIAL_CHARS:a,REGEX_SPECIAL_CHARS_GLOBAL:u}=r(6099);t.isObject=(e=>e!==null&&typeof e==="object"&&!Array.isArray(e));t.hasRegexChars=(e=>a.test(e));t.isRegexChar=(e=>e.length===1&&t.hasRegexChars(e));t.escapeRegex=(e=>e.replace(u,"\\$1"));t.toPosixSlashes=(e=>e.replace(s,"/"));t.removeBackslashes=(e=>{return e.replace(o,e=>{return e==="\\"?"":e})});t.supportsLookbehinds=(()=>{const e=process.version.slice(1).split(".").map(Number);if(e.length===3&&e[0]>=9||e[0]===8&&e[1]>=10){return true}return false});t.isWindows=(e=>{if(e&&typeof e.windows==="boolean"){return e.windows}return i===true||n.sep==="\\"});t.escapeLast=((e,r,n)=>{const i=e.lastIndexOf(r,n);if(i===-1)return e;if(e[i-1]==="\\")return t.escapeLast(e,r,i-1);return`${e.slice(0,i)}\\${e.slice(i)}`});t.removePrefix=((e,t={})=>{let r=e;if(r.startsWith("./")){r=r.slice(2);t.prefix="./"}return r});t.wrapOutput=((e,t={},r={})=>{const n=r.contains?"":"^";const i=r.contains?"":"$";let s=`${n}(?:${e})${i}`;if(t.negated===true){s=`(?:^(?!${s}).*$)`}return s})},7280:e=>{"use strict";class DatePart{constructor({token:e,date:t,parts:r,locales:n}){this.token=e;this.date=t||new Date;this.parts=r||[this];this.locales=n||{}}up(){}down(){}next(){const e=this.parts.indexOf(this);return this.parts.find((t,r)=>r>e&&t instanceof DatePart)}setTo(e){}prev(){let e=[].concat(this.parts).reverse();const t=e.indexOf(this);return e.find((e,r)=>r>t&&e instanceof DatePart)}toString(){return String(this.date)}}e.exports=DatePart},4203:(e,t,r)=>{"use strict";const n=r(7280);const i=e=>{e=e%10;return e===1?"st":e===2?"nd":e===3?"rd":"th"};class Day extends n{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();let t=this.date.getDay();return this.token==="DD"?String(e).padStart(2,"0"):this.token==="Do"?e+i(e):this.token==="d"?t+1:this.token==="ddd"?this.locales.weekdaysShort[t]:this.token==="dddd"?this.locales.weekdays[t]:e}}e.exports=Day},2574:(e,t,r)=>{"use strict";const n=r(7280);class Hours extends n{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();if(/h/.test(this.token))e=e%12||12;return this.token.length>1?String(e).padStart(2,"0"):e}}e.exports=Hours},2408:(e,t,r)=>{"use strict";e.exports={DatePart:r(7280),Meridiem:r(4853),Day:r(4203),Hours:r(2574),Milliseconds:r(4909),Minutes:r(5876),Month:r(9461),Seconds:r(5884),Year:r(359)}},4853:(e,t,r)=>{"use strict";const n=r(7280);class Meridiem extends n{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}}e.exports=Meridiem},4909:(e,t,r)=>{"use strict";const n=r(7280);class Milliseconds extends n{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)}}e.exports=Milliseconds},5876:(e,t,r)=>{"use strict";const n=r(7280);class Minutes extends n{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}}e.exports=Minutes},9461:(e,t,r)=>{"use strict";const n=r(7280);class Month extends n{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();let t=this.token.length;return t===2?String(e+1).padStart(2,"0"):t===3?this.locales.monthsShort[e]:t===4?this.locales.months[e]:String(e+1)}}e.exports=Month},5884:(e,t,r)=>{"use strict";const n=r(7280);class Seconds extends n{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}}e.exports=Seconds},359:(e,t,r)=>{"use strict";const n=r(7280);class Year extends n{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}}e.exports=Year},2257:(e,t,r)=>{"use strict";function asyncGeneratorStep(e,t,r,n,i,s,o){try{var a=e[s](o);var u=a.value}catch(e){r(e);return}if(a.done){t(u)}else{Promise.resolve(u).then(n,i)}}function _asyncToGenerator(e){return function(){var t=this,r=arguments;return new Promise(function(n,i){var s=e.apply(t,r);function _next(e){asyncGeneratorStep(s,n,i,_next,_throw,"next",e)}function _throw(e){asyncGeneratorStep(s,n,i,_next,_throw,"throw",e)}_next(undefined)})}}const n=r(5215);const i=r(461);const s=r(9571),o=s.erase,a=s.cursor;const u=r(8091),c=u.style,l=u.clear,h=u.figures,f=u.wrap,d=u.entriesToDisplay;const p=(e,t)=>e[t]&&(e[t].value||e[t].title||e[t]);const m=(e,t)=>e[t]&&(e[t].title||e[t].value||e[t]);const y=(e,t)=>{const r=e.findIndex(e=>e.value===t||e.title===t);return r>-1?r:undefined};class AutocompletePrompt extends i{constructor(e={}){super(e);this.msg=e.message;this.suggest=e.suggest;this.choices=e.choices;this.initial=typeof e.initial==="number"?e.initial:y(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.suggestions=[];this.input="";this.limit=e.limit||10;this.cursor=0;this.transform=c.render(e.style);this.scale=this.transform.scale;this.render=this.render.bind(this);this.complete=this.complete.bind(this);this.clear=l("");this.complete(this.render);this.render()}set fallback(e){this._fb=Number.isSafeInteger(parseInt(e))?parseInt(e):e}get fallback(){let e;if(typeof this._fb==="number")e=this.choices[this._fb];else if(typeof this._fb==="string")e={title:this._fb};return e||this._fb||{title:this.i18n.noMatches}}moveSelect(e){this.select=e;if(this.suggestions.length>0)this.value=p(this.suggestions,e);else this.value=this.fallback.value;this.fire()}complete(e){var t=this;return _asyncToGenerator(function*(){const r=t.completing=t.suggest(t.input,t.choices);const n=yield r;if(t.completing!==r)return;t.suggestions=n.map((e,t,r)=>({title:m(r,t),value:p(r,t),description:e.description}));t.completing=false;const i=Math.max(n.length-1,0);t.moveSelect(Math.min(i,t.select));e&&e()})()}reset(){this.input="";this.complete(()=>{this.moveSelect(this.initial!==void 0?this.initial:0);this.render()});this.render()}abort(){this.done=this.aborted=true;this.fire();this.render();this.out.write("\n");this.close()}submit(){this.done=true;this.aborted=false;this.fire();this.render();this.out.write("\n");this.close()}_(e,t){let r=this.input.slice(0,this.cursor);let n=this.input.slice(this.cursor);this.input=`${r}${e}${n}`;this.cursor=r.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);let t=this.input.slice(this.cursor);this.input=`${e}${t}`;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);let t=this.input.slice(this.cursor+1);this.input=`${e}${t}`;this.complete(this.render);this.render()}first(){this.moveSelect(0);this.render()}last(){this.moveSelect(this.suggestions.length-1);this.render()}up(){if(this.select<=0)return this.bell();this.moveSelect(this.select-1);this.render()}down(){if(this.select>=this.suggestions.length-1)return this.bell();this.moveSelect(this.select+1);this.render()}next(){if(this.select===this.suggestions.length-1){this.moveSelect(0)}else 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,t,r,i){let s;let o=r?h.arrowUp:i?h.arrowDown:" ";let a=t?n.cyan().underline(e.title):e.title;o=(t?n.cyan(h.pointer)+" ":" ")+o;if(e.description){s=` - ${e.description}`;if(o.length+a.length+s.length>=this.out.columns||e.description.split(/\r?\n/).length>1){s="\n"+f(e.description,{margin:3,width:this.out.columns})}}return o+" "+a+n.gray(s||"")}render(){if(this.closed)return;if(this.firstRender)this.out.write(a.hide);else this.out.write(l(this.outputText));super.render();let e=d(this.select,this.choices.length,this.limit),t=e.startIndex,r=e.endIndex;this.outputText=[c.symbol(this.done,this.aborted),n.bold(this.msg),c.delimiter(this.completing),this.done&&this.suggestions[this.select]?this.suggestions[this.select].title:this.rendered=this.transform.render(this.input)].join(" ");if(!this.done){const e=this.suggestions.slice(t,r).map((e,n)=>this.renderOption(e,this.select===n+t,n===0&&t>0,n+t===r-1&&r<this.choices.length)).join("\n");this.outputText+=`\n`+(e||n.gray(this.fallback.title))}this.out.write(o.line+a.to(0)+this.outputText)}}e.exports=AutocompletePrompt},5441:(e,t,r)=>{"use strict";const n=r(5215);const i=r(9571),s=i.cursor;const o=r(4140);const a=r(8091),u=a.clear,c=a.style,l=a.figures;class AutocompleteMultiselectPrompt extends o{constructor(e={}){e.overrideRender=true;super(e);this.inputValue="";this.clear=u("");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(){if(this.cursor===0){this.cursor=this.filteredOptions.length-1}else{this.cursor--}this.render()}down(){if(this.cursor===this.filteredOptions.length-1){this.cursor=0}else{this.cursor++}this.render()}left(){this.filteredOptions[this.cursor].selected=false;this.render()}right(){if(this.value.filter(e=>e.selected).length>=this.maxChoices)return this.bell();this.filteredOptions[this.cursor].selected=true;this.render()}delete(){if(this.inputValue.length){this.inputValue=this.inputValue.substr(0,this.inputValue.length-1);this.updateFilteredOptions()}}updateFilteredOptions(){const e=this.filteredOptions[this.cursor];this.filteredOptions=this.value.filter(e=>{if(this.inputValue){if(typeof e.title==="string"){if(e.title.toLowerCase().includes(this.inputValue.toLowerCase())){return true}}if(typeof e.value==="string"){if(e.value.toLowerCase().includes(this.inputValue.toLowerCase())){return true}}return false}return true});const t=this.filteredOptions.findIndex(t=>t===e);this.cursor=t<0?0:t;this.render()}handleSpaceToggle(){const e=this.filteredOptions[this.cursor];if(e.selected){e.selected=false;this.render()}else if(e.disabled||this.value.filter(e=>e.selected).length>=this.maxChoices){return this.bell()}else{e.selected=true;this.render()}}handleInputChange(e){this.inputValue=this.inputValue+e;this.updateFilteredOptions()}_(e,t){if(e===" "){this.handleSpaceToggle()}else{this.handleInputChange(e)}}renderInstructions(){if(this.instructions===undefined||this.instructions){if(typeof this.instructions==="string"){return this.instructions}return`\nInstructions:\n ${l.arrowUp}/${l.arrowDown}: Highlight option\n ${l.arrowLeft}/${l.arrowRight}/[space]: Toggle selection\n [a,b,c]/delete: Filter choices\n enter/return: Complete answer\n`}return""}renderCurrentInput(){return`\nFiltered results for: ${this.inputValue?this.inputValue:n.gray("Enter something to filter")}\n`}renderOption(e,t,r){let i;if(t.disabled)i=e===r?n.gray().underline(t.title):n.strikethrough().gray(t.title);else i=e===r?n.cyan().underline(t.title):t.title;return(t.selected?n.green(l.radioOn):l.radioOff)+" "+i}renderDoneOrInstructions(){if(this.done){return this.value.filter(e=>e.selected).map(e=>e.title).join(", ")}const e=[n.gray(this.hint),this.renderInstructions(),this.renderCurrentInput()];if(this.filteredOptions.length&&this.filteredOptions[this.cursor].disabled){e.push(n.yellow(this.warn))}return e.join(" ")}render(){if(this.closed)return;if(this.firstRender)this.out.write(s.hide);super.render();let e=[c.symbol(this.done,this.aborted),n.bold(this.msg),c.delimiter(false),this.renderDoneOrInstructions()].join(" ");if(this.showMinError){e+=n.red(`You must select a minimum of ${this.minSelected} choices.`);this.showMinError=false}e+=this.renderOptions(this.filteredOptions);this.out.write(this.clear+e);this.clear=u(e)}}e.exports=AutocompleteMultiselectPrompt},9486:(e,t,r)=>{"use strict";const n=r(5215);const i=r(461);const s=r(8091),o=s.style,a=s.clear;const u=r(9571),c=u.erase,l=u.cursor;class ConfirmPrompt extends i{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()}abort(){this.done=this.aborted=true;this.fire();this.render();this.out.write("\n");this.close()}submit(){this.value=this.value||false;this.done=true;this.aborted=false;this.fire();this.render();this.out.write("\n");this.close()}_(e,t){if(e.toLowerCase()==="y"){this.value=true;return this.submit()}if(e.toLowerCase()==="n"){this.value=false;return this.submit()}return this.bell()}render(){if(this.closed)return;if(this.firstRender)this.out.write(l.hide);else this.out.write(a(this.outputText));super.render();this.outputText=[o.symbol(this.done,this.aborted),n.bold(this.msg),o.delimiter(this.done),this.done?this.value?this.yesMsg:this.noMsg:n.gray(this.initialValue?this.yesOption:this.noOption)].join(" ");this.out.write(c.line+l.to(0)+this.outputText)}}e.exports=ConfirmPrompt},4177:(e,t,r)=>{"use strict";function asyncGeneratorStep(e,t,r,n,i,s,o){try{var a=e[s](o);var u=a.value}catch(e){r(e);return}if(a.done){t(u)}else{Promise.resolve(u).then(n,i)}}function _asyncToGenerator(e){return function(){var t=this,r=arguments;return new Promise(function(n,i){var s=e.apply(t,r);function _next(e){asyncGeneratorStep(s,n,i,_next,_throw,"next",e)}function _throw(e){asyncGeneratorStep(s,n,i,_next,_throw,"throw",e)}_next(undefined)})}}const n=r(5215);const i=r(461);const s=r(8091),o=s.style,a=s.clear,u=s.figures;const c=r(9571),l=c.erase,h=c.cursor;const f=r(2408),d=f.DatePart,p=f.Meridiem,m=f.Day,y=f.Hours,g=f.Milliseconds,v=f.Minutes,b=f.Month,w=f.Seconds,A=f.Year;const E=/\\(.)|"((?:\\["\\]|[^"])+)"|(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;const _={1:({token:e})=>e.replace(/\\(.)/g,"$1"),2:e=>new m(e),3:e=>new b(e),4:e=>new A(e),5:e=>new p(e),6:e=>new y(e),7:e=>new v(e),8:e=>new w(e),9:e=>new g(e)};const D={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(",")};class DatePrompt extends i{constructor(e={}){super(e);this.msg=e.message;this.cursor=0;this.typed="";this.locales=Object.assign(D,e.locales);this._date=e.initial||new Date;this.errorMsg=e.error||"Please Enter A Valid Value";this.validator=e.validate||(()=>true);this.mask=e.mask||"YYYY-MM-DD HH:mm:ss";this.clear=a("");this.render()}get value(){return this.date}get date(){return this._date}set date(e){if(e)this._date.setTime(e.getTime())}set mask(e){let t;this.parts=[];while(t=E.exec(e)){let e=t.shift();let r=t.findIndex(e=>e!=null);this.parts.push(r in _?_[r]({token:t[r]||e,date:this.date,parts:this.parts,locales:this.locales}):t[r]||e)}let r=this.parts.reduce((e,t)=>{if(typeof t==="string"&&typeof e[e.length-1]==="string")e[e.length-1]+=t;else e.push(t);return e},[]);this.parts.splice(0);this.parts.push(...r);this.reset()}moveCursor(e){this.typed="";this.cursor=e;this.fire()}reset(){this.moveCursor(this.parts.findIndex(e=>e instanceof d));this.fire();this.render()}abort(){this.done=this.aborted=true;this.error=false;this.fire();this.render();this.out.write("\n");this.close()}validate(){var e=this;return _asyncToGenerator(function*(){let t=yield e.validator(e.value);if(typeof t==="string"){e.errorMsg=t;t=false}e.error=!t})()}submit(){var e=this;return _asyncToGenerator(function*(){yield e.validate();if(e.error){e.color="red";e.fire();e.render();return}e.done=true;e.aborted=false;e.fire();e.render();e.out.write("\n");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(e=>e instanceof d));this.render()}_(e){if(/\d/.test(e)){this.typed+=e;this.parts[this.cursor].setTo(this.typed);this.render()}}render(){if(this.closed)return;if(this.firstRender)this.out.write(h.hide);else this.out.write(a(this.outputText));super.render();this.outputText=[o.symbol(this.done,this.aborted),n.bold(this.msg),o.delimiter(false),this.parts.reduce((e,t,r)=>e.concat(r===this.cursor&&!this.done?n.cyan().underline(t.toString()):t),[]).join("")].join(" ");if(this.error){this.outputText+=this.errorMsg.split("\n").reduce((e,t,r)=>e+`\n${r?` `:u.pointerSmall} ${n.red().italic(t)}`,``)}this.out.write(l.line+h.to(0)+this.outputText)}}e.exports=DatePrompt},2838:(e,t,r)=>{"use strict";e.exports={TextPrompt:r(16),SelectPrompt:r(786),TogglePrompt:r(8001),DatePrompt:r(4177),NumberPrompt:r(7072),MultiselectPrompt:r(4140),AutocompletePrompt:r(2257),AutocompleteMultiselectPrompt:r(5441),ConfirmPrompt:r(9486)}},4140:(e,t,r)=>{"use strict";const n=r(5215);const i=r(9571),s=i.cursor;const o=r(461);const a=r(8091),u=a.clear,c=a.figures,l=a.style,h=a.wrap,f=a.entriesToDisplay;class MultiselectPrompt extends o{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=false;this.maxChoices=e.max;this.instructions=e.instructions;this.optionsPerPage=e.optionsPerPage||10;this.value=e.choices.map((e,t)=>{if(typeof e==="string")e={title:e,value:t};return{title:e&&(e.title||e.value||e),description:e&&e.description,value:e&&(e.value===undefined?t:e.value),selected:e&&e.selected,disabled:e&&e.disabled}});this.clear=u("");if(!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)}abort(){this.done=this.aborted=true;this.fire();this.render();this.out.write("\n");this.close()}submit(){const e=this.value.filter(e=>e.selected);if(this.minSelected&&e.length<this.minSelected){this.showMinError=true;this.render()}else{this.done=true;this.aborted=false;this.fire();this.render();this.out.write("\n");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(){if(this.cursor===0){this.cursor=this.value.length-1}else{this.cursor--}this.render()}down(){if(this.cursor===this.value.length-1){this.cursor=0}else{this.cursor++}this.render()}left(){this.value[this.cursor].selected=false;this.render()}right(){if(this.value.filter(e=>e.selected).length>=this.maxChoices)return this.bell();this.value[this.cursor].selected=true;this.render()}handleSpaceToggle(){const e=this.value[this.cursor];if(e.selected){e.selected=false;this.render()}else if(e.disabled||this.value.filter(e=>e.selected).length>=this.maxChoices){return this.bell()}else{e.selected=true;this.render()}}toggleAll(){if(this.maxChoices!==undefined||this.value[this.cursor].disabled){return this.bell()}const e=!this.value[this.cursor].selected;this.value.filter(e=>!e.disabled).forEach(t=>t.selected=e);this.render()}_(e,t){if(e===" "){this.handleSpaceToggle()}else if(e==="a"){this.toggleAll()}else{return this.bell()}}renderInstructions(){if(this.instructions===undefined||this.instructions){if(typeof this.instructions==="string"){return this.instructions}return"\nInstructions:\n"+` ${c.arrowUp}/${c.arrowDown}: Highlight option\n`+` ${c.arrowLeft}/${c.arrowRight}/[space]: Toggle selection\n`+(this.maxChoices===undefined?` a: Toggle all\n`:"")+` enter/return: Complete answer`}return""}renderOption(e,t,r,i){const s=(t.selected?n.green(c.radioOn):c.radioOff)+" "+i+" ";let o,a;if(t.disabled){o=e===r?n.gray().underline(t.title):n.strikethrough().gray(t.title)}else{o=e===r?n.cyan().underline(t.title):t.title;if(e===r&&t.description){a=` - ${t.description}`;if(s.length+o.length+a.length>=this.out.columns||t.description.split(/\r?\n/).length>1){a="\n"+h(t.description,{margin:s.length,width:this.out.columns})}}}return s+o+n.gray(a||"")}paginateOptions(e){if(e.length===0){return n.red("No matches for this query.")}let t=f(this.cursor,e.length,this.optionsPerPage),r=t.startIndex,i=t.endIndex;let s,o=[];for(let t=r;t<i;t++){if(t===r&&r>0){s=c.arrowUp}else if(t===i-1&&i<e.length){s=c.arrowDown}else{s=" "}o.push(this.renderOption(this.cursor,e[t],t,s))}return"\n"+o.join("\n")}renderOptions(e){if(!this.done){return this.paginateOptions(e)}return""}renderDoneOrInstructions(){if(this.done){return this.value.filter(e=>e.selected).map(e=>e.title).join(", ")}const e=[n.gray(this.hint),this.renderInstructions()];if(this.value[this.cursor].disabled){e.push(n.yellow(this.warn))}return e.join(" ")}render(){if(this.closed)return;if(this.firstRender)this.out.write(s.hide);super.render();let e=[l.symbol(this.done,this.aborted),n.bold(this.msg),l.delimiter(false),this.renderDoneOrInstructions()].join(" ");if(this.showMinError){e+=n.red(`You must select a minimum of ${this.minSelected} choices.`);this.showMinError=false}e+=this.renderOptions(this.value);this.out.write(this.clear+e);this.clear=u(e)}}e.exports=MultiselectPrompt},7072:(e,t,r)=>{"use strict";function asyncGeneratorStep(e,t,r,n,i,s,o){try{var a=e[s](o);var u=a.value}catch(e){r(e);return}if(a.done){t(u)}else{Promise.resolve(u).then(n,i)}}function _asyncToGenerator(e){return function(){var t=this,r=arguments;return new Promise(function(n,i){var s=e.apply(t,r);function _next(e){asyncGeneratorStep(s,n,i,_next,_throw,"next",e)}function _throw(e){asyncGeneratorStep(s,n,i,_next,_throw,"throw",e)}_next(undefined)})}}const n=r(5215);const i=r(461);const s=r(9571),o=s.cursor,a=s.erase;const u=r(8091),c=u.style,l=u.figures,h=u.clear,f=u.lines;const d=/[0-9]/;const p=e=>e!==undefined;const m=(e,t)=>{let r=Math.pow(10,t);return Math.round(e*r)/r};class NumberPrompt extends i{constructor(e={}){super(e);this.transform=c.render(e.style);this.msg=e.message;this.initial=p(e.initial)?e.initial:"";this.float=!!e.float;this.round=e.round||2;this.inc=e.increment||1;this.min=p(e.min)?e.min:-Infinity;this.max=p(e.max)?e.max:Infinity;this.errorMsg=e.error||`Please Enter A Valid Value`;this.validator=e.validate||(()=>true);this.color=`cyan`;this.value=``;this.typed=``;this.lastHit=0;this.render()}set value(e){if(!e&&e!==0){this.placeholder=true;this.rendered=n.gray(this.transform.render(`${this.initial}`));this._value=``}else{this.placeholder=false;this.rendered=this.transform.render(`${m(e,this.round)}`);this._value=m(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||d.test(e)}reset(){this.typed=``;this.value=``;this.fire();this.render()}abort(){let e=this.value;this.value=e!==``?e:this.initial;this.done=this.aborted=true;this.error=false;this.fire();this.render();this.out.write(`\n`);this.close()}validate(){var e=this;return _asyncToGenerator(function*(){let t=yield e.validator(e.value);if(typeof t===`string`){e.errorMsg=t;t=false}e.error=!t})()}submit(){var e=this;return _asyncToGenerator(function*(){yield e.validate();if(e.error){e.color=`red`;e.fire();e.render();return}let t=e.value;e.value=t!==``?t:e.initial;e.done=true;e.aborted=false;e.error=false;e.fire();e.render();e.out.write(`\n`);e.close()})()}up(){this.typed=``;if(this.value===""){this.value=this.min-this.inc}if(this.value>=this.max)return this.bell();this.value+=this.inc;this.color=`cyan`;this.fire();this.render()}down(){this.typed=``;if(this.value===""){this.value=this.min+this.inc}if(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))||``;if(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,t){if(!this.valid(e))return this.bell();const r=Date.now();if(r-this.lastHit>1e3)this.typed=``;this.typed+=e;this.lastHit=r;this.color=`cyan`;if(e===`.`)return this.fire();this.value=Math.min(this.parse(this.typed),this.max);if(this.value>this.max)this.value=this.max;if(this.value<this.min)this.value=this.min;this.fire();this.render()}render(){if(this.closed)return;if(!this.firstRender){if(this.outputError)this.out.write(o.down(f(this.outputError)-1)+h(this.outputError));this.out.write(h(this.outputText))}super.render();this.outputError="";this.outputText=[c.symbol(this.done,this.aborted),n.bold(this.msg),c.delimiter(this.done),!this.done||!this.done&&!this.placeholder?n[this.color]().underline(this.rendered):this.rendered].join(` `);if(this.error){this.outputError+=this.errorMsg.split(`\n`).reduce((e,t,r)=>e+`\n${r?` `:l.pointerSmall} ${n.red().italic(t)}`,``)}this.out.write(a.line+o.to(0)+this.outputText+o.save+this.outputError+o.restore)}}e.exports=NumberPrompt},461:(e,t,r)=>{"use strict";const n=r(1058);const i=r(8091),s=i.action;const o=r(8614);const a=r(9571),u=a.beep,c=a.cursor;const l=r(5215);class Prompt extends o{constructor(e={}){super();this.firstRender=true;this.in=e.stdin||process.stdin;this.out=e.stdout||process.stdout;this.onRender=(e.onRender||(()=>void 0)).bind(this);const t=n.createInterface(this.in);n.emitKeypressEvents(this.in,t);if(this.in.isTTY)this.in.setRawMode(true);const r=["SelectPrompt","MultiselectPrompt"].indexOf(this.constructor.name)>-1;const i=(e,t)=>{let n=s(t,r);if(n===false){this._&&this._(e,t)}else if(typeof this[n]==="function"){this[n](t)}else{this.bell()}};this.close=(()=>{this.out.write(c.show);this.in.removeListener("keypress",i);if(this.in.isTTY)this.in.setRawMode(false);t.close();this.emit(this.aborted?"abort":"submit",this.value);this.closed=true});this.in.on("keypress",i)}fire(){this.emit("state",{value:this.value,aborted:!!this.aborted})}bell(){this.out.write(u)}render(){this.onRender(l);if(this.firstRender)this.firstRender=false}}e.exports=Prompt},786:(e,t,r)=>{"use strict";const n=r(5215);const i=r(461);const s=r(8091),o=s.style,a=s.clear,u=s.figures,c=s.wrap,l=s.entriesToDisplay;const h=r(9571),f=h.cursor;class SelectPrompt extends i{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((e,t)=>{if(typeof e==="string")e={title:e,value:t};return{title:e&&(e.title||e.value||e),value:e&&(e.value===undefined?t:e.value),description:e&&e.description,selected:e&&e.selected,disabled:e&&e.disabled}});this.optionsPerPage=e.optionsPerPage||10;this.value=(this.choices[this.cursor]||{}).value;this.clear=a("");this.render()}moveCursor(e){this.cursor=e;this.value=this.choices[e].value;this.fire()}reset(){this.moveCursor(0);this.fire();this.render()}abort(){this.done=this.aborted=true;this.fire();this.render();this.out.write("\n");this.close()}submit(){if(!this.selection.disabled){this.done=true;this.aborted=false;this.fire();this.render();this.out.write("\n");this.close()}else this.bell()}first(){this.moveCursor(0);this.render()}last(){this.moveCursor(this.choices.length-1);this.render()}up(){if(this.cursor===0)return this.bell();this.moveCursor(this.cursor-1);this.render()}down(){if(this.cursor===this.choices.length-1)return this.bell();this.moveCursor(this.cursor+1);this.render()}next(){this.moveCursor((this.cursor+1)%this.choices.length);this.render()}_(e,t){if(e===" ")return this.submit()}get selection(){return this.choices[this.cursor]}render(){if(this.closed)return;if(this.firstRender)this.out.write(f.hide);else this.out.write(a(this.outputText));super.render();let e=l(this.cursor,this.choices.length,this.optionsPerPage),t=e.startIndex,r=e.endIndex;this.outputText=[o.symbol(this.done,this.aborted),n.bold(this.msg),o.delimiter(false),this.done?this.selection.title:this.selection.disabled?n.yellow(this.warn):n.gray(this.hint)].join(" ");if(!this.done){this.outputText+="\n";for(let e=t;e<r;e++){let i,s,o="",a=this.choices[e];if(e===t&&t>0){s=u.arrowUp}else if(e===r-1&&r<this.choices.length){s=u.arrowDown}else{s=" "}if(a.disabled){i=this.cursor===e?n.gray().underline(a.title):n.strikethrough().gray(a.title);s=(this.cursor===e?n.bold().gray(u.pointer)+" ":" ")+s}else{i=this.cursor===e?n.cyan().underline(a.title):a.title;s=(this.cursor===e?n.cyan(u.pointer)+" ":" ")+s;if(a.description&&this.cursor===e){o=` - ${a.description}`;if(s.length+i.length+o.length>=this.out.columns||a.description.split(/\r?\n/).length>1){o="\n"+c(a.description,{margin:3,width:this.out.columns})}}}this.outputText+=`${s} ${i}${n.gray(o)}\n`}}this.out.write(this.outputText)}}e.exports=SelectPrompt},16:(e,t,r)=>{"use strict";function asyncGeneratorStep(e,t,r,n,i,s,o){try{var a=e[s](o);var u=a.value}catch(e){r(e);return}if(a.done){t(u)}else{Promise.resolve(u).then(n,i)}}function _asyncToGenerator(e){return function(){var t=this,r=arguments;return new Promise(function(n,i){var s=e.apply(t,r);function _next(e){asyncGeneratorStep(s,n,i,_next,_throw,"next",e)}function _throw(e){asyncGeneratorStep(s,n,i,_next,_throw,"throw",e)}_next(undefined)})}}const n=r(5215);const i=r(461);const s=r(9571),o=s.erase,a=s.cursor;const u=r(8091),c=u.style,l=u.clear,h=u.lines,f=u.figures;class TextPrompt extends i{constructor(e={}){super(e);this.transform=c.render(e.style);this.scale=this.transform.scale;this.msg=e.message;this.initial=e.initial||``;this.validator=e.validate||(()=>true);this.value=``;this.errorMsg=e.error||`Please Enter A Valid Value`;this.cursor=Number(!!this.initial);this.clear=l(``);this.render()}set value(e){if(!e&&this.initial){this.placeholder=true;this.rendered=n.gray(this.transform.render(this.initial))}else{this.placeholder=false;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.fire();this.render()}abort(){this.value=this.value||this.initial;this.done=this.aborted=true;this.error=false;this.red=false;this.fire();this.render();this.out.write("\n");this.close()}validate(){var e=this;return _asyncToGenerator(function*(){let t=yield e.validator(e.value);if(typeof t===`string`){e.errorMsg=t;t=false}e.error=!t})()}submit(){var e=this;return _asyncToGenerator(function*(){e.value=e.value||e.initial;yield e.validate();if(e.error){e.red=true;e.fire();e.render();return}e.done=true;e.aborted=false;e.fire();e.render();e.out.write("\n");e.close()})()}next(){if(!this.placeholder)return this.bell();this.value=this.initial;this.cursor=this.rendered.length;this.fire();this.render()}moveCursor(e){if(this.placeholder)return;this.cursor=this.cursor+e}_(e,t){let r=this.value.slice(0,this.cursor);let n=this.value.slice(this.cursor);this.value=`${r}${e}${n}`;this.red=false;this.cursor=this.placeholder?0:r.length+1;this.render()}delete(){if(this.cursor===0)return this.bell();let e=this.value.slice(0,this.cursor-1);let t=this.value.slice(this.cursor);this.value=`${e}${t}`;this.red=false;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);let t=this.value.slice(this.cursor+1);this.value=`${e}${t}`;this.red=false;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()}render(){if(this.closed)return;if(!this.firstRender){if(this.outputError)this.out.write(a.down(h(this.outputError)-1)+l(this.outputError));this.out.write(l(this.outputText))}super.render();this.outputError="";this.outputText=[c.symbol(this.done,this.aborted),n.bold(this.msg),c.delimiter(this.done),this.red?n.red(this.rendered):this.rendered].join(` `);if(this.error){this.outputError+=this.errorMsg.split(`\n`).reduce((e,t,r)=>e+`\n${r?" ":f.pointerSmall} ${n.red().italic(t)}`,``)}this.out.write(o.line+a.to(0)+this.outputText+a.save+this.outputError+a.restore)}}e.exports=TextPrompt},8001:(e,t,r)=>{"use strict";const n=r(5215);const i=r(461);const s=r(8091),o=s.style,a=s.clear;const u=r(9571),c=u.cursor,l=u.erase;class TogglePrompt extends i{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()}abort(){this.done=this.aborted=true;this.fire();this.render();this.out.write("\n");this.close()}submit(){this.done=true;this.aborted=false;this.fire();this.render();this.out.write("\n");this.close()}deactivate(){if(this.value===false)return this.bell();this.value=false;this.render()}activate(){if(this.value===true)return this.bell();this.value=true;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,t){if(e===" "){this.value=!this.value}else if(e==="1"){this.value=true}else if(e==="0"){this.value=false}else return this.bell();this.render()}render(){if(this.closed)return;if(this.firstRender)this.out.write(c.hide);else this.out.write(a(this.outputText));super.render();this.outputText=[o.symbol(this.done,this.aborted),n.bold(this.msg),o.delimiter(this.done),this.value?this.inactive:n.cyan().underline(this.inactive),n.gray("/"),this.value?n.cyan().underline(this.active):this.active].join(" ");this.out.write(l.line+c.to(0)+this.outputText)}}e.exports=TogglePrompt},5357:(e,t,r)=>{"use strict";function ownKeys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);if(t)n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable});r.push.apply(r,n)}return r}function _objectSpread(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};if(t%2){ownKeys(Object(r),true).forEach(function(t){_defineProperty(e,t,r[t])})}else if(Object.getOwnPropertyDescriptors){Object.defineProperties(e,Object.getOwnPropertyDescriptors(r))}else{ownKeys(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}}return e}function _defineProperty(e,t,r){if(t in e){Object.defineProperty(e,t,{value:r,enumerable:true,configurable:true,writable:true})}else{e[t]=r}return e}function asyncGeneratorStep(e,t,r,n,i,s,o){try{var a=e[s](o);var u=a.value}catch(e){r(e);return}if(a.done){t(u)}else{Promise.resolve(u).then(n,i)}}function _asyncToGenerator(e){return function(){var t=this,r=arguments;return new Promise(function(n,i){var s=e.apply(t,r);function _next(e){asyncGeneratorStep(s,n,i,_next,_throw,"next",e)}function _throw(e){asyncGeneratorStep(s,n,i,_next,_throw,"throw",e)}_next(undefined)})}}const n=r(7627);const i=["suggest","format","onState","validate","onRender","type"];const s=()=>{};function prompt(){return _prompt.apply(this,arguments)}function _prompt(){_prompt=_asyncToGenerator(function*(e=[],{onSubmit:t=s,onCancel:r=s}={}){const o={};const a=prompt._override||{};e=[].concat(e);let u,c,l,h,f,d;const p=function(){var e=_asyncToGenerator(function*(e,t,r=false){if(!r&&e.validate&&e.validate(t)!==true){return}return e.format?yield e.format(t,o):t});return function getFormattedAnswer(t,r){return e.apply(this,arguments)}}();var m=true;var y=false;var g=undefined;try{for(var v=e[Symbol.iterator](),b;!(m=(b=v.next()).done);m=true){c=b.value;var w=c;h=w.name;f=w.type;if(typeof f==="function"){f=yield f(u,_objectSpread({},o),c);c["type"]=f}if(!f)continue;for(let e in c){if(i.includes(e))continue;let t=c[e];c[e]=typeof t==="function"?yield t(u,_objectSpread({},o),d):t}d=c;if(typeof c.message!=="string"){throw new Error("prompt message is required")}var A=c;h=A.name;f=A.type;if(n[f]===void 0){throw new Error(`prompt type (${f}) is not defined`)}if(a[c.name]!==undefined){u=yield p(c,a[c.name]);if(u!==undefined){o[h]=u;continue}}try{u=prompt._injected?getInjectedAnswer(prompt._injected):yield n[f](c);o[h]=u=yield p(c,u,true);l=yield t(c,u,o)}catch(e){l=!(yield r(c,o))}if(l)return o}}catch(e){y=true;g=e}finally{try{if(!m&&v.return!=null){v.return()}}finally{if(y){throw g}}}return o});return _prompt.apply(this,arguments)}function getInjectedAnswer(e){const t=e.shift();if(t instanceof Error){throw t}return t}function inject(e){prompt._injected=(prompt._injected||[]).concat(e)}function override(e){prompt._override=Object.assign({},e)}e.exports=Object.assign(prompt,{prompt:prompt,prompts:n,inject:inject,override:override})},7627:(e,t,r)=>{"use strict";const n=t;const i=r(2838);const s=e=>e;function toPrompt(e,t,r={}){return new Promise((n,o)=>{const a=new i[e](t);const u=r.onAbort||s;const c=r.onSubmit||s;a.on("state",t.onState||s);a.on("submit",e=>n(c(e)));a.on("abort",e=>o(u(e)))})}n.text=(e=>toPrompt("TextPrompt",e));n.password=(e=>{e.style="password";return n.text(e)});n.invisible=(e=>{e.style="invisible";return n.text(e)});n.number=(e=>toPrompt("NumberPrompt",e));n.date=(e=>toPrompt("DatePrompt",e));n.confirm=(e=>toPrompt("ConfirmPrompt",e));n.list=(e=>{const t=e.separator||",";return toPrompt("TextPrompt",e,{onSubmit:e=>e.split(t).map(e=>e.trim())})});n.toggle=(e=>toPrompt("TogglePrompt",e));n.select=(e=>toPrompt("SelectPrompt",e));n.multiselect=(e=>{e.choices=[].concat(e.choices||[]);const t=e=>e.filter(e=>e.selected).map(e=>e.value);return toPrompt("MultiselectPrompt",e,{onAbort:t,onSubmit:t})});n.autocompleteMultiselect=(e=>{e.choices=[].concat(e.choices||[]);const t=e=>e.filter(e=>e.selected).map(e=>e.value);return toPrompt("AutocompleteMultiselectPrompt",e,{onAbort:t,onSubmit:t})});const o=(e,t)=>Promise.resolve(t.filter(t=>t.title.slice(0,e.length).toLowerCase()===e.toLowerCase()));n.autocomplete=(e=>{e.suggest=e.suggest||o;e.choices=[].concat(e.choices||[]);return toPrompt("AutocompletePrompt",e)})},9001:e=>{"use strict";e.exports=((e,t)=>{if(e.meta)return;if(e.ctrl){if(e.name==="a")return"first";if(e.name==="c")return"abort";if(e.name==="d")return"abort";if(e.name==="e")return"last";if(e.name==="g")return"reset"}if(t){if(e.name==="j")return"down";if(e.name==="k")return"up"}if(e.name==="return")return"submit";if(e.name==="enter")return"submit";if(e.name==="backspace")return"delete";if(e.name==="delete")return"deleteForward";if(e.name==="abort")return"abort";if(e.name==="escape")return"abort";if(e.name==="tab")return"next";if(e.name==="pagedown")return"nextPage";if(e.name==="pageup")return"prevPage";if(e.name==="home")return"home";if(e.name==="end")return"end";if(e.name==="up")return"up";if(e.name==="down")return"down";if(e.name==="right")return"right";if(e.name==="left")return"left";return false})},3952:(e,t,r)=>{"use strict";const n=r(8007);const i=r(9571),s=i.erase,o=i.cursor;const a=e=>[...n(e)].length;e.exports=function(e,t=process.stdout.columns){if(!t)return s.line+o.to(0);let r=0;const n=e.split(/\r?\n/);var i=true;var u=false;var c=undefined;try{for(var l=n[Symbol.iterator](),h;!(i=(h=l.next()).done);i=true){let e=h.value;r+=1+Math.floor(Math.max(a(e)-1,0)/t)}}catch(e){u=true;c=e}finally{try{if(!i&&l.return!=null){l.return()}}finally{if(u){throw c}}}return s.lines(r)}},4464:e=>{"use strict";e.exports=((e,t,r)=>{r=r||t;let n=Math.min(t-r,e-Math.floor(r/2));if(n<0)n=0;let i=Math.min(n+r,t);return{startIndex:n,endIndex:i}})},8845:e=>{"use strict";const t={arrowUp:"↑",arrowDown:"↓",arrowLeft:"←",arrowRight:"→",radioOn:"◉",radioOff:"◯",tick:"✔",cross:"✖",ellipsis:"…",pointerSmall:"›",line:"─",pointer:"❯"};const r={arrowUp:t.arrowUp,arrowDown:t.arrowDown,arrowLeft:t.arrowLeft,arrowRight:t.arrowRight,radioOn:"(*)",radioOff:"( )",tick:"√",cross:"×",ellipsis:"...",pointerSmall:"»",line:"─",pointer:">"};const n=process.platform==="win32"?r:t;e.exports=n},8091:(e,t,r)=>{"use strict";e.exports={action:r(9001),clear:r(3952),style:r(8295),strip:r(8007),figures:r(8845),lines:r(3802),wrap:r(1288),entriesToDisplay:r(4464)}},3802:(e,t,r)=>{"use strict";const n=r(8007);e.exports=function(e,t=process.stdout.columns){let r=String(n(e)||"").split(/\r?\n/);if(!t)return r.length;return r.map(e=>Math.ceil(e.length/t)).reduce((e,t)=>e+t)}},8007:e=>{"use strict";e.exports=(e=>{const t=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:[a-zA-Z\\d]*(?:;[a-zA-Z\\d]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PRZcf-ntqry=><~]))"].join("|");const r=new RegExp(t,"g");return typeof e==="string"?e.replace(r,""):e})},8295:(e,t,r)=>{"use strict";const n=r(5215);const i=r(8845);const s=Object.freeze({password:{scale:1,render:e=>"*".repeat(e.length)},emoji:{scale:2,render:e=>"😃".repeat(e.length)},invisible:{scale:0,render:e=>""},default:{scale:1,render:e=>`${e}`}});const o=e=>s[e]||s.default;const a=Object.freeze({aborted:n.red(i.cross),done:n.green(i.tick),default:n.cyan("?")});const u=(e,t)=>t?a.aborted:e?a.done:a.default;const c=e=>n.gray(e?i.ellipsis:i.pointerSmall);const l=(e,t)=>n.gray(e?t?i.pointerSmall:"+":i.line);e.exports={styles:s,render:o,symbols:a,symbol:u,delimiter:c,item:l}},1288:e=>{"use strict";e.exports=((e,t={})=>{const r=Number.isSafeInteger(parseInt(t.margin))?new Array(parseInt(t.margin)).fill(" ").join(""):t.margin||"";const n=t.width||process.stdout.columns;return(e||"").split(/\r?\n/g).map(e=>e.split(/\s+/g).reduce((e,t)=>{if(t.length+r.length>=n||e[e.length-1].length+t.length+1<n)e[e.length-1]+=` ${t}`;else e.push(`${r}${t}`);return e},[r]).join("\n")).join("\n")})},9646:(e,t,r)=>{function isNodeLT(e){e=(Array.isArray(e)?e:e.split(".")).map(Number);let t=0,r=process.versions.node.split(".").map(Number);for(;t<e.length;t++){if(r[t]>e[t])return false;if(e[t]>r[t])return true}return false}e.exports=isNodeLT("8.6.0")?r(5357):r(5379)},8377:e=>{"use strict";class DatePart{constructor({token:e,date:t,parts:r,locales:n}){this.token=e;this.date=t||new Date;this.parts=r||[this];this.locales=n||{}}up(){}down(){}next(){const e=this.parts.indexOf(this);return this.parts.find((t,r)=>r>e&&t instanceof DatePart)}setTo(e){}prev(){let e=[].concat(this.parts).reverse();const t=e.indexOf(this);return e.find((e,r)=>r>t&&e instanceof DatePart)}toString(){return String(this.date)}}e.exports=DatePart},6784:(e,t,r)=>{"use strict";const n=r(8377);const i=e=>{e=e%10;return e===1?"st":e===2?"nd":e===3?"rd":"th"};class Day extends n{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();let t=this.date.getDay();return this.token==="DD"?String(e).padStart(2,"0"):this.token==="Do"?e+i(e):this.token==="d"?t+1:this.token==="ddd"?this.locales.weekdaysShort[t]:this.token==="dddd"?this.locales.weekdays[t]:e}}e.exports=Day},754:(e,t,r)=>{"use strict";const n=r(8377);class Hours extends n{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();if(/h/.test(this.token))e=e%12||12;return this.token.length>1?String(e).padStart(2,"0"):e}}e.exports=Hours},8108:(e,t,r)=>{"use strict";e.exports={DatePart:r(8377),Meridiem:r(2616),Day:r(6784),Hours:r(754),Milliseconds:r(4316),Minutes:r(1770),Month:r(8086),Seconds:r(1823),Year:r(9208)}},2616:(e,t,r)=>{"use strict";const n=r(8377);class Meridiem extends n{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}}e.exports=Meridiem},4316:(e,t,r)=>{"use strict";const n=r(8377);class Milliseconds extends n{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)}}e.exports=Milliseconds},1770:(e,t,r)=>{"use strict";const n=r(8377);class Minutes extends n{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}}e.exports=Minutes},8086:(e,t,r)=>{"use strict";const n=r(8377);class Month extends n{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();let t=this.token.length;return t===2?String(e+1).padStart(2,"0"):t===3?this.locales.monthsShort[e]:t===4?this.locales.months[e]:String(e+1)}}e.exports=Month},1823:(e,t,r)=>{"use strict";const n=r(8377);class Seconds extends n{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}}e.exports=Seconds},9208:(e,t,r)=>{"use strict";const n=r(8377);class Year extends n{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}}e.exports=Year},1098:(e,t,r)=>{"use strict";const n=r(5215);const i=r(4185);const{erase:s,cursor:o}=r(9571);const{style:a,clear:u,figures:c,wrap:l,entriesToDisplay:h}=r(9501);const f=(e,t)=>e[t]&&(e[t].value||e[t].title||e[t]);const d=(e,t)=>e[t]&&(e[t].title||e[t].value||e[t]);const p=(e,t)=>{const r=e.findIndex(e=>e.value===t||e.title===t);return r>-1?r:undefined};class AutocompletePrompt extends i{constructor(e={}){super(e);this.msg=e.message;this.suggest=e.suggest;this.choices=e.choices;this.initial=typeof e.initial==="number"?e.initial:p(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.suggestions=[];this.input="";this.limit=e.limit||10;this.cursor=0;this.transform=a.render(e.style);this.scale=this.transform.scale;this.render=this.render.bind(this);this.complete=this.complete.bind(this);this.clear=u("");this.complete(this.render);this.render()}set fallback(e){this._fb=Number.isSafeInteger(parseInt(e))?parseInt(e):e}get fallback(){let e;if(typeof this._fb==="number")e=this.choices[this._fb];else if(typeof this._fb==="string")e={title:this._fb};return e||this._fb||{title:this.i18n.noMatches}}moveSelect(e){this.select=e;if(this.suggestions.length>0)this.value=f(this.suggestions,e);else this.value=this.fallback.value;this.fire()}async complete(e){const t=this.completing=this.suggest(this.input,this.choices);const r=await t;if(this.completing!==t)return;this.suggestions=r.map((e,t,r)=>({title:d(r,t),value:f(r,t),description:e.description}));this.completing=false;const n=Math.max(r.length-1,0);this.moveSelect(Math.min(n,this.select));e&&e()}reset(){this.input="";this.complete(()=>{this.moveSelect(this.initial!==void 0?this.initial:0);this.render()});this.render()}abort(){this.done=this.aborted=true;this.fire();this.render();this.out.write("\n");this.close()}submit(){this.done=true;this.aborted=false;this.fire();this.render();this.out.write("\n");this.close()}_(e,t){let r=this.input.slice(0,this.cursor);let n=this.input.slice(this.cursor);this.input=`${r}${e}${n}`;this.cursor=r.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);let t=this.input.slice(this.cursor);this.input=`${e}${t}`;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);let t=this.input.slice(this.cursor+1);this.input=`${e}${t}`;this.complete(this.render);this.render()}first(){this.moveSelect(0);this.render()}last(){this.moveSelect(this.suggestions.length-1);this.render()}up(){if(this.select<=0)return this.bell();this.moveSelect(this.select-1);this.render()}down(){if(this.select>=this.suggestions.length-1)return this.bell();this.moveSelect(this.select+1);this.render()}next(){if(this.select===this.suggestions.length-1){this.moveSelect(0)}else 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,t,r,i){let s;let o=r?c.arrowUp:i?c.arrowDown:" ";let a=t?n.cyan().underline(e.title):e.title;o=(t?n.cyan(c.pointer)+" ":" ")+o;if(e.description){s=` - ${e.description}`;if(o.length+a.length+s.length>=this.out.columns||e.description.split(/\r?\n/).length>1){s="\n"+l(e.description,{margin:3,width:this.out.columns})}}return o+" "+a+n.gray(s||"")}render(){if(this.closed)return;if(this.firstRender)this.out.write(o.hide);else this.out.write(u(this.outputText));super.render();let{startIndex:e,endIndex:t}=h(this.select,this.choices.length,this.limit);this.outputText=[a.symbol(this.done,this.aborted),n.bold(this.msg),a.delimiter(this.completing),this.done&&this.suggestions[this.select]?this.suggestions[this.select].title:this.rendered=this.transform.render(this.input)].join(" ");if(!this.done){const r=this.suggestions.slice(e,t).map((r,n)=>this.renderOption(r,this.select===n+e,n===0&&e>0,n+e===t-1&&t<this.choices.length)).join("\n");this.outputText+=`\n`+(r||n.gray(this.fallback.title))}this.out.write(s.line+o.to(0)+this.outputText)}}e.exports=AutocompletePrompt},8178:(e,t,r)=>{"use strict";const n=r(5215);const{cursor:i}=r(9571);const s=r(1944);const{clear:o,style:a,figures:u}=r(9501);class AutocompleteMultiselectPrompt extends s{constructor(e={}){e.overrideRender=true;super(e);this.inputValue="";this.clear=o("");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(){if(this.cursor===0){this.cursor=this.filteredOptions.length-1}else{this.cursor--}this.render()}down(){if(this.cursor===this.filteredOptions.length-1){this.cursor=0}else{this.cursor++}this.render()}left(){this.filteredOptions[this.cursor].selected=false;this.render()}right(){if(this.value.filter(e=>e.selected).length>=this.maxChoices)return this.bell();this.filteredOptions[this.cursor].selected=true;this.render()}delete(){if(this.inputValue.length){this.inputValue=this.inputValue.substr(0,this.inputValue.length-1);this.updateFilteredOptions()}}updateFilteredOptions(){const e=this.filteredOptions[this.cursor];this.filteredOptions=this.value.filter(e=>{if(this.inputValue){if(typeof e.title==="string"){if(e.title.toLowerCase().includes(this.inputValue.toLowerCase())){return true}}if(typeof e.value==="string"){if(e.value.toLowerCase().includes(this.inputValue.toLowerCase())){return true}}return false}return true});const t=this.filteredOptions.findIndex(t=>t===e);this.cursor=t<0?0:t;this.render()}handleSpaceToggle(){const e=this.filteredOptions[this.cursor];if(e.selected){e.selected=false;this.render()}else if(e.disabled||this.value.filter(e=>e.selected).length>=this.maxChoices){return this.bell()}else{e.selected=true;this.render()}}handleInputChange(e){this.inputValue=this.inputValue+e;this.updateFilteredOptions()}_(e,t){if(e===" "){this.handleSpaceToggle()}else{this.handleInputChange(e)}}renderInstructions(){if(this.instructions===undefined||this.instructions){if(typeof this.instructions==="string"){return this.instructions}return`\nInstructions:\n ${u.arrowUp}/${u.arrowDown}: Highlight option\n ${u.arrowLeft}/${u.arrowRight}/[space]: Toggle selection\n [a,b,c]/delete: Filter choices\n enter/return: Complete answer\n`}return""}renderCurrentInput(){return`\nFiltered results for: ${this.inputValue?this.inputValue:n.gray("Enter something to filter")}\n`}renderOption(e,t,r){let i;if(t.disabled)i=e===r?n.gray().underline(t.title):n.strikethrough().gray(t.title);else i=e===r?n.cyan().underline(t.title):t.title;return(t.selected?n.green(u.radioOn):u.radioOff)+" "+i}renderDoneOrInstructions(){if(this.done){return this.value.filter(e=>e.selected).map(e=>e.title).join(", ")}const e=[n.gray(this.hint),this.renderInstructions(),this.renderCurrentInput()];if(this.filteredOptions.length&&this.filteredOptions[this.cursor].disabled){e.push(n.yellow(this.warn))}return e.join(" ")}render(){if(this.closed)return;if(this.firstRender)this.out.write(i.hide);super.render();let e=[a.symbol(this.done,this.aborted),n.bold(this.msg),a.delimiter(false),this.renderDoneOrInstructions()].join(" ");if(this.showMinError){e+=n.red(`You must select a minimum of ${this.minSelected} choices.`);this.showMinError=false}e+=this.renderOptions(this.filteredOptions);this.out.write(this.clear+e);this.clear=o(e)}}e.exports=AutocompleteMultiselectPrompt},1491:(e,t,r)=>{const n=r(5215);const i=r(4185);const{style:s,clear:o}=r(9501);const{erase:a,cursor:u}=r(9571);class ConfirmPrompt extends i{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()}abort(){this.done=this.aborted=true;this.fire();this.render();this.out.write("\n");this.close()}submit(){this.value=this.value||false;this.done=true;this.aborted=false;this.fire();this.render();this.out.write("\n");this.close()}_(e,t){if(e.toLowerCase()==="y"){this.value=true;return this.submit()}if(e.toLowerCase()==="n"){this.value=false;return this.submit()}return this.bell()}render(){if(this.closed)return;if(this.firstRender)this.out.write(u.hide);else this.out.write(o(this.outputText));super.render();this.outputText=[s.symbol(this.done,this.aborted),n.bold(this.msg),s.delimiter(this.done),this.done?this.value?this.yesMsg:this.noMsg:n.gray(this.initialValue?this.yesOption:this.noOption)].join(" ");this.out.write(a.line+u.to(0)+this.outputText)}}e.exports=ConfirmPrompt},5667:(e,t,r)=>{"use strict";const n=r(5215);const i=r(4185);const{style:s,clear:o,figures:a}=r(9501);const{erase:u,cursor:c}=r(9571);const{DatePart:l,Meridiem:h,Day:f,Hours:d,Milliseconds:p,Minutes:m,Month:y,Seconds:g,Year:v}=r(8108);const b=/\\(.)|"((?:\\["\\]|[^"])+)"|(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;const w={1:({token:e})=>e.replace(/\\(.)/g,"$1"),2:e=>new f(e),3:e=>new y(e),4:e=>new v(e),5:e=>new h(e),6:e=>new d(e),7:e=>new m(e),8:e=>new g(e),9:e=>new p(e)};const A={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(",")};class DatePrompt extends i{constructor(e={}){super(e);this.msg=e.message;this.cursor=0;this.typed="";this.locales=Object.assign(A,e.locales);this._date=e.initial||new Date;this.errorMsg=e.error||"Please Enter A Valid Value";this.validator=e.validate||(()=>true);this.mask=e.mask||"YYYY-MM-DD HH:mm:ss";this.clear=o("");this.render()}get value(){return this.date}get date(){return this._date}set date(e){if(e)this._date.setTime(e.getTime())}set mask(e){let t;this.parts=[];while(t=b.exec(e)){let e=t.shift();let r=t.findIndex(e=>e!=null);this.parts.push(r in w?w[r]({token:t[r]||e,date:this.date,parts:this.parts,locales:this.locales}):t[r]||e)}let r=this.parts.reduce((e,t)=>{if(typeof t==="string"&&typeof e[e.length-1]==="string")e[e.length-1]+=t;else e.push(t);return e},[]);this.parts.splice(0);this.parts.push(...r);this.reset()}moveCursor(e){this.typed="";this.cursor=e;this.fire()}reset(){this.moveCursor(this.parts.findIndex(e=>e instanceof l));this.fire();this.render()}abort(){this.done=this.aborted=true;this.error=false;this.fire();this.render();this.out.write("\n");this.close()}async validate(){let e=await this.validator(this.value);if(typeof e==="string"){this.errorMsg=e;e=false}this.error=!e}async submit(){await this.validate();if(this.error){this.color="red";this.fire();this.render();return}this.done=true;this.aborted=false;this.fire();this.render();this.out.write("\n");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(e=>e instanceof l));this.render()}_(e){if(/\d/.test(e)){this.typed+=e;this.parts[this.cursor].setTo(this.typed);this.render()}}render(){if(this.closed)return;if(this.firstRender)this.out.write(c.hide);else this.out.write(o(this.outputText));super.render();this.outputText=[s.symbol(this.done,this.aborted),n.bold(this.msg),s.delimiter(false),this.parts.reduce((e,t,r)=>e.concat(r===this.cursor&&!this.done?n.cyan().underline(t.toString()):t),[]).join("")].join(" ");if(this.error){this.outputText+=this.errorMsg.split("\n").reduce((e,t,r)=>e+`\n${r?` `:a.pointerSmall} ${n.red().italic(t)}`,``)}this.out.write(u.line+c.to(0)+this.outputText)}}e.exports=DatePrompt},9098:(e,t,r)=>{"use strict";e.exports={TextPrompt:r(5387),SelectPrompt:r(6514),TogglePrompt:r(2093),DatePrompt:r(5667),NumberPrompt:r(2952),MultiselectPrompt:r(1944),AutocompletePrompt:r(1098),AutocompleteMultiselectPrompt:r(8178),ConfirmPrompt:r(1491)}},1944:(e,t,r)=>{"use strict";const n=r(5215);const{cursor:i}=r(9571);const s=r(4185);const{clear:o,figures:a,style:u,wrap:c,entriesToDisplay:l}=r(9501);class MultiselectPrompt extends s{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=false;this.maxChoices=e.max;this.instructions=e.instructions;this.optionsPerPage=e.optionsPerPage||10;this.value=e.choices.map((e,t)=>{if(typeof e==="string")e={title:e,value:t};return{title:e&&(e.title||e.value||e),description:e&&e.description,value:e&&(e.value===undefined?t:e.value),selected:e&&e.selected,disabled:e&&e.disabled}});this.clear=o("");if(!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)}abort(){this.done=this.aborted=true;this.fire();this.render();this.out.write("\n");this.close()}submit(){const e=this.value.filter(e=>e.selected);if(this.minSelected&&e.length<this.minSelected){this.showMinError=true;this.render()}else{this.done=true;this.aborted=false;this.fire();this.render();this.out.write("\n");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(){if(this.cursor===0){this.cursor=this.value.length-1}else{this.cursor--}this.render()}down(){if(this.cursor===this.value.length-1){this.cursor=0}else{this.cursor++}this.render()}left(){this.value[this.cursor].selected=false;this.render()}right(){if(this.value.filter(e=>e.selected).length>=this.maxChoices)return this.bell();this.value[this.cursor].selected=true;this.render()}handleSpaceToggle(){const e=this.value[this.cursor];if(e.selected){e.selected=false;this.render()}else if(e.disabled||this.value.filter(e=>e.selected).length>=this.maxChoices){return this.bell()}else{e.selected=true;this.render()}}toggleAll(){if(this.maxChoices!==undefined||this.value[this.cursor].disabled){return this.bell()}const e=!this.value[this.cursor].selected;this.value.filter(e=>!e.disabled).forEach(t=>t.selected=e);this.render()}_(e,t){if(e===" "){this.handleSpaceToggle()}else if(e==="a"){this.toggleAll()}else{return this.bell()}}renderInstructions(){if(this.instructions===undefined||this.instructions){if(typeof this.instructions==="string"){return this.instructions}return"\nInstructions:\n"+` ${a.arrowUp}/${a.arrowDown}: Highlight option\n`+` ${a.arrowLeft}/${a.arrowRight}/[space]: Toggle selection\n`+(this.maxChoices===undefined?` a: Toggle all\n`:"")+` enter/return: Complete answer`}return""}renderOption(e,t,r,i){const s=(t.selected?n.green(a.radioOn):a.radioOff)+" "+i+" ";let o,u;if(t.disabled){o=e===r?n.gray().underline(t.title):n.strikethrough().gray(t.title)}else{o=e===r?n.cyan().underline(t.title):t.title;if(e===r&&t.description){u=` - ${t.description}`;if(s.length+o.length+u.length>=this.out.columns||t.description.split(/\r?\n/).length>1){u="\n"+c(t.description,{margin:s.length,width:this.out.columns})}}}return s+o+n.gray(u||"")}paginateOptions(e){if(e.length===0){return n.red("No matches for this query.")}let{startIndex:t,endIndex:r}=l(this.cursor,e.length,this.optionsPerPage);let i,s=[];for(let n=t;n<r;n++){if(n===t&&t>0){i=a.arrowUp}else if(n===r-1&&r<e.length){i=a.arrowDown}else{i=" "}s.push(this.renderOption(this.cursor,e[n],n,i))}return"\n"+s.join("\n")}renderOptions(e){if(!this.done){return this.paginateOptions(e)}return""}renderDoneOrInstructions(){if(this.done){return this.value.filter(e=>e.selected).map(e=>e.title).join(", ")}const e=[n.gray(this.hint),this.renderInstructions()];if(this.value[this.cursor].disabled){e.push(n.yellow(this.warn))}return e.join(" ")}render(){if(this.closed)return;if(this.firstRender)this.out.write(i.hide);super.render();let e=[u.symbol(this.done,this.aborted),n.bold(this.msg),u.delimiter(false),this.renderDoneOrInstructions()].join(" ");if(this.showMinError){e+=n.red(`You must select a minimum of ${this.minSelected} choices.`);this.showMinError=false}e+=this.renderOptions(this.value);this.out.write(this.clear+e);this.clear=o(e)}}e.exports=MultiselectPrompt},2952:(e,t,r)=>{const n=r(5215);const i=r(4185);const{cursor:s,erase:o}=r(9571);const{style:a,figures:u,clear:c,lines:l}=r(9501);const h=/[0-9]/;const f=e=>e!==undefined;const d=(e,t)=>{let r=Math.pow(10,t);return Math.round(e*r)/r};class NumberPrompt extends i{constructor(e={}){super(e);this.transform=a.render(e.style);this.msg=e.message;this.initial=f(e.initial)?e.initial:"";this.float=!!e.float;this.round=e.round||2;this.inc=e.increment||1;this.min=f(e.min)?e.min:-Infinity;this.max=f(e.max)?e.max:Infinity;this.errorMsg=e.error||`Please Enter A Valid Value`;this.validator=e.validate||(()=>true);this.color=`cyan`;this.value=``;this.typed=``;this.lastHit=0;this.render()}set value(e){if(!e&&e!==0){this.placeholder=true;this.rendered=n.gray(this.transform.render(`${this.initial}`));this._value=``}else{this.placeholder=false;this.rendered=this.transform.render(`${d(e,this.round)}`);this._value=d(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||h.test(e)}reset(){this.typed=``;this.value=``;this.fire();this.render()}abort(){let e=this.value;this.value=e!==``?e:this.initial;this.done=this.aborted=true;this.error=false;this.fire();this.render();this.out.write(`\n`);this.close()}async validate(){let e=await this.validator(this.value);if(typeof e===`string`){this.errorMsg=e;e=false}this.error=!e}async submit(){await this.validate();if(this.error){this.color=`red`;this.fire();this.render();return}let e=this.value;this.value=e!==``?e:this.initial;this.done=true;this.aborted=false;this.error=false;this.fire();this.render();this.out.write(`\n`);this.close()}up(){this.typed=``;if(this.value===""){this.value=this.min-this.inc}if(this.value>=this.max)return this.bell();this.value+=this.inc;this.color=`cyan`;this.fire();this.render()}down(){this.typed=``;if(this.value===""){this.value=this.min+this.inc}if(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))||``;if(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,t){if(!this.valid(e))return this.bell();const r=Date.now();if(r-this.lastHit>1e3)this.typed=``;this.typed+=e;this.lastHit=r;this.color=`cyan`;if(e===`.`)return this.fire();this.value=Math.min(this.parse(this.typed),this.max);if(this.value>this.max)this.value=this.max;if(this.value<this.min)this.value=this.min;this.fire();this.render()}render(){if(this.closed)return;if(!this.firstRender){if(this.outputError)this.out.write(s.down(l(this.outputError)-1)+c(this.outputError));this.out.write(c(this.outputText))}super.render();this.outputError="";this.outputText=[a.symbol(this.done,this.aborted),n.bold(this.msg),a.delimiter(this.done),!this.done||!this.done&&!this.placeholder?n[this.color]().underline(this.rendered):this.rendered].join(` `);if(this.error){this.outputError+=this.errorMsg.split(`\n`).reduce((e,t,r)=>e+`\n${r?` `:u.pointerSmall} ${n.red().italic(t)}`,``)}this.out.write(o.line+s.to(0)+this.outputText+s.save+this.outputError+s.restore)}}e.exports=NumberPrompt},4185:(e,t,r)=>{"use strict";const n=r(1058);const{action:i}=r(9501);const s=r(8614);const{beep:o,cursor:a}=r(9571);const u=r(5215);class Prompt extends s{constructor(e={}){super();this.firstRender=true;this.in=e.stdin||process.stdin;this.out=e.stdout||process.stdout;this.onRender=(e.onRender||(()=>void 0)).bind(this);const t=n.createInterface(this.in);n.emitKeypressEvents(this.in,t);if(this.in.isTTY)this.in.setRawMode(true);const r=["SelectPrompt","MultiselectPrompt"].indexOf(this.constructor.name)>-1;const s=(e,t)=>{let n=i(t,r);if(n===false){this._&&this._(e,t)}else if(typeof this[n]==="function"){this[n](t)}else{this.bell()}};this.close=(()=>{this.out.write(a.show);this.in.removeListener("keypress",s);if(this.in.isTTY)this.in.setRawMode(false);t.close();this.emit(this.aborted?"abort":"submit",this.value);this.closed=true});this.in.on("keypress",s)}fire(){this.emit("state",{value:this.value,aborted:!!this.aborted})}bell(){this.out.write(o)}render(){this.onRender(u);if(this.firstRender)this.firstRender=false}}e.exports=Prompt},6514:(e,t,r)=>{"use strict";const n=r(5215);const i=r(4185);const{style:s,clear:o,figures:a,wrap:u,entriesToDisplay:c}=r(9501);const{cursor:l}=r(9571);class SelectPrompt extends i{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((e,t)=>{if(typeof e==="string")e={title:e,value:t};return{title:e&&(e.title||e.value||e),value:e&&(e.value===undefined?t:e.value),description:e&&e.description,selected:e&&e.selected,disabled:e&&e.disabled}});this.optionsPerPage=e.optionsPerPage||10;this.value=(this.choices[this.cursor]||{}).value;this.clear=o("");this.render()}moveCursor(e){this.cursor=e;this.value=this.choices[e].value;this.fire()}reset(){this.moveCursor(0);this.fire();this.render()}abort(){this.done=this.aborted=true;this.fire();this.render();this.out.write("\n");this.close()}submit(){if(!this.selection.disabled){this.done=true;this.aborted=false;this.fire();this.render();this.out.write("\n");this.close()}else this.bell()}first(){this.moveCursor(0);this.render()}last(){this.moveCursor(this.choices.length-1);this.render()}up(){if(this.cursor===0)return this.bell();this.moveCursor(this.cursor-1);this.render()}down(){if(this.cursor===this.choices.length-1)return this.bell();this.moveCursor(this.cursor+1);this.render()}next(){this.moveCursor((this.cursor+1)%this.choices.length);this.render()}_(e,t){if(e===" ")return this.submit()}get selection(){return this.choices[this.cursor]}render(){if(this.closed)return;if(this.firstRender)this.out.write(l.hide);else this.out.write(o(this.outputText));super.render();let{startIndex:e,endIndex:t}=c(this.cursor,this.choices.length,this.optionsPerPage);this.outputText=[s.symbol(this.done,this.aborted),n.bold(this.msg),s.delimiter(false),this.done?this.selection.title:this.selection.disabled?n.yellow(this.warn):n.gray(this.hint)].join(" ");if(!this.done){this.outputText+="\n";for(let r=e;r<t;r++){let i,s,o="",c=this.choices[r];if(r===e&&e>0){s=a.arrowUp}else if(r===t-1&&t<this.choices.length){s=a.arrowDown}else{s=" "}if(c.disabled){i=this.cursor===r?n.gray().underline(c.title):n.strikethrough().gray(c.title);s=(this.cursor===r?n.bold().gray(a.pointer)+" ":" ")+s}else{i=this.cursor===r?n.cyan().underline(c.title):c.title;s=(this.cursor===r?n.cyan(a.pointer)+" ":" ")+s;if(c.description&&this.cursor===r){o=` - ${c.description}`;if(s.length+i.length+o.length>=this.out.columns||c.description.split(/\r?\n/).length>1){o="\n"+u(c.description,{margin:3,width:this.out.columns})}}}this.outputText+=`${s} ${i}${n.gray(o)}\n`}}this.out.write(this.outputText)}}e.exports=SelectPrompt},5387:(e,t,r)=>{const n=r(5215);const i=r(4185);const{erase:s,cursor:o}=r(9571);const{style:a,clear:u,lines:c,figures:l}=r(9501);class TextPrompt extends i{constructor(e={}){super(e);this.transform=a.render(e.style);this.scale=this.transform.scale;this.msg=e.message;this.initial=e.initial||``;this.validator=e.validate||(()=>true);this.value=``;this.errorMsg=e.error||`Please Enter A Valid Value`;this.cursor=Number(!!this.initial);this.clear=u(``);this.render()}set value(e){if(!e&&this.initial){this.placeholder=true;this.rendered=n.gray(this.transform.render(this.initial))}else{this.placeholder=false;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.fire();this.render()}abort(){this.value=this.value||this.initial;this.done=this.aborted=true;this.error=false;this.red=false;this.fire();this.render();this.out.write("\n");this.close()}async validate(){let e=await this.validator(this.value);if(typeof e===`string`){this.errorMsg=e;e=false}this.error=!e}async submit(){this.value=this.value||this.initial;await this.validate();if(this.error){this.red=true;this.fire();this.render();return}this.done=true;this.aborted=false;this.fire();this.render();this.out.write("\n");this.close()}next(){if(!this.placeholder)return this.bell();this.value=this.initial;this.cursor=this.rendered.length;this.fire();this.render()}moveCursor(e){if(this.placeholder)return;this.cursor=this.cursor+e}_(e,t){let r=this.value.slice(0,this.cursor);let n=this.value.slice(this.cursor);this.value=`${r}${e}${n}`;this.red=false;this.cursor=this.placeholder?0:r.length+1;this.render()}delete(){if(this.cursor===0)return this.bell();let e=this.value.slice(0,this.cursor-1);let t=this.value.slice(this.cursor);this.value=`${e}${t}`;this.red=false;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);let t=this.value.slice(this.cursor+1);this.value=`${e}${t}`;this.red=false;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()}render(){if(this.closed)return;if(!this.firstRender){if(this.outputError)this.out.write(o.down(c(this.outputError)-1)+u(this.outputError));this.out.write(u(this.outputText))}super.render();this.outputError="";this.outputText=[a.symbol(this.done,this.aborted),n.bold(this.msg),a.delimiter(this.done),this.red?n.red(this.rendered):this.rendered].join(` `);if(this.error){this.outputError+=this.errorMsg.split(`\n`).reduce((e,t,r)=>e+`\n${r?" ":l.pointerSmall} ${n.red().italic(t)}`,``)}this.out.write(s.line+o.to(0)+this.outputText+o.save+this.outputError+o.restore)}}e.exports=TextPrompt},2093:(e,t,r)=>{const n=r(5215);const i=r(4185);const{style:s,clear:o}=r(9501);const{cursor:a,erase:u}=r(9571);class TogglePrompt extends i{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()}abort(){this.done=this.aborted=true;this.fire();this.render();this.out.write("\n");this.close()}submit(){this.done=true;this.aborted=false;this.fire();this.render();this.out.write("\n");this.close()}deactivate(){if(this.value===false)return this.bell();this.value=false;this.render()}activate(){if(this.value===true)return this.bell();this.value=true;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,t){if(e===" "){this.value=!this.value}else if(e==="1"){this.value=true}else if(e==="0"){this.value=false}else return this.bell();this.render()}render(){if(this.closed)return;if(this.firstRender)this.out.write(a.hide);else this.out.write(o(this.outputText));super.render();this.outputText=[s.symbol(this.done,this.aborted),n.bold(this.msg),s.delimiter(this.done),this.value?this.inactive:n.cyan().underline(this.inactive),n.gray("/"),this.value?n.cyan().underline(this.active):this.active].join(" ");this.out.write(u.line+a.to(0)+this.outputText)}}e.exports=TogglePrompt},5379:(e,t,r)=>{"use strict";const n=r(1558);const i=["suggest","format","onState","validate","onRender","type"];const s=()=>{};async function prompt(e=[],{onSubmit:t=s,onCancel:r=s}={}){const o={};const a=prompt._override||{};e=[].concat(e);let u,c,l,h,f,d;const p=async(e,t,r=false)=>{if(!r&&e.validate&&e.validate(t)!==true){return}return e.format?await e.format(t,o):t};for(c of e){({name:h,type:f}=c);if(typeof f==="function"){f=await f(u,{...o},c);c["type"]=f}if(!f)continue;for(let e in c){if(i.includes(e))continue;let t=c[e];c[e]=typeof t==="function"?await t(u,{...o},d):t}d=c;if(typeof c.message!=="string"){throw new Error("prompt message is required")}({name:h,type:f}=c);if(n[f]===void 0){throw new Error(`prompt type (${f}) is not defined`)}if(a[c.name]!==undefined){u=await p(c,a[c.name]);if(u!==undefined){o[h]=u;continue}}try{u=prompt._injected?getInjectedAnswer(prompt._injected):await n[f](c);o[h]=u=await p(c,u,true);l=await t(c,u,o)}catch(e){l=!await r(c,o)}if(l)return o}return o}function getInjectedAnswer(e){const t=e.shift();if(t instanceof Error){throw t}return t}function inject(e){prompt._injected=(prompt._injected||[]).concat(e)}function override(e){prompt._override=Object.assign({},e)}e.exports=Object.assign(prompt,{prompt:prompt,prompts:n,inject:inject,override:override})},1558:(e,t,r)=>{"use strict";const n=t;const i=r(9098);const s=e=>e;function toPrompt(e,t,r={}){return new Promise((n,o)=>{const a=new i[e](t);const u=r.onAbort||s;const c=r.onSubmit||s;a.on("state",t.onState||s);a.on("submit",e=>n(c(e)));a.on("abort",e=>o(u(e)))})}n.text=(e=>toPrompt("TextPrompt",e));n.password=(e=>{e.style="password";return n.text(e)});n.invisible=(e=>{e.style="invisible";return n.text(e)});n.number=(e=>toPrompt("NumberPrompt",e));n.date=(e=>toPrompt("DatePrompt",e));n.confirm=(e=>toPrompt("ConfirmPrompt",e));n.list=(e=>{const t=e.separator||",";return toPrompt("TextPrompt",e,{onSubmit:e=>e.split(t).map(e=>e.trim())})});n.toggle=(e=>toPrompt("TogglePrompt",e));n.select=(e=>toPrompt("SelectPrompt",e));n.multiselect=(e=>{e.choices=[].concat(e.choices||[]);const t=e=>e.filter(e=>e.selected).map(e=>e.value);return toPrompt("MultiselectPrompt",e,{onAbort:t,onSubmit:t})});n.autocompleteMultiselect=(e=>{e.choices=[].concat(e.choices||[]);const t=e=>e.filter(e=>e.selected).map(e=>e.value);return toPrompt("AutocompleteMultiselectPrompt",e,{onAbort:t,onSubmit:t})});const o=(e,t)=>Promise.resolve(t.filter(t=>t.title.slice(0,e.length).toLowerCase()===e.toLowerCase()));n.autocomplete=(e=>{e.suggest=e.suggest||o;e.choices=[].concat(e.choices||[]);return toPrompt("AutocompletePrompt",e)})},2337:e=>{"use strict";e.exports=((e,t)=>{if(e.meta)return;if(e.ctrl){if(e.name==="a")return"first";if(e.name==="c")return"abort";if(e.name==="d")return"abort";if(e.name==="e")return"last";if(e.name==="g")return"reset"}if(t){if(e.name==="j")return"down";if(e.name==="k")return"up"}if(e.name==="return")return"submit";if(e.name==="enter")return"submit";if(e.name==="backspace")return"delete";if(e.name==="delete")return"deleteForward";if(e.name==="abort")return"abort";if(e.name==="escape")return"abort";if(e.name==="tab")return"next";if(e.name==="pagedown")return"nextPage";if(e.name==="pageup")return"prevPage";if(e.name==="home")return"home";if(e.name==="end")return"end";if(e.name==="up")return"up";if(e.name==="down")return"down";if(e.name==="right")return"right";if(e.name==="left")return"left";return false})},4679:(e,t,r)=>{"use strict";const n=r(6439);const{erase:i,cursor:s}=r(9571);const o=e=>[...n(e)].length;e.exports=function(e,t=process.stdout.columns){if(!t)return i.line+s.to(0);let r=0;const n=e.split(/\r?\n/);for(let e of n){r+=1+Math.floor(Math.max(o(e)-1,0)/t)}return i.lines(r)}},6740:e=>{"use strict";e.exports=((e,t,r)=>{r=r||t;let n=Math.min(t-r,e-Math.floor(r/2));if(n<0)n=0;let i=Math.min(n+r,t);return{startIndex:n,endIndex:i}})},1918:e=>{"use strict";const t={arrowUp:"↑",arrowDown:"↓",arrowLeft:"←",arrowRight:"→",radioOn:"◉",radioOff:"◯",tick:"✔",cross:"✖",ellipsis:"…",pointerSmall:"›",line:"─",pointer:"❯"};const r={arrowUp:t.arrowUp,arrowDown:t.arrowDown,arrowLeft:t.arrowLeft,arrowRight:t.arrowRight,radioOn:"(*)",radioOff:"( )",tick:"√",cross:"×",ellipsis:"...",pointerSmall:"»",line:"─",pointer:">"};const n=process.platform==="win32"?r:t;e.exports=n},9501:(e,t,r)=>{"use strict";e.exports={action:r(2337),clear:r(4679),style:r(5290),strip:r(6439),figures:r(1918),lines:r(409),wrap:r(8861),entriesToDisplay:r(6740)}},409:(e,t,r)=>{"use strict";const n=r(6439);e.exports=function(e,t=process.stdout.columns){let r=String(n(e)||"").split(/\r?\n/);if(!t)return r.length;return r.map(e=>Math.ceil(e.length/t)).reduce((e,t)=>e+t)}},6439:e=>{"use strict";e.exports=(e=>{const t=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:[a-zA-Z\\d]*(?:;[a-zA-Z\\d]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PRZcf-ntqry=><~]))"].join("|");const r=new RegExp(t,"g");return typeof e==="string"?e.replace(r,""):e})},5290:(e,t,r)=>{"use strict";const n=r(5215);const i=r(1918);const s=Object.freeze({password:{scale:1,render:e=>"*".repeat(e.length)},emoji:{scale:2,render:e=>"😃".repeat(e.length)},invisible:{scale:0,render:e=>""},default:{scale:1,render:e=>`${e}`}});const o=e=>s[e]||s.default;const a=Object.freeze({aborted:n.red(i.cross),done:n.green(i.tick),default:n.cyan("?")});const u=(e,t)=>t?a.aborted:e?a.done:a.default;const c=e=>n.gray(e?i.ellipsis:i.pointerSmall);const l=(e,t)=>n.gray(e?t?i.pointerSmall:"+":i.line);e.exports={styles:s,render:o,symbols:a,symbol:u,delimiter:c,item:l}},8861:e=>{"use strict";e.exports=((e,t={})=>{const r=Number.isSafeInteger(parseInt(t.margin))?new Array(parseInt(t.margin)).fill(" ").join(""):t.margin||"";const n=t.width||process.stdout.columns;return(e||"").split(/\r?\n/g).map(e=>e.split(/\s+/g).reduce((e,t)=>{if(t.length+r.length>=n||e[e.length-1].length+t.length+1<n)e[e.length-1]+=` ${t}`;else e.push(`${r}${t}`);return e},[r]).join("\n")).join("\n")})},8341:(e,t,r)=>{var n=r(1223);var i=r(1205);var s=r(5747);var o=function(){};var a=/^v?\.0/.test(process.version);var u=function(e){return typeof e==="function"};var c=function(e){if(!a)return false;if(!s)return false;return(e instanceof(s.ReadStream||o)||e instanceof(s.WriteStream||o))&&u(e.close)};var l=function(e){return e.setHeader&&u(e.abort)};var h=function(e,t,r,s){s=n(s);var a=false;e.on("close",function(){a=true});i(e,{readable:t,writable:r},function(e){if(e)return s(e);a=true;s()});var h=false;return function(t){if(a)return;if(h)return;h=true;if(c(e))return e.close(o);if(l(e))return e.abort();if(u(e.destroy))return e.destroy();s(t||new Error("stream was destroyed"))}};var f=function(e){e()};var d=function(e,t){return e.pipe(t)};var p=function(){var e=Array.prototype.slice.call(arguments);var t=u(e[e.length-1]||o)&&e.pop()||o;if(Array.isArray(e[0]))e=e[0];if(e.length<2)throw new Error("pump requires two streams per minimum");var r;var n=e.map(function(i,s){var o=s<e.length-1;var a=s>0;return h(i,o,a,function(e){if(!r)r=e;if(e)n.forEach(f);if(o)return;n.forEach(f);t(r)})});return e.reduce(d)};e.exports=p},9273:e=>{"use strict";class QuickLRU{constructor(e={}){if(!(e.maxSize&&e.maxSize>0)){throw new TypeError("`maxSize` must be a number greater than 0")}this.maxSize=e.maxSize;this.onEviction=e.onEviction;this.cache=new Map;this.oldCache=new Map;this._size=0}_set(e,t){this.cache.set(e,t);this._size++;if(this._size>=this.maxSize){this._size=0;if(typeof this.onEviction==="function"){for(const[e,t]of this.oldCache.entries()){this.onEviction(e,t)}}this.oldCache=this.cache;this.cache=new Map}}get(e){if(this.cache.has(e)){return this.cache.get(e)}if(this.oldCache.has(e)){const t=this.oldCache.get(e);this.oldCache.delete(e);this._set(e,t);return t}}set(e,t){if(this.cache.has(e)){this.cache.set(e,t)}else{this._set(e,t)}return this}has(e){return this.cache.has(e)||this.oldCache.has(e)}peek(e){if(this.cache.has(e)){return this.cache.get(e)}if(this.oldCache.has(e)){return this.oldCache.get(e)}}delete(e){const t=this.cache.delete(e);if(t){this._size--}return this.oldCache.delete(e)||t}clear(){this.cache.clear();this.oldCache.clear();this._size=0}*keys(){for(const[e]of this){yield e}}*values(){for(const[,e]of this){yield e}}*[Symbol.iterator](){for(const e of this.cache){yield e}for(const e of this.oldCache){const[t]=e;if(!this.cache.has(t)){yield e}}}get size(){let e=0;for(const t of this.oldCache.keys()){if(!this.cache.has(t)){e++}}return Math.min(this._size+e,this.maxSize)}}e.exports=QuickLRU},7353:(e,t,r)=>{var n=r(5588);var i=r(5622).join;var s=r(1705);var o="/etc";var a=process.platform==="win32";var u=a?process.env.USERPROFILE:process.env.HOME;e.exports=function(e,t,c,l){if("string"!==typeof e)throw new Error("rc(name): name *must* be string");if(!c)c=r(5871)(process.argv.slice(2));t=("string"===typeof t?n.json(t):t)||{};l=l||n.parse;var h=n.env(e+"_");var f=[t];var d=[];function addConfigFile(e){if(d.indexOf(e)>=0)return;var t=n.file(e);if(t){f.push(l(t));d.push(e)}}if(!a)[i(o,e,"config"),i(o,e+"rc")].forEach(addConfigFile);if(u)[i(u,".config",e,"config"),i(u,".config",e),i(u,"."+e,"config"),i(u,"."+e+"rc")].forEach(addConfigFile);addConfigFile(n.find("."+e+"rc"));if(h.config)addConfigFile(h.config);if(c.config)addConfigFile(c.config);return s.apply(null,f.concat([h,c,d.length?{configs:d,config:d[d.length-1]}:undefined]))}},5588:(e,t,r)=>{"use strict";var n=r(5747);var i=r(8885);var s=r(5622);var o=r(7035);var a=t.parse=function(e){if(/^\s*{/.test(e))return JSON.parse(o(e));return i.parse(e)};var u=t.file=function(){var e=[].slice.call(arguments).filter(function(e){return e!=null});for(var t in e)if("string"!==typeof e[t])return;var r=s.join.apply(null,e);var i;try{return n.readFileSync(r,"utf-8")}catch(e){return}};var c=t.json=function(){var e=u.apply(null,arguments);return e?a(e):null};var l=t.env=function(e,t){t=t||process.env;var r={};var n=e.length;for(var i in t){if(i.toLowerCase().indexOf(e.toLowerCase())===0){var s=i.substring(n).split("__");var o;while((o=s.indexOf(""))>-1){s.splice(o,1)}var a=r;s.forEach(function _buildSubObj(e,r){if(!e||typeof a!=="object")return;if(r===s.length-1)a[e]=t[i];if(a[e]===undefined)a[e]={};a=a[e]})}}return r};var h=t.find=function(){var e=s.join.apply(null,[].slice.call(arguments));function find(e,t){var r=s.join(e,t);try{n.statSync(r);return r}catch(r){if(s.dirname(e)!==e)return find(s.dirname(e),t)}}return find(process.cwd(),e)}},7035:e=>{"use strict";var t=1;var r=2;function stripWithoutWhitespace(){return""}function stripWithWhitespace(e,t,r){return e.slice(t,r).replace(/\S/g," ")}e.exports=function(e,n){n=n||{};var i;var s;var o=false;var a=false;var u=0;var c="";var l=n.whitespace===false?stripWithoutWhitespace:stripWithWhitespace;for(var h=0;h<e.length;h++){i=e[h];s=e[h+1];if(!a&&i==='"'){var f=e[h-1]==="\\"&&e[h-2]!=="\\";if(!f){o=!o}}if(o){continue}if(!a&&i+s==="//"){c+=e.slice(u,h);u=h;a=t;h++}else if(a===t&&i+s==="\r\n"){h++;a=false;c+=l(e,u,h);u=h;continue}else if(a===t&&i==="\n"){a=false;c+=l(e,u,h);u=h}else if(!a&&i+s==="/*"){c+=e.slice(u,h);u=h;a=r;h++;continue}else if(a===r&&i+s==="*/"){h++;a=false;c+=l(e,u,h+1);u=h+1;continue}}return c+(a?l(e.substr(u)):e.substr(u))}},8506:(e,t,r)=>{const n=r(1867).Buffer;function decodeBase64(e){return n.from(e,"base64").toString("utf8")}function encodeBase64(e){return n.from(e,"utf8").toString("base64")}e.exports={decodeBase64:decodeBase64,encodeBase64:encodeBase64}},2968:(e,t,r)=>{var n=r(8835);var i=r(8506);var s=i.decodeBase64;var o=i.encodeBase64;var a=":_authToken";var u=":username";var c=":_password";e.exports=function(){var e;var t;if(arguments.length>=2){e=arguments[0];t=arguments[1]}else if(typeof arguments[0]==="string"){e=arguments[0]}else{t=arguments[0]}t=t||{};t.npmrc=t.npmrc||r(7353)("npm",{registry:"https://registry.npmjs.org/"});e=e||t.npmrc.registry;return getRegistryAuthInfo(e,t)||getLegacyAuthInfo(t.npmrc)};function getRegistryAuthInfo(e,t){var r=n.parse(e,false,true);var i;while(i!=="/"&&r.pathname!==i){i=r.pathname||"/";var s="//"+r.host+i.replace(/\/$/,"");var o=getAuthInfoForUrl(s,t.npmrc);if(o){return o}if(!t.recursive){return/\/$/.test(e)?undefined:getRegistryAuthInfo(n.resolve(e,"."),t)}r.pathname=n.resolve(normalizePath(i),"..")||"/"}return undefined}function getLegacyAuthInfo(e){if(e._auth){return{token:e._auth,type:"Basic"}}return undefined}function normalizePath(e){return e[e.length-1]==="/"?e:e+"/"}function getAuthInfoForUrl(e,t){var r=getBearerToken(t[e+a]||t[e+"/"+a]);if(r){return r}var n=t[e+u]||t[e+"/"+u];var i=t[e+c]||t[e+"/"+c];var s=getTokenForUsernameAndPassword(n,i);if(s){return s}return undefined}function getBearerToken(e){if(!e){return undefined}var t=e.replace(/^\$\{?([^}]*)\}?$/,function(e,t){return process.env[t]});return{token:t,type:"Bearer"}}function getTokenForUsernameAndPassword(e,t){if(!e||!t){return undefined}var r=s(t.replace(/^\$\{?([^}]*)\}?$/,function(e,t){return process.env[t]}));var n=o(e+":"+r);return{token:n,type:"Basic",password:r,username:e}}},4182:(e,t,r)=>{"use strict";e.exports=function(e){var t=r(7353)("npm",{registry:"https://registry.npmjs.org/"});var n=t[e+":registry"]||t.registry;return n.slice(-1)==="/"?n:n+"/"}},6624:(e,t,r)=>{"use strict";const n=r(4016);e.exports=((e={})=>new Promise((t,r)=>{const i=n.connect(e,()=>{if(e.resolveSocket){i.off("error",r);t({alpnProtocol:i.alpnProtocol,socket:i})}else{i.destroy();t({alpnProtocol:i.alpnProtocol})}});i.on("error",r)}))},9004:(e,t,r)=>{"use strict";const n=r(2413).Readable;const i=r(9662);class Response extends n{constructor(e,t,r,n){if(typeof e!=="number"){throw new TypeError("Argument `statusCode` should be a number")}if(typeof t!=="object"){throw new TypeError("Argument `headers` should be an object")}if(!(r instanceof Buffer)){throw new TypeError("Argument `body` should be a buffer")}if(typeof n!=="string"){throw new TypeError("Argument `url` should be a string")}super();this.statusCode=e;this.headers=i(t);this.body=r;this.url=n}_read(){this.push(this.body);this.push(null)}}e.exports=Response},4959:(e,t,r)=>{const n=r(2357);const i=r(5622);const s=r(5747);let o=undefined;try{o=r(1957)}catch(e){}const a={nosort:true,silent:true};let u=0;const c=process.platform==="win32";const l=e=>{const t=["unlink","chmod","stat","lstat","rmdir","readdir"];t.forEach(t=>{e[t]=e[t]||s[t];t=t+"Sync";e[t]=e[t]||s[t]});e.maxBusyTries=e.maxBusyTries||3;e.emfileWait=e.emfileWait||1e3;if(e.glob===false){e.disableGlob=true}if(e.disableGlob!==true&&o===undefined){throw Error("glob dependency not found, set `options.disableGlob = true` if intentional")}e.disableGlob=e.disableGlob||false;e.glob=e.glob||a};const h=(e,t,r)=>{if(typeof t==="function"){r=t;t={}}n(e,"rimraf: missing path");n.equal(typeof e,"string","rimraf: path should be a string");n.equal(typeof r,"function","rimraf: callback function required");n(t,"rimraf: invalid options argument provided");n.equal(typeof t,"object","rimraf: options should be object");l(t);let i=0;let s=null;let a=0;const c=e=>{s=s||e;if(--a===0)r(s)};const h=(e,n)=>{if(e)return r(e);a=n.length;if(a===0)return r();n.forEach(e=>{const r=n=>{if(n){if((n.code==="EBUSY"||n.code==="ENOTEMPTY"||n.code==="EPERM")&&i<t.maxBusyTries){i++;return setTimeout(()=>f(e,t,r),i*100)}if(n.code==="EMFILE"&&u<t.emfileWait){return setTimeout(()=>f(e,t,r),u++)}if(n.code==="ENOENT")n=null}u=0;c(n)};f(e,t,r)})};if(t.disableGlob||!o.hasMagic(e))return h(null,[e]);t.lstat(e,(r,n)=>{if(!r)return h(null,[e]);o(e,t.glob,h)})};const f=(e,t,r)=>{n(e);n(t);n(typeof r==="function");t.lstat(e,(n,i)=>{if(n&&n.code==="ENOENT")return r(null);if(n&&n.code==="EPERM"&&c)d(e,t,n,r);if(i&&i.isDirectory())return m(e,t,n,r);t.unlink(e,n=>{if(n){if(n.code==="ENOENT")return r(null);if(n.code==="EPERM")return c?d(e,t,n,r):m(e,t,n,r);if(n.code==="EISDIR")return m(e,t,n,r)}return r(n)})})};const d=(e,t,r,i)=>{n(e);n(t);n(typeof i==="function");t.chmod(e,438,n=>{if(n)i(n.code==="ENOENT"?null:r);else t.stat(e,(n,s)=>{if(n)i(n.code==="ENOENT"?null:r);else if(s.isDirectory())m(e,t,r,i);else t.unlink(e,i)})})};const p=(e,t,r)=>{n(e);n(t);try{t.chmodSync(e,438)}catch(e){if(e.code==="ENOENT")return;else throw r}let i;try{i=t.statSync(e)}catch(e){if(e.code==="ENOENT")return;else throw r}if(i.isDirectory())v(e,t,r);else t.unlinkSync(e)};const m=(e,t,r,i)=>{n(e);n(t);n(typeof i==="function");t.rmdir(e,n=>{if(n&&(n.code==="ENOTEMPTY"||n.code==="EEXIST"||n.code==="EPERM"))y(e,t,i);else if(n&&n.code==="ENOTDIR")i(r);else i(n)})};const y=(e,t,r)=>{n(e);n(t);n(typeof r==="function");t.readdir(e,(n,s)=>{if(n)return r(n);let o=s.length;if(o===0)return t.rmdir(e,r);let a;s.forEach(n=>{h(i.join(e,n),t,n=>{if(a)return;if(n)return r(a=n);if(--o===0)t.rmdir(e,r)})})})};const g=(e,t)=>{t=t||{};l(t);n(e,"rimraf: missing path");n.equal(typeof e,"string","rimraf: path should be a string");n(t,"rimraf: missing options");n.equal(typeof t,"object","rimraf: options should be object");let r;if(t.disableGlob||!o.hasMagic(e)){r=[e]}else{try{t.lstatSync(e);r=[e]}catch(n){r=o.sync(e,t.glob)}}if(!r.length)return;for(let e=0;e<r.length;e++){const n=r[e];let i;try{i=t.lstatSync(n)}catch(e){if(e.code==="ENOENT")return;if(e.code==="EPERM"&&c)p(n,t,e)}try{if(i&&i.isDirectory())v(n,t,null);else t.unlinkSync(n)}catch(e){if(e.code==="ENOENT")return;if(e.code==="EPERM")return c?p(n,t,e):v(n,t,e);if(e.code!=="EISDIR")throw e;v(n,t,e)}}};const v=(e,t,r)=>{n(e);n(t);try{t.rmdirSync(e)}catch(n){if(n.code==="ENOENT")return;if(n.code==="ENOTDIR")throw r;if(n.code==="ENOTEMPTY"||n.code==="EEXIST"||n.code==="EPERM")b(e,t)}};const b=(e,t)=>{n(e);n(t);t.readdirSync(e).forEach(r=>g(i.join(e,r),t));const r=c?100:1;let s=0;do{let n=true;try{const i=t.rmdirSync(e,t);n=false;return i}finally{if(++s<r&&n)continue}}while(true)};e.exports=h;h.sync=g},1867:(e,t,r)=>{var n=r(4293);var i=n.Buffer;function copyProps(e,t){for(var r in e){t[r]=e[r]}}if(i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow){e.exports=n}else{copyProps(n,t);t.Buffer=SafeBuffer}function SafeBuffer(e,t,r){return i(e,t,r)}SafeBuffer.prototype=Object.create(i.prototype);copyProps(i,SafeBuffer);SafeBuffer.from=function(e,t,r){if(typeof e==="number"){throw new TypeError("Argument must not be a number")}return i(e,t,r)};SafeBuffer.alloc=function(e,t,r){if(typeof e!=="number"){throw new TypeError("Argument must be a number")}var n=i(e);if(t!==undefined){if(typeof r==="string"){n.fill(t,r)}else{n.fill(t)}}else{n.fill(0)}return n};SafeBuffer.allocUnsafe=function(e){if(typeof e!=="number"){throw new TypeError("Argument must be a number")}return i(e)};SafeBuffer.allocUnsafeSlow=function(e){if(typeof e!=="number"){throw new TypeError("Argument must be a number")}return n.SlowBuffer(e)}},5911:(e,t)=>{t=e.exports=SemVer;var r;if(typeof process==="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)){r=function(){var e=Array.prototype.slice.call(arguments,0);e.unshift("SEMVER");console.log.apply(console,e)}}else{r=function(){}}t.SEMVER_SPEC_VERSION="2.0.0";var n=256;var i=Number.MAX_SAFE_INTEGER||9007199254740991;var s=16;var o=t.re=[];var a=t.src=[];var u=0;var c=u++;a[c]="0|[1-9]\\d*";var l=u++;a[l]="[0-9]+";var h=u++;a[h]="\\d*[a-zA-Z-][a-zA-Z0-9-]*";var f=u++;a[f]="("+a[c]+")\\."+"("+a[c]+")\\."+"("+a[c]+")";var d=u++;a[d]="("+a[l]+")\\."+"("+a[l]+")\\."+"("+a[l]+")";var p=u++;a[p]="(?:"+a[c]+"|"+a[h]+")";var m=u++;a[m]="(?:"+a[l]+"|"+a[h]+")";var y=u++;a[y]="(?:-("+a[p]+"(?:\\."+a[p]+")*))";var g=u++;a[g]="(?:-?("+a[m]+"(?:\\."+a[m]+")*))";var v=u++;a[v]="[0-9A-Za-z-]+";var b=u++;a[b]="(?:\\+("+a[v]+"(?:\\."+a[v]+")*))";var w=u++;var A="v?"+a[f]+a[y]+"?"+a[b]+"?";a[w]="^"+A+"$";var E="[v=\\s]*"+a[d]+a[g]+"?"+a[b]+"?";var _=u++;a[_]="^"+E+"$";var D=u++;a[D]="((?:<|>)?=?)";var S=u++;a[S]=a[l]+"|x|X|\\*";var C=u++;a[C]=a[c]+"|x|X|\\*";var x=u++;a[x]="[v=\\s]*("+a[C]+")"+"(?:\\.("+a[C]+")"+"(?:\\.("+a[C]+")"+"(?:"+a[y]+")?"+a[b]+"?"+")?)?";var R=u++;a[R]="[v=\\s]*("+a[S]+")"+"(?:\\.("+a[S]+")"+"(?:\\.("+a[S]+")"+"(?:"+a[g]+")?"+a[b]+"?"+")?)?";var O=u++;a[O]="^"+a[D]+"\\s*"+a[x]+"$";var F=u++;a[F]="^"+a[D]+"\\s*"+a[R]+"$";var P=u++;a[P]="(?:^|[^\\d])"+"(\\d{1,"+s+"})"+"(?:\\.(\\d{1,"+s+"}))?"+"(?:\\.(\\d{1,"+s+"}))?"+"(?:$|[^\\d])";var T=u++;a[T]="(?:~>?)";var k=u++;a[k]="(\\s*)"+a[T]+"\\s+";o[k]=new RegExp(a[k],"g");var B="$1~";var I=u++;a[I]="^"+a[T]+a[x]+"$";var j=u++;a[j]="^"+a[T]+a[R]+"$";var N=u++;a[N]="(?:\\^)";var M=u++;a[M]="(\\s*)"+a[N]+"\\s+";o[M]=new RegExp(a[M],"g");var L="$1^";var $=u++;a[$]="^"+a[N]+a[x]+"$";var H=u++;a[H]="^"+a[N]+a[R]+"$";var U=u++;a[U]="^"+a[D]+"\\s*("+E+")$|^$";var G=u++;a[G]="^"+a[D]+"\\s*("+A+")$|^$";var z=u++;a[z]="(\\s*)"+a[D]+"\\s*("+E+"|"+a[x]+")";o[z]=new RegExp(a[z],"g");var q="$1$2$3";var W=u++;a[W]="^\\s*("+a[x]+")"+"\\s+-\\s+"+"("+a[x]+")"+"\\s*$";var Y=u++;a[Y]="^\\s*("+a[R]+")"+"\\s+-\\s+"+"("+a[R]+")"+"\\s*$";var V=u++;a[V]="(<|>)?=?\\s*\\*";for(var Q=0;Q<u;Q++){r(Q,a[Q]);if(!o[Q]){o[Q]=new RegExp(a[Q])}}t.parse=parse;function parse(e,t){if(!t||typeof t!=="object"){t={loose:!!t,includePrerelease:false}}if(e instanceof SemVer){return e}if(typeof e!=="string"){return null}if(e.length>n){return null}var r=t.loose?o[_]:o[w];if(!r.test(e)){return null}try{return new SemVer(e,t)}catch(e){return null}}t.valid=valid;function valid(e,t){var r=parse(e,t);return r?r.version:null}t.clean=clean;function clean(e,t){var r=parse(e.trim().replace(/^[=v]+/,""),t);return r?r.version:null}t.SemVer=SemVer;function SemVer(e,t){if(!t||typeof t!=="object"){t={loose:!!t,includePrerelease:false}}if(e instanceof SemVer){if(e.loose===t.loose){return e}else{e=e.version}}else if(typeof e!=="string"){throw new TypeError("Invalid Version: "+e)}if(e.length>n){throw new TypeError("version is longer than "+n+" characters")}if(!(this instanceof SemVer)){return new SemVer(e,t)}r("SemVer",e,t);this.options=t;this.loose=!!t.loose;var s=e.trim().match(t.loose?o[_]:o[w]);if(!s){throw new TypeError("Invalid Version: "+e)}this.raw=e;this.major=+s[1];this.minor=+s[2];this.patch=+s[3];if(this.major>i||this.major<0){throw new TypeError("Invalid major version")}if(this.minor>i||this.minor<0){throw new TypeError("Invalid minor version")}if(this.patch>i||this.patch<0){throw new TypeError("Invalid patch version")}if(!s[4]){this.prerelease=[]}else{this.prerelease=s[4].split(".").map(function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&t<i){return t}}return e})}this.build=s[5]?s[5].split("."):[];this.format()}SemVer.prototype.format=function(){this.version=this.major+"."+this.minor+"."+this.patch;if(this.prerelease.length){this.version+="-"+this.prerelease.join(".")}return this.version};SemVer.prototype.toString=function(){return this.version};SemVer.prototype.compare=function(e){r("SemVer.compare",this.version,this.options,e);if(!(e instanceof SemVer)){e=new SemVer(e,this.options)}return this.compareMain(e)||this.comparePre(e)};SemVer.prototype.compareMain=function(e){if(!(e instanceof SemVer)){e=new SemVer(e,this.options)}return compareIdentifiers(this.major,e.major)||compareIdentifiers(this.minor,e.minor)||compareIdentifiers(this.patch,e.patch)};SemVer.prototype.comparePre=function(e){if(!(e instanceof SemVer)){e=new SemVer(e,this.options)}if(this.prerelease.length&&!e.prerelease.length){return-1}else if(!this.prerelease.length&&e.prerelease.length){return 1}else if(!this.prerelease.length&&!e.prerelease.length){return 0}var t=0;do{var n=this.prerelease[t];var i=e.prerelease[t];r("prerelease compare",t,n,i);if(n===undefined&&i===undefined){return 0}else if(i===undefined){return 1}else if(n===undefined){return-1}else if(n===i){continue}else{return compareIdentifiers(n,i)}}while(++t)};SemVer.prototype.inc=function(e,t){switch(e){case"premajor":this.prerelease.length=0;this.patch=0;this.minor=0;this.major++;this.inc("pre",t);break;case"preminor":this.prerelease.length=0;this.patch=0;this.minor++;this.inc("pre",t);break;case"prepatch":this.prerelease.length=0;this.inc("patch",t);this.inc("pre",t);break;case"prerelease":if(this.prerelease.length===0){this.inc("patch",t)}this.inc("pre",t);break;case"major":if(this.minor!==0||this.patch!==0||this.prerelease.length===0){this.major++}this.minor=0;this.patch=0;this.prerelease=[];break;case"minor":if(this.patch!==0||this.prerelease.length===0){this.minor++}this.patch=0;this.prerelease=[];break;case"patch":if(this.prerelease.length===0){this.patch++}this.prerelease=[];break;case"pre":if(this.prerelease.length===0){this.prerelease=[0]}else{var r=this.prerelease.length;while(--r>=0){if(typeof this.prerelease[r]==="number"){this.prerelease[r]++;r=-2}}if(r===-1){this.prerelease.push(0)}}if(t){if(this.prerelease[0]===t){if(isNaN(this.prerelease[1])){this.prerelease=[t,0]}}else{this.prerelease=[t,0]}}break;default:throw new Error("invalid increment argument: "+e)}this.format();this.raw=this.version;return this};t.inc=inc;function inc(e,t,r,n){if(typeof r==="string"){n=r;r=undefined}try{return new SemVer(e,r).inc(t,n).version}catch(e){return null}}t.diff=diff;function diff(e,t){if(eq(e,t)){return null}else{var r=parse(e);var n=parse(t);var i="";if(r.prerelease.length||n.prerelease.length){i="pre";var s="prerelease"}for(var o in r){if(o==="major"||o==="minor"||o==="patch"){if(r[o]!==n[o]){return i+o}}}return s}}t.compareIdentifiers=compareIdentifiers;var Z=/^[0-9]+$/;function compareIdentifiers(e,t){var r=Z.test(e);var n=Z.test(t);if(r&&n){e=+e;t=+t}return e===t?0:r&&!n?-1:n&&!r?1:e<t?-1:1}t.rcompareIdentifiers=rcompareIdentifiers;function rcompareIdentifiers(e,t){return compareIdentifiers(t,e)}t.major=major;function major(e,t){return new SemVer(e,t).major}t.minor=minor;function minor(e,t){return new SemVer(e,t).minor}t.patch=patch;function patch(e,t){return new SemVer(e,t).patch}t.compare=compare;function compare(e,t,r){return new SemVer(e,r).compare(new SemVer(t,r))}t.compareLoose=compareLoose;function compareLoose(e,t){return compare(e,t,true)}t.rcompare=rcompare;function rcompare(e,t,r){return compare(t,e,r)}t.sort=sort;function sort(e,r){return e.sort(function(e,n){return t.compare(e,n,r)})}t.rsort=rsort;function rsort(e,r){return e.sort(function(e,n){return t.rcompare(e,n,r)})}t.gt=gt;function gt(e,t,r){return compare(e,t,r)>0}t.lt=lt;function lt(e,t,r){return compare(e,t,r)<0}t.eq=eq;function eq(e,t,r){return compare(e,t,r)===0}t.neq=neq;function neq(e,t,r){return compare(e,t,r)!==0}t.gte=gte;function gte(e,t,r){return compare(e,t,r)>=0}t.lte=lte;function lte(e,t,r){return compare(e,t,r)<=0}t.cmp=cmp;function cmp(e,t,r,n){switch(t){case"===":if(typeof e==="object")e=e.version;if(typeof r==="object")r=r.version;return e===r;case"!==":if(typeof e==="object")e=e.version;if(typeof r==="object")r=r.version;return e!==r;case"":case"=":case"==":return eq(e,r,n);case"!=":return neq(e,r,n);case">":return gt(e,r,n);case">=":return gte(e,r,n);case"<":return lt(e,r,n);case"<=":return lte(e,r,n);default:throw new TypeError("Invalid operator: "+t)}}t.Comparator=Comparator;function Comparator(e,t){if(!t||typeof t!=="object"){t={loose:!!t,includePrerelease:false}}if(e instanceof Comparator){if(e.loose===!!t.loose){return e}else{e=e.value}}if(!(this instanceof Comparator)){return new Comparator(e,t)}r("comparator",e,t);this.options=t;this.loose=!!t.loose;this.parse(e);if(this.semver===J){this.value=""}else{this.value=this.operator+this.semver.version}r("comp",this)}var J={};Comparator.prototype.parse=function(e){var t=this.options.loose?o[U]:o[G];var r=e.match(t);if(!r){throw new TypeError("Invalid comparator: "+e)}this.operator=r[1];if(this.operator==="="){this.operator=""}if(!r[2]){this.semver=J}else{this.semver=new SemVer(r[2],this.options.loose)}};Comparator.prototype.toString=function(){return this.value};Comparator.prototype.test=function(e){r("Comparator.test",e,this.options.loose);if(this.semver===J){return true}if(typeof e==="string"){e=new SemVer(e,this.options)}return cmp(e,this.operator,this.semver,this.options)};Comparator.prototype.intersects=function(e,t){if(!(e instanceof Comparator)){throw new TypeError("a Comparator is required")}if(!t||typeof t!=="object"){t={loose:!!t,includePrerelease:false}}var r;if(this.operator===""){r=new Range(e.value,t);return satisfies(this.value,r,t)}else if(e.operator===""){r=new Range(this.value,t);return satisfies(e.semver,r,t)}var n=(this.operator===">="||this.operator===">")&&(e.operator===">="||e.operator===">");var i=(this.operator==="<="||this.operator==="<")&&(e.operator==="<="||e.operator==="<");var s=this.semver.version===e.semver.version;var o=(this.operator===">="||this.operator==="<=")&&(e.operator===">="||e.operator==="<=");var a=cmp(this.semver,"<",e.semver,t)&&((this.operator===">="||this.operator===">")&&(e.operator==="<="||e.operator==="<"));var u=cmp(this.semver,">",e.semver,t)&&((this.operator==="<="||this.operator==="<")&&(e.operator===">="||e.operator===">"));return n||i||s&&o||a||u};t.Range=Range;function Range(e,t){if(!t||typeof t!=="object"){t={loose:!!t,includePrerelease:false}}if(e instanceof Range){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease){return e}else{return new Range(e.raw,t)}}if(e instanceof Comparator){return new Range(e.value,t)}if(!(this instanceof Range)){return new Range(e,t)}this.options=t;this.loose=!!t.loose;this.includePrerelease=!!t.includePrerelease;this.raw=e;this.set=e.split(/\s*\|\|\s*/).map(function(e){return this.parseRange(e.trim())},this).filter(function(e){return e.length});if(!this.set.length){throw new TypeError("Invalid SemVer Range: "+e)}this.format()}Range.prototype.format=function(){this.range=this.set.map(function(e){return e.join(" ").trim()}).join("||").trim();return this.range};Range.prototype.toString=function(){return this.range};Range.prototype.parseRange=function(e){var t=this.options.loose;e=e.trim();var n=t?o[Y]:o[W];e=e.replace(n,hyphenReplace);r("hyphen replace",e);e=e.replace(o[z],q);r("comparator trim",e,o[z]);e=e.replace(o[k],B);e=e.replace(o[M],L);e=e.split(/\s+/).join(" ");var i=t?o[U]:o[G];var s=e.split(" ").map(function(e){return parseComparator(e,this.options)},this).join(" ").split(/\s+/);if(this.options.loose){s=s.filter(function(e){return!!e.match(i)})}s=s.map(function(e){return new Comparator(e,this.options)},this);return s};Range.prototype.intersects=function(e,t){if(!(e instanceof Range)){throw new TypeError("a Range is required")}return this.set.some(function(r){return r.every(function(r){return e.set.some(function(e){return e.every(function(e){return r.intersects(e,t)})})})})};t.toComparators=toComparators;function toComparators(e,t){return new Range(e,t).set.map(function(e){return e.map(function(e){return e.value}).join(" ").trim().split(" ")})}function parseComparator(e,t){r("comp",e,t);e=replaceCarets(e,t);r("caret",e);e=replaceTildes(e,t);r("tildes",e);e=replaceXRanges(e,t);r("xrange",e);e=replaceStars(e,t);r("stars",e);return e}function isX(e){return!e||e.toLowerCase()==="x"||e==="*"}function replaceTildes(e,t){return e.trim().split(/\s+/).map(function(e){return replaceTilde(e,t)}).join(" ")}function replaceTilde(e,t){var n=t.loose?o[j]:o[I];return e.replace(n,function(t,n,i,s,o){r("tilde",e,t,n,i,s,o);var a;if(isX(n)){a=""}else if(isX(i)){a=">="+n+".0.0 <"+(+n+1)+".0.0"}else if(isX(s)){a=">="+n+"."+i+".0 <"+n+"."+(+i+1)+".0"}else if(o){r("replaceTilde pr",o);a=">="+n+"."+i+"."+s+"-"+o+" <"+n+"."+(+i+1)+".0"}else{a=">="+n+"."+i+"."+s+" <"+n+"."+(+i+1)+".0"}r("tilde return",a);return a})}function replaceCarets(e,t){return e.trim().split(/\s+/).map(function(e){return replaceCaret(e,t)}).join(" ")}function replaceCaret(e,t){r("caret",e,t);var n=t.loose?o[H]:o[$];return e.replace(n,function(t,n,i,s,o){r("caret",e,t,n,i,s,o);var a;if(isX(n)){a=""}else if(isX(i)){a=">="+n+".0.0 <"+(+n+1)+".0.0"}else if(isX(s)){if(n==="0"){a=">="+n+"."+i+".0 <"+n+"."+(+i+1)+".0"}else{a=">="+n+"."+i+".0 <"+(+n+1)+".0.0"}}else if(o){r("replaceCaret pr",o);if(n==="0"){if(i==="0"){a=">="+n+"."+i+"."+s+"-"+o+" <"+n+"."+i+"."+(+s+1)}else{a=">="+n+"."+i+"."+s+"-"+o+" <"+n+"."+(+i+1)+".0"}}else{a=">="+n+"."+i+"."+s+"-"+o+" <"+(+n+1)+".0.0"}}else{r("no pr");if(n==="0"){if(i==="0"){a=">="+n+"."+i+"."+s+" <"+n+"."+i+"."+(+s+1)}else{a=">="+n+"."+i+"."+s+" <"+n+"."+(+i+1)+".0"}}else{a=">="+n+"."+i+"."+s+" <"+(+n+1)+".0.0"}}r("caret return",a);return a})}function replaceXRanges(e,t){r("replaceXRanges",e,t);return e.split(/\s+/).map(function(e){return replaceXRange(e,t)}).join(" ")}function replaceXRange(e,t){e=e.trim();var n=t.loose?o[F]:o[O];return e.replace(n,function(t,n,i,s,o,a){r("xRange",e,t,n,i,s,o,a);var u=isX(i);var c=u||isX(s);var l=c||isX(o);var h=l;if(n==="="&&h){n=""}if(u){if(n===">"||n==="<"){t="<0.0.0"}else{t="*"}}else if(n&&h){if(c){s=0}o=0;if(n===">"){n=">=";if(c){i=+i+1;s=0;o=0}else{s=+s+1;o=0}}else if(n==="<="){n="<";if(c){i=+i+1}else{s=+s+1}}t=n+i+"."+s+"."+o}else if(c){t=">="+i+".0.0 <"+(+i+1)+".0.0"}else if(l){t=">="+i+"."+s+".0 <"+i+"."+(+s+1)+".0"}r("xRange return",t);return t})}function replaceStars(e,t){r("replaceStars",e,t);return e.trim().replace(o[V],"")}function hyphenReplace(e,t,r,n,i,s,o,a,u,c,l,h,f){if(isX(r)){t=""}else if(isX(n)){t=">="+r+".0.0"}else if(isX(i)){t=">="+r+"."+n+".0"}else{t=">="+t}if(isX(u)){a=""}else if(isX(c)){a="<"+(+u+1)+".0.0"}else if(isX(l)){a="<"+u+"."+(+c+1)+".0"}else if(h){a="<="+u+"."+c+"."+l+"-"+h}else{a="<="+a}return(t+" "+a).trim()}Range.prototype.test=function(e){if(!e){return false}if(typeof e==="string"){e=new SemVer(e,this.options)}for(var t=0;t<this.set.length;t++){if(testSet(this.set[t],e,this.options)){return true}}return false};function testSet(e,t,n){for(var i=0;i<e.length;i++){if(!e[i].test(t)){return false}}if(t.prerelease.length&&!n.includePrerelease){for(i=0;i<e.length;i++){r(e[i].semver);if(e[i].semver===J){continue}if(e[i].semver.prerelease.length>0){var s=e[i].semver;if(s.major===t.major&&s.minor===t.minor&&s.patch===t.patch){return true}}}return false}return true}t.satisfies=satisfies;function satisfies(e,t,r){try{t=new Range(t,r)}catch(e){return false}return t.test(e)}t.maxSatisfying=maxSatisfying;function maxSatisfying(e,t,r){var n=null;var i=null;try{var s=new Range(t,r)}catch(e){return null}e.forEach(function(e){if(s.test(e)){if(!n||i.compare(e)===-1){n=e;i=new SemVer(n,r)}}});return n}t.minSatisfying=minSatisfying;function minSatisfying(e,t,r){var n=null;var i=null;try{var s=new Range(t,r)}catch(e){return null}e.forEach(function(e){if(s.test(e)){if(!n||i.compare(e)===1){n=e;i=new SemVer(n,r)}}});return n}t.minVersion=minVersion;function minVersion(e,t){e=new Range(e,t);var r=new SemVer("0.0.0");if(e.test(r)){return r}r=new SemVer("0.0.0-0");if(e.test(r)){return r}r=null;for(var n=0;n<e.set.length;++n){var i=e.set[n];i.forEach(function(e){var t=new SemVer(e.semver.version);switch(e.operator){case">":if(t.prerelease.length===0){t.patch++}else{t.prerelease.push(0)}t.raw=t.format();case"":case">=":if(!r||gt(r,t)){r=t}break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+e.operator)}})}if(r&&e.test(r)){return r}return null}t.validRange=validRange;function validRange(e,t){try{return new Range(e,t).range||"*"}catch(e){return null}}t.ltr=ltr;function ltr(e,t,r){return outside(e,t,"<",r)}t.gtr=gtr;function gtr(e,t,r){return outside(e,t,">",r)}t.outside=outside;function outside(e,t,r,n){e=new SemVer(e,n);t=new Range(t,n);var i,s,o,a,u;switch(r){case">":i=gt;s=lte;o=lt;a=">";u=">=";break;case"<":i=lt;s=gte;o=gt;a="<";u="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(satisfies(e,t,n)){return false}for(var c=0;c<t.set.length;++c){var l=t.set[c];var h=null;var f=null;l.forEach(function(e){if(e.semver===J){e=new Comparator(">=0.0.0")}h=h||e;f=f||e;if(i(e.semver,h.semver,n)){h=e}else if(o(e.semver,f.semver,n)){f=e}});if(h.operator===a||h.operator===u){return false}if((!f.operator||f.operator===a)&&s(e,f.semver)){return false}else if(f.operator===u&&o(e,f.semver)){return false}}return true}t.prerelease=prerelease;function prerelease(e,t){var r=parse(e,t);return r&&r.prerelease.length?r.prerelease:null}t.intersects=intersects;function intersects(e,t,r){e=new Range(e,r);t=new Range(t,r);return e.intersects(t)}t.coerce=coerce;function coerce(e){if(e instanceof SemVer){return e}if(typeof e!=="string"){return null}var t=e.match(o[P]);if(t==null){return null}return parse(t[1]+"."+(t[2]||"0")+"."+(t[3]||"0"))}},7032:(e,t,r)=>{"use strict";var n=r(2638);e.exports=function(e){var t=e.match(n);if(!t){return null}var r=t[0].replace(/#! ?/,"").split(" ");var i=r[0].split("/").pop();var s=r[1];return i==="env"?s:i+(s?" "+s:"")}},2638:e=>{"use strict";e.exports=/^#!.*/},4931:(e,t,r)=>{var n=r(2357);var i=r(3710);var s=r(8614);if(typeof s!=="function"){s=s.EventEmitter}var o;if(process.__signal_exit_emitter__){o=process.__signal_exit_emitter__}else{o=process.__signal_exit_emitter__=new s;o.count=0;o.emitted={}}if(!o.infinite){o.setMaxListeners(Infinity);o.infinite=true}e.exports=function(e,t){n.equal(typeof e,"function","a callback must be provided for exit handler");if(u===false){load()}var r="exit";if(t&&t.alwaysLast){r="afterexit"}var i=function(){o.removeListener(r,e);if(o.listeners("exit").length===0&&o.listeners("afterexit").length===0){unload()}};o.on(r,e);return i};e.exports.unload=unload;function unload(){if(!u){return}u=false;i.forEach(function(e){try{process.removeListener(e,a[e])}catch(e){}});process.emit=l;process.reallyExit=c;o.count-=1}function emit(e,t,r){if(o.emitted[e]){return}o.emitted[e]=true;o.emit(e,t,r)}var a={};i.forEach(function(e){a[e]=function listener(){var t=process.listeners(e);if(t.length===o.count){unload();emit("exit",null,e);emit("afterexit",null,e);process.kill(process.pid,e)}}});e.exports.signals=function(){return i};e.exports.load=load;var u=false;function load(){if(u){return}u=true;o.count+=1;i=i.filter(function(e){try{process.on(e,a[e]);return true}catch(e){return false}});process.emit=processEmit;process.reallyExit=processReallyExit}var c=process.reallyExit;function processReallyExit(e){process.exitCode=e||0;emit("exit",process.exitCode,null);emit("afterexit",process.exitCode,null);c.call(process,process.exitCode)}var l=process.emit;function processEmit(e,t){if(e==="exit"){if(t!==undefined){process.exitCode=t}var r=l.apply(this,arguments);emit("exit",process.exitCode,null);emit("afterexit",process.exitCode,null);return r}else{return l.apply(this,arguments)}}},3710:e=>{e.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"];if(process.platform!=="win32"){e.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT")}if(process.platform==="linux"){e.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")}},9571:e=>{"use strict";const t="";const r=`${t}[`;const n="";const i={to(e,t){if(!t)return`${r}${e+1}G`;return`${r}${t+1};${e+1}H`},move(e,t){let n="";if(e<0)n+=`${r}${-e}D`;else if(e>0)n+=`${r}${e}C`;if(t<0)n+=`${r}${-t}A`;else if(t>0)n+=`${r}${t}B`;return n},up:(e=1)=>`${r}${e}A`,down:(e=1)=>`${r}${e}B`,forward:(e=1)=>`${r}${e}C`,backward:(e=1)=>`${r}${e}D`,nextLine:(e=1)=>`${r}E`.repeat(e),prevLine:(e=1)=>`${r}F`.repeat(e),left:`${r}G`,hide:`${r}?25l`,show:`${r}?25h`,save:`${t}7`,restore:`${t}8`};const s={up:(e=1)=>`${r}S`.repeat(e),down:(e=1)=>`${r}T`.repeat(e)};const o={screen:`${r}2J`,up:(e=1)=>`${r}1J`.repeat(e),down:(e=1)=>`${r}J`.repeat(e),line:`${r}2K`,lineEnd:`${r}K`,lineStart:`${r}1K`,lines(e){let t="";for(let r=0;r<e;r++)t+=this.line+(r<e-1?i.up():"");if(e)t+=i.left;return t}};e.exports={cursor:i,scroll:s,erase:o,beep:n}},6354:(e,t,r)=>{var n=r(421);var i=r(4304).StringDecoder;e.exports=split;function split(e,t,r){var s=new i;var o="";var a=r&&r.maxLength;var u=r&&r.trailing===false?false:true;if("function"===typeof e)t=e,e=null;if(!e)e=/\r?\n/;function emit(e,r){if(t){try{r=t(r)}catch(t){return e.emit("error",t)}if("undefined"!==typeof r)e.queue(r)}else e.queue(r)}function next(t,r){var n=((o!=null?o:"")+r).split(e);o=n.pop();if(a&&o.length>a)return t.emit("error",new Error("maximum buffer reached"));for(var i=0;i<n.length;i++){var s=n[i];emit(t,s)}}return n(function(e){next(this,s.write(e))},function(){if(s.end)next(this,s.end());if(u&&o!=null)emit(this,o);this.queue(null)})}},5591:(e,t,r)=>{"use strict";const n=r(5063);e.exports=(e=>typeof e==="string"?e.replace(n(),""):e)},8566:(e,t,r)=>{var n={child:r(3129),crypto:r(6417),fs:r(5747),os:r(2087),path:r(5622),process:process,util:r(1669)};function Attempt(e,t){var r=n.process.platform;if(r==="darwin")return Mac(e,t);if(r==="linux")return Linux(e,t);if(r==="win32")return Windows(e,t);t(new Error("Platform not yet supported."))}function EscapeDoubleQuotes(e){if(typeof e!=="string")throw new Error("Expected a string.");return e.replace(/"/g,'\\"')}function Exec(){if(arguments.length<1||arguments.length>3){throw new Error("Wrong number of arguments.")}var e=arguments[0];var t={};var r=function(){};if(typeof e!=="string"){throw new Error("Command should be a string.")}if(arguments.length===2){if(n.util.isObject(arguments[1])){t=arguments[1]}else if(n.util.isFunction(arguments[1])){r=arguments[1]}else{throw new Error("Expected options or callback.")}}else if(arguments.length===3){if(n.util.isObject(arguments[1])){t=arguments[1]}else{throw new Error("Expected options to be an object.")}if(n.util.isFunction(arguments[2])){r=arguments[2]}else{throw new Error("Expected callback to be a function.")}}if(/^sudo/i.test(e)){return r(new Error('Command should not be prefixed with "sudo".'))}if(typeof t.name==="undefined"){var i=n.process.title;if(ValidName(i)){t.name=i}else{return r(new Error("process.title cannot be used as a valid name."))}}else if(!ValidName(t.name)){var s="";s+="options.name must be alphanumeric only ";s+="(spaces are allowed) and <= 70 characters.";return r(new Error(s))}if(typeof t.icns!=="undefined"){if(typeof t.icns!=="string"){return r(new Error("options.icns must be a string if provided."))}else if(t.icns.trim().length===0){return r(new Error("options.icns must not be empty if provided."))}}if(typeof t.env!=="undefined"){if(typeof t.env!=="object"){return r(new Error("options.env must be an object if provided."))}else if(Object.keys(t.env).length===0){return r(new Error("options.env must not be empty if provided."))}else{for(var o in t.env){var a=t.env[o];if(typeof o!=="string"||typeof a!=="string"){return r(new Error("options.env environment variables must be strings."))}if(!/^[a-zA-Z_][a-zA-Z0-9_]*$/.test(o)){return r(new Error("options.env has an invalid environment variable name: "+JSON.stringify(o)))}if(/[\r\n]/.test(a)){return r(new Error("options.env has an invalid environment variable value: "+JSON.stringify(a)))}}}}var u=n.process.platform;if(u!=="darwin"&&u!=="linux"&&u!=="win32"){return r(new Error("Platform not yet supported."))}var c={command:e,options:t,uuid:undefined,path:undefined};Attempt(c,r)}function Linux(e,t){LinuxBinary(e,function(r,i){if(r)return t(r);var u=[];u.push('cd "'+EscapeDoubleQuotes(n.process.cwd())+'";');for(var c in e.options.env){var l=e.options.env[c];u.push("export "+c+'="'+EscapeDoubleQuotes(l)+'";')}u.push('"'+EscapeDoubleQuotes(i)+'"');if(/kdesudo/i.test(i)){u.push("--comment",'"'+e.options.name+" wants to make changes. "+'Enter your password to allow this."');u.push("-d");u.push("--")}else if(/pkexec/i.test(i)){u.push("--disable-internal-agent")}var h="SUDOPROMPT\n";u.push('/bin/bash -c "echo '+EscapeDoubleQuotes(h.trim())+"; "+EscapeDoubleQuotes(e.command)+'"');u=u.join(" ");n.child.exec(u,{encoding:"utf-8",maxBuffer:a},function(e,r,n){var i=r&&r.slice(0,h.length)===h;if(i)r=r.slice(h.length);if(e&&!i){if(/No authentication agent found/.test(n)){e.message=o}else{e.message=s}}t(e,r,n)})})}function LinuxBinary(e,t){var r=0;var i=["/usr/bin/kdesudo","/usr/bin/pkexec"];function test(){if(r===i.length){return t(new Error("Unable to find pkexec or kdesudo."))}var e=i[r++];n.fs.stat(e,function(r){if(r){if(r.code==="ENOTDIR")return test();if(r.code==="ENOENT")return test();t(r)}else{t(undefined,e)}})}test()}function Mac(e,t){var r=n.os.tmpdir();if(!r)return t(new Error("os.tmpdir() not defined."));var i=n.process.env.USER;if(!i)return t(new Error("env['USER'] not defined."));UUID(e,function(i,s){if(i)return t(i);e.uuid=s;e.path=n.path.join(r,e.uuid,e.options.name+".app");function end(r,i,s){Remove(n.path.dirname(e.path),function(e){if(r)return t(r);if(e)return t(e);t(undefined,i,s)})}MacApplet(e,function(t,r,n){if(t)return end(t,r,n);MacIcon(e,function(t){if(t)return end(t);MacPropertyList(e,function(t,r,n){if(t)return end(t,r,n);MacCommand(e,function(t){if(t)return end(t);MacOpen(e,function(t,r,n){if(t)return end(t,r,n);MacResult(e,end)})})})})})})}function MacApplet(e,t){var r=n.path.dirname(e.path);n.fs.mkdir(r,function(s){if(s)return t(s);var o=n.path.join(r,"sudo-prompt-applet.zip");n.fs.writeFile(o,i,"base64",function(r){if(r)return t(r);var i=[];i.push("/usr/bin/unzip");i.push("-o");i.push('"'+EscapeDoubleQuotes(o)+'"');i.push('-d "'+EscapeDoubleQuotes(e.path)+'"');i=i.join(" ");n.child.exec(i,{encoding:"utf-8"},t)})})}function MacCommand(e,t){var r=n.path.join(e.path,"Contents","MacOS","sudo-prompt-command");var i=[];i.push('cd "'+EscapeDoubleQuotes(n.process.cwd())+'"');for(var s in e.options.env){var o=e.options.env[s];i.push("export "+s+'="'+EscapeDoubleQuotes(o)+'"')}i.push(e.command);i=i.join("\n");n.fs.writeFile(r,i,"utf-8",t)}function MacIcon(e,t){if(!e.options.icns)return t();n.fs.readFile(e.options.icns,function(r,i){if(r)return t(r);var s=n.path.join(e.path,"Contents","Resources","applet.icns");n.fs.writeFile(s,i,t)})}function MacOpen(e,t){var r=n.path.join(e.path,"Contents","MacOS","applet");var i={cwd:n.path.dirname(r),encoding:"utf-8"};n.child.exec("./"+n.path.basename(r),i,t)}function MacPropertyList(e,t){var r=n.path.join(e.path,"Contents","Info.plist");var i=EscapeDoubleQuotes(r);var s=EscapeDoubleQuotes("CFBundleName");var o=e.options.name+" Password Prompt";if(/'/.test(o)){return t(new Error("Value should not contain single quotes."))}var a=[];a.push("/usr/bin/defaults");a.push("write");a.push('"'+i+'"');a.push('"'+s+'"');a.push("'"+o+"'");a=a.join(" ");n.child.exec(a,{encoding:"utf-8"},t)}function MacResult(e,t){var r=n.path.join(e.path,"Contents","MacOS");n.fs.readFile(n.path.join(r,"code"),"utf-8",function(i,o){if(i){if(i.code==="ENOENT")return t(new Error(s));t(i)}else{n.fs.readFile(n.path.join(r,"stdout"),"utf-8",function(i,s){if(i)return t(i);n.fs.readFile(n.path.join(r,"stderr"),"utf-8",function(r,n){if(r)return t(r);o=parseInt(o.trim(),10);if(o===0){t(undefined,s,n)}else{r=new Error("Command failed: "+e.command+"\n"+n);r.code=o;t(r,s,n)}})})}})}function Remove(e,t){if(typeof e!=="string"||!e.trim()){return t(new Error("Argument path not defined."))}var r=[];if(n.process.platform==="win32"){if(/"/.test(e)){return t(new Error("Argument path cannot contain double-quotes."))}r.push('rmdir /s /q "'+e+'"')}else{r.push("/bin/rm");r.push("-rf");r.push('"'+EscapeDoubleQuotes(n.path.normalize(e))+'"')}r=r.join(" ");n.child.exec(r,{encoding:"utf-8"},t)}function UUID(e,t){n.crypto.randomBytes(256,function(r,i){if(r)i=Date.now()+""+Math.random();var s=n.crypto.createHash("SHA256");s.update("sudo-prompt-3");s.update(e.options.name);s.update(e.command);s.update(i);var o=s.digest("hex").slice(-32);if(!o||typeof o!=="string"||o.length!==32){return t(new Error("Expected a valid UUID."))}t(undefined,o)})}function ValidName(e){if(!/^[a-z0-9 ]+$/i.test(e))return false;if(e.trim().length===0)return false;if(e.length>70)return false;return true}function Windows(e,t){var r=n.os.tmpdir();if(!r)return t(new Error("os.tmpdir() not defined."));UUID(e,function(i,s){if(i)return t(i);e.uuid=s;e.path=n.path.join(r,e.uuid);if(/"/.test(e.path)){return t(new Error("instance.path cannot contain double-quotes."))}e.pathElevate=n.path.join(e.path,"elevate.vbs");e.pathExecute=n.path.join(e.path,"execute.bat");e.pathCommand=n.path.join(e.path,"command.bat");e.pathStdout=n.path.join(e.path,"stdout");e.pathStderr=n.path.join(e.path,"stderr");e.pathStatus=n.path.join(e.path,"status");n.fs.mkdir(e.path,function(r){if(r)return t(r);function end(r,n,i){Remove(e.path,function(e){if(r)return t(r);if(e)return t(e);t(undefined,n,i)})}WindowsWriteExecuteScript(e,function(t){if(t)return end(t);WindowsWriteCommandScript(e,function(t){if(t)return end(t);WindowsElevate(e,function(t,r,n){if(t)return end(t,r,n);WindowsWaitForStatus(e,function(t){if(t)return end(t);WindowsResult(e,end)})})})})})})}function WindowsElevate(e,t){var r=[];r.push("powershell.exe");r.push("Start-Process");r.push("-FilePath");r.push("\"'"+e.pathExecute.replace(/'/g,"`'")+"'\"");r.push("-WindowStyle hidden");r.push("-Verb runAs");r=r.join(" ");var i=n.child.exec(r,{encoding:"utf-8"},function(e,r,n){if(e)return t(new Error(s),r,n);t()});i.stdin.end()}function WindowsResult(e,t){n.fs.readFile(e.pathStatus,"utf-8",function(r,i){if(r)return t(r);n.fs.readFile(e.pathStdout,"utf-8",function(r,s){if(r)return t(r);n.fs.readFile(e.pathStderr,"utf-8",function(r,n){if(r)return t(r);i=parseInt(i.trim(),10);if(i===0){t(undefined,s,n)}else{r=new Error("Command failed: "+e.command+"\r\n"+n);r.code=i;t(r,s,n)}})})})}function WindowsWaitForStatus(e,t){n.fs.stat(e.pathStatus,function(r,i){if(r&&r.code==="ENOENT"||i.size<2){setTimeout(function(){n.fs.stat(e.pathStdout,function(r){if(r)return t(new Error(s));WindowsWaitForStatus(e,t)})},1e3)}else if(r){t(r)}else{t()}})}function WindowsWriteCommandScript(e,t){var r=n.process.cwd();if(/"/.test(r)){return t(new Error("process.cwd() cannot contain double-quotes."))}var i=[];i.push("@echo off");i.push("chcp 65001>nul");i.push('cd /d "'+r+'"');for(var s in e.options.env){var o=e.options.env[s];i.push("set "+s+"="+o.replace(/([<>\\|&^])/g,"^$1"))}i.push(e.command);i=i.join("\r\n");n.fs.writeFile(e.pathCommand,i,"utf-8",t)}function WindowsWriteElevateScript(e,t){}function WindowsWriteExecuteScript(e,t){var r=[];r.push("@echo off");r.push('call "'+e.pathCommand+'"'+' > "'+e.pathStdout+'" 2> "'+e.pathStderr+'"');r.push('(echo %ERRORLEVEL%) > "'+e.pathStatus+'"');r=r.join("\r\n");n.fs.writeFile(e.pathExecute,r,"utf-8",t)}e.exports.exec=Exec;var i="UEsDBAoAAAAAAO1YcEcAAAAAAAAAAAAAAAAJABwAQ29udGVudHMvVVQJAAPNnElWLZEQV3V4CwABBPUBAAAEFAAAAFBLAwQUAAAACACgeXBHlHaGqKEBAAC+AwAAEwAcAENvbnRlbnRzL0luZm8ucGxpc3RVVAkAA1zWSVYtkRBXdXgLAAEE9QEAAAQUAAAAfZNRb5swFIWfl1/BeA9OpSmqJkqVBCJFop1VyKQ9Ta59S6wa27NNCfv1M0naJWTsEXO+c8+9vo7v97UI3sBYruRdeBPNwgAkVYzL6i7cluvpbXifTOLP6bdV+QNngRbcugBvl/lmFYRThBZaC0AoLdMA55uiDLwHQtljGIQ75/RXhNq2jUiviqiqe6FF2CgNxnW5N5t6IGKOhb7M0f0ijj9lnLpk8il+hS5ZrZeNZAIWQqj2ge+B5YoSwX8T5xEbo17ktc40gIZQCm8glK5BuieovP5Dbp3xHSeZrHyCXYxO3wM+2wNtHHkWMAQP/bkxbkOVXPMxKuK0Dz6CMh+Wv3AwQ9gPM7INU1NtVK3Ha8sXlfoB+m6J6b4fRzv0mkezMf6R1Fe5MbG2VYYF+L+lMaGvpIKy01cOC4zzMazYKeNOQYuDYkjfjMcteCWJa8w/Zi2ugubFA5e8buqisw7qU81ltzB0xx3QC5/TFh7J/e385/zL+7+/wWbR/LwIOl/dvHiCXw03YFfEPJ9dwsWu5sV2kwnod3QoeLeL0eGdJJM/UEsDBAoAAAAAAHSBjkgAAAAAAAAAAAAAAAAPABwAQ29udGVudHMvTWFjT1MvVVQJAAMbpQ9XLZEQV3V4CwABBPUBAAAEFAAAAFBLAwQUAAAACABVHBdH7Dk4KTIIAADIYQAAFQAcAENvbnRlbnRzL01hY09TL2FwcGxldFVUCQADMiPZVVOlD1d1eAsAAQT1AQAABBQAAADtnG9sHEcVwGfti7M1/rONLNVtXHqpzsipis+pHOSWFOzEm25at3XrJI2ozbK+W/suuds79vaSuCKSpaOIxRy1+NSPRPAhlWj7AVRaQCWpTRz+CEo+RSKCCho4K67kVhUyAeV4b3fWt17fXZqKFgHvp8zO3/dmdmfPmtl5L7+8/uPXGWMNELZCaGRMgmjHIlxaBCibdcoGsewCljGCIAiCIAiCIAiCIP7r+M21d67zjb/zEaAdwr1bGHuWMQH2/2wAgqqODj0kf0F+8nGfoFRbJ8p9U0C5g/KRgwEZqZLGfrfwwJx+LP2kVWkelD9zJ2NfBr1nWt2xrhNisxWZ3Ex6MpNSc1Z+soqOO+5i7JMYt7vj9BC5jiZXBwirCT2V1c0qOgZAxwMYt9cbRyxnmUljusa9mKBjGON2tgG/PlXNGyeSRlxNGlOZKjpeBR0KxsFx+MB7VJy5GB46OOSrCLPKfEjrH3/gFry+4zOpuH8sm+VF5srW6ltVjZQ3HVnL3KRDDLsflMSADpyDyjuR0urp6AAdHRgHdOD9iOs6Ypl0OmPUupeecOW19OsQAmn3tzBy4LFH5OED3jz0MbYouM8D460BOdTXCaEF6tsgLkF8GeJPQBj16Rb4PTf5xl2NH4J8a5Vy1N3F3OcZzefMaCo5GeVTuJ2P4cUf/aH5qbbP73/utpfeevdbLzwfYfy+Q80woGan/1E+ljo/703g77IaOJY479t5rqFLDag9OjaTs/R0dCQ5aWrmTHS/qaX1ExnzWC66L2PqY7p5PBnTc71TXnn0sG7mkhkjFx3a0IL30e/rQxB+EXL68J4BBLe73r298DySk5tlGPtJY1BmOhZTc727PBH2Ke+ZhF35nTyP80oQBEEQBPFRcJTZVwpvrxZWpLmJkN0VKT4q2iORUGFBOPfnBuFX9nhELOG67f1D9pWxpw4XVrrmTklz+ZY5Wfwurm/t3ffi9cE+uM41vYbbj2fP5kNXt9sXiopwVRj6xhPlr160mttfuVi4Fs2vXv2rfc5u7UeZfxQ+y4pPh/JrpyUUBjmrofzmadGXKf0eui7KK/ZwJLQUiuRAe+mLUFQ+tFKUV3npd7AU9ytz8iqIiXYoUnoBsqdxDbXk3CXcRov9lYhoW5EQjBxb4NoSY9iQsvn5+QSuusrduAybL3eHIIIbLqyIS9CHlY3loB8rldVKuLfyOsE1+a6zhUVxYsFp3Amqz8tr7Lz8dza1JF8TmC3/syivYVtcfxcWOycWQDvuLcrdnc61y7mGnWsErgmsXDbK5TKkscnypJvGhsuH3TQ2X37YTaPQ8ucw7W6t1LR2TFfjekqb0SGTiedTOmz0klZSSyWf0U01pqVSufXGmThsjs20OpU3Yrjuxbnu4u+GP8b1LO6PcX2L4Q6+v8Q07u9aQFLy71Ckt54TIfjfNdzfDkMYhTAOIXHXh39vCYIgCIIgCIIgCIL4z3Nm+84/Ci1Nn8b0ryHsgbBX1rbgOXD7LZJzNtrC0/gFqYOn8csQ/GONguQchPXzcvy+9CBzvk84HxkO+tJH3bRz5Fb0pb/nS3/fl/6BL/2aL43faLzz3Wbmju8W5p6pttaoR9THjgyZ0zEeH2eqqmbNzLShpXVIpxOqflKP5S1dTehaXDeZqhvHk2bGYOo+LZXal0lnM4ZuWMPJXFazYgmmPp7VjWF9SsunrPVa1HpMn0lPm2r8hGZO3aea+nQyZ+mmmtNjFp5i4oG0lTChE+eDj2pm8lbSgDFoln4yCRp00zQyEDmZtBZLbGxnanHzgWh092d29e/uv+/f+DIQBEEQBEEQBEEQ/7P81rX/FxoZm/Xs/5UmtP8PO/W3M9fGvKoPAEfYXLQJ1HOpmk+AJx80OOb5m/URGG9z9c378rVs9F15tPXP1dS3wvVtC+Q9/H4DFX21fQcY9zvo9eXrj6++D0Af1zfqy9eyx3f16QnVMayufr+zXN+sL99YRx/O69er+RdIgXkNxJv9DfBTDIxLPa6Zudr6enz5euO6ke9Bj7TRzr0noK+JbczfyA9hgOvr9OX98t57XNFX3ydhlOsL+2T8+oK/ucrvNOCfEHbbXhAqeebLB/0V7oYp7+Pt8PsZWnl1+urRpAn7SUCcYBX/hkth95kd2cFYllX3bxB4+xCrzcCO6v4PbXzo1fwbEM/H4ds/f/nCgZH+8k+j0vNPv7Jlz7qPQ1PFx+FVPoZ76ozj42K87YP9/cT7xuf9UfpSeP0MsJvzp0A8/4g3w+78ef4R+F4QBEEQBPH/w1Gm2FeUwturytwpUSnmJfta4Q3h3J8aFeE9xf7d1ZBSOCcqhftZ/m+YKuG6wV4qaQzdGED0Z2jJ/zpa9ZcegjIF7fkVaIBrt11nJxYOOepXpPPyKjsvvytOLcnvCWxJfh87V+xTa0rx1Kpj0a8UFqWJhXL3fgHt9xXn+rCz7Bop3rkTEkNj5e7bIZ7HNRZb/ku5XE6g58HyZUzdj6mLjh1/Pbt7XMt5dvfvtLl1Fbv7BtbhrtyEPW6V038H1yE88yQTTkqC1LJVnIeaCNe7dr3sEPEe6lCb9LWGfa3efvNG8pe5fF8NeW8g3n7jCI+/xOOEVH19KvF9oudHH2n/YOtYgiAIgiAIgiAIgiA+fm69mx3aO8bYtkHn/xlwDq8nkwaavz9h9swzc+DWwRrm71A5CJVVjeChTtk26Fqwu0fxQjUL+9vqHVV/KC53OUd+bJxVfBkw7/gzCO5pr3dOK/g+WUQDeZlV/A2QRwJ5THjn1/xcd9BfhlT1KbgpVwLn+W2amGr2//8CUEsDBBQAAAAIAAVHj0ga7FYjfQEAAKoCAAAhABwAQ29udGVudHMvTWFjT1Mvc3Vkby1wcm9tcHQtc2NyaXB0VVQJAAOJkBBXipAQV3V4CwABBPUBAAAEFAAAAI1SO08cMRDu91cMHIKGxUB5xSGEUqTlFKWMvPYca+EXnjGXy6/PeNcg0qVay+PvObs5U5OLatI0DxvYIwNVm4BdQGIdMhxSkauJ8K1i7FOjvSdwB2A+/WJnXpEJdEGwjvTk0W6HhTW8WldgzKDedVF2Ug2tLn7svz3DDpTFdxWr93C/u7wbVKWyoDhVM/8XZAOPOXvcm+IyXxGcizeaUca0XJ1D0CfQnlEysE2VwbuII0br4gvdCMF37m9IoC39+oxTO2EpS8oZJdtRS0aIKY5/sCQoyLVEMMki6Ghl0BGN9SeuICkPIctXDHDDSB9oGEQi1yZWUAda8EZnIcR/eIOOVao+9TrbkpYFjLmkkHk0KYSGvdt12/e71cP6Hs2c4OJBemtsYusplVX+GLHQ7DKkQ098/ZF38dLEpRCeNUMlMW90BIseeQkWtuu2qKmIyDHCuqFuo1N11Ud/1Cf6CHb7Sfxld2ATklQoUGEDActfZ5326WU74G/HcDv8BVBLAwQKAAAAAADtWHBHqiAGewgAAAAIAAAAEAAcAENvbnRlbnRzL1BrZ0luZm9VVAkAA82cSVYqkRBXdXgLAAEE9QEAAAQUAAAAQVBQTGFwbHRQSwMECgAAAAAAm3lwRwAAAAAAAAAAAAAAABMAHABDb250ZW50cy9SZXNvdXJjZXMvVVQJAANW1klWLZEQV3V4CwABBPUBAAAEFAAAAFBLAwQUAAAACACAeXBHfrnysfYGAAAf3AAAHgAcAENvbnRlbnRzL1Jlc291cmNlcy9hcHBsZXQuaWNuc1VUCQADH9ZJVnGlD1d1eAsAAQT1AQAABBQAAADt3Xk81Hkcx/Hvb5yVo5bGsVlKbcpRRqFlGZGS5JikRBIdI0OZttMZloqiYwrVjD1UqJaUokTRubG72bZVjqR1VZNjp2XEGo9H+9gt+9h/9tHx8H7N4/fw5MHjYeaPz+P7+P7x/bL9griEPNBm+001J0S+ZbvL/NmKwzWHE0IUHebYuRFCEckjL9v/xSvk2EpCpBXZtrYuDra2Oi4hwSvZgSsIMU9MdPdePcZd1aqQu0p3fDkrcFrs+mPWihMU9y6clp5XEFFdbRrEczCtGtfkL3pWfvBGublJ4ct051kuocYtaaqll/IjdfR+V75vlTdl//AJVZU6elZ5f0S7NO3MaE2xMElhF+TUrHgW2nFYeGTrs/OrhDJN5zMX8ZJVKXrqSUM1Rj03bnf85/pJMXECNdl0D1ctfe/j82imziM2nllSa3t5q8+vP1f38k/k22uN1lmnvfz0b8dGxO+mnh91v7WB2tKdrG3d4vmJaHlTvjGzdMqWcw/9frnCtQpPZK9sMKi/Ey/jzgqIPzBy9/dlf9griI2/u+sjcApozWx6/NXytC+qBTlrhb69fE7J6tgOzpWjFSl8qxihr5dYf/qExoeupY6Ze/j2PfL1azhhZ8fU3eelJY+ylk16UJN6KmOU0M4r+75cZhH/mxNndowNb4wx7TCoN4yvMGu8ySq5l5W5t+xQyYbS/Ome7e0W0sXbC5aktl0LEXNYR9obH7dMT721dbNdT/eFzXNEYSH8GU+bQ5s6YniGcj3fHtgXPbo0Oj4i3d5G1Fjfm/Ng7kgpjQDNxw4RRnu+Vloy5ZE3J6OpwlFBzaxS25He2h3lJuizO70zJPLUYtks14RE5yrD8y2tXa5l5Wqh/NBY06yoiCLF08Nk9A5Ojbs43GmR1Ch/PaZsLf3e6uPRSrIM1ROqGjt80leqfdxYbNn+WV7K7ZKiy/t6r1/3ie46V5432T/Oahs9V7NnVzb9zoq2rFgvPxXrcAMzmvWnGjof/RpdsZThIEpex6DGbd5h6STaOyZXxV/YfW9u4KyllmZ3X15IMHHLSJtVPSOvULCsz2TyPC/WL9kGSme/1L01SSzjfbHnqk+OV7OBmevZeo3DBR7lXT5drT0MkX5PwDd1EQ0ebfkh1zy/L8ydd+VJ4CLuRndNjuwj+vMfU8q2l2l1rGtr8FC2D+fdSGk81eltuTjYSMk++4BMd0DXQo35iXbZndGdcXkGFyeG6b28evF22M2w22HlYSXetGSLW4cfFT00WqvN9bkqCujQ9KzdSt+snr+qmbcme+5Y3cDRn9BDLps+dPVltE9UkPeb6XovineiVUznTznyuZaSn/ZvR8VeRUYLqe3iHFqnU6+7+4LmtfsmaS0MdjIvslFJGG/rn7DPdMGLcx4d6eP2Oz92Y49kWbBUjudU2ijHnc7YIODQxD1aPx8PynVr+cmvJoy2+M5nQa2Kt0dvdPxp73LNU6aTeaktTfHH1L+8Pm/XalZcFcfzYxlhTefuzjRGobLKEqPZh8QKxUXWbU/ERvW78ghvTGTUNd0g9YqbcjUy5h0xVbn3S7SS54SOqKt88UR0qZuxKfxlZfODUm52o2HkGTOLw5dqhevvWjH7ssiqxAhKwA91d1nWG9w/GJIc7GwWbKKe/mAsGRqXBb87P10jH8/0LY6kpGQV1KcuAwAAeCt4LiVFWRJKs4DJ6p9GxGHWfLuTM5dt61/pzCCE7vLmSodGJM/ASqdzU2U3VjpY6WClg5XOICudUaI3VjocuWCsdAAAAAAAAAAAAAAAAD5o1Gmr054TSoqWxPvnfrLxVEIc29/cT5YmkmdgPzlCSz8a+8nYT8Z+MvaTB9lPZpJX+8lRktFyRdDF0m6IdcF2MgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAC8ddD8G5oJkUuQnAXwnvxLAAAAADDkEFURRckVE6rIv+Tb1078MiZEetubJ34RHckzcOIXd8uWTpz4hRO/cOIXTvwa5MQvoidZ5S8a9h8nfl1QVhipQ6jyyWeuvTaBGP3D5fwgE4gpeQYmUCZ7XQ0mECYQJhAm0GATyOfVmYOU4sAdNi+cOUpm/9cdNv2Di8kkFN3mYOtrg8sE14xicGFwYXDhmlEAAD5w/Os1o8bTcM0oVjpY6WClg2tGAQAAAAAAAAAAAAAAgL/wb9eMBpow+r817yN/fwnJf33P5g78nWofEZNXD3u95GdSkh3o135/aL2i3vl/gHf/7t59oDlnDSHS8gQhNGQL8uWs6P+iwPYLDuIOzARqyM+E9QOfA3PIfw4IIYQQQgghhBBCCCGEEEIIIYQQQgghhBBCCCGEEEIIIYQQQgghhND70J9QSwMEFAAAAAgA7VhwR/dYplZAAAAAagEAAB4AHABDb250ZW50cy9SZXNvdXJjZXMvYXBwbGV0LnJzcmNVVAkAA82cSVZTpQ9XdXgLAAEE9QEAAAQUAAAAY2BgZGBgYFQBEiDsxjDygJQDPlkmEIEaRpJAQg8kLAMML8bi5OIqIFuouKA4A0jLMTD8/w+S5AdrB7PlBIAEAFBLAwQKAAAAAADtWHBHAAAAAAAAAAAAAAAAJAAcAENvbnRlbnRzL1Jlc291cmNlcy9kZXNjcmlwdGlvbi5ydGZkL1VUCQADzZxJVi2REFd1eAsAAQT1AQAABBQAAABQSwMEFAAAAAgA7VhwRzPLNU9TAAAAZgAAACsAHABDb250ZW50cy9SZXNvdXJjZXMvZGVzY3JpcHRpb24ucnRmZC9UWFQucnRmVVQJAAPNnElWU6UPV3V4CwABBPUBAAAEFAAAACWJOw6AIBAFe08DCBVX2QbWhZgQ1vCpCHcXtHkzkzegtCDB5Xp/g0+UyihARnb70kL/UbvffYpjQODcmk9zKXListxCoUsZA7EQ5S0+dVq085gvUEsDBAoAAAAAAIeBjkgAAAAAAAAAAAAAAAAbABwAQ29udGVudHMvUmVzb3VyY2VzL1NjcmlwdHMvVVQJAAM9pQ9XLZEQV3V4CwABBPUBAAAEFAAAAFBLAwQUAAAACAAJgI5ICl5liTUBAADMAQAAJAAcAENvbnRlbnRzL1Jlc291cmNlcy9TY3JpcHRzL21haW4uc2NwdFVUCQADcaIPV1OlD1d1eAsAAQT1AQAABBQAAAB9UMtOAkEQrNldd9dhH3Dz6NGYiPIJHjTxLCZeF9iDcXEJC0RvfoI/4sEfIvoHPEQEhbIHvOok01U16emu7vOkaF2dXu7XqrUTcyMATkxCwYKthCAUbmciAQ8O11yFcGBfbF/4jR24WmCvWjwUeXqfNutn13XyEeYYHkqKam+kghdJGfUCvwIfB6jiGAX6aCHHETroCrYFe6IKNEXfGOXChc0v7HKpBRzdSFrtELvbumKVC80F/FIjzwe9bj91uZRuXJuwAiLjNi7DlsxPaJSUAMrCFOeac3GfpINennQ6d/0sA4z7JxzKiVCCV+YHAs74LuuIONUi//4RIoC63czrIbYQS3PFicWJcTMTv1JHmocmROLJ45gjzfHvXJqjf7ZZ4RT+61uaBbDipGh2ZanBcjh8/gFQSwECHgMKAAAAAADtWHBHAAAAAAAAAAAAAAAACQAYAAAAAAAAABAA7UEAAAAAQ29udGVudHMvVVQFAAPNnElWdXgLAAEE9QEAAAQUAAAAUEsBAh4DFAAAAAgAoHlwR5R2hqihAQAAvgMAABMAGAAAAAAAAQAAAKSBQwAAAENvbnRlbnRzL0luZm8ucGxpc3RVVAUAA1zWSVZ1eAsAAQT1AQAABBQAAABQSwECHgMKAAAAAAB0gY5IAAAAAAAAAAAAAAAADwAYAAAAAAAAABAA7UExAgAAQ29udGVudHMvTWFjT1MvVVQFAAMbpQ9XdXgLAAEE9QEAAAQUAAAAUEsBAh4DFAAAAAgAVRwXR+w5OCkyCAAAyGEAABUAGAAAAAAAAAAAAO2BegIAAENvbnRlbnRzL01hY09TL2FwcGxldFVUBQADMiPZVXV4CwABBPUBAAAEFAAAAFBLAQIeAxQAAAAIAAVHj0ga7FYjfQEAAKoCAAAhABgAAAAAAAEAAADtgfsKAABDb250ZW50cy9NYWNPUy9zdWRvLXByb21wdC1zY3JpcHRVVAUAA4mQEFd1eAsAAQT1AQAABBQAAABQSwECHgMKAAAAAADtWHBHqiAGewgAAAAIAAAAEAAYAAAAAAABAAAApIHTDAAAQ29udGVudHMvUGtnSW5mb1VUBQADzZxJVnV4CwABBPUBAAAEFAAAAFBLAQIeAwoAAAAAAJt5cEcAAAAAAAAAAAAAAAATABgAAAAAAAAAEADtQSUNAABDb250ZW50cy9SZXNvdXJjZXMvVVQFAANW1klWdXgLAAEE9QEAAAQUAAAAUEsBAh4DFAAAAAgAgHlwR3658rH2BgAAH9wAAB4AGAAAAAAAAAAAAKSBcg0AAENvbnRlbnRzL1Jlc291cmNlcy9hcHBsZXQuaWNuc1VUBQADH9ZJVnV4CwABBPUBAAAEFAAAAFBLAQIeAxQAAAAIAO1YcEf3WKZWQAAAAGoBAAAeABgAAAAAAAAAAACkgcAUAABDb250ZW50cy9SZXNvdXJjZXMvYXBwbGV0LnJzcmNVVAUAA82cSVZ1eAsAAQT1AQAABBQAAABQSwECHgMKAAAAAADtWHBHAAAAAAAAAAAAAAAAJAAYAAAAAAAAABAA7UFYFQAAQ29udGVudHMvUmVzb3VyY2VzL2Rlc2NyaXB0aW9uLnJ0ZmQvVVQFAAPNnElWdXgLAAEE9QEAAAQUAAAAUEsBAh4DFAAAAAgA7VhwRzPLNU9TAAAAZgAAACsAGAAAAAAAAQAAAKSBthUAAENvbnRlbnRzL1Jlc291cmNlcy9kZXNjcmlwdGlvbi5ydGZkL1RYVC5ydGZVVAUAA82cSVZ1eAsAAQT1AQAABBQAAABQSwECHgMKAAAAAACHgY5IAAAAAAAAAAAAAAAAGwAYAAAAAAAAABAA7UFuFgAAQ29udGVudHMvUmVzb3VyY2VzL1NjcmlwdHMvVVQFAAM9pQ9XdXgLAAEE9QEAAAQUAAAAUEsBAh4DFAAAAAgACYCOSApeZYk1AQAAzAEAACQAGAAAAAAAAAAAAKSBwxYAAENvbnRlbnRzL1Jlc291cmNlcy9TY3JpcHRzL21haW4uc2NwdFVUBQADcaIPV3V4CwABBPUBAAAEFAAAAFBLBQYAAAAADQANANwEAABWGAAAAAA=";var s="User did not grant permission.";var o="No polkit authentication agent found.";var a=134217728},9318:(e,t,r)=>{"use strict";const n=r(2087);const i=r(3867);const s=r(1621);const{env:o}=process;let a;if(s("no-color")||s("no-colors")||s("color=false")||s("color=never")){a=0}else if(s("color")||s("colors")||s("color=true")||s("color=always")){a=1}if("FORCE_COLOR"in o){if(o.FORCE_COLOR==="true"){a=1}else if(o.FORCE_COLOR==="false"){a=0}else{a=o.FORCE_COLOR.length===0?1:Math.min(parseInt(o.FORCE_COLOR,10),3)}}function translateLevel(e){if(e===0){return false}return{level:e,hasBasic:true,has256:e>=2,has16m:e>=3}}function supportsColor(e,t){if(a===0){return 0}if(s("color=16m")||s("color=full")||s("color=truecolor")){return 3}if(s("color=256")){return 2}if(e&&!t&&a===undefined){return 0}const r=a||0;if(o.TERM==="dumb"){return r}if(process.platform==="win32"){const e=n.release().split(".");if(Number(e[0])>=10&&Number(e[2])>=10586){return Number(e[2])>=14931?3:2}return 1}if("CI"in o){if(["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(e=>e in o)||o.CI_NAME==="codeship"){return 1}return r}if("TEAMCITY_VERSION"in o){return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(o.TEAMCITY_VERSION)?1:0}if("GITHUB_ACTIONS"in o){return 1}if(o.COLORTERM==="truecolor"){return 3}if("TERM_PROGRAM"in o){const e=parseInt((o.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(o.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}if(/-256(color)?$/i.test(o.TERM)){return 2}if(/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(o.TERM)){return 1}if("COLORTERM"in o){return 1}return r}function getSupportLevel(e){const t=supportsColor(e,e&&e.isTTY);return translateLevel(t)}e.exports={supportsColor:getSupportLevel,stdout:translateLevel(supportsColor(true,i.isatty(1))),stderr:translateLevel(supportsColor(true,i.isatty(2)))}},8824:(e,t,r)=>{"use strict";const n=r(9318);const i=r(1621);function parseVersion(e){if(/^\d{3,4}$/.test(e)){const t=/(\d{1,2})(\d{2})/.exec(e);return{major:0,minor:parseInt(t[1],10),patch:parseInt(t[2],10)}}const t=(e||"").split(".").map(e=>parseInt(e,10));return{major:t[0],minor:t[1],patch:t[2]}}function supportsHyperlink(e){const{env:t}=process;if("FORCE_HYPERLINK"in t){return!(t.FORCE_HYPERLINK.length>0&&parseInt(t.FORCE_HYPERLINK,10)===0)}if(i("no-hyperlink")||i("no-hyperlinks")||i("hyperlink=false")||i("hyperlink=never")){return false}if(i("hyperlink=true")||i("hyperlink=always")){return true}if(!n.supportsColor(e)){return false}if(e&&!e.isTTY){return false}if(process.platform==="win32"){return false}if("CI"in t){return false}if("TEAMCITY_VERSION"in t){return false}if("TERM_PROGRAM"in t){const e=parseVersion(t.TERM_PROGRAM_VERSION);switch(t.TERM_PROGRAM){case"iTerm.app":if(e.major===3){return e.minor>=1}return e.major>3}}if("VTE_VERSION"in t){if(t.VTE_VERSION==="0.50.0"){return false}const e=parseVersion(t.VTE_VERSION);return e.major>0||e.minor>=50}return false}e.exports={supportsHyperlink:supportsHyperlink,stdout:supportsHyperlink(process.stdout),stderr:supportsHyperlink(process.stderr)}},4674:(e,t,r)=>{"use strict";t.c=t.create=r(7671);t.r=t.replace=r(5923);t.t=t.list=r(1525);t.u=t.update=r(4404);t.x=t.extract=r(5317);t.Pack=r(7900);t.Unpack=r(7628);t.Parse=r(8917);t.ReadEntry=r(7456);t.WriteEntry=r(5450);t.Header=r(6043);t.Pax=r(7996);t.types=r(4173)},7671:(e,t,r)=>{"use strict";const n=r(5274);const i=r(7900);const s=r(5747);const o=r(7714);const a=r(1525);const u=r(5622);const c=e.exports=((e,t,r)=>{if(typeof t==="function")r=t;if(Array.isArray(e))t=e,e={};if(!t||!Array.isArray(t)||!t.length)throw new TypeError("no files or directories specified");t=Array.from(t);const i=n(e);if(i.sync&&typeof r==="function")throw new TypeError("callback not supported for sync tar functions");if(!i.file&&typeof r==="function")throw new TypeError("callback only supported with file option");return i.file&&i.sync?l(i,t):i.file?h(i,t,r):i.sync?p(i,t):m(i,t)});const l=(e,t)=>{const r=new i.Sync(e);const n=new o.WriteStreamSync(e.file,{mode:e.mode||438});r.pipe(n);f(r,t)};const h=(e,t,r)=>{const n=new i(e);const s=new o.WriteStream(e.file,{mode:e.mode||438});n.pipe(s);const a=new Promise((e,t)=>{s.on("error",t);s.on("close",e);n.on("error",t)});d(n,t);return r?a.then(r,r):a};const f=(e,t)=>{t.forEach(t=>{if(t.charAt(0)==="@")a({file:u.resolve(e.cwd,t.substr(1)),sync:true,noResume:true,onentry:t=>e.add(t)});else e.add(t)});e.end()};const d=(e,t)=>{while(t.length){const r=t.shift();if(r.charAt(0)==="@")return a({file:u.resolve(e.cwd,r.substr(1)),noResume:true,onentry:t=>e.add(t)}).then(r=>d(e,t));else e.add(r)}e.end()};const p=(e,t)=>{const r=new i.Sync(e);f(r,t);return r};const m=(e,t)=>{const r=new i(e);d(r,t);return r}},5317:(e,t,r)=>{"use strict";const n=r(5274);const i=r(7628);const s=r(5747);const o=r(7714);const a=r(5622);const u=e.exports=((e,t,r)=>{if(typeof e==="function")r=e,t=null,e={};else if(Array.isArray(e))t=e,e={};if(typeof t==="function")r=t,t=null;if(!t)t=[];else t=Array.from(t);const i=n(e);if(i.sync&&typeof r==="function")throw new TypeError("callback not supported for sync tar functions");if(!i.file&&typeof r==="function")throw new TypeError("callback only supported with file option");if(t.length)c(i,t);return i.file&&i.sync?l(i):i.file?h(i,r):i.sync?f(i):d(i)});const c=(e,t)=>{const r=new Map(t.map(e=>[e.replace(/\/+$/,""),true]));const n=e.filter;const i=(e,t)=>{const n=t||a.parse(e).root||".";const s=e===n?false:r.has(e)?r.get(e):i(a.dirname(e),n);r.set(e,s);return s};e.filter=n?(e,t)=>n(e,t)&&i(e.replace(/\/+$/,"")):e=>i(e.replace(/\/+$/,""))};const l=e=>{const t=new i.Sync(e);const r=e.file;let n=true;let a;const u=s.statSync(r);const c=e.maxReadSize||16*1024*1024;const l=new o.ReadStreamSync(r,{readSize:c,size:u.size});l.pipe(t)};const h=(e,t)=>{const r=new i(e);const n=e.maxReadSize||16*1024*1024;const a=e.file;const u=new Promise((e,t)=>{r.on("error",t);r.on("close",e);s.stat(a,(e,i)=>{if(e)t(e);else{const e=new o.ReadStream(a,{readSize:n,size:i.size});e.on("error",t);e.pipe(r)}})});return t?u.then(t,t):u};const f=e=>{return new i.Sync(e)};const d=e=>{return new i(e)}},1172:(e,t,r)=>{const n=process.env.__FAKE_PLATFORM__||process.platform;const i=n==="win32";const s=global.__FAKE_TESTING_FS__||r(5747);const{O_CREAT:o,O_TRUNC:a,O_WRONLY:u,UV_FS_O_FILEMAP:c=0}=s.constants;const l=i&&!!c;const h=512*1024;const f=c|a|o|u;e.exports=!l?()=>"w":e=>e<h?f:"w"},6043:(e,t,r)=>{"use strict";const n=r(4173);const i=r(5622).posix;const s=r(2370);const o=Symbol("slurp");const a=Symbol("type");class Header{constructor(e,t,r,n){this.cksumValid=false;this.needPax=false;this.nullBlock=false;this.block=null;this.path=null;this.mode=null;this.uid=null;this.gid=null;this.size=null;this.mtime=null;this.cksum=null;this[a]="0";this.linkpath=null;this.uname=null;this.gname=null;this.devmaj=0;this.devmin=0;this.atime=null;this.ctime=null;if(Buffer.isBuffer(e))this.decode(e,t||0,r,n);else if(e)this.set(e)}decode(e,t,r,n){if(!t)t=0;if(!e||!(e.length>=t+512))throw new Error("need 512 bytes for header");this.path=c(e,t,100);this.mode=f(e,t+100,8);this.uid=f(e,t+108,8);this.gid=f(e,t+116,8);this.size=f(e,t+124,12);this.mtime=l(e,t+136,12);this.cksum=f(e,t+148,12);this[o](r);this[o](n,true);this[a]=c(e,t+156,1);if(this[a]==="")this[a]="0";if(this[a]==="0"&&this.path.substr(-1)==="/")this[a]="5";if(this[a]==="5")this.size=0;this.linkpath=c(e,t+157,100);if(e.slice(t+257,t+265).toString()==="ustar\x0000"){this.uname=c(e,t+265,32);this.gname=c(e,t+297,32);this.devmaj=f(e,t+329,8);this.devmin=f(e,t+337,8);if(e[t+475]!==0){const r=c(e,t+345,155);this.path=r+"/"+this.path}else{const r=c(e,t+345,130);if(r)this.path=r+"/"+this.path;this.atime=l(e,t+476,12);this.ctime=l(e,t+488,12)}}let i=8*32;for(let r=t;r<t+148;r++){i+=e[r]}for(let r=t+156;r<t+512;r++){i+=e[r]}this.cksumValid=i===this.cksum;if(this.cksum===null&&i===8*32)this.nullBlock=true}[o](e,t){for(let r in e){if(e[r]!==null&&e[r]!==undefined&&!(t&&r==="path"))this[r]=e[r]}}encode(e,t){if(!e){e=this.block=Buffer.alloc(512);t=0}if(!t)t=0;if(!(e.length>=t+512))throw new Error("need 512 bytes for header");const r=this.ctime||this.atime?130:155;const n=u(this.path||"",r);const i=n[0];const s=n[1];this.needPax=n[2];this.needPax=E(e,t,100,i)||this.needPax;this.needPax=y(e,t+100,8,this.mode)||this.needPax;this.needPax=y(e,t+108,8,this.uid)||this.needPax;this.needPax=y(e,t+116,8,this.gid)||this.needPax;this.needPax=y(e,t+124,12,this.size)||this.needPax;this.needPax=w(e,t+136,12,this.mtime)||this.needPax;e[t+156]=this[a].charCodeAt(0);this.needPax=E(e,t+157,100,this.linkpath)||this.needPax;e.write("ustar\x0000",t+257,8);this.needPax=E(e,t+265,32,this.uname)||this.needPax;this.needPax=E(e,t+297,32,this.gname)||this.needPax;this.needPax=y(e,t+329,8,this.devmaj)||this.needPax;this.needPax=y(e,t+337,8,this.devmin)||this.needPax;this.needPax=E(e,t+345,r,s)||this.needPax;if(e[t+475]!==0)this.needPax=E(e,t+345,155,s)||this.needPax;else{this.needPax=E(e,t+345,130,s)||this.needPax;this.needPax=w(e,t+476,12,this.atime)||this.needPax;this.needPax=w(e,t+488,12,this.ctime)||this.needPax}let o=8*32;for(let r=t;r<t+148;r++){o+=e[r]}for(let r=t+156;r<t+512;r++){o+=e[r]}this.cksum=o;y(e,t+148,8,this.cksum);this.cksumValid=true;return this.needPax}set(e){for(let t in e){if(e[t]!==null&&e[t]!==undefined)this[t]=e[t]}}get type(){return n.name.get(this[a])||this[a]}get typeKey(){return this[a]}set type(e){if(n.code.has(e))this[a]=n.code.get(e);else this[a]=e}}const u=(e,t)=>{const r=100;let n=e;let s="";let o;const a=i.parse(e).root||".";if(Buffer.byteLength(n)<r)o=[n,s,false];else{s=i.dirname(n);n=i.basename(n);do{if(Buffer.byteLength(n)<=r&&Buffer.byteLength(s)<=t)o=[n,s,false];else if(Buffer.byteLength(n)>r&&Buffer.byteLength(s)<=t)o=[n.substr(0,r-1),s,true];else{n=i.join(i.basename(s),n);s=i.dirname(s)}}while(s!==a&&!o);if(!o)o=[e.substr(0,r-1),"",true]}return o};const c=(e,t,r)=>e.slice(t,t+r).toString("utf8").replace(/\0.*/,"");const l=(e,t,r)=>h(f(e,t,r));const h=e=>e===null?null:new Date(e*1e3);const f=(e,t,r)=>e[t]&128?s.parse(e.slice(t,t+r)):p(e,t,r);const d=e=>isNaN(e)?null:e;const p=(e,t,r)=>d(parseInt(e.slice(t,t+r).toString("utf8").replace(/\0.*$/,"").trim(),8));const m={12:8589934591,8:2097151};const y=(e,t,r,n)=>n===null?false:n>m[r]||n<0?(s.encode(n,e.slice(t,t+r)),true):(g(e,t,r,n),false);const g=(e,t,r,n)=>e.write(v(n,r),t,r,"ascii");const v=(e,t)=>b(Math.floor(e).toString(8),t);const b=(e,t)=>(e.length===t-1?e:new Array(t-e.length-1).join("0")+e+" ")+"\0";const w=(e,t,r,n)=>n===null?false:y(e,t,r,n.getTime()/1e3);const A=new Array(156).join("\0");const E=(e,t,r,n)=>n===null?false:(e.write(n+A,t,r,"utf8"),n.length!==Buffer.byteLength(n)||n.length>r);e.exports=Header},5274:e=>{"use strict";const t=new Map([["C","cwd"],["f","file"],["z","gzip"],["P","preservePaths"],["U","unlink"],["strip-components","strip"],["stripComponents","strip"],["keep-newer","newer"],["keepNewer","newer"],["keep-newer-files","newer"],["keepNewerFiles","newer"],["k","keep"],["keep-existing","keep"],["keepExisting","keep"],["m","noMtime"],["no-mtime","noMtime"],["p","preserveOwner"],["L","follow"],["h","follow"]]);const r=e.exports=(e=>e?Object.keys(e).map(r=>[t.has(r)?t.get(r):r,e[r]]).reduce((e,t)=>(e[t[0]]=t[1],e),Object.create(null)):{})},2370:(e,t)=>{"use strict";const r=t.encode=((e,t)=>{if(!Number.isSafeInteger(e))throw Error("cannot encode number outside of javascript safe integer range");else if(e<0)i(e,t);else n(e,t);return t});const n=(e,t)=>{t[0]=128;for(var r=t.length;r>1;r--){t[r-1]=e&255;e=Math.floor(e/256)}};const i=(e,t)=>{t[0]=255;var r=false;e=e*-1;for(var n=t.length;n>1;n--){var i=e&255;e=Math.floor(e/256);if(r)t[n-1]=u(i);else if(i===0)t[n-1]=0;else{r=true;t[n-1]=c(i)}}};const s=t.parse=(e=>{var t=e[e.length-1];var r=e[0];var n;if(r===128)n=a(e.slice(1,e.length));else if(r===255)n=o(e);else throw Error("invalid base256 encoding");if(!Number.isSafeInteger(n))throw Error("parsed number outside of javascript safe integer range");return n});const o=e=>{var t=e.length;var r=0;var n=false;for(var i=t-1;i>-1;i--){var s=e[i];var o;if(n)o=u(s);else if(s===0)o=s;else{n=true;o=c(s)}if(o!==0)r-=o*Math.pow(256,t-i-1)}return r};const a=e=>{var t=e.length;var r=0;for(var n=t-1;n>-1;n--){var i=e[n];if(i!==0)r+=i*Math.pow(256,t-n-1)}return r};const u=e=>(255^e)&255;const c=e=>(255^e)+1&255},1525:(e,t,r)=>{"use strict";const n=r(5274);const i=r(8917);const s=r(5747);const o=r(7714);const a=r(5622);const u=e.exports=((e,t,r)=>{if(typeof e==="function")r=e,t=null,e={};else if(Array.isArray(e))t=e,e={};if(typeof t==="function")r=t,t=null;if(!t)t=[];else t=Array.from(t);const i=n(e);if(i.sync&&typeof r==="function")throw new TypeError("callback not supported for sync tar functions");if(!i.file&&typeof r==="function")throw new TypeError("callback only supported with file option");if(t.length)l(i,t);if(!i.noResume)c(i);return i.file&&i.sync?h(i):i.file?f(i,r):d(i)});const c=e=>{const t=e.onentry;e.onentry=t?e=>{t(e);e.resume()}:e=>e.resume()};const l=(e,t)=>{const r=new Map(t.map(e=>[e.replace(/\/+$/,""),true]));const n=e.filter;const i=(e,t)=>{const n=t||a.parse(e).root||".";const s=e===n?false:r.has(e)?r.get(e):i(a.dirname(e),n);r.set(e,s);return s};e.filter=n?(e,t)=>n(e,t)&&i(e.replace(/\/+$/,"")):e=>i(e.replace(/\/+$/,""))};const h=e=>{const t=d(e);const r=e.file;let n=true;let i;try{const o=s.statSync(r);const a=e.maxReadSize||16*1024*1024;if(o.size<a){t.end(s.readFileSync(r))}else{let e=0;const n=Buffer.allocUnsafe(a);i=s.openSync(r,"r");while(e<o.size){let r=s.readSync(i,n,0,a,e);e+=r;t.write(n.slice(0,r))}t.end()}n=false}finally{if(n&&i)try{s.closeSync(i)}catch(e){}}};const f=(e,t)=>{const r=new i(e);const n=e.maxReadSize||16*1024*1024;const a=e.file;const u=new Promise((e,t)=>{r.on("error",t);r.on("end",e);s.stat(a,(e,i)=>{if(e)t(e);else{const e=new o.ReadStream(a,{readSize:n,size:i.size});e.on("error",t);e.pipe(r)}})});return t?u.then(t,t):u};const d=e=>new i(e)},9624:(e,t,r)=>{"use strict";const n=r(7251);const i=r(5747);const s=r(5622);const o=r(9051);class SymlinkError extends Error{constructor(e,t){super("Cannot extract through symbolic link");this.path=t;this.symlink=e}get name(){return"SylinkError"}}class CwdError extends Error{constructor(e,t){super(t+": Cannot cd into '"+e+"'");this.path=e;this.code=t}get name(){return"CwdError"}}const a=e.exports=((e,t,r)=>{const a=t.umask;const c=t.mode|448;const l=(c&a)!==0;const h=t.uid;const f=t.gid;const d=typeof h==="number"&&typeof f==="number"&&(h!==t.processUid||f!==t.processGid);const p=t.preserve;const m=t.unlink;const y=t.cache;const g=t.cwd;const v=(t,n)=>{if(t)r(t);else{y.set(e,true);if(n&&d)o(n,h,f,e=>v(e));else if(l)i.chmod(e,c,r);else r()}};if(y&&y.get(e)===true)return v();if(e===g)return i.stat(e,(t,r)=>{if(t||!r.isDirectory())t=new CwdError(e,t&&t.code||"ENOTDIR");v(t)});if(p)return n(e,{mode:c}).then(e=>v(null,e),v);const b=s.relative(g,e);const w=b.split(/\/|\\/);u(g,w,c,y,m,g,null,v)});const u=(e,t,r,n,s,o,a,l)=>{if(!t.length)return l(null,a);const h=t.shift();const f=e+"/"+h;if(n.get(f))return u(f,t,r,n,s,o,a,l);i.mkdir(f,r,c(f,t,r,n,s,o,a,l))};const c=(e,t,r,n,o,a,l,h)=>f=>{if(f){if(f.path&&s.dirname(f.path)===a&&(f.code==="ENOTDIR"||f.code==="ENOENT"))return h(new CwdError(a,f.code));i.lstat(e,(s,d)=>{if(s)h(s);else if(d.isDirectory())u(e,t,r,n,o,a,l,h);else if(o)i.unlink(e,s=>{if(s)return h(s);i.mkdir(e,r,c(e,t,r,n,o,a,l,h))});else if(d.isSymbolicLink())return h(new SymlinkError(e,e+"/"+t.join("/")));else h(f)})}else{l=l||e;u(e,t,r,n,o,a,l,h)}};const l=e.exports.sync=((e,t)=>{const r=t.umask;const a=t.mode|448;const u=(a&r)!==0;const c=t.uid;const l=t.gid;const h=typeof c==="number"&&typeof l==="number"&&(c!==t.processUid||l!==t.processGid);const f=t.preserve;const d=t.unlink;const p=t.cache;const m=t.cwd;const y=t=>{p.set(e,true);if(t&&h)o.sync(t,c,l);if(u)i.chmodSync(e,a)};if(p&&p.get(e)===true)return y();if(e===m){let t=false;let r="ENOTDIR";try{t=i.statSync(e).isDirectory()}catch(e){r=e.code}finally{if(!t)throw new CwdError(e,r)}y();return}if(f)return y(n.sync(e,a));const g=s.relative(m,e);const v=g.split(/\/|\\/);let b=null;for(let e=v.shift(),t=m;e&&(t+="/"+e);e=v.shift()){if(p.get(t))continue;try{i.mkdirSync(t,a);b=b||t;p.set(t,true)}catch(e){if(e.path&&s.dirname(e.path)===m&&(e.code==="ENOTDIR"||e.code==="ENOENT"))return new CwdError(m,e.code);const r=i.lstatSync(t);if(r.isDirectory()){p.set(t,true);continue}else if(d){i.unlinkSync(t);i.mkdirSync(t,a);b=b||t;p.set(t,true);continue}else if(r.isSymbolicLink())return new SymlinkError(t,t+"/"+v.join("/"))}}return y(b)})},8371:e=>{"use strict";e.exports=((e,t,r)=>{e&=4095;if(r){e=(e|384)&~18}if(t){if(e&256)e|=64;if(e&32)e|=8;if(e&4)e|=1}return e})},7900:(e,t,r)=>{"use strict";class PackJob{constructor(e,t){this.path=e||"./";this.absolute=t;this.entry=null;this.stat=null;this.readdir=null;this.pending=false;this.ignore=false;this.piped=false}}const n=r(1077);const i=r(3486);const s=r(7456);const o=r(5450);const a=o.Sync;const u=o.Tar;const c=r(665);const l=Buffer.alloc(1024);const h=Symbol("onStat");const f=Symbol("ended");const d=Symbol("queue");const p=Symbol("current");const m=Symbol("process");const y=Symbol("processing");const g=Symbol("processJob");const v=Symbol("jobs");const b=Symbol("jobDone");const w=Symbol("addFSEntry");const A=Symbol("addTarEntry");const E=Symbol("stat");const _=Symbol("readdir");const D=Symbol("onreaddir");const S=Symbol("pipe");const C=Symbol("entry");const x=Symbol("entryOpt");const R=Symbol("writeEntryClass");const O=Symbol("write");const F=Symbol("ondrain");const P=r(5747);const T=r(5622);const k=r(5899);const B=k(class Pack extends n{constructor(e){super(e);e=e||Object.create(null);this.opt=e;this.file=e.file||"";this.cwd=e.cwd||process.cwd();this.maxReadSize=e.maxReadSize;this.preservePaths=!!e.preservePaths;this.strict=!!e.strict;this.noPax=!!e.noPax;this.prefix=(e.prefix||"").replace(/(\\|\/)+$/,"");this.linkCache=e.linkCache||new Map;this.statCache=e.statCache||new Map;this.readdirCache=e.readdirCache||new Map;this[R]=o;if(typeof e.onwarn==="function")this.on("warn",e.onwarn);this.portable=!!e.portable;this.zip=null;if(e.gzip){if(typeof e.gzip!=="object")e.gzip={};if(this.portable)e.gzip.portable=true;this.zip=new i.Gzip(e.gzip);this.zip.on("data",e=>super.write(e));this.zip.on("end",e=>super.end());this.zip.on("drain",e=>this[F]());this.on("resume",e=>this.zip.resume())}else this.on("drain",this[F]);this.noDirRecurse=!!e.noDirRecurse;this.follow=!!e.follow;this.noMtime=!!e.noMtime;this.mtime=e.mtime||null;this.filter=typeof e.filter==="function"?e.filter:e=>true;this[d]=new c;this[v]=0;this.jobs=+e.jobs||4;this[y]=false;this[f]=false}[O](e){return super.write(e)}add(e){this.write(e);return this}end(e){if(e)this.write(e);this[f]=true;this[m]();return this}write(e){if(this[f])throw new Error("write after end");if(e instanceof s)this[A](e);else this[w](e);return this.flowing}[A](e){const t=T.resolve(this.cwd,e.path);if(this.prefix)e.path=this.prefix+"/"+e.path.replace(/^\.(\/+|$)/,"");if(!this.filter(e.path,e))e.resume();else{const r=new PackJob(e.path,t,false);r.entry=new u(e,this[x](r));r.entry.on("end",e=>this[b](r));this[v]+=1;this[d].push(r)}this[m]()}[w](e){const t=T.resolve(this.cwd,e);if(this.prefix)e=this.prefix+"/"+e.replace(/^\.(\/+|$)/,"");this[d].push(new PackJob(e,t));this[m]()}[E](e){e.pending=true;this[v]+=1;const t=this.follow?"stat":"lstat";P[t](e.absolute,(t,r)=>{e.pending=false;this[v]-=1;if(t)this.emit("error",t);else this[h](e,r)})}[h](e,t){this.statCache.set(e.absolute,t);e.stat=t;if(!this.filter(e.path,t))e.ignore=true;this[m]()}[_](e){e.pending=true;this[v]+=1;P.readdir(e.absolute,(t,r)=>{e.pending=false;this[v]-=1;if(t)return this.emit("error",t);this[D](e,r)})}[D](e,t){this.readdirCache.set(e.absolute,t);e.readdir=t;this[m]()}[m](){if(this[y])return;this[y]=true;for(let e=this[d].head;e!==null&&this[v]<this.jobs;e=e.next){this[g](e.value);if(e.value.ignore){const t=e.next;this[d].removeNode(e);e.next=t}}this[y]=false;if(this[f]&&!this[d].length&&this[v]===0){if(this.zip)this.zip.end(l);else{super.write(l);super.end()}}}get[p](){return this[d]&&this[d].head&&this[d].head.value}[b](e){this[d].shift();this[v]-=1;this[m]()}[g](e){if(e.pending)return;if(e.entry){if(e===this[p]&&!e.piped)this[S](e);return}if(!e.stat){if(this.statCache.has(e.absolute))this[h](e,this.statCache.get(e.absolute));else this[E](e)}if(!e.stat)return;if(e.ignore)return;if(!this.noDirRecurse&&e.stat.isDirectory()&&!e.readdir){if(this.readdirCache.has(e.absolute))this[D](e,this.readdirCache.get(e.absolute));else this[_](e);if(!e.readdir)return}e.entry=this[C](e);if(!e.entry){e.ignore=true;return}if(e===this[p]&&!e.piped)this[S](e)}[x](e){return{onwarn:(e,t,r)=>this.warn(e,t,r),noPax:this.noPax,cwd:this.cwd,absolute:e.absolute,preservePaths:this.preservePaths,maxReadSize:this.maxReadSize,strict:this.strict,portable:this.portable,linkCache:this.linkCache,statCache:this.statCache,noMtime:this.noMtime,mtime:this.mtime}}[C](e){this[v]+=1;try{return new this[R](e.path,this[x](e)).on("end",()=>this[b](e)).on("error",e=>this.emit("error",e))}catch(e){this.emit("error",e)}}[F](){if(this[p]&&this[p].entry)this[p].entry.resume()}[S](e){e.piped=true;if(e.readdir)e.readdir.forEach(t=>{const r=this.prefix?e.path.slice(this.prefix.length+1)||"./":e.path;const n=r==="./"?"":r.replace(/\/*$/,"/");this[w](n+t)});const t=e.entry;const r=this.zip;if(r)t.on("data",e=>{if(!r.write(e))t.pause()});else t.on("data",e=>{if(!super.write(e))t.pause()})}pause(){if(this.zip)this.zip.pause();return super.pause()}});class PackSync extends B{constructor(e){super(e);this[R]=a}pause(){}resume(){}[E](e){const t=this.follow?"statSync":"lstatSync";this[h](e,P[t](e.absolute))}[_](e,t){this[D](e,P.readdirSync(e.absolute))}[S](e){const t=e.entry;const r=this.zip;if(e.readdir)e.readdir.forEach(t=>{const r=this.prefix?e.path.slice(this.prefix.length+1)||"./":e.path;const n=r==="./"?"":r.replace(/\/*$/,"/");this[w](n+t)});if(r)t.on("data",e=>{r.write(e)});else t.on("data",e=>{super[O](e)})}}B.Sync=PackSync;e.exports=B},8917:(e,t,r)=>{"use strict";const n=r(5899);const i=r(5622);const s=r(6043);const o=r(8614);const a=r(665);const u=1024*1024;const c=r(7456);const l=r(7996);const h=r(3486);const f=Buffer.from([31,139]);const d=Symbol("state");const p=Symbol("writeEntry");const m=Symbol("readEntry");const y=Symbol("nextEntry");const g=Symbol("processEntry");const v=Symbol("extendedHeader");const b=Symbol("globalExtendedHeader");const w=Symbol("meta");const A=Symbol("emitMeta");const E=Symbol("buffer");const _=Symbol("queue");const D=Symbol("ended");const S=Symbol("emittedEnd");const C=Symbol("emit");const x=Symbol("unzip");const R=Symbol("consumeChunk");const O=Symbol("consumeChunkSub");const F=Symbol("consumeBody");const P=Symbol("consumeMeta");const T=Symbol("consumeHeader");const k=Symbol("consuming");const B=Symbol("bufferConcat");const I=Symbol("maybeEnd");const j=Symbol("writing");const N=Symbol("aborted");const M=Symbol("onDone");const L=Symbol("sawValidEntry");const $=Symbol("sawNullBlock");const H=Symbol("sawEOF");const U=e=>true;e.exports=n(class Parser extends o{constructor(e){e=e||{};super(e);this.file=e.file||"";this[L]=null;this.on(M,e=>{if(this[d]==="begin"||this[L]===false){this.warn("TAR_BAD_ARCHIVE","Unrecognized archive format")}});if(e.ondone)this.on(M,e.ondone);else this.on(M,e=>{this.emit("prefinish");this.emit("finish");this.emit("end");this.emit("close")});this.strict=!!e.strict;this.maxMetaEntrySize=e.maxMetaEntrySize||u;this.filter=typeof e.filter==="function"?e.filter:U;this.writable=true;this.readable=false;this[_]=new a;this[E]=null;this[m]=null;this[p]=null;this[d]="begin";this[w]="";this[v]=null;this[b]=null;this[D]=false;this[x]=null;this[N]=false;this[$]=false;this[H]=false;if(typeof e.onwarn==="function")this.on("warn",e.onwarn);if(typeof e.onentry==="function")this.on("entry",e.onentry)}[T](e,t){if(this[L]===null)this[L]=false;let r;try{r=new s(e,t,this[v],this[b])}catch(e){return this.warn("TAR_ENTRY_INVALID",e)}if(r.nullBlock){if(this[$]){this[H]=true;if(this[d]==="begin")this[d]="header";this[C]("eof")}else{this[$]=true;this[C]("nullBlock")}}else{this[$]=false;if(!r.cksumValid)this.warn("TAR_ENTRY_INVALID","checksum failure",{header:r});else if(!r.path)this.warn("TAR_ENTRY_INVALID","path is required",{header:r});else{const e=r.type;if(/^(Symbolic)?Link$/.test(e)&&!r.linkpath)this.warn("TAR_ENTRY_INVALID","linkpath required",{header:r});else if(!/^(Symbolic)?Link$/.test(e)&&r.linkpath)this.warn("TAR_ENTRY_INVALID","linkpath forbidden",{header:r});else{const e=this[p]=new c(r,this[v],this[b]);if(!this[L]){if(e.remain){const t=()=>{if(!e.invalid)this[L]=true};e.on("end",t)}else{this[L]=true}}if(e.meta){if(e.size>this.maxMetaEntrySize){e.ignore=true;this[C]("ignoredEntry",e);this[d]="ignore";e.resume()}else if(e.size>0){this[w]="";e.on("data",e=>this[w]+=e);this[d]="meta"}}else{this[v]=null;e.ignore=e.ignore||!this.filter(e.path,e);if(e.ignore){this[C]("ignoredEntry",e);this[d]=e.remain?"ignore":"header";e.resume()}else{if(e.remain)this[d]="body";else{this[d]="header";e.end()}if(!this[m]){this[_].push(e);this[y]()}else this[_].push(e)}}}}}}[g](e){let t=true;if(!e){this[m]=null;t=false}else if(Array.isArray(e))this.emit.apply(this,e);else{this[m]=e;this.emit("entry",e);if(!e.emittedEnd){e.on("end",e=>this[y]());t=false}}return t}[y](){do{}while(this[g](this[_].shift()));if(!this[_].length){const e=this[m];const t=!e||e.flowing||e.size===e.remain;if(t){if(!this[j])this.emit("drain")}else e.once("drain",e=>this.emit("drain"))}}[F](e,t){const r=this[p];const n=r.blockRemain;const i=n>=e.length&&t===0?e:e.slice(t,t+n);r.write(i);if(!r.blockRemain){this[d]="header";this[p]=null;r.end()}return i.length}[P](e,t){const r=this[p];const n=this[F](e,t);if(!this[p])this[A](r);return n}[C](e,t,r){if(!this[_].length&&!this[m])this.emit(e,t,r);else this[_].push([e,t,r])}[A](e){this[C]("meta",this[w]);switch(e.type){case"ExtendedHeader":case"OldExtendedHeader":this[v]=l.parse(this[w],this[v],false);break;case"GlobalExtendedHeader":this[b]=l.parse(this[w],this[b],true);break;case"NextFileHasLongPath":case"OldGnuLongPath":this[v]=this[v]||Object.create(null);this[v].path=this[w].replace(/\0.*/,"");break;case"NextFileHasLongLinkpath":this[v]=this[v]||Object.create(null);this[v].linkpath=this[w].replace(/\0.*/,"");break;default:throw new Error("unknown meta: "+e.type)}}abort(e){this[N]=true;this.emit("abort",e);this.warn("TAR_ABORT",e,{recoverable:false})}write(e){if(this[N])return;if(this[x]===null&&e){if(this[E]){e=Buffer.concat([this[E],e]);this[E]=null}if(e.length<f.length){this[E]=e;return true}for(let t=0;this[x]===null&&t<f.length;t++){if(e[t]!==f[t])this[x]=false}if(this[x]===null){const t=this[D];this[D]=false;this[x]=new h.Unzip;this[x].on("data",e=>this[R](e));this[x].on("error",e=>this.abort(e));this[x].on("end",e=>{this[D]=true;this[R]()});this[j]=true;const r=this[x][t?"end":"write"](e);this[j]=false;return r}}this[j]=true;if(this[x])this[x].write(e);else this[R](e);this[j]=false;const t=this[_].length?false:this[m]?this[m].flowing:true;if(!t&&!this[_].length)this[m].once("drain",e=>this.emit("drain"));return t}[B](e){if(e&&!this[N])this[E]=this[E]?Buffer.concat([this[E],e]):e}[I](){if(this[D]&&!this[S]&&!this[N]&&!this[k]){this[S]=true;const e=this[p];if(e&&e.blockRemain){const t=this[E]?this[E].length:0;this.warn("TAR_BAD_ARCHIVE",`Truncated input (needed ${e.blockRemain} more bytes, only ${t} available)`,{entry:e});if(this[E])e.write(this[E]);e.end()}this[C](M)}}[R](e){if(this[k])this[B](e);else if(!e&&!this[E])this[I]();else{this[k]=true;if(this[E]){this[B](e);const t=this[E];this[E]=null;this[O](t)}else{this[O](e)}while(this[E]&&this[E].length>=512&&!this[N]&&!this[H]){const e=this[E];this[E]=null;this[O](e)}this[k]=false}if(!this[E]||this[D])this[I]()}[O](e){let t=0;let r=e.length;while(t+512<=r&&!this[N]&&!this[H]){switch(this[d]){case"begin":case"header":this[T](e,t);t+=512;break;case"ignore":case"body":t+=this[F](e,t);break;case"meta":t+=this[P](e,t);break;default:throw new Error("invalid state: "+this[d])}}if(t<r){if(this[E])this[E]=Buffer.concat([e.slice(t),this[E]]);else this[E]=e.slice(t)}}end(e){if(!this[N]){if(this[x])this[x].end(e);else{this[D]=true;this.write(e)}}}})},9587:(e,t,r)=>{const n=r(2357);e.exports=(()=>{const e=new Map;const t=new Map;const{join:i}=r(5622);const s=e=>i(e).split(/[\\\/]/).slice(0,-1).reduce((e,t)=>e.length?e.concat(i(e[e.length-1],t)):[t],[]);const o=new Set;const a=r=>{const n=t.get(r);if(!n)throw new Error("function does not have any path reservations");return{paths:n.paths.map(t=>e.get(t)),dirs:[...n.dirs].map(t=>e.get(t))}};const u=e=>{const{paths:t,dirs:r}=a(e);return t.every(t=>t[0]===e)&&r.every(t=>t[0]instanceof Set&&t[0].has(e))};const c=e=>{if(o.has(e)||!u(e))return false;o.add(e);e(()=>l(e));return true};const l=r=>{if(!o.has(r))return false;const{paths:i,dirs:s}=t.get(r);const a=new Set;i.forEach(t=>{const i=e.get(t);n.equal(i[0],r);if(i.length===1)e.delete(t);else{i.shift();if(typeof i[0]==="function")a.add(i[0]);else i[0].forEach(e=>a.add(e))}});s.forEach(t=>{const i=e.get(t);n(i[0]instanceof Set);if(i[0].size===1&&i.length===1){e.delete(t)}else if(i[0].size===1){i.shift();a.add(i[0])}else i[0].delete(r)});o.delete(r);a.forEach(e=>c(e));return true};const h=(r,n)=>{const i=new Set(r.map(e=>s(e)).reduce((e,t)=>e.concat(t)));t.set(n,{dirs:i,paths:r});r.forEach(t=>{const r=e.get(t);if(!r)e.set(t,[n]);else r.push(n)});i.forEach(t=>{const r=e.get(t);if(!r)e.set(t,[new Set([n])]);else if(r[r.length-1]instanceof Set)r[r.length-1].add(n);else r.push(new Set([n]))});return c(n)};return{check:u,reserve:h}})},7996:(e,t,r)=>{"use strict";const n=r(6043);const i=r(5622);class Pax{constructor(e,t){this.atime=e.atime||null;this.charset=e.charset||null;this.comment=e.comment||null;this.ctime=e.ctime||null;this.gid=e.gid||null;this.gname=e.gname||null;this.linkpath=e.linkpath||null;this.mtime=e.mtime||null;this.path=e.path||null;this.size=e.size||null;this.uid=e.uid||null;this.uname=e.uname||null;this.dev=e.dev||null;this.ino=e.ino||null;this.nlink=e.nlink||null;this.global=t||false}encode(){const e=this.encodeBody();if(e==="")return null;const t=Buffer.byteLength(e);const r=512*Math.ceil(1+t/512);const s=Buffer.allocUnsafe(r);for(let e=0;e<512;e++){s[e]=0}new n({path:("PaxHeader/"+i.basename(this.path)).slice(0,99),mode:this.mode||420,uid:this.uid||null,gid:this.gid||null,size:t,mtime:this.mtime||null,type:this.global?"GlobalExtendedHeader":"ExtendedHeader",linkpath:"",uname:this.uname||"",gname:this.gname||"",devmaj:0,devmin:0,atime:this.atime||null,ctime:this.ctime||null}).encode(s);s.write(e,512,t,"utf8");for(let e=t+512;e<s.length;e++){s[e]=0}return s}encodeBody(){return this.encodeField("path")+this.encodeField("ctime")+this.encodeField("atime")+this.encodeField("dev")+this.encodeField("ino")+this.encodeField("nlink")+this.encodeField("charset")+this.encodeField("comment")+this.encodeField("gid")+this.encodeField("gname")+this.encodeField("linkpath")+this.encodeField("mtime")+this.encodeField("size")+this.encodeField("uid")+this.encodeField("uname")}encodeField(e){if(this[e]===null||this[e]===undefined)return"";const t=this[e]instanceof Date?this[e].getTime()/1e3:this[e];const r=" "+(e==="dev"||e==="ino"||e==="nlink"?"SCHILY.":"")+e+"="+t+"\n";const n=Buffer.byteLength(r);let i=Math.floor(Math.log(n)/Math.log(10))+1;if(n+i>=Math.pow(10,i))i+=1;const s=i+n;return s+r}}Pax.parse=((e,t,r)=>new Pax(s(o(e),t),r));const s=(e,t)=>t?Object.keys(e).reduce((t,r)=>(t[r]=e[r],t),t):e;const o=e=>e.replace(/\n$/,"").split("\n").reduce(a,Object.create(null));const a=(e,t)=>{const r=parseInt(t,10);if(r!==Buffer.byteLength(t)+1)return e;t=t.substr((r+" ").length);const n=t.split("=");const i=n.shift().replace(/^SCHILY\.(dev|ino|nlink)/,"$1");if(!i)return e;const s=n.join("=");e[i]=/^([A-Z]+\.)?([mac]|birth|creation)time$/.test(i)?new Date(s*1e3):/^[0-9]+$/.test(s)?+s:s;return e};e.exports=Pax},7456:(e,t,r)=>{"use strict";const n=r(4173);const i=r(1077);const s=Symbol("slurp");e.exports=class ReadEntry extends i{constructor(e,t,r){super();this.pause();this.extended=t;this.globalExtended=r;this.header=e;this.startBlockSize=512*Math.ceil(e.size/512);this.blockRemain=this.startBlockSize;this.remain=e.size;this.type=e.type;this.meta=false;this.ignore=false;switch(this.type){case"File":case"OldFile":case"Link":case"SymbolicLink":case"CharacterDevice":case"BlockDevice":case"Directory":case"FIFO":case"ContiguousFile":case"GNUDumpDir":break;case"NextFileHasLongLinkpath":case"NextFileHasLongPath":case"OldGnuLongPath":case"GlobalExtendedHeader":case"ExtendedHeader":case"OldExtendedHeader":this.meta=true;break;default:this.ignore=true}this.path=e.path;this.mode=e.mode;if(this.mode)this.mode=this.mode&4095;this.uid=e.uid;this.gid=e.gid;this.uname=e.uname;this.gname=e.gname;this.size=e.size;this.mtime=e.mtime;this.atime=e.atime;this.ctime=e.ctime;this.linkpath=e.linkpath;this.uname=e.uname;this.gname=e.gname;if(t)this[s](t);if(r)this[s](r,true)}write(e){const t=e.length;if(t>this.blockRemain)throw new Error("writing more to entry than is appropriate");const r=this.remain;const n=this.blockRemain;this.remain=Math.max(0,r-t);this.blockRemain=Math.max(0,n-t);if(this.ignore)return true;if(r>=t)return super.write(e);return super.write(e.slice(0,r))}[s](e,t){for(let r in e){if(e[r]!==null&&e[r]!==undefined&&!(t&&r==="path"))this[r]=e[r]}}}},5923:(e,t,r)=>{"use strict";const n=r(5274);const i=r(7900);const s=r(8917);const o=r(5747);const a=r(7714);const u=r(1525);const c=r(5622);const l=r(6043);const h=e.exports=((e,t,r)=>{const i=n(e);if(!i.file)throw new TypeError("file is required");if(i.gzip)throw new TypeError("cannot append to compressed archives");if(!t||!Array.isArray(t)||!t.length)throw new TypeError("no files or directories specified");t=Array.from(t);return i.sync?f(i,t):p(i,t,r)});const f=(e,t)=>{const r=new i.Sync(e);let n=true;let s;let a;try{try{s=o.openSync(e.file,"r+")}catch(t){if(t.code==="ENOENT")s=o.openSync(e.file,"w+");else throw t}const i=o.fstatSync(s);const u=Buffer.alloc(512);e:for(a=0;a<i.size;a+=512){for(let e=0,t=0;e<512;e+=t){t=o.readSync(s,u,e,u.length-e,a+e);if(a===0&&u[0]===31&&u[1]===139)throw new Error("cannot append to compressed archives");if(!t)break e}let t=new l(u);if(!t.cksumValid)break;let r=512*Math.ceil(t.size/512);if(a+r+512>i.size)break;a+=r;if(e.mtimeCache)e.mtimeCache.set(t.path,t.mtime)}n=false;d(e,r,a,s,t)}finally{if(n)try{o.closeSync(s)}catch(e){}}};const d=(e,t,r,n,i)=>{const s=new a.WriteStreamSync(e.file,{fd:n,start:r});t.pipe(s);m(t,i)};const p=(e,t,r)=>{t=Array.from(t);const n=new i(e);const s=(t,r,n)=>{const i=(e,r)=>{if(e)o.close(t,t=>n(e));else n(null,r)};let s=0;if(r===0)return i(null,0);let a=0;const u=Buffer.alloc(512);const c=(n,h)=>{if(n)return i(n);a+=h;if(a<512&&h)return o.read(t,u,a,u.length-a,s+a,c);if(s===0&&u[0]===31&&u[1]===139)return i(new Error("cannot append to compressed archives"));if(a<512)return i(null,s);const f=new l(u);if(!f.cksumValid)return i(null,s);const d=512*Math.ceil(f.size/512);if(s+d+512>r)return i(null,s);s+=d+512;if(s>=r)return i(null,s);if(e.mtimeCache)e.mtimeCache.set(f.path,f.mtime);a=0;o.read(t,u,0,512,s,c)};o.read(t,u,0,512,s,c)};const u=new Promise((r,i)=>{n.on("error",i);let u="r+";const c=(l,h)=>{if(l&&l.code==="ENOENT"&&u==="r+"){u="w+";return o.open(e.file,u,c)}if(l)return i(l);o.fstat(h,(o,u)=>{if(o)return i(o);s(h,u.size,(s,o)=>{if(s)return i(s);const u=new a.WriteStream(e.file,{fd:h,start:o});n.pipe(u);u.on("error",i);u.on("close",r);y(n,t)})})};o.open(e.file,u,c)});return r?u.then(r,r):u};const m=(e,t)=>{t.forEach(t=>{if(t.charAt(0)==="@")u({file:c.resolve(e.cwd,t.substr(1)),sync:true,noResume:true,onentry:t=>e.add(t)});else e.add(t)});e.end()};const y=(e,t)=>{while(t.length){const r=t.shift();if(r.charAt(0)==="@")return u({file:c.resolve(e.cwd,r.substr(1)),noResume:true,onentry:t=>e.add(t)}).then(r=>y(e,t));else e.add(r)}e.end()}},4173:(e,t)=>{"use strict";t.name=new Map([["0","File"],["","OldFile"],["1","Link"],["2","SymbolicLink"],["3","CharacterDevice"],["4","BlockDevice"],["5","Directory"],["6","FIFO"],["7","ContiguousFile"],["g","GlobalExtendedHeader"],["x","ExtendedHeader"],["A","SolarisACL"],["D","GNUDumpDir"],["I","Inode"],["K","NextFileHasLongLinkpath"],["L","NextFileHasLongPath"],["M","ContinuationFile"],["N","OldGnuLongPath"],["S","SparseFile"],["V","TapeVolumeHeader"],["X","OldExtendedHeader"]]);t.code=new Map(Array.from(t.name).map(e=>[e[1],e[0]]))},7628:(e,t,r)=>{"use strict";const n=r(2357);const i=r(8614).EventEmitter;const s=r(8917);const o=r(5747);const a=r(7714);const u=r(5622);const c=r(9624);const l=c.sync;const h=r(4808);const f=r(9587);const d=Symbol("onEntry");const p=Symbol("checkFs");const m=Symbol("checkFs2");const y=Symbol("isReusable");const g=Symbol("makeFs");const v=Symbol("file");const b=Symbol("directory");const w=Symbol("link");const A=Symbol("symlink");const E=Symbol("hardlink");const _=Symbol("unsupported");const D=Symbol("unknown");const S=Symbol("checkPath");const C=Symbol("mkdir");const x=Symbol("onError");const R=Symbol("pending");const O=Symbol("pend");const F=Symbol("unpend");const P=Symbol("ended");const T=Symbol("maybeClose");const k=Symbol("skip");const B=Symbol("doChown");const I=Symbol("uid");const j=Symbol("gid");const N=r(6417);const M=r(1172);const L=()=>{throw new Error("sync function called cb somehow?!?")};const $=(e,t)=>{if(process.platform!=="win32")return o.unlink(e,t);const r=e+".DELETE."+N.randomBytes(16).toString("hex");o.rename(e,r,e=>{if(e)return t(e);o.unlink(r,t)})};const H=e=>{if(process.platform!=="win32")return o.unlinkSync(e);const t=e+".DELETE."+N.randomBytes(16).toString("hex");o.renameSync(e,t);o.unlinkSync(t)};const U=(e,t,r)=>e===e>>>0?e:t===t>>>0?t:r;class Unpack extends s{constructor(e){if(!e)e={};e.ondone=(e=>{this[P]=true;this[T]()});super(e);this.reservations=f();this.transform=typeof e.transform==="function"?e.transform:null;this.writable=true;this.readable=false;this[R]=0;this[P]=false;this.dirCache=e.dirCache||new Map;if(typeof e.uid==="number"||typeof e.gid==="number"){if(typeof e.uid!=="number"||typeof e.gid!=="number")throw new TypeError("cannot set owner without number uid and gid");if(e.preserveOwner)throw new TypeError("cannot preserve owner in archive and also set owner explicitly");this.uid=e.uid;this.gid=e.gid;this.setOwner=true}else{this.uid=null;this.gid=null;this.setOwner=false}if(e.preserveOwner===undefined&&typeof e.uid!=="number")this.preserveOwner=process.getuid&&process.getuid()===0;else this.preserveOwner=!!e.preserveOwner;this.processUid=(this.preserveOwner||this.setOwner)&&process.getuid?process.getuid():null;this.processGid=(this.preserveOwner||this.setOwner)&&process.getgid?process.getgid():null;this.forceChown=e.forceChown===true;this.win32=!!e.win32||process.platform==="win32";this.newer=!!e.newer;this.keep=!!e.keep;this.noMtime=!!e.noMtime;this.preservePaths=!!e.preservePaths;this.unlink=!!e.unlink;this.cwd=u.resolve(e.cwd||process.cwd());this.strip=+e.strip||0;this.processUmask=process.umask();this.umask=typeof e.umask==="number"?e.umask:this.processUmask;this.dmode=e.dmode||511&~this.umask;this.fmode=e.fmode||438&~this.umask;this.on("entry",e=>this[d](e))}warn(e,t,r={}){if(e==="TAR_BAD_ARCHIVE"||e==="TAR_ABORT")r.recoverable=false;return super.warn(e,t,r)}[T](){if(this[P]&&this[R]===0){this.emit("prefinish");this.emit("finish");this.emit("end");this.emit("close")}}[S](e){if(this.strip){const t=e.path.split(/\/|\\/);if(t.length<this.strip)return false;e.path=t.slice(this.strip).join("/");if(e.type==="Link"){const t=e.linkpath.split(/\/|\\/);if(t.length>=this.strip)e.linkpath=t.slice(this.strip).join("/")}}if(!this.preservePaths){const t=e.path;if(t.match(/(^|\/|\\)\.\.(\\|\/|$)/)){this.warn("TAR_ENTRY_ERROR",`path contains '..'`,{entry:e,path:t});return false}if(u.win32.isAbsolute(t)){const r=u.win32.parse(t);e.path=t.substr(r.root.length);const n=r.root;this.warn("TAR_ENTRY_INFO",`stripping ${n} from absolute path`,{entry:e,path:t})}}if(this.win32){const t=u.win32.parse(e.path);e.path=t.root===""?h.encode(e.path):t.root+h.encode(e.path.substr(t.root.length))}if(u.isAbsolute(e.path))e.absolute=e.path;else e.absolute=u.resolve(this.cwd,e.path);return true}[d](e){if(!this[S](e))return e.resume();n.equal(typeof e.absolute,"string");switch(e.type){case"Directory":case"GNUDumpDir":if(e.mode)e.mode=e.mode|448;case"File":case"OldFile":case"ContiguousFile":case"Link":case"SymbolicLink":return this[p](e);case"CharacterDevice":case"BlockDevice":case"FIFO":return this[_](e)}}[x](e,t){if(e.name==="CwdError")this.emit("error",e);else{this.warn("TAR_ENTRY_ERROR",e,{entry:t});this[F]();t.resume()}}[C](e,t,r){c(e,{uid:this.uid,gid:this.gid,processUid:this.processUid,processGid:this.processGid,umask:this.processUmask,preserve:this.preservePaths,unlink:this.unlink,cache:this.dirCache,cwd:this.cwd,mode:t},r)}[B](e){return this.forceChown||this.preserveOwner&&(typeof e.uid==="number"&&e.uid!==this.processUid||typeof e.gid==="number"&&e.gid!==this.processGid)||(typeof this.uid==="number"&&this.uid!==this.processUid||typeof this.gid==="number"&&this.gid!==this.processGid)}[I](e){return U(this.uid,e.uid,this.processUid)}[j](e){return U(this.gid,e.gid,this.processGid)}[v](e,t){const r=e.mode&4095||this.fmode;const n=new a.WriteStream(e.absolute,{flags:M(e.size),mode:r,autoClose:false});n.on("error",t=>this[x](t,e));let i=1;const s=r=>{if(r)return this[x](r,e);if(--i===0){o.close(n.fd,r=>{t();r?this[x](r,e):this[F]()})}};n.on("finish",t=>{const r=e.absolute;const a=n.fd;if(e.mtime&&!this.noMtime){i++;const t=e.atime||new Date;const n=e.mtime;o.futimes(a,t,n,e=>e?o.utimes(r,t,n,t=>s(t&&e)):s())}if(this[B](e)){i++;const t=this[I](e);const n=this[j](e);o.fchown(a,t,n,e=>e?o.chown(r,t,n,t=>s(t&&e)):s())}s()});const u=this.transform?this.transform(e)||e:e;if(u!==e){u.on("error",t=>this[x](t,e));e.pipe(u)}u.pipe(n)}[b](e,t){const r=e.mode&4095||this.dmode;this[C](e.absolute,r,r=>{if(r){t();return this[x](r,e)}let n=1;const i=r=>{if(--n===0){t();this[F]();e.resume()}};if(e.mtime&&!this.noMtime){n++;o.utimes(e.absolute,e.atime||new Date,e.mtime,i)}if(this[B](e)){n++;o.chown(e.absolute,this[I](e),this[j](e),i)}i()})}[_](e){e.unsupported=true;this.warn("TAR_ENTRY_UNSUPPORTED",`unsupported entry type: ${e.type}`,{entry:e});e.resume()}[A](e,t){this[w](e,e.linkpath,"symlink",t)}[E](e,t){this[w](e,u.resolve(this.cwd,e.linkpath),"link",t)}[O](){this[R]++}[F](){this[R]--;this[T]()}[k](e){this[F]();e.resume()}[y](e,t){return e.type==="File"&&!this.unlink&&t.isFile()&&t.nlink<=1&&process.platform!=="win32"}[p](e){this[O]();const t=[e.path];if(e.linkpath)t.push(e.linkpath);this.reservations.reserve(t,t=>this[m](e,t))}[m](e,t){this[C](u.dirname(e.absolute),this.dmode,r=>{if(r){t();return this[x](r,e)}o.lstat(e.absolute,(r,n)=>{if(n&&(this.keep||this.newer&&n.mtime>e.mtime)){this[k](e);t()}else if(r||this[y](e,n)){this[g](null,e,t)}else if(n.isDirectory()){if(e.type==="Directory"){if(!e.mode||(n.mode&4095)===e.mode)this[g](null,e,t);else o.chmod(e.absolute,e.mode,r=>this[g](r,e,t))}else o.rmdir(e.absolute,r=>this[g](r,e,t))}else $(e.absolute,r=>this[g](r,e,t))})})}[g](e,t,r){if(e)return this[x](e,t);switch(t.type){case"File":case"OldFile":case"ContiguousFile":return this[v](t,r);case"Link":return this[E](t,r);case"SymbolicLink":return this[A](t,r);case"Directory":case"GNUDumpDir":return this[b](t,r)}}[w](e,t,r,n){o[r](t,e.absolute,t=>{if(t)return this[x](t,e);n();this[F]();e.resume()})}}class UnpackSync extends Unpack{constructor(e){super(e)}[p](e){const t=this[C](u.dirname(e.absolute),this.dmode,L);if(t)return this[x](t,e);try{const r=o.lstatSync(e.absolute);if(this.keep||this.newer&&r.mtime>e.mtime)return this[k](e);else if(this[y](e,r))return this[g](null,e,L);else{try{if(r.isDirectory()){if(e.type==="Directory"){if(e.mode&&(r.mode&4095)!==e.mode)o.chmodSync(e.absolute,e.mode)}else o.rmdirSync(e.absolute)}else H(e.absolute);return this[g](null,e,L)}catch(t){return this[x](t,e)}}}catch(t){return this[g](null,e,L)}}[v](e,t){const r=e.mode&4095||this.fmode;const n=t=>{let r;try{o.closeSync(s)}catch(e){r=e}if(t||r)this[x](t||r,e)};let i;let s;try{s=o.openSync(e.absolute,M(e.size),r)}catch(e){return n(e)}const a=this.transform?this.transform(e)||e:e;if(a!==e){a.on("error",t=>this[x](t,e));e.pipe(a)}a.on("data",e=>{try{o.writeSync(s,e,0,e.length)}catch(e){n(e)}});a.on("end",t=>{let r=null;if(e.mtime&&!this.noMtime){const t=e.atime||new Date;const n=e.mtime;try{o.futimesSync(s,t,n)}catch(i){try{o.utimesSync(e.absolute,t,n)}catch(e){r=i}}}if(this[B](e)){const t=this[I](e);const n=this[j](e);try{o.fchownSync(s,t,n)}catch(i){try{o.chownSync(e.absolute,t,n)}catch(e){r=r||i}}}n(r)})}[b](e,t){const r=e.mode&4095||this.dmode;const n=this[C](e.absolute,r);if(n)return this[x](n,e);if(e.mtime&&!this.noMtime){try{o.utimesSync(e.absolute,e.atime||new Date,e.mtime)}catch(n){}}if(this[B](e)){try{o.chownSync(e.absolute,this[I](e),this[j](e))}catch(n){}}e.resume()}[C](e,t){try{return c.sync(e,{uid:this.uid,gid:this.gid,processUid:this.processUid,processGid:this.processGid,umask:this.processUmask,preserve:this.preservePaths,unlink:this.unlink,cache:this.dirCache,cwd:this.cwd,mode:t})}catch(e){return e}}[w](e,t,r,n){try{o[r+"Sync"](t,e.absolute);e.resume()}catch(t){return this[x](t,e)}}}Unpack.Sync=UnpackSync;e.exports=Unpack},4404:(e,t,r)=>{"use strict";const n=r(5274);const i=r(5923);const s=e.exports=((e,t,r)=>{const s=n(e);if(!s.file)throw new TypeError("file is required");if(s.gzip)throw new TypeError("cannot append to compressed archives");if(!t||!Array.isArray(t)||!t.length)throw new TypeError("no files or directories specified");t=Array.from(t);o(s);return i(s,t,r)});const o=e=>{const t=e.filter;if(!e.mtimeCache)e.mtimeCache=new Map;e.filter=t?(r,n)=>t(r,n)&&!(e.mtimeCache.get(r)>n.mtime):(t,r)=>!(e.mtimeCache.get(t)>r.mtime)}},5899:e=>{"use strict";e.exports=(e=>(class extends e{warn(e,t,r={}){if(this.file)r.file=this.file;if(this.cwd)r.cwd=this.cwd;r.code=t instanceof Error&&t.code||e;r.tarCode=e;if(!this.strict&&r.recoverable!==false){if(t instanceof Error){r=Object.assign(t,r);t=t.message}this.emit("warn",r.tarCode,t,r)}else if(t instanceof Error){this.emit("error",Object.assign(t,r))}else this.emit("error",Object.assign(new Error(`${e}: ${t}`),r))}}))},4808:e=>{"use strict";const t=["|","<",">","?",":"];const r=t.map(e=>String.fromCharCode(61440+e.charCodeAt(0)));const n=new Map(t.map((e,t)=>[e,r[t]]));const i=new Map(r.map((e,r)=>[e,t[r]]));e.exports={encode:e=>t.reduce((e,t)=>e.split(t).join(n.get(t)),e),decode:e=>r.reduce((e,t)=>e.split(t).join(i.get(t)),e)}},5450:(e,t,r)=>{"use strict";const n=r(1077);const i=r(7996);const s=r(6043);const o=r(7456);const a=r(5747);const u=r(5622);const c=r(4173);const l=16*1024*1024;const h=Symbol("process");const f=Symbol("file");const d=Symbol("directory");const p=Symbol("symlink");const m=Symbol("hardlink");const y=Symbol("header");const g=Symbol("read");const v=Symbol("lstat");const b=Symbol("onlstat");const w=Symbol("onread");const A=Symbol("onreadlink");const E=Symbol("openfile");const _=Symbol("onopenfile");const D=Symbol("close");const S=Symbol("mode");const C=r(5899);const x=r(4808);const R=r(8371);const O=C(class WriteEntry extends n{constructor(e,t){t=t||{};super(t);if(typeof e!=="string")throw new TypeError("path is required");this.path=e;this.portable=!!t.portable;this.myuid=process.getuid&&process.getuid();this.myuser=process.env.USER||"";this.maxReadSize=t.maxReadSize||l;this.linkCache=t.linkCache||new Map;this.statCache=t.statCache||new Map;this.preservePaths=!!t.preservePaths;this.cwd=t.cwd||process.cwd();this.strict=!!t.strict;this.noPax=!!t.noPax;this.noMtime=!!t.noMtime;this.mtime=t.mtime||null;if(typeof t.onwarn==="function")this.on("warn",t.onwarn);let r=false;if(!this.preservePaths&&u.win32.isAbsolute(e)){const t=u.win32.parse(e);this.path=e.substr(t.root.length);r=t.root}this.win32=!!t.win32||process.platform==="win32";if(this.win32){this.path=x.decode(this.path.replace(/\\/g,"/"));e=e.replace(/\\/g,"/")}this.absolute=t.absolute||u.resolve(this.cwd,e);if(this.path==="")this.path="./";if(r){this.warn("TAR_ENTRY_INFO",`stripping ${r} from absolute path`,{entry:this,path:r+this.path})}if(this.statCache.has(this.absolute))this[b](this.statCache.get(this.absolute));else this[v]()}[v](){a.lstat(this.absolute,(e,t)=>{if(e)return this.emit("error",e);this[b](t)})}[b](e){this.statCache.set(this.absolute,e);this.stat=e;if(!e.isFile())e.size=0;this.type=P(e);this.emit("stat",e);this[h]()}[h](){switch(this.type){case"File":return this[f]();case"Directory":return this[d]();case"SymbolicLink":return this[p]();default:return this.end()}}[S](e){return R(e,this.type==="Directory",this.portable)}[y](){if(this.type==="Directory"&&this.portable)this.noMtime=true;this.header=new s({path:this.path,linkpath:this.linkpath,mode:this[S](this.stat.mode),uid:this.portable?null:this.stat.uid,gid:this.portable?null:this.stat.gid,size:this.stat.size,mtime:this.noMtime?null:this.mtime||this.stat.mtime,type:this.type,uname:this.portable?null:this.stat.uid===this.myuid?this.myuser:"",atime:this.portable?null:this.stat.atime,ctime:this.portable?null:this.stat.ctime});if(this.header.encode()&&!this.noPax)this.write(new i({atime:this.portable?null:this.header.atime,ctime:this.portable?null:this.header.ctime,gid:this.portable?null:this.header.gid,mtime:this.noMtime?null:this.mtime||this.header.mtime,path:this.path,linkpath:this.linkpath,size:this.header.size,uid:this.portable?null:this.header.uid,uname:this.portable?null:this.header.uname,dev:this.portable?null:this.stat.dev,ino:this.portable?null:this.stat.ino,nlink:this.portable?null:this.stat.nlink}).encode());this.write(this.header.block)}[d](){if(this.path.substr(-1)!=="/")this.path+="/";this.stat.size=0;this[y]();this.end()}[p](){a.readlink(this.absolute,(e,t)=>{if(e)return this.emit("error",e);this[A](t)})}[A](e){this.linkpath=e.replace(/\\/g,"/");this[y]();this.end()}[m](e){this.type="Link";this.linkpath=u.relative(this.cwd,e).replace(/\\/g,"/");this.stat.size=0;this[y]();this.end()}[f](){if(this.stat.nlink>1){const e=this.stat.dev+":"+this.stat.ino;if(this.linkCache.has(e)){const t=this.linkCache.get(e);if(t.indexOf(this.cwd)===0)return this[m](t)}this.linkCache.set(e,this.absolute)}this[y]();if(this.stat.size===0)return this.end();this[E]()}[E](){a.open(this.absolute,"r",(e,t)=>{if(e)return this.emit("error",e);this[_](t)})}[_](e){const t=512*Math.ceil(this.stat.size/512);const r=Math.min(t,this.maxReadSize);const n=Buffer.allocUnsafe(r);this[g](e,n,0,n.length,0,this.stat.size,t)}[g](e,t,r,n,i,s,o){a.read(e,t,r,n,i,(a,u)=>{if(a){return this[D](e,()=>this.emit("error",a))}this[w](e,t,r,n,i,s,o,u)})}[D](e,t){a.close(e,t)}[w](e,t,r,n,i,s,o,a){if(a<=0&&s>0){const t=new Error("encountered unexpected EOF");t.path=this.absolute;t.syscall="read";t.code="EOF";return this[D](e,()=>this.emit("error",t))}if(a>s){const t=new Error("did not encounter expected EOF");t.path=this.absolute;t.syscall="read";t.code="EOF";return this[D](e,()=>this.emit("error",t))}if(a===s){for(let e=a;e<n&&a<o;e++){t[e+r]=0;a++;s++}}const u=r===0&&a===t.length?t:t.slice(r,r+a);s-=a;o-=a;i+=a;r+=a;this.write(u);if(!s){if(o)this.write(Buffer.alloc(o));return this[D](e,e=>e?this.emit("error",e):this.end())}if(r>=n){t=Buffer.allocUnsafe(n);r=0}n=t.length-r;this[g](e,t,r,n,i,s,o)}});class WriteEntrySync extends O{constructor(e,t){super(e,t)}[v](){this[b](a.lstatSync(this.absolute))}[p](){this[A](a.readlinkSync(this.absolute))}[E](){this[_](a.openSync(this.absolute,"r"))}[g](e,t,r,n,i,s,o){let u=true;try{const c=a.readSync(e,t,r,n,i);this[w](e,t,r,n,i,s,o,c);u=false}finally{if(u)try{this[D](e,()=>{})}catch(e){}}}[D](e,t){a.closeSync(e);t()}}const F=C(class WriteEntryTar extends n{constructor(e,t){t=t||{};super(t);this.preservePaths=!!t.preservePaths;this.portable=!!t.portable;this.strict=!!t.strict;this.noPax=!!t.noPax;this.noMtime=!!t.noMtime;this.readEntry=e;this.type=e.type;if(this.type==="Directory"&&this.portable)this.noMtime=true;this.path=e.path;this.mode=this[S](e.mode);this.uid=this.portable?null:e.uid;this.gid=this.portable?null:e.gid;this.uname=this.portable?null:e.uname;this.gname=this.portable?null:e.gname;this.size=e.size;this.mtime=this.noMtime?null:t.mtime||e.mtime;this.atime=this.portable?null:e.atime;this.ctime=this.portable?null:e.ctime;this.linkpath=e.linkpath;if(typeof t.onwarn==="function")this.on("warn",t.onwarn);let r=false;if(u.isAbsolute(this.path)&&!this.preservePaths){const e=u.parse(this.path);r=e.root;this.path=this.path.substr(e.root.length)}this.remain=e.size;this.blockRemain=e.startBlockSize;this.header=new s({path:this.path,linkpath:this.linkpath,mode:this.mode,uid:this.portable?null:this.uid,gid:this.portable?null:this.gid,size:this.size,mtime:this.noMtime?null:this.mtime,type:this.type,uname:this.portable?null:this.uname,atime:this.portable?null:this.atime,ctime:this.portable?null:this.ctime});if(r){this.warn("TAR_ENTRY_INFO",`stripping ${r} from absolute path`,{entry:this,path:r+this.path})}if(this.header.encode()&&!this.noPax)super.write(new i({atime:this.portable?null:this.atime,ctime:this.portable?null:this.ctime,gid:this.portable?null:this.gid,mtime:this.noMtime?null:this.mtime,path:this.path,linkpath:this.linkpath,size:this.size,uid:this.portable?null:this.uid,uname:this.portable?null:this.uname,dev:this.portable?null:this.readEntry.dev,ino:this.portable?null:this.readEntry.ino,nlink:this.portable?null:this.readEntry.nlink}).encode());super.write(this.header.block);e.pipe(this)}[S](e){return R(e,this.type==="Directory",this.portable)}write(e){const t=e.length;if(t>this.blockRemain)throw new Error("writing more to entry than is appropriate");this.blockRemain-=t;return super.write(e)}end(){if(this.blockRemain)this.write(Buffer.alloc(this.blockRemain));return super.end()}});O.Sync=WriteEntrySync;O.Tar=F;const P=e=>e.isFile()?"File":e.isDirectory()?"Directory":e.isSymbolicLink()?"SymbolicLink":"Unsupported";e.exports=O},7251:(e,t,r)=>{const n=r(27);const i=r(8463);const{mkdirpNative:s,mkdirpNativeSync:o}=r(8450);const{mkdirpManual:a,mkdirpManualSync:u}=r(2289);const{useNative:c,useNativeSync:l}=r(6082);const h=(e,t)=>{e=i(e);t=n(t);return c(t)?s(e,t):a(e,t)};const f=(e,t)=>{e=i(e);t=n(t);return l(t)?o(e,t):u(e,t)};h.sync=f;h.native=((e,t)=>s(i(e),n(t)));h.manual=((e,t)=>a(i(e),n(t)));h.nativeSync=((e,t)=>o(i(e),n(t)));h.manualSync=((e,t)=>u(i(e),n(t)));e.exports=h},2392:(e,t,r)=>{const{dirname:n}=r(5622);const i=(e,t,r=undefined)=>{if(r===t)return Promise.resolve();return e.statAsync(t).then(e=>e.isDirectory()?r:undefined,r=>r.code==="ENOENT"?i(e,n(t),t):undefined)};const s=(e,t,r=undefined)=>{if(r===t)return undefined;try{return e.statSync(t).isDirectory()?r:undefined}catch(r){return r.code==="ENOENT"?s(e,n(t),t):undefined}};e.exports={findMade:i,findMadeSync:s}},2289:(e,t,r)=>{const{dirname:n}=r(5622);const i=(e,t,r)=>{t.recursive=false;const s=n(e);if(s===e){return t.mkdirAsync(e,t).catch(e=>{if(e.code!=="EISDIR")throw e})}return t.mkdirAsync(e,t).then(()=>r||e,n=>{if(n.code==="ENOENT")return i(s,t).then(r=>i(e,t,r));if(n.code!=="EEXIST"&&n.code!=="EROFS")throw n;return t.statAsync(e).then(e=>{if(e.isDirectory())return r;else throw n},()=>{throw n})})};const s=(e,t,r)=>{const i=n(e);t.recursive=false;if(i===e){try{return t.mkdirSync(e,t)}catch(e){if(e.code!=="EISDIR")throw e;else return}}try{t.mkdirSync(e,t);return r||e}catch(n){if(n.code==="ENOENT")return s(e,t,s(i,t,r));if(n.code!=="EEXIST"&&n.code!=="EROFS")throw n;try{if(!t.statSync(e).isDirectory())throw n}catch(e){throw n}}};e.exports={mkdirpManual:i,mkdirpManualSync:s}},8450:(e,t,r)=>{const{dirname:n}=r(5622);const{findMade:i,findMadeSync:s}=r(2392);const{mkdirpManual:o,mkdirpManualSync:a}=r(2289);const u=(e,t)=>{t.recursive=true;const r=n(e);if(r===e)return t.mkdirAsync(e,t);return i(t,e).then(r=>t.mkdirAsync(e,t).then(()=>r).catch(r=>{if(r.code==="ENOENT")return o(e,t);else throw r}))};const c=(e,t)=>{t.recursive=true;const r=n(e);if(r===e)return t.mkdirSync(e,t);const i=s(t,e);try{t.mkdirSync(e,t);return i}catch(r){if(r.code==="ENOENT")return a(e,t);else throw r}};e.exports={mkdirpNative:u,mkdirpNativeSync:c}},27:(e,t,r)=>{const{promisify:n}=r(1669);const i=r(5747);const s=e=>{if(!e)e={mode:511,fs:i};else if(typeof e==="object")e={mode:511,fs:i,...e};else if(typeof e==="number")e={mode:e,fs:i};else if(typeof e==="string")e={mode:parseInt(e,8),fs:i};else throw new TypeError("invalid options argument");e.mkdir=e.mkdir||e.fs.mkdir||i.mkdir;e.mkdirAsync=n(e.mkdir);e.stat=e.stat||e.fs.stat||i.stat;e.statAsync=n(e.stat);e.statSync=e.statSync||e.fs.statSync||i.statSync;e.mkdirSync=e.mkdirSync||e.fs.mkdirSync||i.mkdirSync;return e};e.exports=s},8463:(e,t,r)=>{const n=process.env.__TESTING_MKDIRP_PLATFORM__||process.platform;const{resolve:i,parse:s}=r(5622);const o=e=>{if(/\0/.test(e)){throw Object.assign(new TypeError("path must be a string without null bytes"),{path:e,code:"ERR_INVALID_ARG_VALUE"})}e=i(e);if(n==="win32"){const t=/[*|"<>?:]/;const{root:r}=s(e);if(t.test(e.substr(r.length))){throw Object.assign(new Error("Illegal characters in path."),{path:e,code:"EINVAL"})}}return e};e.exports=o},6082:(e,t,r)=>{const n=r(5747);const i=process.env.__TESTING_MKDIRP_NODE_VERSION__||process.version;const s=i.replace(/^v/,"").split(".");const o=+s[0]>10||+s[0]===10&&+s[1]>=12;const a=!o?()=>false:e=>e.mkdir===n.mkdir;const u=!o?()=>false:e=>e.mkdirSync===n.mkdirSync;e.exports={useNative:a,useNativeSync:u}},1898:(e,t,r)=>{"use strict";const n=r(8512);const i=r(8824);const s=(e,t,{target:r="stdout",...s}={})=>{if(!i[r]){if(s.fallback===false){return e}return typeof s.fallback==="function"?s.fallback(e,t):`${e} (​${t}​)`}return n.link(e,t)};e.exports=((e,t,r={})=>s(e,t,r));e.exports.stderr=((e,t,r={})=>s(e,t,{target:"stderr",...r}));e.exports.isSupported=i.stdout;e.exports.stderr.isSupported=i.stderr},421:(e,t,r)=>{var n=r(2413);t=e.exports=through;through.through=through;function through(e,t,r){e=e||function(e){this.queue(e)};t=t||function(){this.queue(null)};var i=false,s=false,o=[],a=false;var u=new n;u.readable=u.writable=true;u.paused=false;u.autoDestroy=!(r&&r.autoDestroy===false);u.write=function(t){e.call(this,t);return!u.paused};function drain(){while(o.length&&!u.paused){var e=o.shift();if(null===e)return u.emit("end");else u.emit("data",e)}}u.queue=u.push=function(e){if(a)return u;if(e===null)a=true;o.push(e);drain();return u};u.on("end",function(){u.readable=false;if(!u.writable&&u.autoDestroy)process.nextTick(function(){u.destroy()})});function _end(){u.writable=false;t.call(u);if(!u.readable&&u.autoDestroy)u.destroy()}u.end=function(e){if(i)return;i=true;if(arguments.length)u.write(e);_end();return u};u.destroy=function(){if(s)return;s=true;i=true;o.length=0;u.writable=u.readable=false;u.emit("close");return u};u.pause=function(){if(u.paused)return;u.paused=true;return u};u.resume=function(){if(u.paused){u.paused=false;u.emit("resume")}drain();if(!u.paused)u.emit("drain");return u};return u}},1861:(e,t,r)=>{"use strict";const n=r(1523);const i=(e,t,r)=>{if(n(e)===false){throw new TypeError("toRegexRange: expected the first argument to be a number")}if(t===void 0||e===t){return String(e)}if(n(t)===false){throw new TypeError("toRegexRange: expected the second argument to be a number.")}let s={relaxZeros:true,...r};if(typeof s.strictZeros==="boolean"){s.relaxZeros=s.strictZeros===false}let o=String(s.relaxZeros);let a=String(s.shorthand);let u=String(s.capture);let c=String(s.wrap);let l=e+":"+t+"="+o+a+u+c;if(i.cache.hasOwnProperty(l)){return i.cache[l].result}let h=Math.min(e,t);let f=Math.max(e,t);if(Math.abs(h-f)===1){let r=e+"|"+t;if(s.capture){return`(${r})`}if(s.wrap===false){return r}return`(?:${r})`}let d=hasPadding(e)||hasPadding(t);let p={min:e,max:t,a:h,b:f};let m=[];let y=[];if(d){p.isPadded=d;p.maxLen=String(p.max).length}if(h<0){let e=f<0?Math.abs(f):1;y=splitToPatterns(e,Math.abs(h),p,s);h=p.a=0}if(f>=0){m=splitToPatterns(h,f,p,s)}p.negatives=y;p.positives=m;p.result=collatePatterns(y,m,s);if(s.capture===true){p.result=`(${p.result})`}else if(s.wrap!==false&&m.length+y.length>1){p.result=`(?:${p.result})`}i.cache[l]=p;return p.result};function collatePatterns(e,t,r){let n=filterPatterns(e,t,"-",false,r)||[];let i=filterPatterns(t,e,"",false,r)||[];let s=filterPatterns(e,t,"-?",true,r)||[];let o=n.concat(s).concat(i);return o.join("|")}function splitToRanges(e,t){let r=1;let n=1;let i=countNines(e,r);let s=new Set([t]);while(e<=i&&i<=t){s.add(i);r+=1;i=countNines(e,r)}i=countZeros(t+1,n)-1;while(e<i&&i<=t){s.add(i);n+=1;i=countZeros(t+1,n)-1}s=[...s];s.sort(compare);return s}function rangeToPattern(e,t,r){if(e===t){return{pattern:e,count:[],digits:0}}let n=zip(e,t);let i=n.length;let s="";let o=0;for(let e=0;e<i;e++){let[t,i]=n[e];if(t===i){s+=t}else if(t!=="0"||i!=="9"){s+=toCharacterClass(t,i,r)}else{o++}}if(o){s+=r.shorthand===true?"\\d":"[0-9]"}return{pattern:s,count:[o],digits:i}}function splitToPatterns(e,t,r,n){let i=splitToRanges(e,t);let s=[];let o=e;let a;for(let e=0;e<i.length;e++){let t=i[e];let u=rangeToPattern(String(o),String(t),n);let c="";if(!r.isPadded&&a&&a.pattern===u.pattern){if(a.count.length>1){a.count.pop()}a.count.push(u.count[0]);a.string=a.pattern+toQuantifier(a.count);o=t+1;continue}if(r.isPadded){c=padZeros(t,r,n)}u.string=c+u.pattern+toQuantifier(u.count);s.push(u);o=t+1;a=u}return s}function filterPatterns(e,t,r,n,i){let s=[];for(let i of e){let{string:e}=i;if(!n&&!contains(t,"string",e)){s.push(r+e)}if(n&&contains(t,"string",e)){s.push(r+e)}}return s}function zip(e,t){let r=[];for(let n=0;n<e.length;n++)r.push([e[n],t[n]]);return r}function compare(e,t){return e>t?1:t>e?-1:0}function contains(e,t,r){return e.some(e=>e[t]===r)}function countNines(e,t){return Number(String(e).slice(0,-t)+"9".repeat(t))}function countZeros(e,t){return e-e%Math.pow(10,t)}function toQuantifier(e){let[t=0,r=""]=e;if(r||t>1){return`{${t+(r?","+r:"")}}`}return""}function toCharacterClass(e,t,r){return`[${e}${t-e===1?"":"-"}${t}]`}function hasPadding(e){return/^-?(0+)\d/.test(e)}function padZeros(e,t,r){if(!t.isPadded){return e}let n=Math.abs(t.maxLen-String(e).length);let i=r.relaxZeros!==false;switch(n){case 0:return"";case 1:return i?"0?":"0";case 2:return i?"0{0,2}":"00";default:{return i?`0{0,${n}}`:`0{${n}}`}}}i.cache={};i.clearCache=(()=>i.cache={});e.exports=i},1523:e=>{"use strict";e.exports=function(e){if(typeof e==="number"){return e-e===0}if(typeof e==="string"&&e.trim()!==""){return Number.isFinite?Number.isFinite(+e):isFinite(+e)}return false}},9046:(e,t)=>{"use strict";t.fromCallback=function(e){return Object.defineProperty(function(...t){if(typeof t[t.length-1]==="function")e.apply(this,t);else{return new Promise((r,n)=>{e.apply(this,t.concat([(e,t)=>e?n(e):r(t)]))})}},"name",{value:e.name})};t.fromPromise=function(e){return Object.defineProperty(function(...t){const r=t[t.length-1];if(typeof r!=="function")return e.apply(this,t);else e.apply(this,t.slice(0,-1)).then(e=>r(null,e),r)},"name",{value:e.name})}},91:(e,t,r)=>{const{URL:n}=r(8835);const{join:i}=r(5622);const s=r(5747);const{promisify:o}=r(1669);const{tmpdir:a}=r(2087);const u=r(4182);const c=o(s.writeFile);const l=o(s.mkdir);const h=o(s.readFile);const f=(e,t)=>e.localeCompare(t,"en-US",{numeric:true});const d=e=>encodeURIComponent(e).replace(/^%40/,"@");const p=async(e,t)=>{const r=a();const n=i(r,"update-check");if(!s.existsSync(n)){await l(n)}let o=`${e.name}-${t}.json`;if(e.scope){o=`${e.scope}-${o}`}return i(n,o)};const m=async(e,t,r)=>{if(s.existsSync(e)){const n=await h(e,"utf8");const{lastUpdate:i,latest:s}=JSON.parse(n);const o=i+r;if(o>t){return{shouldCheck:false,latest:s}}}return{shouldCheck:true,latest:null}};const y=async(e,t,r)=>{const n=JSON.stringify({latest:t,lastUpdate:r});await c(e,n,"utf8")};const g=(e,t)=>new Promise((n,i)=>{const s={host:e.hostname,path:e.pathname,port:e.port,headers:{accept:"application/vnd.npm.install-v1+json; q=1.0, application/json; q=0.8, */*"},timeout:2e3};if(t){s.headers.authorization=`${t.type} ${t.token}`}const{get:o}=r(e.protocol==="https:"?7211:4363);o(s,e=>{const{statusCode:t}=e;if(t!==200){const r=new Error(`Request failed with code ${t}`);r.code=t;i(r);e.resume();return}let r="";e.setEncoding("utf8");e.on("data",e=>{r+=e});e.on("end",()=>{try{const e=JSON.parse(r);n(e)}catch(e){i(e)}})}).on("error",i).on("timeout",i)});const v=async({full:e,scope:t},i)=>{const s=u(t);const o=new n(e,s);let a=null;try{a=await g(o)}catch(e){if(e.code&&String(e.code).startsWith(4)){const e=r(2968);const t=e(s,{recursive:true});a=await g(o,t)}else{throw e}}const c=a["dist-tags"][i];if(!c){throw new Error(`Distribution tag ${i} is not available`)}return c};const b={interval:36e5,distTag:"latest"};const w=e=>{const t={full:d(e)};if(e.includes("/")){const r=e.split("/");t.scope=r[0];t.name=r[1]}else{t.scope=null;t.name=e}return t};e.exports=(async(e,t)=>{if(typeof e!=="object"){throw new Error("The first parameter should be your package.json file content")}const r=w(e.name);const n=Date.now();const{distTag:i,interval:s}=Object.assign({},b,t);const o=await p(r,i);let a=null;let u=true;({shouldCheck:u,latest:a}=await m(o,n,s));if(u){a=await v(r,i);await y(o,a,n)}const c=f(e.version,a);if(c===-1){return{latest:a,fromCache:!u}}return null})},4150:(e,t,r)=>{"use strict";var n=new RegExp("^(?:@([^/]+?)[/])?([^/]+?)$");var i=r(2008);var s=["node_modules","favicon.ico"];var o=e.exports=function(e){var t=[];var r=[];if(e===null){r.push("name cannot be null");return a(t,r)}if(e===undefined){r.push("name cannot be undefined");return a(t,r)}if(typeof e!=="string"){r.push("name must be a string");return a(t,r)}if(!e.length){r.push("name length must be greater than zero")}if(e.match(/^\./)){r.push("name cannot start with a period")}if(e.match(/^_/)){r.push("name cannot start with an underscore")}if(e.trim()!==e){r.push("name cannot contain leading or trailing spaces")}s.forEach(function(t){if(e.toLowerCase()===t){r.push(t+" is a blacklisted name")}});i.forEach(function(r){if(e.toLowerCase()===r){t.push(r+" is a core module name")}});if(e.length>214){t.push("name can no longer contain more than 214 characters")}if(e.toLowerCase()!==e){t.push("name can no longer contain capital letters")}if(/[~'!()*]/.test(e.split("/").slice(-1)[0])){t.push('name can no longer contain special characters ("~\'!()*")')}if(encodeURIComponent(e)!==e){var o=e.match(n);if(o){var u=o[1];var c=o[2];if(encodeURIComponent(u)===u&&encodeURIComponent(c)===c){return a(t,r)}}r.push("name can only contain URL-friendly characters")}return a(t,r)};o.scopedPackagePattern=n;var a=function(e,t){var r={validForNewPackages:t.length===0&&e.length===0,validForOldPackages:t.length===0,warnings:e,errors:t};if(!r.warnings.length)delete r.warnings;if(!r.errors.length)delete r.errors;return r}},4383:e=>{e.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]]},5917:(e,t,r)=>{"use strict";var n=r(732);var i=r(4383);var s={nul:0,control:0};e.exports=function wcwidth(e){return wcswidth(e,s)};e.exports.config=function(e){e=n(e||{},s);return function wcwidth(t){return wcswidth(t,e)}};function wcswidth(e,t){if(typeof e!=="string")return wcwidth(e,t);var r=0;for(var n=0;n<e.length;n++){var i=wcwidth(e.charCodeAt(n),t);if(i<0)return-1;r+=i}return r}function wcwidth(e,t){if(e===0)return t.nul;if(e<32||e>=127&&e<160)return t.control;if(bisearch(e))return 0;return 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 bisearch(e){var t=0;var r=i.length-1;var n;if(e<i[0][0]||e>i[r][1])return false;while(r>=t){n=Math.floor((t+r)/2);if(e>i[n][1])t=n+1;else if(e<i[n][0])r=n-1;else return true}return false}},4207:(e,t,r)=>{e.exports=which;which.sync=whichSync;var n=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys";var i=r(5622);var s=n?";":":";var o=r(7126);function getNotFoundError(e){var t=new Error("not found: "+e);t.code="ENOENT";return t}function getPathInfo(e,t){var r=t.colon||s;var i=t.path||process.env.PATH||"";var o=[""];i=i.split(r);var a="";if(n){i.unshift(process.cwd());a=t.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM";o=a.split(r);if(e.indexOf(".")!==-1&&o[0]!=="")o.unshift("")}if(e.match(/\//)||n&&e.match(/\\/))i=[""];return{env:i,ext:o,extExe:a}}function which(e,t,r){if(typeof t==="function"){r=t;t={}}var n=getPathInfo(e,t);var s=n.env;var a=n.ext;var u=n.extExe;var c=[];(function F(n,l){if(n===l){if(t.all&&c.length)return r(null,c);else return r(getNotFoundError(e))}var h=s[n];if(h.charAt(0)==='"'&&h.slice(-1)==='"')h=h.slice(1,-1);var f=i.join(h,e);if(!h&&/^\.[\\\/]/.test(e)){f=e.slice(0,2)+f}(function E(e,i){if(e===i)return F(n+1,l);var s=a[e];o(f+s,{pathExt:u},function(n,o){if(!n&&o){if(t.all)c.push(f+s);else return r(null,f+s)}return E(e+1,i)})})(0,a.length)})(0,s.length)}function whichSync(e,t){t=t||{};var r=getPathInfo(e,t);var n=r.env;var s=r.ext;var a=r.extExe;var u=[];for(var c=0,l=n.length;c<l;c++){var h=n[c];if(h.charAt(0)==='"'&&h.slice(-1)==='"')h=h.slice(1,-1);var f=i.join(h,e);if(!h&&/^\.[\\\/]/.test(e)){f=e.slice(0,2)+f}for(var d=0,p=s.length;d<p;d++){var m=f+s[d];var y;try{y=o.sync(m,{pathExt:a});if(y){if(t.all)u.push(m);else return m}}catch(e){}}}if(t.all&&u.length)return u;if(t.nothrow)return null;throw getNotFoundError(e)}},2940:e=>{e.exports=wrappy;function wrappy(e,t){if(e&&t)return wrappy(e)(t);if(typeof e!=="function")throw new TypeError("need wrapper function");Object.keys(e).forEach(function(t){wrapper[t]=e[t]});return wrapper;function wrapper(){var t=new Array(arguments.length);for(var r=0;r<t.length;r++){t[r]=arguments[r]}var n=e.apply(this,t);var i=t[t.length-1];if(typeof n==="function"&&n!==i){Object.keys(i).forEach(function(e){n[e]=i[e]})}return n}}},2221:(e,t,r)=>{"use strict";e.exports=writeFile;e.exports.sync=writeFileSync;e.exports._getTmpname=getTmpname;e.exports._cleanupOnExit=cleanupOnExit;var n=r(7758);var i=r(2527);var s=r(4931);var o=r(5622);var a={};var u=function getId(){try{var e=r(5013);return e.threadId}catch(e){return 0}}();var c=0;function getTmpname(e){return e+"."+i(__filename).hash(String(process.pid)).hash(String(u)).hash(String(++c)).result()}function cleanupOnExit(e){return function(){try{n.unlinkSync(typeof e==="function"?e():e)}catch(e){}}}function writeFile(e,t,r,i){if(r){if(r instanceof Function){i=r;r={}}else if(typeof r==="string"){r={encoding:r}}}else{r={}}var u=r.Promise||global.Promise;var c;var l;var h;var f=s(cleanupOnExit(()=>h));var d=o.resolve(e);new u(function serializeSameFile(e){if(!a[d])a[d]=[];a[d].push(e);if(a[d].length===1)e()}).then(function getRealPath(){return new u(function(t){n.realpath(e,function(r,n){c=n||e;h=getTmpname(c);t()})})}).then(function stat(){return new u(function stat(e){if(r.mode&&r.chown)e();else{n.stat(c,function(t,n){if(t||!n)e();else{r=Object.assign({},r);if(r.mode==null){r.mode=n.mode}if(r.chown==null&&process.getuid){r.chown={uid:n.uid,gid:n.gid}}e()}})}})}).then(function thenWriteFile(){return new u(function(e,t){n.open(h,"w",r.mode,function(r,n){l=n;if(r)t(r);else e()})})}).then(function write(){return new u(function(e,i){if(Buffer.isBuffer(t)){n.write(l,t,0,t.length,0,function(t){if(t)i(t);else e()})}else if(t!=null){n.write(l,String(t),0,String(r.encoding||"utf8"),function(t){if(t)i(t);else e()})}else e()})}).then(function syncAndClose(){return new u(function(e,t){if(r.fsync!==false){n.fsync(l,function(r){if(r)n.close(l,()=>t(r));else n.close(l,e)})}else{n.close(l,e)}})}).then(function chown(){l=null;if(r.chown){return new u(function(e,t){n.chown(h,r.chown.uid,r.chown.gid,function(r){if(r)t(r);else e()})})}}).then(function chmod(){if(r.mode){return new u(function(e,t){n.chmod(h,r.mode,function(r){if(r)t(r);else e()})})}}).then(function rename(){return new u(function(e,t){n.rename(h,c,function(r){if(r)t(r);else e()})})}).then(function success(){f();i()},function fail(e){return new u(e=>{return l?n.close(l,e):e()}).then(()=>{f();n.unlink(h,function(){i(e)})})}).then(function checkQueue(){a[d].shift();if(a[d].length>0){a[d][0]()}else delete a[d]})}function writeFileSync(e,t,r){if(typeof r==="string")r={encoding:r};else if(!r)r={};try{e=n.realpathSync(e)}catch(e){}var i=getTmpname(e);if(!r.mode||!r.chown){try{var o=n.statSync(e);r=Object.assign({},r);if(!r.mode){r.mode=o.mode}if(!r.chown&&process.getuid){r.chown={uid:o.uid,gid:o.gid}}}catch(e){}}var a;var u=cleanupOnExit(i);var c=s(u);try{a=n.openSync(i,"w",r.mode);if(Buffer.isBuffer(t)){n.writeSync(a,t,0,t.length,0)}else if(t!=null){n.writeSync(a,String(t),0,String(r.encoding||"utf8"))}if(r.fsync!==false){n.fsyncSync(a)}n.closeSync(a);if(r.chown)n.chownSync(i,r.chown.uid,r.chown.gid);if(r.mode)n.chmodSync(i,r.mode);n.renameSync(i,e);c()}catch(e){if(a){try{n.closeSync(a)}catch(e){}}c();u();throw e}}},4091:e=>{"use strict";e.exports=function(e){e.prototype[Symbol.iterator]=function*(){for(let e=this.head;e;e=e.next){yield e.value}}}},665:(e,t,r)=>{"use strict";e.exports=Yallist;Yallist.Node=Node;Yallist.create=Yallist;function Yallist(e){var t=this;if(!(t instanceof Yallist)){t=new Yallist}t.tail=null;t.head=null;t.length=0;if(e&&typeof e.forEach==="function"){e.forEach(function(e){t.push(e)})}else if(arguments.length>0){for(var r=0,n=arguments.length;r<n;r++){t.push(arguments[r])}}return t}Yallist.prototype.removeNode=function(e){if(e.list!==this){throw new Error("removing node which does not belong to this list")}var t=e.next;var r=e.prev;if(t){t.prev=r}if(r){r.next=t}if(e===this.head){this.head=t}if(e===this.tail){this.tail=r}e.list.length--;e.next=null;e.prev=null;e.list=null;return t};Yallist.prototype.unshiftNode=function(e){if(e===this.head){return}if(e.list){e.list.removeNode(e)}var t=this.head;e.list=this;e.next=t;if(t){t.prev=e}this.head=e;if(!this.tail){this.tail=e}this.length++};Yallist.prototype.pushNode=function(e){if(e===this.tail){return}if(e.list){e.list.removeNode(e)}var t=this.tail;e.list=this;e.prev=t;if(t){t.next=e}this.tail=e;if(!this.head){this.head=e}this.length++};Yallist.prototype.push=function(){for(var e=0,t=arguments.length;e<t;e++){push(this,arguments[e])}return this.length};Yallist.prototype.unshift=function(){for(var e=0,t=arguments.length;e<t;e++){unshift(this,arguments[e])}return this.length};Yallist.prototype.pop=function(){if(!this.tail){return undefined}var e=this.tail.value;this.tail=this.tail.prev;if(this.tail){this.tail.next=null}else{this.head=null}this.length--;return e};Yallist.prototype.shift=function(){if(!this.head){return undefined}var e=this.head.value;this.head=this.head.next;if(this.head){this.head.prev=null}else{this.tail=null}this.length--;return e};Yallist.prototype.forEach=function(e,t){t=t||this;for(var r=this.head,n=0;r!==null;n++){e.call(t,r.value,n,this);r=r.next}};Yallist.prototype.forEachReverse=function(e,t){t=t||this;for(var r=this.tail,n=this.length-1;r!==null;n--){e.call(t,r.value,n,this);r=r.prev}};Yallist.prototype.get=function(e){for(var t=0,r=this.head;r!==null&&t<e;t++){r=r.next}if(t===e&&r!==null){return r.value}};Yallist.prototype.getReverse=function(e){for(var t=0,r=this.tail;r!==null&&t<e;t++){r=r.prev}if(t===e&&r!==null){return r.value}};Yallist.prototype.map=function(e,t){t=t||this;var r=new Yallist;for(var n=this.head;n!==null;){r.push(e.call(t,n.value,this));n=n.next}return r};Yallist.prototype.mapReverse=function(e,t){t=t||this;var r=new Yallist;for(var n=this.tail;n!==null;){r.push(e.call(t,n.value,this));n=n.prev}return r};Yallist.prototype.reduce=function(e,t){var r;var n=this.head;if(arguments.length>1){r=t}else if(this.head){n=this.head.next;r=this.head.value}else{throw new TypeError("Reduce of empty list with no initial value")}for(var i=0;n!==null;i++){r=e(r,n.value,i);n=n.next}return r};Yallist.prototype.reduceReverse=function(e,t){var r;var n=this.tail;if(arguments.length>1){r=t}else if(this.tail){n=this.tail.prev;r=this.tail.value}else{throw new TypeError("Reduce of empty list with no initial value")}for(var i=this.length-1;n!==null;i--){r=e(r,n.value,i);n=n.prev}return r};Yallist.prototype.toArray=function(){var e=new Array(this.length);for(var t=0,r=this.head;r!==null;t++){e[t]=r.value;r=r.next}return e};Yallist.prototype.toArrayReverse=function(){var e=new Array(this.length);for(var t=0,r=this.tail;r!==null;t++){e[t]=r.value;r=r.prev}return e};Yallist.prototype.slice=function(e,t){t=t||this.length;if(t<0){t+=this.length}e=e||0;if(e<0){e+=this.length}var r=new Yallist;if(t<e||t<0){return r}if(e<0){e=0}if(t>this.length){t=this.length}for(var n=0,i=this.head;i!==null&&n<e;n++){i=i.next}for(;i!==null&&n<t;n++,i=i.next){r.push(i.value)}return r};Yallist.prototype.sliceReverse=function(e,t){t=t||this.length;if(t<0){t+=this.length}e=e||0;if(e<0){e+=this.length}var r=new Yallist;if(t<e||t<0){return r}if(e<0){e=0}if(t>this.length){t=this.length}for(var n=this.length,i=this.tail;i!==null&&n>t;n--){i=i.prev}for(;i!==null&&n>e;n--,i=i.prev){r.push(i.value)}return r};Yallist.prototype.splice=function(e,t,...r){if(e>this.length){e=this.length-1}if(e<0){e=this.length+e}for(var n=0,i=this.head;i!==null&&n<e;n++){i=i.next}var s=[];for(var n=0;i&&n<t;n++){s.push(i.value);i=this.removeNode(i)}if(i===null){i=this.tail}if(i!==this.head&&i!==this.tail){i=i.prev}for(var n=0;n<r.length;n++){i=insert(this,i,r[n])}return s};Yallist.prototype.reverse=function(){var e=this.head;var t=this.tail;for(var r=e;r!==null;r=r.prev){var n=r.prev;r.prev=r.next;r.next=n}this.head=t;this.tail=e;return this};function insert(e,t,r){var n=t===e.head?new Node(r,null,t,e):new Node(r,t,t.next,e);if(n.next===null){e.tail=n}if(n.prev===null){e.head=n}e.length++;return n}function push(e,t){e.tail=new Node(t,e.tail,null,e);if(!e.head){e.head=e.tail}e.length++}function unshift(e,t){e.head=new Node(t,null,e.head,e);if(!e.tail){e.tail=e.head}e.length++}function Node(e,t,r,n){if(!(this instanceof Node)){return new Node(e,t,r,n)}this.list=n;this.value=e;if(t){t.next=this;this.prev=t}else{this.prev=null}if(r){r.prev=this;this.next=r}else{this.next=null}}try{r(4091)(Yallist)}catch(e){}},7591:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r(function(t){t(e)})}return new(r||(r=Promise))(function(r,i){function fulfilled(e){try{step(n.next(e))}catch(e){i(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){i(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())})};var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});const s=i(r(9090));const o=i(r(8707));const a=i(r(5747));const u=i(r(3061));const c=i(r(5622));const l=i(r(9646));const h=r(2413);const f=i(r(4674));const d=i(r(1898));const p=r(1669);const m=r(7473);const y=r(8437);const g=p.promisify(h.Stream.pipeline);function promptAsync(){return n(this,void 0,void 0,function*(){const{value:e}=yield l.default({type:"select",name:"value",limit:11,message:"How would you like to start",choices:[{title:"Default new app",value:"default"},{title:`Template from ${d.default("expo/examples","https://github.com/expo/examples",{fallback:(e,t)=>`${e}: ${t}`})}`,value:"example"}]});if(!e){console.log();console.log("Please specify the template");process.exit(1)}if(e==="example"){let e;try{e=yield listAsync()}catch(e){console.log();console.log("Failed to fetch the list of examples with the following error:");console.error(e);console.log();console.log("Switching to the default starter app");console.log()}if(e){const t=e.map(({name:e})=>({title:e,value:e}));const r=yield l.default({type:"autocomplete",name:"exampleName",message:"Pick an example",choices:t,suggest:(e,t)=>{const r=new RegExp(e,"i");return t.filter(e=>r.test(e.title))}});if(!r.exampleName){console.log();console.log("Please specify an example or use the default starter app.");process.exit(1)}return r.exampleName.trim()}}return null})}t.promptAsync=promptAsync;function isUrlOk(e){return n(this,void 0,void 0,function*(){const t=yield u.default(e).catch(e=>e);return t.statusCode===200})}function getRepoInfo(e,t){return n(this,void 0,void 0,function*(){const[,r,n,i,s,...o]=e.pathname.split("/");const a=t?t.replace(/^\//,""):o.join("/");if(i===undefined){const e=yield u.default(`https://api.github.com/repos/${r}/${n}`).catch(e=>e);if(e.statusCode!==200){return}const t=JSON.parse(e.body);return{username:r,name:n,branch:t["default_branch"],filePath:a}}const c=t?`${s}/${o.join("/")}`.replace(new RegExp(`/${a}|/$`),""):s;if(r&&n&&c&&i==="tree"){return{username:r,name:n,branch:c,filePath:a}}return undefined})}function hasRepo({username:e,name:t,branch:r,filePath:n}){const i=`https://api.github.com/repos/${e}/${t}/contents`;const s=`${n?`/${n}`:""}/package.json`;return isUrlOk(i+s+`?ref=${r}`)}function resolveTemplateArgAsync(e,t,r,i){return n(this,void 0,void 0,function*(){let n;if(r){let e;try{e=new URL(r)}catch(e){if(e.code!=="ERR_INVALID_URL"){t.fail(e);process.exit(1)}}if(e){if(e.origin!=="https://github.com"){t.fail(`Invalid URL: ${o.default.red(`"${r}"`)}. Only GitHub repositories are supported. Please use a GitHub URL and try again.`);process.exit(1)}n=yield getRepoInfo(e,i);if(!n){t.fail(`Found invalid GitHub URL: ${o.default.red(`"${r}"`)}. Please fix the URL and try again.`);process.exit(1)}const s=yield hasRepo(n);if(!s){t.fail(`Could not locate the repository for ${o.default.red(`"${r}"`)}. Please check that the repository exists and try again.`);process.exit(1)}}else{const e=yield hasExample(r);if(!e){t.fail(`Could not locate the template named ${o.default.red(`"${r}"`)}.`);process.exit(1)}}}if(n){t.text=o.default.bold(`Downloading files from repo ${o.default.cyan(r)}. This might take a moment.`);yield downloadAndExtractRepoAsync(e,n)}else{t.text=o.default.bold(`Downloading files for example ${o.default.cyan(r)}. This might take a moment.`);yield downloadAndExtractExampleAsync(e,r)}yield ensureProjectHasGitIgnore(e);return true})}t.resolveTemplateArgAsync=resolveTemplateArgAsync;function projectHasNativeCode(e){const t=c.default.join(e,"ios");const r=c.default.join(e,"android");return a.default.existsSync(t)||a.default.existsSync(r)}function getScriptsForProject(e){if(projectHasNativeCode(e)){return{android:"expo run:android",ios:"expo run:ios",web:"expo start --web",start:"expo start --dev-client"}}return{start:"expo start",android:"expo start --android",ios:"expo start --ios",web:"expo start --web"}}function appendScriptsAsync(e){return n(this,void 0,void 0,function*(){const t=c.default.join(e,"package.json");if(a.default.existsSync(t)){let r=new s.default(t);let n=yield r.readAsync();n=Object.assign(Object.assign({},n),{scripts:Object.assign(Object.assign({},getScriptsForProject(e)),n.scripts||{}),version:"1.0.0",private:true});n.name=m.sanitizeNpmPackageName(c.default.basename(e));yield r.writeAsync(n)}})}t.appendScriptsAsync=appendScriptsAsync;function ensureProjectHasGitIgnore(e){const t=c.default.join(e,".gitignore");if(!a.default.existsSync(t)){a.default.copyFileSync(r.ab+"gitignore",t)}}function hasExample(e){return isUrlOk(`https://api.github.com/repos/expo/examples/contents/${encodeURIComponent(e)}/package.json`)}function downloadAndExtractRepoAsync(e,{username:t,name:r,branch:n,filePath:i}){const s=c.default.basename(e);const o=i?i.split("/").length+1:1;return g(u.default.stream(`https://codeload.github.com/${t}/${r}/tar.gz/${n}`),f.default.extract({cwd:e,transform:y.createFileTransform(s),onentry:y.createEntryResolver(s),strip:o},[`${r}-${n}${i?`/${i}`:""}`]))}function downloadAndExtractExampleAsync(e,t){const r=c.default.basename(e);return g(u.default.stream("https://codeload.github.com/expo/examples/tar.gz/master"),f.default.extract({cwd:e,transform:y.createFileTransform(r),onentry:y.createEntryResolver(r),strip:2},[`examples-master/${t}`]))}function listAsync(){return n(this,void 0,void 0,function*(){const e=yield u.default("https://api.github.com/repos/expo/examples/contents");const t=JSON.parse(e.body);return t.filter(({name:e,type:t})=>{var r;return t==="dir"&&!((r=e)===null||r===void 0?void 0:r.startsWith("."))})})}},1873:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});const i=n(r(8707));const s=n(r(1904));let o;let a;let u=false;function _maybePrintNewLine(){if(u){u=false;console.log()}}function consoleLog(...e){_maybePrintNewLine();console.log(...e)}function consoleWarn(...e){_maybePrintNewLine();console.warn(...e)}function consoleError(...e){_maybePrintNewLine();console.error(...e)}function respectProgressBars(e){if(o){o.terminate();o.lastDraw=""}if(a){a.stop()}e();if(o){o.render()}if(a){a.start()}}function getPrefix(e){return e(`[${(new Date).toTimeString().slice(0,8)}]`)}function withPrefixAndTextColor(e,t=i.default.gray){if(s.default.nonInteractive){return[getPrefix(t),...e.map(e=>t(e))]}else{return e.map(e=>t(e))}}function withPrefix(e,t=i.default.gray){if(s.default.nonInteractive){return[getPrefix(t),...e]}else{return e}}function log(...e){if(log.config.raw){return}respectProgressBars(()=>{consoleLog(...withPrefix(e))})}log.nested=function(e){respectProgressBars(()=>{consoleLog(e)})};log.newLine=function newLine(){respectProgressBars(()=>{consoleLog()})};log.printNewLineBeforeNextLog=function printNewLineBeforeNextLog(){u=true};log.error=function error(...e){if(log.config.raw){return}respectProgressBars(()=>{consoleError(...withPrefixAndTextColor(e,i.default.red))})};log.warn=function warn(...e){if(log.config.raw){return}respectProgressBars(()=>{consoleWarn(...withPrefixAndTextColor(e,i.default.yellow))})};log.gray=function(...e){if(log.config.raw){return}respectProgressBars(()=>{consoleLog(...withPrefixAndTextColor(e))})};log.raw=function(...e){if(!log.config.raw){return}respectProgressBars(()=>{consoleLog(...e)})};log.chalk=i.default;log.config={raw:false};t.default=log},7473:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r(function(t){t(e)})}return new(r||(r=Promise))(function(r,i){function fulfilled(e){try{step(n.next(e))}catch(e){i(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){i(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())})};var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};var s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(Object.hasOwnProperty.call(e,r))t[r]=e[r];t["default"]=e;return t};Object.defineProperty(t,"__esModule",{value:true});const o=i(r(9090));const a=s(r(6395));const u=i(r(5562));const c=i(r(8707));const l=r(5630);const h=i(r(6037));const f=i(r(3061));const d=i(r(481));const p=i(r(970));const m=s(r(5622));const y=r(2413);const g=i(r(4674));const v=r(1669);const b=i(r(1873));const w=r(8437);const A=v.promisify(y.Stream.pipeline);const E=process.platform==="darwin";const _=r(306);function extractAndPrepareTemplateAppAsync(e){return n(this,void 0,void 0,function*(){const t=m.basename(e);yield downloadAndExtractNpmModule(e,"expo-template-bare-minimum",t);const r={name:t,expo:{name:t,slug:t}};let n=new o.default(m.join(e,"app.json"));let i=d.default(yield n.readAsync(),r);yield n.writeAsync(i);let s=new o.default(m.join(e,"package.json"));let a=yield s.readAsync();const u="name"in r?r.name:r.expo.name;a.name=sanitizeNpmPackageName(u);a.version="1.0.0";a.private=true;delete a.description;delete a.tags;delete a.repository;yield s.writeAsync(a);return e})}t.extractAndPrepareTemplateAppAsync=extractAndPrepareTemplateAppAsync;function sanitizeNpmPackageName(e){return applyKnownNpmPackageNameRules(e)||"app"}t.sanitizeNpmPackageName=sanitizeNpmPackageName;function applyKnownNpmPackageNameRules(e){while(/^(\.|_)/.test(e)){e=e.substring(1)}e=e.toLowerCase().replace(/[^a-zA-Z._\-/@]/g,"");return e.normalize("NFD").replace(/[\u0300-\u036f]/g,"")||null}function validateName(e){if(typeof e!=="string"||e===""){return"The project name can not be empty."}if(!/^[a-z0-9@.\-_]+$/i.test(e)){return"The project name can only contain URL-friendly characters."}return true}t.validateName=validateName;function initGitRepoAsync(e,t={silent:false}){return n(this,void 0,void 0,function*(){try{yield u.default("git",["rev-parse","--is-inside-work-tree"],{stdio:"ignore",cwd:e});!t.silent&&b.default.gray("New project is already inside of a Git repo, skipping git init.")}catch(e){if(e.errno==="ENOENT"){!t.silent&&b.default.gray("Unable to initialize Git repo. `git` not in PATH.");return false}}try{yield u.default("git",["init"],{stdio:"ignore",cwd:e});yield u.default("git",["add","-A"],{stdio:"ignore",cwd:e});const r=`Initial commit\n\nGenerated by ${_.name} ${_.version}.`;yield u.default("git",["commit","-m",r],{stdio:"ignore",cwd:e});!t.silent&&b.default.gray("Initialized a Git repository.");return true}catch(e){return false}})}t.initGitRepoAsync=initGitRepoAsync;function installDependenciesAsync(e,t,r={silent:false}){return n(this,void 0,void 0,function*(){const n={cwd:e,silent:r.silent};if(t==="yarn"){const e=new a.YarnPackageManager(n);yield e.installAsync()}else{yield new a.NpmPackageManager(n).installAsync()}})}t.installDependenciesAsync=installDependenciesAsync;const D=[".DS_Store","Thumbs.db",".git",".gitattributes",".gitignore",".npmignore",".travis.yml","LICENSE","docs",".idea","npm-debug.log","yarn-debug.log","yarn-error.log"];function getConflictsForDirectory(e){return l.readdirSync(e).filter(e=>!(/\.iml$/.test(e)||D.includes(e)))}t.getConflictsForDirectory=getConflictsForDirectory;function logProjectReady({cdPath:e,packageManager:t}){b.default.nested(c.default.bold(`✅ Your project is ready!`));b.default.newLine();if(e){b.default.nested(`To run your project, navigate to the directory and run one of the following ${t} commands.`);b.default.newLine();b.default.nested(`- ${c.default.bold("cd "+e)}`)}else{b.default.nested(`To run your project, run one of the following ${t} commands.`);b.default.newLine()}b.default.nested(`- ${c.default.bold(t==="npm"?"npm run android":"yarn android")}`);let r="";if(!E){r=" # you need to use macOS to build the iOS project - use the Expo app if you need to do iOS development without a Mac"}b.default.nested(`- ${c.default.bold(t==="npm"?"npm run ios":"yarn ios")}${r}`);b.default.nested(`- ${c.default.bold(t==="npm"?"npm run web":"yarn web")}`)}t.logProjectReady=logProjectReady;function installPodsAsync(e){return n(this,void 0,void 0,function*(){let t=logNewSection("Installing CocoaPods.");if(process.platform!=="darwin"){t.succeed("Skipped installing CocoaPods because operating system is not on macOS.");return false}const r=new a.CocoaPodsPackageManager({cwd:m.join(e,"ios"),log:b.default.nested,silent:!h.default.boolish("EXPO_DEBUG",false)});if(!(yield r.isCLIInstalledAsync())){try{t.text="CocoaPods CLI not found in your PATH, installing it now.";t.render();yield r.installCLIAsync();t.succeed("Installed CocoaPods CLI");t=logNewSection("Running `pod install` in the `ios` directory.")}catch(e){t.stopAndPersist({symbol:"⚠️ ",text:c.default.red("Unable to install the CocoaPods CLI. Continuing with initializing the project, you can install CocoaPods afterwards.")});if(e.message){b.default.nested(`- ${e.message}`)}return false}}try{yield r.installAsync();t.succeed("Installed pods and initialized Xcode workspace.");return true}catch(e){t.stopAndPersist({symbol:"⚠️ ",text:c.default.red("Something went wrong running `pod install` in the `ios` directory. Continuing with initializing the project, you can debug this afterwards.")});if(e.message){b.default.nested(`- ${e.message}`)}return false}})}t.installPodsAsync=installPodsAsync;function logNewSection(e){let t=p.default(c.default.bold(e));t.start();return t}t.logNewSection=logNewSection;function getNpmUrlAsync(e){return n(this,void 0,void 0,function*(){const t=(yield u.default("npm",["v",e,"dist.tarball"])).stdout;if(!t){throw new Error(`Could not get npm url for package "${e}"`)}return t})}function downloadAndExtractNpmModule(e,t,r){return n(this,void 0,void 0,function*(){const n=yield getNpmUrlAsync(t);return A(f.default.stream(n),g.default.extract({cwd:e,transform:w.createFileTransform(r),onentry:w.createEntryResolver(r),strip:1},[]))})}},5554:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r(function(t){t(e)})}return new(r||(r=Promise))(function(r,i){function fulfilled(e){try{step(n.next(e))}catch(e){i(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){i(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())})};var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});const s=i(r(8707));const o=r(3129);const a=i(r(91));function shouldUseYarn(){try{o.execSync("yarnpkg --version",{stdio:"ignore"});return true}catch(e){}return false}t.shouldUseYarn=shouldUseYarn;const u=r(306);function shouldUpdate(){return n(this,void 0,void 0,function*(){const e=a.default(u).catch(()=>null);try{const t=yield e;if(t&&t.latest){const e=shouldUseYarn();console.log();console.log(s.default.yellow.bold(`A new version of \`${u.name}\` is available`));console.log("You can update by running: "+s.default.magenta(e?`yarn global add ${u.name}`:`npm install -g ${u.name}`));console.log()}}catch(e){}})}t.default=shouldUpdate},8437:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};var i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(Object.hasOwnProperty.call(e,r))t[r]=e[r];t["default"]=e;return t};Object.defineProperty(t,"__esModule",{value:true});const s=n(r(1077));const o=i(r(5622));function sanitizedName(e){return e.replace(/[\W_]+/g,"").normalize("NFD").replace(/[\u0300-\u036f]/g,"")}t.sanitizedName=sanitizedName;class Transformer extends s.default{constructor(e){super();this.name=e;this.data=""}write(e){this.data+=e;return true}end(){let e=this.data.replace(/Hello App Display Name/g,this.name).replace(/HelloWorld/g,sanitizedName(this.name)).replace(/helloworld/g,sanitizedName(this.name.toLowerCase()));super.write(e);return super.end()}}function createEntryResolver(e){return t=>{if(e){t.path=t.path.replace(/HelloWorld/g,t.path.includes("android")?sanitizedName(e.toLowerCase()):sanitizedName(e)).replace(/helloworld/g,sanitizedName(e).toLowerCase())}if(t.type&&/^file$/i.test(t.type)&&o.basename(t.path)==="gitignore"){t.path=t.path.replace(/gitignore$/,".gitignore")}}}t.createEntryResolver=createEntryResolver;function createFileTransform(e){return t=>{if(![".png",".jpg",".jpeg",".gif",".webp",".psd",".tiff",".svg",".jar",".keystore"].includes(o.extname(t.path))&&e){return new Transformer(e)}return undefined}}t.createFileTransform=createFileTransform},6144:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r(function(t){t(e)})}return new(r||(r=Promise))(function(r,i){function fulfilled(e){try{step(n.next(e))}catch(e){i(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){i(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())})};var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};var s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(Object.hasOwnProperty.call(e,r))t[r]=e[r];t["default"]=e;return t};Object.defineProperty(t,"__esModule",{value:true});const o=i(r(8707));const a=r(1904);const u=r(5630);const c=s(r(5622));const l=i(r(9646));const h=s(r(7591));const f=i(r(1873));const d=s(r(7473));const p=s(r(5554));const m=r(306);let y;const g=new a.Command(m.name).version(m.version).arguments("<project-root>").usage(`${o.default.magenta("<project-root>")} [options]`).description("Creates a new React Native project").option("--use-npm","Use npm to install dependencies. (default when Yarn is not installed)").option("-y, --yes","Use the default options for creating a project").option("--no-install","Skip installing npm packages or CocoaPods.").option("-t, --template [template|url]","The name of a template from expo/examples or URL to a GitHub repo that contains an example.").option("--template-path [name]","The path inside of a GitHub repo where the example lives.").allowUnknownOption().action(e=>y=e).parse(process.argv);function runAsync(){return n(this,void 0,void 0,function*(){try{let e;if(!y&&g.yes){e=c.resolve(process.cwd());const t=c.basename(e);assertValidName(t);assertFolderEmpty(e,t)}else{e=yield resolveProjectRootAsync(y)}let t=g.template;if(t===true){console.log();console.log("Please specify the template");console.log();process.exit(1)}if(!t&&!g.yes){t=yield h.promptAsync()}let r=g.templatePath;yield u.ensureDir(e);let n=d.logNewSection(`Locating project files.`);try{if(t){yield h.resolveTemplateArgAsync(e,n,t,r);yield h.appendScriptsAsync(e)}else{yield d.extractAndPrepareTemplateAppAsync(e)}n.succeed("Downloaded and extracted project files.")}catch(e){n.fail("Something went wrong in downloading and extracting the project files.");process.exit(1)}const i=g.install;const s=resolvePackageManager();let o=false;const a=yield u.existsSync(c.join(e,"ios"));if(i){yield installNodeDependenciesAsync(e,s);if(a){o=yield installCocoaPodsAsync(e)}}const l=getChangeDirectoryPath(e);f.default.newLine();d.logProjectReady({cdPath:l,packageManager:s});if(!i){logNodeInstallWarning(l,s)}if(a&&!o){logCocoaPodsWarning(l)}try{yield d.initGitRepoAsync(e,{silent:true})}catch(e){}}catch(e){yield commandDidThrowAsync(e)}yield p.default();process.exit(0)})}function getChangeDirectoryPath(e){const t=c.relative(process.cwd(),e);if(t.length<=e.length){return t}return e}function installNodeDependenciesAsync(e,t){return n(this,void 0,void 0,function*(){const r=d.logNewSection("Installing JavaScript dependencies.");try{yield d.installDependenciesAsync(e,t,{silent:true});r.succeed("Installed JavaScript dependencies.")}catch(e){r.fail(`Something when wrong installing JavaScript dependencies. Check your ${t} logs. Continuing to initialize the app.`)}})}function installCocoaPodsAsync(e){return n(this,void 0,void 0,function*(){let t=false;try{t=yield d.installPodsAsync(e)}catch(e){}return t})}function logNodeInstallWarning(e,t){f.default.newLine();f.default.nested(`⚠️ Before running your app, make sure you have node modules installed:`);f.default.nested("");f.default.nested(` cd ${e!==null&&e!==void 0?e:"."}/`);f.default.nested(` ${t==="npm"?"npm install":"yarn"}`);f.default.nested("")}function logCocoaPodsWarning(e){if(process.platform!=="darwin"){return}f.default.newLine();f.default.nested(`⚠️ Before running your app on iOS, make sure you have CocoaPods installed and initialize the project:`);f.default.nested("");f.default.nested(` cd ${e!==null&&e!==void 0?e:"."}/ios`);f.default.nested(` npx pod-install`);f.default.nested("")}runAsync();function resolvePackageManager(){let e="npm";if(!g.useNpm&&p.shouldUseYarn()){e="yarn";f.default.newLine();f.default("Using Yarn to install packages. You can pass --use-npm to use npm instead.");f.default.newLine()}else{f.default.newLine();f.default("Using npm to install packages.");f.default.newLine()}return e}function assertFolderEmpty(e,t){const r=d.getConflictsForDirectory(e);if(r.length){f.default.nested(`The directory ${o.default.green(t)} has files that might be overwritten:`);f.default.newLine();for(const e of r){f.default.nested(` ${e}`)}f.default.newLine();f.default.nested("Try using a new directory name, or moving these files.");f.default.newLine();process.exit(1)}}function assertValidName(e){const t=d.validateName(e);if(typeof t==="string"){f.default.error(`Cannot create an app named ${o.default.red(`"${e}"`)}. ${t}`);process.exit(1)}}function resolveProjectRootAsync(e){var t;return n(this,void 0,void 0,function*(){let r=(t=e)===null||t===void 0?void 0:t.trim();if(!r){const{answer:e}=yield l.default({type:"text",name:"answer",message:"What is your app named?",initial:"my-react-app",validate:e=>{const t=d.validateName(c.basename(c.resolve(e)));if(typeof t==="string"){return"Invalid project name: "+t}return true}});if(typeof e==="string"){r=e.trim()}}if(!r){f.default.newLine();f.default.nested("Please choose your app name:");f.default.nested(` ${o.default.green(g.name())} ${o.default.magenta("<app-name>")}`);f.default.newLine();f.default.nested(`Run ${o.default.green(`${g.name()} --help`)} for more info.`);process.exit(1)}const n=c.resolve(r);const i=c.basename(n);assertValidName(i);yield u.ensureDir(n);assertFolderEmpty(n,i);return n})}function commandDidThrowAsync(e){return n(this,void 0,void 0,function*(){f.default.newLine();f.default.nested(o.default.red(`An unexpected error occurred:`));f.default.nested(e);f.default.newLine();yield p.default();process.exit(1)})}},2008:e=>{"use strict";e.exports=JSON.parse('["assert","buffer","child_process","cluster","console","constants","crypto","dgram","dns","domain","events","fs","http","https","module","net","os","path","process","punycode","querystring","readline","repl","stream","string_decoder","timers","tls","tty","url","util","v8","vm","zlib"]')},6615:e=>{"use strict";e.exports=JSON.parse('{"dots":{"interval":80,"frames":["⠋","⠙","⠹","⠸","⠼","⠴","⠦","⠧","⠇","⠏"]},"dots2":{"interval":80,"frames":["⣾","⣽","⣻","⢿","⡿","⣟","⣯","⣷"]},"dots3":{"interval":80,"frames":["⠋","⠙","⠚","⠞","⠖","⠦","⠴","⠲","⠳","⠓"]},"dots4":{"interval":80,"frames":["⠄","⠆","⠇","⠋","⠙","⠸","⠰","⠠","⠰","⠸","⠙","⠋","⠇","⠆"]},"dots5":{"interval":80,"frames":["⠋","⠙","⠚","⠒","⠂","⠂","⠒","⠲","⠴","⠦","⠖","⠒","⠐","⠐","⠒","⠓","⠋"]},"dots6":{"interval":80,"frames":["⠁","⠉","⠙","⠚","⠒","⠂","⠂","⠒","⠲","⠴","⠤","⠄","⠄","⠤","⠴","⠲","⠒","⠂","⠂","⠒","⠚","⠙","⠉","⠁"]},"dots7":{"interval":80,"frames":["⠈","⠉","⠋","⠓","⠒","⠐","⠐","⠒","⠖","⠦","⠤","⠠","⠠","⠤","⠦","⠖","⠒","⠐","⠐","⠒","⠓","⠋","⠉","⠈"]},"dots8":{"interval":80,"frames":["⠁","⠁","⠉","⠙","⠚","⠒","⠂","⠂","⠒","⠲","⠴","⠤","⠄","⠄","⠤","⠠","⠠","⠤","⠦","⠖","⠒","⠐","⠐","⠒","⠓","⠋","⠉","⠈","⠈"]},"dots9":{"interval":80,"frames":["⢹","⢺","⢼","⣸","⣇","⡧","⡗","⡏"]},"dots10":{"interval":80,"frames":["⢄","⢂","⢁","⡁","⡈","⡐","⡠"]},"dots11":{"interval":100,"frames":["⠁","⠂","⠄","⡀","⢀","⠠","⠐","⠈"]},"dots12":{"interval":80,"frames":["⢀⠀","⡀⠀","⠄⠀","⢂⠀","⡂⠀","⠅⠀","⢃⠀","⡃⠀","⠍⠀","⢋⠀","⡋⠀","⠍⠁","⢋⠁","⡋⠁","⠍⠉","⠋⠉","⠋⠉","⠉⠙","⠉⠙","⠉⠩","⠈⢙","⠈⡙","⢈⠩","⡀⢙","⠄⡙","⢂⠩","⡂⢘","⠅⡘","⢃⠨","⡃⢐","⠍⡐","⢋⠠","⡋⢀","⠍⡁","⢋⠁","⡋⠁","⠍⠉","⠋⠉","⠋⠉","⠉⠙","⠉⠙","⠉⠩","⠈⢙","⠈⡙","⠈⠩","⠀⢙","⠀⡙","⠀⠩","⠀⢘","⠀⡘","⠀⠨","⠀⢐","⠀⡐","⠀⠠","⠀⢀","⠀⡀"]},"dots8Bit":{"interval":80,"frames":["⠀","⠁","⠂","⠃","⠄","⠅","⠆","⠇","⡀","⡁","⡂","⡃","⡄","⡅","⡆","⡇","⠈","⠉","⠊","⠋","⠌","⠍","⠎","⠏","⡈","⡉","⡊","⡋","⡌","⡍","⡎","⡏","⠐","⠑","⠒","⠓","⠔","⠕","⠖","⠗","⡐","⡑","⡒","⡓","⡔","⡕","⡖","⡗","⠘","⠙","⠚","⠛","⠜","⠝","⠞","⠟","⡘","⡙","⡚","⡛","⡜","⡝","⡞","⡟","⠠","⠡","⠢","⠣","⠤","⠥","⠦","⠧","⡠","⡡","⡢","⡣","⡤","⡥","⡦","⡧","⠨","⠩","⠪","⠫","⠬","⠭","⠮","⠯","⡨","⡩","⡪","⡫","⡬","⡭","⡮","⡯","⠰","⠱","⠲","⠳","⠴","⠵","⠶","⠷","⡰","⡱","⡲","⡳","⡴","⡵","⡶","⡷","⠸","⠹","⠺","⠻","⠼","⠽","⠾","⠿","⡸","⡹","⡺","⡻","⡼","⡽","⡾","⡿","⢀","⢁","⢂","⢃","⢄","⢅","⢆","⢇","⣀","⣁","⣂","⣃","⣄","⣅","⣆","⣇","⢈","⢉","⢊","⢋","⢌","⢍","⢎","⢏","⣈","⣉","⣊","⣋","⣌","⣍","⣎","⣏","⢐","⢑","⢒","⢓","⢔","⢕","⢖","⢗","⣐","⣑","⣒","⣓","⣔","⣕","⣖","⣗","⢘","⢙","⢚","⢛","⢜","⢝","⢞","⢟","⣘","⣙","⣚","⣛","⣜","⣝","⣞","⣟","⢠","⢡","⢢","⢣","⢤","⢥","⢦","⢧","⣠","⣡","⣢","⣣","⣤","⣥","⣦","⣧","⢨","⢩","⢪","⢫","⢬","⢭","⢮","⢯","⣨","⣩","⣪","⣫","⣬","⣭","⣮","⣯","⢰","⢱","⢲","⢳","⢴","⢵","⢶","⢷","⣰","⣱","⣲","⣳","⣴","⣵","⣶","⣷","⢸","⢹","⢺","⢻","⢼","⢽","⢾","⢿","⣸","⣹","⣺","⣻","⣼","⣽","⣾","⣿"]},"line":{"interval":130,"frames":["-","\\\\","|","/"]},"line2":{"interval":100,"frames":["⠂","-","–","—","–","-"]},"pipe":{"interval":100,"frames":["┤","┘","┴","└","├","┌","┬","┐"]},"simpleDots":{"interval":400,"frames":[". ",".. ","..."," "]},"simpleDotsScrolling":{"interval":200,"frames":[". ",".. ","..."," .."," ."," "]},"star":{"interval":70,"frames":["✶","✸","✹","✺","✹","✷"]},"star2":{"interval":80,"frames":["+","x","*"]},"flip":{"interval":70,"frames":["_","_","_","-","`","`","\'","´","-","_","_","_"]},"hamburger":{"interval":100,"frames":["☱","☲","☴"]},"growVertical":{"interval":120,"frames":["▁","▃","▄","▅","▆","▇","▆","▅","▄","▃"]},"growHorizontal":{"interval":120,"frames":["▏","▎","▍","▌","▋","▊","▉","▊","▋","▌","▍","▎"]},"balloon":{"interval":140,"frames":[" ",".","o","O","@","*"," "]},"balloon2":{"interval":120,"frames":[".","o","O","°","O","o","."]},"noise":{"interval":100,"frames":["▓","▒","░"]},"bounce":{"interval":120,"frames":["⠁","⠂","⠄","⠂"]},"boxBounce":{"interval":120,"frames":["▖","▘","▝","▗"]},"boxBounce2":{"interval":100,"frames":["▌","▀","▐","▄"]},"triangle":{"interval":50,"frames":["◢","◣","◤","◥"]},"arc":{"interval":100,"frames":["◜","◠","◝","◞","◡","◟"]},"circle":{"interval":120,"frames":["◡","⊙","◠"]},"squareCorners":{"interval":180,"frames":["◰","◳","◲","◱"]},"circleQuarters":{"interval":120,"frames":["◴","◷","◶","◵"]},"circleHalves":{"interval":50,"frames":["◐","◓","◑","◒"]},"squish":{"interval":100,"frames":["╫","╪"]},"toggle":{"interval":250,"frames":["⊶","⊷"]},"toggle2":{"interval":80,"frames":["▫","▪"]},"toggle3":{"interval":120,"frames":["□","■"]},"toggle4":{"interval":100,"frames":["■","□","▪","▫"]},"toggle5":{"interval":100,"frames":["▮","▯"]},"toggle6":{"interval":300,"frames":["ဝ","၀"]},"toggle7":{"interval":80,"frames":["⦾","⦿"]},"toggle8":{"interval":100,"frames":["◍","◌"]},"toggle9":{"interval":100,"frames":["◉","◎"]},"toggle10":{"interval":100,"frames":["㊂","㊀","㊁"]},"toggle11":{"interval":50,"frames":["⧇","⧆"]},"toggle12":{"interval":120,"frames":["☗","☖"]},"toggle13":{"interval":80,"frames":["=","*","-"]},"arrow":{"interval":100,"frames":["←","↖","↑","↗","→","↘","↓","↙"]},"arrow2":{"interval":80,"frames":["⬆️ ","↗️ ","➡️ ","↘️ ","⬇️ ","↙️ ","⬅️ ","↖️ "]},"arrow3":{"interval":120,"frames":["▹▹▹▹▹","▸▹▹▹▹","▹▸▹▹▹","▹▹▸▹▹","▹▹▹▸▹","▹▹▹▹▸"]},"bouncingBar":{"interval":80,"frames":["[ ]","[= ]","[== ]","[=== ]","[ ===]","[ ==]","[ =]","[ ]","[ =]","[ ==]","[ ===]","[====]","[=== ]","[== ]","[= ]"]},"bouncingBall":{"interval":80,"frames":["( ● )","( ● )","( ● )","( ● )","( ●)","( ● )","( ● )","( ● )","( ● )","(● )"]},"smiley":{"interval":200,"frames":["😄 ","😝 "]},"monkey":{"interval":300,"frames":["🙈 ","🙈 ","🙉 ","🙊 "]},"hearts":{"interval":100,"frames":["💛 ","💙 ","💜 ","💚 ","❤️ "]},"clock":{"interval":100,"frames":["🕛 ","🕐 ","🕑 ","🕒 ","🕓 ","🕔 ","🕕 ","🕖 ","🕗 ","🕘 ","🕙 ","🕚 "]},"earth":{"interval":180,"frames":["🌍 ","🌎 ","🌏 "]},"moon":{"interval":80,"frames":["🌑 ","🌒 ","🌓 ","🌔 ","🌕 ","🌖 ","🌗 ","🌘 "]},"runner":{"interval":140,"frames":["🚶 ","🏃 "]},"pong":{"interval":80,"frames":["▐⠂ ▌","▐⠈ ▌","▐ ⠂ ▌","▐ ⠠ ▌","▐ ⡀ ▌","▐ ⠠ ▌","▐ ⠂ ▌","▐ ⠈ ▌","▐ ⠂ ▌","▐ ⠠ ▌","▐ ⡀ ▌","▐ ⠠ ▌","▐ ⠂ ▌","▐ ⠈ ▌","▐ ⠂▌","▐ ⠠▌","▐ ⡀▌","▐ ⠠ ▌","▐ ⠂ ▌","▐ ⠈ ▌","▐ ⠂ ▌","▐ ⠠ ▌","▐ ⡀ ▌","▐ ⠠ ▌","▐ ⠂ ▌","▐ ⠈ ▌","▐ ⠂ ▌","▐ ⠠ ▌","▐ ⡀ ▌","▐⠠ ▌"]},"shark":{"interval":120,"frames":["▐|\\\\____________▌","▐_|\\\\___________▌","▐__|\\\\__________▌","▐___|\\\\_________▌","▐____|\\\\________▌","▐_____|\\\\_______▌","▐______|\\\\______▌","▐_______|\\\\_____▌","▐________|\\\\____▌","▐_________|\\\\___▌","▐__________|\\\\__▌","▐___________|\\\\_▌","▐____________|\\\\▌","▐____________/|▌","▐___________/|_▌","▐__________/|__▌","▐_________/|___▌","▐________/|____▌","▐_______/|_____▌","▐______/|______▌","▐_____/|_______▌","▐____/|________▌","▐___/|_________▌","▐__/|__________▌","▐_/|___________▌","▐/|____________▌"]},"dqpb":{"interval":100,"frames":["d","q","p","b"]},"weather":{"interval":100,"frames":["☀️ ","☀️ ","☀️ ","🌤 ","⛅️ ","🌥 ","☁️ ","🌧 ","🌨 ","🌧 ","🌨 ","🌧 ","🌨 ","⛈ ","🌨 ","🌧 ","🌨 ","☁️ ","🌥 ","⛅️ ","🌤 ","☀️ ","☀️ "]},"christmas":{"interval":400,"frames":["🌲","🎄"]},"grenade":{"interval":80,"frames":["، ","′ "," ´ "," ‾ "," ⸌"," ⸊"," |"," ⁎"," ⁕"," ෴ "," ⁓"," "," "," "]},"point":{"interval":125,"frames":["∙∙∙","●∙∙","∙●∙","∙∙●","∙∙∙"]},"layer":{"interval":150,"frames":["-","=","≡"]},"betaWave":{"interval":80,"frames":["ρββββββ","βρβββββ","ββρββββ","βββρβββ","ββββρββ","βββββρβ","ββββββρ"]}}')},306:e=>{"use strict";e.exports=JSON.parse('{"name":"create-react-native-app","//":"crna","version":"3.8.0","main":"build","description":"Create React Native apps with no build configuration.","license":"BSD-3-Clause","keywords":["react-native","react"],"homepage":"https://github.com/expo/create-react-native-app","repository":{"type":"git","url":"https://github.com/expo/create-react-native-app.git"},"author":"Expo <support@expo.io>","contributors":["Evan Bacon <bacon@expo.io> (https://github.com/evanbacon)"],"files":["build"],"bin":{"create-react-native-app":"./build/index.js"},"scripts":{"prepublishOnly":"yarn run clean && yarn run build","lint":"eslint .","test":"jest","watch":"yarn run build:dev -w","build:dev":"ncc build ./src/index.ts -o build/","build":"ncc build ./src/index.ts -o build/ --minify --no-cache --no-source-map-register","clean":"rimraf ./build/"},"husky":{"hooks":{"pre-commit":"lint-staged"}},"lint-staged":{"*.{js,ts}":["eslint --fix","prettier --write","git add"]},"devDependencies":{"@babel/core":"^7.9.6","@babel/preset-env":"^7.9.6","@expo/babel-preset-cli":"0.2.8","@expo/json-file":"^8.2.21","@expo/package-manager":"^0.0.28","@expo/spawn-async":"^1.5.0","@types/fs-extra":"^8.1.0","@types/getenv":"^1.0.0","@types/node":"^12.6.8","@types/prompts":"2.0.8","@types/tar":"4.0.3","@vercel/ncc":"^0.27.0","babel-jest":"^26.0.1","chalk":"2.4.2","commander":"2.20.0","eslint":"^6.6.0","eslint-config-universe":"^2.1.0","execa":"^4.0.1","fs-extra":"^9.0.0","getenv":"^1.0.0","got":"^11.1.3","husky":"^1.1.3","jest":"^26.0.1","lint-staged":"^8.0.4","minipass":"^3.1.1","ora":"^4.0.3","prettier":"^1.19.0","prompts":"2.3.2","tar":"^6.0.1","terminal-link":"^2.1.1","typescript":"3.7.3","update-check":"1.5.4"}}')},2357:e=>{"use strict";e.exports=require("assert")},4293:e=>{"use strict";e.exports=require("buffer")},3129:e=>{"use strict";e.exports=require("child_process")},7619:e=>{"use strict";e.exports=require("constants")},6417:e=>{"use strict";e.exports=require("crypto")},1819:e=>{"use strict";e.exports=require("dns")},8614:e=>{"use strict";e.exports=require("events")},5747:e=>{"use strict";e.exports=require("fs")},4363:e=>{"use strict";e.exports=require("http")},7565:e=>{"use strict";e.exports=require("http2")},7211:e=>{"use strict";e.exports=require("https")},1631:e=>{"use strict";e.exports=require("net")},2087:e=>{"use strict";e.exports=require("os")},5622:e=>{"use strict";e.exports=require("path")},1058:e=>{"use strict";e.exports=require("readline")},2413:e=>{"use strict";e.exports=require("stream")},4304:e=>{"use strict";e.exports=require("string_decoder")},4016:e=>{"use strict";e.exports=require("tls")},3867:e=>{"use strict";e.exports=require("tty")},8835:e=>{"use strict";e.exports=require("url")},1669:e=>{"use strict";e.exports=require("util")},5013:e=>{"use strict";e.exports=require("worker_threads")},1903:e=>{"use strict";e.exports=require("zlib")}};var t={};function __nccwpck_require__(r){if(t[r]){return t[r].exports}var n=t[r]={id:r,loaded:false,exports:{}};var i=true;try{e[r].call(n.exports,n,n.exports,__nccwpck_require__);i=false}finally{if(i)delete t[r]}n.loaded=true;return n.exports}(()=>{__nccwpck_require__.nmd=(e=>{e.paths=[];if(!e.children)e.children=[];return e})})();__nccwpck_require__.ab=__dirname+"/";return __nccwpck_require__(6144)})();
\No newline at end of file