Using vars for insensitive data is preferred since secrets are redacted from e.g. build summary
Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
Use a service account with permission to push to GCR and [configure access control](https://cloud.google.com/container-registry/docs/access-control).
Download the key for the service account as a JSON file. Save the contents of
the file [as a secret](https://docs.github.com/en/actions/configuring-and-managing-workflows/creating-and-storing-encrypted-secrets#creating-encrypted-secrets-for-a-repository)
named `GCR_JSON_KEY` in your GitHub repository. Set the username to `_json_key`,
or `_json_key_base64` if you use a base64-encoded key.
named `GCR_JSON_KEY` in your GitHub repository. Set the username to `_json_key`.
```yaml
name:ci
@@ -302,7 +301,7 @@ jobs:
### AWS Elastic Container Registry (ECR)
Use an IAM user with the ability to [push to ECR with `AmazonEC2ContainerRegistryPowerUser` managed policy for example](https://docs.aws.amazon.com/AmazonECR/latest/userguide/ecr_managed_policies.html#AmazonEC2ContainerRegistryPowerUser).
Use an IAM user with the ability to [push to ECR with `AmazonEC2ContainerRegistryPowerUser` managed policy for example](https://docs.aws.amazon.com/AmazonECR/latest/userguide/security-iam-awsmanpol.html#security-iam-awsmanpol-AmazonEC2ContainerRegistryPowerUser).
Download the access keys and save them as `AWS_ACCESS_KEY_ID` and `AWS_SECRET_ACCESS_KEY` [as secrets](https://docs.github.com/en/actions/configuring-and-managing-workflows/creating-and-storing-encrypted-secrets#creating-encrypted-secrets-for-a-repository)
require('./sourcemap-register.js');(()=>{vare={7799:function(e,t,r){"use strict";varn=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;vari=Object.getOwnPropertyDescriptor(t,r);if(!i||("get"ini?!t.__esModule:i.writable||i.configurable)){i={enumerable:true,get:function(){returnt[r]}}}Object.defineProperty(e,n,i)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});vari=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});vara=this&&this.__importStar||function(e){if(e&&e.__esModule)returne;vart={};if(e!=null)for(varrine)if(r!=="default"&&Object.prototype.hasOwnProperty.call(e,r))n(t,e,r);i(t,e);returnt};varo=this&&this.__awaiter||function(e,t,r,n){functionadopt(e){returneinstanceofr?e:newr((function(t){t(e)}))}returnnew(r||(r=Promise))((function(r,i){functionfulfilled(e){try{step(n.next(e))}catch(e){i(e)}}functionrejected(e){try{step(n["throw"](e))}catch(e){i(e)}}functionstep(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.saveCache=t.restoreCache=t.isFeatureAvailable=t.ReserveCacheError=t.ValidationError=void0;consts=a(r(2186));constc=a(r(1017));constl=a(r(1518));constd=a(r(8245));constp=r(6490);classValidationErrorextendsError{constructor(e){super(e);this.name="ValidationError";Object.setPrototypeOf(this,ValidationError.prototype)}}t.ValidationError=ValidationError;classReserveCacheErrorextendsError{constructor(e){super(e);this.name="ReserveCacheError";Object.setPrototypeOf(this,ReserveCacheError.prototype)}}t.ReserveCacheError=ReserveCacheError;functioncheckPaths(e){if(!e||e.length===0){thrownewValidationError(`Path Validation Error: At least one directory or file path is required`)}}functioncheckKey(e){if(e.length>512){thrownewValidationError(`Key Validation Error: ${e} cannot be larger than 512 characters.`)}constt=/^[^,]*$/;if(!t.test(e)){thrownewValidationError(`Key Validation Error: ${e} cannot contain commas.`)}}functionisFeatureAvailable(){return!!process.env["ACTIONS_CACHE_URL"]}t.isFeatureAvailable=isFeatureAvailable;functionrestoreCache(e,t,r,n,i=false){returno(this,void0,void0,(function*(){checkPaths(e);r=r||[];consta=[t,...r];s.debug("Resolved Keys:");s.debug(JSON.stringify(a));if(a.length>10){thrownewValidationError(`Key Validation Error: Keys are limited to a maximum of 10.`)}for(consteofa){checkKey(e)}consto=yieldl.getCompressionMethod();letu="";try{constt=yieldd.getCacheEntry(a,e,{compressionMethod:o,enableCrossOsArchive:i});if(!(t===null||t===void0?void0:t.archiveLocation)){returnundefined}if(n===null||n===void0?void0:n.lookupOnly){s.info("Lookup only - skipping download");returnt.cacheKey}u=c.join(yieldl.createTempDirectory(),l.getCacheFileName(o));s.debug(`Archive Path: ${u}`);yieldd.downloadCache(t.archiveLocation,u,n);if(s.isDebug()){yield(0,p.listTar)(u,o)}constr=l.getArchiveFileSizeInBytes(u);s.info(`Cache Size: ~${Math.round(r/(1024*1024))} MB (${r} B)`);yield(0,p.extractTar)(u,o);s.info("Cache restored successfully");returnt.cacheKey}catch(e){constt=e;if(t.name===ValidationError.name){throwe}else{s.warning(`Failed to restore: ${e.message}`)}}finally{try{yieldl.unlinkFile(u)}catch(e){s.debug(`Failed to delete archive: ${e}`)}}returnundefined}))}t.restoreCache=restoreCache;functionsaveCache(e,t,r,n=false){vari,a,u,A,m;returno(this,void0,void0,(function*(){checkPaths(e);checkKey(t);consto=yieldl.getCompressionMethod();letg=-1;consth=yieldl.resolvePaths(e);s.debug("Cache Paths:");s.debug(`${JSON.stringify(h)}`);if(h.length===0){thrownewError(`Path Validation Error: Path(s) specified in the action for caching do(es) not exist, hence no cache is being saved.`)}constf=yieldl.createTempDirectory();consty=c.join(f,l.getCacheFileName(o));s.debug(`Archive Path: ${y}`);try{yield(0,p.createTar)(f,h,o);if(s.isDebug()){yield(0,p.listTar)(y,o)}constc=10*1024*1024*1024;constE=l.getArchiveFileSizeInBytes(y);s.debug(`File Size: ${E}`);if(E>c&&!l.isGhes()){thrownewError(`Cache size of ~${Math.round(E/(1024*1024))} MB (${E} B) is over the 10GB limit, not saving cache.`)}s.debug("Reserving Cache");constC=yieldd.reserveCache(t,e,{compressionMethod:o,enableCrossOsArchive:n,cacheSize:E});if((i=C===null||C===void0?void0:C.result)===null||i===void0?void0:i.cacheId){g=(a=C===null||C===void0?void0:C.result)===null||a===void0?void0:a.cacheId}elseif((C===null||C===void0?void0:C.statusCode)===400){thrownewError((A=(u=C===null||C===void0?void0:C.error)===null||u===void0?void0:u.message)!==null&&A!==void0?A:`Cache size of ~${Math.round(E/(1024*1024))} MB (${E} B) is over the data cap limit, not saving cache.`)}else{thrownewReserveCacheError(`Unable to reserve cache with key ${t}, another job may be creating this cache. More details: ${(m=C===null||C===void0?void0:C.erLine truncated
require('./sourcemap-register.js');(()=>{varr={79450:function(r,i,s){"use strict";vara=this&&this.__createBinding||(Object.create?function(r,i,s,a){if(a===undefined)a=s;varc=Object.getOwnPropertyDescriptor(i,s);if(!c||("get"inc?!i.__esModule:c.writable||c.configurable)){c={enumerable:true,get:function(){returni[s]}}}Object.defineProperty(r,a,c)}:function(r,i,s,a){if(a===undefined)a=s;r[a]=i[s]});varc=this&&this.__exportStar||function(r,i){for(varsinr)if(s!=="default"&&!Object.prototype.hasOwnProperty.call(i,s))a(i,r,s)};Object.defineProperty(i,"__esModule",{value:true});constl=s(46190);c(s(15769),i);c(s(38182),i);c(s(46190),i);constd=newl.DefaultArtifactClient;i["default"]=d},54622:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.Timestamp=void0;consta=s(4061);constc=s(4061);constl=s(4061);constd=s(4061);constp=s(4061);constu=s(4061);consth=s(4061);classTimestamp$Typeextendsh.MessageType{constructor(){super("google.protobuf.Timestamp",[{no:1,name:"seconds",kind:"scalar",T:3},{no:2,name:"nanos",kind:"scalar",T:5}])}now(){constr=this.create();consti=Date.now();r.seconds=u.PbLong.from(Math.floor(i/1e3)).toString();r.nanos=i%1e3*1e6;returnr}toDate(r){returnnewDate(u.PbLong.from(r.seconds).toNumber()*1e3+Math.ceil(r.nanos/1e6))}fromDate(r){consti=this.create();consts=r.getTime();i.seconds=u.PbLong.from(Math.floor(s/1e3)).toString();i.nanos=s%1e3*1e6;returni}internalJsonWrite(r,i){lets=u.PbLong.from(r.seconds).toNumber()*1e3;if(s<Date.parse("0001-01-01T00:00:00Z")||s>Date.parse("9999-12-31T23:59:59Z"))thrownewError("Unable to encode Timestamp to JSON. Must be from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z inclusive.");if(r.nanos<0)thrownewError("Unable to encode invalid Timestamp to JSON. Nanos must not be negative.");leta="Z";if(r.nanos>0){leti=(r.nanos+1e9).toString().substring(1);if(i.substring(3)==="000000")a="."+i.substring(0,3)+"Z";elseif(i.substring(6)==="000")a="."+i.substring(0,6)+"Z";elsea="."+i+"Z"}returnnewDate(s).toISOString().replace(".000Z",a)}internalJsonRead(r,i,s){if(typeofr!=="string")thrownewError("Unable to parse Timestamp from JSON "+(0,p.typeofJsonValue)(r)+".");leta=r.match(/^([0-9]{4})-([0-9]{2})-([0-9]{2})T([0-9]{2}):([0-9]{2}):([0-9]{2})(?:Z|\.([0-9]{3,9})Z|([+-][0-9][0-9]:[0-9][0-9]))$/);if(!a)thrownewError("Unable to parse Timestamp from JSON. Invalid format.");letc=Date.parse(a[1]+"-"+a[2]+"-"+a[3]+"T"+a[4]+":"+a[5]+":"+a[6]+(a[8]?a[8]:"Z"));if(Number.isNaN(c))thrownewError("Unable to parse Timestamp from JSON. Invalid value.");if(c<Date.parse("0001-01-01T00:00:00Z")||c>Date.parse("9999-12-31T23:59:59Z"))thrownewglobalThis.Error("Unable to parse Timestamp from JSON. Must be from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z inclusive.");if(!s)s=this.create();s.seconds=u.PbLong.from(c/1e3).toString();s.nanos=0;if(a[7])s.nanos=parseInt("1"+a[7]+"0".repeat(9-a[7].length))-1e9;returns}create(r){consti={seconds:"0",nanos:0};globalThis.Object.defineProperty(i,d.MESSAGE_TYPE,{enumerable:false,value:this});if(r!==undefined)(0,l.reflectionMergePartial)(this,i,r);returni}internalBinaryRead(r,i,s,a){letl=a!==null&&a!==void0?a:this.create(),d=r.pos+i;while(r.pos<d){let[i,a]=r.tag();switch(i){case1:l.seconds=r.int64().toString();break;case2:l.nanos=r.int32();break;default:letd=s.readUnknownField;if(d==="throw")thrownewglobalThis.Error(`Unknown field ${i} (wire type ${a}) for ${this.typeName}`);letp=r.skip(a);if(d!==false)(d===true?c.UnknownFieldHandler.onRead:d)(this.typeName,l,i,a,p)}}returnl}internalBinaryWrite(r,i,s){if(r.seconds!=="0")i.tag(1,a.WireType.Varint).int64(r.seconds);if(r.nanos!==0)i.tag(2,a.WireType.Varint).int32(r.nanos);letl=s.writeUnknownFields;if(l!==false)(l==true?c.UnknownFieldHandler.onWrite:l)(this.typeName,r,i);returni}}i.Timestamp=newTimestamp$Type},8626:(r,i,s)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.BytesValue=i.StringValue=i.BoolValue=i.UInt32Value=i.Int32Value=i.UInt64Value=i.Int64Value=i.FloatValue=i.DoubleValue=void0;consta=s(4061);constc=s(4061);constl=s(4061);constd=s(4061);constp=s(4061);constu=s(4061);consth=s(4061);classDoubleValue$Typeextendsh.MessageType{constructor(){super("google.protobuf.DoubleValue",[{no:1,name:"value",kind:"scalar",T:1}])}internalJsonWrite(r,i){returnthis.refJsonWriter.scalar(2,r.value,"value",false,true)}internalJsonRead(r,i,s){if(!s)s=this.create();s.value=this.refJsonReader.scalar(r,1,undefined,"value");returns}create(r){consti={value:0};globalThis.Object.defineProperty(i,u.MESSAGE_TYPE,{enumerable:false,value:this});if(r!==undefined)(0,p.reflectionMergePartial)(this,i,r);returni}internalBinaryRead(r,i,s,a){letc=a!==null&&a!==void0?a:this.create(),l=r.pos+i;while(r.pos<l){let[i,a]=r.tag();switch(i){case1:c.value=r.double();break;default:letl=s.readUnknownField;if(l==="throw")thrownewglobalThis.Error(`Unknown field ${i} (wire type ${a}) for ${this.typeName}`);letp=r.skip(a);if(l!==false)(lLine truncated
vara=s(35010);varc={};varvending=function(r,i){returnvending.create(r,i)};vending.create=function(r,i){if(c[r]){vars=newa(r,i);s.setFormat(r);s.setModule(newc[r](i));returns}else{thrownewError("create("+r+"): format not registered")}};vending.registerFormat=function(r,i){if(c[r]){thrownewError("register("+r+"): format already registered")}if(typeofi!=="function"){thrownewError("register("+r+"): format module invalid")}if(typeofi.prototype.append!=="function"||typeofi.prototype.finalize!=="function"){thrownewError("register("+r+"): format module missing methods")}c[r]=i};vending.isRegisteredFormat=function(r){if(c[r]){returntrue}returnfalse};vending.registerFormat("zip",s(8987));vending.registerFormat("tar",s(33614));vending.registerFormat("json",s(99827));r.exports=vending},35010:(r,i,s)=>{
vara=s(73837);constc={ABORTED:"archive was aborted",DIRECTORYDIRPATHREQUIRED:"diretory dirpath argument must be a non-empty string value",DIRECTORYFUNCTIONINVALIDDATA:"invalid data returned by directory custom data function",ENTRYNAMEREQUIRED:"entry name must be a non-empty string value",FILEFILEPATHREQUIRED:"file filepath argument must be a non-empty string value",FINALIZING:"archive already finalizing",QUEUECLOSED:"queue closed",NOENDMETHOD:"no suitable finalize/end method defined by module",DIRECTORYNOTSUPPORTED:"support for directory entries not defined by module",FORMATSET:"archive format already set",INPUTSTEAMBUFFERREQUIRED:"input source must be valid Stream or Buffer instance",MODULESET:"module already set",SYMLINKNOTSUPPORTED:"support for symlink entries not defined by module",SYMLINKFILEPATHREQUIRED:"symlink filepath argument must be a non-empty string value",SYMLINKTARGETREQUIRED:"symlink target argument must be a non-empty string value",ENTRYNOTSUPPORTED:"entry not supported"};functionArchiverError(r,i){Error.captureStackTrace(this,this.constructor);this.message=c[r]||r;this.code=r;this.data=i}a.inherits(ArchiverError,Error);i=r.exports=ArchiverError},99827:(r,i,s)=>{
vara=s(86454);varc=s(82072);varZip=function(r){if(!(thisinstanceofZip)){returnnewZip(r)}r=this.options=c.defaults(r,{comment:"",forceUTC:false,namePrependSlash:false,store:false});this.supports={directory:true,symlink:true};this.engine=newa(r)};Zip.prototype.append=function(r,i,s){this.engine.entry(r,i,s)};Zip.prototype.finalize=function(){this.engine.finalize()};Zip.prototype.on=function(){returnthis.engine.on.apply(this.engine,arguments)};Zip.prototype.pipe=function(){returnthis.engine.pipe.apply(this.engine,arguments)};Zip.prototype.unpipe=function(){returnthis.engine.unpipe.apply(this.engine,arguments)};r.exports=Zip},57888:function(r,i){(function(r,s){true?s(i):0})(this,(function(r){"use strict";functionapply(r,...i){return(...s)=>r(...i,...s)}functioninitialParams(r){returnfunction(...i){vars=i.pop();returnr.call(this,i,s)}}vari=typeofqueueMicrotask==="function"&&queueMicrotask;vars=typeofsetImmediate==="function"&&setImmediate;vara=typeofprocess==="object"&&typeofprocess.nextTick==="function";functionfallback(r){setTimeout(r,0)}functionwrap(r){return(i,...s)=>r((()=>i(...s)))}varc;if(i){c=queueMicrotask}elseif(s){c=setImmediate}elseif(a){c=process.nextTick}else{c=fallback}varl=wrap(c);functionasyncify(r){if(isAsync(r)){returnfunction(...i){consts=i.pop();consta=r.apply(this,i);returnhandlePromise(a,s)}}returninitialParams((function(i,s){vara;try{a=r.apply(this,i)}catch(r){returns(r)}if(a&&typeofa.then==="function"){returnhandlePromise(a,s)}else{s(null,a)}}))}functionhandlePromise(r,i){returnr.then((r=>{invokeCallback(i,null,r)}),(r=>{invokeCallback(i,r&&(rinstanceofError||r.message)?r:newError(r))}))}functioninvokeCallback(r,i,s){try{r(i,s)}catch(r){l((r=>{throwr}),r)}}functionisAsync(r){returnr[Symbol.toStringTag]==="AsyncFunction"}functionisAsyncGenerator(r){returnr[Symbol.toStringTag]==="AsyncGenerator"}functionisAsyncIterable(r){returntypeofr[Symbol.asyncIterator]==="function"}functionwrapAsync(r){if(typeofr!=="function")thrownewError("expected a function");returnisAsync(r)?asyncify(r):r}functionawaitify(r,i){if(!i)i=r.length;if(!i)thrownewError("arity is undefined");functionawaitable(...s){if(typeofs[i-1]==="function"){returnr.apply(this,s)}returnnewPromise(((a,c)=>{s[i-1]=(r,...i)=>{if(r)returnc(r);a(i.length>1?i:i[0])};r.apply(this,s)}))}returnawaitable}functionapplyEach$1(r){returnfunctionapplyEach(i,...s){consta=awaitify((function(a){varc=this;returnr(i,((r,i)=>{wrapAsync(r).apply(c,s.concat(i))}),a)}));returna}}function_asyncMap(r,i,s,a){i=i||[];varc=[];varl=0;vard=wrapAsync(s);returnr(i,((r,i,s)=>{vara=l++;d(r,((r,i)=>{c[a]=i;s(r)}))}),(r=>{a(r,c)}))}functionisArrayLike(r){returnr&&typeofr.length==="number"&&r.length>=0&&r.length%1===0}constd={};varp=d;functiononce(r){functionwrapper(...i){if(r===null)return;vars=r;r=null;s.apply(this,i)}Object.assign(wrapper,r);returnwrapper}functiongetIterator(r){returnr[Symbol.iterator]&&r[Symbol.iterator]()}functioncreateArrayIterator(r){vari=-1;vars=r.length;returnfunctionnext(){return++i<s?{value:r[i],key:i}:null}}functioncreateES2015Iterator(r){vari=-1;returnfunctionnext(){vars=r.next();if(s.done)returnnull;i++;return{value:s.value,key:i}}}functioncreateObjectIterator(r){vari=r?Object.keys(r):[];vars=-1;vara=i.length;returnfunctionnext(){varc=i[++s];if(c==="__proto__"){returnnext()}returns<a?{value:r[c],key:c}:null}}functioncreateIterator(r){if(isArrayLike(r)){returncreateArrayIterator(r)}vari=getIterator(r);returni?createES2015Iterator(i):createObjectIterator(r)}functiononlyOnce(r){returnfunction(...i){if(r===null)thrownewError("Callback was already called.");vars=r;r=null;s.apply(this,i)}}functionasyncEachOfLimit(r,i,s,a){letc=false;letl=false;letd=false;letu=0;leth=0;functionreplenish(){if(u>=i||d||c)return;d=true;r.next().then((({value:r,done:i})=>{if(l||c)return;d=false;if(i){c=true;if(u<=0){a(null)}return}u++;s(r,h,iterateeCallback);h++;replenish()})).catch(handleError)}functioniterateeCallback(r,i){u-=1;if(l)return;if(r)returnhandleError(r);if(r===false){c=true;l=true;return}if(i===p||c&&u<=0){c=true;returna(null)}replenish()}functionhandleError(r){if(l)return;d=false;c=true;a(r)}replenish()}vareachOfLimit$2=r=>(i,s,a)=>{a=once(a);if(r<=0){thrownewRangeError("concurrency limit cannot be less than 1")}if(!i){returna(null)}if(isAsyncGenerator(i)){returnasyncEachOfLimit(i,r,s,a)}if(isAsyncIterable(i)){returnasyncEachOfLimit(i[Symbol.asyncIterator](),r,s,a)}varc=createIterator(i);varl=false;vard=false;varu=0;varh=false;functioniterateeCallback(r,i){if(d)return;u-=1;if(r){l=true;a(r)}elseif(r===false){l=true;d=true}elseif(i===p||l&&u<=0){l=true;returna(null)}elseif(!h){replenish()}}functionreplenish(){h=true;while(u<r&&!l){vari=c();if(i===null){l=true;if(u<=0){a(null)}return}u+=1;s(i.value,i.key,onlyOnce(iterateeCallback))}h=false}replenish()};functioneachOfLimit(r,i,s,a){returneachOfLimit$2(i)(r,Line truncated
vars;(function(r){if(typeofDO_NOT_EXPORT_CRC==="undefined"){if(true){r(i)}else{}}else{r(s={})}})((function(r){r.version="1.2.2";functionsigned_crc_table(){varr=0,i=newArray(256);for(vars=0;s!=256;++s){r=s;r=r&1?-306674912^r>>>1:r>>>1;r=r&1?-306674912^r>>>1:r>>>1;r=r&1?-306674912^r>>>1:r>>>1;r=r&1?-306674912^r>>>1:r>>>1;r=r&1?-306674912^r>>>1:r>>>1;r=r&1?-306674912^r>>>1:r>>>1;r=r&1?-306674912^r>>>1:r>>>1;r=r&1?-306674912^r>>>1:r>>>1;i[s]=r}returntypeofInt32Array!=="undefined"?newInt32Array(i):i}vari=signed_crc_table();functionslice_by_16_tables(r){vari=0,s=0,a=0,c=typeofInt32Array!=="undefined"?newInt32Array(4096):newArray(4096);for(a=0;a!=256;++a)c[a]=r[a];for(a=0;a!=256;++a){s=r[a];for(i=256+a;i<4096;i+=256)s=c[i]=s>>>8^r[s&255]}varl=[];for(a=1;a!=16;++a)l[a-1]=typeofInt32Array!=="undefined"?c.subarray(a*256,a*256+256):c.slice(a*256,a*256+256);returnl}vars=slice_by_16_tables(i);vara=s[0],c=s[1],l=s[2],d=s[3],p=s[4];varu=s[5],h=s[6],A=s[7],g=s[8],y=s[9];varb=s[10],v=s[11],C=s[12],w=s[13],S=s[14];functioncrc32_bstr(r,s){vara=s^-1;for(varc=0,l=r.length;c<l;)a=a>>>8^i[(a^r.charCodeAt(c++))&255];return~a}functioncrc32_buf(r,s){varx=s^-1,I=r.length-15,B=0;for(;B<I;)x=S[r[B++]^x&255]^w[r[B++]^x>>8&255]^C[r[B++]^x>>16&255]^v[r[B++]^x>>>24]^b[r[B++]]^y[r[B++]]^g[r[B++]]^A[r[B++]]^h[r[B++]]^u[r[B++]]^p[r[B++]]^d[r[B++]]^l[r[B++]]^c[r[B++]]^a[r[B++]]^i[r[B++]];I+=15;while(B<I)x=x>>>8^i[(x^r[B++])&255];return~x}functioncrc32_str(r,s){vara=s^-1;for(varc=0,l=r.length,d=0,p=0;c<l;){d=r.charCodeAt(c++);if(d<128){a=a>>>8^i[(a^d)&255]}elseif(d<2048){a=a>>>8^i[(a^(192|d>>6&31))&255];a=a>>>8^i[(a^(128|d&63))&255]}elseif(d>=55296&&d<57344){d=(d&1023)+64;p=r.charCodeAt(c++)&1023;a=a>>>8^i[(a^(240|d>>8&7))&255];a=a>>>8^i[(a^(128|d>>2&63))&255];a=a>>>8^i[(a^(128|p>>6&15|(d&3)<<4))&255];a=a>>>8^i[(a^(128|p&63))&255]}else{a=a>>>8^i[(a^(224|d>>12&15))&255];a=a>>>8^i[(a^(128|d>>6&63))&255];a=a>>>8^i[(a^(128|d&63))&255]}}return~a}r.table=i;r.bstr=crc32_bstr;r.buf=crc32_buf;r.str=crc32_str}))},94521:(r,i,s)=>{"use strict";const{Transform:a}=s(45193);constc=s(83201);classCRC32Streamextendsa{constructor(r){super(r);this.checksum=Buffer.allocUnsafe(4);this.checksum.writeInt32BE(0,0);this.rawSize=0}_transform(r,i,s){if(r){this.checksum=c.buf(r,this.checksum)>>>0;this.rawSize+=r.length}s(null,r)}digest(r){consti=Buffer.allocUnsafe(4);i.writeUInt32BE(this.checksum>>>0,0);returnr?i.toString(r):i}hex(){returnthis.digest("hex").toUpperCase()}size(){returnthis.rawSize}}r.exports=CRC32Stream},92563:(r,i,s)=>{"use strict";const{DeflateRaw:a}=s(59796);constc=s(83201);classDeflateCRC32Streamextendsa{constructor(r){super(r);this.checksum=Buffer.allocUnsafe(4);this.checksum.writeInt32BE(0,0);this.rawSize=0;this.compressedSize=0}push(r,i){if(r){this.compressedSize+=r.length}returnsuper.push(r,i)}_transform(r,i,s){if(r){this.checksum=c.buf(r,this.checksum)>>>0;this.rawSize+=r.length}super._transform(r,i,s)}digest(r){consti=Buffer.allocUnsafe(4);i.writeUInt32BE(this.checksum>>>0,0);returnr?i.toString(r):i}hex(){returnthis.digest("hex").toUpperCase()}size(r=false){if(r){returnthis.compressedSize}else{returnthis.rawSize}}}r.exports=DeflateCRC32Stream},5101:(r,i,s)=>{"use strict";r.exports={CRC32Stream:s(94521),DeflateCRC32Stream:s(92563)}},28222:(r,i,s)=>{i.formatArgs=formatArgs;i.save=save;i.load=load;i.useColors=useColors;i.storage=localstorage();i.destroy=(()=>{letr=false;return()=>{if(!r){r=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`.")}}})();i.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"];functionuseColors(){if(typeofwindow!=="undefined"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs)){returntrue}if(typeofnavigator!=="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)){returnfalse}returntypeofdocument!=="undefined"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeofwindow!=="undefined"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeofnavigator!=="undefined"&&navigator.userAgent&&navigator.userALine truncated
/*! https://mths.be/he v1.2.0 by @mathias | MIT license */(function(s){vara=true&&i;varc=true&&r&&r.exports==a&&r;varl=typeofglobal=="object"&&global;if(l.global===l||l.window===l){s=l}vard=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g;varp=/[\x01-\x7F]/g;varu=/[\x01-\t\x0B\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g;varh=/<\u20D2|=\u20E5|>\u20D2|\u205F\u200A|\u219D\u0338|\u2202\u0338|\u2220\u20D2|\u2229\uFE00|\u222A\uFE00|\u223C\u20D2|\u223D\u0331|\u223E\u0333|\u2242\u0338|\u224B\u0338|\u224D\u20D2|\u224E\u0338|\u224F\u0338|\u2250\u0338|\u2261\u20E5|\u2264\u20D2|\u2265\u20D2|\u2266\u0338|\u2267\u0338|\u2268\uFE00|\u2269\uFE00|\u226A\u0338|\u226A\u20D2|\u226B\u0338|\u226B\u20D2|\u227F\u0338|\u2282\u20D2|\u2283\u20D2|\u228A\uFE00|\u228B\uFE00|\u228F\u0338|\u2290\u0338|\u2293\uFE00|\u2294\uFE00|\u22B4\u20D2|\u22B5\u20D2|\u22D8\u0338|\u22D9\u0338|\u22DA\uFE00|\u22DB\uFE00|\u22F5\u0338|\u22F9\u0338|\u2933\u0338|\u29CF\u0338|\u29D0\u0338|\u2A6D\u0338|\u2A70\u0338|\u2A7D\u0338|\u2A7E\u0338|\u2AA1\u0338|\u2AA2\u0338|\u2AAC\uFE00|\u2AAD\uFE00|\u2AAF\u0338|\u2AB0\u0338|\u2AC5\u0338|\u2AC6\u0338|\u2ACB\uFE00|\u2ACC\uFE00|\u2AFD\u20E5|[\xA0-\u0113\u0116-\u0122\u0124-\u012B\u012E-\u014D\u0150-\u017E\u0192\u01B5\u01F5\u0237\u02C6\u02C7\u02D8-\u02DD\u0311\u0391-\u03A1\u03A3-\u03A9\u03B1-\u03C9\u03D1\u03D2\u03D5\u03D6\u03DC\u03DD\u03F0\u03F1\u03F5\u03F6\u0401-\u040C\u040E-\u044F\u0451-\u045C\u045E\u045F\u2002-\u2005\u2007-\u2010\u2013-\u2016\u2018-\u201A\u201C-\u201E\u2020-\u2022\u2025\u2026\u2030-\u2035\u2039\u203A\u203E\u2041\u2043\u2044\u204F\u2057\u205F-\u2063\u20AC\u20DB\u20DC\u2102\u2105\u210A-\u2113\u2115-\u211E\u2122\u2124\u2127-\u2129\u212C\u212D\u212F-\u2131\u2133-\u2138\u2145-\u2148\u2153-\u215E\u2190-\u219B\u219D-\u21A7\u21A9-\u21AE\u21B0-\u21B3\u21B5-\u21B7\u21BA-\u21DB\u21DD\u21E4\u21E5\u21F5\u21FD-\u2205\u2207-\u2209\u220B\u220C\u220F-\u2214\u2216-\u2218\u221A\u221D-\u2238\u223A-\u2257\u2259\u225A\u225C\u225F-\u2262\u2264-\u228B\u228D-\u229B\u229D-\u22A5\u22A7-\u22B0\u22B2-\u22BB\u22BD-\u22DB\u22DE-\u22E3\u22E6-\u22F7\u22F9-\u22FE\u2305\u2306\u2308-\u2310\u2312\u2313\u2315\u2316\u231C-\u231F\u2322\u2323\u232D\u232E\u2336\u233D\u233F\u237C\u23B0\u23B1\u23B4-\u23B6\u23DC-\u23DF\u23E2\u23E7\u2423\u24C8\u2500\u2502\u250C\u2510\u2514\u2518\u251C\u2524\u252C\u2534\u253C\u2550-\u256C\u2580\u2584\u2588\u2591-\u2593\u25A1\u25AA\u25AB\u25AD\u25AE\u25B1\u25B3-\u25B5\u25B8\u25B9\u25BD-\u25BF\u25C2\u25C3\u25CA\u25CB\u25EC\u25EF\u25F8-\u25FC\u2605\u2606\u260E\u2640\u2642\u2660\u2663\u2665\u2666\u266A\u266D-\u266F\u2713\u2717\u2720\u2736\u2758\u2772\u2773\u27C8\u27C9\u27E6-\u27ED\u27F5-\u27FA\u27FC\u27FF\u2902-\u2905\u290C-\u2913\u2916\u2919-\u2920\u2923-\u292A\u2933\u2935-\u2939\u293C\u293D\u2945\u2948-\u294B\u294E-\u2976\u2978\u2979\u297B-\u297F\u2985\u2986\u298B-\u2996\u299A\u299C\u299D\u29A4-\u29B7\u29B9\u29BB\u29BC\u29BE-\u29C5\u29C9\u29CD-\u29D0\u29DC-\u29DE\u29E3-\u29E5\u29EB\u29F4\u29F6\u2A00-\u2A02\u2A04\u2A06\u2A0C\u2A0D\u2A10-\u2A17\u2A22-\u2A27\u2A29\u2A2A\u2A2D-\u2A31\u2A33-\u2A3C\u2A3F\u2A40\u2A42-\u2A4D\u2A50\u2A53-\u2A58\u2A5A-\u2A5D\u2A5F\u2A66\u2A6A\u2A6D-\u2A75\u2A77-\u2A9A\u2A9D-\u2AA2\u2AA4-\u2AB0\u2AB3-\u2AC8\u2ACB\u2ACC\u2ACF-\u2ADB\u2AE4\u2AE6-\u2AE9\u2AEB-\u2AF3\u2AFD\uFB00-\uFB04]|\uD835[\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDCCF\uDD04\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDD6B]/g;varA={"":"shy","":"zwnj","":"zwj","":"lrm","":"ic","":"it","":"af","":"rlm","":"ZeroWidthSpace","":"NoBreak","̑":"DownBreve","⃛":"tdot","⃜":"DotDot","\t":"Tab","\n":"NewLine","":"puncsp","":"MediumSpace","":"thinsp","":"hairsp","":"emsp13","":"ensp","":"emsp14","":"emsp","":"numsp","":"nbsp","":"ThickSpace","‾":"oline",_:"lowbar","‐":"dash","–":"ndash","—":"mdash","―":"horbar",",":"comma",";":"semi","⁏":"bsemi",":":"colon","⩴":"Colone","!":"excl","¡":"iexcl","?":"quest","¿":"iquest",".":"period","‥":"nldr","…":"mldr","·":"middot","'":"apos","‘":"lsquo","’":"rsquo","‚":"sbquo","‹":"lsaquo","›":"rsaquo",'"':"quot","“":"ldquo","”":"rdquo","„":"bdquo","«":"laquo","»":"raquo","(":"lpar",")":"rpar","[":"lsqb","]":"rsqb","{":"lcub","}":"rcub","⌈":"lceil","⌉":"rceil","⌊":"lfloor","⌋":"rfloor","⦅":"lopar","⦆":"ropar","⦋":"lbrke","⦌":"rbrke","⦍":"lbrkslu","⦎":"rbrksld","⦏":"lbrksld","⦐":"rbrkslu","⦑":"langd","⦒":"rangd","⦓":"lparlt","⦔":"rpargt","⦕":"gtlPar","⦖":"ltrPar","⟦":"lobrk","⟧":"robrk","⟨":"lang","⟩":"rang","⟪":"Lang","⟫":"Rang","⟬":"loang","⟭":"roang","❲":"lbbrk","❳":"rbbrk","‖":"Vert","§":"sect","¶":"para","@":"commat","*":"ast","/":"sol",undefined:null,"&":"amp","#":"num","%":"percnt","‰":"permil","‱":"pertenk","†":"dagger","‡":"Dagger","•":"bull","⁃":"hybull","′":"prime","″":"Prime","‴":"tprime","⁗":"qprimeLine truncated
*/var n=r(7426);var i=r(1017).extname;var a=/^\s*([^;\s]*)(?:;|\s|$)/;varo=/^text\//i;t.charset=charset;t.charsets={lookup:charset};t.contentType=contentType;t.extension=extension;t.extensions=Object.create(null);t.lookup=lookup;t.types=Object.create(null);populateMaps(t.extensions,t.types);functioncharset(e){if(!e||typeofe!=="string"){returnfalse}vart=a.exec(e);varr=t&&n[t[1].toLowerCase()];if(r&&r.charset){returnr.charset}if(t&&o.test(t[1])){return"UTF-8"}returnfalse}functioncontentType(e){if(!e||typeofe!=="string"){returnfalse}varr=e.indexOf("/")===-1?t.lookup(e):e;if(!r){returnfalse}if(r.indexOf("charset")===-1){varn=t.charset(r);if(n)r+="; charset="+n.toLowerCase()}returnr}functionextension(e){if(!e||typeofe!=="string"){returnfalse}varr=a.exec(e);varn=r&&t.extensions[r[1].toLowerCase()];if(!n||!n.length){returnfalse}returnn[0]}functionlookup(e){if(!e||typeofe!=="string"){returnfalse}varr=i("x."+e).toLowerCase().substr(1);if(!r){returnfalse}returnt.types[r]||false}functionpopulateMaps(e,t){varr=["nginx","apache",undefined,"iana"];Object.keys(n).forEach((functionforEachMimeType(i){vara=n[i];varo=a.extensions;if(!o||!o.length){return}e[i]=o;for(vars=0;s<o.length;s++){varc=o[s];if(t[c]){varl=r.indexOf(n[t[c]].source);vard=r.indexOf(a.source);if(t[c]!=="application/octet-stream"&&(l>d||l===d&&t[c].substr(0,12)==="application/")){continue}}t[c]=i}}))}},3973:(e,t,r)=>{e.exports=minimatch;minimatch.Minimatch=Minimatch;varn=function(){try{returnr(1017)}catch(e){}}()||{sep:"/"};minimatch.sep=n.sep;vari=minimatch.GLOBSTAR=Minimatch.GLOBSTAR={};vara=r(8184);varo={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}};vars="[^/]";varc=s+"*?";varl="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?";vard="(?:(?!(?:\\/|^)\\.).)*?";varp=charSet("().*{}+?[]^$\\!");functioncharSet(e){returne.split("").reduce((function(e,t){e[t]=true;returne}),{})}varu=/\/+/;minimatch.filter=filter;functionfilter(e,t){t=t||{};returnfunction(r,n,i){returnminimatch(r,e,t)}}functionext(e,t){t=t||{};varr={};Object.keys(e).forEach((function(t){r[t]=e[t]}));Object.keys(t).forEach((function(e){r[e]=t[e]}));returnr}minimatch.defaults=function(e){if(!e||typeofe!=="object"||!Object.keys(e).length){returnminimatch}vart=minimatch;varr=functionminimatch(r,n,i){returnt(r,n,ext(e,i))};r.Minimatch=functionMinimatch(r,n){returnnewt.Minimatch(r,ext(e,n))};r.Minimatch.defaults=functiondefaults(r){returnt.defaults(ext(e,r)).Minimatch};r.filter=functionfilter(r,n){returnt.filter(r,ext(e,n))};r.defaults=functiondefaults(r){returnt.defaults(ext(e,r))};r.makeRe=functionmakeRe(r,n){returnt.makeRe(r,ext(e,n))};r.braceExpand=functionbraceExpand(r,n){returnt.braceExpand(r,ext(e,n))};r.match=function(r,n,i){returnt.match(r,n,ext(e,i))};returnr};Minimatch.defaults=function(e){returnminimatch.defaults(e).Minimatch};functionminimatch(e,t,r){assertValidPattern(t);if(!r)r={};if(!r.nocomment&&t.charAt(0)==="#"){returnfalse}returnnewMinimatch(t,r).match(e)}functionMinimatch(e,t){if(!(thisinstanceofMinimatch)){returnnewMinimatch(e,t)}assertValidPattern(e);if(!t)t={};e=e.trim();if(!t.allowWindowsEscape&&n.sep!=="/"){e=e.split(n.sep).join("/")}this.options=t;this.set=[];this.pattern=e;this.regexp=null;this.negate=false;this.comment=false;this.empty=false;this.partial=!!t.partial;this.make()}Minimatch.prototype.debug=function(){};Minimatch.prototype.make=make;functionmake(){vare=this.pattern;vart=this.options;if(!t.nocomment&&e.charAt(0)==="#"){this.comment=true;return}if(!e){this.empty=true;return}this.parseNegate();varr=this.globSet=this.braceExpand();if(t.debug)this.debug=functiondebug(){console.error.apply(console,arguments)};this.debug(this.pattern,r);r=this.globParts=r.map((function(e){returne.split(u)}));this.debug(this.pattern,r);r=r.map((function(e,t,r){returne.map(this.parse,this)}),this);this.debug(this.pattern,r);r=r.filter((function(e){returne.indexOf(false)===-1}));this.debug(this.pattern,r);this.set=r}Minimatch.prototype.parseNegate=parseNegate;functionparseNegate(){vare=this.pattern;vart=false;varr=this.options;varn=0;if(r.nonegate)return;for(vari=0,a=e.length;i<a&&e.charAt(i)==="!";i++){t=!t;n++}if(n)this.pattern=e.substr(n);this.negate=t}minimatch.braceExpand=function(e,t){returnbraceExpand(e,t)};Minimatch.prototype.braceExpand=braceExpand;functionbraceExpand(e,t){if(!t){if(thisinstanceofMinimatch){t=this.options}else{t={}}}e=typeofe==="undefined"?this.pattern:e;assertValidPattern(e);if(t.nobrace||!/\{(?:(?!\{).)*\}/.test(e)){return[e]}returna(e)}varA=1024*64;varassertValidPattern=function(e){if(typeofe!=="string"){thrownewTypeError("invalid pattern")}if(e.length>A){thrownewTypeError("pattern is too long")}};Minimatch.prototype.parse=parse;varm={};functionparse(e,t){assertValidPattern(e);varr=this.options;if(e==="**"){if(!r.noglobstar)returni;elsee="*"}iLine truncated
/*! http://mths.be/fromcodepoint v0.1.0 by @mathias */if(!String.fromCodePoint){(function(){vare=String.fromCharCode;vart=Math.floor;varfromCodePoint=function(){varr=16384;varn=[];vari;vara;varo=-1;vars=arguments.length;if(!s){return""}varc="";while(++o<s){varl=Number(arguments[o]);if(!isFinite(l)||l<0||l>1114111||t(l)!==l){throwRangeError("Invalid code point: "+l)}if(l<=65535){n.push(l)}else{l-=65536;i=(l>>10)+55296;a=l%1024+56320;n.push(i,a)}if(o+1===s||n.length>r){c+=e.apply(null,n);n.length=0}}returnc};if(Object.defineProperty){Object.defineProperty(String,"fromCodePoint",{value:fromCodePoint,configurable:true,writable:true})}else{String.fromCodePoint=fromCodePoint}})()}})(false?0:t)},5911:(e,t)=>{t=e.exports=SemVer;varr;if(typeofprocess==="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)){r=function(){vare=Array.prototype.slice.call(arguments,0);e.unshift("SEMVER");console.log.apply(console,e)}}else{r=function(){}}t.SEMVER_SPEC_VERSION="2.0.0";varn=256;vari=Number.MAX_SAFE_INTEGER||9007199254740991;vara=16;varo=n-6;vars=t.re=[];varc=t.safeRe=[];varl=t.src=[];vard=t.tokens={};varp=0;functiontok(e){d[e]=p++}varu="[a-zA-Z0-9-]";varA=[["\\s",1],["\\d",n],[u,o]];functionmakeSafeRe(e){for(vart=0;t<A.length;t++){varr=A[t][0];varn=A[t][1];e=e.split(r+"*").join(r+"{0,"+n+"}").split(r+"+").join(r+"{1,"+n+"}")}returne}tok("NUMERICIDENTIFIER");l[d.NUMERICIDENTIFIER]="0|[1-9]\\d*";tok("NUMERICIDENTIFIERLOOSE");l[d.NUMERICIDENTIFIERLOOSE]="\\d+";tok("NONNUMERICIDENTIFIER");l[d.NONNUMERICIDENTIFIER]="\\d*[a-zA-Z-]"+u+"*";tok("MAINVERSION");l[d.MAINVERSION]="("+l[d.NUMERICIDENTIFIER]+")\\."+"("+l[d.NUMERICIDENTIFIER]+")\\."+"("+l[d.NUMERICIDENTIFIER]+")";tok("MAINVERSIONLOOSE");l[d.MAINVERSIONLOOSE]="("+l[d.NUMERICIDENTIFIERLOOSE]+")\\."+"("+l[d.NUMERICIDENTIFIERLOOSE]+")\\."+"("+l[d.NUMERICIDENTIFIERLOOSE]+")";tok("PRERELEASEIDENTIFIER");l[d.PRERELEASEIDENTIFIER]="(?:"+l[d.NUMERICIDENTIFIER]+"|"+l[d.NONNUMERICIDENTIFIER]+")";tok("PRERELEASEIDENTIFIERLOOSE");l[d.PRERELEASEIDENTIFIERLOOSE]="(?:"+l[d.NUMERICIDENTIFIERLOOSE]+"|"+l[d.NONNUMERICIDENTIFIER]+")";tok("PRERELEASE");l[d.PRERELEASE]="(?:-("+l[d.PRERELEASEIDENTIFIER]+"(?:\\."+l[d.PRERELEASEIDENTIFIER]+")*))";tok("PRERELEASELOOSE");l[d.PRERELEASELOOSE]="(?:-?("+l[d.PRERELEASEIDENTIFIERLOOSE]+"(?:\\."+l[d.PRERELEASEIDENTIFIERLOOSE]+")*))";tok("BUILDIDENTIFIER");l[d.BUILDIDENTIFIER]=u+"+";tok("BUILD");l[d.BUILD]="(?:\\+("+l[d.BUILDIDENTIFIER]+"(?:\\."+l[d.BUILDIDENTIFIER]+")*))";tok("FULL");tok("FULLPLAIN");l[d.FULLPLAIN]="v?"+l[d.MAINVERSION]+l[d.PRERELEASE]+"?"+l[d.BUILD]+"?";l[d.FULL]="^"+l[d.FULLPLAIN]+"$";tok("LOOSEPLAIN");l[d.LOOSEPLAIN]="[v=\\s]*"+l[d.MAINVERSIONLOOSE]+l[d.PRERELEASELOOSE]+"?"+l[d.BUILD]+"?";tok("LOOSE");l[d.LOOSE]="^"+l[d.LOOSEPLAIN]+"$";tok("GTLT");l[d.GTLT]="((?:<|>)?=?)";tok("XRANGEIDENTIFIERLOOSE");l[d.XRANGEIDENTIFIERLOOSE]=l[d.NUMERICIDENTIFIERLOOSE]+"|x|X|\\*";tok("XRANGEIDENTIFIER");l[d.XRANGEIDENTIFIER]=l[d.NUMERICIDENTIFIER]+"|x|X|\\*";tok("XRANGEPLAIN");l[d.XRANGEPLAIN]="[v=\\s]*("+l[d.XRANGEIDENTIFIER]+")"+"(?:\\.("+l[d.XRANGEIDENTIFIER]+")"+"(?:\\.("+l[d.XRANGEIDENTIFIER]+")"+"(?:"+l[d.PRERELEASE]+")?"+l[d.BUILD]+"?"+")?)?";tok("XRANGEPLAINLOOSE");l[d.XRANGEPLAINLOOSE]="[v=\\s]*("+l[d.XRANGEIDENTIFIERLOOSE]+")"+"(?:\\.("+l[d.XRANGEIDENTIFIERLOOSE]+")"+"(?:\\.("+l[d.XRANGEIDENTIFIERLOOSE]+")"+"(?:"+l[d.PRERELEASELOOSE]+")?"+l[d.BUILD]+"?"+")?)?";tok("XRANGE");l[d.XRANGE]="^"+l[d.GTLT]+"\\s*"+l[d.XRANGEPLAIN]+"$";tok("XRANGELOOSE");l[d.XRANGELOOSE]="^"+l[d.GTLT]+"\\s*"+l[d.XRANGEPLAINLOOSE]+"$";tok("COERCE");l[d.COERCE]="(^|[^\\d])"+"(\\d{1,"+a+"})"+"(?:\\.(\\d{1,"+a+"}))?"+"(?:\\.(\\d{1,"+a+"}))?"+"(?:$|[^\\d])";tok("COERCERTL");s[d.COERCERTL]=newRegExp(l[d.COERCE],"g");c[d.COERCERTL]=newRegExp(makeSafeRe(l[d.COERCE]),"g");tok("LONETILDE");l[d.LONETILDE]="(?:~>?)";tok("TILDETRIM");l[d.TILDETRIM]="(\\s*)"+l[d.LONETILDE]+"\\s+";s[d.TILDETRIM]=newRegExp(l[d.TILDETRIM],"g");c[d.TILDETRIM]=newRegExp(makeSafeRe(l[d.TILDETRIM]),"g");varm="$1~";tok("TILDE");l[d.TILDE]="^"+l[d.LONETILDE]+l[d.XRANGEPLAIN]+"$";tok("TILDELOOSE");l[d.TILDELOOSE]="^"+l[d.LONETILDE]+l[d.XRANGEPLAINLOOSE]+"$";tok("LONECARET");l[d.LONECARET]="(?:\\^)";tok("CARETTRIM");l[d.CARETTRIM]="(\\s*)"+l[d.LONECARET]+"\\s+";s[d.CARETTRIM]=newRegExp(l[d.CARETTRIM],"g");c[d.CARETTRIM]=newRegExp(makeSafeRe(l[d.CARETTRIM]),"g");varg="$1^";tok("CARET");l[d.CARET]="^"+l[d.LONECARET]+l[d.XRANGEPLAIN]+"$";tok("CARETLOOSE");l[d.CARETLOOSE]="^"+l[d.LONECARET]+l[d.XRANGEPLAINLOOSE]+"$";tok("COMPARATORLOOSE");l[d.COMPARATORLOOSE]="^"+l[d.GTLT]+"\\s*("+l[d.LOOSEPLAIN]+")$|^$";tok("COMPARATOR");l[d.COMPARATOR]="^"+l[d.GTLT]+"\\s*("+l[d.FULLPLAIN]+")$|^$";tok("COMPARATORTRIM");l[d.COMPARATORTRIM]="(\\s*)"+l[d.GTLT]+"\\s*("+l[d.LOOSEPLAIN]+"|"+l[d.XRANGEPLAIN]+")";s[d.COMPARATORTRIM]=newRegExp(l[d.COMPARATORTRIM],"g");c[d.COMPARATORTRIM]=newRegExp(makeSafeRe(l[d.COMPARATORTRIM]),"g");varh="$1$2$3";tok("HYPLine truncated
/*! formdata-polyfill. MIT License. Jimmy Wärting <https://jimmy.warting.se/opensource> */;constescape=e=>e.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22");constnormalizeLinefeeds=e=>e.replace(/\r?\n|\r/g,"\r\n");constn=[];consti=newUint8Array([13,10]);p=0;leta=false;for(const[t,o]ofe){if(typeofo==="string"){conste=Q.encode(r+`; name="${escape(normalizeLinefeeds(t))}"`+`\r\n\r\n${normalizeLinefeeds(o)}\r\n`);n.push(e);p+=e.byteLength}else{conste=Q.encode(`${r}; name="${escape(normalizeLinefeeds(t))}"`+(o.name?`; filename="${escape(o.name)}"`:"")+"\r\n"+`Content-Type: ${o.type||"application/octet-stream"}\r\n\r\n`);n.push(e,o,i);if(typeofo.size==="number"){p+=e.byteLength+o.size+i.byteLength}else{a=true}}}consto=Q.encode(`--${t}--`);n.push(o);p+=o.byteLength;if(a){p=null}d=e;l=asyncfunction*(){for(consteofn){if(e.stream){yield*e.stream()}else{yielde}}};u="multipart/form-data; boundary="+t}elseif(o(e)){d=e;p=e.size;if(e.type){u=e.type}}elseif(typeofe[Symbol.asyncIterator]==="function"){if(t){thrownewTypeError("keepalive")}if(i.isDisturbed(e)||e.locked){thrownewTypeError("Response body object should not be disturbed or locked")}n=einstanceofw?e:a(e)}if(typeofd==="string"||i.isBuffer(d)){p=Buffer.byteLength(d)}if(l!=null){lett;n=neww({asyncstart(){t=l(e)[Symbol.asyncIterator]()},asyncpull(e){const{value:r,done:i}=awaitt.next();if(i){queueMicrotask((()=>{e.close()}))}else{if(!C(n)){e.enqueue(newUint8Array(r))}}returne.desiredSize>0},asynccancel(e){awaitt.return()},type:undefined})}constA={stream:n,source:d,length:p};return[A,u]}functionsafelyExtractBody(e,t=false){if(!w){w=r(5356).ReadableStream}if(einstanceofw){E(!i.isDisturbed(e),"The body has already been consumed.");E(!e.locked,"The stream is locked.")}returnextractBody(e,t)}functioncloneBody(e){const[t,r]=e.stream.tee();constn=g(r,{transfer:[r]});const[,i]=n.tee();e.stream=t;return{stream:i,length:e.length,source:e.source}}asyncfunction*consumeBody(e){if(e){if(v(e)){yielde}else{constt=e.stream;if(i.isDisturbed(t)){thrownewTypeError("The body has already been consumed.")}if(t.locked){thrownewTypeError("The stream is locked.")}t[y]=true;yield*t}}}functionthrowIfAborted(e){if(e.aborted){thrownewm("The operation was aborted.","AbortError")}}functionbodyMixinMethods(e){constt={blob(){returnspecConsumeBody(this,(e=>{lett=bodyMimeType(this);if(t==="failure"){t=""}elseif(t){t=S(t)}returnnewh([e],{type:t})}),e)},arrayBuffer(){returnspecConsumeBody(this,(e=>newUint8Array(e).buffer),e)},text(){returnspecConsumeBody(this,utf8DecodeBytes,e)},json(){returnspecConsumeBody(this,parseJSONFromBytes,e)},asyncformData(){A.brandCheck(this,e);throwIfAborted(this[u]);constt=this.headers.get("Content-Type");if(/multipart\/form-data/.test(t)){conste={};for(const[t,r]ofthis.headers)e[t.toLowerCase()]=r;constt=newp;letr;try{r=newn({headers:e,preservePath:true})}catch(e){thrownewm(`${e}`,"AbortError")}r.on("field",((e,r)=>{t.append(e,r)}));r.on("file",((e,r,n,i,a)=>{consto=[];if(i==="base64"||i.toLowerCase()==="base64"){leti="";r.on("data",(e=>{i+=e.toString().replace(/[\r\n]/gm,"");constt=i.length-i.length%4;o.push(Buffer.from(i.slice(0,t),"base64"));i=i.slice(t)}));r.on("end",(()=>{o.push(Buffer.from(i,"base64"));t.append(e,newx(o,n,{type:a}))}))}else{r.on("data",(e=>{o.push(e)}));r.on("end",(()=>{t.append(e,newx(o,n,{type:a}))}))}}));consti=newPromise(((e,t)=>{r.on("finish",e);r.on("error",(e=>t(newTypeError(e))))}));if(this.body!==null)forawait(consteofconsumeBody(this[u].body))r.write(e);r.end();awaiti;returnt}elseif(/application\/x-www-form-urlencoded/.test(t)){lete;try{lett="";constr=newTextDecoder("utf-8",{ignoreBOM:true});forawait(consteofconsumeBody(this[u].body)){if(!v(e)){thrownewTypeError("Expected Uint8Array chunk")}t+=r.decode(e,{stream:true})}t+=r.decode();e=newURLSearchParams(t)}catch(e){throwObject.assign(newTypeError,{cause:e})}constt=newp;for(const[r,n]ofe){t.append(r,n)}returnt}else{awaitPromise.resolve();throwIfAborted(this[u]);throwA.errors.exception({header:`${e.name}.formData`,message:"Could not parse content as FormData."})}}};returnt}functionmixinBody(e){Object.assign(e.prototype,bodyMixinMethods(e))}asyncfunctionspecConsumeBody(e,t,r){A.brandCheck(e,r);throwIfAborted(e[u]);if(bodyUnusable(e[u].body)){thrownewTypeError("Body is unusable")}constn=l();consterrorSteps=e=>n.reject(e);constsuccessSteps=e=>{try{n.resolve(t(e))}catch(e){errorSteps(e)}};if(e[u].body==null){successSteps(newUint8Array);returnn.promise}awaitd(e[u].body,successSteps,errorSteps);returnn.promise}functionbodyUnusable(e){returne!=null&&(e.stream.locked||i.isDisturbed(e.stream))}functionutf8DecodeBytes(e){if(e.length===0){return""}if(e[0]===239&&e[1]===187&&e[2]===191){e=e.subarray(3)}constt=N.decode(e);returnt}functionparseJSONFromBytes(e){returnJSON.parse(utf8DecodeBytes(e))}functionbodyMimeType(e){const{headersList:t}=e[u];constr=t.get("content-Line truncated
/*! ws. MIT License. Einar Otto Stangvik <einaros@gmail.com> */a[i-4]=this.maskKey[0];a[i-3]=this.maskKey[1];a[i-2]=this.maskKey[2];a[i-1]=this.maskKey[3];a[1]=r;if(r===126){a.writeUInt16BE(t,2)}elseif(r===127){a[2]=a[3]=0;a.writeUIntBE(t,4,6)}a[1]|=128;for(lete=0;e<t;e++){a[i+e]=this.frameData[e]^this.maskKey[e%4]}returna}}e.exports={WebsocketFrameSend:WebsocketFrameSend}},1688:(e,t,r)=>{"use strict";const{Writable:n}=r(2781);consti=r(7643);const{parserStates:a,opcodes:o,states:s,emptyBuffer:c}=r(9188);const{kReadyState:l,kSentClose:d,kResponse:p,kReceivedClose:u}=r(7578);const{isValidStatusCode:A,failWebsocketConnection:m,websocketMessageReceived:g}=r(5515);const{WebsocketFrameSend:h}=r(5444);constf={};f.ping=i.channel("undici:websocket:ping");f.pong=i.channel("undici:websocket:pong");classByteParserextendsn{#o=[];#s=0;#c=a.INFO;#l={};#d=[];constructor(e){super();this.ws=e}_write(e,t,r){this.#o.push(e);this.#s+=e.length;this.run(r)}run(e){while(true){if(this.#c===a.INFO){if(this.#s<2){returne()}constt=this.consume(2);this.#l.fin=(t[0]&128)!==0;this.#l.opcode=t[0]&15;this.#l.originalOpcode??=this.#l.opcode;this.#l.fragmented=!this.#l.fin&&this.#l.opcode!==o.CONTINUATION;if(this.#l.fragmented&&this.#l.opcode!==o.BINARY&&this.#l.opcode!==o.TEXT){m(this.ws,"Invalid frame type was fragmented.");return}constr=t[1]&127;if(r<=125){this.#l.payloadLength=r;this.#c=a.READ_DATA}elseif(r===126){this.#c=a.PAYLOADLENGTH_16}elseif(r===127){this.#c=a.PAYLOADLENGTH_64}if(this.#l.fragmented&&r>125){m(this.ws,"Fragmented frame exceeded 125 bytes.");return}elseif((this.#l.opcode===o.PING||this.#l.opcode===o.PONG||this.#l.opcode===o.CLOSE)&&r>125){m(this.ws,"Payload length for control frame exceeded 125 bytes.");return}elseif(this.#l.opcode===o.CLOSE){if(r===1){m(this.ws,"Received close frame with a 1-byte body.");return}conste=this.consume(r);this.#l.closeInfo=this.parseCloseBody(false,e);if(!this.ws[d]){conste=Buffer.allocUnsafe(2);e.writeUInt16BE(this.#l.closeInfo.code,0);constt=newh(e);this.ws[p].socket.write(t.createFrame(o.CLOSE),(e=>{if(!e){this.ws[d]=true}}))}this.ws[l]=s.CLOSING;this.ws[u]=true;this.end();return}elseif(this.#l.opcode===o.PING){constt=this.consume(r);if(!this.ws[u]){conste=newh(t);this.ws[p].socket.write(e.createFrame(o.PONG));if(f.ping.hasSubscribers){f.ping.publish({payload:t})}}this.#c=a.INFO;if(this.#s>0){continue}else{e();return}}elseif(this.#l.opcode===o.PONG){constt=this.consume(r);if(f.pong.hasSubscribers){f.pong.publish({payload:t})}if(this.#s>0){continue}else{e();return}}}elseif(this.#c===a.PAYLOADLENGTH_16){if(this.#s<2){returne()}constt=this.consume(2);this.#l.payloadLength=t.readUInt16BE(0);this.#c=a.READ_DATA}elseif(this.#c===a.PAYLOADLENGTH_64){if(this.#s<8){returne()}constt=this.consume(8);constr=t.readUInt32BE(0);if(r>2**31-1){m(this.ws,"Received payload length > 2^31 bytes.");return}constn=t.readUInt32BE(4);this.#l.payloadLength=(r<<8)+n;this.#c=a.READ_DATA}elseif(this.#c===a.READ_DATA){if(this.#s<this.#l.payloadLength){returne()}elseif(this.#s>=this.#l.payloadLength){conste=this.consume(this.#l.payloadLength);this.#d.push(e);if(!this.#l.fragmented||this.#l.fin&&this.#l.opcode===o.CONTINUATION){conste=Buffer.concat(this.#d);g(this.ws,this.#l.originalOpcode,e);this.#l={};this.#d.length=0}this.#c=a.INFO}}if(this.#s>0){continue}else{e();break}}}consume(e){if(e>this.#s){returnnull}elseif(e===0){returnc}if(this.#o[0].length===e){this.#s-=this.#o[0].length;returnthis.#o.shift()}constt=Buffer.allocUnsafe(e);letr=0;while(r!==e){constn=this.#o[0];const{length:i}=n;if(i+r===e){t.set(this.#o.shift(),r);break}elseif(i+r>e){t.set(n.subarray(0,e-r),r);this.#o[0]=n.subarray(e-r);break}else{t.set(this.#o.shift(),r);r+=n.length}}this.#s-=e;returnt}parseCloseBody(e,t){letr;if(t.length>=2){r=t.readUInt16BE(0)}if(e){if(!A(r)){returnnull}return{code:r}}letn=t.subarray(2);if(n[0]===239&&n[1]===187&&n[2]===191){n=n.subarray(3)}if(r!==undefined&&!A(r)){returnnull}try{n=newTextDecoder("utf-8",{fatal:true}).decode(n)}catch{returnnull}return{code:r,reason:n}}getclosingInfo(){returnthis.#l.closeInfo}}e.exports={ByteParser:ByteParser}},7578:e=>{"use strict";e.exports={kWebSocketURL:Symbol("url"),kReadyState:Symbol("ready state"),kController:Symbol("controller"),kResponse:Symbol("response"),kBinaryType:Symbol("binary type"),kSentClose:Symbol("sent close"),kReceivedClose:Symbol("received close"),kByteParser:Symbol("byte parser")}},5515:(e,t,r)=>{"use strict";const{kReadyState:n,kController:i,kResponse:a,kBinaryType:o,kWebSocketURL:s}=r(7578);const{states:c,opcodes:l}=r(9188);const{MessageEvent:d,ErrorEvent:p}=r(2611);functionisEstablished(e){returne[n]===c.OPEN}functionisClosing(e){returne[n]===c.CLOSING}functionisClosed(e){returne[n]===c.CLOSED}functionfireEvent(e,t,r=Event,n){consti=newr(e,n);t.dispatchEvent(i)}functionwebsocketMessageReceived(e,t,r){if(e[n]!==c.OPEN){return}leti;if(t===l.TEXT){try{i=newTextDecoder("utf-8",{fatal:true}).decode(r)Line truncated
*/var a=s(47426);var c=s(71017).extname;var l=/^\s*([^;\s]*)(?:;|\s|$)/;vard=/^text\//i;i.charset=charset;i.charsets={lookup:charset};i.contentType=contentType;i.extension=extension;i.extensions=Object.create(null);i.lookup=lookup;i.types=Object.create(null);populateMaps(i.extensions,i.types);functioncharset(r){if(!r||typeofr!=="string"){returnfalse}vari=l.exec(r);vars=i&&a[i[1].toLowerCase()];if(s&&s.charset){returns.charset}if(i&&d.test(i[1])){return"UTF-8"}returnfalse}functioncontentType(r){if(!r||typeofr!=="string"){returnfalse}vars=r.indexOf("/")===-1?i.lookup(r):r;if(!s){returnfalse}if(s.indexOf("charset")===-1){vara=i.charset(s);if(a)s+="; charset="+a.toLowerCase()}returns}functionextension(r){if(!r||typeofr!=="string"){returnfalse}vars=l.exec(r);vara=s&&i.extensions[s[1].toLowerCase()];if(!a||!a.length){returnfalse}returna[0]}functionlookup(r){if(!r||typeofr!=="string"){returnfalse}vars=c("x."+r).toLowerCase().substr(1);if(!s){returnfalse}returni.types[s]||false}functionpopulateMaps(r,i){vars=["nginx","apache",undefined,"iana"];Object.keys(a).forEach((functionforEachMimeType(c){varl=a[c];vard=l.extensions;if(!d||!d.length){return}r[c]=d;for(varp=0;p<d.length;p++){varu=d[p];if(i[u]){varh=s.indexOf(a[i[u]].source);varA=s.indexOf(l.source);if(i[u]!=="application/octet-stream"&&(h>A||h===A&&i[u].substr(0,12)==="application/")){continue}}i[u]=c}}))}},83973:(r,i,s)=>{r.exports=minimatch;minimatch.Minimatch=Minimatch;vara=function(){try{returns(71017)}catch(r){}}()||{sep:"/"};minimatch.sep=a.sep;varc=minimatch.GLOBSTAR=Minimatch.GLOBSTAR={};varl=s(48184);vard={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}};varp="[^/]";varu=p+"*?";varh="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?";varA="(?:(?!(?:\\/|^)\\.).)*?";varg=charSet("().*{}+?[]^$\\!");functioncharSet(r){returnr.split("").reduce((function(r,i){r[i]=true;returnr}),{})}vary=/\/+/;minimatch.filter=filter;functionfilter(r,i){i=i||{};returnfunction(s,a,c){returnminimatch(s,r,i)}}functionext(r,i){i=i||{};vars={};Object.keys(r).forEach((function(i){s[i]=r[i]}));Object.keys(i).forEach((function(r){s[r]=i[r]}));returns}minimatch.defaults=function(r){if(!r||typeofr!=="object"||!Object.keys(r).length){returnminimatch}vari=minimatch;vars=functionminimatch(s,a,c){returni(s,a,ext(r,c))};s.Minimatch=functionMinimatch(s,a){returnnewi.Minimatch(s,ext(r,a))};s.Minimatch.defaults=functiondefaults(s){returni.defaults(ext(r,s)).Minimatch};s.filter=functionfilter(s,a){returni.filter(s,ext(r,a))};s.defaults=functiondefaults(s){returni.defaults(ext(r,s))};s.makeRe=functionmakeRe(s,a){returni.makeRe(s,ext(r,a))};s.braceExpand=functionbraceExpand(s,a){returni.braceExpand(s,ext(r,a))};s.match=function(s,a,c){returni.match(s,a,ext(r,c))};returns};Minimatch.defaults=function(r){returnminimatch.defaults(r).Minimatch};functionminimatch(r,i,s){assertValidPattern(i);if(!s)s={};if(!s.nocomment&&i.charAt(0)==="#"){returnfalse}returnnewMinimatch(i,s).match(r)}functionMinimatch(r,i){if(!(thisinstanceofMinimatch)){returnnewMinimatch(r,i)}assertValidPattern(r);if(!i)i={};r=r.trim();if(!i.allowWindowsEscape&&a.sep!=="/"){r=r.split(a.sep).join("/")}this.options=i;this.set=[];this.pattern=r;this.regexp=null;this.negate=false;this.comment=false;this.empty=false;this.partial=!!i.partial;this.make()}Minimatch.prototype.debug=function(){};Minimatch.prototype.make=make;functionmake(){varr=this.pattern;vari=this.options;if(!i.nocomment&&r.charAt(0)==="#"){this.comment=true;return}if(!r){this.empty=true;return}this.parseNegate();vars=this.globSet=this.braceExpand();if(i.debug)this.debug=functiondebug(){console.error.apply(console,arguments)};this.debug(this.pattern,s);s=this.globParts=s.map((function(r){returnr.split(y)}));this.debug(this.pattern,s);s=s.map((function(r,i,s){returnr.map(this.parse,this)}),this);this.debug(this.pattern,s);s=s.filter((function(r){returnr.indexOf(false)===-1}));this.debug(this.pattern,s);this.set=s}Minimatch.prototype.parseNegate=parseNegate;functionparseNegate(){varr=this.pattern;vari=false;vars=this.options;vara=0;if(s.nonegate)return;for(varc=0,l=r.length;c<l&&r.charAt(c)==="!";c++){i=!i;a++}if(a)this.pattern=r.substr(a);this.negate=i}minimatch.braceExpand=function(r,i){returnbraceExpand(r,i)};Minimatch.prototype.braceExpand=braceExpand;functionbraceExpand(r,i){if(!i){if(thisinstanceofMinimatch){i=this.options}else{i={}}}r=typeofr==="undefined"?this.pattern:r;assertValidPattern(r);if(i.nobrace||!/\{(?:(?!\{).)*\}/.test(r)){return[r]}returnl(r)}varb=1024*64;varassertValidPattern=function(r){if(typeofr!=="string"){thrownewTypeError("invalid pattern")}if(r.length>b){thrownewTypeError("pattern is too long")}};Minimatch.prototype.parse=parse;varv={};functionparse(r,i){assertValidPattern(r);vars=this.options;if(r==="**"){if(!s.noglobstar)returnc;elser=Line truncated
r.exports=function(r,i){if(typeofr!=="string"){thrownewTypeError("expected path to be a string")}if(r==="\\"||r==="/")return"/";vars=r.length;if(s<=1)returnr;vara="";if(s>4&&r[3]==="\\"){varc=r[2];if((c==="?"||c===".")&&r.slice(0,2)==="\\\\"){r=r.slice(2);a="//"}}varl=r.split(/[/\\]+/);if(i!==false&&l[l.length-1]===""){l.pop()}returna+l.join("/")}},1223:(r,i,s)=>{vara=s(62940);r.exports=a(once);r.exports.strict=a(onceStrict);once.proto=once((function(){Object.defineProperty(Function.prototype,"once",{value:function(){returnonce(this)},configurable:true});Object.defineProperty(Function.prototype,"onceStrict",{value:function(){returnonceStrict(this)},configurable:true})}));functiononce(r){varf=function(){if(f.called)returnf.value;f.called=true;returnf.value=r.apply(this,arguments)};f.called=false;returnf}functiononceStrict(r){varf=function(){if(f.called)thrownewError(f.onceError);f.called=true;returnf.value=r.apply(this,arguments)};vari=r.name||"Function wrapped with `once`";f.onceError=i+" shouldn't be called more than once";f.called=false;returnf}},47810:r=>{"use strict";if(typeofprocess==="undefined"||!process.version||process.version.indexOf("v0.")===0||process.version.indexOf("v1.")===0&&process.version.indexOf("v1.8.")!==0){r.exports={nextTick:nextTick}}else{r.exports=process}functionnextTick(r,i,s,a){if(typeofr!=="function"){thrownewTypeError('"callback" argument must be a function')}varc=arguments.length;varl,d;switch(c){case0:case1:returnprocess.nextTick(r);case2:returnprocess.nextTick((functionafterTickOne(){r.call(null,i)}));case3:returnprocess.nextTick((functionafterTickTwo(){r.call(null,i,s)}));case4:returnprocess.nextTick((functionafterTickThree(){r.call(null,i,s,a)}));default:l=newArray(c-1);d=0;while(d<l.length){l[d++]=arguments[d]}returnprocess.nextTick((functionafterTick(){r.apply(null,l)}))}}},45676:r=>{r.exports=global.process},5322:(r,i,s)=>{r.exports=typeofprocess!=="undefined"&&typeofprocess.nextTick==="function"?process.nextTick.bind(process):s(71031)},71031:r=>{r.exports=typeofqueueMicrotask==="function"?queueMicrotask:r=>Promise.resolve().then(r)},80289:(r,i,s)=>{"use strict";const{SymbolDispose:a}=s(89629);const{AbortError:c,codes:l}=s(80529);const{isNodeStream:d,isWebStream:p,kControllerErrorFunction:u}=s(27981);consth=s(76080);const{ERR_INVALID_ARG_TYPE:A}=l;letg;constvalidateAbortSignal=(r,i)=>{if(typeofr!=="object"||!("aborted"inr)){thrownewA(i,"AbortSignal",r)}};r.exports.addAbortSignal=functionaddAbortSignal(i,s){validateAbortSignal(i,"signal");if(!d(s)&&!p(s)){thrownewA("stream",["ReadableStream","WritableStream","Stream"],s)}returnr.exports.addAbortSignalNoValidate(i,s)};r.exports.addAbortSignalNoValidate=function(r,i){if(typeofr!=="object"||!("aborted"inr)){returni}constl=d(i)?()=>{i.destroy(newc(undefined,{cause:r.reason}))}:()=>{i[u](newc(undefined,{cause:r.reason}))};if(r.aborted){l()}else{g=g||s(46959).addAbortListener;constc=g(r,l);h(i,c[a])}returni}},52746:(r,i,s)=>{"use strict";const{StringPrototypeSlice:a,SymbolIterator:c,TypedArrayPrototypeSet:l,Uint8Array:d}=s(89629);const{Buffer:p}=s(14300);const{inspect:u}=s(46959);r.exports=classBufferList{constructor(){this.head=null;this.tail=null;this.length=0}push(r){consti={data:r,next:null};if(this.length>0)this.tail.next=i;elsethis.head=i;this.tail=i;++this.length}unshift(r){consti={data:r,next:this.head};if(this.length===0)this.tail=i;this.head=i;++this.length}shift(){if(this.length===0)return;constr=this.head.data;if(this.length===1)this.head=this.tail=null;elsethis.head=this.head.next;--this.length;returnr}clear(){this.head=this.tail=null;this.length=0}join(r){if(this.length===0)return"";leti=this.head;lets=""+i.data;while((i=i.next)!==null)s+=r+i.data;returns}concat(r){if(this.length===0)returnp.alloc(0);consti=p.allocUnsafe(r>>>0);lets=this.head;leta=0;while(s){l(i,s.data,a);a+=s.data.length;s=s.next}returni}consume(r,i){consts=this.head.data;if(r<s.length){consti=s.slice(0,r);this.head.data=s.slice(r);returni}if(r===s.length){returnthis.shift()}returni?this._getString(r):this._getBuffer(r)}first(){returnthis.head.data}*[c](){for(letr=this.head;r;r=r.next){yieldr.data}}_getString(r){leti="";lets=this.head;letc=0;do{constl=s.data;if(r>l.length){i+=l;r-=l.length}else{if(r===l.length){i+=l;++c;if(s.next)this.head=s.next;elsethis.head=this.tail=null}else{i+=a(l,0,r);this.head=s;s.data=a(l,r)}break}++c}while((s=s.next)!==null);this.length-=c;returni}_getBuffer(r){consti=p.allocUnsafe(r);consts=r;leta=this.head;letc=0;do{constp=a.data;if(r>p.length){l(i,p,s-r);r-=p.length}else{if(r===p.length){l(i,p,s-r);++c;if(a.next)this.head=a.next;elsethis.head=this.tail=null}else{l(i,newd(p.buffer,p.byteOffset,r),s-r);this.head=a;a.data=p.slice(r)}break}++c}while((a=a.next)!==null);this.length-=c;returni}[Symbol.for("nodejs.util.inspect.custom")](r,i){returnu(this,{...i,depth:0,customInspect:false})}}},63129:(r,i,s)=>{"usestricLine truncated
/*! http://mths.be/fromcodepoint v0.1.0 by @mathias */if(!String.fromCodePoint){(function(){varr=String.fromCharCode;vari=Math.floor;varfromCodePoint=function(){vars=16384;vara=[];varc;varl;vard=-1;varp=arguments.length;if(!p){return""}varu="";while(++d<p){varh=Number(arguments[d]);if(!isFinite(h)||h<0||h>1114111||i(h)!==h){throwRangeError("Invalid code point: "+h)}if(h<=65535){a.push(h)}else{h-=65536;c=(h>>10)+55296;l=h%1024+56320;a.push(c,l)}if(d+1===p||a.length>s){u+=r.apply(null,a);a.length=0}}returnu};if(Object.defineProperty){Object.defineProperty(String,"fromCodePoint",{value:fromCodePoint,configurable:true,writable:true})}else{String.fromCodePoint=fromCodePoint}})()}})(false?0:i)},85911:(r,i)=>{i=r.exports=SemVer;vars;if(typeofprocess==="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)){s=function(){varr=Array.prototype.slice.call(arguments,0);r.unshift("SEMVER");console.log.apply(console,r)}}else{s=function(){}}i.SEMVER_SPEC_VERSION="2.0.0";vara=256;varc=Number.MAX_SAFE_INTEGER||9007199254740991;varl=16;vard=a-6;varp=i.re=[];varu=i.safeRe=[];varh=i.src=[];varA=i.tokens={};varg=0;functiontok(r){A[r]=g++}vary="[a-zA-Z0-9-]";varb=[["\\s",1],["\\d",a],[y,d]];functionmakeSafeRe(r){for(vari=0;i<b.length;i++){vars=b[i][0];vara=b[i][1];r=r.split(s+"*").join(s+"{0,"+a+"}").split(s+"+").join(s+"{1,"+a+"}")}returnr}tok("NUMERICIDENTIFIER");h[A.NUMERICIDENTIFIER]="0|[1-9]\\d*";tok("NUMERICIDENTIFIERLOOSE");h[A.NUMERICIDENTIFIERLOOSE]="\\d+";tok("NONNUMERICIDENTIFIER");h[A.NONNUMERICIDENTIFIER]="\\d*[a-zA-Z-]"+y+"*";tok("MAINVERSION");h[A.MAINVERSION]="("+h[A.NUMERICIDENTIFIER]+")\\."+"("+h[A.NUMERICIDENTIFIER]+")\\."+"("+h[A.NUMERICIDENTIFIER]+")";tok("MAINVERSIONLOOSE");h[A.MAINVERSIONLOOSE]="("+h[A.NUMERICIDENTIFIERLOOSE]+")\\."+"("+h[A.NUMERICIDENTIFIERLOOSE]+")\\."+"("+h[A.NUMERICIDENTIFIERLOOSE]+")";tok("PRERELEASEIDENTIFIER");h[A.PRERELEASEIDENTIFIER]="(?:"+h[A.NUMERICIDENTIFIER]+"|"+h[A.NONNUMERICIDENTIFIER]+")";tok("PRERELEASEIDENTIFIERLOOSE");h[A.PRERELEASEIDENTIFIERLOOSE]="(?:"+h[A.NUMERICIDENTIFIERLOOSE]+"|"+h[A.NONNUMERICIDENTIFIER]+")";tok("PRERELEASE");h[A.PRERELEASE]="(?:-("+h[A.PRERELEASEIDENTIFIER]+"(?:\\."+h[A.PRERELEASEIDENTIFIER]+")*))";tok("PRERELEASELOOSE");h[A.PRERELEASELOOSE]="(?:-?("+h[A.PRERELEASEIDENTIFIERLOOSE]+"(?:\\."+h[A.PRERELEASEIDENTIFIERLOOSE]+")*))";tok("BUILDIDENTIFIER");h[A.BUILDIDENTIFIER]=y+"+";tok("BUILD");h[A.BUILD]="(?:\\+("+h[A.BUILDIDENTIFIER]+"(?:\\."+h[A.BUILDIDENTIFIER]+")*))";tok("FULL");tok("FULLPLAIN");h[A.FULLPLAIN]="v?"+h[A.MAINVERSION]+h[A.PRERELEASE]+"?"+h[A.BUILD]+"?";h[A.FULL]="^"+h[A.FULLPLAIN]+"$";tok("LOOSEPLAIN");h[A.LOOSEPLAIN]="[v=\\s]*"+h[A.MAINVERSIONLOOSE]+h[A.PRERELEASELOOSE]+"?"+h[A.BUILD]+"?";tok("LOOSE");h[A.LOOSE]="^"+h[A.LOOSEPLAIN]+"$";tok("GTLT");h[A.GTLT]="((?:<|>)?=?)";tok("XRANGEIDENTIFIERLOOSE");h[A.XRANGEIDENTIFIERLOOSE]=h[A.NUMERICIDENTIFIERLOOSE]+"|x|X|\\*";tok("XRANGEIDENTIFIER");h[A.XRANGEIDENTIFIER]=h[A.NUMERICIDENTIFIER]+"|x|X|\\*";tok("XRANGEPLAIN");h[A.XRANGEPLAIN]="[v=\\s]*("+h[A.XRANGEIDENTIFIER]+")"+"(?:\\.("+h[A.XRANGEIDENTIFIER]+")"+"(?:\\.("+h[A.XRANGEIDENTIFIER]+")"+"(?:"+h[A.PRERELEASE]+")?"+h[A.BUILD]+"?"+")?)?";tok("XRANGEPLAINLOOSE");h[A.XRANGEPLAINLOOSE]="[v=\\s]*("+h[A.XRANGEIDENTIFIERLOOSE]+")"+"(?:\\.("+h[A.XRANGEIDENTIFIERLOOSE]+")"+"(?:\\.("+h[A.XRANGEIDENTIFIERLOOSE]+")"+"(?:"+h[A.PRERELEASELOOSE]+")?"+h[A.BUILD]+"?"+")?)?";tok("XRANGE");h[A.XRANGE]="^"+h[A.GTLT]+"\\s*"+h[A.XRANGEPLAIN]+"$";tok("XRANGELOOSE");h[A.XRANGELOOSE]="^"+h[A.GTLT]+"\\s*"+h[A.XRANGEPLAINLOOSE]+"$";tok("COERCE");h[A.COERCE]="(^|[^\\d])"+"(\\d{1,"+l+"})"+"(?:\\.(\\d{1,"+l+"}))?"+"(?:\\.(\\d{1,"+l+"}))?"+"(?:$|[^\\d])";tok("COERCERTL");p[A.COERCERTL]=newRegExp(h[A.COERCE],"g");u[A.COERCERTL]=newRegExp(makeSafeRe(h[A.COERCE]),"g");tok("LONETILDE");h[A.LONETILDE]="(?:~>?)";tok("TILDETRIM");h[A.TILDETRIM]="(\\s*)"+h[A.LONETILDE]+"\\s+";p[A.TILDETRIM]=newRegExp(h[A.TILDETRIM],"g");u[A.TILDETRIM]=newRegExp(makeSafeRe(h[A.TILDETRIM]),"g");varv="$1~";tok("TILDE");h[A.TILDE]="^"+h[A.LONETILDE]+h[A.XRANGEPLAIN]+"$";tok("TILDELOOSE");h[A.TILDELOOSE]="^"+h[A.LONETILDE]+h[A.XRANGEPLAINLOOSE]+"$";tok("LONECARET");h[A.LONECARET]="(?:\\^)";tok("CARETTRIM");h[A.CARETTRIM]="(\\s*)"+h[A.LONECARET]+"\\s+";p[A.CARETTRIM]=newRegExp(h[A.CARETTRIM],"g");u[A.CARETTRIM]=newRegExp(makeSafeRe(h[A.CARETTRIM]),"g");varC="$1^";tok("CARET");h[A.CARET]="^"+h[A.LONECARET]+h[A.XRANGEPLAIN]+"$";tok("CARETLOOSE");h[A.CARETLOOSE]="^"+h[A.LONECARET]+h[A.XRANGEPLAINLOOSE]+"$";tok("COMPARATORLOOSE");h[A.COMPARATORLOOSE]="^"+h[A.GTLT]+"\\s*("+h[A.LOOSEPLAIN]+")$|^$";tok("COMPARATOR");h[A.COMPARATOR]="^"+h[A.GTLT]+"\\s*("+h[A.FULLPLAIN]+")$|^$";tok("COMPARATORTRIM");h[A.COMPARATORTRIM]="(\\s*)"+h[A.GTLT]+"\\s*("+h[A.LOOSEPLAIN]+"|"+h[A.XRANGEPLAIN]+")";p[A.COMPARATORTRIM]=newRegExp(h[A.COMPARATORTRIM],"g");u[A.COMPARATORTRIM]=newRegExp(makeSafeRe(h[A.COMPARATORTRIM]),"g");varw="$1$2$3";tok("HYLine truncated
consta=s(57147);constc=s(22037);constl=s(71017);constd=s(6113);constp={fs:a.constants,os:c.constants};constu="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",h=/XXXXXX/,A=3,g=(p.O_CREAT||p.fs.O_CREAT)|(p.O_EXCL||p.fs.O_EXCL)|(p.O_RDWR||p.fs.O_RDWR),y=c.platform()==="win32",b=p.EBADF||p.os.errno.EBADF,v=p.ENOENT||p.os.errno.ENOENT,C=448,w=384,S="exit",x=[],I=a.rmdirSync.bind(a);letB=false;functionrimraf(r,i){returna.rm(r,{recursive:true},i)}functionFN_RIMRAF_SYNC(r){returna.rmSync(r,{recursive:true})}functiontmpName(r,i){consts=_parseArguments(r,i),c=s[0],l=s[1];try{_assertAndSanitizeOptions(c)}catch(r){returnl(r)}letd=c.tries;(function_getUniqueName(){try{constr=_generateTmpName(c);a.stat(r,(function(i){if(!i){if(d-->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),s=i[0];_assertAndSanitizeOptions(s);letc=s.tries;do{constr=_generateTmpName(s);try{a.statSync(r)}catch(i){returnr}}while(c-->0);thrownewError("Could not get a unique tmp filename, max tries reached")}functionfile(r,i){consts=_parseArguments(r,i),c=s[0],l=s[1];tmpName(c,(function_tmpNameCreated(r,i){if(r)returnl(r);a.open(i,g,c.mode||w,(function_fileCreated(r,s){if(r)returnl(r);if(c.discardDescriptor){returna.close(s,(function_discardCallback(r){returnl(r,i,undefined,_prepareTmpFileRemoveCallback(i,-1,c,false))}))}else{constr=c.discardDescriptor||c.detachDescriptor;l(null,i,s,_prepareTmpFileRemoveCallback(i,r?-1:s,c,false))}}))}))}functionfileSync(r){consti=_parseArguments(r),s=i[0];constc=s.discardDescriptor||s.detachDescriptor;constl=tmpNameSync(s);vard=a.openSync(l,g,s.mode||w);if(s.discardDescriptor){a.closeSync(d);d=undefined}return{name:l,fd:d,removeCallback:_prepareTmpFileRemoveCallback(l,c?-1:d,s,true)}}functiondir(r,i){consts=_parseArguments(r,i),c=s[0],l=s[1];tmpName(c,(function_tmpNameCreated(r,i){if(r)returnl(r);a.mkdir(i,c.mode||C,(function_dirCreated(r){if(r)returnl(r);l(null,i,_prepareTmpDirRemoveCallback(i,c,false))}))}))}functiondirSync(r){consti=_parseArguments(r),s=i[0];constc=tmpNameSync(s);a.mkdirSync(c,s.mode||C);return{name:c,removeCallback:_prepareTmpDirRemoveCallback(c,s,true)}}function_removeFileAsync(r,i){const_handler=function(r){if(r&&!_isENOENT(r)){returni(r)}i()};if(0<=r[0])a.close(r[0],(function(){a.unlink(r[1],_handler)}));elsea.unlink(r[1],_handler)}function_removeFileSync(r){leti=null;try{if(0<=r[0])a.closeSync(r[0])}catch(r){if(!_isEBADF(r)&&!_isENOENT(r))throwr}finally{try{a.unlinkSync(r[1])}catch(r){if(!_isENOENT(r))i=r}}if(i!==null){throwi}}function_prepareTmpFileRemoveCallback(r,i,s,a){constc=_prepareRemoveCallback(_removeFileSync,[i,r],a);constl=_prepareRemoveCallback(_removeFileAsync,[i,r],a,c);if(!s.keep)x.unshift(c);returna?c:l}function_prepareTmpDirRemoveCallback(r,i,s){constc=i.unsafeCleanup?rimraf:a.rmdir.bind(a);constl=i.unsafeCleanup?FN_RIMRAF_SYNC:I;constd=_prepareRemoveCallback(l,r,s);constp=_prepareRemoveCallback(c,r,s,d);if(!i.keep)x.unshift(d);returns?d:p}function_prepareRemoveCallback(r,i,s,a){letc=false;returnfunction_cleanupCallback(l){if(!c){constd=a||_cleanupCallback;constp=x.indexOf(d);if(p>=0)x.splice(p,1);c=true;if(s||r===I||r===FN_RIMRAF_SYNC){returnr(i)}else{returnr(i,l||function(){})}}}}function_garbageCollector(){if(!B)return;while(x.length){try{x[0]()}catch(r){}}}function_randomChars(r){leti=[],s=null;try{s=d.randomBytes(r)}catch(i){s=d.pseudoRandomBytes(r)}for(vara=0;a<r;a++){i.push(u[s[a]%u.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]}consts={};for(constiofObject.getOwnPropertyNames(r)){s[i]=r[i]}return[s,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));consts=[r.prefix?r.prefix:"tmp","-",process.pid,"-",_randomChars(12),r.postfix?"-"+r.postfix:""].join("");returnl.join(i,r.dir,s)}function_assertAndSanitizeOptions(r){r.tmpdir=_getTmpDir(r);consti=r.tmpdir;if(!_isUndefined(r.name))_assertIsRelative(r.name,"name",i);if(!_isUndefined(r.dir))_assertIsRelative(r.dir,"dir",i);if(!_isUndefined(r.template)){_assertIsRelative(r.template,"template",i);if(!r.template.match(h))thrownewError(`Invalid template, found "${r.template}".`)}if(!_isUndefined(r.tries)&&isNaN(r.tries)||r.tries<0)thrownewError(`Invalid tries, found "${r.tries}".`);r.tries=_isUndefined(r.name)?r.tries||A:1;r.keep=!!r.keep;r.detachDescriptor=!!r.detachDescriptor;r.discardDescriptor=!!r.discardDescriptor;r.unsafeCleanup=!!r.unsafeCleanup;r.dir=_isUndefined(r.dir)?"":l.relative(i,_resolvePath(r.dir,i));r.template=_isUndefined(r.template)Line truncated
/*! formdata-polyfill. MIT License. Jimmy Wärting <https://jimmy.warting.se/opensource> */;constescape=r=>r.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22");constnormalizeLinefeeds=r=>r.replace(/\r?\n|\r/g,"\r\n");consta=[];constc=newUint8Array([13,10]);g=0;letl=false;for(const[i,d]ofr){if(typeofd==="string"){constr=D.encode(s+`; name="${escape(normalizeLinefeeds(i))}"`+`\r\n\r\n${normalizeLinefeeds(d)}\r\n`);a.push(r);g+=r.byteLength}else{constr=D.encode(`${s}; name="${escape(normalizeLinefeeds(i))}"`+(d.name?`; filename="${escape(d.name)}"`:"")+"\r\n"+`Content-Type: ${d.type||"application/octet-stream"}\r\n\r\n`);a.push(r,d,c);if(typeofd.size==="number"){g+=r.byteLength+d.size+c.byteLength}else{l=true}}}constd=D.encode(`--${i}--`);a.push(d);g+=d.byteLength;if(l){g=null}A=r;h=asyncfunction*(){for(constrofa){if(r.stream){yield*r.stream()}else{yieldr}}};y="multipart/form-data; boundary="+i}elseif(d(r)){A=r;g=r.size;if(r.type){y=r.type}}elseif(typeofr[Symbol.asyncIterator]==="function"){if(i){thrownewTypeError("keepalive")}if(c.isDisturbed(r)||r.locked){thrownewTypeError("Response body object should not be disturbed or locked")}a=rinstanceofO?r:l(r)}if(typeofA==="string"||c.isBuffer(A)){g=Buffer.byteLength(A)}if(h!=null){leti;a=newO({asyncstart(){i=h(r)[Symbol.asyncIterator]()},asyncpull(r){const{value:s,done:c}=awaiti.next();if(c){queueMicrotask((()=>{r.close()}))}else{if(!B(a)){r.enqueue(newUint8Array(s))}}returnr.desiredSize>0},asynccancel(r){awaiti.return()},type:undefined})}constb={stream:a,source:A,length:g};return[b,y]}functionsafelyExtractBody(r,i=false){if(!O){O=s(35356).ReadableStream}if(rinstanceofO){I(!c.isDisturbed(r),"The body has already been consumed.");I(!r.locked,"The stream is locked.")}returnextractBody(r,i)}functioncloneBody(r){const[i,s]=r.stream.tee();consta=C(s,{transfer:[s]});const[,c]=a.tee();r.stream=i;return{stream:c,length:r.length,source:r.source}}asyncfunction*consumeBody(r){if(r){if(R(r)){yieldr}else{consti=r.stream;if(c.isDisturbed(i)){thrownewTypeError("The body has already been consumed.")}if(i.locked){thrownewTypeError("The stream is locked.")}i[x]=true;yield*i}}}functionthrowIfAborted(r){if(r.aborted){thrownewv("The operation was aborted.","AbortError")}}functionbodyMixinMethods(r){consti={blob(){returnspecConsumeBody(this,(r=>{leti=bodyMimeType(this);if(i==="failure"){i=""}elseif(i){i=P(i)}returnneww([r],{type:i})}),r)},arrayBuffer(){returnspecConsumeBody(this,(r=>newUint8Array(r).buffer),r)},text(){returnspecConsumeBody(this,utf8DecodeBytes,r)},json(){returnspecConsumeBody(this,parseJSONFromBytes,r)},asyncformData(){b.brandCheck(this,r);throwIfAborted(this[y]);consti=this.headers.get("Content-Type");if(/multipart\/form-data/.test(i)){constr={};for(const[i,s]ofthis.headers)r[i.toLowerCase()]=s;consti=newg;lets;try{s=newa({headers:r,preservePath:true})}catch(r){thrownewv(`${r}`,"AbortError")}s.on("field",((r,s)=>{i.append(r,s)}));s.on("file",((r,s,a,c,l)=>{constd=[];if(c==="base64"||c.toLowerCase()==="base64"){letc="";s.on("data",(r=>{c+=r.toString().replace(/[\r\n]/gm,"");consti=c.length-c.length%4;d.push(Buffer.from(c.slice(0,i),"base64"));c=c.slice(i)}));s.on("end",(()=>{d.push(Buffer.from(c,"base64"));i.append(r,newk(d,a,{type:l}))}))}else{s.on("data",(r=>{d.push(r)}));s.on("end",(()=>{i.append(r,newk(d,a,{type:l}))}))}}));constc=newPromise(((r,i)=>{s.on("finish",r);s.on("error",(r=>i(newTypeError(r))))}));if(this.body!==null)forawait(constrofconsumeBody(this[y].body))s.write(r);s.end();awaitc;returni}elseif(/application\/x-www-form-urlencoded/.test(i)){letr;try{leti="";consts=newTextDecoder("utf-8",{ignoreBOM:true});forawait(constrofconsumeBody(this[y].body)){if(!R(r)){thrownewTypeError("Expected Uint8Array chunk")}i+=s.decode(r,{stream:true})}i+=s.decode();r=newURLSearchParams(i)}catch(r){throwObject.assign(newTypeError,{cause:r})}consti=newg;for(const[s,a]ofr){i.append(s,a)}returni}else{awaitPromise.resolve();throwIfAborted(this[y]);throwb.errors.exception({header:`${r.name}.formData`,message:"Could not parse content as FormData."})}}};returni}functionmixinBody(r){Object.assign(r.prototype,bodyMixinMethods(r))}asyncfunctionspecConsumeBody(r,i,s){b.brandCheck(r,s);throwIfAborted(r[y]);if(bodyUnusable(r[y].body)){thrownewTypeError("Body is unusable")}consta=h();consterrorSteps=r=>a.reject(r);constsuccessSteps=r=>{try{a.resolve(i(r))}catch(r){errorSteps(r)}};if(r[y].body==null){successSteps(newUint8Array);returna.promise}awaitA(r[y].body,successSteps,errorSteps);returna.promise}functionbodyUnusable(r){returnr!=null&&(r.stream.locked||c.isDisturbed(r.stream))}functionutf8DecodeBytes(r){if(r.length===0){return""}if(r[0]===239&&r[1]===187&&r[2]===191){r=r.subarray(3)}consti=Q.decode(r);returni}functionparseJSONFromBytes(r){returnJSON.parse(utf8DecodeBytes(r))}functionbodyMimeType(r){const{headersList:i}=r[y];consts=i.get("contentLine truncated
/*! ws. MIT License. Einar Otto Stangvik <einaros@gmail.com> */l[c-4]=this.maskKey[0];l[c-3]=this.maskKey[1];l[c-2]=this.maskKey[2];l[c-1]=this.maskKey[3];l[1]=s;if(s===126){l.writeUInt16BE(i,2)}elseif(s===127){l[2]=l[3]=0;l.writeUIntBE(i,4,6)}l[1]|=128;for(letr=0;r<i;r++){l[c+r]=this.frameData[r]^this.maskKey[r%4]}returnl}}r.exports={WebsocketFrameSend:WebsocketFrameSend}},11688:(r,i,s)=>{"use strict";const{Writable:a}=s(12781);constc=s(67643);const{parserStates:l,opcodes:d,states:p,emptyBuffer:u}=s(19188);const{kReadyState:h,kSentClose:A,kResponse:g,kReceivedClose:y}=s(37578);const{isValidStatusCode:b,failWebsocketConnection:v,websocketMessageReceived:C}=s(25515);const{WebsocketFrameSend:w}=s(25444);constS={};S.ping=c.channel("undici:websocket:ping");S.pong=c.channel("undici:websocket:pong");classByteParserextendsa{#a=[];#o=0;#c=l.INFO;#l={};#d=[];constructor(r){super();this.ws=r}_write(r,i,s){this.#a.push(r);this.#o+=r.length;this.run(s)}run(r){while(true){if(this.#c===l.INFO){if(this.#o<2){returnr()}consti=this.consume(2);this.#l.fin=(i[0]&128)!==0;this.#l.opcode=i[0]&15;this.#l.originalOpcode??=this.#l.opcode;this.#l.fragmented=!this.#l.fin&&this.#l.opcode!==d.CONTINUATION;if(this.#l.fragmented&&this.#l.opcode!==d.BINARY&&this.#l.opcode!==d.TEXT){v(this.ws,"Invalid frame type was fragmented.");return}consts=i[1]&127;if(s<=125){this.#l.payloadLength=s;this.#c=l.READ_DATA}elseif(s===126){this.#c=l.PAYLOADLENGTH_16}elseif(s===127){this.#c=l.PAYLOADLENGTH_64}if(this.#l.fragmented&&s>125){v(this.ws,"Fragmented frame exceeded 125 bytes.");return}elseif((this.#l.opcode===d.PING||this.#l.opcode===d.PONG||this.#l.opcode===d.CLOSE)&&s>125){v(this.ws,"Payload length for control frame exceeded 125 bytes.");return}elseif(this.#l.opcode===d.CLOSE){if(s===1){v(this.ws,"Received close frame with a 1-byte body.");return}constr=this.consume(s);this.#l.closeInfo=this.parseCloseBody(false,r);if(!this.ws[A]){constr=Buffer.allocUnsafe(2);r.writeUInt16BE(this.#l.closeInfo.code,0);consti=neww(r);this.ws[g].socket.write(i.createFrame(d.CLOSE),(r=>{if(!r){this.ws[A]=true}}))}this.ws[h]=p.CLOSING;this.ws[y]=true;this.end();return}elseif(this.#l.opcode===d.PING){consti=this.consume(s);if(!this.ws[y]){constr=neww(i);this.ws[g].socket.write(r.createFrame(d.PONG));if(S.ping.hasSubscribers){S.ping.publish({payload:i})}}this.#c=l.INFO;if(this.#o>0){continue}else{r();return}}elseif(this.#l.opcode===d.PONG){consti=this.consume(s);if(S.pong.hasSubscribers){S.pong.publish({payload:i})}if(this.#o>0){continue}else{r();return}}}elseif(this.#c===l.PAYLOADLENGTH_16){if(this.#o<2){returnr()}consti=this.consume(2);this.#l.payloadLength=i.readUInt16BE(0);this.#c=l.READ_DATA}elseif(this.#c===l.PAYLOADLENGTH_64){if(this.#o<8){returnr()}consti=this.consume(8);consts=i.readUInt32BE(0);if(s>2**31-1){v(this.ws,"Received payload length > 2^31 bytes.");return}consta=i.readUInt32BE(4);this.#l.payloadLength=(s<<8)+a;this.#c=l.READ_DATA}elseif(this.#c===l.READ_DATA){if(this.#o<this.#l.payloadLength){returnr()}elseif(this.#o>=this.#l.payloadLength){constr=this.consume(this.#l.payloadLength);this.#d.push(r);if(!this.#l.fragmented||this.#l.fin&&this.#l.opcode===d.CONTINUATION){constr=Buffer.concat(this.#d);C(this.ws,this.#l.originalOpcode,r);this.#l={};this.#d.length=0}this.#c=l.INFO}}if(this.#o>0){continue}else{r();break}}}consume(r){if(r>this.#o){returnnull}elseif(r===0){returnu}if(this.#a[0].length===r){this.#o-=this.#a[0].length;returnthis.#a.shift()}consti=Buffer.allocUnsafe(r);lets=0;while(s!==r){consta=this.#a[0];const{length:c}=a;if(c+s===r){i.set(this.#a.shift(),s);break}elseif(c+s>r){i.set(a.subarray(0,r-s),s);this.#a[0]=a.subarray(r-s);break}else{i.set(this.#a.shift(),s);s+=a.length}}this.#o-=r;returni}parseCloseBody(r,i){lets;if(i.length>=2){s=i.readUInt16BE(0)}if(r){if(!b(s)){returnnull}return{code:s}}leta=i.subarray(2);if(a[0]===239&&a[1]===187&&a[2]===191){a=a.subarray(3)}if(s!==undefined&&!b(s)){returnnull}try{a=newTextDecoder("utf-8",{fatal:true}).decode(a)}catch{returnnull}return{code:s,reason:a}}getclosingInfo(){returnthis.#l.closeInfo}}r.exports={ByteParser:ByteParser}},37578:r=>{"use strict";r.exports={kWebSocketURL:Symbol("url"),kReadyState:Symbol("ready state"),kController:Symbol("controller"),kResponse:Symbol("response"),kBinaryType:Symbol("binary type"),kSentClose:Symbol("sent close"),kReceivedClose:Symbol("received close"),kByteParser:Symbol("byte parser")}},25515:(r,i,s)=>{"use strict";const{kReadyState:a,kController:c,kResponse:l,kBinaryType:d,kWebSocketURL:p}=s(37578);const{states:u,opcodes:h}=s(19188);const{MessageEvent:A,ErrorEvent:g}=s(52611);functionisEstablished(r){returnr[a]===u.OPEN}functionisClosing(r){returnr[a]===u.CLOSING}functionisClosed(r){returnr[a]===u.CLOSED}functionfireEvent(r,i,s=Event,a){constc=news(r,a);i.dispatchEvent(c)}functionwebsocketMessageReceived(r,i,s){if(r[a]!==u.OPEN){return}letc;if(i===h.TEXT){try{c=newTextDecoder("utf-8",{fatal:trueLine truncated
vara=s(73837).inherits;varc=s(25445).ZipArchiveOutputStream;varl=s(25445).ZipArchiveEntry;vard=s(82072);varp=r.exports=function(r){if(!(thisinstanceofp)){returnnewp(r)}r=this.options=r||{};r.zlib=r.zlib||{};c.call(this,r);if(typeofr.level==="number"&&r.level>=0){r.zlib.level=r.level;deleter.level}if(!r.forceZip64&&typeofr.zlib.level==="number"&&r.zlib.level===0){r.store=true}r.namePrependSlash=r.namePrependSlash||false;if(r.comment&&r.comment.length>0){this.setComment(r.comment)}};a(p,c);p.prototype._normalizeFileData=function(r){r=d.defaults(r,{type:"file",name:null,namePrependSlash:this.options.namePrependSlash,linkname:null,date:null,mode:null,store:this.options.store,comment:""});vari=r.type==="directory";vars=r.type==="symlink";if(r.name){r.name=d.sanitizePath(r.name);if(!s&&r.name.slice(-1)==="/"){i=true;r.type="directory"}elseif(i){r.name+="/"}}if(i||s){r.store=true}r.date=d.dateify(r.date);returnr};p.prototype.entry=function(r,i,s){if(typeofs!=="function"){s=this._emitErrorCallback.bind(this)}i=this._normalizeFileData(i);if(i.type!=="file"&&i.type!=="directory"&&i.type!=="symlink"){s(newError(i.type+" entries not currently supported"));return}if(typeofi.name!=="string"||i.name.length===0){s(newError("entry name must be a non-empty string value"));return}if(i.type==="symlink"&&typeofi.linkname!=="string"){s(newError("entry linkname must be a non-empty string value when type equals symlink"));return}vara=newl(i.name);a.setTime(i.date,this.options.forceLocalTime);if(i.namePrependSlash){a.setName(i.name,true)}if(i.store){a.setMethod(0)}if(i.comment.length>0){a.setComment(i.comment)}if(i.type==="symlink"&&typeofi.mode!=="number"){i.mode=40960}if(typeofi.mode==="number"){if(i.type==="symlink"){i.mode|=40960}a.setUnixMode(i.mode)}if(i.type==="symlink"&&typeofi.linkname==="string"){r=Buffer.from(i.linkname)}returnc.prototype.entry.call(this,a,r,s)};p.prototype.finalize=function(){this.finish()}},36949:function(r,i,s){"use strict";vara=this&&this.__createBinding||(Object.create?function(r,i,s,a){if(a===undefined)a=s;varc=Object.getOwnPropertyDescriptor(i,s);if(!c||("get"inc?!i.__esModule:c.writable||c.configurable)){c={enumerable:true,get:function(){returni[s]}}}Object.defineProperty(r,a,c)}:function(r,i,s,a){if(a===undefined)a=s;r[a]=i[s]});varc=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(varsinr)if(s!=="default"&&Object.prototype.hasOwnProperty.call(r,s))a(i,r,s);c(i,r);returni};vard=this&&this.__awaiter||function(r,i,s,a){functionadopt(r){returnrinstanceofs?r:news((function(i){i(r)}))}returnnew(s||(s=Promise))((function(s,c){functionfulfilled(r){try{step(a.next(r))}catch(r){c(r)}}functionrejected(r){try{step(a["throw"](r))}catch(r){c(r)}}functionstep(r){r.done?s(r.value):adopt(r.value).then(fulfilled,rejected)}step((a=a.apply(r,i||[])).next())}))};Object.defineProperty(i,"__esModule",{value:true});i.getRegistriesData=i.getAccountIDs=i.getRegion=i.isPubECR=i.isECR=void0;constp=l(s(42186));constu=s(8923);consth=s(42308);constA=s(20258);constg=s(23764);consty=s(77219);constb=/^(([0-9]{12})\.dkr\.ecr\.(.+)\.amazonaws\.com(.cn)?)(\/([^:]+)(:.+)?)?$/;constisECR=r=>b.test(r)||(0,i.isPubECR)(r);i.isECR=isECR;constisPubECR=r=>r==="public.ecr.aws";i.isPubECR=isPubECR;constgetRegion=r=>{if((0,i.isPubECR)(r)){returnprocess.env.AWS_REGION||process.env.AWS_DEFAULT_REGION||"us-east-1"}consts=r.match(b);if(!s){return""}returns[3]};i.getRegion=getRegion;constgetAccountIDs=r=>{if((0,i.isPubECR)(r)){return[]}consts=r.match(b);if(!s){return[]}consta=[s[2]];if(process.env.AWS_ACCOUNT_IDS){a.push(...process.env.AWS_ACCOUNT_IDS.split(","))}returna.filter(((r,i)=>a.indexOf(r)===i))};i.getAccountIDs=getAccountIDs;constgetRegistriesData=(r,s,a)=>d(void0,void0,void0,(function*(){constc=(0,i.getRegion)(r);constl=(0,i.getAccountIDs)(r);constd={};if(l.length>0){p.debug(`Requesting AWS ECR auth token for ${l.join(", ")}`);d["registryIds"]=l}letb;constv=process.env.http_proxy||process.env.HTTP_PROXY||"";if(v){p.debug(`Using http proxy ${v}`);b=newg.HttpProxyAgent(v)}letC;constw=process.env.https_proxy||process.env.HTTPS_PROXY||"";if(w){p.debug(`Using https proxy ${w}`);C=newy.HttpsProxyAgent(w)}constS=s&&a?{accessKeyId:s,secretAccessKey:a}:undefined;if((0,i.isPubECR)(r)){p.info(`AWS Public ECR detected with ${c} region`);constr=newh.ECRPUBLIC({customUserAgent:"docker-login-action",credentials:S,region:c,requestHandler:newA.NodeHttpHandler({httpAgent:b,httpsAgent:C})});consti=yieldr.getAuthorizationToken(d);if(!i.authorizationData||!i.authorizationData.authorizationToken){thrownewError("Could not retrieve an authorization token from AWS Public ECR")}consts=Buffer.from(i.authorizationData.authorizationToken,"base64").toString("utf-8");consta=s.split("Line truncated
File diff suppressed because it is too large.
Load diff
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.