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