require('./sourcemap-register.js');(()=>{var__webpack_modules__={7799:function(r,i,a){"use strict";vars=this&&this.__createBinding||(Object.create?function(r,i,a,s){if(s===undefined)s=a;varp=Object.getOwnPropertyDescriptor(i,a);if(!p||("get"inp?!i.__esModule:p.writable||p.configurable)){p={enumerable:true,get:function(){returni[a]}}}Object.defineProperty(r,s,p)}:function(r,i,a,s){if(s===undefined)s=a;r[s]=i[a]});varp=this&&this.__setModuleDefault||(Object.create?function(r,i){Object.defineProperty(r,"default",{enumerable:true,value:i})}:function(r,i){r["default"]=i});varl=this&&this.__importStar||function(r){if(r&&r.__esModule)returnr;vari={};if(r!=null)for(varainr)if(a!=="default"&&Object.prototype.hasOwnProperty.call(r,a))s(i,r,a);p(i,r);returni};varc=this&&this.__awaiter||function(r,i,a,s){functionadopt(r){returnrinstanceofa?r:newa((function(i){i(r)}))}returnnew(a||(a=Promise))((function(a,p){functionfulfilled(r){try{step(s.next(r))}catch(r){p(r)}}functionrejected(r){try{step(s["throw"](r))}catch(r){p(r)}}functionstep(r){r.done?a(r.value):adopt(r.value).then(fulfilled,rejected)}step((s=s.apply(r,i||[])).next())}))};Object.defineProperty(i,"__esModule",{value:true});i.saveCache=i.restoreCache=i.isFeatureAvailable=i.ReserveCacheError=i.ValidationError=void0;constd=l(a(2186));constu=l(a(1017));constm=l(a(1518));consth=l(a(8245));constg=a(3434);classValidationErrorextendsError{constructor(r){super(r);this.name="ValidationError";Object.setPrototypeOf(this,ValidationError.prototype)}}i.ValidationError=ValidationError;classReserveCacheErrorextendsError{constructor(r){super(r);this.name="ReserveCacheError";Object.setPrototypeOf(this,ReserveCacheError.prototype)}}i.ReserveCacheError=ReserveCacheError;functioncheckPaths(r){if(!r||r.length===0){thrownewValidationError(`Path Validation Error: At least one directory or file path is required`)}}functioncheckKey(r){if(r.length>512){thrownewValidationError(`Key Validation Error: ${r} cannot be larger than 512 characters.`)}consti=/^[^,]*$/;if(!i.test(r)){thrownewValidationError(`Key Validation Error: ${r} cannot contain commas.`)}}functionisFeatureAvailable(){return!!process.env["ACTIONS_CACHE_URL"]}i.isFeatureAvailable=isFeatureAvailable;functionrestoreCache(r,i,a,s,p=false){returnc(this,void0,void0,(function*(){checkPaths(r);a=a||[];constl=[i,...a];d.debug("Resolved Keys:");d.debug(JSON.stringify(l));if(l.length>10){thrownewValidationError(`Key Validation Error: Keys are limited to a maximum of 10.`)}for(constrofl){checkKey(r)}constc=yieldm.getCompressionMethod();lety="";try{consti=yieldh.getCacheEntry(l,r,{compressionMethod:c,enableCrossOsArchive:p});if(!(i===null||i===void0?void0:i.archiveLocation)){returnundefined}if(s===null||s===void0?void0:s.lookupOnly){d.info("Lookup only - skipping download");returni.cacheKey}y=u.join(yieldm.createTempDirectory(),m.getCacheFileName(c));d.debug(`Archive Path: ${y}`);yieldh.downloadCache(i.archiveLocation,y,s);if(d.isDebug()){yield(0,g.listTar)(y,c)}consta=m.getArchiveFileSizeInBytes(y);d.info(`Cache Size: ~${Math.round(a/(1024*1024))} MB (${a} B)`);yield(0,g.extractTar)(y,c);d.info("Cache restored successfully");returni.cacheKey}catch(r){consti=r;if(i.name===ValidationError.name){throwr}else{d.warning(`Failed to restore: ${r.message}`)}}finally{try{yieldm.unlinkFile(y)}catch(r){d.debug(`Failed to delete archive: ${r}`)}}returnundefined}))}i.restoreCache=restoreCache;functionsaveCache(r,i,a,s=false){varp,l,y,v,b;returnc(this,void0,void0,(function*(){checkPaths(r);checkKey(i);constc=yieldm.getCompressionMethod();letx=-1;constw=yieldm.resolvePaths(r);d.debug("Cache Paths:");d.debug(`${JSON.stringify(w)}`);if(w.length===0){thrownewError(`Path Validation Error: Path(s) specified in the action for caching do(es) not exist, hence no cache is being saved.`)}constS=yieldm.createTempDirectory();const_=u.join(S,m.getCacheFileName(c));d.debug(`Archive Path: ${_}`);try{yield(0,g.createTar)(S,w,c);if(d.isDebug()){yield(0,g.listTar)(_,c)}constu=10*1024*1024*1024;cons
consts=a(7147);constp=a(2037);constl=a(1017);constc=a(6113);constd={fs:s.constants,os:p.constants};constu=a(4959);constm="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",h=/XXXXXX/,g=3,y=(d.O_CREAT||d.fs.O_CREAT)|(d.O_EXCL||d.fs.O_EXCL)|(d.O_RDWR||d.fs.O_RDWR),v=p.platform()==="win32",b=d.EBADF||d.os.errno.EBADF,x=d.ENOENT||d.os.errno.ENOENT,w=448,S=384,_="exit",E=[],T=s.rmdirSync.bind(s),N=u.sync;letP=false;functiontmpName(r,i){consta=_parseArguments(r,i),p=a[0],l=a[1];try{_assertAndSanitizeOptions(p)}catch(r){returnl(r)}letc=p.tries;(function_getUniqueName(){try{constr=_generateTmpName(p);s.stat(r,(function(i){if(!i){if(c-->0)return_getUniqueName();returnl(newError("Could not get a unique tmp filename, max tries reached "+r))}l(null,r)}))}catch(r){l(r)}})()}functiontmpNameSync(r){consti=_parseArguments(r),a=i[0];_assertAndSanitizeOptions(a);letp=a.tries;do{constr=_generateTmpName(a);try{s.statSync(r)}catch(i){returnr}}while(p-->0);thrownewError("Could not get a unique tmp filename, max tries reached")}functionfile(r,i){consta=_parseArguments(r,i),p=a[0],l=a[1];tmpName(p,(function_tmpNameCreated(r,i){if(r)returnl(r);s.open(i,y,p.mode||S,(function_fileCreated(r,a){if(r)returnl(r);if(p.discardDescriptor){returns.close(a,(function_discardCallback(r){returnl(r,i,undefined,_prepareTmpFileRemoveCallback(i,-1,p,false))}))}else{constr=p.discardDescriptor||p.detachDescriptor;l(null,i,a,_prepareTmpFileRemoveCallback(i,r?-1:a,p,false))}}))}))}functionfileSync(r){consti=_parseArguments(r),a=i[0];constp=a.discardDescriptor||a.detachDescriptor;constl=tmpNameSync(a);varc=s.openSync(l,y,a.mode||S);if(a.discardDescriptor){s.closeSync(c);c=undefined}return{name:l,fd:c,removeCallback:_prepareTmpFileRemoveCallback(l,p?-1:c,a,true)}}functiondir(r,i){consta=_parseArguments(r,i),p=a[0],l=a[1];tmpName(p,(function_tmpNameCreated(r,i){if(r)returnl(r);s.mkdir(i,p.mode||w,(function_dirCreated(r){if(r)returnl(r);l(null,i,_prepareTmpDirRemoveCallback(i,p,false))}))}))}functiondirSync(r){consti=_parseArguments(r),a=i[0];constp=tmpNameSync(a);s.mkdirSync(p,a.mode||w);return{name:p,removeCallback:_prepareTmpDirRemoveCallback(p,a,true)}}function_removeFileAsync(r,i){const_handler=function(r){if(r&&!_isENOENT(r)){returni(r)}i()};if(0<=r[0])s.close(r[0],(function(){s.unlink(r[1],_handler)}));elses.unlink(r[1],_handler)}function_removeFileSync(r){leti=null;try{if(0<=r[0])s.closeSync(r[0])}catch(r){if(!_isEBADF(r)&&!_isENOENT(r))throwr}finally{try{s.unlinkSync(r[1])}catch(r){if(!_isENOENT(r))i=r}}if(i!==null){throwi}}function_prepareTmpFileRemoveCallback(r,i,a,s){constp=_prepareRemoveCallback(_removeFileSync,[i,r],s);constl=_prepareRemoveCallback(_removeFileAsync,[i,r],s,p);if(!a.keep)E.unshift(p);returns?p:l}function_prepareTmpDirRemoveCallback(r,i,a){constp=i.unsafeCleanup?u:s.rmdir.bind(s);constl=i.unsafeCleanup?N:T;constc=_prepareRemoveCallback(l,r,a);constd=_prepareRemoveCallback(p,r,a,c);if(!i.keep)E.unshift(c);returna?c:d}function_prepareRemoveCallback(r,i,a,s){letp=false;returnfunction_cleanupCallback(l){if(!p){constc=s||_cleanupCallback;constd=E.indexOf(c);if(d>=0)E.splice(d,1);p=true;if(a||r===T||r===N){returnr(i)}else{returnr(i,l||function(){})}}}}function_garbageCollector(){if(!P)return;while(E.length){try{E[0]()}catch(r){}}}function_randomChars(r){leti=[],a=null;try{a=c.randomBytes(r)}catch(i){a=c.pseudoRandomBytes(r)}for(vars=0;s<r;s++){i.push(m[a[s]%m.length])}returni.join("")}function_isBlank(r){returnr===null||_isUndefined(r)||!r.trim()}function_isUndefined(r){returntypeofr==="undefined"}function_parseArguments(r,i){if(typeofr==="function"){return[{},r]}if(_isUndefined(r)){return[{},i]}consta={};for(constiofObject.getOwnPropertyNames(r)){a[i]=r[i]}return[a,i]}function_generateTmpName(r){consti=r.tmpdir;if(!_isUndefined(r.name))returnl.join(i,r.dir,r.name);if(!_isUndefined(r.template))returnl.join(i,r.dir,r.template).replace(h,_randomChars(6));consta=[r.prefix?r.prefix:"tmp","-",process.pid,"-",_randomChars(12),r.postfix?"-"+r.po