"use strict";vare8=Object.create;varnm=Object.defineProperty;vart8=Object.getOwnPropertyDescriptor;varr8=Object.getOwnPropertyNames;varn8=Object.getPrototypeOf,i8=Object.prototype.hasOwnProperty;vars8=(t,e)=>()=>(t&&(e=t(t=0)),e);varh=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),o8=(t,e)=>{for(varrine)nm(t,r,{get:e[r],enumerable:!0})},kP=(t,e,r,n)=>{if(e&&typeofe=="object"||typeofe=="function")for(letiofr8(e))!i8.call(t,i)&&i!==r&&nm(t,i,{get:()=>e[i],enumerable:!(n=t8(e,i))||n.enumerable});returnt};varwt=(t,e,r)=>(r=t!=null?e8(n8(t)):{},kP(e||!t||!t.__esModule?nm(r,"default",{value:t,enumerable:!0}):r,t)),Li=t=>kP(nm({},"__esModule",{value:!0}),t);varim=h(nc=>{"use strict";Object.defineProperty(nc,"__esModule",{value:!0});nc.toCommandProperties=nc.toCommandValue=void0;functiona8(t){returnt==null?"":typeoft=="string"||tinstanceofString?t:JSON.stringify(t)}nc.toCommandValue=a8;functionA8(t){returnObject.keys(t).length?{title:t.title,file:t.file,line:t.startLine,endLine:t.endLine,col:t.startColumn,endColumn:t.endColumn}:{}}nc.toCommandProperties=A8});varMP=h(Xn=>{"use strict";varc8=Xn&&Xn.__createBinding||(Object.create?(function(t,e,r,n){n===void0&&(n=r);vari=Object.getOwnPropertyDescriptor(e,r);(!i||("get"ini?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){returne[r]}}),Object.defineProperty(t,n,i)}):(function(t,e,r,n){n===void0&&(n=r),t[n]=e[r]})),l8=Xn&&Xn.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),u8=Xn&&Xn.__importStar||function(t){if(t&&t.__esModule)returnt;vare={};if(t!=null)for(varrint)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&c8(e,t,r);returnl8(e,t),e};Object.defineProperty(Xn,"__esModule",{value:!0});Xn.issue=Xn.issueCommand=void0;vard8=u8(require("os")),OP=im();functionLP(t,e,r){letn=newGB(t,e,r);process.stdout.write(n.toString()+d8.EOL)}Xn.issueCommand=LP;functionf8(t,e=""){LP(t,{},e)}Xn.issue=f8;varTP="::",GB=class{constructor(e,r,n){e||(e="missing.command"),this.command=e,this.properties=r,this.message=n}toString(){lete=TP+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";letr=!0;for(letninthis.properties)if(this.properties.hasOwnProperty(n)){leti=this.properties[n];i&&(r?r=!1:e+=",",e+=`${n}=${g8(i)}`)}}returne+=`${TP}${h8(this.message)}`,e}};functionh8(t){return(0,OP.toCommandValue)(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}functiong8(t){return(0,OP.toCommandValue)(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}});varqP=h(Zn=>{"use strict";varm8=Zn&&Zn.__createBinding||(Object.create?(function(t,e,r,n){n===void0&&(n=r);vari=Object.getOwnPropertyDescriptor(e,r);(!i||("get"ini?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){returne[r]}}),Object.defineProperty(t,n,i)}):(function(t,e,r,n){n===void0&&(n=r),t[n]=e[r]})),p8=Zn&&Zn.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),JB=Zn&&Zn.__importStar||function(t){if(t&&t.__esModule)returnt;vare={};if(t!=null)for(varrint)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&m8(e,t,r);returnp8(e,t),e};Object.defineProperty(Zn,"__esModule",{value:!0});Zn.prepareKeyValueMessage=Zn.issueFileCommand=void0;vary8=JB(require("crypto")),FP=JB(require("fs")),YB=JB(require("os")),UP=im();functionE8(t,e){letr=process.env[`GITHUB_${t}`];if(!r)thrownewError(`Unable to find environment variable for file command ${t}`);if(!FP.existsSync(r))thrownewError(`Missing file at path: ${r}`);FP.appendFileSync(r,`${(0,UP.toCommandValue)(e)}${YB.EOL}`,{encoding:"utf8"})}Zn.issueFileCommand=E8;functionC8(t,e){letr=`ghadelimiter_${y8.randomUUID()}`,n=(0,UP.toCommandValue)(e);if(t.includes(r))thrownewError(`Unexpected input: name should not contain the delimiter "${r}"`);if(n.includes(r))thrownewError(`Unexpected input: value should
`),Q6=function(){};function Mi(t){if(!(this instanceof Mi))return new Mi(t);if(IQ.call(this,t),!t||!t.headerFirst&&typeof t.boundary!="string")throw new TypeError("Boundary required");typeof t.boundary=="string"?this.setBoundary(t.boundary):this._bparser=void 0,this._headerFirst=t.headerFirst,this._dashes=0,this._parts=0,this._finished=!1,this._realFinish=!1,this._isPreamble=!0,this._justMatched=!1,this._firstWrite=!0,this._inHeader=!0,this._part=void 0,this._cb=void 0,this._ignoreData=!1,this._partOpts={highWaterMark:t.partHwm},this._pause=!1;let e=this;this._hparser=new E6(t),this._hparser.on("header",function(r){e._inHeader=!1,e._part.emit("header",r)})}p6(Mi,IQ);Mi.prototype.emit=function(t){if(t==="finish"&&!this._realFinish){if(!this._finished){let e=this;process.nextTick(function(){if(e.emit("error",new Error("Unexpected end of multipart data")),e._part&&!e._ignoreData){let r=e._isPreamble?"Preamble":"Part";e._part.emit("error",new Error(r+" terminated early due to unexpected end of multipart data")),e._part.push(null),process.nextTick(function(){e._realFinish=!0,e.emit("finish"),e._realFinish=!1});return}e._realFinish=!0,e.emit("finish"),e._realFinish=!1})}}else IQ.prototype.emit.apply(this,arguments)};Mi.prototype._write=function(t,e,r){if(!this._hparser&&!this._bparser)return r();if(this._headerFirst&&this._isPreamble){this._part||(this._part=new Qk(this._partOpts),this.listenerCount("preamble")!==0?this.emit("preamble",this._part):this._ignore());let n=this._hparser.push(t);if(!this._inHeader&&n!==void 0&&n<t.length)t=t.slice(n);else return r()}this._firstWrite&&(this._bparser.push(B6),this._firstWrite=!1),this._bparser.push(t),this._pause?this._cb=r:r()};Mi.prototype.reset=function(){this._part=void 0,this._bparser=void 0,this._hparser=void 0};Mi.prototype.setBoundary=function(t){let e=this;this._bparser=new y6(`\r
`),t.replace(/\r?\n/g,e)}functionC7(t){returnyT&&tinstanceofyT||tinstanceofkd||t&&(typeoft.stream=="function"||typeoft.arrayBuffer=="function")&&t[Symbol.toStringTag]==="File"}BT.exports={File:kd,FileLike:MQ,isFileLike:C7}});varQm=h((kMe,xT)=>{"use strict";var{isBlobLike:Bm,toUSVString:I7,makeIterator:FQ}=ei(),{kState:Mr}=Ls(),{File:wT,FileLike:QT,isFileLike:B7}=Im(),{webidl:ot}=Vr(),{Blob:Q7,File:UQ}=require("buffer"),bT=UQ??wT,hc=classt{constructor(e){if(e!==void0)throwot.errors.conversionFailed({prefix:"FormData constructor",argument:"Argument 1",types:["undefined"]});this[Mr]=[]}append(e,r,n=void0){if(ot.brandCheck(this,t),ot.argumentLengthCheck(arguments,2,{header:"FormData.append"}),arguments.length===3&&!Bm(r))thrownewTypeError("Failed to execute 'append' on 'FormData': parameter 2 is not of type 'Blob'");e=ot.converters.USVString(e),r=Bm(r)?ot.converters.Blob(r,{strict:!1}):ot.converters.USVString(r),n=arguments.length===3?ot.converters.USVString(n):void0;leti=NT(e,r,n);this[Mr].push(i)}delete(e){ot.brandCheck(this,t),ot.argumentLengthCheck(arguments,1,{header:"FormData.delete"}),e=ot.converters.USVString(e),this[Mr]=this[Mr].filter(r=>r.name!==e)}get(e){ot.brandCheck(this,t),ot.argumentLengthCheck(arguments,1,{header:"FormData.get"}),e=ot.converters.USVString(e);letr=this[Mr].findIndex(n=>n.name===e);returnr===-1?null:this[Mr][r].value}getAll(e){returnot.brandCheck(this,t),ot.argumentLengthCheck(arguments,1,{header:"FormData.getAll"}),e=ot.converters.USVString(e),this[Mr].filter(r=>r.name===e).map(r=>r.value)}has(e){returnot.brandCheck(this,t),ot.argumentLengthCheck(arguments,1,{header:"FormData.has"}),e=ot.converters.USVString(e),this[Mr].findIndex(r=>r.name===e)!==-1}set(e,r,n=void0){if(ot.brandCheck(this,t),ot.argumentLengthCheck(arguments,2,{header:"FormData.set"}),arguments.length===3&&!Bm(r))thrownewTypeError("Failed to execute 'set' on 'FormData': parameter 2 is not of type 'Blob'");e=ot.converters.USVString(e),r=Bm(r)?ot.converters.Blob(r,{strict:!1}):ot.converters.USVString(r),n=arguments.length===3?I7(n):void0;leti=NT(e,r,n),s=this[Mr].findIndex(o=>o.name===e);s!==-1?this[Mr]=[...this[Mr].slice(0,s),i,...this[Mr].slice(s+1).filter(o=>o.name!==e)]:this[Mr].push(i)}entries(){returnot.brandCheck(this,t),FQ(()=>this[Mr].map(e=>[e.name,e.value]),"FormData","key+value")}keys(){returnot.brandCheck(this,t),FQ(()=>this[Mr].map(e=>[e.name,e.value]),"FormData","key")}values(){returnot.brandCheck(this,t),FQ(()=>this[Mr].map(e=>[e.name,e.value]),"FormData","value")}forEach(e,r=globalThis){if(ot.brandCheck(this,t),ot.argumentLengthCheck(arguments,1,{header:"FormData.forEach"}),typeofe!="function")thrownewTypeError("Failed to execute 'forEach' on 'FormData': parameter 1 is not of type 'Function'.");for(let[n,i]ofthis)e.apply(r,[i,n,this])}};hc.prototype[Symbol.iterator]=hc.prototype.entries;Object.defineProperties(hc.prototype,{[Symbol.toStringTag]:{value:"FormData",configurable:!0}});functionNT(t,e,r){if(t=Buffer.from(t).toString("utf8"),typeofe=="string")e=Buffer.from(e).toString("utf8");elseif(B7(e)||(e=einstanceofQ7?newbT([e],"blob",{type:e.type}):newQT(e,"blob",{type:e.type})),r!==void0){letn={type:e.type,lastModified:e.lastModified};e=UQ&&einstanceofUQ||einstanceofwT?newbT([e],r,n):newQT(e,r,n)}return{name:t,value:e}}xT.exports={FormData:hc}});varTd=h((TMe,OT)=>{"use strict";varb7=Gk(),gc=He(),{ReadableStreamFrom:N7,isBlobLike:ST,isReadableStreamLike:w7,readableStreamClose:x7,createDeferredPromise:S7,fullyReadBody:R7}=ei(),{FormData:RT}=Qm(),{kState:Fs}=Ls(),{webidl:qQ}=Vr(),{DOMException:_T,structuredClone:v7}=So(),{Blob:D7,File:_7}=require("buffer"),{kBodyUsed:P7}=Ct(),HQ=require("assert"),{isErrored:k7}=He(),{isUint8Array:PT,isArrayBuffer:T7}=require("util/types"),{File:O7}=Im(),{parseMIMEType:L7,serializeAMimeType:M7}=Fi(),jQ;try{lett=require("node:crypto");jQ=e=>t.randomInt(0,e)}catch{jQ=t=>Math.floor(Math.random(t))}varMs=globalThis.ReadableStream,vT=_7??O7,bm=newTextEncoder,F7=newTextDecoder;functionkT(t,e=!1){Ms||(Ms=require("stream/web").ReadableS
`);d.push(I,C,f),typeof C.size=="number"?s+=I.byteLength+C.size+f.byteLength:g=!0}let m=bm.encode(`--${A}--`);d.push(m),s+=m.byteLength,g&&(s=null),i=t,n=async function*(){for(let E of d)E.stream?yield*E.stream():yield E},o="multipart/form-data; boundary="+A}else if(ST(t))i=t,s=t.size,t.type&&(o=t.type);else if(typeof t[Symbol.asyncIterator]=="function"){if(e)throw new TypeError("keepalive");if(gc.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=t instanceof Ms?t:N7(t)}if((typeof i=="string"||gc.isBuffer(i))&&(s=Buffer.byteLength(i)),n!=null){let A;r=new Ms({async start(){A=n(t)[Symbol.asyncIterator]()},async pull(c){let{value:l,done:u}=await A.next();return u?queueMicrotask(()=>{c.close()}):k7(r)||c.enqueue(new Uint8Array(l)),c.desiredSize>0},async cancel(c){await A.return()},type:void 0})}return[{stream:r,source:i,length:s},o]}function U7(t,e=!1){return Ms||(Ms=require("stream/web").ReadableStream),t instanceof Ms&&(HQ(!gc.isDisturbed(t),"The body has already been consumed."),HQ(!t.locked,"The stream is locked.")),kT(t,e)}function q7(t){let[e,r]=t.stream.tee(),n=v7(r,{transfer:[r]}),[,i]=n.tee();return t.stream=e,{stream:i,length:t.length,source:t.source}}async function*DT(t){if(t)if(PT(t))yield t;else{let e=t.stream;if(gc.isDisturbed(e))throw new TypeError("The body has already been consumed.");if(e.locked)throw new TypeError("The stream is locked.");e[P7]=!0,yield*e}}function zQ(t){if(t.aborted)throw new _T("The operation was aborted.","AbortError")}function H7(t){return{blob(){return Nm(this,r=>{let n=Y7(this);return n==="failure"?n="":n&&(n=M7(n)),new D7([r],{type:n})},t)},arrayBuffer(){return Nm(this,r=>new Uint8Array(r).buffer,t)},text(){return Nm(this,TT,t)},json(){return Nm(this,G7,t)},async formData(){qQ.brandCheck(this,t),zQ(this[Fs]);let r=this.headers.get("Content-Type");if(/multipart\/form-data/.test(r)){let n={};for(let[a,A]of this.headers)n[a.toLowerCase()]=A;let i=new RT,s;try{s=new b7({headers:n,preservePath:!0})}catch(a){throw new _T(`${a}`,"AbortError")}s.on("field",(a,A)=>{i.append(a,A)}),s.on("file",(a,A,c,l,u)=>{let d=[];if(l==="base64"||l.toLowerCase()==="base64"){let f="";A.on("data",g=>{f+=g.toString().replace(/[\r\n]/gm,"");let m=f.length-f.length%4;d.push(Buffer.from(f.slice(0,m),"base64")),f=f.slice(m)}),A.on("end",()=>{d.push(Buffer.from(f,"base64")),i.append(a,new vT(d,c,{type:u}))})}else A.on("data",f=>{d.push(f)}),A.on("end",()=>{i.append(a,new vT(d,c,{type:u}))})});let o=new Promise((a,A)=>{s.on("finish",a),s.on("error",c=>A(new TypeError(c)))});if(this.body!==null)for await(let a of DT(this[Fs].body))s.write(a);return s.end(),await o,i}else if(/application\/x-www-form-urlencoded/.test(r)){let n;try{let s="",o=new TextDecoder("utf-8",{ignoreBOM:!0});for await(let a of DT(this[Fs].body)){if(!PT(a))throw new TypeError("Expected Uint8Array chunk");s+=o.decode(a,{stream:!0})}s+=o.decode(),n=new URLSearchParams(s)}catch(s){throw Object.assign(new TypeError,{cause:s})}let i=new RT;for(let[s,o]of n)i.append(s,o);return i}else throw await Promise.resolve(),zQ(this[Fs]),qQ.errors.exception({header:`${t.name}.formData`,message:"Could not parse content as FormData."})}}}function j7(t){Object.assign(t.prototype,H7(t))}async function Nm(t,e,r){if(qQ.brandCheck(t,r),zQ(t[Fs]),z7(t[Fs].body))throw new TypeError("Body is unusable");let n=S7(),i=o=>n.reject(o),s=o=>{try{n.resolve(e(o))}catch(a){i(a)}};return t[Fs].body==null?(s(new Uint8Array),n.promise):(await R7(t[Fs].body,s,i),n.promise)}function z7(t){return t!=null&&(t.stream.locked||gc.isDisturbed(t.stream))}function TT(t){return t.length===0?"":(t[0]===239&&t[1]===187&&t[2]===191&&(t=t.subarray(3)),F7.decode(t))}function G7(t){return JSON.parse(TT(t))}function Y7(t){let{headersList:e}=t[Fs],r=e.get("content-type");return r===null?"failure":L7(r)}OT.exports={extractBody:kT,safelyExtractBody:U7,cloneBody:q7,mixinBody:j7}});var UT=h((OMe,FT)=>{"use strict";var{InvalidArgumentError:mt,NotSupportedError:J7}=lt(),Us=require("assert"),{kHTTP2BuildRequest:V7,kHTTP2CopyHeaders:W7,kHTTP1BuildRequest:
`);an.validateHandler(m,n,c),this.servername=an.getServerName(this.host),this[Ui]=m,er.create.hasSubscribers&&er.create.publish({request:this})}onBodySent(e){if(this[Ui].onBodySent)try{returnthis[Ui].onBodySent(e)}catch(r){this.abort(r)}}onRequestSent(){if(er.bodySent.hasSubscribers&&er.bodySent.publish({request:this}),this[Ui].onRequestSent)try{returnthis[Ui].onRequestSent()}catch(e){this.abort(e)}}onConnect(e){if(Us(!this.aborted),Us(!this.completed),this.error)e(this.error);elsereturnthis.abort=e,this[Ui].onConnect(e)}onHeaders(e,r,n,i){Us(!this.aborted),Us(!this.completed),er.headers.hasSubscribers&&er.headers.publish({request:this,response:{statusCode:e,headers:r,statusText:i}});try{returnthis[Ui].onHeaders(e,r,n,i)}catch(s){this.abort(s)}}onData(e){Us(!this.aborted),Us(!this.completed);try{returnthis[Ui].onData(e)}catch(r){returnthis.abort(r),!1}}onUpgrade(e,r,n){returnUs(!this.aborted),Us(!this.completed),this[Ui].onUpgrade(e,r,n)}onComplete(e){this.onFinally(),Us(!this.aborted),this.completed=!0,er.trailers.hasSubscribers&&er.trailers.publish({request:this,trailers:e});try{returnthis[Ui].onComplete(e)}catch(r){this.onError(r)}}onError(e){if(this.onFinally(),er.error.hasSubscribers&&er.error.publish({request:this,error:e}),!this.aborted)returnthis.aborted=!0,this[Ui].onError(e)}onFinally(){this.errorHandler&&(this.body.off("error",this.errorHandler),this.errorHandler=null),this.endHandler&&(this.body.off("end",this.endHandler),this.endHandler=null)}addHeader(e,r){returnOd(this,e,r),this}static[$7](e,r,n){returnnewt(e,r,n)}static[V7](e,r,n){leti=r.headers;r={...r,headers:null};lets=newt(e,r,n);if(s.headers={},Array.isArray(i)){if(i.length%2!==0)thrownewmt("headers array must be even");for(leto=0;o<i.length;o+=2)Od(s,i[o],i[o+1],!0)}elseif(i&&typeofi=="object"){leto=Object.keys(i);for(leta=0;a<o.length;a++){letA=o[a];Od(s,A,i[A],!0)}}elseif(i!=null)thrownewmt("headers must be an object or an array");returns}static[W7](e){letr=e.split(`\r
`}functionOd(t,e,r,n=!1){if(r&&typeofr=="object"&&!Array.isArray(r))thrownewmt(`invalid ${e} header`);if(r===void0)return;if(t.host===null&&e.length===4&&e.toLowerCase()==="host"){if(MT.exec(r)!==null)thrownewmt(`invalid ${e} header`);t.host=r}elseif(t.contentLength===null&&e.length===14&&e.toLowerCase()==="content-length"){if(t.contentLength=parseInt(r,10),!Number.isFinite(t.contentLength))thrownewmt("invalid content-length header")}elseif(t.contentType===null&&e.length===12&&e.toLowerCase()==="content-type")t.contentType=r,n?t.headers[e]=ka(e,r,n):t.headers+=ka(e,r);else{if(e.length===17&&e.toLowerCase()==="transfer-encoding")thrownewmt("invalid transfer-encoding header");if(e.length===10&&e.toLowerCase()==="connection"){leti=typeofr=="string"?r.toLowerCase():null;if(i!=="close"&&i!=="keep-alive")thrownewmt("invalid connection header");i==="close"&&(t.reset=!0)}else{if(e.length===10&&e.toLowerCase()==="keep-alive")thrownewmt("invalid keep-alive header");if(e.length===7&&e.toLowerCase()==="upgrade")thrownewmt("invalid upgrade header");if(e.length===6&&e.toLowerCase()==="expect")thrownewJ7("expect header not supported");if(LT.exec(e)===null)thrownewmt("invalid header key");if(Array.isArray(r))for(leti=0;i<r.length;i++)n?t.headers[e]?t.headers[e]+=`,${ka(e,r[i],n)}`:t.headers[e]=ka(e,r[i],n):t.headers+=ka(e,r[i]);elsen?t.headers[e]=ka(e,r,n):t.headers+=ka(e,r)}}}FT.exports=YQ});varwm=h((LMe,qT)=>{"use strict";varX7=require("events"),JQ=classextendsX7{dispatch(){thrownewError("not implemented")}close(){thrownewError("not implemented")}destroy(){thrownewError("not implemented")}};qT.exports=JQ});varMd=h((MMe,HT)=>{"use strict";varZ7=wm(),{ClientDestroyedError:VQ,ClientClosedError:eee,InvalidArgumentError:mc}=lt(),{kDestroy:tee,kClose:ree,kDispatch:WQ,kInterceptors:Ta}=Ct(),pc=Symbol("destroyed"),Ld=Symbol("closed"),qs=Symbol("onDestroyed"),yc=Symbol("onClosed"),xm=Symbol("Intercepted Dispatch"),$Q=classextendsZ7{constructor(){super(),this[pc]=!1,this[qs]=null,this[Ld]=!1,this[yc]=[]}getdestroyed(){returnthis[pc]}getclosed(){returnthis[Ld]}getinterceptors(){returnthis[Ta]}setinterceptors(e){if(e){for(letr=e.length-1;r>=0;r--)if(typeofthis[Ta][r]!="function")thrownewmc("interceptor must be an function")}this[Ta]=e}close(e){if(e===void0)returnnewPromise((n,i)=>{this.close((s,o)=>s?i(s):n(o))});if(typeofe!="function")thrownewmc("invalid callback");if(this[pc]){queueMicrotask(()=>e(newVQ,null));return}if(this[Ld]){this[yc]?this[yc].push(e):queueMicrotask(()=>e(null,null));return}this[Ld]=!0,this[yc].push(e);letr=()=>{letn=this[yc];this[yc]=null;for(leti=0;i<n.length;i++)n[i](null,null)};this[ree]().then(()=>this.destroy()).then(()=>{queueMicrotask(r)})}destroy(e,r){if(typeofe=="function"&&(r=e,e=null),r===void0)returnnewPromise((i,s)=>{this.destroy(e,(o,a)=>o?s(o):i(a))});if(typeofr!="function")thrownewmc("invalid callback");if(this[pc]){this[qs]?this[qs].push(r):queueMicrotask(()=>r(null,null));return}e||(e=newVQ),this[pc]=!0,this[qs]=this[qs]||[],this[qs].push(r);letn=()=>{leti=this[qs];this[qs]=null;for(lets=0;s<i.length;s++)i[s](null,null)};this[tee](e).then(()=>{queueMicrotask(n)})}[xm](e,r){if(!this[Ta]||this[Ta].length===0)returnthis[xm]=this[WQ],this[WQ](e,r);letn=this[WQ].bind(this);for(leti=this[Ta].length-1;i>=0;i--)n=this[Ta][i](n);returnthis[xm]=n,n(e,r)}dispatch(e,r){if(!r||typeofr!="object")thrownewmc("handler must be an object");try{if(!e||typeofe!="object")thrownewmc("opts must be an object.");if(this[pc]||this[qs])thrownewVQ;if(this[Ld])throwneweee;returnthis[xm](e,r)}catch(n){if(typeofr.onError!="function")thrownewmc("invalid onError method");returnr.onError(n),!1}}};HT.exports=$Q});varFd=h((qMe,GT)=>{"use strict";varnee=require("net"),jT=require("assert"),zT=He(),{InvalidArgumentError:iee,ConnectTimeoutError:see}=lt(),KQ,XQ;global.FinalizationRegistry&&!process.env.NODE_V8_COVERAGE?XQ=class{constructor(e){this._maxCachedSessions=e,this._sessionCache=newMap,this._sessionRegistry=newglobal.FinalizationRegistry(r=>{i
`,"latin1"):(re(d===null,"no body must not have content length"),f.write(`${g}\r
`,"latin1")),e.onRequestSent()):le.isBuffer(r)?(re(d===r.byteLength,"buffer body must have content length"),f.cork(),f.write(`${g}content-length: ${d}\r
`,"latin1"),f.write(r),f.uncork(),e.onBodySent(r),e.onRequestSent(),l||(f[Wr]=!0)):le.isBlobLike(r)?typeofr.stream=="function"?Lm({body:r.stream(),client:t,request:e,socket:f,contentLength:d,header:g,expectsPayload:l}):yO({body:r,client:t,request:e,socket:f,contentLength:d,header:g,expectsPayload:l}):le.isStream(r)?pO({body:r,client:t,request:e,socket:f,contentLength:d,header:g,expectsPayload:l}):le.isIterable(r)?Lm({body:r,client:t,request:e,socket:f,contentLength:d,header:g,expectsPayload:l}):re(!1),!0}functionate(t,e,r){let{body:n,method:i,path:s,host:o,upgrade:a,expectContinue:A,signal:c,headers:l}=r,u;if(typeofl=="string"?u=sb[Hee](l.trim()):u=l,a)return$r(t,r,newError("Upgrade not supported for H2")),!1;try{r.onConnect(I=>{r.aborted||r.completed||$r(t,r,I||newfb)})}catch(I){$r(t,r,I)}if(r.aborted)return!1;letd,f=t[Tm];if(u[zee]=o||t[uO],u[Gee]=i,i==="CONNECT")returne.ref(),d=e.request(u,{endStream:!1,signal:c}),d.id&&!d.pending?(r.onUpgrade(null,null,d),++f.openStreams):d.once("ready",()=>{r.onUpgrade(null,null,d),++f.openStreams}),d.once("close",()=>{f.openStreams-=1,f.openStreams===0&&e.unref()}),!0;u[Yee]=s,u[Jee]="https";letg=i==="PUT"||i==="POST"||i==="PATCH";n&&typeofn.read=="function"&&n.read(0);letm=le.bodyLength(n);if(m==null&&(m=r.contentLength),(m===0||!g)&&(m=null),mO(i)&&m>0&&r.contentLength!=null&&r.contentLength!==m){if(t[Gd])return$r(t,r,newjs),!1;process.emitWarning(newjs)}m!=null&&(re(n,"no body must not have content length"),u[Vee]=`${m}`),e.ref();letE=i==="GET"||i==="HEAD";returnA?(u[Wee]="100-continue",d=e.request(u,{endStream:E,signal:c}),d.once("continue",C)):(d=e.request(u,{endStream:E,signal:c}),C()),++f.openStreams,d.once("response",I=>{let{[$ee]:b,...w}=I;r.onHeaders(Number(b),w,d.resume.bind(d),"")===!1&&d.pause()}),d.once("end",()=>{r.onComplete([])}),d.on("data",I=>{r.onData(I)===!1&&d.pause()}),d.once("close",()=>{f.openStreams-=1,f.openStreams===0&&e.unref()}),d.once("error",function(I){t[On]&&!t[On].destroyed&&!this.closed&&!this.destroyed&&(f.streams-=1,le.destroy(d,I))}),d.once("frameError",(I,b)=>{letw=newis(`HTTP/2: "frameError" received - type ${I}, code ${b}`);$r(t,r,w),t[On]&&!t[On].destroyed&&!this.closed&&!this.destroyed&&(f.streams-=1,le.destroy(d,w))}),!0;functionC(){n?le.isBuffer(n)?(re(m===n.byteLength,"buffer body must have content length"),d.cork(),d.write(n),d.uncork(),d.end(),r.onBodySent(n),r.onRequestSent()):le.isBlobLike(n)?typeofn.stream=="function"?Lm({client:t,request:r,contentLength:m,h2stream:d,expectsPayload:g,body:n.stream(),socket:t[Ot],header:""}):yO({body:n,client:t,request:r,contentLength:m,expectsPayload:g,h2stream:d,header:"",socket:t[Ot]}):le.isStream(n)?pO({body:n,client:t,request:r,contentLength:m,expectsPayload:g,socket:t[Ot],h2stream:d,header:""}):le.isIterable(n)?Lm({body:n,client:t,request:r,contentLength:m,expectsPayload:g,header:"",h2stream:d,socket:t[Ot]}):re(!1):r.onRequestSent()}}functionpO({h2stream:t,body:e,client:r,request:n,socket:i,contentLength:s,header:o,expectsPayload:a}){if(re(s!==0||r[_t]===0,"stream body cannot be pipelined"),r[os]==="h2"){letm=function(E){n.onBodySent(E)},g=bee(e,t,E=>{E?(le.destroy(e,E),le.destroy(t,E)):n.onRequestSent()});g.on("data",m),g.once("end",()=>{g.removeListener("data",m),le.destroy(g)});return}letA=!1,c=newMm({socket:i,request:n,contentLength:s,client:r,expectsPayload:a,header:o}),l=function(g){if(!A)try{!c.write(g)&&this.pause&&this.pause()}catch(m){le.destroy(this,m)}},u=function(){A||e.resume&&e.resume()},d=function(){if(A)return;letg=newfb;queueMicrotask(()=>f(g))},f=function(g){if(!A){if(A=!0,re(i.destroyed||i[zs]&&r[_t]<=1),i.off("drain",u).off("error",f),e.removeListener("data",l).removeListener("end",f).removeListener("error",f).removeListener("close",d),!g)try{c.end()}catch(m){g=m}c.destroy(g),g&&(g.code!=="UND_ERR_INFO"||g.message!=="reset")?le.destroy(e,g):le.destroy(e)}};e.on("data",l).on("end",f).on("error",f).on("close",d),e.resume&&e.resume(),i.on("drain",u).on("error",f)}asyncfunctionyO({h2stream:t,body:e,client:r,request:n,socket:i,contentLength:s,heade
`,"latin1"),i.write(c),i.uncork()),n.onBodySent(c),n.onRequestSent(),a||(i[Wr]=!0),Ln(r)}catch(c){le.destroy(A?t:i,c)}}async function Lm({h2stream:t,body:e,client:r,request:n,socket:i,contentLength:s,header:o,expectsPayload:a}){re(s!==0||r[_t]===0,"iterator body cannot be pipelined");let A=null;function c(){if(A){let d=A;A=null,d()}}let l=()=>new Promise((d,f)=>{re(A===null),i[Rr]?f(i[Rr]):A=d});if(r[os]==="h2"){t.on("close",c).on("drain",c);try{for await(let d of e){if(i[Rr])throw i[Rr];let f=t.write(d);n.onBodySent(d),f||await l()}}catch(d){t.destroy(d)}finally{n.onRequestSent(),t.end(),t.off("close",c).off("drain",c)}return}i.on("close",c).on("drain",c);let u=new Mm({socket:i,request:n,contentLength:s,client:r,expectsPayload:a,header:o});try{for await(let d of e){if(i[Rr])throw i[Rr];u.write(d)||await l()}u.end()}catch(d){u.destroy(d)}finally{i.off("close",c).off("drain",c)}}var Mm=class{constructor({socket:e,request:r,contentLength:n,client:i,expectsPayload:s,header:o}){this.socket=e,this.request=r,this.contentLength=n,this.client=i,this.bytesWritten=0,this.expectsPayload=s,this.header=o,e[zs]=!0}write(e){let{socket:r,request:n,contentLength:i,client:s,bytesWritten:o,expectsPayload:a,header:A}=this;if(r[Rr])throw r[Rr];if(r.destroyed)return!1;let c=Buffer.byteLength(e);if(!c)return!0;if(i!==null&&o+c>i){if(s[Gd])throw new js;process.emitWarning(new js)}r.cork(),o===0&&(a||(r[Wr]=!0),i===null?r.write(`${A}transfer-encoding:chunked\r
`.trim())}};hM.exports=c0});varIM=h((bFe,CM)=>{"use strict";var{kProxy:Dne,kClose:_ne,kDestroy:Pne,kInterceptors:kne}=Ct(),{URL:mM}=require("url"),pM=Kd(),Tne=bc(),One=Md(),{InvalidArgumentError:rf,RequestAbortedError:Lne}=lt(),yM=Fd(),ef=Symbol("proxy agent"),Ap=Symbol("proxy client"),tf=Symbol("proxy headers"),l0=Symbol("request tls settings"),Mne=Symbol("proxy tls settings"),EM=Symbol("connect endpoint function");functionFne(t){returnt==="https:"?443:80}functionUne(t){if(typeoft=="string"&&(t={uri:t}),!t||!t.uri)thrownewrf("Proxy opts.uri is mandatory");return{uri:t.uri,protocol:t.protocol||"https"}}functionqne(t,e){returnnewTne(t,e)}varu0=classextendsOne{constructor(e){if(super(e),this[Dne]=Une(e),this[ef]=newpM(e),this[kne]=e.interceptors&&e.interceptors.ProxyAgent&&Array.isArray(e.interceptors.ProxyAgent)?e.interceptors.ProxyAgent:[],typeofe=="string"&&(e={uri:e}),!e||!e.uri)thrownewrf("Proxy opts.uri is mandatory");let{clientFactory:r=qne}=e;if(typeofr!="function")thrownewrf("Proxy opts.clientFactory must be a function.");this[l0]=e.requestTls,this[Mne]=e.proxyTls,this[tf]=e.headers||{};letn=newmM(e.uri),{origin:i,port:s,host:o,username:a,password:A}=n;if(e.auth&&e.token)thrownewrf("opts.auth cannot be used in combination with opts.token");e.auth?this[tf]["proxy-authorization"]=`Basic ${e.auth}`:e.token?this[tf]["proxy-authorization"]=e.token:a&&A&&(this[tf]["proxy-authorization"]=`Basic ${Buffer.from(`${decodeURIComponent(a)}:${decodeURIComponent(A)}`).toString("base64")}`);letc=yM({...e.proxyTls});this[EM]=yM({...e.requestTls}),this[Ap]=r(n,{connect:c}),this[ef]=newpM({...e,connect:async(l,u)=>{letd=l.host;l.port||(d+=`:${Fne(l.protocol)}`);try{let{socket:f,statusCode:g}=awaitthis[Ap].connect({origin:i,port:s,path:d,signal:l.signal,headers:{...this[tf],host:o}});if(g!==200&&(f.on("error",()=>{}).destroy(),u(newLne(`Proxy response (${g}) !== 200 when HTTP Tunneling`))),l.protocol!=="https:"){u(null,f);return}letm;this[l0]?m=this[l0].servername:m=l.servername,this[EM]({...l,servername:m,httpSocket:f},u)}catch(f){u(f)}}})}dispatch(e,r){let{host:n}=newmM(e.origin),i=Hne(e.headers);returnjne(i),this[ef].dispatch({...e,headers:{...i,host:n}},r)}async[_ne](){awaitthis[ef].close(),awaitthis[Ap].close()}async[Pne](){awaitthis[ef].destroy(),awaitthis[Ap].destroy()}};functionHne(t){if(Array.isArray(t)){lete={};for(letr=0;r<t.length;r+=2)e[t[r]]=t[r+1];returne}returnt}functionjne(t){if(t&&Object.keys(t).find(r=>r.toLowerCase()==="proxy-authorization"))thrownewrf("Proxy-Authorization should be sent in ProxyAgent constructor")}CM.exports=u0});varwM=h((NFe,NM)=>{varGa=require("assert"),{kRetryHandlerDefaultRetry:BM}=Ct(),{RequestRetryError:cp}=lt(),{isDisturbed:QM,parseHeaders:zne,parseRangeHeader:bM}=He();functionGne(t){lete=Date.now();returnnewDate(t).getTime()-e}vard0=classt{constructor(e,r){let{retryOptions:n,...i}=e,{retry:s,maxRetries:o,maxTimeout:a,minTimeout:A,timeoutFactor:c,methods:l,errorCodes:u,retryAfter:d,statusCodes:f}=n??{};this.dispatch=r.dispatch,this.handler=r.handler,this.opts=i,this.abort=null,this.aborted=!1,this.retryOpts={retry:s??t[BM],retryAfter:d??!0,maxTimeout:a??30*1e3,timeout:A??500,timeoutFactor:c??2,maxRetries:o??5,methods:l??["GET","HEAD","OPTIONS","PUT","DELETE","TRACE"],statusCodes:f??[500,502,503,504,429],errorCodes:u??["ECONNRESET","ECONNREFUSED","ENOTFOUND","ENETDOWN","ENETUNREACH","EHOSTDOWN","EHOSTUNREACH","EPIPE"]},this.retryCount=0,this.start=0,this.end=null,this.etag=null,this.resume=null,this.handler.onConnect(g=>{this.aborted=!0,this.abort?this.abort(g):this.reason=g})}onRequestSent(){this.handler.onRequestSent&&this.handler.onRequestSent()}onUpgrade(e,r,n){this.handler.onUpgrade&&this.handler.onUpgrade(e,r,n)}onConnect(e){this.aborted?e(this.reason):this.abort=e}onBodySent(e){if(this.handler.onBodySent)returnthis.handler.onBodySent(e)}static[BM](e,{state:r,opts:n},i){let{statusCode:s,code:o,headers:a}=e,{method:A,retryOptions:c}=n,{maxRetries:l,timeout:u,maxTimeout:d,timeoutFactor:f,statusCodes:g,errorCodes:m,methods:E}=c,{count
globstarwhile`,t,l,e,u,d),this.matchOne(t.slice(l),e.slice(u),r))return this.debug("globstar found match!",l,o,d),!0;if(d==="."||d===".."||!n.dot&&d.charAt(0)==="."){this.debug("dot detected!",t,l,e,u);break}this.debug("globstar swallow a segment, and continue"),l++}return!!(r&&(this.debug(`
>>>nomatch,partial?`,t,l,e,u),l===o))}var f;if(typeof A=="string"?(f=c===A,this.debug("string match",A,c,f)):(f=c.match(A),this.debug("pattern match",A,c,f)),!f)return!1}if(i===o&&s===a)return!0;if(i===o)return r;if(s===a)return i===o-1&&t[i]==="";throw new Error("wtf?")};function _ce(t){return t.replace(/\\(.)/g,"$1")}function Pce(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}});var T1=h(Ai=>{"use strict";var kce=Ai&&Ai.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),Tce=Ai&&Ai.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),k1=Ai&&Ai.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.hasOwnProperty.call(t,r)&&kce(e,t,r);return Tce(e,t),e},Oce=Ai&&Ai.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Ai,"__esModule",{value:!0});Ai.Path=void 0;var If=k1(require("path")),Ho=k1(oy()),Bf=Oce(require("assert")),Lce=process.platform==="win32",bN=class{constructor(e){if(this.segments=[],typeof e=="string")if(Bf.default(e,"Parameter 'itemPath' must not be empty"),e=Ho.safeTrimTrailingSeparator(e),!Ho.hasRoot(e))this.segments=e.split(If.sep);else{let r=e,n=Ho.dirname(r);for(;n!==r;){let i=If.basename(r);this.segments.unshift(i),r=n,n=Ho.dirname(r)}this.segments.unshift(r)}else{Bf.default(e.length>0,"Parameter 'itemPath' must not be an empty array");for(let r=0;r<e.length;r++){let n=e[r];Bf.default(n,"Parameter 'itemPath' must not contain any empty segments"),n=Ho.normalizeSeparators(e[r]),r===0&&Ho.hasRoot(n)?(n=Ho.safeTrimTrailingSeparator(n),Bf.default(n===Ho.dirname(n),"Parameter 'itemPath' root segment contains information for multiple segments"),this.segments.push(n)):(Bf.default(!n.includes(If.sep),"Parameter 'itemPath' contains unexpected path separators"),this.segments.push(n))}}}toString(){let e=this.segments[0],r=e.endsWith(If.sep)||Lce&&/^[A-Z]:$/i.test(e);for(let n=1;n<this.segments.length;n++)r?r=!1:e+=If.sep,e+=this.segments[n];return e}};Ai.Path=bN});var O1=h(ci=>{"use strict";var Mce=ci&&ci.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),Fce=ci&&ci.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),xN=ci&&ci.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.hasOwnProperty.call(t,r)&&Mce(e,t,r);return Fce(e,t),e},Uce=ci&&ci.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(ci,"__esModule",{value:!0});ci.Pattern=void 0;var qce=xN(require("os")),Qf=xN(require("path")),En=xN(oy()),tA=Uce(require("assert")),Hce=QN(),NN=ay(),ly=T1(),Ws=process.platform==="win32",wN=class t{constructor(e,r=!1,n,i){this.negate=!1;let s;if(typeof e=="string")s=e.trim();else{n=n||[],tA.default(n.length,"Parameter 'segments' must not empty");let c=t.getLiteral(n[0]);tA.default(c&&En.hasAbsoluteRoot(c),"Parameter 'segments' first element must be a root path"),s=new ly.Path(n).toString().trim(),e&&(s=`!${s}`)}for(;s.startsWith("!");)this.negate=!this.negate,s=s.substr(1).trim();s=t.fixupPattern(s,i),this.segments=new ly.Path(s).segments,this.trailingSeparator=En.normalizeSeparators(s).endsWith(Qf.sep),s=En.safeTrimTrailingSeparator(s);let o=!1,a=this.segments.map(c=>t.getLiteral(c)).filter(c=>!o&&!(o=c===""));this.searchPath=new ly.Path(a).toString(),this.rootRegExp=new RegExp(t.regExpEscape(a[0]),Ws?"i":""),this.isImplicitPattern=r;let A={dot:!0,nobrace:!0,nocase:Ws,nocomment:!0,noext:!0,nonegate:!0};s=Ws?s.replace(/\\/g,"/"):s,this.minimatch=new Hce.Minimatch(s,A)}match(e){return this.segments[this.segments.length-1]==="**"?(e=En.normalizeSeparators(e),!e.endsWith(Qf.sep)&&th
`).map(s=>s.trim());for(letsofi)!s||s.startsWith("#")||n.patterns.push(newU1.Pattern(s));returnn.searchPaths.push(...dy.getSearchPaths(n.patterns)),n})}staticstat(e,r,n){returnRN(this,void0,void0,function*(){leti;if(r.followSymbolicLinks)try{i=yieldbf.promises.stat(e.path)}catch(s){if(s.code==="ENOENT"){if(r.omitBrokenSymbolicLinks){vN.debug(`Broken symlink '${e.path}'`);return}thrownewError(`No information found for the path '${e.path}'. This may indicate a broken symbolic link.`)}throws}elsei=yieldbf.promises.lstat(e.path);if(i.isDirectory()&&r.followSymbolicLinks){lets=yieldbf.promises.realpath(e.path);for(;n.length>=e.level;)n.pop();if(n.some(o=>o===s)){vN.debug(`Symlink cycle detected for path '${e.path}' and realpath '${s}'`);return}n.push(s)}returni})}};hr.DefaultGlobber=DN});varj1=h(Zc=>{"use strict";varWce=Zc&&Zc.__awaiter||function(t,e,r,n){functioni(s){returnsinstanceofr?s:newr(function(o){o(s)})}returnnew(r||(r=Promise))(function(s,o){functiona(l){try{c(n.next(l))}catch(u){o(u)}}functionA(l){try{c(n.throw(l))}catch(u){o(u)}}functionc(l){l.done?s(l.value):i(l.value).then(a,A)}c((n=n.apply(t,e||[])).next())})};Object.defineProperty(Zc,"__esModule",{value:!0});Zc.create=void0;var$ce=H1();functionKce(t,e){returnWce(this,void0,void0,function*(){returnyield$ce.DefaultGlobber.create(t,e)})}Zc.create=Kce});varW1=h((Ee,V1)=>{Ee=V1.exports=ve;varZe;typeofprocess=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?Ze=function(){vart=Array.prototype.slice.call(arguments,0);t.unshift("SEMVER"),console.log.apply(console,t)}:Ze=function(){};Ee.SEMVER_SPEC_VERSION="2.0.0";varwf=256,fy=Number.MAX_SAFE_INTEGER||9007199254740991,_N=16,Xce=wf-6,el=Ee.re=[],Xe=Ee.safeRe=[],_=Ee.src=[],S=Ee.tokens={},Y1=0;functionke(t){S[t]=Y1++}varkN="[a-zA-Z0-9-]",PN=[["\\s",1],["\\d",wf],[kN,Xce]];functionSf(t){for(vare=0;e<PN.length;e++){varr=PN[e][0],n=PN[e][1];t=t.split(r+"*").join(r+"{0,"+n+"}").split(r+"+").join(r+"{1,"+n+"}")}returnt}ke("NUMERICIDENTIFIER");_[S.NUMERICIDENTIFIER]="0|[1-9]\\d*";ke("NUMERICIDENTIFIERLOOSE");_[S.NUMERICIDENTIFIERLOOSE]="\\d+";ke("NONNUMERICIDENTIFIER");_[S.NONNUMERICIDENTIFIER]="\\d*[a-zA-Z-]"+kN+"*";ke("MAINVERSION");_[S.MAINVERSION]="("+_[S.NUMERICIDENTIFIER]+")\\.("+_[S.NUMERICIDENTIFIER]+")\\.("+_[S.NUMERICIDENTIFIER]+")";ke("MAINVERSIONLOOSE");_[S.MAINVERSIONLOOSE]="("+_[S.NUMERICIDENTIFIERLOOSE]+")\\.("+_[S.NUMERICIDENTIFIERLOOSE]+")\\.("+_[S.NUMERICIDENTIFIERLOOSE]+")";ke("PRERELEASEIDENTIFIER");_[S.PRERELEASEIDENTIFIER]="(?:"+_[S.NUMERICIDENTIFIER]+"|"+_[S.NONNUMERICIDENTIFIER]+")";ke("PRERELEASEIDENTIFIERLOOSE");_[S.PRERELEASEIDENTIFIERLOOSE]="(?:"+_[S.NUMERICIDENTIFIERLOOSE]+"|"+_[S.NONNUMERICIDENTIFIER]+")";ke("PRERELEASE");_[S.PRERELEASE]="(?:-("+_[S.PRERELEASEIDENTIFIER]+"(?:\\."+_[S.PRERELEASEIDENTIFIER]+")*))";ke("PRERELEASELOOSE");_[S.PRERELEASELOOSE]="(?:-?("+_[S.PRERELEASEIDENTIFIERLOOSE]+"(?:\\."+_[S.PRERELEASEIDENTIFIERLOOSE]+")*))";ke("BUILDIDENTIFIER");_[S.BUILDIDENTIFIER]=kN+"+";ke("BUILD");_[S.BUILD]="(?:\\+("+_[S.BUILDIDENTIFIER]+"(?:\\."+_[S.BUILDIDENTIFIER]+")*))";ke("FULL");ke("FULLPLAIN");_[S.FULLPLAIN]="v?"+_[S.MAINVERSION]+_[S.PRERELEASE]+"?"+_[S.BUILD]+"?";_[S.FULL]="^"+_[S.FULLPLAIN]+"$";ke("LOOSEPLAIN");_[S.LOOSEPLAIN]="[v=\\s]*"+_[S.MAINVERSIONLOOSE]+_[S.PRERELEASELOOSE]+"?"+_[S.BUILD]+"?";ke("LOOSE");_[S.LOOSE]="^"+_[S.LOOSEPLAIN]+"$";ke("GTLT");_[S.GTLT]="((?:<|>)?=?)";ke("XRANGEIDENTIFIERLOOSE");_[S.XRANGEIDENTIFIERLOOSE]=_[S.NUMERICIDENTIFIERLOOSE]+"|x|X|\\*";ke("XRANGEIDENTIFIER");_[S.XRANGEIDENTIFIER]=_[S.NUMERICIDENTIFIER]+"|x|X|\\*";ke("XRANGEPLAIN");_[S.XRANGEPLAIN]="[v=\\s]*("+_[S.XRANGEIDENTIFIER]+")(?:\\.("+_[S.XRANGEIDENTIFIER]+")(?:\\.("+_[S.XRANGEIDENTIFIER]+")(?:"+_[S.PRERELEASE]+")?"+_[S.BUILD]+"?)?)?";ke("XRANGEPLAINLOOSE");_[S.XRANGEPLAINLOOSE]="[v=\\s]*("+_[S.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+_[S.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+_[S.XRANGEIDENTIFIERLOOSE]+")(?:"+_[S.PRERELEASELOOSE]+")?"+_[S.BUILD]+"?)?)?";ke("XRANGE");_[S.XRANGE]="^"+_[S.GTLT]+"\\s*"+_[S.XRANGEPLAI
`),{implicitDescendants:!1});try{for(var c=!0,l=Lle(A.globGenerator()),u;u=yield l.next(),e=u.done,!e;c=!0){i=u.value,c=!1;let d=i,f=py.relative(a,d).replace(new RegExp(`\\${py.sep}`,"g"),"/");vf.debug(`Matched:${f}`),f===""?o.push("."):o.push(`${f}`)}}catch(d){r={error:d}}finally{try{!c&&!e&&(n=l.return)&&(yield n.call(l))}finally{if(r)throw r.error}}return o})}Ve.resolvePaths=Gle;function Yle(t){return rl(this,void 0,void 0,function*(){return qle.promisify(FN.unlink)(t)})}Ve.unlinkFile=Yle;function tq(t,e=[]){return rl(this,void 0,void 0,function*(){let r="";e.push("--version"),vf.debug(`Checking${t}${e.join(" ")}`);try{yield Mle.exec(`${t}`,e,{ignoreReturnCode:!0,silent:!0,listeners:{stdout:n=>r+=n.toString(),stderr:n=>r+=n.toString()}})}catch(n){vf.debug(n.message)}return r=r.trim(),vf.debug(r),r})}function Jle(){return rl(this,void 0,void 0,function*(){let t=yield tq("zstd",["--quiet"]),e=Ule.clean(t);return vf.debug(`zstdversion:${e}`),t===""?iA.CompressionMethod.Gzip:iA.CompressionMethod.ZstdWithoutLong})}Ve.getCompressionMethod=Jle;function Vle(t){return t===iA.CompressionMethod.Gzip?iA.CacheFilename.Gzip:iA.CacheFilename.Zstd}Ve.getCacheFileName=Vle;function Wle(){return rl(this,void 0,void 0,function*(){return FN.existsSync(iA.GnuTarPathOnWindows)?iA.GnuTarPathOnWindows:(yield tq("tar")).toLowerCase().includes("gnu tar")?Z1.which("tar"):""})}Ve.getGnuTarPathOnWindows=Wle;function $le(t,e){if(e===void 0)throw Error(`Expected${t}butvaluewasundefiend`);return e}Ve.assertDefined=$le;function Kle(t,e,r=!1){let n=t.slice();return e&&n.push(e),process.platform==="win32"&&!r&&n.push("windows-only"),n.push(Hle),eq.createHash("sha256").update(n.join("|")).digest("hex")}Ve.getCacheVersion=Kle;function Xle(){let t=process.env.ACTIONS_RUNTIME_TOKEN;if(!t)throw new Error("Unable to get the ACTIONS_RUNTIME_TOKEN env variable");return t}Ve.getRuntimeToken=Xle});var ui={};o8(ui,{__addDisposableResource:()=>wq,__assign:()=>yy,__asyncDelegator:()=>yq,__asyncGenerator:()=>pq,__asyncValues:()=>Eq,__await:()=>il,__awaiter:()=>uq,__classPrivateFieldGet:()=>Qq,__classPrivateFieldIn:()=>Nq,__classPrivateFieldSet:()=>bq,__createBinding:()=>Cy,__decorate:()=>iq,__disposeResources:()=>xq,__esDecorate:()=>oq,__exportStar:()=>fq,__extends:()=>rq,__generator:()=>dq,__importDefault:()=>Bq,__importStar:()=>Iq,__makeTemplateObject:()=>Cq,__metadata:()=>lq,__param:()=>sq,__propKey:()=>Aq,__read:()=>HN,__rest:()=>nq,__rewriteRelativeImportExtension:()=>Sq,__runInitializers:()=>aq,__setFunctionName:()=>cq,__spread:()=>hq,__spreadArray:()=>mq,__spreadArrays:()=>gq,__values:()=>Ey,default:()=>tue});function rq(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");UN(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}function nq(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(t);i<n.length;i++)e.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(t,n[i])&&(r[n[i]]=t[n[i]]);return r}function iq(t,e,r,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(i<3?o(s):i>3?o(e,r,s):o(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s}function sq(t,e){return function(r,n){e(r,n,t)}}function oq(t,e,r,n,i,s){function o(C){if(C!==void 0&&typeof C!="function")throw new TypeError("Function expected");return C}for(var a=n.kind,A=a==="getter"?"get":a==="setter"?"set":"value",c=!e&&t?n.static?t:t.prototype:null,l=e||(c?Object.getOwnPropertyDescriptor(c,n.name):{}),u,d=!1,f=r.length-1;f>=0;f--){var g={};for(var m in n)g[m]=m==="access"?{}:n[m];for(var m in n.access)g.access[m]=n.access[m];g.addInitializer=function(C){if(d)throw new TypeError("Cannot add initializers after decoration has completed"
${Pue.sanitize(Object.assign(Object.assign({},this),{request:this.request,response:this.response}))}`,enumerable:!1}),Object.setPrototypeOf(this,t.prototype)}};Tf.RestError=sl;sl.REQUEST_SEND_ERROR="REQUEST_SEND_ERROR";sl.PARSE_ERROR="PARSE_ERROR";functionkue(t){returntinstanceofsl?!0:(0,vue.isError)(t)&&t.name==="RestError"}});varsA=h(Ry=>{"use strict";Object.defineProperty(Ry,"__esModule",{value:!0});Ry.uint8ArrayToString=Tue;Ry.stringToUint8Array=Oue;functionTue(t,e){returnBuffer.from(t).toString(e)}functionOue(t,e){returnBuffer.from(t,e)}});varOf=h(vy=>{"use strict";Object.defineProperty(vy,"__esModule",{value:!0});vy.logger=void0;varLue=Pf();vy.logger=(0,Lue.createClientLogger)("ts-http-runtime")});varKq=h(_y=>{"use strict";Object.defineProperty(_y,"__esModule",{value:!0});_y.getBodyLength=$q;_y.createNodeHttpClient=Gue;vargw=(di(),Li(ui)),dw=gw.__importStar(require("node:http")),fw=gw.__importStar(require("node:https")),Yq=gw.__importStar(require("node:zlib")),Mue=require("node:stream"),Jq=Df(),Fue=Go(),Mf=ol(),al=Of(),Uue=kf(),que={};functionLf(t){returnt&&typeoft.pipe=="function"}functionVq(t){returnt.readable===!1?Promise.resolve():newPromise(e=>{letr=()=>{e(),t.removeListener("close",r),t.removeListener("end",r),t.removeListener("error",r)};t.on("close",r),t.on("end",r),t.on("error",r)})}functionWq(t){returnt&&typeoft.byteLength=="number"}varDy=classextendsMue.Transform{_transform(e,r,n){this.push(e),this.loadedBytes+=e.length;try{this.progressCallback({loadedBytes:this.loadedBytes}),n()}catch(i){n(i)}}constructor(e){super(),this.loadedBytes=0,this.progressCallback=e}},hw=class{constructor(){this.cachedHttpsAgents=newWeakMap}asyncsendRequest(e){varr,n,i;lets=newAbortController,o;if(e.abortSignal){if(e.abortSignal.aborted)thrownewJq.AbortError("The operation was aborted. Request has already been canceled.");o=d=>{d.type==="abort"&&s.abort()},e.abortSignal.addEventListener("abort",o)}leta;e.timeout>0&&(a=setTimeout(()=>{letd=newUue.Sanitizer;al.logger.info(`request to '${d.sanitizeUrl(e.url)}' timed out. canceling...`),s.abort()},e.timeout));letA=e.headers.get("Accept-Encoding"),c=A?.includes("gzip")||A?.includes("deflate"),l=typeofe.body=="function"?e.body():e.body;if(l&&!e.headers.has("Content-Length")){letd=$q(l);d!==null&&e.headers.set("Content-Length",d)}letu;try{if(l&&e.onUploadProgress){letC=e.onUploadProgress,I=newDy(C);I.on("error",b=>{al.logger.error("Error in upload progress",b)}),Lf(l)?l.pipe(I):I.end(l),l=I}letd=awaitthis.makeRequest(e,s,l);a!==void0&&clearTimeout(a);letf=Hue(d),m={status:(r=d.statusCode)!==null&&r!==void0?r:0,headers:f,request:e};if(e.method==="HEAD")returnd.resume(),m;u=c?jue(d,f):d;letE=e.onDownloadProgress;if(E){letC=newDy(E);C.on("error",I=>{al.logger.error("Error in download progress",I)}),u.pipe(C),u=C}return!((n=e.streamResponseStatusCodes)===null||n===void0)&&n.has(Number.POSITIVE_INFINITY)||!((i=e.streamResponseStatusCodes)===null||i===void0)&&i.has(m.status)?m.readableStreamBody=u:m.bodyAsText=awaitzue(u),m}finally{if(e.abortSignal&&o){letd=Promise.resolve();Lf(l)&&(d=Vq(l));letf=Promise.resolve();Lf(u)&&(f=Vq(u)),Promise.all([d,f]).then(()=>{varg;o&&((g=e.abortSignal)===null||g===void0||g.removeEventListener("abort",o))}).catch(g=>{al.logger.warning("Error when cleaning up abortListener on httpRequest",g)})}}}makeRequest(e,r,n){vari;lets=newURL(e.url),o=s.protocol!=="https:";if(o&&!e.allowInsecureConnection)thrownewError(`Cannot connect to ${e.url} while allowInsecureConnection is false.`);leta=(i=e.agent)!==null&&i!==void0?i:this.getOrCreateAgent(e,o),A=Object.assign({agent:a,hostname:s.hostname,path:`${s.pathname}${s.search}`,port:s.port,method:e.method,headers:e.headers.toJSON({preserveCase:!0})},e.requestOverrides);returnnewPromise((c,l)=>{letu=o?dw.request(A,c):fw.request(A,c);u.once("error",d=>{varf;l(newMf.RestError(d.message,{code:(f=d.code)!==null&&f!==void0?f:Mf.RestError.REQUEST_SEND_ERROR,request:e}))}),r.signal.addEventListener("abort",()=>{letd=newJq.AbortError("The operation was abo
`;if(n.username||n.password){let d=`${decodeURIComponent(n.username)}:${decodeURIComponent(n.password)}`;s["Proxy-Authorization"]=`Basic ${Buffer.from(d).toString("base64")}`}s.Host=`${o}:${r.port}`,s["Proxy-Connection"]||(s["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let d of Object.keys(s))a+=`${d}: ${s[d]}\r
`,"utf-8")],i=ahe(n);i&&t.headers.set("Content-Length",i),t.body=await(0,nhe.concat)(n)}bl.multipartPolicyName="multipartPolicy";varche=70,lhe=newSet("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'()+,-./:=?");functionuhe(t){if(t.length>che)thrownewError(`Multipart boundary "${t}" exceeds maximum length of 70 characters`);if(Array.from(t).some(e=>!lhe.has(e)))thrownewError(`Multipart boundary "${t}" contains invalid characters`)}functiondhe(){return{name:bl.multipartPolicyName,asyncsendRequest(t,e){varr;if(!t.multipartBody)returne(t);if(t.body)thrownewError("multipartBody and regular body cannot be set at the same time");letn=t.multipartBody.boundary,i=(r=t.headers.get("Content-Type"))!==null&&r!==void0?r:"multipart/mixed",s=i.match(/^(multipart\/[^ ;]+)(?:; *boundary=(.+))?$/);if(!s)thrownewError(`Got multipart request body, but content-type header was not multipart: ${i}`);let[,o,a]=s;if(a&&n&&a!==n)thrownewError(`Multipart boundary was specified as ${a} in the header, but got ${n} in the request body`);returnn??(n=a),n?uhe(n):n=ihe(),t.headers.set("Content-Type",`${o}; boundary=${n}`),awaitAhe(t,t.multipartBody.parts,n),t.multipartBody=void0,e(t)}}}});varY2=h(Jw=>{"use strict";Object.defineProperty(Jw,"__esModule",{value:!0});Jw.createPipelineFromOptions=Qhe;varfhe=yw(),hhe=ow(),ghe=Ew(),mhe=Bw(),phe=Qw(),yhe=Dw(),Ehe=Ow(),z2=Uf(),Che=qw(),Ihe=Hw(),Bhe=jw(),G2=Yw();functionQhe(t){lete=(0,hhe.createEmptyPipeline)();returnz2.isNodeLike&&(t.agent&&e.addPolicy((0,Ihe.agentPolicy)(t.agent)),t.tlsOptions&&e.addPolicy((0,Bhe.tlsPolicy)(t.tlsOptions)),e.addPolicy((0,Che.proxyPolicy)(t.proxyOptions)),e.addPolicy((0,phe.decompressResponsePolicy)())),e.addPolicy((0,Ehe.formDataPolicy)(),{beforePolicies:[G2.multipartPolicyName]}),e.addPolicy((0,mhe.userAgentPolicy)(t.userAgentOptions)),e.addPolicy((0,G2.multipartPolicy)(),{afterPhase:"Deserialize"}),e.addPolicy((0,yhe.defaultRetryPolicy)(t.retryOptions),{phase:"Retry"}),z2.isNodeLike&&e.addPolicy((0,ghe.redirectPolicy)(t.redirectOptions),{afterPhase:"Retry"}),e.addPolicy((0,fhe.logPolicy)(t.loggingOptions),{afterPhase:"Sign"}),e}});varJ2=h(Nl=>{"use strict";Object.defineProperty(Nl,"__esModule",{value:!0});Nl.apiVersionPolicyName=void0;Nl.apiVersionPolicy=bhe;Nl.apiVersionPolicyName="ApiVersionPolicy";functionbhe(t){return{name:Nl.apiVersionPolicyName,sendRequest:(e,r)=>{letn=newURL(e.url);return!n.searchParams.get("api-version")&&t.apiVersion&&(e.url=`${e.url}${Array.from(n.searchParams.keys()).length>0?"&":"?"}api-version=${t.apiVersion}`),r(e)}}}});varV2=h(wl=>{"use strict";Object.defineProperty(wl,"__esModule",{value:!0});wl.isOAuth2TokenCredential=Nhe;wl.isBearerTokenCredential=whe;wl.isBasicCredential=xhe;wl.isApiKeyCredential=She;functionNhe(t){return"getOAuth2Token"int}functionwhe(t){return"getBearerToken"int}functionxhe(t){return"username"int&&"password"int}functionShe(t){return"key"int}});varjf=h(Vw=>{"use strict";Object.defineProperty(Vw,"__esModule",{value:!0});Vw.ensureSecureConnection=_he;varRhe=Of(),W2=!1;functionvhe(t,e){if(e.allowInsecureConnection&&t.allowInsecureConnection){letr=newURL(t.url);if(r.hostname==="localhost"||r.hostname==="127.0.0.1")return!0}return!1}functionDhe(){lett="Sending token over insecure transport. Assume any token issued is compromised.";Rhe.logger.warning(t),typeof(process==null?void0:process.emitWarning)=="function"&&!W2&&(W2=!0,process.emitWarning(t))}function_he(t,e){if(!t.url.toLowerCase().startsWith("https://"))if(vhe(t,e))Dhe();elsethrownewError("Authentication is not permitted for non-TLS protected (non-https) URLs when allowInsecureConnection is false.")}});var$2=h(xl=>{"use strict";Object.defineProperty(xl,"__esModule",{value:!0});xl.apiKeyAuthenticationPolicyName=void0;xl.apiKeyAuthenticationPolicy=khe;varPhe=jf();xl.apiKeyAuthenticationPolicyName="apiKeyAuthenticationPolicy";functionkhe(t){return{name:xl.apiKeyAuthenticationPolicyName,asyncsendRequest(e,r){varn,i;(0,Phe.ensureSecureConnection)(e,t);lets=(i=(n=e.authSchemes)!==null&&n!==void0?n:t.a
`).join(""))}return e(t)}}}});var Pj=h(dA=>{"use strict";Object.defineProperty(dA,"__esModule",{value:!0});dA.auxiliaryAuthenticationHeaderPolicyName=void 0;dA.auxiliaryAuthenticationHeaderPolicy=fye;var lye=zx(),uye=Gf();dA.auxiliaryAuthenticationHeaderPolicyName="auxiliaryAuthenticationHeaderPolicy";var _j="x-ms-authorization-auxiliary";async function dye(t){var e,r;let{scopes:n,getAccessToken:i,request:s}=t,o={abortSignal:s.abortSignal,tracingOptions:s.tracingOptions};return(r=(e=await i(n,o))===null||e===void 0?void 0:e.token)!==null&&r!==void 0?r:""}function fye(t){let{credentials:e,scopes:r}=t,n=t.logger||uye.logger,i=new WeakMap;return{name:dA.auxiliaryAuthenticationHeaderPolicyName,async sendRequest(s,o){if(!s.url.toLowerCase().startsWith("https://"))throw new Error("Bearer token authentication for auxiliary header is not permitted for non-TLS protected (non-https) URLs.");if(!e||e.length===0)return n.info(`${dA.auxiliaryAuthenticationHeaderPolicyName}headerwillnotbesetduetoemptycredentials.`),o(s);let a=[];for(let c of e){let l=i.get(c);l||(l=(0,lye.createTokenCycler)(c),i.set(c,l)),a.push(dye({scopes:Array.isArray(r)?r:[r],request:s,getAccessToken:l,logger:n}))}let A=(await Promise.all(a)).filter(c=>!!c);return A.length===0?(n.warning(`Noneoftheauxiliarytokensarevalid.${_j}headerwillnotbeset.`),o(s)):(s.headers.set(_j,A.map(c=>`Bearer${c}`).join(", ")),o(s))}}}});var eo=h(L=>{"use strict";Object.defineProperty(L,"__esModule",{value:!0});L.createFileFromStream=L.createFile=L.agentPolicyName=L.agentPolicy=L.auxiliaryAuthenticationHeaderPolicyName=L.auxiliaryAuthenticationHeaderPolicy=L.ndJsonPolicyName=L.ndJsonPolicy=L.bearerTokenAuthenticationPolicyName=L.bearerTokenAuthenticationPolicy=L.formDataPolicyName=L.formDataPolicy=L.tlsPolicyName=L.tlsPolicy=L.userAgentPolicyName=L.userAgentPolicy=L.defaultRetryPolicy=L.tracingPolicyName=L.tracingPolicy=L.retryPolicy=L.throttlingRetryPolicyName=L.throttlingRetryPolicy=L.systemErrorRetryPolicyName=L.systemErrorRetryPolicy=L.redirectPolicyName=L.redirectPolicy=L.getDefaultProxySettings=L.proxyPolicyName=L.proxyPolicy=L.multipartPolicyName=L.multipartPolicy=L.logPolicyName=L.logPolicy=L.setClientRequestIdPolicyName=L.setClientRequestIdPolicy=L.exponentialRetryPolicyName=L.exponentialRetryPolicy=L.decompressResponsePolicyName=L.decompressResponsePolicy=L.isRestError=L.RestError=L.createPipelineRequest=L.createHttpHeaders=L.createDefaultHttpClient=L.createPipelineFromOptions=L.createEmptyPipeline=void 0;var hye=sx();Object.defineProperty(L,"createEmptyPipeline",{enumerable:!0,get:function(){return hye.createEmptyPipeline}});var gye=gj();Object.defineProperty(L,"createPipelineFromOptions",{enumerable:!0,get:function(){return gye.createPipelineFromOptions}});var mye=mj();Object.defineProperty(L,"createDefaultHttpClient",{enumerable:!0,get:function(){return mye.createDefaultHttpClient}});var pye=pj();Object.defineProperty(L,"createHttpHeaders",{enumerable:!0,get:function(){return pye.createHttpHeaders}});var yye=yj();Object.defineProperty(L,"createPipelineRequest",{enumerable:!0,get:function(){return yye.createPipelineRequest}});var kj=hE();Object.defineProperty(L,"RestError",{enumerable:!0,get:function(){return kj.RestError}});Object.defineProperty(L,"isRestError",{enumerable:!0,get:function(){return kj.isRestError}});var Tj=Qx();Object.defineProperty(L,"decompressResponsePolicy",{enumerable:!0,get:function(){return Tj.decompressResponsePolicy}});Object.defineProperty(L,"decompressResponsePolicyName",{enumerable:!0,get:function(){return Tj.decompressResponsePolicyName}});var Oj=Cj();Object.defineProperty(L,"exponentialRetryPolicy",{enumerable:!0,get:function(){return Oj.exponentialRetryPolicy}});Object.defineProperty(L,"exponentialRetryPolicyName",{enumerable:!0,get:function(){return Oj.exponentialRetryPolicyName}});var Lj=Sx();Object.defineProperty(L,"setClientRequestIdPolicy",{enumerable:!0,get:function(){return Lj.setClientRequestIdPolicy}});Object.defineProperty(L,"setClientRequestIdPolicyName",{enumerable:!0,get:function(){return Lj.setClientReques
`&&p[N]!=="\r";N++)k+=p[N];if(k=k.trim(),k[k.length-1]==="/"&&(k=k.substring(0,k.length-1),N--),!s(k)){letce;returnce=k.trim().length===0?"Invalid space after '<'.":"Tag '"+k+"' is an invalid name.",C("InvalidTag",ce,b(p,N))}letz=f(p,N);if(z===!1)returnC("InvalidAttr","Attributes for '"+k+"' have open quote.",b(p,N));letCe=z.value;if(N=z.index,Ce[Ce.length-1]==="/"){letce=N-Ce.length;Ce=Ce.substring(0,Ce.length-1);letqe=m(Ce,y);if(qe!==!0)returnC(qe.err.code,qe.err.msg,b(p,ce+qe.err.line));x=!0}elseif(R){if(!z.tagClosed)returnC("InvalidTag","Closing tag '"+k+"' doesn't have proper closing.",b(p,N));if(Ce.trim().length>0)returnC("InvalidTag","Closing tag '"+k+"' can't have attributes or invalid starting.",b(p,D));if(B.length===0)returnC("InvalidTag","Closing tag '"+k+"' has not been opened.",b(p,D));{letce=B.pop();if(k!==ce.tagName){letqe=b(p,ce.tagStartPos);returnC("InvalidTag","Expected closing tag '"+ce.tagName+"' (opened in line "+qe.line+", col "+qe.col+") instead of closing tag '"+k+"'.",b(p,D))}B.length==0&&(Q=!0)}}else{letce=m(Ce,y);if(ce!==!0)returnC(ce.err.code,ce.err.msg,b(p,N-Ce.length+ce.err.line));if(Q===!0)returnC("InvalidXml","Multiple possible root nodes found.",b(p,N));y.unpairedTags.indexOf(k)!==-1||B.push({tagName:k,tagStartPos:D}),x=!0}for(N++;N<p.length;N++)if(p[N]==="<"){if(p[N+1]==="!"){N++,N=l(p,N);continue}if(p[N+1]!=="?")break;if(N=c(p,++N),N.err)returnN}elseif(p[N]==="&"){letce=E(p,N);if(ce==-1)returnC("InvalidChar","char '&' is not expected.",b(p,N));N=ce}elseif(Q===!0&&!A(p[N]))returnC("InvalidXml","Extra text at the end",b(p,N));p[N]==="<"&&N--}}}returnx?B.length==1?C("InvalidTag","Unclosed tag '"+B[0].tagName+"'.",b(p,B[0].tagStartPos)):!(B.length>0)||C("InvalidXml","Invalid '"+JSON.stringify(B.map((N=>N.tagName)),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1}):C("InvalidXml","Start tag expected.",1)}functionA(p){returnp===" "||p===" "||p===`
`||p==="\r"}functionc(p,y){letB=y;for(;y<p.length;y++)if(!(p[y]!="?"&&p[y]!=" ")){letx=p.substr(B,y-B);if(y>5&&x==="xml")returnC("InvalidXml","XML declaration allowed only at the start of the document.",b(p,y));if(p[y]=="?"&&p[y+1]==">"){y++;break}}returny}functionl(p,y){if(p.length>y+5&&p[y+1]==="-"&&p[y+2]==="-"){for(y+=3;y<p.length;y++)if(p[y]==="-"&&p[y+1]==="-"&&p[y+2]===">"){y+=2;break}}elseif(p.length>y+8&&p[y+1]==="D"&&p[y+2]==="O"&&p[y+3]==="C"&&p[y+4]==="T"&&p[y+5]==="Y"&&p[y+6]==="P"&&p[y+7]==="E"){letB=1;for(y+=8;y<p.length;y++)if(p[y]==="<")B++;elseif(p[y]===">"&&(B--,B===0))break}elseif(p.length>y+9&&p[y+1]==="["&&p[y+2]==="C"&&p[y+3]==="D"&&p[y+4]==="A"&&p[y+5]==="T"&&p[y+6]==="A"&&p[y+7]==="["){for(y+=8;y<p.length;y++)if(p[y]==="]"&&p[y+1]==="]"&&p[y+2]===">"){y+=2;break}}returny}letu='"',d="'";functionf(p,y){letB="",x="",Q=!1;for(;y<p.length;y++){if(p[y]===u||p[y]===d)x===""?x=p[y]:x!==p[y]||(x="");elseif(p[y]===">"&&x===""){Q=!0;break}B+=p[y]}returnx===""&&{value:B,index:y,tagClosed:Q}}letg=newRegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");functionm(p,y){letB=i(p,g),x={};for(letQ=0;Q<B.length;Q++){if(B[Q][1].length===0)returnC("InvalidAttr","Attribute '"+B[Q][2]+"' has no space in starting.",w(B[Q]));if(B[Q][3]!==void0&&B[Q][4]===void0)returnC("InvalidAttr","Attribute '"+B[Q][2]+"' is without value.",w(B[Q]));if(B[Q][3]===void0&&!y.allowBooleanAttributes)returnC("InvalidAttr","boolean attribute '"+B[Q][2]+"' is not allowed.",w(B[Q]));letN=B[Q][2];if(!I(N))returnC("InvalidAttr","Attribute '"+N+"' is an invalid name.",w(B[Q]));if(x.hasOwnProperty(N))returnC("InvalidAttr","Attribute '"+N+"' is repeated.",w(B[Q]));x[N]=1}return!0}functionE(p,y){if(p[++y]===";")return-1;if(p[y]==="#")return(function(x,Q){letN=/\d/;for(x[Q]==="x"&&(Q++,N=/[\da-fA-F]/);Q<x.length;Q++){if(x[Q]===";")returnQ;if(!x[Q].match(N))break}return-1})(p,++y);letB=0;for(;y<p.length;y++,B++)if(!(p[y].match(/\w/)&&B<20)){if(p[y]===";")break;return-1}returny}functionC(p,y,B){return{err:{code:p,msg:y,line:B.line||B,col:B.col}}}functionI(p){returns(p)}functionb(p,y){letB=p.substring(0,y).split(/\r?\n/);return{line:B.length,col:B[B.length-1].length+1}}functionw(p){returnp.startIndex+p[1].length}letv={preserveOrder:!1,attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,removeNSPrefix:!1,allowBooleanAttributes:!1,parseTagValue:!0,parseAttributeValue:!1,trimValues:!0,cdataPropName:!1,numberParseOptions:{hex:!0,leadingZeros:!0,eNotation:!0},tagValueProcessor:function(p,y){returny},attributeValueProcessor:function(p,y){returny},stopNodes:[],alwaysCreateTextNode:!1,isArray:()=>!1,commentPropName:!1,unpairedTags:[],processEntities:!0,htmlEntities:!1,ignoreDeclaration:!1,ignorePiTags:!1,transformTagName:!1,transformAttributeName:!1,updateTag:function(p,y,B){returnp},captureMetaData:!1},T;T=typeofSymbol!="function"?"@@xmlMetadata":Symbol("XML Node Metadata");classU{constructor(y){this.tagname=y,this.child=[],this[":@"]={}}add(y,B){y==="__proto__"&&(y="#__proto__"),this.child.push({[y]:B})}addChild(y,B){y.tagname==="__proto__"&&(y.tagname="#__proto__"),y[":@"]&&Object.keys(y[":@"]).length>0?this.child.push({[y.tagname]:y.child,":@":y[":@"]}):this.child.push({[y.tagname]:y.child}),B!==void0&&(this.child[this.child.length-1][T]={startIndex:B})}staticgetMetaDataSymbol(){returnT}}functionP(p,y){letB={};if(p[y+3]!=="O"||p[y+4]!=="C"||p[y+5]!=="T"||p[y+6]!=="Y"||p[y+7]!=="P"||p[y+8]!=="E")thrownewError("Invalid Tag instead of DOCTYPE");{y+=9;letx=1,Q=!1,N=!1,D="";for(;y<p.length;y++)if(p[y]!=="<"||N)if(p[y]===">"){if(N?p[y-1]==="-"&&p[y-2]==="-"&&(N=!1,x--):x--,x===0)break}elsep[y]==="["?Q=!0:D+=p[y];else{if(Q&&it(p,"!ENTITY",y)){letR,k;y+=7,[R,k,y]=we(p,y+1),k.indexOf("&")===-1&&(B[R]={regx:RegExp(`&${R};`,"g"),val:k})}elseif(Q&&it(p,"!ELEMENT",y)){y+=8;let{index:R}=Pe(p,y+1);y=R}elseif(Q&&it(p,"!ATTLIST",y))y+=8;elseif(Q&&it(p,"!NOTATION",y)){y+=9;let{index:R}=De(p,y+1);y=R}else{if(!it(p,"!--",y))thrownewError("Invalid DOCTYPE");N=!0}x++
`);let y=new U("!xml"),B=y,x="",Q="";for(let N=0;N<p.length;N++)if(p[N]==="<")if(p[N+1]==="/"){let D=Da(p,">",N,"Closing Tag is not closed."),R=p.substring(N+2,D).trim();if(this.options.removeNSPrefix){let Ce=R.indexOf(":");Ce!==-1&&(R=R.substr(Ce+1))}this.options.transformTagName&&(R=this.options.transformTagName(R)),B&&(x=this.saveTextToParentTag(x,B,Q));let k=Q.substring(Q.lastIndexOf(".")+1);if(R&&this.options.unpairedTags.indexOf(R)!==-1)throw new Error(`Unpairedtagcannotbeusedasclosingtag:</${R}>`);let z=0;k&&this.options.unpairedTags.indexOf(k)!==-1?(z=Q.lastIndexOf(".",Q.lastIndexOf(".")-1),this.tagsNodeStack.pop()):z=Q.lastIndexOf("."),Q=Q.substring(0,z),B=this.tagsNodeStack.pop(),x="",N=D}else if(p[N+1]==="?"){let D=jB(p,N,!1,"?>");if(!D)throw new Error("Pi Tag is not closed.");if(x=this.saveTextToParentTag(x,B,Q),!(this.options.ignoreDeclaration&&D.tagName==="?xml"||this.options.ignorePiTags)){let R=new U(D.tagName);R.add(this.options.textNodeName,""),D.tagName!==D.tagExp&&D.attrExpPresent&&(R[":@"]=this.buildAttributesMap(D.tagExp,Q,D.tagName)),this.addChild(B,R,Q,N)}N=D.closeIndex+1}else if(p.substr(N+1,3)==="!--"){let D=Da(p,"-->",N+4,"Comment is not closed.");if(this.options.commentPropName){let R=p.substring(N+4,D-2);x=this.saveTextToParentTag(x,B,Q),B.add(this.options.commentPropName,[{[this.options.textNodeName]:R}])}N=D}else if(p.substr(N+1,2)==="!D"){let D=P(p,N);this.docTypeEntities=D.entities,N=D.i}else if(p.substr(N+1,2)==="!["){let D=Da(p,"]]>",N,"CDATA is not closed.")-2,R=p.substring(N+9,D);x=this.saveTextToParentTag(x,B,Q);let k=this.parseTextData(R,B.tagname,Q,!0,!1,!0,!0);k==null&&(k=""),this.options.cdataPropName?B.add(this.options.cdataPropName,[{[this.options.textNodeName]:R}]):B.add(this.options.textNodeName,k),N=D+2}else{let D=jB(p,N,this.options.removeNSPrefix),R=D.tagName,k=D.rawTagName,z=D.tagExp,Ce=D.attrExpPresent,ce=D.closeIndex;this.options.transformTagName&&(R=this.options.transformTagName(R)),B&&x&&B.tagname!=="!xml"&&(x=this.saveTextToParentTag(x,B,Q,!1));let qe=B;qe&&this.options.unpairedTags.indexOf(qe.tagname)!==-1&&(B=this.tagsNodeStack.pop(),Q=Q.substring(0,Q.lastIndexOf("."))),R!==y.tagname&&(Q+=Q?"."+R:R);let st=N;if(this.isItStopNode(this.options.stopNodes,Q,R)){let Ye="";if(z.length>0&&z.lastIndexOf("/")===z.length-1)R[R.length-1]==="/"?(R=R.substr(0,R.length-1),Q=Q.substr(0,Q.length-1),z=R):z=z.substr(0,z.length-1),N=D.closeIndex;else if(this.options.unpairedTags.indexOf(R)!==-1)N=D.closeIndex;else{let Zi=this.readStopNodeData(p,k,ce+1);if(!Zi)throw new Error(`Unexpected end of ${k}`);N=Zi.i,Ye=Zi.tagContent}let Zt=new U(R);R!==z&&Ce&&(Zt[":@"]=this.buildAttributesMap(z,Q,R)),Ye&&(Ye=this.parseTextData(Ye,R,Q,!0,Ce,!0,!0)),Q=Q.substr(0,Q.lastIndexOf(".")),Zt.add(this.options.textNodeName,Ye),this.addChild(B,Zt,Q,st)}else{if(z.length>0&&z.lastIndexOf("/")===z.length-1){R[R.length-1]==="/"?(R=R.substr(0,R.length-1),Q=Q.substr(0,Q.length-1),z=R):z=z.substr(0,z.length-1),this.options.transformTagName&&(R=this.options.transformTagName(R));let Ye=new U(R);R!==z&&Ce&&(Ye[":@"]=this.buildAttributesMap(z,Q,R)),this.addChild(B,Ye,Q,st),Q=Q.substr(0,Q.lastIndexOf("."))}else{let Ye=new U(R);this.tagsNodeStack.push(B),R!==z&&Ce&&(Ye[":@"]=this.buildAttributesMap(z,Q,R)),this.addChild(B,Ye,Q,st),B=Ye}x="",N=ce}}else x+=p[N];return y.child};function O5(p,y,B,x){this.options.captureMetaData||(x=void 0);let Q=this.options.updateTag(y.tagname,B,y[":@"]);Q===!1||(typeof Q=="string"&&(y.tagname=Q),p.addChild(y,x))}let L5=function(p){if(this.options.processEntities){for(let y in this.docTypeEntities){let B=this.docTypeEntities[y];p=p.replace(B.regx,B.val)}for(let y in this.lastEntities){let B=this.lastEntities[y];p=p.replace(B.regex,B.val)}if(this.options.htmlEntities)for(let y in this.htmlEntities){let B=this.htmlEntities[y];p=p.replace(B.regex,B.val)}p=p.replace(this.ampEntity.regex,this.ampEntity.val)}return p};function M5(p,y,B,x){return p&&(x===void 0&&(x=y.child.length===0),(p=this.parseTextData(p,y.tagname,B,!1,!!y[":@"]&&Object.keys(y[":@"]).length!==0,x))!==void 0&&p!==
Polling status: ${aG.terminalStates.includes(l)?"Stopped":"Running"}`),l==="succeeded"){let u=o(c,r);if(u!==void 0)return{response:await e(u).catch(oG({state:r,stateProxy:n,isOperationError:a})),status:l}}return{response:c,status:l}}async function MCe(t){let{poll:e,state:r,stateProxy:n,options:i,getOperationStatus:s,getResourceLocation:o,getOperationLocation:a,isOperationError:A,withOperationLocation:c,getPollingInterval:l,processResult:u,getError:d,updateState:f,setDelay:g,isDone:m,setErrorAsResult:E}=t,{operationLocation:C}=r.config;if(C!==void 0){let{response:I,status:b}=await LCe({poll:e,getOperationStatus:s,state:r,stateProxy:n,operationLocation:C,getResourceLocation:o,isOperationError:A,options:i});if(AG({status:b,response:I,state:r,stateProxy:n,isDone:m,processResult:u,getError:d,setErrorAsResult:E}),!aG.terminalStates.includes(b)){let w=l?.(I);w&&g(w);let v=a?.(I,r);if(v!==void 0){let T=C!==v;r.config.operationLocation=v,c?.(v,T)}else c?.(C,!1)}f?.(r,I)}}$o.pollOperation=MCe});var bS=h(Ft=>{"usestrict";Object.defineProperty(Ft,"__esModule",{value:!0});Ft.pollHttpOperation=Ft.isOperationError=Ft.getResourceLocation=Ft.getOperationStatus=Ft.getOperationLocation=Ft.initHttpOperation=Ft.getStatusFromInitialResponse=Ft.getErrorFromResponse=Ft.parseRetryAfter=Ft.inferLroMode=void 0;var cG=FE(),IS=LE();function lG(t){let{azureAsyncOperation:e,operationLocation:r}=t;return r??e}function uG(t){return t.headers.location}function dG(t){return t.headers["operation-location"]}function fG(t){return t.headers["azure-asyncoperation"]}function FCe(t){var e;let{location:r,requestMethod:n,requestPath:i,resourceLocationConfig:s}=t;switch(n){case"PUT":return i;case"DELETE":return;case"PATCH":return(e=o())!==null&&e!==void 0?e:i;default:return o()}function o(){switch(s){case"azure-async-operation":return;case"original-uri":return i;default:return r}}}function hG(t){let{rawResponse:e,requestMethod:r,requestPath:n,resourceLocationConfig:i}=t,s=dG(e),o=fG(e),a=lG({operationLocation:s,azureAsyncOperation:o}),A=uG(e),c=r?.toLocaleUpperCase();return a!==void 0?{mode:"OperationLocation",operationLocation:a,resourceLocation:FCe({requestMethod:c,location:A,requestPath:n,resourceLocationConfig:i})}:A!==void 0?{mode:"ResourceLocation",operationLocation:A}:c==="PUT"&&n?{mode:"Body",operationLocation:n}:void 0}Ft.inferLroMode=hG;function gG(t){let{status:e,statusCode:r}=t;if(typeof e!="string"&&e!==void 0)throw new Error(`Polling was unsuccessful. Expected status to have a string value or no value but it has instead: ${e}. This doesn't necessarily indicate the operation has failed. Check your Azure subscription or resource status for more information.`);switch(e?.toLocaleLowerCase()){case void 0:return BS(r);case"succeeded":return"succeeded";case"failed":return"failed";case"running":case"accepted":case"started":case"canceling":case"cancelling":return"running";case"canceled":case"cancelled":return"canceled";default:return IS.logger.verbose(`LRO: unrecognized operation status: ${e}`),e}}function UCe(t){var e;let{status:r}=(e=t.body)!==null&&e!==void 0?e:{};return gG({status:r,statusCode:t.statusCode})}function qCe(t){var e,r;let{properties:n,provisioningState:i}=(e=t.body)!==null&&e!==void 0?e:{},s=(r=n?.provisioningState)!==null&&r!==void 0?r:i;return gG({status:s,statusCode:t.statusCode})}function BS(t){return t===202?"running":t<300?"succeeded":"failed"}function mG({rawResponse:t}){let e=t.headers["retry-after"];if(e!==void 0){let r=parseInt(e);return isNaN(r)?HCe(new Date(e)):r*1e3}}Ft.parseRetryAfter=mG;function pG(t){let e=CG(t,"error");if(!e){IS.logger.warning("Thelong-runningoperationfailedbutthereisnoerrorpropertyintheresponse's body");return}if(!e.code||!e.message){IS.logger.warning("The long-running operation failed but the error property in the response'sbodydoesn't contain code or message");return}return e}Ft.getErrorFromResponse=pG;function HCe(t){let e=Math.floor(new Date().getTime()),r=t.getTime();if(e<r)return r-e}function yG(t){let{response:e,state:r,operationLocation:n}=t;function i(){var o;switch((o=r.config.meta
`,YG="HTTP/1.1",EIe="AES256",CIe="DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;",IIe=["Access-Control-Allow-Origin","Cache-Control","Content-Length","Content-Type","Date","Request-Id","traceparent","Transfer-Encoding","User-Agent","x-ms-client-request-id","x-ms-date","x-ms-error-code","x-ms-request-id","x-ms-return-client-request-id","x-ms-version","Accept-Ranges","Content-Disposition","Content-Encoding","Content-Language","Content-MD5","Content-Range","ETag","Last-Modified","Server","Vary","x-ms-content-crc64","x-ms-copy-action","x-ms-copy-completion-time","x-ms-copy-id","x-ms-copy-progress","x-ms-copy-status","x-ms-has-immutability-policy","x-ms-has-legal-hold","x-ms-lease-state","x-ms-lease-status","x-ms-range","x-ms-request-server-encrypted","x-ms-server-encrypted","x-ms-snapshot","x-ms-source-range","If-Match","If-Modified-Since","If-None-Match","If-Unmodified-Since","x-ms-access-tier","x-ms-access-tier-change-time","x-ms-access-tier-inferred","x-ms-account-kind","x-ms-archive-status","x-ms-blob-append-offset","x-ms-blob-cache-control","x-ms-blob-committed-block-count","x-ms-blob-condition-appendpos","x-ms-blob-condition-maxsize","x-ms-blob-content-disposition","x-ms-blob-content-encoding","x-ms-blob-content-language","x-ms-blob-content-length","x-ms-blob-content-md5","x-ms-blob-content-type","x-ms-blob-public-access","x-ms-blob-sequence-number","x-ms-blob-type","x-ms-copy-destination-snapshot","x-ms-creation-time","x-ms-default-encryption-scope","x-ms-delete-snapshots","x-ms-delete-type-permanent","x-ms-deny-encryption-scope-override","x-ms-encryption-algorithm","x-ms-if-sequence-number-eq","x-ms-if-sequence-number-le","x-ms-if-sequence-number-lt","x-ms-incremental-copy","x-ms-lease-action","x-ms-lease-break-period","x-ms-lease-duration","x-ms-lease-id","x-ms-lease-time","x-ms-page-write","x-ms-proposed-lease-id","x-ms-range-get-content-md5","x-ms-rehydrate-priority","x-ms-sequence-number-action","x-ms-sku-name","x-ms-source-content-md5","x-ms-source-if-match","x-ms-source-if-modified-since","x-ms-source-if-none-match","x-ms-source-if-unmodified-since","x-ms-tag-count","x-ms-encryption-key-sha256","x-ms-copy-source-error-code","x-ms-copy-source-status-code","x-ms-if-tags","x-ms-source-if-tags"],BIe=["comp","maxresults","rscc","rscd","rsce","rscl","rsct","se","si","sip","sp","spr","sr","srt","ss","st","sv","include","marker","prefix","copyid","restype","blockid","blocklisttype","delimiter","prevsnapshot","ske","skoid","sks","skt","sktid","skv","snapshot"],QIe="BlobUsesCustomerSpecifiedEncryption",bIe="BlobDoesNotUseCustomerSpecifiedEncryption",NIe=["10000","10001","10002","10003","10004","10100","10101","10102","10103","10104","11000","11001","11002","11003","11004","11100","11101","11102","11103","11104"];function wIe(t){let e=new URL(t),r=e.pathname;return r=r||"/",r=SIe(r),e.pathname=r,e.toString()}function xIe(t){let e="";if(t.search("DevelopmentStorageProxyUri=")!==-1){let r=t.split(";");for(let n of r)n.trim().startsWith("DevelopmentStorageProxyUri=")&&(e=n.trim().match("DevelopmentStorageProxyUri=(.*)")[1])}return e}function gA(t,e){let r=t.split(";");for(let n of r)if(n.trim().startsWith(e))return n.trim().match(e+"=(.*)")[1];return""}function Au(t){let e="";t.startsWith("UseDevelopmentStorage=true")&&(e=xIe(t),t=CIe);let r=gA(t,"BlobEndpoint");if(r=r.endsWith("/")?r.slice(0,-1):r,t.search("DefaultEndpointsProtocol=")!==-1&&t.search("AccountKey=")!==-1){let n="",i="",s=Buffer.from("accountKey","base64"),o="";if(i=gA(t,"AccountName"),s=Buffer.from(gA(t,"AccountKey"),"base64"),!r){n=gA(t,"DefaultEndpointsProtocol");let a=n.toLowerCase();if(a!=="https"&&a!=="http")throw new Error("Invalid DefaultEndpointsProtocol in the provided Connection String. Expecting 'https' or 'http'");if(o=gA(t,"EndpointSuffix"),!o)throw new Error("Invalid EndpointSuffix in the provided Connection String");r=`${n}://${i}.blob.${o}`}if(i){if(s.length===0)throw new Error("
`}),n}getCanonicalizedResourceString(e){let r=uC(e.url)||"/",n="";n+=`/${this.factory.accountName}${r}`;let i=VG(e.url),s={};if(i){let o=[];for(let a in i)if(Object.prototype.hasOwnProperty.call(i,a)){let A=a.toLowerCase();s[A]=i[a],o.push(A)}o.sort();for(let a of o)n+=`
${a}:${decodeURIComponent(s[a])}`}return n}},bh=class{create(e,r){throw new Error("Method should be implemented in children classes.")}},dt=class extends bh{constructor(e,r){super(),this.accountName=e,this.accountKey=Buffer.from(r,"base64")}create(e,r){return new eC(e,r,this)}computeHMACSHA256(e){return dR.createHmac("sha256",this.accountKey).update(e,"utf8").digest("base64")}},tC=class extends Qh{constructor(e,r){super(e,r)}},ht=class extends bh{create(e,r){return new tC(e,r)}},PS;function qIe(){return PS||(PS=zr.createDefaultHttpClient()),PS}var HIe="storageBrowserPolicy";function jIe(){return{name:HIe,async sendRequest(t,e){return at.isNode||((t.method==="GET"||t.method==="HEAD")&&(t.url=ro(t.url,zi.Parameters.FORCE_BROWSER_NO_CACHE,new Date().getTime().toString())),t.headers.delete(Be.COOKIE),t.headers.delete(Be.CONTENT_LENGTH)),e(t)}}}var zIe="storageRetryPolicy",Nh;(function(t){t[t.EXPONENTIAL=0]="EXPONENTIAL",t[t.FIXED=1]="FIXED"})(Nh||(Nh={}));var Zl={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:Nh.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},GIe=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"],YIe=new cC.AbortError("The operation was aborted.");function JIe(t={}){var e,r,n,i,s,o;let a=(e=t.retryPolicyType)!==null&&e!==void 0?e:Zl.retryPolicyType,A=(r=t.maxTries)!==null&&r!==void 0?r:Zl.maxTries,c=(n=t.retryDelayInMs)!==null&&n!==void 0?n:Zl.retryDelayInMs,l=(i=t.maxRetryDelayInMs)!==null&&i!==void 0?i:Zl.maxRetryDelayInMs,u=(s=t.secondaryHost)!==null&&s!==void 0?s:Zl.secondaryHost,d=(o=t.tryTimeoutInMs)!==null&&o!==void 0?o:Zl.tryTimeoutInMs;function f({isPrimaryRetry:m,attempt:E,response:C,error:I}){var b,w;if(E>=A)return rr.info(`RetryPolicy: Attempt(s) ${E} >= maxTries ${A}, no further try.`),!1;if(I){for(let v of GIe)if(I.name.toUpperCase().includes(v)||I.message.toUpperCase().includes(v)||I.code&&I.code.toString().toUpperCase()===v)return rr.info(`RetryPolicy: Network error ${v} found, will retry.`),!0;if(I?.code==="PARSE_ERROR"&&I?.message.startsWith('Error"Error: Unclosed root tag'))return rr.info("RetryPolicy:IncompleteXMLresponselikelyduetoservicetimeout,willretry."),!0}if(C||I){let v=(w=(b=C?.status)!==null&&b!==void 0?b:I?.statusCode)!==null&&w!==void 0?w:0;if(!m&&v===404)return rr.info("RetryPolicy:Secondaryaccesswith404,willretry."),!0;if(v===503||v===500)return rr.info(`RetryPolicy: Will retry for status code ${v}.`),!0}return!1}function g(m,E){let C=0;if(m)switch(a){case Nh.EXPONENTIAL:C=Math.min((Math.pow(2,E-1)-1)*c,l);break;case Nh.FIXED:C=c;break}else C=Math.random()*1e3;return rr.info(`RetryPolicy: Delay for ${C}ms`),C}return{name:zIe,async sendRequest(m,E){d&&(m.url=ro(m.url,zi.Parameters.TIMEOUT,String(Math.floor(d/1e3))));let C=m.url,I=u?JG(m.url,u):void 0,b=!1,w=1,v=!0,T,U;for(;v;){let P=b||!I||!["GET","HEAD","OPTIONS"].includes(m.method)||w%2===1;m.url=P?C:I,T=void 0,U=void 0;try{rr.info(`RetryPolicy: =====> Try=${w} ${P?"Primary":"Secondary"}`),T=await E(m),b=b||!P&&T.status===404}catch(J){if(zr.isRestError(J))rr.error(`RetryPolicy: Caught error, message: ${J.message}, code: ${J.code}`),U=J;else throw rr.error(`RetryPolicy: Caught error, message: ${at.getErrorMessage(J)}`),J}v=f({isPrimaryRetry:P,attempt:w,response:T,error:U}),v&&await WG(g(P,w),m.abortSignal,YIe),w++}if(T)return T;throw U??new zr.RestError("RetryPolicyfailedwithoutknownerror.")}}}var VIe="storageSharedKeyCredentialPolicy";function ZG(t){function e(s){s.headers.set(Be.X_MS_DATE,new Date().toUTCString()),s.body&&(typeof s.body=="string"||Buffer.isBuffer(s.body))&&s.body.length>0&&s.headers.set(Be.CONTENT_LENGTH,Buffer.byteLength(s.body));let o=[s.method.toUpperCase(),r(s,Be.CONTENT_LANGUAGE),r(s,Be.CONTENT_ENCODING),r(s,Be.CONTENT_LENGTH),r(s,Be.CONTENT_MD5),r(s,Be.CONTENT_TYPE),r(s,Be.DATE),r(s,Be.IF_MODIFIED_SINCE),r(s,Be.IF_MATCH),r(s,Be.IF_NONE_MATCH),r(s,Be.IF_UNMODIFIED_SINCE),r(s,Be.RANGE)].join(`
`}),a}function i(s){let o=uC(s.url)||"/",a="";a+=`/${t.accountName}${o}`;let A=VG(s.url),c={};if(A){let l=[];for(let u in A)if(Object.prototype.hasOwnProperty.call(A,u)){let d=u.toLowerCase();c[d]=A[u],l.push(d)}l.sort();for(let u of l)a+=`
`),s=e.computeHMACSHA256(i);return{sasQueryParameters:new Cs(t.version,s,n,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType),stringToSign:i}}function Hbe(t,e){if(t=xu(t),!t.identifier&&!(t.permissions&&t.expiresOn))throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let i;t.permissions&&(t.blobName?i=no.parse(t.permissions.toString()).toString():i=io.parse(t.permissions.toString()).toString());let s=[i||"",t.startsOn?et(t.startsOn,!1):"",t.expiresOn?et(t.expiresOn,!1):"",wu(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?so(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.cacheControl?t.cacheControl:"",t.contentDisposition?t.contentDisposition:"",t.contentEncoding?t.contentEncoding:"",t.contentLanguage?t.contentLanguage:"",t.contentType?t.contentType:""].join(`
`),o=e.computeHMACSHA256(s);return{sasQueryParameters:new Cs(t.version,o,i,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType),stringToSign:s}}function jbe(t,e){if(t=xu(t),!t.identifier&&!(t.permissions&&t.expiresOn))throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let i;t.permissions&&(t.blobName?i=no.parse(t.permissions.toString()).toString():i=io.parse(t.permissions.toString()).toString());let s=[i||"",t.startsOn?et(t.startsOn,!1):"",t.expiresOn?et(t.expiresOn,!1):"",wu(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?so(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.encryptionScope,t.cacheControl?t.cacheControl:"",t.contentDisposition?t.contentDisposition:"",t.contentEncoding?t.contentEncoding:"",t.contentLanguage?t.contentLanguage:"",t.contentType?t.contentType:""].join(`
`),o=e.computeHMACSHA256(s);return{sasQueryParameters:new Cs(t.version,o,i,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,void 0,void 0,void 0,t.encryptionScope),stringToSign:s}}function zbe(t,e){if(t=xu(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let i;t.permissions&&(t.blobName?i=no.parse(t.permissions.toString()).toString():i=io.parse(t.permissions.toString()).toString());let s=[i||"",t.startsOn?et(t.startsOn,!1):"",t.expiresOn?et(t.expiresOn,!1):"",wu(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?et(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?et(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.ipRange?so(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),o=e.computeHMACSHA256(s);return{sasQueryParameters:new Cs(t.version,o,i,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey),stringToSign:s}}function Gbe(t,e){if(t=xu(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let i;t.permissions&&(t.blobName?i=no.parse(t.permissions.toString()).toString():i=io.parse(t.permissions.toString()).toString());let s=[i||"",t.startsOn?et(t.startsOn,!1):"",t.expiresOn?et(t.expiresOn,!1):"",wu(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?et(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?et(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?so(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),o=e.computeHMACSHA256(s);return{sasQueryParameters:new Cs(t.version,o,i,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId),stringToSign:s}}function Ybe(t,e){if(t=xu(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let i;t.permissions&&(t.blobName?i=no.parse(t.permissions.toString()).toString():i=io.parse(t.permissions.toString()).toString());let s=[i||"",t.startsOn?et(t.startsOn,!1):"",t.expiresOn?et(t.expiresOn,!1):"",wu(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?et(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?et(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?so(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),o=e.computeHMACSHA256(s);return{sasQueryParameters:new Cs(t.version,o,i,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId,t.encryptionScope),stringToSign:s}}function wu(t,e,r){let n=[`/blob/${t}/${e}`];return r&&n.push(`/${r}`),n.join("")}function xu(t){let e=t.version?t.version:gR;if(t.snapshotTime&&e<"2018-11-09")throw RangeError("'version' must be >= '2018-11-09' when providing 'snapshotTime'.");if(t.blobName===void 0&&t.snapshotTime)throw RangeError("Must provide 'blobName' when providing 'snapshotTime'.");if(t.versionId&&e<"2019-10-10")throw RangeError("'version' must be >= '2019-10-10' when providing 'versionId'.");if(t.blobName===void 0&&t.versionId)throw RangeError("Must provide 'blobName' when providing 'versionId'.");if(t.permissions&&t.permissions.setImmutabilityPolicy&&e<"2020-08-04")throw RangeError("'version' must be >= '2020-08-04' when provided 'i' permission.");if(t.permissions&&t.permissions.deleteVersion&&e<"2019-10-10")throw RangeError("'version' must be >= '2019-10-10' when providing 'x' permission.");if(t.permissions&&t.permissions.permanentDelete&&e<"2019-10-10")throw RangeError("'version' must be >= '2019-10-10' when providing 'y' permission.");if(t.permissions&&t.permissions.tag&&e<"2019-12-12")throw RangeError("'version' must be >= '2019-12-12' when providing 't' permission.");if(e<"2020-02-10"&&t.permissions&&(t.permissions.move||t.permissions.execute))throw RangeError("'version' must be >= '2020-02-10' when providing the 'm' or 'e' permission.");if(e<"2021-04-10"&&t.permissions&&t.permissions.filterByTags)throw RangeError("'version' must be >= '2021-04-10' when providing the 'f' permission.");if(e<"2020-02-10"&&(t.preauthorizedAgentObjectId||t.correlationId))throw RangeError("'version' must be >= '2020-02-10' when providing 'preauthorizedAgentObjectId' or 'correlationId'.");if(t.encryptionScope&&e<"2020-12-06")throw RangeError("'version' must be >= '2020-12-06' when provided 'encryptionScope' in SAS.");return t.version=e,t}var vh=class{get leaseId(){return this._leaseId}get url(){return this._url}constructor(e,r){let n=e.storageClientContext;this._url=e.url,e.name===void 0?(this._isContainer=!0,this._containerOrBlobOperation=n.container):(this._isContainer=!1,this._containerOrBlobOperation=n.blob),r||(r=at.randomUUID()),this._leaseId=r}async acquireLease(e,r={}){var n,i,s,o,a;if(this._isContainer&&(!((n=r.conditions)===null||n===void 0)&&n.ifMatch&&((i=r.conditions)===null||i===void 0?void 0:i.ifMatch)!==Es||!((s=r.conditions)===null||s===void 0)&&s.ifNoneMatch&&((o=r.conditions)===null||o===void 0?void 0:o.ifNoneMatch)!==Es||!((a=r.conditions)===null||a===void 0)&&a.tagConditions))throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.");return F.withSpan("BlobLeaseClient-acquireLease",r,async A=>{var c;return V(await this._containerOrBlobOperation.acquireLease({abortSignal:r.abortSignal,duration:e,modifiedAccessConditions:Object.assign(Object.assign({},r.conditions),{ifTags:(c=r.conditions)===null||c===void 0?void 0:c.tagConditions}),proposedLeaseId:this._leaseId,tracingOptions:A.tracingOptions}))})}async changeLease(e,r={}){var n,i,s,o,a;if(this._isContainer&&(!((n=r.conditions)===null||n===void 0)&&n.ifMatch&&((i=r.conditions)===null||i===void 0?void 0:i.ifMatch)!==Es||!((s=r.conditions)===null||s===void 0)&&s.ifNoneMatch&&((o=r.conditions)===null||o===void 0?void 0:o.ifNoneMatch)!==Es||!((a=r.conditions)===null||a===void 0)&&a.tagConditions))throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.");return F.withSpan("BlobLeaseClient-changeLease",r,async A=>{var c;let l=V(await this._containerOrBlobOperation.changeLease(this._leaseId,e,{abortSignal:r.abortSignal,modifiedAccessConditi
`);leta=e.computeHMACSHA256(o);return{sasQueryParameters:newCs(r,a,n.toString(),i,s,t.protocol,t.startsOn,t.expiresOn,t.ipRange,void0,void0,void0,void0,void0,void0,void0,void0,void0,void0,t.encryptionScope),stringToSign:o}}varuR=classtextendsxh{staticfromConnectionString(e,r){r=r||{};letn=Au(e);if(n.kind==="AccountConnString")if(at.isNode){leti=newdt(n.accountName,n.accountKey);r.proxyOptions||(r.proxyOptions=zr.getDefaultProxySettings(n.proxyUri));lets=ft(i,r);returnnewt(n.url,s)}elsethrownewError("Account connection string is only supported in Node.js environment");elseif(n.kind==="SASConnString"){leti=ft(newht,r);returnnewt(n.url+"?"+n.accountSas,i)}elsethrownewError("Connection string must be either an Account connection string or a SAS connection string")}constructor(e,r,n){leti;ta(r)?i=r:at.isNode&&rinstanceofdt||rinstanceofht||mi.isTokenCredential(r)?i=ft(r,n):i=ft(newht,n),super(e,i),this.serviceContext=this.storageClientContext.service}getContainerClient(e){returnnewoC(kt(this.url,encodeURIComponent(e)),this.pipeline)}asynccreateContainer(e,r={}){returnF.withSpan("BlobServiceClient-createContainer",r,asyncn=>{leti=this.getContainerClient(e),s=awaiti.create(n);return{containerClient:i,containerCreateResponse:s}})}asyncdeleteContainer(e,r={}){returnF.withSpan("BlobServiceClient-deleteContainer",r,asyncn=>this.getContainerClient(e).delete(n))}asyncundeleteContainer(e,r,n={}){returnF.withSpan("BlobServiceClient-undeleteContainer",n,asynci=>{lets=this.getContainerClient(n.destinationContainerName||e),o=s.storageClientContext.container,a=V(awaito.restore({deletedContainerName:e,deletedContainerVersion:r,tracingOptions:i.tracingOptions}));return{containerClient:s,containerUndeleteResponse:a}})}asyncrenameContainer(e,r,n={}){returnF.withSpan("BlobServiceClient-renameContainer",n,asynci=>{vars;leto=this.getContainerClient(r),a=o.storageClientContext.container,A=V(awaita.rename(e,Object.assign(Object.assign({},i),{sourceLeaseId:(s=n.sourceCondition)===null||s===void0?void0:s.leaseId})));return{containerClient:o,containerRenameResponse:A}})}asyncgetProperties(e={}){returnF.withSpan("BlobServiceClient-getProperties",e,asyncr=>V(awaitthis.serviceContext.getProperties({abortSignal:e.abortSignal,tracingOptions:r.tracingOptions})))}asyncsetProperties(e,r={}){returnF.withSpan("BlobServiceClient-setProperties",r,asyncn=>V(awaitthis.serviceContext.setProperties(e,{abortSignal:r.abortSignal,tracingOptions:n.tracingOptions})))}asyncgetStatistics(e={}){returnF.withSpan("BlobServiceClient-getStatistics",e,asyncr=>V(awaitthis.serviceContext.getStatistics({abortSignal:e.abortSignal,tracingOptions:r.tracingOptions})))}asyncgetAccountInfo(e={}){returnF.withSpan("BlobServiceClient-getAccountInfo",e,asyncr=>V(awaitthis.serviceContext.getAccountInfo({abortSignal:e.abortSignal,tracingOptions:r.tracingOptions})))}asynclistContainersSegment(e,r={}){returnF.withSpan("BlobServiceClient-listContainersSegment",r,asyncn=>V(awaitthis.serviceContext.listContainersSegment(Object.assign(Object.assign({abortSignal:r.abortSignal,marker:e},r),{include:typeofr.include=="string"?[r.include]:r.include,tracingOptions:n.tracingOptions}))))}asyncfindBlobsByTagsSegment(e,r,n={}){returnF.withSpan("BlobServiceClient-findBlobsByTagsSegment",n,asynci=>{lets=V(awaitthis.serviceContext.filterBlobs({abortSignal:n.abortSignal,where:e,marker:r,maxPageSize:n.maxPageSize,tracingOptions:i.tracingOptions}));returnObject.assign(Object.assign({},s),{_response:s._response,blobs:s.blobs.map(a=>{varA;letc="";return((A=a.tags)===null||A===void0?void0:A.blobTagSet.length)===1&&(c=a.tags.blobTagSet[0].value),Object.assign(Object.assign({},a),{tags:ph(a.tags),tagValue:c})})})})}findBlobsByTagsSegments(e,r){returnq.__asyncGenerator(this,arguments,function*(i,s,o={}){leta;if(s||s===void0)doa=yieldq.__await(this.findBlobsByTagsSegment(i,s,o)),a.blobs=a.blobs||[],s=a.continuationToken,yieldyieldq.__await(a);while(s)})}findBlobsByTagsItems(e){returnq.__asyncGenerator(this,arguments,functi
Ifyouareusingself-hostedrunners,pleasemakesureyourrunnerhasaccesstoallGitHubendpoints:https://docs.github.com/en/actions/hosting-your-own-runners/managing-self-hosted-runners/about-self-hosted-runners#communication-between-self-hosted-runners-and-github`;super(r),this.code=e,this.name="NetworkError"}};Qn.NetworkError=yC;yC.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var EC=class extends Error{constructor(){super(`Cache storage quota has been hit. Unable to upload any new cache entries. Usage is recalculated every 6-12 hours.
Moreinfoonstoragelimits:https://docs.github.com/en/billing/managing-billing-for-github-actions/about-billing-for-github-actions#calculating-minute-and-storage-spending`),this.name="UsageError"}};Qn.UsageError=EC;EC.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1});var BW=h(bn=>{"use strict";var A0e=bn&&bn.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,i)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),c0e=bn&&bn.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),l0e=bn&&bn.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&A0e(e,t,r);return c0e(e,t),e},u0e=bn&&bn.__awaiter||function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(o){o(s)})}return new(r||(r=Promise))(function(s,o){function a(l){try{c(n.next(l))}catch(u){o(u)}}function A(l){try{c(n.throw(l))}catch(u){o(u)}}function c(l){l.done?s(l.value):i(l.value).then(a,A)}c((n=n.apply(t,e||[])).next())})};Object.defineProperty(bn,"__esModule",{value:!0});bn.uploadCacheArchiveSDK=bn.UploadProgress=void 0;var MR=l0e(ct()),d0e=_R(),f0e=LR(),CC=class{constructor(e){this.contentLength=e,this.sentBytes=0,this.displayedComplete=!1,this.startTime=Date.now()}setSentBytes(e){this.sentBytes=e}getTransferredBytes(){return this.sentBytes}isDone(){return this.getTransferredBytes()===this.contentLength}display(){if(this.displayedComplete)return;let e=this.sentBytes,r=(100*(e/this.contentLength)).toFixed(1),n=Date.now()-this.startTime,i=(e/(1024*1024)/(n/1e3)).toFixed(1);MR.info(`Sent ${e} of ${this.contentLength} (${r}%), ${i} MBs/sec`),this.isDone()&&(this.displayedComplete=!0)}onProgress(){return e=>{this.setSentBytes(e.loadedBytes)}}startDisplayTimer(e=1e3){let r=()=>{this.display(),this.isDone()||(this.timeoutHandle=setTimeout(r,e))};this.timeoutHandle=setTimeout(r,e)}stopDisplayTimer(){this.timeoutHandle&&(clearTimeout(this.timeoutHandle),this.timeoutHandle=void 0),this.display()}};bn.UploadProgress=CC;function h0e(t,e,r){var n;return u0e(this,void 0,void 0,function*(){let i=new d0e.BlobClient(t),s=i.getBlockBlobClient(),o=new CC((n=r?.archiveSizeBytes)!==null&&n!==void 0?n:0),a={blockSize:r?.uploadChunkSize,concurrency:r?.uploadConcurrency,maxSingleShotSize:128*1024*1024,onProgress:o.onProgress()};try{o.startDisplayTimer(),MR.debug(`BlobClient: ${i.name}:${i.accountName}:${i.containerName}`);let A=yield s.uploadFile(e,a);if(A._response.status>=400)throw new f0e.InvalidResponseError(`uploadCacheArchiveSDK: upload failed with status code ${A._response.status}`);return A}catch(A){throw MR.warning(`uploadCacheArchiveSDK: internal error uploading cache archive: ${A.message}`),A}finally{o.stopDisplayTimer()}})}bn.uploadCacheArchiveSDK=h0e});var UR=h(qt=>{"use strict";var g0e=qt&&qt.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,i)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),m0e=qt&&qt.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),p0e=qt&&qt.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&g0e(e,t,r);return m0e(e,t),e},BC=qt&&qt.__awaiter||function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(o){o(s)})}return new(r||(r=Promise))(function(s,o){function a(l){try{c(n.next(l))}catch(u){o(u)}}function A(l){try{c(n.throw(l))}catch(u){o(u)}}function c(l){l.done?s(l.value):i(l.value).then(a,A)}c((n=n.apply(t,e||[])).next())})};Object.defineProperty(qt,"__esModule",{value:!0}
Othercacheswithsimilarkey:`);for(let a of s?.artifactCaches||[])Vn.debug(`CacheKey:${a?.cacheKey},CacheVersion:${a?.cacheVersion},CacheScope:${a?.scope},CacheCreated:${a?.creationTime}`)}}})}function rNe(t,e,r){return Nn(this,void 0,void 0,function*(){let n=new V0e.URL(t),i=(0,JR.getDownloadOptions)(r);n.hostname.endsWith(".blob.core.windows.net")?i.useAzureSdk?yield(0,wC.downloadCacheStorageSDK)(t,e,i):i.concurrentBlobDownloads?yield(0,wC.downloadCacheHttpClientConcurrent)(t,e,i):yield(0,wC.downloadCacheHttpClient)(t,e):yield(0,wC.downloadCacheHttpClient)(t,e)})}br.downloadCache=rNe;function nNe(t,e,r){return Nn(this,void 0,void 0,function*(){let n=VR(),i=Du.getCacheVersion(e,r?.compressionMethod,r?.enableCrossOsArchive),s={key:t,version:i,cacheSize:r?.cacheSize};return yield(0,aa.retryTypedResponse)("reserveCache",()=>Nn(this,void 0,void 0,function*(){return n.postJson(jh("caches"),s)}))})}br.reserveCache=nNe;function LW(t,e){return`bytes${t}-${e}/*`}function iNe(t,e,r,n,i){return Nn(this,void 0,void 0,function*(){Vn.debug(`Uploading chunk of size ${i-n+1} bytes at offset ${n} with content range: ${LW(n,i)}`);let s={"Content-Type":"application/octet-stream","Content-Range":LW(n,i)},o=yield(0,aa.retryHttpClientResponse)(`uploadChunk (start: ${n}, end: ${i})`,()=>Nn(this,void 0,void 0,function*(){return t.sendStream("PATCH",e,r(),s)}));if(!(0,aa.isSuccessStatusCode)(o.message.statusCode))throw new Error(`Cache service responded with ${o.message.statusCode} during upload chunk.`)})}function sNe(t,e,r,n){return Nn(this,void 0,void 0,function*(){let i=Du.getArchiveFileSizeInBytes(r),s=jh(`caches/${e.toString()}`),o=GR.openSync(r,"r"),a=(0,JR.getUploadOptions)(n),A=Du.assertDefined("uploadConcurrency",a.uploadConcurrency),c=Du.assertDefined("uploadChunkSize",a.uploadChunkSize),l=[...new Array(A).keys()];Vn.debug("Awaiting all uploads");let u=0;try{yield Promise.all(l.map(()=>Nn(this,void 0,void 0,function*(){for(;u<i;){let d=Math.min(i-u,c),f=u,g=u+d-1;u+=c,yield iNe(t,s,()=>GR.createReadStream(r,{fd:o,start:f,end:g,autoClose:!1}).on("error",m=>{throw new Error(`Cache upload failed because file read failed with ${m.message}`)}),f,g)}})))}finally{GR.closeSync(o)}})}function oNe(t,e,r){return Nn(this,void 0,void 0,function*(){let n={size:r};return yield(0,aa.retryTypedResponse)("commitCache",()=>Nn(this,void 0,void 0,function*(){return t.postJson(jh(`caches/${e.toString()}`),n)}))})}function aNe(t,e,r,n){return Nn(this,void 0,void 0,function*(){if((0,JR.getUploadOptions)(n).useAzureSdk){if(!r)throw new Error("Azure Storage SDK can only be used when a signed URL is provided.");yield(0,W0e.uploadCacheArchiveSDK)(r,e,n)}else{let s=VR();Vn.debug("Upload cache"),yield sNe(s,t,e,n),Vn.debug("Commiting cache");let o=Du.getArchiveFileSizeInBytes(e);Vn.info(`Cache Size: ~${Math.round(o/(1024*1024))} MB (${o} B)`);let a=yield oNe(s,t,o);if(!(0,aa.isSuccessStatusCode)(a.statusCode))throw new Error(`Cache service responded with ${a.statusCode} during commit cache.`);Vn.info("Cache saved successfully")}})}br.saveCache=aNe});var xC=h(_u=>{"use strict";Object.defineProperty(_u,"__esModule",{value:!0});_u.isJsonObject=_u.typeofJsonValue=void 0;function ANe(t){let e=typeof t;if(e=="object"){if(Array.isArray(t))return"array";if(t===null)return"null"}return e}_u.typeofJsonValue=ANe;function cNe(t){return t!==null&&typeof t=="object"&&!Array.isArray(t)}_u.isJsonObject=cNe});var RC=h(Pu=>{"use strict";Object.defineProperty(Pu,"__esModule",{value:!0});Pu.base64encode=Pu.base64decode=void 0;var co="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),SC=[];for(let t=0;t<co.length;t++)SC[co[t].charCodeAt(0)]=t;SC[45]=co.indexOf("+");SC[95]=co.indexOf("/");function lNe(t){let e=t.length*3/4;t[t.length-2]=="="?e-=2:t[t.length-1]=="="&&(e-=1);let r=new Uint8Array(e),n=0,i=0,s,o=0;for(let a=0;a<t.length;a++){if(s=SC[t.charCodeAt(a)],s===void 0)switch(t[a]){case"=":i=0;case`
`)}};sI.RpcError=Bv});var bv=h(aI=>{"use strict";Object.defineProperty(aI,"__esModule",{value:!0});aI.mergeRpcOptions=void 0;var y$=Kt();function jwe(t,e){if(!e)return t;let r={};oI(t,r),oI(e,r);for(let n of Object.keys(e)){let i=e[n];switch(n){case"jsonOptions":r.jsonOptions=y$.mergeJsonOptions(t.jsonOptions,r.jsonOptions);break;case"binaryOptions":r.binaryOptions=y$.mergeBinaryOptions(t.binaryOptions,r.binaryOptions);break;case"meta":r.meta={},oI(t.meta,r.meta),oI(e.meta,r.meta);break;case"interceptors":r.interceptors=t.interceptors?t.interceptors.concat(i):i.concat();break}}return r}aI.mergeRpcOptions=jwe;function oI(t,e){if(!t)return;let r=e;for(let[n,i]of Object.entries(t))i instanceof Date?r[n]=new Date(i.getTime()):Array.isArray(i)?r[n]=i.concat():r[n]=i}});var wv=h(wA=>{"use strict";Object.defineProperty(wA,"__esModule",{value:!0});wA.Deferred=wA.DeferredState=void 0;var Ns;(function(t){t[t.PENDING=0]="PENDING",t[t.REJECTED=1]="REJECTED",t[t.RESOLVED=2]="RESOLVED"})(Ns=wA.DeferredState||(wA.DeferredState={}));var Nv=class{constructor(e=!0){this._state=Ns.PENDING,this._promise=new Promise((r,n)=>{this._resolve=r,this._reject=n}),e&&this._promise.catch(r=>{})}get state(){return this._state}get promise(){return this._promise}resolve(e){if(this.state!==Ns.PENDING)throw new Error(`cannot resolve ${Ns[this.state].toLowerCase()}`);this._resolve(e),this._state=Ns.RESOLVED}reject(e){if(this.state!==Ns.PENDING)throw new Error(`cannot reject ${Ns[this.state].toLowerCase()}`);this._reject(e),this._state=Ns.REJECTED}resolvePending(e){this._state===Ns.PENDING&&this.resolve(e)}rejectPending(e){this._state===Ns.PENDING&&this.reject(e)}};wA.Deferred=Nv});var Sv=h(AI=>{"use strict";Object.defineProperty(AI,"__esModule",{value:!0});AI.RpcOutputStreamController=void 0;var E$=wv(),xA=Kt(),xv=class{constructor(){this._lis={nxt:[],msg:[],err:[],cmp:[]},this._closed=!1,this._itState={q:[]}}onNext(e){return this.addLis(e,this._lis.nxt)}onMessage(e){return this.addLis(e,this._lis.msg)}onError(e){return this.addLis(e,this._lis.err)}onComplete(e){return this.addLis(e,this._lis.cmp)}addLis(e,r){return r.push(e),()=>{let n=r.indexOf(e);n>=0&&r.splice(n,1)}}clearLis(){for(let e of Object.values(this._lis))e.splice(0,e.length)}get closed(){return this._closed!==!1}notifyNext(e,r,n){xA.assert((e?1:0)+(r?1:0)+(n?1:0)<=1,"only one emission at a time"),e&&this.notifyMessage(e),r&&this.notifyError(r),n&&this.notifyComplete()}notifyMessage(e){xA.assert(!this.closed,"stream is closed"),this.pushIt({value:e,done:!1}),this._lis.msg.forEach(r=>r(e)),this._lis.nxt.forEach(r=>r(e,void 0,!1))}notifyError(e){xA.assert(!this.closed,"stream is closed"),this._closed=e,this.pushIt(e),this._lis.err.forEach(r=>r(e)),this._lis.nxt.forEach(r=>r(void 0,e,!1)),this.clearLis()}notifyComplete(){xA.assert(!this.closed,"stream is closed"),this._closed=!0,this.pushIt({value:null,done:!0}),this._lis.cmp.forEach(e=>e()),this._lis.nxt.forEach(e=>e(void 0,void 0,!0)),this.clearLis()}[Symbol.asyncIterator](){return this._closed===!0?this.pushIt({value:null,done:!0}):this._closed!==!1&&this.pushIt(this._closed),{next:()=>{let e=this._itState;xA.assert(e,"bad state"),xA.assert(!e.p,"iterator contract broken");let r=e.q.shift();return r?"value"in r?Promise.resolve(r):Promise.reject(r):(e.p=new E$.Deferred,e.p.promise)}}}pushIt(e){let r=this._itState;if(r.p){let n=r.p;xA.assert(n.state==E$.DeferredState.PENDING,"iterator contract broken"),"value"in e?n.resolve(e):n.reject(e),delete r.p}else r.q.push(e)}};AI.RpcOutputStreamController=xv});var vv=h(Uu=>{"use strict";var zwe=Uu&&Uu.__awaiter||function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(o){o(s)})}return new(r||(r=Promise))(function(s,o){function a(l){try{c(n.next(l))}catch(u){o(u)}}function A(l){try{c(n.throw(l))}catch(u){o(u)}}function c(l){l.done?s(l.value):i(l.value).then(a,A)}c((n=n.apply(t,e||[])).next())})};Object.defineProperty(Uu,"__esModule",{value:!0});Uu.UnaryCall=void 0;var Rv=class{constructor(e,r,n,i,s,o,a){this.method=e,this.requestHeaders=r,this.request=n,this.headers=i,this.response=s,this.s
`));let n=yield eD(r,"create");yield tD(n,t)})}Yr.createTar=Fxe});var EI=h(Gt=>{"use strict";var Uxe=Gt&&Gt.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,i)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),qxe=Gt&&Gt.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),og=Gt&&Gt.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&Uxe(e,t,r);return qxe(e,t),e},rd=Gt&&Gt.__awaiter||function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(o){o(s)})}return new(r||(r=Promise))(function(s,o){function a(l){try{c(n.next(l))}catch(u){o(u)}}function A(l){try{c(n.throw(l))}catch(u){o(u)}}function c(l){l.done?s(l.value):i(l.value).then(a,A)}c((n=n.apply(t,e||[])).next())})};Object.defineProperty(Gt,"__esModule",{value:!0});Gt.saveCache=Gt.restoreCache=Gt.isFeatureAvailable=Gt.FinalizeCacheError=Gt.ReserveCacheError=Gt.ValidationError=void 0;var ge=og(ct()),mI=og(require("path")),Dt=og(nl()),td=og(MW()),F$=og(T$()),pI=bC(),da=M$(),yI=Xa(),Ni=class t extends Error{constructor(e){super(e),this.name="ValidationError",Object.setPrototypeOf(this,t.prototype)}};Gt.ValidationError=Ni;var SA=class t extends Error{constructor(e){super(e),this.name="ReserveCacheError",Object.setPrototypeOf(this,t.prototype)}};Gt.ReserveCacheError=SA;var sg=class t extends Error{constructor(e){super(e),this.name="FinalizeCacheError",Object.setPrototypeOf(this,t.prototype)}};Gt.FinalizeCacheError=sg;function U$(t){if(!t||t.length===0)throw new Ni("Path Validation Error: At least one directory or file path is required")}function rD(t){if(t.length>512)throw new Ni(`Key Validation Error: ${t} cannot be larger than 512 characters.`);if(!/^[^,]*$/.test(t))throw new Ni(`Key Validation Error: ${t} cannot contain commas.`)}function Hxe(){return(0,pI.getCacheServiceVersion)()==="v2"?!!process.env.ACTIONS_RESULTS_URL:!!process.env.ACTIONS_CACHE_URL}Gt.isFeatureAvailable=Hxe;function jxe(t,e,r,n,i=!1){return rd(this,void 0,void 0,function*(){let s=(0,pI.getCacheServiceVersion)();return ge.debug(`Cache service version: ${s}`),U$(t),s==="v2"?yield Gxe(t,e,r,n,i):yield zxe(t,e,r,n,i)})}Gt.restoreCache=jxe;function zxe(t,e,r,n,i=!1){return rd(this,void 0,void 0,function*(){r=r||[];let s=[e,...r];if(ge.debug("Resolved Keys:"),ge.debug(JSON.stringify(s)),s.length>10)throw new Ni("Key Validation Error: Keys are limited to a maximum of 10.");for(let A of s)rD(A);let o=yield Dt.getCompressionMethod(),a="";try{let A=yield td.getCacheEntry(s,t,{compressionMethod:o,enableCrossOsArchive:i});if(!A?.archiveLocation)return;if(n?.lookupOnly)return ge.info("Lookup only - skipping download"),A.cacheKey;a=mI.join(yield Dt.createTempDirectory(),Dt.getCacheFileName(o)),ge.debug(`Archive Path: ${a}`),yield td.downloadCache(A.archiveLocation,a,n),ge.isDebug()&&(yield(0,da.listTar)(a,o));let c=Dt.getArchiveFileSizeInBytes(a);return ge.info(`Cache Size: ~${Math.round(c/(1024*1024))} MB (${c} B)`),yield(0,da.extractTar)(a,o),ge.info("Cache restored successfully"),A.cacheKey}catch(A){let c=A;if(c.name===Ni.name)throw A;c instanceof yI.HttpClientError&&typeof c.statusCode=="number"&&c.statusCode>=500?ge.error(`Failed to restore: ${A.message}`):ge.warning(`Failed to restore: ${A.message}`)}finally{try{yield Dt.unlinkFile(a)}catch(A){ge.debug(`Failed to delete archive: ${A}`)}}})}function Gxe(t,e,r,n,i=!1){return rd(this,void 0,void 0,function*(){n=Object.assign(Object.assign({},n),{useAzureSdk:!0}),r=r||[];let s=[e,...r];if(ge.debug("Resolved Keys:"),ge.debug(JSON.stringify(s)),s.length>10)throw new Ni("Key Validation Error: Keys are limited to a maximum of 10.");for(let a of s)rD(a);let o="";try{let a=F$.internalCacheTwirpClient(),A=yield Dt.getCompressionMethod(),c={key:e,restoreKeys:r,version:Dt.getCacheVers
`).map(s=>s.trim());for(let s of i)!s||s.startsWith("#")||n.patterns.push(new Z$.Pattern(s));return n.searchPaths.push(...wI.getSearchPaths(n.patterns)),n})}static stat(e,r,n){return lD(this,void 0,void 0,function*(){let i;if(r.followSymbolicLinks)try{i=yield dg.promises.stat(e.path)}catch(s){if(s.code==="ENOENT"){if(r.omitBrokenSymbolicLinks){uD.debug(`Broken symlink '${e.path}'`);return}throw new Error(`No information found for the path '${e.path}'. This may indicate a broken symbolic link.`)}throw s}else i=yield dg.promises.lstat(e.path);if(i.isDirectory()&&r.followSymbolicLinks){let s=yield dg.promises.realpath(e.path);for(;n.length>=e.level;)n.pop();if(n.some(o=>o===s)){uD.debug(`Symlink cycle detected for path '${e.path}' and realpath '${s}'`);return}n.push(s)}return i})}};wr.DefaultGlobber=dD});var s4=h(vn=>{"use strict";var xSe=vn&&vn.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,i)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),SSe=vn&&vn.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),nd=vn&&vn.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&xSe(e,t,r);return SSe(e,t),e},RSe=vn&&vn.__awaiter||function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(o){o(s)})}return new(r||(r=Promise))(function(s,o){function a(l){try{c(n.next(l))}catch(u){o(u)}}function A(l){try{c(n.throw(l))}catch(u){o(u)}}function c(l){l.done?s(l.value):i(l.value).then(a,A)}c((n=n.apply(t,e||[])).next())})},vSe=vn&&vn.__asyncValues||function(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],r;return e?e.call(t):(t=typeof __values=="function"?__values(t):t[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(s){r[s]=t[s]&&function(o){return new Promise(function(a,A){o=t[s](o),i(a,A,o.done,o.value)})}}function i(s,o,a,A){Promise.resolve(A).then(function(c){s({value:c,done:a})},o)}};Object.defineProperty(vn,"__esModule",{value:!0});vn.hashFiles=void 0;var r4=nd(require("crypto")),n4=nd(ct()),i4=nd(require("fs")),DSe=nd(require("stream")),_Se=nd(require("util")),PSe=nd(require("path"));function kSe(t,e,r=!1){var n,i,s,o,a;return RSe(this,void 0,void 0,function*(){let A=r?n4.info:n4.debug,c=!1,l=e||((a=process.env.GITHUB_WORKSPACE)!==null&&a!==void 0?a:process.cwd()),u=r4.createHash("sha256"),d=0;try{for(var f=!0,g=vSe(t.globGenerator()),m;m=yield g.next(),n=m.done,!n;f=!0){o=m.value,f=!1;let E=o;if(A(E),!E.startsWith(`${l}${PSe.sep}`)){A(`Ignore '${E}' since it is not under GITHUB_WORKSPACE.`);continue}if(i4.statSync(E).isDirectory()){A(`Skip directory '${E}'.`);continue}let C=r4.createHash("sha256");yield _Se.promisify(DSe.pipeline)(i4.createReadStream(E),C),u.write(C.digest()),d++,c||(c=!0)}}catch(E){i={error:E}}finally{try{!f&&!n&&(s=g.return)&&(yield s.call(g))}finally{if(i)throw i.error}}return u.end(),c?(A(`Found ${d} files to hash.`),u.digest("hex")):(A("No matches found for glob"),"")})}vn.hashFiles=kSe});var A4=h(ma=>{"use strict";var o4=ma&&ma.__awaiter||function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(o){o(s)})}return new(r||(r=Promise))(function(s,o){function a(l){try{c(n.next(l))}catch(u){o(u)}}function A(l){try{c(n.throw(l))}catch(u){o(u)}}function c(l){l.done?s(l.value):i(l.value).then(a,A)}c((n=n.apply(t,e||[])).next())})};Object.defineProperty(ma,"__esModule",{value:!0});ma.hashFiles=ma.create=void 0;var TSe=t4(),OSe=s4();function a4(t,e){return o4(this,void 0,void 0,function*(){return yield TSe.DefaultGlobber.create(t,e)})}ma.create=a4;function LSe(t,e="",r,n=!1){return o4(this,void 0,void 0,function*(){let i=!0;r&&typeof r.followSymbolicLinks=="boolean"&&(i=r.followSymbolic
`)}};gg.defaultYaml={explicit:!1,version:"1.2"};gg.defaultTags={"!!":"tag:yaml.org,2002:"};L4.Directives=gg});var DI=h(mg=>{"use strict";var M4=ze(),sRe=hg();function oRe(t){if(/[\x00-\x19\s,[\]{}]/.test(t)){let r=`Anchor must not contain whitespace or control characters: ${JSON.stringify(t)}`;throw new Error(r)}return!0}function F4(t){let e=new Set;return sRe.visit(t,{Value(r,n){n.anchor&&e.add(n.anchor)}}),e}function U4(t,e){for(let r=1;;++r){let n=`${t}${r}`;if(!e.has(n))return n}}function aRe(t,e){let r=[],n=new Map,i=null;return{onAnchor:s=>{r.push(s),i||(i=F4(t));let o=U4(e,i);return i.add(o),o},setAnchors:()=>{for(let s of r){let o=n.get(s);if(typeof o=="object"&&o.anchor&&(M4.isScalar(o.node)||M4.isCollection(o.node)))o.node.anchor=o.anchor;else{let a=new Error("Failed to resolve repeated object (this should not happen)");throw a.source=s,a}}},sourceObjects:n}}mg.anchorIsValid=oRe;mg.anchorNames=F4;mg.createNodeAnchors=aRe;mg.findNewAnchor=U4});var ED=h(q4=>{"use strict";function pg(t,e,r,n){if(n&&typeof n=="object")if(Array.isArray(n))for(let i=0,s=n.length;i<s;++i){let o=n[i],a=pg(t,n,String(i),o);a===void 0?delete n[i]:a!==o&&(n[i]=a)}else if(n instanceof Map)for(let i of Array.from(n.keys())){let s=n.get(i),o=pg(t,n,i,s);o===void 0?n.delete(i):o!==s&&n.set(i,o)}else if(n instanceof Set)for(let i of Array.from(n)){let s=pg(t,n,i,i);s===void 0?n.delete(i):s!==i&&(n.delete(i),n.add(s))}else for(let[i,s]of Object.entries(n)){let o=pg(t,n,i,s);o===void 0?delete n[i]:o!==s&&(n[i]=o)}return t.call(e,r,n)}q4.applyReviver=pg});var pa=h(j4=>{"use strict";var ARe=ze();function H4(t,e,r){if(Array.isArray(t))return t.map((n,i)=>H4(n,String(i),r));if(t&&typeof t.toJSON=="function"){if(!r||!ARe.hasAnchor(t))return t.toJSON(e,r);let n={aliasCount:0,count:1,res:void 0};r.anchors.set(t,n),r.onCreate=s=>{n.res=s,delete r.onCreate};let i=t.toJSON(e,r);return r.onCreate&&r.onCreate(i),i}return typeof t=="bigint"&&!r?.keep?Number(t):t}j4.toJS=H4});var _I=h(G4=>{"use strict";var cRe=ED(),z4=ze(),lRe=pa(),CD=class{constructor(e){Object.defineProperty(this,z4.NODE_TYPE,{value:e})}clone(){let e=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return this.range&&(e.range=this.range.slice()),e}toJS(e,{mapAsMap:r,maxAliasCount:n,onAnchor:i,reviver:s}={}){if(!z4.isDocument(e))throw new TypeError("A document argument is required");let o={anchors:new Map,doc:e,keep:!0,mapAsMap:r===!0,mapKeyWarned:!1,maxAliasCount:typeof n=="number"?n:100},a=lRe.toJS(this,"",o);if(typeof i=="function")for(let{count:A,res:c}of o.anchors.values())i(c,A);return typeof s=="function"?cRe.applyReviver(s,{"":a},"",a):a}};G4.NodeBase=CD});var yg=h(J4=>{"use strict";var uRe=DI(),Y4=hg(),PI=ze(),dRe=_I(),fRe=pa(),ID=class extends dRe.NodeBase{constructor(e){super(PI.ALIAS),this.source=e,Object.defineProperty(this,"tag",{set(){throw new Error("Alias nodes cannot have tags")}})}resolve(e){let r;return Y4.visit(e,{Node:(n,i)=>{if(i===this)return Y4.visit.BREAK;i.anchor===this.source&&(r=i)}}),r}toJSON(e,r){if(!r)return{source:this.source};let{anchors:n,doc:i,maxAliasCount:s}=r,o=this.resolve(i);if(!o){let A=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new ReferenceError(A)}let a=n.get(o);if(a||(fRe.toJS(o,null,r),a=n.get(o)),!a||a.res===void 0){let A="This should not happen: Alias anchor was not resolved?";throw new ReferenceError(A)}if(s>=0&&(a.count+=1,a.aliasCount===0&&(a.aliasCount=kI(i,o,n)),a.count*a.aliasCount>s)){let A="Excessive alias count indicates a resource exhaustion attack";throw new ReferenceError(A)}return a.res}toString(e,r,n){let i=`*${this.source}`;if(e){if(uRe.anchorIsValid(this.source),e.options.verifyAliasOrder&&!e.anchors.has(this.source)){let s=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new Error(s)}if(e.implicitKey)return`${i} `}return i}};function kI(t,e,r){if(PI.isAlias(e)){let n=e.resolve(t),i=r&&n&&r.get(n);return i?i.count*i.aliasCount:0}else if(PI.isCollection(e)){let n=0;for(let i of e.items){let s=kI(t,i,r);s>n&&(n=s)}return n}
${A}`);if(o){let d=m=>m.default&&m.tag!=="tag:yaml.org,2002:str"&&m.test?.test(u),{compat:f,tags:g}=e.doc.schema;if(g.some(d)||f?.some(d))return ad(s,e)}return a?u:Ea.foldFlowLines(u,A,Ea.FOLD_FLOW,UI(e,!1))}function vRe(t,e,r,n){let{implicitKey:i,inFlow:s}=e,o=typeof t.value=="string"?t:Object.assign({},t,{value:String(t.value)}),{type:a}=t;a!==$i.Scalar.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(o.value)&&(a=$i.Scalar.QUOTE_DOUBLE);let A=l=>{switch(l){case $i.Scalar.BLOCK_FOLDED:case $i.Scalar.BLOCK_LITERAL:return i||s?ad(o.value,e):FI(o,e,r,n);case $i.Scalar.QUOTE_DOUBLE:return Bg(o.value,e);case $i.Scalar.QUOTE_SINGLE:return xD(o.value,e);case $i.Scalar.PLAIN:return RRe(o,e,r,n);default:return null}},c=A(a);if(c===null){let{defaultKeyType:l,defaultStringType:u}=e.options,d=i&&l||u;if(c=A(d),c===null)throw new Error(`Unsupported default string type ${d}`)}return c}Z4.stringifyString=vRe});var bg=h(RD=>{"use strict";var DRe=DI(),Ca=ze(),_Re=Cg(),PRe=Qg();function kRe(t,e){let r=Object.assign({blockQuote:!0,commentString:_Re.stringifyComment,defaultKeyType:null,defaultStringType:"PLAIN",directives:null,doubleQuotedAsJSON:!1,doubleQuotedMinMultiLineLength:40,falseStr:"false",flowCollectionPadding:!0,indentSeq:!0,lineWidth:80,minContentWidth:20,nullStr:"null",simpleKeys:!1,singleQuote:null,trueStr:"true",verifyAliasOrder:!0},t.schema.toStringOptions,e),n;switch(r.collectionStyle){case"block":n=!1;break;case"flow":n=!0;break;default:n=null}return{anchors:new Set,doc:t,flowCollectionPadding:r.flowCollectionPadding?" ":"",indent:"",indentStep:typeof r.indent=="number"?" ".repeat(r.indent):" ",inFlow:n,options:r}}function TRe(t,e){if(e.tag){let i=t.filter(s=>s.tag===e.tag);if(i.length>0)return i.find(s=>s.format===e.format)??i[0]}let r,n;if(Ca.isScalar(e)){n=e.value;let i=t.filter(s=>s.identify?.(n));if(i.length>1){let s=i.filter(o=>o.test);s.length>0&&(i=s)}r=i.find(s=>s.format===e.format)??i.find(s=>!s.format)}else n=e,r=t.find(i=>i.nodeClass&&n instanceof i.nodeClass);if(!r){let i=n?.constructor?.name??typeof n;throw new Error(`Tag not resolved for ${i} value`)}return r}function ORe(t,e,{anchors:r,doc:n}){if(!n.directives)return"";let i=[],s=(Ca.isScalar(t)||Ca.isCollection(t))&&t.anchor;s&&DRe.anchorIsValid(s)&&(r.add(s),i.push(`&${s}`));let o=t.tag?t.tag:e.default?null:e.tag;return o&&i.push(n.directives.tagString(o)),i.join(" ")}function LRe(t,e,r,n){if(Ca.isPair(t))return t.toString(e,r,n);if(Ca.isAlias(t)){if(e.doc.directives)return t.toString(e);if(e.resolvedAliases?.has(t))throw new TypeError("Cannot stringify circular structure without alias nodes");e.resolvedAliases?e.resolvedAliases.add(t):e.resolvedAliases=new Set([t]),t=t.resolve(e.doc)}let i,s=Ca.isNode(t)?t:e.doc.createNode(t,{onTagObj:A=>i=A});i||(i=TRe(e.doc.schema.tags,s));let o=ORe(s,i,e);o.length>0&&(e.indentAtStart=(e.indentAtStart??0)+o.length+1);let a=typeof i.stringify=="function"?i.stringify(s,e,r,n):Ca.isScalar(s)?PRe.stringifyString(s,e,r,n):s.toString(e,r,n);return o?Ca.isScalar(s)||a[0]==="{"||a[0]==="["?`${o} ${a}`:`${o}
${e.indent}${a}`:a}RD.createStringifyContext=kRe;RD.stringify=LRe});var n3=h(r3=>{"use strict";var go=ze(),e3=ir(),t3=bg(),Ng=Cg();function MRe({key:t,value:e},r,n,i){let{allNullValues:s,doc:o,indent:a,indentStep:A,options:{commentString:c,indentSeq:l,simpleKeys:u}}=r,d=go.isNode(t)&&t.comment||null;if(u){if(d)throw new Error("With simple keys, key nodes cannot have comments");if(go.isCollection(t)||!go.isNode(t)&&typeof t=="object"){let U="With simple keys, collection cannot be used as a key value";throw new Error(U)}}let f=!u&&(!t||d&&e==null&&!r.inFlow||go.isCollection(t)||(go.isScalar(t)?t.type===e3.Scalar.BLOCK_FOLDED||t.type===e3.Scalar.BLOCK_LITERAL:typeof t=="object"));r=Object.assign({},r,{allNullValues:!1,implicitKey:!f&&(u||!s),indent:a+A});let g=!1,m=!1,E=t3.stringify(t,r,()=>g=!0,()=>m=!0);if(!f&&!r.inFlow&&E.length>1024){if(u)throw new Error("With simple keys, single line scalar must not span more than 1024 characters");f=!0}if(r.inFlow){if(s||e==null)return g&&n&&n(),E===""?"?":f?`? ${E}`:E}else if(s&&!u||e==null&&f)return E=`? ${E}`,d&&!g?E+=Ng.lineComment(E,r.indent,c(d)):m&&i&&i(),E;g&&(d=null),f?(d&&(E+=Ng.lineComment(E,r.indent,c(d))),E=`? ${E}
`))&&(c=!0),u.push(C),l=u.length}let{start:d,end:f}=r;if(u.length===0)return d+f;if(!c){let g=u.reduce((m,E)=>m+E.length+2,2);c=e.options.lineWidth>0&&g>e.options.lineWidth}if(c){let g=d;for(let m of u)g+=m?`
${i}${f}`}else return`${d}${o}${u.join(" ")}${o}${f}`}function WI({indent:t,options:{commentString:e}},r,n,i){if(n&&i&&(n=n.replace(/^\n+/,"")),n){let s=VI.indentComment(e(n),t);r.push(s.trimStart())}}d3.stringifyCollection=WRe});var Qa=h(MD=>{"use strict";var XRe=OD(),ZRe=kD(),eve=OI(),Ba=ze(),$I=Ia(),tve=ir();function xg(t,e){let r=Ba.isScalar(e)?e.value:e;for(let n of t)if(Ba.isPair(n)&&(n.key===e||n.key===r||Ba.isScalar(n.key)&&n.key.value===r))return n}var LD=class extends eve.Collection{static get tagName(){return"tag:yaml.org,2002:map"}constructor(e){super(Ba.MAP,e),this.items=[]}static from(e,r,n){let{keepUndefined:i,replacer:s}=n,o=new this(e),a=(A,c)=>{if(typeof s=="function")c=s.call(r,A,c);else if(Array.isArray(s)&&!s.includes(A))return;(c!==void 0||i)&&o.items.push($I.createPair(A,c,n))};if(r instanceof Map)for(let[A,c]of r)a(A,c);else if(r&&typeof r=="object")for(let A of Object.keys(r))a(A,r[A]);return typeof e.sortMapEntries=="function"&&o.items.sort(e.sortMapEntries),o}add(e,r){let n;Ba.isPair(e)?n=e:!e||typeof e!="object"||!("key"in e)?n=new $I.Pair(e,e?.value):n=new $I.Pair(e.key,e.value);let i=xg(this.items,n.key),s=this.schema?.sortMapEntries;if(i){if(!r)throw new Error(`Key ${n.key} already set`);Ba.isScalar(i.value)&&tve.isScalarValue(n.value)?i.value.value=n.value:i.value=n.value}else if(s){let o=this.items.findIndex(a=>s(n,a)<0);o===-1?this.items.push(n):this.items.splice(o,0,n)}else this.items.push(n)}delete(e){let r=xg(this.items,e);return r?this.items.splice(this.items.indexOf(r),1).length>0:!1}get(e,r){let i=xg(this.items,e)?.value;return(!r&&Ba.isScalar(i)?i.value:i)??void 0}has(e){return!!xg(this.items,e)}set(e,r){this.add(new $I.Pair(e,r),!0)}toJSON(e,r,n){let i=n?new n:r?.mapAsMap?new Map:{};r?.onCreate&&r.onCreate(i);for(let s of this.items)ZRe.addPairToJSMap(r,i,s);return i}toString(e,r,n){if(!e)return JSON.stringify(this);for(let i of this.items)if(!Ba.isPair(i))throw new Error(`Map items must all be pairs; found ${JSON.stringify(i)} instead`);return!e.allNullValues&&this.hasAllNullValues(!1)&&(e=Object.assign({},e,{allNullValues:!0})),XRe.stringifyCollection(this,e,{blockItemPrefix:"",flowChars:{start:"{",end:"}"},itemIndent:e.indent||"",onChompKeep:n,onComment:r})}};MD.YAMLMap=LD;MD.findPair=xg});var Ad=h(h3=>{"use strict";var rve=ze(),f3=Qa(),nve={collection:"map",default:!0,nodeClass:f3.YAMLMap,tag:"tag:yaml.org,2002:map",resolve(t,e){return rve.isMap(t)||e("Expected a mapping for this tag"),t},createNode:(t,e,r)=>f3.YAMLMap.from(t,e,r)};h3.map=nve});var ba=h(g3=>{"use strict";var ive=Eg(),sve=OD(),ove=OI(),XI=ze(),ave=ir(),Ave=pa(),FD=class extends ove.Collection{static get tagName(){return"tag:yaml.org,2002:seq"}constructor(e){super(XI.SEQ,e),this.items=[]}add(e){this.items.push(e)}delete(e){let r=KI(e);return typeof r!="number"?!1:this.items.splice(r,1).length>0}get(e,r){let n=KI(e);if(typeof n!="number")return;let i=this.items[n];return!r&&XI.isScalar(i)?i.value:i}has(e){let r=KI(e);return typeof r=="number"&&r<this.items.length}set(e,r){let n=KI(e);if(typeof n!="number")throw new Error(`Expected a valid index, not ${e}.`);let i=this.items[n];XI.isScalar(i)&&ave.isScalarValue(r)?i.value=r:this.items[n]=r}toJSON(e,r){let n=[];r?.onCreate&&r.onCreate(n);let i=0;for(let s of this.items)n.push(Ave.toJS(s,String(i++),r));return n}toString(e,r,n){return e?sve.stringifyCollection(this,e,{blockItemPrefix:"- ",flowChars:{start:"[",end:"]"},itemIndent:(e.indent||"")+" ",onChompKeep:n,onComment:r}):JSON.stringify(this)}static from(e,r,n){let{replacer:i}=n,s=new this(e);if(r&&Symbol.iterator in Object(r)){let o=0;for(let a of r){if(typeof i=="function"){let A=r instanceof Set?a:String(o++);a=i.call(r,A,a)}s.items.push(ive.createNode(a,void 0,n))}}return s}};function KI(t){let e=XI.isScalar(t)?t.value:t;return e&&typeof e=="string"&&(e=Number(e)),typeof e=="number"&&Number.isInteger(e)&&e>=0?e:null}g3.YAMLSeq=FD});var cd=h(p3=>{"use strict";var cve=ze(),m3=ba(),lve={collection:"seq",default:!0,nodeClass:m3.YAMLSeq,tag:"tag:yaml.org,2002:seq",resolve(t,e){return cve.isSeq(t)||e("Expected a
`:" ")}return kve.stringifyString({comment:t,type:e,value:a},n,i,s)}};_3.binary=Tve});var oB=h(sB=>{"use strict";var iB=ze(),WD=Ia(),Ove=ir(),Lve=ba();function P3(t,e){if(iB.isSeq(t))for(let r=0;r<t.items.length;++r){let n=t.items[r];if(!iB.isPair(n)){if(iB.isMap(n)){n.items.length>1&&e("Each pair must have its own sequence indicator");let i=n.items[0]||new WD.Pair(new Ove.Scalar(null));if(n.commentBefore&&(i.key.commentBefore=i.key.commentBefore?`${n.commentBefore}
`}};Lg.YAMLError=Og;Lg.YAMLParseError=y_;Lg.YAMLWarning=E_;Lg.prettifyError=RDe});var Fg=h(l9=>{"use strict";function vDe(t,{flow:e,indicator:r,next:n,offset:i,onError:s,parentIndent:o,startOnNewline:a}){let A=!1,c=a,l=a,u="",d="",f=!1,g=!1,m=null,E=null,C=null,I=null,b=null,w=null,v=null;for(let P of t)switch(g&&(P.type!=="space"&&P.type!=="newline"&&P.type!=="comma"&&s(P.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),g=!1),m&&(c&&P.type!=="comment"&&P.type!=="newline"&&s(m,"TAB_AS_INDENT","Tabs are not allowed as indentation"),m=null),P.type){case"space":!e&&(r!=="doc-start"||n?.type!=="flow-collection")&&P.source.includes(" ")&&(m=P),l=!0;break;case"comment":{l||s(P,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");let J=P.source.substring(1)||" ";u?u+=d+J:u=J,d="",c=!1;break}case"newline":c?u?u+=P.source:(!w||r!=="seq-item-ind")&&(A=!0):d+=P.source,c=!0,f=!0,(E||C)&&(I=P),l=!0;break;case"anchor":E&&s(P,"MULTIPLE_ANCHORS","A node can have at most one anchor"),P.source.endsWith(":")&&s(P.offset+P.source.length-1,"BAD_ALIAS","Anchor ending in : is ambiguous",!0),E=P,v===null&&(v=P.offset),c=!1,l=!1,g=!0;break;case"tag":{C&&s(P,"MULTIPLE_TAGS","A node can have at most one tag"),C=P,v===null&&(v=P.offset),c=!1,l=!1,g=!0;break}case r:(E||C)&&s(P,"BAD_PROP_ORDER",`Anchors and tags must be after the ${P.source} indicator`),w&&s(P,"UNEXPECTED_TOKEN",`Unexpected ${P.source} in ${e??"collection"}`),w=P,c=r==="seq-item-ind"||r==="explicit-key-ind",l=!1;break;case"comma":if(e){b&&s(P,"UNEXPECTED_TOKEN",`Unexpected , in ${e}`),b=P,c=!1,l=!1;break}default:s(P,"UNEXPECTED_TOKEN",`Unexpected ${P.type} token`),c=!1,l=!1}let T=t[t.length-1],U=T?T.offset+T.source.length:i;return g&&n&&n.type!=="space"&&n.type!=="newline"&&n.type!=="comma"&&(n.type!=="scalar"||n.source!=="")&&s(n.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),m&&(c&&m.indent<=o||n?.type==="block-map"||n?.type==="block-seq")&&s(m,"TAB_AS_INDENT","Tabs are not allowed as indentation"),{comma:b,found:w,spaceBefore:A,comment:u,hasNewline:f,anchor:E,tag:C,newlineAfterProp:I,end:U,start:v??U}}l9.resolveProps=vDe});var mB=h(u9=>{"use strict";function C_(t){if(!t)return null;switch(t.type){case"alias":case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":if(t.source.includes(`
`))return!0;if(t.end){for(let e of t.end)if(e.type==="newline")return!0}return!1;case"flow-collection":for(let e of t.items){for(let r of e.start)if(r.type==="newline")return!0;if(e.sep){for(let r of e.sep)if(r.type==="newline")return!0}if(C_(e.key)||C_(e.value))return!0}return!1;default:return!0}}u9.containsNewline=C_});var I_=h(d9=>{"use strict";var DDe=mB();function _De(t,e,r){if(e?.type==="flow-collection"){let n=e.end[0];n.indent===t&&(n.source==="]"||n.source==="}")&&DDe.containsNewline(e)&&r(n,"BAD_INDENT","Flow end indicator should be more indented than parent",!0)}}d9.flowIndentCheck=_De});var B_=h(h9=>{"use strict";var f9=ze();function PDe(t,e,r){let{uniqueKeys:n}=t.options;if(n===!1)return!1;let i=typeof n=="function"?n:(s,o)=>s===o||f9.isScalar(s)&&f9.isScalar(o)&&s.value===o.value;return e.some(s=>i(s.key,r))}h9.mapIncludes=PDe});var C9=h(E9=>{"use strict";var g9=Ia(),kDe=Qa(),m9=Fg(),TDe=mB(),p9=I_(),ODe=B_(),y9="All mapping items must start at the same column";function LDe({composeNode:t,composeEmptyNode:e},r,n,i,s){let o=s?.nodeClass??kDe.YAMLMap,a=new o(r.schema);r.atRoot&&(r.atRoot=!1);let A=n.offset,c=null;for(let l of n.items){let{start:u,key:d,sep:f,value:g}=l,m=m9.resolveProps(u,{indicator:"explicit-key-ind",next:d??f?.[0],offset:A,onError:i,parentIndent:n.indent,startOnNewline:!0}),E=!m.found;if(E){if(d&&(d.type==="block-seq"?i(A,"BLOCK_AS_IMPLICIT_KEY","A block sequence may not be used as an implicit map key"):"indent"in d&&d.indent!==n.indent&&i(A,"BAD_INDENT",y9)),!m.anchor&&!m.tag&&!f){c=m.end,m.comment&&(a.comment?a.comment+=`
`+m.comment:a.comment=m.comment);continue}(m.newlineAfterProp||TDe.containsNewline(d))&&i(d??u[u.length-1],"MULTILINE_IMPLICIT_KEY","Implicit keys need to be on a single line")}else m.found?.indent!==n.indent&&i(A,"BAD_INDENT",y9);r.atKey=!0;let C=m.end,I=d?t(r,d,m,i):e(r,C,u,null,m,i);r.schema.compat&&p9.flowIndentCheck(n.indent,d,i),r.atKey=!1,ODe.mapIncludes(r,a.items,I)&&i(C,"DUPLICATE_KEY","Map keys must be unique");let b=m9.resolveProps(f??[],{indicator:"map-value-ind",next:g,offset:I.range[2],onError:i,parentIndent:n.indent,startOnNewline:!d||d.type==="block-scalar"});if(A=b.end,b.found){E&&(g?.type==="block-map"&&!b.hasNewline&&i(A,"BLOCK_AS_IMPLICIT_KEY","Nested mappings are not allowed in compact mappings"),r.options.strict&&m.start<b.found.offset-1024&&i(I.range,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit block mapping key"));let w=g?t(r,g,b,i):e(r,A,f,null,b,i);r.schema.compat&&p9.flowIndentCheck(n.indent,g,i),A=w.range[2];let v=new g9.Pair(I,w);r.options.keepSourceTokens&&(v.srcToken=l),a.items.push(v)}else{E&&i(I.range,"MISSING_CHAR","Implicit map keys need to be followed by map values"),b.comment&&(I.comment?I.comment+=`
`+b.comment:I.comment=b.comment);let w=new g9.Pair(I);r.options.keepSourceTokens&&(w.srcToken=l),a.items.push(w)}}return c&&c<A&&i(c,"IMPOSSIBLE","Map comment with trailing content"),a.range=[n.offset,A,c??A],a}E9.resolveBlockMap=LDe});var B9=h(I9=>{"use strict";var MDe=ba(),FDe=Fg(),UDe=I_();function qDe({composeNode:t,composeEmptyNode:e},r,n,i,s){let o=s?.nodeClass??MDe.YAMLSeq,a=new o(r.schema);r.atRoot&&(r.atRoot=!1),r.atKey&&(r.atKey=!1);let A=n.offset,c=null;for(let{start:l,value:u}of n.items){let d=FDe.resolveProps(l,{indicator:"seq-item-ind",next:u,offset:A,onError:i,parentIndent:n.indent,startOnNewline:!0});if(!d.found)if(d.anchor||d.tag||u)u&&u.type==="block-seq"?i(d.end,"BAD_INDENT","All sequence items must start at the same column"):i(A,"MISSING_CHAR","Sequence item without - indicator");else{c=d.end,d.comment&&(a.comment=d.comment);continue}let f=u?t(r,u,d,i):e(r,d.end,l,null,d,i);r.schema.compat&&UDe.flowIndentCheck(n.indent,u,i),A=f.range[2],a.items.push(f)}return a.range=[n.offset,A,c??A],a}I9.resolveBlockSeq=qDe});var fd=h(Q9=>{"use strict";function HDe(t,e,r,n){let i="";if(t){let s=!1,o="";for(let a of t){let{source:A,type:c}=a;switch(c){case"space":s=!0;break;case"comment":{r&&!s&&n(a,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");let l=A.substring(1)||" ";i?i+=o+l:i=l,o="";break}case"newline":i&&(o+=A),s=!0;break;default:n(a,"UNEXPECTED_TOKEN",`Unexpected ${c} at node end`)}e+=A.length}}return{comment:i,offset:e}}Q9.resolveEnd=HDe});var x9=h(w9=>{"use strict";var jDe=ze(),zDe=Ia(),b9=Qa(),GDe=ba(),YDe=fd(),N9=Fg(),JDe=mB(),VDe=B_(),Q_="Block collections are not allowed within flow collections",b_=t=>t&&(t.type==="block-map"||t.type==="block-seq");function WDe({composeNode:t,composeEmptyNode:e},r,n,i,s){let o=n.start.source==="{",a=o?"flow map":"flow sequence",A=s?.nodeClass??(o?b9.YAMLMap:GDe.YAMLSeq),c=new A(r.schema);c.flow=!0;let l=r.atRoot;l&&(r.atRoot=!1),r.atKey&&(r.atKey=!1);let u=n.offset+n.start.source.length;for(let E=0;E<n.items.length;++E){let C=n.items[E],{start:I,key:b,sep:w,value:v}=C,T=N9.resolveProps(I,{flow:a,indicator:"explicit-key-ind",next:b??w?.[0],offset:u,onError:i,parentIndent:n.indent,startOnNewline:!1});if(!T.found){if(!T.anchor&&!T.tag&&!w&&!v){E===0&&T.comma?i(T.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${a}`):E<n.items.length-1&&i(T.start,"UNEXPECTED_TOKEN",`Unexpected empty item in ${a}`),T.comment&&(c.comment?c.comment+=`
`+T.comment:c.comment=T.comment),u=T.end;continue}!o&&r.options.strict&&JDe.containsNewline(b)&&i(b,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line")}if(E===0)T.comma&&i(T.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${a}`);else if(T.comma||i(T.start,"MISSING_CHAR",`Missing , between ${a} items`),T.comment){let U="";e:for(let P of I)switch(P.type){case"comma":case"space":break;case"comment":U=P.source.substring(1);break e;default:break e}if(U){let P=c.items[c.items.length-1];jDe.isPair(P)&&(P=P.value??P.key),P.comment?P.comment+=`
`+U:P.comment=U,T.comment=T.comment.substring(U.length+1)}}if(!o&&!w&&!T.found){let U=v?t(r,v,T,i):e(r,T.end,w,null,T,i);c.items.push(U),u=U.range[2],b_(v)&&i(U.range,"BLOCK_IN_FLOW",Q_)}else{r.atKey=!0;let U=T.end,P=b?t(r,b,T,i):e(r,U,I,null,T,i);b_(b)&&i(P.range,"BLOCK_IN_FLOW",Q_),r.atKey=!1;let J=N9.resolveProps(w??[],{flow:a,indicator:"map-value-ind",next:v,offset:P.range[2],onError:i,parentIndent:n.indent,startOnNewline:!1});if(J.found){if(!o&&!T.found&&r.options.strict){if(w)for(let H of w){if(H===J.found)break;if(H.type==="newline"){i(H,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line");break}}T.start<J.found.offset-1024&&i(J.found,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit flow sequence key")}}else v&&("source"in v&&v.source&&v.source[0]===":"?i(v,"MISSING_CHAR",`Missing space after : in ${a}`):i(J.start,"MISSING_CHAR",`Missing , or : between ${a} items`));let we=v?t(r,v,J,i):J.found?e(r,J.end,w,null,J,i):null;we?b_(v)&&i(we.range,"BLOCK_IN_FLOW",Q_):J.comment&&(P.comment?P.comment+=`
`+J.comment:P.comment=J.comment);let De=new zDe.Pair(P,we);if(r.options.keepSourceTokens&&(De.srcToken=C),o){let H=c;VDe.mapIncludes(r,H.items,P)&&i(U,"DUPLICATE_KEY","Map keys must be unique"),H.items.push(De)}else{let H=new b9.YAMLMap(r.schema);H.flow=!0,H.items.push(De);let Pe=(we??P).range;H.range=[P.range[0],Pe[1],Pe[2]],c.items.push(H)}u=we?we.range[2]:J.end}}let d=o?"}":"]",[f,...g]=n.end,m=u;if(f&&f.source===d)m=f.offset+f.source.length;else{let E=a[0].toUpperCase()+a.substring(1),C=l?`${E} must end with a ${d}`:`${E} in block collection must be sufficiently indented and end with a ${d}`;i(u,l?"MISSING_CHAR":"BAD_INDENT",C),f&&f.source.length!==1&&g.unshift(f)}if(g.length>0){let E=YDe.resolveEnd(g,m,r.options.strict,i);E.comment&&(c.comment?c.comment+=`
`.repeat(Math.max(1,o.length-1)):"",E=n+i.length;return e.source&&(E+=e.source.length),{value:m,type:s,comment:i.comment,range:[n,E,E]}}let A=e.indent+i.indent,c=e.offset+i.length,l=0;for(let m=0;m<a;++m){let[E,C]=o[m];if(C===""||C==="\r")i.indent===0&&E.length>A&&(A=E.length);else{E.length<A&&r(c+E.length,"MISSING_CHAR","Block scalars with more-indented leading empty lines must use an explicit indentation indicator"),i.indent===0&&(A=E.length),l=m,A===0&&!t.atRoot&&r(c,"BAD_INDENT","Block scalar values in collections must be indented");break}c+=E.length+C.length+1}for(let m=o.length-1;m>=a;--m)o[m][0].length>A&&(a=m+1);let u="",d="",f=!1;for(let m=0;m<l;++m)u+=o[m][0].slice(A)+`
`;for(let m=l;m<a;++m){let[E,C]=o[m];c+=E.length+C.length+1;let I=C[C.length-1]==="\r";if(I&&(C=C.slice(0,-1)),C&&E.length<A){let w=`Block scalar lines must not be less indented than their ${i.indent?"explicit indentation indicator":"first line"}`;r(c-C.length-(I?2:1),"BAD_INDENT",w),E=""}s===w_.Scalar.BLOCK_LITERAL?(u+=d+E.slice(A)+C,d=`
`}let g=n+i.length+e.source.length;return{value:u,type:s,comment:i.comment,range:[n,g,g]}}function s_e({offset:t,props:e},r,n){if(e[0].type!=="block-scalar-header")return n(e[0],"IMPOSSIBLE","Block scalar header not found"),null;let{source:i}=e[0],s=i[0],o=0,a="",A=-1;for(let d=1;d<i.length;++d){let f=i[d];if(!a&&(f==="-"||f==="+"))a=f;else{let g=Number(f);!o&&g?o=g:A===-1&&(A=t+d)}}A!==-1&&n(A,"UNEXPECTED_TOKEN",`Block scalar header includes extra characters: ${i}`);let c=!1,l="",u=i.length;for(let d=1;d<e.length;++d){let f=e[d];switch(f.type){case"space":c=!0;case"newline":u+=f.source.length;break;case"comment":r&&!c&&n(f,"MISSING_CHAR","Comments must be separated from other tokens by white space characters"),u+=f.source.length,l=f.source.substring(1);break;case"error":n(f,"UNEXPECTED_TOKEN",f.message),u+=f.source.length;break;default:{let g=`Unexpected token in block scalar header: ${f.type}`;n(f,"UNEXPECTED_TOKEN",g);let m=f.source;m&&typeof m=="string"&&(u+=m.length)}}}return{mode:s,indent:o,chomp:a,comment:l,length:u}}function o_e(t){let e=t.split(/\n( *)/),r=e[0],n=r.match(/^( *)/),s=[n?.[1]?[n[1],r.slice(n[1].length)]:["",r]];for(let o=1;o<e.length;o+=2)s.push([e[o],e[o+1]]);return s}v9.resolveBlockScalar=i_e});var R_=h(_9=>{"use strict";var S_=ir(),a_e=fd();function A_e(t,e,r){let{offset:n,type:i,source:s,end:o}=t,a,A,c=(d,f,g)=>r(n+d,f,g);switch(i){case"scalar":a=S_.Scalar.PLAIN,A=c_e(s,c);break;case"single-quoted-scalar":a=S_.Scalar.QUOTE_SINGLE,A=l_e(s,c);break;case"double-quoted-scalar":a=S_.Scalar.QUOTE_DOUBLE,A=u_e(s,c);break;default:return r(t,"UNEXPECTED_TOKEN",`Expected a flow scalar value, but found: ${i}`),{value:"",type:null,comment:"",range:[n,n+s.length,n+s.length]}}let l=n+s.length,u=a_e.resolveEnd(o,l,e,r);return{value:A,type:a,comment:u.comment,range:[n,l,u.offset]}}function c_e(t,e){let r="";switch(t[0]){case" ":r="a tab character";break;case",":r="flow indicator character ,";break;case"%":r="directive indicator character %";break;case"|":case">":{r=`block scalar indicator ${t[0]}`;break}case"@":case"`":{r=`reserved character ${t[0]}`;break}}return r&&e(0,"BAD_SCALAR_START",`Plain value cannot start with ${r}`),D9(t)}function l_e(t,e){return(t[t.length-1]!=="'"||t.length===1)&&e(t.length,"MISSING_CHAR","Missing closing 'quote"),D9(t.slice(1,-1)).replace(/''/g,"'")}function D9(t){let e,r;try{e=new RegExp(`(.*?)(?<![ ])[ ]*\r?
`,r:"\r",t:" ",v:"\v",N:"\x85",_:"\xA0",L:"\u2028",P:"\u2029"," ":" ",'"':'"',"/":"/","\\":"\\"," ":" "};function h_e(t,e,r,n){let i=t.substr(e,r),o=i.length===r&&/^[0-9a-fA-F]+$/.test(i)?parseInt(i,16):NaN;if(isNaN(o)){let a=t.substr(e-2,r+2);return n(e-2,"BAD_DQ_ESCAPE",`Invalid escape sequence ${a}`),a}return String.fromCodePoint(o)}_9.resolveFlowScalar=A_e});var T9=h(k9=>{"use strict";var OA=ze(),P9=ir(),g_e=x_(),m_e=R_();function p_e(t,e,r,n){let{value:i,type:s,comment:o,range:a}=e.type==="block-scalar"?g_e.resolveBlockScalar(t,e,n):m_e.resolveFlowScalar(e,t.options.strict,n),A=r?t.directives.tagName(r.source,u=>n(r,"TAG_RESOLVE_FAILED",u)):null,c;t.options.stringKeys&&t.atKey?c=t.schema[OA.SCALAR]:A?c=y_e(t.schema,i,A,r,n):e.type==="scalar"?c=E_e(t,i,e,n):c=t.schema[OA.SCALAR];let l;try{let u=c.resolve(i,d=>n(r??e,"TAG_RESOLVE_FAILED",d),t.options);l=OA.isScalar(u)?u:new P9.Scalar(u)}catch(u){let d=u instanceof Error?u.message:String(u);n(r??e,"TAG_RESOLVE_FAILED",d),l=new P9.Scalar(i)}return l.range=a,l.source=i,s&&(l.type=s),A&&(l.tag=A),c.format&&(l.format=c.format),o&&(l.comment=o),l}function y_e(t,e,r,n,i){if(r==="!")return t[OA.SCALAR];let s=[];for(let a of t.tags)if(!a.collection&&a.tag===r)if(a.default&&a.test)s.push(a);else return a;for(let a of s)if(a.test?.test(e))return a;let o=t.knownTags[r];return o&&!o.collection?(t.tags.push(Object.assign({},o,{default:!1,test:void 0})),o):(i(n,"TAG_RESOLVE_FAILED",`Unresolved tag: ${r}`,r!=="tag:yaml.org,2002:str"),t[OA.SCALAR])}function E_e({atKey:t,directives:e,schema:r},n,i,s){let o=r.tags.find(a=>(a.default===!0||t&&a.default==="key")&&a.test?.test(n))||r[OA.SCALAR];if(r.compat){let a=r.compat.find(A=>A.default&&A.test?.test(n))??r[OA.SCALAR];if(o.tag!==a.tag){let A=e.tagString(o.tag),c=e.tagString(a.tag),l=`Value may be parsed as either ${A} or ${c}`;s(i,"TAG_RESOLVE_FAILED",l,!0)}}return o}k9.composeScalar=p_e});var L9=h(O9=>{"use strict";function C_e(t,e,r){if(e){r===null&&(r=e.length);for(let n=r-1;n>=0;--n){let i=e[n];switch(i.type){case"space":case"comment":case"newline":t-=i.source.length;continue}for(i=e[++n];i?.type==="space";)t+=i.source.length,i=e[++n];break}}return t}O9.emptyScalarPosition=C_e});var U9=h(D_=>{"use strict";var I_e=yg(),B_e=ze(),Q_e=R9(),M9=T9(),b_e=fd(),N_e=L9(),w_e={composeNode:F9,composeEmptyNode:v_};function F9(t,e,r,n){let i=t.atKey,{spaceBefore:s,comment:o,anchor:a,tag:A}=r,c,l=!0;switch(e.type){case"alias":c=x_e(t,e,n),(a||A)&&n(e,"ALIAS_PROPS","An alias node must not specify any properties");break;case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"block-scalar":c=M9.composeScalar(t,e,A,n),a&&(c.anchor=a.source.substring(1));break;case"block-map":case"block-seq":case"flow-collection":c=Q_e.composeCollection(w_e,t,e,r,n),a&&(c.anchor=a.source.substring(1));break;default:{let u=e.type==="error"?e.message:`Unsupported token (type: ${e.type})`;n(e,"UNEXPECTED_TOKEN",u),c=v_(t,e.offset,void 0,null,r,n),l=!1}}return a&&c.anchor===""&&n(a,"BAD_ALIAS","Anchor cannot be an empty string"),i&&t.options.stringKeys&&(!B_e.isScalar(c)||typeof c.value!="string"||c.tag&&c.tag!=="tag:yaml.org,2002:str")&&n(A??e,"NON_STRING_KEY","With stringKeys, all keys must be strings"),s&&(c.spaceBefore=!0),o&&(e.type==="scalar"&&e.source===""?c.comment=o:c.commentBefore=o),t.options.keepSourceTokens&&l&&(c.srcToken=e),c}function v_(t,e,r,n,{spaceBefore:i,comment:s,anchor:o,tag:a,end:A},c){let l={type:"scalar",offset:N_e.emptyScalarPosition(e,r,n),indent:-1,source:""},u=M9.composeScalar(t,l,a,c);return o&&(u.anchor=o.source.substring(1),u.anchor===""&&c(o,"BAD_ALIAS","Anchor cannot be an empty string")),i&&(u.spaceBefore=!0),s&&(u.comment=s,u.range[2]=A),u}function x_e({options:t},{offset:e,source:r,end:n},i){let s=new I_e.Alias(r.substring(1));s.source===""&&i(e,"BAD_ALIAS","Alias cannot be an empty string"),s.source.endsWith(":")&&i(e+r.length-1,"BAD_ALIAS","Alias ending in : is ambiguous",!0);let o=e+r.length,a=b_e.resolveEnd(n,o,t.strict,i);return s.range=[e,o,a.offset],a.comment&&(s.comment=a.comment),s}D_.composeEmptyNode=v_;D_.co
`;if(t.type==="block-scalar"){let s=t.props[0];if(s.type!=="block-scalar-header")throw new Error("Invalid block scalar header");s.source=n,t.source=i}else{let{offset:s}=t,o="indent"in t?t.indent:-1,a=[{type:"block-scalar-header",offset:s,indent:o,source:n}];V9(a,"end"in t?t.end:void 0)||a.push({type:"newline",offset:-1,indent:o,source:`
`});for(let A of Object.keys(t))A!=="type"&&A!=="offset"&&delete t[A];Object.assign(t,{type:"block-scalar",indent:o,props:a,source:i})}}function V9(t,e){if(e)for(let r of e)switch(r.type){case"space":case"comment":t.push(r);break;case"newline":return t.push(r),!0}return!1}function k_(t,e,r){switch(t.type){case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":t.type=r,t.source=e;break;case"block-scalar":{let n=t.props.slice(1),i=e.length;t.props[0].type==="block-scalar-header"&&(i-=t.props[0].source.length);for(let s of n)s.offset+=i;delete t.props,Object.assign(t,{type:r,source:e,end:n});break}case"block-map":case"block-seq":{let i={type:"newline",offset:t.offset+e.length,indent:t.indent,source:`
`};delete t.items,Object.assign(t,{type:r,source:e,end:[i]});break}default:{let n="indent"in t?t.indent:-1,i="end"in t&&Array.isArray(t.end)?t.end.filter(s=>s.type==="space"||s.type==="comment"||s.type==="newline"):[];for(let s of Object.keys(t))s!=="type"&&s!=="offset"&&delete t[s];Object.assign(t,{type:r,indent:n,source:e,end:i})}}}pB.createScalarToken=q_e;pB.resolveAsScalar=U_e;pB.setScalarValue=H_e});var K9=h($9=>{"use strict";var z_e=t=>"type"in t?EB(t):yB(t);function EB(t){switch(t.type){case"block-scalar":{let e="";for(let r of t.props)e+=EB(r);return e+t.source}case"block-map":case"block-seq":{let e="";for(let r of t.items)e+=yB(r);return e}case"flow-collection":{let e=t.start.source;for(let r of t.items)e+=yB(r);for(let r of t.end)e+=r.source;return e}case"document":{let e=yB(t);if(t.end)for(let r of t.end)e+=r.source;return e}default:{let e=t.source;if("end"in t&&t.end)for(let r of t.end)e+=r.source;return e}}}function yB({start:t,key:e,sep:r,value:n}){let i="";for(let s of t)i+=s.source;if(e&&(i+=EB(e)),r)for(let s of r)i+=s.source;return n&&(i+=EB(n)),i}$9.stringify=z_e});var tK=h(eK=>{"use strict";var T_=Symbol("break visit"),G_e=Symbol("skip children"),X9=Symbol("remove item");function LA(t,e){"type"in t&&t.type==="document"&&(t={start:t.start,value:t.value}),Z9(Object.freeze([]),t,e)}LA.BREAK=T_;LA.SKIP=G_e;LA.REMOVE=X9;LA.itemAtPath=(t,e)=>{let r=t;for(let[n,i]of e){let s=r?.[n];if(s&&"items"in s)r=s.items[i];else return}return r};LA.parentCollection=(t,e)=>{let r=LA.itemAtPath(t,e.slice(0,-1)),n=e[e.length-1][0],i=r?.[n];if(i&&"items"in i)return i;throw new Error("Parent collection not found")};function Z9(t,e,r){let n=r(e,t);if(typeof n=="symbol")return n;for(let i of["key","value"]){let s=e[i];if(s&&"items"in s){for(let o=0;o<s.items.length;++o){let a=Z9(Object.freeze(t.concat([[i,o]])),s.items[o],r);if(typeof a=="number")o=a-1;else{if(a===T_)return T_;a===X9&&(s.items.splice(o,1),o-=1)}}typeof n=="function"&&i==="key"&&(n=n(e,t))}}return typeof n=="function"?n(e,t):n}eK.visit=LA});var CB=h(_n=>{"use strict";var O_=W9(),Y_e=K9(),J_e=tK(),L_="\uFEFF",M_="",F_="",U_="",V_e=t=>!!t&&"items"in t,W_e=t=>!!t&&(t.type==="scalar"||t.type==="single-quoted-scalar"||t.type==="double-quoted-scalar"||t.type==="block-scalar");function $_e(t){switch(t){case L_:return"<BOM>";case M_:return"<DOC>";case F_:return"<FLOW_END>";case U_:return"<SCALAR>";default:return JSON.stringify(t)}}function K_e(t){switch(t){case L_:return"byte-order-mark";case M_:return"doc-mode";case F_:return"flow-error-end";case U_:return"scalar";case"---":return"doc-start";case"...":return"doc-end";case"":case`
\r `),q_=t=>!t||Z_e.has(t),H_=class{constructor(){this.atEnd=!1,this.blockScalarIndent=-1,this.blockScalarKeep=!1,this.buffer="",this.flowKey=!1,this.flowLevel=0,this.indentNext=0,this.indentValue=0,this.lineEndPos=null,this.next=null,this.pos=0}*lex(e,r=!1){if(e){if(typeof e!="string")throw TypeError("source is not a string");this.buffer=this.buffer?this.buffer+e:e,this.lineEndPos=null}this.atEnd=!r;let n=this.next??"stream";for(;n&&(r||this.hasChars(1));)n=yield*this.parseNext(n)}atLineEnd(){let e=this.pos,r=this.buffer[e];for(;r===" "||r===" ";)r=this.buffer[++e];return!r||r==="#"||r===`
Remove one of these versions to avoid version mismatch errors like ERR_PNPM_BAD_PM_VERSION`);return e}if(s?.packageManager?.name==="pnpm"&&s.packageManager.version)return s.packageManager.version;if(o)return o;throw n?new Error(`No pnpm version is specified.
Otherwise, please specify the pnpm version in the action configuration.`)}function JLe(t){if(t==="latest-12"||t==="next-12")return!0;let e=(0,xd.validRange)(t);return e!==null&&(0,xd.subset)(e,">=12.0.0 <13.0.0")}function VLe(){return new Promise(t=>{let e=(0,xP.spawn)("node",["--version"],{stdio:["pipe","pipe","pipe"],shell:process.platform==="win32"}),r="";e.stdout.on("data",n=>{r+=n.toString()}),e.on("close",()=>{let n=r.match(/^v(\d+)\.(\d+)/);t(n?{major:parseInt(n[1],10),minor:parseInt(n[2],10)}:{major:0,minor:0})}),e.on("error",()=>t({major:0,minor:0}))})}function b5(t,e,r){return new Promise((n,i)=>{let s=(0,xP.spawn)(t,e,{cwd:r.cwd,env:r.env,stdio:["pipe","inherit","inherit"],shell:process.platform==="win32"});s.on("error",i),s.on("close",n)})}var S5=GLe;async function WLe(t){(0,Sd.startGroup)("Running self-installer...");let{exitCode:e,binDest:r}=await S5(t);if((0,Sd.endGroup)(),e){(0,Sd.setFailed)(`Something went wrong, self-installer exits with code ${e}`);return}return r}var R5=WLe;var SP=wt(ct());function $Le(t,e){(0,SP.setOutput)("dest",t.dest),(0,SP.setOutput)("bin_dest",e)}var v5=$Le;var tc=wt(ct()),D5=require("child_process");function KLe(t){for(let e of t.runInstall){let r=["install"];e.recursive&&r.unshift("recursive"),e.args&&r.push(...e.args);let n=["pnpm",...r].join(" ");(0,tc.startGroup)(`Running ${n}...`);let{error:i,status:s}=(0,D5.spawnSync)("pnpm",r,{stdio:"inherit",cwd:e.cwd,shell:!0});if((0,tc.endGroup)(),i){(0,tc.setFailed)(i);continue}if(s){(0,tc.setFailed)(`Command ${n} (cwd: ${e.cwd}) exits with status ${s}`);continue}}}var _5=KLe;var rc=wt(ct()),P5=require("child_process");function XLe(t){if(t.runInstall.length===0){console.log("Pruning is unnecessary.");return}(0,rc.startGroup)("Running pnpm store prune...");let{error:e,status:r}=(0,P5.spawnSync)("pnpm",["store","prune"],{stdio:"inherit",shell:!0});if((0,rc.endGroup)(),e){(0,rc.warning)(e);return}if(r){(0,rc.warning)(`command pnpm store prune exits with code ${r}`);return}}var k5=XLe;async function ZLe(){(0,va.getState)("is_post")==="true"?await tMe():await eMe()}async function eMe(){let t=_K();(0,va.saveState)("inputs",t),(0,va.saveState)("is_post","true");let e=await R5(t);e!==void 0&&(console.log("Installation Completed!"),v5(t,e),await h4(t),_5(t))}async function tMe(){let t=JSON.parse((0,va.getState)("inputs"));k5(t),await y4(t)}ZLe().catch(t=>{console.error(t),(0,va.setFailed)(t)});