diff --git a/README.md b/README.md index 943cb8bf..b06e1f3c 100644 --- a/README.md +++ b/README.md @@ -58,10 +58,6 @@ Add a step like this to your workflow: # Arguments for the git tag command (the tag name always needs to be the first word not preceded by an hyphen) # Default: '' tag: 'v1.0.0 --force' - - # The token to use to access the GitHub API when getting the author info (see the paragraph below for more info about the tokens used by the action) - # Default: secrets.GITHUB_TOKEN - token: ${{ secrets.GITHUB_TOKEN }} ``` ### Adding files: @@ -93,8 +89,7 @@ You can use the `tag` option to enter the arguments for a `git add` command. In ### Tokens: -The token from the `token` input is only used when getting the author info from the GitHub API: usually the default GitHub token is enough but if for some reason you want to change it, you can use that input. -When pushing, the action uses the token that the local git repository has been configured with: that means that if you want to change it you'll need to do it in the steps that run before this action. For example: if you set up your repo with [`actions/checkout`](https://github.com/actions/checkout/) then you have to change the token there. +When pushing, the action uses the token that the local git repository has been configured with: that means that if you want to change it you'll need to do it in the steps that run before this action. For example: if you set up your repo with [`actions/checkout`](https://github.com/actions/checkout/) then you have to add the token there. Changing the token with which the repo is configured can be useful if you want to run CI checks on the commit pushed by this action; anyway, it has to be set up outside of this action. ### Outputs: diff --git a/action.yml b/action.yml index e6304a01..5b1ae57b 100644 --- a/action.yml +++ b/action.yml @@ -9,9 +9,11 @@ inputs: author_name: description: The name of the user that will be displayed as the author of the commit required: false + default: ${{ github.actor }} author_email: description: The email of the user that will be displayed as the author of the commit required: false + default: ${{ github.actor }}@users.noreply.github.com branch: description: Name of the branch to use, if different from the one that triggered the workflow required: false @@ -39,10 +41,6 @@ inputs: tag: description: Arguments for the git tag command (the tag name always needs to be the first word not preceded by a hyphen) required: false - token: - description: 'GITHUB_TOKEN or a `repo` scoped Personal Access Token (PAT)' - required: false - default: ${{ github.token }} outputs: committed: diff --git a/lib/index.js b/lib/index.js index c41c5c37..fbd2079d 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 a=o(n(2087));const c=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}${a.EOL}${n}${a.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}${c.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+a.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(8237));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},6545:(e,r,n)=>{e.exports=n(2618)},8104:(e,r,n)=>{"use strict";var t=n(328);var o=n(3211);var s=n(1934);var i=n(646);var u=n(8605);var a=n(7211);var c=n(7707).http;var f=n(7707).https;var l=n(8835);var p=n(8761);var h=n(696);var d=n(5226);var m=n(1516);var g=/https:?/;function setProxy(e,r,n){e.hostname=r.host;e.host=r.host;e.port=r.port;e.path=n;if(r.auth){var t=Buffer.from(r.auth.username+":"+r.auth.password,"utf8").toString("base64");e.headers["Proxy-Authorization"]="Basic "+t}e.beforeRedirect=function beforeRedirect(e){e.headers.host=e.host;setProxy(e,r,e.href)}}e.exports=function httpAdapter(e){return new Promise(function dispatchHttpRequest(r,n){var v=function resolve(e){r(e)};var b=function reject(e){n(e)};var C=e.data;var O=e.headers;if(!O["User-Agent"]&&!O["user-agent"]){O["User-Agent"]="axios/"+h.version}if(C&&!t.isStream(C)){if(Buffer.isBuffer(C)){}else if(t.isArrayBuffer(C)){C=Buffer.from(new Uint8Array(C))}else if(t.isString(C)){C=Buffer.from(C,"utf-8")}else{return b(d("Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream",e))}O["Content-Length"]=C.length}var y=undefined;if(e.auth){var E=e.auth.username||"";var T=e.auth.password||"";y=E+":"+T}var S=s(e.baseURL,e.url);var w=l.parse(S);var A=w.protocol||"http:";if(!y&&w.auth){var R=w.auth.split(":");var k=R[0]||"";var D=R[1]||"";y=k+":"+D}if(y){delete O.Authorization}var F=g.test(A);var M=F?e.httpsAgent:e.httpAgent;var P={path:i(w.path,e.params,e.paramsSerializer).replace(/^\?/,""),method:e.method.toUpperCase(),headers:O,agent:M,agents:{http:e.httpAgent,https:e.httpsAgent},auth:y};if(e.socketPath){P.socketPath=e.socketPath}else{P.hostname=w.hostname;P.port=w.port}var j=e.proxy;if(!j&&j!==false){var L=A.slice(0,-1)+"_proxy";var x=process.env[L]||process.env[L.toUpperCase()];if(x){var I=l.parse(x);var B=process.env.no_proxy||process.env.NO_PROXY;var G=true;if(B){var U=B.split(",").map(function trim(e){return e.trim()});G=!U.some(function proxyMatch(e){if(!e){return false}if(e==="*"){return true}if(e[0]==="."&&w.hostname.substr(w.hostname.length-e.length)===e){return true}return w.hostname===e})}if(G){j={host:I.hostname,port:I.port,protocol:I.protocol};if(I.auth){var $=I.auth.split(":");j.auth={username:$[0],password:$[1]}}}}}if(j){P.headers.host=w.hostname+(w.port?":"+w.port:"");setProxy(P,j,A+"//"+w.hostname+(w.port?":"+w.port:"")+P.path)}var q;var N=F&&(j?g.test(j.protocol):true);if(e.transport){q=e.transport}else if(e.maxRedirects===0){q=N?a:u}else{if(e.maxRedirects){P.maxRedirects=e.maxRedirects}q=N?f:c}if(e.maxBodyLength>-1){P.maxBodyLength=e.maxBodyLength}var Y=q.request(P,function handleResponse(r){if(Y.aborted)return;var n=r;var s=r.req||Y;if(r.statusCode!==204&&s.method!=="HEAD"&&e.decompress!==false){switch(r.headers["content-encoding"]){case"gzip":case"compress":case"deflate":n=n.pipe(p.createUnzip());delete r.headers["content-encoding"];break}}var i={status:r.statusCode,statusText:r.statusMessage,headers:r.headers,config:e,request:s};if(e.responseType==="stream"){i.data=n;o(v,b,i)}else{var u=[];n.on("data",function handleStreamData(r){u.push(r);if(e.maxContentLength>-1&&Buffer.concat(u).length>e.maxContentLength){n.destroy();b(d("maxContentLength size of "+e.maxContentLength+" exceeded",e,null,s))}});n.on("error",function handleStreamError(r){if(Y.aborted)return;b(m(r,e,null,s))});n.on("end",function handleStreamEnd(){var r=Buffer.concat(u);if(e.responseType!=="arraybuffer"){r=r.toString(e.responseEncoding);if(!e.responseEncoding||e.responseEncoding==="utf8"){r=t.stripBOM(r)}}i.data=r;o(v,b,i)})}});Y.on("error",function handleRequestError(r){if(Y.aborted&&r.code!=="ERR_FR_TOO_MANY_REDIRECTS")return;b(m(r,e,null,Y))});if(e.timeout){Y.setTimeout(e.timeout,function handleRequestTimeout(){Y.abort();b(d("timeout of "+e.timeout+"ms exceeded",e,"ECONNABORTED",Y))})}if(e.cancelToken){e.cancelToken.promise.then(function onCanceled(e){if(Y.aborted)return;Y.abort();b(e)})}if(t.isStream(C)){C.on("error",function handleStreamError(r){b(m(r,e,null,Y))}).pipe(Y)}else{Y.end(C)}})}},3454:(e,r,n)=>{"use strict";var t=n(328);var o=n(3211);var s=n(1545);var i=n(646);var u=n(1934);var a=n(6455);var c=n(3608);var f=n(5226);e.exports=function xhrAdapter(e){return new Promise(function dispatchXhrRequest(r,n){var l=e.data;var p=e.headers;if(t.isFormData(l)){delete p["Content-Type"]}var h=new XMLHttpRequest;if(e.auth){var d=e.auth.username||"";var m=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";p.Authorization="Basic "+btoa(d+":"+m)}var g=u(e.baseURL,e.url);h.open(e.method.toUpperCase(),i(g,e.params,e.paramsSerializer),true);h.timeout=e.timeout;h.onreadystatechange=function handleLoad(){if(!h||h.readyState!==4){return}if(h.status===0&&!(h.responseURL&&h.responseURL.indexOf("file:")===0)){return}var t="getAllResponseHeaders"in h?a(h.getAllResponseHeaders()):null;var s=!e.responseType||e.responseType==="text"?h.responseText:h.response;var i={data:s,status:h.status,statusText:h.statusText,headers:t,config:e,request:h};o(r,n,i);h=null};h.onabort=function handleAbort(){if(!h){return}n(f("Request aborted",e,"ECONNABORTED",h));h=null};h.onerror=function handleError(){n(f("Network Error",e,null,h));h=null};h.ontimeout=function handleTimeout(){var r="timeout of "+e.timeout+"ms exceeded";if(e.timeoutErrorMessage){r=e.timeoutErrorMessage}n(f(r,e,"ECONNABORTED",h));h=null};if(t.isStandardBrowserEnv()){var v=(e.withCredentials||c(g))&&e.xsrfCookieName?s.read(e.xsrfCookieName):undefined;if(v){p[e.xsrfHeaderName]=v}}if("setRequestHeader"in h){t.forEach(p,function setRequestHeader(e,r){if(typeof l==="undefined"&&r.toLowerCase()==="content-type"){delete p[r]}else{h.setRequestHeader(r,e)}})}if(!t.isUndefined(e.withCredentials)){h.withCredentials=!!e.withCredentials}if(e.responseType){try{h.responseType=e.responseType}catch(r){if(e.responseType!=="json"){throw r}}}if(typeof e.onDownloadProgress==="function"){h.addEventListener("progress",e.onDownloadProgress)}if(typeof e.onUploadProgress==="function"&&h.upload){h.upload.addEventListener("progress",e.onUploadProgress)}if(e.cancelToken){e.cancelToken.promise.then(function onCanceled(e){if(!h){return}h.abort();n(e);h=null})}if(!l){l=null}h.send(l)})}},2618:(e,r,n)=>{"use strict";var t=n(328);var o=n(7065);var s=n(8178);var i=n(4831);var u=n(8190);function createInstance(e){var r=new s(e);var n=o(s.prototype.request,r);t.extend(n,s.prototype,r);t.extend(n,r);return n}var a=createInstance(u);a.Axios=s;a.create=function create(e){return createInstance(i(a.defaults,e))};a.Cancel=n(8875);a.CancelToken=n(1587);a.isCancel=n(4057);a.all=function all(e){return Promise.all(e)};a.spread=n(4850);a.isAxiosError=n(650);e.exports=a;e.exports.default=a},8875:e=>{"use strict";function Cancel(e){this.message=e}Cancel.prototype.toString=function toString(){return"Cancel"+(this.message?": "+this.message:"")};Cancel.prototype.__CANCEL__=true;e.exports=Cancel},1587:(e,r,n)=>{"use strict";var t=n(8875);function CancelToken(e){if(typeof e!=="function"){throw new TypeError("executor must be a function.")}var r;this.promise=new Promise(function promiseExecutor(e){r=e});var n=this;e(function cancel(e){if(n.reason){return}n.reason=new t(e);r(n.reason)})}CancelToken.prototype.throwIfRequested=function throwIfRequested(){if(this.reason){throw this.reason}};CancelToken.source=function source(){var e;var r=new CancelToken(function executor(r){e=r});return{token:r,cancel:e}};e.exports=CancelToken},4057:e=>{"use strict";e.exports=function isCancel(e){return!!(e&&e.__CANCEL__)}},8178:(e,r,n)=>{"use strict";var t=n(328);var o=n(646);var s=n(3214);var i=n(5062);var u=n(4831);function Axios(e){this.defaults=e;this.interceptors={request:new s,response:new s}}Axios.prototype.request=function request(e){if(typeof e==="string"){e=arguments[1]||{};e.url=arguments[0]}else{e=e||{}}e=u(this.defaults,e);if(e.method){e.method=e.method.toLowerCase()}else if(this.defaults.method){e.method=this.defaults.method.toLowerCase()}else{e.method="get"}var r=[i,undefined];var n=Promise.resolve(e);this.interceptors.request.forEach(function unshiftRequestInterceptors(e){r.unshift(e.fulfilled,e.rejected)});this.interceptors.response.forEach(function pushResponseInterceptors(e){r.push(e.fulfilled,e.rejected)});while(r.length){n=n.then(r.shift(),r.shift())}return n};Axios.prototype.getUri=function getUri(e){e=u(this.defaults,e);return o(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")};t.forEach(["delete","get","head","options"],function forEachMethodNoData(e){Axios.prototype[e]=function(r,n){return this.request(u(n||{},{method:e,url:r,data:(n||{}).data}))}});t.forEach(["post","put","patch"],function forEachMethodWithData(e){Axios.prototype[e]=function(r,n,t){return this.request(u(t||{},{method:e,url:r,data:n}))}});e.exports=Axios},3214:(e,r,n)=>{"use strict";var t=n(328);function InterceptorManager(){this.handlers=[]}InterceptorManager.prototype.use=function use(e,r){this.handlers.push({fulfilled:e,rejected:r});return this.handlers.length-1};InterceptorManager.prototype.eject=function eject(e){if(this.handlers[e]){this.handlers[e]=null}};InterceptorManager.prototype.forEach=function forEach(e){t.forEach(this.handlers,function forEachHandler(r){if(r!==null){e(r)}})};e.exports=InterceptorManager},1934:(e,r,n)=>{"use strict";var t=n(1301);var o=n(7189);e.exports=function buildFullPath(e,r){if(e&&!t(r)){return o(e,r)}return r}},5226:(e,r,n)=>{"use strict";var t=n(1516);e.exports=function createError(e,r,n,o,s){var i=new Error(e);return t(i,r,n,o,s)}},5062:(e,r,n)=>{"use strict";var t=n(328);var o=n(9812);var s=n(4057);var i=n(8190);function throwIfCancellationRequested(e){if(e.cancelToken){e.cancelToken.throwIfRequested()}}e.exports=function dispatchRequest(e){throwIfCancellationRequested(e);e.headers=e.headers||{};e.data=o(e.data,e.headers,e.transformRequest);e.headers=t.merge(e.headers.common||{},e.headers[e.method]||{},e.headers);t.forEach(["delete","get","head","post","put","patch","common"],function cleanHeaderConfig(r){delete e.headers[r]});var r=e.adapter||i.adapter;return r(e).then(function onAdapterResolution(r){throwIfCancellationRequested(e);r.data=o(r.data,r.headers,e.transformResponse);return r},function onAdapterRejection(r){if(!s(r)){throwIfCancellationRequested(e);if(r&&r.response){r.response.data=o(r.response.data,r.response.headers,e.transformResponse)}}return Promise.reject(r)})}},1516:e=>{"use strict";e.exports=function enhanceError(e,r,n,t,o){e.config=r;if(n){e.code=n}e.request=t;e.response=o;e.isAxiosError=true;e.toJSON=function toJSON(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}};return e}},4831:(e,r,n)=>{"use strict";var t=n(328);e.exports=function mergeConfig(e,r){r=r||{};var n={};var o=["url","method","data"];var s=["headers","auth","proxy","params"];var i=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"];var u=["validateStatus"];function getMergedValue(e,r){if(t.isPlainObject(e)&&t.isPlainObject(r)){return t.merge(e,r)}else if(t.isPlainObject(r)){return t.merge({},r)}else if(t.isArray(r)){return r.slice()}return r}function mergeDeepProperties(o){if(!t.isUndefined(r[o])){n[o]=getMergedValue(e[o],r[o])}else if(!t.isUndefined(e[o])){n[o]=getMergedValue(undefined,e[o])}}t.forEach(o,function valueFromConfig2(e){if(!t.isUndefined(r[e])){n[e]=getMergedValue(undefined,r[e])}});t.forEach(s,mergeDeepProperties);t.forEach(i,function defaultToConfig2(o){if(!t.isUndefined(r[o])){n[o]=getMergedValue(undefined,r[o])}else if(!t.isUndefined(e[o])){n[o]=getMergedValue(undefined,e[o])}});t.forEach(u,function merge(t){if(t in r){n[t]=getMergedValue(e[t],r[t])}else if(t in e){n[t]=getMergedValue(undefined,e[t])}});var a=o.concat(s).concat(i).concat(u);var c=Object.keys(e).concat(Object.keys(r)).filter(function filterAxiosKeys(e){return a.indexOf(e)===-1});t.forEach(c,mergeDeepProperties);return n}},3211:(e,r,n)=>{"use strict";var t=n(5226);e.exports=function settle(e,r,n){var o=n.config.validateStatus;if(!n.status||!o||o(n.status)){e(n)}else{r(t("Request failed with status code "+n.status,n.config,null,n.request,n))}}},9812:(e,r,n)=>{"use strict";var t=n(328);e.exports=function transformData(e,r,n){t.forEach(n,function transform(n){e=n(e,r)});return e}},8190:(e,r,n)=>{"use strict";var t=n(328);var o=n(6240);var s={"Content-Type":"application/x-www-form-urlencoded"};function setContentTypeIfUnset(e,r){if(!t.isUndefined(e)&&t.isUndefined(e["Content-Type"])){e["Content-Type"]=r}}function getDefaultAdapter(){var e;if(typeof XMLHttpRequest!=="undefined"){e=n(3454)}else if(typeof process!=="undefined"&&Object.prototype.toString.call(process)==="[object process]"){e=n(8104)}return e}var i={adapter:getDefaultAdapter(),transformRequest:[function transformRequest(e,r){o(r,"Accept");o(r,"Content-Type");if(t.isFormData(e)||t.isArrayBuffer(e)||t.isBuffer(e)||t.isStream(e)||t.isFile(e)||t.isBlob(e)){return e}if(t.isArrayBufferView(e)){return e.buffer}if(t.isURLSearchParams(e)){setContentTypeIfUnset(r,"application/x-www-form-urlencoded;charset=utf-8");return e.toString()}if(t.isObject(e)){setContentTypeIfUnset(r,"application/json;charset=utf-8");return JSON.stringify(e)}return e}],transformResponse:[function transformResponse(e){if(typeof e==="string"){try{e=JSON.parse(e)}catch(e){}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function validateStatus(e){return e>=200&&e<300}};i.headers={common:{Accept:"application/json, text/plain, */*"}};t.forEach(["delete","get","head"],function forEachMethodNoData(e){i.headers[e]={}});t.forEach(["post","put","patch"],function forEachMethodWithData(e){i.headers[e]=t.merge(s)});e.exports=i},7065:e=>{"use strict";e.exports=function bind(e,r){return function wrap(){var n=new Array(arguments.length);for(var t=0;t{"use strict";var t=n(328);function encode(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function buildURL(e,r,n){if(!r){return e}var o;if(n){o=n(r)}else if(t.isURLSearchParams(r)){o=r.toString()}else{var s=[];t.forEach(r,function serialize(e,r){if(e===null||typeof e==="undefined"){return}if(t.isArray(e)){r=r+"[]"}else{e=[e]}t.forEach(e,function parseValue(e){if(t.isDate(e)){e=e.toISOString()}else if(t.isObject(e)){e=JSON.stringify(e)}s.push(encode(r)+"="+encode(e))})});o=s.join("&")}if(o){var i=e.indexOf("#");if(i!==-1){e=e.slice(0,i)}e+=(e.indexOf("?")===-1?"?":"&")+o}return e}},7189:e=>{"use strict";e.exports=function combineURLs(e,r){return r?e.replace(/\/+$/,"")+"/"+r.replace(/^\/+/,""):e}},1545:(e,r,n)=>{"use strict";var t=n(328);e.exports=t.isStandardBrowserEnv()?function standardBrowserEnv(){return{write:function write(e,r,n,o,s,i){var u=[];u.push(e+"="+encodeURIComponent(r));if(t.isNumber(n)){u.push("expires="+new Date(n).toGMTString())}if(t.isString(o)){u.push("path="+o)}if(t.isString(s)){u.push("domain="+s)}if(i===true){u.push("secure")}document.cookie=u.join("; ")},read:function read(e){var r=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return r?decodeURIComponent(r[3]):null},remove:function remove(e){this.write(e,"",Date.now()-864e5)}}}():function nonStandardBrowserEnv(){return{write:function write(){},read:function read(){return null},remove:function remove(){}}}()},1301:e=>{"use strict";e.exports=function isAbsoluteURL(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},650:e=>{"use strict";e.exports=function isAxiosError(e){return typeof e==="object"&&e.isAxiosError===true}},3608:(e,r,n)=>{"use strict";var t=n(328);e.exports=t.isStandardBrowserEnv()?function standardBrowserEnv(){var e=/(msie|trident)/i.test(navigator.userAgent);var r=document.createElement("a");var n;function resolveURL(n){var t=n;if(e){r.setAttribute("href",t);t=r.href}r.setAttribute("href",t);return{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:r.pathname.charAt(0)==="/"?r.pathname:"/"+r.pathname}}n=resolveURL(window.location.href);return function isURLSameOrigin(e){var r=t.isString(e)?resolveURL(e):e;return r.protocol===n.protocol&&r.host===n.host}}():function nonStandardBrowserEnv(){return function isURLSameOrigin(){return true}}()},6240:(e,r,n)=>{"use strict";var t=n(328);e.exports=function normalizeHeaderName(e,r){t.forEach(e,function processHeader(n,t){if(t!==r&&t.toUpperCase()===r.toUpperCase()){e[r]=n;delete e[t]}})}},6455:(e,r,n)=>{"use strict";var t=n(328);var o=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function parseHeaders(e){var r={};var n;var s;var i;if(!e){return r}t.forEach(e.split("\n"),function parser(e){i=e.indexOf(":");n=t.trim(e.substr(0,i)).toLowerCase();s=t.trim(e.substr(i+1));if(n){if(r[n]&&o.indexOf(n)>=0){return}if(n==="set-cookie"){r[n]=(r[n]?r[n]:[]).concat([s])}else{r[n]=r[n]?r[n]+", "+s:s}}});return r}},4850:e=>{"use strict";e.exports=function spread(e){return function wrap(r){return e.apply(null,r)}}},328:(e,r,n)=>{"use strict";var t=n(7065);var o=Object.prototype.toString;function isArray(e){return o.call(e)==="[object Array]"}function isUndefined(e){return typeof e==="undefined"}function isBuffer(e){return e!==null&&!isUndefined(e)&&e.constructor!==null&&!isUndefined(e.constructor)&&typeof e.constructor.isBuffer==="function"&&e.constructor.isBuffer(e)}function isArrayBuffer(e){return o.call(e)==="[object ArrayBuffer]"}function isFormData(e){return typeof FormData!=="undefined"&&e instanceof FormData}function isArrayBufferView(e){var r;if(typeof ArrayBuffer!=="undefined"&&ArrayBuffer.isView){r=ArrayBuffer.isView(e)}else{r=e&&e.buffer&&e.buffer instanceof ArrayBuffer}return r}function isString(e){return typeof e==="string"}function isNumber(e){return typeof e==="number"}function isObject(e){return e!==null&&typeof e==="object"}function isPlainObject(e){if(o.call(e)!=="[object Object]"){return false}var r=Object.getPrototypeOf(e);return r===null||r===Object.prototype}function isDate(e){return o.call(e)==="[object Date]"}function isFile(e){return o.call(e)==="[object File]"}function isBlob(e){return o.call(e)==="[object Blob]"}function isFunction(e){return o.call(e)==="[object Function]"}function isStream(e){return isObject(e)&&isFunction(e.pipe)}function isURLSearchParams(e){return typeof URLSearchParams!=="undefined"&&e instanceof URLSearchParams}function trim(e){return e.replace(/^\s*/,"").replace(/\s*$/,"")}function isStandardBrowserEnv(){if(typeof navigator!=="undefined"&&(navigator.product==="ReactNative"||navigator.product==="NativeScript"||navigator.product==="NS")){return false}return typeof window!=="undefined"&&typeof document!=="undefined"}function forEach(e,r){if(e===null||typeof e==="undefined"){return}if(typeof e!=="object"){e=[e]}if(isArray(e)){for(var n=0,t=e.length;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{var t;try{t=n(8237)("follow-redirects")}catch(e){t=function(){}}e.exports=t},7707:(e,r,n)=>{var t=n(8835);var o=t.URL;var s=n(8605);var i=n(7211);var u=n(2413).Writable;var a=n(2357);var c=n(1133);var f=Object.create(null);["abort","aborted","connect","error","socket","timeout"].forEach(function(e){f[e]=function(r,n,t){this._redirectable.emit(e,r,n,t)}});var l=createErrorType("ERR_FR_REDIRECTION_FAILURE","");var p=createErrorType("ERR_FR_TOO_MANY_REDIRECTS","Maximum number of redirects exceeded");var h=createErrorType("ERR_FR_MAX_BODY_LENGTH_EXCEEDED","Request body larger than maxBodyLength limit");var d=createErrorType("ERR_STREAM_WRITE_AFTER_END","write after end");function RedirectableRequest(e,r){u.call(this);this._sanitizeOptions(e);this._options=e;this._ended=false;this._ending=false;this._redirectCount=0;this._redirects=[];this._requestBodyLength=0;this._requestBodyBuffers=[];if(r){this.on("response",r)}var n=this;this._onNativeResponse=function(e){n._processResponse(e)};this._performRequest()}RedirectableRequest.prototype=Object.create(u.prototype);RedirectableRequest.prototype.write=function(e,r,n){if(this._ending){throw new d}if(!(typeof e==="string"||typeof e==="object"&&"length"in e)){throw new TypeError("data should be a string, Buffer or Uint8Array")}if(typeof r==="function"){n=r;r=null}if(e.length===0){if(n){n()}return}if(this._requestBodyLength+e.length<=this._options.maxBodyLength){this._requestBodyLength+=e.length;this._requestBodyBuffers.push({data:e,encoding:r});this._currentRequest.write(e,r,n)}else{this.emit("error",new h);this.abort()}};RedirectableRequest.prototype.end=function(e,r,n){if(typeof e==="function"){n=e;e=r=null}else if(typeof r==="function"){n=r;r=null}if(!e){this._ended=this._ending=true;this._currentRequest.end(null,null,n)}else{var t=this;var o=this._currentRequest;this.write(e,r,function(){t._ended=true;o.end(null,null,n)});this._ending=true}};RedirectableRequest.prototype.setHeader=function(e,r){this._options.headers[e]=r;this._currentRequest.setHeader(e,r)};RedirectableRequest.prototype.removeHeader=function(e){delete this._options.headers[e];this._currentRequest.removeHeader(e)};RedirectableRequest.prototype.setTimeout=function(e,r){if(r){this.once("timeout",r)}if(this.socket){startTimer(this,e)}else{var n=this;this._currentRequest.once("socket",function(){startTimer(n,e)})}this.once("response",clearTimer);this.once("error",clearTimer);return this};function startTimer(e,r){clearTimeout(e._timeout);e._timeout=setTimeout(function(){e.emit("timeout")},r)}function clearTimer(){clearTimeout(this._timeout)}["abort","flushHeaders","getHeader","setNoDelay","setSocketKeepAlive"].forEach(function(e){RedirectableRequest.prototype[e]=function(r,n){return this._currentRequest[e](r,n)}});["aborted","connection","socket"].forEach(function(e){Object.defineProperty(RedirectableRequest.prototype,e,{get:function(){return this._currentRequest[e]}})});RedirectableRequest.prototype._sanitizeOptions=function(e){if(!e.headers){e.headers={}}if(e.host){if(!e.hostname){e.hostname=e.host}delete e.host}if(!e.pathname&&e.path){var r=e.path.indexOf("?");if(r<0){e.pathname=e.path}else{e.pathname=e.path.substring(0,r);e.search=e.path.substring(r)}}};RedirectableRequest.prototype._performRequest=function(){var e=this._options.protocol;var r=this._options.nativeProtocols[e];if(!r){this.emit("error",new TypeError("Unsupported protocol "+e));return}if(this._options.agents){var n=e.substr(0,e.length-1);this._options.agent=this._options.agents[n]}var o=this._currentRequest=r.request(this._options,this._onNativeResponse);this._currentUrl=t.format(this._options);o._redirectable=this;for(var s in f){if(s){o.on(s,f[s])}}if(this._isRedirect){var i=0;var u=this;var a=this._requestBodyBuffers;(function writeNext(e){if(o===u._currentRequest){if(e){u.emit("error",e)}else if(i=300&&r<400){this._currentRequest.removeAllListeners();this._currentRequest.on("error",noop);this._currentRequest.abort();e.destroy();if(++this._redirectCount>this._options.maxRedirects){this.emit("error",new p);return}if((r===301||r===302)&&this._options.method==="POST"||r===303&&!/^(?:GET|HEAD)$/.test(this._options.method)){this._options.method="GET";this._requestBodyBuffers=[];removeMatchingHeaders(/^content-/i,this._options.headers)}var o=removeMatchingHeaders(/^host$/i,this._options.headers)||t.parse(this._currentUrl).hostname;var s=t.resolve(this._currentUrl,n);c("redirecting to",s);this._isRedirect=true;var i=t.parse(s);Object.assign(this._options,i);if(i.hostname!==o){removeMatchingHeaders(/^authorization$/i,this._options.headers)}if(typeof this._options.beforeRedirect==="function"){var u={headers:e.headers};try{this._options.beforeRedirect.call(null,this._options,u)}catch(e){this.emit("error",e);return}this._sanitizeOptions(this._options)}try{this._performRequest()}catch(e){var a=new l("Redirected request failed: "+e.message);a.cause=e;this.emit("error",a)}}else{e.responseUrl=this._currentUrl;e.redirects=this._redirects;this.emit("response",e);this._requestBodyBuffers=[]}};function wrap(e){var r={maxRedirects:21,maxBodyLength:10*1024*1024};var n={};Object.keys(e).forEach(function(s){var i=s+":";var u=n[i]=e[s];var f=r[s]=Object.create(u);function request(e,s,u){if(typeof e==="string"){var f=e;try{e=urlToOptions(new o(f))}catch(r){e=t.parse(f)}}else if(o&&e instanceof o){e=urlToOptions(e)}else{u=s;s=e;e={protocol:i}}if(typeof s==="function"){u=s;s=null}s=Object.assign({maxRedirects:r.maxRedirects,maxBodyLength:r.maxBodyLength},e,s);s.nativeProtocols=n;a.equal(s.protocol,i,"protocol mismatch");c("options",s);return new RedirectableRequest(s,u)}function get(e,r,n){var t=f.request(e,r,n);t.end();return t}Object.defineProperties(f,{request:{value:request,configurable:true,enumerable:true,writable:true},get:{value:get,configurable:true,enumerable:true,writable:true}})});return r}function noop(){}function urlToOptions(e){var r={protocol:e.protocol,hostname:e.hostname.startsWith("[")?e.hostname.slice(1,-1):e.hostname,hash:e.hash,search:e.search,pathname:e.pathname,path:e.pathname+e.search,href:e.href};if(e.port!==""){r.port=Number(e.port)}return r}function removeMatchingHeaders(e,r){var n;for(var t in r){if(e.test(t)){n=r[t];delete r[t]}}return n}function createErrorType(e,r){function CustomError(e){Error.captureStackTrace(this,this.constructor);this.message=e||r}CustomError.prototype=new Error;CustomError.prototype.constructor=CustomError;CustomError.prototype.name="Error ["+e+"]";CustomError.prototype.code=e;return CustomError}e.exports=wrap({http:s,https:i});e.exports.wrap=wrap},1621:e=>{"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(916);e.exports=t},916:(e,r,n)=>{"use strict";var t=n(5190);var o=n(3034);function deprecated(e){return function(){throw new Error("Function "+e+" is deprecated and cannot be used.")}}e.exports.Type=n(967);e.exports.Schema=n(6514);e.exports.FAILSAFE_SCHEMA=n(6037);e.exports.JSON_SCHEMA=n(1571);e.exports.CORE_SCHEMA=n(2183);e.exports.DEFAULT_SAFE_SCHEMA=n(8949);e.exports.DEFAULT_FULL_SCHEMA=n(6874);e.exports.load=t.load;e.exports.loadAll=t.loadAll;e.exports.safeLoad=t.safeLoad;e.exports.safeLoadAll=t.safeLoadAll;e.exports.dump=o.dump;e.exports.safeDump=o.safeDump;e.exports.YAMLException=n(5199);e.exports.MINIMAL_SCHEMA=n(6037);e.exports.SAFE_SCHEMA=n(8949);e.exports.DEFAULT_SCHEMA=n(6874);e.exports.scan=deprecated("scan");e.exports.parse=deprecated("parse");e.exports.compose=deprecated("compose");e.exports.addConstructor=deprecated("addConstructor")},9136: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(9136);var o=n(5199);var s=n(6874);var i=n(8949);var u=Object.prototype.toString;var a=Object.prototype.hasOwnProperty;var c=9;var f=10;var l=13;var p=32;var h=33;var d=34;var m=35;var g=37;var v=38;var b=39;var C=42;var O=44;var y=45;var E=58;var T=61;var S=62;var w=63;var A=64;var R=91;var k=93;var D=96;var F=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"];function compileStyleMap(e,r){var n,t,o,s,i,u,c;if(r===null)return{};n={};t=Object.keys(r);for(o=0,s=t.length;o0?e.charCodeAt(s-1):null;h=h&&isPlainSafe(i,u)}}else{for(s=0;st&&e[p+1]!==" ";p=s}}else if(!isPrintable(i)){return U}u=s>0?e.charCodeAt(s-1):null;h=h&&isPlainSafe(i,u)}c=c||l&&(s-p-1>t&&e[p+1]!==" ")}if(!a&&!c){return h&&!o(e)?x:I}if(n>9&&needIndentIndicator(e)){return U}return c?G:B}function writeScalar(e,r,n,t){e.dump=function(){if(r.length===0){return"''"}if(!e.noCompatMode&&L.indexOf(r)!==-1){return"'"+r+"'"}var s=e.indent*Math.max(1,n);var i=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-s);var u=t||e.flowLevel>-1&&n>=e.flowLevel;function testAmbiguity(r){return testImplicitResolving(e,r)}switch(chooseScalarStyle(r,u,e.indent,i,testAmbiguity)){case x:return r;case I:return"'"+r.replace(/'/g,"''")+"'";case B:return"|"+blockHeader(r,e.indent)+dropEndingNewline(indentString(r,s));case G:return">"+blockHeader(r,e.indent)+dropEndingNewline(indentString(foldString(r,i),s));case U:return'"'+escapeString(r,i)+'"';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],a=i[2];s=a[0]===" ";t+=u+(!o&&!s&&a!==""?"\n":"")+foldLine(a,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 a="";while(t=n.exec(e)){u=t.index;if(u-o>r){s=i>o?i:u;a+="\n"+e.slice(o,s);o=s+1}i=u}a+="\n";if(e.length-o>r&&i>o){a+=e.slice(o,i)+"\n"+e.slice(i+1)}else{a+=e.slice(o)}return a.slice(1)}function escapeString(e){var r="";var n,t;var o;for(var s=0;s=55296&&n<=56319){t=e.charCodeAt(s+1);if(t>=56320&&t<=57343){r+=encodeHex((n-55296)*1024+t-56320+65536);s++;continue}}o=j[n];r+=!o&&isPrintable(n)?e[s]:o||encodeHex(n)}return r}function writeFlowSequence(e,r,n){var t="",o=e.tag,s,i;for(s=0,i=n.length;s1024)f+="? ";f+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" ");if(!writeNode(e,r,c,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),a,c,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(a=0,c=u.length;a1024;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,i,c,f,l;s=n?e.explicitTypes:e.implicitTypes;for(i=0,c=s.length;i tag resolver accepts not "'+l+'" style')}e.dump=t}return true}}return false}function writeNode(e,r,n,t,s,i){e.tag=null;e.dump=n;if(!detectType(e,n,false)){detectType(e,n,true)}var a=u.call(e.dump);if(t){t=e.flowLevel<0||e.flowLevel>r}var c=a==="[object Object]"||a==="[object Array]",f,l;if(c){f=e.duplicates.indexOf(n);l=f!==-1}if(e.tag!==null&&e.tag!=="?"||l||e.indent!==2&&r>0){s=false}if(l&&e.usedDuplicates[f]){e.dump="*ref_"+f}else{if(c&&l&&!e.usedDuplicates[f]){e.usedDuplicates[f]=true}if(a==="[object Object]"){if(t&&Object.keys(e.dump).length!==0){writeBlockMapping(e,r,e.dump,s);if(l){e.dump="&ref_"+f+e.dump}}else{writeFlowMapping(e,r,e.dump);if(l){e.dump="&ref_"+f+" "+e.dump}}}else if(a==="[object Array]"){var p=e.noArrayIndent&&r>0?r-1:r;if(t&&e.dump.length!==0){writeBlockSequence(e,p,e.dump,s);if(l){e.dump="&ref_"+f+e.dump}}else{writeFlowSequence(e,p,e.dump);if(l){e.dump="&ref_"+f+" "+e.dump}}}else if(a==="[object String]"){if(e.tag!=="?"){writeScalar(e,e.dump,r,i)}}else{if(e.skipInvalid)return false;throw new o("unacceptable kind of an object to dump "+a)}if(e.tag!==null&&e.tag!=="?"){e.dump="!<"+e.tag+"> "+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 YAMLException(e,r){Error.call(this);this.name="YAMLException";this.reason=e;this.mark=r;this.message=(this.reason||"(unknown reason)")+(this.mark?" "+this.mark.toString():"");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){var r=this.name+": ";r+=this.reason||"(unknown reason)";if(!e&&this.mark){r+=" "+this.mark.toString()}return r};e.exports=YAMLException},5190:(e,r,n)=>{"use strict";var t=n(9136);var o=n(5199);var s=n(5426);var i=n(8949);var u=n(6874);var a=Object.prototype.hasOwnProperty;var c=1;var f=2;var l=3;var p=4;var h=1;var d=2;var m=3;var g=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/;var v=/[\x85\u2028\u2029]/;var b=/[,\[\]\{\}]/;var C=/^(?:!|!!|![a-z\-]+!)$/i;var O=/^(?:!|[^,\[\]\{\}])(?:%[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 y=new Array(256);var E=new Array(256);for(var T=0;T<256;T++){y[T]=simpleEscapeSequence(T)?1:0;E[T]=simpleEscapeSequence(T)}function State(e,r){this.input=e;this.filename=r["filename"]||null;this.schema=r["schema"]||u;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.documents=[]}function generateError(e,r){return new o(r,new s(e.filename,e.input,e.position,e.line,e.position-e.lineStart))}function throwError(e,r){throw generateError(e,r)}function throwWarning(e,r){if(e.onWarning){e.onWarning.call(null,generateError(e,r))}}var S={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(!C.test(t)){throwError(e,"ill-formed tag handle (first argument) of the TAG directive")}if(a.call(e.tagMap,t)){throwError(e,'there is a previously declared suffix for "'+t+'" tag handle')}if(!O.test(o)){throwError(e,"ill-formed tag prefix (second argument) of the TAG directive")}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,a,c,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)){a=e.line;c=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=a;e.lineStart=c;e.lineIndent=f;break}}if(u){captureSegment(e,s,i,false);writeFoldedLines(e,e.line-a);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&&y[u]){e.result+=E[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=e.tag,s,i=e.anchor,u,a,f,l,p,h={},d,m,g,v;v=e.input.charCodeAt(e.position);if(v===91){a=93;p=false;s=[]}else if(v===123){a=125;p=true;s={}}else{return false}if(e.anchor!==null){e.anchorMap[e.anchor]=s}v=e.input.charCodeAt(++e.position);while(v!==0){skipSeparationSpace(e,true,r);v=e.input.charCodeAt(e.position);if(v===a){e.position++;e.tag=o;e.anchor=i;e.kind=p?"mapping":"sequence";e.result=s;return true}else if(!n){throwError(e,"missed comma between flow collection entries")}m=d=g=null;f=l=false;if(v===63){u=e.input.charCodeAt(e.position+1);if(is_WS_OR_EOL(u)){f=l=true;e.position++;skipSeparationSpace(e,true,r)}}t=e.line;composeNode(e,r,c,false,true);m=e.tag;d=e.result;skipSeparationSpace(e,true,r);v=e.input.charCodeAt(e.position);if((l||e.line===t)&&v===58){f=true;v=e.input.charCodeAt(++e.position);skipSeparationSpace(e,true,r);composeNode(e,r,c,false,true);g=e.result}if(p){storeMappingPair(e,s,h,m,d,g)}else if(f){s.push(storeMappingPair(e,null,h,m,d,g))}else{s.push(d)}skipSeparationSpace(e,true,r);v=e.input.charCodeAt(e.position);if(v===44){n=true;v=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=h,i=false,u=false,a=r,c=0,f=false,l,p;p=e.input.charCodeAt(e.position);if(p===124){o=false}else if(p===62){o=true}else{return false}e.kind="scalar";e.result="";while(p!==0){p=e.input.charCodeAt(++e.position);if(p===43||p===45){if(h===s){s=p===43?m:d}else{throwError(e,"repeat of a chomping mode identifier")}}else if((l=fromDecimalCode(p))>=0){if(l===0){throwError(e,"bad explicit indentation width of a block scalar; it cannot be less than one")}else if(!u){a=r+l-1;u=true}else{throwError(e,"repeat of an indentation width identifier")}}else{break}}if(is_WHITE_SPACE(p)){do{p=e.input.charCodeAt(++e.position)}while(is_WHITE_SPACE(p));if(p===35){do{p=e.input.charCodeAt(++e.position)}while(!is_EOL(p)&&p!==0)}}while(p!==0){readLineBreak(e);e.lineIndent=0;p=e.input.charCodeAt(e.position);while((!u||e.lineIndenta){a=e.lineIndent}if(is_EOL(p)){c++;continue}if(e.lineIndentr)&&a!==0){throwError(e,"bad indentation of a sequence entry")}else if(e.lineIndentr){if(composeNode(e,r,p,true,o)){if(g){d=e.result}else{m=e.result}}if(!g){storeMappingPair(e,c,l,h,d,m,s,i);h=d=m=null}skipSeparationSpace(e,true,-1);b=e.input.charCodeAt(e.position)}if(e.lineIndent>r&&b!==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(g=0,v=e.implicitTypes.length;g tag; it should be "'+b.kind+'", not "'+e.kind+'"')}if(!b.resolve(e.result)){throwError(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}else{e.result=b.construct(e.result);if(e.anchor!==null){e.anchorMap[e.anchor]=e.result}}}else{throwError(e,"unknown tag !<"+e.tag+">")}}if(e.listener!==null){e.listener("close",e)}return e.tag!==null||e.anchor!==null||m}function readDocument(e){var r=e.position,n,t,o,s=false,i;e.version=null;e.checkLineBreaks=e.legacy;e.tagMap={};e.anchorMap={};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(a.call(S,t)){S[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,p,false,true);skipSeparationSpace(e,true,-1);if(e.checkLineBreaks&&v.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(9136);function Mark(e,r,n,t,o){this.name=e;this.buffer=r;this.position=n;this.line=t;this.column=o}Mark.prototype.getSnippet=function getSnippet(e,r){var n,o,s,i,u;if(!this.buffer)return null;e=e||4;r=r||75;n="";o=this.position;while(o>0&&"\0\r\n…\u2028\u2029".indexOf(this.buffer.charAt(o-1))===-1){o-=1;if(this.position-o>r/2-1){n=" ... ";o+=5;break}}s="";i=this.position;while(ir/2-1){s=" ... ";i-=5;break}}u=this.buffer.slice(o,i);return t.repeat(" ",e)+n+u+s+"\n"+t.repeat(" ",e+this.position-o+n.length)+"^"};Mark.prototype.toString=function toString(e){var r,n="";if(this.name){n+='in "'+this.name+'" '}n+="at line "+(this.line+1)+", column "+(this.column+1);if(!e){r=this.getSnippet();if(r){n+=":\n"+r}}return n};e.exports=Mark},6514:(e,r,n)=>{"use strict";var t=n(9136);var o=n(5199);var s=n(967);function compileList(e,r,n){var t=[];e.include.forEach(function(e){n=compileList(e,r,n)});e[r].forEach(function(e){n.forEach(function(r,n){if(r.tag===e.tag&&r.kind===e.kind){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:{}},r,n;function collectType(r){e[r.kind][r.tag]=e["fallback"][r.tag]=r}for(r=0,n=arguments.length;r{"use strict";var t=n(6514);e.exports=new t({include:[n(1571)]})},6874:(e,r,n)=>{"use strict";var t=n(6514);e.exports=t.DEFAULT=new t({include:[n(8949)],explicit:[n(5914),n(9242),n(7278)]})},8949:(e,r,n)=>{"use strict";var t=n(6514);e.exports=new t({include:[n(2183)],implicit:[n(3714),n(1393)],explicit:[n(2551),n(6668),n(6039),n(9237)]})},6037:(e,r,n)=>{"use strict";var t=n(6514);e.exports=new t({explicit:[n(2672),n(5490),n(1173)]})},1571:(e,r,n)=>{"use strict";var t=n(6514);e.exports=new t({include:[n(6037)],implicit:[n(2671),n(4675),n(9963),n(5564)]})},967:(e,r,n)=>{"use strict";var t=n(5199);var o=["kind","resolve","construct","instanceOf","predicate","represent","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.defaultStyle=r["defaultStyle"]||null;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},2551:(e,r,n)=>{"use strict";var t;try{var o=require;t=o("buffer").Buffer}catch(e){}var s=n(967);var i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";function resolveYamlBinary(e){if(e===null)return false;var r,n,t=0,o=e.length,s=i;for(n=0;n64)continue;if(r<0)return false;t+=6}return t%8===0}function constructYamlBinary(e){var r,n,o=e.replace(/[\r\n=]/g,""),s=o.length,u=i,a=0,c=[];for(r=0;r>16&255);c.push(a>>8&255);c.push(a&255)}a=a<<6|u.indexOf(o.charAt(r))}n=s%4*6;if(n===0){c.push(a>>16&255);c.push(a>>8&255);c.push(a&255)}else if(n===18){c.push(a>>10&255);c.push(a>>2&255)}else if(n===12){c.push(a>>4&255)}if(t){return t.from?t.from(c):new t(c)}return c}function representYamlBinary(e){var r="",n=0,t,o,s=e.length,u=i;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]}o=s%3;if(o===0){r+=u[n>>18&63];r+=u[n>>12&63];r+=u[n>>6&63];r+=u[n&63]}else if(o===2){r+=u[n>>10&63];r+=u[n>>4&63];r+=u[n<<2&63];r+=u[64]}else if(o===1){r+=u[n>>2&63];r+=u[n<<4&63];r+=u[64];r+=u[64]}return r}function isBinary(e){return t&&t.isBuffer(e)}e.exports=new s("tag:yaml.org,2002:binary",{kind:"scalar",resolve:resolveYamlBinary,construct:constructYamlBinary,predicate:isBinary,represent:representYamlBinary})},4675:(e,r,n)=>{"use strict";var t=n(967);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"})},5564:(e,r,n)=>{"use strict";var t=n(9136);var o=n(967);var s=new RegExp("^(?:[-+]?(?:0|[1-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?"+"|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?"+"|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\\.[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,t,o;r=e.replace(/_/g,"").toLowerCase();n=r[0]==="-"?-1:1;o=[];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}else if(r.indexOf(":")>=0){r.split(":").forEach(function(e){o.unshift(parseFloat(e,10))});r=0;t=1;o.forEach(function(e){r+=e*t;t*=60});return n*r}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"})},9963:(e,r,n)=>{"use strict";var t=n(9136);var o=n(967);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?"0"+e.toString(8):"-0"+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"]}})},7278:(e,r,n)=>{"use strict";var t;try{var o=require;t=o("esprima")}catch(e){if(typeof window!=="undefined")t=window.esprima}var s=n(967);function resolveJavascriptFunction(e){if(e===null)return false;try{var r="("+e+")",n=t.parse(r,{range:true});if(n.type!=="Program"||n.body.length!==1||n.body[0].type!=="ExpressionStatement"||n.body[0].expression.type!=="ArrowFunctionExpression"&&n.body[0].expression.type!=="FunctionExpression"){return false}return true}catch(e){return false}}function constructJavascriptFunction(e){var r="("+e+")",n=t.parse(r,{range:true}),o=[],s;if(n.type!=="Program"||n.body.length!==1||n.body[0].type!=="ExpressionStatement"||n.body[0].expression.type!=="ArrowFunctionExpression"&&n.body[0].expression.type!=="FunctionExpression"){throw new Error("Failed to resolve function")}n.body[0].expression.params.forEach(function(e){o.push(e.name)});s=n.body[0].expression.body.range;if(n.body[0].expression.body.type==="BlockStatement"){return new Function(o,r.slice(s[0]+1,s[1]-1))}return new Function(o,"return "+r.slice(s[0],s[1]))}function representJavascriptFunction(e){return e.toString()}function isFunction(e){return Object.prototype.toString.call(e)==="[object Function]"}e.exports=new s("tag:yaml.org,2002:js/function",{kind:"scalar",resolve:resolveJavascriptFunction,construct:constructJavascriptFunction,predicate:isFunction,represent:representJavascriptFunction})},9242:(e,r,n)=>{"use strict";var t=n(967);function resolveJavascriptRegExp(e){if(e===null)return false;if(e.length===0)return false;var r=e,n=/\/([gim]*)$/.exec(e),t="";if(r[0]==="/"){if(n)t=n[1];if(t.length>3)return false;if(r[r.length-t.length-1]!=="/")return false}return true}function constructJavascriptRegExp(e){var r=e,n=/\/([gim]*)$/.exec(e),t="";if(r[0]==="/"){if(n)t=n[1];r=r.slice(1,r.length-t.length-1)}return new RegExp(r,t)}function representJavascriptRegExp(e){var r="/"+e.source+"/";if(e.global)r+="g";if(e.multiline)r+="m";if(e.ignoreCase)r+="i";return r}function isRegExp(e){return Object.prototype.toString.call(e)==="[object RegExp]"}e.exports=new t("tag:yaml.org,2002:js/regexp",{kind:"scalar",resolve:resolveJavascriptRegExp,construct:constructJavascriptRegExp,predicate:isRegExp,represent:representJavascriptRegExp})},5914:(e,r,n)=>{"use strict";var t=n(967);function resolveJavascriptUndefined(){return true}function constructJavascriptUndefined(){return undefined}function representJavascriptUndefined(){return""}function isUndefined(e){return typeof e==="undefined"}e.exports=new t("tag:yaml.org,2002:js/undefined",{kind:"scalar",resolve:resolveJavascriptUndefined,construct:constructJavascriptUndefined,predicate:isUndefined,represent:representJavascriptUndefined})},1173:(e,r,n)=>{"use strict";var t=n(967);e.exports=new t("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return e!==null?e:{}}})},1393:(e,r,n)=>{"use strict";var t=n(967);function resolveYamlMerge(e){return e==="<<"||e===null}e.exports=new t("tag:yaml.org,2002:merge",{kind:"scalar",resolve:resolveYamlMerge})},2671:(e,r,n)=>{"use strict";var t=n(967);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"}},defaultStyle:"lowercase"})},6668:(e,r,n)=>{"use strict";var t=n(967);var o=Object.prototype.hasOwnProperty;var s=Object.prototype.toString;function resolveYamlOmap(e){if(e===null)return true;var r=[],n,t,i,u,a,c=e;for(n=0,t=c.length;n{"use strict";var t=n(967);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(967);e.exports=new t("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return e!==null?e:[]}})},9237:(e,r,n)=>{"use strict";var t=n(967);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})},2672:(e,r,n)=>{"use strict";var t=n(967);e.exports=new t("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return e!==null?e:""}})},3714:(e,r,n)=>{"use strict";var t=n(967);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,a,c,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];a=+r[5];c=+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,a,c,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 a=parseFloat(u[1]);var c=(u[2]||"ms").toLowerCase();switch(c){case"years":case"year":case"yrs":case"yr":case"y":return a*i;case"weeks":case"week":case"w":return a*s;case"days":case"day":case"d":return a*o;case"hours":case"hour":case"hrs":case"hr":case"h":return a*t;case"minutes":case"minute":case"mins":case"min":case"m":return a*n;case"seconds":case"second":case"secs":case"sec":case"s":return a*r;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return a;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:a,appendTaskOptions:c,asArray:f,filterArray:l,filterPrimitives:p,filterString:h,filterStringOrStringArray:d,filterType:m,folderExists:g,getTrailingOptions:v,trailingFunctionArgument:b,trailingOptionsArgument:C}=n(847);const{branchTask:O,branchLocalTask:y,deleteBranchesTask:E,deleteBranchTask:T}=n(17);const{taskCallback:S}=n(8850);const{checkIsRepoTask:w}=n(221);const{cloneTask:A,cloneMirrorTask:R}=n(3173);const{addConfigTask:k,listConfigTask:D}=n(7597);const{cleanWithOptionsTask:F,isCleanOptionsArray:M}=n(4386);const{commitTask:P}=n(5494);const{diffSummaryTask:j}=n(9241);const{fetchTask:L}=n(8823);const{hashObjectTask:x}=n(8199);const{initTask:I}=n(6016);const{logTask:B,parseLogOptions:G}=n(8627);const{mergeTask:U}=n(8829);const{moveTask:$}=n(6520);const{pullTask:q}=n(4636);const{pushTagsTask:N,pushTask:Y}=n(1435);const{addRemoteTask:W,getRemotesTask:H,listRemotesTask:z,remoteTask:V,removeRemoteTask:J}=n(9866);const{getResetMode:_,resetTask:Q}=n(2377);const{stashListTask:Z}=n(810);const{statusTask:X}=n(9197);const{addSubModuleTask:K,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 ae=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(!g(e)){throw new Error(`Git.cwd: cannot change to non-directory "${e}"`)}return this._executor.cwd=e});return this._runTask(r,b(arguments)||a)};Git.prototype.outputHandler=function(e){this._executor.outputHandler=e;return this};Git.prototype.init=function(e,r){return this._runTask(I(e===true,this._executor.cwd,v(arguments)),b(arguments))};Git.prototype.status=function(){return this._runTask(X(v(arguments)),b(arguments))};Git.prototype.stashList=function(e){return this._runTask(Z(C(arguments)||{},l(e)&&e||[]),b(arguments))};Git.prototype.stash=function(e,r){return this._runTask(ie(["stash",...v(arguments)]),b(arguments))};function createCloneTask(e,r,n,t){if(typeof n!=="string"){return u(`git.${e}() requires a string 'repoPath'`)}return r(n,m(t,h),v(arguments))}Git.prototype.clone=function(){return this._runTask(createCloneTask("clone",A,...arguments),b(arguments))};Git.prototype.mirror=function(){return this._runTask(createCloneTask("mirror",R,...arguments),b(arguments))};Git.prototype.mv=function(e,r){return this._runTask($(e,r),b(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),b(arguments))};Git.prototype.commit=function(e,r,n,t){const o=b(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(m(r,d,[])),[...m(n,l,[]),...v(arguments,0,true)]),o)};Git.prototype.pull=function(e,r,n,t){return this._runTask(q(m(e,h),m(r,h),v(arguments)),b(arguments))};Git.prototype.fetch=function(e,r){return this._runTask(L(m(e,h),m(r,h),v(arguments)),b(arguments))};Git.prototype.silent=function(e){this._logger.silent(!!e);return this};Git.prototype.tags=function(e,r){return this._runTask(se(v(arguments)),b(arguments))};Git.prototype.rebase=function(){return this._run(["rebase"].concat(v(arguments)),b(arguments))};Git.prototype.reset=function(e,r){return this._runTask(Q(_(e),v(arguments)),b(arguments))};Git.prototype.revert=function(e){const r=b(arguments);if(typeof e!=="string"){return this._runTask(u("Commit must be a string"),r)}return this._run(["revert",...v(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,b(arguments))};Git.prototype.addAnnotatedTag=function(e,r,n){return this._runTask(te(e,r),b(arguments))};Git.prototype.checkout=function(e,r){const n=["checkout",...v(arguments,true)];return this._runTask(ie(n),b(arguments))};Git.prototype.checkoutBranch=function(e,r,n){return this.checkout(["-b",e,r],b(arguments))};Git.prototype.checkoutLocalBranch=function(e,r){return this.checkout(["-b",e],b(arguments))};Git.prototype.deleteLocalBranch=function(e,r,n){return this._runTask(T(e,typeof r==="boolean"?r:false),b(arguments))};Git.prototype.deleteLocalBranches=function(e,r,n){return this._runTask(E(e,typeof r==="boolean"?r:false),b(arguments))};Git.prototype.branch=function(e,r){return this._runTask(O(v(arguments)),b(arguments))};Git.prototype.branchLocal=function(e){return this._runTask(y(),b(arguments))};Git.prototype.addConfig=function(e,r,n,t){return this._runTask(k(e,r,typeof n==="boolean"?n:false),b(arguments))};Git.prototype.listConfig=function(){return this._runTask(D(),b(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 a=n(5131);Object.defineProperty(r,"GitResponseError",{enumerable:true,get:function(){return a.GitResponseError}});var c=n(740);Object.defineProperty(r,"TaskConfigurationError",{enumerable:true,get:function(){return c.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 a=typeof n==="string"?s.extend(n):n;const c=childLoggerName(o.filterType(n,o.filterString),a,s);return step(t);function destroy(){u.forEach(e=>e.destroy());u.length=0}function child(r){return o.append(u,createLogger(e,a&&a.extend(r)||r))}function sibling(r,n){return o.append(u,createLogger(e,c.replace(/^[^:]+/,r),n,s))}function step(r){const n=r&&`[${r}]`||"";const t=a&&prefixedLogger(a,n)||o.NOOP;const u=prefixedLogger(s,`${i} ${n}`,t);return Object.assign(a?t:u,{key:c,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 a=e=>{return o.parseStringResponse(new t.BranchDeletionBatch,u,e)};r.parseBranchDeletions=a;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 a=e=>{return o.parseStringResponse(new t.MergeSummaryDetail,i,e)};r.parseMergeDetail=a},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 a=/^(create|delete) mode \d+ (.+)/;const c=[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(a,(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,c,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 a=s.split(" ");while(a.length){const e=a.shift();if(e==="in"){u=a.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 a=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 a.callTaskParser(e.parser,t)}return a.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`,a.objectToString(e));i(new a.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 a.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 a=[];const c=[];let f=false;function attemptClose(e,r="retry"){if(f||c.length||a.length){s.info(`exitCode=%s event=%s`,e,r);u({stdOut:a,stdErr:c,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(a,"stdOut",s,t.step("stdOut")));l.stderr.on("data",onDataReceived(c,"stdErr",s,t.step("stdErr")));l.on("error",onErrorReceived(c,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 a=[];const c=[`--pretty=format:${t.START_BOUNDARY}${u}${t.COMMIT_BOUNDARY}`,...r];const f=e.n||e["max-count"]||e.maxCount;if(f){c.push(`--max-count=${f}`)}if(e.from&&e.to){const r=e.symmetric!==false?"...":"..";a.push(`${e.from}${r}${e.to}`)}if(e.file){a.push("--follow",e.file)}o.appendTaskOptions(userOptions(e),c);return{fields:i,splitter:n,commands:[...c,...a]}}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(3518);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 a=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=a},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(3518),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(3518);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(3518);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},3518:(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(6545));const u=o(n(5622));const a=o(n(1477));const c=o(n(1917));const f=n(2629);const l=u.default.join(process.cwd(),f.getInput("cwd")||"");const p=a.default({baseDir:l});console.log(`Running in ${l}`);(()=>t(void 0,void 0,void 0,function*(){var e;yield checkInputs().catch(s.setFailed);s.startGroup("Internal logs");s.info("> Staging files...");if(f.getInput("add")){s.info("> Adding files...");yield add()}else s.info("> No files to add.");if(f.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 p.diffSummary(["--cached"])).files.length;if(r>0){s.info(`> Found ${r} changed files.`);yield p.addConfig("user.email",f.getInput("author_email"),undefined,f.log).addConfig("user.name",f.getInput("author_name"),undefined,f.log);s.debug("> Current git config\n"+JSON.stringify((yield p.listConfig()).all,null,2));yield p.fetch(["--tags","--force"],f.log);s.info("> Switching/creating branch...");yield p.checkout(f.getInput("branch"),undefined,f.log).catch(()=>p.checkoutLocalBranch(f.getInput("branch"),f.log));s.info("> Pulling from remote...");yield p.fetch(undefined,f.log).pull(undefined,undefined,{[f.getInput("pull_strategy")]:null},f.log);s.info("> Re-staging files...");if(f.getInput("add"))yield add({ignoreErrors:true});if(f.getInput("remove"))yield remove({ignoreErrors:true});s.info("> Creating commit...");yield p.commit(f.getInput("message"),undefined,Object.assign({"--author":`"${f.getInput("author_name")} <${f.getInput("author_email")}>"`},f.getInput("signoff")?{"--signoff":null}:{}),(e,r)=>{if(r)f.setOutput("committed","true");return f.log(e,r)});if(f.getInput("tag")){s.info("> Tagging commit...");yield p.tag(f.getInput("tag").split(" "),(e,r)=>{if(r)f.setOutput("tagged","true");return f.log(e,r)}).then(e=>{f.setOutput("tagged","true");return f.log(null,e)}).catch(e=>s.setFailed(e))}else s.info("> No tag info provided.");const n=(e=f.parseBool(f.getInput("push")))!==null&&e!==void 0?e:f.getInput("push");if(n){s.info("> Pushing commit to repo...");if(n===true){s.debug(`Running: git push origin ${f.getInput("branch")} --set-upstream`);yield p.push("origin",f.getInput("branch"),{"--set-upstream":null},(e,r)=>{if(r)f.setOutput("pushed","true");return f.log(e,r)})}else{s.debug(`Running: git push ${n}`);yield p.push(undefined,undefined,n.split(" "),(e,r)=>{if(r)f.setOutput("pushed","true");return f.log(e,r)})}if(f.getInput("tag")){s.info("> Pushing tags to repo...");yield p.pushTags("origin",undefined,(e,r)=>f.log(undefined,e||r)).catch(()=>{s.info("> Tag push failed: deleting remote tag and re-pushing...");return p.push(undefined,undefined,{"--delete":null,origin:null,[f.getInput("tag").split(" ").filter(e=>!e.startsWith("-"))[0]]:null},f.log).pushTags("origin",undefined,f.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,u,a,c,l,p;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(!f.getInput(e))setInput(e,r);return f.getInput(e)}const t=process.env.GITHUB_EVENT_PATH,h=t&&require(t),d=(e=process.env.GITHUB_EVENT_NAME)===null||e===void 0?void 0:e.includes("pull_request"),m=((n=(r=h===null||h===void 0?void 0:h.pull_request)===null||r===void 0?void 0:r.head)===null||n===void 0?void 0:n.sha)||process.env.GITHUB_SHA,g=d?(u=(o=h===null||h===void 0?void 0:h.pull_request)===null||o===void 0?void 0:o.head)===null||u===void 0?void 0:u.ref:(a=process.env.GITHUB_REF)===null||a===void 0?void 0:a.substring(11);let v=process.env.GITHUB_TOKEN;if(v){s.debug("Using token from GITHUB_TOKEN env variable.");s.warning("The GITHUB_TOKEN env variable is deprecated and will not be supported in the next major release. Use the 'token' input, "+"which defaults to 'secrets.GITHUB_TOKEN'.")}else{s.debug("Using token from token input.");v=f.getInput("token")}if(!f.getInput("add")&&!f.getInput("remove"))throw new Error("Both 'add' and 'remove' are empty, the action has nothing to do.");if(f.getInput("add")){const e=parseInputArray(f.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(f.getInput("remove")){const e=parseInputArray(f.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")}if(f.getInput("author_name")&&f.getInput("author_email")){s.info("> Using author info from inputs...")}else{s.info("> Some author info is missing, filling from workflow event...");let e=(c=h===null||h===void 0?void 0:h.head_commit)===null||c===void 0?void 0:c.author;if(m&&!e){s.info("> Unable to get commit from workflow event: trying with the GitHub API...");const r=`https://api.github.com/repos/${process.env.GITHUB_REPOSITORY}/commits/${m}`,n=v?{Authorization:`Bearer ${v}`}:undefined,t=(l=yield i.default.get(r,{headers:n}).catch(e=>{s.startGroup("Request error:");s.info(`> Request URL: ${r}\b${e}`);s.endGroup();return undefined}))===null||l===void 0?void 0:l.data;e=(p=t===null||t===void 0?void 0:t.commit)===null||p===void 0?void 0:p.author}if(typeof e=="object"){setDefault("author_name",e.name);setDefault("author_email",e.email)}if(!f.getInput("author_name")||!f.getInput("author_email")){const e=!t?"event path":d?m?"fetch commit":"find commit sha":!(h===null||h===void 0?void 0:h.head_commit)?"find commit":"find commit author";s.warning(`Unable to fetch author info: couldn't ${e}.`);setDefault("author_name","Add & Commit Action");setDefault("author_email","actions@github.com")}}s.info(`> Using '${f.getInput("author_name")} <${f.getInput("author_email")}>' as author.`);setDefault("message",`Commit from GitHub Actions (${process.env.GITHUB_WORKFLOW})`);s.info(`> Using "${f.getInput("message")}" as commit message.`);const b=setDefault("branch",g||"");if(d)s.info(`> Running for a PR, the action will use '${b}' as ref.`);if(f.getInput("signoff")){const e=f.parseBool(f.getInput("signoff"));if(e===undefined)throw new Error(`"${f.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: ${f.getInput("signoff")} (${typeof f.getInput("signoff")})`)}if(f.getInput("push")){const e=f.parseBool(f.getInput("push"));s.debug(`Current push option: '${f.getInput("push")}' (parsed as ${typeof e})`)}})}function add({logWarning:e=true,ignoreErrors:r=false}={}){return t(this,void 0,void 0,function*(){const n=f.getInput("add");if(!n)return[];const t=parseInputArray(n);const o=[];for(const n of t){o.push(yield p.add(n.split(" "),(e,n)=>f.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=f.getInput("remove");if(!n)return[];const t=parseInputArray(n);const o=[];for(const n of t){o.push(yield p.rm(n.split(" "),(e,n)=>f.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.safeLoad(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 f.outputs){s.info(`${e}: ${f.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])},696:e=>{"use strict";e.exports=JSON.parse('{"_args":[["axios@0.21.1","/home/runner/work/add-and-commit/add-and-commit"]],"_from":"axios@0.21.1","_id":"axios@0.21.1","_inBundle":false,"_integrity":"sha512-dKQiRHxGD9PPRIUNIWvZhPTPpl1rf/OxTYKsqKUDjBwYylTvV7SjSHJb9ratfyzM6wCdLCOYLzs73qpg5c4iGA==","_location":"/axios","_phantomChildren":{},"_requested":{"type":"version","registry":true,"raw":"axios@0.21.1","name":"axios","escapedName":"axios","rawSpec":"0.21.1","saveSpec":null,"fetchSpec":"0.21.1"},"_requiredBy":["/"],"_resolved":"https://registry.npmjs.org/axios/-/axios-0.21.1.tgz","_spec":"0.21.1","_where":"/home/runner/work/add-and-commit/add-and-commit","author":{"name":"Matt Zabriskie"},"browser":{"./lib/adapters/http.js":"./lib/adapters/xhr.js"},"bugs":{"url":"https://github.com/axios/axios/issues"},"bundlesize":[{"path":"./dist/axios.min.js","threshold":"5kB"}],"dependencies":{"follow-redirects":"^1.10.0"},"description":"Promise based HTTP client for the browser and node.js","devDependencies":{"bundlesize":"^0.17.0","coveralls":"^3.0.0","es6-promise":"^4.2.4","grunt":"^1.0.2","grunt-banner":"^0.6.0","grunt-cli":"^1.2.0","grunt-contrib-clean":"^1.1.0","grunt-contrib-watch":"^1.0.0","grunt-eslint":"^20.1.0","grunt-karma":"^2.0.0","grunt-mocha-test":"^0.13.3","grunt-ts":"^6.0.0-beta.19","grunt-webpack":"^1.0.18","istanbul-instrumenter-loader":"^1.0.0","jasmine-core":"^2.4.1","karma":"^1.3.0","karma-chrome-launcher":"^2.2.0","karma-coverage":"^1.1.1","karma-firefox-launcher":"^1.1.0","karma-jasmine":"^1.1.1","karma-jasmine-ajax":"^0.1.13","karma-opera-launcher":"^1.0.0","karma-safari-launcher":"^1.0.0","karma-sauce-launcher":"^1.2.0","karma-sinon":"^1.0.5","karma-sourcemap-loader":"^0.3.7","karma-webpack":"^1.7.0","load-grunt-tasks":"^3.5.2","minimist":"^1.2.0","mocha":"^5.2.0","sinon":"^4.5.0","typescript":"^2.8.1","url-search-params":"^0.10.0","webpack":"^1.13.1","webpack-dev-server":"^1.14.1"},"homepage":"https://github.com/axios/axios","jsdelivr":"dist/axios.min.js","keywords":["xhr","http","ajax","promise","node"],"license":"MIT","main":"index.js","name":"axios","repository":{"type":"git","url":"git+https://github.com/axios/axios.git"},"scripts":{"build":"NODE_ENV=production grunt build","coveralls":"cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js","examples":"node ./examples/server.js","fix":"eslint --fix lib/**/*.js","postversion":"git push && git push --tags","preversion":"npm test","start":"node ./sandbox/server.js","test":"grunt test && bundlesize","version":"npm run build && grunt version && git add -A dist && git add CHANGELOG.md bower.json package.json"},"typings":"./index.d.ts","unpkg":"dist/axios.min.js","version":"0.21.1"}')},2357:e=>{"use strict";e.exports=require("assert")},3129:e=>{"use strict";e.exports=require("child_process")},5747:e=>{"use strict";e.exports=require("fs")},8605:e=>{"use strict";e.exports=require("http")},7211:e=>{"use strict";e.exports=require("https")},2087:e=>{"use strict";e.exports=require("os")},5622:e=>{"use strict";e.exports=require("path")},2413:e=>{"use strict";e.exports=require("stream")},3867:e=>{"use strict";e.exports=require("tty")},8835:e=>{"use strict";e.exports=require("url")},1669:e=>{"use strict";e.exports=require("util")},8761:e=>{"use strict";e.exports=require("zlib")}};var r={};function __webpack_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,__webpack_require__);o=false}finally{if(o)delete r[n]}return t.exports}__webpack_require__.ab=__dirname+"/";return __webpack_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(916);e.exports=t},916:(e,r,n)=>{"use strict";var t=n(5190);var o=n(3034);function deprecated(e){return function(){throw new Error("Function "+e+" is deprecated and cannot be used.")}}e.exports.Type=n(967);e.exports.Schema=n(6514);e.exports.FAILSAFE_SCHEMA=n(6037);e.exports.JSON_SCHEMA=n(1571);e.exports.CORE_SCHEMA=n(2183);e.exports.DEFAULT_SAFE_SCHEMA=n(8949);e.exports.DEFAULT_FULL_SCHEMA=n(6874);e.exports.load=t.load;e.exports.loadAll=t.loadAll;e.exports.safeLoad=t.safeLoad;e.exports.safeLoadAll=t.safeLoadAll;e.exports.dump=o.dump;e.exports.safeDump=o.safeDump;e.exports.YAMLException=n(5199);e.exports.MINIMAL_SCHEMA=n(6037);e.exports.SAFE_SCHEMA=n(8949);e.exports.DEFAULT_SCHEMA=n(6874);e.exports.scan=deprecated("scan");e.exports.parse=deprecated("parse");e.exports.compose=deprecated("compose");e.exports.addConstructor=deprecated("addConstructor")},9136: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(9136);var o=n(5199);var s=n(6874);var i=n(8949);var u=Object.prototype.toString;var c=Object.prototype.hasOwnProperty;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 S=45;var T=58;var E=61;var A=62;var w=63;var y=64;var k=91;var F=93;var D=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"];function compileStyleMap(e,r){var n,t,o,s,i,u,a;if(r===null)return{};n={};t=Object.keys(r);for(o=0,s=t.length;o0?e.charCodeAt(s-1):null;h=h&&isPlainSafe(i,u)}}else{for(s=0;st&&e[p+1]!==" ";p=s}}else if(!isPrintable(i)){return x}u=s>0?e.charCodeAt(s-1):null;h=h&&isPlainSafe(i,u)}a=a||l&&(s-p-1>t&&e[p+1]!==" ")}if(!c&&!a){return h&&!o(e)?I:G}if(n>9&&needIndentIndicator(e)){return x}return a?$:B}function writeScalar(e,r,n,t){e.dump=function(){if(r.length===0){return"''"}if(!e.noCompatMode&&L.indexOf(r)!==-1){return"'"+r+"'"}var s=e.indent*Math.max(1,n);var i=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-s);var u=t||e.flowLevel>-1&&n>=e.flowLevel;function testAmbiguity(r){return testImplicitResolving(e,r)}switch(chooseScalarStyle(r,u,e.indent,i,testAmbiguity)){case I:return r;case G:return"'"+r.replace(/'/g,"''")+"'";case B:return"|"+blockHeader(r,e.indent)+dropEndingNewline(indentString(r,s));case $:return">"+blockHeader(r,e.indent)+dropEndingNewline(indentString(foldString(r,i),s));case x:return'"'+escapeString(r,i)+'"';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,t;var o;for(var s=0;s=55296&&n<=56319){t=e.charCodeAt(s+1);if(t>=56320&&t<=57343){r+=encodeHex((n-55296)*1024+t-56320+65536);s++;continue}}o=j[n];r+=!o&&isPrintable(n)?e[s]:o||encodeHex(n)}return r}function writeFlowSequence(e,r,n){var t="",o=e.tag,s,i;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,i,a,f,l;s=n?e.explicitTypes:e.implicitTypes;for(i=0,a=s.length;i tag resolver accepts not "'+l+'" style')}e.dump=t}return true}}return false}function writeNode(e,r,n,t,s,i){e.tag=null;e.dump=n;if(!detectType(e,n,false)){detectType(e,n,true)}var c=u.call(e.dump);if(t){t=e.flowLevel<0||e.flowLevel>r}var a=c==="[object Object]"||c==="[object Array]",f,l;if(a){f=e.duplicates.indexOf(n);l=f!==-1}if(e.tag!==null&&e.tag!=="?"||l||e.indent!==2&&r>0){s=false}if(l&&e.usedDuplicates[f]){e.dump="*ref_"+f}else{if(a&&l&&!e.usedDuplicates[f]){e.usedDuplicates[f]=true}if(c==="[object Object]"){if(t&&Object.keys(e.dump).length!==0){writeBlockMapping(e,r,e.dump,s);if(l){e.dump="&ref_"+f+e.dump}}else{writeFlowMapping(e,r,e.dump);if(l){e.dump="&ref_"+f+" "+e.dump}}}else if(c==="[object Array]"){var p=e.noArrayIndent&&r>0?r-1:r;if(t&&e.dump.length!==0){writeBlockSequence(e,p,e.dump,s);if(l){e.dump="&ref_"+f+e.dump}}else{writeFlowSequence(e,p,e.dump);if(l){e.dump="&ref_"+f+" "+e.dump}}}else if(c==="[object String]"){if(e.tag!=="?"){writeScalar(e,e.dump,r,i)}}else{if(e.skipInvalid)return false;throw new o("unacceptable kind of an object to dump "+c)}if(e.tag!==null&&e.tag!=="?"){e.dump="!<"+e.tag+"> "+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 YAMLException(e,r){Error.call(this);this.name="YAMLException";this.reason=e;this.mark=r;this.message=(this.reason||"(unknown reason)")+(this.mark?" "+this.mark.toString():"");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){var r=this.name+": ";r+=this.reason||"(unknown reason)";if(!e&&this.mark){r+=" "+this.mark.toString()}return r};e.exports=YAMLException},5190:(e,r,n)=>{"use strict";var t=n(9136);var o=n(5199);var s=n(5426);var i=n(8949);var u=n(6874);var c=Object.prototype.hasOwnProperty;var a=1;var f=2;var l=3;var p=4;var h=1;var d=2;var g=3;var m=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/;var b=/[\x85\u2028\u2029]/;var v=/[,\[\]\{\}]/;var C=/^(?:!|!!|![a-z\-]+!)$/i;var O=/^(?:!|[^,\[\]\{\}])(?:%[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 S=new Array(256);var T=new Array(256);for(var E=0;E<256;E++){S[E]=simpleEscapeSequence(E)?1:0;T[E]=simpleEscapeSequence(E)}function State(e,r){this.input=e;this.filename=r["filename"]||null;this.schema=r["schema"]||u;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.documents=[]}function generateError(e,r){return new o(r,new s(e.filename,e.input,e.position,e.line,e.position-e.lineStart))}function throwError(e,r){throw generateError(e,r)}function throwWarning(e,r){if(e.onWarning){e.onWarning.call(null,generateError(e,r))}}var A={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(!C.test(t)){throwError(e,"ill-formed tag handle (first argument) of the TAG directive")}if(c.call(e.tagMap,t)){throwError(e,'there is a previously declared suffix for "'+t+'" tag handle')}if(!O.test(o)){throwError(e,"ill-formed tag prefix (second argument) of the TAG directive")}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&&S[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=e.tag,s,i=e.anchor,u,c,f,l,p,h={},d,g,m,b;b=e.input.charCodeAt(e.position);if(b===91){c=93;p=false;s=[]}else if(b===123){c=125;p=true;s={}}else{return false}if(e.anchor!==null){e.anchorMap[e.anchor]=s}b=e.input.charCodeAt(++e.position);while(b!==0){skipSeparationSpace(e,true,r);b=e.input.charCodeAt(e.position);if(b===c){e.position++;e.tag=o;e.anchor=i;e.kind=p?"mapping":"sequence";e.result=s;return true}else if(!n){throwError(e,"missed comma between flow collection entries")}g=d=m=null;f=l=false;if(b===63){u=e.input.charCodeAt(e.position+1);if(is_WS_OR_EOL(u)){f=l=true;e.position++;skipSeparationSpace(e,true,r)}}t=e.line;composeNode(e,r,a,false,true);g=e.tag;d=e.result;skipSeparationSpace(e,true,r);b=e.input.charCodeAt(e.position);if((l||e.line===t)&&b===58){f=true;b=e.input.charCodeAt(++e.position);skipSeparationSpace(e,true,r);composeNode(e,r,a,false,true);m=e.result}if(p){storeMappingPair(e,s,h,g,d,m)}else if(f){s.push(storeMappingPair(e,null,h,g,d,m))}else{s.push(d)}skipSeparationSpace(e,true,r);b=e.input.charCodeAt(e.position);if(b===44){n=true;b=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=h,i=false,u=false,c=r,a=0,f=false,l,p;p=e.input.charCodeAt(e.position);if(p===124){o=false}else if(p===62){o=true}else{return false}e.kind="scalar";e.result="";while(p!==0){p=e.input.charCodeAt(++e.position);if(p===43||p===45){if(h===s){s=p===43?g:d}else{throwError(e,"repeat of a chomping mode identifier")}}else if((l=fromDecimalCode(p))>=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(p)){do{p=e.input.charCodeAt(++e.position)}while(is_WHITE_SPACE(p));if(p===35){do{p=e.input.charCodeAt(++e.position)}while(!is_EOL(p)&&p!==0)}}while(p!==0){readLineBreak(e);e.lineIndent=0;p=e.input.charCodeAt(e.position);while((!u||e.lineIndentc){c=e.lineIndent}if(is_EOL(p)){a++;continue}if(e.lineIndentr)&&c!==0){throwError(e,"bad indentation of a sequence entry")}else if(e.lineIndentr){if(composeNode(e,r,p,true,o)){if(m){d=e.result}else{g=e.result}}if(!m){storeMappingPair(e,a,l,h,d,g,s,i);h=d=g=null}skipSeparationSpace(e,true,-1);v=e.input.charCodeAt(e.position)}if(e.lineIndent>r&&v!==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 tag; it should be "'+v.kind+'", not "'+e.kind+'"')}if(!v.resolve(e.result)){throwError(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}else{e.result=v.construct(e.result);if(e.anchor!==null){e.anchorMap[e.anchor]=e.result}}}else{throwError(e,"unknown tag !<"+e.tag+">")}}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={};e.anchorMap={};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(c.call(A,t)){A[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,p,false,true);skipSeparationSpace(e,true,-1);if(e.checkLineBreaks&&b.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(9136);function Mark(e,r,n,t,o){this.name=e;this.buffer=r;this.position=n;this.line=t;this.column=o}Mark.prototype.getSnippet=function getSnippet(e,r){var n,o,s,i,u;if(!this.buffer)return null;e=e||4;r=r||75;n="";o=this.position;while(o>0&&"\0\r\n…\u2028\u2029".indexOf(this.buffer.charAt(o-1))===-1){o-=1;if(this.position-o>r/2-1){n=" ... ";o+=5;break}}s="";i=this.position;while(ir/2-1){s=" ... ";i-=5;break}}u=this.buffer.slice(o,i);return t.repeat(" ",e)+n+u+s+"\n"+t.repeat(" ",e+this.position-o+n.length)+"^"};Mark.prototype.toString=function toString(e){var r,n="";if(this.name){n+='in "'+this.name+'" '}n+="at line "+(this.line+1)+", column "+(this.column+1);if(!e){r=this.getSnippet();if(r){n+=":\n"+r}}return n};e.exports=Mark},6514:(e,r,n)=>{"use strict";var t=n(9136);var o=n(5199);var s=n(967);function compileList(e,r,n){var t=[];e.include.forEach(function(e){n=compileList(e,r,n)});e[r].forEach(function(e){n.forEach(function(r,n){if(r.tag===e.tag&&r.kind===e.kind){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:{}},r,n;function collectType(r){e[r.kind][r.tag]=e["fallback"][r.tag]=r}for(r=0,n=arguments.length;r{"use strict";var t=n(6514);e.exports=new t({include:[n(1571)]})},6874:(e,r,n)=>{"use strict";var t=n(6514);e.exports=t.DEFAULT=new t({include:[n(8949)],explicit:[n(5914),n(9242),n(7278)]})},8949:(e,r,n)=>{"use strict";var t=n(6514);e.exports=new t({include:[n(2183)],implicit:[n(3714),n(1393)],explicit:[n(2551),n(6668),n(6039),n(9237)]})},6037:(e,r,n)=>{"use strict";var t=n(6514);e.exports=new t({explicit:[n(2672),n(5490),n(1173)]})},1571:(e,r,n)=>{"use strict";var t=n(6514);e.exports=new t({include:[n(6037)],implicit:[n(2671),n(4675),n(9963),n(5564)]})},967:(e,r,n)=>{"use strict";var t=n(5199);var o=["kind","resolve","construct","instanceOf","predicate","represent","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.defaultStyle=r["defaultStyle"]||null;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},2551:(e,r,n)=>{"use strict";var t;try{var o=require;t=o("buffer").Buffer}catch(e){}var s=n(967);var i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";function resolveYamlBinary(e){if(e===null)return false;var r,n,t=0,o=e.length,s=i;for(n=0;n64)continue;if(r<0)return false;t+=6}return t%8===0}function constructYamlBinary(e){var r,n,o=e.replace(/[\r\n=]/g,""),s=o.length,u=i,c=0,a=[];for(r=0;r>16&255);a.push(c>>8&255);a.push(c&255)}c=c<<6|u.indexOf(o.charAt(r))}n=s%4*6;if(n===0){a.push(c>>16&255);a.push(c>>8&255);a.push(c&255)}else if(n===18){a.push(c>>10&255);a.push(c>>2&255)}else if(n===12){a.push(c>>4&255)}if(t){return t.from?t.from(a):new t(a)}return a}function representYamlBinary(e){var r="",n=0,t,o,s=e.length,u=i;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]}o=s%3;if(o===0){r+=u[n>>18&63];r+=u[n>>12&63];r+=u[n>>6&63];r+=u[n&63]}else if(o===2){r+=u[n>>10&63];r+=u[n>>4&63];r+=u[n<<2&63];r+=u[64]}else if(o===1){r+=u[n>>2&63];r+=u[n<<4&63];r+=u[64];r+=u[64]}return r}function isBinary(e){return t&&t.isBuffer(e)}e.exports=new s("tag:yaml.org,2002:binary",{kind:"scalar",resolve:resolveYamlBinary,construct:constructYamlBinary,predicate:isBinary,represent:representYamlBinary})},4675:(e,r,n)=>{"use strict";var t=n(967);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"})},5564:(e,r,n)=>{"use strict";var t=n(9136);var o=n(967);var s=new RegExp("^(?:[-+]?(?:0|[1-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?"+"|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?"+"|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\\.[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,t,o;r=e.replace(/_/g,"").toLowerCase();n=r[0]==="-"?-1:1;o=[];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}else if(r.indexOf(":")>=0){r.split(":").forEach(function(e){o.unshift(parseFloat(e,10))});r=0;t=1;o.forEach(function(e){r+=e*t;t*=60});return n*r}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"})},9963:(e,r,n)=>{"use strict";var t=n(9136);var o=n(967);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?"0"+e.toString(8):"-0"+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"]}})},7278:(e,r,n)=>{"use strict";var t;try{var o=require;t=o("esprima")}catch(e){if(typeof window!=="undefined")t=window.esprima}var s=n(967);function resolveJavascriptFunction(e){if(e===null)return false;try{var r="("+e+")",n=t.parse(r,{range:true});if(n.type!=="Program"||n.body.length!==1||n.body[0].type!=="ExpressionStatement"||n.body[0].expression.type!=="ArrowFunctionExpression"&&n.body[0].expression.type!=="FunctionExpression"){return false}return true}catch(e){return false}}function constructJavascriptFunction(e){var r="("+e+")",n=t.parse(r,{range:true}),o=[],s;if(n.type!=="Program"||n.body.length!==1||n.body[0].type!=="ExpressionStatement"||n.body[0].expression.type!=="ArrowFunctionExpression"&&n.body[0].expression.type!=="FunctionExpression"){throw new Error("Failed to resolve function")}n.body[0].expression.params.forEach(function(e){o.push(e.name)});s=n.body[0].expression.body.range;if(n.body[0].expression.body.type==="BlockStatement"){return new Function(o,r.slice(s[0]+1,s[1]-1))}return new Function(o,"return "+r.slice(s[0],s[1]))}function representJavascriptFunction(e){return e.toString()}function isFunction(e){return Object.prototype.toString.call(e)==="[object Function]"}e.exports=new s("tag:yaml.org,2002:js/function",{kind:"scalar",resolve:resolveJavascriptFunction,construct:constructJavascriptFunction,predicate:isFunction,represent:representJavascriptFunction})},9242:(e,r,n)=>{"use strict";var t=n(967);function resolveJavascriptRegExp(e){if(e===null)return false;if(e.length===0)return false;var r=e,n=/\/([gim]*)$/.exec(e),t="";if(r[0]==="/"){if(n)t=n[1];if(t.length>3)return false;if(r[r.length-t.length-1]!=="/")return false}return true}function constructJavascriptRegExp(e){var r=e,n=/\/([gim]*)$/.exec(e),t="";if(r[0]==="/"){if(n)t=n[1];r=r.slice(1,r.length-t.length-1)}return new RegExp(r,t)}function representJavascriptRegExp(e){var r="/"+e.source+"/";if(e.global)r+="g";if(e.multiline)r+="m";if(e.ignoreCase)r+="i";return r}function isRegExp(e){return Object.prototype.toString.call(e)==="[object RegExp]"}e.exports=new t("tag:yaml.org,2002:js/regexp",{kind:"scalar",resolve:resolveJavascriptRegExp,construct:constructJavascriptRegExp,predicate:isRegExp,represent:representJavascriptRegExp})},5914:(e,r,n)=>{"use strict";var t=n(967);function resolveJavascriptUndefined(){return true}function constructJavascriptUndefined(){return undefined}function representJavascriptUndefined(){return""}function isUndefined(e){return typeof e==="undefined"}e.exports=new t("tag:yaml.org,2002:js/undefined",{kind:"scalar",resolve:resolveJavascriptUndefined,construct:constructJavascriptUndefined,predicate:isUndefined,represent:representJavascriptUndefined})},1173:(e,r,n)=>{"use strict";var t=n(967);e.exports=new t("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return e!==null?e:{}}})},1393:(e,r,n)=>{"use strict";var t=n(967);function resolveYamlMerge(e){return e==="<<"||e===null}e.exports=new t("tag:yaml.org,2002:merge",{kind:"scalar",resolve:resolveYamlMerge})},2671:(e,r,n)=>{"use strict";var t=n(967);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"}},defaultStyle:"lowercase"})},6668:(e,r,n)=>{"use strict";var t=n(967);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(967);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(967);e.exports=new t("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return e!==null?e:[]}})},9237:(e,r,n)=>{"use strict";var t=n(967);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})},2672:(e,r,n)=>{"use strict";var t=n(967);e.exports=new t("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return e!==null?e:""}})},3714:(e,r,n)=>{"use strict";var t=n(967);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:S,deleteBranchesTask:T,deleteBranchTask:E}=n(17);const{taskCallback:A}=n(8850);const{checkIsRepoTask:w}=n(221);const{cloneTask:y,cloneMirrorTask:k}=n(3173);const{addConfigTask:F,listConfigTask:D}=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(8627);const{mergeTask:x}=n(8829);const{moveTask:U}=n(6520);const{pullTask:Y}=n(4636);const{pushTagsTask:W,pushTask:N}=n(1435);const{addRemoteTask:q,getRemotesTask:z,listRemotesTask:J,remoteTask:V,removeRemoteTask:H}=n(9866);const{getResetMode:Q,resetTask:Z}=n(2377);const{stashListTask:X}=n(810);const{statusTask:_}=n(9197);const{addSubModuleTask:K,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(_(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",y,...arguments),v(arguments))};Git.prototype.mirror=function(){return this._runTask(createCloneTask("mirror",k,...arguments),v(arguments))};Git.prototype.mv=function(e,r){return this._runTask(U(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(Y(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(Q(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(T(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(S(),v(arguments))};Git.prototype.addConfig=function(e,r,n,t){return this._runTask(F(e,r,typeof n==="boolean"?n:false),v(arguments))};Git.prototype.listConfig=function(){return this._runTask(D(),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.safeLoad(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 __webpack_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,__webpack_require__);o=false}finally{if(o)delete r[n]}return t.exports}__webpack_require__.ab=__dirname+"/";return __webpack_require__(399)})(); \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index 06d5e8db..116193d7 100644 --- a/package-lock.json +++ b/package-lock.json @@ -314,14 +314,6 @@ "integrity": "sha512-TR2mEZFVOj2pLStYxLht7TyfuRzaydfpxr3k9RpHIzMgw7A64dzsdqCxH1WJyQdoe8T10nDXd9wnEigmiuHIZw==", "dev": true }, - "axios": { - "version": "0.21.1", - "resolved": "https://registry.npmjs.org/axios/-/axios-0.21.1.tgz", - "integrity": "sha512-dKQiRHxGD9PPRIUNIWvZhPTPpl1rf/OxTYKsqKUDjBwYylTvV7SjSHJb9ratfyzM6wCdLCOYLzs73qpg5c4iGA==", - "requires": { - "follow-redirects": "^1.10.0" - } - }, "balanced-match": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz", @@ -785,11 +777,6 @@ "integrity": "sha512-a1hQMktqW9Nmqr5aktAux3JMNqaucxGcjtjWnZLHX7yyPCmlSV3M54nGYbqT8K+0GhF3NBgmJCc3ma+WOgX8Jg==", "dev": true }, - "follow-redirects": { - "version": "1.13.1", - "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.13.1.tgz", - "integrity": "sha512-SSG5xmZh1mkPGyKzjZP8zLjltIfpW32Y5QpdNJyjcfGxK3qo3NDDkZOZSFiGn1A6SclQxY9GzEwAHQ3dmYRWpg==" - }, "fs.realpath": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", diff --git a/package.json b/package.json index 93f06742..6713427f 100644 --- a/package.json +++ b/package.json @@ -35,7 +35,6 @@ "homepage": "https://github.com/EndBug/add-and-commit#readme", "dependencies": { "@actions/core": "^1.2.6", - "axios": "^0.21.1", "js-yaml": "^3.14.1", "simple-git": "^2.27.0" }, diff --git a/src/main.ts b/src/main.ts index eb96cf3c..a224b073 100644 --- a/src/main.ts +++ b/src/main.ts @@ -6,7 +6,6 @@ import { startGroup, endGroup } from '@actions/core' -import axios from 'axios' import path from 'path' import simpleGit, { Response } from 'simple-git' import YAML from 'js-yaml' @@ -179,25 +178,10 @@ async function checkInputs() { const eventPath = process.env.GITHUB_EVENT_PATH, event = eventPath && require(eventPath), isPR = process.env.GITHUB_EVENT_NAME?.includes('pull_request'), - sha = (event?.pull_request?.head?.sha || process.env.GITHUB_SHA) as string, defaultBranch = isPR ? (event?.pull_request?.head?.ref as string) : process.env.GITHUB_REF?.substring(11) - // #region GITHUB_TOKEN - let token = process.env.GITHUB_TOKEN - if (token) { - debug('Using token from GITHUB_TOKEN env variable.') - warning( - "The GITHUB_TOKEN env variable is deprecated and will not be supported in the next major release. Use the 'token' input, " + - "which defaults to 'secrets.GITHUB_TOKEN'." - ) - } else { - debug('Using token from token input.') - token = getInput('token') - } - // #endregion - // #region add, remove if (!getInput('add') && !getInput('remove')) throw new Error( @@ -227,57 +211,11 @@ async function checkInputs() { // #endregion // #region author_name, author_email - if (getInput('author_name') && getInput('author_email')) { - info('> Using author info from inputs...') - } else { - info('> Some author info is missing, filling from workflow event...') - let author = event?.head_commit?.author - - if (sha && !author) { - info( - '> Unable to get commit from workflow event: trying with the GitHub API...' - ) - - // https://docs.github.com/en/rest/reference/repos#get-a-commit--code-samples - const url = `https://api.github.com/repos/${process.env.GITHUB_REPOSITORY}/commits/${sha}`, - headers = token - ? { - Authorization: `Bearer ${token}` - } - : undefined, - commit = ( - await axios.get(url, { headers }).catch((err) => { - startGroup('Request error:') - info(`> Request URL: ${url}\b${err}`) - endGroup() - return undefined - }) - )?.data - - author = commit?.commit?.author - } - - if (typeof author == 'object') { - setDefault('author_name', author.name) - setDefault('author_email', author.email) - } - - if (!getInput('author_name') || !getInput('author_email')) { - const reason = !eventPath - ? 'event path' - : isPR - ? sha - ? 'fetch commit' - : 'find commit sha' - : !event?.head_commit - ? 'find commit' - : 'find commit author' - warning(`Unable to fetch author info: couldn't ${reason}.`) - setDefault('author_name', 'Add & Commit Action') - setDefault('author_email', 'actions@github.com') - } - } - + setDefault('author_name', `${process.env.GITHUB_ACTOR}`) + setDefault( + 'author_email', + `${process.env.GITHUB_ACTOR}@users.noreply.github.com` + ) info( `> Using '${getInput('author_name')} <${getInput( 'author_email'