diff --git a/README.md b/README.md index 365395ed..792cb921 100644 --- a/README.md +++ b/README.md @@ -39,9 +39,9 @@ Add a step like this to your workflow: # Default: 'Commit from GitHub Actions (name of the workflow)' message: 'Your commit message' - # The flag used on the pull strategy + # The flag used on the pull strategy. Use NO-PULL to avoid the action pulling at all. # Default: '--no-rebase' - pull_strategy: '--no-rebase or --no-ff or --rebase' + pull_strategy: 'NO-PULL or --no-rebase or --no-ff or --rebase' # Whether to push the commit and, if any, its tags to the repo. It can also be used to set the git push arguments (see the paragraph below for more info) # Default: true diff --git a/action.yml b/action.yml index 5b1ae57b..965fe0ef 100644 --- a/action.yml +++ b/action.yml @@ -25,7 +25,7 @@ inputs: description: The message for the commit required: false pull_strategy: - description: The flag used on the pull strategy + description: The flag used on the pull strategy. Use NO-PULL to avoid the action pulling at all. required: false default: '--no-rebase' push: diff --git a/lib/index.js b/lib/index.js index 9fe77271..2953f2b3 100644 --- a/lib/index.js +++ b/lib/index.js @@ -1 +1 @@ -module.exports=(()=>{var e={7351:function(e,r,n){"use strict";var t=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n in e)if(Object.hasOwnProperty.call(e,n))r[n]=e[n];r["default"]=e;return r};Object.defineProperty(r,"__esModule",{value:true});const o=t(n(2087));const s=n(5278);function issueCommand(e,r,n){const t=new Command(e,r,n);process.stdout.write(t.toString()+o.EOL)}r.issueCommand=issueCommand;function issue(e,r=""){issueCommand(e,{},r)}r.issue=issue;const i="::";class Command{constructor(e,r,n){if(!e){e="missing.command"}this.command=e;this.properties=r;this.message=n}toString(){let e=i+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let r=true;for(const n in this.properties){if(this.properties.hasOwnProperty(n)){const t=this.properties[n];if(t){if(r){r=false}else{e+=","}e+=`${n}=${escapeProperty(t)}`}}}}e+=`${i}${escapeData(this.message)}`;return e}}function escapeData(e){return s.toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}function escapeProperty(e){return s.toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}},2186:function(e,r,n){"use strict";var t=this&&this.__awaiter||function(e,r,n,t){function adopt(e){return e instanceof n?e:new n(function(r){r(e)})}return new(n||(n=Promise))(function(n,o){function fulfilled(e){try{step(t.next(e))}catch(e){o(e)}}function rejected(e){try{step(t["throw"](e))}catch(e){o(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((t=t.apply(e,r||[])).next())})};var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n in e)if(Object.hasOwnProperty.call(e,n))r[n]=e[n];r["default"]=e;return r};Object.defineProperty(r,"__esModule",{value:true});const s=n(7351);const i=n(717);const u=n(5278);const c=o(n(2087));const a=o(n(5622));var f;(function(e){e[e["Success"]=0]="Success";e[e["Failure"]=1]="Failure"})(f=r.ExitCode||(r.ExitCode={}));function exportVariable(e,r){const n=u.toCommandValue(r);process.env[e]=n;const t=process.env["GITHUB_ENV"]||"";if(t){const r="_GitHubActionsFileCommandDelimeter_";const t=`${e}<<${r}${c.EOL}${n}${c.EOL}${r}`;i.issueCommand("ENV",t)}else{s.issueCommand("set-env",{name:e},n)}}r.exportVariable=exportVariable;function setSecret(e){s.issueCommand("add-mask",{},e)}r.setSecret=setSecret;function addPath(e){const r=process.env["GITHUB_PATH"]||"";if(r){i.issueCommand("PATH",e)}else{s.issueCommand("add-path",{},e)}process.env["PATH"]=`${e}${a.delimiter}${process.env["PATH"]}`}r.addPath=addPath;function getInput(e,r){const n=process.env[`INPUT_${e.replace(/ /g,"_").toUpperCase()}`]||"";if(r&&r.required&&!n){throw new Error(`Input required and not supplied: ${e}`)}return n.trim()}r.getInput=getInput;function setOutput(e,r){s.issueCommand("set-output",{name:e},r)}r.setOutput=setOutput;function setCommandEcho(e){s.issue("echo",e?"on":"off")}r.setCommandEcho=setCommandEcho;function setFailed(e){process.exitCode=f.Failure;error(e)}r.setFailed=setFailed;function isDebug(){return process.env["RUNNER_DEBUG"]==="1"}r.isDebug=isDebug;function debug(e){s.issueCommand("debug",{},e)}r.debug=debug;function error(e){s.issue("error",e instanceof Error?e.toString():e)}r.error=error;function warning(e){s.issue("warning",e instanceof Error?e.toString():e)}r.warning=warning;function info(e){process.stdout.write(e+c.EOL)}r.info=info;function startGroup(e){s.issue("group",e)}r.startGroup=startGroup;function endGroup(){s.issue("endgroup")}r.endGroup=endGroup;function group(e,r){return t(this,void 0,void 0,function*(){startGroup(e);let n;try{n=yield r()}finally{endGroup()}return n})}r.group=group;function saveState(e,r){s.issueCommand("save-state",{name:e},r)}r.saveState=saveState;function getState(e){return process.env[`STATE_${e}`]||""}r.getState=getState},717:function(e,r,n){"use strict";var t=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n in e)if(Object.hasOwnProperty.call(e,n))r[n]=e[n];r["default"]=e;return r};Object.defineProperty(r,"__esModule",{value:true});const o=t(n(5747));const s=t(n(2087));const i=n(5278);function issueCommand(e,r){const n=process.env[`GITHUB_${e}`];if(!n){throw new Error(`Unable to find environment variable for file command ${e}`)}if(!o.existsSync(n)){throw new Error(`Missing file at path: ${n}`)}o.appendFileSync(n,`${i.toCommandValue(r)}${s.EOL}`,{encoding:"utf8"})}r.issueCommand=issueCommand},5278:(e,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});function toCommandValue(e){if(e===null||e===undefined){return""}else if(typeof e==="string"||e instanceof String){return e}return JSON.stringify(e)}r.toCommandValue=toCommandValue},4751:(e,r,n)=>{"use strict";function __export(e){for(var n in e)if(!r.hasOwnProperty(n))r[n]=e[n]}Object.defineProperty(r,"__esModule",{value:true});__export(n(2825))},2825:function(e,r,n){"use strict";var t=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:true});const o=n(5747);const s=t(n(8231));const i=s.default("@kwsites/file-exists");function check(e,r,n){i(`checking %s`,e);try{const t=o.statSync(e);if(t.isFile()&&r){i(`[OK] path represents a file`);return true}if(t.isDirectory()&&n){i(`[OK] path represents a directory`);return true}i(`[FAIL] path represents something other than a file or directory`);return false}catch(e){if(e.code==="ENOENT"){i(`[FAIL] path is not accessible: %o`,e);return false}i(`[FATAL] %o`,e);throw e}}function exists(e,n=r.READABLE){return check(e,(n&r.FILE)>0,(n&r.FOLDER)>0)}r.exists=exists;r.FILE=1;r.FOLDER=2;r.READABLE=r.FILE+r.FOLDER},9819:(e,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.createDeferred=r.deferred=void 0;function deferred(){let e;let r;let n="pending";const t=new Promise((n,t)=>{e=n;r=t});return{promise:t,done(r){if(n==="pending"){n="resolved";e(r)}},fail(e){if(n==="pending"){n="rejected";r(e)}},get fulfilled(){return n!=="pending"},get status(){return n}}}r.deferred=deferred;r.createDeferred=deferred;r.default=deferred},8222:(e,r,n)=>{r.log=log;r.formatArgs=formatArgs;r.save=save;r.load=load;r.useColors=useColors;r.storage=localstorage();r.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function useColors(){if(typeof window!=="undefined"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs)){return true}if(typeof navigator!=="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)){return false}return typeof document!=="undefined"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window!=="undefined"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator!=="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator!=="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function formatArgs(r){r[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+r[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff);if(!this.useColors){return}const n="color: "+this.color;r.splice(1,0,n,"color: inherit");let t=0;let o=0;r[0].replace(/%[a-zA-Z%]/g,e=>{if(e==="%%"){return}t++;if(e==="%c"){o=t}});r.splice(o,0,n)}function log(...e){return typeof console==="object"&&console.log&&console.log(...e)}function save(e){try{if(e){r.storage.setItem("debug",e)}else{r.storage.removeItem("debug")}}catch(e){}}function load(){let e;try{e=r.storage.getItem("debug")}catch(e){}if(!e&&typeof process!=="undefined"&&"env"in process){e=process.env.DEBUG}return e}function localstorage(){try{return localStorage}catch(e){}}e.exports=n(6243)(r);const{formatters:t}=e.exports;t.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},6243:(e,r,n)=>{function setup(e){createDebug.debug=createDebug;createDebug.default=createDebug;createDebug.coerce=coerce;createDebug.disable=disable;createDebug.enable=enable;createDebug.enabled=enabled;createDebug.humanize=n(900);Object.keys(e).forEach(r=>{createDebug[r]=e[r]});createDebug.instances=[];createDebug.names=[];createDebug.skips=[];createDebug.formatters={};function selectColor(e){let r=0;for(let n=0;n{if(r==="%%"){return r}s++;const o=createDebug.formatters[t];if(typeof o==="function"){const t=e[s];r=o.call(n,t);e.splice(s,1);s--}return r});createDebug.formatArgs.call(n,e);const i=n.log||createDebug.log;i.apply(n,e)}debug.namespace=e;debug.enabled=createDebug.enabled(e);debug.useColors=createDebug.useColors();debug.color=selectColor(e);debug.destroy=destroy;debug.extend=extend;if(typeof createDebug.init==="function"){createDebug.init(debug)}createDebug.instances.push(debug);return debug}function destroy(){const e=createDebug.instances.indexOf(this);if(e!==-1){createDebug.instances.splice(e,1);return true}return false}function extend(e,r){const n=createDebug(this.namespace+(typeof r==="undefined"?":":r)+e);n.log=this.log;return n}function enable(e){createDebug.save(e);createDebug.names=[];createDebug.skips=[];let r;const n=(typeof e==="string"?e:"").split(/[\s,]+/);const t=n.length;for(r=0;r"-"+e)].join(",");createDebug.enable("");return e}function enabled(e){if(e[e.length-1]==="*"){return true}let r;let n;for(r=0,n=createDebug.skips.length;r{if(typeof process==="undefined"||process.type==="renderer"||process.browser===true||process.__nwjs){e.exports=n(8222)}else{e.exports=n(5332)}},5332:(e,r,n)=>{const t=n(3867);const o=n(1669);r.init=init;r.log=log;r.formatArgs=formatArgs;r.save=save;r.load=load;r.useColors=useColors;r.colors=[6,2,3,4,5,1];try{const e=n(9318);if(e&&(e.stderr||e).level>=2){r.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221]}}catch(e){}r.inspectOpts=Object.keys(process.env).filter(e=>{return/^debug_/i.test(e)}).reduce((e,r)=>{const n=r.substring(6).toLowerCase().replace(/_([a-z])/g,(e,r)=>{return r.toUpperCase()});let t=process.env[r];if(/^(yes|on|true|enabled)$/i.test(t)){t=true}else if(/^(no|off|false|disabled)$/i.test(t)){t=false}else if(t==="null"){t=null}else{t=Number(t)}e[n]=t;return e},{});function useColors(){return"colors"in r.inspectOpts?Boolean(r.inspectOpts.colors):t.isatty(process.stderr.fd)}function formatArgs(r){const{namespace:n,useColors:t}=this;if(t){const t=this.color;const o="[3"+(t<8?t:"8;5;"+t);const s=` ${o};1m${n} `;r[0]=s+r[0].split("\n").join("\n"+s);r.push(o+"m+"+e.exports.humanize(this.diff)+"")}else{r[0]=getDate()+n+" "+r[0]}}function getDate(){if(r.inspectOpts.hideDate){return""}return(new Date).toISOString()+" "}function log(...e){return process.stderr.write(o.format(...e)+"\n")}function save(e){if(e){process.env.DEBUG=e}else{delete process.env.DEBUG}}function load(){return process.env.DEBUG}function init(e){e.inspectOpts={};const n=Object.keys(r.inspectOpts);for(let t=0;t{"use strict";e.exports=((e,r)=>{r=r||process.argv;const n=e.startsWith("-")?"":e.length===1?"-":"--";const t=r.indexOf(n+e);const o=r.indexOf("--");return t!==-1&&(o===-1?true:t{"use strict";var t=n(1161);var o=n(8866);function renamed(e,r){return function(){throw new Error("Function yaml."+e+" is removed in js-yaml 4. "+"Use yaml."+r+" instead, which is now safe by default.")}}e.exports.Type=n(6073);e.exports.Schema=n(1082);e.exports.FAILSAFE_SCHEMA=n(8562);e.exports.JSON_SCHEMA=n(1035);e.exports.CORE_SCHEMA=n(2011);e.exports.DEFAULT_SCHEMA=n(8759);e.exports.load=t.load;e.exports.loadAll=t.loadAll;e.exports.dump=o.dump;e.exports.YAMLException=n(8179);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,r){var n,t,o,s;if(r){s=Object.keys(r);for(n=0,t=s.length;n{"use strict";var t=n(6829);var o=n(8179);var s=n(8759);var i=Object.prototype.toString;var u=Object.prototype.hasOwnProperty;var c=65279;var a=9;var f=10;var l=13;var p=32;var h=33;var d=34;var g=35;var m=37;var b=38;var v=39;var C=42;var O=44;var T=45;var y=58;var E=61;var S=62;var k=63;var w=64;var A=91;var D=93;var F=96;var R=123;var M=124;var P=125;var j={};j[0]="\\0";j[7]="\\a";j[8]="\\b";j[9]="\\t";j[10]="\\n";j[11]="\\v";j[12]="\\f";j[13]="\\r";j[27]="\\e";j[34]='\\"';j[92]="\\\\";j[133]="\\N";j[160]="\\_";j[8232]="\\L";j[8233]="\\P";var L=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"];var I=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function compileStyleMap(e,r){var n,t,o,s,i,c,a;if(r===null)return{};n={};t=Object.keys(r);for(o=0,s=t.length;o=55296&&n<=56319&&r+1=56320&&t<=57343){return(n-55296)*1024+t-56320+65536}}return n}function needIndentIndicator(e){var r=/^\n* /;return r.test(e)}var N=1,$=2,x=3,U=4,Y=5;function chooseScalarStyle(e,r,n,t,o,s,i,u){var c;var a=0;var l=null;var p=false;var h=false;var d=t!==-1;var g=-1;var m=isPlainSafeFirst(codePointAt(e,0))&&isPlainSafeLast(codePointAt(e,e.length-1));if(r||i){for(c=0;c=65536?c+=2:c++){a=codePointAt(e,c);if(!isPrintable(a)){return Y}m=m&&isPlainSafe(a,l,u);l=a}}else{for(c=0;c=65536?c+=2:c++){a=codePointAt(e,c);if(a===f){p=true;if(d){h=h||c-g-1>t&&e[g+1]!==" ";g=c}}else if(!isPrintable(a)){return Y}m=m&&isPlainSafe(a,l,u);l=a}h=h||d&&(c-g-1>t&&e[g+1]!==" ")}if(!p&&!h){if(m&&!i&&!o(e)){return N}return s===B?Y:$}if(n>9&&needIndentIndicator(e)){return Y}if(!i){return h?U:x}return s===B?Y:$}function writeScalar(e,r,n,t,s){e.dump=function(){if(r.length===0){return e.quotingType===B?'""':"''"}if(!e.noCompatMode){if(L.indexOf(r)!==-1||I.test(r)){return e.quotingType===B?'"'+r+'"':"'"+r+"'"}}var i=e.indent*Math.max(1,n);var u=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-i);var c=t||e.flowLevel>-1&&n>=e.flowLevel;function testAmbiguity(r){return testImplicitResolving(e,r)}switch(chooseScalarStyle(r,c,e.indent,u,testAmbiguity,e.quotingType,e.forceQuotes&&!t,s)){case N:return r;case $:return"'"+r.replace(/'/g,"''")+"'";case x:return"|"+blockHeader(r,e.indent)+dropEndingNewline(indentString(r,i));case U:return">"+blockHeader(r,e.indent)+dropEndingNewline(indentString(foldString(r,u),i));case Y:return'"'+escapeString(r,u)+'"';default:throw new o("impossible error: invalid scalar style")}}()}function blockHeader(e,r){var n=needIndentIndicator(e)?String(r):"";var t=e[e.length-1]==="\n";var o=t&&(e[e.length-2]==="\n"||e==="\n");var s=o?"+":t?"":"-";return n+s+"\n"}function dropEndingNewline(e){return e[e.length-1]==="\n"?e.slice(0,-1):e}function foldString(e,r){var n=/(\n+)([^\n]*)/g;var t=function(){var t=e.indexOf("\n");t=t!==-1?t:e.length;n.lastIndex=t;return foldLine(e.slice(0,t),r)}();var o=e[0]==="\n"||e[0]===" ";var s;var i;while(i=n.exec(e)){var u=i[1],c=i[2];s=c[0]===" ";t+=u+(!o&&!s&&c!==""?"\n":"")+foldLine(c,r);o=s}return t}function foldLine(e,r){if(e===""||e[0]===" ")return e;var n=/ [^ ]/g;var t;var o=0,s,i=0,u=0;var c="";while(t=n.exec(e)){u=t.index;if(u-o>r){s=i>o?i:u;c+="\n"+e.slice(o,s);o=s+1}i=u}c+="\n";if(e.length-o>r&&i>o){c+=e.slice(o,i)+"\n"+e.slice(i+1)}else{c+=e.slice(o)}return c.slice(1)}function escapeString(e){var r="";var n=0;var t;for(var o=0;o=65536?o+=2:o++){n=codePointAt(e,o);t=j[n];if(!t&&isPrintable(n)){r+=e[o];if(n>=65536)r+=e[o+1]}else{r+=t||encodeHex(n)}}return r}function writeFlowSequence(e,r,n){var t="",o=e.tag,s,i,u;for(s=0,i=n.length;s1024)f+="? ";f+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" ");if(!writeNode(e,r,a,false,false)){continue}f+=e.dump;t+=f}e.tag=o;e.dump="{"+t+"}"}function writeBlockMapping(e,r,n,t){var s="",i=e.tag,u=Object.keys(n),c,a,l,p,h,d;if(e.sortKeys===true){u.sort()}else if(typeof e.sortKeys==="function"){u.sort(e.sortKeys)}else if(e.sortKeys){throw new o("sortKeys must be a boolean or a function")}for(c=0,a=u.length;c1024;if(h){if(e.dump&&f===e.dump.charCodeAt(0)){d+="?"}else{d+="? "}}d+=e.dump;if(h){d+=generateNextLine(e,r)}if(!writeNode(e,r+1,p,true,h)){continue}if(e.dump&&f===e.dump.charCodeAt(0)){d+=":"}else{d+=": "}d+=e.dump;s+=d}e.tag=i;e.dump=s||"{}"}function detectType(e,r,n){var t,s,c,a,f,l;s=n?e.explicitTypes:e.implicitTypes;for(c=0,a=s.length;c tag resolver accepts not "'+l+'" style')}e.dump=t}return true}}return false}function writeNode(e,r,n,t,s,u,c){e.tag=null;e.dump=n;if(!detectType(e,n,false)){detectType(e,n,true)}var a=i.call(e.dump);var f=t;var l;if(t){t=e.flowLevel<0||e.flowLevel>r}var p=a==="[object Object]"||a==="[object Array]",h,d;if(p){h=e.duplicates.indexOf(n);d=h!==-1}if(e.tag!==null&&e.tag!=="?"||d||e.indent!==2&&r>0){s=false}if(d&&e.usedDuplicates[h]){e.dump="*ref_"+h}else{if(p&&d&&!e.usedDuplicates[h]){e.usedDuplicates[h]=true}if(a==="[object Object]"){if(t&&Object.keys(e.dump).length!==0){writeBlockMapping(e,r,e.dump,s);if(d){e.dump="&ref_"+h+e.dump}}else{writeFlowMapping(e,r,e.dump);if(d){e.dump="&ref_"+h+" "+e.dump}}}else if(a==="[object Array]"){if(t&&e.dump.length!==0){if(e.noArrayIndent&&!c&&r>0){writeBlockSequence(e,r-1,e.dump,s)}else{writeBlockSequence(e,r,e.dump,s)}if(d){e.dump="&ref_"+h+e.dump}}else{writeFlowSequence(e,r,e.dump);if(d){e.dump="&ref_"+h+" "+e.dump}}}else if(a==="[object String]"){if(e.tag!=="?"){writeScalar(e,e.dump,r,u,f)}}else if(a==="[object Undefined]"){return false}else{if(e.skipInvalid)return false;throw new o("unacceptable kind of an object to dump "+a)}if(e.tag!==null&&e.tag!=="?"){l=encodeURI(e.tag[0]==="!"?e.tag.slice(1):e.tag).replace(/!/g,"%21");if(e.tag[0]==="!"){l="!"+l}else if(l.slice(0,18)==="tag:yaml.org,2002:"){l="!!"+l.slice(18)}else{l="!<"+l+">"}e.dump=l+" "+e.dump}}return true}function getDuplicateReferences(e,r){var n=[],t=[],o,s;inspectNode(e,n,t);for(o=0,s=t.length;o{"use strict";function formatError(e,r){var n="",t=e.reason||"(unknown reason)";if(!e.mark)return t;if(e.mark.name){n+='in "'+e.mark.name+'" '}n+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")";if(!r&&e.mark.snippet){n+="\n\n"+e.mark.snippet}return t+" "+n}function YAMLException(e,r){Error.call(this);this.name="YAMLException";this.reason=e;this.mark=r;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,r,n)=>{"use strict";var t=n(6829);var o=n(8179);var s=n(6975);var i=n(8759);var u=Object.prototype.hasOwnProperty;var c=1;var a=2;var f=3;var l=4;var p=1;var h=2;var d=3;var g=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/;var m=/[\x85\u2028\u2029]/;var b=/[,\[\]\{\}]/;var v=/^(?:!|!!|![a-z\-]+!)$/i;var C=/^(?:!|[^,\[\]\{\}])(?:%[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 r;if(48<=e&&e<=57){return e-48}r=e|32;if(97<=r&&r<=102){return r-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 O=new Array(256);var T=new Array(256);for(var y=0;y<256;y++){O[y]=simpleEscapeSequence(y)?1:0;T[y]=simpleEscapeSequence(y)}function State(e,r){this.input=e;this.filename=r["filename"]||null;this.schema=r["schema"]||i;this.onWarning=r["onWarning"]||null;this.legacy=r["legacy"]||false;this.json=r["json"]||false;this.listener=r["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,r){var n={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};n.snippet=s(n);return new o(r,n)}function throwError(e,r){throw generateError(e,r)}function throwWarning(e,r){if(e.onWarning){e.onWarning.call(null,generateError(e,r))}}var E={YAML:function handleYamlDirective(e,r,n){var t,o,s;if(e.version!==null){throwError(e,"duplication of %YAML directive")}if(n.length!==1){throwError(e,"YAML directive accepts exactly one argument")}t=/^([0-9]+)\.([0-9]+)$/.exec(n[0]);if(t===null){throwError(e,"ill-formed argument of the YAML directive")}o=parseInt(t[1],10);s=parseInt(t[2],10);if(o!==1){throwError(e,"unacceptable YAML version of the document")}e.version=n[0];e.checkLineBreaks=s<2;if(s!==1&&s!==2){throwWarning(e,"unsupported YAML version of the document")}},TAG:function handleTagDirective(e,r,n){var t,o;if(n.length!==2){throwError(e,"TAG directive accepts exactly two arguments")}t=n[0];o=n[1];if(!v.test(t)){throwError(e,"ill-formed tag handle (first argument) of the TAG directive")}if(u.call(e.tagMap,t)){throwError(e,'there is a previously declared suffix for "'+t+'" tag handle')}if(!C.test(o)){throwError(e,"ill-formed tag prefix (second argument) of the TAG directive")}try{o=decodeURIComponent(o)}catch(r){throwError(e,"tag prefix is malformed: "+o)}e.tagMap[t]=o}};function captureSegment(e,r,n,t){var o,s,i,u;if(r1){e.result+=t.repeat("\n",r-1)}}function readPlainScalar(e,r,n){var t,o,s,i,u,c,a,f,l=e.kind,p=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){o=e.input.charCodeAt(e.position+1);if(is_WS_OR_EOL(o)||n&&is_FLOW_INDICATOR(o)){return false}}e.kind="scalar";e.result="";s=i=e.position;u=false;while(h!==0){if(h===58){o=e.input.charCodeAt(e.position+1);if(is_WS_OR_EOL(o)||n&&is_FLOW_INDICATOR(o)){break}}else if(h===35){t=e.input.charCodeAt(e.position-1);if(is_WS_OR_EOL(t)){break}}else if(e.position===e.lineStart&&testDocumentSeparator(e)||n&&is_FLOW_INDICATOR(h)){break}else if(is_EOL(h)){c=e.line;a=e.lineStart;f=e.lineIndent;skipSeparationSpace(e,false,-1);if(e.lineIndent>=r){u=true;h=e.input.charCodeAt(e.position);continue}else{e.position=i;e.line=c;e.lineStart=a;e.lineIndent=f;break}}if(u){captureSegment(e,s,i,false);writeFoldedLines(e,e.line-c);s=i=e.position;u=false}if(!is_WHITE_SPACE(h)){i=e.position+1}h=e.input.charCodeAt(++e.position)}captureSegment(e,s,i,false);if(e.result){return true}e.kind=l;e.result=p;return false}function readSingleQuotedScalar(e,r){var n,t,o;n=e.input.charCodeAt(e.position);if(n!==39){return false}e.kind="scalar";e.result="";e.position++;t=o=e.position;while((n=e.input.charCodeAt(e.position))!==0){if(n===39){captureSegment(e,t,e.position,true);n=e.input.charCodeAt(++e.position);if(n===39){t=e.position;e.position++;o=e.position}else{return true}}else if(is_EOL(n)){captureSegment(e,t,o,true);writeFoldedLines(e,skipSeparationSpace(e,false,r));t=o=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++;o=e.position}}throwError(e,"unexpected end of the stream within a single quoted scalar")}function readDoubleQuotedScalar(e,r){var n,t,o,s,i,u;u=e.input.charCodeAt(e.position);if(u!==34){return false}e.kind="scalar";e.result="";e.position++;n=t=e.position;while((u=e.input.charCodeAt(e.position))!==0){if(u===34){captureSegment(e,n,e.position,true);e.position++;return true}else if(u===92){captureSegment(e,n,e.position,true);u=e.input.charCodeAt(++e.position);if(is_EOL(u)){skipSeparationSpace(e,false,r)}else if(u<256&&O[u]){e.result+=T[u];e.position++}else if((i=escapedHexLen(u))>0){o=i;s=0;for(;o>0;o--){u=e.input.charCodeAt(++e.position);if((i=fromHexCode(u))>=0){s=(s<<4)+i}else{throwError(e,"expected hexadecimal character")}}e.result+=charFromCodepoint(s);e.position++}else{throwError(e,"unknown escape sequence")}n=t=e.position}else if(is_EOL(u)){captureSegment(e,n,t,true);writeFoldedLines(e,skipSeparationSpace(e,false,r));n=t=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++;t=e.position}}throwError(e,"unexpected end of the stream within a double quoted scalar")}function readFlowCollection(e,r){var n=true,t,o,s,i=e.tag,u,a=e.anchor,f,l,p,h,d,g=Object.create(null),m,b,v,C;C=e.input.charCodeAt(e.position);if(C===91){l=93;d=false;u=[]}else if(C===123){l=125;d=true;u={}}else{return false}if(e.anchor!==null){e.anchorMap[e.anchor]=u}C=e.input.charCodeAt(++e.position);while(C!==0){skipSeparationSpace(e,true,r);C=e.input.charCodeAt(e.position);if(C===l){e.position++;e.tag=i;e.anchor=a;e.kind=d?"mapping":"sequence";e.result=u;return true}else if(!n){throwError(e,"missed comma between flow collection entries")}else if(C===44){throwError(e,"expected the node content, but found ','")}b=m=v=null;p=h=false;if(C===63){f=e.input.charCodeAt(e.position+1);if(is_WS_OR_EOL(f)){p=h=true;e.position++;skipSeparationSpace(e,true,r)}}t=e.line;o=e.lineStart;s=e.position;composeNode(e,r,c,false,true);b=e.tag;m=e.result;skipSeparationSpace(e,true,r);C=e.input.charCodeAt(e.position);if((h||e.line===t)&&C===58){p=true;C=e.input.charCodeAt(++e.position);skipSeparationSpace(e,true,r);composeNode(e,r,c,false,true);v=e.result}if(d){storeMappingPair(e,u,g,b,m,v,t,o,s)}else if(p){u.push(storeMappingPair(e,null,g,b,m,v,t,o,s))}else{u.push(m)}skipSeparationSpace(e,true,r);C=e.input.charCodeAt(e.position);if(C===44){n=true;C=e.input.charCodeAt(++e.position)}else{n=false}}throwError(e,"unexpected end of the stream within a flow collection")}function readBlockScalar(e,r){var n,o,s=p,i=false,u=false,c=r,a=0,f=false,l,g;g=e.input.charCodeAt(e.position);if(g===124){o=false}else if(g===62){o=true}else{return false}e.kind="scalar";e.result="";while(g!==0){g=e.input.charCodeAt(++e.position);if(g===43||g===45){if(p===s){s=g===43?d:h}else{throwError(e,"repeat of a chomping mode identifier")}}else if((l=fromDecimalCode(g))>=0){if(l===0){throwError(e,"bad explicit indentation width of a block scalar; it cannot be less than one")}else if(!u){c=r+l-1;u=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((!u||e.lineIndentc){c=e.lineIndent}if(is_EOL(g)){a++;continue}if(e.lineIndentr)&&c!==0){throwError(e,"bad indentation of a sequence entry")}else if(e.lineIndentr){if(v){i=e.line;u=e.lineStart;c=e.position}if(composeNode(e,r,l,true,o)){if(v){m=e.result}else{b=e.result}}if(!v){storeMappingPair(e,h,d,g,m,b,i,u,c);g=m=b=null}skipSeparationSpace(e,true,-1);O=e.input.charCodeAt(e.position)}if((e.line===s||e.lineIndent>r)&&O!==0){throwError(e,"bad indentation of a mapping entry")}else if(e.lineIndentr){h=1}else if(e.lineIndent===r){h=0}else if(e.lineIndentr){h=1}else if(e.lineIndent===r){h=0}else if(e.lineIndent tag; it should be "scalar", not "'+e.kind+'"')}for(m=0,b=e.implicitTypes.length;m")}if(e.result!==null&&C.kind!==e.kind){throwError(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+C.kind+'", not "'+e.kind+'"')}if(!C.resolve(e.result,e.tag)){throwError(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}else{e.result=C.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 r=e.position,n,t,o,s=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}s=true;i=e.input.charCodeAt(++e.position);n=e.position;while(i!==0&&!is_WS_OR_EOL(i)){i=e.input.charCodeAt(++e.position)}t=e.input.slice(n,e.position);o=[];if(t.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;n=e.position;while(i!==0&&!is_WS_OR_EOL(i)){i=e.input.charCodeAt(++e.position)}o.push(e.input.slice(n,e.position))}if(i!==0)readLineBreak(e);if(u.call(E,t)){E[t](e,t,o)}else{throwWarning(e,'unknown document directive "'+t+'"')}}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(s){throwError(e,"directives end mark is expected")}composeNode(e,e.lineIndent-1,l,false,true);skipSeparationSpace(e,true,-1);if(e.checkLineBreaks&&m.test(e.input.slice(r,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 t=n(8179);var o=n(6073);function compileList(e,r,n){var t=[];e[r].forEach(function(e){n.forEach(function(r,n){if(r.tag===e.tag&&r.kind===e.kind&&r.multi===e.multi){t.push(n)}});n.push(e)});return n.filter(function(e,r){return t.indexOf(r)===-1})}function compileMap(){var e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},r,n;function collectType(r){if(r.multi){e.multi[r.kind].push(r);e.multi["fallback"].push(r)}else{e[r.kind][r.tag]=e["fallback"][r.tag]=r}}for(r=0,n=arguments.length;r{"use strict";e.exports=n(1035)},8759:(e,r,n)=>{"use strict";e.exports=n(2011).extend({implicit:[n(9212),n(6104)],explicit:[n(7900),n(9046),n(6860),n(9548)]})},8562:(e,r,n)=>{"use strict";var t=n(1082);e.exports=new t({explicit:[n(3619),n(7283),n(6150)]})},1035:(e,r,n)=>{"use strict";e.exports=n(8562).extend({implicit:[n(721),n(4993),n(1615),n(2705)]})},6975:(e,r,n)=>{"use strict";var t=n(6829);function getLine(e,r,n,t,o){var s="";var i="";var u=Math.floor(o/2)-1;if(t-r>u){s=" ... ";r=t-u+s.length}if(n-t>u){i=" ...";n=t+u-i.length}return{str:s+e.slice(r,n).replace(/\t/g,"→")+i,pos:t-r+s.length}}function padStart(e,r){return t.repeat(" ",r-e.length)+e}function makeSnippet(e,r){r=Object.create(r||null);if(!e.buffer)return null;if(!r.maxLength)r.maxLength=79;if(typeof r.indent!=="number")r.indent=1;if(typeof r.linesBefore!=="number")r.linesBefore=3;if(typeof r.linesAfter!=="number")r.linesAfter=2;var n=/\r?\n|\r|\0/g;var o=[0];var s=[];var i;var u=-1;while(i=n.exec(e.buffer)){s.push(i.index);o.push(i.index+i[0].length);if(e.position<=i.index&&u<0){u=o.length-2}}if(u<0)u=o.length-1;var c="",a,f;var l=Math.min(e.line+r.linesAfter,s.length).toString().length;var p=r.maxLength-(r.indent+l+3);for(a=1;a<=r.linesBefore;a++){if(u-a<0)break;f=getLine(e.buffer,o[u-a],s[u-a],e.position-(o[u]-o[u-a]),p);c=t.repeat(" ",r.indent)+padStart((e.line-a+1).toString(),l)+" | "+f.str+"\n"+c}f=getLine(e.buffer,o[u],s[u],e.position,p);c+=t.repeat(" ",r.indent)+padStart((e.line+1).toString(),l)+" | "+f.str+"\n";c+=t.repeat("-",r.indent+l+3+f.pos)+"^"+"\n";for(a=1;a<=r.linesAfter;a++){if(u+a>=s.length)break;f=getLine(e.buffer,o[u+a],s[u+a],e.position-(o[u]-o[u+a]),p);c+=t.repeat(" ",r.indent)+padStart((e.line+a+1).toString(),l)+" | "+f.str+"\n"}return c.replace(/\n$/,"")}e.exports=makeSnippet},6073:(e,r,n)=>{"use strict";var t=n(8179);var o=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"];var s=["scalar","sequence","mapping"];function compileStyleAliases(e){var r={};if(e!==null){Object.keys(e).forEach(function(n){e[n].forEach(function(e){r[String(e)]=n})})}return r}function Type(e,r){r=r||{};Object.keys(r).forEach(function(r){if(o.indexOf(r)===-1){throw new t('Unknown option "'+r+'" is met in definition of "'+e+'" YAML type.')}});this.tag=e;this.kind=r["kind"]||null;this.resolve=r["resolve"]||function(){return true};this.construct=r["construct"]||function(e){return e};this.instanceOf=r["instanceOf"]||null;this.predicate=r["predicate"]||null;this.represent=r["represent"]||null;this.representName=r["representName"]||null;this.defaultStyle=r["defaultStyle"]||null;this.multi=r["multi"]||false;this.styleAliases=compileStyleAliases(r["styleAliases"]||null);if(s.indexOf(this.kind)===-1){throw new t('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}}e.exports=Type},7900:(e,r,n)=>{"use strict";var t=n(6073);var o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";function resolveYamlBinary(e){if(e===null)return false;var r,n,t=0,s=e.length,i=o;for(n=0;n64)continue;if(r<0)return false;t+=6}return t%8===0}function constructYamlBinary(e){var r,n,t=e.replace(/[\r\n=]/g,""),s=t.length,i=o,u=0,c=[];for(r=0;r>16&255);c.push(u>>8&255);c.push(u&255)}u=u<<6|i.indexOf(t.charAt(r))}n=s%4*6;if(n===0){c.push(u>>16&255);c.push(u>>8&255);c.push(u&255)}else if(n===18){c.push(u>>10&255);c.push(u>>2&255)}else if(n===12){c.push(u>>4&255)}return new Uint8Array(c)}function representYamlBinary(e){var r="",n=0,t,s,i=e.length,u=o;for(t=0;t>18&63];r+=u[n>>12&63];r+=u[n>>6&63];r+=u[n&63]}n=(n<<8)+e[t]}s=i%3;if(s===0){r+=u[n>>18&63];r+=u[n>>12&63];r+=u[n>>6&63];r+=u[n&63]}else if(s===2){r+=u[n>>10&63];r+=u[n>>4&63];r+=u[n<<2&63];r+=u[64]}else if(s===1){r+=u[n>>2&63];r+=u[n<<4&63];r+=u[64];r+=u[64]}return r}function isBinary(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}e.exports=new t("tag:yaml.org,2002:binary",{kind:"scalar",resolve:resolveYamlBinary,construct:constructYamlBinary,predicate:isBinary,represent:representYamlBinary})},4993:(e,r,n)=>{"use strict";var t=n(6073);function resolveYamlBoolean(e){if(e===null)return false;var r=e.length;return r===4&&(e==="true"||e==="True"||e==="TRUE")||r===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 t("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,r,n)=>{"use strict";var t=n(6829);var o=n(6073);var s=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(!s.test(e)||e[e.length-1]==="_"){return false}return true}function constructYamlFloat(e){var r,n;r=e.replace(/_/g,"").toLowerCase();n=r[0]==="-"?-1:1;if("+-".indexOf(r[0])>=0){r=r.slice(1)}if(r===".inf"){return n===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY}else if(r===".nan"){return NaN}return n*parseFloat(r,10)}var i=/^[-+]?[0-9]+e/;function representYamlFloat(e,r){var n;if(isNaN(e)){switch(r){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}}else if(Number.POSITIVE_INFINITY===e){switch(r){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}}else if(Number.NEGATIVE_INFINITY===e){switch(r){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}}else if(t.isNegativeZero(e)){return"-0.0"}n=e.toString(10);return i.test(n)?n.replace("e",".e"):n}function isFloat(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||t.isNegativeZero(e))}e.exports=new o("tag:yaml.org,2002:float",{kind:"scalar",resolve:resolveYamlFloat,construct:constructYamlFloat,predicate:isFloat,represent:representYamlFloat,defaultStyle:"lowercase"})},1615:(e,r,n)=>{"use strict";var t=n(6829);var o=n(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 r=e.length,n=0,t=false,o;if(!r)return false;o=e[n];if(o==="-"||o==="+"){o=e[++n]}if(o==="0"){if(n+1===r)return true;o=e[++n];if(o==="b"){n++;for(;n=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,r,n)=>{"use strict";var t=n(6073);e.exports=new t("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return e!==null?e:{}}})},6104:(e,r,n)=>{"use strict";var t=n(6073);function resolveYamlMerge(e){return e==="<<"||e===null}e.exports=new t("tag:yaml.org,2002:merge",{kind:"scalar",resolve:resolveYamlMerge})},721:(e,r,n)=>{"use strict";var t=n(6073);function resolveYamlNull(e){if(e===null)return true;var r=e.length;return r===1&&e==="~"||r===4&&(e==="null"||e==="Null"||e==="NULL")}function constructYamlNull(){return null}function isNull(e){return e===null}e.exports=new t("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,r,n)=>{"use strict";var t=n(6073);var o=Object.prototype.hasOwnProperty;var s=Object.prototype.toString;function resolveYamlOmap(e){if(e===null)return true;var r=[],n,t,i,u,c,a=e;for(n=0,t=a.length;n{"use strict";var t=n(6073);var o=Object.prototype.toString;function resolveYamlPairs(e){if(e===null)return true;var r,n,t,s,i,u=e;i=new Array(u.length);for(r=0,n=u.length;r{"use strict";var t=n(6073);e.exports=new t("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return e!==null?e:[]}})},9548:(e,r,n)=>{"use strict";var t=n(6073);var o=Object.prototype.hasOwnProperty;function resolveYamlSet(e){if(e===null)return true;var r,n=e;for(r in n){if(o.call(n,r)){if(n[r]!==null)return false}}return true}function constructYamlSet(e){return e!==null?e:{}}e.exports=new t("tag:yaml.org,2002:set",{kind:"mapping",resolve:resolveYamlSet,construct:constructYamlSet})},3619:(e,r,n)=>{"use strict";var t=n(6073);e.exports=new t("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return e!==null?e:""}})},9212:(e,r,n)=>{"use strict";var t=n(6073);var o=new RegExp("^([0-9][0-9][0-9][0-9])"+"-([0-9][0-9])"+"-([0-9][0-9])$");var s=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(o.exec(e)!==null)return true;if(s.exec(e)!==null)return true;return false}function constructYamlTimestamp(e){var r,n,t,i,u,c,a,f=0,l=null,p,h,d;r=o.exec(e);if(r===null)r=s.exec(e);if(r===null)throw new Error("Date resolve error");n=+r[1];t=+r[2]-1;i=+r[3];if(!r[4]){return new Date(Date.UTC(n,t,i))}u=+r[4];c=+r[5];a=+r[6];if(r[7]){f=r[7].slice(0,3);while(f.length<3){f+="0"}f=+f}if(r[9]){p=+r[10];h=+(r[11]||0);l=(p*60+h)*6e4;if(r[9]==="-")l=-l}d=new Date(Date.UTC(n,t,i,u,c,a,f));if(l)d.setTime(d.getTime()-l);return d}function representYamlTimestamp(e){return e.toISOString()}e.exports=new t("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:resolveYamlTimestamp,construct:constructYamlTimestamp,instanceOf:Date,represent:representYamlTimestamp})},900:e=>{var r=1e3;var n=r*60;var t=n*60;var o=t*24;var s=o*7;var i=o*365.25;e.exports=function(e,r){r=r||{};var n=typeof e;if(n==="string"&&e.length>0){return parse(e)}else if(n==="number"&&isFinite(e)){return r.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 u=/^(-?(?:\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(!u){return}var c=parseFloat(u[1]);var a=(u[2]||"ms").toLowerCase();switch(a){case"years":case"year":case"yrs":case"yr":case"y":return c*i;case"weeks":case"week":case"w":return c*s;case"days":case"day":case"d":return c*o;case"hours":case"hour":case"hrs":case"hr":case"h":return c*t;case"minutes":case"minute":case"mins":case"min":case"m":return c*n;case"seconds":case"second":case"secs":case"sec":case"s":return c*r;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return c;default:return undefined}}function fmtShort(e){var s=Math.abs(e);if(s>=o){return Math.round(e/o)+"d"}if(s>=t){return Math.round(e/t)+"h"}if(s>=n){return Math.round(e/n)+"m"}if(s>=r){return Math.round(e/r)+"s"}return e+"ms"}function fmtLong(e){var s=Math.abs(e);if(s>=o){return plural(e,s,o,"day")}if(s>=t){return plural(e,s,t,"hour")}if(s>=n){return plural(e,s,n,"minute")}if(s>=r){return plural(e,s,r,"second")}return e+" ms"}function plural(e,r,n,t){var o=r>=n*1.5;return Math.round(e/n)+" "+t+(o?"s":"")}},254:(e,r,n)=>{r.formatArgs=formatArgs;r.save=save;r.load=load;r.useColors=useColors;r.storage=localstorage();r.destroy=(()=>{let e=false;return()=>{if(!e){e=true;console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}}})();r.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function useColors(){if(typeof window!=="undefined"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs)){return true}if(typeof navigator!=="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)){return false}return typeof document!=="undefined"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window!=="undefined"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator!=="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator!=="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function formatArgs(r){r[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+r[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff);if(!this.useColors){return}const n="color: "+this.color;r.splice(1,0,n,"color: inherit");let t=0;let o=0;r[0].replace(/%[a-zA-Z%]/g,e=>{if(e==="%%"){return}t++;if(e==="%c"){o=t}});r.splice(o,0,n)}r.log=console.debug||console.log||(()=>{});function save(e){try{if(e){r.storage.setItem("debug",e)}else{r.storage.removeItem("debug")}}catch(e){}}function load(){let e;try{e=r.storage.getItem("debug")}catch(e){}if(!e&&typeof process!=="undefined"&&"env"in process){e=process.env.DEBUG}return e}function localstorage(){try{return localStorage}catch(e){}}e.exports=n(8867)(r);const{formatters:t}=e.exports;t.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},8867:(e,r,n)=>{function setup(e){createDebug.debug=createDebug;createDebug.default=createDebug;createDebug.coerce=coerce;createDebug.disable=disable;createDebug.enable=enable;createDebug.enabled=enabled;createDebug.humanize=n(900);createDebug.destroy=destroy;Object.keys(e).forEach(r=>{createDebug[r]=e[r]});createDebug.names=[];createDebug.skips=[];createDebug.formatters={};function selectColor(e){let r=0;for(let n=0;n{if(r==="%%"){return"%"}s++;const o=createDebug.formatters[t];if(typeof o==="function"){const t=e[s];r=o.call(n,t);e.splice(s,1);s--}return r});createDebug.formatArgs.call(n,e);const i=n.log||createDebug.log;i.apply(n,e)}debug.namespace=e;debug.useColors=createDebug.useColors();debug.color=createDebug.selectColor(e);debug.extend=extend;debug.destroy=createDebug.destroy;Object.defineProperty(debug,"enabled",{enumerable:true,configurable:false,get:()=>n===null?createDebug.enabled(e):n,set:e=>{n=e}});if(typeof createDebug.init==="function"){createDebug.init(debug)}return debug}function extend(e,r){const n=createDebug(this.namespace+(typeof r==="undefined"?":":r)+e);n.log=this.log;return n}function enable(e){createDebug.save(e);createDebug.names=[];createDebug.skips=[];let r;const n=(typeof e==="string"?e:"").split(/[\s,]+/);const t=n.length;for(r=0;r"-"+e)].join(",");createDebug.enable("");return e}function enabled(e){if(e[e.length-1]==="*"){return true}let r;let n;for(r=0,n=createDebug.skips.length;r{if(typeof process==="undefined"||process.type==="renderer"||process.browser===true||process.__nwjs){e.exports=n(254)}else{e.exports=n(675)}},675:(e,r,n)=>{const t=n(3867);const o=n(1669);r.init=init;r.log=log;r.formatArgs=formatArgs;r.save=save;r.load=load;r.useColors=useColors;r.destroy=o.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");r.colors=[6,2,3,4,5,1];try{const e=n(9318);if(e&&(e.stderr||e).level>=2){r.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221]}}catch(e){}r.inspectOpts=Object.keys(process.env).filter(e=>{return/^debug_/i.test(e)}).reduce((e,r)=>{const n=r.substring(6).toLowerCase().replace(/_([a-z])/g,(e,r)=>{return r.toUpperCase()});let t=process.env[r];if(/^(yes|on|true|enabled)$/i.test(t)){t=true}else if(/^(no|off|false|disabled)$/i.test(t)){t=false}else if(t==="null"){t=null}else{t=Number(t)}e[n]=t;return e},{});function useColors(){return"colors"in r.inspectOpts?Boolean(r.inspectOpts.colors):t.isatty(process.stderr.fd)}function formatArgs(r){const{namespace:n,useColors:t}=this;if(t){const t=this.color;const o="[3"+(t<8?t:"8;5;"+t);const s=` ${o};1m${n} `;r[0]=s+r[0].split("\n").join("\n"+s);r.push(o+"m+"+e.exports.humanize(this.diff)+"")}else{r[0]=getDate()+n+" "+r[0]}}function getDate(){if(r.inspectOpts.hideDate){return""}return(new Date).toISOString()+" "}function log(...e){return process.stderr.write(o.format(...e)+"\n")}function save(e){if(e){process.env.DEBUG=e}else{delete process.env.DEBUG}}function load(){return process.env.DEBUG}function init(e){e.inspectOpts={};const n=Object.keys(r.inspectOpts);for(let t=0;te.trim()).join(" ")};s.O=function(e){this.inspectOpts.colors=this.useColors;return o.inspect(e,this.inspectOpts)}},1949:(e,r,n)=>{const t=n(4966);const{GitConstructError:o}=n(4732);const{createInstanceConfig:s,folderExists:i}=n(847);const u=Object.create(null);for(let e=n(4732),r=Object.keys(e),t=0;t{const{GitExecutor:t}=n(4701);const{Scheduler:o}=n(3421);const{GitLogger:s}=n(7178);const{adhocExecTask:i,configurationErrorTask:u}=n(2815);const{NOOP:c,appendTaskOptions:a,asArray:f,filterArray:l,filterPrimitives:p,filterString:h,filterStringOrStringArray:d,filterType:g,folderExists:m,getTrailingOptions:b,trailingFunctionArgument:v,trailingOptionsArgument:C}=n(847);const{branchTask:O,branchLocalTask:T,deleteBranchesTask:y,deleteBranchTask:E}=n(17);const{taskCallback:S}=n(8850);const{checkIsRepoTask:k}=n(221);const{cloneTask:w,cloneMirrorTask:A}=n(3173);const{addConfigTask:D,listConfigTask:F}=n(7597);const{cleanWithOptionsTask:R,isCleanOptionsArray:M}=n(4386);const{commitTask:P}=n(5494);const{diffSummaryTask:j}=n(9241);const{fetchTask:L}=n(8823);const{hashObjectTask:I}=n(8199);const{initTask:G}=n(6016);const{logTask:B,parseLogOptions:N}=n(8627);const{mergeTask:$}=n(8829);const{moveTask:x}=n(6520);const{pullTask:U}=n(4636);const{pushTagsTask:Y,pushTask:W}=n(1435);const{addRemoteTask:q,getRemotesTask:z,listRemotesTask:V,remoteTask:H,removeRemoteTask:Q}=n(9866);const{getResetMode:J,resetTask:Z}=n(2377);const{stashListTask:X}=n(810);const{statusTask:K}=n(9197);const{addSubModuleTask:_,initSubModuleTask:ee,subModuleTask:re,updateSubModuleTask:ne}=n(8772);const{addAnnotatedTagTask:te,addTagTask:oe,tagListTask:se}=n(8540);const{straightThroughStringTask:ie}=n(2815);const{parseCheckIgnore:ue}=n(9926);const ce=Symbol("ChainedExecutor");function Git(e){this._executor=new t(e.binary,e.baseDir,new o(e.maxConcurrentProcesses));this._logger=new s}Git.prototype._executor=null;Git.prototype._logger=null;Git.prototype.customBinary=function(e){this._executor.binary=e;return this};Git.prototype.env=function(e,r){if(arguments.length===1&&typeof e==="object"){this._executor.env=e}else{(this._executor.env=this._executor.env||{})[e]=r}return this};Git.prototype.cwd=function(e){const r=typeof e!=="string"?u("Git.cwd: workingDirectory must be supplied as a string"):i(()=>{if(!m(e)){throw new Error(`Git.cwd: cannot change to non-directory "${e}"`)}return this._executor.cwd=e});return this._runTask(r,v(arguments)||c)};Git.prototype.outputHandler=function(e){this._executor.outputHandler=e;return this};Git.prototype.init=function(e,r){return this._runTask(G(e===true,this._executor.cwd,b(arguments)),v(arguments))};Git.prototype.status=function(){return this._runTask(K(b(arguments)),v(arguments))};Git.prototype.stashList=function(e){return this._runTask(X(C(arguments)||{},l(e)&&e||[]),v(arguments))};Git.prototype.stash=function(e,r){return this._runTask(ie(["stash",...b(arguments)]),v(arguments))};function createCloneTask(e,r,n,t){if(typeof n!=="string"){return u(`git.${e}() requires a string 'repoPath'`)}return r(n,g(t,h),b(arguments))}Git.prototype.clone=function(){return this._runTask(createCloneTask("clone",w,...arguments),v(arguments))};Git.prototype.mirror=function(){return this._runTask(createCloneTask("mirror",A,...arguments),v(arguments))};Git.prototype.mv=function(e,r){return this._runTask(x(e,r),v(arguments))};Git.prototype.checkoutLatestTag=function(e){var r=this;return this.pull(function(){r.tags(function(n,t){r.checkout(t.latest,e)})})};Git.prototype.add=function(e){return this._run(["add"].concat(e),v(arguments))};Git.prototype.commit=function(e,r,n,t){const o=v(arguments);const s=[];if(d(e)){s.push(...f(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(P(s,f(g(r,d,[])),[...g(n,l,[]),...b(arguments,0,true)]),o)};Git.prototype.pull=function(e,r,n,t){return this._runTask(U(g(e,h),g(r,h),b(arguments)),v(arguments))};Git.prototype.fetch=function(e,r){return this._runTask(L(g(e,h),g(r,h),b(arguments)),v(arguments))};Git.prototype.silent=function(e){this._logger.silent(!!e);return this};Git.prototype.tags=function(e,r){return this._runTask(se(b(arguments)),v(arguments))};Git.prototype.rebase=function(){return this._run(["rebase"].concat(b(arguments)),v(arguments))};Git.prototype.reset=function(e,r){return this._runTask(Z(J(e),b(arguments)),v(arguments))};Git.prototype.revert=function(e){const r=v(arguments);if(typeof e!=="string"){return this._runTask(u("Commit must be a string"),r)}return this._run(["revert",...b(arguments,0,true),e],r)};Git.prototype.addTag=function(e,r){const n=typeof e==="string"?oe(e):u("Git.addTag requires a tag name");return this._runTask(n,v(arguments))};Git.prototype.addAnnotatedTag=function(e,r,n){return this._runTask(te(e,r),v(arguments))};Git.prototype.checkout=function(e,r){const n=["checkout",...b(arguments,true)];return this._runTask(ie(n),v(arguments))};Git.prototype.checkoutBranch=function(e,r,n){return this.checkout(["-b",e,r],v(arguments))};Git.prototype.checkoutLocalBranch=function(e,r){return this.checkout(["-b",e],v(arguments))};Git.prototype.deleteLocalBranch=function(e,r,n){return this._runTask(E(e,typeof r==="boolean"?r:false),v(arguments))};Git.prototype.deleteLocalBranches=function(e,r,n){return this._runTask(y(e,typeof r==="boolean"?r:false),v(arguments))};Git.prototype.branch=function(e,r){return this._runTask(O(b(arguments)),v(arguments))};Git.prototype.branchLocal=function(e){return this._runTask(T(),v(arguments))};Git.prototype.addConfig=function(e,r,n,t){return this._runTask(D(e,r,typeof n==="boolean"?n:false),v(arguments))};Git.prototype.listConfig=function(){return this._runTask(F(),v(arguments))};Git.prototype.raw=function(e){const r=!Array.isArray(e);const n=[].slice.call(r?arguments:e,0);for(let e=0;e{const{gitP:t}=n(941);const{esModuleFactory:o,gitInstanceFactory:s,gitExportFactory:i}=n(1949);e.exports=o(i(s,{gitP:t}))},4732:(e,r,n)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.TaskConfigurationError=r.GitResponseError=r.GitError=r.GitConstructError=r.ResetMode=r.CheckRepoActions=r.CleanOptions=void 0;var t=n(4386);Object.defineProperty(r,"CleanOptions",{enumerable:true,get:function(){return t.CleanOptions}});var o=n(221);Object.defineProperty(r,"CheckRepoActions",{enumerable:true,get:function(){return o.CheckRepoActions}});var s=n(2377);Object.defineProperty(r,"ResetMode",{enumerable:true,get:function(){return s.ResetMode}});var i=n(1876);Object.defineProperty(r,"GitConstructError",{enumerable:true,get:function(){return i.GitConstructError}});var u=n(5757);Object.defineProperty(r,"GitError",{enumerable:true,get:function(){return u.GitError}});var c=n(5131);Object.defineProperty(r,"GitResponseError",{enumerable:true,get:function(){return c.GitResponseError}});var a=n(740);Object.defineProperty(r,"TaskConfigurationError",{enumerable:true,get:function(){return a.TaskConfigurationError}})},1876:(e,r,n)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.GitConstructError=void 0;const t=n(5757);class GitConstructError extends t.GitError{constructor(e,r){super(undefined,r);this.config=e}}r.GitConstructError=GitConstructError},5757:(e,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.GitError=void 0;class GitError extends Error{constructor(e,r){super(r);this.task=e;Object.setPrototypeOf(this,new.target.prototype)}}r.GitError=GitError},5131:(e,r,n)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.GitResponseError=void 0;const t=n(5757);class GitResponseError extends t.GitError{constructor(e,r){super(undefined,r||String(e));this.git=e}}r.GitResponseError=GitResponseError},740:(e,r,n)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.TaskConfigurationError=void 0;const t=n(5757);class TaskConfigurationError extends t.GitError{constructor(e){super(undefined,e)}}r.TaskConfigurationError=TaskConfigurationError},7178:(e,r,n)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.GitLogger=r.createLogger=r.log=void 0;const t=n(2179);const o=n(847);t.default.formatters.L=(e=>String(o.filterHasLength(e)?e.length:"-"));t.default.formatters.B=(e=>{if(Buffer.isBuffer(e)){return e.toString("utf8")}return o.objectToString(e)});r.log=t.default("simple-git");function prefixedLogger(e,r,n){if(!r||!String(r).replace(/\s*/,"")){return!n?e:(r,...t)=>{e(r,...t);n(r,...t)}}return(t,...o)=>{e(`%s ${t}`,r,...o);if(n){n(t,...o)}}}function childLoggerName(e,r,{namespace:n}){if(typeof e==="string"){return e}const t=r&&r.namespace||"";if(t.startsWith(n)){return t.substr(n.length+1)}return t||n}function createLogger(e,n,t,s=r.log){const i=e&&`[${e}]`||"";const u=[];const c=typeof n==="string"?s.extend(n):n;const a=childLoggerName(o.filterType(n,o.filterString),c,s);return step(t);function destroy(){u.forEach(e=>e.destroy());u.length=0}function child(r){return o.append(u,createLogger(e,c&&c.extend(r)||r))}function sibling(r,n){return o.append(u,createLogger(e,a.replace(/^[^:]+/,r),n,s))}function step(r){const n=r&&`[${r}]`||"";const t=c&&prefixedLogger(c,n)||o.NOOP;const u=prefixedLogger(s,`${i} ${n}`,t);return Object.assign(c?t:u,{key:a,label:e,child:child,sibling:sibling,debug:t,info:u,step:step,destroy:destroy})}}r.createLogger=createLogger;class GitLogger{constructor(e=r.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:r}=this._out;const n=(process.env.DEBUG||"").split(",").filter(e=>!!e);const s=n.includes(r);const i=n.includes(`-${r}`);if(!e){if(i){o.remove(n,`-${r}`)}else{n.push(r)}}else{if(s){o.remove(n,r)}else{n.push(`-${r}`)}}t.default.enable(n.join(","))}}r.GitLogger=GitLogger},6086:(e,r,n)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.hasBranchDeletionError=r.parseBranchDeletions=void 0;const t=n(3755);const o=n(847);const s=/(\S+)\s+\(\S+\s([^)]+)\)/;const i=/^error[^']+'([^']+)'/m;const u=[new o.LineParser(s,(e,[r,n])=>{const o=t.branchDeletionSuccess(r,n);e.all.push(o);e.branches[r]=o}),new o.LineParser(i,(e,[r])=>{const n=t.branchDeletionFailure(r);e.errors.push(n);e.all.push(n);e.branches[r]=n})];const c=e=>{return o.parseStringResponse(new t.BranchDeletionBatch,u,e)};r.parseBranchDeletions=c;function hasBranchDeletionError(e,r){return r===o.ExitCodes.ERROR&&i.test(e)}r.hasBranchDeletionError=hasBranchDeletionError},9264:(e,r,n)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.parseBranchSummary=void 0;const t=n(4446);const o=n(847);const s=[new o.LineParser(/^(\*\s)?\((?:HEAD )?detached (?:from|at) (\S+)\)\s+([a-z0-9]+)\s(.*)$/,(e,[r,n,t,o])=>{e.push(!!r,true,n,t,o)}),new o.LineParser(/^(\*\s)?(\S+)\s+([a-z0-9]+)\s(.*)$/,(e,[r,n,t,o])=>{e.push(!!r,false,n,t,o)})];function parseBranchSummary(e){return o.parseStringResponse(new t.BranchSummaryResult,s,e)}r.parseBranchSummary=parseBranchSummary},3026:(e,r,n)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.parseCommitResult=void 0;const t=n(847);const o=[new t.LineParser(/\[([^\s]+) ([^\]]+)/,(e,[r,n])=>{e.branch=r;e.commit=n}),new t.LineParser(/\s*Author:\s(.+)/i,(e,[r])=>{const n=r.split("<");const t=n.pop();if(!t||!t.includes("@")){return}e.author={email:t.substr(0,t.length-1),name:n.join("<").trim()}}),new t.LineParser(/(\d+)[^,]*(?:,\s*(\d+)[^,]*)(?:,\s*(\d+))/g,(e,[r,n,t])=>{e.summary.changes=parseInt(r,10)||0;e.summary.insertions=parseInt(n,10)||0;e.summary.deletions=parseInt(t,10)||0}),new t.LineParser(/^(\d+)[^,]*(?:,\s*(\d+)[^(]+\(([+-]))?/,(e,[r,n,t])=>{e.summary.changes=parseInt(r,10)||0;const o=parseInt(n,10)||0;if(t==="-"){e.summary.deletions=o}else if(t==="+"){e.summary.insertions=o}})];function parseCommitResult(e){const r={author:null,branch:"",commit:"",summary:{changes:0,insertions:0,deletions:0}};return t.parseStringResponse(r,o,e)}r.parseCommitResult=parseCommitResult},2024:(e,r,n)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.parseDiffResult=void 0;const t=n(4781);function parseDiffResult(e){const r=e.trim().split("\n");const n=new t.DiffSummary;readSummaryLine(n,r.pop());for(let e=0,t=r.length;e ([0-9.]+) ([a-z]+)$/);if(n){r.push({file:n[1].trim(),before:+n[2],after:+n[3],binary:true});return true}return false}},6254:(e,r,n)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.parseFetchResult=void 0;const t=n(847);const o=[new t.LineParser(/From (.+)$/,(e,[r])=>{e.remote=r}),new t.LineParser(/\* \[new branch]\s+(\S+)\s*-> (.+)$/,(e,[r,n])=>{e.branches.push({name:r,tracking:n})}),new t.LineParser(/\* \[new tag]\s+(\S+)\s*-> (.+)$/,(e,[r,n])=>{e.tags.push({name:r,tracking:n})})];function parseFetchResult(e,r){const n={raw:e,remote:null,branches:[],tags:[]};return t.parseStringResponse(n,o,e,r)}r.parseFetchResult=parseFetchResult},9729:(e,r,n)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.createListLogSummaryParser=r.SPLITTER=r.COMMIT_BOUNDARY=r.START_BOUNDARY=void 0;const t=n(847);const o=n(2024);r.START_BOUNDARY="òòòòòò ";r.COMMIT_BOUNDARY=" òò";r.SPLITTER=" ò ";const s=["hash","date","message","refs","author_name","author_email"];function lineBuilder(e,r){return r.reduce((r,n,t)=>{r[n]=e[t]||"";return r},Object.create({diff:null}))}function createListLogSummaryParser(e=r.SPLITTER,n=s){return function(s){const i=t.toLinesWithContent(s,true,r.START_BOUNDARY).map(function(t){const s=t.trim().split(r.COMMIT_BOUNDARY);const i=lineBuilder(s[0].trim().split(e),n);if(s.length>1&&!!s[1].trim()){i.diff=o.parseDiffResult(s[1])}return i});return{all:i,latest:i.length&&i[0]||null,total:i.length}}}r.createListLogSummaryParser=createListLogSummaryParser},6412:(e,r,n)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.parseMergeDetail=r.parseMergeResult=void 0;const t=n(1651);const o=n(847);const s=n(5658);const i=[new o.LineParser(/^Auto-merging\s+(.+)$/,(e,[r])=>{e.merges.push(r)}),new o.LineParser(/^CONFLICT\s+\((.+)\): Merge conflict in (.+)$/,(e,[r,n])=>{e.conflicts.push(new t.MergeSummaryConflict(r,n))}),new o.LineParser(/^CONFLICT\s+\((.+\/delete)\): (.+) deleted in (.+) and/,(e,[r,n,o])=>{e.conflicts.push(new t.MergeSummaryConflict(r,n,{deleteRef:o}))}),new o.LineParser(/^CONFLICT\s+\((.+)\):/,(e,[r])=>{e.conflicts.push(new t.MergeSummaryConflict(r,null))}),new o.LineParser(/^Automatic merge failed;\s+(.+)$/,(e,[r])=>{e.result=r})];const u=(e,n)=>{return Object.assign(r.parseMergeDetail(e,n),s.parsePullResult(e,n))};r.parseMergeResult=u;const c=e=>{return o.parseStringResponse(new t.MergeSummaryDetail,i,e)};r.parseMergeDetail=c},7444:(e,r,n)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.parseMoveResult=void 0;const t=n(847);const o=[new t.LineParser(/^Renaming (.+) to (.+)$/,(e,[r,n])=>{e.moves.push({from:r,to:n})})];function parseMoveResult(e){return t.parseStringResponse({moves:[]},o,e)}r.parseMoveResult=parseMoveResult},5658:(e,r,n)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.parsePullResult=r.parsePullDetail=void 0;const t=n(3567);const o=n(847);const s=n(2661);const i=/^\s*(.+?)\s+\|\s+\d+\s*(\+*)(-*)/;const u=/(\d+)\D+((\d+)\D+\(\+\))?(\D+(\d+)\D+\(-\))?/;const c=/^(create|delete) mode \d+ (.+)/;const a=[new o.LineParser(i,(e,[r,n,t])=>{e.files.push(r);if(n){e.insertions[r]=n.length}if(t){e.deletions[r]=t.length}}),new o.LineParser(u,(e,[r,,n,,t])=>{if(n!==undefined||t!==undefined){e.summary.changes=+r||0;e.summary.insertions=+n||0;e.summary.deletions=+t||0;return true}return false}),new o.LineParser(c,(e,[r,n])=>{o.append(e.files,n);o.append(r==="create"?e.created:e.deleted,n)})];const f=(e,r)=>{return o.parseStringResponse(new t.PullSummary,a,e,r)};r.parsePullDetail=f;const l=(e,n)=>{return Object.assign(new t.PullSummary,r.parsePullDetail(e,n),s.parseRemoteMessages(e,n))};r.parsePullResult=l},8530:(e,r,n)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.parsePushDetail=r.parsePushResult=void 0;const t=n(847);const o=n(2661);function pushResultPushedItem(e,r,n){const t=n.includes("deleted");const o=n.includes("tag")||/^refs\/tags/.test(e);const s=!n.includes("new");return{deleted:t,tag:o,branch:!o,new:!s,alreadyUpdated:s,local:e,remote:r}}const s=[new t.LineParser(/^Pushing to (.+)$/,(e,[r])=>{e.repo=r}),new t.LineParser(/^updating local tracking ref '(.+)'/,(e,[r])=>{e.ref=Object.assign(Object.assign({},e.ref||{}),{local:r})}),new t.LineParser(/^[*-=]\s+([^:]+):(\S+)\s+\[(.+)]$/,(e,[r,n,t])=>{e.pushed.push(pushResultPushedItem(r,n,t))}),new t.LineParser(/^Branch '([^']+)' set up to track remote branch '([^']+)' from '([^']+)'/,(e,[r,n,t])=>{e.branch=Object.assign(Object.assign({},e.branch||{}),{local:r,remote:n,remoteName:t})}),new t.LineParser(/^([^:]+):(\S+)\s+([a-z0-9]+)\.\.([a-z0-9]+)$/,(e,[r,n,t,o])=>{e.update={head:{local:r,remote:n},hash:{from:t,to:o}}})];const i=(e,n)=>{const t=r.parsePushDetail(e,n);const s=o.parseRemoteMessages(e,n);return Object.assign(Object.assign({},t),s)};r.parsePushResult=i;const u=(e,r)=>{return t.parseStringResponse({pushed:[]},s,e,r)};r.parsePushDetail=u},2661:(e,r,n)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.RemoteMessageSummary=r.parseRemoteMessages=void 0;const t=n(847);const o=n(3565);const s=[new t.RemoteLineParser(/^remote:\s*(.+)$/,(e,[r])=>{e.remoteMessages.all.push(r.trim());return false}),...o.remoteMessagesObjectParsers,new t.RemoteLineParser([/create a (?:pull|merge) request/i,/\s(https?:\/\/\S+)$/],(e,[r])=>{e.remoteMessages.pullRequestUrl=r}),new t.RemoteLineParser([/found (\d+) vulnerabilities.+\(([^)]+)\)/i,/\s(https?:\/\/\S+)$/],(e,[r,n,o])=>{e.remoteMessages.vulnerabilities={count:t.asNumber(r),summary:n,url:o}})];function parseRemoteMessages(e,r){return t.parseStringResponse({remoteMessages:new RemoteMessageSummary},s,r)}r.parseRemoteMessages=parseRemoteMessages;class RemoteMessageSummary{constructor(){this.all=[]}}r.RemoteMessageSummary=RemoteMessageSummary},3565:(e,r,n)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.remoteMessagesObjectParsers=void 0;const t=n(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 r=/^\s*(\d+)/.exec(e);const n=/delta (\d+)/i.exec(e);return{count:t.asNumber(r&&r[1]||"0"),delta:t.asNumber(n&&n[1]||"0")}}r.remoteMessagesObjectParsers=[new t.RemoteLineParser(/^remote:\s*(enumerating|counting|compressing) objects: (\d+),/i,(e,[r,n])=>{const o=r.toLowerCase();const s=objectEnumerationResult(e.remoteMessages);Object.assign(s,{[o]:t.asNumber(n)})}),new t.RemoteLineParser(/^remote:\s*(enumerating|counting|compressing) objects: \d+% \(\d+\/(\d+)\),/i,(e,[r,n])=>{const o=r.toLowerCase();const s=objectEnumerationResult(e.remoteMessages);Object.assign(s,{[o]:t.asNumber(n)})}),new t.RemoteLineParser(/total ([^,]+), reused ([^,]+), pack-reused (\d+)/i,(e,[r,n,o])=>{const s=objectEnumerationResult(e.remoteMessages);s.total=asObjectCount(r);s.reused=asObjectCount(n);s.packReused=t.asNumber(o)})]},3755:(e,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.isSingleBranchDeleteFailure=r.branchDeletionFailure=r.branchDeletionSuccess=r.BranchDeletionBatch=void 0;class BranchDeletionBatch{constructor(){this.all=[];this.branches={};this.errors=[]}get success(){return!this.errors.length}}r.BranchDeletionBatch=BranchDeletionBatch;function branchDeletionSuccess(e,r){return{branch:e,hash:r,success:true}}r.branchDeletionSuccess=branchDeletionSuccess;function branchDeletionFailure(e){return{branch:e,hash:null,success:false}}r.branchDeletionFailure=branchDeletionFailure;function isSingleBranchDeleteFailure(e){return e.success}r.isSingleBranchDeleteFailure=isSingleBranchDeleteFailure},4446:(e,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.BranchSummaryResult=void 0;class BranchSummaryResult{constructor(){this.all=[];this.branches={};this.current="";this.detached=false}push(e,r,n,t,o){if(e){this.detached=r;this.current=n}this.all.push(n);this.branches[n]={current:e,name:n,commit:t,label:o}}}r.BranchSummaryResult=BranchSummaryResult},9926:(e,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.parseCheckIgnore=void 0;const n=e=>{return e.split(/\n/g).map(e=>e.trim()).filter(e=>!!e)};r.parseCheckIgnore=n},5689:(e,r,n)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.cleanSummaryParser=r.CleanResponse=void 0;const t=n(847);class CleanResponse{constructor(e){this.dryRun=e;this.paths=[];this.files=[];this.folders=[]}}r.CleanResponse=CleanResponse;const o=/^[a-z]+\s*/i;const s=/^[a-z]+\s+[a-z]+\s*/i;const i=/\/$/;function cleanSummaryParser(e,r){const n=new CleanResponse(e);const u=e?s:o;t.toLinesWithContent(r).forEach(e=>{const r=e.replace(u,"");n.paths.push(r);(i.test(r)?n.folders:n.files).push(r)});return n}r.cleanSummaryParser=cleanSummaryParser},7219:(e,r,n)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.configListParser=r.ConfigList=void 0;const t=n(847);class ConfigList{constructor(){this.files=[];this.values=Object.create(null)}get all(){if(!this._all){this._all=this.files.reduce((e,r)=>{return Object.assign(e,this.values[r])},{})}return this._all}addFile(e){if(!(e in this.values)){const r=t.last(this.files);this.values[e]=r?Object.create(this.values[r]):{};this.files.push(e)}return this.values[e]}addValue(e,r,n){const t=this.addFile(e);if(!t.hasOwnProperty(r)){t[r]=n}else if(Array.isArray(t[r])){t[r].push(n)}else{t[r]=[t[r],n]}this._all=undefined}}r.ConfigList=ConfigList;function configListParser(e){const r=new ConfigList;const n=e.split("\0");for(let e=0,o=n.length-1;e{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.DiffSummary=void 0;class DiffSummary{constructor(){this.changed=0;this.deletions=0;this.insertions=0;this.files=[]}}r.DiffSummary=DiffSummary},860:(e,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.FileStatusSummary=r.fromPathRegex=void 0;r.fromPathRegex=/^(.+) -> (.+)$/;class FileStatusSummary{constructor(e,n,t){this.path=e;this.index=n;this.working_dir=t;if("R"===n+t){const n=r.fromPathRegex.exec(e)||[null,e,e];this.from=n[1]||"";this.path=n[2]||""}}}r.FileStatusSummary=FileStatusSummary},9999:(e,r,n)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.parseGetRemotesVerbose=r.parseGetRemotes=void 0;const t=n(847);function parseGetRemotes(e){const r={};forEach(e,([e])=>r[e]={name:e});return Object.values(r)}r.parseGetRemotes=parseGetRemotes;function parseGetRemotesVerbose(e){const r={};forEach(e,([e,n,t])=>{if(!r.hasOwnProperty(e)){r[e]={name:e,refs:{fetch:"",push:""}}}if(t&&n){r[e].refs[t.replace(/[^a-z]/g,"")]=n}});return Object.values(r)}r.parseGetRemotesVerbose=parseGetRemotesVerbose;function forEach(e,r){t.forEachLineWithContent(e,e=>r(e.split(/\s+/)))}},8690:(e,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.parseInit=r.InitSummary=void 0;class InitSummary{constructor(e,r,n,t){this.bare=e;this.path=r;this.existing=n;this.gitDir=t}}r.InitSummary=InitSummary;const n=/^Init.+ repository in (.+)$/;const t=/^Rein.+ in (.+)$/;function parseInit(e,r,o){const s=String(o).trim();let i;if(i=n.exec(s)){return new InitSummary(e,r,false,i[1])}if(i=t.exec(s)){return new InitSummary(e,r,true,i[1])}let u="";const c=s.split(" ");while(c.length){const e=c.shift();if(e==="in"){u=c.join(" ");break}}return new InitSummary(e,r,/^re/i.test(s),u)}r.parseInit=parseInit},1651:(e,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.MergeSummaryDetail=r.MergeSummaryConflict=void 0;class MergeSummaryConflict{constructor(e,r=null,n){this.reason=e;this.file=r;this.meta=n}toString(){return`${this.file}:${this.reason}`}}r.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"}}r.MergeSummaryDetail=MergeSummaryDetail},3567:(e,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.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}}}r.PullSummary=PullSummary},6790:(e,r,n)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.parseStatusSummary=r.StatusSummary=void 0;const t=n(847);const o=n(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}}r.StatusSummary=StatusSummary;var s;(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"]=" "})(s||(s={}));function renamedFile(e){const r=/^(.+) -> (.+)$/.exec(e);if(!r){return{from:e,to:e}}return{from:String(r[1]),to:String(r[2])}}function parser(e,r,n){return[`${e}${r}`,n]}function conflicts(e,...r){return r.map(r=>parser(e,r,(e,r)=>t.append(e.conflicted,r)))}const i=new Map([parser(s.NONE,s.ADDED,(e,r)=>t.append(e.created,r)),parser(s.NONE,s.DELETED,(e,r)=>t.append(e.deleted,r)),parser(s.NONE,s.MODIFIED,(e,r)=>t.append(e.modified,r)),parser(s.ADDED,s.NONE,(e,r)=>t.append(e.created,r)&&t.append(e.staged,r)),parser(s.ADDED,s.MODIFIED,(e,r)=>t.append(e.created,r)&&t.append(e.staged,r)&&t.append(e.modified,r)),parser(s.DELETED,s.NONE,(e,r)=>t.append(e.deleted,r)&&t.append(e.staged,r)),parser(s.MODIFIED,s.NONE,(e,r)=>t.append(e.modified,r)&&t.append(e.staged,r)),parser(s.MODIFIED,s.MODIFIED,(e,r)=>t.append(e.modified,r)&&t.append(e.staged,r)),parser(s.RENAMED,s.NONE,(e,r)=>{t.append(e.renamed,renamedFile(r))}),parser(s.RENAMED,s.MODIFIED,(e,r)=>{const n=renamedFile(r);t.append(e.renamed,n);t.append(e.modified,n.to)}),parser(s.UNTRACKED,s.UNTRACKED,(e,r)=>t.append(e.not_added,r)),...conflicts(s.ADDED,s.ADDED,s.UNMERGED),...conflicts(s.DELETED,s.DELETED,s.UNMERGED),...conflicts(s.UNMERGED,s.ADDED,s.DELETED,s.UNMERGED),["##",(e,r)=>{const n=/ahead (\d+)/;const t=/behind (\d+)/;const o=/^(.+?(?=(?:\.{3}|\s|$)))/;const s=/\.{3}(\S*)/;const i=/\son\s([\S]+)$/;let u;u=n.exec(r);e.ahead=u&&+u[1]||0;u=t.exec(r);e.behind=u&&+u[1]||0;u=o.exec(r);e.current=u&&u[1];u=s.exec(r);e.tracking=u&&u[1];u=i.exec(r);e.current=u&&u[1]||e.current}]]);const u=function(e){const r=e.trim().split("\n");const n=new StatusSummary;for(let e=0,t=r.length;e{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.parseTagList=r.TagList=void 0;class TagList{constructor(e,r){this.all=e;this.latest=r}}r.TagList=TagList;const n=function(e,r=false){const n=e.split("\n").map(trimmed).filter(Boolean);if(!r){n.sort(function(e,r){const n=e.split(".");const t=r.split(".");if(n.length===1||t.length===1){return singleSorted(toNumber(n[0]),toNumber(t[0]))}for(let e=0,r=Math.max(n.length,t.length);ee.indexOf(".")>=0);return new TagList(n,t)};r.parseTagList=n;function singleSorted(e,r){const n=isNaN(e);const t=isNaN(r);if(n!==t){return n?1:-1}return n?sorted(e,r):0}function sorted(e,r){return e===r?0:e>r?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,r,n){"use strict";var t=this&&this.__awaiter||function(e,r,n,t){function adopt(e){return e instanceof n?e:new n(function(r){r(e)})}return new(n||(n=Promise))(function(n,o){function fulfilled(e){try{step(t.next(e))}catch(e){o(e)}}function rejected(e){try{step(t["throw"](e))}catch(e){o(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((t=t.apply(e,r||[])).next())})};Object.defineProperty(r,"__esModule",{value:true});r.GitExecutorChain=void 0;const o=n(3129);const s=n(4732);const i=n(2815);const u=n(6676);const c=n(847);class GitExecutorChain{constructor(e,r){this._executor=e;this._scheduler=r;this._chain=Promise.resolve();this._queue=new u.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 t(this,void 0,void 0,function*(){const r=yield this._scheduler.next();const n=()=>this._queue.complete(e);try{const{logger:t}=this._queue.attempt(e);return yield i.isEmptyTask(e)?this.attemptEmptyTask(e,t):this.attemptRemoteTask(e,t)}catch(r){throw this.onFatalException(e,r)}finally{n();r()}})}onFatalException(e,r){const n=r instanceof s.GitError?Object.assign(r,{task:e}):new s.GitError(e,r&&String(r));this._chain=Promise.resolve();this._queue.fatal(n);return n}attemptRemoteTask(e,r){return t(this,void 0,void 0,function*(){const n=yield this.gitResponse(this.binary,e.commands,this.outputHandler,r.step("SPAWN"));const t=yield this.handleTaskData(e,n,r.step("HANDLE"));r(`passing response to task's parser as a %s`,e.format);if(i.isBufferTask(e)){return c.callTaskParser(e.parser,t)}return c.callTaskParser(e.parser,t.asStrings())})}attemptEmptyTask(e,r){return t(this,void 0,void 0,function*(){r(`empty task bypassing child process to call to task's parser`);return e.parser()})}handleTaskData({onError:e,concatStdErr:r},{exitCode:n,stdOut:t,stdErr:o},s){return new Promise((i,u)=>{s(`Preparing to handle process response exitCode=%d stdOut=`,n);if(n&&o.length&&e){s.info(`exitCode=%s handling with custom error handler`);s(`concatenate stdErr to stdOut: %j`,r);return e(n,Buffer.concat([...r?t:[],...o]).toString("utf-8"),e=>{s.info(`custom error handler treated as success`);s(`custom error returned a %s`,c.objectToString(e));i(new c.GitOutputStreams(Buffer.isBuffer(e)?e:Buffer.from(String(e)),Buffer.concat(o)))},u)}if(n&&o.length){s.info(`exitCode=%s treated as error when then child process has written to stdErr`);return u(Buffer.concat(o).toString("utf-8"))}if(r){s(`concatenating stdErr onto stdOut before processing`);s(`stdErr: $O`,o);t.push(...o)}s.info(`retrieving task output complete`);i(new c.GitOutputStreams(Buffer.concat(t),Buffer.concat(o)))})}gitResponse(e,r,n,s){return t(this,void 0,void 0,function*(){const t=s.sibling("output");const i={cwd:this.cwd,env:this.env,windowsHide:true};return new Promise(u=>{const c=[];const a=[];let f=false;function attemptClose(e,r="retry"){if(f||a.length||c.length){s.info(`exitCode=%s event=%s`,e,r);u({stdOut:c,stdErr:a,exitCode:e});f=true;t.destroy()}if(!f){f=true;setTimeout(()=>attemptClose(e,"deferred"),50);s("received %s event before content on stdOut/stdErr",r)}}s.info(`%s %o`,e,r);s("%O",i);const l=o.spawn(e,r,i);l.stdout.on("data",onDataReceived(c,"stdOut",s,t.step("stdOut")));l.stderr.on("data",onDataReceived(a,"stdErr",s,t.step("stdErr")));l.on("error",onErrorReceived(a,s));l.on("close",e=>attemptClose(e,"close"));l.on("exit",e=>attemptClose(e,"exit"));if(n){s(`Passing child process stdOut/stdErr to custom outputHandler`);n(e,l.stdout,l.stderr,[...r])}})})}}r.GitExecutorChain=GitExecutorChain;function onErrorReceived(e,r){return n=>{r(`[ERROR] child process exception %o`,n);e.push(Buffer.from(String(n.stack),"ascii"))}}function onDataReceived(e,r,n,t){return o=>{n(`%s received %L bytes`,r,o);t(`%B`,o);e.push(o)}}},4701:(e,r,n)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.GitExecutor=void 0;const t=n(8543);class GitExecutor{constructor(e="git",r,n){this.binary=e;this.cwd=r;this._scheduler=n;this._chain=new t.GitExecutorChain(this,this._scheduler)}chain(){return new t.GitExecutorChain(this,this._scheduler)}push(e){return this._chain.push(e)}}r.GitExecutor=GitExecutor},941:(e,r,n)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.gitP=void 0;const t=n(5131);const o=["customBinary","env","outputHandler","silent"];const s=["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}=n(1949);function gitP(...e){let r;let n=Promise.resolve();try{r=i(...e)}catch(e){n=Promise.reject(e)}function builderReturn(){return t}function chainReturn(){return n}const t=[...o,...s].reduce((e,n)=>{const t=s.includes(n);const o=t?asyncWrapper(n,r):syncWrapper(n,r,e);const i=t?chainReturn:builderReturn;Object.defineProperty(e,n,{enumerable:false,configurable:false,value:r?o:i});return e},{});return t;function asyncWrapper(e,r){return function(...t){if(typeof t[t.length]==="function"){throw new TypeError("Promise interface requires that handlers are not supplied inline, "+"trailing function not allowed in call to "+e)}return n.then(function(){return new Promise(function(n,o){const s=(e,r)=>{if(e){return o(toError(e))}n(r)};t.push(s);r[e].apply(r,t)})})}}function syncWrapper(e,r,n){return(...t)=>{r[e](...t);return n}}}r.gitP=gitP;function toError(e){if(e instanceof Error){return e}if(typeof e==="string"){return new Error(e)}return new t.GitResponseError(e)}},3421:(e,r,n)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.Scheduler=void 0;const t=n(847);const o=n(9819);const s=n(7178);const i=s.createLogger("","scheduler");const u=(()=>{let e=0;return()=>{e++;const{promise:r,done:n}=o.createDeferred();return{promise:r,done:n,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=t.append(this.running,this.pending.shift());i(`Attempting id=%s`,e.id);e.done(()=>{i(`Completing id=`,e.id);t.remove(this.running,e);this.schedule()})}next(){const{promise:e,id:r}=t.append(this.pending,u());i(`Scheduling id=%s`,r);this.schedule();return e}}r.Scheduler=Scheduler},6676:(e,r,n)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.TasksPendingQueue=void 0;const t=n(7178);const o=n(4732);class TasksPendingQueue{constructor(e="GitExecutor"){this.logLabel=e;this._queue=new Map}withProgress(e){return this._queue.get(e)}createProgress(e){const r=TasksPendingQueue.getName(e.commands[0]);const n=t.createLogger(this.logLabel,r);return{task:e,logger:n,name:r}}push(e){const r=this.createProgress(e);r.logger("Adding task to the queue, commands = %o",e.commands);this._queue.set(e,r);return r}fatal(e){for(const[r,{logger:n}]of Array.from(this._queue.entries())){if(r===e.task){n.info(`Failed %o`,e);n(`Fatal exception, any as-yet un-started tasks run through this executor will not be attempted`)}else{n.info(`A fatal exception occurred in a previous task, the queue has been purged: %o`,e.message)}this.complete(r)}if(this._queue.size!==0){throw new Error(`Queue size should be zero after fatal: ${this._queue.size}`)}}complete(e){const r=this.withProgress(e);if(r){r.logger.destroy();this._queue.delete(e)}}attempt(e){const r=this.withProgress(e);if(!r){throw new o.GitError(undefined,"TasksPendingQueue: attempt called for an unknown task")}r.logger("Starting task");return r}static getName(e="empty"){return`task:${e}:${++TasksPendingQueue.counter}`}}r.TasksPendingQueue=TasksPendingQueue;TasksPendingQueue.counter=0},8850:(e,r,n)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.taskCallback=void 0;const t=n(4732);const o=n(847);function taskCallback(e,r,n=o.NOOP){const s=e=>{n(null,e)};const i=r=>{if((r===null||r===void 0?void 0:r.task)===e){if(r instanceof t.GitResponseError){return n(addDeprecationNoticeToError(r))}n(r)}};r.then(s,i)}r.taskCallback=taskCallback;function addDeprecationNoticeToError(e){let r=e=>{console.warn(`simple-git deprecation notice: accessing GitResponseError.${e} should be GitResponseError.git.${e}, this will no longer be available in version 3`);r=o.NOOP};return Object.create(e,Object.getOwnPropertyNames(e.git).reduce(descriptorReducer,{}));function descriptorReducer(n,t){if(t in e){return n}n[t]={enumerable:false,configurable:false,get(){r(t);return e.git[t]}};return n}}},17:(e,r,n)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.deleteBranchTask=r.deleteBranchesTask=r.branchLocalTask=r.branchTask=r.containsDeleteBranchCommand=void 0;const t=n(5131);const o=n(6086);const s=n(9264);function containsDeleteBranchCommand(e){const r=["-d","-D","--delete"];return e.some(e=>r.includes(e))}r.containsDeleteBranchCommand=containsDeleteBranchCommand;function branchTask(e){const r=containsDeleteBranchCommand(e);const n=["branch",...e];if(n.length===1){n.push("-a")}if(!n.includes("-v")){n.splice(1,0,"-v")}return{format:"utf-8",commands:n,parser(e,n){if(r){return o.parseBranchDeletions(e,n).all[0]}return s.parseBranchSummary(e)}}}r.branchTask=branchTask;function branchLocalTask(){const e=s.parseBranchSummary;return{format:"utf-8",commands:["branch","-v"],parser:e}}r.branchLocalTask=branchLocalTask;function deleteBranchesTask(e,r=false){return{format:"utf-8",commands:["branch","-v",r?"-D":"-d",...e],parser(e,r){return o.parseBranchDeletions(e,r)},onError(e,r,n,t){if(!o.hasBranchDeletionError(r,e)){return t(r)}n(r)},concatStdErr:true}}r.deleteBranchesTask=deleteBranchesTask;function deleteBranchTask(e,r=false){const n={format:"utf-8",commands:["branch","-v",r?"-D":"-d",e],parser(r,n){return o.parseBranchDeletions(r,n).branches[e]},onError(e,r,s,i){if(!o.hasBranchDeletionError(r,e)){return i(r)}throw new t.GitResponseError(n.parser(r,""),r)},concatStdErr:true};return n}r.deleteBranchTask=deleteBranchTask},221:(e,r,n)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.checkIsBareRepoTask=r.checkIsRepoRootTask=r.checkIsRepoTask=r.CheckRepoActions=void 0;const t=n(847);var o;(function(e){e["BARE"]="bare";e["IN_TREE"]="tree";e["IS_REPO_ROOT"]="root"})(o=r.CheckRepoActions||(r.CheckRepoActions={}));const s=(e,r,n,o)=>{if(e===t.ExitCodes.UNCLEAN&&isNotRepoMessage(r)){return n("false")}o(r)};const i=e=>{return e.trim()==="true"};function checkIsRepoTask(e){switch(e){case o.BARE:return checkIsBareRepoTask();case o.IS_REPO_ROOT:return checkIsRepoRootTask()}const r=["rev-parse","--is-inside-work-tree"];return{commands:r,format:"utf-8",onError:s,parser:i}}r.checkIsRepoTask=checkIsRepoTask;function checkIsRepoRootTask(){const e=["rev-parse","--git-dir"];return{commands:e,format:"utf-8",onError:s,parser(e){return/^\.(git)?$/.test(e.trim())}}}r.checkIsRepoRootTask=checkIsRepoRootTask;function checkIsBareRepoTask(){const e=["rev-parse","--is-bare-repository"];return{commands:e,format:"utf-8",onError:s,parser:i}}r.checkIsBareRepoTask=checkIsBareRepoTask;function isNotRepoMessage(e){return/(Not a git repository|Kein Git-Repository)/i.test(e)}},4386:(e,r,n)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.isCleanOptionsArray=r.cleanTask=r.cleanWithOptionsTask=r.CleanOptions=r.CONFIG_ERROR_UNKNOWN_OPTION=r.CONFIG_ERROR_MODE_REQUIRED=r.CONFIG_ERROR_INTERACTIVE_MODE=void 0;const t=n(5689);const o=n(847);const s=n(2815);r.CONFIG_ERROR_INTERACTIVE_MODE="Git clean interactive mode is not supported";r.CONFIG_ERROR_MODE_REQUIRED='Git clean mode parameter ("n" or "f") is required';r.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=r.CleanOptions||(r.CleanOptions={}));const u=new Set(["i",...o.asStringArray(Object.values(i))]);function cleanWithOptionsTask(e,n){const{cleanMode:t,options:o,valid:i}=getCleanOptions(e);if(!t){return s.configurationErrorTask(r.CONFIG_ERROR_MODE_REQUIRED)}if(!i.options){return s.configurationErrorTask(r.CONFIG_ERROR_UNKNOWN_OPTION+JSON.stringify(e))}o.push(...n);if(o.some(isInteractiveMode)){return s.configurationErrorTask(r.CONFIG_ERROR_INTERACTIVE_MODE)}return cleanTask(t,o)}r.cleanWithOptionsTask=cleanWithOptionsTask;function cleanTask(e,r){const n=["clean",`-${e}`,...r];return{commands:n,format:"utf-8",parser(r){return t.cleanSummaryParser(e===i.DRY_RUN,r)}}}r.cleanTask=cleanTask;function isCleanOptionsArray(e){return Array.isArray(e)&&e.every(e=>u.has(e))}r.isCleanOptionsArray=isCleanOptionsArray;function getCleanOptions(e){let r;let n=[];let t={cleanMode:false,options:true};e.replace(/[^a-z]i/g,"").split("").forEach(e=>{if(isCleanMode(e)){r=e;t.cleanMode=true}else{t.options=t.options&&isKnownOption(n[n.length]=`-${e}`)}});return{cleanMode:r,options:n,valid:t}}function isCleanMode(e){return e===i.FORCE||e===i.DRY_RUN}function isKnownOption(e){return/^-[a-z]$/i.test(e)&&u.has(e.charAt(1))}function isInteractiveMode(e){if(/^-[^\-]/.test(e)){return e.indexOf("i")>0}return e==="--interactive"}},3173:(e,r,n)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.cloneMirrorTask=r.cloneTask=void 0;const t=n(2815);const o=n(847);function cloneTask(e,r,n){const o=["clone",...n];if(typeof e==="string"){o.push(e)}if(typeof r==="string"){o.push(r)}return t.straightThroughStringTask(o)}r.cloneTask=cloneTask;function cloneMirrorTask(e,r,n){o.append(n,"--mirror");return cloneTask(e,r,n)}r.cloneMirrorTask=cloneMirrorTask},5494:(e,r,n)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.commitTask=void 0;const t=n(3026);function commitTask(e,r,n){const o=["commit",...e.flatMap(e=>["-m",e]),...r,...n];return{commands:o,format:"utf-8",parser:t.parseCommitResult}}r.commitTask=commitTask},7597:(e,r,n)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.listConfigTask=r.addConfigTask=void 0;const t=n(7219);function addConfigTask(e,r,n=false){const t=["config","--local"];if(n){t.push("--add")}t.push(e,r);return{commands:t,format:"utf-8",parser(e){return e}}}r.addConfigTask=addConfigTask;function listConfigTask(){return{commands:["config","--list","--show-origin","--null"],format:"utf-8",parser(e){return t.configListParser(e)}}}r.listConfigTask=listConfigTask},9241:(e,r,n)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.diffSummaryTask=void 0;const t=n(2024);function diffSummaryTask(e){return{commands:["diff","--stat=4096",...e],format:"utf-8",parser(e){return t.parseDiffResult(e)}}}r.diffSummaryTask=diffSummaryTask},8823:(e,r,n)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.fetchTask=void 0;const t=n(6254);function fetchTask(e,r,n){const o=["fetch",...n];if(e&&r){o.push(e,r)}return{commands:o,format:"utf-8",parser:t.parseFetchResult}}r.fetchTask=fetchTask},8199:(e,r,n)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.hashObjectTask=void 0;const t=n(2815);function hashObjectTask(e,r){const n=["hash-object",e];if(r){n.push("-w")}return t.straightThroughStringTask(n,true)}r.hashObjectTask=hashObjectTask},6016:(e,r,n)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.initTask=void 0;const t=n(8690);const o="--bare";function hasBareCommand(e){return e.includes(o)}function initTask(e=false,r,n){const s=["init",...n];if(e&&!hasBareCommand(s)){s.splice(1,0,o)}return{commands:s,concatStdErr:false,format:"utf-8",parser(e){return t.parseInit(s.includes("--bare"),r,e)}}}r.initTask=initTask},8627:(e,r,n)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.logTask=r.parseLogOptions=void 0;const t=n(9729);const o=n(847);const s=new Set(["--pretty","max-count","maxCount","n","file","format","from","to","splitter","symmetric","multiLine","strictDate"]);function prettyFormat(e,r){const n=[];const t=[];Object.entries(e).forEach(([e,r])=>{n.push(e);t.push(r)});return[n,t.join(r)]}function userOptions(e){return Object.fromEntries(Object.entries(e).filter(([e])=>!s.has(e)))}function parseLogOptions(e={},r=[]){const n=e.splitter||t.SPLITTER;const s=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,u]=prettyFormat(s,n);const c=[];const a=[`--pretty=format:${t.START_BOUNDARY}${u}${t.COMMIT_BOUNDARY}`,...r];const f=e.n||e["max-count"]||e.maxCount;if(f){a.push(`--max-count=${f}`)}if(e.from&&e.to){const r=e.symmetric!==false?"...":"..";c.push(`${e.from}${r}${e.to}`)}if(e.file){c.push("--follow",e.file)}o.appendTaskOptions(userOptions(e),a);return{fields:i,splitter:n,commands:[...a,...c]}}r.parseLogOptions=parseLogOptions;function logTask(e,r,n){return{commands:["log",...n],format:"utf-8",parser:t.createListLogSummaryParser(e,r)}}r.logTask=logTask},8829:(e,r,n)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.mergeTask=void 0;const t=n(4732);const o=n(6412);const s=n(2815);function mergeTask(e){if(!e.length){return s.configurationErrorTask("Git.merge requires at least one option")}return{commands:["merge",...e],format:"utf-8",parser(e,r){const n=o.parseMergeResult(e,r);if(n.failed){throw new t.GitResponseError(n)}return n}}}r.mergeTask=mergeTask},6520:(e,r,n)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.moveTask=void 0;const t=n(7444);const o=n(847);function moveTask(e,r){return{commands:["mv","-v",...o.asArray(e),r],format:"utf-8",parser:t.parseMoveResult}}r.moveTask=moveTask},4636:(e,r,n)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.pullTask=void 0;const t=n(5658);function pullTask(e,r,n){const o=["pull",...n];if(e&&r){o.splice(1,0,e,r)}return{commands:o,format:"utf-8",parser(e,r){return t.parsePullResult(e,r)}}}r.pullTask=pullTask},1435:(e,r,n)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.pushTask=r.pushTagsTask=void 0;const t=n(8530);const o=n(847);function pushTagsTask(e={},r){o.append(r,"--tags");return pushTask(e,r)}r.pushTagsTask=pushTagsTask;function pushTask(e={},r){const n=["push",...r];if(e.branch){n.splice(1,0,e.branch)}if(e.remote){n.splice(1,0,e.remote)}o.remove(n,"-v");o.append(n,"--verbose");o.append(n,"--porcelain");return{commands:n,format:"utf-8",parser:t.parsePushResult}}r.pushTask=pushTask},9866:(e,r,n)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.removeRemoteTask=r.remoteTask=r.listRemotesTask=r.getRemotesTask=r.addRemoteTask=void 0;const t=n(9999);const o=n(2815);function addRemoteTask(e,r,n=[]){return o.straightThroughStringTask(["remote","add",...n,e,r])}r.addRemoteTask=addRemoteTask;function getRemotesTask(e){const r=["remote"];if(e){r.push("-v")}return{commands:r,format:"utf-8",parser:e?t.parseGetRemotesVerbose:t.parseGetRemotes}}r.getRemotesTask=getRemotesTask;function listRemotesTask(e=[]){const r=[...e];if(r[0]!=="ls-remote"){r.unshift("ls-remote")}return o.straightThroughStringTask(r)}r.listRemotesTask=listRemotesTask;function remoteTask(e=[]){const r=[...e];if(r[0]!=="remote"){r.unshift("remote")}return o.straightThroughStringTask(r)}r.remoteTask=remoteTask;function removeRemoteTask(e){return o.straightThroughStringTask(["remote","remove",e])}r.removeRemoteTask=removeRemoteTask},2377:(e,r,n)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.getResetMode=r.resetTask=r.ResetMode=void 0;const t=n(2815);var o;(function(e){e["MIXED"]="mixed";e["SOFT"]="soft";e["HARD"]="hard";e["MERGE"]="merge";e["KEEP"]="keep"})(o=r.ResetMode||(r.ResetMode={}));const s=Array.from(Object.values(o));function resetTask(e,r){const n=["reset"];if(isValidResetMode(e)){n.push(`--${e}`)}n.push(...r);return t.straightThroughStringTask(n)}r.resetTask=resetTask;function getResetMode(e){if(isValidResetMode(e)){return e}switch(typeof e){case"string":case"undefined":return o.SOFT}return}r.getResetMode=getResetMode;function isValidResetMode(e){return s.includes(e)}},810:(e,r,n)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.stashListTask=void 0;const t=n(9729);const o=n(8627);function stashListTask(e={},r){const n=o.parseLogOptions(e);const s=t.createListLogSummaryParser(n.splitter,n.fields);return{commands:["stash","list",...n.commands,...r],format:"utf-8",parser:s}}r.stashListTask=stashListTask},9197:(e,r,n)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.statusTask=void 0;const t=n(6790);function statusTask(e){return{format:"utf-8",commands:["status","--porcelain","-b","-u",...e],parser(e){return t.parseStatusSummary(e)}}}r.statusTask=statusTask},8772:(e,r,n)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.updateSubModuleTask=r.subModuleTask=r.initSubModuleTask=r.addSubModuleTask=void 0;const t=n(2815);function addSubModuleTask(e,r){return subModuleTask(["add",e,r])}r.addSubModuleTask=addSubModuleTask;function initSubModuleTask(e){return subModuleTask(["init",...e])}r.initSubModuleTask=initSubModuleTask;function subModuleTask(e){const r=[...e];if(r[0]!=="submodule"){r.unshift("submodule")}return t.straightThroughStringTask(r)}r.subModuleTask=subModuleTask;function updateSubModuleTask(e){return subModuleTask(["update",...e])}r.updateSubModuleTask=updateSubModuleTask},8540:(e,r,n)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.addAnnotatedTagTask=r.addTagTask=r.tagListTask=void 0;const t=n(4539);function tagListTask(e=[]){const r=e.some(e=>/^--sort=/.test(e));return{format:"utf-8",commands:["tag","-l",...e],parser(e){return t.parseTagList(e,r)}}}r.tagListTask=tagListTask;function addTagTask(e){return{format:"utf-8",commands:["tag",e],parser(){return{name:e}}}}r.addTagTask=addTagTask;function addAnnotatedTagTask(e,r){return{format:"utf-8",commands:["tag","-a","-m",r,e],parser(){return{name:e}}}}r.addAnnotatedTagTask=addAnnotatedTagTask},2815:(e,r,n)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.isEmptyTask=r.isBufferTask=r.straightThroughStringTask=r.configurationErrorTask=r.adhocExecTask=r.EMPTY_COMMANDS=void 0;const t=n(740);r.EMPTY_COMMANDS=[];function adhocExecTask(e){return{commands:r.EMPTY_COMMANDS,format:"utf-8",parser:e}}r.adhocExecTask=adhocExecTask;function configurationErrorTask(e){return{commands:r.EMPTY_COMMANDS,format:"utf-8",parser(){throw typeof e==="string"?new t.TaskConfigurationError(e):e}}}r.configurationErrorTask=configurationErrorTask;function straightThroughStringTask(e,r=false){return{commands:e,format:"utf-8",parser(e){return r?String(e).trim():e}}}r.straightThroughStringTask=straightThroughStringTask;function isBufferTask(e){return e.format==="buffer"}r.isBufferTask=isBufferTask;function isEmptyTask(e){return!e.commands.length}r.isEmptyTask=isEmptyTask},7366:(e,r,n)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.filterHasLength=r.filterFunction=r.filterPlainObject=r.filterStringOrStringArray=r.filterStringArray=r.filterString=r.filterPrimitives=r.filterArray=r.filterType=void 0;const t=n(8237);function filterType(e,r,n){if(r(e)){return e}return arguments.length>2?n:undefined}r.filterType=filterType;const o=e=>{return Array.isArray(e)};r.filterArray=o;function filterPrimitives(e,r){return/number|string|boolean/.test(typeof e)&&(!r||!r.includes(typeof e))}r.filterPrimitives=filterPrimitives;const s=e=>{return typeof e==="string"};r.filterString=s;const i=e=>{return Array.isArray(e)&&e.every(r.filterString)};r.filterStringArray=i;const u=e=>{return r.filterString(e)||Array.isArray(e)&&e.every(r.filterString)};r.filterStringOrStringArray=u;function filterPlainObject(e){return!!e&&t.objectToString(e)==="[object Object]"}r.filterPlainObject=filterPlainObject;function filterFunction(e){return typeof e==="function"}r.filterFunction=filterFunction;const c=e=>{if(e==null||"number|boolean|function".includes(typeof e)){return false}return Array.isArray(e)||typeof e==="string"||typeof e.length==="number"};r.filterHasLength=c},2185:(e,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.ExitCodes=void 0;var n;(function(e){e[e["SUCCESS"]=0]="SUCCESS";e[e["ERROR"]=1]="ERROR";e[e["UNCLEAN"]=128]="UNCLEAN"})(n=r.ExitCodes||(r.ExitCodes={}))},6578:(e,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.GitOutputStreams=void 0;class GitOutputStreams{constructor(e,r){this.stdOut=e;this.stdErr=r}asStrings(){return new GitOutputStreams(this.stdOut.toString("utf8"),this.stdErr.toString("utf8"))}}r.GitOutputStreams=GitOutputStreams},847:function(e,r,n){"use strict";var t=this&&this.__createBinding||(Object.create?function(e,r,n,t){if(t===undefined)t=n;Object.defineProperty(e,t,{enumerable:true,get:function(){return r[n]}})}:function(e,r,n,t){if(t===undefined)t=n;e[t]=r[n]});var o=this&&this.__exportStar||function(e,r){for(var n in e)if(n!=="default"&&!Object.prototype.hasOwnProperty.call(r,n))t(r,e,n)};Object.defineProperty(r,"__esModule",{value:true});o(n(7366),r);o(n(2185),r);o(n(6578),r);o(n(9536),r);o(n(5218),r);o(n(3546),r);o(n(1351),r);o(n(8237),r)},9536:(e,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.RemoteLineParser=r.LineParser=void 0;class LineParser{constructor(e,r){this.matches=[];this.parse=((e,r)=>{this.resetMatches();if(!this._regExp.every((r,n)=>this.addMatch(r,n,e(n)))){return false}return this.useMatches(r,this.prepareMatches())!==false});this._regExp=Array.isArray(e)?e:[e];if(r){this.useMatches=r}}useMatches(e,r){throw new Error(`LineParser:useMatches not implemented`)}resetMatches(){this.matches.length=0}prepareMatches(){return this.matches}addMatch(e,r,n){const t=n&&e.exec(n);if(t){this.pushMatch(r,t)}return!!t}pushMatch(e,r){this.matches.push(...r.slice(1))}}r.LineParser=LineParser;class RemoteLineParser extends LineParser{addMatch(e,r,n){return/^remote:\s/.test(String(n))&&super.addMatch(e,r,n)}pushMatch(e,r){if(e>0||r.length>1){super.pushMatch(e,r)}}}r.RemoteLineParser=RemoteLineParser},5218:(e,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.createInstanceConfig=void 0;const n={binary:"git",maxConcurrentProcesses:5};function createInstanceConfig(...e){const r=process.cwd();const t=Object.assign(Object.assign({baseDir:r},n),...e.filter(e=>typeof e==="object"&&e));t.baseDir=t.baseDir||r;return t}r.createInstanceConfig=createInstanceConfig},3546:(e,r,n)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.trailingFunctionArgument=r.trailingOptionsArgument=r.getTrailingOptions=r.appendTaskOptions=void 0;const t=n(7366);const o=n(8237);function appendTaskOptions(e,r=[]){if(!t.filterPlainObject(e)){return r}return Object.keys(e).reduce((r,n)=>{const o=e[n];if(t.filterPrimitives(o,["boolean"])){r.push(n+"="+o)}else{r.push(n)}return r},r)}r.appendTaskOptions=appendTaskOptions;function getTrailingOptions(e,r=0,n=false){const t=[];for(let n=0,o=r<0?e.length:r;n{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.parseStringResponse=r.callTaskParser=void 0;const t=n(8237);function callTaskParser(e,r){return e(r.stdOut,r.stdErr)}r.callTaskParser=callTaskParser;function parseStringResponse(e,r,...n){n.forEach(n=>{for(let o=t.toLinesWithContent(n),s=0,i=o.length;s{if(s+e>=i){return}return o[s+e]};r.some(({parse:r})=>r(n,e))}});return e}r.parseStringResponse=parseStringResponse},8237:(e,r,n)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.asNumber=r.asStringArray=r.asArray=r.objectToString=r.remove=r.append=r.folderExists=r.forEachLineWithContent=r.toLinesWithContent=r.last=r.first=r.splitOn=r.isUserFunction=r.asFunction=r.NOOP=void 0;const t=n(4751);const o=()=>{};r.NOOP=o;function asFunction(e){return typeof e==="function"?e:r.NOOP}r.asFunction=asFunction;function isUserFunction(e){return typeof e==="function"&&e!==r.NOOP}r.isUserFunction=isUserFunction;function splitOn(e,r){const n=e.indexOf(r);if(n<=0){return[e,""]}return[e.substr(0,n),e.substr(n+1)]}r.splitOn=splitOn;function first(e,r=0){return isArrayLike(e)&&e.length>r?e[r]:undefined}r.first=first;function last(e,r=0){if(isArrayLike(e)&&e.length>r){return e[e.length-1-r]}}r.last=last;function isArrayLike(e){return!!(e&&typeof e.length==="number")}function toLinesWithContent(e,r=true,n="\n"){return e.split(n).reduce((e,n)=>{const t=r?n.trim():n;if(t){e.push(t)}return e},[])}r.toLinesWithContent=toLinesWithContent;function forEachLineWithContent(e,r){return toLinesWithContent(e,true).map(e=>r(e))}r.forEachLineWithContent=forEachLineWithContent;function folderExists(e){return t.exists(e,t.FOLDER)}r.folderExists=folderExists;function append(e,r){if(Array.isArray(e)){if(!e.includes(r)){e.push(r)}}else{e.add(r)}return r}r.append=append;function remove(e,r){if(Array.isArray(e)){const n=e.indexOf(r);if(n>=0){e.splice(n,1)}}else{e.delete(r)}return r}r.remove=remove;r.objectToString=Object.prototype.toString.call.bind(Object.prototype.toString);function asArray(e){return Array.isArray(e)?e:[e]}r.asArray=asArray;function asStringArray(e){return asArray(e).map(String)}r.asStringArray=asStringArray;function asNumber(e,r=0){if(e==null){return r}const n=parseInt(e,10);return isNaN(n)?r:n}r.asNumber=asNumber},9318:(e,r,n)=>{"use strict";const t=n(2087);const o=n(1621);const s=process.env;let i;if(o("no-color")||o("no-colors")||o("color=false")){i=false}else if(o("color")||o("colors")||o("color=true")||o("color=always")){i=true}if("FORCE_COLOR"in s){i=s.FORCE_COLOR.length===0||parseInt(s.FORCE_COLOR,10)!==0}function translateLevel(e){if(e===0){return false}return{level:e,hasBasic:true,has256:e>=2,has16m:e>=3}}function supportsColor(e){if(i===false){return 0}if(o("color=16m")||o("color=full")||o("color=truecolor")){return 3}if(o("color=256")){return 2}if(e&&!e.isTTY&&i!==true){return 0}const r=i?1:0;if(process.platform==="win32"){const e=t.release().split(".");if(Number(process.versions.node.split(".")[0])>=8&&Number(e[0])>=10&&Number(e[2])>=10586){return Number(e[2])>=14931?3:2}return 1}if("CI"in s){if(["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(e=>e in s)||s.CI_NAME==="codeship"){return 1}return r}if("TEAMCITY_VERSION"in s){return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(s.TEAMCITY_VERSION)?1:0}if(s.COLORTERM==="truecolor"){return 3}if("TERM_PROGRAM"in s){const e=parseInt((s.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(s.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}if(/-256(color)?$/i.test(s.TERM)){return 2}if(/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(s.TERM)){return 1}if("COLORTERM"in s){return 1}if(s.TERM==="dumb"){return r}return r}function getSupportLevel(e){const r=supportsColor(e);return translateLevel(r)}e.exports={supportsColor:getSupportLevel,stdout:getSupportLevel(process.stdout),stderr:getSupportLevel(process.stderr)}},399:function(e,r,n){"use strict";var t=this&&this.__awaiter||function(e,r,n,t){function adopt(e){return e instanceof n?e:new n(function(r){r(e)})}return new(n||(n=Promise))(function(n,o){function fulfilled(e){try{step(t.next(e))}catch(e){o(e)}}function rejected(e){try{step(t["throw"](e))}catch(e){o(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((t=t.apply(e,r||[])).next())})};var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:true});const s=n(2186);const i=o(n(5622));const u=o(n(1477));const c=o(n(1917));const a=n(2629);const f=i.default.join(process.cwd(),a.getInput("cwd")||"");const l=u.default({baseDir:f});console.log(`Running in ${f}`);(()=>t(void 0,void 0,void 0,function*(){var e;yield checkInputs().catch(s.setFailed);s.startGroup("Internal logs");s.info("> Staging files...");if(a.getInput("add")){s.info("> Adding files...");yield add()}else s.info("> No files to add.");if(a.getInput("remove")){s.info("> Removing files...");yield remove()}else s.info("> No files to remove.");s.info("> Checking for uncommitted changes in the git working tree...");const r=(yield l.diffSummary(["--cached"])).files.length;if(r>0){s.info(`> Found ${r} changed files.`);yield l.addConfig("user.email",a.getInput("author_email"),undefined,a.log).addConfig("user.name",a.getInput("author_name"),undefined,a.log);s.debug("> Current git config\n"+JSON.stringify((yield l.listConfig()).all,null,2));yield l.fetch(["--tags","--force"],a.log);s.info("> Switching/creating branch...");yield l.checkout(a.getInput("branch"),undefined,a.log).catch(()=>l.checkoutLocalBranch(a.getInput("branch"),a.log));s.info("> Pulling from remote...");yield l.fetch(undefined,a.log).pull(undefined,undefined,{[a.getInput("pull_strategy")]:null},a.log);s.info("> Re-staging files...");if(a.getInput("add"))yield add({ignoreErrors:true});if(a.getInput("remove"))yield remove({ignoreErrors:true});s.info("> Creating commit...");yield l.commit(a.getInput("message"),undefined,Object.assign({"--author":`"${a.getInput("author_name")} <${a.getInput("author_email")}>"`},a.getInput("signoff")?{"--signoff":null}:{}),(e,r)=>{if(r)a.setOutput("committed","true");return a.log(e,r)});if(a.getInput("tag")){s.info("> Tagging commit...");yield l.tag(a.getInput("tag").split(" "),(e,r)=>{if(r)a.setOutput("tagged","true");return a.log(e,r)}).then(e=>{a.setOutput("tagged","true");return a.log(null,e)}).catch(e=>s.setFailed(e))}else s.info("> No tag info provided.");const n=(e=a.parseBool(a.getInput("push")))!==null&&e!==void 0?e:a.getInput("push");if(n){s.info("> Pushing commit to repo...");if(n===true){s.debug(`Running: git push origin ${a.getInput("branch")} --set-upstream`);yield l.push("origin",a.getInput("branch"),{"--set-upstream":null},(e,r)=>{if(r)a.setOutput("pushed","true");return a.log(e,r)})}else{s.debug(`Running: git push ${n}`);yield l.push(undefined,undefined,n.split(" "),(e,r)=>{if(r)a.setOutput("pushed","true");return a.log(e,r)})}if(a.getInput("tag")){s.info("> Pushing tags to repo...");yield l.pushTags("origin",undefined,(e,r)=>a.log(undefined,e||r)).catch(()=>{s.info("> Tag push failed: deleting remote tag and re-pushing...");return l.push(undefined,undefined,{"--delete":null,origin:null,[a.getInput("tag").split(" ").filter(e=>!e.startsWith("-"))[0]]:null},a.log).pushTags("origin",undefined,a.log)})}else s.info("> No tags to push.")}else s.info("> Not pushing anything.");s.endGroup();s.info("> Task completed.")}else{s.endGroup();s.info("> Working tree clean. Nothing to commit.")}}))().then(logOutputs).catch(e=>{s.endGroup();logOutputs();s.setFailed(e)});function checkInputs(){var e,r,n,o;return t(this,void 0,void 0,function*(){function setInput(e,r){if(r)return process.env[`INPUT_${e.toUpperCase()}`]=r;else return delete process.env[`INPUT_${e.toUpperCase()}`]}function setDefault(e,r){if(!a.getInput(e))setInput(e,r);return a.getInput(e)}const t=process.env.GITHUB_EVENT_PATH,i=t&&require(t),u=(e=process.env.GITHUB_EVENT_NAME)===null||e===void 0?void 0:e.includes("pull_request"),c=u?(n=(r=i===null||i===void 0?void 0:i.pull_request)===null||r===void 0?void 0:r.head)===null||n===void 0?void 0:n.ref:(o=process.env.GITHUB_REF)===null||o===void 0?void 0:o.substring(11);if(!a.getInput("add")&&!a.getInput("remove"))throw new Error("Both 'add' and 'remove' are empty, the action has nothing to do.");if(a.getInput("add")){const e=parseInputArray(a.getInput("add"));if(e.length==1)s.info("Add input parsed as single string, running 1 git add command.");else if(e.length>1)s.info(`Add input parsed as string array, running ${e.length} git add commands.`);else s.setFailed("Add input: array length < 1")}if(a.getInput("remove")){const e=parseInputArray(a.getInput("remove"));if(e.length==1)s.info("Remove input parsed as single string, running 1 git rm command.");else if(e.length>1)s.info(`Remove input parsed as string array, running ${e.length} git rm commands.`);else s.setFailed("Remove input: array length < 1")}setDefault("author_name",`${process.env.GITHUB_ACTOR}`);setDefault("author_email",`${process.env.GITHUB_ACTOR}@users.noreply.github.com`);s.info(`> Using '${a.getInput("author_name")} <${a.getInput("author_email")}>' as author.`);setDefault("message",`Commit from GitHub Actions (${process.env.GITHUB_WORKFLOW})`);s.info(`> Using "${a.getInput("message")}" as commit message.`);const f=setDefault("branch",c||"");if(u)s.info(`> Running for a PR, the action will use '${f}' as ref.`);if(a.getInput("signoff")){const e=a.parseBool(a.getInput("signoff"));if(e===undefined)throw new Error(`"${a.getInput("signoff")}" is not a valid value for the 'signoff' input: only "true" and "false" are allowed.`);if(!e)setInput("signoff",undefined);s.debug(`Current signoff option: ${a.getInput("signoff")} (${typeof a.getInput("signoff")})`)}if(a.getInput("push")){const e=a.parseBool(a.getInput("push"));s.debug(`Current push option: '${a.getInput("push")}' (parsed as ${typeof e})`)}})}function add({logWarning:e=true,ignoreErrors:r=false}={}){return t(this,void 0,void 0,function*(){const n=a.getInput("add");if(!n)return[];const t=parseInputArray(n);const o=[];for(const n of t){o.push(yield l.add(n.split(" "),(e,n)=>a.log(r?null:e,n)).catch(t=>{if(r)return;if(t.message.includes("fatal: pathspec")&&t.message.includes("did not match any files")&&e)s.warning(`Add command did not match any file:\n git add ${n}`);else throw t}))}return o})}function remove({logWarning:e=true,ignoreErrors:r=false}={}){return t(this,void 0,void 0,function*(){const n=a.getInput("remove");if(!n)return[];const t=parseInputArray(n);const o=[];for(const n of t){o.push(yield l.rm(n.split(" "),(e,n)=>a.log(r?null:e,n)).catch(t=>{if(r)return;if(t.message.includes("fatal: pathspec")&&t.message.includes("did not match any files"))e&&s.warning(`Remove command did not match any file:\n git rm ${n}`);else throw t}))}return o})}function parseInputArray(e){try{const r=JSON.parse(e);if(r&&Array.isArray(r)&&r.every(e=>typeof e=="string")){s.debug(`Input parsed as JSON array of length ${r.length}`);return r}}catch(e){}try{const r=c.default.load(e);if(r&&Array.isArray(r)&&r.every(e=>typeof e=="string")){s.debug(`Input parsed as YAML array of length ${r.length}`);return r}}catch(e){}s.debug("Input parsed as single string");return[e]}function logOutputs(){s.startGroup("Outputs");for(const e in a.outputs){s.info(`${e}: ${a.outputs[e]}`)}s.endGroup()}},2629:function(e,r,n){"use strict";var t=this&&this.__createBinding||(Object.create?function(e,r,n,t){if(t===undefined)t=n;Object.defineProperty(e,t,{enumerable:true,get:function(){return r[n]}})}:function(e,r,n,t){if(t===undefined)t=n;e[t]=r[n]});var o=this&&this.__setModuleDefault||(Object.create?function(e,r){Object.defineProperty(e,"default",{enumerable:true,value:r})}:function(e,r){e["default"]=r});var s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n in e)if(n!=="default"&&Object.prototype.hasOwnProperty.call(e,n))t(r,e,n);o(r,e);return r};Object.defineProperty(r,"__esModule",{value:true});r.setOutput=r.parseBool=r.log=r.getInput=r.outputs=void 0;const i=s(n(2186));r.outputs={committed:"false",pushed:"false",tagged:"false"};function getInput(e){return i.getInput(e)}r.getInput=getInput;function log(e,r){if(r)console.log(r);if(e)i.error(e)}r.log=log;function parseBool(e){try{const r=JSON.parse(e);if(typeof r=="boolean")return r}catch(e){}}r.parseBool=parseBool;function setOutput(e,n){i.debug(`Setting output: ${e}=${n}`);r.outputs[e]=n;return i.setOutput(e,n)}r.setOutput=setOutput;for(const e in r.outputs)setOutput(e,r.outputs[e])},3129:e=>{"use strict";e.exports=require("child_process")},5747:e=>{"use strict";e.exports=require("fs")},2087:e=>{"use strict";e.exports=require("os")},5622:e=>{"use strict";e.exports=require("path")},3867:e=>{"use strict";e.exports=require("tty")},1669:e=>{"use strict";e.exports=require("util")}};var r={};function __nccwpck_require__(n){if(r[n]){return r[n].exports}var t=r[n]={exports:{}};var o=true;try{e[n].call(t.exports,t,t.exports,__nccwpck_require__);o=false}finally{if(o)delete r[n]}return t.exports}__nccwpck_require__.ab=__dirname+"/";return __nccwpck_require__(399)})(); \ No newline at end of file +module.exports=(()=>{var e={7351:function(e,r,n){"use strict";var t=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n in e)if(Object.hasOwnProperty.call(e,n))r[n]=e[n];r["default"]=e;return r};Object.defineProperty(r,"__esModule",{value:true});const o=t(n(2087));const s=n(5278);function issueCommand(e,r,n){const t=new Command(e,r,n);process.stdout.write(t.toString()+o.EOL)}r.issueCommand=issueCommand;function issue(e,r=""){issueCommand(e,{},r)}r.issue=issue;const i="::";class Command{constructor(e,r,n){if(!e){e="missing.command"}this.command=e;this.properties=r;this.message=n}toString(){let e=i+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let r=true;for(const n in this.properties){if(this.properties.hasOwnProperty(n)){const t=this.properties[n];if(t){if(r){r=false}else{e+=","}e+=`${n}=${escapeProperty(t)}`}}}}e+=`${i}${escapeData(this.message)}`;return e}}function escapeData(e){return s.toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}function escapeProperty(e){return s.toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}},2186:function(e,r,n){"use strict";var t=this&&this.__awaiter||function(e,r,n,t){function adopt(e){return e instanceof n?e:new n(function(r){r(e)})}return new(n||(n=Promise))(function(n,o){function fulfilled(e){try{step(t.next(e))}catch(e){o(e)}}function rejected(e){try{step(t["throw"](e))}catch(e){o(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((t=t.apply(e,r||[])).next())})};var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n in e)if(Object.hasOwnProperty.call(e,n))r[n]=e[n];r["default"]=e;return r};Object.defineProperty(r,"__esModule",{value:true});const s=n(7351);const i=n(717);const u=n(5278);const c=o(n(2087));const a=o(n(5622));var f;(function(e){e[e["Success"]=0]="Success";e[e["Failure"]=1]="Failure"})(f=r.ExitCode||(r.ExitCode={}));function exportVariable(e,r){const n=u.toCommandValue(r);process.env[e]=n;const t=process.env["GITHUB_ENV"]||"";if(t){const r="_GitHubActionsFileCommandDelimeter_";const t=`${e}<<${r}${c.EOL}${n}${c.EOL}${r}`;i.issueCommand("ENV",t)}else{s.issueCommand("set-env",{name:e},n)}}r.exportVariable=exportVariable;function setSecret(e){s.issueCommand("add-mask",{},e)}r.setSecret=setSecret;function addPath(e){const r=process.env["GITHUB_PATH"]||"";if(r){i.issueCommand("PATH",e)}else{s.issueCommand("add-path",{},e)}process.env["PATH"]=`${e}${a.delimiter}${process.env["PATH"]}`}r.addPath=addPath;function getInput(e,r){const n=process.env[`INPUT_${e.replace(/ /g,"_").toUpperCase()}`]||"";if(r&&r.required&&!n){throw new Error(`Input required and not supplied: ${e}`)}return n.trim()}r.getInput=getInput;function setOutput(e,r){s.issueCommand("set-output",{name:e},r)}r.setOutput=setOutput;function setCommandEcho(e){s.issue("echo",e?"on":"off")}r.setCommandEcho=setCommandEcho;function setFailed(e){process.exitCode=f.Failure;error(e)}r.setFailed=setFailed;function isDebug(){return process.env["RUNNER_DEBUG"]==="1"}r.isDebug=isDebug;function debug(e){s.issueCommand("debug",{},e)}r.debug=debug;function error(e){s.issue("error",e instanceof Error?e.toString():e)}r.error=error;function warning(e){s.issue("warning",e instanceof Error?e.toString():e)}r.warning=warning;function info(e){process.stdout.write(e+c.EOL)}r.info=info;function startGroup(e){s.issue("group",e)}r.startGroup=startGroup;function endGroup(){s.issue("endgroup")}r.endGroup=endGroup;function group(e,r){return t(this,void 0,void 0,function*(){startGroup(e);let n;try{n=yield r()}finally{endGroup()}return n})}r.group=group;function saveState(e,r){s.issueCommand("save-state",{name:e},r)}r.saveState=saveState;function getState(e){return process.env[`STATE_${e}`]||""}r.getState=getState},717:function(e,r,n){"use strict";var t=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n in e)if(Object.hasOwnProperty.call(e,n))r[n]=e[n];r["default"]=e;return r};Object.defineProperty(r,"__esModule",{value:true});const o=t(n(5747));const s=t(n(2087));const i=n(5278);function issueCommand(e,r){const n=process.env[`GITHUB_${e}`];if(!n){throw new Error(`Unable to find environment variable for file command ${e}`)}if(!o.existsSync(n)){throw new Error(`Missing file at path: ${n}`)}o.appendFileSync(n,`${i.toCommandValue(r)}${s.EOL}`,{encoding:"utf8"})}r.issueCommand=issueCommand},5278:(e,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});function toCommandValue(e){if(e===null||e===undefined){return""}else if(typeof e==="string"||e instanceof String){return e}return JSON.stringify(e)}r.toCommandValue=toCommandValue},4751:(e,r,n)=>{"use strict";function __export(e){for(var n in e)if(!r.hasOwnProperty(n))r[n]=e[n]}Object.defineProperty(r,"__esModule",{value:true});__export(n(2825))},2825:function(e,r,n){"use strict";var t=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:true});const o=n(5747);const s=t(n(8231));const i=s.default("@kwsites/file-exists");function check(e,r,n){i(`checking %s`,e);try{const t=o.statSync(e);if(t.isFile()&&r){i(`[OK] path represents a file`);return true}if(t.isDirectory()&&n){i(`[OK] path represents a directory`);return true}i(`[FAIL] path represents something other than a file or directory`);return false}catch(e){if(e.code==="ENOENT"){i(`[FAIL] path is not accessible: %o`,e);return false}i(`[FATAL] %o`,e);throw e}}function exists(e,n=r.READABLE){return check(e,(n&r.FILE)>0,(n&r.FOLDER)>0)}r.exists=exists;r.FILE=1;r.FOLDER=2;r.READABLE=r.FILE+r.FOLDER},9819:(e,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.createDeferred=r.deferred=void 0;function deferred(){let e;let r;let n="pending";const t=new Promise((n,t)=>{e=n;r=t});return{promise:t,done(r){if(n==="pending"){n="resolved";e(r)}},fail(e){if(n==="pending"){n="rejected";r(e)}},get fulfilled(){return n!=="pending"},get status(){return n}}}r.deferred=deferred;r.createDeferred=deferred;r.default=deferred},8222:(e,r,n)=>{r.log=log;r.formatArgs=formatArgs;r.save=save;r.load=load;r.useColors=useColors;r.storage=localstorage();r.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function useColors(){if(typeof window!=="undefined"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs)){return true}if(typeof navigator!=="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)){return false}return typeof document!=="undefined"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window!=="undefined"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator!=="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator!=="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function formatArgs(r){r[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+r[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff);if(!this.useColors){return}const n="color: "+this.color;r.splice(1,0,n,"color: inherit");let t=0;let o=0;r[0].replace(/%[a-zA-Z%]/g,e=>{if(e==="%%"){return}t++;if(e==="%c"){o=t}});r.splice(o,0,n)}function log(...e){return typeof console==="object"&&console.log&&console.log(...e)}function save(e){try{if(e){r.storage.setItem("debug",e)}else{r.storage.removeItem("debug")}}catch(e){}}function load(){let e;try{e=r.storage.getItem("debug")}catch(e){}if(!e&&typeof process!=="undefined"&&"env"in process){e=process.env.DEBUG}return e}function localstorage(){try{return localStorage}catch(e){}}e.exports=n(6243)(r);const{formatters:t}=e.exports;t.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},6243:(e,r,n)=>{function setup(e){createDebug.debug=createDebug;createDebug.default=createDebug;createDebug.coerce=coerce;createDebug.disable=disable;createDebug.enable=enable;createDebug.enabled=enabled;createDebug.humanize=n(900);Object.keys(e).forEach(r=>{createDebug[r]=e[r]});createDebug.instances=[];createDebug.names=[];createDebug.skips=[];createDebug.formatters={};function selectColor(e){let r=0;for(let n=0;n{if(r==="%%"){return r}s++;const o=createDebug.formatters[t];if(typeof o==="function"){const t=e[s];r=o.call(n,t);e.splice(s,1);s--}return r});createDebug.formatArgs.call(n,e);const i=n.log||createDebug.log;i.apply(n,e)}debug.namespace=e;debug.enabled=createDebug.enabled(e);debug.useColors=createDebug.useColors();debug.color=selectColor(e);debug.destroy=destroy;debug.extend=extend;if(typeof createDebug.init==="function"){createDebug.init(debug)}createDebug.instances.push(debug);return debug}function destroy(){const e=createDebug.instances.indexOf(this);if(e!==-1){createDebug.instances.splice(e,1);return true}return false}function extend(e,r){const n=createDebug(this.namespace+(typeof r==="undefined"?":":r)+e);n.log=this.log;return n}function enable(e){createDebug.save(e);createDebug.names=[];createDebug.skips=[];let r;const n=(typeof e==="string"?e:"").split(/[\s,]+/);const t=n.length;for(r=0;r"-"+e)].join(",");createDebug.enable("");return e}function enabled(e){if(e[e.length-1]==="*"){return true}let r;let n;for(r=0,n=createDebug.skips.length;r{if(typeof process==="undefined"||process.type==="renderer"||process.browser===true||process.__nwjs){e.exports=n(8222)}else{e.exports=n(5332)}},5332:(e,r,n)=>{const t=n(3867);const o=n(1669);r.init=init;r.log=log;r.formatArgs=formatArgs;r.save=save;r.load=load;r.useColors=useColors;r.colors=[6,2,3,4,5,1];try{const e=n(9318);if(e&&(e.stderr||e).level>=2){r.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221]}}catch(e){}r.inspectOpts=Object.keys(process.env).filter(e=>{return/^debug_/i.test(e)}).reduce((e,r)=>{const n=r.substring(6).toLowerCase().replace(/_([a-z])/g,(e,r)=>{return r.toUpperCase()});let t=process.env[r];if(/^(yes|on|true|enabled)$/i.test(t)){t=true}else if(/^(no|off|false|disabled)$/i.test(t)){t=false}else if(t==="null"){t=null}else{t=Number(t)}e[n]=t;return e},{});function useColors(){return"colors"in r.inspectOpts?Boolean(r.inspectOpts.colors):t.isatty(process.stderr.fd)}function formatArgs(r){const{namespace:n,useColors:t}=this;if(t){const t=this.color;const o="[3"+(t<8?t:"8;5;"+t);const s=` ${o};1m${n} `;r[0]=s+r[0].split("\n").join("\n"+s);r.push(o+"m+"+e.exports.humanize(this.diff)+"")}else{r[0]=getDate()+n+" "+r[0]}}function getDate(){if(r.inspectOpts.hideDate){return""}return(new Date).toISOString()+" "}function log(...e){return process.stderr.write(o.format(...e)+"\n")}function save(e){if(e){process.env.DEBUG=e}else{delete process.env.DEBUG}}function load(){return process.env.DEBUG}function init(e){e.inspectOpts={};const n=Object.keys(r.inspectOpts);for(let t=0;t{"use strict";e.exports=((e,r)=>{r=r||process.argv;const n=e.startsWith("-")?"":e.length===1?"-":"--";const t=r.indexOf(n+e);const o=r.indexOf("--");return t!==-1&&(o===-1?true:t{"use strict";var t=n(1161);var o=n(8866);function renamed(e,r){return function(){throw new Error("Function yaml."+e+" is removed in js-yaml 4. "+"Use yaml."+r+" instead, which is now safe by default.")}}e.exports.Type=n(6073);e.exports.Schema=n(1082);e.exports.FAILSAFE_SCHEMA=n(8562);e.exports.JSON_SCHEMA=n(1035);e.exports.CORE_SCHEMA=n(2011);e.exports.DEFAULT_SCHEMA=n(8759);e.exports.load=t.load;e.exports.loadAll=t.loadAll;e.exports.dump=o.dump;e.exports.YAMLException=n(8179);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,r){var n,t,o,s;if(r){s=Object.keys(r);for(n=0,t=s.length;n{"use strict";var t=n(6829);var o=n(8179);var s=n(8759);var i=Object.prototype.toString;var u=Object.prototype.hasOwnProperty;var c=65279;var a=9;var f=10;var l=13;var p=32;var h=33;var d=34;var g=35;var m=37;var b=38;var v=39;var C=42;var O=44;var T=45;var y=58;var E=61;var S=62;var k=63;var w=64;var A=91;var D=93;var F=96;var R=123;var M=124;var P=125;var j={};j[0]="\\0";j[7]="\\a";j[8]="\\b";j[9]="\\t";j[10]="\\n";j[11]="\\v";j[12]="\\f";j[13]="\\r";j[27]="\\e";j[34]='\\"';j[92]="\\\\";j[133]="\\N";j[160]="\\_";j[8232]="\\L";j[8233]="\\P";var L=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"];var I=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function compileStyleMap(e,r){var n,t,o,s,i,c,a;if(r===null)return{};n={};t=Object.keys(r);for(o=0,s=t.length;o=55296&&n<=56319&&r+1=56320&&t<=57343){return(n-55296)*1024+t-56320+65536}}return n}function needIndentIndicator(e){var r=/^\n* /;return r.test(e)}var N=1,$=2,x=3,U=4,Y=5;function chooseScalarStyle(e,r,n,t,o,s,i,u){var c;var a=0;var l=null;var p=false;var h=false;var d=t!==-1;var g=-1;var m=isPlainSafeFirst(codePointAt(e,0))&&isPlainSafeLast(codePointAt(e,e.length-1));if(r||i){for(c=0;c=65536?c+=2:c++){a=codePointAt(e,c);if(!isPrintable(a)){return Y}m=m&&isPlainSafe(a,l,u);l=a}}else{for(c=0;c=65536?c+=2:c++){a=codePointAt(e,c);if(a===f){p=true;if(d){h=h||c-g-1>t&&e[g+1]!==" ";g=c}}else if(!isPrintable(a)){return Y}m=m&&isPlainSafe(a,l,u);l=a}h=h||d&&(c-g-1>t&&e[g+1]!==" ")}if(!p&&!h){if(m&&!i&&!o(e)){return N}return s===B?Y:$}if(n>9&&needIndentIndicator(e)){return Y}if(!i){return h?U:x}return s===B?Y:$}function writeScalar(e,r,n,t,s){e.dump=function(){if(r.length===0){return e.quotingType===B?'""':"''"}if(!e.noCompatMode){if(L.indexOf(r)!==-1||I.test(r)){return e.quotingType===B?'"'+r+'"':"'"+r+"'"}}var i=e.indent*Math.max(1,n);var u=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-i);var c=t||e.flowLevel>-1&&n>=e.flowLevel;function testAmbiguity(r){return testImplicitResolving(e,r)}switch(chooseScalarStyle(r,c,e.indent,u,testAmbiguity,e.quotingType,e.forceQuotes&&!t,s)){case N:return r;case $:return"'"+r.replace(/'/g,"''")+"'";case x:return"|"+blockHeader(r,e.indent)+dropEndingNewline(indentString(r,i));case U:return">"+blockHeader(r,e.indent)+dropEndingNewline(indentString(foldString(r,u),i));case Y:return'"'+escapeString(r,u)+'"';default:throw new o("impossible error: invalid scalar style")}}()}function blockHeader(e,r){var n=needIndentIndicator(e)?String(r):"";var t=e[e.length-1]==="\n";var o=t&&(e[e.length-2]==="\n"||e==="\n");var s=o?"+":t?"":"-";return n+s+"\n"}function dropEndingNewline(e){return e[e.length-1]==="\n"?e.slice(0,-1):e}function foldString(e,r){var n=/(\n+)([^\n]*)/g;var t=function(){var t=e.indexOf("\n");t=t!==-1?t:e.length;n.lastIndex=t;return foldLine(e.slice(0,t),r)}();var o=e[0]==="\n"||e[0]===" ";var s;var i;while(i=n.exec(e)){var u=i[1],c=i[2];s=c[0]===" ";t+=u+(!o&&!s&&c!==""?"\n":"")+foldLine(c,r);o=s}return t}function foldLine(e,r){if(e===""||e[0]===" ")return e;var n=/ [^ ]/g;var t;var o=0,s,i=0,u=0;var c="";while(t=n.exec(e)){u=t.index;if(u-o>r){s=i>o?i:u;c+="\n"+e.slice(o,s);o=s+1}i=u}c+="\n";if(e.length-o>r&&i>o){c+=e.slice(o,i)+"\n"+e.slice(i+1)}else{c+=e.slice(o)}return c.slice(1)}function escapeString(e){var r="";var n=0;var t;for(var o=0;o=65536?o+=2:o++){n=codePointAt(e,o);t=j[n];if(!t&&isPrintable(n)){r+=e[o];if(n>=65536)r+=e[o+1]}else{r+=t||encodeHex(n)}}return r}function writeFlowSequence(e,r,n){var t="",o=e.tag,s,i,u;for(s=0,i=n.length;s1024)f+="? ";f+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" ");if(!writeNode(e,r,a,false,false)){continue}f+=e.dump;t+=f}e.tag=o;e.dump="{"+t+"}"}function writeBlockMapping(e,r,n,t){var s="",i=e.tag,u=Object.keys(n),c,a,l,p,h,d;if(e.sortKeys===true){u.sort()}else if(typeof e.sortKeys==="function"){u.sort(e.sortKeys)}else if(e.sortKeys){throw new o("sortKeys must be a boolean or a function")}for(c=0,a=u.length;c1024;if(h){if(e.dump&&f===e.dump.charCodeAt(0)){d+="?"}else{d+="? "}}d+=e.dump;if(h){d+=generateNextLine(e,r)}if(!writeNode(e,r+1,p,true,h)){continue}if(e.dump&&f===e.dump.charCodeAt(0)){d+=":"}else{d+=": "}d+=e.dump;s+=d}e.tag=i;e.dump=s||"{}"}function detectType(e,r,n){var t,s,c,a,f,l;s=n?e.explicitTypes:e.implicitTypes;for(c=0,a=s.length;c tag resolver accepts not "'+l+'" style')}e.dump=t}return true}}return false}function writeNode(e,r,n,t,s,u,c){e.tag=null;e.dump=n;if(!detectType(e,n,false)){detectType(e,n,true)}var a=i.call(e.dump);var f=t;var l;if(t){t=e.flowLevel<0||e.flowLevel>r}var p=a==="[object Object]"||a==="[object Array]",h,d;if(p){h=e.duplicates.indexOf(n);d=h!==-1}if(e.tag!==null&&e.tag!=="?"||d||e.indent!==2&&r>0){s=false}if(d&&e.usedDuplicates[h]){e.dump="*ref_"+h}else{if(p&&d&&!e.usedDuplicates[h]){e.usedDuplicates[h]=true}if(a==="[object Object]"){if(t&&Object.keys(e.dump).length!==0){writeBlockMapping(e,r,e.dump,s);if(d){e.dump="&ref_"+h+e.dump}}else{writeFlowMapping(e,r,e.dump);if(d){e.dump="&ref_"+h+" "+e.dump}}}else if(a==="[object Array]"){if(t&&e.dump.length!==0){if(e.noArrayIndent&&!c&&r>0){writeBlockSequence(e,r-1,e.dump,s)}else{writeBlockSequence(e,r,e.dump,s)}if(d){e.dump="&ref_"+h+e.dump}}else{writeFlowSequence(e,r,e.dump);if(d){e.dump="&ref_"+h+" "+e.dump}}}else if(a==="[object String]"){if(e.tag!=="?"){writeScalar(e,e.dump,r,u,f)}}else if(a==="[object Undefined]"){return false}else{if(e.skipInvalid)return false;throw new o("unacceptable kind of an object to dump "+a)}if(e.tag!==null&&e.tag!=="?"){l=encodeURI(e.tag[0]==="!"?e.tag.slice(1):e.tag).replace(/!/g,"%21");if(e.tag[0]==="!"){l="!"+l}else if(l.slice(0,18)==="tag:yaml.org,2002:"){l="!!"+l.slice(18)}else{l="!<"+l+">"}e.dump=l+" "+e.dump}}return true}function getDuplicateReferences(e,r){var n=[],t=[],o,s;inspectNode(e,n,t);for(o=0,s=t.length;o{"use strict";function formatError(e,r){var n="",t=e.reason||"(unknown reason)";if(!e.mark)return t;if(e.mark.name){n+='in "'+e.mark.name+'" '}n+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")";if(!r&&e.mark.snippet){n+="\n\n"+e.mark.snippet}return t+" "+n}function YAMLException(e,r){Error.call(this);this.name="YAMLException";this.reason=e;this.mark=r;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,r,n)=>{"use strict";var t=n(6829);var o=n(8179);var s=n(6975);var i=n(8759);var u=Object.prototype.hasOwnProperty;var c=1;var a=2;var f=3;var l=4;var p=1;var h=2;var d=3;var g=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/;var m=/[\x85\u2028\u2029]/;var b=/[,\[\]\{\}]/;var v=/^(?:!|!!|![a-z\-]+!)$/i;var C=/^(?:!|[^,\[\]\{\}])(?:%[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 r;if(48<=e&&e<=57){return e-48}r=e|32;if(97<=r&&r<=102){return r-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 O=new Array(256);var T=new Array(256);for(var y=0;y<256;y++){O[y]=simpleEscapeSequence(y)?1:0;T[y]=simpleEscapeSequence(y)}function State(e,r){this.input=e;this.filename=r["filename"]||null;this.schema=r["schema"]||i;this.onWarning=r["onWarning"]||null;this.legacy=r["legacy"]||false;this.json=r["json"]||false;this.listener=r["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,r){var n={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};n.snippet=s(n);return new o(r,n)}function throwError(e,r){throw generateError(e,r)}function throwWarning(e,r){if(e.onWarning){e.onWarning.call(null,generateError(e,r))}}var E={YAML:function handleYamlDirective(e,r,n){var t,o,s;if(e.version!==null){throwError(e,"duplication of %YAML directive")}if(n.length!==1){throwError(e,"YAML directive accepts exactly one argument")}t=/^([0-9]+)\.([0-9]+)$/.exec(n[0]);if(t===null){throwError(e,"ill-formed argument of the YAML directive")}o=parseInt(t[1],10);s=parseInt(t[2],10);if(o!==1){throwError(e,"unacceptable YAML version of the document")}e.version=n[0];e.checkLineBreaks=s<2;if(s!==1&&s!==2){throwWarning(e,"unsupported YAML version of the document")}},TAG:function handleTagDirective(e,r,n){var t,o;if(n.length!==2){throwError(e,"TAG directive accepts exactly two arguments")}t=n[0];o=n[1];if(!v.test(t)){throwError(e,"ill-formed tag handle (first argument) of the TAG directive")}if(u.call(e.tagMap,t)){throwError(e,'there is a previously declared suffix for "'+t+'" tag handle')}if(!C.test(o)){throwError(e,"ill-formed tag prefix (second argument) of the TAG directive")}try{o=decodeURIComponent(o)}catch(r){throwError(e,"tag prefix is malformed: "+o)}e.tagMap[t]=o}};function captureSegment(e,r,n,t){var o,s,i,u;if(r1){e.result+=t.repeat("\n",r-1)}}function readPlainScalar(e,r,n){var t,o,s,i,u,c,a,f,l=e.kind,p=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){o=e.input.charCodeAt(e.position+1);if(is_WS_OR_EOL(o)||n&&is_FLOW_INDICATOR(o)){return false}}e.kind="scalar";e.result="";s=i=e.position;u=false;while(h!==0){if(h===58){o=e.input.charCodeAt(e.position+1);if(is_WS_OR_EOL(o)||n&&is_FLOW_INDICATOR(o)){break}}else if(h===35){t=e.input.charCodeAt(e.position-1);if(is_WS_OR_EOL(t)){break}}else if(e.position===e.lineStart&&testDocumentSeparator(e)||n&&is_FLOW_INDICATOR(h)){break}else if(is_EOL(h)){c=e.line;a=e.lineStart;f=e.lineIndent;skipSeparationSpace(e,false,-1);if(e.lineIndent>=r){u=true;h=e.input.charCodeAt(e.position);continue}else{e.position=i;e.line=c;e.lineStart=a;e.lineIndent=f;break}}if(u){captureSegment(e,s,i,false);writeFoldedLines(e,e.line-c);s=i=e.position;u=false}if(!is_WHITE_SPACE(h)){i=e.position+1}h=e.input.charCodeAt(++e.position)}captureSegment(e,s,i,false);if(e.result){return true}e.kind=l;e.result=p;return false}function readSingleQuotedScalar(e,r){var n,t,o;n=e.input.charCodeAt(e.position);if(n!==39){return false}e.kind="scalar";e.result="";e.position++;t=o=e.position;while((n=e.input.charCodeAt(e.position))!==0){if(n===39){captureSegment(e,t,e.position,true);n=e.input.charCodeAt(++e.position);if(n===39){t=e.position;e.position++;o=e.position}else{return true}}else if(is_EOL(n)){captureSegment(e,t,o,true);writeFoldedLines(e,skipSeparationSpace(e,false,r));t=o=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++;o=e.position}}throwError(e,"unexpected end of the stream within a single quoted scalar")}function readDoubleQuotedScalar(e,r){var n,t,o,s,i,u;u=e.input.charCodeAt(e.position);if(u!==34){return false}e.kind="scalar";e.result="";e.position++;n=t=e.position;while((u=e.input.charCodeAt(e.position))!==0){if(u===34){captureSegment(e,n,e.position,true);e.position++;return true}else if(u===92){captureSegment(e,n,e.position,true);u=e.input.charCodeAt(++e.position);if(is_EOL(u)){skipSeparationSpace(e,false,r)}else if(u<256&&O[u]){e.result+=T[u];e.position++}else if((i=escapedHexLen(u))>0){o=i;s=0;for(;o>0;o--){u=e.input.charCodeAt(++e.position);if((i=fromHexCode(u))>=0){s=(s<<4)+i}else{throwError(e,"expected hexadecimal character")}}e.result+=charFromCodepoint(s);e.position++}else{throwError(e,"unknown escape sequence")}n=t=e.position}else if(is_EOL(u)){captureSegment(e,n,t,true);writeFoldedLines(e,skipSeparationSpace(e,false,r));n=t=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++;t=e.position}}throwError(e,"unexpected end of the stream within a double quoted scalar")}function readFlowCollection(e,r){var n=true,t,o,s,i=e.tag,u,a=e.anchor,f,l,p,h,d,g=Object.create(null),m,b,v,C;C=e.input.charCodeAt(e.position);if(C===91){l=93;d=false;u=[]}else if(C===123){l=125;d=true;u={}}else{return false}if(e.anchor!==null){e.anchorMap[e.anchor]=u}C=e.input.charCodeAt(++e.position);while(C!==0){skipSeparationSpace(e,true,r);C=e.input.charCodeAt(e.position);if(C===l){e.position++;e.tag=i;e.anchor=a;e.kind=d?"mapping":"sequence";e.result=u;return true}else if(!n){throwError(e,"missed comma between flow collection entries")}else if(C===44){throwError(e,"expected the node content, but found ','")}b=m=v=null;p=h=false;if(C===63){f=e.input.charCodeAt(e.position+1);if(is_WS_OR_EOL(f)){p=h=true;e.position++;skipSeparationSpace(e,true,r)}}t=e.line;o=e.lineStart;s=e.position;composeNode(e,r,c,false,true);b=e.tag;m=e.result;skipSeparationSpace(e,true,r);C=e.input.charCodeAt(e.position);if((h||e.line===t)&&C===58){p=true;C=e.input.charCodeAt(++e.position);skipSeparationSpace(e,true,r);composeNode(e,r,c,false,true);v=e.result}if(d){storeMappingPair(e,u,g,b,m,v,t,o,s)}else if(p){u.push(storeMappingPair(e,null,g,b,m,v,t,o,s))}else{u.push(m)}skipSeparationSpace(e,true,r);C=e.input.charCodeAt(e.position);if(C===44){n=true;C=e.input.charCodeAt(++e.position)}else{n=false}}throwError(e,"unexpected end of the stream within a flow collection")}function readBlockScalar(e,r){var n,o,s=p,i=false,u=false,c=r,a=0,f=false,l,g;g=e.input.charCodeAt(e.position);if(g===124){o=false}else if(g===62){o=true}else{return false}e.kind="scalar";e.result="";while(g!==0){g=e.input.charCodeAt(++e.position);if(g===43||g===45){if(p===s){s=g===43?d:h}else{throwError(e,"repeat of a chomping mode identifier")}}else if((l=fromDecimalCode(g))>=0){if(l===0){throwError(e,"bad explicit indentation width of a block scalar; it cannot be less than one")}else if(!u){c=r+l-1;u=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((!u||e.lineIndentc){c=e.lineIndent}if(is_EOL(g)){a++;continue}if(e.lineIndentr)&&c!==0){throwError(e,"bad indentation of a sequence entry")}else if(e.lineIndentr){if(v){i=e.line;u=e.lineStart;c=e.position}if(composeNode(e,r,l,true,o)){if(v){m=e.result}else{b=e.result}}if(!v){storeMappingPair(e,h,d,g,m,b,i,u,c);g=m=b=null}skipSeparationSpace(e,true,-1);O=e.input.charCodeAt(e.position)}if((e.line===s||e.lineIndent>r)&&O!==0){throwError(e,"bad indentation of a mapping entry")}else if(e.lineIndentr){h=1}else if(e.lineIndent===r){h=0}else if(e.lineIndentr){h=1}else if(e.lineIndent===r){h=0}else if(e.lineIndent tag; it should be "scalar", not "'+e.kind+'"')}for(m=0,b=e.implicitTypes.length;m")}if(e.result!==null&&C.kind!==e.kind){throwError(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+C.kind+'", not "'+e.kind+'"')}if(!C.resolve(e.result,e.tag)){throwError(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}else{e.result=C.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 r=e.position,n,t,o,s=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}s=true;i=e.input.charCodeAt(++e.position);n=e.position;while(i!==0&&!is_WS_OR_EOL(i)){i=e.input.charCodeAt(++e.position)}t=e.input.slice(n,e.position);o=[];if(t.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;n=e.position;while(i!==0&&!is_WS_OR_EOL(i)){i=e.input.charCodeAt(++e.position)}o.push(e.input.slice(n,e.position))}if(i!==0)readLineBreak(e);if(u.call(E,t)){E[t](e,t,o)}else{throwWarning(e,'unknown document directive "'+t+'"')}}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(s){throwError(e,"directives end mark is expected")}composeNode(e,e.lineIndent-1,l,false,true);skipSeparationSpace(e,true,-1);if(e.checkLineBreaks&&m.test(e.input.slice(r,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 t=n(8179);var o=n(6073);function compileList(e,r,n){var t=[];e[r].forEach(function(e){n.forEach(function(r,n){if(r.tag===e.tag&&r.kind===e.kind&&r.multi===e.multi){t.push(n)}});n.push(e)});return n.filter(function(e,r){return t.indexOf(r)===-1})}function compileMap(){var e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},r,n;function collectType(r){if(r.multi){e.multi[r.kind].push(r);e.multi["fallback"].push(r)}else{e[r.kind][r.tag]=e["fallback"][r.tag]=r}}for(r=0,n=arguments.length;r{"use strict";e.exports=n(1035)},8759:(e,r,n)=>{"use strict";e.exports=n(2011).extend({implicit:[n(9212),n(6104)],explicit:[n(7900),n(9046),n(6860),n(9548)]})},8562:(e,r,n)=>{"use strict";var t=n(1082);e.exports=new t({explicit:[n(3619),n(7283),n(6150)]})},1035:(e,r,n)=>{"use strict";e.exports=n(8562).extend({implicit:[n(721),n(4993),n(1615),n(2705)]})},6975:(e,r,n)=>{"use strict";var t=n(6829);function getLine(e,r,n,t,o){var s="";var i="";var u=Math.floor(o/2)-1;if(t-r>u){s=" ... ";r=t-u+s.length}if(n-t>u){i=" ...";n=t+u-i.length}return{str:s+e.slice(r,n).replace(/\t/g,"→")+i,pos:t-r+s.length}}function padStart(e,r){return t.repeat(" ",r-e.length)+e}function makeSnippet(e,r){r=Object.create(r||null);if(!e.buffer)return null;if(!r.maxLength)r.maxLength=79;if(typeof r.indent!=="number")r.indent=1;if(typeof r.linesBefore!=="number")r.linesBefore=3;if(typeof r.linesAfter!=="number")r.linesAfter=2;var n=/\r?\n|\r|\0/g;var o=[0];var s=[];var i;var u=-1;while(i=n.exec(e.buffer)){s.push(i.index);o.push(i.index+i[0].length);if(e.position<=i.index&&u<0){u=o.length-2}}if(u<0)u=o.length-1;var c="",a,f;var l=Math.min(e.line+r.linesAfter,s.length).toString().length;var p=r.maxLength-(r.indent+l+3);for(a=1;a<=r.linesBefore;a++){if(u-a<0)break;f=getLine(e.buffer,o[u-a],s[u-a],e.position-(o[u]-o[u-a]),p);c=t.repeat(" ",r.indent)+padStart((e.line-a+1).toString(),l)+" | "+f.str+"\n"+c}f=getLine(e.buffer,o[u],s[u],e.position,p);c+=t.repeat(" ",r.indent)+padStart((e.line+1).toString(),l)+" | "+f.str+"\n";c+=t.repeat("-",r.indent+l+3+f.pos)+"^"+"\n";for(a=1;a<=r.linesAfter;a++){if(u+a>=s.length)break;f=getLine(e.buffer,o[u+a],s[u+a],e.position-(o[u]-o[u+a]),p);c+=t.repeat(" ",r.indent)+padStart((e.line+a+1).toString(),l)+" | "+f.str+"\n"}return c.replace(/\n$/,"")}e.exports=makeSnippet},6073:(e,r,n)=>{"use strict";var t=n(8179);var o=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"];var s=["scalar","sequence","mapping"];function compileStyleAliases(e){var r={};if(e!==null){Object.keys(e).forEach(function(n){e[n].forEach(function(e){r[String(e)]=n})})}return r}function Type(e,r){r=r||{};Object.keys(r).forEach(function(r){if(o.indexOf(r)===-1){throw new t('Unknown option "'+r+'" is met in definition of "'+e+'" YAML type.')}});this.tag=e;this.kind=r["kind"]||null;this.resolve=r["resolve"]||function(){return true};this.construct=r["construct"]||function(e){return e};this.instanceOf=r["instanceOf"]||null;this.predicate=r["predicate"]||null;this.represent=r["represent"]||null;this.representName=r["representName"]||null;this.defaultStyle=r["defaultStyle"]||null;this.multi=r["multi"]||false;this.styleAliases=compileStyleAliases(r["styleAliases"]||null);if(s.indexOf(this.kind)===-1){throw new t('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}}e.exports=Type},7900:(e,r,n)=>{"use strict";var t=n(6073);var o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";function resolveYamlBinary(e){if(e===null)return false;var r,n,t=0,s=e.length,i=o;for(n=0;n64)continue;if(r<0)return false;t+=6}return t%8===0}function constructYamlBinary(e){var r,n,t=e.replace(/[\r\n=]/g,""),s=t.length,i=o,u=0,c=[];for(r=0;r>16&255);c.push(u>>8&255);c.push(u&255)}u=u<<6|i.indexOf(t.charAt(r))}n=s%4*6;if(n===0){c.push(u>>16&255);c.push(u>>8&255);c.push(u&255)}else if(n===18){c.push(u>>10&255);c.push(u>>2&255)}else if(n===12){c.push(u>>4&255)}return new Uint8Array(c)}function representYamlBinary(e){var r="",n=0,t,s,i=e.length,u=o;for(t=0;t>18&63];r+=u[n>>12&63];r+=u[n>>6&63];r+=u[n&63]}n=(n<<8)+e[t]}s=i%3;if(s===0){r+=u[n>>18&63];r+=u[n>>12&63];r+=u[n>>6&63];r+=u[n&63]}else if(s===2){r+=u[n>>10&63];r+=u[n>>4&63];r+=u[n<<2&63];r+=u[64]}else if(s===1){r+=u[n>>2&63];r+=u[n<<4&63];r+=u[64];r+=u[64]}return r}function isBinary(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}e.exports=new t("tag:yaml.org,2002:binary",{kind:"scalar",resolve:resolveYamlBinary,construct:constructYamlBinary,predicate:isBinary,represent:representYamlBinary})},4993:(e,r,n)=>{"use strict";var t=n(6073);function resolveYamlBoolean(e){if(e===null)return false;var r=e.length;return r===4&&(e==="true"||e==="True"||e==="TRUE")||r===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 t("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,r,n)=>{"use strict";var t=n(6829);var o=n(6073);var s=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(!s.test(e)||e[e.length-1]==="_"){return false}return true}function constructYamlFloat(e){var r,n;r=e.replace(/_/g,"").toLowerCase();n=r[0]==="-"?-1:1;if("+-".indexOf(r[0])>=0){r=r.slice(1)}if(r===".inf"){return n===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY}else if(r===".nan"){return NaN}return n*parseFloat(r,10)}var i=/^[-+]?[0-9]+e/;function representYamlFloat(e,r){var n;if(isNaN(e)){switch(r){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}}else if(Number.POSITIVE_INFINITY===e){switch(r){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}}else if(Number.NEGATIVE_INFINITY===e){switch(r){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}}else if(t.isNegativeZero(e)){return"-0.0"}n=e.toString(10);return i.test(n)?n.replace("e",".e"):n}function isFloat(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||t.isNegativeZero(e))}e.exports=new o("tag:yaml.org,2002:float",{kind:"scalar",resolve:resolveYamlFloat,construct:constructYamlFloat,predicate:isFloat,represent:representYamlFloat,defaultStyle:"lowercase"})},1615:(e,r,n)=>{"use strict";var t=n(6829);var o=n(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 r=e.length,n=0,t=false,o;if(!r)return false;o=e[n];if(o==="-"||o==="+"){o=e[++n]}if(o==="0"){if(n+1===r)return true;o=e[++n];if(o==="b"){n++;for(;n=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,r,n)=>{"use strict";var t=n(6073);e.exports=new t("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return e!==null?e:{}}})},6104:(e,r,n)=>{"use strict";var t=n(6073);function resolveYamlMerge(e){return e==="<<"||e===null}e.exports=new t("tag:yaml.org,2002:merge",{kind:"scalar",resolve:resolveYamlMerge})},721:(e,r,n)=>{"use strict";var t=n(6073);function resolveYamlNull(e){if(e===null)return true;var r=e.length;return r===1&&e==="~"||r===4&&(e==="null"||e==="Null"||e==="NULL")}function constructYamlNull(){return null}function isNull(e){return e===null}e.exports=new t("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,r,n)=>{"use strict";var t=n(6073);var o=Object.prototype.hasOwnProperty;var s=Object.prototype.toString;function resolveYamlOmap(e){if(e===null)return true;var r=[],n,t,i,u,c,a=e;for(n=0,t=a.length;n{"use strict";var t=n(6073);var o=Object.prototype.toString;function resolveYamlPairs(e){if(e===null)return true;var r,n,t,s,i,u=e;i=new Array(u.length);for(r=0,n=u.length;r{"use strict";var t=n(6073);e.exports=new t("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return e!==null?e:[]}})},9548:(e,r,n)=>{"use strict";var t=n(6073);var o=Object.prototype.hasOwnProperty;function resolveYamlSet(e){if(e===null)return true;var r,n=e;for(r in n){if(o.call(n,r)){if(n[r]!==null)return false}}return true}function constructYamlSet(e){return e!==null?e:{}}e.exports=new t("tag:yaml.org,2002:set",{kind:"mapping",resolve:resolveYamlSet,construct:constructYamlSet})},3619:(e,r,n)=>{"use strict";var t=n(6073);e.exports=new t("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return e!==null?e:""}})},9212:(e,r,n)=>{"use strict";var t=n(6073);var o=new RegExp("^([0-9][0-9][0-9][0-9])"+"-([0-9][0-9])"+"-([0-9][0-9])$");var s=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(o.exec(e)!==null)return true;if(s.exec(e)!==null)return true;return false}function constructYamlTimestamp(e){var r,n,t,i,u,c,a,f=0,l=null,p,h,d;r=o.exec(e);if(r===null)r=s.exec(e);if(r===null)throw new Error("Date resolve error");n=+r[1];t=+r[2]-1;i=+r[3];if(!r[4]){return new Date(Date.UTC(n,t,i))}u=+r[4];c=+r[5];a=+r[6];if(r[7]){f=r[7].slice(0,3);while(f.length<3){f+="0"}f=+f}if(r[9]){p=+r[10];h=+(r[11]||0);l=(p*60+h)*6e4;if(r[9]==="-")l=-l}d=new Date(Date.UTC(n,t,i,u,c,a,f));if(l)d.setTime(d.getTime()-l);return d}function representYamlTimestamp(e){return e.toISOString()}e.exports=new t("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:resolveYamlTimestamp,construct:constructYamlTimestamp,instanceOf:Date,represent:representYamlTimestamp})},900:e=>{var r=1e3;var n=r*60;var t=n*60;var o=t*24;var s=o*7;var i=o*365.25;e.exports=function(e,r){r=r||{};var n=typeof e;if(n==="string"&&e.length>0){return parse(e)}else if(n==="number"&&isFinite(e)){return r.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 u=/^(-?(?:\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(!u){return}var c=parseFloat(u[1]);var a=(u[2]||"ms").toLowerCase();switch(a){case"years":case"year":case"yrs":case"yr":case"y":return c*i;case"weeks":case"week":case"w":return c*s;case"days":case"day":case"d":return c*o;case"hours":case"hour":case"hrs":case"hr":case"h":return c*t;case"minutes":case"minute":case"mins":case"min":case"m":return c*n;case"seconds":case"second":case"secs":case"sec":case"s":return c*r;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return c;default:return undefined}}function fmtShort(e){var s=Math.abs(e);if(s>=o){return Math.round(e/o)+"d"}if(s>=t){return Math.round(e/t)+"h"}if(s>=n){return Math.round(e/n)+"m"}if(s>=r){return Math.round(e/r)+"s"}return e+"ms"}function fmtLong(e){var s=Math.abs(e);if(s>=o){return plural(e,s,o,"day")}if(s>=t){return plural(e,s,t,"hour")}if(s>=n){return plural(e,s,n,"minute")}if(s>=r){return plural(e,s,r,"second")}return e+" ms"}function plural(e,r,n,t){var o=r>=n*1.5;return Math.round(e/n)+" "+t+(o?"s":"")}},254:(e,r,n)=>{r.formatArgs=formatArgs;r.save=save;r.load=load;r.useColors=useColors;r.storage=localstorage();r.destroy=(()=>{let e=false;return()=>{if(!e){e=true;console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}}})();r.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function useColors(){if(typeof window!=="undefined"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs)){return true}if(typeof navigator!=="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)){return false}return typeof document!=="undefined"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window!=="undefined"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator!=="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator!=="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function formatArgs(r){r[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+r[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff);if(!this.useColors){return}const n="color: "+this.color;r.splice(1,0,n,"color: inherit");let t=0;let o=0;r[0].replace(/%[a-zA-Z%]/g,e=>{if(e==="%%"){return}t++;if(e==="%c"){o=t}});r.splice(o,0,n)}r.log=console.debug||console.log||(()=>{});function save(e){try{if(e){r.storage.setItem("debug",e)}else{r.storage.removeItem("debug")}}catch(e){}}function load(){let e;try{e=r.storage.getItem("debug")}catch(e){}if(!e&&typeof process!=="undefined"&&"env"in process){e=process.env.DEBUG}return e}function localstorage(){try{return localStorage}catch(e){}}e.exports=n(8867)(r);const{formatters:t}=e.exports;t.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},8867:(e,r,n)=>{function setup(e){createDebug.debug=createDebug;createDebug.default=createDebug;createDebug.coerce=coerce;createDebug.disable=disable;createDebug.enable=enable;createDebug.enabled=enabled;createDebug.humanize=n(900);createDebug.destroy=destroy;Object.keys(e).forEach(r=>{createDebug[r]=e[r]});createDebug.names=[];createDebug.skips=[];createDebug.formatters={};function selectColor(e){let r=0;for(let n=0;n{if(r==="%%"){return"%"}s++;const o=createDebug.formatters[t];if(typeof o==="function"){const t=e[s];r=o.call(n,t);e.splice(s,1);s--}return r});createDebug.formatArgs.call(n,e);const i=n.log||createDebug.log;i.apply(n,e)}debug.namespace=e;debug.useColors=createDebug.useColors();debug.color=createDebug.selectColor(e);debug.extend=extend;debug.destroy=createDebug.destroy;Object.defineProperty(debug,"enabled",{enumerable:true,configurable:false,get:()=>n===null?createDebug.enabled(e):n,set:e=>{n=e}});if(typeof createDebug.init==="function"){createDebug.init(debug)}return debug}function extend(e,r){const n=createDebug(this.namespace+(typeof r==="undefined"?":":r)+e);n.log=this.log;return n}function enable(e){createDebug.save(e);createDebug.names=[];createDebug.skips=[];let r;const n=(typeof e==="string"?e:"").split(/[\s,]+/);const t=n.length;for(r=0;r"-"+e)].join(",");createDebug.enable("");return e}function enabled(e){if(e[e.length-1]==="*"){return true}let r;let n;for(r=0,n=createDebug.skips.length;r{if(typeof process==="undefined"||process.type==="renderer"||process.browser===true||process.__nwjs){e.exports=n(254)}else{e.exports=n(675)}},675:(e,r,n)=>{const t=n(3867);const o=n(1669);r.init=init;r.log=log;r.formatArgs=formatArgs;r.save=save;r.load=load;r.useColors=useColors;r.destroy=o.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");r.colors=[6,2,3,4,5,1];try{const e=n(9318);if(e&&(e.stderr||e).level>=2){r.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221]}}catch(e){}r.inspectOpts=Object.keys(process.env).filter(e=>{return/^debug_/i.test(e)}).reduce((e,r)=>{const n=r.substring(6).toLowerCase().replace(/_([a-z])/g,(e,r)=>{return r.toUpperCase()});let t=process.env[r];if(/^(yes|on|true|enabled)$/i.test(t)){t=true}else if(/^(no|off|false|disabled)$/i.test(t)){t=false}else if(t==="null"){t=null}else{t=Number(t)}e[n]=t;return e},{});function useColors(){return"colors"in r.inspectOpts?Boolean(r.inspectOpts.colors):t.isatty(process.stderr.fd)}function formatArgs(r){const{namespace:n,useColors:t}=this;if(t){const t=this.color;const o="[3"+(t<8?t:"8;5;"+t);const s=` ${o};1m${n} `;r[0]=s+r[0].split("\n").join("\n"+s);r.push(o+"m+"+e.exports.humanize(this.diff)+"")}else{r[0]=getDate()+n+" "+r[0]}}function getDate(){if(r.inspectOpts.hideDate){return""}return(new Date).toISOString()+" "}function log(...e){return process.stderr.write(o.format(...e)+"\n")}function save(e){if(e){process.env.DEBUG=e}else{delete process.env.DEBUG}}function load(){return process.env.DEBUG}function init(e){e.inspectOpts={};const n=Object.keys(r.inspectOpts);for(let t=0;te.trim()).join(" ")};s.O=function(e){this.inspectOpts.colors=this.useColors;return o.inspect(e,this.inspectOpts)}},1949:(e,r,n)=>{const t=n(4966);const{GitConstructError:o}=n(4732);const{createInstanceConfig:s,folderExists:i}=n(847);const u=Object.create(null);for(let e=n(4732),r=Object.keys(e),t=0;t{const{GitExecutor:t}=n(4701);const{Scheduler:o}=n(3421);const{GitLogger:s}=n(7178);const{adhocExecTask:i,configurationErrorTask:u}=n(2815);const{NOOP:c,appendTaskOptions:a,asArray:f,filterArray:l,filterPrimitives:p,filterString:h,filterStringOrStringArray:d,filterType:g,folderExists:m,getTrailingOptions:b,trailingFunctionArgument:v,trailingOptionsArgument:C}=n(847);const{branchTask:O,branchLocalTask:T,deleteBranchesTask:y,deleteBranchTask:E}=n(17);const{taskCallback:S}=n(8850);const{checkIsRepoTask:k}=n(221);const{cloneTask:w,cloneMirrorTask:A}=n(3173);const{addConfigTask:D,listConfigTask:F}=n(7597);const{cleanWithOptionsTask:R,isCleanOptionsArray:M}=n(4386);const{commitTask:P}=n(5494);const{diffSummaryTask:j}=n(9241);const{fetchTask:L}=n(8823);const{hashObjectTask:I}=n(8199);const{initTask:G}=n(6016);const{logTask:B,parseLogOptions:N}=n(8627);const{mergeTask:$}=n(8829);const{moveTask:x}=n(6520);const{pullTask:U}=n(4636);const{pushTagsTask:Y,pushTask:W}=n(1435);const{addRemoteTask:q,getRemotesTask:z,listRemotesTask:V,remoteTask:H,removeRemoteTask:Q}=n(9866);const{getResetMode:J,resetTask:Z}=n(2377);const{stashListTask:X}=n(810);const{statusTask:K}=n(9197);const{addSubModuleTask:_,initSubModuleTask:ee,subModuleTask:re,updateSubModuleTask:ne}=n(8772);const{addAnnotatedTagTask:te,addTagTask:oe,tagListTask:se}=n(8540);const{straightThroughStringTask:ie}=n(2815);const{parseCheckIgnore:ue}=n(9926);const ce=Symbol("ChainedExecutor");function Git(e){this._executor=new t(e.binary,e.baseDir,new o(e.maxConcurrentProcesses));this._logger=new s}Git.prototype._executor=null;Git.prototype._logger=null;Git.prototype.customBinary=function(e){this._executor.binary=e;return this};Git.prototype.env=function(e,r){if(arguments.length===1&&typeof e==="object"){this._executor.env=e}else{(this._executor.env=this._executor.env||{})[e]=r}return this};Git.prototype.cwd=function(e){const r=typeof e!=="string"?u("Git.cwd: workingDirectory must be supplied as a string"):i(()=>{if(!m(e)){throw new Error(`Git.cwd: cannot change to non-directory "${e}"`)}return this._executor.cwd=e});return this._runTask(r,v(arguments)||c)};Git.prototype.outputHandler=function(e){this._executor.outputHandler=e;return this};Git.prototype.init=function(e,r){return this._runTask(G(e===true,this._executor.cwd,b(arguments)),v(arguments))};Git.prototype.status=function(){return this._runTask(K(b(arguments)),v(arguments))};Git.prototype.stashList=function(e){return this._runTask(X(C(arguments)||{},l(e)&&e||[]),v(arguments))};Git.prototype.stash=function(e,r){return this._runTask(ie(["stash",...b(arguments)]),v(arguments))};function createCloneTask(e,r,n,t){if(typeof n!=="string"){return u(`git.${e}() requires a string 'repoPath'`)}return r(n,g(t,h),b(arguments))}Git.prototype.clone=function(){return this._runTask(createCloneTask("clone",w,...arguments),v(arguments))};Git.prototype.mirror=function(){return this._runTask(createCloneTask("mirror",A,...arguments),v(arguments))};Git.prototype.mv=function(e,r){return this._runTask(x(e,r),v(arguments))};Git.prototype.checkoutLatestTag=function(e){var r=this;return this.pull(function(){r.tags(function(n,t){r.checkout(t.latest,e)})})};Git.prototype.add=function(e){return this._run(["add"].concat(e),v(arguments))};Git.prototype.commit=function(e,r,n,t){const o=v(arguments);const s=[];if(d(e)){s.push(...f(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(P(s,f(g(r,d,[])),[...g(n,l,[]),...b(arguments,0,true)]),o)};Git.prototype.pull=function(e,r,n,t){return this._runTask(U(g(e,h),g(r,h),b(arguments)),v(arguments))};Git.prototype.fetch=function(e,r){return this._runTask(L(g(e,h),g(r,h),b(arguments)),v(arguments))};Git.prototype.silent=function(e){this._logger.silent(!!e);return this};Git.prototype.tags=function(e,r){return this._runTask(se(b(arguments)),v(arguments))};Git.prototype.rebase=function(){return this._run(["rebase"].concat(b(arguments)),v(arguments))};Git.prototype.reset=function(e,r){return this._runTask(Z(J(e),b(arguments)),v(arguments))};Git.prototype.revert=function(e){const r=v(arguments);if(typeof e!=="string"){return this._runTask(u("Commit must be a string"),r)}return this._run(["revert",...b(arguments,0,true),e],r)};Git.prototype.addTag=function(e,r){const n=typeof e==="string"?oe(e):u("Git.addTag requires a tag name");return this._runTask(n,v(arguments))};Git.prototype.addAnnotatedTag=function(e,r,n){return this._runTask(te(e,r),v(arguments))};Git.prototype.checkout=function(e,r){const n=["checkout",...b(arguments,true)];return this._runTask(ie(n),v(arguments))};Git.prototype.checkoutBranch=function(e,r,n){return this.checkout(["-b",e,r],v(arguments))};Git.prototype.checkoutLocalBranch=function(e,r){return this.checkout(["-b",e],v(arguments))};Git.prototype.deleteLocalBranch=function(e,r,n){return this._runTask(E(e,typeof r==="boolean"?r:false),v(arguments))};Git.prototype.deleteLocalBranches=function(e,r,n){return this._runTask(y(e,typeof r==="boolean"?r:false),v(arguments))};Git.prototype.branch=function(e,r){return this._runTask(O(b(arguments)),v(arguments))};Git.prototype.branchLocal=function(e){return this._runTask(T(),v(arguments))};Git.prototype.addConfig=function(e,r,n,t){return this._runTask(D(e,r,typeof n==="boolean"?n:false),v(arguments))};Git.prototype.listConfig=function(){return this._runTask(F(),v(arguments))};Git.prototype.raw=function(e){const r=!Array.isArray(e);const n=[].slice.call(r?arguments:e,0);for(let e=0;e{const{gitP:t}=n(941);const{esModuleFactory:o,gitInstanceFactory:s,gitExportFactory:i}=n(1949);e.exports=o(i(s,{gitP:t}))},4732:(e,r,n)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.TaskConfigurationError=r.GitResponseError=r.GitError=r.GitConstructError=r.ResetMode=r.CheckRepoActions=r.CleanOptions=void 0;var t=n(4386);Object.defineProperty(r,"CleanOptions",{enumerable:true,get:function(){return t.CleanOptions}});var o=n(221);Object.defineProperty(r,"CheckRepoActions",{enumerable:true,get:function(){return o.CheckRepoActions}});var s=n(2377);Object.defineProperty(r,"ResetMode",{enumerable:true,get:function(){return s.ResetMode}});var i=n(1876);Object.defineProperty(r,"GitConstructError",{enumerable:true,get:function(){return i.GitConstructError}});var u=n(5757);Object.defineProperty(r,"GitError",{enumerable:true,get:function(){return u.GitError}});var c=n(5131);Object.defineProperty(r,"GitResponseError",{enumerable:true,get:function(){return c.GitResponseError}});var a=n(740);Object.defineProperty(r,"TaskConfigurationError",{enumerable:true,get:function(){return a.TaskConfigurationError}})},1876:(e,r,n)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.GitConstructError=void 0;const t=n(5757);class GitConstructError extends t.GitError{constructor(e,r){super(undefined,r);this.config=e}}r.GitConstructError=GitConstructError},5757:(e,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.GitError=void 0;class GitError extends Error{constructor(e,r){super(r);this.task=e;Object.setPrototypeOf(this,new.target.prototype)}}r.GitError=GitError},5131:(e,r,n)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.GitResponseError=void 0;const t=n(5757);class GitResponseError extends t.GitError{constructor(e,r){super(undefined,r||String(e));this.git=e}}r.GitResponseError=GitResponseError},740:(e,r,n)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.TaskConfigurationError=void 0;const t=n(5757);class TaskConfigurationError extends t.GitError{constructor(e){super(undefined,e)}}r.TaskConfigurationError=TaskConfigurationError},7178:(e,r,n)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.GitLogger=r.createLogger=r.log=void 0;const t=n(2179);const o=n(847);t.default.formatters.L=(e=>String(o.filterHasLength(e)?e.length:"-"));t.default.formatters.B=(e=>{if(Buffer.isBuffer(e)){return e.toString("utf8")}return o.objectToString(e)});r.log=t.default("simple-git");function prefixedLogger(e,r,n){if(!r||!String(r).replace(/\s*/,"")){return!n?e:(r,...t)=>{e(r,...t);n(r,...t)}}return(t,...o)=>{e(`%s ${t}`,r,...o);if(n){n(t,...o)}}}function childLoggerName(e,r,{namespace:n}){if(typeof e==="string"){return e}const t=r&&r.namespace||"";if(t.startsWith(n)){return t.substr(n.length+1)}return t||n}function createLogger(e,n,t,s=r.log){const i=e&&`[${e}]`||"";const u=[];const c=typeof n==="string"?s.extend(n):n;const a=childLoggerName(o.filterType(n,o.filterString),c,s);return step(t);function destroy(){u.forEach(e=>e.destroy());u.length=0}function child(r){return o.append(u,createLogger(e,c&&c.extend(r)||r))}function sibling(r,n){return o.append(u,createLogger(e,a.replace(/^[^:]+/,r),n,s))}function step(r){const n=r&&`[${r}]`||"";const t=c&&prefixedLogger(c,n)||o.NOOP;const u=prefixedLogger(s,`${i} ${n}`,t);return Object.assign(c?t:u,{key:a,label:e,child:child,sibling:sibling,debug:t,info:u,step:step,destroy:destroy})}}r.createLogger=createLogger;class GitLogger{constructor(e=r.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:r}=this._out;const n=(process.env.DEBUG||"").split(",").filter(e=>!!e);const s=n.includes(r);const i=n.includes(`-${r}`);if(!e){if(i){o.remove(n,`-${r}`)}else{n.push(r)}}else{if(s){o.remove(n,r)}else{n.push(`-${r}`)}}t.default.enable(n.join(","))}}r.GitLogger=GitLogger},6086:(e,r,n)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.hasBranchDeletionError=r.parseBranchDeletions=void 0;const t=n(3755);const o=n(847);const s=/(\S+)\s+\(\S+\s([^)]+)\)/;const i=/^error[^']+'([^']+)'/m;const u=[new o.LineParser(s,(e,[r,n])=>{const o=t.branchDeletionSuccess(r,n);e.all.push(o);e.branches[r]=o}),new o.LineParser(i,(e,[r])=>{const n=t.branchDeletionFailure(r);e.errors.push(n);e.all.push(n);e.branches[r]=n})];const c=e=>{return o.parseStringResponse(new t.BranchDeletionBatch,u,e)};r.parseBranchDeletions=c;function hasBranchDeletionError(e,r){return r===o.ExitCodes.ERROR&&i.test(e)}r.hasBranchDeletionError=hasBranchDeletionError},9264:(e,r,n)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.parseBranchSummary=void 0;const t=n(4446);const o=n(847);const s=[new o.LineParser(/^(\*\s)?\((?:HEAD )?detached (?:from|at) (\S+)\)\s+([a-z0-9]+)\s(.*)$/,(e,[r,n,t,o])=>{e.push(!!r,true,n,t,o)}),new o.LineParser(/^(\*\s)?(\S+)\s+([a-z0-9]+)\s(.*)$/,(e,[r,n,t,o])=>{e.push(!!r,false,n,t,o)})];function parseBranchSummary(e){return o.parseStringResponse(new t.BranchSummaryResult,s,e)}r.parseBranchSummary=parseBranchSummary},3026:(e,r,n)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.parseCommitResult=void 0;const t=n(847);const o=[new t.LineParser(/\[([^\s]+) ([^\]]+)/,(e,[r,n])=>{e.branch=r;e.commit=n}),new t.LineParser(/\s*Author:\s(.+)/i,(e,[r])=>{const n=r.split("<");const t=n.pop();if(!t||!t.includes("@")){return}e.author={email:t.substr(0,t.length-1),name:n.join("<").trim()}}),new t.LineParser(/(\d+)[^,]*(?:,\s*(\d+)[^,]*)(?:,\s*(\d+))/g,(e,[r,n,t])=>{e.summary.changes=parseInt(r,10)||0;e.summary.insertions=parseInt(n,10)||0;e.summary.deletions=parseInt(t,10)||0}),new t.LineParser(/^(\d+)[^,]*(?:,\s*(\d+)[^(]+\(([+-]))?/,(e,[r,n,t])=>{e.summary.changes=parseInt(r,10)||0;const o=parseInt(n,10)||0;if(t==="-"){e.summary.deletions=o}else if(t==="+"){e.summary.insertions=o}})];function parseCommitResult(e){const r={author:null,branch:"",commit:"",summary:{changes:0,insertions:0,deletions:0}};return t.parseStringResponse(r,o,e)}r.parseCommitResult=parseCommitResult},2024:(e,r,n)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.parseDiffResult=void 0;const t=n(4781);function parseDiffResult(e){const r=e.trim().split("\n");const n=new t.DiffSummary;readSummaryLine(n,r.pop());for(let e=0,t=r.length;e ([0-9.]+) ([a-z]+)$/);if(n){r.push({file:n[1].trim(),before:+n[2],after:+n[3],binary:true});return true}return false}},6254:(e,r,n)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.parseFetchResult=void 0;const t=n(847);const o=[new t.LineParser(/From (.+)$/,(e,[r])=>{e.remote=r}),new t.LineParser(/\* \[new branch]\s+(\S+)\s*-> (.+)$/,(e,[r,n])=>{e.branches.push({name:r,tracking:n})}),new t.LineParser(/\* \[new tag]\s+(\S+)\s*-> (.+)$/,(e,[r,n])=>{e.tags.push({name:r,tracking:n})})];function parseFetchResult(e,r){const n={raw:e,remote:null,branches:[],tags:[]};return t.parseStringResponse(n,o,e,r)}r.parseFetchResult=parseFetchResult},9729:(e,r,n)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.createListLogSummaryParser=r.SPLITTER=r.COMMIT_BOUNDARY=r.START_BOUNDARY=void 0;const t=n(847);const o=n(2024);r.START_BOUNDARY="òòòòòò ";r.COMMIT_BOUNDARY=" òò";r.SPLITTER=" ò ";const s=["hash","date","message","refs","author_name","author_email"];function lineBuilder(e,r){return r.reduce((r,n,t)=>{r[n]=e[t]||"";return r},Object.create({diff:null}))}function createListLogSummaryParser(e=r.SPLITTER,n=s){return function(s){const i=t.toLinesWithContent(s,true,r.START_BOUNDARY).map(function(t){const s=t.trim().split(r.COMMIT_BOUNDARY);const i=lineBuilder(s[0].trim().split(e),n);if(s.length>1&&!!s[1].trim()){i.diff=o.parseDiffResult(s[1])}return i});return{all:i,latest:i.length&&i[0]||null,total:i.length}}}r.createListLogSummaryParser=createListLogSummaryParser},6412:(e,r,n)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.parseMergeDetail=r.parseMergeResult=void 0;const t=n(1651);const o=n(847);const s=n(5658);const i=[new o.LineParser(/^Auto-merging\s+(.+)$/,(e,[r])=>{e.merges.push(r)}),new o.LineParser(/^CONFLICT\s+\((.+)\): Merge conflict in (.+)$/,(e,[r,n])=>{e.conflicts.push(new t.MergeSummaryConflict(r,n))}),new o.LineParser(/^CONFLICT\s+\((.+\/delete)\): (.+) deleted in (.+) and/,(e,[r,n,o])=>{e.conflicts.push(new t.MergeSummaryConflict(r,n,{deleteRef:o}))}),new o.LineParser(/^CONFLICT\s+\((.+)\):/,(e,[r])=>{e.conflicts.push(new t.MergeSummaryConflict(r,null))}),new o.LineParser(/^Automatic merge failed;\s+(.+)$/,(e,[r])=>{e.result=r})];const u=(e,n)=>{return Object.assign(r.parseMergeDetail(e,n),s.parsePullResult(e,n))};r.parseMergeResult=u;const c=e=>{return o.parseStringResponse(new t.MergeSummaryDetail,i,e)};r.parseMergeDetail=c},7444:(e,r,n)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.parseMoveResult=void 0;const t=n(847);const o=[new t.LineParser(/^Renaming (.+) to (.+)$/,(e,[r,n])=>{e.moves.push({from:r,to:n})})];function parseMoveResult(e){return t.parseStringResponse({moves:[]},o,e)}r.parseMoveResult=parseMoveResult},5658:(e,r,n)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.parsePullResult=r.parsePullDetail=void 0;const t=n(3567);const o=n(847);const s=n(2661);const i=/^\s*(.+?)\s+\|\s+\d+\s*(\+*)(-*)/;const u=/(\d+)\D+((\d+)\D+\(\+\))?(\D+(\d+)\D+\(-\))?/;const c=/^(create|delete) mode \d+ (.+)/;const a=[new o.LineParser(i,(e,[r,n,t])=>{e.files.push(r);if(n){e.insertions[r]=n.length}if(t){e.deletions[r]=t.length}}),new o.LineParser(u,(e,[r,,n,,t])=>{if(n!==undefined||t!==undefined){e.summary.changes=+r||0;e.summary.insertions=+n||0;e.summary.deletions=+t||0;return true}return false}),new o.LineParser(c,(e,[r,n])=>{o.append(e.files,n);o.append(r==="create"?e.created:e.deleted,n)})];const f=(e,r)=>{return o.parseStringResponse(new t.PullSummary,a,e,r)};r.parsePullDetail=f;const l=(e,n)=>{return Object.assign(new t.PullSummary,r.parsePullDetail(e,n),s.parseRemoteMessages(e,n))};r.parsePullResult=l},8530:(e,r,n)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.parsePushDetail=r.parsePushResult=void 0;const t=n(847);const o=n(2661);function pushResultPushedItem(e,r,n){const t=n.includes("deleted");const o=n.includes("tag")||/^refs\/tags/.test(e);const s=!n.includes("new");return{deleted:t,tag:o,branch:!o,new:!s,alreadyUpdated:s,local:e,remote:r}}const s=[new t.LineParser(/^Pushing to (.+)$/,(e,[r])=>{e.repo=r}),new t.LineParser(/^updating local tracking ref '(.+)'/,(e,[r])=>{e.ref=Object.assign(Object.assign({},e.ref||{}),{local:r})}),new t.LineParser(/^[*-=]\s+([^:]+):(\S+)\s+\[(.+)]$/,(e,[r,n,t])=>{e.pushed.push(pushResultPushedItem(r,n,t))}),new t.LineParser(/^Branch '([^']+)' set up to track remote branch '([^']+)' from '([^']+)'/,(e,[r,n,t])=>{e.branch=Object.assign(Object.assign({},e.branch||{}),{local:r,remote:n,remoteName:t})}),new t.LineParser(/^([^:]+):(\S+)\s+([a-z0-9]+)\.\.([a-z0-9]+)$/,(e,[r,n,t,o])=>{e.update={head:{local:r,remote:n},hash:{from:t,to:o}}})];const i=(e,n)=>{const t=r.parsePushDetail(e,n);const s=o.parseRemoteMessages(e,n);return Object.assign(Object.assign({},t),s)};r.parsePushResult=i;const u=(e,r)=>{return t.parseStringResponse({pushed:[]},s,e,r)};r.parsePushDetail=u},2661:(e,r,n)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.RemoteMessageSummary=r.parseRemoteMessages=void 0;const t=n(847);const o=n(3565);const s=[new t.RemoteLineParser(/^remote:\s*(.+)$/,(e,[r])=>{e.remoteMessages.all.push(r.trim());return false}),...o.remoteMessagesObjectParsers,new t.RemoteLineParser([/create a (?:pull|merge) request/i,/\s(https?:\/\/\S+)$/],(e,[r])=>{e.remoteMessages.pullRequestUrl=r}),new t.RemoteLineParser([/found (\d+) vulnerabilities.+\(([^)]+)\)/i,/\s(https?:\/\/\S+)$/],(e,[r,n,o])=>{e.remoteMessages.vulnerabilities={count:t.asNumber(r),summary:n,url:o}})];function parseRemoteMessages(e,r){return t.parseStringResponse({remoteMessages:new RemoteMessageSummary},s,r)}r.parseRemoteMessages=parseRemoteMessages;class RemoteMessageSummary{constructor(){this.all=[]}}r.RemoteMessageSummary=RemoteMessageSummary},3565:(e,r,n)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.remoteMessagesObjectParsers=void 0;const t=n(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 r=/^\s*(\d+)/.exec(e);const n=/delta (\d+)/i.exec(e);return{count:t.asNumber(r&&r[1]||"0"),delta:t.asNumber(n&&n[1]||"0")}}r.remoteMessagesObjectParsers=[new t.RemoteLineParser(/^remote:\s*(enumerating|counting|compressing) objects: (\d+),/i,(e,[r,n])=>{const o=r.toLowerCase();const s=objectEnumerationResult(e.remoteMessages);Object.assign(s,{[o]:t.asNumber(n)})}),new t.RemoteLineParser(/^remote:\s*(enumerating|counting|compressing) objects: \d+% \(\d+\/(\d+)\),/i,(e,[r,n])=>{const o=r.toLowerCase();const s=objectEnumerationResult(e.remoteMessages);Object.assign(s,{[o]:t.asNumber(n)})}),new t.RemoteLineParser(/total ([^,]+), reused ([^,]+), pack-reused (\d+)/i,(e,[r,n,o])=>{const s=objectEnumerationResult(e.remoteMessages);s.total=asObjectCount(r);s.reused=asObjectCount(n);s.packReused=t.asNumber(o)})]},3755:(e,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.isSingleBranchDeleteFailure=r.branchDeletionFailure=r.branchDeletionSuccess=r.BranchDeletionBatch=void 0;class BranchDeletionBatch{constructor(){this.all=[];this.branches={};this.errors=[]}get success(){return!this.errors.length}}r.BranchDeletionBatch=BranchDeletionBatch;function branchDeletionSuccess(e,r){return{branch:e,hash:r,success:true}}r.branchDeletionSuccess=branchDeletionSuccess;function branchDeletionFailure(e){return{branch:e,hash:null,success:false}}r.branchDeletionFailure=branchDeletionFailure;function isSingleBranchDeleteFailure(e){return e.success}r.isSingleBranchDeleteFailure=isSingleBranchDeleteFailure},4446:(e,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.BranchSummaryResult=void 0;class BranchSummaryResult{constructor(){this.all=[];this.branches={};this.current="";this.detached=false}push(e,r,n,t,o){if(e){this.detached=r;this.current=n}this.all.push(n);this.branches[n]={current:e,name:n,commit:t,label:o}}}r.BranchSummaryResult=BranchSummaryResult},9926:(e,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.parseCheckIgnore=void 0;const n=e=>{return e.split(/\n/g).map(e=>e.trim()).filter(e=>!!e)};r.parseCheckIgnore=n},5689:(e,r,n)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.cleanSummaryParser=r.CleanResponse=void 0;const t=n(847);class CleanResponse{constructor(e){this.dryRun=e;this.paths=[];this.files=[];this.folders=[]}}r.CleanResponse=CleanResponse;const o=/^[a-z]+\s*/i;const s=/^[a-z]+\s+[a-z]+\s*/i;const i=/\/$/;function cleanSummaryParser(e,r){const n=new CleanResponse(e);const u=e?s:o;t.toLinesWithContent(r).forEach(e=>{const r=e.replace(u,"");n.paths.push(r);(i.test(r)?n.folders:n.files).push(r)});return n}r.cleanSummaryParser=cleanSummaryParser},7219:(e,r,n)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.configListParser=r.ConfigList=void 0;const t=n(847);class ConfigList{constructor(){this.files=[];this.values=Object.create(null)}get all(){if(!this._all){this._all=this.files.reduce((e,r)=>{return Object.assign(e,this.values[r])},{})}return this._all}addFile(e){if(!(e in this.values)){const r=t.last(this.files);this.values[e]=r?Object.create(this.values[r]):{};this.files.push(e)}return this.values[e]}addValue(e,r,n){const t=this.addFile(e);if(!t.hasOwnProperty(r)){t[r]=n}else if(Array.isArray(t[r])){t[r].push(n)}else{t[r]=[t[r],n]}this._all=undefined}}r.ConfigList=ConfigList;function configListParser(e){const r=new ConfigList;const n=e.split("\0");for(let e=0,o=n.length-1;e{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.DiffSummary=void 0;class DiffSummary{constructor(){this.changed=0;this.deletions=0;this.insertions=0;this.files=[]}}r.DiffSummary=DiffSummary},860:(e,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.FileStatusSummary=r.fromPathRegex=void 0;r.fromPathRegex=/^(.+) -> (.+)$/;class FileStatusSummary{constructor(e,n,t){this.path=e;this.index=n;this.working_dir=t;if("R"===n+t){const n=r.fromPathRegex.exec(e)||[null,e,e];this.from=n[1]||"";this.path=n[2]||""}}}r.FileStatusSummary=FileStatusSummary},9999:(e,r,n)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.parseGetRemotesVerbose=r.parseGetRemotes=void 0;const t=n(847);function parseGetRemotes(e){const r={};forEach(e,([e])=>r[e]={name:e});return Object.values(r)}r.parseGetRemotes=parseGetRemotes;function parseGetRemotesVerbose(e){const r={};forEach(e,([e,n,t])=>{if(!r.hasOwnProperty(e)){r[e]={name:e,refs:{fetch:"",push:""}}}if(t&&n){r[e].refs[t.replace(/[^a-z]/g,"")]=n}});return Object.values(r)}r.parseGetRemotesVerbose=parseGetRemotesVerbose;function forEach(e,r){t.forEachLineWithContent(e,e=>r(e.split(/\s+/)))}},8690:(e,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.parseInit=r.InitSummary=void 0;class InitSummary{constructor(e,r,n,t){this.bare=e;this.path=r;this.existing=n;this.gitDir=t}}r.InitSummary=InitSummary;const n=/^Init.+ repository in (.+)$/;const t=/^Rein.+ in (.+)$/;function parseInit(e,r,o){const s=String(o).trim();let i;if(i=n.exec(s)){return new InitSummary(e,r,false,i[1])}if(i=t.exec(s)){return new InitSummary(e,r,true,i[1])}let u="";const c=s.split(" ");while(c.length){const e=c.shift();if(e==="in"){u=c.join(" ");break}}return new InitSummary(e,r,/^re/i.test(s),u)}r.parseInit=parseInit},1651:(e,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.MergeSummaryDetail=r.MergeSummaryConflict=void 0;class MergeSummaryConflict{constructor(e,r=null,n){this.reason=e;this.file=r;this.meta=n}toString(){return`${this.file}:${this.reason}`}}r.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"}}r.MergeSummaryDetail=MergeSummaryDetail},3567:(e,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.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}}}r.PullSummary=PullSummary},6790:(e,r,n)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.parseStatusSummary=r.StatusSummary=void 0;const t=n(847);const o=n(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}}r.StatusSummary=StatusSummary;var s;(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"]=" "})(s||(s={}));function renamedFile(e){const r=/^(.+) -> (.+)$/.exec(e);if(!r){return{from:e,to:e}}return{from:String(r[1]),to:String(r[2])}}function parser(e,r,n){return[`${e}${r}`,n]}function conflicts(e,...r){return r.map(r=>parser(e,r,(e,r)=>t.append(e.conflicted,r)))}const i=new Map([parser(s.NONE,s.ADDED,(e,r)=>t.append(e.created,r)),parser(s.NONE,s.DELETED,(e,r)=>t.append(e.deleted,r)),parser(s.NONE,s.MODIFIED,(e,r)=>t.append(e.modified,r)),parser(s.ADDED,s.NONE,(e,r)=>t.append(e.created,r)&&t.append(e.staged,r)),parser(s.ADDED,s.MODIFIED,(e,r)=>t.append(e.created,r)&&t.append(e.staged,r)&&t.append(e.modified,r)),parser(s.DELETED,s.NONE,(e,r)=>t.append(e.deleted,r)&&t.append(e.staged,r)),parser(s.MODIFIED,s.NONE,(e,r)=>t.append(e.modified,r)&&t.append(e.staged,r)),parser(s.MODIFIED,s.MODIFIED,(e,r)=>t.append(e.modified,r)&&t.append(e.staged,r)),parser(s.RENAMED,s.NONE,(e,r)=>{t.append(e.renamed,renamedFile(r))}),parser(s.RENAMED,s.MODIFIED,(e,r)=>{const n=renamedFile(r);t.append(e.renamed,n);t.append(e.modified,n.to)}),parser(s.UNTRACKED,s.UNTRACKED,(e,r)=>t.append(e.not_added,r)),...conflicts(s.ADDED,s.ADDED,s.UNMERGED),...conflicts(s.DELETED,s.DELETED,s.UNMERGED),...conflicts(s.UNMERGED,s.ADDED,s.DELETED,s.UNMERGED),["##",(e,r)=>{const n=/ahead (\d+)/;const t=/behind (\d+)/;const o=/^(.+?(?=(?:\.{3}|\s|$)))/;const s=/\.{3}(\S*)/;const i=/\son\s([\S]+)$/;let u;u=n.exec(r);e.ahead=u&&+u[1]||0;u=t.exec(r);e.behind=u&&+u[1]||0;u=o.exec(r);e.current=u&&u[1];u=s.exec(r);e.tracking=u&&u[1];u=i.exec(r);e.current=u&&u[1]||e.current}]]);const u=function(e){const r=e.trim().split("\n");const n=new StatusSummary;for(let e=0,t=r.length;e{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.parseTagList=r.TagList=void 0;class TagList{constructor(e,r){this.all=e;this.latest=r}}r.TagList=TagList;const n=function(e,r=false){const n=e.split("\n").map(trimmed).filter(Boolean);if(!r){n.sort(function(e,r){const n=e.split(".");const t=r.split(".");if(n.length===1||t.length===1){return singleSorted(toNumber(n[0]),toNumber(t[0]))}for(let e=0,r=Math.max(n.length,t.length);ee.indexOf(".")>=0);return new TagList(n,t)};r.parseTagList=n;function singleSorted(e,r){const n=isNaN(e);const t=isNaN(r);if(n!==t){return n?1:-1}return n?sorted(e,r):0}function sorted(e,r){return e===r?0:e>r?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,r,n){"use strict";var t=this&&this.__awaiter||function(e,r,n,t){function adopt(e){return e instanceof n?e:new n(function(r){r(e)})}return new(n||(n=Promise))(function(n,o){function fulfilled(e){try{step(t.next(e))}catch(e){o(e)}}function rejected(e){try{step(t["throw"](e))}catch(e){o(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((t=t.apply(e,r||[])).next())})};Object.defineProperty(r,"__esModule",{value:true});r.GitExecutorChain=void 0;const o=n(3129);const s=n(4732);const i=n(2815);const u=n(6676);const c=n(847);class GitExecutorChain{constructor(e,r){this._executor=e;this._scheduler=r;this._chain=Promise.resolve();this._queue=new u.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 t(this,void 0,void 0,function*(){const r=yield this._scheduler.next();const n=()=>this._queue.complete(e);try{const{logger:t}=this._queue.attempt(e);return yield i.isEmptyTask(e)?this.attemptEmptyTask(e,t):this.attemptRemoteTask(e,t)}catch(r){throw this.onFatalException(e,r)}finally{n();r()}})}onFatalException(e,r){const n=r instanceof s.GitError?Object.assign(r,{task:e}):new s.GitError(e,r&&String(r));this._chain=Promise.resolve();this._queue.fatal(n);return n}attemptRemoteTask(e,r){return t(this,void 0,void 0,function*(){const n=yield this.gitResponse(this.binary,e.commands,this.outputHandler,r.step("SPAWN"));const t=yield this.handleTaskData(e,n,r.step("HANDLE"));r(`passing response to task's parser as a %s`,e.format);if(i.isBufferTask(e)){return c.callTaskParser(e.parser,t)}return c.callTaskParser(e.parser,t.asStrings())})}attemptEmptyTask(e,r){return t(this,void 0,void 0,function*(){r(`empty task bypassing child process to call to task's parser`);return e.parser()})}handleTaskData({onError:e,concatStdErr:r},{exitCode:n,stdOut:t,stdErr:o},s){return new Promise((i,u)=>{s(`Preparing to handle process response exitCode=%d stdOut=`,n);if(n&&o.length&&e){s.info(`exitCode=%s handling with custom error handler`);s(`concatenate stdErr to stdOut: %j`,r);return e(n,Buffer.concat([...r?t:[],...o]).toString("utf-8"),e=>{s.info(`custom error handler treated as success`);s(`custom error returned a %s`,c.objectToString(e));i(new c.GitOutputStreams(Buffer.isBuffer(e)?e:Buffer.from(String(e)),Buffer.concat(o)))},u)}if(n&&o.length){s.info(`exitCode=%s treated as error when then child process has written to stdErr`);return u(Buffer.concat(o).toString("utf-8"))}if(r){s(`concatenating stdErr onto stdOut before processing`);s(`stdErr: $O`,o);t.push(...o)}s.info(`retrieving task output complete`);i(new c.GitOutputStreams(Buffer.concat(t),Buffer.concat(o)))})}gitResponse(e,r,n,s){return t(this,void 0,void 0,function*(){const t=s.sibling("output");const i={cwd:this.cwd,env:this.env,windowsHide:true};return new Promise(u=>{const c=[];const a=[];let f=false;function attemptClose(e,r="retry"){if(f||a.length||c.length){s.info(`exitCode=%s event=%s`,e,r);u({stdOut:c,stdErr:a,exitCode:e});f=true;t.destroy()}if(!f){f=true;setTimeout(()=>attemptClose(e,"deferred"),50);s("received %s event before content on stdOut/stdErr",r)}}s.info(`%s %o`,e,r);s("%O",i);const l=o.spawn(e,r,i);l.stdout.on("data",onDataReceived(c,"stdOut",s,t.step("stdOut")));l.stderr.on("data",onDataReceived(a,"stdErr",s,t.step("stdErr")));l.on("error",onErrorReceived(a,s));l.on("close",e=>attemptClose(e,"close"));l.on("exit",e=>attemptClose(e,"exit"));if(n){s(`Passing child process stdOut/stdErr to custom outputHandler`);n(e,l.stdout,l.stderr,[...r])}})})}}r.GitExecutorChain=GitExecutorChain;function onErrorReceived(e,r){return n=>{r(`[ERROR] child process exception %o`,n);e.push(Buffer.from(String(n.stack),"ascii"))}}function onDataReceived(e,r,n,t){return o=>{n(`%s received %L bytes`,r,o);t(`%B`,o);e.push(o)}}},4701:(e,r,n)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.GitExecutor=void 0;const t=n(8543);class GitExecutor{constructor(e="git",r,n){this.binary=e;this.cwd=r;this._scheduler=n;this._chain=new t.GitExecutorChain(this,this._scheduler)}chain(){return new t.GitExecutorChain(this,this._scheduler)}push(e){return this._chain.push(e)}}r.GitExecutor=GitExecutor},941:(e,r,n)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.gitP=void 0;const t=n(5131);const o=["customBinary","env","outputHandler","silent"];const s=["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}=n(1949);function gitP(...e){let r;let n=Promise.resolve();try{r=i(...e)}catch(e){n=Promise.reject(e)}function builderReturn(){return t}function chainReturn(){return n}const t=[...o,...s].reduce((e,n)=>{const t=s.includes(n);const o=t?asyncWrapper(n,r):syncWrapper(n,r,e);const i=t?chainReturn:builderReturn;Object.defineProperty(e,n,{enumerable:false,configurable:false,value:r?o:i});return e},{});return t;function asyncWrapper(e,r){return function(...t){if(typeof t[t.length]==="function"){throw new TypeError("Promise interface requires that handlers are not supplied inline, "+"trailing function not allowed in call to "+e)}return n.then(function(){return new Promise(function(n,o){const s=(e,r)=>{if(e){return o(toError(e))}n(r)};t.push(s);r[e].apply(r,t)})})}}function syncWrapper(e,r,n){return(...t)=>{r[e](...t);return n}}}r.gitP=gitP;function toError(e){if(e instanceof Error){return e}if(typeof e==="string"){return new Error(e)}return new t.GitResponseError(e)}},3421:(e,r,n)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.Scheduler=void 0;const t=n(847);const o=n(9819);const s=n(7178);const i=s.createLogger("","scheduler");const u=(()=>{let e=0;return()=>{e++;const{promise:r,done:n}=o.createDeferred();return{promise:r,done:n,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=t.append(this.running,this.pending.shift());i(`Attempting id=%s`,e.id);e.done(()=>{i(`Completing id=`,e.id);t.remove(this.running,e);this.schedule()})}next(){const{promise:e,id:r}=t.append(this.pending,u());i(`Scheduling id=%s`,r);this.schedule();return e}}r.Scheduler=Scheduler},6676:(e,r,n)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.TasksPendingQueue=void 0;const t=n(7178);const o=n(4732);class TasksPendingQueue{constructor(e="GitExecutor"){this.logLabel=e;this._queue=new Map}withProgress(e){return this._queue.get(e)}createProgress(e){const r=TasksPendingQueue.getName(e.commands[0]);const n=t.createLogger(this.logLabel,r);return{task:e,logger:n,name:r}}push(e){const r=this.createProgress(e);r.logger("Adding task to the queue, commands = %o",e.commands);this._queue.set(e,r);return r}fatal(e){for(const[r,{logger:n}]of Array.from(this._queue.entries())){if(r===e.task){n.info(`Failed %o`,e);n(`Fatal exception, any as-yet un-started tasks run through this executor will not be attempted`)}else{n.info(`A fatal exception occurred in a previous task, the queue has been purged: %o`,e.message)}this.complete(r)}if(this._queue.size!==0){throw new Error(`Queue size should be zero after fatal: ${this._queue.size}`)}}complete(e){const r=this.withProgress(e);if(r){r.logger.destroy();this._queue.delete(e)}}attempt(e){const r=this.withProgress(e);if(!r){throw new o.GitError(undefined,"TasksPendingQueue: attempt called for an unknown task")}r.logger("Starting task");return r}static getName(e="empty"){return`task:${e}:${++TasksPendingQueue.counter}`}}r.TasksPendingQueue=TasksPendingQueue;TasksPendingQueue.counter=0},8850:(e,r,n)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.taskCallback=void 0;const t=n(4732);const o=n(847);function taskCallback(e,r,n=o.NOOP){const s=e=>{n(null,e)};const i=r=>{if((r===null||r===void 0?void 0:r.task)===e){if(r instanceof t.GitResponseError){return n(addDeprecationNoticeToError(r))}n(r)}};r.then(s,i)}r.taskCallback=taskCallback;function addDeprecationNoticeToError(e){let r=e=>{console.warn(`simple-git deprecation notice: accessing GitResponseError.${e} should be GitResponseError.git.${e}, this will no longer be available in version 3`);r=o.NOOP};return Object.create(e,Object.getOwnPropertyNames(e.git).reduce(descriptorReducer,{}));function descriptorReducer(n,t){if(t in e){return n}n[t]={enumerable:false,configurable:false,get(){r(t);return e.git[t]}};return n}}},17:(e,r,n)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.deleteBranchTask=r.deleteBranchesTask=r.branchLocalTask=r.branchTask=r.containsDeleteBranchCommand=void 0;const t=n(5131);const o=n(6086);const s=n(9264);function containsDeleteBranchCommand(e){const r=["-d","-D","--delete"];return e.some(e=>r.includes(e))}r.containsDeleteBranchCommand=containsDeleteBranchCommand;function branchTask(e){const r=containsDeleteBranchCommand(e);const n=["branch",...e];if(n.length===1){n.push("-a")}if(!n.includes("-v")){n.splice(1,0,"-v")}return{format:"utf-8",commands:n,parser(e,n){if(r){return o.parseBranchDeletions(e,n).all[0]}return s.parseBranchSummary(e)}}}r.branchTask=branchTask;function branchLocalTask(){const e=s.parseBranchSummary;return{format:"utf-8",commands:["branch","-v"],parser:e}}r.branchLocalTask=branchLocalTask;function deleteBranchesTask(e,r=false){return{format:"utf-8",commands:["branch","-v",r?"-D":"-d",...e],parser(e,r){return o.parseBranchDeletions(e,r)},onError(e,r,n,t){if(!o.hasBranchDeletionError(r,e)){return t(r)}n(r)},concatStdErr:true}}r.deleteBranchesTask=deleteBranchesTask;function deleteBranchTask(e,r=false){const n={format:"utf-8",commands:["branch","-v",r?"-D":"-d",e],parser(r,n){return o.parseBranchDeletions(r,n).branches[e]},onError(e,r,s,i){if(!o.hasBranchDeletionError(r,e)){return i(r)}throw new t.GitResponseError(n.parser(r,""),r)},concatStdErr:true};return n}r.deleteBranchTask=deleteBranchTask},221:(e,r,n)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.checkIsBareRepoTask=r.checkIsRepoRootTask=r.checkIsRepoTask=r.CheckRepoActions=void 0;const t=n(847);var o;(function(e){e["BARE"]="bare";e["IN_TREE"]="tree";e["IS_REPO_ROOT"]="root"})(o=r.CheckRepoActions||(r.CheckRepoActions={}));const s=(e,r,n,o)=>{if(e===t.ExitCodes.UNCLEAN&&isNotRepoMessage(r)){return n("false")}o(r)};const i=e=>{return e.trim()==="true"};function checkIsRepoTask(e){switch(e){case o.BARE:return checkIsBareRepoTask();case o.IS_REPO_ROOT:return checkIsRepoRootTask()}const r=["rev-parse","--is-inside-work-tree"];return{commands:r,format:"utf-8",onError:s,parser:i}}r.checkIsRepoTask=checkIsRepoTask;function checkIsRepoRootTask(){const e=["rev-parse","--git-dir"];return{commands:e,format:"utf-8",onError:s,parser(e){return/^\.(git)?$/.test(e.trim())}}}r.checkIsRepoRootTask=checkIsRepoRootTask;function checkIsBareRepoTask(){const e=["rev-parse","--is-bare-repository"];return{commands:e,format:"utf-8",onError:s,parser:i}}r.checkIsBareRepoTask=checkIsBareRepoTask;function isNotRepoMessage(e){return/(Not a git repository|Kein Git-Repository)/i.test(e)}},4386:(e,r,n)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.isCleanOptionsArray=r.cleanTask=r.cleanWithOptionsTask=r.CleanOptions=r.CONFIG_ERROR_UNKNOWN_OPTION=r.CONFIG_ERROR_MODE_REQUIRED=r.CONFIG_ERROR_INTERACTIVE_MODE=void 0;const t=n(5689);const o=n(847);const s=n(2815);r.CONFIG_ERROR_INTERACTIVE_MODE="Git clean interactive mode is not supported";r.CONFIG_ERROR_MODE_REQUIRED='Git clean mode parameter ("n" or "f") is required';r.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=r.CleanOptions||(r.CleanOptions={}));const u=new Set(["i",...o.asStringArray(Object.values(i))]);function cleanWithOptionsTask(e,n){const{cleanMode:t,options:o,valid:i}=getCleanOptions(e);if(!t){return s.configurationErrorTask(r.CONFIG_ERROR_MODE_REQUIRED)}if(!i.options){return s.configurationErrorTask(r.CONFIG_ERROR_UNKNOWN_OPTION+JSON.stringify(e))}o.push(...n);if(o.some(isInteractiveMode)){return s.configurationErrorTask(r.CONFIG_ERROR_INTERACTIVE_MODE)}return cleanTask(t,o)}r.cleanWithOptionsTask=cleanWithOptionsTask;function cleanTask(e,r){const n=["clean",`-${e}`,...r];return{commands:n,format:"utf-8",parser(r){return t.cleanSummaryParser(e===i.DRY_RUN,r)}}}r.cleanTask=cleanTask;function isCleanOptionsArray(e){return Array.isArray(e)&&e.every(e=>u.has(e))}r.isCleanOptionsArray=isCleanOptionsArray;function getCleanOptions(e){let r;let n=[];let t={cleanMode:false,options:true};e.replace(/[^a-z]i/g,"").split("").forEach(e=>{if(isCleanMode(e)){r=e;t.cleanMode=true}else{t.options=t.options&&isKnownOption(n[n.length]=`-${e}`)}});return{cleanMode:r,options:n,valid:t}}function isCleanMode(e){return e===i.FORCE||e===i.DRY_RUN}function isKnownOption(e){return/^-[a-z]$/i.test(e)&&u.has(e.charAt(1))}function isInteractiveMode(e){if(/^-[^\-]/.test(e)){return e.indexOf("i")>0}return e==="--interactive"}},3173:(e,r,n)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.cloneMirrorTask=r.cloneTask=void 0;const t=n(2815);const o=n(847);function cloneTask(e,r,n){const o=["clone",...n];if(typeof e==="string"){o.push(e)}if(typeof r==="string"){o.push(r)}return t.straightThroughStringTask(o)}r.cloneTask=cloneTask;function cloneMirrorTask(e,r,n){o.append(n,"--mirror");return cloneTask(e,r,n)}r.cloneMirrorTask=cloneMirrorTask},5494:(e,r,n)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.commitTask=void 0;const t=n(3026);function commitTask(e,r,n){const o=["commit",...e.flatMap(e=>["-m",e]),...r,...n];return{commands:o,format:"utf-8",parser:t.parseCommitResult}}r.commitTask=commitTask},7597:(e,r,n)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.listConfigTask=r.addConfigTask=void 0;const t=n(7219);function addConfigTask(e,r,n=false){const t=["config","--local"];if(n){t.push("--add")}t.push(e,r);return{commands:t,format:"utf-8",parser(e){return e}}}r.addConfigTask=addConfigTask;function listConfigTask(){return{commands:["config","--list","--show-origin","--null"],format:"utf-8",parser(e){return t.configListParser(e)}}}r.listConfigTask=listConfigTask},9241:(e,r,n)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.diffSummaryTask=void 0;const t=n(2024);function diffSummaryTask(e){return{commands:["diff","--stat=4096",...e],format:"utf-8",parser(e){return t.parseDiffResult(e)}}}r.diffSummaryTask=diffSummaryTask},8823:(e,r,n)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.fetchTask=void 0;const t=n(6254);function fetchTask(e,r,n){const o=["fetch",...n];if(e&&r){o.push(e,r)}return{commands:o,format:"utf-8",parser:t.parseFetchResult}}r.fetchTask=fetchTask},8199:(e,r,n)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.hashObjectTask=void 0;const t=n(2815);function hashObjectTask(e,r){const n=["hash-object",e];if(r){n.push("-w")}return t.straightThroughStringTask(n,true)}r.hashObjectTask=hashObjectTask},6016:(e,r,n)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.initTask=void 0;const t=n(8690);const o="--bare";function hasBareCommand(e){return e.includes(o)}function initTask(e=false,r,n){const s=["init",...n];if(e&&!hasBareCommand(s)){s.splice(1,0,o)}return{commands:s,concatStdErr:false,format:"utf-8",parser(e){return t.parseInit(s.includes("--bare"),r,e)}}}r.initTask=initTask},8627:(e,r,n)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.logTask=r.parseLogOptions=void 0;const t=n(9729);const o=n(847);const s=new Set(["--pretty","max-count","maxCount","n","file","format","from","to","splitter","symmetric","multiLine","strictDate"]);function prettyFormat(e,r){const n=[];const t=[];Object.entries(e).forEach(([e,r])=>{n.push(e);t.push(r)});return[n,t.join(r)]}function userOptions(e){return Object.fromEntries(Object.entries(e).filter(([e])=>!s.has(e)))}function parseLogOptions(e={},r=[]){const n=e.splitter||t.SPLITTER;const s=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,u]=prettyFormat(s,n);const c=[];const a=[`--pretty=format:${t.START_BOUNDARY}${u}${t.COMMIT_BOUNDARY}`,...r];const f=e.n||e["max-count"]||e.maxCount;if(f){a.push(`--max-count=${f}`)}if(e.from&&e.to){const r=e.symmetric!==false?"...":"..";c.push(`${e.from}${r}${e.to}`)}if(e.file){c.push("--follow",e.file)}o.appendTaskOptions(userOptions(e),a);return{fields:i,splitter:n,commands:[...a,...c]}}r.parseLogOptions=parseLogOptions;function logTask(e,r,n){return{commands:["log",...n],format:"utf-8",parser:t.createListLogSummaryParser(e,r)}}r.logTask=logTask},8829:(e,r,n)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.mergeTask=void 0;const t=n(4732);const o=n(6412);const s=n(2815);function mergeTask(e){if(!e.length){return s.configurationErrorTask("Git.merge requires at least one option")}return{commands:["merge",...e],format:"utf-8",parser(e,r){const n=o.parseMergeResult(e,r);if(n.failed){throw new t.GitResponseError(n)}return n}}}r.mergeTask=mergeTask},6520:(e,r,n)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.moveTask=void 0;const t=n(7444);const o=n(847);function moveTask(e,r){return{commands:["mv","-v",...o.asArray(e),r],format:"utf-8",parser:t.parseMoveResult}}r.moveTask=moveTask},4636:(e,r,n)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.pullTask=void 0;const t=n(5658);function pullTask(e,r,n){const o=["pull",...n];if(e&&r){o.splice(1,0,e,r)}return{commands:o,format:"utf-8",parser(e,r){return t.parsePullResult(e,r)}}}r.pullTask=pullTask},1435:(e,r,n)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.pushTask=r.pushTagsTask=void 0;const t=n(8530);const o=n(847);function pushTagsTask(e={},r){o.append(r,"--tags");return pushTask(e,r)}r.pushTagsTask=pushTagsTask;function pushTask(e={},r){const n=["push",...r];if(e.branch){n.splice(1,0,e.branch)}if(e.remote){n.splice(1,0,e.remote)}o.remove(n,"-v");o.append(n,"--verbose");o.append(n,"--porcelain");return{commands:n,format:"utf-8",parser:t.parsePushResult}}r.pushTask=pushTask},9866:(e,r,n)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.removeRemoteTask=r.remoteTask=r.listRemotesTask=r.getRemotesTask=r.addRemoteTask=void 0;const t=n(9999);const o=n(2815);function addRemoteTask(e,r,n=[]){return o.straightThroughStringTask(["remote","add",...n,e,r])}r.addRemoteTask=addRemoteTask;function getRemotesTask(e){const r=["remote"];if(e){r.push("-v")}return{commands:r,format:"utf-8",parser:e?t.parseGetRemotesVerbose:t.parseGetRemotes}}r.getRemotesTask=getRemotesTask;function listRemotesTask(e=[]){const r=[...e];if(r[0]!=="ls-remote"){r.unshift("ls-remote")}return o.straightThroughStringTask(r)}r.listRemotesTask=listRemotesTask;function remoteTask(e=[]){const r=[...e];if(r[0]!=="remote"){r.unshift("remote")}return o.straightThroughStringTask(r)}r.remoteTask=remoteTask;function removeRemoteTask(e){return o.straightThroughStringTask(["remote","remove",e])}r.removeRemoteTask=removeRemoteTask},2377:(e,r,n)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.getResetMode=r.resetTask=r.ResetMode=void 0;const t=n(2815);var o;(function(e){e["MIXED"]="mixed";e["SOFT"]="soft";e["HARD"]="hard";e["MERGE"]="merge";e["KEEP"]="keep"})(o=r.ResetMode||(r.ResetMode={}));const s=Array.from(Object.values(o));function resetTask(e,r){const n=["reset"];if(isValidResetMode(e)){n.push(`--${e}`)}n.push(...r);return t.straightThroughStringTask(n)}r.resetTask=resetTask;function getResetMode(e){if(isValidResetMode(e)){return e}switch(typeof e){case"string":case"undefined":return o.SOFT}return}r.getResetMode=getResetMode;function isValidResetMode(e){return s.includes(e)}},810:(e,r,n)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.stashListTask=void 0;const t=n(9729);const o=n(8627);function stashListTask(e={},r){const n=o.parseLogOptions(e);const s=t.createListLogSummaryParser(n.splitter,n.fields);return{commands:["stash","list",...n.commands,...r],format:"utf-8",parser:s}}r.stashListTask=stashListTask},9197:(e,r,n)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.statusTask=void 0;const t=n(6790);function statusTask(e){return{format:"utf-8",commands:["status","--porcelain","-b","-u",...e],parser(e){return t.parseStatusSummary(e)}}}r.statusTask=statusTask},8772:(e,r,n)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.updateSubModuleTask=r.subModuleTask=r.initSubModuleTask=r.addSubModuleTask=void 0;const t=n(2815);function addSubModuleTask(e,r){return subModuleTask(["add",e,r])}r.addSubModuleTask=addSubModuleTask;function initSubModuleTask(e){return subModuleTask(["init",...e])}r.initSubModuleTask=initSubModuleTask;function subModuleTask(e){const r=[...e];if(r[0]!=="submodule"){r.unshift("submodule")}return t.straightThroughStringTask(r)}r.subModuleTask=subModuleTask;function updateSubModuleTask(e){return subModuleTask(["update",...e])}r.updateSubModuleTask=updateSubModuleTask},8540:(e,r,n)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.addAnnotatedTagTask=r.addTagTask=r.tagListTask=void 0;const t=n(4539);function tagListTask(e=[]){const r=e.some(e=>/^--sort=/.test(e));return{format:"utf-8",commands:["tag","-l",...e],parser(e){return t.parseTagList(e,r)}}}r.tagListTask=tagListTask;function addTagTask(e){return{format:"utf-8",commands:["tag",e],parser(){return{name:e}}}}r.addTagTask=addTagTask;function addAnnotatedTagTask(e,r){return{format:"utf-8",commands:["tag","-a","-m",r,e],parser(){return{name:e}}}}r.addAnnotatedTagTask=addAnnotatedTagTask},2815:(e,r,n)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.isEmptyTask=r.isBufferTask=r.straightThroughStringTask=r.configurationErrorTask=r.adhocExecTask=r.EMPTY_COMMANDS=void 0;const t=n(740);r.EMPTY_COMMANDS=[];function adhocExecTask(e){return{commands:r.EMPTY_COMMANDS,format:"utf-8",parser:e}}r.adhocExecTask=adhocExecTask;function configurationErrorTask(e){return{commands:r.EMPTY_COMMANDS,format:"utf-8",parser(){throw typeof e==="string"?new t.TaskConfigurationError(e):e}}}r.configurationErrorTask=configurationErrorTask;function straightThroughStringTask(e,r=false){return{commands:e,format:"utf-8",parser(e){return r?String(e).trim():e}}}r.straightThroughStringTask=straightThroughStringTask;function isBufferTask(e){return e.format==="buffer"}r.isBufferTask=isBufferTask;function isEmptyTask(e){return!e.commands.length}r.isEmptyTask=isEmptyTask},7366:(e,r,n)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.filterHasLength=r.filterFunction=r.filterPlainObject=r.filterStringOrStringArray=r.filterStringArray=r.filterString=r.filterPrimitives=r.filterArray=r.filterType=void 0;const t=n(8237);function filterType(e,r,n){if(r(e)){return e}return arguments.length>2?n:undefined}r.filterType=filterType;const o=e=>{return Array.isArray(e)};r.filterArray=o;function filterPrimitives(e,r){return/number|string|boolean/.test(typeof e)&&(!r||!r.includes(typeof e))}r.filterPrimitives=filterPrimitives;const s=e=>{return typeof e==="string"};r.filterString=s;const i=e=>{return Array.isArray(e)&&e.every(r.filterString)};r.filterStringArray=i;const u=e=>{return r.filterString(e)||Array.isArray(e)&&e.every(r.filterString)};r.filterStringOrStringArray=u;function filterPlainObject(e){return!!e&&t.objectToString(e)==="[object Object]"}r.filterPlainObject=filterPlainObject;function filterFunction(e){return typeof e==="function"}r.filterFunction=filterFunction;const c=e=>{if(e==null||"number|boolean|function".includes(typeof e)){return false}return Array.isArray(e)||typeof e==="string"||typeof e.length==="number"};r.filterHasLength=c},2185:(e,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.ExitCodes=void 0;var n;(function(e){e[e["SUCCESS"]=0]="SUCCESS";e[e["ERROR"]=1]="ERROR";e[e["UNCLEAN"]=128]="UNCLEAN"})(n=r.ExitCodes||(r.ExitCodes={}))},6578:(e,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.GitOutputStreams=void 0;class GitOutputStreams{constructor(e,r){this.stdOut=e;this.stdErr=r}asStrings(){return new GitOutputStreams(this.stdOut.toString("utf8"),this.stdErr.toString("utf8"))}}r.GitOutputStreams=GitOutputStreams},847:function(e,r,n){"use strict";var t=this&&this.__createBinding||(Object.create?function(e,r,n,t){if(t===undefined)t=n;Object.defineProperty(e,t,{enumerable:true,get:function(){return r[n]}})}:function(e,r,n,t){if(t===undefined)t=n;e[t]=r[n]});var o=this&&this.__exportStar||function(e,r){for(var n in e)if(n!=="default"&&!Object.prototype.hasOwnProperty.call(r,n))t(r,e,n)};Object.defineProperty(r,"__esModule",{value:true});o(n(7366),r);o(n(2185),r);o(n(6578),r);o(n(9536),r);o(n(5218),r);o(n(3546),r);o(n(1351),r);o(n(8237),r)},9536:(e,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.RemoteLineParser=r.LineParser=void 0;class LineParser{constructor(e,r){this.matches=[];this.parse=((e,r)=>{this.resetMatches();if(!this._regExp.every((r,n)=>this.addMatch(r,n,e(n)))){return false}return this.useMatches(r,this.prepareMatches())!==false});this._regExp=Array.isArray(e)?e:[e];if(r){this.useMatches=r}}useMatches(e,r){throw new Error(`LineParser:useMatches not implemented`)}resetMatches(){this.matches.length=0}prepareMatches(){return this.matches}addMatch(e,r,n){const t=n&&e.exec(n);if(t){this.pushMatch(r,t)}return!!t}pushMatch(e,r){this.matches.push(...r.slice(1))}}r.LineParser=LineParser;class RemoteLineParser extends LineParser{addMatch(e,r,n){return/^remote:\s/.test(String(n))&&super.addMatch(e,r,n)}pushMatch(e,r){if(e>0||r.length>1){super.pushMatch(e,r)}}}r.RemoteLineParser=RemoteLineParser},5218:(e,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.createInstanceConfig=void 0;const n={binary:"git",maxConcurrentProcesses:5};function createInstanceConfig(...e){const r=process.cwd();const t=Object.assign(Object.assign({baseDir:r},n),...e.filter(e=>typeof e==="object"&&e));t.baseDir=t.baseDir||r;return t}r.createInstanceConfig=createInstanceConfig},3546:(e,r,n)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.trailingFunctionArgument=r.trailingOptionsArgument=r.getTrailingOptions=r.appendTaskOptions=void 0;const t=n(7366);const o=n(8237);function appendTaskOptions(e,r=[]){if(!t.filterPlainObject(e)){return r}return Object.keys(e).reduce((r,n)=>{const o=e[n];if(t.filterPrimitives(o,["boolean"])){r.push(n+"="+o)}else{r.push(n)}return r},r)}r.appendTaskOptions=appendTaskOptions;function getTrailingOptions(e,r=0,n=false){const t=[];for(let n=0,o=r<0?e.length:r;n{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.parseStringResponse=r.callTaskParser=void 0;const t=n(8237);function callTaskParser(e,r){return e(r.stdOut,r.stdErr)}r.callTaskParser=callTaskParser;function parseStringResponse(e,r,...n){n.forEach(n=>{for(let o=t.toLinesWithContent(n),s=0,i=o.length;s{if(s+e>=i){return}return o[s+e]};r.some(({parse:r})=>r(n,e))}});return e}r.parseStringResponse=parseStringResponse},8237:(e,r,n)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.asNumber=r.asStringArray=r.asArray=r.objectToString=r.remove=r.append=r.folderExists=r.forEachLineWithContent=r.toLinesWithContent=r.last=r.first=r.splitOn=r.isUserFunction=r.asFunction=r.NOOP=void 0;const t=n(4751);const o=()=>{};r.NOOP=o;function asFunction(e){return typeof e==="function"?e:r.NOOP}r.asFunction=asFunction;function isUserFunction(e){return typeof e==="function"&&e!==r.NOOP}r.isUserFunction=isUserFunction;function splitOn(e,r){const n=e.indexOf(r);if(n<=0){return[e,""]}return[e.substr(0,n),e.substr(n+1)]}r.splitOn=splitOn;function first(e,r=0){return isArrayLike(e)&&e.length>r?e[r]:undefined}r.first=first;function last(e,r=0){if(isArrayLike(e)&&e.length>r){return e[e.length-1-r]}}r.last=last;function isArrayLike(e){return!!(e&&typeof e.length==="number")}function toLinesWithContent(e,r=true,n="\n"){return e.split(n).reduce((e,n)=>{const t=r?n.trim():n;if(t){e.push(t)}return e},[])}r.toLinesWithContent=toLinesWithContent;function forEachLineWithContent(e,r){return toLinesWithContent(e,true).map(e=>r(e))}r.forEachLineWithContent=forEachLineWithContent;function folderExists(e){return t.exists(e,t.FOLDER)}r.folderExists=folderExists;function append(e,r){if(Array.isArray(e)){if(!e.includes(r)){e.push(r)}}else{e.add(r)}return r}r.append=append;function remove(e,r){if(Array.isArray(e)){const n=e.indexOf(r);if(n>=0){e.splice(n,1)}}else{e.delete(r)}return r}r.remove=remove;r.objectToString=Object.prototype.toString.call.bind(Object.prototype.toString);function asArray(e){return Array.isArray(e)?e:[e]}r.asArray=asArray;function asStringArray(e){return asArray(e).map(String)}r.asStringArray=asStringArray;function asNumber(e,r=0){if(e==null){return r}const n=parseInt(e,10);return isNaN(n)?r:n}r.asNumber=asNumber},9318:(e,r,n)=>{"use strict";const t=n(2087);const o=n(1621);const s=process.env;let i;if(o("no-color")||o("no-colors")||o("color=false")){i=false}else if(o("color")||o("colors")||o("color=true")||o("color=always")){i=true}if("FORCE_COLOR"in s){i=s.FORCE_COLOR.length===0||parseInt(s.FORCE_COLOR,10)!==0}function translateLevel(e){if(e===0){return false}return{level:e,hasBasic:true,has256:e>=2,has16m:e>=3}}function supportsColor(e){if(i===false){return 0}if(o("color=16m")||o("color=full")||o("color=truecolor")){return 3}if(o("color=256")){return 2}if(e&&!e.isTTY&&i!==true){return 0}const r=i?1:0;if(process.platform==="win32"){const e=t.release().split(".");if(Number(process.versions.node.split(".")[0])>=8&&Number(e[0])>=10&&Number(e[2])>=10586){return Number(e[2])>=14931?3:2}return 1}if("CI"in s){if(["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(e=>e in s)||s.CI_NAME==="codeship"){return 1}return r}if("TEAMCITY_VERSION"in s){return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(s.TEAMCITY_VERSION)?1:0}if(s.COLORTERM==="truecolor"){return 3}if("TERM_PROGRAM"in s){const e=parseInt((s.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(s.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}if(/-256(color)?$/i.test(s.TERM)){return 2}if(/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(s.TERM)){return 1}if("COLORTERM"in s){return 1}if(s.TERM==="dumb"){return r}return r}function getSupportLevel(e){const r=supportsColor(e);return translateLevel(r)}e.exports={supportsColor:getSupportLevel,stdout:getSupportLevel(process.stdout),stderr:getSupportLevel(process.stderr)}},399:function(e,r,n){"use strict";var t=this&&this.__awaiter||function(e,r,n,t){function adopt(e){return e instanceof n?e:new n(function(r){r(e)})}return new(n||(n=Promise))(function(n,o){function fulfilled(e){try{step(t.next(e))}catch(e){o(e)}}function rejected(e){try{step(t["throw"](e))}catch(e){o(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((t=t.apply(e,r||[])).next())})};var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:true});const s=n(2186);const i=o(n(5622));const u=o(n(1477));const c=o(n(1917));const a=n(2629);const f=i.default.join(process.cwd(),a.getInput("cwd")||"");const l=u.default({baseDir:f});console.log(`Running in ${f}`);(()=>t(void 0,void 0,void 0,function*(){var e;yield checkInputs().catch(s.setFailed);s.startGroup("Internal logs");s.info("> Staging files...");if(a.getInput("add")){s.info("> Adding files...");yield add()}else s.info("> No files to add.");if(a.getInput("remove")){s.info("> Removing files...");yield remove()}else s.info("> No files to remove.");s.info("> Checking for uncommitted changes in the git working tree...");const r=(yield l.diffSummary(["--cached"])).files.length;if(r>0){s.info(`> Found ${r} changed files.`);yield l.addConfig("user.email",a.getInput("author_email"),undefined,a.log).addConfig("user.name",a.getInput("author_name"),undefined,a.log);s.debug("> Current git config\n"+JSON.stringify((yield l.listConfig()).all,null,2));yield l.fetch(["--tags","--force"],a.log);s.info("> Switching/creating branch...");yield l.checkout(a.getInput("branch"),undefined,a.log).catch(()=>l.checkoutLocalBranch(a.getInput("branch"),a.log));if(a.getInput("pull_strategy")=="NO-PULL")s.info("> Not pulling from repo.");else{s.info("> Pulling from remote...");yield l.fetch(undefined,a.log).pull(undefined,undefined,{[a.getInput("pull_strategy")]:null},a.log)}s.info("> Re-staging files...");if(a.getInput("add"))yield add({ignoreErrors:true});if(a.getInput("remove"))yield remove({ignoreErrors:true});s.info("> Creating commit...");yield l.commit(a.getInput("message"),undefined,Object.assign({"--author":`"${a.getInput("author_name")} <${a.getInput("author_email")}>"`},a.getInput("signoff")?{"--signoff":null}:{}),(e,r)=>{if(r)a.setOutput("committed","true");return a.log(e,r)});if(a.getInput("tag")){s.info("> Tagging commit...");yield l.tag(a.getInput("tag").split(" "),(e,r)=>{if(r)a.setOutput("tagged","true");return a.log(e,r)}).then(e=>{a.setOutput("tagged","true");return a.log(null,e)}).catch(e=>s.setFailed(e))}else s.info("> No tag info provided.");const n=(e=a.parseBool(a.getInput("push")))!==null&&e!==void 0?e:a.getInput("push");if(n){s.info("> Pushing commit to repo...");if(n===true){s.debug(`Running: git push origin ${a.getInput("branch")} --set-upstream`);yield l.push("origin",a.getInput("branch"),{"--set-upstream":null},(e,r)=>{if(r)a.setOutput("pushed","true");return a.log(e,r)})}else{s.debug(`Running: git push ${n}`);yield l.push(undefined,undefined,n.split(" "),(e,r)=>{if(r)a.setOutput("pushed","true");return a.log(e,r)})}if(a.getInput("tag")){s.info("> Pushing tags to repo...");yield l.pushTags("origin",undefined,(e,r)=>a.log(undefined,e||r)).catch(()=>{s.info("> Tag push failed: deleting remote tag and re-pushing...");return l.push(undefined,undefined,{"--delete":null,origin:null,[a.getInput("tag").split(" ").filter(e=>!e.startsWith("-"))[0]]:null},a.log).pushTags("origin",undefined,a.log)})}else s.info("> No tags to push.")}else s.info("> Not pushing anything.");s.endGroup();s.info("> Task completed.")}else{s.endGroup();s.info("> Working tree clean. Nothing to commit.")}}))().then(logOutputs).catch(e=>{s.endGroup();logOutputs();s.setFailed(e)});function checkInputs(){var e,r,n,o;return t(this,void 0,void 0,function*(){function setInput(e,r){if(r)return process.env[`INPUT_${e.toUpperCase()}`]=r;else return delete process.env[`INPUT_${e.toUpperCase()}`]}function setDefault(e,r){if(!a.getInput(e))setInput(e,r);return a.getInput(e)}const t=process.env.GITHUB_EVENT_PATH,i=t&&require(t),u=(e=process.env.GITHUB_EVENT_NAME)===null||e===void 0?void 0:e.includes("pull_request"),c=u?(n=(r=i===null||i===void 0?void 0:i.pull_request)===null||r===void 0?void 0:r.head)===null||n===void 0?void 0:n.ref:(o=process.env.GITHUB_REF)===null||o===void 0?void 0:o.substring(11);if(!a.getInput("add")&&!a.getInput("remove"))throw new Error("Both 'add' and 'remove' are empty, the action has nothing to do.");if(a.getInput("add")){const e=parseInputArray(a.getInput("add"));if(e.length==1)s.info("Add input parsed as single string, running 1 git add command.");else if(e.length>1)s.info(`Add input parsed as string array, running ${e.length} git add commands.`);else s.setFailed("Add input: array length < 1")}if(a.getInput("remove")){const e=parseInputArray(a.getInput("remove"));if(e.length==1)s.info("Remove input parsed as single string, running 1 git rm command.");else if(e.length>1)s.info(`Remove input parsed as string array, running ${e.length} git rm commands.`);else s.setFailed("Remove input: array length < 1")}setDefault("author_name",`${process.env.GITHUB_ACTOR}`);setDefault("author_email",`${process.env.GITHUB_ACTOR}@users.noreply.github.com`);s.info(`> Using '${a.getInput("author_name")} <${a.getInput("author_email")}>' as author.`);setDefault("message",`Commit from GitHub Actions (${process.env.GITHUB_WORKFLOW})`);s.info(`> Using "${a.getInput("message")}" as commit message.`);const f=setDefault("branch",c||"");if(u)s.info(`> Running for a PR, the action will use '${f}' as ref.`);if(a.getInput("signoff")){const e=a.parseBool(a.getInput("signoff"));if(e===undefined)throw new Error(`"${a.getInput("signoff")}" is not a valid value for the 'signoff' input: only "true" and "false" are allowed.`);if(!e)setInput("signoff",undefined);s.debug(`Current signoff option: ${a.getInput("signoff")} (${typeof a.getInput("signoff")})`)}if(a.getInput("pull_strategy")=="NO-PULL")s.debug("NO-PULL found: won't pull from remote.");if(a.getInput("push")){const e=a.parseBool(a.getInput("push"));s.debug(`Current push option: '${a.getInput("push")}' (parsed as ${typeof e})`)}})}function add({logWarning:e=true,ignoreErrors:r=false}={}){return t(this,void 0,void 0,function*(){const n=a.getInput("add");if(!n)return[];const t=parseInputArray(n);const o=[];for(const n of t){o.push(yield l.add(n.split(" "),(e,n)=>a.log(r?null:e,n)).catch(t=>{if(r)return;if(t.message.includes("fatal: pathspec")&&t.message.includes("did not match any files")&&e)s.warning(`Add command did not match any file:\n git add ${n}`);else throw t}))}return o})}function remove({logWarning:e=true,ignoreErrors:r=false}={}){return t(this,void 0,void 0,function*(){const n=a.getInput("remove");if(!n)return[];const t=parseInputArray(n);const o=[];for(const n of t){o.push(yield l.rm(n.split(" "),(e,n)=>a.log(r?null:e,n)).catch(t=>{if(r)return;if(t.message.includes("fatal: pathspec")&&t.message.includes("did not match any files"))e&&s.warning(`Remove command did not match any file:\n git rm ${n}`);else throw t}))}return o})}function parseInputArray(e){try{const r=JSON.parse(e);if(r&&Array.isArray(r)&&r.every(e=>typeof e=="string")){s.debug(`Input parsed as JSON array of length ${r.length}`);return r}}catch(e){}try{const r=c.default.load(e);if(r&&Array.isArray(r)&&r.every(e=>typeof e=="string")){s.debug(`Input parsed as YAML array of length ${r.length}`);return r}}catch(e){}s.debug("Input parsed as single string");return[e]}function logOutputs(){s.startGroup("Outputs");for(const e in a.outputs){s.info(`${e}: ${a.outputs[e]}`)}s.endGroup()}},2629:function(e,r,n){"use strict";var t=this&&this.__createBinding||(Object.create?function(e,r,n,t){if(t===undefined)t=n;Object.defineProperty(e,t,{enumerable:true,get:function(){return r[n]}})}:function(e,r,n,t){if(t===undefined)t=n;e[t]=r[n]});var o=this&&this.__setModuleDefault||(Object.create?function(e,r){Object.defineProperty(e,"default",{enumerable:true,value:r})}:function(e,r){e["default"]=r});var s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n in e)if(n!=="default"&&Object.prototype.hasOwnProperty.call(e,n))t(r,e,n);o(r,e);return r};Object.defineProperty(r,"__esModule",{value:true});r.setOutput=r.parseBool=r.log=r.getInput=r.outputs=void 0;const i=s(n(2186));r.outputs={committed:"false",pushed:"false",tagged:"false"};function getInput(e){return i.getInput(e)}r.getInput=getInput;function log(e,r){if(r)console.log(r);if(e)i.error(e)}r.log=log;function parseBool(e){try{const r=JSON.parse(e);if(typeof r=="boolean")return r}catch(e){}}r.parseBool=parseBool;function setOutput(e,n){i.debug(`Setting output: ${e}=${n}`);r.outputs[e]=n;return i.setOutput(e,n)}r.setOutput=setOutput;for(const e in r.outputs)setOutput(e,r.outputs[e])},3129:e=>{"use strict";e.exports=require("child_process")},5747:e=>{"use strict";e.exports=require("fs")},2087:e=>{"use strict";e.exports=require("os")},5622:e=>{"use strict";e.exports=require("path")},3867:e=>{"use strict";e.exports=require("tty")},1669:e=>{"use strict";e.exports=require("util")}};var r={};function __nccwpck_require__(n){if(r[n]){return r[n].exports}var t=r[n]={exports:{}};var o=true;try{e[n].call(t.exports,t,t.exports,__nccwpck_require__);o=false}finally{if(o)delete r[n]}return t.exports}__nccwpck_require__.ab=__dirname+"/";return __nccwpck_require__(399)})(); \ No newline at end of file diff --git a/src/main.ts b/src/main.ts index dfadf222..ab64af28 100644 --- a/src/main.ts +++ b/src/main.ts @@ -50,15 +50,18 @@ console.log(`Running in ${baseDir}`) .checkout(getInput('branch'), undefined, log) .catch(() => git.checkoutLocalBranch(getInput('branch'), log)) - info('> Pulling from remote...') - await git.fetch(undefined, log).pull( - undefined, - undefined, - { - [getInput('pull_strategy')]: null - }, - log - ) + if (getInput('pull_strategy') == 'NO-PULL') info('> Not pulling from repo.') + else { + info('> Pulling from remote...') + await git.fetch(undefined, log).pull( + undefined, + undefined, + { + [getInput('pull_strategy')]: null + }, + log + ) + } info('> Re-staging files...') if (getInput('add')) await add({ ignoreErrors: true }) @@ -257,6 +260,11 @@ async function checkInputs() { } // #endregion + // #region pull_strategy + if (getInput('pull_strategy') == 'NO-PULL') + debug("NO-PULL found: won't pull from remote.") + // #endregion + // #region push if (getInput('push')) { // It has to be either 'true', 'false', or any other string (use as arguments)