chore: update generated content

This commit is contained in:
github-actions[bot] committed 2026-05-21 13:29:22 +00:00
1 parent b9ca7428b9
commit 0a925a2f44
3 files changed
+468 -187

No files matched your search

Generated Vendored
+180 -181
View File
@@ -1,135 +1,83 @@
var Wot=Object.create;var S6=Object.defineProperty;var Jot=Object.getOwnPropertyDescriptor;var Yot=Object.getOwnPropertyNames;var Kot=Object.getPrototypeOf,Xot=Object.prototype.hasOwnProperty;var Zot=(t,e)=>()=>(t&&(e=t(t=0)),e);var p=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),pAe=(t,e)=>{for(var r in e)S6(t,r,{get:e[r],enumerable:!0})},eat=(t,e,r,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of Yot(e))!Xot.call(t,n)&&n!==r&&S6(t,n,{get:()=>e[n],enumerable:!(i=Jot(e,n))||i.enumerable});return t};var P=(t,e,r)=>(r=t!=null?Wot(Kot(t)):{},eat(e||!t||!t.__esModule?S6(r,"default",{value:t,enumerable:!0}):r,t));var wAe=p(Ab=>{"use strict";var b_r=require("net"),oat=require("tls"),N6=require("http"),yAe=require("https"),aat=require("events"),w_r=require("assert"),cat=require("util");Ab.httpOverHttp=uat;Ab.httpsOverHttp=lat;Ab.httpOverHttps=fat;Ab.httpsOverHttps=hat;function uat(t){var e=new od(t);return e.request=N6.request,e}function lat(t){var e=new od(t);return e.request=N6.request,e.createSocket=EAe,e.defaultPort=443,e}function fat(t){var e=new od(t);return e.request=yAe.request,e}function hat(t){var e=new od(t);return e.request=yAe.request,e.createSocket=EAe,e.defaultPort=443,e}function od(t){var e=this;e.options=t||{},e.proxyOptions=e.options.proxy||{},e.maxSockets=e.options.maxSockets||N6.Agent.defaultMaxSockets,e.requests=[],e.sockets=[],e.on("free",function(i,n,s,o){for(var a=bAe(n,s,o),c=0,u=e.requests.length;c<u;++c){var l=e.requests[c];if(l.host===a.host&&l.port===a.port){e.requests.splice(c,1),l.request.onSocket(i);return}}i.destroy(),e.removeSocket(i)})}cat.inherits(od,aat.EventEmitter);od.prototype.addRequest=function(e,r,i,n){var s=this,o=D6({request:e},s.options,bAe(r,i,n));if(s.sockets.length>=this.maxSockets){s.requests.push(o);return}s.createSocket(o,function(a){a.on("free",c),a.on("close",u),a.on("agentRemove",u),e.onSocket(a);function c(){s.emit("free",a,o)}function u(l){s.removeSocket(a),a.removeListener("free",c),a.removeListener("close",u),a.removeListener("agentRemove",u)}})};od.prototype.createSocket=function(e,r){var i=this,n={};i.sockets.push(n);var s=D6({},i.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:!1,headers:{host:e.host+":"+e.port}});e.localAddress&&(s.localAddress=e.localAddress),s.proxyAuth&&(s.headers=s.headers||{},s.headers["Proxy-Authorization"]="Basic "+new Buffer(s.proxyAuth).toString("base64")),um("making CONNECT request");var o=i.request(s);o.useChunkedEncodingByDefault=!1,o.once("response",a),o.once("upgrade",c),o.once("connect",u),o.once("error",l),o.end();function a(f){f.upgrade=!0}function c(f,h,d){process.nextTick(function(){u(f,h,d)})}function u(f,h,d){if(o.removeAllListeners(),h.removeAllListeners(),f.statusCode!==200){um("tunneling socket could not be established, statusCode=%d",f.statusCode),h.destroy();var m=new Error("tunneling socket could not be established, statusCode="+f.statusCode);m.code="ECONNRESET",e.request.emit("error",m),i.removeSocket(n);return}if(d.length>0){um("got illegal response body from proxy"),h.destroy();var m=new Error("got illegal response body from proxy");m.code="ECONNRESET",e.request.emit("error",m),i.removeSocket(n);return}return um("tunneling connection has established"),i.sockets[i.sockets.indexOf(n)]=h,r(h)}function l(f){o.removeAllListeners(),um(`tunneling socket could not be established, cause=%s
`,f.message,f.stack);var h=new Error("tunneling socket could not be established, cause="+f.message);h.code="ECONNRESET",e.request.emit("error",h),i.removeSocket(n)}};od.prototype.removeSocket=function(e){var r=this.sockets.indexOf(e);if(r!==-1){this.sockets.splice(r,1);var i=this.requests.shift();i&&this.createSocket(i,function(n){i.request.onSocket(n)})}};function EAe(t,e){var r=this;od.prototype.createSocket.call(r,t,function(i){var n=t.request.getHeader("host"),s=D6({},r.options,{socket:i,servername:n?n.replace(/:.*$/,""):t.host}),o=oat.connect(0,s);r.sockets[r.sockets.indexOf(i)]=o,e(o)})}function bAe(t,e,r){return typeof t=="string"?{host:t,port:e,localAddress:r}:t}function D6(t){for(var e=1,r=arguments.length;e<r;++e){var i=arguments[e];if(typeof i=="object")for(var n=Object.keys(i),s=0,o=n.length;s<o;++s){var a=n[s];i[a]!==void 0&&(t[a]=i[a])}}return t}var um;process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)?um=function(){var t=Array.prototype.slice.call(arguments);typeof t[0]=="string"?t[0]="TUNNEL: "+t[0]:t.unshift("TUNNEL:"),console.error.apply(console,t)}:um=function(){};Ab.debug=um});var O6=p((I_r,CAe)=>{CAe.exports=wAe()});var Fr=p((S_r,IAe)=>{IAe.exports={kClose:Symbol("close"),kDestroy:Symbol("destroy"),kDispatch:Symbol("dispatch"),kUrl:Symbol("url"),kWriting:Symbol("writing"),kResuming:Symbol("resuming"),kQueue:Symbol("queue"),kConnect:Symbol("connect"),kConnecting:Symbol("connecting"),kKeepAliveDefaultTimeout:Symbol("default keep alive timeout"),kKeepAliveMaxTimeout:Symbol("max keep alive timeout"),kKeepAliveTimeoutThreshold:Symbol("keep alive timeout threshold"),kKeepAliveTimeoutValue:Symbol("keep alive timeout"),kKeepAlive:Symbol("keep alive"),kHeadersTimeout:Symbol("headers timeout"),kBodyTimeout:Symbol("body timeout"),kServerName:Symbol("server name"),kLocalAddress:Symbol("local address"),kHost:Symbol("host"),kNoRef:Symbol("no ref"),kBodyUsed:Symbol("used"),kBody:Symbol("abstracted request body"),kRunning:Symbol("running"),kBlocking:Symbol("blocking"),kPending:Symbol("pending"),kSize:Symbol("size"),kBusy:Symbol("busy"),kQueued:Symbol("queued"),kFree:Symbol("free"),kConnected:Symbol("connected"),kClosed:Symbol("closed"),kNeedDrain:Symbol("need drain"),kReset:Symbol("reset"),kDestroyed:Symbol.for("nodejs.stream.destroyed"),kResume:Symbol("resume"),kOnError:Symbol("on error"),kMaxHeadersSize:Symbol("max headers size"),kRunningIdx:Symbol("running index"),kPendingIdx:Symbol("pending index"),kError:Symbol("error"),kClients:Symbol("clients"),kClient:Symbol("client"),kParser:Symbol("parser"),kOnDestroyed:Symbol("destroy callbacks"),kPipelining:Symbol("pipelining"),kSocket:Symbol("socket"),kHostHeader:Symbol("host header"),kConnector:Symbol("connector"),kStrictContentLength:Symbol("strict content length"),kMaxRedirections:Symbol("maxRedirections"),kMaxRequests:Symbol("maxRequestsPerClient"),kProxy:Symbol("proxy agent options"),kCounter:Symbol("socket request counter"),kInterceptors:Symbol("dispatch interceptors"),kMaxResponseSize:Symbol("max response size"),kHTTP2Session:Symbol("http2Session"),kHTTP2SessionState:Symbol("http2Session state"),kRetryHandlerDefaultRetry:Symbol("retry agent default retry"),kConstruct:Symbol("constructable"),kListeners:Symbol("listeners"),kHTTPContext:Symbol("http context"),kMaxConcurrentStreams:Symbol("max concurrent streams"),kNoProxyAgent:Symbol("no proxy agent"),kHttpProxyAgent:Symbol("http proxy agent"),kHttpsProxyAgent:Symbol("https proxy agent")}});var $t=p((B_r,WAe)=>{"use strict";var SAe=Symbol.for("undici.error.UND_ERR"),Mr=class extends Error{constructor(e){super(e),this.name="UndiciError",this.code="UND_ERR"}static[Symbol.hasInstance](e){return e&&e[SAe]===!0}[SAe]=!0},BAe=Symbol.for("undici.error.UND_ERR_CONNECT_TIMEOUT"),P6=class extends Mr{constructor(e){super(e),this.name="ConnectTimeoutError",this.message=e||"Connect Timeout Error",this.code="UND_ERR_CONNECT_TIMEOUT"}static[Symbol.hasInstance](e){return e&&e[BAe]===!0}[BAe]=!0},vAe=Symbol.for("undici.error.UND_ERR_HEADERS_TIMEOUT"),k6=class extends Mr{constructor(e){super(e),this.name="HeadersTimeoutError",this.message=e||"Headers Timeout Error",this.code="UND_ERR_HEADERS_TIMEOUT"}static[Symbol.hasInstance](e){return e&&e[vAe]===!0}[vAe]=!0},xAe=Symbol.for("undici.error.UND_ERR_HEADERS_OVERFLOW"),Q6=class extends Mr{constructor(e){super(e),this.name="HeadersOverflowError",this.message=e||"Headers Overflow Error",this.code="UND_ERR_HEADERS_OVERFLOW"}static[Symbol.hasInstance](e){return e&&e[xAe]===!0}[xAe]=!0},_Ae=Symbol.for("undici.error.UND_ERR_BODY_TIMEOUT"),L6=class extends Mr{constructor(e){super(e),this.name="BodyTimeoutError",this.message=e||"Body Timeout Error",this.code="UND_ERR_BODY_TIMEOUT"}static[Symbol.hasInstance](e){return e&&e[_Ae]===!0}[_Ae]=!0},RAe=Symbol.for("undici.error.UND_ERR_RESPONSE_STATUS_CODE"),F6=class extends Mr{constructor(e,r,i,n){super(e),this.name="ResponseStatusCodeError",this.message=e||"Response Status Code Error",this.code="UND_ERR_RESPONSE_STATUS_C Line truncated
`)||t.includes("\r")||t.includes("\0"))===!1}function _ut(t,e){let{headersList:r}=e,i=(r.get("referrer-policy",!0)??"").split(","),n="";if(i.length>0)for(let s=i.length;s!==0;s--){let o=i[s-1].trim();if(hut.has(o)){n=o;break}}n!==""&&(t.referrerPolicy=n)}function Rut(){return"allowed"}function Tut(){return"success"}function Nut(){return"success"}function Dut(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}function Out(t){let e=t.origin;if(!(e==="client"||e===void 0)){if(t.responseTainting==="cors"||t.mode==="websocket")t.headersList.append("origin",e,!0);else if(t.method!=="GET"&&t.method!=="HEAD"){switch(t.referrerPolicy){case"no-referrer":e=null;break;case"no-referrer-when-downgrade":case"strict-origin":case"strict-origin-when-cross-origin":t.origin&&Rj(t.origin)&&!Rj(pv(t))&&(e=null);break;case"same-origin":_D(t,pv(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}function vb(t,e){return t}function Put(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:vb(t.domainLookupStartTime,r),domainLookupEndTime:vb(t.domainLookupEndTime,r),connectionStartTime:vb(t.connectionStartTime,r),connectionEndTime:vb(t.connectionEndTime,r),secureConnectionStartTime:vb(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}function kut(t){return vb(gut.now(),t)}function Qut(t){return{startTime:t.startTime??0,redirectStartTime:0,redirectEndTime:0,postRedirectStartTime:t.startTime??0,finalServiceWorkerStartTime:0,finalNetworkResponseStartTime:0,finalNetworkRequestStartTime:0,endTime:0,encodedBodySize:0,decodedBodySize:0,finalConnectionTimingInfo:null}}function cye(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function Lut(t){return{referrerPolicy:t.referrerPolicy}}function Fut(t){let e=t.referrerPolicy;Hg(e);let r=null;if(t.referrer==="client"){let a=rye();if(!a||a.origin==="null")return"no-referrer";r=new URL(a)}else t.referrer instanceof URL&&(r=t.referrer);let i=_j(r),n=_j(r,!0);i.toString().length>4096&&(i=n);let s=_D(t,i),o=dv(i)&&!dv(t.url);switch(e){case"origin":return n??_j(r,!0);case"unsafe-url":return i;case"same-origin":return s?n:"no-referrer";case"origin-when-cross-origin":return s?i:n;case"strict-origin-when-cross-origin":{let a=pv(t);return _D(i,a)?i:dv(i)&&!dv(a)?"no-referrer":n}default:return o?"no-referrer":n}}function _j(t,e){return Hg(t instanceof URL),t=new URL(t),t.protocol==="file:"||t.protocol==="about:"||t.protocol==="blank:"?"no-referrer":(t.username="",t.password="",t.hash="",e&&(t.pathname="",t.search=""),t)}function dv(t){if(!(t instanceof URL))return!1;if(t.href==="about:blank"||t.href==="about:srcdoc"||t.protocol==="data:"||t.protocol==="file:")return!0;return e(t.origin);function e(r){if(r==null||r==="null")return!1;let i=new URL(r);return!!(i.protocol==="https:"||i.protocol==="wss:"||/^127(?:\.[0-9]+){0,2}\.[0-9]+$|^\[(?:0*:)*?:?0*1\]$/.test(i.hostname)||i.hostname==="localhost"||i.hostname.includes("localhost.")||i.hostname.endsWith(".localhost"))}}function Mut(t,e){if(xD===void 0)return!0;let r=uye(e);if(r==="no metadata"||r.length===0)return!0;let i=qut(r),n=Gut(r,i);for(let s of n){let o=s.algo,a=s.hash,c=xD.createHash(o).update(t).digest("base64");if(c[c.length-1]==="="&&(c[c.length-2]==="="?c=c.slice(0,-2):c=c.slice(0,-1)),Hut(c,a))return!0}return!1}var Uut=/(?<algo>sha256|sha384|sha512)-((?<hash>[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;function uye(t){let e=[],r=!0;for(let i of t.split(" ")){r=!1;let n=Uut.exec(i);if(n===null||n.groups===void 0||n.groups.algo===void 0)continue;let s=n.groups.algo.toLowerCase();nye.includes(s)&&e.push(n.groups)}return r===!0?"no metadata":e}function qut(t){let e=t[0].algo;if(e[3]==="5")return e;for(let r=1;r<t.length;++r){let i=t[r];if(i.algo[3]==="5"){e="sha512";break}else{if(e[3]==="3")continue;i.algo[3]==="3"&&(e="sha384")}}return e}function Gut(t,e){if(t.length===1)return t;let r=0;for(let i=0;i<t.length;++i)t[i].algo===e&&(t[r++]=t[i]);return t.length=r,t}function Hut(t,e){if(t.length!==e.length)return!1;for(let r=0;r<t.length;++r)if(t[r]!==e[r]){if(t[r]==="+"&&e[r]==="-"||t[r]==="/"&&e[r]==="_")continue;return!1}return!0}function jut(t){}function _D(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}function Vut(){let t,e;return{promise:new Promise((i,n)=>{t=i,e=n}),resolve:t,reject:e}}function zut(t){return t.controller.state==="aborted"}function $ut(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}function Wut(t){return but[t.toLowerCase()]??t}function Jut(t){let e=JSON.stringify(t);if(e===void 0)throw new TypeError("Value is not JSON serializable");return Hg(typeof e=="string"),e}var Yut=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function lye(t,e,r=0,i=1){class n{ Line truncated
`);function vlt(t){for(let e=0;e<t.length;++e)if((t.charCodeAt(e)&-128)!==0)return!1;return!0}function xlt(t){let e=t.length;if(e<27||e>70)return!1;for(let r=0;r<e;++r){let i=t.charCodeAt(r);if(!(i>=48&&i<=57||i>=65&&i<=90||i>=97&&i<=122||i===39||i===45||i===95))return!1}return!0}function _lt(t,e){TD(e!=="failure"&&e.essence==="multipart/form-data");let r=e.parameters.get("boundary");if(r===void 0)return"failure";let i=Buffer.from(`--${r}`,"utf8"),n=[],s={position:0};for(;t[s.position]===13&&t[s.position+1]===10;)s.position+=2;let o=t.length;for(;t[o-1]===10&&t[o-2]===13;)o-=2;for(o!==t.length&&(t=t.subarray(0,o));;){if(t.subarray(s.position,s.position+i.length).equals(i))s.position+=i.length;else return"failure";if(s.position===t.length-2&&ND(t,Slt,s)||s.position===t.length-4&&ND(t,Blt,s))return n;if(t[s.position]!==13||t[s.position+1]!==10)return"failure";s.position+=2;let a=Rlt(t,s);if(a==="failure")return"failure";let{name:c,filename:u,contentType:l,encoding:f}=a;s.position+=2;let h;{let m=t.indexOf(i.subarray(2),s.position);if(m===-1)return"failure";h=t.subarray(s.position,m-4),s.position+=h.length,f==="base64"&&(h=Buffer.from(h.toString(),"base64"))}if(t[s.position]!==13||t[s.position+1]!==10)return"failure";s.position+=2;let d;u!==null?(l??="text/plain",vlt(l)||(l=""),d=new Clt([h],u,{type:l})):d=glt(Buffer.from(h)),TD(Cye(c)),TD(typeof d=="string"&&Cye(d)||Elt(d)),n.push(blt(c,d,u))}}function Rlt(t,e){let r=null,i=null,n=null,s=null;for(;;){if(t[e.position]===13&&t[e.position+1]===10)return r===null?"failure":{name:r,filename:i,contentType:n,encoding:s};let o=_b(a=>a!==10&&a!==13&&a!==58,t,e);if(o=Qj(o,!0,!0,a=>a===9||a===32),!ylt.test(o.toString())||t[e.position]!==58)return"failure";switch(e.position++,_b(a=>a===32||a===9,t,e),Alt(o)){case"content-disposition":{if(r=i=null,!ND(t,Ilt,e)||(e.position+=17,r=Bye(t,e),r===null))return"failure";if(ND(t,Sye,e)){let a=e.position+Sye.length;if(t[a]===42&&(e.position+=1,a+=1),t[a]!==61||t[a+1]!==34||(e.position+=12,i=Bye(t,e),i===null))return"failure"}break}case"content-type":{let a=_b(c=>c!==10&&c!==13,t,e);a=Qj(a,!1,!0,c=>c===9||c===32),n=Iye(a);break}case"content-transfer-encoding":{let a=_b(c=>c!==10&&c!==13,t,e);a=Qj(a,!1,!0,c=>c===9||c===32),s=Iye(a);break}default:_b(a=>a!==10&&a!==13,t,e)}if(t[e.position]!==13&&t[e.position+1]!==10)return"failure";e.position+=2}}function Bye(t,e){TD(t[e.position-1]===34);let r=_b(i=>i!==10&&i!==13&&i!==34,t,e);return t[e.position]!==34?null:(e.position++,r=new TextDecoder().decode(r).replace(/%0A/ig,`
`).replace(/%0D/ig,"\r").replace(/%22/g,'"'),r)}function _b(t,e,r){let i=r.position;for(;i<e.length&&t(e[i]);)++i;return e.subarray(r.position,r.position=i)}function Qj(t,e,r,i){let n=0,s=t.length-1;if(e)for(;n<t.length&&i(t[n]);)n++;if(r)for(;s>0&&i(t[s]);)s--;return n===0&&s===t.length-1?t:t.subarray(n,s+1)}function ND(t,e,r){if(t.length<e.length)return!1;for(let i=0;i<e.length;i++)if(e[i]!==t[r.position+i])return!1;return!0}vye.exports={multipartFormDataParser:_lt,validateBoundary:xlt}});var Nb=p((Y_r,Lye)=>{"use strict";var gv=wt(),{ReadableStreamFrom:Tlt,isBlobLike:_ye,isReadableStreamLike:Nlt,readableStreamClose:Dlt,createDeferredPromise:Olt,fullyReadBody:Plt,extractMimeType:klt,utf8DecodeBytes:Nye}=Da(),{FormData:Rye}=Av(),{kState:Tb}=lm(),{webidl:Qlt}=Xn(),{Blob:Llt}=require("node:buffer"),Lj=require("node:assert"),{isErrored:Dye,isDisturbed:Flt}=require("node:stream"),{isArrayBuffer:Mlt}=require("node:util/types"),{serializeAMimeType:Ult}=$o(),{multipartFormDataParser:qlt}=xye(),Fj;try{let t=require("node:crypto");Fj=e=>t.randomInt(0,e)}catch{Fj=t=>Math.floor(Math.random(t))}var DD=new TextEncoder;function Glt(){}var Oye=globalThis.FinalizationRegistry&&process.version.indexOf("v18")!==0,Pye;Oye&&(Pye=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!Flt(e)&&!Dye(e)&&e.cancel("Response object has been garbage collected").catch(Glt)}));function kye(t,e=!1){let r=null;t instanceof ReadableStream?r=t:_ye(t)?r=t.stream():r=new ReadableStream({async pull(c){let u=typeof n=="string"?DD.encode(n):n;u.byteLength&&c.enqueue(u),queueMicrotask(()=>Dlt(c))},start(){},type:"bytes"}),Lj(Nlt(r));let i=null,n=null,s=null,o=null;if(typeof t=="string")n=t,o="text/plain;charset=UTF-8";else if(t instanceof URLSearchParams)n=t.toString(),o="application/x-www-form-urlencoded;charset=UTF-8";else if(Mlt(t))n=new Uint8Array(t.slice());else if(ArrayBuffer.isView(t))n=new Uint8Array(t.buffer.slice(t.byteOffset,t.byteOffset+t.byteLength));else if(gv.isFormDataLike(t)){let c=`----formdata-undici-0${`${Fj(1e11)}`.padStart(11,"0")}`,u=`--${c}\r
var gat=Object.create;var U6=Object.defineProperty;var yat=Object.getOwnPropertyDescriptor;var Eat=Object.getOwnPropertyNames;var bat=Object.getPrototypeOf,wat=Object.prototype.hasOwnProperty;var Cat=(t,e)=>()=>(t&&(e=t(t=0)),e);var p=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),RAe=(t,e)=>{for(var r in e)U6(t,r,{get:e[r],enumerable:!0})},Iat=(t,e,r,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of Eat(e))!wat.call(t,n)&&n!==r&&U6(t,n,{get:()=>e[n],enumerable:!(i=yat(e,n))||i.enumerable});return t};var O=(t,e,r)=>(r=t!=null?gat(bat(t)):{},Iat(e||!t||!t.__esModule?U6(r,"default",{value:t,enumerable:!0}):r,t));var QAe=p(Sb=>{"use strict";var hRr=require("net"),Rat=require("tls"),z6=require("http"),OAe=require("https"),Tat=require("events"),dRr=require("assert"),Nat=require("util");Sb.httpOverHttp=Dat;Sb.httpsOverHttp=Oat;Sb.httpOverHttps=Pat;Sb.httpsOverHttps=kat;function Dat(t){var e=new pd(t);return e.request=z6.request,e}function Oat(t){var e=new pd(t);return e.request=z6.request,e.createSocket=PAe,e.defaultPort=443,e}function Pat(t){var e=new pd(t);return e.request=OAe.request,e}function kat(t){var e=new pd(t);return e.request=OAe.request,e.createSocket=PAe,e.defaultPort=443,e}function pd(t){var e=this;e.options=t||{},e.proxyOptions=e.options.proxy||{},e.maxSockets=e.options.maxSockets||z6.Agent.defaultMaxSockets,e.requests=[],e.sockets=[],e.on("free",function(i,n,s,o){for(var a=kAe(n,s,o),c=0,u=e.requests.length;c<u;++c){var l=e.requests[c];if(l.host===a.host&&l.port===a.port){e.requests.splice(c,1),l.request.onSocket(i);return}}i.destroy(),e.removeSocket(i)})}Nat.inherits(pd,Tat.EventEmitter);pd.prototype.addRequest=function(e,r,i,n){var s=this,o=$6({request:e},s.options,kAe(r,i,n));if(s.sockets.length>=this.maxSockets){s.requests.push(o);return}s.createSocket(o,function(a){a.on("free",c),a.on("close",u),a.on("agentRemove",u),e.onSocket(a);function c(){s.emit("free",a,o)}function u(l){s.removeSocket(a),a.removeListener("free",c),a.removeListener("close",u),a.removeListener("agentRemove",u)}})};pd.prototype.createSocket=function(e,r){var i=this,n={};i.sockets.push(n);var s=$6({},i.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:!1,headers:{host:e.host+":"+e.port}});e.localAddress&&(s.localAddress=e.localAddress),s.proxyAuth&&(s.headers=s.headers||{},s.headers["Proxy-Authorization"]="Basic "+new Buffer(s.proxyAuth).toString("base64")),Em("making CONNECT request");var o=i.request(s);o.useChunkedEncodingByDefault=!1,o.once("response",a),o.once("upgrade",c),o.once("connect",u),o.once("error",l),o.end();function a(f){f.upgrade=!0}function c(f,h,d){process.nextTick(function(){u(f,h,d)})}function u(f,h,d){if(o.removeAllListeners(),h.removeAllListeners(),f.statusCode!==200){Em("tunneling socket could not be established, statusCode=%d",f.statusCode),h.destroy();var m=new Error("tunneling socket could not be established, statusCode="+f.statusCode);m.code="ECONNRESET",e.request.emit("error",m),i.removeSocket(n);return}if(d.length>0){Em("got illegal response body from proxy"),h.destroy();var m=new Error("got illegal response body from proxy");m.code="ECONNRESET",e.request.emit("error",m),i.removeSocket(n);return}return Em("tunneling connection has established"),i.sockets[i.sockets.indexOf(n)]=h,r(h)}function l(f){o.removeAllListeners(),Em(`tunneling socket could not be established, cause=%s
`,f.message,f.stack);var h=new Error("tunneling socket could not be established, cause="+f.message);h.code="ECONNRESET",e.request.emit("error",h),i.removeSocket(n)}};pd.prototype.removeSocket=function(e){var r=this.sockets.indexOf(e);if(r!==-1){this.sockets.splice(r,1);var i=this.requests.shift();i&&this.createSocket(i,function(n){i.request.onSocket(n)})}};function PAe(t,e){var r=this;pd.prototype.createSocket.call(r,t,function(i){var n=t.request.getHeader("host"),s=$6({},r.options,{socket:i,servername:n?n.replace(/:.*$/,""):t.host}),o=Rat.connect(0,s);r.sockets[r.sockets.indexOf(i)]=o,e(o)})}function kAe(t,e,r){return typeof t=="string"?{host:t,port:e,localAddress:r}:t}function $6(t){for(var e=1,r=arguments.length;e<r;++e){var i=arguments[e];if(typeof i=="object")for(var n=Object.keys(i),s=0,o=n.length;s<o;++s){var a=n[s];i[a]!==void 0&&(t[a]=i[a])}}return t}var Em;process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)?Em=function(){var t=Array.prototype.slice.call(arguments);typeof t[0]=="string"?t[0]="TUNNEL: "+t[0]:t.unshift("TUNNEL:"),console.error.apply(console,t)}:Em=function(){};Sb.debug=Em});var Av=p((mRr,LAe)=>{LAe.exports=QAe()});var Mr=p((ARr,MAe)=>{MAe.exports={kClose:Symbol("close"),kDestroy:Symbol("destroy"),kDispatch:Symbol("dispatch"),kUrl:Symbol("url"),kWriting:Symbol("writing"),kResuming:Symbol("resuming"),kQueue:Symbol("queue"),kConnect:Symbol("connect"),kConnecting:Symbol("connecting"),kKeepAliveDefaultTimeout:Symbol("default keep alive timeout"),kKeepAliveMaxTimeout:Symbol("max keep alive timeout"),kKeepAliveTimeoutThreshold:Symbol("keep alive timeout threshold"),kKeepAliveTimeoutValue:Symbol("keep alive timeout"),kKeepAlive:Symbol("keep alive"),kHeadersTimeout:Symbol("headers timeout"),kBodyTimeout:Symbol("body timeout"),kServerName:Symbol("server name"),kLocalAddress:Symbol("local address"),kHost:Symbol("host"),kNoRef:Symbol("no ref"),kBodyUsed:Symbol("used"),kBody:Symbol("abstracted request body"),kRunning:Symbol("running"),kBlocking:Symbol("blocking"),kPending:Symbol("pending"),kSize:Symbol("size"),kBusy:Symbol("busy"),kQueued:Symbol("queued"),kFree:Symbol("free"),kConnected:Symbol("connected"),kClosed:Symbol("closed"),kNeedDrain:Symbol("need drain"),kReset:Symbol("reset"),kDestroyed:Symbol.for("nodejs.stream.destroyed"),kResume:Symbol("resume"),kOnError:Symbol("on error"),kMaxHeadersSize:Symbol("max headers size"),kRunningIdx:Symbol("running index"),kPendingIdx:Symbol("pending index"),kError:Symbol("error"),kClients:Symbol("clients"),kClient:Symbol("client"),kParser:Symbol("parser"),kOnDestroyed:Symbol("destroy callbacks"),kPipelining:Symbol("pipelining"),kSocket:Symbol("socket"),kHostHeader:Symbol("host header"),kConnector:Symbol("connector"),kStrictContentLength:Symbol("strict content length"),kMaxRedirections:Symbol("maxRedirections"),kMaxRequests:Symbol("maxRequestsPerClient"),kProxy:Symbol("proxy agent options"),kCounter:Symbol("socket request counter"),kInterceptors:Symbol("dispatch interceptors"),kMaxResponseSize:Symbol("max response size"),kHTTP2Session:Symbol("http2Session"),kHTTP2SessionState:Symbol("http2Session state"),kRetryHandlerDefaultRetry:Symbol("retry agent default retry"),kConstruct:Symbol("constructable"),kListeners:Symbol("listeners"),kHTTPContext:Symbol("http context"),kMaxConcurrentStreams:Symbol("max concurrent streams"),kNoProxyAgent:Symbol("no proxy agent"),kHttpProxyAgent:Symbol("http proxy agent"),kHttpsProxyAgent:Symbol("https proxy agent")}});var $t=p((gRr,uge)=>{"use strict";var FAe=Symbol.for("undici.error.UND_ERR"),Fr=class extends Error{constructor(e){super(e),this.name="UndiciError",this.code="UND_ERR"}static[Symbol.hasInstance](e){return e&&e[FAe]===!0}[FAe]=!0},UAe=Symbol.for("undici.error.UND_ERR_CONNECT_TIMEOUT"),W6=class extends Fr{constructor(e){super(e),this.name="ConnectTimeoutError",this.message=e||"Connect Timeout Error",this.code="UND_ERR_CONNECT_TIMEOUT"}static[Symbol.hasInstance](e){return e&&e[UAe]===!0}[UAe]=!0},qAe=Symbol.for("undici.error.UND_ERR_HEADERS_TIMEOUT"),J6=class extends Fr{constructor(e){super(e),this.name="HeadersTimeoutError",this.message=e||"Headers Timeout Error",this.code="UND_ERR_HEADERS_TIMEOUT"}static[Symbol.hasInstance](e){return e&&e[qAe]===!0}[qAe]=!0},GAe=Symbol.for("undici.error.UND_ERR_HEADERS_OVERFLOW"),Y6=class extends Fr{constructor(e){super(e),this.name="HeadersOverflowError",this.message=e||"Headers Overflow Error",this.code="UND_ERR_HEADERS_OVERFLOW"}static[Symbol.hasInstance](e){return e&&e[GAe]===!0}[GAe]=!0},HAe=Symbol.for("undici.error.UND_ERR_BODY_TIMEOUT"),K6=class extends Fr{constructor(e){super(e),this.name="BodyTimeoutError",this.message=e||"Body Timeout Error",this.code="UND_ERR_BODY_TIMEOUT"}static[Symbol.hasInstance](e){return e&&e[HAe]===!0}[HAe]=!0},jAe=Symbol.for("undici.error.UND_ERR_RESPONSE_STATUS_CODE"),X6=class extends Fr{constructor(e,r,i,n){super(e),this.name="ResponseStatusCodeError",this.message=e||"Response Status Code Error",this.code="UND_ERR_RESPONSE_STATUS_C Line truncated
`)||t.includes("\r")||t.includes("\0"))===!1}function Kut(t,e){let{headersList:r}=e,i=(r.get("referrer-policy",!0)??"").split(","),n="";if(i.length>0)for(let s=i.length;s!==0;s--){let o=i[s-1].trim();if(kut.has(o)){n=o;break}}n!==""&&(t.referrerPolicy=n)}function Xut(){return"allowed"}function Zut(){return"success"}function elt(){return"success"}function tlt(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}function rlt(t){let e=t.origin;if(!(e==="client"||e===void 0)){if(t.responseTainting==="cors"||t.mode==="websocket")t.headersList.append("origin",e,!0);else if(t.method!=="GET"&&t.method!=="HEAD"){switch(t.referrerPolicy){case"no-referrer":e=null;break;case"no-referrer-when-downgrade":case"strict-origin":case"strict-origin-when-cross-origin":t.origin&&Hj(t.origin)&&!Hj(Bv(t))&&(e=null);break;case"same-origin":qD(t,Bv(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}function Pb(t,e){return t}function ilt(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:Pb(t.domainLookupStartTime,r),domainLookupEndTime:Pb(t.domainLookupEndTime,r),connectionStartTime:Pb(t.connectionStartTime,r),connectionEndTime:Pb(t.connectionEndTime,r),secureConnectionStartTime:Pb(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}function nlt(t){return Pb(Uut.now(),t)}function slt(t){return{startTime:t.startTime??0,redirectStartTime:0,redirectEndTime:0,postRedirectStartTime:t.startTime??0,finalServiceWorkerStartTime:0,finalNetworkResponseStartTime:0,finalNetworkRequestStartTime:0,endTime:0,encodedBodySize:0,decodedBodySize:0,finalConnectionTimingInfo:null}}function Iye(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function olt(t){return{referrerPolicy:t.referrerPolicy}}function alt(t){let e=t.referrerPolicy;Jg(e);let r=null;if(t.referrer==="client"){let a=gye();if(!a||a.origin==="null")return"no-referrer";r=new URL(a)}else t.referrer instanceof URL&&(r=t.referrer);let i=Gj(r),n=Gj(r,!0);i.toString().length>4096&&(i=n);let s=qD(t,i),o=Sv(i)&&!Sv(t.url);switch(e){case"origin":return n??Gj(r,!0);case"unsafe-url":return i;case"same-origin":return s?n:"no-referrer";case"origin-when-cross-origin":return s?i:n;case"strict-origin-when-cross-origin":{let a=Bv(t);return qD(i,a)?i:Sv(i)&&!Sv(a)?"no-referrer":n}default:return o?"no-referrer":n}}function Gj(t,e){return Jg(t instanceof URL),t=new URL(t),t.protocol==="file:"||t.protocol==="about:"||t.protocol==="blank:"?"no-referrer":(t.username="",t.password="",t.hash="",e&&(t.pathname="",t.search=""),t)}function Sv(t){if(!(t instanceof URL))return!1;if(t.href==="about:blank"||t.href==="about:srcdoc"||t.protocol==="data:"||t.protocol==="file:")return!0;return e(t.origin);function e(r){if(r==null||r==="null")return!1;let i=new URL(r);return!!(i.protocol==="https:"||i.protocol==="wss:"||/^127(?:\.[0-9]+){0,2}\.[0-9]+$|^\[(?:0*:)*?:?0*1\]$/.test(i.hostname)||i.hostname==="localhost"||i.hostname.includes("localhost.")||i.hostname.endsWith(".localhost"))}}function clt(t,e){if(UD===void 0)return!0;let r=Sye(e);if(r==="no metadata"||r.length===0)return!0;let i=llt(r),n=flt(r,i);for(let s of n){let o=s.algo,a=s.hash,c=UD.createHash(o).update(t).digest("base64");if(c[c.length-1]==="="&&(c[c.length-2]==="="?c=c.slice(0,-2):c=c.slice(0,-1)),hlt(c,a))return!0}return!1}var ult=/(?<algo>sha256|sha384|sha512)-((?<hash>[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;function Sye(t){let e=[],r=!0;for(let i of t.split(" ")){r=!1;let n=ult.exec(i);if(n===null||n.groups===void 0||n.groups.algo===void 0)continue;let s=n.groups.algo.toLowerCase();Eye.includes(s)&&e.push(n.groups)}return r===!0?"no metadata":e}function llt(t){let e=t[0].algo;if(e[3]==="5")return e;for(let r=1;r<t.length;++r){let i=t[r];if(i.algo[3]==="5"){e="sha512";break}else{if(e[3]==="3")continue;i.algo[3]==="3"&&(e="sha384")}}return e}function flt(t,e){if(t.length===1)return t;let r=0;for(let i=0;i<t.length;++i)t[i].algo===e&&(t[r++]=t[i]);return t.length=r,t}function hlt(t,e){if(t.length!==e.length)return!1;for(let r=0;r<t.length;++r)if(t[r]!==e[r]){if(t[r]==="+"&&e[r]==="-"||t[r]==="/"&&e[r]==="_")continue;return!1}return!0}function dlt(t){}function qD(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}function plt(){let t,e;return{promise:new Promise((i,n)=>{t=i,e=n}),resolve:t,reject:e}}function mlt(t){return t.controller.state==="aborted"}function Alt(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}function glt(t){return Hut[t.toLowerCase()]??t}function ylt(t){let e=JSON.stringify(t);if(e===void 0)throw new TypeError("Value is not JSON serializable");return Jg(typeof e=="string"),e}var Elt=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function Bye(t,e,r=0,i=1){class n{ Line truncated
`);function Jlt(t){for(let e=0;e<t.length;++e)if((t.charCodeAt(e)&-128)!==0)return!1;return!0}function Ylt(t){let e=t.length;if(e<27||e>70)return!1;for(let r=0;r<e;++r){let i=t.charCodeAt(r);if(!(i>=48&&i<=57||i>=65&&i<=90||i>=97&&i<=122||i===39||i===45||i===95))return!1}return!0}function Klt(t,e){HD(e!=="failure"&&e.essence==="multipart/form-data");let r=e.parameters.get("boundary");if(r===void 0)return"failure";let i=Buffer.from(`--${r}`,"utf8"),n=[],s={position:0};for(;t[s.position]===13&&t[s.position+1]===10;)s.position+=2;let o=t.length;for(;t[o-1]===10&&t[o-2]===13;)o-=2;for(o!==t.length&&(t=t.subarray(0,o));;){if(t.subarray(s.position,s.position+i.length).equals(i))s.position+=i.length;else return"failure";if(s.position===t.length-2&&jD(t,$lt,s)||s.position===t.length-4&&jD(t,Wlt,s))return n;if(t[s.position]!==13||t[s.position+1]!==10)return"failure";s.position+=2;let a=Xlt(t,s);if(a==="failure")return"failure";let{name:c,filename:u,contentType:l,encoding:f}=a;s.position+=2;let h;{let m=t.indexOf(i.subarray(2),s.position);if(m===-1)return"failure";h=t.subarray(s.position,m-4),s.position+=h.length,f==="base64"&&(h=Buffer.from(h.toString(),"base64"))}if(t[s.position]!==13||t[s.position+1]!==10)return"failure";s.position+=2;let d;u!==null?(l??="text/plain",Jlt(l)||(l=""),d=new Vlt([h],u,{type:l})):d=Ult(Buffer.from(h)),HD(Lye(c)),HD(typeof d=="string"&&Lye(d)||Glt(d)),n.push(Hlt(c,d,u))}}function Xlt(t,e){let r=null,i=null,n=null,s=null;for(;;){if(t[e.position]===13&&t[e.position+1]===10)return r===null?"failure":{name:r,filename:i,contentType:n,encoding:s};let o=Qb(a=>a!==10&&a!==13&&a!==58,t,e);if(o=Yj(o,!0,!0,a=>a===9||a===32),!qlt.test(o.toString())||t[e.position]!==58)return"failure";switch(e.position++,Qb(a=>a===32||a===9,t,e),Flt(o)){case"content-disposition":{if(r=i=null,!jD(t,zlt,e)||(e.position+=17,r=Uye(t,e),r===null))return"failure";if(jD(t,Fye,e)){let a=e.position+Fye.length;if(t[a]===42&&(e.position+=1,a+=1),t[a]!==61||t[a+1]!==34||(e.position+=12,i=Uye(t,e),i===null))return"failure"}break}case"content-type":{let a=Qb(c=>c!==10&&c!==13,t,e);a=Yj(a,!1,!0,c=>c===9||c===32),n=Mye(a);break}case"content-transfer-encoding":{let a=Qb(c=>c!==10&&c!==13,t,e);a=Yj(a,!1,!0,c=>c===9||c===32),s=Mye(a);break}default:Qb(a=>a!==10&&a!==13,t,e)}if(t[e.position]!==13&&t[e.position+1]!==10)return"failure";e.position+=2}}function Uye(t,e){HD(t[e.position-1]===34);let r=Qb(i=>i!==10&&i!==13&&i!==34,t,e);return t[e.position]!==34?null:(e.position++,r=new TextDecoder().decode(r).replace(/%0A/ig,`
`).replace(/%0D/ig,"\r").replace(/%22/g,'"'),r)}function Qb(t,e,r){let i=r.position;for(;i<e.length&&t(e[i]);)++i;return e.subarray(r.position,r.position=i)}function Yj(t,e,r,i){let n=0,s=t.length-1;if(e)for(;n<t.length&&i(t[n]);)n++;if(r)for(;s>0&&i(t[s]);)s--;return n===0&&s===t.length-1?t:t.subarray(n,s+1)}function jD(t,e,r){if(t.length<e.length)return!1;for(let i=0;i<e.length;i++)if(e[i]!==t[r.position+i])return!1;return!0}qye.exports={multipartFormDataParser:Klt,validateBoundary:Ylt}});var Fb=p((GRr,Xye)=>{"use strict";var xv=wt(),{ReadableStreamFrom:Zlt,isBlobLike:Hye,isReadableStreamLike:eft,readableStreamClose:tft,createDeferredPromise:rft,fullyReadBody:ift,extractMimeType:nft,utf8DecodeBytes:zye}=Ma(),{FormData:jye}=_v(),{kState:Mb}=bm(),{webidl:sft}=rs(),{Blob:oft}=require("node:buffer"),Kj=require("node:assert"),{isErrored:$ye,isDisturbed:aft}=require("node:stream"),{isArrayBuffer:cft}=require("node:util/types"),{serializeAMimeType:uft}=ea(),{multipartFormDataParser:lft}=Gye(),Xj;try{let t=require("node:crypto");Xj=e=>t.randomInt(0,e)}catch{Xj=t=>Math.floor(Math.random(t))}var VD=new TextEncoder;function fft(){}var Wye=globalThis.FinalizationRegistry&&process.version.indexOf("v18")!==0,Jye;Wye&&(Jye=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!aft(e)&&!$ye(e)&&e.cancel("Response object has been garbage collected").catch(fft)}));function Yye(t,e=!1){let r=null;t instanceof ReadableStream?r=t:Hye(t)?r=t.stream():r=new ReadableStream({async pull(c){let u=typeof n=="string"?VD.encode(n):n;u.byteLength&&c.enqueue(u),queueMicrotask(()=>tft(c))},start(){},type:"bytes"}),Kj(eft(r));let i=null,n=null,s=null,o=null;if(typeof t=="string")n=t,o="text/plain;charset=UTF-8";else if(t instanceof URLSearchParams)n=t.toString(),o="application/x-www-form-urlencoded;charset=UTF-8";else if(cft(t))n=new Uint8Array(t.slice());else if(ArrayBuffer.isView(t))n=new Uint8Array(t.buffer.slice(t.byteOffset,t.byteOffset+t.byteLength));else if(xv.isFormDataLike(t)){let c=`----formdata-undici-0${`${Xj(1e11)}`.padStart(11,"0")}`,u=`--${c}\r
Content-Disposition: form-data`;let l=y=>y.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22"),f=y=>y.replace(/\r?\n|\r/g,`\r
`),h=[],d=new Uint8Array([13,10]);s=0;let m=!1;for(let[y,g]of t)if(typeof g=="string"){let E=DD.encode(u+`; name="${l(f(y))}"\r
`),h=[],d=new Uint8Array([13,10]);s=0;let m=!1;for(let[y,g]of t)if(typeof g=="string"){let E=VD.encode(u+`; name="${l(f(y))}"\r
\r
${f(g)}\r
`);h.push(E),s+=E.byteLength}else{let E=DD.encode(`${u}; name="${l(f(y))}"`+(g.name?`; filename="${l(g.name)}"`:"")+`\r
`);h.push(E),s+=E.byteLength}else{let E=VD.encode(`${u}; name="${l(f(y))}"`+(g.name?`; filename="${l(g.name)}"`:"")+`\r
Content-Type: ${g.type||"application/octet-stream"}\r
\r
`);h.push(E,g,d),typeof g.size=="number"?s+=E.byteLength+g.size+d.byteLength:m=!0}let A=DD.encode(`--${c}--\r
`);h.push(A),s+=A.byteLength,m&&(s=null),n=t,i=async function*(){for(let y of h)y.stream?yield*y.stream():yield y},o=`multipart/form-data; boundary=${c}`}else if(_ye(t))n=t,s=t.size,t.type&&(o=t.type);else if(typeof t[Symbol.asyncIterator]=="function"){if(e)throw new TypeError("keepalive");if(gv.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=t instanceof ReadableStream?t:Tlt(t)}if((typeof n=="string"||gv.isBuffer(n))&&(s=Buffer.byteLength(n)),i!=null){let c;r=new ReadableStream({async start(){c=i(t)[Symbol.asyncIterator]()},async pull(u){let{value:l,done:f}=await c.next();if(f)queueMicrotask(()=>{u.close(),u.byobRequest?.respond(0)});else if(!Dye(r)){let h=new Uint8Array(l);h.byteLength&&u.enqueue(h)}return u.desiredSize>0},async cancel(u){await c.return()},type:"bytes"})}return[{stream:r,source:n,length:s},o]}function Hlt(t,e=!1){return t instanceof ReadableStream&&(Lj(!gv.isDisturbed(t),"The body has already been consumed."),Lj(!t.locked,"The stream is locked.")),kye(t,e)}function jlt(t,e){let[r,i]=e.stream.tee();return e.stream=r,{stream:i,length:e.length,source:e.source}}function Vlt(t){if(t.aborted)throw new DOMException("The operation was aborted.","AbortError")}function zlt(t){return{blob(){return Rb(this,r=>{let i=Tye(this);return i===null?i="":i&&(i=Ult(i)),new Llt([r],{type:i})},t)},arrayBuffer(){return Rb(this,r=>new Uint8Array(r).buffer,t)},text(){return Rb(this,Nye,t)},json(){return Rb(this,Wlt,t)},formData(){return Rb(this,r=>{let i=Tye(this);if(i!==null)switch(i.essence){case"multipart/form-data":{let n=qlt(r,i);if(n==="failure")throw new TypeError("Failed to parse body as FormData.");let s=new Rye;return s[Tb]=n,s}case"application/x-www-form-urlencoded":{let n=new URLSearchParams(r.toString()),s=new Rye;for(let[o,a]of n)s.append(o,a);return s}}throw new TypeError('Content-Type was not one of "multipart/form-data" or "application/x-www-form-urlencoded".')},t)},bytes(){return Rb(this,r=>new Uint8Array(r),t)}}}function $lt(t){Object.assign(t.prototype,zlt(t))}async function Rb(t,e,r){if(Qlt.brandCheck(t,r),Qye(t))throw new TypeError("Body is unusable: Body has already been read");Vlt(t[Tb]);let i=Olt(),n=o=>i.reject(o),s=o=>{try{i.resolve(e(o))}catch(a){n(a)}};return t[Tb].body==null?(s(Buffer.allocUnsafe(0)),i.promise):(await Plt(t[Tb].body,s,n),i.promise)}function Qye(t){let e=t[Tb].body;return e!=null&&(e.stream.locked||gv.isDisturbed(e.stream))}function Wlt(t){return JSON.parse(Nye(t))}function Tye(t){let e=t[Tb].headersList,r=klt(e);return r==="failure"?null:r}Lye.exports={extractBody:kye,safelyExtractBody:Hlt,cloneBody:jlt,mixinBody:$lt,streamRegistry:Pye,hasFinalizationRegistry:Oye,bodyUnusable:Qye}});var Wye=p((K_r,$ye)=>{"use strict";var Je=require("node:assert"),it=wt(),{channels:Fye}=yb(),Mj=bj(),{RequestContentLengthMismatchError:jg,ResponseContentLengthMismatchError:Jlt,RequestAbortedError:jye,HeadersTimeoutError:Ylt,HeadersOverflowError:Klt,SocketError:FD,InformationalError:Db,BodyTimeoutError:Xlt,HTTPParserError:Zlt,ResponseExceededMaxSizeError:eft}=$t(),{kUrl:Vye,kReset:Wo,kClient:Hj,kParser:ni,kBlocking:bv,kRunning:gs,kPending:tft,kSize:Mye,kWriting:hm,kQueue:zu,kNoRef:yv,kKeepAliveDefaultTimeout:rft,kHostHeader:ift,kPendingIdx:nft,kRunningIdx:Nc,kError:Dc,kPipelining:QD,kSocket:Ob,kKeepAliveTimeoutValue:MD,kMaxHeadersSize:Uj,kKeepAliveMaxTimeout:sft,kKeepAliveTimeoutThreshold:oft,kHeadersTimeout:aft,kBodyTimeout:cft,kStrictContentLength:jj,kMaxRequests:Uye,kCounter:uft,kMaxResponseSize:lft,kOnError:fft,kResume:fm,kHTTPContext:zye}=Fr(),Wl=Pge(),hft=Buffer.alloc(0),OD=Buffer[Symbol.species],PD=it.addListener,dft=it.removeAllListeners,qj;async function pft(){let t=process.env.JEST_WORKER_ID?Ij():void 0,e;try{e=await WebAssembly.compile(Lge())}catch{e=await WebAssembly.compile(t||Ij())}return await WebAssembly.instantiate(e,{env:{wasm_on_url:(r,i,n)=>0,wasm_on_status:(r,i,n)=>{Je(en.ptr===r);let s=i-Yl+Jl.byteOffset;return en.onStatus(new OD(Jl.buffer,s,n))||0},wasm_on_message_begin:r=>(Je(en.ptr===r),en.onMessageBegin()||0),wasm_on_header_field:(r,i,n)=>{Je(en.ptr===r);let s=i-Yl+Jl.byteOffset;return en.onHeaderField(new OD(Jl.buffer,s,n))||0},wasm_on_header_value:(r,i,n)=>{Je(en.ptr===r);let s=i-Yl+Jl.byteOffset;return en.onHeaderValue(new OD(Jl.buffer,s,n))||0},wasm_on_headers_complete:(r,i,n,s)=>(Je(en.ptr===r),en.onHeadersComplete(i,!!n,!!s)||0),wasm_on_body:(r,i,n)=>{Je(en.ptr===r);let s=i-Yl+Jl.byteOffset;return en.onBody(new OD(Jl.buffer,s,n))||0},wasm_on_message_complete:r=>(Je(en.ptr===r),en.onMessageComplete()||0)}})}var Gj=null,Vj=pft();Vj.catch();var en=null,Jl=null,kD=0,Yl=null,mft=0,Ev=1,Pb=2|Ev,LD=4|Ev,zj=8|mft,$j=class{constructor(e,r,{exports:i}){Je(Number.isFinite(e[Uj])&&e[Uj]>0),this.llhttp=i,this.ptr=this.llhttp.llhttp_alloc(Wl.TYPE.RESPONSE),this.client=e,this.socket=r,this.timeout=null,this.timeoutValue=null,this.timeoutType=null,this.statusCode=null,this.statusText="",this.upgrade=!1,this.headers= Line truncated
`);h.push(E,g,d),typeof g.size=="number"?s+=E.byteLength+g.size+d.byteLength:m=!0}let A=VD.encode(`--${c}--\r
`);h.push(A),s+=A.byteLength,m&&(s=null),n=t,i=async function*(){for(let y of h)y.stream?yield*y.stream():yield y},o=`multipart/form-data; boundary=${c}`}else if(Hye(t))n=t,s=t.size,t.type&&(o=t.type);else if(typeof t[Symbol.asyncIterator]=="function"){if(e)throw new TypeError("keepalive");if(xv.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=t instanceof ReadableStream?t:Zlt(t)}if((typeof n=="string"||xv.isBuffer(n))&&(s=Buffer.byteLength(n)),i!=null){let c;r=new ReadableStream({async start(){c=i(t)[Symbol.asyncIterator]()},async pull(u){let{value:l,done:f}=await c.next();if(f)queueMicrotask(()=>{u.close(),u.byobRequest?.respond(0)});else if(!$ye(r)){let h=new Uint8Array(l);h.byteLength&&u.enqueue(h)}return u.desiredSize>0},async cancel(u){await c.return()},type:"bytes"})}return[{stream:r,source:n,length:s},o]}function hft(t,e=!1){return t instanceof ReadableStream&&(Kj(!xv.isDisturbed(t),"The body has already been consumed."),Kj(!t.locked,"The stream is locked.")),Yye(t,e)}function dft(t,e){let[r,i]=e.stream.tee();return e.stream=r,{stream:i,length:e.length,source:e.source}}function pft(t){if(t.aborted)throw new DOMException("The operation was aborted.","AbortError")}function mft(t){return{blob(){return Lb(this,r=>{let i=Vye(this);return i===null?i="":i&&(i=uft(i)),new oft([r],{type:i})},t)},arrayBuffer(){return Lb(this,r=>new Uint8Array(r).buffer,t)},text(){return Lb(this,zye,t)},json(){return Lb(this,gft,t)},formData(){return Lb(this,r=>{let i=Vye(this);if(i!==null)switch(i.essence){case"multipart/form-data":{let n=lft(r,i);if(n==="failure")throw new TypeError("Failed to parse body as FormData.");let s=new jye;return s[Mb]=n,s}case"application/x-www-form-urlencoded":{let n=new URLSearchParams(r.toString()),s=new jye;for(let[o,a]of n)s.append(o,a);return s}}throw new TypeError('Content-Type was not one of "multipart/form-data" or "application/x-www-form-urlencoded".')},t)},bytes(){return Lb(this,r=>new Uint8Array(r),t)}}}function Aft(t){Object.assign(t.prototype,mft(t))}async function Lb(t,e,r){if(sft.brandCheck(t,r),Kye(t))throw new TypeError("Body is unusable: Body has already been read");pft(t[Mb]);let i=rft(),n=o=>i.reject(o),s=o=>{try{i.resolve(e(o))}catch(a){n(a)}};return t[Mb].body==null?(s(Buffer.allocUnsafe(0)),i.promise):(await ift(t[Mb].body,s,n),i.promise)}function Kye(t){let e=t[Mb].body;return e!=null&&(e.stream.locked||xv.isDisturbed(e.stream))}function gft(t){return JSON.parse(zye(t))}function Vye(t){let e=t[Mb].headersList,r=nft(e);return r==="failure"?null:r}Xye.exports={extractBody:Yye,safelyExtractBody:hft,cloneBody:dft,mixinBody:Aft,streamRegistry:Jye,hasFinalizationRegistry:Wye,bodyUnusable:Kye}});var uEe=p((HRr,cEe)=>{"use strict";var Je=require("node:assert"),it=wt(),{channels:Zye}=vb(),Zj=Pj(),{RequestContentLengthMismatchError:Yg,ResponseContentLengthMismatchError:yft,RequestAbortedError:sEe,HeadersTimeoutError:Eft,HeadersOverflowError:bft,SocketError:KD,InformationalError:Ub,BodyTimeoutError:wft,HTTPParserError:Cft,ResponseExceededMaxSizeError:Ift}=$t(),{kUrl:oEe,kReset:ta,kClient:iV,kParser:ni,kBlocking:Nv,kRunning:Is,kPending:Sft,kSize:eEe,kWriting:Cm,kQueue:Zu,kNoRef:Rv,kKeepAliveDefaultTimeout:Bft,kHostHeader:vft,kPendingIdx:_ft,kRunningIdx:Lc,kError:Mc,kPipelining:JD,kSocket:qb,kKeepAliveTimeoutValue:XD,kMaxHeadersSize:eV,kKeepAliveMaxTimeout:xft,kKeepAliveTimeoutThreshold:Rft,kHeadersTimeout:Tft,kBodyTimeout:Nft,kStrictContentLength:nV,kMaxRequests:tEe,kCounter:Dft,kMaxResponseSize:Oft,kOnError:Pft,kResume:wm,kHTTPContext:aEe}=Mr(),tf=Jge(),kft=Buffer.alloc(0),zD=Buffer[Symbol.species],$D=it.addListener,Qft=it.removeAllListeners,tV;async function Lft(){let t=process.env.JEST_WORKER_ID?Lj():void 0,e;try{e=await WebAssembly.compile(Xge())}catch{e=await WebAssembly.compile(t||Lj())}return await WebAssembly.instantiate(e,{env:{wasm_on_url:(r,i,n)=>0,wasm_on_status:(r,i,n)=>{Je(sn.ptr===r);let s=i-nf+rf.byteOffset;return sn.onStatus(new zD(rf.buffer,s,n))||0},wasm_on_message_begin:r=>(Je(sn.ptr===r),sn.onMessageBegin()||0),wasm_on_header_field:(r,i,n)=>{Je(sn.ptr===r);let s=i-nf+rf.byteOffset;return sn.onHeaderField(new zD(rf.buffer,s,n))||0},wasm_on_header_value:(r,i,n)=>{Je(sn.ptr===r);let s=i-nf+rf.byteOffset;return sn.onHeaderValue(new zD(rf.buffer,s,n))||0},wasm_on_headers_complete:(r,i,n,s)=>(Je(sn.ptr===r),sn.onHeadersComplete(i,!!n,!!s)||0),wasm_on_body:(r,i,n)=>{Je(sn.ptr===r);let s=i-nf+rf.byteOffset;return sn.onBody(new zD(rf.buffer,s,n))||0},wasm_on_message_complete:r=>(Je(sn.ptr===r),sn.onMessageComplete()||0)}})}var rV=null,sV=Lft();sV.catch();var sn=null,rf=null,WD=0,nf=null,Mft=0,Tv=1,Gb=2|Tv,YD=4|Tv,oV=8|Mft,aV=class{constructor(e,r,{exports:i}){Je(Number.isFinite(e[eV])&&e[eV]>0),this.llhttp=i,this.ptr=this.llhttp.llhttp_alloc(tf.TYPE.RESPONSE),this.client=e,this.socket=r,this.timeout=null,this.timeoutValue=null,this.timeoutType=null,this.statusCode=null,this.statusText="",this.upgrade=!1,this.headers= Line truncated
`;if(typeof n=="string"?A+=`host: ${n}\r
`:A+=t[ift],s?A+=`connection: upgrade\r
`:A+=t[vft],s?A+=`connection: upgrade\r
upgrade: ${s}\r
`:t[QD]&&!d[Wo]?A+=`connection: keep-alive\r
`:t[JD]&&!d[ta]?A+=`connection: keep-alive\r
`:A+=`connection: close\r
`,Array.isArray(u))for(let y=0;y<u.length;y+=2){let g=u[y+0],E=u[y+1];if(Array.isArray(E))for(let C=0;C<E.length;C++)A+=`${g}: ${E[C]}\r
`;else A+=`${g}: ${E}\r
`}return Fye.sendHeaders.hasSubscribers&&Fye.sendHeaders.publish({request:e,headers:A,socket:d}),!c||h===0?Gye(m,null,t,e,d,l,A,f):it.isBuffer(c)?Gye(m,c,t,e,d,l,A,f):it.isBlobLike(c)?typeof c.stream=="function"?Hye(m,c.stream(),t,e,d,l,A,f):wft(m,c,t,e,d,l,A,f):it.isStream(c)?bft(m,c,t,e,d,l,A,f):it.isIterable(c)?Hye(m,c,t,e,d,l,A,f):Je(!1),!0}function bft(t,e,r,i,n,s,o,a){Je(s!==0||r[gs]===0,"stream body cannot be pipelined");let c=!1,u=new UD({abort:t,socket:n,request:i,contentLength:s,client:r,expectsPayload:a,header:o}),l=function(m){if(!c)try{!u.write(m)&&this.pause&&this.pause()}catch(A){it.destroy(this,A)}},f=function(){c||e.resume&&e.resume()},h=function(){if(queueMicrotask(()=>{e.removeListener("error",d)}),!c){let m=new jye;queueMicrotask(()=>d(m))}},d=function(m){if(!c){if(c=!0,Je(n.destroyed||n[hm]&&r[gs]<=1),n.off("drain",f).off("error",d),e.removeListener("data",l).removeListener("end",d).removeListener("close",h),!m)try{u.end()}catch(A){m=A}u.destroy(m),m&&(m.code!=="UND_ERR_INFO"||m.message!=="reset")?it.destroy(e,m):it.destroy(e)}};e.on("data",l).on("end",d).on("error",d).on("close",h),e.resume&&e.resume(),n.on("drain",f).on("error",d),e.errorEmitted??e.errored?setImmediate(()=>d(e.errored)):(e.endEmitted??e.readableEnded)&&setImmediate(()=>d(null)),(e.closeEmitted??e.closed)&&setImmediate(h)}function Gye(t,e,r,i,n,s,o,a){try{e?it.isBuffer(e)&&(Je(s===e.byteLength,"buffer body must have content length"),n.cork(),n.write(`${o}content-length: ${s}\r
`}return Zye.sendHeaders.hasSubscribers&&Zye.sendHeaders.publish({request:e,headers:A,socket:d}),!c||h===0?iEe(m,null,t,e,d,l,A,f):it.isBuffer(c)?iEe(m,c,t,e,d,l,A,f):it.isBlobLike(c)?typeof c.stream=="function"?nEe(m,c.stream(),t,e,d,l,A,f):jft(m,c,t,e,d,l,A,f):it.isStream(c)?Hft(m,c,t,e,d,l,A,f):it.isIterable(c)?nEe(m,c,t,e,d,l,A,f):Je(!1),!0}function Hft(t,e,r,i,n,s,o,a){Je(s!==0||r[Is]===0,"stream body cannot be pipelined");let c=!1,u=new ZD({abort:t,socket:n,request:i,contentLength:s,client:r,expectsPayload:a,header:o}),l=function(m){if(!c)try{!u.write(m)&&this.pause&&this.pause()}catch(A){it.destroy(this,A)}},f=function(){c||e.resume&&e.resume()},h=function(){if(queueMicrotask(()=>{e.removeListener("error",d)}),!c){let m=new sEe;queueMicrotask(()=>d(m))}},d=function(m){if(!c){if(c=!0,Je(n.destroyed||n[Cm]&&r[Is]<=1),n.off("drain",f).off("error",d),e.removeListener("data",l).removeListener("end",d).removeListener("close",h),!m)try{u.end()}catch(A){m=A}u.destroy(m),m&&(m.code!=="UND_ERR_INFO"||m.message!=="reset")?it.destroy(e,m):it.destroy(e)}};e.on("data",l).on("end",d).on("error",d).on("close",h),e.resume&&e.resume(),n.on("drain",f).on("error",d),e.errorEmitted??e.errored?setImmediate(()=>d(e.errored)):(e.endEmitted??e.readableEnded)&&setImmediate(()=>d(null)),(e.closeEmitted??e.closed)&&setImmediate(h)}function iEe(t,e,r,i,n,s,o,a){try{e?it.isBuffer(e)&&(Je(s===e.byteLength,"buffer body must have content length"),n.cork(),n.write(`${o}content-length: ${s}\r
\r
`,"latin1"),n.write(e),n.uncork(),i.onBodySent(e),!a&&i.reset!==!1&&(n[Wo]=!0)):s===0?n.write(`${o}content-length: 0\r
`,"latin1"),n.write(e),n.uncork(),i.onBodySent(e),!a&&i.reset!==!1&&(n[ta]=!0)):s===0?n.write(`${o}content-length: 0\r
\r
`,"latin1"):(Je(s===null,"no body must not have content length"),n.write(`${o}\r
`,"latin1")),i.onRequestSent(),r[fm]()}catch(c){t(c)}}async function wft(t,e,r,i,n,s,o,a){Je(s===e.size,"blob body must have content length");try{if(s!=null&&s!==e.size)throw new jg;let c=Buffer.from(await e.arrayBuffer());n.cork(),n.write(`${o}content-length: ${s}\r
`,"latin1")),i.onRequestSent(),r[wm]()}catch(c){t(c)}}async function jft(t,e,r,i,n,s,o,a){Je(s===e.size,"blob body must have content length");try{if(s!=null&&s!==e.size)throw new Yg;let c=Buffer.from(await e.arrayBuffer());n.cork(),n.write(`${o}content-length: ${s}\r
\r
`,"latin1"),n.write(c),n.uncork(),i.onBodySent(c),i.onRequestSent(),!a&&i.reset!==!1&&(n[Wo]=!0),r[fm]()}catch(c){t(c)}}async function Hye(t,e,r,i,n,s,o,a){Je(s!==0||r[gs]===0,"iterator body cannot be pipelined");let c=null;function u(){if(c){let h=c;c=null,h()}}let l=()=>new Promise((h,d)=>{Je(c===null),n[Dc]?d(n[Dc]):c=h});n.on("close",u).on("drain",u);let f=new UD({abort:t,socket:n,request:i,contentLength:s,client:r,expectsPayload:a,header:o});try{for await(let h of e){if(n[Dc])throw n[Dc];f.write(h)||await l()}f.end()}catch(h){f.destroy(h)}finally{n.off("close",u).off("drain",u)}}var UD=class{constructor({abort:e,socket:r,request:i,contentLength:n,client:s,expectsPayload:o,header:a}){this.socket=r,this.request=i,this.contentLength=n,this.client=s,this.bytesWritten=0,this.expectsPayload=o,this.header=a,this.abort=e,r[hm]=!0}write(e){let{socket:r,request:i,contentLength:n,client:s,bytesWritten:o,expectsPayload:a,header:c}=this;if(r[Dc])throw r[Dc];if(r.destroyed)return!1;let u=Buffer.byteLength(e);if(!u)return!0;if(n!==null&&o+u>n){if(s[jj])throw new jg;process.emitWarning(new jg)}r.cork(),o===0&&(!a&&i.reset!==!1&&(r[Wo]=!0),n===null?r.write(`${c}transfer-encoding: chunked\r
`,"latin1"),n.write(c),n.uncork(),i.onBodySent(c),i.onRequestSent(),!a&&i.reset!==!1&&(n[ta]=!0),r[wm]()}catch(c){t(c)}}async function nEe(t,e,r,i,n,s,o,a){Je(s!==0||r[Is]===0,"iterator body cannot be pipelined");let c=null;function u(){if(c){let h=c;c=null,h()}}let l=()=>new Promise((h,d)=>{Je(c===null),n[Mc]?d(n[Mc]):c=h});n.on("close",u).on("drain",u);let f=new ZD({abort:t,socket:n,request:i,contentLength:s,client:r,expectsPayload:a,header:o});try{for await(let h of e){if(n[Mc])throw n[Mc];f.write(h)||await l()}f.end()}catch(h){f.destroy(h)}finally{n.off("close",u).off("drain",u)}}var ZD=class{constructor({abort:e,socket:r,request:i,contentLength:n,client:s,expectsPayload:o,header:a}){this.socket=r,this.request=i,this.contentLength=n,this.client=s,this.bytesWritten=0,this.expectsPayload=o,this.header=a,this.abort=e,r[Cm]=!0}write(e){let{socket:r,request:i,contentLength:n,client:s,bytesWritten:o,expectsPayload:a,header:c}=this;if(r[Mc])throw r[Mc];if(r.destroyed)return!1;let u=Buffer.byteLength(e);if(!u)return!0;if(n!==null&&o+u>n){if(s[nV])throw new Yg;process.emitWarning(new Yg)}r.cork(),o===0&&(!a&&i.reset!==!1&&(r[ta]=!0),n===null?r.write(`${c}transfer-encoding: chunked\r
`,"latin1"):r.write(`${c}content-length: ${n}\r
\r
`,"latin1")),n===null&&r.write(`\r
${u.toString(16)}\r
`,"latin1"),this.bytesWritten+=u;let l=r.write(e);return r.uncork(),i.onBodySent(e),l||r[ni].timeout&&r[ni].timeoutType===Pb&&r[ni].timeout.refresh&&r[ni].timeout.refresh(),l}end(){let{socket:e,contentLength:r,client:i,bytesWritten:n,expectsPayload:s,header:o,request:a}=this;if(a.onRequestSent(),e[hm]=!1,e[Dc])throw e[Dc];if(!e.destroyed){if(n===0?s?e.write(`${o}content-length: 0\r
`,"latin1"),this.bytesWritten+=u;let l=r.write(e);return r.uncork(),i.onBodySent(e),l||r[ni].timeout&&r[ni].timeoutType===Gb&&r[ni].timeout.refresh&&r[ni].timeout.refresh(),l}end(){let{socket:e,contentLength:r,client:i,bytesWritten:n,expectsPayload:s,header:o,request:a}=this;if(a.onRequestSent(),e[Cm]=!1,e[Mc])throw e[Mc];if(!e.destroyed){if(n===0?s?e.write(`${o}content-length: 0\r
\r
`,"latin1"):e.write(`${o}\r
`,"latin1"):r===null&&e.write(`\r
0\r
\r
`,"latin1"),r!==null&&n!==r){if(i[jj])throw new jg;process.emitWarning(new jg)}e[ni].timeout&&e[ni].timeoutType===Pb&&e[ni].timeout.refresh&&e[ni].timeout.refresh(),i[fm]()}}destroy(e){let{socket:r,client:i,abort:n}=this;r[hm]=!1,e&&(Je(i[gs]<=1,"pipeline should only contain this request"),n(e))}};$ye.exports=Aft});var rEe=p((X_r,tEe)=>{"use strict";var Oc=require("node:assert"),{pipeline:Cft}=require("node:stream"),Tt=wt(),{RequestContentLengthMismatchError:Wj,RequestAbortedError:Jye,SocketError:wv,InformationalError:Jj}=$t(),{kUrl:qD,kReset:HD,kClient:kb,kRunning:jD,kPending:Ift,kQueue:dm,kPendingIdx:Yj,kRunningIdx:$u,kError:Ju,kSocket:gn,kStrictContentLength:Sft,kOnError:Kj,kMaxConcurrentStreams:eEe,kHTTP2Session:Wu,kResume:pm,kSize:Bft,kHTTPContext:vft}=Fr(),hd=Symbol("open streams"),Yye,Kye=!1,GD;try{GD=require("node:http2")}catch{GD={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:xft,HTTP2_HEADER_METHOD:_ft,HTTP2_HEADER_PATH:Rft,HTTP2_HEADER_SCHEME:Tft,HTTP2_HEADER_CONTENT_LENGTH:Nft,HTTP2_HEADER_EXPECT:Dft,HTTP2_HEADER_STATUS:Oft}}=GD;function Pft(t){let e=[];for(let[r,i]of Object.entries(t))if(Array.isArray(i))for(let n of i)e.push(Buffer.from(r),Buffer.from(n));else e.push(Buffer.from(r),Buffer.from(i));return e}async function kft(t,e){t[gn]=e,Kye||(Kye=!0,process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"}));let r=GD.connect(t[qD],{createConnection:()=>e,peerMaxConcurrentStreams:t[eEe]});r[hd]=0,r[kb]=t,r[gn]=e,Tt.addListener(r,"error",Lft),Tt.addListener(r,"frameError",Fft),Tt.addListener(r,"end",Mft),Tt.addListener(r,"goaway",Uft),Tt.addListener(r,"close",function(){let{[kb]:n}=this,{[gn]:s}=n,o=this[gn][Ju]||this[Ju]||new wv("closed",Tt.getSocketInfo(s));if(n[Wu]=null,n.destroyed){Oc(n[Ift]===0);let a=n[dm].splice(n[$u]);for(let c=0;c<a.length;c++){let u=a[c];Tt.errorRequest(n,u,o)}}}),r.unref(),t[Wu]=r,e[Wu]=r,Tt.addListener(e,"error",function(n){Oc(n.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[Ju]=n,this[kb][Kj](n)}),Tt.addListener(e,"end",function(){Tt.destroy(this,new wv("other side closed",Tt.getSocketInfo(this)))}),Tt.addListener(e,"close",function(){let n=this[Ju]||new wv("closed",Tt.getSocketInfo(this));t[gn]=null,this[Wu]!=null&&this[Wu].destroy(n),t[Yj]=t[$u],Oc(t[jD]===0),t.emit("disconnect",t[qD],[t],n),t[pm]()});let i=!1;return e.on("close",()=>{i=!0}),{version:"h2",defaultPipelining:1/0,write(...n){return Gft(t,...n)},resume(){Qft(t)},destroy(n,s){i?queueMicrotask(s):e.destroy(n).on("close",s)},get destroyed(){return e.destroyed},busy(){return!1}}}function Qft(t){let e=t[gn];e?.destroyed===!1&&(t[Bft]===0&&t[eEe]===0?(e.unref(),t[Wu].unref()):(e.ref(),t[Wu].ref()))}function Lft(t){Oc(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[gn][Ju]=t,this[kb][Kj](t)}function Fft(t,e,r){if(r===0){let i=new Jj(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[gn][Ju]=i,this[kb][Kj](i)}}function Mft(){let t=new wv("other side closed",Tt.getSocketInfo(this[gn]));this.destroy(t),Tt.destroy(this[gn],t)}function Uft(t){let e=this[Ju]||new wv(`HTTP/2: "GOAWAY" frame received with code ${t}`,Tt.getSocketInfo(this)),r=this[kb];if(r[gn]=null,r[vft]=null,this[Wu]!=null&&(this[Wu].destroy(e),this[Wu]=null),Tt.destroy(this[gn],e),r[$u]<r[dm].length){let i=r[dm][r[$u]];r[dm][r[$u]++]=null,Tt.errorRequest(r,i,e),r[Yj]=r[$u]}Oc(r[jD]===0),r.emit("disconnect",r[qD],[r],e),r[pm]()}function qft(t){return t!=="GET"&&t!=="HEAD"&&t!=="OPTIONS"&&t!=="TRACE"&&t!=="CONNECT"}function Gft(t,e){let r=t[Wu],{method:i,path:n,host:s,upgrade:o,expectContinue:a,signal:c,headers:u}=e,{body:l}=e;if(o)return Tt.errorRequest(t,e,new Error("Upgrade not supported for H2")),!1;let f={};for(let S=0;S<u.length;S+=2){let N=u[S+0],Q=u[S+1];if(Array.isArray(Q))for(let T=0;T<Q.length;T++)f[N]?f[N]+=`,${Q[T]}`:f[N]=Q[T];else f[N]=Q}let h,{hostname:d,port:m}=t[qD];f[xft]=s||`${d}${m?`:${m}`:""}`,f[_ft]=i;let A=S=>{e.aborted||e.completed||(S=S||new Jye,Tt.errorRequest(t,e,S),h!=null&&Tt.destroy(h,S),Tt.destroy(l,S),t[dm][t[$u]++]=null,t[pm]())};try{e.onConnect(A)}catch(S){Tt.errorRequest(t,e,S)}if(e.aborted)return!1;if(i==="CONNECT")return r.ref(),h=r.request(f,{endStream:!1,signal:c}),h.id&&!h.pending?(e.onUpgrade(null,null,h),++r[hd],t[dm][t[$u]++]=null):h.once("ready",()=>{e.onUpgrade(null,null,h),++r[hd],t[dm][t[$u]++]=null}),h.once("close",()=>{r[hd]-=1,r[hd]===0&&r.unref()}),!0;f[Rft]=n,f[Tft]="https";let y=i==="PUT"||i==="POST"||i==="PATCH";l&&typeof l.read=="function"&&l.read(0);let g=Tt.bodyLength(l);if(Tt.isFormDataLike(l)){Yye??=Nb().extractBody;let[S,N]=Yye(l);f["content-type"]=N,l=S.stream,g=S.length}if(g==null&&(g=e.contentLength),(g===0||!y)&&(g=null),qft(i)&&g>0&&e.contentLength!=null&&e.contentLength!==g){if(t[Sft])return Tt.errorRequest(t,e,new Wj),!1;process.emitWarning(new Wj)}g!=null&&(Oc(l,"no body must not have content length"),f[Nft]=`${g}`),r.ref();let E=i==="GET"||i==="HEAD"||l===null;return a?(f[Dft]="100-continue",h=r.request(f,{endStream:E,signa Line truncated
`,this[pht]=c??3e5,this[dht]=n??3e5,this[mht]=E??!0,this[Aht]=S,this[tV]=Q,this[Am]=null,this[wht]=G>-1?G:-1,this[Iht]=L??100,this[Ii]=null,this[Yu]=[],this[pd]=0,this[Ku]=0,this[Bv]=$=>iV(this,$),this[Cht]=$=>pEe(this,$)}get pipelining(){return this[WD]}set pipelining(e){this[WD]=e,this[Bv](!0)}get[_v](){return this[Yu].length-this[Ku]}get[xv](){return this[Ku]-this[pd]}get[vv](){return this[Yu].length-this[pd]}get[oht](){return!!this[Ii]&&!this[Lb]&&!this[Ii].destroyed}get[eV](){return!!(this[Ii]?.busy(null)||this[vv]>=(dEe(this)||1)||this[_v]>0)}[sht](e){mEe(this),this.once("connect",e)}[bht](e,r){let i=e.origin||this[Xl].origin,n=new Zft(i,e,r);return this[Yu].push(n),this[zg]||(Vg.bodyLength(n.body)==null&&Vg.isIterable(n.body)?(this[zg]=1,queueMicrotask(()=>iV(this))):this[Bv](!0)),this[zg]&&this[gm]!==2&&this[eV]&&(this[gm]=2),this[gm]<2}async[yht](){return new Promise(e=>{this[vv]?this[Am]=e:e(null)})}async[Eht](e){return new Promise(r=>{let i=this[Yu].splice(this[Ku]);for(let s=0;s<i.length;s++){let o=i[s];Vg.errorRequest(this,o,e)}let n=()=>{this[Am]&&(this[Am](),this[Am]=null),r(null)};this[Ii]?(this[Ii].destroy(e,n),this[Ii]=null):queueMicrotask(n),this[Bv]()})}},vht=$D();function pEe(t,e){if(t[xv]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){dd(t[Ku]===t[pd]);let r=t[Yu].splice(t[pd]);for(let i=0;i<r.length;i++){let n=r[i];Vg.errorRequest(t,n,e)}dd(t[vv]===0)}}async function mEe(t){dd(!t[Lb]),dd(!t[Ii]);let{host:e,hostname:r,protocol:i,port:n}=t[Xl];if(r[0]==="["){let s=r.indexOf("]");dd(s!==-1);let o=r.substring(1,s);dd(hEe.isIP(o)),r=o}t[Lb]=!0,Qb.beforeConnect.hasSubscribers&&Qb.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:i,port:n,version:t[Ii]?.version,servername:t[mm],localAddress:t[Sv]},connector:t[Iv]});try{let s=await new Promise((o,a)=>{t[Iv]({host:e,hostname:r,protocol:i,port:n,servername:t[mm],localAddress:t[Sv]},(c,u)=>{c?a(c):o(u)})});if(t.destroyed){Vg.destroy(s.on("error",lEe),new rht);return}dd(s);try{t[Ii]=s.alpnProtocol==="h2"?await Bht(t,s):await Sht(t,s)}catch(o){throw s.destroy().on("error",lEe),o}t[Lb]=!1,s[ght]=0,s[tV]=t[tV],s[nht]=t,s[cht]=null,Qb.connected.hasSubscribers&&Qb.connected.publish({connectParams:{host:e,hostname:r,protocol:i,port:n,version:t[Ii]?.version,servername:t[mm],localAddress:t[Sv]},connector:t[Iv],socket:s}),t.emit("connect",t[Xl],[t])}catch(s){if(t.destroyed)return;if(t[Lb]=!1,Qb.connectError.hasSubscribers&&Qb.connectError.publish({connectParams:{host:e,hostname:r,protocol:i,port:n,version:t[Ii]?.version,servername:t[mm],localAddress:t[Sv]},connector:t[Iv],error:s}),s.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(dd(t[xv]===0);t[_v]>0&&t[Yu][t[Ku]].servername===t[mm];){let o=t[Yu][t[Ku]++];Vg.errorRequest(t,o,s)}else pEe(t,s);t.emit("connectionError",t[Xl],[t],s)}t[Bv]()}function fEe(t){t[gm]=0,t.emit("drain",t[Xl],[t])}function iV(t,e){t[zg]!==2&&(t[zg]=2,xht(t,e),t[zg]=0,t[pd]>256&&(t[Yu].splice(0,t[pd]),t[Ku]-=t[pd],t[pd]=0))}function xht(t,e){for(;;){if(t.destroyed){dd(t[_v]===0);return}if(t[Am]&&!t[vv]){t[Am](),t[Am]=null;return}if(t[Ii]&&t[Ii].resume(),t[eV])t[gm]=2;else if(t[gm]===2){e?(t[gm]=1,queueMicrotask(()=>fEe(t))):fEe(t);continue}if(t[_v]===0||t[xv]>=(dEe(t)||1))return;let r=t[Yu][t[Ku]];if(t[Xl].protocol==="https:"&&t[mm]!==r.servername){if(t[xv]>0)return;t[mm]=r.servername,t[Ii]?.destroy(new tht("servername changed"),()=>{t[Ii]=null,iV(t)})}if(t[Lb])return;if(!t[Ii]){mEe(t);return}if(t[Ii].destroyed||t[Ii].busy(r))return;!r.aborted&&t[Ii].write(r)?t[Ku]++:t[Yu].splice(t[Ku],1)}}AEe.exports=rV});var nV=p((iRr,gEe)=>{"use strict";var JD=class{constructor(){this.bottom=0,this.top=0,this.list=new Array(2048),this.next=null}isEmpty(){return this.top===this.bottom}isFull(){return(this.top+1&2047)===this.bottom}push(e){this.list[this.top]=e,this.top=this.top+1&2047}shift(){let e=this.list[this.bottom];return e===void 0?null:(this.list[this.bottom]=void 0,this.bottom=this.bottom+1&2047,e)}};gEe.exports=class{constructor(){this.head=this.tail=new JD}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new JD),this.head.push(e)}shift(){let e=this.tail,r=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next),r}}});var EEe=p((nRr,yEe)=>{var{kFree:_ht,kConnected:Rht,kPending:Tht,kQueued:Nht,kRunning:Dht,kSize:Oht}=Fr(),$g=Symbol("pool"),sV=class{constructor(e){this[$g]=e}get connected(){return this[$g][Rht]}get free(){return this[$g][_ht]}get pending(){return this[$g][Tht]}get queued(){return this[$g][Nht]}get running(){return this[$g][Dht]}get size(){return this[$g][Oht]}};yEe.exports=sV});var fV=p((sRr,REe)=>{"use strict";var Pht=Cb(),kht=nV(),{kConnected:oV,kSize:bEe,kRunning:wEe,kPending:CEe,kQueued:Rv,kBusy:Qht,kFree:Lht,kUrl:Fht,kClose:Mht,kDestroy:Uht,kDispatch:qht}=Fr(),Ght=EEe(),Jo=Symbol("clients"),no=Symbol("needDrain"),Tv=Symbol("queue"),aV=Symbol("closed resolve"),cV=Symbol("onDrain"),IEe=Symbol("onConnect"),SEe=Symbol("onDisconnect"),BEe=Symbol("onConnec Line truncated
`,"latin1"),r!==null&&n!==r){if(i[nV])throw new Yg;process.emitWarning(new Yg)}e[ni].timeout&&e[ni].timeoutType===Gb&&e[ni].timeout.refresh&&e[ni].timeout.refresh(),i[wm]()}}destroy(e){let{socket:r,client:i,abort:n}=this;r[Cm]=!1,e&&(Je(i[Is]<=1,"pipeline should only contain this request"),n(e))}};cEe.exports=Fft});var gEe=p((jRr,AEe)=>{"use strict";var Fc=require("node:assert"),{pipeline:Vft}=require("node:stream"),Tt=wt(),{RequestContentLengthMismatchError:cV,RequestAbortedError:lEe,SocketError:Dv,InformationalError:uV}=$t(),{kUrl:eO,kReset:rO,kClient:Hb,kRunning:iO,kPending:zft,kQueue:Im,kPendingIdx:lV,kRunningIdx:el,kError:rl,kSocket:wn,kStrictContentLength:$ft,kOnError:fV,kMaxConcurrentStreams:mEe,kHTTP2Session:tl,kResume:Sm,kSize:Wft,kHTTPContext:Jft}=Mr(),bd=Symbol("open streams"),fEe,hEe=!1,tO;try{tO=require("node:http2")}catch{tO={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:Yft,HTTP2_HEADER_METHOD:Kft,HTTP2_HEADER_PATH:Xft,HTTP2_HEADER_SCHEME:Zft,HTTP2_HEADER_CONTENT_LENGTH:eht,HTTP2_HEADER_EXPECT:tht,HTTP2_HEADER_STATUS:rht}}=tO;function iht(t){let e=[];for(let[r,i]of Object.entries(t))if(Array.isArray(i))for(let n of i)e.push(Buffer.from(r),Buffer.from(n));else e.push(Buffer.from(r),Buffer.from(i));return e}async function nht(t,e){t[wn]=e,hEe||(hEe=!0,process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"}));let r=tO.connect(t[eO],{createConnection:()=>e,peerMaxConcurrentStreams:t[mEe]});r[bd]=0,r[Hb]=t,r[wn]=e,Tt.addListener(r,"error",oht),Tt.addListener(r,"frameError",aht),Tt.addListener(r,"end",cht),Tt.addListener(r,"goaway",uht),Tt.addListener(r,"close",function(){let{[Hb]:n}=this,{[wn]:s}=n,o=this[wn][rl]||this[rl]||new Dv("closed",Tt.getSocketInfo(s));if(n[tl]=null,n.destroyed){Fc(n[zft]===0);let a=n[Im].splice(n[el]);for(let c=0;c<a.length;c++){let u=a[c];Tt.errorRequest(n,u,o)}}}),r.unref(),t[tl]=r,e[tl]=r,Tt.addListener(e,"error",function(n){Fc(n.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[rl]=n,this[Hb][fV](n)}),Tt.addListener(e,"end",function(){Tt.destroy(this,new Dv("other side closed",Tt.getSocketInfo(this)))}),Tt.addListener(e,"close",function(){let n=this[rl]||new Dv("closed",Tt.getSocketInfo(this));t[wn]=null,this[tl]!=null&&this[tl].destroy(n),t[lV]=t[el],Fc(t[iO]===0),t.emit("disconnect",t[eO],[t],n),t[Sm]()});let i=!1;return e.on("close",()=>{i=!0}),{version:"h2",defaultPipelining:1/0,write(...n){return fht(t,...n)},resume(){sht(t)},destroy(n,s){i?queueMicrotask(s):e.destroy(n).on("close",s)},get destroyed(){return e.destroyed},busy(){return!1}}}function sht(t){let e=t[wn];e?.destroyed===!1&&(t[Wft]===0&&t[mEe]===0?(e.unref(),t[tl].unref()):(e.ref(),t[tl].ref()))}function oht(t){Fc(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[wn][rl]=t,this[Hb][fV](t)}function aht(t,e,r){if(r===0){let i=new uV(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[wn][rl]=i,this[Hb][fV](i)}}function cht(){let t=new Dv("other side closed",Tt.getSocketInfo(this[wn]));this.destroy(t),Tt.destroy(this[wn],t)}function uht(t){let e=this[rl]||new Dv(`HTTP/2: "GOAWAY" frame received with code ${t}`,Tt.getSocketInfo(this)),r=this[Hb];if(r[wn]=null,r[Jft]=null,this[tl]!=null&&(this[tl].destroy(e),this[tl]=null),Tt.destroy(this[wn],e),r[el]<r[Im].length){let i=r[Im][r[el]];r[Im][r[el]++]=null,Tt.errorRequest(r,i,e),r[lV]=r[el]}Fc(r[iO]===0),r.emit("disconnect",r[eO],[r],e),r[Sm]()}function lht(t){return t!=="GET"&&t!=="HEAD"&&t!=="OPTIONS"&&t!=="TRACE"&&t!=="CONNECT"}function fht(t,e){let r=t[tl],{method:i,path:n,host:s,upgrade:o,expectContinue:a,signal:c,headers:u}=e,{body:l}=e;if(o)return Tt.errorRequest(t,e,new Error("Upgrade not supported for H2")),!1;let f={};for(let S=0;S<u.length;S+=2){let N=u[S+0],Q=u[S+1];if(Array.isArray(Q))for(let T=0;T<Q.length;T++)f[N]?f[N]+=`,${Q[T]}`:f[N]=Q[T];else f[N]=Q}let h,{hostname:d,port:m}=t[eO];f[Yft]=s||`${d}${m?`:${m}`:""}`,f[Kft]=i;let A=S=>{e.aborted||e.completed||(S=S||new lEe,Tt.errorRequest(t,e,S),h!=null&&Tt.destroy(h,S),Tt.destroy(l,S),t[Im][t[el]++]=null,t[Sm]())};try{e.onConnect(A)}catch(S){Tt.errorRequest(t,e,S)}if(e.aborted)return!1;if(i==="CONNECT")return r.ref(),h=r.request(f,{endStream:!1,signal:c}),h.id&&!h.pending?(e.onUpgrade(null,null,h),++r[bd],t[Im][t[el]++]=null):h.once("ready",()=>{e.onUpgrade(null,null,h),++r[bd],t[Im][t[el]++]=null}),h.once("close",()=>{r[bd]-=1,r[bd]===0&&r.unref()}),!0;f[Xft]=n,f[Zft]="https";let y=i==="PUT"||i==="POST"||i==="PATCH";l&&typeof l.read=="function"&&l.read(0);let g=Tt.bodyLength(l);if(Tt.isFormDataLike(l)){fEe??=Fb().extractBody;let[S,N]=fEe(l);f["content-type"]=N,l=S.stream,g=S.length}if(g==null&&(g=e.contentLength),(g===0||!y)&&(g=null),lht(i)&&g>0&&e.contentLength!=null&&e.contentLength!==g){if(t[$ft])return Tt.errorRequest(t,e,new cV),!1;process.emitWarning(new cV)}g!=null&&(Fc(l,"no body must not have content length"),f[eht]=`${g}`),r.ref();let E=i==="GET"||i==="HEAD"||l===null;return a?(f[tht]="100-continue",h=r.request(f,{endStream:E,signa Line truncated
`,this[Lht]=c??3e5,this[Qht]=n??3e5,this[Mht]=E??!0,this[Fht]=S,this[mV]=Q,this[vm]=null,this[jht]=G>-1?G:-1,this[zht]=L??100,this[Si]=null,this[il]=[],this[Cd]=0,this[nl]=0,this[Qv]=W=>gV(this,W),this[Vht]=W=>REe(this,W)}get pipelining(){return this[aO]}set pipelining(e){this[aO]=e,this[Qv](!0)}get[Fv](){return this[il].length-this[nl]}get[Mv](){return this[nl]-this[Cd]}get[Lv](){return this[il].length-this[Cd]}get[Rht](){return!!this[Si]&&!this[Vb]&&!this[Si].destroyed}get[pV](){return!!(this[Si]?.busy(null)||this[Lv]>=(xEe(this)||1)||this[Fv]>0)}[xht](e){TEe(this),this.once("connect",e)}[Hht](e,r){let i=e.origin||this[of].origin,n=new Cht(i,e,r);return this[il].push(n),this[Xg]||(Kg.bodyLength(n.body)==null&&Kg.isIterable(n.body)?(this[Xg]=1,queueMicrotask(()=>gV(this))):this[Qv](!0)),this[Xg]&&this[_m]!==2&&this[pV]&&(this[_m]=2),this[_m]<2}async[qht](){return new Promise(e=>{this[Lv]?this[vm]=e:e(null)})}async[Ght](e){return new Promise(r=>{let i=this[il].splice(this[nl]);for(let s=0;s<i.length;s++){let o=i[s];Kg.errorRequest(this,o,e)}let n=()=>{this[vm]&&(this[vm](),this[vm]=null),r(null)};this[Si]?(this[Si].destroy(e,n),this[Si]=null):queueMicrotask(n),this[Qv]()})}},Jht=oO();function REe(t,e){if(t[Mv]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){wd(t[nl]===t[Cd]);let r=t[il].splice(t[Cd]);for(let i=0;i<r.length;i++){let n=r[i];Kg.errorRequest(t,n,e)}wd(t[Lv]===0)}}async function TEe(t){wd(!t[Vb]),wd(!t[Si]);let{host:e,hostname:r,protocol:i,port:n}=t[of];if(r[0]==="["){let s=r.indexOf("]");wd(s!==-1);let o=r.substring(1,s);wd(_Ee.isIP(o)),r=o}t[Vb]=!0,jb.beforeConnect.hasSubscribers&&jb.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:i,port:n,version:t[Si]?.version,servername:t[Bm],localAddress:t[kv]},connector:t[Pv]});try{let s=await new Promise((o,a)=>{t[Pv]({host:e,hostname:r,protocol:i,port:n,servername:t[Bm],localAddress:t[kv]},(c,u)=>{c?a(c):o(u)})});if(t.destroyed){Kg.destroy(s.on("error",BEe),new Bht);return}wd(s);try{t[Si]=s.alpnProtocol==="h2"?await Wht(t,s):await $ht(t,s)}catch(o){throw s.destroy().on("error",BEe),o}t[Vb]=!1,s[Uht]=0,s[mV]=t[mV],s[_ht]=t,s[Nht]=null,jb.connected.hasSubscribers&&jb.connected.publish({connectParams:{host:e,hostname:r,protocol:i,port:n,version:t[Si]?.version,servername:t[Bm],localAddress:t[kv]},connector:t[Pv],socket:s}),t.emit("connect",t[of],[t])}catch(s){if(t.destroyed)return;if(t[Vb]=!1,jb.connectError.hasSubscribers&&jb.connectError.publish({connectParams:{host:e,hostname:r,protocol:i,port:n,version:t[Si]?.version,servername:t[Bm],localAddress:t[kv]},connector:t[Pv],error:s}),s.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(wd(t[Mv]===0);t[Fv]>0&&t[il][t[nl]].servername===t[Bm];){let o=t[il][t[nl]++];Kg.errorRequest(t,o,s)}else REe(t,s);t.emit("connectionError",t[of],[t],s)}t[Qv]()}function vEe(t){t[_m]=0,t.emit("drain",t[of],[t])}function gV(t,e){t[Xg]!==2&&(t[Xg]=2,Yht(t,e),t[Xg]=0,t[Cd]>256&&(t[il].splice(0,t[Cd]),t[nl]-=t[Cd],t[Cd]=0))}function Yht(t,e){for(;;){if(t.destroyed){wd(t[Fv]===0);return}if(t[vm]&&!t[Lv]){t[vm](),t[vm]=null;return}if(t[Si]&&t[Si].resume(),t[pV])t[_m]=2;else if(t[_m]===2){e?(t[_m]=1,queueMicrotask(()=>vEe(t))):vEe(t);continue}if(t[Fv]===0||t[Mv]>=(xEe(t)||1))return;let r=t[il][t[nl]];if(t[of].protocol==="https:"&&t[Bm]!==r.servername){if(t[Mv]>0)return;t[Bm]=r.servername,t[Si]?.destroy(new Sht("servername changed"),()=>{t[Si]=null,gV(t)})}if(t[Vb])return;if(!t[Si]){TEe(t);return}if(t[Si].destroyed||t[Si].busy(r))return;!r.aborted&&t[Si].write(r)?t[nl]++:t[il].splice(t[nl],1)}}NEe.exports=AV});var yV=p((JRr,DEe)=>{"use strict";var cO=class{constructor(){this.bottom=0,this.top=0,this.list=new Array(2048),this.next=null}isEmpty(){return this.top===this.bottom}isFull(){return(this.top+1&2047)===this.bottom}push(e){this.list[this.top]=e,this.top=this.top+1&2047}shift(){let e=this.list[this.bottom];return e===void 0?null:(this.list[this.bottom]=void 0,this.bottom=this.bottom+1&2047,e)}};DEe.exports=class{constructor(){this.head=this.tail=new cO}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new cO),this.head.push(e)}shift(){let e=this.tail,r=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next),r}}});var PEe=p((YRr,OEe)=>{var{kFree:Kht,kConnected:Xht,kPending:Zht,kQueued:edt,kRunning:tdt,kSize:rdt}=Mr(),Zg=Symbol("pool"),EV=class{constructor(e){this[Zg]=e}get connected(){return this[Zg][Xht]}get free(){return this[Zg][Kht]}get pending(){return this[Zg][Zht]}get queued(){return this[Zg][edt]}get running(){return this[Zg][tdt]}get size(){return this[Zg][rdt]}};OEe.exports=EV});var BV=p((KRr,jEe)=>{"use strict";var idt=Tb(),ndt=yV(),{kConnected:bV,kSize:kEe,kRunning:QEe,kPending:LEe,kQueued:Uv,kBusy:sdt,kFree:odt,kUrl:adt,kClose:cdt,kDestroy:udt,kDispatch:ldt}=Mr(),fdt=PEe(),ra=Symbol("clients"),co=Symbol("needDrain"),qv=Symbol("queue"),wV=Symbol("closed resolve"),CV=Symbol("onDrain"),MEe=Symbol("onConnect"),FEe=Symbol("onDisconnect"),UEe=Symbol("onConnec Line truncated
${i.count} ${i.noun} ${i.is} pending:
${e.format(r)}
`.trim())}};kbe.exports=fz});var dO=p((ORr,Ube)=>{"use strict";var Lbe=Symbol.for("undici.globalDispatcher.1"),{InvalidArgumentError:pmt}=$t(),mmt=Ub();Mbe()===void 0&&Fbe(new mmt);function Fbe(t){if(!t||typeof t.dispatch!="function")throw new pmt("Argument agent must implement Agent");Object.defineProperty(globalThis,Lbe,{value:t,writable:!0,enumerable:!1,configurable:!1})}function Mbe(){return globalThis[Lbe]}Ube.exports={setGlobalDispatcher:Fbe,getGlobalDispatcher:Mbe}});var pO=p((kRr,qbe)=>{"use strict";qbe.exports=class{#e;constructor(e){if(typeof e!="object"||e===null)throw new TypeError("handler must be an object");this.#e=e}onConnect(...e){return this.#e.onConnect?.(...e)}onError(...e){return this.#e.onError?.(...e)}onUpgrade(...e){return this.#e.onUpgrade?.(...e)}onResponseStarted(...e){return this.#e.onResponseStarted?.(...e)}onHeaders(...e){return this.#e.onHeaders?.(...e)}onData(...e){return this.#e.onData?.(...e)}onComplete(...e){return this.#e.onComplete?.(...e)}onBodySent(...e){return this.#e.onBodySent?.(...e)}}});var Hbe=p((QRr,Gbe)=>{"use strict";var Amt=zD();Gbe.exports=t=>{let e=t?.maxRedirections;return r=>function(n,s){let{maxRedirections:o=e,...a}=n;if(!o)return r(n,s);let c=new Amt(r,o,n,s);return r(a,c)}}});var Vbe=p((LRr,jbe)=>{"use strict";var gmt=iO();jbe.exports=t=>e=>function(i,n){return e(i,new gmt({...i,retryOptions:{...t,...i.retryOptions}},{handler:n,dispatch:e}))}});var $be=p((FRr,zbe)=>{"use strict";var ymt=wt(),{InvalidArgumentError:Emt,RequestAbortedError:bmt}=$t(),wmt=pO(),hz=class extends wmt{#e=1024*1024;#t=null;#i=!1;#r=!1;#n=0;#s=null;#l=null;constructor({maxSize:e},r){if(super(r),e!=null&&(!Number.isFinite(e)||e<1))throw new Emt("maxSize must be a number greater than 0");this.#e=e??this.#e,this.#l=r}onConnect(e){this.#t=e,this.#l.onConnect(this.#u.bind(this))}#u(e){this.#r=!0,this.#s=e}onHeaders(e,r,i,n){let o=ymt.parseHeaders(r)["content-length"];if(o!=null&&o>this.#e)throw new bmt(`Response size (${o}) larger than maxSize (${this.#e})`);return this.#r?!0:this.#l.onHeaders(e,r,i,n)}onError(e){this.#i||(e=this.#s??e,this.#l.onError(e))}onData(e){return this.#n=this.#n+e.length,this.#n>=this.#e&&(this.#i=!0,this.#r?this.#l.onError(this.#s):this.#l.onComplete([])),!0}onComplete(e){if(!this.#i){if(this.#r){this.#l.onError(this.reason);return}this.#l.onComplete(e)}}};function Cmt({maxSize:t}={maxSize:1024*1024}){return e=>function(i,n){let{dumpMaxSize:s=t}=i,o=new hz({maxSize:s},n);return e(i,o)}}zbe.exports=Cmt});var Ybe=p((MRr,Jbe)=>{"use strict";var{isIP:Imt}=require("node:net"),{lookup:Smt}=require("node:dns"),Bmt=pO(),{InvalidArgumentError:Yb,InformationalError:vmt}=$t(),Wbe=Math.pow(2,31)-1,dz=class{#e=0;#t=0;#i=new Map;dualStack=!0;affinity=null;lookup=null;pick=null;constructor(e){this.#e=e.maxTTL,this.#t=e.maxItems,this.dualStack=e.dualStack,this.affinity=e.affinity,this.lookup=e.lookup??this.#r,this.pick=e.pick??this.#n}get full(){return this.#i.size===this.#t}runLookup(e,r,i){let n=this.#i.get(e.hostname);if(n==null&&this.full){i(null,e.origin);return}let s={affinity:this.affinity,dualStack:this.dualStack,lookup:this.lookup,pick:this.pick,...r.dns,maxTTL:this.#e,maxItems:this.#t};if(n==null)this.lookup(e,s,(o,a)=>{if(o||a==null||a.length===0){i(o??new vmt("No DNS entries found"));return}this.setRecords(e,a);let c=this.#i.get(e.hostname),u=this.pick(e,c,s.affinity),l;typeof u.port=="number"?l=`:${u.port}`:e.port!==""?l=`:${e.port}`:l="",i(null,`${e.protocol}//${u.family===6?`[${u.address}]`:u.address}${l}`)});else{let o=this.pick(e,n,s.affinity);if(o==null){this.#i.delete(e.hostname),this.runLookup(e,r,i);return}let a;typeof o.port=="number"?a=`:${o.port}`:e.port!==""?a=`:${e.port}`:a="",i(null,`${e.protocol}//${o.family===6?`[${o.address}]`:o.address}${a}`)}}#r(e,r,i){Smt(e.hostname,{all:!0,family:this.dualStack===!1?this.affinity:0,order:"ipv4first"},(n,s)=>{if(n)return i(n);let o=new Map;for(let a of s)o.set(`${a.address}:${a.family}`,a);i(null,o.values())})}#n(e,r,i){let n=null,{records:s,offset:o}=r,a;if(this.dualStack?(i==null&&(o==null||o===Wbe?(r.offset=0,i=4):(r.offset++,i=(r.offset&1)===1?6:4)),s[i]!=null&&s[i].ips.length>0?a=s[i]:a=s[i===4?6:4]):a=s[i],a==null||a.ips.length===0)return n;a.offset==null||a.offset===Wbe?a.offset=0:a.offset++;let c=a.offset%a.ips.length;return n=a.ips[c]??null,n==null?n:Date.now()-n.timestamp>n.ttl?(a.ips.splice(c,1),this.pick(e,r,i)):n}setRecords(e,r){let i=Date.now(),n={records:{4:null,6:null}};for(let s of r){s.timestamp=i,typeof s.ttl=="number"?s.ttl=Math.min(s.ttl,this.#e):s.ttl=this.#e;let o=n.records[s.family]??{ips:[]};o.ips.push(s),n.records[s.family]=o}this.#i.set(e.hostname,n)}getHandler(e,r){return new pz(this,e,r)}},pz=class extends Bmt{#e=null;#t=null;#i=null;#r=null;#n=null;constructor(e,{origin:r,handler:i,dispatch:n},s){super(i),this.#n=r,this.#r=i,this.#t={...s},this.#e=e,this.#i=n}onError(e){switch(e.code){case"ETIMEDOUT":case"ECONNREFUSED":{if(this.#e.dualStack){this.#e.runLookup(this.#n,this.#t,( Line truncated
${s}`;break;case"retry":RIe(s)&&(r[n]=s);break;case"id":TIe(s)&&(r[n]=s);break;case"event":s.length>0&&(r[n]=s);break}}processEvent(e){e.retry&&RIe(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id&&TIe(e.id)&&(this.state.lastEventId=e.id),e.data!==void 0&&this.push({type:e.event||"message",options:{data:e.data,lastEventId:this.state.lastEventId,origin:this.state.origin}})}clearEvent(){this.event={data:void 0,event:void 0,id:void 0,retry:void 0}}};NIe.exports={EventSourceStream:Zz}});var UIe=p((ATr,MIe)=>{"use strict";var{pipeline:QEt}=require("node:stream"),{fetching:LEt}=Hv(),{makeRequest:FEt}=Zb(),{webidl:Ed}=Xn(),{EventSourceStream:MEt}=DIe(),{parseMIMEType:UEt}=$o(),{createFastMessageEvent:qEt}=sw(),{isNetworkError:OIe}=qv(),{delay:GEt}=Kz(),{kEnumerableProperty:cy}=wt(),{environmentSettingsObject:PIe}=Da(),kIe=!1,QIe=3e3,rx=0,LIe=1,ix=2,HEt="anonymous",jEt="use-credentials",lw=class t extends EventTarget{#e={open:null,error:null,message:null};#t=null;#i=!1;#r=rx;#n=null;#s=null;#l;#u;constructor(e,r={}){super(),Ed.util.markAsUncloneable(this);let i="EventSource constructor";Ed.argumentLengthCheck(arguments,1,i),kIe||(kIe=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=Ed.converters.USVString(e,i,"url"),r=Ed.converters.EventSourceInitDict(r,i,"eventSourceInitDict"),this.#l=r.dispatcher,this.#u={lastEventId:"",reconnectionTime:QIe};let n=PIe,s;try{s=new URL(e,n.settingsObject.baseUrl),this.#u.origin=s.origin}catch(c){throw new DOMException(c,"SyntaxError")}this.#t=s.href;let o=HEt;r.withCredentials&&(o=jEt,this.#i=!0);let a={redirect:"follow",keepalive:!0,mode:"cors",credentials:o==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};a.client=PIe.settingsObject,a.headersList=[["accept",{name:"accept",value:"text/event-stream"}]],a.cache="no-store",a.initiator="other",a.urlList=[new URL(this.#t)],this.#n=FEt(a),this.#a()}get readyState(){return this.#r}get url(){return this.#t}get withCredentials(){return this.#i}#a(){if(this.#r===ix)return;this.#r=rx;let e={request:this.#n,dispatcher:this.#l},r=i=>{OIe(i)&&(this.dispatchEvent(new Event("error")),this.close()),this.#c()};e.processResponseEndOfBody=r,e.processResponse=i=>{if(OIe(i))if(i.aborted){this.close(),this.dispatchEvent(new Event("error"));return}else{this.#c();return}let n=i.headersList.get("content-type",!0),s=n!==null?UEt(n):"failure",o=s!=="failure"&&s.essence==="text/event-stream";if(i.status!==200||o===!1){this.close(),this.dispatchEvent(new Event("error"));return}this.#r=LIe,this.dispatchEvent(new Event("open")),this.#u.origin=i.urlList[i.urlList.length-1].origin;let a=new MEt({eventSourceSettings:this.#u,push:c=>{this.dispatchEvent(qEt(c.type,c.options))}});QEt(i.body.stream,a,c=>{c?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#s=LEt(e)}async#c(){this.#r!==ix&&(this.#r=rx,this.dispatchEvent(new Event("error")),await GEt(this.#u.reconnectionTime),this.#r===rx&&(this.#u.lastEventId.length&&this.#n.headersList.set("last-event-id",this.#u.lastEventId,!0),this.#a()))}close(){Ed.brandCheck(this,t),this.#r!==ix&&(this.#r=ix,this.#s.abort(),this.#n=null)}get onopen(){return this.#e.open}set onopen(e){this.#e.open&&this.removeEventListener("open",this.#e.open),typeof e=="function"?(this.#e.open=e,this.addEventListener("open",e)):this.#e.open=null}get onmessage(){return this.#e.message}set onmessage(e){this.#e.message&&this.removeEventListener("message",this.#e.message),typeof e=="function"?(this.#e.message=e,this.addEventListener("message",e)):this.#e.message=null}get onerror(){return this.#e.error}set onerror(e){this.#e.error&&this.removeEventListener("error",this.#e.error),typeof e=="function"?(this.#e.error=e,this.addEventListener("error",e)):this.#e.error=null}},FIe={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:rx,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:LIe,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:ix,writable:!1}};Object.defineProperties(lw,FIe);Object.defineProperties(lw.prototype,FIe);Object.defineProperties(lw.prototype,{close:cy,onerror:cy,onmessage:cy,onopen:cy,readyState:cy,url:cy,withCredentials:cy});Ed.converters.EventSourceInitDict=Ed.dictionaryConverter([{key:"withCredentials",converter:Ed.converters.boolean,defaultValue:()=>!1},{key:"dispatcher",converter:Ed.converters.any}]);MIe.exports={EventSource:lw,defaultReconnectionTime:QIe}});var rP=p((gTr,Ke)=>{"use strict";var VEt=Fb(),qIe=av(),zEt=Mb(),$Et=FEe(),WEt=Ub(),JEt=SV(),YEt=c0e(),KEt=p0e(),GIe=$t(),tP=wt(),{InvalidArgumentError:eP}=GIe,fw=ebe(),XEt=uv(),ZEt=sz(),e0t=Qbe(),t0t=cz(),r0t=zV(),i0t=iO(),{getGlobalDispatcher:HIe,setGlobalDispatcher:n0t}=dO(),s0t=pO(),o0t=zD(),a0t=$D();Object.assign(qIe.prototype,fw);Ke.exports.Dispatcher=qIe;Ke.exports.Client=VEt;Ke.exports.Pool=zEt;Ke.exports.BalancedPool=$Et;Ke.exports.Agent=WEt;Ke.exports.ProxyAgent=JEt;Ke.exports.EnvHttpProxyAgent=YEt;Ke.e Line truncated
%s`,N,N,E,i);var Q=E.type==="*"?y$:E.type==="?"?g$:"\\"+E.type;n=!0,i=i.slice(0,E.reStart)+Q+"\\("+N}m(),s&&(i+="\\\\");var T=!1;switch(i.charAt(0)){case"[":case".":case"(":T=!0}for(var G=a.length-1;G>-1;G--){var D=a[G],H=i.slice(0,D.reStart),L=i.slice(D.reStart,D.reEnd-8),Z=i.slice(D.reEnd-8,D.reEnd),$=i.slice(D.reEnd);Z+=$;var De=H.split("(").length-1,de=$;for(A=0;A<De;A++)de=de.replace(/\)[+*?]?/,"");$=de;var Qe="";$===""&&e!==TP&&(Qe="$");var Y=H+L+$+Qe+Z;i=Y}if(i!==""&&n&&(i="(?=.)"+i),T&&(i=h+i),e===TP)return[i,n];if(!n)return HIt(t);var Te=r.nocase?"i":"";try{var Ie=new RegExp("^"+i+"$",Te)}catch{return new RegExp("$.")}return Ie._glob=t,Ie._src=i,Ie}Ha.makeRe=function(t,e){return new es(t,e||{}).makeRe()};es.prototype.makeRe=GIt;function GIt(){if(this.regexp||this.regexp===!1)return this.regexp;var t=this.set;if(!t.length)return this.regexp=!1,this.regexp;var e=this.options,r=e.noglobstar?y$:e.dot?PIt:kIt,i=e.nocase?"i":"",n=t.map(function(s){return s.map(function(o){return o===E$?r:typeof o=="string"?jIt(o):o._src}).join("\\/")}).join("|");n="^(?:"+n+")$",this.negate&&(n="^(?!"+n+").*$");try{this.regexp=new RegExp(n,i)}catch{this.regexp=!1}return this.regexp}Ha.match=function(t,e,r){r=r||{};var i=new es(e,r);return t=t.filter(function(n){return i.match(n)}),i.options.nonull&&!t.length&&t.push(e),t};es.prototype.match=function(e,r){if(typeof r>"u"&&(r=this.partial),this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return e==="";if(e==="/"&&r)return!0;var i=this.options;Nx.sep!=="/"&&(e=e.split(Nx.sep).join("/")),e=e.split(oxe),this.debug(this.pattern,"split",e);var n=this.set;this.debug(this.pattern,"set",n);var s,o;for(o=e.length-1;o>=0&&(s=e[o],!s);o--);for(o=0;o<n.length;o++){var a=n[o],c=e;i.matchBase&&a.length===1&&(c=[s]);var u=this.matchOne(c,a,r);if(u)return i.flipNegate?!0:!this.negate}return i.flipNegate?!1:this.negate};es.prototype.matchOne=function(t,e,r){var i=this.options;this.debug("matchOne",{this:this,file:t,pattern:e}),this.debug("matchOne",t.length,e.length);for(var n=0,s=0,o=t.length,a=e.length;n<o&&s<a;n++,s++){this.debug("matchOne loop");var c=e[s],u=t[n];if(this.debug(e,c,u),c===!1)return!1;if(c===E$){this.debug("GLOBSTAR",[e,c,u]);var l=n,f=s+1;if(f===a){for(this.debug("** at the end");n<o;n++)if(t[n]==="."||t[n]===".."||!i.dot&&t[n].charAt(0)===".")return!1;return!0}for(;l<o;){var h=t[l];if(this.debug(`
`.trim())}};Ybe.exports=Bz});var vO=p((BTr,twe)=>{"use strict";var Xbe=Symbol.for("undici.globalDispatcher.1"),{InvalidArgumentError:Lmt}=$t(),Mmt=Wb();ewe()===void 0&&Zbe(new Mmt);function Zbe(t){if(!t||typeof t.dispatch!="function")throw new Lmt("Argument agent must implement Agent");Object.defineProperty(globalThis,Xbe,{value:t,writable:!0,enumerable:!1,configurable:!1})}function ewe(){return globalThis[Xbe]}twe.exports={setGlobalDispatcher:Zbe,getGlobalDispatcher:ewe}});var _O=p((_Tr,rwe)=>{"use strict";rwe.exports=class{#e;constructor(e){if(typeof e!="object"||e===null)throw new TypeError("handler must be an object");this.#e=e}onConnect(...e){return this.#e.onConnect?.(...e)}onError(...e){return this.#e.onError?.(...e)}onUpgrade(...e){return this.#e.onUpgrade?.(...e)}onResponseStarted(...e){return this.#e.onResponseStarted?.(...e)}onHeaders(...e){return this.#e.onHeaders?.(...e)}onData(...e){return this.#e.onData?.(...e)}onComplete(...e){return this.#e.onComplete?.(...e)}onBodySent(...e){return this.#e.onBodySent?.(...e)}}});var nwe=p((xTr,iwe)=>{"use strict";var Fmt=sO();iwe.exports=t=>{let e=t?.maxRedirections;return r=>function(n,s){let{maxRedirections:o=e,...a}=n;if(!o)return r(n,s);let c=new Fmt(r,o,n,s);return r(a,c)}}});var owe=p((RTr,swe)=>{"use strict";var Umt=AO();swe.exports=t=>e=>function(i,n){return e(i,new Umt({...i,retryOptions:{...t,...i.retryOptions}},{handler:n,dispatch:e}))}});var cwe=p((TTr,awe)=>{"use strict";var qmt=wt(),{InvalidArgumentError:Gmt,RequestAbortedError:Hmt}=$t(),jmt=_O(),vz=class extends jmt{#e=1024*1024;#t=null;#i=!1;#r=!1;#n=0;#s=null;#l=null;constructor({maxSize:e},r){if(super(r),e!=null&&(!Number.isFinite(e)||e<1))throw new Gmt("maxSize must be a number greater than 0");this.#e=e??this.#e,this.#l=r}onConnect(e){this.#t=e,this.#l.onConnect(this.#u.bind(this))}#u(e){this.#r=!0,this.#s=e}onHeaders(e,r,i,n){let o=qmt.parseHeaders(r)["content-length"];if(o!=null&&o>this.#e)throw new Hmt(`Response size (${o}) larger than maxSize (${this.#e})`);return this.#r?!0:this.#l.onHeaders(e,r,i,n)}onError(e){this.#i||(e=this.#s??e,this.#l.onError(e))}onData(e){return this.#n=this.#n+e.length,this.#n>=this.#e&&(this.#i=!0,this.#r?this.#l.onError(this.#s):this.#l.onComplete([])),!0}onComplete(e){if(!this.#i){if(this.#r){this.#l.onError(this.reason);return}this.#l.onComplete(e)}}};function Vmt({maxSize:t}={maxSize:1024*1024}){return e=>function(i,n){let{dumpMaxSize:s=t}=i,o=new vz({maxSize:s},n);return e(i,o)}}awe.exports=Vmt});var fwe=p((NTr,lwe)=>{"use strict";var{isIP:zmt}=require("node:net"),{lookup:$mt}=require("node:dns"),Wmt=_O(),{InvalidArgumentError:nw,InformationalError:Jmt}=$t(),uwe=Math.pow(2,31)-1,_z=class{#e=0;#t=0;#i=new Map;dualStack=!0;affinity=null;lookup=null;pick=null;constructor(e){this.#e=e.maxTTL,this.#t=e.maxItems,this.dualStack=e.dualStack,this.affinity=e.affinity,this.lookup=e.lookup??this.#r,this.pick=e.pick??this.#n}get full(){return this.#i.size===this.#t}runLookup(e,r,i){let n=this.#i.get(e.hostname);if(n==null&&this.full){i(null,e.origin);return}let s={affinity:this.affinity,dualStack:this.dualStack,lookup:this.lookup,pick:this.pick,...r.dns,maxTTL:this.#e,maxItems:this.#t};if(n==null)this.lookup(e,s,(o,a)=>{if(o||a==null||a.length===0){i(o??new Jmt("No DNS entries found"));return}this.setRecords(e,a);let c=this.#i.get(e.hostname),u=this.pick(e,c,s.affinity),l;typeof u.port=="number"?l=`:${u.port}`:e.port!==""?l=`:${e.port}`:l="",i(null,`${e.protocol}//${u.family===6?`[${u.address}]`:u.address}${l}`)});else{let o=this.pick(e,n,s.affinity);if(o==null){this.#i.delete(e.hostname),this.runLookup(e,r,i);return}let a;typeof o.port=="number"?a=`:${o.port}`:e.port!==""?a=`:${e.port}`:a="",i(null,`${e.protocol}//${o.family===6?`[${o.address}]`:o.address}${a}`)}}#r(e,r,i){$mt(e.hostname,{all:!0,family:this.dualStack===!1?this.affinity:0,order:"ipv4first"},(n,s)=>{if(n)return i(n);let o=new Map;for(let a of s)o.set(`${a.address}:${a.family}`,a);i(null,o.values())})}#n(e,r,i){let n=null,{records:s,offset:o}=r,a;if(this.dualStack?(i==null&&(o==null||o===uwe?(r.offset=0,i=4):(r.offset++,i=(r.offset&1)===1?6:4)),s[i]!=null&&s[i].ips.length>0?a=s[i]:a=s[i===4?6:4]):a=s[i],a==null||a.ips.length===0)return n;a.offset==null||a.offset===uwe?a.offset=0:a.offset++;let c=a.offset%a.ips.length;return n=a.ips[c]??null,n==null?n:Date.now()-n.timestamp>n.ttl?(a.ips.splice(c,1),this.pick(e,r,i)):n}setRecords(e,r){let i=Date.now(),n={records:{4:null,6:null}};for(let s of r){s.timestamp=i,typeof s.ttl=="number"?s.ttl=Math.min(s.ttl,this.#e):s.ttl=this.#e;let o=n.records[s.family]??{ips:[]};o.ips.push(s),n.records[s.family]=o}this.#i.set(e.hostname,n)}getHandler(e,r){return new xz(this,e,r)}},xz=class extends Wmt{#e=null;#t=null;#i=null;#r=null;#n=null;constructor(e,{origin:r,handler:i,dispatch:n},s){super(i),this.#n=r,this.#r=i,this.#t={...s},this.#e=e,this.#i=n}onError(e){switch(e.code){case"ETIMEDOUT":case"ECONNREFUSED":{if(this.#e.dualStack){this.#e.runLookup(this.#n,this.#t,( Line truncated
${s}`;break;case"retry":jIe(s)&&(r[n]=s);break;case"id":VIe(s)&&(r[n]=s);break;case"event":s.length>0&&(r[n]=s);break}}processEvent(e){e.retry&&jIe(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id&&VIe(e.id)&&(this.state.lastEventId=e.id),e.data!==void 0&&this.push({type:e.event||"message",options:{data:e.data,lastEventId:this.state.lastEventId,origin:this.state.origin}})}clearEvent(){this.event={data:void 0,event:void 0,id:void 0,retry:void 0}}};zIe.exports={EventSourceStream:d9}});var tSe=p((cNr,eSe)=>{"use strict";var{pipeline:s0t}=require("node:stream"),{fetching:o0t}=e_(),{makeRequest:a0t}=aw(),{webidl:_d}=rs(),{EventSourceStream:c0t}=$Ie(),{parseMIMEType:u0t}=ea(),{createFastMessageEvent:l0t}=dw(),{isNetworkError:WIe}=Xv(),{delay:f0t}=f9(),{kEnumerableProperty:py}=wt(),{environmentSettingsObject:JIe}=Ma(),YIe=!1,KIe=3e3,d_=0,XIe=1,p_=2,h0t="anonymous",d0t="use-credentials",yw=class t extends EventTarget{#e={open:null,error:null,message:null};#t=null;#i=!1;#r=d_;#n=null;#s=null;#l;#u;constructor(e,r={}){super(),_d.util.markAsUncloneable(this);let i="EventSource constructor";_d.argumentLengthCheck(arguments,1,i),YIe||(YIe=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=_d.converters.USVString(e,i,"url"),r=_d.converters.EventSourceInitDict(r,i,"eventSourceInitDict"),this.#l=r.dispatcher,this.#u={lastEventId:"",reconnectionTime:KIe};let n=JIe,s;try{s=new URL(e,n.settingsObject.baseUrl),this.#u.origin=s.origin}catch(c){throw new DOMException(c,"SyntaxError")}this.#t=s.href;let o=h0t;r.withCredentials&&(o=d0t,this.#i=!0);let a={redirect:"follow",keepalive:!0,mode:"cors",credentials:o==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};a.client=JIe.settingsObject,a.headersList=[["accept",{name:"accept",value:"text/event-stream"}]],a.cache="no-store",a.initiator="other",a.urlList=[new URL(this.#t)],this.#n=a0t(a),this.#a()}get readyState(){return this.#r}get url(){return this.#t}get withCredentials(){return this.#i}#a(){if(this.#r===p_)return;this.#r=d_;let e={request:this.#n,dispatcher:this.#l},r=i=>{WIe(i)&&(this.dispatchEvent(new Event("error")),this.close()),this.#c()};e.processResponseEndOfBody=r,e.processResponse=i=>{if(WIe(i))if(i.aborted){this.close(),this.dispatchEvent(new Event("error"));return}else{this.#c();return}let n=i.headersList.get("content-type",!0),s=n!==null?u0t(n):"failure",o=s!=="failure"&&s.essence==="text/event-stream";if(i.status!==200||o===!1){this.close(),this.dispatchEvent(new Event("error"));return}this.#r=XIe,this.dispatchEvent(new Event("open")),this.#u.origin=i.urlList[i.urlList.length-1].origin;let a=new c0t({eventSourceSettings:this.#u,push:c=>{this.dispatchEvent(l0t(c.type,c.options))}});s0t(i.body.stream,a,c=>{c?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#s=o0t(e)}async#c(){this.#r!==p_&&(this.#r=d_,this.dispatchEvent(new Event("error")),await f0t(this.#u.reconnectionTime),this.#r===d_&&(this.#u.lastEventId.length&&this.#n.headersList.set("last-event-id",this.#u.lastEventId,!0),this.#a()))}close(){_d.brandCheck(this,t),this.#r!==p_&&(this.#r=p_,this.#s.abort(),this.#n=null)}get onopen(){return this.#e.open}set onopen(e){this.#e.open&&this.removeEventListener("open",this.#e.open),typeof e=="function"?(this.#e.open=e,this.addEventListener("open",e)):this.#e.open=null}get onmessage(){return this.#e.message}set onmessage(e){this.#e.message&&this.removeEventListener("message",this.#e.message),typeof e=="function"?(this.#e.message=e,this.addEventListener("message",e)):this.#e.message=null}get onerror(){return this.#e.error}set onerror(e){this.#e.error&&this.removeEventListener("error",this.#e.error),typeof e=="function"?(this.#e.error=e,this.addEventListener("error",e)):this.#e.error=null}},ZIe={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:d_,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:XIe,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:p_,writable:!1}};Object.defineProperties(yw,ZIe);Object.defineProperties(yw.prototype,ZIe);Object.defineProperties(yw.prototype,{close:py,onerror:py,onmessage:py,onopen:py,readyState:py,url:py,withCredentials:py});_d.converters.EventSourceInitDict=_d.dictionaryConverter([{key:"withCredentials",converter:_d.converters.boolean,defaultValue:()=>!1},{key:"dispatcher",converter:_d.converters.any}]);eSe.exports={EventSource:yw,defaultReconnectionTime:KIe}});var my=p((uNr,Xe)=>{"use strict";var p0t=zb(),rSe=yv(),m0t=$b(),A0t=ZEe(),g0t=Wb(),y0t=MV(),E0t=I0e(),b0t=R0e(),iSe=$t(),pP=wt(),{InvalidArgumentError:dP}=iSe,Ew=mbe(),w0t=bv(),C0t=Ez(),I0t=Kbe(),S0t=Cz(),B0t=oz(),v0t=AO(),{getGlobalDispatcher:nSe,setGlobalDispatcher:_0t}=vO(),x0t=_O(),R0t=sO(),T0t=oO();Object.assign(rSe.prototype,Ew);Xe.exports.Dispatcher=rSe;Xe.exports.Client=p0t;Xe.exports.Pool=m0t;Xe.exports.BalancedPool=A0t;Xe.exports.Agent=g0t;Xe.exports.ProxyAgent=y0t;Xe.exports.EnvHttpProxyAgent=E0t;Xe.e Line truncated
%s`,N,N,E,i);var Q=E.type==="*"?I$:E.type==="?"?C$:"\\"+E.type;n=!0,i=i.slice(0,E.reStart)+Q+"\\("+N}m(),s&&(i+="\\\\");var T=!1;switch(i.charAt(0)){case"[":case".":case"(":T=!0}for(var G=a.length-1;G>-1;G--){var D=a[G],H=i.slice(0,D.reStart),L=i.slice(D.reStart,D.reEnd-8),Z=i.slice(D.reEnd-8,D.reEnd),W=i.slice(D.reEnd);Z+=W;var De=H.split("(").length-1,de=W;for(A=0;A<De;A++)de=de.replace(/\)[+*?]?/,"");W=de;var Qe="";W===""&&e!==MP&&(Qe="$");var K=H+L+W+Qe+Z;i=K}if(i!==""&&n&&(i="(?=.)"+i),T&&(i=h+i),e===MP)return[i,n];if(!n)return rSt(t);var Te=r.nocase?"i":"";try{var Ie=new RegExp("^"+i+"$",Te)}catch{return new RegExp("$.")}return Ie._glob=t,Ie._src=i,Ie}Ya.makeRe=function(t,e){return new ss(t,e||{}).makeRe()};ss.prototype.makeRe=tSt;function tSt(){if(this.regexp||this.regexp===!1)return this.regexp;var t=this.set;if(!t.length)return this.regexp=!1,this.regexp;var e=this.options,r=e.noglobstar?I$:e.dot?$It:WIt,i=e.nocase?"i":"",n=t.map(function(s){return s.map(function(o){return o===S$?r:typeof o=="string"?iSt(o):o._src}).join("\\/")}).join("|");n="^(?:"+n+")$",this.negate&&(n="^(?!"+n+").*$");try{this.regexp=new RegExp(n,i)}catch{this.regexp=!1}return this.regexp}Ya.match=function(t,e,r){r=r||{};var i=new ss(e,r);return t=t.filter(function(n){return i.match(n)}),i.options.nonull&&!t.length&&t.push(e),t};ss.prototype.match=function(e,r){if(typeof r>"u"&&(r=this.partial),this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return e==="";if(e==="/"&&r)return!0;var i=this.options;F_.sep!=="/"&&(e=e.split(F_.sep).join("/")),e=e.split(h_e),this.debug(this.pattern,"split",e);var n=this.set;this.debug(this.pattern,"set",n);var s,o;for(o=e.length-1;o>=0&&(s=e[o],!s);o--);for(o=0;o<n.length;o++){var a=n[o],c=e;i.matchBase&&a.length===1&&(c=[s]);var u=this.matchOne(c,a,r);if(u)return i.flipNegate?!0:!this.negate}return i.flipNegate?!1:this.negate};ss.prototype.matchOne=function(t,e,r){var i=this.options;this.debug("matchOne",{this:this,file:t,pattern:e}),this.debug("matchOne",t.length,e.length);for(var n=0,s=0,o=t.length,a=e.length;n<o&&s<a;n++,s++){this.debug("matchOne loop");var c=e[s],u=t[n];if(this.debug(e,c,u),c===!1)return!1;if(c===S$){this.debug("GLOBSTAR",[e,c,u]);var l=n,f=s+1;if(f===a){for(this.debug("** at the end");n<o;n++)if(t[n]==="."||t[n]===".."||!i.dot&&t[n].charAt(0)===".")return!1;return!0}for(;l<o;){var h=t[l];if(this.debug(`
globstar while`,t,l,e,f,h),this.matchOne(t.slice(l),e.slice(f),r))return this.debug("globstar found match!",l,o,h),!0;if(h==="."||h===".."||!i.dot&&h.charAt(0)==="."){this.debug("dot detected!",t,l,e,f);break}this.debug("globstar swallow a segment, and continue"),l++}return!!(r&&(this.debug(`
>>> no match, partial?`,t,l,e,f),l===o))}var d;if(typeof c=="string"?(d=u===c,this.debug("string match",c,u,d)):(d=u.match(c),this.debug("pattern match",c,u,d)),!d)return!1}if(n===o&&s===a)return!0;if(n===o)return r;if(s===a)return n===o-1&&t[n]==="";throw new Error("wtf?")};function HIt(t){return t.replace(/\\(.)/g,"$1")}function jIt(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}});var Px=p((EDr,dxe)=>{"use strict";var XIt="2.0.0",ZIt=Number.MAX_SAFE_INTEGER||9007199254740991,eSt=16,tSt=250,rSt=["major","premajor","minor","preminor","patch","prepatch","prerelease"];dxe.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:eSt,MAX_SAFE_BUILD_LENGTH:tSt,MAX_SAFE_INTEGER:ZIt,RELEASE_TYPES:rSt,SEMVER_SPEC_VERSION:XIt,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var kx=p((bDr,pxe)=>{"use strict";var iSt=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};pxe.exports=iSt});var Iw=p((cf,mxe)=>{"use strict";var{MAX_SAFE_COMPONENT_LENGTH:w$,MAX_SAFE_BUILD_LENGTH:nSt,MAX_LENGTH:sSt}=Px(),oSt=kx();cf=mxe.exports={};var aSt=cf.re=[],cSt=cf.safeRe=[],ge=cf.src=[],uSt=cf.safeSrc=[],ye=cf.t={},lSt=0,C$="[a-zA-Z0-9-]",fSt=[["\\s",1],["\\d",sSt],[C$,nSt]],hSt=t=>{for(let[e,r]of fSt)t=t.split(`${e}*`).join(`${e}{0,${r}}`).split(`${e}+`).join(`${e}{1,${r}}`);return t},at=(t,e,r)=>{let i=hSt(e),n=lSt++;oSt(t,n,e),ye[t]=n,ge[n]=e,uSt[n]=i,aSt[n]=new RegExp(e,r?"g":void 0),cSt[n]=new RegExp(i,r?"g":void 0)};at("NUMERICIDENTIFIER","0|[1-9]\\d*");at("NUMERICIDENTIFIERLOOSE","\\d+");at("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${C$}*`);at("MAINVERSION",`(${ge[ye.NUMERICIDENTIFIER]})\\.(${ge[ye.NUMERICIDENTIFIER]})\\.(${ge[ye.NUMERICIDENTIFIER]})`);at("MAINVERSIONLOOSE",`(${ge[ye.NUMERICIDENTIFIERLOOSE]})\\.(${ge[ye.NUMERICIDENTIFIERLOOSE]})\\.(${ge[ye.NUMERICIDENTIFIERLOOSE]})`);at("PRERELEASEIDENTIFIER",`(?:${ge[ye.NONNUMERICIDENTIFIER]}|${ge[ye.NUMERICIDENTIFIER]})`);at("PRERELEASEIDENTIFIERLOOSE",`(?:${ge[ye.NONNUMERICIDENTIFIER]}|${ge[ye.NUMERICIDENTIFIERLOOSE]})`);at("PRERELEASE",`(?:-(${ge[ye.PRERELEASEIDENTIFIER]}(?:\\.${ge[ye.PRERELEASEIDENTIFIER]})*))`);at("PRERELEASELOOSE",`(?:-?(${ge[ye.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${ge[ye.PRERELEASEIDENTIFIERLOOSE]})*))`);at("BUILDIDENTIFIER",`${C$}+`);at("BUILD",`(?:\\+(${ge[ye.BUILDIDENTIFIER]}(?:\\.${ge[ye.BUILDIDENTIFIER]})*))`);at("FULLPLAIN",`v?${ge[ye.MAINVERSION]}${ge[ye.PRERELEASE]}?${ge[ye.BUILD]}?`);at("FULL",`^${ge[ye.FULLPLAIN]}$`);at("LOOSEPLAIN",`[v=\\s]*${ge[ye.MAINVERSIONLOOSE]}${ge[ye.PRERELEASELOOSE]}?${ge[ye.BUILD]}?`);at("LOOSE",`^${ge[ye.LOOSEPLAIN]}$`);at("GTLT","((?:<|>)?=?)");at("XRANGEIDENTIFIERLOOSE",`${ge[ye.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);at("XRANGEIDENTIFIER",`${ge[ye.NUMERICIDENTIFIER]}|x|X|\\*`);at("XRANGEPLAIN",`[v=\\s]*(${ge[ye.XRANGEIDENTIFIER]})(?:\\.(${ge[ye.XRANGEIDENTIFIER]})(?:\\.(${ge[ye.XRANGEIDENTIFIER]})(?:${ge[ye.PRERELEASE]})?${ge[ye.BUILD]}?)?)?`);at("XRANGEPLAINLOOSE",`[v=\\s]*(${ge[ye.XRANGEIDENTIFIERLOOSE]})(?:\\.(${ge[ye.XRANGEIDENTIFIERLOOSE]})(?:\\.(${ge[ye.XRANGEIDENTIFIERLOOSE]})(?:${ge[ye.PRERELEASELOOSE]})?${ge[ye.BUILD]}?)?)?`);at("XRANGE",`^${ge[ye.GTLT]}\\s*${ge[ye.XRANGEPLAIN]}$`);at("XRANGELOOSE",`^${ge[ye.GTLT]}\\s*${ge[ye.XRANGEPLAINLOOSE]}$`);at("COERCEPLAIN",`(^|[^\\d])(\\d{1,${w$}})(?:\\.(\\d{1,${w$}}))?(?:\\.(\\d{1,${w$}}))?`);at("COERCE",`${ge[ye.COERCEPLAIN]}(?:$|[^\\d])`);at("COERCEFULL",ge[ye.COERCEPLAIN]+`(?:${ge[ye.PRERELEASE]})?(?:${ge[ye.BUILD]})?(?:$|[^\\d])`);at("COERCERTL",ge[ye.COERCE],!0);at("COERCERTLFULL",ge[ye.COERCEFULL],!0);at("LONETILDE","(?:~>?)");at("TILDETRIM",`(\\s*)${ge[ye.LONETILDE]}\\s+`,!0);cf.tildeTrimReplace="$1~";at("TILDE",`^${ge[ye.LONETILDE]}${ge[ye.XRANGEPLAIN]}$`);at("TILDELOOSE",`^${ge[ye.LONETILDE]}${ge[ye.XRANGEPLAINLOOSE]}$`);at("LONECARET","(?:\\^)");at("CARETTRIM",`(\\s*)${ge[ye.LONECARET]}\\s+`,!0);cf.caretTrimReplace="$1^";at("CARET",`^${ge[ye.LONECARET]}${ge[ye.XRANGEPLAIN]}$`);at("CARETLOOSE",`^${ge[ye.LONECARET]}${ge[ye.XRANGEPLAINLOOSE]}$`);at("COMPARATORLOOSE",`^${ge[ye.GTLT]}\\s*(${ge[ye.LOOSEPLAIN]})$|^$`);at("COMPARATOR",`^${ge[ye.GTLT]}\\s*(${ge[ye.FULLPLAIN]})$|^$`);at("COMPARATORTRIM",`(\\s*)${ge[ye.GTLT]}\\s*(${ge[ye.LOOSEPLAIN]}|${ge[ye.XRANGEPLAIN]})`,!0);cf.comparatorTrimReplace="$1$2$3";at("HYPHENRANGE",`^\\s*(${ge[ye.XRANGEPLAIN]})\\s+-\\s+(${ge[ye.XRANGEPLAIN]})\\s*$`);at("HYPHENRANGELOOSE",`^\\s*(${ge[ye.XRANGEPLAINLOOSE]})\\s+-\\s+(${ge[ye.XRANGEPLAINLOOSE]})\\s*$`);at("STAR","(<|>)?=?\\s*\\*");at("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");at("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")});var PP=p((wDr,Axe)=>{"use strict";var dSt=Object.freeze({loose:!0}),pSt=Object.freeze({}),mSt=t=>t?typeof t!="object"?dSt:t:pSt;Axe.exports=mSt});var I$=p((CDr,Exe)=>{"use strict";var gxe=/^[0-9]+$/,yxe=(t,e)=>{if(typeof t=="number"&&typeof e=="number")return t===e?0:t<e?-1:1;let r=gxe.test(t),i=gxe.test(e);return r&&i&&(t=+t,e=+e),t===e?0:r&&!i?-1:i&&!r?1:t<e?-1:1},ASt=(t,e)=>yxe(e Line truncated
>>> no match, partial?`,t,l,e,f),l===o))}var d;if(typeof c=="string"?(d=u===c,this.debug("string match",c,u,d)):(d=u.match(c),this.debug("pattern match",c,u,d)),!d)return!1}if(n===o&&s===a)return!0;if(n===o)return r;if(s===a)return n===o-1&&t[n]==="";throw new Error("wtf?")};function rSt(t){return t.replace(/\\(.)/g,"$1")}function iSt(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}});var G_=p((LDr,E_e)=>{"use strict";var fSt="2.0.0",hSt=Number.MAX_SAFE_INTEGER||9007199254740991,dSt=16,pSt=250,mSt=["major","premajor","minor","preminor","patch","prepatch","prerelease"];E_e.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:dSt,MAX_SAFE_BUILD_LENGTH:pSt,MAX_SAFE_INTEGER:hSt,RELEASE_TYPES:mSt,SEMVER_SPEC_VERSION:fSt,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var H_=p((MDr,b_e)=>{"use strict";var ASt=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};b_e.exports=ASt});var Tw=p((mf,w_e)=>{"use strict";var{MAX_SAFE_COMPONENT_LENGTH:v$,MAX_SAFE_BUILD_LENGTH:gSt,MAX_LENGTH:ySt}=G_(),ESt=H_();mf=w_e.exports={};var bSt=mf.re=[],wSt=mf.safeRe=[],ge=mf.src=[],CSt=mf.safeSrc=[],ye=mf.t={},ISt=0,_$="[a-zA-Z0-9-]",SSt=[["\\s",1],["\\d",ySt],[_$,gSt]],BSt=t=>{for(let[e,r]of SSt)t=t.split(`${e}*`).join(`${e}{0,${r}}`).split(`${e}+`).join(`${e}{1,${r}}`);return t},at=(t,e,r)=>{let i=BSt(e),n=ISt++;ESt(t,n,e),ye[t]=n,ge[n]=e,CSt[n]=i,bSt[n]=new RegExp(e,r?"g":void 0),wSt[n]=new RegExp(i,r?"g":void 0)};at("NUMERICIDENTIFIER","0|[1-9]\\d*");at("NUMERICIDENTIFIERLOOSE","\\d+");at("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${_$}*`);at("MAINVERSION",`(${ge[ye.NUMERICIDENTIFIER]})\\.(${ge[ye.NUMERICIDENTIFIER]})\\.(${ge[ye.NUMERICIDENTIFIER]})`);at("MAINVERSIONLOOSE",`(${ge[ye.NUMERICIDENTIFIERLOOSE]})\\.(${ge[ye.NUMERICIDENTIFIERLOOSE]})\\.(${ge[ye.NUMERICIDENTIFIERLOOSE]})`);at("PRERELEASEIDENTIFIER",`(?:${ge[ye.NONNUMERICIDENTIFIER]}|${ge[ye.NUMERICIDENTIFIER]})`);at("PRERELEASEIDENTIFIERLOOSE",`(?:${ge[ye.NONNUMERICIDENTIFIER]}|${ge[ye.NUMERICIDENTIFIERLOOSE]})`);at("PRERELEASE",`(?:-(${ge[ye.PRERELEASEIDENTIFIER]}(?:\\.${ge[ye.PRERELEASEIDENTIFIER]})*))`);at("PRERELEASELOOSE",`(?:-?(${ge[ye.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${ge[ye.PRERELEASEIDENTIFIERLOOSE]})*))`);at("BUILDIDENTIFIER",`${_$}+`);at("BUILD",`(?:\\+(${ge[ye.BUILDIDENTIFIER]}(?:\\.${ge[ye.BUILDIDENTIFIER]})*))`);at("FULLPLAIN",`v?${ge[ye.MAINVERSION]}${ge[ye.PRERELEASE]}?${ge[ye.BUILD]}?`);at("FULL",`^${ge[ye.FULLPLAIN]}$`);at("LOOSEPLAIN",`[v=\\s]*${ge[ye.MAINVERSIONLOOSE]}${ge[ye.PRERELEASELOOSE]}?${ge[ye.BUILD]}?`);at("LOOSE",`^${ge[ye.LOOSEPLAIN]}$`);at("GTLT","((?:<|>)?=?)");at("XRANGEIDENTIFIERLOOSE",`${ge[ye.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);at("XRANGEIDENTIFIER",`${ge[ye.NUMERICIDENTIFIER]}|x|X|\\*`);at("XRANGEPLAIN",`[v=\\s]*(${ge[ye.XRANGEIDENTIFIER]})(?:\\.(${ge[ye.XRANGEIDENTIFIER]})(?:\\.(${ge[ye.XRANGEIDENTIFIER]})(?:${ge[ye.PRERELEASE]})?${ge[ye.BUILD]}?)?)?`);at("XRANGEPLAINLOOSE",`[v=\\s]*(${ge[ye.XRANGEIDENTIFIERLOOSE]})(?:\\.(${ge[ye.XRANGEIDENTIFIERLOOSE]})(?:\\.(${ge[ye.XRANGEIDENTIFIERLOOSE]})(?:${ge[ye.PRERELEASELOOSE]})?${ge[ye.BUILD]}?)?)?`);at("XRANGE",`^${ge[ye.GTLT]}\\s*${ge[ye.XRANGEPLAIN]}$`);at("XRANGELOOSE",`^${ge[ye.GTLT]}\\s*${ge[ye.XRANGEPLAINLOOSE]}$`);at("COERCEPLAIN",`(^|[^\\d])(\\d{1,${v$}})(?:\\.(\\d{1,${v$}}))?(?:\\.(\\d{1,${v$}}))?`);at("COERCE",`${ge[ye.COERCEPLAIN]}(?:$|[^\\d])`);at("COERCEFULL",ge[ye.COERCEPLAIN]+`(?:${ge[ye.PRERELEASE]})?(?:${ge[ye.BUILD]})?(?:$|[^\\d])`);at("COERCERTL",ge[ye.COERCE],!0);at("COERCERTLFULL",ge[ye.COERCEFULL],!0);at("LONETILDE","(?:~>?)");at("TILDETRIM",`(\\s*)${ge[ye.LONETILDE]}\\s+`,!0);mf.tildeTrimReplace="$1~";at("TILDE",`^${ge[ye.LONETILDE]}${ge[ye.XRANGEPLAIN]}$`);at("TILDELOOSE",`^${ge[ye.LONETILDE]}${ge[ye.XRANGEPLAINLOOSE]}$`);at("LONECARET","(?:\\^)");at("CARETTRIM",`(\\s*)${ge[ye.LONECARET]}\\s+`,!0);mf.caretTrimReplace="$1^";at("CARET",`^${ge[ye.LONECARET]}${ge[ye.XRANGEPLAIN]}$`);at("CARETLOOSE",`^${ge[ye.LONECARET]}${ge[ye.XRANGEPLAINLOOSE]}$`);at("COMPARATORLOOSE",`^${ge[ye.GTLT]}\\s*(${ge[ye.LOOSEPLAIN]})$|^$`);at("COMPARATOR",`^${ge[ye.GTLT]}\\s*(${ge[ye.FULLPLAIN]})$|^$`);at("COMPARATORTRIM",`(\\s*)${ge[ye.GTLT]}\\s*(${ge[ye.LOOSEPLAIN]}|${ge[ye.XRANGEPLAIN]})`,!0);mf.comparatorTrimReplace="$1$2$3";at("HYPHENRANGE",`^\\s*(${ge[ye.XRANGEPLAIN]})\\s+-\\s+(${ge[ye.XRANGEPLAIN]})\\s*$`);at("HYPHENRANGELOOSE",`^\\s*(${ge[ye.XRANGEPLAINLOOSE]})\\s+-\\s+(${ge[ye.XRANGEPLAINLOOSE]})\\s*$`);at("STAR","(<|>)?=?\\s*\\*");at("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");at("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")});var GP=p((FDr,C_e)=>{"use strict";var vSt=Object.freeze({loose:!0}),_St=Object.freeze({}),xSt=t=>t?typeof t!="object"?vSt:t:_St;C_e.exports=xSt});var x$=p((UDr,B_e)=>{"use strict";var I_e=/^[0-9]+$/,S_e=(t,e)=>{if(typeof t=="number"&&typeof e=="number")return t===e?0:t<e?-1:1;let r=I_e.test(t),i=I_e.test(e);return r&&i&&(t=+t,e=+e),t===e?0:r&&!i?-1:i&&!r?1:t<e?-1:1},RSt=(t,e)=>S_e(e Line truncated
`).join(`
`+s),t.push(n+"m+"+yk.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=Qxt()+e+" "+t[0]}function Qxt(){return ts.inspectOpts.hideDate?"":new Date().toISOString()+" "}function Lxt(...t){return process.stderr.write(gk.format(...t)+`
`)}function Fxt(t){t?process.env.DEBUG=t:delete process.env.DEBUG}function Mxt(){return process.env.DEBUG}function Uxt(t){t.inspectOpts={};let e=Object.keys(ts.inspectOpts);for(let r=0;r<e.length;r++)t.inspectOpts[e[r]]=ts.inspectOpts[e[r]]}yk.exports=aW()(ts);var{formatters:JRe}=yk.exports;JRe.o=function(t){return this.inspectOpts.colors=this.useColors,gk.inspect(t,this.inspectOpts).split(`
`).map(e=>e.trim()).join(" ")};JRe.O=function(t){return this.inspectOpts.colors=this.useColors,gk.inspect(t,this.inspectOpts)}});var By=p((QPr,fW)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?fW.exports=jRe():fW.exports=YRe()});var ZRe=p(ra=>{"use strict";var qxt=ra&&ra.__createBinding||(Object.create?(function(t,e,r,i){i===void 0&&(i=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,i,n)}):(function(t,e,r,i){i===void 0&&(i=r),t[i]=e[r]})),Gxt=ra&&ra.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),KRe=ra&&ra.__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)&&qxt(e,t,r);return Gxt(e,t),e};Object.defineProperty(ra,"__esModule",{value:!0});ra.req=ra.json=ra.toBuffer=void 0;var Hxt=KRe(require("http")),jxt=KRe(require("https"));async function XRe(t){let e=0,r=[];for await(let i of t)e+=i.length,r.push(i);return Buffer.concat(r,e)}ra.toBuffer=XRe;async function Vxt(t){let r=(await XRe(t)).toString("utf8");try{return JSON.parse(r)}catch(i){let n=i;throw n.message+=` (input: ${r})`,n}}ra.json=Vxt;function zxt(t,e={}){let i=((typeof t=="string"?t:t.href).startsWith("https:")?jxt:Hxt).request(t,e),n=new Promise((s,o)=>{i.once("response",s).once("error",o).end()});return i.then=n.then.bind(n),i}ra.req=zxt});var iTe=p($a=>{"use strict";var tTe=$a&&$a.__createBinding||(Object.create?(function(t,e,r,i){i===void 0&&(i=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,i,n)}):(function(t,e,r,i){i===void 0&&(i=r),t[i]=e[r]})),$xt=$a&&$a.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),rTe=$a&&$a.__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)&&tTe(e,t,r);return $xt(e,t),e},Wxt=$a&&$a.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&tTe(e,t,r)};Object.defineProperty($a,"__esModule",{value:!0});$a.Agent=void 0;var Jxt=rTe(require("net")),eTe=rTe(require("http")),Yxt=require("https");Wxt(ZRe(),$a);var ff=Symbol("AgentBaseInternalState"),hW=class extends eTe.Agent{constructor(e){super(e),this[ff]={}}isSecureEndpoint(e){if(e){if(typeof e.secureEndpoint=="boolean")return e.secureEndpoint;if(typeof e.protocol=="string")return e.protocol==="https:"}let{stack:r}=new Error;return typeof r!="string"?!1:r.split(`
`).some(i=>i.indexOf("(https.js:")!==-1||i.indexOf("node:https:")!==-1)}incrementSockets(e){if(this.maxSockets===1/0&&this.maxTotalSockets===1/0)return null;this.sockets[e]||(this.sockets[e]=[]);let r=new Jxt.Socket({writable:!1});return this.sockets[e].push(r),this.totalSocketCount++,r}decrementSockets(e,r){if(!this.sockets[e]||r===null)return;let i=this.sockets[e],n=i.indexOf(r);n!==-1&&(i.splice(n,1),this.totalSocketCount--,i.length===0&&delete this.sockets[e])}getName(e){return this.isSecureEndpoint(e)?Yxt.Agent.prototype.getName.call(this,e):super.getName(e)}createSocket(e,r,i){let n={...r,secureEndpoint:this.isSecureEndpoint(r)},s=this.getName(n),o=this.incrementSockets(s);Promise.resolve().then(()=>this.connect(e,n)).then(a=>{if(this.decrementSockets(s,o),a instanceof eTe.Agent)try{return a.addRequest(e,n)}catch(c){return i(c)}this[ff].currentSocket=a,super.createSocket(e,r,i)},a=>{this.decrementSockets(s,o),i(a)})}createConnection(){let e=this[ff].currentSocket;if(this[ff].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[ff].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[ff]&&(this[ff].defaultPort=e)}get protocol(){return this[ff].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[ff]&&(this[ff].protocol=e)}};$a.Agent=hW});var nTe=p(Dw=>{"use strict";var Kxt=Dw&&Dw.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Dw,"__esModule",{value:!0});Dw.parseProxyResponse=void 0;var Xxt=Kxt(By()),Ek=(0,Xxt.default)("https-proxy-agent:parse-proxy-response");function Zxt(t){return new Promise((e,r)=>{let i=0,n=[];function s(){let l=t.read();l?u(l):t.once("readable",s)}function o(){t.removeListener("end",a),t.removeListener("error",c),t.removeListener("readable",s)}function a(){o(),Ek("onend"),r(new Error("Proxy connection ended before receiving CONNECT response"))}function c(l){o(),Ek("onerror %o",l),r(l)}function u(l){n.push(l),i+=l.length;let f=Buffer.concat(n,i),h=f.indexOf(`\r
`+s),t.push(n+"m+"+vk.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=J_t()+e+" "+t[0]}function J_t(){return os.inspectOpts.hideDate?"":new Date().toISOString()+" "}function Y_t(...t){return process.stderr.write(Bk.format(...t)+`
`)}function K_t(t){t?process.env.DEBUG=t:delete process.env.DEBUG}function X_t(){return process.env.DEBUG}function Z_t(t){t.inspectOpts={};let e=Object.keys(os.inspectOpts);for(let r=0;r<e.length;r++)t.inspectOpts[e[r]]=os.inspectOpts[e[r]]}vk.exports=hW()(os);var{formatters:tTe}=vk.exports;tTe.o=function(t){return this.inspectOpts.colors=this.useColors,Bk.inspect(t,this.inspectOpts).split(`
`).map(e=>e.trim()).join(" ")};tTe.O=function(t){return this.inspectOpts.colors=this.useColors,Bk.inspect(t,this.inspectOpts)}});var Py=p((ekr,AW)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?AW.exports=YRe():AW.exports=rTe()});var sTe=p(aa=>{"use strict";var ext=aa&&aa.__createBinding||(Object.create?(function(t,e,r,i){i===void 0&&(i=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,i,n)}):(function(t,e,r,i){i===void 0&&(i=r),t[i]=e[r]})),txt=aa&&aa.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),iTe=aa&&aa.__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)&&ext(e,t,r);return txt(e,t),e};Object.defineProperty(aa,"__esModule",{value:!0});aa.req=aa.json=aa.toBuffer=void 0;var rxt=iTe(require("http")),ixt=iTe(require("https"));async function nTe(t){let e=0,r=[];for await(let i of t)e+=i.length,r.push(i);return Buffer.concat(r,e)}aa.toBuffer=nTe;async function nxt(t){let r=(await nTe(t)).toString("utf8");try{return JSON.parse(r)}catch(i){let n=i;throw n.message+=` (input: ${r})`,n}}aa.json=nxt;function sxt(t,e={}){let i=((typeof t=="string"?t:t.href).startsWith("https:")?ixt:rxt).request(t,e),n=new Promise((s,o)=>{i.once("response",s).once("error",o).end()});return i.then=n.then.bind(n),i}aa.req=sxt});var uTe=p(ec=>{"use strict";var aTe=ec&&ec.__createBinding||(Object.create?(function(t,e,r,i){i===void 0&&(i=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,i,n)}):(function(t,e,r,i){i===void 0&&(i=r),t[i]=e[r]})),oxt=ec&&ec.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),cTe=ec&&ec.__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)&&aTe(e,t,r);return oxt(e,t),e},axt=ec&&ec.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&aTe(e,t,r)};Object.defineProperty(ec,"__esModule",{value:!0});ec.Agent=void 0;var cxt=cTe(require("net")),oTe=cTe(require("http")),uxt=require("https");axt(sTe(),ec);var yf=Symbol("AgentBaseInternalState"),gW=class extends oTe.Agent{constructor(e){super(e),this[yf]={}}isSecureEndpoint(e){if(e){if(typeof e.secureEndpoint=="boolean")return e.secureEndpoint;if(typeof e.protocol=="string")return e.protocol==="https:"}let{stack:r}=new Error;return typeof r!="string"?!1:r.split(`
`).some(i=>i.indexOf("(https.js:")!==-1||i.indexOf("node:https:")!==-1)}incrementSockets(e){if(this.maxSockets===1/0&&this.maxTotalSockets===1/0)return null;this.sockets[e]||(this.sockets[e]=[]);let r=new cxt.Socket({writable:!1});return this.sockets[e].push(r),this.totalSocketCount++,r}decrementSockets(e,r){if(!this.sockets[e]||r===null)return;let i=this.sockets[e],n=i.indexOf(r);n!==-1&&(i.splice(n,1),this.totalSocketCount--,i.length===0&&delete this.sockets[e])}getName(e){return this.isSecureEndpoint(e)?uxt.Agent.prototype.getName.call(this,e):super.getName(e)}createSocket(e,r,i){let n={...r,secureEndpoint:this.isSecureEndpoint(r)},s=this.getName(n),o=this.incrementSockets(s);Promise.resolve().then(()=>this.connect(e,n)).then(a=>{if(this.decrementSockets(s,o),a instanceof oTe.Agent)try{return a.addRequest(e,n)}catch(c){return i(c)}this[yf].currentSocket=a,super.createSocket(e,r,i)},a=>{this.decrementSockets(s,o),i(a)})}createConnection(){let e=this[yf].currentSocket;if(this[yf].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[yf].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[yf]&&(this[yf].defaultPort=e)}get protocol(){return this[yf].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[yf]&&(this[yf].protocol=e)}};ec.Agent=gW});var lTe=p(Fw=>{"use strict";var lxt=Fw&&Fw.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Fw,"__esModule",{value:!0});Fw.parseProxyResponse=void 0;var fxt=lxt(Py()),_k=(0,fxt.default)("https-proxy-agent:parse-proxy-response");function hxt(t){return new Promise((e,r)=>{let i=0,n=[];function s(){let l=t.read();l?u(l):t.once("readable",s)}function o(){t.removeListener("end",a),t.removeListener("error",c),t.removeListener("readable",s)}function a(){o(),_k("onend"),r(new Error("Proxy connection ended before receiving CONNECT response"))}function c(l){o(),_k("onerror %o",l),r(l)}function u(l){n.push(l),i+=l.length;let f=Buffer.concat(n,i),h=f.indexOf(`\r
\r
`);if(h===-1){Ek("have not received end of HTTP headers yet..."),s();return}let d=f.slice(0,h).toString("ascii").split(`\r
`),m=d.shift();if(!m)return t.destroy(),r(new Error("No header received from proxy CONNECT response"));let A=m.split(" "),y=+A[1],g=A.slice(2).join(" "),E={};for(let C of d){if(!C)continue;let S=C.indexOf(":");if(S===-1)return t.destroy(),r(new Error(`Invalid header from proxy CONNECT response: "${C}"`));let N=C.slice(0,S).toLowerCase(),Q=C.slice(S+1).trimStart(),T=E[N];typeof T=="string"?E[N]=[T,Q]:Array.isArray(T)?T.push(Q):E[N]=Q}Ek("got proxy server response: %o %o",m,E),o(),e({connect:{statusCode:y,statusText:g,headers:E},buffered:f})}t.on("error",c),t.on("end",a),s()})}Dw.parseProxyResponse=Zxt});var lTe=p($c=>{"use strict";var e_t=$c&&$c.__createBinding||(Object.create?(function(t,e,r,i){i===void 0&&(i=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,i,n)}):(function(t,e,r,i){i===void 0&&(i=r),t[i]=e[r]})),t_t=$c&&$c.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),cTe=$c&&$c.__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)&&e_t(e,t,r);return t_t(e,t),e},uTe=$c&&$c.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty($c,"__esModule",{value:!0});$c.HttpsProxyAgent=void 0;var bk=cTe(require("net")),sTe=cTe(require("tls")),r_t=uTe(require("assert")),i_t=uTe(By()),n_t=iTe(),s_t=require("url"),o_t=nTe(),Jx=(0,i_t.default)("https-proxy-agent"),oTe=t=>t.servername===void 0&&t.host&&!bk.isIP(t.host)?{...t,servername:t.host}:t,wk=class extends n_t.Agent{constructor(e,r){super(r),this.options={path:void 0},this.proxy=typeof e=="string"?new s_t.URL(e):e,this.proxyHeaders=r?.headers??{},Jx("Creating new HttpsProxyAgent instance: %o",this.proxy.href);let i=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),n=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={ALPNProtocols:["http/1.1"],...r?aTe(r,"headers"):null,host:i,port:n}}async connect(e,r){let{proxy:i}=this;if(!r.host)throw new TypeError('No "host" provided');let n;i.protocol==="https:"?(Jx("Creating `tls.Socket`: %o",this.connectOpts),n=sTe.connect(oTe(this.connectOpts))):(Jx("Creating `net.Socket`: %o",this.connectOpts),n=bk.connect(this.connectOpts));let s=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders},o=bk.isIPv6(r.host)?`[${r.host}]`:r.host,a=`CONNECT ${o}:${r.port} HTTP/1.1\r
`);if(h===-1){_k("have not received end of HTTP headers yet..."),s();return}let d=f.slice(0,h).toString("ascii").split(`\r
`),m=d.shift();if(!m)return t.destroy(),r(new Error("No header received from proxy CONNECT response"));let A=m.split(" "),y=+A[1],g=A.slice(2).join(" "),E={};for(let C of d){if(!C)continue;let S=C.indexOf(":");if(S===-1)return t.destroy(),r(new Error(`Invalid header from proxy CONNECT response: "${C}"`));let N=C.slice(0,S).toLowerCase(),Q=C.slice(S+1).trimStart(),T=E[N];typeof T=="string"?E[N]=[T,Q]:Array.isArray(T)?T.push(Q):E[N]=Q}_k("got proxy server response: %o %o",m,E),o(),e({connect:{statusCode:y,statusText:g,headers:E},buffered:f})}t.on("error",c),t.on("end",a),s()})}Fw.parseProxyResponse=hxt});var ATe=p(eu=>{"use strict";var dxt=eu&&eu.__createBinding||(Object.create?(function(t,e,r,i){i===void 0&&(i=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,i,n)}):(function(t,e,r,i){i===void 0&&(i=r),t[i]=e[r]})),pxt=eu&&eu.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),pTe=eu&&eu.__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)&&dxt(e,t,r);return pxt(e,t),e},mTe=eu&&eu.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(eu,"__esModule",{value:!0});eu.HttpsProxyAgent=void 0;var xk=pTe(require("net")),fTe=pTe(require("tls")),mxt=mTe(require("assert")),Axt=mTe(Py()),gxt=uTe(),yxt=require("url"),Ext=lTe(),ix=(0,Axt.default)("https-proxy-agent"),hTe=t=>t.servername===void 0&&t.host&&!xk.isIP(t.host)?{...t,servername:t.host}:t,Rk=class extends gxt.Agent{constructor(e,r){super(r),this.options={path:void 0},this.proxy=typeof e=="string"?new yxt.URL(e):e,this.proxyHeaders=r?.headers??{},ix("Creating new HttpsProxyAgent instance: %o",this.proxy.href);let i=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),n=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={ALPNProtocols:["http/1.1"],...r?dTe(r,"headers"):null,host:i,port:n}}async connect(e,r){let{proxy:i}=this;if(!r.host)throw new TypeError('No "host" provided');let n;i.protocol==="https:"?(ix("Creating `tls.Socket`: %o",this.connectOpts),n=fTe.connect(hTe(this.connectOpts))):(ix("Creating `net.Socket`: %o",this.connectOpts),n=xk.connect(this.connectOpts));let s=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders},o=xk.isIPv6(r.host)?`[${r.host}]`:r.host,a=`CONNECT ${o}:${r.port} HTTP/1.1\r
`;if(i.username||i.password){let h=`${decodeURIComponent(i.username)}:${decodeURIComponent(i.password)}`;s["Proxy-Authorization"]=`Basic ${Buffer.from(h).toString("base64")}`}s.Host=`${o}:${r.port}`,s["Proxy-Connection"]||(s["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let h of Object.keys(s))a+=`${h}: ${s[h]}\r
`;let c=(0,o_t.parseProxyResponse)(n);n.write(`${a}\r
`);let{connect:u,buffered:l}=await c;if(e.emit("proxyConnect",u),this.emit("proxyConnect",u,e),u.statusCode===200)return e.once("socket",a_t),r.secureEndpoint?(Jx("Upgrading socket connection to TLS"),sTe.connect({...aTe(oTe(r),"host","path","port"),socket:n})):n;n.destroy();let f=new bk.Socket({writable:!1});return f.readable=!0,e.once("socket",h=>{Jx("Replaying proxy buffer for failed request"),(0,r_t.default)(h.listenerCount("data")>0),h.push(l),h.push(null)}),f}};wk.protocols=["http","https"];$c.HttpsProxyAgent=wk;function a_t(t){t.resume()}function aTe(t,...e){let r={},i;for(i in t)e.includes(i)||(r[i]=t[i]);return r}});var dTe=p(ia=>{"use strict";var c_t=ia&&ia.__createBinding||(Object.create?(function(t,e,r,i){i===void 0&&(i=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,i,n)}):(function(t,e,r,i){i===void 0&&(i=r),t[i]=e[r]})),u_t=ia&&ia.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),fTe=ia&&ia.__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)&&c_t(e,t,r);return u_t(e,t),e};Object.defineProperty(ia,"__esModule",{value:!0});ia.req=ia.json=ia.toBuffer=void 0;var l_t=fTe(require("http")),f_t=fTe(require("https"));async function hTe(t){let e=0,r=[];for await(let i of t)e+=i.length,r.push(i);return Buffer.concat(r,e)}ia.toBuffer=hTe;async function h_t(t){let r=(await hTe(t)).toString("utf8");try{return JSON.parse(r)}catch(i){let n=i;throw n.message+=` (input: ${r})`,n}}ia.json=h_t;function d_t(t,e={}){let i=((typeof t=="string"?t:t.href).startsWith("https:")?f_t:l_t).request(t,e),n=new Promise((s,o)=>{i.once("response",s).once("error",o).end()});return i.then=n.then.bind(n),i}ia.req=d_t});var Yx=p(Wa=>{"use strict";var mTe=Wa&&Wa.__createBinding||(Object.create?(function(t,e,r,i){i===void 0&&(i=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,i,n)}):(function(t,e,r,i){i===void 0&&(i=r),t[i]=e[r]})),p_t=Wa&&Wa.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),ATe=Wa&&Wa.__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)&&mTe(e,t,r);return p_t(e,t),e},m_t=Wa&&Wa.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&mTe(e,t,r)};Object.defineProperty(Wa,"__esModule",{value:!0});Wa.Agent=void 0;var A_t=ATe(require("net")),pTe=ATe(require("http")),g_t=require("https");m_t(dTe(),Wa);var hf=Symbol("AgentBaseInternalState"),dW=class extends pTe.Agent{constructor(e){super(e),this[hf]={}}isSecureEndpoint(e){if(e){if(typeof e.secureEndpoint=="boolean")return e.secureEndpoint;if(typeof e.protocol=="string")return e.protocol==="https:"}let{stack:r}=new Error;return typeof r!="string"?!1:r.split(`
`).some(i=>i.indexOf("(https.js:")!==-1||i.indexOf("node:https:")!==-1)}incrementSockets(e){if(this.maxSockets===1/0&&this.maxTotalSockets===1/0)return null;this.sockets[e]||(this.sockets[e]=[]);let r=new A_t.Socket({writable:!1});return this.sockets[e].push(r),this.totalSocketCount++,r}decrementSockets(e,r){if(!this.sockets[e]||r===null)return;let i=this.sockets[e],n=i.indexOf(r);n!==-1&&(i.splice(n,1),this.totalSocketCount--,i.length===0&&delete this.sockets[e])}getName(e){return(typeof e.secureEndpoint=="boolean"?e.secureEndpoint:this.isSecureEndpoint(e))?g_t.Agent.prototype.getName.call(this,e):super.getName(e)}createSocket(e,r,i){let n={...r,secureEndpoint:this.isSecureEndpoint(r)},s=this.getName(n),o=this.incrementSockets(s);Promise.resolve().then(()=>this.connect(e,n)).then(a=>{if(this.decrementSockets(s,o),a instanceof pTe.Agent)return a.addRequest(e,n);this[hf].currentSocket=a,super.createSocket(e,r,i)},a=>{this.decrementSockets(s,o),i(a)})}createConnection(){let e=this[hf].currentSocket;if(this[hf].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[hf].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[hf]&&(this[hf].defaultPort=e)}get protocol(){return this[hf].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[hf]&&(this[hf].protocol=e)}};Wa.Agent=dW});var pW=p(Wc=>{"use strict";var y_t=Wc&&Wc.__createBinding||(Object.create?(function(t,e,r,i){i===void 0&&(i=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,i,n)}):(function(t,e,r,i){i===void 0&&(i=r),t[i]=e[r]})),E_t=Wc&&Wc.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),yTe=Wc&&Wc.__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)&&y_t(e,t,r);return E_t(e,t),e},b_t=Wc&&Wc.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Wc,"__esModule",{value:!0});Wc.HttpProxyAgent=void 0;var w_t=yTe(require("net")),C_t=yTe(require("tls")),I_t=b_t(By()),S_t=require("events"),B_t=Yx(),gTe=require("url"),Ow=(0,I_t.default)("http-proxy-agent"),Ck=class extends B_t.Agent{constructor(e,r){super(r),this.proxy=typeof e=="string"?new gTe.URL(e):e,this.proxyHeaders=r?.headers??{},Ow("Creating new HttpProxyAgent instance: %o",this.proxy.href);let i=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),n=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={...r?v_t(r,"headers"):null,host:i,port:n}}addRequest(e,r){e._header=null,this.setRequestProps(e,r),super.addRequest(e,r)}setRequestProps(e,r){let{proxy:i}=this,n=r.secureEndpoint?"https:":"http:",s=e.getHeader("host")||"localhost",o=`${n}//${s}`,a=new gTe.URL(e.path,o);r.port!==80&&(a.port=String(r.port)),e.path=String(a);let c=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders};if(i.username||i.password){let u=`${decodeURIComponent(i.username)}:${decodeURIComponent(i.password)}`;c["Proxy-Authorization"]=`Basic ${Buffer.from(u).toString("base64")}`}c["Proxy-Connection"]||(c["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let u of Object.keys(c)){let l=c[u];l&&e.setHeader(u,l)}}async connect(e,r){e._header=null,e.path.includes("://")||this.setRequestProps(e,r);let i,n;Ow("Regenerating stored HTTP header string for request"),e._implicitHeader(),e.outputData&&e.outputData.length>0&&(Ow("Patching connection write() output buffer with updated header"),i=e.outputData[0].data,n=i.indexOf(`\r
`;let c=(0,Ext.parseProxyResponse)(n);n.write(`${a}\r
`);let{connect:u,buffered:l}=await c;if(e.emit("proxyConnect",u),this.emit("proxyConnect",u,e),u.statusCode===200)return e.once("socket",bxt),r.secureEndpoint?(ix("Upgrading socket connection to TLS"),fTe.connect({...dTe(hTe(r),"host","path","port"),socket:n})):n;n.destroy();let f=new xk.Socket({writable:!1});return f.readable=!0,e.once("socket",h=>{ix("Replaying proxy buffer for failed request"),(0,mxt.default)(h.listenerCount("data")>0),h.push(l),h.push(null)}),f}};Rk.protocols=["http","https"];eu.HttpsProxyAgent=Rk;function bxt(t){t.resume()}function dTe(t,...e){let r={},i;for(i in t)e.includes(i)||(r[i]=t[i]);return r}});var ETe=p(ca=>{"use strict";var wxt=ca&&ca.__createBinding||(Object.create?(function(t,e,r,i){i===void 0&&(i=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,i,n)}):(function(t,e,r,i){i===void 0&&(i=r),t[i]=e[r]})),Cxt=ca&&ca.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),gTe=ca&&ca.__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)&&wxt(e,t,r);return Cxt(e,t),e};Object.defineProperty(ca,"__esModule",{value:!0});ca.req=ca.json=ca.toBuffer=void 0;var Ixt=gTe(require("http")),Sxt=gTe(require("https"));async function yTe(t){let e=0,r=[];for await(let i of t)e+=i.length,r.push(i);return Buffer.concat(r,e)}ca.toBuffer=yTe;async function Bxt(t){let r=(await yTe(t)).toString("utf8");try{return JSON.parse(r)}catch(i){let n=i;throw n.message+=` (input: ${r})`,n}}ca.json=Bxt;function vxt(t,e={}){let i=((typeof t=="string"?t:t.href).startsWith("https:")?Sxt:Ixt).request(t,e),n=new Promise((s,o)=>{i.once("response",s).once("error",o).end()});return i.then=n.then.bind(n),i}ca.req=vxt});var nx=p(tc=>{"use strict";var wTe=tc&&tc.__createBinding||(Object.create?(function(t,e,r,i){i===void 0&&(i=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,i,n)}):(function(t,e,r,i){i===void 0&&(i=r),t[i]=e[r]})),_xt=tc&&tc.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),CTe=tc&&tc.__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)&&wTe(e,t,r);return _xt(e,t),e},xxt=tc&&tc.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&wTe(e,t,r)};Object.defineProperty(tc,"__esModule",{value:!0});tc.Agent=void 0;var Rxt=CTe(require("net")),bTe=CTe(require("http")),Txt=require("https");xxt(ETe(),tc);var Ef=Symbol("AgentBaseInternalState"),yW=class extends bTe.Agent{constructor(e){super(e),this[Ef]={}}isSecureEndpoint(e){if(e){if(typeof e.secureEndpoint=="boolean")return e.secureEndpoint;if(typeof e.protocol=="string")return e.protocol==="https:"}let{stack:r}=new Error;return typeof r!="string"?!1:r.split(`
`).some(i=>i.indexOf("(https.js:")!==-1||i.indexOf("node:https:")!==-1)}incrementSockets(e){if(this.maxSockets===1/0&&this.maxTotalSockets===1/0)return null;this.sockets[e]||(this.sockets[e]=[]);let r=new Rxt.Socket({writable:!1});return this.sockets[e].push(r),this.totalSocketCount++,r}decrementSockets(e,r){if(!this.sockets[e]||r===null)return;let i=this.sockets[e],n=i.indexOf(r);n!==-1&&(i.splice(n,1),this.totalSocketCount--,i.length===0&&delete this.sockets[e])}getName(e){return(typeof e.secureEndpoint=="boolean"?e.secureEndpoint:this.isSecureEndpoint(e))?Txt.Agent.prototype.getName.call(this,e):super.getName(e)}createSocket(e,r,i){let n={...r,secureEndpoint:this.isSecureEndpoint(r)},s=this.getName(n),o=this.incrementSockets(s);Promise.resolve().then(()=>this.connect(e,n)).then(a=>{if(this.decrementSockets(s,o),a instanceof bTe.Agent)return a.addRequest(e,n);this[Ef].currentSocket=a,super.createSocket(e,r,i)},a=>{this.decrementSockets(s,o),i(a)})}createConnection(){let e=this[Ef].currentSocket;if(this[Ef].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[Ef].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[Ef]&&(this[Ef].defaultPort=e)}get protocol(){return this[Ef].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[Ef]&&(this[Ef].protocol=e)}};tc.Agent=yW});var EW=p(tu=>{"use strict";var Nxt=tu&&tu.__createBinding||(Object.create?(function(t,e,r,i){i===void 0&&(i=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,i,n)}):(function(t,e,r,i){i===void 0&&(i=r),t[i]=e[r]})),Dxt=tu&&tu.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),STe=tu&&tu.__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)&&Nxt(e,t,r);return Dxt(e,t),e},Oxt=tu&&tu.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(tu,"__esModule",{value:!0});tu.HttpProxyAgent=void 0;var Pxt=STe(require("net")),kxt=STe(require("tls")),Qxt=Oxt(Py()),Lxt=require("events"),Mxt=nx(),ITe=require("url"),Uw=(0,Qxt.default)("http-proxy-agent"),Tk=class extends Mxt.Agent{constructor(e,r){super(r),this.proxy=typeof e=="string"?new ITe.URL(e):e,this.proxyHeaders=r?.headers??{},Uw("Creating new HttpProxyAgent instance: %o",this.proxy.href);let i=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),n=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={...r?Fxt(r,"headers"):null,host:i,port:n}}addRequest(e,r){e._header=null,this.setRequestProps(e,r),super.addRequest(e,r)}setRequestProps(e,r){let{proxy:i}=this,n=r.secureEndpoint?"https:":"http:",s=e.getHeader("host")||"localhost",o=`${n}//${s}`,a=new ITe.URL(e.path,o);r.port!==80&&(a.port=String(r.port)),e.path=String(a);let c=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders};if(i.username||i.password){let u=`${decodeURIComponent(i.username)}:${decodeURIComponent(i.password)}`;c["Proxy-Authorization"]=`Basic ${Buffer.from(u).toString("base64")}`}c["Proxy-Connection"]||(c["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let u of Object.keys(c)){let l=c[u];l&&e.setHeader(u,l)}}async connect(e,r){e._header=null,e.path.includes("://")||this.setRequestProps(e,r);let i,n;Uw("Regenerating stored HTTP header string for request"),e._implicitHeader(),e.outputData&&e.outputData.length>0&&(Uw("Patching connection write() output buffer with updated header"),i=e.outputData[0].data,n=i.indexOf(`\r
\r
`)+4,e.outputData[0].data=e._header+i.substring(n),Ow("Output buffer: %o",e.outputData[0].data));let s;return this.proxy.protocol==="https:"?(Ow("Creating `tls.Socket`: %o",this.connectOpts),s=C_t.connect(this.connectOpts)):(Ow("Creating `net.Socket`: %o",this.connectOpts),s=w_t.connect(this.connectOpts)),await(0,S_t.once)(s,"connect"),s}};Ck.protocols=["http","https"];Wc.HttpProxyAgent=Ck;function v_t(t,...e){let r={},i;for(i in t)e.includes(i)||(r[i]=t[i]);return r}});var UTe=p(Qk=>{"use strict";Object.defineProperty(Qk,"__esModule",{value:!0});Qk.state=void 0;Qk.state={instrumenterImplementation:void 0}});var iNe=p(qk=>{"use strict";Object.defineProperty(qk,"__esModule",{value:!0});qk.state=void 0;qk.state={operationRequestMap:new WeakMap}});var k2e=p(Kw=>{"use strict";Object.defineProperty(Kw,"__esModule",{value:!0});var z2t=require("os"),$2t=require("util");function W2t(t){return t&&typeof t=="object"&&"default"in t?t:{default:t}}var J2t=W2t($2t);function Y2t(t,...e){process.stderr.write(`${J2t.default.format(t,...e)}${z2t.EOL}`)}var B2e=typeof process<"u"&&process.env&&process.env.DEBUG||void 0,x2e,zK=[],$K=[],oL=[];B2e&&WK(B2e);var _2e=Object.assign(t=>R2e(t),{enable:WK,enabled:JK,disable:K2t,log:Y2t});function WK(t){x2e=t,zK=[],$K=[];let e=/\*/g,r=t.split(",").map(i=>i.trim().replace(e,".*?"));for(let i of r)i.startsWith("-")?$K.push(new RegExp(`^${i.substr(1)}$`)):zK.push(new RegExp(`^${i}$`));for(let i of oL)i.enabled=JK(i.namespace)}function JK(t){if(t.endsWith("*"))return!0;for(let e of $K)if(e.test(t))return!1;for(let e of zK)if(e.test(t))return!0;return!1}function K2t(){let t=x2e||"";return WK(""),t}function R2e(t){let e=Object.assign(r,{enabled:JK(t),destroy:X2t,log:_2e.log,namespace:t,extend:Z2t});function r(...i){e.enabled&&(i.length>0&&(i[0]=`${t} ${i[0]}`),e.log(...i))}return oL.push(e),e}function X2t(){let t=oL.indexOf(this);return t>=0?(oL.splice(t,1),!0):!1}function Z2t(t){let e=R2e(`${this.namespace}:${t}`);return e.log=this.log,e}var L_=_2e,T2e=new Set,nL=typeof process<"u"&&process.env&&process.env.AZURE_LOG_LEVEL||void 0,aL,cL=L_("azure");cL.log=(...t)=>{L_.log(...t)};var YK=["verbose","info","warning","error"];nL&&(P2e(nL)?N2e(nL):console.error(`AZURE_LOG_LEVEL set to unknown log level '${nL}'; logging is not enabled. Acceptable values: ${YK.join(", ")}.`));function N2e(t){if(t&&!P2e(t))throw new Error(`Unknown log level '${t}'. Acceptable values: ${YK.join(",")}`);aL=t;let e=[];for(let r of T2e)O2e(r)&&e.push(r.namespace);L_.enable(e.join(","))}function eDt(){return aL}var v2e={verbose:400,info:300,warning:200,error:100};function tDt(t){let e=cL.extend(t);return D2e(cL,e),{error:sL(e,"error"),warning:sL(e,"warning"),info:sL(e,"info"),verbose:sL(e,"verbose")}}function D2e(t,e){e.log=(...r)=>{t.log(...r)}}function sL(t,e){let r=Object.assign(t.extend(e),{level:e});if(D2e(t,r),O2e(r)){let i=L_.disable();L_.enable(i+","+r.namespace)}return T2e.add(r),r}function O2e(t){return!!(aL&&v2e[t.level]<=v2e[aL])}function P2e(t){return YK.includes(t)}Kw.AzureLogger=cL;Kw.createClientLogger=tDt;Kw.getLogLevel=eDt;Kw.setLogLevel=N2e});var ZK=p(M_=>{"use strict";Object.defineProperty(M_,"__esModule",{value:!0});var Xw=new WeakMap,uL=new WeakMap,F_=class t{constructor(){this.onabort=null,Xw.set(this,[]),uL.set(this,!1)}get aborted(){if(!uL.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");return uL.get(this)}static get none(){return new t}addEventListener(e,r){if(!Xw.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");Xw.get(this).push(r)}removeEventListener(e,r){if(!Xw.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");let i=Xw.get(this),n=i.indexOf(r);n>-1&&i.splice(n,1)}dispatchEvent(e){throw new Error("This is a stub dispatchEvent implementation that should not be used. It only exists for type-checking purposes.")}};function Q2e(t){if(t.aborted)return;t.onabort&&t.onabort.call(t);let e=Xw.get(t);e&&e.slice().forEach(r=>{r.call(t,{type:"abort"})}),uL.set(t,!0)}var KK=class extends Error{constructor(e){super(e),this.name="AbortError"}},XK=class{constructor(e){if(this._signal=new F_,!!e){Array.isArray(e)||(e=arguments);for(let r of e)r.aborted?this.abort():r.addEventListener("abort",()=>{this.abort()})}}get signal(){return this._signal}abort(){Q2e(this._signal)}static timeout(e){let r=new F_,i=setTimeout(Q2e,e,r);return typeof i.unref=="function"&&i.unref(),r}};M_.AbortController=XK;M_.AbortError=KK;M_.AbortSignal=F_});var q2e=p(ui=>{"use strict";Object.defineProperty(ui,"__esModule",{value:!0});var rDt=ZK(),oX=require("crypto");function L2e(t,e){let{cleanupBeforeAbort:r,abortSignal:i,abortErrorMsg:n}=e??{};return new Promise((s,o)=>{function a(){o(new rDt.AbortError(n??"The operation was aborted."))}function c(){i?.removeEventListener("abort",u)}function u(){r?.(),c(),a()}if(i?.aborted)return a();try{t(l=>{c(),s(l)},l=>{c(),o(l)})}catch(l){o(l)}i?.addEventListener("abort",u)})}var iDt="The delay was Line truncated
`)+4,e.outputData[0].data=e._header+i.substring(n),Uw("Output buffer: %o",e.outputData[0].data));let s;return this.proxy.protocol==="https:"?(Uw("Creating `tls.Socket`: %o",this.connectOpts),s=kxt.connect(this.connectOpts)):(Uw("Creating `net.Socket`: %o",this.connectOpts),s=Pxt.connect(this.connectOpts)),await(0,Lxt.once)(s,"connect"),s}};Tk.protocols=["http","https"];tu.HttpProxyAgent=Tk;function Fxt(t,...e){let r={},i;for(i in t)e.includes(i)||(r[i]=t[i]);return r}});var zTe=p(jk=>{"use strict";Object.defineProperty(jk,"__esModule",{value:!0});jk.state=void 0;jk.state={instrumenterImplementation:void 0}});var uNe=p(Jk=>{"use strict";Object.defineProperty(Jk,"__esModule",{value:!0});Jk.state=void 0;Jk.state={operationRequestMap:new WeakMap}});var q2e=p(nC=>{"use strict";Object.defineProperty(nC,"__esModule",{value:!0});var sDt=require("os"),oDt=require("util");function aDt(t){return t&&typeof t=="object"&&"default"in t?t:{default:t}}var cDt=aDt(oDt);function uDt(t,...e){process.stderr.write(`${cDt.default.format(t,...e)}${sDt.EOL}`)}var N2e=typeof process<"u"&&process.env&&process.env.DEBUG||void 0,O2e,KK=[],XK=[],pL=[];N2e&&ZK(N2e);var P2e=Object.assign(t=>k2e(t),{enable:ZK,enabled:eX,disable:lDt,log:uDt});function ZK(t){O2e=t,KK=[],XK=[];let e=/\*/g,r=t.split(",").map(i=>i.trim().replace(e,".*?"));for(let i of r)i.startsWith("-")?XK.push(new RegExp(`^${i.substr(1)}$`)):KK.push(new RegExp(`^${i}$`));for(let i of pL)i.enabled=eX(i.namespace)}function eX(t){if(t.endsWith("*"))return!0;for(let e of XK)if(e.test(t))return!1;for(let e of KK)if(e.test(t))return!0;return!1}function lDt(){let t=O2e||"";return ZK(""),t}function k2e(t){let e=Object.assign(r,{enabled:eX(t),destroy:fDt,log:P2e.log,namespace:t,extend:hDt});function r(...i){e.enabled&&(i.length>0&&(i[0]=`${t} ${i[0]}`),e.log(...i))}return pL.push(e),e}function fDt(){let t=pL.indexOf(this);return t>=0?(pL.splice(t,1),!0):!1}function hDt(t){let e=k2e(`${this.namespace}:${t}`);return e.log=this.log,e}var Vx=P2e,Q2e=new Set,hL=typeof process<"u"&&process.env&&process.env.AZURE_LOG_LEVEL||void 0,mL,AL=Vx("azure");AL.log=(...t)=>{Vx.log(...t)};var tX=["verbose","info","warning","error"];hL&&(U2e(hL)?L2e(hL):console.error(`AZURE_LOG_LEVEL set to unknown log level '${hL}'; logging is not enabled. Acceptable values: ${tX.join(", ")}.`));function L2e(t){if(t&&!U2e(t))throw new Error(`Unknown log level '${t}'. Acceptable values: ${tX.join(",")}`);mL=t;let e=[];for(let r of Q2e)F2e(r)&&e.push(r.namespace);Vx.enable(e.join(","))}function dDt(){return mL}var D2e={verbose:400,info:300,warning:200,error:100};function pDt(t){let e=AL.extend(t);return M2e(AL,e),{error:dL(e,"error"),warning:dL(e,"warning"),info:dL(e,"info"),verbose:dL(e,"verbose")}}function M2e(t,e){e.log=(...r)=>{t.log(...r)}}function dL(t,e){let r=Object.assign(t.extend(e),{level:e});if(M2e(t,r),F2e(r)){let i=Vx.disable();Vx.enable(i+","+r.namespace)}return Q2e.add(r),r}function F2e(t){return!!(mL&&D2e[t.level]<=D2e[mL])}function U2e(t){return tX.includes(t)}nC.AzureLogger=AL;nC.createClientLogger=pDt;nC.getLogLevel=dDt;nC.setLogLevel=L2e});var nX=p($x=>{"use strict";Object.defineProperty($x,"__esModule",{value:!0});var sC=new WeakMap,gL=new WeakMap,zx=class t{constructor(){this.onabort=null,sC.set(this,[]),gL.set(this,!1)}get aborted(){if(!gL.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");return gL.get(this)}static get none(){return new t}addEventListener(e,r){if(!sC.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");sC.get(this).push(r)}removeEventListener(e,r){if(!sC.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");let i=sC.get(this),n=i.indexOf(r);n>-1&&i.splice(n,1)}dispatchEvent(e){throw new Error("This is a stub dispatchEvent implementation that should not be used. It only exists for type-checking purposes.")}};function G2e(t){if(t.aborted)return;t.onabort&&t.onabort.call(t);let e=sC.get(t);e&&e.slice().forEach(r=>{r.call(t,{type:"abort"})}),gL.set(t,!0)}var rX=class extends Error{constructor(e){super(e),this.name="AbortError"}},iX=class{constructor(e){if(this._signal=new zx,!!e){Array.isArray(e)||(e=arguments);for(let r of e)r.aborted?this.abort():r.addEventListener("abort",()=>{this.abort()})}}get signal(){return this._signal}abort(){G2e(this._signal)}static timeout(e){let r=new zx,i=setTimeout(G2e,e,r);return typeof i.unref=="function"&&i.unref(),r}};$x.AbortController=iX;$x.AbortError=rX;$x.AbortSignal=zx});var $2e=p(li=>{"use strict";Object.defineProperty(li,"__esModule",{value:!0});var mDt=nX(),fX=require("crypto");function H2e(t,e){let{cleanupBeforeAbort:r,abortSignal:i,abortErrorMsg:n}=e??{};return new Promise((s,o)=>{function a(){o(new mDt.AbortError(n??"The operation was aborted."))}function c(){i?.removeEventListener("abort",u)}function u(){r?.(),c(),a()}if(i?.aborted)return a();try{t(l=>{c(),s(l)},l=>{c(),o(l)})}catch(l){o(l)}i?.addEventListener("abort",u)})}var ADt="The delay was Line truncated
Polling from: ${r.config.operationLocation}
Operation status: ${l}
Polling status: ${V2e.includes(l)?"Stopped":"Running"}`),l==="succeeded"){let f=o(u,r);if(f!==void 0)return{response:await e(f).catch(H2e({state:r,stateProxy:i,isOperationError:a})),status:l}}return{response:u,status:l}}async function J2e(t){let{poll:e,state:r,stateProxy:i,options:n,getOperationStatus:s,getResourceLocation:o,getOperationLocation:a,isOperationError:c,withOperationLocation:u,getPollingInterval:l,processResult:f,getError:h,updateState:d,setDelay:m,isDone:A,setErrorAsResult:y}=t,{operationLocation:g}=r.config;if(g!==void 0){let{response:E,status:C}=await NDt({poll:e,getOperationStatus:s,state:r,stateProxy:i,operationLocation:g,getResourceLocation:o,isOperationError:c,options:n});if($2e({status:C,response:E,state:r,stateProxy:i,isDone:A,processResult:f,getError:h,setErrorAsResult:y}),!V2e.includes(C)){let S=l?.(E);S&&m(S);let N=a?.(E,r);if(N!==void 0){let Q=g!==N;r.config.operationLocation=N,u?.(N,Q)}else u?.(g,!1)}d?.(r,E)}}function Y2e(t){let{azureAsyncOperation:e,operationLocation:r}=t;return r??e}function K2e(t){return t.headers.location}function X2e(t){return t.headers["operation-location"]}function Z2e(t){return t.headers["azure-asyncoperation"]}function DDt(t){var e;let{location:r,requestMethod:i,requestPath:n,resourceLocationConfig:s}=t;switch(i){case"PUT":return n;case"DELETE":return;case"PATCH":return(e=o())!==null&&e!==void 0?e:n;default:return o()}function o(){switch(s){case"azure-async-operation":return;case"original-uri":return n;default:return r}}}function eDe(t){let{rawResponse:e,requestMethod:r,requestPath:i,resourceLocationConfig:n}=t,s=X2e(e),o=Z2e(e),a=Y2e({operationLocation:s,azureAsyncOperation:o}),c=K2e(e),u=r?.toLocaleUpperCase();return a!==void 0?{mode:"OperationLocation",operationLocation:a,resourceLocation:DDt({requestMethod:u,location:c,requestPath:i,resourceLocationConfig:n})}:c!==void 0?{mode:"ResourceLocation",operationLocation:c}:u==="PUT"&&i?{mode:"Body",operationLocation:i}:void 0}function tDe(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 lX(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 Hy.verbose(`LRO: unrecognized operation status: ${e}`),e}}function ODt(t){var e;let{status:r}=(e=t.body)!==null&&e!==void 0?e:{};return tDe({status:r,statusCode:t.statusCode})}function PDt(t){var e,r;let{properties:i,provisioningState:n}=(e=t.body)!==null&&e!==void 0?e:{},s=(r=i?.provisioningState)!==null&&r!==void 0?r:n;return tDe({status:s,statusCode:t.statusCode})}function lX(t){return t===202?"running":t<300?"succeeded":"failed"}function rDe({rawResponse:t}){let e=t.headers["retry-after"];if(e!==void 0){let r=parseInt(e);return isNaN(r)?kDt(new Date(e)):r*1e3}}function iDe(t){let e=t.flatResponse.error;if(!e){Hy.warning("The long-running operation failed but there is no error property in the response's body");return}if(!e.code||!e.message){Hy.warning("The long-running operation failed but the error property in the response's body doesn't contain code or message");return}return e}function kDt(t){let e=Math.floor(new Date().getTime()),r=t.getTime();if(e<r)return r-e}function nDe(t){let{response:e,state:r,operationLocation:i}=t;function n(){var o;switch((o=r.config.metadata)===null||o===void 0?void 0:o.mode){case void 0:return lX(e.rawResponse.statusCode);case"Body":return fX(e,r);default:return"running"}}let s=n();return s==="running"&&i===void 0?"succeeded":s}async function QDt(t){let{stateProxy:e,resourceLocationConfig:r,processResult:i,lro:n,setErrorAsResult:s}=t;return W2e({init:async()=>{let o=await n.sendInitialRequest(),a=eDe({rawResponse:o.rawResponse,requestPath:n.requestPath,requestMethod:n.requestMethod,resourceLocationConfig:r});return Object.assign({response:o,operationLocation:a?.operationLocation,resourceLocation:a?.resourceLocation},a?.mode?{metadata:{mode:a.mode}}:{})},stateProxy:e,processResult:i?({flatResponse:o},a)=>i(o,a):({flatResponse:o})=>o,getOperationStatus:nDe,setErrorAsResult:s})}function sDe({rawResponse:t},e){var r;switch((r=e.config.metadata)===null||r===void 0?void 0:r.mode){case"OperationLocation":return Y2e({operationLocation:X2e(t),azureAsyncOperation:Z2e(t)});case"ResourceLocation":return K2e(t);default:return}}function fX({rawResponse:t},e){var r;let i=(r=e.config.metadata)===null||r===void 0?void 0:r.mode;switch(i){case"OperationLocation":return ODt(t);case"ResourceLocation":return lX(t.statusCode);case"Body":return PDt(t);default:throw new Error(`Internal error: Unexpected operation mode: ${i}`)}}function oDe({flatResponse:t},e){if(typeof t=="object"Line truncated
`:case"\r":case" ":case" ":continue;default:throw Error("invalid base64 string.")}switch(n){case 0:o=s,n=1;break;case 1:r[i++]=o<<2|(s&48)>>4,o=s,n=2;break;case 2:r[i++]=(o&15)<<4|(s&60)>>2,o=s,n=3;break;case 3:r[i++]=(o&3)<<6|s,n=0;break}}if(n==1)throw Error("invalid base64 string.");return r.subarray(0,i)}nC.base64decode=EOt;function bOt(t){let e="",r=0,i,n=0;for(let s=0;s<t.length;s++)switch(i=t[s],r){case 0:e+=Ld[i>>2],n=(i&3)<<4,r=1;break;case 1:e+=Ld[n|i>>4],n=(i&15)<<2,r=2;break;case 2:e+=Ld[n|i>>6],e+=Ld[i&63],r=0;break}return r&&(e+=Ld[n],e+="=",r==1&&(e+="=")),e}nC.base64encode=bOt});var kDe=p(_L=>{"use strict";Object.defineProperty(_L,"__esModule",{value:!0});_L.utf8read=void 0;var wX=t=>String.fromCharCode.apply(String,t);function wOt(t){if(t.length<1)return"";let e=0,r=[],i=[],n=0,s,o=t.length;for(;e<o;)s=t[e++],s<128?i[n++]=s:s>191&&s<224?i[n++]=(s&31)<<6|t[e++]&63:s>239&&s<365?(s=((s&7)<<18|(t[e++]&63)<<12|(t[e++]&63)<<6|t[e++]&63)-65536,i[n++]=55296+(s>>10),i[n++]=56320+(s&1023)):i[n++]=(s&15)<<12|(t[e++]&63)<<6|t[e++]&63,n>8191&&(r.push(wX(i)),n=0);return r.length?(n&&r.push(wX(i.slice(0,n))),r.join("")):wX(i.slice(0,n))}_L.utf8read=wOt});var $_=p(Ff=>{"use strict";Object.defineProperty(Ff,"__esModule",{value:!0});Ff.WireType=Ff.mergeBinaryOptions=Ff.UnknownFieldHandler=void 0;var COt;(function(t){t.symbol=Symbol.for("protobuf-ts/unknown"),t.onRead=(r,i,n,s,o)=>{(e(i)?i[t.symbol]:i[t.symbol]=[]).push({no:n,wireType:s,data:o})},t.onWrite=(r,i,n)=>{for(let{no:s,wireType:o,data:a}of t.list(i))n.tag(s,o).raw(a)},t.list=(r,i)=>{if(e(r)){let n=r[t.symbol];return i?n.filter(s=>s.no==i):n}return[]},t.last=(r,i)=>t.list(r,i).slice(-1)[0];let e=r=>r&&Array.isArray(r[t.symbol])})(COt=Ff.UnknownFieldHandler||(Ff.UnknownFieldHandler={}));function IOt(t,e){return Object.assign(Object.assign({},t),e)}Ff.mergeBinaryOptions=IOt;var SOt;(function(t){t[t.Varint=0]="Varint",t[t.Bit64=1]="Bit64",t[t.LengthDelimited=2]="LengthDelimited",t[t.StartGroup=3]="StartGroup",t[t.EndGroup=4]="EndGroup",t[t.Bit32=5]="Bit32"})(SOt=Ff.WireType||(Ff.WireType={}))});var TL=p(la=>{"use strict";Object.defineProperty(la,"__esModule",{value:!0});la.varint32read=la.varint32write=la.int64toString=la.int64fromString=la.varint64write=la.varint64read=void 0;function BOt(){let t=0,e=0;for(let i=0;i<28;i+=7){let n=this.buf[this.pos++];if(t|=(n&127)<<i,(n&128)==0)return this.assertBounds(),[t,e]}let r=this.buf[this.pos++];if(t|=(r&15)<<28,e=(r&112)>>4,(r&128)==0)return this.assertBounds(),[t,e];for(let i=3;i<=31;i+=7){let n=this.buf[this.pos++];if(e|=(n&127)<<i,(n&128)==0)return this.assertBounds(),[t,e]}throw new Error("invalid varint")}la.varint64read=BOt;function vOt(t,e,r){for(let s=0;s<28;s=s+7){let o=t>>>s,a=!(!(o>>>7)&&e==0),c=(a?o|128:o)&255;if(r.push(c),!a)return}let i=t>>>28&15|(e&7)<<4,n=e>>3!=0;if(r.push((n?i|128:i)&255),!!n){for(let s=3;s<31;s=s+7){let o=e>>>s,a=!!(o>>>7),c=(a?o|128:o)&255;if(r.push(c),!a)return}r.push(e>>>31&1)}}la.varint64write=vOt;var RL=65536*65536;function xOt(t){let e=t[0]=="-";e&&(t=t.slice(1));let r=1e6,i=0,n=0;function s(o,a){let c=Number(t.slice(o,a));n*=r,i=i*r+c,i>=RL&&(n=n+(i/RL|0),i=i%RL)}return s(-24,-18),s(-18,-12),s(-12,-6),s(-6),[e,i,n]}la.int64fromString=xOt;function _Ot(t,e){if(e>>>0<=2097151)return""+(RL*e+(t>>>0));let r=t&16777215,i=(t>>>24|e<<8)>>>0&16777215,n=e>>16&65535,s=r+i*6777216+n*6710656,o=i+n*8147497,a=n*2,c=1e7;s>=c&&(o+=Math.floor(s/c),s%=c),o>=c&&(a+=Math.floor(o/c),o%=c);function u(l,f){let h=l?String(l):"";return f?"0000000".slice(h.length)+h:h}return u(a,0)+u(o,a)+u(s,1)}la.int64toString=_Ot;function ROt(t,e){if(t>=0){for(;t>127;)e.push(t&127|128),t=t>>>7;e.push(t)}else{for(let r=0;r<9;r++)e.push(t&127|128),t=t>>7;e.push(1)}}la.varint32write=ROt;function TOt(){let t=this.buf[this.pos++],e=t&127;if((t&128)==0)return this.assertBounds(),e;if(t=this.buf[this.pos++],e|=(t&127)<<7,(t&128)==0)return this.assertBounds(),e;if(t=this.buf[this.pos++],e|=(t&127)<<14,(t&128)==0)return this.assertBounds(),e;if(t=this.buf[this.pos++],e|=(t&127)<<21,(t&128)==0)return this.assertBounds(),e;t=this.buf[this.pos++],e|=(t&15)<<28;for(let r=5;(t&128)!==0&&r<10;r++)t=this.buf[this.pos++];if((t&128)!=0)throw new Error("invalid varint");return this.assertBounds(),e>>>0}la.varint32read=TOt});var tA=p(eA=>{"use strict";Object.defineProperty(eA,"__esModule",{value:!0});eA.PbLong=eA.PbULong=eA.detectBi=void 0;var W_=TL(),pr;function QDe(){let t=new DataView(new ArrayBuffer(8));pr=globalThis.BigInt!==void 0&&typeof t.getBigInt64=="function"&&typeof t.getBigUint64=="function"&&typeof t.setBigInt64=="function"&&typeof t.setBigUint64=="function"?{MIN:BigInt("-9223372036854775808"),MAX:BigInt("9223372036854775807"),UMIN:BigInt("0"),UMAX:BigInt("18446744073709551615"),C:BigInt,V:t}:void 0}eA.detectBi=QDe;QDe();function LDe(t){if(!t)throw new Error("BigInt unavailable, see https://github.com/timostamm/protobuf-ts/blob/v1.0.8/MANUAL.md#bigint-support")}var FDe=/^-?[0-9]+$/,DL=4294967296,NL=2147483648,OL=c Line truncated
`)}};iF.RpcError=WX});var YX=p(sF=>{"use strict";Object.defineProperty(sF,"__esModule",{value:!0});sF.mergeRpcOptions=void 0;var pOe=_i();function XPt(t,e){if(!e)return t;let r={};nF(t,r),nF(e,r);for(let i of Object.keys(e)){let n=e[i];switch(i){case"jsonOptions":r.jsonOptions=pOe.mergeJsonOptions(t.jsonOptions,r.jsonOptions);break;case"binaryOptions":r.binaryOptions=pOe.mergeBinaryOptions(t.binaryOptions,r.binaryOptions);break;case"meta":r.meta={},nF(t.meta,r.meta),nF(e.meta,r.meta);break;case"interceptors":r.interceptors=t.interceptors?t.interceptors.concat(n):n.concat();break}}return r}sF.mergeRpcOptions=XPt;function nF(t,e){if(!t)return;let r=e;for(let[i,n]of Object.entries(t))n instanceof Date?r[i]=new Date(n.getTime()):Array.isArray(n)?r[i]=n.concat():r[i]=n}});var XX=p(Wy=>{"use strict";Object.defineProperty(Wy,"__esModule",{value:!0});Wy.Deferred=Wy.DeferredState=void 0;var qf;(function(t){t[t.PENDING=0]="PENDING",t[t.REJECTED=1]="REJECTED",t[t.RESOLVED=2]="RESOLVED"})(qf=Wy.DeferredState||(Wy.DeferredState={}));var KX=class{constructor(e=!0){this._state=qf.PENDING,this._promise=new Promise((r,i)=>{this._resolve=r,this._reject=i}),e&&this._promise.catch(r=>{})}get state(){return this._state}get promise(){return this._promise}resolve(e){if(this.state!==qf.PENDING)throw new Error(`cannot resolve ${qf[this.state].toLowerCase()}`);this._resolve(e),this._state=qf.RESOLVED}reject(e){if(this.state!==qf.PENDING)throw new Error(`cannot reject ${qf[this.state].toLowerCase()}`);this._reject(e),this._state=qf.REJECTED}resolvePending(e){this._state===qf.PENDING&&this.resolve(e)}rejectPending(e){this._state===qf.PENDING&&this.reject(e)}};Wy.Deferred=KX});var eZ=p(oF=>{"use strict";Object.defineProperty(oF,"__esModule",{value:!0});oF.RpcOutputStreamController=void 0;var mOe=XX(),Jy=_i(),ZX=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 i=r.indexOf(e);i>=0&&r.splice(i,1)}}clearLis(){for(let e of Object.values(this._lis))e.splice(0,e.length)}get closed(){return this._closed!==!1}notifyNext(e,r,i){Jy.assert((e?1:0)+(r?1:0)+(i?1:0)<=1,"only one emission at a time"),e&&this.notifyMessage(e),r&&this.notifyError(r),i&&this.notifyComplete()}notifyMessage(e){Jy.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){Jy.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(){Jy.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;Jy.assert(e,"bad state"),Jy.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 mOe.Deferred,e.p.promise)}}}pushIt(e){let r=this._itState;if(r.p){let i=r.p;Jy.assert(i.state==mOe.DeferredState.PENDING,"iterator contract broken"),"value"in e?i.resolve(e):i.reject(e),delete r.p}else r.q.push(e)}};oF.RpcOutputStreamController=ZX});var rZ=p(fC=>{"use strict";var ZPt=fC&&fC.__awaiter||function(t,e,r,i){function n(s){return s instanceof r?s:new r(function(o){o(s)})}return new(r||(r=Promise))(function(s,o){function a(l){try{u(i.next(l))}catch(f){o(f)}}function c(l){try{u(i.throw(l))}catch(f){o(f)}}function u(l){l.done?s(l.value):n(l.value).then(a,c)}u((i=i.apply(t,e||[])).next())})};Object.defineProperty(fC,"__esModule",{value:!0});fC.UnaryCall=void 0;var tZ=class{constructor(e,r,i,n,s,o,a){this.method=e,this.requestHeaders=r,this.request=i,this.headers=n,this.response=s,this.status=o,this.trailers=a}then(e,r){return this.promiseFinished().then(i=>e?Promise.resolve(e(i)):i,i=>r?Promise.resolve(r(i)):Promise.reject(i))}promiseFinished(){return ZPt(this,void 0,void 0,function*(){let[e,r,i,n]=yield Promise.all([this.headers,this.response,this.status,this.trailers]);return{method:this.method,requestHeaders:this.requestHeaders,request:this.request,headers:e,response:r,status:i,trailers:n}})}};fC.UnaryCall=tZ});var nZ=p(hC=>{"use strict";var ekt=hC&&hC.__awaiter||function(t,e,r,i){function n(s){return s instanceof r?s:new r(function(o){o(s)})}return new(r||(r=Promise))(function(s,o){function a(l){try{u(i.next(l))}catch(f){o(f)}}function c(l){try{u(i.throw(l))}catch(f){o(f)}}function u(l){l.done?s(l.value):n(l.value).then(a,c)}u((i=i.apply(t,e||[])).next())})};Object.defineProperty(hC,"__esModule",{value:!0});hC.ServerStreamingCall=void 0;var iZ=class{constructor(e Line truncated
`:case"\r":case" ":case" ":continue;default:throw Error("invalid base64 string.")}switch(n){case 0:o=s,n=1;break;case 1:r[i++]=o<<2|(s&48)>>4,o=s,n=2;break;case 2:r[i++]=(o&15)<<4|(s&60)>>2,o=s,n=3;break;case 3:r[i++]=(o&3)<<6|s,n=0;break}}if(n==1)throw Error("invalid base64 string.");return r.subarray(0,i)}RC.base64decode=CUt;function IUt(t){let e="",r=0,i,n=0;for(let s=0;s<t.length;s++)switch(i=t[s],r){case 0:e+=Hd[i>>2],n=(i&3)<<4,r=1;break;case 1:e+=Hd[n|i>>4],n=(i&15)<<2,r=2;break;case 2:e+=Hd[n|i>>6],e+=Hd[i&63],r=0;break}return r&&(e+=Hd[n],e+="=",r==1&&(e+="=")),e}RC.base64encode=IUt});var aLe=p(KF=>{"use strict";Object.defineProperty(KF,"__esModule",{value:!0});KF.utf8read=void 0;var Uee=t=>String.fromCharCode.apply(String,t);function SUt(t){if(t.length<1)return"";let e=0,r=[],i=[],n=0,s,o=t.length;for(;e<o;)s=t[e++],s<128?i[n++]=s:s>191&&s<224?i[n++]=(s&31)<<6|t[e++]&63:s>239&&s<365?(s=((s&7)<<18|(t[e++]&63)<<12|(t[e++]&63)<<6|t[e++]&63)-65536,i[n++]=55296+(s>>10),i[n++]=56320+(s&1023)):i[n++]=(s&15)<<12|(t[e++]&63)<<6|t[e++]&63,n>8191&&(r.push(Uee(i)),n=0);return r.length?(n&&r.push(Uee(i.slice(0,n))),r.join("")):Uee(i.slice(0,n))}KF.utf8read=SUt});var vR=p(Vf=>{"use strict";Object.defineProperty(Vf,"__esModule",{value:!0});Vf.WireType=Vf.mergeBinaryOptions=Vf.UnknownFieldHandler=void 0;var BUt;(function(t){t.symbol=Symbol.for("protobuf-ts/unknown"),t.onRead=(r,i,n,s,o)=>{(e(i)?i[t.symbol]:i[t.symbol]=[]).push({no:n,wireType:s,data:o})},t.onWrite=(r,i,n)=>{for(let{no:s,wireType:o,data:a}of t.list(i))n.tag(s,o).raw(a)},t.list=(r,i)=>{if(e(r)){let n=r[t.symbol];return i?n.filter(s=>s.no==i):n}return[]},t.last=(r,i)=>t.list(r,i).slice(-1)[0];let e=r=>r&&Array.isArray(r[t.symbol])})(BUt=Vf.UnknownFieldHandler||(Vf.UnknownFieldHandler={}));function vUt(t,e){return Object.assign(Object.assign({},t),e)}Vf.mergeBinaryOptions=vUt;var xUt;(function(t){t[t.Varint=0]="Varint",t[t.Bit64=1]="Bit64",t[t.LengthDelimited=2]="LengthDelimited",t[t.StartGroup=3]="StartGroup",t[t.EndGroup=4]="EndGroup",t[t.Bit32=5]="Bit32"})(xUt=Vf.WireType||(Vf.WireType={}))});var ZF=p(da=>{"use strict";Object.defineProperty(da,"__esModule",{value:!0});da.varint32read=da.varint32write=da.int64toString=da.int64fromString=da.varint64write=da.varint64read=void 0;function _Ut(){let t=0,e=0;for(let i=0;i<28;i+=7){let n=this.buf[this.pos++];if(t|=(n&127)<<i,(n&128)==0)return this.assertBounds(),[t,e]}let r=this.buf[this.pos++];if(t|=(r&15)<<28,e=(r&112)>>4,(r&128)==0)return this.assertBounds(),[t,e];for(let i=3;i<=31;i+=7){let n=this.buf[this.pos++];if(e|=(n&127)<<i,(n&128)==0)return this.assertBounds(),[t,e]}throw new Error("invalid varint")}da.varint64read=_Ut;function RUt(t,e,r){for(let s=0;s<28;s=s+7){let o=t>>>s,a=!(!(o>>>7)&&e==0),c=(a?o|128:o)&255;if(r.push(c),!a)return}let i=t>>>28&15|(e&7)<<4,n=e>>3!=0;if(r.push((n?i|128:i)&255),!!n){for(let s=3;s<31;s=s+7){let o=e>>>s,a=!!(o>>>7),c=(a?o|128:o)&255;if(r.push(c),!a)return}r.push(e>>>31&1)}}da.varint64write=RUt;var XF=65536*65536;function TUt(t){let e=t[0]=="-";e&&(t=t.slice(1));let r=1e6,i=0,n=0;function s(o,a){let c=Number(t.slice(o,a));n*=r,i=i*r+c,i>=XF&&(n=n+(i/XF|0),i=i%XF)}return s(-24,-18),s(-18,-12),s(-12,-6),s(-6),[e,i,n]}da.int64fromString=TUt;function NUt(t,e){if(e>>>0<=2097151)return""+(XF*e+(t>>>0));let r=t&16777215,i=(t>>>24|e<<8)>>>0&16777215,n=e>>16&65535,s=r+i*6777216+n*6710656,o=i+n*8147497,a=n*2,c=1e7;s>=c&&(o+=Math.floor(s/c),s%=c),o>=c&&(a+=Math.floor(o/c),o%=c);function u(l,f){let h=l?String(l):"";return f?"0000000".slice(h.length)+h:h}return u(a,0)+u(o,a)+u(s,1)}da.int64toString=NUt;function DUt(t,e){if(t>=0){for(;t>127;)e.push(t&127|128),t=t>>>7;e.push(t)}else{for(let r=0;r<9;r++)e.push(t&127|128),t=t>>7;e.push(1)}}da.varint32write=DUt;function OUt(){let t=this.buf[this.pos++],e=t&127;if((t&128)==0)return this.assertBounds(),e;if(t=this.buf[this.pos++],e|=(t&127)<<7,(t&128)==0)return this.assertBounds(),e;if(t=this.buf[this.pos++],e|=(t&127)<<14,(t&128)==0)return this.assertBounds(),e;if(t=this.buf[this.pos++],e|=(t&127)<<21,(t&128)==0)return this.assertBounds(),e;t=this.buf[this.pos++],e|=(t&15)<<28;for(let r=5;(t&128)!==0&&r<10;r++)t=this.buf[this.pos++];if((t&128)!=0)throw new Error("invalid varint");return this.assertBounds(),e>>>0}da.varint32read=OUt});var oA=p(sA=>{"use strict";Object.defineProperty(sA,"__esModule",{value:!0});sA.PbLong=sA.PbULong=sA.detectBi=void 0;var xR=ZF(),mr;function cLe(){let t=new DataView(new ArrayBuffer(8));mr=globalThis.BigInt!==void 0&&typeof t.getBigInt64=="function"&&typeof t.getBigUint64=="function"&&typeof t.setBigInt64=="function"&&typeof t.setBigUint64=="function"?{MIN:BigInt("-9223372036854775808"),MAX:BigInt("9223372036854775807"),UMIN:BigInt("0"),UMAX:BigInt("18446744073709551615"),C:BigInt,V:t}:void 0}sA.detectBi=cLe;cLe();function uLe(t){if(!t)throw new Error("BigInt unavailable, see https://github.com/timostamm/protobuf-ts/blob/v1.0.8/MANUAL.md#bigint-support")}var lLe=/^-?[0-9]+$/,tM=4294967296,eM=2147483648, Line truncated
`)}};vM.RpcError=vte});var _te=p(_M=>{"use strict";Object.defineProperty(_M,"__esModule",{value:!0});_M.mergeRpcOptions=void 0;var HLe=Tr();function t3t(t,e){if(!e)return t;let r={};xM(t,r),xM(e,r);for(let i of Object.keys(e)){let n=e[i];switch(i){case"jsonOptions":r.jsonOptions=HLe.mergeJsonOptions(t.jsonOptions,r.jsonOptions);break;case"binaryOptions":r.binaryOptions=HLe.mergeBinaryOptions(t.binaryOptions,r.binaryOptions);break;case"meta":r.meta={},xM(t.meta,r.meta),xM(e.meta,r.meta);break;case"interceptors":r.interceptors=t.interceptors?t.interceptors.concat(n):n.concat();break}}return r}_M.mergeRpcOptions=t3t;function xM(t,e){if(!t)return;let r=e;for(let[i,n]of Object.entries(t))n instanceof Date?r[i]=new Date(n.getTime()):Array.isArray(n)?r[i]=n.concat():r[i]=n}});var Tte=p(aE=>{"use strict";Object.defineProperty(aE,"__esModule",{value:!0});aE.Deferred=aE.DeferredState=void 0;var Xf;(function(t){t[t.PENDING=0]="PENDING",t[t.REJECTED=1]="REJECTED",t[t.RESOLVED=2]="RESOLVED"})(Xf=aE.DeferredState||(aE.DeferredState={}));var Rte=class{constructor(e=!0){this._state=Xf.PENDING,this._promise=new Promise((r,i)=>{this._resolve=r,this._reject=i}),e&&this._promise.catch(r=>{})}get state(){return this._state}get promise(){return this._promise}resolve(e){if(this.state!==Xf.PENDING)throw new Error(`cannot resolve ${Xf[this.state].toLowerCase()}`);this._resolve(e),this._state=Xf.RESOLVED}reject(e){if(this.state!==Xf.PENDING)throw new Error(`cannot reject ${Xf[this.state].toLowerCase()}`);this._reject(e),this._state=Xf.REJECTED}resolvePending(e){this._state===Xf.PENDING&&this.resolve(e)}rejectPending(e){this._state===Xf.PENDING&&this.reject(e)}};aE.Deferred=Rte});var Dte=p(RM=>{"use strict";Object.defineProperty(RM,"__esModule",{value:!0});RM.RpcOutputStreamController=void 0;var jLe=Tte(),cE=Tr(),Nte=class{constructor(){this._lis={nxt:[],msg:[],err:[],cmp:[]},this._closed=!1}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 i=r.indexOf(e);i>=0&&r.splice(i,1)}}clearLis(){for(let e of Object.values(this._lis))e.splice(0,e.length)}get closed(){return this._closed!==!1}notifyNext(e,r,i){cE.assert((e?1:0)+(r?1:0)+(i?1:0)<=1,"only one emission at a time"),e&&this.notifyMessage(e),r&&this.notifyError(r),i&&this.notifyComplete()}notifyMessage(e){cE.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){cE.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(){cE.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._itState||(this._itState={q:[]}),this._closed===!0?this.pushIt({value:null,done:!0}):this._closed!==!1&&this.pushIt(this._closed),{next:()=>{let e=this._itState;cE.assert(e,"bad state"),cE.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 jLe.Deferred,e.p.promise)}}}pushIt(e){let r=this._itState;if(r)if(r.p){let i=r.p;cE.assert(i.state==jLe.DeferredState.PENDING,"iterator contract broken"),"value"in e?i.resolve(e):i.reject(e),delete r.p}else r.q.push(e)}};RM.RpcOutputStreamController=Nte});var Pte=p(FC=>{"use strict";var r3t=FC&&FC.__awaiter||function(t,e,r,i){function n(s){return s instanceof r?s:new r(function(o){o(s)})}return new(r||(r=Promise))(function(s,o){function a(l){try{u(i.next(l))}catch(f){o(f)}}function c(l){try{u(i.throw(l))}catch(f){o(f)}}function u(l){l.done?s(l.value):n(l.value).then(a,c)}u((i=i.apply(t,e||[])).next())})};Object.defineProperty(FC,"__esModule",{value:!0});FC.UnaryCall=void 0;var Ote=class{constructor(e,r,i,n,s,o,a){this.method=e,this.requestHeaders=r,this.request=i,this.headers=n,this.response=s,this.status=o,this.trailers=a}then(e,r){return this.promiseFinished().then(i=>e?Promise.resolve(e(i)):i,i=>r?Promise.resolve(r(i)):Promise.reject(i))}promiseFinished(){return r3t(this,void 0,void 0,function*(){let[e,r,i,n]=yield Promise.all([this.headers,this.response,this.status,this.trailers]);return{method:this.method,requestHeaders:this.requestHeaders,request:this.request,headers:e,response:r,status:i,trailers:n}})}};FC.UnaryCall=Ote});var Qte=p(MC=>{"use strict";var i3t=MC&&MC.__awaiter||function(t,e,r,i){function n(s){return s instanceof r?s:new r(function(o){o(s)})}return new(r||(r=Promise))(function(s,o){function a(l){try{u(i.next(l))}catch(f){o(f)}}function c(l){try{u(i.throw(l))}catch(f){o(f)}}function u(l){l.done?s(l.value):n(l.value).then(a,c)}u((i=i.apply(t,e||[])).next())})};Object.defineProperty(MC,"__esModule",{value:!0});MC.ServerStreamingCal Line truncated
globstar while`,e,f,r,h,d),this.matchOne(e.slice(f),r.slice(h),i))return this.debug("globstar found match!",f,a,d),!0;if(d==="."||d===".."||!n.dot&&d.charAt(0)==="."){this.debug("dot detected!",e,f,r,h);break}this.debug("globstar swallow a segment, and continue"),f++}return!!(i&&(this.debug(`
>>> no match, partial?`,e,f,r,h),f===a))}var m;if(typeof u=="string"?(m=l===u,this.debug("string match",u,l,m)):(m=l.match(u),this.debug("pattern match",u,l,m)),!m)return!1}if(s===a&&o===c)return!0;if(s===a)return i;if(o===c)return s===a-1&&e[s]==="";throw new Error("wtf?")}braceExpand(){return vFe(this.pattern,this.options)}parse(e,r){kM(e);let i=this.options;if(e==="**")if(i.noglobstar)e="*";else return wl;if(e==="")return"";let n="",s=!1,o=!1,a=[],c=[],u,l=!1,f=-1,h=-1,d,m,A,y=e.charAt(0)===".",g=i.dot||y,E=()=>y?"":g?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",C=T=>T.charAt(0)==="."?"":i.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",S=()=>{if(u){switch(u){case"*":n+=gre,s=!0;break;case"?":n+=bre,s=!0;break;default:n+="\\"+u;break}this.debug("clearStateChar %j %j",u,n),u=!1}};for(let T=0,G;T<e.length&&(G=e.charAt(T));T++){if(this.debug("%s %s %s %j",e,T,n,G),o){if(G==="/")return!1;IFe[G]&&(n+="\\"),n+=G,o=!1;continue}switch(G){case"/":return!1;case"\\":if(l&&e.charAt(T+1)==="-"){n+=G;continue}S(),o=!0;continue;case"?":case"*":case"+":case"@":case"!":if(this.debug("%s %s %s %j <-- stateChar",e,T,n,G),l){this.debug(" in class"),G==="!"&&T===h+1&&(G="^"),n+=G;continue}this.debug("call clearStateChar %j",u),S(),u=G,i.noext&&S();continue;case"(":{if(l){n+="(";continue}if(!u){n+="\\(";continue}let D={type:u,start:T-1,reStart:n.length,open:CFe[u].open,close:CFe[u].close};this.debug(this.pattern," ",D),a.push(D),n+=D.open,D.start===0&&D.type!=="!"&&(y=!0,n+=C(e.slice(T+1))),this.debug("plType %j %j",u,n),u=!1;continue}case")":{let D=a[a.length-1];if(l||!D){n+="\\)";continue}a.pop(),S(),s=!0,m=D,n+=m.close,m.type==="!"&&c.push(Object.assign(m,{reEnd:n.length}));continue}case"|":{let D=a[a.length-1];if(l||!D){n+="\\|";continue}S(),n+="|",D.start===0&&D.type!=="!"&&(y=!0,n+=C(e.slice(T+1)));continue}case"[":if(S(),l){n+="\\"+G;continue}l=!0,h=T,f=n.length,n+=G;continue;case"]":if(T===h+1||!l){n+="\\"+G;continue}d=e.substring(h+1,T);try{RegExp("["+z3t(j3t(d))+"]"),n+=G}catch{n=n.substring(0,f)+"(?:$.)"}s=!0,l=!1;continue;default:S(),IFe[G]&&!(G==="^"&&l)&&(n+="\\"),n+=G;break}}for(l&&(d=e.slice(h+1),A=this.parse(d,yre),n=n.substring(0,f)+"\\["+A[0],s=s||A[1]),m=a.pop();m;m=a.pop()){let T;T=n.slice(m.reStart+m.open.length),this.debug("setting tail",n,m),T=T.replace(/((?:\\{2}){0,64})(\\?)\|/g,(D,H,L)=>(L||(L="\\"),H+H+L+"|")),this.debug(`tail=%j
%s`,T,T,m,n);let G=m.type==="*"?gre:m.type==="?"?bre:"\\"+m.type;s=!0,n=n.slice(0,m.reStart)+G+"\\("+T}S(),o&&(n+="\\\\");let N=q3t[n.charAt(0)];for(let T=c.length-1;T>-1;T--){let G=c[T],D=n.slice(0,G.reStart),H=n.slice(G.reStart,G.reEnd-8),L=n.slice(G.reEnd),Z=n.slice(G.reEnd-8,G.reEnd)+L,$=D.split(")").length,De=D.split("(").length-$,de=L;for(let Y=0;Y<De;Y++)de=de.replace(/\)[+*?]?/,"");L=de;let Qe=L===""&&r!==yre?"(?:$|\\/)":"";n=D+H+L+Qe+Z}if(n!==""&&s&&(n="(?=.)"+n),N&&(n=E()+n),r===yre)return[n,s];if(i.nocase&&!s&&(s=e.toUpperCase()!==e.toLowerCase()),!s)return H3t(e);let Q=i.nocase?"i":"";try{return Object.assign(new RegExp("^"+n+"$",Q),{_glob:e,_src:n})}catch{return new RegExp("$.")}}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;let e=this.set;if(!e.length)return this.regexp=!1,this.regexp;let r=this.options,i=r.noglobstar?gre:r.dot?M3t:U3t,n=r.nocase?"i":"",s=e.map(o=>(o=o.map(a=>typeof a=="string"?V3t(a):a===wl?wl:a._src).reduce((a,c)=>(a[a.length-1]===wl&&c===wl||a.push(c),a),[]),o.forEach((a,c)=>{a!==wl||o[c-1]===wl||(c===0?o.length>1?o[c+1]="(?:\\/|"+i+"\\/)?"+o[c+1]:o[c]=i:c===o.length-1?o[c-1]+="(?:\\/|"+i+")?":(o[c-1]+="(?:\\/|\\/"+i+"\\/)"+o[c+1],o[c+1]=wl))}),o.filter(a=>a!==wl).join("/"))).join("|");s="^(?:"+s+")$",this.negate&&(s="^(?!"+s+").*$");try{this.regexp=new RegExp(s,n)}catch{this.regexp=!1}return this.regexp}match(e,r=this.partial){if(this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return e==="";if(e==="/"&&r)return!0;let i=this.options;Ere.sep!=="/"&&(e=e.split(Ere.sep).join("/")),e=e.split(SFe),this.debug(this.pattern,"split",e);let n=this.set;this.debug(this.pattern,"set",n);let s;for(let o=e.length-1;o>=0&&(s=e[o],!s);o--);for(let o=0;o<n.length;o++){let a=n[o],c=e;if(i.matchBase&&a.length===1&&(c=[s]),this.matchOne(c,a,r))return i.flipNegate?!0:!this.negate}return i.flipNegate?!1:this.negate}static defaults(e){return cc.defaults(e).Minimatch}};cc.Minimatch=WC});var DFe=p((LYr,NFe)=>{NFe.exports=TFe;var Ire=require("fs"),{EventEmitter:$3t}=require("events"),{Minimatch:Cre}=xFe(),{resolve:W3t}=require("path");function J3t(t,e){return new Promise((r,i)=>{Ire.readdir(t,{withFileTypes:!0},(n,s)=>{if(n)switch(n.code){case"ENOTDIR":e?i(n):r([]);break;case"ENOTSUP":case"ENOENT":case"ENAMETOOLONG":case"UNKNOWN":r([]);break;default:i(n);break}else r(s)})})}function _Fe(t,e){return new Promise((r,i)=>{(e?Ire.stat:Ire.lstat)(t,(s,o)=>{s?s.code==="ENOENT"?r(e?_Fe(t,!1):null):r(null):r(o)})})}async function*RFe(t,e,r,i,n,s){let o=await J3t(e+t,s);for(let a of o){let c=a.name;c===void 0&&(c=a,i=!0);let u=t+"/"+c,l=u.slice(1),f=e+"/"+l,h=null;(i||r)&&(h=await _Fe(f,r)),!h&&a.name!==void 0&&(h=a),h===null&&(h={isDirectory:()=>!1}),h.isDirectory()?n(l)||(yield{relative:l,absolute:f,stats:h},yield*RFe(u,e,r,i,n,!1)):yield{relative:l,absolute:f,stats:h}}}async function*Y3t(t,e,r,i){yield*RFe("",t,e,r,i,!0)}function K3t(t){return{pattern:t.pattern,dot:!!t.dot,noglobstar:!!t.noglobstar,matchBase:!!t.matchBase,nocase:!!t.nocase,ignore:t.ignore,skip:t.skip,follow:!!t.follow,stat:!!t.stat,nodir:!!t.nodir,mark:!!t.mark,silent:!!t.silent,absolute:!!t.absolute}}var QM=class extends $3t{constructor(e,r,i){if(super(),typeof r=="function"&&(i=r,r=null),this.options=K3t(r||{}),this.matchers=[],this.options.pattern){let n=Array.isArray(this.options.pattern)?this.options.pattern:[this.options.pattern];this.matchers=n.map(s=>new Cre(s,{dot:this.options.dot,noglobstar:this.options.noglobstar,matchBase:this.options.matchBase,nocase:this.options.nocase}))}if(this.ignoreMatchers=[],this.options.ignore){let n=Array.isArray(this.options.ignore)?this.options.ignore:[this.options.ignore];this.ignoreMatchers=n.map(s=>new Cre(s,{dot:!0}))}if(this.skipMatchers=[],this.options.skip){let n=Array.isArray(this.options.skip)?this.options.skip:[this.options.skip];this.skipMatchers=n.map(s=>new Cre(s,{dot:!0}))}this.iterator=Y3t(W3t(e||"."),this.options.follow,this.options.stat,this._shouldSkipDirectory.bind(this)),this.paused=!1,this.inactive=!1,this.aborted=!1,i&&(this._matches=[],this.on("match",n=>this._matches.push(this.options.absolute?n.absolute:n.relative)),this.on("error",n=>i(n)),this.on("end",()=>i(null,this._matches))),setTimeout(()=>this._next(),0)}_shouldSkipDirectory(e){return this.skipMatchers.some(r=>r.match(e))}_fileMatches(e,r){let i=e+(r?"/":"");return(this.matchers.length===0||this.matchers.some(n=>n.match(i)))&&!this.ignoreMatchers.some(n=>n.match(i))&&(!this.options.nodir||!r)}_next(){!this.paused&&!this.aborted?this.iterator.next().then(e=>{if(e.done)this.emit("end");else{let r=e.value.stats.isDirectory();if(this._fileMatches(e.value.relative,r)){let i=e.value.relative,n=e.value.absolute;this.options.mark&&r&&(i+="/",n+="/"),this.options.stat?this.emit("match",{relative:i,absolute:n,stat:e.value.stats}):this.emit("match",{relative:i,absolute:n})}this._next(this.iterator)}}).catch(e=>{this.abort(),this.emit("error",e),!e.code&&!this.options.silent&&console.erro Line truncated
`,x);x=F===-1?v.length:F}else if(O!==-1&&v[x]==="/"&&v[x+1]==="*"){let F=v.indexOf("*/",x);F!==-1?(x=F+2,O=v.indexOf("*/",x)):(I+=v[x],x++)}else I+=v[x],x++;return I}function Z0(v){let I=vg(v.toString()),x=I.match(jl);if(x||(x=I.match(ju)),!x)throw new Error(`could not parse args in autoInject
Source:
`+I);let[,O]=x;return O.replace(/\s/g,"").split(X0).map(F=>F.replace(Bg,"").trim())}function sm(v,I){var x={};return Object.keys(v).forEach(O=>{var F=v[O],U,V=d(F),z=!V&&F.length===1||V&&F.length===0;if(Array.isArray(F))U=[...F],F=U.pop(),x[O]=U.concat(U.length>0?ee:F);else if(z)x[O]=F;else{if(U=Z0(F),F.length===0&&!V&&U.length===0)throw new Error("autoInject task functions require explicit parameters.");V||U.pop(),x[O]=U.concat(ee)}function ee(Oe,Qt){var Vt=U.map(Ft=>Oe[Ft]);Vt.push(Qt),y(F)(...Vt)}}),Hl(x,I)}class eb{constructor(){this.head=this.tail=null,this.length=0}removeLink(I){return I.prev?I.prev.next=I.next:this.head=I.next,I.next?I.next.prev=I.prev:this.tail=I.prev,I.prev=I.next=null,this.length-=1,I}empty(){for(;this.head;)this.shift();return this}insertAfter(I,x){x.prev=I,x.next=I.next,I.next?I.next.prev=x:this.tail=x,I.next=x,this.length+=1}insertBefore(I,x){x.prev=I.prev,x.next=I,I.prev?I.prev.next=x:this.head=x,I.prev=x,this.length+=1}unshift(I){this.head?this.insertBefore(this.head,I):xg(this,I)}push(I){this.tail?this.insertAfter(this.tail,I):xg(this,I)}shift(){return this.head&&this.removeLink(this.head)}pop(){return this.tail&&this.removeLink(this.tail)}toArray(){return[...this]}*[Symbol.iterator](){for(var I=this.head;I;)yield I.data,I=I.next}remove(I){for(var x=this.head;x;){var{next:O}=x;I(x)&&this.removeLink(x),x=O}return this}}function xg(v,I){v.length=1,v.head=v.tail=I}function om(v,I,x){if(I==null)I=1;else if(I===0)throw new RangeError("Concurrency must not be zero");var O=y(v),F=0,U=[];let V={error:[],drain:[],saturated:[],unsaturated:[],empty:[]};function z(Ve,Ne){V[Ve].push(Ne)}function ee(Ve,Ne){let ze=(...Mt)=>{Oe(Ve,ze),Ne(...Mt)};V[Ve].push(ze)}function Oe(Ve,Ne){if(!Ve)return Object.keys(V).forEach(ze=>V[ze]=[]);if(!Ne)return V[Ve]=[];V[Ve]=V[Ve].filter(ze=>ze!==Ne)}function Qt(Ve,...Ne){V[Ve].forEach(ze=>ze(...Ne))}var Vt=!1;function Ft(Ve,Ne,ze,Mt){if(Mt!=null&&typeof Mt!="function")throw new Error("task callback must be a function");zt.started=!0;var Lr,mn;function Rc(Fg,...sv){if(Fg)return ze?mn(Fg):Lr();if(sv.length<=1)return Lr(sv[0]);Lr(sv)}var mb=zt._createTaskItem(Ve,ze?Rc:Mt||Rc);if(Ne?zt._tasks.unshift(mb):zt._tasks.push(mb),Vt||(Vt=!0,u(()=>{Vt=!1,zt.process()})),ze||!Mt)return new Promise((Fg,sv)=>{Lr=Fg,mn=sv})}function _c(Ve){return function(Ne,...ze){F-=1;for(var Mt=0,Lr=Ve.length;Mt<Lr;Mt++){var mn=Ve[Mt],Rc=U.indexOf(mn);Rc===0?U.shift():Rc>0&&U.splice(Rc,1),mn.callback(Ne,...ze),Ne!=null&&Qt("error",Ne,mn.data)}F<=zt.concurrency-zt.buffer&&Qt("unsaturated"),zt.idle()&&Qt("drain"),zt.process()}}function pb(Ve){return Ve.length===0&&zt.idle()?(u(()=>Qt("drain")),!0):!1}let Lg=Ve=>Ne=>{if(!Ne)return new Promise((ze,Mt)=>{ee(Ve,(Lr,mn)=>{if(Lr)return Mt(Lr);ze(mn)})});Oe(Ve),z(Ve,Ne)};var nv=!1,zt={_tasks:new eb,_createTaskItem(Ve,Ne){return{data:Ve,callback:Ne}},*[Symbol.iterator](){yield*zt._tasks[Symbol.iterator]()},concurrency:I,payload:x,buffer:I/4,started:!1,paused:!1,push(Ve,Ne){return Array.isArray(Ve)?pb(Ve)?void 0:Ve.map(ze=>Ft(ze,!1,!1,Ne)):Ft(Ve,!1,!1,Ne)},pushAsync(Ve,Ne){return Array.isArray(Ve)?pb(Ve)?void 0:Ve.map(ze=>Ft(ze,!1,!0,Ne)):Ft(Ve,!1,!0,Ne)},kill(){Oe(),zt._tasks.empty()},unshift(Ve,Ne){return Array.isArray(Ve)?pb(Ve)?void 0:Ve.map(ze=>Ft(ze,!0,!1,Ne)):Ft(Ve,!0,!1,Ne)},unshiftAsync(Ve,Ne){return Array.isArray(Ve)?pb(Ve)?void 0:Ve.map(ze=>Ft(ze,!0,!0,Ne)):Ft(Ve,!0,!0,Ne)},remove(Ve){zt._tasks.remove(Ve)},process(){if(!nv){for(nv=!0;!zt.paused&&F<zt.concurrency&&zt._tasks.length;){var Ve=[],Ne=[],ze=zt._tasks.length;zt.payload&&(ze=Math.min(ze,zt.payload));for(var Mt=0;Mt<ze;Mt++){var Lr=zt._tasks.shift();Ve.push(Lr),U.push(Lr),Ne.push(Lr.data)}F+=1,zt._tasks.length===0&&Qt("empty"),F===zt.concurrency&&Qt("saturated");var mn=$(_c(Ve));O(Ne,mn)}nv=!1}},length(){return zt._tasks.length},running(){return F},workersList(){return U},idle(){return zt._tasks.length+F===0},pause(){zt.paused=!0},resume(){zt.paused!==!1&&(zt.paused=!1,u(zt.process))}};return Object.defineProperties(zt,{saturated:{writable:!1,value:Lg("saturated")},unsaturated:{writable:!1,value:Lg("unsaturated")},empty:{writable:!1,value:Lg("empty")},drain:{writable:!1,value:Lg("drain")},error:{writable:!1,value:Lg("error")}}),zt}function am(v,I){return om(v,1,I)}function to(v,I,x){return om(v,I,x)}function tb(v,I,x,O){O=T(O);var F=y(x);return Jr(v,(U,V,z)=>{F(I,U,(ee,Oe)=>{I=Oe,z(ee)})},U=>O(U,I))}var Ra=g(tb,4);function _g(...v){var I=v.map(y);return function(...x){var O=this,F=x[x.length-1];return typeof F=="function"?x.pop():F=_a(),Ra(I,x,(U,V,z)=>{V.apply(O,U.concat((ee,...Oe)=>{z(ee,Oe)}))},(U,V)=>F(U,...V)),F[ds]}}function ve(...v){return _g(...v.reverse())}function M(v,I,x,O){return C(de(I),v,x,O)}var R=g(M,4);function q(v,I,x,O){var F=y(x);return R(v,I,(U,V)=>{F(U,(z,...ee)=>z?V(z):V(z,ee))},(U,V)=>{for(var z=[],ee=0;ee<V.length;ee++)V[ee]&&(z=z.concat(...V[ee]));return O(U,z)})}var j=g(q,4);function J(v,I,x){return j(v,1/0,I,x)}var re=g(J,3);function Be(v,I,x){return Line truncated
GFS4: `),console.error(t)});Zr[ns]||(GFe=global[ns]||[],jFe(Zr,GFe),Zr.close=(function(t){function e(r,i){return t.call(Zr,r,function(n){n||HFe(),typeof i=="function"&&i.apply(this,arguments)})}return Object.defineProperty(e,qM,{value:t}),e})(Zr.close),Zr.closeSync=(function(t){function e(r){t.apply(Zr,arguments),HFe()}return Object.defineProperty(e,qM,{value:t}),e})(Zr.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){lE(Zr[ns]),require("assert").equal(Zr[ns].length,0)}));var GFe;global[ns]||jFe(global,Zr[ns]);xre.exports=Bre(o4t(Zr));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!Zr.__patched&&(xre.exports=Bre(Zr),Zr.__patched=!0);function Bre(t){n4t(t),t.gracefulify=Bre,t.createReadStream=N,t.createWriteStream=Q;var e=t.readFile;t.readFile=r;function r(D,H,L){return typeof H=="function"&&(L=H,H=null),Z(D,H,L);function Z($,De,de,Qe){return e($,De,function(Y){Y&&(Y.code==="EMFILE"||Y.code==="ENFILE")?JC([Z,[$,De,de],Y,Qe||Date.now(),Date.now()]):typeof de=="function"&&de.apply(this,arguments)})}}var i=t.writeFile;t.writeFile=n;function n(D,H,L,Z){return typeof L=="function"&&(Z=L,L=null),$(D,H,L,Z);function $(De,de,Qe,Y,Te){return i(De,de,Qe,function(Ie){Ie&&(Ie.code==="EMFILE"||Ie.code==="ENFILE")?JC([$,[De,de,Qe,Y],Ie,Te||Date.now(),Date.now()]):typeof Y=="function"&&Y.apply(this,arguments)})}}var s=t.appendFile;s&&(t.appendFile=o);function o(D,H,L,Z){return typeof L=="function"&&(Z=L,L=null),$(D,H,L,Z);function $(De,de,Qe,Y,Te){return s(De,de,Qe,function(Ie){Ie&&(Ie.code==="EMFILE"||Ie.code==="ENFILE")?JC([$,[De,de,Qe,Y],Ie,Te||Date.now(),Date.now()]):typeof Y=="function"&&Y.apply(this,arguments)})}}var a=t.copyFile;a&&(t.copyFile=c);function c(D,H,L,Z){return typeof L=="function"&&(Z=L,L=0),$(D,H,L,Z);function $(De,de,Qe,Y,Te){return a(De,de,Qe,function(Ie){Ie&&(Ie.code==="EMFILE"||Ie.code==="ENFILE")?JC([$,[De,de,Qe,Y],Ie,Te||Date.now(),Date.now()]):typeof Y=="function"&&Y.apply(this,arguments)})}}var u=t.readdir;t.readdir=f;var l=/^v[0-5]\./;function f(D,H,L){typeof H=="function"&&(L=H,H=null);var Z=l.test(process.version)?function(de,Qe,Y,Te){return u(de,$(de,Qe,Y,Te))}:function(de,Qe,Y,Te){return u(de,Qe,$(de,Qe,Y,Te))};return Z(D,H,L);function $(De,de,Qe,Y){return function(Te,Ie){Te&&(Te.code==="EMFILE"||Te.code==="ENFILE")?JC([Z,[De,de,Qe],Te,Y||Date.now(),Date.now()]):(Ie&&Ie.sort&&Ie.sort(),typeof Qe=="function"&&Qe.call(this,Te,Ie))}}}if(process.version.substr(0,4)==="v0.8"){var h=s4t(t);g=h.ReadStream,C=h.WriteStream}var d=t.ReadStream;d&&(g.prototype=Object.create(d.prototype),g.prototype.open=E);var m=t.WriteStream;m&&(C.prototype=Object.create(m.prototype),C.prototype.open=S),Object.defineProperty(t,"ReadStream",{get:function(){return g},set:function(D){g=D},enumerable:!0,configurable:!0}),Object.defineProperty(t,"WriteStream",{get:function(){return C},set:function(D){C=D},enumerable:!0,configurable:!0});var A=g;Object.defineProperty(t,"FileReadStream",{get:function(){return A},set:function(D){A=D},enumerable:!0,configurable:!0});var y=C;Object.defineProperty(t,"FileWriteStream",{get:function(){return y},set:function(D){y=D},enumerable:!0,configurable:!0});function g(D,H){return this instanceof g?(d.apply(this,arguments),this):g.apply(Object.create(g.prototype),arguments)}function E(){var D=this;G(D.path,D.flags,D.mode,function(H,L){H?(D.autoClose&&D.destroy(),D.emit("error",H)):(D.fd=L,D.emit("open",L),D.read())})}function C(D,H){return this instanceof C?(m.apply(this,arguments),this):C.apply(Object.create(C.prototype),arguments)}function S(){var D=this;G(D.path,D.flags,D.mode,function(H,L){H?(D.destroy(),D.emit("error",H)):(D.fd=L,D.emit("open",L))})}function N(D,H){return new t.ReadStream(D,H)}function Q(D,H){return new t.WriteStream(D,H)}var T=t.open;t.open=G;function G(D,H,L,Z){return typeof L=="function"&&(Z=L,L=null),$(D,H,L,Z);function $(De,de,Qe,Y,Te){return T(De,de,Qe,function(Ie,Rt){Ie&&(Ie.code==="EMFILE"||Ie.code==="ENFILE")?JC([$,[De,de,Qe,Y],Ie,Te||Date.now(),Date.now()]):typeof Y=="function"&&Y.apply(this,arguments)})}}return t}function JC(t){lE("ENQUEUE",t[0].name,t[1]),Zr[ns].push(t),vre()}var UM;function HFe(){for(var t=Date.now(),e=0;e<Zr[ns].length;++e)Zr[ns][e].length>2&&(Zr[ns][e][3]=t,Zr[ns][e][4]=t);vre()}function vre(){if(clearTimeout(UM),UM=void 0,Zr[ns].length!==0){var t=Zr[ns].shift(),e=t[0],r=t[1],i=t[2],n=t[3],s=t[4];if(n===void 0)lE("RETRY",e.name,r),e.apply(null,r);else if(Date.now()-n>=6e4){lE("TIMEOUT",e.name,r);var o=r.pop();typeof o=="function"&&o.call(null,i)}else{var a=Date.now()-s,c=Math.max(s-n,1),u=Math.min(c*1.2,100);a>=u?(lE("RETRY",e.name,r),e.apply(null,r.concat([n]))):Zr[ns].push(t)}UM===void 0&&(UM=setTimeout(vre,0))}}});var GM=p((GYr,VFe)=>{"use strict";var rh=t=>t!==null&&typeof t=="object"&&typeof t.pipe=="function";rh.writable=t=>rh(t)&&t.writable!==!1&&typeof t._write=="function"&&typeof t._writableState=="object";rh.readable=t=>rh(t)&&t.readable!==!1&&typeof t._read=="function"&&typeof t._readableState= Line truncated
`;super(r),this.name="AggregateError",this.errors=e}};die.exports={AggregateError:hie,kEmptyObject:Object.freeze({}),once(t){let e=!1;return function(...r){e||(e=!0,t.apply(this,r))}},createDeferredPromise:function(){let t,e;return{promise:new Promise((i,n)=>{t=i,e=n}),resolve:t,reject:e}},promisify(t){return new Promise((e,r)=>{t((i,...n)=>i?r(i):e(...n))})},debuglog(){return function(){}},format(t,...e){return t.replace(/%([sdifj])/g,function(...[r,i]){let n=e.shift();return i==="f"?n.toFixed(6):i==="j"?JSON.stringify(n):i==="s"&&typeof n=="object"?`${n.constructor!==Object?n.constructor.name:""} {}`.trim():n.toString()})},inspect(t){switch(typeof t){case"string":if(t.includes("'"))if(t.includes('"')){if(!t.includes("`")&&!t.includes("${"))return`\`${t}\``}else return`"${t}"`;return`'${t}'`;case"number":return isNaN(t)?"NaN":Object.is(t,-0)?String(t):t;case"bigint":return`${String(t)}n`;case"boolean":case"undefined":return String(t);case"object":return"{}"}},types:{isAsyncFunction(t){return t instanceof HHt},isArrayBufferView(t){return ArrayBuffer.isView(t)}},isBlob:jHt,deprecate(t,e){return t},addAbortListener:require("events").addAbortListener||function(e,r){if(e===void 0)throw new ERR_INVALID_ARG_TYPE("signal","AbortSignal",e);Lqe(e,"signal"),VHt(r,"listener");let i;return e.aborted?queueMicrotask(()=>r()):(e.addEventListener("abort",r,{__proto__:null,once:!0,[MHt]:!0}),i=()=>{e.removeEventListener("abort",r)}),{__proto__:null,[UHt](){var n;(n=i)===null||n===void 0||n()}}},AbortSignalAny:qHt.any||function(e){if(e.length===1)return e[0];let r=new GHt,i=()=>r.abort();return e.forEach(n=>{Lqe(n,"signals"),n.addEventListener("abort",i,{once:!0})}),r.signal.addEventListener("abort",()=>{e.forEach(n=>n.removeEventListener("abort",i))},{once:!0}),r.signal}};die.exports.promisify.custom=Symbol.for("nodejs.util.promisify.custom")});var bo=p((Z7r,Uqe)=>{"use strict";var{format:zHt,inspect:lU,AggregateError:$Ht}=Ts(),WHt=globalThis.AggregateError||$Ht,JHt=Symbol("kIsNodeError"),YHt=["string","function","number","object","Function","Object","boolean","bigint","symbol"],KHt=/^([A-Z][a-z0-9]*)+$/,XHt="__node_internal_",fU={};function dE(t,e){if(!t)throw new fU.ERR_INTERNAL_ASSERTION(e)}function Fqe(t){let e="",r=t.length,i=t[0]==="-"?1:0;for(;r>=i+4;r-=3)e=`_${t.slice(r-3,r)}${e}`;return`${t.slice(0,r)}${e}`}function ZHt(t,e,r){if(typeof e=="function")return dE(e.length<=r.length,`Code: ${t}; The provided arguments length (${r.length}) does not match the required ones (${e.length}).`),e(...r);let i=(e.match(/%[dfijoOs]/g)||[]).length;return dE(i===r.length,`Code: ${t}; The provided arguments length (${r.length}) does not match the required ones (${i}).`),r.length===0?e:zHt(e,...r)}function os(t,e,r){r||(r=Error);class i extends r{constructor(...s){super(ZHt(t,e,s))}toString(){return`${this.name} [${t}]: ${this.message}`}}Object.defineProperties(i.prototype,{name:{value:r.name,writable:!0,enumerable:!1,configurable:!0},toString:{value(){return`${this.name} [${t}]: ${this.message}`},writable:!0,enumerable:!1,configurable:!0}}),i.prototype.code=t,i.prototype[JHt]=!0,fU[t]=i}function Mqe(t){let e=XHt+t.name;return Object.defineProperty(t,"name",{value:e}),t}function e6t(t,e){if(t&&e&&t!==e){if(Array.isArray(e.errors))return e.errors.push(t),e;let r=new WHt([e,t],e.message);return r.code=e.code,r}return t||e}var pie=class extends Error{constructor(e="The operation was aborted",r=void 0){if(r!==void 0&&typeof r!="object")throw new fU.ERR_INVALID_ARG_TYPE("options","Object",r);super(e,r),this.code="ABORT_ERR",this.name="AbortError"}};os("ERR_ASSERTION","%s",Error);os("ERR_INVALID_ARG_TYPE",(t,e,r)=>{dE(typeof t=="string","'name' must be a string"),Array.isArray(e)||(e=[e]);let i="The ";t.endsWith(" argument")?i+=`${t} `:i+=`"${t}" ${t.includes(".")?"property":"argument"} `,i+="must be ";let n=[],s=[],o=[];for(let c of e)dE(typeof c=="string","All expected entries have to be of type string"),YHt.includes(c)?n.push(c.toLowerCase()):KHt.test(c)?s.push(c):(dE(c!=="object",'The value "object" should be written as "Object"'),o.push(c));if(s.length>0){let c=n.indexOf("object");c!==-1&&(n.splice(n,c,1),s.push("Object"))}if(n.length>0){switch(n.length){case 1:i+=`of type ${n[0]}`;break;case 2:i+=`one of type ${n[0]} or ${n[1]}`;break;default:{let c=n.pop();i+=`one of type ${n.join(", ")}, or ${c}`}}(s.length>0||o.length>0)&&(i+=" or ")}if(s.length>0){switch(s.length){case 1:i+=`an instance of ${s[0]}`;break;case 2:i+=`an instance of ${s[0]} or ${s[1]}`;break;default:{let c=s.pop();i+=`an instance of ${s.join(", ")}, or ${c}`}}o.length>0&&(i+=" or ")}switch(o.length){case 0:break;case 1:o[0].toLowerCase()!==o[0]&&(i+="an "),i+=`${o[0]}`;break;case 2:i+=`one of ${o[0]} or ${o[1]}`;break;default:{let c=o.pop();i+=`one of ${o.join(", ")}, or ${c}`}}if(r==null)i+=`. Received ${r}`;else if(typeof r=="function"&&r.name)i+=`. Received function ${r.name}`;else if(typeof r=="object"){var a;if((a=r.constructor)!==null&&a!==void 0&&a.name)i+=Line truncated
`)),e.linkname&&(r+=jse(" linkpath="+e.linkname+`
`));let i=e.pax;if(i)for(let n in i)r+=jse(" "+n+"="+i[n]+`
`);return jt.from(r)};FI.decodePax=function(e){let r={};for(;e.length;){let i=0;for(;i<e.length&&e[i]!==32;)i++;let n=parseInt(jt.toString(e.subarray(0,i)),10);if(!n)return r;let s=jt.toString(e.subarray(i+1,n-1)),o=s.indexOf("=");if(o===-1)return r;r[s.slice(0,o)]=s.slice(o+1),e=e.subarray(n)}return r};FI.encode=function(e){let r=jt.alloc(512),i=e.name,n="";if(e.typeflag===5&&i[i.length-1]!=="/"&&(i+="/"),jt.byteLength(i)!==i.length)return null;for(;jt.byteLength(i)>100;){let s=i.indexOf("/");if(s===-1)return null;n+=n?"/"+i.slice(0,s):i.slice(0,s),i=i.slice(s+1)}return jt.byteLength(i)>100||jt.byteLength(n)>155||e.linkname&&jt.byteLength(e.linkname)>100?null:(jt.write(r,i),jt.write(r,vA(e.mode&AXt,6),100),jt.write(r,vA(e.uid,6),108),jt.write(r,vA(e.gid,6),116),IXt(e.size,r,124),jt.write(r,vA(e.mtime.getTime()/1e3|0,11),136),r[156]=qq+wXt(e.type),e.linkname&&jt.write(r,e.linkname,157),jt.copy(M6e,r,rN),jt.copy(dXt,r,Vse),e.uname&&jt.write(r,e.uname,265),e.gname&&jt.write(r,e.gname,297),jt.write(r,vA(e.devmajor||0,6),329),jt.write(r,vA(e.devminor||0,6),337),n&&jt.write(r,n,345),jt.write(r,vA(q6e(r),6),148),r)};FI.decode=function(e,r,i){let n=e[156]===0?0:e[156]-qq,s=LI(e,0,100,r),o=BA(e,100,8),a=BA(e,108,8),c=BA(e,116,8),u=BA(e,124,12),l=BA(e,136,12),f=bXt(n),h=e[157]===0?null:LI(e,157,100,r),d=LI(e,265,32),m=LI(e,297,32),A=BA(e,329,8),y=BA(e,337,8),g=q6e(e);if(g===256)return null;if(g!==BA(e,148,8))throw new Error("Invalid tar header. Maybe the tar is corrupted or it needs to be gunzipped?");if(gXt(e))e[345]&&(s=LI(e,345,155,r)+"/"+s);else if(!yXt(e)){if(!i)throw new Error("Invalid tar header: unknown format.")}return n===0&&s&&s[s.length-1]==="/"&&(n=5),{name:s,mode:o,uid:a,gid:c,size:u,mtime:new Date(1e3*l),type:f,linkname:h,uname:d,gname:m,devmajor:A,devminor:y,pax:null}};function gXt(t){return jt.equals(M6e,t.subarray(rN,rN+6))}function yXt(t){return jt.equals(pXt,t.subarray(rN,rN+6))&&jt.equals(mXt,t.subarray(Vse,Vse+2))}function EXt(t,e,r){return typeof t!="number"?r:(t=~~t,t>=e?e:t>=0||(t+=e,t>=0)?t:0)}function bXt(t){switch(t){case 0:return"file";case 1:return"link";case 2:return"symlink";case 3:return"character-device";case 4:return"block-device";case 5:return"directory";case 6:return"fifo";case 7:return"contiguous-file";case 72:return"pax-header";case 55:return"pax-global-header";case 27:return"gnu-long-link-path";case 28:case 30:return"gnu-long-path"}return null}function wXt(t){switch(t){case"file":return 0;case"link":return 1;case"symlink":return 2;case"character-device":return 3;case"block-device":return 4;case"directory":return 5;case"fifo":return 6;case"contiguous-file":return 7;case"pax-header":return 72}return 0}function U6e(t,e,r,i){for(;r<i;r++)if(t[r]===e)return r;return i}function q6e(t){let e=256;for(let r=0;r<148;r++)e+=t[r];for(let r=156;r<512;r++)e+=t[r];return e}function vA(t,e){return t=t.toString(8),t.length>e?hXt.slice(0,e)+" ":fXt.slice(0,e-t.length)+t+" "}function CXt(t,e,r){e[r]=128;for(let i=11;i>0;i--)e[r+i]=t&255,t=Math.floor(t/256)}function IXt(t,e,r){t.toString(8).length>11?CXt(t,e,r):jt.write(e,vA(t,11),r)}function SXt(t){let e;if(t[0]===128)e=!0;else if(t[0]===255)e=!1;else return null;let r=[],i;for(i=t.length-1;i>0;i--){let o=t[i];e?r.push(o):r.push(255-o)}let n=0,s=r.length;for(i=0;i<s;i++)n+=r[i]*Math.pow(256,i);return e?n:-1*n}function BA(t,e,r){if(t=t.subarray(e,e+r),e=0,t[e]&128)return SXt(t);{for(;e<t.length&&t[e]===32;)e++;let i=EXt(U6e(t,32,e,t.length),t.length,t.length);for(;e<i&&t[e]===0;)e++;return i===e?0:parseInt(jt.toString(t.subarray(e,i)),8)}}function LI(t,e,r,i){return jt.toString(t.subarray(e,U6e(t,0,e,e+r)),i)}function jse(t){let e=jt.byteLength(t),r=Math.floor(Math.log(e)/Math.log(10))+1;return e+r>=Math.pow(10,r)&&r++,e+r+t}});var z6e=p((EZr,V6e)=>{var{Writable:BXt,Readable:vXt,getStreamError:G6e}=Hse(),xXt=xse(),H6e=Uq(),MI=zse(),_Xt=H6e.alloc(0),Wse=class{constructor(){this.buffered=0,this.shifted=0,this.queue=new xXt,this._offset=0}push(e){this.buffered+=e.byteLength,this.queue.push(e)}shiftFirst(e){return this._buffered===0?null:this._next(e)}shift(e){if(e>this.buffered)return null;if(e===0)return _Xt;let r=this._next(e);if(e===r.byteLength)return r;let i=[r];for(;(e-=r.byteLength)>0;)r=this._next(e),i.push(r);return H6e.concat(i)}_next(e){let r=this.queue.peek(),i=r.byteLength-this._offset;if(e>=i){let n=this._offset?r.subarray(this._offset,r.byteLength):r;return this.queue.shift(),this._offset=0,this.buffered-=i,this.shifted+=i,n}return this.buffered-=e,this.shifted+=e,r.subarray(this._offset,this._offset+=e)}},Jse=class extends vXt{constructor(e,r,i){super(),this.header=r,this.offset=i,this._parent=e}_read(e){this.header.size===0&&this.push(null),this._parent._stream===this&&this._parent._update(),e(null)}_predestroy(){this._parent.destroy(G6e(this))}_detach(){this._parent._stream===this&&(this._parent._stream=null,this._parent._missing=j6e(this.header.size),this._parent._update())}_destroy(e){this._detach(),e(null)}},Yse=class extends B Line truncated
`,nexist:"\u2204",nexists:"\u2204",nfr:"\u{1D52B}",Nfr:"\u{1D511}",nge:"\u2271",ngE:"\u2267\u0338",ngeq:"\u2271",ngeqq:"\u2267\u0338",ngeqslant:"\u2A7E\u0338",nges:"\u2A7E\u0338",nGg:"\u22D9\u0338",ngsim:"\u2275",ngt:"\u226F",nGt:"\u226B\u20D2",ngtr:"\u226F",nGtv:"\u226B\u0338",nharr:"\u21AE",nhArr:"\u21CE",nhpar:"\u2AF2",ni:"\u220B",nis:"\u22FC",nisd:"\u22FA",niv:"\u220B",njcy:"\u045A",NJcy:"\u040A",nlarr:"\u219A",nlArr:"\u21CD",nldr:"\u2025",nle:"\u2270",nlE:"\u2266\u0338",nleftarrow:"\u219A",nLeftarrow:"\u21CD",nleftrightarrow:"\u21AE",nLeftrightarrow:"\u21CE",nleq:"\u2270",nleqq:"\u2266\u0338",nleqslant:"\u2A7D\u0338",nles:"\u2A7D\u0338",nless:"\u226E",nLl:"\u22D8\u0338",nlsim:"\u2274",nlt:"\u226E",nLt:"\u226A\u20D2",nltri:"\u22EA",nltrie:"\u22EC",nLtv:"\u226A\u0338",nmid:"\u2224",NoBreak:"\u2060",NonBreakingSpace:"\xA0",nopf:"\u{1D55F}",Nopf:"\u2115",not:"\xAC",Not:"\u2AEC",NotCongruent:"\u2262",NotCupCap:"\u226D",NotDoubleVerticalBar:"\u2226",NotElement:"\u2209",NotEqual:"\u2260",NotEqualTilde:"\u2242\u0338",NotExists:"\u2204",NotGreater:"\u226F",NotGreaterEqual:"\u2271",NotGreaterFullEqual:"\u2267\u0338",NotGreaterGreater:"\u226B\u0338",NotGreaterLess:"\u2279",NotGreaterSlantEqual:"\u2A7E\u0338",NotGreaterTilde:"\u2275",NotHumpDownHump:"\u224E\u0338",NotHumpEqual:"\u224F\u0338",notin:"\u2209",notindot:"\u22F5\u0338",notinE:"\u22F9\u0338",notinva:"\u2209",notinvb:"\u22F7",notinvc:"\u22F6",NotLeftTriangle:"\u22EA",NotLeftTriangleBar:"\u29CF\u0338",NotLeftTriangleEqual:"\u22EC",NotLess:"\u226E",NotLessEqual:"\u2270",NotLessGreater:"\u2278",NotLessLess:"\u226A\u0338",NotLessSlantEqual:"\u2A7D\u0338",NotLessTilde:"\u2274",NotNestedGreaterGreater:"\u2AA2\u0338",NotNestedLessLess:"\u2AA1\u0338",notni:"\u220C",notniva:"\u220C",notnivb:"\u22FE",notnivc:"\u22FD",NotPrecedes:"\u2280",NotPrecedesEqual:"\u2AAF\u0338",NotPrecedesSlantEqual:"\u22E0",NotReverseElement:"\u220C",NotRightTriangle:"\u22EB",NotRightTriangleBar:"\u29D0\u0338",NotRightTriangleEqual:"\u22ED",NotSquareSubset:"\u228F\u0338",NotSquareSubsetEqual:"\u22E2",NotSquareSuperset:"\u2290\u0338",NotSquareSupersetEqual:"\u22E3",NotSubset:"\u2282\u20D2",NotSubsetEqual:"\u2288",NotSucceeds:"\u2281",NotSucceedsEqual:"\u2AB0\u0338",NotSucceedsSlantEqual:"\u22E1",NotSucceedsTilde:"\u227F\u0338",NotSuperset:"\u2283\u20D2",NotSupersetEqual:"\u2289",NotTilde:"\u2241",NotTildeEqual:"\u2244",NotTildeFullEqual:"\u2247",NotTildeTilde:"\u2249",NotVerticalBar:"\u2224",npar:"\u2226",nparallel:"\u2226",nparsl:"\u2AFD\u20E5",npart:"\u2202\u0338",npolint:"\u2A14",npr:"\u2280",nprcue:"\u22E0",npre:"\u2AAF\u0338",nprec:"\u2280",npreceq:"\u2AAF\u0338",nrarr:"\u219B",nrArr:"\u21CF",nrarrc:"\u2933\u0338",nrarrw:"\u219D\u0338",nrightarrow:"\u219B",nRightarrow:"\u21CF",nrtri:"\u22EB",nrtrie:"\u22ED",nsc:"\u2281",nsccue:"\u22E1",nsce:"\u2AB0\u0338",nscr:"\u{1D4C3}",Nscr:"\u{1D4A9}",nshortmid:"\u2224",nshortparallel:"\u2226",nsim:"\u2241",nsime:"\u2244",nsimeq:"\u2244",nsmid:"\u2224",nspar:"\u2226",nsqsube:"\u22E2",nsqsupe:"\u22E3",nsub:"\u2284",nsube:"\u2288",nsubE:"\u2AC5\u0338",nsubset:"\u2282\u20D2",nsubseteq:"\u2288",nsubseteqq:"\u2AC5\u0338",nsucc:"\u2281",nsucceq:"\u2AB0\u0338",nsup:"\u2285",nsupe:"\u2289",nsupE:"\u2AC6\u0338",nsupset:"\u2283\u20D2",nsupseteq:"\u2289",nsupseteqq:"\u2AC6\u0338",ntgl:"\u2279",ntilde:"\xF1",Ntilde:"\xD1",ntlg:"\u2278",ntriangleleft:"\u22EA",ntrianglelefteq:"\u22EC",ntriangleright:"\u22EB",ntrianglerighteq:"\u22ED",nu:"\u03BD",Nu:"\u039D",num:"#",numero:"\u2116",numsp:"\u2007",nvap:"\u224D\u20D2",nvdash:"\u22AC",nvDash:"\u22AD",nVdash:"\u22AE",nVDash:"\u22AF",nvge:"\u2265\u20D2",nvgt:">\u20D2",nvHarr:"\u2904",nvinfin:"\u29DE",nvlArr:"\u2902",nvle:"\u2264\u20D2",nvlt:"<\u20D2",nvltrie:"\u22B4\u20D2",nvrArr:"\u2903",nvrtrie:"\u22B5\u20D2",nvsim:"\u223C\u20D2",nwarhk:"\u2923",nwarr:"\u2196",nwArr:"\u21D6",nwarrow:"\u2196",nwnear:"\u2927",oacute:"\xF3",Oacute:"\xD3",oast:"\u229B",ocir:"\u229A",ocirc:"\xF4",Ocirc:"\xD4",ocy:"\u043E",Ocy:"\u041E",odash:"\u229D",odblac:"\u0151",Odblac:"\u0150",odiv:"\u2A38",odot:"\u2299",odsold:"\u29BC",oelig:"\u0153",OElig:"\u0152",ofcir:"\u29BF",ofr:"\u{1D52C}",Ofr:"\u{1D512}",ogon:"\u02DB",ograve:"\xF2",Ograve:"\xD2",ogt:"\u29C1",ohbar:"\u29B5",ohm:"\u03A9",oint:"\u222E",olarr:"\u21BA",olcir:"\u29BE",olcross:"\u29BB",oline:"\u203E",olt:"\u29C0",omacr:"\u014D",Omacr:"\u014C",omega:"\u03C9",Omega:"\u03A9",omicron:"\u03BF",Omicron:"\u039F",omid:"\u29B6",ominus:"\u2296",oopf:"\u{1D560}",Oopf:"\u{1D546}",opar:"\u29B7",OpenCurlyDoubleQuote:"\u201C",OpenCurlyQuote:"\u2018",operp:"\u29B9",oplus:"\u2295",or:"\u2228",Or:"\u2A54",orarr:"\u21BB",ord:"\u2A5D",order:"\u2134",orderof:"\u2134",ordf:"\xAA",ordm:"\xBA",origof:"\u22B6",oror:"\u2A56",orslope:"\u2A57",orv:"\u2A5B",oS:"\u24C8",oscr:"\u2134",Oscr:"\u{1D4AA}",oslash:"\xF8",Oslash:"\xD8",osol:"\u2298",otilde:"\xF5",Otilde:"\xD5",otimes:"\u2297",Otimes:"\u2A37",otimesas:"\u2A36",ouml:"\xF6",Ouml:"\xD6",ovbar:"\u233D",OverBar:"\u203E",OverBrace:"\u23DE",OverBracket:"\u23B4 Line truncated
`).forEach(r=>{r.match(Yrr)||r.match(Krr)||(e+=r)}),Buffer.from(e,"base64")}function Zrr(t,e="CERTIFICATE"){let i=t.toString("base64").match(/.{1,64}/g)||"";return[`-----BEGIN ${e}-----`,...i,`-----END ${e}-----`].join(`
`).concat(`
`)}});var x3=p(UA=>{"use strict";Object.defineProperty(UA,"__esModule",{value:!0});UA.SHA2_HASH_ALGOS=UA.RSA_SIGNATURE_ALGOS=UA.ECDSA_SIGNATURE_ALGOS=void 0;UA.ECDSA_SIGNATURE_ALGOS={"1.2.840.10045.4.3.1":"sha224","1.2.840.10045.4.3.2":"sha256","1.2.840.10045.4.3.3":"sha384","1.2.840.10045.4.3.4":"sha512"};UA.RSA_SIGNATURE_ALGOS={"1.2.840.113549.1.1.14":"sha224","1.2.840.113549.1.1.11":"sha256","1.2.840.113549.1.1.12":"sha384","1.2.840.113549.1.1.13":"sha512"};UA.SHA2_HASH_ALGOS={"2.16.840.1.101.3.4.2.1":"sha256","2.16.840.1.101.3.4.2.2":"sha384","2.16.840.1.101.3.4.2.3":"sha512"}});var $oe=p(_3=>{"use strict";Object.defineProperty(_3,"__esModule",{value:!0});_3.RFC3161TimestampVerificationError=void 0;var zoe=class extends Error{};_3.RFC3161TimestampVerificationError=zoe});var o9e=p(Eh=>{"use strict";var eir=Eh&&Eh.__createBinding||(Object.create?(function(t,e,r,i){i===void 0&&(i=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,i,n)}):(function(t,e,r,i){i===void 0&&(i=r),t[i]=e[r]})),tir=Eh&&Eh.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),rir=Eh&&Eh.__importStar||(function(){var t=function(e){return t=Object.getOwnPropertyNames||function(r){var i=[];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(i[i.length]=n);return i},t(e)};return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var i=t(e),n=0;n<i.length;n++)i[n]!=="default"&&eir(r,e,i[n]);return tir(r,e),r}})();Object.defineProperty(Eh,"__esModule",{value:!0});Eh.TSTInfo=void 0;var s9e=rir(rS()),iir=x3(),nir=$oe(),Woe=class{root;constructor(e){this.root=e}get version(){return this.root.subs[0].toInteger()}get genTime(){return this.root.subs[4].toDate()}get messageImprintHashAlgorithm(){let e=this.messageImprintObj.subs[0].subs[0].toOID();return iir.SHA2_HASH_ALGOS[e]}get messageImprintHashedMessage(){return this.messageImprintObj.subs[1].value}get raw(){return this.root.toDER()}verify(e){let r=s9e.digest(this.messageImprintHashAlgorithm,e);if(!s9e.bufferEqual(r,this.messageImprintHashedMessage))throw new nir.RFC3161TimestampVerificationError("message imprint does not match artifact")}get messageImprintObj(){return this.root.subs[2]}};Eh.TSTInfo=Woe});var c9e=p(bh=>{"use strict";var sir=bh&&bh.__createBinding||(Object.create?(function(t,e,r,i){i===void 0&&(i=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,i,n)}):(function(t,e,r,i){i===void 0&&(i=r),t[i]=e[r]})),oir=bh&&bh.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),air=bh&&bh.__importStar||(function(){var t=function(e){return t=Object.getOwnPropertyNames||function(r){var i=[];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(i[i.length]=n);return i},t(e)};return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var i=t(e),n=0;n<i.length;n++)i[n]!=="default"&&sir(r,e,i[n]);return oir(r,e),r}})();Object.defineProperty(bh,"__esModule",{value:!0});bh.RFC3161Timestamp=void 0;var cir=S3(),Joe=air(rS()),a9e=x3(),EN=$oe(),uir=o9e(),lir="1.2.840.113549.1.7.2",fir="1.2.840.113549.1.9.16.1.4",hir="1.2.840.113549.1.9.4",Yoe=class t{root;constructor(e){this.root=e}static parse(e){let r=cir.ASN1Obj.parseBuffer(e);return new t(r)}get status(){return this.pkiStatusInfoObj.subs[0].toInteger()}get contentType(){return this.contentTypeObj.toOID()}get eContentType(){return this.eContentTypeObj.toOID()}get signingTime(){return this.tstInfo.genTime}get signerIssuer(){return this.signerSidObj.subs[0].value}get signerSerialNumber(){return this.signerSidObj.subs[1].value}get signerDigestAlgorithm(){let e=this.signerDigestAlgorithmObj.subs[0].toOID();return a9e.SHA2_HASH_ALGOS[e]}get signatureAlgorithm(){let e=this.signatureAlgorithmObj.subs[0].toOID();return a9e.ECDSA_SIGNATURE_ALGOS[e]}get signatureValue(){return this.signatureValueObj.value}get tstInfo(){return new uir.TSTInfo(this.eContentObj.subs[0].subs[0])}verify(e,r){if(!this.timeStampTokenObj)throw new EN.RFC3161TimestampVerificationError("timeStampToken is missing");if(this.contentType!==lir)throw new EN.RFC3161TimestampVerificationError(`incorrect content type: ${this.contentType}`);if(this.eContentType!==fir)throw new EN.RFC3161TimestampVerificationError(`incorrect encapsulated content type: ${this.eContentType}`);this.tstInfo.verify(e),this.verifyMessageDigest(),this.verifySignature(r)}verifyMessageDigest(){let e=Joe.digest(this.signerDigestAlgorithm,this.tstInfo.raw),r=this.messageDigestAttributeObj.subs[1].subs[0].value;if(!Joe.bufferEqual(e,r))throw new EN.RFC3161TimestampVerificationError("signed data does not match tstInfo")}verifySignature(e){let r=this.signedAttrsObj.toD Line truncated
\v\f\r\x1B !"#$\u066A&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~\x7F\xB0\xB7\u2219\u221A\u2592\u2500\u2502\u253C\u2524\u252C\u251C\u2534\u2510\u250C\u2514\u2518\u03B2\u221E\u03C6\xB1\xBD\xBC\u2248\xAB\xBB\uFEF7\uFEF8\uFFFD\uFFFD\uFEFB\uFEFC\uFFFD\xA0\xAD\uFE82\xA3\xA4\uFE84\uFFFD\uFFFD\uFE8E\uFE8F\uFE95\uFE99\u060C\uFE9D\uFEA1\uFEA5\u0660\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\uFED1\u061B\uFEB1\uFEB5\uFEB9\u061F\xA2\uFE80\uFE81\uFE83\uFE85\uFECA\uFE8B\uFE8D\uFE91\uFE93\uFE97\uFE9B\uFE9F\uFEA3\uFEA7\uFEA9\uFEAB\uFEAD\uFEAF\uFEB3\uFEB7\uFEBB\uFEBF\uFEC1\uFEC5\uFECB\uFECF\xA6\xAC\xF7\xD7\uFEC9\u0640\uFED3\uFED7\uFEDB\uFEDF\uFEE3\uFEE7\uFEEB\uFEED\uFEEF\uFEF3\uFEBD\uFECC\uFECE\uFECD\uFEE1\uFE7D\u0651\uFEE5\uFEE9\uFEEC\uFEF0\uFEF2\uFED0\uFED5\uFEF5\uFEF6\uFEDD\uFED9\uFEF1\u25A0\uFFFD`},ibm864:"cp864",csibm864:"cp864",cp865:{type:"_sbcs",chars:"\xC7\xFC\xE9\xE2\xE4\xE0\xE5\xE7\xEA\xEB\xE8\xEF\xEE\xEC\xC4\xC5\xC9\xE6\xC6\xF4\xF6\xF2\xFB\xF9\xFF\xD6\xDC\xF8\xA3\xD8\u20A7\u0192\xE1\xED\xF3\xFA\xF1\xD1\xAA\xBA\xBF\u2310\xAC\xBD\xBC\xA1\xAB\xA4\u2591\u2592\u2593\u2502\u2524\u2561\u2562\u2556\u2555\u2563\u2551\u2557\u255D\u255C\u255B\u2510\u2514\u2534\u252C\u251C\u2500\u253C\u255E\u255F\u255A\u2554\u2569\u2566\u2560\u2550\u256C\u2567\u2568\u2564\u2565\u2559\u2558\u2552\u2553\u256B\u256A\u2518\u250C\u2588\u2584\u258C\u2590\u2580\u03B1\xDF\u0393\u03C0\u03A3\u03C3\xB5\u03C4\u03A6\u0398\u03A9\u03B4\u221E\u03C6\u03B5\u2229\u2261\xB1\u2265\u2264\u2320\u2321\xF7\u2248\xB0\u2219\xB7\u221A\u207F\xB2\u25A0\xA0"},ibm865:"cp865",csibm865:"cp865",cp866:{type:"_sbcs",chars:"\u0410\u0411\u0412\u0413\u0414\u0415\u0416\u0417\u0418\u0419\u041A\u041B\u041C\u041D\u041E\u041F\u0420\u0421\u0422\u0423\u0424\u0425\u0426\u0427\u0428\u0429\u042A\u042B\u042C\u042D\u042E\u042F\u0430\u0431\u0432\u0433\u0434\u0435\u0436\u0437\u0438\u0439\u043A\u043B\u043C\u043D\u043E\u043F\u2591\u2592\u2593\u2502\u2524\u2561\u2562\u2556\u2555\u2563\u2551\u2557\u255D\u255C\u255B\u2510\u2514\u2534\u252C\u251C\u2500\u253C\u255E\u255F\u255A\u2554\u2569\u2566\u2560\u2550\u256C\u2567\u2568\u2564\u2565\u2559\u2558\u2552\u2553\u256B\u256A\u2518\u250C\u2588\u2584\u258C\u2590\u2580\u0440\u0441\u0442\u0443\u0444\u0445\u0446\u0447\u0448\u0449\u044A\u044B\u044C\u044D\u044E\u044F\u0401\u0451\u0404\u0454\u0407\u0457\u040E\u045E\xB0\u2219\xB7\u221A\u2116\xA4\u25A0\xA0"},ibm866:"cp866",csibm866:"cp866",cp869:{type:"_sbcs",chars:"\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\u0386\uFFFD\xB7\xAC\xA6\u2018\u2019\u0388\u2015\u0389\u038A\u03AA\u038C\uFFFD\uFFFD\u038E\u03AB\xA9\u038F\xB2\xB3\u03AC\xA3\u03AD\u03AE\u03AF\u03CA\u0390\u03CC\u03CD\u0391\u0392\u0393\u0394\u0395\u0396\u0397\xBD\u0398\u0399\xAB\xBB\u2591\u2592\u2593\u2502\u2524\u039A\u039B\u039C\u039D\u2563\u2551\u2557\u255D\u039E\u039F\u2510\u2514\u2534\u252C\u251C\u2500\u253C\u03A0\u03A1\u255A\u2554\u2569\u2566\u2560\u2550\u256C\u03A3\u03A4\u03A5\u03A6\u03A7\u03A8\u03A9\u03B1\u03B2\u03B3\u2518\u250C\u2588\u2584\u03B4\u03B5\u2580\u03B6\u03B7\u03B8\u03B9\u03BA\u03BB\u03BC\u03BD\u03BE\u03BF\u03C0\u03C1\u03C3\u03C2\u03C4\u0384\xAD\xB1\u03C5\u03C6\u03C7\xA7\u03C8\u0385\xB0\xA8\u03C9\u03CB\u03B0\u03CE\u25A0\xA0"},ibm869:"cp869",csibm869:"cp869",cp922:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\xA1\xA2\xA3\xA4\xA5\xA6\xA7\xA8\xA9\xAA\xAB\xAC\xAD\xAE\u203E\xB0\xB1\xB2\xB3\xB4\xB5\xB6\xB7\xB8\xB9\xBA\xBB\xBC\xBD\xBE\xBF\xC0\xC1\xC2\xC3\xC4\xC5\xC6\xC7\xC8\xC9\xCA\xCB\xCC\xCD\xCE\xCF\u0160\xD1\xD2\xD3\xD4\xD5\xD6\xD7\xD8\xD9\xDA\xDB\xDC\xDD\u017D\xDF\xE0\xE1\xE2\xE3\xE4\xE5\xE6\xE7\xE8\xE9\xEA\xEB\xEC\xED\xEE\xEF\u0161\xF1\xF2\xF3\xF4\xF5\xF6\xF7\xF8\xF9\xFA\xFB\xFC\xFD\u017E\xFF"},ibm922:"cp922",csibm922:"cp922",cp1046:{type:"_sbcs",chars:"\uFE88\xD7\xF7\uF8F6\uF8F5\uF8F4\uF8F7\uFE71\x88\u25A0\u2502\u2500\u2510\u250C\u2514\u2518\uFE79\uFE7B\uFE7D\uFE7F\uFE77\uFE8A\uFEF0\uFEF3\uFEF2\uFECE\uFECF\uFED0\uFEF6\uFEF8\uFEFA\uFEFC\xA0\uF8FA\uF8F9\uF8F8\xA4\uF8FB\uFE8B\uFE91\uFE97\uFE9B\uFE9F\uFEA3\u060C\xAD\uFEA7\uFEB3\u0660\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\uFEB7\u061B\uFEBB\uFEBF\uFECA\u061F\uFECB\u0621\u0622\u0623\u0624\u0625\u0626\u0627\u0628\u0629\u062A\u062B\u062C\u062D\u062E\u062F\u0630\u0631\u0632\u0633\u0634\u0635\u0636\u0637\uFEC7\u0639\u063A\uFECC\uFE82\uFE84\uFE8E\uFED3\u0640\u0641\u0642\u0643\u0644\u0645\u0646\u0647\u0648\u0649\u064A\u064B\u064C\u064D\u064E\u064F\u0650\u0651\u0652\uFED7\uFEDB\uFEDF\uF8FC\uFEF5\uFEF7\uFEF9\uFEFB\uFEE3\uFEE7\uFEEC\uFEE9\uFFFD"},ibm1046:"cp1046",csibm1046:"cp1046",cp1124:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\u0401\u0402\u0490\u0404\u0405\u0406\u0407\u0408\u0409\u040A\u040B\u040C\xAD\u040E\u040F\u0410\u0411\u0412\u0413\u0414\u0415\u0416\u0417\u0418\u0419\u041A\u041B\u041C\u041D\u041E\u041FLine truncated
\v\f\r\u1EE8\u1EF0\u1EF2\u1EF6\u1EF8\xDD\u1EF4\x1B !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~\x7F\xC0\u1EA2\xC3\xC1\u1EA0\u1EB6\u1EAC\xC8\u1EBA\u1EBC\xC9\u1EB8\u1EC6\xCC\u1EC8\u0128\xCD\u1ECA\xD2\u1ECE\xD5\xD3\u1ECC\u1ED8\u1EDC\u1EDE\u1EE0\u1EDA\u1EE2\xD9\u1EE6\u0168\xA0\u0102\xC2\xCA\xD4\u01A0\u01AF\u0110\u0103\xE2\xEA\xF4\u01A1\u01B0\u0111\u1EB0\u0300\u0309\u0303\u0301\u0323\xE0\u1EA3\xE3\xE1\u1EA1\u1EB2\u1EB1\u1EB3\u1EB5\u1EAF\u1EB4\u1EAE\u1EA6\u1EA8\u1EAA\u1EA4\u1EC0\u1EB7\u1EA7\u1EA9\u1EAB\u1EA5\u1EAD\xE8\u1EC2\u1EBB\u1EBD\xE9\u1EB9\u1EC1\u1EC3\u1EC5\u1EBF\u1EC7\xEC\u1EC9\u1EC4\u1EBE\u1ED2\u0129\xED\u1ECB\xF2\u1ED4\u1ECF\xF5\xF3\u1ECD\u1ED3\u1ED5\u1ED7\u1ED1\u1ED9\u1EDD\u1EDF\u1EE1\u1EDB\u1EE3\xF9\u1ED6\u1EE7\u0169\xFA\u1EE5\u1EEB\u1EED\u1EEF\u1EE9\u1EF1\u1EF3\u1EF7\u1EF9\xFD\u1EF5\u1ED0`},georgianacademy:{type:"_sbcs",chars:"\x80\x81\u201A\u0192\u201E\u2026\u2020\u2021\u02C6\u2030\u0160\u2039\u0152\x8D\x8E\x8F\x90\u2018\u2019\u201C\u201D\u2022\u2013\u2014\u02DC\u2122\u0161\u203A\u0153\x9D\x9E\u0178\xA0\xA1\xA2\xA3\xA4\xA5\xA6\xA7\xA8\xA9\xAA\xAB\xAC\xAD\xAE\xAF\xB0\xB1\xB2\xB3\xB4\xB5\xB6\xB7\xB8\xB9\xBA\xBB\xBC\xBD\xBE\xBF\u10D0\u10D1\u10D2\u10D3\u10D4\u10D5\u10D6\u10D7\u10D8\u10D9\u10DA\u10DB\u10DC\u10DD\u10DE\u10DF\u10E0\u10E1\u10E2\u10E3\u10E4\u10E5\u10E6\u10E7\u10E8\u10E9\u10EA\u10EB\u10EC\u10ED\u10EE\u10EF\u10F0\u10F1\u10F2\u10F3\u10F4\u10F5\u10F6\xE7\xE8\xE9\xEA\xEB\xEC\xED\xEE\xEF\xF0\xF1\xF2\xF3\xF4\xF5\xF6\xF7\xF8\xF9\xFA\xFB\xFC\xFD\xFE\xFF"},georgianps:{type:"_sbcs",chars:"\x80\x81\u201A\u0192\u201E\u2026\u2020\u2021\u02C6\u2030\u0160\u2039\u0152\x8D\x8E\x8F\x90\u2018\u2019\u201C\u201D\u2022\u2013\u2014\u02DC\u2122\u0161\u203A\u0153\x9D\x9E\u0178\xA0\xA1\xA2\xA3\xA4\xA5\xA6\xA7\xA8\xA9\xAA\xAB\xAC\xAD\xAE\xAF\xB0\xB1\xB2\xB3\xB4\xB5\xB6\xB7\xB8\xB9\xBA\xBB\xBC\xBD\xBE\xBF\u10D0\u10D1\u10D2\u10D3\u10D4\u10D5\u10D6\u10F1\u10D7\u10D8\u10D9\u10DA\u10DB\u10DC\u10F2\u10DD\u10DE\u10DF\u10E0\u10E1\u10E2\u10F3\u10E3\u10E4\u10E5\u10E6\u10E7\u10E8\u10E9\u10EA\u10EB\u10EC\u10ED\u10EE\u10F4\u10EF\u10F0\u10F5\xE6\xE7\xE8\xE9\xEA\xEB\xEC\xED\xEE\xEF\xF0\xF1\xF2\xF3\xF4\xF5\xF6\xF7\xF8\xF9\xFA\xFB\xFC\xFD\xFE\xFF"},pt154:{type:"_sbcs",chars:"\u0496\u0492\u04EE\u0493\u201E\u2026\u04B6\u04AE\u04B2\u04AF\u04A0\u04E2\u04A2\u049A\u04BA\u04B8\u0497\u2018\u2019\u201C\u201D\u2022\u2013\u2014\u04B3\u04B7\u04A1\u04E3\u04A3\u049B\u04BB\u04B9\xA0\u040E\u045E\u0408\u04E8\u0498\u04B0\xA7\u0401\xA9\u04D8\xAB\xAC\u04EF\xAE\u049C\xB0\u04B1\u0406\u0456\u0499\u04E9\xB6\xB7\u0451\u2116\u04D9\xBB\u0458\u04AA\u04AB\u049D\u0410\u0411\u0412\u0413\u0414\u0415\u0416\u0417\u0418\u0419\u041A\u041B\u041C\u041D\u041E\u041F\u0420\u0421\u0422\u0423\u0424\u0425\u0426\u0427\u0428\u0429\u042A\u042B\u042C\u042D\u042E\u042F\u0430\u0431\u0432\u0433\u0434\u0435\u0436\u0437\u0438\u0439\u043A\u043B\u043C\u043D\u043E\u043F\u0440\u0441\u0442\u0443\u0444\u0445\u0446\u0447\u0448\u0449\u044A\u044B\u044C\u044D\u044E\u044F"},viscii:{type:"_sbcs",chars:`\0\u1EB2\u1EB4\u1EAA\x07\b
\v\f\r\u1EF6\u1EF8\x1B\u1EF4 !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~\x7F\u1EA0\u1EAE\u1EB0\u1EB6\u1EA4\u1EA6\u1EA8\u1EAC\u1EBC\u1EB8\u1EBE\u1EC0\u1EC2\u1EC4\u1EC6\u1ED0\u1ED2\u1ED4\u1ED6\u1ED8\u1EE2\u1EDA\u1EDC\u1EDE\u1ECA\u1ECE\u1ECC\u1EC8\u1EE6\u0168\u1EE4\u1EF2\xD5\u1EAF\u1EB1\u1EB7\u1EA5\u1EA7\u1EA9\u1EAD\u1EBD\u1EB9\u1EBF\u1EC1\u1EC3\u1EC5\u1EC7\u1ED1\u1ED3\u1ED5\u1ED7\u1EE0\u01A0\u1ED9\u1EDD\u1EDF\u1ECB\u1EF0\u1EE8\u1EEA\u1EEC\u01A1\u1EDB\u01AF\xC0\xC1\xC2\xC3\u1EA2\u0102\u1EB3\u1EB5\xC8\xC9\xCA\u1EBA\xCC\xCD\u0128\u1EF3\u0110\u1EE9\xD2\xD3\xD4\u1EA1\u1EF7\u1EEB\u1EED\xD9\xDA\u1EF9\u1EF5\xDD\u1EE1\u01B0\xE0\xE1\xE2\xE3\u1EA3\u0103\u1EEF\u1EAB\xE8\xE9\xEA\u1EBB\xEC\xED\u0129\u1EC9\u0111\u1EF1\xF2\xF3\xF4\xF5\u1ECF\u1ECD\u1EE5\xF9\xFA\u0169\u1EE7\xFD\u1EE3\u1EEE`},iso646cn:{type:"_sbcs",chars:`\0\x07\b
\v\f\r\x1B !"#\xA5%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}\u203E\x7F\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD`},iso646jp:{type:"_sbcs",chars:`\0\x07\b
\v\f\r\x1B !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\xA5]^_\`abcdefghijklmnopqrstuvwxyz{|}\u203E\x7F\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD`},hproman8:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\xC0\xC2\xC8\xCA\xCB\xCE\xCF\xB4\u02CB\u02C6\xA8\u02DC\xD9\xDB\u20A4\xAF\xDD\xFD\xB0\xC7\xE7\xD1\xF1\xA1\xBF\xA4\xA3\xA5\xA7\u0192\xA2\xE2\xEA\xF4\xFB\xE1\xE9\xF3\xFA\xE0\xE8\xF2\xF9\xE4\xEB\xF6\xFC\xC5\xEE\xD8\xC6\xE5\xED\xF8\xE6\xC4\xEC\xD6\xDC\xC9\xEF\xDF\xD4\xC1\xC3\xE3\xD0\xF0\xCD\xCC\xD3\xD2\xD5\xF5\u0160\u0161\xDA\u0178\xFF\xDE\xFE\xB7\xB5\xB6\xBE\u2014\xBC\xBD\xAA\xBA\xAB\u25A0\xBB\xB1\uFFFD"},macintosh:{type:"_sbcs",chars:"\xC4\xC5\xC7\xC9\xD1\xD6\xDC\xE1\xE0\xE2\xE4\xE3\xE5\xE7\xE9\xE8\xEA\xEB\xED\xEC\xEE\xEF\xF1\xF3\xF2\xF4\xF6\xF5\xFA\xF9\xFB\xFC\u2020\xB0\xA2\xA3\xA7\u2022\xB6\xDF\xAE\xA9\u2122\xB4\xA8\u2260\xC6\xD8\u221E\xB1\u2264\u2265\xA5\xB5\u2202\u2211\u220F\u03C0\u222B\xAA\xBA\u2126\xE6\xF8\xBF\xA1\xAC\u221A\u0192\u2248\u2206\xAB\xBB\u2026\xA0\xC0\xC3\xD5\u0152\u0153\u2013\u2014\u201C\u201D\u2018\u2019\xF7\u25CA\xFF\u0178\u2044\xA4\u2039\u203A\uFB01\uFB02\u2021\xB7\u201A\u201E\u2030\xC2\xCA\xC1\xCB\xC8\xCD\xCE\xCF\xCC\xD3\xD4\uFFFD\xD2\xDA\xDB\xD9\u0131\u02C6\u02DC\xAF\u02D8\u02D9\u02DA\xB8\u02DD\u02DB\u02C7"},ascii:{type:"_sbcs",chars:"\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD"},tis620:{type:"_sbcs",chars:"\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\u0E01\u0E02\u0E03\u0E04\u0E05\u0E06\u0E07\u0E08\u0E09\u0E0A\u0E0B\u0E0C\u0E0D\u0E0E\u0E0F\u0E10\u0E11\u0E12\u0E13\u0E14\u0E15\u0E16\u0E17\u0E18\u0E19\u0E1A\u0E1B\u0E1C\u0E1D\u0E1E\u0E1F\u0E20\u0E21\u0E22\u0E23\u0E24\u0E25\u0E26\u0E27\u0E28\u0E29\u0E2A\u0E2B\u0E2C\u0E2D\u0E2E\u0E2F\u0E30\u0E31\u0E32\u0E33\u0E34\u0E35\u0E36\u0E37\u0E38\u0E39\u0E3A\uFFFD\uFFFD\uFFFD\uFFFD\u0E3F\u0E40\u0E41\u0E42\u0E43\u0E44\u0E45\u0E46\u0E47\u0E48\u0E49\u0E4A\u0E4B\u0E4C\u0E4D\u0E4E\u0E4F\u0E50\u0E51\u0E52\u0E53\u0E54\u0E55\u0E56\u0E57\u0E58\u0E59\u0E5A\u0E5B\uFFFD\uFFFD\uFFFD\uFFFD"}}});var v$e=p(B$e=>{"use strict";var Pce=Ep().Buffer;B$e._dbcs=bp;var ls=-1,S$e=-2,Bu=-10,Oo=-1e3,pS=new Array(256),LN=-1;for(h4=0;h4<256;h4++)pS[h4]=ls;var h4;function bp(t,e){if(this.encodingName=t.encodingName,!t)throw new Error("DBCS codec is called without the data.");if(!t.table)throw new Error("Encoding '"+this.encodingName+"' has no data.");var r=t.table();this.decodeTables=[],this.decodeTables[0]=pS.slice(0),this.decodeTableSeq=[];for(var i=0;i<r.length;i++)this._addDecodeChunk(r[i]);if(typeof t.gb18030=="function"){this.gb18030=t.gb18030();var n=this.decodeTables.length;this.decodeTables.push(pS.slice(0));var s=this.decodeTables.length;this.decodeTables.push(pS.slice(0));for(var o=this.decodeTables[0],i=129;i<=254;i++)for(var a=this.decodeTables[Oo-o[i]],c=48;c<=57;c++){if(a[c]===ls)a[c]=Oo-n;else if(a[c]>Oo)throw new Error("gb18030 decode tables conflict at byte 2");for(var u=this.decodeTables[Oo-a[c]],l=129;l<=254;l++){if(u[l]===ls)u[l]=Oo-s;else{if(u[l]===Oo-s)continue;if(u[l]>Oo)throw new Error("gb18030 decode tables conflict at byte 3")}for(var f=this.decodeTables[Oo-u[l]],h=48;h<=57;h++)f[h]===ls&&(f[h]=S$e)}}}this.defaultCharUnicode=e.defaultCharUnicode,this.encodeTable=[],this.encodeTableSeq=[];var d={};if(t.encodeSkipVals)for(var i=0;i<t.encodeSkipValLine truncated
Wanted: ${this.expectedSize}
Found: ${this.size}`);i.code="EBADSIZE",i.found=this.size,i.expected=this.expectedSize,i.sri=this.sri,this.emit("error",i)}else if(this.sri&&!r){let i=new Error(`${this.sri} integrity checksum failed when using ${this.algorithm}: wanted ${this.digests} but got ${e}. (${this.size} bytes)`);i.code="EINTEGRITY",i.found=e,i.expected=this.digests,i.algorithm=this.algorithm,i.sri=this.sri,this.emit("error",i)}else this.#t=this.size,this.emit("size",this.size),this.#e=e,this.emit("integrity",e),r&&(this.#i=r,this.emit("verified",r))}},Bp=class{get isHash(){return!0}constructor(e,r){let i=r?.strict;this.source=e.trim(),this.digest="",this.algorithm="",this.options=[];let n=this.source.match(i?Aor:mor);if(!n||i&&!nue.includes(n[1]))return;this.algorithm=n[1],this.digest=n[2];let s=n[3];s&&(this.options=s.slice(1).split("?"))}hexDigest(){return this.digest&&Buffer.from(this.digest,"base64").toString("hex")}toJSON(){return this.toString()}match(e,r){let i=gc(e,r);if(!i)return!1;if(i.isIntegrity){let n=i.pickAlgorithm(r,[this.algorithm]);if(!n)return!1;let s=i[n].find(o=>o.digest===this.digest);return s||!1}return i.digest===this.digest?i:!1}toString(e){return e?.strict&&!(nue.includes(this.algorithm)&&this.digest.match(por)&&this.options.every(r=>r.match(gor)))?"":`${this.algorithm}-${this.digest}${VN(this.options)}`}};function PWe(t,e,r,i){let n=t!=="",s=!1,o="",a=i.length-1;for(let u=0;u<a;u++){let l=Bp.prototype.toString.call(i[u],r);l&&(s=!0,o+=l,o+=e)}let c=Bp.prototype.toString.call(i[a],r);return c&&(s=!0,o+=c),n&&s?t+e+o:t+o}var a0=class{get isIntegrity(){return!0}toJSON(){return this.toString()}isEmpty(){return Object.keys(this).length===0}toString(e){let r=e?.sep||" ",i="";if(e?.strict){r=r.replace(/\S+/g," ");for(let n of nue)this[n]&&(i=PWe(i,r,e,this[n]))}else for(let n of Object.keys(this))i=PWe(i,r,e,this[n]);return i}concat(e,r){let i=typeof e=="string"?e:HN(e,r);return gc(`${this.toString(r)} ${i}`,r)}hexDigest(){return gc(this,{single:!0}).hexDigest()}merge(e,r){let i=gc(e,r);for(let n in i)if(this[n]){if(!this[n].find(s=>i[n].find(o=>s.digest===o.digest)))throw new Error("hashes do not match, cannot update integrity")}else this[n]=i[n]}match(e,r){let i=gc(e,r);if(!i)return!1;let n=i.pickAlgorithm(r,Object.keys(this));return!!n&&this[n]&&i[n]&&this[n].find(s=>i[n].find(o=>s.digest===o.digest))||!1}pickAlgorithm(e,r){let i=e?.pickAlgorithm||Bor,n=Object.keys(this).filter(s=>r?.length?r.includes(s):!0);return n.length?n.reduce((s,o)=>i(s,o)||s):null}};Rh.exports.parse=gc;function gc(t,e){if(!t)return null;if(typeof t=="string")return iue(t,e);if(t.algorithm&&t.digest){let r=new a0;return r[t.algorithm]=[t],iue(HN(r,e),e)}else return iue(HN(t,e),e)}function iue(t,e){if(e?.single)return new Bp(t,e);let r=t.trim().split(/\s+/).reduce((i,n)=>{let s=new Bp(n,e);if(s.algorithm&&s.digest){let o=s.algorithm;i[o]||(i[o]=[]),i[o].push(s)}return i},new a0);return r.isEmpty()?null:r}Rh.exports.stringify=HN;function HN(t,e){return t.algorithm&&t.digest?Bp.prototype.toString.call(t,e):typeof t=="string"?HN(gc(t,e),e):a0.prototype.toString.call(t,e)}Rh.exports.fromHex=yor;function yor(t,e,r){let i=VN(r?.options);return gc(`${e}-${Buffer.from(t,"hex").toString("base64")}${i}`,r)}Rh.exports.fromData=Eor;function Eor(t,e){let r=e?.algorithms||[...oue],i=VN(e?.options);return r.reduce((n,s)=>{let o=jN.createHash(s).update(t).digest("base64"),a=new Bp(`${s}-${o}${i}`,e);if(a.algorithm&&a.digest){let c=a.algorithm;n[c]||(n[c]=[]),n[c].push(a)}return n},new a0)}Rh.exports.fromStream=bor;function bor(t,e){let r=aue(e);return new Promise((i,n)=>{t.pipe(r),t.on("error",n),r.on("error",n);let s;r.on("integrity",o=>{s=o}),r.on("end",()=>i(s)),r.resume()})}Rh.exports.checkData=wor;function wor(t,e,r){if(e=gc(e,r),!e||!Object.keys(e).length){if(r?.error)throw Object.assign(new Error("No valid integrity hashes to check against"),{code:"EINTEGRITY"});return!1}let i=e.pickAlgorithm(r),n=jN.createHash(i).update(t).digest("base64"),s=gc({algorithm:i,digest:n}),o=s.match(e,r);if(r=r||{},o||!r.error)return o;if(typeof r.size=="number"&&t.length!==r.size){let a=new Error(`data size mismatch when checking ${e}.
Wanted: ${r.size}
Found: ${t.length}`);throw a.code="EBADSIZE",a.found=t.length,a.expected=r.size,a.sri=e,a}else{let a=new Error(`Integrity checksum failed when using ${i}: Wanted ${e}, but got ${s}. (${t.length} bytes)`);throw a.code="EINTEGRITY",a.found=s,a.expected=e,a.algorithm=i,a.sri=e,a}}Rh.exports.checkStream=Cor;function Cor(t,e,r){if(r=r||Object.create(null),r.integrity=e,e=gc(e,r),!e||!Object.keys(e).length)return Promise.reject(Object.assign(new Error("No valid integrity hashes to check against"),{code:"EINTEGRITY"}));let i=aue(r);return new Promise((n,s)=>{t.pipe(i),t.on("error",s),i.on("error",s);let o;i.on("verified",a=>{o=a}),i.on("end",()=>n(o)),i.resume()})}Rh.exports.integrityStream=aue;function aue(t=Object.create(null)){return new sue(t)}Rh.exports.create=Ior;function Ior(t){let e=t?.algorithms||[...oue],r=VN(t?.options),i=e.map(jN.createHash);return{update:function(n,s){return i.forEach(o=>o.update(n,s)),this},digest:function(){return e.reduce((s,o)=>{let a=i.shift().digest("base64"),c=new Bp(`${o}-${a}${r}`,t);if(c.algorithm&&c.digest){let u=c.algorithm;s[u]||(s[u]=[]),s[u].push(c)}return s},new a0)}}}var Sor=jN.getHashes(),kWe=["md5","whirlpool","sha1","sha224","sha256","sha384","sha512","sha3","sha3-256","sha3-384","sha3-512","sha3_256","sha3_384","sha3_512"].filter(t=>Sor.includes(t));function Bor(t,e){return kWe.indexOf(t.toLowerCase())>=kWe.indexOf(e.toLowerCase())?t:e}});var uue=p((kii,UWe)=>{var QWe=Yce(),LWe=rue(),vor=Th(),FWe={shared:!1,ignoreCargoCult:!0},xor={status:200,headers:{}},yS=t=>{let e={method:t.method,url:t.url,headers:{},compress:t.compress};return t.headers.forEach((r,i)=>{e.headers[i]=r}),e},MWe=t=>{let e={status:t.status,headers:{}};return t.headers.forEach((r,i)=>{e.headers[i]=r}),e},cue=class{constructor({entry:e,request:r,response:i,options:n}){this.entry=e,this.request=yS(r),this.response=MWe(i),this.options=n,this.policy=new QWe(this.request,this.response,FWe),this.entry&&(this.policy._responseTime=this.entry.metadata.time)}static storable(e,r){return!r.cachePath||r.cache==="no-store"||!["GET","HEAD"].includes(e.method)?!1:new QWe(yS(e),xor,FWe).storable()}satisfies(e){let r=yS(e);if(this.request.headers.host!==r.headers.host||this.request.compress!==r.compress)return!1;let i=new LWe(this.request),n=new LWe(r);return JSON.stringify(i.mediaTypes())!==JSON.stringify(n.mediaTypes())||JSON.stringify(i.languages())!==JSON.stringify(n.languages())||JSON.stringify(i.encodings())!==JSON.stringify(n.encodings())?!1:this.options.integrity?vor.parse(this.options.integrity).match(this.entry.integrity):!0}storable(){return this.policy.storable()}get mustRevalidate(){return!!this.policy._rescc["must-revalidate"]}needsRevalidation(e){let r=yS(e);return r.method="GET",!this.policy.satisfiesWithoutRevalidation(r)}responseHeaders(){return this.policy.responseHeaders()}revalidationHeaders(e){let r=yS(e);return this.policy.revalidationHeaders(r)}revalidated(e,r){let i=yS(e),n=MWe(r);return!this.policy.revalidatedPolicy(i,n).modified}};UWe.exports=cue});var GWe=p((Qii,qWe)=>{var lue=class extends Error{constructor(e){super(`request to ${e} failed: cache mode is 'only-if-cached' but no cached response is available.`),this.code="ENOTCACHED"}};qWe.exports={NotCachedError:lue}});var XWe=p((Lii,KWe)=>{"use strict";var HWe=typeof process=="object"&&process?process:{stdout:null,stderr:null},_or=require("events"),jWe=require("stream"),VWe=require("string_decoder").StringDecoder,vp=Symbol("EOF"),xp=Symbol("maybeEmitEnd"),WA=Symbol("emittedEnd"),v4=Symbol("emittingEnd"),zN=Symbol("emittedError"),x4=Symbol("closed"),zWe=Symbol("read"),_4=Symbol("flush"),$We=Symbol("flushChunk"),wa=Symbol("encoding"),_p=Symbol("decoder"),R4=Symbol("flowing"),$N=Symbol("paused"),ES=Symbol("resume"),Un=Symbol("bufferLength"),fue=Symbol("bufferPush"),hue=Symbol("bufferShift"),Hs=Symbol("objectMode"),js=Symbol("destroyed"),due=Symbol("emitData"),WWe=Symbol("emitEnd"),pue=Symbol("emitEnd2"),Rp=Symbol("async"),WN=t=>Promise.resolve().then(t),JWe=global._MP_NO_ITERATOR_SYMBOLS_!=="1",Ror=JWe&&Symbol.asyncIterator||Symbol("asyncIterator not implemented"),Tor=JWe&&Symbol.iterator||Symbol("iterator not implemented"),Nor=t=>t==="end"||t==="finish"||t==="prefinish",Dor=t=>t instanceof ArrayBuffer||typeof t=="object"&&t.constructor&&t.constructor.name==="ArrayBuffer"&&t.byteLength>=0,Oor=t=>!Buffer.isBuffer(t)&&ArrayBuffer.isView(t),T4=class{constructor(e,r,i){this.src=e,this.dest=r,this.opts=i,this.ondrain=()=>e[ES](),r.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},mue=class extends T4{unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(e,r,i){super(e,r,i),this.proxyErrors=n=>r.emit("error",n),e.on("error",this.proxyErrors)}};KWe.exports=class YWe extends jWe{constructor(e){super(),this[R4]=!1,this[$N]=!1,this.pipes=[],this.buffer=[],this[Hs]=e&&e.objectMode||!1,this[Hs]?this[wa]=null:this[wa]=e& Line truncated
`+o.map(h=>{let d=JSON.stringify(h);return`${t5(d)} ${d}`}).join(`
`),c=async()=>{let h=ffr(Dh.join(t,"tmp"),i.tmpPrefix);return await lle(Dh.dirname(h),{recursive:!0}),{target:h,moved:!1}},u=async h=>{if(!h.moved)return cKe(h.target,{recursive:!0,force:!0})},l=async h=>{await cfr(h.target,a,{flag:"wx"}),await lle(Dh.dirname(n),{recursive:!0}),await mfr(h.target,n),h.moved=!0},f=await c();try{await l(f)}finally{await u(f)}return o.reverse().map(h=>r5(t,h,!0))}Ec.exports.insert=uKe;async function uKe(t,e,r,i={}){let{metadata:n,size:s,time:o}=i,a=f1(t,e),c={key:e,integrity:r&&lfr.stringify(r),time:o||Date.now(),size:s,metadata:n};try{await lle(Dh.dirname(a),{recursive:!0});let u=JSON.stringify(c);await sfr(a,`
${t5(u)} ${u}`)}catch(u){if(u.code==="ENOENT")return;throw u}return r5(t,c)}Ec.exports.find=gfr;async function gfr(t,e){let r=f1(t,e);try{return(await e5(r)).reduce((n,s)=>s&&s.key===e?r5(t,s):n,null)}catch(i){if(i.code==="ENOENT")return null;throw i}}Ec.exports.delete=yfr;function yfr(t,e,r={}){if(!r.removeFully)return uKe(t,e,null,r);let i=f1(t,e);return cKe(i,{recursive:!0,force:!0})}Ec.exports.lsStream=lKe;function lKe(t){let e=fle(t),r=new ufr({objectMode:!0});return Promise.resolve().then(async()=>{let{default:i}=await Promise.resolve().then(()=>(Z4(),X4)),n=await ule(e);return await i(n,async s=>{let o=Dh.join(e,s),a=await ule(o);await i(a,async c=>{let u=Dh.join(o,c),l=await ule(u);await i(l,async f=>{let h=Dh.join(u,f);try{let m=(await e5(h)).reduce((A,y)=>(A.set(y.key,y),A),new Map);for(let A of m.values()){let y=r5(t,A);y&&r.write(y)}}catch(d){if(d.code==="ENOENT")return;throw d}},{concurrency:cle})},{concurrency:cle})},{concurrency:cle}),r.end(),r}).catch(i=>r.emit("error",i)),r}Ec.exports.ls=Efr;async function Efr(t){return(await lKe(t).collect()).reduce((r,i)=>(r[i.key]=i,r),{})}Ec.exports.bucketEntries=e5;async function e5(t,e){let r=await ofr(t,"utf8");return bfr(r,e)}function bfr(t){let e=[];return t.split(`
`).forEach(r=>{if(!r)return;let i=r.split(" ");if(!i[1]||t5(i[1])!==i[0])return;let n;try{n=JSON.parse(i[1])}catch{}n&&e.push(n)}),e}Ec.exports.bucketDir=fle;function fle(t){return Dh.join(t,`index-v${pfr}`)}Ec.exports.bucketPath=f1;function f1(t,e){let r=fKe(e);return Dh.join.apply(Dh,[fle(t)].concat(dfr(r)))}Ec.exports.hashKey=fKe;function fKe(t){return hKe(t,"sha256")}Ec.exports.hashEntry=t5;function t5(t){return hKe(t,"sha1")}function hKe(t,e){return nfr.createHash(e).update(t).digest("hex")}function r5(t,e,r){return!e.integrity&&!r?null:{key:e.key,integrity:e.integrity,path:e.integrity?hfr(t,e.integrity):void 0,size:e.size,time:e.time,metadata:e.metadata}}function ule(t){return afr(t).catch(e=>{if(e.code==="ENOENT"||e.code==="ENOTDIR")return[];throw e})}});var NS=p(n5=>{"use strict";Object.defineProperty(n5,"__esModule",{value:!0});n5.LRUCache=void 0;var wfr=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,pKe=new Set,hle=typeof process=="object"&&process?process:{},mKe=(t,e,r,i)=>{typeof hle.emitWarning=="function"?hle.emitWarning(t,e,r,i):console.error(`[${r}] ${e}: ${t}`)},i5=globalThis.AbortController,dKe=globalThis.AbortSignal;if(typeof i5>"u"){dKe=class{onabort;_onabort=[];reason;aborted=!1;addEventListener(i,n){this._onabort.push(n)}},i5=class{constructor(){e()}signal=new dKe;abort(i){if(!this.signal.aborted){this.signal.reason=i,this.signal.aborted=!0;for(let n of this.signal._onabort)n(i);this.signal.onabort?.(i)}}};let t=hle.env?.LRU_CACHE_IGNORE_AC_WARNING!=="1",e=()=>{t&&(t=!1,mKe("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.","NO_ABORT_CONTROLLER","ENOTSUP",e))}}var Cfr=t=>!pKe.has(t),YA=t=>t&&t===Math.floor(t)&&t>0&&isFinite(t),AKe=t=>YA(t)?t<=Math.pow(2,8)?Uint8Array:t<=Math.pow(2,16)?Uint16Array:t<=Math.pow(2,32)?Uint32Array:t<=Number.MAX_SAFE_INTEGER?TS:null:null,TS=class extends Array{constructor(e){super(e),this.fill(0)}},dle=class t{heap;length;static#e=!1;static create(e){let r=AKe(e);if(!r)return[];t.#e=!0;let i=new t(e,r);return t.#e=!1,i}constructor(e,r){if(!t.#e)throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new r(e),this.length=0}push(e){this.heap[this.length++]=e}pop(){return this.heap[--this.length]}},ple=class t{#e;#t;#i;#r;#n;#s;#l;#u;get perf(){return this.#u}ttl;ttlResolution;ttlAutopurge;updateAgeOnGet;updateAgeOnHas;allowStale;noDisposeOnSet;noUpdateTTL;maxEntrySize;sizeCalculation;noDeleteOnFetchRejection;noDeleteOnStaleGet;allowStaleOnFetchAbort;allowStaleOnFetchRejection;ignoreFetchAbort;#a;#c;#h;#d;#f;#m;#b;#A;#w;#v;#y;#C;#x;#p;#I;#_;#E;#o;static unsafeExposeInternals(e){return{starts:e.#x,ttls:e.#p,sizes:e.#C,keyMap:e.#h,keyList:e.#d,valList:e.#f,next:e.#m,prev:e.#b,get head(){return e.#A},get tail(){return e.#w},free:e.#v,isBackgroundFetch:r=>e.#S(r),backgroundFetch:(r,i,n,s)=>e.#j(r,i,n,s),moveToTail:r=>e.#q(r),indexes:r=>e.#O(r),rindexes:r=>e.#g(r),isStale:r=>e.#T(r)}}get max(){return this.#e}get maxSize(){return this.#t}get calculatedSize(){return this.#c}get size(){return this.#a}get fetchMethod(){return this.#s}get memoMethod(){return this.#l}get dispose(){return this.#i}get onInsert(){return this.#r}get disposeAfter(){return this.#n}constructor(e){let{max:r=0,ttl:i,ttlResolution:n=1,ttlAutopurge:s,updateAgeOnGet:o,updateAgeOnHas:a,allowStale:c,dispose:u,onInsert:l,disposeAfter:f,noDisposeOnSet:h,noUpdateTTL:d,maxSize:m=0,maxEntrySize:A=0,sizeCalculation:y,fetchMethod:g,memoMethod:E,noDeleteOnFetchRejection:C,noDeleteOnStaleGet:S,allowStaleOnFetchRejection:N,allowStaleOnFetchAbort:Q,ignoreFetchAbort:T,perf:G}=e;if(G!==void 0&&typeof G?.now!="function")throw new TypeError("perf option must have a now() method if specified");if(this.#u=G??wfr,r!==0&&!YA(r))throw new TypeError("max option must be a nonnegative integer");let D=r?AKe(r):Array;if(!D)throw new Error("invalid max value: "+r);if(this.#e=r,this.#t=m,this.maxEntrySize=A||this.#t,this.sizeCalculation=y,this.sizeCalculation){if(!this.#t&&!this.maxEntrySize)throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if(typeof this.sizeCalculation!="function")throw new TypeError("sizeCalculation set to non-function")}if(E!==void 0&&typeof E!="function")throw new TypeError("memoMethod must be a function if defined");if(this.#l=E,g!==void 0&&typeof g!="function")throw new TypeError("fetchMethod must be a function if specified");if(this.#s=g,this.#_=!!g,this.#h=new Map,this.#d=new Array(r).fill(void 0),this.#f=new Array(r).fill(void 0),this.#m=new D(r),this.#b=new D(r),this.#A=0,this.#w=0,this.#v=dle.create(r),this.#a=0,this.#c=0,typeof u=="fu Line truncated
Wanted: ${t}
Found: ${e}`);return r.code="EINTEGRITY",r.expected=t,r.found=e,r}});var FKe=p((asi,_le)=>{"use strict";var PKe=RS(),kKe=h1(),QKe=OKe(),nhr=JN(),{PassThrough:shr}=bue(),ohr=u0(),LKe=t=>({algorithms:["sha512"],...t});_le.exports=ahr;async function ahr(t,e,r,i={}){let{memoize:n}=i;i=LKe(i);let s=await QKe(t,r,i),o=await PKe.insert(t,e,s.integrity,{...i,size:s.size});return n&&kKe.put(t,o,r,i),s.integrity}_le.exports.stream=chr;function chr(t,e,r={}){let{memoize:i}=r;r=LKe(r);let n,s,o,a,c=new ohr;if(i){let l=new shr().on("collect",f=>{a=f});c.push(l)}let u=QKe.stream(t,r).on("integrity",l=>{n=l}).on("size",l=>{s=l}).on("error",l=>{o=l});return c.push(u),c.push(new nhr({async flush(){if(!o){let l=await PKe.insert(t,e,n,{...r,size:s});i&&a&&kKe.put(t,l,a,r),c.emit("integrity",n),c.emit("size",s)}}})),c}});var UKe=p(y0=>{"use strict";Object.defineProperty(y0,"__esModule",{value:!0});y0.range=y0.balanced=void 0;var uhr=(t,e,r)=>{let i=t instanceof RegExp?MKe(t,r):t,n=e instanceof RegExp?MKe(e,r):e,s=i!==null&&n!=null&&(0,y0.range)(i,n,r);return s&&{start:s[0],end:s[1],pre:r.slice(0,s[0]),body:r.slice(s[0]+i.length,s[1]),post:r.slice(s[1]+n.length)}};y0.balanced=uhr;var MKe=(t,e)=>{let r=e.match(t);return r?r[0]:null},lhr=(t,e,r)=>{let i,n,s,o,a,c=r.indexOf(t),u=r.indexOf(e,c+1),l=c;if(c>=0&&u>0){if(t===e)return[c,u];for(i=[],s=r.length;l>=0&&!a;){if(l===c)i.push(l),c=r.indexOf(t,l+1);else if(i.length===1){let f=i.pop();f!==void 0&&(a=[f,u])}else n=i.pop(),n!==void 0&&n<s&&(s=n,o=u),u=r.indexOf(e,l+1);l=c<u&&c>=0?c:u}i.length&&o!==void 0&&(a=[s,o])}return a};y0.range=lhr});var Nle=p(US=>{"use strict";Object.defineProperty(US,"__esModule",{value:!0});US.EXPANSION_MAX=void 0;US.expand=Ihr;var qKe=UKe(),GKe="\0SLASH"+Math.random()+"\0",HKe="\0OPEN"+Math.random()+"\0",Tle="\0CLOSE"+Math.random()+"\0",jKe="\0COMMA"+Math.random()+"\0",VKe="\0PERIOD"+Math.random()+"\0",fhr=new RegExp(GKe,"g"),hhr=new RegExp(HKe,"g"),dhr=new RegExp(Tle,"g"),phr=new RegExp(jKe,"g"),mhr=new RegExp(VKe,"g"),Ahr=/\\\\/g,ghr=/\\{/g,yhr=/\\}/g,Ehr=/\\,/g,bhr=/\\./g;US.EXPANSION_MAX=1e5;function Rle(t){return isNaN(t)?t.charCodeAt(0):parseInt(t,10)}function whr(t){return t.replace(Ahr,GKe).replace(ghr,HKe).replace(yhr,Tle).replace(Ehr,jKe).replace(bhr,VKe)}function Chr(t){return t.replace(fhr,"\\").replace(hhr,"{").replace(dhr,"}").replace(phr,",").replace(mhr,".")}function zKe(t){if(!t)return[""];let e=[],r=(0,qKe.balanced)("{","}",t);if(!r)return t.split(",");let{pre:i,body:n,post:s}=r,o=i.split(",");o[o.length-1]+="{"+n+"}";let a=zKe(s);return s.length&&(o[o.length-1]+=a.shift(),o.push.apply(o,a)),e.push.apply(e,o),e}function Ihr(t,e={}){if(!t)return[];let{max:r=US.EXPANSION_MAX}=e;return t.slice(0,2)==="{}"&&(t="\\{\\}"+t.slice(2)),E1(whr(t),r,!0).map(Chr)}function Shr(t){return"{"+t+"}"}function Bhr(t){return/^-?0\d/.test(t)}function vhr(t,e){return t<=e}function xhr(t,e){return t>=e}function E1(t,e,r){let i=[],n=(0,qKe.balanced)("{","}",t);if(!n)return[t];let s=n.pre,o=n.post.length?E1(n.post,e,!1):[""];if(/\$$/.test(n.pre))for(let a=0;a<o.length&&a<e;a++){let c=s+"{"+n.body+"}"+o[a];i.push(c)}else{let a=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(n.body),c=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(n.body),u=a||c,l=n.body.indexOf(",")>=0;if(!u&&!l)return n.post.match(/,(?!,).*\}/)?(t=n.pre+"{"+n.body+Tle+n.post,E1(t,e,!0)):[t];let f;if(u)f=n.body.split(/\.\./);else if(f=zKe(n.body),f.length===1&&f[0]!==void 0&&(f=E1(f[0],e,!1).map(Shr),f.length===1))return o.map(d=>n.pre+f[0]+d);let h;if(u&&f[0]!==void 0&&f[1]!==void 0){let d=Rle(f[0]),m=Rle(f[1]),A=Math.max(f[0].length,f[1].length),y=f.length===3&&f[2]!==void 0?Math.abs(Rle(f[2])):1,g=vhr;m<d&&(y*=-1,g=xhr);let C=f.some(Bhr);h=[];for(let S=d;g(S,m);S+=y){let N;if(c)N=String.fromCharCode(S),N==="\\"&&(N="");else if(N=String(S),C){let Q=A-N.length;if(Q>0){let T=new Array(Q+1).join("0");S<0?N="-"+T+N.slice(1):N=T+N}}h.push(N)}}else{h=[];for(let d=0;d<f.length;d++)h.push.apply(h,E1(f[d],e,!1))}for(let d=0;d<h.length;d++)for(let m=0;m<o.length&&i.length<e;m++){let A=s+h[d]+o[m];(!r||u||A)&&i.push(A)}}return i}});var $Ke=p(m5=>{"use strict";Object.defineProperty(m5,"__esModule",{value:!0});m5.assertValidPattern=void 0;var _hr=1024*64,Rhr=t=>{if(typeof t!="string")throw new TypeError("invalid pattern");if(t.length>_hr)throw new TypeError("pattern is too long")};m5.assertValidPattern=Rhr});var JKe=p(A5=>{"use strict";Object.defineProperty(A5,"__esModule",{value:!0});A5.parseClass=void 0;var Thr={"[:alnum:]":["\\p{L}\\p{Nl}\\p{Nd}",!0],"[:alpha:]":["\\p{L}\\p{Nl}",!0],"[:ascii:]":["\\x00-\\x7f",!1],"[:blank:]":["\\p{Zs}\\t",!0],"[:cntrl:]":["\\p{Cc}",!0],"[:digit:]":["\\p{Nd}",!0],"[:graph:]":["\\p{Z}\\p{C}",!0,!0],"[:lower:]":["\\p{Ll}",!0],"[:print:]":["\\p{C}",!0],"[:punct:]":["\\p{P}",!0],"[:space:]":["\\p{Z}\\t\\r\\n\\v\\f",!0],"[:upper:]":["\\p{Lu}",!0],"[:word:]":["\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}",!0],"[:xdigit:]":["A-Fa-f0-9",!1]},b1=t=>t.replace(/[[\]\\-]/g,"\\$&"),Nhr=t=>t.replace(/[-[\]{}() Line truncated
globstar while`,e,h,r,d,m),this.matchOne(e.slice(h),r.slice(d),i))return this.debug("globstar found match!",h,c,m),!0;if(m==="."||m===".."||!n.dot&&m.charAt(0)==="."){this.debug("dot detected!",e,h,r,d);break}this.debug("globstar swallow a segment, and continue"),h++}return!!(i&&(this.debug(`
>>> no match, partial?`,e,h,r,d),h===c))}let A;if(typeof l=="string"?(A=f===l,this.debug("string match",l,f,A)):(A=l.test(f),this.debug("pattern match",l,f,A)),!A)return!1}if(o===c&&a===u)return!0;if(o===c)return i;if(a===u)return o===c-1&&e[o]==="";throw new Error("wtf?")}braceExpand(){return(0,Pe.braceExpand)(this.pattern,this.options)}parse(e){(0,I5.assertValidPattern)(e);let r=this.options;if(e==="**")return Pe.GLOBSTAR;if(e==="")return"";let i,n=null;(i=e.match(rdr))?n=r.dot?ndr:idr:(i=e.match(zhr))?n=(r.nocase?r.dot?Yhr:Jhr:r.dot?Whr:$hr)(i[1]):(i=e.match(sdr))?n=(r.nocase?r.dot?adr:odr:r.dot?cdr:udr)(i):(i=e.match(Khr))?n=r.dot?Zhr:Xhr:(i=e.match(edr))&&(n=tdr);let s=tXe.AST.fromGlob(e,this.options).toMMPattern();return n&&typeof s=="object"&&Reflect.defineProperty(s,"test",{value:n}),s}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;let e=this.set;if(!e.length)return this.regexp=!1,this.regexp;let r=this.options,i=r.noglobstar?fdr:r.dot?hdr:ddr,n=new Set(r.nocase?["i"]:[]),s=e.map(c=>{let u=c.map(f=>{if(f instanceof RegExp)for(let h of f.flags.split(""))n.add(h);return typeof f=="string"?Edr(f):f===Pe.GLOBSTAR?Pe.GLOBSTAR:f._src});u.forEach((f,h)=>{let d=u[h+1],m=u[h-1];f!==Pe.GLOBSTAR||m===Pe.GLOBSTAR||(m===void 0?d!==void 0&&d!==Pe.GLOBSTAR?u[h+1]="(?:\\/|"+i+"\\/)?"+d:u[h]=i:d===void 0?u[h-1]=m+"(?:\\/|\\/"+i+")?":d!==Pe.GLOBSTAR&&(u[h-1]=m+"(?:\\/|\\/"+i+"\\/)"+d,u[h+1]=Pe.GLOBSTAR))});let l=u.filter(f=>f!==Pe.GLOBSTAR);if(this.partial&&l.length>=1){let f=[];for(let h=1;h<=l.length;h++)f.push(l.slice(0,h).join("/"));return"(?:"+f.join("|")+")"}return l.join("/")}).join("|"),[o,a]=e.length>1?["(?:",")"]:["",""];s="^"+o+s+a+"$",this.partial&&(s="^(?:\\/|"+o+s.slice(1,-1)+a+")$"),this.negate&&(s="^(?!"+s+").+$");try{this.regexp=new RegExp(s,[...n].join(""))}catch{this.regexp=!1}return this.regexp}slashSplit(e){return this.preserveMultipleSlashes?e.split("/"):this.isWindows&&/^\/\/[^\/]+/.test(e)?["",...e.split(/\/+/)]:e.split(/\/+/)}match(e,r=this.partial){if(this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return e==="";if(e==="/"&&r)return!0;let i=this.options;this.isWindows&&(e=e.split("\\").join("/"));let n=this.slashSplit(e);this.debug(this.pattern,"split",n);let s=this.set;this.debug(this.pattern,"set",s);let o=n[n.length-1];if(!o)for(let a=n.length-2;!o&&a>=0;a--)o=n[a];for(let a=0;a<s.length;a++){let c=s[a],u=n;if(i.matchBase&&c.length===1&&(u=[o]),this.matchOne(u,c,r))return i.flipNegate?!0:!this.negate}return i.flipNegate?!1:this.negate}static defaults(e){return Pe.minimatch.defaults(e).Minimatch}};Pe.Minimatch=E0;var bdr=Ple();Object.defineProperty(Pe,"AST",{enumerable:!0,get:function(){return bdr.AST}});var wdr=kle();Object.defineProperty(Pe,"escape",{enumerable:!0,get:function(){return wdr.escape}});var Cdr=y5();Object.defineProperty(Pe,"unescape",{enumerable:!0,get:function(){return Cdr.unescape}});Pe.minimatch.AST=tXe.AST;Pe.minimatch.Minimatch=E0;Pe.minimatch.escape=Hhr.escape;Pe.minimatch.unescape=jhr.unescape});var lXe=p(Lo=>{"use strict";var Idr=Lo&&Lo.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Lo,"__esModule",{value:!0});Lo.Minipass=Lo.isWritable=Lo.isReadable=Lo.isStream=void 0;var sXe=typeof process=="object"&&process?process:{stdout:null,stderr:null},Gle=require("node:events"),uXe=Idr(require("node:stream")),Sdr=require("node:string_decoder"),Bdr=t=>!!t&&typeof t=="object"&&(t instanceof T5||t instanceof uXe.default||(0,Lo.isReadable)(t)||(0,Lo.isWritable)(t));Lo.isStream=Bdr;var vdr=t=>!!t&&typeof t=="object"&&t instanceof Gle.EventEmitter&&typeof t.pipe=="function"&&t.pipe!==uXe.default.Writable.prototype.pipe;Lo.isReadable=vdr;var xdr=t=>!!t&&typeof t=="object"&&t instanceof Gle.EventEmitter&&typeof t.write=="function"&&typeof t.end=="function";Lo.isWritable=xdr;var Gp=Symbol("EOF"),Hp=Symbol("maybeEmitEnd"),tg=Symbol("emittedEnd"),S5=Symbol("emittingEnd"),w1=Symbol("emittedError"),B5=Symbol("closed"),oXe=Symbol("read"),v5=Symbol("flush"),aXe=Symbol("flushChunk"),Pl=Symbol("encoding"),qS=Symbol("decoder"),Hn=Symbol("flowing"),C1=Symbol("paused"),GS=Symbol("resume"),jn=Symbol("buffer"),Qo=Symbol("pipes"),Vn=Symbol("bufferLength"),Qle=Symbol("bufferPush"),x5=Symbol("bufferShift"),Ws=Symbol("objectMode"),Fi=Symbol("destroyed"),Lle=Symbol("error"),Fle=Symbol("emitData"),cXe=Symbol("emitEnd"),Mle=Symbol("emitEnd2"),Ph=Symbol("async"),Ule=Symbol("abort"),_5=Symbol("aborted"),I1=Symbol("signal"),b0=Symbol("dataListeners"),bc=Symbol("discarded"),S1=t=>Promise.resolve().then(t),_dr=t=>t(),Rdr=t=>t==="end"||t==="finish"||t==="prefinish",Tdr=t=>t instanceof ArrayBuffer||!!t&&typeof t=="object"&&t.constructor&&t.constructor.name==="ArrayBuffer"&&t.byteLength>=0,Ndr=t=>!Buffer.isBuffer(t)&&ArrayBuffer.isView(t),R5=class{src;dest;opts;ondrain;constructor(e,r,i){this.src=e,this.dest=r,this.opts=i,this.ondrain=()=>e[GS](),this.dest.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondra Line truncated
\r
`);if(h===-1){a8("have not received end of HTTP headers yet..."),s();return}let d=f.slice(0,h).toString("ascii").split(`\r
`),m=d.shift();if(!m)return t.destroy(),r(new Error("No header received from proxy CONNECT response"));let A=m.split(" "),y=+A[1],g=A.slice(2).join(" "),E={};for(let C of d){if(!C)continue;let S=C.indexOf(":");if(S===-1)return t.destroy(),r(new Error(`Invalid header from proxy CONNECT response: "${C}"`));let N=C.slice(0,S).toLowerCase(),Q=C.slice(S+1).trimStart(),T=E[N];typeof T=="string"?E[N]=[T,Q]:Array.isArray(T)?T.push(Q):E[N]=Q}a8("got proxy server response: %o %o",m,E),o(),e({connect:{statusCode:y,statusText:g,headers:E},buffered:f})}t.on("error",c),t.on("end",a),s()})}WS.parseProxyResponse=Mmr});var TZe=p(Du=>{"use strict";var Umr=Du&&Du.__createBinding||(Object.create?(function(t,e,r,i){i===void 0&&(i=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,i,n)}):(function(t,e,r,i){i===void 0&&(i=r),t[i]=e[r]})),qmr=Du&&Du.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),_Ze=Du&&Du.__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)&&Umr(e,t,r);return qmr(e,t),e},RZe=Du&&Du.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Du,"__esModule",{value:!0});Du.HttpsProxyAgent=void 0;var j1=_Ze(require("net")),vZe=_Ze(require("tls")),Gmr=RZe(require("assert")),Hmr=RZe(By()),jmr=Yx(),Vmr=require("url"),zmr=BZe(),V1=(0,Hmr.default)("https-proxy-agent"),c8=class extends jmr.Agent{constructor(e,r){super(r),this.options={path:void 0},this.proxy=typeof e=="string"?new Vmr.URL(e):e,this.proxyHeaders=r?.headers??{},V1("Creating new HttpsProxyAgent instance: %o",this.proxy.href);let i=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),n=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={ALPNProtocols:["http/1.1"],...r?xZe(r,"headers"):null,host:i,port:n}}async connect(e,r){let{proxy:i}=this;if(!r.host)throw new TypeError('No "host" provided');let n;if(i.protocol==="https:"){V1("Creating `tls.Socket`: %o",this.connectOpts);let h=this.connectOpts.servername||this.connectOpts.host;n=vZe.connect({...this.connectOpts,servername:h&&j1.isIP(h)?void 0:h})}else V1("Creating `net.Socket`: %o",this.connectOpts),n=j1.connect(this.connectOpts);let s=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders},o=j1.isIPv6(r.host)?`[${r.host}]`:r.host,a=`CONNECT ${o}:${r.port} HTTP/1.1\r
`;if(i.username||i.password){let h=`${decodeURIComponent(i.username)}:${decodeURIComponent(i.password)}`;s["Proxy-Authorization"]=`Basic ${Buffer.from(h).toString("base64")}`}s.Host=`${o}:${r.port}`,s["Proxy-Connection"]||(s["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let h of Object.keys(s))a+=`${h}: ${s[h]}\r
`;let c=(0,zmr.parseProxyResponse)(n);n.write(`${a}\r
`);let{connect:u,buffered:l}=await c;if(e.emit("proxyConnect",u),this.emit("proxyConnect",u,e),u.statusCode===200){if(e.once("socket",$mr),r.secureEndpoint){V1("Upgrading socket connection to TLS");let h=r.servername||r.host;return vZe.connect({...xZe(r,"host","path","port"),socket:n,servername:j1.isIP(h)?void 0:h})}return n}n.destroy();let f=new j1.Socket({writable:!1});return f.readable=!0,e.once("socket",h=>{V1("Replaying proxy buffer for failed request"),(0,Gmr.default)(h.listenerCount("data")>0),h.push(l),h.push(null)}),f}};c8.protocols=["http","https"];Du.HttpsProxyAgent=c8;function $mr(t){t.resume()}function xZe(t,...e){let r={},i;for(i in t)e.includes(i)||(r[i]=t[i]);return r}});var PZe=p(zp=>{"use strict";Object.defineProperty(zp,"__esModule",{value:!0});var NZe=require("buffer"),B0={INVALID_ENCODING:"Invalid encoding provided. Please specify a valid encoding the internal Node.js Buffer supports.",INVALID_SMARTBUFFER_SIZE:"Invalid size provided. Size must be a valid integer greater than zero.",INVALID_SMARTBUFFER_BUFFER:"Invalid Buffer provided in SmartBufferOptions.",INVALID_SMARTBUFFER_OBJECT:"Invalid SmartBufferOptions object supplied to SmartBuffer constructor or factory methods.",INVALID_OFFSET:"An invalid offset value was provided.",INVALID_OFFSET_NON_NUMBER:"An invalid offset value was provided. A numeric value is required.",INVALID_LENGTH:"An invalid length value was provided.",INVALID_LENGTH_NON_NUMBER:"An invalid length value was provived. A numeric value is required.",INVALID_TARGET_OFFSET:"Target offset is beyond the bounds of the internal SmartBuffer data.",INVALID_TARGET_LENGTH:"Specified length value moves cursor beyong the bounds of the internal SmartBuffer data.",INVALID_READ_BEYOND_BOUNDS:"Attempted to read beyond the bounds of the managed data.",INVALID_WRITE_BEYOND_BOUNDS:"Attempted to write beyond the bounds of the managed data."};zp.ERRORS=B0;function Wmr(t){if(!NZe.Buffer.isEncoding(t))throw new Error(B0.INVALID_ENCODING)}zp.checkEncoding=Wmr;function DZe(t){return typeof t=="number"&&isFinite(t)&&Xmr(t)}zp.isFiniteInteger=DZe;function OZe(t,e){if(typeof t=="number"){if(!DZe(t)||t<0)throw new Error(e?B0.INVALID_OFFSET:B0.INVALID_LENGTH)}else throw new Error(e?B0.INVALID_OFFSET_NON_NUMBER:B0.INVALID_LENGTH_NON_NUMBER)}function Jmr(t){OZe(t,!1)}zp.checkLengthValue=Jmr;function Ymr(t){OZe(t,!0)}zp.checkOffsetValue=Ymr;function Kmr(t,e){if(t<0||t>e.length)throw new Error(B0.INVALID_TARGET_OFFSET)}zp.checkTargetOffset=Kmr;function Xmr(t){return typeof t=="number"&&isFinite(t)&&Math.floor(t)===t}function Zmr(t){if(typeof BigInt>"u")throw new Error("Platform does not support JS BigInt type.");if(typeof NZe.Buffer.prototype[t]>"u")throw new Error(`Platform does not support Buffer.prototype.${t}.`)}zp.bigIntAndBufferInt64Check=Zmr});var QZe=p(Nfe=>{"use strict";Object.defineProperty(Nfe,"__esModule",{value:!0});var bt=PZe(),kZe=4096,eAr="utf8",Tfe=class t{constructor(e){if(this.length=0,this._encoding=eAr,this._writeOffset=0,this._readOffset=0,t.isSmartBufferOptions(e))if(e.encoding&&(bt.checkEncoding(e.encoding),this._encoding=e.encoding),e.size)if(bt.isFiniteInteger(e.size)&&e.size>0)this._buff=Buffer.allocUnsafe(e.size);else throw new Error(bt.ERRORS.INVALID_SMARTBUFFER_SIZE);else if(e.buff)if(Buffer.isBuffer(e.buff))this._buff=e.buff,this.length=e.buff.length;else throw new Error(bt.ERRORS.INVALID_SMARTBUFFER_BUFFER);else this._buff=Buffer.allocUnsafe(kZe);else{if(typeof e<"u")throw new Error(bt.ERRORS.INVALID_SMARTBUFFER_OBJECT);this._buff=Buffer.allocUnsafe(kZe)}}static fromSize(e,r){return new this({size:e,encoding:r})}static fromBuffer(e,r){return new this({buff:e,encoding:r})}static fromOptions(e){return new this(e)}static isSmartBufferOptions(e){let r=e;return r&&(r.encoding!==void 0||r.size!==void 0||r.buff!==void 0)}readInt8(e){return this._readNumberValue(Buffer.prototype.readInt8,1,e)}readInt16BE(e){return this._readNumberValue(Buffer.prototype.readInt16BE,2,e)}readInt16LE(e){return this._readNumberValue(Buffer.prototype.readInt16LE,2,e)}readInt32BE(e){return this._readNumberValue(Buffer.prototype.readInt32BE,4,e)}readInt32LE(e){return this._readNumberValue(Buffer.prototype.readInt32LE,4,e)}readBigInt64BE(e){return bt.bigIntAndBufferInt64Check("readBigInt64BE"),this._readNumberValue(Buffer.prototype.readBigInt64BE,8,e)}readBigInt64LE(e){return bt.bigIntAndBufferInt64Check("readBigInt64LE"),this._readNumberValue(Buffer.prototype.readBigInt64LE,8,e)}writeInt8(e,r){return this._writeNumberValue(Buffer.prototype.writeInt8,1,e,r),this}insertInt8(e,r){return this._insertNumberValue(Buffer.prototype.writeInt8,1,e,r)}writeInt16BE(e,r){return this._writeNumberValue(Buffer.prototype.writeInt16BE,2,e,r)}insertInt16BE(e,r){return this._insertNumberValue(Buffer.prototype.writeInt16BE,2,e,r)}writeInt16LE(e,r){return this._writeNumberValue(Buffer.prototype.writeInt16LE,2,e,r)}insertInt16LE(e,r){return this._insertNumberValue(Buffer.prototype.writeInt16LE,2,e,r)}writeInt32BE(e,r){retur Line truncated
globstar while`,e,h,r,d,m),this.matchOne(e.slice(h),r.slice(d),i))return this.debug("globstar found match!",h,c,m),!0;if(m==="."||m===".."||!n.dot&&m.charAt(0)==="."){this.debug("dot detected!",e,h,r,d);break}this.debug("globstar swallow a segment, and continue"),h++}return!!(i&&(this.debug(`
>>> no match, partial?`,e,h,r,d),h===c))}let A;if(typeof l=="string"?(A=f===l,this.debug("string match",l,f,A)):(A=l.test(f),this.debug("pattern match",l,f,A)),!A)return!1}if(o===c&&a===u)return!0;if(o===c)return i;if(a===u)return o===c-1&&e[o]==="";throw new Error("wtf?")}braceExpand(){return(0,ke.braceExpand)(this.pattern,this.options)}parse(e){(0,oG.assertValidPattern)(e);let r=this.options;if(e==="**")return ke.GLOBSTAR;if(e==="")return"";let i,n=null;(i=e.match(T0r))?n=r.dot?D0r:N0r:(i=e.match(b0r))?n=(r.nocase?r.dot?S0r:I0r:r.dot?C0r:w0r)(i[1]):(i=e.match(O0r))?n=(r.nocase?r.dot?k0r:P0r:r.dot?Q0r:L0r)(i):(i=e.match(B0r))?n=r.dot?x0r:v0r:(i=e.match(_0r))&&(n=R0r);let s=Ytt.AST.fromGlob(e,this.options).toMMPattern();return n&&typeof s=="object"&&Reflect.defineProperty(s,"test",{value:n}),s}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;let e=this.set;if(!e.length)return this.regexp=!1,this.regexp;let r=this.options,i=r.noglobstar?M0r:r.dot?U0r:q0r,n=new Set(r.nocase?["i"]:[]),s=e.map(c=>{let u=c.map(f=>{if(f instanceof RegExp)for(let h of f.flags.split(""))n.add(h);return typeof f=="string"?$0r(f):f===ke.GLOBSTAR?ke.GLOBSTAR:f._src});u.forEach((f,h)=>{let d=u[h+1],m=u[h-1];f!==ke.GLOBSTAR||m===ke.GLOBSTAR||(m===void 0?d!==void 0&&d!==ke.GLOBSTAR?u[h+1]="(?:\\/|"+i+"\\/)?"+d:u[h]=i:d===void 0?u[h-1]=m+"(?:\\/|\\/"+i+")?":d!==ke.GLOBSTAR&&(u[h-1]=m+"(?:\\/|\\/"+i+"\\/)"+d,u[h+1]=ke.GLOBSTAR))});let l=u.filter(f=>f!==ke.GLOBSTAR);if(this.partial&&l.length>=1){let f=[];for(let h=1;h<=l.length;h++)f.push(l.slice(0,h).join("/"));return"(?:"+f.join("|")+")"}return l.join("/")}).join("|"),[o,a]=e.length>1?["(?:",")"]:["",""];s="^"+o+s+a+"$",this.partial&&(s="^(?:\\/|"+o+s.slice(1,-1)+a+")$"),this.negate&&(s="^(?!"+s+").+$");try{this.regexp=new RegExp(s,[...n].join(""))}catch{this.regexp=!1}return this.regexp}slashSplit(e){return this.preserveMultipleSlashes?e.split("/"):this.isWindows&&/^\/\/[^\/]+/.test(e)?["",...e.split(/\/+/)]:e.split(/\/+/)}match(e,r=this.partial){if(this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return e==="";if(e==="/"&&r)return!0;let i=this.options;this.isWindows&&(e=e.split("\\").join("/"));let n=this.slashSplit(e);this.debug(this.pattern,"split",n);let s=this.set;this.debug(this.pattern,"set",s);let o=n[n.length-1];if(!o)for(let a=n.length-2;!o&&a>=0;a--)o=n[a];for(let a=0;a<s.length;a++){let c=s[a],u=n;if(i.matchBase&&c.length===1&&(u=[o]),this.matchOne(u,c,r))return i.flipNegate?!0:!this.negate}return i.flipNegate?!1:this.negate}static defaults(e){return ke.minimatch.defaults(e).Minimatch}};ke.Minimatch=O0;var W0r=rde();Object.defineProperty(ke,"AST",{enumerable:!0,get:function(){return W0r.AST}});var J0r=ide();Object.defineProperty(ke,"escape",{enumerable:!0,get:function(){return J0r.escape}});var Y0r=tG();Object.defineProperty(ke,"unescape",{enumerable:!0,get:function(){return Y0r.unescape}});ke.minimatch.AST=Ytt.AST;ke.minimatch.Minimatch=O0;ke.minimatch.escape=g0r.escape;ke.minimatch.unescape=y0r.unescape});var ode=p(Fu=>{"use strict";var trt=Fu&&Fu.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Fu,"__esModule",{value:!0});Fu.SuccinctRoles=Fu.DelegatedRole=Fu.Role=Fu.TOP_LEVEL_ROLE_NAMES=void 0;var rrt=trt(require("crypto")),K0r=ert(),aG=trt(require("util")),cG=Vh(),P0=Fl();Fu.TOP_LEVEL_ROLE_NAMES=["root","targets","snapshot","timestamp"];var c2=class t{keyIDs;threshold;unrecognizedFields;constructor(e){let{keyIDs:r,threshold:i,unrecognizedFields:n}=e;if(X0r(r))throw new cG.ValueError("duplicate key IDs found");if(i<1)throw new cG.ValueError("threshold must be at least 1");this.keyIDs=r,this.threshold=i,this.unrecognizedFields=n||{}}equals(e){return e instanceof t?this.threshold===e.threshold&&aG.default.isDeepStrictEqual(this.keyIDs,e.keyIDs)&&aG.default.isDeepStrictEqual(this.unrecognizedFields,e.unrecognizedFields):!1}toJSON(){return{keyids:this.keyIDs,threshold:this.threshold,...this.unrecognizedFields}}static fromJSON(e){let{keyids:r,threshold:i,...n}=e;if(!P0.guard.isStringArray(r))throw new TypeError("keyids must be an array");if(typeof i!="number")throw new TypeError("threshold must be a number");return new t({keyIDs:r,threshold:i,unrecognizedFields:n})}};Fu.Role=c2;function X0r(t){return new Set(t).size!==t.length}var nde=class t extends c2{name;terminating;paths;pathHashPrefixes;constructor(e){super(e);let{name:r,terminating:i,paths:n,pathHashPrefixes:s}=e;if(this.name=r,this.terminating=i,e.paths&&e.pathHashPrefixes)throw new cG.ValueError("paths and pathHashPrefixes are mutually exclusive");this.paths=n,this.pathHashPrefixes=s}equals(e){return e instanceof t?super.equals(e)&&this.name===e.name&&this.terminating===e.terminating&&aG.default.isDeepStrictEqual(this.paths,e.paths)&&aG.default.isDeepStrictEqual(this.pathHashPrefixes,e.pathHashPrefixes):!1}isDelegatedPath(e){if(this.paths)return this.paths.some(r=>ebr(e,r));if(this.pathHashPrefixes){let i=rrt.default.createHash("sha256").update( Line truncated
`).join(`
`+s),t.push(n+"m+"+bG.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=rwr()+e+" "+t[0]}function rwr(){return Kn.inspectOpts.hideDate?"":new Date().toISOString()+" "}function iwr(...t){return process.stderr.write(EG.formatWithOptions(Kn.inspectOpts,...t)+`
`)}function nwr(t){t?process.env.DEBUG=t:delete process.env.DEBUG}function swr(){return process.env.DEBUG}function owr(t){t.inspectOpts={};let e=Object.keys(Kn.inspectOpts);for(let r=0;r<e.length;r++)t.inspectOpts[e[r]]=Kn.inspectOpts[e[r]]}bG.exports=vde()(Kn);var{formatters:grt}=bG.exports;grt.o=function(t){return this.inspectOpts.colors=this.useColors,EG.inspect(t,this.inspectOpts).split(`
`).map(e=>e.trim()).join(" ")};grt.O=function(t){return this.inspectOpts.colors=this.useColors,EG.inspect(t,this.inspectOpts)}});var _de=p((Sai,xde)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?xde.exports=Art():xde.exports=yrt()});var brt=p((Bai,Ert)=>{var awr=require("dns"),cwr=["if-modified-since","if-none-match","if-unmodified-since","if-match","if-range"],uwr=t=>{let{strictSSL:e,...r}={...t};if(r.method=r.method?r.method.toUpperCase():"GET",e==null?r.rejectUnauthorized=process.env.NODE_TLS_REJECT_UNAUTHORIZED!=="0":r.rejectUnauthorized=e!==!1,!r.retry)r.retry={retries:0};else if(typeof r.retry=="string"){let i=parseInt(r.retry,10);isFinite(i)?r.retry={retries:i}:r.retry={retries:0}}else typeof r.retry=="number"?r.retry={retries:r.retry}:r.retry={retries:0,...r.retry};return r.dns={ttl:300*1e3,lookup:awr.lookup,...r.dns},r.cache=r.cache||"default",r.cache==="default"&&Object.keys(r.headers||{}).some(n=>cwr.includes(n.toLowerCase()))&&(r.cache="no-store"),r.cacheAdditionalHeaders=r.cacheAdditionalHeaders||[],r.cacheManager&&!r.cachePath&&(r.cachePath=r.cacheManager),r};Ert.exports=uwr});var Tde=p((vai,Brt)=>{var wrt=Yce(),Crt=rue(),lwr=Th(),Irt={shared:!1,ignoreCargoCult:!0},fwr={status:200,headers:{}},wB=t=>{let e={method:t.method,url:t.url,headers:{},compress:t.compress};return t.headers.forEach((r,i)=>{e.headers[i]=r}),e},Srt=t=>{let e={status:t.status,headers:{}};return t.headers.forEach((r,i)=>{e.headers[i]=r}),e},Rde=class{constructor({entry:e,request:r,response:i,options:n}){this.entry=e,this.request=wB(r),this.response=Srt(i),this.options=n,this.policy=new wrt(this.request,this.response,Irt),this.entry&&(this.policy._responseTime=this.entry.metadata.time)}static storable(e,r){return!r.cachePath||r.cache==="no-store"||!["GET","HEAD"].includes(e.method)?!1:new wrt(wB(e),fwr,Irt).storable()}satisfies(e){let r=wB(e);if(this.request.headers.host!==r.headers.host||this.request.compress!==r.compress)return!1;let i=new Crt(this.request),n=new Crt(r);return JSON.stringify(i.mediaTypes())!==JSON.stringify(n.mediaTypes())||JSON.stringify(i.languages())!==JSON.stringify(n.languages())||JSON.stringify(i.encodings())!==JSON.stringify(n.encodings())?!1:this.options.integrity?lwr.parse(this.options.integrity).match(this.entry.integrity):!0}storable(){return this.policy.storable()}get mustRevalidate(){return!!this.policy._rescc["must-revalidate"]}needsRevalidation(e){let r=wB(e);return r.method="GET",!this.policy.satisfiesWithoutRevalidation(r)}responseHeaders(){return this.policy.responseHeaders()}revalidationHeaders(e){let r=wB(e);return this.policy.revalidationHeaders(r)}revalidated(e,r){let i=wB(e),n=Srt(r);return!this.policy.revalidatedPolicy(i,n).modified}};Brt.exports=Rde});var xrt=p((xai,vrt)=>{var Nde=class extends Error{constructor(e){super(`request to ${e} failed: cache mode is 'only-if-cached' but no cached response is available.`),this.code="ENOTCACHED"}};vrt.exports={NotCachedError:Nde}});var Ode=p((_ai,_rt)=>{"use strict";var hwr=u0(),Dde=class extends hwr{#e=[];#t=new Map;constructor(e,...r){super(),this.#e=e.events,r.length&&this.push(...r)}on(e,r){return this.#e.includes(e)&&this.#t.has(e)?r(...this.#t.get(e)):super.on(e,r)}emit(e,...r){return this.#e.includes(e)&&this.#t.set(e,r),super.emit(e,...r)}};_rt.exports=Dde});var Trt=p((Rai,Rrt)=>{var{URL:dwr,format:pwr}=require("url"),mwr={auth:!1,fragment:!1,search:!0,unicode:!1},Awr=t=>{let e=new dwr(t.url);return`make-fetch-happen:request-cache:${pwr(e,mwr)}`};Rrt.exports=Awr});var Nrt=p((Tai,gwr)=>{gwr.exports={name:"make-fetch-happen",version:"15.0.4",description:"Opinionated, caching, retrying fetch client",main:"lib/index.js",files:["bin/","lib/"],scripts:{test:"tap",posttest:"npm run lint",eslint:'eslint "**/*.{js,cjs,ts,mjs,jsx,tsx}"',lint:"npm run eslint",lintfix:"npm run eslint -- --fix",postlint:"template-oss-check",snap:"tap","template-oss-apply":"template-oss-apply --force"},repository:{type:"git",url:"git+https://github.com/npm/make-fetch-happen.git"},keywords:["http","request","fetch","mean girls","caching","cache","subresource integrity"],author:"GitHub Inc.",license:"ISC",dependencies:{"@gar/promise-retry":"^1.0.0","@npmcli/agent":"^4.0.0",cacache:"^20.0.1","http-cache-semantics":"^4.1.1",minipass:"^7.0.2","minipass-fetch":"^5.0.0","minipass-flush":"^1.0.5","minipass-pipeline":"^1.2.4",negotiator:"^1.0.0","proc-log":"^6.0.0",ssri:"^13.0.0"},devDependencies:{"@npmcli/eslint-config":"^5.0.0","@npmcli/template-oss":"4.25.0",nock:"^13.2.4","safe-buffer":"^5.2.1","standard-version":"^9.3.2",tap:"^16.0.0"},engines:{node:"^20.17.0 || >=22.9.0"},tap:{color:1,files:"test/*.js","check-coverage":!0,timeout:60,"nyc-arg":["--exclude","tap-snapshots/**"]},templateOSS:{"//@npmcli/template-oss":"This file is partially managed by @npmcli/template-oss. Edits may be overwritten.",version:"4.25.0",publish:"true"}}});var CG=p((Nai,Ort)=>{var{Minipass:ywr}=Do(),wG=Sp(),{promiseRetry:Ewr}=Ife(),bwr=Th(),{log:Drt}=i Line truncated
`).forEach(r=>{r.match(sIr)||r.match(oIr)||(e+=r)}),Buffer.from(e,"base64")}function cIr(t,e="CERTIFICATE"){let i=t.toString("base64").match(/.{1,64}/g)||"";return[`-----BEGIN ${e}-----`,...i,`-----END ${e}-----`].join(`
`).concat(`
`)}});var zG=p(gg=>{"use strict";Object.defineProperty(gg,"__esModule",{value:!0});gg.SHA2_HASH_ALGOS=gg.RSA_SIGNATURE_ALGOS=gg.ECDSA_SIGNATURE_ALGOS=void 0;gg.ECDSA_SIGNATURE_ALGOS={"1.2.840.10045.4.3.1":"sha224","1.2.840.10045.4.3.2":"sha256","1.2.840.10045.4.3.3":"sha384","1.2.840.10045.4.3.4":"sha512"};gg.RSA_SIGNATURE_ALGOS={"1.2.840.113549.1.1.14":"sha224","1.2.840.113549.1.1.11":"sha256","1.2.840.113549.1.1.12":"sha384","1.2.840.113549.1.1.13":"sha512"};gg.SHA2_HASH_ALGOS={"2.16.840.1.101.3.4.2.1":"sha256","2.16.840.1.101.3.4.2.2":"sha384","2.16.840.1.101.3.4.2.3":"sha512"}});var bpe=p($G=>{"use strict";Object.defineProperty($G,"__esModule",{value:!0});$G.RFC3161TimestampVerificationError=void 0;var Epe=class extends Error{};$G.RFC3161TimestampVerificationError=Epe});var Rit=p($h=>{"use strict";var uIr=$h&&$h.__createBinding||(Object.create?(function(t,e,r,i){i===void 0&&(i=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,i,n)}):(function(t,e,r,i){i===void 0&&(i=r),t[i]=e[r]})),lIr=$h&&$h.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),fIr=$h&&$h.__importStar||(function(){var t=function(e){return t=Object.getOwnPropertyNames||function(r){var i=[];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(i[i.length]=n);return i},t(e)};return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var i=t(e),n=0;n<i.length;n++)i[n]!=="default"&&uIr(r,e,i[n]);return lIr(r,e),r}})();Object.defineProperty($h,"__esModule",{value:!0});$h.TSTInfo=void 0;var _it=fIr(_B()),hIr=zG(),dIr=bpe(),wpe=class{root;constructor(e){this.root=e}get version(){return this.root.subs[0].toInteger()}get genTime(){return this.root.subs[4].toDate()}get messageImprintHashAlgorithm(){let e=this.messageImprintObj.subs[0].subs[0].toOID();return hIr.SHA2_HASH_ALGOS[e]}get messageImprintHashedMessage(){return this.messageImprintObj.subs[1].value}get raw(){return this.root.toDER()}verify(e){let r=_it.digest(this.messageImprintHashAlgorithm,e);if(!_it.bufferEqual(r,this.messageImprintHashedMessage))throw new dIr.RFC3161TimestampVerificationError("message imprint does not match artifact")}get messageImprintObj(){return this.root.subs[2]}};$h.TSTInfo=wpe});var Nit=p(Wh=>{"use strict";var pIr=Wh&&Wh.__createBinding||(Object.create?(function(t,e,r,i){i===void 0&&(i=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,i,n)}):(function(t,e,r,i){i===void 0&&(i=r),t[i]=e[r]})),mIr=Wh&&Wh.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),AIr=Wh&&Wh.__importStar||(function(){var t=function(e){return t=Object.getOwnPropertyNames||function(r){var i=[];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(i[i.length]=n);return i},t(e)};return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var i=t(e),n=0;n<i.length;n++)i[n]!=="default"&&pIr(r,e,i[n]);return mIr(r,e),r}})();Object.defineProperty(Wh,"__esModule",{value:!0});Wh.RFC3161Timestamp=void 0;var gIr=HG(),Cpe=AIr(_B()),Tit=zG(),y2=bpe(),yIr=Rit(),EIr="1.2.840.113549.1.7.2",bIr="1.2.840.113549.1.9.16.1.4",wIr="1.2.840.113549.1.9.4",Ipe=class t{root;constructor(e){this.root=e}static parse(e){let r=gIr.ASN1Obj.parseBuffer(e);return new t(r)}get status(){return this.pkiStatusInfoObj.subs[0].toInteger()}get contentType(){return this.contentTypeObj.toOID()}get eContentType(){return this.eContentTypeObj.toOID()}get signingTime(){return this.tstInfo.genTime}get signerIssuer(){return this.signerSidObj.subs[0].value}get signerSerialNumber(){return this.signerSidObj.subs[1].value}get signerDigestAlgorithm(){let e=this.signerDigestAlgorithmObj.subs[0].toOID();return Tit.SHA2_HASH_ALGOS[e]}get signatureAlgorithm(){let e=this.signatureAlgorithmObj.subs[0].toOID();return Tit.ECDSA_SIGNATURE_ALGOS[e]}get signatureValue(){return this.signatureValueObj.value}get tstInfo(){return new yIr.TSTInfo(this.eContentObj.subs[0].subs[0])}verify(e,r){if(!this.timeStampTokenObj)throw new y2.RFC3161TimestampVerificationError("timeStampToken is missing");if(this.contentType!==EIr)throw new y2.RFC3161TimestampVerificationError(`incorrect content type: ${this.contentType}`);if(this.eContentType!==bIr)throw new y2.RFC3161TimestampVerificationError(`incorrect encapsulated content type: ${this.eContentType}`);this.tstInfo.verify(e),this.verifyMessageDigest(),this.verifySignature(r)}verifyMessageDigest(){let e=Cpe.digest(this.signerDigestAlgorithm,this.tstInfo.raw),r=this.messageDigestAttributeObj.subs[1].subs[0].value;if(!Cpe.bufferEqual(e,r))throw new y2.RFC3161TimestampVerificationError("signed data does not match tstInfo")}verifySignature(e){let r=this.signedAttrsObj.toD Line truncated
`,QSr=/\u2014 (\S+) (\S+)\n/g;function LSr(t,e){let r=t.inclusionProof,i=Ype.fromString(r.checkpoint.envelope),n=oH.fromString(i.note);if(!FSr(i,e))throw new I2.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"invalid checkpoint signature"});return n}function FSr(t,e){let r=Buffer.from(t.note,"utf-8");return t.signatures.some(i=>{let n=e.find(s=>nnt.crypto.bufferEqual(s.logID.subarray(0,4),i.keyHint)&&s.baseURL.match(i.name));return n?nnt.crypto.verify(r,n.publicKey,i.signature):!1})}var Ype=class t{note;signatures;constructor(e,r){this.note=e,this.signatures=r}static fromString(e){if(!e.includes(Jpe))throw new I2.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"missing checkpoint separator"});let r=e.indexOf(Jpe),i=e.slice(0,r+1),s=e.slice(r+Jpe.length).matchAll(QSr),o=Array.from(s,a=>{let[,c,u]=a,l=Buffer.from(u,"base64");if(l.length<5)throw new I2.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"malformed checkpoint signature"});return{name:c,keyHint:l.subarray(0,4),signature:l.subarray(4)}});if(o.length===0)throw new I2.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"no signatures found in checkpoint"});return new t(i,o)}},oH=class t{origin;logSize;logHash;rest;constructor(e,r,i,n){this.origin=e,this.logSize=r,this.logHash=i,this.rest=n}static fromString(e){let r=e.trimEnd().split(`
`);if(r.length<3)throw new I2.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"too few lines in checkpoint header"});let i=r[0],n=BigInt(r[1]),s=Buffer.from(r[2],"base64"),o=r.slice(3);return new t(i,n,s,o)}};S2.LogCheckpoint=oH});var ont=p(eme=>{"use strict";Object.defineProperty(eme,"__esModule",{value:!0});eme.verifyMerkleInclusion=qSr;var Zpe=Ml(),Kpe=Xs(),MSr=Buffer.from([0]),USr=Buffer.from([1]);function qSr(t,e){let r=t.inclusionProof,i=BigInt(r.logIndex),n=BigInt(e.logSize);if(i<0n||i>=n)throw new Kpe.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:`invalid index: ${i}`});let{inner:s,border:o}=GSr(i,n);if(r.hashes.length!==s+o)throw new Kpe.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"invalid hash count"});let a=r.hashes.slice(0,s),c=r.hashes.slice(s),u=WSr(t.canonicalizedBody),l=jSr(HSr(u,a,i),c);if(!Zpe.crypto.bufferEqual(l,e.logHash))throw new Kpe.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"calculated root hash does not match inclusion proof"})}function GSr(t,e){let r=VSr(t,e),i=zSr(t>>BigInt(r));return{inner:r,border:i}}function HSr(t,e,r){return e.reduce((i,n,s)=>r>>BigInt(s)&BigInt(1)?Xpe(n,i):Xpe(i,n),t)}function jSr(t,e){return e.reduce((r,i)=>Xpe(i,r),t)}function VSr(t,e){return $Sr(t^e-BigInt(1))}function zSr(t){return t.toString(2).split("1").length-1}function $Sr(t){return t===0n?0:t.toString(2).length}function Xpe(t,e){return Zpe.crypto.digest("sha256",USr,t,e)}function WSr(t){return Zpe.crypto.digest("sha256",MSr,t)}});var cnt=p(tme=>{"use strict";Object.defineProperty(tme,"__esModule",{value:!0});tme.verifyTLogSET=KSr;var ant=Ml(),JSr=Xs(),YSr=NB();function KSr(t,e){if(!(0,YSr.filterTLogAuthorities)(e,{logID:t.logId.keyId,targetDate:new Date(Number(t.integratedTime)*1e3)}).some(n=>{let s=XSr(t),o=Buffer.from(ant.json.canonicalize(s),"utf8"),a=t.inclusionPromise.signedEntryTimestamp;return ant.crypto.verify(o,n.publicKey,a)}))throw new JSr.VerificationError({code:"TLOG_INCLUSION_PROMISE_ERROR",message:"inclusion promise could not be verified"})}function XSr(t){let{integratedTime:e,logIndex:r,logId:i,canonicalizedBody:n}=t;return{body:n.toString("base64"),integratedTime:Number(e),logIndex:Number(r),logID:i.keyId.toString("hex")}}});var lnt=p(aH=>{"use strict";Object.defineProperty(aH,"__esModule",{value:!0});aH.verifyTLogBody=iBr;aH.verifyTLogInclusion=nBr;var unt=Bhe(),nme=Xs(),rme=tnt(),ime=rnt(),ZSr=int(),eBr=snt(),tBr=ont(),rBr=cnt();function iBr(t,e){let{kind:r,version:i}=t.kindVersion,n=JSON.parse(t.canonicalizedBody.toString("utf8"));if(r!==n.kind||i!==n.apiVersion)throw new nme.VerificationError({code:"TLOG_BODY_ERROR",message:`kind/version mismatch - expected: ${r}/${i}, received: ${n.kind}/${n.apiVersion}`});switch(r){case"dsse":if(i==rme.DSSE_API_VERSION_V1)return(0,rme.verifyDSSETLogBody)(n,e);{let s=unt.Entry.fromJSON(n);return(0,rme.verifyDSSETLogBodyV2)(s,e)}case"intoto":return(0,ZSr.verifyIntotoTLogBody)(n,e);case"hashedrekord":if(i==ime.HASHEDREKORD_API_VERSION_V1)return(0,ime.verifyHashedRekordTLogBody)(n,e);{let s=unt.Entry.fromJSON(n);return(0,ime.verifyHashedRekordTLogBodyV2)(s,e)}default:throw new nme.VerificationError({code:"TLOG_BODY_ERROR",message:`unsupported kind: ${r}`})}}function nBr(t,e){let r=!1;if(sBr(t)&&((0,rBr.verifyTLogSET)(t,e),r=!0),oBr(t)){let i=(0,eBr.verifyCheckpoint)(t,e);(0,tBr.verifyMerkleInclusion)(t,i),r=!0}if(!r)throw new nme.VerificationError({code:"TLOG_MISSING_INCLUSION_ERROR",message:"inclusion could not be verified"})}function sBr(t){return t.inclusionPromise!==void 0}function oBr(t){return t.inclusionProof!==void 0}});var Ant=p(cH=>{"use strict";Object.defineProperty(cH,"__esModule",{value:!0});cH.Verifier=void 0;var aBr=require("util"),DB=Xs(),fnt=Jit(),hnt=Kit(),dnt=ent(),pnt=lnt(),sme=class{trustMaterial;options;constructor(e,r={}){this.trustMaterial=e,this.options={ctlogThreshold:r.ctlogThreshold??1,tlogThreshold:r.tlogThreshold??1,timestampThreshold:r.timestampThreshold??r.tsaThreshold??1,tsaThreshold:0}}verify(e,r){let i=this.verifyTimestamps(e),n=this.verifySigningKey(e,i);return this.verifyTLogs(e),this.verifySignature(e,n),r&&this.verifyPolicy(r,n.identity||{}),n}verifyTimestamps(e){let r=0,i=e.timestamps.map(n=>{switch(n.$case){case"timestamp-authority":return r++,(0,dnt.getTSATimestamp)(n.timestamp,e.signature.signature,this.trustMaterial.timestampAuthorities);case"transparency-log":return r++,(0,dnt.getTLogTimestamp)(n.tlogEntry)}});if(mnt(i))throw new DB.VerificationError({code:"TIMESTAMP_ERROR",message:"duplicate timestamp"});if(r<this.options.timestampThreshold)throw new DB.VerificationError({code:"TIMESTAMP_ERROR",message:`expected ${this.options.timestampThreshold} timestamps, got ${r}`});return i.map(n=>n.timestamp)}verifySigningKey({key:e},r){switch(e.$case){case"public-key":return(0,fnt.verifyPublicKey)(e.hint,r,this.trustMaterial);case"certificate":{let i=(0,fnt.verifyCertificate)(e.certificate,r,this.trustMaterial);if(mnt(i.scts))throw new DB.Verificat Line truncated
Polling status: ${K2e.includes(l)?"Stopped":"Running"}`),l==="succeeded"){let f=o(u,r);if(f!==void 0)return{response:await e(f).catch(J2e({state:r,stateProxy:i,isOperationError:a})),status:l}}return{response:u,status:l}}async function tDe(t){let{poll:e,state:r,stateProxy:i,options:n,getOperationStatus:s,getResourceLocation:o,getOperationLocation:a,isOperationError:c,withOperationLocation:u,getPollingInterval:l,processResult:f,getError:h,updateState:d,setDelay:m,isDone:A,setErrorAsResult:y}=t,{operationLocation:g}=r.config;if(g!==void 0){let{response:E,status:C}=await jDt({poll:e,getOperationStatus:s,state:r,stateProxy:i,operationLocation:g,getResourceLocation:o,isOperationError:c,options:n});if(Z2e({status:C,response:E,state:r,stateProxy:i,isDone:A,processResult:f,getError:h,setErrorAsResult:y}),!K2e.includes(C)){let S=l?.(E);S&&m(S);let N=a?.(E,r);if(N!==void 0){let Q=g!==N;r.config.operationLocation=N,u?.(N,Q)}else u?.(g,!1)}d?.(r,E)}}function rDe(t){let{azureAsyncOperation:e,operationLocation:r}=t;return r??e}function iDe(t){return t.headers.location}function nDe(t){return t.headers["operation-location"]}function sDe(t){return t.headers["azure-asyncoperation"]}function VDt(t){var e;let{location:r,requestMethod:i,requestPath:n,resourceLocationConfig:s}=t;switch(i){case"PUT":return n;case"DELETE":return;case"PATCH":return(e=o())!==null&&e!==void 0?e:n;default:return o()}function o(){switch(s){case"azure-async-operation":return;case"original-uri":return n;default:return r}}}function oDe(t){let{rawResponse:e,requestMethod:r,requestPath:i,resourceLocationConfig:n}=t,s=nDe(e),o=sDe(e),a=rDe({operationLocation:s,azureAsyncOperation:o}),c=iDe(e),u=r?.toLocaleUpperCase();return a!==void 0?{mode:"OperationLocation",operationLocation:a,resourceLocation:VDt({requestMethod:u,location:c,requestPath:i,resourceLocationConfig:n})}:c!==void 0?{mode:"ResourceLocation",operationLocation:c}:u==="PUT"&&i?{mode:"Body",operationLocation:i}:void 0}function aDe(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 mX(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 Xy.verbose(`LRO: unrecognized operation status: ${e}`),e}}function zDt(t){var e;let{status:r}=(e=t.body)!==null&&e!==void 0?e:{};return aDe({status:r,statusCode:t.statusCode})}function $Dt(t){var e,r;let{properties:i,provisioningState:n}=(e=t.body)!==null&&e!==void 0?e:{},s=(r=i?.provisioningState)!==null&&r!==void 0?r:n;return aDe({status:s,statusCode:t.statusCode})}function mX(t){return t===202?"running":t<300?"succeeded":"failed"}function cDe({rawResponse:t}){let e=t.headers["retry-after"];if(e!==void 0){let r=parseInt(e);return isNaN(r)?WDt(new Date(e)):r*1e3}}function uDe(t){let e=t.flatResponse.error;if(!e){Xy.warning("The long-running operation failed but there is no error property in the response's body");return}if(!e.code||!e.message){Xy.warning("The long-running operation failed but the error property in the response's body doesn't contain code or message");return}return e}function WDt(t){let e=Math.floor(new Date().getTime()),r=t.getTime();if(e<r)return r-e}function lDe(t){let{response:e,state:r,operationLocation:i}=t;function n(){var o;switch((o=r.config.metadata)===null||o===void 0?void 0:o.mode){case void 0:return mX(e.rawResponse.statusCode);case"Body":return AX(e,r);default:return"running"}}let s=n();return s==="running"&&i===void 0?"succeeded":s}async function JDt(t){let{stateProxy:e,resourceLocationConfig:r,processResult:i,lro:n,setErrorAsResult:s}=t;return eDe({init:async()=>{let o=await n.sendInitialRequest(),a=oDe({rawResponse:o.rawResponse,requestPath:n.requestPath,requestMethod:n.requestMethod,resourceLocationConfig:r});return Object.assign({response:o,operationLocation:a?.operationLocation,resourceLocation:a?.resourceLocation},a?.mode?{metadata:{mode:a.mode}}:{})},stateProxy:e,processResult:i?({flatResponse:o},a)=>i(o,a):({flatResponse:o})=>o,getOperationStatus:lDe,setErrorAsResult:s})}function fDe({rawResponse:t},e){var r;switch((r=e.config.metadata)===null||r===void 0?void 0:r.mode){case"OperationLocation":return rDe({operationLocation:nDe(t),azureAsyncOperation:sDe(t)});case"ResourceLocation":return iDe(t);default:return}}function AX({rawResponse:t},e){var r;let i=(r=e.config.metadata)===null||r===void 0?void 0:r.mode;switch(i){case"OperationLocation":return zDt(t);case"ResourceLocation":return mX(t.statusCode);case"Body":return $Dt(t);default:throw new Error(`Internal error: Unexpected operation mode: ${i}`)}}function hDe({flatResponse:t},e){if(typeof t=="object"Line truncated
`:case"\r":case" ":case" ":continue;default:throw Error("invalid base64 string.")}switch(n){case 0:o=s,n=1;break;case 1:r[i++]=o<<2|(s&48)>>4,o=s,n=2;break;case 2:r[i++]=(o&15)<<4|(s&60)>>2,o=s,n=3;break;case 3:r[i++]=(o&3)<<6|s,n=0;break}}if(n==1)throw Error("invalid base64 string.");return r.subarray(0,i)}fC.base64decode=DOt;function OOt(t){let e="",r=0,i,n=0;for(let s=0;s<t.length;s++)switch(i=t[s],r){case 0:e+=Vd[i>>2],n=(i&3)<<4,r=1;break;case 1:e+=Vd[n|i>>4],n=(i&15)<<2,r=2;break;case 2:e+=Vd[n|i>>6],e+=Vd[i&63],r=0;break}return r&&(e+=Vd[n],e+="=",r==1&&(e+="=")),e}fC.base64encode=OOt});var qDe=p(QL=>{"use strict";Object.defineProperty(QL,"__esModule",{value:!0});QL.utf8read=void 0;var vX=t=>String.fromCharCode.apply(String,t);function POt(t){if(t.length<1)return"";let e=0,r=[],i=[],n=0,s,o=t.length;for(;e<o;)s=t[e++],s<128?i[n++]=s:s>191&&s<224?i[n++]=(s&31)<<6|t[e++]&63:s>239&&s<365?(s=((s&7)<<18|(t[e++]&63)<<12|(t[e++]&63)<<6|t[e++]&63)-65536,i[n++]=55296+(s>>10),i[n++]=56320+(s&1023)):i[n++]=(s&15)<<12|(t[e++]&63)<<6|t[e++]&63,n>8191&&(r.push(vX(i)),n=0);return r.length?(n&&r.push(vX(i.slice(0,n))),r.join("")):vX(i.slice(0,n))}QL.utf8read=POt});var tR=p(Vf=>{"use strict";Object.defineProperty(Vf,"__esModule",{value:!0});Vf.WireType=Vf.mergeBinaryOptions=Vf.UnknownFieldHandler=void 0;var kOt;(function(t){t.symbol=Symbol.for("protobuf-ts/unknown"),t.onRead=(r,i,n,s,o)=>{(e(i)?i[t.symbol]:i[t.symbol]=[]).push({no:n,wireType:s,data:o})},t.onWrite=(r,i,n)=>{for(let{no:s,wireType:o,data:a}of t.list(i))n.tag(s,o).raw(a)},t.list=(r,i)=>{if(e(r)){let n=r[t.symbol];return i?n.filter(s=>s.no==i):n}return[]},t.last=(r,i)=>t.list(r,i).slice(-1)[0];let e=r=>r&&Array.isArray(r[t.symbol])})(kOt=Vf.UnknownFieldHandler||(Vf.UnknownFieldHandler={}));function QOt(t,e){return Object.assign(Object.assign({},t),e)}Vf.mergeBinaryOptions=QOt;var LOt;(function(t){t[t.Varint=0]="Varint",t[t.Bit64=1]="Bit64",t[t.LengthDelimited=2]="LengthDelimited",t[t.StartGroup=3]="StartGroup",t[t.EndGroup=4]="EndGroup",t[t.Bit32=5]="Bit32"})(LOt=Vf.WireType||(Vf.WireType={}))});var ML=p(ma=>{"use strict";Object.defineProperty(ma,"__esModule",{value:!0});ma.varint32read=ma.varint32write=ma.int64toString=ma.int64fromString=ma.varint64write=ma.varint64read=void 0;function MOt(){let t=0,e=0;for(let i=0;i<28;i+=7){let n=this.buf[this.pos++];if(t|=(n&127)<<i,(n&128)==0)return this.assertBounds(),[t,e]}let r=this.buf[this.pos++];if(t|=(r&15)<<28,e=(r&112)>>4,(r&128)==0)return this.assertBounds(),[t,e];for(let i=3;i<=31;i+=7){let n=this.buf[this.pos++];if(e|=(n&127)<<i,(n&128)==0)return this.assertBounds(),[t,e]}throw new Error("invalid varint")}ma.varint64read=MOt;function FOt(t,e,r){for(let s=0;s<28;s=s+7){let o=t>>>s,a=!(!(o>>>7)&&e==0),c=(a?o|128:o)&255;if(r.push(c),!a)return}let i=t>>>28&15|(e&7)<<4,n=e>>3!=0;if(r.push((n?i|128:i)&255),!!n){for(let s=3;s<31;s=s+7){let o=e>>>s,a=!!(o>>>7),c=(a?o|128:o)&255;if(r.push(c),!a)return}r.push(e>>>31&1)}}ma.varint64write=FOt;var LL=65536*65536;function UOt(t){let e=t[0]=="-";e&&(t=t.slice(1));let r=1e6,i=0,n=0;function s(o,a){let c=Number(t.slice(o,a));n*=r,i=i*r+c,i>=LL&&(n=n+(i/LL|0),i=i%LL)}return s(-24,-18),s(-18,-12),s(-12,-6),s(-6),[e,i,n]}ma.int64fromString=UOt;function qOt(t,e){if(e>>>0<=2097151)return""+(LL*e+(t>>>0));let r=t&16777215,i=(t>>>24|e<<8)>>>0&16777215,n=e>>16&65535,s=r+i*6777216+n*6710656,o=i+n*8147497,a=n*2,c=1e7;s>=c&&(o+=Math.floor(s/c),s%=c),o>=c&&(a+=Math.floor(o/c),o%=c);function u(l,f){let h=l?String(l):"";return f?"0000000".slice(h.length)+h:h}return u(a,0)+u(o,a)+u(s,1)}ma.int64toString=qOt;function GOt(t,e){if(t>=0){for(;t>127;)e.push(t&127|128),t=t>>>7;e.push(t)}else{for(let r=0;r<9;r++)e.push(t&127|128),t=t>>7;e.push(1)}}ma.varint32write=GOt;function HOt(){let t=this.buf[this.pos++],e=t&127;if((t&128)==0)return this.assertBounds(),e;if(t=this.buf[this.pos++],e|=(t&127)<<7,(t&128)==0)return this.assertBounds(),e;if(t=this.buf[this.pos++],e|=(t&127)<<14,(t&128)==0)return this.assertBounds(),e;if(t=this.buf[this.pos++],e|=(t&127)<<21,(t&128)==0)return this.assertBounds(),e;t=this.buf[this.pos++],e|=(t&15)<<28;for(let r=5;(t&128)!==0&&r<10;r++)t=this.buf[this.pos++];if((t&128)!=0)throw new Error("invalid varint");return this.assertBounds(),e>>>0}ma.varint32read=HOt});var sA=p(nA=>{"use strict";Object.defineProperty(nA,"__esModule",{value:!0});nA.PbLong=nA.PbULong=nA.detectBi=void 0;var rR=ML(),mr;function GDe(){let t=new DataView(new ArrayBuffer(8));mr=globalThis.BigInt!==void 0&&typeof t.getBigInt64=="function"&&typeof t.getBigUint64=="function"&&typeof t.setBigInt64=="function"&&typeof t.setBigUint64=="function"?{MIN:BigInt("-9223372036854775808"),MAX:BigInt("9223372036854775807"),UMIN:BigInt("0"),UMAX:BigInt("18446744073709551615"),C:BigInt,V:t}:void 0}nA.detectBi=GDe;GDe();function HDe(t){if(!t)throw new Error("BigInt unavailable, see https://github.com/timostamm/protobuf-ts/blob/v1.0.8/MANUAL.md#bigint-support")}var jDe=/^-?[0-9]+$/,UL=4294967296,FL=2147483648,qL=c Line truncated
`)}};fM.RpcError=ZX});var tZ=p(dM=>{"use strict";Object.defineProperty(dM,"__esModule",{value:!0});dM.mergeRpcOptions=void 0;var bOe=Ri();function fkt(t,e){if(!e)return t;let r={};hM(t,r),hM(e,r);for(let i of Object.keys(e)){let n=e[i];switch(i){case"jsonOptions":r.jsonOptions=bOe.mergeJsonOptions(t.jsonOptions,r.jsonOptions);break;case"binaryOptions":r.binaryOptions=bOe.mergeBinaryOptions(t.binaryOptions,r.binaryOptions);break;case"meta":r.meta={},hM(t.meta,r.meta),hM(e.meta,r.meta);break;case"interceptors":r.interceptors=t.interceptors?t.interceptors.concat(n):n.concat();break}}return r}dM.mergeRpcOptions=fkt;function hM(t,e){if(!t)return;let r=e;for(let[i,n]of Object.entries(t))n instanceof Date?r[i]=new Date(n.getTime()):Array.isArray(n)?r[i]=n.concat():r[i]=n}});var iZ=p(iE=>{"use strict";Object.defineProperty(iE,"__esModule",{value:!0});iE.Deferred=iE.DeferredState=void 0;var Wf;(function(t){t[t.PENDING=0]="PENDING",t[t.REJECTED=1]="REJECTED",t[t.RESOLVED=2]="RESOLVED"})(Wf=iE.DeferredState||(iE.DeferredState={}));var rZ=class{constructor(e=!0){this._state=Wf.PENDING,this._promise=new Promise((r,i)=>{this._resolve=r,this._reject=i}),e&&this._promise.catch(r=>{})}get state(){return this._state}get promise(){return this._promise}resolve(e){if(this.state!==Wf.PENDING)throw new Error(`cannot resolve ${Wf[this.state].toLowerCase()}`);this._resolve(e),this._state=Wf.RESOLVED}reject(e){if(this.state!==Wf.PENDING)throw new Error(`cannot reject ${Wf[this.state].toLowerCase()}`);this._reject(e),this._state=Wf.REJECTED}resolvePending(e){this._state===Wf.PENDING&&this.resolve(e)}rejectPending(e){this._state===Wf.PENDING&&this.reject(e)}};iE.Deferred=rZ});var sZ=p(pM=>{"use strict";Object.defineProperty(pM,"__esModule",{value:!0});pM.RpcOutputStreamController=void 0;var wOe=iZ(),nE=Ri(),nZ=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 i=r.indexOf(e);i>=0&&r.splice(i,1)}}clearLis(){for(let e of Object.values(this._lis))e.splice(0,e.length)}get closed(){return this._closed!==!1}notifyNext(e,r,i){nE.assert((e?1:0)+(r?1:0)+(i?1:0)<=1,"only one emission at a time"),e&&this.notifyMessage(e),r&&this.notifyError(r),i&&this.notifyComplete()}notifyMessage(e){nE.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){nE.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(){nE.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;nE.assert(e,"bad state"),nE.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 wOe.Deferred,e.p.promise)}}}pushIt(e){let r=this._itState;if(r.p){let i=r.p;nE.assert(i.state==wOe.DeferredState.PENDING,"iterator contract broken"),"value"in e?i.resolve(e):i.reject(e),delete r.p}else r.q.push(e)}};pM.RpcOutputStreamController=nZ});var aZ=p(yC=>{"use strict";var hkt=yC&&yC.__awaiter||function(t,e,r,i){function n(s){return s instanceof r?s:new r(function(o){o(s)})}return new(r||(r=Promise))(function(s,o){function a(l){try{u(i.next(l))}catch(f){o(f)}}function c(l){try{u(i.throw(l))}catch(f){o(f)}}function u(l){l.done?s(l.value):n(l.value).then(a,c)}u((i=i.apply(t,e||[])).next())})};Object.defineProperty(yC,"__esModule",{value:!0});yC.UnaryCall=void 0;var oZ=class{constructor(e,r,i,n,s,o,a){this.method=e,this.requestHeaders=r,this.request=i,this.headers=n,this.response=s,this.status=o,this.trailers=a}then(e,r){return this.promiseFinished().then(i=>e?Promise.resolve(e(i)):i,i=>r?Promise.resolve(r(i)):Promise.reject(i))}promiseFinished(){return hkt(this,void 0,void 0,function*(){let[e,r,i,n]=yield Promise.all([this.headers,this.response,this.status,this.trailers]);return{method:this.method,requestHeaders:this.requestHeaders,request:this.request,headers:e,response:r,status:i,trailers:n}})}};yC.UnaryCall=oZ});var uZ=p(EC=>{"use strict";var dkt=EC&&EC.__awaiter||function(t,e,r,i){function n(s){return s instanceof r?s:new r(function(o){o(s)})}return new(r||(r=Promise))(function(s,o){function a(l){try{u(i.next(l))}catch(f){o(f)}}function c(l){try{u(i.throw(l))}catch(f){o(f)}}function u(l){l.done?s(l.value):n(l.value).then(a,c)}u((i=i.apply(t,e||[])).next())})};Object.defineProperty(EC,"__esModule",{value:!0});EC.ServerStreamingCall=void 0;var cZ=class{constructor(e Line truncated
You can add a runtime option to disable the check or this warning:
See https://handlebarsjs.com/api-reference/runtime-options.html#options-to-control-prototype-access for details`))}function avr(){Object.keys(LH).forEach(function(t){delete LH[t]})}});var MH=p(ed=>{"use strict";ed.__esModule=!0;ed.HandlebarsEnvironment=Sme;function rst(t){return t&&t.__esModule?t:{default:t}}var $0=Ho(),cvr=Bc(),Cme=rst(cvr),uvr=yme(),lvr=Xnt(),fvr=bme(),FH=rst(fvr),hvr=wme(),dvr="4.7.9";ed.VERSION=dvr;var pvr=8;ed.COMPILER_REVISION=pvr;var mvr=7;ed.LAST_COMPATIBLE_COMPILER_REVISION=mvr;var Avr={1:"<= 1.0.rc.2",2:"== 1.0.0-rc.3",3:"== 1.0.0-rc.4",4:"== 1.x.x",5:"== 2.0.0-alpha.x",6:">= 2.0.0-beta.1",7:">= 4.0.0 <4.3.0",8:">= 4.3.0"};ed.REVISION_CHANGES=Avr;var Ime="[object Object]";function Sme(t,e,r){this.helpers=t||{},this.partials=e||{},this.decorators=r||{},uvr.registerDefaultHelpers(this),lvr.registerDefaultDecorators(this)}Sme.prototype={constructor:Sme,logger:FH.default,log:FH.default.log,registerHelper:function(e,r){if($0.toString.call(e)===Ime){if(r)throw new Cme.default("Arg not supported with multiple helpers");$0.extend(this.helpers,e)}else this.helpers[e]=r},unregisterHelper:function(e){delete this.helpers[e]},registerPartial:function(e,r){if($0.toString.call(e)===Ime)$0.extend(this.partials,e);else{if(typeof r>"u")throw new Cme.default('Attempting to register a partial called "'+e+'" as undefined');this.partials[e]=r}},unregisterPartial:function(e){delete this.partials[e]},registerDecorator:function(e,r){if($0.toString.call(e)===Ime){if(r)throw new Cme.default("Arg not supported with multiple decorators");$0.extend(this.decorators,e)}else this.decorators[e]=r},unregisterDecorator:function(e){delete this.decorators[e]},resetLoggedPropertyAccesses:function(){hvr.resetLoggedProperties()}};var gvr=FH.default.log;ed.log=gvr;ed.createFrame=$0.createFrame;ed.logger=FH.default});var nst=p((UH,ist)=>{"use strict";UH.__esModule=!0;function Bme(t){this.string=t}Bme.prototype.toString=Bme.prototype.toHTML=function(){return""+this.string};UH.default=Bme;ist.exports=UH.default});var sst=p(vme=>{"use strict";vme.__esModule=!0;vme.wrapHelper=yvr;function yvr(t,e){if(typeof t!="function")return t;var r=function(){var n=arguments[arguments.length-1];return arguments[arguments.length-1]=e(n),t.apply(this,arguments)};return r}});var fst=p(Ig=>{"use strict";Ig.__esModule=!0;Ig.checkRevision=Svr;Ig.template=Bvr;Ig.wrapProgram=qH;Ig.resolvePartial=vvr;Ig.invokePartial=xvr;Ig.noop=ust;function Evr(t){return t&&t.__esModule?t:{default:t}}function bvr(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e.default=t,e}var wvr=Ho(),UB=bvr(wvr),Cvr=Bc(),rm=Evr(Cvr),im=MH(),ost=yme(),Ivr=sst(),ast=wme();function Svr(t){var e=t&&t[0]||1,r=im.COMPILER_REVISION;if(!(e>=im.LAST_COMPATIBLE_COMPILER_REVISION&&e<=im.COMPILER_REVISION))if(e<im.LAST_COMPATIBLE_COMPILER_REVISION){var i=im.REVISION_CHANGES[r],n=im.REVISION_CHANGES[e];throw new rm.default("Template was precompiled with an older version of Handlebars than the current runtime. Please update your precompiler to a newer version ("+i+") or downgrade your runtime to an older version ("+n+").")}else throw new rm.default("Template was precompiled with a newer version of Handlebars than the current runtime. Please update your runtime to a newer version ("+t[1]+").")}function Bvr(t,e){if(!e)throw new rm.default("No environment passed to template");if(!t||!t.main)throw new rm.default("Unknown template object: "+typeof t);t.main.decorator=t.main_d,e.VM.checkRevision(t.compiler);var r=t.compiler&&t.compiler[0]===7;function i(o,a,c){c.hash&&(a=UB.extend({},a,c.hash),c.ids&&(c.ids[0]=!0)),o=e.VM.resolvePartial.call(this,o,a,c),c.hooks=this.hooks,c.protoAccessControl=this.protoAccessControl;var u=e.VM.invokePartial.call(this,o,a,c);if(u==null&&e.compile&&(c.partials[c.name]=e.compile(o,t.compilerOptions,e),u=c.partials[c.name](a,c)),u!=null){if(c.indent){for(var l=u.split(`
See https://handlebarsjs.com/api-reference/runtime-options.html#options-to-control-prototype-access for details`))}function hUt(){Object.keys(JM).forEach(function(t){delete JM[t]})}});var KM=p(Xf=>{"use strict";Xf.__esModule=!0;Xf.HandlebarsEnvironment=vee;function BQe(t){return t&&t.__esModule?t:{default:t}}var uE=Co(),dUt=hc(),See=BQe(dUt),pUt=bee(),mUt=wQe(),AUt=Cee(),YM=BQe(AUt),gUt=Iee(),yUt="4.7.9";Xf.VERSION=yUt;var EUt=8;Xf.COMPILER_REVISION=EUt;var bUt=7;Xf.LAST_COMPATIBLE_COMPILER_REVISION=bUt;var wUt={1:"<= 1.0.rc.2",2:"== 1.0.0-rc.3",3:"== 1.0.0-rc.4",4:"== 1.x.x",5:"== 2.0.0-alpha.x",6:">= 2.0.0-beta.1",7:">= 4.0.0 <4.3.0",8:">= 4.3.0"};Xf.REVISION_CHANGES=wUt;var Bee="[object Object]";function vee(t,e,r){this.helpers=t||{},this.partials=e||{},this.decorators=r||{},pUt.registerDefaultHelpers(this),mUt.registerDefaultDecorators(this)}vee.prototype={constructor:vee,logger:YM.default,log:YM.default.log,registerHelper:function(e,r){if(uE.toString.call(e)===Bee){if(r)throw new See.default("Arg not supported with multiple helpers");uE.extend(this.helpers,e)}else this.helpers[e]=r},unregisterHelper:function(e){delete this.helpers[e]},registerPartial:function(e,r){if(uE.toString.call(e)===Bee)uE.extend(this.partials,e);else{if(typeof r>"u")throw new See.default('Attempting to register a partial called "'+e+'" as undefined');this.partials[e]=r}},unregisterPartial:function(e){delete this.partials[e]},registerDecorator:function(e,r){if(uE.toString.call(e)===Bee){if(r)throw new See.default("Arg not supported with multiple decorators");uE.extend(this.decorators,e)}else this.decorators[e]=r},unregisterDecorator:function(e){delete this.decorators[e]},resetLoggedPropertyAccesses:function(){gUt.resetLoggedProperties()}};var CUt=YM.default.log;Xf.log=CUt;Xf.createFrame=uE.createFrame;Xf.logger=YM.default});var _Qe=p((XM,vQe)=>{"use strict";XM.__esModule=!0;function _ee(t){this.string=t}_ee.prototype.toString=_ee.prototype.toHTML=function(){return""+this.string};XM.default=_ee;vQe.exports=XM.default});var xQe=p(xee=>{"use strict";xee.__esModule=!0;xee.wrapHelper=IUt;function IUt(t,e){if(typeof t!="function")return t;var r=function(){var n=arguments[arguments.length-1];return arguments[arguments.length-1]=e(n),t.apply(this,arguments)};return r}});var PQe=p(uA=>{"use strict";uA.__esModule=!0;uA.checkRevision=RUt;uA.template=TUt;uA.wrapProgram=ZM;uA.resolvePartial=NUt;uA.invokePartial=DUt;uA.noop=DQe;function SUt(t){return t&&t.__esModule?t:{default:t}}function BUt(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e.default=t,e}var vUt=Co(),DC=BUt(vUt),_Ut=hc(),Wd=SUt(_Ut),Jd=KM(),RQe=bee(),xUt=xQe(),TQe=Iee();function RUt(t){var e=t&&t[0]||1,r=Jd.COMPILER_REVISION;if(!(e>=Jd.LAST_COMPATIBLE_COMPILER_REVISION&&e<=Jd.COMPILER_REVISION))if(e<Jd.LAST_COMPATIBLE_COMPILER_REVISION){var i=Jd.REVISION_CHANGES[r],n=Jd.REVISION_CHANGES[e];throw new Wd.default("Template was precompiled with an older version of Handlebars than the current runtime. Please update your precompiler to a newer version ("+i+") or downgrade your runtime to an older version ("+n+").")}else throw new Wd.default("Template was precompiled with a newer version of Handlebars than the current runtime. Please update your runtime to a newer version ("+t[1]+").")}function TUt(t,e){if(!e)throw new Wd.default("No environment passed to template");if(!t||!t.main)throw new Wd.default("Unknown template object: "+typeof t);t.main.decorator=t.main_d,e.VM.checkRevision(t.compiler);var r=t.compiler&&t.compiler[0]===7;function i(o,a,c){c.hash&&(a=DC.extend({},a,c.hash),c.ids&&(c.ids[0]=!0)),o=e.VM.resolvePartial.call(this,o,a,c),c.hooks=this.hooks,c.protoAccessControl=this.protoAccessControl;var u=e.VM.invokePartial.call(this,o,a,c);if(u==null&&e.compile&&(c.partials[c.name]=e.compile(o,t.compilerOptions,e),u=c.partials[c.name](a,c)),u!=null){if(c.indent){for(var l=u.split(`
`),f=0,h=l.length;f<h&&!(!l[f]&&f+1===h);f++)l[f]=c.indent+l[f];u=l.join(`
`)}return u}else throw new rm.default("The partial "+c.name+" could not be compiled when running in runtime-only mode")}var n={strict:function(a,c,u){if(!a||!(c in a))throw new rm.default('"'+c+'" not defined in '+a,{loc:u});return n.lookupProperty(a,c)},lookupProperty:function(a,c){var u=a[c];if(u==null||Object.prototype.hasOwnProperty.call(a,c)||ast.resultIsAllowed(u,n.protoAccessControl,c))return u},lookup:function(a,c){for(var u=a.length,l=0;l<u;l++){var f=a[l]&&n.lookupProperty(a[l],c);if(f!=null)return f}},lambda:function(a,c){return typeof a=="function"?a.call(c):a},escapeExpression:UB.escapeExpression,invokePartial:i,fn:function(a){var c=t[a];return c.decorator=t[a+"_d"],c},programs:[],program:function(a,c,u,l,f){var h=this.programs[a],d=this.fn(a);return c||f||l||u?h=qH(this,a,d,c,u,l,f):h||(h=this.programs[a]=qH(this,a,d)),h},data:function(a,c){for(;a&&c--;)a=a._parent;return a},mergeIfNeeded:function(a,c){var u=a||c;return a&&c&&a!==c&&(u=UB.extend({},c,a)),u},nullContext:Object.seal({}),noop:e.VM.noop,compilerInfo:t.compiler};function s(o){var a=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],c=a.data;s._setup(a),!a.partial&&t.useData&&(c=_vr(o,c));var u=void 0,l=t.useBlockParams?[]:void 0;t.useDepths&&(a.depths?u=o!=a.depths[0]?[o].concat(a.depths):a.depths:u=[o]);function f(h){return""+t.main(n,h,n.helpers,n.partials,c,l,u)}return f=lst(t.main,f,n,a.depths||[],c,l),f(o,a)}return s.isTop=!0,s._setup=function(o){if(o.partial)n.protoAccessControl=o.protoAccessControl,n.helpers=o.helpers,n.partials=o.partials,n.decorators=o.decorators,n.hooks=o.hooks;else{var a={};cst(a,e.helpers,n),cst(a,o.helpers,n),n.helpers=a,t.usePartial&&(n.partials=n.mergeIfNeeded(o.partials,e.partials)),(t.usePartial||t.useDecorators)&&(n.decorators=UB.extend({},e.decorators,o.decorators)),n.hooks={},n.protoAccessControl=ast.createProtoAccessControl(o);var c=o.allowCallsToHelperMissing||r;ost.moveHelperToHooks(n,"helperMissing",c),ost.moveHelperToHooks(n,"blockHelperMissing",c)}},s._child=function(o,a,c,u){if(t.useBlockParams&&!c)throw new rm.default("must pass block params");if(t.useDepths&&!u)throw new rm.default("must pass parent depths");return qH(n,o,t[o],a,0,c,u)},s}function qH(t,e,r,i,n,s,o){function a(c){var u=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],l=o;return o&&c!=o[0]&&!(c===t.nullContext&&o[0]===null)&&(l=[c].concat(o)),r(t,c,t.helpers,t.partials,u.data||i,s&&[u.blockParams].concat(s),l)}return a=lst(r,a,t,o,i,s),a.program=e,a.depth=o?o.length:0,a.blockParams=n||0,a}function vvr(t,e,r){return t?!t.call&&!r.name&&(r.name=t,t=GH(r.partials,t)):r.name==="@partial-block"?t=GH(r.data,"partial-block"):t=GH(r.partials,r.name),t}function xvr(t,e,r){var i=GH(r.data,"partial-block");r.partial=!0,r.ids&&(r.data.contextPath=r.ids[0]||r.data.contextPath);var n=void 0;if(r.fn&&r.fn!==ust&&(function(){r.data=im.createFrame(r.data);var s=r.fn;n=r.data["partial-block"]=function(a){var c=arguments.length<=1||arguments[1]===void 0?{}:arguments[1];return c.data=im.createFrame(c.data),c.data["partial-block"]=i,s(a,c)},s.partials&&(r.partials=UB.extend({},r.partials,s.partials))})(),t===void 0&&n&&(t=n),t===void 0)throw new rm.default("The partial "+r.name+" could not be found");if(t instanceof Function)return t(e,r)}function ust(){return""}function GH(t,e){if(t&&Object.prototype.hasOwnProperty.call(t,e))return t[e]}function _vr(t,e){return(!e||!("root"in e))&&(e=e?im.createFrame(e):{},e.root=t),e}function lst(t,e,r,i,n,s){if(t.decorator){var o={};e=t.decorator(e,o,r,i&&i[0],n,s,i),UB.extend(e,o)}return e}function cst(t,e,r){e&&Object.keys(e).forEach(function(i){var n=e[i];t[i]=Rvr(n,r)})}function Rvr(t,e){var r=e.lookupProperty;return Ivr.wrapHelper(t,function(i){return i.lookupProperty=r,i})}});var xme=p((HH,hst)=>{"use strict";HH.__esModule=!0;HH.default=function(t){(function(){typeof globalThis!="object"&&(Object.prototype.__defineGetter__("__magic__",function(){return this}),__magic__.globalThis=__magic__,delete Object.prototype.__magic__)})();var e=globalThis.Handlebars;t.noConflict=function(){return globalThis.Handlebars===t&&(globalThis.Handlebars=e),t}};hst.exports=HH.default});var gst=p((jH,Ast)=>{"use strict";jH.__esModule=!0;function Rme(t){return t&&t.__esModule?t:{default:t}}function Tme(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e.default=t,e}var Tvr=MH(),dst=Tme(Tvr),Nvr=nst(),Dvr=Rme(Nvr),Ovr=Bc(),Pvr=Rme(Ovr),kvr=Ho(),_me=Tme(kvr),Qvr=fst(),pst=Tme(Qvr),Lvr=xme(),Fvr=Rme(Lvr);function mst(){var t=new dst.HandlebarsEnvironment;return _me.extend(t,dst),t.SafeString=Dvr.default,t.Exception=Pvr.default,t.Utils=_me,t.escapeExpression=_me.escapeExpression,t.VM=pst,t.template=function(e){return pst.template(e,t)},t}var O2=mst();O2.create=mst;Fvr.default(O2);O2.default=O2;jH.default=O2;Ast.exports=jH.default});var Nme=p((VH,Est)=>{"use strict";VH.__esModule=!0;var yst={helpers:{helperExpression:function(e){re Line truncated
`)}return u}else throw new Wd.default("The partial "+c.name+" could not be compiled when running in runtime-only mode")}var n={strict:function(a,c,u){if(!a||!(c in a))throw new Wd.default('"'+c+'" not defined in '+a,{loc:u});return n.lookupProperty(a,c)},lookupProperty:function(a,c){var u=a[c];if(u==null||Object.prototype.hasOwnProperty.call(a,c)||TQe.resultIsAllowed(u,n.protoAccessControl,c))return u},lookup:function(a,c){for(var u=a.length,l=0;l<u;l++){var f=a[l]&&n.lookupProperty(a[l],c);if(f!=null)return f}},lambda:function(a,c){return typeof a=="function"?a.call(c):a},escapeExpression:DC.escapeExpression,invokePartial:i,fn:function(a){var c=t[a];return c.decorator=t[a+"_d"],c},programs:[],program:function(a,c,u,l,f){var h=this.programs[a],d=this.fn(a);return c||f||l||u?h=ZM(this,a,d,c,u,l,f):h||(h=this.programs[a]=ZM(this,a,d)),h},data:function(a,c){for(;a&&c--;)a=a._parent;return a},mergeIfNeeded:function(a,c){var u=a||c;return a&&c&&a!==c&&(u=DC.extend({},c,a)),u},nullContext:Object.seal({}),noop:e.VM.noop,compilerInfo:t.compiler};function s(o){var a=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],c=a.data;s._setup(a),!a.partial&&t.useData&&(c=OUt(o,c));var u=void 0,l=t.useBlockParams?[]:void 0;t.useDepths&&(a.depths?u=o!=a.depths[0]?[o].concat(a.depths):a.depths:u=[o]);function f(h){return""+t.main(n,h,n.helpers,n.partials,c,l,u)}return f=OQe(t.main,f,n,a.depths||[],c,l),f(o,a)}return s.isTop=!0,s._setup=function(o){if(o.partial)n.protoAccessControl=o.protoAccessControl,n.helpers=o.helpers,n.partials=o.partials,n.decorators=o.decorators,n.hooks=o.hooks;else{var a={};NQe(a,e.helpers,n),NQe(a,o.helpers,n),n.helpers=a,t.usePartial&&(n.partials=n.mergeIfNeeded(o.partials,e.partials)),(t.usePartial||t.useDecorators)&&(n.decorators=DC.extend({},e.decorators,o.decorators)),n.hooks={},n.protoAccessControl=TQe.createProtoAccessControl(o);var c=o.allowCallsToHelperMissing||r;RQe.moveHelperToHooks(n,"helperMissing",c),RQe.moveHelperToHooks(n,"blockHelperMissing",c)}},s._child=function(o,a,c,u){if(t.useBlockParams&&!c)throw new Wd.default("must pass block params");if(t.useDepths&&!u)throw new Wd.default("must pass parent depths");return ZM(n,o,t[o],a,0,c,u)},s}function ZM(t,e,r,i,n,s,o){function a(c){var u=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],l=o;return o&&c!=o[0]&&!(c===t.nullContext&&o[0]===null)&&(l=[c].concat(o)),r(t,c,t.helpers,t.partials,u.data||i,s&&[u.blockParams].concat(s),l)}return a=OQe(r,a,t,o,i,s),a.program=e,a.depth=o?o.length:0,a.blockParams=n||0,a}function NUt(t,e,r){return t?!t.call&&!r.name&&(r.name=t,t=eF(r.partials,t)):r.name==="@partial-block"?t=eF(r.data,"partial-block"):t=eF(r.partials,r.name),t}function DUt(t,e,r){var i=eF(r.data,"partial-block");r.partial=!0,r.ids&&(r.data.contextPath=r.ids[0]||r.data.contextPath);var n=void 0;if(r.fn&&r.fn!==DQe&&(function(){r.data=Jd.createFrame(r.data);var s=r.fn;n=r.data["partial-block"]=function(a){var c=arguments.length<=1||arguments[1]===void 0?{}:arguments[1];return c.data=Jd.createFrame(c.data),c.data["partial-block"]=i,s(a,c)},s.partials&&(r.partials=DC.extend({},r.partials,s.partials))})(),t===void 0&&n&&(t=n),t===void 0)throw new Wd.default("The partial "+r.name+" could not be found");if(t instanceof Function)return t(e,r)}function DQe(){return""}function eF(t,e){if(t&&Object.prototype.hasOwnProperty.call(t,e))return t[e]}function OUt(t,e){return(!e||!("root"in e))&&(e=e?Jd.createFrame(e):{},e.root=t),e}function OQe(t,e,r,i,n,s){if(t.decorator){var o={};e=t.decorator(e,o,r,i&&i[0],n,s,i),DC.extend(e,o)}return e}function NQe(t,e,r){e&&Object.keys(e).forEach(function(i){var n=e[i];t[i]=PUt(n,r)})}function PUt(t,e){var r=e.lookupProperty;return xUt.wrapHelper(t,function(i){return i.lookupProperty=r,i})}});var Ree=p((tF,kQe)=>{"use strict";tF.__esModule=!0;tF.default=function(t){(function(){typeof globalThis!="object"&&(Object.prototype.__defineGetter__("__magic__",function(){return this}),__magic__.globalThis=__magic__,delete Object.prototype.__magic__)})();var e=globalThis.Handlebars;t.noConflict=function(){return globalThis.Handlebars===t&&(globalThis.Handlebars=e),t}};kQe.exports=tF.default});var UQe=p((rF,FQe)=>{"use strict";rF.__esModule=!0;function Nee(t){return t&&t.__esModule?t:{default:t}}function Dee(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e.default=t,e}var kUt=KM(),QQe=Dee(kUt),QUt=_Qe(),LUt=Nee(QUt),MUt=hc(),FUt=Nee(MUt),UUt=Co(),Tee=Dee(UUt),qUt=PQe(),LQe=Dee(qUt),GUt=Ree(),HUt=Nee(GUt);function MQe(){var t=new QQe.HandlebarsEnvironment;return Tee.extend(t,QQe),t.SafeString=LUt.default,t.Exception=FUt.default,t.Utils=Tee,t.escapeExpression=Tee.escapeExpression,t.VM=LQe,t.template=function(e){return LQe.template(e,t)},t}var vR=MQe();vR.create=MQe;HUt.default(vR);vR.default=vR;rF.default=vR;FQe.exports=rF.default});var Oee=p((iF,GQe)=>{"use strict";iF.__esModule=!0;var qQe={helpers:{helperExpression:function(e){re Line truncated
`+this.lexer.showPosition()+`
Expecting `+De.join(", ")+", got '"+(this.terminals_[S]||S)+"'":de="Parse error on line "+(f+1)+": Unexpected "+(S==1?"end of input":"'"+(this.terminals_[S]||S)+"'"),this.parseError(de,{text:this.lexer.match,token:this.terminals_[S]||S,line:this.lexer.yylineno,loc:y,expected:De})}}if(T[0]instanceof Array&&T.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Q+", token: "+S);switch(T[0]){case 1:o.push(S),a.push(this.lexer.yytext),c.push(this.lexer.yylloc),o.push(T[1]),S=null,N?(S=N,N=null):(h=this.lexer.yyleng,l=this.lexer.yytext,f=this.lexer.yylineno,y=this.lexer.yylloc,d>0&&d--);break;case 2:if(Z=this.productions_[T[1]][1],H.$=a[a.length-Z],H._$={first_line:c[c.length-(Z||1)].first_line,last_line:c[c.length-1].last_line,first_column:c[c.length-(Z||1)].first_column,last_column:c[c.length-1].last_column},g&&(H._$.range=[c[c.length-(Z||1)].range[0],c[c.length-1].range[1]]),D=this.performAction.call(H,l,h,f,this.yy,T[1],a,c),typeof D<"u")return D;Z&&(o=o.slice(0,-1*Z*2),a=a.slice(0,-1*Z),c=c.slice(0,-1*Z)),o.push(this.productions_[T[1]][0]),a.push(H.$),c.push(H._$),$=u[o[o.length-2]][o[o.length-1]],o.push($);break;case 3:return!0}}return!0}},e=(function(){var i={EOF:1,parseError:function(s,o){if(this.yy.parser)this.yy.parser.parseError(s,o);else throw new Error(s)},setInput:function(s){return this._input=s,this._more=this._less=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var s=this._input[0];this.yytext+=s,this.yyleng++,this.offset++,this.match+=s,this.matched+=s;var o=s.match(/(?:\r\n?|\n).*/g);return o?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),s},unput:function(s){var o=s.length,a=s.split(/(?:\r\n?|\n)/g);this._input=s+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-o-1),this.offset-=o;var c=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),a.length-1&&(this.yylineno-=a.length-1);var u=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:a?(a.length===c.length?this.yylloc.first_column:0)+c[c.length-a.length].length-a[0].length:this.yylloc.first_column-o},this.options.ranges&&(this.yylloc.range=[u[0],u[0]+this.yyleng-o]),this},more:function(){return this._more=!0,this},less:function(s){this.unput(this.match.slice(s))},pastInput:function(){var s=this.matched.substr(0,this.matched.length-this.match.length);return(s.length>20?"...":"")+s.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var s=this.match;return s.length<20&&(s+=this._input.substr(0,20-s.length)),(s.substr(0,20)+(s.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var s=this.pastInput(),o=new Array(s.length+1).join("-");return s+this.upcomingInput()+`
Expecting `+De.join(", ")+", got '"+(this.terminals_[S]||S)+"'":de="Parse error on line "+(f+1)+": Unexpected "+(S==1?"end of input":"'"+(this.terminals_[S]||S)+"'"),this.parseError(de,{text:this.lexer.match,token:this.terminals_[S]||S,line:this.lexer.yylineno,loc:y,expected:De})}}if(T[0]instanceof Array&&T.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Q+", token: "+S);switch(T[0]){case 1:o.push(S),a.push(this.lexer.yytext),c.push(this.lexer.yylloc),o.push(T[1]),S=null,N?(S=N,N=null):(h=this.lexer.yyleng,l=this.lexer.yytext,f=this.lexer.yylineno,y=this.lexer.yylloc,d>0&&d--);break;case 2:if(Z=this.productions_[T[1]][1],H.$=a[a.length-Z],H._$={first_line:c[c.length-(Z||1)].first_line,last_line:c[c.length-1].last_line,first_column:c[c.length-(Z||1)].first_column,last_column:c[c.length-1].last_column},g&&(H._$.range=[c[c.length-(Z||1)].range[0],c[c.length-1].range[1]]),D=this.performAction.call(H,l,h,f,this.yy,T[1],a,c),typeof D<"u")return D;Z&&(o=o.slice(0,-1*Z*2),a=a.slice(0,-1*Z),c=c.slice(0,-1*Z)),o.push(this.productions_[T[1]][0]),a.push(H.$),c.push(H._$),W=u[o[o.length-2]][o[o.length-1]],o.push(W);break;case 3:return!0}}return!0}},e=(function(){var i={EOF:1,parseError:function(s,o){if(this.yy.parser)this.yy.parser.parseError(s,o);else throw new Error(s)},setInput:function(s){return this._input=s,this._more=this._less=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var s=this._input[0];this.yytext+=s,this.yyleng++,this.offset++,this.match+=s,this.matched+=s;var o=s.match(/(?:\r\n?|\n).*/g);return o?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),s},unput:function(s){var o=s.length,a=s.split(/(?:\r\n?|\n)/g);this._input=s+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-o-1),this.offset-=o;var c=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),a.length-1&&(this.yylineno-=a.length-1);var u=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:a?(a.length===c.length?this.yylloc.first_column:0)+c[c.length-a.length].length-a[0].length:this.yylloc.first_column-o},this.options.ranges&&(this.yylloc.range=[u[0],u[0]+this.yyleng-o]),this},more:function(){return this._more=!0,this},less:function(s){this.unput(this.match.slice(s))},pastInput:function(){var s=this.matched.substr(0,this.matched.length-this.match.length);return(s.length>20?"...":"")+s.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var s=this.match;return s.length<20&&(s+=this._input.substr(0,20-s.length)),(s.substr(0,20)+(s.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var s=this.pastInput(),o=new Array(s.length+1).join("-");return s+this.upcomingInput()+`
`+o+"^"},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var s,o,a,c,u,l;this._more||(this.yytext="",this.match="");for(var f=this._currentRules(),h=0;h<f.length&&(a=this._input.match(this.rules[f[h]]),!(a&&(!o||a[0].length>o[0].length)&&(o=a,c=h,!this.options.flex)));h++);return o?(l=o[0].match(/(?:\r\n?|\n).*/g),l&&(this.yylineno+=l.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:l?l[l.length-1].length-l[l.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+o[0].length},this.yytext+=o[0],this.match+=o[0],this.matches=o,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._input=this._input.slice(o[0].length),this.matched+=o[0],s=this.performAction.call(this,this.yy,this,f[c],this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),s||void 0):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var s=this.next();return typeof s<"u"?s:this.lex()},begin:function(s){this.conditionStack.push(s)},popState:function(){return this.conditionStack.pop()},_currentRules:function(){return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules},topState:function(){return this.conditionStack[this.conditionStack.length-2]},pushState:function(s){this.begin(s)}};return i.options={},i.performAction=function(s,o,a,c){function u(f,h){return o.yytext=o.yytext.substring(f,o.yyleng-h+f)}var l=c;switch(a){case 0:if(o.yytext.slice(-2)==="\\\\"?(u(0,1),this.begin("mu")):o.yytext.slice(-1)==="\\"?(u(0,1),this.begin("emu")):this.begin("mu"),o.yytext)return 15;break;case 1:return 15;case 2:return this.popState(),15;break;case 3:return this.begin("raw"),15;break;case 4:return this.popState(),this.conditionStack[this.conditionStack.length-1]==="raw"?15:(u(5,9),"END_RAW_BLOCK");case 5:return 15;case 6:return this.popState(),14;break;case 7:return 65;case 8:return 68;case 9:return 19;case 10:return this.popState(),this.begin("raw"),23;break;case 11:return 55;case 12:return 60;case 13:return 29;case 14:return 47;case 15:return this.popState(),44;break;case 16:return this.popState(),44;break;case 17:return 34;case 18:return 39;case 19:return 51;case 20:return 48;case 21:this.unput(o.yytext),this.popState(),this.begin("com");break;case 22:return this.popState(),14;break;case 23:return 48;case 24:return 73;case 25:return 72;case 26:return 72;case 27:return 87;case 28:break;case 29:return this.popState(),54;break;case 30:return this.popState(),33;break;case 31:return o.yytext=u(1,2).replace(/\\"/g,'"'),80;break;case 32:return o.yytext=u(1,2).replace(/\\'/g,"'"),80;break;case 33:return 85;case 34:return 82;case 35:return 82;case 36:return 83;case 37:return 84;case 38:return 81;case 39:return 75;case 40:return 77;case 41:return 72;case 42:return o.yytext=o.yytext.replace(/\\([\\\]])/g,"$1"),72;break;case 43:return"INVALID";case 44:return 5}},i.rules=[/^(?:[^\x00]*?(?=(\{\{)))/,/^(?:[^\x00]+)/,/^(?:[^\x00]{2,}?(?=(\{\{|\\\{\{|\\\\\{\{|$)))/,/^(?:\{\{\{\{(?=[^\/]))/,/^(?:\{\{\{\{\/[^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=[=}\s\/.])\}\}\}\})/,/^(?:[^\x00]+?(?=(\{\{\{\{)))/,/^(?:[\s\S]*?--(~)?\}\})/,/^(?:\()/,/^(?:\))/,/^(?:\{\{\{\{)/,/^(?:\}\}\}\})/,/^(?:\{\{(~)?>)/,/^(?:\{\{(~)?#>)/,/^(?:\{\{(~)?#\*?)/,/^(?:\{\{(~)?\/)/,/^(?:\{\{(~)?\^\s*(~)?\}\})/,/^(?:\{\{(~)?\s*else\s*(~)?\}\})/,/^(?:\{\{(~)?\^)/,/^(?:\{\{(~)?\s*else\b)/,/^(?:\{\{(~)?\{)/,/^(?:\{\{(~)?&)/,/^(?:\{\{(~)?!--)/,/^(?:\{\{(~)?![\s\S]*?\}\})/,/^(?:\{\{(~)?\*?)/,/^(?:=)/,/^(?:\.\.)/,/^(?:\.(?=([=~}\s\/.)|])))/,/^(?:[\/.])/,/^(?:\s+)/,/^(?:\}(~)?\}\})/,/^(?:(~)?\}\})/,/^(?:"(\\["]|[^"])*")/,/^(?:'(\\[']|[^'])*')/,/^(?:@)/,/^(?:true(?=([~}\s)])))/,/^(?:false(?=([~}\s)])))/,/^(?:undefined(?=([~}\s)])))/,/^(?:null(?=([~}\s)])))/,/^(?:-?[0-9]+(?:\.[0-9]+)?(?=([~}\s)])))/,/^(?:as\s+\|)/,/^(?:\|)/,/^(?:([^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=([=~}\s\/.)|]))))/,/^(?:\[(\\\]|[^\]])*\])/,/^(?:.)/,/^(?:$)/],i.conditions={mu:{rules:[7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44],inclusive:!1},emu:{rules:[2],inclusive:!1},com:{rules:[6],inclusive:!1},raw:{rules:[3,4,5],inclusive:!1},INITIAL:{rules:[0,1,44],inclusive:!0}},i})();t.lexer=e;function r(){this.yy={}}return r.prototype=t,t.Parser=r,new r})();zH.default=Mvr;bst.exports=zH.default});var YH=p((JH,Sst)=>{"use strict";JH.__esModule=!0;function Uvr(t){return t&&t.__esModule?t:{default:t}}var qvr=Bc(),Dme=Uvr(qvr);function $H(){this.parents=[]}$H.prototype={constructor:$H,mutating:!1,acceptKey:function(e,r){var i=this.accept(e[r]);if(this.mutating){if(i&&!$H.prototype[i.type])throw new Dme.default('Unexpected node type "'+i.type+'" found when accepting '+r+" on "+e.type);e[r]=i}},acceptRequired:function(e,r){if(this.acceptKey(e,r),!e[r])throw new Dme.default(e.type+" requires "+r)},acceptArray:function(e){for(var r=0,i=e.length;r<i;r++)this.acceptKey(e,r),e[r]||(e.splice(r,1),r--,i--)},accept:function(e){if(e){if(!this[e.type])throw new Dme.default("Unknown type: "+e.type,e);this.current&&this.parents.unshift(this.current),this.current=e;var r=this[e.type](e);if(this.current=this.parents.shift(),!this.mutating||r)return r;if(r!==!1)return e}},Program:function(e){this.acceptArray(e.body)},MustacheStatement:WH,Decorator:WH,BlockStatement:Cst,DecoratorBlock:Cst,PartialStatement:Ist,PartialBlockStatement:function(e){Ist.call(this,e),this.acceptKey(e,"program")},ContentStatement:function(){},CommentStatement:function(){},SubExpression:WH,PathExpression:function(){},StringLiteral:function(){},NumberLiteral:function(){},BooleanLiteral:function(){},UndefinedLiteral:function(){},NullLiteral:function(){},Hash:function(e){this.acceptArray(e.pairs)},HashPair:function(e){this.acceptRequired(e,"value")}};function WH(t){this.acceptRequired(t,"path"),this.acceptArray(t.params),this.acceptKey(t,"hash")}functLine truncated
`])}),e},each:function(e){for(var r=0,i=this.source.length;r<i;r++)e(this.source[r])},empty:function(){var e=this.currentLocation||{start:{}};return new K0(e.start.line,e.start.column,this.srcFile)},wrap:function(e){var r=arguments.length<=1||arguments[1]===void 0?this.currentLocation||{start:{}}:arguments[1];return e instanceof K0?e:(e=eAe(e,this,r),new K0(r.start.line,r.start.column,this.srcFile,e))},functionCall:function(e,r,i){return i=this.generateList(i),this.wrap([e,r?"."+r+"(":"(",i,")"])},quotedString:function(e){return'"'+(e+"").replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")+'"'},objectLiteral:function(e){var r=this,i=[];Object.keys(e).forEach(function(s){var o=eAe(e[s],r);o!=="undefined"&&i.push([r.quotedString(s),":",o])});var n=this.generateList(i);return n.prepend("{"),n.add("}"),n},generateList:function(e){for(var r=this.empty(),i=0,n=e.length;i<n;i++)i&&r.add(","),r.add(eAe(e[i],this));return r},generateArray:function(e){var r=this.generateList(e);return r.prepend("["),r.add("]"),r}};n6.default=sot;oot.exports=n6.default});var hot=p((s6,fot)=>{"use strict";s6.__esModule=!0;function lot(t){return t&&t.__esModule?t:{default:t}}var cot=MH(),Fxr=Bc(),rAe=lot(Fxr),Mxr=Ho(),Uxr=aot(),uot=lot(Uxr);function zB(t){this.value=t}function $B(){}$B.prototype={nameLookup:function(e,r){return this.internalNameLookup(e,r)},depthedLookup:function(e){return[this.aliasable("container.lookup"),"(depths, ",JSON.stringify(e),")"]},compilerInfo:function(){var e=cot.COMPILER_REVISION,r=cot.REVISION_CHANGES[e];return[e,r]},appendToBuffer:function(e,r,i){return Mxr.isArray(e)||(e=[e]),e=this.source.wrap(e,r),this.environment.isSimple?["return ",e,";"]:i?["buffer += ",e,";"]:(e.appendToBuffer=!0,e)},initializeBuffer:function(){return this.quotedString("")},internalNameLookup:function(e,r){return this.lookupPropertyFunctionIsUsed=!0,["lookupProperty(",e,",",JSON.stringify(r),")"]},lookupPropertyFunctionIsUsed:!1,compile:function(e,r,i,n){this.environment=e,this.options=r,this.stringParams=this.options.stringParams,this.trackIds=this.options.trackIds,this.precompile=!n,this.name=this.environment.name,this.isChild=!!i,this.context=i||{decorators:[],programs:[],environments:[]},this.preamble(),this.stackSlot=0,this.stackVars=[],this.aliases={},this.registers={list:[]},this.hashes=[],this.compileStack=[],this.inlineStack=[],this.blockParams=[],this.compileChildren(e,r),this.useDepths=this.useDepths||e.useDepths||e.useDecorators||this.options.compat,this.useBlockParams=this.useBlockParams||e.useBlockParams;var s=e.opcodes,o=void 0,a=void 0,c=void 0,u=void 0;for(c=0,u=s.length;c<u;c++)o=s[c],this.source.currentLocation=o.loc,a=a||o.loc,this[o.opcode].apply(this,o.args);if(this.source.currentLocation=a,this.pushSource(""),this.stackSlot||this.inlineStack.length||this.compileStack.length)throw new rAe.default("Compile completed with content left on stack");this.decorators.isEmpty()?this.decorators=void 0:(this.useDecorators=!0,this.decorators.prepend(["var decorators = container.decorators, ",this.lookupPropertyFunctionVarDeclaration(),`;
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var s=this.next();return typeof s<"u"?s:this.lex()},begin:function(s){this.conditionStack.push(s)},popState:function(){return this.conditionStack.pop()},_currentRules:function(){return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules},topState:function(){return this.conditionStack[this.conditionStack.length-2]},pushState:function(s){this.begin(s)}};return i.options={},i.performAction=function(s,o,a,c){function u(f,h){return o.yytext=o.yytext.substring(f,o.yyleng-h+f)}var l=c;switch(a){case 0:if(o.yytext.slice(-2)==="\\\\"?(u(0,1),this.begin("mu")):o.yytext.slice(-1)==="\\"?(u(0,1),this.begin("emu")):this.begin("mu"),o.yytext)return 15;break;case 1:return 15;case 2:return this.popState(),15;break;case 3:return this.begin("raw"),15;break;case 4:return this.popState(),this.conditionStack[this.conditionStack.length-1]==="raw"?15:(u(5,9),"END_RAW_BLOCK");case 5:return 15;case 6:return this.popState(),14;break;case 7:return 65;case 8:return 68;case 9:return 19;case 10:return this.popState(),this.begin("raw"),23;break;case 11:return 55;case 12:return 60;case 13:return 29;case 14:return 47;case 15:return this.popState(),44;break;case 16:return this.popState(),44;break;case 17:return 34;case 18:return 39;case 19:return 51;case 20:return 48;case 21:this.unput(o.yytext),this.popState(),this.begin("com");break;case 22:return this.popState(),14;break;case 23:return 48;case 24:return 73;case 25:return 72;case 26:return 72;case 27:return 87;case 28:break;case 29:return this.popState(),54;break;case 30:return this.popState(),33;break;case 31:return o.yytext=u(1,2).replace(/\\"/g,'"'),80;break;case 32:return o.yytext=u(1,2).replace(/\\'/g,"'"),80;break;case 33:return 85;case 34:return 82;case 35:return 82;case 36:return 83;case 37:return 84;case 38:return 81;case 39:return 75;case 40:return 77;case 41:return 72;case 42:return o.yytext=o.yytext.replace(/\\([\\\]])/g,"$1"),72;break;case 43:return"INVALID";case 44:return 5}},i.rules=[/^(?:[^\x00]*?(?=(\{\{)))/,/^(?:[^\x00]+)/,/^(?:[^\x00]{2,}?(?=(\{\{|\\\{\{|\\\\\{\{|$)))/,/^(?:\{\{\{\{(?=[^\/]))/,/^(?:\{\{\{\{\/[^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=[=}\s\/.])\}\}\}\})/,/^(?:[^\x00]+?(?=(\{\{\{\{)))/,/^(?:[\s\S]*?--(~)?\}\})/,/^(?:\()/,/^(?:\))/,/^(?:\{\{\{\{)/,/^(?:\}\}\}\})/,/^(?:\{\{(~)?>)/,/^(?:\{\{(~)?#>)/,/^(?:\{\{(~)?#\*?)/,/^(?:\{\{(~)?\/)/,/^(?:\{\{(~)?\^\s*(~)?\}\})/,/^(?:\{\{(~)?\s*else\s*(~)?\}\})/,/^(?:\{\{(~)?\^)/,/^(?:\{\{(~)?\s*else\b)/,/^(?:\{\{(~)?\{)/,/^(?:\{\{(~)?&)/,/^(?:\{\{(~)?!--)/,/^(?:\{\{(~)?![\s\S]*?\}\})/,/^(?:\{\{(~)?\*?)/,/^(?:=)/,/^(?:\.\.)/,/^(?:\.(?=([=~}\s\/.)|])))/,/^(?:[\/.])/,/^(?:\s+)/,/^(?:\}(~)?\}\})/,/^(?:(~)?\}\})/,/^(?:"(\\["]|[^"])*")/,/^(?:'(\\[']|[^'])*')/,/^(?:@)/,/^(?:true(?=([~}\s)])))/,/^(?:false(?=([~}\s)])))/,/^(?:undefined(?=([~}\s)])))/,/^(?:null(?=([~}\s)])))/,/^(?:-?[0-9]+(?:\.[0-9]+)?(?=([~}\s)])))/,/^(?:as\s+\|)/,/^(?:\|)/,/^(?:([^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=([=~}\s\/.)|]))))/,/^(?:\[(\\\]|[^\]])*\])/,/^(?:.)/,/^(?:$)/],i.conditions={mu:{rules:[7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44],inclusive:!1},emu:{rules:[2],inclusive:!1},com:{rules:[6],inclusive:!1},raw:{rules:[3,4,5],inclusive:!1},INITIAL:{rules:[0,1,44],inclusive:!0}},i})();t.lexer=e;function r(){this.yy={}}return r.prototype=t,t.Parser=r,new r})();nF.default=jUt;HQe.exports=nF.default});var cF=p((aF,$Qe)=>{"use strict";aF.__esModule=!0;function VUt(t){return t&&t.__esModule?t:{default:t}}var zUt=hc(),Pee=VUt(zUt);function sF(){this.parents=[]}sF.prototype={constructor:sF,mutating:!1,acceptKey:function(e,r){var i=this.accept(e[r]);if(this.mutating){if(i&&!sF.prototype[i.type])throw new Pee.default('Unexpected node type "'+i.type+'" found when accepting '+r+" on "+e.type);e[r]=i}},acceptRequired:function(e,r){if(this.acceptKey(e,r),!e[r])throw new Pee.default(e.type+" requires "+r)},acceptArray:function(e){for(var r=0,i=e.length;r<i;r++)this.acceptKey(e,r),e[r]||(e.splice(r,1),r--,i--)},accept:function(e){if(e){if(!this[e.type])throw new Pee.default("Unknown type: "+e.type,e);this.current&&this.parents.unshift(this.current),this.current=e;var r=this[e.type](e);if(this.current=this.parents.shift(),!this.mutating||r)return r;if(r!==!1)return e}},Program:function(e){this.acceptArray(e.body)},MustacheStatement:oF,Decorator:oF,BlockStatement:VQe,DecoratorBlock:VQe,PartialStatement:zQe,PartialBlockStatement:function(e){zQe.call(this,e),this.acceptKey(e,"program")},ContentStatement:function(){},CommentStatement:function(){},SubExpression:oF,PathExpression:function(){},StringLiteral:function(){},NumberLiteral:function(){},BooleanLiteral:function(){},UndefinedLiteral:function(){},NullLiteral:function(){},Hash:function(e){this.acceptArray(e.pairs)},HashPair:function(e){this.acceptRequired(e,"value")}};function oF(t){this.acceptRequired(t,"path"),this.acceptArray(t.params),this.acceptKey(t,"hash")}functLine truncated
`])}),e},each:function(e){for(var r=0,i=this.source.length;r<i;r++)e(this.source[r])},empty:function(){var e=this.currentLocation||{start:{}};return new dE(e.start.line,e.start.column,this.srcFile)},wrap:function(e){var r=arguments.length<=1||arguments[1]===void 0?this.currentLocation||{start:{}}:arguments[1];return e instanceof dE?e:(e=rte(e,this,r),new dE(r.start.line,r.start.column,this.srcFile,e))},functionCall:function(e,r,i){return i=this.generateList(i),this.wrap([e,r?"."+r+"(":"(",i,")"])},quotedString:function(e){return'"'+(e+"").replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")+'"'},objectLiteral:function(e){var r=this,i=[];Object.keys(e).forEach(function(s){var o=rte(e[s],r);o!=="undefined"&&i.push([r.quotedString(s),":",o])});var n=this.generateList(i);return n.prepend("{"),n.add("}"),n},generateList:function(e){for(var r=this.empty(),i=0,n=e.length;i<n;i++)i&&r.add(","),r.add(rte(e[i],this));return r},generateArray:function(e){var r=this.generateList(e);return r.prepend("["),r.add("]"),r}};AF.default=xLe;RLe.exports=AF.default});var kLe=p((gF,PLe)=>{"use strict";gF.__esModule=!0;function OLe(t){return t&&t.__esModule?t:{default:t}}var NLe=KM(),Hqt=hc(),nte=OLe(Hqt),jqt=Co(),Vqt=TLe(),DLe=OLe(Vqt);function MC(t){this.value=t}function FC(){}FC.prototype={nameLookup:function(e,r){return this.internalNameLookup(e,r)},depthedLookup:function(e){return[this.aliasable("container.lookup"),"(depths, ",JSON.stringify(e),")"]},compilerInfo:function(){var e=NLe.COMPILER_REVISION,r=NLe.REVISION_CHANGES[e];return[e,r]},appendToBuffer:function(e,r,i){return jqt.isArray(e)||(e=[e]),e=this.source.wrap(e,r),this.environment.isSimple?["return ",e,";"]:i?["buffer += ",e,";"]:(e.appendToBuffer=!0,e)},initializeBuffer:function(){return this.quotedString("")},internalNameLookup:function(e,r){return this.lookupPropertyFunctionIsUsed=!0,["lookupProperty(",e,",",JSON.stringify(r),")"]},lookupPropertyFunctionIsUsed:!1,compile:function(e,r,i,n){this.environment=e,this.options=r,this.stringParams=this.options.stringParams,this.trackIds=this.options.trackIds,this.precompile=!n,this.name=this.environment.name,this.isChild=!!i,this.context=i||{decorators:[],programs:[],environments:[]},this.preamble(),this.stackSlot=0,this.stackVars=[],this.aliases={},this.registers={list:[]},this.hashes=[],this.compileStack=[],this.inlineStack=[],this.blockParams=[],this.compileChildren(e,r),this.useDepths=this.useDepths||e.useDepths||e.useDecorators||this.options.compat,this.useBlockParams=this.useBlockParams||e.useBlockParams;var s=e.opcodes,o=void 0,a=void 0,c=void 0,u=void 0;for(c=0,u=s.length;c<u;c++)o=s[c],this.source.currentLocation=o.loc,a=a||o.loc,this[o.opcode].apply(this,o.args);if(this.source.currentLocation=a,this.pushSource(""),this.stackSlot||this.inlineStack.length||this.compileStack.length)throw new nte.default("Compile completed with content left on stack");this.decorators.isEmpty()?this.decorators=void 0:(this.useDecorators=!0,this.decorators.prepend(["var decorators = container.decorators, ",this.lookupPropertyFunctionVarDeclaration(),`;
`]),this.decorators.push("return fn;"),n?this.decorators=Function.apply(this,["fn","props","container","depth0","data","blockParams","depths",this.decorators.merge()]):(this.decorators.prepend(`function(fn, props, container, depth0, data, blockParams, depths) {
`),this.decorators.push(`}
`),this.decorators=this.decorators.merge()));var l=this.createFunctionContext(n);if(this.isChild)return l;var f={compiler:this.compilerInfo(),main:l};this.decorators&&(f.main_d=this.decorators,f.useDecorators=!0);var h=this.context,d=h.programs,m=h.decorators;for(c=0,u=d.length;c<u;c++)f[c]=d[c],m[c]&&(f[c+"_d"]=m[c],f.useDecorators=!0);return this.environment.usePartial&&(f.usePartial=!0),this.options.data&&(f.useData=!0),this.useDepths&&(f.useDepths=!0),this.useBlockParams&&(f.useBlockParams=!0),this.options.compat&&(f.compat=!0),n?f.compilerOptions=this.options:(f.compiler=JSON.stringify(f.compiler),this.source.currentLocation={start:{line:1,column:0}},f=this.objectLiteral(f),r.srcName?(f=f.toStringWithSourceMap({file:r.destName}),f.map=f.map&&f.map.toString()):f=f.toString()),f},preamble:function(){this.lastContext=0,this.source=new uot.default(this.options.srcName),this.decorators=new uot.default(this.options.srcName)},createFunctionContext:function(e){var r=this,i="",n=this.stackVars.concat(this.registers.list);n.length>0&&(i+=", "+n.join(", "));var s=0;Object.keys(this.aliases).forEach(function(c){var u=r.aliases[c];u.children&&u.referenceCount>1&&(i+=", alias"+ ++s+"="+c,u.children[0]="alias"+s)}),this.lookupPropertyFunctionIsUsed&&(i+=", "+this.lookupPropertyFunctionVarDeclaration());var o=["container","depth0","helpers","partials","data"];(this.useBlockParams||this.useDepths)&&o.push("blockParams"),this.useDepths&&o.push("depths");var a=this.mergeSource(i);return e?(o.push(a),Function.apply(this,o)):this.source.wrap(["function(",o.join(","),`) {
`),this.decorators=this.decorators.merge()));var l=this.createFunctionContext(n);if(this.isChild)return l;var f={compiler:this.compilerInfo(),main:l};this.decorators&&(f.main_d=this.decorators,f.useDecorators=!0);var h=this.context,d=h.programs,m=h.decorators;for(c=0,u=d.length;c<u;c++)f[c]=d[c],m[c]&&(f[c+"_d"]=m[c],f.useDecorators=!0);return this.environment.usePartial&&(f.usePartial=!0),this.options.data&&(f.useData=!0),this.useDepths&&(f.useDepths=!0),this.useBlockParams&&(f.useBlockParams=!0),this.options.compat&&(f.compat=!0),n?f.compilerOptions=this.options:(f.compiler=JSON.stringify(f.compiler),this.source.currentLocation={start:{line:1,column:0}},f=this.objectLiteral(f),r.srcName?(f=f.toStringWithSourceMap({file:r.destName}),f.map=f.map&&f.map.toString()):f=f.toString()),f},preamble:function(){this.lastContext=0,this.source=new DLe.default(this.options.srcName),this.decorators=new DLe.default(this.options.srcName)},createFunctionContext:function(e){var r=this,i="",n=this.stackVars.concat(this.registers.list);n.length>0&&(i+=", "+n.join(", "));var s=0;Object.keys(this.aliases).forEach(function(c){var u=r.aliases[c];u.children&&u.referenceCount>1&&(i+=", alias"+ ++s+"="+c,u.children[0]="alias"+s)}),this.lookupPropertyFunctionIsUsed&&(i+=", "+this.lookupPropertyFunctionVarDeclaration());var o=["container","depth0","helpers","partials","data"];(this.useBlockParams||this.useDepths)&&o.push("blockParams"),this.useDepths&&o.push("depths");var a=this.mergeSource(i);return e?(o.push(a),Function.apply(this,o)):this.source.wrap(["function(",o.join(","),`) {
`,a,"}"])},mergeSource:function(e){var r=this.environment.isSimple,i=!this.forceBuffer,n=void 0,s=void 0,o=void 0,a=void 0;return this.source.each(function(c){c.appendToBuffer?(o?c.prepend(" + "):o=c,a=c):(o&&(s?o.prepend("buffer += "):n=!0,a.add(";"),o=a=void 0),s=!0,r||(i=!1))}),i?o?(o.prepend("return "),a.add(";")):s||this.source.push('return "";'):(e+=", buffer = "+(n?"":this.initializeBuffer()),o?(o.prepend("return buffer + "),a.add(";")):this.source.push("return buffer;")),e&&this.source.prepend("var "+e.substring(2)+(n?"":`;
`)),this.source.merge()},lookupPropertyFunctionVarDeclaration:function(){return`
lookupProperty = container.lookupProperty || function(parent, propertyName) {
@@ -138,134 +86,185 @@ Expecting `+De.join(", ")+", got '"+(this.terminals_[S]||S)+"'":de="Parse error
}
return undefined
}
`.trim()},blockValue:function(e){var r=this.aliasable("container.hooks.blockHelperMissing"),i=[this.contextName(0)];this.setupHelperArgs(e,0,i);var n=this.popStack();i.splice(1,0,n),this.push(this.source.functionCall(r,"call",i))},ambiguousBlockValue:function(){var e=this.aliasable("container.hooks.blockHelperMissing"),r=[this.contextName(0)];this.setupHelperArgs("",0,r,!0),this.flushInline();var i=this.topStack();r.splice(1,0,i),this.pushSource(["if (!",this.lastHelper,") { ",i," = ",this.source.functionCall(e,"call",r),"}"])},appendContent:function(e){this.pendingContent?e=this.pendingContent+e:this.pendingLocation=this.source.currentLocation,this.pendingContent=e},append:function(){if(this.isInline())this.replaceStack(function(r){return[" != null ? ",r,' : ""']}),this.pushSource(this.appendToBuffer(this.popStack()));else{var e=this.popStack();this.pushSource(["if (",e," != null) { ",this.appendToBuffer(e,void 0,!0)," }"]),this.environment.isSimple&&this.pushSource(["else { ",this.appendToBuffer("''",void 0,!0)," }"])}},appendEscaped:function(){this.pushSource(this.appendToBuffer([this.aliasable("container.escapeExpression"),"(",this.popStack(),")"]))},getContext:function(e){this.lastContext=e},pushContext:function(){this.pushStackLiteral(this.contextName(this.lastContext))},lookupOnContext:function(e,r,i,n){var s=0;!n&&this.options.compat&&!this.lastContext?this.push(this.depthedLookup(e[s++])):this.pushContext(),this.resolvePath("context",e,s,r,i)},lookupBlockParam:function(e,r){this.useBlockParams=!0,this.push(["blockParams[",e[0],"][",e[1],"]"]),this.resolvePath("context",r,1)},lookupData:function(e,r,i){e?this.pushStackLiteral("container.data(data, "+e+")"):this.pushStackLiteral("data"),this.resolvePath("data",r,0,!0,i)},resolvePath:function(e,r,i,n,s){var o=this;if(this.options.strict||this.options.assumeObjects){this.push(qxr(this.options.strict&&s,this,r,i,e));return}for(var a=r.length,c=function(l){o.replaceStack(function(f){var h=o.nameLookup(f,r[l],e);return n?[" && ",h]:[" != null ? ",h," : ",f]})},u=i;u<a;u++)c(u)},resolvePossibleLambda:function(){this.push([this.aliasable("container.lambda"),"(",this.popStack(),", ",this.contextName(0),")"])},pushStringParam:function(e,r){this.pushContext(),this.pushString(r),r!=="SubExpression"&&(typeof e=="string"?this.pushString(e):this.pushStackLiteral(e))},emptyHash:function(e){this.trackIds&&this.push("{}"),this.stringParams&&(this.push("{}"),this.push("{}")),this.pushStackLiteral(e?"undefined":"{}")},pushHash:function(){this.hash&&this.hashes.push(this.hash),this.hash={values:{},types:[],contexts:[],ids:[]}},popHash:function(){var e=this.hash;this.hash=this.hashes.pop(),this.trackIds&&this.push(this.objectLiteral(e.ids)),this.stringParams&&(this.push(this.objectLiteral(e.contexts)),this.push(this.objectLiteral(e.types))),this.push(this.objectLiteral(e.values))},pushString:function(e){this.pushStackLiteral(this.quotedString(e))},pushLiteral:function(e){this.pushStackLiteral(e)},pushProgram:function(e){e!=null?this.pushStackLiteral(this.programExpression(e)):this.pushStackLiteral(null)},registerDecorator:function(e,r){var i=this.nameLookup("decorators",r,"decorator"),n=this.setupHelperArgs(r,e);this.decorators.push(["var decorator = ",i,";"]),this.decorators.push(['if (typeof decorator !== "function") { throw new Error(',this.quotedString('Missing decorator: "'+r+'"'),"); }"]),this.decorators.push(["fn = ",this.decorators.functionCall("decorator","",["fn","props","container",n])," || fn;"])},invokeHelper:function(e,r,i){var n=this.popStack(),s=this.setupHelper(e,r),o=[];i&&o.push(s.name),o.push(n),this.options.strict||o.push(this.aliasable("container.hooks.helperMissing"));var a=["(",this.itemsSeparatedBy(o,"||"),")"],c=this.source.functionCall(a,"call",s.callParams);this.push(c)},itemsSeparatedBy:function(e,r){var i=[];i.push(e[0]);for(var n=1;n<e.length;n++)i.push(r,e[n]);return i},invokeKnownHelper:function(e,r){var i=this.setupHelper(e,r);this.push(this.source.functionCall(i.name,"call",i.callParams))},invokeAmbiguous:function(e,r){this.useRegister("helper");var i=this.popStack();this.emptyHash();var n=this.setupHelper(0,e,r),s=this.lastHelper=this.nameLookup("helpers",e,"helper"),o=["(","(helper = ",s," || ",i,")"];this.options.strict||(o[0]="(helper = ",o.push(" != null ? helper : ",this.aliasable("container.hooks.helperMissing"))),this.push(["(",o,n.paramsInit?["),(",n.paramsInit]:[],"),","(typeof helper === ",this.aliasable('"function"')," ? ",this.source.functionCall("helper","call",n.callParams)," : helper))"])},invokePartial:function(e,r,i){var n=[],s=this.setupParams(r,1,n);e&&(r=this.popStack(),delete s.name),i&&(s.indent=JSON.stringify(i)),s.helpers="helpers",s.partials="partials",s.decorators="container.decorators",e?n.unshift(r):n.unshift(this.nameLookup("partials",r,"partial")),this.options.compat&&(s.depths="depths"),s=this.objectLiteral(s),n.push(s),this.push(this.source.functionCall("container.invokePartial","",n))},assignToHash Line truncated
`,e};bi.prototype.Program=function(t){var e="",r=t.body,i=void 0,n=void 0;if(t.blockParams){var s="BLOCK PARAMS: [";for(i=0,n=t.blockParams.length;i<n;i++)s+=" "+t.blockParams[i];s+=" ]",e+=this.pad(s)}for(i=0,n=r.length;i<n;i++)e+=this.accept(r[i]);return this.padding--,e};bi.prototype.MustacheStatement=function(t){return this.pad("{{ "+this.SubExpression(t)+" }}")};bi.prototype.Decorator=function(t){return this.pad("{{ DIRECTIVE "+this.SubExpression(t)+" }}")};bi.prototype.BlockStatement=bi.prototype.DecoratorBlock=function(t){var e="";return e+=this.pad((t.type==="DecoratorBlock"?"DIRECTIVE ":"")+"BLOCK:"),this.padding++,e+=this.pad(this.SubExpression(t)),t.program&&(e+=this.pad("PROGRAM:"),this.padding++,e+=this.accept(t.program),this.padding--),t.inverse&&(t.program&&this.padding++,e+=this.pad("{{^}}"),this.padding++,e+=this.accept(t.inverse),this.padding--,t.program&&this.padding--),this.padding--,e};bi.prototype.PartialStatement=function(t){var e="PARTIAL:"+t.name.original;return t.params[0]&&(e+=" "+this.accept(t.params[0])),t.hash&&(e+=" "+this.accept(t.hash)),this.pad("{{> "+e+" }}")};bi.prototype.PartialBlockStatement=function(t){var e="PARTIAL BLOCK:"+t.name.original;return t.params[0]&&(e+=" "+this.accept(t.params[0])),t.hash&&(e+=" "+this.accept(t.hash)),e+=" "+this.pad("PROGRAM:"),this.padding++,e+=this.accept(t.program),this.padding--,this.pad("{{> "+e+" }}")};bi.prototype.ContentStatement=function(t){return this.pad("CONTENT[ '"+t.value+"' ]")};bi.prototype.CommentStatement=function(t){return this.pad("{{! '"+t.value+"' }}")};bi.prototype.SubExpression=function(t){for(var e=t.params,r=[],i=void 0,n=0,s=e.length;n<s;n++)r.push(this.accept(e[n]));return e="["+r.join(", ")+"]",i=t.hash?" "+this.accept(t.hash):"",this.accept(t.path)+" "+e+i};bi.prototype.PathExpression=function(t){var e=t.parts.join("/");return(t.data?"@":"")+"PATH:"+e};bi.prototype.StringLiteral=function(t){return'"'+t.value+'"'};bi.prototype.NumberLiteral=function(t){return"NUMBER{"+t.value+"}"};bi.prototype.BooleanLiteral=function(t){return"BOOLEAN{"+t.value+"}"};bi.prototype.UndefinedLiteral=function(){return"UNDEFINED"};bi.prototype.NullLiteral=function(){return"NULL"};bi.prototype.Hash=function(t){for(var e=t.pairs,r=[],i=0,n=e.length;i<n;i++)r.push(this.accept(e[i]));return"HASH{"+r.join(", ")+"}"};bi.prototype.HashPair=function(t){return t.key+"="+this.accept(t.value)}});var bot=p((Gli,Eot)=>{var c6=mot().default,yot=Aot();c6.PrintVisitor=yot.PrintVisitor;c6.print=yot.print;Eot.exports=c6;function got(t,e){var r=require("fs"),i=r.readFileSync(e,"utf8");t.exports=c6.compile(i)}typeof require<"u"&&require.extensions&&(require.extensions[".handlebars"]=got,require.extensions[".hbs"]=got)});var Fot=P(require("fs"),1),Mot=P(require("path"),1);var AAe=P(require("os"),1);function sd(t){return t==null?"":typeof t=="string"||t instanceof String?t:JSON.stringify(t)}function B6(t){return Object.keys(t).length?{title:t.title,file:t.file,line:t.startLine,endLine:t.endLine,col:t.startColumn,endColumn:t.endColumn}:{}}function Mg(t,e,r){let i=new v6(t,e,r);process.stdout.write(i.toString()+AAe.EOL)}function x6(t,e=""){Mg(t,{},e)}var mAe="::",v6=class{constructor(e,r,i){e||(e="missing.command"),this.command=e,this.properties=r,this.message=i}toString(){let e=mAe+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let r=!0;for(let i in this.properties)if(this.properties.hasOwnProperty(i)){let n=this.properties[i];n&&(r?r=!1:e+=",",e+=`${i}=${rat(n)}`)}}return e+=`${mAe}${tat(this.message)}`,e}};function tat(t){return sd(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}function rat(t){return sd(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}var gAe=P(require("crypto"),1),oD=P(require("fs"),1),sD=P(require("os"),1);function _6(t,e){let r=process.env[`GITHUB_${t}`];if(!r)throw new Error(`Unable to find environment variable for file command ${t}`);if(!oD.existsSync(r))throw new Error(`Missing file at path: ${r}`);oD.appendFileSync(r,`${sd(e)}${sD.EOL}`,{encoding:"utf8"})}function R6(t,e){let r=`ghadelimiter_${gAe.randomUUID()}`,i=sd(e);if(t.includes(r))throw new Error(`Unexpected input: name should not contain the delimiter "${r}"`);if(i.includes(r))throw new Error(`Unexpected input: value should not contain the delimiter "${r}"`);return`${t}<<${r}${sD.EOL}${i}${sD.EOL}${r}`}var p9=P(require("os"),1);var ox=P(require("http"),1),t9=P(require("https"),1);function T6(t){let e=t.protocol==="https:";if(iat(t))return;let r=e?process.env.https_proxy||process.env.HTTPS_PROXY:process.env.http_proxy||process.env.HTTP_PROXY;if(r)try{return new aD(r)}catch{if(!r.startsWith("http://")&&!r.startsWith("https://"))return new aD(`http://${r}`)}else return}function iat(t){if(!t.hostname)return!1;let e=t.hostname;if(nat(e))return!0;let r=process.env.no_proxy||process.env.NO_PROXY||"";if(!r)return!1;let i;t.port?i=Number(t.port):t.protocol==="http:"?i=80:t.prot Line truncated
Support boolean input list: \`true | True | TRUE | false | False | FALSE\``)}function lSe(t,e){if(process.env.GITHUB_OUTPUT||"")return _6("OUTPUT",R6(t,e));process.stdout.write(p9.EOL),Mg("set-output",{name:t},sd(e))}function fSe(t){process.exitCode=d9.Failure,M0t(t)}function nP(t){Mg("debug",{},t)}function M0t(t,e={}){Mg("error",B6(e),t instanceof Error?t.toString():t)}function fx(t,e={}){Mg("warning",B6(e),t instanceof Error?t.toString():t)}function bs(t){process.stdout.write(t+p9.EOL)}function U0t(t){x6("group",t)}function q0t(){x6("endgroup")}function ea(t,e){return F0t(this,void 0,void 0,function*(){U0t(t);let r;try{r=yield e()}finally{q0t()}return r})}function Dm(t,e){if(process.env.GITHUB_STATE||"")return _6("STATE",R6(t,e));Mg("save-state",{name:t},sd(e))}var dSe=P(require("os"),1);function Om(t){return t==null?"":typeof t=="string"||t instanceof String?t:JSON.stringify(t)}function A9(t){return Object.keys(t).length?{title:t.title,file:t.file,line:t.startLine,endLine:t.endLine,col:t.startColumn,endColumn:t.endColumn}:{}}function Pm(t,e,r){let i=new g9(t,e,r);process.stdout.write(i.toString()+dSe.EOL)}function y9(t,e=""){Pm(t,{},e)}var hSe="::",g9=class{constructor(e,r,i){e||(e="missing.command"),this.command=e,this.properties=r,this.message=i}toString(){let e=hSe+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let r=!0;for(let i in this.properties)if(this.properties.hasOwnProperty(i)){let n=this.properties[i];n&&(r?r=!1:e+=",",e+=`${i}=${H0t(n)}`)}}return e+=`${hSe}${G0t(this.message)}`,e}};function G0t(t){return Om(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}function H0t(t){return Om(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}var pSe=P(require("crypto"),1),fP=P(require("fs"),1),lP=P(require("os"),1);function E9(t,e){let r=process.env[`GITHUB_${t}`];if(!r)throw new Error(`Unable to find environment variable for file command ${t}`);if(!fP.existsSync(r))throw new Error(`Missing file at path: ${r}`);fP.appendFileSync(r,`${Om(e)}${lP.EOL}`,{encoding:"utf8"})}function mSe(t,e){let r=`ghadelimiter_${pSe.randomUUID()}`,i=Om(e);if(t.includes(r))throw new Error(`Unexpected input: name should not contain the delimiter "${r}"`);if(i.includes(r))throw new Error(`Unexpected input: value should not contain the delimiter "${r}"`);return`${t}<<${r}${lP.EOL}${i}${lP.EOL}${r}`}var ySe=P(require("os"),1),ESe=P(require("path"),1);var gSe=require("os"),dx=require("fs"),b9=function(t,e,r,i){function n(s){return s instanceof r?s:new r(function(o){o(s)})}return new(r||(r=Promise))(function(s,o){function a(l){try{u(i.next(l))}catch(f){o(f)}}function c(l){try{u(i.throw(l))}catch(f){o(f)}}function u(l){l.done?s(l.value):n(l.value).then(a,c)}u((i=i.apply(t,e||[])).next())})},{access:j0t,appendFile:V0t,writeFile:z0t}=dx.promises,ASe="GITHUB_STEP_SUMMARY";var w9=class{constructor(){this._buffer=""}filePath(){return b9(this,void 0,void 0,function*(){if(this._filePath)return this._filePath;let e=process.env[ASe];if(!e)throw new Error(`Unable to find environment variable for $${ASe}. Check if your runtime environment supports job summaries.`);try{yield j0t(e,dx.constants.R_OK|dx.constants.W_OK)}catch{throw new Error(`Unable to access summary file: '${e}'. Check if the file has correct read/write permissions.`)}return this._filePath=e,this._filePath})}wrap(e,r,i={}){let n=Object.entries(i).map(([s,o])=>` ${s}="${o}"`).join("");return r?`<${e}${n}>${r}</${e}>`:`<${e}${n}>`}write(e){return b9(this,void 0,void 0,function*(){let r=!!e?.overwrite,i=yield this.filePath();return yield(r?z0t:V0t)(i,this._buffer,{encoding:"utf8"}),this.emptyBuffer()})}clear(){return b9(this,void 0,void 0,function*(){return this.emptyBuffer().write({overwrite:!0})})}stringify(){return this._buffer}isEmptyBuffer(){return this._buffer.length===0}emptyBuffer(){return this._buffer="",this}addRaw(e,r=!1){return this._buffer+=e,r?this.addEOL():this}addEOL(){return this.addRaw(gSe.EOL)}addCodeBlock(e,r){let i=Object.assign({},r&&{lang:r}),n=this.wrap("pre",this.wrap("code",e),i);return this.addRaw(n).addEOL()}addList(e,r=!1){let i=r?"ol":"ul",n=e.map(o=>this.wrap("li",o)).join(""),s=this.wrap(i,n);return this.addRaw(s).addEOL()}addTable(e){let r=e.map(n=>{let s=n.map(o=>{if(typeof o=="string")return this.wrap("td",o);let{header:a,data:c,colspan:u,rowspan:l}=o,f=a?"th":"td",h=Object.assign(Object.assign({},u&&{colspan:u}),l&&{rowspan:l});return this.wrap(f,c,h)}).join("");return this.wrap("tr",s)}).join(""),i=this.wrap("table",r);return this.addRaw(i).addEOL()}addDetails(e,r){let i=this.wrap("details",this.wrap("summary",e)+r);return this.addRaw(i).addEOL()}addImage(e,r,i){let{width:n,height:s}=i||{},o=Object.assign(Object.assign({},n&&{width:n}),s&&{height:s}),a=this.wrap("img",null,Object.assign({src:e,alt:r},o));return this.addRaw(a).addEOL()}addHeading(e,r){let i=`h${r}`,n=["h1","h2","h3","h4","h5","h6"].includes(i)?i:"h1",s=this.wrap(n,e);return thiLine truncated
Support boolean input list: \`true | True | TRUE | false | False | FALSE\``)}function wSe(t){process.exitCode=S9.Failure,Y0t(t)}function K(t){Pm("debug",{},t)}function Y0t(t,e={}){Pm("error",A9(e),t instanceof Error?t.toString():t)}function Lc(t,e={}){Pm("warning",A9(e),t instanceof Error?t.toString():t)}function X(t){process.stdout.write(t+ySe.EOL)}function K0t(t){y9("group",t)}function X0t(){y9("endgroup")}function km(t,e){return J0t(this,void 0,void 0,function*(){K0t(t);let r;try{r=yield e()}finally{X0t()}return r})}function hP(t,e){if(process.env.GITHUB_STATE||"")return E9("STATE",mSe(t,e));Pm("save-state",{name:t},Om(e))}function CSe(t){return process.env[`STATE_${t}`]||""}var pF=P(require("fs"),1),FZ=P(require("os"),1),MZ=P(require("path"),1);var SSe=P(require("os"),1);function px(t){return t==null?"":typeof t=="string"||t instanceof String?t:JSON.stringify(t)}function BSe(t,e,r){let i=new B9(t,e,r);process.stdout.write(i.toString()+SSe.EOL)}var ISe="::",B9=class{constructor(e,r,i){e||(e="missing.command"),this.command=e,this.properties=r,this.message=i}toString(){let e=ISe+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let r=!0;for(let i in this.properties)if(this.properties.hasOwnProperty(i)){let n=this.properties[i];n&&(r?r=!1:e+=",",e+=`${i}=${ebt(n)}`)}}return e+=`${ISe}${Z0t(this.message)}`,e}};function Z0t(t){return px(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}function ebt(t){return px(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}var RSe=P(require("os"),1);var xSe=require("os"),mx=require("fs"),v9=function(t,e,r,i){function n(s){return s instanceof r?s:new r(function(o){o(s)})}return new(r||(r=Promise))(function(s,o){function a(l){try{u(i.next(l))}catch(f){o(f)}}function c(l){try{u(i.throw(l))}catch(f){o(f)}}function u(l){l.done?s(l.value):n(l.value).then(a,c)}u((i=i.apply(t,e||[])).next())})},{access:tbt,appendFile:rbt,writeFile:ibt}=mx.promises,vSe="GITHUB_STEP_SUMMARY";var x9=class{constructor(){this._buffer=""}filePath(){return v9(this,void 0,void 0,function*(){if(this._filePath)return this._filePath;let e=process.env[vSe];if(!e)throw new Error(`Unable to find environment variable for $${vSe}. Check if your runtime environment supports job summaries.`);try{yield tbt(e,mx.constants.R_OK|mx.constants.W_OK)}catch{throw new Error(`Unable to access summary file: '${e}'. Check if the file has correct read/write permissions.`)}return this._filePath=e,this._filePath})}wrap(e,r,i={}){let n=Object.entries(i).map(([s,o])=>` ${s}="${o}"`).join("");return r?`<${e}${n}>${r}</${e}>`:`<${e}${n}>`}write(e){return v9(this,void 0,void 0,function*(){let r=!!e?.overwrite,i=yield this.filePath();return yield(r?ibt:rbt)(i,this._buffer,{encoding:"utf8"}),this.emptyBuffer()})}clear(){return v9(this,void 0,void 0,function*(){return this.emptyBuffer().write({overwrite:!0})})}stringify(){return this._buffer}isEmptyBuffer(){return this._buffer.length===0}emptyBuffer(){return this._buffer="",this}addRaw(e,r=!1){return this._buffer+=e,r?this.addEOL():this}addEOL(){return this.addRaw(xSe.EOL)}addCodeBlock(e,r){let i=Object.assign({},r&&{lang:r}),n=this.wrap("pre",this.wrap("code",e),i);return this.addRaw(n).addEOL()}addList(e,r=!1){let i=r?"ol":"ul",n=e.map(o=>this.wrap("li",o)).join(""),s=this.wrap(i,n);return this.addRaw(s).addEOL()}addTable(e){let r=e.map(n=>{let s=n.map(o=>{if(typeof o=="string")return this.wrap("td",o);let{header:a,data:c,colspan:u,rowspan:l}=o,f=a?"th":"td",h=Object.assign(Object.assign({},u&&{colspan:u}),l&&{rowspan:l});return this.wrap(f,c,h)}).join("");return this.wrap("tr",s)}).join(""),i=this.wrap("table",r);return this.addRaw(i).addEOL()}addDetails(e,r){let i=this.wrap("details",this.wrap("summary",e)+r);return this.addRaw(i).addEOL()}addImage(e,r,i){let{width:n,height:s}=i||{},o=Object.assign(Object.assign({},n&&{width:n}),s&&{height:s}),a=this.wrap("img",null,Object.assign({src:e,alt:r},o));return this.addRaw(a).addEOL()}addHeading(e,r){let i=`h${r}`,n=["h1","h2","h3","h4","h5","h6"].includes(i)?i:"h1",s=this.wrap(n,e);return this.addRaw(s).addEOL()}addSeparator(){let e=this.wrap("hr",null);return this.addRaw(e).addEOL()}addBreak(){let e=this.wrap("br",null);return this.addRaw(e).addEOL()}addQuote(e,r){let i=Object.assign({},r&&{cite:r}),n=this.wrap("blockquote",e,i);return this.addRaw(n).addEOL()}addLink(e,r){let i=this.wrap("a",e,{href:r});return this.addRaw(i).addEOL()}},xNr=new x9;var _9=P(require("os"),1);var TNr=_9.default.platform(),NNr=_9.default.arch();var _Se;(function(t){t[t.Success=0]="Success",t[t.Failure=1]="Failure"})(_Se||(_Se={}));function R9(){return process.env.RUNNER_DEBUG==="1"}function br(t){BSe("debug",{},t)}function T9(t){process.stdout.write(t+RSe.EOL)}var X9=P(require("crypto"),1),Is=P(require("fs"),1);var eIt=P(Y9(),1);var xP=P(require("os"),1),rl=P(require("path"),1);var Uc=P(Y9(),1),bve=P(require("stream"),1),wve=P(require("util"),1),Z9=require("assLine truncated
`.trim()},blockValue:function(e){var r=this.aliasable("container.hooks.blockHelperMissing"),i=[this.contextName(0)];this.setupHelperArgs(e,0,i);var n=this.popStack();i.splice(1,0,n),this.push(this.source.functionCall(r,"call",i))},ambiguousBlockValue:function(){var e=this.aliasable("container.hooks.blockHelperMissing"),r=[this.contextName(0)];this.setupHelperArgs("",0,r,!0),this.flushInline();var i=this.topStack();r.splice(1,0,i),this.pushSource(["if (!",this.lastHelper,") { ",i," = ",this.source.functionCall(e,"call",r),"}"])},appendContent:function(e){this.pendingContent?e=this.pendingContent+e:this.pendingLocation=this.source.currentLocation,this.pendingContent=e},append:function(){if(this.isInline())this.replaceStack(function(r){return[" != null ? ",r,' : ""']}),this.pushSource(this.appendToBuffer(this.popStack()));else{var e=this.popStack();this.pushSource(["if (",e," != null) { ",this.appendToBuffer(e,void 0,!0)," }"]),this.environment.isSimple&&this.pushSource(["else { ",this.appendToBuffer("''",void 0,!0)," }"])}},appendEscaped:function(){this.pushSource(this.appendToBuffer([this.aliasable("container.escapeExpression"),"(",this.popStack(),")"]))},getContext:function(e){this.lastContext=e},pushContext:function(){this.pushStackLiteral(this.contextName(this.lastContext))},lookupOnContext:function(e,r,i,n){var s=0;!n&&this.options.compat&&!this.lastContext?this.push(this.depthedLookup(e[s++])):this.pushContext(),this.resolvePath("context",e,s,r,i)},lookupBlockParam:function(e,r){this.useBlockParams=!0,this.push(["blockParams[",e[0],"][",e[1],"]"]),this.resolvePath("context",r,1)},lookupData:function(e,r,i){e?this.pushStackLiteral("container.data(data, "+e+")"):this.pushStackLiteral("data"),this.resolvePath("data",r,0,!0,i)},resolvePath:function(e,r,i,n,s){var o=this;if(this.options.strict||this.options.assumeObjects){this.push(zqt(this.options.strict&&s,this,r,i,e));return}for(var a=r.length,c=function(l){o.replaceStack(function(f){var h=o.nameLookup(f,r[l],e);return n?[" && ",h]:[" != null ? ",h," : ",f]})},u=i;u<a;u++)c(u)},resolvePossibleLambda:function(){this.push([this.aliasable("container.lambda"),"(",this.popStack(),", ",this.contextName(0),")"])},pushStringParam:function(e,r){this.pushContext(),this.pushString(r),r!=="SubExpression"&&(typeof e=="string"?this.pushString(e):this.pushStackLiteral(e))},emptyHash:function(e){this.trackIds&&this.push("{}"),this.stringParams&&(this.push("{}"),this.push("{}")),this.pushStackLiteral(e?"undefined":"{}")},pushHash:function(){this.hash&&this.hashes.push(this.hash),this.hash={values:{},types:[],contexts:[],ids:[]}},popHash:function(){var e=this.hash;this.hash=this.hashes.pop(),this.trackIds&&this.push(this.objectLiteral(e.ids)),this.stringParams&&(this.push(this.objectLiteral(e.contexts)),this.push(this.objectLiteral(e.types))),this.push(this.objectLiteral(e.values))},pushString:function(e){this.pushStackLiteral(this.quotedString(e))},pushLiteral:function(e){this.pushStackLiteral(e)},pushProgram:function(e){e!=null?this.pushStackLiteral(this.programExpression(e)):this.pushStackLiteral(null)},registerDecorator:function(e,r){var i=this.nameLookup("decorators",r,"decorator"),n=this.setupHelperArgs(r,e);this.decorators.push(["var decorator = ",i,";"]),this.decorators.push(['if (typeof decorator !== "function") { throw new Error(',this.quotedString('Missing decorator: "'+r+'"'),"); }"]),this.decorators.push(["fn = ",this.decorators.functionCall("decorator","",["fn","props","container",n])," || fn;"])},invokeHelper:function(e,r,i){var n=this.popStack(),s=this.setupHelper(e,r),o=[];i&&o.push(s.name),o.push(n),this.options.strict||o.push(this.aliasable("container.hooks.helperMissing"));var a=["(",this.itemsSeparatedBy(o,"||"),")"],c=this.source.functionCall(a,"call",s.callParams);this.push(c)},itemsSeparatedBy:function(e,r){var i=[];i.push(e[0]);for(var n=1;n<e.length;n++)i.push(r,e[n]);return i},invokeKnownHelper:function(e,r){var i=this.setupHelper(e,r);this.push(this.source.functionCall(i.name,"call",i.callParams))},invokeAmbiguous:function(e,r){this.useRegister("helper");var i=this.popStack();this.emptyHash();var n=this.setupHelper(0,e,r),s=this.lastHelper=this.nameLookup("helpers",e,"helper"),o=["(","(helper = ",s," || ",i,")"];this.options.strict||(o[0]="(helper = ",o.push(" != null ? helper : ",this.aliasable("container.hooks.helperMissing"))),this.push(["(",o,n.paramsInit?["),(",n.paramsInit]:[],"),","(typeof helper === ",this.aliasable('"function"')," ? ",this.source.functionCall("helper","call",n.callParams)," : helper))"])},invokePartial:function(e,r,i){var n=[],s=this.setupParams(r,1,n);e&&(r=this.popStack(),delete s.name),i&&(s.indent=JSON.stringify(i)),s.helpers="helpers",s.partials="partials",s.decorators="container.decorators",e?n.unshift(r):n.unshift(this.nameLookup("partials",r,"partial")),this.options.compat&&(s.depths="depths"),s=this.objectLiteral(s),n.push(s),this.push(this.source.functionCall("container.invokePartial","",n))},assignToHash Line truncated
`,e};di.prototype.Program=function(t){var e="",r=t.body,i=void 0,n=void 0;if(t.blockParams){var s="BLOCK PARAMS: [";for(i=0,n=t.blockParams.length;i<n;i++)s+=" "+t.blockParams[i];s+=" ]",e+=this.pad(s)}for(i=0,n=r.length;i<n;i++)e+=this.accept(r[i]);return this.padding--,e};di.prototype.MustacheStatement=function(t){return this.pad("{{ "+this.SubExpression(t)+" }}")};di.prototype.Decorator=function(t){return this.pad("{{ DIRECTIVE "+this.SubExpression(t)+" }}")};di.prototype.BlockStatement=di.prototype.DecoratorBlock=function(t){var e="";return e+=this.pad((t.type==="DecoratorBlock"?"DIRECTIVE ":"")+"BLOCK:"),this.padding++,e+=this.pad(this.SubExpression(t)),t.program&&(e+=this.pad("PROGRAM:"),this.padding++,e+=this.accept(t.program),this.padding--),t.inverse&&(t.program&&this.padding++,e+=this.pad("{{^}}"),this.padding++,e+=this.accept(t.inverse),this.padding--,t.program&&this.padding--),this.padding--,e};di.prototype.PartialStatement=function(t){var e="PARTIAL:"+t.name.original;return t.params[0]&&(e+=" "+this.accept(t.params[0])),t.hash&&(e+=" "+this.accept(t.hash)),this.pad("{{> "+e+" }}")};di.prototype.PartialBlockStatement=function(t){var e="PARTIAL BLOCK:"+t.name.original;return t.params[0]&&(e+=" "+this.accept(t.params[0])),t.hash&&(e+=" "+this.accept(t.hash)),e+=" "+this.pad("PROGRAM:"),this.padding++,e+=this.accept(t.program),this.padding--,this.pad("{{> "+e+" }}")};di.prototype.ContentStatement=function(t){return this.pad("CONTENT[ '"+t.value+"' ]")};di.prototype.CommentStatement=function(t){return this.pad("{{! '"+t.value+"' }}")};di.prototype.SubExpression=function(t){for(var e=t.params,r=[],i=void 0,n=0,s=e.length;n<s;n++)r.push(this.accept(e[n]));return e="["+r.join(", ")+"]",i=t.hash?" "+this.accept(t.hash):"",this.accept(t.path)+" "+e+i};di.prototype.PathExpression=function(t){var e=t.parts.join("/");return(t.data?"@":"")+"PATH:"+e};di.prototype.StringLiteral=function(t){return'"'+t.value+'"'};di.prototype.NumberLiteral=function(t){return"NUMBER{"+t.value+"}"};di.prototype.BooleanLiteral=function(t){return"BOOLEAN{"+t.value+"}"};di.prototype.UndefinedLiteral=function(){return"UNDEFINED"};di.prototype.NullLiteral=function(){return"NULL"};di.prototype.Hash=function(t){for(var e=t.pairs,r=[],i=0,n=e.length;i<n;i++)r.push(this.accept(e[i]));return"HASH{"+r.join(", ")+"}"};di.prototype.HashPair=function(t){return t.key+"="+this.accept(t.value)}});var ate=p((b$r,GLe)=>{var bF=MLe().default,qLe=FLe();bF.PrintVisitor=qLe.PrintVisitor;bF.print=qLe.print;GLe.exports=bF;function ULe(t,e){var r=require("fs"),i=r.readFileSync(e,"utf8");t.exports=bF.compile(i)}typeof require<"u"&&require.extensions&&(require.extensions[".handlebars"]=ULe,require.extensions[".hbs"]=ULe)});var eMe=p(SF=>{"use strict";Object.defineProperty(SF,"__esModule",{value:!0});SF.getProxyUrl=m3t;SF.checkBypass=ZLe;function m3t(t){let e=t.protocol==="https:";if(ZLe(t))return;let r=e?process.env.https_proxy||process.env.HTTPS_PROXY:process.env.http_proxy||process.env.HTTP_PROXY;if(r)try{return new IF(r)}catch{if(!r.startsWith("http://")&&!r.startsWith("https://"))return new IF(`http://${r}`)}else return}function ZLe(t){if(!t.hostname)return!1;let e=t.hostname;if(A3t(e))return!0;let r=process.env.no_proxy||process.env.NO_PROXY||"";if(!r)return!1;let i;t.port?i=Number(t.port):t.protocol==="http:"?i=80:t.protocol==="https:"&&(i=443);let n=[t.hostname.toUpperCase()];typeof i=="number"&&n.push(`${n[0]}:${i}`);for(let s of r.split(",").map(o=>o.trim().toUpperCase()).filter(o=>o))if(s==="*"||n.some(o=>o===s||o.endsWith(`.${s}`)||s.startsWith(".")&&o.endsWith(`${s}`)))return!0;return!1}function A3t(t){let e=t.toLowerCase();return e==="localhost"||e.startsWith("127.")||e.startsWith("[::1]")||e.startsWith("[0:0:0:0:0:0:0:1]")}var IF=class extends URL{constructor(e,r){super(e,r),this._decodedUsername=decodeURIComponent(super.username),this._decodedPassword=decodeURIComponent(super.password)}get username(){return this._decodedUsername}get password(){return this._decodedPassword}}});var rMe=p(jr=>{"use strict";var g3t=jr&&jr.__createBinding||(Object.create?(function(t,e,r,i){i===void 0&&(i=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,i,n)}):(function(t,e,r,i){i===void 0&&(i=r),t[i]=e[r]})),y3t=jr&&jr.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),xF=jr&&jr.__importStar||(function(){var t=function(e){return t=Object.getOwnPropertyNames||function(r){var i=[];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(i[i.length]=n);return i},t(e)};return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var i=t(e),n=0;n<i.length;n++)i[n]!=="default"&&g3t(r,e,i[n]);return y3t(r,e),r}})(),Di=jr&&jr.__awaiter||function(t,e,r,i){function n(s){return s instanceof r?s:new r(function(o){o(s)})}return new(r||(r=Promise))(fu Line truncated
`:case"\r":case" ":case" ":continue;default:throw Error("invalid base64 string.")}switch(n){case 0:o=s,n=1;break;case 1:r[i++]=o<<2|(s&48)>>4,o=s,n=2;break;case 2:r[i++]=(o&15)<<4|(s&60)>>2,o=s,n=3;break;case 3:r[i++]=(o&3)<<6|s,n=0;break}}if(n==1)throw Error("invalid base64 string.");return r.subarray(0,i)}WC.base64decode=H4t;function j4t(t){let e="",r=0,i,n=0;for(let s=0;s<t.length;s++)switch(i=t[s],r){case 0:e+=tp[i>>2],n=(i&3)<<4,r=1;break;case 1:e+=tp[n|i>>4],n=(i&15)<<2,r=2;break;case 2:e+=tp[n|i>>6],e+=tp[i&63],r=0;break}return r&&(e+=tp[n],e+="=",r==1&&(e+="=")),e}WC.base64encode=j4t});var aFe=p(HF=>{"use strict";Object.defineProperty(HF,"__esModule",{value:!0});HF.utf8read=void 0;var Gte=t=>String.fromCharCode.apply(String,t);function V4t(t){if(t.length<1)return"";let e=0,r=[],i=[],n=0,s,o=t.length;for(;e<o;)s=t[e++],s<128?i[n++]=s:s>191&&s<224?i[n++]=(s&31)<<6|t[e++]&63:s>239&&s<365?(s=((s&7)<<18|(t[e++]&63)<<12|(t[e++]&63)<<6|t[e++]&63)-65536,i[n++]=55296+(s>>10),i[n++]=56320+(s&1023)):i[n++]=(s&15)<<12|(t[e++]&63)<<6|t[e++]&63,n>8191&&(r.push(Gte(i)),n=0);return r.length?(n&&r.push(Gte(i.slice(0,n))),r.join("")):Gte(i.slice(0,n))}HF.utf8read=V4t});var KR=p(eh=>{"use strict";Object.defineProperty(eh,"__esModule",{value:!0});eh.WireType=eh.mergeBinaryOptions=eh.UnknownFieldHandler=void 0;var z4t;(function(t){t.symbol=Symbol.for("protobuf-ts/unknown"),t.onRead=(r,i,n,s,o)=>{(e(i)?i[t.symbol]:i[t.symbol]=[]).push({no:n,wireType:s,data:o})},t.onWrite=(r,i,n)=>{for(let{no:s,wireType:o,data:a}of t.list(i))n.tag(s,o).raw(a)},t.list=(r,i)=>{if(e(r)){let n=r[t.symbol];return i?n.filter(s=>s.no==i):n}return[]},t.last=(r,i)=>t.list(r,i).slice(-1)[0];let e=r=>r&&Array.isArray(r[t.symbol])})(z4t=eh.UnknownFieldHandler||(eh.UnknownFieldHandler={}));function $4t(t,e){return Object.assign(Object.assign({},t),e)}eh.mergeBinaryOptions=$4t;var W4t;(function(t){t[t.Varint=0]="Varint",t[t.Bit64=1]="Bit64",t[t.LengthDelimited=2]="LengthDelimited",t[t.StartGroup=3]="StartGroup",t[t.EndGroup=4]="EndGroup",t[t.Bit32=5]="Bit32"})(W4t=eh.WireType||(eh.WireType={}))});var VF=p(Ea=>{"use strict";Object.defineProperty(Ea,"__esModule",{value:!0});Ea.varint32read=Ea.varint32write=Ea.int64toString=Ea.int64fromString=Ea.varint64write=Ea.varint64read=void 0;function J4t(){let t=0,e=0;for(let i=0;i<28;i+=7){let n=this.buf[this.pos++];if(t|=(n&127)<<i,(n&128)==0)return this.assertBounds(),[t,e]}let r=this.buf[this.pos++];if(t|=(r&15)<<28,e=(r&112)>>4,(r&128)==0)return this.assertBounds(),[t,e];for(let i=3;i<=31;i+=7){let n=this.buf[this.pos++];if(e|=(n&127)<<i,(n&128)==0)return this.assertBounds(),[t,e]}throw new Error("invalid varint")}Ea.varint64read=J4t;function Y4t(t,e,r){for(let s=0;s<28;s=s+7){let o=t>>>s,a=!(!(o>>>7)&&e==0),c=(a?o|128:o)&255;if(r.push(c),!a)return}let i=t>>>28&15|(e&7)<<4,n=e>>3!=0;if(r.push((n?i|128:i)&255),!!n){for(let s=3;s<31;s=s+7){let o=e>>>s,a=!!(o>>>7),c=(a?o|128:o)&255;if(r.push(c),!a)return}r.push(e>>>31&1)}}Ea.varint64write=Y4t;var jF=65536*65536;function K4t(t){let e=t[0]=="-";e&&(t=t.slice(1));let r=1e6,i=0,n=0;function s(o,a){let c=Number(t.slice(o,a));n*=r,i=i*r+c,i>=jF&&(n=n+(i/jF|0),i=i%jF)}return s(-24,-18),s(-18,-12),s(-12,-6),s(-6),[e,i,n]}Ea.int64fromString=K4t;function X4t(t,e){if(e>>>0<=2097151)return""+(jF*e+(t>>>0));let r=t&16777215,i=(t>>>24|e<<8)>>>0&16777215,n=e>>16&65535,s=r+i*6777216+n*6710656,o=i+n*8147497,a=n*2,c=1e7;s>=c&&(o+=Math.floor(s/c),s%=c),o>=c&&(a+=Math.floor(o/c),o%=c);function u(l,f){let h=l?String(l):"";return f?"0000000".slice(h.length)+h:h}return u(a,0)+u(o,a)+u(s,1)}Ea.int64toString=X4t;function Z4t(t,e){if(t>=0){for(;t>127;)e.push(t&127|128),t=t>>>7;e.push(t)}else{for(let r=0;r<9;r++)e.push(t&127|128),t=t>>7;e.push(1)}}Ea.varint32write=Z4t;function e5t(){let t=this.buf[this.pos++],e=t&127;if((t&128)==0)return this.assertBounds(),e;if(t=this.buf[this.pos++],e|=(t&127)<<7,(t&128)==0)return this.assertBounds(),e;if(t=this.buf[this.pos++],e|=(t&127)<<14,(t&128)==0)return this.assertBounds(),e;if(t=this.buf[this.pos++],e|=(t&127)<<21,(t&128)==0)return this.assertBounds(),e;t=this.buf[this.pos++],e|=(t&15)<<28;for(let r=5;(t&128)!==0&&r<10;r++)t=this.buf[this.pos++];if((t&128)!=0)throw new Error("invalid varint");return this.assertBounds(),e>>>0}Ea.varint32read=e5t});var pA=p(dA=>{"use strict";Object.defineProperty(dA,"__esModule",{value:!0});dA.PbLong=dA.PbULong=dA.detectBi=void 0;var XR=VF(),Ar;function cFe(){let t=new DataView(new ArrayBuffer(8));Ar=globalThis.BigInt!==void 0&&typeof t.getBigInt64=="function"&&typeof t.getBigUint64=="function"&&typeof t.setBigInt64=="function"&&typeof t.setBigUint64=="function"?{MIN:BigInt("-9223372036854775808"),MAX:BigInt("9223372036854775807"),UMIN:BigInt("0"),UMAX:BigInt("18446744073709551615"),C:BigInt,V:t}:void 0}dA.detectBi=cFe;cFe();function uFe(t){if(!t)throw new Error("BigInt unavailable, see https://github.com/timostamm/protobuf-ts/blob/v1.0.8/MANUAL.md#bigint-support")}var lFe=/^-?[0-9]+$/,$F=4294967296,zF=2147483648, Line truncated
`)}};yU.RpcError=xre});var Tre=p(bU=>{"use strict";Object.defineProperty(bU,"__esModule",{value:!0});bU.mergeRpcOptions=void 0;var HFe=Nr();function C8t(t,e){if(!e)return t;let r={};EU(t,r),EU(e,r);for(let i of Object.keys(e)){let n=e[i];switch(i){case"jsonOptions":r.jsonOptions=HFe.mergeJsonOptions(t.jsonOptions,r.jsonOptions);break;case"binaryOptions":r.binaryOptions=HFe.mergeBinaryOptions(t.binaryOptions,r.binaryOptions);break;case"meta":r.meta={},EU(t.meta,r.meta),EU(e.meta,r.meta);break;case"interceptors":r.interceptors=t.interceptors?t.interceptors.concat(n):n.concat();break}}return r}bU.mergeRpcOptions=C8t;function EU(t,e){if(!t)return;let r=e;for(let[i,n]of Object.entries(t))n instanceof Date?r[i]=new Date(n.getTime()):Array.isArray(n)?r[i]=n.concat():r[i]=n}});var Dre=p(bE=>{"use strict";Object.defineProperty(bE,"__esModule",{value:!0});bE.Deferred=bE.DeferredState=void 0;var ah;(function(t){t[t.PENDING=0]="PENDING",t[t.REJECTED=1]="REJECTED",t[t.RESOLVED=2]="RESOLVED"})(ah=bE.DeferredState||(bE.DeferredState={}));var Nre=class{constructor(e=!0){this._state=ah.PENDING,this._promise=new Promise((r,i)=>{this._resolve=r,this._reject=i}),e&&this._promise.catch(r=>{})}get state(){return this._state}get promise(){return this._promise}resolve(e){if(this.state!==ah.PENDING)throw new Error(`cannot resolve ${ah[this.state].toLowerCase()}`);this._resolve(e),this._state=ah.RESOLVED}reject(e){if(this.state!==ah.PENDING)throw new Error(`cannot reject ${ah[this.state].toLowerCase()}`);this._reject(e),this._state=ah.REJECTED}resolvePending(e){this._state===ah.PENDING&&this.resolve(e)}rejectPending(e){this._state===ah.PENDING&&this.reject(e)}};bE.Deferred=Nre});var Pre=p(wU=>{"use strict";Object.defineProperty(wU,"__esModule",{value:!0});wU.RpcOutputStreamController=void 0;var jFe=Dre(),wE=Nr(),Ore=class{constructor(){this._lis={nxt:[],msg:[],err:[],cmp:[]},this._closed=!1}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 i=r.indexOf(e);i>=0&&r.splice(i,1)}}clearLis(){for(let e of Object.values(this._lis))e.splice(0,e.length)}get closed(){return this._closed!==!1}notifyNext(e,r,i){wE.assert((e?1:0)+(r?1:0)+(i?1:0)<=1,"only one emission at a time"),e&&this.notifyMessage(e),r&&this.notifyError(r),i&&this.notifyComplete()}notifyMessage(e){wE.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){wE.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(){wE.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._itState||(this._itState={q:[]}),this._closed===!0?this.pushIt({value:null,done:!0}):this._closed!==!1&&this.pushIt(this._closed),{next:()=>{let e=this._itState;wE.assert(e,"bad state"),wE.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 jFe.Deferred,e.p.promise)}}}pushIt(e){let r=this._itState;if(r)if(r.p){let i=r.p;wE.assert(i.state==jFe.DeferredState.PENDING,"iterator contract broken"),"value"in e?i.resolve(e):i.reject(e),delete r.p}else r.q.push(e)}};wU.RpcOutputStreamController=Ore});var Qre=p(iI=>{"use strict";var I8t=iI&&iI.__awaiter||function(t,e,r,i){function n(s){return s instanceof r?s:new r(function(o){o(s)})}return new(r||(r=Promise))(function(s,o){function a(l){try{u(i.next(l))}catch(f){o(f)}}function c(l){try{u(i.throw(l))}catch(f){o(f)}}function u(l){l.done?s(l.value):n(l.value).then(a,c)}u((i=i.apply(t,e||[])).next())})};Object.defineProperty(iI,"__esModule",{value:!0});iI.UnaryCall=void 0;var kre=class{constructor(e,r,i,n,s,o,a){this.method=e,this.requestHeaders=r,this.request=i,this.headers=n,this.response=s,this.status=o,this.trailers=a}then(e,r){return this.promiseFinished().then(i=>e?Promise.resolve(e(i)):i,i=>r?Promise.resolve(r(i)):Promise.reject(i))}promiseFinished(){return I8t(this,void 0,void 0,function*(){let[e,r,i,n]=yield Promise.all([this.headers,this.response,this.status,this.trailers]);return{method:this.method,requestHeaders:this.requestHeaders,request:this.request,headers:e,response:r,status:i,trailers:n}})}};iI.UnaryCall=kre});var Mre=p(nI=>{"use strict";var S8t=nI&&nI.__awaiter||function(t,e,r,i){function n(s){return s instanceof r?s:new r(function(o){o(s)})}return new(r||(r=Promise))(function(s,o){function a(l){try{u(i.next(l))}catch(f){o(f)}}function c(l){try{u(i.throw(l))}catch(f){o(f)}}function u(l){l.done?s(l.value):n(l.value).then(a,c)}u((i=i.apply(t,e||[])).next())})};Object.defineProperty(nI,"__esModule",{value:!0});nI.ServerStreamingCal Line truncated
globstar while`,e,f,r,h,d),this.matchOne(e.slice(f),r.slice(h),i))return this.debug("globstar found match!",f,a,d),!0;if(d==="."||d===".."||!n.dot&&d.charAt(0)==="."){this.debug("dot detected!",e,f,r,h);break}this.debug("globstar swallow a segment, and continue"),f++}return!!(i&&(this.debug(`
>>> no match, partial?`,e,f,r,h),f===a))}var m;if(typeof u=="string"?(m=l===u,this.debug("string match",u,l,m)):(m=l.match(u),this.debug("pattern match",u,l,m)),!m)return!1}if(s===a&&o===c)return!0;if(s===a)return i;if(o===c)return s===a-1&&e[s]==="";throw new Error("wtf?")}braceExpand(){return vUe(this.pattern,this.options)}parse(e,r){_U(e);let i=this.options;if(e==="**")if(i.noglobstar)e="*";else return Rl;if(e==="")return"";let n="",s=!1,o=!1,a=[],c=[],u,l=!1,f=-1,h=-1,d,m,A,y=e.charAt(0)===".",g=i.dot||y,E=()=>y?"":g?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",C=T=>T.charAt(0)==="."?"":i.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",S=()=>{if(u){switch(u){case"*":n+=Eie,s=!0;break;case"?":n+=Cie,s=!0;break;default:n+="\\"+u;break}this.debug("clearStateChar %j %j",u,n),u=!1}};for(let T=0,G;T<e.length&&(G=e.charAt(T));T++){if(this.debug("%s %s %s %j",e,T,n,G),o){if(G==="/")return!1;IUe[G]&&(n+="\\"),n+=G,o=!1;continue}switch(G){case"/":return!1;case"\\":if(l&&e.charAt(T+1)==="-"){n+=G;continue}S(),o=!0;continue;case"?":case"*":case"+":case"@":case"!":if(this.debug("%s %s %s %j <-- stateChar",e,T,n,G),l){this.debug(" in class"),G==="!"&&T===h+1&&(G="^"),n+=G;continue}this.debug("call clearStateChar %j",u),S(),u=G,i.noext&&S();continue;case"(":{if(l){n+="(";continue}if(!u){n+="\\(";continue}let D={type:u,start:T-1,reStart:n.length,open:CUe[u].open,close:CUe[u].close};this.debug(this.pattern," ",D),a.push(D),n+=D.open,D.start===0&&D.type!=="!"&&(y=!0,n+=C(e.slice(T+1))),this.debug("plType %j %j",u,n),u=!1;continue}case")":{let D=a[a.length-1];if(l||!D){n+="\\)";continue}a.pop(),S(),s=!0,m=D,n+=m.close,m.type==="!"&&c.push(Object.assign(m,{reEnd:n.length}));continue}case"|":{let D=a[a.length-1];if(l||!D){n+="\\|";continue}S(),n+="|",D.start===0&&D.type!=="!"&&(y=!0,n+=C(e.slice(T+1)));continue}case"[":if(S(),l){n+="\\"+G;continue}l=!0,h=T,f=n.length,n+=G;continue;case"]":if(T===h+1||!l){n+="\\"+G;continue}d=e.substring(h+1,T);try{RegExp("["+dGt(fGt(d))+"]"),n+=G}catch{n=n.substring(0,f)+"(?:$.)"}s=!0,l=!1;continue;default:S(),IUe[G]&&!(G==="^"&&l)&&(n+="\\"),n+=G;break}}for(l&&(d=e.slice(h+1),A=this.parse(d,bie),n=n.substring(0,f)+"\\["+A[0],s=s||A[1]),m=a.pop();m;m=a.pop()){let T;T=n.slice(m.reStart+m.open.length),this.debug("setting tail",n,m),T=T.replace(/((?:\\{2}){0,64})(\\?)\|/g,(D,H,L)=>(L||(L="\\"),H+H+L+"|")),this.debug(`tail=%j
%s`,T,T,m,n);let G=m.type==="*"?Eie:m.type==="?"?Cie:"\\"+m.type;s=!0,n=n.slice(0,m.reStart)+G+"\\("+T}S(),o&&(n+="\\\\");let N=cGt[n.charAt(0)];for(let T=c.length-1;T>-1;T--){let G=c[T],D=n.slice(0,G.reStart),H=n.slice(G.reStart,G.reEnd-8),L=n.slice(G.reEnd),Z=n.slice(G.reEnd-8,G.reEnd)+L,W=D.split(")").length,De=D.split("(").length-W,de=L;for(let K=0;K<De;K++)de=de.replace(/\)[+*?]?/,"");L=de;let Qe=L===""&&r!==bie?"(?:$|\\/)":"";n=D+H+L+Qe+Z}if(n!==""&&s&&(n="(?=.)"+n),N&&(n=E()+n),r===bie)return[n,s];if(i.nocase&&!s&&(s=e.toUpperCase()!==e.toLowerCase()),!s)return lGt(e);let Q=i.nocase?"i":"";try{return Object.assign(new RegExp("^"+n+"$",Q),{_glob:e,_src:n})}catch{return new RegExp("$.")}}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;let e=this.set;if(!e.length)return this.regexp=!1,this.regexp;let r=this.options,i=r.noglobstar?Eie:r.dot?oGt:aGt,n=r.nocase?"i":"",s=e.map(o=>(o=o.map(a=>typeof a=="string"?hGt(a):a===Rl?Rl:a._src).reduce((a,c)=>(a[a.length-1]===Rl&&c===Rl||a.push(c),a),[]),o.forEach((a,c)=>{a!==Rl||o[c-1]===Rl||(c===0?o.length>1?o[c+1]="(?:\\/|"+i+"\\/)?"+o[c+1]:o[c]=i:c===o.length-1?o[c-1]+="(?:\\/|"+i+")?":(o[c-1]+="(?:\\/|\\/"+i+"\\/)"+o[c+1],o[c+1]=Rl))}),o.filter(a=>a!==Rl).join("/"))).join("|");s="^(?:"+s+")$",this.negate&&(s="^(?!"+s+").*$");try{this.regexp=new RegExp(s,n)}catch{this.regexp=!1}return this.regexp}match(e,r=this.partial){if(this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return e==="";if(e==="/"&&r)return!0;let i=this.options;wie.sep!=="/"&&(e=e.split(wie.sep).join("/")),e=e.split(SUe),this.debug(this.pattern,"split",e);let n=this.set;this.debug(this.pattern,"set",n);let s;for(let o=e.length-1;o>=0&&(s=e[o],!s);o--);for(let o=0;o<n.length;o++){let a=n[o],c=e;if(i.matchBase&&a.length===1&&(c=[s]),this.matchOne(c,a,r))return i.flipNegate?!0:!this.negate}return i.flipNegate?!1:this.negate}static defaults(e){return gc.defaults(e).Minimatch}};gc.Minimatch=dI});var DUe=p((v7r,NUe)=>{NUe.exports=TUe;var Bie=require("fs"),{EventEmitter:pGt}=require("events"),{Minimatch:Sie}=_Ue(),{resolve:mGt}=require("path");function AGt(t,e){return new Promise((r,i)=>{Bie.readdir(t,{withFileTypes:!0},(n,s)=>{if(n)switch(n.code){case"ENOTDIR":e?i(n):r([]);break;case"ENOTSUP":case"ENOENT":case"ENAMETOOLONG":case"UNKNOWN":r([]);break;default:i(n);break}else r(s)})})}function xUe(t,e){return new Promise((r,i)=>{(e?Bie.stat:Bie.lstat)(t,(s,o)=>{s?s.code==="ENOENT"?r(e?xUe(t,!1):null):r(null):r(o)})})}async function*RUe(t,e,r,i,n,s){let o=await AGt(e+t,s);for(let a of o){let c=a.name;c===void 0&&(c=a,i=!0);let u=t+"/"+c,l=u.slice(1),f=e+"/"+l,h=null;(i||r)&&(h=await xUe(f,r)),!h&&a.name!==void 0&&(h=a),h===null&&(h={isDirectory:()=>!1}),h.isDirectory()?n(l)||(yield{relative:l,absolute:f,stats:h},yield*RUe(u,e,r,i,n,!1)):yield{relative:l,absolute:f,stats:h}}}async function*gGt(t,e,r,i){yield*RUe("",t,e,r,i,!0)}function yGt(t){return{pattern:t.pattern,dot:!!t.dot,noglobstar:!!t.noglobstar,matchBase:!!t.matchBase,nocase:!!t.nocase,ignore:t.ignore,skip:t.skip,follow:!!t.follow,stat:!!t.stat,nodir:!!t.nodir,mark:!!t.mark,silent:!!t.silent,absolute:!!t.absolute}}var xU=class extends pGt{constructor(e,r,i){if(super(),typeof r=="function"&&(i=r,r=null),this.options=yGt(r||{}),this.matchers=[],this.options.pattern){let n=Array.isArray(this.options.pattern)?this.options.pattern:[this.options.pattern];this.matchers=n.map(s=>new Sie(s,{dot:this.options.dot,noglobstar:this.options.noglobstar,matchBase:this.options.matchBase,nocase:this.options.nocase}))}if(this.ignoreMatchers=[],this.options.ignore){let n=Array.isArray(this.options.ignore)?this.options.ignore:[this.options.ignore];this.ignoreMatchers=n.map(s=>new Sie(s,{dot:!0}))}if(this.skipMatchers=[],this.options.skip){let n=Array.isArray(this.options.skip)?this.options.skip:[this.options.skip];this.skipMatchers=n.map(s=>new Sie(s,{dot:!0}))}this.iterator=gGt(mGt(e||"."),this.options.follow,this.options.stat,this._shouldSkipDirectory.bind(this)),this.paused=!1,this.inactive=!1,this.aborted=!1,i&&(this._matches=[],this.on("match",n=>this._matches.push(this.options.absolute?n.absolute:n.relative)),this.on("error",n=>i(n)),this.on("end",()=>i(null,this._matches))),setTimeout(()=>this._next(),0)}_shouldSkipDirectory(e){return this.skipMatchers.some(r=>r.match(e))}_fileMatches(e,r){let i=e+(r?"/":"");return(this.matchers.length===0||this.matchers.some(n=>n.match(i)))&&!this.ignoreMatchers.some(n=>n.match(i))&&(!this.options.nodir||!r)}_next(){!this.paused&&!this.aborted?this.iterator.next().then(e=>{if(e.done)this.emit("end");else{let r=e.value.stats.isDirectory();if(this._fileMatches(e.value.relative,r)){let i=e.value.relative,n=e.value.absolute;this.options.mark&&r&&(i+="/",n+="/"),this.options.stat?this.emit("match",{relative:i,absolute:n,stat:e.value.stats}):this.emit("match",{relative:i,absolute:n})}this._next(this.iterator)}}).catch(e=>{this.abort(),this.emit("error",e),!e.code&&!this.options.silent&&console.erro Line truncated
`,x);x=M===-1?v.length:M}else if(P!==-1&&v[x]==="/"&&v[x+1]==="*"){let M=v.indexOf("*/",x);M!==-1?(x=M+2,P=v.indexOf("*/",x)):(I+=v[x],x++)}else I+=v[x],x++;return I}function ab(v){let I=Og(v.toString()),x=I.match(Kl);if(x||(x=I.match(Ku)),!x)throw new Error(`could not parse args in autoInject
Source:
`+I);let[,P]=x;return P.replace(/\s/g,"").split(ob).map(M=>M.replace(Dg,"").trim())}function mm(v,I){var x={};return Object.keys(v).forEach(P=>{var M=v[P],U,V=d(M),z=!V&&M.length===1||V&&M.length===0;if(Array.isArray(M))U=[...M],M=U.pop(),x[P]=U.concat(U.length>0?ee:M);else if(z)x[P]=M;else{if(U=ab(M),M.length===0&&!V&&U.length===0)throw new Error("autoInject task functions require explicit parameters.");V||U.pop(),x[P]=U.concat(ee)}function ee(Oe,Qt){var Vt=U.map(Mt=>Oe[Mt]);Vt.push(Qt),y(M)(...Vt)}}),Yl(x,I)}class cb{constructor(){this.head=this.tail=null,this.length=0}removeLink(I){return I.prev?I.prev.next=I.next:this.head=I.next,I.next?I.next.prev=I.prev:this.tail=I.prev,I.prev=I.next=null,this.length-=1,I}empty(){for(;this.head;)this.shift();return this}insertAfter(I,x){x.prev=I,x.next=I.next,I.next?I.next.prev=x:this.tail=x,I.next=x,this.length+=1}insertBefore(I,x){x.prev=I.prev,x.next=I,I.prev?I.prev.next=x:this.head=x,I.prev=x,this.length+=1}unshift(I){this.head?this.insertBefore(this.head,I):Pg(this,I)}push(I){this.tail?this.insertAfter(this.tail,I):Pg(this,I)}shift(){return this.head&&this.removeLink(this.head)}pop(){return this.tail&&this.removeLink(this.tail)}toArray(){return[...this]}*[Symbol.iterator](){for(var I=this.head;I;)yield I.data,I=I.next}remove(I){for(var x=this.head;x;){var{next:P}=x;I(x)&&this.removeLink(x),x=P}return this}}function Pg(v,I){v.length=1,v.head=v.tail=I}function Am(v,I,x){if(I==null)I=1;else if(I===0)throw new RangeError("Concurrency must not be zero");var P=y(v),M=0,U=[];let V={error:[],drain:[],saturated:[],unsaturated:[],empty:[]};function z(Ve,Ne){V[Ve].push(Ne)}function ee(Ve,Ne){let ze=(...Ft)=>{Oe(Ve,ze),Ne(...Ft)};V[Ve].push(ze)}function Oe(Ve,Ne){if(!Ve)return Object.keys(V).forEach(ze=>V[ze]=[]);if(!Ne)return V[Ve]=[];V[Ve]=V[Ve].filter(ze=>ze!==Ne)}function Qt(Ve,...Ne){V[Ve].forEach(ze=>ze(...Ne))}var Vt=!1;function Mt(Ve,Ne,ze,Ft){if(Ft!=null&&typeof Ft!="function")throw new Error("task callback must be a function");zt.started=!0;var Lr,En;function kc(Vg,...mv){if(Vg)return ze?En(Vg):Lr();if(mv.length<=1)return Lr(mv[0]);Lr(mv)}var Ib=zt._createTaskItem(Ve,ze?kc:Ft||kc);if(Ne?zt._tasks.unshift(Ib):zt._tasks.push(Ib),Vt||(Vt=!0,u(()=>{Vt=!1,zt.process()})),ze||!Ft)return new Promise((Vg,mv)=>{Lr=Vg,En=mv})}function Pc(Ve){return function(Ne,...ze){M-=1;for(var Ft=0,Lr=Ve.length;Ft<Lr;Ft++){var En=Ve[Ft],kc=U.indexOf(En);kc===0?U.shift():kc>0&&U.splice(kc,1),En.callback(Ne,...ze),Ne!=null&&Qt("error",Ne,En.data)}M<=zt.concurrency-zt.buffer&&Qt("unsaturated"),zt.idle()&&Qt("drain"),zt.process()}}function Cb(Ve){return Ve.length===0&&zt.idle()?(u(()=>Qt("drain")),!0):!1}let jg=Ve=>Ne=>{if(!Ne)return new Promise((ze,Ft)=>{ee(Ve,(Lr,En)=>{if(Lr)return Ft(Lr);ze(En)})});Oe(Ve),z(Ve,Ne)};var pv=!1,zt={_tasks:new cb,_createTaskItem(Ve,Ne){return{data:Ve,callback:Ne}},*[Symbol.iterator](){yield*zt._tasks[Symbol.iterator]()},concurrency:I,payload:x,buffer:I/4,started:!1,paused:!1,push(Ve,Ne){return Array.isArray(Ve)?Cb(Ve)?void 0:Ve.map(ze=>Mt(ze,!1,!1,Ne)):Mt(Ve,!1,!1,Ne)},pushAsync(Ve,Ne){return Array.isArray(Ve)?Cb(Ve)?void 0:Ve.map(ze=>Mt(ze,!1,!0,Ne)):Mt(Ve,!1,!0,Ne)},kill(){Oe(),zt._tasks.empty()},unshift(Ve,Ne){return Array.isArray(Ve)?Cb(Ve)?void 0:Ve.map(ze=>Mt(ze,!0,!1,Ne)):Mt(Ve,!0,!1,Ne)},unshiftAsync(Ve,Ne){return Array.isArray(Ve)?Cb(Ve)?void 0:Ve.map(ze=>Mt(ze,!0,!0,Ne)):Mt(Ve,!0,!0,Ne)},remove(Ve){zt._tasks.remove(Ve)},process(){if(!pv){for(pv=!0;!zt.paused&&M<zt.concurrency&&zt._tasks.length;){var Ve=[],Ne=[],ze=zt._tasks.length;zt.payload&&(ze=Math.min(ze,zt.payload));for(var Ft=0;Ft<ze;Ft++){var Lr=zt._tasks.shift();Ve.push(Lr),U.push(Lr),Ne.push(Lr.data)}M+=1,zt._tasks.length===0&&Qt("empty"),M===zt.concurrency&&Qt("saturated");var En=W(Pc(Ve));P(Ne,En)}pv=!1}},length(){return zt._tasks.length},running(){return M},workersList(){return U},idle(){return zt._tasks.length+M===0},pause(){zt.paused=!0},resume(){zt.paused!==!1&&(zt.paused=!1,u(zt.process))}};return Object.defineProperties(zt,{saturated:{writable:!1,value:jg("saturated")},unsaturated:{writable:!1,value:jg("unsaturated")},empty:{writable:!1,value:jg("empty")},drain:{writable:!1,value:jg("drain")},error:{writable:!1,value:jg("error")}}),zt}function gm(v,I){return Am(v,1,I)}function so(v,I,x){return Am(v,I,x)}function ub(v,I,x,P){P=T(P);var M=y(x);return Yr(v,(U,V,z)=>{M(I,U,(ee,Oe)=>{I=Oe,z(ee)})},U=>P(U,I))}var ka=g(ub,4);function kg(...v){var I=v.map(y);return function(...x){var P=this,M=x[x.length-1];return typeof M=="function"?x.pop():M=Pa(),ka(I,x,(U,V,z)=>{V.apply(P,U.concat((ee,...Oe)=>{z(ee,Oe)}))},(U,V)=>M(U,...V)),M[Es]}}function ve(...v){return kg(...v.reverse())}function F(v,I,x,P){return C(de(I),v,x,P)}var R=g(F,4);function q(v,I,x,P){var M=y(x);return R(v,I,(U,V)=>{M(U,(z,...ee)=>z?V(z):V(z,ee))},(U,V)=>{for(var z=[],ee=0;ee<V.length;ee++)V[ee]&&(z=z.concat(...V[ee]));return P(U,z)})}var j=g(q,4);function Y(v,I,x){return j(v,1/0,I,x)}var re=g(Y,3);function Be(v,I,x){return Line truncated
GFS4: `),console.error(t)});Zr[fs]||(GUe=global[fs]||[],jUe(Zr,GUe),Zr.close=(function(t){function e(r,i){return t.call(Zr,r,function(n){n||HUe(),typeof i=="function"&&i.apply(this,arguments)})}return Object.defineProperty(e,OU,{value:t}),e})(Zr.close),Zr.closeSync=(function(t){function e(r){t.apply(Zr,arguments),HUe()}return Object.defineProperty(e,OU,{value:t}),e})(Zr.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){IE(Zr[fs]),require("assert").equal(Zr[fs].length,0)}));var GUe;global[fs]||jUe(global,Zr[fs]);Rie.exports=_ie(_Gt(Zr));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!Zr.__patched&&(Rie.exports=_ie(Zr),Zr.__patched=!0);function _ie(t){BGt(t),t.gracefulify=_ie,t.createReadStream=N,t.createWriteStream=Q;var e=t.readFile;t.readFile=r;function r(D,H,L){return typeof H=="function"&&(L=H,H=null),Z(D,H,L);function Z(W,De,de,Qe){return e(W,De,function(K){K&&(K.code==="EMFILE"||K.code==="ENFILE")?pI([Z,[W,De,de],K,Qe||Date.now(),Date.now()]):typeof de=="function"&&de.apply(this,arguments)})}}var i=t.writeFile;t.writeFile=n;function n(D,H,L,Z){return typeof L=="function"&&(Z=L,L=null),W(D,H,L,Z);function W(De,de,Qe,K,Te){return i(De,de,Qe,function(Ie){Ie&&(Ie.code==="EMFILE"||Ie.code==="ENFILE")?pI([W,[De,de,Qe,K],Ie,Te||Date.now(),Date.now()]):typeof K=="function"&&K.apply(this,arguments)})}}var s=t.appendFile;s&&(t.appendFile=o);function o(D,H,L,Z){return typeof L=="function"&&(Z=L,L=null),W(D,H,L,Z);function W(De,de,Qe,K,Te){return s(De,de,Qe,function(Ie){Ie&&(Ie.code==="EMFILE"||Ie.code==="ENFILE")?pI([W,[De,de,Qe,K],Ie,Te||Date.now(),Date.now()]):typeof K=="function"&&K.apply(this,arguments)})}}var a=t.copyFile;a&&(t.copyFile=c);function c(D,H,L,Z){return typeof L=="function"&&(Z=L,L=0),W(D,H,L,Z);function W(De,de,Qe,K,Te){return a(De,de,Qe,function(Ie){Ie&&(Ie.code==="EMFILE"||Ie.code==="ENFILE")?pI([W,[De,de,Qe,K],Ie,Te||Date.now(),Date.now()]):typeof K=="function"&&K.apply(this,arguments)})}}var u=t.readdir;t.readdir=f;var l=/^v[0-5]\./;function f(D,H,L){typeof H=="function"&&(L=H,H=null);var Z=l.test(process.version)?function(de,Qe,K,Te){return u(de,W(de,Qe,K,Te))}:function(de,Qe,K,Te){return u(de,Qe,W(de,Qe,K,Te))};return Z(D,H,L);function W(De,de,Qe,K){return function(Te,Ie){Te&&(Te.code==="EMFILE"||Te.code==="ENFILE")?pI([Z,[De,de,Qe],Te,K||Date.now(),Date.now()]):(Ie&&Ie.sort&&Ie.sort(),typeof Qe=="function"&&Qe.call(this,Te,Ie))}}}if(process.version.substr(0,4)==="v0.8"){var h=vGt(t);g=h.ReadStream,C=h.WriteStream}var d=t.ReadStream;d&&(g.prototype=Object.create(d.prototype),g.prototype.open=E);var m=t.WriteStream;m&&(C.prototype=Object.create(m.prototype),C.prototype.open=S),Object.defineProperty(t,"ReadStream",{get:function(){return g},set:function(D){g=D},enumerable:!0,configurable:!0}),Object.defineProperty(t,"WriteStream",{get:function(){return C},set:function(D){C=D},enumerable:!0,configurable:!0});var A=g;Object.defineProperty(t,"FileReadStream",{get:function(){return A},set:function(D){A=D},enumerable:!0,configurable:!0});var y=C;Object.defineProperty(t,"FileWriteStream",{get:function(){return y},set:function(D){y=D},enumerable:!0,configurable:!0});function g(D,H){return this instanceof g?(d.apply(this,arguments),this):g.apply(Object.create(g.prototype),arguments)}function E(){var D=this;G(D.path,D.flags,D.mode,function(H,L){H?(D.autoClose&&D.destroy(),D.emit("error",H)):(D.fd=L,D.emit("open",L),D.read())})}function C(D,H){return this instanceof C?(m.apply(this,arguments),this):C.apply(Object.create(C.prototype),arguments)}function S(){var D=this;G(D.path,D.flags,D.mode,function(H,L){H?(D.destroy(),D.emit("error",H)):(D.fd=L,D.emit("open",L))})}function N(D,H){return new t.ReadStream(D,H)}function Q(D,H){return new t.WriteStream(D,H)}var T=t.open;t.open=G;function G(D,H,L,Z){return typeof L=="function"&&(Z=L,L=null),W(D,H,L,Z);function W(De,de,Qe,K,Te){return T(De,de,Qe,function(Ie,Rt){Ie&&(Ie.code==="EMFILE"||Ie.code==="ENFILE")?pI([W,[De,de,Qe,K],Ie,Te||Date.now(),Date.now()]):typeof K=="function"&&K.apply(this,arguments)})}}return t}function pI(t){IE("ENQUEUE",t[0].name,t[1]),Zr[fs].push(t),xie()}var DU;function HUe(){for(var t=Date.now(),e=0;e<Zr[fs].length;++e)Zr[fs][e].length>2&&(Zr[fs][e][3]=t,Zr[fs][e][4]=t);xie()}function xie(){if(clearTimeout(DU),DU=void 0,Zr[fs].length!==0){var t=Zr[fs].shift(),e=t[0],r=t[1],i=t[2],n=t[3],s=t[4];if(n===void 0)IE("RETRY",e.name,r),e.apply(null,r);else if(Date.now()-n>=6e4){IE("TIMEOUT",e.name,r);var o=r.pop();typeof o=="function"&&o.call(null,i)}else{var a=Date.now()-s,c=Math.max(s-n,1),u=Math.min(c*1.2,100);a>=u?(IE("RETRY",e.name,r),e.apply(null,r.concat([n]))):Zr[fs].push(t)}DU===void 0&&(DU=setTimeout(xie,0))}}});var PU=p((N7r,VUe)=>{"use strict";var fh=t=>t!==null&&typeof t=="object"&&typeof t.pipe=="function";fh.writable=t=>fh(t)&&t.writable!==!1&&typeof t._write=="function"&&typeof t._writableState=="object";fh.readable=t=>fh(t)&&t.readable!==!1&&typeof t._read=="function"&&typeof t._readableState= Line truncated
`;super(r),this.name="AggregateError",this.errors=e}};mne.exports={AggregateError:pne,kEmptyObject:Object.freeze({}),once(t){let e=!1;return function(...r){e||(e=!0,t.apply(this,r))}},createDeferredPromise:function(){let t,e;return{promise:new Promise((i,n)=>{t=i,e=n}),resolve:t,reject:e}},promisify(t){return new Promise((e,r)=>{t((i,...n)=>i?r(i):e(...n))})},debuglog(){return function(){}},format(t,...e){return t.replace(/%([sdifj])/g,function(...[r,i]){let n=e.shift();return i==="f"?n.toFixed(6):i==="j"?JSON.stringify(n):i==="s"&&typeof n=="object"?`${n.constructor!==Object?n.constructor.name:""} {}`.trim():n.toString()})},inspect(t){switch(typeof t){case"string":if(t.includes("'"))if(t.includes('"')){if(!t.includes("`")&&!t.includes("${"))return`\`${t}\``}else return`"${t}"`;return`'${t}'`;case"number":return isNaN(t)?"NaN":Object.is(t,-0)?String(t):t;case"bigint":return`${String(t)}n`;case"boolean":case"undefined":return String(t);case"object":return"{}"}},types:{isAsyncFunction(t){return t instanceof lzt},isArrayBufferView(t){return ArrayBuffer.isView(t)}},isBlob:fzt,deprecate(t,e){return t},addAbortListener:require("events").addAbortListener||function(e,r){if(e===void 0)throw new ERR_INVALID_ARG_TYPE("signal","AbortSignal",e);L4e(e,"signal"),hzt(r,"listener");let i;return e.aborted?queueMicrotask(()=>r()):(e.addEventListener("abort",r,{__proto__:null,once:!0,[ozt]:!0}),i=()=>{e.removeEventListener("abort",r)}),{__proto__:null,[azt](){var n;(n=i)===null||n===void 0||n()}}},AbortSignalAny:czt.any||function(e){if(e.length===1)return e[0];let r=new uzt,i=()=>r.abort();return e.forEach(n=>{L4e(n,"signals"),n.addEventListener("abort",i,{once:!0})}),r.signal.addEventListener("abort",()=>{e.forEach(n=>n.removeEventListener("abort",i))},{once:!0}),r.signal}};mne.exports.promisify.custom=Symbol.for("nodejs.util.promisify.custom")});var _o=p((GKr,U4e)=>{"use strict";var{format:dzt,inspect:rq,AggregateError:pzt}=ks(),mzt=globalThis.AggregateError||pzt,Azt=Symbol("kIsNodeError"),gzt=["string","function","number","object","Function","Object","boolean","bigint","symbol"],yzt=/^([A-Z][a-z0-9]*)+$/,Ezt="__node_internal_",iq={};function vE(t,e){if(!t)throw new iq.ERR_INTERNAL_ASSERTION(e)}function M4e(t){let e="",r=t.length,i=t[0]==="-"?1:0;for(;r>=i+4;r-=3)e=`_${t.slice(r-3,r)}${e}`;return`${t.slice(0,r)}${e}`}function bzt(t,e,r){if(typeof e=="function")return vE(e.length<=r.length,`Code: ${t}; The provided arguments length (${r.length}) does not match the required ones (${e.length}).`),e(...r);let i=(e.match(/%[dfijoOs]/g)||[]).length;return vE(i===r.length,`Code: ${t}; The provided arguments length (${r.length}) does not match the required ones (${i}).`),r.length===0?e:dzt(e,...r)}function ds(t,e,r){r||(r=Error);class i extends r{constructor(...s){super(bzt(t,e,s))}toString(){return`${this.name} [${t}]: ${this.message}`}}Object.defineProperties(i.prototype,{name:{value:r.name,writable:!0,enumerable:!1,configurable:!0},toString:{value(){return`${this.name} [${t}]: ${this.message}`},writable:!0,enumerable:!1,configurable:!0}}),i.prototype.code=t,i.prototype[Azt]=!0,iq[t]=i}function F4e(t){let e=Ezt+t.name;return Object.defineProperty(t,"name",{value:e}),t}function wzt(t,e){if(t&&e&&t!==e){if(Array.isArray(e.errors))return e.errors.push(t),e;let r=new mzt([e,t],e.message);return r.code=e.code,r}return t||e}var Ane=class extends Error{constructor(e="The operation was aborted",r=void 0){if(r!==void 0&&typeof r!="object")throw new iq.ERR_INVALID_ARG_TYPE("options","Object",r);super(e,r),this.code="ABORT_ERR",this.name="AbortError"}};ds("ERR_ASSERTION","%s",Error);ds("ERR_INVALID_ARG_TYPE",(t,e,r)=>{vE(typeof t=="string","'name' must be a string"),Array.isArray(e)||(e=[e]);let i="The ";t.endsWith(" argument")?i+=`${t} `:i+=`"${t}" ${t.includes(".")?"property":"argument"} `,i+="must be ";let n=[],s=[],o=[];for(let c of e)vE(typeof c=="string","All expected entries have to be of type string"),gzt.includes(c)?n.push(c.toLowerCase()):yzt.test(c)?s.push(c):(vE(c!=="object",'The value "object" should be written as "Object"'),o.push(c));if(s.length>0){let c=n.indexOf("object");c!==-1&&(n.splice(n,c,1),s.push("Object"))}if(n.length>0){switch(n.length){case 1:i+=`of type ${n[0]}`;break;case 2:i+=`one of type ${n[0]} or ${n[1]}`;break;default:{let c=n.pop();i+=`one of type ${n.join(", ")}, or ${c}`}}(s.length>0||o.length>0)&&(i+=" or ")}if(s.length>0){switch(s.length){case 1:i+=`an instance of ${s[0]}`;break;case 2:i+=`an instance of ${s[0]} or ${s[1]}`;break;default:{let c=s.pop();i+=`an instance of ${s.join(", ")}, or ${c}`}}o.length>0&&(i+=" or ")}switch(o.length){case 0:break;case 1:o[0].toLowerCase()!==o[0]&&(i+="an "),i+=`${o[0]}`;break;case 2:i+=`one of ${o[0]} or ${o[1]}`;break;default:{let c=o.pop();i+=`one of ${o.join(", ")}, or ${c}`}}if(r==null)i+=`. Received ${r}`;else if(typeof r=="function"&&r.name)i+=`. Received function ${r.name}`;else if(typeof r=="object"){var a;if((a=r.constructor)!==null&&a!==void 0&&a.name)i+=Line truncated
`)),e.linkname&&(r+=zoe(" linkpath="+e.linkname+`
`));let i=e.pax;if(i)for(let n in i)r+=zoe(" "+n+"="+i[n]+`
`);return jt.from(r)};iS.decodePax=function(e){let r={};for(;e.length;){let i=0;for(;i<e.length&&e[i]!==32;)i++;let n=parseInt(jt.toString(e.subarray(0,i)),10);if(!n)return r;let s=jt.toString(e.subarray(i+1,n-1)),o=s.indexOf("=");if(o===-1)return r;r[s.slice(0,o)]=s.slice(o+1),e=e.subarray(n)}return r};iS.encode=function(e){let r=jt.alloc(512),i=e.name,n="";if(e.typeflag===5&&i[i.length-1]!=="/"&&(i+="/"),jt.byteLength(i)!==i.length)return null;for(;jt.byteLength(i)>100;){let s=i.indexOf("/");if(s===-1)return null;n+=n?"/"+i.slice(0,s):i.slice(0,s),i=i.slice(s+1)}return jt.byteLength(i)>100||jt.byteLength(n)>155||e.linkname&&jt.byteLength(e.linkname)>100?null:(jt.write(r,i),jt.write(r,PA(e.mode&Ltr,6),100),jt.write(r,PA(e.uid,6),108),jt.write(r,PA(e.gid,6),116),jtr(e.size,r,124),jt.write(r,PA(e.mtime.getTime()/1e3|0,11),136),r[156]=O3+Gtr(e.type),e.linkname&&jt.write(r,e.linkname,157),jt.copy(FVe,r,_N),jt.copy(Ptr,r,$oe),e.uname&&jt.write(r,e.uname,265),e.gname&&jt.write(r,e.gname,297),jt.write(r,PA(e.devmajor||0,6),329),jt.write(r,PA(e.devminor||0,6),337),n&&jt.write(r,n,345),jt.write(r,PA(qVe(r),6),148),r)};iS.decode=function(e,r,i){let n=e[156]===0?0:e[156]-O3,s=rS(e,0,100,r),o=OA(e,100,8),a=OA(e,108,8),c=OA(e,116,8),u=OA(e,124,12),l=OA(e,136,12),f=qtr(n),h=e[157]===0?null:rS(e,157,100,r),d=rS(e,265,32),m=rS(e,297,32),A=OA(e,329,8),y=OA(e,337,8),g=qVe(e);if(g===256)return null;if(g!==OA(e,148,8))throw new Error("Invalid tar header. Maybe the tar is corrupted or it needs to be gunzipped?");if(Mtr(e))e[345]&&(s=rS(e,345,155,r)+"/"+s);else if(!Ftr(e)){if(!i)throw new Error("Invalid tar header: unknown format.")}return n===0&&s&&s[s.length-1]==="/"&&(n=5),{name:s,mode:o,uid:a,gid:c,size:u,mtime:new Date(1e3*l),type:f,linkname:h,uname:d,gname:m,devmajor:A,devminor:y,pax:null}};function Mtr(t){return jt.equals(FVe,t.subarray(_N,_N+6))}function Ftr(t){return jt.equals(ktr,t.subarray(_N,_N+6))&&jt.equals(Qtr,t.subarray($oe,$oe+2))}function Utr(t,e,r){return typeof t!="number"?r:(t=~~t,t>=e?e:t>=0||(t+=e,t>=0)?t:0)}function qtr(t){switch(t){case 0:return"file";case 1:return"link";case 2:return"symlink";case 3:return"character-device";case 4:return"block-device";case 5:return"directory";case 6:return"fifo";case 7:return"contiguous-file";case 72:return"pax-header";case 55:return"pax-global-header";case 27:return"gnu-long-link-path";case 28:case 30:return"gnu-long-path"}return null}function Gtr(t){switch(t){case"file":return 0;case"link":return 1;case"symlink":return 2;case"character-device":return 3;case"block-device":return 4;case"directory":return 5;case"fifo":return 6;case"contiguous-file":return 7;case"pax-header":return 72}return 0}function UVe(t,e,r,i){for(;r<i;r++)if(t[r]===e)return r;return i}function qVe(t){let e=256;for(let r=0;r<148;r++)e+=t[r];for(let r=156;r<512;r++)e+=t[r];return e}function PA(t,e){return t=t.toString(8),t.length>e?Otr.slice(0,e)+" ":Dtr.slice(0,e-t.length)+t+" "}function Htr(t,e,r){e[r]=128;for(let i=11;i>0;i--)e[r+i]=t&255,t=Math.floor(t/256)}function jtr(t,e,r){t.toString(8).length>11?Htr(t,e,r):jt.write(e,PA(t,11),r)}function Vtr(t){let e;if(t[0]===128)e=!0;else if(t[0]===255)e=!1;else return null;let r=[],i;for(i=t.length-1;i>0;i--){let o=t[i];e?r.push(o):r.push(255-o)}let n=0,s=r.length;for(i=0;i<s;i++)n+=r[i]*Math.pow(256,i);return e?n:-1*n}function OA(t,e,r){if(t=t.subarray(e,e+r),e=0,t[e]&128)return Vtr(t);{for(;e<t.length&&t[e]===32;)e++;let i=Utr(UVe(t,32,e,t.length),t.length,t.length);for(;e<i&&t[e]===0;)e++;return i===e?0:parseInt(jt.toString(t.subarray(e,i)),8)}}function rS(t,e,r,i){return jt.toString(t.subarray(e,UVe(t,0,e,e+r)),i)}function zoe(t){let e=jt.byteLength(t),r=Math.floor(Math.log(e)/Math.log(10))+1;return e+r>=Math.pow(10,r)&&r++,e+r+t}});var zVe=p((cei,VVe)=>{var{Writable:ztr,Readable:$tr,getStreamError:GVe}=Voe(),Wtr=Roe(),HVe=D3(),nS=Woe(),Jtr=HVe.alloc(0),Yoe=class{constructor(){this.buffered=0,this.shifted=0,this.queue=new Wtr,this._offset=0}push(e){this.buffered+=e.byteLength,this.queue.push(e)}shiftFirst(e){return this._buffered===0?null:this._next(e)}shift(e){if(e>this.buffered)return null;if(e===0)return Jtr;let r=this._next(e);if(e===r.byteLength)return r;let i=[r];for(;(e-=r.byteLength)>0;)r=this._next(e),i.push(r);return HVe.concat(i)}_next(e){let r=this.queue.peek(),i=r.byteLength-this._offset;if(e>=i){let n=this._offset?r.subarray(this._offset,r.byteLength):r;return this.queue.shift(),this._offset=0,this.buffered-=i,this.shifted+=i,n}return this.buffered-=e,this.shifted+=e,r.subarray(this._offset,this._offset+=e)}},Koe=class extends $tr{constructor(e,r,i){super(),this.header=r,this.offset=i,this._parent=e}_read(e){this.header.size===0&&this.push(null),this._parent._stream===this&&this._parent._update(),e(null)}_predestroy(){this._parent.destroy(GVe(this))}_detach(){this._parent._stream===this&&(this._parent._stream=null,this._parent._missing=jVe(this.header.size),this._parent._update())}_destroy(e){this._detach(),e(null)}},Xoe=class extends z Line truncated
`,nexist:"\u2204",nexists:"\u2204",nfr:"\u{1D52B}",Nfr:"\u{1D511}",nge:"\u2271",ngE:"\u2267\u0338",ngeq:"\u2271",ngeqq:"\u2267\u0338",ngeqslant:"\u2A7E\u0338",nges:"\u2A7E\u0338",nGg:"\u22D9\u0338",ngsim:"\u2275",ngt:"\u226F",nGt:"\u226B\u20D2",ngtr:"\u226F",nGtv:"\u226B\u0338",nharr:"\u21AE",nhArr:"\u21CE",nhpar:"\u2AF2",ni:"\u220B",nis:"\u22FC",nisd:"\u22FA",niv:"\u220B",njcy:"\u045A",NJcy:"\u040A",nlarr:"\u219A",nlArr:"\u21CD",nldr:"\u2025",nle:"\u2270",nlE:"\u2266\u0338",nleftarrow:"\u219A",nLeftarrow:"\u21CD",nleftrightarrow:"\u21AE",nLeftrightarrow:"\u21CE",nleq:"\u2270",nleqq:"\u2266\u0338",nleqslant:"\u2A7D\u0338",nles:"\u2A7D\u0338",nless:"\u226E",nLl:"\u22D8\u0338",nlsim:"\u2274",nlt:"\u226E",nLt:"\u226A\u20D2",nltri:"\u22EA",nltrie:"\u22EC",nLtv:"\u226A\u0338",nmid:"\u2224",NoBreak:"\u2060",NonBreakingSpace:"\xA0",nopf:"\u{1D55F}",Nopf:"\u2115",not:"\xAC",Not:"\u2AEC",NotCongruent:"\u2262",NotCupCap:"\u226D",NotDoubleVerticalBar:"\u2226",NotElement:"\u2209",NotEqual:"\u2260",NotEqualTilde:"\u2242\u0338",NotExists:"\u2204",NotGreater:"\u226F",NotGreaterEqual:"\u2271",NotGreaterFullEqual:"\u2267\u0338",NotGreaterGreater:"\u226B\u0338",NotGreaterLess:"\u2279",NotGreaterSlantEqual:"\u2A7E\u0338",NotGreaterTilde:"\u2275",NotHumpDownHump:"\u224E\u0338",NotHumpEqual:"\u224F\u0338",notin:"\u2209",notindot:"\u22F5\u0338",notinE:"\u22F9\u0338",notinva:"\u2209",notinvb:"\u22F7",notinvc:"\u22F6",NotLeftTriangle:"\u22EA",NotLeftTriangleBar:"\u29CF\u0338",NotLeftTriangleEqual:"\u22EC",NotLess:"\u226E",NotLessEqual:"\u2270",NotLessGreater:"\u2278",NotLessLess:"\u226A\u0338",NotLessSlantEqual:"\u2A7D\u0338",NotLessTilde:"\u2274",NotNestedGreaterGreater:"\u2AA2\u0338",NotNestedLessLess:"\u2AA1\u0338",notni:"\u220C",notniva:"\u220C",notnivb:"\u22FE",notnivc:"\u22FD",NotPrecedes:"\u2280",NotPrecedesEqual:"\u2AAF\u0338",NotPrecedesSlantEqual:"\u22E0",NotReverseElement:"\u220C",NotRightTriangle:"\u22EB",NotRightTriangleBar:"\u29D0\u0338",NotRightTriangleEqual:"\u22ED",NotSquareSubset:"\u228F\u0338",NotSquareSubsetEqual:"\u22E2",NotSquareSuperset:"\u2290\u0338",NotSquareSupersetEqual:"\u22E3",NotSubset:"\u2282\u20D2",NotSubsetEqual:"\u2288",NotSucceeds:"\u2281",NotSucceedsEqual:"\u2AB0\u0338",NotSucceedsSlantEqual:"\u22E1",NotSucceedsTilde:"\u227F\u0338",NotSuperset:"\u2283\u20D2",NotSupersetEqual:"\u2289",NotTilde:"\u2241",NotTildeEqual:"\u2244",NotTildeFullEqual:"\u2247",NotTildeTilde:"\u2249",NotVerticalBar:"\u2224",npar:"\u2226",nparallel:"\u2226",nparsl:"\u2AFD\u20E5",npart:"\u2202\u0338",npolint:"\u2A14",npr:"\u2280",nprcue:"\u22E0",npre:"\u2AAF\u0338",nprec:"\u2280",npreceq:"\u2AAF\u0338",nrarr:"\u219B",nrArr:"\u21CF",nrarrc:"\u2933\u0338",nrarrw:"\u219D\u0338",nrightarrow:"\u219B",nRightarrow:"\u21CF",nrtri:"\u22EB",nrtrie:"\u22ED",nsc:"\u2281",nsccue:"\u22E1",nsce:"\u2AB0\u0338",nscr:"\u{1D4C3}",Nscr:"\u{1D4A9}",nshortmid:"\u2224",nshortparallel:"\u2226",nsim:"\u2241",nsime:"\u2244",nsimeq:"\u2244",nsmid:"\u2224",nspar:"\u2226",nsqsube:"\u22E2",nsqsupe:"\u22E3",nsub:"\u2284",nsube:"\u2288",nsubE:"\u2AC5\u0338",nsubset:"\u2282\u20D2",nsubseteq:"\u2288",nsubseteqq:"\u2AC5\u0338",nsucc:"\u2281",nsucceq:"\u2AB0\u0338",nsup:"\u2285",nsupe:"\u2289",nsupE:"\u2AC6\u0338",nsupset:"\u2283\u20D2",nsupseteq:"\u2289",nsupseteqq:"\u2AC6\u0338",ntgl:"\u2279",ntilde:"\xF1",Ntilde:"\xD1",ntlg:"\u2278",ntriangleleft:"\u22EA",ntrianglelefteq:"\u22EC",ntriangleright:"\u22EB",ntrianglerighteq:"\u22ED",nu:"\u03BD",Nu:"\u039D",num:"#",numero:"\u2116",numsp:"\u2007",nvap:"\u224D\u20D2",nvdash:"\u22AC",nvDash:"\u22AD",nVdash:"\u22AE",nVDash:"\u22AF",nvge:"\u2265\u20D2",nvgt:">\u20D2",nvHarr:"\u2904",nvinfin:"\u29DE",nvlArr:"\u2902",nvle:"\u2264\u20D2",nvlt:"<\u20D2",nvltrie:"\u22B4\u20D2",nvrArr:"\u2903",nvrtrie:"\u22B5\u20D2",nvsim:"\u223C\u20D2",nwarhk:"\u2923",nwarr:"\u2196",nwArr:"\u21D6",nwarrow:"\u2196",nwnear:"\u2927",oacute:"\xF3",Oacute:"\xD3",oast:"\u229B",ocir:"\u229A",ocirc:"\xF4",Ocirc:"\xD4",ocy:"\u043E",Ocy:"\u041E",odash:"\u229D",odblac:"\u0151",Odblac:"\u0150",odiv:"\u2A38",odot:"\u2299",odsold:"\u29BC",oelig:"\u0153",OElig:"\u0152",ofcir:"\u29BF",ofr:"\u{1D52C}",Ofr:"\u{1D512}",ogon:"\u02DB",ograve:"\xF2",Ograve:"\xD2",ogt:"\u29C1",ohbar:"\u29B5",ohm:"\u03A9",oint:"\u222E",olarr:"\u21BA",olcir:"\u29BE",olcross:"\u29BB",oline:"\u203E",olt:"\u29C0",omacr:"\u014D",Omacr:"\u014C",omega:"\u03C9",Omega:"\u03A9",omicron:"\u03BF",Omicron:"\u039F",omid:"\u29B6",ominus:"\u2296",oopf:"\u{1D560}",Oopf:"\u{1D546}",opar:"\u29B7",OpenCurlyDoubleQuote:"\u201C",OpenCurlyQuote:"\u2018",operp:"\u29B9",oplus:"\u2295",or:"\u2228",Or:"\u2A54",orarr:"\u21BB",ord:"\u2A5D",order:"\u2134",orderof:"\u2134",ordf:"\xAA",ordm:"\xBA",origof:"\u22B6",oror:"\u2A56",orslope:"\u2A57",orv:"\u2A5B",oS:"\u24C8",oscr:"\u2134",Oscr:"\u{1D4AA}",oslash:"\xF8",Oslash:"\xD8",osol:"\u2298",otilde:"\xF5",Otilde:"\xD5",otimes:"\u2297",Otimes:"\u2A37",otimesas:"\u2A36",ouml:"\xF6",Ouml:"\xD6",ovbar:"\u233D",OverBar:"\u203E",OverBrace:"\u23DE",OverBracket:"\u23B4 Line truncated
`).forEach(r=>{r.match(Por)||r.match(kor)||(e+=r)}),Buffer.from(e,"base64")}function Lor(t,e="CERTIFICATE"){let i=t.toString("base64").match(/.{1,64}/g)||"";return[`-----BEGIN ${e}-----`,...i,`-----END ${e}-----`].join(`
`).concat(`
`)}});var v4=p(JA=>{"use strict";Object.defineProperty(JA,"__esModule",{value:!0});JA.SHA2_HASH_ALGOS=JA.RSA_SIGNATURE_ALGOS=JA.ECDSA_SIGNATURE_ALGOS=void 0;JA.ECDSA_SIGNATURE_ALGOS={"1.2.840.10045.4.3.1":"sha224","1.2.840.10045.4.3.2":"sha256","1.2.840.10045.4.3.3":"sha384","1.2.840.10045.4.3.4":"sha512"};JA.RSA_SIGNATURE_ALGOS={"1.2.840.113549.1.1.14":"sha224","1.2.840.113549.1.1.11":"sha256","1.2.840.113549.1.1.12":"sha384","1.2.840.113549.1.1.13":"sha512"};JA.SHA2_HASH_ALGOS={"2.16.840.1.101.3.4.2.1":"sha256","2.16.840.1.101.3.4.2.2":"sha384","2.16.840.1.101.3.4.2.3":"sha512"}});var ece=p(_4=>{"use strict";Object.defineProperty(_4,"__esModule",{value:!0});_4.RFC3161TimestampVerificationError=void 0;var Zae=class extends Error{};_4.RFC3161TimestampVerificationError=Zae});var EWe=p(xh=>{"use strict";var Mor=xh&&xh.__createBinding||(Object.create?(function(t,e,r,i){i===void 0&&(i=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,i,n)}):(function(t,e,r,i){i===void 0&&(i=r),t[i]=e[r]})),For=xh&&xh.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Uor=xh&&xh.__importStar||(function(){var t=function(e){return t=Object.getOwnPropertyNames||function(r){var i=[];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(i[i.length]=n);return i},t(e)};return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var i=t(e),n=0;n<i.length;n++)i[n]!=="default"&&Mor(r,e,i[n]);return For(r,e),r}})();Object.defineProperty(xh,"__esModule",{value:!0});xh.TSTInfo=void 0;var yWe=Uor(CS()),qor=v4(),Gor=ece(),tce=class{root;constructor(e){this.root=e}get version(){return this.root.subs[0].toInteger()}get genTime(){return this.root.subs[4].toDate()}get messageImprintHashAlgorithm(){let e=this.messageImprintObj.subs[0].subs[0].toOID();return qor.SHA2_HASH_ALGOS[e]}get messageImprintHashedMessage(){return this.messageImprintObj.subs[1].value}get raw(){return this.root.toDER()}verify(e){let r=yWe.digest(this.messageImprintHashAlgorithm,e);if(!yWe.bufferEqual(r,this.messageImprintHashedMessage))throw new Gor.RFC3161TimestampVerificationError("message imprint does not match artifact")}get messageImprintObj(){return this.root.subs[2]}};xh.TSTInfo=tce});var wWe=p(Rh=>{"use strict";var Hor=Rh&&Rh.__createBinding||(Object.create?(function(t,e,r,i){i===void 0&&(i=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,i,n)}):(function(t,e,r,i){i===void 0&&(i=r),t[i]=e[r]})),jor=Rh&&Rh.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Vor=Rh&&Rh.__importStar||(function(){var t=function(e){return t=Object.getOwnPropertyNames||function(r){var i=[];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(i[i.length]=n);return i},t(e)};return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var i=t(e),n=0;n<i.length;n++)i[n]!=="default"&&Hor(r,e,i[n]);return jor(r,e),r}})();Object.defineProperty(Rh,"__esModule",{value:!0});Rh.RFC3161Timestamp=void 0;var zor=I4(),rce=Vor(CS()),bWe=v4(),VN=ece(),$or=EWe(),Wor="1.2.840.113549.1.7.2",Jor="1.2.840.113549.1.9.16.1.4",Yor="1.2.840.113549.1.9.4",ice=class t{root;constructor(e){this.root=e}static parse(e){let r=zor.ASN1Obj.parseBuffer(e);return new t(r)}get status(){return this.pkiStatusInfoObj.subs[0].toInteger()}get contentType(){return this.contentTypeObj.toOID()}get eContentType(){return this.eContentTypeObj.toOID()}get signingTime(){return this.tstInfo.genTime}get signerIssuer(){return this.signerSidObj.subs[0].value}get signerSerialNumber(){return this.signerSidObj.subs[1].value}get signerDigestAlgorithm(){let e=this.signerDigestAlgorithmObj.subs[0].toOID();return bWe.SHA2_HASH_ALGOS[e]}get signatureAlgorithm(){let e=this.signatureAlgorithmObj.subs[0].toOID();return bWe.ECDSA_SIGNATURE_ALGOS[e]}get signatureValue(){return this.signatureValueObj.value}get tstInfo(){return new $or.TSTInfo(this.eContentObj.subs[0].subs[0])}verify(e,r){if(!this.timeStampTokenObj)throw new VN.RFC3161TimestampVerificationError("timeStampToken is missing");if(this.contentType!==Wor)throw new VN.RFC3161TimestampVerificationError(`incorrect content type: ${this.contentType}`);if(this.eContentType!==Jor)throw new VN.RFC3161TimestampVerificationError(`incorrect encapsulated content type: ${this.eContentType}`);this.tstInfo.verify(e),this.verifyMessageDigest(),this.verifySignature(r)}verifyMessageDigest(){let e=rce.digest(this.signerDigestAlgorithm,this.tstInfo.raw),r=this.messageDigestAttributeObj.subs[1].subs[0].value;if(!rce.bufferEqual(e,r))throw new VN.RFC3161TimestampVerificationError("signed data does not match tstInfo")}verifySignature(e){let r=this.signedAttrsObj.toD Line truncated
\v\f\r\x1B !"#$\u066A&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~\x7F\xB0\xB7\u2219\u221A\u2592\u2500\u2502\u253C\u2524\u252C\u251C\u2534\u2510\u250C\u2514\u2518\u03B2\u221E\u03C6\xB1\xBD\xBC\u2248\xAB\xBB\uFEF7\uFEF8\uFFFD\uFFFD\uFEFB\uFEFC\uFFFD\xA0\xAD\uFE82\xA3\xA4\uFE84\uFFFD\uFFFD\uFE8E\uFE8F\uFE95\uFE99\u060C\uFE9D\uFEA1\uFEA5\u0660\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\uFED1\u061B\uFEB1\uFEB5\uFEB9\u061F\xA2\uFE80\uFE81\uFE83\uFE85\uFECA\uFE8B\uFE8D\uFE91\uFE93\uFE97\uFE9B\uFE9F\uFEA3\uFEA7\uFEA9\uFEAB\uFEAD\uFEAF\uFEB3\uFEB7\uFEBB\uFEBF\uFEC1\uFEC5\uFECB\uFECF\xA6\xAC\xF7\xD7\uFEC9\u0640\uFED3\uFED7\uFEDB\uFEDF\uFEE3\uFEE7\uFEEB\uFEED\uFEEF\uFEF3\uFEBD\uFECC\uFECE\uFECD\uFEE1\uFE7D\u0651\uFEE5\uFEE9\uFEEC\uFEF0\uFEF2\uFED0\uFED5\uFEF5\uFEF6\uFEDD\uFED9\uFEF1\u25A0\uFFFD`},ibm864:"cp864",csibm864:"cp864",cp865:{type:"_sbcs",chars:"\xC7\xFC\xE9\xE2\xE4\xE0\xE5\xE7\xEA\xEB\xE8\xEF\xEE\xEC\xC4\xC5\xC9\xE6\xC6\xF4\xF6\xF2\xFB\xF9\xFF\xD6\xDC\xF8\xA3\xD8\u20A7\u0192\xE1\xED\xF3\xFA\xF1\xD1\xAA\xBA\xBF\u2310\xAC\xBD\xBC\xA1\xAB\xA4\u2591\u2592\u2593\u2502\u2524\u2561\u2562\u2556\u2555\u2563\u2551\u2557\u255D\u255C\u255B\u2510\u2514\u2534\u252C\u251C\u2500\u253C\u255E\u255F\u255A\u2554\u2569\u2566\u2560\u2550\u256C\u2567\u2568\u2564\u2565\u2559\u2558\u2552\u2553\u256B\u256A\u2518\u250C\u2588\u2584\u258C\u2590\u2580\u03B1\xDF\u0393\u03C0\u03A3\u03C3\xB5\u03C4\u03A6\u0398\u03A9\u03B4\u221E\u03C6\u03B5\u2229\u2261\xB1\u2265\u2264\u2320\u2321\xF7\u2248\xB0\u2219\xB7\u221A\u207F\xB2\u25A0\xA0"},ibm865:"cp865",csibm865:"cp865",cp866:{type:"_sbcs",chars:"\u0410\u0411\u0412\u0413\u0414\u0415\u0416\u0417\u0418\u0419\u041A\u041B\u041C\u041D\u041E\u041F\u0420\u0421\u0422\u0423\u0424\u0425\u0426\u0427\u0428\u0429\u042A\u042B\u042C\u042D\u042E\u042F\u0430\u0431\u0432\u0433\u0434\u0435\u0436\u0437\u0438\u0439\u043A\u043B\u043C\u043D\u043E\u043F\u2591\u2592\u2593\u2502\u2524\u2561\u2562\u2556\u2555\u2563\u2551\u2557\u255D\u255C\u255B\u2510\u2514\u2534\u252C\u251C\u2500\u253C\u255E\u255F\u255A\u2554\u2569\u2566\u2560\u2550\u256C\u2567\u2568\u2564\u2565\u2559\u2558\u2552\u2553\u256B\u256A\u2518\u250C\u2588\u2584\u258C\u2590\u2580\u0440\u0441\u0442\u0443\u0444\u0445\u0446\u0447\u0448\u0449\u044A\u044B\u044C\u044D\u044E\u044F\u0401\u0451\u0404\u0454\u0407\u0457\u040E\u045E\xB0\u2219\xB7\u221A\u2116\xA4\u25A0\xA0"},ibm866:"cp866",csibm866:"cp866",cp869:{type:"_sbcs",chars:"\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\u0386\uFFFD\xB7\xAC\xA6\u2018\u2019\u0388\u2015\u0389\u038A\u03AA\u038C\uFFFD\uFFFD\u038E\u03AB\xA9\u038F\xB2\xB3\u03AC\xA3\u03AD\u03AE\u03AF\u03CA\u0390\u03CC\u03CD\u0391\u0392\u0393\u0394\u0395\u0396\u0397\xBD\u0398\u0399\xAB\xBB\u2591\u2592\u2593\u2502\u2524\u039A\u039B\u039C\u039D\u2563\u2551\u2557\u255D\u039E\u039F\u2510\u2514\u2534\u252C\u251C\u2500\u253C\u03A0\u03A1\u255A\u2554\u2569\u2566\u2560\u2550\u256C\u03A3\u03A4\u03A5\u03A6\u03A7\u03A8\u03A9\u03B1\u03B2\u03B3\u2518\u250C\u2588\u2584\u03B4\u03B5\u2580\u03B6\u03B7\u03B8\u03B9\u03BA\u03BB\u03BC\u03BD\u03BE\u03BF\u03C0\u03C1\u03C3\u03C2\u03C4\u0384\xAD\xB1\u03C5\u03C6\u03C7\xA7\u03C8\u0385\xB0\xA8\u03C9\u03CB\u03B0\u03CE\u25A0\xA0"},ibm869:"cp869",csibm869:"cp869",cp922:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\xA1\xA2\xA3\xA4\xA5\xA6\xA7\xA8\xA9\xAA\xAB\xAC\xAD\xAE\u203E\xB0\xB1\xB2\xB3\xB4\xB5\xB6\xB7\xB8\xB9\xBA\xBB\xBC\xBD\xBE\xBF\xC0\xC1\xC2\xC3\xC4\xC5\xC6\xC7\xC8\xC9\xCA\xCB\xCC\xCD\xCE\xCF\u0160\xD1\xD2\xD3\xD4\xD5\xD6\xD7\xD8\xD9\xDA\xDB\xDC\xDD\u017D\xDF\xE0\xE1\xE2\xE3\xE4\xE5\xE6\xE7\xE8\xE9\xEA\xEB\xEC\xED\xEE\xEF\u0161\xF1\xF2\xF3\xF4\xF5\xF6\xF7\xF8\xF9\xFA\xFB\xFC\xFD\u017E\xFF"},ibm922:"cp922",csibm922:"cp922",cp1046:{type:"_sbcs",chars:"\uFE88\xD7\xF7\uF8F6\uF8F5\uF8F4\uF8F7\uFE71\x88\u25A0\u2502\u2500\u2510\u250C\u2514\u2518\uFE79\uFE7B\uFE7D\uFE7F\uFE77\uFE8A\uFEF0\uFEF3\uFEF2\uFECE\uFECF\uFED0\uFEF6\uFEF8\uFEFA\uFEFC\xA0\uF8FA\uF8F9\uF8F8\xA4\uF8FB\uFE8B\uFE91\uFE97\uFE9B\uFE9F\uFEA3\u060C\xAD\uFEA7\uFEB3\u0660\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\uFEB7\u061B\uFEBB\uFEBF\uFECA\u061F\uFECB\u0621\u0622\u0623\u0624\u0625\u0626\u0627\u0628\u0629\u062A\u062B\u062C\u062D\u062E\u062F\u0630\u0631\u0632\u0633\u0634\u0635\u0636\u0637\uFEC7\u0639\u063A\uFECC\uFE82\uFE84\uFE8E\uFED3\u0640\u0641\u0642\u0643\u0644\u0645\u0646\u0647\u0648\u0649\u064A\u064B\u064C\u064D\u064E\u064F\u0650\u0651\u0652\uFED7\uFEDB\uFEDF\uF8FC\uFEF5\uFEF7\uFEF9\uFEFB\uFEE3\uFEE7\uFEEC\uFEE9\uFFFD"},ibm1046:"cp1046",csibm1046:"cp1046",cp1124:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\u0401\u0402\u0490\u0404\u0405\u0406\u0407\u0408\u0409\u040A\u040B\u040C\xAD\u040E\u040F\u0410\u0411\u0412\u0413\u0414\u0415\u0416\u0417\u0418\u0419\u041A\u041B\u041C\u041D\u041E\u041FLine truncated
\v\f\r\u1EE8\u1EF0\u1EF2\u1EF6\u1EF8\xDD\u1EF4\x1B !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~\x7F\xC0\u1EA2\xC3\xC1\u1EA0\u1EB6\u1EAC\xC8\u1EBA\u1EBC\xC9\u1EB8\u1EC6\xCC\u1EC8\u0128\xCD\u1ECA\xD2\u1ECE\xD5\xD3\u1ECC\u1ED8\u1EDC\u1EDE\u1EE0\u1EDA\u1EE2\xD9\u1EE6\u0168\xA0\u0102\xC2\xCA\xD4\u01A0\u01AF\u0110\u0103\xE2\xEA\xF4\u01A1\u01B0\u0111\u1EB0\u0300\u0309\u0303\u0301\u0323\xE0\u1EA3\xE3\xE1\u1EA1\u1EB2\u1EB1\u1EB3\u1EB5\u1EAF\u1EB4\u1EAE\u1EA6\u1EA8\u1EAA\u1EA4\u1EC0\u1EB7\u1EA7\u1EA9\u1EAB\u1EA5\u1EAD\xE8\u1EC2\u1EBB\u1EBD\xE9\u1EB9\u1EC1\u1EC3\u1EC5\u1EBF\u1EC7\xEC\u1EC9\u1EC4\u1EBE\u1ED2\u0129\xED\u1ECB\xF2\u1ED4\u1ECF\xF5\xF3\u1ECD\u1ED3\u1ED5\u1ED7\u1ED1\u1ED9\u1EDD\u1EDF\u1EE1\u1EDB\u1EE3\xF9\u1ED6\u1EE7\u0169\xFA\u1EE5\u1EEB\u1EED\u1EEF\u1EE9\u1EF1\u1EF3\u1EF7\u1EF9\xFD\u1EF5\u1ED0`},georgianacademy:{type:"_sbcs",chars:"\x80\x81\u201A\u0192\u201E\u2026\u2020\u2021\u02C6\u2030\u0160\u2039\u0152\x8D\x8E\x8F\x90\u2018\u2019\u201C\u201D\u2022\u2013\u2014\u02DC\u2122\u0161\u203A\u0153\x9D\x9E\u0178\xA0\xA1\xA2\xA3\xA4\xA5\xA6\xA7\xA8\xA9\xAA\xAB\xAC\xAD\xAE\xAF\xB0\xB1\xB2\xB3\xB4\xB5\xB6\xB7\xB8\xB9\xBA\xBB\xBC\xBD\xBE\xBF\u10D0\u10D1\u10D2\u10D3\u10D4\u10D5\u10D6\u10D7\u10D8\u10D9\u10DA\u10DB\u10DC\u10DD\u10DE\u10DF\u10E0\u10E1\u10E2\u10E3\u10E4\u10E5\u10E6\u10E7\u10E8\u10E9\u10EA\u10EB\u10EC\u10ED\u10EE\u10EF\u10F0\u10F1\u10F2\u10F3\u10F4\u10F5\u10F6\xE7\xE8\xE9\xEA\xEB\xEC\xED\xEE\xEF\xF0\xF1\xF2\xF3\xF4\xF5\xF6\xF7\xF8\xF9\xFA\xFB\xFC\xFD\xFE\xFF"},georgianps:{type:"_sbcs",chars:"\x80\x81\u201A\u0192\u201E\u2026\u2020\u2021\u02C6\u2030\u0160\u2039\u0152\x8D\x8E\x8F\x90\u2018\u2019\u201C\u201D\u2022\u2013\u2014\u02DC\u2122\u0161\u203A\u0153\x9D\x9E\u0178\xA0\xA1\xA2\xA3\xA4\xA5\xA6\xA7\xA8\xA9\xAA\xAB\xAC\xAD\xAE\xAF\xB0\xB1\xB2\xB3\xB4\xB5\xB6\xB7\xB8\xB9\xBA\xBB\xBC\xBD\xBE\xBF\u10D0\u10D1\u10D2\u10D3\u10D4\u10D5\u10D6\u10F1\u10D7\u10D8\u10D9\u10DA\u10DB\u10DC\u10F2\u10DD\u10DE\u10DF\u10E0\u10E1\u10E2\u10F3\u10E3\u10E4\u10E5\u10E6\u10E7\u10E8\u10E9\u10EA\u10EB\u10EC\u10ED\u10EE\u10F4\u10EF\u10F0\u10F5\xE6\xE7\xE8\xE9\xEA\xEB\xEC\xED\xEE\xEF\xF0\xF1\xF2\xF3\xF4\xF5\xF6\xF7\xF8\xF9\xFA\xFB\xFC\xFD\xFE\xFF"},pt154:{type:"_sbcs",chars:"\u0496\u0492\u04EE\u0493\u201E\u2026\u04B6\u04AE\u04B2\u04AF\u04A0\u04E2\u04A2\u049A\u04BA\u04B8\u0497\u2018\u2019\u201C\u201D\u2022\u2013\u2014\u04B3\u04B7\u04A1\u04E3\u04A3\u049B\u04BB\u04B9\xA0\u040E\u045E\u0408\u04E8\u0498\u04B0\xA7\u0401\xA9\u04D8\xAB\xAC\u04EF\xAE\u049C\xB0\u04B1\u0406\u0456\u0499\u04E9\xB6\xB7\u0451\u2116\u04D9\xBB\u0458\u04AA\u04AB\u049D\u0410\u0411\u0412\u0413\u0414\u0415\u0416\u0417\u0418\u0419\u041A\u041B\u041C\u041D\u041E\u041F\u0420\u0421\u0422\u0423\u0424\u0425\u0426\u0427\u0428\u0429\u042A\u042B\u042C\u042D\u042E\u042F\u0430\u0431\u0432\u0433\u0434\u0435\u0436\u0437\u0438\u0439\u043A\u043B\u043C\u043D\u043E\u043F\u0440\u0441\u0442\u0443\u0444\u0445\u0446\u0447\u0448\u0449\u044A\u044B\u044C\u044D\u044E\u044F"},viscii:{type:"_sbcs",chars:`\0\u1EB2\u1EB4\u1EAA\x07\b
\v\f\r\u1EF6\u1EF8\x1B\u1EF4 !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~\x7F\u1EA0\u1EAE\u1EB0\u1EB6\u1EA4\u1EA6\u1EA8\u1EAC\u1EBC\u1EB8\u1EBE\u1EC0\u1EC2\u1EC4\u1EC6\u1ED0\u1ED2\u1ED4\u1ED6\u1ED8\u1EE2\u1EDA\u1EDC\u1EDE\u1ECA\u1ECE\u1ECC\u1EC8\u1EE6\u0168\u1EE4\u1EF2\xD5\u1EAF\u1EB1\u1EB7\u1EA5\u1EA7\u1EA9\u1EAD\u1EBD\u1EB9\u1EBF\u1EC1\u1EC3\u1EC5\u1EC7\u1ED1\u1ED3\u1ED5\u1ED7\u1EE0\u01A0\u1ED9\u1EDD\u1EDF\u1ECB\u1EF0\u1EE8\u1EEA\u1EEC\u01A1\u1EDB\u01AF\xC0\xC1\xC2\xC3\u1EA2\u0102\u1EB3\u1EB5\xC8\xC9\xCA\u1EBA\xCC\xCD\u0128\u1EF3\u0110\u1EE9\xD2\xD3\xD4\u1EA1\u1EF7\u1EEB\u1EED\xD9\xDA\u1EF9\u1EF5\xDD\u1EE1\u01B0\xE0\xE1\xE2\xE3\u1EA3\u0103\u1EEF\u1EAB\xE8\xE9\xEA\u1EBB\xEC\xED\u0129\u1EC9\u0111\u1EF1\xF2\xF3\xF4\xF5\u1ECF\u1ECD\u1EE5\xF9\xFA\u0169\u1EE7\xFD\u1EE3\u1EEE`},iso646cn:{type:"_sbcs",chars:`\0\x07\b
\v\f\r\x1B !"#\xA5%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}\u203E\x7F\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD`},iso646jp:{type:"_sbcs",chars:`\0\x07\b
\v\f\r\x1B !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\xA5]^_\`abcdefghijklmnopqrstuvwxyz{|}\u203E\x7F\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD`},hproman8:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\xC0\xC2\xC8\xCA\xCB\xCE\xCF\xB4\u02CB\u02C6\xA8\u02DC\xD9\xDB\u20A4\xAF\xDD\xFD\xB0\xC7\xE7\xD1\xF1\xA1\xBF\xA4\xA3\xA5\xA7\u0192\xA2\xE2\xEA\xF4\xFB\xE1\xE9\xF3\xFA\xE0\xE8\xF2\xF9\xE4\xEB\xF6\xFC\xC5\xEE\xD8\xC6\xE5\xED\xF8\xE6\xC4\xEC\xD6\xDC\xC9\xEF\xDF\xD4\xC1\xC3\xE3\xD0\xF0\xCD\xCC\xD3\xD2\xD5\xF5\u0160\u0161\xDA\u0178\xFF\xDE\xFE\xB7\xB5\xB6\xBE\u2014\xBC\xBD\xAA\xBA\xAB\u25A0\xBB\xB1\uFFFD"},macintosh:{type:"_sbcs",chars:"\xC4\xC5\xC7\xC9\xD1\xD6\xDC\xE1\xE0\xE2\xE4\xE3\xE5\xE7\xE9\xE8\xEA\xEB\xED\xEC\xEE\xEF\xF1\xF3\xF2\xF4\xF6\xF5\xFA\xF9\xFB\xFC\u2020\xB0\xA2\xA3\xA7\u2022\xB6\xDF\xAE\xA9\u2122\xB4\xA8\u2260\xC6\xD8\u221E\xB1\u2264\u2265\xA5\xB5\u2202\u2211\u220F\u03C0\u222B\xAA\xBA\u2126\xE6\xF8\xBF\xA1\xAC\u221A\u0192\u2248\u2206\xAB\xBB\u2026\xA0\xC0\xC3\xD5\u0152\u0153\u2013\u2014\u201C\u201D\u2018\u2019\xF7\u25CA\xFF\u0178\u2044\xA4\u2039\u203A\uFB01\uFB02\u2021\xB7\u201A\u201E\u2030\xC2\xCA\xC1\xCB\xC8\xCD\xCE\xCF\xCC\xD3\xD4\uFFFD\xD2\xDA\xDB\xD9\u0131\u02C6\u02DC\xAF\u02D8\u02D9\u02DA\xB8\u02DD\u02DB\u02C7"},ascii:{type:"_sbcs",chars:"\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD"},tis620:{type:"_sbcs",chars:"\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\u0E01\u0E02\u0E03\u0E04\u0E05\u0E06\u0E07\u0E08\u0E09\u0E0A\u0E0B\u0E0C\u0E0D\u0E0E\u0E0F\u0E10\u0E11\u0E12\u0E13\u0E14\u0E15\u0E16\u0E17\u0E18\u0E19\u0E1A\u0E1B\u0E1C\u0E1D\u0E1E\u0E1F\u0E20\u0E21\u0E22\u0E23\u0E24\u0E25\u0E26\u0E27\u0E28\u0E29\u0E2A\u0E2B\u0E2C\u0E2D\u0E2E\u0E2F\u0E30\u0E31\u0E32\u0E33\u0E34\u0E35\u0E36\u0E37\u0E38\u0E39\u0E3A\uFFFD\uFFFD\uFFFD\uFFFD\u0E3F\u0E40\u0E41\u0E42\u0E43\u0E44\u0E45\u0E46\u0E47\u0E48\u0E49\u0E4A\u0E4B\u0E4C\u0E4D\u0E4E\u0E4F\u0E50\u0E51\u0E52\u0E53\u0E54\u0E55\u0E56\u0E57\u0E58\u0E59\u0E5A\u0E5B\uFFFD\uFFFD\uFFFD\uFFFD"}}});var FJe=p(MJe=>{"use strict";var que=Dp().Buffer;MJe._dbcs=Op;var gs=-1,LJe=-2,Pu=-10,qo=-1e3,PS=new Array(256),u1=-1;for(f5=0;f5<256;f5++)PS[f5]=gs;var f5;function Op(t,e){if(this.encodingName=t.encodingName,!t)throw new Error("DBCS codec is called without the data.");if(!t.table)throw new Error("Encoding '"+this.encodingName+"' has no data.");var r=t.table();this.decodeTables=[],this.decodeTables[0]=PS.slice(0),this.decodeTableSeq=[];for(var i=0;i<r.length;i++)this._addDecodeChunk(r[i]);if(typeof t.gb18030=="function"){this.gb18030=t.gb18030();var n=this.decodeTables.length;this.decodeTables.push(PS.slice(0));var s=this.decodeTables.length;this.decodeTables.push(PS.slice(0));for(var o=this.decodeTables[0],i=129;i<=254;i++)for(var a=this.decodeTables[qo-o[i]],c=48;c<=57;c++){if(a[c]===gs)a[c]=qo-n;else if(a[c]>qo)throw new Error("gb18030 decode tables conflict at byte 2");for(var u=this.decodeTables[qo-a[c]],l=129;l<=254;l++){if(u[l]===gs)u[l]=qo-s;else{if(u[l]===qo-s)continue;if(u[l]>qo)throw new Error("gb18030 decode tables conflict at byte 3")}for(var f=this.decodeTables[qo-u[l]],h=48;h<=57;h++)f[h]===gs&&(f[h]=LJe)}}}this.defaultCharUnicode=e.defaultCharUnicode,this.encodeTable=[],this.encodeTableSeq=[];var d={};if(t.encodeSkipVals)for(var i=0;i<t.encodeSkipValLine truncated
Wanted: ${this.expectedSize}
Found: ${this.size}`);i.code="EBADSIZE",i.found=this.size,i.expected=this.expectedSize,i.sri=this.sri,this.emit("error",i)}else if(this.sri&&!r){let i=new Error(`${this.sri} integrity checksum failed when using ${this.algorithm}: wanted ${this.digests} but got ${e}. (${this.size} bytes)`);i.code="EINTEGRITY",i.found=e,i.expected=this.digests,i.algorithm=this.algorithm,i.sri=this.sri,this.emit("error",i)}else this.#t=this.size,this.emit("size",this.size),this.#e=e,this.emit("integrity",e),r&&(this.#i=r,this.emit("verified",r))}},Mp=class{get isHash(){return!0}constructor(e,r){let i=r?.strict;this.source=e.trim(),this.digest="",this.algorithm="",this.options=[];let n=this.source.match(i?elr:Zur);if(!n||i&&!fle.includes(n[1]))return;this.algorithm=n[1],this.digest=n[2];let s=n[3];s&&(this.options=s.slice(1).split("?"))}hexDigest(){return this.digest&&Buffer.from(this.digest,"base64").toString("hex")}toJSON(){return this.toString()}match(e,r){let i=vc(e,r);if(!i)return!1;if(i.isIntegrity){let n=i.pickAlgorithm(r,[this.algorithm]);if(!n)return!1;let s=i[n].find(o=>o.digest===this.digest);return s||!1}return i.digest===this.digest?i:!1}toString(e){return e?.strict&&!(fle.includes(this.algorithm)&&this.digest.match(Xur)&&this.options.every(r=>r.match(tlr)))?"":`${this.algorithm}-${this.digest}${g1(this.options)}`}};function $Ye(t,e,r,i){let n=t!=="",s=!1,o="",a=i.length-1;for(let u=0;u<a;u++){let l=Mp.prototype.toString.call(i[u],r);l&&(s=!0,o+=l,o+=e)}let c=Mp.prototype.toString.call(i[a],r);return c&&(s=!0,o+=c),n&&s?t+e+o:t+o}var w0=class{get isIntegrity(){return!0}toJSON(){return this.toString()}isEmpty(){return Object.keys(this).length===0}toString(e){let r=e?.sep||" ",i="";if(e?.strict){r=r.replace(/\S+/g," ");for(let n of fle)this[n]&&(i=$Ye(i,r,e,this[n]))}else for(let n of Object.keys(this))i=$Ye(i,r,e,this[n]);return i}concat(e,r){let i=typeof e=="string"?e:m1(e,r);return vc(`${this.toString(r)} ${i}`,r)}hexDigest(){return vc(this,{single:!0}).hexDigest()}merge(e,r){let i=vc(e,r);for(let n in i)if(this[n]){if(!this[n].find(s=>i[n].find(o=>s.digest===o.digest)))throw new Error("hashes do not match, cannot update integrity")}else this[n]=i[n]}match(e,r){let i=vc(e,r);if(!i)return!1;let n=i.pickAlgorithm(r,Object.keys(this));return!!n&&this[n]&&i[n]&&this[n].find(s=>i[n].find(o=>s.digest===o.digest))||!1}pickAlgorithm(e,r){let i=e?.pickAlgorithm||ulr,n=Object.keys(this).filter(s=>r?.length?r.includes(s):!0);return n.length?n.reduce((s,o)=>i(s,o)||s):null}};Mh.exports.parse=vc;function vc(t,e){if(!t)return null;if(typeof t=="string")return lle(t,e);if(t.algorithm&&t.digest){let r=new w0;return r[t.algorithm]=[t],lle(m1(r,e),e)}else return lle(m1(t,e),e)}function lle(t,e){if(e?.single)return new Mp(t,e);let r=t.trim().split(/\s+/).reduce((i,n)=>{let s=new Mp(n,e);if(s.algorithm&&s.digest){let o=s.algorithm;i[o]||(i[o]=[]),i[o].push(s)}return i},new w0);return r.isEmpty()?null:r}Mh.exports.stringify=m1;function m1(t,e){return t.algorithm&&t.digest?Mp.prototype.toString.call(t,e):typeof t=="string"?m1(vc(t,e),e):w0.prototype.toString.call(t,e)}Mh.exports.fromHex=rlr;function rlr(t,e,r){let i=g1(r?.options);return vc(`${e}-${Buffer.from(t,"hex").toString("base64")}${i}`,r)}Mh.exports.fromData=ilr;function ilr(t,e){let r=e?.algorithms||[...dle],i=g1(e?.options);return r.reduce((n,s)=>{let o=A1.createHash(s).update(t).digest("base64"),a=new Mp(`${s}-${o}${i}`,e);if(a.algorithm&&a.digest){let c=a.algorithm;n[c]||(n[c]=[]),n[c].push(a)}return n},new w0)}Mh.exports.fromStream=nlr;function nlr(t,e){let r=ple(e);return new Promise((i,n)=>{t.pipe(r),t.on("error",n),r.on("error",n);let s;r.on("integrity",o=>{s=o}),r.on("end",()=>i(s)),r.resume()})}Mh.exports.checkData=slr;function slr(t,e,r){if(e=vc(e,r),!e||!Object.keys(e).length){if(r?.error)throw Object.assign(new Error("No valid integrity hashes to check against"),{code:"EINTEGRITY"});return!1}let i=e.pickAlgorithm(r),n=A1.createHash(i).update(t).digest("base64"),s=vc({algorithm:i,digest:n}),o=s.match(e,r);if(r=r||{},o||!r.error)return o;if(typeof r.size=="number"&&t.length!==r.size){let a=new Error(`data size mismatch when checking ${e}.
Wanted: ${r.size}
Found: ${t.length}`);throw a.code="EBADSIZE",a.found=t.length,a.expected=r.size,a.sri=e,a}else{let a=new Error(`Integrity checksum failed when using ${i}: Wanted ${e}, but got ${s}. (${t.length} bytes)`);throw a.code="EINTEGRITY",a.found=s,a.expected=e,a.algorithm=i,a.sri=e,a}}Mh.exports.checkStream=olr;function olr(t,e,r){if(r=r||Object.create(null),r.integrity=e,e=vc(e,r),!e||!Object.keys(e).length)return Promise.reject(Object.assign(new Error("No valid integrity hashes to check against"),{code:"EINTEGRITY"}));let i=ple(r);return new Promise((n,s)=>{t.pipe(i),t.on("error",s),i.on("error",s);let o;i.on("verified",a=>{o=a}),i.on("end",()=>n(o)),i.resume()})}Mh.exports.integrityStream=ple;function ple(t=Object.create(null)){return new hle(t)}Mh.exports.create=alr;function alr(t){let e=t?.algorithms||[...dle],r=g1(t?.options),i=e.map(A1.createHash);return{update:function(n,s){return i.forEach(o=>o.update(n,s)),this},digest:function(){return e.reduce((s,o)=>{let a=i.shift().digest("base64"),c=new Mp(`${o}-${a}${r}`,t);if(c.algorithm&&c.digest){let u=c.algorithm;s[u]||(s[u]=[]),s[u].push(c)}return s},new w0)}}}var clr=A1.getHashes(),WYe=["md5","whirlpool","sha1","sha224","sha256","sha384","sha512","sha3","sha3-256","sha3-384","sha3-512","sha3_256","sha3_384","sha3_512"].filter(t=>clr.includes(t));function ulr(t,e){return WYe.indexOf(t.toLowerCase())>=WYe.indexOf(e.toLowerCase())?t:e}});var Ale=p((Oni,ZYe)=>{var JYe=ile(),YYe=ule(),llr=Fh(),KYe={shared:!1,ignoreCargoCult:!0},flr={status:200,headers:{}},MS=t=>{let e={method:t.method,url:t.url,headers:{},compress:t.compress};return t.headers.forEach((r,i)=>{e.headers[i]=r}),e},XYe=t=>{let e={status:t.status,headers:{}};return t.headers.forEach((r,i)=>{e.headers[i]=r}),e},mle=class{constructor({entry:e,request:r,response:i,options:n}){this.entry=e,this.request=MS(r),this.response=XYe(i),this.options=n,this.policy=new JYe(this.request,this.response,KYe),this.entry&&(this.policy._responseTime=this.entry.metadata.time)}static storable(e,r){return!r.cachePath||r.cache==="no-store"||!["GET","HEAD"].includes(e.method)?!1:new JYe(MS(e),flr,KYe).storable()}satisfies(e){let r=MS(e);if(this.request.headers.host!==r.headers.host||this.request.compress!==r.compress)return!1;let i=new YYe(this.request),n=new YYe(r);return JSON.stringify(i.mediaTypes())!==JSON.stringify(n.mediaTypes())||JSON.stringify(i.languages())!==JSON.stringify(n.languages())||JSON.stringify(i.encodings())!==JSON.stringify(n.encodings())?!1:this.options.integrity?llr.parse(this.options.integrity).match(this.entry.integrity):!0}storable(){return this.policy.storable()}get mustRevalidate(){return!!this.policy._rescc["must-revalidate"]}needsRevalidation(e){let r=MS(e);return r.method="GET",!this.policy.satisfiesWithoutRevalidation(r)}responseHeaders(){return this.policy.responseHeaders()}revalidationHeaders(e){let r=MS(e);return this.policy.revalidationHeaders(r)}revalidated(e,r){let i=MS(e),n=XYe(r);return!this.policy.revalidatedPolicy(i,n).modified}};ZYe.exports=mle});var t7e=p((Pni,e7e)=>{var gle=class extends Error{constructor(e){super(`request to ${e} failed: cache mode is 'only-if-cached' but no cached response is available.`),this.code="ENOTCACHED"}};e7e.exports={NotCachedError:gle}});var f7e=p((kni,l7e)=>{"use strict";var r7e=typeof process=="object"&&process?process:{stdout:null,stderr:null},hlr=require("events"),i7e=require("stream"),n7e=require("string_decoder").StringDecoder,Fp=Symbol("EOF"),Up=Symbol("maybeEmitEnd"),ig=Symbol("emittedEnd"),B5=Symbol("emittingEnd"),y1=Symbol("emittedError"),v5=Symbol("closed"),s7e=Symbol("read"),_5=Symbol("flush"),o7e=Symbol("flushChunk"),_a=Symbol("encoding"),qp=Symbol("decoder"),x5=Symbol("flowing"),E1=Symbol("paused"),FS=Symbol("resume"),jn=Symbol("bufferLength"),yle=Symbol("bufferPush"),Ele=Symbol("bufferShift"),Ws=Symbol("objectMode"),Js=Symbol("destroyed"),ble=Symbol("emitData"),a7e=Symbol("emitEnd"),wle=Symbol("emitEnd2"),Gp=Symbol("async"),b1=t=>Promise.resolve().then(t),c7e=global._MP_NO_ITERATOR_SYMBOLS_!=="1",dlr=c7e&&Symbol.asyncIterator||Symbol("asyncIterator not implemented"),plr=c7e&&Symbol.iterator||Symbol("iterator not implemented"),mlr=t=>t==="end"||t==="finish"||t==="prefinish",Alr=t=>t instanceof ArrayBuffer||typeof t=="object"&&t.constructor&&t.constructor.name==="ArrayBuffer"&&t.byteLength>=0,glr=t=>!Buffer.isBuffer(t)&&ArrayBuffer.isView(t),R5=class{constructor(e,r,i){this.src=e,this.dest=r,this.opts=i,this.ondrain=()=>e[FS](),r.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},Cle=class extends R5{unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(e,r,i){super(e,r,i),this.proxyErrors=n=>r.emit("error",n),e.on("error",this.proxyErrors)}};l7e.exports=class u7e extends i7e{constructor(e){super(),this[x5]=!1,this[E1]=!1,this.pipes=[],this.buffer=[],this[Ws]=e&&e.objectMode||!1,this[Ws]?this[_a]=null:this[_a]=e& Line truncated
`+o.map(h=>{let d=JSON.stringify(h);return`${e8(d)} ${d}`}).join(`
`),c=async()=>{let h=Wpr(qh.join(t,"tmp"),i.tmpPrefix);return await gfe(qh.dirname(h),{recursive:!0}),{target:h,moved:!1}},u=async h=>{if(!h.moved)return wZe(h.target,{recursive:!0,force:!0})},l=async h=>{await Vpr(h.target,a,{flag:"wx"}),await gfe(qh.dirname(n),{recursive:!0}),await Xpr(h.target,n),h.moved=!0},f=await c();try{await l(f)}finally{await u(f)}return o.reverse().map(h=>t8(t,h,!0))}xc.exports.insert=CZe;async function CZe(t,e,r,i={}){let{metadata:n,size:s,time:o}=i,a=L1(t,e),c={key:e,integrity:r&&$pr.stringify(r),time:o||Date.now(),size:s,metadata:n};try{await gfe(qh.dirname(a),{recursive:!0});let u=JSON.stringify(c);await Gpr(a,`
${e8(u)} ${u}`)}catch(u){if(u.code==="ENOENT")return;throw u}return t8(t,c)}xc.exports.find=emr;async function emr(t,e){let r=L1(t,e);try{return(await Z5(r)).reduce((n,s)=>s&&s.key===e?t8(t,s):n,null)}catch(i){if(i.code==="ENOENT")return null;throw i}}xc.exports.delete=tmr;function tmr(t,e,r={}){if(!r.removeFully)return CZe(t,e,null,r);let i=L1(t,e);return wZe(i,{recursive:!0,force:!0})}xc.exports.lsStream=IZe;function IZe(t){let e=yfe(t),r=new zpr({objectMode:!0});return Promise.resolve().then(async()=>{let{default:i}=await Promise.resolve().then(()=>(X5(),K5)),n=await Afe(e);return await i(n,async s=>{let o=qh.join(e,s),a=await Afe(o);await i(a,async c=>{let u=qh.join(o,c),l=await Afe(u);await i(l,async f=>{let h=qh.join(u,f);try{let m=(await Z5(h)).reduce((A,y)=>(A.set(y.key,y),A),new Map);for(let A of m.values()){let y=t8(t,A);y&&r.write(y)}}catch(d){if(d.code==="ENOENT")return;throw d}},{concurrency:mfe})},{concurrency:mfe})},{concurrency:mfe}),r.end(),r}).catch(i=>r.emit("error",i)),r}xc.exports.ls=rmr;async function rmr(t){return(await IZe(t).collect()).reduce((r,i)=>(r[i.key]=i,r),{})}xc.exports.bucketEntries=Z5;async function Z5(t,e){let r=await Hpr(t,"utf8");return imr(r,e)}function imr(t){let e=[];return t.split(`
`).forEach(r=>{if(!r)return;let i=r.split(" ");if(!i[1]||e8(i[1])!==i[0])return;let n;try{n=JSON.parse(i[1])}catch{}n&&e.push(n)}),e}xc.exports.bucketDir=yfe;function yfe(t){return qh.join(t,`index-v${Kpr}`)}xc.exports.bucketPath=L1;function L1(t,e){let r=SZe(e);return qh.join.apply(qh,[yfe(t)].concat(Ypr(r)))}xc.exports.hashKey=SZe;function SZe(t){return BZe(t,"sha256")}xc.exports.hashEntry=e8;function e8(t){return BZe(t,"sha1")}function BZe(t,e){return qpr.createHash(e).update(t).digest("hex")}function t8(t,e,r){return!e.integrity&&!r?null:{key:e.key,integrity:e.integrity,path:e.integrity?Jpr(t,e.integrity):void 0,size:e.size,time:e.time,metadata:e.metadata}}function Afe(t){return jpr(t).catch(e=>{if(e.code==="ENOENT"||e.code==="ENOTDIR")return[];throw e})}});var KS=p(i8=>{"use strict";Object.defineProperty(i8,"__esModule",{value:!0});i8.LRUCache=void 0;var nmr=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,_Ze=new Set,Efe=typeof process=="object"&&process?process:{},xZe=(t,e,r,i)=>{typeof Efe.emitWarning=="function"?Efe.emitWarning(t,e,r,i):console.error(`[${r}] ${e}: ${t}`)},r8=globalThis.AbortController,vZe=globalThis.AbortSignal;if(typeof r8>"u"){vZe=class{onabort;_onabort=[];reason;aborted=!1;addEventListener(i,n){this._onabort.push(n)}},r8=class{constructor(){e()}signal=new vZe;abort(i){if(!this.signal.aborted){this.signal.reason=i,this.signal.aborted=!0;for(let n of this.signal._onabort)n(i);this.signal.onabort?.(i)}}};let t=Efe.env?.LRU_CACHE_IGNORE_AC_WARNING!=="1",e=()=>{t&&(t=!1,xZe("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.","NO_ABORT_CONTROLLER","ENOTSUP",e))}}var smr=t=>!_Ze.has(t),sg=t=>t&&t===Math.floor(t)&&t>0&&isFinite(t),RZe=t=>sg(t)?t<=Math.pow(2,8)?Uint8Array:t<=Math.pow(2,16)?Uint16Array:t<=Math.pow(2,32)?Uint32Array:t<=Number.MAX_SAFE_INTEGER?YS:null:null,YS=class extends Array{constructor(e){super(e),this.fill(0)}},bfe=class t{heap;length;static#e=!1;static create(e){let r=RZe(e);if(!r)return[];t.#e=!0;let i=new t(e,r);return t.#e=!1,i}constructor(e,r){if(!t.#e)throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new r(e),this.length=0}push(e){this.heap[this.length++]=e}pop(){return this.heap[--this.length]}},wfe=class t{#e;#t;#i;#r;#n;#s;#l;#u;get perf(){return this.#u}ttl;ttlResolution;ttlAutopurge;updateAgeOnGet;updateAgeOnHas;allowStale;noDisposeOnSet;noUpdateTTL;maxEntrySize;sizeCalculation;noDeleteOnFetchRejection;noDeleteOnStaleGet;allowStaleOnFetchAbort;allowStaleOnFetchRejection;ignoreFetchAbort;#a;#c;#h;#d;#f;#m;#b;#A;#w;#v;#y;#C;#_;#p;#I;#x;#E;#o;static unsafeExposeInternals(e){return{starts:e.#_,ttls:e.#p,sizes:e.#C,keyMap:e.#h,keyList:e.#d,valList:e.#f,next:e.#m,prev:e.#b,get head(){return e.#A},get tail(){return e.#w},free:e.#v,isBackgroundFetch:r=>e.#S(r),backgroundFetch:(r,i,n,s)=>e.#j(r,i,n,s),moveToTail:r=>e.#q(r),indexes:r=>e.#O(r),rindexes:r=>e.#g(r),isStale:r=>e.#T(r)}}get max(){return this.#e}get maxSize(){return this.#t}get calculatedSize(){return this.#c}get size(){return this.#a}get fetchMethod(){return this.#s}get memoMethod(){return this.#l}get dispose(){return this.#i}get onInsert(){return this.#r}get disposeAfter(){return this.#n}constructor(e){let{max:r=0,ttl:i,ttlResolution:n=1,ttlAutopurge:s,updateAgeOnGet:o,updateAgeOnHas:a,allowStale:c,dispose:u,onInsert:l,disposeAfter:f,noDisposeOnSet:h,noUpdateTTL:d,maxSize:m=0,maxEntrySize:A=0,sizeCalculation:y,fetchMethod:g,memoMethod:E,noDeleteOnFetchRejection:C,noDeleteOnStaleGet:S,allowStaleOnFetchRejection:N,allowStaleOnFetchAbort:Q,ignoreFetchAbort:T,perf:G}=e;if(G!==void 0&&typeof G?.now!="function")throw new TypeError("perf option must have a now() method if specified");if(this.#u=G??nmr,r!==0&&!sg(r))throw new TypeError("max option must be a nonnegative integer");let D=r?RZe(r):Array;if(!D)throw new Error("invalid max value: "+r);if(this.#e=r,this.#t=m,this.maxEntrySize=A||this.#t,this.sizeCalculation=y,this.sizeCalculation){if(!this.#t&&!this.maxEntrySize)throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if(typeof this.sizeCalculation!="function")throw new TypeError("sizeCalculation set to non-function")}if(E!==void 0&&typeof E!="function")throw new TypeError("memoMethod must be a function if defined");if(this.#l=E,g!==void 0&&typeof g!="function")throw new TypeError("fetchMethod must be a function if specified");if(this.#s=g,this.#x=!!g,this.#h=new Map,this.#d=new Array(r).fill(void 0),this.#f=new Array(r).fill(void 0),this.#m=new D(r),this.#b=new D(r),this.#A=0,this.#w=0,this.#v=bfe.create(r),this.#a=0,this.#c=0,typeof u=="fu Line truncated
Wanted: ${t}
Found: ${e}`);return r.code="EINTEGRITY",r.expected=t,r.found=e,r}});var KZe=p((soi,kfe)=>{"use strict";var $Ze=JS(),WZe=M1(),JZe=zZe(),qmr=w1(),{PassThrough:Gmr}=_le(),Hmr=I0(),YZe=t=>({algorithms:["sha512"],...t});kfe.exports=jmr;async function jmr(t,e,r,i={}){let{memoize:n}=i;i=YZe(i);let s=await JZe(t,r,i),o=await $Ze.insert(t,e,s.integrity,{...i,size:s.size});return n&&WZe.put(t,o,r,i),s.integrity}kfe.exports.stream=Vmr;function Vmr(t,e,r={}){let{memoize:i}=r;r=YZe(r);let n,s,o,a,c=new Hmr;if(i){let l=new Gmr().on("collect",f=>{a=f});c.push(l)}let u=JZe.stream(t,r).on("integrity",l=>{n=l}).on("size",l=>{s=l}).on("error",l=>{o=l});return c.push(u),c.push(new qmr({async flush(){if(!o){let l=await $Ze.insert(t,e,n,{...r,size:s});i&&a&&WZe.put(t,l,a,r),c.emit("integrity",n),c.emit("size",s)}}})),c}});var ZZe=p(D0=>{"use strict";Object.defineProperty(D0,"__esModule",{value:!0});D0.range=D0.balanced=void 0;var zmr=(t,e,r)=>{let i=t instanceof RegExp?XZe(t,r):t,n=e instanceof RegExp?XZe(e,r):e,s=i!==null&&n!=null&&(0,D0.range)(i,n,r);return s&&{start:s[0],end:s[1],pre:r.slice(0,s[0]),body:r.slice(s[0]+i.length,s[1]),post:r.slice(s[1]+n.length)}};D0.balanced=zmr;var XZe=(t,e)=>{let r=e.match(t);return r?r[0]:null},$mr=(t,e,r)=>{let i,n,s,o,a,c=r.indexOf(t),u=r.indexOf(e,c+1),l=c;if(c>=0&&u>0){if(t===e)return[c,u];for(i=[],s=r.length;l>=0&&!a;){if(l===c)i.push(l),c=r.indexOf(t,l+1);else if(i.length===1){let f=i.pop();f!==void 0&&(a=[f,u])}else n=i.pop(),n!==void 0&&n<s&&(s=n,o=u),u=r.indexOf(e,l+1);l=c<u&&c>=0?c:u}i.length&&o!==void 0&&(a=[s,o])}return a};D0.range=$mr});var Mfe=p(oB=>{"use strict";Object.defineProperty(oB,"__esModule",{value:!0});oB.EXPANSION_MAX=void 0;oB.expand=oAr;var eet=ZZe(),tet="\0SLASH"+Math.random()+"\0",ret="\0OPEN"+Math.random()+"\0",Lfe="\0CLOSE"+Math.random()+"\0",iet="\0COMMA"+Math.random()+"\0",net="\0PERIOD"+Math.random()+"\0",Wmr=new RegExp(tet,"g"),Jmr=new RegExp(ret,"g"),Ymr=new RegExp(Lfe,"g"),Kmr=new RegExp(iet,"g"),Xmr=new RegExp(net,"g"),Zmr=/\\\\/g,eAr=/\\{/g,tAr=/\\}/g,rAr=/\\,/g,iAr=/\\./g;oB.EXPANSION_MAX=1e5;function Qfe(t){return isNaN(t)?t.charCodeAt(0):parseInt(t,10)}function nAr(t){return t.replace(Zmr,tet).replace(eAr,ret).replace(tAr,Lfe).replace(rAr,iet).replace(iAr,net)}function sAr(t){return t.replace(Wmr,"\\").replace(Jmr,"{").replace(Ymr,"}").replace(Kmr,",").replace(Xmr,".")}function set(t){if(!t)return[""];let e=[],r=(0,eet.balanced)("{","}",t);if(!r)return t.split(",");let{pre:i,body:n,post:s}=r,o=i.split(",");o[o.length-1]+="{"+n+"}";let a=set(s);return s.length&&(o[o.length-1]+=a.shift(),o.push.apply(o,a)),e.push.apply(e,o),e}function oAr(t,e={}){if(!t)return[];let{max:r=oB.EXPANSION_MAX}=e;return t.slice(0,2)==="{}"&&(t="\\{\\}"+t.slice(2)),V1(nAr(t),r,!0).map(sAr)}function aAr(t){return"{"+t+"}"}function cAr(t){return/^-?0\d/.test(t)}function uAr(t,e){return t<=e}function lAr(t,e){return t>=e}function V1(t,e,r){let i=[],n=(0,eet.balanced)("{","}",t);if(!n)return[t];let s=n.pre,o=n.post.length?V1(n.post,e,!1):[""];if(/\$$/.test(n.pre))for(let a=0;a<o.length&&a<e;a++){let c=s+"{"+n.body+"}"+o[a];i.push(c)}else{let a=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(n.body),c=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(n.body),u=a||c,l=n.body.indexOf(",")>=0;if(!u&&!l)return n.post.match(/,(?!,).*\}/)?(t=n.pre+"{"+n.body+Lfe+n.post,V1(t,e,!0)):[t];let f;if(u)f=n.body.split(/\.\./);else if(f=set(n.body),f.length===1&&f[0]!==void 0&&(f=V1(f[0],e,!1).map(aAr),f.length===1))return o.map(d=>n.pre+f[0]+d);let h;if(u&&f[0]!==void 0&&f[1]!==void 0){let d=Qfe(f[0]),m=Qfe(f[1]),A=Math.max(f[0].length,f[1].length),y=f.length===3&&f[2]!==void 0?Math.abs(Qfe(f[2])):1,g=uAr;m<d&&(y*=-1,g=lAr);let C=f.some(cAr);h=[];for(let S=d;g(S,m);S+=y){let N;if(c)N=String.fromCharCode(S),N==="\\"&&(N="");else if(N=String(S),C){let Q=A-N.length;if(Q>0){let T=new Array(Q+1).join("0");S<0?N="-"+T+N.slice(1):N=T+N}}h.push(N)}}else{h=[];for(let d=0;d<f.length;d++)h.push.apply(h,V1(f[d],e,!1))}for(let d=0;d<h.length;d++)for(let m=0;m<o.length&&i.length<e;m++){let A=s+h[d]+o[m];(!r||u||A)&&i.push(A)}}return i}});var oet=p(p8=>{"use strict";Object.defineProperty(p8,"__esModule",{value:!0});p8.assertValidPattern=void 0;var fAr=1024*64,hAr=t=>{if(typeof t!="string")throw new TypeError("invalid pattern");if(t.length>fAr)throw new TypeError("pattern is too long")};p8.assertValidPattern=hAr});var cet=p(m8=>{"use strict";Object.defineProperty(m8,"__esModule",{value:!0});m8.parseClass=void 0;var dAr={"[:alnum:]":["\\p{L}\\p{Nl}\\p{Nd}",!0],"[:alpha:]":["\\p{L}\\p{Nl}",!0],"[:ascii:]":["\\x00-\\x7f",!1],"[:blank:]":["\\p{Zs}\\t",!0],"[:cntrl:]":["\\p{Cc}",!0],"[:digit:]":["\\p{Nd}",!0],"[:graph:]":["\\p{Z}\\p{C}",!0,!0],"[:lower:]":["\\p{Ll}",!0],"[:print:]":["\\p{C}",!0],"[:punct:]":["\\p{P}",!0],"[:space:]":["\\p{Z}\\t\\r\\n\\v\\f",!0],"[:upper:]":["\\p{Lu}",!0],"[:word:]":["\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}",!0],"[:xdigit:]":["A-Fa-f0-9",!1]},z1=t=>t.replace(/[[\]\\-]/g,"\\$&"),pAr=t=>t.replace(/[-[\]{}() Line truncated
globstar while`,e,h,r,d,m),this.matchOne(e.slice(h),r.slice(d),i))return this.debug("globstar found match!",h,c,m),!0;if(m==="."||m===".."||!n.dot&&m.charAt(0)==="."){this.debug("dot detected!",e,h,r,d);break}this.debug("globstar swallow a segment, and continue"),h++}return!!(i&&(this.debug(`
>>> no match, partial?`,e,h,r,d),h===c))}let A;if(typeof l=="string"?(A=f===l,this.debug("string match",l,f,A)):(A=l.test(f),this.debug("pattern match",l,f,A)),!A)return!1}if(o===c&&a===u)return!0;if(o===c)return i;if(a===u)return o===c-1&&e[o]==="";throw new Error("wtf?")}braceExpand(){return(0,Pe.braceExpand)(this.pattern,this.options)}parse(e){(0,C8.assertValidPattern)(e);let r=this.options;if(e==="**")return Pe.GLOBSTAR;if(e==="")return"";let i,n=null;(i=e.match(FAr))?n=r.dot?qAr:UAr:(i=e.match(RAr))?n=(r.nocase?r.dot?OAr:DAr:r.dot?NAr:TAr)(i[1]):(i=e.match(GAr))?n=(r.nocase?r.dot?jAr:HAr:r.dot?VAr:zAr)(i):(i=e.match(PAr))?n=r.dot?QAr:kAr:(i=e.match(LAr))&&(n=MAr);let s=met.AST.fromGlob(e,this.options).toMMPattern();return n&&typeof s=="object"&&Reflect.defineProperty(s,"test",{value:n}),s}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;let e=this.set;if(!e.length)return this.regexp=!1,this.regexp;let r=this.options,i=r.noglobstar?WAr:r.dot?JAr:YAr,n=new Set(r.nocase?["i"]:[]),s=e.map(c=>{let u=c.map(f=>{if(f instanceof RegExp)for(let h of f.flags.split(""))n.add(h);return typeof f=="string"?rgr(f):f===Pe.GLOBSTAR?Pe.GLOBSTAR:f._src});u.forEach((f,h)=>{let d=u[h+1],m=u[h-1];f!==Pe.GLOBSTAR||m===Pe.GLOBSTAR||(m===void 0?d!==void 0&&d!==Pe.GLOBSTAR?u[h+1]="(?:\\/|"+i+"\\/)?"+d:u[h]=i:d===void 0?u[h-1]=m+"(?:\\/|\\/"+i+")?":d!==Pe.GLOBSTAR&&(u[h-1]=m+"(?:\\/|\\/"+i+"\\/)"+d,u[h+1]=Pe.GLOBSTAR))});let l=u.filter(f=>f!==Pe.GLOBSTAR);if(this.partial&&l.length>=1){let f=[];for(let h=1;h<=l.length;h++)f.push(l.slice(0,h).join("/"));return"(?:"+f.join("|")+")"}return l.join("/")}).join("|"),[o,a]=e.length>1?["(?:",")"]:["",""];s="^"+o+s+a+"$",this.partial&&(s="^(?:\\/|"+o+s.slice(1,-1)+a+")$"),this.negate&&(s="^(?!"+s+").+$");try{this.regexp=new RegExp(s,[...n].join(""))}catch{this.regexp=!1}return this.regexp}slashSplit(e){return this.preserveMultipleSlashes?e.split("/"):this.isWindows&&/^\/\/[^\/]+/.test(e)?["",...e.split(/\/+/)]:e.split(/\/+/)}match(e,r=this.partial){if(this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return e==="";if(e==="/"&&r)return!0;let i=this.options;this.isWindows&&(e=e.split("\\").join("/"));let n=this.slashSplit(e);this.debug(this.pattern,"split",n);let s=this.set;this.debug(this.pattern,"set",s);let o=n[n.length-1];if(!o)for(let a=n.length-2;!o&&a>=0;a--)o=n[a];for(let a=0;a<s.length;a++){let c=s[a],u=n;if(i.matchBase&&c.length===1&&(u=[o]),this.matchOne(u,c,r))return i.flipNegate?!0:!this.negate}return i.flipNegate?!1:this.negate}static defaults(e){return Pe.minimatch.defaults(e).Minimatch}};Pe.Minimatch=O0;var igr=qfe();Object.defineProperty(Pe,"AST",{enumerable:!0,get:function(){return igr.AST}});var ngr=Gfe();Object.defineProperty(Pe,"escape",{enumerable:!0,get:function(){return ngr.escape}});var sgr=g8();Object.defineProperty(Pe,"unescape",{enumerable:!0,get:function(){return sgr.unescape}});Pe.minimatch.AST=met.AST;Pe.minimatch.Minimatch=O0;Pe.minimatch.escape=vAr.escape;Pe.minimatch.unescape=_Ar.unescape});var Bet=p(Vo=>{"use strict";var ogr=Vo&&Vo.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Vo,"__esModule",{value:!0});Vo.Minipass=Vo.isWritable=Vo.isReadable=Vo.isStream=void 0;var Eet=typeof process=="object"&&process?process:{stdout:null,stderr:null},Jfe=require("node:events"),Iet=ogr(require("node:stream")),agr=require("node:string_decoder"),cgr=t=>!!t&&typeof t=="object"&&(t instanceof R8||t instanceof Iet.default||(0,Vo.isReadable)(t)||(0,Vo.isWritable)(t));Vo.isStream=cgr;var ugr=t=>!!t&&typeof t=="object"&&t instanceof Jfe.EventEmitter&&typeof t.pipe=="function"&&t.pipe!==Iet.default.Writable.prototype.pipe;Vo.isReadable=ugr;var lgr=t=>!!t&&typeof t=="object"&&t instanceof Jfe.EventEmitter&&typeof t.write=="function"&&typeof t.end=="function";Vo.isWritable=lgr;var tm=Symbol("EOF"),rm=Symbol("maybeEmitEnd"),lg=Symbol("emittedEnd"),I8=Symbol("emittingEnd"),$1=Symbol("emittedError"),S8=Symbol("closed"),bet=Symbol("read"),B8=Symbol("flush"),wet=Symbol("flushChunk"),Gl=Symbol("encoding"),aB=Symbol("decoder"),$n=Symbol("flowing"),W1=Symbol("paused"),cB=Symbol("resume"),Wn=Symbol("buffer"),jo=Symbol("pipes"),Jn=Symbol("bufferLength"),Hfe=Symbol("bufferPush"),v8=Symbol("bufferShift"),Zs=Symbol("objectMode"),qi=Symbol("destroyed"),jfe=Symbol("error"),Vfe=Symbol("emitData"),Cet=Symbol("emitEnd"),zfe=Symbol("emitEnd2"),Hh=Symbol("async"),$fe=Symbol("abort"),_8=Symbol("aborted"),J1=Symbol("signal"),P0=Symbol("dataListeners"),Rc=Symbol("discarded"),Y1=t=>Promise.resolve().then(t),fgr=t=>t(),hgr=t=>t==="end"||t==="finish"||t==="prefinish",dgr=t=>t instanceof ArrayBuffer||!!t&&typeof t=="object"&&t.constructor&&t.constructor.name==="ArrayBuffer"&&t.byteLength>=0,pgr=t=>!Buffer.isBuffer(t)&&ArrayBuffer.isView(t),x8=class{src;dest;opts;ondrain;constructor(e,r,i){this.src=e,this.dest=r,this.opts=i,this.ondrain=()=>e[cB](),this.dest.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondra Line truncated
\r
`);if(h===-1){oG("have not received end of HTTP headers yet..."),s();return}let d=f.slice(0,h).toString("ascii").split(`\r
`),m=d.shift();if(!m)return t.destroy(),r(new Error("No header received from proxy CONNECT response"));let A=m.split(" "),y=+A[1],g=A.slice(2).join(" "),E={};for(let C of d){if(!C)continue;let S=C.indexOf(":");if(S===-1)return t.destroy(),r(new Error(`Invalid header from proxy CONNECT response: "${C}"`));let N=C.slice(0,S).toLowerCase(),Q=C.slice(S+1).trimStart(),T=E[N];typeof T=="string"?E[N]=[T,Q]:Array.isArray(T)?T.push(Q):E[N]=Q}oG("got proxy server response: %o %o",m,E),o(),e({connect:{statusCode:y,statusText:g,headers:E},buffered:f})}t.on("error",c),t.on("end",a),s()})}pB.parseProxyResponse=CEr});var Vtt=p(qu=>{"use strict";var IEr=qu&&qu.__createBinding||(Object.create?(function(t,e,r,i){i===void 0&&(i=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,i,n)}):(function(t,e,r,i){i===void 0&&(i=r),t[i]=e[r]})),SEr=qu&&qu.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Htt=qu&&qu.__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)&&IEr(e,t,r);return SEr(e,t),e},jtt=qu&&qu.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(qu,"__esModule",{value:!0});qu.HttpsProxyAgent=void 0;var A2=Htt(require("net")),qtt=Htt(require("tls")),BEr=jtt(require("assert")),vEr=jtt(Py()),_Er=nx(),xEr=require("url"),REr=Utt(),g2=(0,vEr.default)("https-proxy-agent"),aG=class extends _Er.Agent{constructor(e,r){super(r),this.options={path:void 0},this.proxy=typeof e=="string"?new xEr.URL(e):e,this.proxyHeaders=r?.headers??{},g2("Creating new HttpsProxyAgent instance: %o",this.proxy.href);let i=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),n=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={ALPNProtocols:["http/1.1"],...r?Gtt(r,"headers"):null,host:i,port:n}}async connect(e,r){let{proxy:i}=this;if(!r.host)throw new TypeError('No "host" provided');let n;if(i.protocol==="https:"){g2("Creating `tls.Socket`: %o",this.connectOpts);let h=this.connectOpts.servername||this.connectOpts.host;n=qtt.connect({...this.connectOpts,servername:h&&A2.isIP(h)?void 0:h})}else g2("Creating `net.Socket`: %o",this.connectOpts),n=A2.connect(this.connectOpts);let s=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders},o=A2.isIPv6(r.host)?`[${r.host}]`:r.host,a=`CONNECT ${o}:${r.port} HTTP/1.1\r
`;if(i.username||i.password){let h=`${decodeURIComponent(i.username)}:${decodeURIComponent(i.password)}`;s["Proxy-Authorization"]=`Basic ${Buffer.from(h).toString("base64")}`}s.Host=`${o}:${r.port}`,s["Proxy-Connection"]||(s["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let h of Object.keys(s))a+=`${h}: ${s[h]}\r
`;let c=(0,REr.parseProxyResponse)(n);n.write(`${a}\r
`);let{connect:u,buffered:l}=await c;if(e.emit("proxyConnect",u),this.emit("proxyConnect",u,e),u.statusCode===200){if(e.once("socket",TEr),r.secureEndpoint){g2("Upgrading socket connection to TLS");let h=r.servername||r.host;return qtt.connect({...Gtt(r,"host","path","port"),socket:n,servername:A2.isIP(h)?void 0:h})}return n}n.destroy();let f=new A2.Socket({writable:!1});return f.readable=!0,e.once("socket",h=>{g2("Replaying proxy buffer for failed request"),(0,BEr.default)(h.listenerCount("data")>0),h.push(l),h.push(null)}),f}};aG.protocols=["http","https"];qu.HttpsProxyAgent=aG;function TEr(t){t.resume()}function Gtt(t,...e){let r={},i;for(i in t)e.includes(i)||(r[i]=t[i]);return r}});var Jtt=p(sm=>{"use strict";Object.defineProperty(sm,"__esModule",{value:!0});var ztt=require("buffer"),F0={INVALID_ENCODING:"Invalid encoding provided. Please specify a valid encoding the internal Node.js Buffer supports.",INVALID_SMARTBUFFER_SIZE:"Invalid size provided. Size must be a valid integer greater than zero.",INVALID_SMARTBUFFER_BUFFER:"Invalid Buffer provided in SmartBufferOptions.",INVALID_SMARTBUFFER_OBJECT:"Invalid SmartBufferOptions object supplied to SmartBuffer constructor or factory methods.",INVALID_OFFSET:"An invalid offset value was provided.",INVALID_OFFSET_NON_NUMBER:"An invalid offset value was provided. A numeric value is required.",INVALID_LENGTH:"An invalid length value was provided.",INVALID_LENGTH_NON_NUMBER:"An invalid length value was provived. A numeric value is required.",INVALID_TARGET_OFFSET:"Target offset is beyond the bounds of the internal SmartBuffer data.",INVALID_TARGET_LENGTH:"Specified length value moves cursor beyong the bounds of the internal SmartBuffer data.",INVALID_READ_BEYOND_BOUNDS:"Attempted to read beyond the bounds of the managed data.",INVALID_WRITE_BEYOND_BOUNDS:"Attempted to write beyond the bounds of the managed data."};sm.ERRORS=F0;function NEr(t){if(!ztt.Buffer.isEncoding(t))throw new Error(F0.INVALID_ENCODING)}sm.checkEncoding=NEr;function $tt(t){return typeof t=="number"&&isFinite(t)&&kEr(t)}sm.isFiniteInteger=$tt;function Wtt(t,e){if(typeof t=="number"){if(!$tt(t)||t<0)throw new Error(e?F0.INVALID_OFFSET:F0.INVALID_LENGTH)}else throw new Error(e?F0.INVALID_OFFSET_NON_NUMBER:F0.INVALID_LENGTH_NON_NUMBER)}function DEr(t){Wtt(t,!1)}sm.checkLengthValue=DEr;function OEr(t){Wtt(t,!0)}sm.checkOffsetValue=OEr;function PEr(t,e){if(t<0||t>e.length)throw new Error(F0.INVALID_TARGET_OFFSET)}sm.checkTargetOffset=PEr;function kEr(t){return typeof t=="number"&&isFinite(t)&&Math.floor(t)===t}function QEr(t){if(typeof BigInt>"u")throw new Error("Platform does not support JS BigInt type.");if(typeof ztt.Buffer.prototype[t]>"u")throw new Error(`Platform does not support Buffer.prototype.${t}.`)}sm.bigIntAndBufferInt64Check=QEr});var Ktt=p(Mhe=>{"use strict";Object.defineProperty(Mhe,"__esModule",{value:!0});var bt=Jtt(),Ytt=4096,LEr="utf8",Lhe=class t{constructor(e){if(this.length=0,this._encoding=LEr,this._writeOffset=0,this._readOffset=0,t.isSmartBufferOptions(e))if(e.encoding&&(bt.checkEncoding(e.encoding),this._encoding=e.encoding),e.size)if(bt.isFiniteInteger(e.size)&&e.size>0)this._buff=Buffer.allocUnsafe(e.size);else throw new Error(bt.ERRORS.INVALID_SMARTBUFFER_SIZE);else if(e.buff)if(Buffer.isBuffer(e.buff))this._buff=e.buff,this.length=e.buff.length;else throw new Error(bt.ERRORS.INVALID_SMARTBUFFER_BUFFER);else this._buff=Buffer.allocUnsafe(Ytt);else{if(typeof e<"u")throw new Error(bt.ERRORS.INVALID_SMARTBUFFER_OBJECT);this._buff=Buffer.allocUnsafe(Ytt)}}static fromSize(e,r){return new this({size:e,encoding:r})}static fromBuffer(e,r){return new this({buff:e,encoding:r})}static fromOptions(e){return new this(e)}static isSmartBufferOptions(e){let r=e;return r&&(r.encoding!==void 0||r.size!==void 0||r.buff!==void 0)}readInt8(e){return this._readNumberValue(Buffer.prototype.readInt8,1,e)}readInt16BE(e){return this._readNumberValue(Buffer.prototype.readInt16BE,2,e)}readInt16LE(e){return this._readNumberValue(Buffer.prototype.readInt16LE,2,e)}readInt32BE(e){return this._readNumberValue(Buffer.prototype.readInt32BE,4,e)}readInt32LE(e){return this._readNumberValue(Buffer.prototype.readInt32LE,4,e)}readBigInt64BE(e){return bt.bigIntAndBufferInt64Check("readBigInt64BE"),this._readNumberValue(Buffer.prototype.readBigInt64BE,8,e)}readBigInt64LE(e){return bt.bigIntAndBufferInt64Check("readBigInt64LE"),this._readNumberValue(Buffer.prototype.readBigInt64LE,8,e)}writeInt8(e,r){return this._writeNumberValue(Buffer.prototype.writeInt8,1,e,r),this}insertInt8(e,r){return this._insertNumberValue(Buffer.prototype.writeInt8,1,e,r)}writeInt16BE(e,r){return this._writeNumberValue(Buffer.prototype.writeInt16BE,2,e,r)}insertInt16BE(e,r){return this._insertNumberValue(Buffer.prototype.writeInt16BE,2,e,r)}writeInt16LE(e,r){return this._writeNumberValue(Buffer.prototype.writeInt16LE,2,e,r)}insertInt16LE(e,r){return this._insertNumberValue(Buffer.prototype.writeInt16LE,2,e,r)}writeInt32BE(e,r){retur Line truncated
globstar while`,e,h,r,d,m),this.matchOne(e.slice(h),r.slice(d),i))return this.debug("globstar found match!",h,c,m),!0;if(m==="."||m===".."||!n.dot&&m.charAt(0)==="."){this.debug("dot detected!",e,h,r,d);break}this.debug("globstar swallow a segment, and continue"),h++}return!!(i&&(this.debug(`
>>> no match, partial?`,e,h,r,d),h===c))}let A;if(typeof l=="string"?(A=f===l,this.debug("string match",l,f,A)):(A=l.test(f),this.debug("pattern match",l,f,A)),!A)return!1}if(o===c&&a===u)return!0;if(o===c)return i;if(a===u)return o===c-1&&e[o]==="";throw new Error("wtf?")}braceExpand(){return(0,ke.braceExpand)(this.pattern,this.options)}parse(e){(0,sH.assertValidPattern)(e);let r=this.options;if(e==="**")return ke.GLOBSTAR;if(e==="")return"";let i,n=null;(i=e.match(dIr))?n=r.dot?mIr:pIr:(i=e.match(iIr))?n=(r.nocase?r.dot?aIr:oIr:r.dot?sIr:nIr)(i[1]):(i=e.match(AIr))?n=(r.nocase?r.dot?yIr:gIr:r.dot?EIr:bIr)(i):(i=e.match(cIr))?n=r.dot?lIr:uIr:(i=e.match(fIr))&&(n=hIr);let s=unt.AST.fromGlob(e,this.options).toMMPattern();return n&&typeof s=="object"&&Reflect.defineProperty(s,"test",{value:n}),s}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;let e=this.set;if(!e.length)return this.regexp=!1,this.regexp;let r=this.options,i=r.noglobstar?CIr:r.dot?IIr:SIr,n=new Set(r.nocase?["i"]:[]),s=e.map(c=>{let u=c.map(f=>{if(f instanceof RegExp)for(let h of f.flags.split(""))n.add(h);return typeof f=="string"?TIr(f):f===ke.GLOBSTAR?ke.GLOBSTAR:f._src});u.forEach((f,h)=>{let d=u[h+1],m=u[h-1];f!==ke.GLOBSTAR||m===ke.GLOBSTAR||(m===void 0?d!==void 0&&d!==ke.GLOBSTAR?u[h+1]="(?:\\/|"+i+"\\/)?"+d:u[h]=i:d===void 0?u[h-1]=m+"(?:\\/|\\/"+i+")?":d!==ke.GLOBSTAR&&(u[h-1]=m+"(?:\\/|\\/"+i+"\\/)"+d,u[h+1]=ke.GLOBSTAR))});let l=u.filter(f=>f!==ke.GLOBSTAR);if(this.partial&&l.length>=1){let f=[];for(let h=1;h<=l.length;h++)f.push(l.slice(0,h).join("/"));return"(?:"+f.join("|")+")"}return l.join("/")}).join("|"),[o,a]=e.length>1?["(?:",")"]:["",""];s="^"+o+s+a+"$",this.partial&&(s="^(?:\\/|"+o+s.slice(1,-1)+a+")$"),this.negate&&(s="^(?!"+s+").+$");try{this.regexp=new RegExp(s,[...n].join(""))}catch{this.regexp=!1}return this.regexp}slashSplit(e){return this.preserveMultipleSlashes?e.split("/"):this.isWindows&&/^\/\/[^\/]+/.test(e)?["",...e.split(/\/+/)]:e.split(/\/+/)}match(e,r=this.partial){if(this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return e==="";if(e==="/"&&r)return!0;let i=this.options;this.isWindows&&(e=e.split("\\").join("/"));let n=this.slashSplit(e);this.debug(this.pattern,"split",n);let s=this.set;this.debug(this.pattern,"set",s);let o=n[n.length-1];if(!o)for(let a=n.length-2;!o&&a>=0;a--)o=n[a];for(let a=0;a<s.length;a++){let c=s[a],u=n;if(i.matchBase&&c.length===1&&(u=[o]),this.matchOne(u,c,r))return i.flipNegate?!0:!this.negate}return i.flipNegate?!1:this.negate}static defaults(e){return ke.minimatch.defaults(e).Minimatch}};ke.Minimatch=$0;var NIr=upe();Object.defineProperty(ke,"AST",{enumerable:!0,get:function(){return NIr.AST}});var DIr=lpe();Object.defineProperty(ke,"escape",{enumerable:!0,get:function(){return DIr.escape}});var OIr=eH();Object.defineProperty(ke,"unescape",{enumerable:!0,get:function(){return OIr.unescape}});ke.minimatch.AST=unt.AST;ke.minimatch.Minimatch=$0;ke.minimatch.escape=eIr.escape;ke.minimatch.unescape=tIr.unescape});var dpe=p($u=>{"use strict";var pnt=$u&&$u.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty($u,"__esModule",{value:!0});$u.SuccinctRoles=$u.DelegatedRole=$u.Role=$u.TOP_LEVEL_ROLE_NAMES=void 0;var mnt=pnt(require("crypto")),PIr=dnt(),oH=pnt(require("util")),aH=ed(),W0=zl();$u.TOP_LEVEL_ROLE_NAMES=["root","targets","snapshot","timestamp"];var P2=class t{keyIDs;threshold;unrecognizedFields;constructor(e){let{keyIDs:r,threshold:i,unrecognizedFields:n}=e;if(kIr(r))throw new aH.ValueError("duplicate key IDs found");if(i<1)throw new aH.ValueError("threshold must be at least 1");this.keyIDs=r,this.threshold=i,this.unrecognizedFields=n||{}}equals(e){return e instanceof t?this.threshold===e.threshold&&oH.default.isDeepStrictEqual(this.keyIDs,e.keyIDs)&&oH.default.isDeepStrictEqual(this.unrecognizedFields,e.unrecognizedFields):!1}toJSON(){return{keyids:this.keyIDs,threshold:this.threshold,...this.unrecognizedFields}}static fromJSON(e){let{keyids:r,threshold:i,...n}=e;if(!W0.guard.isStringArray(r))throw new TypeError("keyids must be an array");if(typeof i!="number")throw new TypeError("threshold must be a number");return new t({keyIDs:r,threshold:i,unrecognizedFields:n})}};$u.Role=P2;function kIr(t){return new Set(t).size!==t.length}var fpe=class t extends P2{name;terminating;paths;pathHashPrefixes;constructor(e){super(e);let{name:r,terminating:i,paths:n,pathHashPrefixes:s}=e;if(this.name=r,this.terminating=i,e.paths&&e.pathHashPrefixes)throw new aH.ValueError("paths and pathHashPrefixes are mutually exclusive");this.paths=n,this.pathHashPrefixes=s}equals(e){return e instanceof t?super.equals(e)&&this.name===e.name&&this.terminating===e.terminating&&oH.default.isDeepStrictEqual(this.paths,e.paths)&&oH.default.isDeepStrictEqual(this.pathHashPrefixes,e.pathHashPrefixes):!1}isDelegatedPath(e){if(this.paths)return this.paths.some(r=>LIr(e,r));if(this.pathHashPrefixes){let i=mnt.default.createHash("sha256").update( Line truncated
`).join(`
`+s),t.push(n+"m+"+EH.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=FSr()+e+" "+t[0]}function FSr(){return ts.inspectOpts.hideDate?"":new Date().toISOString()+" "}function USr(...t){return process.stderr.write(yH.formatWithOptions(ts.inspectOpts,...t)+`
`)}function qSr(t){t?process.env.DEBUG=t:delete process.env.DEBUG}function GSr(){return process.env.DEBUG}function HSr(t){t.inspectOpts={};let e=Object.keys(ts.inspectOpts);for(let r=0;r<e.length;r++)t.inspectOpts[e[r]]=ts.inspectOpts[e[r]]}EH.exports=Ope()(ts);var{formatters:Tnt}=EH.exports;Tnt.o=function(t){return this.inspectOpts.colors=this.useColors,yH.inspect(t,this.inspectOpts).split(`
`).map(e=>e.trim()).join(" ")};Tnt.O=function(t){return this.inspectOpts.colors=this.useColors,yH.inspect(t,this.inspectOpts)}});var kpe=p((Cci,Ppe)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?Ppe.exports=Rnt():Ppe.exports=Nnt()});var Ont=p((Ici,Dnt)=>{var jSr=require("dns"),VSr=["if-modified-since","if-none-match","if-unmodified-since","if-match","if-range"],zSr=t=>{let{strictSSL:e,...r}={...t};if(r.method=r.method?r.method.toUpperCase():"GET",e==null?r.rejectUnauthorized=process.env.NODE_TLS_REJECT_UNAUTHORIZED!=="0":r.rejectUnauthorized=e!==!1,!r.retry)r.retry={retries:0};else if(typeof r.retry=="string"){let i=parseInt(r.retry,10);isFinite(i)?r.retry={retries:i}:r.retry={retries:0}}else typeof r.retry=="number"?r.retry={retries:r.retry}:r.retry={retries:0,...r.retry};return r.dns={ttl:300*1e3,lookup:jSr.lookup,...r.dns},r.cache=r.cache||"default",r.cache==="default"&&Object.keys(r.headers||{}).some(n=>VSr.includes(n.toLowerCase()))&&(r.cache="no-store"),r.cacheAdditionalHeaders=r.cacheAdditionalHeaders||[],r.cacheManager&&!r.cachePath&&(r.cachePath=r.cacheManager),r};Dnt.exports=zSr});var Lpe=p((Sci,Mnt)=>{var Pnt=ile(),knt=ule(),$Sr=Fh(),Qnt={shared:!1,ignoreCargoCult:!0},WSr={status:200,headers:{}},qB=t=>{let e={method:t.method,url:t.url,headers:{},compress:t.compress};return t.headers.forEach((r,i)=>{e.headers[i]=r}),e},Lnt=t=>{let e={status:t.status,headers:{}};return t.headers.forEach((r,i)=>{e.headers[i]=r}),e},Qpe=class{constructor({entry:e,request:r,response:i,options:n}){this.entry=e,this.request=qB(r),this.response=Lnt(i),this.options=n,this.policy=new Pnt(this.request,this.response,Qnt),this.entry&&(this.policy._responseTime=this.entry.metadata.time)}static storable(e,r){return!r.cachePath||r.cache==="no-store"||!["GET","HEAD"].includes(e.method)?!1:new Pnt(qB(e),WSr,Qnt).storable()}satisfies(e){let r=qB(e);if(this.request.headers.host!==r.headers.host||this.request.compress!==r.compress)return!1;let i=new knt(this.request),n=new knt(r);return JSON.stringify(i.mediaTypes())!==JSON.stringify(n.mediaTypes())||JSON.stringify(i.languages())!==JSON.stringify(n.languages())||JSON.stringify(i.encodings())!==JSON.stringify(n.encodings())?!1:this.options.integrity?$Sr.parse(this.options.integrity).match(this.entry.integrity):!0}storable(){return this.policy.storable()}get mustRevalidate(){return!!this.policy._rescc["must-revalidate"]}needsRevalidation(e){let r=qB(e);return r.method="GET",!this.policy.satisfiesWithoutRevalidation(r)}responseHeaders(){return this.policy.responseHeaders()}revalidationHeaders(e){let r=qB(e);return this.policy.revalidationHeaders(r)}revalidated(e,r){let i=qB(e),n=Lnt(r);return!this.policy.revalidatedPolicy(i,n).modified}};Mnt.exports=Qpe});var Unt=p((Bci,Fnt)=>{var Mpe=class extends Error{constructor(e){super(`request to ${e} failed: cache mode is 'only-if-cached' but no cached response is available.`),this.code="ENOTCACHED"}};Fnt.exports={NotCachedError:Mpe}});var Upe=p((vci,qnt)=>{"use strict";var JSr=I0(),Fpe=class extends JSr{#e=[];#t=new Map;constructor(e,...r){super(),this.#e=e.events,r.length&&this.push(...r)}on(e,r){return this.#e.includes(e)&&this.#t.has(e)?r(...this.#t.get(e)):super.on(e,r)}emit(e,...r){return this.#e.includes(e)&&this.#t.set(e,r),super.emit(e,...r)}};qnt.exports=Fpe});var Hnt=p((_ci,Gnt)=>{var{URL:YSr,format:KSr}=require("url"),XSr={auth:!1,fragment:!1,search:!0,unicode:!1},ZSr=t=>{let e=new YSr(t.url);return`make-fetch-happen:request-cache:${KSr(e,XSr)}`};Gnt.exports=ZSr});var jnt=p((xci,eBr)=>{eBr.exports={name:"make-fetch-happen",version:"15.0.4",description:"Opinionated, caching, retrying fetch client",main:"lib/index.js",files:["bin/","lib/"],scripts:{test:"tap",posttest:"npm run lint",eslint:'eslint "**/*.{js,cjs,ts,mjs,jsx,tsx}"',lint:"npm run eslint",lintfix:"npm run eslint -- --fix",postlint:"template-oss-check",snap:"tap","template-oss-apply":"template-oss-apply --force"},repository:{type:"git",url:"git+https://github.com/npm/make-fetch-happen.git"},keywords:["http","request","fetch","mean girls","caching","cache","subresource integrity"],author:"GitHub Inc.",license:"ISC",dependencies:{"@gar/promise-retry":"^1.0.0","@npmcli/agent":"^4.0.0",cacache:"^20.0.1","http-cache-semantics":"^4.1.1",minipass:"^7.0.2","minipass-fetch":"^5.0.0","minipass-flush":"^1.0.5","minipass-pipeline":"^1.2.4",negotiator:"^1.0.0","proc-log":"^6.0.0",ssri:"^13.0.0"},devDependencies:{"@npmcli/eslint-config":"^5.0.0","@npmcli/template-oss":"4.25.0",nock:"^13.2.4","safe-buffer":"^5.2.1","standard-version":"^9.3.2",tap:"^16.0.0"},engines:{node:"^20.17.0 || >=22.9.0"},tap:{color:1,files:"test/*.js","check-coverage":!0,timeout:60,"nyc-arg":["--exclude","tap-snapshots/**"]},templateOSS:{"//@npmcli/template-oss":"This file is partially managed by @npmcli/template-oss. Edits may be overwritten.",version:"4.25.0",publish:"true"}}});var wH=p((Rci,znt)=>{var{Minipass:tBr}=Uo(),bH=Lp(),{promiseRetry:rBr}=The(),iBr=Fh(),{log:Vnt}=r Line truncated
`).forEach(r=>{r.match(Gvr)||r.match(Hvr)||(e+=r)}),Buffer.from(e,"base64")}function Vvr(t,e="CERTIFICATE"){let i=t.toString("base64").match(/.{1,64}/g)||"";return[`-----BEGIN ${e}-----`,...i,`-----END ${e}-----`].join(`
`).concat(`
`)}});var VH=p(vg=>{"use strict";Object.defineProperty(vg,"__esModule",{value:!0});vg.SHA2_HASH_ALGOS=vg.RSA_SIGNATURE_ALGOS=vg.ECDSA_SIGNATURE_ALGOS=void 0;vg.ECDSA_SIGNATURE_ALGOS={"1.2.840.10045.4.3.1":"sha224","1.2.840.10045.4.3.2":"sha256","1.2.840.10045.4.3.3":"sha384","1.2.840.10045.4.3.4":"sha512"};vg.RSA_SIGNATURE_ALGOS={"1.2.840.113549.1.1.14":"sha224","1.2.840.113549.1.1.11":"sha256","1.2.840.113549.1.1.12":"sha384","1.2.840.113549.1.1.13":"sha512"};vg.SHA2_HASH_ALGOS={"2.16.840.1.101.3.4.2.1":"sha256","2.16.840.1.101.3.4.2.2":"sha384","2.16.840.1.101.3.4.2.3":"sha512"}});var _me=p(zH=>{"use strict";Object.defineProperty(zH,"__esModule",{value:!0});zH.RFC3161TimestampVerificationError=void 0;var vme=class extends Error{};zH.RFC3161TimestampVerificationError=vme});var Gst=p(rd=>{"use strict";var zvr=rd&&rd.__createBinding||(Object.create?(function(t,e,r,i){i===void 0&&(i=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,i,n)}):(function(t,e,r,i){i===void 0&&(i=r),t[i]=e[r]})),$vr=rd&&rd.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Wvr=rd&&rd.__importStar||(function(){var t=function(e){return t=Object.getOwnPropertyNames||function(r){var i=[];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(i[i.length]=n);return i},t(e)};return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var i=t(e),n=0;n<i.length;n++)i[n]!=="default"&&zvr(r,e,i[n]);return $vr(r,e),r}})();Object.defineProperty(rd,"__esModule",{value:!0});rd.TSTInfo=void 0;var qst=Wvr(WB()),Jvr=VH(),Yvr=_me(),xme=class{root;constructor(e){this.root=e}get version(){return this.root.subs[0].toInteger()}get genTime(){return this.root.subs[4].toDate()}get messageImprintHashAlgorithm(){let e=this.messageImprintObj.subs[0].subs[0].toOID();return Jvr.SHA2_HASH_ALGOS[e]}get messageImprintHashedMessage(){return this.messageImprintObj.subs[1].value}get raw(){return this.root.toDER()}verify(e){let r=qst.digest(this.messageImprintHashAlgorithm,e);if(!qst.bufferEqual(r,this.messageImprintHashedMessage))throw new Yvr.RFC3161TimestampVerificationError("message imprint does not match artifact")}get messageImprintObj(){return this.root.subs[2]}};rd.TSTInfo=xme});var jst=p(id=>{"use strict";var Kvr=id&&id.__createBinding||(Object.create?(function(t,e,r,i){i===void 0&&(i=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,i,n)}):(function(t,e,r,i){i===void 0&&(i=r),t[i]=e[r]})),Xvr=id&&id.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Zvr=id&&id.__importStar||(function(){var t=function(e){return t=Object.getOwnPropertyNames||function(r){var i=[];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(i[i.length]=n);return i},t(e)};return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var i=t(e),n=0;n<i.length;n++)i[n]!=="default"&&Kvr(r,e,i[n]);return Xvr(r,e),r}})();Object.defineProperty(id,"__esModule",{value:!0});id.RFC3161Timestamp=void 0;var e_r=GH(),Rme=Zvr(WB()),Hst=VH(),j2=_me(),t_r=Gst(),r_r="1.2.840.113549.1.7.2",i_r="1.2.840.113549.1.9.16.1.4",n_r="1.2.840.113549.1.9.4",Tme=class t{root;constructor(e){this.root=e}static parse(e){let r=e_r.ASN1Obj.parseBuffer(e);return new t(r)}get status(){return this.pkiStatusInfoObj.subs[0].toInteger()}get contentType(){return this.contentTypeObj.toOID()}get eContentType(){return this.eContentTypeObj.toOID()}get signingTime(){return this.tstInfo.genTime}get signerIssuer(){return this.signerSidObj.subs[0].value}get signerSerialNumber(){return this.signerSidObj.subs[1].value}get signerDigestAlgorithm(){let e=this.signerDigestAlgorithmObj.subs[0].toOID();return Hst.SHA2_HASH_ALGOS[e]}get signatureAlgorithm(){let e=this.signatureAlgorithmObj.subs[0].toOID();return Hst.ECDSA_SIGNATURE_ALGOS[e]}get signatureValue(){return this.signatureValueObj.value}get tstInfo(){return new t_r.TSTInfo(this.eContentObj.subs[0].subs[0])}verify(e,r){if(!this.timeStampTokenObj)throw new j2.RFC3161TimestampVerificationError("timeStampToken is missing");if(this.contentType!==r_r)throw new j2.RFC3161TimestampVerificationError(`incorrect content type: ${this.contentType}`);if(this.eContentType!==i_r)throw new j2.RFC3161TimestampVerificationError(`incorrect encapsulated content type: ${this.eContentType}`);this.tstInfo.verify(e),this.verifyMessageDigest(),this.verifySignature(r)}verifyMessageDigest(){let e=Rme.digest(this.signerDigestAlgorithm,this.tstInfo.raw),r=this.messageDigestAttributeObj.subs[1].subs[0].value;if(!Rme.bufferEqual(e,r))throw new j2.RFC3161TimestampVerificationError("signed data does not match tstInfo")}verifySignature(e){let r=this.signedAttrsObj.toD Line truncated
`,Exr=/\u2014 (\S+) (\S+)\n/g;function bxr(t,e){let r=t.inclusionProof,i=iAe.fromString(r.checkpoint.envelope),n=s6.fromString(i.note);if(!wxr(i,e))throw new J2.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"invalid checkpoint signature"});return n}function wxr(t,e){let r=Buffer.from(t.note,"utf-8");return t.signatures.some(i=>{let n=e.find(s=>got.crypto.bufferEqual(s.logID.subarray(0,4),i.keyHint)&&s.baseURL.match(i.name));return n?got.crypto.verify(r,n.publicKey,i.signature):!1})}var iAe=class t{note;signatures;constructor(e,r){this.note=e,this.signatures=r}static fromString(e){if(!e.includes(rAe))throw new J2.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"missing checkpoint separator"});let r=e.indexOf(rAe),i=e.slice(0,r+1),s=e.slice(r+rAe.length).matchAll(Exr),o=Array.from(s,a=>{let[,c,u]=a,l=Buffer.from(u,"base64");if(l.length<5)throw new J2.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"malformed checkpoint signature"});return{name:c,keyHint:l.subarray(0,4),signature:l.subarray(4)}});if(o.length===0)throw new J2.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"no signatures found in checkpoint"});return new t(i,o)}},s6=class t{origin;logSize;logHash;rest;constructor(e,r,i,n){this.origin=e,this.logSize=r,this.logHash=i,this.rest=n}static fromString(e){let r=e.trimEnd().split(`
`);if(r.length<3)throw new J2.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"too few lines in checkpoint header"});let i=r[0],n=BigInt(r[1]),s=Buffer.from(r[2],"base64"),o=r.slice(3);return new t(i,n,s,o)}};Y2.LogCheckpoint=s6});var Eot=p(aAe=>{"use strict";Object.defineProperty(aAe,"__esModule",{value:!0});aAe.verifyMerkleInclusion=Sxr;var oAe=$l(),nAe=io(),Cxr=Buffer.from([0]),Ixr=Buffer.from([1]);function Sxr(t,e){let r=t.inclusionProof,i=BigInt(r.logIndex),n=BigInt(e.logSize);if(i<0n||i>=n)throw new nAe.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:`invalid index: ${i}`});let{inner:s,border:o}=Bxr(i,n);if(r.hashes.length!==s+o)throw new nAe.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"invalid hash count"});let a=r.hashes.slice(0,s),c=r.hashes.slice(s),u=Nxr(t.canonicalizedBody),l=_xr(vxr(u,a,i),c);if(!oAe.crypto.bufferEqual(l,e.logHash))throw new nAe.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"calculated root hash does not match inclusion proof"})}function Bxr(t,e){let r=xxr(t,e),i=Rxr(t>>BigInt(r));return{inner:r,border:i}}function vxr(t,e,r){return e.reduce((i,n,s)=>r>>BigInt(s)&BigInt(1)?sAe(n,i):sAe(i,n),t)}function _xr(t,e){return e.reduce((r,i)=>sAe(i,r),t)}function xxr(t,e){return Txr(t^e-BigInt(1))}function Rxr(t){return t.toString(2).split("1").length-1}function Txr(t){return t===0n?0:t.toString(2).length}function sAe(t,e){return oAe.crypto.digest("sha256",Ixr,t,e)}function Nxr(t){return oAe.crypto.digest("sha256",Cxr,t)}});var wot=p(cAe=>{"use strict";Object.defineProperty(cAe,"__esModule",{value:!0});cAe.verifyTLogSET=Pxr;var bot=$l(),Dxr=io(),Oxr=KB();function Pxr(t,e){if(!(0,Oxr.filterTLogAuthorities)(e,{logID:t.logId.keyId,targetDate:new Date(Number(t.integratedTime)*1e3)}).some(n=>{let s=kxr(t),o=Buffer.from(bot.json.canonicalize(s),"utf8"),a=t.inclusionPromise.signedEntryTimestamp;return bot.crypto.verify(o,n.publicKey,a)}))throw new Dxr.VerificationError({code:"TLOG_INCLUSION_PROMISE_ERROR",message:"inclusion promise could not be verified"})}function kxr(t){let{integratedTime:e,logIndex:r,logId:i,canonicalizedBody:n}=t;return{body:n.toString("base64"),integratedTime:Number(e),logIndex:Number(r),logID:i.keyId.toString("hex")}}});var Iot=p(o6=>{"use strict";Object.defineProperty(o6,"__esModule",{value:!0});o6.verifyTLogBody=Uxr;o6.verifyTLogInclusion=qxr;var Cot=Dde(),fAe=io(),uAe=pot(),lAe=mot(),Qxr=Aot(),Lxr=yot(),Mxr=Eot(),Fxr=wot();function Uxr(t,e){let{kind:r,version:i}=t.kindVersion,n=JSON.parse(t.canonicalizedBody.toString("utf8"));if(r!==n.kind||i!==n.apiVersion)throw new fAe.VerificationError({code:"TLOG_BODY_ERROR",message:`kind/version mismatch - expected: ${r}/${i}, received: ${n.kind}/${n.apiVersion}`});switch(r){case"dsse":if(i==uAe.DSSE_API_VERSION_V1)return(0,uAe.verifyDSSETLogBody)(n,e);{let s=Cot.Entry.fromJSON(n);return(0,uAe.verifyDSSETLogBodyV2)(s,e)}case"intoto":return(0,Qxr.verifyIntotoTLogBody)(n,e);case"hashedrekord":if(i==lAe.HASHEDREKORD_API_VERSION_V1)return(0,lAe.verifyHashedRekordTLogBody)(n,e);{let s=Cot.Entry.fromJSON(n);return(0,lAe.verifyHashedRekordTLogBodyV2)(s,e)}default:throw new fAe.VerificationError({code:"TLOG_BODY_ERROR",message:`unsupported kind: ${r}`})}}function qxr(t,e){let r=!1;if(Gxr(t)&&((0,Fxr.verifyTLogSET)(t,e),r=!0),Hxr(t)){let i=(0,Lxr.verifyCheckpoint)(t,e);(0,Mxr.verifyMerkleInclusion)(t,i),r=!0}if(!r)throw new fAe.VerificationError({code:"TLOG_MISSING_INCLUSION_ERROR",message:"inclusion could not be verified"})}function Gxr(t){return t.inclusionPromise!==void 0}function Hxr(t){return t.inclusionProof!==void 0}});var Rot=p(a6=>{"use strict";Object.defineProperty(a6,"__esModule",{value:!0});a6.Verifier=void 0;var jxr=require("util"),XB=io(),Sot=cot(),Bot=lot(),vot=dot(),_ot=Iot(),hAe=class{trustMaterial;options;constructor(e,r={}){this.trustMaterial=e,this.options={ctlogThreshold:r.ctlogThreshold??1,tlogThreshold:r.tlogThreshold??1,timestampThreshold:r.timestampThreshold??r.tsaThreshold??1,tsaThreshold:0}}verify(e,r){let i=this.verifyTimestamps(e),n=this.verifySigningKey(e,i);return this.verifyTLogs(e),this.verifySignature(e,n),r&&this.verifyPolicy(r,n.identity||{}),n}verifyTimestamps(e){let r=0,i=e.timestamps.map(n=>{switch(n.$case){case"timestamp-authority":return r++,(0,vot.getTSATimestamp)(n.timestamp,e.signature.signature,this.trustMaterial.timestampAuthorities);case"transparency-log":return r++,(0,vot.getTLogTimestamp)(n.tlogEntry)}});if(xot(i))throw new XB.VerificationError({code:"TIMESTAMP_ERROR",message:"duplicate timestamp"});if(r<this.options.timestampThreshold)throw new XB.VerificationError({code:"TIMESTAMP_ERROR",message:`expected ${this.options.timestampThreshold} timestamps, got ${r}`});return i.map(n=>n.timestamp)}verifySigningKey({key:e},r){switch(e.$case){case"public-key":return(0,Sot.verifyPublicKey)(e.hint,r,this.trustMaterial);case"certificate":{let i=(0,Sot.verifyCertificate)(e.certificate,r,this.trustMaterial);if(xot(i.scts))throw new XB.Verificat Line truncated
Support boolean input list: \`true | True | TRUE | false | False | FALSE\``)}function _Se(t,e){if(process.env.GITHUB_OUTPUT||"")return ED("OUTPUT",j6(t,e));process.stdout.write(R9.EOL),dd("set-output",{name:t},hd(e))}function bP(t){process.exitCode=x9.Failure,ubt(t)}function X(t){dd("debug",{},t)}function ubt(t,e={}){dd("error",q6(e),t instanceof Error?t.toString():t)}function ns(t,e={}){dd("warning",q6(e),t instanceof Error?t.toString():t)}function $(t){process.stdout.write(t+R9.EOL)}function lbt(t){H6("group",t)}function fbt(){H6("endgroup")}function si(t,e){return cbt(this,void 0,void 0,function*(){lbt(t);let r;try{r=yield e()}finally{fbt()}return r})}function jc(t,e){if(process.env.GITHUB_STATE||"")return ED("STATE",j6(t,e));dd("save-state",{name:t},hd(e))}function xSe(t){return process.env[`STATE_${t}`]||""}var CM=O(require("fs"),1),HZ=O(require("os"),1),jZ=O(require("path"),1);var TSe=O(require("os"),1);function C_(t){return t==null?"":typeof t=="string"||t instanceof String?t:JSON.stringify(t)}function NSe(t,e,r){let i=new T9(t,e,r);process.stdout.write(i.toString()+TSe.EOL)}var RSe="::",T9=class{constructor(e,r,i){e||(e="missing.command"),this.command=e,this.properties=r,this.message=i}toString(){let e=RSe+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let r=!0;for(let i in this.properties)if(this.properties.hasOwnProperty(i)){let n=this.properties[i];n&&(r?r=!1:e+=",",e+=`${i}=${dbt(n)}`)}}return e+=`${RSe}${hbt(this.message)}`,e}};function hbt(t){return C_(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}function dbt(t){return C_(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}var kSe=O(require("os"),1);var OSe=require("os"),I_=require("fs"),N9=function(t,e,r,i){function n(s){return s instanceof r?s:new r(function(o){o(s)})}return new(r||(r=Promise))(function(s,o){function a(l){try{u(i.next(l))}catch(f){o(f)}}function c(l){try{u(i.throw(l))}catch(f){o(f)}}function u(l){l.done?s(l.value):n(l.value).then(a,c)}u((i=i.apply(t,e||[])).next())})},{access:pbt,appendFile:mbt,writeFile:Abt}=I_.promises,DSe="GITHUB_STEP_SUMMARY";var D9=class{constructor(){this._buffer=""}filePath(){return N9(this,void 0,void 0,function*(){if(this._filePath)return this._filePath;let e=process.env[DSe];if(!e)throw new Error(`Unable to find environment variable for $${DSe}. Check if your runtime environment supports job summaries.`);try{yield pbt(e,I_.constants.R_OK|I_.constants.W_OK)}catch{throw new Error(`Unable to access summary file: '${e}'. Check if the file has correct read/write permissions.`)}return this._filePath=e,this._filePath})}wrap(e,r,i={}){let n=Object.entries(i).map(([s,o])=>` ${s}="${o}"`).join("");return r?`<${e}${n}>${r}</${e}>`:`<${e}${n}>`}write(e){return N9(this,void 0,void 0,function*(){let r=!!e?.overwrite,i=yield this.filePath();return yield(r?Abt:mbt)(i,this._buffer,{encoding:"utf8"}),this.emptyBuffer()})}clear(){return N9(this,void 0,void 0,function*(){return this.emptyBuffer().write({overwrite:!0})})}stringify(){return this._buffer}isEmptyBuffer(){return this._buffer.length===0}emptyBuffer(){return this._buffer="",this}addRaw(e,r=!1){return this._buffer+=e,r?this.addEOL():this}addEOL(){return this.addRaw(OSe.EOL)}addCodeBlock(e,r){let i=Object.assign({},r&&{lang:r}),n=this.wrap("pre",this.wrap("code",e),i);return this.addRaw(n).addEOL()}addList(e,r=!1){let i=r?"ol":"ul",n=e.map(o=>this.wrap("li",o)).join(""),s=this.wrap(i,n);return this.addRaw(s).addEOL()}addTable(e){let r=e.map(n=>{let s=n.map(o=>{if(typeof o=="string")return this.wrap("td",o);let{header:a,data:c,colspan:u,rowspan:l}=o,f=a?"th":"td",h=Object.assign(Object.assign({},u&&{colspan:u}),l&&{rowspan:l});return this.wrap(f,c,h)}).join("");return this.wrap("tr",s)}).join(""),i=this.wrap("table",r);return this.addRaw(i).addEOL()}addDetails(e,r){let i=this.wrap("details",this.wrap("summary",e)+r);return this.addRaw(i).addEOL()}addImage(e,r,i){let{width:n,height:s}=i||{},o=Object.assign(Object.assign({},n&&{width:n}),s&&{height:s}),a=this.wrap("img",null,Object.assign({src:e,alt:r},o));return this.addRaw(a).addEOL()}addHeading(e,r){let i=`h${r}`,n=["h1","h2","h3","h4","h5","h6"].includes(i)?i:"h1",s=this.wrap(n,e);return this.addRaw(s).addEOL()}addSeparator(){let e=this.wrap("hr",null);return this.addRaw(e).addEOL()}addBreak(){let e=this.wrap("br",null);return this.addRaw(e).addEOL()}addQuote(e,r){let i=Object.assign({},r&&{cite:r}),n=this.wrap("blockquote",e,i);return this.addRaw(n).addEOL()}addLink(e,r){let i=this.wrap("a",e,{href:r});return this.addRaw(i).addEOL()}},VNr=new D9;var O9=O(require("os"),1);var WNr=O9.default.platform(),JNr=O9.default.arch();var PSe;(function(t){t[t.Success=0]="Success",t[t.Failure=1]="Failure"})(PSe||(PSe={}));function P9(){return process.env.RUNNER_DEBUG==="1"}function wr(t){NSe("debug",{},t)}function k9(t){process.stdout.write(t+kSe.EOL)}var i$=O(require("crypto"),1),xs=O(require("fs"),1);var dIt=O(t$(),Line truncated
`),e=e.replace(/\r/g,`
`));let n=e.split(`
`).map(s=>s.trim());for(let s of n)!s||s.startsWith("#")||i.patterns.push(new Dx(s));return i.searchPaths.push(...d$(i.patterns)),i})}static stat(e,r,i){return b$(this,void 0,void 0,function*(){let n;if(r.followSymbolicLinks)try{n=yield Cw.promises.stat(e.path)}catch(s){if(s.code==="ENOENT"){if(r.omitBrokenSymbolicLinks){Gc(`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 n=yield Cw.promises.lstat(e.path);if(n.isDirectory()&&r.followSymbolicLinks){let s=yield Cw.promises.realpath(e.path);for(;i.length>=e.level;)i.pop();if(i.some(o=>o===s)){Gc(`Symlink cycle detected for path '${e.path}' and realpath '${s}'`);return}i.push(s)}return n})}};var YIt=function(t,e,r,i){function n(s){return s instanceof r?s:new r(function(o){o(s)})}return new(r||(r=Promise))(function(s,o){function a(l){try{u(i.next(l))}catch(f){o(f)}}function c(l){try{u(i.throw(l))}catch(f){o(f)}}function u(l){l.done?s(l.value):n(l.value).then(a,c)}u((i=i.apply(t,e||[])).next())})};function hxe(t,e){return YIt(this,void 0,void 0,function*(){return yield DP.create(t,e)})}var WP=P(require("crypto"),1),Bw=P(require("fs"),1),yy=P(require("path"),1),iRe=P(tRe(),1),nRe=P(require("util"),1);var qx;(function(t){t.Gzip="cache.tgz",t.Zstd="cache.tzst"})(qx||(qx={}));var lo;(function(t){t.Gzip="gzip",t.ZstdWithoutLong="zstd-without-long",t.Zstd="zstd"})(lo||(lo={}));var ja;(function(t){t.GNU="gnu",t.BSD="bsd"})(ja||(ja={}));var zP=2,$P=5e3,U$=5e3,q$=`${process.env.PROGRAMFILES}\\Git\\usr\\bin\\tar.exe`,rRe=`${process.env.SYSTEMDRIVE}\\Windows\\System32\\tar.exe`,Gx="cache.tar",G$="manifest.txt",uOr=10*Math.pow(1024,3);var Sw=function(t,e,r,i){function n(s){return s instanceof r?s:new r(function(o){o(s)})}return new(r||(r=Promise))(function(s,o){function a(l){try{u(i.next(l))}catch(f){o(f)}}function c(l){try{u(i.throw(l))}catch(f){o(f)}}function u(l){l.done?s(l.value):n(l.value).then(a,c)}u((i=i.apply(t,e||[])).next())})},$vt=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={},i("next"),i("throw"),i("return"),r[Symbol.asyncIterator]=function(){return this},r);function i(s){r[s]=t[s]&&function(o){return new Promise(function(a,c){o=t[s](o),n(a,c,o.done,o.value)})}}function n(s,o,a,c){Promise.resolve(c).then(function(u){s({value:u,done:a})},o)}},Wvt="1.0";function Hx(){return Sw(this,void 0,void 0,function*(){let t=process.platform==="win32",e=process.env.RUNNER_TEMP||"";if(!e){let i;t?i=process.env.USERPROFILE||"C:\\":process.platform==="darwin"?i="/Users":i="/home",e=yy.join(i,"actions","temp")}let r=yy.join(e,WP.randomUUID());return yield wd(r),r})}function uf(t){return Bw.statSync(t).size}function H$(t){return Sw(this,void 0,void 0,function*(){var e,r,i,n,s;let o=[],a=(s=process.env.GITHUB_WORKSPACE)!==null&&s!==void 0?s:process.cwd(),c=yield hxe(t.join(`
`),{implicitDescendants:!1});try{for(var u=!0,l=$vt(c.globGenerator()),f;f=yield l.next(),e=f.done,!e;u=!0){n=f.value,u=!1;let d=yy.relative(a,n).replace(new RegExp(`\\${yy.sep}`,"g"),"/");ce(`Matched: ${d}`),d===""?o.push("."):o.push(`${d}`)}}catch(h){r={error:h}}finally{try{!u&&!e&&(i=l.return)&&(yield i.call(l))}finally{if(r)throw r.error}}return o})}function jx(t){return Sw(this,void 0,void 0,function*(){return nRe.promisify(Bw.unlink)(t)})}function sRe(t){return Sw(this,arguments,void 0,function*(e,r=[]){let i="";r.push("--version"),ce(`Checking ${e} ${r.join(" ")}`);try{yield Ga(`${e}`,r,{ignoreReturnCode:!0,silent:!0,listeners:{stdout:n=>i+=n.toString(),stderr:n=>i+=n.toString()}})}catch(n){ce(n.message)}return i=i.trim(),ce(i),i})}function Vx(){return Sw(this,void 0,void 0,function*(){let t=yield sRe("zstd",["--quiet"]),e=iRe.clean(t);return ce(`zstd version: ${e}`),t===""?lo.Gzip:lo.ZstdWithoutLong})}function qm(t){return t===lo.Gzip?qx.Gzip:qx.Zstd}function oRe(){return Sw(this,void 0,void 0,function*(){return Bw.existsSync(q$)?q$:(yield sRe("tar")).toLowerCase().includes("gnu tar")?Zn("tar"):""})}function j$(t,e){if(e===void 0)throw Error(`Expected ${t} but value was undefiend`);return e}function vw(t,e,r=!1){let i=t.slice();return e&&i.push(e),process.platform==="win32"&&!r&&i.push("windows-only"),i.push(Wvt),WP.createHash("sha256").update(i.join("|")).digest("hex")}function aRe(){let t=process.env.ACTIONS_RUNTIME_TOKEN;if(!t)throw new Error("Unable to get the ACTIONS_RUNTIME_TOKEN env variable");return t}var rC=P(require("fs"),1),DDe=require("url");var lf=class extends Error{constructor(e){super(e),this.name="AbortError"}};var cRe=require("node:os"),uRe=P(require("node:util"),1),lRe=P(require("node:process"),1);function fRe(t,...e){lRe.default.stderr.write(`${uRe.default.format(t,...e)}${cRe.EOL}`)}var hRe=typeof process<"u"&&process.env&&process.env.DEBUG||void 0,pRe,V$=[],z$=[],YP=[];hRe&&$$(hRe);var mRe=Object.assign(t=>ARe(t),{enable:$$,enabled:W$,disable:Jvt,log:fRe});function $$(t){pRe=t,V$=[],z$=[];let e=t.split(",").map(r=>r.trim());for(let r of e)r.startsWith("-")?z$.push(r.substring(1)):V$.push(r);for(let r of YP)r.enabled=W$(r.namespace)}function W$(t){if(t.endsWith("*"))return!0;for(let e of z$)if(dRe(t,e))return!1;for(let e of V$)if(dRe(t,e))return!0;return!1}function dRe(t,e){if(e.indexOf("*")===-1)return t===e;let r=e;if(e.indexOf("**")!==-1){let h=[],d="";for(let m of e)m==="*"&&d==="*"||(d=m,h.push(m));r=h.join("")}let i=0,n=0,s=r.length,o=t.length,a=-1,c=-1;for(;i<o&&n<s;)if(r[n]==="*"){if(a=n,n++,n===s)return!0;for(;t[i]!==r[n];)if(i++,i===o)return!1;c=i,i++,n++;continue}else if(r[n]===t[i])n++,i++;else if(a>=0){if(n=a+1,i=c+1,i===o)return!1;for(;t[i]!==r[n];)if(i++,i===o)return!1;c=i,i++,n++;continue}else return!1;let u=i===t.length,l=n===r.length,f=n===r.length-1&&r[n]==="*";return u&&(l||f)}function Jvt(){let t=pRe||"";return $$(""),t}function ARe(t){let e=Object.assign(r,{enabled:W$(t),destroy:Yvt,log:mRe.log,namespace:t,extend:Kvt});function r(...i){e.enabled&&(i.length>0&&(i[0]=`${t} ${i[0]}`),e.log(...i))}return YP.push(e),e}function Yvt(){let t=YP.indexOf(this);return t>=0?(YP.splice(t,1),!0):!1}function Kvt(t){let e=ARe(`${this.namespace}:${t}`);return e.log=this.log,e}var xw=mRe;var J$=["verbose","info","warning","error"],gRe={verbose:400,info:300,warning:200,error:100};function yRe(t,e){e.log=(...r)=>{t.log(...r)}}function ERe(t){return J$.includes(t)}function KP(t){let e=new Set,r=typeof process<"u"&&process.env&&process.env[t.logLevelEnvVarName]||void 0,i,n=xw(t.namespace);n.log=(...l)=>{xw.log(...l)};function s(l){if(l&&!ERe(l))throw new Error(`Unknown log level '${l}'. Acceptable values: ${J$.join(",")}`);i=l;let f=[];for(let h of e)o(h)&&f.push(h.namespace);xw.enable(f.join(","))}r&&(ERe(r)?s(r):console.error(`${t.logLevelEnvVarName} set to unknown log level '${r}'; logging is not enabled. Acceptable values: ${J$.join(", ")}.`));function o(l){return!!(i&&gRe[l.level]<=gRe[i])}function a(l,f){let h=Object.assign(l.extend(f),{level:f});if(yRe(l,h),o(h)){let d=xw.disable();xw.enable(d+","+h.namespace)}return e.add(h),h}function c(){return i}function u(l){let f=n.extend(l);return yRe(n,f),{error:a(f,"error"),warning:a(f,"warning"),info:a(f,"info"),verbose:a(f,"verbose")}}return{setLogLevel:s,getLogLevel:c,createClientLogger:u,logger:n}}var bRe=KP({logLevelEnvVarName:"TYPESPEC_RUNTIME_LOG_LEVEL",namespace:"typeSpecRuntime"}),Xvt=bRe.logger;function zx(t){return bRe.createClientLogger(t)}function XP(t){return t.toLowerCase()}function*Zvt(t){for(let e of t.values())yield[e.name,e.value]}var Y$=class{_headersMap;constructor(e){if(this._headersMap=new Map,e)for(let r of Object.keys(e))this.set(r,e[r])}set(e,r){this._headersMap.set(XP(e),{name:e,value:String(r).trim()})}get(e){return this._headersMap.get(XP(e))?.value}has(e){return this._headersMap.has(XP(e))}delete(e){this._headersMap.delete(XP(e))}toJSON(e={}){let r={};if(e.preserveCase)for(let i of this._headersMap. Line truncated
${rxt.sanitize({...this,request:{...this.request,agent:i},response:this.response})}`,enumerable:!1}),Object.setPrototypeOf(this,t.prototype)}};function tk(t){return t instanceof fo?!0:by(t)&&t.name==="RestError"}function ta(t,e){return Buffer.from(t,e)}var rk=P(require("node:http"),1),ik=P(require("node:https"),1),eW=P(require("node:zlib"),1),BRe=require("node:stream");var Vc=zx("ts-http-runtime");var ixt={};function $x(t){return t&&typeof t.pipe=="function"}function SRe(t){return t.readable===!1?Promise.resolve():new Promise(e=>{let r=()=>{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)})}function vRe(t){return t&&typeof t.byteLength=="number"}var nk=class extends BRe.Transform{loadedBytes=0;progressCallback;_transform(e,r,i){this.push(e),this.loadedBytes+=e.length;try{this.progressCallback({loadedBytes:this.loadedBytes}),i()}catch(n){i(n)}}constructor(e){super(),this.progressCallback=e}},tW=class{cachedHttpAgent;cachedHttpsAgents=new WeakMap;async sendRequest(e){let r=new AbortController,i;if(e.abortSignal){if(e.abortSignal.aborted)throw new lf("The operation was aborted. Request has already been canceled.");i=u=>{u.type==="abort"&&r.abort()},e.abortSignal.addEventListener("abort",i)}let n;e.timeout>0&&(n=setTimeout(()=>{let u=new ol;Vc.info(`request to '${u.sanitizeUrl(e.url)}' timed out. canceling...`),r.abort()},e.timeout));let s=e.headers.get("Accept-Encoding"),o=s?.includes("gzip")||s?.includes("deflate"),a=typeof e.body=="function"?e.body():e.body;if(a&&!e.headers.has("Content-Length")){let u=axt(a);u!==null&&e.headers.set("Content-Length",u)}let c;try{if(a&&e.onUploadProgress){let m=e.onUploadProgress,A=new nk(m);A.on("error",y=>{Vc.error("Error in upload progress",y)}),$x(a)?a.pipe(A):A.end(a),a=A}let u=await this.makeRequest(e,r,a);n!==void 0&&clearTimeout(n);let l=nxt(u),h={status:u.statusCode??0,headers:l,request:e};if(e.method==="HEAD")return u.resume(),h;c=o?sxt(u,l):u;let d=e.onDownloadProgress;if(d){let m=new nk(d);m.on("error",A=>{Vc.error("Error in download progress",A)}),c.pipe(m),c=m}return e.streamResponseStatusCodes?.has(Number.POSITIVE_INFINITY)||e.streamResponseStatusCodes?.has(h.status)?h.readableStreamBody=c:h.bodyAsText=await oxt(c),h}finally{if(e.abortSignal&&i){let u=Promise.resolve();$x(a)&&(u=SRe(a));let l=Promise.resolve();$x(c)&&(l=SRe(c)),Promise.all([u,l]).then(()=>{i&&e.abortSignal?.removeEventListener("abort",i)}).catch(f=>{Vc.warning("Error when cleaning up abortListener on httpRequest",f)})}}}makeRequest(e,r,i){let n=new URL(e.url),s=n.protocol!=="https:";if(s&&!e.allowInsecureConnection)throw new Error(`Cannot connect to ${e.url} while allowInsecureConnection is false.`);let a={agent:e.agent??this.getOrCreateAgent(e,s),hostname:n.hostname,path:`${n.pathname}${n.search}`,port:n.port,method:e.method,headers:e.headers.toJSON({preserveCase:!0}),...e.requestOverrides};return new Promise((c,u)=>{let l=s?rk.default.request(a,c):ik.default.request(a,c);l.once("error",f=>{u(new fo(f.message,{code:f.code??fo.REQUEST_SEND_ERROR,request:e}))}),r.signal.addEventListener("abort",()=>{let f=new lf("The operation was aborted. Rejecting from abort signal callback while making request.");l.destroy(f),u(f)}),i&&$x(i)?i.pipe(l):i?typeof i=="string"||Buffer.isBuffer(i)?l.end(i):vRe(i)?l.end(ArrayBuffer.isView(i)?Buffer.from(i.buffer):Buffer.from(i)):(Vc.error("Unrecognized body type",i),u(new fo("Unrecognized body type"))):l.end()})}getOrCreateAgent(e,r){let i=e.disableKeepAlive;if(r)return i?rk.default.globalAgent:(this.cachedHttpAgent||(this.cachedHttpAgent=new rk.default.Agent({keepAlive:!0})),this.cachedHttpAgent);{if(i&&!e.tlsSettings)return ik.default.globalAgent;let n=e.tlsSettings??ixt,s=this.cachedHttpsAgents.get(n);return s&&s.options.keepAlive===!i||(Vc.info("No cached TLS Agent exist, creating a new Agent"),s=new ik.default.Agent({keepAlive:!i,...n}),this.cachedHttpsAgents.set(n,s)),s}}};function nxt(t){let e=Va();for(let r of Object.keys(t.headers)){let i=t.headers[r];Array.isArray(i)?i.length>0&&e.set(r,i[0]):i&&e.set(r,i)}return e}function sxt(t,e){let r=e.get("Content-Encoding");if(r==="gzip"){let i=eW.default.createGunzip();return t.pipe(i),i}else if(r==="deflate"){let i=eW.default.createInflate();return t.pipe(i),i}return t}function oxt(t){return new Promise((e,r)=>{let i=[];t.on("data",n=>{Buffer.isBuffer(n)?i.push(n):i.push(Buffer.from(n))}),t.on("end",()=>{e(Buffer.concat(i).toString("utf8"))}),t.on("error",n=>{n&&n?.name==="AbortError"?r(n):r(new fo(`Error reading response as text: ${n.message}`,{code:fo.PARSE_ERROR}))})})}function axt(t){return t?Buffer.isBuffer(t)?t.length:$x(t)?null:vRe(t)?t.byteLength:typeof t=="string"?Buffer.from(t).length:null:0}function xRe(){return new tW}function sk(){return xRe()}var rW="logPolicy";function ok(t={}){let e=t.logger??Vc.info,r=new ol({additionalAllowedHeaderNames:t.additionalAllowedHeaderNames,additionalAllowedQueryParameters:t.additional Line truncated
`;return e}function M_t(t){return t instanceof Uint8Array?t.byteLength:xk(t)?t.size===-1?void 0:t.size:void 0}function U_t(t){let e=0;for(let r of t){let i=M_t(r);if(i===void 0)return;e+=i}return e}async function q_t(t,e,r){let i=[ta(`--${r}`,"utf-8"),...e.flatMap(s=>[ta(`\r
`,"utf-8"),ta(F_t(s.headers),"utf-8"),ta(`\r
`,"utf-8"),s.body,ta(`\r
--${r}`,"utf-8")]),ta(`--\r
`).map(s=>s.trim());for(let s of n)!s||s.startsWith("#")||i.patterns.push(new U_(s));return i.searchPaths.push(...y$(i.patterns)),i})}static stat(e,r,i){return B$(this,void 0,void 0,function*(){let n;if(r.followSymbolicLinks)try{n=yield Rw.promises.stat(e.path)}catch(s){if(s.code==="ENOENT"){if(r.omitBrokenSymbolicLinks){Jc(`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 n=yield Rw.promises.lstat(e.path);if(n.isDirectory()&&r.followSymbolicLinks){let s=yield Rw.promises.realpath(e.path);for(;i.length>=e.level;)i.pop();if(i.some(o=>o===s)){Jc(`Symlink cycle detected for path '${e.path}' and realpath '${s}'`);return}i.push(s)}return n})}};var uSt=function(t,e,r,i){function n(s){return s instanceof r?s:new r(function(o){o(s)})}return new(r||(r=Promise))(function(s,o){function a(l){try{u(i.next(l))}catch(f){o(f)}}function c(l){try{u(i.throw(l))}catch(f){o(f)}}function u(l){l.done?s(l.value):n(l.value).then(a,c)}u((i=i.apply(t,e||[])).next())})};function y_e(t,e){return uSt(this,void 0,void 0,function*(){return yield UP.create(t,e)})}var rk=O(require("crypto"),1),Dw=O(require("fs"),1),_y=O(require("path"),1),uRe=O(aRe(),1),lRe=O(require("util"),1);var J_;(function(t){t.Gzip="cache.tgz",t.Zstd="cache.tzst"})(J_||(J_={}));var mo;(function(t){t.Gzip="gzip",t.ZstdWithoutLong="zstd-without-long",t.Zstd="zstd"})(mo||(mo={}));var Ka;(function(t){t.GNU="gnu",t.BSD="bsd"})(Ka||(Ka={}));var ek=2,tk=5e3,V$=5e3,z$=`${process.env.PROGRAMFILES}\\Git\\usr\\bin\\tar.exe`,cRe=`${process.env.SYSTEMDRIVE}\\Windows\\System32\\tar.exe`,Y_="cache.tar",$$="manifest.txt",_Or=10*Math.pow(1024,3);var Nw=function(t,e,r,i){function n(s){return s instanceof r?s:new r(function(o){o(s)})}return new(r||(r=Promise))(function(s,o){function a(l){try{u(i.next(l))}catch(f){o(f)}}function c(l){try{u(i.throw(l))}catch(f){o(f)}}function u(l){l.done?s(l.value):n(l.value).then(a,c)}u((i=i.apply(t,e||[])).next())})},o_t=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={},i("next"),i("throw"),i("return"),r[Symbol.asyncIterator]=function(){return this},r);function i(s){r[s]=t[s]&&function(o){return new Promise(function(a,c){o=t[s](o),n(a,c,o.done,o.value)})}}function n(s,o,a,c){Promise.resolve(c).then(function(u){s({value:u,done:a})},o)}},a_t="1.0";function K_(){return Nw(this,void 0,void 0,function*(){let t=process.platform==="win32",e=process.env.RUNNER_TEMP||"";if(!e){let i;t?i=process.env.USERPROFILE||"C:\\":process.platform==="darwin"?i="/Users":i="/home",e=_y.join(i,"actions","temp")}let r=_y.join(e,rk.randomUUID());return yield Rd(r),r})}function Af(t){return Dw.statSync(t).size}function W$(t){return Nw(this,void 0,void 0,function*(){var e,r,i,n,s;let o=[],a=(s=process.env.GITHUB_WORKSPACE)!==null&&s!==void 0?s:process.cwd(),c=yield y_e(t.join(`
`),{implicitDescendants:!1});try{for(var u=!0,l=o_t(c.globGenerator()),f;f=yield l.next(),e=f.done,!e;u=!0){n=f.value,u=!1;let d=_y.relative(a,n).replace(new RegExp(`\\${_y.sep}`,"g"),"/");ce(`Matched: ${d}`),d===""?o.push("."):o.push(`${d}`)}}catch(h){r={error:h}}finally{try{!u&&!e&&(i=l.return)&&(yield i.call(l))}finally{if(r)throw r.error}}return o})}function X_(t){return Nw(this,void 0,void 0,function*(){return lRe.promisify(Dw.unlink)(t)})}function fRe(t){return Nw(this,arguments,void 0,function*(e,r=[]){let i="";r.push("--version"),ce(`Checking ${e} ${r.join(" ")}`);try{yield Ja(`${e}`,r,{ignoreReturnCode:!0,silent:!0,listeners:{stdout:n=>i+=n.toString(),stderr:n=>i+=n.toString()}})}catch(n){ce(n.message)}return i=i.trim(),ce(i),i})}function Z_(){return Nw(this,void 0,void 0,function*(){let t=yield fRe("zstd",["--quiet"]),e=uRe.clean(t);return ce(`zstd version: ${e}`),t===""?mo.Gzip:mo.ZstdWithoutLong})}function Vm(t){return t===mo.Gzip?J_.Gzip:J_.Zstd}function hRe(){return Nw(this,void 0,void 0,function*(){return Dw.existsSync(z$)?z$:(yield fRe("tar")).toLowerCase().includes("gnu tar")?is("tar"):""})}function J$(t,e){if(e===void 0)throw Error(`Expected ${t} but value was undefiend`);return e}function Ow(t,e,r=!1){let i=t.slice();return e&&i.push(e),process.platform==="win32"&&!r&&i.push("windows-only"),i.push(a_t),rk.createHash("sha256").update(i.join("|")).digest("hex")}function dRe(){let t=process.env.ACTIONS_RUNTIME_TOKEN;if(!t)throw new Error("Unable to get the ACTIONS_RUNTIME_TOKEN env variable");return t}var uC=O(require("fs"),1),MDe=require("url");var gf=class extends Error{constructor(e){super(e),this.name="AbortError"}};var pRe=require("node:os"),mRe=O(require("node:util"),1),ARe=O(require("node:process"),1);function gRe(t,...e){ARe.default.stderr.write(`${mRe.default.format(t,...e)}${pRe.EOL}`)}var yRe=typeof process<"u"&&process.env&&process.env.DEBUG||void 0,bRe,Y$=[],K$=[],nk=[];yRe&&X$(yRe);var wRe=Object.assign(t=>CRe(t),{enable:X$,enabled:Z$,disable:c_t,log:gRe});function X$(t){bRe=t,Y$=[],K$=[];let e=t.split(",").map(r=>r.trim());for(let r of e)r.startsWith("-")?K$.push(r.substring(1)):Y$.push(r);for(let r of nk)r.enabled=Z$(r.namespace)}function Z$(t){if(t.endsWith("*"))return!0;for(let e of K$)if(ERe(t,e))return!1;for(let e of Y$)if(ERe(t,e))return!0;return!1}function ERe(t,e){if(e.indexOf("*")===-1)return t===e;let r=e;if(e.indexOf("**")!==-1){let h=[],d="";for(let m of e)m==="*"&&d==="*"||(d=m,h.push(m));r=h.join("")}let i=0,n=0,s=r.length,o=t.length,a=-1,c=-1;for(;i<o&&n<s;)if(r[n]==="*"){if(a=n,n++,n===s)return!0;for(;t[i]!==r[n];)if(i++,i===o)return!1;c=i,i++,n++;continue}else if(r[n]===t[i])n++,i++;else if(a>=0){if(n=a+1,i=c+1,i===o)return!1;for(;t[i]!==r[n];)if(i++,i===o)return!1;c=i,i++,n++;continue}else return!1;let u=i===t.length,l=n===r.length,f=n===r.length-1&&r[n]==="*";return u&&(l||f)}function c_t(){let t=bRe||"";return X$(""),t}function CRe(t){let e=Object.assign(r,{enabled:Z$(t),destroy:u_t,log:wRe.log,namespace:t,extend:l_t});function r(...i){e.enabled&&(i.length>0&&(i[0]=`${t} ${i[0]}`),e.log(...i))}return nk.push(e),e}function u_t(){let t=nk.indexOf(this);return t>=0?(nk.splice(t,1),!0):!1}function l_t(t){let e=CRe(`${this.namespace}:${t}`);return e.log=this.log,e}var Pw=wRe;var eW=["verbose","info","warning","error"],IRe={verbose:400,info:300,warning:200,error:100};function SRe(t,e){e.log=(...r)=>{t.log(...r)}}function BRe(t){return eW.includes(t)}function sk(t){let e=new Set,r=typeof process<"u"&&process.env&&process.env[t.logLevelEnvVarName]||void 0,i,n=Pw(t.namespace);n.log=(...l)=>{Pw.log(...l)};function s(l){if(l&&!BRe(l))throw new Error(`Unknown log level '${l}'. Acceptable values: ${eW.join(",")}`);i=l;let f=[];for(let h of e)o(h)&&f.push(h.namespace);Pw.enable(f.join(","))}r&&(BRe(r)?s(r):console.error(`${t.logLevelEnvVarName} set to unknown log level '${r}'; logging is not enabled. Acceptable values: ${eW.join(", ")}.`));function o(l){return!!(i&&IRe[l.level]<=IRe[i])}function a(l,f){let h=Object.assign(l.extend(f),{level:f});if(SRe(l,h),o(h)){let d=Pw.disable();Pw.enable(d+","+h.namespace)}return e.add(h),h}function c(){return i}function u(l){let f=n.extend(l);return SRe(n,f),{error:a(f,"error"),warning:a(f,"warning"),info:a(f,"info"),verbose:a(f,"verbose")}}return{setLogLevel:s,getLogLevel:c,createClientLogger:u,logger:n}}var vRe=sk({logLevelEnvVarName:"TYPESPEC_RUNTIME_LOG_LEVEL",namespace:"typeSpecRuntime"}),f_t=vRe.logger;function ex(t){return vRe.createClientLogger(t)}function ok(t){return t.toLowerCase()}function*h_t(t){for(let e of t.values())yield[e.name,e.value]}var tW=class{_headersMap;constructor(e){if(this._headersMap=new Map,e)for(let r of Object.keys(e))this.set(r,e[r])}set(e,r){this._headersMap.set(ok(e),{name:e,value:String(r).trim()})}get(e){return this._headersMap.get(ok(e))?.value}has(e){return this._headersMap.has(ok(e))}delete(e){this._headersMap.delete(ok(e))}toJSON(e={}){let r={};if(e.preserveCase)for(let i of this._headersMap. Line truncated
${m_t.sanitize({...this,request:{...this.request,agent:i},response:this.response})}`,enumerable:!1}),Object.setPrototypeOf(this,t.prototype)}};function uk(t){return t instanceof Ao?!0:Ry(t)&&t.name==="RestError"}function oa(t,e){return Buffer.from(t,e)}var lk=O(require("node:http"),1),fk=O(require("node:https"),1),sW=O(require("node:zlib"),1),NRe=require("node:stream");var Xc=ex("ts-http-runtime");var A_t={};function tx(t){return t&&typeof t.pipe=="function"}function TRe(t){return t.readable===!1?Promise.resolve():new Promise(e=>{let r=()=>{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)})}function DRe(t){return t&&typeof t.byteLength=="number"}var hk=class extends NRe.Transform{loadedBytes=0;progressCallback;_transform(e,r,i){this.push(e),this.loadedBytes+=e.length;try{this.progressCallback({loadedBytes:this.loadedBytes}),i()}catch(n){i(n)}}constructor(e){super(),this.progressCallback=e}},oW=class{cachedHttpAgent;cachedHttpsAgents=new WeakMap;async sendRequest(e){let r=new AbortController,i;if(e.abortSignal){if(e.abortSignal.aborted)throw new gf("The operation was aborted. Request has already been canceled.");i=u=>{u.type==="abort"&&r.abort()},e.abortSignal.addEventListener("abort",i)}let n;e.timeout>0&&(n=setTimeout(()=>{let u=new dl;Xc.info(`request to '${u.sanitizeUrl(e.url)}' timed out. canceling...`),r.abort()},e.timeout));let s=e.headers.get("Accept-Encoding"),o=s?.includes("gzip")||s?.includes("deflate"),a=typeof e.body=="function"?e.body():e.body;if(a&&!e.headers.has("Content-Length")){let u=b_t(a);u!==null&&e.headers.set("Content-Length",u)}let c;try{if(a&&e.onUploadProgress){let m=e.onUploadProgress,A=new hk(m);A.on("error",y=>{Xc.error("Error in upload progress",y)}),tx(a)?a.pipe(A):A.end(a),a=A}let u=await this.makeRequest(e,r,a);n!==void 0&&clearTimeout(n);let l=g_t(u),h={status:u.statusCode??0,headers:l,request:e};if(e.method==="HEAD")return u.resume(),h;c=o?y_t(u,l):u;let d=e.onDownloadProgress;if(d){let m=new hk(d);m.on("error",A=>{Xc.error("Error in download progress",A)}),c.pipe(m),c=m}return e.streamResponseStatusCodes?.has(Number.POSITIVE_INFINITY)||e.streamResponseStatusCodes?.has(h.status)?h.readableStreamBody=c:h.bodyAsText=await E_t(c),h}finally{if(e.abortSignal&&i){let u=Promise.resolve();tx(a)&&(u=TRe(a));let l=Promise.resolve();tx(c)&&(l=TRe(c)),Promise.all([u,l]).then(()=>{i&&e.abortSignal?.removeEventListener("abort",i)}).catch(f=>{Xc.warning("Error when cleaning up abortListener on httpRequest",f)})}}}makeRequest(e,r,i){let n=new URL(e.url),s=n.protocol!=="https:";if(s&&!e.allowInsecureConnection)throw new Error(`Cannot connect to ${e.url} while allowInsecureConnection is false.`);let a={agent:e.agent??this.getOrCreateAgent(e,s),hostname:n.hostname,path:`${n.pathname}${n.search}`,port:n.port,method:e.method,headers:e.headers.toJSON({preserveCase:!0}),...e.requestOverrides};return new Promise((c,u)=>{let l=s?lk.default.request(a,c):fk.default.request(a,c);l.once("error",f=>{u(new Ao(f.message,{code:f.code??Ao.REQUEST_SEND_ERROR,request:e}))}),r.signal.addEventListener("abort",()=>{let f=new gf("The operation was aborted. Rejecting from abort signal callback while making request.");l.destroy(f),u(f)}),i&&tx(i)?i.pipe(l):i?typeof i=="string"||Buffer.isBuffer(i)?l.end(i):DRe(i)?l.end(ArrayBuffer.isView(i)?Buffer.from(i.buffer):Buffer.from(i)):(Xc.error("Unrecognized body type",i),u(new Ao("Unrecognized body type"))):l.end()})}getOrCreateAgent(e,r){let i=e.disableKeepAlive;if(r)return i?lk.default.globalAgent:(this.cachedHttpAgent||(this.cachedHttpAgent=new lk.default.Agent({keepAlive:!0})),this.cachedHttpAgent);{if(i&&!e.tlsSettings)return fk.default.globalAgent;let n=e.tlsSettings??A_t,s=this.cachedHttpsAgents.get(n);return s&&s.options.keepAlive===!i||(Xc.info("No cached TLS Agent exist, creating a new Agent"),s=new fk.default.Agent({keepAlive:!i,...n}),this.cachedHttpsAgents.set(n,s)),s}}};function g_t(t){let e=Xa();for(let r of Object.keys(t.headers)){let i=t.headers[r];Array.isArray(i)?i.length>0&&e.set(r,i[0]):i&&e.set(r,i)}return e}function y_t(t,e){let r=e.get("Content-Encoding");if(r==="gzip"){let i=sW.default.createGunzip();return t.pipe(i),i}else if(r==="deflate"){let i=sW.default.createInflate();return t.pipe(i),i}return t}function E_t(t){return new Promise((e,r)=>{let i=[];t.on("data",n=>{Buffer.isBuffer(n)?i.push(n):i.push(Buffer.from(n))}),t.on("end",()=>{e(Buffer.concat(i).toString("utf8"))}),t.on("error",n=>{n&&n?.name==="AbortError"?r(n):r(new Ao(`Error reading response as text: ${n.message}`,{code:Ao.PARSE_ERROR}))})})}function b_t(t){return t?Buffer.isBuffer(t)?t.length:tx(t)?null:DRe(t)?t.byteLength:typeof t=="string"?Buffer.from(t).length:null:0}function ORe(){return new oW}function dk(){return ORe()}var aW="logPolicy";function pk(t={}){let e=t.logger??Xc.info,r=new dl({additionalAllowedHeaderNames:t.additionalAllowedHeaderNames,additionalAllowedQueryParameters:t.additional Line truncated
`;return e}function Xxt(t){return t instanceof Uint8Array?t.byteLength:kk(t)?t.size===-1?void 0:t.size:void 0}function Zxt(t){let e=0;for(let r of t){let i=Xxt(r);if(i===void 0)return;e+=i}return e}async function eRt(t,e,r){let i=[oa(`--${r}`,"utf-8"),...e.flatMap(s=>[oa(`\r
`,"utf-8"),oa(Kxt(s.headers),"utf-8"),oa(`\r
`,"utf-8"),s.body,oa(`\r
--${r}`,"utf-8")]),oa(`--\r
\r
`,"utf-8")],n=U_t(i);n&&t.headers.set("Content-Length",n),t.body=await _Te(i)}var Kx="multipartPolicy",G_t=70,H_t=new Set("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'()+,-./:=?");function j_t(t){if(t.length>G_t)throw new Error(`Multipart boundary "${t}" exceeds maximum length of 70 characters`);if(Array.from(t).some(e=>!H_t.has(e)))throw new Error(`Multipart boundary "${t}" contains invalid characters`)}function Rk(){return{name:Kx,async sendRequest(t,e){if(!t.multipartBody)return e(t);if(t.body)throw new Error("multipartBody and regular body cannot be set at the same time");let r=t.multipartBody.boundary,i=t.headers.get("Content-Type")??"multipart/mixed",n=i.match(/^(multipart\/[^ ;]+)(?:; *boundary=(.+))?$/);if(!n)throw new Error(`Got multipart request body, but content-type header was not multipart: ${i}`);let[,s,o]=n;if(o&&r&&o!==r)throw new Error(`Multipart boundary was specified as ${o} in the header, but got ${r} in the request body`);return r??=o,r?j_t(r):r=L_t(),t.headers.set("Content-Type",`${s}; boundary=${r}`),await q_t(t,t.multipartBody.parts,r),t.multipartBody=void 0,e(t)}}}function Tk(){return ek()}var RTe=KP({logLevelEnvVarName:"AZURE_LOG_LEVEL",namespace:"azure"}),zQr=RTe.logger;function df(t){return RTe.createClientLogger(t)}var pf=df("core-rest-pipeline");function wW(t={}){return ok({logger:pf.info,...t})}var CW=ak;function IW(t={}){return ck(t)}var Nk=P(require("node:os"),1),Dk=P(require("node:process"),1);function TTe(){return"User-Agent"}async function NTe(t){if(Dk.default&&Dk.default.versions){let e=`${Nk.default.type()} ${Nk.default.release()}; ${Nk.default.arch()}`,r=Dk.default.versions;r.bun?t.set("Bun",`${r.bun} (${e})`):r.deno?t.set("Deno",`${r.deno} (${e})`):r.node&&t.set("Node",`${r.node} (${e})`)}}var Ok="1.22.2";function X_t(t){let e=[];for(let[r,i]of t){let n=i?`${r}/${i}`:r;e.push(n)}return e.join(" ")}function DTe(){return TTe()}async function Pk(t){let e=new Map;e.set("core-rest-pipeline",Ok),await NTe(e);let r=X_t(e);return t?`${t} ${r}`:r}var OTe=DTe(),PTe="userAgentPolicy";function SW(t={}){let e=Pk(t.userAgentPrefix);return{name:PTe,async sendRequest(r,i){return r.headers.has(OTe)||r.headers.set(OTe,await e),i(r)}}}var Ja=class extends Error{constructor(e){super(e),this.name="AbortError"}};function BW(t,e){let{cleanupBeforeAbort:r,abortSignal:i,abortErrorMsg:n}=e??{};return new Promise((s,o)=>{function a(){o(new Ja(n??"The operation was aborted."))}function c(){i?.removeEventListener("abort",u)}function u(){r?.(),c(),a()}if(i?.aborted)return a();try{t(l=>{c(),s(l)},l=>{c(),o(l)})}catch(l){o(l)}i?.addEventListener("abort",u)})}var iRt="The delay was aborted.";function Xx(t,e){let r,{abortSignal:i,abortErrorMsg:n}=e??{};return BW(s=>{r=setTimeout(s,t)},{cleanupBeforeAbort:()=>clearTimeout(r),abortSignal:i,abortErrorMsg:n??iRt})}function Hm(t){if(by(t))return t.message;{let e;try{typeof t=="object"&&t?e=JSON.stringify(t):e=String(t)}catch{e="[unable to stringify input]"}return`Unknown error ${e}`}}function kTe(t){return by(t)}function Pw(){return Ey()}var Xt=Iy;var QTe=Symbol("rawContent");function xW(t){return typeof t[QTe]=="function"}function LTe(t){return xW(t)?t[QTe]():t}var kk=Kx;function _W(){let t=Rk();return{name:kk,sendRequest:async(e,r)=>{if(e.multipartBody)for(let i of e.multipartBody.parts)xW(i.body)&&(i.body=LTe(i.body));return t.sendRequest(e,r)}}}var RW=uk;function TW(){return lk()}function NW(t={}){return dk(t)}function DW(){return pk()}function jm(t){return AW(t)}function OW(t,e){return Sk(t,e)}var FTe="setClientRequestIdPolicy";function PW(t="x-ms-client-request-id"){return{name:FTe,async sendRequest(e,r){return e.headers.has(t)||e.headers.set(t,e.requestId),r(e)}}}function kW(t){return Bk(t)}function QW(t){return vk(t)}var kw={span:Symbol.for("@azure/core-tracing span"),namespace:Symbol.for("@azure/core-tracing namespace")};function MTe(t={}){let e=new LW(t.parentContext);return t.span&&(e=e.setValue(kw.span,t.span)),t.namespace&&(e=e.setValue(kw.namespace,t.namespace)),e}var LW=class t{_contextMap;constructor(e){this._contextMap=e instanceof t?new Map(e._contextMap):new Map}setValue(e,r){let i=new t(this);return i._contextMap.set(e,r),i}getValue(e){return this._contextMap.get(e)}deleteValue(e){let r=new t(this);return r._contextMap.delete(e),r}};var qTe=P(UTe(),1),Lk=qTe.state;function nRt(){return{end:()=>{},isRecording:()=>!1,recordException:()=>{},setAttribute:()=>{},setStatus:()=>{},addEvent:()=>{}}}function sRt(){return{createRequestHeaders:()=>({}),parseTraceparentHeader:()=>{},startSpan:(t,e)=>({span:nRt(),tracingContext:MTe({parentContext:e.tracingContext})}),withContext(t,e,...r){return e(...r)}}}function Zx(){return Lk.instrumenterImplementation||(Lk.instrumenterImplementation=sRt()),Lk.instrumenterImplementation}function e_(t){let{namespace:e,packageName:r,packageVersion:i}=t;function n(u,l,f){let h=Zx().startSpan(u,{...f,packageName:r,packageVersion:i,tracingContext:l?.tracingOptions?.tracingContext}),d=h.tracingConte Line truncated
`&&t[s]!=="\r";s++)c+=t[s];if(c=c.trim(),c[c.length-1]==="/"&&(c=c.substring(0,c.length-1),s--),!xTt(c)){let f;return c.trim().length===0?f="Invalid space after '<'.":f="Tag '"+c+"' is an invalid name.",Bi("InvalidTag",f,ho(t,s))}let u=CTt(t,s);if(u===!1)return Bi("InvalidAttr","Attributes for '"+c+"' have open quote.",ho(t,s));let l=u.value;if(s=u.index,l[l.length-1]==="/"){let f=s-l.length;l=l.substring(0,l.length-1);let h=CNe(l,e);if(h===!0)i=!0;else return Bi(h.err.code,h.err.msg,ho(t,f+h.err.line))}else if(a)if(u.tagClosed){if(l.trim().length>0)return Bi("InvalidTag","Closing tag '"+c+"' can't have attributes or invalid starting.",ho(t,o));if(r.length===0)return Bi("InvalidTag","Closing tag '"+c+"' has not been opened.",ho(t,o));{let f=r.pop();if(c!==f.tagName){let h=ho(t,f.tagStartPos);return Bi("InvalidTag","Expected closing tag '"+f.tagName+"' (opened in line "+h.line+", col "+h.col+") instead of closing tag '"+c+"'.",ho(t,o))}r.length==0&&(n=!0)}}else return Bi("InvalidTag","Closing tag '"+c+"' doesn't have proper closing.",ho(t,s));else{let f=CNe(l,e);if(f!==!0)return Bi(f.err.code,f.err.msg,ho(t,s-l.length+f.err.line));if(n===!0)return Bi("InvalidXml","Multiple possible root nodes found.",ho(t,s));e.unpairedTags.indexOf(c)!==-1||r.push({tagName:c,tagStartPos:o}),i=!0}for(s++;s<t.length;s++)if(t[s]==="<")if(t[s+1]==="!"){s++,s=wNe(t,s);continue}else if(t[s+1]==="?"){if(s=bNe(t,++s),s.err)return s}else break;else if(t[s]==="&"){let f=BTt(t,s);if(f==-1)return Bi("InvalidChar","char '&' is not expected.",ho(t,s));s=f}else if(n===!0&&!ENe(t[s]))return Bi("InvalidXml","Extra text at the end",ho(t,s));t[s]==="<"&&s--}}else{if(ENe(t[s]))continue;return Bi("InvalidChar","char '"+t[s]+"' is not expected.",ho(t,s))}if(i){if(r.length==1)return Bi("InvalidTag","Unclosed tag '"+r[0].tagName+"'.",ho(t,r[0].tagStartPos));if(r.length>0)return Bi("InvalidXml","Invalid '"+JSON.stringify(r.map(s=>s.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}else return Bi("InvalidXml","Start tag expected.",1);return!0}function ENe(t){return t===" "||t===" "||t===`
`||t==="\r"}function bNe(t,e){let r=e;for(;e<t.length;e++)if(t[e]=="?"||t[e]==" "){let i=t.substr(r,e-r);if(e>5&&i==="xml")return Bi("InvalidXml","XML declaration allowed only at the start of the document.",ho(t,e));if(t[e]=="?"&&t[e+1]==">"){e++;break}else continue}return e}function wNe(t,e){if(t.length>e+5&&t[e+1]==="-"&&t[e+2]==="-"){for(e+=3;e<t.length;e++)if(t[e]==="-"&&t[e+1]==="-"&&t[e+2]===">"){e+=2;break}}else if(t.length>e+8&&t[e+1]==="D"&&t[e+2]==="O"&&t[e+3]==="C"&&t[e+4]==="T"&&t[e+5]==="Y"&&t[e+6]==="P"&&t[e+7]==="E"){let r=1;for(e+=8;e<t.length;e++)if(t[e]==="<")r++;else if(t[e]===">"&&(r--,r===0))break}else if(t.length>e+9&&t[e+1]==="["&&t[e+2]==="C"&&t[e+3]==="D"&&t[e+4]==="A"&&t[e+5]==="T"&&t[e+6]==="A"&&t[e+7]==="["){for(e+=8;e<t.length;e++)if(t[e]==="]"&&t[e+1]==="]"&&t[e+2]===">"){e+=2;break}}return e}var bTt='"',wTt="'";function CTt(t,e){let r="",i="",n=!1;for(;e<t.length;e++){if(t[e]===bTt||t[e]===wTt)i===""?i=t[e]:i!==t[e]||(i="");else if(t[e]===">"&&i===""){n=!0;break}r+=t[e]}return i!==""?!1:{value:r,index:e,tagClosed:n}}var ITt=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function CNe(t,e){let r=zk(t,ITt),i={};for(let n=0;n<r.length;n++){if(r[n][1].length===0)return Bi("InvalidAttr","Attribute '"+r[n][2]+"' has no space in starting.",l_(r[n]));if(r[n][3]!==void 0&&r[n][4]===void 0)return Bi("InvalidAttr","Attribute '"+r[n][2]+"' is without value.",l_(r[n]));if(r[n][3]===void 0&&!e.allowBooleanAttributes)return Bi("InvalidAttr","boolean attribute '"+r[n][2]+"' is not allowed.",l_(r[n]));let s=r[n][2];if(!vTt(s))return Bi("InvalidAttr","Attribute '"+s+"' is an invalid name.",l_(r[n]));if(!Object.prototype.hasOwnProperty.call(i,s))i[s]=1;else return Bi("InvalidAttr","Attribute '"+s+"' is repeated.",l_(r[n]))}return!0}function STt(t,e){let r=/\d/;for(t[e]==="x"&&(e++,r=/[\da-fA-F]/);e<t.length;e++){if(t[e]===";")return e;if(!t[e].match(r))break}return-1}function BTt(t,e){if(e++,t[e]===";")return-1;if(t[e]==="#")return e++,STt(t,e);let r=0;for(;e<t.length;e++,r++)if(!(t[e].match(/\w/)&&r<20)){if(t[e]===";")break;return-1}return e}function Bi(t,e,r){return{err:{code:t,msg:e,line:r.line||r,col:r.col}}}function vTt(t){return tJ(t)}function xTt(t){return tJ(t)}function ho(t,e){let r=t.substring(0,e).split(/\r?\n/);return{line:r.length,col:r[r.length-1].length+1}}function l_(t){return t.startIndex+t[1].length}var INe={amp:"&",AMP:"&",lt:"<",LT:"<",gt:">",GT:">",quot:'"',QUOT:'"',apos:"'",lsquo:"\u2018",rsquo:"\u2019",ldquo:"\u201C",rdquo:"\u201D",lsquor:"\u201A",rsquor:"\u2019",ldquor:"\u201E",bdquo:"\u201E",comma:",",period:".",colon:":",semi:";",excl:"!",quest:"?",num:"#",dollar:"$",percent:"%",amp:"&",ast:"*",commat:"@",lowbar:"_",verbar:"|",vert:"|",sol:"/",bsol:"\\",lbrace:"{",rbrace:"}",lbrack:"[",rbrack:"]",lpar:"(",rpar:")",nbsp:"\xA0",iexcl:"\xA1",cent:"\xA2",pound:"\xA3",curren:"\xA4",yen:"\xA5",brvbar:"\xA6",sect:"\xA7",uml:"\xA8",copy:"\xA9",COPY:"\xA9",ordf:"\xAA",laquo:"\xAB",not:"\xAC",shy:"\xAD",reg:"\xAE",REG:"\xAE",macr:"\xAF",deg:"\xB0",plusmn:"\xB1",sup2:"\xB2",sup3:"\xB3",acute:"\xB4",micro:"\xB5",para:"\xB6",middot:"\xB7",cedil:"\xB8",sup1:"\xB9",ordm:"\xBA",raquo:"\xBB",frac14:"\xBC",frac12:"\xBD",half:"\xBD",frac34:"\xBE",iquest:"\xBF",times:"\xD7",div:"\xF7",divide:"\xF7"},SNe={Agrave:"\xC0",agrave:"\xE0",Aacute:"\xC1",aacute:"\xE1",Acirc:"\xC2",acirc:"\xE2",Atilde:"\xC3",atilde:"\xE3",Auml:"\xC4",auml:"\xE4",Aring:"\xC5",aring:"\xE5",AElig:"\xC6",aelig:"\xE6",Ccedil:"\xC7",ccedil:"\xE7",Egrave:"\xC8",egrave:"\xE8",Eacute:"\xC9",eacute:"\xE9",Ecirc:"\xCA",ecirc:"\xEA",Euml:"\xCB",euml:"\xEB",Igrave:"\xCC",igrave:"\xEC",Iacute:"\xCD",iacute:"\xED",Icirc:"\xCE",icirc:"\xEE",Iuml:"\xCF",iuml:"\xEF",ETH:"\xD0",eth:"\xF0",Ntilde:"\xD1",ntilde:"\xF1",Ograve:"\xD2",ograve:"\xF2",Oacute:"\xD3",oacute:"\xF3",Ocirc:"\xD4",ocirc:"\xF4",Otilde:"\xD5",otilde:"\xF5",Ouml:"\xD6",ouml:"\xF6",Oslash:"\xD8",oslash:"\xF8",Ugrave:"\xD9",ugrave:"\xF9",Uacute:"\xDA",uacute:"\xFA",Ucirc:"\xDB",ucirc:"\xFB",Uuml:"\xDC",uuml:"\xFC",Yacute:"\xDD",yacute:"\xFD",THORN:"\xDE",thorn:"\xFE",szlig:"\xDF",yuml:"\xFF",Yuml:"\u0178"},BNe={Amacr:"\u0100",amacr:"\u0101",Abreve:"\u0102",abreve:"\u0103",Aogon:"\u0104",aogon:"\u0105",Cacute:"\u0106",cacute:"\u0107",Ccirc:"\u0108",ccirc:"\u0109",Cdot:"\u010A",cdot:"\u010B",Ccaron:"\u010C",ccaron:"\u010D",Dcaron:"\u010E",dcaron:"\u010F",Dstrok:"\u0110",dstrok:"\u0111",Emacr:"\u0112",emacr:"\u0113",Ecaron:"\u011A",ecaron:"\u011B",Edot:"\u0116",edot:"\u0117",Eogon:"\u0118",eogon:"\u0119",Gcirc:"\u011C",gcirc:"\u011D",Gbreve:"\u011E",gbreve:"\u011F",Gdot:"\u0120",gdot:"\u0121",Gcedil:"\u0122",Hcirc:"\u0124",hcirc:"\u0125",Hstrok:"\u0126",hstrok:"\u0127",Itilde:"\u0128",itilde:"\u0129",Imacr:"\u012A",imacr:"\u012B",Iogon:"\u012E",iogon:"\u012F",Idot:"\u0130",IJlig:"\u0132",ijlig:"\u0133",Jcirc:"\u0134",jcirc:"\u0135",Kcedil:"\u0136",kcedil:"\u0137",kgreen:"\u0138",Lacute:"\u0139",lacute:"\u013A",Lcedil:"\u013B",lcedil:"\u013C",LcaroLine truncated
`);let e=new sa("!xml"),r=e,i="";this.matcher.reset(),this.entityDecoder.reset(),this.entityExpansionCount=0,this.currentExpandedLength=0;let n=this.options,s=new d_(n.processEntities),o=t.length;for(let a=0;a<o;a++)if(t[a]==="<"){let u=t.charCodeAt(a+1);if(u===47){let l=Uw(t,">",a,"Closing Tag is not closed."),f=t.substring(a+2,l).trim();if(n.removeNSPrefix){let d=f.indexOf(":");d!==-1&&(f=f.substr(d+1))}f=uJ(n.transformTagName,f,"",n).tagName,r&&(i=this.saveTextToParentTag(i,r,this.readonlyMatcher));let h=this.matcher.getCurrentTag();if(f&&n.unpairedTagsSet.has(f))throw new Error(`Unpaired tag can not be used as closing tag: </${f}>`);h&&n.unpairedTagsSet.has(h)&&(this.matcher.pop(),this.tagsNodeStack.pop()),this.matcher.pop(),this.isCurrentNodeStopNode=!1,r=this.tagsNodeStack.pop(),i="",a=l}else if(u===63){let l=lJ(t,a,!1,"?>");if(!l)throw new Error("Pi Tag is not closed.");i=this.saveTextToParentTag(i,r,this.readonlyMatcher);let f=this.buildAttributesMap(l.tagExp,this.matcher,l.tagName,!0);if(f){let h=f[this.options.attributeNamePrefix+"version"];this.entityDecoder.setXmlVersion(Number(h)||1),s.setXmlVersion(Number(h)||1)}if(!(n.ignoreDeclaration&&l.tagName==="?xml"||n.ignorePiTags)){let h=new sa(l.tagName);h.add(n.textNodeName,""),l.tagName!==l.tagExp&&l.attrExpPresent&&n.ignoreAttributes!==!0&&(h[":@"]=f),this.addChild(r,h,this.readonlyMatcher,a)}a=l.closeIndex+1}else if(u===33&&t.charCodeAt(a+2)===45&&t.charCodeAt(a+3)===45){let l=Uw(t,"-->",a+4,"Comment is not closed.");if(n.commentPropName){let f=t.substring(a+4,l-2);i=this.saveTextToParentTag(i,r,this.readonlyMatcher),r.add(n.commentPropName,[{[n.textNodeName]:f}])}a=l}else if(u===33&&t.charCodeAt(a+2)===68){let l=s.readDocType(t,a);this.entityDecoder.addInputEntities(l.entities),a=l.i}else if(u===33&&t.charCodeAt(a+2)===91){let l=Uw(t,"]]>",a,"CDATA is not closed.")-2,f=t.substring(a+9,l);i=this.saveTextToParentTag(i,r,this.readonlyMatcher);let h=this.parseTextData(f,r.tagname,this.readonlyMatcher,!0,!1,!0,!0);h==null&&(h=""),n.cdataPropName?r.add(n.cdataPropName,[{[n.textNodeName]:f}]):r.add(n.textNodeName,h),a=l+2}else{let l=lJ(t,a,n.removeNSPrefix);if(!l){let Q=t.substring(Math.max(0,a-50),Math.min(o,a+50));throw new Error(`readTagExp returned undefined at position ${a}. Context: "${Q}"`)}let f=l.tagName,h=l.rawTagName,d=l.tagExp,m=l.attrExpPresent,A=l.closeIndex;if({tagName:f,tagExp:d}=uJ(n.transformTagName,f,d,n),n.strictReservedNames&&(f===n.commentPropName||f===n.cdataPropName||f===n.textNodeName||f===n.attributesGroupName))throw new Error(`Invalid tag name: ${f}`);r&&i&&r.tagname!=="!xml"&&(i=this.saveTextToParentTag(i,r,this.readonlyMatcher,!1));let y=r;y&&n.unpairedTagsSet.has(y.tagname)&&(r=this.tagsNodeStack.pop(),this.matcher.pop());let g=!1;d.length>0&&d.lastIndexOf("/")===d.length-1&&(g=!0,f[f.length-1]==="/"?(f=f.substr(0,f.length-1),d=f):d=d.substr(0,d.length-1),m=f!==d);let E=null,C={},S;S=YTt(h),f!==e.tagname&&this.matcher.push(f,{},S),f!==d&&m&&(E=this.buildAttributesMap(d,this.matcher,f),E&&(C=JTt(E,n))),f!==e.tagname&&(this.isCurrentNodeStopNode=this.isItStopNode());let N=a;if(this.isCurrentNodeStopNode){let Q="";if(g)a=l.closeIndex;else if(n.unpairedTagsSet.has(f))a=l.closeIndex;else{let G=this.readStopNodeData(t,h,A+1);if(!G)throw new Error(`Unexpected end of ${h}`);a=G.i,Q=G.tagContent}let T=new sa(f);E&&(T[":@"]=E),T.add(n.textNodeName,Q),this.matcher.pop(),this.isCurrentNodeStopNode=!1,this.addChild(r,T,this.readonlyMatcher,N)}else{if(g){({tagName:f,tagExp:d}=uJ(n.transformTagName,f,d,n));let Q=new sa(f);E&&(Q[":@"]=E),this.addChild(r,Q,this.readonlyMatcher,N),this.matcher.pop(),this.isCurrentNodeStopNode=!1}else if(n.unpairedTagsSet.has(f)){let Q=new sa(f);E&&(Q[":@"]=E),this.addChild(r,Q,this.readonlyMatcher,N),this.matcher.pop(),this.isCurrentNodeStopNode=!1,a=l.closeIndex;continue}else{let Q=new sa(f);if(this.tagsNodeStack.length>n.maxNestedTags)throw new Error("Maximum nested tags exceeded");this.tagsNodeStack.push(r),E&&(Q[":@"]=E),this.addChild(r,Q,this.readonlyMatcher,N),r=Q}i="",a=A}}}else i+=t[a];return e.child};function rNt(t,e,r,i){this.options.captureMetaData||(i=void 0);let n=this.options.jPath?r.toString():r,s=this.options.updateTag(e.tagname,n,e[":@"]);s===!1||(typeof s=="string"&&(e.tagname=s),t.addChild(e,i))}function iNt(t,e,r){let i=this.options.processEntities;if(!i||!i.enabled)return t;if(i.allowedTags){let n=this.options.jPath?r.toString():r;if(!(Array.isArray(i.allowedTags)?i.allowedTags.includes(e):i.allowedTags(e,n)))return t}if(i.tagFilter){let n=this.options.jPath?r.toString():r;if(!i.tagFilter(e,n))return t}return this.entityDecoder.decode(t)}function nNt(t,e,r,i){return t&&(i===void 0&&(i=e.child.length===0),t=this.parseTextData(t,e.tagname,r,!1,e[":@"]?Object.keys(e[":@"]).length!==0:!1,i),t!==void 0&&t!==""&&e.add(this.options.textNodeName,t),t=""),t}function sNt(){return this.stopNodeExpressionsSet.size===0?!1:this.matcher.matchesAny(this.stopNodeExpressionsSet)}function oNt(t,e,r=">"){Line truncated
`;function pNt(t,e){if(!Array.isArray(t)||t.length===0)return"1.0";let r=t[0];if(AJ(r)==="?xml"){let n=r[":@"];if(n){let s=e.attributeNamePrefix+"version";if(n[s])return n[s]}}return"1.0"}function VNe(t,e,r,i,n){return!r.sanitizeName||Ry(t,{xmlVersion:n})?t:r.sanitizeName(t,{isAttribute:e,matcher:i.readOnly()})}function mJ(t,e){let r="";e.format&&(r=dNt);let i=[];if(e.stopNodes&&Array.isArray(e.stopNodes))for(let o=0;o<e.stopNodes.length;o++){let a=e.stopNodes[o];typeof a=="string"?i.push(new Xa(a)):a instanceof Xa&&i.push(a)}let n=pNt(t,e),s=new gf;return zNe(t,e,r,s,i,n)}function zNe(t,e,r,i,n,s){let o="",a=!1;if(e.maxNestedTags&&i.getDepth()>e.maxNestedTags)throw new Error("Maximum nested tags exceeded");if(!Array.isArray(t)){if(t!=null){let c=t.toString();return c=pJ(c,e),c}return""}for(let c=0;c<t.length;c++){let u=t[c],l=AJ(u);if(l===void 0)continue;let h=l===e.textNodeName||l===e.cdataPropName||l===e.commentPropName||l[0]==="?"?l:VNe(l,!1,e,i,s),d=mNt(u[":@"],e);i.push(h,d);let m=gNt(i,n);if(h===e.textNodeName){let C=u[l];m||(C=e.tagValueProcessor(h,C),C=pJ(C,e)),a&&(o+=r),o+=C,a=!1,i.pop();continue}else if(h===e.cdataPropName){a&&(o+=r);let C=u[l][0][e.textNodeName],S=Zk(C);o+=`<![CDATA[${S}]]>`,a=!1,i.pop();continue}else if(h===e.commentPropName){let C=u[l][0][e.textNodeName],S=Xk(C);o+=r+`<!--${S}-->`,a=!0,i.pop();continue}else if(h[0]==="?"){let C=jNe(u[":@"],e,m,i,s);o+=(h==="?xml"?"":r)+`<${h}${C}?>`,a=!0,i.pop();continue}let A=r;A!==""&&(A+=e.indentBy);let y=jNe(u[":@"],e,m,i,s),g=r+`<${h}${y}`,E;m?E=$Ne(u[l],e):E=zNe(u[l],e,A,i,n,s),e.unpairedTags.indexOf(h)!==-1?e.suppressUnpairedNode?o+=g+">":o+=g+"/>":(!E||E.length===0)&&e.suppressEmptyNode?o+=g+"/>":E&&E.endsWith(">")?o+=g+`>${E}${r}</${h}>`:(o+=g+">",E&&r!==""&&(E.includes("/>")||E.includes("</"))?o+=r+e.indentBy+E+r:o+=E,o+=`</${h}>`),a=!0,i.pop()}return o}function mNt(t,e){if(!t||e.ignoreAttributes)return null;let r={},i=!1;for(let n in t){if(!Object.prototype.hasOwnProperty.call(t,n))continue;let s=n.startsWith(e.attributeNamePrefix)?n.substr(e.attributeNamePrefix.length):n;r[s]=$m(t[n]),i=!0}return i?r:null}function $Ne(t,e){if(!Array.isArray(t))return t!=null?t.toString():"";let r="";for(let i=0;i<t.length;i++){let n=t[i],s=AJ(n);if(s===e.textNodeName)r+=n[s];else if(s===e.cdataPropName)r+=n[s][0][e.textNodeName];else if(s===e.commentPropName)r+=n[s][0][e.textNodeName];else{if(s&&s[0]==="?")continue;if(s){let o=ANt(n[":@"],e),a=$Ne(n[s],e);!a||a.length===0?r+=`<${s}${o}/>`:r+=`<${s}${o}>${a}</${s}>`}}}return r}function ANt(t,e){let r="";if(t&&!e.ignoreAttributes)for(let i in t){if(!Object.prototype.hasOwnProperty.call(t,i))continue;let n=t[i];n===!0&&e.suppressBooleanAttributes?r+=` ${i.substr(e.attributeNamePrefix.length)}`:r+=` ${i.substr(e.attributeNamePrefix.length)}="${$m(n)}"`}return r}function AJ(t){let e=Object.keys(t);for(let r=0;r<e.length;r++){let i=e[r];if(Object.prototype.hasOwnProperty.call(t,i)&&i!==":@")return i}}function jNe(t,e,r,i,n){let s="";if(t&&!e.ignoreAttributes)for(let o in t){if(!Object.prototype.hasOwnProperty.call(t,o))continue;let a=o.substr(e.attributeNamePrefix.length),c=r?a:VNe(a,!0,e,i,n),u;r?u=t[o]:(u=e.attributeValueProcessor(o,t[o]),u=pJ(u,e)),u===!0&&e.suppressBooleanAttributes?s+=` ${c}`:s+=` ${c}="${$m(u)}"`}return s}function gNt(t,e){if(!e||e.length===0)return!1;for(let r=0;r<e.length;r++)if(t.matches(e[r]))return!0;return!1}function pJ(t,e){if(t&&t.length>0&&e.processEntities)for(let r=0;r<e.entities.length;r++){let i=e.entities[r];t=t.replace(i.regex,i.val)}return t}function gJ(t){return typeof t=="function"?t:Array.isArray(t)?e=>{for(let r of t)if(typeof r=="string"&&e===r||r instanceof RegExp&&r.test(e))return!0}:()=>!1}var yNt={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:" ",suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:function(t,e){return e},attributeValueProcessor:function(t,e){return e},preserveOrder:!1,commentPropName:!1,unpairedTags:[],entities:[{regex:new RegExp("&","g"),val:"&amp;"},{regex:new RegExp(">","g"),val:"&gt;"},{regex:new RegExp("<","g"),val:"&lt;"},{regex:new RegExp("'","g"),val:"&apos;"},{regex:new RegExp('"',"g"),val:"&quot;"}],processEntities:!0,stopNodes:[],oneListGroup:!1,maxNestedTags:100,jPath:!0,sanitizeName:!1};function aa(t){if(this.options=Object.assign({},yNt,t),this.options.stopNodes&&Array.isArray(this.options.stopNodes)&&(this.options.stopNodes=this.options.stopNodes.map(e=>typeof e=="string"&&e.startsWith("*.")?".."+e.substring(2):e)),this.stopNodeExpressions=[],this.options.stopNodes&&Array.isArray(this.options.stopNodes))for(let e=0;e<this.options.stopNodes.length;e++){let r=this.options.stopNodes[e];typeof r=="string"?this.stopNodeExpressions.push(new Xa(r)):r instanceof Xa&&this.stopNodeExpressions.push(r)}this.options.ignoreAttributes===!0||this.options.attributesGroupName?this.isAttribute=function(){return!1}:(this.ignorLine truncated
`,"utf-8")],n=Zxt(i);n&&t.headers.set("Content-Length",n),t.body=await PTe(i)}var sx="multipartPolicy",tRt=70,rRt=new Set("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'()+,-./:=?");function iRt(t){if(t.length>tRt)throw new Error(`Multipart boundary "${t}" exceeds maximum length of 70 characters`);if(Array.from(t).some(e=>!rRt.has(e)))throw new Error(`Multipart boundary "${t}" contains invalid characters`)}function Lk(){return{name:sx,async sendRequest(t,e){if(!t.multipartBody)return e(t);if(t.body)throw new Error("multipartBody and regular body cannot be set at the same time");let r=t.multipartBody.boundary,i=t.headers.get("Content-Type")??"multipart/mixed",n=i.match(/^(multipart\/[^ ;]+)(?:; *boundary=(.+))?$/);if(!n)throw new Error(`Got multipart request body, but content-type header was not multipart: ${i}`);let[,s,o]=n;if(o&&r&&o!==r)throw new Error(`Multipart boundary was specified as ${o} in the header, but got ${r} in the request body`);return r??=o,r?iRt(r):r=Yxt(),t.headers.set("Content-Type",`${s}; boundary=${r}`),await eRt(t,t.multipartBody.parts,r),t.multipartBody=void 0,e(t)}}}function Mk(){return ck()}var kTe=sk({logLevelEnvVarName:"AZURE_LOG_LEVEL",namespace:"azure"}),lLr=kTe.logger;function bf(t){return kTe.createClientLogger(t)}var wf=bf("core-rest-pipeline");function vW(t={}){return pk({logger:wf.info,...t})}var _W=mk;function xW(t={}){return Ak(t)}var Fk=O(require("node:os"),1),Uk=O(require("node:process"),1);function QTe(){return"User-Agent"}async function LTe(t){if(Uk.default&&Uk.default.versions){let e=`${Fk.default.type()} ${Fk.default.release()}; ${Fk.default.arch()}`,r=Uk.default.versions;r.bun?t.set("Bun",`${r.bun} (${e})`):r.deno?t.set("Deno",`${r.deno} (${e})`):r.node&&t.set("Node",`${r.node} (${e})`)}}var qk="1.22.2";function fRt(t){let e=[];for(let[r,i]of t){let n=i?`${r}/${i}`:r;e.push(n)}return e.join(" ")}function MTe(){return QTe()}async function Gk(t){let e=new Map;e.set("core-rest-pipeline",qk),await LTe(e);let r=fRt(e);return t?`${t} ${r}`:r}var FTe=MTe(),UTe="userAgentPolicy";function RW(t={}){let e=Gk(t.userAgentPrefix);return{name:UTe,async sendRequest(r,i){return r.headers.has(FTe)||r.headers.set(FTe,await e),i(r)}}}var rc=class extends Error{constructor(e){super(e),this.name="AbortError"}};function TW(t,e){let{cleanupBeforeAbort:r,abortSignal:i,abortErrorMsg:n}=e??{};return new Promise((s,o)=>{function a(){o(new rc(n??"The operation was aborted."))}function c(){i?.removeEventListener("abort",u)}function u(){r?.(),c(),a()}if(i?.aborted)return a();try{t(l=>{c(),s(l)},l=>{c(),o(l)})}catch(l){o(l)}i?.addEventListener("abort",u)})}var ARt="The delay was aborted.";function ox(t,e){let r,{abortSignal:i,abortErrorMsg:n}=e??{};return TW(s=>{r=setTimeout(s,t)},{cleanupBeforeAbort:()=>clearTimeout(r),abortSignal:i,abortErrorMsg:n??ARt})}function $m(t){if(Ry(t))return t.message;{let e;try{typeof t=="object"&&t?e=JSON.stringify(t):e=String(t)}catch{e="[unable to stringify input]"}return`Unknown error ${e}`}}function qTe(t){return Ry(t)}function qw(){return xy()}var Xt=Dy;var GTe=Symbol("rawContent");function DW(t){return typeof t[GTe]=="function"}function HTe(t){return DW(t)?t[GTe]():t}var Hk=sx;function OW(){let t=Lk();return{name:Hk,sendRequest:async(e,r)=>{if(e.multipartBody)for(let i of e.multipartBody.parts)DW(i.body)&&(i.body=HTe(i.body));return t.sendRequest(e,r)}}}var PW=gk;function kW(){return yk()}function QW(t={}){return wk(t)}function LW(){return Ck()}function Wm(t){return wW(t)}function MW(t,e){return Dk(t,e)}var jTe="setClientRequestIdPolicy";function FW(t="x-ms-client-request-id"){return{name:jTe,async sendRequest(e,r){return e.headers.has(t)||e.headers.set(t,e.requestId),r(e)}}}function UW(t){return Ok(t)}function qW(t){return Pk(t)}var Gw={span:Symbol.for("@azure/core-tracing span"),namespace:Symbol.for("@azure/core-tracing namespace")};function VTe(t={}){let e=new GW(t.parentContext);return t.span&&(e=e.setValue(Gw.span,t.span)),t.namespace&&(e=e.setValue(Gw.namespace,t.namespace)),e}var GW=class t{_contextMap;constructor(e){this._contextMap=e instanceof t?new Map(e._contextMap):new Map}setValue(e,r){let i=new t(this);return i._contextMap.set(e,r),i}getValue(e){return this._contextMap.get(e)}deleteValue(e){let r=new t(this);return r._contextMap.delete(e),r}};var $Te=O(zTe(),1),Vk=$Te.state;function gRt(){return{end:()=>{},isRecording:()=>!1,recordException:()=>{},setAttribute:()=>{},setStatus:()=>{},addEvent:()=>{}}}function yRt(){return{createRequestHeaders:()=>({}),parseTraceparentHeader:()=>{},startSpan:(t,e)=>({span:gRt(),tracingContext:VTe({parentContext:e.tracingContext})}),withContext(t,e,...r){return e(...r)}}}function ax(){return Vk.instrumenterImplementation||(Vk.instrumenterImplementation=yRt()),Vk.instrumenterImplementation}function cx(t){let{namespace:e,packageName:r,packageVersion:i}=t;function n(u,l,f){let h=ax().startSpan(u,{...f,packageName:r,packageVersion:i,tracingContext:l?.tracingOptions?.tracingContext}),d=h.tracingConte Line truncated
`&&t[s]!=="\r";s++)c+=t[s];if(c=c.trim(),c[c.length-1]==="/"&&(c=c.substring(0,c.length-1),s--),!UTt(c)){let f;return c.trim().length===0?f="Invalid space after '<'.":f="Tag '"+c+"' is an invalid name.",vi("InvalidTag",f,go(t,s))}let u=kTt(t,s);if(u===!1)return vi("InvalidAttr","Attributes for '"+c+"' have open quote.",go(t,s));let l=u.value;if(s=u.index,l[l.length-1]==="/"){let f=s-l.length;l=l.substring(0,l.length-1);let h=xNe(l,e);if(h===!0)i=!0;else return vi(h.err.code,h.err.msg,go(t,f+h.err.line))}else if(a)if(u.tagClosed){if(l.trim().length>0)return vi("InvalidTag","Closing tag '"+c+"' can't have attributes or invalid starting.",go(t,o));if(r.length===0)return vi("InvalidTag","Closing tag '"+c+"' has not been opened.",go(t,o));{let f=r.pop();if(c!==f.tagName){let h=go(t,f.tagStartPos);return vi("InvalidTag","Expected closing tag '"+f.tagName+"' (opened in line "+h.line+", col "+h.col+") instead of closing tag '"+c+"'.",go(t,o))}r.length==0&&(n=!0)}}else return vi("InvalidTag","Closing tag '"+c+"' doesn't have proper closing.",go(t,s));else{let f=xNe(l,e);if(f!==!0)return vi(f.err.code,f.err.msg,go(t,s-l.length+f.err.line));if(n===!0)return vi("InvalidXml","Multiple possible root nodes found.",go(t,s));e.unpairedTags.indexOf(c)!==-1||r.push({tagName:c,tagStartPos:o}),i=!0}for(s++;s<t.length;s++)if(t[s]==="<")if(t[s+1]==="!"){s++,s=_Ne(t,s);continue}else if(t[s+1]==="?"){if(s=vNe(t,++s),s.err)return s}else break;else if(t[s]==="&"){let f=MTt(t,s);if(f==-1)return vi("InvalidChar","char '&' is not expected.",go(t,s));s=f}else if(n===!0&&!BNe(t[s]))return vi("InvalidXml","Extra text at the end",go(t,s));t[s]==="<"&&s--}}else{if(BNe(t[s]))continue;return vi("InvalidChar","char '"+t[s]+"' is not expected.",go(t,s))}if(i){if(r.length==1)return vi("InvalidTag","Unclosed tag '"+r[0].tagName+"'.",go(t,r[0].tagStartPos));if(r.length>0)return vi("InvalidXml","Invalid '"+JSON.stringify(r.map(s=>s.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}else return vi("InvalidXml","Start tag expected.",1);return!0}function BNe(t){return t===" "||t===" "||t===`
`||t==="\r"}function vNe(t,e){let r=e;for(;e<t.length;e++)if(t[e]=="?"||t[e]==" "){let i=t.substr(r,e-r);if(e>5&&i==="xml")return vi("InvalidXml","XML declaration allowed only at the start of the document.",go(t,e));if(t[e]=="?"&&t[e+1]==">"){e++;break}else continue}return e}function _Ne(t,e){if(t.length>e+5&&t[e+1]==="-"&&t[e+2]==="-"){for(e+=3;e<t.length;e++)if(t[e]==="-"&&t[e+1]==="-"&&t[e+2]===">"){e+=2;break}}else if(t.length>e+8&&t[e+1]==="D"&&t[e+2]==="O"&&t[e+3]==="C"&&t[e+4]==="T"&&t[e+5]==="Y"&&t[e+6]==="P"&&t[e+7]==="E"){let r=1;for(e+=8;e<t.length;e++)if(t[e]==="<")r++;else if(t[e]===">"&&(r--,r===0))break}else if(t.length>e+9&&t[e+1]==="["&&t[e+2]==="C"&&t[e+3]==="D"&&t[e+4]==="A"&&t[e+5]==="T"&&t[e+6]==="A"&&t[e+7]==="["){for(e+=8;e<t.length;e++)if(t[e]==="]"&&t[e+1]==="]"&&t[e+2]===">"){e+=2;break}}return e}var OTt='"',PTt="'";function kTt(t,e){let r="",i="",n=!1;for(;e<t.length;e++){if(t[e]===OTt||t[e]===PTt)i===""?i=t[e]:i!==t[e]||(i="");else if(t[e]===">"&&i===""){n=!0;break}r+=t[e]}return i!==""?!1:{value:r,index:e,tagClosed:n}}var QTt=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function xNe(t,e){let r=eQ(t,QTt),i={};for(let n=0;n<r.length;n++){if(r[n][1].length===0)return vi("InvalidAttr","Attribute '"+r[n][2]+"' has no space in starting.",yx(r[n]));if(r[n][3]!==void 0&&r[n][4]===void 0)return vi("InvalidAttr","Attribute '"+r[n][2]+"' is without value.",yx(r[n]));if(r[n][3]===void 0&&!e.allowBooleanAttributes)return vi("InvalidAttr","boolean attribute '"+r[n][2]+"' is not allowed.",yx(r[n]));let s=r[n][2];if(!FTt(s))return vi("InvalidAttr","Attribute '"+s+"' is an invalid name.",yx(r[n]));if(!Object.prototype.hasOwnProperty.call(i,s))i[s]=1;else return vi("InvalidAttr","Attribute '"+s+"' is repeated.",yx(r[n]))}return!0}function LTt(t,e){let r=/\d/;for(t[e]==="x"&&(e++,r=/[\da-fA-F]/);e<t.length;e++){if(t[e]===";")return e;if(!t[e].match(r))break}return-1}function MTt(t,e){if(e++,t[e]===";")return-1;if(t[e]==="#")return e++,LTt(t,e);let r=0;for(;e<t.length;e++,r++)if(!(t[e].match(/\w/)&&r<20)){if(t[e]===";")break;return-1}return e}function vi(t,e,r){return{err:{code:t,msg:e,line:r.line||r,col:r.col}}}function FTt(t){return oJ(t)}function UTt(t){return oJ(t)}function go(t,e){let r=t.substring(0,e).split(/\r?\n/);return{line:r.length,col:r[r.length-1].length+1}}function yx(t){return t.startIndex+t[1].length}var RNe={amp:"&",AMP:"&",lt:"<",LT:"<",gt:">",GT:">",quot:'"',QUOT:'"',apos:"'",lsquo:"\u2018",rsquo:"\u2019",ldquo:"\u201C",rdquo:"\u201D",lsquor:"\u201A",rsquor:"\u2019",ldquor:"\u201E",bdquo:"\u201E",comma:",",period:".",colon:":",semi:";",excl:"!",quest:"?",num:"#",dollar:"$",percent:"%",amp:"&",ast:"*",commat:"@",lowbar:"_",verbar:"|",vert:"|",sol:"/",bsol:"\\",lbrace:"{",rbrace:"}",lbrack:"[",rbrack:"]",lpar:"(",rpar:")",nbsp:"\xA0",iexcl:"\xA1",cent:"\xA2",pound:"\xA3",curren:"\xA4",yen:"\xA5",brvbar:"\xA6",sect:"\xA7",uml:"\xA8",copy:"\xA9",COPY:"\xA9",ordf:"\xAA",laquo:"\xAB",not:"\xAC",shy:"\xAD",reg:"\xAE",REG:"\xAE",macr:"\xAF",deg:"\xB0",plusmn:"\xB1",sup2:"\xB2",sup3:"\xB3",acute:"\xB4",micro:"\xB5",para:"\xB6",middot:"\xB7",cedil:"\xB8",sup1:"\xB9",ordm:"\xBA",raquo:"\xBB",frac14:"\xBC",frac12:"\xBD",half:"\xBD",frac34:"\xBE",iquest:"\xBF",times:"\xD7",div:"\xF7",divide:"\xF7"},TNe={Agrave:"\xC0",agrave:"\xE0",Aacute:"\xC1",aacute:"\xE1",Acirc:"\xC2",acirc:"\xE2",Atilde:"\xC3",atilde:"\xE3",Auml:"\xC4",auml:"\xE4",Aring:"\xC5",aring:"\xE5",AElig:"\xC6",aelig:"\xE6",Ccedil:"\xC7",ccedil:"\xE7",Egrave:"\xC8",egrave:"\xE8",Eacute:"\xC9",eacute:"\xE9",Ecirc:"\xCA",ecirc:"\xEA",Euml:"\xCB",euml:"\xEB",Igrave:"\xCC",igrave:"\xEC",Iacute:"\xCD",iacute:"\xED",Icirc:"\xCE",icirc:"\xEE",Iuml:"\xCF",iuml:"\xEF",ETH:"\xD0",eth:"\xF0",Ntilde:"\xD1",ntilde:"\xF1",Ograve:"\xD2",ograve:"\xF2",Oacute:"\xD3",oacute:"\xF3",Ocirc:"\xD4",ocirc:"\xF4",Otilde:"\xD5",otilde:"\xF5",Ouml:"\xD6",ouml:"\xF6",Oslash:"\xD8",oslash:"\xF8",Ugrave:"\xD9",ugrave:"\xF9",Uacute:"\xDA",uacute:"\xFA",Ucirc:"\xDB",ucirc:"\xFB",Uuml:"\xDC",uuml:"\xFC",Yacute:"\xDD",yacute:"\xFD",THORN:"\xDE",thorn:"\xFE",szlig:"\xDF",yuml:"\xFF",Yuml:"\u0178"},NNe={Amacr:"\u0100",amacr:"\u0101",Abreve:"\u0102",abreve:"\u0103",Aogon:"\u0104",aogon:"\u0105",Cacute:"\u0106",cacute:"\u0107",Ccirc:"\u0108",ccirc:"\u0109",Cdot:"\u010A",cdot:"\u010B",Ccaron:"\u010C",ccaron:"\u010D",Dcaron:"\u010E",dcaron:"\u010F",Dstrok:"\u0110",dstrok:"\u0111",Emacr:"\u0112",emacr:"\u0113",Ecaron:"\u011A",ecaron:"\u011B",Edot:"\u0116",edot:"\u0117",Eogon:"\u0118",eogon:"\u0119",Gcirc:"\u011C",gcirc:"\u011D",Gbreve:"\u011E",gbreve:"\u011F",Gdot:"\u0120",gdot:"\u0121",Gcedil:"\u0122",Hcirc:"\u0124",hcirc:"\u0125",Hstrok:"\u0126",hstrok:"\u0127",Itilde:"\u0128",itilde:"\u0129",Imacr:"\u012A",imacr:"\u012B",Iogon:"\u012E",iogon:"\u012F",Idot:"\u0130",IJlig:"\u0132",ijlig:"\u0133",Jcirc:"\u0134",jcirc:"\u0135",Kcedil:"\u0136",kcedil:"\u0137",kgreen:"\u0138",Lacute:"\u0139",lacute:"\u013A",Lcedil:"\u013B",lcedil:"\u013C",LcaroLine truncated
`);let e=new la("!xml"),r=e,i="";this.matcher.reset(),this.entityDecoder.reset(),this.entityExpansionCount=0,this.currentExpandedLength=0;let n=this.options,s=new wx(n.processEntities),o=t.length;for(let a=0;a<o;a++)if(t[a]==="<"){let u=t.charCodeAt(a+1);if(u===47){let l=$w(t,">",a,"Closing Tag is not closed."),f=t.substring(a+2,l).trim();if(n.removeNSPrefix){let d=f.indexOf(":");d!==-1&&(f=f.substr(d+1))}f=pJ(n.transformTagName,f,"",n).tagName,r&&(i=this.saveTextToParentTag(i,r,this.readonlyMatcher));let h=this.matcher.getCurrentTag();if(f&&n.unpairedTagsSet.has(f))throw new Error(`Unpaired tag can not be used as closing tag: </${f}>`);h&&n.unpairedTagsSet.has(h)&&(this.matcher.pop(),this.tagsNodeStack.pop()),this.matcher.pop(),this.isCurrentNodeStopNode=!1,r=this.tagsNodeStack.pop(),i="",a=l}else if(u===63){let l=mJ(t,a,!1,"?>");if(!l)throw new Error("Pi Tag is not closed.");i=this.saveTextToParentTag(i,r,this.readonlyMatcher);let f=this.buildAttributesMap(l.tagExp,this.matcher,l.tagName,!0);if(f){let h=f[this.options.attributeNamePrefix+"version"];this.entityDecoder.setXmlVersion(Number(h)||1),s.setXmlVersion(Number(h)||1)}if(!(n.ignoreDeclaration&&l.tagName==="?xml"||n.ignorePiTags)){let h=new la(l.tagName);h.add(n.textNodeName,""),l.tagName!==l.tagExp&&l.attrExpPresent&&n.ignoreAttributes!==!0&&(h[":@"]=f),this.addChild(r,h,this.readonlyMatcher,a)}a=l.closeIndex+1}else if(u===33&&t.charCodeAt(a+2)===45&&t.charCodeAt(a+3)===45){let l=$w(t,"-->",a+4,"Comment is not closed.");if(n.commentPropName){let f=t.substring(a+4,l-2);i=this.saveTextToParentTag(i,r,this.readonlyMatcher),r.add(n.commentPropName,[{[n.textNodeName]:f}])}a=l}else if(u===33&&t.charCodeAt(a+2)===68){let l=s.readDocType(t,a);this.entityDecoder.addInputEntities(l.entities),a=l.i}else if(u===33&&t.charCodeAt(a+2)===91){let l=$w(t,"]]>",a,"CDATA is not closed.")-2,f=t.substring(a+9,l);i=this.saveTextToParentTag(i,r,this.readonlyMatcher);let h=this.parseTextData(f,r.tagname,this.readonlyMatcher,!0,!1,!0,!0);h==null&&(h=""),n.cdataPropName?r.add(n.cdataPropName,[{[n.textNodeName]:f}]):r.add(n.textNodeName,h),a=l+2}else{let l=mJ(t,a,n.removeNSPrefix);if(!l){let Q=t.substring(Math.max(0,a-50),Math.min(o,a+50));throw new Error(`readTagExp returned undefined at position ${a}. Context: "${Q}"`)}let f=l.tagName,h=l.rawTagName,d=l.tagExp,m=l.attrExpPresent,A=l.closeIndex;if({tagName:f,tagExp:d}=pJ(n.transformTagName,f,d,n),n.strictReservedNames&&(f===n.commentPropName||f===n.cdataPropName||f===n.textNodeName||f===n.attributesGroupName))throw new Error(`Invalid tag name: ${f}`);r&&i&&r.tagname!=="!xml"&&(i=this.saveTextToParentTag(i,r,this.readonlyMatcher,!1));let y=r;y&&n.unpairedTagsSet.has(y.tagname)&&(r=this.tagsNodeStack.pop(),this.matcher.pop());let g=!1;d.length>0&&d.lastIndexOf("/")===d.length-1&&(g=!0,f[f.length-1]==="/"?(f=f.substr(0,f.length-1),d=f):d=d.substr(0,d.length-1),m=f!==d);let E=null,C={},S;S=uNt(h),f!==e.tagname&&this.matcher.push(f,{},S),f!==d&&m&&(E=this.buildAttributesMap(d,this.matcher,f),E&&(C=cNt(E,n))),f!==e.tagname&&(this.isCurrentNodeStopNode=this.isItStopNode());let N=a;if(this.isCurrentNodeStopNode){let Q="";if(g)a=l.closeIndex;else if(n.unpairedTagsSet.has(f))a=l.closeIndex;else{let G=this.readStopNodeData(t,h,A+1);if(!G)throw new Error(`Unexpected end of ${h}`);a=G.i,Q=G.tagContent}let T=new la(f);E&&(T[":@"]=E),T.add(n.textNodeName,Q),this.matcher.pop(),this.isCurrentNodeStopNode=!1,this.addChild(r,T,this.readonlyMatcher,N)}else{if(g){({tagName:f,tagExp:d}=pJ(n.transformTagName,f,d,n));let Q=new la(f);E&&(Q[":@"]=E),this.addChild(r,Q,this.readonlyMatcher,N),this.matcher.pop(),this.isCurrentNodeStopNode=!1}else if(n.unpairedTagsSet.has(f)){let Q=new la(f);E&&(Q[":@"]=E),this.addChild(r,Q,this.readonlyMatcher,N),this.matcher.pop(),this.isCurrentNodeStopNode=!1,a=l.closeIndex;continue}else{let Q=new la(f);if(this.tagsNodeStack.length>n.maxNestedTags)throw new Error("Maximum nested tags exceeded");this.tagsNodeStack.push(r),E&&(Q[":@"]=E),this.addChild(r,Q,this.readonlyMatcher,N),r=Q}i="",a=A}}}else i+=t[a];return e.child};function mNt(t,e,r,i){this.options.captureMetaData||(i=void 0);let n=this.options.jPath?r.toString():r,s=this.options.updateTag(e.tagname,n,e[":@"]);s===!1||(typeof s=="string"&&(e.tagname=s),t.addChild(e,i))}function ANt(t,e,r){let i=this.options.processEntities;if(!i||!i.enabled)return t;if(i.allowedTags){let n=this.options.jPath?r.toString():r;if(!(Array.isArray(i.allowedTags)?i.allowedTags.includes(e):i.allowedTags(e,n)))return t}if(i.tagFilter){let n=this.options.jPath?r.toString():r;if(!i.tagFilter(e,n))return t}return this.entityDecoder.decode(t)}function gNt(t,e,r,i){return t&&(i===void 0&&(i=e.child.length===0),t=this.parseTextData(t,e.tagname,r,!1,e[":@"]?Object.keys(e[":@"]).length!==0:!1,i),t!==void 0&&t!==""&&e.add(this.options.textNodeName,t),t=""),t}function yNt(){return this.stopNodeExpressionsSet.size===0?!1:this.matcher.matchesAny(this.stopNodeExpressionsSet)}function ENt(t,e,r=">"){Line truncated
`;function _Nt(t,e){if(!Array.isArray(t)||t.length===0)return"1.0";let r=t[0];if(wJ(r)==="?xml"){let n=r[":@"];if(n){let s=e.attributeNamePrefix+"version";if(n[s])return n[s]}}return"1.0"}function KNe(t,e,r,i,n){return!r.sanitizeName||My(t,{xmlVersion:n})?t:r.sanitizeName(t,{isAttribute:e,matcher:i.readOnly()})}function bJ(t,e){let r="";e.format&&(r=vNt);let i=[];if(e.stopNodes&&Array.isArray(e.stopNodes))for(let o=0;o<e.stopNodes.length;o++){let a=e.stopNodes[o];typeof a=="string"?i.push(new sc(a)):a instanceof sc&&i.push(a)}let n=_Nt(t,e),s=new Sf;return XNe(t,e,r,s,i,n)}function XNe(t,e,r,i,n,s){let o="",a=!1;if(e.maxNestedTags&&i.getDepth()>e.maxNestedTags)throw new Error("Maximum nested tags exceeded");if(!Array.isArray(t)){if(t!=null){let c=t.toString();return c=EJ(c,e),c}return""}for(let c=0;c<t.length;c++){let u=t[c],l=wJ(u);if(l===void 0)continue;let h=l===e.textNodeName||l===e.cdataPropName||l===e.commentPropName||l[0]==="?"?l:KNe(l,!1,e,i,s),d=xNt(u[":@"],e);i.push(h,d);let m=TNt(i,n);if(h===e.textNodeName){let C=u[l];m||(C=e.tagValueProcessor(h,C),C=EJ(C,e)),a&&(o+=r),o+=C,a=!1,i.pop();continue}else if(h===e.cdataPropName){a&&(o+=r);let C=u[l][0][e.textNodeName],S=aQ(C);o+=`<![CDATA[${S}]]>`,a=!1,i.pop();continue}else if(h===e.commentPropName){let C=u[l][0][e.textNodeName],S=oQ(C);o+=r+`<!--${S}-->`,a=!0,i.pop();continue}else if(h[0]==="?"){let C=YNe(u[":@"],e,m,i,s);o+=(h==="?xml"?"":r)+`<${h}${C}?>`,a=!0,i.pop();continue}let A=r;A!==""&&(A+=e.indentBy);let y=YNe(u[":@"],e,m,i,s),g=r+`<${h}${y}`,E;m?E=ZNe(u[l],e):E=XNe(u[l],e,A,i,n,s),e.unpairedTags.indexOf(h)!==-1?e.suppressUnpairedNode?o+=g+">":o+=g+"/>":(!E||E.length===0)&&e.suppressEmptyNode?o+=g+"/>":E&&E.endsWith(">")?o+=g+`>${E}${r}</${h}>`:(o+=g+">",E&&r!==""&&(E.includes("/>")||E.includes("</"))?o+=r+e.indentBy+E+r:o+=E,o+=`</${h}>`),a=!0,i.pop()}return o}function xNt(t,e){if(!t||e.ignoreAttributes)return null;let r={},i=!1;for(let n in t){if(!Object.prototype.hasOwnProperty.call(t,n))continue;let s=n.startsWith(e.attributeNamePrefix)?n.substr(e.attributeNamePrefix.length):n;r[s]=Km(t[n]),i=!0}return i?r:null}function ZNe(t,e){if(!Array.isArray(t))return t!=null?t.toString():"";let r="";for(let i=0;i<t.length;i++){let n=t[i],s=wJ(n);if(s===e.textNodeName)r+=n[s];else if(s===e.cdataPropName)r+=n[s][0][e.textNodeName];else if(s===e.commentPropName)r+=n[s][0][e.textNodeName];else{if(s&&s[0]==="?")continue;if(s){let o=RNt(n[":@"],e),a=ZNe(n[s],e);!a||a.length===0?r+=`<${s}${o}/>`:r+=`<${s}${o}>${a}</${s}>`}}}return r}function RNt(t,e){let r="";if(t&&!e.ignoreAttributes)for(let i in t){if(!Object.prototype.hasOwnProperty.call(t,i))continue;let n=t[i];n===!0&&e.suppressBooleanAttributes?r+=` ${i.substr(e.attributeNamePrefix.length)}`:r+=` ${i.substr(e.attributeNamePrefix.length)}="${Km(n)}"`}return r}function wJ(t){let e=Object.keys(t);for(let r=0;r<e.length;r++){let i=e[r];if(Object.prototype.hasOwnProperty.call(t,i)&&i!==":@")return i}}function YNe(t,e,r,i,n){let s="";if(t&&!e.ignoreAttributes)for(let o in t){if(!Object.prototype.hasOwnProperty.call(t,o))continue;let a=o.substr(e.attributeNamePrefix.length),c=r?a:KNe(a,!0,e,i,n),u;r?u=t[o]:(u=e.attributeValueProcessor(o,t[o]),u=EJ(u,e)),u===!0&&e.suppressBooleanAttributes?s+=` ${c}`:s+=` ${c}="${Km(u)}"`}return s}function TNt(t,e){if(!e||e.length===0)return!1;for(let r=0;r<e.length;r++)if(t.matches(e[r]))return!0;return!1}function EJ(t,e){if(t&&t.length>0&&e.processEntities)for(let r=0;r<e.entities.length;r++){let i=e.entities[r];t=t.replace(i.regex,i.val)}return t}function CJ(t){return typeof t=="function"?t:Array.isArray(t)?e=>{for(let r of t)if(typeof r=="string"&&e===r||r instanceof RegExp&&r.test(e))return!0}:()=>!1}var NNt={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:" ",suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:function(t,e){return e},attributeValueProcessor:function(t,e){return e},preserveOrder:!1,commentPropName:!1,unpairedTags:[],entities:[{regex:new RegExp("&","g"),val:"&amp;"},{regex:new RegExp(">","g"),val:"&gt;"},{regex:new RegExp("<","g"),val:"&lt;"},{regex:new RegExp("'","g"),val:"&apos;"},{regex:new RegExp('"',"g"),val:"&quot;"}],processEntities:!0,stopNodes:[],oneListGroup:!1,maxNestedTags:100,jPath:!0,sanitizeName:!1};function ha(t){if(this.options=Object.assign({},NNt,t),this.options.stopNodes&&Array.isArray(this.options.stopNodes)&&(this.options.stopNodes=this.options.stopNodes.map(e=>typeof e=="string"&&e.startsWith("*.")?".."+e.substring(2):e)),this.stopNodeExpressions=[],this.options.stopNodes&&Array.isArray(this.options.stopNodes))for(let e=0;e<this.options.stopNodes.length;e++){let r=this.options.stopNodes[e];typeof r=="string"?this.stopNodeExpressions.push(new sc(r)):r instanceof sc&&this.stopNodeExpressions.push(r)}this.options.ignoreAttributes===!0||this.options.attributesGroupName?this.isAttribute=function(){return!1}:(this.ignorLine truncated
`,this.newLine=`
`):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}function ENt(t,e){let r=t["?xml"];if(r&&typeof r=="object"){if(e.attributesGroupName&&r[e.attributesGroupName]){let n=r[e.attributesGroupName][e.attributeNamePrefix+"version"];if(n)return n}let i=r[e.attributeNamePrefix+"version"];if(i)return i}return"1.0"}function yJ(t,e,r,i,n){return!r.sanitizeName||Ry(t,{xmlVersion:n})?t:r.sanitizeName(t,{isAttribute:e,matcher:i.readOnly()})}aa.prototype.build=function(t){if(this.options.preserveOrder)return mJ(t,this.options);{Array.isArray(t)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(t={[this.options.arrayNodeName]:t});let e=new gf,r=ENt(t,this.options);return this.j2x(t,0,e,r).val}};aa.prototype.j2x=function(t,e,r,i){let n="",s="";if(this.options.maxNestedTags&&r.getDepth()>=this.options.maxNestedTags)throw new Error("Maximum nested tags exceeded");let o=this.options.jPath?r.toString():r,a=this.checkStopNode(r);for(let c in t){if(!Object.prototype.hasOwnProperty.call(t,c))continue;let l=c===this.options.textNodeName||c===this.options.cdataPropName||c===this.options.commentPropName||this.options.attributesGroupName&&c===this.options.attributesGroupName||this.isAttribute(c)||c[0]==="?"?c:yJ(c,!1,this.options,r,i);if(typeof t[c]>"u")this.isAttribute(c)&&(s+="");else if(t[c]===null)this.isAttribute(c)||l===this.options.cdataPropName||l===this.options.commentPropName?s+="":l[0]==="?"?s+=this.indentate(e)+"<"+l+"?"+this.tagEndChar:s+=this.indentate(e)+"<"+l+"/"+this.tagEndChar;else if(t[c]instanceof Date)s+=this.buildTextValNode(t[c],l,"",e,r);else if(typeof t[c]!="object"){let f=this.isAttribute(c);if(f&&!this.ignoreAttributesFn(f,o)){let h=yJ(f,!0,this.options,r,i);n+=this.buildAttrPairStr(h,""+t[c],a)}else if(!f)if(c===this.options.textNodeName){let h=this.options.tagValueProcessor(c,""+t[c]);s+=this.replaceEntitiesValue(h)}else{r.push(l);let h=this.checkStopNode(r);if(r.pop(),h){let d=""+t[c];d===""?s+=this.indentate(e)+"<"+l+this.closeTag(l)+this.tagEndChar:s+=this.indentate(e)+"<"+l+">"+d+"</"+l+this.tagEndChar}else s+=this.buildTextValNode(t[c],l,"",e,r)}}else if(Array.isArray(t[c])){let f=t[c].length,h="",d="";for(let m=0;m<f;m++){let A=t[c][m];if(!(typeof A>"u"))if(A===null)l[0]==="?"?s+=this.indentate(e)+"<"+l+"?"+this.tagEndChar:s+=this.indentate(e)+"<"+l+"/"+this.tagEndChar;else if(typeof A=="object")if(this.options.oneListGroup){r.push(l);let y=this.j2x(A,e+1,r,i);r.pop(),h+=y.val,this.options.attributesGroupName&&A.hasOwnProperty(this.options.attributesGroupName)&&(d+=y.attrStr)}else h+=this.processTextOrObjNode(A,l,e,r,i);else if(this.options.oneListGroup){let y=this.options.tagValueProcessor(l,A);y=this.replaceEntitiesValue(y),h+=y}else{r.push(l);let y=this.checkStopNode(r);if(r.pop(),y){let g=""+A;g===""?h+=this.indentate(e)+"<"+l+this.closeTag(l)+this.tagEndChar:h+=this.indentate(e)+"<"+l+">"+g+"</"+l+this.tagEndChar}else h+=this.buildTextValNode(A,l,"",e,r)}}this.options.oneListGroup&&(h=this.buildObjectNode(h,l,d,e)),s+=h}else if(this.options.attributesGroupName&&c===this.options.attributesGroupName){let f=Object.keys(t[c]),h=f.length;for(let d=0;d<h;d++){let m=yJ(f[d],!0,this.options,r,i);n+=this.buildAttrPairStr(m,""+t[c][f[d]],a)}}else s+=this.processTextOrObjNode(t[c],l,e,r,i)}return{attrStr:n,val:s}};aa.prototype.buildAttrPairStr=function(t,e,r){return r||(e=this.options.attributeValueProcessor(t,""+e),e=this.replaceEntitiesValue(e)),this.options.suppressBooleanAttributes&&e==="true"?" "+t:" "+t+'="'+$m(e)+'"'};function bNt(t,e,r,i,n){let s=this.extractAttributes(t);if(i.push(e,s),this.checkStopNode(i)){let c=this.buildRawContent(t),u=this.buildAttributesForStopNode(t);return i.pop(),this.buildObjectNode(c,e,u,r)}let a=this.j2x(t,r+1,i,n);return i.pop(),e[0]==="?"?this.buildTextValNode("",e,a.attrStr,r,i):t[this.options.textNodeName]!==void 0&&Object.keys(t).length===1?this.buildTextValNode(t[this.options.textNodeName],e,a.attrStr,r,i):this.buildObjectNode(a.val,e,a.attrStr,r)}aa.prototype.extractAttributes=function(t){if(!t||typeof t!="object")return null;let e={},r=!1;if(this.options.attributesGroupName&&t[this.options.attributesGroupName]){let i=t[this.options.attributesGroupName];for(let n in i){if(!Object.prototype.hasOwnProperty.call(i,n))continue;let s=n.startsWith(this.options.attributeNamePrefix)?n.substring(this.options.attributeNamePrefix.length):n;e[s]=$m(i[n]),r=!0}}else for(let i in t){if(!Object.prototype.hasOwnProperty.call(t,i))continue;let n=this.isAttribute(i);n&&(e[n]=$m(t[i]),r=!0)}return r?e:null};aa.prototype.buildRawContent=function(t){if(typeof t=="string")return t;if(typeof t!="object"||t===null)return String(t);if(t[this.options.textNodeName]!==void 0)return t[this.options.textNodeName];let e="";for(let r in t){if(!Object.prototype.hasOwnProperty.call(t,r)||this.isAttribute(r)||this.options.attributesGroupName&&r===this.options.attributesGroupName)continue;let i=t[r];if(r===this.options.textNodeName)e+=i;else if(Array.isA Line truncated
`):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}function DNt(t,e){let r=t["?xml"];if(r&&typeof r=="object"){if(e.attributesGroupName&&r[e.attributesGroupName]){let n=r[e.attributesGroupName][e.attributeNamePrefix+"version"];if(n)return n}let i=r[e.attributeNamePrefix+"version"];if(i)return i}return"1.0"}function IJ(t,e,r,i,n){return!r.sanitizeName||My(t,{xmlVersion:n})?t:r.sanitizeName(t,{isAttribute:e,matcher:i.readOnly()})}ha.prototype.build=function(t){if(this.options.preserveOrder)return bJ(t,this.options);{Array.isArray(t)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(t={[this.options.arrayNodeName]:t});let e=new Sf,r=DNt(t,this.options);return this.j2x(t,0,e,r).val}};ha.prototype.j2x=function(t,e,r,i){let n="",s="";if(this.options.maxNestedTags&&r.getDepth()>=this.options.maxNestedTags)throw new Error("Maximum nested tags exceeded");let o=this.options.jPath?r.toString():r,a=this.checkStopNode(r);for(let c in t){if(!Object.prototype.hasOwnProperty.call(t,c))continue;let l=c===this.options.textNodeName||c===this.options.cdataPropName||c===this.options.commentPropName||this.options.attributesGroupName&&c===this.options.attributesGroupName||this.isAttribute(c)||c[0]==="?"?c:IJ(c,!1,this.options,r,i);if(typeof t[c]>"u")this.isAttribute(c)&&(s+="");else if(t[c]===null)this.isAttribute(c)||l===this.options.cdataPropName||l===this.options.commentPropName?s+="":l[0]==="?"?s+=this.indentate(e)+"<"+l+"?"+this.tagEndChar:s+=this.indentate(e)+"<"+l+"/"+this.tagEndChar;else if(t[c]instanceof Date)s+=this.buildTextValNode(t[c],l,"",e,r);else if(typeof t[c]!="object"){let f=this.isAttribute(c);if(f&&!this.ignoreAttributesFn(f,o)){let h=IJ(f,!0,this.options,r,i);n+=this.buildAttrPairStr(h,""+t[c],a)}else if(!f)if(c===this.options.textNodeName){let h=this.options.tagValueProcessor(c,""+t[c]);s+=this.replaceEntitiesValue(h)}else{r.push(l);let h=this.checkStopNode(r);if(r.pop(),h){let d=""+t[c];d===""?s+=this.indentate(e)+"<"+l+this.closeTag(l)+this.tagEndChar:s+=this.indentate(e)+"<"+l+">"+d+"</"+l+this.tagEndChar}else s+=this.buildTextValNode(t[c],l,"",e,r)}}else if(Array.isArray(t[c])){let f=t[c].length,h="",d="";for(let m=0;m<f;m++){let A=t[c][m];if(!(typeof A>"u"))if(A===null)l[0]==="?"?s+=this.indentate(e)+"<"+l+"?"+this.tagEndChar:s+=this.indentate(e)+"<"+l+"/"+this.tagEndChar;else if(typeof A=="object")if(this.options.oneListGroup){r.push(l);let y=this.j2x(A,e+1,r,i);r.pop(),h+=y.val,this.options.attributesGroupName&&A.hasOwnProperty(this.options.attributesGroupName)&&(d+=y.attrStr)}else h+=this.processTextOrObjNode(A,l,e,r,i);else if(this.options.oneListGroup){let y=this.options.tagValueProcessor(l,A);y=this.replaceEntitiesValue(y),h+=y}else{r.push(l);let y=this.checkStopNode(r);if(r.pop(),y){let g=""+A;g===""?h+=this.indentate(e)+"<"+l+this.closeTag(l)+this.tagEndChar:h+=this.indentate(e)+"<"+l+">"+g+"</"+l+this.tagEndChar}else h+=this.buildTextValNode(A,l,"",e,r)}}this.options.oneListGroup&&(h=this.buildObjectNode(h,l,d,e)),s+=h}else if(this.options.attributesGroupName&&c===this.options.attributesGroupName){let f=Object.keys(t[c]),h=f.length;for(let d=0;d<h;d++){let m=IJ(f[d],!0,this.options,r,i);n+=this.buildAttrPairStr(m,""+t[c][f[d]],a)}}else s+=this.processTextOrObjNode(t[c],l,e,r,i)}return{attrStr:n,val:s}};ha.prototype.buildAttrPairStr=function(t,e,r){return r||(e=this.options.attributeValueProcessor(t,""+e),e=this.replaceEntitiesValue(e)),this.options.suppressBooleanAttributes&&e==="true"?" "+t:" "+t+'="'+Km(e)+'"'};function ONt(t,e,r,i,n){let s=this.extractAttributes(t);if(i.push(e,s),this.checkStopNode(i)){let c=this.buildRawContent(t),u=this.buildAttributesForStopNode(t);return i.pop(),this.buildObjectNode(c,e,u,r)}let a=this.j2x(t,r+1,i,n);return i.pop(),e[0]==="?"?this.buildTextValNode("",e,a.attrStr,r,i):t[this.options.textNodeName]!==void 0&&Object.keys(t).length===1?this.buildTextValNode(t[this.options.textNodeName],e,a.attrStr,r,i):this.buildObjectNode(a.val,e,a.attrStr,r)}ha.prototype.extractAttributes=function(t){if(!t||typeof t!="object")return null;let e={},r=!1;if(this.options.attributesGroupName&&t[this.options.attributesGroupName]){let i=t[this.options.attributesGroupName];for(let n in i){if(!Object.prototype.hasOwnProperty.call(i,n))continue;let s=n.startsWith(this.options.attributeNamePrefix)?n.substring(this.options.attributeNamePrefix.length):n;e[s]=Km(i[n]),r=!0}}else for(let i in t){if(!Object.prototype.hasOwnProperty.call(t,i))continue;let n=this.isAttribute(i);n&&(e[n]=Km(t[i]),r=!0)}return r?e:null};ha.prototype.buildRawContent=function(t){if(typeof t=="string")return t;if(typeof t!="object"||t===null)return String(t);if(t[this.options.textNodeName]!==void 0)return t[this.options.textNodeName];let e="";for(let r in t){if(!Object.prototype.hasOwnProperty.call(t,r)||this.isAttribute(r)||this.options.attributesGroupName&&r===this.options.attributesGroupName)continue;let i=t[r];if(r===this.options.textNodeName)e+=i;else if(Array.isA Line truncated
`)+`
`+this.getCanonicalizedHeadersString(e)+this.getCanonicalizedResourceString(e),i=this.factory.computeHMACSHA256(r);return e.headers.set(rt.AUTHORIZATION,`SharedKey ${this.factory.accountName}:${i}`),e}getHeaderValueToSign(e,r){let i=e.headers.get(r);return!i||r===rt.CONTENT_LENGTH&&i==="0"?"":i}getCanonicalizedHeadersString(e){let r=e.headers.headersArray().filter(n=>n.name.toLowerCase().startsWith(rt.PREFIX_FOR_STORAGE));r.sort((n,s)=>lQ(n.name.toLowerCase(),s.name.toLowerCase())),r=r.filter((n,s,o)=>!(s>0&&n.name.toLowerCase()===o[s-1].name.toLowerCase()));let i="";return r.forEach(n=>{i+=`${n.name.toLowerCase().trimRight()}:${n.value.trimLeft()}
`}),i}getCanonicalizedResourceString(e){let r=aQ(e.url)||"/",i="";i+=`/${this.factory.accountName}${r}`;let n=cQ(e.url),s={};if(n){let o=[];for(let a in n)if(Object.prototype.hasOwnProperty.call(n,a)){let c=a.toLowerCase();s[c]=n[a],o.push(c)}o.sort();for(let a of o)i+=`
${a}:${decodeURIComponent(s[a])}`}return i}};var si=class extends Dy{accountName;accountKey;constructor(e,r){super(),this.accountName=e,this.accountKey=Buffer.from(r,"base64")}create(e,r){return new y_(e,r,this)}computeHMACSHA256(e){return(0,t1e.createHmac)("sha256",this.accountKey).update(e,"utf8").digest("base64")}};var rn=df("storage-common");var Jc;(function(t){t[t.EXPONENTIAL=0]="EXPONENTIAL",t[t.FIXED=1]="FIXED"})(Jc||(Jc={}));var Jm={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:Jc.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},RNt=new Ja("The operation was aborted."),E_=class extends yf{retryOptions;constructor(e,r,i=Jm){super(e,r),this.retryOptions={retryPolicyType:i.retryPolicyType?i.retryPolicyType:Jm.retryPolicyType,maxTries:i.maxTries&&i.maxTries>=1?Math.floor(i.maxTries):Jm.maxTries,tryTimeoutInMs:i.tryTimeoutInMs&&i.tryTimeoutInMs>=0?i.tryTimeoutInMs:Jm.tryTimeoutInMs,retryDelayInMs:i.retryDelayInMs&&i.retryDelayInMs>=0?Math.min(i.retryDelayInMs,i.maxRetryDelayInMs?i.maxRetryDelayInMs:Jm.maxRetryDelayInMs):Jm.retryDelayInMs,maxRetryDelayInMs:i.maxRetryDelayInMs&&i.maxRetryDelayInMs>=0?i.maxRetryDelayInMs:Jm.maxRetryDelayInMs,secondaryHost:i.secondaryHost?i.secondaryHost:Jm.secondaryHost}}async sendRequest(e){return this.attemptSendRequest(e,!1,1)}async attemptSendRequest(e,r,i){let n=e.clone(),s=r||!this.retryOptions.secondaryHost||!(e.method==="GET"||e.method==="HEAD"||e.method==="OPTIONS")||i%2===1;s||(n.url=oQ(n.url,this.retryOptions.secondaryHost)),this.retryOptions.tryTimeoutInMs&&(n.url=Wm(n.url,_d.Parameters.TIMEOUT,Math.floor(this.retryOptions.tryTimeoutInMs/1e3).toString()));let o;try{if(rn.info(`RetryPolicy: =====> Try=${i} ${s?"Primary":"Secondary"}`),o=await this._nextPolicy.sendRequest(n),!this.shouldRetry(s,i,o))return o;r=r||!s&&o.status===404}catch(a){if(rn.error(`RetryPolicy: Caught error, message: ${a.message}, code: ${a.code}`),!this.shouldRetry(s,i,o,a))throw a}return await this.delay(s,i,e.abortSignal),this.attemptSendRequest(e,r,++i)}shouldRetry(e,r,i,n){if(r>=this.retryOptions.maxTries)return rn.info(`RetryPolicy: Attempt(s) ${r} >= maxTries ${this.retryOptions.maxTries}, no further try.`),!1;let s=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"];if(n){for(let o of s)if(n.name.toUpperCase().includes(o)||n.message.toUpperCase().includes(o)||n.code&&n.code.toString().toUpperCase()===o)return rn.info(`RetryPolicy: Network error ${o} found, will retry.`),!0}if(i||n){let o=i?i.status:n?n.statusCode:0;if(!e&&o===404)return rn.info("RetryPolicy: Secondary access with 404, will retry."),!0;if(o===503||o===500)return rn.info(`RetryPolicy: Will retry for status code ${o}.`),!0}if(i&&i?.status>=400){let o=i.headers.get(rt.X_MS_CopySourceErrorCode);if(o!==void 0)switch(o){case"InternalError":case"OperationTimedOut":case"ServerBusy":return!0}}return n?.code==="PARSE_ERROR"&&n?.message.startsWith('Error "Error: Unclosed root tag')?(rn.info("RetryPolicy: Incomplete XML response likely due to service timeout, will retry."),!0):!1}async delay(e,r,i){let n=0;if(e)switch(this.retryOptions.retryPolicyType){case Jc.EXPONENTIAL:n=Math.min((Math.pow(2,r-1)-1)*this.retryOptions.retryDelayInMs,this.retryOptions.maxRetryDelayInMs);break;case Jc.FIXED:n=this.retryOptions.retryDelayInMs;break}else n=Math.random()*1e3;return rn.info(`RetryPolicy: Delay for ${n}ms`),uQ(n,i,RNt)}};var b_=class{retryOptions;constructor(e){this.retryOptions=e}create(e,r){return new E_(e,r,this.retryOptions)}};var TNt="storageBrowserPolicy";function r1e(){return{name:TNt,async sendRequest(t,e){return Xt||((t.method==="GET"||t.method==="HEAD")&&(t.url=Wm(t.url,_d.Parameters.FORCE_BROWSER_NO_CACHE,new Date().getTime().toString())),t.headers.delete(rt.COOKIE),t.headers.delete(rt.CONTENT_LENGTH)),e(t)}}}var NNt="StorageCorrectContentLengthPolicy";function i1e(){function t(e){e.body&&(typeof e.body=="string"||Buffer.isBuffer(e.body))&&e.body.length>0&&e.headers.set(rt.CONTENT_LENGTH,Buffer.byteLength(e.body))}return{name:NNt,async sendRequest(e,r){return t(e),r(e)}}}var DNt="storageRetryPolicy",Gw={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:Jc.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},ONt=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"],PNt=new Ja("The operation was aborted.");function n1e(t={}){let e=t.retryPolicyType??Gw.retryPolicyType,r=t.maxTries??Gw.maxTries,i=t.retryDelayInMs??Gw.retryDelayInMs,n=t.maxRetryDelayInMs??Gw.maxRetryDelayInMs,s=t.secondaryHost??Gw.secondaryHost,o=t.tryTimeoutInMs??Gw.tryTimeoutInMs;function a({isPrimaryRetry:u,attempt:l,response:f,error:h}){if(l>=r)return rn.info(`RetryPolicy: Attempt(s) ${l} >= maxTries ${r}, no further try.`),!1;if(h){for(let d of ONt)if(h.name.toUpperCase().includes(d)||h.message.toUpperCase().includes(d)||h.code&&h.code.toString().toUpperCase()===d)return Line truncated
`+this.getCanonicalizedHeadersString(e)+this.getCanonicalizedResourceString(e),i=this.factory.computeHMACSHA256(r);return e.headers.set(rt.AUTHORIZATION,`SharedKey ${this.factory.accountName}:${i}`),e}getHeaderValueToSign(e,r){let i=e.headers.get(r);return!i||r===rt.CONTENT_LENGTH&&i==="0"?"":i}getCanonicalizedHeadersString(e){let r=e.headers.headersArray().filter(n=>n.name.toLowerCase().startsWith(rt.PREFIX_FOR_STORAGE));r.sort((n,s)=>yQ(n.name.toLowerCase(),s.name.toLowerCase())),r=r.filter((n,s,o)=>!(s>0&&n.name.toLowerCase()===o[s-1].name.toLowerCase()));let i="";return r.forEach(n=>{i+=`${n.name.toLowerCase().trimRight()}:${n.value.trimLeft()}
`}),i}getCanonicalizedResourceString(e){let r=mQ(e.url)||"/",i="";i+=`/${this.factory.accountName}${r}`;let n=AQ(e.url),s={};if(n){let o=[];for(let a in n)if(Object.prototype.hasOwnProperty.call(n,a)){let c=a.toLowerCase();s[c]=n[a],o.push(c)}o.sort();for(let a of o)i+=`
${a}:${decodeURIComponent(s[a])}`}return i}};var oi=class extends qy{accountName;accountKey;constructor(e,r){super(),this.accountName=e,this.accountKey=Buffer.from(r,"base64")}create(e,r){return new vx(e,r,this)}computeHMACSHA256(e){return(0,a1e.createHmac)("sha256",this.accountKey).update(e,"utf8").digest("base64")}};var an=bf("storage-common");var ru;(function(t){t[t.EXPONENTIAL=0]="EXPONENTIAL",t[t.FIXED=1]="FIXED"})(ru||(ru={}));var Zm={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:ru.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},GNt=new rc("The operation was aborted."),_x=class extends Bf{retryOptions;constructor(e,r,i=Zm){super(e,r),this.retryOptions={retryPolicyType:i.retryPolicyType?i.retryPolicyType:Zm.retryPolicyType,maxTries:i.maxTries&&i.maxTries>=1?Math.floor(i.maxTries):Zm.maxTries,tryTimeoutInMs:i.tryTimeoutInMs&&i.tryTimeoutInMs>=0?i.tryTimeoutInMs:Zm.tryTimeoutInMs,retryDelayInMs:i.retryDelayInMs&&i.retryDelayInMs>=0?Math.min(i.retryDelayInMs,i.maxRetryDelayInMs?i.maxRetryDelayInMs:Zm.maxRetryDelayInMs):Zm.retryDelayInMs,maxRetryDelayInMs:i.maxRetryDelayInMs&&i.maxRetryDelayInMs>=0?i.maxRetryDelayInMs:Zm.maxRetryDelayInMs,secondaryHost:i.secondaryHost?i.secondaryHost:Zm.secondaryHost}}async sendRequest(e){return this.attemptSendRequest(e,!1,1)}async attemptSendRequest(e,r,i){let n=e.clone(),s=r||!this.retryOptions.secondaryHost||!(e.method==="GET"||e.method==="HEAD"||e.method==="OPTIONS")||i%2===1;s||(n.url=pQ(n.url,this.retryOptions.secondaryHost)),this.retryOptions.tryTimeoutInMs&&(n.url=Xm(n.url,Qd.Parameters.TIMEOUT,Math.floor(this.retryOptions.tryTimeoutInMs/1e3).toString()));let o;try{if(an.info(`RetryPolicy: =====> Try=${i} ${s?"Primary":"Secondary"}`),o=await this._nextPolicy.sendRequest(n),!this.shouldRetry(s,i,o))return o;r=r||!s&&o.status===404}catch(a){if(an.error(`RetryPolicy: Caught error, message: ${a.message}, code: ${a.code}`),!this.shouldRetry(s,i,o,a))throw a}return await this.delay(s,i,e.abortSignal),this.attemptSendRequest(e,r,++i)}shouldRetry(e,r,i,n){if(r>=this.retryOptions.maxTries)return an.info(`RetryPolicy: Attempt(s) ${r} >= maxTries ${this.retryOptions.maxTries}, no further try.`),!1;let s=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"];if(n){for(let o of s)if(n.name.toUpperCase().includes(o)||n.message.toUpperCase().includes(o)||n.code&&n.code.toString().toUpperCase()===o)return an.info(`RetryPolicy: Network error ${o} found, will retry.`),!0}if(i||n){let o=i?i.status:n?n.statusCode:0;if(!e&&o===404)return an.info("RetryPolicy: Secondary access with 404, will retry."),!0;if(o===503||o===500)return an.info(`RetryPolicy: Will retry for status code ${o}.`),!0}if(i&&i?.status>=400){let o=i.headers.get(rt.X_MS_CopySourceErrorCode);if(o!==void 0)switch(o){case"InternalError":case"OperationTimedOut":case"ServerBusy":return!0}}return n?.code==="PARSE_ERROR"&&n?.message.startsWith('Error "Error: Unclosed root tag')?(an.info("RetryPolicy: Incomplete XML response likely due to service timeout, will retry."),!0):!1}async delay(e,r,i){let n=0;if(e)switch(this.retryOptions.retryPolicyType){case ru.EXPONENTIAL:n=Math.min((Math.pow(2,r-1)-1)*this.retryOptions.retryDelayInMs,this.retryOptions.maxRetryDelayInMs);break;case ru.FIXED:n=this.retryOptions.retryDelayInMs;break}else n=Math.random()*1e3;return an.info(`RetryPolicy: Delay for ${n}ms`),gQ(n,i,GNt)}};var xx=class{retryOptions;constructor(e){this.retryOptions=e}create(e,r){return new _x(e,r,this.retryOptions)}};var HNt="storageBrowserPolicy";function c1e(){return{name:HNt,async sendRequest(t,e){return Xt||((t.method==="GET"||t.method==="HEAD")&&(t.url=Xm(t.url,Qd.Parameters.FORCE_BROWSER_NO_CACHE,new Date().getTime().toString())),t.headers.delete(rt.COOKIE),t.headers.delete(rt.CONTENT_LENGTH)),e(t)}}}var jNt="StorageCorrectContentLengthPolicy";function u1e(){function t(e){e.body&&(typeof e.body=="string"||Buffer.isBuffer(e.body))&&e.body.length>0&&e.headers.set(rt.CONTENT_LENGTH,Buffer.byteLength(e.body))}return{name:jNt,async sendRequest(e,r){return t(e),r(e)}}}var VNt="storageRetryPolicy",Jw={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:ru.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},zNt=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"],$Nt=new rc("The operation was aborted.");function l1e(t={}){let e=t.retryPolicyType??Jw.retryPolicyType,r=t.maxTries??Jw.maxTries,i=t.retryDelayInMs??Jw.retryDelayInMs,n=t.maxRetryDelayInMs??Jw.maxRetryDelayInMs,s=t.secondaryHost??Jw.secondaryHost,o=t.tryTimeoutInMs??Jw.tryTimeoutInMs;function a({isPrimaryRetry:u,attempt:l,response:f,error:h}){if(l>=r)return an.info(`RetryPolicy: Attempt(s) ${l} >= maxTries ${r}, no further try.`),!1;if(h){for(let d of zNt)if(h.name.toUpperCase().includes(d)||h.message.toUpperCase().includes(d)||h.code&&h.code.toString().toUpperCase()===d)return Line truncated
`)+`
`+i(s)+n(s),a=(0,s1e.createHmac)("sha256",t.accountKey).update(o,"utf8").digest("base64");s.headers.set(rt.AUTHORIZATION,`SharedKey ${t.accountName}:${a}`)}function r(s,o){let a=s.headers.get(o);return!a||o===rt.CONTENT_LENGTH&&a==="0"?"":a}function i(s){let o=[];for(let[c,u]of s.headers)c.toLowerCase().startsWith(rt.PREFIX_FOR_STORAGE)&&o.push({name:c,value:u});o.sort((c,u)=>lQ(c.name.toLowerCase(),u.name.toLowerCase())),o=o.filter((c,u,l)=>!(u>0&&c.name.toLowerCase()===l[u-1].name.toLowerCase()));let a="";return o.forEach(c=>{a+=`${c.name.toLowerCase().trimRight()}:${c.value.trimLeft()}
`}),a}function n(s){let o=aQ(s.url)||"/",a="";a+=`/${t.accountName}${o}`;let c=cQ(s.url),u={};if(c){let l=[];for(let f in c)if(Object.prototype.hasOwnProperty.call(c,f)){let h=f.toLowerCase();u[h]=c[f],l.push(h)}l.sort();for(let f of l)a+=`
${f}:${decodeURIComponent(u[f])}`}return a}return{name:kNt,async sendRequest(s,o){return e(s),o(s)}}}var QNt="storageRequestFailureDetailsParserPolicy";function o1e(){return{name:QNt,async sendRequest(t,e){try{return await e(t)}catch(r){throw typeof r=="object"&&r!==null&&r.response&&r.response.parsedBody&&r.response.parsedBody.code==="InvalidHeaderValue"&&r.response.parsedBody.HeaderName==="x-ms-version"&&(r.message=`The provided service version is not enabled on this storage account. Please see https://learn.microsoft.com/rest/api/storageservices/versioning-for-the-azure-storage-services for additional information.
`),r}}}}var a1e=require("node:crypto"),fQ=class{accountName;userDelegationKey;key;constructor(e,r){this.accountName=e,this.userDelegationKey=r,this.key=Buffer.from(r.value,"base64")}computeHMACSHA256(e){return(0,a1e.createHmac)("sha256",this.key).update(e,"utf8").digest("base64")}};var hQ="12.31.0",dQ="2026-02-06";var pQ="https://storage.azure.com/.default",Rd={Parameters:{FORCE_BROWSER_NO_CACHE:"_",SIGNATURE:"sig",SNAPSHOT:"snapshot",VERSIONID:"versionid",TIMEOUT:"timeout"}};var al="",SJ="*",LNt=1*1024*1024;var FNt=4*LNt;var c1e="AES256",u1e="DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;",l1e=["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"],f1e=["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"],h1e="BlobUsesCustomerSpecifiedEncryption",d1e="BlobDoesNotUseCustomerSpecifiedEncryption",p1e=["10000","10001","10002","10003","10004","10100","10101","10102","10103","10104","11000","11001","11002","11003","11004","11100","11101","11102","11103","11104"];function Td(t){if(!t||typeof t!="object")return!1;let e=t;return Array.isArray(e.factories)&&typeof e.options=="object"&&typeof e.toServiceClientOptions=="function"}var w_=class{factories;options;constructor(e,r={}){this.factories=e,this.options=r}toServiceClientOptions(){return{httpClient:this.options.httpClient,requestPolicyFactories:this.factories}}};function vi(t,e={}){t||(t=new qr);let r=new w_([],e);return r._credential=t,r}function MNt(t){let e=[UNt,m1e,qNt,GNt,HNt,jNt,zNt];if(t.factories.length){let r=t.factories.filter(i=>!e.some(n=>n(i)));if(r.length){let i=r.some(n=>VNt(n));return{wrappedPolicies:ZW(r),afterRetry:i}}}}function BJ(t){let{httpClient:e,...r}=t.options,i=t._coreHttpClient;i||(i=e?eJ(e):CJ(),t._coreHttpClient=i);let n=t._corePipeline;if(!n){let s=`azsdk-js-azure-storage-blob/${hQ}`,o=r.userAgentOptions&&r.userAgentOptions.userAgentPrefix?`${r.userAgentOptions.userAgentPrefix} ${s}`:`${s}`;n=i_({...r,loggingOptions:{additionalAllowedHeaderNames:l1e,additionalAllowedQueryParameters:f1e,logger:tQ.info},userAgentOptions:{userAgentPrefix:o},serializationOptions:{stringifyXML:eQ,serializerOptions:{xml:{xmlCharKey:"#"}}},deserializationOptions:{parseXML:bJ,serializerOptions:{xml:{xmlCharKey:"#"}}}}),n.removePolicy({phase:"Retry"}),n.removePolicy({name:RW}),n.addPolicy(i1e()),n.addPolicy(n1e(r.retryOptions),{phase:"Retry"}),n.addPolicy(o1e()),n.addPolicy(r1e());let a=MNt(t);a&&n.addPolicy(a.wrappedPolicies,a.afterRetry?{afterPhase:"Retry"}:void 0);let c=vJ(t);Ya(c)?n.addPolicy(Qw({credential:c,scopes:r.audience??pQ Line truncated
`),s=e.computeHMACSHA256(n);return{sasQueryParameters:new hl(t.version,s,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:n}}function U2t(t,e){if(t=qy(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",i=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",i=t.versionId));let n;t.permissions&&(t.blobName?n=kf.parse(t.permissions.toString()).toString():n=Qf.parse(t.permissions.toString()).toString());let s=[n||"",t.startsOn?Zt(t.startsOn,!1):"",t.expiresOn?Zt(t.expiresOn,!1):"",Uy(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?fl(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,i,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 hl(t.version,o,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:s}}function q2t(t,e){if(t=qy(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",i=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",i=t.versionId));let n;t.permissions&&(t.blobName?n=kf.parse(t.permissions.toString()).toString():n=Qf.parse(t.permissions.toString()).toString());let s=[n||"",t.startsOn?Zt(t.startsOn,!1):"",t.expiresOn?Zt(t.expiresOn,!1):"",Uy(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?fl(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,i,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 hl(t.version,o,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,void 0,void 0,void 0,t.encryptionScope),stringToSign:s}}function G2t(t,e){if(t=qy(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",i=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",i=t.versionId));let n;t.permissions&&(t.blobName?n=kf.parse(t.permissions.toString()).toString():n=Qf.parse(t.permissions.toString()).toString());let s=[n||"",t.startsOn?Zt(t.startsOn,!1):"",t.expiresOn?Zt(t.expiresOn,!1):"",Uy(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Zt(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Zt(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.ipRange?fl(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,i,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),o=e.computeHMACSHA256(s);return{sasQueryParameters:new hl(t.version,o,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,e.userDelegationKey),stringToSign:s}}function H2t(t,e){if(t=qy(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",i=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",i=t.versionId));let n;t.permissions&&(t.blobName?n=kf.parse(t.permissions.toString()).toString():n=Qf.parse(t.permissions.toString()).toString());let s=[n||"",t.startsOn?Zt(t.startsOn,!1):"",t.expiresOn?Zt(t.expiresOn,!1):"",Uy(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Zt(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Zt(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?fl(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,i,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),o=e.computeHMACSHA256(s);return{sasQueryParameters:new hl(t.version,o,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,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId),stringToSign:s}}function j2t(t,e){if(t=qy(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",i=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",i=t.versionId));let n;t.permissions&&(t.blobName?n=kf.parse(t.permissions.toString()).toString():n=Qf.parse(t.permissions.toString()).toString());let s=[n||"",t.startsOn?Zt(t.startsOn,!1):"",t.expiresOn?Zt(t.expiresOn,!1):"",Uy(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Zt(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Zt(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?fl(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,i,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),o=e.computeHMACSHA256(s);return{sasQueryParameters:new hl(t.version,o,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,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId,t.encryptionScope),stringToSign:s}}function V2t(t,e){if(t=qy(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",i=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",i=t.versionId));let n;t.permissions&&(t.blobName?n=kf.parse(t.permissions.toString()).toString():n=Qf.parse(t.permissions.toString()).toString());let s=[n||"",t.startsOn?Zt(t.startsOn,!1):"",t.expiresOn?Zt(t.expiresOn,!1):"",Uy(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Zt(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Zt(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,void 0,t.delegatedUserObjectId,t.ipRange?fl(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,i,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),o=e.computeHMACSHA256(s);return{sasQueryParameters:new hl(t.version,o,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,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId,t.encryptionScope,t.delegatedUserObjectId),stringToSign:s}}function Uy(t,e,r){let i=[`/blob/${t}/${e}`];return r&&i.push(`/${r}`),i.join("")}function qy(t){let e=t.version?t.version:dQ;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 O_=class{_leaseId;_url;_containerOrBlobOperation;_isContainer;get leaseId(){return this._leaseId}get url(){return this._url}constructor(e,r){let i=e.storageClientContext;this._url=e.url,e.name===void 0?(this._isContainer=!0,this._containerOrBlobOperation=i.container):(this._isContainer=!1,this._containerOrBlobOperation=i.blob),r||(r=Pw()),this._leaseId=r}async acquireLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==al||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==al||r.conditions?.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 Re.withSpan("BlobLeaseClient-acquireLease",r,async i=>Ue(await this._containerOrBlobOperation.acquireLease({abortSignal:r.abortSignal,duration:e,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},proposedLeaseId:this._leaseId,tracingOptions:i.tracingOptions})))}async changeLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==al||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==al||r.conditions?.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 Re.withSpan("BlobLeaseClient-changeLease",r,async i=>{let n=Ue(await this._containerOrBlobOperation.changeLease(this._leaseId,e,{abortSignal:r.abortSignal,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},tracingOptions:i.tracingOptions}));return this._leaseId=e,n})}async releaseLease(e={}){if(this._isContainer&&(e.conditions?.ifMatch&&e.conditions?.ifMatch!==al||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==al||e.conditions?.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 Re.withSpan("BlobLeaseClient-releaseLease",e,async r=>Ue(await this._containerOrBlobOperation.releaseLease(this._leaseId,{abortSignal:e.abortSignal,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},tracingOptions:r.tracingOptions})))}async renewLease(e={}){if(this._isContainer&&(e.conditions?.ifMatch&&e.conditions?.ifMatch!==al||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==al||e.conditions?.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 Re.withSpan("BlobLeaseClient-renewLease",e,async r=>this._containerOrBlobOperation.renewLease(this._leaseId,{abortSignal:e.ab Line truncated
If you are using self-hosted runners, please make sure your runner has access to all GitHub endpoints: 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"}};eC.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var Vy=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.
More info on storage limits: https://docs.github.com/en/billing/managing-billing-for-github-actions/about-billing-for-github-actions#calculating-minute-and-storage-spending`),this.name="UsageError"}};Vy.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var H_=class extends Error{constructor(e){super(e),this.name="RateLimitError"}};var tOt=function(t,e,r,i){function n(s){return s instanceof r?s:new r(function(o){o(s)})}return new(r||(r=Promise))(function(s,o){function a(l){try{u(i.next(l))}catch(f){o(f)}}function c(l){try{u(i.throw(l))}catch(f){o(f)}}function u(l){l.done?s(l.value):n(l.value).then(a,c)}u((i=i.apply(t,e||[])).next())})},mX=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),i=Date.now()-this.startTime,n=(e/(1024*1024)/(i/1e3)).toFixed(1);Hi(`Sent ${e} of ${this.contentLength} (${r}%), ${n} 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()}};function yDe(t,e,r){return tOt(this,void 0,void 0,function*(){var i;let n=new dl(t),s=n.getBlockBlobClient(),o=new mX((i=r?.archiveSizeBytes)!==null&&i!==void 0?i:0),a={blockSize:r?.uploadChunkSize,concurrency:r?.uploadConcurrency,maxSingleShotSize:128*1024*1024,onProgress:o.onProgress()};try{o.startDisplayTimer(),ce(`BlobClient: ${n.name}:${n.accountName}:${n.containerName}`);let c=yield s.uploadFile(e,a);if(c._response.status>=400)throw new yL(`uploadCacheArchiveSDK: upload failed with status code ${c._response.status}`);return c}catch(c){throw il(`uploadCacheArchiveSDK: internal error uploading cache archive: ${c.message}`),c}finally{o.stopDisplayTimer()}})}var bDe=P(require("buffer"),1),Lf=P(require("fs"),1),wDe=P(require("stream"),1),CDe=P(require("util"),1);var EL=function(t,e,r,i){function n(s){return s instanceof r?s:new r(function(o){o(s)})}return new(r||(r=Promise))(function(s,o){function a(l){try{u(i.next(l))}catch(f){o(f)}}function c(l){try{u(i.throw(l))}catch(f){o(f)}}function u(l){l.done?s(l.value):n(l.value).then(a,c)}u((i=i.apply(t,e||[])).next())})};function bL(t){return t?t>=200&&t<300:!1}function rOt(t){return t?t>=500:!0}function iOt(t){return t?[rr.BadGateway,rr.ServiceUnavailable,rr.GatewayTimeout].includes(t):!1}function nOt(t){return EL(this,void 0,void 0,function*(){return new Promise(e=>setTimeout(e,t))})}function EDe(t,e,r){return EL(this,arguments,void 0,function*(i,n,s,o=zP,a=$P,c=void 0){let u="",l=1;for(;l<=o;){let f,h,d=!1;try{f=yield n()}catch(m){c&&(f=c(m)),d=!0,u=m.message}if(f&&(h=s(f),!rOt(h)))return f;if(h&&(d=iOt(h),u=`Cache service responded with ${h}`),ce(`${i} - Attempt ${l} of ${o} failed with error: ${u}`),!d){ce(`${i} - Error is not retryable`);break}yield nOt(a),l++}throw Error(`${i} failed: ${u}`)})}function j_(t,e){return EL(this,arguments,void 0,function*(r,i,n=zP,s=$P){return yield EDe(r,i,o=>o.statusCode,n,s,o=>{if(o instanceof rf)return{statusCode:o.statusCode,result:null,headers:{},error:o}})})}function tC(t,e){return EL(this,arguments,void 0,function*(r,i,n=zP,s=$P){return yield EDe(r,i,o=>o.message.statusCode,n,s)})}var eu=function(t,e,r,i){function n(s){return s instanceof r?s:new r(function(o){o(s)})}return new(r||(r=Promise))(function(s,o){function a(l){try{u(i.next(l))}catch(f){o(f)}}function c(l){try{u(i.throw(l))}catch(f){o(f)}}function u(l){l.done?s(l.value):n(l.value).then(a,c)}u((i=i.apply(t,e||[])).next())})};function sOt(t,e){return eu(this,void 0,void 0,function*(){yield CDe.promisify(wDe.pipeline)(t.message,e)})}var wL=class{constructor(e){this.contentLength=e,this.segmentIndex=0,this.segmentSize=0,this.segmentOffset=0,this.receivedBytes=0,this.displayedComplete=!1,this.startTime=Date.now()}nextSegment(e){this.segmentOffset=this.segmentOffset+this.segmentSize,this.segmentIndex=this.segmentIndex+1,this.segmentSize=e,this.receivedBytes=0,ce(`Downloading segment at offset ${this.segmentOffset} with length ${this.segmentSize}...`)}setReceivedBytes(e){this.receivedBytes=e}getTransferredBytes(){return this.segmentOffset+this.receivedBytes}isDone(){return this.getTransferredBytes()===this.contentLength}display(){if(this.displayedComplete)return;let e=this.segmentOffset+this.receivedBytes,r=(100*(e/this.contentLength)).toFixed(1),i=Date.now()-this.startTime,n=(e/(1024*1024)/(i/1e3)).toFixed(1);Hi(`Received ${e} of ${this.contentLength} (${r}%), ${n} MBs/sec`),this.isDone()&&(this.displayedComplete=!0)}onProgress(){return e=>{this.setReceivedBytes(e.loadedBytes)}}startDisplayTi Line truncated
Other caches with similar key:`);for(let a of s?.artifactCaches||[])ce(`Cache Key: ${a?.cacheKey}, Cache Version: ${a?.cacheVersion}, Cache Scope: ${a?.scope}, Cache Created: ${a?.creationTime}`)}}})}function EX(t,e,r){return ua(this,void 0,void 0,function*(){let i=new DDe.URL(t),n=vDe(r);i.hostname.endsWith(".blob.core.windows.net")?n.useAzureSdk?yield SDe(t,e,n):n.concurrentBlobDownloads?yield IDe(t,e,n):yield CL(t,e):yield CL(t,e)})}function PDe(t,e,r){return ua(this,void 0,void 0,function*(){let i=yX(),n=vw(e,r?.compressionMethod,r?.enableCrossOsArchive),s={key:t,version:n,cacheSize:r?.cacheSize};return yield j_("reserveCache",()=>ua(this,void 0,void 0,function*(){return i.postJson(z_("caches"),s)}))})}function NDe(t,e){return`bytes ${t}-${e}/*`}function dOt(t,e,r,i,n){return ua(this,void 0,void 0,function*(){ce(`Uploading chunk of size ${n-i+1} bytes at offset ${i} with content range: ${NDe(i,n)}`);let s={"Content-Type":"application/octet-stream","Content-Range":NDe(i,n)},o=yield tC(`uploadChunk (start: ${i}, end: ${n})`,()=>ua(this,void 0,void 0,function*(){return t.sendStream("PATCH",e,r(),s)}));if(!bL(o.message.statusCode))throw new Error(`Cache service responded with ${o.message.statusCode} during upload chunk.`)})}function pOt(t,e,r,i){return ua(this,void 0,void 0,function*(){let n=uf(r),s=z_(`caches/${e.toString()}`),o=rC.openSync(r,"r"),a=AX(i),c=j$("uploadConcurrency",a.uploadConcurrency),u=j$("uploadChunkSize",a.uploadChunkSize),l=[...new Array(c).keys()];ce("Awaiting all uploads");let f=0;try{yield Promise.all(l.map(()=>ua(this,void 0,void 0,function*(){for(;f<n;){let h=Math.min(n-f,u),d=f,m=f+h-1;f+=u,yield dOt(t,s,()=>rC.createReadStream(r,{fd:o,start:d,end:m,autoClose:!1}).on("error",A=>{throw new Error(`Cache upload failed because file read failed with ${A.message}`)}),d,m)}})))}finally{rC.closeSync(o)}})}function mOt(t,e,r){return ua(this,void 0,void 0,function*(){let i={size:r};return yield j_("commitCache",()=>ua(this,void 0,void 0,function*(){return t.postJson(z_(`caches/${e.toString()}`),i)}))})}function bX(t,e,r,i){return ua(this,void 0,void 0,function*(){if(AX(i).useAzureSdk){if(!r)throw new Error("Azure Storage SDK can only be used when a signed URL is provided.");yield yDe(r,e,i)}else{let s=yX();ce("Upload cache"),yield pOt(s,t,e,i),ce("Commiting cache");let o=uf(e);Hi(`Cache Size: ~${Math.round(o/(1024*1024))} MB (${o} B)`);let a=yield mOt(s,t,o);if(!bL(a.statusCode))throw new Error(`Cache service responded with ${a.statusCode} during commit cache.`);Hi("Cache saved successfully")}})}var _Oe=P(wOe(),1),Ri=P(_i(),1),tc=P(_i(),1),Yy=P(_i(),1),Ky=P(_i(),1),Xy=P(_i(),1);var pZ=P(_i(),1),mZ=P(_i(),1),BOe=P(_i(),1),vOe=P(_i(),1),xOe=P(_i(),1);var fZ=P(_i(),1),hZ=P(_i(),1),COe=P(_i(),1),IOe=P(_i(),1),SOe=P(_i(),1),dZ=class extends SOe.MessageType{constructor(){super("github.actions.results.entities.v1.CacheScope",[{no:1,name:"scope",kind:"scalar",T:9},{no:2,name:"permission",kind:"scalar",T:3}])}create(e){let r={scope:"",permission:"0"};return globalThis.Object.defineProperty(r,IOe.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,COe.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,i,n){let s=n??this.create(),o=e.pos+r;for(;e.pos<o;){let[a,c]=e.tag();switch(a){case 1:s.scope=e.string();break;case 2:s.permission=e.int64().toString();break;default:let u=i.readUnknownField;if(u==="throw")throw new globalThis.Error(`Unknown field ${a} (wire type ${c}) for ${this.typeName}`);let l=e.skip(c);u!==!1&&(u===!0?hZ.UnknownFieldHandler.onRead:u)(this.typeName,s,a,c,l)}}return s}internalBinaryWrite(e,r,i){e.scope!==""&&r.tag(1,fZ.WireType.LengthDelimited).string(e.scope),e.permission!=="0"&&r.tag(2,fZ.WireType.Varint).int64(e.permission);let n=i.writeUnknownFields;return n!==!1&&(n==!0?hZ.UnknownFieldHandler.onWrite:n)(this.typeName,e,r),r}},uF=new dZ;var AZ=class extends xOe.MessageType{constructor(){super("github.actions.results.entities.v1.CacheMetadata",[{no:1,name:"repository_id",kind:"scalar",T:3},{no:2,name:"scope",kind:"message",repeat:1,T:()=>uF}])}create(e){let r={repositoryId:"0",scope:[]};return globalThis.Object.defineProperty(r,vOe.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,BOe.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,i,n){let s=n??this.create(),o=e.pos+r;for(;e.pos<o;){let[a,c]=e.tag();switch(a){case 1:s.repositoryId=e.int64().toString();break;case 2:s.scope.push(uF.internalBinaryRead(e,e.uint32(),i));break;default:let u=i.readUnknownField;if(u==="throw")throw new globalThis.Error(`Unknown field ${a} (wire type ${c}) for ${this.typeName}`);let l=e.skip(c);u!==!1&&(u===!0?mZ.UnknownFieldHandler.onRead:u)(this.typeName,s,a,c,l)}}return s}internalBinaryWrite(e,r,i){e.repositoryId!=="0"&&r.tag(1,pZ.WireType.Varint).int64(e.repositoryId);for(let s=0;s<e.scope.length;s++)uF.internalBinaryWrite(e.scope[s],r.tag(2,pZ.WireType.LengthDelimited).fork(),i).join();let n=i.writeUnknownFields;return n!==!1&&(n==!0?mZ.UnknownFieldHandler.onWrite:n)(th Line truncated
`));let i=yield NZ(r,"create");yield DZ(i,t)})}var EC=function(t,e,r,i){function n(s){return s instanceof r?s:new r(function(o){o(s)})}return new(r||(r=Promise))(function(s,o){function a(l){try{u(i.next(l))}catch(f){o(f)}}function c(l){try{u(i.throw(l))}catch(f){o(f)}}function u(l){l.done?s(l.value):n(l.value).then(a,c)}u((i=i.apply(t,e||[])).next())})},Al=class t extends Error{constructor(e){super(e),this.name="ValidationError",Object.setPrototypeOf(this,t.prototype)}},yC=class t extends Error{constructor(e){super(e),this.name="ReserveCacheError",Object.setPrototypeOf(this,t.prototype)}},dF=class t extends Error{constructor(e){super(e),this.name="FinalizeCacheError",Object.setPrototypeOf(this,t.prototype)}};function DOe(t){if(!t||t.length===0)throw new Al("Path Validation Error: At least one directory or file path is required")}function kZ(t){if(t.length>512)throw new Al(`Key Validation Error: ${t} cannot be larger than 512 characters.`);if(!/^[^,]*$/.test(t))throw new Al(`Key Validation Error: ${t} cannot contain commas.`)}function QZ(){return V_()==="v2"?!!process.env.ACTIONS_RESULTS_URL:!!process.env.ACTIONS_CACHE_URL}function OOe(t,e,r,i){return EC(this,arguments,void 0,function*(n,s,o,a,c=!1){let u=V_();return ce(`Cache service version: ${u}`),DOe(n),u==="v2"?yield Tkt(n,s,o,a,c):yield Rkt(n,s,o,a,c)})}function Rkt(t,e,r,i){return EC(this,arguments,void 0,function*(n,s,o,a,c=!1){o=o||[];let u=[s,...o];if(ce("Resolved Keys:"),ce(JSON.stringify(u)),u.length>10)throw new Al("Key Validation Error: Keys are limited to a maximum of 10.");for(let h of u)kZ(h);let l=yield Vx(),f="";try{let h=yield ODe(u,n,{compressionMethod:l,enableCrossOsArchive:c});if(!h?.archiveLocation)return;if(a?.lookupOnly)return Hi("Lookup only - skipping download"),h.cacheKey;f=cR.join(yield Hx(),qm(l)),ce(`Archive Path: ${f}`),yield EX(h.archiveLocation,f,a),dy()&&(yield aR(f,l));let d=uf(f);return Hi(`Cache Size: ~${Math.round(d/(1024*1024))} MB (${d} B)`),yield OZ(f,l),Hi("Cache restored successfully"),h.cacheKey}catch(h){let d=h;if(d.name===Al.name)throw h;d instanceof rf&&typeof d.statusCode=="number"&&d.statusCode>=500?vx(`Failed to restore: ${h.message}`):il(`Failed to restore: ${h.message}`)}finally{try{yield jx(f)}catch(h){ce(`Failed to delete archive: ${h}`)}}})}function Tkt(t,e,r,i){return EC(this,arguments,void 0,function*(n,s,o,a,c=!1){a=Object.assign(Object.assign({},a),{useAzureSdk:!0}),o=o||[];let u=[s,...o];if(ce("Resolved Keys:"),ce(JSON.stringify(u)),u.length>10)throw new Al("Key Validation Error: Keys are limited to a maximum of 10.");for(let f of u)kZ(f);let l="";try{let f=TZ(),h=yield Vx(),d={key:s,restoreKeys:o,version:vw(n,h,c)},m=yield f.GetCacheEntryDownloadURL(d);if(!m.ok){ce(`Cache not found for version ${d.version} of keys: ${u.join(", ")}`);return}if(d.key!==m.matchedKey?Hi(`Cache hit for restore-key: ${m.matchedKey}`):Hi(`Cache hit for: ${m.matchedKey}`),a?.lookupOnly)return Hi("Lookup only - skipping download"),m.matchedKey;l=cR.join(yield Hx(),qm(h)),ce(`Archive path: ${l}`),ce(`Starting download of archive to: ${l}`),yield EX(m.signedDownloadUrl,l,a);let y=uf(l);return Hi(`Cache Size: ~${Math.round(y/(1024*1024))} MB (${y} B)`),dy()&&(yield aR(l,h)),yield OZ(l,h),Hi("Cache restored successfully"),m.matchedKey}catch(f){let h=f;if(h.name===Al.name)throw f;h instanceof rf&&typeof h.statusCode=="number"&&h.statusCode>=500?vx(`Failed to restore: ${f.message}`):il(`Failed to restore: ${f.message}`)}finally{try{l&&(yield jx(l))}catch(f){ce(`Failed to delete archive: ${f}`)}}})}function LZ(t,e,r){return EC(this,arguments,void 0,function*(i,n,s,o=!1){let a=V_();return ce(`Cache service version: ${a}`),DOe(i),kZ(n),a==="v2"?yield Dkt(i,n,s,o):yield Nkt(i,n,s,o)})}function Nkt(t,e,r){return EC(this,arguments,void 0,function*(i,n,s,o=!1){var a,c,u,l,f;let h=yield Vx(),d=-1,m=yield H$(i);if(ce("Cache Paths:"),ce(`${JSON.stringify(m)}`),m.length===0)throw new Error("Path Validation Error: Path(s) specified in the action for caching do(es) not exist, hence no cache is being saved.");let A=yield Hx(),y=cR.join(A,qm(h));ce(`Archive Path: ${y}`);try{yield PZ(A,m,h),dy()&&(yield aR(y,h));let g=10*1024*1024*1024,E=uf(y);if(ce(`File Size: ${E}`),E>g&&!gX())throw new Error(`Cache size of ~${Math.round(E/(1024*1024))} MB (${E} B) is over the 10GB limit, not saving cache.`);ce("Reserving Cache");let C=yield PDe(n,i,{compressionMethod:h,enableCrossOsArchive:o,cacheSize:E});if(!((a=C?.result)===null||a===void 0)&&a.cacheId)d=(c=C?.result)===null||c===void 0?void 0:c.cacheId;else throw C?.statusCode===400?new Error((l=(u=C?.error)===null||u===void 0?void 0:u.message)!==null&&l!==void 0?l:`Cache size of ~${Math.round(E/(1024*1024))} MB (${E} B) is over the data cap limit, not saving cache.`):new yC(`Unable to reserve cache with key ${n}, another job may be creating this cache. More details: ${(f=C?.error)===null||f===void 0?void 0:f.message}`);ce(`Saving Cache (ID: ${d})`),yield bX(d,y,"",s)}catch(g){let E=g;if(E.name===Al.nam Line truncated
`,o).length:f,u?(a===null?0:a.length)+c.length:0,u?c.length+f:0);return h<d},parse:function(i,n,s,o){let{bom:a,comment_no_infix:c,encoding:u,from_line:l,ltrim:f,max_record_size:h,raw:d,relax_quotes:m,rtrim:A,skip_empty_lines:y,to:g,to_line:E}=this.options,{comment:C,escape:S,quote:N,record_delimiter:Q}=this.options,{bomSkipped:T,previousBuf:G,rawBuffer:D,escapeIsQuote:H}=this.state,L;if(G===void 0)if(i===void 0){o();return}else L=i;else G!==void 0&&i===void 0?L=G:L=Buffer.concat([G,i]);if(T===!1)if(a===!1)this.state.bomSkipped=!0;else if(L.length<3){if(n===!1){this.state.previousBuf=L;return}}else{for(let De in IC)if(IC[De].compare(L,0,IC[De].length)===0){let de=IC[De].length;this.state.bufBytesStart+=de,L=L.slice(de);let Qe=hee({...this.original_options,encoding:De});for(let Y in Qe)this.options[Y]=Qe[Y];({comment:C,escape:S,quote:N}=this.options);break}this.state.bomSkipped=!0}let Z=L.length,$;for($=0;$<Z&&!this.__needMoreData($,Z,n);$++){if(this.state.wasRowDelimiter===!0&&(this.info.lines++,this.state.wasRowDelimiter=!1),E!==-1&&this.info.lines>E){this.state.stop=!0,o();return}this.state.quoting===!1&&Q.length===0&&this.__autoDiscoverRecordDelimiter(L,$)&&(Q=this.options.record_delimiter);let De=L[$];if(d===!0&&D.append(De),(De===tMt||De===rMt)&&this.state.wasRowDelimiter===!1&&(this.state.wasRowDelimiter=!0),this.state.escaping===!0)this.state.escaping=!1;else{if(S!==null&&this.state.quoting===!0&&this.__isEscape(L,$,De)&&$+S.length<Z)if(H){if(this.__isQuote(L,$+S.length)){this.state.escaping=!0,$+=S.length-1;continue}}else{this.state.escaping=!0,$+=S.length-1;continue}if(this.state.commenting===!1&&this.__isQuote(L,$))if(this.state.quoting===!0){let Y=L[$+N.length],Te=A&&this.__isCharTrimable(L,$+N.length),Ie=C!==null&&this.__compareBytes(C,L,$+N.length,Y),Rt=this.__isDelimiter(L,$+N.length,Y),Lt=Q.length===0?this.__autoDiscoverRecordDelimiter(L,$+N.length):this.__isRecordDelimiter(Y,L,$+N.length);if(S!==null&&this.__isEscape(L,$,De)&&this.__isQuote(L,$+S.length))$+=S.length-1;else if(!Y||Rt||Lt||Ie||Te){this.state.quoting=!1,this.state.wasQuoting=!0,$+=N.length-1;continue}else if(m===!1){let Zi=this.__error(new Ht("CSV_INVALID_CLOSING_QUOTE",["Invalid Closing Quote:",`got "${String.fromCharCode(Y)}"`,`at line ${this.info.lines}`,"instead of delimiter, record delimiter, trimable character","(if activated) or comment"],this.options,this.__infoField()));if(Zi!==void 0)return Zi}else this.state.quoting=!1,this.state.wasQuoting=!0,this.state.field.prepend(N),$+=N.length-1}else if(this.state.field.length!==0){if(m===!1){let Y=this.__infoField(),Te=Object.keys(IC).map(Rt=>IC[Rt].equals(this.state.field.toString())?Rt:!1).filter(Boolean)[0],Ie=this.__error(new Ht("INVALID_OPENING_QUOTE",["Invalid Opening Quote:",`a quote is found on field ${JSON.stringify(Y.column)} at line ${Y.lines}, value is ${JSON.stringify(this.state.field.toString(u))}`,Te?`(${Te} bom)`:void 0],this.options,Y,{field:this.state.field}));if(Ie!==void 0)return Ie}}else{this.state.quoting=!0,$+=N.length-1;continue}if(this.state.quoting===!1){let Y=this.__isRecordDelimiter(De,L,$);if(Y!==0){if(this.state.commenting&&this.state.wasQuoting===!1&&this.state.record.length===0&&this.state.field.length===0)this.info.comment_lines++;else{if(this.state.enabled===!1&&this.info.lines+(this.state.wasRowDelimiter===!0?1:0)>=l){this.state.enabled=!0,this.__resetField(),this.__resetRecord(),$+=Y-1;continue}if(y===!0&&this.state.wasQuoting===!1&&this.state.record.length===0&&this.state.field.length===0){this.info.empty_lines++,$+=Y-1;continue}this.info.bytes=this.state.bufBytesStart+$;let Rt=this.__onField();if(Rt!==void 0)return Rt;this.info.bytes=this.state.bufBytesStart+$+Y;let Lt=this.__onRecord(s);if(Lt!==void 0)return Lt;if(g!==-1&&this.info.records>=g){this.state.stop=!0,o();return}}this.state.commenting=!1,$+=Y-1;continue}if(this.state.commenting)continue;if(C!==null&&(c===!1||this.state.record.length===0&&this.state.field.length===0)&&this.__compareBytes(C,L,$,De)!==0){this.state.commenting=!0;continue}let Te=this.__isDelimiter(L,$,De);if(Te!==0){this.info.bytes=this.state.bufBytesStart+$;let Ie=this.__onField();if(Ie!==void 0)return Ie;$+=Te-1;continue}}}if(this.state.commenting===!1&&h!==0&&this.state.record_length+this.state.field.length>h)return this.__error(new Ht("CSV_MAX_RECORD_SIZE",["Max Record Size:","record exceed the maximum number of tolerated bytes",`of ${h}`,`at line ${this.info.lines}`],this.options,this.__infoField()));let de=f===!1||this.state.quoting===!0||this.state.field.length!==0||!this.__isCharTrimable(L,$),Qe=A===!1||this.state.wasQuoting===!1;if(de===!0&&Qe===!0)this.state.field.append(De);else{if(A===!0&&!this.__isCharTrimable(L,$))return this.__error(new Ht("CSV_NON_TRIMABLE_CHAR_AFTER_CLOSING_QUOTE",["Invalid Closing Quote:","found non trimable byte after quote",`at line ${this.info.lines}`],this.options,this.__infoField()));de===!1&&($+=this.__isCharTrimable(L,$)-1);continue}}if(n===!0)if(this.state.quoting===!0){le Line truncated
`+i(s)+n(s),a=(0,f1e.createHmac)("sha256",t.accountKey).update(o,"utf8").digest("base64");s.headers.set(rt.AUTHORIZATION,`SharedKey ${t.accountName}:${a}`)}function r(s,o){let a=s.headers.get(o);return!a||o===rt.CONTENT_LENGTH&&a==="0"?"":a}function i(s){let o=[];for(let[c,u]of s.headers)c.toLowerCase().startsWith(rt.PREFIX_FOR_STORAGE)&&o.push({name:c,value:u});o.sort((c,u)=>yQ(c.name.toLowerCase(),u.name.toLowerCase())),o=o.filter((c,u,l)=>!(u>0&&c.name.toLowerCase()===l[u-1].name.toLowerCase()));let a="";return o.forEach(c=>{a+=`${c.name.toLowerCase().trimRight()}:${c.value.trimLeft()}
`}),a}function n(s){let o=mQ(s.url)||"/",a="";a+=`/${t.accountName}${o}`;let c=AQ(s.url),u={};if(c){let l=[];for(let f in c)if(Object.prototype.hasOwnProperty.call(c,f)){let h=f.toLowerCase();u[h]=c[f],l.push(h)}l.sort();for(let f of l)a+=`
${f}:${decodeURIComponent(u[f])}`}return a}return{name:WNt,async sendRequest(s,o){return e(s),o(s)}}}var JNt="storageRequestFailureDetailsParserPolicy";function h1e(){return{name:JNt,async sendRequest(t,e){try{return await e(t)}catch(r){throw typeof r=="object"&&r!==null&&r.response&&r.response.parsedBody&&r.response.parsedBody.code==="InvalidHeaderValue"&&r.response.parsedBody.HeaderName==="x-ms-version"&&(r.message=`The provided service version is not enabled on this storage account. Please see https://learn.microsoft.com/rest/api/storageservices/versioning-for-the-azure-storage-services for additional information.
`),r}}}}var d1e=require("node:crypto"),EQ=class{accountName;userDelegationKey;key;constructor(e,r){this.accountName=e,this.userDelegationKey=r,this.key=Buffer.from(r.value,"base64")}computeHMACSHA256(e){return(0,d1e.createHmac)("sha256",this.key).update(e,"utf8").digest("base64")}};var bQ="12.31.0",wQ="2026-02-06";var CQ="https://storage.azure.com/.default",Ld={Parameters:{FORCE_BROWSER_NO_CACHE:"_",SIGNATURE:"sig",SNAPSHOT:"snapshot",VERSIONID:"versionid",TIMEOUT:"timeout"}};var pl="",RJ="*",YNt=1*1024*1024;var KNt=4*YNt;var p1e="AES256",m1e="DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;",A1e=["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"],g1e=["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"],y1e="BlobUsesCustomerSpecifiedEncryption",E1e="BlobDoesNotUseCustomerSpecifiedEncryption",b1e=["10000","10001","10002","10003","10004","10100","10101","10102","10103","10104","11000","11001","11002","11003","11004","11100","11101","11102","11103","11104"];function Md(t){if(!t||typeof t!="object")return!1;let e=t;return Array.isArray(e.factories)&&typeof e.options=="object"&&typeof e.toServiceClientOptions=="function"}var Rx=class{factories;options;constructor(e,r={}){this.factories=e,this.options=r}toServiceClientOptions(){return{httpClient:this.options.httpClient,requestPolicyFactories:this.factories}}};function _i(t,e={}){t||(t=new qr);let r=new Rx([],e);return r._credential=t,r}function XNt(t){let e=[ZNt,w1e,e1t,t1t,r1t,i1t,s1t];if(t.factories.length){let r=t.factories.filter(i=>!e.some(n=>n(i)));if(r.length){let i=r.some(n=>n1t(n));return{wrappedPolicies:nJ(r),afterRetry:i}}}}function TJ(t){let{httpClient:e,...r}=t.options,i=t._coreHttpClient;i||(i=e?sJ(e):_J(),t._coreHttpClient=i);let n=t._corePipeline;if(!n){let s=`azsdk-js-azure-storage-blob/${bQ}`,o=r.userAgentOptions&&r.userAgentOptions.userAgentPrefix?`${r.userAgentOptions.userAgentPrefix} ${s}`:`${s}`;n=fx({...r,loggingOptions:{additionalAllowedHeaderNames:A1e,additionalAllowedQueryParameters:g1e,logger:uQ.info},userAgentOptions:{userAgentPrefix:o},serializationOptions:{stringifyXML:cQ,serializerOptions:{xml:{xmlCharKey:"#"}}},deserializationOptions:{parseXML:BJ,serializerOptions:{xml:{xmlCharKey:"#"}}}}),n.removePolicy({phase:"Retry"}),n.removePolicy({name:PW}),n.addPolicy(u1e()),n.addPolicy(l1e(r.retryOptions),{phase:"Retry"}),n.addPolicy(h1e()),n.addPolicy(c1e());let a=XNt(t);a&&n.addPolicy(a.wrappedPolicies,a.afterRetry?{afterPhase:"Retry"}:void 0);let c=NJ(t);ic(c)?n.addPolicy(Hw({credential:c,scopes:r.audience??CQ Line truncated
`),s=e.computeHMACSHA256(n);return{sasQueryParameters:new El(t.version,s,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:n}}function Z2t(t,e){if(t=Yy(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",i=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",i=t.versionId));let n;t.permissions&&(t.blobName?n=Gf.parse(t.permissions.toString()).toString():n=Hf.parse(t.permissions.toString()).toString());let s=[n||"",t.startsOn?Zt(t.startsOn,!1):"",t.expiresOn?Zt(t.expiresOn,!1):"",Jy(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?yl(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,i,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 El(t.version,o,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:s}}function eDt(t,e){if(t=Yy(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",i=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",i=t.versionId));let n;t.permissions&&(t.blobName?n=Gf.parse(t.permissions.toString()).toString():n=Hf.parse(t.permissions.toString()).toString());let s=[n||"",t.startsOn?Zt(t.startsOn,!1):"",t.expiresOn?Zt(t.expiresOn,!1):"",Jy(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?yl(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,i,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 El(t.version,o,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,void 0,void 0,void 0,t.encryptionScope),stringToSign:s}}function tDt(t,e){if(t=Yy(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",i=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",i=t.versionId));let n;t.permissions&&(t.blobName?n=Gf.parse(t.permissions.toString()).toString():n=Hf.parse(t.permissions.toString()).toString());let s=[n||"",t.startsOn?Zt(t.startsOn,!1):"",t.expiresOn?Zt(t.expiresOn,!1):"",Jy(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Zt(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Zt(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.ipRange?yl(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,i,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),o=e.computeHMACSHA256(s);return{sasQueryParameters:new El(t.version,o,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,e.userDelegationKey),stringToSign:s}}function rDt(t,e){if(t=Yy(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",i=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",i=t.versionId));let n;t.permissions&&(t.blobName?n=Gf.parse(t.permissions.toString()).toString():n=Hf.parse(t.permissions.toString()).toString());let s=[n||"",t.startsOn?Zt(t.startsOn,!1):"",t.expiresOn?Zt(t.expiresOn,!1):"",Jy(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Zt(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Zt(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?yl(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,i,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),o=e.computeHMACSHA256(s);return{sasQueryParameters:new El(t.version,o,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,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId),stringToSign:s}}function iDt(t,e){if(t=Yy(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",i=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",i=t.versionId));let n;t.permissions&&(t.blobName?n=Gf.parse(t.permissions.toString()).toString():n=Hf.parse(t.permissions.toString()).toString());let s=[n||"",t.startsOn?Zt(t.startsOn,!1):"",t.expiresOn?Zt(t.expiresOn,!1):"",Jy(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Zt(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Zt(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?yl(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,i,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),o=e.computeHMACSHA256(s);return{sasQueryParameters:new El(t.version,o,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,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId,t.encryptionScope),stringToSign:s}}function nDt(t,e){if(t=Yy(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",i=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",i=t.versionId));let n;t.permissions&&(t.blobName?n=Gf.parse(t.permissions.toString()).toString():n=Hf.parse(t.permissions.toString()).toString());let s=[n||"",t.startsOn?Zt(t.startsOn,!1):"",t.expiresOn?Zt(t.expiresOn,!1):"",Jy(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Zt(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Zt(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,void 0,t.delegatedUserObjectId,t.ipRange?yl(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,i,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),o=e.computeHMACSHA256(s);return{sasQueryParameters:new El(t.version,o,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,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId,t.encryptionScope,t.delegatedUserObjectId),stringToSign:s}}function Jy(t,e,r){let i=[`/blob/${t}/${e}`];return r&&i.push(`/${r}`),i.join("")}function Yy(t){let e=t.version?t.version:wQ;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 qx=class{_leaseId;_url;_containerOrBlobOperation;_isContainer;get leaseId(){return this._leaseId}get url(){return this._url}constructor(e,r){let i=e.storageClientContext;this._url=e.url,e.name===void 0?(this._isContainer=!0,this._containerOrBlobOperation=i.container):(this._isContainer=!1,this._containerOrBlobOperation=i.blob),r||(r=qw()),this._leaseId=r}async acquireLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==pl||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==pl||r.conditions?.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 Re.withSpan("BlobLeaseClient-acquireLease",r,async i=>Ue(await this._containerOrBlobOperation.acquireLease({abortSignal:r.abortSignal,duration:e,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},proposedLeaseId:this._leaseId,tracingOptions:i.tracingOptions})))}async changeLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==pl||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==pl||r.conditions?.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 Re.withSpan("BlobLeaseClient-changeLease",r,async i=>{let n=Ue(await this._containerOrBlobOperation.changeLease(this._leaseId,e,{abortSignal:r.abortSignal,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},tracingOptions:i.tracingOptions}));return this._leaseId=e,n})}async releaseLease(e={}){if(this._isContainer&&(e.conditions?.ifMatch&&e.conditions?.ifMatch!==pl||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==pl||e.conditions?.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 Re.withSpan("BlobLeaseClient-releaseLease",e,async r=>Ue(await this._containerOrBlobOperation.releaseLease(this._leaseId,{abortSignal:e.abortSignal,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},tracingOptions:r.tracingOptions})))}async renewLease(e={}){if(this._isContainer&&(e.conditions?.ifMatch&&e.conditions?.ifMatch!==pl||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==pl||e.conditions?.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 Re.withSpan("BlobLeaseClient-renewLease",e,async r=>this._containerOrBlobOperation.renewLease(this._leaseId,{abortSignal:e.ab Line truncated
If you are using self-hosted runners, please make sure your runner has access to all GitHub endpoints: 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"}};aC.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var eE=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.
More info on storage limits: https://docs.github.com/en/billing/managing-billing-for-github-actions/about-billing-for-github-actions#calculating-minute-and-storage-spending`),this.name="UsageError"}};eE.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var Kx=class extends Error{constructor(e){super(e),this.name="RateLimitError"}};var pOt=function(t,e,r,i){function n(s){return s instanceof r?s:new r(function(o){o(s)})}return new(r||(r=Promise))(function(s,o){function a(l){try{u(i.next(l))}catch(f){o(f)}}function c(l){try{u(i.throw(l))}catch(f){o(f)}}function u(l){l.done?s(l.value):n(l.value).then(a,c)}u((i=i.apply(t,e||[])).next())})},bX=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),i=Date.now()-this.startTime,n=(e/(1024*1024)/(i/1e3)).toFixed(1);$i(`Sent ${e} of ${this.contentLength} (${r}%), ${n} 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()}};function SDe(t,e,r){return pOt(this,void 0,void 0,function*(){var i;let n=new bl(t),s=n.getBlockBlobClient(),o=new bX((i=r?.archiveSizeBytes)!==null&&i!==void 0?i:0),a={blockSize:r?.uploadChunkSize,concurrency:r?.uploadConcurrency,maxSingleShotSize:128*1024*1024,onProgress:o.onProgress()};try{o.startDisplayTimer(),ce(`BlobClient: ${n.name}:${n.accountName}:${n.containerName}`);let c=yield s.uploadFile(e,a);if(c._response.status>=400)throw new vL(`uploadCacheArchiveSDK: upload failed with status code ${c._response.status}`);return c}catch(c){throw ll(`uploadCacheArchiveSDK: internal error uploading cache archive: ${c.message}`),c}finally{o.stopDisplayTimer()}})}var vDe=O(require("buffer"),1),jf=O(require("fs"),1),_De=O(require("stream"),1),xDe=O(require("util"),1);var _L=function(t,e,r,i){function n(s){return s instanceof r?s:new r(function(o){o(s)})}return new(r||(r=Promise))(function(s,o){function a(l){try{u(i.next(l))}catch(f){o(f)}}function c(l){try{u(i.throw(l))}catch(f){o(f)}}function u(l){l.done?s(l.value):n(l.value).then(a,c)}u((i=i.apply(t,e||[])).next())})};function xL(t){return t?t>=200&&t<300:!1}function mOt(t){return t?t>=500:!0}function AOt(t){return t?[lr.BadGateway,lr.ServiceUnavailable,lr.GatewayTimeout].includes(t):!1}function gOt(t){return _L(this,void 0,void 0,function*(){return new Promise(e=>setTimeout(e,t))})}function BDe(t,e,r){return _L(this,arguments,void 0,function*(i,n,s,o=ek,a=tk,c=void 0){let u="",l=1;for(;l<=o;){let f,h,d=!1;try{f=yield n()}catch(m){c&&(f=c(m)),d=!0,u=m.message}if(f&&(h=s(f),!mOt(h)))return f;if(h&&(d=AOt(h),u=`Cache service responded with ${h}`),ce(`${i} - Attempt ${l} of ${o} failed with error: ${u}`),!d){ce(`${i} - Error is not retryable`);break}yield gOt(a),l++}throw Error(`${i} failed: ${u}`)})}function Xx(t,e){return _L(this,arguments,void 0,function*(r,i,n=ek,s=tk){return yield BDe(r,i,o=>o.statusCode,n,s,o=>{if(o instanceof lf)return{statusCode:o.statusCode,result:null,headers:{},error:o}})})}function cC(t,e){return _L(this,arguments,void 0,function*(r,i,n=ek,s=tk){return yield BDe(r,i,o=>o.message.statusCode,n,s)})}var au=function(t,e,r,i){function n(s){return s instanceof r?s:new r(function(o){o(s)})}return new(r||(r=Promise))(function(s,o){function a(l){try{u(i.next(l))}catch(f){o(f)}}function c(l){try{u(i.throw(l))}catch(f){o(f)}}function u(l){l.done?s(l.value):n(l.value).then(a,c)}u((i=i.apply(t,e||[])).next())})};function yOt(t,e){return au(this,void 0,void 0,function*(){yield xDe.promisify(_De.pipeline)(t.message,e)})}var RL=class{constructor(e){this.contentLength=e,this.segmentIndex=0,this.segmentSize=0,this.segmentOffset=0,this.receivedBytes=0,this.displayedComplete=!1,this.startTime=Date.now()}nextSegment(e){this.segmentOffset=this.segmentOffset+this.segmentSize,this.segmentIndex=this.segmentIndex+1,this.segmentSize=e,this.receivedBytes=0,ce(`Downloading segment at offset ${this.segmentOffset} with length ${this.segmentSize}...`)}setReceivedBytes(e){this.receivedBytes=e}getTransferredBytes(){return this.segmentOffset+this.receivedBytes}isDone(){return this.getTransferredBytes()===this.contentLength}display(){if(this.displayedComplete)return;let e=this.segmentOffset+this.receivedBytes,r=(100*(e/this.contentLength)).toFixed(1),i=Date.now()-this.startTime,n=(e/(1024*1024)/(i/1e3)).toFixed(1);$i(`Received ${e} of ${this.contentLength} (${r}%), ${n} MBs/sec`),this.isDone()&&(this.displayedComplete=!0)}onProgress(){return e=>{this.setReceivedBytes(e.loadedBytes)}}startDisplayTi Line truncated
Other caches with similar key:`);for(let a of s?.artifactCaches||[])ce(`Cache Key: ${a?.cacheKey}, Cache Version: ${a?.cacheVersion}, Cache Scope: ${a?.scope}, Cache Created: ${a?.creationTime}`)}}})}function SX(t,e,r){return pa(this,void 0,void 0,function*(){let i=new MDe.URL(t),n=DDe(r);i.hostname.endsWith(".blob.core.windows.net")?n.useAzureSdk?yield TDe(t,e,n):n.concurrentBlobDownloads?yield RDe(t,e,n):yield TL(t,e):yield TL(t,e)})}function UDe(t,e,r){return pa(this,void 0,void 0,function*(){let i=IX(),n=Ow(e,r?.compressionMethod,r?.enableCrossOsArchive),s={key:t,version:n,cacheSize:r?.cacheSize};return yield Xx("reserveCache",()=>pa(this,void 0,void 0,function*(){return i.postJson(eR("caches"),s)}))})}function LDe(t,e){return`bytes ${t}-${e}/*`}function vOt(t,e,r,i,n){return pa(this,void 0,void 0,function*(){ce(`Uploading chunk of size ${n-i+1} bytes at offset ${i} with content range: ${LDe(i,n)}`);let s={"Content-Type":"application/octet-stream","Content-Range":LDe(i,n)},o=yield cC(`uploadChunk (start: ${i}, end: ${n})`,()=>pa(this,void 0,void 0,function*(){return t.sendStream("PATCH",e,r(),s)}));if(!xL(o.message.statusCode))throw new Error(`Cache service responded with ${o.message.statusCode} during upload chunk.`)})}function _Ot(t,e,r,i){return pa(this,void 0,void 0,function*(){let n=Af(r),s=eR(`caches/${e.toString()}`),o=uC.openSync(r,"r"),a=wX(i),c=J$("uploadConcurrency",a.uploadConcurrency),u=J$("uploadChunkSize",a.uploadChunkSize),l=[...new Array(c).keys()];ce("Awaiting all uploads");let f=0;try{yield Promise.all(l.map(()=>pa(this,void 0,void 0,function*(){for(;f<n;){let h=Math.min(n-f,u),d=f,m=f+h-1;f+=u,yield vOt(t,s,()=>uC.createReadStream(r,{fd:o,start:d,end:m,autoClose:!1}).on("error",A=>{throw new Error(`Cache upload failed because file read failed with ${A.message}`)}),d,m)}})))}finally{uC.closeSync(o)}})}function xOt(t,e,r){return pa(this,void 0,void 0,function*(){let i={size:r};return yield Xx("commitCache",()=>pa(this,void 0,void 0,function*(){return t.postJson(eR(`caches/${e.toString()}`),i)}))})}function BX(t,e,r,i){return pa(this,void 0,void 0,function*(){if(wX(i).useAzureSdk){if(!r)throw new Error("Azure Storage SDK can only be used when a signed URL is provided.");yield SDe(r,e,i)}else{let s=IX();ce("Upload cache"),yield _Ot(s,t,e,i),ce("Commiting cache");let o=Af(e);$i(`Cache Size: ~${Math.round(o/(1024*1024))} MB (${o} B)`);let a=yield xOt(s,t,o);if(!xL(a.statusCode))throw new Error(`Cache service responded with ${a.statusCode} during commit cache.`);$i("Cache saved successfully")}})}var POe=O(_Oe(),1),Ti=O(Ri(),1),cc=O(Ri(),1),sE=O(Ri(),1),oE=O(Ri(),1),aE=O(Ri(),1);var EZ=O(Ri(),1),bZ=O(Ri(),1),NOe=O(Ri(),1),DOe=O(Ri(),1),OOe=O(Ri(),1);var AZ=O(Ri(),1),gZ=O(Ri(),1),xOe=O(Ri(),1),ROe=O(Ri(),1),TOe=O(Ri(),1),yZ=class extends TOe.MessageType{constructor(){super("github.actions.results.entities.v1.CacheScope",[{no:1,name:"scope",kind:"scalar",T:9},{no:2,name:"permission",kind:"scalar",T:3}])}create(e){let r={scope:"",permission:"0"};return globalThis.Object.defineProperty(r,ROe.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,xOe.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,i,n){let s=n??this.create(),o=e.pos+r;for(;e.pos<o;){let[a,c]=e.tag();switch(a){case 1:s.scope=e.string();break;case 2:s.permission=e.int64().toString();break;default:let u=i.readUnknownField;if(u==="throw")throw new globalThis.Error(`Unknown field ${a} (wire type ${c}) for ${this.typeName}`);let l=e.skip(c);u!==!1&&(u===!0?gZ.UnknownFieldHandler.onRead:u)(this.typeName,s,a,c,l)}}return s}internalBinaryWrite(e,r,i){e.scope!==""&&r.tag(1,AZ.WireType.LengthDelimited).string(e.scope),e.permission!=="0"&&r.tag(2,AZ.WireType.Varint).int64(e.permission);let n=i.writeUnknownFields;return n!==!1&&(n==!0?gZ.UnknownFieldHandler.onWrite:n)(this.typeName,e,r),r}},gM=new yZ;var wZ=class extends OOe.MessageType{constructor(){super("github.actions.results.entities.v1.CacheMetadata",[{no:1,name:"repository_id",kind:"scalar",T:3},{no:2,name:"scope",kind:"message",repeat:1,T:()=>gM}])}create(e){let r={repositoryId:"0",scope:[]};return globalThis.Object.defineProperty(r,DOe.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,NOe.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,i,n){let s=n??this.create(),o=e.pos+r;for(;e.pos<o;){let[a,c]=e.tag();switch(a){case 1:s.repositoryId=e.int64().toString();break;case 2:s.scope.push(gM.internalBinaryRead(e,e.uint32(),i));break;default:let u=i.readUnknownField;if(u==="throw")throw new globalThis.Error(`Unknown field ${a} (wire type ${c}) for ${this.typeName}`);let l=e.skip(c);u!==!1&&(u===!0?bZ.UnknownFieldHandler.onRead:u)(this.typeName,s,a,c,l)}}return s}internalBinaryWrite(e,r,i){e.repositoryId!=="0"&&r.tag(1,EZ.WireType.Varint).int64(e.repositoryId);for(let s=0;s<e.scope.length;s++)gM.internalBinaryWrite(e.scope[s],r.tag(2,EZ.WireType.LengthDelimited).fork(),i).join();let n=i.writeUnknownFields;return n!==!1&&(n==!0?bZ.UnknownFieldHandler.onWrite:n)(th Line truncated
`));let i=yield QZ(r,"create");yield LZ(i,t)})}var vC=function(t,e,r,i){function n(s){return s instanceof r?s:new r(function(o){o(s)})}return new(r||(r=Promise))(function(s,o){function a(l){try{u(i.next(l))}catch(f){o(f)}}function c(l){try{u(i.throw(l))}catch(f){o(f)}}function u(l){l.done?s(l.value):n(l.value).then(a,c)}u((i=i.apply(t,e||[])).next())})},Il=class t extends Error{constructor(e){super(e),this.name="ValidationError",Object.setPrototypeOf(this,t.prototype)}},BC=class t extends Error{constructor(e){super(e),this.name="ReserveCacheError",Object.setPrototypeOf(this,t.prototype)}},wM=class t extends Error{constructor(e){super(e),this.name="FinalizeCacheError",Object.setPrototypeOf(this,t.prototype)}};function MOe(t){if(!t||t.length===0)throw new Il("Path Validation Error: At least one directory or file path is required")}function UZ(t){if(t.length>512)throw new Il(`Key Validation Error: ${t} cannot be larger than 512 characters.`);if(!/^[^,]*$/.test(t))throw new Il(`Key Validation Error: ${t} cannot contain commas.`)}function qZ(){return Zx()==="v2"?!!process.env.ACTIONS_RESULTS_URL:!!process.env.ACTIONS_CACHE_URL}function FOe(t,e,r,i){return vC(this,arguments,void 0,function*(n,s,o,a,c=!1){let u=Zx();return ce(`Cache service version: ${u}`),MOe(n),u==="v2"?yield Hkt(n,s,o,a,c):yield Gkt(n,s,o,a,c)})}function Gkt(t,e,r,i){return vC(this,arguments,void 0,function*(n,s,o,a,c=!1){o=o||[];let u=[s,...o];if(ce("Resolved Keys:"),ce(JSON.stringify(u)),u.length>10)throw new Il("Key Validation Error: Keys are limited to a maximum of 10.");for(let h of u)UZ(h);let l=yield Z_(),f="";try{let h=yield FDe(u,n,{compressionMethod:l,enableCrossOsArchive:c});if(!h?.archiveLocation)return;if(a?.lookupOnly)return $i("Lookup only - skipping download"),h.cacheKey;f=AR.join(yield K_(),Vm(l)),ce(`Archive Path: ${f}`),yield SX(h.archiveLocation,f,a),Cy()&&(yield mR(f,l));let d=Af(f);return $i(`Cache Size: ~${Math.round(d/(1024*1024))} MB (${d} B)`),yield MZ(f,l),$i("Cache restored successfully"),h.cacheKey}catch(h){let d=h;if(d.name===Il.name)throw h;d instanceof lf&&typeof d.statusCode=="number"&&d.statusCode>=500?P_(`Failed to restore: ${h.message}`):ll(`Failed to restore: ${h.message}`)}finally{try{yield X_(f)}catch(h){ce(`Failed to delete archive: ${h}`)}}})}function Hkt(t,e,r,i){return vC(this,arguments,void 0,function*(n,s,o,a,c=!1){a=Object.assign(Object.assign({},a),{useAzureSdk:!0}),o=o||[];let u=[s,...o];if(ce("Resolved Keys:"),ce(JSON.stringify(u)),u.length>10)throw new Il("Key Validation Error: Keys are limited to a maximum of 10.");for(let f of u)UZ(f);let l="";try{let f=kZ(),h=yield Z_(),d={key:s,restoreKeys:o,version:Ow(n,h,c)},m=yield f.GetCacheEntryDownloadURL(d);if(!m.ok){ce(`Cache not found for version ${d.version} of keys: ${u.join(", ")}`);return}if(d.key!==m.matchedKey?$i(`Cache hit for restore-key: ${m.matchedKey}`):$i(`Cache hit for: ${m.matchedKey}`),a?.lookupOnly)return $i("Lookup only - skipping download"),m.matchedKey;l=AR.join(yield K_(),Vm(h)),ce(`Archive path: ${l}`),ce(`Starting download of archive to: ${l}`),yield SX(m.signedDownloadUrl,l,a);let y=Af(l);return $i(`Cache Size: ~${Math.round(y/(1024*1024))} MB (${y} B)`),Cy()&&(yield mR(l,h)),yield MZ(l,h),$i("Cache restored successfully"),m.matchedKey}catch(f){let h=f;if(h.name===Il.name)throw f;h instanceof lf&&typeof h.statusCode=="number"&&h.statusCode>=500?P_(`Failed to restore: ${f.message}`):ll(`Failed to restore: ${f.message}`)}finally{try{l&&(yield X_(l))}catch(f){ce(`Failed to delete archive: ${f}`)}}})}function GZ(t,e,r){return vC(this,arguments,void 0,function*(i,n,s,o=!1){let a=Zx();return ce(`Cache service version: ${a}`),MOe(i),UZ(n),a==="v2"?yield Vkt(i,n,s,o):yield jkt(i,n,s,o)})}function jkt(t,e,r){return vC(this,arguments,void 0,function*(i,n,s,o=!1){var a,c,u,l,f;let h=yield Z_(),d=-1,m=yield W$(i);if(ce("Cache Paths:"),ce(`${JSON.stringify(m)}`),m.length===0)throw new Error("Path Validation Error: Path(s) specified in the action for caching do(es) not exist, hence no cache is being saved.");let A=yield K_(),y=AR.join(A,Vm(h));ce(`Archive Path: ${y}`);try{yield FZ(A,m,h),Cy()&&(yield mR(y,h));let g=10*1024*1024*1024,E=Af(y);if(ce(`File Size: ${E}`),E>g&&!CX())throw new Error(`Cache size of ~${Math.round(E/(1024*1024))} MB (${E} B) is over the 10GB limit, not saving cache.`);ce("Reserving Cache");let C=yield UDe(n,i,{compressionMethod:h,enableCrossOsArchive:o,cacheSize:E});if(!((a=C?.result)===null||a===void 0)&&a.cacheId)d=(c=C?.result)===null||c===void 0?void 0:c.cacheId;else throw C?.statusCode===400?new Error((l=(u=C?.error)===null||u===void 0?void 0:u.message)!==null&&l!==void 0?l:`Cache size of ~${Math.round(E/(1024*1024))} MB (${E} B) is over the data cap limit, not saving cache.`):new BC(`Unable to reserve cache with key ${n}, another job may be creating this cache. More details: ${(f=C?.error)===null||f===void 0?void 0:f.message}`);ce(`Saving Cache (ID: ${d})`),yield BX(d,y,"",s)}catch(g){let E=g;if(E.name===Il.nam Line truncated
`,o).length:f,u?(a===null?0:a.length)+c.length:0,u?c.length+f:0);return h<d},parse:function(i,n,s,o){let{bom:a,comment_no_infix:c,encoding:u,from_line:l,ltrim:f,max_record_size:h,raw:d,relax_quotes:m,rtrim:A,skip_empty_lines:y,to:g,to_line:E}=this.options,{comment:C,escape:S,quote:N,record_delimiter:Q}=this.options,{bomSkipped:T,previousBuf:G,rawBuffer:D,escapeIsQuote:H}=this.state,L;if(G===void 0)if(i===void 0){o();return}else L=i;else G!==void 0&&i===void 0?L=G:L=Buffer.concat([G,i]);if(T===!1)if(a===!1)this.state.bomSkipped=!0;else if(L.length<3){if(n===!1){this.state.previousBuf=L;return}}else{for(let De in qC)if(qC[De].compare(L,0,qC[De].length)===0){let de=qC[De].length;this.state.bufBytesStart+=de,L=L.slice(de);let Qe=lte({...this.original_options,encoding:De});for(let K in Qe)this.options[K]=Qe[K];({comment:C,escape:S,quote:N}=this.options);break}this.state.bomSkipped=!0}let Z=L.length,W;for(W=0;W<Z&&!this.__needMoreData(W,Z,n);W++){if(this.state.wasRowDelimiter===!0&&(this.info.lines++,this.state.wasRowDelimiter=!1),E!==-1&&this.info.lines>E){this.state.stop=!0,o();return}this.state.quoting===!1&&Q.length===0&&this.__autoDiscoverRecordDelimiter(L,W)&&(Q=this.options.record_delimiter);let De=L[W];if(d===!0&&D.append(De),(De===d3t||De===p3t)&&this.state.wasRowDelimiter===!1&&(this.state.wasRowDelimiter=!0),this.state.escaping===!0)this.state.escaping=!1;else{if(S!==null&&this.state.quoting===!0&&this.__isEscape(L,W,De)&&W+S.length<Z)if(H){if(this.__isQuote(L,W+S.length)){this.state.escaping=!0,W+=S.length-1;continue}}else{this.state.escaping=!0,W+=S.length-1;continue}if(this.state.commenting===!1&&this.__isQuote(L,W))if(this.state.quoting===!0){let K=L[W+N.length],Te=A&&this.__isCharTrimable(L,W+N.length),Ie=C!==null&&this.__compareBytes(C,L,W+N.length,K),Rt=this.__isDelimiter(L,W+N.length,K),Lt=Q.length===0?this.__autoDiscoverRecordDelimiter(L,W+N.length):this.__isRecordDelimiter(K,L,W+N.length);if(S!==null&&this.__isEscape(L,W,De)&&this.__isQuote(L,W+S.length))W+=S.length-1;else if(!K||Rt||Lt||Ie||Te){this.state.quoting=!1,this.state.wasQuoting=!0,W+=N.length-1;continue}else if(m===!1){let nn=this.__error(new Ht("CSV_INVALID_CLOSING_QUOTE",["Invalid Closing Quote:",`got "${String.fromCharCode(K)}"`,`at line ${this.info.lines}`,"instead of delimiter, record delimiter, trimable character","(if activated) or comment"],this.options,this.__infoField()));if(nn!==void 0)return nn}else this.state.quoting=!1,this.state.wasQuoting=!0,this.state.field.prepend(N),W+=N.length-1}else if(this.state.field.length!==0){if(m===!1){let K=this.__infoField(),Te=Object.keys(qC).map(Rt=>qC[Rt].equals(this.state.field.toString())?Rt:!1).filter(Boolean)[0],Ie=this.__error(new Ht("INVALID_OPENING_QUOTE",["Invalid Opening Quote:",`a quote is found on field ${JSON.stringify(K.column)} at line ${K.lines}, value is ${JSON.stringify(this.state.field.toString(u))}`,Te?`(${Te} bom)`:void 0],this.options,K,{field:this.state.field}));if(Ie!==void 0)return Ie}}else{this.state.quoting=!0,W+=N.length-1;continue}if(this.state.quoting===!1){let K=this.__isRecordDelimiter(De,L,W);if(K!==0){if(this.state.commenting&&this.state.wasQuoting===!1&&this.state.record.length===0&&this.state.field.length===0)this.info.comment_lines++;else{if(this.state.enabled===!1&&this.info.lines+(this.state.wasRowDelimiter===!0?1:0)>=l){this.state.enabled=!0,this.__resetField(),this.__resetRecord(),W+=K-1;continue}if(y===!0&&this.state.wasQuoting===!1&&this.state.record.length===0&&this.state.field.length===0){this.info.empty_lines++,W+=K-1;continue}this.info.bytes=this.state.bufBytesStart+W;let Rt=this.__onField();if(Rt!==void 0)return Rt;this.info.bytes=this.state.bufBytesStart+W+K;let Lt=this.__onRecord(s);if(Lt!==void 0)return Lt;if(g!==-1&&this.info.records>=g){this.state.stop=!0,o();return}}this.state.commenting=!1,W+=K-1;continue}if(this.state.commenting)continue;if(C!==null&&(c===!1||this.state.record.length===0&&this.state.field.length===0)&&this.__compareBytes(C,L,W,De)!==0){this.state.commenting=!0;continue}let Te=this.__isDelimiter(L,W,De);if(Te!==0){this.info.bytes=this.state.bufBytesStart+W;let Ie=this.__onField();if(Ie!==void 0)return Ie;W+=Te-1;continue}}}if(this.state.commenting===!1&&h!==0&&this.state.record_length+this.state.field.length>h)return this.__error(new Ht("CSV_MAX_RECORD_SIZE",["Max Record Size:","record exceed the maximum number of tolerated bytes",`of ${h}`,`at line ${this.info.lines}`],this.options,this.__infoField()));let de=f===!1||this.state.quoting===!0||this.state.field.length!==0||!this.__isCharTrimable(L,W),Qe=A===!1||this.state.wasQuoting===!1;if(de===!0&&Qe===!0)this.state.field.append(De);else{if(A===!0&&!this.__isCharTrimable(L,W))return this.__error(new Ht("CSV_NON_TRIMABLE_CHAR_AFTER_CLOSING_QUOTE",["Invalid Closing Quote:","found non trimable byte after quote",`at line ${this.info.lines}`],this.options,this.__infoField()));de===!1&&(W+=this.__isCharTrimable(L,W)-1);continue}}if(n===!0)if(this.state.quoting===!0){le Line truncated
`,s),Buffer.from(`
`,s),Buffer.from("\r",s)];e:for(let a=0;a<o.length;a++){let c=o[a].length;for(let u=0;u<c;u++)if(o[a][u]!==i[n+u])continue e;return this.options.record_delimiter.push(o[a]),this.state.recordDelimiterMaxLength=o[a].length,o[a].length}return 0},__error:function(i){let{encoding:n,raw:s,skip_records_with_error:o}=this.options,a=typeof i=="string"?new Error(i):i;if(o){if(this.state.recordHasError=!0,this.options.on_skip!==void 0)try{this.options.on_skip(a,s?this.state.rawBuffer.toString(n):void 0)}catch(c){return c}return}else return a},__infoDataSet:function(){return{...this.info,columns:this.options.columns}},__infoRecord:function(){let{columns:i,raw:n,encoding:s}=this.options;return{...this.__infoDataSet(),bytes_records:this.info.bytes,error:this.state.error,header:i===!0,index:this.state.record.length,raw:n?this.state.rawBuffer.toString(s):void 0}},__infoField:function(){let{columns:i}=this.options,n=Array.isArray(i),s=this.info.bytes_records;return{...this.__infoRecord(),bytes_records:s,column:n===!0?i.length>this.state.record.length?i[this.state.record.length].name:null:this.state.record.length,quoting:this.state.wasQuoting}}}};var nc=function(t,e={}){typeof t=="string"&&(t=Buffer.from(t));let r=e&&e.objname?{}:[],i=Yke(e),n=a=>{i.options.objname===void 0?r.push(a):r[a[0]]=a[1]},s=()=>{},o=i.parse(t,!0,n,s);if(o!==void 0)throw o;return r};var Xe=class t{static getInputList(e,r){return this.getList(pw(e),r)}static getList(e,r){let i=[];if(e=="")return i;let n=nc(e,{columns:!1,relaxQuotes:!0,comment:r?.comment,comment_no_infix:r?.commentNoInfix,relaxColumnCount:!0,skipEmptyLines:!0,quote:r?.quote});for(let s of n)s.length==1?r?.ignoreComma?i.push(s[0]):i.push(...s[0].split(",")):r?.ignoreComma?i.push(s.join(",")):i.push(...s);return i.filter(s=>s).map(s=>s.trim())}static getInputNumber(e){let r=pw(e);if(r)return parseInt(r)}static async asyncForEach(e,r){for(let i=0;i<e.length;i++)await r(e[i],i,e)}static isValidURL(e){let r;try{r=new URL(e)}catch{return!1}return r.protocol==="http:"||r.protocol==="https:"}static isValidRef(e){if(t.isValidURL(e))return!0;for(let r of["git://","github.com/","git@"])if(e.startsWith(r))return!0;return!1}static async powershellCommand(e,r){let i=await Zn("powershell",!0),n=e.replace(/'/g,"''").replace(/"|\n|\r/g,""),s=[];if(r)for(let o in r)s.push(`-${o} '${r[o].replace(/'/g,"''").replace(/"|\n|\r/g,"")}'`);return{command:`"${i}"`,args:["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",`& '${n}' ${s.join(" ")}`]}}static isDirectory(e){try{return Kke.default.lstatSync(e).isDirectory()}catch{}return!1}static trimPrefix(e,r){return!e||!r||e.indexOf(r)!==0?e:e.substring(r.length)}static trimSuffix(e,r){if(!e||!r)return e;let i=e.lastIndexOf(r);return i===-1||i+r.length!==e.length?e:e.substring(0,i)}static sleep(e){return new Promise(r=>setTimeout(r,e*1e3))}static hash(e){return dee.default.createHash("sha256").update(e).digest("hex")}static parseBool(e){if(e===void 0)return!1;switch(e){case"1":case"t":case"T":case"true":case"TRUE":case"True":return!0;case"0":case"f":case"F":case"false":case"FALSE":case"False":return!1;default:throw new Error(`parseBool syntax error: ${e}`)}}static parseBoolOrDefault(e,r=!1){try{return this.parseBool(e)}catch{return r}}static formatFileSize(e){if(e===0)return"0 Bytes";let r=1024,i=["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"],n=Math.floor(Math.log(e)/Math.log(r));return parseFloat((e/Math.pow(r,n)).toFixed(2))+" "+i[n]}static generateRandomString(e=10){return dee.default.randomBytes(Math.ceil(e/2)).toString("hex").slice(0,e)}static stringToUnicodeEntities(e){return Array.from(e).map(r=>`&#x${r.charCodeAt(0).toString(16)};`).join("")}static countLines(e){return e.split(/\r\n|\r|\n/).length}static isPathRelativeTo(e,r){let i=AR.default.resolve(e);return AR.default.resolve(r).startsWith(i.endsWith(AR.default.sep)?i:`${i}${AR.default.sep}`)}static formatDuration(e){if(e===0)return"0s";let r=Math.floor(e/1e9),i=Math.floor(r/3600),n=Math.floor(r%3600/60),s=r%60,o=[];return i&&o.push(`${i}h`),n&&o.push(`${n}m`),(s||o.length===0)&&o.push(`${s}s`),o.join("")}};var Ti=class t{static get configDir(){return process.env.DOCKER_CONFIG||gR.default.join(Xke.default.homedir(),".docker")}static configFile(){let e=gR.default.join(t.configDir,"config.json");if(pee.default.existsSync(e))return JSON.parse(pee.default.readFileSync(e,{encoding:"utf-8"}))}static async isAvailable(){return await Zn("docker",!0).then(e=>(K(`Docker.isAvailable ok: ${e}`),!0)).catch(e=>(K(`Docker.isAvailable error: ${e}`),!1))}static async isDaemonRunning(){try{return await t.getExecOutput(["version"],{silent:!0}),!0}catch{return!1}}static async exec(e,r){return qe.exec("docker",e,t.execOptions(r))}static async getExecOutput(e,r){return qe.getExecOutput("docker",e,t.execOptions(r))}static execOptions(e){return e||(e={}),e.env?e.env.DOCKER_CONTENT_TRUST="false":e.env=Object.assign({},process.env,{DOCKER_CONTENT_TRUST:"false"}),e}static async context Line truncated
`,s),Buffer.from("\r",s)];e:for(let a=0;a<o.length;a++){let c=o[a].length;for(let u=0;u<c;u++)if(o[a][u]!==i[n+u])continue e;return this.options.record_delimiter.push(o[a]),this.state.recordDelimiterMaxLength=o[a].length,o[a].length}return 0},__error:function(i){let{encoding:n,raw:s,skip_records_with_error:o}=this.options,a=typeof i=="string"?new Error(i):i;if(o){if(this.state.recordHasError=!0,this.options.on_skip!==void 0)try{this.options.on_skip(a,s?this.state.rawBuffer.toString(n):void 0)}catch(c){return c}return}else return a},__infoDataSet:function(){return{...this.info,columns:this.options.columns}},__infoRecord:function(){let{columns:i,raw:n,encoding:s}=this.options;return{...this.__infoDataSet(),bytes_records:this.info.bytes,error:this.state.error,header:i===!0,index:this.state.record.length,raw:n?this.state.rawBuffer.toString(s):void 0}},__infoField:function(){let{columns:i}=this.options,n=Array.isArray(i),s=this.info.bytes_records;return{...this.__infoRecord(),bytes_records:s,column:n===!0?i.length>this.state.record.length?i[this.state.record.length].name:null:this.state.record.length,quoting:this.state.wasQuoting}}}};var pc=function(t,e={}){typeof t=="string"&&(t=Buffer.from(t));let r=e&&e.objname?{}:[],i=$Le(e),n=a=>{i.options.objname===void 0?r.push(a):r[a[0]]=a[1]},s=()=>{},o=i.parse(t,!0,n,s);if(o!==void 0)throw o;return r};var Ke=class t{static getInputList(e,r){return this.getList(Hc(e,{trimWhitespace:r?.trimWhitespace!==!1}),r)}static getList(e,r){let i=[];if(e=="")return i;let n=pc(e,{columns:!1,relaxQuotes:!0,comment:r?.comment,comment_no_infix:r?.commentNoInfix,relaxColumnCount:!0,skipEmptyLines:!0,quote:r?.quote});for(let s of n)s.length==1?r?.ignoreComma?i.push(s[0]):i.push(...s[0].split(",")):r?.ignoreComma?i.push(s.join(",")):i.push(...s);return i.filter(s=>s).map(s=>r?.trimWhitespace===!1?s:s.trim())}static getInputNumber(e){let r=Hc(e);if(r)return parseInt(r)}static async asyncForEach(e,r){for(let i=0;i<e.length;i++)await r(e[i],i,e)}static isValidURL(e){let r;try{r=new URL(e)}catch{return!1}return r.protocol==="http:"||r.protocol==="https:"}static isValidRef(e){if(t.isValidURL(e))return!0;for(let r of["git://","github.com/","git@"])if(e.startsWith(r))return!0;return!1}static async powershellCommand(e,r){let i=await is("powershell",!0),n=e.replace(/'/g,"''").replace(/"|\n|\r/g,""),s=[];if(r)for(let o in r)s.push(`-${o} '${r[o].replace(/'/g,"''").replace(/"|\n|\r/g,"")}'`);return{command:`"${i}"`,args:["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",`& '${n}' ${s.join(" ")}`]}}static isDirectory(e){try{return WLe.default.lstatSync(e).isDirectory()}catch{}return!1}static trimPrefix(e,r){return!e||!r||e.indexOf(r)!==0?e:e.substring(r.length)}static trimSuffix(e,r){if(!e||!r)return e;let i=e.lastIndexOf(r);return i===-1||i+r.length!==e.length?e:e.substring(0,i)}static sleep(e){return new Promise(r=>setTimeout(r,e*1e3))}static hash(e){return fte.default.createHash("sha256").update(e).digest("hex")}static parseBool(e){if(e===void 0)return!1;switch(e){case"1":case"t":case"T":case"true":case"TRUE":case"True":return!0;case"0":case"f":case"F":case"false":case"FALSE":case"False":return!1;default:throw new Error(`parseBool syntax error: ${e}`)}}static parseBoolOrDefault(e,r=!1){try{return this.parseBool(e)}catch{return r}}static formatFileSize(e){if(e===0)return"0 Bytes";let r=1024,i=["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"],n=Math.floor(Math.log(e)/Math.log(r));return parseFloat((e/Math.pow(r,n)).toFixed(2))+" "+i[n]}static generateRandomString(e=10){return fte.default.randomBytes(Math.ceil(e/2)).toString("hex").slice(0,e)}static compileHandlebars(e,r,i){return JLe.default.compile(e,r)(i)}static stringToUnicodeEntities(e){return Array.from(e).map(r=>`&#x${r.charCodeAt(0).toString(16)};`).join("")}static countLines(e){return e.split(/\r\n|\r|\n/).length}static isPathRelativeTo(e,r){let i=LR.default.resolve(e);return LR.default.resolve(r).startsWith(i.endsWith(LR.default.sep)?i:`${i}${LR.default.sep}`)}static formatDuration(e){if(e===0)return"0s";let r=Math.floor(e/1e9),i=Math.floor(r/3600),n=Math.floor(r%3600/60),s=r%60,o=[];return i&&o.push(`${i}h`),n&&o.push(`${n}m`),(s||o.length===0)&&o.push(`${s}s`),o.join("")}};var Ni=class t{static get configDir(){return process.env.DOCKER_CONFIG||MR.default.join(YLe.default.homedir(),".docker")}static configFile(){let e=MR.default.join(t.configDir,"config.json");if(hte.default.existsSync(e))return JSON.parse(hte.default.readFileSync(e,{encoding:"utf-8"}))}static async isAvailable(){return await is("docker",!0).then(e=>(X(`Docker.isAvailable ok: ${e}`),!0)).catch(e=>(X(`Docker.isAvailable error: ${e}`),!1))}static async isDaemonRunning(){try{return await t.getExecOutput(["version"],{silent:!0}),!0}catch{return!1}}static async exec(e,r){return qe.exec("docker",e,t.execOptions(r))}static async getExecOutput(e,r){return qe.getExecOutput("docker",e,t.execOptions(r))}static execOptions(e){return e||(e={} Line truncated
`+t.errors.map(e=>` - ${e.message}`).join(`
`)}var JMt=class extends Error{constructor(t,e,r){super(WMt(r)),this.request=t,this.headers=e,this.response=r,this.errors=r.errors,this.data=r.data,Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}name="GraphqlResponseError";errors;data},YMt=["method","baseUrl","url","headers","request","query","mediaType","operationName"],KMt=["query","method","url"],QQe=/\/api\/v3\/?$/;function XMt(t,e,r){if(r){if(typeof e=="string"&&"query"in r)return Promise.reject(new Error('[@octokit/graphql] "query" cannot be used as variable name'));for(let o in r)if(KMt.includes(o))return Promise.reject(new Error(`[@octokit/graphql] "${o}" cannot be used as variable name`))}let i=typeof e=="string"?Object.assign({query:e},r):e,n=Object.keys(i).reduce((o,a)=>YMt.includes(a)?(o[a]=i[a],o):(o.variables||(o.variables={}),o.variables[a]=i[a],o),{}),s=i.baseUrl||t.endpoint.DEFAULTS.baseUrl;return QQe.test(s)&&(n.url=s.replace(QQe,"/api/graphql")),t(n).then(o=>{if(o.data.errors){let a={};for(let c of Object.keys(o.headers))a[c]=o.headers[c];throw new JMt(n,a,o.data)}return o.data.data})}function See(t,e){let r=t.defaults(e);return Object.assign((n,s)=>XMt(r,n,s),{defaults:See.bind(null,r),endpoint:r.endpoint})}var _$r=See(wR,{headers:{"user-agent":`octokit-graphql.js/${$Mt} ${nA()}`},method:"POST",url:"/graphql"});function LQe(t){return See(t,{method:"POST",url:"/graphql"})}var Bee="(?:[a-zA-Z0-9_-]+)",FQe="\\.",MQe=new RegExp(`^${Bee}${FQe}${Bee}${FQe}${Bee}$`),ZMt=MQe.test.bind(MQe);async function eUt(t){let e=ZMt(t),r=t.startsWith("v1.")||t.startsWith("ghs_"),i=t.startsWith("ghu_");return{type:"token",token:t,tokenType:e?"app":r?"installation":i?"user-to-server":"oauth"}}function tUt(t){return t.split(/\./).length===3?`bearer ${t}`:`token ${t}`}async function rUt(t,e,r,i){let n=e.endpoint.merge(r,i);return n.headers.authorization=tUt(t),e(n)}var UQe=function(e){if(!e)throw new Error("[@octokit/auth-token] No token passed to createTokenAuth");if(typeof e!="string")throw new Error("[@octokit/auth-token] Token passed to createTokenAuth is not a string");return e=e.replace(/^(token|bearer) +/i,""),Object.assign(eUt.bind(null,e),{hook:rUt.bind(null,e)})};var vee="7.0.6";var qQe=()=>{},iUt=console.warn.bind(console),nUt=console.error.bind(console);function sUt(t={}){return typeof t.debug!="function"&&(t.debug=qQe),typeof t.info!="function"&&(t.info=qQe),typeof t.warn!="function"&&(t.warn=iUt),typeof t.error!="function"&&(t.error=nUt),t}var GQe=`octokit-core.js/${vee} ${nA()}`,GF=class{static VERSION=vee;static defaults(e){return class extends this{constructor(...i){let n=i[0]||{};if(typeof e=="function"){super(e(n));return}super(Object.assign({},e,n,n.userAgent&&e.userAgent?{userAgent:`${n.userAgent} ${e.userAgent}`}:null))}}}static plugins=[];static plugin(...e){let r=this.plugins;return class extends this{static plugins=r.concat(e.filter(n=>!r.includes(n)))}}constructor(e={}){let r=new mQe.Collection,i={baseUrl:wR.endpoint.DEFAULTS.baseUrl,headers:{},request:Object.assign({},e.request,{hook:r.bind(null,"request")}),mediaType:{previews:[],format:""}};if(i.headers["user-agent"]=e.userAgent?`${e.userAgent} ${GQe}`:GQe,e.baseUrl&&(i.baseUrl=e.baseUrl),e.previews&&(i.mediaType.previews=e.previews),e.timeZone&&(i.headers["time-zone"]=e.timeZone),this.request=wR.defaults(i),this.graphql=LQe(this.request).defaults(i),this.log=sUt(e.log),this.hook=r,e.authStrategy){let{authStrategy:s,...o}=e,a=s(Object.assign({request:this.request,log:this.log,octokit:this,octokitOptions:o},e.auth));r.wrap("request",a.hook),this.auth=a}else if(!e.auth)this.auth=async()=>({type:"unauthenticated"});else{let s=UQe(e.auth);r.wrap("request",s.hook),this.auth=s}let n=this.constructor;for(let s=0;s<n.plugins.length;++s)Object.assign(this,n.plugins[s](this,e))}request;graphql;log;hook;auth};var xee="17.0.0";var oUt={actions:{addCustomLabelsToSelfHostedRunnerForOrg:["POST /orgs/{org}/actions/runners/{runner_id}/labels"],addCustomLabelsToSelfHostedRunnerForRepo:["POST /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],addRepoAccessToSelfHostedRunnerGroupInOrg:["PUT /orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/{repository_id}"],addSelectedRepoToOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}"],addSelectedRepoToOrgVariable:["PUT /orgs/{org}/actions/variables/{name}/repositories/{repository_id}"],approveWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/approve"],cancelWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/cancel"],createEnvironmentVariable:["POST /repos/{owner}/{repo}/environments/{environment_name}/variables"],createHostedRunnerForOrg:["POST /orgs/{org}/actions/hosted-runners"],createOrUpdateEnvironmentSecret:["PUT /repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}"],createOrUpdateOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}"],createOrUpdateRepoSecret:["PUT /repos/{owner}/{repo}/actions/secrets/{secret_name}"],cr Line truncated
More info: ${c.url}`);let d=c.range&&c.range.length>0?c.range[0]?.start.line:void 0,m=!1;for(let A of o)if(A.remote||A.path.endsWith(u)&&A.content===l){a.push({title:f,message:h,file:A.path,startLine:d}),m=!0;break}m||K(`Buildx.convertWarningsToGitHubAnnotations: skipping warning without matching Dockerfile ${u}: ${f}`)}return a}};var Oee=P(require("fs"),1),Pee=P(require("path"),1);var VF=class t{buildx;constructor(e){this.buildx=e?.buildx||new Wt}async getCommand(e){return await this.buildx.getCommand(["history",...e])}async getInspectCommand(e){return await this.getCommand(["inspect",...e])}async getExportCommand(e){return await this.getCommand(["export",...e])}async inspect(e){let r=["--format","json"];e.builder&&r.push("--builder",e.builder),e.ref&&r.push(e.ref);let i=await this.getInspectCommand(r);return await qe.getExecOutput(i.command,i.args,{ignoreReturnCode:!0,silent:!0}).then(n=>{if(n.stderr.length>0&&n.exitCode!=0)throw new Error(n.stderr.trim());return JSON.parse(n.stdout)})}async export(e){if(!await this.buildx.versionSatisfies(">=0.23.0"))throw new Error("Buildx >= 0.23.0 is required to export a build record");let r="",i="",n=[];for(let f of e.refs){let h=f.split("/");if(h.length!=3)throw new Error(`Invalid build ref: ${f}`);n.push(h[2]),r||(r=h[0]),i||(i=h[1])}if(n.length===0)throw new Error("No build refs provided");let s=Pee.default.join(Dt.tmpDir(),"export");X(`exporting build record to ${s}`),Oee.default.mkdirSync(s,{recursive:!0}),await this.buildx.versionSatisfies("<0.24.0")&&await Xe.sleep(3);let o={};if(!e.noSummaries)for(let f of n)await this.inspect({ref:f,builder:r}).then(h=>{let d="";h.Error&&h.Status!=="canceled"&&(h.Error.Message?d=h.Error.Message:h.Error.Name&&h.Error.Logs&&(d=`=> ${h.Error.Name}
${h.Error.Logs}`)),o[f]={name:h.Name,status:h.Status,duration:Xe.formatDuration(h.Duration),numCachedSteps:h.NumCachedSteps,numTotalSteps:h.NumTotalSteps,numCompletedSteps:h.NumCompletedSteps,defaultPlatform:h.Platform?.[0],error:d}});let a=Pee.default.join(s,`${t.exportFilename(n)}.dockerbuild`),c=["--builder",r,"--output",a,...n];await this.buildx.versionSatisfies(">=0.24.0")&&c.push("--finalize");let u=await this.getExportCommand(c);await qe.getExecOutput(u.command,u.args);let l=Oee.default.statSync(a);return{dockerbuildFilename:a,dockerbuildSize:l.size,builderName:r,nodeName:i,refs:n,summaries:o}}static exportFilename(e){let r=`${gt.context.repo.owner}~${gt.context.repo.repo}~${e[0].substring(0,6).toUpperCase()}`;return e.length>1&&(r+=`+${e.length-1}`),r}};var vVe=P(require("fs"),1),foe=P(require("path"),1);var YQe=P(require("os"),1);function CR(t){return t==null?"":typeof t=="string"||t instanceof String?t:JSON.stringify(t)}function kee(t){return Object.keys(t).length?{title:t.title,file:t.file,line:t.startLine,endLine:t.endLine,col:t.startColumn,endColumn:t.endColumn}:{}}function IR(t,e,r){let i=new Qee(t,e,r);process.stdout.write(i.toString()+YQe.EOL)}var JQe="::",Qee=class{constructor(e,r,i){e||(e="missing.command"),this.command=e,this.properties=r,this.message=i}toString(){let e=JQe+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let r=!0;for(let i in this.properties)if(this.properties.hasOwnProperty(i)){let n=this.properties[i];n&&(r?r=!1:e+=",",e+=`${i}=${mUt(n)}`)}}return e+=`${JQe}${pUt(this.message)}`,e}};function pUt(t){return CR(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}function mUt(t){return CR(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}var eLe=P(require("os"),1);var XQe=require("os"),SR=require("fs"),Lee=function(t,e,r,i){function n(s){return s instanceof r?s:new r(function(o){o(s)})}return new(r||(r=Promise))(function(s,o){function a(l){try{u(i.next(l))}catch(f){o(f)}}function c(l){try{u(i.throw(l))}catch(f){o(f)}}function u(l){l.done?s(l.value):n(l.value).then(a,c)}u((i=i.apply(t,e||[])).next())})},{access:AUt,appendFile:gUt,writeFile:yUt}=SR.promises,KQe="GITHUB_STEP_SUMMARY";var Fee=class{constructor(){this._buffer=""}filePath(){return Lee(this,void 0,void 0,function*(){if(this._filePath)return this._filePath;let e=process.env[KQe];if(!e)throw new Error(`Unable to find environment variable for $${KQe}. Check if your runtime environment supports job summaries.`);try{yield AUt(e,SR.constants.R_OK|SR.constants.W_OK)}catch{throw new Error(`Unable to access summary file: '${e}'. Check if the file has correct read/write permissions.`)}return this._filePath=e,this._filePath})}wrap(e,r,i={}){let n=Object.entries(i).map(([s,o])=>` ${s}="${o}"`).join("");return r?`<${e}${n}>${r}</${e}>`:`<${e}${n}>`}write(e){return Lee(this,void 0,void 0,function*(){let r=!!e?.overwrite,i=yield this.filePath();return yield(r?yUt:gUt)(i,this._buffer,{encoding:"utf8"}),this.emptyBuffer()})}clear(){return Lee(this,void 0,void 0,function*(){return this.emptyBuffer().write({overwrite:!0})})}stringify(){return this._buffer}isEmptyBuffer(){return this._buffer.length===0}emptyBuffer(){return this._buffer="",this}addRaw(e,r=!1){return this._buffer+=e,r?this.addEOL():this}addEOL(){return this.addRaw(XQe.EOL)}addCodeBlock(e,r){let i=Object.assign({},r&&{lang:r}),n=this.wrap("pre",this.wrap("code",e),i);return this.addRaw(n).addEOL()}addList(e,r=!1){let i=r?"ol":"ul",n=e.map(o=>this.wrap("li",o)).join(""),s=this.wrap(i,n);return this.addRaw(s).addEOL()}addTable(e){let r=e.map(n=>{let s=n.map(o=>{if(typeof o=="string")return this.wrap("td",o);let{header:a,data:c,colspan:u,rowspan:l}=o,f=a?"th":"td",h=Object.assign(Object.assign({},u&&{colspan:u}),l&&{rowspan:l});return this.wrap(f,c,h)}).join("");return this.wrap("tr",s)}).join(""),i=this.wrap("table",r);return this.addRaw(i).addEOL()}addDetails(e,r){let i=this.wrap("details",this.wrap("summary",e)+r);return this.addRaw(i).addEOL()}addImage(e,r,i){let{width:n,height:s}=i||{},o=Object.assign(Object.assign({},n&&{width:n}),s&&{height:s}),a=this.wrap("img",null,Object.assign({src:e,alt:r},o));return this.addRaw(a).addEOL()}addHeading(e,r){let i=`h${r}`,n=["h1","h2","h3","h4","h5","h6"].includes(i)?i:"h1",s=this.wrap(n,e);return this.addRaw(s).addEOL()}addSeparator(){let e=this.wrap("hr",null);return this.addRaw(e).addEOL()}addBreak(){let e=this.wrap("br",null);return this.addRaw(e).addEOL()}addQuote(e,r){let i=Object.assign({},r&&{cite:r}),n=this.wrap("blockquote",e,i);return this.addRaw(n).addEOL()}addLink(e,r){let i=this.wrap("a",e,{href:r});return this.addRaw(i).addEOL()}},xWr=new Fee;var Mee=P(require("os"),1);var TWr=Mee.default.platform(),NWr=Mee.default.arch();var ZQe;(function(t){t[t.Success=0]="Success",t[t.Failure=1]="Failure"})(ZQe||(ZQe={}));function zF(t){IR("add-mask",{},t)}function ft(t){IR("debug",{},t)}function BR(t,e={}){IR("error",kee(e),t insLine truncated
`," Line feed \\n"]]),ZLe=new Map([...fre,["\\"," Backslash \\"],["/"," Forward slash /"]]);function eFe(t){if(!t)throw new Error("Provided artifact name input during validation is empty");for(let[e,r]of ZLe)if(t.includes(e))throw new Error(`The artifact name is not valid: ${t}. Contains the following character: ${r}
`)}var a4t=class extends Error{constructor(t,e,r){super(o4t(r)),this.request=t,this.headers=e,this.response=r,this.errors=r.errors,this.data=r.data,Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}name="GraphqlResponseError";errors;data},c4t=["method","baseUrl","url","headers","request","query","mediaType","operationName"],u4t=["query","method","url"],PMe=/\/api\/v3\/?$/;function l4t(t,e,r){if(r){if(typeof e=="string"&&"query"in r)return Promise.reject(new Error('[@octokit/graphql] "query" cannot be used as variable name'));for(let o in r)if(u4t.includes(o))return Promise.reject(new Error(`[@octokit/graphql] "${o}" cannot be used as variable name`))}let i=typeof e=="string"?Object.assign({query:e},r):e,n=Object.keys(i).reduce((o,a)=>c4t.includes(a)?(o[a]=i[a],o):(o.variables||(o.variables={}),o.variables[a]=i[a],o),{}),s=i.baseUrl||t.endpoint.DEFAULTS.baseUrl;return PMe.test(s)&&(n.url=s.replace(PMe,"/api/graphql")),t(n).then(o=>{if(o.data.errors){let a={};for(let c of Object.keys(o.headers))a[c]=o.headers[c];throw new a4t(n,a,o.data)}return o.data.data})}function Ite(t,e){let r=t.defaults(e);return Object.assign((n,s)=>l4t(r,n,s),{defaults:Ite.bind(null,r),endpoint:r.endpoint})}var AWr=Ite(GR,{headers:{"user-agent":`octokit-graphql.js/${s4t} ${fA()}`},method:"POST",url:"/graphql"});function kMe(t){return Ite(t,{method:"POST",url:"/graphql"})}var Ste="(?:[a-zA-Z0-9_-]+)",QMe="\\.",LMe=new RegExp(`^${Ste}${QMe}${Ste}${QMe}${Ste}$`),f4t=LMe.test.bind(LMe);async function h4t(t){let e=f4t(t),r=t.startsWith("v1.")||t.startsWith("ghs_"),i=t.startsWith("ghu_");return{type:"token",token:t,tokenType:e?"app":r?"installation":i?"user-to-server":"oauth"}}function d4t(t){return t.split(/\./).length===3?`bearer ${t}`:`token ${t}`}async function p4t(t,e,r,i){let n=e.endpoint.merge(r,i);return n.headers.authorization=d4t(t),e(n)}var MMe=function(e){if(!e)throw new Error("[@octokit/auth-token] No token passed to createTokenAuth");if(typeof e!="string")throw new Error("[@octokit/auth-token] Token passed to createTokenAuth is not a string");return e=e.replace(/^(token|bearer) +/i,""),Object.assign(h4t.bind(null,e),{hook:p4t.bind(null,e)})};var Bte="7.0.6";var FMe=()=>{},m4t=console.warn.bind(console),A4t=console.error.bind(console);function g4t(t={}){return typeof t.debug!="function"&&(t.debug=FMe),typeof t.info!="function"&&(t.info=FMe),typeof t.warn!="function"&&(t.warn=m4t),typeof t.error!="function"&&(t.error=A4t),t}var UMe=`octokit-core.js/${Bte} ${fA()}`,VC=class{static VERSION=Bte;static defaults(e){return class extends this{constructor(...i){let n=i[0]||{};if(typeof e=="function"){super(e(n));return}super(Object.assign({},e,n,n.userAgent&&e.userAgent?{userAgent:`${n.userAgent} ${e.userAgent}`}:null))}}}static plugins=[];static plugin(...e){let r=this.plugins;return class extends this{static plugins=r.concat(e.filter(n=>!r.includes(n)))}}constructor(e={}){let r=new dMe.Collection,i={baseUrl:GR.endpoint.DEFAULTS.baseUrl,headers:{},request:Object.assign({},e.request,{hook:r.bind(null,"request")}),mediaType:{previews:[],format:""}};if(i.headers["user-agent"]=e.userAgent?`${e.userAgent} ${UMe}`:UMe,e.baseUrl&&(i.baseUrl=e.baseUrl),e.previews&&(i.mediaType.previews=e.previews),e.timeZone&&(i.headers["time-zone"]=e.timeZone),this.request=GR.defaults(i),this.graphql=kMe(this.request).defaults(i),this.log=g4t(e.log),this.hook=r,e.authStrategy){let{authStrategy:s,...o}=e,a=s(Object.assign({request:this.request,log:this.log,octokit:this,octokitOptions:o},e.auth));r.wrap("request",a.hook),this.auth=a}else if(!e.auth)this.auth=async()=>({type:"unauthenticated"});else{let s=MMe(e.auth);r.wrap("request",s.hook),this.auth=s}let n=this.constructor;for(let s=0;s<n.plugins.length;++s)Object.assign(this,n.plugins[s](this,e))}request;graphql;log;hook;auth};var vte="17.0.0";var y4t={actions:{addCustomLabelsToSelfHostedRunnerForOrg:["POST /orgs/{org}/actions/runners/{runner_id}/labels"],addCustomLabelsToSelfHostedRunnerForRepo:["POST /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],addRepoAccessToSelfHostedRunnerGroupInOrg:["PUT /orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/{repository_id}"],addSelectedRepoToOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}"],addSelectedRepoToOrgVariable:["PUT /orgs/{org}/actions/variables/{name}/repositories/{repository_id}"],approveWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/approve"],cancelWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/cancel"],createEnvironmentVariable:["POST /repos/{owner}/{repo}/environments/{environment_name}/variables"],createHostedRunnerForOrg:["POST /orgs/{org}/actions/hosted-runners"],createOrUpdateEnvironmentSecret:["PUT /repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}"],createOrUpdateOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}"],createOrUpdateRepoSecret:["PUT /repos/{owner}/{repo}/actions/secrets/{secret_name}"],cr Line truncated
More info: ${c.url}`);let d=c.range&&c.range.length>0?c.range[0]?.start.line:void 0,m=!1;for(let A of o)if(A.remote||A.path.endsWith(u)&&A.content===l){a.push({title:f,message:h,file:A.path,startLine:d}),m=!0;break}m||X(`Buildx.convertWarningsToGitHubAnnotations: skipping warning without matching Dockerfile ${u}: ${f}`)}return a}};var kte=O(require("fs"),1),Qte=O(require("path"),1);var LF=class t{buildx;constructor(e){this.buildx=e?.buildx||new Wt}async getCommand(e){return await this.buildx.getCommand(["history",...e])}async getInspectCommand(e){return await this.getCommand(["inspect",...e])}async getExportCommand(e){return await this.getCommand(["export",...e])}async inspect(e){let r=["--format","json"];e.builder&&r.push("--builder",e.builder),e.ref&&r.push(e.ref);let i=await this.getInspectCommand(r);return await qe.getExecOutput(i.command,i.args,{ignoreReturnCode:!0,silent:!0}).then(n=>{if(n.stderr.length>0&&n.exitCode!=0)throw new Error(n.stderr.trim());return JSON.parse(n.stdout)})}async export(e){if(!await this.buildx.versionSatisfies(">=0.23.0"))throw new Error("Buildx >= 0.23.0 is required to export a build record");let r="",i="",n=[];for(let f of e.refs){let h=f.split("/");if(h.length!=3)throw new Error(`Invalid build ref: ${f}`);n.push(h[2]),r||(r=h[0]),i||(i=h[1])}if(n.length===0)throw new Error("No build refs provided");let s=Qte.default.join(Dt.tmpDir(),"export");$(`exporting build record to ${s}`),kte.default.mkdirSync(s,{recursive:!0}),await this.buildx.versionSatisfies("<0.24.0")&&await Ke.sleep(3);let o={};if(!e.noSummaries)for(let f of n)await this.inspect({ref:f,builder:r}).then(h=>{let d="";h.Error&&h.Status!=="canceled"&&(h.Error.Message?d=h.Error.Message:h.Error.Name&&h.Error.Logs&&(d=`=> ${h.Error.Name}
${h.Error.Logs}`)),o[f]={name:h.Name,status:h.Status,duration:Ke.formatDuration(h.Duration),numCachedSteps:h.NumCachedSteps,numTotalSteps:h.NumTotalSteps,numCompletedSteps:h.NumCompletedSteps,defaultPlatform:h.Platform?.[0],error:d}});let a=Qte.default.join(s,`${t.exportFilename(n)}.dockerbuild`),c=["--builder",r,"--output",a,...n];await this.buildx.versionSatisfies(">=0.24.0")&&c.push("--finalize");let u=await this.getExportCommand(c);await qe.getExecOutput(u.command,u.args);let l=kte.default.statSync(a);return{dockerbuildFilename:a,dockerbuildSize:l.size,builderName:r,nodeName:i,refs:n,summaries:o}}static exportFilename(e){let r=`${gt.context.repo.owner}~${gt.context.repo.repo}~${e[0].substring(0,6).toUpperCase()}`;return e.length>1&&(r+=`+${e.length-1}`),r}};var F9e=O(require("fs"),1),yae=O(require("path"),1);var YMe=O(require("os"),1);function $R(t){return t==null?"":typeof t=="string"||t instanceof String?t:JSON.stringify(t)}function Lte(t){return Object.keys(t).length?{title:t.title,file:t.file,line:t.startLine,endLine:t.endLine,col:t.startColumn,endColumn:t.endColumn}:{}}function WR(t,e,r){let i=new Mte(t,e,r);process.stdout.write(i.toString()+YMe.EOL)}var JMe="::",Mte=class{constructor(e,r,i){e||(e="missing.command"),this.command=e,this.properties=r,this.message=i}toString(){let e=JMe+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let r=!0;for(let i in this.properties)if(this.properties.hasOwnProperty(i)){let n=this.properties[i];n&&(r?r=!1:e+=",",e+=`${i}=${Q4t(n)}`)}}return e+=`${JMe}${k4t(this.message)}`,e}};function k4t(t){return $R(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}function Q4t(t){return $R(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}var eFe=O(require("os"),1);var XMe=require("os"),JR=require("fs"),Fte=function(t,e,r,i){function n(s){return s instanceof r?s:new r(function(o){o(s)})}return new(r||(r=Promise))(function(s,o){function a(l){try{u(i.next(l))}catch(f){o(f)}}function c(l){try{u(i.throw(l))}catch(f){o(f)}}function u(l){l.done?s(l.value):n(l.value).then(a,c)}u((i=i.apply(t,e||[])).next())})},{access:L4t,appendFile:M4t,writeFile:F4t}=JR.promises,KMe="GITHUB_STEP_SUMMARY";var Ute=class{constructor(){this._buffer=""}filePath(){return Fte(this,void 0,void 0,function*(){if(this._filePath)return this._filePath;let e=process.env[KMe];if(!e)throw new Error(`Unable to find environment variable for $${KMe}. Check if your runtime environment supports job summaries.`);try{yield L4t(e,JR.constants.R_OK|JR.constants.W_OK)}catch{throw new Error(`Unable to access summary file: '${e}'. Check if the file has correct read/write permissions.`)}return this._filePath=e,this._filePath})}wrap(e,r,i={}){let n=Object.entries(i).map(([s,o])=>` ${s}="${o}"`).join("");return r?`<${e}${n}>${r}</${e}>`:`<${e}${n}>`}write(e){return Fte(this,void 0,void 0,function*(){let r=!!e?.overwrite,i=yield this.filePath();return yield(r?F4t:M4t)(i,this._buffer,{encoding:"utf8"}),this.emptyBuffer()})}clear(){return Fte(this,void 0,void 0,function*(){return this.emptyBuffer().write({overwrite:!0})})}stringify(){return this._buffer}isEmptyBuffer(){return this._buffer.length===0}emptyBuffer(){return this._buffer="",this}addRaw(e,r=!1){return this._buffer+=e,r?this.addEOL():this}addEOL(){return this.addRaw(XMe.EOL)}addCodeBlock(e,r){let i=Object.assign({},r&&{lang:r}),n=this.wrap("pre",this.wrap("code",e),i);return this.addRaw(n).addEOL()}addList(e,r=!1){let i=r?"ol":"ul",n=e.map(o=>this.wrap("li",o)).join(""),s=this.wrap(i,n);return this.addRaw(s).addEOL()}addTable(e){let r=e.map(n=>{let s=n.map(o=>{if(typeof o=="string")return this.wrap("td",o);let{header:a,data:c,colspan:u,rowspan:l}=o,f=a?"th":"td",h=Object.assign(Object.assign({},u&&{colspan:u}),l&&{rowspan:l});return this.wrap(f,c,h)}).join("");return this.wrap("tr",s)}).join(""),i=this.wrap("table",r);return this.addRaw(i).addEOL()}addDetails(e,r){let i=this.wrap("details",this.wrap("summary",e)+r);return this.addRaw(i).addEOL()}addImage(e,r,i){let{width:n,height:s}=i||{},o=Object.assign(Object.assign({},n&&{width:n}),s&&{height:s}),a=this.wrap("img",null,Object.assign({src:e,alt:r},o));return this.addRaw(a).addEOL()}addHeading(e,r){let i=`h${r}`,n=["h1","h2","h3","h4","h5","h6"].includes(i)?i:"h1",s=this.wrap(n,e);return this.addRaw(s).addEOL()}addSeparator(){let e=this.wrap("hr",null);return this.addRaw(e).addEOL()}addBreak(){let e=this.wrap("br",null);return this.addRaw(e).addEOL()}addQuote(e,r){let i=Object.assign({},r&&{cite:r}),n=this.wrap("blockquote",e,i);return this.addRaw(n).addEOL()}addLink(e,r){let i=this.wrap("a",e,{href:r});return this.addRaw(i).addEOL()}},AJr=new Ute;var qte=O(require("os"),1);var EJr=qte.default.platform(),bJr=qte.default.arch();var ZMe;(function(t){t[t.Success=0]="Success",t[t.Failure=1]="Failure"})(ZMe||(ZMe={}));function MF(t){WR("add-mask",{},t)}function ft(t){WR("debug",{},t)}function YR(t,e={}){WR("error",Lte(e),t insLine truncated
`," Line feed \\n"]]),ZFe=new Map([...die,["\\"," Backslash \\"],["/"," Forward slash /"]]);function eUe(t){if(!t)throw new Error("Provided artifact name input during validation is empty");for(let[e,r]of ZFe)if(t.includes(e))throw new Error(`The artifact name is not valid: ${t}. Contains the following character: ${r}
Invalid characters include: ${Array.from(ZLe.values()).toString()}
Invalid characters include: ${Array.from(ZFe.values()).toString()}
These characters are not allowed in the artifact name due to limitations with certain file systems such as NTFS. To maintain file system agnostic behavior, these characters are intentionally not allowed to prevent potential problems with downloads on different file systems.`);Ct("Artifact name is valid!")}function hre(t){if(!t)throw new Error("Provided file path input during validation is empty");for(let[e,r]of fre)if(t.includes(e))throw new Error(`The path for one of the files in artifact is not valid: ${t}. Contains the following character: ${r}
These characters are not allowed in the artifact name due to limitations with certain file systems such as NTFS. To maintain file system agnostic behavior, these characters are intentionally not allowed to prevent potential problems with downloads on different file systems.`);Ct("Artifact name is valid!")}function pie(t){if(!t)throw new Error("Provided file path input during validation is empty");for(let[e,r]of die)if(t.includes(e))throw new Error(`The path for one of the files in artifact is not valid: ${t}. Contains the following character: ${r}
Invalid characters include: ${Array.from(fre.values()).toString()}
Invalid characters include: ${Array.from(die.values()).toString()}
The following characters are not allowed in files that are uploaded due to limitations with certain file systems such as NTFS. To maintain file system agnostic behavior, these characters are intentionally not allowed to prevent potential problems with downloads on different file systems.
`)}var nFe=P(iFe(),1);function Zf(){return`@actions/artifact-${nFe.version}`}var VC=class extends Error{constructor(e=[]){let r="No files were found to upload";e.length>0&&(r+=`: ${e.join(", ")}`),super(r),this.files=e,this.name="FilesNotFoundError"}},bl=class extends Error{constructor(e){super(e),this.name="InvalidResponseError"}},jd=class extends Error{constructor(e="Artifact not found"){super(e),this.name="ArtifactNotFoundError"}},cA=class extends Error{constructor(e="@actions/artifact v2.0.0+, upload-artifact@v4+ and download-artifact@v4+ are not currently supported on GHES."){super(e),this.name="GHESNotSupportedError"}},Vd=class extends Error{constructor(e){let r=`Unable to make request: ${e}
If you are using self-hosted runners, please make sure your runner has access to all GitHub endpoints: 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"}};Vd.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var uE=class extends Error{constructor(){super(`Artifact storage quota has been hit. Unable to upload any new artifacts.
More info on storage limits: https://docs.github.com/en/billing/managing-billing-for-github-actions/about-billing-for-github-actions#calculating-minute-and-storage-spending`),this.name="UsageError"}};uE.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var OM=new Error("Failed to get backend IDs: The provided JWT token is invalid and/or missing claims");function eh(){let t=$F(),e=jF(t);if(!e.scp)throw OM;let r=e.scp.split(" ");if(r.length===0)throw OM;for(let i of r){let n=i.split(":");if(n?.[0]!=="Actions.Results")continue;if(n.length!==3)throw OM;let s={workflowRunBackendId:n[1],workflowJobRunBackendId:n[2]};return ft(`Workflow Run Backend ID: ${s.workflowRunBackendId}`),ft(`Workflow Job Run Backend ID: ${s.workflowJobRunBackendId}`),s}throw OM}function sFe(t){if(t)try{let r=new URL(t).searchParams.get("sig");r&&(zF(r),zF(encodeURIComponent(r)))}catch(e){ft(`Failed to parse URL: ${t} ${e instanceof Error?e.message:String(e)}`)}}function oFe(t){if(typeof t!="object"||t===null){ft("body is not an object or is null");return}"signed_upload_url"in t&&typeof t.signed_upload_url=="string"&&sFe(t.signed_upload_url),"signed_url"in t&&typeof t.signed_url=="string"&&sFe(t.signed_url)}var PM=function(t,e,r,i){function n(s){return s instanceof r?s:new r(function(o){o(s)})}return new(r||(r=Promise))(function(s,o){function a(l){try{u(i.next(l))}catch(f){o(f)}}function c(l){try{u(i.throw(l))}catch(f){o(f)}}function u(l){l.done?s(l.value):n(l.value).then(a,c)}u((i=i.apply(t,e||[])).next())})},dre=class{constructor(e,r,i,n){this.maxAttempts=5,this.baseRetryIntervalMilliseconds=3e3,this.retryMultiplier=1.5;let s=$F();this.baseUrl=rLe(),r&&(this.maxAttempts=r),i&&(this.baseRetryIntervalMilliseconds=i),n&&(this.retryMultiplier=n),this.httpClient=new Yr(e,[new Zo(s)])}request(e,r,i,n){return PM(this,void 0,void 0,function*(){let s=new URL(`/twirp/${e}/${r}`,this.baseUrl).href;ft(`[Request] ${r} ${s}`);let o={"Content-Type":i};try{let{body:a}=yield this.retryableRequest(()=>PM(this,void 0,void 0,function*(){return this.httpClient.post(s,JSON.stringify(n),o)}));return a}catch(a){throw new Error(`Failed to ${r}: ${a.message}`)}})}retryableRequest(e){return PM(this,void 0,void 0,function*(){let r=0,i="",n="";for(;r<this.maxAttempts;){let s=!1;try{let a=yield e(),c=a.message.statusCode;n=yield a.readBody(),ft(`[Response] - ${a.message.statusCode}`),ft(`Headers: ${JSON.stringify(a.message.headers,null,2)}`);let u=JSON.parse(n);if(oFe(u),ft(`Body: ${JSON.stringify(u,null,2)}`),this.isSuccessStatusCode(c))return{response:a,body:u};if(s=this.isRetryableHttpStatusCode(c),i=`Failed request: (${c}) ${a.message.statusMessage}`,u.msg){if(uE.isUsageErrorMessage(u.msg))throw new uE;i=`${i}: ${u.msg}`}}catch(a){if(a instanceof SyntaxError&&ft(`Raw Body: ${n}`),a instanceof uE)throw a;if(Vd.isNetworkErrorCode(a?.code))throw new Vd(a?.code);s=!0,i=a.message}if(!s)throw new Error(`Received non-retryable error: ${i}`);if(r+1===this.maxAttempts)throw new Error(`Failed to make request after ${this.maxAttempts} attempts: ${i}`);let o=this.getExponentialRetryTimeMilliseconds(r);Ct(`Attempt ${r+1} of ${this.maxAttempts} failed with error: ${i}. Retrying request in ${o} ms...`),yield this.sleep(o),r++}throw new Error("Request failed")})}isSuccessStatusCode(e){return e?e>=200&&e<300:!1}isRetryableHttpStatusCode(e){return e?[rr.BadGateway,rr.GatewayTimeout,rr.InternalServerError,rr.ServiceUnavailable,rr.TooManyRequests].includes(e):!1}sleep(e){return PM(this,void 0,void 0,function*(){return new Promise(r=>setTimeout(r,e))})}getExponentialRetryTimeMilliseconds(e){if(e<0)throw new Error("attempt should be a positive integer");if(e===0)return this.baseRetryIntervalMilliseconds;let r=this.baseRetryIntervalMilliseconds*Math.pow(this.retryMultiplier,e),i=r*this.retryMultiplier;return Math.trunc(Math.random()*(i-r)+r)}};function th(t){let e=new dre(Zf(),t?.maxAttempts,t?.retryIntervalMs,t?.retryMultiplier);return new DM(e)}var $C=P(require("fs"),1);var zC=require("path");function aFe(t){if(!$C.existsSync(t))throw new Error(`The provided rootDirectory ${t} does not exist`);if(!$C.statSync(t).isDirectory())throw new Error(`The provided rootDirectory ${t} is not a valid directory`);Ct("Root directory input is valid!")}function cFe(t,e){let r=[];e=(0,zC.normalize)(e),e=(0,zC.resolve)(e);for(let i of t){let n=$C.lstatSync(i,{throwIfNoEntry:!1});if(!n)throw new Error(`File ${i} does not exist`);if(n.isDirectory()){let s=i.replace(e,"");hre(s),r.push({sourcePath:null,destinationPath:s,stats:n})}else{if(i=(0,zC.normalize)(i),i=(0,zC.resolve)(i),!i.startsWith(e))throw new Error(`The rootDirectory: ${e} is not a parent directory of the file: ${i}`);let s=i.replace(e,"");hre(s),r.push({sourcePath:i,destinationPath:s,stats:n})}}return r}var lFe=P(require("crypto"),1),fFe=P(require("stream"),1);var uFe=function(t,e,r,i){function n(s){return s instanceof r?s:new r(function(o){o(s)})}return new(r||(r=Promise))(function(s,o){function a(l){try{u(i.next(l))}catch(f){o Line truncated
Are you trying to download from a different run? Try specifying a github-token with \`actions:read\` scope.`);c.length>1&&is("Multiple artifacts found, defaulting to first.");let u={workflowRunBackendId:c[0].workflowRunBackendId,workflowJobRunBackendId:c[0].workflowJobRunBackendId,name:c[0].name},{signedUrl:l}=yield i.GetSignedArtifactURL(u);Ct(`Redirecting to blob download url: ${cVe(l)}`);try{Ct(`Starting download of artifact to: ${r}`);let f=yield uVe(l,r,e?.skipDecompress);Ct("Artifact download completed successfully."),e?.expectedHash&&e?.expectedHash!==f.sha256Digest&&(n=!0,ft(`Computed digest: ${f.sha256Digest}`),ft(`Expected digest: ${e.expectedHash}`))}catch(f){throw new Error(`Unable to download and extract artifact: ${f.message}`)}return{downloadPath:r,digestMismatch:n}})}function hVe(){return HI(this,arguments,void 0,function*(t=iLe()){return(yield vZt(t))?ft(`Artifact destination folder already exists: ${t}`):(ft(`Artifact destination folder does not exist, creating: ${t}`),yield coe.default.mkdir(t,{recursive:!0})),t})}var _Zt=5,RZt=[400,401,403,404,422];function jI(t,e=_Zt,r=RZt){var i;if(e<=0)return[{enabled:!1},t.request];let n={enabled:!0};r.length>0&&(n.doNotRetry=r);let s=Object.assign(Object.assign({},t.request),{retries:e});return ft(`GitHub client configured with: (retries: ${s.retries}, retry-exempt-status-code: ${(i=n.doNotRetry)!==null&&i!==void 0?i:"octokit default: [400, 401, 403, 404, 422]"})`),[n,s]}var dVe="6.0.0";function ME(t){t.hook.wrap("request",(e,r)=>{t.log.debug("request",r);let i=Date.now(),n=t.request.endpoint.parse(r),s=n.url.replace(r.baseUrl,"");return e(r).then(o=>{let a=o.headers["x-github-request-id"];return t.log.info(`${n.method} ${s} - ${o.status} with id ${a} in ${Date.now()-i}ms`),o}).catch(o=>{let a=o.response?.headers["x-github-request-id"]||"UNKNOWN";throw t.log.error(`${n.method} ${s} - ${o.status} with id ${a} in ${Date.now()-i}ms`),o})})}ME.VERSION=dVe;var AVe=P(pVe(),1);var TZt="0.0.0-development";function NZt(t){return t.request!==void 0}async function mVe(t,e,r,i){if(!NZt(r)||!r?.request.request)throw r;if(r.status>=400&&!t.doNotRetry.includes(r.status)){let n=i.request.retries!=null?i.request.retries:t.retries,s=Math.pow((i.request.retryCount||0)+1,2);throw e.retry.retryRequest(r,n,s)}throw r}async function DZt(t,e,r,i){let n=new AVe.default;return n.on("failed",function(s,o){let a=~~s.request.request?.retries,c=~~s.request.request?.retryAfter;if(i.request.retryCount=o.retryCount+1,a>o.retryCount)return c*t.retryAfterBaseValue}),n.schedule(OZt.bind(null,t,e,r),i)}async function OZt(t,e,r,i){let n=await r(i);if(n.data&&n.data.errors&&n.data.errors.length>0&&/Something went wrong while executing your query/.test(n.data.errors[0].message)){let s=new qd(n.data.errors[0].message,500,{request:i,response:n});return mVe(t,e,s,i)}return n}function UE(t,e){let r=Object.assign({enabled:!0,retryAfterBaseValue:1e3,doNotRetry:[400,401,403,404,410,422,451],retries:3},e.retry),i={retry:{retryRequest:(n,s,o)=>(n.request.request=Object.assign({},n.request.request,{retries:s,retryAfter:o}),n)}};return r.enabled&&(t.hook.error("request",mVe.bind(null,r,i)),t.hook.wrap("request",DZt.bind(null,r,i))),i}UE.VERSION=TZt;var gVe=function(t,e,r,i){function n(s){return s instanceof r?s:new r(function(o){o(s)})}return new(r||(r=Promise))(function(s,o){function a(l){try{u(i.next(l))}catch(f){o(f)}}function c(l){try{u(i.throw(l))}catch(f){o(f)}}function u(l){l.done?s(l.value):n(l.value).then(a,c)}u((i=i.apply(t,e||[])).next())})};function zq(t,e,r,i,n){return gVe(this,void 0,void 0,function*(){var s;let[o,a]=jI(rE),c={log:void 0,userAgent:Zf(),previews:void 0,retry:o,request:a},l=yield au(n,c,UE,ME).request("GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts{?name}",{owner:r,repo:i,run_id:e,name:t});if(l.status!==200)throw new bl(`Invalid response from GitHub API: ${l.status} (${(s=l?.headers)===null||s===void 0?void 0:s["x-github-request-id"]})`);if(l.data.artifacts.length===0)throw new jd(`Artifact not found for name: ${t}
`)}var nUe=O(iUe(),1);function ch(){return`@actions/artifact-${nUe.version}`}var lI=class extends Error{constructor(e=[]){let r="No files were found to upload";e.length>0&&(r+=`: ${e.join(", ")}`),super(r),this.files=e,this.name="FilesNotFoundError"}},xl=class extends Error{constructor(e){super(e),this.name="InvalidResponseError"}},rp=class extends Error{constructor(e="Artifact not found"){super(e),this.name="ArtifactNotFoundError"}},AA=class extends Error{constructor(e="@actions/artifact v2.0.0+, upload-artifact@v4+ and download-artifact@v4+ are not currently supported on GHES."){super(e),this.name="GHESNotSupportedError"}},ip=class extends Error{constructor(e){let r=`Unable to make request: ${e}
If you are using self-hosted runners, please make sure your runner has access to all GitHub endpoints: 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"}};ip.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var CE=class extends Error{constructor(){super(`Artifact storage quota has been hit. Unable to upload any new artifacts.
More info on storage limits: https://docs.github.com/en/billing/managing-billing-for-github-actions/about-billing-for-github-actions#calculating-minute-and-storage-spending`),this.name="UsageError"}};CE.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var BU=new Error("Failed to get backend IDs: The provided JWT token is invalid and/or missing claims");function uh(){let t=FF(),e=QF(t);if(!e.scp)throw BU;let r=e.scp.split(" ");if(r.length===0)throw BU;for(let i of r){let n=i.split(":");if(n?.[0]!=="Actions.Results")continue;if(n.length!==3)throw BU;let s={workflowRunBackendId:n[1],workflowJobRunBackendId:n[2]};return ft(`Workflow Run Backend ID: ${s.workflowRunBackendId}`),ft(`Workflow Job Run Backend ID: ${s.workflowJobRunBackendId}`),s}throw BU}function sUe(t){if(t)try{let r=new URL(t).searchParams.get("sig");r&&(MF(r),MF(encodeURIComponent(r)))}catch(e){ft(`Failed to parse URL: ${t} ${e instanceof Error?e.message:String(e)}`)}}function oUe(t){if(typeof t!="object"||t===null){ft("body is not an object or is null");return}"signed_upload_url"in t&&typeof t.signed_upload_url=="string"&&sUe(t.signed_upload_url),"signed_url"in t&&typeof t.signed_url=="string"&&sUe(t.signed_url)}var vU=function(t,e,r,i){function n(s){return s instanceof r?s:new r(function(o){o(s)})}return new(r||(r=Promise))(function(s,o){function a(l){try{u(i.next(l))}catch(f){o(f)}}function c(l){try{u(i.throw(l))}catch(f){o(f)}}function u(l){l.done?s(l.value):n(l.value).then(a,c)}u((i=i.apply(t,e||[])).next())})},mie=class{constructor(e,r,i,n){this.maxAttempts=5,this.baseRetryIntervalMilliseconds=3e3,this.retryMultiplier=1.5;let s=FF();this.baseUrl=rFe(),r&&(this.maxAttempts=r),i&&(this.baseRetryIntervalMilliseconds=i),n&&(this.retryMultiplier=n),this.httpClient=new zi(e,[new $a(s)])}request(e,r,i,n){return vU(this,void 0,void 0,function*(){let s=new URL(`/twirp/${e}/${r}`,this.baseUrl).href;ft(`[Request] ${r} ${s}`);let o={"Content-Type":i};try{let{body:a}=yield this.retryableRequest(()=>vU(this,void 0,void 0,function*(){return this.httpClient.post(s,JSON.stringify(n),o)}));return a}catch(a){throw new Error(`Failed to ${r}: ${a.message}`)}})}retryableRequest(e){return vU(this,void 0,void 0,function*(){let r=0,i="",n="";for(;r<this.maxAttempts;){let s=!1;try{let a=yield e(),c=a.message.statusCode;n=yield a.readBody(),ft(`[Response] - ${a.message.statusCode}`),ft(`Headers: ${JSON.stringify(a.message.headers,null,2)}`);let u=JSON.parse(n);if(oUe(u),ft(`Body: ${JSON.stringify(u,null,2)}`),this.isSuccessStatusCode(c))return{response:a,body:u};if(s=this.isRetryableHttpStatusCode(c),i=`Failed request: (${c}) ${a.message.statusMessage}`,u.msg){if(CE.isUsageErrorMessage(u.msg))throw new CE;i=`${i}: ${u.msg}`}}catch(a){if(a instanceof SyntaxError&&ft(`Raw Body: ${n}`),a instanceof CE)throw a;if(ip.isNetworkErrorCode(a?.code))throw new ip(a?.code);s=!0,i=a.message}if(!s)throw new Error(`Received non-retryable error: ${i}`);if(r+1===this.maxAttempts)throw new Error(`Failed to make request after ${this.maxAttempts} attempts: ${i}`);let o=this.getExponentialRetryTimeMilliseconds(r);Ct(`Attempt ${r+1} of ${this.maxAttempts} failed with error: ${i}. Retrying request in ${o} ms...`),yield this.sleep(o),r++}throw new Error("Request failed")})}isSuccessStatusCode(e){return e?e>=200&&e<300:!1}isRetryableHttpStatusCode(e){return e?[lr.BadGateway,lr.GatewayTimeout,lr.InternalServerError,lr.ServiceUnavailable,lr.TooManyRequests].includes(e):!1}sleep(e){return vU(this,void 0,void 0,function*(){return new Promise(r=>setTimeout(r,e))})}getExponentialRetryTimeMilliseconds(e){if(e<0)throw new Error("attempt should be a positive integer");if(e===0)return this.baseRetryIntervalMilliseconds;let r=this.baseRetryIntervalMilliseconds*Math.pow(this.retryMultiplier,e),i=r*this.retryMultiplier;return Math.trunc(Math.random()*(i-r)+r)}};function lh(t){let e=new mie(ch(),t?.maxAttempts,t?.retryIntervalMs,t?.retryMultiplier);return new SU(e)}var hI=O(require("fs"),1);var fI=require("path");function aUe(t){if(!hI.existsSync(t))throw new Error(`The provided rootDirectory ${t} does not exist`);if(!hI.statSync(t).isDirectory())throw new Error(`The provided rootDirectory ${t} is not a valid directory`);Ct("Root directory input is valid!")}function cUe(t,e){let r=[];e=(0,fI.normalize)(e),e=(0,fI.resolve)(e);for(let i of t){let n=hI.lstatSync(i,{throwIfNoEntry:!1});if(!n)throw new Error(`File ${i} does not exist`);if(n.isDirectory()){let s=i.replace(e,"");pie(s),r.push({sourcePath:null,destinationPath:s,stats:n})}else{if(i=(0,fI.normalize)(i),i=(0,fI.resolve)(i),!i.startsWith(e))throw new Error(`The rootDirectory: ${e} is not a parent directory of the file: ${i}`);let s=i.replace(e,"");pie(s),r.push({sourcePath:i,destinationPath:s,stats:n})}}return r}var lUe=O(require("crypto"),1),fUe=O(require("stream"),1);var uUe=function(t,e,r,i){function n(s){return s instanceof r?s:new r(function(o){o(s)})}return new(r||(r=Promise))(function(s,o){function a(l){try{u(i.next(l))}catch(f){o Line truncated
Are you trying to download from a different run? Try specifying a github-token with \`actions:read\` scope.`);c.length>1&&ls("Multiple artifacts found, defaulting to first.");let u={workflowRunBackendId:c[0].workflowRunBackendId,workflowJobRunBackendId:c[0].workflowJobRunBackendId,name:c[0].name},{signedUrl:l}=yield i.GetSignedArtifactURL(u);Ct(`Redirecting to blob download url: ${w9e(l)}`);try{Ct(`Starting download of artifact to: ${r}`);let f=yield C9e(l,r,e?.skipDecompress);Ct("Artifact download completed successfully."),e?.expectedHash&&e?.expectedHash!==f.sha256Digest&&(n=!0,ft(`Computed digest: ${f.sha256Digest}`),ft(`Expected digest: ${e.expectedHash}`))}catch(f){throw new Error(`Unable to download and extract artifact: ${f.message}`)}return{downloadPath:r,digestMismatch:n}})}function B9e(){return uS(this,arguments,void 0,function*(t=iFe()){return(yield uir(t))?ft(`Artifact destination folder already exists: ${t}`):(ft(`Artifact destination folder does not exist, creating: ${t}`),yield mae.default.mkdir(t,{recursive:!0})),t})}var fir=5,hir=[400,401,403,404,422];function lS(t,e=fir,r=hir){var i;if(e<=0)return[{enabled:!1},t.request];let n={enabled:!0};r.length>0&&(n.doNotRetry=r);let s=Object.assign(Object.assign({},t.request),{retries:e});return ft(`GitHub client configured with: (retries: ${s.retries}, retry-exempt-status-code: ${(i=n.doNotRetry)!==null&&i!==void 0?i:"octokit default: [400, 401, 403, 404, 422]"})`),[n,s]}var v9e="6.0.0";function ZE(t){t.hook.wrap("request",(e,r)=>{t.log.debug("request",r);let i=Date.now(),n=t.request.endpoint.parse(r),s=n.url.replace(r.baseUrl,"");return e(r).then(o=>{let a=o.headers["x-github-request-id"];return t.log.info(`${n.method} ${s} - ${o.status} with id ${a} in ${Date.now()-i}ms`),o}).catch(o=>{let a=o.response?.headers["x-github-request-id"]||"UNKNOWN";throw t.log.error(`${n.method} ${s} - ${o.status} with id ${a} in ${Date.now()-i}ms`),o})})}ZE.VERSION=v9e;var R9e=O(_9e(),1);var dir="0.0.0-development";function pir(t){return t.request!==void 0}async function x9e(t,e,r,i){if(!pir(r)||!r?.request.request)throw r;if(r.status>=400&&!t.doNotRetry.includes(r.status)){let n=i.request.retries!=null?i.request.retries:t.retries,s=Math.pow((i.request.retryCount||0)+1,2);throw e.retry.retryRequest(r,n,s)}throw r}async function mir(t,e,r,i){let n=new R9e.default;return n.on("failed",function(s,o){let a=~~s.request.request?.retries,c=~~s.request.request?.retryAfter;if(i.request.retryCount=o.retryCount+1,a>o.retryCount)return c*t.retryAfterBaseValue}),n.schedule(Air.bind(null,t,e,r),i)}async function Air(t,e,r,i){let n=await r(i);if(n.data&&n.data.errors&&n.data.errors.length>0&&/Something went wrong while executing your query/.test(n.data.errors[0].message)){let s=new Xd(n.data.errors[0].message,500,{request:i,response:n});return x9e(t,e,s,i)}return n}function e0(t,e){let r=Object.assign({enabled:!0,retryAfterBaseValue:1e3,doNotRetry:[400,401,403,404,410,422,451],retries:3},e.retry),i={retry:{retryRequest:(n,s,o)=>(n.request.request=Object.assign({},n.request.request,{retries:s,retryAfter:o}),n)}};return r.enabled&&(t.hook.error("request",x9e.bind(null,r,i)),t.hook.wrap("request",mir.bind(null,r,i))),i}e0.VERSION=dir;var T9e=function(t,e,r,i){function n(s){return s instanceof r?s:new r(function(o){o(s)})}return new(r||(r=Promise))(function(s,o){function a(l){try{u(i.next(l))}catch(f){o(f)}}function c(l){try{u(i.throw(l))}catch(f){o(f)}}function u(l){l.done?s(l.value):n(l.value).then(a,c)}u((i=i.apply(t,e||[])).next())})};function V3(t,e,r,i,n){return T9e(this,void 0,void 0,function*(){var s;let[o,a]=lS(YE),c={log:void 0,userAgent:ch(),previews:void 0,retry:o,request:a},l=yield LA(n,c,e0,ZE).request("GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts{?name}",{owner:r,repo:i,run_id:e,name:t});if(l.status!==200)throw new xl(`Invalid response from GitHub API: ${l.status} (${(s=l?.headers)===null||s===void 0?void 0:s["x-github-request-id"]})`);if(l.data.artifacts.length===0)throw new rp(`Artifact not found for name: ${t}
Please ensure that your artifact is not expired and the artifact was uploaded using a compatible version of toolkit/upload-artifact.
For more information, visit the GitHub Artifacts FAQ: https://github.com/actions/toolkit/blob/main/packages/artifact/docs/faq.md`);let f=l.data.artifacts[0];return l.data.artifacts.length>1&&(f=l.data.artifacts.sort((h,d)=>d.id-h.id)[0],ft(`More than one artifact found for a single name, returning newest (id: ${f.id})`)),{artifact:{name:f.name,id:f.id,size:f.size_in_bytes,createdAt:f.created_at?new Date(f.created_at):void 0,digest:f.digest}}})}function yVe(t){return gVe(this,void 0,void 0,function*(){var e;let r=th(),{workflowRunBackendId:i,workflowJobRunBackendId:n}=eh(),s={workflowRunBackendId:i,workflowJobRunBackendId:n,nameFilter:Vi.create({value:t})},o=yield r.ListArtifacts(s);if(o.artifacts.length===0)throw new jd(`Artifact not found for name: ${t}
For more information, visit the GitHub Artifacts FAQ: https://github.com/actions/toolkit/blob/main/packages/artifact/docs/faq.md`);let f=l.data.artifacts[0];return l.data.artifacts.length>1&&(f=l.data.artifacts.sort((h,d)=>d.id-h.id)[0],ft(`More than one artifact found for a single name, returning newest (id: ${f.id})`)),{artifact:{name:f.name,id:f.id,size:f.size_in_bytes,createdAt:f.created_at?new Date(f.created_at):void 0,digest:f.digest}}})}function N9e(t){return T9e(this,void 0,void 0,function*(){var e;let r=lh(),{workflowRunBackendId:i,workflowJobRunBackendId:n}=uh(),s={workflowRunBackendId:i,workflowJobRunBackendId:n,nameFilter:Yi.create({value:t})},o=yield r.ListArtifacts(s);if(o.artifacts.length===0)throw new rp(`Artifact not found for name: ${t}
Please ensure that your artifact is not expired and the artifact was uploaded using a compatible version of toolkit/upload-artifact.
For more information, visit the GitHub Artifacts FAQ: https://github.com/actions/toolkit/blob/main/packages/artifact/docs/faq.md`);let a=o.artifacts[0];return o.artifacts.length>1&&(a=o.artifacts.sort((c,u)=>Number(u.databaseId)-Number(c.databaseId))[0],ft(`More than one artifact found for a single name, returning newest (id: ${a.databaseId})`)),{artifact:{name:a.name,id:Number(a.databaseId),size:Number(a.size),createdAt:a.createdAt?ac.toDate(a.createdAt):void 0,digest:(e=a.digest)===null||e===void 0?void 0:e.value}}})}var EVe=function(t,e,r,i){function n(s){return s instanceof r?s:new r(function(o){o(s)})}return new(r||(r=Promise))(function(s,o){function a(l){try{u(i.next(l))}catch(f){o(f)}}function c(l){try{u(i.throw(l))}catch(f){o(f)}}function u(l){l.done?s(l.value):n(l.value).then(a,c)}u((i=i.apply(t,e||[])).next())})};function bVe(t,e,r,i,n){return EVe(this,void 0,void 0,function*(){var s;let[o,a]=jI(rE),c={log:void 0,userAgent:Zf(),previews:void 0,retry:o,request:a},u=au(n,c,UE,ME),l=yield zq(t,e,r,i,n),f=yield u.rest.actions.deleteArtifact({owner:r,repo:i,artifact_id:l.artifact.id});if(f.status!==204)throw new bl(`Invalid response from GitHub API: ${f.status} (${(s=f?.headers)===null||s===void 0?void 0:s["x-github-request-id"]})`);return{id:l.artifact.id}})}function wVe(t){return EVe(this,void 0,void 0,function*(){let e=th(),{workflowRunBackendId:r,workflowJobRunBackendId:i}=eh(),n={workflowRunBackendId:r,workflowJobRunBackendId:i,nameFilter:Vi.create({value:t})},s=yield e.ListArtifacts(n);if(s.artifacts.length===0)throw new jd(`Artifact not found for name: ${t}`);let o=s.artifacts[0];s.artifacts.length>1&&(o=s.artifacts.sort((u,l)=>Number(l.databaseId)-Number(u.databaseId))[0],ft(`More than one artifact found for a single name, returning newest (id: ${o.databaseId})`));let a={workflowRunBackendId:o.workflowRunBackendId,workflowJobRunBackendId:o.workflowJobRunBackendId,name:o.name},c=yield e.DeleteArtifact(a);return Ct(`Artifact '${t}' (ID: ${c.artifactId}) deleted`),{id:Number(c.artifactId)}})}var CVe=function(t,e,r,i){function n(s){return s instanceof r?s:new r(function(o){o(s)})}return new(r||(r=Promise))(function(s,o){function a(l){try{u(i.next(l))}catch(f){o(f)}}function c(l){try{u(i.throw(l))}catch(f){o(f)}}function u(l){l.done?s(l.value):n(l.value).then(a,c)}u((i=i.apply(t,e||[])).next())})},$q=oLe(),Wq=100,PZt=Math.ceil($q/Wq);function IVe(t,e,r,i){return CVe(this,arguments,void 0,function*(n,s,o,a,c=!1){Ct(`Fetching artifact list for workflow run ${n} in repository ${s}/${o}`);let u=[],[l,f]=jI(rE),h={log:void 0,userAgent:Zf(),previews:void 0,retry:l,request:f},d=au(a,h,UE,ME),m=1,{data:A}=yield d.request("GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts",{owner:s,repo:o,run_id:n,per_page:Wq,page:m}),y=Math.ceil(A.total_count/Wq),g=A.total_count;g>$q&&(is(`Workflow run ${n} has ${g} artifacts, exceeding the limit of ${$q}. Results will be incomplete as only the first ${$q} artifacts will be returned`),y=PZt);for(let E of A.artifacts)u.push({name:E.name,id:E.id,size:E.size_in_bytes,createdAt:E.created_at?new Date(E.created_at):void 0,digest:E.digest});for(m++,m;m<=y;m++){ft(`Fetching page ${m} of artifact list`);let{data:E}=yield d.request("GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts",{owner:s,repo:o,run_id:n,per_page:Wq,page:m});for(let C of E.artifacts)u.push({name:C.name,id:C.id,size:C.size_in_bytes,createdAt:C.created_at?new Date(C.created_at):void 0,digest:C.digest})}return c&&(u=BVe(u)),Ct(`Found ${u.length} artifact(s)`),{artifacts:u}})}function SVe(){return CVe(this,arguments,void 0,function*(t=!1){let e=th(),{workflowRunBackendId:r,workflowJobRunBackendId:i}=eh(),n={workflowRunBackendId:r,workflowJobRunBackendId:i},o=(yield e.ListArtifacts(n)).artifacts.map(a=>{var c;return{name:a.name,id:Number(a.databaseId),size:Number(a.size),createdAt:a.createdAt?ac.toDate(a.createdAt):void 0,digest:(c=a.digest)===null||c===void 0?void 0:c.value}});return t&&(o=BVe(o)),Ct(`Found ${o.length} artifact(s)`),{artifacts:o}})}function BVe(t){t.sort((i,n)=>n.id-i.id);let e=[],r=new Set;for(let i of t)r.has(i.name)||(e.push(i),r.add(i.name));return e}var uN=function(t,e,r,i){function n(s){return s instanceof r?s:new r(function(o){o(s)})}return new(r||(r=Promise))(function(s,o){function a(l){try{u(i.next(l))}catch(f){o(f)}}function c(l){try{u(i.throw(l))}catch(f){o(f)}}function u(l){l.done?s(l.value):n(l.value).then(a,c)}u((i=i.apply(t,e||[])).next())})},kZt=function(t,e){var r={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(r[i]=t[i]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,i=Object.getOwnPropertySymbols(t);n<i.length;n++)e.indexOf(i[n])<0&&Object.prototype.propertyIsEnumerable.call(t,i[n])&&(r[i[n]]=t[i[n]]);return r},VI=class{uploadArtifact(e,r,i,n){return uN(this,void 0,void 0,function*(){try{if(xC())throw new cA;return Ije(e,r,i,n)}catch(s){throw is(`Artifact upload failed with error: ${s}.
For more information, visit the GitHub Artifacts FAQ: https://github.com/actions/toolkit/blob/main/packages/artifact/docs/faq.md`);let a=o.artifacts[0];return o.artifacts.length>1&&(a=o.artifacts.sort((c,u)=>Number(u.databaseId)-Number(c.databaseId))[0],ft(`More than one artifact found for a single name, returning newest (id: ${a.databaseId})`)),{artifact:{name:a.name,id:Number(a.databaseId),size:Number(a.size),createdAt:a.createdAt?Ac.toDate(a.createdAt):void 0,digest:(e=a.digest)===null||e===void 0?void 0:e.value}}})}var D9e=function(t,e,r,i){function n(s){return s instanceof r?s:new r(function(o){o(s)})}return new(r||(r=Promise))(function(s,o){function a(l){try{u(i.next(l))}catch(f){o(f)}}function c(l){try{u(i.throw(l))}catch(f){o(f)}}function u(l){l.done?s(l.value):n(l.value).then(a,c)}u((i=i.apply(t,e||[])).next())})};function O9e(t,e,r,i,n){return D9e(this,void 0,void 0,function*(){var s;let[o,a]=lS(YE),c={log:void 0,userAgent:ch(),previews:void 0,retry:o,request:a},u=LA(n,c,e0,ZE),l=yield V3(t,e,r,i,n),f=yield u.rest.actions.deleteArtifact({owner:r,repo:i,artifact_id:l.artifact.id});if(f.status!==204)throw new xl(`Invalid response from GitHub API: ${f.status} (${(s=f?.headers)===null||s===void 0?void 0:s["x-github-request-id"]})`);return{id:l.artifact.id}})}function P9e(t){return D9e(this,void 0,void 0,function*(){let e=lh(),{workflowRunBackendId:r,workflowJobRunBackendId:i}=uh(),n={workflowRunBackendId:r,workflowJobRunBackendId:i,nameFilter:Yi.create({value:t})},s=yield e.ListArtifacts(n);if(s.artifacts.length===0)throw new rp(`Artifact not found for name: ${t}`);let o=s.artifacts[0];s.artifacts.length>1&&(o=s.artifacts.sort((u,l)=>Number(l.databaseId)-Number(u.databaseId))[0],ft(`More than one artifact found for a single name, returning newest (id: ${o.databaseId})`));let a={workflowRunBackendId:o.workflowRunBackendId,workflowJobRunBackendId:o.workflowJobRunBackendId,name:o.name},c=yield e.DeleteArtifact(a);return Ct(`Artifact '${t}' (ID: ${c.artifactId}) deleted`),{id:Number(c.artifactId)}})}var k9e=function(t,e,r,i){function n(s){return s instanceof r?s:new r(function(o){o(s)})}return new(r||(r=Promise))(function(s,o){function a(l){try{u(i.next(l))}catch(f){o(f)}}function c(l){try{u(i.throw(l))}catch(f){o(f)}}function u(l){l.done?s(l.value):n(l.value).then(a,c)}u((i=i.apply(t,e||[])).next())})},z3=oFe(),$3=100,gir=Math.ceil(z3/$3);function Q9e(t,e,r,i){return k9e(this,arguments,void 0,function*(n,s,o,a,c=!1){Ct(`Fetching artifact list for workflow run ${n} in repository ${s}/${o}`);let u=[],[l,f]=lS(YE),h={log:void 0,userAgent:ch(),previews:void 0,retry:l,request:f},d=LA(a,h,e0,ZE),m=1,{data:A}=yield d.request("GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts",{owner:s,repo:o,run_id:n,per_page:$3,page:m}),y=Math.ceil(A.total_count/$3),g=A.total_count;g>z3&&(ls(`Workflow run ${n} has ${g} artifacts, exceeding the limit of ${z3}. Results will be incomplete as only the first ${z3} artifacts will be returned`),y=gir);for(let E of A.artifacts)u.push({name:E.name,id:E.id,size:E.size_in_bytes,createdAt:E.created_at?new Date(E.created_at):void 0,digest:E.digest});for(m++,m;m<=y;m++){ft(`Fetching page ${m} of artifact list`);let{data:E}=yield d.request("GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts",{owner:s,repo:o,run_id:n,per_page:$3,page:m});for(let C of E.artifacts)u.push({name:C.name,id:C.id,size:C.size_in_bytes,createdAt:C.created_at?new Date(C.created_at):void 0,digest:C.digest})}return c&&(u=M9e(u)),Ct(`Found ${u.length} artifact(s)`),{artifacts:u}})}function L9e(){return k9e(this,arguments,void 0,function*(t=!1){let e=lh(),{workflowRunBackendId:r,workflowJobRunBackendId:i}=uh(),n={workflowRunBackendId:r,workflowJobRunBackendId:i},o=(yield e.ListArtifacts(n)).artifacts.map(a=>{var c;return{name:a.name,id:Number(a.databaseId),size:Number(a.size),createdAt:a.createdAt?Ac.toDate(a.createdAt):void 0,digest:(c=a.digest)===null||c===void 0?void 0:c.value}});return t&&(o=M9e(o)),Ct(`Found ${o.length} artifact(s)`),{artifacts:o}})}function M9e(t){t.sort((i,n)=>n.id-i.id);let e=[],r=new Set;for(let i of t)r.has(i.name)||(e.push(i),r.add(i.name));return e}var kN=function(t,e,r,i){function n(s){return s instanceof r?s:new r(function(o){o(s)})}return new(r||(r=Promise))(function(s,o){function a(l){try{u(i.next(l))}catch(f){o(f)}}function c(l){try{u(i.throw(l))}catch(f){o(f)}}function u(l){l.done?s(l.value):n(l.value).then(a,c)}u((i=i.apply(t,e||[])).next())})},yir=function(t,e){var r={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(r[i]=t[i]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,i=Object.getOwnPropertySymbols(t);n<i.length;n++)e.indexOf(i[n])<0&&Object.prototype.propertyIsEnumerable.call(t,i[n])&&(r[i[n]]=t[i[n]]);return r},fS=class{uploadArtifact(e,r,i,n){return kN(this,void 0,void 0,function*(){try{if(zC())throw new AA;return Ize(e,r,i,n)}catch(s){throw ls(`Artifact upload failed with error: ${s}.
Errors can be temporary, so please try again and optionally run the action with debug mode enabled for more information.
If the error persists, please check whether Actions is operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),s}})}downloadArtifact(e,r){return uN(this,void 0,void 0,function*(){try{if(xC())throw new cA;if(r?.findBy){let{findBy:{repositoryOwner:i,repositoryName:n,token:s}}=r,o=kZt(r,["findBy"]);return lVe(e,i,n,s,o)}return fVe(e,r)}catch(i){throw is(`Download Artifact failed with error: ${i}.
If the error persists, please check whether Actions is operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),s}})}downloadArtifact(e,r){return kN(this,void 0,void 0,function*(){try{if(zC())throw new AA;if(r?.findBy){let{findBy:{repositoryOwner:i,repositoryName:n,token:s}}=r,o=yir(r,["findBy"]);return I9e(e,i,n,s,o)}return S9e(e,r)}catch(i){throw ls(`Download Artifact failed with error: ${i}.
Errors can be temporary, so please try again and optionally run the action with debug mode enabled for more information.
If the error persists, please check whether Actions and API requests are operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),i}})}listArtifacts(e){return uN(this,void 0,void 0,function*(){try{if(xC())throw new cA;if(e?.findBy){let{findBy:{workflowRunId:r,repositoryOwner:i,repositoryName:n,token:s}}=e;return IVe(r,i,n,s,e?.latest)}return SVe(e?.latest)}catch(r){throw is(`Listing Artifacts failed with error: ${r}.
If the error persists, please check whether Actions and API requests are operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),i}})}listArtifacts(e){return kN(this,void 0,void 0,function*(){try{if(zC())throw new AA;if(e?.findBy){let{findBy:{workflowRunId:r,repositoryOwner:i,repositoryName:n,token:s}}=e;return Q9e(r,i,n,s,e?.latest)}return L9e(e?.latest)}catch(r){throw ls(`Listing Artifacts failed with error: ${r}.
Errors can be temporary, so please try again and optionally run the action with debug mode enabled for more information.
If the error persists, please check whether Actions and API requests are operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),r}})}getArtifact(e,r){return uN(this,void 0,void 0,function*(){try{if(xC())throw new cA;if(r?.findBy){let{findBy:{workflowRunId:i,repositoryOwner:n,repositoryName:s,token:o}}=r;return zq(e,i,n,s,o)}return yVe(e)}catch(i){throw is(`Get Artifact failed with error: ${i}.
If the error persists, please check whether Actions and API requests are operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),r}})}getArtifact(e,r){return kN(this,void 0,void 0,function*(){try{if(zC())throw new AA;if(r?.findBy){let{findBy:{workflowRunId:i,repositoryOwner:n,repositoryName:s,token:o}}=r;return V3(e,i,n,s,o)}return N9e(e)}catch(i){throw ls(`Get Artifact failed with error: ${i}.
Errors can be temporary, so please try again and optionally run the action with debug mode enabled for more information.
If the error persists, please check whether Actions and API requests are operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),i}})}deleteArtifact(e,r){return uN(this,void 0,void 0,function*(){try{if(xC())throw new cA;if(r?.findBy){let{findBy:{repositoryOwner:i,repositoryName:n,workflowRunId:s,token:o}}=r;return bVe(e,s,i,n,o)}return wVe(e)}catch(i){throw is(`Delete Artifact failed with error: ${i}.
If the error persists, please check whether Actions and API requests are operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),i}})}deleteArtifact(e,r){return kN(this,void 0,void 0,function*(){try{if(zC())throw new AA;if(r?.findBy){let{findBy:{repositoryOwner:i,repositoryName:n,workflowRunId:s,token:o}}=r;return O9e(e,s,i,n,o)}return P9e(e)}catch(i){throw ls(`Delete Artifact failed with error: ${i}.
Errors can be temporary, so please try again and optionally run the action with debug mode enabled for more information.
If the error persists, please check whether Actions and API requests are operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),i}})}};var mti=new VI;var Jq=class{static async upload(e){if(gt.isGHES)throw new Error("@actions/artifact v2.0.0+ is currently not supported on GHES.");let r=foe.default.basename(e.filename),i=new VI;X(`Uploading ${r} as an artifact`);let n=foe.default.dirname(e.filename),s=await i.uploadArtifact(r,[e.filename],n,{retentionDays:e.retentionDays,skipArchive:!0});if(!s.id)throw new bl("Cannot upload artifact");let o=s.size??vVe.default.statSync(e.filename).size,a=`${gt.workflowRunURL()}/artifacts/${s.id}`;return X(`Artifact download URL: ${a}`),{id:s.id,filename:r,digest:s.digest||"",size:o,url:a}}};var Boe=P(xVe(),1);function HVe(t){return typeof t>"u"||t===null}function QZt(t){return typeof t=="object"&&t!==null}function LZt(t){return Array.isArray(t)?t:HVe(t)?[]:[t]}function FZt(t,e){var r,i,n,s;if(e)for(s=Object.keys(e),r=0,i=s.length;r<i;r+=1)n=s[r],t[n]=e[n];return t}function MZt(t,e){var r="",i;for(i=0;i<e;i+=1)r+=t;return r}function UZt(t){return t===0&&Number.NEGATIVE_INFINITY===1/t}var qZt=HVe,GZt=QZt,HZt=LZt,jZt=MZt,VZt=UZt,zZt=FZt,dn={isNothing:qZt,isObject:GZt,toArray:HZt,repeat:jZt,isNegativeZero:VZt,extend:zZt};function jVe(t,e){var r="",i=t.reason||"(unknown reason)";return t.mark?(t.mark.name&&(r+='in "'+t.mark.name+'" '),r+="("+(t.mark.line+1)+":"+(t.mark.column+1)+")",!e&&t.mark.snippet&&(r+=`
If the error persists, please check whether Actions and API requests are operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),i}})}};var dri=new fS;var W3=class{static async upload(e){if(gt.isGHES)throw new Error("@actions/artifact v2.0.0+ is currently not supported on GHES.");let r=yae.default.basename(e.filename),i=new fS;$(`Uploading ${r} as an artifact`);let n=yae.default.dirname(e.filename),s=await i.uploadArtifact(r,[e.filename],n,{retentionDays:e.retentionDays,skipArchive:!0});if(!s.id)throw new xl("Cannot upload artifact");let o=s.size??F9e.default.statSync(e.filename).size,a=`${gt.workflowRunURL()}/artifacts/${s.id}`;return $(`Artifact download URL: ${a}`),{id:s.id,filename:r,digest:s.digest||"",size:o,url:a}}};var Dae=O(U9e(),1);function r$e(t){return typeof t>"u"||t===null}function Eir(t){return typeof t=="object"&&t!==null}function bir(t){return Array.isArray(t)?t:r$e(t)?[]:[t]}function wir(t,e){var r,i,n,s;if(e)for(s=Object.keys(e),r=0,i=s.length;r<i;r+=1)n=s[r],t[n]=e[n];return t}function Cir(t,e){var r="",i;for(i=0;i<e;i+=1)r+=t;return r}function Iir(t){return t===0&&Number.NEGATIVE_INFINITY===1/t}var Sir=r$e,Bir=Eir,vir=bir,_ir=Cir,xir=Iir,Rir=wir,gn={isNothing:Sir,isObject:Bir,toArray:vir,repeat:_ir,isNegativeZero:xir,extend:Rir};function i$e(t,e){var r="",i=t.reason||"(unknown reason)";return t.mark?(t.mark.name&&(r+='in "'+t.mark.name+'" '),r+="("+(t.mark.line+1)+":"+(t.mark.column+1)+")",!e&&t.mark.snippet&&(r+=`
`+t.mark.snippet),i+" "+r):i}function hN(t,e){Error.call(this),this.name="YAMLException",this.reason=t,this.mark=e,this.message=jVe(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}hN.prototype=Object.create(Error.prototype);hN.prototype.constructor=hN;hN.prototype.toString=function(e){return this.name+": "+jVe(this,e)};var Aa=hN;function hoe(t,e,r,i,n){var s="",o="",a=Math.floor(n/2)-1;return i-e>a&&(s=" ... ",e=i-a+s.length),r-i>a&&(o=" ...",r=i+a-o.length),{str:s+t.slice(e,r).replace(/\t/g,"\u2192")+o,pos:i-e+s.length}}function doe(t,e){return dn.repeat(" ",e-t.length)+t}function $Zt(t,e){if(e=Object.create(e||null),!t.buffer)return null;e.maxLength||(e.maxLength=79),typeof e.indent!="number"&&(e.indent=1),typeof e.linesBefore!="number"&&(e.linesBefore=3),typeof e.linesAfter!="number"&&(e.linesAfter=2);for(var r=/\r?\n|\r|\0/g,i=[0],n=[],s,o=-1;s=r.exec(t.buffer);)n.push(s.index),i.push(s.index+s[0].length),t.position<=s.index&&o<0&&(o=i.length-2);o<0&&(o=i.length-1);var a="",c,u,l=Math.min(t.line+e.linesAfter,n.length).toString().length,f=e.maxLength-(e.indent+l+3);for(c=1;c<=e.linesBefore&&!(o-c<0);c++)u=hoe(t.buffer,i[o-c],n[o-c],t.position-(i[o]-i[o-c]),f),a=dn.repeat(" ",e.indent)+doe((t.line-c+1).toString(),l)+" | "+u.str+`
`+a;for(u=hoe(t.buffer,i[o],n[o],t.position,f),a+=dn.repeat(" ",e.indent)+doe((t.line+1).toString(),l)+" | "+u.str+`
`,a+=dn.repeat("-",e.indent+l+3+u.pos)+`^
`,c=1;c<=e.linesAfter&&!(o+c>=n.length);c++)u=hoe(t.buffer,i[o+c],n[o+c],t.position-(i[o]-i[o+c]),f),a+=dn.repeat(" ",e.indent)+doe((t.line+c+1).toString(),l)+" | "+u.str+`
`;return a.replace(/\n$/,"")}var WZt=$Zt,JZt=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],YZt=["scalar","sequence","mapping"];function KZt(t){var e={};return t!==null&&Object.keys(t).forEach(function(r){t[r].forEach(function(i){e[String(i)]=r})}),e}function XZt(t,e){if(e=e||{},Object.keys(e).forEach(function(r){if(JZt.indexOf(r)===-1)throw new Aa('Unknown option "'+r+'" is met in definition of "'+t+'" YAML type.')}),this.options=e,this.tag=t,this.kind=e.kind||null,this.resolve=e.resolve||function(){return!0},this.construct=e.construct||function(r){return r},this.instanceOf=e.instanceOf||null,this.predicate=e.predicate||null,this.represent=e.represent||null,this.representName=e.representName||null,this.defaultStyle=e.defaultStyle||null,this.multi=e.multi||!1,this.styleAliases=KZt(e.styleAliases||null),YZt.indexOf(this.kind)===-1)throw new Aa('Unknown kind "'+this.kind+'" is specified for "'+t+'" YAML type.')}var ks=XZt;function _Ve(t,e){var r=[];return t[e].forEach(function(i){var n=r.length;r.forEach(function(s,o){s.tag===i.tag&&s.kind===i.kind&&s.multi===i.multi&&(n=o)}),r[n]=i}),r}function ZZt(){var t={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},e,r;function i(n){n.multi?(t.multi[n.kind].push(n),t.multi.fallback.push(n)):t[n.kind][n.tag]=t.fallback[n.tag]=n}for(e=0,r=arguments.length;e<r;e+=1)arguments[e].forEach(i);return t}function moe(t){return this.extend(t)}moe.prototype.extend=function(e){var r=[],i=[];if(e instanceof ks)i.push(e);else if(Array.isArray(e))i=i.concat(e);else if(e&&(Array.isArray(e.implicit)||Array.isArray(e.explicit)))e.implicit&&(r=r.concat(e.implicit)),e.explicit&&(i=i.concat(e.explicit));else throw new Aa("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");r.forEach(function(s){if(!(s instanceof ks))throw new Aa("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(s.loadKind&&s.loadKind!=="scalar")throw new Aa("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(s.multi)throw new Aa("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),i.forEach(function(s){if(!(s instanceof ks))throw new Aa("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var n=Object.create(moe.prototype);return n.implicit=(this.implicit||[]).concat(r),n.explicit=(this.explicit||[]).concat(i),n.compiledImplicit=_Ve(n,"implicit"),n.compiledExplicit=_Ve(n,"explicit"),n.compiledTypeMap=ZZt(n.compiledImplicit,n.compiledExplicit),n};var eer=moe,ter=new ks("tag:yaml.org,2002:str",{kind:"scalar",construct:function(t){return t!==null?t:""}}),rer=new ks("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(t){return t!==null?t:[]}}),ier=new ks("tag:yaml.org,2002:map",{kind:"mapping",construct:function(t){return t!==null?t:{}}}),ner=new eer({explicit:[ter,rer,ier]});function ser(t){if(t===null)return!0;var e=t.length;return e===1&&t==="~"||e===4&&(t==="null"||t==="Null"||t==="NULL")}function oer(){return null}function aer(t){return t===null}var cer=new ks("tag:yaml.org,2002:null",{kind:"scalar",resolve:ser,construct:oer,predicate:aer,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});function uer(t){if(t===null)return!1;var e=t.length;return e===4&&(t==="true"||t==="True"||t==="TRUE")||e===5&&(t==="false"||t==="False"||t==="FALSE")}function ler(t){return t==="true"||t==="True"||t==="TRUE"}function fer(t){return Object.prototype.toString.call(t)==="[object Boolean]"}var her=new ks("tag:yaml.org,2002:bool",{kind:"scalar",resolve:uer,construct:ler,predicate:fer,represent:{lowercase:function(t){return t?"true":"false"},uppercase:function(t){return t?"TRUE":"FALSE"},camelcase:function(t){return t?"True":"False"}},defaultStyle:"lowercase"});function der(t){return 48<=t&&t<=57||65<=t&&t<=70||97<=t&&t<=102}function per(t){return 48<=t&&t<=55}function mer(t){return 48<=t&&t<=57}function Aer(t){if(t===null)return!1;var e=t.length,r=0,i=!1,n;if(!e)return!1;if(n=t[r],(n==="-"||n==="+")&&(n=t[++r]),n==="0"){if(r+1===e)return!0;if(n=t[++r],n==="b"){for(r++;r<e;r++)if(n=t[r],n!=="_"){if(n!=="0"&&n!=="1")return!1;i=!0}return i&&n!=="_"}if(n==="x"){for(r++;r<e;r++)if(n=t[r],n!=="_"){if(!der(t.charCodeAt(r)))return!1;i=!0}return i&&n!=="_"}if(n==="o"){for(r++;r<e;r++)if(n=t[r],n!=="_"){if(!per(t.charCodeAt(r)))return!1;i=!0}return i&&n!=="_"}}if(n==="_")return!1;for(;r<e;r++)if(n=t[r],n!=="_"){if(!mer(t.charCodeAt(r)))return!1;i=!0}return!(!i||n==="_")}function ger(t){var e=t,r=1,i;if(e.indexOf("_")!==-1&&(e=e.replace(/_/g,"")),i=e[0],(i==="-"||i==="+")&&(i==="-"&&(r=-1),e=e.slice(1),i=e[0]),e==="0")retur Line truncated
\r`;function ker(t){if(t===null)return!1;var e,r,i=0,n=t.length,s=boe;for(r=0;r<n;r++)if(e=s.indexOf(t.charAt(r)),!(e>64)){if(e<0)return!1;i+=6}return i%8===0}function Qer(t){var e,r,i=t.replace(/[\r\n=]/g,""),n=i.length,s=boe,o=0,a=[];for(e=0;e<n;e++)e%4===0&&e&&(a.push(o>>16&255),a.push(o>>8&255),a.push(o&255)),o=o<<6|s.indexOf(i.charAt(e));return r=n%4*6,r===0?(a.push(o>>16&255),a.push(o>>8&255),a.push(o&255)):r===18?(a.push(o>>10&255),a.push(o>>2&255)):r===12&&a.push(o>>4&255),new Uint8Array(a)}function Ler(t){var e="",r=0,i,n,s=t.length,o=boe;for(i=0;i<s;i++)i%3===0&&i&&(e+=o[r>>18&63],e+=o[r>>12&63],e+=o[r>>6&63],e+=o[r&63]),r=(r<<8)+t[i];return n=s%3,n===0?(e+=o[r>>18&63],e+=o[r>>12&63],e+=o[r>>6&63],e+=o[r&63]):n===2?(e+=o[r>>10&63],e+=o[r>>4&63],e+=o[r<<2&63],e+=o[64]):n===1&&(e+=o[r>>2&63],e+=o[r<<4&63],e+=o[64],e+=o[64]),e}function Fer(t){return Object.prototype.toString.call(t)==="[object Uint8Array]"}var Mer=new ks("tag:yaml.org,2002:binary",{kind:"scalar",resolve:ker,construct:Qer,predicate:Fer,represent:Ler}),Uer=Object.prototype.hasOwnProperty,qer=Object.prototype.toString;function Ger(t){if(t===null)return!0;var e=[],r,i,n,s,o,a=t;for(r=0,i=a.length;r<i;r+=1){if(n=a[r],o=!1,qer.call(n)!=="[object Object]")return!1;for(s in n)if(Uer.call(n,s))if(!o)o=!0;else return!1;if(!o)return!1;if(e.indexOf(s)===-1)e.push(s);else return!1}return!0}function Her(t){return t!==null?t:[]}var jer=new ks("tag:yaml.org,2002:omap",{kind:"sequence",resolve:Ger,construct:Her}),Ver=Object.prototype.toString;function zer(t){if(t===null)return!0;var e,r,i,n,s,o=t;for(s=new Array(o.length),e=0,r=o.length;e<r;e+=1){if(i=o[e],Ver.call(i)!=="[object Object]"||(n=Object.keys(i),n.length!==1))return!1;s[e]=[n[0],i[n[0]]]}return!0}function $er(t){if(t===null)return[];var e,r,i,n,s,o=t;for(s=new Array(o.length),e=0,r=o.length;e<r;e+=1)i=o[e],n=Object.keys(i),s[e]=[n[0],i[n[0]]];return s}var Wer=new ks("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:zer,construct:$er}),Jer=Object.prototype.hasOwnProperty;function Yer(t){if(t===null)return!0;var e,r=t;for(e in r)if(Jer.call(r,e)&&r[e]!==null)return!1;return!0}function Ker(t){return t!==null?t:{}}var Xer=new ks("tag:yaml.org,2002:set",{kind:"mapping",resolve:Yer,construct:Ker}),$Ve=_er.extend({implicit:[Der,Per],explicit:[Mer,jer,Wer,Xer]}),OA=Object.prototype.hasOwnProperty,Kq=1,WVe=2,JVe=3,Xq=4,poe=1,Zer=2,RVe=3,etr=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,ttr=/[\x85\u2028\u2029]/,rtr=/[,\[\]\{\}]/,YVe=/^(?:!|!!|![a-z\-]+!)$/i,KVe=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function TVe(t){return Object.prototype.toString.call(t)}function ph(t){return t===10||t===13}function GE(t){return t===9||t===32}function ga(t){return t===9||t===32||t===10||t===13}function $I(t){return t===44||t===91||t===93||t===123||t===125}function itr(t){var e;return 48<=t&&t<=57?t-48:(e=t|32,97<=e&&e<=102?e-97+10:-1)}function ntr(t){return t===120?2:t===117?4:t===85?8:0}function str(t){return 48<=t&&t<=57?t-48:-1}function NVe(t){return t===48?"\0":t===97?"\x07":t===98?"\b":t===116||t===9?" ":t===110?`
`:t===118?"\v":t===102?"\f":t===114?"\r":t===101?"\x1B":t===32?" ":t===34?'"':t===47?"/":t===92?"\\":t===78?"\x85":t===95?"\xA0":t===76?"\u2028":t===80?"\u2029":""}function otr(t){return t<=65535?String.fromCharCode(t):String.fromCharCode((t-65536>>10)+55296,(t-65536&1023)+56320)}function XVe(t,e,r){e==="__proto__"?Object.defineProperty(t,e,{configurable:!0,enumerable:!0,writable:!0,value:r}):t[e]=r}var ZVe=new Array(256),eze=new Array(256);for(qE=0;qE<256;qE++)ZVe[qE]=NVe(qE)?1:0,eze[qE]=NVe(qE);var qE;function atr(t,e){this.input=t,this.filename=e.filename||null,this.schema=e.schema||$Ve,this.onWarning=e.onWarning||null,this.legacy=e.legacy||!1,this.json=e.json||!1,this.listener=e.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=t.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function tze(t,e){var r={name:t.filename,buffer:t.input.slice(0,-1),position:t.position,line:t.line,column:t.position-t.lineStart};return r.snippet=WZt(r),new Aa(e,r)}function Fe(t,e){throw tze(t,e)}function Zq(t,e){t.onWarning&&t.onWarning.call(null,tze(t,e))}var DVe={YAML:function(e,r,i){var n,s,o;e.version!==null&&Fe(e,"duplication of %YAML directive"),i.length!==1&&Fe(e,"YAML directive accepts exactly one argument"),n=/^([0-9]+)\.([0-9]+)$/.exec(i[0]),n===null&&Fe(e,"ill-formed argument of the YAML directive"),s=parseInt(n[1],10),o=parseInt(n[2],10),s!==1&&Fe(e,"unacceptable YAML version of the document"),e.version=i[0],e.checkLineBreaks=o<2,o!==1&&o!==2&&Zq(e,"unsupported YAML version of the document")},TAG:function(e,r,i){var n,s;i.length!==2&&Fe(e,"TAG directive accepts exactly two arguments"),n=i[0],s=i[1],YVe.test(n)||Fe(e,"ill-formed tag handle (first argument) of the TAG directive"),OA.call(e.tagMap,n)&&Fe(e,'there is a previously declared suffix for "'+n+'" tag handle'),KVe.test(s)||Fe(e,"ill-formed tag prefix (second argument) of the TAG directive");try{s=decodeURIComponent(s)}catch{Fe(e,"tag prefix is malformed: "+s)}e.tagMap[n]=s}};function DA(t,e,r,i){var n,s,o,a;if(e<r){if(a=t.input.slice(e,r),i)for(n=0,s=a.length;n<s;n+=1)o=a.charCodeAt(n),o===9||32<=o&&o<=1114111||Fe(t,"expected valid JSON character");else etr.test(a)&&Fe(t,"the stream contains non-printable characters");t.result+=a}}function OVe(t,e,r,i){var n,s,o,a;for(dn.isObject(r)||Fe(t,"cannot merge mappings; the provided source object is unacceptable"),n=Object.keys(r),o=0,a=n.length;o<a;o+=1)s=n[o],OA.call(e,s)||(XVe(e,s,r[s]),i[s]=!0)}function WI(t,e,r,i,n,s,o,a,c){var u,l;if(Array.isArray(n))for(n=Array.prototype.slice.call(n),u=0,l=n.length;u<l;u+=1)Array.isArray(n[u])&&Fe(t,"nested arrays are not supported inside keys"),typeof n=="object"&&TVe(n[u])==="[object Object]"&&(n[u]="[object Object]");if(typeof n=="object"&&TVe(n)==="[object Object]"&&(n="[object Object]"),n=String(n),e===null&&(e={}),i==="tag:yaml.org,2002:merge")if(Array.isArray(s))for(u=0,l=s.length;u<l;u+=1)OVe(t,e,s[u],r);else OVe(t,e,s,r);else!t.json&&!OA.call(r,n)&&OA.call(e,n)&&(t.line=o||t.line,t.lineStart=a||t.lineStart,t.position=c||t.position,Fe(t,"duplicated mapping key")),XVe(e,n,s),delete r[n];return e}function woe(t){var e;e=t.input.charCodeAt(t.position),e===10?t.position++:e===13?(t.position++,t.input.charCodeAt(t.position)===10&&t.position++):Fe(t,"a line break is expected"),t.line+=1,t.lineStart=t.position,t.firstTabInLine=-1}function Wi(t,e,r){for(var i=0,n=t.input.charCodeAt(t.position);n!==0;){for(;GE(n);)n===9&&t.firstTabInLine===-1&&(t.firstTabInLine=t.position),n=t.input.charCodeAt(++t.position);if(e&&n===35)do n=t.input.charCodeAt(++t.position);while(n!==10&&n!==13&&n!==0);if(ph(n))for(woe(t),n=t.input.charCodeAt(t.position),i++,t.lineIndent=0;n===32;)t.lineIndent++,n=t.input.charCodeAt(++t.position);else break}return r!==-1&&i!==0&&t.lineIndent<r&&Zq(t,"deficient indentation"),i}function r3(t){var e=t.position,r;return r=t.input.charCodeAt(e),!!((r===45||r===46)&&r===t.input.charCodeAt(e+1)&&r===t.input.charCodeAt(e+2)&&(e+=3,r=t.input.charCodeAt(e),r===0||ga(r)))}function Coe(t,e){e===1?t.result+=" ":e>1&&(t.result+=dn.repeat(`
`,e-1))}function ctr(t,e,r){var i,n,s,o,a,c,u,l,f=t.kind,h=t.result,d;if(d=t.input.charCodeAt(t.position),ga(d)||$I(d)||d===35||d===38||d===42||d===33||d===124||d===62||d===39||d===34||d===37||d===64||d===96||(d===63||d===45)&&(n=t.input.charCodeAt(t.position+1),ga(n)||r&&$I(n)))return!1;for(t.kind="scalar",t.result="",s=o=t.position,a=!1;d!==0;){if(d===58){if(n=t.input.charCodeAt(t.position+1),ga(n)||r&&$I(n))break}else if(d===35){if(i=t.input.charCodeAt(t.position-1),ga(i))break}else{if(t.position===t.lineStart&&r3(t)||r&&$I(d))break;if(ph(d))if(c=t.line,u=t.lineStart,l=t.lineIndent,Wi(t,!1,-1),t.lineIndent>=e){a=!0,d=t.input.charCodeAt(t.position);continue}else{t.position=o,t.line=c,t.lineStart=u,t.lineIndent=l;break}}a&&(DA(t,s,o,!1),Coe(t,t.line-c),s=o=t.position,a=!1),GE(d)||(o=t.position+1),d=t.input.charCodeAt(++t.position)}return DA(t,s,o,!1),t.result?!0:(t.kind=f,t.result=h,!1)}function utr(t,e){var r,i,n;if(r=t.input.charCodeAt(t.position),r!==39)return!1;for(t.kind="scalar",t.result="",t.position++,i=n=t.position;(r=t.input.charCodeAt(t.position))!==0;)if(r===39)if(DA(t,i,t.position,!0),r=t.input.charCodeAt(++t.position),r===39)i=t.position,t.position++,n=t.position;else return!0;else ph(r)?(DA(t,i,n,!0),Coe(t,Wi(t,!1,e)),i=n=t.position):t.position===t.lineStart&&r3(t)?Fe(t,"unexpected end of the document within a single quoted scalar"):(t.position++,n=t.position);Fe(t,"unexpected end of the stream within a single quoted scalar")}function ltr(t,e){var r,i,n,s,o,a;if(a=t.input.charCodeAt(t.position),a!==34)return!1;for(t.kind="scalar",t.result="",t.position++,r=i=t.position;(a=t.input.charCodeAt(t.position))!==0;){if(a===34)return DA(t,r,t.position,!0),t.position++,!0;if(a===92){if(DA(t,r,t.position,!0),a=t.input.charCodeAt(++t.position),ph(a))Wi(t,!1,e);else if(a<256&&ZVe[a])t.result+=eze[a],t.position++;else if((o=ntr(a))>0){for(n=o,s=0;n>0;n--)a=t.input.charCodeAt(++t.position),(o=itr(a))>=0?s=(s<<4)+o:Fe(t,"expected hexadecimal character");t.result+=otr(s),t.position++}else Fe(t,"unknown escape sequence");r=i=t.position}else ph(a)?(DA(t,r,i,!0),Coe(t,Wi(t,!1,e)),r=i=t.position):t.position===t.lineStart&&r3(t)?Fe(t,"unexpected end of the document within a double quoted scalar"):(t.position++,i=t.position)}Fe(t,"unexpected end of the stream within a double quoted scalar")}function ftr(t,e){var r=!0,i,n,s,o=t.tag,a,c=t.anchor,u,l,f,h,d,m=Object.create(null),A,y,g,E;if(E=t.input.charCodeAt(t.position),E===91)l=93,d=!1,a=[];else if(E===123)l=125,d=!0,a={};else return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=a),E=t.input.charCodeAt(++t.position);E!==0;){if(Wi(t,!0,e),E=t.input.charCodeAt(t.position),E===l)return t.position++,t.tag=o,t.anchor=c,t.kind=d?"mapping":"sequence",t.result=a,!0;r?E===44&&Fe(t,"expected the node content, but found ','"):Fe(t,"missed comma between flow collection entries"),y=A=g=null,f=h=!1,E===63&&(u=t.input.charCodeAt(t.position+1),ga(u)&&(f=h=!0,t.position++,Wi(t,!0,e))),i=t.line,n=t.lineStart,s=t.position,JI(t,e,Kq,!1,!0),y=t.tag,A=t.result,Wi(t,!0,e),E=t.input.charCodeAt(t.position),(h||t.line===i)&&E===58&&(f=!0,E=t.input.charCodeAt(++t.position),Wi(t,!0,e),JI(t,e,Kq,!1,!0),g=t.result),d?WI(t,a,m,y,A,g,i,n,s):f?a.push(WI(t,null,m,y,A,g,i,n,s)):a.push(A),Wi(t,!0,e),E=t.input.charCodeAt(t.position),E===44?(r=!0,E=t.input.charCodeAt(++t.position)):r=!1}Fe(t,"unexpected end of the stream within a flow collection")}function htr(t,e){var r,i,n=poe,s=!1,o=!1,a=e,c=0,u=!1,l,f;if(f=t.input.charCodeAt(t.position),f===124)i=!1;else if(f===62)i=!0;else return!1;for(t.kind="scalar",t.result="";f!==0;)if(f=t.input.charCodeAt(++t.position),f===43||f===45)poe===n?n=f===43?RVe:Zer:Fe(t,"repeat of a chomping mode identifier");else if((l=str(f))>=0)l===0?Fe(t,"bad explicit indentation width of a block scalar; it cannot be less than one"):o?Fe(t,"repeat of an indentation width identifier"):(a=e+l-1,o=!0);else break;if(GE(f)){do f=t.input.charCodeAt(++t.position);while(GE(f));if(f===35)do f=t.input.charCodeAt(++t.position);while(!ph(f)&&f!==0)}for(;f!==0;){for(woe(t),t.lineIndent=0,f=t.input.charCodeAt(t.position);(!o||t.lineIndent<a)&&f===32;)t.lineIndent++,f=t.input.charCodeAt(++t.position);if(!o&&t.lineIndent>a&&(a=t.lineIndent),ph(f)){c++;continue}if(t.lineIndent<a){n===RVe?t.result+=dn.repeat(`
`,s?1+c:c):n===poe&&s&&(t.result+=`
`);break}for(i?GE(f)?(u=!0,t.result+=dn.repeat(`
`,s?1+c:c)):u?(u=!1,t.result+=dn.repeat(`
`,c+1)):c===0?s&&(t.result+=" "):t.result+=dn.repeat(`
`,c):t.result+=dn.repeat(`
`,s?1+c:c),s=!0,o=!0,c=0,r=t.position;!ph(f)&&f!==0;)f=t.input.charCodeAt(++t.position);DA(t,r,t.position,!1)}return!0}function PVe(t,e){var r,i=t.tag,n=t.anchor,s=[],o,a=!1,c;if(t.firstTabInLine!==-1)return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=s),c=t.input.charCodeAt(t.position);c!==0&&(t.firstTabInLine!==-1&&(t.position=t.firstTabInLine,Fe(t,"tab characters must not be used in indentation")),!(c!==45||(o=t.input.charCodeAt(t.position+1),!ga(o))));){if(a=!0,t.position++,Wi(t,!0,-1)&&t.lineIndent<=e){s.push(null),c=t.input.charCodeAt(t.position);continue}if(r=t.line,JI(t,e,JVe,!1,!0),s.push(t.result),Wi(t,!0,-1),c=t.input.charCodeAt(t.position),(t.line===r||t.lineIndent>e)&&c!==0)Fe(t,"bad indentation of a sequence entry");else if(t.lineIndent<e)break}return a?(t.tag=i,t.anchor=n,t.kind="sequence",t.result=s,!0):!1}function dtr(t,e,r){var i,n,s,o,a,c,u=t.tag,l=t.anchor,f={},h=Object.create(null),d=null,m=null,A=null,y=!1,g=!1,E;if(t.firstTabInLine!==-1)return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=f),E=t.input.charCodeAt(t.position);E!==0;){if(!y&&t.firstTabInLine!==-1&&(t.position=t.firstTabInLine,Fe(t,"tab characters must not be used in indentation")),i=t.input.charCodeAt(t.position+1),s=t.line,(E===63||E===58)&&ga(i))E===63?(y&&(WI(t,f,h,d,m,null,o,a,c),d=m=A=null),g=!0,y=!0,n=!0):y?(y=!1,n=!0):Fe(t,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),t.position+=1,E=i;else{if(o=t.line,a=t.lineStart,c=t.position,!JI(t,r,WVe,!1,!0))break;if(t.line===s){for(E=t.input.charCodeAt(t.position);GE(E);)E=t.input.charCodeAt(++t.position);if(E===58)E=t.input.charCodeAt(++t.position),ga(E)||Fe(t,"a whitespace character is expected after the key-value separator within a block mapping"),y&&(WI(t,f,h,d,m,null,o,a,c),d=m=A=null),g=!0,y=!1,n=!1,d=t.tag,m=t.result;else if(g)Fe(t,"can not read an implicit mapping pair; a colon is missed");else return t.tag=u,t.anchor=l,!0}else if(g)Fe(t,"can not read a block mapping entry; a multiline key may not be an implicit key");else return t.tag=u,t.anchor=l,!0}if((t.line===s||t.lineIndent>e)&&(y&&(o=t.line,a=t.lineStart,c=t.position),JI(t,e,Xq,!0,n)&&(y?m=t.result:A=t.result),y||(WI(t,f,h,d,m,A,o,a,c),d=m=A=null),Wi(t,!0,-1),E=t.input.charCodeAt(t.position)),(t.line===s||t.lineIndent>e)&&E!==0)Fe(t,"bad indentation of a mapping entry");else if(t.lineIndent<e)break}return y&&WI(t,f,h,d,m,null,o,a,c),g&&(t.tag=u,t.anchor=l,t.kind="mapping",t.result=f),g}function ptr(t){var e,r=!1,i=!1,n,s,o;if(o=t.input.charCodeAt(t.position),o!==33)return!1;if(t.tag!==null&&Fe(t,"duplication of a tag property"),o=t.input.charCodeAt(++t.position),o===60?(r=!0,o=t.input.charCodeAt(++t.position)):o===33?(i=!0,n="!!",o=t.input.charCodeAt(++t.position)):n="!",e=t.position,r){do o=t.input.charCodeAt(++t.position);while(o!==0&&o!==62);t.position<t.length?(s=t.input.slice(e,t.position),o=t.input.charCodeAt(++t.position)):Fe(t,"unexpected end of the stream within a verbatim tag")}else{for(;o!==0&&!ga(o);)o===33&&(i?Fe(t,"tag suffix cannot contain exclamation marks"):(n=t.input.slice(e-1,t.position+1),YVe.test(n)||Fe(t,"named tag handle cannot contain such characters"),i=!0,e=t.position+1)),o=t.input.charCodeAt(++t.position);s=t.input.slice(e,t.position),rtr.test(s)&&Fe(t,"tag suffix cannot contain flow indicator characters")}s&&!KVe.test(s)&&Fe(t,"tag name cannot contain such characters: "+s);try{s=decodeURIComponent(s)}catch{Fe(t,"tag name is malformed: "+s)}return r?t.tag=s:OA.call(t.tagMap,n)?t.tag=t.tagMap[n]+s:n==="!"?t.tag="!"+s:n==="!!"?t.tag="tag:yaml.org,2002:"+s:Fe(t,'undeclared tag handle "'+n+'"'),!0}function mtr(t){var e,r;if(r=t.input.charCodeAt(t.position),r!==38)return!1;for(t.anchor!==null&&Fe(t,"duplication of an anchor property"),r=t.input.charCodeAt(++t.position),e=t.position;r!==0&&!ga(r)&&!$I(r);)r=t.input.charCodeAt(++t.position);return t.position===e&&Fe(t,"name of an anchor node must contain at least one character"),t.anchor=t.input.slice(e,t.position),!0}function Atr(t){var e,r,i;if(i=t.input.charCodeAt(t.position),i!==42)return!1;for(i=t.input.charCodeAt(++t.position),e=t.position;i!==0&&!ga(i)&&!$I(i);)i=t.input.charCodeAt(++t.position);return t.position===e&&Fe(t,"name of an alias node must contain at least one character"),r=t.input.slice(e,t.position),OA.call(t.anchorMap,r)||Fe(t,'unidentified alias "'+r+'"'),t.result=t.anchorMap[r],Wi(t,!0,-1),!0}function JI(t,e,r,i,n){var s,o,a,c=1,u=!1,l=!1,f,h,d,m,A,y;if(t.listener!==null&&t.listener("open",t),t.tag=null,t.anchor=null,t.kind=null,t.result=null,s=o=a=Xq===r||JVe===r,i&&Wi(t,!0,-1)&&(u=!0,t.lineIndent>e?c=1:t.lineIndent===e?c=0:t.lineIndent<e&&(c=-1)),c===1)for(;ptr(t)||mtr(t);)Wi(t,!0,-1)?(u=!0,a=s,t.lineIndent>e?c=1:t.lineIndent===e?c=0:t.lineIndent<e&&(c=-1)):a=!1;if(a&&(a=u||n),(c===1||Xq===r)&&(Kq===r||WVe===r?A=e:A=e+1,y=t.position-t.lineStart,c===1?a&&(PVe(t,y)||dtr(t,y,A))||ftr(t,A)?l=!0:(o&&htr(t,A)||utr(t,A)||ltr(t,A)?l=!0:Atr(t)?(l=!0,(t.tag!==null||t. Line truncated
`),t.charCodeAt(0)===65279&&(t=t.slice(1)));var r=new atr(t,e),i=t.indexOf("\0");for(i!==-1&&(r.position=i,Fe(r,"null byte is not allowed in input")),r.input+="\0";r.input.charCodeAt(r.position)===32;)r.lineIndent+=1,r.position+=1;for(;r.position<r.length-1;)gtr(r);return r.documents}function ytr(t,e,r){e!==null&&typeof e=="object"&&typeof r>"u"&&(r=e,e=null);var i=rze(t,r);if(typeof e!="function")return i;for(var n=0,s=i.length;n<s;n+=1)e(i[n])}function Etr(t,e){var r=rze(t,e);if(r.length!==0){if(r.length===1)return r[0];throw new Aa("expected a single document in the stream, but found more")}}var btr=ytr,wtr=Etr,ize={loadAll:btr,load:wtr},nze=Object.prototype.toString,sze=Object.prototype.hasOwnProperty,Ioe=65279,Ctr=9,dN=10,Itr=13,Str=32,Btr=33,vtr=34,Aoe=35,xtr=37,_tr=38,Rtr=39,Ttr=42,oze=44,Ntr=45,e3=58,Dtr=61,Otr=62,Ptr=63,ktr=64,aze=91,cze=93,Qtr=96,uze=123,Ltr=124,lze=125,Qs={};Qs[0]="\\0";Qs[7]="\\a";Qs[8]="\\b";Qs[9]="\\t";Qs[10]="\\n";Qs[11]="\\v";Qs[12]="\\f";Qs[13]="\\r";Qs[27]="\\e";Qs[34]='\\"';Qs[92]="\\\\";Qs[133]="\\N";Qs[160]="\\_";Qs[8232]="\\L";Qs[8233]="\\P";var Ftr=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],Mtr=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function Utr(t,e){var r,i,n,s,o,a,c;if(e===null)return{};for(r={},i=Object.keys(e),n=0,s=i.length;n<s;n+=1)o=i[n],a=String(e[o]),o.slice(0,2)==="!!"&&(o="tag:yaml.org,2002:"+o.slice(2)),c=t.compiledTypeMap.fallback[o],c&&sze.call(c.styleAliases,a)&&(a=c.styleAliases[a]),r[o]=a;return r}function qtr(t){var e,r,i;if(e=t.toString(16).toUpperCase(),t<=255)r="x",i=2;else if(t<=65535)r="u",i=4;else if(t<=4294967295)r="U",i=8;else throw new Aa("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+r+dn.repeat("0",i-e.length)+e}var Gtr=1,pN=2;function Htr(t){this.schema=t.schema||$Ve,this.indent=Math.max(1,t.indent||2),this.noArrayIndent=t.noArrayIndent||!1,this.skipInvalid=t.skipInvalid||!1,this.flowLevel=dn.isNothing(t.flowLevel)?-1:t.flowLevel,this.styleMap=Utr(this.schema,t.styles||null),this.sortKeys=t.sortKeys||!1,this.lineWidth=t.lineWidth||80,this.noRefs=t.noRefs||!1,this.noCompatMode=t.noCompatMode||!1,this.condenseFlow=t.condenseFlow||!1,this.quotingType=t.quotingType==='"'?pN:Gtr,this.forceQuotes=t.forceQuotes||!1,this.replacer=typeof t.replacer=="function"?t.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function kVe(t,e){for(var r=dn.repeat(" ",e),i=0,n=-1,s="",o,a=t.length;i<a;)n=t.indexOf(`
`+t.mark.snippet),i+" "+r):i}function MN(t,e){Error.call(this),this.name="YAMLException",this.reason=t,this.mark=e,this.message=i$e(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}MN.prototype=Object.create(Error.prototype);MN.prototype.constructor=MN;MN.prototype.toString=function(e){return this.name+": "+i$e(this,e)};var Ca=MN;function Eae(t,e,r,i,n){var s="",o="",a=Math.floor(n/2)-1;return i-e>a&&(s=" ... ",e=i-a+s.length),r-i>a&&(o=" ...",r=i+a-o.length),{str:s+t.slice(e,r).replace(/\t/g,"\u2192")+o,pos:i-e+s.length}}function bae(t,e){return gn.repeat(" ",e-t.length)+t}function Tir(t,e){if(e=Object.create(e||null),!t.buffer)return null;e.maxLength||(e.maxLength=79),typeof e.indent!="number"&&(e.indent=1),typeof e.linesBefore!="number"&&(e.linesBefore=3),typeof e.linesAfter!="number"&&(e.linesAfter=2);for(var r=/\r?\n|\r|\0/g,i=[0],n=[],s,o=-1;s=r.exec(t.buffer);)n.push(s.index),i.push(s.index+s[0].length),t.position<=s.index&&o<0&&(o=i.length-2);o<0&&(o=i.length-1);var a="",c,u,l=Math.min(t.line+e.linesAfter,n.length).toString().length,f=e.maxLength-(e.indent+l+3);for(c=1;c<=e.linesBefore&&!(o-c<0);c++)u=Eae(t.buffer,i[o-c],n[o-c],t.position-(i[o]-i[o-c]),f),a=gn.repeat(" ",e.indent)+bae((t.line-c+1).toString(),l)+" | "+u.str+`
`+a;for(u=Eae(t.buffer,i[o],n[o],t.position,f),a+=gn.repeat(" ",e.indent)+bae((t.line+1).toString(),l)+" | "+u.str+`
`,a+=gn.repeat("-",e.indent+l+3+u.pos)+`^
`,c=1;c<=e.linesAfter&&!(o+c>=n.length);c++)u=Eae(t.buffer,i[o+c],n[o+c],t.position-(i[o]-i[o+c]),f),a+=gn.repeat(" ",e.indent)+bae((t.line+c+1).toString(),l)+" | "+u.str+`
`;return a.replace(/\n$/,"")}var Nir=Tir,Dir=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],Oir=["scalar","sequence","mapping"];function Pir(t){var e={};return t!==null&&Object.keys(t).forEach(function(r){t[r].forEach(function(i){e[String(i)]=r})}),e}function kir(t,e){if(e=e||{},Object.keys(e).forEach(function(r){if(Dir.indexOf(r)===-1)throw new Ca('Unknown option "'+r+'" is met in definition of "'+t+'" YAML type.')}),this.options=e,this.tag=t,this.kind=e.kind||null,this.resolve=e.resolve||function(){return!0},this.construct=e.construct||function(r){return r},this.instanceOf=e.instanceOf||null,this.predicate=e.predicate||null,this.represent=e.represent||null,this.representName=e.representName||null,this.defaultStyle=e.defaultStyle||null,this.multi=e.multi||!1,this.styleAliases=Pir(e.styleAliases||null),Oir.indexOf(this.kind)===-1)throw new Ca('Unknown kind "'+this.kind+'" is specified for "'+t+'" YAML type.')}var Us=kir;function q9e(t,e){var r=[];return t[e].forEach(function(i){var n=r.length;r.forEach(function(s,o){s.tag===i.tag&&s.kind===i.kind&&s.multi===i.multi&&(n=o)}),r[n]=i}),r}function Qir(){var t={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},e,r;function i(n){n.multi?(t.multi[n.kind].push(n),t.multi.fallback.push(n)):t[n.kind][n.tag]=t.fallback[n.tag]=n}for(e=0,r=arguments.length;e<r;e+=1)arguments[e].forEach(i);return t}function Cae(t){return this.extend(t)}Cae.prototype.extend=function(e){var r=[],i=[];if(e instanceof Us)i.push(e);else if(Array.isArray(e))i=i.concat(e);else if(e&&(Array.isArray(e.implicit)||Array.isArray(e.explicit)))e.implicit&&(r=r.concat(e.implicit)),e.explicit&&(i=i.concat(e.explicit));else throw new Ca("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");r.forEach(function(s){if(!(s instanceof Us))throw new Ca("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(s.loadKind&&s.loadKind!=="scalar")throw new Ca("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(s.multi)throw new Ca("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),i.forEach(function(s){if(!(s instanceof Us))throw new Ca("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var n=Object.create(Cae.prototype);return n.implicit=(this.implicit||[]).concat(r),n.explicit=(this.explicit||[]).concat(i),n.compiledImplicit=q9e(n,"implicit"),n.compiledExplicit=q9e(n,"explicit"),n.compiledTypeMap=Qir(n.compiledImplicit,n.compiledExplicit),n};var Lir=Cae,Mir=new Us("tag:yaml.org,2002:str",{kind:"scalar",construct:function(t){return t!==null?t:""}}),Fir=new Us("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(t){return t!==null?t:[]}}),Uir=new Us("tag:yaml.org,2002:map",{kind:"mapping",construct:function(t){return t!==null?t:{}}}),qir=new Lir({explicit:[Mir,Fir,Uir]});function Gir(t){if(t===null)return!0;var e=t.length;return e===1&&t==="~"||e===4&&(t==="null"||t==="Null"||t==="NULL")}function Hir(){return null}function jir(t){return t===null}var Vir=new Us("tag:yaml.org,2002:null",{kind:"scalar",resolve:Gir,construct:Hir,predicate:jir,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});function zir(t){if(t===null)return!1;var e=t.length;return e===4&&(t==="true"||t==="True"||t==="TRUE")||e===5&&(t==="false"||t==="False"||t==="FALSE")}function $ir(t){return t==="true"||t==="True"||t==="TRUE"}function Wir(t){return Object.prototype.toString.call(t)==="[object Boolean]"}var Jir=new Us("tag:yaml.org,2002:bool",{kind:"scalar",resolve:zir,construct:$ir,predicate:Wir,represent:{lowercase:function(t){return t?"true":"false"},uppercase:function(t){return t?"TRUE":"FALSE"},camelcase:function(t){return t?"True":"False"}},defaultStyle:"lowercase"});function Yir(t){return 48<=t&&t<=57||65<=t&&t<=70||97<=t&&t<=102}function Kir(t){return 48<=t&&t<=55}function Xir(t){return 48<=t&&t<=57}function Zir(t){if(t===null)return!1;var e=t.length,r=0,i=!1,n;if(!e)return!1;if(n=t[r],(n==="-"||n==="+")&&(n=t[++r]),n==="0"){if(r+1===e)return!0;if(n=t[++r],n==="b"){for(r++;r<e;r++)if(n=t[r],n!=="_"){if(n!=="0"&&n!=="1")return!1;i=!0}return i&&n!=="_"}if(n==="x"){for(r++;r<e;r++)if(n=t[r],n!=="_"){if(!Yir(t.charCodeAt(r)))return!1;i=!0}return i&&n!=="_"}if(n==="o"){for(r++;r<e;r++)if(n=t[r],n!=="_"){if(!Kir(t.charCodeAt(r)))return!1;i=!0}return i&&n!=="_"}}if(n==="_")return!1;for(;r<e;r++)if(n=t[r],n!=="_"){if(!Xir(t.charCodeAt(r)))return!1;i=!0}return!(!i||n==="_")}function enr(t){var e=t,r=1,i;if(e.indexOf("_")!==-1&&(e=e.replace(/_/g,"")),i=e[0],(i==="-"||i==="+")&&(i==="-"&&(r=-1),e=e.slice(1),i=e[0]),e==="0")retur Line truncated
\r`;function ynr(t){if(t===null)return!1;var e,r,i=0,n=t.length,s=_ae;for(r=0;r<n;r++)if(e=s.indexOf(t.charAt(r)),!(e>64)){if(e<0)return!1;i+=6}return i%8===0}function Enr(t){var e,r,i=t.replace(/[\r\n=]/g,""),n=i.length,s=_ae,o=0,a=[];for(e=0;e<n;e++)e%4===0&&e&&(a.push(o>>16&255),a.push(o>>8&255),a.push(o&255)),o=o<<6|s.indexOf(i.charAt(e));return r=n%4*6,r===0?(a.push(o>>16&255),a.push(o>>8&255),a.push(o&255)):r===18?(a.push(o>>10&255),a.push(o>>2&255)):r===12&&a.push(o>>4&255),new Uint8Array(a)}function bnr(t){var e="",r=0,i,n,s=t.length,o=_ae;for(i=0;i<s;i++)i%3===0&&i&&(e+=o[r>>18&63],e+=o[r>>12&63],e+=o[r>>6&63],e+=o[r&63]),r=(r<<8)+t[i];return n=s%3,n===0?(e+=o[r>>18&63],e+=o[r>>12&63],e+=o[r>>6&63],e+=o[r&63]):n===2?(e+=o[r>>10&63],e+=o[r>>4&63],e+=o[r<<2&63],e+=o[64]):n===1&&(e+=o[r>>2&63],e+=o[r<<4&63],e+=o[64],e+=o[64]),e}function wnr(t){return Object.prototype.toString.call(t)==="[object Uint8Array]"}var Cnr=new Us("tag:yaml.org,2002:binary",{kind:"scalar",resolve:ynr,construct:Enr,predicate:wnr,represent:bnr}),Inr=Object.prototype.hasOwnProperty,Snr=Object.prototype.toString;function Bnr(t){if(t===null)return!0;var e=[],r,i,n,s,o,a=t;for(r=0,i=a.length;r<i;r+=1){if(n=a[r],o=!1,Snr.call(n)!=="[object Object]")return!1;for(s in n)if(Inr.call(n,s))if(!o)o=!0;else return!1;if(!o)return!1;if(e.indexOf(s)===-1)e.push(s);else return!1}return!0}function vnr(t){return t!==null?t:[]}var _nr=new Us("tag:yaml.org,2002:omap",{kind:"sequence",resolve:Bnr,construct:vnr}),xnr=Object.prototype.toString;function Rnr(t){if(t===null)return!0;var e,r,i,n,s,o=t;for(s=new Array(o.length),e=0,r=o.length;e<r;e+=1){if(i=o[e],xnr.call(i)!=="[object Object]"||(n=Object.keys(i),n.length!==1))return!1;s[e]=[n[0],i[n[0]]]}return!0}function Tnr(t){if(t===null)return[];var e,r,i,n,s,o=t;for(s=new Array(o.length),e=0,r=o.length;e<r;e+=1)i=o[e],n=Object.keys(i),s[e]=[n[0],i[n[0]]];return s}var Nnr=new Us("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:Rnr,construct:Tnr}),Dnr=Object.prototype.hasOwnProperty;function Onr(t){if(t===null)return!0;var e,r=t;for(e in r)if(Dnr.call(r,e)&&r[e]!==null)return!1;return!0}function Pnr(t){return t!==null?t:{}}var knr=new Us("tag:yaml.org,2002:set",{kind:"mapping",resolve:Onr,construct:Pnr}),o$e=fnr.extend({implicit:[mnr,gnr],explicit:[Cnr,_nr,Nnr,knr]}),GA=Object.prototype.hasOwnProperty,Y3=1,a$e=2,c$e=3,K3=4,wae=1,Qnr=2,G9e=3,Lnr=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,Mnr=/[\x85\u2028\u2029]/,Fnr=/[,\[\]\{\}]/,u$e=/^(?:!|!!|![a-z\-]+!)$/i,l$e=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function H9e(t){return Object.prototype.toString.call(t)}function Ih(t){return t===10||t===13}function r0(t){return t===9||t===32}function Ia(t){return t===9||t===32||t===10||t===13}function dS(t){return t===44||t===91||t===93||t===123||t===125}function Unr(t){var e;return 48<=t&&t<=57?t-48:(e=t|32,97<=e&&e<=102?e-97+10:-1)}function qnr(t){return t===120?2:t===117?4:t===85?8:0}function Gnr(t){return 48<=t&&t<=57?t-48:-1}function j9e(t){return t===48?"\0":t===97?"\x07":t===98?"\b":t===116||t===9?" ":t===110?`
`:t===118?"\v":t===102?"\f":t===114?"\r":t===101?"\x1B":t===32?" ":t===34?'"':t===47?"/":t===92?"\\":t===78?"\x85":t===95?"\xA0":t===76?"\u2028":t===80?"\u2029":""}function Hnr(t){return t<=65535?String.fromCharCode(t):String.fromCharCode((t-65536>>10)+55296,(t-65536&1023)+56320)}function f$e(t,e,r){e==="__proto__"?Object.defineProperty(t,e,{configurable:!0,enumerable:!0,writable:!0,value:r}):t[e]=r}var h$e=new Array(256),d$e=new Array(256);for(t0=0;t0<256;t0++)h$e[t0]=j9e(t0)?1:0,d$e[t0]=j9e(t0);var t0;function jnr(t,e){this.input=t,this.filename=e.filename||null,this.schema=e.schema||o$e,this.onWarning=e.onWarning||null,this.legacy=e.legacy||!1,this.json=e.json||!1,this.listener=e.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=t.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function p$e(t,e){var r={name:t.filename,buffer:t.input.slice(0,-1),position:t.position,line:t.line,column:t.position-t.lineStart};return r.snippet=Nir(r),new Ca(e,r)}function Me(t,e){throw p$e(t,e)}function X3(t,e){t.onWarning&&t.onWarning.call(null,p$e(t,e))}var V9e={YAML:function(e,r,i){var n,s,o;e.version!==null&&Me(e,"duplication of %YAML directive"),i.length!==1&&Me(e,"YAML directive accepts exactly one argument"),n=/^([0-9]+)\.([0-9]+)$/.exec(i[0]),n===null&&Me(e,"ill-formed argument of the YAML directive"),s=parseInt(n[1],10),o=parseInt(n[2],10),s!==1&&Me(e,"unacceptable YAML version of the document"),e.version=i[0],e.checkLineBreaks=o<2,o!==1&&o!==2&&X3(e,"unsupported YAML version of the document")},TAG:function(e,r,i){var n,s;i.length!==2&&Me(e,"TAG directive accepts exactly two arguments"),n=i[0],s=i[1],u$e.test(n)||Me(e,"ill-formed tag handle (first argument) of the TAG directive"),GA.call(e.tagMap,n)&&Me(e,'there is a previously declared suffix for "'+n+'" tag handle'),l$e.test(s)||Me(e,"ill-formed tag prefix (second argument) of the TAG directive");try{s=decodeURIComponent(s)}catch{Me(e,"tag prefix is malformed: "+s)}e.tagMap[n]=s}};function qA(t,e,r,i){var n,s,o,a;if(e<r){if(a=t.input.slice(e,r),i)for(n=0,s=a.length;n<s;n+=1)o=a.charCodeAt(n),o===9||32<=o&&o<=1114111||Me(t,"expected valid JSON character");else Lnr.test(a)&&Me(t,"the stream contains non-printable characters");t.result+=a}}function z9e(t,e,r,i){var n,s,o,a;for(gn.isObject(r)||Me(t,"cannot merge mappings; the provided source object is unacceptable"),n=Object.keys(r),o=0,a=n.length;o<a;o+=1)s=n[o],GA.call(e,s)||(f$e(e,s,r[s]),i[s]=!0)}function pS(t,e,r,i,n,s,o,a,c){var u,l;if(Array.isArray(n))for(n=Array.prototype.slice.call(n),u=0,l=n.length;u<l;u+=1)Array.isArray(n[u])&&Me(t,"nested arrays are not supported inside keys"),typeof n=="object"&&H9e(n[u])==="[object Object]"&&(n[u]="[object Object]");if(typeof n=="object"&&H9e(n)==="[object Object]"&&(n="[object Object]"),n=String(n),e===null&&(e={}),i==="tag:yaml.org,2002:merge")if(Array.isArray(s))for(u=0,l=s.length;u<l;u+=1)z9e(t,e,s[u],r);else z9e(t,e,s,r);else!t.json&&!GA.call(r,n)&&GA.call(e,n)&&(t.line=o||t.line,t.lineStart=a||t.lineStart,t.position=c||t.position,Me(t,"duplicated mapping key")),f$e(e,n,s),delete r[n];return e}function xae(t){var e;e=t.input.charCodeAt(t.position),e===10?t.position++:e===13?(t.position++,t.input.charCodeAt(t.position)===10&&t.position++):Me(t,"a line break is expected"),t.line+=1,t.lineStart=t.position,t.firstTabInLine=-1}function Zi(t,e,r){for(var i=0,n=t.input.charCodeAt(t.position);n!==0;){for(;r0(n);)n===9&&t.firstTabInLine===-1&&(t.firstTabInLine=t.position),n=t.input.charCodeAt(++t.position);if(e&&n===35)do n=t.input.charCodeAt(++t.position);while(n!==10&&n!==13&&n!==0);if(Ih(n))for(xae(t),n=t.input.charCodeAt(t.position),i++,t.lineIndent=0;n===32;)t.lineIndent++,n=t.input.charCodeAt(++t.position);else break}return r!==-1&&i!==0&&t.lineIndent<r&&X3(t,"deficient indentation"),i}function t4(t){var e=t.position,r;return r=t.input.charCodeAt(e),!!((r===45||r===46)&&r===t.input.charCodeAt(e+1)&&r===t.input.charCodeAt(e+2)&&(e+=3,r=t.input.charCodeAt(e),r===0||Ia(r)))}function Rae(t,e){e===1?t.result+=" ":e>1&&(t.result+=gn.repeat(`
`,e-1))}function Vnr(t,e,r){var i,n,s,o,a,c,u,l,f=t.kind,h=t.result,d;if(d=t.input.charCodeAt(t.position),Ia(d)||dS(d)||d===35||d===38||d===42||d===33||d===124||d===62||d===39||d===34||d===37||d===64||d===96||(d===63||d===45)&&(n=t.input.charCodeAt(t.position+1),Ia(n)||r&&dS(n)))return!1;for(t.kind="scalar",t.result="",s=o=t.position,a=!1;d!==0;){if(d===58){if(n=t.input.charCodeAt(t.position+1),Ia(n)||r&&dS(n))break}else if(d===35){if(i=t.input.charCodeAt(t.position-1),Ia(i))break}else{if(t.position===t.lineStart&&t4(t)||r&&dS(d))break;if(Ih(d))if(c=t.line,u=t.lineStart,l=t.lineIndent,Zi(t,!1,-1),t.lineIndent>=e){a=!0,d=t.input.charCodeAt(t.position);continue}else{t.position=o,t.line=c,t.lineStart=u,t.lineIndent=l;break}}a&&(qA(t,s,o,!1),Rae(t,t.line-c),s=o=t.position,a=!1),r0(d)||(o=t.position+1),d=t.input.charCodeAt(++t.position)}return qA(t,s,o,!1),t.result?!0:(t.kind=f,t.result=h,!1)}function znr(t,e){var r,i,n;if(r=t.input.charCodeAt(t.position),r!==39)return!1;for(t.kind="scalar",t.result="",t.position++,i=n=t.position;(r=t.input.charCodeAt(t.position))!==0;)if(r===39)if(qA(t,i,t.position,!0),r=t.input.charCodeAt(++t.position),r===39)i=t.position,t.position++,n=t.position;else return!0;else Ih(r)?(qA(t,i,n,!0),Rae(t,Zi(t,!1,e)),i=n=t.position):t.position===t.lineStart&&t4(t)?Me(t,"unexpected end of the document within a single quoted scalar"):(t.position++,n=t.position);Me(t,"unexpected end of the stream within a single quoted scalar")}function $nr(t,e){var r,i,n,s,o,a;if(a=t.input.charCodeAt(t.position),a!==34)return!1;for(t.kind="scalar",t.result="",t.position++,r=i=t.position;(a=t.input.charCodeAt(t.position))!==0;){if(a===34)return qA(t,r,t.position,!0),t.position++,!0;if(a===92){if(qA(t,r,t.position,!0),a=t.input.charCodeAt(++t.position),Ih(a))Zi(t,!1,e);else if(a<256&&h$e[a])t.result+=d$e[a],t.position++;else if((o=qnr(a))>0){for(n=o,s=0;n>0;n--)a=t.input.charCodeAt(++t.position),(o=Unr(a))>=0?s=(s<<4)+o:Me(t,"expected hexadecimal character");t.result+=Hnr(s),t.position++}else Me(t,"unknown escape sequence");r=i=t.position}else Ih(a)?(qA(t,r,i,!0),Rae(t,Zi(t,!1,e)),r=i=t.position):t.position===t.lineStart&&t4(t)?Me(t,"unexpected end of the document within a double quoted scalar"):(t.position++,i=t.position)}Me(t,"unexpected end of the stream within a double quoted scalar")}function Wnr(t,e){var r=!0,i,n,s,o=t.tag,a,c=t.anchor,u,l,f,h,d,m=Object.create(null),A,y,g,E;if(E=t.input.charCodeAt(t.position),E===91)l=93,d=!1,a=[];else if(E===123)l=125,d=!0,a={};else return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=a),E=t.input.charCodeAt(++t.position);E!==0;){if(Zi(t,!0,e),E=t.input.charCodeAt(t.position),E===l)return t.position++,t.tag=o,t.anchor=c,t.kind=d?"mapping":"sequence",t.result=a,!0;r?E===44&&Me(t,"expected the node content, but found ','"):Me(t,"missed comma between flow collection entries"),y=A=g=null,f=h=!1,E===63&&(u=t.input.charCodeAt(t.position+1),Ia(u)&&(f=h=!0,t.position++,Zi(t,!0,e))),i=t.line,n=t.lineStart,s=t.position,mS(t,e,Y3,!1,!0),y=t.tag,A=t.result,Zi(t,!0,e),E=t.input.charCodeAt(t.position),(h||t.line===i)&&E===58&&(f=!0,E=t.input.charCodeAt(++t.position),Zi(t,!0,e),mS(t,e,Y3,!1,!0),g=t.result),d?pS(t,a,m,y,A,g,i,n,s):f?a.push(pS(t,null,m,y,A,g,i,n,s)):a.push(A),Zi(t,!0,e),E=t.input.charCodeAt(t.position),E===44?(r=!0,E=t.input.charCodeAt(++t.position)):r=!1}Me(t,"unexpected end of the stream within a flow collection")}function Jnr(t,e){var r,i,n=wae,s=!1,o=!1,a=e,c=0,u=!1,l,f;if(f=t.input.charCodeAt(t.position),f===124)i=!1;else if(f===62)i=!0;else return!1;for(t.kind="scalar",t.result="";f!==0;)if(f=t.input.charCodeAt(++t.position),f===43||f===45)wae===n?n=f===43?G9e:Qnr:Me(t,"repeat of a chomping mode identifier");else if((l=Gnr(f))>=0)l===0?Me(t,"bad explicit indentation width of a block scalar; it cannot be less than one"):o?Me(t,"repeat of an indentation width identifier"):(a=e+l-1,o=!0);else break;if(r0(f)){do f=t.input.charCodeAt(++t.position);while(r0(f));if(f===35)do f=t.input.charCodeAt(++t.position);while(!Ih(f)&&f!==0)}for(;f!==0;){for(xae(t),t.lineIndent=0,f=t.input.charCodeAt(t.position);(!o||t.lineIndent<a)&&f===32;)t.lineIndent++,f=t.input.charCodeAt(++t.position);if(!o&&t.lineIndent>a&&(a=t.lineIndent),Ih(f)){c++;continue}if(t.lineIndent<a){n===G9e?t.result+=gn.repeat(`
`,s?1+c:c):n===wae&&s&&(t.result+=`
`);break}for(i?r0(f)?(u=!0,t.result+=gn.repeat(`
`,s?1+c:c)):u?(u=!1,t.result+=gn.repeat(`
`,c+1)):c===0?s&&(t.result+=" "):t.result+=gn.repeat(`
`,c):t.result+=gn.repeat(`
`,s?1+c:c),s=!0,o=!0,c=0,r=t.position;!Ih(f)&&f!==0;)f=t.input.charCodeAt(++t.position);qA(t,r,t.position,!1)}return!0}function $9e(t,e){var r,i=t.tag,n=t.anchor,s=[],o,a=!1,c;if(t.firstTabInLine!==-1)return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=s),c=t.input.charCodeAt(t.position);c!==0&&(t.firstTabInLine!==-1&&(t.position=t.firstTabInLine,Me(t,"tab characters must not be used in indentation")),!(c!==45||(o=t.input.charCodeAt(t.position+1),!Ia(o))));){if(a=!0,t.position++,Zi(t,!0,-1)&&t.lineIndent<=e){s.push(null),c=t.input.charCodeAt(t.position);continue}if(r=t.line,mS(t,e,c$e,!1,!0),s.push(t.result),Zi(t,!0,-1),c=t.input.charCodeAt(t.position),(t.line===r||t.lineIndent>e)&&c!==0)Me(t,"bad indentation of a sequence entry");else if(t.lineIndent<e)break}return a?(t.tag=i,t.anchor=n,t.kind="sequence",t.result=s,!0):!1}function Ynr(t,e,r){var i,n,s,o,a,c,u=t.tag,l=t.anchor,f={},h=Object.create(null),d=null,m=null,A=null,y=!1,g=!1,E;if(t.firstTabInLine!==-1)return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=f),E=t.input.charCodeAt(t.position);E!==0;){if(!y&&t.firstTabInLine!==-1&&(t.position=t.firstTabInLine,Me(t,"tab characters must not be used in indentation")),i=t.input.charCodeAt(t.position+1),s=t.line,(E===63||E===58)&&Ia(i))E===63?(y&&(pS(t,f,h,d,m,null,o,a,c),d=m=A=null),g=!0,y=!0,n=!0):y?(y=!1,n=!0):Me(t,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),t.position+=1,E=i;else{if(o=t.line,a=t.lineStart,c=t.position,!mS(t,r,a$e,!1,!0))break;if(t.line===s){for(E=t.input.charCodeAt(t.position);r0(E);)E=t.input.charCodeAt(++t.position);if(E===58)E=t.input.charCodeAt(++t.position),Ia(E)||Me(t,"a whitespace character is expected after the key-value separator within a block mapping"),y&&(pS(t,f,h,d,m,null,o,a,c),d=m=A=null),g=!0,y=!1,n=!1,d=t.tag,m=t.result;else if(g)Me(t,"can not read an implicit mapping pair; a colon is missed");else return t.tag=u,t.anchor=l,!0}else if(g)Me(t,"can not read a block mapping entry; a multiline key may not be an implicit key");else return t.tag=u,t.anchor=l,!0}if((t.line===s||t.lineIndent>e)&&(y&&(o=t.line,a=t.lineStart,c=t.position),mS(t,e,K3,!0,n)&&(y?m=t.result:A=t.result),y||(pS(t,f,h,d,m,A,o,a,c),d=m=A=null),Zi(t,!0,-1),E=t.input.charCodeAt(t.position)),(t.line===s||t.lineIndent>e)&&E!==0)Me(t,"bad indentation of a mapping entry");else if(t.lineIndent<e)break}return y&&pS(t,f,h,d,m,null,o,a,c),g&&(t.tag=u,t.anchor=l,t.kind="mapping",t.result=f),g}function Knr(t){var e,r=!1,i=!1,n,s,o;if(o=t.input.charCodeAt(t.position),o!==33)return!1;if(t.tag!==null&&Me(t,"duplication of a tag property"),o=t.input.charCodeAt(++t.position),o===60?(r=!0,o=t.input.charCodeAt(++t.position)):o===33?(i=!0,n="!!",o=t.input.charCodeAt(++t.position)):n="!",e=t.position,r){do o=t.input.charCodeAt(++t.position);while(o!==0&&o!==62);t.position<t.length?(s=t.input.slice(e,t.position),o=t.input.charCodeAt(++t.position)):Me(t,"unexpected end of the stream within a verbatim tag")}else{for(;o!==0&&!Ia(o);)o===33&&(i?Me(t,"tag suffix cannot contain exclamation marks"):(n=t.input.slice(e-1,t.position+1),u$e.test(n)||Me(t,"named tag handle cannot contain such characters"),i=!0,e=t.position+1)),o=t.input.charCodeAt(++t.position);s=t.input.slice(e,t.position),Fnr.test(s)&&Me(t,"tag suffix cannot contain flow indicator characters")}s&&!l$e.test(s)&&Me(t,"tag name cannot contain such characters: "+s);try{s=decodeURIComponent(s)}catch{Me(t,"tag name is malformed: "+s)}return r?t.tag=s:GA.call(t.tagMap,n)?t.tag=t.tagMap[n]+s:n==="!"?t.tag="!"+s:n==="!!"?t.tag="tag:yaml.org,2002:"+s:Me(t,'undeclared tag handle "'+n+'"'),!0}function Xnr(t){var e,r;if(r=t.input.charCodeAt(t.position),r!==38)return!1;for(t.anchor!==null&&Me(t,"duplication of an anchor property"),r=t.input.charCodeAt(++t.position),e=t.position;r!==0&&!Ia(r)&&!dS(r);)r=t.input.charCodeAt(++t.position);return t.position===e&&Me(t,"name of an anchor node must contain at least one character"),t.anchor=t.input.slice(e,t.position),!0}function Znr(t){var e,r,i;if(i=t.input.charCodeAt(t.position),i!==42)return!1;for(i=t.input.charCodeAt(++t.position),e=t.position;i!==0&&!Ia(i)&&!dS(i);)i=t.input.charCodeAt(++t.position);return t.position===e&&Me(t,"name of an alias node must contain at least one character"),r=t.input.slice(e,t.position),GA.call(t.anchorMap,r)||Me(t,'unidentified alias "'+r+'"'),t.result=t.anchorMap[r],Zi(t,!0,-1),!0}function mS(t,e,r,i,n){var s,o,a,c=1,u=!1,l=!1,f,h,d,m,A,y;if(t.listener!==null&&t.listener("open",t),t.tag=null,t.anchor=null,t.kind=null,t.result=null,s=o=a=K3===r||c$e===r,i&&Zi(t,!0,-1)&&(u=!0,t.lineIndent>e?c=1:t.lineIndent===e?c=0:t.lineIndent<e&&(c=-1)),c===1)for(;Knr(t)||Xnr(t);)Zi(t,!0,-1)?(u=!0,a=s,t.lineIndent>e?c=1:t.lineIndent===e?c=0:t.lineIndent<e&&(c=-1)):a=!1;if(a&&(a=u||n),(c===1||K3===r)&&(Y3===r||a$e===r?A=e:A=e+1,y=t.position-t.lineStart,c===1?a&&($9e(t,y)||Ynr(t,y,A))||Wnr(t,A)?l=!0:(o&&Jnr(t,A)||znr(t,A)||$nr(t,A)?l=!0:Znr(t)?(l=!0,(t.tag!==null||t. Line truncated
`),t.charCodeAt(0)===65279&&(t=t.slice(1)));var r=new jnr(t,e),i=t.indexOf("\0");for(i!==-1&&(r.position=i,Me(r,"null byte is not allowed in input")),r.input+="\0";r.input.charCodeAt(r.position)===32;)r.lineIndent+=1,r.position+=1;for(;r.position<r.length-1;)esr(r);return r.documents}function tsr(t,e,r){e!==null&&typeof e=="object"&&typeof r>"u"&&(r=e,e=null);var i=m$e(t,r);if(typeof e!="function")return i;for(var n=0,s=i.length;n<s;n+=1)e(i[n])}function rsr(t,e){var r=m$e(t,e);if(r.length!==0){if(r.length===1)return r[0];throw new Ca("expected a single document in the stream, but found more")}}var isr=tsr,nsr=rsr,A$e={loadAll:isr,load:nsr},g$e=Object.prototype.toString,y$e=Object.prototype.hasOwnProperty,Tae=65279,ssr=9,FN=10,osr=13,asr=32,csr=33,usr=34,Iae=35,lsr=37,fsr=38,hsr=39,dsr=42,E$e=44,psr=45,Z3=58,msr=61,Asr=62,gsr=63,ysr=64,b$e=91,w$e=93,Esr=96,C$e=123,bsr=124,I$e=125,qs={};qs[0]="\\0";qs[7]="\\a";qs[8]="\\b";qs[9]="\\t";qs[10]="\\n";qs[11]="\\v";qs[12]="\\f";qs[13]="\\r";qs[27]="\\e";qs[34]='\\"';qs[92]="\\\\";qs[133]="\\N";qs[160]="\\_";qs[8232]="\\L";qs[8233]="\\P";var wsr=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],Csr=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function Isr(t,e){var r,i,n,s,o,a,c;if(e===null)return{};for(r={},i=Object.keys(e),n=0,s=i.length;n<s;n+=1)o=i[n],a=String(e[o]),o.slice(0,2)==="!!"&&(o="tag:yaml.org,2002:"+o.slice(2)),c=t.compiledTypeMap.fallback[o],c&&y$e.call(c.styleAliases,a)&&(a=c.styleAliases[a]),r[o]=a;return r}function Ssr(t){var e,r,i;if(e=t.toString(16).toUpperCase(),t<=255)r="x",i=2;else if(t<=65535)r="u",i=4;else if(t<=4294967295)r="U",i=8;else throw new Ca("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+r+gn.repeat("0",i-e.length)+e}var Bsr=1,UN=2;function vsr(t){this.schema=t.schema||o$e,this.indent=Math.max(1,t.indent||2),this.noArrayIndent=t.noArrayIndent||!1,this.skipInvalid=t.skipInvalid||!1,this.flowLevel=gn.isNothing(t.flowLevel)?-1:t.flowLevel,this.styleMap=Isr(this.schema,t.styles||null),this.sortKeys=t.sortKeys||!1,this.lineWidth=t.lineWidth||80,this.noRefs=t.noRefs||!1,this.noCompatMode=t.noCompatMode||!1,this.condenseFlow=t.condenseFlow||!1,this.quotingType=t.quotingType==='"'?UN:Bsr,this.forceQuotes=t.forceQuotes||!1,this.replacer=typeof t.replacer=="function"?t.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function W9e(t,e){for(var r=gn.repeat(" ",e),i=0,n=-1,s="",o,a=t.length;i<a;)n=t.indexOf(`
`,i),n===-1?(o=t.slice(i),i=a):(o=t.slice(i,n+1),i=n+1),o.length&&o!==`
`&&(s+=r),s+=o;return s}function goe(t,e){return`
`+dn.repeat(" ",t.indent*e)}function jtr(t,e){var r,i,n;for(r=0,i=t.implicitTypes.length;r<i;r+=1)if(n=t.implicitTypes[r],n.resolve(e))return!0;return!1}function t3(t){return t===Str||t===Ctr}function mN(t){return 32<=t&&t<=126||161<=t&&t<=55295&&t!==8232&&t!==8233||57344<=t&&t<=65533&&t!==Ioe||65536<=t&&t<=1114111}function QVe(t){return mN(t)&&t!==Ioe&&t!==Itr&&t!==dN}function LVe(t,e,r){var i=QVe(t),n=i&&!t3(t);return(r?i:i&&t!==oze&&t!==aze&&t!==cze&&t!==uze&&t!==lze)&&t!==Aoe&&!(e===e3&&!n)||QVe(e)&&!t3(e)&&t===Aoe||e===e3&&n}function Vtr(t){return mN(t)&&t!==Ioe&&!t3(t)&&t!==Ntr&&t!==Ptr&&t!==e3&&t!==oze&&t!==aze&&t!==cze&&t!==uze&&t!==lze&&t!==Aoe&&t!==_tr&&t!==Ttr&&t!==Btr&&t!==Ltr&&t!==Dtr&&t!==Otr&&t!==Rtr&&t!==vtr&&t!==xtr&&t!==ktr&&t!==Qtr}function ztr(t){return!t3(t)&&t!==e3}function fN(t,e){var r=t.charCodeAt(e),i;return r>=55296&&r<=56319&&e+1<t.length&&(i=t.charCodeAt(e+1),i>=56320&&i<=57343)?(r-55296)*1024+i-56320+65536:r}function fze(t){var e=/^\n* /;return e.test(t)}var hze=1,yoe=2,dze=3,pze=4,zI=5;function $tr(t,e,r,i,n,s,o,a){var c,u=0,l=null,f=!1,h=!1,d=i!==-1,m=-1,A=Vtr(fN(t,0))&&ztr(fN(t,t.length-1));if(e||o)for(c=0;c<t.length;u>=65536?c+=2:c++){if(u=fN(t,c),!mN(u))return zI;A=A&&LVe(u,l,a),l=u}else{for(c=0;c<t.length;u>=65536?c+=2:c++){if(u=fN(t,c),u===dN)f=!0,d&&(h=h||c-m-1>i&&t[m+1]!==" ",m=c);else if(!mN(u))return zI;A=A&&LVe(u,l,a),l=u}h=h||d&&c-m-1>i&&t[m+1]!==" "}return!f&&!h?A&&!o&&!n(t)?hze:s===pN?zI:yoe:r>9&&fze(t)?zI:o?s===pN?zI:yoe:h?pze:dze}function Wtr(t,e,r,i,n){t.dump=(function(){if(e.length===0)return t.quotingType===pN?'""':"''";if(!t.noCompatMode&&(Ftr.indexOf(e)!==-1||Mtr.test(e)))return t.quotingType===pN?'"'+e+'"':"'"+e+"'";var s=t.indent*Math.max(1,r),o=t.lineWidth===-1?-1:Math.max(Math.min(t.lineWidth,40),t.lineWidth-s),a=i||t.flowLevel>-1&&r>=t.flowLevel;function c(u){return jtr(t,u)}switch($tr(e,a,t.indent,o,c,t.quotingType,t.forceQuotes&&!i,n)){case hze:return e;case yoe:return"'"+e.replace(/'/g,"''")+"'";case dze:return"|"+FVe(e,t.indent)+MVe(kVe(e,s));case pze:return">"+FVe(e,t.indent)+MVe(kVe(Jtr(e,o),s));case zI:return'"'+Ytr(e)+'"';default:throw new Aa("impossible error: invalid scalar style")}})()}function FVe(t,e){var r=fze(t)?String(e):"",i=t[t.length-1]===`
`&&(s+=r),s+=o;return s}function Sae(t,e){return`
`+gn.repeat(" ",t.indent*e)}function _sr(t,e){var r,i,n;for(r=0,i=t.implicitTypes.length;r<i;r+=1)if(n=t.implicitTypes[r],n.resolve(e))return!0;return!1}function e4(t){return t===asr||t===ssr}function qN(t){return 32<=t&&t<=126||161<=t&&t<=55295&&t!==8232&&t!==8233||57344<=t&&t<=65533&&t!==Tae||65536<=t&&t<=1114111}function J9e(t){return qN(t)&&t!==Tae&&t!==osr&&t!==FN}function Y9e(t,e,r){var i=J9e(t),n=i&&!e4(t);return(r?i:i&&t!==E$e&&t!==b$e&&t!==w$e&&t!==C$e&&t!==I$e)&&t!==Iae&&!(e===Z3&&!n)||J9e(e)&&!e4(e)&&t===Iae||e===Z3&&n}function xsr(t){return qN(t)&&t!==Tae&&!e4(t)&&t!==psr&&t!==gsr&&t!==Z3&&t!==E$e&&t!==b$e&&t!==w$e&&t!==C$e&&t!==I$e&&t!==Iae&&t!==fsr&&t!==dsr&&t!==csr&&t!==bsr&&t!==msr&&t!==Asr&&t!==hsr&&t!==usr&&t!==lsr&&t!==ysr&&t!==Esr}function Rsr(t){return!e4(t)&&t!==Z3}function LN(t,e){var r=t.charCodeAt(e),i;return r>=55296&&r<=56319&&e+1<t.length&&(i=t.charCodeAt(e+1),i>=56320&&i<=57343)?(r-55296)*1024+i-56320+65536:r}function S$e(t){var e=/^\n* /;return e.test(t)}var B$e=1,Bae=2,v$e=3,_$e=4,hS=5;function Tsr(t,e,r,i,n,s,o,a){var c,u=0,l=null,f=!1,h=!1,d=i!==-1,m=-1,A=xsr(LN(t,0))&&Rsr(LN(t,t.length-1));if(e||o)for(c=0;c<t.length;u>=65536?c+=2:c++){if(u=LN(t,c),!qN(u))return hS;A=A&&Y9e(u,l,a),l=u}else{for(c=0;c<t.length;u>=65536?c+=2:c++){if(u=LN(t,c),u===FN)f=!0,d&&(h=h||c-m-1>i&&t[m+1]!==" ",m=c);else if(!qN(u))return hS;A=A&&Y9e(u,l,a),l=u}h=h||d&&c-m-1>i&&t[m+1]!==" "}return!f&&!h?A&&!o&&!n(t)?B$e:s===UN?hS:Bae:r>9&&S$e(t)?hS:o?s===UN?hS:Bae:h?_$e:v$e}function Nsr(t,e,r,i,n){t.dump=(function(){if(e.length===0)return t.quotingType===UN?'""':"''";if(!t.noCompatMode&&(wsr.indexOf(e)!==-1||Csr.test(e)))return t.quotingType===UN?'"'+e+'"':"'"+e+"'";var s=t.indent*Math.max(1,r),o=t.lineWidth===-1?-1:Math.max(Math.min(t.lineWidth,40),t.lineWidth-s),a=i||t.flowLevel>-1&&r>=t.flowLevel;function c(u){return _sr(t,u)}switch(Tsr(e,a,t.indent,o,c,t.quotingType,t.forceQuotes&&!i,n)){case B$e:return e;case Bae:return"'"+e.replace(/'/g,"''")+"'";case v$e:return"|"+K9e(e,t.indent)+X9e(W9e(e,s));case _$e:return">"+K9e(e,t.indent)+X9e(W9e(Dsr(e,o),s));case hS:return'"'+Osr(e)+'"';default:throw new Ca("impossible error: invalid scalar style")}})()}function K9e(t,e){var r=S$e(t)?String(e):"",i=t[t.length-1]===`
`,n=i&&(t[t.length-2]===`
`||t===`
`),s=n?"+":i?"":"-";return r+s+`
`}function MVe(t){return t[t.length-1]===`
`?t.slice(0,-1):t}function Jtr(t,e){for(var r=/(\n+)([^\n]*)/g,i=(function(){var u=t.indexOf(`
`);return u=u!==-1?u:t.length,r.lastIndex=u,UVe(t.slice(0,u),e)})(),n=t[0]===`
`}function X9e(t){return t[t.length-1]===`
`?t.slice(0,-1):t}function Dsr(t,e){for(var r=/(\n+)([^\n]*)/g,i=(function(){var u=t.indexOf(`
`);return u=u!==-1?u:t.length,r.lastIndex=u,Z9e(t.slice(0,u),e)})(),n=t[0]===`
`||t[0]===" ",s,o;o=r.exec(t);){var a=o[1],c=o[2];s=c[0]===" ",i+=a+(!n&&!s&&c!==""?`
`:"")+UVe(c,e),n=s}return i}function UVe(t,e){if(t===""||t[0]===" ")return t;for(var r=/ [^ ]/g,i,n=0,s,o=0,a=0,c="";i=r.exec(t);)a=i.index,a-n>e&&(s=o>n?o:a,c+=`
`:"")+Z9e(c,e),n=s}return i}function Z9e(t,e){if(t===""||t[0]===" ")return t;for(var r=/ [^ ]/g,i,n=0,s,o=0,a=0,c="";i=r.exec(t);)a=i.index,a-n>e&&(s=o>n?o:a,c+=`
`+t.slice(n,s),n=s+1),o=a;return c+=`
`,t.length-n>e&&o>n?c+=t.slice(n,o)+`
`+t.slice(o+1):c+=t.slice(n),c.slice(1)}function Ytr(t){for(var e="",r=0,i,n=0;n<t.length;r>=65536?n+=2:n++)r=fN(t,n),i=Qs[r],!i&&mN(r)?(e+=t[n],r>=65536&&(e+=t[n+1])):e+=i||qtr(r);return e}function Ktr(t,e,r){var i="",n=t.tag,s,o,a;for(s=0,o=r.length;s<o;s+=1)a=r[s],t.replacer&&(a=t.replacer.call(r,String(s),a)),(sp(t,e,a,!1,!1)||typeof a>"u"&&sp(t,e,null,!1,!1))&&(i!==""&&(i+=","+(t.condenseFlow?"":" ")),i+=t.dump);t.tag=n,t.dump="["+i+"]"}function qVe(t,e,r,i){var n="",s=t.tag,o,a,c;for(o=0,a=r.length;o<a;o+=1)c=r[o],t.replacer&&(c=t.replacer.call(r,String(o),c)),(sp(t,e+1,c,!0,!0,!1,!0)||typeof c>"u"&&sp(t,e+1,null,!0,!0,!1,!0))&&((!i||n!=="")&&(n+=goe(t,e)),t.dump&&dN===t.dump.charCodeAt(0)?n+="-":n+="- ",n+=t.dump);t.tag=s,t.dump=n||"[]"}function Xtr(t,e,r){var i="",n=t.tag,s=Object.keys(r),o,a,c,u,l;for(o=0,a=s.length;o<a;o+=1)l="",i!==""&&(l+=", "),t.condenseFlow&&(l+='"'),c=s[o],u=r[c],t.replacer&&(u=t.replacer.call(r,c,u)),sp(t,e,c,!1,!1)&&(t.dump.length>1024&&(l+="? "),l+=t.dump+(t.condenseFlow?'"':"")+":"+(t.condenseFlow?"":" "),sp(t,e,u,!1,!1)&&(l+=t.dump,i+=l));t.tag=n,t.dump="{"+i+"}"}function Ztr(t,e,r,i){var n="",s=t.tag,o=Object.keys(r),a,c,u,l,f,h;if(t.sortKeys===!0)o.sort();else if(typeof t.sortKeys=="function")o.sort(t.sortKeys);else if(t.sortKeys)throw new Aa("sortKeys must be a boolean or a function");for(a=0,c=o.length;a<c;a+=1)h="",(!i||n!=="")&&(h+=goe(t,e)),u=o[a],l=r[u],t.replacer&&(l=t.replacer.call(r,u,l)),sp(t,e+1,u,!0,!0,!0)&&(f=t.tag!==null&&t.tag!=="?"||t.dump&&t.dump.length>1024,f&&(t.dump&&dN===t.dump.charCodeAt(0)?h+="?":h+="? "),h+=t.dump,f&&(h+=goe(t,e)),sp(t,e+1,l,!0,f)&&(t.dump&&dN===t.dump.charCodeAt(0)?h+=":":h+=": ",h+=t.dump,n+=h));t.tag=s,t.dump=n||"{}"}function GVe(t,e,r){var i,n,s,o,a,c;for(n=r?t.explicitTypes:t.implicitTypes,s=0,o=n.length;s<o;s+=1)if(a=n[s],(a.instanceOf||a.predicate)&&(!a.instanceOf||typeof e=="object"&&e instanceof a.instanceOf)&&(!a.predicate||a.predicate(e))){if(r?a.multi&&a.representName?t.tag=a.representName(e):t.tag=a.tag:t.tag="?",a.represent){if(c=t.styleMap[a.tag]||a.defaultStyle,nze.call(a.represent)==="[object Function]")i=a.represent(e,c);else if(sze.call(a.represent,c))i=a.represent[c](e,c);else throw new Aa("!<"+a.tag+'> tag resolver accepts not "'+c+'" style');t.dump=i}return!0}return!1}function sp(t,e,r,i,n,s,o){t.tag=null,t.dump=r,GVe(t,r,!1)||GVe(t,r,!0);var a=nze.call(t.dump),c=i,u;i&&(i=t.flowLevel<0||t.flowLevel>e);var l=a==="[object Object]"||a==="[object Array]",f,h;if(l&&(f=t.duplicates.indexOf(r),h=f!==-1),(t.tag!==null&&t.tag!=="?"||h||t.indent!==2&&e>0)&&(n=!1),h&&t.usedDuplicates[f])t.dump="*ref_"+f;else{if(l&&h&&!t.usedDuplicates[f]&&(t.usedDuplicates[f]=!0),a==="[object Object]")i&&Object.keys(t.dump).length!==0?(Ztr(t,e,t.dump,n),h&&(t.dump="&ref_"+f+t.dump)):(Xtr(t,e,t.dump),h&&(t.dump="&ref_"+f+" "+t.dump));else if(a==="[object Array]")i&&t.dump.length!==0?(t.noArrayIndent&&!o&&e>0?qVe(t,e-1,t.dump,n):qVe(t,e,t.dump,n),h&&(t.dump="&ref_"+f+t.dump)):(Ktr(t,e,t.dump),h&&(t.dump="&ref_"+f+" "+t.dump));else if(a==="[object String]")t.tag!=="?"&&Wtr(t,t.dump,e,s,c);else{if(a==="[object Undefined]")return!1;if(t.skipInvalid)return!1;throw new Aa("unacceptable kind of an object to dump "+a)}t.tag!==null&&t.tag!=="?"&&(u=encodeURI(t.tag[0]==="!"?t.tag.slice(1):t.tag).replace(/!/g,"%21"),t.tag[0]==="!"?u="!"+u:u.slice(0,18)==="tag:yaml.org,2002:"?u="!!"+u.slice(18):u="!<"+u+">",t.dump=u+" "+t.dump)}return!0}function err(t,e){var r=[],i=[],n,s;for(Eoe(t,r,i),n=0,s=i.length;n<s;n+=1)e.duplicates.push(r[i[n]]);e.usedDuplicates=new Array(s)}function Eoe(t,e,r){var i,n,s;if(t!==null&&typeof t=="object")if(n=e.indexOf(t),n!==-1)r.indexOf(n)===-1&&r.push(n);else if(e.push(t),Array.isArray(t))for(n=0,s=t.length;n<s;n+=1)Eoe(t[n],e,r);else for(i=Object.keys(t),n=0,s=i.length;n<s;n+=1)Eoe(t[i[n]],e,r)}function trr(t,e){e=e||{};var r=new Htr(e);r.noRefs||err(t,r);var i=t;return r.replacer&&(i=r.replacer.call({"":i},"",i)),sp(r,0,i,!0,!0)?r.dump+`
`:""}var rrr=trr,irr={dump:rrr};function Soe(t,e){return function(){throw new Error("Function yaml."+t+" is removed in js-yaml 4. Use yaml."+e+" instead, which is now safe by default.")}}var Iti=ize.load,Sti=ize.loadAll,mze=irr.dump;var Bti=Soe("safeLoad","load"),vti=Soe("safeLoadAll","loadAll"),xti=Soe("safeDump","dump");var Aze=P(require("os"),1);var i3=class t{static async writeBuildSummary(e){let r=function(c,u,l=!1){return`<a href="${u}">${c}</a>`+(l?Aze.default.EOL:"")},i=e.exportRes.refs.length,n=i>0?e.exportRes.refs?.[0]:void 0,s=n?e.exportRes.summaries?.[n]:void 0,o=e.driver==="cloud"&&e.endpoint?e.endpoint?.replace(/^cloud:\/\//,"").split("/")[0]:void 0,a=C9.addHeading("Docker Build summary",2);if(o&&i===1&&n&&s){let c=t.formatDBCBuildURL(o,n,s.defaultPlatform);a.addRaw("<p>").addRaw("For a detailed look at the build, you can check the results at:").addRaw("</p>").addRaw("<p>").addRaw(`:whale: ${r(`<strong>${c}</strong>`,c)}`).addRaw("</p>")}if(e.uploadRes){let c=`./${gt.runId}/${e.uploadRes.url.split("/").slice(-2).join("/")}`;o&&i===1?a.addRaw("<p>").addRaw("You can also download the following build record archive and import it into Docker Desktop's Builds view. ").addBreak().addRaw("Build records include details such as timing, dependencies, results, logs, traces, and other information about a build. ").addRaw(r("Learn more","https://www.docker.com/blog/new-beta-feature-deep-dive-into-github-actions-docker-builds-with-docker-desktop/?utm_source=github&utm_medium=actions")).addRaw("</p>"):a.addRaw("<p>").addRaw("For a detailed look at the build, download the following build record archive and import it into Docker Desktop's Builds view. ").addBreak().addRaw("Build records include details such as timing, dependencies, results, logs, traces, and other information about a build. ").addRaw(r("Learn more","https://www.docker.com/blog/new-beta-feature-deep-dive-into-github-actions-docker-builds-with-docker-desktop/?utm_source=github&utm_medium=actions")).addRaw("</p>"),a.addRaw("<p>").addRaw(`:arrow_down: ${r(`<strong>${Xe.stringToUnicodeEntities(e.uploadRes.filename)}</strong>`,c)} (${Xe.formatFileSize(e.uploadRes.size)} - includes <strong>${i} build record${i>1?"s":""}</strong>)`).addRaw("</p>")}else e.exportRes.summaries&&a.addRaw("<p>").addRaw("The following table provides a brief summary of your build.").addBreak().addRaw("For a detailed look at the build, including timing, dependencies, results, logs, traces, and other information, consider enabling the export of the build record so you can import it into Docker Desktop's Builds view. ").addRaw(r("Learn more","https://www.docker.com/blog/new-beta-feature-deep-dive-into-github-actions-docker-builds-with-docker-desktop/?utm_source=github&utm_medium=actions")).addRaw("</p>");if(a.addRaw("<p>").addRaw("Find this useful? ").addRaw(r("Let us know","https://docs.docker.com/feedback/gha-build-summary")).addRaw("</p>"),e.exportRes.summaries){a.addRaw("<p>");let c=[[{header:!0,data:"ID"},{header:!0,data:"Name"},{header:!0,data:"Status"},{header:!0,data:"Cached"},{header:!0,data:"Duration"},...o&&i>1?[{header:!0,data:"Build result URL"}]:[]]],u;for(let l in e.exportRes.summaries)if(Object.prototype.hasOwnProperty.call(e.exportRes.summaries,l)){let f=e.exportRes.summaries[l];c.push([{data:`<code>${l.substring(0,6).toUpperCase()}</code>`},{data:`<strong>${Xe.stringToUnicodeEntities(f.name)}</strong>`},{data:`${f.status==="completed"?":white_check_mark:":f.status==="canceled"?":no_entry_sign:":":x:"} ${f.status}`},{data:`${f.numCachedSteps>0?Math.round(f.numCachedSteps/f.numTotalSteps*100):0}%`},{data:f.duration},...o&&i>1?[{data:r(":whale: Open",t.formatDBCBuildURL(o,l,f.defaultPlatform))}]:[]]),f.error&&(u=f.error)}a.addTable([...c]),a.addRaw("</p>"),u&&(a.addRaw("<blockquote>"),Xe.countLines(u)>10?a.addRaw("<details><summary><strong>Error</strong></summary>").addCodeBlock(Boe.default.encode(u),"text").addRaw("</details>"):a.addRaw("<strong>Error</strong>").addBreak().addRaw("<p>").addCodeBlock(Boe.default.encode(u),"text").addRaw("</p>"),a.addRaw("</blockquote>"))}e.inputs&&a.addRaw("<details><summary><strong>Build inputs</strong></summary>").addCodeBlock(mze(e.inputs,{indent:2,lineWidth:-1}),"yaml").addRaw("</details>"),e.bakeDefinition&&a.addRaw("<details><summary><strong>Bake definition</strong></summary>").addCodeBlock(JSON.stringify(e.bakeDefinition,null,2),"json").addRaw("</details>"),X("Writing summary"),await a.addSeparator().write()}static formatDBCBuildURL(e,r,i){return`https://app.docker.com/build/accounts/${e}/builds/${(i??"linux/amd64").replace("/","-")}/${r}`}};var HE=P(require("fs"),1),voe=P(require("path"),1);var op=class t{buildx;iidFilename;metadataFilename;constructor(e){this.buildx=e?.buildx||new Wt,this.iidFilename=`build-iidfile-${Xe.generateRandomString()}.txt`,this.metadataFilename=`build-metadata-${Xe.generateRandomString()}.json`}async gitContext(e){let r=new Set(["ref","checksum","subdir"]),i=Xe.parseBoolOrDefault(process.env.DO Line truncated
`),{delimiter:",",trim:!0,columns:!1,relaxColumnCount:!0});for(let n of i){if(n.length==1&&!n[0].startsWith("type="))return e=="local";for(let[s,o]of n.map(a=>a.split("=").map(c=>c.trim())))if(s=="type"&&o==e)return!0}return!1}static hasAttestationType(e,r){let i=nc(r,{delimiter:",",trim:!0,columns:!1,relaxColumnCount:!0});for(let n of i)for(let[s,o]of n.map(a=>a.split("=").map(c=>c.trim())))if(s=="type"&&o==e)return!0;return!1}static resolveAttestationAttrs(e){let r=nc(e,{delimiter:",",trim:!0,columns:!1,relaxColumnCount:!0}),i=[];for(let n of r)for(let s of n)try{let o=Xe.parseBool(s);i.push(`disabled=${!o}`)}catch{i.push(s)}return i.join(",")}static hasGitAuthTokenSecret(e,r){for(let i of e){if(r&&i.startsWith(`GIT_AUTH_TOKEN.${r}=`))return!0;if(i.startsWith("GIT_AUTH_TOKEN="))return!0}return!1}static parseSecretKvp(e,r){let i=e.indexOf("="),n=e.substring(0,i),s=e.substring(i+1);if(n.length==0||s.length==0)throw new Error(`${e} is not a valid secret`);return r&&hx(s),[n,s]}};var xoe=P(require("fs"),1),gze=P(require("path"),1);var YI=class t{buildx;metadataFilename;constructor(e){this.buildx=e?.buildx||new Wt,this.metadataFilename=`bake-metadata-${Xe.generateRandomString()}.json`}getMetadataFilePath(){return gze.default.join(Dt.tmpDir(),this.metadataFilename)}resolveMetadata(){let e=this.getMetadataFilePath();if(!xoe.default.existsSync(e))return;let r=xoe.default.readFileSync(e,{encoding:"utf-8"}).trim();if(r!=="null")return JSON.parse(r)}resolveRefs(e){if(!e&&(e=this.resolveMetadata(),!e))return;let r=new Array;for(let i in e)"buildx.build.ref"in e[i]&&r.push(e[i]["buildx.build.ref"]);return r.length>0?r:void 0}resolveWarnings(e){if(!(!e&&(e=this.resolveMetadata(),!e))&&"buildx.build.warnings"in e)return e["buildx.build.warnings"]}async getDefinition(e,r){r=r||{ignoreReturnCode:!0},r.ignoreReturnCode=!0,r.env=Object.assign({},process.env,r.env||{},e.githubToken?{BUILDX_BAKE_GIT_AUTH_TOKEN:e.githubToken}:{});let i=["bake"],n,s=[],o=[...e.files||[],e.source];if(o){for(let c of o.map(u=>u?u.trim():""))if(c.length!=0){if(!Xe.isValidRef(c)){s.push(c);continue}if(n)throw new Error("Only one remote bake definition can be defined");n=c}}n&&i.push(n);for(let c of s)i.push("--file",c);if(e.overrides)for(let c of e.overrides)i.push("--set",c);if(e.vars)for(let c of e.vars)i.push("--var",c);if(e.allow)for(let c of e.allow)i.push("--allow",c);e.call&&i.push("--call",e.call),e.load&&i.push("--load"),e.noCache&&i.push("--no-cache"),e.provenance&&i.push("--provenance",e.provenance),e.push&&i.push("--push"),e.sbom&&i.push("--sbom",e.sbom);let a=await this.buildx.getCommand([...i,"--print",...e.targets||[]]);return await qe.getExecOutput(a.command,a.args,r).then(c=>{if(c.stderr.length>0&&c.exitCode!=0)throw new Error(`cannot parse bake definitions: ${c.stderr.match(/(.*)\s*$/)?.[0]?.trim()??"unknown error"}`);return t.parseDefinition(c.stdout.trim())})}static parseDefinition(e){let r=JSON.parse(e);for(let i in r.target){let n=r.target[i];n.attest&&Array.isArray(n.attest)&&(n.attest=n.attest.map(s=>t.parseAttestEntry(s))),n["cache-from"]&&Array.isArray(n["cache-from"])&&(n["cache-from"]=n["cache-from"].map(s=>t.parseCacheEntry(s))),n["cache-to"]&&Array.isArray(n["cache-to"])&&(n["cache-to"]=n["cache-to"].map(s=>t.parseCacheEntry(s))),n.output&&Array.isArray(n.output)&&(n.output=n.output.map(s=>t.parseExportEntry(s))),n.secret&&Array.isArray(n.secret)&&(n.secret=n.secret.map(s=>t.parseSecretEntry(s))),n.ssh&&Array.isArray(n.ssh)&&(n.ssh=n.ssh.map(s=>t.parseSSHEntry(s)))}return r}static parseAttestEntry(e){if(typeof e!="string")return e;let r={type:""},i=nc(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0];for(let n of i){let[s,o]=n.toString().split(/(?<=^[^=]+?)=/).map(a=>a.trim());switch(s){case"type":r.type=o;break;case"disabled":r.disabled=Xe.parseBool(o);break;default:r[s]=o}}return r}static parseCacheEntry(e){if(typeof e!="string")return e;let r={type:""},i=nc(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0];if(i.length===1&&!i[0].includes("="))return r.type="registry",r.ref=i[0],r;for(let n of i){let[s,o]=n.toString().split(/(?<=^[^=]+?)=/).map(a=>a.trim());s==="type"?r.type=o:r[s]=o}return r}static parseExportEntry(e){if(typeof e!="string")return e;let r={type:""},i=nc(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0];if(i.length===1&&i[0]===e&&!e.startsWith("type="))return e!=="-"?(r.type="local",r.dest=e,r):(r.type="tar",r.dest=e,r);for(let n of i){let[s,o]=n.toString().split(/(?<=^[^=]+?)=/).map(a=>a.trim());s==="type"?r.type=o:r[s]=o}return r}static parseSecretEntry(e){if(typeof e!="string")return e;let r={},i=nc(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0],n="";for(let s of i){let[o,a]=s.toString().split(/(?<=^[^=]+?)=/).map(c=>c.trim());switch(o){case"type":n=a;break;case"id":r.id=a;break;case"source":case"src":r.src=a;break;case"env":r.env=a;break}}return n==="env"&&!r.env&&(r.env=r.src,r.src=void 0),r}static parseSSHEntry(e){if(typeof e!="string")return e;let r={},[i,n]=e.split("=",2);return r.id=i,n&&(r.paths=n.split Line truncated
`)[0])}static async isHeadDetached(){return await t.exec(["branch","--show-current"]).then(e=>e.length==0)}static async getDetachedRef(){let e=await t.exec(["show","-s","--pretty=%D"]);K(`detached HEAD ref: ${e}`);let r=e.replace(/^grafted, /,"").trim();if(r==="HEAD")return await t.inferRefFromHead();let i=r.match(/^HEAD, (.*)$/);if(!i||!i[1])throw new Error(`Cannot find detached HEAD ref in "${e}"`);let n=i[1].trim();if(n.startsWith("tag: "))return`refs/tags/${n.split(":")[1].trim()}`;if(n.match(/^pull\/\d+\/(head|merge)$/))return`refs/${n}`;let o=n.match(/^[^/]+\/[^/]+, (.+)$/);if(o)return`refs/heads/${o[1].trim()}`;let a=n.match(/^[^/]+\/(.+)$/);if(a)return`refs/heads/${a[1].trim()}`;throw new Error(`Unsupported detached HEAD ref in "${e}"`)}static async exec(e=[]){return await qe.getExecOutput("git",e,{ignoreReturnCode:!0,silent:!0}).then(r=>{if(r.stderr.length>0&&r.exitCode!=0)throw new Error(r.stderr);return r.stdout.trim()})}static async inferRefFromHead(){let e=await t.findContainingRef("refs/heads/");if(e)return e;let r=await t.findContainingRef("refs/remotes/");if(r){let s=r.match(/^refs\/remotes\/[^/]+\/(.+)$/);return s?`refs/heads/${s[1]}`:r}let i=await t.exec(["tag","--contains","HEAD"]),[n]=i.split(`
`+t.slice(o+1):c+=t.slice(n),c.slice(1)}function Osr(t){for(var e="",r=0,i,n=0;n<t.length;r>=65536?n+=2:n++)r=LN(t,n),i=qs[r],!i&&qN(r)?(e+=t[n],r>=65536&&(e+=t[n+1])):e+=i||Ssr(r);return e}function Psr(t,e,r){var i="",n=t.tag,s,o,a;for(s=0,o=r.length;s<o;s+=1)a=r[s],t.replacer&&(a=t.replacer.call(r,String(s),a)),(yp(t,e,a,!1,!1)||typeof a>"u"&&yp(t,e,null,!1,!1))&&(i!==""&&(i+=","+(t.condenseFlow?"":" ")),i+=t.dump);t.tag=n,t.dump="["+i+"]"}function e$e(t,e,r,i){var n="",s=t.tag,o,a,c;for(o=0,a=r.length;o<a;o+=1)c=r[o],t.replacer&&(c=t.replacer.call(r,String(o),c)),(yp(t,e+1,c,!0,!0,!1,!0)||typeof c>"u"&&yp(t,e+1,null,!0,!0,!1,!0))&&((!i||n!=="")&&(n+=Sae(t,e)),t.dump&&FN===t.dump.charCodeAt(0)?n+="-":n+="- ",n+=t.dump);t.tag=s,t.dump=n||"[]"}function ksr(t,e,r){var i="",n=t.tag,s=Object.keys(r),o,a,c,u,l;for(o=0,a=s.length;o<a;o+=1)l="",i!==""&&(l+=", "),t.condenseFlow&&(l+='"'),c=s[o],u=r[c],t.replacer&&(u=t.replacer.call(r,c,u)),yp(t,e,c,!1,!1)&&(t.dump.length>1024&&(l+="? "),l+=t.dump+(t.condenseFlow?'"':"")+":"+(t.condenseFlow?"":" "),yp(t,e,u,!1,!1)&&(l+=t.dump,i+=l));t.tag=n,t.dump="{"+i+"}"}function Qsr(t,e,r,i){var n="",s=t.tag,o=Object.keys(r),a,c,u,l,f,h;if(t.sortKeys===!0)o.sort();else if(typeof t.sortKeys=="function")o.sort(t.sortKeys);else if(t.sortKeys)throw new Ca("sortKeys must be a boolean or a function");for(a=0,c=o.length;a<c;a+=1)h="",(!i||n!=="")&&(h+=Sae(t,e)),u=o[a],l=r[u],t.replacer&&(l=t.replacer.call(r,u,l)),yp(t,e+1,u,!0,!0,!0)&&(f=t.tag!==null&&t.tag!=="?"||t.dump&&t.dump.length>1024,f&&(t.dump&&FN===t.dump.charCodeAt(0)?h+="?":h+="? "),h+=t.dump,f&&(h+=Sae(t,e)),yp(t,e+1,l,!0,f)&&(t.dump&&FN===t.dump.charCodeAt(0)?h+=":":h+=": ",h+=t.dump,n+=h));t.tag=s,t.dump=n||"{}"}function t$e(t,e,r){var i,n,s,o,a,c;for(n=r?t.explicitTypes:t.implicitTypes,s=0,o=n.length;s<o;s+=1)if(a=n[s],(a.instanceOf||a.predicate)&&(!a.instanceOf||typeof e=="object"&&e instanceof a.instanceOf)&&(!a.predicate||a.predicate(e))){if(r?a.multi&&a.representName?t.tag=a.representName(e):t.tag=a.tag:t.tag="?",a.represent){if(c=t.styleMap[a.tag]||a.defaultStyle,g$e.call(a.represent)==="[object Function]")i=a.represent(e,c);else if(y$e.call(a.represent,c))i=a.represent[c](e,c);else throw new Ca("!<"+a.tag+'> tag resolver accepts not "'+c+'" style');t.dump=i}return!0}return!1}function yp(t,e,r,i,n,s,o){t.tag=null,t.dump=r,t$e(t,r,!1)||t$e(t,r,!0);var a=g$e.call(t.dump),c=i,u;i&&(i=t.flowLevel<0||t.flowLevel>e);var l=a==="[object Object]"||a==="[object Array]",f,h;if(l&&(f=t.duplicates.indexOf(r),h=f!==-1),(t.tag!==null&&t.tag!=="?"||h||t.indent!==2&&e>0)&&(n=!1),h&&t.usedDuplicates[f])t.dump="*ref_"+f;else{if(l&&h&&!t.usedDuplicates[f]&&(t.usedDuplicates[f]=!0),a==="[object Object]")i&&Object.keys(t.dump).length!==0?(Qsr(t,e,t.dump,n),h&&(t.dump="&ref_"+f+t.dump)):(ksr(t,e,t.dump),h&&(t.dump="&ref_"+f+" "+t.dump));else if(a==="[object Array]")i&&t.dump.length!==0?(t.noArrayIndent&&!o&&e>0?e$e(t,e-1,t.dump,n):e$e(t,e,t.dump,n),h&&(t.dump="&ref_"+f+t.dump)):(Psr(t,e,t.dump),h&&(t.dump="&ref_"+f+" "+t.dump));else if(a==="[object String]")t.tag!=="?"&&Nsr(t,t.dump,e,s,c);else{if(a==="[object Undefined]")return!1;if(t.skipInvalid)return!1;throw new Ca("unacceptable kind of an object to dump "+a)}t.tag!==null&&t.tag!=="?"&&(u=encodeURI(t.tag[0]==="!"?t.tag.slice(1):t.tag).replace(/!/g,"%21"),t.tag[0]==="!"?u="!"+u:u.slice(0,18)==="tag:yaml.org,2002:"?u="!!"+u.slice(18):u="!<"+u+">",t.dump=u+" "+t.dump)}return!0}function Lsr(t,e){var r=[],i=[],n,s;for(vae(t,r,i),n=0,s=i.length;n<s;n+=1)e.duplicates.push(r[i[n]]);e.usedDuplicates=new Array(s)}function vae(t,e,r){var i,n,s;if(t!==null&&typeof t=="object")if(n=e.indexOf(t),n!==-1)r.indexOf(n)===-1&&r.push(n);else if(e.push(t),Array.isArray(t))for(n=0,s=t.length;n<s;n+=1)vae(t[n],e,r);else for(i=Object.keys(t),n=0,s=i.length;n<s;n+=1)vae(t[i[n]],e,r)}function Msr(t,e){e=e||{};var r=new vsr(e);r.noRefs||Lsr(t,r);var i=t;return r.replacer&&(i=r.replacer.call({"":i},"",i)),yp(r,0,i,!0,!0)?r.dump+`
`:""}var Fsr=Msr,Usr={dump:Fsr};function Nae(t,e){return function(){throw new Error("Function yaml."+t+" is removed in js-yaml 4. Use yaml."+e+" instead, which is now safe by default.")}}var wri=A$e.load,Cri=A$e.loadAll,x$e=Usr.dump;var Iri=Nae("safeLoad","load"),Sri=Nae("safeLoadAll","loadAll"),Bri=Nae("safeDump","dump");var R$e=O(require("os"),1);var r4=class t{static async writeBuildSummary(e){let r=function(c,u,l=!1){return`<a href="${u}">${c}</a>`+(l?R$e.default.EOL:"")},i=e.exportRes.refs.length,n=i>0?e.exportRes.refs?.[0]:void 0,s=n?e.exportRes.summaries?.[n]:void 0,o=e.driver==="cloud"&&e.endpoint?e.endpoint?.replace(/^cloud:\/\//,"").split("/")[0]:void 0,a=y9.addHeading("Docker Build summary",2);if(o&&i===1&&n&&s){let c=t.formatDBCBuildURL(o,n,s.defaultPlatform);a.addRaw("<p>").addRaw("For a detailed look at the build, you can check the results at:").addRaw("</p>").addRaw("<p>").addRaw(`:whale: ${r(`<strong>${c}</strong>`,c)}`).addRaw("</p>")}if(e.uploadRes){let c=`./${gt.runId}/${e.uploadRes.url.split("/").slice(-2).join("/")}`;o&&i===1?a.addRaw("<p>").addRaw("You can also download the following build record archive and import it into Docker Desktop's Builds view. ").addBreak().addRaw("Build records include details such as timing, dependencies, results, logs, traces, and other information about a build. ").addRaw(r("Learn more","https://www.docker.com/blog/new-beta-feature-deep-dive-into-github-actions-docker-builds-with-docker-desktop/?utm_source=github&utm_medium=actions")).addRaw("</p>"):a.addRaw("<p>").addRaw("For a detailed look at the build, download the following build record archive and import it into Docker Desktop's Builds view. ").addBreak().addRaw("Build records include details such as timing, dependencies, results, logs, traces, and other information about a build. ").addRaw(r("Learn more","https://www.docker.com/blog/new-beta-feature-deep-dive-into-github-actions-docker-builds-with-docker-desktop/?utm_source=github&utm_medium=actions")).addRaw("</p>"),a.addRaw("<p>").addRaw(`:arrow_down: ${r(`<strong>${Ke.stringToUnicodeEntities(e.uploadRes.filename)}</strong>`,c)} (${Ke.formatFileSize(e.uploadRes.size)} - includes <strong>${i} build record${i>1?"s":""}</strong>)`).addRaw("</p>")}else e.exportRes.summaries&&a.addRaw("<p>").addRaw("The following table provides a brief summary of your build.").addBreak().addRaw("For a detailed look at the build, including timing, dependencies, results, logs, traces, and other information, consider enabling the export of the build record so you can import it into Docker Desktop's Builds view. ").addRaw(r("Learn more","https://www.docker.com/blog/new-beta-feature-deep-dive-into-github-actions-docker-builds-with-docker-desktop/?utm_source=github&utm_medium=actions")).addRaw("</p>");if(a.addRaw("<p>").addRaw("Find this useful? ").addRaw(r("Let us know","https://docs.docker.com/feedback/gha-build-summary")).addRaw("</p>"),e.exportRes.summaries){a.addRaw("<p>");let c=[[{header:!0,data:"ID"},{header:!0,data:"Name"},{header:!0,data:"Status"},{header:!0,data:"Cached"},{header:!0,data:"Duration"},...o&&i>1?[{header:!0,data:"Build result URL"}]:[]]],u;for(let l in e.exportRes.summaries)if(Object.prototype.hasOwnProperty.call(e.exportRes.summaries,l)){let f=e.exportRes.summaries[l];c.push([{data:`<code>${l.substring(0,6).toUpperCase()}</code>`},{data:`<strong>${Ke.stringToUnicodeEntities(f.name)}</strong>`},{data:`${f.status==="completed"?":white_check_mark:":f.status==="canceled"?":no_entry_sign:":":x:"} ${f.status}`},{data:`${f.numCachedSteps>0?Math.round(f.numCachedSteps/f.numTotalSteps*100):0}%`},{data:f.duration},...o&&i>1?[{data:r(":whale: Open",t.formatDBCBuildURL(o,l,f.defaultPlatform))}]:[]]),f.error&&(u=f.error)}a.addTable([...c]),a.addRaw("</p>"),u&&(a.addRaw("<blockquote>"),Ke.countLines(u)>10?a.addRaw("<details><summary><strong>Error</strong></summary>").addCodeBlock(Dae.default.encode(u),"text").addRaw("</details>"):a.addRaw("<strong>Error</strong>").addBreak().addRaw("<p>").addCodeBlock(Dae.default.encode(u),"text").addRaw("</p>"),a.addRaw("</blockquote>"))}e.inputs&&a.addRaw("<details><summary><strong>Build inputs</strong></summary>").addCodeBlock(x$e(e.inputs,{indent:2,lineWidth:-1}),"yaml").addRaw("</details>"),e.bakeDefinition&&a.addRaw("<details><summary><strong>Bake definition</strong></summary>").addCodeBlock(JSON.stringify(e.bakeDefinition,null,2),"json").addRaw("</details>"),$("Writing summary"),await a.addSeparator().write()}static formatDBCBuildURL(e,r,i){return`https://app.docker.com/build/accounts/${e}/builds/${(i??"linux/amd64").replace("/","-")}/${r}`}};var i0=O(require("fs"),1),Oae=O(require("path"),1);var Ep=class t{buildx;iidFilename;metadataFilename;constructor(e){this.buildx=e?.buildx||new Wt,this.iidFilename=`build-iidfile-${Ke.generateRandomString()}.txt`,this.metadataFilename=`build-metadata-${Ke.generateRandomString()}.json`}async gitContext(e){let r=new Set(["ref","checksum","subdir"]),i=e?.attrs||{},n=Object.entries(i).fil Line truncated
`),{delimiter:",",trim:!0,columns:!1,relaxColumnCount:!0});for(let n of i){if(n.length==1&&!n[0].startsWith("type="))return e=="local";for(let[s,o]of n.map(a=>a.split("=").map(c=>c.trim())))if(s=="type"&&o==e)return!0}return!1}static hasAttestationType(e,r){let i=pc(r,{delimiter:",",trim:!0,columns:!1,relaxColumnCount:!0});for(let n of i)for(let[s,o]of n.map(a=>a.split("=").map(c=>c.trim())))if(s=="type"&&o==e)return!0;return!1}static resolveAttestationAttrs(e){let r=pc(e,{delimiter:",",trim:!0,columns:!1,relaxColumnCount:!0}),i=[];for(let n of r)for(let s of n)try{let o=Ke.parseBool(s);i.push(`disabled=${!o}`)}catch{i.push(s)}return i.join(",")}static hasGitAuthTokenSecret(e,r){for(let i of e){if(r&&i.startsWith(`GIT_AUTH_TOKEN.${r}=`))return!0;if(i.startsWith("GIT_AUTH_TOKEN="))return!0}return!1}static parseSecretKvp(e,r){let i=e.indexOf("="),n=e.substring(0,i),s=e.substring(i+1);if(n.length==0||s.length==0)throw new Error(`${e} is not a valid secret`);return r&&y_(s),[n,s]}};var Pae=O(require("fs"),1),T$e=O(require("path"),1);var AS=class t{buildx;metadataFilename;constructor(e){this.buildx=e?.buildx||new Wt,this.metadataFilename=`bake-metadata-${Ke.generateRandomString()}.json`}getMetadataFilePath(){return T$e.default.join(Dt.tmpDir(),this.metadataFilename)}resolveMetadata(){let e=this.getMetadataFilePath();if(!Pae.default.existsSync(e))return;let r=Pae.default.readFileSync(e,{encoding:"utf-8"}).trim();if(r!=="null")return JSON.parse(r)}resolveRefs(e){if(!e&&(e=this.resolveMetadata(),!e))return;let r=new Array;for(let i in e)"buildx.build.ref"in e[i]&&r.push(e[i]["buildx.build.ref"]);return r.length>0?r:void 0}resolveWarnings(e){if(!(!e&&(e=this.resolveMetadata(),!e))&&"buildx.build.warnings"in e)return e["buildx.build.warnings"]}async getDefinition(e,r){r=r||{ignoreReturnCode:!0},r.ignoreReturnCode=!0,r.env=Object.assign({},process.env,r.env||{},e.githubToken?{BUILDX_BAKE_GIT_AUTH_TOKEN:e.githubToken}:{});let i=["bake"],n,s=[],o=[...e.files||[],e.source];if(o){for(let c of o.map(u=>u?u.trim():""))if(c.length!=0){if(!Ke.isValidRef(c)){s.push(c);continue}if(n)throw new Error("Only one remote bake definition can be defined");n=c}}n&&i.push(n);for(let c of s)i.push("--file",c);if(e.overrides)for(let c of e.overrides)i.push("--set",c);if(e.vars)for(let c of e.vars)i.push("--var",c);if(e.allow)for(let c of e.allow)i.push("--allow",c);e.call&&i.push("--call",e.call),e.load&&i.push("--load"),e.noCache&&i.push("--no-cache"),e.provenance&&i.push("--provenance",e.provenance),e.push&&i.push("--push"),e.sbom&&i.push("--sbom",e.sbom);let a=await this.buildx.getCommand([...i,"--print",...e.targets||[]]);return await qe.getExecOutput(a.command,a.args,r).then(c=>{if(c.stderr.length>0&&c.exitCode!=0)throw new Error(`cannot parse bake definitions: ${c.stderr.match(/(.*)\s*$/)?.[0]?.trim()??"unknown error"}`);return t.parseDefinition(c.stdout.trim())})}static parseDefinition(e){let r=JSON.parse(e);for(let i in r.target){let n=r.target[i];n.attest&&Array.isArray(n.attest)&&(n.attest=n.attest.map(s=>t.parseAttestEntry(s))),n["cache-from"]&&Array.isArray(n["cache-from"])&&(n["cache-from"]=n["cache-from"].map(s=>t.parseCacheEntry(s))),n["cache-to"]&&Array.isArray(n["cache-to"])&&(n["cache-to"]=n["cache-to"].map(s=>t.parseCacheEntry(s))),n.output&&Array.isArray(n.output)&&(n.output=n.output.map(s=>t.parseExportEntry(s))),n.secret&&Array.isArray(n.secret)&&(n.secret=n.secret.map(s=>t.parseSecretEntry(s))),n.ssh&&Array.isArray(n.ssh)&&(n.ssh=n.ssh.map(s=>t.parseSSHEntry(s)))}return r}static parseAttestEntry(e){if(typeof e!="string")return e;let r={type:""},i=pc(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0];for(let n of i){let[s,o]=n.toString().split(/(?<=^[^=]+?)=/).map(a=>a.trim());switch(s){case"type":r.type=o;break;case"disabled":r.disabled=Ke.parseBool(o);break;default:r[s]=o}}return r}static parseCacheEntry(e){if(typeof e!="string")return e;let r={type:""},i=pc(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0];if(i.length===1&&!i[0].includes("="))return r.type="registry",r.ref=i[0],r;for(let n of i){let[s,o]=n.toString().split(/(?<=^[^=]+?)=/).map(a=>a.trim());s==="type"?r.type=o:r[s]=o}return r}static parseExportEntry(e){if(typeof e!="string")return e;let r={type:""},i=pc(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0];if(i.length===1&&i[0]===e&&!e.startsWith("type="))return e!=="-"?(r.type="local",r.dest=e,r):(r.type="tar",r.dest=e,r);for(let n of i){let[s,o]=n.toString().split(/(?<=^[^=]+?)=/).map(a=>a.trim());s==="type"?r.type=o:r[s]=o}return r}static parseSecretEntry(e){if(typeof e!="string")return e;let r={},i=pc(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0],n="";for(let s of i){let[o,a]=s.toString().split(/(?<=^[^=]+?)=/).map(c=>c.trim());switch(o){case"type":n=a;break;case"id":r.id=a;break;case"source":case"src":r.src=a;break;case"env":r.env=a;break}}return n==="env"&&!r.env&&(r.env=r.src,r.src=void 0),r}static parseSSHEntry(e){if(typeof e!="string")return e;let r={},[i,n]=e.split("=",2);return r.id=i,n&&(r.paths=n.split Line truncated
`)[0])}static async isHeadDetached(){return await t.exec(["branch","--show-current"]).then(e=>e.length==0)}static async getDetachedRef(){let e=await t.exec(["show","-s","--pretty=%D"]);X(`detached HEAD ref: ${e}`);let r=e.replace(/^grafted, /,"").trim();if(r==="HEAD")return await t.inferRefFromHead();let i=r.match(/^HEAD, (.*)$/);if(!i||!i[1])throw new Error(`Cannot find detached HEAD ref in "${e}"`);let n=i[1].trim();if(n.startsWith("tag: "))return`refs/tags/${n.split(":")[1].trim()}`;if(n.match(/^pull\/\d+\/(head|merge)$/))return`refs/${n}`;let o=n.match(/^[^/]+\/[^/]+, (.+)$/);if(o)return`refs/heads/${o[1].trim()}`;let a=n.match(/^[^/]+\/(.+)$/);if(a)return`refs/heads/${a[1].trim()}`;throw new Error(`Unsupported detached HEAD ref in "${e}"`)}static async exec(e=[]){return await qe.getExecOutput("git",e,{ignoreReturnCode:!0,silent:!0}).then(r=>{if(r.stderr.length>0&&r.exitCode!=0)throw new Error(r.stderr);return r.stdout.trim()})}static async inferRefFromHead(){let e=await t.findContainingRef("refs/heads/");if(e)return e;let r=await t.findContainingRef("refs/remotes/");if(r){let s=r.match(/^refs\/remotes\/[^/]+\/(.+)$/);return s?`refs/heads/${s[1]}`:r}let i=await t.exec(["tag","--contains","HEAD"]),[n]=i.split(`
`).map(s=>s.trim()).filter(s=>s.length>0);if(n)return`refs/tags/${n}`;throw new Error("Cannot infer ref from detached HEAD")}static async findContainingRef(e){let r=await t.exec(["for-each-ref","--format=%(refname)","--contains","HEAD","--sort=-committerdate",e]),[i]=r.split(`
`).map(n=>n.trim()).filter(n=>n.length>0);return i}static async commitDate(e){return new Date(await t.exec(["show","-s",'--format="%ci"',e]))}};var Bnt=require("crypto"),Yh=P(require("fs"),1),bg=P(require("path"),1);var B2=P(gN(),1),Kh=P(Ctt(),1),vnt=P(ape(),1),OB=P(ynt(),1);var ome=P(gN(),1);var bnt=P(gl(),1);var Ent="application/vnd.oci.empty.v1+json";var Xp=class{binPath;_version;_versionOnce;constructor(e){this.binPath=e?.binPath||"cosign",this._version="",this._versionOnce=!1}async isAvailable(){let e=await qe.getExecOutput(this.binPath,[],{ignoreReturnCode:!0,silent:!0}).then(r=>r.stderr.length>0&&r.exitCode!=0?(K(`Cosign.isAvailable cmd err: ${r.stderr.trim()}`),!1):r.exitCode==0).catch(r=>(K(`Cosign.isAvailable error: ${r}`),!1));return K(`Cosign.isAvailable: ${e}`),e}async version(){return this._versionOnce?this._version:(this._versionOnce=!0,this._version=await qe.getExecOutput(this.binPath,["version","--json"],{ignoreReturnCode:!0,silent:!0}).then(e=>{if(e.stderr.length>0&&e.exitCode!=0)throw new Error(e.stderr.trim());return JSON.parse(e.stdout.trim()).gitVersion}),this._version)}async printVersion(){await qe.exec(this.binPath,["version","--json"],{failOnStdErr:!1})}async versionSatisfies(e,r){let i=r??await this.version();if(!i)return K("Cosign.versionSatisfies false: undefined version"),!1;let n=bnt.satisfies(i,e)||/^[0-9a-f]{7}$/.exec(i)!==null;return K(`Cosign.versionSatisfies ${i} statisfies ${e}: ${n}`),n}static parseCommandOutput(e){let r,i,n,s;for(let o of e.split(/\r?\n/)){let a=o.trim();if(!a.startsWith("{")||!a.endsWith("}"))continue;let c;try{c=JSON.parse(a)}catch{continue}if(c&&Array.isArray(c.errors)&&c.errors.length>0&&(s=c.errors),!r&&c&&Array.isArray(c.manifests)&&c.manifests.length>0){let u=c.manifests[0];u?.artifactType===ome.BUNDLE_V03_MEDIA_TYPE&&typeof u.digest=="string"?r=u.digest:u?.artifactType===Ent&&typeof u.digest=="string"&&(i=u.digest)}if(!n&&c&&c.mediaType===ome.BUNDLE_V03_MEDIA_TYPE&&(n=c),n&&(r||i)){s=void 0;break}}return{bundle:n,signatureManifestDigest:r||i,errors:s}}};var ame=P(require("fs"),1);var uH=class t{buildx;constructor(e){this.buildx=e?.buildx||new Wt}async getCommand(e){return await this.buildx.getCommand(["imagetools",...e])}async getInspectCommand(e){return await this.getCommand(["inspect",...e])}async getCreateCommand(e){return await this.getCommand(["create",...e])}async inspectImage(e){return await this.inspect(e,"{{json .Image}}",r=>{if(typeof r=="object"&&!Array.isArray(r)&&r!==null)return Object.prototype.hasOwnProperty.call(r,"config"),r;throw new Error("Unexpected output format")})}async inspectManifest(e){return await this.inspect(e,"{{json .Manifest}}",r=>{if(typeof r=="object"&&!Array.isArray(r)&&r!==null)return Object.prototype.hasOwnProperty.call(r,"manifests"),r;throw new Error("Unexpected output format")})}async attestationDescriptors(e){let r=await this.inspectManifest(e);if(typeof r!="object"||r===null||!("manifests"in r)||!Array.isArray(r.manifests))throw new Error(`No descriptor found for ${e.name}`);let i=r.manifests.filter(o=>o.annotations?.["vnd.docker.reference.type"]==="attestation-manifest");if(!e.platform)return i;let n=e.platform,s=new Map;for(let o of r.manifests)o.digest&&s.set(o.digest,o);return i.filter(o=>{let a=o.annotations?.["vnd.docker.reference.digest"];if(!a)return!1;let c=s.get(a);return c?c.platform?.os===n.os&&c.platform?.architecture===n.architecture&&(c.platform?.variant??"")===(n.variant??""):!1})}async attestationDigests(e){return(await this.attestationDescriptors(e)).map(r=>r.digest)}async create(e){let r=[],i=Dt.tmpName({tmpdir:Dt.tmpDir(),template:"imagetools-metadata-XXXXXX"}),n=[],s=[];for(let a of e.sources){if(a.startsWith("cwd://")){let c=a.substring(6);c.length>0&&n.push(c);continue}s.push(a)}if(e.tags)for(let a of e.tags)r.push("--tag",a);if(e.platforms)for(let a of e.platforms)r.push("--platform",a);if(e.annotations)for(let a of e.annotations)r.push("--annotation",a);e.dryRun?r.push("--dry-run"):r.push("--metadata-file",i);for(let a of n)r.push("--file",a);for(let a of s)r.push(a);let o=await this.getCreateCommand(r);if(e.skipExec){X(`[command]${o.command} ${o.args.join(" ")}`),X("Skipped create command");return}return await qe.getExecOutput(o.command,o.args,{ignoreReturnCode:!0,silent:e.silent}).then(a=>{if(a.stderr.length>0&&a.exitCode!=0)throw new Error(a.stderr.trim());if(!e.dryRun){if(!ame.default.existsSync(i))return;let c=ame.default.readFileSync(i,{encoding:"utf-8"}).trim();if(c===""||c==="null")return;let u=JSON.parse(c),l=u["containerimage.descriptor"];return l?{digest:u["containerimage.digest"]||l.digest,descriptor:l,imageNames:u["image.name"]?u["image.name"].split(",").map(f=>f.trim()):[]}:void 0}})}async inspect(e,r,i){let n=await this.getInspectCommand([e.name,"--format",r]);if(!e.retryOnManifestUnknown)return await this.execInspect(n.command,n.args,i);let s=e.retryLimit??15,o;for(let a=0;a<s;a++)try{return await this.execInspect(n.command,n.args,i)}catch(c){if(o=c,!t.isManifest Line truncated
${o.message}`),await new Promise(u=>setTimeout(u,Math.pow(2,a)*100))}throw o??new Error(`ImageTools inspect command failed for ${e.name}`)}async execInspect(e,r,i){return await qe.getExecOutput(e,r,{ignoreReturnCode:!0,silent:!0}).then(n=>{if(n.stderr.length>0&&n.exitCode!=0)throw new Error(n.stderr.trim());return i(JSON.parse(n.stdout))})}static isManifestUnknownError(e){return/(MANIFEST_UNKNOWN|manifest unknown|not found: not found)/i.test(e)}};var wnt="application/vnd.in-toto+json";var Cnt="https://fulcio.sigstore.dev",Int="https://rekor.sigstore.dev",Snt="https://timestamp.sigstore.dev",V0="https://search.sigstore.dev";var fBr="slsaprovenance1",wg=class t{cosign;imageTools;constructor(e){this.cosign=e?.cosign||new Xp,this.imageTools=e?.imageTools||new uH}async signAttestationManifests(e){if(!await this.cosign.isAvailable())throw new Error("Cosign is required to sign attestation manifests");let r={};try{if(!process.env.ACTIONS_ID_TOKEN_REQUEST_URL)throw new Error('missing "id-token" permission. Please add "permissions: id-token: write" to your workflow.');let i=this.signingEndpoints(e.noTransparencyLog);X(`Using Sigstore signing endpoint: ${i.fulcioURL}`);let n=t.noTransparencyLog(e.noTransparencyLog),s=[];await this.cosign.versionSatisfies(">=3.0.4")?await km("Creating Sigstore protobuf signing config",async()=>{let o=Dt.tmpName({template:"signing-config-XXXXXX.json",tmpdir:Dt.tmpDir()}),a=["signing-config","create","--with-default-services=true",`--out=${o}`];n&&a.push("--no-default-rekor=true"),await qe.exec(this.cosign.binPath,a,{env:Object.assign({},process.env,{COSIGN_EXPERIMENTAL:"1"})}),X(JSON.stringify(JSON.parse(Yh.default.readFileSync(o,{encoding:"utf-8"})),null,2)),s.push(`--signing-config=${o}`)}):(s.push("--use-signing-config"),n&&s.push("--tlog-upload=false"));for(let o of e.imageNames){let a=await this.imageTools.attestationDigests({name:`${o}@${e.imageDigest}`,retryOnManifestUnknown:e.retryOnManifestUnknown,retryLimit:e.retryLimit});for(let c of a){let u=`${o}@${c}`;await km(`Signing attestation manifest ${u}`,async()=>{let l=["sign","--yes","--oidc-provider","github-actions","--registry-referrers-mode","oci-1-1","--new-bundle-format",...s];X(`[command]${this.cosign.binPath} ${[...l,u].join(" ")}`);let f=await qe.getExecOutput(this.cosign.binPath,["--verbose",...l,u],{ignoreReturnCode:!0,silent:!0,env:Object.assign({},process.env,{COSIGN_EXPERIMENTAL:"1"})}),h=Xp.parseCommandOutput(f.stderr.trim());if(f.exitCode!=0)if(h.errors&&h.errors.length>0){let m=h.errors.map(A=>`- [${A.code}] ${A.message} : ${A.detail}`).join(`
`).map(n=>n.trim()).filter(n=>n.length>0);return i}static async commitDate(e){return new Date(await t.exec(["show","-s",'--format="%ci"',e]))}};var Mot=require("crypto"),sd=O(require("fs"),1),Rg=O(require("path"),1);var K2=O(HN(),1),od=O(kit(),1),Fot=O(pme(),1),ZB=O(Not(),1);var dAe=O(HN(),1);var Oot=O(Sl(),1);var Dot="application/vnd.oci.empty.v1+json";var fm=class{binPath;_version;_versionOnce;constructor(e){this.binPath=e?.binPath||"cosign",this._version="",this._versionOnce=!1}async isAvailable(){let e=await qe.getExecOutput(this.binPath,[],{ignoreReturnCode:!0,silent:!0}).then(r=>r.stderr.length>0&&r.exitCode!=0?(X(`Cosign.isAvailable cmd err: ${r.stderr.trim()}`),!1):r.exitCode==0).catch(r=>(X(`Cosign.isAvailable error: ${r}`),!1));return X(`Cosign.isAvailable: ${e}`),e}async version(){return this._versionOnce?this._version:(this._versionOnce=!0,this._version=await qe.getExecOutput(this.binPath,["version","--json"],{ignoreReturnCode:!0,silent:!0}).then(e=>{if(e.stderr.length>0&&e.exitCode!=0)throw new Error(e.stderr.trim());return JSON.parse(e.stdout.trim()).gitVersion}),this._version)}async printVersion(){await qe.exec(this.binPath,["version","--json"],{failOnStdErr:!1})}async versionSatisfies(e,r){let i=r??await this.version();if(!i)return X("Cosign.versionSatisfies false: undefined version"),!1;let n=Oot.satisfies(i,e)||/^[0-9a-f]{7}$/.exec(i)!==null;return X(`Cosign.versionSatisfies ${i} statisfies ${e}: ${n}`),n}static parseCommandOutput(e){let r,i,n,s;for(let o of e.split(/\r?\n/)){let a=o.trim();if(!a.startsWith("{")||!a.endsWith("}"))continue;let c;try{c=JSON.parse(a)}catch{continue}if(c&&Array.isArray(c.errors)&&c.errors.length>0&&(s=c.errors),!r&&c&&Array.isArray(c.manifests)&&c.manifests.length>0){let u=c.manifests[0];u?.artifactType===dAe.BUNDLE_V03_MEDIA_TYPE&&typeof u.digest=="string"?r=u.digest:u?.artifactType===Dot&&typeof u.digest=="string"&&(i=u.digest)}if(!n&&c&&c.mediaType===dAe.BUNDLE_V03_MEDIA_TYPE&&(n=c),n&&(r||i)){s=void 0;break}}return{bundle:n,signatureManifestDigest:r||i,errors:s}}};var pAe=O(require("fs"),1);var c6=class t{buildx;constructor(e){this.buildx=e?.buildx||new Wt}async getCommand(e){return await this.buildx.getCommand(["imagetools",...e])}async getInspectCommand(e){return await this.getCommand(["inspect",...e])}async getCreateCommand(e){return await this.getCommand(["create",...e])}async inspectImage(e){return await this.inspect(e,"{{json .Image}}",r=>{if(typeof r=="object"&&!Array.isArray(r)&&r!==null)return Object.prototype.hasOwnProperty.call(r,"config"),r;throw new Error("Unexpected output format")})}async inspectManifest(e){return await this.inspect(e,"{{json .Manifest}}",r=>{if(typeof r=="object"&&!Array.isArray(r)&&r!==null)return Object.prototype.hasOwnProperty.call(r,"manifests"),r;throw new Error("Unexpected output format")})}async attestationDescriptors(e){let r=await this.inspectManifest(e);if(typeof r!="object"||r===null||!("manifests"in r)||!Array.isArray(r.manifests))throw new Error(`No descriptor found for ${e.name}`);let i=r.manifests.filter(o=>o.annotations?.["vnd.docker.reference.type"]==="attestation-manifest");if(!e.platform)return i;let n=e.platform,s=new Map;for(let o of r.manifests)o.digest&&s.set(o.digest,o);return i.filter(o=>{let a=o.annotations?.["vnd.docker.reference.digest"];if(!a)return!1;let c=s.get(a);return c?c.platform?.os===n.os&&c.platform?.architecture===n.architecture&&(c.platform?.variant??"")===(n.variant??""):!1})}async attestationDigests(e){return(await this.attestationDescriptors(e)).map(r=>r.digest)}async create(e){let r=[],i=Dt.tmpName({tmpdir:Dt.tmpDir(),template:"imagetools-metadata-XXXXXX"}),n=[],s=[];for(let a of e.sources){if(a.startsWith("cwd://")){let c=a.substring(6);c.length>0&&n.push(c);continue}s.push(a)}if(e.tags)for(let a of e.tags)r.push("--tag",a);if(e.platforms)for(let a of e.platforms)r.push("--platform",a);if(e.annotations)for(let a of e.annotations)r.push("--annotation",a);e.dryRun?r.push("--dry-run"):r.push("--metadata-file",i);for(let a of n)r.push("--file",a);for(let a of s)r.push(a);let o=await this.getCreateCommand(r);if(e.skipExec){$(`[command]${o.command} ${o.args.join(" ")}`),$("Skipped create command");return}return await qe.getExecOutput(o.command,o.args,{ignoreReturnCode:!0,silent:e.silent}).then(a=>{if(a.stderr.length>0&&a.exitCode!=0)throw new Error(a.stderr.trim());if(!e.dryRun){if(!pAe.default.existsSync(i))return;let c=pAe.default.readFileSync(i,{encoding:"utf-8"}).trim();if(c===""||c==="null")return;let u=JSON.parse(c),l=u["containerimage.descriptor"];return l?{digest:u["containerimage.digest"]||l.digest,descriptor:l,imageNames:u["image.name"]?u["image.name"].split(",").map(f=>f.trim()):[]}:void 0}})}async inspect(e,r,i){let n=await this.getInspectCommand([e.name,"--format",r]);if(!e.retryOnManifestUnknown)return await this.execInspect(n.command,n.args,i);let s=e.retryLimit??15,o;for(let a=0;a<s;a++)try{return await this.execInspect(n.command,n.args,i)}catch(c){if(o=c,!t.isManifest Line truncated
${o.message}`),await new Promise(u=>setTimeout(u,Math.pow(2,a)*100))}throw o??new Error(`ImageTools inspect command failed for ${e.name}`)}async execInspect(e,r,i){return await qe.getExecOutput(e,r,{ignoreReturnCode:!0,silent:!0}).then(n=>{if(n.stderr.length>0&&n.exitCode!=0)throw new Error(n.stderr.trim());return i(JSON.parse(n.stdout))})}static isManifestUnknownError(e){return/(MANIFEST_UNKNOWN|manifest unknown|not found: not found)/i.test(e)}};var Pot="application/vnd.in-toto+json";var kot="https://fulcio.sigstore.dev",Qot="https://rekor.sigstore.dev",Lot="https://timestamp.sigstore.dev",sb="https://search.sigstore.dev";var Wxr="slsaprovenance1",Tg=class t{cosign;imageTools;constructor(e){this.cosign=e?.cosign||new fm,this.imageTools=e?.imageTools||new c6}async signAttestationManifests(e){if(!await this.cosign.isAvailable())throw new Error("Cosign is required to sign attestation manifests");let r={};try{if(!process.env.ACTIONS_ID_TOKEN_REQUEST_URL)throw new Error('missing "id-token" permission. Please add "permissions: id-token: write" to your workflow.');let i=this.signingEndpoints(e.noTransparencyLog);$(`Using Sigstore signing endpoint: ${i.fulcioURL}`);let n=t.noTransparencyLog(e.noTransparencyLog),s=[];await this.cosign.versionSatisfies(">=3.0.4")?await si("Creating Sigstore protobuf signing config",async()=>{let o=Dt.tmpName({template:"signing-config-XXXXXX.json",tmpdir:Dt.tmpDir()}),a=["signing-config","create","--with-default-services=true",`--out=${o}`];n&&a.push("--no-default-rekor=true"),await qe.exec(this.cosign.binPath,a,{env:Object.assign({},process.env,{COSIGN_EXPERIMENTAL:"1"})}),$(JSON.stringify(JSON.parse(sd.default.readFileSync(o,{encoding:"utf-8"})),null,2)),s.push(`--signing-config=${o}`)}):(s.push("--use-signing-config"),n&&s.push("--tlog-upload=false"));for(let o of e.imageNames){let a=await this.imageTools.attestationDigests({name:`${o}@${e.imageDigest}`,retryOnManifestUnknown:e.retryOnManifestUnknown,retryLimit:e.retryLimit});for(let c of a){let u=`${o}@${c}`;await si(`Signing attestation manifest ${u}`,async()=>{let l=["sign","--yes","--oidc-provider","github-actions","--registry-referrers-mode","oci-1-1","--new-bundle-format",...s];$(`[command]${this.cosign.binPath} ${[...l,u].join(" ")}`);let f=await qe.getExecOutput(this.cosign.binPath,["--verbose",...l,u],{ignoreReturnCode:!0,silent:!0,env:Object.assign({},process.env,{COSIGN_EXPERIMENTAL:"1"})}),h=fm.parseCommandOutput(f.stderr.trim());if(f.exitCode!=0)if(h.errors&&h.errors.length>0){let m=h.errors.map(A=>`- [${A.code}] ${A.message} : ${A.detail}`).join(`
`);throw new Error(`Cosign sign command failed with errors:
${m}`)}else throw new Error(`Cosign sign command failed with: ${f.stderr.trim().split(/\r?\n/).filter(m=>m.length>0).pop()??"unknown error"}`);let d=t.parseBundle((0,B2.bundleFromJSON)(h.bundle));d.tlogID&&X(`Uploaded to Rekor transparency log: ${V0}?logIndex=${d.tlogID}`),X(`Signature manifest pushed: https://oci.dag.dev/?referrers=${u}`),r[u]={...d,imageName:o}})}}}catch(i){throw new Error(`Signing BuildKit attestation manifests failed: ${i.message}`)}return r}async verifySignedManifests(e,r){let i={};for(let[n,s]of Object.entries(e))await km(`Verifying signature of ${n}`,async()=>{let o=await this.verifyImageAttestation(n,{certificateIdentityRegexp:r.certificateIdentityRegexp,noTransparencyLog:r.noTransparencyLog||!s.tlogID,retryOnManifestUnknown:r.retryOnManifestUnknown});X(`Signature manifest verified: https://oci.dag.dev/?image=${s.imageName}@${o.signatureManifestDigest}`),i[n]=o});return i}async verifyImageAttestations(e,r){let i={},n=await this.imageTools.attestationDigests({name:e,platform:r.platform,retryOnManifestUnknown:r.retryOnManifestUnknown,retryLimit:r.retryLimit});if(n.length===0)throw new Error(`No attestation manifests found for ${e}`);let s=e.split(":",1)[0];for(let o of n){let a=`${s}@${o}`,c=await this.verifyImageAttestation(a,r);X(`Signature manifest verified: https://oci.dag.dev/?image=${s}@${c.signatureManifestDigest}`),i[a]=c}return i}async verifyImageAttestation(e,r){if(!await this.cosign.isAvailable())throw new Error("Cosign is required to verify signed manifests");let i=["verify","--experimental-oci11","--new-bundle-format","--certificate-oidc-issuer","https://token.actions.githubusercontent.com","--certificate-identity-regexp",r.certificateIdentityRegexp];if(r.noTransparencyLog&&i.push("--use-signed-timestamps","--insecure-ignore-tlog"),!r.retryOnManifestUnknown){X(`[command]${this.cosign.binPath} ${[...i,e].join(" ")}`);let o=await qe.getExecOutput(this.cosign.binPath,["--verbose",...i,e],{ignoreReturnCode:!0,silent:!0,env:Object.assign({},process.env,{COSIGN_EXPERIMENTAL:"1"})});if(o.exitCode!==0)throw new Error(`Cosign verify command failed with: ${o.stderr.trim().split(/\r?\n/).filter(c=>c.length>0).pop()??"unknown error"}`);let a=Xp.parseCommandOutput(o.stderr.trim());return{cosignArgs:i,signatureManifestDigest:a.signatureManifestDigest}}let n=r.retryLimit??15,s;X(`[command]${this.cosign.binPath} ${[...i,e].join(" ")}`);for(let o=0;o<n;o++){let a=await qe.getExecOutput(this.cosign.binPath,["--verbose",...i,e],{ignoreReturnCode:!0,silent:!0,env:Object.assign({},process.env,{COSIGN_EXPERIMENTAL:"1"})}),c=Xp.parseCommandOutput(a.stderr.trim());if(a.exitCode===0)return{cosignArgs:i,signatureManifestDigest:c.signatureManifestDigest};if(c.errors&&c.errors.length>0){let u=c.errors.map(l=>`- [${l.code}] ${l.message} : ${l.detail}`).join(`
${m}`)}else throw new Error(`Cosign sign command failed with: ${f.stderr.trim().split(/\r?\n/).filter(m=>m.length>0).pop()??"unknown error"}`);let d=t.parseBundle((0,K2.bundleFromJSON)(h.bundle));d.tlogID&&$(`Uploaded to Rekor transparency log: ${sb}?logIndex=${d.tlogID}`),$(`Signature manifest pushed: https://oci.dag.dev/?referrers=${u}`),r[u]={...d,imageName:o}})}}}catch(i){throw new Error(`Signing BuildKit attestation manifests failed: ${i.message}`)}return r}async verifySignedManifests(e,r){let i={};for(let[n,s]of Object.entries(e))await si(`Verifying signature of ${n}`,async()=>{let o=await this.verifyImageAttestation(n,{certificateIdentityRegexp:r.certificateIdentityRegexp,noTransparencyLog:r.noTransparencyLog||!s.tlogID,retryOnManifestUnknown:r.retryOnManifestUnknown});$(`Signature manifest verified: https://oci.dag.dev/?image=${s.imageName}@${o.signatureManifestDigest}`),i[n]=o});return i}async verifyImageAttestations(e,r){let i={},n=await this.imageTools.attestationDigests({name:e,platform:r.platform,retryOnManifestUnknown:r.retryOnManifestUnknown,retryLimit:r.retryLimit});if(n.length===0)throw new Error(`No attestation manifests found for ${e}`);let s=e.split(":",1)[0];for(let o of n){let a=`${s}@${o}`,c=await this.verifyImageAttestation(a,r);$(`Signature manifest verified: https://oci.dag.dev/?image=${s}@${c.signatureManifestDigest}`),i[a]=c}return i}async verifyImageAttestation(e,r){if(!await this.cosign.isAvailable())throw new Error("Cosign is required to verify signed manifests");let i=["verify","--experimental-oci11","--new-bundle-format","--certificate-oidc-issuer","https://token.actions.githubusercontent.com","--certificate-identity-regexp",r.certificateIdentityRegexp];if(r.noTransparencyLog&&i.push("--use-signed-timestamps","--insecure-ignore-tlog"),!r.retryOnManifestUnknown){$(`[command]${this.cosign.binPath} ${[...i,e].join(" ")}`);let o=await qe.getExecOutput(this.cosign.binPath,["--verbose",...i,e],{ignoreReturnCode:!0,silent:!0,env:Object.assign({},process.env,{COSIGN_EXPERIMENTAL:"1"})});if(o.exitCode!==0)throw new Error(`Cosign verify command failed with: ${o.stderr.trim().split(/\r?\n/).filter(c=>c.length>0).pop()??"unknown error"}`);let a=fm.parseCommandOutput(o.stderr.trim());return{cosignArgs:i,signatureManifestDigest:a.signatureManifestDigest}}let n=r.retryLimit??15,s;$(`[command]${this.cosign.binPath} ${[...i,e].join(" ")}`);for(let o=0;o<n;o++){let a=await qe.getExecOutput(this.cosign.binPath,["--verbose",...i,e],{ignoreReturnCode:!0,silent:!0,env:Object.assign({},process.env,{COSIGN_EXPERIMENTAL:"1"})}),c=fm.parseCommandOutput(a.stderr.trim());if(a.exitCode===0)return{cosignArgs:i,signatureManifestDigest:c.signatureManifestDigest};if(c.errors&&c.errors.length>0){let u=c.errors.map(l=>`- [${l.code}] ${l.message} : ${l.detail}`).join(`
`);if(s=new Error(`Cosign verify command failed with errors:
${u}`),c.errors.some(l=>l.code==="MANIFEST_UNKNOWN"))X(`Cosign verify command failed with MANIFEST_UNKNOWN, retrying attempt ${o+1}/${n}...
${u}`),await new Promise(l=>setTimeout(l,Math.pow(2,o)*100));else throw s}else throw new Error(`Cosign verify command failed with: ${a.stderr.trim().split(/\r?\n/).filter(u=>u.length>0).pop()??"unknown error"}`)}throw s}async signProvenanceBlobs(e){let r={};try{if(!process.env.ACTIONS_ID_TOKEN_REQUEST_URL)throw new Error('missing "id-token" permission. Please add "permissions: id-token: write" to your workflow.');let i=this.signingEndpoints(e.noTransparencyLog);X(`Using Sigstore signing endpoint: ${i.fulcioURL}`);let n=t.getProvenanceBlobs(e);for(let s of Object.keys(n))await km(`Signing ${s}`,async()=>{let o=n[s],a=bg.default.join(bg.default.dirname(s),`${e.name??"provenance"}.sigstore.json`),c=t.getProvenanceSubjects(o);if(c.length===0){Lc(`No subjects found in provenance ${s}, skip signing.`);return}let u=await t.signPayload({data:o,type:wnt},i),l=t.parseBundle(u);X("Provenance blob signed for:");for(let f of c){let[h,d]=Object.entries(f.digest)[0]||[];X(` - ${f.name} (${h}:${d})`)}l.tlogID&&X(`Attestation signature uploaded to Rekor transparency log: ${V0}?logIndex=${l.tlogID}`),X(`Writing Sigstore bundle to: ${a}`),Yh.default.writeFileSync(a,JSON.stringify(l.payload,null,2),{encoding:"utf-8"}),r[s]={...l,bundlePath:a,subjects:c}})}catch(i){throw new Error(`Signing BuildKit provenance blobs failed: ${i.message}`)}return r}async verifySignedArtifacts(e,r){let i={};if(!await this.cosign.isAvailable())throw new Error("Cosign is required to verify signed artifacts");for(let[n,s]of Object.entries(e)){let o=bg.default.dirname(n);await km(`Verifying signature bundle ${s.bundlePath}`,async()=>{for(let a of s.subjects){let c=bg.default.join(o,a.name);X(`Verifying signed artifact ${c}`);let u=["verify-blob-attestation","--new-bundle-format","--certificate-oidc-issuer","https://token.actions.githubusercontent.com","--certificate-identity-regexp",r.certificateIdentityRegexp,"--type",r.predicateType??fBr];(r.noTransparencyLog||!s.tlogID)&&u.push("--use-signed-timestamps","--insecure-ignore-tlog");let l=await qe.getExecOutput(this.cosign.binPath,[...u,"--bundle",s.bundlePath,c],{ignoreReturnCode:!0});if(l.stderr.length>0&&l.exitCode!=0)throw new Error(l.stderr);i[c]={bundlePath:s.bundlePath,cosignArgs:u}}})}return i}async verifyArtifact(e,r,i){X("Verifying keyless verification bundle signature");let n=JSON.parse(Yh.default.readFileSync(r,"utf-8")),s=(0,B2.bundleFromJSON)(n);X("Fetching Sigstore TUF trusted root metadata");let o=await vnt.getTrustedRoot(),a=(0,OB.toTrustMaterial)(o);try{X("Verifying artifact signature");let c=(0,OB.toSignedEntity)(s,Yh.default.readFileSync(e)),u=t.parseCertificate(s),l=s.verificationMaterial.tlogEntries,f=l.length>0?l[0].logIndex:void 0;if(i?.subjectAlternativeName&&i?.subjectAlternativeName instanceof RegExp){let m=u.subjectAltName?.replace(/^uri:/i,"");if(m){if(!m.match(i.subjectAlternativeName))throw new Error(`Signing certificate subjectAlternativeName "${m}" does not match expected pattern`)}else throw new Error("Signing certificate does not contain subjectAltName")}let d=new OB.Verifier(a).verify(c,{subjectAlternativeName:i?.subjectAlternativeName&&typeof i.subjectAlternativeName=="string"?i.subjectAlternativeName:void 0,extensions:i?.issuer?{issuer:i.issuer}:void 0});return K(`Sigstore.verifyArtifact signer: ${JSON.stringify(d)}`),{payload:n,certificate:u.toString(),tlogID:f}}catch(c){throw new Error(`Failed to verify artifact signature: ${c}`)}}signingEndpoints(e){return e=t.noTransparencyLog(e),X(`Upload to transparency log: ${e?"disabled":"enabled"}`),{fulcioURL:Cnt,rekorURL:e?void 0:Int,tsaServerURL:Snt}}static noTransparencyLog(e){return e??gt.context.payload.repository?.private}static getProvenanceBlobs(e){let r=bg.default.join(e.localExportDir,"provenance.json");if(Yh.default.existsSync(r))return{[r]:Yh.default.readFileSync(r)};let i=Yh.default.readdirSync(e.localExportDir,{withFileTypes:!0}),n=i.filter(s=>s.isDirectory());if(n.length>0&&n.length===i.length&&n.every(s=>Yh.default.existsSync(bg.default.join(e.localExportDir,s.name,"provenance.json")))){let s={};for(let o of n){let a=bg.default.join(e.localExportDir,o.name,"provenance.json");s[a]=Yh.default.readFileSync(a)}return s}throw new Error(`No valid provenance.json found in ${e.localExportDir}`)}static getProvenanceSubjects(e){return JSON.parse(e.toString()).subject.map(i=>({name:i.name,digest:i.digest}))}static async signPayload(e,r,i,n){let s=[],o=new Kh.FulcioSigner({identityProvider:new Kh.CIContextProvider("sigstore"),fulcioBaseURL:r.fulcioURL,timeout:i,retry:n});return r.rekorURL&&s.push(new Kh.RekorWitness({rekorBaseURL:r.rekorURL,fetchOnConflict:!0,timeout:i,retry:n})),r.tsaServerURL&&s.push(new Kh.TSAWitness({tsaBaseURL:r.tsaServerURL,timeout:i,retry:n})),new Kh.DSSEBundleBuilder({signer:o,witnesses:s}).create(e)}static parseBundle(e){let r=t.parseCertificate(e),i=e.verificationMaterial.tlogEntries,n=i.length>0?i[0].logIndex:void 0;return{payload:(0,B2.bundleToJSON)(e),certificate:r.toString(),tlogID:n}} Line truncated
${u}`),c.errors.some(l=>l.code==="MANIFEST_UNKNOWN"))$(`Cosign verify command failed with MANIFEST_UNKNOWN, retrying attempt ${o+1}/${n}...
${u}`),await new Promise(l=>setTimeout(l,Math.pow(2,o)*100));else throw s}else throw new Error(`Cosign verify command failed with: ${a.stderr.trim().split(/\r?\n/).filter(u=>u.length>0).pop()??"unknown error"}`)}throw s}async signProvenanceBlobs(e){let r={};try{if(!process.env.ACTIONS_ID_TOKEN_REQUEST_URL)throw new Error('missing "id-token" permission. Please add "permissions: id-token: write" to your workflow.');let i=this.signingEndpoints(e.noTransparencyLog);$(`Using Sigstore signing endpoint: ${i.fulcioURL}`);let n=t.getProvenanceBlobs(e);for(let s of Object.keys(n))await si(`Signing ${s}`,async()=>{let o=n[s],a=Rg.default.join(Rg.default.dirname(s),`${e.name??"provenance"}.sigstore.json`),c=t.getProvenanceSubjects(o);if(c.length===0){ns(`No subjects found in provenance ${s}, skip signing.`);return}let u=await t.signPayload({data:o,type:Pot},i),l=t.parseBundle(u);$("Provenance blob signed for:");for(let f of c){let[h,d]=Object.entries(f.digest)[0]||[];$(` - ${f.name} (${h}:${d})`)}l.tlogID&&$(`Attestation signature uploaded to Rekor transparency log: ${sb}?logIndex=${l.tlogID}`),$(`Writing Sigstore bundle to: ${a}`),sd.default.writeFileSync(a,JSON.stringify(l.payload,null,2),{encoding:"utf-8"}),r[s]={...l,bundlePath:a,subjects:c}})}catch(i){throw new Error(`Signing BuildKit provenance blobs failed: ${i.message}`)}return r}async verifySignedArtifacts(e,r){let i={};if(!await this.cosign.isAvailable())throw new Error("Cosign is required to verify signed artifacts");for(let[n,s]of Object.entries(e)){let o=Rg.default.dirname(n);await si(`Verifying signature bundle ${s.bundlePath}`,async()=>{for(let a of s.subjects){let c=Rg.default.join(o,a.name);$(`Verifying signed artifact ${c}`);let u=["verify-blob-attestation","--new-bundle-format","--certificate-oidc-issuer","https://token.actions.githubusercontent.com","--certificate-identity-regexp",r.certificateIdentityRegexp,"--type",r.predicateType??Wxr];(r.noTransparencyLog||!s.tlogID)&&u.push("--use-signed-timestamps","--insecure-ignore-tlog");let l=await qe.getExecOutput(this.cosign.binPath,[...u,"--bundle",s.bundlePath,c],{ignoreReturnCode:!0});if(l.stderr.length>0&&l.exitCode!=0)throw new Error(l.stderr);i[c]={bundlePath:s.bundlePath,cosignArgs:u}}})}return i}async verifyArtifact(e,r,i){$("Verifying keyless verification bundle signature");let n=JSON.parse(sd.default.readFileSync(r,"utf-8")),s=(0,K2.bundleFromJSON)(n);$("Fetching Sigstore TUF trusted root metadata");let o=await Fot.getTrustedRoot(),a=(0,ZB.toTrustMaterial)(o);try{$("Verifying artifact signature");let c=(0,ZB.toSignedEntity)(s,sd.default.readFileSync(e)),u=t.parseCertificate(s),l=s.verificationMaterial.tlogEntries,f=l.length>0?l[0].logIndex:void 0;if(i?.subjectAlternativeName&&i?.subjectAlternativeName instanceof RegExp){let m=u.subjectAltName?.replace(/^uri:/i,"");if(m){if(!m.match(i.subjectAlternativeName))throw new Error(`Signing certificate subjectAlternativeName "${m}" does not match expected pattern`)}else throw new Error("Signing certificate does not contain subjectAltName")}let d=new ZB.Verifier(a).verify(c,{subjectAlternativeName:i?.subjectAlternativeName&&typeof i.subjectAlternativeName=="string"?i.subjectAlternativeName:void 0,extensions:i?.issuer?{issuer:i.issuer}:void 0});return X(`Sigstore.verifyArtifact signer: ${JSON.stringify(d)}`),{payload:n,certificate:u.toString(),tlogID:f}}catch(c){throw new Error(`Failed to verify artifact signature: ${c}`)}}signingEndpoints(e){return e=t.noTransparencyLog(e),$(`Upload to transparency log: ${e?"disabled":"enabled"}`),{fulcioURL:kot,rekorURL:e?void 0:Qot,tsaServerURL:Lot}}static noTransparencyLog(e){return e??gt.context.payload.repository?.private}static getProvenanceBlobs(e){let r=Rg.default.join(e.localExportDir,"provenance.json");if(sd.default.existsSync(r))return{[r]:sd.default.readFileSync(r)};let i=sd.default.readdirSync(e.localExportDir,{withFileTypes:!0}),n=i.filter(s=>s.isDirectory());if(n.length>0&&n.length===i.length&&n.every(s=>sd.default.existsSync(Rg.default.join(e.localExportDir,s.name,"provenance.json")))){let s={};for(let o of n){let a=Rg.default.join(e.localExportDir,o.name,"provenance.json");s[a]=sd.default.readFileSync(a)}return s}throw new Error(`No valid provenance.json found in ${e.localExportDir}`)}static getProvenanceSubjects(e){return JSON.parse(e.toString()).subject.map(i=>({name:i.name,digest:i.digest}))}static async signPayload(e,r,i,n){let s=[],o=new od.FulcioSigner({identityProvider:new od.CIContextProvider("sigstore"),fulcioBaseURL:r.fulcioURL,timeout:i,retry:n});return r.rekorURL&&s.push(new od.RekorWitness({rekorBaseURL:r.rekorURL,fetchOnConflict:!0,timeout:i,retry:n})),r.tsaServerURL&&s.push(new od.TSAWitness({tsaBaseURL:r.tsaServerURL,timeout:i,retry:n})),new od.DSSEBundleBuilder({signer:o,witnesses:s}).create(e)}static parseBundle(e){let r=t.parseCertificate(e),i=e.verificationMaterial.tlogEntries,n=i.length>0?i[0].logIndex:void 0;return{payload:(0,K2.bundleToJSON)(e),certificate:r.toString(),tlogID:n}} Line truncated
`)){let[u,...l]=c.split(":"),f=u.toLowerCase(),h=l.map(d=>d.trim()).join(":");if(u.length!=0)switch(!0){case f=="name":i=void 0,r.name==null?r.name=h:(s&&n.gcPolicy&&(n.gcPolicy.push(s),s=void 0),n.name&&r.nodes.push(n),n={name:h});break;case f=="driver":i=void 0,r.driver=h;break;case f=="last activity":i=void 0,r.lastActivity=new Date(h);break;case f=="endpoint":i=void 0,n.endpoint=h;break;case f=="driver options":i=void 0,n["driver-opts"]=(h.match(/([a-zA-Z0-9_.]+)="([^"]*)"/g)||[]).map(d=>d.replace(/^(.*)="(.*)"$/g,"$1=$2"));break;case f=="status":i=void 0,n.status=h;break;case f=="buildkit daemon flags":case f=="flags":i=void 0,n["buildkitd-flags"]=h;break;case f=="buildkit version":case f=="buildkit":i=void 0,n.buildkit=h;break;case f=="platforms":{if(i=void 0,!h)break;let d=[];if(h.includes("*"))for(let m of h.split(", "))m.includes("*")&&d.push(m.replace(/\*/g,""));else d=h.split(", ");n.platforms=d.join(",");break}case f=="features":i="features",n.features={};break;case f=="labels":i="label",n.labels={};break;case f=="devices":i="devices",n.devices=n.devices||[];break;case f.startsWith("gc policy rule#"):i="gcpolicy",n.gcPolicy&&s&&(n.gcPolicy.push(s),s=void 0);break;case f.startsWith("file#"):i="file",a=u.split("#")[1],n.files=n.files||{},n.files[a]="";break;default:switch(i&&i!=="devices"&&n.devices&&o&&(n.devices.push(o),o=void 0),i||""){case"features":{n.features=n.features||{},n.features[u.trim()]=!!h;break}case"label":{n.labels=n.labels||{},n.labels[u.trim()]=h;break}case"devices":{switch(f.trim()){case"name":{n.devices&&o&&n.devices.push(o),o={},o.name=h;break}case"on-demand":{o&&h&&(o.onDemand=h=="true");break}case"automatically allowed":{o&&h&&(o.autoAllow=h=="true");break}case"annotations":{o&&(o.annotations=o.annotations||{});break}default:o&&o.annotations&&(o.annotations[u.trim()]=h)}break}case"gcpolicy":{switch(n.gcPolicy=n.gcPolicy||[],s=s||{},f.trim()){case"all":{s.all=h=="true";break}case"filters":{h&&(s.filter=h.split(","));break}case"keep duration":{s.keepDuration=h;break}case"keep bytes":{s.keepBytes=h;break}case"reserved space":{s.reservedSpace=h;break}case"max used space":{s.maxUsedSpace=h;break}case"min free space":{s.minFreeSpace=h;break}}break}case"file":{a&&n.files&&(n.files[a].length>0&&(n.files[a]+=`
`),n.files[a]+=c.replace(/^\s>\s?/,""));break}}}}return o&&n.devices&&n.devices.push(o),s&&n.gcPolicy&&n.gcPolicy.push(s),n.name&&r.nodes.push(n),r}};var xnt=P(gl(),1);var fH=P(require("fs"),1);var hH=class{resolveFromString(e){return this.resolve(e,!1)}resolveFromFile(e){return this.resolve(e,!0)}resolve(e,r){if(r){if(!fH.default.existsSync(e))throw new Error(`config file ${e} not found`);e=fH.default.readFileSync(e,{encoding:"utf-8"})}let i=Dt.tmpName({tmpdir:Dt.tmpDir()});return fH.default.writeFileSync(i,e),i}};var dH=class{buildx;config;constructor(e){this.config=new hH,this.buildx=e?.buildx||new Wt}async getVersion(e){if(!e.buildkit&&e.name)try{return await this.getVersionWithinImage(e.name)}catch(r){Lc(r)}return e.buildkit}async getVersionWithinImage(e){return K(`BuildKit.getVersionWithinImage nodeName: ${e}`),Ti.getExecOutput(["inspect","--format","{{.Config.Image}}",`${Wt.containerNamePrefix}${e}`],{ignoreReturnCode:!0,silent:!0}).then(r=>{if(r.exitCode==0&&r.stdout.length>0)return K(`BuildKit.getVersionWithinImage image: ${r.stdout.trim()}`),Ti.getExecOutput(["run","--rm",r.stdout.trim(),"--version"],{ignoreReturnCode:!0,silent:!0}).then(i=>{if(i.exitCode==0&&i.stdout.length>0)return`${r.stdout.trim()} => ${i.stdout.trim()}`;if(i.stderr.length>0)throw new Error(r.stderr.trim());return i.stdout.trim()});if(r.stderr.length>0)throw new Error(r.stderr.trim());return r.stdout.trim()})}async versionSatisfies(e,r,i){i||(i=await new kB({buildx:this.buildx}).inspect(e));for(let n of i.nodes){let s=n.buildkit;if(K(`BuildKit.versionSatisfies ${s}: ${r}`),!s)try{s=await this.getVersionWithinImage(n.name||"")}catch{return K(`BuildKit.versionSatisfies ${n.name}: can't get version`),!1}if(K(`BuildKit.versionSatisfies ${n.name}: version ${s}`),i.driver=="docker"&&!s.endsWith("-moby")||!xnt.satisfies(s.replace(/-moby$/,""),r))return!1}return!0}};var pH=class t{_version;_versionOnce;_standalone;constructor(e){this._standalone=e?.standalone,this._version="",this._versionOnce=!1}async isStandalone(){let e=this._standalone??!await Ti.isAvailable();return K(`Compose.isStandalone: ${e}`),e}async getCommand(e){let r=await this.isStandalone();return{command:r?"compose":"docker",args:r?e:["compose",...e]}}async isAvailable(){let e=await this.getCommand([]),r=await qe.getExecOutput(e.command,e.args,{ignoreReturnCode:!0,silent:!0}).then(i=>i.stderr.length>0&&i.exitCode!=0?(K(`Compose.isAvailable cmd err: ${i.stderr.trim()}`),!1):i.exitCode==0).catch(i=>(K(`Compose.isAvailable error: ${i}`),!1));return K(`Compose.isAvailable: ${r}`),r}async version(){if(this._versionOnce)return this._version;this._versionOnce=!0;let e=await this.getCommand(["version"]);return this._version=await qe.getExecOutput(e.command,e.args,{ignoreReturnCode:!0,silent:!0}).then(r=>{if(r.stderr.length>0&&r.exitCode!=0)throw new Error(r.stderr.trim());return t.parseVersion(r.stdout.trim())}),this._version}async printVersion(){let e=await this.getCommand(["version"]);await qe.exec(e.command,e.args,{failOnStdErr:!1})}static parseVersion(e){let r=/\sv?([0-9a-f]{7}|[0-9.]+)/.exec(e);if(!r)throw new Error("Cannot parse compose version");return r[1]}};var em=P(require("fs"),1),Zh=P(require("os"),1),QB=P(require("path"),1);var AH=P(gl(),1),ume=P(require("util"),1);var mH=class t{standalone;githubToken;constructor(e){this.standalone=e?.standalone,this.githubToken=e?.githubToken||process.env.GITHUB_TOKEN}async download(e,r){let i=await t.getDownloadVersion(e);K(`Install.download version: ${i.version}`);let n=await t.getRelease(i,this.githubToken);K(`Install.download release tag name: ${n.tag_name}`);let s=await this.vspec(n.tag_name);K(`Install.download vspec: ${s}`);let o=AH.clean(s)||"";if(!AH.valid(o))throw new Error(`Invalid Compose version "${s}".`);let a=new Sn({htcName:i.key!="official"?`compose-dl-bin-${i.key}`:"compose-dl-bin",htcVersion:s,baseCacheDir:QB.default.join(Zh.default.homedir(),".bin","docker-compose"),cacheFile:Zh.default.platform()=="win32"?"docker-compose.exe":"docker-compose",ghaNoCache:r}),c=await a.find();if(c)return X(`Compose binary found in ${c}`),c;let u=ume.format(i.downloadURL,s,this.filename());X(`Downloading ${u}`);let l=await qc(u,void 0,this.githubToken);K(`Install.download htcDownloadPath: ${l}`);let f=await a.save(l);return X(`Cached to ${f}`),f}async installStandalone(e,r){X("Standalone mode"),r=r||Dt.tmpDir();let i=QB.default.join(r,"compose-bin-standalone");em.default.existsSync(i)||em.default.mkdirSync(i,{recursive:!0});let n=Zh.default.platform()=="win32"?"compose.exe":"compose",s=QB.default.join(i,n);return em.default.copyFileSync(e,s),X("Fixing perms"),em.default.chmodSync(s,"0755"),sf(i),X("Added Compose to PATH"),X(`Binary path: ${s}`),s}async installPlugin(e,r){X("Docker plugin mode"),r=r||Ti.configDir;let i=QB.default.join(r,"cli-plugins");em.default.existsSync(i)||em.default.mkdirSync(i,{recursive:!0});let n=Zh.default.platform()=="win32"?"docker-compose.exe":"docker-compose",s=QB.default.join(i,n);return em.defaul Line truncated
`),n.files[a]+=c.replace(/^\s>\s?/,""));break}}}}return o&&n.devices&&n.devices.push(o),s&&n.gcPolicy&&n.gcPolicy.push(s),n.name&&r.nodes.push(n),r}};var Uot=O(Sl(),1);var l6=O(require("fs"),1);var f6=class{resolveFromString(e){return this.resolve(e,!1)}resolveFromFile(e){return this.resolve(e,!0)}resolve(e,r){if(r){if(!l6.default.existsSync(e))throw new Error(`config file ${e} not found`);e=l6.default.readFileSync(e,{encoding:"utf-8"})}let i=Dt.tmpName({tmpdir:Dt.tmpDir()});return l6.default.writeFileSync(i,e),i}};var h6=class{buildx;config;constructor(e){this.config=new f6,this.buildx=e?.buildx||new Wt}async getVersion(e){if(!e.buildkit&&e.name)try{return await this.getVersionWithinImage(e.name)}catch(r){ns(r)}return e.buildkit}async getVersionWithinImage(e){return X(`BuildKit.getVersionWithinImage nodeName: ${e}`),Ni.getExecOutput(["inspect","--format","{{.Config.Image}}",`${Wt.containerNamePrefix}${e}`],{ignoreReturnCode:!0,silent:!0}).then(r=>{if(r.exitCode==0&&r.stdout.length>0)return X(`BuildKit.getVersionWithinImage image: ${r.stdout.trim()}`),Ni.getExecOutput(["run","--rm",r.stdout.trim(),"--version"],{ignoreReturnCode:!0,silent:!0}).then(i=>{if(i.exitCode==0&&i.stdout.length>0)return`${r.stdout.trim()} => ${i.stdout.trim()}`;if(i.stderr.length>0)throw new Error(r.stderr.trim());return i.stdout.trim()});if(r.stderr.length>0)throw new Error(r.stderr.trim());return r.stdout.trim()})}async versionSatisfies(e,r,i){i||(i=await new tv({buildx:this.buildx}).inspect(e));for(let n of i.nodes){let s=n.buildkit;if(X(`BuildKit.versionSatisfies ${s}: ${r}`),!s)try{s=await this.getVersionWithinImage(n.name||"")}catch{return X(`BuildKit.versionSatisfies ${n.name}: can't get version`),!1}if(X(`BuildKit.versionSatisfies ${n.name}: version ${s}`),i.driver=="docker"&&!s.endsWith("-moby")||!Uot.satisfies(s.replace(/-moby$/,""),r))return!1}return!0}};var d6=class t{_version;_versionOnce;_standalone;constructor(e){this._standalone=e?.standalone,this._version="",this._versionOnce=!1}async isStandalone(){let e=this._standalone??!await Ni.isAvailable();return X(`Compose.isStandalone: ${e}`),e}async getCommand(e){let r=await this.isStandalone();return{command:r?"compose":"docker",args:r?e:["compose",...e]}}async isAvailable(){let e=await this.getCommand([]),r=await qe.getExecOutput(e.command,e.args,{ignoreReturnCode:!0,silent:!0}).then(i=>i.stderr.length>0&&i.exitCode!=0?(X(`Compose.isAvailable cmd err: ${i.stderr.trim()}`),!1):i.exitCode==0).catch(i=>(X(`Compose.isAvailable error: ${i}`),!1));return X(`Compose.isAvailable: ${r}`),r}async version(){if(this._versionOnce)return this._version;this._versionOnce=!0;let e=await this.getCommand(["version"]);return this._version=await qe.getExecOutput(e.command,e.args,{ignoreReturnCode:!0,silent:!0}).then(r=>{if(r.stderr.length>0&&r.exitCode!=0)throw new Error(r.stderr.trim());return t.parseVersion(r.stdout.trim())}),this._version}async printVersion(){let e=await this.getCommand(["version"]);await qe.exec(e.command,e.args,{failOnStdErr:!1})}static parseVersion(e){let r=/\sv?([0-9a-f]{7}|[0-9.]+)/.exec(e);if(!r)throw new Error("Cannot parse compose version");return r[1]}};var dm=O(require("fs"),1),cd=O(require("os"),1),rv=O(require("path"),1);var m6=O(Sl(),1),AAe=O(require("util"),1);var p6=class t{standalone;githubToken;constructor(e){this.standalone=e?.standalone,this.githubToken=e?.githubToken||process.env.GITHUB_TOKEN}async download(e,r){let i=await t.getDownloadVersion(e);X(`Install.download version: ${i.version}`);let n=await t.getRelease(i,this.githubToken);X(`Install.download release tag name: ${n.tag_name}`);let s=await this.vspec(n.tag_name);X(`Install.download vspec: ${s}`);let o=m6.clean(s)||"";if(!m6.valid(o))throw new Error(`Invalid Compose version "${s}".`);let a=new xn({htcName:i.key!="official"?`compose-dl-bin-${i.key}`:"compose-dl-bin",htcVersion:s,baseCacheDir:rv.default.join(cd.default.homedir(),".bin","docker-compose"),cacheFile:cd.default.platform()=="win32"?"docker-compose.exe":"docker-compose",ghaNoCache:r}),c=await a.find();if(c)return $(`Compose binary found in ${c}`),c;let u=AAe.format(i.downloadURL,s,this.filename());$(`Downloading ${u}`);let l=await Wc(u,void 0,this.githubToken);X(`Install.download htcDownloadPath: ${l}`);let f=await a.save(l);return $(`Cached to ${f}`),f}async installStandalone(e,r){$("Standalone mode"),r=r||Dt.tmpDir();let i=rv.default.join(r,"compose-bin-standalone");dm.default.existsSync(i)||dm.default.mkdirSync(i,{recursive:!0});let n=cd.default.platform()=="win32"?"compose.exe":"compose",s=rv.default.join(i,n);return dm.default.copyFileSync(e,s),$("Fixing perms"),dm.default.chmodSync(s,"0755"),hf(i),$("Added Compose to PATH"),$(`Binary path: ${s}`),s}async installPlugin(e,r){$("Docker plugin mode"),r=r||Ni.configDir;let i=rv.default.join(r,"cli-plugins");dm.default.existsSync(i)||dm.default.mkdirSync(i,{recursive:!0});let n=cd.default.platform()=="win32"?"docker-compose.exe":"docker-compose",s=rv.default.join(i,n);return dm.defaul Line truncated
# syntax=docker/dockerfile:1
ARG GO_VERSION="1.24"
@@ -309,8 +308,8 @@ EOT
FROM scratch
COPY --from=builder /out /
`;var gH=class t{githubToken;buildx;sigstore;constructor(e){this.githubToken=e?.githubToken||process.env.GITHUB_TOKEN,this.buildx=e?.buildx||new Wt,this.sigstore=e?.sigstore||new wg}async download(e){let r=await t.getDownloadVersion(e.version);K(`Install.download version: ${r.version}`);let i=await t.getRelease(r,this.githubToken);K(`Install.download release tag name: ${i.tag_name}`);let n=await this.vspec(i.tag_name);K(`Install.download vspec: ${n}`);let s=FB.clean(n)||"";if(!FB.valid(s))throw new Error(`Invalid Cosign version "${n}".`);let o=new Sn({htcName:"cosign-dl-bin",htcVersion:n,baseCacheDir:LB.default.join(Ul.default.homedir(),".bin"),cacheFile:Ul.default.platform()=="win32"?"cosign.exe":"cosign",ghaNoCache:e.ghaNoCache}),a=await o.find();if(a)return X(`Cosign binary found in ${a}`),a;let c=lme.format(r.downloadURL,n,this.filename());X(`Downloading ${c}`);let u=await qc(c,void 0,this.githubToken);K(`Install.download htcDownloadPath: ${u}`),e.verifySignature&&FB.satisfies(n,">=3.0.1")&&await this.verifySignature(u,c);let l=await o.save(u,e.skipState);return X(`Cached to ${l}`),l}async build(e,r,i){let n=await this.vspec(e);K(`Install.build vspec: ${n}`);let s=new Sn({htcName:"cosign-build-bin",htcVersion:n,baseCacheDir:LB.default.join(Ul.default.homedir(),".bin"),cacheFile:Ul.default.platform()=="win32"?"cosign.exe":"cosign",ghaNoCache:r}),o=await s.find();if(o)return X(`Cosign binary found in ${o}`),o;let a=LB.default.join(Dt.tmpDir(),"cosign-build-cache"),c=await this.buildCommand(e,a),u=await qe.getExecOutput(c.command,c.args,{ignoreReturnCode:!0,input:Buffer.from(_nt)}).then(f=>{if(f.stderr.length>0&&f.exitCode!=0)throw new Error(`build failed with: ${f.stderr.match(/(.*)\s*$/)?.[0]?.trim()??"unknown error"}`);return`${a}/cosign`}),l=await s.save(u,i);return X(`Cached to ${l}`),l}async install(e,r){r=r||Dt.tmpDir();let i=LB.default.join(r,"cosign-bin");v2.default.existsSync(i)||v2.default.mkdirSync(i,{recursive:!0});let n=Ul.default.platform()=="win32"?"cosign.exe":"cosign",s=LB.default.join(i,n);return v2.default.copyFileSync(e,s),X("Fixing perms"),v2.default.chmodSync(s,"0755"),sf(i),X("Added Cosign to PATH"),X(`Binary path: ${s}`),s}async buildCommand(e,r){let i=await new Wt({standalone:!0}).isAvailable(),n=await new Wt({standalone:!1}).isAvailable(),s=!1;if(await this.buildx.isStandalone()&&i)K("Install.buildCommand: Buildx standalone found, build with it"),s=!0;else if(!await this.buildx.isStandalone()&&n)K("Install.buildCommand: Buildx plugin found, build with it"),s=!1;else if(i)K("Install.buildCommand: Buildx plugin not found, but standalone found so trying to build with it"),s=!0;else if(n)K("Install.buildCommand: Buildx standalone not found, but plugin found so trying to build with it"),s=!1;else throw new Error(`Neither buildx standalone or plugin have been found to build from ref ${e}`);let o=["build","--platform","local","--build-arg","BUILDKIT_CONTEXT_KEEP_GIT_DIR=1","--output",`type=local,dest=${r}`];return process.env.GIT_AUTH_TOKEN&&o.push("--secret","id=GIT_AUTH_TOKEN"),o.push("-f-",e),await new Wt({standalone:s}).getCommand(o)}async verifySignature(e,r){let i=`${r}.sigstore.json`;X(`Downloading keyless verification bundle at ${i}`);let n=await qc(i,void 0,this.githubToken);K(`Install.verifySignature bundlePath: ${n}`);let s=await this.sigstore.verifyArtifact(e,n,{subjectAlternativeName:"keyless@projectsigstore.iam.gserviceaccount.com",issuer:"https://accounts.google.com"});X(`Cosign binary signature verified! ${s.tlogID?`${V0}?logIndex=${s.tlogID}`:""}`)}filename(){let e;switch(Ul.default.arch()){case"x64":{e="amd64";break}case"ppc64":{e="ppc64le";break}default:{e=Ul.default.arch();break}}let r=Ul.default.platform()=="win32"?"windows":Ul.default.platform(),i=Ul.default.platform()=="win32"?".exe":"";return lme.format("cosign-%s-%s%s",r,e,i)}async vspec(e){if(!Xe.isValidRef(e)){let u=e.replace(/^v+|v+$/g,"");return X(`Use ${u} version spec cache key for ${e}`),u}let[r,i]=e.split("#");i.length==0&&(i="master");let n;i.match(/^[0-9a-fA-F]{40}$/)?n=i:n=await KI.remoteSha(r,i,process.env.GIT_AUTH_TOKEN);let[s,o]=r.substring(19).split("/"),a=`${s}/${Xe.trimSuffix(o,".git")}/${n}`,c=Xe.hash(a);return X(`Use ${c} version spec cache key for ${a}`),c}static async getDownloadVersion(e){return{version:e,downloadURL:"https://github.com/sigstore/cosign/releases/download/v%s/%s",contentOpts:{owner:"docker",repo:"actions-toolkit",ref:"main",path:".github/cosign-releases.json"}}}static async getRelease(e,r){let n=await new gt({token:r}).releases("Cosign",e.contentOpts);if(!n[e.version])throw new Error(`Cannot find Cosign release ${e.version} in releases JSON`);return n[e.version]}};var Rnt=P(gl(),1);var yH=class{binPath;_version;_versionOnce;constructor(e){this.binPath=e?.binPath||"regctl",this._version="",this._versionOnce=!1}async blobGet(e){return await qe.getExecOutput(this.binPath,["blob","get",e.repository,e.digest],{ignoreReturnCode:!0,silent:!0}).then(r=>{if(r.stderr.length>0&&r.exitC Line truncated
`)[0]?.trim())}else h.stderr.length>0&&(u=Error(`buildx bake failed with: ${h.stderr.match(/(.*)\s*$/)?.[0]?.trim()??"unknown error"}`))});let l=r.buildxBake.resolveMetadata();l&&await ea("Metadata",async()=>{let h=JSON.stringify(l,null,2);bs(h),lSe("metadata",h)});let f=[];if(await ea("Build references",async()=>{if(f=await u_r(r,t,e.builder),f.length>0){for(let h of f)bs(h);kot(f)}else bs("No build references found")}),l_r()){let h=r.buildxBake.resolveWarnings(l);if(f.length>0&&h&&h.length>0){let d=await Wt.convertWarningsToGitHubAnnotations(h,f);nP(`annotations: ${JSON.stringify(d,null,2)}`),d&&d.length>0&&await ea(`Generating GitHub annotations (${d.length} build checks found)`,async()=>{for(let m of d)fx(m.message,m)})}}if(await ea("Check build summary support",async()=>{f_r()?e.call&&e.call!=="build"?bs(`Build summary skipped for ${e.call} subrequest`):gt.isGHES?bs("Build summary is not yet supported on GHES"):await r.buildx.versionSatisfies(">=0.23.0")?f.length==0?bs("Build summary requires at least one build reference"):(bs("Build summary supported!"),Qot()):bs("Build summary requires Buildx >= 0.23.0"):bs("Build summary disabled")}),u)throw u},async()=>{Tot&&await ea("Generating build summary",async()=>{try{let t=h_r(),e;t&&(e=d_r());let i=await new VF().export({refs:Rot});bs(`Build records written to ${i.dockerbuildFilename} (${Xe.formatFileSize(i.dockerbuildSize)})`);let n;t&&(n=await Jq.upload({filename:i.dockerbuildFilename,retentionDays:e})),await i3.writeBuildSummary({exportRes:i,uploadRes:n,inputs:xot,bakeDefinition:_ot,driver:Bot,endpoint:vot})}catch(t){fx(t.message)}}),u6.length>0&&await ea(`Removing temp folder ${u6}`,async()=>{Fot.rmSync(u6,{recursive:!0})})});async function u_r(t,e,r){let i=t.buildxBake.resolveRefs();if(i)return i;r||(r=(await t.builder.inspect()).name);let n=Wt.refs({dir:Wt.refsDir,builderName:r,since:e}),s=[];for(let o in n)Object.prototype.hasOwnProperty.call(n,o)&&s.push(o);return s}function l_r(){return process.env.DOCKER_BUILD_CHECKS_ANNOTATIONS?Xe.parseBool(process.env.DOCKER_BUILD_CHECKS_ANNOTATIONS):!0}function f_r(){return process.env.DOCKER_BUILD_SUMMARY?Xe.parseBool(process.env.DOCKER_BUILD_SUMMARY):!0}function h_r(){return process.env.DOCKER_BUILD_RECORD_UPLOAD?Xe.parseBool(process.env.DOCKER_BUILD_RECORD_UPLOAD):!0}function d_r(){let t=process.env.DOCKER_BUILD_RECORD_RETENTION_DAYS;if(t){let e=parseInt(t);if(isNaN(e))throw Error(`Invalid build record retention days: ${t}`);return e}}
`;var A6=class t{githubToken;buildx;sigstore;constructor(e){this.githubToken=e?.githubToken||process.env.GITHUB_TOKEN,this.buildx=e?.buildx||new Wt,this.sigstore=e?.sigstore||new Tg}async download(e){let r=await t.getDownloadVersion(e.version);X(`Install.download version: ${r.version}`);let i=await t.getRelease(r,this.githubToken);X(`Install.download release tag name: ${i.tag_name}`);let n=await this.vspec(i.tag_name);X(`Install.download vspec: ${n}`);let s=nv.clean(n)||"";if(!nv.valid(s))throw new Error(`Invalid Cosign version "${n}".`);let o=new xn({htcName:"cosign-dl-bin",htcVersion:n,baseCacheDir:iv.default.join(Wl.default.homedir(),".bin"),cacheFile:Wl.default.platform()=="win32"?"cosign.exe":"cosign",ghaNoCache:e.ghaNoCache}),a=await o.find();if(a)return $(`Cosign binary found in ${a}`),a;let c=gAe.format(r.downloadURL,n,this.filename());$(`Downloading ${c}`);let u=await Wc(c,void 0,this.githubToken);X(`Install.download htcDownloadPath: ${u}`),e.verifySignature&&nv.satisfies(n,">=3.0.1")&&await this.verifySignature(u,c);let l=await o.save(u,e.skipState);return $(`Cached to ${l}`),l}async build(e,r,i){let n=await this.vspec(e);X(`Install.build vspec: ${n}`);let s=new xn({htcName:"cosign-build-bin",htcVersion:n,baseCacheDir:iv.default.join(Wl.default.homedir(),".bin"),cacheFile:Wl.default.platform()=="win32"?"cosign.exe":"cosign",ghaNoCache:r}),o=await s.find();if(o)return $(`Cosign binary found in ${o}`),o;let a=iv.default.join(Dt.tmpDir(),"cosign-build-cache"),c=await this.buildCommand(e,a),u=await qe.getExecOutput(c.command,c.args,{ignoreReturnCode:!0,input:Buffer.from(qot)}).then(f=>{if(f.stderr.length>0&&f.exitCode!=0)throw new Error(`build failed with: ${f.stderr.match(/(.*)\s*$/)?.[0]?.trim()??"unknown error"}`);return`${a}/cosign`}),l=await s.save(u,i);return $(`Cached to ${l}`),l}async install(e,r){r=r||Dt.tmpDir();let i=iv.default.join(r,"cosign-bin");X2.default.existsSync(i)||X2.default.mkdirSync(i,{recursive:!0});let n=Wl.default.platform()=="win32"?"cosign.exe":"cosign",s=iv.default.join(i,n);return X2.default.copyFileSync(e,s),$("Fixing perms"),X2.default.chmodSync(s,"0755"),hf(i),$("Added Cosign to PATH"),$(`Binary path: ${s}`),s}async buildCommand(e,r){let i=await new Wt({standalone:!0}).isAvailable(),n=await new Wt({standalone:!1}).isAvailable(),s=!1;if(await this.buildx.isStandalone()&&i)X("Install.buildCommand: Buildx standalone found, build with it"),s=!0;else if(!await this.buildx.isStandalone()&&n)X("Install.buildCommand: Buildx plugin found, build with it"),s=!1;else if(i)X("Install.buildCommand: Buildx plugin not found, but standalone found so trying to build with it"),s=!0;else if(n)X("Install.buildCommand: Buildx standalone not found, but plugin found so trying to build with it"),s=!1;else throw new Error(`Neither buildx standalone or plugin have been found to build from ref ${e}`);let o=["build","--platform","local","--build-arg","BUILDKIT_CONTEXT_KEEP_GIT_DIR=1","--output",`type=local,dest=${r}`];return process.env.GIT_AUTH_TOKEN&&o.push("--secret","id=GIT_AUTH_TOKEN"),o.push("-f-",e),await new Wt({standalone:s}).getCommand(o)}async verifySignature(e,r){let i=`${r}.sigstore.json`;$(`Downloading keyless verification bundle at ${i}`);let n=await Wc(i,void 0,this.githubToken);X(`Install.verifySignature bundlePath: ${n}`);let s=await this.sigstore.verifyArtifact(e,n,{subjectAlternativeName:"keyless@projectsigstore.iam.gserviceaccount.com",issuer:"https://accounts.google.com"});$(`Cosign binary signature verified! ${s.tlogID?`${sb}?logIndex=${s.tlogID}`:""}`)}filename(){let e;switch(Wl.default.arch()){case"x64":{e="amd64";break}case"ppc64":{e="ppc64le";break}default:{e=Wl.default.arch();break}}let r=Wl.default.platform()=="win32"?"windows":Wl.default.platform(),i=Wl.default.platform()=="win32"?".exe":"";return gAe.format("cosign-%s-%s%s",r,e,i)}async vspec(e){if(!Ke.isValidRef(e)){let u=e.replace(/^v+|v+$/g,"");return $(`Use ${u} version spec cache key for ${e}`),u}let[r,i]=e.split("#");i.length==0&&(i="master");let n;i.match(/^[0-9a-fA-F]{40}$/)?n=i:n=await gS.remoteSha(r,i,process.env.GIT_AUTH_TOKEN);let[s,o]=r.substring(19).split("/"),a=`${s}/${Ke.trimSuffix(o,".git")}/${n}`,c=Ke.hash(a);return $(`Use ${c} version spec cache key for ${a}`),c}static async getDownloadVersion(e){return{version:e,downloadURL:"https://github.com/sigstore/cosign/releases/download/v%s/%s",contentOpts:{owner:"docker",repo:"actions-toolkit",ref:"main",path:".github/cosign-releases.json"}}}static async getRelease(e,r){let n=await new gt({token:r}).releases("Cosign",e.contentOpts);if(!n[e.version])throw new Error(`Cannot find Cosign release ${e.version} in releases JSON`);return n[e.version]}};var Got=O(Sl(),1);var g6=class{binPath;_version;_versionOnce;constructor(e){this.binPath=e?.binPath||"regctl",this._version="",this._versionOnce=!1}async blobGet(e){return await qe.getExecOutput(this.binPath,["blob","get",e.repository,e.digest],{ignoreReturnCode:!0,silent:!0}).then(r=>{if(r.stderr.length>0&&r.exitC Line truncated
`)[0]?.trim())}else h.stderr.length>0&&(u=Error(`buildx bake failed with: ${h.stderr.match(/(.*)\s*$/)?.[0]?.trim()??"unknown error"}`))});let l=r.buildxBake.resolveMetadata();l&&await si("Metadata",async()=>{let h=JSON.stringify(l,null,2);$(h),_Se("metadata",h)});let f=[];if(await si("Build references",async()=>{if(f=await tRr(r,t,e.builder),f.length>0){for(let h of f)$(h);nat(f)}else $("No build references found")}),rRr()){let h=r.buildxBake.resolveWarnings(l);if(f.length>0&&h&&h.length>0){let d=await Wt.convertWarningsToGitHubAnnotations(h,f);X(`annotations: ${JSON.stringify(d,null,2)}`),d&&d.length>0&&await si(`Generating GitHub annotations (${d.length} build checks found)`,async()=>{for(let m of d)ns(m.message,m)})}}if(await si("Check build summary support",async()=>{iRr()?e.call&&e.call!=="build"?$(`Build summary skipped for ${e.call} subrequest`):gt.isGHES?$("Build summary is not yet supported on GHES"):await r.buildx.versionSatisfies(">=0.23.0")?f.length==0?$("Build summary requires at least one build reference"):($("Build summary supported!"),sat()):$("Build summary requires Buildx >= 0.23.0"):$("Build summary disabled")}),u)throw u},async()=>{Zot&&await si("Generating build summary",async()=>{try{let t=nRr(),e;t&&(e=sRr());let i=await new LF().export({refs:Xot});$(`Build records written to ${i.dockerbuildFilename} (${Ke.formatFileSize(i.dockerbuildSize)})`);let n;t&&(n=await W3.upload({filename:i.dockerbuildFilename,retentionDays:e})),await r4.writeBuildSummary({exportRes:i,uploadRes:n,inputs:Yot,bakeDefinition:Kot,driver:Wot,endpoint:Jot})}catch(t){ns(t.message)}}),B6.length>0&&await si(`Removing temp folder ${B6}`,async()=>{aat.rmSync(B6,{recursive:!0})})});async function tRr(t,e,r){let i=t.buildxBake.resolveRefs();if(i)return i;r||(r=(await t.builder.inspect()).name);let n=Wt.refs({dir:Wt.refsDir,builderName:r,since:e}),s=[];for(let o in n)Object.prototype.hasOwnProperty.call(n,o)&&s.push(o);return s}function rRr(){return process.env.DOCKER_BUILD_CHECKS_ANNOTATIONS?Ke.parseBool(process.env.DOCKER_BUILD_CHECKS_ANNOTATIONS):!0}function iRr(){return process.env.DOCKER_BUILD_SUMMARY?Ke.parseBool(process.env.DOCKER_BUILD_SUMMARY):!0}function nRr(){return process.env.DOCKER_BUILD_RECORD_UPLOAD?Ke.parseBool(process.env.DOCKER_BUILD_RECORD_UPLOAD):!0}function sRr(){let t=process.env.DOCKER_BUILD_RECORD_RETENTION_DAYS;if(t){let e=parseInt(t);if(isNaN(e))throw Error(`Invalid build record retention days: ${t}`);return e}}
/*! Bundled license information:
undici/lib/web/fetch/body.js:
Generated Vendored
+4 -4
View File
@@ -1,7 +1,7 @@
{
"version": 3,
"sources": ["../node_modules/tunnel/lib/tunnel.js", "../node_modules/tunnel/index.js", "../node_modules/undici/lib/core/symbols.js", "../node_modules/undici/lib/core/errors.js", "../node_modules/undici/lib/core/constants.js", "../node_modules/undici/lib/core/tree.js", "../node_modules/undici/lib/core/util.js", "../node_modules/undici/lib/core/diagnostics.js", "../node_modules/undici/lib/core/request.js", "../node_modules/undici/lib/dispatcher/dispatcher.js", "../node_modules/undici/lib/dispatcher/dispatcher-base.js", "../node_modules/undici/lib/util/timers.js", "../node_modules/undici/lib/core/connect.js", "../node_modules/undici/lib/llhttp/utils.js", "../node_modules/undici/lib/llhttp/constants.js", "../node_modules/undici/lib/llhttp/llhttp-wasm.js", "../node_modules/undici/lib/llhttp/llhttp_simd-wasm.js", "../node_modules/undici/lib/web/fetch/constants.js", "../node_modules/undici/lib/web/fetch/global.js", "../node_modules/undici/lib/web/fetch/data-url.js", "../node_modules/undici/lib/web/fetch/webidl.js", "../node_modules/undici/lib/web/fetch/util.js", "../node_modules/undici/lib/web/fetch/symbols.js", "../node_modules/undici/lib/web/fetch/file.js", "../node_modules/undici/lib/web/fetch/formdata.js", "../node_modules/undici/lib/web/fetch/formdata-parser.js", "../node_modules/undici/lib/web/fetch/body.js", "../node_modules/undici/lib/dispatcher/client-h1.js", "../node_modules/undici/lib/dispatcher/client-h2.js", "../node_modules/undici/lib/handler/redirect-handler.js", "../node_modules/undici/lib/interceptor/redirect-interceptor.js", "../node_modules/undici/lib/dispatcher/client.js", "../node_modules/undici/lib/dispatcher/fixed-queue.js", "../node_modules/undici/lib/dispatcher/pool-stats.js", "../node_modules/undici/lib/dispatcher/pool-base.js", "../node_modules/undici/lib/dispatcher/pool.js", "../node_modules/undici/lib/dispatcher/balanced-pool.js", "../node_modules/undici/lib/dispatcher/agent.js", "../node_modules/undici/lib/dispatcher/proxy-agent.js", "../node_modules/undici/lib/dispatcher/env-http-proxy-agent.js", "../node_modules/undici/lib/handler/retry-handler.js", "../node_modules/undici/lib/dispatcher/retry-agent.js", "../node_modules/undici/lib/api/readable.js", "../node_modules/undici/lib/api/util.js", "../node_modules/undici/lib/api/api-request.js", "../node_modules/undici/lib/api/abort-signal.js", "../node_modules/undici/lib/api/api-stream.js", "../node_modules/undici/lib/api/api-pipeline.js", "../node_modules/undici/lib/api/api-upgrade.js", "../node_modules/undici/lib/api/api-connect.js", "../node_modules/undici/lib/api/index.js", "../node_modules/undici/lib/mock/mock-errors.js", "../node_modules/undici/lib/mock/mock-symbols.js", "../node_modules/undici/lib/mock/mock-utils.js", "../node_modules/undici/lib/mock/mock-interceptor.js", "../node_modules/undici/lib/mock/mock-client.js", "../node_modules/undici/lib/mock/mock-pool.js", "../node_modules/undici/lib/mock/pluralizer.js", "../node_modules/undici/lib/mock/pending-interceptors-formatter.js", "../node_modules/undici/lib/mock/mock-agent.js", "../node_modules/undici/lib/global.js", "../node_modules/undici/lib/handler/decorator-handler.js", "../node_modules/undici/lib/interceptor/redirect.js", "../node_modules/undici/lib/interceptor/retry.js", "../node_modules/undici/lib/interceptor/dump.js", "../node_modules/undici/lib/interceptor/dns.js", "../node_modules/undici/lib/web/fetch/headers.js", "../node_modules/undici/lib/web/fetch/response.js", "../node_modules/undici/lib/web/fetch/dispatcher-weakref.js", "../node_modules/undici/lib/web/fetch/request.js", "../node_modules/undici/lib/web/fetch/index.js", "../node_modules/undici/lib/web/fileapi/symbols.js", "../node_modules/undici/lib/web/fileapi/progressevent.js", "../node_modules/undici/lib/web/fileapi/encoding.js", "../node_modules/undici/lib/web/fileapi/util.js", "../node_modules/undici/lib/web/fileapi/filereader.js", "../node_modules/undici/lib/web/cache/symbols.js", "../node_modules/undici/lib/web/cache/util.js", "../node_modules/undici/lib/web/cache/cache.js", "../node_modules/undici/lib/web/cache/cachestorage.js", "../node_modules/undici/lib/web/cookies/constants.js", "../node_modules/undici/lib/web/cookies/util.js", "../node_modules/undici/lib/web/cookies/parse.js", "../node_modules/undici/lib/web/cookies/index.js", "../node_modules/undici/lib/web/websocket/events.js", "../node_modules/undici/lib/web/websocket/constants.js", "../node_modules/undici/lib/web/websocket/symbols.js", "../node_modules/undici/lib/web/websocket/util.js", "../node_modules/undici/lib/web/websocket/frame.js", "../node_modules/undici/lib/web/websocket/connection.js", "../node_modules/undici/lib/web/websocket/permessage-deflate.js", "../node_modules/undici/lib/web/websocket/receiver.js", "../node_modules/undici/lib/web/websocket/sender.js", "../node_modules/undici/lib/web/websocket/websocket.js", "../node_modules/undici/lib/web/eventsource/util.js", "../node_modules/undici/lib/web/eventsource/eventsource-stream.js",Line truncated
"sourcesContent": ["'use strict';\n\nvar net = require('net');\nvar tls = require('tls');\nvar http = require('http');\nvar https = require('https');\nvar events = require('events');\nvar assert = require('assert');\nvar util = require('util');\n\n\nexports.httpOverHttp = httpOverHttp;\nexports.httpsOverHttp = httpsOverHttp;\nexports.httpOverHttps = httpOverHttps;\nexports.httpsOverHttps = httpsOverHttps;\n\n\nfunction httpOverHttp(options) {\n var agent = new TunnelingAgent(options);\n agent.request = http.request;\n return agent;\n}\n\nfunction httpsOverHttp(options) {\n var agent = new TunnelingAgent(options);\n agent.request = http.request;\n agent.createSocket = createSecureSocket;\n agent.defaultPort = 443;\n return agent;\n}\n\nfunction httpOverHttps(options) {\n var agent = new TunnelingAgent(options);\n agent.request = https.request;\n return agent;\n}\n\nfunction httpsOverHttps(options) {\n var agent = new TunnelingAgent(options);\n agent.request = https.request;\n agent.createSocket = createSecureSocket;\n agent.defaultPort = 443;\n return agent;\n}\n\n\nfunction TunnelingAgent(options) {\n var self = this;\n self.options = options || {};\n self.proxyOptions = self.options.proxy || {};\n self.maxSockets = self.options.maxSockets || http.Agent.defaultMaxSockets;\n self.requests = [];\n self.sockets = [];\n\n self.on('free', function onFree(socket, host, port, localAddress) {\n var options = toOptions(host, port, localAddress);\n for (var i = 0, len = self.requests.length; i < len; ++i) {\n var pending = self.requests[i];\n if (pending.host === options.host && pending.port === options.port) {\n // Detect the request to connect same origin server,\n // reuse the connection.\n self.requests.splice(i, 1);\n pending.request.onSocket(socket);\n return;\n }\n }\n socket.destroy();\n self.removeSocket(socket);\n });\n}\nutil.inherits(TunnelingAgent, events.EventEmitter);\n\nTunnelingAgent.prototype.addRequest = function addRequest(req, host, port, localAddress) {\n var self = this;\n var options = mergeOptions({request: req}, self.options, toOptions(host, port, localAddress));\n\n if (self.sockets.length >= this.maxSockets) {\n // We are over limit so we'll add it to the queue.\n self.requests.push(options);\n return;\n }\n\n // If we are under maxSockets create a new one.\n self.createSocket(options, function(socket) {\n socket.on('free', onFree);\n socket.on('close', onCloseOrRemove);\n socket.on('agentRemove', onCloseOrRemove);\n req.onSocket(socket);\n\n function onFree() {\n self.emit('free', socket, options);\n }\n\n function onCloseOrRemove(err) {\n self.removeSocket(socket);\n socket.removeListener('free', onFree);\n socket.removeListener('close', onCloseOrRemove);\n socket.removeListener('agentRemove', onCloseOrRemove);\n }\n });\n};\n\nTunnelingAgent.prototype.createSocket = function createSocket(options, cb) {\n var self = this;\n var placeholder = {};\n self.sockets.push(placeholder);\n\n var connectOptions = mergeOptions({}, self.proxyOptions, {\n method: 'CONNECT',\n path: options.host + ':' + options.port,\n agent: false,\n headers: {\n host: options.host + ':' + options.port\n }\n });\n if (options.localAddress) {\n connectOptions.localAddress = options.localAddress;\n }\n if (connectOptions.proxyAuth) {\n connectOptions.headers = connectOptions.headers || {};\n connectOptions.headers['Proxy-Authorization'] = 'Basic ' +\n new Buffer(connectOptions.proxyAuth).toString('base64');\n }\n\n debug('making CONNECT request');\n var connectReq = self.request(connectOptions);\n connectReq.useChunkedEncodingByDefault = false; // for v0.6\n connectReq.once('response', onResponse); // for v0.6\n connectReq.once('upgrade', onUpgrade); // for v0.6\n connectReq.once('connect', onConnect); // for v0.7 or later\n connectReq.once('error', onError);\n connectReq.end();\n\n function onResponse(res) {\n // Very hacky. This is necessary to avoid http-parser leaks.\n res.upgrade = true;\n }\n\n function onUpgrade(res, socket, head) {\n // Hacky.\n process.nextTick(function() {\n onConnect(res, socket, head);\n });\n }\n\n function onConnect(res, socket, head) {\n connectReq.removeAllListeners();\n socket.removeAllListeners();\n\n if (res.statusCode !== 200) {\n debug('tunneling socket could not be established, statusCode=%d',\n res.statusCode);\n socket.destroy();\n var error = new Error('tunneling socket could not be established, ' +\n 'statusCode=' + res.statusCode);\n error.code = 'ECONNRESET';\n options.request.emit('error', error);\n self.removeSocket(placeholder);\n return;\n }\n if (head.length > 0) {\n debug('got illegal response body from proxy');\n socket.destroy();\n var error = new Error('Line truncated
"mappings": "koBAAA,IAAAA,IAAAC,EAAAC,IAAA,cAEA,IAAIC,IAAM,QAAQ,KAAK,EACnBC,IAAM,QAAQ,KAAK,EACnBC,GAAO,QAAQ,MAAM,EACrBC,IAAQ,QAAQ,OAAO,EACvBC,IAAS,QAAQ,QAAQ,EACzBC,IAAS,QAAQ,QAAQ,EACzBC,IAAO,QAAQ,MAAM,EAGzBP,GAAQ,aAAeQ,IACvBR,GAAQ,cAAgBS,IACxBT,GAAQ,cAAgBU,IACxBV,GAAQ,eAAiBW,IAGzB,SAASH,IAAaI,EAAS,CAC7B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUV,GAAK,QACdU,CACT,CAEA,SAASJ,IAAcG,EAAS,CAC9B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUV,GAAK,QACrBU,EAAM,aAAeE,IACrBF,EAAM,YAAc,IACbA,CACT,CAEA,SAASH,IAAcE,EAAS,CAC9B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUT,IAAM,QACfS,CACT,CAEA,SAASF,IAAeC,EAAS,CAC/B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUT,IAAM,QACtBS,EAAM,aAAeE,IACrBF,EAAM,YAAc,IACbA,CACT,CAGA,SAASC,GAAeF,EAAS,CAC/B,IAAII,EAAO,KACXA,EAAK,QAAUJ,GAAW,CAAC,EAC3BI,EAAK,aAAeA,EAAK,QAAQ,OAAS,CAAC,EAC3CA,EAAK,WAAaA,EAAK,QAAQ,YAAcb,GAAK,MAAM,kBACxDa,EAAK,SAAW,CAAC,EACjBA,EAAK,QAAU,CAAC,EAEhBA,EAAK,GAAG,OAAQ,SAAgBC,EAAQC,EAAMC,EAAMC,EAAc,CAEhE,QADIR,EAAUS,IAAUH,EAAMC,EAAMC,CAAY,EACvCE,EAAI,EAAGC,EAAMP,EAAK,SAAS,OAAQM,EAAIC,EAAK,EAAED,EAAG,CACxD,IAAIE,EAAUR,EAAK,SAASM,CAAC,EAC7B,GAAIE,EAAQ,OAASZ,EAAQ,MAAQY,EAAQ,OAASZ,EAAQ,KAAM,CAGlEI,EAAK,SAAS,OAAOM,EAAG,CAAC,EACzBE,EAAQ,QAAQ,SAASP,CAAM,EAC/B,MACF,CACF,CACAA,EAAO,QAAQ,EACfD,EAAK,aAAaC,CAAM,CAC1B,CAAC,CACH,CACAV,IAAK,SAASO,GAAgBT,IAAO,YAAY,EAEjDS,GAAe,UAAU,WAAa,SAAoBW,EAAKP,EAAMC,EAAMC,EAAc,CACvF,IAAIJ,EAAO,KACPJ,EAAUc,GAAa,CAAC,QAASD,CAAG,EAAGT,EAAK,QAASK,IAAUH,EAAMC,EAAMC,CAAY,CAAC,EAE5F,GAAIJ,EAAK,QAAQ,QAAU,KAAK,WAAY,CAE1CA,EAAK,SAAS,KAAKJ,CAAO,EAC1B,MACF,CAGAI,EAAK,aAAaJ,EAAS,SAASK,EAAQ,CAC1CA,EAAO,GAAG,OAAQU,CAAM,EACxBV,EAAO,GAAG,QAASW,CAAe,EAClCX,EAAO,GAAG,cAAeW,CAAe,EACxCH,EAAI,SAASR,CAAM,EAEnB,SAASU,GAAS,CAChBX,EAAK,KAAK,OAAQC,EAAQL,CAAO,CACnC,CAEA,SAASgB,EAAgBC,EAAK,CAC5Bb,EAAK,aAAaC,CAAM,EACxBA,EAAO,eAAe,OAAQU,CAAM,EACpCV,EAAO,eAAe,QAASW,CAAe,EAC9CX,EAAO,eAAe,cAAeW,CAAe,CACtD,CACF,CAAC,CACH,EAEAd,GAAe,UAAU,aAAe,SAAsBF,EAASkB,EAAI,CACzE,IAAId,EAAO,KACPe,EAAc,CAAC,EACnBf,EAAK,QAAQ,KAAKe,CAAW,EAE7B,IAAIC,EAAiBN,GAAa,CAAC,EAAGV,EAAK,aAAc,CACvD,OAAQ,UACR,KAAMJ,EAAQ,KAAO,IAAMA,EAAQ,KACnC,MAAO,GACP,QAAS,CACP,KAAMA,EAAQ,KAAO,IAAMA,EAAQ,IACrC,CACF,CAAC,EACGA,EAAQ,eACVoB,EAAe,aAAepB,EAAQ,cAEpCoB,EAAe,YACjBA,EAAe,QAAUA,EAAe,SAAW,CAAC,EACpDA,EAAe,QAAQ,qBAAqB,EAAI,SAC5C,IAAI,OAAOA,EAAe,SAAS,EAAE,SAAS,QAAQ,GAG5DC,GAAM,wBAAwB,EAC9B,IAAIC,EAAalB,EAAK,QAAQgB,CAAc,EAC5CE,EAAW,4BAA8B,GACzCA,EAAW,KAAK,WAAYC,CAAU,EACtCD,EAAW,KAAK,UAAWE,CAAS,EACpCF,EAAW,KAAK,UAAWG,CAAS,EACpCH,EAAW,KAAK,QAASI,CAAO,EAChCJ,EAAW,IAAI,EAEf,SAASC,EAAWI,EAAK,CAEvBA,EAAI,QAAU,EAChB,CAEA,SAASH,EAAUG,EAAKtB,EAAQuB,EAAM,CAEpC,QAAQ,SAAS,UAAW,CAC1BH,EAAUE,EAAKtB,EAAQuB,CAAI,CAC7B,CAAC,CACH,CAEA,SAASH,EAAUE,EAAKtB,EAAQuB,EAAM,CAIpC,GAHAN,EAAW,mBAAmB,EAC9BjB,EAAO,mBAAmB,EAEtBsB,EAAI,aAAe,IAAK,CAC1BN,GAAM,2DACJM,EAAI,UAAU,EAChBtB,EAAO,QAAQ,EACf,IAAIwB,EAAQ,IAAI,MAAM,yDACJF,EAAI,UAAU,EAChCE,EAAM,KAAO,aACb7B,EAAQ,QAAQ,KAAK,QAAS6B,CAAK,EACnCzB,EAAK,aAAae,CAAW,EAC7B,MACF,CACA,GAAIS,EAAK,OAAS,EAAG,CACnBP,GAAM,sCAAsC,EAC5ChB,EAAO,QAAQ,EACf,IAAIwB,EAAQ,IAAI,MAAM,sCAAsC,EAC5DA,EAAM,KAAO,aACb7B,EAAQ,QAAQ,KAAK,QAAS6B,CAAK,EACnCzB,EAAK,aAAae,CAAW,EAC7B,MACF,CACA,OAAAE,GAAM,sCAAsC,EAC5CjB,EAAK,QAAQA,EAAK,QAAQ,QAAQe,CAAW,CAAC,EAAId,EAC3Ca,EAAGb,CAAM,CAClB,CAEA,SAASqB,EAAQI,EAAO,CACtBR,EAAW,mBAAmB,EAE9BD,GAAM;AAAA,EACAS,EAAM,QAASA,EAAM,KAAK,EAChC,IAAID,EAAQ,IAAI,MAAM,oDACWC,EAAM,OAAO,EAC9CD,EAAM,KAAO,aACb7B,EAAQ,QAAQ,KAAK,QAAS6B,CAAK,EACnCzB,EAAK,aAAae,CAAW,CAC/B,CACF,EAEAjB,GAAe,UAAU,aAAe,SAAsBG,EAAQ,CACpE,IAAI0B,EAAM,KAAK,QAAQ,QAAQ1B,CAAM,EACrC,GAAI0B,IAAQ,GAGZ,MAAK,QAAQ,OAAOA,EAAK,CAAC,EAE1B,IAAInB,EAAU,KAAK,SAAS,MAAM,EAC9BA,GAGF,KAAK,aAAaA,EAAS,SAASP,EAAQ,CAC1CO,EAAQ,QAAQ,SAASP,CAAM,CACjC,CAAC,EAEL,EAEA,SAASF,IAAmBH,EAASkB,EAAI,CACvC,IAAId,EAAO,KACXF,GAAe,UAAU,aAAa,KAAKE,EAAMJ,EAAS,SAASK,EAAQ,CACzE,IAAI2B,EAAahC,EAAQ,QAAQ,UAAU,MAAM,EAC7CiC,EAAanB,GAAa,CAAC,EAAGV,EAAK,QAAS,CAC9C,OAAQC,EACR,WAAY2B,EAAaA,EAAW,QAAQ,OAAQ,EAAE,EAAIhC,EAAQ,IACpE,CAAC,EAGGkC,EAAe5C,IAAI,QAAQ,EAAG2C,CAAU,EAC5C7B,EAAK,QAAQA,EAAK,QAAQ,QAAQC,CAAM,CAAC,EAAI6B,EAC7ChB,EAAGgB,CAAY,CACjB,CAAC,CACH,CAGA,SAASzB,IAAUH,EAAMC,EAAMC,EAAc,CAC3C,OAAI,OAAOF,GAAS,SACX,CACL,KAAMA,EACN,KAAMC,EACN,aAAcC,CAChB,EAEKF,CACT,CAEA,SAASQ,GAAaqB,EAAQ,CAC5B,QAASzB,EAAI,EAAGC,EAAM,UAAU,OAAQD,EAAIC,EAAK,EAAED,EAAG,CACpD,IAAI0B,EAAY,UAAU1B,CAAC,EAC3B,GAAI,OAAO0B,GAAc,SAEvB,QADIC,EAAO,OAAO,KAAKD,CAAS,EACvBE,EAAI,EAAGC,EAASF,EAAK,OAAQC,EAAIC,EAAQ,EAAED,EAAG,CACrD,IAAIE,EAAIH,EAAKC,CAAC,EACVF,EAAUI,CAAC,IAAM,SACnBL,EAAOK,CAAC,EAAIJ,EAAUI,CAAC,EAE3B,CAEJ,CACA,OAAOL,CACT,CAGA,IAAId,GACA,QAAQ,IAAI,YAAc,aAAa,KAAK,QAAQ,IAAI,UAAU,EACpEA,GAAQ,UAAW,CACjB,IAAIoB,EAAO,MAAM,UAAU,MAAM,KAAK,SAAS,EAC3C,OAAOA,EAAK,CAAC,GAAM,SACrBA,EAAK,CAAC,EAAI,WAAaA,EAAK,CAAC,EAE7BA,EAAK,QAAQ,SAAS,EAExB,QAAQ,MAAM,MAAM,QAASA,CAAI,CACnC,EAEApB,GAAQ,UAAW,CAAC,EAEtBjC,GAAQ,MAAQiC,KCvQhB,IAAAqB,GAAAC,EAAA,CAAAC,IAAAC,MAAA,CAAAA,IAAO,QAAU,QCAjB,IAAAC,GAAAC,EAAA,CAAAC,IAAAC,MAAA,CAAAA,IAAO,QAAU,CACf,OAAQ,OAAO,OAAO,EACtB,SAAU,OAAO,SAAS,EAC1B,UAAW,OAAO,UAAU,EAC5B,KAAM,OAAO,KAAK,EAClB,SAAULine truncated
"names": ["require_tunnel", "__commonJSMin", "exports", "net", "tls", "http", "https", "events", "assert", "util", "httpOverHttp", "httpsOverHttp", "httpOverHttps", "httpsOverHttps", "options", "agent", "TunnelingAgent", "createSecureSocket", "self", "socket", "host", "port", "localAddress", "toOptions", "i", "len", "pending", "req", "mergeOptions", "onFree", "onCloseOrRemove", "err", "cb", "placeholder", "connectOptions", "debug", "connectReq", "onResponse", "onUpgrade", "onConnect", "onError", "res", "head", "error", "cause", "pos", "hostHeader", "tlsOptions", "secureSocket", "target", "overrides", "keys", "j", "keyLen", "k", "args", "require_tunnel", "__commonJSMin", "exports", "module", "require_symbols", "__commonJSMin", "exports", "module", "require_errors", "__commonJSMin", "exports", "module", "kUndiciError", "UndiciError", "message", "instance", "kConnectTimeoutError", "ConnectTimeoutError", "kHeadersTimeoutError", "HeadersTimeoutError", "kHeadersOverflowError", "HeadersOverflowError", "kBodyTimeoutError", "BodyTimeoutError", "kResponseStatusCodeError", "ResponseStatusCodeError", "statusCode", "headers", "body", "kInvalidArgumentError", "InvalidArgumentError", "kInvalidReturnValueError", "InvalidReturnValueError", "kAbortError", "AbortError", "kRequestAbortedError", "RequestAbortedError", "kInformationalError", "InformationalError", "kRequestContentLengthMismatchError", "RequestContentLengthMismatchError", "kResponseContentLengthMismatchError", "ResponseContentLengthMismatchError", "kClientDestroyedError", "ClientDestroyedError", "kClientClosedError", "ClientClosedError", "kSocketError", "SocketError", "socket", "kNotSupportedError", "NotSupportedError", "kBalancedPoolMissingUpstreamError", "BalancedPoolMissingUpstreamError", "kHTTPParserError", "HTTPParserError", "code", "data", "kResponseExceededMaxSizeError", "ResponseExceededMaxSizeError", "kRequestRetryError", "RequestRetryError", "kResponseError", "ResponseError", "kSecureProxyConnectionError", "SecureProxyConnectionError", "cause", "options", "kMessageSizeExceededError", "MessageSizeExceededError", "require_constants", "__commonJSMin", "exports", "module", "headerNameLowerCasedRecord", "wellknownHeaderNames", "i", "key", "lowerCasedKey", "require_tree", "__commonJSMin", "exports", "module", "wellknownHeaderNames", "headerNameLowerCasedRecord", "TstNode", "_TstNode", "key", "value", "index", "length", "node", "code", "keylength", "TernarySearchTree", "tree", "i", "require_util", "__commonJSMin", "exports", "module", "assert", "kDestroyed", "kBodyUsed", "kListeners", "kBody", "IncomingMessage", "stream", "net", "Blob", "nodeUtil", "stringify", "EE", "InvalidArgumentError", "headerNameLowerCasedRecord", "tree", "nodeMajor", "nodeMinor", "v", "BodyAsyncIterable", "body", "wrapRequestBody", "isStream", "bodyLength", "isIterable", "nop", "obj", "isBlobLike", "object", "sTag", "buildURL", "url", "queryParams", "stringified", "isValidPort", "port", "value", "isHttpOrHttpsPrefixed", "parseURL", "origin", "path", "parseOrigin", "getHostname", "host", "idx", "getServerName", "servername", "deepClone", "isAsyncIterable", "state", "isBuffer", "isDestroyed", "destroy", "err", "KEEPALIVE_TIMEOUT_EXPR", "parseKeepAliveTimeout", "val", "m", "headerNameToString", "bufferToLowerCasedHeaderName", "parseHeaders", "headers", "i", "key", "headersValue", "x", "parseRawHeaders", "len", "ret", "hasContentLength", "contentDispositionIdx", "kLen", "n", "buffer", "validateHandler", "handler", "method", "upgrade", "isDisturbed", "isErrored", "isReadable", "getSocketInfo", "socket", "ReadableStreamFrom", "iterable", "iterator", "controller", "done", "buf", "reason", "isFormDataLike", "addAbortListener", "signal", "listener", "hasToWellFormed", "hasIsWellFormed", "toUSVString", "isUSVString", "isTokenCharCode", "c", "isValidHTTPToken", "characters", "headerCharRegex", "isValidHeaderValue", "parseRangeHeader", "range", "addListener", "name", "removeAllListeners", "errorRequest", "client", "request", "kEnumerableProperty", "normalizedMethodRecordsBase", "normalizedMethodRecords", "require_diagnostics", "__commonJSMin", "exports", "module", "diagnosticsChannel", "util", "undiciDebugLog", "fetchDebuglog", "websocketDebuglog", "isClientSet", "channels", "debuglog", "evt", "version", "protocol", "port", "host", "error", "method", "path", "origin", "statusCode", "address", "websocket", "code", "reason", "err", "require_request", "__commonJSMin", "exports", "module", "InvalidArgumentError", "NotSupportedError", "assert", "isValidHTTPToken", "isValidHeaderValue", "isStream", "destroy", "isBuffer", "isFormDataLike", "isIterable", "isBlobLike", "buildURL", "validateHandler", "getServerName", "normalizedMethodRecords", "channels", "headerNameLowerCasedRecord", "invalidPathRegex", "kHandler", "Request", "origin", "path", "method", "body", "headers", "query", "idempotent", "blocking", "upgrade", "headersTimeout", "bodyTimeout", "reset", "throwOnError", "expectContinue", "servername",Line truncated
"sources": ["../node_modules/tunnel/lib/tunnel.js", "../node_modules/tunnel/index.js", "../node_modules/undici/lib/core/symbols.js", "../node_modules/undici/lib/core/errors.js", "../node_modules/undici/lib/core/constants.js", "../node_modules/undici/lib/core/tree.js", "../node_modules/undici/lib/core/util.js", "../node_modules/undici/lib/core/diagnostics.js", "../node_modules/undici/lib/core/request.js", "../node_modules/undici/lib/dispatcher/dispatcher.js", "../node_modules/undici/lib/dispatcher/dispatcher-base.js", "../node_modules/undici/lib/util/timers.js", "../node_modules/undici/lib/core/connect.js", "../node_modules/undici/lib/llhttp/utils.js", "../node_modules/undici/lib/llhttp/constants.js", "../node_modules/undici/lib/llhttp/llhttp-wasm.js", "../node_modules/undici/lib/llhttp/llhttp_simd-wasm.js", "../node_modules/undici/lib/web/fetch/constants.js", "../node_modules/undici/lib/web/fetch/global.js", "../node_modules/undici/lib/web/fetch/data-url.js", "../node_modules/undici/lib/web/fetch/webidl.js", "../node_modules/undici/lib/web/fetch/util.js", "../node_modules/undici/lib/web/fetch/symbols.js", "../node_modules/undici/lib/web/fetch/file.js", "../node_modules/undici/lib/web/fetch/formdata.js", "../node_modules/undici/lib/web/fetch/formdata-parser.js", "../node_modules/undici/lib/web/fetch/body.js", "../node_modules/undici/lib/dispatcher/client-h1.js", "../node_modules/undici/lib/dispatcher/client-h2.js", "../node_modules/undici/lib/handler/redirect-handler.js", "../node_modules/undici/lib/interceptor/redirect-interceptor.js", "../node_modules/undici/lib/dispatcher/client.js", "../node_modules/undici/lib/dispatcher/fixed-queue.js", "../node_modules/undici/lib/dispatcher/pool-stats.js", "../node_modules/undici/lib/dispatcher/pool-base.js", "../node_modules/undici/lib/dispatcher/pool.js", "../node_modules/undici/lib/dispatcher/balanced-pool.js", "../node_modules/undici/lib/dispatcher/agent.js", "../node_modules/undici/lib/dispatcher/proxy-agent.js", "../node_modules/undici/lib/dispatcher/env-http-proxy-agent.js", "../node_modules/undici/lib/handler/retry-handler.js", "../node_modules/undici/lib/dispatcher/retry-agent.js", "../node_modules/undici/lib/api/readable.js", "../node_modules/undici/lib/api/util.js", "../node_modules/undici/lib/api/api-request.js", "../node_modules/undici/lib/api/abort-signal.js", "../node_modules/undici/lib/api/api-stream.js", "../node_modules/undici/lib/api/api-pipeline.js", "../node_modules/undici/lib/api/api-upgrade.js", "../node_modules/undici/lib/api/api-connect.js", "../node_modules/undici/lib/api/index.js", "../node_modules/undici/lib/mock/mock-errors.js", "../node_modules/undici/lib/mock/mock-symbols.js", "../node_modules/undici/lib/mock/mock-utils.js", "../node_modules/undici/lib/mock/mock-interceptor.js", "../node_modules/undici/lib/mock/mock-client.js", "../node_modules/undici/lib/mock/mock-pool.js", "../node_modules/undici/lib/mock/pluralizer.js", "../node_modules/undici/lib/mock/pending-interceptors-formatter.js", "../node_modules/undici/lib/mock/mock-agent.js", "../node_modules/undici/lib/global.js", "../node_modules/undici/lib/handler/decorator-handler.js", "../node_modules/undici/lib/interceptor/redirect.js", "../node_modules/undici/lib/interceptor/retry.js", "../node_modules/undici/lib/interceptor/dump.js", "../node_modules/undici/lib/interceptor/dns.js", "../node_modules/undici/lib/web/fetch/headers.js", "../node_modules/undici/lib/web/fetch/response.js", "../node_modules/undici/lib/web/fetch/dispatcher-weakref.js", "../node_modules/undici/lib/web/fetch/request.js", "../node_modules/undici/lib/web/fetch/index.js", "../node_modules/undici/lib/web/fileapi/symbols.js", "../node_modules/undici/lib/web/fileapi/progressevent.js", "../node_modules/undici/lib/web/fileapi/encoding.js", "../node_modules/undici/lib/web/fileapi/util.js", "../node_modules/undici/lib/web/fileapi/filereader.js", "../node_modules/undici/lib/web/cache/symbols.js", "../node_modules/undici/lib/web/cache/util.js", "../node_modules/undici/lib/web/cache/cache.js", "../node_modules/undici/lib/web/cache/cachestorage.js", "../node_modules/undici/lib/web/cookies/constants.js", "../node_modules/undici/lib/web/cookies/util.js", "../node_modules/undici/lib/web/cookies/parse.js", "../node_modules/undici/lib/web/cookies/index.js", "../node_modules/undici/lib/web/websocket/events.js", "../node_modules/undici/lib/web/websocket/constants.js", "../node_modules/undici/lib/web/websocket/symbols.js", "../node_modules/undici/lib/web/websocket/util.js", "../node_modules/undici/lib/web/websocket/frame.js", "../node_modules/undici/lib/web/websocket/connection.js", "../node_modules/undici/lib/web/websocket/permessage-deflate.js", "../node_modules/undici/lib/web/websocket/receiver.js", "../node_modules/undici/lib/web/websocket/sender.js", "../node_modules/undici/lib/web/websocket/websocket.js", "../node_modules/undici/lib/web/eventsource/util.js", "../node_modules/undici/lib/web/eventsource/eventsource-stream.js",Line truncated
"sourcesContent": ["'use strict';\n\nvar net = require('net');\nvar tls = require('tls');\nvar http = require('http');\nvar https = require('https');\nvar events = require('events');\nvar assert = require('assert');\nvar util = require('util');\n\n\nexports.httpOverHttp = httpOverHttp;\nexports.httpsOverHttp = httpsOverHttp;\nexports.httpOverHttps = httpOverHttps;\nexports.httpsOverHttps = httpsOverHttps;\n\n\nfunction httpOverHttp(options) {\n var agent = new TunnelingAgent(options);\n agent.request = http.request;\n return agent;\n}\n\nfunction httpsOverHttp(options) {\n var agent = new TunnelingAgent(options);\n agent.request = http.request;\n agent.createSocket = createSecureSocket;\n agent.defaultPort = 443;\n return agent;\n}\n\nfunction httpOverHttps(options) {\n var agent = new TunnelingAgent(options);\n agent.request = https.request;\n return agent;\n}\n\nfunction httpsOverHttps(options) {\n var agent = new TunnelingAgent(options);\n agent.request = https.request;\n agent.createSocket = createSecureSocket;\n agent.defaultPort = 443;\n return agent;\n}\n\n\nfunction TunnelingAgent(options) {\n var self = this;\n self.options = options || {};\n self.proxyOptions = self.options.proxy || {};\n self.maxSockets = self.options.maxSockets || http.Agent.defaultMaxSockets;\n self.requests = [];\n self.sockets = [];\n\n self.on('free', function onFree(socket, host, port, localAddress) {\n var options = toOptions(host, port, localAddress);\n for (var i = 0, len = self.requests.length; i < len; ++i) {\n var pending = self.requests[i];\n if (pending.host === options.host && pending.port === options.port) {\n // Detect the request to connect same origin server,\n // reuse the connection.\n self.requests.splice(i, 1);\n pending.request.onSocket(socket);\n return;\n }\n }\n socket.destroy();\n self.removeSocket(socket);\n });\n}\nutil.inherits(TunnelingAgent, events.EventEmitter);\n\nTunnelingAgent.prototype.addRequest = function addRequest(req, host, port, localAddress) {\n var self = this;\n var options = mergeOptions({request: req}, self.options, toOptions(host, port, localAddress));\n\n if (self.sockets.length >= this.maxSockets) {\n // We are over limit so we'll add it to the queue.\n self.requests.push(options);\n return;\n }\n\n // If we are under maxSockets create a new one.\n self.createSocket(options, function(socket) {\n socket.on('free', onFree);\n socket.on('close', onCloseOrRemove);\n socket.on('agentRemove', onCloseOrRemove);\n req.onSocket(socket);\n\n function onFree() {\n self.emit('free', socket, options);\n }\n\n function onCloseOrRemove(err) {\n self.removeSocket(socket);\n socket.removeListener('free', onFree);\n socket.removeListener('close', onCloseOrRemove);\n socket.removeListener('agentRemove', onCloseOrRemove);\n }\n });\n};\n\nTunnelingAgent.prototype.createSocket = function createSocket(options, cb) {\n var self = this;\n var placeholder = {};\n self.sockets.push(placeholder);\n\n var connectOptions = mergeOptions({}, self.proxyOptions, {\n method: 'CONNECT',\n path: options.host + ':' + options.port,\n agent: false,\n headers: {\n host: options.host + ':' + options.port\n }\n });\n if (options.localAddress) {\n connectOptions.localAddress = options.localAddress;\n }\n if (connectOptions.proxyAuth) {\n connectOptions.headers = connectOptions.headers || {};\n connectOptions.headers['Proxy-Authorization'] = 'Basic ' +\n new Buffer(connectOptions.proxyAuth).toString('base64');\n }\n\n debug('making CONNECT request');\n var connectReq = self.request(connectOptions);\n connectReq.useChunkedEncodingByDefault = false; // for v0.6\n connectReq.once('response', onResponse); // for v0.6\n connectReq.once('upgrade', onUpgrade); // for v0.6\n connectReq.once('connect', onConnect); // for v0.7 or later\n connectReq.once('error', onError);\n connectReq.end();\n\n function onResponse(res) {\n // Very hacky. This is necessary to avoid http-parser leaks.\n res.upgrade = true;\n }\n\n function onUpgrade(res, socket, head) {\n // Hacky.\n process.nextTick(function() {\n onConnect(res, socket, head);\n });\n }\n\n function onConnect(res, socket, head) {\n connectReq.removeAllListeners();\n socket.removeAllListeners();\n\n if (res.statusCode !== 200) {\n debug('tunneling socket could not be established, statusCode=%d',\n res.statusCode);\n socket.destroy();\n var error = new Error('tunneling socket could not be established, ' +\n 'statusCode=' + res.statusCode);\n error.code = 'ECONNRESET';\n options.request.emit('error', error);\n self.removeSocket(placeholder);\n return;\n }\n if (head.length > 0) {\n debug('got illegal response body from proxy');\n socket.destroy();\n var error = new Error('Line truncated
"mappings": "koBAAA,IAAAA,IAAAC,EAAAC,IAAA,cAEA,IAAIC,IAAM,QAAQ,KAAK,EACnBC,IAAM,QAAQ,KAAK,EACnBC,GAAO,QAAQ,MAAM,EACrBC,IAAQ,QAAQ,OAAO,EACvBC,IAAS,QAAQ,QAAQ,EACzBC,IAAS,QAAQ,QAAQ,EACzBC,IAAO,QAAQ,MAAM,EAGzBP,GAAQ,aAAeQ,IACvBR,GAAQ,cAAgBS,IACxBT,GAAQ,cAAgBU,IACxBV,GAAQ,eAAiBW,IAGzB,SAASH,IAAaI,EAAS,CAC7B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUV,GAAK,QACdU,CACT,CAEA,SAASJ,IAAcG,EAAS,CAC9B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUV,GAAK,QACrBU,EAAM,aAAeE,IACrBF,EAAM,YAAc,IACbA,CACT,CAEA,SAASH,IAAcE,EAAS,CAC9B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUT,IAAM,QACfS,CACT,CAEA,SAASF,IAAeC,EAAS,CAC/B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUT,IAAM,QACtBS,EAAM,aAAeE,IACrBF,EAAM,YAAc,IACbA,CACT,CAGA,SAASC,GAAeF,EAAS,CAC/B,IAAII,EAAO,KACXA,EAAK,QAAUJ,GAAW,CAAC,EAC3BI,EAAK,aAAeA,EAAK,QAAQ,OAAS,CAAC,EAC3CA,EAAK,WAAaA,EAAK,QAAQ,YAAcb,GAAK,MAAM,kBACxDa,EAAK,SAAW,CAAC,EACjBA,EAAK,QAAU,CAAC,EAEhBA,EAAK,GAAG,OAAQ,SAAgBC,EAAQC,EAAMC,EAAMC,EAAc,CAEhE,QADIR,EAAUS,IAAUH,EAAMC,EAAMC,CAAY,EACvCE,EAAI,EAAGC,EAAMP,EAAK,SAAS,OAAQM,EAAIC,EAAK,EAAED,EAAG,CACxD,IAAIE,EAAUR,EAAK,SAASM,CAAC,EAC7B,GAAIE,EAAQ,OAASZ,EAAQ,MAAQY,EAAQ,OAASZ,EAAQ,KAAM,CAGlEI,EAAK,SAAS,OAAOM,EAAG,CAAC,EACzBE,EAAQ,QAAQ,SAASP,CAAM,EAC/B,MACF,CACF,CACAA,EAAO,QAAQ,EACfD,EAAK,aAAaC,CAAM,CAC1B,CAAC,CACH,CACAV,IAAK,SAASO,GAAgBT,IAAO,YAAY,EAEjDS,GAAe,UAAU,WAAa,SAAoBW,EAAKP,EAAMC,EAAMC,EAAc,CACvF,IAAIJ,EAAO,KACPJ,EAAUc,GAAa,CAAC,QAASD,CAAG,EAAGT,EAAK,QAASK,IAAUH,EAAMC,EAAMC,CAAY,CAAC,EAE5F,GAAIJ,EAAK,QAAQ,QAAU,KAAK,WAAY,CAE1CA,EAAK,SAAS,KAAKJ,CAAO,EAC1B,MACF,CAGAI,EAAK,aAAaJ,EAAS,SAASK,EAAQ,CAC1CA,EAAO,GAAG,OAAQU,CAAM,EACxBV,EAAO,GAAG,QAASW,CAAe,EAClCX,EAAO,GAAG,cAAeW,CAAe,EACxCH,EAAI,SAASR,CAAM,EAEnB,SAASU,GAAS,CAChBX,EAAK,KAAK,OAAQC,EAAQL,CAAO,CACnC,CAEA,SAASgB,EAAgBC,EAAK,CAC5Bb,EAAK,aAAaC,CAAM,EACxBA,EAAO,eAAe,OAAQU,CAAM,EACpCV,EAAO,eAAe,QAASW,CAAe,EAC9CX,EAAO,eAAe,cAAeW,CAAe,CACtD,CACF,CAAC,CACH,EAEAd,GAAe,UAAU,aAAe,SAAsBF,EAASkB,EAAI,CACzE,IAAId,EAAO,KACPe,EAAc,CAAC,EACnBf,EAAK,QAAQ,KAAKe,CAAW,EAE7B,IAAIC,EAAiBN,GAAa,CAAC,EAAGV,EAAK,aAAc,CACvD,OAAQ,UACR,KAAMJ,EAAQ,KAAO,IAAMA,EAAQ,KACnC,MAAO,GACP,QAAS,CACP,KAAMA,EAAQ,KAAO,IAAMA,EAAQ,IACrC,CACF,CAAC,EACGA,EAAQ,eACVoB,EAAe,aAAepB,EAAQ,cAEpCoB,EAAe,YACjBA,EAAe,QAAUA,EAAe,SAAW,CAAC,EACpDA,EAAe,QAAQ,qBAAqB,EAAI,SAC5C,IAAI,OAAOA,EAAe,SAAS,EAAE,SAAS,QAAQ,GAG5DC,GAAM,wBAAwB,EAC9B,IAAIC,EAAalB,EAAK,QAAQgB,CAAc,EAC5CE,EAAW,4BAA8B,GACzCA,EAAW,KAAK,WAAYC,CAAU,EACtCD,EAAW,KAAK,UAAWE,CAAS,EACpCF,EAAW,KAAK,UAAWG,CAAS,EACpCH,EAAW,KAAK,QAASI,CAAO,EAChCJ,EAAW,IAAI,EAEf,SAASC,EAAWI,EAAK,CAEvBA,EAAI,QAAU,EAChB,CAEA,SAASH,EAAUG,EAAKtB,EAAQuB,EAAM,CAEpC,QAAQ,SAAS,UAAW,CAC1BH,EAAUE,EAAKtB,EAAQuB,CAAI,CAC7B,CAAC,CACH,CAEA,SAASH,EAAUE,EAAKtB,EAAQuB,EAAM,CAIpC,GAHAN,EAAW,mBAAmB,EAC9BjB,EAAO,mBAAmB,EAEtBsB,EAAI,aAAe,IAAK,CAC1BN,GAAM,2DACJM,EAAI,UAAU,EAChBtB,EAAO,QAAQ,EACf,IAAIwB,EAAQ,IAAI,MAAM,yDACJF,EAAI,UAAU,EAChCE,EAAM,KAAO,aACb7B,EAAQ,QAAQ,KAAK,QAAS6B,CAAK,EACnCzB,EAAK,aAAae,CAAW,EAC7B,MACF,CACA,GAAIS,EAAK,OAAS,EAAG,CACnBP,GAAM,sCAAsC,EAC5ChB,EAAO,QAAQ,EACf,IAAIwB,EAAQ,IAAI,MAAM,sCAAsC,EAC5DA,EAAM,KAAO,aACb7B,EAAQ,QAAQ,KAAK,QAAS6B,CAAK,EACnCzB,EAAK,aAAae,CAAW,EAC7B,MACF,CACA,OAAAE,GAAM,sCAAsC,EAC5CjB,EAAK,QAAQA,EAAK,QAAQ,QAAQe,CAAW,CAAC,EAAId,EAC3Ca,EAAGb,CAAM,CAClB,CAEA,SAASqB,EAAQI,EAAO,CACtBR,EAAW,mBAAmB,EAE9BD,GAAM;AAAA,EACAS,EAAM,QAASA,EAAM,KAAK,EAChC,IAAID,EAAQ,IAAI,MAAM,oDACWC,EAAM,OAAO,EAC9CD,EAAM,KAAO,aACb7B,EAAQ,QAAQ,KAAK,QAAS6B,CAAK,EACnCzB,EAAK,aAAae,CAAW,CAC/B,CACF,EAEAjB,GAAe,UAAU,aAAe,SAAsBG,EAAQ,CACpE,IAAI0B,EAAM,KAAK,QAAQ,QAAQ1B,CAAM,EACrC,GAAI0B,IAAQ,GAGZ,MAAK,QAAQ,OAAOA,EAAK,CAAC,EAE1B,IAAInB,EAAU,KAAK,SAAS,MAAM,EAC9BA,GAGF,KAAK,aAAaA,EAAS,SAASP,EAAQ,CAC1CO,EAAQ,QAAQ,SAASP,CAAM,CACjC,CAAC,EAEL,EAEA,SAASF,IAAmBH,EAASkB,EAAI,CACvC,IAAId,EAAO,KACXF,GAAe,UAAU,aAAa,KAAKE,EAAMJ,EAAS,SAASK,EAAQ,CACzE,IAAI2B,EAAahC,EAAQ,QAAQ,UAAU,MAAM,EAC7CiC,EAAanB,GAAa,CAAC,EAAGV,EAAK,QAAS,CAC9C,OAAQC,EACR,WAAY2B,EAAaA,EAAW,QAAQ,OAAQ,EAAE,EAAIhC,EAAQ,IACpE,CAAC,EAGGkC,EAAe5C,IAAI,QAAQ,EAAG2C,CAAU,EAC5C7B,EAAK,QAAQA,EAAK,QAAQ,QAAQC,CAAM,CAAC,EAAI6B,EAC7ChB,EAAGgB,CAAY,CACjB,CAAC,CACH,CAGA,SAASzB,IAAUH,EAAMC,EAAMC,EAAc,CAC3C,OAAI,OAAOF,GAAS,SACX,CACL,KAAMA,EACN,KAAMC,EACN,aAAcC,CAChB,EAEKF,CACT,CAEA,SAASQ,GAAaqB,EAAQ,CAC5B,QAASzB,EAAI,EAAGC,EAAM,UAAU,OAAQD,EAAIC,EAAK,EAAED,EAAG,CACpD,IAAI0B,EAAY,UAAU1B,CAAC,EAC3B,GAAI,OAAO0B,GAAc,SAEvB,QADIC,EAAO,OAAO,KAAKD,CAAS,EACvBE,EAAI,EAAGC,EAASF,EAAK,OAAQC,EAAIC,EAAQ,EAAED,EAAG,CACrD,IAAIE,EAAIH,EAAKC,CAAC,EACVF,EAAUI,CAAC,IAAM,SACnBL,EAAOK,CAAC,EAAIJ,EAAUI,CAAC,EAE3B,CAEJ,CACA,OAAOL,CACT,CAGA,IAAId,GACA,QAAQ,IAAI,YAAc,aAAa,KAAK,QAAQ,IAAI,UAAU,EACpEA,GAAQ,UAAW,CACjB,IAAIoB,EAAO,MAAM,UAAU,MAAM,KAAK,SAAS,EAC3C,OAAOA,EAAK,CAAC,GAAM,SACrBA,EAAK,CAAC,EAAI,WAAaA,EAAK,CAAC,EAE7BA,EAAK,QAAQ,SAAS,EAExB,QAAQ,MAAM,MAAM,QAASA,CAAI,CACnC,EAEApB,GAAQ,UAAW,CAAC,EAEtBjC,GAAQ,MAAQiC,KCvQhB,IAAAqB,GAAAC,EAAA,CAAAC,IAAAC,MAAA,CAAAA,IAAO,QAAU,QCAjB,IAAAC,GAAAC,EAAA,CAAAC,IAAAC,MAAA,CAAAA,IAAO,QAAU,CACf,OAAQ,OAAO,OAAO,EACtB,SAAU,OAAO,SAAS,EAC1B,UAAW,OAAO,UAAU,EAC5B,KAAM,OAAO,KAAK,EAClB,SAAULine truncated
"names": ["require_tunnel", "__commonJSMin", "exports", "net", "tls", "http", "https", "events", "assert", "util", "httpOverHttp", "httpsOverHttp", "httpOverHttps", "httpsOverHttps", "options", "agent", "TunnelingAgent", "createSecureSocket", "self", "socket", "host", "port", "localAddress", "toOptions", "i", "len", "pending", "req", "mergeOptions", "onFree", "onCloseOrRemove", "err", "cb", "placeholder", "connectOptions", "debug", "connectReq", "onResponse", "onUpgrade", "onConnect", "onError", "res", "head", "error", "cause", "pos", "hostHeader", "tlsOptions", "secureSocket", "target", "overrides", "keys", "j", "keyLen", "k", "args", "require_tunnel", "__commonJSMin", "exports", "module", "require_symbols", "__commonJSMin", "exports", "module", "require_errors", "__commonJSMin", "exports", "module", "kUndiciError", "UndiciError", "message", "instance", "kConnectTimeoutError", "ConnectTimeoutError", "kHeadersTimeoutError", "HeadersTimeoutError", "kHeadersOverflowError", "HeadersOverflowError", "kBodyTimeoutError", "BodyTimeoutError", "kResponseStatusCodeError", "ResponseStatusCodeError", "statusCode", "headers", "body", "kInvalidArgumentError", "InvalidArgumentError", "kInvalidReturnValueError", "InvalidReturnValueError", "kAbortError", "AbortError", "kRequestAbortedError", "RequestAbortedError", "kInformationalError", "InformationalError", "kRequestContentLengthMismatchError", "RequestContentLengthMismatchError", "kResponseContentLengthMismatchError", "ResponseContentLengthMismatchError", "kClientDestroyedError", "ClientDestroyedError", "kClientClosedError", "ClientClosedError", "kSocketError", "SocketError", "socket", "kNotSupportedError", "NotSupportedError", "kBalancedPoolMissingUpstreamError", "BalancedPoolMissingUpstreamError", "kHTTPParserError", "HTTPParserError", "code", "data", "kResponseExceededMaxSizeError", "ResponseExceededMaxSizeError", "kRequestRetryError", "RequestRetryError", "kResponseError", "ResponseError", "kSecureProxyConnectionError", "SecureProxyConnectionError", "cause", "options", "kMessageSizeExceededError", "MessageSizeExceededError", "require_constants", "__commonJSMin", "exports", "module", "headerNameLowerCasedRecord", "wellknownHeaderNames", "i", "key", "lowerCasedKey", "require_tree", "__commonJSMin", "exports", "module", "wellknownHeaderNames", "headerNameLowerCasedRecord", "TstNode", "_TstNode", "key", "value", "index", "length", "node", "code", "keylength", "TernarySearchTree", "tree", "i", "require_util", "__commonJSMin", "exports", "module", "assert", "kDestroyed", "kBodyUsed", "kListeners", "kBody", "IncomingMessage", "stream", "net", "Blob", "nodeUtil", "stringify", "EE", "InvalidArgumentError", "headerNameLowerCasedRecord", "tree", "nodeMajor", "nodeMinor", "v", "BodyAsyncIterable", "body", "wrapRequestBody", "isStream", "bodyLength", "isIterable", "nop", "obj", "isBlobLike", "object", "sTag", "buildURL", "url", "queryParams", "stringified", "isValidPort", "port", "value", "isHttpOrHttpsPrefixed", "parseURL", "origin", "path", "parseOrigin", "getHostname", "host", "idx", "getServerName", "servername", "deepClone", "isAsyncIterable", "state", "isBuffer", "isDestroyed", "destroy", "err", "KEEPALIVE_TIMEOUT_EXPR", "parseKeepAliveTimeout", "val", "m", "headerNameToString", "bufferToLowerCasedHeaderName", "parseHeaders", "headers", "i", "key", "headersValue", "x", "parseRawHeaders", "len", "ret", "hasContentLength", "contentDispositionIdx", "kLen", "n", "buffer", "validateHandler", "handler", "method", "upgrade", "isDisturbed", "isErrored", "isReadable", "getSocketInfo", "socket", "ReadableStreamFrom", "iterable", "iterator", "controller", "done", "buf", "reason", "isFormDataLike", "addAbortListener", "signal", "listener", "hasToWellFormed", "hasIsWellFormed", "toUSVString", "isUSVString", "isTokenCharCode", "c", "isValidHTTPToken", "characters", "headerCharRegex", "isValidHeaderValue", "parseRangeHeader", "range", "addListener", "name", "removeAllListeners", "errorRequest", "client", "request", "kEnumerableProperty", "normalizedMethodRecordsBase", "normalizedMethodRecords", "require_diagnostics", "__commonJSMin", "exports", "module", "diagnosticsChannel", "util", "undiciDebugLog", "fetchDebuglog", "websocketDebuglog", "isClientSet", "channels", "debuglog", "evt", "version", "protocol", "port", "host", "error", "method", "path", "origin", "statusCode", "address", "websocket", "code", "reason", "err", "require_request", "__commonJSMin", "exports", "module", "InvalidArgumentError", "NotSupportedError", "assert", "isValidHTTPToken", "isValidHeaderValue", "isStream", "destroy", "isBuffer", "isFormDataLike", "isIterable", "isBlobLike", "buildURL", "validateHandler", "getServerName", "normalizedMethodRecords", "channels", "headerNameLowerCasedRecord", "invalidPathRegex", "kHandler", "Request", "origin", "path", "method", "body", "headers", "query", "idempotent", "blocking", "upgrade", "headersTimeout", "bodyTimeout", "reset", "throwOnError", "expectContinue", "servername",Line truncated
}
Generated Vendored
+284 -2
View File
@@ -218,7 +218,7 @@ Apache License
The following npm package may be included in this product:
- @docker/actions-toolkit@0.87.0
- @docker/actions-toolkit@0.90.0
This package contains the following license:
@@ -456,6 +456,13 @@ The following npm packages may be included in this product:
- @pkgjs/parseargs@0.11.0
- b4a@1.6.6
- bare-events@2.2.2
- bare-events@2.8.3
- bare-fs@4.7.1
- bare-os@3.9.1
- bare-stream@2.13.1
- bare-url@2.4.3
- events-universal@1.0.1
- text-decoder@1.2.7
These packages each contain the following license:
@@ -663,6 +670,247 @@ Apache License
-----------
The following npm package may be included in this product:
- bare-path@3.0.0
This package contains the following license:
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction,
and distribution as defined by Sections 1 through 9 of this document.
"Licensor" shall mean the copyright owner or entity authorized by
the copyright owner that is granting the License.
"Legal Entity" shall mean the union of the acting entity and all
other entities that control, are controlled by, or are under common
control with that entity. For the purposes of this definition,
"control" means (i) the power, direct or indirect, to cause the
direction or management of such entity, whether by contract or
otherwise, or (ii) ownership of fifty percent (50%) or more of the
outstanding shares, or (iii) beneficial ownership of such entity.
"You" (or "Your") shall mean an individual or Legal Entity
exercising permissions granted by this License.
"Source" form shall mean the preferred form for making modifications,
including but not limited to software source code, documentation
source, and configuration files.
"Object" form shall mean any form resulting from mechanical
transformation or translation of a Source form, including but
not limited to compiled object code, generated documentation,
and conversions to other media types.
"Work" shall mean the work of authorship, whether in Source or
Object form, made available under the License, as indicated by a
copyright notice that is included in or attached to the work
(an example is provided in the Appendix below).
"Derivative Works" shall mean any work, whether in Source or Object
form, that is based on (or derived from) the Work and for which the
editorial revisions, annotations, elaborations, or other modifications
represent, as a whole, an original work of authorship. For the purposes
of this License, Derivative Works shall not include works that remain
separable from, or merely link (or bind by name) to the interfaces of,
the Work and Derivative Works thereof.
"Contribution" shall mean any work of authorship, including
the original version of the Work and any modifications or additions
to that Work or Derivative Works thereof, that is intentionally
submitted to Licensor for inclusion in the Work by the copyright owner
or by an individual or Legal Entity authorized to submit on behalf of
the copyright owner. For the purposes of this definition, "submitted"
means any form of electronic, verbal, or written communication sent
to the Licensor or its representatives, including but not limited to
communication on electronic mailing lists, source code control systems,
and issue tracking systems that are managed by, or on behalf of, the
Licensor for the purpose of discussing and improving the Work, but
excluding communication that is conspicuously marked or otherwise
designated in writing by the copyright owner as "Not a Contribution."
"Contributor" shall mean Licensor and any individual or Legal Entity
on behalf of whom a Contribution has been received by Licensor and
subsequently incorporated within the Work.
2. Grant of Copyright License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
copyright license to reproduce, prepare Derivative Works of,
publicly display, publicly perform, sublicense, and distribute the
Work and such Derivative Works in Source or Object form.
3. Grant of Patent License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
(except as stated in this section) patent license to make, have made,
use, offer to sell, sell, import, and otherwise transfer the Work,
where such license applies only to those patent claims licensable
by such Contributor that are necessarily infringed by their
Contribution(s) alone or by combination of their Contribution(s)
with the Work to which such Contribution(s) was submitted. If You
institute patent litigation against any entity (including a
cross-claim or counterclaim in a lawsuit) alleging that the Work
or a Contribution incorporated within the Work constitutes direct
or contributory patent infringement, then any patent licenses
granted to You under this License for that Work shall terminate
as of the date such litigation is filed.
4. Redistribution. You may reproduce and distribute copies of the
Work or Derivative Works thereof in any medium, with or without
modifications, and in Source or Object form, provided that You
meet the following conditions:
(a) You must give any other recipients of the Work or
Derivative Works a copy of this License; and
(b) You must cause any modified files to carry prominent notices
stating that You changed the files; and
(c) You must retain, in the Source form of any Derivative Works
that You distribute, all copyright, patent, trademark, and
attribution notices from the Source form of the Work,
excluding those notices that do not pertain to any part of
the Derivative Works; and
(d) If the Work includes a "NOTICE" text file as part of its
distribution, then any Derivative Works that You distribute must
include a readable copy of the attribution notices contained
within such NOTICE file, excluding those notices that do not
pertain to any part of the Derivative Works, in at least one
of the following places: within a NOTICE text file distributed
as part of the Derivative Works; within the Source form or
documentation, if provided along with the Derivative Works; or,
within a display generated by the Derivative Works, if and
wherever such third-party notices normally appear. The contents
of the NOTICE file are for informational purposes only and
do not modify the License. You may add Your own attribution
notices within Derivative Works that You distribute, alongside
or as an addendum to the NOTICE text from the Work, provided
that such additional attribution notices cannot be construed
as modifying the License.
You may add Your own copyright statement to Your modifications and
may provide additional or different license terms and conditions
for use, reproduction, or distribution of Your modifications, or
for any such Derivative Works as a whole, provided Your use,
reproduction, and distribution of the Work otherwise complies with
the conditions stated in this License.
5. Submission of Contributions. Unless You explicitly state otherwise,
any Contribution intentionally submitted for inclusion in the Work
by You to the Licensor shall be under the terms and conditions of
this License, without any additional terms or conditions.
Notwithstanding the above, nothing herein shall supersede or modify
the terms of any separate license agreement you may have executed
with Licensor regarding such Contributions.
6. Trademarks. This License does not grant permission to use the trade
names, trademarks, service marks, or product names of the Licensor,
except as required for reasonable and customary use in describing the
origin of the Work and reproducing the content of the NOTICE file.
7. Disclaimer of Warranty. Unless required by applicable law or
agreed to in writing, Licensor provides the Work (and each
Contributor provides its Contributions) on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied, including, without limitation, any warranties or conditions
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
PARTICULAR PURPOSE. You are solely responsible for determining the
appropriateness of using or redistributing the Work and assume any
risks associated with Your exercise of permissions under this License.
8. Limitation of Liability. In no event and under no legal theory,
whether in tort (including negligence), contract, or otherwise,
unless required by applicable law (such as deliberate and grossly
negligent acts) or agreed to in writing, shall any Contributor be
liable to You for damages, including any direct, indirect, special,
incidental, or consequential damages of any character arising as a
result of this License or out of the use or inability to use the
Work (including but not limited to damages for loss of goodwill,
work stoppage, computer failure or malfunction, or any and all
other commercial damages or losses), even if such Contributor
has been advised of the possibility of such damages.
9. Accepting Warranty or Additional Liability. While redistributing
the Work or Derivative Works thereof, You may choose to offer,
and charge a fee for, acceptance of support, warranty, indemnity,
or other liability obligations and/or rights consistent with this
License. However, in accepting such obligations, You may act only
on Your own behalf and on Your sole responsibility, not on behalf
of any other Contributor, and only if You agree to indemnify,
defend, and hold each Contributor harmless for any liability
incurred by, or claims asserted against, such Contributor by reason
of your accepting any such warranty or additional liability.
END OF TERMS AND CONDITIONS
APPENDIX: How to apply the Apache License to your work.
To apply the Apache License to your work, attach the following
boilerplate notice, with the fields enclosed by brackets "[]"
replaced with your own identifying information. (Don't include
the brackets!) The text should be enclosed in the appropriate
comment syntax for the file format. We also recommend that a
file or class name and description of purpose be included on the
same "printed page" as the copyright notice for easier
identification within third-party archives.
Copyright [yyyy] [name of copyright owner]
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
With the following notices:
Copyright 2023 Holepunch Inc
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
---
Copyright Joyent, Inc. and other Node contributors.
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to permit
persons to whom the Software is furnished to do so, subject to the
following conditions:
The above copyright notice and this permission notice shall be included
in all copies or substantial portions of the Software.
-----------
The following npm package may be included in this product:
- readdir-glob@1.1.3
@@ -2284,6 +2532,7 @@ The following npm packages may be included in this product:
- @actions/http-client@3.0.2
- @actions/http-client@4.0.0
- @actions/http-client@4.0.1
These packages each contain the following license:
@@ -4445,7 +4694,7 @@ The following npm packages may be included in this product:
- once@1.4.0
- semver@7.6.0
- semver@7.7.3
- semver@7.7.4
- semver@7.8.0
- which@2.0.2
- wrappy@1.0.2
- yallist@4.0.0
@@ -4772,6 +5021,7 @@ The following npm packages may be included in this product:
- pump@2.0.1
- pumpify@1.5.1
- tar-stream@3.1.7
- tar-stream@3.2.0
These packages each contain the following license:
@@ -5043,6 +5293,7 @@ The following npm packages may be included in this product:
- fast-fifo@1.3.2
- streamx@2.16.1
- streamx@2.25.0
These packages each contain the following license:
@@ -5070,6 +5321,36 @@ THE SOFTWARE.
-----------
The following npm package may be included in this product:
- teex@1.0.1
This package contains the following license:
The MIT License (MIT)
Copyright (c) 2020 Mathias Buus
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
-----------
The following npm packages may be included in this product:
- @azure/abort-controller@1.1.0
@@ -5301,6 +5582,7 @@ The following npm packages may be included in this product:
- @actions/core@3.0.1
- @actions/exec@3.0.0
- @actions/github@9.0.0
- @actions/github@9.1.1
- @actions/glob@0.6.1
- @actions/io@3.0.2
- @actions/tool-cache@4.0.0