From 0e1feea77e5f25bfb107b0d45221a095c5ba4bf0 Mon Sep 17 00:00:00 2001 From: Federico Grandi Date: Thu, 20 Jan 2022 13:18:16 +0100 Subject: [PATCH] feat: add `commit_long_sha` output (#349) --- README.md | 3 ++- action.yml | 4 +++- lib/index.js | 2 +- src/io.ts | 2 ++ src/main.ts | 27 +++++++++++++++------------ 5 files changed, 23 insertions(+), 15 deletions(-) diff --git a/README.md b/README.md index 5d0408238..51e1f688c 100644 --- a/README.md +++ b/README.md @@ -154,7 +154,8 @@ If you're getting this error and you're using `actions/checkout@v1`, try upgradi The action provides these outputs: - `committed`: whether the action has created a commit (`'true'` or `'false'`) -- `commit_sha`: the short 7-digit sha of the commit that has just been created +- `commit_long_sha`: the full SHA of the commit that has just been created +- `commit_sha`: the short 7-character SHA of the commit that has just been created - `pushed`: whether the action has pushed to the remote (`'true'` or `'false'`) - `tagged`: whether the action has created a tag (`'true'` or `'false'`) diff --git a/action.yml b/action.yml index 01dfa63cc..913c66a1e 100644 --- a/action.yml +++ b/action.yml @@ -62,8 +62,10 @@ inputs: outputs: committed: description: Whether the action has created a commit. + commit_long_sha: + description: The complete SHA of the commit that has been created. commit_sha: - description: The SHA of the commit that has been created. + description: The short SHA of the commit that has been created. pushed: description: Whether the action has pushed to the remote. tagged: diff --git a/lib/index.js b/lib/index.js index b8274486f..3158b8317 100644 --- a/lib/index.js +++ b/lib/index.js @@ -4,4 +4,4 @@ * * Copyright (c) 2014-2017, Jon Schlinkert. * Released under the MIT License. - */function isObject(e){return Object.prototype.toString.call(e)==="[object Object]"}function isPlainObject(e){var t,r;if(isObject(e)===false)return false;t=e.constructor;if(t===undefined)return true;r=t.prototype;if(isObject(r)===false)return false;if(r.hasOwnProperty("isPrototypeOf")===false){return false}return true}t.isPlainObject=isPlainObject},1554:e=>{"use strict";var t=e.exports=function(e){return e!==null&&typeof e==="object"&&typeof e.pipe==="function"};t.writable=function(e){return t(e)&&e.writable!==false&&typeof e._write==="function"&&typeof e._writableState==="object"};t.readable=function(e){return t(e)&&e.readable!==false&&typeof e._read==="function"&&typeof e._readableState==="object"};t.duplex=function(e){return t.writable(e)&&t.readable(e)};t.transform=function(e){return t.duplex(e)&&typeof e._transform==="function"&&typeof e._transformState==="object"}},7126:(e,t,r)=>{var n=r(7147);var s;if(process.platform==="win32"||global.TESTING_WINDOWS){s=r(2001)}else{s=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)}}))}))}s(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 s.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(7147);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 s=e.gid;var o=t.uid!==undefined?t.uid:process.getuid&&process.getuid();var i=t.gid!==undefined?t.gid:process.getgid&&process.getgid();var a=parseInt("100",8);var c=parseInt("010",8);var u=parseInt("001",8);var l=a|c;var p=r&u||r&c&&s===i||r&a&&n===o||r&l&&o===0;return p}},2001:(e,t,r)=>{e.exports=isexe;isexe.sync=sync;var n=r(7147);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{"use strict";var n=r(1161);var s=r(8866);function renamed(e,t){return function(){throw new Error("Function yaml."+e+" is removed in js-yaml 4. "+"Use yaml."+t+" instead, which is now safe by default.")}}e.exports.Type=r(6073);e.exports.Schema=r(1082);e.exports.FAILSAFE_SCHEMA=r(8562);e.exports.JSON_SCHEMA=r(1035);e.exports.CORE_SCHEMA=r(2011);e.exports.DEFAULT_SCHEMA=r(8759);e.exports.load=n.load;e.exports.loadAll=n.loadAll;e.exports.dump=s.dump;e.exports.YAMLException=r(8179);e.exports.types={binary:r(7900),float:r(2705),map:r(6150),null:r(721),pairs:r(6860),set:r(9548),timestamp:r(9212),bool:r(4993),int:r(1615),merge:r(6104),omap:r(9046),seq:r(7283),str:r(3619)};e.exports.safeLoad=renamed("safeLoad","load");e.exports.safeLoadAll=renamed("safeLoadAll","loadAll");e.exports.safeDump=renamed("safeDump","dump")},6829:e=>{"use strict";function isNothing(e){return typeof e==="undefined"||e===null}function isObject(e){return typeof e==="object"&&e!==null}function toArray(e){if(Array.isArray(e))return e;else if(isNothing(e))return[];return[e]}function extend(e,t){var r,n,s,o;if(t){o=Object.keys(t);for(r=0,n=o.length;r{"use strict";var n=r(6829);var s=r(8179);var o=r(8759);var i=Object.prototype.toString;var a=Object.prototype.hasOwnProperty;var c=65279;var u=9;var l=10;var p=13;var d=32;var h=33;var m=34;var g=35;var y=37;var b=38;var v=39;var w=42;var T=44;var _=45;var k=58;var O=61;var S=62;var C=63;var P=64;var R=91;var A=93;var x=96;var G=123;var j=124;var I=125;var L={};L[0]="\\0";L[7]="\\a";L[8]="\\b";L[9]="\\t";L[10]="\\n";L[11]="\\v";L[12]="\\f";L[13]="\\r";L[27]="\\e";L[34]='\\"';L[92]="\\\\";L[133]="\\N";L[160]="\\_";L[8232]="\\L";L[8233]="\\P";var D=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"];var M=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function compileStyleMap(e,t){var r,n,s,o,i,c,u;if(t===null)return{};r={};n=Object.keys(t);for(s=0,o=n.length;s=55296&&r<=56319&&t+1=56320&&n<=57343){return(r-55296)*1024+n-56320+65536}}return r}function needIndentIndicator(e){var t=/^\n* /;return t.test(e)}var B=1,q=2,$=3,H=4,W=5;function chooseScalarStyle(e,t,r,n,s,o,i,a){var c;var u=0;var p=null;var d=false;var h=false;var m=n!==-1;var g=-1;var y=isPlainSafeFirst(codePointAt(e,0))&&isPlainSafeLast(codePointAt(e,e.length-1));if(t||i){for(c=0;c=65536?c+=2:c++){u=codePointAt(e,c);if(!isPrintable(u)){return W}y=y&&isPlainSafe(u,p,a);p=u}}else{for(c=0;c=65536?c+=2:c++){u=codePointAt(e,c);if(u===l){d=true;if(m){h=h||c-g-1>n&&e[g+1]!==" ";g=c}}else if(!isPrintable(u)){return W}y=y&&isPlainSafe(u,p,a);p=u}h=h||m&&(c-g-1>n&&e[g+1]!==" ")}if(!d&&!h){if(y&&!i&&!s(e)){return B}return o===U?W:q}if(r>9&&needIndentIndicator(e)){return W}if(!i){return h?H:$}return o===U?W:q}function writeScalar(e,t,r,n,o){e.dump=function(){if(t.length===0){return e.quotingType===U?'""':"''"}if(!e.noCompatMode){if(D.indexOf(t)!==-1||M.test(t)){return e.quotingType===U?'"'+t+'"':"'"+t+"'"}}var i=e.indent*Math.max(1,r);var a=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-i);var c=n||e.flowLevel>-1&&r>=e.flowLevel;function testAmbiguity(t){return testImplicitResolving(e,t)}switch(chooseScalarStyle(t,c,e.indent,a,testAmbiguity,e.quotingType,e.forceQuotes&&!n,o)){case B:return t;case q:return"'"+t.replace(/'/g,"''")+"'";case $:return"|"+blockHeader(t,e.indent)+dropEndingNewline(indentString(t,i));case H:return">"+blockHeader(t,e.indent)+dropEndingNewline(indentString(foldString(t,a),i));case W:return'"'+escapeString(t,a)+'"';default:throw new s("impossible error: invalid scalar style")}}()}function blockHeader(e,t){var r=needIndentIndicator(e)?String(t):"";var n=e[e.length-1]==="\n";var s=n&&(e[e.length-2]==="\n"||e==="\n");var o=s?"+":n?"":"-";return r+o+"\n"}function dropEndingNewline(e){return e[e.length-1]==="\n"?e.slice(0,-1):e}function foldString(e,t){var r=/(\n+)([^\n]*)/g;var n=function(){var n=e.indexOf("\n");n=n!==-1?n:e.length;r.lastIndex=n;return foldLine(e.slice(0,n),t)}();var s=e[0]==="\n"||e[0]===" ";var o;var i;while(i=r.exec(e)){var a=i[1],c=i[2];o=c[0]===" ";n+=a+(!s&&!o&&c!==""?"\n":"")+foldLine(c,t);s=o}return n}function foldLine(e,t){if(e===""||e[0]===" ")return e;var r=/ [^ ]/g;var n;var s=0,o,i=0,a=0;var c="";while(n=r.exec(e)){a=n.index;if(a-s>t){o=i>s?i:a;c+="\n"+e.slice(s,o);s=o+1}i=a}c+="\n";if(e.length-s>t&&i>s){c+=e.slice(s,i)+"\n"+e.slice(i+1)}else{c+=e.slice(s)}return c.slice(1)}function escapeString(e){var t="";var r=0;var n;for(var s=0;s=65536?s+=2:s++){r=codePointAt(e,s);n=L[r];if(!n&&isPrintable(r)){t+=e[s];if(r>=65536)t+=e[s+1]}else{t+=n||encodeHex(r)}}return t}function writeFlowSequence(e,t,r){var n="",s=e.tag,o,i,a;for(o=0,i=r.length;o1024)l+="? ";l+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" ");if(!writeNode(e,t,u,false,false)){continue}l+=e.dump;n+=l}e.tag=s;e.dump="{"+n+"}"}function writeBlockMapping(e,t,r,n){var o="",i=e.tag,a=Object.keys(r),c,u,p,d,h,m;if(e.sortKeys===true){a.sort()}else if(typeof e.sortKeys==="function"){a.sort(e.sortKeys)}else if(e.sortKeys){throw new s("sortKeys must be a boolean or a function")}for(c=0,u=a.length;c1024;if(h){if(e.dump&&l===e.dump.charCodeAt(0)){m+="?"}else{m+="? "}}m+=e.dump;if(h){m+=generateNextLine(e,t)}if(!writeNode(e,t+1,d,true,h)){continue}if(e.dump&&l===e.dump.charCodeAt(0)){m+=":"}else{m+=": "}m+=e.dump;o+=m}e.tag=i;e.dump=o||"{}"}function detectType(e,t,r){var n,o,c,u,l,p;o=r?e.explicitTypes:e.implicitTypes;for(c=0,u=o.length;c tag resolver accepts not "'+p+'" style')}e.dump=n}return true}}return false}function writeNode(e,t,r,n,o,a,c){e.tag=null;e.dump=r;if(!detectType(e,r,false)){detectType(e,r,true)}var u=i.call(e.dump);var l=n;var p;if(n){n=e.flowLevel<0||e.flowLevel>t}var d=u==="[object Object]"||u==="[object Array]",h,m;if(d){h=e.duplicates.indexOf(r);m=h!==-1}if(e.tag!==null&&e.tag!=="?"||m||e.indent!==2&&t>0){o=false}if(m&&e.usedDuplicates[h]){e.dump="*ref_"+h}else{if(d&&m&&!e.usedDuplicates[h]){e.usedDuplicates[h]=true}if(u==="[object Object]"){if(n&&Object.keys(e.dump).length!==0){writeBlockMapping(e,t,e.dump,o);if(m){e.dump="&ref_"+h+e.dump}}else{writeFlowMapping(e,t,e.dump);if(m){e.dump="&ref_"+h+" "+e.dump}}}else if(u==="[object Array]"){if(n&&e.dump.length!==0){if(e.noArrayIndent&&!c&&t>0){writeBlockSequence(e,t-1,e.dump,o)}else{writeBlockSequence(e,t,e.dump,o)}if(m){e.dump="&ref_"+h+e.dump}}else{writeFlowSequence(e,t,e.dump);if(m){e.dump="&ref_"+h+" "+e.dump}}}else if(u==="[object String]"){if(e.tag!=="?"){writeScalar(e,e.dump,t,a,l)}}else if(u==="[object Undefined]"){return false}else{if(e.skipInvalid)return false;throw new s("unacceptable kind of an object to dump "+u)}if(e.tag!==null&&e.tag!=="?"){p=encodeURI(e.tag[0]==="!"?e.tag.slice(1):e.tag).replace(/!/g,"%21");if(e.tag[0]==="!"){p="!"+p}else if(p.slice(0,18)==="tag:yaml.org,2002:"){p="!!"+p.slice(18)}else{p="!<"+p+">"}e.dump=p+" "+e.dump}}return true}function getDuplicateReferences(e,t){var r=[],n=[],s,o;inspectNode(e,r,n);for(s=0,o=n.length;s{"use strict";function formatError(e,t){var r="",n=e.reason||"(unknown reason)";if(!e.mark)return n;if(e.mark.name){r+='in "'+e.mark.name+'" '}r+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")";if(!t&&e.mark.snippet){r+="\n\n"+e.mark.snippet}return n+" "+r}function YAMLException(e,t){Error.call(this);this.name="YAMLException";this.reason=e;this.mark=t;this.message=formatError(this,false);if(Error.captureStackTrace){Error.captureStackTrace(this,this.constructor)}else{this.stack=(new Error).stack||""}}YAMLException.prototype=Object.create(Error.prototype);YAMLException.prototype.constructor=YAMLException;YAMLException.prototype.toString=function toString(e){return this.name+": "+formatError(this,e)};e.exports=YAMLException},1161:(e,t,r)=>{"use strict";var n=r(6829);var s=r(8179);var o=r(6975);var i=r(8759);var a=Object.prototype.hasOwnProperty;var c=1;var u=2;var l=3;var p=4;var d=1;var h=2;var m=3;var g=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/;var y=/[\x85\u2028\u2029]/;var b=/[,\[\]\{\}]/;var v=/^(?:!|!!|![a-z\-]+!)$/i;var w=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function _class(e){return Object.prototype.toString.call(e)}function is_EOL(e){return e===10||e===13}function is_WHITE_SPACE(e){return e===9||e===32}function is_WS_OR_EOL(e){return e===9||e===32||e===10||e===13}function is_FLOW_INDICATOR(e){return e===44||e===91||e===93||e===123||e===125}function fromHexCode(e){var t;if(48<=e&&e<=57){return e-48}t=e|32;if(97<=t&&t<=102){return t-97+10}return-1}function escapedHexLen(e){if(e===120){return 2}if(e===117){return 4}if(e===85){return 8}return 0}function fromDecimalCode(e){if(48<=e&&e<=57){return e-48}return-1}function simpleEscapeSequence(e){return e===48?"\0":e===97?"":e===98?"\b":e===116?"\t":e===9?"\t":e===110?"\n":e===118?"\v":e===102?"\f":e===114?"\r":e===101?"":e===32?" ":e===34?'"':e===47?"/":e===92?"\\":e===78?"…":e===95?" ":e===76?"\u2028":e===80?"\u2029":""}function charFromCodepoint(e){if(e<=65535){return String.fromCharCode(e)}return String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}var T=new Array(256);var _=new Array(256);for(var k=0;k<256;k++){T[k]=simpleEscapeSequence(k)?1:0;_[k]=simpleEscapeSequence(k)}function State(e,t){this.input=e;this.filename=t["filename"]||null;this.schema=t["schema"]||i;this.onWarning=t["onWarning"]||null;this.legacy=t["legacy"]||false;this.json=t["json"]||false;this.listener=t["listener"]||null;this.implicitTypes=this.schema.compiledImplicit;this.typeMap=this.schema.compiledTypeMap;this.length=e.length;this.position=0;this.line=0;this.lineStart=0;this.lineIndent=0;this.firstTabInLine=-1;this.documents=[]}function generateError(e,t){var r={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};r.snippet=o(r);return new s(t,r)}function throwError(e,t){throw generateError(e,t)}function throwWarning(e,t){if(e.onWarning){e.onWarning.call(null,generateError(e,t))}}var O={YAML:function handleYamlDirective(e,t,r){var n,s,o;if(e.version!==null){throwError(e,"duplication of %YAML directive")}if(r.length!==1){throwError(e,"YAML directive accepts exactly one argument")}n=/^([0-9]+)\.([0-9]+)$/.exec(r[0]);if(n===null){throwError(e,"ill-formed argument of the YAML directive")}s=parseInt(n[1],10);o=parseInt(n[2],10);if(s!==1){throwError(e,"unacceptable YAML version of the document")}e.version=r[0];e.checkLineBreaks=o<2;if(o!==1&&o!==2){throwWarning(e,"unsupported YAML version of the document")}},TAG:function handleTagDirective(e,t,r){var n,s;if(r.length!==2){throwError(e,"TAG directive accepts exactly two arguments")}n=r[0];s=r[1];if(!v.test(n)){throwError(e,"ill-formed tag handle (first argument) of the TAG directive")}if(a.call(e.tagMap,n)){throwError(e,'there is a previously declared suffix for "'+n+'" tag handle')}if(!w.test(s)){throwError(e,"ill-formed tag prefix (second argument) of the TAG directive")}try{s=decodeURIComponent(s)}catch(t){throwError(e,"tag prefix is malformed: "+s)}e.tagMap[n]=s}};function captureSegment(e,t,r,n){var s,o,i,a;if(t1){e.result+=n.repeat("\n",t-1)}}function readPlainScalar(e,t,r){var n,s,o,i,a,c,u,l,p=e.kind,d=e.result,h;h=e.input.charCodeAt(e.position);if(is_WS_OR_EOL(h)||is_FLOW_INDICATOR(h)||h===35||h===38||h===42||h===33||h===124||h===62||h===39||h===34||h===37||h===64||h===96){return false}if(h===63||h===45){s=e.input.charCodeAt(e.position+1);if(is_WS_OR_EOL(s)||r&&is_FLOW_INDICATOR(s)){return false}}e.kind="scalar";e.result="";o=i=e.position;a=false;while(h!==0){if(h===58){s=e.input.charCodeAt(e.position+1);if(is_WS_OR_EOL(s)||r&&is_FLOW_INDICATOR(s)){break}}else if(h===35){n=e.input.charCodeAt(e.position-1);if(is_WS_OR_EOL(n)){break}}else if(e.position===e.lineStart&&testDocumentSeparator(e)||r&&is_FLOW_INDICATOR(h)){break}else if(is_EOL(h)){c=e.line;u=e.lineStart;l=e.lineIndent;skipSeparationSpace(e,false,-1);if(e.lineIndent>=t){a=true;h=e.input.charCodeAt(e.position);continue}else{e.position=i;e.line=c;e.lineStart=u;e.lineIndent=l;break}}if(a){captureSegment(e,o,i,false);writeFoldedLines(e,e.line-c);o=i=e.position;a=false}if(!is_WHITE_SPACE(h)){i=e.position+1}h=e.input.charCodeAt(++e.position)}captureSegment(e,o,i,false);if(e.result){return true}e.kind=p;e.result=d;return false}function readSingleQuotedScalar(e,t){var r,n,s;r=e.input.charCodeAt(e.position);if(r!==39){return false}e.kind="scalar";e.result="";e.position++;n=s=e.position;while((r=e.input.charCodeAt(e.position))!==0){if(r===39){captureSegment(e,n,e.position,true);r=e.input.charCodeAt(++e.position);if(r===39){n=e.position;e.position++;s=e.position}else{return true}}else if(is_EOL(r)){captureSegment(e,n,s,true);writeFoldedLines(e,skipSeparationSpace(e,false,t));n=s=e.position}else if(e.position===e.lineStart&&testDocumentSeparator(e)){throwError(e,"unexpected end of the document within a single quoted scalar")}else{e.position++;s=e.position}}throwError(e,"unexpected end of the stream within a single quoted scalar")}function readDoubleQuotedScalar(e,t){var r,n,s,o,i,a;a=e.input.charCodeAt(e.position);if(a!==34){return false}e.kind="scalar";e.result="";e.position++;r=n=e.position;while((a=e.input.charCodeAt(e.position))!==0){if(a===34){captureSegment(e,r,e.position,true);e.position++;return true}else if(a===92){captureSegment(e,r,e.position,true);a=e.input.charCodeAt(++e.position);if(is_EOL(a)){skipSeparationSpace(e,false,t)}else if(a<256&&T[a]){e.result+=_[a];e.position++}else if((i=escapedHexLen(a))>0){s=i;o=0;for(;s>0;s--){a=e.input.charCodeAt(++e.position);if((i=fromHexCode(a))>=0){o=(o<<4)+i}else{throwError(e,"expected hexadecimal character")}}e.result+=charFromCodepoint(o);e.position++}else{throwError(e,"unknown escape sequence")}r=n=e.position}else if(is_EOL(a)){captureSegment(e,r,n,true);writeFoldedLines(e,skipSeparationSpace(e,false,t));r=n=e.position}else if(e.position===e.lineStart&&testDocumentSeparator(e)){throwError(e,"unexpected end of the document within a double quoted scalar")}else{e.position++;n=e.position}}throwError(e,"unexpected end of the stream within a double quoted scalar")}function readFlowCollection(e,t){var r=true,n,s,o,i=e.tag,a,u=e.anchor,l,p,d,h,m,g=Object.create(null),y,b,v,w;w=e.input.charCodeAt(e.position);if(w===91){p=93;m=false;a=[]}else if(w===123){p=125;m=true;a={}}else{return false}if(e.anchor!==null){e.anchorMap[e.anchor]=a}w=e.input.charCodeAt(++e.position);while(w!==0){skipSeparationSpace(e,true,t);w=e.input.charCodeAt(e.position);if(w===p){e.position++;e.tag=i;e.anchor=u;e.kind=m?"mapping":"sequence";e.result=a;return true}else if(!r){throwError(e,"missed comma between flow collection entries")}else if(w===44){throwError(e,"expected the node content, but found ','")}b=y=v=null;d=h=false;if(w===63){l=e.input.charCodeAt(e.position+1);if(is_WS_OR_EOL(l)){d=h=true;e.position++;skipSeparationSpace(e,true,t)}}n=e.line;s=e.lineStart;o=e.position;composeNode(e,t,c,false,true);b=e.tag;y=e.result;skipSeparationSpace(e,true,t);w=e.input.charCodeAt(e.position);if((h||e.line===n)&&w===58){d=true;w=e.input.charCodeAt(++e.position);skipSeparationSpace(e,true,t);composeNode(e,t,c,false,true);v=e.result}if(m){storeMappingPair(e,a,g,b,y,v,n,s,o)}else if(d){a.push(storeMappingPair(e,null,g,b,y,v,n,s,o))}else{a.push(y)}skipSeparationSpace(e,true,t);w=e.input.charCodeAt(e.position);if(w===44){r=true;w=e.input.charCodeAt(++e.position)}else{r=false}}throwError(e,"unexpected end of the stream within a flow collection")}function readBlockScalar(e,t){var r,s,o=d,i=false,a=false,c=t,u=0,l=false,p,g;g=e.input.charCodeAt(e.position);if(g===124){s=false}else if(g===62){s=true}else{return false}e.kind="scalar";e.result="";while(g!==0){g=e.input.charCodeAt(++e.position);if(g===43||g===45){if(d===o){o=g===43?m:h}else{throwError(e,"repeat of a chomping mode identifier")}}else if((p=fromDecimalCode(g))>=0){if(p===0){throwError(e,"bad explicit indentation width of a block scalar; it cannot be less than one")}else if(!a){c=t+p-1;a=true}else{throwError(e,"repeat of an indentation width identifier")}}else{break}}if(is_WHITE_SPACE(g)){do{g=e.input.charCodeAt(++e.position)}while(is_WHITE_SPACE(g));if(g===35){do{g=e.input.charCodeAt(++e.position)}while(!is_EOL(g)&&g!==0)}}while(g!==0){readLineBreak(e);e.lineIndent=0;g=e.input.charCodeAt(e.position);while((!a||e.lineIndentc){c=e.lineIndent}if(is_EOL(g)){u++;continue}if(e.lineIndentt)&&c!==0){throwError(e,"bad indentation of a sequence entry")}else if(e.lineIndentt){if(v){i=e.line;a=e.lineStart;c=e.position}if(composeNode(e,t,p,true,s)){if(v){y=e.result}else{b=e.result}}if(!v){storeMappingPair(e,h,m,g,y,b,i,a,c);g=y=b=null}skipSeparationSpace(e,true,-1);T=e.input.charCodeAt(e.position)}if((e.line===o||e.lineIndent>t)&&T!==0){throwError(e,"bad indentation of a mapping entry")}else if(e.lineIndentt){h=1}else if(e.lineIndent===t){h=0}else if(e.lineIndentt){h=1}else if(e.lineIndent===t){h=0}else if(e.lineIndent tag; it should be "scalar", not "'+e.kind+'"')}for(y=0,b=e.implicitTypes.length;y")}if(e.result!==null&&w.kind!==e.kind){throwError(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+w.kind+'", not "'+e.kind+'"')}if(!w.resolve(e.result,e.tag)){throwError(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}else{e.result=w.construct(e.result,e.tag);if(e.anchor!==null){e.anchorMap[e.anchor]=e.result}}}if(e.listener!==null){e.listener("close",e)}return e.tag!==null||e.anchor!==null||g}function readDocument(e){var t=e.position,r,n,s,o=false,i;e.version=null;e.checkLineBreaks=e.legacy;e.tagMap=Object.create(null);e.anchorMap=Object.create(null);while((i=e.input.charCodeAt(e.position))!==0){skipSeparationSpace(e,true,-1);i=e.input.charCodeAt(e.position);if(e.lineIndent>0||i!==37){break}o=true;i=e.input.charCodeAt(++e.position);r=e.position;while(i!==0&&!is_WS_OR_EOL(i)){i=e.input.charCodeAt(++e.position)}n=e.input.slice(r,e.position);s=[];if(n.length<1){throwError(e,"directive name must not be less than one character in length")}while(i!==0){while(is_WHITE_SPACE(i)){i=e.input.charCodeAt(++e.position)}if(i===35){do{i=e.input.charCodeAt(++e.position)}while(i!==0&&!is_EOL(i));break}if(is_EOL(i))break;r=e.position;while(i!==0&&!is_WS_OR_EOL(i)){i=e.input.charCodeAt(++e.position)}s.push(e.input.slice(r,e.position))}if(i!==0)readLineBreak(e);if(a.call(O,n)){O[n](e,n,s)}else{throwWarning(e,'unknown document directive "'+n+'"')}}skipSeparationSpace(e,true,-1);if(e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45){e.position+=3;skipSeparationSpace(e,true,-1)}else if(o){throwError(e,"directives end mark is expected")}composeNode(e,e.lineIndent-1,p,false,true);skipSeparationSpace(e,true,-1);if(e.checkLineBreaks&&y.test(e.input.slice(t,e.position))){throwWarning(e,"non-ASCII line breaks are interpreted as content")}e.documents.push(e.result);if(e.position===e.lineStart&&testDocumentSeparator(e)){if(e.input.charCodeAt(e.position)===46){e.position+=3;skipSeparationSpace(e,true,-1)}return}if(e.position{"use strict";var n=r(8179);var s=r(6073);function compileList(e,t){var r=[];e[t].forEach((function(e){var t=r.length;r.forEach((function(r,n){if(r.tag===e.tag&&r.kind===e.kind&&r.multi===e.multi){t=n}}));r[t]=e}));return r}function compileMap(){var e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},t,r;function collectType(t){if(t.multi){e.multi[t.kind].push(t);e.multi["fallback"].push(t)}else{e[t.kind][t.tag]=e["fallback"][t.tag]=t}}for(t=0,r=arguments.length;t{"use strict";e.exports=r(1035)},8759:(e,t,r)=>{"use strict";e.exports=r(2011).extend({implicit:[r(9212),r(6104)],explicit:[r(7900),r(9046),r(6860),r(9548)]})},8562:(e,t,r)=>{"use strict";var n=r(1082);e.exports=new n({explicit:[r(3619),r(7283),r(6150)]})},1035:(e,t,r)=>{"use strict";e.exports=r(8562).extend({implicit:[r(721),r(4993),r(1615),r(2705)]})},6975:(e,t,r)=>{"use strict";var n=r(6829);function getLine(e,t,r,n,s){var o="";var i="";var a=Math.floor(s/2)-1;if(n-t>a){o=" ... ";t=n-a+o.length}if(r-n>a){i=" ...";r=n+a-i.length}return{str:o+e.slice(t,r).replace(/\t/g,"→")+i,pos:n-t+o.length}}function padStart(e,t){return n.repeat(" ",t-e.length)+e}function makeSnippet(e,t){t=Object.create(t||null);if(!e.buffer)return null;if(!t.maxLength)t.maxLength=79;if(typeof t.indent!=="number")t.indent=1;if(typeof t.linesBefore!=="number")t.linesBefore=3;if(typeof t.linesAfter!=="number")t.linesAfter=2;var r=/\r?\n|\r|\0/g;var s=[0];var o=[];var i;var a=-1;while(i=r.exec(e.buffer)){o.push(i.index);s.push(i.index+i[0].length);if(e.position<=i.index&&a<0){a=s.length-2}}if(a<0)a=s.length-1;var c="",u,l;var p=Math.min(e.line+t.linesAfter,o.length).toString().length;var d=t.maxLength-(t.indent+p+3);for(u=1;u<=t.linesBefore;u++){if(a-u<0)break;l=getLine(e.buffer,s[a-u],o[a-u],e.position-(s[a]-s[a-u]),d);c=n.repeat(" ",t.indent)+padStart((e.line-u+1).toString(),p)+" | "+l.str+"\n"+c}l=getLine(e.buffer,s[a],o[a],e.position,d);c+=n.repeat(" ",t.indent)+padStart((e.line+1).toString(),p)+" | "+l.str+"\n";c+=n.repeat("-",t.indent+p+3+l.pos)+"^"+"\n";for(u=1;u<=t.linesAfter;u++){if(a+u>=o.length)break;l=getLine(e.buffer,s[a+u],o[a+u],e.position-(s[a]-s[a+u]),d);c+=n.repeat(" ",t.indent)+padStart((e.line+u+1).toString(),p)+" | "+l.str+"\n"}return c.replace(/\n$/,"")}e.exports=makeSnippet},6073:(e,t,r)=>{"use strict";var n=r(8179);var s=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"];var o=["scalar","sequence","mapping"];function compileStyleAliases(e){var t={};if(e!==null){Object.keys(e).forEach((function(r){e[r].forEach((function(e){t[String(e)]=r}))}))}return t}function Type(e,t){t=t||{};Object.keys(t).forEach((function(t){if(s.indexOf(t)===-1){throw new n('Unknown option "'+t+'" is met in definition of "'+e+'" YAML type.')}}));this.options=t;this.tag=e;this.kind=t["kind"]||null;this.resolve=t["resolve"]||function(){return true};this.construct=t["construct"]||function(e){return e};this.instanceOf=t["instanceOf"]||null;this.predicate=t["predicate"]||null;this.represent=t["represent"]||null;this.representName=t["representName"]||null;this.defaultStyle=t["defaultStyle"]||null;this.multi=t["multi"]||false;this.styleAliases=compileStyleAliases(t["styleAliases"]||null);if(o.indexOf(this.kind)===-1){throw new n('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}}e.exports=Type},7900:(e,t,r)=>{"use strict";var n=r(6073);var s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";function resolveYamlBinary(e){if(e===null)return false;var t,r,n=0,o=e.length,i=s;for(r=0;r64)continue;if(t<0)return false;n+=6}return n%8===0}function constructYamlBinary(e){var t,r,n=e.replace(/[\r\n=]/g,""),o=n.length,i=s,a=0,c=[];for(t=0;t>16&255);c.push(a>>8&255);c.push(a&255)}a=a<<6|i.indexOf(n.charAt(t))}r=o%4*6;if(r===0){c.push(a>>16&255);c.push(a>>8&255);c.push(a&255)}else if(r===18){c.push(a>>10&255);c.push(a>>2&255)}else if(r===12){c.push(a>>4&255)}return new Uint8Array(c)}function representYamlBinary(e){var t="",r=0,n,o,i=e.length,a=s;for(n=0;n>18&63];t+=a[r>>12&63];t+=a[r>>6&63];t+=a[r&63]}r=(r<<8)+e[n]}o=i%3;if(o===0){t+=a[r>>18&63];t+=a[r>>12&63];t+=a[r>>6&63];t+=a[r&63]}else if(o===2){t+=a[r>>10&63];t+=a[r>>4&63];t+=a[r<<2&63];t+=a[64]}else if(o===1){t+=a[r>>2&63];t+=a[r<<4&63];t+=a[64];t+=a[64]}return t}function isBinary(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}e.exports=new n("tag:yaml.org,2002:binary",{kind:"scalar",resolve:resolveYamlBinary,construct:constructYamlBinary,predicate:isBinary,represent:representYamlBinary})},4993:(e,t,r)=>{"use strict";var n=r(6073);function resolveYamlBoolean(e){if(e===null)return false;var t=e.length;return t===4&&(e==="true"||e==="True"||e==="TRUE")||t===5&&(e==="false"||e==="False"||e==="FALSE")}function constructYamlBoolean(e){return e==="true"||e==="True"||e==="TRUE"}function isBoolean(e){return Object.prototype.toString.call(e)==="[object Boolean]"}e.exports=new n("tag:yaml.org,2002:bool",{kind:"scalar",resolve:resolveYamlBoolean,construct:constructYamlBoolean,predicate:isBoolean,represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"})},2705:(e,t,r)=>{"use strict";var n=r(6829);var s=r(6073);var o=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?"+"|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?"+"|[-+]?\\.(?:inf|Inf|INF)"+"|\\.(?:nan|NaN|NAN))$");function resolveYamlFloat(e){if(e===null)return false;if(!o.test(e)||e[e.length-1]==="_"){return false}return true}function constructYamlFloat(e){var t,r;t=e.replace(/_/g,"").toLowerCase();r=t[0]==="-"?-1:1;if("+-".indexOf(t[0])>=0){t=t.slice(1)}if(t===".inf"){return r===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY}else if(t===".nan"){return NaN}return r*parseFloat(t,10)}var i=/^[-+]?[0-9]+e/;function representYamlFloat(e,t){var r;if(isNaN(e)){switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}}else if(Number.POSITIVE_INFINITY===e){switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}}else if(Number.NEGATIVE_INFINITY===e){switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}}else if(n.isNegativeZero(e)){return"-0.0"}r=e.toString(10);return i.test(r)?r.replace("e",".e"):r}function isFloat(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||n.isNegativeZero(e))}e.exports=new s("tag:yaml.org,2002:float",{kind:"scalar",resolve:resolveYamlFloat,construct:constructYamlFloat,predicate:isFloat,represent:representYamlFloat,defaultStyle:"lowercase"})},1615:(e,t,r)=>{"use strict";var n=r(6829);var s=r(6073);function isHexCode(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function isOctCode(e){return 48<=e&&e<=55}function isDecCode(e){return 48<=e&&e<=57}function resolveYamlInteger(e){if(e===null)return false;var t=e.length,r=0,n=false,s;if(!t)return false;s=e[r];if(s==="-"||s==="+"){s=e[++r]}if(s==="0"){if(r+1===t)return true;s=e[++r];if(s==="b"){r++;for(;r=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}})},6150:(e,t,r)=>{"use strict";var n=r(6073);e.exports=new n("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return e!==null?e:{}}})},6104:(e,t,r)=>{"use strict";var n=r(6073);function resolveYamlMerge(e){return e==="<<"||e===null}e.exports=new n("tag:yaml.org,2002:merge",{kind:"scalar",resolve:resolveYamlMerge})},721:(e,t,r)=>{"use strict";var n=r(6073);function resolveYamlNull(e){if(e===null)return true;var t=e.length;return t===1&&e==="~"||t===4&&(e==="null"||e==="Null"||e==="NULL")}function constructYamlNull(){return null}function isNull(e){return e===null}e.exports=new n("tag:yaml.org,2002:null",{kind:"scalar",resolve:resolveYamlNull,construct:constructYamlNull,predicate:isNull,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"})},9046:(e,t,r)=>{"use strict";var n=r(6073);var s=Object.prototype.hasOwnProperty;var o=Object.prototype.toString;function resolveYamlOmap(e){if(e===null)return true;var t=[],r,n,i,a,c,u=e;for(r=0,n=u.length;r{"use strict";var n=r(6073);var s=Object.prototype.toString;function resolveYamlPairs(e){if(e===null)return true;var t,r,n,o,i,a=e;i=new Array(a.length);for(t=0,r=a.length;t{"use strict";var n=r(6073);e.exports=new n("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return e!==null?e:[]}})},9548:(e,t,r)=>{"use strict";var n=r(6073);var s=Object.prototype.hasOwnProperty;function resolveYamlSet(e){if(e===null)return true;var t,r=e;for(t in r){if(s.call(r,t)){if(r[t]!==null)return false}}return true}function constructYamlSet(e){return e!==null?e:{}}e.exports=new n("tag:yaml.org,2002:set",{kind:"mapping",resolve:resolveYamlSet,construct:constructYamlSet})},3619:(e,t,r)=>{"use strict";var n=r(6073);e.exports=new n("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return e!==null?e:""}})},9212:(e,t,r)=>{"use strict";var n=r(6073);var s=new RegExp("^([0-9][0-9][0-9][0-9])"+"-([0-9][0-9])"+"-([0-9][0-9])$");var o=new RegExp("^([0-9][0-9][0-9][0-9])"+"-([0-9][0-9]?)"+"-([0-9][0-9]?)"+"(?:[Tt]|[ \\t]+)"+"([0-9][0-9]?)"+":([0-9][0-9])"+":([0-9][0-9])"+"(?:\\.([0-9]*))?"+"(?:[ \\t]*(Z|([-+])([0-9][0-9]?)"+"(?::([0-9][0-9]))?))?$");function resolveYamlTimestamp(e){if(e===null)return false;if(s.exec(e)!==null)return true;if(o.exec(e)!==null)return true;return false}function constructYamlTimestamp(e){var t,r,n,i,a,c,u,l=0,p=null,d,h,m;t=s.exec(e);if(t===null)t=o.exec(e);if(t===null)throw new Error("Date resolve error");r=+t[1];n=+t[2]-1;i=+t[3];if(!t[4]){return new Date(Date.UTC(r,n,i))}a=+t[4];c=+t[5];u=+t[6];if(t[7]){l=t[7].slice(0,3);while(l.length<3){l+="0"}l=+l}if(t[9]){d=+t[10];h=+(t[11]||0);p=(d*60+h)*6e4;if(t[9]==="-")p=-p}m=new Date(Date.UTC(r,n,i,a,c,u,l));if(p)m.setTime(m.getTime()-p);return m}function representYamlTimestamp(e){return e.toISOString()}e.exports=new n("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:resolveYamlTimestamp,construct:constructYamlTimestamp,instanceOf:Date,represent:representYamlTimestamp})},5586:e=>{"use strict";e.exports=parseJson;function parseJson(e,t,r){r=r||20;try{return JSON.parse(e,t)}catch(t){if(typeof e!=="string"){const t=Array.isArray(e)&&e.length===0;const r="Cannot parse "+(t?"an empty array":String(e));throw new TypeError(r)}const n=t.message.match(/^Unexpected token.*position\s+(\d+)/i);const s=n?+n[1]:t.message.match(/^Unexpected end of JSON.*/i)?e.length-1:null;if(s!=null){const n=s<=r?0:s-r;const o=s+r>=e.length?e.length:s+r;t.message+=` while parsing near '${n===0?"":"..."}${e.slice(n,o)}${o===e.length?"":"..."}'`}else{t.message+=` while parsing '${e.slice(0,r*2)}'`}throw t}}},5978:(e,t,r)=>{"use strict";const n=r(1017);const s=r(7758);const o=r(8551);const i=r(6615);const a=r(3990);const parse=(e,t)=>i(o(e),n.relative(".",t));e.exports=e=>a(s.readFile)(e,"utf8").then((t=>parse(t,e)));e.exports.sync=e=>parse(s.readFileSync(e,"utf8"),e)},3990:e=>{"use strict";const processFn=(e,t)=>function(){const r=t.promiseModule;const n=new Array(arguments.length);for(let e=0;e{if(t.errorFirst){n.push((function(e,n){if(t.multiArgs){const t=new Array(arguments.length-1);for(let e=1;e{t=Object.assign({exclude:[/.+(Sync|Stream)$/],errorFirst:true,promiseModule:Promise},t);const filter=e=>{const match=t=>typeof t==="string"?e===t:t.test(e);return t.include?t.include.some(match):!t.exclude.some(match)};let r;if(typeof e==="function"){r=function(){if(t.excludeMain){return e.apply(this,arguments)}return processFn(e,t).apply(this,arguments)}}else{r=Object.create(Object.getPrototypeOf(e))}for(const n in e){const s=e[n];r[n]=typeof s==="function"&&filter(n)?processFn(s,t):s}return r}},7493:(e,t,r)=>{"use strict";const n=r(2037);const s=new Map([[20,["Big Sur","11"]],[19,["Catalina","10.15"]],[18,["Mojave","10.14"]],[17,["High Sierra","10.13"]],[16,["Sierra","10.12"]],[15,["El Capitan","10.11"]],[14,["Yosemite","10.10"]],[13,["Mavericks","10.9"]],[12,["Mountain Lion","10.8"]],[11,["Lion","10.7"]],[10,["Snow Leopard","10.6"]],[9,["Leopard","10.5"]],[8,["Tiger","10.4"]],[7,["Panther","10.3"]],[6,["Jaguar","10.2"]],[5,["Puma","10.1"]]]);const macosRelease=e=>{e=Number((e||n.release()).split(".")[0]);const[t,r]=s.get(e);return{name:t,version:r}};e.exports=macosRelease;e.exports["default"]=macosRelease},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 s=t["default"]||{};var o={_:[]};Object.keys(r.bools).forEach((function(e){setArg(e,s[e]===undefined?false:s[e])}));var i=[];if(e.indexOf("--")!==-1){i=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,s){if(s&&r.unknownFn&&!argDefined(e,s)){if(r.unknownFn(s)===false)return}var i=!r.strings[e]&&isNumber(t)?Number(t):t;setKey(o,e.split("."),i);(n[e]||[]).forEach((function(e){setKey(o,e.split("."),i)}))}function setKey(e,t,n){var s=e;for(var o=0;o{var t=1e3;var r=t*60;var n=r*60;var s=n*24;var o=s*7;var i=s*365.25;e.exports=function(e,t){t=t||{};var r=typeof e;if(r==="string"&&e.length>0){return parse(e)}else if(r==="number"&&isFinite(e)){return t.long?fmtLong(e):fmtShort(e)}throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function parse(e){e=String(e);if(e.length>100){return}var a=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(!a){return}var c=parseFloat(a[1]);var u=(a[2]||"ms").toLowerCase();switch(u){case"years":case"year":case"yrs":case"yr":case"y":return c*i;case"weeks":case"week":case"w":return c*o;case"days":case"day":case"d":return c*s;case"hours":case"hour":case"hrs":case"hr":case"h":return c*n;case"minutes":case"minute":case"mins":case"min":case"m":return c*r;case"seconds":case"second":case"secs":case"sec":case"s":return c*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return c;default:return undefined}}function fmtShort(e){var o=Math.abs(e);if(o>=s){return Math.round(e/s)+"d"}if(o>=n){return Math.round(e/n)+"h"}if(o>=r){return Math.round(e/r)+"m"}if(o>=t){return Math.round(e/t)+"s"}return e+"ms"}function fmtLong(e){var o=Math.abs(e);if(o>=s){return plural(e,o,s,"day")}if(o>=n){return plural(e,o,n,"hour")}if(o>=r){return plural(e,o,r,"minute")}if(o>=t){return plural(e,o,t,"second")}return e+" ms"}function plural(e,t,r,n){var s=t>=r*1.5;return Math.round(e/r)+" "+n+(s?"s":"")}},8560:e=>{"use strict";e.exports=function(e){try{return e()}catch(e){}}},467:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});function _interopDefault(e){return e&&typeof e==="object"&&"default"in e?e["default"]:e}var n=_interopDefault(r(2781));var s=_interopDefault(r(3685));var o=_interopDefault(r(7310));var i=_interopDefault(r(5687));var a=_interopDefault(r(9796));const c=n.Readable;const u=Symbol("buffer");const l=Symbol("type");class Blob{constructor(){this[l]="";const e=arguments[0];const t=arguments[1];const r=[];let n=0;if(e){const t=e;const s=Number(t.length);for(let e=0;e1&&arguments[1]!==undefined?arguments[1]:{},s=r.size;let o=s===undefined?0:s;var i=r.timeout;let a=i===undefined?0:i;if(e==null){e=null}else if(isURLSearchParams(e)){e=Buffer.from(e.toString())}else if(isBlob(e));else if(Buffer.isBuffer(e));else if(Object.prototype.toString.call(e)==="[object ArrayBuffer]"){e=Buffer.from(e)}else if(ArrayBuffer.isView(e)){e=Buffer.from(e.buffer,e.byteOffset,e.byteLength)}else if(e instanceof n);else{e=Buffer.from(String(e))}this[d]={body:e,disturbed:false,error:null};this.size=o;this.timeout=a;if(e instanceof n){e.on("error",(function(e){const r=e.name==="AbortError"?e:new FetchError(`Invalid response body while trying to fetch ${t.url}: ${e.message}`,"system",e);t[d].error=r}))}}Body.prototype={get body(){return this[d].body},get bodyUsed(){return this[d].disturbed},arrayBuffer(){return consumeBody.call(this).then((function(e){return e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength)}))},blob(){let e=this.headers&&this.headers.get("content-type")||"";return consumeBody.call(this).then((function(t){return Object.assign(new Blob([],{type:e.toLowerCase()}),{[u]:t})}))},json(){var e=this;return consumeBody.call(this).then((function(t){try{return JSON.parse(t.toString())}catch(t){return Body.Promise.reject(new FetchError(`invalid json response body at ${e.url} reason: ${t.message}`,"invalid-json"))}}))},text(){return consumeBody.call(this).then((function(e){return e.toString()}))},buffer(){return consumeBody.call(this)},textConverted(){var e=this;return consumeBody.call(this).then((function(t){return convertBody(t,e.headers)}))}};Object.defineProperties(Body.prototype,{body:{enumerable:true},bodyUsed:{enumerable:true},arrayBuffer:{enumerable:true},blob:{enumerable:true},json:{enumerable:true},text:{enumerable:true}});Body.mixIn=function(e){for(const t of Object.getOwnPropertyNames(Body.prototype)){if(!(t in e)){const r=Object.getOwnPropertyDescriptor(Body.prototype,t);Object.defineProperty(e,t,r)}}};function consumeBody(){var e=this;if(this[d].disturbed){return Body.Promise.reject(new TypeError(`body used already for: ${this.url}`))}this[d].disturbed=true;if(this[d].error){return Body.Promise.reject(this[d].error)}let t=this.body;if(t===null){return Body.Promise.resolve(Buffer.alloc(0))}if(isBlob(t)){t=t.stream()}if(Buffer.isBuffer(t)){return Body.Promise.resolve(t)}if(!(t instanceof n)){return Body.Promise.resolve(Buffer.alloc(0))}let r=[];let s=0;let o=false;return new Body.Promise((function(n,i){let a;if(e.timeout){a=setTimeout((function(){o=true;i(new FetchError(`Response timeout while trying to fetch ${e.url} (over ${e.timeout}ms)`,"body-timeout"))}),e.timeout)}t.on("error",(function(t){if(t.name==="AbortError"){o=true;i(t)}else{i(new FetchError(`Invalid response body while trying to fetch ${e.url}: ${t.message}`,"system",t))}}));t.on("data",(function(t){if(o||t===null){return}if(e.size&&s+t.length>e.size){o=true;i(new FetchError(`content size at ${e.url} over limit: ${e.size}`,"max-size"));return}s+=t.length;r.push(t)}));t.on("end",(function(){if(o){return}clearTimeout(a);try{n(Buffer.concat(r,s))}catch(t){i(new FetchError(`Could not create Buffer from response body for ${e.url}: ${t.message}`,"system",t))}}))}))}function convertBody(e,t){if(typeof p!=="function"){throw new Error("The package `encoding` must be installed to use the textConverted() function")}const r=t.get("content-type");let n="utf-8";let s,o;if(r){s=/charset=([^;]*)/i.exec(r)}o=e.slice(0,1024).toString();if(!s&&o){s=/0&&arguments[0]!==undefined?arguments[0]:undefined;this[y]=Object.create(null);if(e instanceof Headers){const t=e.raw();const r=Object.keys(t);for(const e of r){for(const r of t[e]){this.append(e,r)}}return}if(e==null);else if(typeof e==="object"){const t=e[Symbol.iterator];if(t!=null){if(typeof t!=="function"){throw new TypeError("Header pairs must be iterable")}const r=[];for(const t of e){if(typeof t!=="object"||typeof t[Symbol.iterator]!=="function"){throw new TypeError("Each header pair must be iterable")}r.push(Array.from(t))}for(const e of r){if(e.length!==2){throw new TypeError("Each header pair must be a name/value tuple")}this.append(e[0],e[1])}}else{for(const t of Object.keys(e)){const r=e[t];this.append(t,r)}}}else{throw new TypeError("Provided initializer must be an object")}}get(e){e=`${e}`;validateName(e);const t=find(this[y],e);if(t===undefined){return null}return this[y][t].join(", ")}forEach(e){let t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:undefined;let r=getHeaders(this);let n=0;while(n1&&arguments[1]!==undefined?arguments[1]:"key+value";const r=Object.keys(e[y]).sort();return r.map(t==="key"?function(e){return e.toLowerCase()}:t==="value"?function(t){return e[y][t].join(", ")}:function(t){return[t.toLowerCase(),e[y][t].join(", ")]})}const b=Symbol("internal");function createHeadersIterator(e,t){const r=Object.create(v);r[b]={target:e,kind:t,index:0};return r}const v=Object.setPrototypeOf({next(){if(!this||Object.getPrototypeOf(this)!==v){throw new TypeError("Value of `this` is not a HeadersIterator")}var e=this[b];const t=e.target,r=e.kind,n=e.index;const s=getHeaders(t,r);const o=s.length;if(n>=o){return{value:undefined,done:true}}this[b].index=n+1;return{value:s[n],done:false}}},Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]())));Object.defineProperty(v,Symbol.toStringTag,{value:"HeadersIterator",writable:false,enumerable:false,configurable:true});function exportNodeCompatibleHeaders(e){const t=Object.assign({__proto__:null},e[y]);const r=find(e[y],"Host");if(r!==undefined){t[r]=t[r][0]}return t}function createHeadersLenient(e){const t=new Headers;for(const r of Object.keys(e)){if(m.test(r)){continue}if(Array.isArray(e[r])){for(const n of e[r]){if(g.test(n)){continue}if(t[y][r]===undefined){t[y][r]=[n]}else{t[y][r].push(n)}}}else if(!g.test(e[r])){t[y][r]=[e[r]]}}return t}const w=Symbol("Response internals");const T=s.STATUS_CODES;class Response{constructor(){let e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:null;let t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};Body.call(this,e,t);const r=t.status||200;const n=new Headers(t.headers);if(e!=null&&!n.has("Content-Type")){const t=extractContentType(e);if(t){n.append("Content-Type",t)}}this[w]={url:t.url,status:r,statusText:t.statusText||T[r],headers:n,counter:t.counter}}get url(){return this[w].url||""}get status(){return this[w].status}get ok(){return this[w].status>=200&&this[w].status<300}get redirected(){return this[w].counter>0}get statusText(){return this[w].statusText}get headers(){return this[w].headers}clone(){return new Response(clone(this),{url:this.url,status:this.status,statusText:this.statusText,headers:this.headers,ok:this.ok,redirected:this.redirected})}}Body.mixIn(Response.prototype);Object.defineProperties(Response.prototype,{url:{enumerable:true},status:{enumerable:true},ok:{enumerable:true},redirected:{enumerable:true},statusText:{enumerable:true},headers:{enumerable:true},clone:{enumerable:true}});Object.defineProperty(Response.prototype,Symbol.toStringTag,{value:"Response",writable:false,enumerable:false,configurable:true});const _=Symbol("Request internals");const k=o.parse;const O=o.format;const S="destroy"in n.Readable.prototype;function isRequest(e){return typeof e==="object"&&typeof e[_]==="object"}function isAbortSignal(e){const t=e&&typeof e==="object"&&Object.getPrototypeOf(e);return!!(t&&t.constructor.name==="AbortSignal")}class Request{constructor(e){let t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};let r;if(!isRequest(e)){if(e&&e.href){r=k(e.href)}else{r=k(`${e}`)}e={}}else{r=k(e.url)}let n=t.method||e.method||"GET";n=n.toUpperCase();if((t.body!=null||isRequest(e)&&e.body!==null)&&(n==="GET"||n==="HEAD")){throw new TypeError("Request with GET/HEAD method cannot have body")}let s=t.body!=null?t.body:isRequest(e)&&e.body!==null?clone(e):null;Body.call(this,s,{timeout:t.timeout||e.timeout||0,size:t.size||e.size||0});const o=new Headers(t.headers||e.headers||{});if(s!=null&&!o.has("Content-Type")){const e=extractContentType(s);if(e){o.append("Content-Type",e)}}let i=isRequest(e)?e.signal:null;if("signal"in t)i=t.signal;if(i!=null&&!isAbortSignal(i)){throw new TypeError("Expected signal to be an instanceof AbortSignal")}this[_]={method:n,redirect:t.redirect||e.redirect||"follow",headers:o,parsedURL:r,signal:i};this.follow=t.follow!==undefined?t.follow:e.follow!==undefined?e.follow:20;this.compress=t.compress!==undefined?t.compress:e.compress!==undefined?e.compress:true;this.counter=t.counter||e.counter||0;this.agent=t.agent||e.agent}get method(){return this[_].method}get url(){return O(this[_].parsedURL)}get headers(){return this[_].headers}get redirect(){return this[_].redirect}get signal(){return this[_].signal}clone(){return new Request(this)}}Body.mixIn(Request.prototype);Object.defineProperty(Request.prototype,Symbol.toStringTag,{value:"Request",writable:false,enumerable:false,configurable:true});Object.defineProperties(Request.prototype,{method:{enumerable:true},url:{enumerable:true},headers:{enumerable:true},redirect:{enumerable:true},clone:{enumerable:true},signal:{enumerable:true}});function getNodeRequestOptions(e){const t=e[_].parsedURL;const r=new Headers(e[_].headers);if(!r.has("Accept")){r.set("Accept","*/*")}if(!t.protocol||!t.hostname){throw new TypeError("Only absolute URLs are supported")}if(!/^https?:$/.test(t.protocol)){throw new TypeError("Only HTTP(S) protocols are supported")}if(e.signal&&e.body instanceof n.Readable&&!S){throw new Error("Cancellation of streamed requests with AbortSignal is not supported in node < 8")}let s=null;if(e.body==null&&/^(POST|PUT)$/i.test(e.method)){s="0"}if(e.body!=null){const t=getTotalBytes(e);if(typeof t==="number"){s=String(t)}}if(s){r.set("Content-Length",s)}if(!r.has("User-Agent")){r.set("User-Agent","node-fetch/1.0 (+https://github.com/bitinn/node-fetch)")}if(e.compress&&!r.has("Accept-Encoding")){r.set("Accept-Encoding","gzip,deflate")}let o=e.agent;if(typeof o==="function"){o=o(t)}if(!r.has("Connection")&&!o){r.set("Connection","close")}return Object.assign({},t,{method:e.method,headers:exportNodeCompatibleHeaders(r),agent:o})}function AbortError(e){Error.call(this,e);this.type="aborted";this.message=e;Error.captureStackTrace(this,this.constructor)}AbortError.prototype=Object.create(Error.prototype);AbortError.prototype.constructor=AbortError;AbortError.prototype.name="AbortError";const C=n.PassThrough;const P=o.resolve;function fetch(e,t){if(!fetch.Promise){throw new Error("native promise missing, set fetch.Promise to your favorite alternative")}Body.Promise=fetch.Promise;return new fetch.Promise((function(r,o){const c=new Request(e,t);const u=getNodeRequestOptions(c);const l=(u.protocol==="https:"?i:s).request;const p=c.signal;let d=null;const h=function abort(){let e=new AbortError("The user aborted a request.");o(e);if(c.body&&c.body instanceof n.Readable){c.body.destroy(e)}if(!d||!d.body)return;d.body.emit("error",e)};if(p&&p.aborted){h();return}const m=function abortAndFinalize(){h();finalize()};const g=l(u);let y;if(p){p.addEventListener("abort",m)}function finalize(){g.abort();if(p)p.removeEventListener("abort",m);clearTimeout(y)}if(c.timeout){g.once("socket",(function(e){y=setTimeout((function(){o(new FetchError(`network timeout at: ${c.url}`,"request-timeout"));finalize()}),c.timeout)}))}g.on("error",(function(e){o(new FetchError(`request to ${c.url} failed, reason: ${e.message}`,"system",e));finalize()}));g.on("response",(function(e){clearTimeout(y);const t=createHeadersLenient(e.headers);if(fetch.isRedirect(e.statusCode)){const n=t.get("Location");const s=n===null?null:P(c.url,n);switch(c.redirect){case"error":o(new FetchError(`uri requested responds with a redirect, redirect mode is set to error: ${c.url}`,"no-redirect"));finalize();return;case"manual":if(s!==null){try{t.set("Location",s)}catch(e){o(e)}}break;case"follow":if(s===null){break}if(c.counter>=c.follow){o(new FetchError(`maximum redirect reached at: ${c.url}`,"max-redirect"));finalize();return}const n={headers:new Headers(c.headers),follow:c.follow,counter:c.counter+1,agent:c.agent,compress:c.compress,method:c.method,body:c.body,signal:c.signal,timeout:c.timeout,size:c.size};if(e.statusCode!==303&&c.body&&getTotalBytes(c)===null){o(new FetchError("Cannot follow redirect with body being a readable stream","unsupported-redirect"));finalize();return}if(e.statusCode===303||(e.statusCode===301||e.statusCode===302)&&c.method==="POST"){n.method="GET";n.body=undefined;n.headers.delete("content-length")}r(fetch(new Request(s,n)));finalize();return}}e.once("end",(function(){if(p)p.removeEventListener("abort",m)}));let n=e.pipe(new C);const s={url:c.url,status:e.statusCode,statusText:e.statusMessage,headers:t,size:c.size,timeout:c.timeout,counter:c.counter};const i=t.get("Content-Encoding");if(!c.compress||c.method==="HEAD"||i===null||e.statusCode===204||e.statusCode===304){d=new Response(n,s);r(d);return}const u={flush:a.Z_SYNC_FLUSH,finishFlush:a.Z_SYNC_FLUSH};if(i=="gzip"||i=="x-gzip"){n=n.pipe(a.createGunzip(u));d=new Response(n,s);r(d);return}if(i=="deflate"||i=="x-deflate"){const t=e.pipe(new C);t.once("data",(function(e){if((e[0]&15)===8){n=n.pipe(a.createInflate())}else{n=n.pipe(a.createInflateRaw())}d=new Response(n,s);r(d)}));return}if(i=="br"&&typeof a.createBrotliDecompress==="function"){n=n.pipe(a.createBrotliDecompress());d=new Response(n,s);r(d);return}d=new Response(n,s);r(d)}));writeToStream(g,c)}))}fetch.isRedirect=function(e){return e===301||e===302||e===303||e===307||e===308};fetch.Promise=global.Promise;e.exports=t=fetch;Object.defineProperty(t,"__esModule",{value:true});t["default"]=t;t.Headers=Headers;t.Request=Request;t.Response=Response;t.FetchError=FetchError},502:(e,t,r)=>{"use strict";const n=r(1017);const s=r(7278);e.exports=e=>{e=Object.assign({cwd:process.cwd(),path:process.env[s()]},e);let t;let r=n.resolve(e.cwd);const o=[];while(t!==r){o.push(n.join(r,"node_modules/.bin"));t=r;r=n.resolve(r,"..")}o.push(n.dirname(process.execPath));return o.concat(e.path).join(n.delimiter)};e.exports.env=t=>{t=Object.assign({env:process.env},t);const r=Object.assign({},t.env);const n=s({env:r});t.path=r[n];r[n]=e.exports(t);return r}},7278: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"}},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 f=function(){if(f.called)return f.value;f.called=true;return f.value=e.apply(this,arguments)};f.called=false;return f}function onceStrict(e){var f=function(){if(f.called)throw new Error(f.onceError);f.called=true;return f.value=e.apply(this,arguments)};var t=e.name||"Function wrapped with `once`";f.onceError=t+" shouldn't be called more than once";f.called=false;return f}},4824:(e,t,r)=>{"use strict";const n=r(2037);const s=r(7493);const o=r(3515);const osName=(e,t)=>{if(!e&&t){throw new Error("You can't specify a `release` without specifying `platform`")}e=e||n.platform();let r;if(e==="darwin"){if(!t&&n.platform()==="darwin"){t=n.release()}const e=t?Number(t.split(".")[0])>15?"macOS":"OS X":"macOS";r=t?s(t).name:"";return e+(r?" "+r:"")}if(e==="linux"){if(!t&&n.platform()==="linux"){t=n.release()}r=t?t.replace(/^(\d+\.\d+).*/,"$1"):"";return"Linux"+(r?" "+r:"")}if(e==="win32"){if(!t&&n.platform()==="win32"){t=n.release()}r=t?o(t):"";return"Windows"+(r?" "+r:"")}return e};e.exports=osName},1330:e=>{"use strict";e.exports=(e,t)=>{t=t||(()=>{});return e.then((e=>new Promise((e=>{e(t())})).then((()=>e))),(e=>new Promise((e=>{e(t())})).then((()=>{throw e}))))}},6615:(e,t,r)=>{"use strict";const n=r(3505);const s=r(5586);const o=n("JSONError",{fileName:n.append("in %s")});e.exports=(e,t,r)=>{if(typeof t==="string"){r=t;t=null}try{try{return JSON.parse(e,t)}catch(r){s(e,t);throw r}}catch(e){e.message=e.message.replace(/\n/g,"");const t=new o(e);if(r){t.fileName=r}throw t}}},1235:(e,t,r)=>{"use strict";const n=r(1017);const s=r(6428);const o=r(5978);const i=new WeakMap;const filepath=e=>i.get(e);const findNextCwd=e=>n.resolve(n.dirname(e),"..");const addFp=(e,t)=>{i.set(e,t);return e};const pkgConf=(e,t)=>{if(!e){return Promise.reject(new TypeError("Expected a namespace"))}t=t||{};return s("package.json",t.cwd?{cwd:t.cwd}:{}).then((r=>{if(!r){return addFp(Object.assign({},t.defaults),r)}return o(r).then((n=>{if(t.skipOnFalse&&n[e]===false){const n=Object.assign({},t,{cwd:findNextCwd(r)});return pkgConf(e,n)}return addFp(Object.assign({},t.defaults,n[e]),r)}))}))};const sync=(e,t)=>{if(!e){throw new TypeError("Expected a namespace")}t=t||{};const r=s.sync("package.json",t.cwd?{cwd:t.cwd}:{});if(!r){return addFp(Object.assign({},t.defaults),r)}const n=o.sync(r);if(t.skipOnFalse&&n[e]===false){const n=Object.assign({},t,{cwd:findNextCwd(r)});return sync(e,n)}return addFp(Object.assign({},t.defaults,n[e]),r)};e.exports=pkgConf;e.exports.filepath=filepath;e.exports.sync=sync},6428:(e,t,r)=>{"use strict";const n=r(1017);const s=r(7619);e.exports=(e,t)=>{t=t||{};const r=n.resolve(t.cwd||"");const o=n.parse(r).root;const i=[].concat(e);return new Promise((e=>{(function find(t){s(i,{cwd:t}).then((r=>{if(r){e(n.join(t,r))}else if(t===o){e(null)}else{find(n.dirname(t))}}))})(r)}))};e.exports.sync=(e,t)=>{t=t||{};let r=n.resolve(t.cwd||"");const o=n.parse(r).root;const i=[].concat(e);while(true){const e=s.sync(i,{cwd:r});if(e){return n.join(r,e)}else if(r===o){return null}r=n.dirname(r)}}},7619:(e,t,r)=>{"use strict";const n=r(1017);const s=r(652);const o=r(6566);e.exports=(e,t)=>{t=Object.assign({cwd:process.cwd()},t);return o(e,(e=>s(n.resolve(t.cwd,e))),t)};e.exports.sync=(e,t)=>{t=Object.assign({cwd:process.cwd()},t);for(const r of e){if(s.sync(n.resolve(t.cwd,r))){return r}}}},1305:(e,t,r)=>{"use strict";const n=r(6897);e.exports=e=>{if(e<1){throw new TypeError("Expected `concurrency` to be a number from 1 and up")}const t=[];let r=0;const next=()=>{r--;if(t.length>0){t.shift()()}};return s=>new Promise(((o,i)=>{const run=()=>{r++;n(s).then((e=>{o(e);next()}),(e=>{i(e);next()}))};if(r{"use strict";const n=r(1305);class EndError extends Error{constructor(e){super();this.value=e}}const finder=e=>Promise.all(e).then((e=>e[1]===true&&Promise.reject(new EndError(e[0]))));e.exports=(e,t,r)=>{r=Object.assign({concurrency:Infinity,preserveOrder:true},r);const s=n(r.concurrency);const o=Array.from(e).map((e=>[e,s((()=>Promise.resolve(e).then(t)))]));const i=n(r.preserveOrder?1:Infinity);return Promise.all(o.map((e=>i((()=>finder(e)))))).then((()=>{})).catch((e=>e instanceof EndError?e.value:Promise.reject(e)))}},6897:e=>{"use strict";e.exports=e=>new Promise((t=>{t(e())}))},652:(e,t,r)=>{"use strict";const n=r(7147);e.exports=e=>new Promise((t=>{n.access(e,(e=>{t(!e)}))}));e.exports.sync=e=>{try{n.accessSync(e);return true}catch(e){return false}}},8341:(e,t,r)=>{var n=r(1223);var s=r(1205);var o=r(7147);var noop=function(){};var i=/^v?\.0/.test(process.version);var isFn=function(e){return typeof e==="function"};var isFS=function(e){if(!i)return false;if(!o)return false;return(e instanceof(o.ReadStream||noop)||e instanceof(o.WriteStream||noop))&&isFn(e.close)};var isRequest=function(e){return e.setHeader&&isFn(e.abort)};var destroyer=function(e,t,r,o){o=n(o);var i=false;e.on("close",(function(){i=true}));s(e,{readable:t,writable:r},(function(e){if(e)return o(e);i=true;o()}));var a=false;return function(t){if(i)return;if(a)return;a=true;if(isFS(e))return e.close(noop);if(isRequest(e))return e.abort();if(isFn(e.destroy))return e.destroy();o(t||new Error("stream was destroyed"))}};var call=function(e){e()};var pipe=function(e,t){return e.pipe(t)};var pump=function(){var e=Array.prototype.slice.call(arguments);var t=isFn(e[e.length-1]||noop)&&e.pop()||noop;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(s,o){var i=o0;return destroyer(s,i,a,(function(e){if(!r)r=e;if(e)n.forEach(call);if(i)return;n.forEach(call);t(r)}))}));return e.reduce(pipe)};e.exports=pump},4931:(e,t,r)=>{var n=r(9491);var s=r(3710);var o=r(2361);if(typeof o!=="function"){o=o.EventEmitter}var i;if(process.__signal_exit_emitter__){i=process.__signal_exit_emitter__}else{i=process.__signal_exit_emitter__=new o;i.count=0;i.emitted={}}if(!i.infinite){i.setMaxListeners(Infinity);i.infinite=true}e.exports=function(e,t){n.equal(typeof e,"function","a callback must be provided for exit handler");if(c===false){load()}var r="exit";if(t&&t.alwaysLast){r="afterexit"}var remove=function(){i.removeListener(r,e);if(i.listeners("exit").length===0&&i.listeners("afterexit").length===0){unload()}};i.on(r,e);return remove};e.exports.unload=unload;function unload(){if(!c){return}c=false;s.forEach((function(e){try{process.removeListener(e,a[e])}catch(e){}}));process.emit=l;process.reallyExit=u;i.count-=1}function emit(e,t,r){if(i.emitted[e]){return}i.emitted[e]=true;i.emit(e,t,r)}var a={};s.forEach((function(e){a[e]=function listener(){var t=process.listeners(e);if(t.length===i.count){unload();emit("exit",null,e);emit("afterexit",null,e);process.kill(process.pid,e)}}}));e.exports.signals=function(){return s};e.exports.load=load;var c=false;function load(){if(c){return}c=true;i.count+=1;s=s.filter((function(e){try{process.on(e,a[e]);return true}catch(e){return false}}));process.emit=processEmit;process.reallyExit=processReallyExit}var u=process.reallyExit;function processReallyExit(e){process.exitCode=e||0;emit("exit",process.exitCode,null);emit("afterexit",process.exitCode,null);u.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")}},528:(e,t,r)=>{"use strict";const n=r(5132);e.exports=Object.assign(new n,{Signale:n})},7923:(e,t,r)=>{"use strict";e=r.nmd(e);const n=r(1557);const wrapAnsi16=(e,t)=>function(){const r=e.apply(n,arguments);return`[${r+t}m`};const wrapAnsi256=(e,t)=>function(){const r=e.apply(n,arguments);return`[${38+t};5;${r}m`};const wrapAnsi16m=(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 s=n[r];t[r]={open:`[${s[0]}m`,close:`[${s[1]}m`};n[r]=t[r];e.set(s[0],s[1])}Object.defineProperty(t,r,{value:n,enumerable:false});Object.defineProperty(t,"codes",{value:e,enumerable:false})}const ansi2ansi=e=>e;const rgb2rgb=(e,t,r)=>[e,t,r];t.color.close="";t.bgColor.close="";t.color.ansi={ansi:wrapAnsi16(ansi2ansi,0)};t.color.ansi256={ansi256:wrapAnsi256(ansi2ansi,0)};t.color.ansi16m={rgb:wrapAnsi16m(rgb2rgb,0)};t.bgColor.ansi={ansi:wrapAnsi16(ansi2ansi,10)};t.bgColor.ansi256={ansi256:wrapAnsi256(ansi2ansi,10)};t.bgColor.ansi16m={rgb:wrapAnsi16m(rgb2rgb,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]=wrapAnsi16(r.ansi16,0);t.bgColor.ansi[e]=wrapAnsi16(r.ansi16,10)}if("ansi256"in r){t.color.ansi256[e]=wrapAnsi256(r.ansi256,0);t.bgColor.ansi256[e]=wrapAnsi256(r.ansi256,10)}if("rgb"in r){t.color.ansi16m[e]=wrapAnsi16m(r.rgb,0);t.bgColor.ansi16m[e]=wrapAnsi16m(r.rgb,10)}}return t}Object.defineProperty(e,"exports",{enumerable:true,get:assembleStyles})},6594:(e,t,r)=>{"use strict";const n=r(8691);const s=r(7923);const o=r(6295).stdout;const i=r(5924);const a=process.platform==="win32"&&!(process.env.TERM||"").toLowerCase().startsWith("xterm");const c=["ansi","ansi","ansi256","ansi16m"];const u=new Set(["gray"]);const l=Object.create(null);function applyOptions(e,t){t=t||{};const r=o?o.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){s.blue.open=""}for(const e of Object.keys(s)){s[e].closeRe=new RegExp(n(s[e].close),"g");l[e]={get(){const t=s[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")}};s.color.closeRe=new RegExp(n(s.color.close),"g");for(const e of Object.keys(s.color.ansi)){if(u.has(e)){continue}l[e]={get(){const t=this.level;return function(){const r=s.color[c[t]][e].apply(null,arguments);const n={open:r,close:s.color.close,closeRe:s.color.closeRe};return build.call(this,this._styles?this._styles.concat(n):[n],this._empty,e)}}}}s.bgColor.closeRe=new RegExp(n(s.bgColor.close),"g");for(const e of Object.keys(s.bgColor.ansi)){if(u.has(e)){continue}const t="bg"+e[0].toUpperCase()+e.slice(1);l[t]={get(){const t=this.level;return function(){const r=s.bgColor[c[t]][e].apply(null,arguments);const n={open:r,close:s.bgColor.close,closeRe:s.bgColor.closeRe};return build.call(this,this._styles?this._styles.concat(n):[n],this._empty,e)}}}}const p=Object.defineProperties((()=>{}),l);function build(e,t,r){const builder=function(){return applyStyle.apply(builder,arguments)};builder._styles=e;builder._empty=t;const n=this;Object.defineProperty(builder,"level",{enumerable:true,get(){return n.level},set(e){n.level=e}});Object.defineProperty(builder,"enabled",{enumerable:true,get(){return n.enabled},set(e){n.enabled=e}});builder.hasGrey=this.hasGrey||r==="gray"||r==="grey";builder.__proto__=p;return builder}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{"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 s=/\\(u[a-f\d]{4}|x[a-f\d]{2}|.)|([^\\])/gi;const o=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 o.get(e)||e}function parseArguments(e,t){const r=[];const o=t.trim().split(/\s*,\s*/g);let i;for(const t of o){if(!isNaN(t)){r.push(Number(t))}else if(i=t.match(n)){r.push(i[2].replace(s,((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 s=[];let o=[];r.replace(t,((t,r,i,a,c,u)=>{if(r){o.push(unescape(r))}else if(a){const t=o.join("");o=[];s.push(n.length===0?t:buildStyle(e,n)(t));n.push({inverse:i,styles:parseStyle(a)})}else if(c){if(n.length===0){throw new Error("Found extraneous } in Chalk template literal")}s.push(buildStyle(e,n)(o.join("")));o=[];n.pop()}else{o.push(u)}}));s.push(o.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 s.join("")}},7605:(e,t,r)=>{var n=r(9167);var s={};for(var o in n){if(n.hasOwnProperty(o)){s[n[o]]=o}}var i=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 i){if(i.hasOwnProperty(a)){if(!("channels"in i[a])){throw new Error("missing channels property: "+a)}if(!("labels"in i[a])){throw new Error("missing channel labels property: "+a)}if(i[a].labels.length!==i[a].channels){throw new Error("channel and label counts mismatch: "+a)}var c=i[a].channels;var u=i[a].labels;delete i[a].channels;delete i[a].labels;Object.defineProperty(i[a],"channels",{value:c});Object.defineProperty(i[a],"labels",{value:u})}}i.rgb.hsl=function(e){var t=e[0]/255;var r=e[1]/255;var n=e[2]/255;var s=Math.min(t,r,n);var o=Math.max(t,r,n);var i=o-s;var a;var c;var u;if(o===s){a=0}else if(t===o){a=(r-n)/i}else if(r===o){a=2+(n-t)/i}else if(n===o){a=4+(t-r)/i}a=Math.min(a*60,360);if(a<0){a+=360}u=(s+o)/2;if(o===s){c=0}else if(u<=.5){c=i/(o+s)}else{c=i/(2-o-s)}return[a,c*100,u*100]};i.rgb.hsv=function(e){var t;var r;var n;var s;var o;var i=e[0]/255;var a=e[1]/255;var c=e[2]/255;var u=Math.max(i,a,c);var l=u-Math.min(i,a,c);var diffc=function(e){return(u-e)/6/l+1/2};if(l===0){s=o=0}else{o=l/u;t=diffc(i);r=diffc(a);n=diffc(c);if(i===u){s=n-r}else if(a===u){s=1/3+t-n}else if(c===u){s=2/3+r-t}if(s<0){s+=1}else if(s>1){s-=1}}return[s*360,o*100,u*100]};i.rgb.hwb=function(e){var t=e[0];var r=e[1];var n=e[2];var s=i.rgb.hsl(e)[0];var o=1/255*Math.min(t,Math.min(r,n));n=1-1/255*Math.max(t,Math.max(r,n));return[s,o*100,n*100]};i.rgb.cmyk=function(e){var t=e[0]/255;var r=e[1]/255;var n=e[2]/255;var s;var o;var i;var a;a=Math.min(1-t,1-r,1-n);s=(1-t-a)/(1-a)||0;o=(1-r-a)/(1-a)||0;i=(1-n-a)/(1-a)||0;return[s*100,o*100,i*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)}i.rgb.keyword=function(e){var t=s[e];if(t){return t}var r=Infinity;var o;for(var i in n){if(n.hasOwnProperty(i)){var a=n[i];var c=comparativeDistance(e,a);if(c.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 s=t*.4124+r*.3576+n*.1805;var o=t*.2126+r*.7152+n*.0722;var i=t*.0193+r*.1192+n*.9505;return[s*100,o*100,i*100]};i.rgb.lab=function(e){var t=i.rgb.xyz(e);var r=t[0];var n=t[1];var s=t[2];var o;var a;var c;r/=95.047;n/=100;s/=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;s=s>.008856?Math.pow(s,1/3):7.787*s+16/116;o=116*n-16;a=500*(r-n);c=200*(n-s);return[o,a,c]};i.hsl.rgb=function(e){var t=e[0]/360;var r=e[1]/100;var n=e[2]/100;var s;var o;var i;var a;var c;if(r===0){c=n*255;return[c,c,c]}if(n<.5){o=n*(1+r)}else{o=n+r-n*r}s=2*n-o;a=[0,0,0];for(var u=0;u<3;u++){i=t+1/3*-(u-1);if(i<0){i++}if(i>1){i--}if(6*i<1){c=s+(o-s)*6*i}else if(2*i<1){c=o}else if(3*i<2){c=s+(o-s)*(2/3-i)*6}else{c=s}a[u]=c*255}return a};i.hsl.hsv=function(e){var t=e[0];var r=e[1]/100;var n=e[2]/100;var s=r;var o=Math.max(n,.01);var i;var a;n*=2;r*=n<=1?n:2-n;s*=o<=1?o:2-o;a=(n+r)/2;i=n===0?2*s/(o+s):2*r/(n+r);return[t,i*100,a*100]};i.hsv.rgb=function(e){var t=e[0]/60;var r=e[1]/100;var n=e[2]/100;var s=Math.floor(t)%6;var o=t-Math.floor(t);var i=255*n*(1-r);var a=255*n*(1-r*o);var c=255*n*(1-r*(1-o));n*=255;switch(s){case 0:return[n,c,i];case 1:return[a,n,i];case 2:return[i,n,c];case 3:return[i,a,n];case 4:return[c,i,n];case 5:return[n,i,a]}};i.hsv.hsl=function(e){var t=e[0];var r=e[1]/100;var n=e[2]/100;var s=Math.max(n,.01);var o;var i;var a;a=(2-r)*n;o=(2-r)*s;i=r*s;i/=o<=1?o:2-o;i=i||0;a/=2;return[t,i*100,a*100]};i.hwb.rgb=function(e){var t=e[0]/360;var r=e[1]/100;var n=e[2]/100;var s=r+n;var o;var i;var a;var c;if(s>1){r/=s;n/=s}o=Math.floor(6*t);i=1-n;a=6*t-o;if((o&1)!==0){a=1-a}c=r+a*(i-r);var u;var l;var p;switch(o){default:case 6:case 0:u=i;l=c;p=r;break;case 1:u=c;l=i;p=r;break;case 2:u=r;l=i;p=c;break;case 3:u=r;l=c;p=i;break;case 4:u=c;l=r;p=i;break;case 5:u=i;l=r;p=c;break}return[u*255,l*255,p*255]};i.cmyk.rgb=function(e){var t=e[0]/100;var r=e[1]/100;var n=e[2]/100;var s=e[3]/100;var o;var i;var a;o=1-Math.min(1,t*(1-s)+s);i=1-Math.min(1,r*(1-s)+s);a=1-Math.min(1,n*(1-s)+s);return[o*255,i*255,a*255]};i.xyz.rgb=function(e){var t=e[0]/100;var r=e[1]/100;var n=e[2]/100;var s;var o;var i;s=t*3.2406+r*-1.5372+n*-.4986;o=t*-.9689+r*1.8758+n*.0415;i=t*.0557+r*-.204+n*1.057;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=i>.0031308?1.055*Math.pow(i,1/2.4)-.055:i*12.92;s=Math.min(Math.max(0,s),1);o=Math.min(Math.max(0,o),1);i=Math.min(Math.max(0,i),1);return[s*255,o*255,i*255]};i.xyz.lab=function(e){var t=e[0];var r=e[1];var n=e[2];var s;var o;var i;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;s=116*r-16;o=500*(t-r);i=200*(r-n);return[s,o,i]};i.lab.xyz=function(e){var t=e[0];var r=e[1];var n=e[2];var s;var o;var i;o=(t+16)/116;s=r/500+o;i=o-n/200;var a=Math.pow(o,3);var c=Math.pow(s,3);var u=Math.pow(i,3);o=a>.008856?a:(o-16/116)/7.787;s=c>.008856?c:(s-16/116)/7.787;i=u>.008856?u:(i-16/116)/7.787;s*=95.047;o*=100;i*=108.883;return[s,o,i]};i.lab.lch=function(e){var t=e[0];var r=e[1];var n=e[2];var s;var o;var i;s=Math.atan2(n,r);o=s*360/2/Math.PI;if(o<0){o+=360}i=Math.sqrt(r*r+n*n);return[t,i,o]};i.lch.lab=function(e){var t=e[0];var r=e[1];var n=e[2];var s;var o;var i;i=n/360*2*Math.PI;s=r*Math.cos(i);o=r*Math.sin(i);return[t,s,o]};i.rgb.ansi16=function(e){var t=e[0];var r=e[1];var n=e[2];var s=1 in arguments?arguments[1]:i.rgb.hsv(e)[2];s=Math.round(s/50);if(s===0){return 30}var o=30+(Math.round(n/255)<<2|Math.round(r/255)<<1|Math.round(t/255));if(s===2){o+=60}return o};i.hsv.ansi16=function(e){return i.rgb.ansi16(i.hsv.rgb(e),e[2])};i.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 s=16+36*Math.round(t/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5);return s};i.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 s=(t>>1&1)*r*255;var o=(t>>2&1)*r*255;return[n,s,o]};i.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 s=Math.floor((r=e%36)/6)/5*255;var o=r%6/5*255;return[n,s,o]};i.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};i.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 s=n>>16&255;var o=n>>8&255;var i=n&255;return[s,o,i]};i.rgb.hcg=function(e){var t=e[0]/255;var r=e[1]/255;var n=e[2]/255;var s=Math.max(Math.max(t,r),n);var o=Math.min(Math.min(t,r),n);var i=s-o;var a;var c;if(i<1){a=o/(1-i)}else{a=0}if(i<=0){c=0}else if(s===t){c=(r-n)/i%6}else if(s===r){c=2+(n-t)/i}else{c=4+(t-r)/i+4}c/=6;c%=1;return[c*360,i*100,a*100]};i.hsl.hcg=function(e){var t=e[1]/100;var r=e[2]/100;var n=1;var s=0;if(r<.5){n=2*t*r}else{n=2*t*(1-r)}if(n<1){s=(r-.5*n)/(1-n)}return[e[0],n*100,s*100]};i.hsv.hcg=function(e){var t=e[1]/100;var r=e[2]/100;var n=t*r;var s=0;if(n<1){s=(r-n)/(1-n)}return[e[0],n*100,s*100]};i.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 s=[0,0,0];var o=t%1*6;var i=o%1;var a=1-i;var c=0;switch(Math.floor(o)){case 0:s[0]=1;s[1]=i;s[2]=0;break;case 1:s[0]=a;s[1]=1;s[2]=0;break;case 2:s[0]=0;s[1]=1;s[2]=i;break;case 3:s[0]=0;s[1]=a;s[2]=1;break;case 4:s[0]=i;s[1]=0;s[2]=1;break;default:s[0]=1;s[1]=0;s[2]=a}c=(1-r)*n;return[(r*s[0]+c)*255,(r*s[1]+c)*255,(r*s[2]+c)*255]};i.hcg.hsv=function(e){var t=e[1]/100;var r=e[2]/100;var n=t+r*(1-t);var s=0;if(n>0){s=t/n}return[e[0],s*100,n*100]};i.hcg.hsl=function(e){var t=e[1]/100;var r=e[2]/100;var n=r*(1-t)+.5*t;var s=0;if(n>0&&n<.5){s=t/(2*n)}else if(n>=.5&&n<1){s=t/(2*(1-n))}return[e[0],s*100,n*100]};i.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]};i.hwb.hcg=function(e){var t=e[1]/100;var r=e[2]/100;var n=1-r;var s=n-t;var o=0;if(s<1){o=(n-s)/(1-s)}return[e[0],s*100,o*100]};i.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]};i.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]};i.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]};i.gray.hsl=i.gray.hsv=function(e){return[0,0,e[0]]};i.gray.hwb=function(e){return[0,100,e[0]]};i.gray.cmyk=function(e){return[0,0,0,e[0]]};i.gray.lab=function(e){return[e[0],0,0]};i.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};i.rgb.gray=function(e){var t=(e[0]+e[1]+e[2])/3;return[t/255*100]}},1557:(e,t,r)=>{var n=r(7605);var s=r(9097);var o={};var i=Object.keys(n);function wrapRaw(e){var wrappedFn=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){wrappedFn.conversion=e.conversion}return wrappedFn}function wrapRounded(e){var wrappedFn=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,s=0;s{var n=r(7605);function buildGraph(){var e={};var t=Object.keys(n);for(var r=t.length,s=0;s{"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]}},4843:(e,t,r)=>{"use strict";const n=r(8691);const s=process.platform;const o={tick:"✔",cross:"✖",star:"★",square:"▇",squareSmall:"◻",squareSmallFilled:"◼",play:"▶",circle:"◯",circleFilled:"◉",circleDotted:"◌",circleDouble:"◎",circleCircle:"ⓞ",circleCross:"ⓧ",circlePipe:"Ⓘ",circleQuestionMark:"?⃝",bullet:"●",dot:"․",line:"─",ellipsis:"…",pointer:"❯",pointerSmall:"›",info:"ℹ",warning:"⚠",hamburger:"☰",smiley:"㋡",mustache:"෴",heart:"♥",arrowUp:"↑",arrowDown:"↓",arrowLeft:"←",arrowRight:"→",radioOn:"◉",radioOff:"◯",checkboxOn:"☒",checkboxOff:"☐",checkboxCircleOn:"ⓧ",checkboxCircleOff:"Ⓘ",questionMarkPrefix:"?⃝",oneHalf:"½",oneThird:"⅓",oneQuarter:"¼",oneFifth:"⅕",oneSixth:"⅙",oneSeventh:"⅐",oneEighth:"⅛",oneNinth:"⅑",oneTenth:"⅒",twoThirds:"⅔",twoFifths:"⅖",threeQuarters:"¾",threeFifths:"⅗",threeEighths:"⅜",fourFifths:"⅘",fiveSixths:"⅚",fiveEighths:"⅝",sevenEighths:"⅞"};const i={tick:"√",cross:"×",star:"*",square:"█",squareSmall:"[ ]",squareSmallFilled:"[█]",play:"►",circle:"( )",circleFilled:"(*)",circleDotted:"( )",circleDouble:"( )",circleCircle:"(○)",circleCross:"(×)",circlePipe:"(│)",circleQuestionMark:"(?)",bullet:"*",dot:".",line:"─",ellipsis:"...",pointer:">",pointerSmall:"»",info:"i",warning:"‼",hamburger:"≡",smiley:"☺",mustache:"┌─┐",heart:o.heart,arrowUp:o.arrowUp,arrowDown:o.arrowDown,arrowLeft:o.arrowLeft,arrowRight:o.arrowRight,radioOn:"(*)",radioOff:"( )",checkboxOn:"[×]",checkboxOff:"[ ]",checkboxCircleOn:"(×)",checkboxCircleOff:"( )",questionMarkPrefix:"?",oneHalf:"1/2",oneThird:"1/3",oneQuarter:"1/4",oneFifth:"1/5",oneSixth:"1/6",oneSeventh:"1/7",oneEighth:"1/8",oneNinth:"1/9",oneTenth:"1/10",twoThirds:"2/3",twoFifths:"2/5",threeQuarters:"3/4",threeFifths:"3/5",threeEighths:"3/8",fourFifths:"4/5",fiveSixths:"5/6",fiveEighths:"5/8",sevenEighths:"7/8"};if(s==="linux"){o.questionMarkPrefix="?"}const a=s==="win32"?i:o;const fn=e=>{if(a===o){return e}Object.keys(o).forEach((t=>{if(o[t]===a[t]){return}e=e.replace(new RegExp(n(o[t]),"g"),a[t])}));return e};e.exports=Object.assign(fn,a)},58: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 s=t.indexOf("--");return n!==-1&&(s===-1?true:n{"use strict";const n=r(2037);const s=r(58);const o=process.env;let i;if(s("no-color")||s("no-colors")||s("color=false")){i=false}else if(s("color")||s("colors")||s("color=true")||s("color=always")){i=true}if("FORCE_COLOR"in o){i=o.FORCE_COLOR.length===0||parseInt(o.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(i===false){return 0}if(s("color=16m")||s("color=full")||s("color=truecolor")){return 3}if(s("color=256")){return 2}if(e&&!e.isTTY&&i!==true){return 0}const t=i?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 o){if(["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some((e=>e in o))||o.CI_NAME==="codeship"){return 1}return t}if("TEAMCITY_VERSION"in o){return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(o.TEAMCITY_VERSION)?1:0}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}if(o.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)}},5132:(e,t,r)=>{"use strict";const n=r(3837);const s=r(1017);const o=r(4521);const i=r(6594);const a=r(4843);const c=r(1235);const u=r(6998);const l=r(9881);const{green:p,grey:d,red:h,underline:m,yellow:g}=i;let y=false;const b=u.options.default;const v=u.name;class Signale{constructor(e={}){this._interactive=e.interactive||false;this._config=Object.assign(this.packageConfiguration,e.config);this._customTypes=Object.assign({},e.types);this._disabled=e.disabled||false;this._scopeName=e.scope||"";this._timers=e.timers||new Map;this._types=this._mergeTypes(l,this._customTypes);this._stream=e.stream||process.stdout;this._longestLabel=this._getLongestLabel();this._secrets=e.secrets||[];this._generalLogLevel=this._validateLogLevel(e.logLevel);Object.keys(this._types).forEach((e=>{this[e]=this._logger.bind(this,e)}))}get _now(){return Date.now()}get scopeName(){return this._scopeName}get currentOptions(){return Object.assign({},{config:this._config,disabled:this._disabled,types:this._customTypes,interactive:this._interactive,timers:this._timers,stream:this._stream,secrets:this._secrets,logLevel:this._generalLogLevel})}get date(){return(new Date).toLocaleDateString()}get timestamp(){return(new Date).toLocaleTimeString()}get filename(){const e=Error.prepareStackTrace;Error.prepareStackTrace=(e,t)=>t;const{stack:t}=new Error;Error.prepareStackTrace=e;const r=t.map((e=>e.getFileName()));const n=r.find((e=>e!==r[0]));return n?s.basename(n):"anonymous"}get packageConfiguration(){return c.sync(v,{defaults:b})}get _longestUnderlinedLabel(){return m(this._longestLabel)}get _logLevels(){return{info:0,timer:1,debug:2,warn:3,error:4}}set configuration(e){this._config=Object.assign(this.packageConfiguration,e)}_arrayify(e){return Array.isArray(e)?e:[e]}_timeSpan(e){return this._now-e}_getLongestLabel(){const{_types:e}=this;const t=Object.keys(e).map((t=>e[t].label));return t.reduce(((e,t)=>e.length>t.length?e:t))}_validateLogLevel(e){return Object.keys(this._logLevels).includes(e)?e:"info"}_mergeTypes(e,t){const r=Object.assign({},e);Object.keys(t).forEach((e=>{r[e]=Object.assign({},r[e],t[e])}));return r}_filterSecrets(e){const{_secrets:t}=this;if(t.length===0){return e}let r=e;t.forEach((e=>{r=r.replace(new RegExp(e,"g"),"[secure]")}));return r}_formatStream(e){return this._arrayify(e)}_formatDate(){return`[${this.date}]`}_formatFilename(){return`[${this.filename}]`}_formatScopeName(){if(Array.isArray(this._scopeName)){const e=this._scopeName.filter((e=>e.length!==0));return`${e.map((e=>`[${e.trim()}]`)).join(" ")}`}return`[${this._scopeName}]`}_formatTimestamp(){return`[${this.timestamp}]`}_formatMessage(e){return n.format(...this._arrayify(e))}_meta(){const e=[];if(this._config.displayDate){e.push(this._formatDate())}if(this._config.displayTimestamp){e.push(this._formatTimestamp())}if(this._config.displayFilename){e.push(this._formatFilename())}if(this._scopeName.length!==0&&this._config.displayScope){e.push(this._formatScopeName())}if(e.length!==0){e.push(`${a.pointerSmall}`);return e.map((e=>d(e)))}return e}_hasAdditional({suffix:e,prefix:t},r){return e||t?"":this._formatMessage(r)}_buildSignale(e,...t){let[r,n]=[{},{}];if(t.length===1&&typeof t[0]==="object"&&t[0]!==null){if(t[0]instanceof Error){[r]=t}else{const[{prefix:e,message:s,suffix:o}]=t;n=Object.assign({},{suffix:o,prefix:e});r=s?this._formatMessage(s):this._hasAdditional(n,t)}}else{r=this._formatMessage(t)}const s=this._meta();if(n.prefix){if(this._config.underlinePrefix){s.push(m(n.prefix))}else{s.push(n.prefix)}}if(this._config.displayBadge&&e.badge){s.push(i[e.color](this._padEnd(e.badge,e.badge.length+1)))}if(this._config.displayLabel&&e.label){const t=this._config.uppercaseLabel?e.label.toUpperCase():e.label;if(this._config.underlineLabel){s.push(i[e.color](this._padEnd(m(t),this._longestUnderlinedLabel.length+1)))}else{s.push(i[e.color](this._padEnd(t,this._longestLabel.length+1)))}}if(r instanceof Error&&r.stack){const[e,...t]=r.stack.split("\n");if(this._config.underlineMessage){s.push(m(e))}else{s.push(e)}s.push(d(t.map((e=>e.replace(/^/,"\n"))).join("")));return s.join(" ")}if(this._config.underlineMessage){s.push(m(r))}else{s.push(r)}if(n.suffix){if(this._config.underlineSuffix){s.push(m(n.suffix))}else{s.push(n.suffix)}}return s.join(" ")}_write(e,t){if(this._interactive&&e.isTTY&&y){o.moveCursor(e,0,-1);o.clearLine(e);o.cursorTo(e,0)}e.write(t+"\n");y=this._interactive}_log(e,t=this._stream,r){if(this.isEnabled()&&this._logLevels[r]>=this._logLevels[this._generalLogLevel]){this._formatStream(t).forEach((t=>{this._write(t,e)}))}}_logger(e,...t){const{stream:r,logLevel:n}=this._types[e];const s=this._buildSignale(this._types[e],...t);this._log(this._filterSecrets(s),r,this._validateLogLevel(n))}_padEnd(e,t){e=String(e);t=parseInt(t,10)||0;if(e.length>=t){return e}if(String.prototype.padEnd){return e.padEnd(t)}t-=e.length;return e+" ".repeat(t)}addSecrets(e){if(!Array.isArray(e)){throw new TypeError("Argument must be an array.")}this._secrets.push(...e)}clearSecrets(){this._secrets=[]}config(e){this.configuration=e}disable(){this._disabled=true}enable(){this._disabled=false}isEnabled(){return!this._disabled}scope(...e){if(e.length===0){throw new Error("No scope name was defined.")}return new Signale(Object.assign(this.currentOptions,{scope:e}))}unscope(){this._scopeName=""}time(e){if(!e){e=`timer_${this._timers.size}`}this._timers.set(e,this._now);const t=this._meta();t.push(p(this._padEnd(this._types.start.badge,2)));if(this._config.underlineLabel){t.push(p(this._padEnd(m(e),this._longestUnderlinedLabel.length+1)))}else{t.push(p(this._padEnd(e,this._longestLabel.length+1)))}t.push("Initialized timer...");this._log(t.join(" "),this._stream,"timer");return e}timeEnd(e){if(!e&&this._timers.size){const is=e=>e.includes("timer_");e=[...this._timers.keys()].reduceRight(((e,t)=>is(e)?e:is(t)?t:null))}if(this._timers.has(e)){const t=this._timeSpan(this._timers.get(e));this._timers.delete(e);const r=this._meta();r.push(h(this._padEnd(this._types.pause.badge,2)));if(this._config.underlineLabel){r.push(h(this._padEnd(m(e),this._longestUnderlinedLabel.length+1)))}else{r.push(h(this._padEnd(e,this._longestLabel.length+1)))}r.push("Timer run for:");r.push(g(t<1e3?t+"ms":(t/1e3).toFixed(2)+"s"));this._log(r.join(" "),this._stream,"timer");return{label:e,span:t}}}}e.exports=Signale},9881:(e,t,r)=>{"use strict";const n=r(4843);e.exports={error:{badge:n.cross,color:"red",label:"error",logLevel:"error"},fatal:{badge:n.cross,color:"red",label:"fatal",logLevel:"error"},fav:{badge:n("❤"),color:"magenta",label:"favorite",logLevel:"info"},info:{badge:n.info,color:"blue",label:"info",logLevel:"info"},star:{badge:n.star,color:"yellow",label:"star",logLevel:"info"},success:{badge:n.tick,color:"green",label:"success",logLevel:"info"},wait:{badge:n.ellipsis,color:"blue",label:"waiting",logLevel:"info"},warn:{badge:n.warning,color:"yellow",label:"warning",logLevel:"warn"},complete:{badge:n.checkboxOn,color:"cyan",label:"complete",logLevel:"info"},pending:{badge:n.checkboxOff,color:"magenta",label:"pending",logLevel:"info"},note:{badge:n.bullet,color:"blue",label:"note",logLevel:"info"},start:{badge:n.play,color:"green",label:"start",logLevel:"info"},pause:{badge:n.squareSmallFilled,color:"yellow",label:"pause",logLevel:"info"},debug:{badge:n("⬤"),color:"red",label:"debug",logLevel:"debug"},await:{badge:n.ellipsis,color:"blue",label:"awaiting",logLevel:"info"},watch:{badge:n.ellipsis,color:"yellow",label:"watching",logLevel:"info"},log:{badge:"",color:"",label:"",logLevel:"info"}}},1949:(e,t,r)=>{const n=r(4966);const{GitConstructError:s}=r(4732);const{createInstanceConfig:o,folderExists:i}=r(847);const a=Object.create(null);for(let e=r(4732),t=Object.keys(e),n=0;n{const{GitExecutor:n}=r(4701);const{Scheduler:s}=r(3421);const{GitLogger:o}=r(7178);const{adhocExecTask:i,configurationErrorTask:a}=r(2815);const{NOOP:c,appendTaskOptions:u,asArray:l,filterArray:p,filterPrimitives:d,filterString:h,filterStringOrStringArray:m,filterType:g,folderExists:y,getTrailingOptions:b,trailingFunctionArgument:v,trailingOptionsArgument:w}=r(847);const{branchTask:T,branchLocalTask:_,deleteBranchesTask:k,deleteBranchTask:O}=r(17);const{taskCallback:S}=r(8850);const{checkIsRepoTask:C}=r(221);const{cloneTask:P,cloneMirrorTask:R}=r(3173);const{addConfigTask:A,listConfigTask:x}=r(7597);const{cleanWithOptionsTask:G,isCleanOptionsArray:j}=r(4386);const{commitTask:I}=r(5494);const{diffSummaryTask:L}=r(9241);const{fetchTask:D}=r(8823);const{hashObjectTask:M}=r(8199);const{initTask:N}=r(6016);const{logTask:U,parseLogOptions:B}=r(8627);const{mergeTask:q}=r(8829);const{moveTask:$}=r(6520);const{pullTask:H}=r(4636);const{pushTagsTask:W,pushTask:V}=r(1435);const{addRemoteTask:z,getRemotesTask:Y,listRemotesTask:K,remoteTask:J,removeRemoteTask:Q}=r(9866);const{getResetMode:X,resetTask:Z}=r(2377);const{stashListTask:ee}=r(810);const{statusTask:te}=r(9197);const{addSubModuleTask:re,initSubModuleTask:ne,subModuleTask:se,updateSubModuleTask:oe}=r(8772);const{addAnnotatedTagTask:ie,addTagTask:ae,tagListTask:ce}=r(8540);const{straightThroughStringTask:ue}=r(2815);const{parseCheckIgnore:le}=r(9926);const pe=Symbol("ChainedExecutor");function Git(e){this._executor=new n(e.binary,e.baseDir,new s(e.maxConcurrentProcesses));this._logger=new o}Git.prototype._executor=null;Git.prototype._logger=null;Git.prototype.customBinary=function(e){this._executor.binary=e;return this};Git.prototype.env=function(e,t){if(arguments.length===1&&typeof e==="object"){this._executor.env=e}else{(this._executor.env=this._executor.env||{})[e]=t}return this};Git.prototype.cwd=function(e){const t=typeof e!=="string"?a("Git.cwd: workingDirectory must be supplied as a string"):i((()=>{if(!y(e)){throw new Error(`Git.cwd: cannot change to non-directory "${e}"`)}return this._executor.cwd=e}));return this._runTask(t,v(arguments)||c)};Git.prototype.outputHandler=function(e){this._executor.outputHandler=e;return this};Git.prototype.init=function(e,t){return this._runTask(N(e===true,this._executor.cwd,b(arguments)),v(arguments))};Git.prototype.status=function(){return this._runTask(te(b(arguments)),v(arguments))};Git.prototype.stashList=function(e){return this._runTask(ee(w(arguments)||{},p(e)&&e||[]),v(arguments))};Git.prototype.stash=function(e,t){return this._runTask(ue(["stash",...b(arguments)]),v(arguments))};function createCloneTask(e,t,r,n){if(typeof r!=="string"){return a(`git.${e}() requires a string 'repoPath'`)}return t(r,g(n,h),b(arguments))}Git.prototype.clone=function(){return this._runTask(createCloneTask("clone",P,...arguments),v(arguments))};Git.prototype.mirror=function(){return this._runTask(createCloneTask("mirror",R,...arguments),v(arguments))};Git.prototype.mv=function(e,t){return this._runTask($(e,t),v(arguments))};Git.prototype.checkoutLatestTag=function(e){var t=this;return this.pull((function(){t.tags((function(r,n){t.checkout(n.latest,e)}))}))};Git.prototype.add=function(e){return this._run(["add"].concat(e),v(arguments))};Git.prototype.commit=function(e,t,r,n){const s=v(arguments);const o=[];if(m(e)){o.push(...l(e))}else{console.warn("simple-git deprecation notice: git.commit: requires the commit message to be supplied as a string/string[], this will be an error in version 3")}return this._runTask(I(o,l(g(t,m,[])),[...g(r,p,[]),...b(arguments,0,true)]),s)};Git.prototype.pull=function(e,t,r,n){return this._runTask(H(g(e,h),g(t,h),b(arguments)),v(arguments))};Git.prototype.fetch=function(e,t){return this._runTask(D(g(e,h),g(t,h),b(arguments)),v(arguments))};Git.prototype.silent=function(e){this._logger.silent(!!e);return this};Git.prototype.tags=function(e,t){return this._runTask(ce(b(arguments)),v(arguments))};Git.prototype.rebase=function(){return this._run(["rebase"].concat(b(arguments)),v(arguments))};Git.prototype.reset=function(e,t){return this._runTask(Z(X(e),b(arguments)),v(arguments))};Git.prototype.revert=function(e){const t=v(arguments);if(typeof e!=="string"){return this._runTask(a("Commit must be a string"),t)}return this._run(["revert",...b(arguments,0,true),e],t)};Git.prototype.addTag=function(e,t){const r=typeof e==="string"?ae(e):a("Git.addTag requires a tag name");return this._runTask(r,v(arguments))};Git.prototype.addAnnotatedTag=function(e,t,r){return this._runTask(ie(e,t),v(arguments))};Git.prototype.checkout=function(e,t){const r=["checkout",...b(arguments,true)];return this._runTask(ue(r),v(arguments))};Git.prototype.checkoutBranch=function(e,t,r){return this.checkout(["-b",e,t],v(arguments))};Git.prototype.checkoutLocalBranch=function(e,t){return this.checkout(["-b",e],v(arguments))};Git.prototype.deleteLocalBranch=function(e,t,r){return this._runTask(O(e,typeof t==="boolean"?t:false),v(arguments))};Git.prototype.deleteLocalBranches=function(e,t,r){return this._runTask(k(e,typeof t==="boolean"?t:false),v(arguments))};Git.prototype.branch=function(e,t){return this._runTask(T(b(arguments)),v(arguments))};Git.prototype.branchLocal=function(e){return this._runTask(_(),v(arguments))};Git.prototype.addConfig=function(e,t,r,n){return this._runTask(A(e,t,typeof r==="boolean"?r:false),v(arguments))};Git.prototype.listConfig=function(){return this._runTask(x(),v(arguments))};Git.prototype.raw=function(e){const t=!Array.isArray(e);const r=[].slice.call(t?arguments:e,0);for(let e=0;e{const{gitP:n}=r(941);const{esModuleFactory:s,gitInstanceFactory:o,gitExportFactory:i}=r(1949);e.exports=s(i(o,{gitP:n}))},4732:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.TaskConfigurationError=t.GitResponseError=t.GitError=t.GitConstructError=t.ResetMode=t.CheckRepoActions=t.CleanOptions=void 0;var n=r(4386);Object.defineProperty(t,"CleanOptions",{enumerable:true,get:function(){return n.CleanOptions}});var s=r(221);Object.defineProperty(t,"CheckRepoActions",{enumerable:true,get:function(){return s.CheckRepoActions}});var o=r(2377);Object.defineProperty(t,"ResetMode",{enumerable:true,get:function(){return o.ResetMode}});var i=r(1876);Object.defineProperty(t,"GitConstructError",{enumerable:true,get:function(){return i.GitConstructError}});var a=r(5757);Object.defineProperty(t,"GitError",{enumerable:true,get:function(){return a.GitError}});var c=r(5131);Object.defineProperty(t,"GitResponseError",{enumerable:true,get:function(){return c.GitResponseError}});var u=r(740);Object.defineProperty(t,"TaskConfigurationError",{enumerable:true,get:function(){return u.TaskConfigurationError}})},1876:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.GitConstructError=void 0;const n=r(5757);class GitConstructError extends n.GitError{constructor(e,t){super(undefined,t);this.config=e}}t.GitConstructError=GitConstructError},5757:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.GitError=void 0;class GitError extends Error{constructor(e,t){super(t);this.task=e;Object.setPrototypeOf(this,new.target.prototype)}}t.GitError=GitError},5131:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.GitResponseError=void 0;const n=r(5757);class GitResponseError extends n.GitError{constructor(e,t){super(undefined,t||String(e));this.git=e}}t.GitResponseError=GitResponseError},740:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.TaskConfigurationError=void 0;const n=r(5757);class TaskConfigurationError extends n.GitError{constructor(e){super(undefined,e)}}t.TaskConfigurationError=TaskConfigurationError},7178:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.GitLogger=t.createLogger=t.log=void 0;const n=r(8231);const s=r(847);n.default.formatters.L=e=>String(s.filterHasLength(e)?e.length:"-");n.default.formatters.B=e=>{if(Buffer.isBuffer(e)){return e.toString("utf8")}return s.objectToString(e)};t.log=n.default("simple-git");function prefixedLogger(e,t,r){if(!t||!String(t).replace(/\s*/,"")){return!r?e:(t,...n)=>{e(t,...n);r(t,...n)}}return(n,...s)=>{e(`%s ${n}`,t,...s);if(r){r(n,...s)}}}function childLoggerName(e,t,{namespace:r}){if(typeof e==="string"){return e}const n=t&&t.namespace||"";if(n.startsWith(r)){return n.substr(r.length+1)}return n||r}function createLogger(e,r,n,o=t.log){const i=e&&`[${e}]`||"";const a=[];const c=typeof r==="string"?o.extend(r):r;const u=childLoggerName(s.filterType(r,s.filterString),c,o);return step(n);function destroy(){a.forEach((e=>e.destroy()));a.length=0}function child(t){return s.append(a,createLogger(e,c&&c.extend(t)||t))}function sibling(t,r){return s.append(a,createLogger(e,u.replace(/^[^:]+/,t),r,o))}function step(t){const r=t&&`[${t}]`||"";const n=c&&prefixedLogger(c,r)||s.NOOP;const a=prefixedLogger(o,`${i} ${r}`,n);return Object.assign(c?n:a,{key:u,label:e,child:child,sibling:sibling,debug:n,info:a,step:step,destroy:destroy})}}t.createLogger=createLogger;class GitLogger{constructor(e=t.log){this._out=e;this.error=prefixedLogger(e,"[ERROR]");this.warn=prefixedLogger(e,"[WARN]")}silent(e=false){if(e!==this._out.enabled){return}const{namespace:t}=this._out;const r=(process.env.DEBUG||"").split(",").filter((e=>!!e));const o=r.includes(t);const i=r.includes(`-${t}`);if(!e){if(i){s.remove(r,`-${t}`)}else{r.push(t)}}else{if(o){s.remove(r,t)}else{r.push(`-${t}`)}}n.default.enable(r.join(","))}}t.GitLogger=GitLogger},6086:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.hasBranchDeletionError=t.parseBranchDeletions=void 0;const n=r(3755);const s=r(847);const o=/(\S+)\s+\(\S+\s([^)]+)\)/;const i=/^error[^']+'([^']+)'/m;const a=[new s.LineParser(o,((e,[t,r])=>{const s=n.branchDeletionSuccess(t,r);e.all.push(s);e.branches[t]=s})),new s.LineParser(i,((e,[t])=>{const r=n.branchDeletionFailure(t);e.errors.push(r);e.all.push(r);e.branches[t]=r}))];const parseBranchDeletions=e=>s.parseStringResponse(new n.BranchDeletionBatch,a,e);t.parseBranchDeletions=parseBranchDeletions;function hasBranchDeletionError(e,t){return t===s.ExitCodes.ERROR&&i.test(e)}t.hasBranchDeletionError=hasBranchDeletionError},9264:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.parseBranchSummary=void 0;const n=r(4446);const s=r(847);const o=[new s.LineParser(/^(\*\s)?\((?:HEAD )?detached (?:from|at) (\S+)\)\s+([a-z0-9]+)\s(.*)$/,((e,[t,r,n,s])=>{e.push(!!t,true,r,n,s)})),new s.LineParser(/^(\*\s)?(\S+)\s+([a-z0-9]+)\s(.*)$/,((e,[t,r,n,s])=>{e.push(!!t,false,r,n,s)}))];function parseBranchSummary(e){return s.parseStringResponse(new n.BranchSummaryResult,o,e)}t.parseBranchSummary=parseBranchSummary},3026:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.parseCommitResult=void 0;const n=r(847);const s=[new n.LineParser(/\[([^\s]+) ([^\]]+)/,((e,[t,r])=>{e.branch=t;e.commit=r})),new n.LineParser(/\s*Author:\s(.+)/i,((e,[t])=>{const r=t.split("<");const n=r.pop();if(!n||!n.includes("@")){return}e.author={email:n.substr(0,n.length-1),name:r.join("<").trim()}})),new n.LineParser(/(\d+)[^,]*(?:,\s*(\d+)[^,]*)(?:,\s*(\d+))/g,((e,[t,r,n])=>{e.summary.changes=parseInt(t,10)||0;e.summary.insertions=parseInt(r,10)||0;e.summary.deletions=parseInt(n,10)||0})),new n.LineParser(/^(\d+)[^,]*(?:,\s*(\d+)[^(]+\(([+-]))?/,((e,[t,r,n])=>{e.summary.changes=parseInt(t,10)||0;const s=parseInt(r,10)||0;if(n==="-"){e.summary.deletions=s}else if(n==="+"){e.summary.insertions=s}}))];function parseCommitResult(e){const t={author:null,branch:"",commit:"",summary:{changes:0,insertions:0,deletions:0}};return n.parseStringResponse(t,s,e)}t.parseCommitResult=parseCommitResult},2024:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.parseDiffResult=void 0;const n=r(4781);function parseDiffResult(e){const t=e.trim().split("\n");const r=new n.DiffSummary;readSummaryLine(r,t.pop());for(let e=0,n=t.length;e ([0-9.]+) ([a-z]+)$/);if(r){t.push({file:r[1].trim(),before:+r[2],after:+r[3],binary:true});return true}return false}},6254:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.parseFetchResult=void 0;const n=r(847);const s=[new n.LineParser(/From (.+)$/,((e,[t])=>{e.remote=t})),new n.LineParser(/\* \[new branch]\s+(\S+)\s*-> (.+)$/,((e,[t,r])=>{e.branches.push({name:t,tracking:r})})),new n.LineParser(/\* \[new tag]\s+(\S+)\s*-> (.+)$/,((e,[t,r])=>{e.tags.push({name:t,tracking:r})}))];function parseFetchResult(e,t){const r={raw:e,remote:null,branches:[],tags:[]};return n.parseStringResponse(r,s,e,t)}t.parseFetchResult=parseFetchResult},9729:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.createListLogSummaryParser=t.SPLITTER=t.COMMIT_BOUNDARY=t.START_BOUNDARY=void 0;const n=r(847);const s=r(2024);t.START_BOUNDARY="òòòòòò ";t.COMMIT_BOUNDARY=" òò";t.SPLITTER=" ò ";const o=["hash","date","message","refs","author_name","author_email"];function lineBuilder(e,t){return t.reduce(((t,r,n)=>{t[r]=e[n]||"";return t}),Object.create({diff:null}))}function createListLogSummaryParser(e=t.SPLITTER,r=o){return function(o){const i=n.toLinesWithContent(o,true,t.START_BOUNDARY).map((function(n){const o=n.trim().split(t.COMMIT_BOUNDARY);const i=lineBuilder(o[0].trim().split(e),r);if(o.length>1&&!!o[1].trim()){i.diff=s.parseDiffResult(o[1])}return i}));return{all:i,latest:i.length&&i[0]||null,total:i.length}}}t.createListLogSummaryParser=createListLogSummaryParser},6412:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.parseMergeDetail=t.parseMergeResult=void 0;const n=r(1651);const s=r(847);const o=r(5658);const i=[new s.LineParser(/^Auto-merging\s+(.+)$/,((e,[t])=>{e.merges.push(t)})),new s.LineParser(/^CONFLICT\s+\((.+)\): Merge conflict in (.+)$/,((e,[t,r])=>{e.conflicts.push(new n.MergeSummaryConflict(t,r))})),new s.LineParser(/^CONFLICT\s+\((.+\/delete)\): (.+) deleted in (.+) and/,((e,[t,r,s])=>{e.conflicts.push(new n.MergeSummaryConflict(t,r,{deleteRef:s}))})),new s.LineParser(/^CONFLICT\s+\((.+)\):/,((e,[t])=>{e.conflicts.push(new n.MergeSummaryConflict(t,null))})),new s.LineParser(/^Automatic merge failed;\s+(.+)$/,((e,[t])=>{e.result=t}))];const parseMergeResult=(e,r)=>Object.assign(t.parseMergeDetail(e,r),o.parsePullResult(e,r));t.parseMergeResult=parseMergeResult;const parseMergeDetail=e=>s.parseStringResponse(new n.MergeSummaryDetail,i,e);t.parseMergeDetail=parseMergeDetail},7444:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.parseMoveResult=void 0;const n=r(847);const s=[new n.LineParser(/^Renaming (.+) to (.+)$/,((e,[t,r])=>{e.moves.push({from:t,to:r})}))];function parseMoveResult(e){return n.parseStringResponse({moves:[]},s,e)}t.parseMoveResult=parseMoveResult},5658:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.parsePullResult=t.parsePullDetail=void 0;const n=r(3567);const s=r(847);const o=r(2661);const i=/^\s*(.+?)\s+\|\s+\d+\s*(\+*)(-*)/;const a=/(\d+)\D+((\d+)\D+\(\+\))?(\D+(\d+)\D+\(-\))?/;const c=/^(create|delete) mode \d+ (.+)/;const u=[new s.LineParser(i,((e,[t,r,n])=>{e.files.push(t);if(r){e.insertions[t]=r.length}if(n){e.deletions[t]=n.length}})),new s.LineParser(a,((e,[t,,r,,n])=>{if(r!==undefined||n!==undefined){e.summary.changes=+t||0;e.summary.insertions=+r||0;e.summary.deletions=+n||0;return true}return false})),new s.LineParser(c,((e,[t,r])=>{s.append(e.files,r);s.append(t==="create"?e.created:e.deleted,r)}))];const parsePullDetail=(e,t)=>s.parseStringResponse(new n.PullSummary,u,e,t);t.parsePullDetail=parsePullDetail;const parsePullResult=(e,r)=>Object.assign(new n.PullSummary,t.parsePullDetail(e,r),o.parseRemoteMessages(e,r));t.parsePullResult=parsePullResult},8530:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.parsePushDetail=t.parsePushResult=void 0;const n=r(847);const s=r(2661);function pushResultPushedItem(e,t,r){const n=r.includes("deleted");const s=r.includes("tag")||/^refs\/tags/.test(e);const o=!r.includes("new");return{deleted:n,tag:s,branch:!s,new:!o,alreadyUpdated:o,local:e,remote:t}}const o=[new n.LineParser(/^Pushing to (.+)$/,((e,[t])=>{e.repo=t})),new n.LineParser(/^updating local tracking ref '(.+)'/,((e,[t])=>{e.ref=Object.assign(Object.assign({},e.ref||{}),{local:t})})),new n.LineParser(/^[*-=]\s+([^:]+):(\S+)\s+\[(.+)]$/,((e,[t,r,n])=>{e.pushed.push(pushResultPushedItem(t,r,n))})),new n.LineParser(/^Branch '([^']+)' set up to track remote branch '([^']+)' from '([^']+)'/,((e,[t,r,n])=>{e.branch=Object.assign(Object.assign({},e.branch||{}),{local:t,remote:r,remoteName:n})})),new n.LineParser(/^([^:]+):(\S+)\s+([a-z0-9]+)\.\.([a-z0-9]+)$/,((e,[t,r,n,s])=>{e.update={head:{local:t,remote:r},hash:{from:n,to:s}}}))];const parsePushResult=(e,r)=>{const n=t.parsePushDetail(e,r);const o=s.parseRemoteMessages(e,r);return Object.assign(Object.assign({},n),o)};t.parsePushResult=parsePushResult;const parsePushDetail=(e,t)=>n.parseStringResponse({pushed:[]},o,e,t);t.parsePushDetail=parsePushDetail},2661:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.RemoteMessageSummary=t.parseRemoteMessages=void 0;const n=r(847);const s=r(3565);const o=[new n.RemoteLineParser(/^remote:\s*(.+)$/,((e,[t])=>{e.remoteMessages.all.push(t.trim());return false})),...s.remoteMessagesObjectParsers,new n.RemoteLineParser([/create a (?:pull|merge) request/i,/\s(https?:\/\/\S+)$/],((e,[t])=>{e.remoteMessages.pullRequestUrl=t})),new n.RemoteLineParser([/found (\d+) vulnerabilities.+\(([^)]+)\)/i,/\s(https?:\/\/\S+)$/],((e,[t,r,s])=>{e.remoteMessages.vulnerabilities={count:n.asNumber(t),summary:r,url:s}}))];function parseRemoteMessages(e,t){return n.parseStringResponse({remoteMessages:new RemoteMessageSummary},o,t)}t.parseRemoteMessages=parseRemoteMessages;class RemoteMessageSummary{constructor(){this.all=[]}}t.RemoteMessageSummary=RemoteMessageSummary},3565:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.remoteMessagesObjectParsers=void 0;const n=r(847);function objectEnumerationResult(e){return e.objects=e.objects||{compressing:0,counting:0,enumerating:0,packReused:0,reused:{count:0,delta:0},total:{count:0,delta:0}}}function asObjectCount(e){const t=/^\s*(\d+)/.exec(e);const r=/delta (\d+)/i.exec(e);return{count:n.asNumber(t&&t[1]||"0"),delta:n.asNumber(r&&r[1]||"0")}}t.remoteMessagesObjectParsers=[new n.RemoteLineParser(/^remote:\s*(enumerating|counting|compressing) objects: (\d+),/i,((e,[t,r])=>{const s=t.toLowerCase();const o=objectEnumerationResult(e.remoteMessages);Object.assign(o,{[s]:n.asNumber(r)})})),new n.RemoteLineParser(/^remote:\s*(enumerating|counting|compressing) objects: \d+% \(\d+\/(\d+)\),/i,((e,[t,r])=>{const s=t.toLowerCase();const o=objectEnumerationResult(e.remoteMessages);Object.assign(o,{[s]:n.asNumber(r)})})),new n.RemoteLineParser(/total ([^,]+), reused ([^,]+), pack-reused (\d+)/i,((e,[t,r,s])=>{const o=objectEnumerationResult(e.remoteMessages);o.total=asObjectCount(t);o.reused=asObjectCount(r);o.packReused=n.asNumber(s)}))]},3755:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isSingleBranchDeleteFailure=t.branchDeletionFailure=t.branchDeletionSuccess=t.BranchDeletionBatch=void 0;class BranchDeletionBatch{constructor(){this.all=[];this.branches={};this.errors=[]}get success(){return!this.errors.length}}t.BranchDeletionBatch=BranchDeletionBatch;function branchDeletionSuccess(e,t){return{branch:e,hash:t,success:true}}t.branchDeletionSuccess=branchDeletionSuccess;function branchDeletionFailure(e){return{branch:e,hash:null,success:false}}t.branchDeletionFailure=branchDeletionFailure;function isSingleBranchDeleteFailure(e){return e.success}t.isSingleBranchDeleteFailure=isSingleBranchDeleteFailure},4446:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.BranchSummaryResult=void 0;class BranchSummaryResult{constructor(){this.all=[];this.branches={};this.current="";this.detached=false}push(e,t,r,n,s){if(e){this.detached=t;this.current=r}this.all.push(r);this.branches[r]={current:e,name:r,commit:n,label:s}}}t.BranchSummaryResult=BranchSummaryResult},9926:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.parseCheckIgnore=void 0;const parseCheckIgnore=e=>e.split(/\n/g).map((e=>e.trim())).filter((e=>!!e));t.parseCheckIgnore=parseCheckIgnore},5689:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.cleanSummaryParser=t.CleanResponse=void 0;const n=r(847);class CleanResponse{constructor(e){this.dryRun=e;this.paths=[];this.files=[];this.folders=[]}}t.CleanResponse=CleanResponse;const s=/^[a-z]+\s*/i;const o=/^[a-z]+\s+[a-z]+\s*/i;const i=/\/$/;function cleanSummaryParser(e,t){const r=new CleanResponse(e);const a=e?o:s;n.toLinesWithContent(t).forEach((e=>{const t=e.replace(a,"");r.paths.push(t);(i.test(t)?r.folders:r.files).push(t)}));return r}t.cleanSummaryParser=cleanSummaryParser},7219:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.configListParser=t.ConfigList=void 0;const n=r(847);class ConfigList{constructor(){this.files=[];this.values=Object.create(null)}get all(){if(!this._all){this._all=this.files.reduce(((e,t)=>Object.assign(e,this.values[t])),{})}return this._all}addFile(e){if(!(e in this.values)){const t=n.last(this.files);this.values[e]=t?Object.create(this.values[t]):{};this.files.push(e)}return this.values[e]}addValue(e,t,r){const n=this.addFile(e);if(!n.hasOwnProperty(t)){n[t]=r}else if(Array.isArray(n[t])){n[t].push(r)}else{n[t]=[n[t],r]}this._all=undefined}}t.ConfigList=ConfigList;function configListParser(e){const t=new ConfigList;const r=e.split("\0");for(let e=0,s=r.length-1;e{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.DiffSummary=void 0;class DiffSummary{constructor(){this.changed=0;this.deletions=0;this.insertions=0;this.files=[]}}t.DiffSummary=DiffSummary},860:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.FileStatusSummary=t.fromPathRegex=void 0;t.fromPathRegex=/^(.+) -> (.+)$/;class FileStatusSummary{constructor(e,r,n){this.path=e;this.index=r;this.working_dir=n;if("R"===r+n){const r=t.fromPathRegex.exec(e)||[null,e,e];this.from=r[1]||"";this.path=r[2]||""}}}t.FileStatusSummary=FileStatusSummary},9999:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.parseGetRemotesVerbose=t.parseGetRemotes=void 0;const n=r(847);function parseGetRemotes(e){const t={};forEach(e,(([e])=>t[e]={name:e}));return Object.values(t)}t.parseGetRemotes=parseGetRemotes;function parseGetRemotesVerbose(e){const t={};forEach(e,(([e,r,n])=>{if(!t.hasOwnProperty(e)){t[e]={name:e,refs:{fetch:"",push:""}}}if(n&&r){t[e].refs[n.replace(/[^a-z]/g,"")]=r}}));return Object.values(t)}t.parseGetRemotesVerbose=parseGetRemotesVerbose;function forEach(e,t){n.forEachLineWithContent(e,(e=>t(e.split(/\s+/))))}},8690:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.parseInit=t.InitSummary=void 0;class InitSummary{constructor(e,t,r,n){this.bare=e;this.path=t;this.existing=r;this.gitDir=n}}t.InitSummary=InitSummary;const r=/^Init.+ repository in (.+)$/;const n=/^Rein.+ in (.+)$/;function parseInit(e,t,s){const o=String(s).trim();let i;if(i=r.exec(o)){return new InitSummary(e,t,false,i[1])}if(i=n.exec(o)){return new InitSummary(e,t,true,i[1])}let a="";const c=o.split(" ");while(c.length){const e=c.shift();if(e==="in"){a=c.join(" ");break}}return new InitSummary(e,t,/^re/i.test(o),a)}t.parseInit=parseInit},1651:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.MergeSummaryDetail=t.MergeSummaryConflict=void 0;class MergeSummaryConflict{constructor(e,t=null,r){this.reason=e;this.file=t;this.meta=r}toString(){return`${this.file}:${this.reason}`}}t.MergeSummaryConflict=MergeSummaryConflict;class MergeSummaryDetail{constructor(){this.conflicts=[];this.merges=[];this.result="success"}get failed(){return this.conflicts.length>0}get reason(){return this.result}toString(){if(this.conflicts.length){return`CONFLICTS: ${this.conflicts.join(", ")}`}return"OK"}}t.MergeSummaryDetail=MergeSummaryDetail},3567:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.PullSummary=void 0;class PullSummary{constructor(){this.remoteMessages={all:[]};this.created=[];this.deleted=[];this.files=[];this.deletions={};this.insertions={};this.summary={changes:0,deletions:0,insertions:0}}}t.PullSummary=PullSummary},6790:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.parseStatusSummary=t.StatusSummary=void 0;const n=r(847);const s=r(860);class StatusSummary{constructor(){this.not_added=[];this.conflicted=[];this.created=[];this.deleted=[];this.modified=[];this.renamed=[];this.files=[];this.staged=[];this.ahead=0;this.behind=0;this.current=null;this.tracking=null}isClean(){return!this.files.length}}t.StatusSummary=StatusSummary;var o;(function(e){e["ADDED"]="A";e["DELETED"]="D";e["MODIFIED"]="M";e["RENAMED"]="R";e["COPIED"]="C";e["UNMERGED"]="U";e["UNTRACKED"]="?";e["IGNORED"]="!";e["NONE"]=" "})(o||(o={}));function renamedFile(e){const t=/^(.+) -> (.+)$/.exec(e);if(!t){return{from:e,to:e}}return{from:String(t[1]),to:String(t[2])}}function parser(e,t,r){return[`${e}${t}`,r]}function conflicts(e,...t){return t.map((t=>parser(e,t,((e,t)=>n.append(e.conflicted,t)))))}const i=new Map([parser(o.NONE,o.ADDED,((e,t)=>n.append(e.created,t))),parser(o.NONE,o.DELETED,((e,t)=>n.append(e.deleted,t))),parser(o.NONE,o.MODIFIED,((e,t)=>n.append(e.modified,t))),parser(o.ADDED,o.NONE,((e,t)=>n.append(e.created,t)&&n.append(e.staged,t))),parser(o.ADDED,o.MODIFIED,((e,t)=>n.append(e.created,t)&&n.append(e.staged,t)&&n.append(e.modified,t))),parser(o.DELETED,o.NONE,((e,t)=>n.append(e.deleted,t)&&n.append(e.staged,t))),parser(o.MODIFIED,o.NONE,((e,t)=>n.append(e.modified,t)&&n.append(e.staged,t))),parser(o.MODIFIED,o.MODIFIED,((e,t)=>n.append(e.modified,t)&&n.append(e.staged,t))),parser(o.RENAMED,o.NONE,((e,t)=>{n.append(e.renamed,renamedFile(t))})),parser(o.RENAMED,o.MODIFIED,((e,t)=>{const r=renamedFile(t);n.append(e.renamed,r);n.append(e.modified,r.to)})),parser(o.UNTRACKED,o.UNTRACKED,((e,t)=>n.append(e.not_added,t))),...conflicts(o.ADDED,o.ADDED,o.UNMERGED),...conflicts(o.DELETED,o.DELETED,o.UNMERGED),...conflicts(o.UNMERGED,o.ADDED,o.DELETED,o.UNMERGED),["##",(e,t)=>{const r=/ahead (\d+)/;const n=/behind (\d+)/;const s=/^(.+?(?=(?:\.{3}|\s|$)))/;const o=/\.{3}(\S*)/;const i=/\son\s([\S]+)$/;let a;a=r.exec(t);e.ahead=a&&+a[1]||0;a=n.exec(t);e.behind=a&&+a[1]||0;a=s.exec(t);e.current=a&&a[1];a=o.exec(t);e.tracking=a&&a[1];a=i.exec(t);e.current=a&&a[1]||e.current}]]);const parseStatusSummary=function(e){const t=e.trim().split("\n");const r=new StatusSummary;for(let e=0,n=t.length;e{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.parseTagList=t.TagList=void 0;class TagList{constructor(e,t){this.all=e;this.latest=t}}t.TagList=TagList;const parseTagList=function(e,t=false){const r=e.split("\n").map(trimmed).filter(Boolean);if(!t){r.sort((function(e,t){const r=e.split(".");const n=t.split(".");if(r.length===1||n.length===1){return singleSorted(toNumber(r[0]),toNumber(n[0]))}for(let e=0,t=Math.max(r.length,n.length);ee.indexOf(".")>=0));return new TagList(r,n)};t.parseTagList=parseTagList;function singleSorted(e,t){const r=isNaN(e);const n=isNaN(t);if(r!==n){return r?1:-1}return r?sorted(e,t):0}function sorted(e,t){return e===t?0:e>t?1:-1}function trimmed(e){return e.trim()}function toNumber(e){if(typeof e==="string"){return parseInt(e.replace(/^\D+/g,""),10)||0}return 0}},8543: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,s){function fulfilled(e){try{step(n.next(e))}catch(e){s(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){s(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.GitExecutorChain=void 0;const s=r(2081);const o=r(4732);const i=r(2815);const a=r(6676);const c=r(847);class GitExecutorChain{constructor(e,t){this._executor=e;this._scheduler=t;this._chain=Promise.resolve();this._queue=new a.TasksPendingQueue}get binary(){return this._executor.binary}get outputHandler(){return this._executor.outputHandler}get cwd(){return this._executor.cwd}get env(){return this._executor.env}push(e){this._queue.push(e);return this._chain=this._chain.then((()=>this.attemptTask(e)))}attemptTask(e){return n(this,void 0,void 0,(function*(){const t=yield this._scheduler.next();const onQueueComplete=()=>this._queue.complete(e);try{const{logger:r}=this._queue.attempt(e);return yield i.isEmptyTask(e)?this.attemptEmptyTask(e,r):this.attemptRemoteTask(e,r)}catch(t){throw this.onFatalException(e,t)}finally{onQueueComplete();t()}}))}onFatalException(e,t){const r=t instanceof o.GitError?Object.assign(t,{task:e}):new o.GitError(e,t&&String(t));this._chain=Promise.resolve();this._queue.fatal(r);return r}attemptRemoteTask(e,t){return n(this,void 0,void 0,(function*(){const r=yield this.gitResponse(this.binary,e.commands,this.outputHandler,t.step("SPAWN"));const n=yield this.handleTaskData(e,r,t.step("HANDLE"));t(`passing response to task's parser as a %s`,e.format);if(i.isBufferTask(e)){return c.callTaskParser(e.parser,n)}return c.callTaskParser(e.parser,n.asStrings())}))}attemptEmptyTask(e,t){return n(this,void 0,void 0,(function*(){t(`empty task bypassing child process to call to task's parser`);return e.parser()}))}handleTaskData({onError:e,concatStdErr:t},{exitCode:r,stdOut:n,stdErr:s},o){return new Promise(((i,a)=>{o(`Preparing to handle process response exitCode=%d stdOut=`,r);if(r&&s.length&&e){o.info(`exitCode=%s handling with custom error handler`);o(`concatenate stdErr to stdOut: %j`,t);return e(r,Buffer.concat([...t?n:[],...s]).toString("utf-8"),(e=>{o.info(`custom error handler treated as success`);o(`custom error returned a %s`,c.objectToString(e));i(new c.GitOutputStreams(Buffer.isBuffer(e)?e:Buffer.from(String(e)),Buffer.concat(s)))}),a)}if(r&&s.length){o.info(`exitCode=%s treated as error when then child process has written to stdErr`);return a(Buffer.concat(s).toString("utf-8"))}if(t){o(`concatenating stdErr onto stdOut before processing`);o(`stdErr: $O`,s);n.push(...s)}o.info(`retrieving task output complete`);i(new c.GitOutputStreams(Buffer.concat(n),Buffer.concat(s)))}))}gitResponse(e,t,r,o){return n(this,void 0,void 0,(function*(){const n=o.sibling("output");const i={cwd:this.cwd,env:this.env,windowsHide:true};return new Promise((a=>{const c=[];const u=[];let l=false;function attemptClose(e,t="retry"){if(l||u.length||c.length){o.info(`exitCode=%s event=%s`,e,t);a({stdOut:c,stdErr:u,exitCode:e});l=true;n.destroy()}if(!l){l=true;setTimeout((()=>attemptClose(e,"deferred")),50);o("received %s event before content on stdOut/stdErr",t)}}o.info(`%s %o`,e,t);o("%O",i);const p=s.spawn(e,t,i);p.stdout.on("data",onDataReceived(c,"stdOut",o,n.step("stdOut")));p.stderr.on("data",onDataReceived(u,"stdErr",o,n.step("stdErr")));p.on("error",onErrorReceived(u,o));p.on("close",(e=>attemptClose(e,"close")));p.on("exit",(e=>attemptClose(e,"exit")));if(r){o(`Passing child process stdOut/stdErr to custom outputHandler`);r(e,p.stdout,p.stderr,[...t])}}))}))}}t.GitExecutorChain=GitExecutorChain;function onErrorReceived(e,t){return r=>{t(`[ERROR] child process exception %o`,r);e.push(Buffer.from(String(r.stack),"ascii"))}}function onDataReceived(e,t,r,n){return s=>{r(`%s received %L bytes`,t,s);n(`%B`,s);e.push(s)}}},4701:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.GitExecutor=void 0;const n=r(8543);class GitExecutor{constructor(e="git",t,r){this.binary=e;this.cwd=t;this._scheduler=r;this._chain=new n.GitExecutorChain(this,this._scheduler)}chain(){return new n.GitExecutorChain(this,this._scheduler)}push(e){return this._chain.push(e)}}t.GitExecutor=GitExecutor},941:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.gitP=void 0;const n=r(5131);const s=["customBinary","env","outputHandler","silent"];const o=["add","addAnnotatedTag","addConfig","addRemote","addTag","binaryCatFile","branch","branchLocal","catFile","checkIgnore","checkIsRepo","checkout","checkoutBranch","checkoutLatestTag","checkoutLocalBranch","clean","clone","commit","cwd","deleteLocalBranch","deleteLocalBranches","diff","diffSummary","exec","fetch","getRemotes","init","listConfig","listRemote","log","merge","mergeFromTo","mirror","mv","pull","push","pushTags","raw","rebase","remote","removeRemote","reset","revert","revparse","rm","rmKeepLocal","show","stash","stashList","status","subModule","submoduleAdd","submoduleInit","submoduleUpdate","tag","tags","updateServerInfo"];const{gitInstanceFactory:i}=r(1949);function gitP(...e){let t;let r=Promise.resolve();try{t=i(...e)}catch(e){r=Promise.reject(e)}function builderReturn(){return n}function chainReturn(){return r}const n=[...s,...o].reduce(((e,r)=>{const n=o.includes(r);const s=n?asyncWrapper(r,t):syncWrapper(r,t,e);const i=n?chainReturn:builderReturn;Object.defineProperty(e,r,{enumerable:false,configurable:false,value:t?s:i});return e}),{});return n;function asyncWrapper(e,t){return function(...n){if(typeof n[n.length]==="function"){throw new TypeError("Promise interface requires that handlers are not supplied inline, "+"trailing function not allowed in call to "+e)}return r.then((function(){return new Promise((function(r,s){const callback=(e,t)=>{if(e){return s(toError(e))}r(t)};n.push(callback);t[e].apply(t,n)}))}))}}function syncWrapper(e,t,r){return(...n)=>{t[e](...n);return r}}}t.gitP=gitP;function toError(e){if(e instanceof Error){return e}if(typeof e==="string"){return new Error(e)}return new n.GitResponseError(e)}},3421:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.Scheduler=void 0;const n=r(847);const s=r(9819);const o=r(7178);const i=o.createLogger("","scheduler");const a=(()=>{let e=0;return()=>{e++;const{promise:t,done:r}=s.createDeferred();return{promise:t,done:r,id:e}}})();class Scheduler{constructor(e=2){this.concurrency=e;this.pending=[];this.running=[];i(`Constructed, concurrency=%s`,e)}schedule(){if(!this.pending.length||this.running.length>=this.concurrency){i(`Schedule attempt ignored, pending=%s running=%s concurrency=%s`,this.pending.length,this.running.length,this.concurrency);return}const e=n.append(this.running,this.pending.shift());i(`Attempting id=%s`,e.id);e.done((()=>{i(`Completing id=`,e.id);n.remove(this.running,e);this.schedule()}))}next(){const{promise:e,id:t}=n.append(this.pending,a());i(`Scheduling id=%s`,t);this.schedule();return e}}t.Scheduler=Scheduler},6676:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.TasksPendingQueue=void 0;const n=r(7178);const s=r(4732);class TasksPendingQueue{constructor(e="GitExecutor"){this.logLabel=e;this._queue=new Map}withProgress(e){return this._queue.get(e)}createProgress(e){const t=TasksPendingQueue.getName(e.commands[0]);const r=n.createLogger(this.logLabel,t);return{task:e,logger:r,name:t}}push(e){const t=this.createProgress(e);t.logger("Adding task to the queue, commands = %o",e.commands);this._queue.set(e,t);return t}fatal(e){for(const[t,{logger:r}]of Array.from(this._queue.entries())){if(t===e.task){r.info(`Failed %o`,e);r(`Fatal exception, any as-yet un-started tasks run through this executor will not be attempted`)}else{r.info(`A fatal exception occurred in a previous task, the queue has been purged: %o`,e.message)}this.complete(t)}if(this._queue.size!==0){throw new Error(`Queue size should be zero after fatal: ${this._queue.size}`)}}complete(e){const t=this.withProgress(e);if(t){t.logger.destroy();this._queue.delete(e)}}attempt(e){const t=this.withProgress(e);if(!t){throw new s.GitError(undefined,"TasksPendingQueue: attempt called for an unknown task")}t.logger("Starting task");return t}static getName(e="empty"){return`task:${e}:${++TasksPendingQueue.counter}`}}t.TasksPendingQueue=TasksPendingQueue;TasksPendingQueue.counter=0},8850:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.taskCallback=void 0;const n=r(4732);const s=r(847);function taskCallback(e,t,r=s.NOOP){const onSuccess=e=>{r(null,e)};const onError=t=>{if((t===null||t===void 0?void 0:t.task)===e){if(t instanceof n.GitResponseError){return r(addDeprecationNoticeToError(t))}r(t)}};t.then(onSuccess,onError)}t.taskCallback=taskCallback;function addDeprecationNoticeToError(e){let log=e=>{console.warn(`simple-git deprecation notice: accessing GitResponseError.${e} should be GitResponseError.git.${e}, this will no longer be available in version 3`);log=s.NOOP};return Object.create(e,Object.getOwnPropertyNames(e.git).reduce(descriptorReducer,{}));function descriptorReducer(t,r){if(r in e){return t}t[r]={enumerable:false,configurable:false,get(){log(r);return e.git[r]}};return t}}},17:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.deleteBranchTask=t.deleteBranchesTask=t.branchLocalTask=t.branchTask=t.containsDeleteBranchCommand=void 0;const n=r(5131);const s=r(6086);const o=r(9264);function containsDeleteBranchCommand(e){const t=["-d","-D","--delete"];return e.some((e=>t.includes(e)))}t.containsDeleteBranchCommand=containsDeleteBranchCommand;function branchTask(e){const t=containsDeleteBranchCommand(e);const r=["branch",...e];if(r.length===1){r.push("-a")}if(!r.includes("-v")){r.splice(1,0,"-v")}return{format:"utf-8",commands:r,parser(e,r){if(t){return s.parseBranchDeletions(e,r).all[0]}return o.parseBranchSummary(e)}}}t.branchTask=branchTask;function branchLocalTask(){const e=o.parseBranchSummary;return{format:"utf-8",commands:["branch","-v"],parser:e}}t.branchLocalTask=branchLocalTask;function deleteBranchesTask(e,t=false){return{format:"utf-8",commands:["branch","-v",t?"-D":"-d",...e],parser(e,t){return s.parseBranchDeletions(e,t)},onError(e,t,r,n){if(!s.hasBranchDeletionError(t,e)){return n(t)}r(t)},concatStdErr:true}}t.deleteBranchesTask=deleteBranchesTask;function deleteBranchTask(e,t=false){const r={format:"utf-8",commands:["branch","-v",t?"-D":"-d",e],parser(t,r){return s.parseBranchDeletions(t,r).branches[e]},onError(e,t,o,i){if(!s.hasBranchDeletionError(t,e)){return i(t)}throw new n.GitResponseError(r.parser(t,""),t)},concatStdErr:true};return r}t.deleteBranchTask=deleteBranchTask},221:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.checkIsBareRepoTask=t.checkIsRepoRootTask=t.checkIsRepoTask=t.CheckRepoActions=void 0;const n=r(847);var s;(function(e){e["BARE"]="bare";e["IN_TREE"]="tree";e["IS_REPO_ROOT"]="root"})(s=t.CheckRepoActions||(t.CheckRepoActions={}));const onError=(e,t,r,s)=>{if(e===n.ExitCodes.UNCLEAN&&isNotRepoMessage(t)){return r("false")}s(t)};const parser=e=>e.trim()==="true";function checkIsRepoTask(e){switch(e){case s.BARE:return checkIsBareRepoTask();case s.IS_REPO_ROOT:return checkIsRepoRootTask()}const t=["rev-parse","--is-inside-work-tree"];return{commands:t,format:"utf-8",onError:onError,parser:parser}}t.checkIsRepoTask=checkIsRepoTask;function checkIsRepoRootTask(){const e=["rev-parse","--git-dir"];return{commands:e,format:"utf-8",onError:onError,parser(e){return/^\.(git)?$/.test(e.trim())}}}t.checkIsRepoRootTask=checkIsRepoRootTask;function checkIsBareRepoTask(){const e=["rev-parse","--is-bare-repository"];return{commands:e,format:"utf-8",onError:onError,parser:parser}}t.checkIsBareRepoTask=checkIsBareRepoTask;function isNotRepoMessage(e){return/(Not a git repository|Kein Git-Repository)/i.test(e)}},4386:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isCleanOptionsArray=t.cleanTask=t.cleanWithOptionsTask=t.CleanOptions=t.CONFIG_ERROR_UNKNOWN_OPTION=t.CONFIG_ERROR_MODE_REQUIRED=t.CONFIG_ERROR_INTERACTIVE_MODE=void 0;const n=r(5689);const s=r(847);const o=r(2815);t.CONFIG_ERROR_INTERACTIVE_MODE="Git clean interactive mode is not supported";t.CONFIG_ERROR_MODE_REQUIRED='Git clean mode parameter ("n" or "f") is required';t.CONFIG_ERROR_UNKNOWN_OPTION="Git clean unknown option found in: ";var i;(function(e){e["DRY_RUN"]="n";e["FORCE"]="f";e["IGNORED_INCLUDED"]="x";e["IGNORED_ONLY"]="X";e["EXCLUDING"]="e";e["QUIET"]="q";e["RECURSIVE"]="d"})(i=t.CleanOptions||(t.CleanOptions={}));const a=new Set(["i",...s.asStringArray(Object.values(i))]);function cleanWithOptionsTask(e,r){const{cleanMode:n,options:s,valid:i}=getCleanOptions(e);if(!n){return o.configurationErrorTask(t.CONFIG_ERROR_MODE_REQUIRED)}if(!i.options){return o.configurationErrorTask(t.CONFIG_ERROR_UNKNOWN_OPTION+JSON.stringify(e))}s.push(...r);if(s.some(isInteractiveMode)){return o.configurationErrorTask(t.CONFIG_ERROR_INTERACTIVE_MODE)}return cleanTask(n,s)}t.cleanWithOptionsTask=cleanWithOptionsTask;function cleanTask(e,t){const r=["clean",`-${e}`,...t];return{commands:r,format:"utf-8",parser(t){return n.cleanSummaryParser(e===i.DRY_RUN,t)}}}t.cleanTask=cleanTask;function isCleanOptionsArray(e){return Array.isArray(e)&&e.every((e=>a.has(e)))}t.isCleanOptionsArray=isCleanOptionsArray;function getCleanOptions(e){let t;let r=[];let n={cleanMode:false,options:true};e.replace(/[^a-z]i/g,"").split("").forEach((e=>{if(isCleanMode(e)){t=e;n.cleanMode=true}else{n.options=n.options&&isKnownOption(r[r.length]=`-${e}`)}}));return{cleanMode:t,options:r,valid:n}}function isCleanMode(e){return e===i.FORCE||e===i.DRY_RUN}function isKnownOption(e){return/^-[a-z]$/i.test(e)&&a.has(e.charAt(1))}function isInteractiveMode(e){if(/^-[^\-]/.test(e)){return e.indexOf("i")>0}return e==="--interactive"}},3173:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.cloneMirrorTask=t.cloneTask=void 0;const n=r(2815);const s=r(847);function cloneTask(e,t,r){const s=["clone",...r];if(typeof e==="string"){s.push(e)}if(typeof t==="string"){s.push(t)}return n.straightThroughStringTask(s)}t.cloneTask=cloneTask;function cloneMirrorTask(e,t,r){s.append(r,"--mirror");return cloneTask(e,t,r)}t.cloneMirrorTask=cloneMirrorTask},5494:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.commitTask=void 0;const n=r(3026);function commitTask(e,t,r){const s=["commit",...e.flatMap((e=>["-m",e])),...t,...r];return{commands:s,format:"utf-8",parser:n.parseCommitResult}}t.commitTask=commitTask},7597:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.listConfigTask=t.addConfigTask=void 0;const n=r(7219);function addConfigTask(e,t,r=false){const n=["config","--local"];if(r){n.push("--add")}n.push(e,t);return{commands:n,format:"utf-8",parser(e){return e}}}t.addConfigTask=addConfigTask;function listConfigTask(){return{commands:["config","--list","--show-origin","--null"],format:"utf-8",parser(e){return n.configListParser(e)}}}t.listConfigTask=listConfigTask},9241:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.diffSummaryTask=void 0;const n=r(2024);function diffSummaryTask(e){return{commands:["diff","--stat=4096",...e],format:"utf-8",parser(e){return n.parseDiffResult(e)}}}t.diffSummaryTask=diffSummaryTask},8823:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.fetchTask=void 0;const n=r(6254);function fetchTask(e,t,r){const s=["fetch",...r];if(e&&t){s.push(e,t)}return{commands:s,format:"utf-8",parser:n.parseFetchResult}}t.fetchTask=fetchTask},8199:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.hashObjectTask=void 0;const n=r(2815);function hashObjectTask(e,t){const r=["hash-object",e];if(t){r.push("-w")}return n.straightThroughStringTask(r,true)}t.hashObjectTask=hashObjectTask},6016:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.initTask=void 0;const n=r(8690);const s="--bare";function hasBareCommand(e){return e.includes(s)}function initTask(e=false,t,r){const o=["init",...r];if(e&&!hasBareCommand(o)){o.splice(1,0,s)}return{commands:o,concatStdErr:false,format:"utf-8",parser(e){return n.parseInit(o.includes("--bare"),t,e)}}}t.initTask=initTask},8627:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.logTask=t.parseLogOptions=void 0;const n=r(9729);const s=r(847);const o=new Set(["--pretty","max-count","maxCount","n","file","format","from","to","splitter","symmetric","multiLine","strictDate"]);function prettyFormat(e,t){const r=[];const n=[];Object.entries(e).forEach((([e,t])=>{r.push(e);n.push(t)}));return[r,n.join(t)]}function userOptions(e){return Object.fromEntries(Object.entries(e).filter((([e])=>!o.has(e))))}function parseLogOptions(e={},t=[]){const r=e.splitter||n.SPLITTER;const o=e.format||{hash:"%H",date:e.strictDate===false?"%ai":"%aI",message:"%s",refs:"%D",body:e.multiLine?"%B":"%b",author_name:"%aN",author_email:"%ae"};const[i,a]=prettyFormat(o,r);const c=[];const u=[`--pretty=format:${n.START_BOUNDARY}${a}${n.COMMIT_BOUNDARY}`,...t];const l=e.n||e["max-count"]||e.maxCount;if(l){u.push(`--max-count=${l}`)}if(e.from&&e.to){const t=e.symmetric!==false?"...":"..";c.push(`${e.from}${t}${e.to}`)}if(e.file){c.push("--follow",e.file)}s.appendTaskOptions(userOptions(e),u);return{fields:i,splitter:r,commands:[...u,...c]}}t.parseLogOptions=parseLogOptions;function logTask(e,t,r){return{commands:["log",...r],format:"utf-8",parser:n.createListLogSummaryParser(e,t)}}t.logTask=logTask},8829:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.mergeTask=void 0;const n=r(4732);const s=r(6412);const o=r(2815);function mergeTask(e){if(!e.length){return o.configurationErrorTask("Git.merge requires at least one option")}return{commands:["merge",...e],format:"utf-8",parser(e,t){const r=s.parseMergeResult(e,t);if(r.failed){throw new n.GitResponseError(r)}return r}}}t.mergeTask=mergeTask},6520:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.moveTask=void 0;const n=r(7444);const s=r(847);function moveTask(e,t){return{commands:["mv","-v",...s.asArray(e),t],format:"utf-8",parser:n.parseMoveResult}}t.moveTask=moveTask},4636:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.pullTask=void 0;const n=r(5658);function pullTask(e,t,r){const s=["pull",...r];if(e&&t){s.splice(1,0,e,t)}return{commands:s,format:"utf-8",parser(e,t){return n.parsePullResult(e,t)}}}t.pullTask=pullTask},1435:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.pushTask=t.pushTagsTask=void 0;const n=r(8530);const s=r(847);function pushTagsTask(e={},t){s.append(t,"--tags");return pushTask(e,t)}t.pushTagsTask=pushTagsTask;function pushTask(e={},t){const r=["push",...t];if(e.branch){r.splice(1,0,e.branch)}if(e.remote){r.splice(1,0,e.remote)}s.remove(r,"-v");s.append(r,"--verbose");s.append(r,"--porcelain");return{commands:r,format:"utf-8",parser:n.parsePushResult}}t.pushTask=pushTask},9866:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.removeRemoteTask=t.remoteTask=t.listRemotesTask=t.getRemotesTask=t.addRemoteTask=void 0;const n=r(9999);const s=r(2815);function addRemoteTask(e,t,r=[]){return s.straightThroughStringTask(["remote","add",...r,e,t])}t.addRemoteTask=addRemoteTask;function getRemotesTask(e){const t=["remote"];if(e){t.push("-v")}return{commands:t,format:"utf-8",parser:e?n.parseGetRemotesVerbose:n.parseGetRemotes}}t.getRemotesTask=getRemotesTask;function listRemotesTask(e=[]){const t=[...e];if(t[0]!=="ls-remote"){t.unshift("ls-remote")}return s.straightThroughStringTask(t)}t.listRemotesTask=listRemotesTask;function remoteTask(e=[]){const t=[...e];if(t[0]!=="remote"){t.unshift("remote")}return s.straightThroughStringTask(t)}t.remoteTask=remoteTask;function removeRemoteTask(e){return s.straightThroughStringTask(["remote","remove",e])}t.removeRemoteTask=removeRemoteTask},2377:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getResetMode=t.resetTask=t.ResetMode=void 0;const n=r(2815);var s;(function(e){e["MIXED"]="mixed";e["SOFT"]="soft";e["HARD"]="hard";e["MERGE"]="merge";e["KEEP"]="keep"})(s=t.ResetMode||(t.ResetMode={}));const o=Array.from(Object.values(s));function resetTask(e,t){const r=["reset"];if(isValidResetMode(e)){r.push(`--${e}`)}r.push(...t);return n.straightThroughStringTask(r)}t.resetTask=resetTask;function getResetMode(e){if(isValidResetMode(e)){return e}switch(typeof e){case"string":case"undefined":return s.SOFT}return}t.getResetMode=getResetMode;function isValidResetMode(e){return o.includes(e)}},810:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.stashListTask=void 0;const n=r(9729);const s=r(8627);function stashListTask(e={},t){const r=s.parseLogOptions(e);const o=n.createListLogSummaryParser(r.splitter,r.fields);return{commands:["stash","list",...r.commands,...t],format:"utf-8",parser:o}}t.stashListTask=stashListTask},9197:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.statusTask=void 0;const n=r(6790);function statusTask(e){return{format:"utf-8",commands:["status","--porcelain","-b","-u",...e],parser(e){return n.parseStatusSummary(e)}}}t.statusTask=statusTask},8772:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.updateSubModuleTask=t.subModuleTask=t.initSubModuleTask=t.addSubModuleTask=void 0;const n=r(2815);function addSubModuleTask(e,t){return subModuleTask(["add",e,t])}t.addSubModuleTask=addSubModuleTask;function initSubModuleTask(e){return subModuleTask(["init",...e])}t.initSubModuleTask=initSubModuleTask;function subModuleTask(e){const t=[...e];if(t[0]!=="submodule"){t.unshift("submodule")}return n.straightThroughStringTask(t)}t.subModuleTask=subModuleTask;function updateSubModuleTask(e){return subModuleTask(["update",...e])}t.updateSubModuleTask=updateSubModuleTask},8540:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.addAnnotatedTagTask=t.addTagTask=t.tagListTask=void 0;const n=r(4539);function tagListTask(e=[]){const t=e.some((e=>/^--sort=/.test(e)));return{format:"utf-8",commands:["tag","-l",...e],parser(e){return n.parseTagList(e,t)}}}t.tagListTask=tagListTask;function addTagTask(e){return{format:"utf-8",commands:["tag",e],parser(){return{name:e}}}}t.addTagTask=addTagTask;function addAnnotatedTagTask(e,t){return{format:"utf-8",commands:["tag","-a","-m",t,e],parser(){return{name:e}}}}t.addAnnotatedTagTask=addAnnotatedTagTask},2815:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isEmptyTask=t.isBufferTask=t.straightThroughStringTask=t.configurationErrorTask=t.adhocExecTask=t.EMPTY_COMMANDS=void 0;const n=r(740);t.EMPTY_COMMANDS=[];function adhocExecTask(e){return{commands:t.EMPTY_COMMANDS,format:"utf-8",parser:e}}t.adhocExecTask=adhocExecTask;function configurationErrorTask(e){return{commands:t.EMPTY_COMMANDS,format:"utf-8",parser(){throw typeof e==="string"?new n.TaskConfigurationError(e):e}}}t.configurationErrorTask=configurationErrorTask;function straightThroughStringTask(e,t=false){return{commands:e,format:"utf-8",parser(e){return t?String(e).trim():e}}}t.straightThroughStringTask=straightThroughStringTask;function isBufferTask(e){return e.format==="buffer"}t.isBufferTask=isBufferTask;function isEmptyTask(e){return!e.commands.length}t.isEmptyTask=isEmptyTask},7366:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.filterHasLength=t.filterFunction=t.filterPlainObject=t.filterStringOrStringArray=t.filterStringArray=t.filterString=t.filterPrimitives=t.filterArray=t.filterType=void 0;const n=r(8237);function filterType(e,t,r){if(t(e)){return e}return arguments.length>2?r:undefined}t.filterType=filterType;const filterArray=e=>Array.isArray(e);t.filterArray=filterArray;function filterPrimitives(e,t){return/number|string|boolean/.test(typeof e)&&(!t||!t.includes(typeof e))}t.filterPrimitives=filterPrimitives;const filterString=e=>typeof e==="string";t.filterString=filterString;const filterStringArray=e=>Array.isArray(e)&&e.every(t.filterString);t.filterStringArray=filterStringArray;const filterStringOrStringArray=e=>t.filterString(e)||Array.isArray(e)&&e.every(t.filterString);t.filterStringOrStringArray=filterStringOrStringArray;function filterPlainObject(e){return!!e&&n.objectToString(e)==="[object Object]"}t.filterPlainObject=filterPlainObject;function filterFunction(e){return typeof e==="function"}t.filterFunction=filterFunction;const filterHasLength=e=>{if(e==null||"number|boolean|function".includes(typeof e)){return false}return Array.isArray(e)||typeof e==="string"||typeof e.length==="number"};t.filterHasLength=filterHasLength},2185:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ExitCodes=void 0;var r;(function(e){e[e["SUCCESS"]=0]="SUCCESS";e[e["ERROR"]=1]="ERROR";e[e["UNCLEAN"]=128]="UNCLEAN"})(r=t.ExitCodes||(t.ExitCodes={}))},6578:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.GitOutputStreams=void 0;class GitOutputStreams{constructor(e,t){this.stdOut=e;this.stdErr=t}asStrings(){return new GitOutputStreams(this.stdOut.toString("utf8"),this.stdErr.toString("utf8"))}}t.GitOutputStreams=GitOutputStreams},847:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;Object.defineProperty(e,n,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(7366),t);s(r(2185),t);s(r(6578),t);s(r(9536),t);s(r(5218),t);s(r(3546),t);s(r(1351),t);s(r(8237),t)},9536:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.RemoteLineParser=t.LineParser=void 0;class LineParser{constructor(e,t){this.matches=[];this.parse=(e,t)=>{this.resetMatches();if(!this._regExp.every(((t,r)=>this.addMatch(t,r,e(r))))){return false}return this.useMatches(t,this.prepareMatches())!==false};this._regExp=Array.isArray(e)?e:[e];if(t){this.useMatches=t}}useMatches(e,t){throw new Error(`LineParser:useMatches not implemented`)}resetMatches(){this.matches.length=0}prepareMatches(){return this.matches}addMatch(e,t,r){const n=r&&e.exec(r);if(n){this.pushMatch(t,n)}return!!n}pushMatch(e,t){this.matches.push(...t.slice(1))}}t.LineParser=LineParser;class RemoteLineParser extends LineParser{addMatch(e,t,r){return/^remote:\s/.test(String(r))&&super.addMatch(e,t,r)}pushMatch(e,t){if(e>0||t.length>1){super.pushMatch(e,t)}}}t.RemoteLineParser=RemoteLineParser},5218:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.createInstanceConfig=void 0;const r={binary:"git",maxConcurrentProcesses:5};function createInstanceConfig(...e){const t=process.cwd();const n=Object.assign(Object.assign({baseDir:t},r),...e.filter((e=>typeof e==="object"&&e)));n.baseDir=n.baseDir||t;return n}t.createInstanceConfig=createInstanceConfig},3546:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.trailingFunctionArgument=t.trailingOptionsArgument=t.getTrailingOptions=t.appendTaskOptions=void 0;const n=r(7366);const s=r(8237);function appendTaskOptions(e,t=[]){if(!n.filterPlainObject(e)){return t}return Object.keys(e).reduce(((t,r)=>{const s=e[r];if(n.filterPrimitives(s,["boolean"])){t.push(r+"="+s)}else{t.push(r)}return t}),t)}t.appendTaskOptions=appendTaskOptions;function getTrailingOptions(e,t=0,r=false){const n=[];for(let r=0,s=t<0?e.length:t;r{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.parseStringResponse=t.callTaskParser=void 0;const n=r(8237);function callTaskParser(e,t){return e(t.stdOut,t.stdErr)}t.callTaskParser=callTaskParser;function parseStringResponse(e,t,...r){r.forEach((r=>{for(let s=n.toLinesWithContent(r),o=0,i=s.length;o{if(o+e>=i){return}return s[o+e]};t.some((({parse:t})=>t(line,e)))}}));return e}t.parseStringResponse=parseStringResponse},8237:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.asNumber=t.asStringArray=t.asArray=t.objectToString=t.remove=t.append=t.folderExists=t.forEachLineWithContent=t.toLinesWithContent=t.last=t.first=t.splitOn=t.isUserFunction=t.asFunction=t.NOOP=void 0;const n=r(4751);const NOOP=()=>{};t.NOOP=NOOP;function asFunction(e){return typeof e==="function"?e:t.NOOP}t.asFunction=asFunction;function isUserFunction(e){return typeof e==="function"&&e!==t.NOOP}t.isUserFunction=isUserFunction;function splitOn(e,t){const r=e.indexOf(t);if(r<=0){return[e,""]}return[e.substr(0,r),e.substr(r+1)]}t.splitOn=splitOn;function first(e,t=0){return isArrayLike(e)&&e.length>t?e[t]:undefined}t.first=first;function last(e,t=0){if(isArrayLike(e)&&e.length>t){return e[e.length-1-t]}}t.last=last;function isArrayLike(e){return!!(e&&typeof e.length==="number")}function toLinesWithContent(e,t=true,r="\n"){return e.split(r).reduce(((e,r)=>{const n=t?r.trim():r;if(n){e.push(n)}return e}),[])}t.toLinesWithContent=toLinesWithContent;function forEachLineWithContent(e,t){return toLinesWithContent(e,true).map((e=>t(e)))}t.forEachLineWithContent=forEachLineWithContent;function folderExists(e){return n.exists(e,n.FOLDER)}t.folderExists=folderExists;function append(e,t){if(Array.isArray(e)){if(!e.includes(t)){e.push(t)}}else{e.add(t)}return t}t.append=append;function remove(e,t){if(Array.isArray(e)){const r=e.indexOf(t);if(r>=0){e.splice(r,1)}}else{e.delete(t)}return t}t.remove=remove;t.objectToString=Object.prototype.toString.call.bind(Object.prototype.toString);function asArray(e){return Array.isArray(e)?e:[e]}t.asArray=asArray;function asStringArray(e){return asArray(e).map(String)}t.asStringArray=asStringArray;function asNumber(e,t=0){if(e==null){return t}const r=parseInt(e,10);return isNaN(r)?t:r}t.asNumber=asNumber},9453:(e,t)=>{"use strict";t.__esModule=true;function parseArgsStringToArgv(e,t,r){var n=/([^\s'"]([^\s'"]*(['"])([^\3]*?)\3)+[^\s'"]*)|[^\s'"]+|(['"])([^\5]*?)\5/gi;var s=e;var o=[];if(t){o.push(t)}if(r){o.push(r)}var i;do{i=n.exec(s);if(i!==null){o.push(firstString(i[1],i[6],i[0]))}}while(i!==null);return o}t["default"]=parseArgsStringToArgv;t.parseArgsStringToArgv=parseArgsStringToArgv;function firstString(){var e=[];for(var t=0;t{"use strict";e.exports=e=>{if(typeof e!=="string"){throw new TypeError("Expected a string, got "+typeof e)}if(e.charCodeAt(0)===65279){return e.slice(1)}return e}},5515:e=>{"use strict";e.exports=function(e){var t=typeof e==="string"?"\n":"\n".charCodeAt();var r=typeof e==="string"?"\r":"\r".charCodeAt();if(e[e.length-1]===t){e=e.slice(0,e.length-1)}if(e[e.length-1]===r){e=e.slice(0,e.length-1)}return e}},9318:(e,t,r)=>{"use strict";const n=r(2037);const s=r(6224);const o=r(1621);const{env:i}=process;let a;if(o("no-color")||o("no-colors")||o("color=false")||o("color=never")){a=0}else if(o("color")||o("colors")||o("color=true")||o("color=always")){a=1}if("FORCE_COLOR"in i){if(i.FORCE_COLOR==="true"){a=1}else if(i.FORCE_COLOR==="false"){a=0}else{a=i.FORCE_COLOR.length===0?1:Math.min(parseInt(i.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(o("color=16m")||o("color=full")||o("color=truecolor")){return 3}if(o("color=256")){return 2}if(e&&!t&&a===undefined){return 0}const r=a||0;if(i.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 i){if(["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some((e=>e in i))||i.CI_NAME==="codeship"){return 1}return r}if("TEAMCITY_VERSION"in i){return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(i.TEAMCITY_VERSION)?1:0}if(i.COLORTERM==="truecolor"){return 3}if("TERM_PROGRAM"in i){const e=parseInt((i.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(i.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}if(/-256(color)?$/i.test(i.TERM)){return 2}if(/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(i.TERM)){return 1}if("COLORTERM"in i){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,s.isatty(1))),stderr:translateLevel(supportsColor(true,s.isatty(2)))}},4294:(e,t,r)=>{e.exports=r(4219)},4219:(e,t,r)=>{"use strict";var n=r(1808);var s=r(4404);var o=r(3685);var i=r(5687);var a=r(2361);var c=r(9491);var u=r(3837);t.httpOverHttp=httpOverHttp;t.httpsOverHttp=httpsOverHttp;t.httpOverHttps=httpOverHttps;t.httpsOverHttps=httpsOverHttps;function httpOverHttp(e){var t=new TunnelingAgent(e);t.request=o.request;return t}function httpsOverHttp(e){var t=new TunnelingAgent(e);t.request=o.request;t.createSocket=createSecureSocket;t.defaultPort=443;return t}function httpOverHttps(e){var t=new TunnelingAgent(e);t.request=i.request;return t}function httpsOverHttps(e){var t=new TunnelingAgent(e);t.request=i.request;t.createSocket=createSecureSocket;t.defaultPort=443;return t}function TunnelingAgent(e){var t=this;t.options=e||{};t.proxyOptions=t.options.proxy||{};t.maxSockets=t.options.maxSockets||o.Agent.defaultMaxSockets;t.requests=[];t.sockets=[];t.on("free",(function onFree(e,r,n,s){var o=toOptions(r,n,s);for(var i=0,a=t.requests.length;i=this.maxSockets){s.requests.push(o);return}s.createSocket(o,(function(t){t.on("free",onFree);t.on("close",onCloseOrRemove);t.on("agentRemove",onCloseOrRemove);e.onSocket(t);function onFree(){s.emit("free",t,o)}function onCloseOrRemove(e){s.removeSocket(t);t.removeListener("free",onFree);t.removeListener("close",onCloseOrRemove);t.removeListener("agentRemove",onCloseOrRemove)}}))};TunnelingAgent.prototype.createSocket=function createSocket(e,t){var r=this;var n={};r.sockets.push(n);var s=mergeOptions({},r.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:false,headers:{host:e.host+":"+e.port}});if(e.localAddress){s.localAddress=e.localAddress}if(s.proxyAuth){s.headers=s.headers||{};s.headers["Proxy-Authorization"]="Basic "+new Buffer(s.proxyAuth).toString("base64")}l("making CONNECT request");var o=r.request(s);o.useChunkedEncodingByDefault=false;o.once("response",onResponse);o.once("upgrade",onUpgrade);o.once("connect",onConnect);o.once("error",onError);o.end();function onResponse(e){e.upgrade=true}function onUpgrade(e,t,r){process.nextTick((function(){onConnect(e,t,r)}))}function onConnect(s,i,a){o.removeAllListeners();i.removeAllListeners();if(s.statusCode!==200){l("tunneling socket could not be established, statusCode=%d",s.statusCode);i.destroy();var c=new Error("tunneling socket could not be established, "+"statusCode="+s.statusCode);c.code="ECONNRESET";e.request.emit("error",c);r.removeSocket(n);return}if(a.length>0){l("got illegal response body from proxy");i.destroy();var c=new Error("got illegal response body from proxy");c.code="ECONNRESET";e.request.emit("error",c);r.removeSocket(n);return}l("tunneling connection has established");r.sockets[r.sockets.indexOf(n)]=i;return t(i)}function onError(t){o.removeAllListeners();l("tunneling socket could not be established, cause=%s\n",t.message,t.stack);var s=new Error("tunneling socket could not be established, "+"cause="+t.message);s.code="ECONNRESET";e.request.emit("error",s);r.removeSocket(n)}};TunnelingAgent.prototype.removeSocket=function removeSocket(e){var t=this.sockets.indexOf(e);if(t===-1){return}this.sockets.splice(t,1);var r=this.requests.shift();if(r){this.createSocket(r,(function(e){r.request.onSocket(e)}))}};function createSecureSocket(e,t){var r=this;TunnelingAgent.prototype.createSocket.call(r,e,(function(n){var o=e.request.getHeader("host");var i=mergeOptions({},r.options,{socket:n,servername:o?o.replace(/:.*$/,""):e.host});var a=s.connect(0,i);r.sockets[r.sockets.indexOf(n)]=a;t(a)}))}function toOptions(e,t,r){if(typeof e==="string"){return{host:e,port:t,localAddress:r}}return e}function mergeOptions(e){for(var t=1,r=arguments.length;t{"use strict";Object.defineProperty(t,"__esModule",{value:true});function _interopDefault(e){return e&&typeof e==="object"&&"default"in e?e["default"]:e}var n=_interopDefault(r(4824));function getUserAgent(){try{return`Node.js/${process.version.substr(1)} (${n()}; ${process.arch})`}catch(e){if(/wmic os get Caption/.test(e.message)){return"Windows "}return""}}t.getUserAgent=getUserAgent},3515:(e,t,r)=>{"use strict";const n=r(2037);const s=r(5447);const o=new Map([["10.0","10"],["6.3","8.1"],["6.2","8"],["6.1","7"],["6.0","Vista"],["5.2","Server 2003"],["5.1","XP"],["5.0","2000"],["4.9","ME"],["4.1","98"],["4.0","95"]]);const windowsRelease=e=>{const t=/\d+\.\d/.exec(e||n.release());if(e&&!t){throw new Error("`release` argument doesn't match `n.n`")}const r=(t||[])[0];if((!e||e===n.release())&&["6.1","6.2","6.3","10.0"].includes(r)){let e;try{e=s.sync("wmic",["os","get","Caption"]).stdout||""}catch(t){e=s.sync("powershell",["(Get-CimInstance -ClassName Win32_OperatingSystem).caption"]).stdout||""}const t=(e.match(/2008|2012|2016|2019/)||[])[0];if(t){return`Server ${t}`}}return o.get(r)};e.exports=windowsRelease},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;ra.setOutput(e,t)));function getInput(e,t=false){if(t)return a.getBooleanInput(e);return a.getInput(e)}t.getInput=getInput;function setOutput(e,r){a.debug(`Setting output: ${e}=${r}`);t.outputs[e]=r;a.setOutput(e,r)}t.setOutput=setOutput;function logOutputs(){a.startGroup("Outputs");for(const e in t.outputs){a.info(`${e}: ${t.outputs[e]}`)}a.endGroup()}t.logOutputs=logOutputs;function checkInputs(){return i(this,void 0,void 0,(function*(){function setInput(e,t){if(t)return process.env[`INPUT_${e.toUpperCase()}`]=t;else return delete process.env[`INPUT_${e.toUpperCase()}`]}function setDefault(e,t){if(!getInput(e))setInput(e,t);return getInput(e)}if(!getInput("add")&&!getInput("remove"))throw new Error("Both 'add' and 'remove' are empty, the action has nothing to do.");if(getInput("add")){const e=(0,c.parseInputArray)(getInput("add"));if(e.length==1)a.info("Add input parsed as single string, running 1 git add command.");else if(e.length>1)a.info(`Add input parsed as string array, running ${e.length} git add commands.`);else a.setFailed("Add input: array length < 1")}if(getInput("remove")){const e=(0,c.parseInputArray)(getInput("remove")||"");if(e.length==1)a.info("Remove input parsed as single string, running 1 git rm command.");else if(e.length>1)a.info(`Remove input parsed as string array, running ${e.length} git rm commands.`);else a.setFailed("Remove input: array length < 1")}const e=["github_actor","user_info","github_actions"];if(!e.includes(getInput("default_author")))throw new Error(`'${getInput("default_author")}' is not a valid value for default_author. Valid values: ${e.join(", ")}`);let t,r;switch(getInput("default_author")){case"github_actor":{t=process.env.GITHUB_ACTOR;r=`${process.env.GITHUB_ACTOR}@users.noreply.github.com`;break}case"user_info":{if(!getInput("author_name")||!getInput("author_email")){const e=yield(0,c.getUserInfo)(process.env.GITHUB_ACTOR);if(!(e===null||e===void 0?void 0:e.name))a.warning("Couldn't fetch author name, filling with github_actor.");if(!(e===null||e===void 0?void 0:e.email))a.warning("Couldn't fetch author email, filling with github_actor.");(e===null||e===void 0?void 0:e.name)&&(t=e===null||e===void 0?void 0:e.name);(e===null||e===void 0?void 0:e.email)&&(r=e.email);if(t&&r)break}!t&&(t=process.env.GITHUB_ACTOR);!r&&(r=`${process.env.GITHUB_ACTOR}@users.noreply.github.com`);break}case"github_actions":{t="github-actions";r="41898282+github-actions[bot]@users.noreply.github.com";break}default:throw new Error("This should not happen, please contact the author of this action. (checkInputs.author)")}setDefault("author_name",t);setDefault("author_email",r);a.info(`> Using '${getInput("author_name")} <${getInput("author_email")}>' as author.`);if(getInput("committer_name")||getInput("committer_email"))a.info(`> Using custom committer info: ${getInput("committer_name")||getInput("author_name")+" [from author info]"} <${getInput("committer_email")||getInput("author_email")+" [from author info]"}>`);setDefault("committer_name",getInput("author_name"));setDefault("committer_email",getInput("author_email"));a.debug(`Committer: ${getInput("committer_name")} <${getInput("committer_email")}>`);setDefault("message",`Commit from GitHub Actions (${process.env.GITHUB_WORKFLOW})`);a.info(`> Using "${getInput("message")}" as commit message.`);const n=["ignore","exitImmediately","exitAtEnd"];if(!n.includes(getInput("pathspec_error_handling")))throw new Error(`"${getInput("pathspec_error_handling")}" is not a valid value for the 'pathspec_error_handling' input. Valid values are: ${n.join(", ")}`);if(getInput("push")){let e;try{e=getInput("push",true)}catch(t){e=getInput("push")}a.debug(`Current push option: '${e}' (parsed as ${typeof e})`)}if(!getInput("github_token"))a.warning("No github_token has been detected, the action may fail if it needs to use the API")}))}t.checkInputs=checkInputs},399:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;Object.defineProperty(e,n,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.prototype.hasOwnProperty.call(e,r))n(t,e,r);s(t,e);return t};var i=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,s){function fulfilled(e){try{step(n.next(e))}catch(e){s(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){s(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())}))};var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});const c=o(r(2186));const u=a(r(1017));const l=a(r(1477));const p=r(8672);const d=r(2629);const h=u.default.join(process.cwd(),(0,p.getInput)("cwd")||"");const m=(0,l.default)({baseDir:h});const g=[];c.info(`Running in ${h}`);(()=>i(void 0,void 0,void 0,(function*(){yield(0,p.checkInputs)();c.startGroup("Internal logs");c.info("> Staging files...");const e=(0,p.getInput)("pathspec_error_handling");if((0,p.getInput)("add")){c.info("> Adding files...");yield add(e=="ignore"?"pathspec":"none")}else c.info("> No files to add.");if((0,p.getInput)("remove")){c.info("> Removing files...");yield remove(e=="ignore"?"pathspec":"none")}else c.info("> No files to remove.");c.info("> Checking for uncommitted changes in the git working tree...");const t=(yield m.diffSummary(["--cached"])).files.length;if(t>0){c.info(`> Found ${t} changed files.`);yield m.addConfig("user.email",(0,p.getInput)("author_email"),undefined,d.log).addConfig("user.name",(0,p.getInput)("author_name"),undefined,d.log).addConfig("author.email",(0,p.getInput)("author_email"),undefined,d.log).addConfig("author.name",(0,p.getInput)("author_name"),undefined,d.log).addConfig("committer.email",(0,p.getInput)("committer_email"),undefined,d.log).addConfig("committer.name",(0,p.getInput)("committer_name"),undefined,d.log);c.debug("> Current git config\n"+JSON.stringify((yield m.listConfig()).all,null,2));yield m.fetch(["--tags","--force"],d.log);const e=(0,p.getInput)("new_branch");if(e){yield m.checkout(e).then((()=>{(0,d.log)(undefined,`'${e}' branch already existed.`)})).catch((()=>{(0,d.log)(undefined,`Creating '${e}' branch.`);return m.checkoutLocalBranch(e,d.log)}))}const r=(0,p.getInput)("pull");if(r){c.info("> Pulling from remote...");c.debug(`Current git pull arguments: ${r}`);yield m.fetch(undefined,d.log).pull(undefined,undefined,(0,d.matchGitArgs)(r),d.log)}else c.info("> Not pulling from repo.");c.info("> Creating commit...");yield m.commit((0,p.getInput)("message"),(0,d.matchGitArgs)((0,p.getInput)("commit")||""),((e,t)=>{if(t){(0,p.setOutput)("committed","true");(0,p.setOutput)("commit_sha",t.commit)}return(0,d.log)(e,t)}));if((0,p.getInput)("tag")){c.info("> Tagging commit...");yield m.tag((0,d.matchGitArgs)((0,p.getInput)("tag")||""),((e,t)=>{if(t)(0,p.setOutput)("tagged","true");return(0,d.log)(e,t)})).then((e=>{(0,p.setOutput)("tagged","true");return(0,d.log)(null,e)})).catch((e=>c.setFailed(e)))}else c.info("> No tag info provided.");let n;try{n=(0,p.getInput)("push",true)}catch(e){n=(0,p.getInput)("push")}if(n){c.info("> Pushing commit to repo...");if(n===true){c.debug(`Running: git push origin ${(0,p.getInput)("new_branch")||""} --set-upstream`);yield m.push("origin",(0,p.getInput)("new_branch"),{"--set-upstream":null},((e,t)=>{if(t)(0,p.setOutput)("pushed","true");return(0,d.log)(e,t)}))}else{c.debug(`Running: git push ${n}`);yield m.push(undefined,undefined,(0,d.matchGitArgs)(n),((e,t)=>{if(t)(0,p.setOutput)("pushed","true");return(0,d.log)(e,t)}))}if((0,p.getInput)("tag")){c.info("> Pushing tags to repo...");yield m.pushTags("origin",undefined,((e,t)=>(0,d.log)(undefined,e||t))).catch((()=>{c.info("> Tag push failed: deleting remote tag and re-pushing...");return m.push(undefined,undefined,{"--delete":null,origin:null,[(0,d.matchGitArgs)((0,p.getInput)("tag")||"").filter((e=>!e.startsWith("-")))[0]]:null},d.log).pushTags("origin",undefined,d.log)}))}else c.info("> No tags to push.")}else c.info("> Not pushing anything.");c.endGroup();c.info("> Task completed.")}else{c.endGroup();c.info("> Working tree clean. Nothing to commit.")}})))().then((()=>{if(g.length==1)throw g[0];else if(g.length>1){g.forEach((e=>c.error(e)));throw"There have been multiple runtime errors."}})).then(p.logOutputs).catch((e=>{c.endGroup();(0,p.logOutputs)();c.setFailed(e)}));function add(e="none"){return i(this,void 0,void 0,(function*(){const t=(0,p.getInput)("add");if(!t)return[];const r=(0,d.parseInputArray)(t);const n=[];for(const t of r){n.push(yield m.add((0,d.matchGitArgs)(t),((t,r)=>(0,d.log)(e=="all"?null:t,r))).catch((r=>{if(e=="all")return;if(r.message.includes("fatal: pathspec")&&r.message.includes("did not match any files")){if(e=="pathspec")return;const r=(0,p.getInput)("pathspec_error_handling"),n=new Error(`Add command did not match any file: git add ${t}`);if(r=="exitImmediately")throw n;if(r=="exitAtEnd")g.push(n)}else throw r})))}return n}))}function remove(e="none"){return i(this,void 0,void 0,(function*(){const t=(0,p.getInput)("remove");if(!t)return[];const r=(0,d.parseInputArray)(t);const n=[];for(const t of r){n.push(yield m.rm((0,d.matchGitArgs)(t),((t,r)=>(0,d.log)(e=="all"?null:t,r))).catch((r=>{if(e=="all")return;if(r.message.includes("fatal: pathspec")&&r.message.includes("did not match any files")){if(e=="pathspec")return;const r=(0,p.getInput)("pathspec_error_handling"),n=new Error(`Remove command did not match any file:\n git rm ${t}`);if(r=="exitImmediately")throw n;if(r=="exitAtEnd")g.push(n)}else throw r})))}return n}))}},2629:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;Object.defineProperty(e,n,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.prototype.hasOwnProperty.call(e,r))n(t,e,r);s(t,e);return t};var i=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,s){function fulfilled(e){try{step(n.next(e))}catch(e){s(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){s(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())}))};var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.readJSON=t.parseInputArray=t.matchGitArgs=t.log=t.getUserInfo=t.tools=void 0;const c=r(9453);const u=o(r(2186));const l=a(r(1917));const p=r(7045);const d=a(r(7147));t.tools=new p.Toolkit({secrets:["GITHUB_EVENT_PATH","GITHUB_EVENT_NAME","GITHUB_REF","GITHUB_ACTOR"]});function getUserInfo(e){var r,n;return i(this,void 0,void 0,(function*(){if(!e)return undefined;const s=yield t.tools.github.users.getByUsername({username:e});u.debug(`Fetched github actor from the API: ${JSON.stringify(s===null||s===void 0?void 0:s.data,null,2)}`);return{name:(r=s===null||s===void 0?void 0:s.data)===null||r===void 0?void 0:r.name,email:(n=s===null||s===void 0?void 0:s.data)===null||n===void 0?void 0:n.email}}))}t.getUserInfo=getUserInfo;function log(e,t){if(t)console.log(t);if(e)u.error(e)}t.log=log;function matchGitArgs(e){const t=(0,c.parseArgsStringToArgv)(e);u.debug(`Git args parsed:\n - Original: ${e}\n - Parsed: ${JSON.stringify(t)}`);return t}t.matchGitArgs=matchGitArgs;function parseInputArray(e){try{const t=JSON.parse(e);if(t&&Array.isArray(t)&&t.every((e=>typeof e=="string"))){u.debug(`Input parsed as JSON array of length ${t.length}`);return t}}catch(e){}try{const t=l.default.load(e);if(t&&Array.isArray(t)&&t.every((e=>typeof e=="string"))){u.debug(`Input parsed as YAML array of length ${t.length}`);return t}}catch(e){}u.debug("Input parsed as single string");return[e]}t.parseInputArray=parseInputArray;function readJSON(e){let t;try{t=d.default.readFileSync(e,{encoding:"utf8"})}catch(t){throw`Couldn't read file. File path: ${e}`}try{return JSON.parse(t)}catch(t){throw`Couldn't parse file to JSON. File path: ${e}`}}t.readJSON=readJSON},2877:module=>{module.exports=eval("require")("encoding")},9491:e=>{"use strict";e.exports=require("assert")},2081:e=>{"use strict";e.exports=require("child_process")},2057:e=>{"use strict";e.exports=require("constants")},2361:e=>{"use strict";e.exports=require("events")},7147:e=>{"use strict";e.exports=require("fs")},3685:e=>{"use strict";e.exports=require("http")},5687:e=>{"use strict";e.exports=require("https")},1808:e=>{"use strict";e.exports=require("net")},2037:e=>{"use strict";e.exports=require("os")},1017:e=>{"use strict";e.exports=require("path")},4521:e=>{"use strict";e.exports=require("readline")},2781:e=>{"use strict";e.exports=require("stream")},4404:e=>{"use strict";e.exports=require("tls")},6224:e=>{"use strict";e.exports=require("tty")},7310:e=>{"use strict";e.exports=require("url")},3837:e=>{"use strict";e.exports=require("util")},9796:e=>{"use strict";e.exports=require("zlib")},6998:e=>{"use strict";e.exports=JSON.parse('{"name":"signale","version":"1.4.0","description":"👋 Hackable console logger","license":"MIT","repository":"klaussinani/signale","author":{"name":"Klaus Sinani","email":"klaussinani@gmail.com","url":"https://klaussinani.github.io"},"maintainers":[{"name":"Mario Sinani","email":"mariosinani@protonmail.ch","url":"https://mariocfhq.github.io"}],"engines":{"node":">=6"},"files":["index.js","signale.js","types.js"],"keywords":["hackable","colorful","console","logger"],"scripts":{"test":"xo"},"dependencies":{"chalk":"^2.3.2","figures":"^2.0.0","pkg-conf":"^2.1.0"},"devDependencies":{"xo":"*"},"options":{"default":{"displayScope":true,"displayBadge":true,"displayDate":false,"displayFilename":false,"displayLabel":true,"displayTimestamp":false,"underlineLabel":true,"underlineMessage":false,"underlinePrefix":false,"underlineSuffix":false,"uppercaseLabel":false}},"xo":{"space":2}}')}};var __webpack_module_cache__={};function __nccwpck_require__(e){var t=__webpack_module_cache__[e];if(t!==undefined){return t.exports}var r=__webpack_module_cache__[e]={id:e,loaded:false,exports:{}};var n=true;try{__webpack_modules__[e].call(r.exports,r,r.exports,__nccwpck_require__);n=false}finally{if(n)delete __webpack_module_cache__[e]}r.loaded=true;return r.exports}(()=>{__nccwpck_require__.nmd=e=>{e.paths=[];if(!e.children)e.children=[];return e}})();if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=__dirname+"/";var __webpack_exports__=__nccwpck_require__(399);module.exports=__webpack_exports__})(); \ No newline at end of file + */function isObject(e){return Object.prototype.toString.call(e)==="[object Object]"}function isPlainObject(e){var t,r;if(isObject(e)===false)return false;t=e.constructor;if(t===undefined)return true;r=t.prototype;if(isObject(r)===false)return false;if(r.hasOwnProperty("isPrototypeOf")===false){return false}return true}t.isPlainObject=isPlainObject},1554:e=>{"use strict";var t=e.exports=function(e){return e!==null&&typeof e==="object"&&typeof e.pipe==="function"};t.writable=function(e){return t(e)&&e.writable!==false&&typeof e._write==="function"&&typeof e._writableState==="object"};t.readable=function(e){return t(e)&&e.readable!==false&&typeof e._read==="function"&&typeof e._readableState==="object"};t.duplex=function(e){return t.writable(e)&&t.readable(e)};t.transform=function(e){return t.duplex(e)&&typeof e._transform==="function"&&typeof e._transformState==="object"}},7126:(e,t,r)=>{var n=r(7147);var s;if(process.platform==="win32"||global.TESTING_WINDOWS){s=r(2001)}else{s=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)}}))}))}s(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 s.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(7147);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 s=e.gid;var o=t.uid!==undefined?t.uid:process.getuid&&process.getuid();var i=t.gid!==undefined?t.gid:process.getgid&&process.getgid();var a=parseInt("100",8);var c=parseInt("010",8);var u=parseInt("001",8);var l=a|c;var p=r&u||r&c&&s===i||r&a&&n===o||r&l&&o===0;return p}},2001:(e,t,r)=>{e.exports=isexe;isexe.sync=sync;var n=r(7147);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{"use strict";var n=r(1161);var s=r(8866);function renamed(e,t){return function(){throw new Error("Function yaml."+e+" is removed in js-yaml 4. "+"Use yaml."+t+" instead, which is now safe by default.")}}e.exports.Type=r(6073);e.exports.Schema=r(1082);e.exports.FAILSAFE_SCHEMA=r(8562);e.exports.JSON_SCHEMA=r(1035);e.exports.CORE_SCHEMA=r(2011);e.exports.DEFAULT_SCHEMA=r(8759);e.exports.load=n.load;e.exports.loadAll=n.loadAll;e.exports.dump=s.dump;e.exports.YAMLException=r(8179);e.exports.types={binary:r(7900),float:r(2705),map:r(6150),null:r(721),pairs:r(6860),set:r(9548),timestamp:r(9212),bool:r(4993),int:r(1615),merge:r(6104),omap:r(9046),seq:r(7283),str:r(3619)};e.exports.safeLoad=renamed("safeLoad","load");e.exports.safeLoadAll=renamed("safeLoadAll","loadAll");e.exports.safeDump=renamed("safeDump","dump")},6829:e=>{"use strict";function isNothing(e){return typeof e==="undefined"||e===null}function isObject(e){return typeof e==="object"&&e!==null}function toArray(e){if(Array.isArray(e))return e;else if(isNothing(e))return[];return[e]}function extend(e,t){var r,n,s,o;if(t){o=Object.keys(t);for(r=0,n=o.length;r{"use strict";var n=r(6829);var s=r(8179);var o=r(8759);var i=Object.prototype.toString;var a=Object.prototype.hasOwnProperty;var c=65279;var u=9;var l=10;var p=13;var d=32;var h=33;var m=34;var g=35;var y=37;var b=38;var v=39;var w=42;var T=44;var _=45;var k=58;var O=61;var S=62;var C=63;var P=64;var R=91;var A=93;var x=96;var G=123;var j=124;var I=125;var L={};L[0]="\\0";L[7]="\\a";L[8]="\\b";L[9]="\\t";L[10]="\\n";L[11]="\\v";L[12]="\\f";L[13]="\\r";L[27]="\\e";L[34]='\\"';L[92]="\\\\";L[133]="\\N";L[160]="\\_";L[8232]="\\L";L[8233]="\\P";var D=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"];var M=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function compileStyleMap(e,t){var r,n,s,o,i,c,u;if(t===null)return{};r={};n=Object.keys(t);for(s=0,o=n.length;s=55296&&r<=56319&&t+1=56320&&n<=57343){return(r-55296)*1024+n-56320+65536}}return r}function needIndentIndicator(e){var t=/^\n* /;return t.test(e)}var B=1,q=2,$=3,H=4,W=5;function chooseScalarStyle(e,t,r,n,s,o,i,a){var c;var u=0;var p=null;var d=false;var h=false;var m=n!==-1;var g=-1;var y=isPlainSafeFirst(codePointAt(e,0))&&isPlainSafeLast(codePointAt(e,e.length-1));if(t||i){for(c=0;c=65536?c+=2:c++){u=codePointAt(e,c);if(!isPrintable(u)){return W}y=y&&isPlainSafe(u,p,a);p=u}}else{for(c=0;c=65536?c+=2:c++){u=codePointAt(e,c);if(u===l){d=true;if(m){h=h||c-g-1>n&&e[g+1]!==" ";g=c}}else if(!isPrintable(u)){return W}y=y&&isPlainSafe(u,p,a);p=u}h=h||m&&(c-g-1>n&&e[g+1]!==" ")}if(!d&&!h){if(y&&!i&&!s(e)){return B}return o===U?W:q}if(r>9&&needIndentIndicator(e)){return W}if(!i){return h?H:$}return o===U?W:q}function writeScalar(e,t,r,n,o){e.dump=function(){if(t.length===0){return e.quotingType===U?'""':"''"}if(!e.noCompatMode){if(D.indexOf(t)!==-1||M.test(t)){return e.quotingType===U?'"'+t+'"':"'"+t+"'"}}var i=e.indent*Math.max(1,r);var a=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-i);var c=n||e.flowLevel>-1&&r>=e.flowLevel;function testAmbiguity(t){return testImplicitResolving(e,t)}switch(chooseScalarStyle(t,c,e.indent,a,testAmbiguity,e.quotingType,e.forceQuotes&&!n,o)){case B:return t;case q:return"'"+t.replace(/'/g,"''")+"'";case $:return"|"+blockHeader(t,e.indent)+dropEndingNewline(indentString(t,i));case H:return">"+blockHeader(t,e.indent)+dropEndingNewline(indentString(foldString(t,a),i));case W:return'"'+escapeString(t,a)+'"';default:throw new s("impossible error: invalid scalar style")}}()}function blockHeader(e,t){var r=needIndentIndicator(e)?String(t):"";var n=e[e.length-1]==="\n";var s=n&&(e[e.length-2]==="\n"||e==="\n");var o=s?"+":n?"":"-";return r+o+"\n"}function dropEndingNewline(e){return e[e.length-1]==="\n"?e.slice(0,-1):e}function foldString(e,t){var r=/(\n+)([^\n]*)/g;var n=function(){var n=e.indexOf("\n");n=n!==-1?n:e.length;r.lastIndex=n;return foldLine(e.slice(0,n),t)}();var s=e[0]==="\n"||e[0]===" ";var o;var i;while(i=r.exec(e)){var a=i[1],c=i[2];o=c[0]===" ";n+=a+(!s&&!o&&c!==""?"\n":"")+foldLine(c,t);s=o}return n}function foldLine(e,t){if(e===""||e[0]===" ")return e;var r=/ [^ ]/g;var n;var s=0,o,i=0,a=0;var c="";while(n=r.exec(e)){a=n.index;if(a-s>t){o=i>s?i:a;c+="\n"+e.slice(s,o);s=o+1}i=a}c+="\n";if(e.length-s>t&&i>s){c+=e.slice(s,i)+"\n"+e.slice(i+1)}else{c+=e.slice(s)}return c.slice(1)}function escapeString(e){var t="";var r=0;var n;for(var s=0;s=65536?s+=2:s++){r=codePointAt(e,s);n=L[r];if(!n&&isPrintable(r)){t+=e[s];if(r>=65536)t+=e[s+1]}else{t+=n||encodeHex(r)}}return t}function writeFlowSequence(e,t,r){var n="",s=e.tag,o,i,a;for(o=0,i=r.length;o1024)l+="? ";l+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" ");if(!writeNode(e,t,u,false,false)){continue}l+=e.dump;n+=l}e.tag=s;e.dump="{"+n+"}"}function writeBlockMapping(e,t,r,n){var o="",i=e.tag,a=Object.keys(r),c,u,p,d,h,m;if(e.sortKeys===true){a.sort()}else if(typeof e.sortKeys==="function"){a.sort(e.sortKeys)}else if(e.sortKeys){throw new s("sortKeys must be a boolean or a function")}for(c=0,u=a.length;c1024;if(h){if(e.dump&&l===e.dump.charCodeAt(0)){m+="?"}else{m+="? "}}m+=e.dump;if(h){m+=generateNextLine(e,t)}if(!writeNode(e,t+1,d,true,h)){continue}if(e.dump&&l===e.dump.charCodeAt(0)){m+=":"}else{m+=": "}m+=e.dump;o+=m}e.tag=i;e.dump=o||"{}"}function detectType(e,t,r){var n,o,c,u,l,p;o=r?e.explicitTypes:e.implicitTypes;for(c=0,u=o.length;c tag resolver accepts not "'+p+'" style')}e.dump=n}return true}}return false}function writeNode(e,t,r,n,o,a,c){e.tag=null;e.dump=r;if(!detectType(e,r,false)){detectType(e,r,true)}var u=i.call(e.dump);var l=n;var p;if(n){n=e.flowLevel<0||e.flowLevel>t}var d=u==="[object Object]"||u==="[object Array]",h,m;if(d){h=e.duplicates.indexOf(r);m=h!==-1}if(e.tag!==null&&e.tag!=="?"||m||e.indent!==2&&t>0){o=false}if(m&&e.usedDuplicates[h]){e.dump="*ref_"+h}else{if(d&&m&&!e.usedDuplicates[h]){e.usedDuplicates[h]=true}if(u==="[object Object]"){if(n&&Object.keys(e.dump).length!==0){writeBlockMapping(e,t,e.dump,o);if(m){e.dump="&ref_"+h+e.dump}}else{writeFlowMapping(e,t,e.dump);if(m){e.dump="&ref_"+h+" "+e.dump}}}else if(u==="[object Array]"){if(n&&e.dump.length!==0){if(e.noArrayIndent&&!c&&t>0){writeBlockSequence(e,t-1,e.dump,o)}else{writeBlockSequence(e,t,e.dump,o)}if(m){e.dump="&ref_"+h+e.dump}}else{writeFlowSequence(e,t,e.dump);if(m){e.dump="&ref_"+h+" "+e.dump}}}else if(u==="[object String]"){if(e.tag!=="?"){writeScalar(e,e.dump,t,a,l)}}else if(u==="[object Undefined]"){return false}else{if(e.skipInvalid)return false;throw new s("unacceptable kind of an object to dump "+u)}if(e.tag!==null&&e.tag!=="?"){p=encodeURI(e.tag[0]==="!"?e.tag.slice(1):e.tag).replace(/!/g,"%21");if(e.tag[0]==="!"){p="!"+p}else if(p.slice(0,18)==="tag:yaml.org,2002:"){p="!!"+p.slice(18)}else{p="!<"+p+">"}e.dump=p+" "+e.dump}}return true}function getDuplicateReferences(e,t){var r=[],n=[],s,o;inspectNode(e,r,n);for(s=0,o=n.length;s{"use strict";function formatError(e,t){var r="",n=e.reason||"(unknown reason)";if(!e.mark)return n;if(e.mark.name){r+='in "'+e.mark.name+'" '}r+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")";if(!t&&e.mark.snippet){r+="\n\n"+e.mark.snippet}return n+" "+r}function YAMLException(e,t){Error.call(this);this.name="YAMLException";this.reason=e;this.mark=t;this.message=formatError(this,false);if(Error.captureStackTrace){Error.captureStackTrace(this,this.constructor)}else{this.stack=(new Error).stack||""}}YAMLException.prototype=Object.create(Error.prototype);YAMLException.prototype.constructor=YAMLException;YAMLException.prototype.toString=function toString(e){return this.name+": "+formatError(this,e)};e.exports=YAMLException},1161:(e,t,r)=>{"use strict";var n=r(6829);var s=r(8179);var o=r(6975);var i=r(8759);var a=Object.prototype.hasOwnProperty;var c=1;var u=2;var l=3;var p=4;var d=1;var h=2;var m=3;var g=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/;var y=/[\x85\u2028\u2029]/;var b=/[,\[\]\{\}]/;var v=/^(?:!|!!|![a-z\-]+!)$/i;var w=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function _class(e){return Object.prototype.toString.call(e)}function is_EOL(e){return e===10||e===13}function is_WHITE_SPACE(e){return e===9||e===32}function is_WS_OR_EOL(e){return e===9||e===32||e===10||e===13}function is_FLOW_INDICATOR(e){return e===44||e===91||e===93||e===123||e===125}function fromHexCode(e){var t;if(48<=e&&e<=57){return e-48}t=e|32;if(97<=t&&t<=102){return t-97+10}return-1}function escapedHexLen(e){if(e===120){return 2}if(e===117){return 4}if(e===85){return 8}return 0}function fromDecimalCode(e){if(48<=e&&e<=57){return e-48}return-1}function simpleEscapeSequence(e){return e===48?"\0":e===97?"":e===98?"\b":e===116?"\t":e===9?"\t":e===110?"\n":e===118?"\v":e===102?"\f":e===114?"\r":e===101?"":e===32?" ":e===34?'"':e===47?"/":e===92?"\\":e===78?"…":e===95?" ":e===76?"\u2028":e===80?"\u2029":""}function charFromCodepoint(e){if(e<=65535){return String.fromCharCode(e)}return String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}var T=new Array(256);var _=new Array(256);for(var k=0;k<256;k++){T[k]=simpleEscapeSequence(k)?1:0;_[k]=simpleEscapeSequence(k)}function State(e,t){this.input=e;this.filename=t["filename"]||null;this.schema=t["schema"]||i;this.onWarning=t["onWarning"]||null;this.legacy=t["legacy"]||false;this.json=t["json"]||false;this.listener=t["listener"]||null;this.implicitTypes=this.schema.compiledImplicit;this.typeMap=this.schema.compiledTypeMap;this.length=e.length;this.position=0;this.line=0;this.lineStart=0;this.lineIndent=0;this.firstTabInLine=-1;this.documents=[]}function generateError(e,t){var r={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};r.snippet=o(r);return new s(t,r)}function throwError(e,t){throw generateError(e,t)}function throwWarning(e,t){if(e.onWarning){e.onWarning.call(null,generateError(e,t))}}var O={YAML:function handleYamlDirective(e,t,r){var n,s,o;if(e.version!==null){throwError(e,"duplication of %YAML directive")}if(r.length!==1){throwError(e,"YAML directive accepts exactly one argument")}n=/^([0-9]+)\.([0-9]+)$/.exec(r[0]);if(n===null){throwError(e,"ill-formed argument of the YAML directive")}s=parseInt(n[1],10);o=parseInt(n[2],10);if(s!==1){throwError(e,"unacceptable YAML version of the document")}e.version=r[0];e.checkLineBreaks=o<2;if(o!==1&&o!==2){throwWarning(e,"unsupported YAML version of the document")}},TAG:function handleTagDirective(e,t,r){var n,s;if(r.length!==2){throwError(e,"TAG directive accepts exactly two arguments")}n=r[0];s=r[1];if(!v.test(n)){throwError(e,"ill-formed tag handle (first argument) of the TAG directive")}if(a.call(e.tagMap,n)){throwError(e,'there is a previously declared suffix for "'+n+'" tag handle')}if(!w.test(s)){throwError(e,"ill-formed tag prefix (second argument) of the TAG directive")}try{s=decodeURIComponent(s)}catch(t){throwError(e,"tag prefix is malformed: "+s)}e.tagMap[n]=s}};function captureSegment(e,t,r,n){var s,o,i,a;if(t1){e.result+=n.repeat("\n",t-1)}}function readPlainScalar(e,t,r){var n,s,o,i,a,c,u,l,p=e.kind,d=e.result,h;h=e.input.charCodeAt(e.position);if(is_WS_OR_EOL(h)||is_FLOW_INDICATOR(h)||h===35||h===38||h===42||h===33||h===124||h===62||h===39||h===34||h===37||h===64||h===96){return false}if(h===63||h===45){s=e.input.charCodeAt(e.position+1);if(is_WS_OR_EOL(s)||r&&is_FLOW_INDICATOR(s)){return false}}e.kind="scalar";e.result="";o=i=e.position;a=false;while(h!==0){if(h===58){s=e.input.charCodeAt(e.position+1);if(is_WS_OR_EOL(s)||r&&is_FLOW_INDICATOR(s)){break}}else if(h===35){n=e.input.charCodeAt(e.position-1);if(is_WS_OR_EOL(n)){break}}else if(e.position===e.lineStart&&testDocumentSeparator(e)||r&&is_FLOW_INDICATOR(h)){break}else if(is_EOL(h)){c=e.line;u=e.lineStart;l=e.lineIndent;skipSeparationSpace(e,false,-1);if(e.lineIndent>=t){a=true;h=e.input.charCodeAt(e.position);continue}else{e.position=i;e.line=c;e.lineStart=u;e.lineIndent=l;break}}if(a){captureSegment(e,o,i,false);writeFoldedLines(e,e.line-c);o=i=e.position;a=false}if(!is_WHITE_SPACE(h)){i=e.position+1}h=e.input.charCodeAt(++e.position)}captureSegment(e,o,i,false);if(e.result){return true}e.kind=p;e.result=d;return false}function readSingleQuotedScalar(e,t){var r,n,s;r=e.input.charCodeAt(e.position);if(r!==39){return false}e.kind="scalar";e.result="";e.position++;n=s=e.position;while((r=e.input.charCodeAt(e.position))!==0){if(r===39){captureSegment(e,n,e.position,true);r=e.input.charCodeAt(++e.position);if(r===39){n=e.position;e.position++;s=e.position}else{return true}}else if(is_EOL(r)){captureSegment(e,n,s,true);writeFoldedLines(e,skipSeparationSpace(e,false,t));n=s=e.position}else if(e.position===e.lineStart&&testDocumentSeparator(e)){throwError(e,"unexpected end of the document within a single quoted scalar")}else{e.position++;s=e.position}}throwError(e,"unexpected end of the stream within a single quoted scalar")}function readDoubleQuotedScalar(e,t){var r,n,s,o,i,a;a=e.input.charCodeAt(e.position);if(a!==34){return false}e.kind="scalar";e.result="";e.position++;r=n=e.position;while((a=e.input.charCodeAt(e.position))!==0){if(a===34){captureSegment(e,r,e.position,true);e.position++;return true}else if(a===92){captureSegment(e,r,e.position,true);a=e.input.charCodeAt(++e.position);if(is_EOL(a)){skipSeparationSpace(e,false,t)}else if(a<256&&T[a]){e.result+=_[a];e.position++}else if((i=escapedHexLen(a))>0){s=i;o=0;for(;s>0;s--){a=e.input.charCodeAt(++e.position);if((i=fromHexCode(a))>=0){o=(o<<4)+i}else{throwError(e,"expected hexadecimal character")}}e.result+=charFromCodepoint(o);e.position++}else{throwError(e,"unknown escape sequence")}r=n=e.position}else if(is_EOL(a)){captureSegment(e,r,n,true);writeFoldedLines(e,skipSeparationSpace(e,false,t));r=n=e.position}else if(e.position===e.lineStart&&testDocumentSeparator(e)){throwError(e,"unexpected end of the document within a double quoted scalar")}else{e.position++;n=e.position}}throwError(e,"unexpected end of the stream within a double quoted scalar")}function readFlowCollection(e,t){var r=true,n,s,o,i=e.tag,a,u=e.anchor,l,p,d,h,m,g=Object.create(null),y,b,v,w;w=e.input.charCodeAt(e.position);if(w===91){p=93;m=false;a=[]}else if(w===123){p=125;m=true;a={}}else{return false}if(e.anchor!==null){e.anchorMap[e.anchor]=a}w=e.input.charCodeAt(++e.position);while(w!==0){skipSeparationSpace(e,true,t);w=e.input.charCodeAt(e.position);if(w===p){e.position++;e.tag=i;e.anchor=u;e.kind=m?"mapping":"sequence";e.result=a;return true}else if(!r){throwError(e,"missed comma between flow collection entries")}else if(w===44){throwError(e,"expected the node content, but found ','")}b=y=v=null;d=h=false;if(w===63){l=e.input.charCodeAt(e.position+1);if(is_WS_OR_EOL(l)){d=h=true;e.position++;skipSeparationSpace(e,true,t)}}n=e.line;s=e.lineStart;o=e.position;composeNode(e,t,c,false,true);b=e.tag;y=e.result;skipSeparationSpace(e,true,t);w=e.input.charCodeAt(e.position);if((h||e.line===n)&&w===58){d=true;w=e.input.charCodeAt(++e.position);skipSeparationSpace(e,true,t);composeNode(e,t,c,false,true);v=e.result}if(m){storeMappingPair(e,a,g,b,y,v,n,s,o)}else if(d){a.push(storeMappingPair(e,null,g,b,y,v,n,s,o))}else{a.push(y)}skipSeparationSpace(e,true,t);w=e.input.charCodeAt(e.position);if(w===44){r=true;w=e.input.charCodeAt(++e.position)}else{r=false}}throwError(e,"unexpected end of the stream within a flow collection")}function readBlockScalar(e,t){var r,s,o=d,i=false,a=false,c=t,u=0,l=false,p,g;g=e.input.charCodeAt(e.position);if(g===124){s=false}else if(g===62){s=true}else{return false}e.kind="scalar";e.result="";while(g!==0){g=e.input.charCodeAt(++e.position);if(g===43||g===45){if(d===o){o=g===43?m:h}else{throwError(e,"repeat of a chomping mode identifier")}}else if((p=fromDecimalCode(g))>=0){if(p===0){throwError(e,"bad explicit indentation width of a block scalar; it cannot be less than one")}else if(!a){c=t+p-1;a=true}else{throwError(e,"repeat of an indentation width identifier")}}else{break}}if(is_WHITE_SPACE(g)){do{g=e.input.charCodeAt(++e.position)}while(is_WHITE_SPACE(g));if(g===35){do{g=e.input.charCodeAt(++e.position)}while(!is_EOL(g)&&g!==0)}}while(g!==0){readLineBreak(e);e.lineIndent=0;g=e.input.charCodeAt(e.position);while((!a||e.lineIndentc){c=e.lineIndent}if(is_EOL(g)){u++;continue}if(e.lineIndentt)&&c!==0){throwError(e,"bad indentation of a sequence entry")}else if(e.lineIndentt){if(v){i=e.line;a=e.lineStart;c=e.position}if(composeNode(e,t,p,true,s)){if(v){y=e.result}else{b=e.result}}if(!v){storeMappingPair(e,h,m,g,y,b,i,a,c);g=y=b=null}skipSeparationSpace(e,true,-1);T=e.input.charCodeAt(e.position)}if((e.line===o||e.lineIndent>t)&&T!==0){throwError(e,"bad indentation of a mapping entry")}else if(e.lineIndentt){h=1}else if(e.lineIndent===t){h=0}else if(e.lineIndentt){h=1}else if(e.lineIndent===t){h=0}else if(e.lineIndent tag; it should be "scalar", not "'+e.kind+'"')}for(y=0,b=e.implicitTypes.length;y")}if(e.result!==null&&w.kind!==e.kind){throwError(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+w.kind+'", not "'+e.kind+'"')}if(!w.resolve(e.result,e.tag)){throwError(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}else{e.result=w.construct(e.result,e.tag);if(e.anchor!==null){e.anchorMap[e.anchor]=e.result}}}if(e.listener!==null){e.listener("close",e)}return e.tag!==null||e.anchor!==null||g}function readDocument(e){var t=e.position,r,n,s,o=false,i;e.version=null;e.checkLineBreaks=e.legacy;e.tagMap=Object.create(null);e.anchorMap=Object.create(null);while((i=e.input.charCodeAt(e.position))!==0){skipSeparationSpace(e,true,-1);i=e.input.charCodeAt(e.position);if(e.lineIndent>0||i!==37){break}o=true;i=e.input.charCodeAt(++e.position);r=e.position;while(i!==0&&!is_WS_OR_EOL(i)){i=e.input.charCodeAt(++e.position)}n=e.input.slice(r,e.position);s=[];if(n.length<1){throwError(e,"directive name must not be less than one character in length")}while(i!==0){while(is_WHITE_SPACE(i)){i=e.input.charCodeAt(++e.position)}if(i===35){do{i=e.input.charCodeAt(++e.position)}while(i!==0&&!is_EOL(i));break}if(is_EOL(i))break;r=e.position;while(i!==0&&!is_WS_OR_EOL(i)){i=e.input.charCodeAt(++e.position)}s.push(e.input.slice(r,e.position))}if(i!==0)readLineBreak(e);if(a.call(O,n)){O[n](e,n,s)}else{throwWarning(e,'unknown document directive "'+n+'"')}}skipSeparationSpace(e,true,-1);if(e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45){e.position+=3;skipSeparationSpace(e,true,-1)}else if(o){throwError(e,"directives end mark is expected")}composeNode(e,e.lineIndent-1,p,false,true);skipSeparationSpace(e,true,-1);if(e.checkLineBreaks&&y.test(e.input.slice(t,e.position))){throwWarning(e,"non-ASCII line breaks are interpreted as content")}e.documents.push(e.result);if(e.position===e.lineStart&&testDocumentSeparator(e)){if(e.input.charCodeAt(e.position)===46){e.position+=3;skipSeparationSpace(e,true,-1)}return}if(e.position{"use strict";var n=r(8179);var s=r(6073);function compileList(e,t){var r=[];e[t].forEach((function(e){var t=r.length;r.forEach((function(r,n){if(r.tag===e.tag&&r.kind===e.kind&&r.multi===e.multi){t=n}}));r[t]=e}));return r}function compileMap(){var e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},t,r;function collectType(t){if(t.multi){e.multi[t.kind].push(t);e.multi["fallback"].push(t)}else{e[t.kind][t.tag]=e["fallback"][t.tag]=t}}for(t=0,r=arguments.length;t{"use strict";e.exports=r(1035)},8759:(e,t,r)=>{"use strict";e.exports=r(2011).extend({implicit:[r(9212),r(6104)],explicit:[r(7900),r(9046),r(6860),r(9548)]})},8562:(e,t,r)=>{"use strict";var n=r(1082);e.exports=new n({explicit:[r(3619),r(7283),r(6150)]})},1035:(e,t,r)=>{"use strict";e.exports=r(8562).extend({implicit:[r(721),r(4993),r(1615),r(2705)]})},6975:(e,t,r)=>{"use strict";var n=r(6829);function getLine(e,t,r,n,s){var o="";var i="";var a=Math.floor(s/2)-1;if(n-t>a){o=" ... ";t=n-a+o.length}if(r-n>a){i=" ...";r=n+a-i.length}return{str:o+e.slice(t,r).replace(/\t/g,"→")+i,pos:n-t+o.length}}function padStart(e,t){return n.repeat(" ",t-e.length)+e}function makeSnippet(e,t){t=Object.create(t||null);if(!e.buffer)return null;if(!t.maxLength)t.maxLength=79;if(typeof t.indent!=="number")t.indent=1;if(typeof t.linesBefore!=="number")t.linesBefore=3;if(typeof t.linesAfter!=="number")t.linesAfter=2;var r=/\r?\n|\r|\0/g;var s=[0];var o=[];var i;var a=-1;while(i=r.exec(e.buffer)){o.push(i.index);s.push(i.index+i[0].length);if(e.position<=i.index&&a<0){a=s.length-2}}if(a<0)a=s.length-1;var c="",u,l;var p=Math.min(e.line+t.linesAfter,o.length).toString().length;var d=t.maxLength-(t.indent+p+3);for(u=1;u<=t.linesBefore;u++){if(a-u<0)break;l=getLine(e.buffer,s[a-u],o[a-u],e.position-(s[a]-s[a-u]),d);c=n.repeat(" ",t.indent)+padStart((e.line-u+1).toString(),p)+" | "+l.str+"\n"+c}l=getLine(e.buffer,s[a],o[a],e.position,d);c+=n.repeat(" ",t.indent)+padStart((e.line+1).toString(),p)+" | "+l.str+"\n";c+=n.repeat("-",t.indent+p+3+l.pos)+"^"+"\n";for(u=1;u<=t.linesAfter;u++){if(a+u>=o.length)break;l=getLine(e.buffer,s[a+u],o[a+u],e.position-(s[a]-s[a+u]),d);c+=n.repeat(" ",t.indent)+padStart((e.line+u+1).toString(),p)+" | "+l.str+"\n"}return c.replace(/\n$/,"")}e.exports=makeSnippet},6073:(e,t,r)=>{"use strict";var n=r(8179);var s=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"];var o=["scalar","sequence","mapping"];function compileStyleAliases(e){var t={};if(e!==null){Object.keys(e).forEach((function(r){e[r].forEach((function(e){t[String(e)]=r}))}))}return t}function Type(e,t){t=t||{};Object.keys(t).forEach((function(t){if(s.indexOf(t)===-1){throw new n('Unknown option "'+t+'" is met in definition of "'+e+'" YAML type.')}}));this.options=t;this.tag=e;this.kind=t["kind"]||null;this.resolve=t["resolve"]||function(){return true};this.construct=t["construct"]||function(e){return e};this.instanceOf=t["instanceOf"]||null;this.predicate=t["predicate"]||null;this.represent=t["represent"]||null;this.representName=t["representName"]||null;this.defaultStyle=t["defaultStyle"]||null;this.multi=t["multi"]||false;this.styleAliases=compileStyleAliases(t["styleAliases"]||null);if(o.indexOf(this.kind)===-1){throw new n('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}}e.exports=Type},7900:(e,t,r)=>{"use strict";var n=r(6073);var s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";function resolveYamlBinary(e){if(e===null)return false;var t,r,n=0,o=e.length,i=s;for(r=0;r64)continue;if(t<0)return false;n+=6}return n%8===0}function constructYamlBinary(e){var t,r,n=e.replace(/[\r\n=]/g,""),o=n.length,i=s,a=0,c=[];for(t=0;t>16&255);c.push(a>>8&255);c.push(a&255)}a=a<<6|i.indexOf(n.charAt(t))}r=o%4*6;if(r===0){c.push(a>>16&255);c.push(a>>8&255);c.push(a&255)}else if(r===18){c.push(a>>10&255);c.push(a>>2&255)}else if(r===12){c.push(a>>4&255)}return new Uint8Array(c)}function representYamlBinary(e){var t="",r=0,n,o,i=e.length,a=s;for(n=0;n>18&63];t+=a[r>>12&63];t+=a[r>>6&63];t+=a[r&63]}r=(r<<8)+e[n]}o=i%3;if(o===0){t+=a[r>>18&63];t+=a[r>>12&63];t+=a[r>>6&63];t+=a[r&63]}else if(o===2){t+=a[r>>10&63];t+=a[r>>4&63];t+=a[r<<2&63];t+=a[64]}else if(o===1){t+=a[r>>2&63];t+=a[r<<4&63];t+=a[64];t+=a[64]}return t}function isBinary(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}e.exports=new n("tag:yaml.org,2002:binary",{kind:"scalar",resolve:resolveYamlBinary,construct:constructYamlBinary,predicate:isBinary,represent:representYamlBinary})},4993:(e,t,r)=>{"use strict";var n=r(6073);function resolveYamlBoolean(e){if(e===null)return false;var t=e.length;return t===4&&(e==="true"||e==="True"||e==="TRUE")||t===5&&(e==="false"||e==="False"||e==="FALSE")}function constructYamlBoolean(e){return e==="true"||e==="True"||e==="TRUE"}function isBoolean(e){return Object.prototype.toString.call(e)==="[object Boolean]"}e.exports=new n("tag:yaml.org,2002:bool",{kind:"scalar",resolve:resolveYamlBoolean,construct:constructYamlBoolean,predicate:isBoolean,represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"})},2705:(e,t,r)=>{"use strict";var n=r(6829);var s=r(6073);var o=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?"+"|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?"+"|[-+]?\\.(?:inf|Inf|INF)"+"|\\.(?:nan|NaN|NAN))$");function resolveYamlFloat(e){if(e===null)return false;if(!o.test(e)||e[e.length-1]==="_"){return false}return true}function constructYamlFloat(e){var t,r;t=e.replace(/_/g,"").toLowerCase();r=t[0]==="-"?-1:1;if("+-".indexOf(t[0])>=0){t=t.slice(1)}if(t===".inf"){return r===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY}else if(t===".nan"){return NaN}return r*parseFloat(t,10)}var i=/^[-+]?[0-9]+e/;function representYamlFloat(e,t){var r;if(isNaN(e)){switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}}else if(Number.POSITIVE_INFINITY===e){switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}}else if(Number.NEGATIVE_INFINITY===e){switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}}else if(n.isNegativeZero(e)){return"-0.0"}r=e.toString(10);return i.test(r)?r.replace("e",".e"):r}function isFloat(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||n.isNegativeZero(e))}e.exports=new s("tag:yaml.org,2002:float",{kind:"scalar",resolve:resolveYamlFloat,construct:constructYamlFloat,predicate:isFloat,represent:representYamlFloat,defaultStyle:"lowercase"})},1615:(e,t,r)=>{"use strict";var n=r(6829);var s=r(6073);function isHexCode(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function isOctCode(e){return 48<=e&&e<=55}function isDecCode(e){return 48<=e&&e<=57}function resolveYamlInteger(e){if(e===null)return false;var t=e.length,r=0,n=false,s;if(!t)return false;s=e[r];if(s==="-"||s==="+"){s=e[++r]}if(s==="0"){if(r+1===t)return true;s=e[++r];if(s==="b"){r++;for(;r=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}})},6150:(e,t,r)=>{"use strict";var n=r(6073);e.exports=new n("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return e!==null?e:{}}})},6104:(e,t,r)=>{"use strict";var n=r(6073);function resolveYamlMerge(e){return e==="<<"||e===null}e.exports=new n("tag:yaml.org,2002:merge",{kind:"scalar",resolve:resolveYamlMerge})},721:(e,t,r)=>{"use strict";var n=r(6073);function resolveYamlNull(e){if(e===null)return true;var t=e.length;return t===1&&e==="~"||t===4&&(e==="null"||e==="Null"||e==="NULL")}function constructYamlNull(){return null}function isNull(e){return e===null}e.exports=new n("tag:yaml.org,2002:null",{kind:"scalar",resolve:resolveYamlNull,construct:constructYamlNull,predicate:isNull,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"})},9046:(e,t,r)=>{"use strict";var n=r(6073);var s=Object.prototype.hasOwnProperty;var o=Object.prototype.toString;function resolveYamlOmap(e){if(e===null)return true;var t=[],r,n,i,a,c,u=e;for(r=0,n=u.length;r{"use strict";var n=r(6073);var s=Object.prototype.toString;function resolveYamlPairs(e){if(e===null)return true;var t,r,n,o,i,a=e;i=new Array(a.length);for(t=0,r=a.length;t{"use strict";var n=r(6073);e.exports=new n("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return e!==null?e:[]}})},9548:(e,t,r)=>{"use strict";var n=r(6073);var s=Object.prototype.hasOwnProperty;function resolveYamlSet(e){if(e===null)return true;var t,r=e;for(t in r){if(s.call(r,t)){if(r[t]!==null)return false}}return true}function constructYamlSet(e){return e!==null?e:{}}e.exports=new n("tag:yaml.org,2002:set",{kind:"mapping",resolve:resolveYamlSet,construct:constructYamlSet})},3619:(e,t,r)=>{"use strict";var n=r(6073);e.exports=new n("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return e!==null?e:""}})},9212:(e,t,r)=>{"use strict";var n=r(6073);var s=new RegExp("^([0-9][0-9][0-9][0-9])"+"-([0-9][0-9])"+"-([0-9][0-9])$");var o=new RegExp("^([0-9][0-9][0-9][0-9])"+"-([0-9][0-9]?)"+"-([0-9][0-9]?)"+"(?:[Tt]|[ \\t]+)"+"([0-9][0-9]?)"+":([0-9][0-9])"+":([0-9][0-9])"+"(?:\\.([0-9]*))?"+"(?:[ \\t]*(Z|([-+])([0-9][0-9]?)"+"(?::([0-9][0-9]))?))?$");function resolveYamlTimestamp(e){if(e===null)return false;if(s.exec(e)!==null)return true;if(o.exec(e)!==null)return true;return false}function constructYamlTimestamp(e){var t,r,n,i,a,c,u,l=0,p=null,d,h,m;t=s.exec(e);if(t===null)t=o.exec(e);if(t===null)throw new Error("Date resolve error");r=+t[1];n=+t[2]-1;i=+t[3];if(!t[4]){return new Date(Date.UTC(r,n,i))}a=+t[4];c=+t[5];u=+t[6];if(t[7]){l=t[7].slice(0,3);while(l.length<3){l+="0"}l=+l}if(t[9]){d=+t[10];h=+(t[11]||0);p=(d*60+h)*6e4;if(t[9]==="-")p=-p}m=new Date(Date.UTC(r,n,i,a,c,u,l));if(p)m.setTime(m.getTime()-p);return m}function representYamlTimestamp(e){return e.toISOString()}e.exports=new n("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:resolveYamlTimestamp,construct:constructYamlTimestamp,instanceOf:Date,represent:representYamlTimestamp})},5586:e=>{"use strict";e.exports=parseJson;function parseJson(e,t,r){r=r||20;try{return JSON.parse(e,t)}catch(t){if(typeof e!=="string"){const t=Array.isArray(e)&&e.length===0;const r="Cannot parse "+(t?"an empty array":String(e));throw new TypeError(r)}const n=t.message.match(/^Unexpected token.*position\s+(\d+)/i);const s=n?+n[1]:t.message.match(/^Unexpected end of JSON.*/i)?e.length-1:null;if(s!=null){const n=s<=r?0:s-r;const o=s+r>=e.length?e.length:s+r;t.message+=` while parsing near '${n===0?"":"..."}${e.slice(n,o)}${o===e.length?"":"..."}'`}else{t.message+=` while parsing '${e.slice(0,r*2)}'`}throw t}}},5978:(e,t,r)=>{"use strict";const n=r(1017);const s=r(7758);const o=r(8551);const i=r(6615);const a=r(3990);const parse=(e,t)=>i(o(e),n.relative(".",t));e.exports=e=>a(s.readFile)(e,"utf8").then((t=>parse(t,e)));e.exports.sync=e=>parse(s.readFileSync(e,"utf8"),e)},3990:e=>{"use strict";const processFn=(e,t)=>function(){const r=t.promiseModule;const n=new Array(arguments.length);for(let e=0;e{if(t.errorFirst){n.push((function(e,n){if(t.multiArgs){const t=new Array(arguments.length-1);for(let e=1;e{t=Object.assign({exclude:[/.+(Sync|Stream)$/],errorFirst:true,promiseModule:Promise},t);const filter=e=>{const match=t=>typeof t==="string"?e===t:t.test(e);return t.include?t.include.some(match):!t.exclude.some(match)};let r;if(typeof e==="function"){r=function(){if(t.excludeMain){return e.apply(this,arguments)}return processFn(e,t).apply(this,arguments)}}else{r=Object.create(Object.getPrototypeOf(e))}for(const n in e){const s=e[n];r[n]=typeof s==="function"&&filter(n)?processFn(s,t):s}return r}},7493:(e,t,r)=>{"use strict";const n=r(2037);const s=new Map([[20,["Big Sur","11"]],[19,["Catalina","10.15"]],[18,["Mojave","10.14"]],[17,["High Sierra","10.13"]],[16,["Sierra","10.12"]],[15,["El Capitan","10.11"]],[14,["Yosemite","10.10"]],[13,["Mavericks","10.9"]],[12,["Mountain Lion","10.8"]],[11,["Lion","10.7"]],[10,["Snow Leopard","10.6"]],[9,["Leopard","10.5"]],[8,["Tiger","10.4"]],[7,["Panther","10.3"]],[6,["Jaguar","10.2"]],[5,["Puma","10.1"]]]);const macosRelease=e=>{e=Number((e||n.release()).split(".")[0]);const[t,r]=s.get(e);return{name:t,version:r}};e.exports=macosRelease;e.exports["default"]=macosRelease},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 s=t["default"]||{};var o={_:[]};Object.keys(r.bools).forEach((function(e){setArg(e,s[e]===undefined?false:s[e])}));var i=[];if(e.indexOf("--")!==-1){i=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,s){if(s&&r.unknownFn&&!argDefined(e,s)){if(r.unknownFn(s)===false)return}var i=!r.strings[e]&&isNumber(t)?Number(t):t;setKey(o,e.split("."),i);(n[e]||[]).forEach((function(e){setKey(o,e.split("."),i)}))}function setKey(e,t,n){var s=e;for(var o=0;o{var t=1e3;var r=t*60;var n=r*60;var s=n*24;var o=s*7;var i=s*365.25;e.exports=function(e,t){t=t||{};var r=typeof e;if(r==="string"&&e.length>0){return parse(e)}else if(r==="number"&&isFinite(e)){return t.long?fmtLong(e):fmtShort(e)}throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function parse(e){e=String(e);if(e.length>100){return}var a=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(!a){return}var c=parseFloat(a[1]);var u=(a[2]||"ms").toLowerCase();switch(u){case"years":case"year":case"yrs":case"yr":case"y":return c*i;case"weeks":case"week":case"w":return c*o;case"days":case"day":case"d":return c*s;case"hours":case"hour":case"hrs":case"hr":case"h":return c*n;case"minutes":case"minute":case"mins":case"min":case"m":return c*r;case"seconds":case"second":case"secs":case"sec":case"s":return c*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return c;default:return undefined}}function fmtShort(e){var o=Math.abs(e);if(o>=s){return Math.round(e/s)+"d"}if(o>=n){return Math.round(e/n)+"h"}if(o>=r){return Math.round(e/r)+"m"}if(o>=t){return Math.round(e/t)+"s"}return e+"ms"}function fmtLong(e){var o=Math.abs(e);if(o>=s){return plural(e,o,s,"day")}if(o>=n){return plural(e,o,n,"hour")}if(o>=r){return plural(e,o,r,"minute")}if(o>=t){return plural(e,o,t,"second")}return e+" ms"}function plural(e,t,r,n){var s=t>=r*1.5;return Math.round(e/r)+" "+n+(s?"s":"")}},8560:e=>{"use strict";e.exports=function(e){try{return e()}catch(e){}}},467:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});function _interopDefault(e){return e&&typeof e==="object"&&"default"in e?e["default"]:e}var n=_interopDefault(r(2781));var s=_interopDefault(r(3685));var o=_interopDefault(r(7310));var i=_interopDefault(r(5687));var a=_interopDefault(r(9796));const c=n.Readable;const u=Symbol("buffer");const l=Symbol("type");class Blob{constructor(){this[l]="";const e=arguments[0];const t=arguments[1];const r=[];let n=0;if(e){const t=e;const s=Number(t.length);for(let e=0;e1&&arguments[1]!==undefined?arguments[1]:{},s=r.size;let o=s===undefined?0:s;var i=r.timeout;let a=i===undefined?0:i;if(e==null){e=null}else if(isURLSearchParams(e)){e=Buffer.from(e.toString())}else if(isBlob(e));else if(Buffer.isBuffer(e));else if(Object.prototype.toString.call(e)==="[object ArrayBuffer]"){e=Buffer.from(e)}else if(ArrayBuffer.isView(e)){e=Buffer.from(e.buffer,e.byteOffset,e.byteLength)}else if(e instanceof n);else{e=Buffer.from(String(e))}this[d]={body:e,disturbed:false,error:null};this.size=o;this.timeout=a;if(e instanceof n){e.on("error",(function(e){const r=e.name==="AbortError"?e:new FetchError(`Invalid response body while trying to fetch ${t.url}: ${e.message}`,"system",e);t[d].error=r}))}}Body.prototype={get body(){return this[d].body},get bodyUsed(){return this[d].disturbed},arrayBuffer(){return consumeBody.call(this).then((function(e){return e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength)}))},blob(){let e=this.headers&&this.headers.get("content-type")||"";return consumeBody.call(this).then((function(t){return Object.assign(new Blob([],{type:e.toLowerCase()}),{[u]:t})}))},json(){var e=this;return consumeBody.call(this).then((function(t){try{return JSON.parse(t.toString())}catch(t){return Body.Promise.reject(new FetchError(`invalid json response body at ${e.url} reason: ${t.message}`,"invalid-json"))}}))},text(){return consumeBody.call(this).then((function(e){return e.toString()}))},buffer(){return consumeBody.call(this)},textConverted(){var e=this;return consumeBody.call(this).then((function(t){return convertBody(t,e.headers)}))}};Object.defineProperties(Body.prototype,{body:{enumerable:true},bodyUsed:{enumerable:true},arrayBuffer:{enumerable:true},blob:{enumerable:true},json:{enumerable:true},text:{enumerable:true}});Body.mixIn=function(e){for(const t of Object.getOwnPropertyNames(Body.prototype)){if(!(t in e)){const r=Object.getOwnPropertyDescriptor(Body.prototype,t);Object.defineProperty(e,t,r)}}};function consumeBody(){var e=this;if(this[d].disturbed){return Body.Promise.reject(new TypeError(`body used already for: ${this.url}`))}this[d].disturbed=true;if(this[d].error){return Body.Promise.reject(this[d].error)}let t=this.body;if(t===null){return Body.Promise.resolve(Buffer.alloc(0))}if(isBlob(t)){t=t.stream()}if(Buffer.isBuffer(t)){return Body.Promise.resolve(t)}if(!(t instanceof n)){return Body.Promise.resolve(Buffer.alloc(0))}let r=[];let s=0;let o=false;return new Body.Promise((function(n,i){let a;if(e.timeout){a=setTimeout((function(){o=true;i(new FetchError(`Response timeout while trying to fetch ${e.url} (over ${e.timeout}ms)`,"body-timeout"))}),e.timeout)}t.on("error",(function(t){if(t.name==="AbortError"){o=true;i(t)}else{i(new FetchError(`Invalid response body while trying to fetch ${e.url}: ${t.message}`,"system",t))}}));t.on("data",(function(t){if(o||t===null){return}if(e.size&&s+t.length>e.size){o=true;i(new FetchError(`content size at ${e.url} over limit: ${e.size}`,"max-size"));return}s+=t.length;r.push(t)}));t.on("end",(function(){if(o){return}clearTimeout(a);try{n(Buffer.concat(r,s))}catch(t){i(new FetchError(`Could not create Buffer from response body for ${e.url}: ${t.message}`,"system",t))}}))}))}function convertBody(e,t){if(typeof p!=="function"){throw new Error("The package `encoding` must be installed to use the textConverted() function")}const r=t.get("content-type");let n="utf-8";let s,o;if(r){s=/charset=([^;]*)/i.exec(r)}o=e.slice(0,1024).toString();if(!s&&o){s=/0&&arguments[0]!==undefined?arguments[0]:undefined;this[y]=Object.create(null);if(e instanceof Headers){const t=e.raw();const r=Object.keys(t);for(const e of r){for(const r of t[e]){this.append(e,r)}}return}if(e==null);else if(typeof e==="object"){const t=e[Symbol.iterator];if(t!=null){if(typeof t!=="function"){throw new TypeError("Header pairs must be iterable")}const r=[];for(const t of e){if(typeof t!=="object"||typeof t[Symbol.iterator]!=="function"){throw new TypeError("Each header pair must be iterable")}r.push(Array.from(t))}for(const e of r){if(e.length!==2){throw new TypeError("Each header pair must be a name/value tuple")}this.append(e[0],e[1])}}else{for(const t of Object.keys(e)){const r=e[t];this.append(t,r)}}}else{throw new TypeError("Provided initializer must be an object")}}get(e){e=`${e}`;validateName(e);const t=find(this[y],e);if(t===undefined){return null}return this[y][t].join(", ")}forEach(e){let t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:undefined;let r=getHeaders(this);let n=0;while(n1&&arguments[1]!==undefined?arguments[1]:"key+value";const r=Object.keys(e[y]).sort();return r.map(t==="key"?function(e){return e.toLowerCase()}:t==="value"?function(t){return e[y][t].join(", ")}:function(t){return[t.toLowerCase(),e[y][t].join(", ")]})}const b=Symbol("internal");function createHeadersIterator(e,t){const r=Object.create(v);r[b]={target:e,kind:t,index:0};return r}const v=Object.setPrototypeOf({next(){if(!this||Object.getPrototypeOf(this)!==v){throw new TypeError("Value of `this` is not a HeadersIterator")}var e=this[b];const t=e.target,r=e.kind,n=e.index;const s=getHeaders(t,r);const o=s.length;if(n>=o){return{value:undefined,done:true}}this[b].index=n+1;return{value:s[n],done:false}}},Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]())));Object.defineProperty(v,Symbol.toStringTag,{value:"HeadersIterator",writable:false,enumerable:false,configurable:true});function exportNodeCompatibleHeaders(e){const t=Object.assign({__proto__:null},e[y]);const r=find(e[y],"Host");if(r!==undefined){t[r]=t[r][0]}return t}function createHeadersLenient(e){const t=new Headers;for(const r of Object.keys(e)){if(m.test(r)){continue}if(Array.isArray(e[r])){for(const n of e[r]){if(g.test(n)){continue}if(t[y][r]===undefined){t[y][r]=[n]}else{t[y][r].push(n)}}}else if(!g.test(e[r])){t[y][r]=[e[r]]}}return t}const w=Symbol("Response internals");const T=s.STATUS_CODES;class Response{constructor(){let e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:null;let t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};Body.call(this,e,t);const r=t.status||200;const n=new Headers(t.headers);if(e!=null&&!n.has("Content-Type")){const t=extractContentType(e);if(t){n.append("Content-Type",t)}}this[w]={url:t.url,status:r,statusText:t.statusText||T[r],headers:n,counter:t.counter}}get url(){return this[w].url||""}get status(){return this[w].status}get ok(){return this[w].status>=200&&this[w].status<300}get redirected(){return this[w].counter>0}get statusText(){return this[w].statusText}get headers(){return this[w].headers}clone(){return new Response(clone(this),{url:this.url,status:this.status,statusText:this.statusText,headers:this.headers,ok:this.ok,redirected:this.redirected})}}Body.mixIn(Response.prototype);Object.defineProperties(Response.prototype,{url:{enumerable:true},status:{enumerable:true},ok:{enumerable:true},redirected:{enumerable:true},statusText:{enumerable:true},headers:{enumerable:true},clone:{enumerable:true}});Object.defineProperty(Response.prototype,Symbol.toStringTag,{value:"Response",writable:false,enumerable:false,configurable:true});const _=Symbol("Request internals");const k=o.parse;const O=o.format;const S="destroy"in n.Readable.prototype;function isRequest(e){return typeof e==="object"&&typeof e[_]==="object"}function isAbortSignal(e){const t=e&&typeof e==="object"&&Object.getPrototypeOf(e);return!!(t&&t.constructor.name==="AbortSignal")}class Request{constructor(e){let t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};let r;if(!isRequest(e)){if(e&&e.href){r=k(e.href)}else{r=k(`${e}`)}e={}}else{r=k(e.url)}let n=t.method||e.method||"GET";n=n.toUpperCase();if((t.body!=null||isRequest(e)&&e.body!==null)&&(n==="GET"||n==="HEAD")){throw new TypeError("Request with GET/HEAD method cannot have body")}let s=t.body!=null?t.body:isRequest(e)&&e.body!==null?clone(e):null;Body.call(this,s,{timeout:t.timeout||e.timeout||0,size:t.size||e.size||0});const o=new Headers(t.headers||e.headers||{});if(s!=null&&!o.has("Content-Type")){const e=extractContentType(s);if(e){o.append("Content-Type",e)}}let i=isRequest(e)?e.signal:null;if("signal"in t)i=t.signal;if(i!=null&&!isAbortSignal(i)){throw new TypeError("Expected signal to be an instanceof AbortSignal")}this[_]={method:n,redirect:t.redirect||e.redirect||"follow",headers:o,parsedURL:r,signal:i};this.follow=t.follow!==undefined?t.follow:e.follow!==undefined?e.follow:20;this.compress=t.compress!==undefined?t.compress:e.compress!==undefined?e.compress:true;this.counter=t.counter||e.counter||0;this.agent=t.agent||e.agent}get method(){return this[_].method}get url(){return O(this[_].parsedURL)}get headers(){return this[_].headers}get redirect(){return this[_].redirect}get signal(){return this[_].signal}clone(){return new Request(this)}}Body.mixIn(Request.prototype);Object.defineProperty(Request.prototype,Symbol.toStringTag,{value:"Request",writable:false,enumerable:false,configurable:true});Object.defineProperties(Request.prototype,{method:{enumerable:true},url:{enumerable:true},headers:{enumerable:true},redirect:{enumerable:true},clone:{enumerable:true},signal:{enumerable:true}});function getNodeRequestOptions(e){const t=e[_].parsedURL;const r=new Headers(e[_].headers);if(!r.has("Accept")){r.set("Accept","*/*")}if(!t.protocol||!t.hostname){throw new TypeError("Only absolute URLs are supported")}if(!/^https?:$/.test(t.protocol)){throw new TypeError("Only HTTP(S) protocols are supported")}if(e.signal&&e.body instanceof n.Readable&&!S){throw new Error("Cancellation of streamed requests with AbortSignal is not supported in node < 8")}let s=null;if(e.body==null&&/^(POST|PUT)$/i.test(e.method)){s="0"}if(e.body!=null){const t=getTotalBytes(e);if(typeof t==="number"){s=String(t)}}if(s){r.set("Content-Length",s)}if(!r.has("User-Agent")){r.set("User-Agent","node-fetch/1.0 (+https://github.com/bitinn/node-fetch)")}if(e.compress&&!r.has("Accept-Encoding")){r.set("Accept-Encoding","gzip,deflate")}let o=e.agent;if(typeof o==="function"){o=o(t)}if(!r.has("Connection")&&!o){r.set("Connection","close")}return Object.assign({},t,{method:e.method,headers:exportNodeCompatibleHeaders(r),agent:o})}function AbortError(e){Error.call(this,e);this.type="aborted";this.message=e;Error.captureStackTrace(this,this.constructor)}AbortError.prototype=Object.create(Error.prototype);AbortError.prototype.constructor=AbortError;AbortError.prototype.name="AbortError";const C=n.PassThrough;const P=o.resolve;function fetch(e,t){if(!fetch.Promise){throw new Error("native promise missing, set fetch.Promise to your favorite alternative")}Body.Promise=fetch.Promise;return new fetch.Promise((function(r,o){const c=new Request(e,t);const u=getNodeRequestOptions(c);const l=(u.protocol==="https:"?i:s).request;const p=c.signal;let d=null;const h=function abort(){let e=new AbortError("The user aborted a request.");o(e);if(c.body&&c.body instanceof n.Readable){c.body.destroy(e)}if(!d||!d.body)return;d.body.emit("error",e)};if(p&&p.aborted){h();return}const m=function abortAndFinalize(){h();finalize()};const g=l(u);let y;if(p){p.addEventListener("abort",m)}function finalize(){g.abort();if(p)p.removeEventListener("abort",m);clearTimeout(y)}if(c.timeout){g.once("socket",(function(e){y=setTimeout((function(){o(new FetchError(`network timeout at: ${c.url}`,"request-timeout"));finalize()}),c.timeout)}))}g.on("error",(function(e){o(new FetchError(`request to ${c.url} failed, reason: ${e.message}`,"system",e));finalize()}));g.on("response",(function(e){clearTimeout(y);const t=createHeadersLenient(e.headers);if(fetch.isRedirect(e.statusCode)){const n=t.get("Location");const s=n===null?null:P(c.url,n);switch(c.redirect){case"error":o(new FetchError(`uri requested responds with a redirect, redirect mode is set to error: ${c.url}`,"no-redirect"));finalize();return;case"manual":if(s!==null){try{t.set("Location",s)}catch(e){o(e)}}break;case"follow":if(s===null){break}if(c.counter>=c.follow){o(new FetchError(`maximum redirect reached at: ${c.url}`,"max-redirect"));finalize();return}const n={headers:new Headers(c.headers),follow:c.follow,counter:c.counter+1,agent:c.agent,compress:c.compress,method:c.method,body:c.body,signal:c.signal,timeout:c.timeout,size:c.size};if(e.statusCode!==303&&c.body&&getTotalBytes(c)===null){o(new FetchError("Cannot follow redirect with body being a readable stream","unsupported-redirect"));finalize();return}if(e.statusCode===303||(e.statusCode===301||e.statusCode===302)&&c.method==="POST"){n.method="GET";n.body=undefined;n.headers.delete("content-length")}r(fetch(new Request(s,n)));finalize();return}}e.once("end",(function(){if(p)p.removeEventListener("abort",m)}));let n=e.pipe(new C);const s={url:c.url,status:e.statusCode,statusText:e.statusMessage,headers:t,size:c.size,timeout:c.timeout,counter:c.counter};const i=t.get("Content-Encoding");if(!c.compress||c.method==="HEAD"||i===null||e.statusCode===204||e.statusCode===304){d=new Response(n,s);r(d);return}const u={flush:a.Z_SYNC_FLUSH,finishFlush:a.Z_SYNC_FLUSH};if(i=="gzip"||i=="x-gzip"){n=n.pipe(a.createGunzip(u));d=new Response(n,s);r(d);return}if(i=="deflate"||i=="x-deflate"){const t=e.pipe(new C);t.once("data",(function(e){if((e[0]&15)===8){n=n.pipe(a.createInflate())}else{n=n.pipe(a.createInflateRaw())}d=new Response(n,s);r(d)}));return}if(i=="br"&&typeof a.createBrotliDecompress==="function"){n=n.pipe(a.createBrotliDecompress());d=new Response(n,s);r(d);return}d=new Response(n,s);r(d)}));writeToStream(g,c)}))}fetch.isRedirect=function(e){return e===301||e===302||e===303||e===307||e===308};fetch.Promise=global.Promise;e.exports=t=fetch;Object.defineProperty(t,"__esModule",{value:true});t["default"]=t;t.Headers=Headers;t.Request=Request;t.Response=Response;t.FetchError=FetchError},502:(e,t,r)=>{"use strict";const n=r(1017);const s=r(7278);e.exports=e=>{e=Object.assign({cwd:process.cwd(),path:process.env[s()]},e);let t;let r=n.resolve(e.cwd);const o=[];while(t!==r){o.push(n.join(r,"node_modules/.bin"));t=r;r=n.resolve(r,"..")}o.push(n.dirname(process.execPath));return o.concat(e.path).join(n.delimiter)};e.exports.env=t=>{t=Object.assign({env:process.env},t);const r=Object.assign({},t.env);const n=s({env:r});t.path=r[n];r[n]=e.exports(t);return r}},7278: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"}},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 f=function(){if(f.called)return f.value;f.called=true;return f.value=e.apply(this,arguments)};f.called=false;return f}function onceStrict(e){var f=function(){if(f.called)throw new Error(f.onceError);f.called=true;return f.value=e.apply(this,arguments)};var t=e.name||"Function wrapped with `once`";f.onceError=t+" shouldn't be called more than once";f.called=false;return f}},4824:(e,t,r)=>{"use strict";const n=r(2037);const s=r(7493);const o=r(3515);const osName=(e,t)=>{if(!e&&t){throw new Error("You can't specify a `release` without specifying `platform`")}e=e||n.platform();let r;if(e==="darwin"){if(!t&&n.platform()==="darwin"){t=n.release()}const e=t?Number(t.split(".")[0])>15?"macOS":"OS X":"macOS";r=t?s(t).name:"";return e+(r?" "+r:"")}if(e==="linux"){if(!t&&n.platform()==="linux"){t=n.release()}r=t?t.replace(/^(\d+\.\d+).*/,"$1"):"";return"Linux"+(r?" "+r:"")}if(e==="win32"){if(!t&&n.platform()==="win32"){t=n.release()}r=t?o(t):"";return"Windows"+(r?" "+r:"")}return e};e.exports=osName},1330:e=>{"use strict";e.exports=(e,t)=>{t=t||(()=>{});return e.then((e=>new Promise((e=>{e(t())})).then((()=>e))),(e=>new Promise((e=>{e(t())})).then((()=>{throw e}))))}},6615:(e,t,r)=>{"use strict";const n=r(3505);const s=r(5586);const o=n("JSONError",{fileName:n.append("in %s")});e.exports=(e,t,r)=>{if(typeof t==="string"){r=t;t=null}try{try{return JSON.parse(e,t)}catch(r){s(e,t);throw r}}catch(e){e.message=e.message.replace(/\n/g,"");const t=new o(e);if(r){t.fileName=r}throw t}}},1235:(e,t,r)=>{"use strict";const n=r(1017);const s=r(6428);const o=r(5978);const i=new WeakMap;const filepath=e=>i.get(e);const findNextCwd=e=>n.resolve(n.dirname(e),"..");const addFp=(e,t)=>{i.set(e,t);return e};const pkgConf=(e,t)=>{if(!e){return Promise.reject(new TypeError("Expected a namespace"))}t=t||{};return s("package.json",t.cwd?{cwd:t.cwd}:{}).then((r=>{if(!r){return addFp(Object.assign({},t.defaults),r)}return o(r).then((n=>{if(t.skipOnFalse&&n[e]===false){const n=Object.assign({},t,{cwd:findNextCwd(r)});return pkgConf(e,n)}return addFp(Object.assign({},t.defaults,n[e]),r)}))}))};const sync=(e,t)=>{if(!e){throw new TypeError("Expected a namespace")}t=t||{};const r=s.sync("package.json",t.cwd?{cwd:t.cwd}:{});if(!r){return addFp(Object.assign({},t.defaults),r)}const n=o.sync(r);if(t.skipOnFalse&&n[e]===false){const n=Object.assign({},t,{cwd:findNextCwd(r)});return sync(e,n)}return addFp(Object.assign({},t.defaults,n[e]),r)};e.exports=pkgConf;e.exports.filepath=filepath;e.exports.sync=sync},6428:(e,t,r)=>{"use strict";const n=r(1017);const s=r(7619);e.exports=(e,t)=>{t=t||{};const r=n.resolve(t.cwd||"");const o=n.parse(r).root;const i=[].concat(e);return new Promise((e=>{(function find(t){s(i,{cwd:t}).then((r=>{if(r){e(n.join(t,r))}else if(t===o){e(null)}else{find(n.dirname(t))}}))})(r)}))};e.exports.sync=(e,t)=>{t=t||{};let r=n.resolve(t.cwd||"");const o=n.parse(r).root;const i=[].concat(e);while(true){const e=s.sync(i,{cwd:r});if(e){return n.join(r,e)}else if(r===o){return null}r=n.dirname(r)}}},7619:(e,t,r)=>{"use strict";const n=r(1017);const s=r(652);const o=r(6566);e.exports=(e,t)=>{t=Object.assign({cwd:process.cwd()},t);return o(e,(e=>s(n.resolve(t.cwd,e))),t)};e.exports.sync=(e,t)=>{t=Object.assign({cwd:process.cwd()},t);for(const r of e){if(s.sync(n.resolve(t.cwd,r))){return r}}}},1305:(e,t,r)=>{"use strict";const n=r(6897);e.exports=e=>{if(e<1){throw new TypeError("Expected `concurrency` to be a number from 1 and up")}const t=[];let r=0;const next=()=>{r--;if(t.length>0){t.shift()()}};return s=>new Promise(((o,i)=>{const run=()=>{r++;n(s).then((e=>{o(e);next()}),(e=>{i(e);next()}))};if(r{"use strict";const n=r(1305);class EndError extends Error{constructor(e){super();this.value=e}}const finder=e=>Promise.all(e).then((e=>e[1]===true&&Promise.reject(new EndError(e[0]))));e.exports=(e,t,r)=>{r=Object.assign({concurrency:Infinity,preserveOrder:true},r);const s=n(r.concurrency);const o=Array.from(e).map((e=>[e,s((()=>Promise.resolve(e).then(t)))]));const i=n(r.preserveOrder?1:Infinity);return Promise.all(o.map((e=>i((()=>finder(e)))))).then((()=>{})).catch((e=>e instanceof EndError?e.value:Promise.reject(e)))}},6897:e=>{"use strict";e.exports=e=>new Promise((t=>{t(e())}))},652:(e,t,r)=>{"use strict";const n=r(7147);e.exports=e=>new Promise((t=>{n.access(e,(e=>{t(!e)}))}));e.exports.sync=e=>{try{n.accessSync(e);return true}catch(e){return false}}},8341:(e,t,r)=>{var n=r(1223);var s=r(1205);var o=r(7147);var noop=function(){};var i=/^v?\.0/.test(process.version);var isFn=function(e){return typeof e==="function"};var isFS=function(e){if(!i)return false;if(!o)return false;return(e instanceof(o.ReadStream||noop)||e instanceof(o.WriteStream||noop))&&isFn(e.close)};var isRequest=function(e){return e.setHeader&&isFn(e.abort)};var destroyer=function(e,t,r,o){o=n(o);var i=false;e.on("close",(function(){i=true}));s(e,{readable:t,writable:r},(function(e){if(e)return o(e);i=true;o()}));var a=false;return function(t){if(i)return;if(a)return;a=true;if(isFS(e))return e.close(noop);if(isRequest(e))return e.abort();if(isFn(e.destroy))return e.destroy();o(t||new Error("stream was destroyed"))}};var call=function(e){e()};var pipe=function(e,t){return e.pipe(t)};var pump=function(){var e=Array.prototype.slice.call(arguments);var t=isFn(e[e.length-1]||noop)&&e.pop()||noop;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(s,o){var i=o0;return destroyer(s,i,a,(function(e){if(!r)r=e;if(e)n.forEach(call);if(i)return;n.forEach(call);t(r)}))}));return e.reduce(pipe)};e.exports=pump},4931:(e,t,r)=>{var n=r(9491);var s=r(3710);var o=r(2361);if(typeof o!=="function"){o=o.EventEmitter}var i;if(process.__signal_exit_emitter__){i=process.__signal_exit_emitter__}else{i=process.__signal_exit_emitter__=new o;i.count=0;i.emitted={}}if(!i.infinite){i.setMaxListeners(Infinity);i.infinite=true}e.exports=function(e,t){n.equal(typeof e,"function","a callback must be provided for exit handler");if(c===false){load()}var r="exit";if(t&&t.alwaysLast){r="afterexit"}var remove=function(){i.removeListener(r,e);if(i.listeners("exit").length===0&&i.listeners("afterexit").length===0){unload()}};i.on(r,e);return remove};e.exports.unload=unload;function unload(){if(!c){return}c=false;s.forEach((function(e){try{process.removeListener(e,a[e])}catch(e){}}));process.emit=l;process.reallyExit=u;i.count-=1}function emit(e,t,r){if(i.emitted[e]){return}i.emitted[e]=true;i.emit(e,t,r)}var a={};s.forEach((function(e){a[e]=function listener(){var t=process.listeners(e);if(t.length===i.count){unload();emit("exit",null,e);emit("afterexit",null,e);process.kill(process.pid,e)}}}));e.exports.signals=function(){return s};e.exports.load=load;var c=false;function load(){if(c){return}c=true;i.count+=1;s=s.filter((function(e){try{process.on(e,a[e]);return true}catch(e){return false}}));process.emit=processEmit;process.reallyExit=processReallyExit}var u=process.reallyExit;function processReallyExit(e){process.exitCode=e||0;emit("exit",process.exitCode,null);emit("afterexit",process.exitCode,null);u.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")}},528:(e,t,r)=>{"use strict";const n=r(5132);e.exports=Object.assign(new n,{Signale:n})},7923:(e,t,r)=>{"use strict";e=r.nmd(e);const n=r(1557);const wrapAnsi16=(e,t)=>function(){const r=e.apply(n,arguments);return`[${r+t}m`};const wrapAnsi256=(e,t)=>function(){const r=e.apply(n,arguments);return`[${38+t};5;${r}m`};const wrapAnsi16m=(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 s=n[r];t[r]={open:`[${s[0]}m`,close:`[${s[1]}m`};n[r]=t[r];e.set(s[0],s[1])}Object.defineProperty(t,r,{value:n,enumerable:false});Object.defineProperty(t,"codes",{value:e,enumerable:false})}const ansi2ansi=e=>e;const rgb2rgb=(e,t,r)=>[e,t,r];t.color.close="";t.bgColor.close="";t.color.ansi={ansi:wrapAnsi16(ansi2ansi,0)};t.color.ansi256={ansi256:wrapAnsi256(ansi2ansi,0)};t.color.ansi16m={rgb:wrapAnsi16m(rgb2rgb,0)};t.bgColor.ansi={ansi:wrapAnsi16(ansi2ansi,10)};t.bgColor.ansi256={ansi256:wrapAnsi256(ansi2ansi,10)};t.bgColor.ansi16m={rgb:wrapAnsi16m(rgb2rgb,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]=wrapAnsi16(r.ansi16,0);t.bgColor.ansi[e]=wrapAnsi16(r.ansi16,10)}if("ansi256"in r){t.color.ansi256[e]=wrapAnsi256(r.ansi256,0);t.bgColor.ansi256[e]=wrapAnsi256(r.ansi256,10)}if("rgb"in r){t.color.ansi16m[e]=wrapAnsi16m(r.rgb,0);t.bgColor.ansi16m[e]=wrapAnsi16m(r.rgb,10)}}return t}Object.defineProperty(e,"exports",{enumerable:true,get:assembleStyles})},6594:(e,t,r)=>{"use strict";const n=r(8691);const s=r(7923);const o=r(6295).stdout;const i=r(5924);const a=process.platform==="win32"&&!(process.env.TERM||"").toLowerCase().startsWith("xterm");const c=["ansi","ansi","ansi256","ansi16m"];const u=new Set(["gray"]);const l=Object.create(null);function applyOptions(e,t){t=t||{};const r=o?o.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){s.blue.open=""}for(const e of Object.keys(s)){s[e].closeRe=new RegExp(n(s[e].close),"g");l[e]={get(){const t=s[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")}};s.color.closeRe=new RegExp(n(s.color.close),"g");for(const e of Object.keys(s.color.ansi)){if(u.has(e)){continue}l[e]={get(){const t=this.level;return function(){const r=s.color[c[t]][e].apply(null,arguments);const n={open:r,close:s.color.close,closeRe:s.color.closeRe};return build.call(this,this._styles?this._styles.concat(n):[n],this._empty,e)}}}}s.bgColor.closeRe=new RegExp(n(s.bgColor.close),"g");for(const e of Object.keys(s.bgColor.ansi)){if(u.has(e)){continue}const t="bg"+e[0].toUpperCase()+e.slice(1);l[t]={get(){const t=this.level;return function(){const r=s.bgColor[c[t]][e].apply(null,arguments);const n={open:r,close:s.bgColor.close,closeRe:s.bgColor.closeRe};return build.call(this,this._styles?this._styles.concat(n):[n],this._empty,e)}}}}const p=Object.defineProperties((()=>{}),l);function build(e,t,r){const builder=function(){return applyStyle.apply(builder,arguments)};builder._styles=e;builder._empty=t;const n=this;Object.defineProperty(builder,"level",{enumerable:true,get(){return n.level},set(e){n.level=e}});Object.defineProperty(builder,"enabled",{enumerable:true,get(){return n.enabled},set(e){n.enabled=e}});builder.hasGrey=this.hasGrey||r==="gray"||r==="grey";builder.__proto__=p;return builder}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{"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 s=/\\(u[a-f\d]{4}|x[a-f\d]{2}|.)|([^\\])/gi;const o=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 o.get(e)||e}function parseArguments(e,t){const r=[];const o=t.trim().split(/\s*,\s*/g);let i;for(const t of o){if(!isNaN(t)){r.push(Number(t))}else if(i=t.match(n)){r.push(i[2].replace(s,((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 s=[];let o=[];r.replace(t,((t,r,i,a,c,u)=>{if(r){o.push(unescape(r))}else if(a){const t=o.join("");o=[];s.push(n.length===0?t:buildStyle(e,n)(t));n.push({inverse:i,styles:parseStyle(a)})}else if(c){if(n.length===0){throw new Error("Found extraneous } in Chalk template literal")}s.push(buildStyle(e,n)(o.join("")));o=[];n.pop()}else{o.push(u)}}));s.push(o.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 s.join("")}},7605:(e,t,r)=>{var n=r(9167);var s={};for(var o in n){if(n.hasOwnProperty(o)){s[n[o]]=o}}var i=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 i){if(i.hasOwnProperty(a)){if(!("channels"in i[a])){throw new Error("missing channels property: "+a)}if(!("labels"in i[a])){throw new Error("missing channel labels property: "+a)}if(i[a].labels.length!==i[a].channels){throw new Error("channel and label counts mismatch: "+a)}var c=i[a].channels;var u=i[a].labels;delete i[a].channels;delete i[a].labels;Object.defineProperty(i[a],"channels",{value:c});Object.defineProperty(i[a],"labels",{value:u})}}i.rgb.hsl=function(e){var t=e[0]/255;var r=e[1]/255;var n=e[2]/255;var s=Math.min(t,r,n);var o=Math.max(t,r,n);var i=o-s;var a;var c;var u;if(o===s){a=0}else if(t===o){a=(r-n)/i}else if(r===o){a=2+(n-t)/i}else if(n===o){a=4+(t-r)/i}a=Math.min(a*60,360);if(a<0){a+=360}u=(s+o)/2;if(o===s){c=0}else if(u<=.5){c=i/(o+s)}else{c=i/(2-o-s)}return[a,c*100,u*100]};i.rgb.hsv=function(e){var t;var r;var n;var s;var o;var i=e[0]/255;var a=e[1]/255;var c=e[2]/255;var u=Math.max(i,a,c);var l=u-Math.min(i,a,c);var diffc=function(e){return(u-e)/6/l+1/2};if(l===0){s=o=0}else{o=l/u;t=diffc(i);r=diffc(a);n=diffc(c);if(i===u){s=n-r}else if(a===u){s=1/3+t-n}else if(c===u){s=2/3+r-t}if(s<0){s+=1}else if(s>1){s-=1}}return[s*360,o*100,u*100]};i.rgb.hwb=function(e){var t=e[0];var r=e[1];var n=e[2];var s=i.rgb.hsl(e)[0];var o=1/255*Math.min(t,Math.min(r,n));n=1-1/255*Math.max(t,Math.max(r,n));return[s,o*100,n*100]};i.rgb.cmyk=function(e){var t=e[0]/255;var r=e[1]/255;var n=e[2]/255;var s;var o;var i;var a;a=Math.min(1-t,1-r,1-n);s=(1-t-a)/(1-a)||0;o=(1-r-a)/(1-a)||0;i=(1-n-a)/(1-a)||0;return[s*100,o*100,i*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)}i.rgb.keyword=function(e){var t=s[e];if(t){return t}var r=Infinity;var o;for(var i in n){if(n.hasOwnProperty(i)){var a=n[i];var c=comparativeDistance(e,a);if(c.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 s=t*.4124+r*.3576+n*.1805;var o=t*.2126+r*.7152+n*.0722;var i=t*.0193+r*.1192+n*.9505;return[s*100,o*100,i*100]};i.rgb.lab=function(e){var t=i.rgb.xyz(e);var r=t[0];var n=t[1];var s=t[2];var o;var a;var c;r/=95.047;n/=100;s/=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;s=s>.008856?Math.pow(s,1/3):7.787*s+16/116;o=116*n-16;a=500*(r-n);c=200*(n-s);return[o,a,c]};i.hsl.rgb=function(e){var t=e[0]/360;var r=e[1]/100;var n=e[2]/100;var s;var o;var i;var a;var c;if(r===0){c=n*255;return[c,c,c]}if(n<.5){o=n*(1+r)}else{o=n+r-n*r}s=2*n-o;a=[0,0,0];for(var u=0;u<3;u++){i=t+1/3*-(u-1);if(i<0){i++}if(i>1){i--}if(6*i<1){c=s+(o-s)*6*i}else if(2*i<1){c=o}else if(3*i<2){c=s+(o-s)*(2/3-i)*6}else{c=s}a[u]=c*255}return a};i.hsl.hsv=function(e){var t=e[0];var r=e[1]/100;var n=e[2]/100;var s=r;var o=Math.max(n,.01);var i;var a;n*=2;r*=n<=1?n:2-n;s*=o<=1?o:2-o;a=(n+r)/2;i=n===0?2*s/(o+s):2*r/(n+r);return[t,i*100,a*100]};i.hsv.rgb=function(e){var t=e[0]/60;var r=e[1]/100;var n=e[2]/100;var s=Math.floor(t)%6;var o=t-Math.floor(t);var i=255*n*(1-r);var a=255*n*(1-r*o);var c=255*n*(1-r*(1-o));n*=255;switch(s){case 0:return[n,c,i];case 1:return[a,n,i];case 2:return[i,n,c];case 3:return[i,a,n];case 4:return[c,i,n];case 5:return[n,i,a]}};i.hsv.hsl=function(e){var t=e[0];var r=e[1]/100;var n=e[2]/100;var s=Math.max(n,.01);var o;var i;var a;a=(2-r)*n;o=(2-r)*s;i=r*s;i/=o<=1?o:2-o;i=i||0;a/=2;return[t,i*100,a*100]};i.hwb.rgb=function(e){var t=e[0]/360;var r=e[1]/100;var n=e[2]/100;var s=r+n;var o;var i;var a;var c;if(s>1){r/=s;n/=s}o=Math.floor(6*t);i=1-n;a=6*t-o;if((o&1)!==0){a=1-a}c=r+a*(i-r);var u;var l;var p;switch(o){default:case 6:case 0:u=i;l=c;p=r;break;case 1:u=c;l=i;p=r;break;case 2:u=r;l=i;p=c;break;case 3:u=r;l=c;p=i;break;case 4:u=c;l=r;p=i;break;case 5:u=i;l=r;p=c;break}return[u*255,l*255,p*255]};i.cmyk.rgb=function(e){var t=e[0]/100;var r=e[1]/100;var n=e[2]/100;var s=e[3]/100;var o;var i;var a;o=1-Math.min(1,t*(1-s)+s);i=1-Math.min(1,r*(1-s)+s);a=1-Math.min(1,n*(1-s)+s);return[o*255,i*255,a*255]};i.xyz.rgb=function(e){var t=e[0]/100;var r=e[1]/100;var n=e[2]/100;var s;var o;var i;s=t*3.2406+r*-1.5372+n*-.4986;o=t*-.9689+r*1.8758+n*.0415;i=t*.0557+r*-.204+n*1.057;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=i>.0031308?1.055*Math.pow(i,1/2.4)-.055:i*12.92;s=Math.min(Math.max(0,s),1);o=Math.min(Math.max(0,o),1);i=Math.min(Math.max(0,i),1);return[s*255,o*255,i*255]};i.xyz.lab=function(e){var t=e[0];var r=e[1];var n=e[2];var s;var o;var i;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;s=116*r-16;o=500*(t-r);i=200*(r-n);return[s,o,i]};i.lab.xyz=function(e){var t=e[0];var r=e[1];var n=e[2];var s;var o;var i;o=(t+16)/116;s=r/500+o;i=o-n/200;var a=Math.pow(o,3);var c=Math.pow(s,3);var u=Math.pow(i,3);o=a>.008856?a:(o-16/116)/7.787;s=c>.008856?c:(s-16/116)/7.787;i=u>.008856?u:(i-16/116)/7.787;s*=95.047;o*=100;i*=108.883;return[s,o,i]};i.lab.lch=function(e){var t=e[0];var r=e[1];var n=e[2];var s;var o;var i;s=Math.atan2(n,r);o=s*360/2/Math.PI;if(o<0){o+=360}i=Math.sqrt(r*r+n*n);return[t,i,o]};i.lch.lab=function(e){var t=e[0];var r=e[1];var n=e[2];var s;var o;var i;i=n/360*2*Math.PI;s=r*Math.cos(i);o=r*Math.sin(i);return[t,s,o]};i.rgb.ansi16=function(e){var t=e[0];var r=e[1];var n=e[2];var s=1 in arguments?arguments[1]:i.rgb.hsv(e)[2];s=Math.round(s/50);if(s===0){return 30}var o=30+(Math.round(n/255)<<2|Math.round(r/255)<<1|Math.round(t/255));if(s===2){o+=60}return o};i.hsv.ansi16=function(e){return i.rgb.ansi16(i.hsv.rgb(e),e[2])};i.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 s=16+36*Math.round(t/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5);return s};i.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 s=(t>>1&1)*r*255;var o=(t>>2&1)*r*255;return[n,s,o]};i.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 s=Math.floor((r=e%36)/6)/5*255;var o=r%6/5*255;return[n,s,o]};i.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};i.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 s=n>>16&255;var o=n>>8&255;var i=n&255;return[s,o,i]};i.rgb.hcg=function(e){var t=e[0]/255;var r=e[1]/255;var n=e[2]/255;var s=Math.max(Math.max(t,r),n);var o=Math.min(Math.min(t,r),n);var i=s-o;var a;var c;if(i<1){a=o/(1-i)}else{a=0}if(i<=0){c=0}else if(s===t){c=(r-n)/i%6}else if(s===r){c=2+(n-t)/i}else{c=4+(t-r)/i+4}c/=6;c%=1;return[c*360,i*100,a*100]};i.hsl.hcg=function(e){var t=e[1]/100;var r=e[2]/100;var n=1;var s=0;if(r<.5){n=2*t*r}else{n=2*t*(1-r)}if(n<1){s=(r-.5*n)/(1-n)}return[e[0],n*100,s*100]};i.hsv.hcg=function(e){var t=e[1]/100;var r=e[2]/100;var n=t*r;var s=0;if(n<1){s=(r-n)/(1-n)}return[e[0],n*100,s*100]};i.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 s=[0,0,0];var o=t%1*6;var i=o%1;var a=1-i;var c=0;switch(Math.floor(o)){case 0:s[0]=1;s[1]=i;s[2]=0;break;case 1:s[0]=a;s[1]=1;s[2]=0;break;case 2:s[0]=0;s[1]=1;s[2]=i;break;case 3:s[0]=0;s[1]=a;s[2]=1;break;case 4:s[0]=i;s[1]=0;s[2]=1;break;default:s[0]=1;s[1]=0;s[2]=a}c=(1-r)*n;return[(r*s[0]+c)*255,(r*s[1]+c)*255,(r*s[2]+c)*255]};i.hcg.hsv=function(e){var t=e[1]/100;var r=e[2]/100;var n=t+r*(1-t);var s=0;if(n>0){s=t/n}return[e[0],s*100,n*100]};i.hcg.hsl=function(e){var t=e[1]/100;var r=e[2]/100;var n=r*(1-t)+.5*t;var s=0;if(n>0&&n<.5){s=t/(2*n)}else if(n>=.5&&n<1){s=t/(2*(1-n))}return[e[0],s*100,n*100]};i.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]};i.hwb.hcg=function(e){var t=e[1]/100;var r=e[2]/100;var n=1-r;var s=n-t;var o=0;if(s<1){o=(n-s)/(1-s)}return[e[0],s*100,o*100]};i.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]};i.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]};i.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]};i.gray.hsl=i.gray.hsv=function(e){return[0,0,e[0]]};i.gray.hwb=function(e){return[0,100,e[0]]};i.gray.cmyk=function(e){return[0,0,0,e[0]]};i.gray.lab=function(e){return[e[0],0,0]};i.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};i.rgb.gray=function(e){var t=(e[0]+e[1]+e[2])/3;return[t/255*100]}},1557:(e,t,r)=>{var n=r(7605);var s=r(9097);var o={};var i=Object.keys(n);function wrapRaw(e){var wrappedFn=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){wrappedFn.conversion=e.conversion}return wrappedFn}function wrapRounded(e){var wrappedFn=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,s=0;s{var n=r(7605);function buildGraph(){var e={};var t=Object.keys(n);for(var r=t.length,s=0;s{"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]}},4843:(e,t,r)=>{"use strict";const n=r(8691);const s=process.platform;const o={tick:"✔",cross:"✖",star:"★",square:"▇",squareSmall:"◻",squareSmallFilled:"◼",play:"▶",circle:"◯",circleFilled:"◉",circleDotted:"◌",circleDouble:"◎",circleCircle:"ⓞ",circleCross:"ⓧ",circlePipe:"Ⓘ",circleQuestionMark:"?⃝",bullet:"●",dot:"․",line:"─",ellipsis:"…",pointer:"❯",pointerSmall:"›",info:"ℹ",warning:"⚠",hamburger:"☰",smiley:"㋡",mustache:"෴",heart:"♥",arrowUp:"↑",arrowDown:"↓",arrowLeft:"←",arrowRight:"→",radioOn:"◉",radioOff:"◯",checkboxOn:"☒",checkboxOff:"☐",checkboxCircleOn:"ⓧ",checkboxCircleOff:"Ⓘ",questionMarkPrefix:"?⃝",oneHalf:"½",oneThird:"⅓",oneQuarter:"¼",oneFifth:"⅕",oneSixth:"⅙",oneSeventh:"⅐",oneEighth:"⅛",oneNinth:"⅑",oneTenth:"⅒",twoThirds:"⅔",twoFifths:"⅖",threeQuarters:"¾",threeFifths:"⅗",threeEighths:"⅜",fourFifths:"⅘",fiveSixths:"⅚",fiveEighths:"⅝",sevenEighths:"⅞"};const i={tick:"√",cross:"×",star:"*",square:"█",squareSmall:"[ ]",squareSmallFilled:"[█]",play:"►",circle:"( )",circleFilled:"(*)",circleDotted:"( )",circleDouble:"( )",circleCircle:"(○)",circleCross:"(×)",circlePipe:"(│)",circleQuestionMark:"(?)",bullet:"*",dot:".",line:"─",ellipsis:"...",pointer:">",pointerSmall:"»",info:"i",warning:"‼",hamburger:"≡",smiley:"☺",mustache:"┌─┐",heart:o.heart,arrowUp:o.arrowUp,arrowDown:o.arrowDown,arrowLeft:o.arrowLeft,arrowRight:o.arrowRight,radioOn:"(*)",radioOff:"( )",checkboxOn:"[×]",checkboxOff:"[ ]",checkboxCircleOn:"(×)",checkboxCircleOff:"( )",questionMarkPrefix:"?",oneHalf:"1/2",oneThird:"1/3",oneQuarter:"1/4",oneFifth:"1/5",oneSixth:"1/6",oneSeventh:"1/7",oneEighth:"1/8",oneNinth:"1/9",oneTenth:"1/10",twoThirds:"2/3",twoFifths:"2/5",threeQuarters:"3/4",threeFifths:"3/5",threeEighths:"3/8",fourFifths:"4/5",fiveSixths:"5/6",fiveEighths:"5/8",sevenEighths:"7/8"};if(s==="linux"){o.questionMarkPrefix="?"}const a=s==="win32"?i:o;const fn=e=>{if(a===o){return e}Object.keys(o).forEach((t=>{if(o[t]===a[t]){return}e=e.replace(new RegExp(n(o[t]),"g"),a[t])}));return e};e.exports=Object.assign(fn,a)},58: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 s=t.indexOf("--");return n!==-1&&(s===-1?true:n{"use strict";const n=r(2037);const s=r(58);const o=process.env;let i;if(s("no-color")||s("no-colors")||s("color=false")){i=false}else if(s("color")||s("colors")||s("color=true")||s("color=always")){i=true}if("FORCE_COLOR"in o){i=o.FORCE_COLOR.length===0||parseInt(o.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(i===false){return 0}if(s("color=16m")||s("color=full")||s("color=truecolor")){return 3}if(s("color=256")){return 2}if(e&&!e.isTTY&&i!==true){return 0}const t=i?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 o){if(["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some((e=>e in o))||o.CI_NAME==="codeship"){return 1}return t}if("TEAMCITY_VERSION"in o){return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(o.TEAMCITY_VERSION)?1:0}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}if(o.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)}},5132:(e,t,r)=>{"use strict";const n=r(3837);const s=r(1017);const o=r(4521);const i=r(6594);const a=r(4843);const c=r(1235);const u=r(6998);const l=r(9881);const{green:p,grey:d,red:h,underline:m,yellow:g}=i;let y=false;const b=u.options.default;const v=u.name;class Signale{constructor(e={}){this._interactive=e.interactive||false;this._config=Object.assign(this.packageConfiguration,e.config);this._customTypes=Object.assign({},e.types);this._disabled=e.disabled||false;this._scopeName=e.scope||"";this._timers=e.timers||new Map;this._types=this._mergeTypes(l,this._customTypes);this._stream=e.stream||process.stdout;this._longestLabel=this._getLongestLabel();this._secrets=e.secrets||[];this._generalLogLevel=this._validateLogLevel(e.logLevel);Object.keys(this._types).forEach((e=>{this[e]=this._logger.bind(this,e)}))}get _now(){return Date.now()}get scopeName(){return this._scopeName}get currentOptions(){return Object.assign({},{config:this._config,disabled:this._disabled,types:this._customTypes,interactive:this._interactive,timers:this._timers,stream:this._stream,secrets:this._secrets,logLevel:this._generalLogLevel})}get date(){return(new Date).toLocaleDateString()}get timestamp(){return(new Date).toLocaleTimeString()}get filename(){const e=Error.prepareStackTrace;Error.prepareStackTrace=(e,t)=>t;const{stack:t}=new Error;Error.prepareStackTrace=e;const r=t.map((e=>e.getFileName()));const n=r.find((e=>e!==r[0]));return n?s.basename(n):"anonymous"}get packageConfiguration(){return c.sync(v,{defaults:b})}get _longestUnderlinedLabel(){return m(this._longestLabel)}get _logLevels(){return{info:0,timer:1,debug:2,warn:3,error:4}}set configuration(e){this._config=Object.assign(this.packageConfiguration,e)}_arrayify(e){return Array.isArray(e)?e:[e]}_timeSpan(e){return this._now-e}_getLongestLabel(){const{_types:e}=this;const t=Object.keys(e).map((t=>e[t].label));return t.reduce(((e,t)=>e.length>t.length?e:t))}_validateLogLevel(e){return Object.keys(this._logLevels).includes(e)?e:"info"}_mergeTypes(e,t){const r=Object.assign({},e);Object.keys(t).forEach((e=>{r[e]=Object.assign({},r[e],t[e])}));return r}_filterSecrets(e){const{_secrets:t}=this;if(t.length===0){return e}let r=e;t.forEach((e=>{r=r.replace(new RegExp(e,"g"),"[secure]")}));return r}_formatStream(e){return this._arrayify(e)}_formatDate(){return`[${this.date}]`}_formatFilename(){return`[${this.filename}]`}_formatScopeName(){if(Array.isArray(this._scopeName)){const e=this._scopeName.filter((e=>e.length!==0));return`${e.map((e=>`[${e.trim()}]`)).join(" ")}`}return`[${this._scopeName}]`}_formatTimestamp(){return`[${this.timestamp}]`}_formatMessage(e){return n.format(...this._arrayify(e))}_meta(){const e=[];if(this._config.displayDate){e.push(this._formatDate())}if(this._config.displayTimestamp){e.push(this._formatTimestamp())}if(this._config.displayFilename){e.push(this._formatFilename())}if(this._scopeName.length!==0&&this._config.displayScope){e.push(this._formatScopeName())}if(e.length!==0){e.push(`${a.pointerSmall}`);return e.map((e=>d(e)))}return e}_hasAdditional({suffix:e,prefix:t},r){return e||t?"":this._formatMessage(r)}_buildSignale(e,...t){let[r,n]=[{},{}];if(t.length===1&&typeof t[0]==="object"&&t[0]!==null){if(t[0]instanceof Error){[r]=t}else{const[{prefix:e,message:s,suffix:o}]=t;n=Object.assign({},{suffix:o,prefix:e});r=s?this._formatMessage(s):this._hasAdditional(n,t)}}else{r=this._formatMessage(t)}const s=this._meta();if(n.prefix){if(this._config.underlinePrefix){s.push(m(n.prefix))}else{s.push(n.prefix)}}if(this._config.displayBadge&&e.badge){s.push(i[e.color](this._padEnd(e.badge,e.badge.length+1)))}if(this._config.displayLabel&&e.label){const t=this._config.uppercaseLabel?e.label.toUpperCase():e.label;if(this._config.underlineLabel){s.push(i[e.color](this._padEnd(m(t),this._longestUnderlinedLabel.length+1)))}else{s.push(i[e.color](this._padEnd(t,this._longestLabel.length+1)))}}if(r instanceof Error&&r.stack){const[e,...t]=r.stack.split("\n");if(this._config.underlineMessage){s.push(m(e))}else{s.push(e)}s.push(d(t.map((e=>e.replace(/^/,"\n"))).join("")));return s.join(" ")}if(this._config.underlineMessage){s.push(m(r))}else{s.push(r)}if(n.suffix){if(this._config.underlineSuffix){s.push(m(n.suffix))}else{s.push(n.suffix)}}return s.join(" ")}_write(e,t){if(this._interactive&&e.isTTY&&y){o.moveCursor(e,0,-1);o.clearLine(e);o.cursorTo(e,0)}e.write(t+"\n");y=this._interactive}_log(e,t=this._stream,r){if(this.isEnabled()&&this._logLevels[r]>=this._logLevels[this._generalLogLevel]){this._formatStream(t).forEach((t=>{this._write(t,e)}))}}_logger(e,...t){const{stream:r,logLevel:n}=this._types[e];const s=this._buildSignale(this._types[e],...t);this._log(this._filterSecrets(s),r,this._validateLogLevel(n))}_padEnd(e,t){e=String(e);t=parseInt(t,10)||0;if(e.length>=t){return e}if(String.prototype.padEnd){return e.padEnd(t)}t-=e.length;return e+" ".repeat(t)}addSecrets(e){if(!Array.isArray(e)){throw new TypeError("Argument must be an array.")}this._secrets.push(...e)}clearSecrets(){this._secrets=[]}config(e){this.configuration=e}disable(){this._disabled=true}enable(){this._disabled=false}isEnabled(){return!this._disabled}scope(...e){if(e.length===0){throw new Error("No scope name was defined.")}return new Signale(Object.assign(this.currentOptions,{scope:e}))}unscope(){this._scopeName=""}time(e){if(!e){e=`timer_${this._timers.size}`}this._timers.set(e,this._now);const t=this._meta();t.push(p(this._padEnd(this._types.start.badge,2)));if(this._config.underlineLabel){t.push(p(this._padEnd(m(e),this._longestUnderlinedLabel.length+1)))}else{t.push(p(this._padEnd(e,this._longestLabel.length+1)))}t.push("Initialized timer...");this._log(t.join(" "),this._stream,"timer");return e}timeEnd(e){if(!e&&this._timers.size){const is=e=>e.includes("timer_");e=[...this._timers.keys()].reduceRight(((e,t)=>is(e)?e:is(t)?t:null))}if(this._timers.has(e)){const t=this._timeSpan(this._timers.get(e));this._timers.delete(e);const r=this._meta();r.push(h(this._padEnd(this._types.pause.badge,2)));if(this._config.underlineLabel){r.push(h(this._padEnd(m(e),this._longestUnderlinedLabel.length+1)))}else{r.push(h(this._padEnd(e,this._longestLabel.length+1)))}r.push("Timer run for:");r.push(g(t<1e3?t+"ms":(t/1e3).toFixed(2)+"s"));this._log(r.join(" "),this._stream,"timer");return{label:e,span:t}}}}e.exports=Signale},9881:(e,t,r)=>{"use strict";const n=r(4843);e.exports={error:{badge:n.cross,color:"red",label:"error",logLevel:"error"},fatal:{badge:n.cross,color:"red",label:"fatal",logLevel:"error"},fav:{badge:n("❤"),color:"magenta",label:"favorite",logLevel:"info"},info:{badge:n.info,color:"blue",label:"info",logLevel:"info"},star:{badge:n.star,color:"yellow",label:"star",logLevel:"info"},success:{badge:n.tick,color:"green",label:"success",logLevel:"info"},wait:{badge:n.ellipsis,color:"blue",label:"waiting",logLevel:"info"},warn:{badge:n.warning,color:"yellow",label:"warning",logLevel:"warn"},complete:{badge:n.checkboxOn,color:"cyan",label:"complete",logLevel:"info"},pending:{badge:n.checkboxOff,color:"magenta",label:"pending",logLevel:"info"},note:{badge:n.bullet,color:"blue",label:"note",logLevel:"info"},start:{badge:n.play,color:"green",label:"start",logLevel:"info"},pause:{badge:n.squareSmallFilled,color:"yellow",label:"pause",logLevel:"info"},debug:{badge:n("⬤"),color:"red",label:"debug",logLevel:"debug"},await:{badge:n.ellipsis,color:"blue",label:"awaiting",logLevel:"info"},watch:{badge:n.ellipsis,color:"yellow",label:"watching",logLevel:"info"},log:{badge:"",color:"",label:"",logLevel:"info"}}},1949:(e,t,r)=>{const n=r(4966);const{GitConstructError:s}=r(4732);const{createInstanceConfig:o,folderExists:i}=r(847);const a=Object.create(null);for(let e=r(4732),t=Object.keys(e),n=0;n{const{GitExecutor:n}=r(4701);const{Scheduler:s}=r(3421);const{GitLogger:o}=r(7178);const{adhocExecTask:i,configurationErrorTask:a}=r(2815);const{NOOP:c,appendTaskOptions:u,asArray:l,filterArray:p,filterPrimitives:d,filterString:h,filterStringOrStringArray:m,filterType:g,folderExists:y,getTrailingOptions:b,trailingFunctionArgument:v,trailingOptionsArgument:w}=r(847);const{branchTask:T,branchLocalTask:_,deleteBranchesTask:k,deleteBranchTask:O}=r(17);const{taskCallback:S}=r(8850);const{checkIsRepoTask:C}=r(221);const{cloneTask:P,cloneMirrorTask:R}=r(3173);const{addConfigTask:A,listConfigTask:x}=r(7597);const{cleanWithOptionsTask:G,isCleanOptionsArray:j}=r(4386);const{commitTask:I}=r(5494);const{diffSummaryTask:L}=r(9241);const{fetchTask:D}=r(8823);const{hashObjectTask:M}=r(8199);const{initTask:N}=r(6016);const{logTask:U,parseLogOptions:B}=r(8627);const{mergeTask:q}=r(8829);const{moveTask:$}=r(6520);const{pullTask:H}=r(4636);const{pushTagsTask:W,pushTask:V}=r(1435);const{addRemoteTask:z,getRemotesTask:Y,listRemotesTask:K,remoteTask:J,removeRemoteTask:Q}=r(9866);const{getResetMode:X,resetTask:Z}=r(2377);const{stashListTask:ee}=r(810);const{statusTask:te}=r(9197);const{addSubModuleTask:re,initSubModuleTask:ne,subModuleTask:se,updateSubModuleTask:oe}=r(8772);const{addAnnotatedTagTask:ie,addTagTask:ae,tagListTask:ce}=r(8540);const{straightThroughStringTask:ue}=r(2815);const{parseCheckIgnore:le}=r(9926);const pe=Symbol("ChainedExecutor");function Git(e){this._executor=new n(e.binary,e.baseDir,new s(e.maxConcurrentProcesses));this._logger=new o}Git.prototype._executor=null;Git.prototype._logger=null;Git.prototype.customBinary=function(e){this._executor.binary=e;return this};Git.prototype.env=function(e,t){if(arguments.length===1&&typeof e==="object"){this._executor.env=e}else{(this._executor.env=this._executor.env||{})[e]=t}return this};Git.prototype.cwd=function(e){const t=typeof e!=="string"?a("Git.cwd: workingDirectory must be supplied as a string"):i((()=>{if(!y(e)){throw new Error(`Git.cwd: cannot change to non-directory "${e}"`)}return this._executor.cwd=e}));return this._runTask(t,v(arguments)||c)};Git.prototype.outputHandler=function(e){this._executor.outputHandler=e;return this};Git.prototype.init=function(e,t){return this._runTask(N(e===true,this._executor.cwd,b(arguments)),v(arguments))};Git.prototype.status=function(){return this._runTask(te(b(arguments)),v(arguments))};Git.prototype.stashList=function(e){return this._runTask(ee(w(arguments)||{},p(e)&&e||[]),v(arguments))};Git.prototype.stash=function(e,t){return this._runTask(ue(["stash",...b(arguments)]),v(arguments))};function createCloneTask(e,t,r,n){if(typeof r!=="string"){return a(`git.${e}() requires a string 'repoPath'`)}return t(r,g(n,h),b(arguments))}Git.prototype.clone=function(){return this._runTask(createCloneTask("clone",P,...arguments),v(arguments))};Git.prototype.mirror=function(){return this._runTask(createCloneTask("mirror",R,...arguments),v(arguments))};Git.prototype.mv=function(e,t){return this._runTask($(e,t),v(arguments))};Git.prototype.checkoutLatestTag=function(e){var t=this;return this.pull((function(){t.tags((function(r,n){t.checkout(n.latest,e)}))}))};Git.prototype.add=function(e){return this._run(["add"].concat(e),v(arguments))};Git.prototype.commit=function(e,t,r,n){const s=v(arguments);const o=[];if(m(e)){o.push(...l(e))}else{console.warn("simple-git deprecation notice: git.commit: requires the commit message to be supplied as a string/string[], this will be an error in version 3")}return this._runTask(I(o,l(g(t,m,[])),[...g(r,p,[]),...b(arguments,0,true)]),s)};Git.prototype.pull=function(e,t,r,n){return this._runTask(H(g(e,h),g(t,h),b(arguments)),v(arguments))};Git.prototype.fetch=function(e,t){return this._runTask(D(g(e,h),g(t,h),b(arguments)),v(arguments))};Git.prototype.silent=function(e){this._logger.silent(!!e);return this};Git.prototype.tags=function(e,t){return this._runTask(ce(b(arguments)),v(arguments))};Git.prototype.rebase=function(){return this._run(["rebase"].concat(b(arguments)),v(arguments))};Git.prototype.reset=function(e,t){return this._runTask(Z(X(e),b(arguments)),v(arguments))};Git.prototype.revert=function(e){const t=v(arguments);if(typeof e!=="string"){return this._runTask(a("Commit must be a string"),t)}return this._run(["revert",...b(arguments,0,true),e],t)};Git.prototype.addTag=function(e,t){const r=typeof e==="string"?ae(e):a("Git.addTag requires a tag name");return this._runTask(r,v(arguments))};Git.prototype.addAnnotatedTag=function(e,t,r){return this._runTask(ie(e,t),v(arguments))};Git.prototype.checkout=function(e,t){const r=["checkout",...b(arguments,true)];return this._runTask(ue(r),v(arguments))};Git.prototype.checkoutBranch=function(e,t,r){return this.checkout(["-b",e,t],v(arguments))};Git.prototype.checkoutLocalBranch=function(e,t){return this.checkout(["-b",e],v(arguments))};Git.prototype.deleteLocalBranch=function(e,t,r){return this._runTask(O(e,typeof t==="boolean"?t:false),v(arguments))};Git.prototype.deleteLocalBranches=function(e,t,r){return this._runTask(k(e,typeof t==="boolean"?t:false),v(arguments))};Git.prototype.branch=function(e,t){return this._runTask(T(b(arguments)),v(arguments))};Git.prototype.branchLocal=function(e){return this._runTask(_(),v(arguments))};Git.prototype.addConfig=function(e,t,r,n){return this._runTask(A(e,t,typeof r==="boolean"?r:false),v(arguments))};Git.prototype.listConfig=function(){return this._runTask(x(),v(arguments))};Git.prototype.raw=function(e){const t=!Array.isArray(e);const r=[].slice.call(t?arguments:e,0);for(let e=0;e{const{gitP:n}=r(941);const{esModuleFactory:s,gitInstanceFactory:o,gitExportFactory:i}=r(1949);e.exports=s(i(o,{gitP:n}))},4732:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.TaskConfigurationError=t.GitResponseError=t.GitError=t.GitConstructError=t.ResetMode=t.CheckRepoActions=t.CleanOptions=void 0;var n=r(4386);Object.defineProperty(t,"CleanOptions",{enumerable:true,get:function(){return n.CleanOptions}});var s=r(221);Object.defineProperty(t,"CheckRepoActions",{enumerable:true,get:function(){return s.CheckRepoActions}});var o=r(2377);Object.defineProperty(t,"ResetMode",{enumerable:true,get:function(){return o.ResetMode}});var i=r(1876);Object.defineProperty(t,"GitConstructError",{enumerable:true,get:function(){return i.GitConstructError}});var a=r(5757);Object.defineProperty(t,"GitError",{enumerable:true,get:function(){return a.GitError}});var c=r(5131);Object.defineProperty(t,"GitResponseError",{enumerable:true,get:function(){return c.GitResponseError}});var u=r(740);Object.defineProperty(t,"TaskConfigurationError",{enumerable:true,get:function(){return u.TaskConfigurationError}})},1876:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.GitConstructError=void 0;const n=r(5757);class GitConstructError extends n.GitError{constructor(e,t){super(undefined,t);this.config=e}}t.GitConstructError=GitConstructError},5757:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.GitError=void 0;class GitError extends Error{constructor(e,t){super(t);this.task=e;Object.setPrototypeOf(this,new.target.prototype)}}t.GitError=GitError},5131:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.GitResponseError=void 0;const n=r(5757);class GitResponseError extends n.GitError{constructor(e,t){super(undefined,t||String(e));this.git=e}}t.GitResponseError=GitResponseError},740:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.TaskConfigurationError=void 0;const n=r(5757);class TaskConfigurationError extends n.GitError{constructor(e){super(undefined,e)}}t.TaskConfigurationError=TaskConfigurationError},7178:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.GitLogger=t.createLogger=t.log=void 0;const n=r(8231);const s=r(847);n.default.formatters.L=e=>String(s.filterHasLength(e)?e.length:"-");n.default.formatters.B=e=>{if(Buffer.isBuffer(e)){return e.toString("utf8")}return s.objectToString(e)};t.log=n.default("simple-git");function prefixedLogger(e,t,r){if(!t||!String(t).replace(/\s*/,"")){return!r?e:(t,...n)=>{e(t,...n);r(t,...n)}}return(n,...s)=>{e(`%s ${n}`,t,...s);if(r){r(n,...s)}}}function childLoggerName(e,t,{namespace:r}){if(typeof e==="string"){return e}const n=t&&t.namespace||"";if(n.startsWith(r)){return n.substr(r.length+1)}return n||r}function createLogger(e,r,n,o=t.log){const i=e&&`[${e}]`||"";const a=[];const c=typeof r==="string"?o.extend(r):r;const u=childLoggerName(s.filterType(r,s.filterString),c,o);return step(n);function destroy(){a.forEach((e=>e.destroy()));a.length=0}function child(t){return s.append(a,createLogger(e,c&&c.extend(t)||t))}function sibling(t,r){return s.append(a,createLogger(e,u.replace(/^[^:]+/,t),r,o))}function step(t){const r=t&&`[${t}]`||"";const n=c&&prefixedLogger(c,r)||s.NOOP;const a=prefixedLogger(o,`${i} ${r}`,n);return Object.assign(c?n:a,{key:u,label:e,child:child,sibling:sibling,debug:n,info:a,step:step,destroy:destroy})}}t.createLogger=createLogger;class GitLogger{constructor(e=t.log){this._out=e;this.error=prefixedLogger(e,"[ERROR]");this.warn=prefixedLogger(e,"[WARN]")}silent(e=false){if(e!==this._out.enabled){return}const{namespace:t}=this._out;const r=(process.env.DEBUG||"").split(",").filter((e=>!!e));const o=r.includes(t);const i=r.includes(`-${t}`);if(!e){if(i){s.remove(r,`-${t}`)}else{r.push(t)}}else{if(o){s.remove(r,t)}else{r.push(`-${t}`)}}n.default.enable(r.join(","))}}t.GitLogger=GitLogger},6086:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.hasBranchDeletionError=t.parseBranchDeletions=void 0;const n=r(3755);const s=r(847);const o=/(\S+)\s+\(\S+\s([^)]+)\)/;const i=/^error[^']+'([^']+)'/m;const a=[new s.LineParser(o,((e,[t,r])=>{const s=n.branchDeletionSuccess(t,r);e.all.push(s);e.branches[t]=s})),new s.LineParser(i,((e,[t])=>{const r=n.branchDeletionFailure(t);e.errors.push(r);e.all.push(r);e.branches[t]=r}))];const parseBranchDeletions=e=>s.parseStringResponse(new n.BranchDeletionBatch,a,e);t.parseBranchDeletions=parseBranchDeletions;function hasBranchDeletionError(e,t){return t===s.ExitCodes.ERROR&&i.test(e)}t.hasBranchDeletionError=hasBranchDeletionError},9264:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.parseBranchSummary=void 0;const n=r(4446);const s=r(847);const o=[new s.LineParser(/^(\*\s)?\((?:HEAD )?detached (?:from|at) (\S+)\)\s+([a-z0-9]+)\s(.*)$/,((e,[t,r,n,s])=>{e.push(!!t,true,r,n,s)})),new s.LineParser(/^(\*\s)?(\S+)\s+([a-z0-9]+)\s(.*)$/,((e,[t,r,n,s])=>{e.push(!!t,false,r,n,s)}))];function parseBranchSummary(e){return s.parseStringResponse(new n.BranchSummaryResult,o,e)}t.parseBranchSummary=parseBranchSummary},3026:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.parseCommitResult=void 0;const n=r(847);const s=[new n.LineParser(/\[([^\s]+) ([^\]]+)/,((e,[t,r])=>{e.branch=t;e.commit=r})),new n.LineParser(/\s*Author:\s(.+)/i,((e,[t])=>{const r=t.split("<");const n=r.pop();if(!n||!n.includes("@")){return}e.author={email:n.substr(0,n.length-1),name:r.join("<").trim()}})),new n.LineParser(/(\d+)[^,]*(?:,\s*(\d+)[^,]*)(?:,\s*(\d+))/g,((e,[t,r,n])=>{e.summary.changes=parseInt(t,10)||0;e.summary.insertions=parseInt(r,10)||0;e.summary.deletions=parseInt(n,10)||0})),new n.LineParser(/^(\d+)[^,]*(?:,\s*(\d+)[^(]+\(([+-]))?/,((e,[t,r,n])=>{e.summary.changes=parseInt(t,10)||0;const s=parseInt(r,10)||0;if(n==="-"){e.summary.deletions=s}else if(n==="+"){e.summary.insertions=s}}))];function parseCommitResult(e){const t={author:null,branch:"",commit:"",summary:{changes:0,insertions:0,deletions:0}};return n.parseStringResponse(t,s,e)}t.parseCommitResult=parseCommitResult},2024:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.parseDiffResult=void 0;const n=r(4781);function parseDiffResult(e){const t=e.trim().split("\n");const r=new n.DiffSummary;readSummaryLine(r,t.pop());for(let e=0,n=t.length;e ([0-9.]+) ([a-z]+)$/);if(r){t.push({file:r[1].trim(),before:+r[2],after:+r[3],binary:true});return true}return false}},6254:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.parseFetchResult=void 0;const n=r(847);const s=[new n.LineParser(/From (.+)$/,((e,[t])=>{e.remote=t})),new n.LineParser(/\* \[new branch]\s+(\S+)\s*-> (.+)$/,((e,[t,r])=>{e.branches.push({name:t,tracking:r})})),new n.LineParser(/\* \[new tag]\s+(\S+)\s*-> (.+)$/,((e,[t,r])=>{e.tags.push({name:t,tracking:r})}))];function parseFetchResult(e,t){const r={raw:e,remote:null,branches:[],tags:[]};return n.parseStringResponse(r,s,e,t)}t.parseFetchResult=parseFetchResult},9729:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.createListLogSummaryParser=t.SPLITTER=t.COMMIT_BOUNDARY=t.START_BOUNDARY=void 0;const n=r(847);const s=r(2024);t.START_BOUNDARY="òòòòòò ";t.COMMIT_BOUNDARY=" òò";t.SPLITTER=" ò ";const o=["hash","date","message","refs","author_name","author_email"];function lineBuilder(e,t){return t.reduce(((t,r,n)=>{t[r]=e[n]||"";return t}),Object.create({diff:null}))}function createListLogSummaryParser(e=t.SPLITTER,r=o){return function(o){const i=n.toLinesWithContent(o,true,t.START_BOUNDARY).map((function(n){const o=n.trim().split(t.COMMIT_BOUNDARY);const i=lineBuilder(o[0].trim().split(e),r);if(o.length>1&&!!o[1].trim()){i.diff=s.parseDiffResult(o[1])}return i}));return{all:i,latest:i.length&&i[0]||null,total:i.length}}}t.createListLogSummaryParser=createListLogSummaryParser},6412:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.parseMergeDetail=t.parseMergeResult=void 0;const n=r(1651);const s=r(847);const o=r(5658);const i=[new s.LineParser(/^Auto-merging\s+(.+)$/,((e,[t])=>{e.merges.push(t)})),new s.LineParser(/^CONFLICT\s+\((.+)\): Merge conflict in (.+)$/,((e,[t,r])=>{e.conflicts.push(new n.MergeSummaryConflict(t,r))})),new s.LineParser(/^CONFLICT\s+\((.+\/delete)\): (.+) deleted in (.+) and/,((e,[t,r,s])=>{e.conflicts.push(new n.MergeSummaryConflict(t,r,{deleteRef:s}))})),new s.LineParser(/^CONFLICT\s+\((.+)\):/,((e,[t])=>{e.conflicts.push(new n.MergeSummaryConflict(t,null))})),new s.LineParser(/^Automatic merge failed;\s+(.+)$/,((e,[t])=>{e.result=t}))];const parseMergeResult=(e,r)=>Object.assign(t.parseMergeDetail(e,r),o.parsePullResult(e,r));t.parseMergeResult=parseMergeResult;const parseMergeDetail=e=>s.parseStringResponse(new n.MergeSummaryDetail,i,e);t.parseMergeDetail=parseMergeDetail},7444:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.parseMoveResult=void 0;const n=r(847);const s=[new n.LineParser(/^Renaming (.+) to (.+)$/,((e,[t,r])=>{e.moves.push({from:t,to:r})}))];function parseMoveResult(e){return n.parseStringResponse({moves:[]},s,e)}t.parseMoveResult=parseMoveResult},5658:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.parsePullResult=t.parsePullDetail=void 0;const n=r(3567);const s=r(847);const o=r(2661);const i=/^\s*(.+?)\s+\|\s+\d+\s*(\+*)(-*)/;const a=/(\d+)\D+((\d+)\D+\(\+\))?(\D+(\d+)\D+\(-\))?/;const c=/^(create|delete) mode \d+ (.+)/;const u=[new s.LineParser(i,((e,[t,r,n])=>{e.files.push(t);if(r){e.insertions[t]=r.length}if(n){e.deletions[t]=n.length}})),new s.LineParser(a,((e,[t,,r,,n])=>{if(r!==undefined||n!==undefined){e.summary.changes=+t||0;e.summary.insertions=+r||0;e.summary.deletions=+n||0;return true}return false})),new s.LineParser(c,((e,[t,r])=>{s.append(e.files,r);s.append(t==="create"?e.created:e.deleted,r)}))];const parsePullDetail=(e,t)=>s.parseStringResponse(new n.PullSummary,u,e,t);t.parsePullDetail=parsePullDetail;const parsePullResult=(e,r)=>Object.assign(new n.PullSummary,t.parsePullDetail(e,r),o.parseRemoteMessages(e,r));t.parsePullResult=parsePullResult},8530:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.parsePushDetail=t.parsePushResult=void 0;const n=r(847);const s=r(2661);function pushResultPushedItem(e,t,r){const n=r.includes("deleted");const s=r.includes("tag")||/^refs\/tags/.test(e);const o=!r.includes("new");return{deleted:n,tag:s,branch:!s,new:!o,alreadyUpdated:o,local:e,remote:t}}const o=[new n.LineParser(/^Pushing to (.+)$/,((e,[t])=>{e.repo=t})),new n.LineParser(/^updating local tracking ref '(.+)'/,((e,[t])=>{e.ref=Object.assign(Object.assign({},e.ref||{}),{local:t})})),new n.LineParser(/^[*-=]\s+([^:]+):(\S+)\s+\[(.+)]$/,((e,[t,r,n])=>{e.pushed.push(pushResultPushedItem(t,r,n))})),new n.LineParser(/^Branch '([^']+)' set up to track remote branch '([^']+)' from '([^']+)'/,((e,[t,r,n])=>{e.branch=Object.assign(Object.assign({},e.branch||{}),{local:t,remote:r,remoteName:n})})),new n.LineParser(/^([^:]+):(\S+)\s+([a-z0-9]+)\.\.([a-z0-9]+)$/,((e,[t,r,n,s])=>{e.update={head:{local:t,remote:r},hash:{from:n,to:s}}}))];const parsePushResult=(e,r)=>{const n=t.parsePushDetail(e,r);const o=s.parseRemoteMessages(e,r);return Object.assign(Object.assign({},n),o)};t.parsePushResult=parsePushResult;const parsePushDetail=(e,t)=>n.parseStringResponse({pushed:[]},o,e,t);t.parsePushDetail=parsePushDetail},2661:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.RemoteMessageSummary=t.parseRemoteMessages=void 0;const n=r(847);const s=r(3565);const o=[new n.RemoteLineParser(/^remote:\s*(.+)$/,((e,[t])=>{e.remoteMessages.all.push(t.trim());return false})),...s.remoteMessagesObjectParsers,new n.RemoteLineParser([/create a (?:pull|merge) request/i,/\s(https?:\/\/\S+)$/],((e,[t])=>{e.remoteMessages.pullRequestUrl=t})),new n.RemoteLineParser([/found (\d+) vulnerabilities.+\(([^)]+)\)/i,/\s(https?:\/\/\S+)$/],((e,[t,r,s])=>{e.remoteMessages.vulnerabilities={count:n.asNumber(t),summary:r,url:s}}))];function parseRemoteMessages(e,t){return n.parseStringResponse({remoteMessages:new RemoteMessageSummary},o,t)}t.parseRemoteMessages=parseRemoteMessages;class RemoteMessageSummary{constructor(){this.all=[]}}t.RemoteMessageSummary=RemoteMessageSummary},3565:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.remoteMessagesObjectParsers=void 0;const n=r(847);function objectEnumerationResult(e){return e.objects=e.objects||{compressing:0,counting:0,enumerating:0,packReused:0,reused:{count:0,delta:0},total:{count:0,delta:0}}}function asObjectCount(e){const t=/^\s*(\d+)/.exec(e);const r=/delta (\d+)/i.exec(e);return{count:n.asNumber(t&&t[1]||"0"),delta:n.asNumber(r&&r[1]||"0")}}t.remoteMessagesObjectParsers=[new n.RemoteLineParser(/^remote:\s*(enumerating|counting|compressing) objects: (\d+),/i,((e,[t,r])=>{const s=t.toLowerCase();const o=objectEnumerationResult(e.remoteMessages);Object.assign(o,{[s]:n.asNumber(r)})})),new n.RemoteLineParser(/^remote:\s*(enumerating|counting|compressing) objects: \d+% \(\d+\/(\d+)\),/i,((e,[t,r])=>{const s=t.toLowerCase();const o=objectEnumerationResult(e.remoteMessages);Object.assign(o,{[s]:n.asNumber(r)})})),new n.RemoteLineParser(/total ([^,]+), reused ([^,]+), pack-reused (\d+)/i,((e,[t,r,s])=>{const o=objectEnumerationResult(e.remoteMessages);o.total=asObjectCount(t);o.reused=asObjectCount(r);o.packReused=n.asNumber(s)}))]},3755:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isSingleBranchDeleteFailure=t.branchDeletionFailure=t.branchDeletionSuccess=t.BranchDeletionBatch=void 0;class BranchDeletionBatch{constructor(){this.all=[];this.branches={};this.errors=[]}get success(){return!this.errors.length}}t.BranchDeletionBatch=BranchDeletionBatch;function branchDeletionSuccess(e,t){return{branch:e,hash:t,success:true}}t.branchDeletionSuccess=branchDeletionSuccess;function branchDeletionFailure(e){return{branch:e,hash:null,success:false}}t.branchDeletionFailure=branchDeletionFailure;function isSingleBranchDeleteFailure(e){return e.success}t.isSingleBranchDeleteFailure=isSingleBranchDeleteFailure},4446:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.BranchSummaryResult=void 0;class BranchSummaryResult{constructor(){this.all=[];this.branches={};this.current="";this.detached=false}push(e,t,r,n,s){if(e){this.detached=t;this.current=r}this.all.push(r);this.branches[r]={current:e,name:r,commit:n,label:s}}}t.BranchSummaryResult=BranchSummaryResult},9926:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.parseCheckIgnore=void 0;const parseCheckIgnore=e=>e.split(/\n/g).map((e=>e.trim())).filter((e=>!!e));t.parseCheckIgnore=parseCheckIgnore},5689:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.cleanSummaryParser=t.CleanResponse=void 0;const n=r(847);class CleanResponse{constructor(e){this.dryRun=e;this.paths=[];this.files=[];this.folders=[]}}t.CleanResponse=CleanResponse;const s=/^[a-z]+\s*/i;const o=/^[a-z]+\s+[a-z]+\s*/i;const i=/\/$/;function cleanSummaryParser(e,t){const r=new CleanResponse(e);const a=e?o:s;n.toLinesWithContent(t).forEach((e=>{const t=e.replace(a,"");r.paths.push(t);(i.test(t)?r.folders:r.files).push(t)}));return r}t.cleanSummaryParser=cleanSummaryParser},7219:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.configListParser=t.ConfigList=void 0;const n=r(847);class ConfigList{constructor(){this.files=[];this.values=Object.create(null)}get all(){if(!this._all){this._all=this.files.reduce(((e,t)=>Object.assign(e,this.values[t])),{})}return this._all}addFile(e){if(!(e in this.values)){const t=n.last(this.files);this.values[e]=t?Object.create(this.values[t]):{};this.files.push(e)}return this.values[e]}addValue(e,t,r){const n=this.addFile(e);if(!n.hasOwnProperty(t)){n[t]=r}else if(Array.isArray(n[t])){n[t].push(r)}else{n[t]=[n[t],r]}this._all=undefined}}t.ConfigList=ConfigList;function configListParser(e){const t=new ConfigList;const r=e.split("\0");for(let e=0,s=r.length-1;e{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.DiffSummary=void 0;class DiffSummary{constructor(){this.changed=0;this.deletions=0;this.insertions=0;this.files=[]}}t.DiffSummary=DiffSummary},860:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.FileStatusSummary=t.fromPathRegex=void 0;t.fromPathRegex=/^(.+) -> (.+)$/;class FileStatusSummary{constructor(e,r,n){this.path=e;this.index=r;this.working_dir=n;if("R"===r+n){const r=t.fromPathRegex.exec(e)||[null,e,e];this.from=r[1]||"";this.path=r[2]||""}}}t.FileStatusSummary=FileStatusSummary},9999:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.parseGetRemotesVerbose=t.parseGetRemotes=void 0;const n=r(847);function parseGetRemotes(e){const t={};forEach(e,(([e])=>t[e]={name:e}));return Object.values(t)}t.parseGetRemotes=parseGetRemotes;function parseGetRemotesVerbose(e){const t={};forEach(e,(([e,r,n])=>{if(!t.hasOwnProperty(e)){t[e]={name:e,refs:{fetch:"",push:""}}}if(n&&r){t[e].refs[n.replace(/[^a-z]/g,"")]=r}}));return Object.values(t)}t.parseGetRemotesVerbose=parseGetRemotesVerbose;function forEach(e,t){n.forEachLineWithContent(e,(e=>t(e.split(/\s+/))))}},8690:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.parseInit=t.InitSummary=void 0;class InitSummary{constructor(e,t,r,n){this.bare=e;this.path=t;this.existing=r;this.gitDir=n}}t.InitSummary=InitSummary;const r=/^Init.+ repository in (.+)$/;const n=/^Rein.+ in (.+)$/;function parseInit(e,t,s){const o=String(s).trim();let i;if(i=r.exec(o)){return new InitSummary(e,t,false,i[1])}if(i=n.exec(o)){return new InitSummary(e,t,true,i[1])}let a="";const c=o.split(" ");while(c.length){const e=c.shift();if(e==="in"){a=c.join(" ");break}}return new InitSummary(e,t,/^re/i.test(o),a)}t.parseInit=parseInit},1651:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.MergeSummaryDetail=t.MergeSummaryConflict=void 0;class MergeSummaryConflict{constructor(e,t=null,r){this.reason=e;this.file=t;this.meta=r}toString(){return`${this.file}:${this.reason}`}}t.MergeSummaryConflict=MergeSummaryConflict;class MergeSummaryDetail{constructor(){this.conflicts=[];this.merges=[];this.result="success"}get failed(){return this.conflicts.length>0}get reason(){return this.result}toString(){if(this.conflicts.length){return`CONFLICTS: ${this.conflicts.join(", ")}`}return"OK"}}t.MergeSummaryDetail=MergeSummaryDetail},3567:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.PullSummary=void 0;class PullSummary{constructor(){this.remoteMessages={all:[]};this.created=[];this.deleted=[];this.files=[];this.deletions={};this.insertions={};this.summary={changes:0,deletions:0,insertions:0}}}t.PullSummary=PullSummary},6790:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.parseStatusSummary=t.StatusSummary=void 0;const n=r(847);const s=r(860);class StatusSummary{constructor(){this.not_added=[];this.conflicted=[];this.created=[];this.deleted=[];this.modified=[];this.renamed=[];this.files=[];this.staged=[];this.ahead=0;this.behind=0;this.current=null;this.tracking=null}isClean(){return!this.files.length}}t.StatusSummary=StatusSummary;var o;(function(e){e["ADDED"]="A";e["DELETED"]="D";e["MODIFIED"]="M";e["RENAMED"]="R";e["COPIED"]="C";e["UNMERGED"]="U";e["UNTRACKED"]="?";e["IGNORED"]="!";e["NONE"]=" "})(o||(o={}));function renamedFile(e){const t=/^(.+) -> (.+)$/.exec(e);if(!t){return{from:e,to:e}}return{from:String(t[1]),to:String(t[2])}}function parser(e,t,r){return[`${e}${t}`,r]}function conflicts(e,...t){return t.map((t=>parser(e,t,((e,t)=>n.append(e.conflicted,t)))))}const i=new Map([parser(o.NONE,o.ADDED,((e,t)=>n.append(e.created,t))),parser(o.NONE,o.DELETED,((e,t)=>n.append(e.deleted,t))),parser(o.NONE,o.MODIFIED,((e,t)=>n.append(e.modified,t))),parser(o.ADDED,o.NONE,((e,t)=>n.append(e.created,t)&&n.append(e.staged,t))),parser(o.ADDED,o.MODIFIED,((e,t)=>n.append(e.created,t)&&n.append(e.staged,t)&&n.append(e.modified,t))),parser(o.DELETED,o.NONE,((e,t)=>n.append(e.deleted,t)&&n.append(e.staged,t))),parser(o.MODIFIED,o.NONE,((e,t)=>n.append(e.modified,t)&&n.append(e.staged,t))),parser(o.MODIFIED,o.MODIFIED,((e,t)=>n.append(e.modified,t)&&n.append(e.staged,t))),parser(o.RENAMED,o.NONE,((e,t)=>{n.append(e.renamed,renamedFile(t))})),parser(o.RENAMED,o.MODIFIED,((e,t)=>{const r=renamedFile(t);n.append(e.renamed,r);n.append(e.modified,r.to)})),parser(o.UNTRACKED,o.UNTRACKED,((e,t)=>n.append(e.not_added,t))),...conflicts(o.ADDED,o.ADDED,o.UNMERGED),...conflicts(o.DELETED,o.DELETED,o.UNMERGED),...conflicts(o.UNMERGED,o.ADDED,o.DELETED,o.UNMERGED),["##",(e,t)=>{const r=/ahead (\d+)/;const n=/behind (\d+)/;const s=/^(.+?(?=(?:\.{3}|\s|$)))/;const o=/\.{3}(\S*)/;const i=/\son\s([\S]+)$/;let a;a=r.exec(t);e.ahead=a&&+a[1]||0;a=n.exec(t);e.behind=a&&+a[1]||0;a=s.exec(t);e.current=a&&a[1];a=o.exec(t);e.tracking=a&&a[1];a=i.exec(t);e.current=a&&a[1]||e.current}]]);const parseStatusSummary=function(e){const t=e.trim().split("\n");const r=new StatusSummary;for(let e=0,n=t.length;e{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.parseTagList=t.TagList=void 0;class TagList{constructor(e,t){this.all=e;this.latest=t}}t.TagList=TagList;const parseTagList=function(e,t=false){const r=e.split("\n").map(trimmed).filter(Boolean);if(!t){r.sort((function(e,t){const r=e.split(".");const n=t.split(".");if(r.length===1||n.length===1){return singleSorted(toNumber(r[0]),toNumber(n[0]))}for(let e=0,t=Math.max(r.length,n.length);ee.indexOf(".")>=0));return new TagList(r,n)};t.parseTagList=parseTagList;function singleSorted(e,t){const r=isNaN(e);const n=isNaN(t);if(r!==n){return r?1:-1}return r?sorted(e,t):0}function sorted(e,t){return e===t?0:e>t?1:-1}function trimmed(e){return e.trim()}function toNumber(e){if(typeof e==="string"){return parseInt(e.replace(/^\D+/g,""),10)||0}return 0}},8543: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,s){function fulfilled(e){try{step(n.next(e))}catch(e){s(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){s(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.GitExecutorChain=void 0;const s=r(2081);const o=r(4732);const i=r(2815);const a=r(6676);const c=r(847);class GitExecutorChain{constructor(e,t){this._executor=e;this._scheduler=t;this._chain=Promise.resolve();this._queue=new a.TasksPendingQueue}get binary(){return this._executor.binary}get outputHandler(){return this._executor.outputHandler}get cwd(){return this._executor.cwd}get env(){return this._executor.env}push(e){this._queue.push(e);return this._chain=this._chain.then((()=>this.attemptTask(e)))}attemptTask(e){return n(this,void 0,void 0,(function*(){const t=yield this._scheduler.next();const onQueueComplete=()=>this._queue.complete(e);try{const{logger:r}=this._queue.attempt(e);return yield i.isEmptyTask(e)?this.attemptEmptyTask(e,r):this.attemptRemoteTask(e,r)}catch(t){throw this.onFatalException(e,t)}finally{onQueueComplete();t()}}))}onFatalException(e,t){const r=t instanceof o.GitError?Object.assign(t,{task:e}):new o.GitError(e,t&&String(t));this._chain=Promise.resolve();this._queue.fatal(r);return r}attemptRemoteTask(e,t){return n(this,void 0,void 0,(function*(){const r=yield this.gitResponse(this.binary,e.commands,this.outputHandler,t.step("SPAWN"));const n=yield this.handleTaskData(e,r,t.step("HANDLE"));t(`passing response to task's parser as a %s`,e.format);if(i.isBufferTask(e)){return c.callTaskParser(e.parser,n)}return c.callTaskParser(e.parser,n.asStrings())}))}attemptEmptyTask(e,t){return n(this,void 0,void 0,(function*(){t(`empty task bypassing child process to call to task's parser`);return e.parser()}))}handleTaskData({onError:e,concatStdErr:t},{exitCode:r,stdOut:n,stdErr:s},o){return new Promise(((i,a)=>{o(`Preparing to handle process response exitCode=%d stdOut=`,r);if(r&&s.length&&e){o.info(`exitCode=%s handling with custom error handler`);o(`concatenate stdErr to stdOut: %j`,t);return e(r,Buffer.concat([...t?n:[],...s]).toString("utf-8"),(e=>{o.info(`custom error handler treated as success`);o(`custom error returned a %s`,c.objectToString(e));i(new c.GitOutputStreams(Buffer.isBuffer(e)?e:Buffer.from(String(e)),Buffer.concat(s)))}),a)}if(r&&s.length){o.info(`exitCode=%s treated as error when then child process has written to stdErr`);return a(Buffer.concat(s).toString("utf-8"))}if(t){o(`concatenating stdErr onto stdOut before processing`);o(`stdErr: $O`,s);n.push(...s)}o.info(`retrieving task output complete`);i(new c.GitOutputStreams(Buffer.concat(n),Buffer.concat(s)))}))}gitResponse(e,t,r,o){return n(this,void 0,void 0,(function*(){const n=o.sibling("output");const i={cwd:this.cwd,env:this.env,windowsHide:true};return new Promise((a=>{const c=[];const u=[];let l=false;function attemptClose(e,t="retry"){if(l||u.length||c.length){o.info(`exitCode=%s event=%s`,e,t);a({stdOut:c,stdErr:u,exitCode:e});l=true;n.destroy()}if(!l){l=true;setTimeout((()=>attemptClose(e,"deferred")),50);o("received %s event before content on stdOut/stdErr",t)}}o.info(`%s %o`,e,t);o("%O",i);const p=s.spawn(e,t,i);p.stdout.on("data",onDataReceived(c,"stdOut",o,n.step("stdOut")));p.stderr.on("data",onDataReceived(u,"stdErr",o,n.step("stdErr")));p.on("error",onErrorReceived(u,o));p.on("close",(e=>attemptClose(e,"close")));p.on("exit",(e=>attemptClose(e,"exit")));if(r){o(`Passing child process stdOut/stdErr to custom outputHandler`);r(e,p.stdout,p.stderr,[...t])}}))}))}}t.GitExecutorChain=GitExecutorChain;function onErrorReceived(e,t){return r=>{t(`[ERROR] child process exception %o`,r);e.push(Buffer.from(String(r.stack),"ascii"))}}function onDataReceived(e,t,r,n){return s=>{r(`%s received %L bytes`,t,s);n(`%B`,s);e.push(s)}}},4701:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.GitExecutor=void 0;const n=r(8543);class GitExecutor{constructor(e="git",t,r){this.binary=e;this.cwd=t;this._scheduler=r;this._chain=new n.GitExecutorChain(this,this._scheduler)}chain(){return new n.GitExecutorChain(this,this._scheduler)}push(e){return this._chain.push(e)}}t.GitExecutor=GitExecutor},941:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.gitP=void 0;const n=r(5131);const s=["customBinary","env","outputHandler","silent"];const o=["add","addAnnotatedTag","addConfig","addRemote","addTag","binaryCatFile","branch","branchLocal","catFile","checkIgnore","checkIsRepo","checkout","checkoutBranch","checkoutLatestTag","checkoutLocalBranch","clean","clone","commit","cwd","deleteLocalBranch","deleteLocalBranches","diff","diffSummary","exec","fetch","getRemotes","init","listConfig","listRemote","log","merge","mergeFromTo","mirror","mv","pull","push","pushTags","raw","rebase","remote","removeRemote","reset","revert","revparse","rm","rmKeepLocal","show","stash","stashList","status","subModule","submoduleAdd","submoduleInit","submoduleUpdate","tag","tags","updateServerInfo"];const{gitInstanceFactory:i}=r(1949);function gitP(...e){let t;let r=Promise.resolve();try{t=i(...e)}catch(e){r=Promise.reject(e)}function builderReturn(){return n}function chainReturn(){return r}const n=[...s,...o].reduce(((e,r)=>{const n=o.includes(r);const s=n?asyncWrapper(r,t):syncWrapper(r,t,e);const i=n?chainReturn:builderReturn;Object.defineProperty(e,r,{enumerable:false,configurable:false,value:t?s:i});return e}),{});return n;function asyncWrapper(e,t){return function(...n){if(typeof n[n.length]==="function"){throw new TypeError("Promise interface requires that handlers are not supplied inline, "+"trailing function not allowed in call to "+e)}return r.then((function(){return new Promise((function(r,s){const callback=(e,t)=>{if(e){return s(toError(e))}r(t)};n.push(callback);t[e].apply(t,n)}))}))}}function syncWrapper(e,t,r){return(...n)=>{t[e](...n);return r}}}t.gitP=gitP;function toError(e){if(e instanceof Error){return e}if(typeof e==="string"){return new Error(e)}return new n.GitResponseError(e)}},3421:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.Scheduler=void 0;const n=r(847);const s=r(9819);const o=r(7178);const i=o.createLogger("","scheduler");const a=(()=>{let e=0;return()=>{e++;const{promise:t,done:r}=s.createDeferred();return{promise:t,done:r,id:e}}})();class Scheduler{constructor(e=2){this.concurrency=e;this.pending=[];this.running=[];i(`Constructed, concurrency=%s`,e)}schedule(){if(!this.pending.length||this.running.length>=this.concurrency){i(`Schedule attempt ignored, pending=%s running=%s concurrency=%s`,this.pending.length,this.running.length,this.concurrency);return}const e=n.append(this.running,this.pending.shift());i(`Attempting id=%s`,e.id);e.done((()=>{i(`Completing id=`,e.id);n.remove(this.running,e);this.schedule()}))}next(){const{promise:e,id:t}=n.append(this.pending,a());i(`Scheduling id=%s`,t);this.schedule();return e}}t.Scheduler=Scheduler},6676:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.TasksPendingQueue=void 0;const n=r(7178);const s=r(4732);class TasksPendingQueue{constructor(e="GitExecutor"){this.logLabel=e;this._queue=new Map}withProgress(e){return this._queue.get(e)}createProgress(e){const t=TasksPendingQueue.getName(e.commands[0]);const r=n.createLogger(this.logLabel,t);return{task:e,logger:r,name:t}}push(e){const t=this.createProgress(e);t.logger("Adding task to the queue, commands = %o",e.commands);this._queue.set(e,t);return t}fatal(e){for(const[t,{logger:r}]of Array.from(this._queue.entries())){if(t===e.task){r.info(`Failed %o`,e);r(`Fatal exception, any as-yet un-started tasks run through this executor will not be attempted`)}else{r.info(`A fatal exception occurred in a previous task, the queue has been purged: %o`,e.message)}this.complete(t)}if(this._queue.size!==0){throw new Error(`Queue size should be zero after fatal: ${this._queue.size}`)}}complete(e){const t=this.withProgress(e);if(t){t.logger.destroy();this._queue.delete(e)}}attempt(e){const t=this.withProgress(e);if(!t){throw new s.GitError(undefined,"TasksPendingQueue: attempt called for an unknown task")}t.logger("Starting task");return t}static getName(e="empty"){return`task:${e}:${++TasksPendingQueue.counter}`}}t.TasksPendingQueue=TasksPendingQueue;TasksPendingQueue.counter=0},8850:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.taskCallback=void 0;const n=r(4732);const s=r(847);function taskCallback(e,t,r=s.NOOP){const onSuccess=e=>{r(null,e)};const onError=t=>{if((t===null||t===void 0?void 0:t.task)===e){if(t instanceof n.GitResponseError){return r(addDeprecationNoticeToError(t))}r(t)}};t.then(onSuccess,onError)}t.taskCallback=taskCallback;function addDeprecationNoticeToError(e){let log=e=>{console.warn(`simple-git deprecation notice: accessing GitResponseError.${e} should be GitResponseError.git.${e}, this will no longer be available in version 3`);log=s.NOOP};return Object.create(e,Object.getOwnPropertyNames(e.git).reduce(descriptorReducer,{}));function descriptorReducer(t,r){if(r in e){return t}t[r]={enumerable:false,configurable:false,get(){log(r);return e.git[r]}};return t}}},17:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.deleteBranchTask=t.deleteBranchesTask=t.branchLocalTask=t.branchTask=t.containsDeleteBranchCommand=void 0;const n=r(5131);const s=r(6086);const o=r(9264);function containsDeleteBranchCommand(e){const t=["-d","-D","--delete"];return e.some((e=>t.includes(e)))}t.containsDeleteBranchCommand=containsDeleteBranchCommand;function branchTask(e){const t=containsDeleteBranchCommand(e);const r=["branch",...e];if(r.length===1){r.push("-a")}if(!r.includes("-v")){r.splice(1,0,"-v")}return{format:"utf-8",commands:r,parser(e,r){if(t){return s.parseBranchDeletions(e,r).all[0]}return o.parseBranchSummary(e)}}}t.branchTask=branchTask;function branchLocalTask(){const e=o.parseBranchSummary;return{format:"utf-8",commands:["branch","-v"],parser:e}}t.branchLocalTask=branchLocalTask;function deleteBranchesTask(e,t=false){return{format:"utf-8",commands:["branch","-v",t?"-D":"-d",...e],parser(e,t){return s.parseBranchDeletions(e,t)},onError(e,t,r,n){if(!s.hasBranchDeletionError(t,e)){return n(t)}r(t)},concatStdErr:true}}t.deleteBranchesTask=deleteBranchesTask;function deleteBranchTask(e,t=false){const r={format:"utf-8",commands:["branch","-v",t?"-D":"-d",e],parser(t,r){return s.parseBranchDeletions(t,r).branches[e]},onError(e,t,o,i){if(!s.hasBranchDeletionError(t,e)){return i(t)}throw new n.GitResponseError(r.parser(t,""),t)},concatStdErr:true};return r}t.deleteBranchTask=deleteBranchTask},221:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.checkIsBareRepoTask=t.checkIsRepoRootTask=t.checkIsRepoTask=t.CheckRepoActions=void 0;const n=r(847);var s;(function(e){e["BARE"]="bare";e["IN_TREE"]="tree";e["IS_REPO_ROOT"]="root"})(s=t.CheckRepoActions||(t.CheckRepoActions={}));const onError=(e,t,r,s)=>{if(e===n.ExitCodes.UNCLEAN&&isNotRepoMessage(t)){return r("false")}s(t)};const parser=e=>e.trim()==="true";function checkIsRepoTask(e){switch(e){case s.BARE:return checkIsBareRepoTask();case s.IS_REPO_ROOT:return checkIsRepoRootTask()}const t=["rev-parse","--is-inside-work-tree"];return{commands:t,format:"utf-8",onError:onError,parser:parser}}t.checkIsRepoTask=checkIsRepoTask;function checkIsRepoRootTask(){const e=["rev-parse","--git-dir"];return{commands:e,format:"utf-8",onError:onError,parser(e){return/^\.(git)?$/.test(e.trim())}}}t.checkIsRepoRootTask=checkIsRepoRootTask;function checkIsBareRepoTask(){const e=["rev-parse","--is-bare-repository"];return{commands:e,format:"utf-8",onError:onError,parser:parser}}t.checkIsBareRepoTask=checkIsBareRepoTask;function isNotRepoMessage(e){return/(Not a git repository|Kein Git-Repository)/i.test(e)}},4386:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isCleanOptionsArray=t.cleanTask=t.cleanWithOptionsTask=t.CleanOptions=t.CONFIG_ERROR_UNKNOWN_OPTION=t.CONFIG_ERROR_MODE_REQUIRED=t.CONFIG_ERROR_INTERACTIVE_MODE=void 0;const n=r(5689);const s=r(847);const o=r(2815);t.CONFIG_ERROR_INTERACTIVE_MODE="Git clean interactive mode is not supported";t.CONFIG_ERROR_MODE_REQUIRED='Git clean mode parameter ("n" or "f") is required';t.CONFIG_ERROR_UNKNOWN_OPTION="Git clean unknown option found in: ";var i;(function(e){e["DRY_RUN"]="n";e["FORCE"]="f";e["IGNORED_INCLUDED"]="x";e["IGNORED_ONLY"]="X";e["EXCLUDING"]="e";e["QUIET"]="q";e["RECURSIVE"]="d"})(i=t.CleanOptions||(t.CleanOptions={}));const a=new Set(["i",...s.asStringArray(Object.values(i))]);function cleanWithOptionsTask(e,r){const{cleanMode:n,options:s,valid:i}=getCleanOptions(e);if(!n){return o.configurationErrorTask(t.CONFIG_ERROR_MODE_REQUIRED)}if(!i.options){return o.configurationErrorTask(t.CONFIG_ERROR_UNKNOWN_OPTION+JSON.stringify(e))}s.push(...r);if(s.some(isInteractiveMode)){return o.configurationErrorTask(t.CONFIG_ERROR_INTERACTIVE_MODE)}return cleanTask(n,s)}t.cleanWithOptionsTask=cleanWithOptionsTask;function cleanTask(e,t){const r=["clean",`-${e}`,...t];return{commands:r,format:"utf-8",parser(t){return n.cleanSummaryParser(e===i.DRY_RUN,t)}}}t.cleanTask=cleanTask;function isCleanOptionsArray(e){return Array.isArray(e)&&e.every((e=>a.has(e)))}t.isCleanOptionsArray=isCleanOptionsArray;function getCleanOptions(e){let t;let r=[];let n={cleanMode:false,options:true};e.replace(/[^a-z]i/g,"").split("").forEach((e=>{if(isCleanMode(e)){t=e;n.cleanMode=true}else{n.options=n.options&&isKnownOption(r[r.length]=`-${e}`)}}));return{cleanMode:t,options:r,valid:n}}function isCleanMode(e){return e===i.FORCE||e===i.DRY_RUN}function isKnownOption(e){return/^-[a-z]$/i.test(e)&&a.has(e.charAt(1))}function isInteractiveMode(e){if(/^-[^\-]/.test(e)){return e.indexOf("i")>0}return e==="--interactive"}},3173:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.cloneMirrorTask=t.cloneTask=void 0;const n=r(2815);const s=r(847);function cloneTask(e,t,r){const s=["clone",...r];if(typeof e==="string"){s.push(e)}if(typeof t==="string"){s.push(t)}return n.straightThroughStringTask(s)}t.cloneTask=cloneTask;function cloneMirrorTask(e,t,r){s.append(r,"--mirror");return cloneTask(e,t,r)}t.cloneMirrorTask=cloneMirrorTask},5494:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.commitTask=void 0;const n=r(3026);function commitTask(e,t,r){const s=["commit",...e.flatMap((e=>["-m",e])),...t,...r];return{commands:s,format:"utf-8",parser:n.parseCommitResult}}t.commitTask=commitTask},7597:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.listConfigTask=t.addConfigTask=void 0;const n=r(7219);function addConfigTask(e,t,r=false){const n=["config","--local"];if(r){n.push("--add")}n.push(e,t);return{commands:n,format:"utf-8",parser(e){return e}}}t.addConfigTask=addConfigTask;function listConfigTask(){return{commands:["config","--list","--show-origin","--null"],format:"utf-8",parser(e){return n.configListParser(e)}}}t.listConfigTask=listConfigTask},9241:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.diffSummaryTask=void 0;const n=r(2024);function diffSummaryTask(e){return{commands:["diff","--stat=4096",...e],format:"utf-8",parser(e){return n.parseDiffResult(e)}}}t.diffSummaryTask=diffSummaryTask},8823:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.fetchTask=void 0;const n=r(6254);function fetchTask(e,t,r){const s=["fetch",...r];if(e&&t){s.push(e,t)}return{commands:s,format:"utf-8",parser:n.parseFetchResult}}t.fetchTask=fetchTask},8199:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.hashObjectTask=void 0;const n=r(2815);function hashObjectTask(e,t){const r=["hash-object",e];if(t){r.push("-w")}return n.straightThroughStringTask(r,true)}t.hashObjectTask=hashObjectTask},6016:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.initTask=void 0;const n=r(8690);const s="--bare";function hasBareCommand(e){return e.includes(s)}function initTask(e=false,t,r){const o=["init",...r];if(e&&!hasBareCommand(o)){o.splice(1,0,s)}return{commands:o,concatStdErr:false,format:"utf-8",parser(e){return n.parseInit(o.includes("--bare"),t,e)}}}t.initTask=initTask},8627:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.logTask=t.parseLogOptions=void 0;const n=r(9729);const s=r(847);const o=new Set(["--pretty","max-count","maxCount","n","file","format","from","to","splitter","symmetric","multiLine","strictDate"]);function prettyFormat(e,t){const r=[];const n=[];Object.entries(e).forEach((([e,t])=>{r.push(e);n.push(t)}));return[r,n.join(t)]}function userOptions(e){return Object.fromEntries(Object.entries(e).filter((([e])=>!o.has(e))))}function parseLogOptions(e={},t=[]){const r=e.splitter||n.SPLITTER;const o=e.format||{hash:"%H",date:e.strictDate===false?"%ai":"%aI",message:"%s",refs:"%D",body:e.multiLine?"%B":"%b",author_name:"%aN",author_email:"%ae"};const[i,a]=prettyFormat(o,r);const c=[];const u=[`--pretty=format:${n.START_BOUNDARY}${a}${n.COMMIT_BOUNDARY}`,...t];const l=e.n||e["max-count"]||e.maxCount;if(l){u.push(`--max-count=${l}`)}if(e.from&&e.to){const t=e.symmetric!==false?"...":"..";c.push(`${e.from}${t}${e.to}`)}if(e.file){c.push("--follow",e.file)}s.appendTaskOptions(userOptions(e),u);return{fields:i,splitter:r,commands:[...u,...c]}}t.parseLogOptions=parseLogOptions;function logTask(e,t,r){return{commands:["log",...r],format:"utf-8",parser:n.createListLogSummaryParser(e,t)}}t.logTask=logTask},8829:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.mergeTask=void 0;const n=r(4732);const s=r(6412);const o=r(2815);function mergeTask(e){if(!e.length){return o.configurationErrorTask("Git.merge requires at least one option")}return{commands:["merge",...e],format:"utf-8",parser(e,t){const r=s.parseMergeResult(e,t);if(r.failed){throw new n.GitResponseError(r)}return r}}}t.mergeTask=mergeTask},6520:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.moveTask=void 0;const n=r(7444);const s=r(847);function moveTask(e,t){return{commands:["mv","-v",...s.asArray(e),t],format:"utf-8",parser:n.parseMoveResult}}t.moveTask=moveTask},4636:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.pullTask=void 0;const n=r(5658);function pullTask(e,t,r){const s=["pull",...r];if(e&&t){s.splice(1,0,e,t)}return{commands:s,format:"utf-8",parser(e,t){return n.parsePullResult(e,t)}}}t.pullTask=pullTask},1435:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.pushTask=t.pushTagsTask=void 0;const n=r(8530);const s=r(847);function pushTagsTask(e={},t){s.append(t,"--tags");return pushTask(e,t)}t.pushTagsTask=pushTagsTask;function pushTask(e={},t){const r=["push",...t];if(e.branch){r.splice(1,0,e.branch)}if(e.remote){r.splice(1,0,e.remote)}s.remove(r,"-v");s.append(r,"--verbose");s.append(r,"--porcelain");return{commands:r,format:"utf-8",parser:n.parsePushResult}}t.pushTask=pushTask},9866:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.removeRemoteTask=t.remoteTask=t.listRemotesTask=t.getRemotesTask=t.addRemoteTask=void 0;const n=r(9999);const s=r(2815);function addRemoteTask(e,t,r=[]){return s.straightThroughStringTask(["remote","add",...r,e,t])}t.addRemoteTask=addRemoteTask;function getRemotesTask(e){const t=["remote"];if(e){t.push("-v")}return{commands:t,format:"utf-8",parser:e?n.parseGetRemotesVerbose:n.parseGetRemotes}}t.getRemotesTask=getRemotesTask;function listRemotesTask(e=[]){const t=[...e];if(t[0]!=="ls-remote"){t.unshift("ls-remote")}return s.straightThroughStringTask(t)}t.listRemotesTask=listRemotesTask;function remoteTask(e=[]){const t=[...e];if(t[0]!=="remote"){t.unshift("remote")}return s.straightThroughStringTask(t)}t.remoteTask=remoteTask;function removeRemoteTask(e){return s.straightThroughStringTask(["remote","remove",e])}t.removeRemoteTask=removeRemoteTask},2377:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getResetMode=t.resetTask=t.ResetMode=void 0;const n=r(2815);var s;(function(e){e["MIXED"]="mixed";e["SOFT"]="soft";e["HARD"]="hard";e["MERGE"]="merge";e["KEEP"]="keep"})(s=t.ResetMode||(t.ResetMode={}));const o=Array.from(Object.values(s));function resetTask(e,t){const r=["reset"];if(isValidResetMode(e)){r.push(`--${e}`)}r.push(...t);return n.straightThroughStringTask(r)}t.resetTask=resetTask;function getResetMode(e){if(isValidResetMode(e)){return e}switch(typeof e){case"string":case"undefined":return s.SOFT}return}t.getResetMode=getResetMode;function isValidResetMode(e){return o.includes(e)}},810:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.stashListTask=void 0;const n=r(9729);const s=r(8627);function stashListTask(e={},t){const r=s.parseLogOptions(e);const o=n.createListLogSummaryParser(r.splitter,r.fields);return{commands:["stash","list",...r.commands,...t],format:"utf-8",parser:o}}t.stashListTask=stashListTask},9197:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.statusTask=void 0;const n=r(6790);function statusTask(e){return{format:"utf-8",commands:["status","--porcelain","-b","-u",...e],parser(e){return n.parseStatusSummary(e)}}}t.statusTask=statusTask},8772:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.updateSubModuleTask=t.subModuleTask=t.initSubModuleTask=t.addSubModuleTask=void 0;const n=r(2815);function addSubModuleTask(e,t){return subModuleTask(["add",e,t])}t.addSubModuleTask=addSubModuleTask;function initSubModuleTask(e){return subModuleTask(["init",...e])}t.initSubModuleTask=initSubModuleTask;function subModuleTask(e){const t=[...e];if(t[0]!=="submodule"){t.unshift("submodule")}return n.straightThroughStringTask(t)}t.subModuleTask=subModuleTask;function updateSubModuleTask(e){return subModuleTask(["update",...e])}t.updateSubModuleTask=updateSubModuleTask},8540:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.addAnnotatedTagTask=t.addTagTask=t.tagListTask=void 0;const n=r(4539);function tagListTask(e=[]){const t=e.some((e=>/^--sort=/.test(e)));return{format:"utf-8",commands:["tag","-l",...e],parser(e){return n.parseTagList(e,t)}}}t.tagListTask=tagListTask;function addTagTask(e){return{format:"utf-8",commands:["tag",e],parser(){return{name:e}}}}t.addTagTask=addTagTask;function addAnnotatedTagTask(e,t){return{format:"utf-8",commands:["tag","-a","-m",t,e],parser(){return{name:e}}}}t.addAnnotatedTagTask=addAnnotatedTagTask},2815:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isEmptyTask=t.isBufferTask=t.straightThroughStringTask=t.configurationErrorTask=t.adhocExecTask=t.EMPTY_COMMANDS=void 0;const n=r(740);t.EMPTY_COMMANDS=[];function adhocExecTask(e){return{commands:t.EMPTY_COMMANDS,format:"utf-8",parser:e}}t.adhocExecTask=adhocExecTask;function configurationErrorTask(e){return{commands:t.EMPTY_COMMANDS,format:"utf-8",parser(){throw typeof e==="string"?new n.TaskConfigurationError(e):e}}}t.configurationErrorTask=configurationErrorTask;function straightThroughStringTask(e,t=false){return{commands:e,format:"utf-8",parser(e){return t?String(e).trim():e}}}t.straightThroughStringTask=straightThroughStringTask;function isBufferTask(e){return e.format==="buffer"}t.isBufferTask=isBufferTask;function isEmptyTask(e){return!e.commands.length}t.isEmptyTask=isEmptyTask},7366:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.filterHasLength=t.filterFunction=t.filterPlainObject=t.filterStringOrStringArray=t.filterStringArray=t.filterString=t.filterPrimitives=t.filterArray=t.filterType=void 0;const n=r(8237);function filterType(e,t,r){if(t(e)){return e}return arguments.length>2?r:undefined}t.filterType=filterType;const filterArray=e=>Array.isArray(e);t.filterArray=filterArray;function filterPrimitives(e,t){return/number|string|boolean/.test(typeof e)&&(!t||!t.includes(typeof e))}t.filterPrimitives=filterPrimitives;const filterString=e=>typeof e==="string";t.filterString=filterString;const filterStringArray=e=>Array.isArray(e)&&e.every(t.filterString);t.filterStringArray=filterStringArray;const filterStringOrStringArray=e=>t.filterString(e)||Array.isArray(e)&&e.every(t.filterString);t.filterStringOrStringArray=filterStringOrStringArray;function filterPlainObject(e){return!!e&&n.objectToString(e)==="[object Object]"}t.filterPlainObject=filterPlainObject;function filterFunction(e){return typeof e==="function"}t.filterFunction=filterFunction;const filterHasLength=e=>{if(e==null||"number|boolean|function".includes(typeof e)){return false}return Array.isArray(e)||typeof e==="string"||typeof e.length==="number"};t.filterHasLength=filterHasLength},2185:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ExitCodes=void 0;var r;(function(e){e[e["SUCCESS"]=0]="SUCCESS";e[e["ERROR"]=1]="ERROR";e[e["UNCLEAN"]=128]="UNCLEAN"})(r=t.ExitCodes||(t.ExitCodes={}))},6578:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.GitOutputStreams=void 0;class GitOutputStreams{constructor(e,t){this.stdOut=e;this.stdErr=t}asStrings(){return new GitOutputStreams(this.stdOut.toString("utf8"),this.stdErr.toString("utf8"))}}t.GitOutputStreams=GitOutputStreams},847:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;Object.defineProperty(e,n,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(7366),t);s(r(2185),t);s(r(6578),t);s(r(9536),t);s(r(5218),t);s(r(3546),t);s(r(1351),t);s(r(8237),t)},9536:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.RemoteLineParser=t.LineParser=void 0;class LineParser{constructor(e,t){this.matches=[];this.parse=(e,t)=>{this.resetMatches();if(!this._regExp.every(((t,r)=>this.addMatch(t,r,e(r))))){return false}return this.useMatches(t,this.prepareMatches())!==false};this._regExp=Array.isArray(e)?e:[e];if(t){this.useMatches=t}}useMatches(e,t){throw new Error(`LineParser:useMatches not implemented`)}resetMatches(){this.matches.length=0}prepareMatches(){return this.matches}addMatch(e,t,r){const n=r&&e.exec(r);if(n){this.pushMatch(t,n)}return!!n}pushMatch(e,t){this.matches.push(...t.slice(1))}}t.LineParser=LineParser;class RemoteLineParser extends LineParser{addMatch(e,t,r){return/^remote:\s/.test(String(r))&&super.addMatch(e,t,r)}pushMatch(e,t){if(e>0||t.length>1){super.pushMatch(e,t)}}}t.RemoteLineParser=RemoteLineParser},5218:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.createInstanceConfig=void 0;const r={binary:"git",maxConcurrentProcesses:5};function createInstanceConfig(...e){const t=process.cwd();const n=Object.assign(Object.assign({baseDir:t},r),...e.filter((e=>typeof e==="object"&&e)));n.baseDir=n.baseDir||t;return n}t.createInstanceConfig=createInstanceConfig},3546:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.trailingFunctionArgument=t.trailingOptionsArgument=t.getTrailingOptions=t.appendTaskOptions=void 0;const n=r(7366);const s=r(8237);function appendTaskOptions(e,t=[]){if(!n.filterPlainObject(e)){return t}return Object.keys(e).reduce(((t,r)=>{const s=e[r];if(n.filterPrimitives(s,["boolean"])){t.push(r+"="+s)}else{t.push(r)}return t}),t)}t.appendTaskOptions=appendTaskOptions;function getTrailingOptions(e,t=0,r=false){const n=[];for(let r=0,s=t<0?e.length:t;r{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.parseStringResponse=t.callTaskParser=void 0;const n=r(8237);function callTaskParser(e,t){return e(t.stdOut,t.stdErr)}t.callTaskParser=callTaskParser;function parseStringResponse(e,t,...r){r.forEach((r=>{for(let s=n.toLinesWithContent(r),o=0,i=s.length;o{if(o+e>=i){return}return s[o+e]};t.some((({parse:t})=>t(line,e)))}}));return e}t.parseStringResponse=parseStringResponse},8237:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.asNumber=t.asStringArray=t.asArray=t.objectToString=t.remove=t.append=t.folderExists=t.forEachLineWithContent=t.toLinesWithContent=t.last=t.first=t.splitOn=t.isUserFunction=t.asFunction=t.NOOP=void 0;const n=r(4751);const NOOP=()=>{};t.NOOP=NOOP;function asFunction(e){return typeof e==="function"?e:t.NOOP}t.asFunction=asFunction;function isUserFunction(e){return typeof e==="function"&&e!==t.NOOP}t.isUserFunction=isUserFunction;function splitOn(e,t){const r=e.indexOf(t);if(r<=0){return[e,""]}return[e.substr(0,r),e.substr(r+1)]}t.splitOn=splitOn;function first(e,t=0){return isArrayLike(e)&&e.length>t?e[t]:undefined}t.first=first;function last(e,t=0){if(isArrayLike(e)&&e.length>t){return e[e.length-1-t]}}t.last=last;function isArrayLike(e){return!!(e&&typeof e.length==="number")}function toLinesWithContent(e,t=true,r="\n"){return e.split(r).reduce(((e,r)=>{const n=t?r.trim():r;if(n){e.push(n)}return e}),[])}t.toLinesWithContent=toLinesWithContent;function forEachLineWithContent(e,t){return toLinesWithContent(e,true).map((e=>t(e)))}t.forEachLineWithContent=forEachLineWithContent;function folderExists(e){return n.exists(e,n.FOLDER)}t.folderExists=folderExists;function append(e,t){if(Array.isArray(e)){if(!e.includes(t)){e.push(t)}}else{e.add(t)}return t}t.append=append;function remove(e,t){if(Array.isArray(e)){const r=e.indexOf(t);if(r>=0){e.splice(r,1)}}else{e.delete(t)}return t}t.remove=remove;t.objectToString=Object.prototype.toString.call.bind(Object.prototype.toString);function asArray(e){return Array.isArray(e)?e:[e]}t.asArray=asArray;function asStringArray(e){return asArray(e).map(String)}t.asStringArray=asStringArray;function asNumber(e,t=0){if(e==null){return t}const r=parseInt(e,10);return isNaN(r)?t:r}t.asNumber=asNumber},9453:(e,t)=>{"use strict";t.__esModule=true;function parseArgsStringToArgv(e,t,r){var n=/([^\s'"]([^\s'"]*(['"])([^\3]*?)\3)+[^\s'"]*)|[^\s'"]+|(['"])([^\5]*?)\5/gi;var s=e;var o=[];if(t){o.push(t)}if(r){o.push(r)}var i;do{i=n.exec(s);if(i!==null){o.push(firstString(i[1],i[6],i[0]))}}while(i!==null);return o}t["default"]=parseArgsStringToArgv;t.parseArgsStringToArgv=parseArgsStringToArgv;function firstString(){var e=[];for(var t=0;t{"use strict";e.exports=e=>{if(typeof e!=="string"){throw new TypeError("Expected a string, got "+typeof e)}if(e.charCodeAt(0)===65279){return e.slice(1)}return e}},5515:e=>{"use strict";e.exports=function(e){var t=typeof e==="string"?"\n":"\n".charCodeAt();var r=typeof e==="string"?"\r":"\r".charCodeAt();if(e[e.length-1]===t){e=e.slice(0,e.length-1)}if(e[e.length-1]===r){e=e.slice(0,e.length-1)}return e}},9318:(e,t,r)=>{"use strict";const n=r(2037);const s=r(6224);const o=r(1621);const{env:i}=process;let a;if(o("no-color")||o("no-colors")||o("color=false")||o("color=never")){a=0}else if(o("color")||o("colors")||o("color=true")||o("color=always")){a=1}if("FORCE_COLOR"in i){if(i.FORCE_COLOR==="true"){a=1}else if(i.FORCE_COLOR==="false"){a=0}else{a=i.FORCE_COLOR.length===0?1:Math.min(parseInt(i.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(o("color=16m")||o("color=full")||o("color=truecolor")){return 3}if(o("color=256")){return 2}if(e&&!t&&a===undefined){return 0}const r=a||0;if(i.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 i){if(["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some((e=>e in i))||i.CI_NAME==="codeship"){return 1}return r}if("TEAMCITY_VERSION"in i){return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(i.TEAMCITY_VERSION)?1:0}if(i.COLORTERM==="truecolor"){return 3}if("TERM_PROGRAM"in i){const e=parseInt((i.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(i.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}if(/-256(color)?$/i.test(i.TERM)){return 2}if(/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(i.TERM)){return 1}if("COLORTERM"in i){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,s.isatty(1))),stderr:translateLevel(supportsColor(true,s.isatty(2)))}},4294:(e,t,r)=>{e.exports=r(4219)},4219:(e,t,r)=>{"use strict";var n=r(1808);var s=r(4404);var o=r(3685);var i=r(5687);var a=r(2361);var c=r(9491);var u=r(3837);t.httpOverHttp=httpOverHttp;t.httpsOverHttp=httpsOverHttp;t.httpOverHttps=httpOverHttps;t.httpsOverHttps=httpsOverHttps;function httpOverHttp(e){var t=new TunnelingAgent(e);t.request=o.request;return t}function httpsOverHttp(e){var t=new TunnelingAgent(e);t.request=o.request;t.createSocket=createSecureSocket;t.defaultPort=443;return t}function httpOverHttps(e){var t=new TunnelingAgent(e);t.request=i.request;return t}function httpsOverHttps(e){var t=new TunnelingAgent(e);t.request=i.request;t.createSocket=createSecureSocket;t.defaultPort=443;return t}function TunnelingAgent(e){var t=this;t.options=e||{};t.proxyOptions=t.options.proxy||{};t.maxSockets=t.options.maxSockets||o.Agent.defaultMaxSockets;t.requests=[];t.sockets=[];t.on("free",(function onFree(e,r,n,s){var o=toOptions(r,n,s);for(var i=0,a=t.requests.length;i=this.maxSockets){s.requests.push(o);return}s.createSocket(o,(function(t){t.on("free",onFree);t.on("close",onCloseOrRemove);t.on("agentRemove",onCloseOrRemove);e.onSocket(t);function onFree(){s.emit("free",t,o)}function onCloseOrRemove(e){s.removeSocket(t);t.removeListener("free",onFree);t.removeListener("close",onCloseOrRemove);t.removeListener("agentRemove",onCloseOrRemove)}}))};TunnelingAgent.prototype.createSocket=function createSocket(e,t){var r=this;var n={};r.sockets.push(n);var s=mergeOptions({},r.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:false,headers:{host:e.host+":"+e.port}});if(e.localAddress){s.localAddress=e.localAddress}if(s.proxyAuth){s.headers=s.headers||{};s.headers["Proxy-Authorization"]="Basic "+new Buffer(s.proxyAuth).toString("base64")}l("making CONNECT request");var o=r.request(s);o.useChunkedEncodingByDefault=false;o.once("response",onResponse);o.once("upgrade",onUpgrade);o.once("connect",onConnect);o.once("error",onError);o.end();function onResponse(e){e.upgrade=true}function onUpgrade(e,t,r){process.nextTick((function(){onConnect(e,t,r)}))}function onConnect(s,i,a){o.removeAllListeners();i.removeAllListeners();if(s.statusCode!==200){l("tunneling socket could not be established, statusCode=%d",s.statusCode);i.destroy();var c=new Error("tunneling socket could not be established, "+"statusCode="+s.statusCode);c.code="ECONNRESET";e.request.emit("error",c);r.removeSocket(n);return}if(a.length>0){l("got illegal response body from proxy");i.destroy();var c=new Error("got illegal response body from proxy");c.code="ECONNRESET";e.request.emit("error",c);r.removeSocket(n);return}l("tunneling connection has established");r.sockets[r.sockets.indexOf(n)]=i;return t(i)}function onError(t){o.removeAllListeners();l("tunneling socket could not be established, cause=%s\n",t.message,t.stack);var s=new Error("tunneling socket could not be established, "+"cause="+t.message);s.code="ECONNRESET";e.request.emit("error",s);r.removeSocket(n)}};TunnelingAgent.prototype.removeSocket=function removeSocket(e){var t=this.sockets.indexOf(e);if(t===-1){return}this.sockets.splice(t,1);var r=this.requests.shift();if(r){this.createSocket(r,(function(e){r.request.onSocket(e)}))}};function createSecureSocket(e,t){var r=this;TunnelingAgent.prototype.createSocket.call(r,e,(function(n){var o=e.request.getHeader("host");var i=mergeOptions({},r.options,{socket:n,servername:o?o.replace(/:.*$/,""):e.host});var a=s.connect(0,i);r.sockets[r.sockets.indexOf(n)]=a;t(a)}))}function toOptions(e,t,r){if(typeof e==="string"){return{host:e,port:t,localAddress:r}}return e}function mergeOptions(e){for(var t=1,r=arguments.length;t{"use strict";Object.defineProperty(t,"__esModule",{value:true});function _interopDefault(e){return e&&typeof e==="object"&&"default"in e?e["default"]:e}var n=_interopDefault(r(4824));function getUserAgent(){try{return`Node.js/${process.version.substr(1)} (${n()}; ${process.arch})`}catch(e){if(/wmic os get Caption/.test(e.message)){return"Windows "}return""}}t.getUserAgent=getUserAgent},3515:(e,t,r)=>{"use strict";const n=r(2037);const s=r(5447);const o=new Map([["10.0","10"],["6.3","8.1"],["6.2","8"],["6.1","7"],["6.0","Vista"],["5.2","Server 2003"],["5.1","XP"],["5.0","2000"],["4.9","ME"],["4.1","98"],["4.0","95"]]);const windowsRelease=e=>{const t=/\d+\.\d/.exec(e||n.release());if(e&&!t){throw new Error("`release` argument doesn't match `n.n`")}const r=(t||[])[0];if((!e||e===n.release())&&["6.1","6.2","6.3","10.0"].includes(r)){let e;try{e=s.sync("wmic",["os","get","Caption"]).stdout||""}catch(t){e=s.sync("powershell",["(Get-CimInstance -ClassName Win32_OperatingSystem).caption"]).stdout||""}const t=(e.match(/2008|2012|2016|2019/)||[])[0];if(t){return`Server ${t}`}}return o.get(r)};e.exports=windowsRelease},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;ra.setOutput(e,t)));function getInput(e,t=false){if(t)return a.getBooleanInput(e);return a.getInput(e)}t.getInput=getInput;function setOutput(e,r){a.debug(`Setting output: ${e}=${r}`);t.outputs[e]=r;a.setOutput(e,r)}t.setOutput=setOutput;function logOutputs(){a.startGroup("Outputs");for(const e in t.outputs){a.info(`${e}: ${t.outputs[e]}`)}a.endGroup()}t.logOutputs=logOutputs;function checkInputs(){return i(this,void 0,void 0,(function*(){function setInput(e,t){if(t)return process.env[`INPUT_${e.toUpperCase()}`]=t;else return delete process.env[`INPUT_${e.toUpperCase()}`]}function setDefault(e,t){if(!getInput(e))setInput(e,t);return getInput(e)}if(!getInput("add")&&!getInput("remove"))throw new Error("Both 'add' and 'remove' are empty, the action has nothing to do.");if(getInput("add")){const e=(0,c.parseInputArray)(getInput("add"));if(e.length==1)a.info("Add input parsed as single string, running 1 git add command.");else if(e.length>1)a.info(`Add input parsed as string array, running ${e.length} git add commands.`);else a.setFailed("Add input: array length < 1")}if(getInput("remove")){const e=(0,c.parseInputArray)(getInput("remove")||"");if(e.length==1)a.info("Remove input parsed as single string, running 1 git rm command.");else if(e.length>1)a.info(`Remove input parsed as string array, running ${e.length} git rm commands.`);else a.setFailed("Remove input: array length < 1")}const e=["github_actor","user_info","github_actions"];if(!e.includes(getInput("default_author")))throw new Error(`'${getInput("default_author")}' is not a valid value for default_author. Valid values: ${e.join(", ")}`);let t,r;switch(getInput("default_author")){case"github_actor":{t=process.env.GITHUB_ACTOR;r=`${process.env.GITHUB_ACTOR}@users.noreply.github.com`;break}case"user_info":{if(!getInput("author_name")||!getInput("author_email")){const e=yield(0,c.getUserInfo)(process.env.GITHUB_ACTOR);if(!(e===null||e===void 0?void 0:e.name))a.warning("Couldn't fetch author name, filling with github_actor.");if(!(e===null||e===void 0?void 0:e.email))a.warning("Couldn't fetch author email, filling with github_actor.");(e===null||e===void 0?void 0:e.name)&&(t=e===null||e===void 0?void 0:e.name);(e===null||e===void 0?void 0:e.email)&&(r=e.email);if(t&&r)break}!t&&(t=process.env.GITHUB_ACTOR);!r&&(r=`${process.env.GITHUB_ACTOR}@users.noreply.github.com`);break}case"github_actions":{t="github-actions";r="41898282+github-actions[bot]@users.noreply.github.com";break}default:throw new Error("This should not happen, please contact the author of this action. (checkInputs.author)")}setDefault("author_name",t);setDefault("author_email",r);a.info(`> Using '${getInput("author_name")} <${getInput("author_email")}>' as author.`);if(getInput("committer_name")||getInput("committer_email"))a.info(`> Using custom committer info: ${getInput("committer_name")||getInput("author_name")+" [from author info]"} <${getInput("committer_email")||getInput("author_email")+" [from author info]"}>`);setDefault("committer_name",getInput("author_name"));setDefault("committer_email",getInput("author_email"));a.debug(`Committer: ${getInput("committer_name")} <${getInput("committer_email")}>`);setDefault("message",`Commit from GitHub Actions (${process.env.GITHUB_WORKFLOW})`);a.info(`> Using "${getInput("message")}" as commit message.`);const n=["ignore","exitImmediately","exitAtEnd"];if(!n.includes(getInput("pathspec_error_handling")))throw new Error(`"${getInput("pathspec_error_handling")}" is not a valid value for the 'pathspec_error_handling' input. Valid values are: ${n.join(", ")}`);if(getInput("push")){let e;try{e=getInput("push",true)}catch(t){e=getInput("push")}a.debug(`Current push option: '${e}' (parsed as ${typeof e})`)}if(!getInput("github_token"))a.warning("No github_token has been detected, the action may fail if it needs to use the API")}))}t.checkInputs=checkInputs},399:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;Object.defineProperty(e,n,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.prototype.hasOwnProperty.call(e,r))n(t,e,r);s(t,e);return t};var i=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,s){function fulfilled(e){try{step(n.next(e))}catch(e){s(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){s(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())}))};var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});const c=o(r(2186));const u=a(r(1017));const l=a(r(1477));const p=r(8672);const d=r(2629);const h=u.default.join(process.cwd(),(0,p.getInput)("cwd")||"");const m=(0,l.default)({baseDir:h});const g=[];c.info(`Running in ${h}`);(()=>i(void 0,void 0,void 0,(function*(){yield(0,p.checkInputs)();c.startGroup("Internal logs");c.info("> Staging files...");const e=(0,p.getInput)("pathspec_error_handling");if((0,p.getInput)("add")){c.info("> Adding files...");yield add(e=="ignore"?"pathspec":"none")}else c.info("> No files to add.");if((0,p.getInput)("remove")){c.info("> Removing files...");yield remove(e=="ignore"?"pathspec":"none")}else c.info("> No files to remove.");c.info("> Checking for uncommitted changes in the git working tree...");const t=(yield m.diffSummary(["--cached"])).files.length;if(t>0){c.info(`> Found ${t} changed files.`);yield m.addConfig("user.email",(0,p.getInput)("author_email"),undefined,d.log).addConfig("user.name",(0,p.getInput)("author_name"),undefined,d.log).addConfig("author.email",(0,p.getInput)("author_email"),undefined,d.log).addConfig("author.name",(0,p.getInput)("author_name"),undefined,d.log).addConfig("committer.email",(0,p.getInput)("committer_email"),undefined,d.log).addConfig("committer.name",(0,p.getInput)("committer_name"),undefined,d.log);c.debug("> Current git config\n"+JSON.stringify((yield m.listConfig()).all,null,2));yield m.fetch(["--tags","--force"],d.log);const e=(0,p.getInput)("new_branch");if(e){yield m.checkout(e).then((()=>{(0,d.log)(undefined,`'${e}' branch already existed.`)})).catch((()=>{(0,d.log)(undefined,`Creating '${e}' branch.`);return m.checkoutLocalBranch(e,d.log)}))}const r=(0,p.getInput)("pull");if(r){c.info("> Pulling from remote...");c.debug(`Current git pull arguments: ${r}`);yield m.fetch(undefined,d.log).pull(undefined,undefined,(0,d.matchGitArgs)(r),d.log)}else c.info("> Not pulling from repo.");c.info("> Creating commit...");const n=yield m.commit((0,p.getInput)("message"),(0,d.matchGitArgs)((0,p.getInput)("commit")||"")).catch((e=>{(0,d.log)(e)}));if(n){(0,d.log)(undefined,n);(0,p.setOutput)("committed","true");(0,p.setOutput)("commit_sha",n.commit);yield m.revparse(n.commit).then((e=>(0,p.setOutput)("commit_long_sha",e))).catch((e=>c.warning(`Couldn't parse long SHA:\n${e}`)))}if((0,p.getInput)("tag")){c.info("> Tagging commit...");yield m.tag((0,d.matchGitArgs)((0,p.getInput)("tag")||""),((e,t)=>{if(t)(0,p.setOutput)("tagged","true");return(0,d.log)(e,t)})).then((e=>{(0,p.setOutput)("tagged","true");return(0,d.log)(null,e)})).catch((e=>c.setFailed(e)))}else c.info("> No tag info provided.");let s;try{s=(0,p.getInput)("push",true)}catch(e){s=(0,p.getInput)("push")}if(s){c.info("> Pushing commit to repo...");if(s===true){c.debug(`Running: git push origin ${(0,p.getInput)("new_branch")||""} --set-upstream`);yield m.push("origin",(0,p.getInput)("new_branch"),{"--set-upstream":null},((e,t)=>{if(t)(0,p.setOutput)("pushed","true");return(0,d.log)(e,t)}))}else{c.debug(`Running: git push ${s}`);yield m.push(undefined,undefined,(0,d.matchGitArgs)(s),((e,t)=>{if(t)(0,p.setOutput)("pushed","true");return(0,d.log)(e,t)}))}if((0,p.getInput)("tag")){c.info("> Pushing tags to repo...");yield m.pushTags("origin",undefined,((e,t)=>(0,d.log)(undefined,e||t))).catch((()=>{c.info("> Tag push failed: deleting remote tag and re-pushing...");return m.push(undefined,undefined,{"--delete":null,origin:null,[(0,d.matchGitArgs)((0,p.getInput)("tag")||"").filter((e=>!e.startsWith("-")))[0]]:null},d.log).pushTags("origin",undefined,d.log)}))}else c.info("> No tags to push.")}else c.info("> Not pushing anything.");c.endGroup();c.info("> Task completed.")}else{c.endGroup();c.info("> Working tree clean. Nothing to commit.")}})))().then((()=>{if(g.length==1)throw g[0];else if(g.length>1){g.forEach((e=>c.error(e)));throw"There have been multiple runtime errors."}})).then(p.logOutputs).catch((e=>{c.endGroup();(0,p.logOutputs)();c.setFailed(e)}));function add(e="none"){return i(this,void 0,void 0,(function*(){const t=(0,p.getInput)("add");if(!t)return[];const r=(0,d.parseInputArray)(t);const n=[];for(const t of r){n.push(yield m.add((0,d.matchGitArgs)(t),((t,r)=>(0,d.log)(e=="all"?null:t,r))).catch((r=>{if(e=="all")return;if(r.message.includes("fatal: pathspec")&&r.message.includes("did not match any files")){if(e=="pathspec")return;const r=(0,p.getInput)("pathspec_error_handling"),n=new Error(`Add command did not match any file: git add ${t}`);if(r=="exitImmediately")throw n;if(r=="exitAtEnd")g.push(n)}else throw r})))}return n}))}function remove(e="none"){return i(this,void 0,void 0,(function*(){const t=(0,p.getInput)("remove");if(!t)return[];const r=(0,d.parseInputArray)(t);const n=[];for(const t of r){n.push(yield m.rm((0,d.matchGitArgs)(t),((t,r)=>(0,d.log)(e=="all"?null:t,r))).catch((r=>{if(e=="all")return;if(r.message.includes("fatal: pathspec")&&r.message.includes("did not match any files")){if(e=="pathspec")return;const r=(0,p.getInput)("pathspec_error_handling"),n=new Error(`Remove command did not match any file:\n git rm ${t}`);if(r=="exitImmediately")throw n;if(r=="exitAtEnd")g.push(n)}else throw r})))}return n}))}},2629:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;Object.defineProperty(e,n,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.prototype.hasOwnProperty.call(e,r))n(t,e,r);s(t,e);return t};var i=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,s){function fulfilled(e){try{step(n.next(e))}catch(e){s(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){s(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())}))};var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.readJSON=t.parseInputArray=t.matchGitArgs=t.log=t.getUserInfo=t.tools=void 0;const c=r(9453);const u=o(r(2186));const l=a(r(1917));const p=r(7045);const d=a(r(7147));t.tools=new p.Toolkit({secrets:["GITHUB_EVENT_PATH","GITHUB_EVENT_NAME","GITHUB_REF","GITHUB_ACTOR"]});function getUserInfo(e){var r,n;return i(this,void 0,void 0,(function*(){if(!e)return undefined;const s=yield t.tools.github.users.getByUsername({username:e});u.debug(`Fetched github actor from the API: ${JSON.stringify(s===null||s===void 0?void 0:s.data,null,2)}`);return{name:(r=s===null||s===void 0?void 0:s.data)===null||r===void 0?void 0:r.name,email:(n=s===null||s===void 0?void 0:s.data)===null||n===void 0?void 0:n.email}}))}t.getUserInfo=getUserInfo;function log(e,t){if(t)console.log(t);if(e)u.error(e)}t.log=log;function matchGitArgs(e){const t=(0,c.parseArgsStringToArgv)(e);u.debug(`Git args parsed:\n - Original: ${e}\n - Parsed: ${JSON.stringify(t)}`);return t}t.matchGitArgs=matchGitArgs;function parseInputArray(e){try{const t=JSON.parse(e);if(t&&Array.isArray(t)&&t.every((e=>typeof e=="string"))){u.debug(`Input parsed as JSON array of length ${t.length}`);return t}}catch(e){}try{const t=l.default.load(e);if(t&&Array.isArray(t)&&t.every((e=>typeof e=="string"))){u.debug(`Input parsed as YAML array of length ${t.length}`);return t}}catch(e){}u.debug("Input parsed as single string");return[e]}t.parseInputArray=parseInputArray;function readJSON(e){let t;try{t=d.default.readFileSync(e,{encoding:"utf8"})}catch(t){throw`Couldn't read file. File path: ${e}`}try{return JSON.parse(t)}catch(t){throw`Couldn't parse file to JSON. File path: ${e}`}}t.readJSON=readJSON},2877:module=>{module.exports=eval("require")("encoding")},9491:e=>{"use strict";e.exports=require("assert")},2081:e=>{"use strict";e.exports=require("child_process")},2057:e=>{"use strict";e.exports=require("constants")},2361:e=>{"use strict";e.exports=require("events")},7147:e=>{"use strict";e.exports=require("fs")},3685:e=>{"use strict";e.exports=require("http")},5687:e=>{"use strict";e.exports=require("https")},1808:e=>{"use strict";e.exports=require("net")},2037:e=>{"use strict";e.exports=require("os")},1017:e=>{"use strict";e.exports=require("path")},4521:e=>{"use strict";e.exports=require("readline")},2781:e=>{"use strict";e.exports=require("stream")},4404:e=>{"use strict";e.exports=require("tls")},6224:e=>{"use strict";e.exports=require("tty")},7310:e=>{"use strict";e.exports=require("url")},3837:e=>{"use strict";e.exports=require("util")},9796:e=>{"use strict";e.exports=require("zlib")},6998:e=>{"use strict";e.exports=JSON.parse('{"name":"signale","version":"1.4.0","description":"👋 Hackable console logger","license":"MIT","repository":"klaussinani/signale","author":{"name":"Klaus Sinani","email":"klaussinani@gmail.com","url":"https://klaussinani.github.io"},"maintainers":[{"name":"Mario Sinani","email":"mariosinani@protonmail.ch","url":"https://mariocfhq.github.io"}],"engines":{"node":">=6"},"files":["index.js","signale.js","types.js"],"keywords":["hackable","colorful","console","logger"],"scripts":{"test":"xo"},"dependencies":{"chalk":"^2.3.2","figures":"^2.0.0","pkg-conf":"^2.1.0"},"devDependencies":{"xo":"*"},"options":{"default":{"displayScope":true,"displayBadge":true,"displayDate":false,"displayFilename":false,"displayLabel":true,"displayTimestamp":false,"underlineLabel":true,"underlineMessage":false,"underlinePrefix":false,"underlineSuffix":false,"uppercaseLabel":false}},"xo":{"space":2}}')}};var __webpack_module_cache__={};function __nccwpck_require__(e){var t=__webpack_module_cache__[e];if(t!==undefined){return t.exports}var r=__webpack_module_cache__[e]={id:e,loaded:false,exports:{}};var n=true;try{__webpack_modules__[e].call(r.exports,r,r.exports,__nccwpck_require__);n=false}finally{if(n)delete __webpack_module_cache__[e]}r.loaded=true;return r.exports}(()=>{__nccwpck_require__.nmd=e=>{e.paths=[];if(!e.children)e.children=[];return e}})();if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=__dirname+"/";var __webpack_exports__=__nccwpck_require__(399);module.exports=__webpack_exports__})(); \ No newline at end of file diff --git a/src/io.ts b/src/io.ts index d47085ac1..176ad3784 100644 --- a/src/io.ts +++ b/src/io.ts @@ -24,6 +24,7 @@ export type input = keyof InputTypes interface OutputTypes { committed: 'true' | 'false' + commit_long_sha: string | undefined commit_sha: string | undefined pushed: 'true' | 'false' tagged: 'true' | 'false' @@ -32,6 +33,7 @@ export type output = keyof OutputTypes export const outputs: OutputTypes = { committed: 'false', + commit_long_sha: undefined, commit_sha: undefined, pushed: 'false', tagged: 'false' diff --git a/src/main.ts b/src/main.ts index 0ccf223b8..adca7115a 100644 --- a/src/main.ts +++ b/src/main.ts @@ -1,6 +1,6 @@ import * as core from '@actions/core' import path from 'path' -import simpleGit, { CommitSummary, Response } from 'simple-git' +import simpleGit, { Response } from 'simple-git' import { checkInputs, getInput, logOutputs, setOutput } from './io' import { log, matchGitArgs, parseInputArray } from './util' @@ -70,17 +70,20 @@ core.info(`Running in ${baseDir}`) } else core.info('> Not pulling from repo.') core.info('> Creating commit...') - await git.commit( - getInput('message'), - matchGitArgs(getInput('commit') || ''), - (err, data?: CommitSummary) => { - if (data) { - setOutput('committed', 'true') - setOutput('commit_sha', data.commit) - } - return log(err, data) - } - ) + const commitData = await git + .commit(getInput('message'), matchGitArgs(getInput('commit') || '')) + .catch((err) => { + log(err) + }) + if (commitData) { + log(undefined, commitData) + setOutput('committed', 'true') + setOutput('commit_sha', commitData.commit) + await git + .revparse(commitData.commit) + .then((long_sha) => setOutput('commit_long_sha', long_sha)) + .catch((err) => core.warning(`Couldn't parse long SHA:\n${err}`)) + } if (getInput('tag')) { core.info('> Tagging commit...')