(()=>{vare={898:(e,r,s)=>{"use strict";vart=s(81).spawn;varo=s(837);varescapeSpaces=function(e){if(typeofe==="string"){returne.replace(/\b\s/g,"\\ ")}else{returne}};varescapeSpacesInOptions=function(e){["src","dest","include","exclude","excludeFirst"].forEach((function(r){vars=e[r];if(typeofs==="string"){e[r]=escapeSpaces(s)}elseif(Array.isArray(s)===true){e[r]=s.map(escapeSpaces)}}));returne};e.exports=function(e,r){e=e||{};e=o._extend({},e);e=escapeSpacesInOptions(e);vars=e.platform||process.platform;varn=s==="win32";if(typeofe.src==="undefined"){thrownewError("'src' directory is missing from options")}if(typeofe.dest==="undefined"){thrownewError("'dest' directory is missing from options")}vari=e.dest;if(typeofe.host!=="undefined"){i=e.host+":"+e.dest}if(!Array.isArray(e.src)){e.src=[e.src]}varc=[].concat(e.src);c.push(i);vara=(e.args||[]).find((function(e){returne.match(/--chmod=/)}));if(n&&!a){c.push("--chmod=ugo=rwX")}if(typeofe.host!=="undefined"||e.ssh){c.push("--rsh");varl="ssh";if(typeofe.port!=="undefined"){l+=" -p "+e.port}if(typeofe.privateKey!=="undefined"){l+=" -i "+e.privateKey}if(typeofe.sshCmdArgs!=="undefined"){l+=" "+e.sshCmdArgs.join(" ")}c.push(l)}if(e.recursive===true){c.push("--recursive")}if(e.times===true){c.push("--times")}if(e.syncDest===true||e.deleteAll===true){c.push("--delete");c.push("--delete-excluded")}if(e.syncDestIgnoreExcl===true||e.delete===true){c.push("--delete")}if(e.dryRun===true){c.push("--dry-run");c.push("--verbose")}if(typeofe.excludeFirst!=="undefined"&&o.isArray(e.excludeFirst)){e.excludeFirst.forEach((function(e,r){c.push("--exclude="+e)}))}if(typeofe.include!=="undefined"&&o.isArray(e.include)){e.include.forEach((function(e,r){c.push("--include="+e)}))}if(typeofe.exclude!=="undefined"&&o.isArray(e.exclude)){e.exclude.forEach((function(e,r){c.push("--exclude="+e)}))}switch(e.compareMode){case"sizeOnly":c.push("--size-only");break;case"checksum":c.push("--checksum");break}if(typeofe.args!=="undefined"&&o.isArray(e.args)){c=[...newSet([...c,...e.args])]}c=[...newSet(c)];varnoop=function(){};vard=e.onStdout||noop;varu=e.onStderr||noop;varf="rsync ";c.forEach((function(e){if(e.substr(0,4)==="ssh "){e='"'+e+'"'}f+=e+" "}));f=f.trim();if(e.noExec){r(null,null,null,f);return}try{varp="";varh="";vary;if(n){y=t("cmd.exe",["/s","/c",'"'+f+'"'],{windowsVerbatimArguments:true,stdio:[process.stdin,"pipe","pipe"]})}else{y=t("/bin/sh",["-c",f])}y.stdout.on("data",(function(e){d(e);p+=e}));y.stderr.on("data",(function(e){u(e);h+=e}));y.on("exit",(function(e){vars=null;if(e!==0){s=newError("rsync exited with code "+e);s.code=e}r(s,p,h,f)}))}catch(e){r(e,null,null,f)}}},505:(e,r,s)=>{const{existsSync:t,mkdirSync:o,writeFileSync:n}=s(147);const{join:i}=s(17);constvalidateDir=e=>{if(!e){console.log("[DIR] dir is not defined");return}if(t(e)){console.log(`[DIR] ${e} dir exist`);return}console.log(`[DIR] Creating ${e} dir in workspace root`);o(e);console.log("✅ [DIR] dir created.")};constwriteToFile=({dir:e,filename:r,content:s,isRequired:o})=>{validateDir(e);constc=i(e,r);if(t(c)){console.log(`[FILE] ${c} file exist`);if(o){thrownewError(`⚠️ [FILE] ${c} Required file exist, aborting ...`)}return}try{console.log(`[FILE] writing ${c} file ...`,s.length);n(c,s,{encoding:"utf8",mode:384})}catch(e){thrownewError(`⚠️[FILE] Writing to file error. filePath: ${c}, message: ${e.message}`)}};constvalidateRequiredInputs=e=>{constr=Object.keys(e);consts=r.filter((r=>{consts=e[r];if(!s){console.error(`⚠️ [INPUTS] ${r} is mandatory`)}returns}));if(s.length!==r.length){thrownewError("⚠️ [INPUTS] Inputs not valid, aborting ...")}};constsnakeToCamel=e=>e.replace(/[^a-zA-Z0-9]+(.)/g,((e,r)=>r.toUpperCase()));e.exports={writeToFile:writeToFile,validateRequiredInputs:validateRequiredInputs,snakeToCamel:snakeToCamel}},229:(e,r,s)=>{const{snakeToCamel:t}=s(505);consto=["REMOTE_HOST","REMOTE_USER","REMOTE_PORT","SSH_PRIVATE_KEY","DEPLOY_KEY_NAME","SOURCE","TARGET","ARGS","SSH_CMD_ARGS","EXCLUDE","SCRIPT_BEFORE","SCRIPT_AFTER"];constn=pr