[dependabot skip] chore: update generated content

This commit is contained in:
github-actions[bot] committed 2026-09-29 05:34:32 +00:00
1 parent e1a80fc20b
commit ca01834676
3 files changed
+106 -106

No files matched your search

Generated Vendored
+102 -102
View File
@@ -1,8 +1,8 @@
var WIe=Object.create;var Az=Object.defineProperty;var xIe=Object.getOwnPropertyDescriptor;var TIe=Object.getOwnPropertyNames;var vIe=Object.getPrototypeOf,LIe=Object.prototype.hasOwnProperty;var i=(t,e)=>Az(t,"name",{value:e,configurable:!0});var h=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),QIe=(t,e)=>{for(var r in e)Az(t,r,{get:e[r],enumerable:!0})},_Ie=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of TIe(e))!LIe.call(t,o)&&o!==r&&Az(t,o,{get:()=>e[o],enumerable:!(n=xIe(e,o))||n.enumerable});return t};var w=(t,e,r)=>(r=t!=null?WIe(vIe(t)):{},_Ie(e||!t||!t.__esModule?Az(r,"default",{value:t,enumerable:!0}):r,t));var $9=h(lA=>{"use strict";var CB0=require("net"),XIe=require("tls"),rI=require("http"),V9=require("https"),VIe=require("events"),yB0=require("assert"),YIe=require("util");lA.httpOverHttp=JIe;lA.httpsOverHttp=$Ie;lA.httpOverHttps=jIe;lA.httpsOverHttps=KIe;function JIe(t){var e=new gi(t);return e.request=rI.request,e}i(JIe,"httpOverHttp");function $Ie(t){var e=new gi(t);return e.request=rI.request,e.createSocket=Y9,e.defaultPort=443,e}i($Ie,"httpsOverHttp");function jIe(t){var e=new gi(t);return e.request=V9.request,e}i(jIe,"httpOverHttps");function KIe(t){var e=new gi(t);return e.request=V9.request,e.createSocket=Y9,e.defaultPort=443,e}i(KIe,"httpsOverHttps");function gi(t){var e=this;e.options=t||{},e.proxyOptions=e.options.proxy||{},e.maxSockets=e.options.maxSockets||rI.Agent.defaultMaxSockets,e.requests=[],e.sockets=[],e.on("free",i(function(n,o,s,a){for(var c=J9(o,s,a),u=0,p=e.requests.length;u<p;++u){var A=e.requests[u];if(A.host===c.host&&A.port===c.port){e.requests.splice(u,1),A.request.onSocket(n);return}}n.destroy(),e.removeSocket(n)},"onFree"))}i(gi,"TunnelingAgent");YIe.inherits(gi,VIe.EventEmitter);gi.prototype.addRequest=i(function(e,r,n,o){var s=this,a=nI({request:e},s.options,J9(r,n,o));if(s.sockets.length>=this.maxSockets){s.requests.push(a);return}s.createSocket(a,function(c){c.on("free",u),c.on("close",p),c.on("agentRemove",p),e.onSocket(c);function u(){s.emit("free",c,a)}i(u,"onFree");function p(A){s.removeSocket(c),c.removeListener("free",u),c.removeListener("close",p),c.removeListener("agentRemove",p)}i(p,"onCloseOrRemove")})},"addRequest");gi.prototype.createSocket=i(function(e,r){var n=this,o={};n.sockets.push(o);var s=nI({},n.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")),wa("making CONNECT request");var a=n.request(s);a.useChunkedEncodingByDefault=!1,a.once("response",c),a.once("upgrade",u),a.once("connect",p),a.once("error",A),a.end();function c(l){l.upgrade=!0}i(c,"onResponse");function u(l,b,M){process.nextTick(function(){p(l,b,M)})}i(u,"onUpgrade");function p(l,b,M){if(a.removeAllListeners(),b.removeAllListeners(),l.statusCode!==200){wa("tunneling socket could not be established, statusCode=%d",l.statusCode),b.destroy();var z=new Error("tunneling socket could not be established, statusCode="+l.statusCode);z.code="ECONNRESET",e.request.emit("error",z),n.removeSocket(o);return}if(M.length>0){wa("got illegal response body from proxy"),b.destroy();var z=new Error("got illegal response body from proxy");z.code="ECONNRESET",e.request.emit("error",z),n.removeSocket(o);return}return wa("tunneling connection has established"),n.sockets[n.sockets.indexOf(o)]=b,r(b)}i(p,"onConnect");function A(l){a.removeAllListeners(),wa(`tunneling socket could not be established, cause=%s
`,l.message,l.stack);var b=new Error("tunneling socket could not be established, cause="+l.message);b.code="ECONNRESET",e.request.emit("error",b),n.removeSocket(o)}i(A,"onError")},"createSocket");gi.prototype.removeSocket=i(function(e){var r=this.sockets.indexOf(e);if(r!==-1){this.sockets.splice(r,1);var n=this.requests.shift();n&&this.createSocket(n,function(o){n.request.onSocket(o)})}},"removeSocket");function Y9(t,e){var r=this;gi.prototype.createSocket.call(r,t,function(n){var o=t.request.getHeader("host"),s=nI({},r.options,{socket:n,servername:o?o.replace(/:.*$/,""):t.host}),a=XIe.connect(0,s);r.sockets[r.sockets.indexOf(n)]=a,e(a)})}i(Y9,"createSecureSocket");function J9(t,e,r){return typeof t=="string"?{host:t,port:e,localAddress:r}:t}i(J9,"toOptions");function nI(t){for(var e=1,r=arguments.length;e<r;++e){var n=arguments[e];if(typeof n=="object")for(var o=Object.keys(n),s=0,a=o.length;s<a;++s){var c=o[s];n[c]!==void 0&&(t[c]=n[c])}}return t}i(nI,"mergeOptions");var wa;process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)?wa=i(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)},"debug"):wa=i(function(){},"debug");lA.debug=wa});var Yd=h((DB0,j9)=>{j9.exports=$9()});var k0=h((IB0,K9)=>{K9.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 i0=h((RB0,CU)=>{"use strict";var Z9=Symbol.for("undici.error.UND_ERR"),U0=class extends Error{static{i(this,"UndiciError")}constructor(e){super(e),this.name="UndiciError",this.code="UND_ERR"}static[Symbol.hasInstance](e){return e&&e[Z9]===!0}[Z9]=!0},eU=Symbol.for("undici.error.UND_ERR_CONNECT_TIMEOUT"),oI=class extends U0{static{i(this,"ConnectTimeoutError")}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[eU]===!0}[eU]=!0},tU=Symbol.for("undici.error.UND_ERR_HEADERS_TIMEOUT"),sI=class extends U0{static{i(this,"HeadersTimeoutError")}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[tU]===!0}[tU]=!0},rU=Symbol.for("undici.error.UND_ERR_HEADERS_OVERFLOW"),iI=class extends U0{static{i(this,"HeadersOverflowError")}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[rU]===!0}[rU]=!0},nU=Symbol.for("undici.error.UND_ERR_BODY_TIMEOUT"),aI=class extends U0{static{i(this,"BodyTimeoutError")}constructor(e){super(e),this.name="BodyTimeoutError",this.message=e||"Body Timeout Error",this.code="UND_ERR_BODY_TIMEOUT" Line truncated
`)||t.includes("\r")||t.includes("\0"))===!1}i(TG,"isValidHeaderValue");function bNe(t,e){let{headersList:r}=e,n=(r.get("referrer-policy",!0)??"").split(","),o="";if(n.length>0)for(let s=n.length;s!==0;s--){let a=n[s-1].trim();if(KRe.has(a)){o=a;break}}o!==""&&(t.referrerPolicy=o)}i(bNe,"setRequestReferrerPolicyOnRedirect");function fNe(){return"allowed"}i(fNe,"crossOriginResourcePolicyCheck");function MNe(){return"success"}i(MNe,"corsCheck");function hNe(){return"success"}i(hNe,"TAOCheck");function mNe(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}i(mNe,"appendFetchMetadata");function zNe(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&&ZI(t.origin)&&!ZI(ob(t))&&(e=null);break;case"same-origin":Tz(t,ob(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}i(zNe,"appendRequestOriginHeader");function EA(t,e){return t}i(EA,"coarsenTime");function gNe(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:EA(t.domainLookupStartTime,r),domainLookupEndTime:EA(t.domainLookupEndTime,r),connectionStartTime:EA(t.connectionStartTime,r),connectionEndTime:EA(t.connectionEndTime,r),secureConnectionStartTime:EA(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}i(gNe,"clampAndCoarsenConnectionTimingInfo");function ONe(t){return EA(nNe.now(),t)}i(ONe,"coarsenedSharedCurrentTime");function ENe(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}}i(ENe,"createOpaqueTimingInfo");function vG(){return{referrerPolicy:"strict-origin-when-cross-origin"}}i(vG,"makePolicyContainer");function CNe(t){return{referrerPolicy:t.referrerPolicy}}i(CNe,"clonePolicyContainer");function yNe(t){let e=t.referrerPolicy;ru(e);let r=null;if(t.referrer==="client"){let c=wG();if(!c||c.origin==="null")return"no-referrer";r=new URL(c)}else t.referrer instanceof URL&&(r=t.referrer);let n=KI(r),o=KI(r,!0);n.toString().length>4096&&(n=o);let s=Tz(t,n),a=nb(n)&&!nb(t.url);switch(e){case"origin":return o??KI(r,!0);case"unsafe-url":return n;case"same-origin":return s?o:"no-referrer";case"origin-when-cross-origin":return s?n:o;case"strict-origin-when-cross-origin":{let c=ob(t);return Tz(n,c)?n:nb(n)&&!nb(c)?"no-referrer":o}default:return a?"no-referrer":o}}i(yNe,"determineRequestsReferrer");function KI(t,e){return ru(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)}i(KI,"stripURLForReferrer");function nb(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 n=new URL(r);return!!(n.protocol==="https:"||n.protocol==="wss:"||/^127(?:\.[0-9]+){0,2}\.[0-9]+$|^\[(?:0*:)*?:?0*1\]$/.test(n.hostname)||n.hostname==="localhost"||n.hostname.includes("localhost.")||n.hostname.endsWith(".localhost"))}}i(nb,"isURLPotentiallyTrustworthy");function BNe(t,e){if(xz===void 0)return!0;let r=LG(e);if(r==="no metadata"||r.length===0)return!0;let n=DNe(r),o=INe(r,n);for(let s of o){let a=s.algo,c=s.hash,u=xz.createHash(a).update(t).digest("base64");if(u[u.length-1]==="="&&(u[u.length-2]==="="?u=u.slice(0,-2):u=u.slice(0,-1)),RNe(u,c))return!0}return!1}i(BNe,"bytesMatch");var qNe=/(?<algo>sha256|sha384|sha512)-((?<hash>[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;function LG(t){let e=[],r=!0;for(let n of t.split(" ")){r=!1;let o=qNe.exec(n);if(o===null||o.groups===void 0||o.groups.algo===void 0)continue;let s=o.groups.algo.toLowerCase();FG.includes(s)&&e.push(o.groups)}return r===!0?"no metadata":e}i(LG,"parseMetadata");function DNe(t){let e=t[0].algo;if(e[3]==="5")return e;for(let r=1;r<t.length;++r){let n=t[r];if(n.algo[3]==="5"){e="sha512";break}else{if(e[3]==="3")continue;n.algo[3]==="3"&&(e="sha384")}}return e}i(DNe,"getStrongestMetadata");function INe(t,e){if(t.length===1)return t;let r=0;for(let n=0;n<t.length;++n)t[n].algo===e&&(t[r++]=t[n]);return t.length=r,t}i(INe,"filterMetadataListByAlgorithm");function RNe(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}i(RNe,"compareBase64Mixed");function NNe(t){}i(NNe,"tryUpgradeReque Line truncated
`);function lwe(t){for(let e=0;e<t.length;++e)if((t.charCodeAt(e)&-128)!==0)return!1;return!0}i(lwe,"isAsciiString");function dwe(t){let e=t.length;if(e<27||e>70)return!1;for(let r=0;r<e;++r){let n=t.charCodeAt(r);if(!(n>=48&&n<=57||n>=65&&n<=90||n>=97&&n<=122||n===39||n===45||n===95))return!1}return!0}i(dwe,"validateBoundary");function bwe(t,e){Lz(e!=="failure"&&e.essence==="multipart/form-data");let r=e.parameters.get("boundary");if(r===void 0)return"failure";let n=Buffer.from(`--${r}`,"utf8"),o=[],s={position:0};for(;t[s.position]===13&&t[s.position+1]===10;)s.position+=2;let a=t.length;for(;t[a-1]===10&&t[a-2]===13;)a-=2;for(a!==t.length&&(t=t.subarray(0,a));;){if(t.subarray(s.position,s.position+n.length).equals(n))s.position+=n.length;else return"failure";if(s.position===t.length-2&&Qz(t,pwe,s)||s.position===t.length-4&&Qz(t,Awe,s))return o;if(t[s.position]!==13||t[s.position+1]!==10)return"failure";s.position+=2;let c=fwe(t,s);if(c==="failure")return"failure";let{name:u,filename:p,contentType:A,encoding:l}=c;s.position+=2;let b;{let z=t.indexOf(n.subarray(2),s.position);if(z===-1)return"failure";b=t.subarray(s.position,z-4),s.position+=b.length,l==="base64"&&(b=Buffer.from(b.toString(),"base64"))}if(t[s.position]!==13||t[s.position+1]!==10)return"failure";s.position+=2;let M;p!==null?(A??="text/plain",lwe(A)||(A=""),M=new cwe([b],p,{type:A})):M=nwe(Buffer.from(b)),Lz(jG(u)),Lz(typeof M=="string"&&jG(M)||swe(M)),o.push(iwe(u,M,p))}}i(bwe,"multipartFormDataParser");function fwe(t,e){let r=null,n=null,o=null,s=null;for(;;){if(t[e.position]===13&&t[e.position+1]===10)return r===null?"failure":{name:r,filename:n,contentType:o,encoding:s};let a=yA(c=>c!==10&&c!==13&&c!==58,t,e);if(a=i5(a,!0,!0,c=>c===9||c===32),!owe.test(a.toString())||t[e.position]!==58)return"failure";switch(e.position++,yA(c=>c===32||c===9,t,e),rwe(a)){case"content-disposition":{if(r=n=null,!Qz(t,uwe,e)||(e.position+=17,r=eH(t,e),r===null))return"failure";if(Qz(t,ZG,e)){let c=e.position+ZG.length;if(t[c]===42&&(e.position+=1,c+=1),t[c]!==61||t[c+1]!==34||(e.position+=12,n=eH(t,e),n===null))return"failure"}break}case"content-type":{let c=yA(u=>u!==10&&u!==13,t,e);c=i5(c,!1,!0,u=>u===9||u===32),o=KG(c);break}case"content-transfer-encoding":{let c=yA(u=>u!==10&&u!==13,t,e);c=i5(c,!1,!0,u=>u===9||u===32),s=KG(c);break}default:yA(c=>c!==10&&c!==13,t,e)}if(t[e.position]!==13&&t[e.position+1]!==10)return"failure";e.position+=2}}i(fwe,"parseMultipartFormDataHeaders");function eH(t,e){Lz(t[e.position-1]===34);let r=yA(n=>n!==10&&n!==13&&n!==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)}i(eH,"parseMultipartFormDataName");function yA(t,e,r){let n=r.position;for(;n<e.length&&t(e[n]);)++n;return e.subarray(r.position,r.position=n)}i(yA,"collectASequenceOfBytes");function i5(t,e,r,n){let o=0,s=t.length-1;if(e)for(;o<t.length&&n(t[o]);)o++;if(r)for(;s>0&&n(t[s]);)s--;return o===0&&s===t.length-1?t:t.subarray(o,s+1)}i(i5,"removeChars");function Qz(t,e,r){if(t.length<e.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[r.position+n])return!1;return!0}i(Qz,"bufferStartsWith");tH.exports={multipartFormDataParser:bwe,validateBoundary:dwe}});var DA=h((fq0,lH)=>{"use strict";var ab=He(),{ReadableStreamFrom:Mwe,isBlobLike:nH,isReadableStreamLike:hwe,readableStreamClose:mwe,createDeferredPromise:zwe,fullyReadBody:gwe,extractMimeType:Owe,utf8DecodeBytes:iH}=Rr(),{FormData:oH}=ib(),{kState:qA}=Sa(),{webidl:Ewe}=st(),{Blob:Cwe}=require("node:buffer"),a5=require("node:assert"),{isErrored:aH,isDisturbed:ywe}=require("node:stream"),{isArrayBuffer:Bwe}=require("node:util/types"),{serializeAMimeType:qwe}=Zt(),{multipartFormDataParser:Dwe}=rH(),c5;try{let t=require("node:crypto");c5=i(e=>t.randomInt(0,e),"random")}catch{c5=i(t=>Math.floor(Math.random(t)),"random")}var _z=new TextEncoder;function Iwe(){}i(Iwe,"noop");var cH=globalThis.FinalizationRegistry&&process.version.indexOf("v18")!==0,uH;cH&&(uH=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!ywe(e)&&!aH(e)&&e.cancel("Response object has been garbage collected").catch(Iwe)}));function pH(t,e=!1){let r=null;t instanceof ReadableStream?r=t:nH(t)?r=t.stream():r=new ReadableStream({async pull(u){let p=typeof o=="string"?_z.encode(o):o;p.byteLength&&u.enqueue(p),queueMicrotask(()=>mwe(u))},start(){},type:"bytes"}),a5(hwe(r));let n=null,o=null,s=null,a=null;if(typeof t=="string")o=t,a="text/plain;charset=UTF-8";else if(t instanceof URLSearchParams)o=t.toString(),a="application/x-www-form-urlencoded;charset=UTF-8";else if(Bwe(t))o=new Uint8Array(t.slice());else if(ArrayBuffer.isView(t))o=new Uint8Array(t.buffer.slice(t.byteOffset,t.byteOffset+t.byteLength));else if(ab.isFormDataLike(t)){let u=`----formdata-undici-0${`${c5(1e11)}`.padStart(11,"0")}`,p=`--${u}\r
var TIe=Object.create;var Az=Object.defineProperty;var vIe=Object.getOwnPropertyDescriptor;var LIe=Object.getOwnPropertyNames;var QIe=Object.getPrototypeOf,_Ie=Object.prototype.hasOwnProperty;var i=(t,e)=>Az(t,"name",{value:e,configurable:!0});var h=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),PIe=(t,e)=>{for(var r in e)Az(t,r,{get:e[r],enumerable:!0})},kIe=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of LIe(e))!_Ie.call(t,o)&&o!==r&&Az(t,o,{get:()=>e[o],enumerable:!(n=vIe(e,o))||n.enumerable});return t};var w=(t,e,r)=>(r=t!=null?TIe(QIe(t)):{},kIe(e||!t||!t.__esModule?Az(r,"default",{value:t,enumerable:!0}):r,t));var eU=h(lA=>{"use strict";var SB0=require("net"),YIe=require("tls"),oI=require("http"),j9=require("https"),JIe=require("events"),FB0=require("assert"),$Ie=require("util");lA.httpOverHttp=jIe;lA.httpsOverHttp=KIe;lA.httpOverHttps=ZIe;lA.httpsOverHttps=e5e;function jIe(t){var e=new Oi(t);return e.request=oI.request,e}i(jIe,"httpOverHttp");function KIe(t){var e=new Oi(t);return e.request=oI.request,e.createSocket=K9,e.defaultPort=443,e}i(KIe,"httpsOverHttp");function ZIe(t){var e=new Oi(t);return e.request=j9.request,e}i(ZIe,"httpOverHttps");function e5e(t){var e=new Oi(t);return e.request=j9.request,e.createSocket=K9,e.defaultPort=443,e}i(e5e,"httpsOverHttps");function Oi(t){var e=this;e.options=t||{},e.proxyOptions=e.options.proxy||{},e.maxSockets=e.options.maxSockets||oI.Agent.defaultMaxSockets,e.requests=[],e.sockets=[],e.on("free",i(function(n,o,s,a){for(var c=Z9(o,s,a),u=0,p=e.requests.length;u<p;++u){var A=e.requests[u];if(A.host===c.host&&A.port===c.port){e.requests.splice(u,1),A.request.onSocket(n);return}}n.destroy(),e.removeSocket(n)},"onFree"))}i(Oi,"TunnelingAgent");$Ie.inherits(Oi,JIe.EventEmitter);Oi.prototype.addRequest=i(function(e,r,n,o){var s=this,a=sI({request:e},s.options,Z9(r,n,o));if(s.sockets.length>=this.maxSockets){s.requests.push(a);return}s.createSocket(a,function(c){c.on("free",u),c.on("close",p),c.on("agentRemove",p),e.onSocket(c);function u(){s.emit("free",c,a)}i(u,"onFree");function p(A){s.removeSocket(c),c.removeListener("free",u),c.removeListener("close",p),c.removeListener("agentRemove",p)}i(p,"onCloseOrRemove")})},"addRequest");Oi.prototype.createSocket=i(function(e,r){var n=this,o={};n.sockets.push(o);var s=sI({},n.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")),Ra("making CONNECT request");var a=n.request(s);a.useChunkedEncodingByDefault=!1,a.once("response",c),a.once("upgrade",u),a.once("connect",p),a.once("error",A),a.end();function c(l){l.upgrade=!0}i(c,"onResponse");function u(l,b,M){process.nextTick(function(){p(l,b,M)})}i(u,"onUpgrade");function p(l,b,M){if(a.removeAllListeners(),b.removeAllListeners(),l.statusCode!==200){Ra("tunneling socket could not be established, statusCode=%d",l.statusCode),b.destroy();var z=new Error("tunneling socket could not be established, statusCode="+l.statusCode);z.code="ECONNRESET",e.request.emit("error",z),n.removeSocket(o);return}if(M.length>0){Ra("got illegal response body from proxy"),b.destroy();var z=new Error("got illegal response body from proxy");z.code="ECONNRESET",e.request.emit("error",z),n.removeSocket(o);return}return Ra("tunneling connection has established"),n.sockets[n.sockets.indexOf(o)]=b,r(b)}i(p,"onConnect");function A(l){a.removeAllListeners(),Ra(`tunneling socket could not be established, cause=%s
`,l.message,l.stack);var b=new Error("tunneling socket could not be established, cause="+l.message);b.code="ECONNRESET",e.request.emit("error",b),n.removeSocket(o)}i(A,"onError")},"createSocket");Oi.prototype.removeSocket=i(function(e){var r=this.sockets.indexOf(e);if(r!==-1){this.sockets.splice(r,1);var n=this.requests.shift();n&&this.createSocket(n,function(o){n.request.onSocket(o)})}},"removeSocket");function K9(t,e){var r=this;Oi.prototype.createSocket.call(r,t,function(n){var o=t.request.getHeader("host"),s=sI({},r.options,{socket:n,servername:o?o.replace(/:.*$/,""):t.host}),a=YIe.connect(0,s);r.sockets[r.sockets.indexOf(n)]=a,e(a)})}i(K9,"createSecureSocket");function Z9(t,e,r){return typeof t=="string"?{host:t,port:e,localAddress:r}:t}i(Z9,"toOptions");function sI(t){for(var e=1,r=arguments.length;e<r;++e){var n=arguments[e];if(typeof n=="object")for(var o=Object.keys(n),s=0,a=o.length;s<a;++s){var c=o[s];n[c]!==void 0&&(t[c]=n[c])}}return t}i(sI,"mergeOptions");var Ra;process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)?Ra=i(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)},"debug"):Ra=i(function(){},"debug");lA.debug=Ra});var Vd=h((TB0,tU)=>{tU.exports=eU()});var k0=h((vB0,rU)=>{rU.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 i0=h((LB0,DU)=>{"use strict";var nU=Symbol.for("undici.error.UND_ERR"),U0=class extends Error{static{i(this,"UndiciError")}constructor(e){super(e),this.name="UndiciError",this.code="UND_ERR"}static[Symbol.hasInstance](e){return e&&e[nU]===!0}[nU]=!0},oU=Symbol.for("undici.error.UND_ERR_CONNECT_TIMEOUT"),iI=class extends U0{static{i(this,"ConnectTimeoutError")}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[oU]===!0}[oU]=!0},sU=Symbol.for("undici.error.UND_ERR_HEADERS_TIMEOUT"),aI=class extends U0{static{i(this,"HeadersTimeoutError")}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[sU]===!0}[sU]=!0},iU=Symbol.for("undici.error.UND_ERR_HEADERS_OVERFLOW"),cI=class extends U0{static{i(this,"HeadersOverflowError")}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[iU]===!0}[iU]=!0},aU=Symbol.for("undici.error.UND_ERR_BODY_TIMEOUT"),uI=class extends U0{static{i(this,"BodyTimeoutError")}constructor(e){super(e),this.name="BodyTimeoutError",this.message=e||"Body Timeout Error",this.code="UND_ERR_BODY_TIMEOUT" Line truncated
`)||t.includes("\r")||t.includes("\0"))===!1}i(_G,"isValidHeaderValue");function MNe(t,e){let{headersList:r}=e,n=(r.get("referrer-policy",!0)??"").split(","),o="";if(n.length>0)for(let s=n.length;s!==0;s--){let a=n[s-1].trim();if(eNe.has(a)){o=a;break}}o!==""&&(t.referrerPolicy=o)}i(MNe,"setRequestReferrerPolicyOnRedirect");function hNe(){return"allowed"}i(hNe,"crossOriginResourcePolicyCheck");function mNe(){return"success"}i(mNe,"corsCheck");function zNe(){return"success"}i(zNe,"TAOCheck");function gNe(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}i(gNe,"appendFetchMetadata");function ONe(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&&t5(t.origin)&&!t5(nb(t))&&(e=null);break;case"same-origin":Tz(t,nb(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}i(ONe,"appendRequestOriginHeader");function EA(t,e){return t}i(EA,"coarsenTime");function ENe(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:EA(t.domainLookupStartTime,r),domainLookupEndTime:EA(t.domainLookupEndTime,r),connectionStartTime:EA(t.connectionStartTime,r),connectionEndTime:EA(t.connectionEndTime,r),secureConnectionStartTime:EA(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}i(ENe,"clampAndCoarsenConnectionTimingInfo");function CNe(t){return EA(sNe.now(),t)}i(CNe,"coarsenedSharedCurrentTime");function yNe(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}}i(yNe,"createOpaqueTimingInfo");function PG(){return{referrerPolicy:"strict-origin-when-cross-origin"}}i(PG,"makePolicyContainer");function BNe(t){return{referrerPolicy:t.referrerPolicy}}i(BNe,"clonePolicyContainer");function qNe(t){let e=t.referrerPolicy;eu(e);let r=null;if(t.referrer==="client"){let c=xG();if(!c||c.origin==="null")return"no-referrer";r=new URL(c)}else t.referrer instanceof URL&&(r=t.referrer);let n=e5(r),o=e5(r,!0);n.toString().length>4096&&(n=o);let s=Tz(t,n),a=rb(n)&&!rb(t.url);switch(e){case"origin":return o??e5(r,!0);case"unsafe-url":return n;case"same-origin":return s?o:"no-referrer";case"origin-when-cross-origin":return s?n:o;case"strict-origin-when-cross-origin":{let c=nb(t);return Tz(n,c)?n:rb(n)&&!rb(c)?"no-referrer":o}default:return a?"no-referrer":o}}i(qNe,"determineRequestsReferrer");function e5(t,e){return eu(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)}i(e5,"stripURLForReferrer");function rb(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 n=new URL(r);return!!(n.protocol==="https:"||n.protocol==="wss:"||/^127(?:\.[0-9]+){0,2}\.[0-9]+$|^\[(?:0*:)*?:?0*1\]$/.test(n.hostname)||n.hostname==="localhost"||n.hostname.includes("localhost.")||n.hostname.endsWith(".localhost"))}}i(rb,"isURLPotentiallyTrustworthy");function DNe(t,e){if(xz===void 0)return!0;let r=kG(e);if(r==="no metadata"||r.length===0)return!0;let n=RNe(r),o=NNe(r,n);for(let s of o){let a=s.algo,c=s.hash,u=xz.createHash(a).update(t).digest("base64");if(u[u.length-1]==="="&&(u[u.length-2]==="="?u=u.slice(0,-2):u=u.slice(0,-1)),wNe(u,c))return!0}return!1}i(DNe,"bytesMatch");var INe=/(?<algo>sha256|sha384|sha512)-((?<hash>[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;function kG(t){let e=[],r=!0;for(let n of t.split(" ")){r=!1;let o=INe.exec(n);if(o===null||o.groups===void 0||o.groups.algo===void 0)continue;let s=o.groups.algo.toLowerCase();vG.includes(s)&&e.push(o.groups)}return r===!0?"no metadata":e}i(kG,"parseMetadata");function RNe(t){let e=t[0].algo;if(e[3]==="5")return e;for(let r=1;r<t.length;++r){let n=t[r];if(n.algo[3]==="5"){e="sha512";break}else{if(e[3]==="3")continue;n.algo[3]==="3"&&(e="sha384")}}return e}i(RNe,"getStrongestMetadata");function NNe(t,e){if(t.length===1)return t;let r=0;for(let n=0;n<t.length;++n)t[n].algo===e&&(t[r++]=t[n]);return t.length=r,t}i(NNe,"filterMetadataListByAlgorithm");function wNe(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}i(wNe,"compareBase64Mixed");function SNe(t){}i(SNe,"tryUpgradeReque Line truncated
`);function bwe(t){for(let e=0;e<t.length;++e)if((t.charCodeAt(e)&-128)!==0)return!1;return!0}i(bwe,"isAsciiString");function fwe(t){let e=t.length;if(e<27||e>70)return!1;for(let r=0;r<e;++r){let n=t.charCodeAt(r);if(!(n>=48&&n<=57||n>=65&&n<=90||n>=97&&n<=122||n===39||n===45||n===95))return!1}return!0}i(fwe,"validateBoundary");function Mwe(t,e){Lz(e!=="failure"&&e.essence==="multipart/form-data");let r=e.parameters.get("boundary");if(r===void 0)return"failure";let n=Buffer.from(`--${r}`,"utf8"),o=[],s={position:0};for(;t[s.position]===13&&t[s.position+1]===10;)s.position+=2;let a=t.length;for(;t[a-1]===10&&t[a-2]===13;)a-=2;for(a!==t.length&&(t=t.subarray(0,a));;){if(t.subarray(s.position,s.position+n.length).equals(n))s.position+=n.length;else return"failure";if(s.position===t.length-2&&Qz(t,lwe,s)||s.position===t.length-4&&Qz(t,dwe,s))return o;if(t[s.position]!==13||t[s.position+1]!==10)return"failure";s.position+=2;let c=hwe(t,s);if(c==="failure")return"failure";let{name:u,filename:p,contentType:A,encoding:l}=c;s.position+=2;let b;{let z=t.indexOf(n.subarray(2),s.position);if(z===-1)return"failure";b=t.subarray(s.position,z-4),s.position+=b.length,l==="base64"&&(b=Buffer.from(b.toString(),"base64"))}if(t[s.position]!==13||t[s.position+1]!==10)return"failure";s.position+=2;let M;p!==null?(A??="text/plain",bwe(A)||(A=""),M=new pwe([b],p,{type:A})):M=swe(Buffer.from(b)),Lz(tH(u)),Lz(typeof M=="string"&&tH(M)||awe(M)),o.push(cwe(u,M,p))}}i(Mwe,"multipartFormDataParser");function hwe(t,e){let r=null,n=null,o=null,s=null;for(;;){if(t[e.position]===13&&t[e.position+1]===10)return r===null?"failure":{name:r,filename:n,contentType:o,encoding:s};let a=yA(c=>c!==10&&c!==13&&c!==58,t,e);if(a=c5(a,!0,!0,c=>c===9||c===32),!iwe.test(a.toString())||t[e.position]!==58)return"failure";switch(e.position++,yA(c=>c===32||c===9,t,e),owe(a)){case"content-disposition":{if(r=n=null,!Qz(t,Awe,e)||(e.position+=17,r=oH(t,e),r===null))return"failure";if(Qz(t,nH,e)){let c=e.position+nH.length;if(t[c]===42&&(e.position+=1,c+=1),t[c]!==61||t[c+1]!==34||(e.position+=12,n=oH(t,e),n===null))return"failure"}break}case"content-type":{let c=yA(u=>u!==10&&u!==13,t,e);c=c5(c,!1,!0,u=>u===9||u===32),o=rH(c);break}case"content-transfer-encoding":{let c=yA(u=>u!==10&&u!==13,t,e);c=c5(c,!1,!0,u=>u===9||u===32),s=rH(c);break}default:yA(c=>c!==10&&c!==13,t,e)}if(t[e.position]!==13&&t[e.position+1]!==10)return"failure";e.position+=2}}i(hwe,"parseMultipartFormDataHeaders");function oH(t,e){Lz(t[e.position-1]===34);let r=yA(n=>n!==10&&n!==13&&n!==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)}i(oH,"parseMultipartFormDataName");function yA(t,e,r){let n=r.position;for(;n<e.length&&t(e[n]);)++n;return e.subarray(r.position,r.position=n)}i(yA,"collectASequenceOfBytes");function c5(t,e,r,n){let o=0,s=t.length-1;if(e)for(;o<t.length&&n(t[o]);)o++;if(r)for(;s>0&&n(t[s]);)s--;return o===0&&s===t.length-1?t:t.subarray(o,s+1)}i(c5,"removeChars");function Qz(t,e,r){if(t.length<e.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[r.position+n])return!1;return!0}i(Qz,"bufferStartsWith");sH.exports={multipartFormDataParser:Mwe,validateBoundary:fwe}});var DA=h((yq0,MH)=>{"use strict";var ib=He(),{ReadableStreamFrom:mwe,isBlobLike:aH,isReadableStreamLike:zwe,readableStreamClose:gwe,createDeferredPromise:Owe,fullyReadBody:Ewe,extractMimeType:Cwe,utf8DecodeBytes:pH}=wr(),{FormData:cH}=sb(),{kState:qA}=Na(),{webidl:ywe}=it(),{Blob:Bwe}=require("node:buffer"),u5=require("node:assert"),{isErrored:AH,isDisturbed:qwe}=require("node:stream"),{isArrayBuffer:Dwe}=require("node:util/types"),{serializeAMimeType:Iwe}=er(),{multipartFormDataParser:Rwe}=iH(),p5;try{let t=require("node:crypto");p5=i(e=>t.randomInt(0,e),"random")}catch{p5=i(t=>Math.floor(Math.random(t)),"random")}var _z=new TextEncoder;function Nwe(){}i(Nwe,"noop");var lH=globalThis.FinalizationRegistry&&process.version.indexOf("v18")!==0,dH;lH&&(dH=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!qwe(e)&&!AH(e)&&e.cancel("Response object has been garbage collected").catch(Nwe)}));function bH(t,e=!1){let r=null;t instanceof ReadableStream?r=t:aH(t)?r=t.stream():r=new ReadableStream({async pull(u){let p=typeof o=="string"?_z.encode(o):o;p.byteLength&&u.enqueue(p),queueMicrotask(()=>gwe(u))},start(){},type:"bytes"}),u5(zwe(r));let n=null,o=null,s=null,a=null;if(typeof t=="string")o=t,a="text/plain;charset=UTF-8";else if(t instanceof URLSearchParams)o=t.toString(),a="application/x-www-form-urlencoded;charset=UTF-8";else if(Dwe(t))o=new Uint8Array(t.slice());else if(ArrayBuffer.isView(t))o=new Uint8Array(t.buffer.slice(t.byteOffset,t.byteOffset+t.byteLength));else if(ib.isFormDataLike(t)){let u=`----formdata-undici-0${`${p5(1e11)}`.padStart(11,"0")}`,p=`--${u}\r
Content-Disposition: form-data`;let A=i(y=>y.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22"),"escape"),l=i(y=>y.replace(/\r?\n|\r/g,`\r
`),"normalizeLinefeeds"),b=[],M=new Uint8Array([13,10]);s=0;let z=!1;for(let[y,E]of t)if(typeof E=="string"){let B=_z.encode(p+`; name="${A(l(y))}"\r
\r
@@ -11,73 +11,73 @@ ${l(E)}\r
Content-Type: ${E.type||"application/octet-stream"}\r
\r
`);b.push(B,E,M),typeof E.size=="number"?s+=B.byteLength+E.size+M.byteLength:z=!0}let O=_z.encode(`--${u}--\r
`);b.push(O),s+=O.byteLength,z&&(s=null),o=t,n=i(async function*(){for(let y of b)y.stream?yield*y.stream():yield y},"action"),a=`multipart/form-data; boundary=${u}`}else if(nH(t))o=t,s=t.size,t.type&&(a=t.type);else if(typeof t[Symbol.asyncIterator]=="function"){if(e)throw new TypeError("keepalive");if(ab.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=t instanceof ReadableStream?t:Mwe(t)}if((typeof o=="string"||ab.isBuffer(o))&&(s=Buffer.byteLength(o)),n!=null){let u;r=new ReadableStream({async start(){u=n(t)[Symbol.asyncIterator]()},async pull(p){let{value:A,done:l}=await u.next();if(l)queueMicrotask(()=>{p.close(),p.byobRequest?.respond(0)});else if(!aH(r)){let b=new Uint8Array(A);b.byteLength&&p.enqueue(b)}return p.desiredSize>0},async cancel(p){await u.return()},type:"bytes"})}return[{stream:r,source:o,length:s},a]}i(pH,"extractBody");function Rwe(t,e=!1){return t instanceof ReadableStream&&(a5(!ab.isDisturbed(t),"The body has already been consumed."),a5(!t.locked,"The stream is locked.")),pH(t,e)}i(Rwe,"safelyExtractBody");function Nwe(t,e){let[r,n]=e.stream.tee();return e.stream=r,{stream:n,length:e.length,source:e.source}}i(Nwe,"cloneBody");function wwe(t){if(t.aborted)throw new DOMException("The operation was aborted.","AbortError")}i(wwe,"throwIfAborted");function Swe(t){return{blob(){return BA(this,r=>{let n=sH(this);return n===null?n="":n&&(n=qwe(n)),new Cwe([r],{type:n})},t)},arrayBuffer(){return BA(this,r=>new Uint8Array(r).buffer,t)},text(){return BA(this,iH,t)},json(){return BA(this,Wwe,t)},formData(){return BA(this,r=>{let n=sH(this);if(n!==null)switch(n.essence){case"multipart/form-data":{let o=Dwe(r,n);if(o==="failure")throw new TypeError("Failed to parse body as FormData.");let s=new oH;return s[qA]=o,s}case"application/x-www-form-urlencoded":{let o=new URLSearchParams(r.toString()),s=new oH;for(let[a,c]of o)s.append(a,c);return s}}throw new TypeError('Content-Type was not one of "multipart/form-data" or "application/x-www-form-urlencoded".')},t)},bytes(){return BA(this,r=>new Uint8Array(r),t)}}}i(Swe,"bodyMixinMethods");function Fwe(t){Object.assign(t.prototype,Swe(t))}i(Fwe,"mixinBody");async function BA(t,e,r){if(Ewe.brandCheck(t,r),AH(t))throw new TypeError("Body is unusable: Body has already been read");wwe(t[qA]);let n=zwe(),o=i(a=>n.reject(a),"errorSteps"),s=i(a=>{try{n.resolve(e(a))}catch(c){o(c)}},"successSteps");return t[qA].body==null?(s(Buffer.allocUnsafe(0)),n.promise):(await gwe(t[qA].body,s,o),n.promise)}i(BA,"consumeBody");function AH(t){let e=t[qA].body;return e!=null&&(e.stream.locked||ab.isDisturbed(e.stream))}i(AH,"bodyUnusable");function Wwe(t){return JSON.parse(iH(t))}i(Wwe,"parseJSONFromBytes");function sH(t){let e=t[qA].headersList,r=Owe(e);return r==="failure"?null:r}i(sH,"bodyMimeType");lH.exports={extractBody:pH,safelyExtractBody:Rwe,cloneBody:Nwe,mixinBody:Fwe,streamRegistry:uH,hasFinalizationRegistry:cH,bodyUnusable:AH}});var IH=h((hq0,DH)=>{"use strict";var be=require("node:assert"),he=He(),{channels:dH}=bA(),u5=GI(),{RequestContentLengthMismatchError:nu,ResponseContentLengthMismatchError:bH,RequestAbortedError:EH,InvalidArgumentError:xwe,HeadersTimeoutError:Twe,HeadersOverflowError:vwe,SocketError:IA,InformationalError:RA,BodyTimeoutError:Lwe,HTTPParserError:Qwe,ResponseExceededMaxSizeError:_we}=i0(),{kUrl:CH,kReset:er,kClient:Gz,kParser:W0,kBlocking:pb,kRunning:I1,kPending:yH,kSize:fH,kWriting:Fa,kQueue:so,kNoRef:cb,kKeepAliveDefaultTimeout:Pwe,kHostHeader:kwe,kPendingIdx:Uwe,kRunningIdx:ln,kError:wt,kPipelining:Hz,kSocket:su,kKeepAliveTimeoutValue:Vz,kMaxHeadersSize:p5,kKeepAliveMaxTimeout:Gwe,kKeepAliveTimeoutThreshold:Hwe,kHeadersTimeout:Xwe,kBodyTimeout:Vwe,kStrictContentLength:d5,kMaxRequests:MH,kCounter:Ywe,kMaxResponseSize:Jwe,kOnError:hH,kResume:qi,kHTTPContext:BH}=k0(),Nr=uG(),mH=Buffer.alloc(0),Pz=Buffer[Symbol.species],kz=he.addListener,$we=he.removeAllListeners,iu=Symbol("kIdleSocketValidation"),ou=Symbol("kIdleSocketValidationTimeout"),h5=Symbol("kSocketUsed"),A5;async function jwe(){let t=process.env.JEST_WORKER_ID?VI():void 0,e;try{e=await WebAssembly.compile(lG())}catch{e=await WebAssembly.compile(t||VI())}return await WebAssembly.instantiate(e,{env:{wasm_on_url:i((r,n,o)=>0,"wasm_on_url"),wasm_on_status:i((r,n,o)=>{be(r1.ptr===r);let s=n-Vo+Xo.byteOffset;return r1.onStatus(new Pz(Xo.buffer,s,o))||0},"wasm_on_status"),wasm_on_message_begin:i(r=>(be(r1.ptr===r),r1.onMessageBegin()||0),"wasm_on_message_begin"),wasm_on_header_field:i((r,n,o)=>{be(r1.ptr===r);let s=n-Vo+Xo.byteOffset;return r1.onHeaderField(new Pz(Xo.buffer,s,o))||0},"wasm_on_header_field"),wasm_on_header_value:i((r,n,o)=>{be(r1.ptr===r);let s=n-Vo+Xo.byteOffset;return r1.onHeaderValue(new Pz(Xo.buffer,s,o))||0},"wasm_on_header_value"),wasm_on_headers_complete:i((r,n,o,s)=>(be(r1.ptr===r),r1.onHeadersComplete(n,!!o,!!s)||0),"wasm_on_headers_complete"),wasm_on_body:i((r,n,o)=>{be(r1.ptr===r);let s=n-Vo+Xo.byteOffset;retu Line truncated
`);b.push(O),s+=O.byteLength,z&&(s=null),o=t,n=i(async function*(){for(let y of b)y.stream?yield*y.stream():yield y},"action"),a=`multipart/form-data; boundary=${u}`}else if(aH(t))o=t,s=t.size,t.type&&(a=t.type);else if(typeof t[Symbol.asyncIterator]=="function"){if(e)throw new TypeError("keepalive");if(ib.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=t instanceof ReadableStream?t:mwe(t)}if((typeof o=="string"||ib.isBuffer(o))&&(s=Buffer.byteLength(o)),n!=null){let u;r=new ReadableStream({async start(){u=n(t)[Symbol.asyncIterator]()},async pull(p){let{value:A,done:l}=await u.next();if(l)queueMicrotask(()=>{p.close(),p.byobRequest?.respond(0)});else if(!AH(r)){let b=new Uint8Array(A);b.byteLength&&p.enqueue(b)}return p.desiredSize>0},async cancel(p){await u.return()},type:"bytes"})}return[{stream:r,source:o,length:s},a]}i(bH,"extractBody");function wwe(t,e=!1){return t instanceof ReadableStream&&(u5(!ib.isDisturbed(t),"The body has already been consumed."),u5(!t.locked,"The stream is locked.")),bH(t,e)}i(wwe,"safelyExtractBody");function Swe(t,e){let[r,n]=e.stream.tee();return e.stream=r,{stream:n,length:e.length,source:e.source}}i(Swe,"cloneBody");function Fwe(t){if(t.aborted)throw new DOMException("The operation was aborted.","AbortError")}i(Fwe,"throwIfAborted");function Wwe(t){return{blob(){return BA(this,r=>{let n=uH(this);return n===null?n="":n&&(n=Iwe(n)),new Bwe([r],{type:n})},t)},arrayBuffer(){return BA(this,r=>new Uint8Array(r).buffer,t)},text(){return BA(this,pH,t)},json(){return BA(this,Twe,t)},formData(){return BA(this,r=>{let n=uH(this);if(n!==null)switch(n.essence){case"multipart/form-data":{let o=Rwe(r,n);if(o==="failure")throw new TypeError("Failed to parse body as FormData.");let s=new cH;return s[qA]=o,s}case"application/x-www-form-urlencoded":{let o=new URLSearchParams(r.toString()),s=new cH;for(let[a,c]of o)s.append(a,c);return s}}throw new TypeError('Content-Type was not one of "multipart/form-data" or "application/x-www-form-urlencoded".')},t)},bytes(){return BA(this,r=>new Uint8Array(r),t)}}}i(Wwe,"bodyMixinMethods");function xwe(t){Object.assign(t.prototype,Wwe(t))}i(xwe,"mixinBody");async function BA(t,e,r){if(ywe.brandCheck(t,r),fH(t))throw new TypeError("Body is unusable: Body has already been read");Fwe(t[qA]);let n=Owe(),o=i(a=>n.reject(a),"errorSteps"),s=i(a=>{try{n.resolve(e(a))}catch(c){o(c)}},"successSteps");return t[qA].body==null?(s(Buffer.allocUnsafe(0)),n.promise):(await Ewe(t[qA].body,s,o),n.promise)}i(BA,"consumeBody");function fH(t){let e=t[qA].body;return e!=null&&(e.stream.locked||ib.isDisturbed(e.stream))}i(fH,"bodyUnusable");function Twe(t){return JSON.parse(pH(t))}i(Twe,"parseJSONFromBytes");function uH(t){let e=t[qA].headersList,r=Cwe(e);return r==="failure"?null:r}i(uH,"bodyMimeType");MH.exports={extractBody:bH,safelyExtractBody:wwe,cloneBody:Swe,mixinBody:xwe,streamRegistry:dH,hasFinalizationRegistry:lH,bodyUnusable:fH}});var SH=h((qq0,wH)=>{"use strict";var fe=require("node:assert"),le=He(),{channels:hH}=bA(),A5=XI(),{RequestContentLengthMismatchError:tu,ResponseContentLengthMismatchError:mH,RequestAbortedError:qH,InvalidArgumentError:vwe,HeadersTimeoutError:Lwe,HeadersOverflowError:Qwe,SocketError:IA,InformationalError:ru,BodyTimeoutError:_we,HTTPParserError:Pwe,ResponseExceededMaxSizeError:kwe}=i0(),{kUrl:DH,kReset:tr,kClient:Gz,kParser:W0,kBlocking:ub,kRunning:I1,kPending:IH,kSize:zH,kWriting:wa,kQueue:ao,kNoRef:ab,kKeepAliveDefaultTimeout:Uwe,kHostHeader:Gwe,kPendingIdx:Hwe,kRunningIdx:bn,kError:St,kPipelining:Hz,kSocket:nu,kKeepAliveTimeoutValue:Vz,kMaxHeadersSize:l5,kKeepAliveMaxTimeout:Xwe,kKeepAliveTimeoutThreshold:Vwe,kHeadersTimeout:Ywe,kBodyTimeout:Jwe,kStrictContentLength:f5,kMaxRequests:gH,kCounter:$we,kMaxResponseSize:jwe,kOnError:OH,kResume:qi,kHTTPContext:RH}=k0(),Sr=dG(),EH=Buffer.alloc(0),Pz=Buffer[Symbol.species],kz=le.addListener,Kwe=le.removeAllListeners,ou=Symbol("kIdleSocketValidation"),RA=Symbol("kIdleSocketValidationTimeout"),z5=Symbol("kSocketUsed"),d5;async function Zwe(){let t=process.env.JEST_WORKER_ID?JI():void 0,e;try{e=await WebAssembly.compile(MG())}catch{e=await WebAssembly.compile(t||JI())}return await WebAssembly.instantiate(e,{env:{wasm_on_url:i((r,n,o)=>0,"wasm_on_url"),wasm_on_status:i((r,n,o)=>{fe(r1.ptr===r);let s=n-Vo+Xo.byteOffset;return r1.onStatus(new Pz(Xo.buffer,s,o))||0},"wasm_on_status"),wasm_on_message_begin:i(r=>(fe(r1.ptr===r),r1.onMessageBegin()||0),"wasm_on_message_begin"),wasm_on_header_field:i((r,n,o)=>{fe(r1.ptr===r);let s=n-Vo+Xo.byteOffset;return r1.onHeaderField(new Pz(Xo.buffer,s,o))||0},"wasm_on_header_field"),wasm_on_header_value:i((r,n,o)=>{fe(r1.ptr===r);let s=n-Vo+Xo.byteOffset;return r1.onHeaderValue(new Pz(Xo.buffer,s,o))||0},"wasm_on_header_value"),wasm_on_headers_complete:i((r,n,o,s)=>(fe(r1.ptr===r),r1.onHeadersComplete(n,!!o,!!s)||0),"wasm_on_headers_complete"),wasm_on_body:i((r,n,o)=>{fe(r1.ptr===r);let s=n-Vo+Xo.byteOffset;retu Line truncated
`;if(typeof o=="string"?O+=`host: ${o}\r
`:O+=t[kwe],s?O+=`connection: upgrade\r
`:O+=t[Gwe],s?O+=`connection: upgrade\r
upgrade: ${s}\r
`:t[Hz]&&!M[er]?O+=`connection: keep-alive\r
`:t[Hz]&&!M[tr]?O+=`connection: keep-alive\r
`:O+=`connection: close\r
`,Array.isArray(p))for(let y=0;y<p.length;y+=2){let E=p[y+0],B=p[y+1];if(Array.isArray(B))for(let q=0;q<B.length;q++)O+=`${E}: ${B[q]}\r
`;else O+=`${E}: ${B}\r
`}return dH.sendHeaders.hasSubscribers&&dH.sendHeaders.publish({request:e,headers:O,socket:M}),!u||b===0?gH(z,null,t,e,M,A,O,l):he.isBuffer(u)?gH(z,u,t,e,M,A,O,l):he.isBlobLike(u)?typeof u.stream=="function"?OH(z,u.stream(),t,e,M,A,O,l):s6e(z,u,t,e,M,A,O,l):he.isStream(u)?o6e(z,u,t,e,M,A,O,l):he.isIterable(u)?OH(z,u,t,e,M,A,O,l):be(!1),!0}i(n6e,"writeH1");function o6e(t,e,r,n,o,s,a,c){be(s!==0||r[I1]===0,"stream body cannot be pipelined");let u=!1,p=new Yz({abort:t,socket:o,request:n,contentLength:s,client:r,expectsPayload:c,header:a}),A=i(function(z){if(!u)try{!p.write(z)&&this.pause&&this.pause()}catch(O){he.destroy(this,O)}},"onData"),l=i(function(){u||e.resume&&e.resume()},"onDrain"),b=i(function(){if(queueMicrotask(()=>{e.removeListener("error",M)}),!u){let z=new EH;queueMicrotask(()=>M(z))}},"onClose"),M=i(function(z){if(!u){if(u=!0,be(o.destroyed||o[Fa]&&r[I1]<=1),o.off("drain",l).off("error",M),e.removeListener("data",A).removeListener("end",M).removeListener("close",b),!z)try{p.end()}catch(O){z=O}p.destroy(z),z&&(z.code!=="UND_ERR_INFO"||z.message!=="reset")?he.destroy(e,z):he.destroy(e)}},"onFinished");e.on("data",A).on("end",M).on("error",M).on("close",b),e.resume&&e.resume(),o.on("drain",l).on("error",M),e.errorEmitted??e.errored?setImmediate(()=>M(e.errored)):(e.endEmitted??e.readableEnded)&&setImmediate(()=>M(null)),(e.closeEmitted??e.closed)&&setImmediate(b)}i(o6e,"writeStream");function gH(t,e,r,n,o,s,a,c){try{e?he.isBuffer(e)&&(be(s===e.byteLength,"buffer body must have content length"),o.cork(),o.write(`${a}content-length: ${s}\r
`}return hH.sendHeaders.hasSubscribers&&hH.sendHeaders.publish({request:e,headers:O,socket:M}),!u||b===0?yH(z,null,t,e,M,A,O,l):le.isBuffer(u)?yH(z,u,t,e,M,A,O,l):le.isBlobLike(u)?typeof u.stream=="function"?BH(z,u.stream(),t,e,M,A,O,l):a6e(z,u,t,e,M,A,O,l):le.isStream(u)?i6e(z,u,t,e,M,A,O,l):le.isIterable(u)?BH(z,u,t,e,M,A,O,l):fe(!1),!0}i(s6e,"writeH1");function i6e(t,e,r,n,o,s,a,c){fe(s!==0||r[I1]===0,"stream body cannot be pipelined");let u=!1,p=new Yz({abort:t,socket:o,request:n,contentLength:s,client:r,expectsPayload:c,header:a}),A=i(function(z){if(!u)try{!p.write(z)&&this.pause&&this.pause()}catch(O){le.destroy(this,O)}},"onData"),l=i(function(){u||e.resume&&e.resume()},"onDrain"),b=i(function(){if(queueMicrotask(()=>{e.removeListener("error",M)}),!u){let z=new qH;queueMicrotask(()=>M(z))}},"onClose"),M=i(function(z){if(!u){if(u=!0,fe(o.destroyed||o[wa]&&r[I1]<=1),o.off("drain",l).off("error",M),e.removeListener("data",A).removeListener("end",M).removeListener("close",b),!z)try{p.end()}catch(O){z=O}p.destroy(z),z&&(z.code!=="UND_ERR_INFO"||z.message!=="reset")?le.destroy(e,z):le.destroy(e)}},"onFinished");e.on("data",A).on("end",M).on("error",M).on("close",b),e.resume&&e.resume(),o.on("drain",l).on("error",M),e.errorEmitted??e.errored?setImmediate(()=>M(e.errored)):(e.endEmitted??e.readableEnded)&&setImmediate(()=>M(null)),(e.closeEmitted??e.closed)&&setImmediate(b)}i(i6e,"writeStream");function yH(t,e,r,n,o,s,a,c){try{e?le.isBuffer(e)&&(fe(s===e.byteLength,"buffer body must have content length"),o.cork(),o.write(`${a}content-length: ${s}\r
\r
`,"latin1"),o.write(e),o.uncork(),n.onBodySent(e),!c&&n.reset!==!1&&(o[er]=!0)):s===0?o.write(`${a}content-length: 0\r
`,"latin1"),o.write(e),o.uncork(),n.onBodySent(e),!c&&n.reset!==!1&&(o[tr]=!0)):s===0?o.write(`${a}content-length: 0\r
\r
`,"latin1"):(be(s===null,"no body must not have content length"),o.write(`${a}\r
`,"latin1")),n.onRequestSent(),r[qi]()}catch(u){t(u)}}i(gH,"writeBuffer");async function s6e(t,e,r,n,o,s,a,c){be(s===e.size,"blob body must have content length");try{if(s!=null&&s!==e.size)throw new nu;let u=Buffer.from(await e.arrayBuffer());o.cork(),o.write(`${a}content-length: ${s}\r
`,"latin1"):(fe(s===null,"no body must not have content length"),o.write(`${a}\r
`,"latin1")),n.onRequestSent(),r[qi]()}catch(u){t(u)}}i(yH,"writeBuffer");async function a6e(t,e,r,n,o,s,a,c){fe(s===e.size,"blob body must have content length");try{if(s!=null&&s!==e.size)throw new tu;let u=Buffer.from(await e.arrayBuffer());o.cork(),o.write(`${a}content-length: ${s}\r
\r
`,"latin1"),o.write(u),o.uncork(),n.onBodySent(u),n.onRequestSent(),!c&&n.reset!==!1&&(o[er]=!0),r[qi]()}catch(u){t(u)}}i(s6e,"writeBlob");async function OH(t,e,r,n,o,s,a,c){be(s!==0||r[I1]===0,"iterator body cannot be pipelined");let u=null;function p(){if(u){let b=u;u=null,b()}}i(p,"onDrain");let A=i(()=>new Promise((b,M)=>{be(u===null),o[wt]?M(o[wt]):u=b}),"waitForDrain");o.on("close",p).on("drain",p);let l=new Yz({abort:t,socket:o,request:n,contentLength:s,client:r,expectsPayload:c,header:a});try{for await(let b of e){if(o[wt])throw o[wt];l.write(b)||await A()}l.end()}catch(b){l.destroy(b)}finally{o.off("close",p).off("drain",p)}}i(OH,"writeIterable");var Yz=class{static{i(this,"AsyncWriter")}constructor({abort:e,socket:r,request:n,contentLength:o,client:s,expectsPayload:a,header:c}){this.socket=r,this.request=n,this.contentLength=o,this.client=s,this.bytesWritten=0,this.expectsPayload=a,this.header=c,this.abort=e,r[Fa]=!0}write(e){let{socket:r,request:n,contentLength:o,client:s,bytesWritten:a,expectsPayload:c,header:u}=this;if(r[wt])throw r[wt];if(r.destroyed)return!1;let p=Buffer.byteLength(e);if(!p)return!0;if(o!==null&&a+p>o){if(s[d5])throw new nu;process.emitWarning(new nu)}r.cork(),a===0&&(!c&&n.reset!==!1&&(r[er]=!0),o===null?r.write(`${u}transfer-encoding: chunked\r
`,"latin1"),o.write(u),o.uncork(),n.onBodySent(u),n.onRequestSent(),!c&&n.reset!==!1&&(o[tr]=!0),r[qi]()}catch(u){t(u)}}i(a6e,"writeBlob");async function BH(t,e,r,n,o,s,a,c){fe(s!==0||r[I1]===0,"iterator body cannot be pipelined");let u=null;function p(){if(u){let b=u;u=null,b()}}i(p,"onDrain");let A=i(()=>new Promise((b,M)=>{fe(u===null),o[St]?M(o[St]):u=b}),"waitForDrain");o.on("close",p).on("drain",p);let l=new Yz({abort:t,socket:o,request:n,contentLength:s,client:r,expectsPayload:c,header:a});try{for await(let b of e){if(o[St])throw o[St];l.write(b)||await A()}l.end()}catch(b){l.destroy(b)}finally{o.off("close",p).off("drain",p)}}i(BH,"writeIterable");var Yz=class{static{i(this,"AsyncWriter")}constructor({abort:e,socket:r,request:n,contentLength:o,client:s,expectsPayload:a,header:c}){this.socket=r,this.request=n,this.contentLength=o,this.client=s,this.bytesWritten=0,this.expectsPayload=a,this.header=c,this.abort=e,r[wa]=!0}write(e){let{socket:r,request:n,contentLength:o,client:s,bytesWritten:a,expectsPayload:c,header:u}=this;if(r[St])throw r[St];if(r.destroyed)return!1;let p=Buffer.byteLength(e);if(!p)return!0;if(o!==null&&a+p>o){if(s[f5])throw new tu;process.emitWarning(new tu)}r.cork(),a===0&&(!c&&n.reset!==!1&&(r[tr]=!0),o===null?r.write(`${u}transfer-encoding: chunked\r
`,"latin1"):r.write(`${u}content-length: ${o}\r
\r
`,"latin1")),o===null&&r.write(`\r
${p.toString(16)}\r
`,"latin1"),this.bytesWritten+=p;let A=r.write(e);return r.uncork(),n.onBodySent(e),A||r[W0].timeout&&r[W0].timeoutType===NA&&r[W0].timeout.refresh&&r[W0].timeout.refresh(),A}end(){let{socket:e,contentLength:r,client:n,bytesWritten:o,expectsPayload:s,header:a,request:c}=this;if(c.onRequestSent(),e[Fa]=!1,e[wt])throw e[wt];if(!e.destroyed){if(o===0?s?e.write(`${a}content-length: 0\r
`,"latin1"),this.bytesWritten+=p;let A=r.write(e);return r.uncork(),n.onBodySent(e),A||r[W0].timeout&&r[W0].timeoutType===NA&&r[W0].timeout.refresh&&r[W0].timeout.refresh(),A}end(){let{socket:e,contentLength:r,client:n,bytesWritten:o,expectsPayload:s,header:a,request:c}=this;if(c.onRequestSent(),e[wa]=!1,e[St])throw e[St];if(!e.destroyed){if(o===0?s?e.write(`${a}content-length: 0\r
\r
`,"latin1"):e.write(`${a}\r
`,"latin1"):r===null&&e.write(`\r
0\r
\r
`,"latin1"),r!==null&&o!==r){if(n[d5])throw new nu;process.emitWarning(new nu)}e[W0].timeout&&e[W0].timeoutType===NA&&e[W0].timeout.refresh&&e[W0].timeout.refresh(),n[qi]()}}destroy(e){let{socket:r,client:n,abort:o}=this;r[Fa]=!1,e&&(be(n[I1]<=1,"pipeline should only contain this request"),o(e))}};DH.exports=Zwe});var TH=h((zq0,xH)=>{"use strict";var dn=require("node:assert"),{pipeline:i6e}=require("node:stream"),Je=He(),{RequestContentLengthMismatchError:m5,RequestAbortedError:RH,SocketError:Ab,InformationalError:z5}=i0(),{kUrl:Jz,kReset:jz,kClient:wA,kRunning:Kz,kPending:a6e,kQueue:Wa,kPendingIdx:g5,kRunningIdx:io,kError:co,kSocket:J1,kStrictContentLength:c6e,kOnError:O5,kMaxConcurrentStreams:WH,kHTTP2Session:ao,kResume:xa,kSize:u6e,kHTTPContext:p6e}=k0(),Di=Symbol("open streams"),NH,wH=!1,$z;try{$z=require("node:http2")}catch{$z={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:A6e,HTTP2_HEADER_METHOD:l6e,HTTP2_HEADER_PATH:d6e,HTTP2_HEADER_SCHEME:b6e,HTTP2_HEADER_CONTENT_LENGTH:f6e,HTTP2_HEADER_EXPECT:M6e,HTTP2_HEADER_STATUS:h6e}}=$z;function m6e(t){let e=[];for(let[r,n]of Object.entries(t))if(Array.isArray(n))for(let o of n)e.push(Buffer.from(r),Buffer.from(o));else e.push(Buffer.from(r),Buffer.from(n));return e}i(m6e,"parseH2Headers");async function z6e(t,e){t[J1]=e,wH||(wH=!0,process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"}));let r=$z.connect(t[Jz],{createConnection:i(()=>e,"createConnection"),peerMaxConcurrentStreams:t[WH]});r[Di]=0,r[wA]=t,r[J1]=e,Je.addListener(r,"error",O6e),Je.addListener(r,"frameError",E6e),Je.addListener(r,"end",C6e),Je.addListener(r,"goaway",y6e),Je.addListener(r,"close",function(){let{[wA]:o}=this,{[J1]:s}=o,a=this[J1][co]||this[co]||new Ab("closed",Je.getSocketInfo(s));if(o[ao]=null,o.destroyed){dn(o[a6e]===0);let c=o[Wa].splice(o[io]);for(let u=0;u<c.length;u++){let p=c[u];Je.errorRequest(o,p,a)}}}),r.unref(),t[ao]=r,e[ao]=r,Je.addListener(e,"error",function(o){dn(o.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[co]=o,this[wA][O5](o)}),Je.addListener(e,"end",function(){Je.destroy(this,new Ab("other side closed",Je.getSocketInfo(this)))}),Je.addListener(e,"close",function(){let o=this[co]||new Ab("closed",Je.getSocketInfo(this));t[J1]=null,this[ao]!=null&&this[ao].destroy(o),t[g5]=t[io],dn(t[Kz]===0),t.emit("disconnect",t[Jz],[t],o),t[xa]()});let n=!1;return e.on("close",()=>{n=!0}),{version:"h2",defaultPipelining:1/0,write(...o){return q6e(t,...o)},resume(){g6e(t)},destroy(o,s){n?queueMicrotask(s):e.destroy(o).on("close",s)},get destroyed(){return e.destroyed},busy(){return!1}}}i(z6e,"connectH2");function g6e(t){let e=t[J1];e?.destroyed===!1&&(t[u6e]===0&&t[WH]===0?(e.unref(),t[ao].unref()):(e.ref(),t[ao].ref()))}i(g6e,"resumeH2");function O6e(t){dn(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[J1][co]=t,this[wA][O5](t)}i(O6e,"onHttp2SessionError");function E6e(t,e,r){if(r===0){let n=new z5(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[J1][co]=n,this[wA][O5](n)}}i(E6e,"onHttp2FrameError");function C6e(){let t=new Ab("other side closed",Je.getSocketInfo(this[J1]));this.destroy(t),Je.destroy(this[J1],t)}i(C6e,"onHttp2SessionEnd");function y6e(t){let e=this[co]||new Ab(`HTTP/2: "GOAWAY" frame received with code ${t}`,Je.getSocketInfo(this)),r=this[wA];if(r[J1]=null,r[p6e]=null,this[ao]!=null&&(this[ao].destroy(e),this[ao]=null),Je.destroy(this[J1],e),r[io]<r[Wa].length){let n=r[Wa][r[io]];r[Wa][r[io]++]=null,Je.errorRequest(r,n,e),r[g5]=r[io]}dn(r[Kz]===0),r.emit("disconnect",r[Jz],[r],e),r[xa]()}i(y6e,"onHTTP2GoAway");function B6e(t){return t!=="GET"&&t!=="HEAD"&&t!=="OPTIONS"&&t!=="TRACE"&&t!=="CONNECT"}i(B6e,"shouldSendContentLength");function q6e(t,e){let r=t[ao],{method:n,path:o,host:s,upgrade:a,expectContinue:c,signal:u,headers:p}=e,{body:A}=e;if(a)return Je.errorRequest(t,e,new Error("Upgrade not supported for H2")),!1;let l={};for(let I=0;I<p.length;I+=2){let W=p[I+0],x=p[I+1];if(Array.isArray(x))for(let L=0;L<x.length;L++)l[W]?l[W]+=`,${x[L]}`:l[W]=x[L];else l[W]=x}let b,{hostname:M,port:z}=t[Jz];l[A6e]=s||`${M}${z?`:${z}`:""}`,l[l6e]=n;let O=i(I=>{e.aborted||e.completed||(I=I||new RH,Je.errorRequest(t,e,I),b!=null&&Je.destroy(b,I),Je.destroy(A,I),t[Wa][t[io]++]=null,t[xa]())},"abort");try{e.onConnect(O)}catch(I){Je.errorRequest(t,e,I)}if(e.aborted)return!1;if(n==="CONNECT")return r.ref(),b=r.request(l,{endStream:!1,signal:u}),b.id&&!b.pending?(e.onUpgrade(null,null,b),++r[Di],t[Wa][t[io]++]=null):b.once("ready",()=>{e.onUpgrade(null,null,b),++r[Di],t[Wa][t[io]++]=null}),b.once("close",()=>{r[Di]-=1,r[Di]===0&&r.unref()}),!0;l[d6e]=o,l[b6e]="https";let y=n==="PUT"||n==="POST"||n==="PATCH";A&&typeof A.read=="function"&&A.read(0);let E=Je.bodyLength(A);if(Je.isFormDataLike(A)){NH??=DA().extractBody;let[I,W]=NH(A);l["content-type"]=W,A=I.stream,E=I.length}if(E==null&&(E=e.contentLength),(E===0||!y)&&(E=null),B6e(n)&&E>0&&e.contentLength!=null&&e.contentLength!==E){if(t[c6e])return Je.errorRequest(t,e, Line truncated
`,this[K6e]=u??3e5,this[j6e]=o??3e5,this[Z6e]=B??!0,this[eSe]=I,this[B5]=x,this[va]=null,this[sSe]=ce>-1?ce:-1,this[aSe]=Ne??100,this[h1]=null,this[uo]=[],this[Ri]=0,this[po]=0,this[fb]=pe=>D5(this,pe),this[iSe]=pe=>YH(this,pe)}get pipelining(){return this[rg]}set pipelining(e){this[rg]=e,this[fb](!0)}get[mb](){return this[uo].length-this[po]}get[hb](){return this[po]-this[Ri]}get[Mb](){return this[uo].length-this[Ri]}get[G6e](){return!!this[h1]&&!this[FA]&&!this[h1].destroyed}get[y5](){return!!(this[h1]?.busy(null)||this[Mb]>=(VH(this)||1)||this[mb]>0)}[U6e](e){JH(this),this.once("connect",e)}[oSe](e,r){let n=e.origin||this[Jo].origin,o=new v6e(n,e,r);return this[uo].push(o),this[cu]||(au.bodyLength(o.body)==null&&au.isIterable(o.body)?(this[cu]=1,queueMicrotask(()=>D5(this))):this[fb](!0)),this[cu]&&this[La]!==2&&this[y5]&&(this[La]=2),this[La]<2}async[rSe](){return new Promise(e=>{this[Mb]?this[va]=e:e(null)})}async[nSe](e){return new Promise(r=>{let n=this[uo].splice(this[po]);for(let s=0;s<n.length;s++){let a=n[s];au.errorRequest(this,a,e)}let o=i(()=>{this[va]&&(this[va](),this[va]=null),r(null)},"callback");this[h1]?(this[h1].destroy(e,o),this[h1]=null):queueMicrotask(o),this[fb]()})}},pSe=tg();function YH(t,e){if(t[hb]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){Ii(t[po]===t[Ri]);let r=t[uo].splice(t[Ri]);for(let n=0;n<r.length;n++){let o=r[n];au.errorRequest(t,o,e)}Ii(t[Mb]===0)}}i(YH,"onError");async function JH(t){Ii(!t[FA]),Ii(!t[h1]);let{host:e,hostname:r,protocol:n,port:o}=t[Jo];if(r[0]==="["){let s=r.indexOf("]");Ii(s!==-1);let a=r.substring(1,s);Ii(XH.isIP(a)),r=a}t[FA]=!0,SA.beforeConnect.hasSubscribers&&SA.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:n,port:o,version:t[h1]?.version,servername:t[Ta],localAddress:t[bb]},connector:t[db]});try{let s=await new Promise((a,c)=>{t[db]({host:e,hostname:r,protocol:n,port:o,servername:t[Ta],localAddress:t[bb]},(u,p)=>{u?c(u):a(p)})});if(t.destroyed){au.destroy(s.on("error",GH),new _6e);return}Ii(s);try{t[h1]=s.alpnProtocol==="h2"?await uSe(t,s):await cSe(t,s)}catch(a){throw s.destroy().on("error",GH),a}t[FA]=!1,s[tSe]=0,s[B5]=t[B5],s[k6e]=t,s[X6e]=null,SA.connected.hasSubscribers&&SA.connected.publish({connectParams:{host:e,hostname:r,protocol:n,port:o,version:t[h1]?.version,servername:t[Ta],localAddress:t[bb]},connector:t[db],socket:s}),t.emit("connect",t[Jo],[t])}catch(s){if(t.destroyed)return;if(t[FA]=!1,SA.connectError.hasSubscribers&&SA.connectError.publish({connectParams:{host:e,hostname:r,protocol:n,port:o,version:t[h1]?.version,servername:t[Ta],localAddress:t[bb]},connector:t[db],error:s}),s.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(Ii(t[hb]===0);t[mb]>0&&t[uo][t[po]].servername===t[Ta];){let a=t[uo][t[po]++];au.errorRequest(t,a,s)}else YH(t,s);t.emit("connectionError",t[Jo],[t],s)}t[fb]()}i(JH,"connect");function HH(t){t[La]=0,t.emit("drain",t[Jo],[t])}i(HH,"emitDrain");function D5(t,e){t[cu]!==2&&(t[cu]=2,ASe(t,e),t[cu]=0,t[Ri]>256&&(t[uo].splice(0,t[Ri]),t[po]-=t[Ri],t[Ri]=0))}i(D5,"resume");function ASe(t,e){for(;;){if(t.destroyed){Ii(t[mb]===0);return}if(t[va]&&!t[Mb]){t[va](),t[va]=null;return}if(t[h1]&&t[h1].resume(),t[y5])t[La]=2;else if(t[La]===2){e?(t[La]=1,queueMicrotask(()=>HH(t))):HH(t);continue}if(t[mb]===0||t[hb]>=(VH(t)||1))return;let r=t[uo][t[po]];if(t[Jo].protocol==="https:"&&t[Ta]!==r.servername){if(t[hb]>0)return;t[Ta]=r.servername,t[h1]?.destroy(new Q6e("servername changed"),()=>{t[h1]=null,D5(t)})}if(t[FA])return;if(!t[h1]){JH(t);return}if(t[h1].destroyed||t[h1].busy(r))return;!r.aborted&&t[h1].write(r)?t[po]++:t[uo].splice(t[po],1)}}i(ASe,"_resume");$H.exports=q5});var I5=h((Iq0,jH)=>{"use strict";var ng=class{static{i(this,"FixedCircularBuffer")}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)}};jH.exports=class{static{i(this,"FixedQueue")}constructor(){this.head=this.tail=new ng}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new ng),this.head.push(e)}shift(){let e=this.tail,r=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next),r}}});var ZH=h((Nq0,KH)=>{var{kFree:lSe,kConnected:dSe,kPending:bSe,kQueued:fSe,kRunning:MSe,kSize:hSe}=k0(),uu=Symbol("pool"),R5=class{static{i(this,"PoolStats")}constructor(e){this[uu]=e}get connected(){return this[uu][dSe]}get free(){return this[uu][lSe]}get pending(){return this[uu][bSe]}get queued(){return this[uu][fSe]}get running(){return this[uu][MSe]}get size(){return this[uu][hSe]}};KH.exports=R5});var x5=h((Sq0,uX)=>{"use strict";var mSe=mA(),zSe=I5(),{kConnected:N5,kSize:eX,kRunning:tX,kPending:rX,kQueued:zb,kBusy:gSe,kFree:OSe,kUrl:ESe,kClose:CSe,kDestroy:ySe,kDispatch:BSe}=k0(),qSe=ZH(),tr=Symbol("cl Line truncated
`,"latin1"),r!==null&&o!==r){if(n[f5])throw new tu;process.emitWarning(new tu)}e[W0].timeout&&e[W0].timeoutType===NA&&e[W0].timeout.refresh&&e[W0].timeout.refresh(),n[qi]()}}destroy(e){let{socket:r,client:n,abort:o}=this;r[wa]=!1,e&&(fe(n[I1]<=1,"pipeline should only contain this request"),o(e))}};wH.exports=t6e});var _H=h((Iq0,QH)=>{"use strict";var fn=require("node:assert"),{errorMonitor:g5}=require("node:events"),{pipeline:c6e}=require("node:stream"),Xe=He(),{RequestContentLengthMismatchError:E5,RequestAbortedError:O5,SocketError:pb,InformationalError:Jz}=i0(),{kUrl:$z,kReset:Kz,kClient:wA,kRunning:Zz,kPending:u6e,kQueue:su,kPendingIdx:y5,kRunningIdx:Yo,kError:uo,kSocket:J1,kStrictContentLength:p6e,kOnError:B5,kMaxConcurrentStreams:vH,kHTTP2Session:co,kResume:Fa,kSize:A6e,kHTTPContext:l6e}=k0(),Sa=Symbol("open streams"),FH,WH=!1,jz;try{jz=require("node:http2")}catch{jz={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:d6e,HTTP2_HEADER_METHOD:b6e,HTTP2_HEADER_PATH:f6e,HTTP2_HEADER_SCHEME:M6e,HTTP2_HEADER_CONTENT_LENGTH:h6e,HTTP2_HEADER_EXPECT:m6e,HTTP2_HEADER_STATUS:C5}}=jz;function LH(t){let e=[];for(let[r,n]of Object.entries(t))if(Array.isArray(n))for(let o of n)e.push(Buffer.from(r),Buffer.from(o));else e.push(Buffer.from(r),Buffer.from(n));return e}i(LH,"parseH2Headers");function z6e(t){let{[C5]:e,...r}=t;return LH(r)}i(z6e,"parseH2ResponseHeaders");async function g6e(t,e){t[J1]=e,WH||(WH=!0,process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"}));let r=jz.connect(t[$z],{createConnection:i(()=>e,"createConnection"),peerMaxConcurrentStreams:t[vH]});r[Sa]=0,r[wA]=t,r[J1]=e,Xe.addListener(r,"error",E6e),Xe.addListener(r,"frameError",C6e),Xe.addListener(r,"end",y6e),Xe.addListener(r,"goaway",B6e),Xe.addListener(r,"close",function(){let{[wA]:o}=this,{[J1]:s}=o,a=this[J1][uo]||this[uo]||new pb("closed",Xe.getSocketInfo(s));if(o[co]=null,o.destroyed){fn(o[u6e]===0);let c=o[su].splice(o[Yo]);for(let u=0;u<c.length;u++){let p=c[u];Xe.errorRequest(o,p,a)}}}),r.unref(),t[co]=r,e[co]=r,Xe.addListener(e,"error",function(o){fn(o.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[uo]=o,this[wA][B5](o)}),Xe.addListener(e,"end",function(){Xe.destroy(this,new pb("other side closed",Xe.getSocketInfo(this)))}),Xe.addListener(e,"close",function(){let o=this[uo]||new pb("closed",Xe.getSocketInfo(this));t[J1]=null,this[co]!=null&&this[co].destroy(o),t[y5]=t[Yo],fn(t[Zz]===0),t.emit("disconnect",t[$z],[t],o),t[Fa]()});let n=!1;return e.on("close",()=>{n=!0}),{version:"h2",defaultPipelining:1/0,write(...o){return D6e(t,...o)},resume(){O6e(t)},destroy(o,s){n?queueMicrotask(s):e.destroy(o).on("close",s)},get destroyed(){return e.destroyed},busy(){return!1}}}i(g6e,"connectH2");function O6e(t){let e=t[J1];e?.destroyed===!1&&(t[A6e]===0&&t[vH]===0?(e.unref(),t[co].unref()):(e.ref(),t[co].ref()))}i(O6e,"resumeH2");function E6e(t){fn(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[J1][uo]=t,this[wA][B5](t)}i(E6e,"onHttp2SessionError");function C6e(t,e,r){if(r===0){let n=new Jz(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[J1][uo]=n,this[wA][B5](n)}}i(C6e,"onHttp2FrameError");function y6e(){let t=new pb("other side closed",Xe.getSocketInfo(this[J1]));this.destroy(t),Xe.destroy(this[J1],t)}i(y6e,"onHttp2SessionEnd");function B6e(t){let e=this[uo]||new pb(`HTTP/2: "GOAWAY" frame received with code ${t}`,Xe.getSocketInfo(this)),r=this[wA];if(r[J1]=null,r[l6e]=null,this[co]!=null&&(this[co].destroy(e),this[co]=null),Xe.destroy(this[J1],e),r[Yo]<r[su].length){let n=r[su][r[Yo]];r[su][r[Yo]++]=null,Xe.errorRequest(r,n,e),r[y5]=r[Yo]}fn(r[Zz]===0),r.emit("disconnect",r[$z],[r],e),r[Fa]()}i(B6e,"onHTTP2GoAway");function q6e(t){return t!=="GET"&&t!=="HEAD"&&t!=="OPTIONS"&&t!=="TRACE"&&t!=="CONNECT"}i(q6e,"shouldSendContentLength");function D6e(t,e){let r=t[co],{method:n,path:o,host:s,upgrade:a,expectContinue:c,signal:u,headers:p}=e,{body:A}=e;if(a)return Xe.errorRequest(t,e,new Error("Upgrade not supported for H2")),!1;let l={};for(let D=0;D<p.length;D+=2){let W=p[D+0],x=p[D+1];if(Array.isArray(x))for(let L=0;L<x.length;L++)l[W]?l[W]+=`,${x[L]}`:l[W]=x[L];else l[W]=x}let b,{hostname:M,port:z}=t[$z];l[d6e]=s||`${M}${z?`:${z}`:""}`,l[b6e]=n;let O=i(D=>{if(!e.aborted){if(e.completed){n==="CONNECT"&&b!=null&&Xe.destroy(b,D||new O5);return}D=D||new O5,Xe.errorRequest(t,e,D),b!=null&&Xe.destroy(b,D),Xe.destroy(A,D),t[su][t[Yo]++]=null,t[Fa]()}},"abort");try{e.onConnect(O)}catch(D){Xe.errorRequest(t,e,D)}if(e.aborted)return!1;if(n==="CONNECT"){r.ref(),b=r.request(l,{endStream:!1,signal:u});let D=!1,W=i(Y=>{D=!0,b.off(g5,x),e.onUpgradeResponse(Number(Y[C5]),Y,z6e)},"onResponse"),x=i(Y=>{D=!0,b.off("response",W),e.onUpgradeError(Y)},"onUpgradeError"),L=i(()=>{try{e.onUpgrade(null,null,b)}catch(Y){b.off("response",W),O(Y);return}e.aborted||(b.off("error",O),b.once(g5,x),t[su][t[Yo]++]=null)},"onReady");return b.once("response",W),b.once("error",O),++r[Sa],L(),b.once("close",()=>{!D&&e.completed Line truncated
`,this[Z6e]=u??3e5,this[K6e]=o??3e5,this[eSe]=B??!0,this[tSe]=D,this[R5]=x,this[xa]=null,this[iSe]=Y>-1?Y:-1,this[cSe]=Ne??100,this[h1]=null,this[po]=[],this[Ii]=0,this[Ao]=0,this[bb]=pe=>w5(this,pe),this[aSe]=pe=>KH(this,pe)}get pipelining(){return this[ng]}set pipelining(e){this[ng]=e,this[bb](!0)}get[hb](){return this[po].length-this[Ao]}get[Mb](){return this[Ao]-this[Ii]}get[fb](){return this[po].length-this[Ii]}get[H6e](){return!!this[h1]&&!this[FA]&&!this[h1].destroyed}get[I5](){return!!(this[h1]?.busy(null)||this[fb]>=(jH(this)||1)||this[hb]>0)}[G6e](e){ZH(this),this.once("connect",e)}[sSe](e,r){let n=e.origin||this[$o].origin,o=new L6e(n,e,r);return this[po].push(o),this[au]||(iu.bodyLength(o.body)==null&&iu.isIterable(o.body)?(this[au]=1,queueMicrotask(()=>w5(this))):this[bb](!0)),this[au]&&this[Ta]!==2&&this[I5]&&(this[Ta]=2),this[Ta]<2}async[nSe](){return new Promise(e=>{this[fb]?this[xa]=e:e(null)})}async[oSe](e){return new Promise(r=>{let n=this[po].splice(this[Ao]);for(let s=0;s<n.length;s++){let a=n[s];iu.errorRequest(this,a,e)}let o=i(()=>{this[xa]&&(this[xa](),this[xa]=null),r(null)},"callback");this[h1]?(this[h1].destroy(e,o),this[h1]=null):queueMicrotask(o),this[bb]()})}},ASe=rg();function KH(t,e){if(t[Mb]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){Di(t[Ao]===t[Ii]);let r=t[po].splice(t[Ii]);for(let n=0;n<r.length;n++){let o=r[n];iu.errorRequest(t,o,e)}Di(t[fb]===0)}}i(KH,"onError");async function ZH(t){Di(!t[FA]),Di(!t[h1]);let{host:e,hostname:r,protocol:n,port:o}=t[$o];if(r[0]==="["){let s=r.indexOf("]");Di(s!==-1);let a=r.substring(1,s);Di($H.isIP(a)),r=a}t[FA]=!0,SA.beforeConnect.hasSubscribers&&SA.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:n,port:o,version:t[h1]?.version,servername:t[Wa],localAddress:t[db]},connector:t[lb]});try{let s=await new Promise((a,c)=>{t[lb]({host:e,hostname:r,protocol:n,port:o,servername:t[Wa],localAddress:t[db]},(u,p)=>{u?c(u):a(p)})});if(t.destroyed){iu.destroy(s.on("error",YH),new P6e);return}Di(s);try{t[h1]=s.alpnProtocol==="h2"?await pSe(t,s):await uSe(t,s)}catch(a){throw s.destroy().on("error",YH),a}t[FA]=!1,s[rSe]=0,s[R5]=t[R5],s[U6e]=t,s[V6e]=null,SA.connected.hasSubscribers&&SA.connected.publish({connectParams:{host:e,hostname:r,protocol:n,port:o,version:t[h1]?.version,servername:t[Wa],localAddress:t[db]},connector:t[lb],socket:s}),t.emit("connect",t[$o],[t])}catch(s){if(t.destroyed)return;if(t[FA]=!1,SA.connectError.hasSubscribers&&SA.connectError.publish({connectParams:{host:e,hostname:r,protocol:n,port:o,version:t[h1]?.version,servername:t[Wa],localAddress:t[db]},connector:t[lb],error:s}),s.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(Di(t[Mb]===0);t[hb]>0&&t[po][t[Ao]].servername===t[Wa];){let a=t[po][t[Ao]++];iu.errorRequest(t,a,s)}else KH(t,s);t.emit("connectionError",t[$o],[t],s)}t[bb]()}i(ZH,"connect");function JH(t){t[Ta]=0,t.emit("drain",t[$o],[t])}i(JH,"emitDrain");function w5(t,e){t[au]!==2&&(t[au]=2,lSe(t,e),t[au]=0,t[Ii]>256&&(t[po].splice(0,t[Ii]),t[Ao]-=t[Ii],t[Ii]=0))}i(w5,"resume");function lSe(t,e){for(;;){if(t.destroyed){Di(t[hb]===0);return}if(t[xa]&&!t[fb]){t[xa](),t[xa]=null;return}if(t[h1]&&t[h1].resume(),t[I5])t[Ta]=2;else if(t[Ta]===2){e?(t[Ta]=1,queueMicrotask(()=>JH(t))):JH(t);continue}if(t[hb]===0||t[Mb]>=(jH(t)||1))return;let r=t[po][t[Ao]];if(t[$o].protocol==="https:"&&t[Wa]!==r.servername){if(t[Mb]>0)return;t[Wa]=r.servername,t[h1]?.destroy(new _6e("servername changed"),()=>{t[h1]=null,w5(t)})}if(t[FA])return;if(!t[h1]){ZH(t);return}if(t[h1].destroyed||t[h1].busy(r))return;!r.aborted&&t[h1].write(r)?t[Ao]++:t[po].splice(t[Ao],1)}}i(lSe,"_resume");eX.exports=N5});var S5=h((vq0,tX)=>{"use strict";var og=class{static{i(this,"FixedCircularBuffer")}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)}};tX.exports=class{static{i(this,"FixedQueue")}constructor(){this.head=this.tail=new og}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new og),this.head.push(e)}shift(){let e=this.tail,r=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next),r}}});var nX=h((Qq0,rX)=>{var{kFree:dSe,kConnected:bSe,kPending:fSe,kQueued:MSe,kRunning:hSe,kSize:mSe}=k0(),cu=Symbol("pool"),F5=class{static{i(this,"PoolStats")}constructor(e){this[cu]=e}get connected(){return this[cu][bSe]}get free(){return this[cu][dSe]}get pending(){return this[cu][fSe]}get queued(){return this[cu][MSe]}get running(){return this[cu][hSe]}get size(){return this[cu][mSe]}};rX.exports=F5});var Q5=h((Pq0,dX)=>{"use strict";var zSe=mA(),gSe=S5(),{kConnected:W5,kSize:oX,kRunning:sX,kPending:iX,kQueued:mb,kBusy:OSe,kFree:ESe,kUrl:CSe,kClose:ySe,kDestroy:BSe,kDispatch:qSe}=k0(),DSe=nX(),rr=Symbol("clie Line truncated
${n.count} ${n.noun} ${n.is} pending:
${e.format(r)}
`.trim())}};MY.exports=xR});var Og=h((ND0,OY)=>{"use strict";var mY=Symbol.for("undici.globalDispatcher.1"),{InvalidArgumentError:KWe}=i0(),ZWe=TA();gY()===void 0&&zY(new ZWe);function zY(t){if(!t||typeof t.dispatch!="function")throw new KWe("Argument agent must implement Agent");Object.defineProperty(globalThis,mY,{value:t,writable:!0,enumerable:!1,configurable:!1})}i(zY,"setGlobalDispatcher");function gY(){return globalThis[mY]}i(gY,"getGlobalDispatcher");OY.exports={setGlobalDispatcher:zY,getGlobalDispatcher:gY}});var Eg=h((FD0,EY)=>{"use strict";EY.exports=class{static{i(this,"DecoratorHandler")}#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 yY=h((xD0,CY)=>{"use strict";var exe=eg();CY.exports=t=>{let e=t?.maxRedirections;return r=>i(function(o,s){let{maxRedirections:a=e,...c}=o;if(!a)return r(o,s);let u=new exe(r,a,o,s);return r(c,u)},"redirectInterceptor")}});var qY=h((vD0,BY)=>{"use strict";var txe=Ag();BY.exports=t=>e=>i(function(n,o){return e(n,new txe({...n,retryOptions:{...t,...n.retryOptions}},{handler:o,dispatch:e}))},"retryInterceptor")});var IY=h((QD0,DY)=>{"use strict";var rxe=He(),{InvalidArgumentError:nxe,RequestAbortedError:oxe}=i0(),sxe=Eg(),TR=class extends sxe{static{i(this,"DumpHandler")}#e=1024*1024;#t=null;#n=!1;#r=!1;#o=0;#s=null;#a=null;constructor({maxSize:e},r){if(super(r),e!=null&&(!Number.isFinite(e)||e<1))throw new nxe("maxSize must be a number greater than 0");this.#e=e??this.#e,this.#a=r}onConnect(e){this.#t=e,this.#a.onConnect(this.#i.bind(this))}#i(e){this.#r=!0,this.#s=e}onHeaders(e,r,n,o){let a=rxe.parseHeaders(r)["content-length"];if(a!=null&&a>this.#e)throw new oxe(`Response size (${a}) larger than maxSize (${this.#e})`);return this.#r?!0:this.#a.onHeaders(e,r,n,o)}onError(e){this.#n||(e=this.#s??e,this.#a.onError(e))}onData(e){return this.#o=this.#o+e.length,this.#o>=this.#e&&(this.#n=!0,this.#r?this.#a.onError(this.#s):this.#a.onComplete([])),!0}onComplete(e){if(!this.#n){if(this.#r){this.#a.onError(this.reason);return}this.#a.onComplete(e)}}};function ixe({maxSize:t}={maxSize:1024*1024}){return e=>i(function(n,o){let{dumpMaxSize:s=t}=n,a=new TR({maxSize:s},o);return e(n,a)},"Intercept")}i(ixe,"createDumpInterceptor");DY.exports=ixe});var wY=h((PD0,NY)=>{"use strict";var{isIP:axe}=require("node:net"),{lookup:cxe}=require("node:dns"),uxe=Eg(),{InvalidArgumentError:VA,InformationalError:pxe}=i0(),RY=Math.pow(2,31)-1,vR=class{static{i(this,"DNSInstance")}#e=0;#t=0;#n=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.#o}get full(){return this.#n.size===this.#t}runLookup(e,r,n){let o=this.#n.get(e.hostname);if(o==null&&this.full){n(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(o==null)this.lookup(e,s,(a,c)=>{if(a||c==null||c.length===0){n(a??new pxe("No DNS entries found"));return}this.setRecords(e,c);let u=this.#n.get(e.hostname),p=this.pick(e,u,s.affinity),A;typeof p.port=="number"?A=`:${p.port}`:e.port!==""?A=`:${e.port}`:A="",n(null,`${e.protocol}//${p.family===6?`[${p.address}]`:p.address}${A}`)});else{let a=this.pick(e,o,s.affinity);if(a==null){this.#n.delete(e.hostname),this.runLookup(e,r,n);return}let c;typeof a.port=="number"?c=`:${a.port}`:e.port!==""?c=`:${e.port}`:c="",n(null,`${e.protocol}//${a.family===6?`[${a.address}]`:a.address}${c}`)}}#r(e,r,n){cxe(e.hostname,{all:!0,family:this.dualStack===!1?this.affinity:0,order:"ipv4first"},(o,s)=>{if(o)return n(o);let a=new Map;for(let c of s)a.set(`${c.address}:${c.family}`,c);n(null,a.values())})}#o(e,r,n){let o=null,{records:s,offset:a}=r,c;if(this.dualStack?(n==null&&(a==null||a===RY?(r.offset=0,n=4):(r.offset++,n=(r.offset&1)===1?6:4)),s[n]!=null&&s[n].ips.length>0?c=s[n]:c=s[n===4?6:4]):c=s[n],c==null||c.ips.length===0)return o;c.offset==null||c.offset===RY?c.offset=0:c.offset++;let u=c.offset%c.ips.length;return o=c.ips[u]??null,o==null?o:Date.now()-o.timestamp>o.ttl?(c.ips.splice(u,1),this.pick(e,r,n)):o}setRecords(e,r){let n=Date.now(),o={records:{4:null,6:null}};for(let s of r){s.timestamp=n,typeof s.ttl=="number"?s.ttl=Math.min(s.ttl,this.#e):s.ttl=this.#e;let a=o.records[s.family]??{ips:[]};a.ips.push(s),o.records[s.family]=a}this.#n.set(e.hostname,o)}getHandler(e,r){return new LR(this,e,r)}},LR=class extends uxe{static{i(this,"DNSDispatchHandler")}#e=null;#t=null;#n=null Line truncated
${s}`;break;case"retry":uj(s)&&(r[o]=s);break;case"id":pj(s)&&(r[o]=s);break;case"event":s.length>0&&(r[o]=s);break}}processEvent(e){e.retry&&uj(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id&&pj(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}}};Aj.exports={EventSourceStream:DN}});var gj=h((GI0,zj)=>{"use strict";var{pipeline:mQe}=require("node:stream"),{fetching:zQe}=Sb(),{makeRequest:gQe}=$A(),{webidl:Wi}=st(),{EventSourceStream:OQe}=lj(),{parseMIMEType:EQe}=Zt(),{createFastMessageEvent:CQe}=rl(),{isNetworkError:dj}=Nb(),{delay:yQe}=BN(),{kEnumerableProperty:yu}=He(),{environmentSettingsObject:bj}=Rr(),fj=!1,Mj=3e3,Xb=0,hj=1,Vb=2,BQe="anonymous",qQe="use-credentials",al=class t extends EventTarget{static{i(this,"EventSource")}#e={open:null,error:null,message:null};#t=null;#n=!1;#r=Xb;#o=null;#s=null;#a;#i;constructor(e,r={}){super(),Wi.util.markAsUncloneable(this);let n="EventSource constructor";Wi.argumentLengthCheck(arguments,1,n),fj||(fj=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=Wi.converters.USVString(e,n,"url"),r=Wi.converters.EventSourceInitDict(r,n,"eventSourceInitDict"),this.#a=r.dispatcher,this.#i={lastEventId:"",reconnectionTime:Mj};let o=bj,s;try{s=new URL(e,o.settingsObject.baseUrl),this.#i.origin=s.origin}catch(u){throw new DOMException(u,"SyntaxError")}this.#t=s.href;let a=BQe;r.withCredentials&&(a=qQe,this.#n=!0);let c={redirect:"follow",keepalive:!0,mode:"cors",credentials:a==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};c.client=bj.settingsObject,c.headersList=[["accept",{name:"accept",value:"text/event-stream"}]],c.cache="no-store",c.initiator="other",c.urlList=[new URL(this.#t)],this.#o=gQe(c),this.#u()}get readyState(){return this.#r}get url(){return this.#t}get withCredentials(){return this.#n}#u(){if(this.#r===Vb)return;this.#r=Xb;let e={request:this.#o,dispatcher:this.#a},r=i(n=>{dj(n)&&(this.dispatchEvent(new Event("error")),this.close()),this.#c()},"processEventSourceEndOfBody");e.processResponseEndOfBody=r,e.processResponse=n=>{if(dj(n))if(n.aborted){this.close(),this.dispatchEvent(new Event("error"));return}else{this.#c();return}let o=n.headersList.get("content-type",!0),s=o!==null?EQe(o):"failure",a=s!=="failure"&&s.essence==="text/event-stream";if(n.status!==200||a===!1){this.close(),this.dispatchEvent(new Event("error"));return}this.#r=hj,this.dispatchEvent(new Event("open")),this.#i.origin=n.urlList[n.urlList.length-1].origin;let c=new OQe({eventSourceSettings:this.#i,push:i(u=>{this.dispatchEvent(CQe(u.type,u.options))},"push")});mQe(n.body.stream,c,u=>{u?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#s=zQe(e)}async#c(){this.#r!==Vb&&(this.#r=Xb,this.dispatchEvent(new Event("error")),await yQe(this.#i.reconnectionTime),this.#r===Xb&&(this.#i.lastEventId.length&&this.#o.headersList.set("last-event-id",this.#i.lastEventId,!0),this.#u()))}close(){Wi.brandCheck(this,t),this.#r!==Vb&&(this.#r=Vb,this.#s.abort(),this.#o=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}},mj={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:Xb,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:hj,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:Vb,writable:!1}};Object.defineProperties(al,mj);Object.defineProperties(al.prototype,mj);Object.defineProperties(al.prototype,{close:yu,onerror:yu,onmessage:yu,onopen:yu,readyState:yu,url:yu,withCredentials:yu});Wi.converters.EventSourceInitDict=Wi.dictionaryConverter([{key:"withCredentials",converter:Wi.converters.boolean,defaultValue:i(()=>!1,"defaultValue")},{key:"dispatcher",converter:Wi.converters.any}]);zj.exports={EventSource:al,defaultReconnectionTime:Mj}});var ul=h((XI0,ze)=>{"use strict";var DQe=WA(),Oj=jd(),IQe=xA(),RQe=mX(),NQe=TA(),wQe=Y5(),SQe=kX(),FQe=JX(),Ej=i0(),uO=He(),{InvalidArgumentError:cO}=Ej,cl=xV(),WQe=Zd(),xQe=RR(),TQe=hY(),vQe=SR(),LQe=MR(),QQe=Ag(),{getGlobalDispatcher:Cj,setGlobalDispatcher:_Qe}=Og(),PQe=Eg(),kQe=eg(),UQe=tg();Object.assign(Oj.prototype,cl);ze.exports.Dispatcher=Oj;ze.exports.Client=DQe;ze.exports.Pool=IQe;ze.exports.BalancedPool=RQe;ze.exports.Agent=NQe;ze.exports. Line truncated
%s`,W,W,B,n);var x=B.type==="*"?Sw:B.type==="?"?ww:"\\"+B.type;o=!0,n=n.slice(0,B.reStart)+x+"\\("+W}z(),s&&(n+="\\\\");var L=!1;switch(n.charAt(0)){case"[":case".":case"(":L=!0}for(var ce=c.length-1;ce>-1;ce--){var Te=c[ce],Ge=n.slice(0,Te.reStart),Ne=n.slice(Te.reStart,Te.reEnd-8),Be=n.slice(Te.reEnd-8,Te.reEnd),ke=n.slice(Te.reEnd);Be+=ke;var pe=Ge.split("(").length-1,Ue=ke;for(O=0;O<pe;O++)Ue=Ue.replace(/\)[+*?]?/,"");ke=Ue;var J="";ke===""&&e!==FO&&(J="$");var Qe=Ge+Ne+ke+J+Be;n=Qe}if(n!==""&&o&&(n="(?=.)"+n),L&&(n=b+n),e===FO)return[n,o];if(!o)return a7e(t);var C0=r.nocase?"i":"";try{var Mt=new RegExp("^"+n+"$",C0)}catch{return new RegExp("$.")}return Mt._glob=t,Mt._src=n,Mt}i(s7e,"parse");kr.makeRe=function(t,e){return new ct(t,e||{}).makeRe()};ct.prototype.makeRe=i7e;function i7e(){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?Sw:e.dot?Kke:Zke,n=e.nocase?"i":"",o=t.map(function(s){return s.map(function(a){return a===Fw?r:typeof a=="string"?c7e(a):a._src}).join("\\/")}).join("|");o="^(?:"+o+")$",this.negate&&(o="^(?!"+o+").*$");try{this.regexp=new RegExp(o,n)}catch{this.regexp=!1}return this.regexp}i(i7e,"makeRe");kr.match=function(t,e,r){r=r||{};var n=new ct(e,r);return t=t.filter(function(o){return n.match(o)}),n.options.nonull&&!t.length&&t.push(e),t};ct.prototype.match=i(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 n=this.options;hf.sep!=="/"&&(e=e.split(hf.sep).join("/")),e=e.split(Ree),this.debug(this.pattern,"split",e);var o=this.set;this.debug(this.pattern,"set",o);var s,a;for(a=e.length-1;a>=0&&(s=e[a],!s);a--);for(a=0;a<o.length;a++){var c=o[a],u=e;n.matchBase&&c.length===1&&(u=[s]);var p=this.matchOne(u,c,r);if(p)return n.flipNegate?!0:!this.negate}return n.flipNegate?!1:this.negate},"match");ct.prototype.matchOne=function(t,e,r){var n=this.options;this.debug("matchOne",{this:this,file:t,pattern:e}),this.debug("matchOne",t.length,e.length);for(var o=0,s=0,a=t.length,c=e.length;o<a&&s<c;o++,s++){this.debug("matchOne loop");var u=e[s],p=t[o];if(this.debug(e,u,p),u===!1)return!1;if(u===Fw){this.debug("GLOBSTAR",[e,u,p]);var A=o,l=s+1;if(l===c){for(this.debug("** at the end");o<a;o++)if(t[o]==="."||t[o]===".."||!n.dot&&t[o].charAt(0)===".")return!1;return!0}for(;A<a;){var b=t[A];if(this.debug(`
`.trim())}};gY.exports=QR});var Eg=h((QD0,BY)=>{"use strict";var EY=Symbol.for("undici.globalDispatcher.1"),{InvalidArgumentError:ZWe}=i0(),exe=TA();yY()===void 0&&CY(new exe);function CY(t){if(!t||typeof t.dispatch!="function")throw new ZWe("Argument agent must implement Agent");Object.defineProperty(globalThis,EY,{value:t,writable:!0,enumerable:!1,configurable:!1})}i(CY,"setGlobalDispatcher");function yY(){return globalThis[EY]}i(yY,"getGlobalDispatcher");BY.exports={setGlobalDispatcher:CY,getGlobalDispatcher:yY}});var Cg=h((kD0,qY)=>{"use strict";qY.exports=class{static{i(this,"DecoratorHandler")}#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 IY=h((GD0,DY)=>{"use strict";var txe=tg();DY.exports=t=>{let e=t?.maxRedirections;return r=>i(function(o,s){let{maxRedirections:a=e,...c}=o;if(!a)return r(o,s);let u=new txe(r,a,o,s);return r(c,u)},"redirectInterceptor")}});var NY=h((XD0,RY)=>{"use strict";var rxe=lg();RY.exports=t=>e=>i(function(n,o){return e(n,new rxe({...n,retryOptions:{...t,...n.retryOptions}},{handler:o,dispatch:e}))},"retryInterceptor")});var SY=h((YD0,wY)=>{"use strict";var nxe=He(),{InvalidArgumentError:oxe,RequestAbortedError:sxe}=i0(),ixe=Cg(),_R=class extends ixe{static{i(this,"DumpHandler")}#e=1024*1024;#t=null;#n=!1;#r=!1;#o=0;#s=null;#a=null;constructor({maxSize:e},r){if(super(r),e!=null&&(!Number.isFinite(e)||e<1))throw new oxe("maxSize must be a number greater than 0");this.#e=e??this.#e,this.#a=r}onConnect(e){this.#t=e,this.#a.onConnect(this.#i.bind(this))}#i(e){this.#r=!0,this.#s=e}onHeaders(e,r,n,o){let a=nxe.parseHeaders(r)["content-length"];if(a!=null&&a>this.#e)throw new sxe(`Response size (${a}) larger than maxSize (${this.#e})`);return this.#r?!0:this.#a.onHeaders(e,r,n,o)}onError(e){this.#n||(e=this.#s??e,this.#a.onError(e))}onData(e){return this.#o=this.#o+e.length,this.#o>=this.#e&&(this.#n=!0,this.#r?this.#a.onError(this.#s):this.#a.onComplete([])),!0}onComplete(e){if(!this.#n){if(this.#r){this.#a.onError(this.reason);return}this.#a.onComplete(e)}}};function axe({maxSize:t}={maxSize:1024*1024}){return e=>i(function(n,o){let{dumpMaxSize:s=t}=n,a=new _R({maxSize:s},o);return e(n,a)},"Intercept")}i(axe,"createDumpInterceptor");wY.exports=axe});var xY=h(($D0,WY)=>{"use strict";var{isIP:cxe}=require("node:net"),{lookup:uxe}=require("node:dns"),pxe=Cg(),{InvalidArgumentError:HA,InformationalError:Axe}=i0(),FY=Math.pow(2,31)-1,PR=class{static{i(this,"DNSInstance")}#e=0;#t=0;#n=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.#o}get full(){return this.#n.size===this.#t}runLookup(e,r,n){let o=this.#n.get(e.hostname);if(o==null&&this.full){n(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(o==null)this.lookup(e,s,(a,c)=>{if(a||c==null||c.length===0){n(a??new Axe("No DNS entries found"));return}this.setRecords(e,c);let u=this.#n.get(e.hostname),p=this.pick(e,u,s.affinity),A;typeof p.port=="number"?A=`:${p.port}`:e.port!==""?A=`:${e.port}`:A="",n(null,`${e.protocol}//${p.family===6?`[${p.address}]`:p.address}${A}`)});else{let a=this.pick(e,o,s.affinity);if(a==null){this.#n.delete(e.hostname),this.runLookup(e,r,n);return}let c;typeof a.port=="number"?c=`:${a.port}`:e.port!==""?c=`:${e.port}`:c="",n(null,`${e.protocol}//${a.family===6?`[${a.address}]`:a.address}${c}`)}}#r(e,r,n){uxe(e.hostname,{all:!0,family:this.dualStack===!1?this.affinity:0,order:"ipv4first"},(o,s)=>{if(o)return n(o);let a=new Map;for(let c of s)a.set(`${c.address}:${c.family}`,c);n(null,a.values())})}#o(e,r,n){let o=null,{records:s,offset:a}=r,c;if(this.dualStack?(n==null&&(a==null||a===FY?(r.offset=0,n=4):(r.offset++,n=(r.offset&1)===1?6:4)),s[n]!=null&&s[n].ips.length>0?c=s[n]:c=s[n===4?6:4]):c=s[n],c==null||c.ips.length===0)return o;c.offset==null||c.offset===FY?c.offset=0:c.offset++;let u=c.offset%c.ips.length;return o=c.ips[u]??null,o==null?o:Date.now()-o.timestamp>o.ttl?(c.ips.splice(u,1),this.pick(e,r,n)):o}setRecords(e,r){let n=Date.now(),o={records:{4:null,6:null}};for(let s of r){s.timestamp=n,typeof s.ttl=="number"?s.ttl=Math.min(s.ttl,this.#e):s.ttl=this.#e;let a=o.records[s.family]??{ips:[]};a.ips.push(s),o.records[s.family]=a}this.#n.set(e.hostname,o)}getHandler(e,r){return new kR(this,e,r)}},kR=class extends pxe{static{i(this,"DNSDispatchHandler")}#e=null;#t=null;#n=null Line truncated
${a}`;return}if(uO(e,o,yQe)){BQe(e,s)&&(r.retry=e.toString("utf8",s));return}if(uO(e,o,CQe)){qQe(e,s)&&(r.id=e.toString("utf8",s));return}if(uO(e,o,EQe)){let a=e.toString("utf8",s);a.length>0&&(r.event=a)}}processEvent(e){e.retry&&hQe(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id&&mQe(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,this.event.event=void 0,this.event.id=void 0,this.event.retry=void 0}hasPendingEvent(){return this.event.data!==void 0||this.event.event!==void 0||this.event.id!==void 0||this.event.retry!==void 0}hasCurrentByte(){return this.chunkIndex<this.chunks.length&&this.pos<this.chunks[this.chunkIndex].length}currentByte(){return this.chunks[this.chunkIndex][this.pos]}consumeCurrentByte(){this.advanceCursor(),this.syncLineStartToCursor()}advanceCursor(){for(this.pos++;this.chunkIndex<this.chunks.length&&this.pos>=this.chunks[this.chunkIndex].length;)this.chunkIndex++,this.pos=0}syncLineStartToCursor(){this.lineChunkIndex=this.chunkIndex,this.linePos=this.pos,this.dropConsumedChunks()}dropConsumedChunks(){for(;this.lineChunkIndex>0;)this.chunks.shift(),this.lineChunkIndex--,this.chunkIndex--;this.chunkIndex===this.chunks.length&&(this.chunks.length=0,this.chunkIndex=0,this.pos=0,this.lineChunkIndex=0,this.linePos=0)}readLine(){if(this.lineChunkIndex===this.chunkIndex)return this.chunks[this.chunkIndex].subarray(this.linePos,this.pos);let e=[],r=0;for(let n=this.lineChunkIndex;n<=this.chunkIndex;n++){let o=this.chunks[n],s=n===this.lineChunkIndex?this.linePos:0,a=n===this.chunkIndex?this.pos:o.length,c=o.subarray(s,a);r+=c.length,e.push(c)}return Buffer.concat(e,r)}peekBufferedByte(e){let r=this.lineChunkIndex,n=this.linePos;for(;r<this.chunks.length;){let o=this.chunks[r],s=o.length-n;if(e<s)return o[n+e];e-=s,r++,n=0}}discardLeadingBytes(e){for(;e>0&&this.lineChunkIndex<this.chunks.length;){let n=this.chunks[this.lineChunkIndex].length-this.linePos;e<n?(this.linePos+=e,e=0):(e-=n,this.lineChunkIndex++,this.linePos=0)}this.chunkIndex=this.lineChunkIndex,this.pos=this.linePos,this.dropConsumedChunks()}handleBOM(){let e=this.peekBufferedByte(0),r=this.peekBufferedByte(1),n=this.peekBufferedByte(2);return r===void 0?(e===sl[0]||(this.checkBOM=!1),!0):n===void 0?e===sl[0]&&r===sl[1]?!0:(this.checkBOM=!1,!1):(e===sl[0]&&r===sl[1]&&n===sl[2]&&this.discardLeadingBytes(3),this.checkBOM=!1,!this.hasCurrentByte())}};dj.exports={EventSourceStream:wN}});var Ej=h((ZI0,Oj)=>{"use strict";var{pipeline:DQe}=require("node:stream"),{fetching:IQe}=Sb(),{makeRequest:RQe}=YA(),{webidl:Si}=it(),{EventSourceStream:NQe}=bj(),{parseMIMEType:wQe}=er(),{createFastMessageEvent:SQe}=el(),{isNetworkError:fj}=Nb(),{delay:FQe}=RN(),{kEnumerableProperty:yu}=He(),{environmentSettingsObject:Mj}=wr(),hj=!1,mj=3e3,Xb=0,zj=1,Vb=2,WQe="anonymous",xQe="use-credentials",il=class t extends EventTarget{static{i(this,"EventSource")}#e={open:null,error:null,message:null};#t=null;#n=!1;#r=Xb;#o=null;#s=null;#a;#i;constructor(e,r={}){super(),Si.util.markAsUncloneable(this);let n="EventSource constructor";Si.argumentLengthCheck(arguments,1,n),hj||(hj=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=Si.converters.USVString(e,n,"url"),r=Si.converters.EventSourceInitDict(r,n,"eventSourceInitDict"),this.#a=r.dispatcher,this.#i={lastEventId:"",reconnectionTime:mj};let o=Mj,s;try{s=new URL(e,o.settingsObject.baseUrl),this.#i.origin=s.origin}catch(u){throw new DOMException(u,"SyntaxError")}this.#t=s.href;let a=WQe;r.withCredentials&&(a=xQe,this.#n=!0);let c={redirect:"follow",keepalive:!0,mode:"cors",credentials:a==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};c.client=Mj.settingsObject,c.headersList=[["accept",{name:"accept",value:"text/event-stream"}]],c.cache="no-store",c.initiator="other",c.urlList=[new URL(this.#t)],this.#o=RQe(c),this.#u()}get readyState(){return this.#r}get url(){return this.#t}get withCredentials(){return this.#n}#u(){if(this.#r===Vb)return;this.#r=Xb;let e={request:this.#o,dispatcher:this.#a},r=i(n=>{fj(n)&&(this.dispatchEvent(new Event("error")),this.close()),this.#c()},"processEventSourceEndOfBody");e.processResponseEndOfBody=r,e.processResponse=n=>{if(fj(n))if(n.aborted){this.close(),this.dispatchEvent(new Event("error"));return}else{this.#c();return}let o=n.headersList.get("content-type",!0),s=o!==null?wQe(o):"failure",a=s!=="failure"&&s.essence==="text/event-stream";if(n.status!==200||a===!1){this.close(),this.dispatchEvent(new Event("error"));return}this.#r=zj,this.dispatchEvent(new Event("open")),this.#i.origin=n.urlList[n.urlList.length-1].origin;let c=new NQe({eventSourceSettings:this.#i,push:i(u=>{this.dispatchEvent(SQe(u.type,u.options))},"push")});DQe(n.body.stream,c,u=>{u?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#s=IQ Line truncated
%s`,W,W,B,n);var x=B.type==="*"?Tw:B.type==="?"?xw:"\\"+B.type;o=!0,n=n.slice(0,B.reStart)+x+"\\("+W}z(),s&&(n+="\\\\");var L=!1;switch(n.charAt(0)){case"[":case".":case"(":L=!0}for(var Y=c.length-1;Y>-1;Y--){var Te=c[Y],Ge=n.slice(0,Te.reStart),Ne=n.slice(Te.reStart,Te.reEnd-8),Be=n.slice(Te.reEnd-8,Te.reEnd),ke=n.slice(Te.reEnd);Be+=ke;var pe=Ge.split("(").length-1,Ue=ke;for(O=0;O<pe;O++)Ue=Ue.replace(/\)[+*?]?/,"");ke=Ue;var $="";ke===""&&e!==xO&&($="$");var Qe=Ge+Ne+ke+$+Be;n=Qe}if(n!==""&&o&&(n="(?=.)"+n),L&&(n=b+n),e===xO)return[n,o];if(!o)return M7e(t);var C0=r.nocase?"i":"";try{var ht=new RegExp("^"+n+"$",C0)}catch{return new RegExp("$.")}return ht._glob=t,ht._src=n,ht}i(b7e,"parse");Gr.makeRe=function(t,e){return new ut(t,e||{}).makeRe()};ut.prototype.makeRe=f7e;function f7e(){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?Tw:e.dot?a7e:c7e,n=e.nocase?"i":"",o=t.map(function(s){return s.map(function(a){return a===vw?r:typeof a=="string"?h7e(a):a._src}).join("\\/")}).join("|");o="^(?:"+o+")$",this.negate&&(o="^(?!"+o+").*$");try{this.regexp=new RegExp(o,n)}catch{this.regexp=!1}return this.regexp}i(f7e,"makeRe");Gr.match=function(t,e,r){r=r||{};var n=new ut(e,r);return t=t.filter(function(o){return n.match(o)}),n.options.nonull&&!t.length&&t.push(e),t};ut.prototype.match=i(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 n=this.options;hf.sep!=="/"&&(e=e.split(hf.sep).join("/")),e=e.split(wee),this.debug(this.pattern,"split",e);var o=this.set;this.debug(this.pattern,"set",o);var s,a;for(a=e.length-1;a>=0&&(s=e[a],!s);a--);for(a=0;a<o.length;a++){var c=o[a],u=e;n.matchBase&&c.length===1&&(u=[s]);var p=this.matchOne(u,c,r);if(p)return n.flipNegate?!0:!this.negate}return n.flipNegate?!1:this.negate},"match");ut.prototype.matchOne=function(t,e,r){var n=this.options;this.debug("matchOne",{this:this,file:t,pattern:e}),this.debug("matchOne",t.length,e.length);for(var o=0,s=0,a=t.length,c=e.length;o<a&&s<c;o++,s++){this.debug("matchOne loop");var u=e[s],p=t[o];if(this.debug(e,u,p),u===!1)return!1;if(u===vw){this.debug("GLOBSTAR",[e,u,p]);var A=o,l=s+1;if(l===c){for(this.debug("** at the end");o<a;o++)if(t[o]==="."||t[o]===".."||!n.dot&&t[o].charAt(0)===".")return!1;return!0}for(;A<a;){var b=t[A];if(this.debug(`
globstar while`,t,A,e,l,b),this.matchOne(t.slice(A),e.slice(l),r))return this.debug("globstar found match!",A,a,b),!0;if(b==="."||b===".."||!n.dot&&b.charAt(0)==="."){this.debug("dot detected!",t,A,e,l);break}this.debug("globstar swallow a segment, and continue"),A++}return!!(r&&(this.debug(`
>>> no match, partial?`,t,A,e,l),A===a))}var M;if(typeof u=="string"?(M=p===u,this.debug("string match",u,p,M)):(M=p.match(u),this.debug("pattern match",u,p,M)),!M)return!1}if(o===a&&s===c)return!0;if(o===a)return r;if(s===c)return o===a-1&&t[o]==="";throw new Error("wtf?")};function a7e(t){return t.replace(/\\(.)/g,"$1")}i(a7e,"globUnescape");function c7e(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}i(c7e,"regExpEscape")});var zl=h((C60,Tee)=>{"use strict";var M7e="2.0.0",h7e=Number.MAX_SAFE_INTEGER||9007199254740991,m7e=16,z7e=250,g7e=["major","premajor","minor","preminor","patch","prepatch","prerelease"];Tee.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:m7e,MAX_SAFE_BUILD_LENGTH:z7e,MAX_SAFE_INTEGER:h7e,RELEASE_TYPES:g7e,SEMVER_SPEC_VERSION:M7e,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var gf=h((y60,vee)=>{"use strict";var O7e=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};vee.exports=O7e});var gl=h((os,Lee)=>{"use strict";var{MAX_SAFE_COMPONENT_LENGTH:xw,MAX_SAFE_BUILD_LENGTH:E7e,MAX_LENGTH:C7e}=zl(),y7e=gf();os=Lee.exports={};var B7e=os.re=[],q7e=os.safeRe=[],Z=os.src=[],D7e=os.safeSrc=[],ee=os.t={},I7e=0,Tw="[a-zA-Z0-9-]",R7e=[["\\s",1],["\\d",C7e],[Tw,E7e]],N7e=i(t=>{for(let[e,r]of R7e)t=t.split(`${e}*`).join(`${e}{0,${r}}`).split(`${e}+`).join(`${e}{1,${r}}`);return t},"makeSafeRegex"),Se=i((t,e,r)=>{let n=N7e(e),o=I7e++;y7e(t,o,e),ee[t]=o,Z[o]=e,D7e[o]=n,B7e[o]=new RegExp(e,r?"g":void 0),q7e[o]=new RegExp(n,r?"g":void 0)},"createToken");Se("NUMERICIDENTIFIER","0|[1-9]\\d*");Se("NUMERICIDENTIFIERLOOSE","\\d+");Se("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${Tw}*`);Se("MAINVERSION",`(${Z[ee.NUMERICIDENTIFIER]})\\.(${Z[ee.NUMERICIDENTIFIER]})\\.(${Z[ee.NUMERICIDENTIFIER]})`);Se("MAINVERSIONLOOSE",`(${Z[ee.NUMERICIDENTIFIERLOOSE]})\\.(${Z[ee.NUMERICIDENTIFIERLOOSE]})\\.(${Z[ee.NUMERICIDENTIFIERLOOSE]})`);Se("PRERELEASEIDENTIFIER",`(?:${Z[ee.NONNUMERICIDENTIFIER]}|${Z[ee.NUMERICIDENTIFIER]})`);Se("PRERELEASEIDENTIFIERLOOSE",`(?:${Z[ee.NONNUMERICIDENTIFIER]}|${Z[ee.NUMERICIDENTIFIERLOOSE]})`);Se("PRERELEASE",`(?:-(${Z[ee.PRERELEASEIDENTIFIER]}(?:\\.${Z[ee.PRERELEASEIDENTIFIER]})*))`);Se("PRERELEASELOOSE",`(?:-?(${Z[ee.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${Z[ee.PRERELEASEIDENTIFIERLOOSE]})*))`);Se("BUILDIDENTIFIER",`${Tw}+`);Se("BUILD",`(?:\\+(${Z[ee.BUILDIDENTIFIER]}(?:\\.${Z[ee.BUILDIDENTIFIER]})*))`);Se("FULLPLAIN",`v?${Z[ee.MAINVERSION]}${Z[ee.PRERELEASE]}?${Z[ee.BUILD]}?`);Se("FULL",`^${Z[ee.FULLPLAIN]}$`);Se("LOOSEPLAIN",`[v=\\s]*${Z[ee.MAINVERSIONLOOSE]}${Z[ee.PRERELEASELOOSE]}?${Z[ee.BUILD]}?`);Se("LOOSE",`^${Z[ee.LOOSEPLAIN]}$`);Se("GTLT","((?:<|>)?=?)");Se("XRANGEIDENTIFIERLOOSE",`${Z[ee.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);Se("XRANGEIDENTIFIER",`${Z[ee.NUMERICIDENTIFIER]}|x|X|\\*`);Se("XRANGEPLAIN",`[v=\\s]*(${Z[ee.XRANGEIDENTIFIER]})(?:\\.(${Z[ee.XRANGEIDENTIFIER]})(?:\\.(${Z[ee.XRANGEIDENTIFIER]})(?:${Z[ee.PRERELEASE]})?${Z[ee.BUILD]}?)?)?`);Se("XRANGEPLAINLOOSE",`[v=\\s]*(${Z[ee.XRANGEIDENTIFIERLOOSE]})(?:\\.(${Z[ee.XRANGEIDENTIFIERLOOSE]})(?:\\.(${Z[ee.XRANGEIDENTIFIERLOOSE]})(?:${Z[ee.PRERELEASELOOSE]})?${Z[ee.BUILD]}?)?)?`);Se("XRANGE",`^${Z[ee.GTLT]}\\s*${Z[ee.XRANGEPLAIN]}$`);Se("XRANGELOOSE",`^${Z[ee.GTLT]}\\s*${Z[ee.XRANGEPLAINLOOSE]}$`);Se("COERCEPLAIN",`(^|[^\\d])(\\d{1,${xw}})(?:\\.(\\d{1,${xw}}))?(?:\\.(\\d{1,${xw}}))?`);Se("COERCE",`${Z[ee.COERCEPLAIN]}(?:$|[^\\d])`);Se("COERCEFULL",Z[ee.COERCEPLAIN]+`(?:${Z[ee.PRERELEASE]})?(?:${Z[ee.BUILD]})?(?:$|[^\\d])`);Se("COERCERTL",Z[ee.COERCE],!0);Se("COERCERTLFULL",Z[ee.COERCEFULL],!0);Se("LONETILDE","(?:~>?)");Se("TILDETRIM",`(\\s*)${Z[ee.LONETILDE]}\\s+`,!0);os.tildeTrimReplace="$1~";Se("TILDE",`^${Z[ee.LONETILDE]}${Z[ee.XRANGEPLAIN]}$`);Se("TILDELOOSE",`^${Z[ee.LONETILDE]}${Z[ee.XRANGEPLAINLOOSE]}$`);Se("LONECARET","(?:\\^)");Se("CARETTRIM",`(\\s*)${Z[ee.LONECARET]}\\s+`,!0);os.caretTrimReplace="$1^";Se("CARET",`^${Z[ee.LONECARET]}${Z[ee.XRANGEPLAIN]}$`);Se("CARETLOOSE",`^${Z[ee.LONECARET]}${Z[ee.XRANGEPLAINLOOSE]}$`);Se("COMPARATORLOOSE",`^${Z[ee.GTLT]}\\s*(${Z[ee.LOOSEPLAIN]})$|^$`);Se("COMPARATOR",`^${Z[ee.GTLT]}\\s*(${Z[ee.FULLPLAIN]})$|^$`);Se("COMPARATORTRIM",`(\\s*)${Z[ee.GTLT]}\\s*(${Z[ee.LOOSEPLAIN]}|${Z[ee.XRANGEPLAIN]})`,!0);os.comparatorTrimReplace="$1$2$3";Se("HYPHENRANGE",`^\\s*(${Z[ee.XRANGEPLAIN]})\\s+-\\s+(${Z[ee.XRANGEPLAIN]})\\s*$`);Se("HYPHENRANGELOOSE",`^\\s*(${Z[ee.XRANGEPLAINLOOSE]})\\s+-\\s+(${Z[ee.XRANGEPLAINLOOSE]})\\s*$`);Se("STAR","(<|>)?=?\\s*\\*");Se("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");Se("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")});var vO=h((q60,Qee)=>{"use strict";var w7e=Object.freeze({loose:!0}),S7e=Object.freeze({}),F7e=i(t=>t?typeof t!="object"?w7e:t:S7e,"parseOptions");Qee.exports=F7e});var vw=h((I60,kee)=>{"use strict";var _ee=/^[0-9]+$/,Pee=i((t,e)=>{if(typeof t=="number"&&typeof e=="number")return t===e?0:t<e?-1:1;let r=_ee.test(t),n=_ee.test(e);return r&&n&&(t=+t,e=+e),t===e?0:r&&!n?-1:n&&! Line truncated
>>> no match, partial?`,t,A,e,l),A===a))}var M;if(typeof u=="string"?(M=p===u,this.debug("string match",u,p,M)):(M=p.match(u),this.debug("pattern match",u,p,M)),!M)return!1}if(o===a&&s===c)return!0;if(o===a)return r;if(s===c)return o===a-1&&t[o]==="";throw new Error("wtf?")};function M7e(t){return t.replace(/\\(.)/g,"$1")}i(M7e,"globUnescape");function h7e(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}i(h7e,"regExpEscape")});var ml=h((S60,Lee)=>{"use strict";var B7e="2.0.0",q7e=Number.MAX_SAFE_INTEGER||9007199254740991,D7e=16,I7e=250,R7e=["major","premajor","minor","preminor","patch","prepatch","prerelease"];Lee.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:D7e,MAX_SAFE_BUILD_LENGTH:I7e,MAX_SAFE_INTEGER:q7e,RELEASE_TYPES:R7e,SEMVER_SPEC_VERSION:B7e,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var gf=h((F60,Qee)=>{"use strict";var N7e=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};Qee.exports=N7e});var zl=h((ss,_ee)=>{"use strict";var{MAX_SAFE_COMPONENT_LENGTH:Qw,MAX_SAFE_BUILD_LENGTH:w7e,MAX_LENGTH:S7e}=ml(),F7e=gf();ss=_ee.exports={};var W7e=ss.re=[],x7e=ss.safeRe=[],ee=ss.src=[],T7e=ss.safeSrc=[],te=ss.t={},v7e=0,_w="[a-zA-Z0-9-]",L7e=[["\\s",1],["\\d",S7e],[_w,w7e]],Q7e=i(t=>{for(let[e,r]of L7e)t=t.split(`${e}*`).join(`${e}{0,${r}}`).split(`${e}+`).join(`${e}{1,${r}}`);return t},"makeSafeRegex"),Se=i((t,e,r)=>{let n=Q7e(e),o=v7e++;F7e(t,o,e),te[t]=o,ee[o]=e,T7e[o]=n,W7e[o]=new RegExp(e,r?"g":void 0),x7e[o]=new RegExp(n,r?"g":void 0)},"createToken");Se("NUMERICIDENTIFIER","0|[1-9]\\d*");Se("NUMERICIDENTIFIERLOOSE","\\d+");Se("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${_w}*`);Se("MAINVERSION",`(${ee[te.NUMERICIDENTIFIER]})\\.(${ee[te.NUMERICIDENTIFIER]})\\.(${ee[te.NUMERICIDENTIFIER]})`);Se("MAINVERSIONLOOSE",`(${ee[te.NUMERICIDENTIFIERLOOSE]})\\.(${ee[te.NUMERICIDENTIFIERLOOSE]})\\.(${ee[te.NUMERICIDENTIFIERLOOSE]})`);Se("PRERELEASEIDENTIFIER",`(?:${ee[te.NONNUMERICIDENTIFIER]}|${ee[te.NUMERICIDENTIFIER]})`);Se("PRERELEASEIDENTIFIERLOOSE",`(?:${ee[te.NONNUMERICIDENTIFIER]}|${ee[te.NUMERICIDENTIFIERLOOSE]})`);Se("PRERELEASE",`(?:-(${ee[te.PRERELEASEIDENTIFIER]}(?:\\.${ee[te.PRERELEASEIDENTIFIER]})*))`);Se("PRERELEASELOOSE",`(?:-?(${ee[te.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${ee[te.PRERELEASEIDENTIFIERLOOSE]})*))`);Se("BUILDIDENTIFIER",`${_w}+`);Se("BUILD",`(?:\\+(${ee[te.BUILDIDENTIFIER]}(?:\\.${ee[te.BUILDIDENTIFIER]})*))`);Se("FULLPLAIN",`v?${ee[te.MAINVERSION]}${ee[te.PRERELEASE]}?${ee[te.BUILD]}?`);Se("FULL",`^${ee[te.FULLPLAIN]}$`);Se("LOOSEPLAIN",`[v=\\s]*${ee[te.MAINVERSIONLOOSE]}${ee[te.PRERELEASELOOSE]}?${ee[te.BUILD]}?`);Se("LOOSE",`^${ee[te.LOOSEPLAIN]}$`);Se("GTLT","((?:<|>)?=?)");Se("XRANGEIDENTIFIERLOOSE",`${ee[te.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);Se("XRANGEIDENTIFIER",`${ee[te.NUMERICIDENTIFIER]}|x|X|\\*`);Se("XRANGEPLAIN",`[v=\\s]*(${ee[te.XRANGEIDENTIFIER]})(?:\\.(${ee[te.XRANGEIDENTIFIER]})(?:\\.(${ee[te.XRANGEIDENTIFIER]})(?:${ee[te.PRERELEASE]})?${ee[te.BUILD]}?)?)?`);Se("XRANGEPLAINLOOSE",`[v=\\s]*(${ee[te.XRANGEIDENTIFIERLOOSE]})(?:\\.(${ee[te.XRANGEIDENTIFIERLOOSE]})(?:\\.(${ee[te.XRANGEIDENTIFIERLOOSE]})(?:${ee[te.PRERELEASELOOSE]})?${ee[te.BUILD]}?)?)?`);Se("XRANGE",`^${ee[te.GTLT]}\\s*${ee[te.XRANGEPLAIN]}$`);Se("XRANGELOOSE",`^${ee[te.GTLT]}\\s*${ee[te.XRANGEPLAINLOOSE]}$`);Se("COERCEPLAIN",`(^|[^\\d])(\\d{1,${Qw}})(?:\\.(\\d{1,${Qw}}))?(?:\\.(\\d{1,${Qw}}))?`);Se("COERCE",`${ee[te.COERCEPLAIN]}(?:$|[^\\d])`);Se("COERCEFULL",ee[te.COERCEPLAIN]+`(?:${ee[te.PRERELEASE]})?(?:${ee[te.BUILD]})?(?:$|[^\\d])`);Se("COERCERTL",ee[te.COERCE],!0);Se("COERCERTLFULL",ee[te.COERCEFULL],!0);Se("LONETILDE","(?:~>?)");Se("TILDETRIM",`(\\s*)${ee[te.LONETILDE]}\\s+`,!0);ss.tildeTrimReplace="$1~";Se("TILDE",`^${ee[te.LONETILDE]}${ee[te.XRANGEPLAIN]}$`);Se("TILDELOOSE",`^${ee[te.LONETILDE]}${ee[te.XRANGEPLAINLOOSE]}$`);Se("LONECARET","(?:\\^)");Se("CARETTRIM",`(\\s*)${ee[te.LONECARET]}\\s+`,!0);ss.caretTrimReplace="$1^";Se("CARET",`^${ee[te.LONECARET]}${ee[te.XRANGEPLAIN]}$`);Se("CARETLOOSE",`^${ee[te.LONECARET]}${ee[te.XRANGEPLAINLOOSE]}$`);Se("COMPARATORLOOSE",`^${ee[te.GTLT]}\\s*(${ee[te.LOOSEPLAIN]})$|^$`);Se("COMPARATOR",`^${ee[te.GTLT]}\\s*(${ee[te.FULLPLAIN]})$|^$`);Se("COMPARATORTRIM",`(\\s*)${ee[te.GTLT]}\\s*(${ee[te.LOOSEPLAIN]}|${ee[te.XRANGEPLAIN]})`,!0);ss.comparatorTrimReplace="$1$2$3";Se("HYPHENRANGE",`^\\s*(${ee[te.XRANGEPLAIN]})\\s+-\\s+(${ee[te.XRANGEPLAIN]})\\s*$`);Se("HYPHENRANGELOOSE",`^\\s*(${ee[te.XRANGEPLAINLOOSE]})\\s+-\\s+(${ee[te.XRANGEPLAINLOOSE]})\\s*$`);Se("STAR","(<|>)?=?\\s*\\*");Se("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");Se("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")});var QO=h((x60,Pee)=>{"use strict";var _7e=Object.freeze({loose:!0}),P7e=Object.freeze({}),k7e=i(t=>t?typeof t!="object"?_7e:t:P7e,"parseOptions");Pee.exports=k7e});var Pw=h((v60,Gee)=>{"use strict";var kee=/^[0-9]+$/,Uee=i((t,e)=>{if(typeof t=="number"&&typeof e=="number")return t===e?0:t<e?-1:1;let r=kee Line truncated
`).join(`
`+s),t.push(o+"m+"+C3.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=zHe()+e+" "+t[0]}i(mHe,"formatArgs");function zHe(){return At.inspectOpts.hideDate?"":new Date().toISOString()+" "}i(zHe,"getDate");function gHe(...t){return process.stderr.write(E3.format(...t)+`
`)}i(gHe,"log");function OHe(t){t?process.env.DEBUG=t:delete process.env.DEBUG}i(OHe,"save");function EHe(){return process.env.DEBUG}i(EHe,"load");function CHe(t){t.inspectOpts={};let e=Object.keys(At.inspectOpts);for(let r=0;r<e.length;r++)t.inspectOpts[e[r]]=At.inspectOpts[e[r]]}i(CHe,"init");C3.exports=B6()(At);var{formatters:Ote}=C3.exports;Ote.o=function(t){return this.inspectOpts.colors=this.useColors,E3.inspect(t,this.inspectOpts).split(`
`).map(e=>e.trim()).join(" ")};Ote.O=function(t){return this.inspectOpts.colors=this.useColors,E3.inspect(t,this.inspectOpts)}});var y3=h((fx0,R6)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?R6.exports=Mte():R6.exports=Ete()});var Bte=h(ir=>{"use strict";var yHe=ir&&ir.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var o=Object.getOwnPropertyDescriptor(e,r);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:i(function(){return e[r]},"get")}),Object.defineProperty(t,n,o)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),BHe=ir&&ir.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Cte=ir&&ir.__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)&&yHe(e,t,r);return BHe(e,t),e};Object.defineProperty(ir,"__esModule",{value:!0});ir.req=ir.json=ir.toBuffer=void 0;var qHe=Cte(require("http")),DHe=Cte(require("https"));async function yte(t){let e=0,r=[];for await(let n of t)e+=n.length,r.push(n);return Buffer.concat(r,e)}i(yte,"toBuffer");ir.toBuffer=yte;async function IHe(t){let r=(await yte(t)).toString("utf8");try{return JSON.parse(r)}catch(n){let o=n;throw o.message+=` (input: ${r})`,o}}i(IHe,"json");ir.json=IHe;function RHe(t,e={}){let n=((typeof t=="string"?t:t.href).startsWith("https:")?DHe:qHe).request(t,e),o=new Promise((s,a)=>{n.once("response",s).once("error",a).end()});return n.then=o.then.bind(o),n}i(RHe,"req");ir.req=RHe});var Rte=h(Xr=>{"use strict";var Dte=Xr&&Xr.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var o=Object.getOwnPropertyDescriptor(e,r);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:i(function(){return e[r]},"get")}),Object.defineProperty(t,n,o)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),NHe=Xr&&Xr.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Ite=Xr&&Xr.__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)&&Dte(e,t,r);return NHe(e,t),e},wHe=Xr&&Xr.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&Dte(e,t,r)};Object.defineProperty(Xr,"__esModule",{value:!0});Xr.Agent=void 0;var SHe=Ite(require("net")),qte=Ite(require("http")),FHe=require("https");wHe(Bte(),Xr);var cs=Symbol("AgentBaseInternalState"),N6=class extends qte.Agent{static{i(this,"Agent")}constructor(e){super(e),this[cs]={}}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(n=>n.indexOf("(https.js:")!==-1||n.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 SHe.Socket({writable:!1});return this.sockets[e].push(r),this.totalSocketCount++,r}decrementSockets(e,r){if(!this.sockets[e]||r===null)return;let n=this.sockets[e],o=n.indexOf(r);o!==-1&&(n.splice(o,1),this.totalSocketCount--,n.length===0&&delete this.sockets[e])}getName(e){return this.isSecureEndpoint(e)?FHe.Agent.prototype.getName.call(this,e):super.getName(e)}createSocket(e,r,n){let o={...r,secureEndpoint:this.isSecureEndpoint(r)},s=this.getName(o),a=this.incrementSockets(s);Promise.resolve().then(()=>this.connect(e,o)).then(c=>{if(this.decrementSockets(s,a),c instanceof qte.Agent)try{return c.addRequest(e,o)}catch(u){return n(u)}this[cs].currentSocket=c,super.createSocket(e,r,n)},c=>{this.decrementSockets(s,a),n(c)})}createConnection(){let e=this[cs].currentSocket;if(this[cs].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[cs].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[cs]&&(this[cs].defaultPort=e)}get protocol(){return this[cs].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[cs]&&(this[cs].protocol=e)}};Xr.Agent=N6});var Nte=h(Nl=>{"use strict";var WHe=Nl&&Nl.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Nl,"__esModule",{value:!0});Nl.parseProxyResponse=void 0;var xHe=WHe(y3()),B3=(0,xHe.default)("https-proxy-agent:parse-proxy-response");function THe(t){return new Promise((e,r)=>{let n=0,o=[];function s(){let A=t.read();A?p(A):t.once("readable",s)}i(s,"read");function a(){t.removeListener("end",c),t.removeListener("error",u),t.removeListener("readable",s)}i(a,"cleanup");function c(){a(),B3("onend"),r(new Error("Proxy connection ended before receiving CONNECT response"))}i(c,"onend");function u(A){a(),B3("onerror %o",A),r(A)}i(u,"onerror");function p(A){o.push(A),n+=A.length;let l=Buffer.concat(o,n),b=l.indexOf(`\r
`+s),t.push(o+"m+"+B3.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=IHe()+e+" "+t[0]}i(DHe,"formatArgs");function IHe(){return lt.inspectOpts.hideDate?"":new Date().toISOString()+" "}i(IHe,"getDate");function RHe(...t){return process.stderr.write(y3.format(...t)+`
`)}i(RHe,"log");function NHe(t){t?process.env.DEBUG=t:delete process.env.DEBUG}i(NHe,"save");function wHe(){return process.env.DEBUG}i(wHe,"load");function SHe(t){t.inspectOpts={};let e=Object.keys(lt.inspectOpts);for(let r=0;r<e.length;r++)t.inspectOpts[e[r]]=lt.inspectOpts[e[r]]}i(SHe,"init");B3.exports=R6()(lt);var{formatters:Cte}=B3.exports;Cte.o=function(t){return this.inspectOpts.colors=this.useColors,y3.inspect(t,this.inspectOpts).split(`
`).map(e=>e.trim()).join(" ")};Cte.O=function(t){return this.inspectOpts.colors=this.useColors,y3.inspect(t,this.inspectOpts)}});var q3=h((yx0,F6)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?F6.exports=mte():F6.exports=yte()});var Dte=h(ar=>{"use strict";var FHe=ar&&ar.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var o=Object.getOwnPropertyDescriptor(e,r);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:i(function(){return e[r]},"get")}),Object.defineProperty(t,n,o)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),WHe=ar&&ar.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Bte=ar&&ar.__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)&&FHe(e,t,r);return WHe(e,t),e};Object.defineProperty(ar,"__esModule",{value:!0});ar.req=ar.json=ar.toBuffer=void 0;var xHe=Bte(require("http")),THe=Bte(require("https"));async function qte(t){let e=0,r=[];for await(let n of t)e+=n.length,r.push(n);return Buffer.concat(r,e)}i(qte,"toBuffer");ar.toBuffer=qte;async function vHe(t){let r=(await qte(t)).toString("utf8");try{return JSON.parse(r)}catch(n){let o=n;throw o.message+=` (input: ${r})`,o}}i(vHe,"json");ar.json=vHe;function LHe(t,e={}){let n=((typeof t=="string"?t:t.href).startsWith("https:")?THe:xHe).request(t,e),o=new Promise((s,a)=>{n.once("response",s).once("error",a).end()});return n.then=o.then.bind(o),n}i(LHe,"req");ar.req=LHe});var wte=h(Yr=>{"use strict";var Rte=Yr&&Yr.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var o=Object.getOwnPropertyDescriptor(e,r);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:i(function(){return e[r]},"get")}),Object.defineProperty(t,n,o)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),QHe=Yr&&Yr.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Nte=Yr&&Yr.__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)&&Rte(e,t,r);return QHe(e,t),e},_He=Yr&&Yr.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&Rte(e,t,r)};Object.defineProperty(Yr,"__esModule",{value:!0});Yr.Agent=void 0;var PHe=Nte(require("net")),Ite=Nte(require("http")),kHe=require("https");_He(Dte(),Yr);var us=Symbol("AgentBaseInternalState"),W6=class extends Ite.Agent{static{i(this,"Agent")}constructor(e){super(e),this[us]={}}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(n=>n.indexOf("(https.js:")!==-1||n.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 PHe.Socket({writable:!1});return this.sockets[e].push(r),this.totalSocketCount++,r}decrementSockets(e,r){if(!this.sockets[e]||r===null)return;let n=this.sockets[e],o=n.indexOf(r);o!==-1&&(n.splice(o,1),this.totalSocketCount--,n.length===0&&delete this.sockets[e])}getName(e){return this.isSecureEndpoint(e)?kHe.Agent.prototype.getName.call(this,e):super.getName(e)}createSocket(e,r,n){let o={...r,secureEndpoint:this.isSecureEndpoint(r)},s=this.getName(o),a=this.incrementSockets(s);Promise.resolve().then(()=>this.connect(e,o)).then(c=>{if(this.decrementSockets(s,a),c instanceof Ite.Agent)try{return c.addRequest(e,o)}catch(u){return n(u)}this[us].currentSocket=c,super.createSocket(e,r,n)},c=>{this.decrementSockets(s,a),n(c)})}createConnection(){let e=this[us].currentSocket;if(this[us].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[us].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[us]&&(this[us].defaultPort=e)}get protocol(){return this[us].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[us]&&(this[us].protocol=e)}};Yr.Agent=W6});var Ste=h(Rl=>{"use strict";var UHe=Rl&&Rl.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Rl,"__esModule",{value:!0});Rl.parseProxyResponse=void 0;var GHe=UHe(q3()),D3=(0,GHe.default)("https-proxy-agent:parse-proxy-response");function HHe(t){return new Promise((e,r)=>{let n=0,o=[];function s(){let A=t.read();A?p(A):t.once("readable",s)}i(s,"read");function a(){t.removeListener("end",c),t.removeListener("error",u),t.removeListener("readable",s)}i(a,"cleanup");function c(){a(),D3("onend"),r(new Error("Proxy connection ended before receiving CONNECT response"))}i(c,"onend");function u(A){a(),D3("onerror %o",A),r(A)}i(u,"onerror");function p(A){o.push(A),n+=A.length;let l=Buffer.concat(o,n),b=l.indexOf(`\r
\r
`);if(b===-1){B3("have not received end of HTTP headers yet..."),s();return}let M=l.slice(0,b).toString("ascii").split(`\r
`),z=M.shift();if(!z)return t.destroy(),r(new Error("No header received from proxy CONNECT response"));let O=z.split(" "),y=+O[1],E=O.slice(2).join(" "),B={};for(let q of M){if(!q)continue;let I=q.indexOf(":");if(I===-1)return t.destroy(),r(new Error(`Invalid header from proxy CONNECT response: "${q}"`));let W=q.slice(0,I).toLowerCase(),x=q.slice(I+1).trimStart(),L=B[W];typeof L=="string"?B[W]=[L,x]:Array.isArray(L)?L.push(x):B[W]=x}B3("got proxy server response: %o %o",z,B),a(),e({connect:{statusCode:y,statusText:E,headers:B},buffered:l})}i(p,"ondata"),t.on("error",u),t.on("end",c),s()})}i(THe,"parseProxyResponse");Nl.parseProxyResponse=THe});var Tte=h(Dn=>{"use strict";var vHe=Dn&&Dn.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var o=Object.getOwnPropertyDescriptor(e,r);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:i(function(){return e[r]},"get")}),Object.defineProperty(t,n,o)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),LHe=Dn&&Dn.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Wte=Dn&&Dn.__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)&&vHe(e,t,r);return LHe(e,t),e},xte=Dn&&Dn.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Dn,"__esModule",{value:!0});Dn.HttpsProxyAgent=void 0;var q3=Wte(require("net")),wte=Wte(require("tls")),QHe=xte(require("assert")),_He=xte(y3()),PHe=Rte(),kHe=require("url"),UHe=Nte(),xf=(0,_He.default)("https-proxy-agent"),Ste=i(t=>t.servername===void 0&&t.host&&!q3.isIP(t.host)?{...t,servername:t.host}:t,"setServernameFromNonIpHost"),D3=class extends PHe.Agent{static{i(this,"HttpsProxyAgent")}constructor(e,r){super(r),this.options={path:void 0},this.proxy=typeof e=="string"?new kHe.URL(e):e,this.proxyHeaders=r?.headers??{},xf("Creating new HttpsProxyAgent instance: %o",this.proxy.href);let n=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),o=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={ALPNProtocols:["http/1.1"],...r?Fte(r,"headers"):null,host:n,port:o}}async connect(e,r){let{proxy:n}=this;if(!r.host)throw new TypeError('No "host" provided');let o;n.protocol==="https:"?(xf("Creating `tls.Socket`: %o",this.connectOpts),o=wte.connect(Ste(this.connectOpts))):(xf("Creating `net.Socket`: %o",this.connectOpts),o=q3.connect(this.connectOpts));let s=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders},a=q3.isIPv6(r.host)?`[${r.host}]`:r.host,c=`CONNECT ${a}:${r.port} HTTP/1.1\r
`);if(b===-1){D3("have not received end of HTTP headers yet..."),s();return}let M=l.slice(0,b).toString("ascii").split(`\r
`),z=M.shift();if(!z)return t.destroy(),r(new Error("No header received from proxy CONNECT response"));let O=z.split(" "),y=+O[1],E=O.slice(2).join(" "),B={};for(let q of M){if(!q)continue;let D=q.indexOf(":");if(D===-1)return t.destroy(),r(new Error(`Invalid header from proxy CONNECT response: "${q}"`));let W=q.slice(0,D).toLowerCase(),x=q.slice(D+1).trimStart(),L=B[W];typeof L=="string"?B[W]=[L,x]:Array.isArray(L)?L.push(x):B[W]=x}D3("got proxy server response: %o %o",z,B),a(),e({connect:{statusCode:y,statusText:E,headers:B},buffered:l})}i(p,"ondata"),t.on("error",u),t.on("end",c),s()})}i(HHe,"parseProxyResponse");Rl.parseProxyResponse=HHe});var Lte=h(Rn=>{"use strict";var XHe=Rn&&Rn.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var o=Object.getOwnPropertyDescriptor(e,r);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:i(function(){return e[r]},"get")}),Object.defineProperty(t,n,o)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),VHe=Rn&&Rn.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Tte=Rn&&Rn.__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)&&XHe(e,t,r);return VHe(e,t),e},vte=Rn&&Rn.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Rn,"__esModule",{value:!0});Rn.HttpsProxyAgent=void 0;var I3=Tte(require("net")),Fte=Tte(require("tls")),YHe=vte(require("assert")),JHe=vte(q3()),$He=wte(),jHe=require("url"),KHe=Ste(),xf=(0,JHe.default)("https-proxy-agent"),Wte=i(t=>t.servername===void 0&&t.host&&!I3.isIP(t.host)?{...t,servername:t.host}:t,"setServernameFromNonIpHost"),R3=class extends $He.Agent{static{i(this,"HttpsProxyAgent")}constructor(e,r){super(r),this.options={path:void 0},this.proxy=typeof e=="string"?new jHe.URL(e):e,this.proxyHeaders=r?.headers??{},xf("Creating new HttpsProxyAgent instance: %o",this.proxy.href);let n=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),o=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={ALPNProtocols:["http/1.1"],...r?xte(r,"headers"):null,host:n,port:o}}async connect(e,r){let{proxy:n}=this;if(!r.host)throw new TypeError('No "host" provided');let o;n.protocol==="https:"?(xf("Creating `tls.Socket`: %o",this.connectOpts),o=Fte.connect(Wte(this.connectOpts))):(xf("Creating `net.Socket`: %o",this.connectOpts),o=I3.connect(this.connectOpts));let s=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders},a=I3.isIPv6(r.host)?`[${r.host}]`:r.host,c=`CONNECT ${a}:${r.port} HTTP/1.1\r
`;if(n.username||n.password){let b=`${decodeURIComponent(n.username)}:${decodeURIComponent(n.password)}`;s["Proxy-Authorization"]=`Basic ${Buffer.from(b).toString("base64")}`}s.Host=`${a}:${r.port}`,s["Proxy-Connection"]||(s["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let b of Object.keys(s))c+=`${b}: ${s[b]}\r
`;let u=(0,UHe.parseProxyResponse)(o);o.write(`${c}\r
`);let{connect:p,buffered:A}=await u;if(e.emit("proxyConnect",p),this.emit("proxyConnect",p,e),p.statusCode===200)return e.once("socket",GHe),r.secureEndpoint?(xf("Upgrading socket connection to TLS"),wte.connect({...Fte(Ste(r),"host","path","port"),socket:o})):o;o.destroy();let l=new q3.Socket({writable:!1});return l.readable=!0,e.once("socket",b=>{xf("Replaying proxy buffer for failed request"),(0,QHe.default)(b.listenerCount("data")>0),b.push(A),b.push(null)}),l}};D3.protocols=["http","https"];Dn.HttpsProxyAgent=D3;function GHe(t){t.resume()}i(GHe,"resume");function Fte(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}i(Fte,"omit")});var Qte=h(ar=>{"use strict";var HHe=ar&&ar.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var o=Object.getOwnPropertyDescriptor(e,r);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:i(function(){return e[r]},"get")}),Object.defineProperty(t,n,o)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),XHe=ar&&ar.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),vte=ar&&ar.__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)&&HHe(e,t,r);return XHe(e,t),e};Object.defineProperty(ar,"__esModule",{value:!0});ar.req=ar.json=ar.toBuffer=void 0;var VHe=vte(require("http")),YHe=vte(require("https"));async function Lte(t){let e=0,r=[];for await(let n of t)e+=n.length,r.push(n);return Buffer.concat(r,e)}i(Lte,"toBuffer");ar.toBuffer=Lte;async function JHe(t){let r=(await Lte(t)).toString("utf8");try{return JSON.parse(r)}catch(n){let o=n;throw o.message+=` (input: ${r})`,o}}i(JHe,"json");ar.json=JHe;function $He(t,e={}){let n=((typeof t=="string"?t:t.href).startsWith("https:")?YHe:VHe).request(t,e),o=new Promise((s,a)=>{n.once("response",s).once("error",a).end()});return n.then=o.then.bind(o),n}i($He,"req");ar.req=$He});var Ute=h(Vr=>{"use strict";var Pte=Vr&&Vr.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var o=Object.getOwnPropertyDescriptor(e,r);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:i(function(){return e[r]},"get")}),Object.defineProperty(t,n,o)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),jHe=Vr&&Vr.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),kte=Vr&&Vr.__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)&&Pte(e,t,r);return jHe(e,t),e},KHe=Vr&&Vr.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&Pte(e,t,r)};Object.defineProperty(Vr,"__esModule",{value:!0});Vr.Agent=void 0;var ZHe=kte(require("net")),_te=kte(require("http")),eXe=require("https");KHe(Qte(),Vr);var us=Symbol("AgentBaseInternalState"),w6=class extends _te.Agent{static{i(this,"Agent")}constructor(e){super(e),this[us]={}}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(n=>n.indexOf("(https.js:")!==-1||n.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 ZHe.Socket({writable:!1});return this.sockets[e].push(r),this.totalSocketCount++,r}decrementSockets(e,r){if(!this.sockets[e]||r===null)return;let n=this.sockets[e],o=n.indexOf(r);o!==-1&&(n.splice(o,1),this.totalSocketCount--,n.length===0&&delete this.sockets[e])}getName(e){return(typeof e.secureEndpoint=="boolean"?e.secureEndpoint:this.isSecureEndpoint(e))?eXe.Agent.prototype.getName.call(this,e):super.getName(e)}createSocket(e,r,n){let o={...r,secureEndpoint:this.isSecureEndpoint(r)},s=this.getName(o),a=this.incrementSockets(s);Promise.resolve().then(()=>this.connect(e,o)).then(c=>{if(this.decrementSockets(s,a),c instanceof _te.Agent)return c.addRequest(e,o);this[us].currentSocket=c,super.createSocket(e,r,n)},c=>{this.decrementSockets(s,a),n(c)})}createConnection(){let e=this[us].currentSocket;if(this[us].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[us].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[us]&&(this[us].defaultPort=e)}get protocol(){return this[us].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[us]&&(this[us].protocol=e)}};Vr.Agent=w6});var Xte=h(In=>{"use strict";var tXe=In&&In.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var o=Object.getOwnPropertyDescriptor(e,r);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:i(function(){return e[r]},"get")}),Object.defineProperty(t,n,o)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),rXe=In&&In.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Hte=In&&In.__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)&&tXe(e,t,r);return rXe(e,t),e},nXe=In&&In.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(In,"__esModule",{value:!0});In.HttpProxyAgent=void 0;var oXe=Hte(require("net")),sXe=Hte(require("tls")),iXe=nXe(y3()),aXe=require("events"),cXe=Ute(),Gte=require("url"),wl=(0,iXe.default)("http-proxy-agent"),I3=class extends cXe.Agent{static{i(this,"HttpProxyAgent")}constructor(e,r){super(r),this.proxy=typeof e=="string"?new Gte.URL(e):e,this.proxyHeaders=r?.headers??{},wl("Creating new HttpProxyAgent instance: %o",this.proxy.href);let n=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),o=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={...r?uXe(r,"headers"):null,host:n,port:o}}addRequest(e,r){e._header=null,this.setRequestProps(e,r),super.addRequest(e,r)}setRequestProps(e,r){let{proxy:n}=this,o=r.secureEndpoint?"https:":"http:",s=e.getHeader("host")||"localhost",a=`${o}//${s}`,c=new Gte.URL(e.path,a);r.port!==80&&(c.port=String(r.port)),e.path=String(c);let u=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders};if(n.username||n.password){let p=`${decodeURIComponent(n.username)}:${decodeURIComponent(n.password)}`;u["Proxy-Authorization"]=`Basic ${Buffer.from(p).toString("base64")}`}u["Proxy-Connection"]||(u["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let p of Object.keys(u)){let A=u[p];A&&e.setHeader(p,A)}}async connect(e,r){e._header=null,e.path.includes("://")||this.setRequestProps(e,r);let n,o;wl("Regenerating stored HTTP header string for request"),e._implicitHeader(),e.outputData&&e.outputData.length>0&&(wl("Patching connection write() output buffer with updated header"),n=e.outputData[0].data,o=n.indexOf(`\r
`;let u=(0,KHe.parseProxyResponse)(o);o.write(`${c}\r
`);let{connect:p,buffered:A}=await u;if(e.emit("proxyConnect",p),this.emit("proxyConnect",p,e),p.statusCode===200)return e.once("socket",ZHe),r.secureEndpoint?(xf("Upgrading socket connection to TLS"),Fte.connect({...xte(Wte(r),"host","path","port"),socket:o})):o;o.destroy();let l=new I3.Socket({writable:!1});return l.readable=!0,e.once("socket",b=>{xf("Replaying proxy buffer for failed request"),(0,YHe.default)(b.listenerCount("data")>0),b.push(A),b.push(null)}),l}};R3.protocols=["http","https"];Rn.HttpsProxyAgent=R3;function ZHe(t){t.resume()}i(ZHe,"resume");function xte(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}i(xte,"omit")});var Pte=h(cr=>{"use strict";var eXe=cr&&cr.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var o=Object.getOwnPropertyDescriptor(e,r);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:i(function(){return e[r]},"get")}),Object.defineProperty(t,n,o)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),tXe=cr&&cr.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Qte=cr&&cr.__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)&&eXe(e,t,r);return tXe(e,t),e};Object.defineProperty(cr,"__esModule",{value:!0});cr.req=cr.json=cr.toBuffer=void 0;var rXe=Qte(require("http")),nXe=Qte(require("https"));async function _te(t){let e=0,r=[];for await(let n of t)e+=n.length,r.push(n);return Buffer.concat(r,e)}i(_te,"toBuffer");cr.toBuffer=_te;async function oXe(t){let r=(await _te(t)).toString("utf8");try{return JSON.parse(r)}catch(n){let o=n;throw o.message+=` (input: ${r})`,o}}i(oXe,"json");cr.json=oXe;function sXe(t,e={}){let n=((typeof t=="string"?t:t.href).startsWith("https:")?nXe:rXe).request(t,e),o=new Promise((s,a)=>{n.once("response",s).once("error",a).end()});return n.then=o.then.bind(o),n}i(sXe,"req");cr.req=sXe});var Hte=h(Jr=>{"use strict";var Ute=Jr&&Jr.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var o=Object.getOwnPropertyDescriptor(e,r);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:i(function(){return e[r]},"get")}),Object.defineProperty(t,n,o)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),iXe=Jr&&Jr.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Gte=Jr&&Jr.__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)&&Ute(e,t,r);return iXe(e,t),e},aXe=Jr&&Jr.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&Ute(e,t,r)};Object.defineProperty(Jr,"__esModule",{value:!0});Jr.Agent=void 0;var cXe=Gte(require("net")),kte=Gte(require("http")),uXe=require("https");aXe(Pte(),Jr);var ps=Symbol("AgentBaseInternalState"),x6=class extends kte.Agent{static{i(this,"Agent")}constructor(e){super(e),this[ps]={}}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(n=>n.indexOf("(https.js:")!==-1||n.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 cXe.Socket({writable:!1});return this.sockets[e].push(r),this.totalSocketCount++,r}decrementSockets(e,r){if(!this.sockets[e]||r===null)return;let n=this.sockets[e],o=n.indexOf(r);o!==-1&&(n.splice(o,1),this.totalSocketCount--,n.length===0&&delete this.sockets[e])}getName(e){return(typeof e.secureEndpoint=="boolean"?e.secureEndpoint:this.isSecureEndpoint(e))?uXe.Agent.prototype.getName.call(this,e):super.getName(e)}createSocket(e,r,n){let o={...r,secureEndpoint:this.isSecureEndpoint(r)},s=this.getName(o),a=this.incrementSockets(s);Promise.resolve().then(()=>this.connect(e,o)).then(c=>{if(this.decrementSockets(s,a),c instanceof kte.Agent)return c.addRequest(e,o);this[ps].currentSocket=c,super.createSocket(e,r,n)},c=>{this.decrementSockets(s,a),n(c)})}createConnection(){let e=this[ps].currentSocket;if(this[ps].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[ps].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[ps]&&(this[ps].defaultPort=e)}get protocol(){return this[ps].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[ps]&&(this[ps].protocol=e)}};Jr.Agent=x6});var Yte=h(Nn=>{"use strict";var pXe=Nn&&Nn.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var o=Object.getOwnPropertyDescriptor(e,r);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:i(function(){return e[r]},"get")}),Object.defineProperty(t,n,o)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),AXe=Nn&&Nn.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Vte=Nn&&Nn.__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)&&pXe(e,t,r);return AXe(e,t),e},lXe=Nn&&Nn.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Nn,"__esModule",{value:!0});Nn.HttpProxyAgent=void 0;var dXe=Vte(require("net")),bXe=Vte(require("tls")),fXe=lXe(q3()),MXe=require("events"),hXe=Hte(),Xte=require("url"),Nl=(0,fXe.default)("http-proxy-agent"),N3=class extends hXe.Agent{static{i(this,"HttpProxyAgent")}constructor(e,r){super(r),this.proxy=typeof e=="string"?new Xte.URL(e):e,this.proxyHeaders=r?.headers??{},Nl("Creating new HttpProxyAgent instance: %o",this.proxy.href);let n=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),o=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={...r?mXe(r,"headers"):null,host:n,port:o}}addRequest(e,r){e._header=null,this.setRequestProps(e,r),super.addRequest(e,r)}setRequestProps(e,r){let{proxy:n}=this,o=r.secureEndpoint?"https:":"http:",s=e.getHeader("host")||"localhost",a=`${o}//${s}`,c=new Xte.URL(e.path,a);r.port!==80&&(c.port=String(r.port)),e.path=String(c);let u=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders};if(n.username||n.password){let p=`${decodeURIComponent(n.username)}:${decodeURIComponent(n.password)}`;u["Proxy-Authorization"]=`Basic ${Buffer.from(p).toString("base64")}`}u["Proxy-Connection"]||(u["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let p of Object.keys(u)){let A=u[p];A&&e.setHeader(p,A)}}async connect(e,r){e._header=null,e.path.includes("://")||this.setRequestProps(e,r);let n,o;Nl("Regenerating stored HTTP header string for request"),e._implicitHeader(),e.outputData&&e.outputData.length>0&&(Nl("Patching connection write() output buffer with updated header"),n=e.outputData[0].data,o=n.indexOf(`\r
\r
`)+4,e.outputData[0].data=e._header+n.substring(o),wl("Output buffer: %o",e.outputData[0].data));let s;return this.proxy.protocol==="https:"?(wl("Creating `tls.Socket`: %o",this.connectOpts),s=sXe.connect(this.connectOpts)):(wl("Creating `net.Socket`: %o",this.connectOpts),s=oXe.connect(this.connectOpts)),await(0,aXe.once)(s,"connect"),s}};I3.protocols=["http","https"];In.HttpProxyAgent=I3;function uXe(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}i(uXe,"omit")});var bre=h(k3=>{"use strict";Object.defineProperty(k3,"__esModule",{value:!0});k3.state=void 0;k3.state={instrumenterImplementation:void 0}});var wre=h(V3=>{"use strict";Object.defineProperty(V3,"__esModule",{value:!0});V3.state=void 0;V3.state={operationRequestMap:new WeakMap}});var use=h(Jl=>{"use strict";Object.defineProperty(Jl,"__esModule",{value:!0});var Rje=require("os"),Nje=require("util");function wje(t){return t&&typeof t=="object"&&"default"in t?t:{default:t}}i(wje,"_interopDefaultLegacy");var Sje=wje(Nje);function Fje(t,...e){process.stderr.write(`${Sje.default.format(t,...e)}${Rje.EOL}`)}i(Fje,"log");var Zoe=typeof process<"u"&&process.env&&process.env.DEBUG||void 0,tse,uT=[],pT=[],lC=[];Zoe&&AT(Zoe);var rse=Object.assign(t=>nse(t),{enable:AT,enabled:lT,disable:Wje,log:Fje});function AT(t){tse=t,uT=[],pT=[];let e=/\*/g,r=t.split(",").map(n=>n.trim().replace(e,".*?"));for(let n of r)n.startsWith("-")?pT.push(new RegExp(`^${n.substr(1)}$`)):uT.push(new RegExp(`^${n}$`));for(let n of lC)n.enabled=lT(n.namespace)}i(AT,"enable");function lT(t){if(t.endsWith("*"))return!0;for(let e of pT)if(e.test(t))return!1;for(let e of uT)if(e.test(t))return!0;return!1}i(lT,"enabled");function Wje(){let t=tse||"";return AT(""),t}i(Wje,"disable");function nse(t){let e=Object.assign(r,{enabled:lT(t),destroy:xje,log:rse.log,namespace:t,extend:Tje});function r(...n){e.enabled&&(n.length>0&&(n[0]=`${t} ${n[0]}`),e.log(...n))}return i(r,"debug"),lC.push(e),e}i(nse,"createDebugger");function xje(){let t=lC.indexOf(this);return t>=0?(lC.splice(t,1),!0):!1}i(xje,"destroy");function Tje(t){let e=nse(`${this.namespace}:${t}`);return e.log=this.log,e}i(Tje,"extend");var EM=rse,ose=new Set,pC=typeof process<"u"&&process.env&&process.env.AZURE_LOG_LEVEL||void 0,dC,bC=EM("azure");bC.log=(...t)=>{EM.log(...t)};var dT=["verbose","info","warning","error"];pC&&(cse(pC)?sse(pC):console.error(`AZURE_LOG_LEVEL set to unknown log level '${pC}'; logging is not enabled. Acceptable values: ${dT.join(", ")}.`));function sse(t){if(t&&!cse(t))throw new Error(`Unknown log level '${t}'. Acceptable values: ${dT.join(",")}`);dC=t;let e=[];for(let r of ose)ase(r)&&e.push(r.namespace);EM.enable(e.join(","))}i(sse,"setLogLevel");function vje(){return dC}i(vje,"getLogLevel");var ese={verbose:400,info:300,warning:200,error:100};function Lje(t){let e=bC.extend(t);return ise(bC,e),{error:AC(e,"error"),warning:AC(e,"warning"),info:AC(e,"info"),verbose:AC(e,"verbose")}}i(Lje,"createClientLogger");function ise(t,e){e.log=(...r)=>{t.log(...r)}}i(ise,"patchLogMethod");function AC(t,e){let r=Object.assign(t.extend(e),{level:e});if(ise(t,r),ase(r)){let n=EM.disable();EM.enable(n+","+r.namespace)}return ose.add(r),r}i(AC,"createLogger");function ase(t){return!!(dC&&ese[t.level]<=ese[dC])}i(ase,"shouldEnable");function cse(t){return dT.includes(t)}i(cse,"isAzureLogLevel");Jl.AzureLogger=bC;Jl.createClientLogger=Lje;Jl.getLogLevel=vje;Jl.setLogLevel=sse});var MT=h(yM=>{"use strict";Object.defineProperty(yM,"__esModule",{value:!0});var $l=new WeakMap,fC=new WeakMap,CM=class t{static{i(this,"AbortSignal")}constructor(){this.onabort=null,$l.set(this,[]),fC.set(this,!1)}get aborted(){if(!fC.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");return fC.get(this)}static get none(){return new t}addEventListener(e,r){if(!$l.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");$l.get(this).push(r)}removeEventListener(e,r){if(!$l.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");let n=$l.get(this),o=n.indexOf(r);o>-1&&n.splice(o,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 pse(t){if(t.aborted)return;t.onabort&&t.onabort.call(t);let e=$l.get(t);e&&e.slice().forEach(r=>{r.call(t,{type:"abort"})}),fC.set(t,!0)}i(pse,"abortSignal");var bT=class extends Error{static{i(this,"AbortError")}constructor(e){super(e),this.name="AbortError"}},fT=class{static{i(this,"AbortController")}constructor(e){if(this._signal=new CM,!!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(){pse(this._signal)}static timeout(e){let r=new CM,n=setTimeout(pse,e,r);return typeof n.unref=="function"&&n.unref(),r}};yM.AbortController=fT;yM.AbortError=bT;yM.AbortSignal=CM});var fse=h(c1=>{"use strict";Object.defineP Line truncated
`)+4,e.outputData[0].data=e._header+n.substring(o),Nl("Output buffer: %o",e.outputData[0].data));let s;return this.proxy.protocol==="https:"?(Nl("Creating `tls.Socket`: %o",this.connectOpts),s=bXe.connect(this.connectOpts)):(Nl("Creating `net.Socket`: %o",this.connectOpts),s=dXe.connect(this.connectOpts)),await(0,MXe.once)(s,"connect"),s}};N3.protocols=["http","https"];Nn.HttpProxyAgent=N3;function mXe(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}i(mXe,"omit")});var Mre=h(G3=>{"use strict";Object.defineProperty(G3,"__esModule",{value:!0});G3.state=void 0;G3.state={instrumenterImplementation:void 0}});var Fre=h(J3=>{"use strict";Object.defineProperty(J3,"__esModule",{value:!0});J3.state=void 0;J3.state={operationRequestMap:new WeakMap}});var Ase=h(Yl=>{"use strict";Object.defineProperty(Yl,"__esModule",{value:!0});var Lje=require("os"),Qje=require("util");function _je(t){return t&&typeof t=="object"&&"default"in t?t:{default:t}}i(_je,"_interopDefaultLegacy");var Pje=_je(Qje);function kje(t,...e){process.stderr.write(`${Pje.default.format(t,...e)}${Lje.EOL}`)}i(kje,"log");var tse=typeof process<"u"&&process.env&&process.env.DEBUG||void 0,nse,dT=[],bT=[],bC=[];tse&&fT(tse);var ose=Object.assign(t=>sse(t),{enable:fT,enabled:MT,disable:Uje,log:kje});function fT(t){nse=t,dT=[],bT=[];let e=/\*/g,r=t.split(",").map(n=>n.trim().replace(e,".*?"));for(let n of r)n.startsWith("-")?bT.push(new RegExp(`^${n.substr(1)}$`)):dT.push(new RegExp(`^${n}$`));for(let n of bC)n.enabled=MT(n.namespace)}i(fT,"enable");function MT(t){if(t.endsWith("*"))return!0;for(let e of bT)if(e.test(t))return!1;for(let e of dT)if(e.test(t))return!0;return!1}i(MT,"enabled");function Uje(){let t=nse||"";return fT(""),t}i(Uje,"disable");function sse(t){let e=Object.assign(r,{enabled:MT(t),destroy:Gje,log:ose.log,namespace:t,extend:Hje});function r(...n){e.enabled&&(n.length>0&&(n[0]=`${t} ${n[0]}`),e.log(...n))}return i(r,"debug"),bC.push(e),e}i(sse,"createDebugger");function Gje(){let t=bC.indexOf(this);return t>=0?(bC.splice(t,1),!0):!1}i(Gje,"destroy");function Hje(t){let e=sse(`${this.namespace}:${t}`);return e.log=this.log,e}i(Hje,"extend");var EM=ose,ise=new Set,lC=typeof process<"u"&&process.env&&process.env.AZURE_LOG_LEVEL||void 0,fC,MC=EM("azure");MC.log=(...t)=>{EM.log(...t)};var hT=["verbose","info","warning","error"];lC&&(pse(lC)?ase(lC):console.error(`AZURE_LOG_LEVEL set to unknown log level '${lC}'; logging is not enabled. Acceptable values: ${hT.join(", ")}.`));function ase(t){if(t&&!pse(t))throw new Error(`Unknown log level '${t}'. Acceptable values: ${hT.join(",")}`);fC=t;let e=[];for(let r of ise)use(r)&&e.push(r.namespace);EM.enable(e.join(","))}i(ase,"setLogLevel");function Xje(){return fC}i(Xje,"getLogLevel");var rse={verbose:400,info:300,warning:200,error:100};function Vje(t){let e=MC.extend(t);return cse(MC,e),{error:dC(e,"error"),warning:dC(e,"warning"),info:dC(e,"info"),verbose:dC(e,"verbose")}}i(Vje,"createClientLogger");function cse(t,e){e.log=(...r)=>{t.log(...r)}}i(cse,"patchLogMethod");function dC(t,e){let r=Object.assign(t.extend(e),{level:e});if(cse(t,r),use(r)){let n=EM.disable();EM.enable(n+","+r.namespace)}return ise.add(r),r}i(dC,"createLogger");function use(t){return!!(fC&&rse[t.level]<=rse[fC])}i(use,"shouldEnable");function pse(t){return hT.includes(t)}i(pse,"isAzureLogLevel");Yl.AzureLogger=MC;Yl.createClientLogger=Vje;Yl.getLogLevel=Xje;Yl.setLogLevel=ase});var gT=h(yM=>{"use strict";Object.defineProperty(yM,"__esModule",{value:!0});var Jl=new WeakMap,hC=new WeakMap,CM=class t{static{i(this,"AbortSignal")}constructor(){this.onabort=null,Jl.set(this,[]),hC.set(this,!1)}get aborted(){if(!hC.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");return hC.get(this)}static get none(){return new t}addEventListener(e,r){if(!Jl.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");Jl.get(this).push(r)}removeEventListener(e,r){if(!Jl.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");let n=Jl.get(this),o=n.indexOf(r);o>-1&&n.splice(o,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 lse(t){if(t.aborted)return;t.onabort&&t.onabort.call(t);let e=Jl.get(t);e&&e.slice().forEach(r=>{r.call(t,{type:"abort"})}),hC.set(t,!0)}i(lse,"abortSignal");var mT=class extends Error{static{i(this,"AbortError")}constructor(e){super(e),this.name="AbortError"}},zT=class{static{i(this,"AbortController")}constructor(e){if(this._signal=new CM,!!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(){lse(this._signal)}static timeout(e){let r=new CM,n=setTimeout(lse,e,r);return typeof n.unref=="function"&&n.unref(),r}};yM.AbortController=zT;yM.AbortError=mT;yM.AbortSignal=CM});var hse=h(c1=>{"use strict";Object.defineP Line truncated
Polling from: ${r.config.operationLocation}
Operation status: ${A}
Polling status: ${zse.includes(A)?"Stopped":"Running"}`),A==="succeeded"){let l=a(p,r);if(l!==void 0)return{response:await e(l).catch(hse({state:r,stateProxy:n,isOperationError:c})),status:A}}return{response:p,status:A}}i(bKe,"pollOperationHelper");async function Cse(t){let{poll:e,state:r,stateProxy:n,options:o,getOperationStatus:s,getResourceLocation:a,getOperationLocation:c,isOperationError:u,withOperationLocation:p,getPollingInterval:A,processResult:l,getError:b,updateState:M,setDelay:z,isDone:O,setErrorAsResult:y}=t,{operationLocation:E}=r.config;if(E!==void 0){let{response:B,status:q}=await bKe({poll:e,getOperationStatus:s,state:r,stateProxy:n,operationLocation:E,getResourceLocation:a,isOperationError:u,options:o});if(Ose({status:q,response:B,state:r,stateProxy:n,isDone:O,processResult:l,getError:b,setErrorAsResult:y}),!zse.includes(q)){let I=A?.(B);I&&z(I);let W=c?.(B,r);if(W!==void 0){let x=E!==W;r.config.operationLocation=W,p?.(W,x)}else p?.(E,!1)}M?.(r,B)}}i(Cse,"pollOperation");function yse(t){let{azureAsyncOperation:e,operationLocation:r}=t;return r??e}i(yse,"getOperationLocationPollingUrl");function Bse(t){return t.headers.location}i(Bse,"getLocationHeader");function qse(t){return t.headers["operation-location"]}i(qse,"getOperationLocationHeader");function Dse(t){return t.headers["azure-asyncoperation"]}i(Dse,"getAzureAsyncOperationHeader");function fKe(t){var e;let{location:r,requestMethod:n,requestPath:o,resourceLocationConfig:s}=t;switch(n){case"PUT":return o;case"DELETE":return;case"PATCH":return(e=a())!==null&&e!==void 0?e:o;default:return a()}function a(){switch(s){case"azure-async-operation":return;case"original-uri":return o;default:return r}}i(a,"getDefault")}i(fKe,"findResourceLocation");function Ise(t){let{rawResponse:e,requestMethod:r,requestPath:n,resourceLocationConfig:o}=t,s=qse(e),a=Dse(e),c=yse({operationLocation:s,azureAsyncOperation:a}),u=Bse(e),p=r?.toLocaleUpperCase();return c!==void 0?{mode:"OperationLocation",operationLocation:c,resourceLocation:fKe({requestMethod:p,location:u,requestPath:n,resourceLocationConfig:o})}:u!==void 0?{mode:"ResourceLocation",operationLocation:u}:p==="PUT"&&n?{mode:"Body",operationLocation:n}:void 0}i(Ise,"inferLroMode");function Rse(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 DT(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 np.verbose(`LRO: unrecognized operation status: ${e}`),e}}i(Rse,"transformStatus");function MKe(t){var e;let{status:r}=(e=t.body)!==null&&e!==void 0?e:{};return Rse({status:r,statusCode:t.statusCode})}i(MKe,"getStatus");function hKe(t){var e,r;let{properties:n,provisioningState:o}=(e=t.body)!==null&&e!==void 0?e:{},s=(r=n?.provisioningState)!==null&&r!==void 0?r:o;return Rse({status:s,statusCode:t.statusCode})}i(hKe,"getProvisioningState");function DT(t){return t===202?"running":t<300?"succeeded":"failed"}i(DT,"toOperationStatus");function Nse({rawResponse:t}){let e=t.headers["retry-after"];if(e!==void 0){let r=parseInt(e);return isNaN(r)?mKe(new Date(e)):r*1e3}}i(Nse,"parseRetryAfter");function wse(t){let e=t.flatResponse.error;if(!e){np.warning("The long-running operation failed but there is no error property in the response's body");return}if(!e.code||!e.message){np.warning("The long-running operation failed but the error property in the response's body doesn't contain code or message");return}return e}i(wse,"getErrorFromResponse");function mKe(t){let e=Math.floor(new Date().getTime()),r=t.getTime();if(e<r)return r-e}i(mKe,"calculatePollingIntervalFromDate");function Sse(t){let{response:e,state:r,operationLocation:n}=t;function o(){var a;switch((a=r.config.metadata)===null||a===void 0?void 0:a.mode){case void 0:return DT(e.rawResponse.statusCode);case"Body":return IT(e,r);default:return"running"}}i(o,"helper");let s=o();return s==="running"&&n===void 0?"succeeded":s}i(Sse,"getStatusFromInitialResponse");async function zKe(t){let{stateProxy:e,resourceLocationConfig:r,processResult:n,lro:o,setErrorAsResult:s}=t;return Ese({init:i(async()=>{let a=await o.sendInitialRequest(),c=Ise({rawResponse:a.rawResponse,requestPath:o.requestPath,requestMethod:o.requestMethod,resourceLocationConfig:r});return Object.assign({response:a,operationLocation:c?.operationLocation,resourceLocation:c?.resourceLocation},c?.mode?{metadata:{mode:c.mode}}:{})},"init"),stateProxy:e,processResult:n?({flatResponse:a},c)=>n(a,c):({flatResponse:a})=>a,getOperationStatus:Sse,setErrorAsResult:s})}i(zKe,"initHttpOperation");function Fse({rawResponse:t},e){var r;switchLine truncated
`:case"\r":case" ":case" ":continue;default:throw Error("invalid base64 string.")}switch(o){case 0:a=s,o=1;break;case 1:r[n++]=a<<2|(s&48)>>4,a=s,o=2;break;case 2:r[n++]=(a&15)<<4|(s&60)>>2,a=s,o=3;break;case 3:r[n++]=(a&3)<<6|s,o=0;break}}if(o==1)throw Error("invalid base64 string.");return r.subarray(0,n)}i(rZe,"base64decode");r2.base64decode=rZe;function nZe(t){let e="",r=0,n,o=0;for(let s=0;s<t.length;s++)switch(n=t[s],r){case 0:e+=ra[n>>2],o=(n&3)<<4,r=1;break;case 1:e+=ra[o|n>>4],o=(n&15)<<2,r=2;break;case 2:e+=ra[o|n>>6],e+=ra[n&63],r=0;break}return r&&(e+=ra[o],e+="=",r==1&&(e+="=")),e}i(nZe,"base64encode");r2.base64encode=nZe});var lie=h(WC=>{"use strict";Object.defineProperty(WC,"__esModule",{value:!0});WC.utf8read=void 0;var QT=i(t=>String.fromCharCode.apply(String,t),"fromCharCodes");function oZe(t){if(t.length<1)return"";let e=0,r=[],n=[],o=0,s,a=t.length;for(;e<a;)s=t[e++],s<128?n[o++]=s:s>191&&s<224?n[o++]=(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,n[o++]=55296+(s>>10),n[o++]=56320+(s&1023)):n[o++]=(s&15)<<12|(t[e++]&63)<<6|t[e++]&63,o>8191&&(r.push(QT(n)),o=0);return r.length?(o&&r.push(QT(n.slice(0,o))),r.join("")):QT(n.slice(0,o))}i(oZe,"utf8read");WC.utf8read=oZe});var SM=h(xs=>{"use strict";Object.defineProperty(xs,"__esModule",{value:!0});xs.WireType=xs.mergeBinaryOptions=xs.UnknownFieldHandler=void 0;var sZe;(function(t){t.symbol=Symbol.for("protobuf-ts/unknown"),t.onRead=(r,n,o,s,a)=>{(e(n)?n[t.symbol]:n[t.symbol]=[]).push({no:o,wireType:s,data:a})},t.onWrite=(r,n,o)=>{for(let{no:s,wireType:a,data:c}of t.list(n))o.tag(s,a).raw(c)},t.list=(r,n)=>{if(e(r)){let o=r[t.symbol];return n?o.filter(s=>s.no==n):o}return[]},t.last=(r,n)=>t.list(r,n).slice(-1)[0];let e=i(r=>r&&Array.isArray(r[t.symbol]),"is")})(sZe=xs.UnknownFieldHandler||(xs.UnknownFieldHandler={}));function iZe(t,e){return Object.assign(Object.assign({},t),e)}i(iZe,"mergeBinaryOptions");xs.mergeBinaryOptions=iZe;var aZe;(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"})(aZe=xs.WireType||(xs.WireType={}))});var TC=h(br=>{"use strict";Object.defineProperty(br,"__esModule",{value:!0});br.varint32read=br.varint32write=br.int64toString=br.int64fromString=br.varint64write=br.varint64read=void 0;function cZe(){let t=0,e=0;for(let n=0;n<28;n+=7){let o=this.buf[this.pos++];if(t|=(o&127)<<n,(o&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 n=3;n<=31;n+=7){let o=this.buf[this.pos++];if(e|=(o&127)<<n,(o&128)==0)return this.assertBounds(),[t,e]}throw new Error("invalid varint")}i(cZe,"varint64read");br.varint64read=cZe;function uZe(t,e,r){for(let s=0;s<28;s=s+7){let a=t>>>s,c=!(!(a>>>7)&&e==0),u=(c?a|128:a)&255;if(r.push(u),!c)return}let n=t>>>28&15|(e&7)<<4,o=e>>3!=0;if(r.push((o?n|128:n)&255),!!o){for(let s=3;s<31;s=s+7){let a=e>>>s,c=!!(a>>>7),u=(c?a|128:a)&255;if(r.push(u),!c)return}r.push(e>>>31&1)}}i(uZe,"varint64write");br.varint64write=uZe;var xC=65536*65536;function pZe(t){let e=t[0]=="-";e&&(t=t.slice(1));let r=1e6,n=0,o=0;function s(a,c){let u=Number(t.slice(a,c));o*=r,n=n*r+u,n>=xC&&(o=o+(n/xC|0),n=n%xC)}return i(s,"add1e6digit"),s(-24,-18),s(-18,-12),s(-12,-6),s(-6),[e,n,o]}i(pZe,"int64fromString");br.int64fromString=pZe;function AZe(t,e){if(e>>>0<=2097151)return""+(xC*e+(t>>>0));let r=t&16777215,n=(t>>>24|e<<8)>>>0&16777215,o=e>>16&65535,s=r+n*6777216+o*6710656,a=n+o*8147497,c=o*2,u=1e7;s>=u&&(a+=Math.floor(s/u),s%=u),a>=u&&(c+=Math.floor(a/u),a%=u);function p(A,l){let b=A?String(A):"";return l?"0000000".slice(b.length)+b:b}return i(p,"decimalFrom1e7"),p(c,0)+p(a,c)+p(s,1)}i(AZe,"int64toString");br.int64toString=AZe;function lZe(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)}}i(lZe,"varint32write");br.varint32write=lZe;function dZe(){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}i(dZe,"varint32read");br.varint32read=dZe});var mc=h(hc=>{"use strict";Object.defineProperty(hc,"__esModule",{value:!0});hc.PbLong=hc.PbULong=hc.detectBi=void 0;var FM=TC(),y0;function die(){let t=new DataView(new ArrayBuffer(8));y0=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("922337203685477580 Line truncated
`)}};uy.RpcError=lv});var bv=h(Ay=>{"use strict";Object.defineProperty(Ay,"__esModule",{value:!0});Ay.mergeRpcOptions=void 0;var Hie=C1();function xe0(t,e){if(!e)return t;let r={};py(t,r),py(e,r);for(let n of Object.keys(e)){let o=e[n];switch(n){case"jsonOptions":r.jsonOptions=Hie.mergeJsonOptions(t.jsonOptions,r.jsonOptions);break;case"binaryOptions":r.binaryOptions=Hie.mergeBinaryOptions(t.binaryOptions,r.binaryOptions);break;case"meta":r.meta={},py(t.meta,r.meta),py(e.meta,r.meta);break;case"interceptors":r.interceptors=t.interceptors?t.interceptors.concat(o):o.concat();break}}return r}i(xe0,"mergeRpcOptions");Ay.mergeRpcOptions=xe0;function py(t,e){if(!t)return;let r=e;for(let[n,o]of Object.entries(t))o instanceof Date?r[n]=new Date(o.getTime()):Array.isArray(o)?r[n]=o.concat():r[n]=o}i(py,"copy")});var Mv=h(cp=>{"use strict";Object.defineProperty(cp,"__esModule",{value:!0});cp.Deferred=cp.DeferredState=void 0;var Ls;(function(t){t[t.PENDING=0]="PENDING",t[t.REJECTED=1]="REJECTED",t[t.RESOLVED=2]="RESOLVED"})(Ls=cp.DeferredState||(cp.DeferredState={}));var fv=class{static{i(this,"Deferred")}constructor(e=!0){this._state=Ls.PENDING,this._promise=new Promise((r,n)=>{this._resolve=r,this._reject=n}),e&&this._promise.catch(r=>{})}get state(){return this._state}get promise(){return this._promise}resolve(e){if(this.state!==Ls.PENDING)throw new Error(`cannot resolve ${Ls[this.state].toLowerCase()}`);this._resolve(e),this._state=Ls.RESOLVED}reject(e){if(this.state!==Ls.PENDING)throw new Error(`cannot reject ${Ls[this.state].toLowerCase()}`);this._reject(e),this._state=Ls.REJECTED}resolvePending(e){this._state===Ls.PENDING&&this.resolve(e)}rejectPending(e){this._state===Ls.PENDING&&this.reject(e)}};cp.Deferred=fv});var mv=h(ly=>{"use strict";Object.defineProperty(ly,"__esModule",{value:!0});ly.RpcOutputStreamController=void 0;var Xie=Mv(),up=C1(),hv=class{static{i(this,"RpcOutputStreamController")}constructor(){this._lis={nxt:[],msg:[],err:[],cmp:[]},this._closed=!1,this._itState={q:[]}}onNext(e){return this.addLis(e,this._lis.nxt)}onMessage(e){return this.addLis(e,this._lis.msg)}onError(e){return this.addLis(e,this._lis.err)}onComplete(e){return this.addLis(e,this._lis.cmp)}addLis(e,r){return r.push(e),()=>{let n=r.indexOf(e);n>=0&&r.splice(n,1)}}clearLis(){for(let e of Object.values(this._lis))e.splice(0,e.length)}get closed(){return this._closed!==!1}notifyNext(e,r,n){up.assert((e?1:0)+(r?1:0)+(n?1:0)<=1,"only one emission at a time"),e&&this.notifyMessage(e),r&&this.notifyError(r),n&&this.notifyComplete()}notifyMessage(e){up.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){up.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(){up.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:i(()=>{let e=this._itState;up.assert(e,"bad state"),up.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 Xie.Deferred,e.p.promise)},"next")}}pushIt(e){let r=this._itState;if(r.p){let n=r.p;up.assert(n.state==Xie.DeferredState.PENDING,"iterator contract broken"),"value"in e?n.resolve(e):n.reject(e),delete r.p}else r.q.push(e)}};ly.RpcOutputStreamController=hv});var gv=h(u2=>{"use strict";var Te0=u2&&u2.__awaiter||function(t,e,r,n){function o(s){return s instanceof r?s:new r(function(a){a(s)})}return i(o,"adopt"),new(r||(r=Promise))(function(s,a){function c(A){try{p(n.next(A))}catch(l){a(l)}}i(c,"fulfilled");function u(A){try{p(n.throw(A))}catch(l){a(l)}}i(u,"rejected");function p(A){A.done?s(A.value):o(A.value).then(c,u)}i(p,"step"),p((n=n.apply(t,e||[])).next())})};Object.defineProperty(u2,"__esModule",{value:!0});u2.UnaryCall=void 0;var zv=class{static{i(this,"UnaryCall")}constructor(e,r,n,o,s,a,c){this.method=e,this.requestHeaders=r,this.request=n,this.headers=o,this.response=s,this.status=a,this.trailers=c}then(e,r){return this.promiseFinished().then(n=>e?Promise.resolve(e(n)):n,n=>r?Promise.resolve(r(n)):Promise.reject(n))}promiseFinished(){return Te0(this,void 0,void 0,function*(){let[e,r,n,o]=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:n,trailers:o}})}};u2.UnaryCall=zv});var Ev=h(p2=>{"use strict";var ve0=p2&&p2.__awaiter||function(t,e,r,n){function o(s){return s instanceof r?s:new r(function(a){a(s)})}return i(o,"adopt"),new(r||(r=Promise))(function(s,a){function c(A){try{p(n.next(A))}catch(l){a(l)}}i(c,"fulfilled");function Line truncated
Polling status: ${Ose.includes(A)?"Stopped":"Running"}`),A==="succeeded"){let l=a(p,r);if(l!==void 0)return{response:await e(l).catch(zse({state:r,stateProxy:n,isOperationError:c})),status:A}}return{response:p,status:A}}i(CKe,"pollOperationHelper");async function Bse(t){let{poll:e,state:r,stateProxy:n,options:o,getOperationStatus:s,getResourceLocation:a,getOperationLocation:c,isOperationError:u,withOperationLocation:p,getPollingInterval:A,processResult:l,getError:b,updateState:M,setDelay:z,isDone:O,setErrorAsResult:y}=t,{operationLocation:E}=r.config;if(E!==void 0){let{response:B,status:q}=await CKe({poll:e,getOperationStatus:s,state:r,stateProxy:n,operationLocation:E,getResourceLocation:a,isOperationError:u,options:o});if(Cse({status:q,response:B,state:r,stateProxy:n,isDone:O,processResult:l,getError:b,setErrorAsResult:y}),!Ose.includes(q)){let D=A?.(B);D&&z(D);let W=c?.(B,r);if(W!==void 0){let x=E!==W;r.config.operationLocation=W,p?.(W,x)}else p?.(E,!1)}M?.(r,B)}}i(Bse,"pollOperation");function qse(t){let{azureAsyncOperation:e,operationLocation:r}=t;return r??e}i(qse,"getOperationLocationPollingUrl");function Dse(t){return t.headers.location}i(Dse,"getLocationHeader");function Ise(t){return t.headers["operation-location"]}i(Ise,"getOperationLocationHeader");function Rse(t){return t.headers["azure-asyncoperation"]}i(Rse,"getAzureAsyncOperationHeader");function yKe(t){var e;let{location:r,requestMethod:n,requestPath:o,resourceLocationConfig:s}=t;switch(n){case"PUT":return o;case"DELETE":return;case"PATCH":return(e=a())!==null&&e!==void 0?e:o;default:return a()}function a(){switch(s){case"azure-async-operation":return;case"original-uri":return o;default:return r}}i(a,"getDefault")}i(yKe,"findResourceLocation");function Nse(t){let{rawResponse:e,requestMethod:r,requestPath:n,resourceLocationConfig:o}=t,s=Ise(e),a=Rse(e),c=qse({operationLocation:s,azureAsyncOperation:a}),u=Dse(e),p=r?.toLocaleUpperCase();return c!==void 0?{mode:"OperationLocation",operationLocation:c,resourceLocation:yKe({requestMethod:p,location:u,requestPath:n,resourceLocationConfig:o})}:u!==void 0?{mode:"ResourceLocation",operationLocation:u}:p==="PUT"&&n?{mode:"Body",operationLocation:n}:void 0}i(Nse,"inferLroMode");function wse(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 wT(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 np.verbose(`LRO: unrecognized operation status: ${e}`),e}}i(wse,"transformStatus");function BKe(t){var e;let{status:r}=(e=t.body)!==null&&e!==void 0?e:{};return wse({status:r,statusCode:t.statusCode})}i(BKe,"getStatus");function qKe(t){var e,r;let{properties:n,provisioningState:o}=(e=t.body)!==null&&e!==void 0?e:{},s=(r=n?.provisioningState)!==null&&r!==void 0?r:o;return wse({status:s,statusCode:t.statusCode})}i(qKe,"getProvisioningState");function wT(t){return t===202?"running":t<300?"succeeded":"failed"}i(wT,"toOperationStatus");function Sse({rawResponse:t}){let e=t.headers["retry-after"];if(e!==void 0){let r=parseInt(e);return isNaN(r)?DKe(new Date(e)):r*1e3}}i(Sse,"parseRetryAfter");function Fse(t){let e=t.flatResponse.error;if(!e){np.warning("The long-running operation failed but there is no error property in the response's body");return}if(!e.code||!e.message){np.warning("The long-running operation failed but the error property in the response's body doesn't contain code or message");return}return e}i(Fse,"getErrorFromResponse");function DKe(t){let e=Math.floor(new Date().getTime()),r=t.getTime();if(e<r)return r-e}i(DKe,"calculatePollingIntervalFromDate");function Wse(t){let{response:e,state:r,operationLocation:n}=t;function o(){var a;switch((a=r.config.metadata)===null||a===void 0?void 0:a.mode){case void 0:return wT(e.rawResponse.statusCode);case"Body":return ST(e,r);default:return"running"}}i(o,"helper");let s=o();return s==="running"&&n===void 0?"succeeded":s}i(Wse,"getStatusFromInitialResponse");async function IKe(t){let{stateProxy:e,resourceLocationConfig:r,processResult:n,lro:o,setErrorAsResult:s}=t;return yse({init:i(async()=>{let a=await o.sendInitialRequest(),c=Nse({rawResponse:a.rawResponse,requestPath:o.requestPath,requestMethod:o.requestMethod,resourceLocationConfig:r});return Object.assign({response:a,operationLocation:c?.operationLocation,resourceLocation:c?.resourceLocation},c?.mode?{metadata:{mode:c.mode}}:{})},"init"),stateProxy:e,processResult:n?({flatResponse:a},c)=>n(a,c):({flatResponse:a})=>a,getOperationStatus:Wse,setErrorAsResult:s})}i(IKe,"initHttpOperation");function xse({rawResponse:t},e){var r;switchLine truncated
`:case"\r":case" ":case" ":continue;default:throw Error("invalid base64 string.")}switch(o){case 0:a=s,o=1;break;case 1:r[n++]=a<<2|(s&48)>>4,a=s,o=2;break;case 2:r[n++]=(a&15)<<4|(s&60)>>2,a=s,o=3;break;case 3:r[n++]=(a&3)<<6|s,o=0;break}}if(o==1)throw Error("invalid base64 string.");return r.subarray(0,n)}i(AZe,"base64decode");t2.base64decode=AZe;function lZe(t){let e="",r=0,n,o=0;for(let s=0;s<t.length;s++)switch(n=t[s],r){case 0:e+=ea[n>>2],o=(n&3)<<4,r=1;break;case 1:e+=ea[o|n>>4],o=(n&15)<<2,r=2;break;case 2:e+=ea[o|n>>6],e+=ea[n&63],r=0;break}return r&&(e+=ea[o],e+="=",r==1&&(e+="=")),e}i(lZe,"base64encode");t2.base64encode=lZe});var bie=h(TC=>{"use strict";Object.defineProperty(TC,"__esModule",{value:!0});TC.utf8read=void 0;var UT=i(t=>String.fromCharCode.apply(String,t),"fromCharCodes");function dZe(t){if(t.length<1)return"";let e=0,r=[],n=[],o=0,s,a=t.length;for(;e<a;)s=t[e++],s<128?n[o++]=s:s>191&&s<224?n[o++]=(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,n[o++]=55296+(s>>10),n[o++]=56320+(s&1023)):n[o++]=(s&15)<<12|(t[e++]&63)<<6|t[e++]&63,o>8191&&(r.push(UT(n)),o=0);return r.length?(o&&r.push(UT(n.slice(0,o))),r.join("")):UT(n.slice(0,o))}i(dZe,"utf8read");TC.utf8read=dZe});var SM=h(Ts=>{"use strict";Object.defineProperty(Ts,"__esModule",{value:!0});Ts.WireType=Ts.mergeBinaryOptions=Ts.UnknownFieldHandler=void 0;var bZe;(function(t){t.symbol=Symbol.for("protobuf-ts/unknown"),t.onRead=(r,n,o,s,a)=>{(e(n)?n[t.symbol]:n[t.symbol]=[]).push({no:o,wireType:s,data:a})},t.onWrite=(r,n,o)=>{for(let{no:s,wireType:a,data:c}of t.list(n))o.tag(s,a).raw(c)},t.list=(r,n)=>{if(e(r)){let o=r[t.symbol];return n?o.filter(s=>s.no==n):o}return[]},t.last=(r,n)=>t.list(r,n).slice(-1)[0];let e=i(r=>r&&Array.isArray(r[t.symbol]),"is")})(bZe=Ts.UnknownFieldHandler||(Ts.UnknownFieldHandler={}));function fZe(t,e){return Object.assign(Object.assign({},t),e)}i(fZe,"mergeBinaryOptions");Ts.mergeBinaryOptions=fZe;var MZe;(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"})(MZe=Ts.WireType||(Ts.WireType={}))});var LC=h(fr=>{"use strict";Object.defineProperty(fr,"__esModule",{value:!0});fr.varint32read=fr.varint32write=fr.int64toString=fr.int64fromString=fr.varint64write=fr.varint64read=void 0;function hZe(){let t=0,e=0;for(let n=0;n<28;n+=7){let o=this.buf[this.pos++];if(t|=(o&127)<<n,(o&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 n=3;n<=31;n+=7){let o=this.buf[this.pos++];if(e|=(o&127)<<n,(o&128)==0)return this.assertBounds(),[t,e]}throw new Error("invalid varint")}i(hZe,"varint64read");fr.varint64read=hZe;function mZe(t,e,r){for(let s=0;s<28;s=s+7){let a=t>>>s,c=!(!(a>>>7)&&e==0),u=(c?a|128:a)&255;if(r.push(u),!c)return}let n=t>>>28&15|(e&7)<<4,o=e>>3!=0;if(r.push((o?n|128:n)&255),!!o){for(let s=3;s<31;s=s+7){let a=e>>>s,c=!!(a>>>7),u=(c?a|128:a)&255;if(r.push(u),!c)return}r.push(e>>>31&1)}}i(mZe,"varint64write");fr.varint64write=mZe;var vC=65536*65536;function zZe(t){let e=t[0]=="-";e&&(t=t.slice(1));let r=1e6,n=0,o=0;function s(a,c){let u=Number(t.slice(a,c));o*=r,n=n*r+u,n>=vC&&(o=o+(n/vC|0),n=n%vC)}return i(s,"add1e6digit"),s(-24,-18),s(-18,-12),s(-12,-6),s(-6),[e,n,o]}i(zZe,"int64fromString");fr.int64fromString=zZe;function gZe(t,e){if(e>>>0<=2097151)return""+(vC*e+(t>>>0));let r=t&16777215,n=(t>>>24|e<<8)>>>0&16777215,o=e>>16&65535,s=r+n*6777216+o*6710656,a=n+o*8147497,c=o*2,u=1e7;s>=u&&(a+=Math.floor(s/u),s%=u),a>=u&&(c+=Math.floor(a/u),a%=u);function p(A,l){let b=A?String(A):"";return l?"0000000".slice(b.length)+b:b}return i(p,"decimalFrom1e7"),p(c,0)+p(a,c)+p(s,1)}i(gZe,"int64toString");fr.int64toString=gZe;function OZe(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)}}i(OZe,"varint32write");fr.varint32write=OZe;function EZe(){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}i(EZe,"varint32read");fr.varint32read=EZe});var Mc=h(fc=>{"use strict";Object.defineProperty(fc,"__esModule",{value:!0});fc.PbLong=fc.PbULong=fc.detectBi=void 0;var FM=LC(),y0;function fie(){let t=new DataView(new ArrayBuffer(8));y0=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("922337203685477580 Line truncated
`)}};Ay.RpcError=Mv});var mv=h(dy=>{"use strict";Object.defineProperty(dy,"__esModule",{value:!0});dy.mergeRpcOptions=void 0;var Vie=C1();function Ge0(t,e){if(!e)return t;let r={};ly(t,r),ly(e,r);for(let n of Object.keys(e)){let o=e[n];switch(n){case"jsonOptions":r.jsonOptions=Vie.mergeJsonOptions(t.jsonOptions,r.jsonOptions);break;case"binaryOptions":r.binaryOptions=Vie.mergeBinaryOptions(t.binaryOptions,r.binaryOptions);break;case"meta":r.meta={},ly(t.meta,r.meta),ly(e.meta,r.meta);break;case"interceptors":r.interceptors=t.interceptors?t.interceptors.concat(o):o.concat();break}}return r}i(Ge0,"mergeRpcOptions");dy.mergeRpcOptions=Ge0;function ly(t,e){if(!t)return;let r=e;for(let[n,o]of Object.entries(t))o instanceof Date?r[n]=new Date(o.getTime()):Array.isArray(o)?r[n]=o.concat():r[n]=o}i(ly,"copy")});var gv=h(cp=>{"use strict";Object.defineProperty(cp,"__esModule",{value:!0});cp.Deferred=cp.DeferredState=void 0;var Qs;(function(t){t[t.PENDING=0]="PENDING",t[t.REJECTED=1]="REJECTED",t[t.RESOLVED=2]="RESOLVED"})(Qs=cp.DeferredState||(cp.DeferredState={}));var zv=class{static{i(this,"Deferred")}constructor(e=!0){this._state=Qs.PENDING,this._promise=new Promise((r,n)=>{this._resolve=r,this._reject=n}),e&&this._promise.catch(r=>{})}get state(){return this._state}get promise(){return this._promise}resolve(e){if(this.state!==Qs.PENDING)throw new Error(`cannot resolve ${Qs[this.state].toLowerCase()}`);this._resolve(e),this._state=Qs.RESOLVED}reject(e){if(this.state!==Qs.PENDING)throw new Error(`cannot reject ${Qs[this.state].toLowerCase()}`);this._reject(e),this._state=Qs.REJECTED}resolvePending(e){this._state===Qs.PENDING&&this.resolve(e)}rejectPending(e){this._state===Qs.PENDING&&this.reject(e)}};cp.Deferred=zv});var Ev=h(by=>{"use strict";Object.defineProperty(by,"__esModule",{value:!0});by.RpcOutputStreamController=void 0;var Yie=gv(),up=C1(),Ov=class{static{i(this,"RpcOutputStreamController")}constructor(){this._lis={nxt:[],msg:[],err:[],cmp:[]},this._closed=!1,this._itState={q:[]}}onNext(e){return this.addLis(e,this._lis.nxt)}onMessage(e){return this.addLis(e,this._lis.msg)}onError(e){return this.addLis(e,this._lis.err)}onComplete(e){return this.addLis(e,this._lis.cmp)}addLis(e,r){return r.push(e),()=>{let n=r.indexOf(e);n>=0&&r.splice(n,1)}}clearLis(){for(let e of Object.values(this._lis))e.splice(0,e.length)}get closed(){return this._closed!==!1}notifyNext(e,r,n){up.assert((e?1:0)+(r?1:0)+(n?1:0)<=1,"only one emission at a time"),e&&this.notifyMessage(e),r&&this.notifyError(r),n&&this.notifyComplete()}notifyMessage(e){up.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){up.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(){up.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:i(()=>{let e=this._itState;up.assert(e,"bad state"),up.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 Yie.Deferred,e.p.promise)},"next")}}pushIt(e){let r=this._itState;if(r.p){let n=r.p;up.assert(n.state==Yie.DeferredState.PENDING,"iterator contract broken"),"value"in e?n.resolve(e):n.reject(e),delete r.p}else r.q.push(e)}};by.RpcOutputStreamController=Ov});var yv=h(c2=>{"use strict";var He0=c2&&c2.__awaiter||function(t,e,r,n){function o(s){return s instanceof r?s:new r(function(a){a(s)})}return i(o,"adopt"),new(r||(r=Promise))(function(s,a){function c(A){try{p(n.next(A))}catch(l){a(l)}}i(c,"fulfilled");function u(A){try{p(n.throw(A))}catch(l){a(l)}}i(u,"rejected");function p(A){A.done?s(A.value):o(A.value).then(c,u)}i(p,"step"),p((n=n.apply(t,e||[])).next())})};Object.defineProperty(c2,"__esModule",{value:!0});c2.UnaryCall=void 0;var Cv=class{static{i(this,"UnaryCall")}constructor(e,r,n,o,s,a,c){this.method=e,this.requestHeaders=r,this.request=n,this.headers=o,this.response=s,this.status=a,this.trailers=c}then(e,r){return this.promiseFinished().then(n=>e?Promise.resolve(e(n)):n,n=>r?Promise.resolve(r(n)):Promise.reject(n))}promiseFinished(){return He0(this,void 0,void 0,function*(){let[e,r,n,o]=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:n,trailers:o}})}};c2.UnaryCall=Cv});var qv=h(u2=>{"use strict";var Xe0=u2&&u2.__awaiter||function(t,e,r,n){function o(s){return s instanceof r?s:new r(function(a){a(s)})}return i(o,"adopt"),new(r||(r=Promise))(function(s,a){function c(A){try{p(n.next(A))}catch(l){a(l)}}i(c,"fulfilled");function 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`))}i(us0,"logUnexpecedPropertyAccessOnce");function ps0(){Object.keys(p4).forEach(function(t){delete p4[t]})}i(ps0,"resetLoggedProperties")});var l4=h(ks=>{"use strict";ks.__esModule=!0;ks.HandlebarsEnvironment=lQ;function oAe(t){return t&&t.__esModule?t:{default:t}}i(oAe,"_interopRequireDefault");var gp=Yt(),As0=nn(),pQ=oAe(As0),ls0=iQ(),ds0=eAe(),bs0=cQ(),A4=oAe(bs0),fs0=uQ(),Ms0="4.7.9";ks.VERSION=Ms0;var hs0=8;ks.COMPILER_REVISION=hs0;var ms0=7;ks.LAST_COMPATIBLE_COMPILER_REVISION=ms0;var zs0={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"};ks.REVISION_CHANGES=zs0;var AQ="[object Object]";function lQ(t,e,r){this.helpers=t||{},this.partials=e||{},this.decorators=r||{},ls0.registerDefaultHelpers(this),ds0.registerDefaultDecorators(this)}i(lQ,"HandlebarsEnvironment");lQ.prototype={constructor:lQ,logger:A4.default,log:A4.default.log,registerHelper:i(function(e,r){if(gp.toString.call(e)===AQ){if(r)throw new pQ.default("Arg not supported with multiple helpers");gp.extend(this.helpers,e)}else this.helpers[e]=r},"registerHelper"),unregisterHelper:i(function(e){delete this.helpers[e]},"unregisterHelper"),registerPartial:i(function(e,r){if(gp.toString.call(e)===AQ)gp.extend(this.partials,e);else{if(typeof r>"u")throw new pQ.default('Attempting to register a partial called "'+e+'" as undefined');this.partials[e]=r}},"registerPartial"),unregisterPartial:i(function(e){delete this.partials[e]},"unregisterPartial"),registerDecorator:i(function(e,r){if(gp.toString.call(e)===AQ){if(r)throw new pQ.default("Arg not supported with multiple decorators");gp.extend(this.decorators,e)}else this.decorators[e]=r},"registerDecorator"),unregisterDecorator:i(function(e){delete this.decorators[e]},"unregisterDecorator"),resetLoggedPropertyAccesses:i(function(){fs0.resetLoggedProperties()},"resetLoggedPropertyAccesses")};var gs0=A4.default.log;ks.log=gs0;ks.createFrame=gp.createFrame;ks.logger=A4.default});var iAe=h((d4,sAe)=>{"use strict";d4.__esModule=!0;function dQ(t){this.string=t}i(dQ,"SafeString");dQ.prototype.toString=dQ.prototype.toHTML=function(){return""+this.string};d4.default=dQ;sAe.exports=d4.default});var aAe=h(bQ=>{"use strict";bQ.__esModule=!0;bQ.wrapHelper=Os0;function Os0(t,e){if(typeof t!="function")return t;var r=i(function(){var o=arguments[arguments.length-1];return arguments[arguments.length-1]=e(o),t.apply(this,arguments)},"wrapper");return r}i(Os0,"wrapHelper")});var dAe=h(yc=>{"use strict";yc.__esModule=!0;yc.checkRevision=Ds0;yc.template=Is0;yc.wrapProgram=b4;yc.resolvePartial=Rs0;yc.invokePartial=Ns0;yc.noop=AAe;function Es0(t){return t&&t.__esModule?t:{default:t}}i(Es0,"_interopRequireDefault");function Cs0(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}i(Cs0,"_interopRequireWildcard");var ys0=Yt(),B2=Cs0(ys0),Bs0=nn(),aa=Es0(Bs0),ca=l4(),cAe=iQ(),qs0=aAe(),uAe=uQ();function Ds0(t){var e=t&&t[0]||1,r=ca.COMPILER_REVISION;if(!(e>=ca.LAST_COMPATIBLE_COMPILER_REVISION&&e<=ca.COMPILER_REVISION))if(e<ca.LAST_COMPATIBLE_COMPILER_REVISION){var n=ca.REVISION_CHANGES[r],o=ca.REVISION_CHANGES[e];throw new aa.default("Template was precompiled with an older version of Handlebars than the current runtime. Please update your precompiler to a newer version ("+n+") or downgrade your runtime to an older version ("+o+").")}else throw new aa.default("Template was precompiled with a newer version of Handlebars than the current runtime. Please update your runtime to a newer version ("+t[1]+").")}i(Ds0,"checkRevision");function Is0(t,e){if(!e)throw new aa.default("No environment passed to template");if(!t||!t.main)throw new aa.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 n(a,c,u){u.hash&&(c=B2.extend({},c,u.hash),u.ids&&(u.ids[0]=!0)),a=e.VM.resolvePartial.call(this,a,c,u),u.hooks=this.hooks,u.protoAccessControl=this.protoAccessControl;var p=e.VM.invokePartial.call(this,a,c,u);if(p==null&&e.compile&&(u.partials[u.name]=e.compile(a,t.compilerOptions,e),p=u.partials[u.name](c,u)),p!=null){if(u.indent){for(var A=p.split(`
See https://handlebarsjs.com/api-reference/runtime-options.html#options-to-control-prototype-access for details`))}i(ms0,"logUnexpecedPropertyAccessOnce");function zs0(){Object.keys(l4).forEach(function(t){delete l4[t]})}i(zs0,"resetLoggedProperties")});var b4=h(Us=>{"use strict";Us.__esModule=!0;Us.HandlebarsEnvironment=MQ;function iAe(t){return t&&t.__esModule?t:{default:t}}i(iAe,"_interopRequireDefault");var gp=Jt(),gs0=sn(),bQ=iAe(gs0),Os0=pQ(),Es0=rAe(),Cs0=lQ(),d4=iAe(Cs0),ys0=dQ(),Bs0="4.7.9";Us.VERSION=Bs0;var qs0=8;Us.COMPILER_REVISION=qs0;var Ds0=7;Us.LAST_COMPATIBLE_COMPILER_REVISION=Ds0;var Is0={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"};Us.REVISION_CHANGES=Is0;var fQ="[object Object]";function MQ(t,e,r){this.helpers=t||{},this.partials=e||{},this.decorators=r||{},Os0.registerDefaultHelpers(this),Es0.registerDefaultDecorators(this)}i(MQ,"HandlebarsEnvironment");MQ.prototype={constructor:MQ,logger:d4.default,log:d4.default.log,registerHelper:i(function(e,r){if(gp.toString.call(e)===fQ){if(r)throw new bQ.default("Arg not supported with multiple helpers");gp.extend(this.helpers,e)}else this.helpers[e]=r},"registerHelper"),unregisterHelper:i(function(e){delete this.helpers[e]},"unregisterHelper"),registerPartial:i(function(e,r){if(gp.toString.call(e)===fQ)gp.extend(this.partials,e);else{if(typeof r>"u")throw new bQ.default('Attempting to register a partial called "'+e+'" as undefined');this.partials[e]=r}},"registerPartial"),unregisterPartial:i(function(e){delete this.partials[e]},"unregisterPartial"),registerDecorator:i(function(e,r){if(gp.toString.call(e)===fQ){if(r)throw new bQ.default("Arg not supported with multiple decorators");gp.extend(this.decorators,e)}else this.decorators[e]=r},"registerDecorator"),unregisterDecorator:i(function(e){delete this.decorators[e]},"unregisterDecorator"),resetLoggedPropertyAccesses:i(function(){ys0.resetLoggedProperties()},"resetLoggedPropertyAccesses")};var Rs0=d4.default.log;Us.log=Rs0;Us.createFrame=gp.createFrame;Us.logger=d4.default});var cAe=h((f4,aAe)=>{"use strict";f4.__esModule=!0;function hQ(t){this.string=t}i(hQ,"SafeString");hQ.prototype.toString=hQ.prototype.toHTML=function(){return""+this.string};f4.default=hQ;aAe.exports=f4.default});var uAe=h(mQ=>{"use strict";mQ.__esModule=!0;mQ.wrapHelper=Ns0;function Ns0(t,e){if(typeof t!="function")return t;var r=i(function(){var o=arguments[arguments.length-1];return arguments[arguments.length-1]=e(o),t.apply(this,arguments)},"wrapper");return r}i(Ns0,"wrapHelper")});var fAe=h(Ec=>{"use strict";Ec.__esModule=!0;Ec.checkRevision=Ts0;Ec.template=vs0;Ec.wrapProgram=M4;Ec.resolvePartial=Ls0;Ec.invokePartial=Qs0;Ec.noop=dAe;function ws0(t){return t&&t.__esModule?t:{default:t}}i(ws0,"_interopRequireDefault");function Ss0(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}i(Ss0,"_interopRequireWildcard");var Fs0=Jt(),y2=Ss0(Fs0),Ws0=sn(),sa=ws0(Ws0),ia=b4(),pAe=pQ(),xs0=uAe(),AAe=dQ();function Ts0(t){var e=t&&t[0]||1,r=ia.COMPILER_REVISION;if(!(e>=ia.LAST_COMPATIBLE_COMPILER_REVISION&&e<=ia.COMPILER_REVISION))if(e<ia.LAST_COMPATIBLE_COMPILER_REVISION){var n=ia.REVISION_CHANGES[r],o=ia.REVISION_CHANGES[e];throw new sa.default("Template was precompiled with an older version of Handlebars than the current runtime. Please update your precompiler to a newer version ("+n+") or downgrade your runtime to an older version ("+o+").")}else throw new sa.default("Template was precompiled with a newer version of Handlebars than the current runtime. Please update your runtime to a newer version ("+t[1]+").")}i(Ts0,"checkRevision");function vs0(t,e){if(!e)throw new sa.default("No environment passed to template");if(!t||!t.main)throw new sa.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 n(a,c,u){u.hash&&(c=y2.extend({},c,u.hash),u.ids&&(u.ids[0]=!0)),a=e.VM.resolvePartial.call(this,a,c,u),u.hooks=this.hooks,u.protoAccessControl=this.protoAccessControl;var p=e.VM.invokePartial.call(this,a,c,u);if(p==null&&e.compile&&(u.partials[u.name]=e.compile(a,t.compilerOptions,e),p=u.partials[u.name](c,u)),p!=null){if(u.indent){for(var A=p.split(`
`),l=0,b=A.length;l<b&&!(!A[l]&&l+1===b);l++)A[l]=u.indent+A[l];p=A.join(`
`)}return p}else throw new aa.default("The partial "+u.name+" could not be compiled when running in runtime-only mode")}i(n,"invokePartialWrapper");var o={strict:i(function(c,u,p){if(!c||!(u in c))throw new aa.default('"'+u+'" not defined in '+c,{loc:p});return o.lookupProperty(c,u)},"strict"),lookupProperty:i(function(c,u){var p=c[u];if(p==null||Object.prototype.hasOwnProperty.call(c,u)||uAe.resultIsAllowed(p,o.protoAccessControl,u))return p},"lookupProperty"),lookup:i(function(c,u){for(var p=c.length,A=0;A<p;A++){var l=c[A]&&o.lookupProperty(c[A],u);if(l!=null)return l}},"lookup"),lambda:i(function(c,u){return typeof c=="function"?c.call(u):c},"lambda"),escapeExpression:B2.escapeExpression,invokePartial:n,fn:i(function(c){var u=t[c];return u.decorator=t[c+"_d"],u},"fn"),programs:[],program:i(function(c,u,p,A,l){var b=this.programs[c],M=this.fn(c);return u||l||A||p?b=b4(this,c,M,u,p,A,l):b||(b=this.programs[c]=b4(this,c,M)),b},"program"),data:i(function(c,u){for(;c&&u--;)c=c._parent;return c},"data"),mergeIfNeeded:i(function(c,u){var p=c||u;return c&&u&&c!==u&&(p=B2.extend({},u,c)),p},"mergeIfNeeded"),nullContext:Object.seal({}),noop:e.VM.noop,compilerInfo:t.compiler};function s(a){var c=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],u=c.data;s._setup(c),!c.partial&&t.useData&&(u=ws0(a,u));var p=void 0,A=t.useBlockParams?[]:void 0;t.useDepths&&(c.depths?p=a!=c.depths[0]?[a].concat(c.depths):c.depths:p=[a]);function l(b){return""+t.main(o,b,o.helpers,o.partials,u,A,p)}return i(l,"main"),l=lAe(t.main,l,o,c.depths||[],u,A),l(a,c)}return i(s,"ret"),s.isTop=!0,s._setup=function(a){if(a.partial)o.protoAccessControl=a.protoAccessControl,o.helpers=a.helpers,o.partials=a.partials,o.decorators=a.decorators,o.hooks=a.hooks;else{var c={};pAe(c,e.helpers,o),pAe(c,a.helpers,o),o.helpers=c,t.usePartial&&(o.partials=o.mergeIfNeeded(a.partials,e.partials)),(t.usePartial||t.useDecorators)&&(o.decorators=B2.extend({},e.decorators,a.decorators)),o.hooks={},o.protoAccessControl=uAe.createProtoAccessControl(a);var u=a.allowCallsToHelperMissing||r;cAe.moveHelperToHooks(o,"helperMissing",u),cAe.moveHelperToHooks(o,"blockHelperMissing",u)}},s._child=function(a,c,u,p){if(t.useBlockParams&&!u)throw new aa.default("must pass block params");if(t.useDepths&&!p)throw new aa.default("must pass parent depths");return b4(o,a,t[a],c,0,u,p)},s}i(Is0,"template");function b4(t,e,r,n,o,s,a){function c(u){var p=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],A=a;return a&&u!=a[0]&&!(u===t.nullContext&&a[0]===null)&&(A=[u].concat(a)),r(t,u,t.helpers,t.partials,p.data||n,s&&[p.blockParams].concat(s),A)}return i(c,"prog"),c=lAe(r,c,t,a,n,s),c.program=e,c.depth=a?a.length:0,c.blockParams=o||0,c}i(b4,"wrapProgram");function Rs0(t,e,r){return t?!t.call&&!r.name&&(r.name=t,t=f4(r.partials,t)):r.name==="@partial-block"?t=f4(r.data,"partial-block"):t=f4(r.partials,r.name),t}i(Rs0,"resolvePartial");function Ns0(t,e,r){var n=f4(r.data,"partial-block");r.partial=!0,r.ids&&(r.data.contextPath=r.ids[0]||r.data.contextPath);var o=void 0;if(r.fn&&r.fn!==AAe&&(function(){r.data=ca.createFrame(r.data);var s=r.fn;o=r.data["partial-block"]=i(function(c){var u=arguments.length<=1||arguments[1]===void 0?{}:arguments[1];return u.data=ca.createFrame(u.data),u.data["partial-block"]=n,s(c,u)},"partialBlockWrapper"),s.partials&&(r.partials=B2.extend({},r.partials,s.partials))})(),t===void 0&&o&&(t=o),t===void 0)throw new aa.default("The partial "+r.name+" could not be found");if(t instanceof Function)return t(e,r)}i(Ns0,"invokePartial");function AAe(){return""}i(AAe,"noop");function f4(t,e){if(t&&Object.prototype.hasOwnProperty.call(t,e))return t[e]}i(f4,"lookupOwnProperty");function ws0(t,e){return(!e||!("root"in e))&&(e=e?ca.createFrame(e):{},e.root=t),e}i(ws0,"initData");function lAe(t,e,r,n,o,s){if(t.decorator){var a={};e=t.decorator(e,a,r,n&&n[0],o,s,n),B2.extend(e,a)}return e}i(lAe,"executeDecorators");function pAe(t,e,r){e&&Object.keys(e).forEach(function(n){var o=e[n];t[n]=Ss0(o,r)})}i(pAe,"addHelpers");function Ss0(t,e){var r=e.lookupProperty;return qs0.wrapHelper(t,function(n){return n.lookupProperty=r,n})}i(Ss0,"passLookupPropertyOption")});var fQ=h((M4,bAe)=>{"use strict";M4.__esModule=!0;M4.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}};bAe.exports=M4.default});var zAe=h((h4,mAe)=>{"use strict";h4.__esModule=!0;function hQ(t){return t&&t.__esModule?t:{default:t}}i(hQ,"_interopRequireDefault");function mQ(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}i(mQ,"_interopRequireWildcard");var Fs0=l4(),fAe=mQ(Fs0),Ws0=iAe(),xs0=hQ(Ws0),Ts0=nn(),vs0=hQ(Ts0),Ls0=Yt(),MQ=mQ(Ls0),Qs0=dAe Line truncated
`)}return p}else throw new sa.default("The partial "+u.name+" could not be compiled when running in runtime-only mode")}i(n,"invokePartialWrapper");var o={strict:i(function(c,u,p){if(!c||!(u in c))throw new sa.default('"'+u+'" not defined in '+c,{loc:p});return o.lookupProperty(c,u)},"strict"),lookupProperty:i(function(c,u){var p=c[u];if(p==null||Object.prototype.hasOwnProperty.call(c,u)||AAe.resultIsAllowed(p,o.protoAccessControl,u))return p},"lookupProperty"),lookup:i(function(c,u){for(var p=c.length,A=0;A<p;A++){var l=c[A]&&o.lookupProperty(c[A],u);if(l!=null)return l}},"lookup"),lambda:i(function(c,u){return typeof c=="function"?c.call(u):c},"lambda"),escapeExpression:y2.escapeExpression,invokePartial:n,fn:i(function(c){var u=t[c];return u.decorator=t[c+"_d"],u},"fn"),programs:[],program:i(function(c,u,p,A,l){var b=this.programs[c],M=this.fn(c);return u||l||A||p?b=M4(this,c,M,u,p,A,l):b||(b=this.programs[c]=M4(this,c,M)),b},"program"),data:i(function(c,u){for(;c&&u--;)c=c._parent;return c},"data"),mergeIfNeeded:i(function(c,u){var p=c||u;return c&&u&&c!==u&&(p=y2.extend({},u,c)),p},"mergeIfNeeded"),nullContext:Object.seal({}),noop:e.VM.noop,compilerInfo:t.compiler};function s(a){var c=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],u=c.data;s._setup(c),!c.partial&&t.useData&&(u=_s0(a,u));var p=void 0,A=t.useBlockParams?[]:void 0;t.useDepths&&(c.depths?p=a!=c.depths[0]?[a].concat(c.depths):c.depths:p=[a]);function l(b){return""+t.main(o,b,o.helpers,o.partials,u,A,p)}return i(l,"main"),l=bAe(t.main,l,o,c.depths||[],u,A),l(a,c)}return i(s,"ret"),s.isTop=!0,s._setup=function(a){if(a.partial)o.protoAccessControl=a.protoAccessControl,o.helpers=a.helpers,o.partials=a.partials,o.decorators=a.decorators,o.hooks=a.hooks;else{var c={};lAe(c,e.helpers,o),lAe(c,a.helpers,o),o.helpers=c,t.usePartial&&(o.partials=o.mergeIfNeeded(a.partials,e.partials)),(t.usePartial||t.useDecorators)&&(o.decorators=y2.extend({},e.decorators,a.decorators)),o.hooks={},o.protoAccessControl=AAe.createProtoAccessControl(a);var u=a.allowCallsToHelperMissing||r;pAe.moveHelperToHooks(o,"helperMissing",u),pAe.moveHelperToHooks(o,"blockHelperMissing",u)}},s._child=function(a,c,u,p){if(t.useBlockParams&&!u)throw new sa.default("must pass block params");if(t.useDepths&&!p)throw new sa.default("must pass parent depths");return M4(o,a,t[a],c,0,u,p)},s}i(vs0,"template");function M4(t,e,r,n,o,s,a){function c(u){var p=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],A=a;return a&&u!=a[0]&&!(u===t.nullContext&&a[0]===null)&&(A=[u].concat(a)),r(t,u,t.helpers,t.partials,p.data||n,s&&[p.blockParams].concat(s),A)}return i(c,"prog"),c=bAe(r,c,t,a,n,s),c.program=e,c.depth=a?a.length:0,c.blockParams=o||0,c}i(M4,"wrapProgram");function Ls0(t,e,r){return t?!t.call&&!r.name&&(r.name=t,t=h4(r.partials,t)):r.name==="@partial-block"?t=h4(r.data,"partial-block"):t=h4(r.partials,r.name),t}i(Ls0,"resolvePartial");function Qs0(t,e,r){var n=h4(r.data,"partial-block");r.partial=!0,r.ids&&(r.data.contextPath=r.ids[0]||r.data.contextPath);var o=void 0;if(r.fn&&r.fn!==dAe&&(function(){r.data=ia.createFrame(r.data);var s=r.fn;o=r.data["partial-block"]=i(function(c){var u=arguments.length<=1||arguments[1]===void 0?{}:arguments[1];return u.data=ia.createFrame(u.data),u.data["partial-block"]=n,s(c,u)},"partialBlockWrapper"),s.partials&&(r.partials=y2.extend({},r.partials,s.partials))})(),t===void 0&&o&&(t=o),t===void 0)throw new sa.default("The partial "+r.name+" could not be found");if(t instanceof Function)return t(e,r)}i(Qs0,"invokePartial");function dAe(){return""}i(dAe,"noop");function h4(t,e){if(t&&Object.prototype.hasOwnProperty.call(t,e))return t[e]}i(h4,"lookupOwnProperty");function _s0(t,e){return(!e||!("root"in e))&&(e=e?ia.createFrame(e):{},e.root=t),e}i(_s0,"initData");function bAe(t,e,r,n,o,s){if(t.decorator){var a={};e=t.decorator(e,a,r,n&&n[0],o,s,n),y2.extend(e,a)}return e}i(bAe,"executeDecorators");function lAe(t,e,r){e&&Object.keys(e).forEach(function(n){var o=e[n];t[n]=Ps0(o,r)})}i(lAe,"addHelpers");function Ps0(t,e){var r=e.lookupProperty;return xs0.wrapHelper(t,function(n){return n.lookupProperty=r,n})}i(Ps0,"passLookupPropertyOption")});var zQ=h((m4,MAe)=>{"use strict";m4.__esModule=!0;m4.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}};MAe.exports=m4.default});var OAe=h((z4,gAe)=>{"use strict";z4.__esModule=!0;function OQ(t){return t&&t.__esModule?t:{default:t}}i(OQ,"_interopRequireDefault");function EQ(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}i(EQ,"_interopRequireWildcard");var ks0=b4(),hAe=EQ(ks0),Us0=cAe(),Gs0=OQ(Us0),Hs0=sn(),Xs0=OQ(Hs0),Vs0=Jt(),gQ=EQ(Vs0),Ys0=fAe Line truncated
`+this.lexer.showPosition()+`
Expecting `+pe.join(", ")+", got '"+(this.terminals_[I]||I)+"'":Ue="Parse error on line "+(l+1)+": Unexpected "+(I==1?"end of input":"'"+(this.terminals_[I]||I)+"'"),this.parseError(Ue,{text:this.lexer.match,token:this.terminals_[I]||I,line:this.lexer.yylineno,loc:y,expected:pe})}}if(L[0]instanceof Array&&L.length>1)throw new Error("Parse Error: multiple actions possible at state: "+x+", token: "+I);switch(L[0]){case 1:a.push(I),c.push(this.lexer.yytext),u.push(this.lexer.yylloc),a.push(L[1]),I=null,W?(I=W,W=null):(b=this.lexer.yyleng,A=this.lexer.yytext,l=this.lexer.yylineno,y=this.lexer.yylloc,M>0&&M--);break;case 2:if(Be=this.productions_[L[1]][1],Ge.$=c[c.length-Be],Ge._$={first_line:u[u.length-(Be||1)].first_line,last_line:u[u.length-1].last_line,first_column:u[u.length-(Be||1)].first_column,last_column:u[u.length-1].last_column},E&&(Ge._$.range=[u[u.length-(Be||1)].range[0],u[u.length-1].range[1]]),Te=this.performAction.call(Ge,A,b,l,this.yy,L[1],c,u),typeof Te<"u")return Te;Be&&(a=a.slice(0,-1*Be*2),c=c.slice(0,-1*Be),u=u.slice(0,-1*Be)),a.push(this.productions_[L[1]][0]),c.push(Ge.$),u.push(Ge._$),ke=p[a[a.length-2]][a[a.length-1]],a.push(ke);break;case 3:return!0}}return!0},"parse")},e=(function(){var n={EOF:1,parseError:i(function(s,a){if(this.yy.parser)this.yy.parser.parseError(s,a);else throw new Error(s)},"parseError"),setInput:i(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},"setInput"),input:i(function(){var s=this._input[0];this.yytext+=s,this.yyleng++,this.offset++,this.match+=s,this.matched+=s;var a=s.match(/(?:\r\n?|\n).*/g);return a?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),s},"input"),unput:i(function(s){var a=s.length,c=s.split(/(?:\r\n?|\n)/g);this._input=s+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-a-1),this.offset-=a;var u=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),c.length-1&&(this.yylineno-=c.length-1);var p=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:c?(c.length===u.length?this.yylloc.first_column:0)+u[u.length-c.length].length-c[0].length:this.yylloc.first_column-a},this.options.ranges&&(this.yylloc.range=[p[0],p[0]+this.yyleng-a]),this},"unput"),more:i(function(){return this._more=!0,this},"more"),less:i(function(s){this.unput(this.match.slice(s))},"less"),pastInput:i(function(){var s=this.matched.substr(0,this.matched.length-this.match.length);return(s.length>20?"...":"")+s.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:i(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,"")},"upcomingInput"),showPosition:i(function(){var s=this.pastInput(),a=new Array(s.length+1).join("-");return s+this.upcomingInput()+`
Expecting `+pe.join(", ")+", got '"+(this.terminals_[D]||D)+"'":Ue="Parse error on line "+(l+1)+": Unexpected "+(D==1?"end of input":"'"+(this.terminals_[D]||D)+"'"),this.parseError(Ue,{text:this.lexer.match,token:this.terminals_[D]||D,line:this.lexer.yylineno,loc:y,expected:pe})}}if(L[0]instanceof Array&&L.length>1)throw new Error("Parse Error: multiple actions possible at state: "+x+", token: "+D);switch(L[0]){case 1:a.push(D),c.push(this.lexer.yytext),u.push(this.lexer.yylloc),a.push(L[1]),D=null,W?(D=W,W=null):(b=this.lexer.yyleng,A=this.lexer.yytext,l=this.lexer.yylineno,y=this.lexer.yylloc,M>0&&M--);break;case 2:if(Be=this.productions_[L[1]][1],Ge.$=c[c.length-Be],Ge._$={first_line:u[u.length-(Be||1)].first_line,last_line:u[u.length-1].last_line,first_column:u[u.length-(Be||1)].first_column,last_column:u[u.length-1].last_column},E&&(Ge._$.range=[u[u.length-(Be||1)].range[0],u[u.length-1].range[1]]),Te=this.performAction.call(Ge,A,b,l,this.yy,L[1],c,u),typeof Te<"u")return Te;Be&&(a=a.slice(0,-1*Be*2),c=c.slice(0,-1*Be),u=u.slice(0,-1*Be)),a.push(this.productions_[L[1]][0]),c.push(Ge.$),u.push(Ge._$),ke=p[a[a.length-2]][a[a.length-1]],a.push(ke);break;case 3:return!0}}return!0},"parse")},e=(function(){var n={EOF:1,parseError:i(function(s,a){if(this.yy.parser)this.yy.parser.parseError(s,a);else throw new Error(s)},"parseError"),setInput:i(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},"setInput"),input:i(function(){var s=this._input[0];this.yytext+=s,this.yyleng++,this.offset++,this.match+=s,this.matched+=s;var a=s.match(/(?:\r\n?|\n).*/g);return a?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),s},"input"),unput:i(function(s){var a=s.length,c=s.split(/(?:\r\n?|\n)/g);this._input=s+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-a-1),this.offset-=a;var u=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),c.length-1&&(this.yylineno-=c.length-1);var p=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:c?(c.length===u.length?this.yylloc.first_column:0)+u[u.length-c.length].length-c[0].length:this.yylloc.first_column-a},this.options.ranges&&(this.yylloc.range=[p[0],p[0]+this.yyleng-a]),this},"unput"),more:i(function(){return this._more=!0,this},"more"),less:i(function(s){this.unput(this.match.slice(s))},"less"),pastInput:i(function(){var s=this.matched.substr(0,this.matched.length-this.match.length);return(s.length>20?"...":"")+s.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:i(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,"")},"upcomingInput"),showPosition:i(function(){var s=this.pastInput(),a=new Array(s.length+1).join("-");return s+this.upcomingInput()+`
`+a+"^"},"showPosition"),next:i(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var s,a,c,u,p,A;this._more||(this.yytext="",this.match="");for(var l=this._currentRules(),b=0;b<l.length&&(c=this._input.match(this.rules[l[b]]),!(c&&(!a||c[0].length>a[0].length)&&(a=c,u=b,!this.options.flex)));b++);return a?(A=a[0].match(/(?:\r\n?|\n).*/g),A&&(this.yylineno+=A.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:A?A[A.length-1].length-A[A.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+a[0].length},this.yytext+=a[0],this.match+=a[0],this.matches=a,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(a[0].length),this.matched+=a[0],s=this.performAction.call(this,this.yy,this,l[u],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})},"next"),lex:i(function(){var s=this.next();return typeof s<"u"?s:this.lex()},"lex"),begin:i(function(s){this.conditionStack.push(s)},"begin"),popState:i(function(){return this.conditionStack.pop()},"popState"),_currentRules:i(function(){return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules},"_currentRules"),topState:i(function(){return this.conditionStack[this.conditionStack.length-2]},"topState"),pushState:i(function(s){this.begin(s)},"begin")};return n.options={},n.performAction=i(function(s,a,c,u){function p(l,b){return a.yytext=a.yytext.substring(l,a.yyleng-b+l)}i(p,"strip");var A=u;switch(c){case 0:if(a.yytext.slice(-2)==="\\\\"?(p(0,1),this.begin("mu")):a.yytext.slice(-1)==="\\"?(p(0,1),this.begin("emu")):this.begin("mu"),a.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:(p(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(a.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 a.yytext=p(1,2).replace(/\\"/g,'"'),80;break;case 32:return a.yytext=p(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 a.yytext=a.yytext.replace(/\\([\\\]])/g,"$1"),72;break;case 43:return"INVALID";case 44:return 5}},"anonymous"),n.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\/.)|]))))/,/^(?:\[(\\\]|[^\]])*\])/,/^(?:.)/,/^(?:$)/],n.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}},n})();t.lexer=e;function r(){this.yy={}}return i(r,"Parser"),r.prototype=t,t.Parser=r,new r})();z4.default=ks0;EAe.exports=z4.default});var C4=h((E4,qAe)=>{"use strict";E4.__esModule=!0;function Us0(t){return t&&t.__esModule?t:{default:t}}i(Us0,"_interopRequireDefault");var Gs0=nn(),gQ=Us0(Gs0);function g4(){this.parents=[]}i(g4,"Visitor");g4.prototype={constructor:g4,mutating:!1,acceptKey:i(function(e,r){var n=this.accept(e[r]);if(this.mutating){if(n&&!g4.prototype[n.type])throw new gQ.default('Unexpected node type "'+n.type+'" found when accepting '+r+" on "+e.type);e[r]=n}},"acceptKey"),acceptRequired:i(function(e,r){if(this.acceptKey(e,r),!e[r])throw new gQ.default(e.type+" requires "+r)},"acceptRequired"),acceptArray:i(function(e){for(var r=0,n=e.length;r<n;r++)this.acceptKey(e,r),e[r]||(e.splice(r,1),r--,n--)},"acceptArray"),accept:i(function(e){if(e){if(!this[e.type])throw new gQ.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}},"accept"),Program:i(function(e){this.acceptArray(e.body)},"Program"),MustacheStatement:O4,Decorator:O4,BlockStatement:yAe,DecoratorBlock:yAe,PartialStatement:BAe,PartialBlockStatement:i(function(e){BAe.call(this,e),this.acceptKey(e,"program")},"PartialBlockStatement"),ContentStatement:i(function(){},"ContentStatement"),CommentStatement:i(function(){},"CommentStatement"),SubExpression:O4,PathExpression:i(function(){},"PathExpressionLine truncated
`])}),e},"merge"),each:i(function(e){for(var r=0,n=this.source.length;r<n;r++)e(this.source[r])},"each"),empty:i(function(){var e=this.currentLocation||{start:{}};return new yp(e.start.line,e.start.column,this.srcFile)},"empty"),wrap:i(function(e){var r=arguments.length<=1||arguments[1]===void 0?this.currentLocation||{start:{}}:arguments[1];return e instanceof yp?e:(e=kQ(e,this,r),new yp(r.start.line,r.start.column,this.srcFile,e))},"wrap"),functionCall:i(function(e,r,n){return n=this.generateList(n),this.wrap([e,r?"."+r+"(":"(",n,")"])},"functionCall"),quotedString:i(function(e){return'"'+(e+"").replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")+'"'},"quotedString"),objectLiteral:i(function(e){var r=this,n=[];Object.keys(e).forEach(function(s){var a=kQ(e[s],r);a!=="undefined"&&n.push([r.quotedString(s),":",a])});var o=this.generateList(n);return o.prepend("{"),o.add("}"),o},"objectLiteral"),generateList:i(function(e){for(var r=this.empty(),n=0,o=e.length;n<o;n++)n&&r.add(","),r.add(kQ(e[n],this));return r},"generateList"),generateArray:i(function(e){var r=this.generateList(e);return r.prepend("["),r.add("]"),r},"generateArray")};w4.default=ale;cle.exports=w4.default});var ble=h((S4,dle)=>{"use strict";S4.__esModule=!0;function lle(t){return t&&t.__esModule?t:{default:t}}i(lle,"_interopRequireDefault");var ple=l4(),Pi0=nn(),GQ=lle(Pi0),ki0=Yt(),Ui0=ule(),Ale=lle(Ui0);function w2(t){this.value=t}i(w2,"Literal");function S2(){}i(S2,"JavaScriptCompiler");S2.prototype={nameLookup:i(function(e,r){return this.internalNameLookup(e,r)},"nameLookup"),depthedLookup:i(function(e){return[this.aliasable("container.lookup"),"(depths, ",JSON.stringify(e),")"]},"depthedLookup"),compilerInfo:i(function(){var e=ple.COMPILER_REVISION,r=ple.REVISION_CHANGES[e];return[e,r]},"compilerInfo"),appendToBuffer:i(function(e,r,n){return ki0.isArray(e)||(e=[e]),e=this.source.wrap(e,r),this.environment.isSimple?["return ",e,";"]:n?["buffer += ",e,";"]:(e.appendToBuffer=!0,e)},"appendToBuffer"),initializeBuffer:i(function(){return this.quotedString("")},"initializeBuffer"),internalNameLookup:i(function(e,r){return this.lookupPropertyFunctionIsUsed=!0,["lookupProperty(",e,",",JSON.stringify(r),")"]},"internalNameLookup"),lookupPropertyFunctionIsUsed:!1,compile:i(function(e,r,n,o){this.environment=e,this.options=r,this.stringParams=this.options.stringParams,this.trackIds=this.options.trackIds,this.precompile=!o,this.name=this.environment.name,this.isChild=!!n,this.context=n||{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,a=void 0,c=void 0,u=void 0,p=void 0;for(u=0,p=s.length;u<p;u++)a=s[u],this.source.currentLocation=a.loc,c=c||a.loc,this[a.opcode].apply(this,a.args);if(this.source.currentLocation=c,this.pushSource(""),this.stackSlot||this.inlineStack.length||this.compileStack.length)throw new GQ.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})},"next"),lex:i(function(){var s=this.next();return typeof s<"u"?s:this.lex()},"lex"),begin:i(function(s){this.conditionStack.push(s)},"begin"),popState:i(function(){return this.conditionStack.pop()},"popState"),_currentRules:i(function(){return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules},"_currentRules"),topState:i(function(){return this.conditionStack[this.conditionStack.length-2]},"topState"),pushState:i(function(s){this.begin(s)},"begin")};return n.options={},n.performAction=i(function(s,a,c,u){function p(l,b){return a.yytext=a.yytext.substring(l,a.yyleng-b+l)}i(p,"strip");var A=u;switch(c){case 0:if(a.yytext.slice(-2)==="\\\\"?(p(0,1),this.begin("mu")):a.yytext.slice(-1)==="\\"?(p(0,1),this.begin("emu")):this.begin("mu"),a.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:(p(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(a.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 a.yytext=p(1,2).replace(/\\"/g,'"'),80;break;case 32:return a.yytext=p(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 a.yytext=a.yytext.replace(/\\([\\\]])/g,"$1"),72;break;case 43:return"INVALID";case 44:return 5}},"anonymous"),n.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\/.)|]))))/,/^(?:\[(\\\]|[^\]])*\])/,/^(?:.)/,/^(?:$)/],n.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}},n})();t.lexer=e;function r(){this.yy={}}return i(r,"Parser"),r.prototype=t,t.Parser=r,new r})();O4.default=js0;yAe.exports=O4.default});var B4=h((y4,IAe)=>{"use strict";y4.__esModule=!0;function Ks0(t){return t&&t.__esModule?t:{default:t}}i(Ks0,"_interopRequireDefault");var Zs0=sn(),yQ=Ks0(Zs0);function E4(){this.parents=[]}i(E4,"Visitor");E4.prototype={constructor:E4,mutating:!1,acceptKey:i(function(e,r){var n=this.accept(e[r]);if(this.mutating){if(n&&!E4.prototype[n.type])throw new yQ.default('Unexpected node type "'+n.type+'" found when accepting '+r+" on "+e.type);e[r]=n}},"acceptKey"),acceptRequired:i(function(e,r){if(this.acceptKey(e,r),!e[r])throw new yQ.default(e.type+" requires "+r)},"acceptRequired"),acceptArray:i(function(e){for(var r=0,n=e.length;r<n;r++)this.acceptKey(e,r),e[r]||(e.splice(r,1),r--,n--)},"acceptArray"),accept:i(function(e){if(e){if(!this[e.type])throw new yQ.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}},"accept"),Program:i(function(e){this.acceptArray(e.body)},"Program"),MustacheStatement:C4,Decorator:C4,BlockStatement:qAe,DecoratorBlock:qAe,PartialStatement:DAe,PartialBlockStatement:i(function(e){DAe.call(this,e),this.acceptKey(e,"program")},"PartialBlockStatement"),ContentStatement:i(function(){},"ContentStatement"),CommentStatement:i(function(){},"CommentStatement"),SubExpression:C4,PathExpression:i(function(){},"PathExpressionLine truncated
`])}),e},"merge"),each:i(function(e){for(var r=0,n=this.source.length;r<n;r++)e(this.source[r])},"each"),empty:i(function(){var e=this.currentLocation||{start:{}};return new yp(e.start.line,e.start.column,this.srcFile)},"empty"),wrap:i(function(e){var r=arguments.length<=1||arguments[1]===void 0?this.currentLocation||{start:{}}:arguments[1];return e instanceof yp?e:(e=XQ(e,this,r),new yp(r.start.line,r.start.column,this.srcFile,e))},"wrap"),functionCall:i(function(e,r,n){return n=this.generateList(n),this.wrap([e,r?"."+r+"(":"(",n,")"])},"functionCall"),quotedString:i(function(e){return'"'+(e+"").replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")+'"'},"quotedString"),objectLiteral:i(function(e){var r=this,n=[];Object.keys(e).forEach(function(s){var a=XQ(e[s],r);a!=="undefined"&&n.push([r.quotedString(s),":",a])});var o=this.generateList(n);return o.prepend("{"),o.add("}"),o},"objectLiteral"),generateList:i(function(e){for(var r=this.empty(),n=0,o=e.length;n<o;n++)n&&r.add(","),r.add(XQ(e[n],this));return r},"generateList"),generateArray:i(function(e){var r=this.generateList(e);return r.prepend("["),r.add("]"),r},"generateArray")};F4.default=ule;ple.exports=F4.default});var Mle=h((W4,fle)=>{"use strict";W4.__esModule=!0;function ble(t){return t&&t.__esModule?t:{default:t}}i(ble,"_interopRequireDefault");var lle=b4(),$i0=sn(),YQ=ble($i0),ji0=Jt(),Ki0=Ale(),dle=ble(Ki0);function N2(t){this.value=t}i(N2,"Literal");function w2(){}i(w2,"JavaScriptCompiler");w2.prototype={nameLookup:i(function(e,r){return this.internalNameLookup(e,r)},"nameLookup"),depthedLookup:i(function(e){return[this.aliasable("container.lookup"),"(depths, ",JSON.stringify(e),")"]},"depthedLookup"),compilerInfo:i(function(){var e=lle.COMPILER_REVISION,r=lle.REVISION_CHANGES[e];return[e,r]},"compilerInfo"),appendToBuffer:i(function(e,r,n){return ji0.isArray(e)||(e=[e]),e=this.source.wrap(e,r),this.environment.isSimple?["return ",e,";"]:n?["buffer += ",e,";"]:(e.appendToBuffer=!0,e)},"appendToBuffer"),initializeBuffer:i(function(){return this.quotedString("")},"initializeBuffer"),internalNameLookup:i(function(e,r){return this.lookupPropertyFunctionIsUsed=!0,["lookupProperty(",e,",",JSON.stringify(r),")"]},"internalNameLookup"),lookupPropertyFunctionIsUsed:!1,compile:i(function(e,r,n,o){this.environment=e,this.options=r,this.stringParams=this.options.stringParams,this.trackIds=this.options.trackIds,this.precompile=!o,this.name=this.environment.name,this.isChild=!!n,this.context=n||{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,a=void 0,c=void 0,u=void 0,p=void 0;for(u=0,p=s.length;u<p;u++)a=s[u],this.source.currentLocation=a.loc,c=c||a.loc,this[a.opcode].apply(this,a.args);if(this.source.currentLocation=c,this.pushSource(""),this.stackSlot||this.inlineStack.length||this.compileStack.length)throw new YQ.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;"),o?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 A=this.createFunctionContext(o);if(this.isChild)return A;var l={compiler:this.compilerInfo(),main:A};this.decorators&&(l.main_d=this.decorators,l.useDecorators=!0);var b=this.context,M=b.programs,z=b.decorators;for(u=0,p=M.length;u<p;u++)l[u]=M[u],z[u]&&(l[u+"_d"]=z[u],l.useDecorators=!0);return this.environment.usePartial&&(l.usePartial=!0),this.options.data&&(l.useData=!0),this.useDepths&&(l.useDepths=!0),this.useBlockParams&&(l.useBlockParams=!0),this.options.compat&&(l.compat=!0),o?l.compilerOptions=this.options:(l.compiler=JSON.stringify(l.compiler),this.source.currentLocation={start:{line:1,column:0}},l=this.objectLiteral(l),r.srcName?(l=l.toStringWithSourceMap({file:r.destName}),l.map=l.map&&l.map.toString()):l=l.toString()),l},"compile"),preamble:i(function(){this.lastContext=0,this.source=new Ale.default(this.options.srcName),this.decorators=new Ale.default(this.options.srcName)},"preamble"),createFunctionContext:i(function(e){var r=this,n="",o=this.stackVars.concat(this.registers.list);o.length>0&&(n+=", "+o.join(", "));var s=0;Object.keys(this.aliases).forEach(function(u){var p=r.aliases[u];p.children&&p.referenceCount>1&&(n+=", alias"+ ++s+"="+u,p.children[0]="alias"+s)}),this.lookupPropertyFunctionIsUsed&&(n+=", "+this.lookupPropertyFunctionVarDeclaration());var a=["container","depth0","helpers","partials","data"];(this.useBlockParams||this.useDepths)&&a.push("blockParams"),this.useDepths&&a.push("depths");var c=this.mergeSource(n);return e?(a.push(c),Function.apply(this,a)):this.source.wrap(["function(",a.join(","),`) {
`),this.decorators=this.decorators.merge()));var A=this.createFunctionContext(o);if(this.isChild)return A;var l={compiler:this.compilerInfo(),main:A};this.decorators&&(l.main_d=this.decorators,l.useDecorators=!0);var b=this.context,M=b.programs,z=b.decorators;for(u=0,p=M.length;u<p;u++)l[u]=M[u],z[u]&&(l[u+"_d"]=z[u],l.useDecorators=!0);return this.environment.usePartial&&(l.usePartial=!0),this.options.data&&(l.useData=!0),this.useDepths&&(l.useDepths=!0),this.useBlockParams&&(l.useBlockParams=!0),this.options.compat&&(l.compat=!0),o?l.compilerOptions=this.options:(l.compiler=JSON.stringify(l.compiler),this.source.currentLocation={start:{line:1,column:0}},l=this.objectLiteral(l),r.srcName?(l=l.toStringWithSourceMap({file:r.destName}),l.map=l.map&&l.map.toString()):l=l.toString()),l},"compile"),preamble:i(function(){this.lastContext=0,this.source=new dle.default(this.options.srcName),this.decorators=new dle.default(this.options.srcName)},"preamble"),createFunctionContext:i(function(e){var r=this,n="",o=this.stackVars.concat(this.registers.list);o.length>0&&(n+=", "+o.join(", "));var s=0;Object.keys(this.aliases).forEach(function(u){var p=r.aliases[u];p.children&&p.referenceCount>1&&(n+=", alias"+ ++s+"="+u,p.children[0]="alias"+s)}),this.lookupPropertyFunctionIsUsed&&(n+=", "+this.lookupPropertyFunctionVarDeclaration());var a=["container","depth0","helpers","partials","data"];(this.useBlockParams||this.useDepths)&&a.push("blockParams"),this.useDepths&&a.push("depths");var c=this.mergeSource(n);return e?(a.push(c),Function.apply(this,a)):this.source.wrap(["function(",a.join(","),`) {
`,c,"}"])},"createFunctionContext"),mergeSource:i(function(e){var r=this.environment.isSimple,n=!this.forceBuffer,o=void 0,s=void 0,a=void 0,c=void 0;return this.source.each(function(u){u.appendToBuffer?(a?u.prepend(" + "):a=u,c=u):(a&&(s?a.prepend("buffer += "):o=!0,c.add(";"),a=c=void 0),s=!0,r||(n=!1))}),n?a?(a.prepend("return "),c.add(";")):s||this.source.push('return "";'):(e+=", buffer = "+(o?"":this.initializeBuffer()),a?(a.prepend("return buffer + "),c.add(";")):this.source.push("return buffer;")),e&&this.source.prepend("var "+e.substring(2)+(o?"":`;
`)),this.source.merge()},"mergeSource"),lookupPropertyFunctionVarDeclaration:i(function(){return`
lookupProperty = container.lookupProperty || function(parent, propertyName) {
@@ -86,85 +86,85 @@ Expecting `+pe.join(", ")+", got '"+(this.terminals_[I]||I)+"'":Ue="Parse error
}
return undefined
}
`.trim()},"lookupPropertyFunctionVarDeclaration"),blockValue:i(function(e){var r=this.aliasable("container.hooks.blockHelperMissing"),n=[this.contextName(0)];this.setupHelperArgs(e,0,n);var o=this.popStack();n.splice(1,0,o),this.push(this.source.functionCall(r,"call",n))},"blockValue"),ambiguousBlockValue:i(function(){var e=this.aliasable("container.hooks.blockHelperMissing"),r=[this.contextName(0)];this.setupHelperArgs("",0,r,!0),this.flushInline();var n=this.topStack();r.splice(1,0,n),this.pushSource(["if (!",this.lastHelper,") { ",n," = ",this.source.functionCall(e,"call",r),"}"])},"ambiguousBlockValue"),appendContent:i(function(e){this.pendingContent?e=this.pendingContent+e:this.pendingLocation=this.source.currentLocation,this.pendingContent=e},"appendContent"),append:i(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)," }"])}},"append"),appendEscaped:i(function(){this.pushSource(this.appendToBuffer([this.aliasable("container.escapeExpression"),"(",this.popStack(),")"]))},"appendEscaped"),getContext:i(function(e){this.lastContext=e},"getContext"),pushContext:i(function(){this.pushStackLiteral(this.contextName(this.lastContext))},"pushContext"),lookupOnContext:i(function(e,r,n,o){var s=0;!o&&this.options.compat&&!this.lastContext?this.push(this.depthedLookup(e[s++])):this.pushContext(),this.resolvePath("context",e,s,r,n)},"lookupOnContext"),lookupBlockParam:i(function(e,r){this.useBlockParams=!0,this.push(["blockParams[",e[0],"][",e[1],"]"]),this.resolvePath("context",r,1)},"lookupBlockParam"),lookupData:i(function(e,r,n){e?this.pushStackLiteral("container.data(data, "+e+")"):this.pushStackLiteral("data"),this.resolvePath("data",r,0,!0,n)},"lookupData"),resolvePath:i(function(e,r,n,o,s){var a=this;if(this.options.strict||this.options.assumeObjects){this.push(Gi0(this.options.strict&&s,this,r,n,e));return}for(var c=r.length,u=i(function(A){a.replaceStack(function(l){var b=a.nameLookup(l,r[A],e);return o?[" && ",b]:[" != null ? ",b," : ",l]})},"_loop"),p=n;p<c;p++)u(p)},"resolvePath"),resolvePossibleLambda:i(function(){this.push([this.aliasable("container.lambda"),"(",this.popStack(),", ",this.contextName(0),")"])},"resolvePossibleLambda"),pushStringParam:i(function(e,r){this.pushContext(),this.pushString(r),r!=="SubExpression"&&(typeof e=="string"?this.pushString(e):this.pushStackLiteral(e))},"pushStringParam"),emptyHash:i(function(e){this.trackIds&&this.push("{}"),this.stringParams&&(this.push("{}"),this.push("{}")),this.pushStackLiteral(e?"undefined":"{}")},"emptyHash"),pushHash:i(function(){this.hash&&this.hashes.push(this.hash),this.hash={values:{},types:[],contexts:[],ids:[]}},"pushHash"),popHash:i(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))},"popHash"),pushString:i(function(e){this.pushStackLiteral(this.quotedString(e))},"pushString"),pushLiteral:i(function(e){this.pushStackLiteral(e)},"pushLiteral"),pushProgram:i(function(e){e!=null?this.pushStackLiteral(this.programExpression(e)):this.pushStackLiteral(null)},"pushProgram"),registerDecorator:i(function(e,r){var n=this.nameLookup("decorators",r,"decorator"),o=this.setupHelperArgs(r,e);this.decorators.push(["var decorator = ",n,";"]),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",o])," || fn;"])},"registerDecorator"),invokeHelper:i(function(e,r,n){var o=this.popStack(),s=this.setupHelper(e,r),a=[];n&&a.push(s.name),a.push(o),this.options.strict||a.push(this.aliasable("container.hooks.helperMissing"));var c=["(",this.itemsSeparatedBy(a,"||"),")"],u=this.source.functionCall(c,"call",s.callParams);this.push(u)},"invokeHelper"),itemsSeparatedBy:i(function(e,r){var n=[];n.push(e[0]);for(var o=1;o<e.length;o++)n.push(r,e[o]);return n},"itemsSeparatedBy"),invokeKnownHelper:i(function(e,r){var n=this.setupHelper(e,r);this.push(this.source.functionCall(n.name,"call",n.callParams))},"invokeKnownHelper"),invokeAmbiguous:i(function(e,r){this.useRegister("helper");var n=this.popStack();this.emptyHash();var o=this.setupHelper(0,e,r),s=this.lastHelper=this.nameLookup("helpers",e,"helper"),a=["(","(helper = ",s," || ",n,")"];this.options.strict||(a[0]="(helper = ",a.push(" != null ? helper : ",this.aliasable("container.hooks.helperMissing"))),this.push(["(",a,o.paramsInit?["),(",o.paramsInit]:[],"),","(typeof helper === ",this.aliasable('"function"')," ? ",this.source.functionCall("h Line truncated
`,e};A1.prototype.Program=function(t){var e="",r=t.body,n=void 0,o=void 0;if(t.blockParams){var s="BLOCK PARAMS: [";for(n=0,o=t.blockParams.length;n<o;n++)s+=" "+t.blockParams[n];s+=" ]",e+=this.pad(s)}for(n=0,o=r.length;n<o;n++)e+=this.accept(r[n]);return this.padding--,e};A1.prototype.MustacheStatement=function(t){return this.pad("{{ "+this.SubExpression(t)+" }}")};A1.prototype.Decorator=function(t){return this.pad("{{ DIRECTIVE "+this.SubExpression(t)+" }}")};A1.prototype.BlockStatement=A1.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};A1.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+" }}")};A1.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+" }}")};A1.prototype.ContentStatement=function(t){return this.pad("CONTENT[ '"+t.value+"' ]")};A1.prototype.CommentStatement=function(t){return this.pad("{{! '"+t.value+"' }}")};A1.prototype.SubExpression=function(t){for(var e=t.params,r=[],n=void 0,o=0,s=e.length;o<s;o++)r.push(this.accept(e[o]));return e="["+r.join(", ")+"]",n=t.hash?" "+this.accept(t.hash):"",this.accept(t.path)+" "+e+n};A1.prototype.PathExpression=function(t){var e=t.parts.join("/");return(t.data?"@":"")+"PATH:"+e};A1.prototype.StringLiteral=function(t){return'"'+t.value+'"'};A1.prototype.NumberLiteral=function(t){return"NUMBER{"+t.value+"}"};A1.prototype.BooleanLiteral=function(t){return"BOOLEAN{"+t.value+"}"};A1.prototype.UndefinedLiteral=function(){return"UNDEFINED"};A1.prototype.NullLiteral=function(){return"NULL"};A1.prototype.Hash=function(t){for(var e=t.pairs,r=[],n=0,o=e.length;n<o;n++)r.push(this.accept(e[n]));return"HASH{"+r.join(", ")+"}"};A1.prototype.HashPair=function(t){return t.key+"="+this.accept(t.value)}});var VQ=h((Cr1,Ole)=>{var x4=hle().default,gle=mle();x4.PrintVisitor=gle.PrintVisitor;x4.print=gle.print;Ole.exports=x4;function zle(t,e){var r=require("fs"),n=r.readFileSync(e,"utf8");t.exports=x4.compile(n)}i(zle,"extension");typeof require<"u"&&require.extensions&&(require.extensions[".handlebars"]=zle,require.extensions[".hbs"]=zle)});var P4=h(qc=>{"use strict";Object.defineProperty(qc,"__esModule",{value:!0});qc.Signature=qc.Envelope=void 0;qc.Envelope={fromJSON(t){return{payload:_4(t.payload)?Buffer.from(Wle(t.payload)):Buffer.alloc(0),payloadType:_4(t.payloadType)?globalThis.String(t.payloadType):"",signatures:globalThis.Array.isArray(t?.signatures)?t.signatures.map(e=>qc.Signature.fromJSON(e)):[]}},toJSON(t){let e={};return t.payload.length!==0&&(e.payload=xle(t.payload)),t.payloadType!==""&&(e.payloadType=t.payloadType),t.signatures?.length&&(e.signatures=t.signatures.map(r=>qc.Signature.toJSON(r))),e}};qc.Signature={fromJSON(t){return{sig:_4(t.sig)?Buffer.from(Wle(t.sig)):Buffer.alloc(0),keyid:_4(t.keyid)?globalThis.String(t.keyid):""}},toJSON(t){let e={};return t.sig.length!==0&&(e.sig=xle(t.sig)),t.keyid!==""&&(e.keyid=t.keyid),e}};function Wle(t){return Uint8Array.from(globalThis.Buffer.from(t,"base64"))}i(Wle,"bytesFromBase64");function xle(t){return globalThis.Buffer.from(t).toString("base64")}i(xle,"base64FromBytes");function _4(t){return t!=null}i(_4,"isSet")});var vle=h(k4=>{"use strict";Object.defineProperty(k4,"__esModule",{value:!0});k4.Timestamp=void 0;k4.Timestamp={fromJSON(t){return{seconds:Tle(t.seconds)?globalThis.String(t.seconds):"0",nanos:Tle(t.nanos)?globalThis.Number(t.nanos):0}},toJSON(t){let e={};return t.seconds!=="0"&&(e.seconds=t.seconds),t.nanos!==0&&(e.nanos=Math.round(t.nanos)),e}};function Tle(t){return t!=null}i(Tle,"isSet")});var Aa=h(Ee=>{"use strict";Object.defineProperty(Ee,"__esModule",{value:!0});Ee.TimeRange=Ee.X509CertificateChain=Ee.SubjectAlternativeName=Ee.X509Certificate=Ee.DistinguishedName=Ee.ObjectIdentifierValuePair=Ee.ObjectIdentifier=Ee.PublicKeyIdentifier=Ee.PublicKey=Ee.RFC3161SignedTimestamp=Ee.LogId=Ee.MessageSignature=Ee.HashOutput=Ee.SubjectAlternativeNameType=Ee.PublicKeyDetails=Ee.HashAlgorithm=void 0;Ee.hashAlgorithmFromJSON=Qle;Ee.hashAlgorithmToJSON=_le;Ee.publicKeyDetailsFromJSON=Ple;Ee.publicKeyDetailsToJSON=kle;Ee.subjectAlternativeNameTypeFromJSON=Ule;Ee.subjectAlternativeNameTypeToJSON=Gle;var ua0=vle(),zr;(function(t){t[t.HASH_ALGORITHM_UNSPECIFIED=0]="HASH_ALGORITHM_UNSPECIFIED",t[t.SHA2_256=1]="SHA2_256",t[t.SHA2_384=2]="SHA2_384",t[t.SHA2_512=3]="SHA2_512",t[t.SHA3_256=4]="SH Line truncated
`.trim()},"lookupPropertyFunctionVarDeclaration"),blockValue:i(function(e){var r=this.aliasable("container.hooks.blockHelperMissing"),n=[this.contextName(0)];this.setupHelperArgs(e,0,n);var o=this.popStack();n.splice(1,0,o),this.push(this.source.functionCall(r,"call",n))},"blockValue"),ambiguousBlockValue:i(function(){var e=this.aliasable("container.hooks.blockHelperMissing"),r=[this.contextName(0)];this.setupHelperArgs("",0,r,!0),this.flushInline();var n=this.topStack();r.splice(1,0,n),this.pushSource(["if (!",this.lastHelper,") { ",n," = ",this.source.functionCall(e,"call",r),"}"])},"ambiguousBlockValue"),appendContent:i(function(e){this.pendingContent?e=this.pendingContent+e:this.pendingLocation=this.source.currentLocation,this.pendingContent=e},"appendContent"),append:i(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)," }"])}},"append"),appendEscaped:i(function(){this.pushSource(this.appendToBuffer([this.aliasable("container.escapeExpression"),"(",this.popStack(),")"]))},"appendEscaped"),getContext:i(function(e){this.lastContext=e},"getContext"),pushContext:i(function(){this.pushStackLiteral(this.contextName(this.lastContext))},"pushContext"),lookupOnContext:i(function(e,r,n,o){var s=0;!o&&this.options.compat&&!this.lastContext?this.push(this.depthedLookup(e[s++])):this.pushContext(),this.resolvePath("context",e,s,r,n)},"lookupOnContext"),lookupBlockParam:i(function(e,r){this.useBlockParams=!0,this.push(["blockParams[",e[0],"][",e[1],"]"]),this.resolvePath("context",r,1)},"lookupBlockParam"),lookupData:i(function(e,r,n){e?this.pushStackLiteral("container.data(data, "+e+")"):this.pushStackLiteral("data"),this.resolvePath("data",r,0,!0,n)},"lookupData"),resolvePath:i(function(e,r,n,o,s){var a=this;if(this.options.strict||this.options.assumeObjects){this.push(Zi0(this.options.strict&&s,this,r,n,e));return}for(var c=r.length,u=i(function(A){a.replaceStack(function(l){var b=a.nameLookup(l,r[A],e);return o?[" && ",b]:[" != null ? ",b," : ",l]})},"_loop"),p=n;p<c;p++)u(p)},"resolvePath"),resolvePossibleLambda:i(function(){this.push([this.aliasable("container.lambda"),"(",this.popStack(),", ",this.contextName(0),")"])},"resolvePossibleLambda"),pushStringParam:i(function(e,r){this.pushContext(),this.pushString(r),r!=="SubExpression"&&(typeof e=="string"?this.pushString(e):this.pushStackLiteral(e))},"pushStringParam"),emptyHash:i(function(e){this.trackIds&&this.push("{}"),this.stringParams&&(this.push("{}"),this.push("{}")),this.pushStackLiteral(e?"undefined":"{}")},"emptyHash"),pushHash:i(function(){this.hash&&this.hashes.push(this.hash),this.hash={values:{},types:[],contexts:[],ids:[]}},"pushHash"),popHash:i(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))},"popHash"),pushString:i(function(e){this.pushStackLiteral(this.quotedString(e))},"pushString"),pushLiteral:i(function(e){this.pushStackLiteral(e)},"pushLiteral"),pushProgram:i(function(e){e!=null?this.pushStackLiteral(this.programExpression(e)):this.pushStackLiteral(null)},"pushProgram"),registerDecorator:i(function(e,r){var n=this.nameLookup("decorators",r,"decorator"),o=this.setupHelperArgs(r,e);this.decorators.push(["var decorator = ",n,";"]),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",o])," || fn;"])},"registerDecorator"),invokeHelper:i(function(e,r,n){var o=this.popStack(),s=this.setupHelper(e,r),a=[];n&&a.push(s.name),a.push(o),this.options.strict||a.push(this.aliasable("container.hooks.helperMissing"));var c=["(",this.itemsSeparatedBy(a,"||"),")"],u=this.source.functionCall(c,"call",s.callParams);this.push(u)},"invokeHelper"),itemsSeparatedBy:i(function(e,r){var n=[];n.push(e[0]);for(var o=1;o<e.length;o++)n.push(r,e[o]);return n},"itemsSeparatedBy"),invokeKnownHelper:i(function(e,r){var n=this.setupHelper(e,r);this.push(this.source.functionCall(n.name,"call",n.callParams))},"invokeKnownHelper"),invokeAmbiguous:i(function(e,r){this.useRegister("helper");var n=this.popStack();this.emptyHash();var o=this.setupHelper(0,e,r),s=this.lastHelper=this.nameLookup("helpers",e,"helper"),a=["(","(helper = ",s," || ",n,")"];this.options.strict||(a[0]="(helper = ",a.push(" != null ? helper : ",this.aliasable("container.hooks.helperMissing"))),this.push(["(",a,o.paramsInit?["),(",o.paramsInit]:[],"),","(typeof helper === ",this.aliasable('"function"')," ? ",this.source.functionCall("h Line truncated
`,e};A1.prototype.Program=function(t){var e="",r=t.body,n=void 0,o=void 0;if(t.blockParams){var s="BLOCK PARAMS: [";for(n=0,o=t.blockParams.length;n<o;n++)s+=" "+t.blockParams[n];s+=" ]",e+=this.pad(s)}for(n=0,o=r.length;n<o;n++)e+=this.accept(r[n]);return this.padding--,e};A1.prototype.MustacheStatement=function(t){return this.pad("{{ "+this.SubExpression(t)+" }}")};A1.prototype.Decorator=function(t){return this.pad("{{ DIRECTIVE "+this.SubExpression(t)+" }}")};A1.prototype.BlockStatement=A1.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};A1.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+" }}")};A1.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+" }}")};A1.prototype.ContentStatement=function(t){return this.pad("CONTENT[ '"+t.value+"' ]")};A1.prototype.CommentStatement=function(t){return this.pad("{{! '"+t.value+"' }}")};A1.prototype.SubExpression=function(t){for(var e=t.params,r=[],n=void 0,o=0,s=e.length;o<s;o++)r.push(this.accept(e[o]));return e="["+r.join(", ")+"]",n=t.hash?" "+this.accept(t.hash):"",this.accept(t.path)+" "+e+n};A1.prototype.PathExpression=function(t){var e=t.parts.join("/");return(t.data?"@":"")+"PATH:"+e};A1.prototype.StringLiteral=function(t){return'"'+t.value+'"'};A1.prototype.NumberLiteral=function(t){return"NUMBER{"+t.value+"}"};A1.prototype.BooleanLiteral=function(t){return"BOOLEAN{"+t.value+"}"};A1.prototype.UndefinedLiteral=function(){return"UNDEFINED"};A1.prototype.NullLiteral=function(){return"NULL"};A1.prototype.Hash=function(t){for(var e=t.pairs,r=[],n=0,o=e.length;n<o;n++)r.push(this.accept(e[n]));return"HASH{"+r.join(", ")+"}"};A1.prototype.HashPair=function(t){return t.key+"="+this.accept(t.value)}});var jQ=h((Sr1,Cle)=>{var v4=zle().default,Ele=gle();v4.PrintVisitor=Ele.PrintVisitor;v4.print=Ele.print;Cle.exports=v4;function Ole(t,e){var r=require("fs"),n=r.readFileSync(e,"utf8");t.exports=v4.compile(n)}i(Ole,"extension");typeof require<"u"&&require.extensions&&(require.extensions[".handlebars"]=Ole,require.extensions[".hbs"]=Ole)});var U4=h(yc=>{"use strict";Object.defineProperty(yc,"__esModule",{value:!0});yc.Signature=yc.Envelope=void 0;yc.Envelope={fromJSON(t){return{payload:k4(t.payload)?Buffer.from(Tle(t.payload)):Buffer.alloc(0),payloadType:k4(t.payloadType)?globalThis.String(t.payloadType):"",signatures:globalThis.Array.isArray(t?.signatures)?t.signatures.map(e=>yc.Signature.fromJSON(e)):[]}},toJSON(t){let e={};return t.payload.length!==0&&(e.payload=vle(t.payload)),t.payloadType!==""&&(e.payloadType=t.payloadType),t.signatures?.length&&(e.signatures=t.signatures.map(r=>yc.Signature.toJSON(r))),e}};yc.Signature={fromJSON(t){return{sig:k4(t.sig)?Buffer.from(Tle(t.sig)):Buffer.alloc(0),keyid:k4(t.keyid)?globalThis.String(t.keyid):""}},toJSON(t){let e={};return t.sig.length!==0&&(e.sig=vle(t.sig)),t.keyid!==""&&(e.keyid=t.keyid),e}};function Tle(t){return Uint8Array.from(globalThis.Buffer.from(t,"base64"))}i(Tle,"bytesFromBase64");function vle(t){return globalThis.Buffer.from(t).toString("base64")}i(vle,"base64FromBytes");function k4(t){return t!=null}i(k4,"isSet")});var Qle=h(G4=>{"use strict";Object.defineProperty(G4,"__esModule",{value:!0});G4.Timestamp=void 0;G4.Timestamp={fromJSON(t){return{seconds:Lle(t.seconds)?globalThis.String(t.seconds):"0",nanos:Lle(t.nanos)?globalThis.Number(t.nanos):0}},toJSON(t){let e={};return t.seconds!=="0"&&(e.seconds=t.seconds),t.nanos!==0&&(e.nanos=Math.round(t.nanos)),e}};function Lle(t){return t!=null}i(Lle,"isSet")});var ua=h(Ee=>{"use strict";Object.defineProperty(Ee,"__esModule",{value:!0});Ee.TimeRange=Ee.X509CertificateChain=Ee.SubjectAlternativeName=Ee.X509Certificate=Ee.DistinguishedName=Ee.ObjectIdentifierValuePair=Ee.ObjectIdentifier=Ee.PublicKeyIdentifier=Ee.PublicKey=Ee.RFC3161SignedTimestamp=Ee.LogId=Ee.MessageSignature=Ee.HashOutput=Ee.SubjectAlternativeNameType=Ee.PublicKeyDetails=Ee.HashAlgorithm=void 0;Ee.hashAlgorithmFromJSON=Ple;Ee.hashAlgorithmToJSON=kle;Ee.publicKeyDetailsFromJSON=Ule;Ee.publicKeyDetailsToJSON=Gle;Ee.subjectAlternativeNameTypeFromJSON=Hle;Ee.subjectAlternativeNameTypeToJSON=Xle;var ma0=Qle(),gr;(function(t){t[t.HASH_ALGORITHM_UNSPECIFIED=0]="HASH_ALGORITHM_UNSPECIFIED",t[t.SHA2_256=1]="SHA2_256",t[t.SHA2_384=2]="SHA2_384",t[t.SHA2_512=3]="SHA2_512",t[t.SHA3_256=4]="SH Line truncated
`).join(`
`+s),t.push(o+"m+"+DB.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=Tp0()+e+" "+t[0]}i(xp0,"formatArgs");function Tp0(){return nt.inspectOpts.hideDate?"":new Date().toISOString()+" "}i(Tp0,"getDate");function vp0(...t){return process.stderr.write(qB.formatWithOptions(nt.inspectOpts,...t)+`
`)}i(vp0,"log");function Lp0(t){t?process.env.DEBUG=t:delete process.env.DEBUG}i(Lp0,"save");function Qp0(){return process.env.DEBUG}i(Qp0,"load");function _p0(t){t.inspectOpts={};let e=Object.keys(nt.inspectOpts);for(let r=0;r<e.length;r++)t.inspectOpts[e[r]]=nt.inspectOpts[e[r]]}i(_p0,"init");DB.exports=j8()(nt);var{formatters:pde}=DB.exports;pde.o=function(t){return this.inspectOpts.colors=this.useColors,qB.inspect(t,this.inspectOpts).split(`
`).map(e=>e.trim()).join(" ")};pde.O=function(t){return this.inspectOpts.colors=this.useColors,qB.inspect(t,this.inspectOpts)}});var Z8=h((Bs1,K8)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?K8.exports=ude():K8.exports=Ade()});var RB=h(l1=>{"use strict";Object.defineProperty(l1,"__esModule",{value:!0});l1.DownloadHTTPError=l1.DownloadLengthMismatchError=l1.DownloadError=l1.ExpiredMetadataError=l1.EqualVersionError=l1.BadVersionError=l1.RepositoryError=l1.PersistError=l1.RuntimeError=l1.ValueError=void 0;var e_=class extends Error{static{i(this,"ValueError")}};l1.ValueError=e_;var t_=class extends Error{static{i(this,"RuntimeError")}};l1.RuntimeError=t_;var r_=class extends Error{static{i(this,"PersistError")}};l1.PersistError=r_;var xh=class extends Error{static{i(this,"RepositoryError")}};l1.RepositoryError=xh;var IB=class extends xh{static{i(this,"BadVersionError")}};l1.BadVersionError=IB;var n_=class extends IB{static{i(this,"EqualVersionError")}};l1.EqualVersionError=n_;var o_=class extends xh{static{i(this,"ExpiredMetadataError")}};l1.ExpiredMetadataError=o_;var Th=class extends Error{static{i(this,"DownloadError")}};l1.DownloadError=Th;var s_=class extends Th{static{i(this,"DownloadLengthMismatchError")}};l1.DownloadLengthMismatchError=s_;var i_=class extends Th{static{i(this,"DownloadHTTPError")}statusCode;constructor(e,r){super(e),this.statusCode=r}};l1.DownloadHTTPError=i_});var dde=h(K2=>{"use strict";var c_=K2&&K2.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(K2,"__esModule",{value:!0});K2.withTempFile=void 0;var a_=c_(require("fs/promises")),Pp0=c_(require("os")),lde=c_(require("path")),kp0=i(async t=>Up0(async e=>t(lde.default.join(e,"tempfile"))),"withTempFile");K2.withTempFile=kp0;var Up0=i(async t=>{let e=await a_.default.realpath(Pp0.default.tmpdir()),r=await a_.default.mkdtemp(e+lde.default.sep);try{return await t(r)}finally{await a_.default.rm(r,{force:!0,recursive:!0,maxRetries:3})}},"withTempDir")});var fde=h((Ns1,bde)=>{var u_=class{static{i(this,"RetryOperation")}#e=1;#t=null;#n=[];#r=null;#o;#s=null;#a;#i;#u=null;#c;constructor(e,r={}){this.#a=[...e],this.#i=[...e],this.#c=r.unref,this.#o=r.maxRetryTime||1/0,r.forever&&(this.#t=[...this.#i])}get timeouts(){return[...this.#i]}get errors(){return[...this.#n]}get attempts(){return this.#e}get mainError(){let e=null;if(this.#n.length){let r=0,n={};for(let o=0;o<this.#n.length;o++){let s=this.#n[o],{message:a}=s;n[a]||(n[a]=0),n[a]++,n[a]>=r&&(e=s,r=n[a])}}return e}reset(){this.#e=1,this.#i=[...this.#a]}stop(){this.#u&&clearTimeout(this.#u),this.#i=[],this.#t=null}retry(e){if(this.#n.push(e),new Date().getTime()-this.#s>=this.#o)return this.#n.unshift(new Error("RetryOperation timeout occurred")),!1;let r=this.#i.shift();if(r===void 0)if(this.#t)this.#n.pop(),r=this.#t.at(-1);else return!1;return this.#u=setTimeout(()=>{this.#e++,this.#r(this.#e)},r),this.#c&&this.#u.unref(),!0}attempt(e){this.#r=e,this.#s=new Date().getTime(),this.#r(this.#e)}};bde.exports={RetryOperation:u_}});var mde=h((Ss1,hde)=>{var{RetryOperation:Gp0}=fde(),Mde=i((t,e)=>Math.min(Math.round((1+(e.randomize?Math.random():0))*Math.max(e.minTimeout,1)*Math.pow(e.factor,t)),e.maxTimeout),"createTimeout"),Hp0=i(t=>t?.code==="EPROMISERETRY"&&Object.hasOwn(t,"retried"),"isRetryError"),Xp0=i(async(t,e={})=>{let r=[];if(e instanceof Array)r=[...e];else{e.retries===1/0&&(e.forever=!0,delete e.retries);let o={retries:10,factor:2,minTimeout:1*1e3,maxTimeout:1/0,randomize:!1,...e};if(o.minTimeout>o.maxTimeout)throw new Error("minTimeout is greater than maxTimeout");if(o.retries){for(let s=0;s<o.retries;s++)r.push(Mde(s,o));r.sort((s,a)=>s-a)}else e.forever&&r.push(Mde(0,o))}let n=new Gp0(r,{forever:e.forever,unref:e.unref,maxRetryTime:e.maxRetryTime});return new Promise(function(o,s){n.attempt(async a=>{try{let c=await t(u=>{throw Object.assign(new Error("Retrying"),{code:"EPROMISERETRY",retried:u})},a,n);return o(c)}catch(c){if(!Hp0(c))return s(c);if(!n.retry(c.retried||new Error))return s(c.retried)}})})},"promiseRetry");hde.exports={promiseRetry:Xp0}});var l_=h(Fc=>{"use strict";var A_=Fc&&Fc.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Fc,"__esModule",{value:!0});Fc.DefaultFetcher=Fc.BaseFetcher=void 0;var Vp0=A_(Z8()),zde=A_(require("fs")),Yp0=A_(require("util")),gde=RB(),Jp0=dde(),$p0=mde(),jp0=(0,Vp0.default)("tuf:fetch"),Kp0="User-Agent",NB=class{static{i(this,"BaseFetcher")}async downloadFile(e,r,n){return(0,Jp0.withTempFile)(async o=>{let s=await this.fetch(e),a=0,c=zde.default.createWriteStream(o),u=s.getReader();try{for(;;){let{done:p,value:A}=await u.read();if(p)break;if(a+=A.length,a>r)throw new gde.DownloadLengthMismatchError("Max length reached");await Zp0(c,Buffer.from(A))}}finally{u.releaseLock(),await Yp0.default.promisify(c.close).bind(c)()}return n(o)})}async downloadBytes(e,r){return this.downloadFile(e,r,async n=>{let o=zde.defau Line truncated
`).forEach(r=>{r.match(ol0)||r.match(sl0)||(e+=r)}),Buffer.from(e,"base64")}i(il0,"toDER");function al0(t,e="CERTIFICATE"){let n=t.toString("base64").match(/.{1,64}/g)||"";return[`-----BEGIN ${e}-----`,...n,`-----END ${e}-----`].join(`
`+s),t.push(o+"m+"+RB.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=Hp0()+e+" "+t[0]}i(Gp0,"formatArgs");function Hp0(){return nt.inspectOpts.hideDate?"":new Date().toISOString()+" "}i(Hp0,"getDate");function Xp0(...t){return process.stderr.write(IB.formatWithOptions(nt.inspectOpts,...t)+`
`)}i(Xp0,"log");function Vp0(t){t?process.env.DEBUG=t:delete process.env.DEBUG}i(Vp0,"save");function Yp0(){return process.env.DEBUG}i(Yp0,"load");function Jp0(t){t.inspectOpts={};let e=Object.keys(nt.inspectOpts);for(let r=0;r<e.length;r++)t.inspectOpts[e[r]]=nt.inspectOpts[e[r]]}i(Jp0,"init");RB.exports=t_()(nt);var{formatters:lde}=RB.exports;lde.o=function(t){return this.inspectOpts.colors=this.useColors,IB.inspect(t,this.inspectOpts).split(`
`).map(e=>e.trim()).join(" ")};lde.O=function(t){return this.inspectOpts.colors=this.useColors,IB.inspect(t,this.inspectOpts)}});var n_=h((Ws1,r_)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?r_.exports=Ade():r_.exports=dde()});var wB=h(l1=>{"use strict";Object.defineProperty(l1,"__esModule",{value:!0});l1.DownloadHTTPError=l1.DownloadLengthMismatchError=l1.DownloadError=l1.ExpiredMetadataError=l1.EqualVersionError=l1.BadVersionError=l1.RepositoryError=l1.PersistError=l1.RuntimeError=l1.ValueError=void 0;var o_=class extends Error{static{i(this,"ValueError")}};l1.ValueError=o_;var s_=class extends Error{static{i(this,"RuntimeError")}};l1.RuntimeError=s_;var i_=class extends Error{static{i(this,"PersistError")}};l1.PersistError=i_;var xh=class extends Error{static{i(this,"RepositoryError")}};l1.RepositoryError=xh;var NB=class extends xh{static{i(this,"BadVersionError")}};l1.BadVersionError=NB;var a_=class extends NB{static{i(this,"EqualVersionError")}};l1.EqualVersionError=a_;var c_=class extends xh{static{i(this,"ExpiredMetadataError")}};l1.ExpiredMetadataError=c_;var Th=class extends Error{static{i(this,"DownloadError")}};l1.DownloadError=Th;var u_=class extends Th{static{i(this,"DownloadLengthMismatchError")}};l1.DownloadLengthMismatchError=u_;var p_=class extends Th{static{i(this,"DownloadHTTPError")}statusCode;constructor(e,r){super(e),this.statusCode=r}};l1.DownloadHTTPError=p_});var fde=h(j2=>{"use strict";var l_=j2&&j2.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(j2,"__esModule",{value:!0});j2.withTempFile=void 0;var A_=l_(require("fs/promises")),$p0=l_(require("os")),bde=l_(require("path")),jp0=i(async t=>Kp0(async e=>t(bde.default.join(e,"tempfile"))),"withTempFile");j2.withTempFile=jp0;var Kp0=i(async t=>{let e=await A_.default.realpath($p0.default.tmpdir()),r=await A_.default.mkdtemp(e+bde.default.sep);try{return await t(r)}finally{await A_.default.rm(r,{force:!0,recursive:!0,maxRetries:3})}},"withTempDir")});var hde=h((Qs1,Mde)=>{var d_=class{static{i(this,"RetryOperation")}#e=1;#t=null;#n=[];#r=null;#o;#s=null;#a;#i;#u=null;#c;constructor(e,r={}){this.#a=[...e],this.#i=[...e],this.#c=r.unref,this.#o=r.maxRetryTime||1/0,r.forever&&(this.#t=[...this.#i])}get timeouts(){return[...this.#i]}get errors(){return[...this.#n]}get attempts(){return this.#e}get mainError(){let e=null;if(this.#n.length){let r=0,n={};for(let o=0;o<this.#n.length;o++){let s=this.#n[o],{message:a}=s;n[a]||(n[a]=0),n[a]++,n[a]>=r&&(e=s,r=n[a])}}return e}reset(){this.#e=1,this.#i=[...this.#a]}stop(){this.#u&&clearTimeout(this.#u),this.#i=[],this.#t=null}retry(e){if(this.#n.push(e),new Date().getTime()-this.#s>=this.#o)return this.#n.unshift(new Error("RetryOperation timeout occurred")),!1;let r=this.#i.shift();if(r===void 0)if(this.#t)this.#n.pop(),r=this.#t.at(-1);else return!1;return this.#u=setTimeout(()=>{this.#e++,this.#r(this.#e)},r),this.#c&&this.#u.unref(),!0}attempt(e){this.#r=e,this.#s=new Date().getTime(),this.#r(this.#e)}};Mde.exports={RetryOperation:d_}});var gde=h((Ps1,zde)=>{var{RetryOperation:Zp0}=hde(),mde=i((t,e)=>Math.min(Math.round((1+(e.randomize?Math.random():0))*Math.max(e.minTimeout,1)*Math.pow(e.factor,t)),e.maxTimeout),"createTimeout"),eA0=i(t=>t?.code==="EPROMISERETRY"&&Object.hasOwn(t,"retried"),"isRetryError"),tA0=i(async(t,e={})=>{let r=[];if(e instanceof Array)r=[...e];else{e.retries===1/0&&(e.forever=!0,delete e.retries);let o={retries:10,factor:2,minTimeout:1*1e3,maxTimeout:1/0,randomize:!1,...e};if(o.minTimeout>o.maxTimeout)throw new Error("minTimeout is greater than maxTimeout");if(o.retries){for(let s=0;s<o.retries;s++)r.push(mde(s,o));r.sort((s,a)=>s-a)}else e.forever&&r.push(mde(0,o))}let n=new Zp0(r,{forever:e.forever,unref:e.unref,maxRetryTime:e.maxRetryTime});return new Promise(function(o,s){n.attempt(async a=>{try{let c=await t(u=>{throw Object.assign(new Error("Retrying"),{code:"EPROMISERETRY",retried:u})},a,n);return o(c)}catch(c){if(!eA0(c))return s(c);if(!n.retry(c.retried||new Error))return s(c.retried)}})})},"promiseRetry");zde.exports={promiseRetry:tA0}});var M_=h(wc=>{"use strict";var f_=wc&&wc.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(wc,"__esModule",{value:!0});wc.DefaultFetcher=wc.BaseFetcher=void 0;var rA0=f_(n_()),Ode=f_(require("fs")),nA0=f_(require("util")),Ede=wB(),oA0=fde(),sA0=gde(),iA0=(0,rA0.default)("tuf:fetch"),aA0="User-Agent",SB=class{static{i(this,"BaseFetcher")}async downloadFile(e,r,n){return(0,oA0.withTempFile)(async o=>{let s=await this.fetch(e),a=0,c=Ode.default.createWriteStream(o),u=s.getReader();try{for(;;){let{done:p,value:A}=await u.read();if(p)break;if(a+=A.length,a>r)throw new Ede.DownloadLengthMismatchError("Max length reached");await cA0(c,Buffer.from(A))}}finally{u.releaseLock(),await nA0.default.promisify(c.close).bind(c)()}return n(o)})}async downloadBytes(e,r){return this.downloadFile(e,r,async n=>{let o=Ode.defau Line truncated
`).forEach(r=>{r.match(dl0)||r.match(bl0)||(e+=r)}),Buffer.from(e,"base64")}i(fl0,"toDER");function Ml0(t,e="CERTIFICATE"){let n=t.toString("base64").match(/.{1,64}/g)||"";return[`-----BEGIN ${e}-----`,...n,`-----END ${e}-----`].join(`
`).concat(`
`)}i(al0,"fromDER")});var XB=h(Lc=>{"use strict";Object.defineProperty(Lc,"__esModule",{value:!0});Lc.SHA2_HASH_ALGOS=Lc.RSA_SIGNATURE_ALGOS=Lc.ECDSA_SIGNATURE_ALGOS=void 0;Lc.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"};Lc.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"};Lc.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 T_=h(VB=>{"use strict";Object.defineProperty(VB,"__esModule",{value:!0});VB.RFC3161TimestampVerificationError=void 0;var x_=class extends Error{static{i(this,"RFC3161TimestampVerificationError")}};VB.RFC3161TimestampVerificationError=x_});var $de=h($s=>{"use strict";var cl0=$s&&$s.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var o=Object.getOwnPropertyDescriptor(e,r);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:i(function(){return e[r]},"get")}),Object.defineProperty(t,n,o)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),ul0=$s&&$s.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),pl0=$s&&$s.__importStar||(function(){var t=i(function(e){return t=Object.getOwnPropertyNames||function(r){var n=[];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[n.length]=o);return n},t(e)},"ownKeys");return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n=t(e),o=0;o<n.length;o++)n[o]!=="default"&&cl0(r,e,n[o]);return ul0(r,e),r}})();Object.defineProperty($s,"__esModule",{value:!0});$s.TSTInfo=void 0;var Jde=pl0(od()),Al0=XB(),ll0=T_(),v_=class{static{i(this,"TSTInfo")}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 Al0.SHA2_HASH_ALGOS[e]}get messageImprintHashedMessage(){return this.messageImprintObj.subs[1].value}get raw(){return this.root.toDER()}verify(e){let r=Jde.digest(this.messageImprintHashAlgorithm,e);if(!Jde.bufferEqual(r,this.messageImprintHashedMessage))throw new ll0.RFC3161TimestampVerificationError("message imprint does not match artifact")}get messageImprintObj(){return this.root.subs[2]}};$s.TSTInfo=v_});var Kde=h(js=>{"use strict";var dl0=js&&js.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var o=Object.getOwnPropertyDescriptor(e,r);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:i(function(){return e[r]},"get")}),Object.defineProperty(t,n,o)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),bl0=js&&js.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),fl0=js&&js.__importStar||(function(){var t=i(function(e){return t=Object.getOwnPropertyNames||function(r){var n=[];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[n.length]=o);return n},t(e)},"ownKeys");return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n=t(e),o=0;o<n.length;o++)n[o]!=="default"&&dl0(r,e,n[o]);return bl0(r,e),r}})();Object.defineProperty(js,"__esModule",{value:!0});js.RFC3161Timestamp=void 0;var Ml0=UB(),L_=fl0(od()),jde=XB(),kh=T_(),hl0=$de(),ml0="1.2.840.113549.1.7.2",zl0="1.2.840.113549.1.9.16.1.4",gl0="1.2.840.113549.1.9.4",Q_=class t{static{i(this,"RFC3161Timestamp")}root;constructor(e){this.root=e}static parse(e){let r=Ml0.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 jde.SHA2_HASH_ALGOS[e]}get signatureAlgorithm(){let e=this.signatureAlgorithmObj.subs[0].toOID();return jde.ECDSA_SIGNATURE_ALGOS[e]}get signatureValue(){return this.signatureValueObj.value}get tstInfo(){return new hl0.TSTInfo(this.eContentObj.subs[0].subs[0])}verify(e,r){if(!this.timeStampTokenObj)throw new kh.RFC3161TimestampVerificationError("timeStampToken is missing");if(this.contentType!==ml0)throw new kh.RFC3161TimestampVerificationError(`incorrect content type: ${this.contentType}`);if(this.eContentType!==zl0)throw new kh.RFC3161TimestampVerificationError(`incorrect encapsulated content type: ${this.eContentType}`);this.tstInfo.verify(e),this.verifyMessageDigest(),this.verifySignature(r)}verifyMessageDigest(){let e=L_.digest(this.signerDigestAlgorithm,this.tstInfo.raw),r=this.messageDigestAttributeObj.subs[1].subs[0].valu Line truncated
`)}i(Ml0,"fromDER")});var YB=h(Tc=>{"use strict";Object.defineProperty(Tc,"__esModule",{value:!0});Tc.SHA2_HASH_ALGOS=Tc.RSA_SIGNATURE_ALGOS=Tc.ECDSA_SIGNATURE_ALGOS=void 0;Tc.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"};Tc.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"};Tc.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 __=h(JB=>{"use strict";Object.defineProperty(JB,"__esModule",{value:!0});JB.RFC3161TimestampVerificationError=void 0;var Q_=class extends Error{static{i(this,"RFC3161TimestampVerificationError")}};JB.RFC3161TimestampVerificationError=Q_});var Kde=h(js=>{"use strict";var hl0=js&&js.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var o=Object.getOwnPropertyDescriptor(e,r);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:i(function(){return e[r]},"get")}),Object.defineProperty(t,n,o)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),ml0=js&&js.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),zl0=js&&js.__importStar||(function(){var t=i(function(e){return t=Object.getOwnPropertyNames||function(r){var n=[];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[n.length]=o);return n},t(e)},"ownKeys");return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n=t(e),o=0;o<n.length;o++)n[o]!=="default"&&hl0(r,e,n[o]);return ml0(r,e),r}})();Object.defineProperty(js,"__esModule",{value:!0});js.TSTInfo=void 0;var jde=zl0(nd()),gl0=YB(),Ol0=__(),P_=class{static{i(this,"TSTInfo")}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 gl0.SHA2_HASH_ALGOS[e]}get messageImprintHashedMessage(){return this.messageImprintObj.subs[1].value}get raw(){return this.root.toDER()}verify(e){let r=jde.digest(this.messageImprintHashAlgorithm,e);if(!jde.bufferEqual(r,this.messageImprintHashedMessage))throw new Ol0.RFC3161TimestampVerificationError("message imprint does not match artifact")}get messageImprintObj(){return this.root.subs[2]}};js.TSTInfo=P_});var ebe=h(Ks=>{"use strict";var El0=Ks&&Ks.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var o=Object.getOwnPropertyDescriptor(e,r);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:i(function(){return e[r]},"get")}),Object.defineProperty(t,n,o)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),Cl0=Ks&&Ks.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),yl0=Ks&&Ks.__importStar||(function(){var t=i(function(e){return t=Object.getOwnPropertyNames||function(r){var n=[];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[n.length]=o);return n},t(e)},"ownKeys");return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n=t(e),o=0;o<n.length;o++)n[o]!=="default"&&El0(r,e,n[o]);return Cl0(r,e),r}})();Object.defineProperty(Ks,"__esModule",{value:!0});Ks.RFC3161Timestamp=void 0;var Bl0=HB(),k_=yl0(nd()),Zde=YB(),kh=__(),ql0=Kde(),Dl0="1.2.840.113549.1.7.2",Il0="1.2.840.113549.1.9.16.1.4",Rl0="1.2.840.113549.1.9.4",U_=class t{static{i(this,"RFC3161Timestamp")}root;constructor(e){this.root=e}static parse(e){let r=Bl0.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 Zde.SHA2_HASH_ALGOS[e]}get signatureAlgorithm(){let e=this.signatureAlgorithmObj.subs[0].toOID();return Zde.ECDSA_SIGNATURE_ALGOS[e]}get signatureValue(){return this.signatureValueObj.value}get tstInfo(){return new ql0.TSTInfo(this.eContentObj.subs[0].subs[0])}verify(e,r){if(!this.timeStampTokenObj)throw new kh.RFC3161TimestampVerificationError("timeStampToken is missing");if(this.contentType!==Dl0)throw new kh.RFC3161TimestampVerificationError(`incorrect content type: ${this.contentType}`);if(this.eContentType!==Il0)throw new kh.RFC3161TimestampVerificationError(`incorrect encapsulated content type: ${this.eContentType}`);this.tstInfo.verify(e),this.verifyMessageDigest(),this.verifySignature(r)}verifyMessageDigest(){let e=k_.digest(this.signerDigestAlgorithm,this.tstInfo.raw),r=this.messageDigestAttributeObj.subs[1].subs[0].valu Line truncated
`,_20=/\u2014 (\S+) (\S+)\n/g;function P20(t,e){let r=t.inclusionProof,n=fP.fromString(r.checkpoint.envelope),o=dq.fromString(n.note);if(!k20(n,e))throw new Ad.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"invalid checkpoint signature"});return o}i(P20,"verifyCheckpoint");function k20(t,e){let r=Buffer.from(t.note,"utf-8");return t.signatures.some(n=>{let o=e.find(s=>Sbe.crypto.bufferEqual(s.logID.subarray(0,4),n.keyHint)&&s.baseURL.includes(n.name));return o?Sbe.crypto.verify(r,o.publicKey,n.signature):!1})}i(k20,"verifySignedNote");var fP=class t{static{i(this,"SignedNote")}note;signatures;constructor(e,r){this.note=e,this.signatures=r}static fromString(e){if(!e.includes(bP))throw new Ad.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"missing checkpoint separator"});let r=e.indexOf(bP),n=e.slice(0,r+1),s=e.slice(r+bP.length).matchAll(_20),a=Array.from(s,c=>{let[,u,p]=c,A=Buffer.from(p,"base64");if(A.length<5)throw new Ad.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"malformed checkpoint signature"});return{name:u,keyHint:A.subarray(0,4),signature:A.subarray(4)}});if(a.length===0)throw new Ad.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"no signatures found in checkpoint"});return new t(n,a)}},dq=class t{static{i(this,"LogCheckpoint")}origin;logSize;logHash;rest;constructor(e,r,n,o){this.origin=e,this.logSize=r,this.logHash=n,this.rest=o}static fromString(e){let r=e.trimEnd().split(`
`);if(r.length<3)throw new Ad.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"too few lines in checkpoint header"});let n=r[0],o;try{o=BigInt(r[1])}catch{throw new Ad.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"invalid checkpoint log size"})}let s=Buffer.from(r[2],"base64"),a=r.slice(3);return new t(n,o,s,a)}};Vh.LogCheckpoint=dq});var Wbe=h(mP=>{"use strict";Object.defineProperty(mP,"__esModule",{value:!0});mP.verifyMerkleInclusion=H20;var hP=wo(),bq=It(),U20=Buffer.from([0]),G20=Buffer.from([1]);function H20(t,e){let r=t.inclusionProof,n;try{n=BigInt(r.logIndex)}catch{throw new bq.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"invalid inclusion proof log index"})}let o=BigInt(e.logSize);if(n<0n||n>=o)throw new bq.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:`invalid index: ${n}`});let{inner:s,border:a}=X20(n,o);if(r.hashes.length!==s+a)throw new bq.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"invalid hash count"});let c=r.hashes.slice(0,s),u=r.hashes.slice(s),p=K20(t.canonicalizedBody),A=Y20(V20(p,c,n),u);if(!hP.crypto.bufferEqual(A,e.logHash))throw new bq.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"calculated root hash does not match inclusion proof"})}i(H20,"verifyMerkleInclusion");function X20(t,e){let r=J20(t,e),n=$20(t>>BigInt(r));return{inner:r,border:n}}i(X20,"decompInclProof");function V20(t,e,r){return e.reduce((n,o,s)=>r>>BigInt(s)&BigInt(1)?MP(o,n):MP(n,o),t)}i(V20,"chainInner");function Y20(t,e){return e.reduce((r,n)=>MP(n,r),t)}i(Y20,"chainBorderRight");function J20(t,e){return j20(t^e-BigInt(1))}i(J20,"innerProofSize");function $20(t){return t.toString(2).split("1").length-1}i($20,"onesCount");function j20(t){return t===0n?0:t.toString(2).length}i(j20,"bitLength");function MP(t,e){return hP.crypto.digest("sha256",G20,t,e)}i(MP,"hashChildren");function K20(t){return hP.crypto.digest("sha256",U20,t)}i(K20,"hashLeaf")});var Tbe=h(zP=>{"use strict";Object.defineProperty(zP,"__esModule",{value:!0});zP.verifyTLogSET=td0;var xbe=wo(),Z20=It(),ed0=ad();function td0(t,e){if(!(0,ed0.filterTLogAuthorities)(e,{logID:t.logId.keyId,targetDate:new Date(Number(t.integratedTime)*1e3)}).some(o=>{let s=rd0(t),a=Buffer.from(xbe.json.canonicalize(s),"utf8"),c=t.inclusionPromise.signedEntryTimestamp;return xbe.crypto.verify(a,o.publicKey,c)}))throw new Z20.VerificationError({code:"TLOG_INCLUSION_PROMISE_ERROR",message:"inclusion promise could not be verified"})}i(td0,"verifyTLogSET");function rd0(t){let{integratedTime:e,logIndex:r,logId:n,canonicalizedBody:o}=t;return{body:o.toString("base64"),integratedTime:Number(e),logIndex:Number(r),logID:n.keyId.toString("hex")}}i(rd0,"toVerificationPayload")});var Lbe=h(Mq=>{"use strict";Object.defineProperty(Mq,"__esModule",{value:!0});Mq.verifyTLogBody=ad0;Mq.verifyTLogInclusion=cd0;var vbe=Ibe(),fq=It(),gP=Rbe(),OP=Nbe(),nd0=wbe(),od0=Fbe(),sd0=Wbe(),id0=Tbe();function ad0(t,e){let{kind:r,version:n}=t.kindVersion,o;try{o=JSON.parse(t.canonicalizedBody.toString("utf8"))}catch{throw new fq.VerificationError({code:"TLOG_BODY_ERROR",message:"invalid canonicalized body"})}if(r!==o.kind||n!==o.apiVersion)throw new fq.VerificationError({code:"TLOG_BODY_ERROR",message:`kind/version mismatch - expected: ${r}/${n}, received: ${o.kind}/${o.apiVersion}`});switch(r){case"dsse":if(n==gP.DSSE_API_VERSION_V1)return(0,gP.verifyDSSETLogBody)(o,e);{let s=vbe.Entry.fromJSON(o);return(0,gP.verifyDSSETLogBodyV2)(s,e)}case"intoto":return(0,nd0.verifyIntotoTLogBody)(o,e);case"hashedrekord":if(n==OP.HASHEDREKORD_API_VERSION_V1)return(0,OP.verifyHashedRekordTLogBody)(o,e);{let s=vbe.Entry.fromJSON(o);return(0,OP.verifyHashedRekordTLogBodyV2)(s,e)}default:throw new fq.VerificationError({code:"TLOG_BODY_ERROR",message:`unsupported kind: ${r}`})}}i(ad0,"verifyTLogBody");function cd0(t,e){let r=!1;if(ud0(t)&&((0,id0.verifyTLogSET)(t,e),r=!0),pd0(t)){let n=(0,od0.verifyCheckpoint)(t,e);(0,sd0.verifyMerkleInclusion)(t,n),r=!0}if(!r)throw new fq.VerificationError({code:"TLOG_MISSING_INCLUSION_ERROR",message:"inclusion could not be verified"})}i(cd0,"verifyTLogInclusion");function ud0(t){return t.inclusionPromise!==void 0}i(ud0,"isTLogEntryWithInclusionPromise");function pd0(t){return t.inclusionProof!==void 0}i(pd0,"isTLogEntryWithInclusionProof")});var kbe=h(hq=>{"use strict";Object.defineProperty(hq,"__esModule",{value:!0});hq.Verifier=void 0;var Ad0=require("util"),Up=It(),Qbe=Mbe(),EP=hbe(),_be=gbe(),Pbe=Lbe(),yP=class{static{i(this,"Verifier")}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 n=this.verifyTimestamps(e),o=this.verifySigningKey(e,n);return this.verifyTLogs(e),this.verifySignature(e,o),r&&this.verifyPolicy(r,o.identity||{}),o}verifyTimestamps(e){let r=[];for(let n of e.timestamps)switch(n.$case){case"time Line truncated
[`+D+"] ";for(F in arguments[0])s(arguments[0],F)&&(C+=F+": "+arguments[0][F]+", ");C=C.slice(0,-2)}else C=arguments[D];g.push(C)}L(d+`
`,J20=/\u2014 (\S+) (\S+)\n/g;function $20(t,e){let r=t.inclusionProof,n=zP.fromString(r.checkpoint.envelope),o=fq.fromString(n.note);if(!j20(n,e))throw new pd.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"invalid checkpoint signature"});return o}i($20,"verifyCheckpoint");function j20(t,e){let r=Buffer.from(t.note,"utf-8");return t.signatures.some(n=>{let o=e.find(s=>Wbe.crypto.bufferEqual(s.logID.subarray(0,4),n.keyHint)&&s.baseURL.includes(n.name));return o?Wbe.crypto.verify(r,o.publicKey,n.signature):!1})}i(j20,"verifySignedNote");var zP=class t{static{i(this,"SignedNote")}note;signatures;constructor(e,r){this.note=e,this.signatures=r}static fromString(e){if(!e.includes(mP))throw new pd.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"missing checkpoint separator"});let r=e.indexOf(mP),n=e.slice(0,r+1),s=e.slice(r+mP.length).matchAll(J20),a=Array.from(s,c=>{let[,u,p]=c,A=Buffer.from(p,"base64");if(A.length<5)throw new pd.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"malformed checkpoint signature"});return{name:u,keyHint:A.subarray(0,4),signature:A.subarray(4)}});if(a.length===0)throw new pd.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"no signatures found in checkpoint"});return new t(n,a)}},fq=class t{static{i(this,"LogCheckpoint")}origin;logSize;logHash;rest;constructor(e,r,n,o){this.origin=e,this.logSize=r,this.logHash=n,this.rest=o}static fromString(e){let r=e.trimEnd().split(`
`);if(r.length<3)throw new pd.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"too few lines in checkpoint header"});let n=r[0],o;try{o=BigInt(r[1])}catch{throw new pd.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"invalid checkpoint log size"})}let s=Buffer.from(r[2],"base64"),a=r.slice(3);return new t(n,o,s,a)}};Vh.LogCheckpoint=fq});var Tbe=h(EP=>{"use strict";Object.defineProperty(EP,"__esModule",{value:!0});EP.verifyMerkleInclusion=ed0;var OP=So(),Mq=Rt(),K20=Buffer.from([0]),Z20=Buffer.from([1]);function ed0(t,e){let r=t.inclusionProof,n;try{n=BigInt(r.logIndex)}catch{throw new Mq.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"invalid inclusion proof log index"})}let o=BigInt(e.logSize);if(n<0n||n>=o)throw new Mq.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:`invalid index: ${n}`});let{inner:s,border:a}=td0(n,o);if(r.hashes.length!==s+a)throw new Mq.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"invalid hash count"});let c=r.hashes.slice(0,s),u=r.hashes.slice(s),p=ad0(t.canonicalizedBody),A=nd0(rd0(p,c,n),u);if(!OP.crypto.bufferEqual(A,e.logHash))throw new Mq.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"calculated root hash does not match inclusion proof"})}i(ed0,"verifyMerkleInclusion");function td0(t,e){let r=od0(t,e),n=sd0(t>>BigInt(r));return{inner:r,border:n}}i(td0,"decompInclProof");function rd0(t,e,r){return e.reduce((n,o,s)=>r>>BigInt(s)&BigInt(1)?gP(o,n):gP(n,o),t)}i(rd0,"chainInner");function nd0(t,e){return e.reduce((r,n)=>gP(n,r),t)}i(nd0,"chainBorderRight");function od0(t,e){return id0(t^e-BigInt(1))}i(od0,"innerProofSize");function sd0(t){return t.toString(2).split("1").length-1}i(sd0,"onesCount");function id0(t){return t===0n?0:t.toString(2).length}i(id0,"bitLength");function gP(t,e){return OP.crypto.digest("sha256",Z20,t,e)}i(gP,"hashChildren");function ad0(t){return OP.crypto.digest("sha256",K20,t)}i(ad0,"hashLeaf")});var Lbe=h(CP=>{"use strict";Object.defineProperty(CP,"__esModule",{value:!0});CP.verifyTLogSET=pd0;var vbe=So(),cd0=Rt(),ud0=id();function pd0(t,e){if(!(0,ud0.filterTLogAuthorities)(e,{logID:t.logId.keyId,targetDate:new Date(Number(t.integratedTime)*1e3)}).some(o=>{let s=Ad0(t),a=Buffer.from(vbe.json.canonicalize(s),"utf8"),c=t.inclusionPromise.signedEntryTimestamp;return vbe.crypto.verify(a,o.publicKey,c)}))throw new cd0.VerificationError({code:"TLOG_INCLUSION_PROMISE_ERROR",message:"inclusion promise could not be verified"})}i(pd0,"verifyTLogSET");function Ad0(t){let{integratedTime:e,logIndex:r,logId:n,canonicalizedBody:o}=t;return{body:o.toString("base64"),integratedTime:Number(e),logIndex:Number(r),logID:n.keyId.toString("hex")}}i(Ad0,"toVerificationPayload")});var _be=h(mq=>{"use strict";Object.defineProperty(mq,"__esModule",{value:!0});mq.verifyTLogBody=Md0;mq.verifyTLogInclusion=hd0;var Qbe=Nbe(),hq=Rt(),yP=wbe(),BP=Sbe(),ld0=Fbe(),dd0=xbe(),bd0=Tbe(),fd0=Lbe();function Md0(t,e){let{kind:r,version:n}=t.kindVersion,o;try{o=JSON.parse(t.canonicalizedBody.toString("utf8"))}catch{throw new hq.VerificationError({code:"TLOG_BODY_ERROR",message:"invalid canonicalized body"})}if(r!==o.kind||n!==o.apiVersion)throw new hq.VerificationError({code:"TLOG_BODY_ERROR",message:`kind/version mismatch - expected: ${r}/${n}, received: ${o.kind}/${o.apiVersion}`});switch(r){case"dsse":if(n==yP.DSSE_API_VERSION_V1)return(0,yP.verifyDSSETLogBody)(o,e);{let s=Qbe.Entry.fromJSON(o);return(0,yP.verifyDSSETLogBodyV2)(s,e)}case"intoto":return(0,ld0.verifyIntotoTLogBody)(o,e);case"hashedrekord":if(n==BP.HASHEDREKORD_API_VERSION_V1)return(0,BP.verifyHashedRekordTLogBody)(o,e);{let s=Qbe.Entry.fromJSON(o);return(0,BP.verifyHashedRekordTLogBodyV2)(s,e)}default:throw new hq.VerificationError({code:"TLOG_BODY_ERROR",message:`unsupported kind: ${r}`})}}i(Md0,"verifyTLogBody");function hd0(t,e){let r=!1;if(md0(t)&&((0,fd0.verifyTLogSET)(t,e),r=!0),zd0(t)){let n=(0,dd0.verifyCheckpoint)(t,e);(0,bd0.verifyMerkleInclusion)(t,n),r=!0}if(!r)throw new hq.VerificationError({code:"TLOG_MISSING_INCLUSION_ERROR",message:"inclusion could not be verified"})}i(hd0,"verifyTLogInclusion");function md0(t){return t.inclusionPromise!==void 0}i(md0,"isTLogEntryWithInclusionPromise");function zd0(t){return t.inclusionProof!==void 0}i(zd0,"isTLogEntryWithInclusionProof")});var Gbe=h(zq=>{"use strict";Object.defineProperty(zq,"__esModule",{value:!0});zq.Verifier=void 0;var gd0=require("util"),Up=Rt(),Pbe=mbe(),qP=zbe(),kbe=Ebe(),Ube=_be(),IP=class{static{i(this,"Verifier")}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 n=this.verifyTimestamps(e),o=this.verifySigningKey(e,n);return this.verifyTLogs(e),this.verifySignature(e,o),r&&this.verifyPolicy(r,o.identity||{}),o}verifyTimestamps(e){let r=[];for(let n of e.timestamps)switch(n.$case){case"time Line truncated
[`+I+"] ";for(F in arguments[0])s(arguments[0],F)&&(C+=F+": "+arguments[0][F]+", ");C=C.slice(0,-2)}else C=arguments[I];g.push(C)}L(d+`
Arguments: `+Array.prototype.slice.call(g).join("")+`
`+new Error().stack),m=!1}return f.apply(this,arguments)},f)}i(ce,"deprecate");var Te={};function Ge(d,f){e.deprecationHandler!=null&&e.deprecationHandler(d,f),Te[d]||(L(f),Te[d]=!0)}i(Ge,"deprecateSimple"),e.suppressDeprecationWarnings=!1,e.deprecationHandler=null;function Ne(d){return typeof Function<"u"&&d instanceof Function||Object.prototype.toString.call(d)==="[object Function]"}i(Ne,"isFunction");function Be(d){var f,m;for(m in d)s(d,m)&&(f=d[m],Ne(f)?this[m]=f:this["_"+m]=f);this._config=d,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}i(Be,"set");function ke(d,f){var m=l({},d),g;for(g in f)s(f,g)&&(o(d[g])&&o(f[g])?(m[g]={},l(m[g],d[g]),l(m[g],f[g])):f[g]!=null?m[g]=f[g]:delete m[g]);for(g in d)s(d,g)&&!s(f,g)&&o(d[g])&&(m[g]=l({},m[g]));return m}i(ke,"mergeConfigs");function pe(d){d!=null&&this.set(d)}i(pe,"Locale");var Ue;Object.keys?Ue=Object.keys:Ue=i(function(d){var f,m=[];for(f in d)s(d,f)&&m.push(f);return m},"keys");var J={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function Qe(d,f,m){var g=this._calendar[d]||this._calendar.sameElse;return Ne(g)?g.call(f,m):g}i(Qe,"calendar");function C0(d,f,m){var g=""+Math.abs(d),C=f-g.length,D=d>=0;return(D?m?"+":"":"-")+Math.pow(10,Math.max(0,C)).toString().substr(1)+g}i(C0,"zeroFill");var Mt=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,p0=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,V1={},q0={};function ne(d,f,m,g){var C=g;typeof g=="string"&&(C=i(function(){return this[g]()},"func")),d&&(q0[d]=C),f&&(q0[f[0]]=function(){return C0(C.apply(this,arguments),f[1],f[2])}),m&&(q0[m]=function(){return this.localeData().ordinal(C.apply(this,arguments),d)})}i(ne,"addFormatToken");function Qo(d){return d.match(/\[[\s\S]/)?d.replace(/^\[|\]$/g,""):d.replace(/\\/g,"")}i(Qo,"removeFormattingTokens");function un(d){var f=d.match(Mt),m,g;for(m=0,g=f.length;m<g;m++)q0[f[m]]?f[m]=q0[f[m]]:f[m]=Qo(f[m]);return function(C){var D="",F;for(F=0;F<g;F++)D+=Ne(f[F])?f[F].call(C,d):f[F];return D}}i(un,"makeFormatFunction");function b0(d,f){return d.isValid()?(f=Kt(f,d.localeData()),V1[f]=V1[f]||un(f),V1[f](d)):d.localeData().invalidDate()}i(b0,"formatMoment");function Kt(d,f){var m=5;function g(C){return f.longDateFormat(C)||C}for(i(g,"replaceLongDateFormatTokens"),p0.lastIndex=0;m>=0&&p0.test(d);)d=d.replace(p0,g),p0.lastIndex=0,m-=1;return d}i(Kt,"expandFormat");var Hm={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function Xm(d){var f=this._longDateFormat[d],m=this._longDateFormat[d.toUpperCase()];return f||!m?f:(this._longDateFormat[d]=m.match(Mt).map(function(g){return g==="MMMM"||g==="MM"||g==="DD"||g==="dddd"?g.slice(1):g}).join(""),this._longDateFormat[d])}i(Xm,"longDateFormat");var RD="Invalid date";function Jc(){return this._invalidDate}i(Jc,"invalidDate");var R="%d",T=/\d{1,2}/;function v(d){return this._ordinal.replace("%d",d)}i(v,"ordinal");var k={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function qe(d,f,m,g){var C=this._relativeTime[m];return Ne(C)?C(d,f,m,g):C.replace(/%d/i,d)}i(qe,"relativeTime");function Ze(d,f){var m=this._relativeTime[d>0?"future":"past"];return Ne(m)?m(f):m.replace(/%s/i,f)}i(Ze,"pastFuture");var K0={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function ve(d){return typeof d=="string"?K0[d]||K0[d.toLowerCase()]:void 0}i(ve,"normalizeUnits");function D0(d){var f={},m,g;for(g in d)s(d,g)&&(m=ve(g),m&&(f[m]=d[g]));return f}i(D0,"normalizeObjectUnits");var e9={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function K4e(d){var f=[],m;for(m in d)s(d,m)&&f.push({unit:m,priority:e9[m]});return f.sort(function(g,C){return g.priority-C.priority}),f Line truncated
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}i(iE0,"_nonIterableRest");Bm.exports=iE0,Bm.exports.__esModule=!0,Bm.exports.default=Bm.exports});var aEe=h((jb1,qm)=>{var aE0=HOe(),cE0=T3e(),uE0=sEe(),pE0=iEe();function AE0(t,e){return aE0(t)||cE0(t,e)||uE0(t,e)||pE0()}i(AE0,"_slicedToArray");qm.exports=AE0,qm.exports.__esModule=!0,qm.exports.default=qm.exports});var uEe=h((Zb1,cEe)=>{"use strict";var lE0=dD().forEach,dE0=gm(),bE0=dE0("forEach");cEe.exports=bE0?[].forEach:i(function(e){return lE0(this,e,arguments.length>1?arguments[1]:void 0)},"forEach")});var AEe=h(()=>{"use strict";var fE0=w0(),pEe=uEe();fE0({target:"Array",proto:!0,forced:[].forEach!==pEe},{forEach:pEe})});var dEe=h((nf1,lEe)=>{"use strict";AEe();var ME0=Lo();lEe.exports=ME0("Array","forEach")});var fEe=h((of1,bEe)=>{"use strict";var hE0=dEe();bEe.exports=hE0});var MEe=h(()=>{});var mEe=h((af1,hEe)=>{"use strict";var mE0=Nd(),zE0=$t(),gE0=qr(),OE0=fEe();MEe();var O7=Array.prototype,EE0={DOMTokenList:!0,NodeList:!0};hEe.exports=function(t){var e=t.forEach;return t===O7||gE0(O7,t)&&e===O7.forEach||zE0(EE0,mE0(t))?OE0:e}});var E7=h((cf1,zEe)=>{zEe.exports=mEe()});var gEe=h(()=>{"use strict";var CE0=w0(),yE0=$q().includes,BE0=d1(),qE0=rk(),DE0=BE0(function(){return!Array(1).includes()});CE0({target:"Array",proto:!0,forced:DE0},{includes:i(function(e){return yE0(this,e,arguments.length>1?arguments[1]:void 0)},"includes")});qE0("includes")});var EEe=h((lf1,OEe)=>{"use strict";gEe();var IE0=Lo();OEe.exports=IE0("Array","includes")});var yEe=h((df1,CEe)=>{"use strict";var RE0=an(),NE0=ga(),wE0=D1(),SE0=wE0("match");CEe.exports=function(t){var e;return RE0(t)&&((e=t[SE0])!==void 0?!!e:NE0(t)==="RegExp")}});var qEe=h((bf1,BEe)=>{"use strict";var FE0=yEe(),WE0=TypeError;BEe.exports=function(t){if(FE0(t))throw new WE0("The method doesn't accept regular expressions");return t}});var IEe=h((ff1,DEe)=>{"use strict";var xE0=D1(),TE0=xE0("match");DEe.exports=function(t){var e=/./;try{"/./"[t](e)}catch{try{return e[TE0]=!1,"/./"[t](e)}catch{}}return!1}});var NEe=h(()=>{"use strict";var vE0=w0(),LE0=t1(),QE0=qEe(),_E0=Gp(),REe=ui(),PE0=IEe(),kE0=LE0("".indexOf);vE0({target:"String",proto:!0,forced:!PE0("includes")},{includes:i(function(e){return!!~kE0(REe(_E0(this)),REe(QE0(e)),arguments.length>1?arguments[1]:void 0)},"includes")})});var SEe=h((zf1,wEe)=>{"use strict";NEe();var UE0=Lo();wEe.exports=UE0("String","includes")});var xEe=h((gf1,WEe)=>{"use strict";var FEe=qr(),GE0=EEe(),HE0=SEe(),C7=Array.prototype,y7=String.prototype;WEe.exports=function(t){var e=t.includes;return t===C7||FEe(C7,t)&&e===C7.includes?GE0:typeof t=="string"||t===y7||FEe(y7,t)&&e===y7.includes?HE0:e}});var vEe=h((Of1,TEe)=>{"use strict";var XE0=xEe();TEe.exports=XE0});var Dm=h((Ef1,LEe)=>{LEe.exports=vEe()});var B7=h((Cf1,QEe)=>{"use strict";QEe.exports=`
\v\f\r \xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF`});var kEe=h((yf1,PEe)=>{"use strict";var VE0=t1(),YE0=Gp(),JE0=ui(),D7=B7(),_Ee=VE0("".replace),$E0=RegExp("^["+D7+"]+"),jE0=RegExp("(^|[^"+D7+"])["+D7+"]+$"),q7=i(function(t){return function(e){var r=JE0(YE0(e));return t&1&&(r=_Ee(r,$E0,"")),t&2&&(r=_Ee(r,jE0,"$1")),r}},"createMethod");PEe.exports={start:q7(1),end:q7(2),trim:q7(3)}});var JEe=h((qf1,YEe)=>{"use strict";var XEe=X1(),KE0=d1(),ZE0=t1(),eC0=ui(),tC0=kEe().trim,UEe=B7(),Im=XEe.parseInt,GEe=XEe.Symbol,HEe=GEe&&GEe.iterator,VEe=/^[+-]?0x/i,rC0=ZE0(VEe.exec),nC0=Im(UEe+"08")!==8||Im(UEe+"0x16")!==22||HEe&&!KE0(function(){Im(Object(HEe))});YEe.exports=nC0?i(function(e,r){var n=tC0(eC0(e));return Im(n,r>>>0||(rC0(VEe,n)?16:10))},"parseInt"):Im});var jEe=h(()=>{"use strict";var oC0=w0(),$Ee=JEe();oC0({global:!0,forced:parseInt!==$Ee},{parseInt:$Ee})});var ZEe=h((Nf1,KEe)=>{"use strict";jEe();var sC0=Wo();KEe.exports=sC0.parseInt});var tCe=h((wf1,eCe)=>{"use strict";var iC0=ZEe();eCe.exports=iC0});var nCe=h((Sf1,rCe)=>{rCe.exports=tCe()});var ED=h((Ff1,oCe)=>{oCe.exports=g7()});var aCe=h((Wf1,iCe)=>{"use strict";var sCe=tm(),aC0=TypeError;iCe.exports=function(t,e){if(!delete t[e])throw new aC0("Cannot delete property "+sCe(e)+" of "+sCe(t))}});var pCe=h((xf1,uCe)=>{"use strict";var cCe=dm(),cC0=Math.floor,I7=i(function(t,e){var r=t.length;if(r<8)for(var n=1,o,s;n<r;){for(s=n,o=t[n];s&&e(t[s-1],o)>0;)t[s]=t[--s];s!==n++&&(t[s]=o)}else for(var a=cC0(r/2),c=I7(cCe(t,0,a),e),u=I7(cCe(t,a),e),p=c.length,A=u.length,l=0,b=0;l<p||b<A;)t[l+b]=l<p&&b<A?e(c[l],u[b])<=0?c[l++]:u[b++]:l<p?c[l++]:u[b++];return t},"sort");uCe.exports=I7});var dCe=h((vf1,lCe)=>{"use strict";var uC0=Ed(),ACe=uC0.match(/firefox\/(\d+)/i);lCe.exports=!!ACe&&+ACe[1]});var fCe=h((Lf1,bCe)=>{"use strict";var pC0=Ed();bCe.exports=/MSIE|Trident/.test(pC0)});var mCe=h((Qf1,hCe)=>{"use strict";var AC0=Ed(),MCe=AC0.match(/AppleWebKit\/(\d+)\./);hCe.exports=!!MCe&&+MCe[1]});var DCe=h(()=>{"use strict";var lC0=w0(),BCe=t1(),dC0=Xp(),bC0=ai(),zCe=Ca(),fC0=aCe(),gCe=ui(),R7=d1(),MC0=pCe(),hC0=gm(),OCe=dCe(),mC0=fCe(),ECe=Cd(),CCe=mCe(),Hc=[],yCe=BCe(Hc.sort),zC0=BCe(Hc.push),gC0=R7(function(){Hc.sort(void 0)}),OC0=R7(function(){Hc.sort(null)}),EC0=hC0("sort"),qCe=!R7(function(){if(ECe)return ECe<70;if(!(OCe&&OCe>3)){if(mC0)return!0;if(CCe)return CCe<603;var t="",e,r,n,o;for(e=65;e<76;e++){switch(r=String.fromCharCode(e),e){case 66:case 69:case 70:case 72:n=3;break;case 68:case 71:n=4;break;default:n=2}for(o=0;o<47;o++)Hc.push({k:r+o,v:n})}for(Hc.sort(function(s,a){return a.v-s.v}),o=0;o<Hc.length;o++)r=Hc[o].k.charAt(0),t.charAt(t.length-1)!==r&&(t+=r);return t!=="DGBEFHACIJK"}}),CC0=gC0||!OC0||!EC0||!qCe,yC0=i(function(t){return function(e,r){return r===void 0?-1:e===void 0?1:t!==void 0?+t(e,r)||0:gCe(e)>gCe(r)?1:-1}},"getSortCompare");lC0({target:"Array",proto:!0,forced:CC0},{sort:i(function(e){e!==void 0&&dC0(e);var r=bC0(this);if(qCe)return e===void 0?yCe(r):yCe(r,e);var n=[],o=zCe(r),s,a;for(a=0;a<o;a++)a in r&&zC0(n,r[a]);for(MC0(n,yC0(e)),s=zCe(n),a=0;a<s;)r[a]=n[a++];for(;a<o;)fC0(r,a++);return r},"sort")})});var RCe=h((Uf1,ICe)=>{"use strict";DCe();var BC0=Lo();ICe.exports=BC0("Array","sort")});var wCe=h((Gf1,NCe)=>{"use strict";var qC0=qr(),DC0=RCe(),N7=Array.prototype;NCe.exports=function(t){var e=t.sort;return t===N7||qC0(N7,t)&&e===N7.sort?DC0:e}});var FCe=h((Hf1,SCe)=>{"use strict";var IC0=wCe();SCe.exports=IC0});var xCe=h((Xf1,WCe)=>{WCe.exports=FCe()});var TCe=h(()=>{});var QCe=h((Jf1,LCe)=>{"use strict";var RC0=X1(),NC0=d1(),vCe=RC0.RegExp,wC0=!NC0(function(){var t=!0;try{vCe(".","d")}catch{t=!1}var e={},r="",n=t?"dgimsy":"gimsy",o=i(function(u,p){Object.defineProperty(e,u,{get:i(function(){return r+=p,!0},"get")})},"addGetter"),s={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};t&&(s.hasIndices="d");for(var a in s)o(a,s[a]);var c=Object.getOwnPropertyDescriptor(vCe.prototype,"flags").get.call(e);return c!==n||r!==n});LCe.exports={correct:wC0}});var PCe=h((jf1,_Ce)=>{"use strict";var SC0=Ea();_Ce.exports=function(){var t=SC0(this),e="";return t.hasIndices&&(e+="d"),t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.unicodeSets&&(e+="v"),t.sticky&&(e+="y"),e}});var GCe=h((Kf1,UCe)=>{"use strict";var FC0=eo(),WC0=$t(),xC0=qr(),kCe=QCe(),TC0=PCe(),vC0=RegExp.prototype;UCe.exports=kCe.correct?function(t){return t.flags}:function(t){return!kCe.correct&&xC0(vC0,t)&&!WC0(t,"flags")?FC0(TC0,t):t.flags}});var XCe=h((Zf1,HCe)=>{"use strict";TCe();var LC0=GCe();HCe.exports=LC0});var JCe=h((eM1,YCe)=>{"use strict";var QC0=qr(),_C0=XCe(),VCe=RegExp.prototype;YCe.exports=function(t){return t===VCe||QC0(VCe,t)?_C0(t):t.flags}});var jCe=h((tM1,$Ce)=>{"use strict";var PC0=JCe();$Ce.exports=PC0});var ZCe=h((rM1,KCe)=>{KCe.exports=jCe()});var mye=h((Fm,hye)=>{"use strict";var jt=si(),kC0=ci();kC0(Fm,"__esModule",{ Line truncated
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var s=!0,a=!1,c;return{s:i(function(){r=(0,UC0.default)(t)},"s"),n:i(function(){var p=r.next();return s=p.done,p},"n"),e:i(function(p){a=!0,c=p},"e"),f:i(function(){try{!s&&r.return!=null&&r.return()}finally{if(a)throw c}},"f")}}i(wm,"_createForOfIteratorHelper");function jC0(t,e){var r;if(t){if(typeof t=="string")return eye(t,e);var n=(0,ro.default)(r=Object.prototype.toString.call(t)).call(r,8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return(0,VC0.default)(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return eye(t,e)}}i(jC0,"_unsupportedIterableToArray");function eye(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}i(eye,"_arrayLikeToArray");var _0="xregexp",tA={astral:!1,namespacing:!1},b1={exec:RegExp.prototype.exec,test:RegExp.prototype.test,match:String.prototype.match,replace:String.prototype.replace,split:String.prototype.split},pi={},Rm={},Wd={},w7=[],xd="default",tye="class",KC0={default:/\\(?:0(?:[0-3][0-7]{0,2}|[4-7][0-7]?)?|[1-9]\d*|x[\dA-Fa-f]{2}|u(?:[\dA-Fa-f]{4}|{[\dA-Fa-f]+})|c[A-Za-z]|[\s\S])|\(\?(?:[:=!]|<[=!])|[?*+]\?|{\d+(?:,\d*)?}\??|[\s\S]/,class:/\\(?:[0-3][0-7]{0,2}|[4-7][0-7]?|x[\dA-Fa-f]{2}|u(?:[\dA-Fa-f]{4}|{[\dA-Fa-f]+})|c[A-Za-z]|[\s\S])|[\s\S]/},ZC0=/\$(?:{([\w$]+)}|<([\w$]+)>|(\d\d?|[\s\S]))/g,ey0=b1.exec.call(/()??/,"")[1]===void 0,ty0=(0,eA.default)(/x/)!==void 0,ry0={},iye=ry0.toString;function F7(t){var e=!0;try{if(new RegExp("",t),t==="y"){var r=(function(){return"gy"})(),n=".a".replace(new RegExp("a",r),".")==="..";n&&(e=!1)}}catch{e=!1}return e}i(F7,"hasNativeFlag");var aye=F7("u"),W7=F7("y"),cye={g:!0,i:!0,m:!0,u:aye,y:W7};function uye(t,e,r,n,o){var s;if(t[_0]={captureNames:e},o)return t;if(t.__proto__)t.__proto__=Y.prototype;else for(var a in Y.prototype)t[a]=Y.prototype[a];return t[_0].source=r,t[_0].flags=n&&(0,$C0.default)(s=n.split("")).call(s).join(""),t}i(uye,"augment");function Nm(t){return b1.replace.call(t,/([\s\S])(?=[\s\S]*\1)/g,"")}i(Nm,"clipDuplicates");function nA(t,e){var r;if(!Y.isRegExp(t))throw new TypeError("Type RegExp expected");var n=t[_0]||{},o=ny0(t),s="",a="",c=null,u=null;return e=e||{},e.removeG&&(a+="g"),e.removeY&&(a+="y"),a&&(o=b1.replace.call(o,new RegExp("[".concat(a,"]+"),"g"),"")),e.addG&&(s+="g"),e.addY&&(s+="y"),s&&(o=Nm(o+s)),e.isInternalOnly||(n.source!==void 0&&(c=n.source),(0,eA.default)(n)!=null&&(u=s?Nm((0,eA.default)(n)+s):(0,eA.default)(n))),t=uye(new RegExp(e.source||t.source,o),oy0(t)?(0,ro.default)(r=n.captureNames).call(r,0):null,c,u,e.isInternalOnly),t}i(nA,"copyRegex");function pye(t){return(0,sye.default)(t,16)}i(pye,"dec");function Aye(t,e,r){return t.input[t.index-1]==="("||t.input[t.index+t[0].length]===")"||t.input[t.index-1]==="|"||t.input[t.index+t[0].length]==="|"||t.index<1||t.index+t[0].length>=t.input.length||b1.test.call(/^\(\?[:=!]/,t.input.substr(t.index-3,3))||sy0(t.input,t.index+t[0].length,r)?"":"(?:)"}i(Aye,"getContextualTokenSeparator");function ny0(t){return ty0?(0,eA.default)(t):b1.exec.call(/\/([a-z]*)$/i,RegExp.prototype.toString.call(t))[1]}i(ny0,"getNativeFlags");function oy0(t){return!!(t[_0]&&t[_0].captureNames)}i(oy0,"hasNamedCapture");function lye(t){return(0,sye.default)(t,10).toString(16)}i(lye,"hex");function sy0(t,e,r){var n="\\(\\?#[^)]*\\)",o="#[^#\\n]*",s="[?*+]|{\\d+(?:,\\d*)?}";return b1.test.call((0,rA.default)(r).call(r,"x")?/^(?:\s|#[^#\n]*|\(\?#[^)]*\))*(?:[?*+]|{\d+(?:,\d*)?})/:/^(?:\(\?#[^)]*\))*(?:[?*+]|{\d+(?:,\d*)?})/,(0,ro.default)(t).call(t,e))}i(sy0,"isQuantifierNext");function x7(t,e){return iye.call(t)==="[object ".concat(e,"]")}i(x7,"isType");function dye(t){for(;t.length<4;)t="0".concat(t);return t}i(dye,"pad4");function iy0(t,e){if(Nm(e)!==e)throw new SyntaxError("Invalid duplicate regex flag ".concat(e));t=b1.replace.call(t,/^\(\?([\w$]+)\)/,function(s,a){if(b1.test.call(/[gy]/,a))throw new SyntaxError("Cannot use flag g or y in mode modifier ".concat(s));return e=Nm(e+a),""});var r=wm(e),n;try{for(r.s();!(n=r.n()).done;){var o=n.value;if(!cye[o])throw new SyntaxError("Unknown regex flag ".concat(o))}}catch(s){r.e(s)}finally{r.f()}return{pattern:t,flags:e}}i(iy0,"prepareFlags");function bye(t){var e={};return x7(t,"String")?((0,S7.default)(Y).call(Y,t,/[^\s,]+/,function(r){e[r]=!0}),e):t}i(bye,"prepareOptions");function rye(t){if(!/^[\w$]$/.test(t))throw new Error("Flag must be a single character A-Za-z0-9_$");cye[t]=!0}i(rye,"registerFlag");function ay0(t,e,r,n,o){for(var s=w7.length,a=t[r],c=null,u,p;s--;)if(p=w7[s],!(p.leadChar&&p.leadChar!==a||p.scope!==n&&p.scope!=="all"||p.flag&&!(0,rA.default)(e).call(e,p.flag))&&(u=Y.exec(t,p.regex,r,"sticky"),u)){c={matchLength:u[0].length,output:p.handler.call(o,u,n,e),reparse:p.reparse};break}return c}i(ay0,"runTokens");function fye(t){tA.astral=t}i(fye,"setAstral");function Mye(t){tA.namespacing=t}i(Mye,"setNamespacing");f Line truncated
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var s=!0,a=!1,c;return{s:i(function(){r=(0,ky0.default)(t)},"s"),n:i(function(){var p=r.next();return s=p.done,p},"n"),e:i(function(p){a=!0,c=p},"e"),f:i(function(){try{!s&&r.return!=null&&r.return()}finally{if(a)throw c}},"f")}}i($y0,"_createForOfIteratorHelper");function jy0(t,e){var r;if(t){if(typeof t=="string")return e4e(t,e);var n=(0,Vy0.default)(r=Object.prototype.toString.call(t)).call(r,8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return(0,Xy0.default)(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return e4e(t,e)}}i(jy0,"_unsupportedIterableToArray");function e4e(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}i(e4e,"_arrayLikeToArray");var Ky0=i(function(e){var r={},n=e._dec,o=e._hex,s=e._pad4;function a(b){return b.replace(/[- _]+/g,"").toLowerCase()}i(a,"normalize");function c(b){var M=/^\\[xu](.+)/.exec(b);return M?n(M[1]):b.charCodeAt(b[0]==="\\"?1:0)}i(c,"charCode");function u(b){var M="",z=-1;return(0,Jy0.default)(e).call(e,b,/(\\x..|\\u....|\\?[\s\S])(?:-(\\x..|\\u....|\\?[\s\S]))?/,function(O){var y=c(O[1]);y>z+1&&(M+="\\u".concat(s(o(z+1))),y>z+2&&(M+="-\\u".concat(s(o(y-1))))),z=c(O[2]||O[1])}),z<65535&&(M+="\\u".concat(s(o(z+1))),z<65534&&(M+="-\\uFFFF")),M}i(u,"invertBmp");function p(b){var M="b!";return r[b][M]||(r[b][M]=u(r[b].bmp))}i(p,"cacheInvertedBmp");function A(b,M){var z=r[b],O="";if(z.bmp&&!z.isBmpLast){var y;O=(0,Q7.default)(y="[".concat(z.bmp,"]")).call(y,z.astral?"|":"")}if(z.astral&&(O+=z.astral),z.isBmpLast&&z.bmp){var E;O+=(0,Q7.default)(E="".concat(z.astral?"|":"","[")).call(E,z.bmp,"]")}return M?"(?:(?!".concat(O,")(?:[\uD800-\uDBFF][\uDC00-\uDFFF]|[\0-\uFFFF]))"):"(?:".concat(O,")")}i(A,"buildAstral");function l(b,M){var z=M?"a!":"a=";return r[b][z]||(r[b][z]=A(b,M))}i(l,"cacheAstral"),e.addToken(/\\([pP])(?:{(\^?)([^}]*)}|([A-Za-z]))/,function(b,M,z){var O="Invalid double negation ",y="Unknown Unicode token ",E="Unicode token missing data ",B="Astral mode required for Unicode token ",q="Astral mode does not support Unicode tokens within character classes",I=b[1]==="P"||!!b[2],W=(0,Yy0.default)(z).call(z,"A"),x=a(b[4]||b[3]),L=r[x];if(b[1]==="P"&&b[2])throw new SyntaxError(O+b[0]);if(!r.hasOwnProperty(x))throw new SyntaxError(y+b[0]);if(L.inverseOf){if(x=a(L.inverseOf),!r.hasOwnProperty(x)){var ce;throw new ReferenceError((0,Q7.default)(ce="".concat(E+b[0]," -> ")).call(ce,L.inverseOf))}L=r[x],I=!I}if(!(L.bmp||W))throw new SyntaxError(B+b[0]);if(W){if(M==="class")throw new SyntaxError(q);return l(x,I)}return M==="class"?I?p(x):L.bmp:"".concat((I?"[^":"[")+L.bmp,"]")},{scope:"all",optionalFlags:"A",leadChar:"\\"}),e.addUnicodeData=function(b){var M="Unicode token requires name",z="Unicode token has no character data ",O=$y0(b),y;try{for(O.s();!(y=O.n()).done;){var E=y.value;if(!E.name)throw new Error(M);if(!(E.inverseOf||E.bmp||E.astral))throw new Error(z+E.name);r[a(E.name)]=E,E.alias&&(r[a(E.alias)]=E)}}catch(B){O.e(B)}finally{O.f()}e.cache.flush("patterns")},e._getUnicodeProperty=function(b){var M=a(b);return r[M]}},"_default");vm.default=Ky0;t4e.exports=vm.default});var o4e=h((qM1,n4e)=>{n4e.exports=[{name:"InAdlam",astral:"\uD83A[\uDD00-\uDD5F]"},{name:"InAegean_Numbers",astral:"\uD800[\uDD00-\uDD3F]"},{name:"InAhom",astral:"\uD805[\uDF00-\uDF3F]"},{name:"InAlchemical_Symbols",astral:"\uD83D[\uDF00-\uDF7F]"},{name:"InAlphabetic_Presentation_Forms",bmp:"\uFB00-\uFB4F"},{name:"InAnatolian_Hieroglyphs",astral:"\uD811[\uDC00-\uDE7F]"},{name:"InAncient_Greek_Musical_Notation",astral:"\uD834[\uDE00-\uDE4F]"},{name:"InAncient_Greek_Numbers",astral:"\uD800[\uDD40-\uDD8F]"},{name:"InAncient_Symbols",astral:"\uD800[\uDD90-\uDDCF]"},{name:"InArabic",bmp:"\u0600-\u06FF"},{name:"InArabic_Extended_A",bmp:"\u08A0-\u08FF"},{name:"InArabic_Mathematical_Alphabetic_Symbols",astral:"\uD83B[\uDE00-\uDEFF]"},{name:"InArabic_Presentation_Forms_A",bmp:"\uFB50-\uFDFF"},{name:"InArabic_Presentation_Forms_B",bmp:"\uFE70-\uFEFF"},{name:"InArabic_Supplement",bmp:"\u0750-\u077F"},{name:"InArmenian",bmp:"\u0530-\u058F"},{name:"InArrows",bmp:"\u2190-\u21FF"},{name:"InAvestan",astral:"\uD802[\uDF00-\uDF3F]"},{name:"InBalinese",bmp:"\u1B00-\u1B7F"},{name:"InBamum",bmp:"\uA6A0-\uA6FF"},{name:"InBamum_Supplement",astral:"\uD81A[\uDC00-\uDE3F]"},{name:"InBasic_Latin",bmp:"\0-\x7F"},{name:"InBassa_Vah",astral:"\uD81A[\uDED0-\uDEFF]"},{name:"InBatak",bmp:"\u1BC0-\u1BFF"},{name:"InBengali",bmp:"\u0980-\u09FF"},{name:"InBhaiksuki",astral:"\uD807[\uDC00-\uDC6F]"},{name:"InBlock_Elements",bmp:"\u2580-\u259F"},{name:"InBopomofo",bmp:"\u3100-\u312F"},{name:"InBopomofo_Extended",bmp:"\u31A0-\u31BF"},{name:"InBox_Drawing",bmp:"\u2500-\u257F"},{name:"InBrahmi",astral:"\uD804[\uDC00-\uDC7F]"},{name:"InBraille_Patterns",bmp:"\u2800-\u28FF"},{name:"InBuginese",bmp:"\u1A00-\u1A1F"},{name:"InBuhid",bmp:"\u1740-\u175F"},{ Line truncated
Support boolean input list: \`true | True | TRUE | false | False | FALSE\``)}i(Vj,"getBooleanInput");function GN(t,e){if(process.env.GITHUB_OUTPUT||"")return Vd("OUTPUT",bz(t,e));process.stdout.write(UN.EOL),ko("set-output",{name:t},Po(e))}i(GN,"setOutput");function Yj(t){process.exitCode=kN.Failure,ll(t)}i(Yj,"setFailed");function vi(){return process.env.RUNNER_DEBUG==="1"}i(vi,"isDebug");function N(t){ko("debug",{},t)}i(N,"debug");function ll(t,e={}){ko("error",KD(e),t instanceof Error?t.toString():t)}i(ll,"error");function r0(t,e={}){ko("warning",KD(e),t instanceof Error?t.toString():t)}i(r0,"warning");function S(t){process.stdout.write(t+UN.EOL)}i(S,"info");function Iu(t){eI("group",t)}i(Iu,"startGroup");function Ru(){eI("endgroup")}i(Ru,"endGroup");function at(t,e){return g8e(this,void 0,void 0,function*(){Iu(t);let r;try{r=yield e()}finally{Ru()}return r})}i(at,"group");function fO(t,e){if(process.env.GITHUB_STATE||"")return Vd("STATE",bz(t,e));ko("save-state",{name:t},Po(e))}i(fO,"saveState");function Jj(t){return process.env[`STATE_${t}`]||""}i(Jj,"getState");var YM=w(require("fs"),1),nL=w(require("os"),1),oL=w(require("path"),1);var jj=w(require("os"),1);function rf(t){return t==null?"":typeof t=="string"||t instanceof String?t:JSON.stringify(t)}i(rf,"toCommandValue");function Kj(t,e,r){let n=new HN(t,e,r);process.stdout.write(n.toString()+jj.EOL)}i(Kj,"issueCommand");var $j="::",HN=class{static{i(this,"Command")}constructor(e,r,n){e||(e="missing.command"),this.command=e,this.properties=r,this.message=n}toString(){let e=$j+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let r=!0;for(let n in this.properties)if(this.properties.hasOwnProperty(n)){let o=this.properties[n];o&&(r?r=!1:e+=",",e+=`${n}=${E8e(o)}`)}}return e+=`${$j}${O8e(this.message)}`,e}};function O8e(t){return rf(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}i(O8e,"escapeData");function E8e(t){return rf(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}i(E8e,"escapeProperty");var rK=w(require("os"),1);var eK=require("os"),nf=require("fs");var XN=function(t,e,r,n){function o(s){return s instanceof r?s:new r(function(a){a(s)})}return i(o,"adopt"),new(r||(r=Promise))(function(s,a){function c(A){try{p(n.next(A))}catch(l){a(l)}}i(c,"fulfilled");function u(A){try{p(n.throw(A))}catch(l){a(l)}}i(u,"rejected");function p(A){A.done?s(A.value):o(A.value).then(c,u)}i(p,"step"),p((n=n.apply(t,e||[])).next())})},{access:C8e,appendFile:y8e,writeFile:B8e}=nf.promises,Zj="GITHUB_STEP_SUMMARY";var VN=class{static{i(this,"Summary")}constructor(){this._buffer=""}filePath(){return XN(this,void 0,void 0,function*(){if(this._filePath)return this._filePath;let e=process.env[Zj];if(!e)throw new Error(`Unable to find environment variable for $${Zj}. Check if your runtime environment supports job summaries.`);try{yield C8e(e,nf.constants.R_OK|nf.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,n={}){let o=Object.entries(n).map(([s,a])=>` ${s}="${a}"`).join("");return r?`<${e}${o}>${r}</${e}>`:`<${e}${o}>`}write(e){return XN(this,void 0,void 0,function*(){let r=!!e?.overwrite,n=yield this.filePath();return yield(r?B8e:y8e)(n,this._buffer,{encoding:"utf8"}),this.emptyBuffer()})}clear(){return XN(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(eK.EOL)}addCodeBlock(e,r){let n=Object.assign({},r&&{lang:r}),o=this.wrap("pre",this.wrap("code",e),n);return this.addRaw(o).addEOL()}addList(e,r=!1){let n=r?"ol":"ul",o=e.map(a=>this.wrap("li",a)).join(""),s=this.wrap(n,o);return this.addRaw(s).addEOL()}addTable(e){let r=e.map(o=>{let s=o.map(a=>{if(typeof a=="string")return this.wrap("td",a);let{header:c,data:u,colspan:p,rowspan:A}=a,l=c?"th":"td",b=Object.assign(Object.assign({},p&&{colspan:p}),A&&{rowspan:A});return this.wrap(l,u,b)}).join("");return this.wrap("tr",s)}).join(""),n=this.wrap("table",r);return this.addRaw(n).addEOL()}addDetails(e,r){let n=this.wrap("details",this.wrap("summary",e)+r);return this.addRaw(n).addEOL()}addImage(e,r,n){let{width:o,height:s}=n||{},a=Object.assign(Object.assign({},o&&{width:o}),s&&{height:s}),c=this.wrap("img",null,Object.assign({src:e,alt:r},a));return this.addRaw(c).addEOL()}addHeading(e,r){let n=`h${r}`,o=["h1","h2","h3","h4","h5","h6"].includes(n)?n:"h1",s=this.wrap(o,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 n=Object.assign({},r&&{cite:r}),o=this.wrap("blockquote",e,n);return this.addRaw(o).addEOL()}addLinLine truncated
`+new Error().stack),m=!1}return f.apply(this,arguments)},f)}i(Y,"deprecate");var Te={};function Ge(d,f){e.deprecationHandler!=null&&e.deprecationHandler(d,f),Te[d]||(L(f),Te[d]=!0)}i(Ge,"deprecateSimple"),e.suppressDeprecationWarnings=!1,e.deprecationHandler=null;function Ne(d){return typeof Function<"u"&&d instanceof Function||Object.prototype.toString.call(d)==="[object Function]"}i(Ne,"isFunction");function Be(d){var f,m;for(m in d)s(d,m)&&(f=d[m],Ne(f)?this[m]=f:this["_"+m]=f);this._config=d,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}i(Be,"set");function ke(d,f){var m=l({},d),g;for(g in f)s(f,g)&&(o(d[g])&&o(f[g])?(m[g]={},l(m[g],d[g]),l(m[g],f[g])):f[g]!=null?m[g]=f[g]:delete m[g]);for(g in d)s(d,g)&&!s(f,g)&&o(d[g])&&(m[g]=l({},m[g]));return m}i(ke,"mergeConfigs");function pe(d){d!=null&&this.set(d)}i(pe,"Locale");var Ue;Object.keys?Ue=Object.keys:Ue=i(function(d){var f,m=[];for(f in d)s(d,f)&&m.push(f);return m},"keys");var $={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function Qe(d,f,m){var g=this._calendar[d]||this._calendar.sameElse;return Ne(g)?g.call(f,m):g}i(Qe,"calendar");function C0(d,f,m){var g=""+Math.abs(d),C=f-g.length,I=d>=0;return(I?m?"+":"":"-")+Math.pow(10,Math.max(0,C)).toString().substr(1)+g}i(C0,"zeroFill");var ht=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,p0=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,V1={},q0={};function oe(d,f,m,g){var C=g;typeof g=="string"&&(C=i(function(){return this[g]()},"func")),d&&(q0[d]=C),f&&(q0[f[0]]=function(){return C0(C.apply(this,arguments),f[1],f[2])}),m&&(q0[m]=function(){return this.localeData().ordinal(C.apply(this,arguments),d)})}i(oe,"addFormatToken");function _o(d){return d.match(/\[[\s\S]/)?d.replace(/^\[|\]$/g,""):d.replace(/\\/g,"")}i(_o,"removeFormattingTokens");function An(d){var f=d.match(ht),m,g;for(m=0,g=f.length;m<g;m++)q0[f[m]]?f[m]=q0[f[m]]:f[m]=_o(f[m]);return function(C){var I="",F;for(F=0;F<g;F++)I+=Ne(f[F])?f[F].call(C,d):f[F];return I}}i(An,"makeFormatFunction");function b0(d,f){return d.isValid()?(f=Zt(f,d.localeData()),V1[f]=V1[f]||An(f),V1[f](d)):d.localeData().invalidDate()}i(b0,"formatMoment");function Zt(d,f){var m=5;function g(C){return f.longDateFormat(C)||C}for(i(g,"replaceLongDateFormatTokens"),p0.lastIndex=0;m>=0&&p0.test(d);)d=d.replace(p0,g),p0.lastIndex=0,m-=1;return d}i(Zt,"expandFormat");var Hm={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function Xm(d){var f=this._longDateFormat[d],m=this._longDateFormat[d.toUpperCase()];return f||!m?f:(this._longDateFormat[d]=m.match(ht).map(function(g){return g==="MMMM"||g==="MM"||g==="DD"||g==="dddd"?g.slice(1):g}).join(""),this._longDateFormat[d])}i(Xm,"longDateFormat");var wD="Invalid date";function Vc(){return this._invalidDate}i(Vc,"invalidDate");var R="%d",T=/\d{1,2}/;function v(d){return this._ordinal.replace("%d",d)}i(v,"ordinal");var k={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function qe(d,f,m,g){var C=this._relativeTime[m];return Ne(C)?C(d,f,m,g):C.replace(/%d/i,d)}i(qe,"relativeTime");function Ze(d,f){var m=this._relativeTime[d>0?"future":"past"];return Ne(m)?m(f):m.replace(/%s/i,f)}i(Ze,"pastFuture");var K0={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function ve(d){return typeof d=="string"?K0[d]||K0[d.toLowerCase()]:void 0}i(ve,"normalizeUnits");function D0(d){var f={},m,g;for(g in d)s(d,g)&&(m=ve(g),m&&(f[m]=d[g]));return f}i(D0,"normalizeObjectUnits");var o9={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function eBe(d){var f=[],m;for(m in d)s(d,m)&&f.push({unit:m,priority:o9[m]});return f.sort(function(g,C){return g.priority-C.priority}),f} Line truncated
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}i(fE0,"_nonIterableRest");Bm.exports=fE0,Bm.exports.__esModule=!0,Bm.exports.default=Bm.exports});var uEe=h((if1,qm)=>{var ME0=VOe(),hE0=L3e(),mE0=aEe(),zE0=cEe();function gE0(t,e){return ME0(t)||hE0(t,e)||mE0(t,e)||zE0()}i(gE0,"_slicedToArray");qm.exports=gE0,qm.exports.__esModule=!0,qm.exports.default=qm.exports});var AEe=h((cf1,pEe)=>{"use strict";var OE0=fD().forEach,EE0=gm(),CE0=EE0("forEach");pEe.exports=CE0?[].forEach:i(function(e){return OE0(this,e,arguments.length>1?arguments[1]:void 0)},"forEach")});var dEe=h(()=>{"use strict";var yE0=w0(),lEe=AEe();yE0({target:"Array",proto:!0,forced:[].forEach!==lEe},{forEach:lEe})});var fEe=h((lf1,bEe)=>{"use strict";dEe();var BE0=Qo();bEe.exports=BE0("Array","forEach")});var hEe=h((df1,MEe)=>{"use strict";var qE0=fEe();MEe.exports=qE0});var mEe=h(()=>{});var gEe=h((Mf1,zEe)=>{"use strict";var DE0=Rd(),IE0=jt(),RE0=Dr(),NE0=hEe();mEe();var B7=Array.prototype,wE0={DOMTokenList:!0,NodeList:!0};zEe.exports=function(t){var e=t.forEach;return t===B7||RE0(B7,t)&&e===B7.forEach||IE0(wE0,DE0(t))?NE0:e}});var q7=h((hf1,OEe)=>{OEe.exports=gEe()});var EEe=h(()=>{"use strict";var SE0=w0(),FE0=Kq().includes,WE0=d1(),xE0=ik(),TE0=WE0(function(){return!Array(1).includes()});SE0({target:"Array",proto:!0,forced:TE0},{includes:i(function(e){return FE0(this,e,arguments.length>1?arguments[1]:void 0)},"includes")});xE0("includes")});var yEe=h((Of1,CEe)=>{"use strict";EEe();var vE0=Qo();CEe.exports=vE0("Array","includes")});var qEe=h((Ef1,BEe)=>{"use strict";var LE0=un(),QE0=ma(),_E0=D1(),PE0=_E0("match");BEe.exports=function(t){var e;return LE0(t)&&((e=t[PE0])!==void 0?!!e:QE0(t)==="RegExp")}});var IEe=h((Cf1,DEe)=>{"use strict";var kE0=qEe(),UE0=TypeError;DEe.exports=function(t){if(kE0(t))throw new UE0("The method doesn't accept regular expressions");return t}});var NEe=h((yf1,REe)=>{"use strict";var GE0=D1(),HE0=GE0("match");REe.exports=function(t){var e=/./;try{"/./"[t](e)}catch{try{return e[HE0]=!1,"/./"[t](e)}catch{}}return!1}});var SEe=h(()=>{"use strict";var XE0=w0(),VE0=t1(),YE0=IEe(),JE0=Gp(),wEe=pi(),$E0=NEe(),jE0=VE0("".indexOf);XE0({target:"String",proto:!0,forced:!$E0("includes")},{includes:i(function(e){return!!~jE0(wEe(JE0(this)),wEe(YE0(e)),arguments.length>1?arguments[1]:void 0)},"includes")})});var WEe=h((If1,FEe)=>{"use strict";SEe();var KE0=Qo();FEe.exports=KE0("String","includes")});var vEe=h((Rf1,TEe)=>{"use strict";var xEe=Dr(),ZE0=yEe(),eC0=WEe(),D7=Array.prototype,I7=String.prototype;TEe.exports=function(t){var e=t.includes;return t===D7||xEe(D7,t)&&e===D7.includes?ZE0:typeof t=="string"||t===I7||xEe(I7,t)&&e===I7.includes?eC0:e}});var QEe=h((Nf1,LEe)=>{"use strict";var tC0=vEe();LEe.exports=tC0});var Dm=h((wf1,_Ee)=>{_Ee.exports=QEe()});var R7=h((Sf1,PEe)=>{"use strict";PEe.exports=`
\v\f\r \xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF`});var GEe=h((Ff1,UEe)=>{"use strict";var rC0=t1(),nC0=Gp(),oC0=pi(),w7=R7(),kEe=rC0("".replace),sC0=RegExp("^["+w7+"]+"),iC0=RegExp("(^|[^"+w7+"])["+w7+"]+$"),N7=i(function(t){return function(e){var r=oC0(nC0(e));return t&1&&(r=kEe(r,sC0,"")),t&2&&(r=kEe(r,iC0,"$1")),r}},"createMethod");UEe.exports={start:N7(1),end:N7(2),trim:N7(3)}});var jEe=h((xf1,$Ee)=>{"use strict";var YEe=X1(),aC0=d1(),cC0=t1(),uC0=pi(),pC0=GEe().trim,HEe=R7(),Im=YEe.parseInt,XEe=YEe.Symbol,VEe=XEe&&XEe.iterator,JEe=/^[+-]?0x/i,AC0=cC0(JEe.exec),lC0=Im(HEe+"08")!==8||Im(HEe+"0x16")!==22||VEe&&!aC0(function(){Im(Object(VEe))});$Ee.exports=lC0?i(function(e,r){var n=pC0(uC0(e));return Im(n,r>>>0||(AC0(JEe,n)?16:10))},"parseInt"):Im});var ZEe=h(()=>{"use strict";var dC0=w0(),KEe=jEe();dC0({global:!0,forced:parseInt!==KEe},{parseInt:KEe})});var tCe=h((Qf1,eCe)=>{"use strict";ZEe();var bC0=xo();eCe.exports=bC0.parseInt});var nCe=h((_f1,rCe)=>{"use strict";var fC0=tCe();rCe.exports=fC0});var sCe=h((Pf1,oCe)=>{oCe.exports=nCe()});var yD=h((kf1,iCe)=>{iCe.exports=y7()});var uCe=h((Uf1,cCe)=>{"use strict";var aCe=tm(),MC0=TypeError;cCe.exports=function(t,e){if(!delete t[e])throw new MC0("Cannot delete property "+aCe(e)+" of "+aCe(t))}});var lCe=h((Gf1,ACe)=>{"use strict";var pCe=dm(),hC0=Math.floor,S7=i(function(t,e){var r=t.length;if(r<8)for(var n=1,o,s;n<r;){for(s=n,o=t[n];s&&e(t[s-1],o)>0;)t[s]=t[--s];s!==n++&&(t[s]=o)}else for(var a=hC0(r/2),c=S7(pCe(t,0,a),e),u=S7(pCe(t,a),e),p=c.length,A=u.length,l=0,b=0;l<p||b<A;)t[l+b]=l<p&&b<A?e(c[l],u[b])<=0?c[l++]:u[b++]:l<p?c[l++]:u[b++];return t},"sort");ACe.exports=S7});var fCe=h((Xf1,bCe)=>{"use strict";var mC0=Od(),dCe=mC0.match(/firefox\/(\d+)/i);bCe.exports=!!dCe&&+dCe[1]});var hCe=h((Vf1,MCe)=>{"use strict";var zC0=Od();MCe.exports=/MSIE|Trident/.test(zC0)});var gCe=h((Yf1,zCe)=>{"use strict";var gC0=Od(),mCe=gC0.match(/AppleWebKit\/(\d+)\./);zCe.exports=!!mCe&&+mCe[1]});var RCe=h(()=>{"use strict";var OC0=w0(),DCe=t1(),EC0=Xp(),CC0=ci(),OCe=Oa(),yC0=uCe(),ECe=pi(),F7=d1(),BC0=lCe(),qC0=gm(),CCe=fCe(),DC0=hCe(),yCe=Ed(),BCe=gCe(),Uc=[],qCe=DCe(Uc.sort),IC0=DCe(Uc.push),RC0=F7(function(){Uc.sort(void 0)}),NC0=F7(function(){Uc.sort(null)}),wC0=qC0("sort"),ICe=!F7(function(){if(yCe)return yCe<70;if(!(CCe&&CCe>3)){if(DC0)return!0;if(BCe)return BCe<603;var t="",e,r,n,o;for(e=65;e<76;e++){switch(r=String.fromCharCode(e),e){case 66:case 69:case 70:case 72:n=3;break;case 68:case 71:n=4;break;default:n=2}for(o=0;o<47;o++)Uc.push({k:r+o,v:n})}for(Uc.sort(function(s,a){return a.v-s.v}),o=0;o<Uc.length;o++)r=Uc[o].k.charAt(0),t.charAt(t.length-1)!==r&&(t+=r);return t!=="DGBEFHACIJK"}}),SC0=RC0||!NC0||!wC0||!ICe,FC0=i(function(t){return function(e,r){return r===void 0?-1:e===void 0?1:t!==void 0?+t(e,r)||0:ECe(e)>ECe(r)?1:-1}},"getSortCompare");OC0({target:"Array",proto:!0,forced:SC0},{sort:i(function(e){e!==void 0&&EC0(e);var r=CC0(this);if(ICe)return e===void 0?qCe(r):qCe(r,e);var n=[],o=OCe(r),s,a;for(a=0;a<o;a++)a in r&&IC0(n,r[a]);for(BC0(n,FC0(e)),s=OCe(n),a=0;a<s;)r[a]=n[a++];for(;a<o;)yC0(r,a++);return r},"sort")})});var wCe=h((Kf1,NCe)=>{"use strict";RCe();var WC0=Qo();NCe.exports=WC0("Array","sort")});var FCe=h((Zf1,SCe)=>{"use strict";var xC0=Dr(),TC0=wCe(),W7=Array.prototype;SCe.exports=function(t){var e=t.sort;return t===W7||xC0(W7,t)&&e===W7.sort?TC0:e}});var xCe=h((eM1,WCe)=>{"use strict";var vC0=FCe();WCe.exports=vC0});var vCe=h((tM1,TCe)=>{TCe.exports=xCe()});var LCe=h(()=>{});var PCe=h((oM1,_Ce)=>{"use strict";var LC0=X1(),QC0=d1(),QCe=LC0.RegExp,_C0=!QC0(function(){var t=!0;try{QCe(".","d")}catch{t=!1}var e={},r="",n=t?"dgimsy":"gimsy",o=i(function(u,p){Object.defineProperty(e,u,{get:i(function(){return r+=p,!0},"get")})},"addGetter"),s={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};t&&(s.hasIndices="d");for(var a in s)o(a,s[a]);var c=Object.getOwnPropertyDescriptor(QCe.prototype,"flags").get.call(e);return c!==n||r!==n});_Ce.exports={correct:_C0}});var UCe=h((iM1,kCe)=>{"use strict";var PC0=ga();kCe.exports=function(){var t=PC0(this),e="";return t.hasIndices&&(e+="d"),t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.unicodeSets&&(e+="v"),t.sticky&&(e+="y"),e}});var XCe=h((aM1,HCe)=>{"use strict";var kC0=ro(),UC0=jt(),GC0=Dr(),GCe=PCe(),HC0=UCe(),XC0=RegExp.prototype;HCe.exports=GCe.correct?function(t){return t.flags}:function(t){return!GCe.correct&&GC0(XC0,t)&&!UC0(t,"flags")?kC0(HC0,t):t.flags}});var YCe=h((cM1,VCe)=>{"use strict";LCe();var VC0=XCe();VCe.exports=VC0});var jCe=h((uM1,$Ce)=>{"use strict";var YC0=Dr(),JC0=YCe(),JCe=RegExp.prototype;$Ce.exports=function(t){return t===JCe||YC0(JCe,t)?JC0(t):t.flags}});var ZCe=h((pM1,KCe)=>{"use strict";var $C0=jCe();KCe.exports=$C0});var tye=h((AM1,eye)=>{eye.exports=ZCe()});var gye=h((Fm,zye)=>{"use strict";var Kt=ii(),jC0=ui();jC0(Fm,"__esModule",{ Line truncated
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var s=!0,a=!1,c;return{s:i(function(){r=(0,KC0.default)(t)},"s"),n:i(function(){var p=r.next();return s=p.done,p},"n"),e:i(function(p){a=!0,c=p},"e"),f:i(function(){try{!s&&r.return!=null&&r.return()}finally{if(a)throw c}},"f")}}i(wm,"_createForOfIteratorHelper");function iy0(t,e){var r;if(t){if(typeof t=="string")return rye(t,e);var n=(0,oo.default)(r=Object.prototype.toString.call(t)).call(r,8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return(0,ry0.default)(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return rye(t,e)}}i(iy0,"_unsupportedIterableToArray");function rye(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}i(rye,"_arrayLikeToArray");var _0="xregexp",tA={astral:!1,namespacing:!1},b1={exec:RegExp.prototype.exec,test:RegExp.prototype.test,match:String.prototype.match,replace:String.prototype.replace,split:String.prototype.split},Ai={},Rm={},Fd={},x7=[],Wd="default",nye="class",ay0={default:/\\(?:0(?:[0-3][0-7]{0,2}|[4-7][0-7]?)?|[1-9]\d*|x[\dA-Fa-f]{2}|u(?:[\dA-Fa-f]{4}|{[\dA-Fa-f]+})|c[A-Za-z]|[\s\S])|\(\?(?:[:=!]|<[=!])|[?*+]\?|{\d+(?:,\d*)?}\??|[\s\S]/,class:/\\(?:[0-3][0-7]{0,2}|[4-7][0-7]?|x[\dA-Fa-f]{2}|u(?:[\dA-Fa-f]{4}|{[\dA-Fa-f]+})|c[A-Za-z]|[\s\S])|[\s\S]/},cy0=/\$(?:{([\w$]+)}|<([\w$]+)>|(\d\d?|[\s\S]))/g,uy0=b1.exec.call(/()??/,"")[1]===void 0,py0=(0,eA.default)(/x/)!==void 0,Ay0={},cye=Ay0.toString;function v7(t){var e=!0;try{if(new RegExp("",t),t==="y"){var r=(function(){return"gy"})(),n=".a".replace(new RegExp("a",r),".")==="..";n&&(e=!1)}}catch{e=!1}return e}i(v7,"hasNativeFlag");var uye=v7("u"),L7=v7("y"),pye={g:!0,i:!0,m:!0,u:uye,y:L7};function Aye(t,e,r,n,o){var s;if(t[_0]={captureNames:e},o)return t;if(t.__proto__)t.__proto__=J.prototype;else for(var a in J.prototype)t[a]=J.prototype[a];return t[_0].source=r,t[_0].flags=n&&(0,sy0.default)(s=n.split("")).call(s).join(""),t}i(Aye,"augment");function Nm(t){return b1.replace.call(t,/([\s\S])(?=[\s\S]*\1)/g,"")}i(Nm,"clipDuplicates");function nA(t,e){var r;if(!J.isRegExp(t))throw new TypeError("Type RegExp expected");var n=t[_0]||{},o=ly0(t),s="",a="",c=null,u=null;return e=e||{},e.removeG&&(a+="g"),e.removeY&&(a+="y"),a&&(o=b1.replace.call(o,new RegExp("[".concat(a,"]+"),"g"),"")),e.addG&&(s+="g"),e.addY&&(s+="y"),s&&(o=Nm(o+s)),e.isInternalOnly||(n.source!==void 0&&(c=n.source),(0,eA.default)(n)!=null&&(u=s?Nm((0,eA.default)(n)+s):(0,eA.default)(n))),t=Aye(new RegExp(e.source||t.source,o),dy0(t)?(0,oo.default)(r=n.captureNames).call(r,0):null,c,u,e.isInternalOnly),t}i(nA,"copyRegex");function lye(t){return(0,aye.default)(t,16)}i(lye,"dec");function dye(t,e,r){return t.input[t.index-1]==="("||t.input[t.index+t[0].length]===")"||t.input[t.index-1]==="|"||t.input[t.index+t[0].length]==="|"||t.index<1||t.index+t[0].length>=t.input.length||b1.test.call(/^\(\?[:=!]/,t.input.substr(t.index-3,3))||by0(t.input,t.index+t[0].length,r)?"":"(?:)"}i(dye,"getContextualTokenSeparator");function ly0(t){return py0?(0,eA.default)(t):b1.exec.call(/\/([a-z]*)$/i,RegExp.prototype.toString.call(t))[1]}i(ly0,"getNativeFlags");function dy0(t){return!!(t[_0]&&t[_0].captureNames)}i(dy0,"hasNamedCapture");function bye(t){return(0,aye.default)(t,10).toString(16)}i(bye,"hex");function by0(t,e,r){var n="\\(\\?#[^)]*\\)",o="#[^#\\n]*",s="[?*+]|{\\d+(?:,\\d*)?}";return b1.test.call((0,rA.default)(r).call(r,"x")?/^(?:\s|#[^#\n]*|\(\?#[^)]*\))*(?:[?*+]|{\d+(?:,\d*)?})/:/^(?:\(\?#[^)]*\))*(?:[?*+]|{\d+(?:,\d*)?})/,(0,oo.default)(t).call(t,e))}i(by0,"isQuantifierNext");function Q7(t,e){return cye.call(t)==="[object ".concat(e,"]")}i(Q7,"isType");function fye(t){for(;t.length<4;)t="0".concat(t);return t}i(fye,"pad4");function fy0(t,e){if(Nm(e)!==e)throw new SyntaxError("Invalid duplicate regex flag ".concat(e));t=b1.replace.call(t,/^\(\?([\w$]+)\)/,function(s,a){if(b1.test.call(/[gy]/,a))throw new SyntaxError("Cannot use flag g or y in mode modifier ".concat(s));return e=Nm(e+a),""});var r=wm(e),n;try{for(r.s();!(n=r.n()).done;){var o=n.value;if(!pye[o])throw new SyntaxError("Unknown regex flag ".concat(o))}}catch(s){r.e(s)}finally{r.f()}return{pattern:t,flags:e}}i(fy0,"prepareFlags");function Mye(t){var e={};return Q7(t,"String")?((0,T7.default)(J).call(J,t,/[^\s,]+/,function(r){e[r]=!0}),e):t}i(Mye,"prepareOptions");function oye(t){if(!/^[\w$]$/.test(t))throw new Error("Flag must be a single character A-Za-z0-9_$");pye[t]=!0}i(oye,"registerFlag");function My0(t,e,r,n,o){for(var s=x7.length,a=t[r],c=null,u,p;s--;)if(p=x7[s],!(p.leadChar&&p.leadChar!==a||p.scope!==n&&p.scope!=="all"||p.flag&&!(0,rA.default)(e).call(e,p.flag))&&(u=J.exec(t,p.regex,r,"sticky"),u)){c={matchLength:u[0].length,output:p.handler.call(o,u,n,e),reparse:p.reparse};break}return c}i(My0,"runTokens");function hye(t){tA.astral=t}i(hye,"setAstral");function mye(t){tA.namespacing=t}i(mye,"setNamespacing");f Line truncated
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var s=!0,a=!1,c;return{s:i(function(){r=(0,jy0.default)(t)},"s"),n:i(function(){var p=r.next();return s=p.done,p},"n"),e:i(function(p){a=!0,c=p},"e"),f:i(function(){try{!s&&r.return!=null&&r.return()}finally{if(a)throw c}},"f")}}i(s40,"_createForOfIteratorHelper");function i40(t,e){var r;if(t){if(typeof t=="string")return r4e(t,e);var n=(0,r40.default)(r=Object.prototype.toString.call(t)).call(r,8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return(0,t40.default)(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return r4e(t,e)}}i(i40,"_unsupportedIterableToArray");function r4e(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}i(r4e,"_arrayLikeToArray");var a40=i(function(e){var r={},n=e._dec,o=e._hex,s=e._pad4;function a(b){return b.replace(/[- _]+/g,"").toLowerCase()}i(a,"normalize");function c(b){var M=/^\\[xu](.+)/.exec(b);return M?n(M[1]):b.charCodeAt(b[0]==="\\"?1:0)}i(c,"charCode");function u(b){var M="",z=-1;return(0,o40.default)(e).call(e,b,/(\\x..|\\u....|\\?[\s\S])(?:-(\\x..|\\u....|\\?[\s\S]))?/,function(O){var y=c(O[1]);y>z+1&&(M+="\\u".concat(s(o(z+1))),y>z+2&&(M+="-\\u".concat(s(o(y-1))))),z=c(O[2]||O[1])}),z<65535&&(M+="\\u".concat(s(o(z+1))),z<65534&&(M+="-\\uFFFF")),M}i(u,"invertBmp");function p(b){var M="b!";return r[b][M]||(r[b][M]=u(r[b].bmp))}i(p,"cacheInvertedBmp");function A(b,M){var z=r[b],O="";if(z.bmp&&!z.isBmpLast){var y;O=(0,U7.default)(y="[".concat(z.bmp,"]")).call(y,z.astral?"|":"")}if(z.astral&&(O+=z.astral),z.isBmpLast&&z.bmp){var E;O+=(0,U7.default)(E="".concat(z.astral?"|":"","[")).call(E,z.bmp,"]")}return M?"(?:(?!".concat(O,")(?:[\uD800-\uDBFF][\uDC00-\uDFFF]|[\0-\uFFFF]))"):"(?:".concat(O,")")}i(A,"buildAstral");function l(b,M){var z=M?"a!":"a=";return r[b][z]||(r[b][z]=A(b,M))}i(l,"cacheAstral"),e.addToken(/\\([pP])(?:{(\^?)([^}]*)}|([A-Za-z]))/,function(b,M,z){var O="Invalid double negation ",y="Unknown Unicode token ",E="Unicode token missing data ",B="Astral mode required for Unicode token ",q="Astral mode does not support Unicode tokens within character classes",D=b[1]==="P"||!!b[2],W=(0,n40.default)(z).call(z,"A"),x=a(b[4]||b[3]),L=r[x];if(b[1]==="P"&&b[2])throw new SyntaxError(O+b[0]);if(!r.hasOwnProperty(x))throw new SyntaxError(y+b[0]);if(L.inverseOf){if(x=a(L.inverseOf),!r.hasOwnProperty(x)){var Y;throw new ReferenceError((0,U7.default)(Y="".concat(E+b[0]," -> ")).call(Y,L.inverseOf))}L=r[x],D=!D}if(!(L.bmp||W))throw new SyntaxError(B+b[0]);if(W){if(M==="class")throw new SyntaxError(q);return l(x,D)}return M==="class"?D?p(x):L.bmp:"".concat((D?"[^":"[")+L.bmp,"]")},{scope:"all",optionalFlags:"A",leadChar:"\\"}),e.addUnicodeData=function(b){var M="Unicode token requires name",z="Unicode token has no character data ",O=s40(b),y;try{for(O.s();!(y=O.n()).done;){var E=y.value;if(!E.name)throw new Error(M);if(!(E.inverseOf||E.bmp||E.astral))throw new Error(z+E.name);r[a(E.name)]=E,E.alias&&(r[a(E.alias)]=E)}}catch(B){O.e(B)}finally{O.f()}e.cache.flush("patterns")},e._getUnicodeProperty=function(b){var M=a(b);return r[M]}},"_default");vm.default=a40;n4e.exports=vm.default});var i4e=h((xM1,s4e)=>{s4e.exports=[{name:"InAdlam",astral:"\uD83A[\uDD00-\uDD5F]"},{name:"InAegean_Numbers",astral:"\uD800[\uDD00-\uDD3F]"},{name:"InAhom",astral:"\uD805[\uDF00-\uDF3F]"},{name:"InAlchemical_Symbols",astral:"\uD83D[\uDF00-\uDF7F]"},{name:"InAlphabetic_Presentation_Forms",bmp:"\uFB00-\uFB4F"},{name:"InAnatolian_Hieroglyphs",astral:"\uD811[\uDC00-\uDE7F]"},{name:"InAncient_Greek_Musical_Notation",astral:"\uD834[\uDE00-\uDE4F]"},{name:"InAncient_Greek_Numbers",astral:"\uD800[\uDD40-\uDD8F]"},{name:"InAncient_Symbols",astral:"\uD800[\uDD90-\uDDCF]"},{name:"InArabic",bmp:"\u0600-\u06FF"},{name:"InArabic_Extended_A",bmp:"\u08A0-\u08FF"},{name:"InArabic_Mathematical_Alphabetic_Symbols",astral:"\uD83B[\uDE00-\uDEFF]"},{name:"InArabic_Presentation_Forms_A",bmp:"\uFB50-\uFDFF"},{name:"InArabic_Presentation_Forms_B",bmp:"\uFE70-\uFEFF"},{name:"InArabic_Supplement",bmp:"\u0750-\u077F"},{name:"InArmenian",bmp:"\u0530-\u058F"},{name:"InArrows",bmp:"\u2190-\u21FF"},{name:"InAvestan",astral:"\uD802[\uDF00-\uDF3F]"},{name:"InBalinese",bmp:"\u1B00-\u1B7F"},{name:"InBamum",bmp:"\uA6A0-\uA6FF"},{name:"InBamum_Supplement",astral:"\uD81A[\uDC00-\uDE3F]"},{name:"InBasic_Latin",bmp:"\0-\x7F"},{name:"InBassa_Vah",astral:"\uD81A[\uDED0-\uDEFF]"},{name:"InBatak",bmp:"\u1BC0-\u1BFF"},{name:"InBengali",bmp:"\u0980-\u09FF"},{name:"InBhaiksuki",astral:"\uD807[\uDC00-\uDC6F]"},{name:"InBlock_Elements",bmp:"\u2580-\u259F"},{name:"InBopomofo",bmp:"\u3100-\u312F"},{name:"InBopomofo_Extended",bmp:"\u31A0-\u31BF"},{name:"InBox_Drawing",bmp:"\u2500-\u257F"},{name:"InBrahmi",astral:"\uD804[\uDC00-\uDC7F]"},{name:"InBraille_Patterns",bmp:"\u2800-\u28FF"},{name:"InBuginese",bmp:"\u1A00-\u1A1F"},{name:"InBuhid",bmp:"\u1740-\u175F"},{nam Line truncated
Support boolean input list: \`true | True | TRUE | false | False | FALSE\``)}i(Jj,"getBooleanInput");function YN(t,e){if(process.env.GITHUB_OUTPUT||"")return Xd("OUTPUT",bz(t,e));process.stdout.write(VN.EOL),Uo("set-output",{name:t},ko(e))}i(YN,"setOutput");function $j(t){process.exitCode=XN.Failure,Al(t)}i($j,"setFailed");function xi(){return process.env.RUNNER_DEBUG==="1"}i(xi,"isDebug");function N(t){Uo("debug",{},t)}i(N,"debug");function Al(t,e={}){Uo("error",eI(e),t instanceof Error?t.toString():t)}i(Al,"error");function r0(t,e={}){Uo("warning",eI(e),t instanceof Error?t.toString():t)}i(r0,"warning");function S(t){process.stdout.write(t+VN.EOL)}i(S,"info");function Iu(t){rI("group",t)}i(Iu,"startGroup");function Ru(){rI("endgroup")}i(Ru,"endGroup");function ct(t,e){return R8e(this,void 0,void 0,function*(){Iu(t);let r;try{r=yield e()}finally{Ru()}return r})}i(ct,"group");function hO(t,e){if(process.env.GITHUB_STATE||"")return Xd("STATE",bz(t,e));Uo("save-state",{name:t},ko(e))}i(hO,"saveState");function jj(t){return process.env[`STATE_${t}`]||""}i(jj,"getState");var YM=w(require("fs"),1),aL=w(require("os"),1),cL=w(require("path"),1);var Zj=w(require("os"),1);function rf(t){return t==null?"":typeof t=="string"||t instanceof String?t:JSON.stringify(t)}i(rf,"toCommandValue");function eK(t,e,r){let n=new JN(t,e,r);process.stdout.write(n.toString()+Zj.EOL)}i(eK,"issueCommand");var Kj="::",JN=class{static{i(this,"Command")}constructor(e,r,n){e||(e="missing.command"),this.command=e,this.properties=r,this.message=n}toString(){let e=Kj+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let r=!0;for(let n in this.properties)if(this.properties.hasOwnProperty(n)){let o=this.properties[n];o&&(r?r=!1:e+=",",e+=`${n}=${w8e(o)}`)}}return e+=`${Kj}${N8e(this.message)}`,e}};function N8e(t){return rf(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}i(N8e,"escapeData");function w8e(t){return rf(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}i(w8e,"escapeProperty");var oK=w(require("os"),1);var rK=require("os"),nf=require("fs");var $N=function(t,e,r,n){function o(s){return s instanceof r?s:new r(function(a){a(s)})}return i(o,"adopt"),new(r||(r=Promise))(function(s,a){function c(A){try{p(n.next(A))}catch(l){a(l)}}i(c,"fulfilled");function u(A){try{p(n.throw(A))}catch(l){a(l)}}i(u,"rejected");function p(A){A.done?s(A.value):o(A.value).then(c,u)}i(p,"step"),p((n=n.apply(t,e||[])).next())})},{access:S8e,appendFile:F8e,writeFile:W8e}=nf.promises,tK="GITHUB_STEP_SUMMARY";var jN=class{static{i(this,"Summary")}constructor(){this._buffer=""}filePath(){return $N(this,void 0,void 0,function*(){if(this._filePath)return this._filePath;let e=process.env[tK];if(!e)throw new Error(`Unable to find environment variable for $${tK}. Check if your runtime environment supports job summaries.`);try{yield S8e(e,nf.constants.R_OK|nf.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,n={}){let o=Object.entries(n).map(([s,a])=>` ${s}="${a}"`).join("");return r?`<${e}${o}>${r}</${e}>`:`<${e}${o}>`}write(e){return $N(this,void 0,void 0,function*(){let r=!!e?.overwrite,n=yield this.filePath();return yield(r?W8e:F8e)(n,this._buffer,{encoding:"utf8"}),this.emptyBuffer()})}clear(){return $N(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(rK.EOL)}addCodeBlock(e,r){let n=Object.assign({},r&&{lang:r}),o=this.wrap("pre",this.wrap("code",e),n);return this.addRaw(o).addEOL()}addList(e,r=!1){let n=r?"ol":"ul",o=e.map(a=>this.wrap("li",a)).join(""),s=this.wrap(n,o);return this.addRaw(s).addEOL()}addTable(e){let r=e.map(o=>{let s=o.map(a=>{if(typeof a=="string")return this.wrap("td",a);let{header:c,data:u,colspan:p,rowspan:A}=a,l=c?"th":"td",b=Object.assign(Object.assign({},p&&{colspan:p}),A&&{rowspan:A});return this.wrap(l,u,b)}).join("");return this.wrap("tr",s)}).join(""),n=this.wrap("table",r);return this.addRaw(n).addEOL()}addDetails(e,r){let n=this.wrap("details",this.wrap("summary",e)+r);return this.addRaw(n).addEOL()}addImage(e,r,n){let{width:o,height:s}=n||{},a=Object.assign(Object.assign({},o&&{width:o}),s&&{height:s}),c=this.wrap("img",null,Object.assign({src:e,alt:r},a));return this.addRaw(c).addEOL()}addHeading(e,r){let n=`h${r}`,o=["h1","h2","h3","h4","h5","h6"].includes(n)?n:"h1",s=this.wrap(o,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 n=Object.assign({},r&&{cite:r}),o=this.wrap("blockquote",e,n);return this.addRaw(o).addEOL()}addLinLine truncated
`),e=e.replace(/\r/g,`
`));let o=e.split(`
`).map(s=>s.trim());for(let s of o)!s||s.startsWith("#")||n.patterns.push(new mf(s));return n.searchPaths.push(...Dw(n.patterns)),n})}static stat(e,r,n){return Ww(this,void 0,void 0,function*(){let o;if(r.followSymbolicLinks)try{o=yield ml.promises.stat(e.path)}catch(s){if(s.code==="ENOENT"){if(r.omitBrokenSymbolicLinks){En(`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 o=yield ml.promises.lstat(e.path);if(o.isDirectory()&&r.followSymbolicLinks){let s=yield ml.promises.realpath(e.path);for(;n.length>=e.level;)n.pop();if(n.some(a=>a===s)){En(`Symlink cycle detected for path '${e.path}' and realpath '${s}'`);return}n.push(s)}return o})}};var b7e=function(t,e,r,n){function o(s){return s instanceof r?s:new r(function(a){a(s)})}return i(o,"adopt"),new(r||(r=Promise))(function(s,a){function c(A){try{p(n.next(A))}catch(l){a(l)}}i(c,"fulfilled");function u(A){try{p(n.throw(A))}catch(l){a(l)}}i(u,"rejected");function p(A){A.done?s(A.value):o(A.value).then(c,u)}i(p,"step"),p((n=n.apply(t,e||[])).next())})};function xee(t,e){return b7e(this,void 0,void 0,function*(){return yield xO.create(t,e)})}i(xee,"create");var KO=w(require("crypto"),1),El=w(require("fs"),1),Fu=w(require("path"),1),I1e=w(q1e(),1),R1e=w(require("util"),1);var Bf;(function(t){t.Gzip="cache.tgz",t.Zstd="cache.tzst"})(Bf||(Bf={}));var Lt;(function(t){t.Gzip="gzip",t.ZstdWithoutLong="zstd-without-long",t.Zstd="zstd"})(Lt||(Lt={}));var Ur;(function(t){t.GNU="gnu",t.BSD="bsd"})(Ur||(Ur={}));var JO=2,$O=5e3,t6=5e3,r6=`${process.env.PROGRAMFILES}\\Git\\usr\\bin\\tar.exe`,D1e=`${process.env.SYSTEMDRIVE}\\Windows\\System32\\tar.exe`,qf="cache.tar",n6="manifest.txt",rF0=10*Math.pow(1024,3),jO="cache read denied:";var Ol=function(t,e,r,n){function o(s){return s instanceof r?s:new r(function(a){a(s)})}return i(o,"adopt"),new(r||(r=Promise))(function(s,a){function c(A){try{p(n.next(A))}catch(l){a(l)}}i(c,"fulfilled");function u(A){try{p(n.throw(A))}catch(l){a(l)}}i(u,"rejected");function p(A){A.done?s(A.value):o(A.value).then(c,u)}i(p,"step"),p((n=n.apply(t,e||[])).next())})},OGe=function(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],r;return e?e.call(t):(t=typeof __values=="function"?__values(t):t[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(s){r[s]=t[s]&&function(a){return new Promise(function(c,u){a=t[s](a),o(c,u,a.done,a.value)})}}function o(s,a,c,u){Promise.resolve(u).then(function(p){s({value:p,done:c})},a)}},EGe="1.0";function Df(){return Ol(this,void 0,void 0,function*(){let t=process.platform==="win32",e=process.env.RUNNER_TEMP||"";if(!e){let n;t?n=process.env.USERPROFILE||"C:\\":process.platform==="darwin"?n="/Users":n="/home",e=Fu.join(n,"actions","temp")}let r=Fu.join(e,KO.randomUUID());return yield Ti(r),r})}i(Df,"createTempDirectory");function ss(t){return El.statSync(t).size}i(ss,"getArchiveFileSizeInBytes");function o6(t){return Ol(this,void 0,void 0,function*(){var e,r,n,o,s;let a=[],c=(s=process.env.GITHUB_WORKSPACE)!==null&&s!==void 0?s:process.cwd(),u=yield xee(t.join(`
`),{implicitDescendants:!1});try{for(var p=!0,A=OGe(u.globGenerator()),l;l=yield A.next(),e=l.done,!e;p=!0){o=l.value,p=!1;let M=Fu.relative(c,o).replace(new RegExp(`\\${Fu.sep}`,"g"),"/");N(`Matched: ${M}`),M===""?a.push("."):a.push(`${M}`)}}catch(b){r={error:b}}finally{try{!p&&!e&&(n=A.return)&&(yield n.call(A))}finally{if(r)throw r.error}}return a})}i(o6,"resolvePaths");function If(t){return Ol(this,void 0,void 0,function*(){return R1e.promisify(El.unlink)(t)})}i(If,"unlinkFile");function N1e(t){return Ol(this,arguments,void 0,function*(e,r=[]){let n="";r.push("--version"),N(`Checking ${e} ${r.join(" ")}`);try{yield _r(`${e}`,r,{ignoreReturnCode:!0,silent:!0,listeners:{stdout:i(o=>n+=o.toString(),"stdout"),stderr:i(o=>n+=o.toString(),"stderr")}})}catch(o){N(o.message)}return n=n.trim(),N(n),n})}i(N1e,"getVersion");function Rf(){return Ol(this,void 0,void 0,function*(){let t=yield N1e("zstd",["--quiet"]),e=I1e.clean(t);return N(`zstd version: ${e}`),t===""?Lt.Gzip:Lt.ZstdWithoutLong})}i(Rf,"getCompressionMethod");function nc(t){return t===Lt.Gzip?Bf.Gzip:Bf.Zstd}i(nc,"getCacheFileName");function w1e(){return Ol(this,void 0,void 0,function*(){return El.existsSync(r6)?r6:(yield N1e("tar")).toLowerCase().includes("gnu tar")?it("tar"):""})}i(w1e,"getGnuTarPathOnWindows");function s6(t,e){if(e===void 0)throw Error(`Expected ${t} but value was undefiend`);return e}i(s6,"assertDefined");function Cl(t,e,r=!1){let n=t.slice();return e&&n.push(e),process.platform==="win32"&&!r&&n.push("windows-only"),n.push(EGe),KO.createHash("sha256").update(n.join("|")).digest("hex")}i(Cl,"getCacheVersion");function S1e(){let t=process.env.ACTIONS_RUNTIME_TOKEN;if(!t)throw new Error("Unable to get the ACTIONS_RUNTIME_TOKEN env variable");return t}i(S1e,"getRuntimeToken");var wf=w(require("http"),1),c6=w(require("https"),1);function i6(t){let e=t.protocol==="https:";if(CGe(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 e3(r)}catch{if(!r.startsWith("http://")&&!r.startsWith("https://"))return new e3(`http://${r}`)}else return}i(i6,"getProxyUrl");function CGe(t){if(!t.hostname)return!1;let e=t.hostname;if(yGe(e))return!0;let r=process.env.no_proxy||process.env.NO_PROXY||"";if(!r)return!1;let n;t.port?n=Number(t.port):t.protocol==="http:"?n=80:t.protocol==="https:"&&(n=443);let o=[t.hostname.toUpperCase()];typeof n=="number"&&o.push(`${o[0]}:${n}`);for(let s of r.split(",").map(a=>a.trim().toUpperCase()).filter(a=>a))if(s==="*"||o.some(a=>a===s||a.endsWith(`.${s}`)||s.startsWith(".")&&a.endsWith(`${s}`)))return!0;return!1}i(CGe,"checkBypass");function yGe(t){let e=t.toLowerCase();return e==="localhost"||e.startsWith("127.")||e.startsWith("[::1]")||e.startsWith("[0:0:0:0:0:0:0:1]")}i(yGe,"isLoopbackAddress");var e3=class extends URL{static{i(this,"DecodedURL")}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 oc=w(Yd(),1),F1e=w(ul(),1);var z1=function(t,e,r,n){function o(s){return s instanceof r?s:new r(function(a){a(s)})}return i(o,"adopt"),new(r||(r=Promise))(function(s,a){function c(A){try{p(n.next(A))}catch(l){a(l)}}i(c,"fulfilled");function u(A){try{p(n.throw(A))}catch(l){a(l)}}i(u,"rejected");function p(A){A.done?s(A.value):o(A.value).then(c,u)}i(p,"step"),p((n=n.apply(t,e||[])).next())})},n1;(function(t){t[t.OK=200]="OK",t[t.MultipleChoices=300]="MultipleChoices",t[t.MovedPermanently=301]="MovedPermanently",t[t.ResourceMoved=302]="ResourceMoved",t[t.SeeOther=303]="SeeOther",t[t.NotModified=304]="NotModified",t[t.UseProxy=305]="UseProxy",t[t.SwitchProxy=306]="SwitchProxy",t[t.TemporaryRedirect=307]="TemporaryRedirect",t[t.PermanentRedirect=308]="PermanentRedirect",t[t.BadRequest=400]="BadRequest",t[t.Unauthorized=401]="Unauthorized",t[t.PaymentRequired=402]="PaymentRequired",t[t.Forbidden=403]="Forbidden",t[t.NotFound=404]="NotFound",t[t.MethodNotAllowed=405]="MethodNotAllowed",t[t.NotAcceptable=406]="NotAcceptable",t[t.ProxyAuthenticationRequired=407]="ProxyAuthenticationRequired",t[t.RequestTimeout=408]="RequestTimeout",t[t.Conflict=409]="Conflict",t[t.Gone=410]="Gone",t[t.TooManyRequests=429]="TooManyRequests",t[t.InternalServerError=500]="InternalServerError",t[t.NotImplemented=501]="NotImplemented",t[t.BadGateway=502]="BadGateway",t[t.ServiceUnavailable=503]="ServiceUnavailable",t[t.GatewayTimeout=504]="GatewayTimeout"})(n1||(n1={}));var Qt;(function(t){t.Accept="accept",t.ContentType="content-type"})(Qt||(Qt={}));var Pi;(function(t){t.ApplicationJson="application/json"})(Pi||(Pi={}));var qGe=[n1.MovedPermanently,n1.ResourceMoved,n1.SeeOther,n1.TemporaryRedirect,n1.PermanentRedirect],DGe=[n1.BadGateway,n1.ServiceUnavailable,n1.GatewayTimeout],IGe=["OPTIONS","GET","DELETE","HEAD"],RGe=10,NGe=5,is=class t extends Error{static{i(this,"HttpClientError")}const Line truncated
${QGe.sanitize({...this,request:{...this.request,agent:n},response:this.response})}`,"value"),enumerable:!1}),Object.setPrototypeOf(this,t.prototype)}};function i3(t){return t instanceof _t?!0:xu(t)&&t.name==="RestError"}i(i3,"isRestError");function sr(t,e){return Buffer.from(t,e)}i(sr,"stringToUint8Array");var a3=w(require("node:http"),1),c3=w(require("node:https"),1),m6=w(require("node:zlib"),1),j1e=require("node:stream");var Bn=Sf("ts-http-runtime");var _Ge={};function Ff(t){return t&&typeof t.pipe=="function"}i(Ff,"isReadableStream");function $1e(t){return t.readable===!1?Promise.resolve():new Promise(e=>{let r=i(()=>{e(),t.removeListener("close",r),t.removeListener("end",r),t.removeListener("error",r)},"handler");t.on("close",r),t.on("end",r),t.on("error",r)})}i($1e,"isStreamComplete");function K1e(t){return t&&typeof t.byteLength=="number"}i(K1e,"isArrayBuffer");var u3=class extends j1e.Transform{static{i(this,"ReportTransform")}loadedBytes=0;progressCallback;_transform(e,r,n){this.push(e),this.loadedBytes+=e.length;try{this.progressCallback({loadedBytes:this.loadedBytes}),n()}catch(o){n(o)}}constructor(e){super(),this.progressCallback=e}},z6=class{static{i(this,"NodeHttpClient")}cachedHttpAgent;cachedHttpsAgents=new WeakMap;async sendRequest(e){let r=new AbortController,n;if(e.abortSignal){if(e.abortSignal.aborted)throw new as("The operation was aborted. Request has already been canceled.");n=i(p=>{p.type==="abort"&&r.abort()},"abortListener"),e.abortSignal.addEventListener("abort",n)}let o;e.timeout>0&&(o=setTimeout(()=>{let p=new zo;Bn.info(`request to '${p.sanitizeUrl(e.url)}' timed out. canceling...`),r.abort()},e.timeout));let s=e.headers.get("Accept-Encoding"),a=s?.includes("gzip")||s?.includes("deflate"),c=typeof e.body=="function"?e.body():e.body;if(c&&!e.headers.has("Content-Length")){let p=GGe(c);p!==null&&e.headers.set("Content-Length",p)}let u;try{if(c&&e.onUploadProgress){let z=e.onUploadProgress,O=new u3(z);O.on("error",y=>{Bn.error("Error in upload progress",y)}),Ff(c)?c.pipe(O):O.end(c),c=O}let p=await this.makeRequest(e,r,c);o!==void 0&&clearTimeout(o);let A=PGe(p),b={status:p.statusCode??0,headers:A,request:e};if(e.method==="HEAD")return p.resume(),b;u=a?kGe(p,A):p;let M=e.onDownloadProgress;if(M){let z=new u3(M);z.on("error",O=>{Bn.error("Error in download progress",O)}),u.pipe(z),u=z}return e.streamResponseStatusCodes?.has(Number.POSITIVE_INFINITY)||e.streamResponseStatusCodes?.has(b.status)?b.readableStreamBody=u:b.bodyAsText=await UGe(u),b}finally{if(e.abortSignal&&n){let p=Promise.resolve();Ff(c)&&(p=$1e(c));let A=Promise.resolve();Ff(u)&&(A=$1e(u)),Promise.all([p,A]).then(()=>{n&&e.abortSignal?.removeEventListener("abort",n)}).catch(l=>{Bn.warning("Error when cleaning up abortListener on httpRequest",l)})}}}makeRequest(e,r,n){let o=new URL(e.url),s=o.protocol!=="https:";if(s&&!e.allowInsecureConnection)throw new Error(`Cannot connect to ${e.url} while allowInsecureConnection is false.`);let c={agent:e.agent??this.getOrCreateAgent(e,s),hostname:o.hostname,path:`${o.pathname}${o.search}`,port:o.port,method:e.method,headers:e.headers.toJSON({preserveCase:!0}),...e.requestOverrides};return new Promise((u,p)=>{let A=s?a3.default.request(c,u):c3.default.request(c,u);A.once("error",l=>{p(new _t(l.message,{code:l.code??_t.REQUEST_SEND_ERROR,request:e}))}),r.signal.addEventListener("abort",()=>{let l=new as("The operation was aborted. Rejecting from abort signal callback while making request.");A.destroy(l),p(l)}),n&&Ff(n)?n.pipe(A):n?typeof n=="string"||Buffer.isBuffer(n)?A.end(n):K1e(n)?A.end(ArrayBuffer.isView(n)?Buffer.from(n.buffer):Buffer.from(n)):(Bn.error("Unrecognized body type",n),p(new _t("Unrecognized body type"))):A.end()})}getOrCreateAgent(e,r){let n=e.disableKeepAlive;if(r)return n?a3.default.globalAgent:(this.cachedHttpAgent||(this.cachedHttpAgent=new a3.default.Agent({keepAlive:!0})),this.cachedHttpAgent);{if(n&&!e.tlsSettings)return c3.default.globalAgent;let o=e.tlsSettings??_Ge,s=this.cachedHttpsAgents.get(o);return s&&s.options.keepAlive===!n||(Bn.info("No cached TLS Agent exist, creating a new Agent"),s=new c3.default.Agent({keepAlive:!n,...o}),this.cachedHttpsAgents.set(o,s)),s}}};function PGe(t){let e=Gr();for(let r of Object.keys(t.headers)){let n=t.headers[r];Array.isArray(n)?n.length>0&&e.set(r,n[0]):n&&e.set(r,n)}return e}i(PGe,"getResponseHeaders");function kGe(t,e){let r=e.get("Content-Encoding");if(r==="gzip"){let n=m6.default.createGunzip();return t.pipe(n),n}else if(r==="deflate"){let n=m6.default.createInflate();return t.pipe(n),n}return t}i(kGe,"getDecodedResponseStream");function UGe(t){return new Promise((e,r)=>{let n=[];t.on("data",o=>{Buffer.isBuffer(o)?n.push(o):n.push(Buffer.from(o))}),t.on("end",()=>{e(Buffer.concat(n).toString("utf8"))}),t.on("error",o=>{o&&o?.name==="AbortError"?r(o):r(new _t(`Error reading response as text: ${o.message}`,{code:_t.PARSE_ERROR}))})})}i(UGe,"streamToText");function GGe(t){return t?Buffer.isBuffer(t)?t.length: Line truncated
`;return e}i(OXe,"encodeHeaders");function EXe(t){return t instanceof Uint8Array?t.byteLength:F3(t)?t.size===-1?void 0:t.size:void 0}i(EXe,"getLength");function CXe(t){let e=0;for(let r of t){let n=EXe(r);if(n===void 0)return;e+=n}return e}i(CXe,"getTotalLength");async function yXe(t,e,r){let n=[sr(`--${r}`,"utf-8"),...e.flatMap(s=>[sr(`\r
`,"utf-8"),sr(OXe(s.headers),"utf-8"),sr(`\r
`,"utf-8"),s.body,sr(`\r
--${r}`,"utf-8")]),sr(`--\r
`).map(s=>s.trim());for(let s of o)!s||s.startsWith("#")||n.patterns.push(new mf(s));return n.searchPaths.push(...ww(n.patterns)),n})}static stat(e,r,n){return Lw(this,void 0,void 0,function*(){let o;if(r.followSymbolicLinks)try{o=yield hl.promises.stat(e.path)}catch(s){if(s.code==="ENOENT"){if(r.omitBrokenSymbolicLinks){yn(`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 o=yield hl.promises.lstat(e.path);if(o.isDirectory()&&r.followSymbolicLinks){let s=yield hl.promises.realpath(e.path);for(;n.length>=e.level;)n.pop();if(n.some(a=>a===s)){yn(`Symlink cycle detected for path '${e.path}' and realpath '${s}'`);return}n.push(s)}return o})}};var C7e=function(t,e,r,n){function o(s){return s instanceof r?s:new r(function(a){a(s)})}return i(o,"adopt"),new(r||(r=Promise))(function(s,a){function c(A){try{p(n.next(A))}catch(l){a(l)}}i(c,"fulfilled");function u(A){try{p(n.throw(A))}catch(l){a(l)}}i(u,"rejected");function p(A){A.done?s(A.value):o(A.value).then(c,u)}i(p,"step"),p((n=n.apply(t,e||[])).next())})};function vee(t,e){return C7e(this,void 0,void 0,function*(){return yield vO.create(t,e)})}i(vee,"create");var e3=w(require("crypto"),1),Ol=w(require("fs"),1),Fu=w(require("path"),1),N1e=w(I1e(),1),w1e=w(require("util"),1);var Bf;(function(t){t.Gzip="cache.tgz",t.Zstd="cache.tzst"})(Bf||(Bf={}));var Qt;(function(t){t.Gzip="gzip",t.ZstdWithoutLong="zstd-without-long",t.Zstd="zstd"})(Qt||(Qt={}));var Hr;(function(t){t.GNU="gnu",t.BSD="bsd"})(Hr||(Hr={}));var jO=2,KO=5e3,s6=5e3,i6=`${process.env.PROGRAMFILES}\\Git\\usr\\bin\\tar.exe`,R1e=`${process.env.SYSTEMDRIVE}\\Windows\\System32\\tar.exe`,qf="cache.tar",a6="manifest.txt",AF0=10*Math.pow(1024,3),ZO="cache read denied:";var gl=function(t,e,r,n){function o(s){return s instanceof r?s:new r(function(a){a(s)})}return i(o,"adopt"),new(r||(r=Promise))(function(s,a){function c(A){try{p(n.next(A))}catch(l){a(l)}}i(c,"fulfilled");function u(A){try{p(n.throw(A))}catch(l){a(l)}}i(u,"rejected");function p(A){A.done?s(A.value):o(A.value).then(c,u)}i(p,"step"),p((n=n.apply(t,e||[])).next())})},NGe=function(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],r;return e?e.call(t):(t=typeof __values=="function"?__values(t):t[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(s){r[s]=t[s]&&function(a){return new Promise(function(c,u){a=t[s](a),o(c,u,a.done,a.value)})}}function o(s,a,c,u){Promise.resolve(u).then(function(p){s({value:p,done:c})},a)}},wGe="1.0";function Df(){return gl(this,void 0,void 0,function*(){let t=process.platform==="win32",e=process.env.RUNNER_TEMP||"";if(!e){let n;t?n=process.env.USERPROFILE||"C:\\":process.platform==="darwin"?n="/Users":n="/home",e=Fu.join(n,"actions","temp")}let r=Fu.join(e,e3.randomUUID());return yield Wi(r),r})}i(Df,"createTempDirectory");function is(t){return Ol.statSync(t).size}i(is,"getArchiveFileSizeInBytes");function c6(t){return gl(this,void 0,void 0,function*(){var e,r,n,o,s;let a=[],c=(s=process.env.GITHUB_WORKSPACE)!==null&&s!==void 0?s:process.cwd(),u=yield vee(t.join(`
`),{implicitDescendants:!1});try{for(var p=!0,A=NGe(u.globGenerator()),l;l=yield A.next(),e=l.done,!e;p=!0){o=l.value,p=!1;let M=Fu.relative(c,o).replace(new RegExp(`\\${Fu.sep}`,"g"),"/");N(`Matched: ${M}`),M===""?a.push("."):a.push(`${M}`)}}catch(b){r={error:b}}finally{try{!p&&!e&&(n=A.return)&&(yield n.call(A))}finally{if(r)throw r.error}}return a})}i(c6,"resolvePaths");function If(t){return gl(this,void 0,void 0,function*(){return w1e.promisify(Ol.unlink)(t)})}i(If,"unlinkFile");function S1e(t){return gl(this,arguments,void 0,function*(e,r=[]){let n="";r.push("--version"),N(`Checking ${e} ${r.join(" ")}`);try{yield kr(`${e}`,r,{ignoreReturnCode:!0,silent:!0,listeners:{stdout:i(o=>n+=o.toString(),"stdout"),stderr:i(o=>n+=o.toString(),"stderr")}})}catch(o){N(o.message)}return n=n.trim(),N(n),n})}i(S1e,"getVersion");function Rf(){return gl(this,void 0,void 0,function*(){let t=yield S1e("zstd",["--quiet"]),e=N1e.clean(t);return N(`zstd version: ${e}`),t===""?Qt.Gzip:Qt.ZstdWithoutLong})}i(Rf,"getCompressionMethod");function tc(t){return t===Qt.Gzip?Bf.Gzip:Bf.Zstd}i(tc,"getCacheFileName");function F1e(){return gl(this,void 0,void 0,function*(){return Ol.existsSync(i6)?i6:(yield S1e("tar")).toLowerCase().includes("gnu tar")?at("tar"):""})}i(F1e,"getGnuTarPathOnWindows");function u6(t,e){if(e===void 0)throw Error(`Expected ${t} but value was undefiend`);return e}i(u6,"assertDefined");function El(t,e,r=!1){let n=t.slice();return e&&n.push(e),process.platform==="win32"&&!r&&n.push("windows-only"),n.push(wGe),e3.createHash("sha256").update(n.join("|")).digest("hex")}i(El,"getCacheVersion");function W1e(){let t=process.env.ACTIONS_RUNTIME_TOKEN;if(!t)throw new Error("Unable to get the ACTIONS_RUNTIME_TOKEN env variable");return t}i(W1e,"getRuntimeToken");var wf=w(require("http"),1),l6=w(require("https"),1);function p6(t){let e=t.protocol==="https:";if(SGe(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 r3(r)}catch{if(!r.startsWith("http://")&&!r.startsWith("https://"))return new r3(`http://${r}`)}else return}i(p6,"getProxyUrl");function SGe(t){if(!t.hostname)return!1;let e=t.hostname;if(FGe(e))return!0;let r=process.env.no_proxy||process.env.NO_PROXY||"";if(!r)return!1;let n;t.port?n=Number(t.port):t.protocol==="http:"?n=80:t.protocol==="https:"&&(n=443);let o=[t.hostname.toUpperCase()];typeof n=="number"&&o.push(`${o[0]}:${n}`);for(let s of r.split(",").map(a=>a.trim().toUpperCase()).filter(a=>a))if(s==="*"||o.some(a=>a===s||a.endsWith(`.${s}`)||s.startsWith(".")&&a.endsWith(`${s}`)))return!0;return!1}i(SGe,"checkBypass");function FGe(t){let e=t.toLowerCase();return e==="localhost"||e.startsWith("127.")||e.startsWith("[::1]")||e.startsWith("[0:0:0:0:0:0:0:1]")}i(FGe,"isLoopbackAddress");var r3=class extends URL{static{i(this,"DecodedURL")}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 rc=w(Vd(),1),x1e=w(cl(),1);var z1=function(t,e,r,n){function o(s){return s instanceof r?s:new r(function(a){a(s)})}return i(o,"adopt"),new(r||(r=Promise))(function(s,a){function c(A){try{p(n.next(A))}catch(l){a(l)}}i(c,"fulfilled");function u(A){try{p(n.throw(A))}catch(l){a(l)}}i(u,"rejected");function p(A){A.done?s(A.value):o(A.value).then(c,u)}i(p,"step"),p((n=n.apply(t,e||[])).next())})},n1;(function(t){t[t.OK=200]="OK",t[t.MultipleChoices=300]="MultipleChoices",t[t.MovedPermanently=301]="MovedPermanently",t[t.ResourceMoved=302]="ResourceMoved",t[t.SeeOther=303]="SeeOther",t[t.NotModified=304]="NotModified",t[t.UseProxy=305]="UseProxy",t[t.SwitchProxy=306]="SwitchProxy",t[t.TemporaryRedirect=307]="TemporaryRedirect",t[t.PermanentRedirect=308]="PermanentRedirect",t[t.BadRequest=400]="BadRequest",t[t.Unauthorized=401]="Unauthorized",t[t.PaymentRequired=402]="PaymentRequired",t[t.Forbidden=403]="Forbidden",t[t.NotFound=404]="NotFound",t[t.MethodNotAllowed=405]="MethodNotAllowed",t[t.NotAcceptable=406]="NotAcceptable",t[t.ProxyAuthenticationRequired=407]="ProxyAuthenticationRequired",t[t.RequestTimeout=408]="RequestTimeout",t[t.Conflict=409]="Conflict",t[t.Gone=410]="Gone",t[t.TooManyRequests=429]="TooManyRequests",t[t.InternalServerError=500]="InternalServerError",t[t.NotImplemented=501]="NotImplemented",t[t.BadGateway=502]="BadGateway",t[t.ServiceUnavailable=503]="ServiceUnavailable",t[t.GatewayTimeout=504]="GatewayTimeout"})(n1||(n1={}));var _t;(function(t){t.Accept="accept",t.ContentType="content-type"})(_t||(_t={}));var Qi;(function(t){t.ApplicationJson="application/json"})(Qi||(Qi={}));var xGe=[n1.MovedPermanently,n1.ResourceMoved,n1.SeeOther,n1.TemporaryRedirect,n1.PermanentRedirect],TGe=[n1.BadGateway,n1.ServiceUnavailable,n1.GatewayTimeout],vGe=["OPTIONS","GET","DELETE","HEAD"],LGe=10,QGe=5,as=class t extends Error{static{i(this,"HttpClientError")}const Line truncated
${YGe.sanitize({...this,request:{...this.request,agent:n},response:this.response})}`,"value"),enumerable:!1}),Object.setPrototypeOf(this,t.prototype)}};function c3(t){return t instanceof Pt?!0:xu(t)&&t.name==="RestError"}i(c3,"isRestError");function ir(t,e){return Buffer.from(t,e)}i(ir,"stringToUint8Array");var u3=w(require("node:http"),1),p3=w(require("node:https"),1),E6=w(require("node:zlib"),1),Z1e=require("node:stream");var Dn=Sf("ts-http-runtime");var JGe={};function Ff(t){return t&&typeof t.pipe=="function"}i(Ff,"isReadableStream");function K1e(t){return t.readable===!1?Promise.resolve():new Promise(e=>{let r=i(()=>{e(),t.removeListener("close",r),t.removeListener("end",r),t.removeListener("error",r)},"handler");t.on("close",r),t.on("end",r),t.on("error",r)})}i(K1e,"isStreamComplete");function ete(t){return t&&typeof t.byteLength=="number"}i(ete,"isArrayBuffer");var A3=class extends Z1e.Transform{static{i(this,"ReportTransform")}loadedBytes=0;progressCallback;_transform(e,r,n){this.push(e),this.loadedBytes+=e.length;try{this.progressCallback({loadedBytes:this.loadedBytes}),n()}catch(o){n(o)}}constructor(e){super(),this.progressCallback=e}},C6=class{static{i(this,"NodeHttpClient")}cachedHttpAgent;cachedHttpsAgents=new WeakMap;async sendRequest(e){let r=new AbortController,n;if(e.abortSignal){if(e.abortSignal.aborted)throw new cs("The operation was aborted. Request has already been canceled.");n=i(p=>{p.type==="abort"&&r.abort()},"abortListener"),e.abortSignal.addEventListener("abort",n)}let o;e.timeout>0&&(o=setTimeout(()=>{let p=new go;Dn.info(`request to '${p.sanitizeUrl(e.url)}' timed out. canceling...`),r.abort()},e.timeout));let s=e.headers.get("Accept-Encoding"),a=s?.includes("gzip")||s?.includes("deflate"),c=typeof e.body=="function"?e.body():e.body;if(c&&!e.headers.has("Content-Length")){let p=ZGe(c);p!==null&&e.headers.set("Content-Length",p)}let u;try{if(c&&e.onUploadProgress){let z=e.onUploadProgress,O=new A3(z);O.on("error",y=>{Dn.error("Error in upload progress",y)}),Ff(c)?c.pipe(O):O.end(c),c=O}let p=await this.makeRequest(e,r,c);o!==void 0&&clearTimeout(o);let A=$Ge(p),b={status:p.statusCode??0,headers:A,request:e};if(e.method==="HEAD")return p.resume(),b;u=a?jGe(p,A):p;let M=e.onDownloadProgress;if(M){let z=new A3(M);z.on("error",O=>{Dn.error("Error in download progress",O)}),u.pipe(z),u=z}return e.streamResponseStatusCodes?.has(Number.POSITIVE_INFINITY)||e.streamResponseStatusCodes?.has(b.status)?b.readableStreamBody=u:b.bodyAsText=await KGe(u),b}finally{if(e.abortSignal&&n){let p=Promise.resolve();Ff(c)&&(p=K1e(c));let A=Promise.resolve();Ff(u)&&(A=K1e(u)),Promise.all([p,A]).then(()=>{n&&e.abortSignal?.removeEventListener("abort",n)}).catch(l=>{Dn.warning("Error when cleaning up abortListener on httpRequest",l)})}}}makeRequest(e,r,n){let o=new URL(e.url),s=o.protocol!=="https:";if(s&&!e.allowInsecureConnection)throw new Error(`Cannot connect to ${e.url} while allowInsecureConnection is false.`);let c={agent:e.agent??this.getOrCreateAgent(e,s),hostname:o.hostname,path:`${o.pathname}${o.search}`,port:o.port,method:e.method,headers:e.headers.toJSON({preserveCase:!0}),...e.requestOverrides};return new Promise((u,p)=>{let A=s?u3.default.request(c,u):p3.default.request(c,u);A.once("error",l=>{p(new Pt(l.message,{code:l.code??Pt.REQUEST_SEND_ERROR,request:e}))}),r.signal.addEventListener("abort",()=>{let l=new cs("The operation was aborted. Rejecting from abort signal callback while making request.");A.destroy(l),p(l)}),n&&Ff(n)?n.pipe(A):n?typeof n=="string"||Buffer.isBuffer(n)?A.end(n):ete(n)?A.end(ArrayBuffer.isView(n)?Buffer.from(n.buffer):Buffer.from(n)):(Dn.error("Unrecognized body type",n),p(new Pt("Unrecognized body type"))):A.end()})}getOrCreateAgent(e,r){let n=e.disableKeepAlive;if(r)return n?u3.default.globalAgent:(this.cachedHttpAgent||(this.cachedHttpAgent=new u3.default.Agent({keepAlive:!0})),this.cachedHttpAgent);{if(n&&!e.tlsSettings)return p3.default.globalAgent;let o=e.tlsSettings??JGe,s=this.cachedHttpsAgents.get(o);return s&&s.options.keepAlive===!n||(Dn.info("No cached TLS Agent exist, creating a new Agent"),s=new p3.default.Agent({keepAlive:!n,...o}),this.cachedHttpsAgents.set(o,s)),s}}};function $Ge(t){let e=Xr();for(let r of Object.keys(t.headers)){let n=t.headers[r];Array.isArray(n)?n.length>0&&e.set(r,n[0]):n&&e.set(r,n)}return e}i($Ge,"getResponseHeaders");function jGe(t,e){let r=e.get("Content-Encoding");if(r==="gzip"){let n=E6.default.createGunzip();return t.pipe(n),n}else if(r==="deflate"){let n=E6.default.createInflate();return t.pipe(n),n}return t}i(jGe,"getDecodedResponseStream");function KGe(t){return new Promise((e,r)=>{let n=[];t.on("data",o=>{Buffer.isBuffer(o)?n.push(o):n.push(Buffer.from(o))}),t.on("end",()=>{e(Buffer.concat(n).toString("utf8"))}),t.on("error",o=>{o&&o?.name==="AbortError"?r(o):r(new Pt(`Error reading response as text: ${o.message}`,{code:Pt.PARSE_ERROR}))})})}i(KGe,"streamToText");function ZGe(t){return t?Buffer.isBuffer(t)?t.length: Line truncated
`;return e}i(NXe,"encodeHeaders");function wXe(t){return t instanceof Uint8Array?t.byteLength:x3(t)?t.size===-1?void 0:t.size:void 0}i(wXe,"getLength");function SXe(t){let e=0;for(let r of t){let n=wXe(r);if(n===void 0)return;e+=n}return e}i(SXe,"getTotalLength");async function FXe(t,e,r){let n=[ir(`--${r}`,"utf-8"),...e.flatMap(s=>[ir(`\r
`,"utf-8"),ir(NXe(s.headers),"utf-8"),ir(`\r
`,"utf-8"),s.body,ir(`\r
--${r}`,"utf-8")]),ir(`--\r
\r
`,"utf-8")],o=CXe(n);o&&t.headers.set("Content-Length",o),t.body=await rre(n)}i(yXe,"buildRequestBody");var Tf="multipartPolicy",BXe=70,qXe=new Set("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'()+,-./:=?");function DXe(t){if(t.length>BXe)throw new Error(`Multipart boundary "${t}" exceeds maximum length of 70 characters`);if(Array.from(t).some(e=>!qXe.has(e)))throw new Error(`Multipart boundary "${t}" contains invalid characters`)}i(DXe,"assertValidBoundary");function x3(){return{name:Tf,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,n=t.headers.get("Content-Type")??"multipart/mixed",o=n.match(/^(multipart\/[^ ;]+)(?:; *boundary=(.+))?$/);if(!o)throw new Error(`Got multipart request body, but content-type header was not multipart: ${n}`);let[,s,a]=o;if(a&&r&&a!==r)throw new Error(`Multipart boundary was specified as ${a} in the header, but got ${r} in the request body`);return r??=a,r?DXe(r):r=gXe(),t.headers.set("Content-Type",`${s}; boundary=${r}`),await yXe(t,t.multipartBody.parts,r),t.multipartBody=void 0,e(t)}}}i(x3,"multipartPolicy");function T3(){return s3()}i(T3,"createEmptyPipeline");var nre=r3({logLevelEnvVarName:"AZURE_LOG_LEVEL",namespace:"azure"}),eL0=nre.logger;function ps(t){return nre.createClientLogger(t)}i(ps,"createClientLogger");var As=ps("core-rest-pipeline");function L6(t={}){return A3({logger:As.info,...t})}i(L6,"logPolicy");var Q6=l3;function _6(t={}){return d3(t)}i(_6,"redirectPolicy");var v3=w(require("node:os"),1),L3=w(require("node:process"),1);function ore(){return"User-Agent"}i(ore,"getHeaderName");async function sre(t){if(L3.default&&L3.default.versions){let e=`${v3.default.type()} ${v3.default.release()}; ${v3.default.arch()}`,r=L3.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})`)}}i(sre,"setPlatformSpecificData");var Q3="1.22.2";function xXe(t){let e=[];for(let[r,n]of t){let o=n?`${r}/${n}`:r;e.push(o)}return e.join(" ")}i(xXe,"getUserAgentString");function ire(){return ore()}i(ire,"getUserAgentHeaderName");async function _3(t){let e=new Map;e.set("core-rest-pipeline",Q3),await sre(e);let r=xXe(e);return t?`${t} ${r}`:r}i(_3,"getUserAgentValue");var are=ire(),cre="userAgentPolicy";function P6(t={}){let e=_3(t.userAgentPrefix);return{name:cre,async sendRequest(r,n){return r.headers.has(are)||r.headers.set(are,await e),n(r)}}}i(P6,"userAgentPolicy");var Yr=class extends Error{static{i(this,"AbortError")}constructor(e){super(e),this.name="AbortError"}};function k6(t,e){let{cleanupBeforeAbort:r,abortSignal:n,abortErrorMsg:o}=e??{};return new Promise((s,a)=>{function c(){a(new Yr(o??"The operation was aborted."))}i(c,"rejectOnAbort");function u(){n?.removeEventListener("abort",p)}i(u,"removeListeners");function p(){r?.(),u(),c()}if(i(p,"onAbort"),n?.aborted)return c();try{t(A=>{u(),s(A)},A=>{u(),a(A)})}catch(A){a(A)}n?.addEventListener("abort",p)})}i(k6,"createAbortablePromise");var _Xe="The delay was aborted.";function vf(t,e){let r,{abortSignal:n,abortErrorMsg:o}=e??{};return k6(s=>{r=setTimeout(s,t)},{cleanupBeforeAbort:i(()=>clearTimeout(r),"cleanupBeforeAbort"),abortSignal:n,abortErrorMsg:o??_Xe})}i(vf,"delay");function ic(t){if(xu(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}`}}i(ic,"getErrorMessage");function ure(t){return xu(t)}i(ure,"isError");function Sl(){return Wu()}i(Sl,"randomUUID");var l0=Lu;var pre=Symbol("rawContent");function G6(t){return typeof t[pre]=="function"}i(G6,"hasRawContent");function Are(t){return G6(t)?t[pre]():t}i(Are,"getRawContent");var P3=Tf;function H6(){let t=x3();return{name:P3,sendRequest:i(async(e,r)=>{if(e.multipartBody)for(let n of e.multipartBody.parts)G6(n.body)&&(n.body=Are(n.body));return t.sendRequest(e,r)},"sendRequest")}}i(H6,"multipartPolicy");var X6=b3;function V6(){return f3()}i(V6,"decompressResponsePolicy");function Y6(t={}){return m3(t)}i(Y6,"defaultRetryPolicy");function J6(){return z3()}i(J6,"formDataPolicy");function ac(t){return F6(t)}i(ac,"getDefaultProxySettings");function $6(t,e){return N3(t,e)}i($6,"proxyPolicy");var lre="setClientRequestIdPolicy";function j6(t="x-ms-client-request-id"){return{name:lre,async sendRequest(e,r){return e.headers.has(t)||e.headers.set(t,e.requestId),r(e)}}}i(j6,"setClientRequestIdPolicy");function K6(t){return w3(t)}i(K6,"agentPolicy");function Z6(t){return S3(t)}i(Z6,"tlsPolicy");var Fl={span:Symbol.for("@azure/core-tracing span"),namespace:Symbol.for("@azure/core-tracing namespace")};function dre(t={}){let e=new eS(t.parentContext);return t.span&&(e=e.setValue(Fl.span,t.span)),t.namespace&&(e=e.setValue(Fl.namespace,t.namespace)),e}i(dre,"createTracingContext");var eS=class t{static{i(this,"TracingContextImpl")}_contextMap;constructor(e){this._contextMap=e i Line truncated
`&&t[s]!=="\r";s++)u+=t[s];if(u=u.trim(),u[u.length-1]==="/"&&(u=u.substring(0,u.length-1),s--),!pYe(u)){let l;return u.trim().length===0?l="Invalid space after '<'.":l="Tag '"+u+"' is an invalid name.",g1("InvalidTag",l,Pt(t,s))}let p=sYe(t,s);if(p===!1)return g1("InvalidAttr","Attributes for '"+u+"' have open quote.",Pt(t,s));let A=p.value;if(s=p.index,A[A.length-1]==="/"){let l=s-A.length;A=A.substring(0,A.length-1);let b=$re(A,e);if(b===!0)n=!0;else return g1(b.err.code,b.err.msg,Pt(t,l+b.err.line))}else if(c)if(p.tagClosed){if(A.trim().length>0)return g1("InvalidTag","Closing tag '"+u+"' can't have attributes or invalid starting.",Pt(t,a));if(r.length===0)return g1("InvalidTag","Closing tag '"+u+"' has not been opened.",Pt(t,a));{let l=r.pop();if(u!==l.tagName){let b=Pt(t,l.tagStartPos);return g1("InvalidTag","Expected closing tag '"+l.tagName+"' (opened in line "+b.line+", col "+b.col+") instead of closing tag '"+u+"'.",Pt(t,a))}r.length==0&&(o=!0)}}else return g1("InvalidTag","Closing tag '"+u+"' doesn't have proper closing.",Pt(t,s));else{let l=$re(A,e);if(l!==!0)return g1(l.err.code,l.err.msg,Pt(t,s-A.length+l.err.line));if(o===!0)return g1("InvalidXml","Multiple possible root nodes found.",Pt(t,s));e.unpairedTags.indexOf(u)!==-1||r.push({tagName:u,tagStartPos:a}),n=!0}for(s++;s<t.length;s++)if(t[s]==="<")if(t[s+1]==="!"){s++,s=Jre(t,s);continue}else if(t[s+1]==="?"){if(s=Yre(t,++s),s.err)return s}else break;else if(t[s]==="&"){let l=cYe(t,s);if(l==-1)return g1("InvalidChar","char '&' is not expected.",Pt(t,s));s=l}else if(o===!0&&!Vre(t[s]))return g1("InvalidXml","Extra text at the end",Pt(t,s));t[s]==="<"&&s--}}else{if(Vre(t[s]))continue;return g1("InvalidChar","char '"+t[s]+"' is not expected.",Pt(t,s))}if(n){if(r.length==1)return g1("InvalidTag","Unclosed tag '"+r[0].tagName+"'.",Pt(t,r[0].tagStartPos));if(r.length>0)return g1("InvalidXml","Invalid '"+JSON.stringify(r.map(s=>s.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}else return g1("InvalidXml","Start tag expected.",1);return!0}i(eE,"validate");function Vre(t){return t===" "||t===" "||t===`
`||t==="\r"}i(Vre,"isWhiteSpace");function Yre(t,e){let r=e;for(;e<t.length;e++)if(t[e]=="?"||t[e]==" "){let n=t.substr(r,e-r);if(e>5&&n==="xml")return g1("InvalidXml","XML declaration allowed only at the start of the document.",Pt(t,e));if(t[e]=="?"&&t[e+1]==">"){e++;break}else continue}return e}i(Yre,"readPI");function Jre(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}i(Jre,"readCommentAndCDATA");var nYe='"',oYe="'";function sYe(t,e){let r="",n="",o=!1;for(;e<t.length;e++){if(t[e]===nYe||t[e]===oYe)n===""?n=t[e]:n!==t[e]||(n="");else if(t[e]===">"&&n===""){o=!0;break}r+=t[e]}return n!==""?!1:{value:r,index:e,tagClosed:o}}i(sYe,"readAttributeStr");var iYe=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function $re(t,e){let r=K3(t,iYe),n={};for(let o=0;o<r.length;o++){if(r[o][1].length===0)return g1("InvalidAttr","Attribute '"+r[o][2]+"' has no space in starting.",Jf(r[o]));if(r[o][3]!==void 0&&r[o][4]===void 0)return g1("InvalidAttr","Attribute '"+r[o][2]+"' is without value.",Jf(r[o]));if(r[o][3]===void 0&&!e.allowBooleanAttributes)return g1("InvalidAttr","boolean attribute '"+r[o][2]+"' is not allowed.",Jf(r[o]));let s=r[o][2];if(!uYe(s))return g1("InvalidAttr","Attribute '"+s+"' is an invalid name.",Jf(r[o]));if(!Object.prototype.hasOwnProperty.call(n,s))n[s]=1;else return g1("InvalidAttr","Attribute '"+s+"' is repeated.",Jf(r[o]))}return!0}i($re,"validateAttributeString");function aYe(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}i(aYe,"validateNumberAmpersand");function cYe(t,e){if(e++,t[e]===";")return-1;if(t[e]==="#")return e++,aYe(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}i(cYe,"validateAmpersand");function g1(t,e,r){return{err:{code:t,msg:e,line:r.line||r,col:r.col}}}i(g1,"getErrorObject");function uYe(t){return mS(t)}i(uYe,"validateAttrName");function pYe(t){return mS(t)}i(pYe,"validateTagName");function Pt(t,e){let r=t.substring(0,e).split(/\r?\n/);return{line:r.length,col:r[r.length-1].length+1}}i(Pt,"getLineNumberForPosition");function Jf(t){return t.startIndex+t[1].length}i(Jf,"getPositionFromMatch");var jre={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"},Kre={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"},Zre={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:"\Line truncated
`);let e=new ur("!xml"),r=e,n="";this.matcher.reset(),this.entityDecoder.reset(),this.entityExpansionCount=0,this.currentExpandedLength=0;let o=this.options,s=new Kf(o.processEntities),a=t.length;for(let c=0;c<a;c++)if(t[c]==="<"){let p=t.charCodeAt(c+1);if(p===47){let A=Ll(t,">",c,"Closing Tag is not closed."),l=t.substring(c+2,A).trim();if(o.removeNSPrefix){let M=l.indexOf(":");M!==-1&&(l=l.substr(M+1))}l=qS(o.transformTagName,l,"",o).tagName,r&&(n=this.saveTextToParentTag(n,r,this.readonlyMatcher));let b=this.matcher.getCurrentTag();if(l&&o.unpairedTagsSet.has(l))throw new Error(`Unpaired tag can not be used as closing tag: </${l}>`);b&&o.unpairedTagsSet.has(b)&&(this.matcher.pop(),this.tagsNodeStack.pop()),this.matcher.pop(),this.isCurrentNodeStopNode=!1,r=this.tagsNodeStack.pop(),n="",c=A}else if(p===63){let A=DS(t,c,!1,"?>");if(!A)throw new Error("Pi Tag is not closed.");n=this.saveTextToParentTag(n,r,this.readonlyMatcher);let l=this.buildAttributesMap(A.tagExp,this.matcher,A.tagName,!0);if(l){let b=l[this.options.attributeNamePrefix+"version"];this.entityDecoder.setXmlVersion(Number(b)||1),s.setXmlVersion(Number(b)||1)}if(!(o.ignoreDeclaration&&A.tagName==="?xml"||o.ignorePiTags)){let b=new ur(A.tagName);b.add(o.textNodeName,""),A.tagName!==A.tagExp&&A.attrExpPresent&&o.ignoreAttributes!==!0&&(b[":@"]=l),this.addChild(r,b,this.readonlyMatcher,c)}c=A.closeIndex+1}else if(p===33&&t.charCodeAt(c+2)===45&&t.charCodeAt(c+3)===45){let A=Ll(t,"-->",c+4,"Comment is not closed.");if(o.commentPropName){let l=t.substring(c+4,A-2);n=this.saveTextToParentTag(n,r,this.readonlyMatcher),r.add(o.commentPropName,[{[o.textNodeName]:l}])}c=A}else if(p===33&&t.charCodeAt(c+2)===68){let A=s.readDocType(t,c);this.entityDecoder.addInputEntities(A.entities),c=A.i}else if(p===33&&t.charCodeAt(c+2)===91){let A=Ll(t,"]]>",c,"CDATA is not closed.")-2,l=t.substring(c+9,A);n=this.saveTextToParentTag(n,r,this.readonlyMatcher);let b=this.parseTextData(l,r.tagname,this.readonlyMatcher,!0,!1,!0,!0);b==null&&(b=""),o.cdataPropName?r.add(o.cdataPropName,[{[o.textNodeName]:l}]):r.add(o.textNodeName,b),c=A+2}else{let A=DS(t,c,o.removeNSPrefix);if(!A){let x=t.substring(Math.max(0,c-50),Math.min(a,c+50));throw new Error(`readTagExp returned undefined at position ${c}. Context: "${x}"`)}let l=A.tagName,b=A.rawTagName,M=A.tagExp,z=A.attrExpPresent,O=A.closeIndex;if({tagName:l,tagExp:M}=qS(o.transformTagName,l,M,o),o.strictReservedNames&&(l===o.commentPropName||l===o.cdataPropName||l===o.textNodeName||l===o.attributesGroupName))throw new Error(`Invalid tag name: ${l}`);r&&n&&r.tagname!=="!xml"&&(n=this.saveTextToParentTag(n,r,this.readonlyMatcher,!1));let y=r;y&&o.unpairedTagsSet.has(y.tagname)&&(r=this.tagsNodeStack.pop(),this.matcher.pop());let E=!1;M.length>0&&M.lastIndexOf("/")===M.length-1&&(E=!0,l[l.length-1]==="/"?(l=l.substr(0,l.length-1),M=l):M=M.substr(0,M.length-1),z=l!==M);let B=null,q={},I;I=FYe(b),l!==e.tagname&&this.matcher.push(l,{},I),l!==M&&z&&(B=this.buildAttributesMap(M,this.matcher,l),B&&(q=SYe(B,o))),l!==e.tagname&&(this.isCurrentNodeStopNode=this.isItStopNode());let W=c;if(this.isCurrentNodeStopNode){let x="";if(E)c=A.closeIndex;else if(o.unpairedTagsSet.has(l))c=A.closeIndex;else{let ce=this.readStopNodeData(t,b,O+1);if(!ce)throw new Error(`Unexpected end of ${b}`);c=ce.i,x=ce.tagContent}let L=new ur(l);B&&(L[":@"]=B),L.add(o.textNodeName,x),this.matcher.pop(),this.isCurrentNodeStopNode=!1,this.addChild(r,L,this.readonlyMatcher,W)}else{if(E){({tagName:l,tagExp:M}=qS(o.transformTagName,l,M,o));let x=new ur(l);B&&(x[":@"]=B),this.addChild(r,x,this.readonlyMatcher,W),this.matcher.pop(),this.isCurrentNodeStopNode=!1}else if(o.unpairedTagsSet.has(l)){let x=new ur(l);B&&(x[":@"]=B),this.addChild(r,x,this.readonlyMatcher,W),this.matcher.pop(),this.isCurrentNodeStopNode=!1,c=A.closeIndex;continue}else{let x=new ur(l);if(this.tagsNodeStack.length>o.maxNestedTags)throw new Error("Maximum nested tags exceeded");this.tagsNodeStack.push(r),B&&(x[":@"]=B),this.addChild(r,x,this.readonlyMatcher,W),r=x}n="",c=O}}}else n+=t[c];return e.child},"parseXml");function QYe(t,e,r,n){this.options.captureMetaData||(n=void 0);let o=this.options.jPath?r.toString():r,s=this.options.updateTag(e.tagname,o,e[":@"]);s===!1||(typeof s=="string"&&(e.tagname=s),t.addChild(e,n))}i(QYe,"addChild");function _Ye(t,e,r){let n=this.options.processEntities;if(!n||!n.enabled)return t;if(n.allowedTags){let o=this.options.jPath?r.toString():r;if(!(Array.isArray(n.allowedTags)?n.allowedTags.includes(e):n.allowedTags(e,o)))return t}if(n.tagFilter){let o=this.options.jPath?r.toString():r;if(!n.tagFilter(e,o))return t}return this.entityDecoder.decode(t)}i(_Ye,"replaceEntitiesValue");function PYe(t,e,r,n){return t&&(n===void 0&&(n=e.child.length===0),t=this.parseTextData(t,e.tagname,r,!1,e[":@"]?Object.keys(e[":@"]).length!==0:!1,n),t!==void 0&&t!==""&&e.add(this.options.textNodeName,t),t=""),t}i(PYe,"saveTextToParentTag");function kYe(){return this.stopNodeExpressionsLine truncated
`;function jYe(t,e){if(!Array.isArray(t)||t.length===0)return"1.0";let r=t[0];if(FS(r)==="?xml"){let o=r[":@"];if(o){let s=e.attributeNamePrefix+"version";if(o[s])return o[s]}}return"1.0"}i(jYe,"detectXmlVersionFromArray");function zne(t,e,r,n,o){return!r.sanitizeName||Uu(t,{xmlVersion:o})?t:r.sanitizeName(t,{isAttribute:e,matcher:n.readOnly()})}i(zne,"resolveTagName");function SS(t,e){let r="";e.format&&(r=$Ye);let n=[];if(e.stopNodes&&Array.isArray(e.stopNodes))for(let a=0;a<e.stopNodes.length;a++){let c=e.stopNodes[a];typeof c=="string"?n.push(new jr(c)):c instanceof jr&&n.push(c)}let o=jYe(t,e),s=new bs;return gne(t,e,r,s,n,o)}i(SS,"toXml");function gne(t,e,r,n,o,s){let a="",c=!1;if(e.maxNestedTags&&n.getDepth()>e.maxNestedTags)throw new Error("Maximum nested tags exceeded");if(!Array.isArray(t)){if(t!=null){let u=t.toString();return u=wS(u,e),u}return""}for(let u=0;u<t.length;u++){let p=t[u],A=FS(p);if(A===void 0)continue;let b=A===e.textNodeName||A===e.cdataPropName||A===e.commentPropName||A[0]==="?"?A:zne(A,!1,e,n,s),M=KYe(p[":@"],e);n.push(b,M);let z=eJe(n,o);if(b===e.textNodeName){let q=p[A];z||(q=e.tagValueProcessor(b,q),q=wS(q,e)),c&&(a+=r),a+=q,c=!1,n.pop();continue}else if(b===e.cdataPropName){c&&(a+=r);let q=p[A][0][e.textNodeName],I=sE(q);a+=`<![CDATA[${I}]]>`,c=!1,n.pop();continue}else if(b===e.commentPropName){let q=p[A][0][e.textNodeName],I=oE(q);a+=r+`<!--${I}-->`,c=!0,n.pop();continue}else if(b[0]==="?"){let q=mne(p[":@"],e,z,n,s);a+=(b==="?xml"?"":r)+`<${b}${q}?>`,c=!0,n.pop();continue}let O=r;O!==""&&(O+=e.indentBy);let y=mne(p[":@"],e,z,n,s),E=r+`<${b}${y}`,B;z?B=One(p[A],e):B=gne(p[A],e,O,n,o,s),e.unpairedTags.indexOf(b)!==-1?e.suppressUnpairedNode?a+=E+">":a+=E+"/>":(!B||B.length===0)&&e.suppressEmptyNode?a+=E+"/>":B&&B.endsWith(">")?a+=E+`>${B}${r}</${b}>`:(a+=E+">",B&&r!==""&&(B.includes("/>")||B.includes("</"))?a+=r+e.indentBy+B+r:a+=B,a+=`</${b}>`),c=!0,n.pop()}return a}i(gne,"arrToStr");function KYe(t,e){if(!t||e.ignoreAttributes)return null;let r={},n=!1;for(let o in t){if(!Object.prototype.hasOwnProperty.call(t,o))continue;let s=o.startsWith(e.attributeNamePrefix)?o.substr(e.attributeNamePrefix.length):o;r[s]=pc(t[o]),n=!0}return n?r:null}i(KYe,"extractAttributeValues");function One(t,e){if(!Array.isArray(t))return t!=null?t.toString():"";let r="";for(let n=0;n<t.length;n++){let o=t[n],s=FS(o);if(s===e.textNodeName)r+=o[s];else if(s===e.cdataPropName)r+=o[s][0][e.textNodeName];else if(s===e.commentPropName)r+=o[s][0][e.textNodeName];else{if(s&&s[0]==="?")continue;if(s){let a=ZYe(o[":@"],e),c=One(o[s],e);!c||c.length===0?r+=`<${s}${a}/>`:r+=`<${s}${a}>${c}</${s}>`}}}return r}i(One,"getRawContent");function ZYe(t,e){let r="";if(t&&!e.ignoreAttributes)for(let n in t){if(!Object.prototype.hasOwnProperty.call(t,n))continue;let o=t[n];o===!0&&e.suppressBooleanAttributes?r+=` ${n.substr(e.attributeNamePrefix.length)}`:r+=` ${n.substr(e.attributeNamePrefix.length)}="${pc(o)}"`}return r}i(ZYe,"attr_to_str_raw");function FS(t){let e=Object.keys(t);for(let r=0;r<e.length;r++){let n=e[r];if(Object.prototype.hasOwnProperty.call(t,n)&&n!==":@")return n}}i(FS,"propName");function mne(t,e,r,n,o){let s="";if(t&&!e.ignoreAttributes)for(let a in t){if(!Object.prototype.hasOwnProperty.call(t,a))continue;let c=a.substr(e.attributeNamePrefix.length),u=r?c:zne(c,!0,e,n,o),p;r?p=t[a]:(p=e.attributeValueProcessor(a,t[a]),p=wS(p,e)),p===!0&&e.suppressBooleanAttributes?s+=` ${u}`:s+=` ${u}="${pc(p)}"`}return s}i(mne,"attr_to_str");function eJe(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}i(eJe,"checkStopNode");function wS(t,e){if(t&&t.length>0&&e.processEntities)for(let r=0;r<e.entities.length;r++){let n=e.entities[r];t=t.replace(n.regex,n.val)}return t}i(wS,"replaceEntitiesValue");function WS(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}i(WS,"getIgnoreAttributesFn");var tJe={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:" ",suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:i(function(t,e){return e},"tagValueProcessor"),attributeValueProcessor:i(function(t,e){return e},"attributeValueProcessor"),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 Ar(t){if(this.options=Object.assign({},tJe,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&&ArraLine truncated
`,"utf-8")],o=SXe(n);o&&t.headers.set("Content-Length",o),t.body=await ore(n)}i(FXe,"buildRequestBody");var Tf="multipartPolicy",WXe=70,xXe=new Set("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'()+,-./:=?");function TXe(t){if(t.length>WXe)throw new Error(`Multipart boundary "${t}" exceeds maximum length of 70 characters`);if(Array.from(t).some(e=>!xXe.has(e)))throw new Error(`Multipart boundary "${t}" contains invalid characters`)}i(TXe,"assertValidBoundary");function v3(){return{name:Tf,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,n=t.headers.get("Content-Type")??"multipart/mixed",o=n.match(/^(multipart\/[^ ;]+)(?:; *boundary=(.+))?$/);if(!o)throw new Error(`Got multipart request body, but content-type header was not multipart: ${n}`);let[,s,a]=o;if(a&&r&&a!==r)throw new Error(`Multipart boundary was specified as ${a} in the header, but got ${r} in the request body`);return r??=a,r?TXe(r):r=RXe(),t.headers.set("Content-Type",`${s}; boundary=${r}`),await FXe(t,t.multipartBody.parts,r),t.multipartBody=void 0,e(t)}}}i(v3,"multipartPolicy");function L3(){return a3()}i(L3,"createEmptyPipeline");var sre=o3({logLevelEnvVarName:"AZURE_LOG_LEVEL",namespace:"azure"}),uL0=sre.logger;function As(t){return sre.createClientLogger(t)}i(As,"createClientLogger");var ls=As("core-rest-pipeline");function k6(t={}){return d3({logger:ls.info,...t})}i(k6,"logPolicy");var U6=b3;function G6(t={}){return f3(t)}i(G6,"redirectPolicy");var Q3=w(require("node:os"),1),_3=w(require("node:process"),1);function ire(){return"User-Agent"}i(ire,"getHeaderName");async function are(t){if(_3.default&&_3.default.versions){let e=`${Q3.default.type()} ${Q3.default.release()}; ${Q3.default.arch()}`,r=_3.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})`)}}i(are,"setPlatformSpecificData");var P3="1.22.2";function GXe(t){let e=[];for(let[r,n]of t){let o=n?`${r}/${n}`:r;e.push(o)}return e.join(" ")}i(GXe,"getUserAgentString");function cre(){return ire()}i(cre,"getUserAgentHeaderName");async function k3(t){let e=new Map;e.set("core-rest-pipeline",P3),await are(e);let r=GXe(e);return t?`${t} ${r}`:r}i(k3,"getUserAgentValue");var ure=cre(),pre="userAgentPolicy";function H6(t={}){let e=k3(t.userAgentPrefix);return{name:pre,async sendRequest(r,n){return r.headers.has(ure)||r.headers.set(ure,await e),n(r)}}}i(H6,"userAgentPolicy");var $r=class extends Error{static{i(this,"AbortError")}constructor(e){super(e),this.name="AbortError"}};function X6(t,e){let{cleanupBeforeAbort:r,abortSignal:n,abortErrorMsg:o}=e??{};return new Promise((s,a)=>{function c(){a(new $r(o??"The operation was aborted."))}i(c,"rejectOnAbort");function u(){n?.removeEventListener("abort",p)}i(u,"removeListeners");function p(){r?.(),u(),c()}if(i(p,"onAbort"),n?.aborted)return c();try{t(A=>{u(),s(A)},A=>{u(),a(A)})}catch(A){a(A)}n?.addEventListener("abort",p)})}i(X6,"createAbortablePromise");var JXe="The delay was aborted.";function vf(t,e){let r,{abortSignal:n,abortErrorMsg:o}=e??{};return X6(s=>{r=setTimeout(s,t)},{cleanupBeforeAbort:i(()=>clearTimeout(r),"cleanupBeforeAbort"),abortSignal:n,abortErrorMsg:o??JXe})}i(vf,"delay");function oc(t){if(xu(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}`}}i(oc,"getErrorMessage");function Are(t){return xu(t)}i(Are,"isError");function wl(){return Wu()}i(wl,"randomUUID");var l0=Lu;var lre=Symbol("rawContent");function Y6(t){return typeof t[lre]=="function"}i(Y6,"hasRawContent");function dre(t){return Y6(t)?t[lre]():t}i(dre,"getRawContent");var U3=Tf;function J6(){let t=v3();return{name:U3,sendRequest:i(async(e,r)=>{if(e.multipartBody)for(let n of e.multipartBody.parts)Y6(n.body)&&(n.body=dre(n.body));return t.sendRequest(e,r)},"sendRequest")}}i(J6,"multipartPolicy");var $6=M3;function j6(){return h3()}i(j6,"decompressResponsePolicy");function K6(t={}){return g3(t)}i(K6,"defaultRetryPolicy");function Z6(){return O3()}i(Z6,"formDataPolicy");function sc(t){return v6(t)}i(sc,"getDefaultProxySettings");function eS(t,e){return S3(t,e)}i(eS,"proxyPolicy");var bre="setClientRequestIdPolicy";function tS(t="x-ms-client-request-id"){return{name:bre,async sendRequest(e,r){return e.headers.has(t)||e.headers.set(t,e.requestId),r(e)}}}i(tS,"setClientRequestIdPolicy");function rS(t){return F3(t)}i(rS,"agentPolicy");function nS(t){return W3(t)}i(nS,"tlsPolicy");var Sl={span:Symbol.for("@azure/core-tracing span"),namespace:Symbol.for("@azure/core-tracing namespace")};function fre(t={}){let e=new oS(t.parentContext);return t.span&&(e=e.setValue(Sl.span,t.span)),t.namespace&&(e=e.setValue(Sl.namespace,t.namespace)),e}i(fre,"createTracingContext");var oS=class t{static{i(this,"TracingContextImpl")}_contextMap;constructor(e){this._contextMap=e i Line truncated
`&&t[s]!=="\r";s++)u+=t[s];if(u=u.trim(),u[u.length-1]==="/"&&(u=u.substring(0,u.length-1),s--),!zYe(u)){let l;return u.trim().length===0?l="Invalid space after '<'.":l="Tag '"+u+"' is an invalid name.",g1("InvalidTag",l,kt(t,s))}let p=bYe(t,s);if(p===!1)return g1("InvalidAttr","Attributes for '"+u+"' have open quote.",kt(t,s));let A=p.value;if(s=p.index,A[A.length-1]==="/"){let l=s-A.length;A=A.substring(0,A.length-1);let b=Kre(A,e);if(b===!0)n=!0;else return g1(b.err.code,b.err.msg,kt(t,l+b.err.line))}else if(c)if(p.tagClosed){if(A.trim().length>0)return g1("InvalidTag","Closing tag '"+u+"' can't have attributes or invalid starting.",kt(t,a));if(r.length===0)return g1("InvalidTag","Closing tag '"+u+"' has not been opened.",kt(t,a));{let l=r.pop();if(u!==l.tagName){let b=kt(t,l.tagStartPos);return g1("InvalidTag","Expected closing tag '"+l.tagName+"' (opened in line "+b.line+", col "+b.col+") instead of closing tag '"+u+"'.",kt(t,a))}r.length==0&&(o=!0)}}else return g1("InvalidTag","Closing tag '"+u+"' doesn't have proper closing.",kt(t,s));else{let l=Kre(A,e);if(l!==!0)return g1(l.err.code,l.err.msg,kt(t,s-A.length+l.err.line));if(o===!0)return g1("InvalidXml","Multiple possible root nodes found.",kt(t,s));e.unpairedTags.indexOf(u)!==-1||r.push({tagName:u,tagStartPos:a}),n=!0}for(s++;s<t.length;s++)if(t[s]==="<")if(t[s+1]==="!"){s++,s=jre(t,s);continue}else if(t[s+1]==="?"){if(s=$re(t,++s),s.err)return s}else break;else if(t[s]==="&"){let l=hYe(t,s);if(l==-1)return g1("InvalidChar","char '&' is not expected.",kt(t,s));s=l}else if(o===!0&&!Jre(t[s]))return g1("InvalidXml","Extra text at the end",kt(t,s));t[s]==="<"&&s--}}else{if(Jre(t[s]))continue;return g1("InvalidChar","char '"+t[s]+"' is not expected.",kt(t,s))}if(n){if(r.length==1)return g1("InvalidTag","Unclosed tag '"+r[0].tagName+"'.",kt(t,r[0].tagStartPos));if(r.length>0)return g1("InvalidXml","Invalid '"+JSON.stringify(r.map(s=>s.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}else return g1("InvalidXml","Start tag expected.",1);return!0}i(rE,"validate");function Jre(t){return t===" "||t===" "||t===`
`||t==="\r"}i(Jre,"isWhiteSpace");function $re(t,e){let r=e;for(;e<t.length;e++)if(t[e]=="?"||t[e]==" "){let n=t.substr(r,e-r);if(e>5&&n==="xml")return g1("InvalidXml","XML declaration allowed only at the start of the document.",kt(t,e));if(t[e]=="?"&&t[e+1]==">"){e++;break}else continue}return e}i($re,"readPI");function jre(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}i(jre,"readCommentAndCDATA");var lYe='"',dYe="'";function bYe(t,e){let r="",n="",o=!1;for(;e<t.length;e++){if(t[e]===lYe||t[e]===dYe)n===""?n=t[e]:n!==t[e]||(n="");else if(t[e]===">"&&n===""){o=!0;break}r+=t[e]}return n!==""?!1:{value:r,index:e,tagClosed:o}}i(bYe,"readAttributeStr");var fYe=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function Kre(t,e){let r=eE(t,fYe),n={};for(let o=0;o<r.length;o++){if(r[o][1].length===0)return g1("InvalidAttr","Attribute '"+r[o][2]+"' has no space in starting.",Jf(r[o]));if(r[o][3]!==void 0&&r[o][4]===void 0)return g1("InvalidAttr","Attribute '"+r[o][2]+"' is without value.",Jf(r[o]));if(r[o][3]===void 0&&!e.allowBooleanAttributes)return g1("InvalidAttr","boolean attribute '"+r[o][2]+"' is not allowed.",Jf(r[o]));let s=r[o][2];if(!mYe(s))return g1("InvalidAttr","Attribute '"+s+"' is an invalid name.",Jf(r[o]));if(!Object.prototype.hasOwnProperty.call(n,s))n[s]=1;else return g1("InvalidAttr","Attribute '"+s+"' is repeated.",Jf(r[o]))}return!0}i(Kre,"validateAttributeString");function MYe(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}i(MYe,"validateNumberAmpersand");function hYe(t,e){if(e++,t[e]===";")return-1;if(t[e]==="#")return e++,MYe(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}i(hYe,"validateAmpersand");function g1(t,e,r){return{err:{code:t,msg:e,line:r.line||r,col:r.col}}}i(g1,"getErrorObject");function mYe(t){return ES(t)}i(mYe,"validateAttrName");function zYe(t){return ES(t)}i(zYe,"validateTagName");function kt(t,e){let r=t.substring(0,e).split(/\r?\n/);return{line:r.length,col:r[r.length-1].length+1}}i(kt,"getLineNumberForPosition");function Jf(t){return t.startIndex+t[1].length}i(Jf,"getPositionFromMatch");var Zre={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"},ene={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"},tne={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:"\Line truncated
`);let e=new pr("!xml"),r=e,n="";this.matcher.reset(),this.entityDecoder.reset(),this.entityExpansionCount=0,this.currentExpandedLength=0;let o=this.options,s=new Kf(o.processEntities),a=t.length;for(let c=0;c<a;c++)if(t[c]==="<"){let p=t.charCodeAt(c+1);if(p===47){let A=vl(t,">",c,"Closing Tag is not closed."),l=t.substring(c+2,A).trim();if(o.removeNSPrefix){let M=l.indexOf(":");M!==-1&&(l=l.substr(M+1))}l=NS(o.transformTagName,l,"",o).tagName,r&&(n=this.saveTextToParentTag(n,r,this.readonlyMatcher));let b=this.matcher.getCurrentTag();if(l&&o.unpairedTagsSet.has(l))throw new Error(`Unpaired tag can not be used as closing tag: </${l}>`);b&&o.unpairedTagsSet.has(b)&&(this.matcher.pop(),this.tagsNodeStack.pop()),this.matcher.pop(),this.isCurrentNodeStopNode=!1,r=this.tagsNodeStack.pop(),n="",c=A}else if(p===63){let A=wS(t,c,!1,"?>");if(!A)throw new Error("Pi Tag is not closed.");n=this.saveTextToParentTag(n,r,this.readonlyMatcher);let l=this.buildAttributesMap(A.tagExp,this.matcher,A.tagName,!0);if(l){let b=l[this.options.attributeNamePrefix+"version"];this.entityDecoder.setXmlVersion(Number(b)||1),s.setXmlVersion(Number(b)||1)}if(!(o.ignoreDeclaration&&A.tagName==="?xml"||o.ignorePiTags)){let b=new pr(A.tagName);b.add(o.textNodeName,""),A.tagName!==A.tagExp&&A.attrExpPresent&&o.ignoreAttributes!==!0&&(b[":@"]=l),this.addChild(r,b,this.readonlyMatcher,c)}c=A.closeIndex+1}else if(p===33&&t.charCodeAt(c+2)===45&&t.charCodeAt(c+3)===45){let A=vl(t,"-->",c+4,"Comment is not closed.");if(o.commentPropName){let l=t.substring(c+4,A-2);n=this.saveTextToParentTag(n,r,this.readonlyMatcher),r.add(o.commentPropName,[{[o.textNodeName]:l}])}c=A}else if(p===33&&t.charCodeAt(c+2)===68){let A=s.readDocType(t,c);this.entityDecoder.addInputEntities(A.entities),c=A.i}else if(p===33&&t.charCodeAt(c+2)===91){let A=vl(t,"]]>",c,"CDATA is not closed.")-2,l=t.substring(c+9,A);n=this.saveTextToParentTag(n,r,this.readonlyMatcher);let b=this.parseTextData(l,r.tagname,this.readonlyMatcher,!0,!1,!0,!0);b==null&&(b=""),o.cdataPropName?r.add(o.cdataPropName,[{[o.textNodeName]:l}]):r.add(o.textNodeName,b),c=A+2}else{let A=wS(t,c,o.removeNSPrefix);if(!A){let x=t.substring(Math.max(0,c-50),Math.min(a,c+50));throw new Error(`readTagExp returned undefined at position ${c}. Context: "${x}"`)}let l=A.tagName,b=A.rawTagName,M=A.tagExp,z=A.attrExpPresent,O=A.closeIndex;if({tagName:l,tagExp:M}=NS(o.transformTagName,l,M,o),o.strictReservedNames&&(l===o.commentPropName||l===o.cdataPropName||l===o.textNodeName||l===o.attributesGroupName))throw new Error(`Invalid tag name: ${l}`);r&&n&&r.tagname!=="!xml"&&(n=this.saveTextToParentTag(n,r,this.readonlyMatcher,!1));let y=r;y&&o.unpairedTagsSet.has(y.tagname)&&(r=this.tagsNodeStack.pop(),this.matcher.pop());let E=!1;M.length>0&&M.lastIndexOf("/")===M.length-1&&(E=!0,l[l.length-1]==="/"?(l=l.substr(0,l.length-1),M=l):M=M.substr(0,M.length-1),z=l!==M);let B=null,q={},D;D=kYe(b),l!==e.tagname&&this.matcher.push(l,{},D),l!==M&&z&&(B=this.buildAttributesMap(M,this.matcher,l),B&&(q=PYe(B,o))),l!==e.tagname&&(this.isCurrentNodeStopNode=this.isItStopNode());let W=c;if(this.isCurrentNodeStopNode){let x="";if(E)c=A.closeIndex;else if(o.unpairedTagsSet.has(l))c=A.closeIndex;else{let Y=this.readStopNodeData(t,b,O+1);if(!Y)throw new Error(`Unexpected end of ${b}`);c=Y.i,x=Y.tagContent}let L=new pr(l);B&&(L[":@"]=B),L.add(o.textNodeName,x),this.matcher.pop(),this.isCurrentNodeStopNode=!1,this.addChild(r,L,this.readonlyMatcher,W)}else{if(E){({tagName:l,tagExp:M}=NS(o.transformTagName,l,M,o));let x=new pr(l);B&&(x[":@"]=B),this.addChild(r,x,this.readonlyMatcher,W),this.matcher.pop(),this.isCurrentNodeStopNode=!1}else if(o.unpairedTagsSet.has(l)){let x=new pr(l);B&&(x[":@"]=B),this.addChild(r,x,this.readonlyMatcher,W),this.matcher.pop(),this.isCurrentNodeStopNode=!1,c=A.closeIndex;continue}else{let x=new pr(l);if(this.tagsNodeStack.length>o.maxNestedTags)throw new Error("Maximum nested tags exceeded");this.tagsNodeStack.push(r),B&&(x[":@"]=B),this.addChild(r,x,this.readonlyMatcher,W),r=x}n="",c=O}}}else n+=t[c];return e.child},"parseXml");function YYe(t,e,r,n){this.options.captureMetaData||(n=void 0);let o=this.options.jPath?r.toString():r,s=this.options.updateTag(e.tagname,o,e[":@"]);s===!1||(typeof s=="string"&&(e.tagname=s),t.addChild(e,n))}i(YYe,"addChild");function JYe(t,e,r){let n=this.options.processEntities;if(!n||!n.enabled)return t;if(n.allowedTags){let o=this.options.jPath?r.toString():r;if(!(Array.isArray(n.allowedTags)?n.allowedTags.includes(e):n.allowedTags(e,o)))return t}if(n.tagFilter){let o=this.options.jPath?r.toString():r;if(!n.tagFilter(e,o))return t}return this.entityDecoder.decode(t)}i(JYe,"replaceEntitiesValue");function $Ye(t,e,r,n){return t&&(n===void 0&&(n=e.child.length===0),t=this.parseTextData(t,e.tagname,r,!1,e[":@"]?Object.keys(e[":@"]).length!==0:!1,n),t!==void 0&&t!==""&&e.add(this.options.textNodeName,t),t=""),t}i($Ye,"saveTextToParentTag");function jYe(){return this.stopNodeExpressionsSet.Line truncated
`;function iJe(t,e){if(!Array.isArray(t)||t.length===0)return"1.0";let r=t[0];if(vS(r)==="?xml"){let o=r[":@"];if(o){let s=e.attributeNamePrefix+"version";if(o[s])return o[s]}}return"1.0"}i(iJe,"detectXmlVersionFromArray");function One(t,e,r,n,o){return!r.sanitizeName||Uu(t,{xmlVersion:o})?t:r.sanitizeName(t,{isAttribute:e,matcher:n.readOnly()})}i(One,"resolveTagName");function TS(t,e){let r="";e.format&&(r=sJe);let n=[];if(e.stopNodes&&Array.isArray(e.stopNodes))for(let a=0;a<e.stopNodes.length;a++){let c=e.stopNodes[a];typeof c=="string"?n.push(new Zr(c)):c instanceof Zr&&n.push(c)}let o=iJe(t,e),s=new fs;return Ene(t,e,r,s,n,o)}i(TS,"toXml");function Ene(t,e,r,n,o,s){let a="",c=!1;if(e.maxNestedTags&&n.getDepth()>e.maxNestedTags)throw new Error("Maximum nested tags exceeded");if(!Array.isArray(t)){if(t!=null){let u=t.toString();return u=xS(u,e),u}return""}for(let u=0;u<t.length;u++){let p=t[u],A=vS(p);if(A===void 0)continue;let b=A===e.textNodeName||A===e.cdataPropName||A===e.commentPropName||A[0]==="?"?A:One(A,!1,e,n,s),M=aJe(p[":@"],e);n.push(b,M);let z=uJe(n,o);if(b===e.textNodeName){let q=p[A];z||(q=e.tagValueProcessor(b,q),q=xS(q,e)),c&&(a+=r),a+=q,c=!1,n.pop();continue}else if(b===e.cdataPropName){c&&(a+=r);let q=p[A][0][e.textNodeName],D=aE(q);a+=`<![CDATA[${D}]]>`,c=!1,n.pop();continue}else if(b===e.commentPropName){let q=p[A][0][e.textNodeName],D=iE(q);a+=r+`<!--${D}-->`,c=!0,n.pop();continue}else if(b[0]==="?"){let q=gne(p[":@"],e,z,n,s);a+=(b==="?xml"?"":r)+`<${b}${q}?>`,c=!0,n.pop();continue}let O=r;O!==""&&(O+=e.indentBy);let y=gne(p[":@"],e,z,n,s),E=r+`<${b}${y}`,B;z?B=Cne(p[A],e):B=Ene(p[A],e,O,n,o,s),e.unpairedTags.indexOf(b)!==-1?e.suppressUnpairedNode?a+=E+">":a+=E+"/>":(!B||B.length===0)&&e.suppressEmptyNode?a+=E+"/>":B&&B.endsWith(">")?a+=E+`>${B}${r}</${b}>`:(a+=E+">",B&&r!==""&&(B.includes("/>")||B.includes("</"))?a+=r+e.indentBy+B+r:a+=B,a+=`</${b}>`),c=!0,n.pop()}return a}i(Ene,"arrToStr");function aJe(t,e){if(!t||e.ignoreAttributes)return null;let r={},n=!1;for(let o in t){if(!Object.prototype.hasOwnProperty.call(t,o))continue;let s=o.startsWith(e.attributeNamePrefix)?o.substr(e.attributeNamePrefix.length):o;r[s]=cc(t[o]),n=!0}return n?r:null}i(aJe,"extractAttributeValues");function Cne(t,e){if(!Array.isArray(t))return t!=null?t.toString():"";let r="";for(let n=0;n<t.length;n++){let o=t[n],s=vS(o);if(s===e.textNodeName)r+=o[s];else if(s===e.cdataPropName)r+=o[s][0][e.textNodeName];else if(s===e.commentPropName)r+=o[s][0][e.textNodeName];else{if(s&&s[0]==="?")continue;if(s){let a=cJe(o[":@"],e),c=Cne(o[s],e);!c||c.length===0?r+=`<${s}${a}/>`:r+=`<${s}${a}>${c}</${s}>`}}}return r}i(Cne,"getRawContent");function cJe(t,e){let r="";if(t&&!e.ignoreAttributes)for(let n in t){if(!Object.prototype.hasOwnProperty.call(t,n))continue;let o=t[n];o===!0&&e.suppressBooleanAttributes?r+=` ${n.substr(e.attributeNamePrefix.length)}`:r+=` ${n.substr(e.attributeNamePrefix.length)}="${cc(o)}"`}return r}i(cJe,"attr_to_str_raw");function vS(t){let e=Object.keys(t);for(let r=0;r<e.length;r++){let n=e[r];if(Object.prototype.hasOwnProperty.call(t,n)&&n!==":@")return n}}i(vS,"propName");function gne(t,e,r,n,o){let s="";if(t&&!e.ignoreAttributes)for(let a in t){if(!Object.prototype.hasOwnProperty.call(t,a))continue;let c=a.substr(e.attributeNamePrefix.length),u=r?c:One(c,!0,e,n,o),p;r?p=t[a]:(p=e.attributeValueProcessor(a,t[a]),p=xS(p,e)),p===!0&&e.suppressBooleanAttributes?s+=` ${u}`:s+=` ${u}="${cc(p)}"`}return s}i(gne,"attr_to_str");function uJe(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}i(uJe,"checkStopNode");function xS(t,e){if(t&&t.length>0&&e.processEntities)for(let r=0;r<e.entities.length;r++){let n=e.entities[r];t=t.replace(n.regex,n.val)}return t}i(xS,"replaceEntitiesValue");function LS(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}i(LS,"getIgnoreAttributesFn");var pJe={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:" ",suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:i(function(t,e){return e},"tagValueProcessor"),attributeValueProcessor:i(function(t,e){return e},"attributeValueProcessor"),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 lr(t){if(this.options=Object.assign({},pJe,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&&ArraLine truncated
`,this.newLine=`
`):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}i(Ar,"Builder");function rJe(t,e){let r=t["?xml"];if(r&&typeof r=="object"){if(e.attributesGroupName&&r[e.attributesGroupName]){let o=r[e.attributesGroupName][e.attributeNamePrefix+"version"];if(o)return o}let n=r[e.attributeNamePrefix+"version"];if(n)return n}return"1.0"}i(rJe,"detectXmlVersionFromObj");function xS(t,e,r,n,o){return!r.sanitizeName||Uu(t,{xmlVersion:o})?t:r.sanitizeName(t,{isAttribute:e,matcher:n.readOnly()})}i(xS,"resolveTagName");Ar.prototype.build=function(t){if(this.options.preserveOrder)return SS(t,this.options);{Array.isArray(t)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(t={[this.options.arrayNodeName]:t});let e=new bs,r=rJe(t,this.options);return this.j2x(t,0,e,r).val}};Ar.prototype.j2x=function(t,e,r,n){let o="",s="";if(this.options.maxNestedTags&&r.getDepth()>=this.options.maxNestedTags)throw new Error("Maximum nested tags exceeded");let a=this.options.jPath?r.toString():r,c=this.checkStopNode(r);for(let u in t){if(!Object.prototype.hasOwnProperty.call(t,u))continue;let A=u===this.options.textNodeName||u===this.options.cdataPropName||u===this.options.commentPropName||this.options.attributesGroupName&&u===this.options.attributesGroupName||this.isAttribute(u)||u[0]==="?"?u:xS(u,!1,this.options,r,n);if(typeof t[u]>"u")this.isAttribute(u)&&(s+="");else if(t[u]===null)this.isAttribute(u)||A===this.options.cdataPropName||A===this.options.commentPropName?s+="":A[0]==="?"?s+=this.indentate(e)+"<"+A+"?"+this.tagEndChar:s+=this.indentate(e)+"<"+A+"/"+this.tagEndChar;else if(t[u]instanceof Date)s+=this.buildTextValNode(t[u],A,"",e,r);else if(typeof t[u]!="object"){let l=this.isAttribute(u);if(l&&!this.ignoreAttributesFn(l,a)){let b=xS(l,!0,this.options,r,n);o+=this.buildAttrPairStr(b,""+t[u],c)}else if(!l)if(u===this.options.textNodeName){let b=this.options.tagValueProcessor(u,""+t[u]);s+=this.replaceEntitiesValue(b)}else{r.push(A);let b=this.checkStopNode(r);if(r.pop(),b){let M=""+t[u];M===""?s+=this.indentate(e)+"<"+A+this.closeTag(A)+this.tagEndChar:s+=this.indentate(e)+"<"+A+">"+M+"</"+A+this.tagEndChar}else s+=this.buildTextValNode(t[u],A,"",e,r)}}else if(Array.isArray(t[u])){let l=t[u].length,b="",M="";for(let z=0;z<l;z++){let O=t[u][z];if(!(typeof O>"u"))if(O===null)A[0]==="?"?s+=this.indentate(e)+"<"+A+"?"+this.tagEndChar:s+=this.indentate(e)+"<"+A+"/"+this.tagEndChar;else if(typeof O=="object")if(this.options.oneListGroup){r.push(A);let y=this.j2x(O,e+1,r,n);r.pop(),b+=y.val,this.options.attributesGroupName&&O.hasOwnProperty(this.options.attributesGroupName)&&(M+=y.attrStr)}else b+=this.processTextOrObjNode(O,A,e,r,n);else if(this.options.oneListGroup){let y=this.options.tagValueProcessor(A,O);y=this.replaceEntitiesValue(y),b+=y}else{r.push(A);let y=this.checkStopNode(r);if(r.pop(),y){let E=""+O;E===""?b+=this.indentate(e)+"<"+A+this.closeTag(A)+this.tagEndChar:b+=this.indentate(e)+"<"+A+">"+E+"</"+A+this.tagEndChar}else b+=this.buildTextValNode(O,A,"",e,r)}}this.options.oneListGroup&&(b=this.buildObjectNode(b,A,M,e)),s+=b}else if(this.options.attributesGroupName&&u===this.options.attributesGroupName){let l=Object.keys(t[u]),b=l.length;for(let M=0;M<b;M++){let z=xS(l[M],!0,this.options,r,n);o+=this.buildAttrPairStr(z,""+t[u][l[M]],c)}}else s+=this.processTextOrObjNode(t[u],A,e,r,n)}return{attrStr:o,val:s}};Ar.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+'="'+pc(e)+'"'};function nJe(t,e,r,n,o){let s=this.extractAttributes(t);if(n.push(e,s),this.checkStopNode(n)){let u=this.buildRawContent(t),p=this.buildAttributesForStopNode(t);return n.pop(),this.buildObjectNode(u,e,p,r)}let c=this.j2x(t,r+1,n,o);return n.pop(),e[0]==="?"?this.buildTextValNode("",e,c.attrStr,r,n):t[this.options.textNodeName]!==void 0&&Object.keys(t).length===1?this.buildTextValNode(t[this.options.textNodeName],e,c.attrStr,r,n):this.buildObjectNode(c.val,e,c.attrStr,r)}i(nJe,"processTextOrObjNode");Ar.prototype.extractAttributes=function(t){if(!t||typeof t!="object")return null;let e={},r=!1;if(this.options.attributesGroupName&&t[this.options.attributesGroupName]){let n=t[this.options.attributesGroupName];for(let o in n){if(!Object.prototype.hasOwnProperty.call(n,o))continue;let s=o.startsWith(this.options.attributeNamePrefix)?o.substring(this.options.attributeNamePrefix.length):o;e[s]=pc(n[o]),r=!0}}else for(let n in t){if(!Object.prototype.hasOwnProperty.call(t,n))continue;let o=this.isAttribute(n);o&&(e[o]=pc(t[n]),r=!0)}return r?e:null};Ar.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.o Line truncated
`):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}i(lr,"Builder");function AJe(t,e){let r=t["?xml"];if(r&&typeof r=="object"){if(e.attributesGroupName&&r[e.attributesGroupName]){let o=r[e.attributesGroupName][e.attributeNamePrefix+"version"];if(o)return o}let n=r[e.attributeNamePrefix+"version"];if(n)return n}return"1.0"}i(AJe,"detectXmlVersionFromObj");function QS(t,e,r,n,o){return!r.sanitizeName||Uu(t,{xmlVersion:o})?t:r.sanitizeName(t,{isAttribute:e,matcher:n.readOnly()})}i(QS,"resolveTagName");lr.prototype.build=function(t){if(this.options.preserveOrder)return TS(t,this.options);{Array.isArray(t)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(t={[this.options.arrayNodeName]:t});let e=new fs,r=AJe(t,this.options);return this.j2x(t,0,e,r).val}};lr.prototype.j2x=function(t,e,r,n){let o="",s="";if(this.options.maxNestedTags&&r.getDepth()>=this.options.maxNestedTags)throw new Error("Maximum nested tags exceeded");let a=this.options.jPath?r.toString():r,c=this.checkStopNode(r);for(let u in t){if(!Object.prototype.hasOwnProperty.call(t,u))continue;let A=u===this.options.textNodeName||u===this.options.cdataPropName||u===this.options.commentPropName||this.options.attributesGroupName&&u===this.options.attributesGroupName||this.isAttribute(u)||u[0]==="?"?u:QS(u,!1,this.options,r,n);if(typeof t[u]>"u")this.isAttribute(u)&&(s+="");else if(t[u]===null)this.isAttribute(u)||A===this.options.cdataPropName||A===this.options.commentPropName?s+="":A[0]==="?"?s+=this.indentate(e)+"<"+A+"?"+this.tagEndChar:s+=this.indentate(e)+"<"+A+"/"+this.tagEndChar;else if(t[u]instanceof Date)s+=this.buildTextValNode(t[u],A,"",e,r);else if(typeof t[u]!="object"){let l=this.isAttribute(u);if(l&&!this.ignoreAttributesFn(l,a)){let b=QS(l,!0,this.options,r,n);o+=this.buildAttrPairStr(b,""+t[u],c)}else if(!l)if(u===this.options.textNodeName){let b=this.options.tagValueProcessor(u,""+t[u]);s+=this.replaceEntitiesValue(b)}else{r.push(A);let b=this.checkStopNode(r);if(r.pop(),b){let M=""+t[u];M===""?s+=this.indentate(e)+"<"+A+this.closeTag(A)+this.tagEndChar:s+=this.indentate(e)+"<"+A+">"+M+"</"+A+this.tagEndChar}else s+=this.buildTextValNode(t[u],A,"",e,r)}}else if(Array.isArray(t[u])){let l=t[u].length,b="",M="";for(let z=0;z<l;z++){let O=t[u][z];if(!(typeof O>"u"))if(O===null)A[0]==="?"?s+=this.indentate(e)+"<"+A+"?"+this.tagEndChar:s+=this.indentate(e)+"<"+A+"/"+this.tagEndChar;else if(typeof O=="object")if(this.options.oneListGroup){r.push(A);let y=this.j2x(O,e+1,r,n);r.pop(),b+=y.val,this.options.attributesGroupName&&O.hasOwnProperty(this.options.attributesGroupName)&&(M+=y.attrStr)}else b+=this.processTextOrObjNode(O,A,e,r,n);else if(this.options.oneListGroup){let y=this.options.tagValueProcessor(A,O);y=this.replaceEntitiesValue(y),b+=y}else{r.push(A);let y=this.checkStopNode(r);if(r.pop(),y){let E=""+O;E===""?b+=this.indentate(e)+"<"+A+this.closeTag(A)+this.tagEndChar:b+=this.indentate(e)+"<"+A+">"+E+"</"+A+this.tagEndChar}else b+=this.buildTextValNode(O,A,"",e,r)}}this.options.oneListGroup&&(b=this.buildObjectNode(b,A,M,e)),s+=b}else if(this.options.attributesGroupName&&u===this.options.attributesGroupName){let l=Object.keys(t[u]),b=l.length;for(let M=0;M<b;M++){let z=QS(l[M],!0,this.options,r,n);o+=this.buildAttrPairStr(z,""+t[u][l[M]],c)}}else s+=this.processTextOrObjNode(t[u],A,e,r,n)}return{attrStr:o,val:s}};lr.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+'="'+cc(e)+'"'};function lJe(t,e,r,n,o){let s=this.extractAttributes(t);if(n.push(e,s),this.checkStopNode(n)){let u=this.buildRawContent(t),p=this.buildAttributesForStopNode(t);return n.pop(),this.buildObjectNode(u,e,p,r)}let c=this.j2x(t,r+1,n,o);return n.pop(),e[0]==="?"?this.buildTextValNode("",e,c.attrStr,r,n):t[this.options.textNodeName]!==void 0&&Object.keys(t).length===1?this.buildTextValNode(t[this.options.textNodeName],e,c.attrStr,r,n):this.buildObjectNode(c.val,e,c.attrStr,r)}i(lJe,"processTextOrObjNode");lr.prototype.extractAttributes=function(t){if(!t||typeof t!="object")return null;let e={},r=!1;if(this.options.attributesGroupName&&t[this.options.attributesGroupName]){let n=t[this.options.attributesGroupName];for(let o in n){if(!Object.prototype.hasOwnProperty.call(n,o))continue;let s=o.startsWith(this.options.attributeNamePrefix)?o.substring(this.options.attributeNamePrefix.length):o;e[s]=cc(n[o]),r=!0}}else for(let n in t){if(!Object.prototype.hasOwnProperty.call(t,n))continue;let o=this.isAttribute(n);o&&(e[o]=cc(t[n]),r=!0)}return r?e:null};lr.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.o Line truncated
`)+`
`+this.getCanonicalizedHeadersString(e)+this.getCanonicalizedResourceString(e),n=this.factory.computeHMACSHA256(r);return e.headers.set(ye.AUTHORIZATION,`SharedKey ${this.factory.accountName}:${n}`),e}getHeaderValueToSign(e,r){let n=e.headers.get(r);return!n||r===ye.CONTENT_LENGTH&&n==="0"?"":n}getCanonicalizedHeadersString(e){let r=e.headers.headersArray().filter(o=>o.name.toLowerCase().startsWith(ye.PREFIX_FOR_STORAGE));r.sort((o,s)=>ME(o.name.toLowerCase(),s.name.toLowerCase())),r=r.filter((o,s,a)=>!(s>0&&o.name.toLowerCase()===a[s-1].name.toLowerCase()));let n="";return r.forEach(o=>{n+=`${o.name.toLowerCase().trimRight()}:${o.value.trimLeft()}
`}),n}getCanonicalizedResourceString(e){let r=dE(e.url)||"/",n="";n+=`/${this.factory.accountName}${r}`;let o=bE(e.url),s={};if(o){let a=[];for(let c in o)if(Object.prototype.hasOwnProperty.call(o,c)){let u=c.toLowerCase();s[u]=o[c],a.push(u)}a.sort();for(let c of a)n+=`
${c}:${decodeURIComponent(s[c])}`}return n}};var o1=class extends Xu{static{i(this,"StorageSharedKeyCredential")}accountName;accountKey;constructor(e,r){super(),this.accountName=e,this.accountKey=Buffer.from(r,"base64")}create(e,r){return new nM(e,r,this)}computeHMACSHA256(e){return(0,Rne.createHmac)("sha256",this.accountKey).update(e,"utf8").digest("base64")}};var Q1=ps("storage-common");var Rn;(function(t){t[t.EXPONENTIAL=0]="EXPONENTIAL",t[t.FIXED=1]="FIXED"})(Rn||(Rn={}));var lc={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:Rn.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},lJe=new Yr("The operation was aborted."),oM=class extends fs{static{i(this,"StorageRetryPolicy")}retryOptions;constructor(e,r,n=lc){super(e,r),this.retryOptions={retryPolicyType:n.retryPolicyType?n.retryPolicyType:lc.retryPolicyType,maxTries:n.maxTries&&n.maxTries>=1?Math.floor(n.maxTries):lc.maxTries,tryTimeoutInMs:n.tryTimeoutInMs&&n.tryTimeoutInMs>=0?n.tryTimeoutInMs:lc.tryTimeoutInMs,retryDelayInMs:n.retryDelayInMs&&n.retryDelayInMs>=0?Math.min(n.retryDelayInMs,n.maxRetryDelayInMs?n.maxRetryDelayInMs:lc.maxRetryDelayInMs):lc.retryDelayInMs,maxRetryDelayInMs:n.maxRetryDelayInMs&&n.maxRetryDelayInMs>=0?n.maxRetryDelayInMs:lc.maxRetryDelayInMs,secondaryHost:n.secondaryHost?n.secondaryHost:lc.secondaryHost}}async sendRequest(e){return this.attemptSendRequest(e,!1,1)}async attemptSendRequest(e,r,n){let o=e.clone(),s=r||!this.retryOptions.secondaryHost||!(e.method==="GET"||e.method==="HEAD"||e.method==="OPTIONS")||n%2===1;s||(o.url=lE(o.url,this.retryOptions.secondaryHost)),this.retryOptions.tryTimeoutInMs&&(o.url=Ac(o.url,Xi.Parameters.TIMEOUT,Math.floor(this.retryOptions.tryTimeoutInMs/1e3).toString()));let a;try{if(Q1.info(`RetryPolicy: =====> Try=${n} ${s?"Primary":"Secondary"}`),a=await this._nextPolicy.sendRequest(o),!this.shouldRetry(s,n,a))return a;r=r||!s&&a.status===404}catch(c){if(Q1.error(`RetryPolicy: Caught error, message: ${c.message}, code: ${c.code}`),!this.shouldRetry(s,n,a,c))throw c}return await this.delay(s,n,e.abortSignal),this.attemptSendRequest(e,r,++n)}shouldRetry(e,r,n,o){if(r>=this.retryOptions.maxTries)return Q1.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(o){for(let a of s)if(o.name.toUpperCase().includes(a)||o.message.toUpperCase().includes(a)||o.code&&o.code.toString().toUpperCase()===a)return Q1.info(`RetryPolicy: Network error ${a} found, will retry.`),!0}if(n||o){let a=n?n.status:o?o.statusCode:0;if(!e&&a===404)return Q1.info("RetryPolicy: Secondary access with 404, will retry."),!0;if(a===503||a===500)return Q1.info(`RetryPolicy: Will retry for status code ${a}.`),!0}if(n&&n?.status>=400){let a=n.headers.get(ye.X_MS_CopySourceErrorCode);if(a!==void 0)switch(a){case"InternalError":case"OperationTimedOut":case"ServerBusy":return!0}}return o?.code==="PARSE_ERROR"&&o?.message.startsWith('Error "Error: Unclosed root tag')?(Q1.info("RetryPolicy: Incomplete XML response likely due to service timeout, will retry."),!0):!1}async delay(e,r,n){let o=0;if(e)switch(this.retryOptions.retryPolicyType){case Rn.EXPONENTIAL:o=Math.min((Math.pow(2,r-1)-1)*this.retryOptions.retryDelayInMs,this.retryOptions.maxRetryDelayInMs);break;case Rn.FIXED:o=this.retryOptions.retryDelayInMs;break}else o=Math.random()*1e3;return Q1.info(`RetryPolicy: Delay for ${o}ms`),fE(o,n,lJe)}};var sM=class{static{i(this,"StorageRetryPolicyFactory")}retryOptions;constructor(e){this.retryOptions=e}create(e,r){return new oM(e,r,this.retryOptions)}};var dJe="storageBrowserPolicy";function Nne(){return{name:dJe,async sendRequest(t,e){return l0||((t.method==="GET"||t.method==="HEAD")&&(t.url=Ac(t.url,Xi.Parameters.FORCE_BROWSER_NO_CACHE,new Date().getTime().toString())),t.headers.delete(ye.COOKIE),t.headers.delete(ye.CONTENT_LENGTH)),e(t)}}}i(Nne,"storageBrowserPolicy");var bJe="StorageCorrectContentLengthPolicy";function wne(){function t(e){e.body&&(typeof e.body=="string"||Buffer.isBuffer(e.body))&&e.body.length>0&&e.headers.set(ye.CONTENT_LENGTH,Buffer.byteLength(e.body))}return i(t,"correctContentLength"),{name:bJe,async sendRequest(e,r){return t(e),r(e)}}}i(wne,"storageCorrectContentLengthPolicy");var fJe="storageRetryPolicy",_l={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:Rn.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},MJe=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"],hJe=new Yr("The operation was aborted.");function Sne(t={}){let e=t.retryPolicyType??_l.retryPolicyType,r=t.maxTries??_l.maxTries,n=t.retryDelayInMs??_l.retryDelayInMs,o=t.maxRetryDelayInMs??_l.maxRetryDelayInMs,s=t.secondaryHost??_l.secondaryHost,a=t.tryTimeoutInMs??_l.tryTimeoutInMs;function c({isPrimaryRetry:p,attempt:A,response:l,error:b}){if(A>=r)return Line truncated
`+this.getCanonicalizedHeadersString(e)+this.getCanonicalizedResourceString(e),n=this.factory.computeHMACSHA256(r);return e.headers.set(ye.AUTHORIZATION,`SharedKey ${this.factory.accountName}:${n}`),e}getHeaderValueToSign(e,r){let n=e.headers.get(r);return!n||r===ye.CONTENT_LENGTH&&n==="0"?"":n}getCanonicalizedHeadersString(e){let r=e.headers.headersArray().filter(o=>o.name.toLowerCase().startsWith(ye.PREFIX_FOR_STORAGE));r.sort((o,s)=>mE(o.name.toLowerCase(),s.name.toLowerCase())),r=r.filter((o,s,a)=>!(s>0&&o.name.toLowerCase()===a[s-1].name.toLowerCase()));let n="";return r.forEach(o=>{n+=`${o.name.toLowerCase().trimRight()}:${o.value.trimLeft()}
`}),n}getCanonicalizedResourceString(e){let r=fE(e.url)||"/",n="";n+=`/${this.factory.accountName}${r}`;let o=ME(e.url),s={};if(o){let a=[];for(let c in o)if(Object.prototype.hasOwnProperty.call(o,c)){let u=c.toLowerCase();s[u]=o[c],a.push(u)}a.sort();for(let c of a)n+=`
${c}:${decodeURIComponent(s[c])}`}return n}};var o1=class extends Xu{static{i(this,"StorageSharedKeyCredential")}accountName;accountKey;constructor(e,r){super(),this.accountName=e,this.accountKey=Buffer.from(r,"base64")}create(e,r){return new nM(e,r,this)}computeHMACSHA256(e){return(0,wne.createHmac)("sha256",this.accountKey).update(e,"utf8").digest("base64")}};var Q1=As("storage-common");var wn;(function(t){t[t.EXPONENTIAL=0]="EXPONENTIAL",t[t.FIXED=1]="FIXED"})(wn||(wn={}));var pc={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:wn.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},OJe=new $r("The operation was aborted."),oM=class extends Ms{static{i(this,"StorageRetryPolicy")}retryOptions;constructor(e,r,n=pc){super(e,r),this.retryOptions={retryPolicyType:n.retryPolicyType?n.retryPolicyType:pc.retryPolicyType,maxTries:n.maxTries&&n.maxTries>=1?Math.floor(n.maxTries):pc.maxTries,tryTimeoutInMs:n.tryTimeoutInMs&&n.tryTimeoutInMs>=0?n.tryTimeoutInMs:pc.tryTimeoutInMs,retryDelayInMs:n.retryDelayInMs&&n.retryDelayInMs>=0?Math.min(n.retryDelayInMs,n.maxRetryDelayInMs?n.maxRetryDelayInMs:pc.maxRetryDelayInMs):pc.retryDelayInMs,maxRetryDelayInMs:n.maxRetryDelayInMs&&n.maxRetryDelayInMs>=0?n.maxRetryDelayInMs:pc.maxRetryDelayInMs,secondaryHost:n.secondaryHost?n.secondaryHost:pc.secondaryHost}}async sendRequest(e){return this.attemptSendRequest(e,!1,1)}async attemptSendRequest(e,r,n){let o=e.clone(),s=r||!this.retryOptions.secondaryHost||!(e.method==="GET"||e.method==="HEAD"||e.method==="OPTIONS")||n%2===1;s||(o.url=bE(o.url,this.retryOptions.secondaryHost)),this.retryOptions.tryTimeoutInMs&&(o.url=uc(o.url,Gi.Parameters.TIMEOUT,Math.floor(this.retryOptions.tryTimeoutInMs/1e3).toString()));let a;try{if(Q1.info(`RetryPolicy: =====> Try=${n} ${s?"Primary":"Secondary"}`),a=await this._nextPolicy.sendRequest(o),!this.shouldRetry(s,n,a))return a;r=r||!s&&a.status===404}catch(c){if(Q1.error(`RetryPolicy: Caught error, message: ${c.message}, code: ${c.code}`),!this.shouldRetry(s,n,a,c))throw c}return await this.delay(s,n,e.abortSignal),this.attemptSendRequest(e,r,++n)}shouldRetry(e,r,n,o){if(r>=this.retryOptions.maxTries)return Q1.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(o){for(let a of s)if(o.name.toUpperCase().includes(a)||o.message.toUpperCase().includes(a)||o.code&&o.code.toString().toUpperCase()===a)return Q1.info(`RetryPolicy: Network error ${a} found, will retry.`),!0}if(n||o){let a=n?n.status:o?o.statusCode:0;if(!e&&a===404)return Q1.info("RetryPolicy: Secondary access with 404, will retry."),!0;if(a===503||a===500)return Q1.info(`RetryPolicy: Will retry for status code ${a}.`),!0}if(n&&n?.status>=400){let a=n.headers.get(ye.X_MS_CopySourceErrorCode);if(a!==void 0)switch(a){case"InternalError":case"OperationTimedOut":case"ServerBusy":return!0}}return o?.code==="PARSE_ERROR"&&o?.message.startsWith('Error "Error: Unclosed root tag')?(Q1.info("RetryPolicy: Incomplete XML response likely due to service timeout, will retry."),!0):!1}async delay(e,r,n){let o=0;if(e)switch(this.retryOptions.retryPolicyType){case wn.EXPONENTIAL:o=Math.min((Math.pow(2,r-1)-1)*this.retryOptions.retryDelayInMs,this.retryOptions.maxRetryDelayInMs);break;case wn.FIXED:o=this.retryOptions.retryDelayInMs;break}else o=Math.random()*1e3;return Q1.info(`RetryPolicy: Delay for ${o}ms`),hE(o,n,OJe)}};var sM=class{static{i(this,"StorageRetryPolicyFactory")}retryOptions;constructor(e){this.retryOptions=e}create(e,r){return new oM(e,r,this.retryOptions)}};var EJe="storageBrowserPolicy";function Sne(){return{name:EJe,async sendRequest(t,e){return l0||((t.method==="GET"||t.method==="HEAD")&&(t.url=uc(t.url,Gi.Parameters.FORCE_BROWSER_NO_CACHE,new Date().getTime().toString())),t.headers.delete(ye.COOKIE),t.headers.delete(ye.CONTENT_LENGTH)),e(t)}}}i(Sne,"storageBrowserPolicy");var CJe="StorageCorrectContentLengthPolicy";function Fne(){function t(e){e.body&&(typeof e.body=="string"||Buffer.isBuffer(e.body))&&e.body.length>0&&e.headers.set(ye.CONTENT_LENGTH,Buffer.byteLength(e.body))}return i(t,"correctContentLength"),{name:CJe,async sendRequest(e,r){return t(e),r(e)}}}i(Fne,"storageCorrectContentLengthPolicy");var yJe="storageRetryPolicy",Ql={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:wn.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},BJe=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"],qJe=new $r("The operation was aborted.");function Wne(t={}){let e=t.retryPolicyType??Ql.retryPolicyType,r=t.maxTries??Ql.maxTries,n=t.retryDelayInMs??Ql.retryDelayInMs,o=t.maxRetryDelayInMs??Ql.maxRetryDelayInMs,s=t.secondaryHost??Ql.secondaryHost,a=t.tryTimeoutInMs??Ql.tryTimeoutInMs;function c({isPrimaryRetry:p,attempt:A,response:l,error:b}){if(A>=r)return Line truncated
`)+`
`+n(s)+o(s),c=(0,Fne.createHmac)("sha256",t.accountKey).update(a,"utf8").digest("base64");s.headers.set(ye.AUTHORIZATION,`SharedKey ${t.accountName}:${c}`)}i(e,"signRequest");function r(s,a){let c=s.headers.get(a);return!c||a===ye.CONTENT_LENGTH&&c==="0"?"":c}i(r,"getHeaderValueToSign");function n(s){let a=[];for(let[u,p]of s.headers)u.toLowerCase().startsWith(ye.PREFIX_FOR_STORAGE)&&a.push({name:u,value:p});a.sort((u,p)=>ME(u.name.toLowerCase(),p.name.toLowerCase())),a=a.filter((u,p,A)=>!(p>0&&u.name.toLowerCase()===A[p-1].name.toLowerCase()));let c="";return a.forEach(u=>{c+=`${u.name.toLowerCase().trimRight()}:${u.value.trimLeft()}
`}),c}i(n,"getCanonicalizedHeadersString");function o(s){let a=dE(s.url)||"/",c="";c+=`/${t.accountName}${a}`;let u=bE(s.url),p={};if(u){let A=[];for(let l in u)if(Object.prototype.hasOwnProperty.call(u,l)){let b=l.toLowerCase();p[b]=u[l],A.push(b)}A.sort();for(let l of A)c+=`
${l}:${decodeURIComponent(p[l])}`}return c}return i(o,"getCanonicalizedResourceString"),{name:mJe,async sendRequest(s,a){return e(s),a(s)}}}i(_S,"storageSharedKeyCredentialPolicy");var zJe="storageRequestFailureDetailsParserPolicy";function Wne(){return{name:zJe,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}}}}i(Wne,"storageRequestFailureDetailsParserPolicy");var xne=require("node:crypto");var hE=class{static{i(this,"UserDelegationKeyCredential")}accountName;userDelegationKey;key;constructor(e,r){this.accountName=e,this.userDelegationKey=r,this.key=Buffer.from(r.value,"base64")}computeHMACSHA256(e){return(0,xne.createHmac)("sha256",this.key).update(e,"utf8").digest("base64")}};var mE="12.31.0",zE="2026-02-06";var gE="https://storage.azure.com/.default",Vi={Parameters:{FORCE_BROWSER_NO_CACHE:"_",SIGNATURE:"sig",SNAPSHOT:"snapshot",VERSIONID:"versionid",TIMEOUT:"timeout"}};var go="",PS="*",gJe=1*1024*1024;var OJe=4*gJe;var Tne="AES256",vne="DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;",Lne=["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"],Qne=["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"],_ne="BlobUsesCustomerSpecifiedEncryption",Pne="BlobDoesNotUseCustomerSpecifiedEncryption",kne=["10000","10001","10002","10003","10004","10100","10101","10102","10103","10104","11000","11001","11002","11003","11004","11100","11101","11102","11103","11104"];function Yi(t){if(!t||typeof t!="object")return!1;let e=t;return Array.isArray(e.factories)&&typeof e.options=="object"&&typeof e.toServiceClientOptions=="function"}i(Yi,"isPipelineLike");var iM=class{static{i(this,"Pipeline")}factories;options;constructor(e,r={}){this.factories=e,this.options=r}toServiceClientOptions(){return{httpClient:this.options.httpClient,requestPolicyFactories:this.factories}}};function O1(t,e={}){t||(t=new H0);let r=new iM([],e);return r._credential=t,r}i(O1,"newPipeline");function EJe(t){let e=[CJe,Une,yJe,BJe,qJe,DJe,RJe];if(t.factories.length){let r=t.factories.filter(n=>!e.some(o=>o(n)));if(r.length){let n=r.some(o=>IJe(o));return{wrappedPolicies:MS(r),afterRetry:n}}}}i(EJe,"processDownlevelPipeline");function kS(t){let{httpClient:e,...r}=t.options,n=t._coreHttpClient;n||(n=e?hS(e):QS(),t._coreHttpClient=n);let o=t._corePipeline;if(!o){let s=`azsdk-js-azure-storage-blob/${mE}`,a=r.userAgentOptions&&r.userAgentOptions.userAgentPrefix?`${r.userAgentOptions.userAgentPrefix} ${s}`:`${s}`;o=kf({...r,loggingOptions:{additionalAllowedHeaderNames:Lne,additionalAllowedQueryParameters:Qne,logger:aE.info},userAgentOptions:{userAgentPrefix:a},serializationOptions:{stringifyXML:iE,serializerOptions:{xml:{xmlCharKey:"#"}}},deserializationOptions:{parseXML:vS,serializerOptions:{xml:{xmlCharKey:"#"}}}}),o.removePolicy({phase:"Retry"}),o.removePolicy({name:X6}),o.addPolicy(wne()),o.addPolicy(Sne(r.retryOptions),{phase:"R Line truncated
`),s=e.computeHMACSHA256(o);return{sasQueryParameters:new Bo(t.version,s,n,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType),stringToSign:o}}i(Eje,"generateBlobSASQueryParameters20150405");function Cje(t,e){if(t=tp(t),!t.identifier&&!(t.permissions&&t.expiresOn))throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let o;t.permissions&&(t.blobName?o=Ss.parse(t.permissions.toString()).toString():o=Fs.parse(t.permissions.toString()).toString());let s=[o||"",t.startsOn?d0(t.startsOn,!1):"",t.expiresOn?d0(t.expiresOn,!1):"",ep(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?yo(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.cacheControl?t.cacheControl:"",t.contentDisposition?t.contentDisposition:"",t.contentEncoding?t.contentEncoding:"",t.contentLanguage?t.contentLanguage:"",t.contentType?t.contentType:""].join(`
`),a=e.computeHMACSHA256(s);return{sasQueryParameters:new Bo(t.version,a,o,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}}i(Cje,"generateBlobSASQueryParameters20181109");function yje(t,e){if(t=tp(t),!t.identifier&&!(t.permissions&&t.expiresOn))throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let o;t.permissions&&(t.blobName?o=Ss.parse(t.permissions.toString()).toString():o=Fs.parse(t.permissions.toString()).toString());let s=[o||"",t.startsOn?d0(t.startsOn,!1):"",t.expiresOn?d0(t.expiresOn,!1):"",ep(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?yo(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.encryptionScope,t.cacheControl?t.cacheControl:"",t.contentDisposition?t.contentDisposition:"",t.contentEncoding?t.contentEncoding:"",t.contentLanguage?t.contentLanguage:"",t.contentType?t.contentType:""].join(`
`),a=e.computeHMACSHA256(s);return{sasQueryParameters:new Bo(t.version,a,o,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}}i(yje,"generateBlobSASQueryParameters20201206");function Bje(t,e){if(t=tp(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let o;t.permissions&&(t.blobName?o=Ss.parse(t.permissions.toString()).toString():o=Fs.parse(t.permissions.toString()).toString());let s=[o||"",t.startsOn?d0(t.startsOn,!1):"",t.expiresOn?d0(t.expiresOn,!1):"",ep(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?d0(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?d0(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.ipRange?yo(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),a=e.computeHMACSHA256(s);return{sasQueryParameters:new Bo(t.version,a,o,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}}i(Bje,"generateBlobSASQueryParametersUDK20181109");function qje(t,e){if(t=tp(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let o;t.permissions&&(t.blobName?o=Ss.parse(t.permissions.toString()).toString():o=Fs.parse(t.permissions.toString()).toString());let s=[o||"",t.startsOn?d0(t.startsOn,!1):"",t.expiresOn?d0(t.expiresOn,!1):"",ep(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?d0(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?d0(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?yo(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),a=e.computeHMACSHA256(s);return{sasQueryParameters:new Bo(t.version,a,o,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}}i(qje,"generateBlobSASQueryParametersUDK20200210");function Dje(t,e){if(t=tp(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let o;t.permissions&&(t.blobName?o=Ss.parse(t.permissions.toString()).toString():o=Fs.parse(t.permissions.toString()).toString());let s=[o||"",t.startsOn?d0(t.startsOn,!1):"",t.expiresOn?d0(t.expiresOn,!1):"",ep(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?d0(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?d0(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?yo(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),a=e.computeHMACSHA256(s);return{sasQueryParameters:new Bo(t.version,a,o,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}}i(Dje,"generateBlobSASQueryParametersUDK20201206");function Ije(t,e){if(t=tp(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let o;t.permissions&&(t.blobName?o=Ss.parse(t.permissions.toString()).toString():o=Fs.parse(t.permissions.toString()).toString());let s=[o||"",t.startsOn?d0(t.startsOn,!1):"",t.expiresOn?d0(t.expiresOn,!1):"",ep(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?d0(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?d0(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,void 0,t.delegatedUserObjectId,t.ipRange?yo(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),a=e.computeHMACSHA256(s);return{sasQueryParameters:new Bo(t.version,a,o,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}}i(Ije,"generateBlobSASQueryParametersUDK20250705");function ep(t,e,r){let n=[`/blob/${t}/${e}`];return r&&n.push(`/${r}`),n.join("")}i(ep,"getCanonicalName");function tp(t){let e=t.version?t.version:zE;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}i(tp,"SASSignatureValuesSanityCheckAndAutofill");var mM=class{static{i(this,"BlobLeaseClient")}_leaseId;_url;_containerOrBlobOperation;_isContainer;get leaseId(){return this._leaseId}get url(){return this._url}constructor(e,r){let n=e.storageClientContext;this._url=e.url,e.name===void 0?(this._isContainer=!0,this._containerOrBlobOperation=n.container):(this._isContainer=!1,this._containerOrBlobOperation=n.blob),r||(r=Sl()),this._leaseId=r}async acquireLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==go||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==go||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 ue.withSpan("BlobLeaseClient-acquireLease",r,async n=>de(await this._containerOrBlobOperation.acquireLease({abortSignal:r.abortSignal,duration:e,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},proposedLeaseId:this._leaseId,tracingOptions:n.tracingOptions})))}async changeLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==go||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==go||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 ue.withSpan("BlobLeaseClient-changeLease",r,async n=>{let o=de(await this._containerOrBlobOperation.changeLease(this._leaseId,e,{abortSignal:r.abortSignal,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},tracingOptions:n.tracingOptions}));return this._leaseId=e,o})}async releaseLease(e={}){if(this._isContainer&&(e.conditions?.ifMatch&&e.conditions?.ifMatch!==go||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==go||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 ue.withSpan("BlobLeaseClient-releaseLease",e,async r=>de(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!==go||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==go||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 val 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"}};Kl.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var sp=class extends Error{static{i(this,"UsageError")}constructor(){super(`Cache storage quota has been hit. Unable to upload any new cache entries.
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"}};sp.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var IM=class extends Error{static{i(this,"RateLimitError")}constructor(e){super(e),this.name="RateLimitError"}};var LKe=function(t,e,r,n){function o(s){return s instanceof r?s:new r(function(a){a(s)})}return i(o,"adopt"),new(r||(r=Promise))(function(s,a){function c(A){try{p(n.next(A))}catch(l){a(l)}}i(c,"fulfilled");function u(A){try{p(n.throw(A))}catch(l){a(l)}}i(u,"rejected");function p(A){A.done?s(A.value):o(A.value).then(c,u)}i(p,"step"),p((n=n.apply(t,e||[])).next())})},ST=class{static{i(this,"UploadProgress")}constructor(e){this.contentLength=e,this.sentBytes=0,this.displayedComplete=!1,this.startTime=Date.now()}setSentBytes(e){this.sentBytes=e}getTransferredBytes(){return this.sentBytes}isDone(){return this.getTransferredBytes()===this.contentLength}display(){if(this.displayedComplete)return;let e=this.sentBytes,r=(100*(e/this.contentLength)).toFixed(1),n=Date.now()-this.startTime,o=(e/(1024*1024)/(n/1e3)).toFixed(1);S(`Sent ${e} of ${this.contentLength} (${r}%), ${o} MBs/sec`),this.isDone()&&(this.displayedComplete=!0)}onProgress(){return e=>{this.setSentBytes(e.loadedBytes)}}startDisplayTimer(e=1e3){let r=i(()=>{this.display(),this.isDone()||(this.timeoutHandle=setTimeout(r,e))},"displayCallback");this.timeoutHandle=setTimeout(r,e)}stopDisplayTimer(){this.timeoutHandle&&(clearTimeout(this.timeoutHandle),this.timeoutHandle=void 0),this.display()}};function Xse(t,e,r){return LKe(this,void 0,void 0,function*(){var n;let o=new ta(t),s=o.getBlockBlobClient(),a=new ST((n=r?.archiveSizeBytes)!==null&&n!==void 0?n:0),c={blockSize:r?.uploadChunkSize,concurrency:r?.uploadConcurrency,maxSingleShotSize:128*1024*1024,onProgress:a.onProgress()};try{a.startDisplayTimer(),N(`BlobClient: ${o.name}:${o.accountName}:${o.containerName}`);let u=yield s.uploadFile(e,c);if(u._response.status>=400)throw new yC(`uploadCacheArchiveSDK: upload failed with status code ${u._response.status}`);return u}catch(u){throw r0(`uploadCacheArchiveSDK: internal error uploading cache archive: ${u.message}`),u}finally{a.stopDisplayTimer()}})}i(Xse,"uploadCacheArchiveSDK");var Yse=w(require("buffer"),1),Ws=w(require("fs"),1),Jse=w(require("stream"),1),$se=w(require("util"),1);var BC=function(t,e,r,n){function o(s){return s instanceof r?s:new r(function(a){a(s)})}return i(o,"adopt"),new(r||(r=Promise))(function(s,a){function c(A){try{p(n.next(A))}catch(l){a(l)}}i(c,"fulfilled");function u(A){try{p(n.throw(A))}catch(l){a(l)}}i(u,"rejected");function p(A){A.done?s(A.value):o(A.value).then(c,u)}i(p,"step"),p((n=n.apply(t,e||[])).next())})};function qC(t){return t?t>=200&&t<300:!1}i(qC,"isSuccessStatusCode");function QKe(t){return t?t>=500:!0}i(QKe,"isServerErrorStatusCode");function _Ke(t){return t?[n1.BadGateway,n1.ServiceUnavailable,n1.GatewayTimeout].includes(t):!1}i(_Ke,"isRetryableStatusCode");function PKe(t){return BC(this,void 0,void 0,function*(){return new Promise(e=>setTimeout(e,t))})}i(PKe,"sleep");function Vse(t,e,r){return BC(this,arguments,void 0,function*(n,o,s,a=JO,c=$O,u=void 0){let p="",A=1;for(;A<=a;){let l,b,M=!1;try{l=yield o()}catch(z){u&&(l=u(z)),M=!0,p=z.message}if(l&&(b=s(l),!QKe(b)))return l;if(b&&(M=_Ke(b),p=`Cache service responded with ${b}`),N(`${n} - Attempt ${A} of ${a} failed with error: ${p}`),!M){N(`${n} - Error is not retryable`);break}yield PKe(c),A++}throw Error(`${n} failed: ${p}`)})}i(Vse,"retry");function RM(t,e){return BC(this,arguments,void 0,function*(r,n,o=JO,s=$O){return yield Vse(r,n,a=>a.statusCode,o,s,a=>{if(a instanceof is)return{statusCode:a.statusCode,result:null,headers:{},error:a}})})}i(RM,"retryTypedResponse");function Zl(t,e){return BC(this,arguments,void 0,function*(r,n,o=JO,s=$O){return yield Vse(r,n,a=>a.message.statusCode,o,s)})}i(Zl,"retryHttpClientResponse");var Wn=function(t,e,r,n){function o(s){return s instanceof r?s:new r(function(a){a(s)})}return i(o,"adopt"),new(r||(r=Promise))(function(s,a){function c(A){try{p(n.next(A))}catch(l){a(l)}}i(c,"fulfilled");function u(A){try{p(n.throw(A))}catch(l){a(l)}}i(u,"rejected");function p(A){A.done?s(A.value):o(A.value).then(c,u)}i(p,"step"),p((n=n.apply(t,e||[])).next())})};function kKe(t,e){return Wn(this,void 0,void 0,function*(){yield $se.promisify(Jse.pipeline)(t.message,e)})}i(kKe,"pipeResponseToStream");var DC=class{static{i(this,"DownloadProgress")}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,N(`Downloading segment at offset ${this.segmentOffset} with length ${this.segmentSize}...`)}setReceivedBytes(e){th Line truncated
Other caches with similar key:`);for(let c of s?.artifactCaches||[])N(`Cache Key: ${c?.cacheKey}, Cache Version: ${c?.cacheVersion}, Cache Scope: ${c?.scope}, Cache Created: ${c?.creationTime}`)}}})}i(JKe,"printCachesListForDiagnostics");function vT(t,e,r){return dr(this,void 0,void 0,function*(){let n=new uie.URL(t),o=eie(r);n.hostname.endsWith(".blob.core.windows.net")?o.useAzureSdk?yield Kse(t,e,o):o.concurrentBlobDownloads?yield jse(t,e,o):yield IC(t,e):yield IC(t,e)})}i(vT,"downloadCache");function Aie(t,e,r){return dr(this,void 0,void 0,function*(){let n=TT(),o=Cl(e,r?.compressionMethod,r?.enableCrossOsArchive),s={key:t,version:o,cacheSize:r?.cacheSize};return yield RM("reserveCache",()=>dr(this,void 0,void 0,function*(){return n.postJson(wM("caches"),s)}))})}i(Aie,"reserveCache");function cie(t,e){return`bytes ${t}-${e}/*`}i(cie,"getContentRange");function $Ke(t,e,r,n,o){return dr(this,void 0,void 0,function*(){N(`Uploading chunk of size ${o-n+1} bytes at offset ${n} with content range: ${cie(n,o)}`);let s={"Content-Type":"application/octet-stream","Content-Range":cie(n,o)},a=yield Zl(`uploadChunk (start: ${n}, end: ${o})`,()=>dr(this,void 0,void 0,function*(){return t.sendStream("PATCH",e,r(),s)}));if(!qC(a.message.statusCode))throw new Error(`Cache service responded with ${a.message.statusCode} during upload chunk.`)})}i($Ke,"uploadChunk");function jKe(t,e,r,n){return dr(this,void 0,void 0,function*(){let o=ss(r),s=wM(`caches/${e.toString()}`),a=e2.openSync(r,"r"),c=FT(n),u=s6("uploadConcurrency",c.uploadConcurrency),p=s6("uploadChunkSize",c.uploadChunkSize),A=[...new Array(u).keys()];N("Awaiting all uploads");let l=0;try{yield Promise.all(A.map(()=>dr(this,void 0,void 0,function*(){for(;l<o;){let b=Math.min(o-l,p),M=l,z=l+b-1;l+=p,yield $Ke(t,s,()=>e2.createReadStream(r,{fd:a,start:M,end:z,autoClose:!1}).on("error",O=>{throw new Error(`Cache upload failed because file read failed with ${O.message}`)}),M,z)}})))}finally{e2.closeSync(a)}})}i(jKe,"uploadFile");function KKe(t,e,r){return dr(this,void 0,void 0,function*(){let n={size:r};return yield RM("commitCache",()=>dr(this,void 0,void 0,function*(){return t.postJson(wM(`caches/${e.toString()}`),n)}))})}i(KKe,"commitCache");function LT(t,e,r,n){return dr(this,void 0,void 0,function*(){if(FT(n).useAzureSdk){if(!r)throw new Error("Azure Storage SDK can only be used when a signed URL is provided.");yield Xse(r,e,n)}else{let s=TT();N("Upload cache"),yield jKe(s,t,e,n),N("Commiting cache");let a=ss(e);S(`Cache Size: ~${Math.round(a/(1024*1024))} MB (${a} B)`);let c=yield KKe(s,t,a);if(!qC(c.statusCode))throw new Error(`Cache service responded with ${c.statusCode} during commit cache.`);S("Cache saved successfully")}})}i(LT,"saveCache");var sae=w(Kie(),1),y1=w(C1(),1),en=w(C1(),1),pp=w(C1(),1),Ap=w(C1(),1),lp=w(C1(),1);var Sv=w(C1(),1),Fv=w(C1(),1),rae=w(C1(),1),nae=w(C1(),1),oae=w(C1(),1);var Rv=w(C1(),1),Nv=w(C1(),1),Zie=w(C1(),1),eae=w(C1(),1),tae=w(C1(),1);var wv=class extends tae.MessageType{static{i(this,"CacheScope$Type")}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,eae.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,Zie.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,n,o){let s=o??this.create(),a=e.pos+r;for(;e.pos<a;){let[c,u]=e.tag();switch(c){case 1:s.scope=e.string();break;case 2:s.permission=e.int64().toString();break;default:let p=n.readUnknownField;if(p==="throw")throw new globalThis.Error(`Unknown field ${c} (wire type ${u}) for ${this.typeName}`);let A=e.skip(u);p!==!1&&(p===!0?Nv.UnknownFieldHandler.onRead:p)(this.typeName,s,c,u,A)}}return s}internalBinaryWrite(e,r,n){e.scope!==""&&r.tag(1,Rv.WireType.LengthDelimited).string(e.scope),e.permission!=="0"&&r.tag(2,Rv.WireType.Varint).int64(e.permission);let o=n.writeUnknownFields;return o!==!1&&(o==!0?Nv.UnknownFieldHandler.onWrite:o)(this.typeName,e,r),r}},fy=new wv;var Wv=class extends oae.MessageType{static{i(this,"CacheMetadata$Type")}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:i(()=>fy,"T")}])}create(e){let r={repositoryId:"0",scope:[]};return globalThis.Object.defineProperty(r,nae.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,rae.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,n,o){let s=o??this.create(),a=e.pos+r;for(;e.pos<a;){let[c,u]=e.tag();switch(c){case 1:s.repositoryId=e.int64().toString();break;case 2:s.scope.push(fy.internalBinaryRead(e,e.uint32(),n));break;default:let p=n.readUnknownField;if(p==="throw")throw new globalThis.Error(`Unknown field ${c} (wire type ${u}) for ${this.typeName}`);let A=e.skip(u);p!==!1&&(p===!0?Fv.UnknownFieldHandler.onRead:p)(this.typeName,s,c,u,A)}}return s}internalBinaryWrite(e,r,n){e.repositoryId!== Line truncated
`));let n=yield Jv(r,"create");yield $v(n,t)})}i(Kv,"createTar");var M2=function(t,e,r,n){function o(s){return s instanceof r?s:new r(function(a){a(s)})}return i(o,"adopt"),new(r||(r=Promise))(function(s,a){function c(A){try{p(n.next(A))}catch(l){a(l)}}i(c,"fulfilled");function u(A){try{p(n.throw(A))}catch(l){a(l)}}i(u,"rejected");function p(A){A.done?s(A.value):o(A.value).then(c,u)}i(p,"step"),p((n=n.apply(t,e||[])).next())})},Io=class t extends Error{static{i(this,"ValidationError")}constructor(e){super(e),this.name="ValidationError",Object.setPrototypeOf(this,t.prototype)}},dp=class t extends Error{static{i(this,"ReserveCacheError")}constructor(e){super(e),this.name="ReserveCacheError",Object.setPrototypeOf(this,t.prototype)}},Zv="cache write denied:",zy=class t extends dp{static{i(this,"CacheWriteDeniedError")}constructor(e){super(e),this.name="CacheWriteDeniedError",Object.setPrototypeOf(this,t.prototype)}},uae=jO,gy=class t extends Error{static{i(this,"CacheReadDeniedError")}constructor(e){super(e),this.name="CacheReadDeniedError",Object.setPrototypeOf(this,t.prototype)}},Oy=class t extends Error{static{i(this,"FinalizeCacheError")}constructor(e){super(e),this.name="FinalizeCacheError",Object.setPrototypeOf(this,t.prototype)}};function pae(t){if(!t||t.length===0)throw new Io("Path Validation Error: At least one directory or file path is required")}i(pae,"checkPaths");function eL(t){if(t.length>512)throw new Io(`Key Validation Error: ${t} cannot be larger than 512 characters.`);if(!/^[^,]*$/.test(t))throw new Io(`Key Validation Error: ${t} cannot contain commas.`)}i(eL,"checkKey");function tL(){return NM()==="v2"?!!process.env.ACTIONS_RESULTS_URL:!!process.env.ACTIONS_CACHE_URL}i(tL,"isFeatureAvailable");function Aae(t,e,r,n){return M2(this,arguments,void 0,function*(o,s,a,c,u=!1){let p=NM();N(`Cache service version: ${p}`),pae(o);let A=xT();if(!rie(A)){S(`Cache restore skipped: the effective cache-mode '${A}' does not permit reads.`),N(`Skipped restore for paths [${o.join(", ")}] with primary key '${s}'.`);return}return p==="v2"?yield d00(o,s,a,c,u):yield l00(o,s,a,c,u)})}i(Aae,"restoreCache");function l00(t,e,r,n){return M2(this,arguments,void 0,function*(o,s,a,c,u=!1){var p;a=a||[];let A=[s,...a];if(N("Resolved Keys:"),N(JSON.stringify(A)),A.length>10)throw new Io("Key Validation Error: Keys are limited to a maximum of 10.");for(let M of A)eL(M);let l=yield Rf(),b="";try{let M;try{M=yield pie(A,o,{compressionMethod:l,enableCrossOsArchive:u})}catch(O){let y=(p=O?.message)!==null&&p!==void 0?p:"";throw y.includes(uae)?new gy(y):O}if(!M?.archiveLocation)return;if(c?.lookupOnly)return S("Lookup only - skipping download"),M.cacheKey;b=VM.join(yield Df(),nc(l)),N(`Archive Path: ${b}`),yield vT(M.archiveLocation,b,c),vi()&&(yield XM(b,l));let z=ss(b);return S(`Cache Size: ~${Math.round(z/(1024*1024))} MB (${z} B)`),yield jv(b,l),S("Cache restored successfully"),M.cacheKey}catch(M){let z=M;if(z.name===Io.name)throw M;z instanceof is&&typeof z.statusCode=="number"&&z.statusCode>=500?ll(`Failed to restore: ${M.message}`):r0(`Failed to restore: ${M.message}`)}finally{try{yield If(b)}catch(M){N(`Failed to delete archive: ${M}`)}}})}i(l00,"restoreCacheV1");function d00(t,e,r,n){return M2(this,arguments,void 0,function*(o,s,a,c,u=!1){var p;c=Object.assign(Object.assign({},c),{useAzureSdk:!0}),a=a||[];let A=[s,...a];if(N("Resolved Keys:"),N(JSON.stringify(A)),A.length>10)throw new Io("Key Validation Error: Keys are limited to a maximum of 10.");for(let b of A)eL(b);let l="";try{let b=Yv(),M=yield Rf(),z={key:s,restoreKeys:a,version:Cl(o,M,u)},O;try{O=yield b.GetCacheEntryDownloadURL(z)}catch(B){let q=(p=B?.message)!==null&&p!==void 0?p:"";throw q.includes(uae)?new gy(q):B}if(!O.ok){N(`Cache not found for version ${z.version} of keys: ${A.join(", ")}`);return}if(z.key!==O.matchedKey?S(`Cache hit for restore-key: ${O.matchedKey}`):S(`Cache hit for: ${O.matchedKey}`),c?.lookupOnly)return S("Lookup only - skipping download"),O.matchedKey;l=VM.join(yield Df(),nc(M)),N(`Archive path: ${l}`),N(`Starting download of archive to: ${l}`),yield vT(O.signedDownloadUrl,l,c);let E=ss(l);return S(`Cache Size: ~${Math.round(E/(1024*1024))} MB (${E} B)`),vi()&&(yield XM(l,M)),yield jv(l,M),S("Cache restored successfully"),O.matchedKey}catch(b){let M=b;if(M.name===Io.name)throw b;M instanceof is&&typeof M.statusCode=="number"&&M.statusCode>=500?ll(`Failed to restore: ${b.message}`):r0(`Failed to restore: ${b.message}`)}finally{try{l&&(yield If(l))}catch(b){N(`Failed to delete archive: ${b}`)}}})}i(d00,"restoreCacheV2");function rL(t,e,r){return M2(this,arguments,void 0,function*(n,o,s,a=!1){let c=NM();N(`Cache service version: ${c}`),pae(n),eL(o);let u=xT();return nie(u)?c==="v2"?yield f00(n,o,s,a):yield b00(n,o,s,a):(S(`Cache save skipped: the effective cache-mode '${u}' does not permit writes.`),N(`Skipped save for paths [${n.join(", ")}] with key '${o}'.`),-1)})}i(rL,"saveCache");function b00(t,e,r){return M2(this,arguments,void Line truncated
`+n(s)+o(s),c=(0,xne.createHmac)("sha256",t.accountKey).update(a,"utf8").digest("base64");s.headers.set(ye.AUTHORIZATION,`SharedKey ${t.accountName}:${c}`)}i(e,"signRequest");function r(s,a){let c=s.headers.get(a);return!c||a===ye.CONTENT_LENGTH&&c==="0"?"":c}i(r,"getHeaderValueToSign");function n(s){let a=[];for(let[u,p]of s.headers)u.toLowerCase().startsWith(ye.PREFIX_FOR_STORAGE)&&a.push({name:u,value:p});a.sort((u,p)=>mE(u.name.toLowerCase(),p.name.toLowerCase())),a=a.filter((u,p,A)=>!(p>0&&u.name.toLowerCase()===A[p-1].name.toLowerCase()));let c="";return a.forEach(u=>{c+=`${u.name.toLowerCase().trimRight()}:${u.value.trimLeft()}
`}),c}i(n,"getCanonicalizedHeadersString");function o(s){let a=fE(s.url)||"/",c="";c+=`/${t.accountName}${a}`;let u=ME(s.url),p={};if(u){let A=[];for(let l in u)if(Object.prototype.hasOwnProperty.call(u,l)){let b=l.toLowerCase();p[b]=u[l],A.push(b)}A.sort();for(let l of A)c+=`
${l}:${decodeURIComponent(p[l])}`}return c}return i(o,"getCanonicalizedResourceString"),{name:DJe,async sendRequest(s,a){return e(s),a(s)}}}i(GS,"storageSharedKeyCredentialPolicy");var IJe="storageRequestFailureDetailsParserPolicy";function Tne(){return{name:IJe,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}}}}i(Tne,"storageRequestFailureDetailsParserPolicy");var vne=require("node:crypto");var zE=class{static{i(this,"UserDelegationKeyCredential")}accountName;userDelegationKey;key;constructor(e,r){this.accountName=e,this.userDelegationKey=r,this.key=Buffer.from(r.value,"base64")}computeHMACSHA256(e){return(0,vne.createHmac)("sha256",this.key).update(e,"utf8").digest("base64")}};var gE="12.31.0",OE="2026-02-06";var EE="https://storage.azure.com/.default",Hi={Parameters:{FORCE_BROWSER_NO_CACHE:"_",SIGNATURE:"sig",SNAPSHOT:"snapshot",VERSIONID:"versionid",TIMEOUT:"timeout"}};var Oo="",HS="*",RJe=1*1024*1024;var NJe=4*RJe;var Lne="AES256",Qne="DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;",_ne=["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"],Pne=["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"],kne="BlobUsesCustomerSpecifiedEncryption",Une="BlobDoesNotUseCustomerSpecifiedEncryption",Gne=["10000","10001","10002","10003","10004","10100","10101","10102","10103","10104","11000","11001","11002","11003","11004","11100","11101","11102","11103","11104"];function Xi(t){if(!t||typeof t!="object")return!1;let e=t;return Array.isArray(e.factories)&&typeof e.options=="object"&&typeof e.toServiceClientOptions=="function"}i(Xi,"isPipelineLike");var iM=class{static{i(this,"Pipeline")}factories;options;constructor(e,r={}){this.factories=e,this.options=r}toServiceClientOptions(){return{httpClient:this.options.httpClient,requestPolicyFactories:this.factories}}};function O1(t,e={}){t||(t=new H0);let r=new iM([],e);return r._credential=t,r}i(O1,"newPipeline");function wJe(t){let e=[SJe,Hne,FJe,WJe,xJe,TJe,LJe];if(t.factories.length){let r=t.factories.filter(n=>!e.some(o=>o(n)));if(r.length){let n=r.some(o=>vJe(o));return{wrappedPolicies:gS(r),afterRetry:n}}}}i(wJe,"processDownlevelPipeline");function XS(t){let{httpClient:e,...r}=t.options,n=t._coreHttpClient;n||(n=e?OS(e):US(),t._coreHttpClient=n);let o=t._corePipeline;if(!o){let s=`azsdk-js-azure-storage-blob/${gE}`,a=r.userAgentOptions&&r.userAgentOptions.userAgentPrefix?`${r.userAgentOptions.userAgentPrefix} ${s}`:`${s}`;o=kf({...r,loggingOptions:{additionalAllowedHeaderNames:_ne,additionalAllowedQueryParameters:Pne,logger:uE.info},userAgentOptions:{userAgentPrefix:a},serializationOptions:{stringifyXML:cE,serializerOptions:{xml:{xmlCharKey:"#"}}},deserializationOptions:{parseXML:PS,serializerOptions:{xml:{xmlCharKey:"#"}}}}),o.removePolicy({phase:"Retry"}),o.removePolicy({name:$6}),o.addPolicy(Fne()),o.addPolicy(Wne(r.retryOptions),{phase:"R Line truncated
`),s=e.computeHMACSHA256(o);return{sasQueryParameters:new qo(t.version,s,n,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType),stringToSign:o}}i(wje,"generateBlobSASQueryParameters20150405");function Sje(t,e){if(t=tp(t),!t.identifier&&!(t.permissions&&t.expiresOn))throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let o;t.permissions&&(t.blobName?o=Fs.parse(t.permissions.toString()).toString():o=Ws.parse(t.permissions.toString()).toString());let s=[o||"",t.startsOn?d0(t.startsOn,!1):"",t.expiresOn?d0(t.expiresOn,!1):"",ep(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?Bo(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.cacheControl?t.cacheControl:"",t.contentDisposition?t.contentDisposition:"",t.contentEncoding?t.contentEncoding:"",t.contentLanguage?t.contentLanguage:"",t.contentType?t.contentType:""].join(`
`),a=e.computeHMACSHA256(s);return{sasQueryParameters:new qo(t.version,a,o,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}}i(Sje,"generateBlobSASQueryParameters20181109");function Fje(t,e){if(t=tp(t),!t.identifier&&!(t.permissions&&t.expiresOn))throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let o;t.permissions&&(t.blobName?o=Fs.parse(t.permissions.toString()).toString():o=Ws.parse(t.permissions.toString()).toString());let s=[o||"",t.startsOn?d0(t.startsOn,!1):"",t.expiresOn?d0(t.expiresOn,!1):"",ep(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?Bo(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.encryptionScope,t.cacheControl?t.cacheControl:"",t.contentDisposition?t.contentDisposition:"",t.contentEncoding?t.contentEncoding:"",t.contentLanguage?t.contentLanguage:"",t.contentType?t.contentType:""].join(`
`),a=e.computeHMACSHA256(s);return{sasQueryParameters:new qo(t.version,a,o,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}}i(Fje,"generateBlobSASQueryParameters20201206");function Wje(t,e){if(t=tp(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let o;t.permissions&&(t.blobName?o=Fs.parse(t.permissions.toString()).toString():o=Ws.parse(t.permissions.toString()).toString());let s=[o||"",t.startsOn?d0(t.startsOn,!1):"",t.expiresOn?d0(t.expiresOn,!1):"",ep(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?d0(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?d0(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.ipRange?Bo(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),a=e.computeHMACSHA256(s);return{sasQueryParameters:new qo(t.version,a,o,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}}i(Wje,"generateBlobSASQueryParametersUDK20181109");function xje(t,e){if(t=tp(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let o;t.permissions&&(t.blobName?o=Fs.parse(t.permissions.toString()).toString():o=Ws.parse(t.permissions.toString()).toString());let s=[o||"",t.startsOn?d0(t.startsOn,!1):"",t.expiresOn?d0(t.expiresOn,!1):"",ep(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?d0(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?d0(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?Bo(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),a=e.computeHMACSHA256(s);return{sasQueryParameters:new qo(t.version,a,o,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}}i(xje,"generateBlobSASQueryParametersUDK20200210");function Tje(t,e){if(t=tp(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let o;t.permissions&&(t.blobName?o=Fs.parse(t.permissions.toString()).toString():o=Ws.parse(t.permissions.toString()).toString());let s=[o||"",t.startsOn?d0(t.startsOn,!1):"",t.expiresOn?d0(t.expiresOn,!1):"",ep(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?d0(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?d0(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?Bo(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),a=e.computeHMACSHA256(s);return{sasQueryParameters:new qo(t.version,a,o,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}}i(Tje,"generateBlobSASQueryParametersUDK20201206");function vje(t,e){if(t=tp(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let o;t.permissions&&(t.blobName?o=Fs.parse(t.permissions.toString()).toString():o=Ws.parse(t.permissions.toString()).toString());let s=[o||"",t.startsOn?d0(t.startsOn,!1):"",t.expiresOn?d0(t.expiresOn,!1):"",ep(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?d0(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?d0(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,void 0,t.delegatedUserObjectId,t.ipRange?Bo(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),a=e.computeHMACSHA256(s);return{sasQueryParameters:new qo(t.version,a,o,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}}i(vje,"generateBlobSASQueryParametersUDK20250705");function ep(t,e,r){let n=[`/blob/${t}/${e}`];return r&&n.push(`/${r}`),n.join("")}i(ep,"getCanonicalName");function tp(t){let e=t.version?t.version:OE;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}i(tp,"SASSignatureValuesSanityCheckAndAutofill");var mM=class{static{i(this,"BlobLeaseClient")}_leaseId;_url;_containerOrBlobOperation;_isContainer;get leaseId(){return this._leaseId}get url(){return this._url}constructor(e,r){let n=e.storageClientContext;this._url=e.url,e.name===void 0?(this._isContainer=!0,this._containerOrBlobOperation=n.container):(this._isContainer=!1,this._containerOrBlobOperation=n.blob),r||(r=wl()),this._leaseId=r}async acquireLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==Oo||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==Oo||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 ue.withSpan("BlobLeaseClient-acquireLease",r,async n=>be(await this._containerOrBlobOperation.acquireLease({abortSignal:r.abortSignal,duration:e,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},proposedLeaseId:this._leaseId,tracingOptions:n.tracingOptions})))}async changeLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==Oo||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==Oo||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 ue.withSpan("BlobLeaseClient-changeLease",r,async n=>{let o=be(await this._containerOrBlobOperation.changeLease(this._leaseId,e,{abortSignal:r.abortSignal,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},tracingOptions:n.tracingOptions}));return this._leaseId=e,o})}async releaseLease(e={}){if(this._isContainer&&(e.conditions?.ifMatch&&e.conditions?.ifMatch!==Oo||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==Oo||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 ue.withSpan("BlobLeaseClient-releaseLease",e,async r=>be(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!==Oo||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==Oo||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 val 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"}};jl.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var sp=class extends Error{static{i(this,"UsageError")}constructor(){super(`Cache storage quota has been hit. Unable to upload any new cache entries.
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"}};sp.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var IM=class extends Error{static{i(this,"RateLimitError")}constructor(e){super(e),this.name="RateLimitError"}};var VKe=function(t,e,r,n){function o(s){return s instanceof r?s:new r(function(a){a(s)})}return i(o,"adopt"),new(r||(r=Promise))(function(s,a){function c(A){try{p(n.next(A))}catch(l){a(l)}}i(c,"fulfilled");function u(A){try{p(n.throw(A))}catch(l){a(l)}}i(u,"rejected");function p(A){A.done?s(A.value):o(A.value).then(c,u)}i(p,"step"),p((n=n.apply(t,e||[])).next())})},TT=class{static{i(this,"UploadProgress")}constructor(e){this.contentLength=e,this.sentBytes=0,this.displayedComplete=!1,this.startTime=Date.now()}setSentBytes(e){this.sentBytes=e}getTransferredBytes(){return this.sentBytes}isDone(){return this.getTransferredBytes()===this.contentLength}display(){if(this.displayedComplete)return;let e=this.sentBytes,r=(100*(e/this.contentLength)).toFixed(1),n=Date.now()-this.startTime,o=(e/(1024*1024)/(n/1e3)).toFixed(1);S(`Sent ${e} of ${this.contentLength} (${r}%), ${o} MBs/sec`),this.isDone()&&(this.displayedComplete=!0)}onProgress(){return e=>{this.setSentBytes(e.loadedBytes)}}startDisplayTimer(e=1e3){let r=i(()=>{this.display(),this.isDone()||(this.timeoutHandle=setTimeout(r,e))},"displayCallback");this.timeoutHandle=setTimeout(r,e)}stopDisplayTimer(){this.timeoutHandle&&(clearTimeout(this.timeoutHandle),this.timeoutHandle=void 0),this.display()}};function Yse(t,e,r){return VKe(this,void 0,void 0,function*(){var n;let o=new Zi(t),s=o.getBlockBlobClient(),a=new TT((n=r?.archiveSizeBytes)!==null&&n!==void 0?n:0),c={blockSize:r?.uploadChunkSize,concurrency:r?.uploadConcurrency,maxSingleShotSize:128*1024*1024,onProgress:a.onProgress()};try{a.startDisplayTimer(),N(`BlobClient: ${o.name}:${o.accountName}:${o.containerName}`);let u=yield s.uploadFile(e,c);if(u._response.status>=400)throw new qC(`uploadCacheArchiveSDK: upload failed with status code ${u._response.status}`);return u}catch(u){throw r0(`uploadCacheArchiveSDK: internal error uploading cache archive: ${u.message}`),u}finally{a.stopDisplayTimer()}})}i(Yse,"uploadCacheArchiveSDK");var $se=w(require("buffer"),1),xs=w(require("fs"),1),jse=w(require("stream"),1),Kse=w(require("util"),1);var DC=function(t,e,r,n){function o(s){return s instanceof r?s:new r(function(a){a(s)})}return i(o,"adopt"),new(r||(r=Promise))(function(s,a){function c(A){try{p(n.next(A))}catch(l){a(l)}}i(c,"fulfilled");function u(A){try{p(n.throw(A))}catch(l){a(l)}}i(u,"rejected");function p(A){A.done?s(A.value):o(A.value).then(c,u)}i(p,"step"),p((n=n.apply(t,e||[])).next())})};function IC(t){return t?t>=200&&t<300:!1}i(IC,"isSuccessStatusCode");function YKe(t){return t?t>=500:!0}i(YKe,"isServerErrorStatusCode");function JKe(t){return t?[n1.BadGateway,n1.ServiceUnavailable,n1.GatewayTimeout].includes(t):!1}i(JKe,"isRetryableStatusCode");function $Ke(t){return DC(this,void 0,void 0,function*(){return new Promise(e=>setTimeout(e,t))})}i($Ke,"sleep");function Jse(t,e,r){return DC(this,arguments,void 0,function*(n,o,s,a=jO,c=KO,u=void 0){let p="",A=1;for(;A<=a;){let l,b,M=!1;try{l=yield o()}catch(z){u&&(l=u(z)),M=!0,p=z.message}if(l&&(b=s(l),!YKe(b)))return l;if(b&&(M=JKe(b),p=`Cache service responded with ${b}`),N(`${n} - Attempt ${A} of ${a} failed with error: ${p}`),!M){N(`${n} - Error is not retryable`);break}yield $Ke(c),A++}throw Error(`${n} failed: ${p}`)})}i(Jse,"retry");function RM(t,e){return DC(this,arguments,void 0,function*(r,n,o=jO,s=KO){return yield Jse(r,n,a=>a.statusCode,o,s,a=>{if(a instanceof as)return{statusCode:a.statusCode,result:null,headers:{},error:a}})})}i(RM,"retryTypedResponse");function Kl(t,e){return DC(this,arguments,void 0,function*(r,n,o=jO,s=KO){return yield Jse(r,n,a=>a.message.statusCode,o,s)})}i(Kl,"retryHttpClientResponse");var Tn=function(t,e,r,n){function o(s){return s instanceof r?s:new r(function(a){a(s)})}return i(o,"adopt"),new(r||(r=Promise))(function(s,a){function c(A){try{p(n.next(A))}catch(l){a(l)}}i(c,"fulfilled");function u(A){try{p(n.throw(A))}catch(l){a(l)}}i(u,"rejected");function p(A){A.done?s(A.value):o(A.value).then(c,u)}i(p,"step"),p((n=n.apply(t,e||[])).next())})};function jKe(t,e){return Tn(this,void 0,void 0,function*(){yield Kse.promisify(jse.pipeline)(t.message,e)})}i(jKe,"pipeResponseToStream");var RC=class{static{i(this,"DownloadProgress")}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,N(`Downloading segment at offset ${this.segmentOffset} with length ${this.segmentSize}...`)}setReceivedBytes(e){th Line truncated
Other caches with similar key:`);for(let c of s?.artifactCaches||[])N(`Cache Key: ${c?.cacheKey}, Cache Version: ${c?.cacheVersion}, Cache Scope: ${c?.scope}, Cache Created: ${c?.creationTime}`)}}})}i(oZe,"printCachesListForDiagnostics");function PT(t,e,r){return br(this,void 0,void 0,function*(){let n=new Aie.URL(t),o=rie(r);n.hostname.endsWith(".blob.core.windows.net")?o.useAzureSdk?yield eie(t,e,o):o.concurrentBlobDownloads?yield Zse(t,e,o):yield NC(t,e):yield NC(t,e)})}i(PT,"downloadCache");function die(t,e,r){return br(this,void 0,void 0,function*(){let n=_T(),o=El(e,r?.compressionMethod,r?.enableCrossOsArchive),s={key:t,version:o,cacheSize:r?.cacheSize};return yield RM("reserveCache",()=>br(this,void 0,void 0,function*(){return n.postJson(wM("caches"),s)}))})}i(die,"reserveCache");function pie(t,e){return`bytes ${t}-${e}/*`}i(pie,"getContentRange");function sZe(t,e,r,n,o){return br(this,void 0,void 0,function*(){N(`Uploading chunk of size ${o-n+1} bytes at offset ${n} with content range: ${pie(n,o)}`);let s={"Content-Type":"application/octet-stream","Content-Range":pie(n,o)},a=yield Kl(`uploadChunk (start: ${n}, end: ${o})`,()=>br(this,void 0,void 0,function*(){return t.sendStream("PATCH",e,r(),s)}));if(!IC(a.message.statusCode))throw new Error(`Cache service responded with ${a.message.statusCode} during upload chunk.`)})}i(sZe,"uploadChunk");function iZe(t,e,r,n){return br(this,void 0,void 0,function*(){let o=is(r),s=wM(`caches/${e.toString()}`),a=Zl.openSync(r,"r"),c=vT(n),u=u6("uploadConcurrency",c.uploadConcurrency),p=u6("uploadChunkSize",c.uploadChunkSize),A=[...new Array(u).keys()];N("Awaiting all uploads");let l=0;try{yield Promise.all(A.map(()=>br(this,void 0,void 0,function*(){for(;l<o;){let b=Math.min(o-l,p),M=l,z=l+b-1;l+=p,yield sZe(t,s,()=>Zl.createReadStream(r,{fd:a,start:M,end:z,autoClose:!1}).on("error",O=>{throw new Error(`Cache upload failed because file read failed with ${O.message}`)}),M,z)}})))}finally{Zl.closeSync(a)}})}i(iZe,"uploadFile");function aZe(t,e,r){return br(this,void 0,void 0,function*(){let n={size:r};return yield RM("commitCache",()=>br(this,void 0,void 0,function*(){return t.postJson(wM(`caches/${e.toString()}`),n)}))})}i(aZe,"commitCache");function kT(t,e,r,n){return br(this,void 0,void 0,function*(){if(vT(n).useAzureSdk){if(!r)throw new Error("Azure Storage SDK can only be used when a signed URL is provided.");yield Yse(r,e,n)}else{let s=_T();N("Upload cache"),yield iZe(s,t,e,n),N("Commiting cache");let a=is(e);S(`Cache Size: ~${Math.round(a/(1024*1024))} MB (${a} B)`);let c=yield aZe(s,t,a);if(!IC(c.statusCode))throw new Error(`Cache service responded with ${c.statusCode} during commit cache.`);S("Cache saved successfully")}})}i(kT,"saveCache");var aae=w(eae(),1),y1=w(C1(),1),rn=w(C1(),1),pp=w(C1(),1),Ap=w(C1(),1),lp=w(C1(),1);var Tv=w(C1(),1),vv=w(C1(),1),oae=w(C1(),1),sae=w(C1(),1),iae=w(C1(),1);var Fv=w(C1(),1),Wv=w(C1(),1),tae=w(C1(),1),rae=w(C1(),1),nae=w(C1(),1);var xv=class extends nae.MessageType{static{i(this,"CacheScope$Type")}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,rae.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,tae.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,n,o){let s=o??this.create(),a=e.pos+r;for(;e.pos<a;){let[c,u]=e.tag();switch(c){case 1:s.scope=e.string();break;case 2:s.permission=e.int64().toString();break;default:let p=n.readUnknownField;if(p==="throw")throw new globalThis.Error(`Unknown field ${c} (wire type ${u}) for ${this.typeName}`);let A=e.skip(u);p!==!1&&(p===!0?Wv.UnknownFieldHandler.onRead:p)(this.typeName,s,c,u,A)}}return s}internalBinaryWrite(e,r,n){e.scope!==""&&r.tag(1,Fv.WireType.LengthDelimited).string(e.scope),e.permission!=="0"&&r.tag(2,Fv.WireType.Varint).int64(e.permission);let o=n.writeUnknownFields;return o!==!1&&(o==!0?Wv.UnknownFieldHandler.onWrite:o)(this.typeName,e,r),r}},hy=new xv;var Lv=class extends iae.MessageType{static{i(this,"CacheMetadata$Type")}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:i(()=>hy,"T")}])}create(e){let r={repositoryId:"0",scope:[]};return globalThis.Object.defineProperty(r,sae.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,oae.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,n,o){let s=o??this.create(),a=e.pos+r;for(;e.pos<a;){let[c,u]=e.tag();switch(c){case 1:s.repositoryId=e.int64().toString();break;case 2:s.scope.push(hy.internalBinaryRead(e,e.uint32(),n));break;default:let p=n.readUnknownField;if(p==="throw")throw new globalThis.Error(`Unknown field ${c} (wire type ${u}) for ${this.typeName}`);let A=e.skip(u);p!==!1&&(p===!0?vv.UnknownFieldHandler.onRead:p)(this.typeName,s,c,u,A)}}return s}internalBinaryWrite(e,r,n){e.repositoryId!== Line truncated
`));let n=yield Zv(r,"create");yield eL(n,t)})}i(rL,"createTar");var f2=function(t,e,r,n){function o(s){return s instanceof r?s:new r(function(a){a(s)})}return i(o,"adopt"),new(r||(r=Promise))(function(s,a){function c(A){try{p(n.next(A))}catch(l){a(l)}}i(c,"fulfilled");function u(A){try{p(n.throw(A))}catch(l){a(l)}}i(u,"rejected");function p(A){A.done?s(A.value):o(A.value).then(c,u)}i(p,"step"),p((n=n.apply(t,e||[])).next())})},Ro=class t extends Error{static{i(this,"ValidationError")}constructor(e){super(e),this.name="ValidationError",Object.setPrototypeOf(this,t.prototype)}},dp=class t extends Error{static{i(this,"ReserveCacheError")}constructor(e){super(e),this.name="ReserveCacheError",Object.setPrototypeOf(this,t.prototype)}},nL="cache write denied:",Oy=class t extends dp{static{i(this,"CacheWriteDeniedError")}constructor(e){super(e),this.name="CacheWriteDeniedError",Object.setPrototypeOf(this,t.prototype)}},Aae=ZO,Ey=class t extends Error{static{i(this,"CacheReadDeniedError")}constructor(e){super(e),this.name="CacheReadDeniedError",Object.setPrototypeOf(this,t.prototype)}},Cy=class t extends Error{static{i(this,"FinalizeCacheError")}constructor(e){super(e),this.name="FinalizeCacheError",Object.setPrototypeOf(this,t.prototype)}};function lae(t){if(!t||t.length===0)throw new Ro("Path Validation Error: At least one directory or file path is required")}i(lae,"checkPaths");function oL(t){if(t.length>512)throw new Ro(`Key Validation Error: ${t} cannot be larger than 512 characters.`);if(!/^[^,]*$/.test(t))throw new Ro(`Key Validation Error: ${t} cannot contain commas.`)}i(oL,"checkKey");function sL(){return NM()==="v2"?!!process.env.ACTIONS_RESULTS_URL:!!process.env.ACTIONS_CACHE_URL}i(sL,"isFeatureAvailable");function dae(t,e,r,n){return f2(this,arguments,void 0,function*(o,s,a,c,u=!1){let p=NM();N(`Cache service version: ${p}`),lae(o);let A=QT();if(!oie(A)){S(`Cache restore skipped: the effective cache-mode '${A}' does not permit reads.`),N(`Skipped restore for paths [${o.join(", ")}] with primary key '${s}'.`);return}return p==="v2"?yield E00(o,s,a,c,u):yield O00(o,s,a,c,u)})}i(dae,"restoreCache");function O00(t,e,r,n){return f2(this,arguments,void 0,function*(o,s,a,c,u=!1){var p;a=a||[];let A=[s,...a];if(N("Resolved Keys:"),N(JSON.stringify(A)),A.length>10)throw new Ro("Key Validation Error: Keys are limited to a maximum of 10.");for(let M of A)oL(M);let l=yield Rf(),b="";try{let M;try{M=yield lie(A,o,{compressionMethod:l,enableCrossOsArchive:u})}catch(O){let y=(p=O?.message)!==null&&p!==void 0?p:"";throw y.includes(Aae)?new Ey(y):O}if(!M?.archiveLocation)return;if(c?.lookupOnly)return S("Lookup only - skipping download"),M.cacheKey;b=VM.join(yield Df(),tc(l)),N(`Archive Path: ${b}`),yield PT(M.archiveLocation,b,c),xi()&&(yield XM(b,l));let z=is(b);return S(`Cache Size: ~${Math.round(z/(1024*1024))} MB (${z} B)`),yield tL(b,l),S("Cache restored successfully"),M.cacheKey}catch(M){let z=M;if(z.name===Ro.name)throw M;z instanceof as&&typeof z.statusCode=="number"&&z.statusCode>=500?Al(`Failed to restore: ${M.message}`):r0(`Failed to restore: ${M.message}`)}finally{try{yield If(b)}catch(M){N(`Failed to delete archive: ${M}`)}}})}i(O00,"restoreCacheV1");function E00(t,e,r,n){return f2(this,arguments,void 0,function*(o,s,a,c,u=!1){var p;c=Object.assign(Object.assign({},c),{useAzureSdk:!0}),a=a||[];let A=[s,...a];if(N("Resolved Keys:"),N(JSON.stringify(A)),A.length>10)throw new Ro("Key Validation Error: Keys are limited to a maximum of 10.");for(let b of A)oL(b);let l="";try{let b=Kv(),M=yield Rf(),z={key:s,restoreKeys:a,version:El(o,M,u)},O;try{O=yield b.GetCacheEntryDownloadURL(z)}catch(B){let q=(p=B?.message)!==null&&p!==void 0?p:"";throw q.includes(Aae)?new Ey(q):B}if(!O.ok){N(`Cache not found for version ${z.version} of keys: ${A.join(", ")}`);return}if(z.key!==O.matchedKey?S(`Cache hit for restore-key: ${O.matchedKey}`):S(`Cache hit for: ${O.matchedKey}`),c?.lookupOnly)return S("Lookup only - skipping download"),O.matchedKey;l=VM.join(yield Df(),tc(M)),N(`Archive path: ${l}`),N(`Starting download of archive to: ${l}`),yield PT(O.signedDownloadUrl,l,c);let E=is(l);return S(`Cache Size: ~${Math.round(E/(1024*1024))} MB (${E} B)`),xi()&&(yield XM(l,M)),yield tL(l,M),S("Cache restored successfully"),O.matchedKey}catch(b){let M=b;if(M.name===Ro.name)throw b;M instanceof as&&typeof M.statusCode=="number"&&M.statusCode>=500?Al(`Failed to restore: ${b.message}`):r0(`Failed to restore: ${b.message}`)}finally{try{l&&(yield If(l))}catch(b){N(`Failed to delete archive: ${b}`)}}})}i(E00,"restoreCacheV2");function iL(t,e,r){return f2(this,arguments,void 0,function*(n,o,s,a=!1){let c=NM();N(`Cache service version: ${c}`),lae(n),oL(o);let u=QT();return sie(u)?c==="v2"?yield y00(n,o,s,a):yield C00(n,o,s,a):(S(`Cache save skipped: the effective cache-mode '${u}' does not permit writes.`),N(`Skipped save for paths [${n.join(", ")}] with key '${o}'.`),-1)})}i(iL,"saveCache");function C00(t,e,r){return f2(this,arguments,void Line truncated
`+t.errors.map(e=>` - ${e.message}`).join(`
`)}i(u10,"_buildMessageForResponseErrors");var p10=class extends Error{static{i(this,"GraphqlResponseError")}constructor(t,e,r){super(u10(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},A10=["method","baseUrl","url","headers","request","query","mediaType","operationName"],l10=["query","method","url"],Kae=/\/api\/v3\/?$/;function d10(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 a in r)if(l10.includes(a))return Promise.reject(new Error(`[@octokit/graphql] "${a}" cannot be used as variable name`))}let n=typeof e=="string"?Object.assign({query:e},r):e,o=Object.keys(n).reduce((a,c)=>A10.includes(c)?(a[c]=n[c],a):(a.variables||(a.variables={}),a.variables[c]=n[c],a),{}),s=n.baseUrl||t.endpoint.DEFAULTS.baseUrl;return Kae.test(s)&&(o.url=s.replace(Kae,"/api/graphql")),t(o).then(a=>{if(a.data.errors){let c={};for(let u of Object.keys(a.headers))c[u]=a.headers[u];throw new p10(o,c,a.data)}return a.data.data})}i(d10,"graphql");function fL(t,e){let r=t.defaults(e);return Object.assign(i((o,s)=>d10(r,o,s),"newApi"),{defaults:fL.bind(null,r),endpoint:r.endpoint})}i(fL,"withDefaults");var We1=fL(KM,{headers:{"user-agent":`octokit-graphql.js/${c10} ${Oc()}`},method:"POST",url:"/graphql"});function Zae(t){return fL(t,{method:"POST",url:"/graphql"})}i(Zae,"withCustomRequest");var ML="(?:[a-zA-Z0-9_-]+)",ece="\\.",tce=new RegExp(`^${ML}${ece}${ML}${ece}${ML}$`),b10=tce.test.bind(tce);async function f10(t){let e=b10(t),r=t.startsWith("v1.")||t.startsWith("ghs_"),n=t.startsWith("ghu_");return{type:"token",token:t,tokenType:e?"app":r?"installation":n?"user-to-server":"oauth"}}i(f10,"auth");function M10(t){return t.split(/\./).length===3?`bearer ${t}`:`token ${t}`}i(M10,"withAuthorizationPrefix");async function h10(t,e,r,n){let o=e.endpoint.merge(r,n);return o.headers.authorization=M10(t),e(o)}i(h10,"hook");var rce=i(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(f10.bind(null,e),{hook:h10.bind(null,e)})},"createTokenAuth2");var hL="7.0.6";var nce=i(()=>{},"noop"),m10=console.warn.bind(console),z10=console.error.bind(console);function g10(t={}){return typeof t.debug!="function"&&(t.debug=nce),typeof t.info!="function"&&(t.info=nce),typeof t.warn!="function"&&(t.warn=m10),typeof t.error!="function"&&(t.error=z10),t}i(g10,"createLogger");var oce=`octokit-core.js/${hL} ${Oc()}`,Fy=class{static{i(this,"Octokit")}static VERSION=hL;static defaults(e){return class extends this{static{i(this,"OctokitWithDefaults")}constructor(...n){let o=n[0]||{};if(typeof e=="function"){super(e(o));return}super(Object.assign({},e,o,o.userAgent&&e.userAgent?{userAgent:`${o.userAgent} ${e.userAgent}`}:null))}}}static plugins=[];static plugin(...e){let r=this.plugins;return class extends this{static{i(this,"NewOctokit")}static plugins=r.concat(e.filter(o=>!r.includes(o)))}}constructor(e={}){let r=new wae.Collection,n={baseUrl:KM.endpoint.DEFAULTS.baseUrl,headers:{},request:Object.assign({},e.request,{hook:r.bind(null,"request")}),mediaType:{previews:[],format:""}};if(n.headers["user-agent"]=e.userAgent?`${e.userAgent} ${oce}`:oce,e.baseUrl&&(n.baseUrl=e.baseUrl),e.previews&&(n.mediaType.previews=e.previews),e.timeZone&&(n.headers["time-zone"]=e.timeZone),this.request=KM.defaults(n),this.graphql=Zae(this.request).defaults(n),this.log=g10(e.log),this.hook=r,e.authStrategy){let{authStrategy:s,...a}=e,c=s(Object.assign({request:this.request,log:this.log,octokit:this,octokitOptions:a},e.auth));r.wrap("request",c.hook),this.auth=c}else if(!e.auth)this.auth=async()=>({type:"unauthenticated"});else{let s=rce(e.auth);r.wrap("request",s.hook),this.auth=s}let o=this.constructor;for(let s=0;s<o.plugins.length;++s)Object.assign(this,o.plugins[s](this,e))}request;graphql;log;hook;auth};var mL="17.0.0";var O10={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" Line truncated
`,a).length:l,p?(c===null?0:c.length)+u.length:0,p?u.length+l:0);return b<M},"__needMoreData"),parse:i(function(n,o,s,a){let{bom:c,comment_no_infix:u,delimiter_auto:p,encoding:A,from_line:l,ltrim:b,max_record_size:M,raw:z,relax_quotes:O,rtrim:y,skip_empty_lines:E,to:B,to_line:q}=this.options,{comment:I,escape:W,quote:x,record_delimiter:L}=this.options,{bomSkipped:ce,delimiterDiscovered:Te,delimiterBufPrevious:Ge,rawBuffer:Ne,escapeIsQuote:Be}=this.state;if(!Te&&p){let Qe;if(Ge===void 0?Qe=n:Ge!==void 0&&n===void 0?Qe=Ge:Qe=Buffer.concat([Ge,n]),n=void 0,o||Qe.length>p.size)this.options.delimiter=[Buffer.from(yle(Qe,this.options.delimiter_auto))],this.state.previousBuf=Qe,this.state.delimiterBufPrevious=void 0,this.state.delimiterDiscovered=!0;else{this.state.delimiterBufPrevious=Qe;return}}let{previousBuf:ke}=this.state,pe;if(ke===void 0)if(n===void 0){a();return}else pe=n;else ke!==void 0&&n===void 0?pe=ke:pe=Buffer.concat([ke,n]);if(ce===!1)if(c===!1)this.state.bomSkipped=!0;else if(pe.length<3){if(o===!1){this.state.previousBuf=pe;return}}else{for(let Qe in x2)if(x2[Qe].compare(pe,0,x2[Qe].length)===0){let C0=x2[Qe].length;this.state.bufBytesStart+=C0,pe=pe.slice(C0);let Mt=W2({...this.original_options,encoding:Qe});for(let p0 in Mt)this.options[p0]=Mt[p0];({comment:I,escape:W,quote:x}=this.options);break}this.state.bomSkipped=!0}let Ue=pe.length,J;for(J=0;J<Ue&&!this.__needMoreData(J,Ue,o);J++){if(this.state.wasRowDelimiter===!0&&(this.info.lines++,this.state.wasRowDelimiter=!1),q!==-1&&this.info.lines>q){this.state.stop=!0,a();return}this.state.quoting===!1&&L.length===0&&this.__autoDiscoverRecordDelimiter(pe,J)&&(L=this.options.record_delimiter);let Qe=pe[J];if(z===!0&&Ne.append(Qe),(Qe===aa0||Qe===ca0)&&this.state.wasRowDelimiter===!1&&(this.state.wasRowDelimiter=!0),this.state.escaping===!0)this.state.escaping=!1;else{if(W!==null&&this.state.quoting===!0&&this.__isEscape(pe,J,Qe)&&J+W.length<Ue)if(Be){if(this.__isQuote(pe,J+W.length)){this.state.escaping=!0,J+=W.length-1;continue}}else{this.state.escaping=!0,J+=W.length-1;continue}if(this.state.commenting===!1&&this.__isQuote(pe,J))if(this.state.quoting===!0){let p0=pe[J+x.length],V1=y&&this.__isCharTrimable(pe,J+x.length),q0=I!==null&&this.__compareBytes(I,pe,J+x.length,p0),ne=this.__isDelimiter(pe,J+x.length,p0),Qo=L.length===0?this.__autoDiscoverRecordDelimiter(pe,J+x.length):this.__isRecordDelimiter(p0,pe,J+x.length);if(W!==null&&this.__isEscape(pe,J,Qe)&&this.__isQuote(pe,J+W.length))J+=W.length-1;else if(!p0||ne||Qo||q0||V1){this.state.quoting=!1,this.state.wasQuoting=!0,J+=x.length-1;continue}else if(O===!1){let un=this.__error(new Ve("CSV_INVALID_CLOSING_QUOTE",["Invalid Closing Quote:",`got "${String.fromCharCode(p0)}"`,`at line ${this.info.lines}`,"instead of delimiter, record delimiter, trimable character","(if activated) or comment"],this.options,this.__infoField()));if(un!==void 0)return un}else this.state.quoting=!1,this.state.wasQuoting=!0,this.state.field.prepend(x),J+=x.length-1}else if(this.state.field.length!==0){if(O===!1){let p0=this.__infoField(),V1=Object.keys(x2).map(ne=>x2[ne].equals(this.state.field.toString())?ne:!1).filter(Boolean)[0],q0=this.__error(new Ve("INVALID_OPENING_QUOTE",["Invalid Opening Quote:",`a quote is found on field ${JSON.stringify(p0.column)} at line ${p0.lines}, value is ${JSON.stringify(this.state.field.toString(A))}`,V1?`(${V1} bom)`:void 0],this.options,p0,{field:this.state.field}));if(q0!==void 0)return q0}}else{this.state.quoting=!0,J+=x.length-1;continue}if(this.state.quoting===!1){let p0=this.__isRecordDelimiter(Qe,pe,J);if(p0!==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(),J+=p0-1;continue}if(E===!0&&this.state.wasQuoting===!1&&this.state.record.length===0&&this.state.field.length===0){this.info.empty_lines++,J+=p0-1;continue}this.info.bytes=this.state.bufBytesStart+J;let ne=this.__onField();if(ne!==void 0)return ne;this.info.bytes=this.state.bufBytesStart+J+p0;let Qo=this.__onRecord(s);if(Qo!==void 0)return Qo;if(B!==-1&&this.info.records>=B){this.state.stop=!0,a();return}}this.state.commenting=!1,J+=p0-1;continue}if(this.state.commenting)continue;if(I!==null&&(u===!1||this.state.record.length===0&&this.state.field.length===0)&&this.__compareBytes(I,pe,J,Qe)!==0){this.state.commenting=!0;continue}let V1=this.__isDelimiter(pe,J,Qe);if(V1!==0){this.info.bytes=this.state.bufBytesStart+J;let q0=this.__onField();if(q0!==void 0)return q0;J+=V1-1;continue}}}if(this.state.commenting===!1&&M!==0&&this.state.record_length+this.state.field.length>M)return this.__error(new Ve("CSV_MAX_RECORD_SIZE",["Max Record Size:","record exceed the maximum number of tolerated bytes",`of ${M}`,`at line ${this.info.lines}`],this.options,this.__infoField()));let C0=b===!1||th Line truncated
`)}i(m10,"_buildMessageForResponseErrors");var z10=class extends Error{static{i(this,"GraphqlResponseError")}constructor(t,e,r){super(m10(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},g10=["method","baseUrl","url","headers","request","query","mediaType","operationName"],O10=["query","method","url"],ece=/\/api\/v3\/?$/;function E10(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 a in r)if(O10.includes(a))return Promise.reject(new Error(`[@octokit/graphql] "${a}" cannot be used as variable name`))}let n=typeof e=="string"?Object.assign({query:e},r):e,o=Object.keys(n).reduce((a,c)=>g10.includes(c)?(a[c]=n[c],a):(a.variables||(a.variables={}),a.variables[c]=n[c],a),{}),s=n.baseUrl||t.endpoint.DEFAULTS.baseUrl;return ece.test(s)&&(o.url=s.replace(ece,"/api/graphql")),t(o).then(a=>{if(a.data.errors){let c={};for(let u of Object.keys(a.headers))c[u]=a.headers[u];throw new z10(o,c,a.data)}return a.data.data})}i(E10,"graphql");function zL(t,e){let r=t.defaults(e);return Object.assign(i((o,s)=>E10(r,o,s),"newApi"),{defaults:zL.bind(null,r),endpoint:r.endpoint})}i(zL,"withDefaults");var Ue1=zL(KM,{headers:{"user-agent":`octokit-graphql.js/${h10} ${zc()}`},method:"POST",url:"/graphql"});function tce(t){return zL(t,{method:"POST",url:"/graphql"})}i(tce,"withCustomRequest");var gL="(?:[a-zA-Z0-9_-]+)",rce="\\.",nce=new RegExp(`^${gL}${rce}${gL}${rce}${gL}$`),C10=nce.test.bind(nce);async function y10(t){let e=C10(t),r=t.startsWith("v1.")||t.startsWith("ghs_"),n=t.startsWith("ghu_");return{type:"token",token:t,tokenType:e?"app":r?"installation":n?"user-to-server":"oauth"}}i(y10,"auth");function B10(t){return t.split(/\./).length===3?`bearer ${t}`:`token ${t}`}i(B10,"withAuthorizationPrefix");async function q10(t,e,r,n){let o=e.endpoint.merge(r,n);return o.headers.authorization=B10(t),e(o)}i(q10,"hook");var oce=i(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(y10.bind(null,e),{hook:q10.bind(null,e)})},"createTokenAuth2");var OL="7.0.6";var sce=i(()=>{},"noop"),D10=console.warn.bind(console),I10=console.error.bind(console);function R10(t={}){return typeof t.debug!="function"&&(t.debug=sce),typeof t.info!="function"&&(t.info=sce),typeof t.warn!="function"&&(t.warn=D10),typeof t.error!="function"&&(t.error=I10),t}i(R10,"createLogger");var ice=`octokit-core.js/${OL} ${zc()}`,xy=class{static{i(this,"Octokit")}static VERSION=OL;static defaults(e){return class extends this{static{i(this,"OctokitWithDefaults")}constructor(...n){let o=n[0]||{};if(typeof e=="function"){super(e(o));return}super(Object.assign({},e,o,o.userAgent&&e.userAgent?{userAgent:`${o.userAgent} ${e.userAgent}`}:null))}}}static plugins=[];static plugin(...e){let r=this.plugins;return class extends this{static{i(this,"NewOctokit")}static plugins=r.concat(e.filter(o=>!r.includes(o)))}}constructor(e={}){let r=new Fae.Collection,n={baseUrl:KM.endpoint.DEFAULTS.baseUrl,headers:{},request:Object.assign({},e.request,{hook:r.bind(null,"request")}),mediaType:{previews:[],format:""}};if(n.headers["user-agent"]=e.userAgent?`${e.userAgent} ${ice}`:ice,e.baseUrl&&(n.baseUrl=e.baseUrl),e.previews&&(n.mediaType.previews=e.previews),e.timeZone&&(n.headers["time-zone"]=e.timeZone),this.request=KM.defaults(n),this.graphql=tce(this.request).defaults(n),this.log=R10(e.log),this.hook=r,e.authStrategy){let{authStrategy:s,...a}=e,c=s(Object.assign({request:this.request,log:this.log,octokit:this,octokitOptions:a},e.auth));r.wrap("request",c.hook),this.auth=c}else if(!e.auth)this.auth=async()=>({type:"unauthenticated"});else{let s=oce(e.auth);r.wrap("request",s.hook),this.auth=s}let o=this.constructor;for(let s=0;s<o.plugins.length;++s)Object.assign(this,o.plugins[s](this,e))}request;graphql;log;hook;auth};var EL="17.0.0";var N10={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" Line truncated
`,a).length:l,p?(c===null?0:c.length)+u.length:0,p?u.length+l:0);return b<M},"__needMoreData"),parse:i(function(n,o,s,a){let{bom:c,comment_no_infix:u,delimiter_auto:p,encoding:A,from_line:l,ltrim:b,max_record_size:M,raw:z,relax_quotes:O,rtrim:y,skip_empty_lines:E,to:B,to_line:q}=this.options,{comment:D,escape:W,quote:x,record_delimiter:L}=this.options,{bomSkipped:Y,delimiterDiscovered:Te,delimiterBufPrevious:Ge,rawBuffer:Ne,escapeIsQuote:Be}=this.state;if(!Te&&p){let Qe;if(Ge===void 0?Qe=n:Ge!==void 0&&n===void 0?Qe=Ge:Qe=Buffer.concat([Ge,n]),n=void 0,o||Qe.length>p.size)this.options.delimiter=[Buffer.from(qle(Qe,this.options.delimiter_auto))],this.state.previousBuf=Qe,this.state.delimiterBufPrevious=void 0,this.state.delimiterDiscovered=!0;else{this.state.delimiterBufPrevious=Qe;return}}let{previousBuf:ke}=this.state,pe;if(ke===void 0)if(n===void 0){a();return}else pe=n;else ke!==void 0&&n===void 0?pe=ke:pe=Buffer.concat([ke,n]);if(Y===!1)if(c===!1)this.state.bomSkipped=!0;else if(pe.length<3){if(o===!1){this.state.previousBuf=pe;return}}else{for(let Qe in W2)if(W2[Qe].compare(pe,0,W2[Qe].length)===0){let C0=W2[Qe].length;this.state.bufBytesStart+=C0,pe=pe.slice(C0);let ht=F2({...this.original_options,encoding:Qe});for(let p0 in ht)this.options[p0]=ht[p0];({comment:D,escape:W,quote:x}=this.options);break}this.state.bomSkipped=!0}let Ue=pe.length,$;for($=0;$<Ue&&!this.__needMoreData($,Ue,o);$++){if(this.state.wasRowDelimiter===!0&&(this.info.lines++,this.state.wasRowDelimiter=!1),q!==-1&&this.info.lines>q){this.state.stop=!0,a();return}this.state.quoting===!1&&L.length===0&&this.__autoDiscoverRecordDelimiter(pe,$)&&(L=this.options.record_delimiter);let Qe=pe[$];if(z===!0&&Ne.append(Qe),(Qe===Ma0||Qe===ha0)&&this.state.wasRowDelimiter===!1&&(this.state.wasRowDelimiter=!0),this.state.escaping===!0)this.state.escaping=!1;else{if(W!==null&&this.state.quoting===!0&&this.__isEscape(pe,$,Qe)&&$+W.length<Ue)if(Be){if(this.__isQuote(pe,$+W.length)){this.state.escaping=!0,$+=W.length-1;continue}}else{this.state.escaping=!0,$+=W.length-1;continue}if(this.state.commenting===!1&&this.__isQuote(pe,$))if(this.state.quoting===!0){let p0=pe[$+x.length],V1=y&&this.__isCharTrimable(pe,$+x.length),q0=D!==null&&this.__compareBytes(D,pe,$+x.length,p0),oe=this.__isDelimiter(pe,$+x.length,p0),_o=L.length===0?this.__autoDiscoverRecordDelimiter(pe,$+x.length):this.__isRecordDelimiter(p0,pe,$+x.length);if(W!==null&&this.__isEscape(pe,$,Qe)&&this.__isQuote(pe,$+W.length))$+=W.length-1;else if(!p0||oe||_o||q0||V1){this.state.quoting=!1,this.state.wasQuoting=!0,$+=x.length-1;continue}else if(O===!1){let An=this.__error(new Ye("CSV_INVALID_CLOSING_QUOTE",["Invalid Closing Quote:",`got "${String.fromCharCode(p0)}"`,`at line ${this.info.lines}`,"instead of delimiter, record delimiter, trimable character","(if activated) or comment"],this.options,this.__infoField()));if(An!==void 0)return An}else this.state.quoting=!1,this.state.wasQuoting=!0,this.state.field.prepend(x),$+=x.length-1}else if(this.state.field.length!==0){if(O===!1){let p0=this.__infoField(),V1=Object.keys(W2).map(oe=>W2[oe].equals(this.state.field.toString())?oe:!1).filter(Boolean)[0],q0=this.__error(new Ye("INVALID_OPENING_QUOTE",["Invalid Opening Quote:",`a quote is found on field ${JSON.stringify(p0.column)} at line ${p0.lines}, value is ${JSON.stringify(this.state.field.toString(A))}`,V1?`(${V1} bom)`:void 0],this.options,p0,{field:this.state.field}));if(q0!==void 0)return q0}}else{this.state.quoting=!0,$+=x.length-1;continue}if(this.state.quoting===!1){let p0=this.__isRecordDelimiter(Qe,pe,$);if(p0!==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(),$+=p0-1;continue}if(E===!0&&this.state.wasQuoting===!1&&this.state.record.length===0&&this.state.field.length===0){this.info.empty_lines++,$+=p0-1;continue}this.info.bytes=this.state.bufBytesStart+$;let oe=this.__onField();if(oe!==void 0)return oe;this.info.bytes=this.state.bufBytesStart+$+p0;let _o=this.__onRecord(s);if(_o!==void 0)return _o;if(B!==-1&&this.info.records>=B){this.state.stop=!0,a();return}}this.state.commenting=!1,$+=p0-1;continue}if(this.state.commenting)continue;if(D!==null&&(u===!1||this.state.record.length===0&&this.state.field.length===0)&&this.__compareBytes(D,pe,$,Qe)!==0){this.state.commenting=!0;continue}let V1=this.__isDelimiter(pe,$,Qe);if(V1!==0){this.info.bytes=this.state.bufBytesStart+$;let q0=this.__onField();if(q0!==void 0)return q0;$+=V1-1;continue}}}if(this.state.commenting===!1&&M!==0&&this.state.record_length+this.state.field.length>M)return this.__error(new Ye("CSV_MAX_RECORD_SIZE",["Max Record Size:","record exceed the maximum number of tolerated bytes",`of ${M}`,`at line ${this.info.lines}`],this.options,this.__infoField()));let C0=b===!1||this Line truncated
`,s),Buffer.from(`
`,s),Buffer.from("\r",s)];e:for(let c=0;c<a.length;c++){let u=a[c].length;for(let p=0;p<u;p++)if(a[c][p]!==n[o+p])continue e;return this.options.record_delimiter.push(a[c]),this.state.recordDelimiterMaxLength=a[c].length,a[c].length}return 0},"__autoDiscoverRecordDelimiter"),__error:i(function(n){let{encoding:o,raw:s,skip_records_with_error:a}=this.options,c=typeof n=="string"?new Error(n):n;if(a){if(this.state.recordHasError=!0,this.options.on_skip!==void 0)try{this.options.on_skip(c,s?this.state.rawBuffer.toString(o):void 0)}catch(u){return u}return}else return c},"__error"),__infoDataSet:i(function(){return{...this.info,columns:this.options.columns}},"__infoDataSet"),__infoRecord:i(function(){let{columns:n,raw:o,encoding:s}=this.options;return{...this.__infoDataSet(),bytes_records:this.info.bytes,error:this.state.error,header:n===!0,index:this.state.record.length,raw:o?this.state.rawBuffer.toString(s):void 0}},"__infoRecord"),__infoField:i(function(){let{columns:n}=this.options,o=Array.isArray(n),s=this.info.bytes_records;return{...this.__infoRecord(),bytes_records:s,column:o===!0?n.length>this.state.record.length?n[this.state.record.length].name:null:this.state.record.length,quoting:this.state.wasQuoting}},"__infoField")}},"transform");var F1=i(function(t,e={}){typeof t=="string"&&(t=Buffer.from(t));let r=e&&e.objname?Object.create(null):[],n=v4(e),o=i(c=>{n.options.objname===void 0?r.push(c):r[c[0]]=c[1]},"push"),s=i(()=>{},"close"),a=n.parse(t,!0,o,s);if(a!==void 0)throw a;return r},"parse");var c0=class t{static{i(this,"Util")}static getInputList(e,r){return this.getList(Pr(e,{trimWhitespace:r?.trimWhitespace!==!1}),r)}static getList(e,r){let n=[];if(e=="")return n;let o=F1(e,{columns:!1,relaxQuotes:!0,comment:r?.comment,comment_no_infix:r?.commentNoInfix,relaxColumnCount:!0,skipEmptyLines:!0,quote:r?.quote});for(let s of o)s.length==1?r?.ignoreComma?n.push(s[0]):n.push(...s[0].split(",")):r?.ignoreComma?n.push(s.join(",")):n.push(...s);return n.filter(s=>s).map(s=>r?.trimWhitespace===!1?s:s.trim())}static getInputNumber(e){let r=Pr(e);if(r)return parseInt(r)}static async asyncForEach(e,r){for(let n=0;n<e.length;n++)await r(e[n],n,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 n=await it("powershell",!0),o=e.replace(/'/g,"''"),s=[];if(r)for(let a in r)s.push(`-${a} '${r[a].replace(/'/g,"''")}'`);return{command:`"${n}"`,args:["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-EncodedCommand",Buffer.from(`& '${o}' ${s.join(" ")}`,"utf16le").toString("base64")]}}static isDirectory(e){try{return qle.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 n=e.lastIndexOf(r);return n===-1||n+r.length!==e.length?e:e.substring(0,n)}static sleep(e){return new Promise(r=>setTimeout(r,e*1e3))}static hash(e){return $Q.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,n=["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"],o=Math.floor(Math.log(e)/Math.log(r));return parseFloat((e/Math.pow(r,o)).toFixed(2))+" "+n[o]}static generateRandomString(e=10){return $Q.default.randomBytes(Math.ceil(e/2)).toString("hex").slice(0,e)}static compileHandlebars(e,r,n){return Dle.default.compile(e,r)(n)}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 n=Oh.default.resolve(e);return Oh.default.resolve(r).startsWith(n.endsWith(Oh.default.sep)?n:`${n}${Oh.default.sep}`)}static formatDuration(e){if(e===0)return"0s";let r=Math.floor(e/1e9),n=Math.floor(r/3600),o=Math.floor(r%3600/60),s=r%60,a=[];return n&&a.push(`${n}h`),o&&a.push(`${o}m`),(s||a.length===0)&&a.push(`${s}s`),a.join("")}};var Bt=class t{static{i(this,"Docker")}static get configDir(){return process.env.DOCKER_CONFIG||Eh.default.join(Ile.default.homedir(),".docker")}static configFile(){let e=Eh.default.join(t.configDir,"config.json");if(jQ.default.existsSync(e))return JSON.parse(jQ.default.readFileSync(e,{encoding:"utf-8"}))}static async isAvailable(){return await it("docker",!0).then(e=>(N(`Docker.isAvailable ok: ${e}`),!0)).catch(e=>(N(`Docker.isAvailable error: ${e}`),!1))}static async isDaemonRunning(){try{return await t.getExecOutput(["version"],{silent:!0}),!0 Line truncated
${n}`)},"onRetry")})}static isPullTransientError(e){return/Client\.Timeout exceeded|TLS handshake timeout|i\/o timeout|context deadline exceeded|request canceled|connection reset by peer|connection refused|connection timed out|temporary failure|unexpected EOF|\bEOF\b|server misbehaving/i.test(e)||/\b(500|502|503|504)\b/.test(e)||/\b(service unavailable|bad gateway|gateway timeout|internal server error)\b/i.test(e)}};var m0=class t{static{i(this,"Buildx")}_version;_versionOnce;_standalone;static containerNamePrefix="buildx_buildkit_";constructor(e){this._standalone=e?.standalone,this._version="",this._versionOnce=!1}static get configDir(){return process.env.BUILDX_CONFIG||mr.default.join(Bt.configDir,"buildx")}static get refsDir(){return mr.default.join(t.configDir,"refs")}static get refsGroupDir(){return mr.default.join(t.refsDir,"__group__")}static get certsDir(){return mr.default.join(t.configDir,"certs")}async isStandalone(){let e=this._standalone??!await Bt.isAvailable();return N(`Buildx.isStandalone: ${e}`),e}async getCommand(e){let r=await this.isStandalone();return{command:r?"buildx":"docker",args:r?e:["buildx",...e]}}async isAvailable(){let e=await this.getCommand([]),r=await ge.getExecOutput(e.command,e.args,{ignoreReturnCode:!0,silent:!0}).then(n=>n.stderr.length>0&&n.exitCode!=0?(N(`Buildx.isAvailable cmd err: ${n.stderr.trim()}`),!1):n.exitCode==0).catch(n=>(N(`Buildx.isAvailable error: ${n}`),!1));return N(`Buildx.isAvailable: ${r}`),r}async version(){if(this._versionOnce)return this._version;this._versionOnce=!0;let e=await this.getCommand(["version"]);return this._version=await ge.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 ge.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 buildx version");return r[1]}static getErrorMessage(e){let r=(0,wle.stripVTControlCharacters)(e).split(/[\r\n]/),n="";for(let o=r.length-1;o>=0;o--){let s=r[o].trim();if(s.startsWith("ERROR:"))return s.slice(6).trim()||"unknown error";n||=s}return n||"unknown error"}async versionSatisfies(e,r){let n=r??await this.version();if(!n)return N("Buildx.versionSatisfies false: undefined version"),!1;let o=Sle.satisfies(n,e)||/^[0-9a-f]{7}$/.exec(n)!==null;return N(`Buildx.versionSatisfies ${n} statisfies ${e}: ${o}`),o}static resolveCertsDriverOpts(e,r,n){let o;try{o=new URL(r)}catch{return[]}if(o.protocol!="tcp:")return[];let s=[];if(Object.keys(n).length==0)return s;let a=o.hostname;if(o.port.length>0&&(a+=`-${o.port}`),n.cacert!==void 0){let c=mr.default.join(t.certsDir,`cacert_${a}.pem`);Hn.default.writeFileSync(c,n.cacert),s.push(`cacert=${c}`)}if(n.cert!==void 0){let c=mr.default.join(t.certsDir,`cert_${a}.pem`);Hn.default.writeFileSync(c,n.cert),s.push(`cert=${c}`)}if(n.key!==void 0){let c=mr.default.join(t.certsDir,`key_${a}.pem`);Hn.default.writeFileSync(c,n.key),s.push(`key=${c}`)}return e!="remote"?[]:s}static localState(e,r){let[n,o,s]=e.split("/");if(!n||!o||!s)throw new Error(`Invalid build reference: ${e}`);let a=mr.default.join(r||t.refsDir,n,o,s);if(!Hn.default.existsSync(a))throw new Error(`Local state not found in ${a}`);return t.fixLocalState(JSON.parse(Hn.default.readFileSync(a,"utf8")))}static fixLocalState(e){let r=i(function(a){let c=a.match(/(.*)(https?:\/{1,2}\S+|ssh:\/{1,2}\S+|git:\/{1,2}\S+)/i);if(c&&c.length==3){let u=c[1],p=c[2];return p.startsWith("https:/")&&!p.startsWith("https://")&&(p=p.replace("https:/","https://")),p.startsWith("http:/")&&!p.startsWith("http://")&&(p=p.replace("http:/","http://")),p.startsWith("ssh:/")&&!p.startsWith("ssh://")&&(p=p.replace("ssh:/","ssh://")),p.startsWith("git:/")&&!p.startsWith("git://")&&(p=p.replace("git:/","git://")),[p,u,!0]}return[a,"",!1]},"fnTrimToValidContext"),[n,o,s]=r(e.LocalPath);return s&&(e.LocalPath=n,e.DockerfilePath.indexOf(o)===0&&(e.DockerfilePath=e.DockerfilePath.substring(o.length))),e.LocalPath=e.LocalPath.endsWith("/-")?"-":e.LocalPath,e.DockerfilePath=e.DockerfilePath.endsWith("/-")?"-":e.DockerfilePath,e}static refs(e,r={}){let{dir:n,builderName:o,nodeName:s,since:a}=e,c=mr.default.resolve(n);if(e.builderName&&(c=mr.default.join(c,e.builderName)),e.nodeName&&(c=mr.default.join(c,e.nodeName)),!Hn.default.existsSync(c))return r;let u=Hn.default.readdirSync(c);for(let p of u){let A=mr.default.join(c,p),l=Hn.default.statSync(A);if(l.isDirectory()){let b={...e};if(o)s||(b.nodeName=p);else{if(p==="__group__")continue;b.builderName=p}t.refs(b,r)}else{if(a&&l.mtime<a)continue;let b=t.fixLocalState(JSON.parse(Hn.default.readFileSync(A,"utf8"))),M=`${o}/${s}/${p}`;r[M]=b}}return r}static async convertWarningsToGitHubAnnotations(e,r,n){if(e.length===0)return;let o=i(function(u){try{return $y.parseURL(u)}catch{}},"fnGitURL"),s=i(function Line truncated
More info: ${u.url}`);let M=u.range&&u.range.length>0?u.range[0]?.start.line:void 0,z=!1;for(let O of a)if(O.remote||O.path.endsWith(p)&&O.content===A){c.push({title:l,message:b,file:O.path,startLine:M}),z=!0;break}z||N(`Buildx.convertWarningsToGitHubAnnotations: skipping warning without matching Dockerfile ${p}: ${l}`)}return c}};var Bp=w(require("fs"),1),KQ=w(require("path"),1);var L4=class t{static{i(this,"Build")}buildx;iidFilename;metadataFilename;constructor(e){this.buildx=e?.buildx||new m0,this.iidFilename=`build-iidfile-${c0.generateRandomString()}.txt`,this.metadataFilename=`build-metadata-${c0.generateRandomString()}.json`}async gitContext(e){let r=new Set(["ref","checksum","subdir"]),n=e?.attrs||{},o=Object.entries(n).filter(([M])=>!r.has(M)),s=c0.parseBoolOrDefault(n["fetch-by-commit"]),a=e?.ref||n.ref||Ht.ref;a.startsWith("refs/")?a.startsWith("refs/pull/")&&c0.parseBoolOrDefault(process.env.DOCKER_DEFAULT_GIT_CONTEXT_PR_HEAD_REF)&&(a=a.replace(/\/merge$/g,"/head")):a=`refs/heads/${a}`;let c=`${a0.serverURL}/${Ht.repo.owner}/${Ht.repo.repo}.git`,u=e?.checksum||n.checksum,p=e?.subdir||n.subdir,A=e?.format;if(!A){if(A="fragment",o.length>0)A="query";else if(c0.parseBoolOrDefault(process.env.BUILDX_SEND_GIT_QUERY_AS_INPUT))try{await this.buildx.versionSatisfies(">=0.29.0")&&(A="query")}catch{}}let l=Ht.sha||a;a.startsWith("refs/pull/")&&a.endsWith("/head")&&(l=typeof Ht.payload.pull_request?.head?.sha=="string"?Ht.payload.pull_request.head.sha:a);let b=u||l;if(A==="query"){let M=[`ref=${s||u?a:b}`],z=s?b:u;z&&M.push(`checksum=${z}`),p&&p!=="."&&M.push(`subdir=${p}`);for(let[O,y]of o)M.push(`${O}=${y}`);return`${c}?${M.join("&")}`}return`${c}#${b}${p&&p!=="."?`:${p}`:""}`}getImageIDFilePath(){return KQ.default.join(s0.tmpDir(),this.iidFilename)}resolveImageID(){let e=this.getImageIDFilePath();if(Bp.default.existsSync(e))return Bp.default.readFileSync(e,{encoding:"utf-8"}).trim()}getMetadataFilePath(){return KQ.default.join(s0.tmpDir(),this.metadataFilename)}resolveMetadata(){let e=this.getMetadataFilePath();if(!Bp.default.existsSync(e))return;let r=Bp.default.readFileSync(e,{encoding:"utf-8"}).trim();if(r!=="null")return JSON.parse(r)}resolveRef(e){if(!(!e&&(e=this.resolveMetadata(),!e))&&"buildx.build.ref"in e)return e["buildx.build.ref"]}resolveProvenance(e){if(!(!e&&(e=this.resolveMetadata(),!e))&&"buildx.build.provenance"in e)return e["buildx.build.provenance"]}resolveWarnings(e){if(!(!e&&(e=this.resolveMetadata(),!e))&&"buildx.build.warnings"in e)return e["buildx.build.warnings"]}resolveDigest(e){if(!(!e&&(e=this.resolveMetadata(),!e))&&"containerimage.digest"in e)return e["containerimage.digest"]}static resolveSecretString(e){let[r,n]=t.resolveSecret(e,{redact:!0});return`id=${r},src=${n}`}static resolveSecretFile(e){let[r,n]=t.resolveSecret(e,{asFile:!0});return`id=${r},src=${n}`}static resolveSecretEnv(e){let[r,n]=t.parseSecretKvp(e);return`id=${r},env=${n}`}static resolveSecret(e,r){let[n,o]=t.parseSecretKvp(e,r?.redact);if(r?.asFile){if(!Bp.default.existsSync(o))throw new Error(`secret file ${o} not found`);return[n,o]}let s=s0.tmpName({tmpdir:s0.tmpDir()});return Bp.default.writeFileSync(s,o),[n,s]}static getProvenanceInput(e){let r=Pr(e);if(!r)return r;try{return Vj(e)?`builder-id=${a0.workflowRunURL(!0)}`:"false"}catch{return t.resolveProvenanceAttrs(r)}}static resolveProvenanceAttrs(e){if(!e)return`builder-id=${a0.workflowRunURL(!0)}`;let r=F1(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0];for(let n of r)if(n.toString().split(/(?<=^[^=]+?)=/).map(s=>s.trim())[0]=="builder-id")return e;return`${e},builder-id=${a0.workflowRunURL(!0)}`}static resolveCacheToAttrs(e,r){if(!e)return e;let n="registry",o="",s="",a=F1(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0];for(let c of a){let u=c.toString().split(/(?<=^[^=]+?)=/).map(p=>p.trim());u[0]==="type"?n=u[1]:u[0]==="repository"?o=u[1]:u[0]==="ghtoken"&&(s=u[1])}return n==="gha"&&(o||(e=`${e},repository=${a0.repository}`),!s&&r&&(e=`${e},ghtoken=${r}`)),e}static hasLocalExporter(e){return t.hasExporterType("local",e)}static hasTarExporter(e){return t.hasExporterType("tar",e)}static hasDockerExporter(e,r){return r||t.hasExporterType("docker",e)}static hasExporterType(e,r){let n=F1(r.join(`
`),{delimiter:",",trim:!0,columns:!1,relaxColumnCount:!0});for(let o of n){if(o.length==1&&!o[0].startsWith("type="))return e=="local";for(let[s,a]of o.map(c=>c.split("=").map(u=>u.trim())))if(s=="type"&&a==e)return!0}return!1}static hasAttestationType(e,r){let n=F1(r,{delimiter:",",trim:!0,columns:!1,relaxColumnCount:!0});for(let o of n)for(let[s,a]of o.map(c=>c.split("=").map(u=>u.trim())))if(s=="type"&&a==e)return!0;return!1}static resolveAttestationAttrs(e){let r=F1(e,{delimiter:",",trim:!0,columns:!1,relaxColumnCount:!0}),n=[];for(let o of r)for(let s of o)try{let a=c0.parseBool(s);n.push(`disabled=${!a}`)}catch{n.push(s)}return n.join(",")}static hasGitAuthTokenSecret(e,r){for(let n of e){if(r&&n.startsWith(`GIT_AUTH_TOKEN.${r}=`))return!0;if(n.startsWith("GIT_AUTH_TOKEN="))return!0}return!1}static parseSecretKvp(e,r){let n=e.indexOf("="),o=e.substring(0,n),s=e.substring(n+1);if(o.length==0||s.length==0)throw new Error(`${e} is not a valid secret`);return r&&Zo(s),[o,s]}};var ZQ=w(require("fs"),1),Fle=w(require("path"),1);var Q4=class t{static{i(this,"Bake")}buildx;metadataFilename;constructor(e){this.buildx=e?.buildx||new m0,this.metadataFilename=`bake-metadata-${c0.generateRandomString()}.json`}getMetadataFilePath(){return Fle.default.join(s0.tmpDir(),this.metadataFilename)}resolveMetadata(){let e=this.getMetadataFilePath();if(!ZQ.default.existsSync(e))return;let r=ZQ.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 n in e)"buildx.build.ref"in e[n]&&r.push(e[n]["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 n=["bake"],o,s=[],a=[...e.files||[],e.source];if(a){for(let u of a.map(p=>p?p.trim():""))if(u.length!=0){if(!c0.isValidRef(u)){s.push(u);continue}if(o)throw new Error("Only one remote bake definition can be defined");o=u}}o&&n.push(o);for(let u of s)n.push("--file",u);if(e.overrides)for(let u of e.overrides)n.push("--set",u);if(e.vars)for(let u of e.vars)n.push("--var",u);if(e.allow)for(let u of e.allow)n.push("--allow",u);e.call&&n.push("--call",e.call),e.load&&n.push("--load"),e.noCache&&n.push("--no-cache"),e.provenance&&n.push("--provenance",e.provenance),e.push&&n.push("--push"),e.sbom&&n.push("--sbom",e.sbom);let c=await this.buildx.getCommand([...n,"--print",...e.targets||[]]);return await ge.getExecOutput(c.command,c.args,r).then(u=>{if(u.stderr.length>0&&u.exitCode!=0)throw new Error(`cannot parse bake definitions: ${m0.getErrorMessage(u.stderr)}`);return t.parseDefinition(u.stdout.trim())})}static parseDefinition(e){let r=JSON.parse(e);for(let n in r.target){let o=r.target[n];o.attest&&Array.isArray(o.attest)&&(o.attest=o.attest.map(s=>t.parseAttestEntry(s))),o["cache-from"]&&Array.isArray(o["cache-from"])&&(o["cache-from"]=o["cache-from"].map(s=>t.parseCacheEntry(s))),o["cache-to"]&&Array.isArray(o["cache-to"])&&(o["cache-to"]=o["cache-to"].map(s=>t.parseCacheEntry(s))),o.output&&Array.isArray(o.output)&&(o.output=o.output.map(s=>t.parseExportEntry(s))),o.secret&&Array.isArray(o.secret)&&(o.secret=o.secret.map(s=>t.parseSecretEntry(s))),o.ssh&&Array.isArray(o.ssh)&&(o.ssh=o.ssh.map(s=>t.parseSSHEntry(s)))}return r}static parseAttestEntry(e){if(typeof e!="string")return e;let r={type:""},n=F1(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0];for(let o of n){let[s,a]=o.toString().split(/(?<=^[^=]+?)=/).map(c=>c.trim());switch(s){case"type":r.type=a;break;case"disabled":r.disabled=c0.parseBool(a);break;default:r[s]=a}}return r}static parseCacheEntry(e){if(typeof e!="string")return e;let r={type:""},n=F1(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0];if(n.length===1&&!n[0].includes("="))return r.type="registry",r.ref=n[0],r;for(let o of n){let[s,a]=o.toString().split(/(?<=^[^=]+?)=/).map(c=>c.trim());s==="type"?r.type=a:r[s]=a}return r}static parseExportEntry(e){if(typeof e!="string")return e;let r={type:""},n=F1(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0];if(n.length===1&&n[0]===e&&!e.startsWith("type="))return e!=="-"?(r.type="local",r.dest=e,r):(r.type="tar",r.dest=e,r);for(let o of n){let[s,a]=o.toString().split(/(?<=^[^=]+?)=/).map(c=>c.trim());s==="type"?r.type=a:r[s]=a}return r}static parseSecretEntry(e){if(typeof e!="string")return e;let r={},n=F1(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0],o="";for(let s of n){let[a,c]=s.toString().split(/(?<=^[^=]+?)=/).map(u=>u.trim());switch(a){case"type":o=c;break;case"id":r.id=c;break;case"source":case"src":r.src=c;break;case"env":r.env=c;break}}return o==="env"&&!r.env&&(r.env=r.src,r.src=void 0),r}static parseSSHEntry(e){if(typeof e!="string")return e;let r={},[n,o]=e.split("=",2);return r.id=n,o&&(r.paths=o.split(",")),r} Line truncated
`,s),Buffer.from("\r",s)];e:for(let c=0;c<a.length;c++){let u=a[c].length;for(let p=0;p<u;p++)if(a[c][p]!==n[o+p])continue e;return this.options.record_delimiter.push(a[c]),this.state.recordDelimiterMaxLength=a[c].length,a[c].length}return 0},"__autoDiscoverRecordDelimiter"),__error:i(function(n){let{encoding:o,raw:s,skip_records_with_error:a}=this.options,c=typeof n=="string"?new Error(n):n;if(a){if(this.state.recordHasError=!0,this.options.on_skip!==void 0)try{this.options.on_skip(c,s?this.state.rawBuffer.toString(o):void 0)}catch(u){return u}return}else return c},"__error"),__infoDataSet:i(function(){return{...this.info,columns:this.options.columns}},"__infoDataSet"),__infoRecord:i(function(){let{columns:n,raw:o,encoding:s}=this.options;return{...this.__infoDataSet(),bytes_records:this.info.bytes,error:this.state.error,header:n===!0,index:this.state.record.length,raw:o?this.state.rawBuffer.toString(s):void 0}},"__infoRecord"),__infoField:i(function(){let{columns:n}=this.options,o=Array.isArray(n),s=this.info.bytes_records;return{...this.__infoRecord(),bytes_records:s,column:o===!0?n.length>this.state.record.length?n[this.state.record.length].name:null:this.state.record.length,quoting:this.state.wasQuoting}},"__infoField")}},"transform");var F1=i(function(t,e={}){typeof t=="string"&&(t=Buffer.from(t));let r=e&&e.objname?Object.create(null):[],n=Q4(e),o=i(c=>{n.options.objname===void 0?r.push(c):r[c[0]]=c[1]},"push"),s=i(()=>{},"close"),a=n.parse(t,!0,o,s);if(a!==void 0)throw a;return r},"parse");var c0=class t{static{i(this,"Util")}static getInputList(e,r){return this.getList(Ur(e,{trimWhitespace:r?.trimWhitespace!==!1}),r)}static getList(e,r){let n=[];if(e=="")return n;let o=F1(e,{columns:!1,relaxQuotes:!0,comment:r?.comment,comment_no_infix:r?.commentNoInfix,relaxColumnCount:!0,skipEmptyLines:!0,quote:r?.quote});for(let s of o)s.length==1?r?.ignoreComma?n.push(s[0]):n.push(...s[0].split(",")):r?.ignoreComma?n.push(s.join(",")):n.push(...s);return n.filter(s=>s).map(s=>r?.trimWhitespace===!1?s:s.trim())}static getInputNumber(e){let r=Ur(e);if(r)return parseInt(r)}static async asyncForEach(e,r){for(let n=0;n<e.length;n++)await r(e[n],n,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 n=await at("powershell",!0),o=e.replace(/'/g,"''"),s=[];if(r)for(let a in r)s.push(`-${a} '${r[a].replace(/'/g,"''")}'`);return{command:`"${n}"`,args:["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-EncodedCommand",Buffer.from(`& '${o}' ${s.join(" ")}`,"utf16le").toString("base64")]}}static isDirectory(e){try{return Ile.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 n=e.lastIndexOf(r);return n===-1||n+r.length!==e.length?e:e.substring(0,n)}static sleep(e){return new Promise(r=>setTimeout(r,e*1e3))}static hash(e){return e8.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,n=["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"],o=Math.floor(Math.log(e)/Math.log(r));return parseFloat((e/Math.pow(r,o)).toFixed(2))+" "+n[o]}static generateRandomString(e=10){return e8.default.randomBytes(Math.ceil(e/2)).toString("hex").slice(0,e)}static compileHandlebars(e,r,n){return Rle.default.compile(e,r)(n)}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 n=Oh.default.resolve(e);return Oh.default.resolve(r).startsWith(n.endsWith(Oh.default.sep)?n:`${n}${Oh.default.sep}`)}static formatDuration(e){if(e===0)return"0s";let r=Math.floor(e/1e9),n=Math.floor(r/3600),o=Math.floor(r%3600/60),s=r%60,a=[];return n&&a.push(`${n}h`),o&&a.push(`${o}m`),(s||a.length===0)&&a.push(`${s}s`),a.join("")}};var qt=class t{static{i(this,"Docker")}static get configDir(){return process.env.DOCKER_CONFIG||Eh.default.join(Nle.default.homedir(),".docker")}static configFile(){let e=Eh.default.join(t.configDir,"config.json");if(t8.default.existsSync(e))return JSON.parse(t8.default.readFileSync(e,{encoding:"utf-8"}))}static async isAvailable(){return await at("docker",!0).then(e=>(N(`Docker.isAvailable ok: ${e}`),!0)).catch(e=>(N(`Docker.isAvailable error: ${e}`),!1))}static async isDaemonRunning(){try{return await t.getExecOutput(["version"],{silent:!0}),!0 Line truncated
${n}`)},"onRetry")})}static isPullTransientError(e){return/Client\.Timeout exceeded|TLS handshake timeout|i\/o timeout|context deadline exceeded|request canceled|connection reset by peer|connection refused|connection timed out|temporary failure|unexpected EOF|\bEOF\b|server misbehaving/i.test(e)||/\b(500|502|503|504)\b/.test(e)||/\b(service unavailable|bad gateway|gateway timeout|internal server error)\b/i.test(e)}};var m0=class t{static{i(this,"Buildx")}_version;_versionOnce;_standalone;static containerNamePrefix="buildx_buildkit_";constructor(e){this._standalone=e?.standalone,this._version="",this._versionOnce=!1}static get configDir(){return process.env.BUILDX_CONFIG||zr.default.join(qt.configDir,"buildx")}static get refsDir(){return zr.default.join(t.configDir,"refs")}static get refsGroupDir(){return zr.default.join(t.refsDir,"__group__")}static get certsDir(){return zr.default.join(t.configDir,"certs")}async isStandalone(){let e=this._standalone??!await qt.isAvailable();return N(`Buildx.isStandalone: ${e}`),e}async getCommand(e){let r=await this.isStandalone();return{command:r?"buildx":"docker",args:r?e:["buildx",...e]}}async isAvailable(){let e=await this.getCommand([]),r=await ge.getExecOutput(e.command,e.args,{ignoreReturnCode:!0,silent:!0}).then(n=>n.stderr.length>0&&n.exitCode!=0?(N(`Buildx.isAvailable cmd err: ${n.stderr.trim()}`),!1):n.exitCode==0).catch(n=>(N(`Buildx.isAvailable error: ${n}`),!1));return N(`Buildx.isAvailable: ${r}`),r}async version(){if(this._versionOnce)return this._version;this._versionOnce=!0;let e=await this.getCommand(["version"]);return this._version=await ge.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 ge.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 buildx version");return r[1]}static getErrorMessage(e){let r=(0,Fle.stripVTControlCharacters)(e).split(/[\r\n]/),n="";for(let o=r.length-1;o>=0;o--){let s=r[o].trim();if(s.startsWith("ERROR:"))return s.slice(6).trim()||"unknown error";n||=s}return n||"unknown error"}async versionSatisfies(e,r){let n=r??await this.version();if(!n)return N("Buildx.versionSatisfies false: undefined version"),!1;let o=Wle.satisfies(n,e)||/^[0-9a-f]{7}$/.exec(n)!==null;return N(`Buildx.versionSatisfies ${n} statisfies ${e}: ${o}`),o}static resolveCertsDriverOpts(e,r,n){let o;try{o=new URL(r)}catch{return[]}if(o.protocol!="tcp:")return[];let s=[];if(Object.keys(n).length==0)return s;let a=o.hostname;if(o.port.length>0&&(a+=`-${o.port}`),n.cacert!==void 0){let c=zr.default.join(t.certsDir,`cacert_${a}.pem`);Vn.default.writeFileSync(c,n.cacert),s.push(`cacert=${c}`)}if(n.cert!==void 0){let c=zr.default.join(t.certsDir,`cert_${a}.pem`);Vn.default.writeFileSync(c,n.cert),s.push(`cert=${c}`)}if(n.key!==void 0){let c=zr.default.join(t.certsDir,`key_${a}.pem`);Vn.default.writeFileSync(c,n.key),s.push(`key=${c}`)}return e!="remote"?[]:s}static localState(e,r){let[n,o,s]=e.split("/");if(!n||!o||!s)throw new Error(`Invalid build reference: ${e}`);let a=zr.default.join(r||t.refsDir,n,o,s);if(!Vn.default.existsSync(a))throw new Error(`Local state not found in ${a}`);return t.fixLocalState(JSON.parse(Vn.default.readFileSync(a,"utf8")))}static fixLocalState(e){let r=i(function(a){let c=a.match(/(.*)(https?:\/{1,2}\S+|ssh:\/{1,2}\S+|git:\/{1,2}\S+)/i);if(c&&c.length==3){let u=c[1],p=c[2];return p.startsWith("https:/")&&!p.startsWith("https://")&&(p=p.replace("https:/","https://")),p.startsWith("http:/")&&!p.startsWith("http://")&&(p=p.replace("http:/","http://")),p.startsWith("ssh:/")&&!p.startsWith("ssh://")&&(p=p.replace("ssh:/","ssh://")),p.startsWith("git:/")&&!p.startsWith("git://")&&(p=p.replace("git:/","git://")),[p,u,!0]}return[a,"",!1]},"fnTrimToValidContext"),[n,o,s]=r(e.LocalPath);return s&&(e.LocalPath=n,e.DockerfilePath.indexOf(o)===0&&(e.DockerfilePath=e.DockerfilePath.substring(o.length))),e.LocalPath=e.LocalPath.endsWith("/-")?"-":e.LocalPath,e.DockerfilePath=e.DockerfilePath.endsWith("/-")?"-":e.DockerfilePath,e}static refs(e,r={}){let{dir:n,builderName:o,nodeName:s,since:a}=e,c=zr.default.resolve(n);if(e.builderName&&(c=zr.default.join(c,e.builderName)),e.nodeName&&(c=zr.default.join(c,e.nodeName)),!Vn.default.existsSync(c))return r;let u=Vn.default.readdirSync(c);for(let p of u){let A=zr.default.join(c,p),l=Vn.default.statSync(A);if(l.isDirectory()){let b={...e};if(o)s||(b.nodeName=p);else{if(p==="__group__")continue;b.builderName=p}t.refs(b,r)}else{if(a&&l.mtime<a)continue;let b=t.fixLocalState(JSON.parse(Vn.default.readFileSync(A,"utf8"))),M=`${o}/${s}/${p}`;r[M]=b}}return r}static async convertWarningsToGitHubAnnotations(e,r,n){if(e.length===0)return;let o=i(function(u){try{return Ky.parseURL(u)}catch{}},"fnGitURL"),s=i(function Line truncated
More info: ${u.url}`);let M=u.range&&u.range.length>0?u.range[0]?.start.line:void 0,z=!1;for(let O of a)if(O.remote||O.path.endsWith(p)&&O.content===A){c.push({title:l,message:b,file:O.path,startLine:M}),z=!0;break}z||N(`Buildx.convertWarningsToGitHubAnnotations: skipping warning without matching Dockerfile ${p}: ${l}`)}return c}};var Bp=w(require("fs"),1),r8=w(require("path"),1);var _4=class t{static{i(this,"Build")}buildx;iidFilename;metadataFilename;constructor(e){this.buildx=e?.buildx||new m0,this.iidFilename=`build-iidfile-${c0.generateRandomString()}.txt`,this.metadataFilename=`build-metadata-${c0.generateRandomString()}.json`}async gitContext(e){let r=new Set(["ref","checksum","subdir"]),n=e?.attrs||{},o=Object.entries(n).filter(([M])=>!r.has(M)),s=c0.parseBoolOrDefault(n["fetch-by-commit"]),a=e?.ref||n.ref||Xt.ref;a.startsWith("refs/")?a.startsWith("refs/pull/")&&c0.parseBoolOrDefault(process.env.DOCKER_DEFAULT_GIT_CONTEXT_PR_HEAD_REF)&&(a=a.replace(/\/merge$/g,"/head")):a=`refs/heads/${a}`;let c=`${a0.serverURL}/${Xt.repo.owner}/${Xt.repo.repo}.git`,u=e?.checksum||n.checksum,p=e?.subdir||n.subdir,A=e?.format;if(!A){if(A="fragment",o.length>0)A="query";else if(c0.parseBoolOrDefault(process.env.BUILDX_SEND_GIT_QUERY_AS_INPUT))try{await this.buildx.versionSatisfies(">=0.29.0")&&(A="query")}catch{}}let l=Xt.sha||a;a.startsWith("refs/pull/")&&a.endsWith("/head")&&(l=typeof Xt.payload.pull_request?.head?.sha=="string"?Xt.payload.pull_request.head.sha:a);let b=u||l;if(A==="query"){let M=[`ref=${s||u?a:b}`],z=s?b:u;z&&M.push(`checksum=${z}`),p&&p!=="."&&M.push(`subdir=${p}`);for(let[O,y]of o)M.push(`${O}=${y}`);return`${c}?${M.join("&")}`}return`${c}#${b}${p&&p!=="."?`:${p}`:""}`}getImageIDFilePath(){return r8.default.join(s0.tmpDir(),this.iidFilename)}resolveImageID(){let e=this.getImageIDFilePath();if(Bp.default.existsSync(e))return Bp.default.readFileSync(e,{encoding:"utf-8"}).trim()}getMetadataFilePath(){return r8.default.join(s0.tmpDir(),this.metadataFilename)}resolveMetadata(){let e=this.getMetadataFilePath();if(!Bp.default.existsSync(e))return;let r=Bp.default.readFileSync(e,{encoding:"utf-8"}).trim();if(r!=="null")return JSON.parse(r)}resolveRef(e){if(!(!e&&(e=this.resolveMetadata(),!e))&&"buildx.build.ref"in e)return e["buildx.build.ref"]}resolveProvenance(e){if(!(!e&&(e=this.resolveMetadata(),!e))&&"buildx.build.provenance"in e)return e["buildx.build.provenance"]}resolveWarnings(e){if(!(!e&&(e=this.resolveMetadata(),!e))&&"buildx.build.warnings"in e)return e["buildx.build.warnings"]}resolveDigest(e){if(!(!e&&(e=this.resolveMetadata(),!e))&&"containerimage.digest"in e)return e["containerimage.digest"]}static resolveSecretString(e){let[r,n]=t.resolveSecret(e,{redact:!0});return`id=${r},src=${n}`}static resolveSecretFile(e){let[r,n]=t.resolveSecret(e,{asFile:!0});return`id=${r},src=${n}`}static resolveSecretEnv(e){let[r,n]=t.parseSecretKvp(e);return`id=${r},env=${n}`}static resolveSecret(e,r){let[n,o]=t.parseSecretKvp(e,r?.redact);if(r?.asFile){if(!Bp.default.existsSync(o))throw new Error(`secret file ${o} not found`);return[n,o]}let s=s0.tmpName({tmpdir:s0.tmpDir()});return Bp.default.writeFileSync(s,o),[n,s]}static getProvenanceInput(e){let r=Ur(e);if(!r)return r;try{return Jj(e)?`builder-id=${a0.workflowRunURL(!0)}`:"false"}catch{return t.resolveProvenanceAttrs(r)}}static resolveProvenanceAttrs(e){if(!e)return`builder-id=${a0.workflowRunURL(!0)}`;let r=F1(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0];for(let n of r)if(n.toString().split(/(?<=^[^=]+?)=/).map(s=>s.trim())[0]=="builder-id")return e;return`${e},builder-id=${a0.workflowRunURL(!0)}`}static resolveCacheToAttrs(e,r){if(!e)return e;let n="registry",o="",s="",a=F1(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0];for(let c of a){let u=c.toString().split(/(?<=^[^=]+?)=/).map(p=>p.trim());u[0]==="type"?n=u[1]:u[0]==="repository"?o=u[1]:u[0]==="ghtoken"&&(s=u[1])}return n==="gha"&&(o||(e=`${e},repository=${a0.repository}`),!s&&r&&(e=`${e},ghtoken=${r}`)),e}static hasLocalExporter(e){return t.hasExporterType("local",e)}static hasTarExporter(e){return t.hasExporterType("tar",e)}static hasDockerExporter(e,r){return r||t.hasExporterType("docker",e)}static hasExporterType(e,r){let n=F1(r.join(`
`),{delimiter:",",trim:!0,columns:!1,relaxColumnCount:!0});for(let o of n){if(o.length==1&&!o[0].startsWith("type="))return e=="local";for(let[s,a]of o.map(c=>c.split("=").map(u=>u.trim())))if(s=="type"&&a==e)return!0}return!1}static hasAttestationType(e,r){let n=F1(r,{delimiter:",",trim:!0,columns:!1,relaxColumnCount:!0});for(let o of n)for(let[s,a]of o.map(c=>c.split("=").map(u=>u.trim())))if(s=="type"&&a==e)return!0;return!1}static resolveAttestationAttrs(e){let r=F1(e,{delimiter:",",trim:!0,columns:!1,relaxColumnCount:!0}),n=[];for(let o of r)for(let s of o)try{let a=c0.parseBool(s);n.push(`disabled=${!a}`)}catch{n.push(s)}return n.join(",")}static hasGitAuthTokenSecret(e,r){for(let n of e){if(r&&n.startsWith(`GIT_AUTH_TOKEN.${r}=`))return!0;if(n.startsWith("GIT_AUTH_TOKEN="))return!0}return!1}static parseSecretKvp(e,r){let n=e.indexOf("="),o=e.substring(0,n),s=e.substring(n+1);if(o.length==0||s.length==0)throw new Error(`${e} is not a valid secret`);return r&&es(s),[o,s]}};var n8=w(require("fs"),1),xle=w(require("path"),1);var P4=class t{static{i(this,"Bake")}buildx;metadataFilename;constructor(e){this.buildx=e?.buildx||new m0,this.metadataFilename=`bake-metadata-${c0.generateRandomString()}.json`}getMetadataFilePath(){return xle.default.join(s0.tmpDir(),this.metadataFilename)}resolveMetadata(){let e=this.getMetadataFilePath();if(!n8.default.existsSync(e))return;let r=n8.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 n in e)"buildx.build.ref"in e[n]&&r.push(e[n]["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 n=["bake"],o,s=[],a=[...e.files||[],e.source];if(a){for(let u of a.map(p=>p?p.trim():""))if(u.length!=0){if(!c0.isValidRef(u)){s.push(u);continue}if(o)throw new Error("Only one remote bake definition can be defined");o=u}}o&&n.push(o);for(let u of s)n.push("--file",u);if(e.overrides)for(let u of e.overrides)n.push("--set",u);if(e.vars)for(let u of e.vars)n.push("--var",u);if(e.allow)for(let u of e.allow)n.push("--allow",u);e.call&&n.push("--call",e.call),e.load&&n.push("--load"),e.noCache&&n.push("--no-cache"),e.provenance&&n.push("--provenance",e.provenance),e.push&&n.push("--push"),e.sbom&&n.push("--sbom",e.sbom);let c=await this.buildx.getCommand([...n,"--print",...e.targets||[]]);return await ge.getExecOutput(c.command,c.args,r).then(u=>{if(u.stderr.length>0&&u.exitCode!=0)throw new Error(`cannot parse bake definitions: ${m0.getErrorMessage(u.stderr)}`);return t.parseDefinition(u.stdout.trim())})}static parseDefinition(e){let r=JSON.parse(e);for(let n in r.target){let o=r.target[n];o.attest&&Array.isArray(o.attest)&&(o.attest=o.attest.map(s=>t.parseAttestEntry(s))),o["cache-from"]&&Array.isArray(o["cache-from"])&&(o["cache-from"]=o["cache-from"].map(s=>t.parseCacheEntry(s))),o["cache-to"]&&Array.isArray(o["cache-to"])&&(o["cache-to"]=o["cache-to"].map(s=>t.parseCacheEntry(s))),o.output&&Array.isArray(o.output)&&(o.output=o.output.map(s=>t.parseExportEntry(s))),o.secret&&Array.isArray(o.secret)&&(o.secret=o.secret.map(s=>t.parseSecretEntry(s))),o.ssh&&Array.isArray(o.ssh)&&(o.ssh=o.ssh.map(s=>t.parseSSHEntry(s)))}return r}static parseAttestEntry(e){if(typeof e!="string")return e;let r={type:""},n=F1(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0];for(let o of n){let[s,a]=o.toString().split(/(?<=^[^=]+?)=/).map(c=>c.trim());switch(s){case"type":r.type=a;break;case"disabled":r.disabled=c0.parseBool(a);break;default:r[s]=a}}return r}static parseCacheEntry(e){if(typeof e!="string")return e;let r={type:""},n=F1(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0];if(n.length===1&&!n[0].includes("="))return r.type="registry",r.ref=n[0],r;for(let o of n){let[s,a]=o.toString().split(/(?<=^[^=]+?)=/).map(c=>c.trim());s==="type"?r.type=a:r[s]=a}return r}static parseExportEntry(e){if(typeof e!="string")return e;let r={type:""},n=F1(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0];if(n.length===1&&n[0]===e&&!e.startsWith("type="))return e!=="-"?(r.type="local",r.dest=e,r):(r.type="tar",r.dest=e,r);for(let o of n){let[s,a]=o.toString().split(/(?<=^[^=]+?)=/).map(c=>c.trim());s==="type"?r.type=a:r[s]=a}return r}static parseSecretEntry(e){if(typeof e!="string")return e;let r={},n=F1(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0],o="";for(let s of n){let[a,c]=s.toString().split(/(?<=^[^=]+?)=/).map(u=>u.trim());switch(a){case"type":o=c;break;case"id":r.id=c;break;case"source":case"src":r.src=c;break;case"env":r.env=c;break}}return o==="env"&&!r.env&&(r.env=r.src,r.src=void 0),r}static parseSSHEntry(e){if(typeof e!="string")return e;let r={},[n,o]=e.split("=",2);return r.id=n,o&&(r.paths=o.split(",")),r} Line truncated
`)[0])}static async isHeadDetached(e){return await t.exec(["branch","--show-current"],e).then(r=>r.length==0)}static async getDetachedRef(e){let r=await t.exec(["show","-s","--pretty=%D"],e);N(`detached HEAD ref: ${r}`);let n=r.replace(/^grafted, /,"").trim();if(n==="HEAD")return await t.inferRefFromHead(e);let o=n.match(/^HEAD, (.*)$/);if(!o||!o[1])throw new Error(`Cannot find detached HEAD ref in "${r}"`);let s=o[1].trim();if(s.startsWith("tag: "))return await t.findDetachedTagRef(s,r,e);if(s.match(/^pull\/\d+\/(head|merge)$/))return`refs/${s}`;let c=s.match(/^[^/]+\/[^/]+, (.+)$/);if(c)return`refs/heads/${c[1].trim()}`;let u=s.match(/^[^/]+\/(.+)$/);if(u)return`refs/heads/${u[1].trim()}`;throw new Error(`Unsupported detached HEAD ref in "${r}"`)}static async exec(e=[],r){return await ge.getExecOutput("git",e,{cwd:r,ignoreReturnCode:!0,silent:!0}).then(n=>{if(n.stderr.length>0&&n.exitCode!=0)throw new Error(n.stderr);return n.stdout.trim()})}static async inferRefFromHead(e){let r=await t.findContainingRef("refs/heads/",e);if(r)return r;let n=await t.findContainingRef("refs/remotes/",e);if(n){let a=n.match(/^refs\/remotes\/[^/]+\/(.+)$/);return a?`refs/heads/${a[1]}`:n}let o=await t.exec(["tag","--contains","HEAD"],e),[s]=o.split(`
`).map(a=>a.trim()).filter(a=>a.length>0);return s?`refs/tags/${s}`:""}static async findDetachedTagRef(e,r,n){let s=(await t.exec(["for-each-ref","--format=%(refname)","--points-at","HEAD","refs/tags/"],n)).split(`
`).map(a=>a.trim()).filter(a=>a.length>0).sort((a,c)=>c.length-a.length);for(let a of s){let c=`tag: ${a.slice(10)}`;if(e===c||e.startsWith(`${c}, `))return a}if(s.length===1)return s[0];throw new Error(`Cannot find detached tag ref in "${r}"`)}static async findContainingRef(e,r){let n=await t.exec(["for-each-ref","--format=%(refname)","--contains","HEAD","--sort=-committerdate",e],r),[o]=n.split(`
`).map(s=>s.trim()).filter(s=>s.length>0);return o}static async commitDate(e,r){return new Date(await t.exec(["show","-s",'--format="%ci"',e],r))}};var Jbe=require("crypto"),ti=w(require("fs"),1),ri=w(require("path"),1);var dd=w(a8(),1),$be=w(E_(),1),bd=w(Gbe(),1);var Xbe=require("util");var BP=w(a8(),1);var Vbe=w(Pn(),1);var Hbe="application/vnd.oci.empty.v1+json";var yr=class{static{i(this,"Cosign")}binPath;_version;_versionOnce;constructor(e){this.binPath=e?.binPath||"cosign",this._version="",this._versionOnce=!1}async isAvailable(){let e=await ge.getExecOutput(this.binPath,[],{ignoreReturnCode:!0,silent:!0}).then(r=>r.stderr.length>0&&r.exitCode!=0?(N(`Cosign.isAvailable cmd err: ${r.stderr.trim()}`),!1):r.exitCode==0).catch(r=>(N(`Cosign.isAvailable error: ${r}`),!1));return N(`Cosign.isAvailable: ${e}`),e}async version(){return this._versionOnce?this._version:(this._versionOnce=!0,this._version=await ge.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 ge.exec(this.binPath,["version","--json"],{failOnStdErr:!1})}static getErrorMessage(e){let r=(0,Xbe.stripVTControlCharacters)(e).split(/[\r\n]/);for(let n=r.length-1;n>=0;n--){let o=r[n].trim();if(o)return o}return"unknown error"}async versionSatisfies(e,r){let n=r??await this.version();if(!n)return N("Cosign.versionSatisfies false: undefined version"),!1;let o=Vbe.satisfies(n,e)||/^[0-9a-f]{7}$/.exec(n)!==null;return N(`Cosign.versionSatisfies ${n} statisfies ${e}: ${o}`),o}static parseCommandOutput(e){let r,n,o,s;for(let a of e.split(/\r?\n/)){let c=a.trim();if(!c.startsWith("{")||!c.endsWith("}"))continue;let u;try{u=JSON.parse(c)}catch{continue}if(u&&Array.isArray(u.errors)&&u.errors.length>0&&(s=u.errors),!r&&u&&Array.isArray(u.manifests)&&u.manifests.length>0){let p=u.manifests[0];p?.artifactType===BP.BUNDLE_V03_MEDIA_TYPE&&typeof p.digest=="string"?r=p.digest:p?.artifactType===Hbe&&typeof p.digest=="string"&&(n=p.digest)}if(!o&&u&&u.mediaType===BP.BUNDLE_V03_MEDIA_TYPE&&(o=u),o&&(r||n)){s=void 0;break}}return{bundle:o,signatureManifestDigest:r||n,errors:s}}};var qP=w(require("fs"),1);var mq=class t{static{i(this,"ImageTools")}buildx;constructor(e){this.buildx=e?.buildx||new m0}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 n=r.manifests.filter(a=>a.annotations?.["vnd.docker.reference.type"]==="attestation-manifest");if(!e.platform)return n;let o=e.platform,s=new Map;for(let a of r.manifests)a.digest&&s.set(a.digest,a);return n.filter(a=>{let c=a.annotations?.["vnd.docker.reference.digest"];if(!c)return!1;let u=s.get(c);return u?u.platform?.os===o.os&&u.platform?.architecture===o.architecture&&(u.platform?.variant??"")===(o.variant??""):!1})}async attestationDigests(e){return(await this.attestationDescriptors(e)).map(r=>r.digest)}async create(e){let r=[],n=s0.tmpName({tmpdir:s0.tmpDir(),template:"imagetools-metadata-XXXXXX"}),o=[],s=[];for(let c of e.sources){if(c.startsWith("cwd://")){let u=c.substring(6);u.length>0&&o.push(u);continue}s.push(c)}if(e.tags)for(let c of e.tags)r.push("--tag",c);if(e.platforms)for(let c of e.platforms)r.push("--platform",c);if(e.annotations)for(let c of e.annotations)r.push("--annotation",c);e.dryRun?r.push("--dry-run"):r.push("--metadata-file",n);for(let c of o)r.push("--file",c);for(let c of s)r.push(c);let a=await this.getCreateCommand(r);if(e.skipExec){S(`[command]${a.command} ${a.args.join(" ")}`),S("Skipped create command");return}return await ge.getExecOutput(a.command,a.args,{ignoreReturnCode:!0,silent:e.silent}).then(c=>{if(c.stderr.length>0&&c.exitCode!=0)throw new Error(c.stderr.trim());if(!e.dryRun){if(!qP.default.existsSync(n))return;let u=qP.default.readFileSync(n,{encoding:"utf-8"}).trim();if(u===""||u==="null")return;let p=JSON.parse(u),A=p["containerimage.descriptor"];return A?{digest:p["containerimage.digest"]||A.digest,descriptor:A,imageNames:p["image.name"]?p["image.name"].split(",").map(l=>l.trim()):[]}:void 0}})}async inspect(e,r,n){let o=await this.getInspectCommand([e Line truncated
${a.message}`),await new Promise(p=>setTimeout(p,Math.pow(2,c)*100))}throw a??new Error(`ImageTools inspect command failed for ${e.name}`)}async execInspect(e,r,n){return await ge.getExecOutput(e,r,{ignoreReturnCode:!0,silent:!0}).then(o=>{if(o.stderr.length>0&&o.exitCode!=0)throw new Error(o.stderr.trim());return n(JSON.parse(o.stdout))})}static isManifestUnknownError(e){return/(MANIFEST_UNKNOWN|manifest unknown)/i.test(e)||/:\s*not found$/i.test(e)}};var ld="https://search.sigstore.dev";var Ybe="slsaprovenance1",Pc=class t{static{i(this,"Sigstore")}cosign;imageTools;constructor(e){this.cosign=e?.cosign||new yr,this.imageTools=e?.imageTools||new mq}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 n={noTransparencyLog:e.noTransparencyLog,rekorV2:e.rekorV2},o=await this.cosignSigningConfigArgs(n);for(let s of e.imageNames){let a=await this.imageTools.attestationDigests({name:`${s}@${e.imageDigest}`,retryOnManifestUnknown:e.retryOnManifestUnknown,retryLimit:e.retryLimit});for(let c of a){let u=`${s}@${c}`;await at(`Signing attestation manifest ${u}`,async()=>{let p=["sign","--yes","--oidc-provider","github-actions","--registry-referrers-mode","oci-1-1",...await this.bundleFormatArgs(),...o];S(`[command]${this.cosign.binPath} ${[...p,u].join(" ")}`);let A=await ge.getExecOutput(this.cosign.binPath,["--verbose",...p,u],{ignoreReturnCode:!0,silent:!0,env:Object.assign({},process.env,{COSIGN_EXPERIMENTAL:"1"})}),l=yr.parseCommandOutput(A.stderr.trim());if(A.exitCode!=0)if(l.errors&&l.errors.length>0){let M=l.errors.map(z=>`- [${z.code}] ${z.message} : ${z.detail}`).join(`
`).map(s=>s.trim()).filter(s=>s.length>0);return o}static async commitDate(e,r){return new Date(await t.exec(["show","-s",'--format="%ci"',e],r))}};var jbe=require("crypto"),ri=w(require("fs"),1),ni=w(require("path"),1);var ld=w(A8(),1),Kbe=w(q_(),1),dd=w(Xbe(),1);var Ybe=require("util");var RP=w(A8(),1);var Jbe=w(Un(),1);var Vbe="application/vnd.oci.empty.v1+json";var Br=class{static{i(this,"Cosign")}binPath;_version;_versionOnce;constructor(e){this.binPath=e?.binPath||"cosign",this._version="",this._versionOnce=!1}async isAvailable(){let e=await ge.getExecOutput(this.binPath,[],{ignoreReturnCode:!0,silent:!0}).then(r=>r.stderr.length>0&&r.exitCode!=0?(N(`Cosign.isAvailable cmd err: ${r.stderr.trim()}`),!1):r.exitCode==0).catch(r=>(N(`Cosign.isAvailable error: ${r}`),!1));return N(`Cosign.isAvailable: ${e}`),e}async version(){return this._versionOnce?this._version:(this._versionOnce=!0,this._version=await ge.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 ge.exec(this.binPath,["version","--json"],{failOnStdErr:!1})}static getErrorMessage(e){let r=(0,Ybe.stripVTControlCharacters)(e).split(/[\r\n]/);for(let n=r.length-1;n>=0;n--){let o=r[n].trim();if(o)return o}return"unknown error"}async versionSatisfies(e,r){let n=r??await this.version();if(!n)return N("Cosign.versionSatisfies false: undefined version"),!1;let o=Jbe.satisfies(n,e)||/^[0-9a-f]{7}$/.exec(n)!==null;return N(`Cosign.versionSatisfies ${n} statisfies ${e}: ${o}`),o}static parseCommandOutput(e){let r,n,o,s;for(let a of e.split(/\r?\n/)){let c=a.trim();if(!c.startsWith("{")||!c.endsWith("}"))continue;let u;try{u=JSON.parse(c)}catch{continue}if(u&&Array.isArray(u.errors)&&u.errors.length>0&&(s=u.errors),!r&&u&&Array.isArray(u.manifests)&&u.manifests.length>0){let p=u.manifests[0];p?.artifactType===RP.BUNDLE_V03_MEDIA_TYPE&&typeof p.digest=="string"?r=p.digest:p?.artifactType===Vbe&&typeof p.digest=="string"&&(n=p.digest)}if(!o&&u&&u.mediaType===RP.BUNDLE_V03_MEDIA_TYPE&&(o=u),o&&(r||n)){s=void 0;break}}return{bundle:o,signatureManifestDigest:r||n,errors:s}}};var NP=w(require("fs"),1);var gq=class t{static{i(this,"ImageTools")}buildx;constructor(e){this.buildx=e?.buildx||new m0}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 n=r.manifests.filter(a=>a.annotations?.["vnd.docker.reference.type"]==="attestation-manifest");if(!e.platform)return n;let o=e.platform,s=new Map;for(let a of r.manifests)a.digest&&s.set(a.digest,a);return n.filter(a=>{let c=a.annotations?.["vnd.docker.reference.digest"];if(!c)return!1;let u=s.get(c);return u?u.platform?.os===o.os&&u.platform?.architecture===o.architecture&&(u.platform?.variant??"")===(o.variant??""):!1})}async attestationDigests(e){return(await this.attestationDescriptors(e)).map(r=>r.digest)}async create(e){let r=[],n=s0.tmpName({tmpdir:s0.tmpDir(),template:"imagetools-metadata-XXXXXX"}),o=[],s=[];for(let c of e.sources){if(c.startsWith("cwd://")){let u=c.substring(6);u.length>0&&o.push(u);continue}s.push(c)}if(e.tags)for(let c of e.tags)r.push("--tag",c);if(e.platforms)for(let c of e.platforms)r.push("--platform",c);if(e.annotations)for(let c of e.annotations)r.push("--annotation",c);e.dryRun?r.push("--dry-run"):r.push("--metadata-file",n);for(let c of o)r.push("--file",c);for(let c of s)r.push(c);let a=await this.getCreateCommand(r);if(e.skipExec){S(`[command]${a.command} ${a.args.join(" ")}`),S("Skipped create command");return}return await ge.getExecOutput(a.command,a.args,{ignoreReturnCode:!0,silent:e.silent}).then(c=>{if(c.stderr.length>0&&c.exitCode!=0)throw new Error(c.stderr.trim());if(!e.dryRun){if(!NP.default.existsSync(n))return;let u=NP.default.readFileSync(n,{encoding:"utf-8"}).trim();if(u===""||u==="null")return;let p=JSON.parse(u),A=p["containerimage.descriptor"];return A?{digest:p["containerimage.digest"]||A.digest,descriptor:A,imageNames:p["image.name"]?p["image.name"].split(",").map(l=>l.trim()):[]}:void 0}})}async inspect(e,r,n){let o=await this.getInspectCommand([e Line truncated
${a.message}`),await new Promise(p=>setTimeout(p,Math.pow(2,c)*100))}throw a??new Error(`ImageTools inspect command failed for ${e.name}`)}async execInspect(e,r,n){return await ge.getExecOutput(e,r,{ignoreReturnCode:!0,silent:!0}).then(o=>{if(o.stderr.length>0&&o.exitCode!=0)throw new Error(o.stderr.trim());return n(JSON.parse(o.stdout))})}static isManifestUnknownError(e){return/(MANIFEST_UNKNOWN|manifest unknown)/i.test(e)||/:\s*not found$/i.test(e)}};var Ad="https://search.sigstore.dev";var $be="slsaprovenance1",Qc=class t{static{i(this,"Sigstore")}cosign;imageTools;constructor(e){this.cosign=e?.cosign||new Br,this.imageTools=e?.imageTools||new gq}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 n={noTransparencyLog:e.noTransparencyLog,rekorV2:e.rekorV2},o=await this.cosignSigningConfigArgs(n);for(let s of e.imageNames){let a=await this.imageTools.attestationDigests({name:`${s}@${e.imageDigest}`,retryOnManifestUnknown:e.retryOnManifestUnknown,retryLimit:e.retryLimit});for(let c of a){let u=`${s}@${c}`;await ct(`Signing attestation manifest ${u}`,async()=>{let p=["sign","--yes","--oidc-provider","github-actions","--registry-referrers-mode","oci-1-1",...await this.bundleFormatArgs(),...o];S(`[command]${this.cosign.binPath} ${[...p,u].join(" ")}`);let A=await ge.getExecOutput(this.cosign.binPath,["--verbose",...p,u],{ignoreReturnCode:!0,silent:!0,env:Object.assign({},process.env,{COSIGN_EXPERIMENTAL:"1"})}),l=Br.parseCommandOutput(A.stderr.trim());if(A.exitCode!=0)if(l.errors&&l.errors.length>0){let M=l.errors.map(z=>`- [${z.code}] ${z.message} : ${z.detail}`).join(`
`);throw new Error(`Cosign sign command failed with errors:
${M}`)}else throw new Error(`Cosign sign command failed with: ${yr.getErrorMessage(A.stderr)}`);let b=t.parseBundle((0,dd.bundleFromJSON)(l.bundle));b.tlogID&&await this.logTransparencyUpload(b.tlogID,n),S(`Signature manifest pushed: https://oci.dag.dev/?referrers=${u}`),r[u]={...b,imageName:s}})}}}catch(n){throw new Error(`Signing BuildKit attestation manifests failed: ${n.message}`)}return r}async verifySignedManifests(e,r){let n={};for(let[o,s]of Object.entries(e))await at(`Verifying signature of ${o}`,async()=>{let a=await this.verifyImageAttestation(o,{certificateIdentityRegexp:r.certificateIdentityRegexp,noTransparencyLog:r.noTransparencyLog||!s.tlogID,retryOnManifestUnknown:r.retryOnManifestUnknown,retryLimit:r.retryLimit});S(`Signature manifest verified: https://oci.dag.dev/?image=${s.imageName}@${a.signatureManifestDigest}`),n[o]=a});return n}async verifyImageAttestations(e,r){let n={},o=await this.imageTools.attestationDigests({name:e,platform:r.platform,retryOnManifestUnknown:r.retryOnManifestUnknown,retryLimit:r.retryLimit});if(o.length===0)throw new Error(`No attestation manifests found for ${e}`);let s=e.split(":",1)[0];for(let a of o){let c=`${s}@${a}`,u=await this.verifyImageAttestation(c,r);S(`Signature manifest verified: https://oci.dag.dev/?image=${s}@${u.signatureManifestDigest}`),n[c]=u}return n}async verifyImageAttestation(e,r){if(!await this.cosign.isAvailable())throw new Error("Cosign is required to verify signed manifests");let n=["verify","--experimental-oci11",...await this.bundleFormatArgs(),"--certificate-oidc-issuer","https://token.actions.githubusercontent.com","--certificate-identity-regexp",r.certificateIdentityRegexp];if(r.noTransparencyLog&&n.push("--use-signed-timestamps","--insecure-ignore-tlog"),!r.retryOnManifestUnknown){S(`[command]${this.cosign.binPath} ${[...n,e].join(" ")}`);let a=await ge.getExecOutput(this.cosign.binPath,["--verbose",...n,e],{ignoreReturnCode:!0,silent:!0,env:Object.assign({},process.env,{COSIGN_EXPERIMENTAL:"1"})});if(a.exitCode!==0)throw new Error(`Cosign verify command failed with: ${yr.getErrorMessage(a.stderr)}`);let c=yr.parseCommandOutput(a.stderr.trim());return{cosignArgs:n,signatureManifestDigest:c.signatureManifestDigest}}let o=r.retryLimit??15,s;S(`[command]${this.cosign.binPath} ${[...n,e].join(" ")}`);for(let a=0;a<o;a++){let c=await ge.getExecOutput(this.cosign.binPath,["--verbose",...n,e],{ignoreReturnCode:!0,silent:!0,env:Object.assign({},process.env,{COSIGN_EXPERIMENTAL:"1"})}),u=yr.parseCommandOutput(c.stderr.trim());if(c.exitCode===0)return{cosignArgs:n,signatureManifestDigest:u.signatureManifestDigest};if(u.errors&&u.errors.length>0){let p=u.errors.map(A=>`- [${A.code}] ${A.message} : ${A.detail}`).join(`
${M}`)}else throw new Error(`Cosign sign command failed with: ${Br.getErrorMessage(A.stderr)}`);let b=t.parseBundle((0,ld.bundleFromJSON)(l.bundle));b.tlogID&&await this.logTransparencyUpload(b.tlogID,n),S(`Signature manifest pushed: https://oci.dag.dev/?referrers=${u}`),r[u]={...b,imageName:s}})}}}catch(n){throw new Error(`Signing BuildKit attestation manifests failed: ${n.message}`)}return r}async verifySignedManifests(e,r){let n={};for(let[o,s]of Object.entries(e))await ct(`Verifying signature of ${o}`,async()=>{let a=await this.verifyImageAttestation(o,{certificateIdentityRegexp:r.certificateIdentityRegexp,noTransparencyLog:r.noTransparencyLog||!s.tlogID,retryOnManifestUnknown:r.retryOnManifestUnknown,retryLimit:r.retryLimit});S(`Signature manifest verified: https://oci.dag.dev/?image=${s.imageName}@${a.signatureManifestDigest}`),n[o]=a});return n}async verifyImageAttestations(e,r){let n={},o=await this.imageTools.attestationDigests({name:e,platform:r.platform,retryOnManifestUnknown:r.retryOnManifestUnknown,retryLimit:r.retryLimit});if(o.length===0)throw new Error(`No attestation manifests found for ${e}`);let s=e.split(":",1)[0];for(let a of o){let c=`${s}@${a}`,u=await this.verifyImageAttestation(c,r);S(`Signature manifest verified: https://oci.dag.dev/?image=${s}@${u.signatureManifestDigest}`),n[c]=u}return n}async verifyImageAttestation(e,r){if(!await this.cosign.isAvailable())throw new Error("Cosign is required to verify signed manifests");let n=["verify","--experimental-oci11",...await this.bundleFormatArgs(),"--certificate-oidc-issuer","https://token.actions.githubusercontent.com","--certificate-identity-regexp",r.certificateIdentityRegexp];if(r.noTransparencyLog&&n.push("--use-signed-timestamps","--insecure-ignore-tlog"),!r.retryOnManifestUnknown){S(`[command]${this.cosign.binPath} ${[...n,e].join(" ")}`);let a=await ge.getExecOutput(this.cosign.binPath,["--verbose",...n,e],{ignoreReturnCode:!0,silent:!0,env:Object.assign({},process.env,{COSIGN_EXPERIMENTAL:"1"})});if(a.exitCode!==0)throw new Error(`Cosign verify command failed with: ${Br.getErrorMessage(a.stderr)}`);let c=Br.parseCommandOutput(a.stderr.trim());return{cosignArgs:n,signatureManifestDigest:c.signatureManifestDigest}}let o=r.retryLimit??15,s;S(`[command]${this.cosign.binPath} ${[...n,e].join(" ")}`);for(let a=0;a<o;a++){let c=await ge.getExecOutput(this.cosign.binPath,["--verbose",...n,e],{ignoreReturnCode:!0,silent:!0,env:Object.assign({},process.env,{COSIGN_EXPERIMENTAL:"1"})}),u=Br.parseCommandOutput(c.stderr.trim());if(c.exitCode===0)return{cosignArgs:n,signatureManifestDigest:u.signatureManifestDigest};if(u.errors&&u.errors.length>0){let p=u.errors.map(A=>`- [${A.code}] ${A.message} : ${A.detail}`).join(`
`);if(s=new Error(`Cosign verify command failed with errors:
${p}`),u.errors.some(A=>A.code==="MANIFEST_UNKNOWN"))S(`Cosign verify command failed with MANIFEST_UNKNOWN, retrying attempt ${a+1}/${o}...
${p}`),await new Promise(A=>setTimeout(A,Math.pow(2,a)*100));else throw s}else throw new Error(`Cosign verify command failed with: ${yr.getErrorMessage(c.stderr)}`)}throw s}async signProvenanceBlobs(e){if(!await this.cosign.isAvailable())throw new Error("Cosign is required to sign provenance blobs");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 n={noTransparencyLog:e.noTransparencyLog,rekorV2:e.rekorV2},o=await this.cosignSigningConfigArgs(n),s=t.getProvenanceBlobs(e);for(let a of Object.keys(s))await at(`Signing ${a}`,async()=>{let c=s[a],u=ri.default.join(ri.default.dirname(a),`${e.name??"provenance"}.sigstore.json`),p=t.getProvenanceSubjects(c);if(p.length===0){r0(`No subjects found in provenance ${a}, skip signing.`);return}let A=ri.default.join(ri.default.dirname(a),p[0].name),l=["attest-blob","--yes","--oidc-provider","github-actions",...await this.bundleFormatArgs(),"--statement",a,"--type",Ybe,"--bundle",u,...o];S(`[command]${this.cosign.binPath} ${[...l,A].join(" ")}`);let b=await ge.getExecOutput(this.cosign.binPath,["--verbose",...l,A],{ignoreReturnCode:!0,silent:!0,env:Object.assign({},process.env,{COSIGN_EXPERIMENTAL:"1"})}),M=yr.parseCommandOutput(b.stderr.trim());if(b.exitCode!=0)if(M.errors&&M.errors.length>0){let O=M.errors.map(y=>`- [${y.code}] ${y.message} : ${y.detail}`).join(`
${p}`),await new Promise(A=>setTimeout(A,Math.pow(2,a)*100));else throw s}else throw new Error(`Cosign verify command failed with: ${Br.getErrorMessage(c.stderr)}`)}throw s}async signProvenanceBlobs(e){if(!await this.cosign.isAvailable())throw new Error("Cosign is required to sign provenance blobs");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 n={noTransparencyLog:e.noTransparencyLog,rekorV2:e.rekorV2},o=await this.cosignSigningConfigArgs(n),s=t.getProvenanceBlobs(e);for(let a of Object.keys(s))await ct(`Signing ${a}`,async()=>{let c=s[a],u=ni.default.join(ni.default.dirname(a),`${e.name??"provenance"}.sigstore.json`),p=t.getProvenanceSubjects(c);if(p.length===0){r0(`No subjects found in provenance ${a}, skip signing.`);return}let A=ni.default.join(ni.default.dirname(a),p[0].name),l=["attest-blob","--yes","--oidc-provider","github-actions",...await this.bundleFormatArgs(),"--statement",a,"--type",$be,"--bundle",u,...o];S(`[command]${this.cosign.binPath} ${[...l,A].join(" ")}`);let b=await ge.getExecOutput(this.cosign.binPath,["--verbose",...l,A],{ignoreReturnCode:!0,silent:!0,env:Object.assign({},process.env,{COSIGN_EXPERIMENTAL:"1"})}),M=Br.parseCommandOutput(b.stderr.trim());if(b.exitCode!=0)if(M.errors&&M.errors.length>0){let O=M.errors.map(y=>`- [${y.code}] ${y.message} : ${y.detail}`).join(`
`);throw new Error(`Cosign attest-blob command failed with errors:
${O}`)}else throw new Error(`Cosign attest-blob command failed with: ${yr.getErrorMessage(b.stderr)}`);let z=t.parseBundle((0,dd.bundleFromJSON)(JSON.parse(ti.default.readFileSync(u,{encoding:"utf-8"}))));S("Provenance blob signed for:");for(let O of p){let[y,E]=Object.entries(O.digest)[0]||[];S(` - ${O.name} (${y}:${E})`)}z.tlogID&&await this.logTransparencyUpload(z.tlogID,n),S(`Sigstore bundle written to: ${u}`),r[a]={...z,bundlePath:u,subjects:p}})}catch(n){throw new Error(`Signing BuildKit provenance blobs failed: ${n.message}`)}return r}async verifySignedArtifacts(e,r){let n={};if(!await this.cosign.isAvailable())throw new Error("Cosign is required to verify signed artifacts");for(let[o,s]of Object.entries(e)){let a=ri.default.dirname(o);await at(`Verifying signature bundle ${s.bundlePath}`,async()=>{for(let c of s.subjects){let u=ri.default.join(a,c.name);S(`Verifying signed artifact ${u}`);let p=["verify-blob-attestation",...await this.bundleFormatArgs(),"--certificate-oidc-issuer","https://token.actions.githubusercontent.com","--certificate-identity-regexp",r.certificateIdentityRegexp,"--type",r.predicateType??Ybe];(r.noTransparencyLog||!s.tlogID)&&p.push("--use-signed-timestamps","--insecure-ignore-tlog");let A=await ge.getExecOutput(this.cosign.binPath,[...p,"--bundle",s.bundlePath,u],{ignoreReturnCode:!0});if(A.stderr.length>0&&A.exitCode!=0)throw new Error(A.stderr);n[u]={bundlePath:s.bundlePath,cosignArgs:p}}})}return n}async verifyArtifact(e,r,n){S("Verifying keyless verification bundle signature");let o=JSON.parse(ti.default.readFileSync(r,"utf-8")),s=(0,dd.bundleFromJSON)(o);S("Fetching Sigstore TUF trusted root metadata");let a=await $be.getTrustedRoot({retry:{retries:5}}),c=(0,bd.toTrustMaterial)(a);try{S("Verifying artifact signature");let u=(0,bd.toSignedEntity)(s,ti.default.readFileSync(e)),p=t.parseCertificate(s),A=s.verificationMaterial.tlogEntries,l=A.length>0?A[0].logIndex:void 0,M=new bd.Verifier(c).verify(u,{subjectAlternativeName:n?.subjectAlternativeName,extensions:n?.issuer?{issuer:n.issuer}:void 0});return N(`Sigstore.verifyArtifact signer: ${JSON.stringify(M)}`),{payload:o,certificate:p.toString(),tlogID:l}}catch(u){throw new Error(`Failed to verify artifact signature: ${u}`)}}static noTransparencyLog(e){return e??a0.context.payload.repository?.private??!1}async cosignSigningConfigArgs(e){let r=[],n=t.noTransparencyLog(e.noTransparencyLog);if(S(`Upload to transparency log: ${n?"disabled":"enabled"}`),await this.cosign.versionSatisfies(">=3.0.4")){let o=await this.useRekorV2(e);await at("Creating Sigstore protobuf signing config",async()=>{let s=s0.tmpName({template:"signing-config-XXXXXX.json",tmpdir:s0.tmpDir()}),a=["signing-config","create",o?"--with-default-rekor-v2=true":"--with-default-services=true",`--out=${s}`];n&&a.push("--no-default-rekor=true"),await ge.exec(this.cosign.binPath,a,{env:Object.assign({},process.env,{COSIGN_EXPERIMENTAL:"1"})}),S(JSON.stringify(JSON.parse(ti.default.readFileSync(s,{encoding:"utf-8"})),null,2)),r.push(`--signing-config=${s}`)})}else r.push("--use-signing-config"),n&&r.push("--tlog-upload=false");return r}async logTransparencyUpload(e,r){if(await this.useRekorV2(r)){S(`Attestation signature uploaded to Rekor v2 transparency log with index ${e}`);return}S(`Attestation signature uploaded to Rekor transparency log: ${ld}?logIndex=${e}`)}async useRekorV2(e){return e.rekorV2===!0&&!t.noTransparencyLog(e.noTransparencyLog)&&await this.cosign.versionSatisfies(">=3.1.1")}static getProvenanceBlobs(e){let r=ri.default.join(e.localExportDir,"provenance.json");if(ti.default.existsSync(r))return{[r]:ti.default.readFileSync(r)};let n=ti.default.readdirSync(e.localExportDir,{withFileTypes:!0}),o=n.filter(s=>s.isDirectory());if(o.length>0&&o.length===n.length&&o.every(s=>ti.default.existsSync(ri.default.join(e.localExportDir,s.name,"provenance.json")))){let s={};for(let a of o){let c=ri.default.join(e.localExportDir,a.name,"provenance.json");s[c]=ti.default.readFileSync(c)}return s}throw new Error(`No valid provenance.json found in ${e.localExportDir}`)}static getProvenanceSubjects(e){return JSON.parse(e.toString()).subject.map(n=>({name:n.name,digest:n.digest}))}static parseBundle(e){let r=t.parseCertificate(e),n=e.verificationMaterial.tlogEntries,o=n.length>0?n[0].logIndex:void 0;return{payload:(0,dd.bundleToJSON)(e),certificate:r.toString(),tlogID:o}}static parseCertificate(e){let r;switch(e.verificationMaterial.content.$case){case"x509CertificateChain":r=e.verificationMaterial.content.x509CertificateChain.certificates[0].rawBytes;break;case"certificate":r=e.verificationMaterial.content.certificate.rawBytes;break;default:throw new Error("Bundle must contain an x509 certificate")}return new Jbe.X509Certificate(r)}async bundleFormatArgs(){return await this.cosign.versionSatisfies(">=3.1.1")?[]:["--new-bundle-format"]}};var zq=class t{static{i(this,"Install")}standalone;githubToken;sigstore;constructor(e){this.standalone=e?.standalone,this.githubToke Line truncated
${O}`)}else throw new Error(`Cosign attest-blob command failed with: ${Br.getErrorMessage(b.stderr)}`);let z=t.parseBundle((0,ld.bundleFromJSON)(JSON.parse(ri.default.readFileSync(u,{encoding:"utf-8"}))));S("Provenance blob signed for:");for(let O of p){let[y,E]=Object.entries(O.digest)[0]||[];S(` - ${O.name} (${y}:${E})`)}z.tlogID&&await this.logTransparencyUpload(z.tlogID,n),S(`Sigstore bundle written to: ${u}`),r[a]={...z,bundlePath:u,subjects:p}})}catch(n){throw new Error(`Signing BuildKit provenance blobs failed: ${n.message}`)}return r}async verifySignedArtifacts(e,r){let n={};if(!await this.cosign.isAvailable())throw new Error("Cosign is required to verify signed artifacts");for(let[o,s]of Object.entries(e)){let a=ni.default.dirname(o);await ct(`Verifying signature bundle ${s.bundlePath}`,async()=>{for(let c of s.subjects){let u=ni.default.join(a,c.name);S(`Verifying signed artifact ${u}`);let p=["verify-blob-attestation",...await this.bundleFormatArgs(),"--certificate-oidc-issuer","https://token.actions.githubusercontent.com","--certificate-identity-regexp",r.certificateIdentityRegexp,"--type",r.predicateType??$be];(r.noTransparencyLog||!s.tlogID)&&p.push("--use-signed-timestamps","--insecure-ignore-tlog");let A=await ge.getExecOutput(this.cosign.binPath,[...p,"--bundle",s.bundlePath,u],{ignoreReturnCode:!0});if(A.stderr.length>0&&A.exitCode!=0)throw new Error(A.stderr);n[u]={bundlePath:s.bundlePath,cosignArgs:p}}})}return n}async verifyArtifact(e,r,n){S("Verifying keyless verification bundle signature");let o=JSON.parse(ri.default.readFileSync(r,"utf-8")),s=(0,ld.bundleFromJSON)(o);S("Fetching Sigstore TUF trusted root metadata");let a=await Kbe.getTrustedRoot({retry:{retries:5}}),c=(0,dd.toTrustMaterial)(a);try{S("Verifying artifact signature");let u=(0,dd.toSignedEntity)(s,ri.default.readFileSync(e)),p=t.parseCertificate(s),A=s.verificationMaterial.tlogEntries,l=A.length>0?A[0].logIndex:void 0,M=new dd.Verifier(c).verify(u,{subjectAlternativeName:n?.subjectAlternativeName,extensions:n?.issuer?{issuer:n.issuer}:void 0});return N(`Sigstore.verifyArtifact signer: ${JSON.stringify(M)}`),{payload:o,certificate:p.toString(),tlogID:l}}catch(u){throw new Error(`Failed to verify artifact signature: ${u}`)}}static noTransparencyLog(e){return e??a0.context.payload.repository?.private??!1}async cosignSigningConfigArgs(e){let r=[],n=t.noTransparencyLog(e.noTransparencyLog);if(S(`Upload to transparency log: ${n?"disabled":"enabled"}`),await this.cosign.versionSatisfies(">=3.0.4")){let o=await this.useRekorV2(e);await ct("Creating Sigstore protobuf signing config",async()=>{let s=s0.tmpName({template:"signing-config-XXXXXX.json",tmpdir:s0.tmpDir()}),a=["signing-config","create",o?"--with-default-rekor-v2=true":"--with-default-services=true",`--out=${s}`];n&&a.push("--no-default-rekor=true"),await ge.exec(this.cosign.binPath,a,{env:Object.assign({},process.env,{COSIGN_EXPERIMENTAL:"1"})}),S(JSON.stringify(JSON.parse(ri.default.readFileSync(s,{encoding:"utf-8"})),null,2)),r.push(`--signing-config=${s}`)})}else r.push("--use-signing-config"),n&&r.push("--tlog-upload=false");return r}async logTransparencyUpload(e,r){if(await this.useRekorV2(r)){S(`Attestation signature uploaded to Rekor v2 transparency log with index ${e}`);return}S(`Attestation signature uploaded to Rekor transparency log: ${Ad}?logIndex=${e}`)}async useRekorV2(e){return e.rekorV2===!0&&!t.noTransparencyLog(e.noTransparencyLog)&&await this.cosign.versionSatisfies(">=3.1.1")}static getProvenanceBlobs(e){let r=ni.default.join(e.localExportDir,"provenance.json");if(ri.default.existsSync(r))return{[r]:ri.default.readFileSync(r)};let n=ri.default.readdirSync(e.localExportDir,{withFileTypes:!0}),o=n.filter(s=>s.isDirectory());if(o.length>0&&o.length===n.length&&o.every(s=>ri.default.existsSync(ni.default.join(e.localExportDir,s.name,"provenance.json")))){let s={};for(let a of o){let c=ni.default.join(e.localExportDir,a.name,"provenance.json");s[c]=ri.default.readFileSync(c)}return s}throw new Error(`No valid provenance.json found in ${e.localExportDir}`)}static getProvenanceSubjects(e){return JSON.parse(e.toString()).subject.map(n=>({name:n.name,digest:n.digest}))}static parseBundle(e){let r=t.parseCertificate(e),n=e.verificationMaterial.tlogEntries,o=n.length>0?n[0].logIndex:void 0;return{payload:(0,ld.bundleToJSON)(e),certificate:r.toString(),tlogID:o}}static parseCertificate(e){let r;switch(e.verificationMaterial.content.$case){case"x509CertificateChain":r=e.verificationMaterial.content.x509CertificateChain.certificates[0].rawBytes;break;case"certificate":r=e.verificationMaterial.content.certificate.rawBytes;break;default:throw new Error("Bundle must contain an x509 certificate")}return new jbe.X509Certificate(r)}async bundleFormatArgs(){return await this.cosign.versionSatisfies(">=3.1.1")?[]:["--new-bundle-format"]}};var Oq=class t{static{i(this,"Install")}standalone;githubToken;sigstore;constructor(e){this.standalone=e?.standalone,this.githubToke Line truncated
`)){let[p,...A]=u.split(":"),l=p.toLowerCase(),b=A.map(M=>M.trim()).join(":");if(p.length!=0)switch(!0){case l=="name":n=void 0,r.name==null?r.name=b:(s&&o.gcPolicy&&(o.gcPolicy.push(s),s=void 0),o.name&&r.nodes.push(o),o={name:b});break;case l=="driver":n=void 0,r.driver=b;break;case l=="last activity":n=void 0,r.lastActivity=new Date(b);break;case l=="endpoint":n=void 0,o.endpoint=b;break;case l=="driver options":n=void 0,o["driver-opts"]=(b.match(/([a-zA-Z0-9_.]+)="([^"]*)"/g)||[]).map(M=>M.replace(/^(.*)="(.*)"$/g,"$1=$2"));break;case l=="status":n=void 0,o.status=b;break;case l=="buildkit daemon flags":case l=="flags":n=void 0,o["buildkitd-flags"]=b;break;case l=="buildkit version":case l=="buildkit":n=void 0,o.buildkit=b;break;case l=="platforms":{if(n=void 0,!b)break;let M=[];if(b.includes("*"))for(let z of b.split(", "))z.includes("*")&&M.push(z.replace(/\*/g,""));else M=b.split(", ");o.platforms=M.join(",");break}case l=="features":n="features",o.features={};break;case l=="labels":n="label",o.labels={};break;case l=="devices":n="devices",o.devices=o.devices||[];break;case l.startsWith("gc policy rule#"):n="gcpolicy",o.gcPolicy&&s&&(o.gcPolicy.push(s),s=void 0);break;case l.startsWith("file#"):n="file",c=p.split("#")[1],o.files=o.files||{},o.files[c]="";break;default:switch(n&&n!=="devices"&&o.devices&&a&&(o.devices.push(a),a=void 0),n||""){case"features":{o.features=o.features||{},o.features[p.trim()]=!!b;break}case"label":{o.labels=o.labels||{},o.labels[p.trim()]=b;break}case"devices":{switch(l.trim()){case"name":{o.devices&&a&&o.devices.push(a),a={},a.name=b;break}case"on-demand":{a&&b&&(a.onDemand=b=="true");break}case"automatically allowed":{a&&b&&(a.autoAllow=b=="true");break}case"annotations":{a&&(a.annotations=a.annotations||{});break}default:a&&a.annotations&&(a.annotations[p.trim()]=b)}break}case"gcpolicy":{switch(o.gcPolicy=o.gcPolicy||[],s=s||{},l.trim()){case"all":{s.all=b=="true";break}case"filters":{b&&(s.filter=b.split(","));break}case"keep duration":{s.keepDuration=b;break}case"keep bytes":{s.keepBytes=b;break}case"reserved space":{s.reservedSpace=b;break}case"max used space":{s.maxUsedSpace=b;break}case"min free space":{s.minFreeSpace=b;break}}break}case"file":{c&&o.files&&(o.files[c].length>0&&(o.files[c]+=`
`),o.files[c]+=u.replace(/^\s>\s?/,""));break}}}}return a&&o.devices&&o.devices.push(a),s&&o.gcPolicy&&o.gcPolicy.push(s),o.name&&r.nodes.push(o),r}};var jbe=w(Pn(),1);var gq=w(require("fs"),1);var Oq=class{static{i(this,"Config")}resolveFromString(e){return this.resolve(e,!1)}resolveFromFile(e){return this.resolve(e,!0)}resolve(e,r){if(r){if(!gq.default.existsSync(e))throw new Error(`config file ${e} not found`);e=gq.default.readFileSync(e,{encoding:"utf-8"})}let n=s0.tmpName({tmpdir:s0.tmpDir()});return gq.default.writeFileSync(n,e),n}};var Eq=class{static{i(this,"BuildKit")}buildx;config;constructor(e){this.config=new Oq,this.buildx=e?.buildx||new m0}async getVersion(e){if(!e.buildkit&&e.name)try{return await this.getVersionWithinImage(e.name)}catch(r){r0(r)}return e.buildkit}async getVersionWithinImage(e){return N(`BuildKit.getVersionWithinImage nodeName: ${e}`),Bt.getExecOutput(["inspect","--format","{{.Config.Image}}",`${m0.containerNamePrefix}${e}`],{ignoreReturnCode:!0,silent:!0}).then(r=>{if(r.exitCode==0&&r.stdout.length>0)return N(`BuildKit.getVersionWithinImage image: ${r.stdout.trim()}`),Bt.getExecOutput(["run","--rm",r.stdout.trim(),"--version"],{ignoreReturnCode:!0,silent:!0}).then(n=>{if(n.exitCode==0&&n.stdout.length>0)return`${r.stdout.trim()} => ${n.stdout.trim()}`;if(n.stderr.length>0)throw new Error(r.stderr.trim());return n.stdout.trim()});if(r.stderr.length>0)throw new Error(r.stderr.trim());return r.stdout.trim()})}async versionSatisfies(e,r,n){n||(n=await new Md({buildx:this.buildx}).inspect(e));for(let o of n.nodes){let s=o.buildkit;if(N(`BuildKit.versionSatisfies ${s}: ${r}`),!s)try{s=await this.getVersionWithinImage(o.name||"")}catch{return N(`BuildKit.versionSatisfies ${o.name}: can't get version`),!1}if(N(`BuildKit.versionSatisfies ${o.name}: version ${s}`),n.driver=="docker"&&!s.endsWith("-moby")||!jbe.satisfies(s.replace(/-moby$/,""),r))return!1}return!0}};var Cq=class t{static{i(this,"Compose")}_version;_versionOnce;_standalone;constructor(e){this._standalone=e?.standalone,this._version="",this._versionOnce=!1}async isStandalone(){let e=this._standalone??!await Bt.isAvailable();return N(`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 ge.getExecOutput(e.command,e.args,{ignoreReturnCode:!0,silent:!0}).then(n=>n.stderr.length>0&&n.exitCode!=0?(N(`Compose.isAvailable cmd err: ${n.stderr.trim()}`),!1):n.exitCode==0).catch(n=>(N(`Compose.isAvailable error: ${n}`),!1));return N(`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 ge.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 ge.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 ma=w(require("fs"),1),oi=w(require("os"),1),hd=w(require("path"),1);var Bq=w(Pn(),1),IP=w(require("util"),1);var yq=class t{static{i(this,"Install")}standalone;githubToken;constructor(e){this.standalone=e?.standalone,this.githubToken=e?.githubToken||process.env.GITHUB_TOKEN}async download(e,r){let n=await t.getDownloadVersion(e);N(`Install.download version: ${n.version}`);let o=await t.getRelease(n,this.githubToken);N(`Install.download release tag name: ${o.tag_name}`);let s=await this.vspec(o.tag_name);N(`Install.download vspec: ${s}`);let a=Bq.clean(s)||"";if(!Bq.valid(a))throw new Error(`Invalid Compose version "${s}".`);let c=new rt({htcName:n.key!="official"?`compose-dl-bin-${n.key}`:"compose-dl-bin",htcVersion:s,baseCacheDir:hd.default.join(oi.default.homedir(),".bin","docker-compose"),cacheFile:oi.default.platform()=="win32"?"docker-compose.exe":"docker-compose",ghaNoCache:r}),u=await c.find();if(u)return S(`Compose binary found in ${u}`),u;let p=IP.format(n.downloadURL,s,this.filename());S(`Downloading ${p}`);let A=await On(p,void 0,this.githubToken);N(`Install.download htcDownloadPath: ${A}`);let l=await c.save(A);return S(`Cached to ${l}`),l}async installStandalone(e,r){S("Standalone mode"),r=r||s0.tmpDir();let n=hd.default.join(r,"compose-bin-standalone");ma.default.existsSync(n)||ma.default.mkdirSync(n,{recursive:!0});let o=oi.default.platform()=="win32"?"compose.exe":"compose",s=hd.default.join(n,o);return ma.default.copyFileSync(e,s),S("Fixing perms"),ma.default.chmodSync(s,"0755"),ts(n),S("Added Compose to PATH"),S(`Binary path: ${s}`),s}async installPlugin(e,r){S("Docker plugin mode"),r=r||Bt.configDir;let n=hd.default.join(r,"cli-plugins");ma.default.existsSync(n)||ma.default.mkdirSync(n,{recursive:!0});let o=oi.default Line truncated
`),o.files[c]+=u.replace(/^\s>\s?/,""));break}}}}return a&&o.devices&&o.devices.push(a),s&&o.gcPolicy&&o.gcPolicy.push(s),o.name&&r.nodes.push(o),r}};var Zbe=w(Un(),1);var Eq=w(require("fs"),1);var Cq=class{static{i(this,"Config")}resolveFromString(e){return this.resolve(e,!1)}resolveFromFile(e){return this.resolve(e,!0)}resolve(e,r){if(r){if(!Eq.default.existsSync(e))throw new Error(`config file ${e} not found`);e=Eq.default.readFileSync(e,{encoding:"utf-8"})}let n=s0.tmpName({tmpdir:s0.tmpDir()});return Eq.default.writeFileSync(n,e),n}};var yq=class{static{i(this,"BuildKit")}buildx;config;constructor(e){this.config=new Cq,this.buildx=e?.buildx||new m0}async getVersion(e){if(!e.buildkit&&e.name)try{return await this.getVersionWithinImage(e.name)}catch(r){r0(r)}return e.buildkit}async getVersionWithinImage(e){return N(`BuildKit.getVersionWithinImage nodeName: ${e}`),qt.getExecOutput(["inspect","--format","{{.Config.Image}}",`${m0.containerNamePrefix}${e}`],{ignoreReturnCode:!0,silent:!0}).then(r=>{if(r.exitCode==0&&r.stdout.length>0)return N(`BuildKit.getVersionWithinImage image: ${r.stdout.trim()}`),qt.getExecOutput(["run","--rm",r.stdout.trim(),"--version"],{ignoreReturnCode:!0,silent:!0}).then(n=>{if(n.exitCode==0&&n.stdout.length>0)return`${r.stdout.trim()} => ${n.stdout.trim()}`;if(n.stderr.length>0)throw new Error(r.stderr.trim());return n.stdout.trim()});if(r.stderr.length>0)throw new Error(r.stderr.trim());return r.stdout.trim()})}async versionSatisfies(e,r,n){n||(n=await new fd({buildx:this.buildx}).inspect(e));for(let o of n.nodes){let s=o.buildkit;if(N(`BuildKit.versionSatisfies ${s}: ${r}`),!s)try{s=await this.getVersionWithinImage(o.name||"")}catch{return N(`BuildKit.versionSatisfies ${o.name}: can't get version`),!1}if(N(`BuildKit.versionSatisfies ${o.name}: version ${s}`),n.driver=="docker"&&!s.endsWith("-moby")||!Zbe.satisfies(s.replace(/-moby$/,""),r))return!1}return!0}};var Bq=class t{static{i(this,"Compose")}_version;_versionOnce;_standalone;constructor(e){this._standalone=e?.standalone,this._version="",this._versionOnce=!1}async isStandalone(){let e=this._standalone??!await qt.isAvailable();return N(`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 ge.getExecOutput(e.command,e.args,{ignoreReturnCode:!0,silent:!0}).then(n=>n.stderr.length>0&&n.exitCode!=0?(N(`Compose.isAvailable cmd err: ${n.stderr.trim()}`),!1):n.exitCode==0).catch(n=>(N(`Compose.isAvailable error: ${n}`),!1));return N(`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 ge.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 ge.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 Ma=w(require("fs"),1),si=w(require("os"),1),Md=w(require("path"),1);var Dq=w(Un(),1),SP=w(require("util"),1);var qq=class t{static{i(this,"Install")}standalone;githubToken;constructor(e){this.standalone=e?.standalone,this.githubToken=e?.githubToken||process.env.GITHUB_TOKEN}async download(e,r){let n=await t.getDownloadVersion(e);N(`Install.download version: ${n.version}`);let o=await t.getRelease(n,this.githubToken);N(`Install.download release tag name: ${o.tag_name}`);let s=await this.vspec(o.tag_name);N(`Install.download vspec: ${s}`);let a=Dq.clean(s)||"";if(!Dq.valid(a))throw new Error(`Invalid Compose version "${s}".`);let c=new rt({htcName:n.key!="official"?`compose-dl-bin-${n.key}`:"compose-dl-bin",htcVersion:s,baseCacheDir:Md.default.join(si.default.homedir(),".bin","docker-compose"),cacheFile:si.default.platform()=="win32"?"docker-compose.exe":"docker-compose",ghaNoCache:r}),u=await c.find();if(u)return S(`Compose binary found in ${u}`),u;let p=SP.format(n.downloadURL,s,this.filename());S(`Downloading ${p}`);let A=await Cn(p,void 0,this.githubToken);N(`Install.download htcDownloadPath: ${A}`);let l=await c.save(A);return S(`Cached to ${l}`),l}async installStandalone(e,r){S("Standalone mode"),r=r||s0.tmpDir();let n=Md.default.join(r,"compose-bin-standalone");Ma.default.existsSync(n)||Ma.default.mkdirSync(n,{recursive:!0});let o=si.default.platform()=="win32"?"compose.exe":"compose",s=Md.default.join(n,o);return Ma.default.copyFileSync(e,s),S("Fixing perms"),Ma.default.chmodSync(s,"0755"),rs(n),S("Added Compose to PATH"),S(`Binary path: ${s}`),s}async installPlugin(e,r){S("Docker plugin mode"),r=r||qt.configDir;let n=Md.default.join(r,"cli-plugins");Ma.default.existsSync(n)||Ma.default.mkdirSync(n,{recursive:!0});let o=si.default Line truncated
# syntax=docker/dockerfile:1
ARG GO_VERSION="1.24"
@@ -208,10 +208,10 @@ EOT
FROM scratch
COPY --from=builder /out /
`;var qq=class t{static{i(this,"Install")}githubToken;buildx;sigstore;constructor(e){this.githubToken=e?.githubToken||process.env.GITHUB_TOKEN,this.buildx=e?.buildx||new m0,this.sigstore=e?.sigstore||new Pc}async download(e){let r=await t.getDownloadVersion(e.version);N(`Install.download version: ${r.version}`);let n=await t.getRelease(r,this.githubToken);N(`Install.download release tag name: ${n.tag_name}`);let o=await this.vspec(n.tag_name);N(`Install.download vspec: ${o}`);let s=zd.clean(o)||"";if(!zd.valid(s))throw new Error(`Invalid Cosign version "${o}".`);let a=new rt({htcName:"cosign-dl-bin",htcVersion:o,baseCacheDir:md.default.join(So.default.homedir(),".bin"),cacheFile:So.default.platform()=="win32"?"cosign.exe":"cosign",ghaNoCache:e.ghaNoCache}),c=await a.find();if(c)return S(`Cosign binary found in ${c}`),c;let u=RP.format(r.downloadURL,o,this.filename());S(`Downloading ${u}`);let p=await On(u,void 0,this.githubToken);N(`Install.download htcDownloadPath: ${p}`),e.verifySignature&&zd.satisfies(o,">=3.0.1")&&await this.verifySignature(p,u);let A=await a.save(p,e.skipState);return S(`Cached to ${A}`),A}async build(e,r,n){let o=await this.vspec(e);N(`Install.build vspec: ${o}`);let s=new rt({htcName:"cosign-build-bin",htcVersion:o,baseCacheDir:md.default.join(So.default.homedir(),".bin"),cacheFile:So.default.platform()=="win32"?"cosign.exe":"cosign",ghaNoCache:r}),a=await s.find();if(a)return S(`Cosign binary found in ${a}`),a;let c=md.default.join(s0.tmpDir(),"cosign-build-cache"),u=await this.buildCommand(e,c),p=await ge.getExecOutput(u.command,u.args,{ignoreReturnCode:!0,input:Buffer.from(Kbe)}).then(l=>{if(l.stderr.length>0&&l.exitCode!=0)throw new Error(`build failed with: ${m0.getErrorMessage(l.stderr)}`);return`${c}/cosign`}),A=await s.save(p,n);return S(`Cached to ${A}`),A}async install(e,r){r=r||s0.tmpDir();let n=md.default.join(r,"cosign-bin");Yh.default.existsSync(n)||Yh.default.mkdirSync(n,{recursive:!0});let o=So.default.platform()=="win32"?"cosign.exe":"cosign",s=md.default.join(n,o);return Yh.default.copyFileSync(e,s),S("Fixing perms"),Yh.default.chmodSync(s,"0755"),ts(n),S("Added Cosign to PATH"),S(`Binary path: ${s}`),s}async buildCommand(e,r){let n=await new m0({standalone:!0}).isAvailable(),o=await new m0({standalone:!1}).isAvailable(),s=!1;if(await this.buildx.isStandalone()&&n)N("Install.buildCommand: Buildx standalone found, build with it"),s=!0;else if(!await this.buildx.isStandalone()&&o)N("Install.buildCommand: Buildx plugin found, build with it"),s=!1;else if(n)N("Install.buildCommand: Buildx plugin not found, but standalone found so trying to build with it"),s=!0;else if(o)N("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 a=["build","--platform","local","--build-arg","BUILDKIT_CONTEXT_KEEP_GIT_DIR=1","--output",`type=local,dest=${r}`];return process.env.GIT_AUTH_TOKEN&&a.push("--secret","id=GIT_AUTH_TOKEN"),a.push("-f-",e),await new m0({standalone:s}).getCommand(a)}async verifySignature(e,r){let n=`${r}.sigstore.json`;S(`Downloading keyless verification bundle at ${n}`);let o=await On(n,void 0,this.githubToken);N(`Install.verifySignature bundlePath: ${o}`);let s=await this.sigstore.verifyArtifact(e,o,{subjectAlternativeName:"keyless@projectsigstore.iam.gserviceaccount.com",issuer:"https://accounts.google.com"});S(`Cosign binary signature verified! ${s.tlogID?`${ld}?logIndex=${s.tlogID}`:""}`)}filename(){let e;switch(So.default.arch()){case"x64":{e="amd64";break}case"ppc64":{e="ppc64le";break}default:{e=So.default.arch();break}}let r=So.default.platform()=="win32"?"windows":So.default.platform(),n=So.default.platform()=="win32"?".exe":"";return RP.format("cosign-%s-%s%s",r,e,n)}async vspec(e){if(!c0.isValidRef(e)){let p=e.replace(/^v+|v+$/g,"");return S(`Use ${p} version spec cache key for ${e}`),p}let[r,n]=e.split("#");n.length==0&&(n="master");let o;n.match(/^[0-9a-fA-F]{40}$/)?o=n:o=await pa.remoteSha(r,n,process.env.GIT_AUTH_TOKEN);let[s,a]=r.substring(19).split("/"),c=`${s}/${c0.trimSuffix(a,".git")}/${o}`,u=c0.hash(c);return S(`Use ${u} version spec cache key for ${c}`),u}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 o=await new a0({token:r}).releases("Cosign",e.contentOpts);if(!o[e.version])throw new Error(`Cannot find Cosign release ${e.version} in releases JSON`);return o[e.version]}};var Zbe=w(Pn(),1);var Dq=class{static{i(this,"Regctl")}binPath;_version;_versionOnce;constructor(e){this.binPath=e?.binPath||"regctl",this._version="",this._versionOnce=!1}async blobGet(e){return await ge.getExecOutput(this.binPath,["blob","get",e.repository,e.digest],{ignoreReturnCode:!0,silent:!0}).then(r=>{if(r.stder Line truncated
`,sepLabels:Pr("sep-labels",{trimWhitespace:!1})||`
`,sepAnnotations:Pr("sep-annotations",{trimWhitespace:!1})||`
`,bakeTarget:Pr("bake-target")||"docker-metadata-action",githubToken:Pr("github-token")}}i(rfe,"getInputs");async function nfe(t,e){if(t.startsWith("git:"))return await tfe(t.slice(4));switch(t){case"workflow":return await fd0(e);case"git":return await tfe();default:throw new Error(`Invalid context source: ${t}`)}}i(nfe,"getContext");async function fd0(t){let e=a0.context;return/pull_request_target/.test(e.eventName)&&(e.ref=`refs/pull/${e.payload.number}/merge`),/true/i.test(process.env.DOCKER_METADATA_PR_HEAD_SHA||"")&&(/pull_request/.test(e.eventName)||/pull_request_target/.test(e.eventName))&&e.payload?.pull_request?.head?.sha!=null&&(e.sha=e.payload.pull_request.head.sha),{commitDate:await Md0(e.sha,t),...e}}i(fd0,"getContextFromWorkflow");async function tfe(t){let e=await pa.context(t);return{commitDate:await pa.commitDate(e.sha,t),...e}}i(tfe,"getContextFromGit");async function Md0(t,e){let r=a0.context.payload;if(r.commits){let n=r.commits.find(o=>o.id===t)?.timestamp;if(n)return new Date(n)}if(r.head_commit&&r.head_commit.id===t)return new Date(r.head_commit.timestamp);try{let n=await e.github.octokit.rest.repos.getCommit({owner:a0.context.repo.owner,repo:a0.context.repo.repo,ref:t});if(n.data.commit.committer?.date)return new Date(n.data.commit.committer.date);throw new Error("Committer date not found")}catch(n){return N(`Failed to get commit date from GitHub API: ${n.message}`),new Date}}i(Md0,"getCommitDateFromWorkflow");var Da=w(VQ(),1),J4e=w(require("fs"),1),$4e=w(require("path"),1),Gm=w(ufe(),1),cn=w(G4e(),1),vd=w(Pn(),1);function X4e(t){let e=[];if(t.length==1){let r=!1,n=F1(t[0],{relaxColumnCount:!0,skipEmptyLines:!0})[0];for(let o of n){let s=o.toString().split("=").map(a=>a.trim());if(s.length==1)e.push({name:s[0],enable:!0});else{r=!0;break}}if(!r)return H4e(e)}e=[];for(let r of t){let n={name:"",enable:!0},o=F1(r,{relaxColumnCount:!0,skipEmptyLines:!0})[0];for(let s of o){let a=s.toString().split("=").map(c=>c.trim());if(a.length==1)n.name=a[0];else{let c=a[0].toLowerCase(),u=a[1];switch(c){case"name":{n.name=u;break}case"enable":{if(!["true","false"].includes(u))throw new Error(`Invalid enable attribute value: ${r}`);n.enable=/true/i.test(u);break}default:throw new Error(`Unknown image attribute: ${r}`)}}}if(n.name.length==0)throw new Error(`Image name attribute empty: ${r}`);e.push(n)}return H4e(e)}i(X4e,"Transform");function H4e(t){Iu("Processing images input");for(let e of t)S(`name=${e.name},enable=${e.enable}`);return Ru(),t}i(H4e,"output");var Z7=(u=>(u.Schedule="schedule",u.Semver="semver",u.Pep440="pep440",u.Match="match",u.Edge="edge",u.Ref="ref",u.Raw="raw",u.Sha="sha",u))(Z7||{}),qD=(n=>(n.Branch="branch",n.Tag="tag",n.PR="pr",n))(qD||{}),DD=(r=>(r.Short="short",r.Long="long",r))(DD||{}),K7=class{static{i(this,"Tag")}type;attrs;constructor(){this.attrs={}}toString(){let e=[`type=${this.type}`];for(let r in this.attrs)e.push(`${r}=${this.attrs[r]}`);return e.join(",")}},iB0={schedule:"1000",semver:"900",pep440:"900",match:"800",edge:"700",ref:"600",raw:"200",sha:"100"};function V4e(t){let e=[];t.length==0&&(t=["type=schedule","type=ref,event=branch","type=ref,event=tag","type=ref,event=pr"]);for(let n of t)e.push(aB0(n));let r=e.sort((n,o)=>Number(n.attrs.priority)<Number(o.attrs.priority)?1:Number(n.attrs.priority)>Number(o.attrs.priority)?-1:0);Iu("Processing tags input");for(let n of r)S(n.toString());return Ru(),r}i(V4e,"Transform");function aB0(t){let e=F1(t,{relaxColumnCount:!0,skipEmptyLines:!0})[0],r=new K7;for(let n of e){let o=n.toString().split(/(?<=^[^=]+?)=/).map(s=>s.trim());if(o.length==1)r.attrs.value=o[0];else{let s=o[0].toLowerCase(),a=o[1];switch(s){case"type":{if(!Object.values(Z7).includes(a))throw new Error(`Unknown tag type attribute: ${a}`);r.type=a;break}default:{r.attrs[s]=a;break}}}}switch(r.type==null&&(r.type="raw"),r.type){case"schedule":{Object.prototype.hasOwnProperty.call(r.attrs,"pattern")||(r.attrs.pattern="nightly");break}case"semver":case"pep440":{if(!Object.prototype.hasOwnProperty.call(r.attrs,"pattern"))throw new Error(`Missing pattern attribute for ${t}`);Object.prototype.hasOwnProperty.call(r.attrs,"value")||(r.attrs.value=""),Object.prototype.hasOwnProperty.call(r.attrs,"match")||(r.attrs.match="");break}case"match":{if(!Object.prototype.hasOwnProperty.call(r.attrs,"pattern"))throw new Error(`Missing pattern attribute for ${t}`);if(Object.prototype.hasOwnProperty.call(r.attrs,"group")||(r.attrs.group="0"),isNaN(+r.attrs.group))throw new Error(`Invalid match group for ${t}`);Object.prototype.hasOwnProperty.call(r.attrs,"value")||(r.attrs.value="");break}case"edge":{Object.prototype.hasOwnProperty.call(r.attrs,"branch")||(r.attrs.branch="");break}case"ref":{if(!Object.prototype.hasOwnProperty.call(r.attrs,"event"))throw new Error(`Missing event attribute for ${t}`);if(!Object.keys(qD).map(n=>qD[n]).includes(r.attrs.event))throw new Error(`Invalid event for ${t}`);r.attrs.event=="pr"&&!Object.prototype.hasOwnProperty.call(r.attrs,"pref Line truncated
`;var Iq=class t{static{i(this,"Install")}githubToken;buildx;sigstore;constructor(e){this.githubToken=e?.githubToken||process.env.GITHUB_TOKEN,this.buildx=e?.buildx||new m0,this.sigstore=e?.sigstore||new Qc}async download(e){let r=await t.getDownloadVersion(e.version);N(`Install.download version: ${r.version}`);let n=await t.getRelease(r,this.githubToken);N(`Install.download release tag name: ${n.tag_name}`);let o=await this.vspec(n.tag_name);N(`Install.download vspec: ${o}`);let s=md.clean(o)||"";if(!md.valid(s))throw new Error(`Invalid Cosign version "${o}".`);let a=new rt({htcName:"cosign-dl-bin",htcVersion:o,baseCacheDir:hd.default.join(Fo.default.homedir(),".bin"),cacheFile:Fo.default.platform()=="win32"?"cosign.exe":"cosign",ghaNoCache:e.ghaNoCache}),c=await a.find();if(c)return S(`Cosign binary found in ${c}`),c;let u=FP.format(r.downloadURL,o,this.filename());S(`Downloading ${u}`);let p=await Cn(u,void 0,this.githubToken);N(`Install.download htcDownloadPath: ${p}`),e.verifySignature&&md.satisfies(o,">=3.0.1")&&await this.verifySignature(p,u);let A=await a.save(p,e.skipState);return S(`Cached to ${A}`),A}async build(e,r,n){let o=await this.vspec(e);N(`Install.build vspec: ${o}`);let s=new rt({htcName:"cosign-build-bin",htcVersion:o,baseCacheDir:hd.default.join(Fo.default.homedir(),".bin"),cacheFile:Fo.default.platform()=="win32"?"cosign.exe":"cosign",ghaNoCache:r}),a=await s.find();if(a)return S(`Cosign binary found in ${a}`),a;let c=hd.default.join(s0.tmpDir(),"cosign-build-cache"),u=await this.buildCommand(e,c),p=await ge.getExecOutput(u.command,u.args,{ignoreReturnCode:!0,input:Buffer.from(efe)}).then(l=>{if(l.stderr.length>0&&l.exitCode!=0)throw new Error(`build failed with: ${m0.getErrorMessage(l.stderr)}`);return`${c}/cosign`}),A=await s.save(p,n);return S(`Cached to ${A}`),A}async install(e,r){r=r||s0.tmpDir();let n=hd.default.join(r,"cosign-bin");Yh.default.existsSync(n)||Yh.default.mkdirSync(n,{recursive:!0});let o=Fo.default.platform()=="win32"?"cosign.exe":"cosign",s=hd.default.join(n,o);return Yh.default.copyFileSync(e,s),S("Fixing perms"),Yh.default.chmodSync(s,"0755"),rs(n),S("Added Cosign to PATH"),S(`Binary path: ${s}`),s}async buildCommand(e,r){let n=await new m0({standalone:!0}).isAvailable(),o=await new m0({standalone:!1}).isAvailable(),s=!1;if(await this.buildx.isStandalone()&&n)N("Install.buildCommand: Buildx standalone found, build with it"),s=!0;else if(!await this.buildx.isStandalone()&&o)N("Install.buildCommand: Buildx plugin found, build with it"),s=!1;else if(n)N("Install.buildCommand: Buildx plugin not found, but standalone found so trying to build with it"),s=!0;else if(o)N("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 a=["build","--platform","local","--build-arg","BUILDKIT_CONTEXT_KEEP_GIT_DIR=1","--output",`type=local,dest=${r}`];return process.env.GIT_AUTH_TOKEN&&a.push("--secret","id=GIT_AUTH_TOKEN"),a.push("-f-",e),await new m0({standalone:s}).getCommand(a)}async verifySignature(e,r){let n=`${r}.sigstore.json`;S(`Downloading keyless verification bundle at ${n}`);let o=await Cn(n,void 0,this.githubToken);N(`Install.verifySignature bundlePath: ${o}`);let s=await this.sigstore.verifyArtifact(e,o,{subjectAlternativeName:"keyless@projectsigstore.iam.gserviceaccount.com",issuer:"https://accounts.google.com"});S(`Cosign binary signature verified! ${s.tlogID?`${Ad}?logIndex=${s.tlogID}`:""}`)}filename(){let e;switch(Fo.default.arch()){case"x64":{e="amd64";break}case"ppc64":{e="ppc64le";break}default:{e=Fo.default.arch();break}}let r=Fo.default.platform()=="win32"?"windows":Fo.default.platform(),n=Fo.default.platform()=="win32"?".exe":"";return FP.format("cosign-%s-%s%s",r,e,n)}async vspec(e){if(!c0.isValidRef(e)){let p=e.replace(/^v+|v+$/g,"");return S(`Use ${p} version spec cache key for ${e}`),p}let[r,n]=e.split("#");n.length==0&&(n="master");let o;n.match(/^[0-9a-fA-F]{40}$/)?o=n:o=await ca.remoteSha(r,n,process.env.GIT_AUTH_TOKEN);let[s,a]=r.substring(19).split("/"),c=`${s}/${c0.trimSuffix(a,".git")}/${o}`,u=c0.hash(c);return S(`Use ${u} version spec cache key for ${c}`),u}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 o=await new a0({token:r}).releases("Cosign",e.contentOpts);if(!o[e.version])throw new Error(`Cannot find Cosign release ${e.version} in releases JSON`);return o[e.version]}};var tfe=w(Un(),1);var Rq=class{static{i(this,"Regctl")}binPath;_version;_versionOnce;constructor(e){this.binPath=e?.binPath||"regctl",this._version="",this._versionOnce=!1}async blobGet(e){return await ge.getExecOutput(this.binPath,["blob","get",e.repository,e.digest],{ignoreReturnCode:!0,silent:!0}).then(r=>{if(r.stder Line truncated
`,sepLabels:Ur("sep-labels",{trimWhitespace:!1})||`
`,sepAnnotations:Ur("sep-annotations",{trimWhitespace:!1})||`
`,bakeTarget:Ur("bake-target")||"docker-metadata-action",githubToken:Ur("github-token")}}i(ofe,"getInputs");async function sfe(t,e){if(t.startsWith("git:"))return await nfe(t.slice(4));switch(t){case"workflow":return await yd0(e);case"git":return await nfe();default:throw new Error(`Invalid context source: ${t}`)}}i(sfe,"getContext");async function yd0(t){let e=a0.context;return/pull_request_target/.test(e.eventName)&&(e.ref=`refs/pull/${e.payload.number}/merge`),/true/i.test(process.env.DOCKER_METADATA_PR_HEAD_SHA||"")&&(/pull_request/.test(e.eventName)||/pull_request_target/.test(e.eventName))&&e.payload?.pull_request?.head?.sha!=null&&(e.sha=e.payload.pull_request.head.sha),{commitDate:await Bd0(e.sha,t),...e}}i(yd0,"getContextFromWorkflow");async function nfe(t){let e=await ca.context(t);return{commitDate:await ca.commitDate(e.sha,t),...e}}i(nfe,"getContextFromGit");async function Bd0(t,e){let r=a0.context.payload;if(r.commits){let n=r.commits.find(o=>o.id===t)?.timestamp;if(n)return new Date(n)}if(r.head_commit&&r.head_commit.id===t)return new Date(r.head_commit.timestamp);try{let n=await e.github.octokit.rest.repos.getCommit({owner:a0.context.repo.owner,repo:a0.context.repo.repo,ref:t});if(n.data.commit.committer?.date)return new Date(n.data.commit.committer.date);throw new Error("Committer date not found")}catch(n){return N(`Failed to get commit date from GitHub API: ${n.message}`),new Date}}i(Bd0,"getCommitDateFromWorkflow");var Ba=w(jQ(),1),j4e=w(require("fs"),1),K4e=w(require("path"),1),Gm=w(Afe(),1),pn=w(X4e(),1),Td=w(Un(),1);function Y4e(t){let e=[];if(t.length==1){let r=!1,n=F1(t[0],{relaxColumnCount:!0,skipEmptyLines:!0})[0];for(let o of n){let s=o.toString().split("=").map(a=>a.trim());if(s.length==1)e.push({name:s[0],enable:!0});else{r=!0;break}}if(!r)return V4e(e)}e=[];for(let r of t){let n={name:"",enable:!0},o=F1(r,{relaxColumnCount:!0,skipEmptyLines:!0})[0];for(let s of o){let a=s.toString().split("=").map(c=>c.trim());if(a.length==1)n.name=a[0];else{let c=a[0].toLowerCase(),u=a[1];switch(c){case"name":{n.name=u;break}case"enable":{if(!["true","false"].includes(u))throw new Error(`Invalid enable attribute value: ${r}`);n.enable=/true/i.test(u);break}default:throw new Error(`Unknown image attribute: ${r}`)}}}if(n.name.length==0)throw new Error(`Image name attribute empty: ${r}`);e.push(n)}return V4e(e)}i(Y4e,"Transform");function V4e(t){Iu("Processing images input");for(let e of t)S(`name=${e.name},enable=${e.enable}`);return Ru(),t}i(V4e,"output");var n9=(u=>(u.Schedule="schedule",u.Semver="semver",u.Pep440="pep440",u.Match="match",u.Edge="edge",u.Ref="ref",u.Raw="raw",u.Sha="sha",u))(n9||{}),ID=(n=>(n.Branch="branch",n.Tag="tag",n.PR="pr",n))(ID||{}),RD=(r=>(r.Short="short",r.Long="long",r))(RD||{}),r9=class{static{i(this,"Tag")}type;attrs;constructor(){this.attrs={}}toString(){let e=[`type=${this.type}`];for(let r in this.attrs)e.push(`${r}=${this.attrs[r]}`);return e.join(",")}},fB0={schedule:"1000",semver:"900",pep440:"900",match:"800",edge:"700",ref:"600",raw:"200",sha:"100"};function J4e(t){let e=[];t.length==0&&(t=["type=schedule","type=ref,event=branch","type=ref,event=tag","type=ref,event=pr"]);for(let n of t)e.push(MB0(n));let r=e.sort((n,o)=>Number(n.attrs.priority)<Number(o.attrs.priority)?1:Number(n.attrs.priority)>Number(o.attrs.priority)?-1:0);Iu("Processing tags input");for(let n of r)S(n.toString());return Ru(),r}i(J4e,"Transform");function MB0(t){let e=F1(t,{relaxColumnCount:!0,skipEmptyLines:!0})[0],r=new r9;for(let n of e){let o=n.toString().split(/(?<=^[^=]+?)=/).map(s=>s.trim());if(o.length==1)r.attrs.value=o[0];else{let s=o[0].toLowerCase(),a=o[1];switch(s){case"type":{if(!Object.values(n9).includes(a))throw new Error(`Unknown tag type attribute: ${a}`);r.type=a;break}default:{r.attrs[s]=a;break}}}}switch(r.type==null&&(r.type="raw"),r.type){case"schedule":{Object.prototype.hasOwnProperty.call(r.attrs,"pattern")||(r.attrs.pattern="nightly");break}case"semver":case"pep440":{if(!Object.prototype.hasOwnProperty.call(r.attrs,"pattern"))throw new Error(`Missing pattern attribute for ${t}`);Object.prototype.hasOwnProperty.call(r.attrs,"value")||(r.attrs.value=""),Object.prototype.hasOwnProperty.call(r.attrs,"match")||(r.attrs.match="");break}case"match":{if(!Object.prototype.hasOwnProperty.call(r.attrs,"pattern"))throw new Error(`Missing pattern attribute for ${t}`);if(Object.prototype.hasOwnProperty.call(r.attrs,"group")||(r.attrs.group="0"),isNaN(+r.attrs.group))throw new Error(`Invalid match group for ${t}`);Object.prototype.hasOwnProperty.call(r.attrs,"value")||(r.attrs.value="");break}case"edge":{Object.prototype.hasOwnProperty.call(r.attrs,"branch")||(r.attrs.branch="");break}case"ref":{if(!Object.prototype.hasOwnProperty.call(r.attrs,"event"))throw new Error(`Missing event attribute for ${t}`);if(!Object.keys(ID).map(n=>ID[n]).includes(r.attrs.event))throw new Error(`Invalid event for ${t}`);r.attrs.event=="pr"&&!Object.prototype.hasOwnProperty.call(r.attrs,"pref Line truncated
/*! Bundled license information:
undici/lib/web/fetch/body.js:
Generated Vendored
+3 -3
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": "ipBAAA,IAAAA,GAAAC,EAAAC,IAAA,cAEA,IAAIC,IAAM,QAAQ,KAAK,EACnBC,IAAM,QAAQ,KAAK,EACnBC,GAAO,QAAQ,MAAM,EACrBC,GAAQ,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,CAJSE,EAAAP,IAAA,gBAMT,SAASC,IAAcG,EAAS,CAC9B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUV,GAAK,QACrBU,EAAM,aAAeG,GACrBH,EAAM,YAAc,IACbA,CACT,CANSE,EAAAN,IAAA,iBAQT,SAASC,IAAcE,EAAS,CAC9B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUT,GAAM,QACfS,CACT,CAJSE,EAAAL,IAAA,iBAMT,SAASC,IAAeC,EAAS,CAC/B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUT,GAAM,QACtBS,EAAM,aAAeG,GACrBH,EAAM,YAAc,IACbA,CACT,CANSE,EAAAJ,IAAA,kBAST,SAASG,GAAeF,EAAS,CAC/B,IAAIK,EAAO,KACXA,EAAK,QAAUL,GAAW,CAAC,EAC3BK,EAAK,aAAeA,EAAK,QAAQ,OAAS,CAAC,EAC3CA,EAAK,WAAaA,EAAK,QAAQ,YAAcd,GAAK,MAAM,kBACxDc,EAAK,SAAW,CAAC,EACjBA,EAAK,QAAU,CAAC,EAEhBA,EAAK,GAAG,OAAQF,EAAA,SAAgBG,EAAQC,EAAMC,EAAMC,EAAc,CAEhE,QADIT,EAAUU,GAAUH,EAAMC,EAAMC,CAAY,EACvCE,EAAI,EAAGC,EAAMP,EAAK,SAAS,OAAQM,EAAIC,EAAK,EAAED,EAAG,CACxD,IAAIE,EAAUR,EAAK,SAASM,CAAC,EAC7B,GAAIE,EAAQ,OAASb,EAAQ,MAAQa,EAAQ,OAASb,EAAQ,KAAM,CAGlEK,EAAK,SAAS,OAAOM,EAAG,CAAC,EACzBE,EAAQ,QAAQ,SAASP,CAAM,EAC/B,MACF,CACF,CACAA,EAAO,QAAQ,EACfD,EAAK,aAAaC,CAAM,CAC1B,EAdgB,SAcf,CACH,CAvBSH,EAAAD,GAAA,kBAwBTP,IAAK,SAASO,GAAgBT,IAAO,YAAY,EAEjDS,GAAe,UAAU,WAAaC,EAAA,SAAoBW,EAAKP,EAAMC,EAAMC,EAAc,CACvF,IAAIJ,EAAO,KACPL,EAAUe,GAAa,CAAC,QAASD,CAAG,EAAGT,EAAK,QAASK,GAAUH,EAAMC,EAAMC,CAAY,CAAC,EAE5F,GAAIJ,EAAK,QAAQ,QAAU,KAAK,WAAY,CAE1CA,EAAK,SAAS,KAAKL,CAAO,EAC1B,MACF,CAGAK,EAAK,aAAaL,EAAS,SAASM,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,EAAQN,CAAO,CACnC,CAFSG,EAAAa,EAAA,UAIT,SAASC,EAAgBC,EAAK,CAC5Bb,EAAK,aAAaC,CAAM,EACxBA,EAAO,eAAe,OAAQU,CAAM,EACpCV,EAAO,eAAe,QAASW,CAAe,EAC9CX,EAAO,eAAe,cAAeW,CAAe,CACtD,CALSd,EAAAc,EAAA,kBAMX,CAAC,CACH,EA5BsC,cA8BtCf,GAAe,UAAU,aAAeC,EAAA,SAAsBH,EAASmB,EAAI,CACzE,IAAId,EAAO,KACPe,EAAc,CAAC,EACnBf,EAAK,QAAQ,KAAKe,CAAW,EAE7B,IAAIC,EAAiBN,GAAa,CAAC,EAAGV,EAAK,aAAc,CACvD,OAAQ,UACR,KAAML,EAAQ,KAAO,IAAMA,EAAQ,KACnC,MAAO,GACP,QAAS,CACP,KAAMA,EAAQ,KAAO,IAAMA,EAAQ,IACrC,CACF,CAAC,EACGA,EAAQ,eACVqB,EAAe,aAAerB,EAAQ,cAEpCqB,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,CAHSzB,EAAAqB,EAAA,cAKT,SAASC,EAAUG,EAAKtB,EAAQuB,EAAM,CAEpC,QAAQ,SAAS,UAAW,CAC1BH,EAAUE,EAAKtB,EAAQuB,CAAI,CAC7B,CAAC,CACH,CALS1B,EAAAsB,EAAA,aAOT,SAASC,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,aACb9B,EAAQ,QAAQ,KAAK,QAAS8B,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,aACb9B,EAAQ,QAAQ,KAAK,QAAS8B,CAAK,EACnCzB,EAAK,aAAae,CAAW,EAC7B,MACF,CACA,OAAAE,GAAM,sCAAsC,EAC5CjB,EAAK,QAAQA,EAAK,QAAQ,QAAQe,CAAW,CAAC,EAAId,EAC3Ca,EAAGb,CAAM,CAClB,CA3BSH,EAAAuB,EAAA,aA6BT,SAASC,EAAQI,EAAO,CACtBR,EAAW,mBAAmB,EAE9BD,GAAM;AAAA,EACAS,EAAM,QAASA,EAAM,KAAK,EAChC,IAAID,EAAQ,IAAI,MAAM,oDACWC,EAAM,OAAO,EAC9CD,EAAM,KAAO,aACb9B,EAAQ,QAAQ,KAAK,QAAS8B,CAAK,EACnCzB,EAAK,aAAae,CAAW,CAC/B,CAVSjB,EAAAwB,EAAA,UAWX,EAnFwC,gBAqFxCzB,GAAe,UAAU,aAAeC,EAAA,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,EAfwC,gBAiBxC,SAASF,GAAmBJ,EAASmB,EAAI,CACvC,IAAId,EAAO,KACXH,GAAe,UAAU,aAAa,KAAKG,EAAML,EAAS,SAASM,EAAQ,CACzE,IAAI2B,EAAajC,EAAQ,QAAQ,UAAU,MAAM,EAC7CkC,EAAanB,GAAa,CAAC,EAAGV,EAAK,QAAS,CAC9C,OAAQC,EACR,WAAY2B,EAAaA,EAAW,QAAQ,OAAQ,EAAE,EAAIjC,EAAQ,IACpE,CAAC,EAGGmC,EAAe7C,IAAI,QAAQ,EAAG4C,CAAU,EAC5C7B,EAAK,QAAQA,EAAK,QAAQ,QAAQC,CAAM,CAAC,EAAI6B,EAC7ChB,EAAGgB,CAAY,CACjB,CAAC,CACH,CAdShC,EAAAC,GAAA,sBAiBT,SAASM,GAAUH,EAAMC,EAAMC,EAAc,CAC3C,OAAI,OAAOF,GAAS,SACX,CACL,KAAMA,EACN,KAAMC,EACN,aAAcC,CAChB,EAEKF,CACT,CATSJ,EAAAO,GAAA,aAWT,SAASK,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,CAdSjC,EAAAY,GAAA,gBAiBT,IAAIO,GACA,QAAQ,IAAI,YAAc,aAAa,KAAK,QAAQ,IAAI,UAAU,EACpEA,GAAQnB,EAAA,UAAW,CACjB,IAAIuC,EAAO,MAAM,UAAU,MAAM,KAAK,SAAS,EAC3C,OAAOA,EAAK,CAAC,GAAM,SACrBA,EAAK,CAAC,EAAI,WALine truncated
"names": ["require_tunnel", "__commonJSMin", "exports", "net", "tls", "http", "https", "events", "assert", "util", "httpOverHttp", "httpsOverHttp", "httpOverHttps", "httpsOverHttps", "options", "agent", "TunnelingAgent", "__name", "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", "__name", "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", "__name", "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", "__name", "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", "__name", "origin", "path", "method", "body", "headers", "query", "idempotent", "blocking", "upgrade", "headersTimeout", "bodyTimeout", "resetLine 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": "ipBAAA,IAAAA,GAAAC,EAAAC,IAAA,cAEA,IAAIC,IAAM,QAAQ,KAAK,EACnBC,IAAM,QAAQ,KAAK,EACnBC,GAAO,QAAQ,MAAM,EACrBC,GAAQ,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,CAJSE,EAAAP,IAAA,gBAMT,SAASC,IAAcG,EAAS,CAC9B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUV,GAAK,QACrBU,EAAM,aAAeG,GACrBH,EAAM,YAAc,IACbA,CACT,CANSE,EAAAN,IAAA,iBAQT,SAASC,IAAcE,EAAS,CAC9B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUT,GAAM,QACfS,CACT,CAJSE,EAAAL,IAAA,iBAMT,SAASC,IAAeC,EAAS,CAC/B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUT,GAAM,QACtBS,EAAM,aAAeG,GACrBH,EAAM,YAAc,IACbA,CACT,CANSE,EAAAJ,IAAA,kBAST,SAASG,GAAeF,EAAS,CAC/B,IAAIK,EAAO,KACXA,EAAK,QAAUL,GAAW,CAAC,EAC3BK,EAAK,aAAeA,EAAK,QAAQ,OAAS,CAAC,EAC3CA,EAAK,WAAaA,EAAK,QAAQ,YAAcd,GAAK,MAAM,kBACxDc,EAAK,SAAW,CAAC,EACjBA,EAAK,QAAU,CAAC,EAEhBA,EAAK,GAAG,OAAQF,EAAA,SAAgBG,EAAQC,EAAMC,EAAMC,EAAc,CAEhE,QADIT,EAAUU,GAAUH,EAAMC,EAAMC,CAAY,EACvCE,EAAI,EAAGC,EAAMP,EAAK,SAAS,OAAQM,EAAIC,EAAK,EAAED,EAAG,CACxD,IAAIE,EAAUR,EAAK,SAASM,CAAC,EAC7B,GAAIE,EAAQ,OAASb,EAAQ,MAAQa,EAAQ,OAASb,EAAQ,KAAM,CAGlEK,EAAK,SAAS,OAAOM,EAAG,CAAC,EACzBE,EAAQ,QAAQ,SAASP,CAAM,EAC/B,MACF,CACF,CACAA,EAAO,QAAQ,EACfD,EAAK,aAAaC,CAAM,CAC1B,EAdgB,SAcf,CACH,CAvBSH,EAAAD,GAAA,kBAwBTP,IAAK,SAASO,GAAgBT,IAAO,YAAY,EAEjDS,GAAe,UAAU,WAAaC,EAAA,SAAoBW,EAAKP,EAAMC,EAAMC,EAAc,CACvF,IAAIJ,EAAO,KACPL,EAAUe,GAAa,CAAC,QAASD,CAAG,EAAGT,EAAK,QAASK,GAAUH,EAAMC,EAAMC,CAAY,CAAC,EAE5F,GAAIJ,EAAK,QAAQ,QAAU,KAAK,WAAY,CAE1CA,EAAK,SAAS,KAAKL,CAAO,EAC1B,MACF,CAGAK,EAAK,aAAaL,EAAS,SAASM,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,EAAQN,CAAO,CACnC,CAFSG,EAAAa,EAAA,UAIT,SAASC,EAAgBC,EAAK,CAC5Bb,EAAK,aAAaC,CAAM,EACxBA,EAAO,eAAe,OAAQU,CAAM,EACpCV,EAAO,eAAe,QAASW,CAAe,EAC9CX,EAAO,eAAe,cAAeW,CAAe,CACtD,CALSd,EAAAc,EAAA,kBAMX,CAAC,CACH,EA5BsC,cA8BtCf,GAAe,UAAU,aAAeC,EAAA,SAAsBH,EAASmB,EAAI,CACzE,IAAId,EAAO,KACPe,EAAc,CAAC,EACnBf,EAAK,QAAQ,KAAKe,CAAW,EAE7B,IAAIC,EAAiBN,GAAa,CAAC,EAAGV,EAAK,aAAc,CACvD,OAAQ,UACR,KAAML,EAAQ,KAAO,IAAMA,EAAQ,KACnC,MAAO,GACP,QAAS,CACP,KAAMA,EAAQ,KAAO,IAAMA,EAAQ,IACrC,CACF,CAAC,EACGA,EAAQ,eACVqB,EAAe,aAAerB,EAAQ,cAEpCqB,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,CAHSzB,EAAAqB,EAAA,cAKT,SAASC,EAAUG,EAAKtB,EAAQuB,EAAM,CAEpC,QAAQ,SAAS,UAAW,CAC1BH,EAAUE,EAAKtB,EAAQuB,CAAI,CAC7B,CAAC,CACH,CALS1B,EAAAsB,EAAA,aAOT,SAASC,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,aACb9B,EAAQ,QAAQ,KAAK,QAAS8B,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,aACb9B,EAAQ,QAAQ,KAAK,QAAS8B,CAAK,EACnCzB,EAAK,aAAae,CAAW,EAC7B,MACF,CACA,OAAAE,GAAM,sCAAsC,EAC5CjB,EAAK,QAAQA,EAAK,QAAQ,QAAQe,CAAW,CAAC,EAAId,EAC3Ca,EAAGb,CAAM,CAClB,CA3BSH,EAAAuB,EAAA,aA6BT,SAASC,EAAQI,EAAO,CACtBR,EAAW,mBAAmB,EAE9BD,GAAM;AAAA,EACAS,EAAM,QAASA,EAAM,KAAK,EAChC,IAAID,EAAQ,IAAI,MAAM,oDACWC,EAAM,OAAO,EAC9CD,EAAM,KAAO,aACb9B,EAAQ,QAAQ,KAAK,QAAS8B,CAAK,EACnCzB,EAAK,aAAae,CAAW,CAC/B,CAVSjB,EAAAwB,EAAA,UAWX,EAnFwC,gBAqFxCzB,GAAe,UAAU,aAAeC,EAAA,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,EAfwC,gBAiBxC,SAASF,GAAmBJ,EAASmB,EAAI,CACvC,IAAId,EAAO,KACXH,GAAe,UAAU,aAAa,KAAKG,EAAML,EAAS,SAASM,EAAQ,CACzE,IAAI2B,EAAajC,EAAQ,QAAQ,UAAU,MAAM,EAC7CkC,EAAanB,GAAa,CAAC,EAAGV,EAAK,QAAS,CAC9C,OAAQC,EACR,WAAY2B,EAAaA,EAAW,QAAQ,OAAQ,EAAE,EAAIjC,EAAQ,IACpE,CAAC,EAGGmC,EAAe7C,IAAI,QAAQ,EAAG4C,CAAU,EAC5C7B,EAAK,QAAQA,EAAK,QAAQ,QAAQC,CAAM,CAAC,EAAI6B,EAC7ChB,EAAGgB,CAAY,CACjB,CAAC,CACH,CAdShC,EAAAC,GAAA,sBAiBT,SAASM,GAAUH,EAAMC,EAAMC,EAAc,CAC3C,OAAI,OAAOF,GAAS,SACX,CACL,KAAMA,EACN,KAAMC,EACN,aAAcC,CAChB,EAEKF,CACT,CATSJ,EAAAO,GAAA,aAWT,SAASK,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,CAdSjC,EAAAY,GAAA,gBAiBT,IAAIO,GACA,QAAQ,IAAI,YAAc,aAAa,KAAK,QAAQ,IAAI,UAAU,EACpEA,GAAQnB,EAAA,UAAW,CACjB,IAAIuC,EAAO,MAAM,UAAU,MAAM,KAAK,SAAS,EAC3C,OAAOA,EAAK,CAAC,GAAM,SACrBA,EAAK,CAAC,EAAI,WALine truncated
"names": ["require_tunnel", "__commonJSMin", "exports", "net", "tls", "http", "https", "events", "assert", "util", "httpOverHttp", "httpsOverHttp", "httpOverHttps", "httpsOverHttps", "options", "agent", "TunnelingAgent", "__name", "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", "__name", "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", "__name", "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", "__name", "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", "__name", "origin", "path", "method", "body", "headers", "query", "idempotent", "blocking", "upgrade", "headersTimeout", "bodyTimeout", "resetLine truncated
}
Generated Vendored
+1 -1
View File
@@ -3795,7 +3795,7 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
The following npm package may be included in this product:
- undici@6.28.0
- undici@6.29.0
This package contains the following license: