chore: update generated content

This commit is contained in:
github-actions[bot] committed 2026-05-27 10:02:59 +00:00
1 parent ae3c6883b5
commit 739694b2b5
3 files changed
+502 -131

No files matched your search

Generated Vendored
+138 -110
View File
@@ -1,157 +1,184 @@
var ixe=Object.create;var bP=Object.defineProperty;var nxe=Object.getOwnPropertyDescriptor;var oxe=Object.getOwnPropertyNames;var axe=Object.getPrototypeOf,cxe=Object.prototype.hasOwnProperty;var lxe=(t,e)=>()=>(t&&(e=t(t=0)),e);var m=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),B5=(t,e)=>{for(var r in e)bP(t,r,{get:e[r],enumerable:!0})},uxe=(t,e,r,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of oxe(e))!cxe.call(t,i)&&i!==r&&bP(t,i,{get:()=>e[i],enumerable:!(s=nxe(e,i))||s.enumerable});return t};var M=(t,e,r)=>(r=t!=null?ixe(axe(t)):{},uxe(e||!t||!t.__esModule?bP(r,"default",{value:t,enumerable:!0}):r,t));var _5=m(RA=>{"use strict";var uEt=require("net"),mxe=require("tls"),RP=require("http"),T5=require("https"),gxe=require("events"),dEt=require("assert"),yxe=require("util");RA.httpOverHttp=Exe;RA.httpsOverHttp=Cxe;RA.httpOverHttps=Ixe;RA.httpsOverHttps=bxe;function Exe(t){var e=new fl(t);return e.request=RP.request,e}function Cxe(t){var e=new fl(t);return e.request=RP.request,e.createSocket=Q5,e.defaultPort=443,e}function Ixe(t){var e=new fl(t);return e.request=T5.request,e}function bxe(t){var e=new fl(t);return e.request=T5.request,e.createSocket=Q5,e.defaultPort=443,e}function fl(t){var e=this;e.options=t||{},e.proxyOptions=e.options.proxy||{},e.maxSockets=e.options.maxSockets||RP.Agent.defaultMaxSockets,e.requests=[],e.sockets=[],e.on("free",function(s,i,n,o){for(var a=v5(i,n,o),c=0,l=e.requests.length;c<l;++c){var u=e.requests[c];if(u.host===a.host&&u.port===a.port){e.requests.splice(c,1),u.request.onSocket(s);return}}s.destroy(),e.removeSocket(s)})}yxe.inherits(fl,gxe.EventEmitter);fl.prototype.addRequest=function(e,r,s,i){var n=this,o=TP({request:e},n.options,v5(r,s,i));if(n.sockets.length>=this.maxSockets){n.requests.push(o);return}n.createSocket(o,function(a){a.on("free",c),a.on("close",l),a.on("agentRemove",l),e.onSocket(a);function c(){n.emit("free",a,o)}function l(u){n.removeSocket(a),a.removeListener("free",c),a.removeListener("close",l),a.removeListener("agentRemove",l)}})};fl.prototype.createSocket=function(e,r){var s=this,i={};s.sockets.push(i);var n=TP({},s.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:!1,headers:{host:e.host+":"+e.port}});e.localAddress&&(n.localAddress=e.localAddress),n.proxyAuth&&(n.headers=n.headers||{},n.headers["Proxy-Authorization"]="Basic "+new Buffer(n.proxyAuth).toString("base64")),Uu("making CONNECT request");var o=s.request(n);o.useChunkedEncodingByDefault=!1,o.once("response",a),o.once("upgrade",c),o.once("connect",l),o.once("error",u),o.end();function a(d){d.upgrade=!0}function c(d,h,f){process.nextTick(function(){l(d,h,f)})}function l(d,h,f){if(o.removeAllListeners(),h.removeAllListeners(),d.statusCode!==200){Uu("tunneling socket could not be established, statusCode=%d",d.statusCode),h.destroy();var A=new Error("tunneling socket could not be established, statusCode="+d.statusCode);A.code="ECONNRESET",e.request.emit("error",A),s.removeSocket(i);return}if(f.length>0){Uu("got illegal response body from proxy"),h.destroy();var A=new Error("got illegal response body from proxy");A.code="ECONNRESET",e.request.emit("error",A),s.removeSocket(i);return}return Uu("tunneling connection has established"),s.sockets[s.sockets.indexOf(i)]=h,r(h)}function u(d){o.removeAllListeners(),Uu(`tunneling socket could not be established, cause=%s
`,d.message,d.stack);var h=new Error("tunneling socket could not be established, cause="+d.message);h.code="ECONNRESET",e.request.emit("error",h),s.removeSocket(i)}};fl.prototype.removeSocket=function(e){var r=this.sockets.indexOf(e);if(r!==-1){this.sockets.splice(r,1);var s=this.requests.shift();s&&this.createSocket(s,function(i){s.request.onSocket(i)})}};function Q5(t,e){var r=this;fl.prototype.createSocket.call(r,t,function(s){var i=t.request.getHeader("host"),n=TP({},r.options,{socket:s,servername:i?i.replace(/:.*$/,""):t.host}),o=mxe.connect(0,n);r.sockets[r.sockets.indexOf(s)]=o,e(o)})}function v5(t,e,r){return typeof t=="string"?{host:t,port:e,localAddress:r}:t}function TP(t){for(var e=1,r=arguments.length;e<r;++e){var s=arguments[e];if(typeof s=="object")for(var i=Object.keys(s),n=0,o=i.length;n<o;++n){var a=i[n];s[a]!==void 0&&(t[a]=s[a])}}return t}var Uu;process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)?Uu=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)}:Uu=function(){};RA.debug=Uu});var QP=m((fEt,P5)=>{P5.exports=_5()});var Wt=m((AEt,D5)=>{D5.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 mt=m((pEt,nY)=>{"use strict";var O5=Symbol.for("undici.error.UND_ERR"),Kt=class extends Error{constructor(e){super(e),this.name="UndiciError",this.code="UND_ERR"}static[Symbol.hasInstance](e){return e&&e[O5]===!0}[O5]=!0},k5=Symbol.for("undici.error.UND_ERR_CONNECT_TIMEOUT"),vP=class extends Kt{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[k5]===!0}[k5]=!0},M5=Symbol.for("undici.error.UND_ERR_HEADERS_TIMEOUT"),_P=class extends Kt{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[M5]===!0}[M5]=!0},L5=Symbol.for("undici.error.UND_ERR_HEADERS_OVERFLOW"),PP=class extends Kt{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[L5]===!0}[L5]=!0},F5=Symbol.for("undici.error.UND_ERR_BODY_TIMEOUT"),DP=class extends Kt{constructor(e){super(e),this.name="BodyTimeoutError",this.message=e||"Body Timeout Error",this.code="UND_ERR_BODY_TIMEOUT"}static[Symbol.hasInstance](e){return e&&e[F5]===!0}[F5]=!0},U5=Symbol.for("undici.error.UND_ERR_RESPONSE_STATUS_CODE"),OP=class extends Kt{constructor(e,r,s,i){super(e),this.name="ResponseStatusCodeError",this.message=e||"Response Status Code Error",this.code="UND_ERR_RESPONSE_STATUS_CODE",this.body=i,this.st Line truncated
`)||t.includes("\r")||t.includes("\0"))===!1}function LRe(t,e){let{headersList:r}=e,s=(r.get("referrer-policy",!0)??"").split(","),i="";if(s.length>0)for(let n=s.length;n!==0;n--){let o=s[n-1].trim();if(bRe.has(o)){i=o;break}}i!==""&&(t.referrerPolicy=i)}function FRe(){return"allowed"}function URe(){return"success"}function qRe(){return"success"}function GRe(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}function HRe(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&&x1(t.origin)&&!x1(wy(t))&&(e=null);break;case"same-origin":Lb(t,wy(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}function LA(t,e){return t}function zRe(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:LA(t.domainLookupStartTime,r),domainLookupEndTime:LA(t.domainLookupEndTime,r),connectionStartTime:LA(t.connectionStartTime,r),connectionEndTime:LA(t.connectionEndTime,r),secureConnectionStartTime:LA(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}function VRe(t){return LA(NRe.now(),t)}function $Re(t){return{startTime:t.startTime??0,redirectStartTime:0,redirectEndTime:0,postRedirectStartTime:t.startTime??0,finalServiceWorkerStartTime:0,finalNetworkResponseStartTime:0,finalNetworkRequestStartTime:0,endTime:0,encodedBodySize:0,decodedBodySize:0,finalConnectionTimingInfo:null}}function C3(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function jRe(t){return{referrerPolicy:t.referrerPolicy}}function JRe(t){let e=t.referrerPolicy;gh(e);let r=null;if(t.referrer==="client"){let a=A3();if(!a||a.origin==="null")return"no-referrer";r=new URL(a)}else t.referrer instanceof URL&&(r=t.referrer);let s=S1(r),i=S1(r,!0);s.toString().length>4096&&(s=i);let n=Lb(t,s),o=by(s)&&!by(t.url);switch(e){case"origin":return i??S1(r,!0);case"unsafe-url":return s;case"same-origin":return n?i:"no-referrer";case"origin-when-cross-origin":return n?s:i;case"strict-origin-when-cross-origin":{let a=wy(t);return Lb(s,a)?s:by(s)&&!by(a)?"no-referrer":i}default:return o?"no-referrer":i}}function S1(t,e){return gh(t instanceof URL),t=new URL(t),t.protocol==="file:"||t.protocol==="about:"||t.protocol==="blank:"?"no-referrer":(t.username="",t.password="",t.hash="",e&&(t.pathname="",t.search=""),t)}function by(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 s=new URL(r);return!!(s.protocol==="https:"||s.protocol==="wss:"||/^127(?:\.[0-9]+){0,2}\.[0-9]+$|^\[(?:0*:)*?:?0*1\]$/.test(s.hostname)||s.hostname==="localhost"||s.hostname.includes("localhost.")||s.hostname.endsWith(".localhost"))}}function YRe(t,e){if(Mb===void 0)return!0;let r=I3(e);if(r==="no metadata"||r.length===0)return!0;let s=KRe(r),i=XRe(r,s);for(let n of i){let o=n.algo,a=n.hash,c=Mb.createHash(o).update(t).digest("base64");if(c[c.length-1]==="="&&(c[c.length-2]==="="?c=c.slice(0,-2):c=c.slice(0,-1)),ZRe(c,a))return!0}return!1}var WRe=/(?<algo>sha256|sha384|sha512)-((?<hash>[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;function I3(t){let e=[],r=!0;for(let s of t.split(" ")){r=!1;let i=WRe.exec(s);if(i===null||i.groups===void 0||i.groups.algo===void 0)continue;let n=i.groups.algo.toLowerCase();m3.includes(n)&&e.push(i.groups)}return r===!0?"no metadata":e}function KRe(t){let e=t[0].algo;if(e[3]==="5")return e;for(let r=1;r<t.length;++r){let s=t[r];if(s.algo[3]==="5"){e="sha512";break}else{if(e[3]==="3")continue;s.algo[3]==="3"&&(e="sha384")}}return e}function XRe(t,e){if(t.length===1)return t;let r=0;for(let s=0;s<t.length;++s)t[s].algo===e&&(t[r++]=t[s]);return t.length=r,t}function ZRe(t,e){if(t.length!==e.length)return!1;for(let r=0;r<t.length;++r)if(t[r]!==e[r]){if(t[r]==="+"&&e[r]==="-"||t[r]==="/"&&e[r]==="_")continue;return!1}return!0}function eTe(t){}function Lb(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}function tTe(){let t,e;return{promise:new Promise((s,i)=>{t=s,e=i}),resolve:t,reject:e}}function rTe(t){return t.controller.state==="aborted"}function sTe(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}function iTe(t){return QRe[t.toLowerCase()]??t}function nTe(t){let e=JSON.stringify(t);if(e===void 0)throw new TypeError("Value is not JSON serializable");return gh(typeof e=="string"),e}var oTe=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function b3(t,e,r=0,s=1){class i{#e;#t; Line truncated
`);function kTe(t){for(let e=0;e<t.length;++e)if((t.charCodeAt(e)&-128)!==0)return!1;return!0}function MTe(t){let e=t.length;if(e<27||e>70)return!1;for(let r=0;r<e;++r){let s=t.charCodeAt(r);if(!(s>=48&&s<=57||s>=65&&s<=90||s>=97&&s<=122||s===39||s===45||s===95))return!1}return!0}function LTe(t,e){Ub(e!=="failure"&&e.essence==="multipart/form-data");let r=e.parameters.get("boundary");if(r===void 0)return"failure";let s=Buffer.from(`--${r}`,"utf8"),i=[],n={position:0};for(;t[n.position]===13&&t[n.position+1]===10;)n.position+=2;let o=t.length;for(;t[o-1]===10&&t[o-2]===13;)o-=2;for(o!==t.length&&(t=t.subarray(0,o));;){if(t.subarray(n.position,n.position+s.length).equals(s))n.position+=s.length;else return"failure";if(n.position===t.length-2&&qb(t,DTe,n)||n.position===t.length-4&&qb(t,OTe,n))return i;if(t[n.position]!==13||t[n.position+1]!==10)return"failure";n.position+=2;let a=FTe(t,n);if(a==="failure")return"failure";let{name:c,filename:l,contentType:u,encoding:d}=a;n.position+=2;let h;{let A=t.indexOf(s.subarray(2),n.position);if(A===-1)return"failure";h=t.subarray(n.position,A-4),n.position+=h.length,d==="base64"&&(h=Buffer.from(h.toString(),"base64"))}if(t[n.position]!==13||t[n.position+1]!==10)return"failure";n.position+=2;let f;l!==null?(u??="text/plain",kTe(u)||(u=""),f=new _Te([h],l,{type:u})):f=NTe(Buffer.from(h)),Ub(D3(c)),Ub(typeof f=="string"&&D3(f)||TTe(f)),i.push(QTe(c,f,l))}}function FTe(t,e){let r=null,s=null,i=null,n=null;for(;;){if(t[e.position]===13&&t[e.position+1]===10)return r===null?"failure":{name:r,filename:s,contentType:i,encoding:n};let o=UA(a=>a!==10&&a!==13&&a!==58,t,e);if(o=P1(o,!0,!0,a=>a===9||a===32),!RTe.test(o.toString())||t[e.position]!==58)return"failure";switch(e.position++,UA(a=>a===32||a===9,t,e),xTe(o)){case"content-disposition":{if(r=s=null,!qb(t,PTe,e)||(e.position+=17,r=M3(t,e),r===null))return"failure";if(qb(t,k3,e)){let a=e.position+k3.length;if(t[a]===42&&(e.position+=1,a+=1),t[a]!==61||t[a+1]!==34||(e.position+=12,s=M3(t,e),s===null))return"failure"}break}case"content-type":{let a=UA(c=>c!==10&&c!==13,t,e);a=P1(a,!1,!0,c=>c===9||c===32),i=O3(a);break}case"content-transfer-encoding":{let a=UA(c=>c!==10&&c!==13,t,e);a=P1(a,!1,!0,c=>c===9||c===32),n=O3(a);break}default:UA(a=>a!==10&&a!==13,t,e)}if(t[e.position]!==13&&t[e.position+1]!==10)return"failure";e.position+=2}}function M3(t,e){Ub(t[e.position-1]===34);let r=UA(s=>s!==10&&s!==13&&s!==34,t,e);return t[e.position]!==34?null:(e.position++,r=new TextDecoder().decode(r).replace(/%0A/ig,`
`).replace(/%0D/ig,"\r").replace(/%22/g,'"'),r)}function UA(t,e,r){let s=r.position;for(;s<e.length&&t(e[s]);)++s;return e.subarray(r.position,r.position=s)}function P1(t,e,r,s){let i=0,n=t.length-1;if(e)for(;i<t.length&&s(t[i]);)i++;if(r)for(;n>0&&s(t[n]);)n--;return i===0&&n===t.length-1?t:t.subarray(i,n+1)}function qb(t,e,r){if(t.length<e.length)return!1;for(let s=0;s<e.length;s++)if(e[s]!==t[r.position+s])return!1;return!0}L3.exports={multipartFormDataParser:LTe,validateBoundary:MTe}});var HA=m((UEt,Y3)=>{"use strict";var xy=tt(),{ReadableStreamFrom:UTe,isBlobLike:U3,isReadableStreamLike:qTe,readableStreamClose:GTe,createDeferredPromise:HTe,fullyReadBody:zTe,extractMimeType:VTe,utf8DecodeBytes:H3}=An(),{FormData:q3}=Sy(),{kState:GA}=qu(),{webidl:$Te}=Rs(),{Blob:jTe}=require("node:buffer"),D1=require("node:assert"),{isErrored:z3,isDisturbed:JTe}=require("node:stream"),{isArrayBuffer:YTe}=require("node:util/types"),{serializeAMimeType:WTe}=Di(),{multipartFormDataParser:KTe}=F3(),O1;try{let t=require("node:crypto");O1=e=>t.randomInt(0,e)}catch{O1=t=>Math.floor(Math.random(t))}var Gb=new TextEncoder;function XTe(){}var V3=globalThis.FinalizationRegistry&&process.version.indexOf("v18")!==0,$3;V3&&($3=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!JTe(e)&&!z3(e)&&e.cancel("Response object has been garbage collected").catch(XTe)}));function j3(t,e=!1){let r=null;t instanceof ReadableStream?r=t:U3(t)?r=t.stream():r=new ReadableStream({async pull(c){let l=typeof i=="string"?Gb.encode(i):i;l.byteLength&&c.enqueue(l),queueMicrotask(()=>GTe(c))},start(){},type:"bytes"}),D1(qTe(r));let s=null,i=null,n=null,o=null;if(typeof t=="string")i=t,o="text/plain;charset=UTF-8";else if(t instanceof URLSearchParams)i=t.toString(),o="application/x-www-form-urlencoded;charset=UTF-8";else if(YTe(t))i=new Uint8Array(t.slice());else if(ArrayBuffer.isView(t))i=new Uint8Array(t.buffer.slice(t.byteOffset,t.byteOffset+t.byteLength));else if(xy.isFormDataLike(t)){let c=`----formdata-undici-0${`${O1(1e11)}`.padStart(11,"0")}`,l=`--${c}\r
Content-Disposition: form-data`;let u=E=>E.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22"),d=E=>E.replace(/\r?\n|\r/g,`\r
`),h=[],f=new Uint8Array([13,10]);n=0;let A=!1;for(let[E,y]of t)if(typeof y=="string"){let C=Gb.encode(l+`; name="${u(d(E))}"\r
var UPe=Object.create;var _D=Object.defineProperty;var FPe=Object.getOwnPropertyDescriptor;var qPe=Object.getOwnPropertyNames;var GPe=Object.getPrototypeOf,HPe=Object.prototype.hasOwnProperty;var zPe=(t,e)=>()=>(t&&(e=t(t=0)),e);var A=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),HW=(t,e)=>{for(var r in e)_D(t,r,{get:e[r],enumerable:!0})},VPe=(t,e,r,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of qPe(e))!HPe.call(t,i)&&i!==r&&_D(t,i,{get:()=>e[i],enumerable:!(s=FPe(e,i))||s.enumerable});return t};var O=(t,e,r)=>(r=t!=null?UPe(GPe(t)):{},VPe(e||!t||!t.__esModule?_D(r,"default",{value:t,enumerable:!0}):r,t));var YW=A(PA=>{"use strict";var jQt=require("net"),KPe=require("tls"),kD=require("http"),$W=require("https"),XPe=require("events"),JQt=require("assert"),ZPe=require("util");PA.httpOverHttp=eOe;PA.httpsOverHttp=tOe;PA.httpOverHttps=rOe;PA.httpsOverHttps=sOe;function eOe(t){var e=new Gl(t);return e.request=kD.request,e}function tOe(t){var e=new Gl(t);return e.request=kD.request,e.createSocket=jW,e.defaultPort=443,e}function rOe(t){var e=new Gl(t);return e.request=$W.request,e}function sOe(t){var e=new Gl(t);return e.request=$W.request,e.createSocket=jW,e.defaultPort=443,e}function Gl(t){var e=this;e.options=t||{},e.proxyOptions=e.options.proxy||{},e.maxSockets=e.options.maxSockets||kD.Agent.defaultMaxSockets,e.requests=[],e.sockets=[],e.on("free",function(s,i,n,o){for(var a=JW(i,n,o),c=0,l=e.requests.length;c<l;++c){var u=e.requests[c];if(u.host===a.host&&u.port===a.port){e.requests.splice(c,1),u.request.onSocket(s);return}}s.destroy(),e.removeSocket(s)})}ZPe.inherits(Gl,XPe.EventEmitter);Gl.prototype.addRequest=function(e,r,s,i){var n=this,o=MD({request:e},n.options,JW(r,s,i));if(n.sockets.length>=this.maxSockets){n.requests.push(o);return}n.createSocket(o,function(a){a.on("free",c),a.on("close",l),a.on("agentRemove",l),e.onSocket(a);function c(){n.emit("free",a,o)}function l(u){n.removeSocket(a),a.removeListener("free",c),a.removeListener("close",l),a.removeListener("agentRemove",l)}})};Gl.prototype.createSocket=function(e,r){var s=this,i={};s.sockets.push(i);var n=MD({},s.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:!1,headers:{host:e.host+":"+e.port}});e.localAddress&&(n.localAddress=e.localAddress),n.proxyAuth&&(n.headers=n.headers||{},n.headers["Proxy-Authorization"]="Basic "+new Buffer(n.proxyAuth).toString("base64")),Ih("making CONNECT request");var o=s.request(n);o.useChunkedEncodingByDefault=!1,o.once("response",a),o.once("upgrade",c),o.once("connect",l),o.once("error",u),o.end();function a(h){h.upgrade=!0}function c(h,d,f){process.nextTick(function(){l(h,d,f)})}function l(h,d,f){if(o.removeAllListeners(),d.removeAllListeners(),h.statusCode!==200){Ih("tunneling socket could not be established, statusCode=%d",h.statusCode),d.destroy();var p=new Error("tunneling socket could not be established, statusCode="+h.statusCode);p.code="ECONNRESET",e.request.emit("error",p),s.removeSocket(i);return}if(f.length>0){Ih("got illegal response body from proxy"),d.destroy();var p=new Error("got illegal response body from proxy");p.code="ECONNRESET",e.request.emit("error",p),s.removeSocket(i);return}return Ih("tunneling connection has established"),s.sockets[s.sockets.indexOf(i)]=d,r(d)}function u(h){o.removeAllListeners(),Ih(`tunneling socket could not be established, cause=%s
`,h.message,h.stack);var d=new Error("tunneling socket could not be established, cause="+h.message);d.code="ECONNRESET",e.request.emit("error",d),s.removeSocket(i)}};Gl.prototype.removeSocket=function(e){var r=this.sockets.indexOf(e);if(r!==-1){this.sockets.splice(r,1);var s=this.requests.shift();s&&this.createSocket(s,function(i){s.request.onSocket(i)})}};function jW(t,e){var r=this;Gl.prototype.createSocket.call(r,t,function(s){var i=t.request.getHeader("host"),n=MD({},r.options,{socket:s,servername:i?i.replace(/:.*$/,""):t.host}),o=KPe.connect(0,n);r.sockets[r.sockets.indexOf(s)]=o,e(o)})}function JW(t,e,r){return typeof t=="string"?{host:t,port:e,localAddress:r}:t}function MD(t){for(var e=1,r=arguments.length;e<r;++e){var s=arguments[e];if(typeof s=="object")for(var i=Object.keys(s),n=0,o=i.length;n<o;++n){var a=i[n];s[a]!==void 0&&(t[a]=s[a])}}return t}var Ih;process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)?Ih=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)}:Ih=function(){};PA.debug=Ih});var af=A((WQt,WW)=>{WW.exports=YW()});var tr=A((KQt,KW)=>{KW.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 yt=A((XQt,bK)=>{"use strict";var XW=Symbol.for("undici.error.UND_ERR"),rr=class extends Error{constructor(e){super(e),this.name="UndiciError",this.code="UND_ERR"}static[Symbol.hasInstance](e){return e&&e[XW]===!0}[XW]=!0},ZW=Symbol.for("undici.error.UND_ERR_CONNECT_TIMEOUT"),LD=class extends rr{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[ZW]===!0}[ZW]=!0},eK=Symbol.for("undici.error.UND_ERR_HEADERS_TIMEOUT"),UD=class extends rr{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[eK]===!0}[eK]=!0},tK=Symbol.for("undici.error.UND_ERR_HEADERS_OVERFLOW"),FD=class extends rr{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[tK]===!0}[tK]=!0},rK=Symbol.for("undici.error.UND_ERR_BODY_TIMEOUT"),qD=class extends rr{constructor(e){super(e),this.name="BodyTimeoutError",this.message=e||"Body Timeout Error",this.code="UND_ERR_BODY_TIMEOUT"}static[Symbol.hasInstance](e){return e&&e[rK]===!0}[rK]=!0},sK=Symbol.for("undici.error.UND_ERR_RESPONSE_STATUS_CODE"),GD=class extends rr{constructor(e,r,s,i){super(e),this.name="ResponseStatusCodeError",this.message=e||"Response Status Code Error",this.code="UND_ERR_RESPONSE_STATUS_CODE",this.body=i,this.st Line truncated
`)||t.includes("\r")||t.includes("\0"))===!1}function Eke(t,e){let{headersList:r}=e,s=(r.get("referrer-policy",!0)??"").split(","),i="";if(s.length>0)for(let n=s.length;n!==0;n--){let o=s[n-1].trim();if(ske.has(o)){i=o;break}}i!==""&&(t.referrerPolicy=i)}function Cke(){return"allowed"}function Ike(){return"success"}function bke(){return"success"}function wke(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}function Bke(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&&Pk(t.origin)&&!Pk(KE(t))&&(e=null);break;case"same-origin":FB(t,KE(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}function HA(t,e){return t}function Ske(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:HA(t.domainLookupStartTime,r),domainLookupEndTime:HA(t.domainLookupEndTime,r),connectionStartTime:HA(t.connectionStartTime,r),connectionEndTime:HA(t.connectionEndTime,r),secureConnectionStartTime:HA(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}function xke(t){return HA(cke.now(),t)}function Nke(t){return{startTime:t.startTime??0,redirectStartTime:0,redirectEndTime:0,postRedirectStartTime:t.startTime??0,finalServiceWorkerStartTime:0,finalNetworkResponseStartTime:0,finalNetworkRequestStartTime:0,endTime:0,encodedBodySize:0,decodedBodySize:0,finalConnectionTimingInfo:null}}function MX(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function Rke(t){return{referrerPolicy:t.referrerPolicy}}function vke(t){let e=t.referrerPolicy;hf(e);let r=null;if(t.referrer==="client"){let a=_X();if(!a||a.origin==="null")return"no-referrer";r=new URL(a)}else t.referrer instanceof URL&&(r=t.referrer);let s=Qk(r),i=Qk(r,!0);s.toString().length>4096&&(s=i);let n=FB(t,s),o=WE(s)&&!WE(t.url);switch(e){case"origin":return i??Qk(r,!0);case"unsafe-url":return s;case"same-origin":return n?i:"no-referrer";case"origin-when-cross-origin":return n?s:i;case"strict-origin-when-cross-origin":{let a=KE(t);return FB(s,a)?s:WE(s)&&!WE(a)?"no-referrer":i}default:return o?"no-referrer":i}}function Qk(t,e){return hf(t instanceof URL),t=new URL(t),t.protocol==="file:"||t.protocol==="about:"||t.protocol==="blank:"?"no-referrer":(t.username="",t.password="",t.hash="",e&&(t.pathname="",t.search=""),t)}function WE(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 s=new URL(r);return!!(s.protocol==="https:"||s.protocol==="wss:"||/^127(?:\.[0-9]+){0,2}\.[0-9]+$|^\[(?:0*:)*?:?0*1\]$/.test(s.hostname)||s.hostname==="localhost"||s.hostname.includes("localhost.")||s.hostname.endsWith(".localhost"))}}function Tke(t,e){if(UB===void 0)return!0;let r=LX(e);if(r==="no metadata"||r.length===0)return!0;let s=Qke(r),i=Pke(r,s);for(let n of i){let o=n.algo,a=n.hash,c=UB.createHash(o).update(t).digest("base64");if(c[c.length-1]==="="&&(c[c.length-2]==="="?c=c.slice(0,-2):c=c.slice(0,-1)),Oke(c,a))return!0}return!1}var _ke=/(?<algo>sha256|sha384|sha512)-((?<hash>[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;function LX(t){let e=[],r=!0;for(let s of t.split(" ")){r=!1;let i=_ke.exec(s);if(i===null||i.groups===void 0||i.groups.algo===void 0)continue;let n=i.groups.algo.toLowerCase();PX.includes(n)&&e.push(i.groups)}return r===!0?"no metadata":e}function Qke(t){let e=t[0].algo;if(e[3]==="5")return e;for(let r=1;r<t.length;++r){let s=t[r];if(s.algo[3]==="5"){e="sha512";break}else{if(e[3]==="3")continue;s.algo[3]==="3"&&(e="sha384")}}return e}function Pke(t,e){if(t.length===1)return t;let r=0;for(let s=0;s<t.length;++s)t[s].algo===e&&(t[r++]=t[s]);return t.length=r,t}function Oke(t,e){if(t.length!==e.length)return!1;for(let r=0;r<t.length;++r)if(t[r]!==e[r]){if(t[r]==="+"&&e[r]==="-"||t[r]==="/"&&e[r]==="_")continue;return!1}return!0}function Dke(t){}function FB(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}function kke(){let t,e;return{promise:new Promise((s,i)=>{t=s,e=i}),resolve:t,reject:e}}function Mke(t){return t.controller.state==="aborted"}function Lke(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}function Uke(t){return hke[t.toLowerCase()]??t}function Fke(t){let e=JSON.stringify(t);if(e===void 0)throw new TypeError("Value is not JSON serializable");return hf(typeof e=="string"),e}var qke=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function UX(t,e,r=0,s=1){class i{#e;#t; Line truncated
`);function gMe(t){for(let e=0;e<t.length;++e)if((t.charCodeAt(e)&-128)!==0)return!1;return!0}function yMe(t){let e=t.length;if(e<27||e>70)return!1;for(let r=0;r<e;++r){let s=t.charCodeAt(r);if(!(s>=48&&s<=57||s>=65&&s<=90||s>=97&&s<=122||s===39||s===45||s===95))return!1}return!0}function EMe(t,e){GB(e!=="failure"&&e.essence==="multipart/form-data");let r=e.parameters.get("boundary");if(r===void 0)return"failure";let s=Buffer.from(`--${r}`,"utf8"),i=[],n={position:0};for(;t[n.position]===13&&t[n.position+1]===10;)n.position+=2;let o=t.length;for(;t[o-1]===10&&t[o-2]===13;)o-=2;for(o!==t.length&&(t=t.subarray(0,o));;){if(t.subarray(n.position,n.position+s.length).equals(s))n.position+=s.length;else return"failure";if(n.position===t.length-2&&HB(t,AMe,n)||n.position===t.length-4&&HB(t,mMe,n))return i;if(t[n.position]!==13||t[n.position+1]!==10)return"failure";n.position+=2;let a=CMe(t,n);if(a==="failure")return"failure";let{name:c,filename:l,contentType:u,encoding:h}=a;n.position+=2;let d;{let p=t.indexOf(s.subarray(2),n.position);if(p===-1)return"failure";d=t.subarray(n.position,p-4),n.position+=d.length,h==="base64"&&(d=Buffer.from(d.toString(),"base64"))}if(t[n.position]!==13||t[n.position+1]!==10)return"failure";n.position+=2;let f;l!==null?(u??="text/plain",gMe(u)||(u=""),f=new fMe([d],l,{type:u})):f=cMe(Buffer.from(d)),GB(KX(c)),GB(typeof f=="string"&&KX(f)||uMe(f)),i.push(hMe(c,f,l))}}function CMe(t,e){let r=null,s=null,i=null,n=null;for(;;){if(t[e.position]===13&&t[e.position+1]===10)return r===null?"failure":{name:r,filename:s,contentType:i,encoding:n};let o=VA(a=>a!==10&&a!==13&&a!==58,t,e);if(o=Fk(o,!0,!0,a=>a===9||a===32),!lMe.test(o.toString())||t[e.position]!==58)return"failure";switch(e.position++,VA(a=>a===32||a===9,t,e),aMe(o)){case"content-disposition":{if(r=s=null,!HB(t,pMe,e)||(e.position+=17,r=eZ(t,e),r===null))return"failure";if(HB(t,ZX,e)){let a=e.position+ZX.length;if(t[a]===42&&(e.position+=1,a+=1),t[a]!==61||t[a+1]!==34||(e.position+=12,s=eZ(t,e),s===null))return"failure"}break}case"content-type":{let a=VA(c=>c!==10&&c!==13,t,e);a=Fk(a,!1,!0,c=>c===9||c===32),i=XX(a);break}case"content-transfer-encoding":{let a=VA(c=>c!==10&&c!==13,t,e);a=Fk(a,!1,!0,c=>c===9||c===32),n=XX(a);break}default:VA(a=>a!==10&&a!==13,t,e)}if(t[e.position]!==13&&t[e.position+1]!==10)return"failure";e.position+=2}}function eZ(t,e){GB(t[e.position-1]===34);let r=VA(s=>s!==10&&s!==13&&s!==34,t,e);return t[e.position]!==34?null:(e.position++,r=new TextDecoder().decode(r).replace(/%0A/ig,`
`).replace(/%0D/ig,"\r").replace(/%22/g,'"'),r)}function VA(t,e,r){let s=r.position;for(;s<e.length&&t(e[s]);)++s;return e.subarray(r.position,r.position=s)}function Fk(t,e,r,s){let i=0,n=t.length-1;if(e)for(;i<t.length&&s(t[i]);)i++;if(r)for(;n>0&&s(t[n]);)n--;return i===0&&n===t.length-1?t:t.subarray(i,n+1)}function HB(t,e,r){if(t.length<e.length)return!1;for(let s=0;s<e.length;s++)if(e[s]!==t[r.position+s])return!1;return!0}tZ.exports={multipartFormDataParser:EMe,validateBoundary:yMe}});var JA=A((w1t,dZ)=>{"use strict";var eC=st(),{ReadableStreamFrom:IMe,isBlobLike:sZ,isReadableStreamLike:bMe,readableStreamClose:wMe,createDeferredPromise:BMe,fullyReadBody:SMe,extractMimeType:xMe,utf8DecodeBytes:oZ}=_n(),{FormData:iZ}=ZE(),{kState:jA}=bh(),{webidl:NMe}=Ms(),{Blob:RMe}=require("node:buffer"),qk=require("node:assert"),{isErrored:aZ,isDisturbed:vMe}=require("node:stream"),{isArrayBuffer:TMe}=require("node:util/types"),{serializeAMimeType:_Me}=Ki(),{multipartFormDataParser:QMe}=rZ(),Gk;try{let t=require("node:crypto");Gk=e=>t.randomInt(0,e)}catch{Gk=t=>Math.floor(Math.random(t))}var zB=new TextEncoder;function PMe(){}var cZ=globalThis.FinalizationRegistry&&process.version.indexOf("v18")!==0,lZ;cZ&&(lZ=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!vMe(e)&&!aZ(e)&&e.cancel("Response object has been garbage collected").catch(PMe)}));function uZ(t,e=!1){let r=null;t instanceof ReadableStream?r=t:sZ(t)?r=t.stream():r=new ReadableStream({async pull(c){let l=typeof i=="string"?zB.encode(i):i;l.byteLength&&c.enqueue(l),queueMicrotask(()=>wMe(c))},start(){},type:"bytes"}),qk(bMe(r));let s=null,i=null,n=null,o=null;if(typeof t=="string")i=t,o="text/plain;charset=UTF-8";else if(t instanceof URLSearchParams)i=t.toString(),o="application/x-www-form-urlencoded;charset=UTF-8";else if(TMe(t))i=new Uint8Array(t.slice());else if(ArrayBuffer.isView(t))i=new Uint8Array(t.buffer.slice(t.byteOffset,t.byteOffset+t.byteLength));else if(eC.isFormDataLike(t)){let c=`----formdata-undici-0${`${Gk(1e11)}`.padStart(11,"0")}`,l=`--${c}\r
Content-Disposition: form-data`;let u=E=>E.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22"),h=E=>E.replace(/\r?\n|\r/g,`\r
`),d=[],f=new Uint8Array([13,10]);n=0;let p=!1;for(let[E,y]of t)if(typeof y=="string"){let C=zB.encode(l+`; name="${u(h(E))}"\r
\r
${d(y)}\r
`);h.push(C),n+=C.byteLength}else{let C=Gb.encode(`${l}; name="${u(d(E))}"`+(y.name?`; filename="${u(y.name)}"`:"")+`\r
${h(y)}\r
`);d.push(C),n+=C.byteLength}else{let C=zB.encode(`${l}; name="${u(h(E))}"`+(y.name?`; filename="${u(y.name)}"`:"")+`\r
Content-Type: ${y.type||"application/octet-stream"}\r
\r
`);h.push(C,y,f),typeof y.size=="number"?n+=C.byteLength+y.size+f.byteLength:A=!0}let p=Gb.encode(`--${c}--\r
`);h.push(p),n+=p.byteLength,A&&(n=null),i=t,s=async function*(){for(let E of h)E.stream?yield*E.stream():yield E},o=`multipart/form-data; boundary=${c}`}else if(U3(t))i=t,n=t.size,t.type&&(o=t.type);else if(typeof t[Symbol.asyncIterator]=="function"){if(e)throw new TypeError("keepalive");if(xy.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=t instanceof ReadableStream?t:UTe(t)}if((typeof i=="string"||xy.isBuffer(i))&&(n=Buffer.byteLength(i)),s!=null){let c;r=new ReadableStream({async start(){c=s(t)[Symbol.asyncIterator]()},async pull(l){let{value:u,done:d}=await c.next();if(d)queueMicrotask(()=>{l.close(),l.byobRequest?.respond(0)});else if(!z3(r)){let h=new Uint8Array(u);h.byteLength&&l.enqueue(h)}return l.desiredSize>0},async cancel(l){await c.return()},type:"bytes"})}return[{stream:r,source:i,length:n},o]}function ZTe(t,e=!1){return t instanceof ReadableStream&&(D1(!xy.isDisturbed(t),"The body has already been consumed."),D1(!t.locked,"The stream is locked.")),j3(t,e)}function eQe(t,e){let[r,s]=e.stream.tee();return e.stream=r,{stream:s,length:e.length,source:e.source}}function tQe(t){if(t.aborted)throw new DOMException("The operation was aborted.","AbortError")}function rQe(t){return{blob(){return qA(this,r=>{let s=G3(this);return s===null?s="":s&&(s=WTe(s)),new jTe([r],{type:s})},t)},arrayBuffer(){return qA(this,r=>new Uint8Array(r).buffer,t)},text(){return qA(this,H3,t)},json(){return qA(this,iQe,t)},formData(){return qA(this,r=>{let s=G3(this);if(s!==null)switch(s.essence){case"multipart/form-data":{let i=KTe(r,s);if(i==="failure")throw new TypeError("Failed to parse body as FormData.");let n=new q3;return n[GA]=i,n}case"application/x-www-form-urlencoded":{let i=new URLSearchParams(r.toString()),n=new q3;for(let[o,a]of i)n.append(o,a);return n}}throw new TypeError('Content-Type was not one of "multipart/form-data" or "application/x-www-form-urlencoded".')},t)},bytes(){return qA(this,r=>new Uint8Array(r),t)}}}function sQe(t){Object.assign(t.prototype,rQe(t))}async function qA(t,e,r){if($Te.brandCheck(t,r),J3(t))throw new TypeError("Body is unusable: Body has already been read");tQe(t[GA]);let s=HTe(),i=o=>s.reject(o),n=o=>{try{s.resolve(e(o))}catch(a){i(a)}};return t[GA].body==null?(n(Buffer.allocUnsafe(0)),s.promise):(await zTe(t[GA].body,n,i),s.promise)}function J3(t){let e=t[GA].body;return e!=null&&(e.stream.locked||xy.isDisturbed(e.stream))}function iQe(t){return JSON.parse(H3(t))}function G3(t){let e=t[GA].headersList,r=VTe(e);return r==="failure"?null:r}Y3.exports={extractBody:j3,safelyExtractBody:ZTe,cloneBody:eQe,mixinBody:sQe,streamRegistry:$3,hasFinalizationRegistry:V3,bodyUnusable:J3}});var l6=m((qEt,c6)=>{"use strict";var xe=require("node:assert"),Le=tt(),{channels:W3}=QA(),k1=g1(),{RequestContentLengthMismatchError:yh,ResponseContentLengthMismatchError:K3,RequestAbortedError:n6,HeadersTimeoutError:nQe,HeadersOverflowError:oQe,SocketError:Yb,InformationalError:zA,BodyTimeoutError:aQe,HTTPParserError:cQe,ResponseExceededMaxSizeError:lQe}=mt(),{kUrl:o6,kReset:Oi,kClient:$b,kParser:dr,kBlocking:Ty,kRunning:Ps,kPending:uQe,kSize:X3,kWriting:Hu,kQueue:ea,kNoRef:Ny,kKeepAliveDefaultTimeout:dQe,kHostHeader:hQe,kPendingIdx:fQe,kRunningIdx:io,kError:ni,kPipelining:jb,kSocket:VA,kKeepAliveTimeoutValue:Wb,kMaxHeadersSize:M1,kKeepAliveMaxTimeout:AQe,kKeepAliveTimeoutThreshold:pQe,kHeadersTimeout:mQe,kBodyTimeout:gQe,kStrictContentLength:U1,kMaxRequests:Z3,kCounter:yQe,kMaxResponseSize:EQe,kOnError:e6,kResume:Gu,kHTTPContext:a6}=Wt(),pn=$Y(),t6=Buffer.alloc(0),Hb=Buffer[Symbol.species],zb=Le.addListener,CQe=Le.removeAllListeners,L1;async function IQe(){let t=process.env.JEST_WORKER_ID?C1():void 0,e;try{e=await WebAssembly.compile(YY())}catch{e=await WebAssembly.compile(t||C1())}return await WebAssembly.instantiate(e,{env:{wasm_on_url:(r,s,i)=>0,wasm_on_status:(r,s,i)=>{xe(ur.ptr===r);let n=s-La+Ma.byteOffset;return ur.onStatus(new Hb(Ma.buffer,n,i))||0},wasm_on_message_begin:r=>(xe(ur.ptr===r),ur.onMessageBegin()||0),wasm_on_header_field:(r,s,i)=>{xe(ur.ptr===r);let n=s-La+Ma.byteOffset;return ur.onHeaderField(new Hb(Ma.buffer,n,i))||0},wasm_on_header_value:(r,s,i)=>{xe(ur.ptr===r);let n=s-La+Ma.byteOffset;return ur.onHeaderValue(new Hb(Ma.buffer,n,i))||0},wasm_on_headers_complete:(r,s,i,n)=>(xe(ur.ptr===r),ur.onHeadersComplete(s,!!i,!!n)||0),wasm_on_body:(r,s,i)=>{xe(ur.ptr===r);let n=s-La+Ma.byteOffset;return ur.onBody(new Hb(Ma.buffer,n,i))||0},wasm_on_message_complete:r=>(xe(ur.ptr===r),ur.onMessageComplete()||0)}})}var F1=null,q1=IQe();q1.catch();var ur=null,Ma=null,Vb=0,La=null,bQe=0,Ry=1,$A=2|Ry,Jb=4|Ry,G1=8|bQe,H1=class{constructor(e,r,{exports:s}){xe(Number.isFinite(e[M1])&&e[M1]>0),this.llhttp=s,this.ptr=this.llhttp.llhttp_alloc(pn.TYPE.RESPONSE),this.client=e,this.socket=r,this.timeout=null,this.timeoutValue=null,this.timeoutType=null,this.statusCode=null,this.statusText="",this.upgrade=!1,this.headers=[],this.headersSize=0,this.hea Line truncated
`;if(typeof i=="string"?p+=`host: ${i}\r
`:p+=t[hQe],n?p+=`connection: upgrade\r
`);d.push(C,y,f),typeof y.size=="number"?n+=C.byteLength+y.size+f.byteLength:p=!0}let m=zB.encode(`--${c}--\r
`);d.push(m),n+=m.byteLength,p&&(n=null),i=t,s=async function*(){for(let E of d)E.stream?yield*E.stream():yield E},o=`multipart/form-data; boundary=${c}`}else if(sZ(t))i=t,n=t.size,t.type&&(o=t.type);else if(typeof t[Symbol.asyncIterator]=="function"){if(e)throw new TypeError("keepalive");if(eC.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=t instanceof ReadableStream?t:IMe(t)}if((typeof i=="string"||eC.isBuffer(i))&&(n=Buffer.byteLength(i)),s!=null){let c;r=new ReadableStream({async start(){c=s(t)[Symbol.asyncIterator]()},async pull(l){let{value:u,done:h}=await c.next();if(h)queueMicrotask(()=>{l.close(),l.byobRequest?.respond(0)});else if(!aZ(r)){let d=new Uint8Array(u);d.byteLength&&l.enqueue(d)}return l.desiredSize>0},async cancel(l){await c.return()},type:"bytes"})}return[{stream:r,source:i,length:n},o]}function OMe(t,e=!1){return t instanceof ReadableStream&&(qk(!eC.isDisturbed(t),"The body has already been consumed."),qk(!t.locked,"The stream is locked.")),uZ(t,e)}function DMe(t,e){let[r,s]=e.stream.tee();return e.stream=r,{stream:s,length:e.length,source:e.source}}function kMe(t){if(t.aborted)throw new DOMException("The operation was aborted.","AbortError")}function MMe(t){return{blob(){return $A(this,r=>{let s=nZ(this);return s===null?s="":s&&(s=_Me(s)),new RMe([r],{type:s})},t)},arrayBuffer(){return $A(this,r=>new Uint8Array(r).buffer,t)},text(){return $A(this,oZ,t)},json(){return $A(this,UMe,t)},formData(){return $A(this,r=>{let s=nZ(this);if(s!==null)switch(s.essence){case"multipart/form-data":{let i=QMe(r,s);if(i==="failure")throw new TypeError("Failed to parse body as FormData.");let n=new iZ;return n[jA]=i,n}case"application/x-www-form-urlencoded":{let i=new URLSearchParams(r.toString()),n=new iZ;for(let[o,a]of i)n.append(o,a);return n}}throw new TypeError('Content-Type was not one of "multipart/form-data" or "application/x-www-form-urlencoded".')},t)},bytes(){return $A(this,r=>new Uint8Array(r),t)}}}function LMe(t){Object.assign(t.prototype,MMe(t))}async function $A(t,e,r){if(NMe.brandCheck(t,r),hZ(t))throw new TypeError("Body is unusable: Body has already been read");kMe(t[jA]);let s=BMe(),i=o=>s.reject(o),n=o=>{try{s.resolve(e(o))}catch(a){i(a)}};return t[jA].body==null?(n(Buffer.allocUnsafe(0)),s.promise):(await SMe(t[jA].body,n,i),s.promise)}function hZ(t){let e=t[jA].body;return e!=null&&(e.stream.locked||eC.isDisturbed(e.stream))}function UMe(t){return JSON.parse(oZ(t))}function nZ(t){let e=t[jA].headersList,r=xMe(e);return r==="failure"?null:r}dZ.exports={extractBody:uZ,safelyExtractBody:OMe,cloneBody:DMe,mixinBody:LMe,streamRegistry:lZ,hasFinalizationRegistry:cZ,bodyUnusable:hZ}});var xZ=A((B1t,SZ)=>{"use strict";var Re=require("node:assert"),qe=st(),{channels:fZ}=DA(),Hk=Bk(),{RequestContentLengthMismatchError:df,ResponseContentLengthMismatchError:pZ,RequestAbortedError:bZ,HeadersTimeoutError:FMe,HeadersOverflowError:qMe,SocketError:KB,InformationalError:YA,BodyTimeoutError:GMe,HTTPParserError:HMe,ResponseExceededMaxSizeError:zMe}=yt(),{kUrl:wZ,kReset:Xi,kClient:JB,kParser:pr,kBlocking:sC,kRunning:Vs,kPending:VMe,kSize:AZ,kWriting:Bh,kQueue:Ca,kNoRef:tC,kKeepAliveDefaultTimeout:$Me,kHostHeader:jMe,kPendingIdx:JMe,kRunningIdx:bo,kError:gi,kPipelining:YB,kSocket:WA,kKeepAliveTimeoutValue:XB,kMaxHeadersSize:zk,kKeepAliveMaxTimeout:YMe,kKeepAliveTimeoutThreshold:WMe,kHeadersTimeout:KMe,kBodyTimeout:XMe,kStrictContentLength:jk,kMaxRequests:mZ,kCounter:ZMe,kMaxResponseSize:eLe,kOnError:gZ,kResume:wh,kHTTPContext:BZ}=tr(),Qn=lX(),yZ=Buffer.alloc(0),VB=Buffer[Symbol.species],$B=qe.addListener,tLe=qe.removeAllListeners,Vk;async function rLe(){let t=process.env.JEST_WORKER_ID?Nk():void 0,e;try{e=await WebAssembly.compile(dX())}catch{e=await WebAssembly.compile(t||Nk())}return await WebAssembly.instantiate(e,{env:{wasm_on_url:(r,s,i)=>0,wasm_on_status:(r,s,i)=>{Re(fr.ptr===r);let n=s-ac+oc.byteOffset;return fr.onStatus(new VB(oc.buffer,n,i))||0},wasm_on_message_begin:r=>(Re(fr.ptr===r),fr.onMessageBegin()||0),wasm_on_header_field:(r,s,i)=>{Re(fr.ptr===r);let n=s-ac+oc.byteOffset;return fr.onHeaderField(new VB(oc.buffer,n,i))||0},wasm_on_header_value:(r,s,i)=>{Re(fr.ptr===r);let n=s-ac+oc.byteOffset;return fr.onHeaderValue(new VB(oc.buffer,n,i))||0},wasm_on_headers_complete:(r,s,i,n)=>(Re(fr.ptr===r),fr.onHeadersComplete(s,!!i,!!n)||0),wasm_on_body:(r,s,i)=>{Re(fr.ptr===r);let n=s-ac+oc.byteOffset;return fr.onBody(new VB(oc.buffer,n,i))||0},wasm_on_message_complete:r=>(Re(fr.ptr===r),fr.onMessageComplete()||0)}})}var $k=null,Jk=rLe();Jk.catch();var fr=null,oc=null,jB=0,ac=null,sLe=0,rC=1,KA=2|rC,WB=4|rC,Yk=8|sLe,Wk=class{constructor(e,r,{exports:s}){Re(Number.isFinite(e[zk])&&e[zk]>0),this.llhttp=s,this.ptr=this.llhttp.llhttp_alloc(Qn.TYPE.RESPONSE),this.client=e,this.socket=r,this.timeout=null,this.timeoutValue=null,this.timeoutType=null,this.statusCode=null,this.statusText="",this.upgrade=!1,this.headers=[],this.headersSize=0,this.hea Line truncated
`;if(typeof i=="string"?m+=`host: ${i}\r
`:m+=t[jMe],n?m+=`connection: upgrade\r
upgrade: ${n}\r
`:t[jb]&&!f[Oi]?p+=`connection: keep-alive\r
`:p+=`connection: close\r
`,Array.isArray(l))for(let E=0;E<l.length;E+=2){let y=l[E+0],C=l[E+1];if(Array.isArray(C))for(let w=0;w<C.length;w++)p+=`${y}: ${C[w]}\r
`;else p+=`${y}: ${C}\r
`}return W3.sendHeaders.hasSubscribers&&W3.sendHeaders.publish({request:e,headers:p,socket:f}),!c||h===0?s6(A,null,t,e,f,u,p,d):Le.isBuffer(c)?s6(A,c,t,e,f,u,p,d):Le.isBlobLike(c)?typeof c.stream=="function"?i6(A,c.stream(),t,e,f,u,p,d):RQe(A,c,t,e,f,u,p,d):Le.isStream(c)?NQe(A,c,t,e,f,u,p,d):Le.isIterable(c)?i6(A,c,t,e,f,u,p,d):xe(!1),!0}function NQe(t,e,r,s,i,n,o,a){xe(n!==0||r[Ps]===0,"stream body cannot be pipelined");let c=!1,l=new Kb({abort:t,socket:i,request:s,contentLength:n,client:r,expectsPayload:a,header:o}),u=function(A){if(!c)try{!l.write(A)&&this.pause&&this.pause()}catch(p){Le.destroy(this,p)}},d=function(){c||e.resume&&e.resume()},h=function(){if(queueMicrotask(()=>{e.removeListener("error",f)}),!c){let A=new n6;queueMicrotask(()=>f(A))}},f=function(A){if(!c){if(c=!0,xe(i.destroyed||i[Hu]&&r[Ps]<=1),i.off("drain",d).off("error",f),e.removeListener("data",u).removeListener("end",f).removeListener("close",h),!A)try{l.end()}catch(p){A=p}l.destroy(A),A&&(A.code!=="UND_ERR_INFO"||A.message!=="reset")?Le.destroy(e,A):Le.destroy(e)}};e.on("data",u).on("end",f).on("error",f).on("close",h),e.resume&&e.resume(),i.on("drain",d).on("error",f),e.errorEmitted??e.errored?setImmediate(()=>f(e.errored)):(e.endEmitted??e.readableEnded)&&setImmediate(()=>f(null)),(e.closeEmitted??e.closed)&&setImmediate(h)}function s6(t,e,r,s,i,n,o,a){try{e?Le.isBuffer(e)&&(xe(n===e.byteLength,"buffer body must have content length"),i.cork(),i.write(`${o}content-length: ${n}\r
`:t[YB]&&!f[Xi]?m+=`connection: keep-alive\r
`:m+=`connection: close\r
`,Array.isArray(l))for(let E=0;E<l.length;E+=2){let y=l[E+0],C=l[E+1];if(Array.isArray(C))for(let w=0;w<C.length;w++)m+=`${y}: ${C[w]}\r
`;else m+=`${y}: ${C}\r
`}return fZ.sendHeaders.hasSubscribers&&fZ.sendHeaders.publish({request:e,headers:m,socket:f}),!c||d===0?CZ(p,null,t,e,f,u,m,h):qe.isBuffer(c)?CZ(p,c,t,e,f,u,m,h):qe.isBlobLike(c)?typeof c.stream=="function"?IZ(p,c.stream(),t,e,f,u,m,h):lLe(p,c,t,e,f,u,m,h):qe.isStream(c)?cLe(p,c,t,e,f,u,m,h):qe.isIterable(c)?IZ(p,c,t,e,f,u,m,h):Re(!1),!0}function cLe(t,e,r,s,i,n,o,a){Re(n!==0||r[Vs]===0,"stream body cannot be pipelined");let c=!1,l=new ZB({abort:t,socket:i,request:s,contentLength:n,client:r,expectsPayload:a,header:o}),u=function(p){if(!c)try{!l.write(p)&&this.pause&&this.pause()}catch(m){qe.destroy(this,m)}},h=function(){c||e.resume&&e.resume()},d=function(){if(queueMicrotask(()=>{e.removeListener("error",f)}),!c){let p=new bZ;queueMicrotask(()=>f(p))}},f=function(p){if(!c){if(c=!0,Re(i.destroyed||i[Bh]&&r[Vs]<=1),i.off("drain",h).off("error",f),e.removeListener("data",u).removeListener("end",f).removeListener("close",d),!p)try{l.end()}catch(m){p=m}l.destroy(p),p&&(p.code!=="UND_ERR_INFO"||p.message!=="reset")?qe.destroy(e,p):qe.destroy(e)}};e.on("data",u).on("end",f).on("error",f).on("close",d),e.resume&&e.resume(),i.on("drain",h).on("error",f),e.errorEmitted??e.errored?setImmediate(()=>f(e.errored)):(e.endEmitted??e.readableEnded)&&setImmediate(()=>f(null)),(e.closeEmitted??e.closed)&&setImmediate(d)}function CZ(t,e,r,s,i,n,o,a){try{e?qe.isBuffer(e)&&(Re(n===e.byteLength,"buffer body must have content length"),i.cork(),i.write(`${o}content-length: ${n}\r
\r
`,"latin1"),i.write(e),i.uncork(),s.onBodySent(e),!a&&s.reset!==!1&&(i[Oi]=!0)):n===0?i.write(`${o}content-length: 0\r
`,"latin1"),i.write(e),i.uncork(),s.onBodySent(e),!a&&s.reset!==!1&&(i[Xi]=!0)):n===0?i.write(`${o}content-length: 0\r
\r
`,"latin1"):(xe(n===null,"no body must not have content length"),i.write(`${o}\r
`,"latin1")),s.onRequestSent(),r[Gu]()}catch(c){t(c)}}async function RQe(t,e,r,s,i,n,o,a){xe(n===e.size,"blob body must have content length");try{if(n!=null&&n!==e.size)throw new yh;let c=Buffer.from(await e.arrayBuffer());i.cork(),i.write(`${o}content-length: ${n}\r
`,"latin1"):(Re(n===null,"no body must not have content length"),i.write(`${o}\r
`,"latin1")),s.onRequestSent(),r[wh]()}catch(c){t(c)}}async function lLe(t,e,r,s,i,n,o,a){Re(n===e.size,"blob body must have content length");try{if(n!=null&&n!==e.size)throw new df;let c=Buffer.from(await e.arrayBuffer());i.cork(),i.write(`${o}content-length: ${n}\r
\r
`,"latin1"),i.write(c),i.uncork(),s.onBodySent(c),s.onRequestSent(),!a&&s.reset!==!1&&(i[Oi]=!0),r[Gu]()}catch(c){t(c)}}async function i6(t,e,r,s,i,n,o,a){xe(n!==0||r[Ps]===0,"iterator body cannot be pipelined");let c=null;function l(){if(c){let h=c;c=null,h()}}let u=()=>new Promise((h,f)=>{xe(c===null),i[ni]?f(i[ni]):c=h});i.on("close",l).on("drain",l);let d=new Kb({abort:t,socket:i,request:s,contentLength:n,client:r,expectsPayload:a,header:o});try{for await(let h of e){if(i[ni])throw i[ni];d.write(h)||await u()}d.end()}catch(h){d.destroy(h)}finally{i.off("close",l).off("drain",l)}}var Kb=class{constructor({abort:e,socket:r,request:s,contentLength:i,client:n,expectsPayload:o,header:a}){this.socket=r,this.request=s,this.contentLength=i,this.client=n,this.bytesWritten=0,this.expectsPayload=o,this.header=a,this.abort=e,r[Hu]=!0}write(e){let{socket:r,request:s,contentLength:i,client:n,bytesWritten:o,expectsPayload:a,header:c}=this;if(r[ni])throw r[ni];if(r.destroyed)return!1;let l=Buffer.byteLength(e);if(!l)return!0;if(i!==null&&o+l>i){if(n[U1])throw new yh;process.emitWarning(new yh)}r.cork(),o===0&&(!a&&s.reset!==!1&&(r[Oi]=!0),i===null?r.write(`${c}transfer-encoding: chunked\r
`,"latin1"),i.write(c),i.uncork(),s.onBodySent(c),s.onRequestSent(),!a&&s.reset!==!1&&(i[Xi]=!0),r[wh]()}catch(c){t(c)}}async function IZ(t,e,r,s,i,n,o,a){Re(n!==0||r[Vs]===0,"iterator body cannot be pipelined");let c=null;function l(){if(c){let d=c;c=null,d()}}let u=()=>new Promise((d,f)=>{Re(c===null),i[gi]?f(i[gi]):c=d});i.on("close",l).on("drain",l);let h=new ZB({abort:t,socket:i,request:s,contentLength:n,client:r,expectsPayload:a,header:o});try{for await(let d of e){if(i[gi])throw i[gi];h.write(d)||await u()}h.end()}catch(d){h.destroy(d)}finally{i.off("close",l).off("drain",l)}}var ZB=class{constructor({abort:e,socket:r,request:s,contentLength:i,client:n,expectsPayload:o,header:a}){this.socket=r,this.request=s,this.contentLength=i,this.client=n,this.bytesWritten=0,this.expectsPayload=o,this.header=a,this.abort=e,r[Bh]=!0}write(e){let{socket:r,request:s,contentLength:i,client:n,bytesWritten:o,expectsPayload:a,header:c}=this;if(r[gi])throw r[gi];if(r.destroyed)return!1;let l=Buffer.byteLength(e);if(!l)return!0;if(i!==null&&o+l>i){if(n[jk])throw new df;process.emitWarning(new df)}r.cork(),o===0&&(!a&&s.reset!==!1&&(r[Xi]=!0),i===null?r.write(`${c}transfer-encoding: chunked\r
`,"latin1"):r.write(`${c}content-length: ${i}\r
\r
`,"latin1")),i===null&&r.write(`\r
${l.toString(16)}\r
`,"latin1"),this.bytesWritten+=l;let u=r.write(e);return r.uncork(),s.onBodySent(e),u||r[dr].timeout&&r[dr].timeoutType===$A&&r[dr].timeout.refresh&&r[dr].timeout.refresh(),u}end(){let{socket:e,contentLength:r,client:s,bytesWritten:i,expectsPayload:n,header:o,request:a}=this;if(a.onRequestSent(),e[Hu]=!1,e[ni])throw e[ni];if(!e.destroyed){if(i===0?n?e.write(`${o}content-length: 0\r
`,"latin1"),this.bytesWritten+=l;let u=r.write(e);return r.uncork(),s.onBodySent(e),u||r[pr].timeout&&r[pr].timeoutType===KA&&r[pr].timeout.refresh&&r[pr].timeout.refresh(),u}end(){let{socket:e,contentLength:r,client:s,bytesWritten:i,expectsPayload:n,header:o,request:a}=this;if(a.onRequestSent(),e[Bh]=!1,e[gi])throw e[gi];if(!e.destroyed){if(i===0?n?e.write(`${o}content-length: 0\r
\r
`,"latin1"):e.write(`${o}\r
`,"latin1"):r===null&&e.write(`\r
0\r
\r
`,"latin1"),r!==null&&i!==r){if(s[U1])throw new yh;process.emitWarning(new yh)}e[dr].timeout&&e[dr].timeoutType===$A&&e[dr].timeout.refresh&&e[dr].timeout.refresh(),s[Gu]()}}destroy(e){let{socket:r,client:s,abort:i}=this;r[Hu]=!1,e&&(xe(s[Ps]<=1,"pipeline should only contain this request"),i(e))}};c6.exports=wQe});var g6=m((GEt,m6)=>{"use strict";var no=require("node:assert"),{pipeline:TQe}=require("node:stream"),ot=tt(),{RequestContentLengthMismatchError:z1,RequestAbortedError:u6,SocketError:Qy,InformationalError:V1}=mt(),{kUrl:Xb,kReset:ew,kClient:jA,kRunning:tw,kPending:QQe,kQueue:zu,kPendingIdx:$1,kRunningIdx:ta,kError:sa,kSocket:is,kStrictContentLength:vQe,kOnError:j1,kMaxConcurrentStreams:p6,kHTTP2Session:ra,kResume:Vu,kSize:_Qe,kHTTPContext:PQe}=Wt(),El=Symbol("open streams"),d6,h6=!1,Zb;try{Zb=require("node:http2")}catch{Zb={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:DQe,HTTP2_HEADER_METHOD:OQe,HTTP2_HEADER_PATH:kQe,HTTP2_HEADER_SCHEME:MQe,HTTP2_HEADER_CONTENT_LENGTH:LQe,HTTP2_HEADER_EXPECT:FQe,HTTP2_HEADER_STATUS:UQe}}=Zb;function qQe(t){let e=[];for(let[r,s]of Object.entries(t))if(Array.isArray(s))for(let i of s)e.push(Buffer.from(r),Buffer.from(i));else e.push(Buffer.from(r),Buffer.from(s));return e}async function GQe(t,e){t[is]=e,h6||(h6=!0,process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"}));let r=Zb.connect(t[Xb],{createConnection:()=>e,peerMaxConcurrentStreams:t[p6]});r[El]=0,r[jA]=t,r[is]=e,ot.addListener(r,"error",zQe),ot.addListener(r,"frameError",VQe),ot.addListener(r,"end",$Qe),ot.addListener(r,"goaway",jQe),ot.addListener(r,"close",function(){let{[jA]:i}=this,{[is]:n}=i,o=this[is][sa]||this[sa]||new Qy("closed",ot.getSocketInfo(n));if(i[ra]=null,i.destroyed){no(i[QQe]===0);let a=i[zu].splice(i[ta]);for(let c=0;c<a.length;c++){let l=a[c];ot.errorRequest(i,l,o)}}}),r.unref(),t[ra]=r,e[ra]=r,ot.addListener(e,"error",function(i){no(i.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[sa]=i,this[jA][j1](i)}),ot.addListener(e,"end",function(){ot.destroy(this,new Qy("other side closed",ot.getSocketInfo(this)))}),ot.addListener(e,"close",function(){let i=this[sa]||new Qy("closed",ot.getSocketInfo(this));t[is]=null,this[ra]!=null&&this[ra].destroy(i),t[$1]=t[ta],no(t[tw]===0),t.emit("disconnect",t[Xb],[t],i),t[Vu]()});let s=!1;return e.on("close",()=>{s=!0}),{version:"h2",defaultPipelining:1/0,write(...i){return YQe(t,...i)},resume(){HQe(t)},destroy(i,n){s?queueMicrotask(n):e.destroy(i).on("close",n)},get destroyed(){return e.destroyed},busy(){return!1}}}function HQe(t){let e=t[is];e?.destroyed===!1&&(t[_Qe]===0&&t[p6]===0?(e.unref(),t[ra].unref()):(e.ref(),t[ra].ref()))}function zQe(t){no(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[is][sa]=t,this[jA][j1](t)}function VQe(t,e,r){if(r===0){let s=new V1(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[is][sa]=s,this[jA][j1](s)}}function $Qe(){let t=new Qy("other side closed",ot.getSocketInfo(this[is]));this.destroy(t),ot.destroy(this[is],t)}function jQe(t){let e=this[sa]||new Qy(`HTTP/2: "GOAWAY" frame received with code ${t}`,ot.getSocketInfo(this)),r=this[jA];if(r[is]=null,r[PQe]=null,this[ra]!=null&&(this[ra].destroy(e),this[ra]=null),ot.destroy(this[is],e),r[ta]<r[zu].length){let s=r[zu][r[ta]];r[zu][r[ta]++]=null,ot.errorRequest(r,s,e),r[$1]=r[ta]}no(r[tw]===0),r.emit("disconnect",r[Xb],[r],e),r[Vu]()}function JQe(t){return t!=="GET"&&t!=="HEAD"&&t!=="OPTIONS"&&t!=="TRACE"&&t!=="CONNECT"}function YQe(t,e){let r=t[ra],{method:s,path:i,host:n,upgrade:o,expectContinue:a,signal:c,headers:l}=e,{body:u}=e;if(o)return ot.errorRequest(t,e,new Error("Upgrade not supported for H2")),!1;let d={};for(let x=0;x<l.length;x+=2){let N=l[x+0],P=l[x+1];if(Array.isArray(P))for(let D=0;D<P.length;D++)d[N]?d[N]+=`,${P[D]}`:d[N]=P[D];else d[N]=P}let h,{hostname:f,port:A}=t[Xb];d[DQe]=n||`${f}${A?`:${A}`:""}`,d[OQe]=s;let p=x=>{e.aborted||e.completed||(x=x||new u6,ot.errorRequest(t,e,x),h!=null&&ot.destroy(h,x),ot.destroy(u,x),t[zu][t[ta]++]=null,t[Vu]())};try{e.onConnect(p)}catch(x){ot.errorRequest(t,e,x)}if(e.aborted)return!1;if(s==="CONNECT")return r.ref(),h=r.request(d,{endStream:!1,signal:c}),h.id&&!h.pending?(e.onUpgrade(null,null,h),++r[El],t[zu][t[ta]++]=null):h.once("ready",()=>{e.onUpgrade(null,null,h),++r[El],t[zu][t[ta]++]=null}),h.once("close",()=>{r[El]-=1,r[El]===0&&r.unref()}),!0;d[kQe]=i,d[MQe]="https";let E=s==="PUT"||s==="POST"||s==="PATCH";u&&typeof u.read=="function"&&u.read(0);let y=ot.bodyLength(u);if(ot.isFormDataLike(u)){d6??=HA().extractBody;let[x,N]=d6(u);d["content-type"]=N,u=x.stream,y=x.length}if(y==null&&(y=e.contentLength),(y===0||!E)&&(y=null),JQe(s)&&y>0&&e.contentLength!=null&&e.contentLength!==y){if(t[vQe])return ot.errorRequest(t,e,new z1),!1;process.emitWarning(new z1)}y!=null&&(no(u,"no body must not have content length"),d[LQe]=`${y}`),r.ref();let C=s==="GET"||s==="HEAD"||u===null;return a?(d[FQe]="100-continue",h=r.request(d,{endStream:C,signal:c}),h.once(" Line truncated
`,this[Ive]=c??3e5,this[Cve]=i??3e5,this[bve]=C??!0,this[wve]=x,this[K1]=P,this[ju]=null,this[Rve]=k>-1?k:-1,this[Qve]=F??100,this[Sr]=null,this[ia]=[],this[Il]=0,this[na]=0,this[Dy]=$=>Z1(this,$),this[Tve]=$=>T6(this,$)}get pipelining(){return this[nw]}set pipelining(e){this[nw]=e,this[Dy](!0)}get[My](){return this[ia].length-this[na]}get[ky](){return this[na]-this[Il]}get[Oy](){return this[ia].length-this[Il]}get[fve](){return!!this[Sr]&&!this[YA]&&!this[Sr].destroyed}get[W1](){return!!(this[Sr]?.busy(null)||this[Oy]>=(R6(this)||1)||this[My]>0)}[hve](e){Q6(this),this.once("connect",e)}[Nve](e,r){let s=e.origin||this[Ua].origin,i=new ove(s,e,r);return this[ia].push(i),this[Ch]||(Eh.bodyLength(i.body)==null&&Eh.isIterable(i.body)?(this[Ch]=1,queueMicrotask(()=>Z1(this))):this[Dy](!0)),this[Ch]&&this[Ju]!==2&&this[W1]&&(this[Ju]=2),this[Ju]<2}async[Sve](){return new Promise(e=>{this[Oy]?this[ju]=e:e(null)})}async[xve](e){return new Promise(r=>{let s=this[ia].splice(this[na]);for(let n=0;n<s.length;n++){let o=s[n];Eh.errorRequest(this,o,e)}let i=()=>{this[ju]&&(this[ju](),this[ju]=null),r(null)};this[Sr]?(this[Sr].destroy(e,i),this[Sr]=null):queueMicrotask(i),this[Dy]()})}},Pve=iw();function T6(t,e){if(t[ky]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){Cl(t[na]===t[Il]);let r=t[ia].splice(t[Il]);for(let s=0;s<r.length;s++){let i=r[s];Eh.errorRequest(t,i,e)}Cl(t[Oy]===0)}}async function Q6(t){Cl(!t[YA]),Cl(!t[Sr]);let{host:e,hostname:r,protocol:s,port:i}=t[Ua];if(r[0]==="["){let n=r.indexOf("]");Cl(n!==-1);let o=r.substring(1,n);Cl(N6.isIP(o)),r=o}t[YA]=!0,JA.beforeConnect.hasSubscribers&&JA.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:s,port:i,version:t[Sr]?.version,servername:t[$u],localAddress:t[Py]},connector:t[_y]});try{let n=await new Promise((o,a)=>{t[_y]({host:e,hostname:r,protocol:s,port:i,servername:t[$u],localAddress:t[Py]},(c,l)=>{c?a(c):o(l)})});if(t.destroyed){Eh.destroy(n.on("error",S6),new lve);return}Cl(n);try{t[Sr]=n.alpnProtocol==="h2"?await _ve(t,n):await vve(t,n)}catch(o){throw n.destroy().on("error",S6),o}t[YA]=!1,n[Bve]=0,n[K1]=t[K1],n[dve]=t,n[pve]=null,JA.connected.hasSubscribers&&JA.connected.publish({connectParams:{host:e,hostname:r,protocol:s,port:i,version:t[Sr]?.version,servername:t[$u],localAddress:t[Py]},connector:t[_y],socket:n}),t.emit("connect",t[Ua],[t])}catch(n){if(t.destroyed)return;if(t[YA]=!1,JA.connectError.hasSubscribers&&JA.connectError.publish({connectParams:{host:e,hostname:r,protocol:s,port:i,version:t[Sr]?.version,servername:t[$u],localAddress:t[Py]},connector:t[_y],error:n}),n.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(Cl(t[ky]===0);t[My]>0&&t[ia][t[na]].servername===t[$u];){let o=t[ia][t[na]++];Eh.errorRequest(t,o,n)}else T6(t,n);t.emit("connectionError",t[Ua],[t],n)}t[Dy]()}function x6(t){t[Ju]=0,t.emit("drain",t[Ua],[t])}function Z1(t,e){t[Ch]!==2&&(t[Ch]=2,Dve(t,e),t[Ch]=0,t[Il]>256&&(t[ia].splice(0,t[Il]),t[na]-=t[Il],t[Il]=0))}function Dve(t,e){for(;;){if(t.destroyed){Cl(t[My]===0);return}if(t[ju]&&!t[Oy]){t[ju](),t[ju]=null;return}if(t[Sr]&&t[Sr].resume(),t[W1])t[Ju]=2;else if(t[Ju]===2){e?(t[Ju]=1,queueMicrotask(()=>x6(t))):x6(t);continue}if(t[My]===0||t[ky]>=(R6(t)||1))return;let r=t[ia][t[na]];if(t[Ua].protocol==="https:"&&t[$u]!==r.servername){if(t[ky]>0)return;t[$u]=r.servername,t[Sr]?.destroy(new cve("servername changed"),()=>{t[Sr]=null,Z1(t)})}if(t[YA])return;if(!t[Sr]){Q6(t);return}if(t[Sr].destroyed||t[Sr].busy(r))return;!r.aborted&&t[Sr].write(r)?t[na]++:t[ia].splice(t[na],1)}}v6.exports=X1});var eD=m((jEt,_6)=>{"use strict";var ow=class{constructor(){this.bottom=0,this.top=0,this.list=new Array(2048),this.next=null}isEmpty(){return this.top===this.bottom}isFull(){return(this.top+1&2047)===this.bottom}push(e){this.list[this.top]=e,this.top=this.top+1&2047}shift(){let e=this.list[this.bottom];return e===void 0?null:(this.list[this.bottom]=void 0,this.bottom=this.bottom+1&2047,e)}};_6.exports=class{constructor(){this.head=this.tail=new ow}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new ow),this.head.push(e)}shift(){let e=this.tail,r=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next),r}}});var D6=m((JEt,P6)=>{var{kFree:Ove,kConnected:kve,kPending:Mve,kQueued:Lve,kRunning:Fve,kSize:Uve}=Wt(),Ih=Symbol("pool"),tD=class{constructor(e){this[Ih]=e}get connected(){return this[Ih][kve]}get free(){return this[Ih][Ove]}get pending(){return this[Ih][Mve]}get queued(){return this[Ih][Lve]}get running(){return this[Ih][Fve]}get size(){return this[Ih][Uve]}};P6.exports=tD});var aD=m((YEt,z6)=>{"use strict";var qve=DA(),Gve=eD(),{kConnected:rD,kSize:O6,kRunning:k6,kPending:M6,kQueued:Ly,kBusy:Hve,kFree:zve,kUrl:Vve,kClose:$ve,kDestroy:jve,kDispatch:Jve}=Wt(),Yve=D6(),ki=Symbol("clients"),oi=Symbol("needDrain"),Fy=Symbol("queue"),sD=Symbol("closed resolve"),iD=Symbol("onDrain"),L6=Symbol("onConnect"),F6=Symbol("onDisconnect"),U6=Symbol("onConnectionError"),nD=Symbol("get d Line truncated
`,"latin1"),r!==null&&i!==r){if(s[jk])throw new df;process.emitWarning(new df)}e[pr].timeout&&e[pr].timeoutType===KA&&e[pr].timeout.refresh&&e[pr].timeout.refresh(),s[wh]()}}destroy(e){let{socket:r,client:s,abort:i}=this;r[Bh]=!1,e&&(Re(s[Vs]<=1,"pipeline should only contain this request"),i(e))}};SZ.exports=iLe});var OZ=A((S1t,PZ)=>{"use strict";var wo=require("node:assert"),{pipeline:uLe}=require("node:stream"),lt=st(),{RequestContentLengthMismatchError:Kk,RequestAbortedError:NZ,SocketError:iC,InformationalError:Xk}=yt(),{kUrl:eS,kReset:rS,kClient:XA,kRunning:sS,kPending:hLe,kQueue:Sh,kPendingIdx:Zk,kRunningIdx:Ia,kError:wa,kSocket:fs,kStrictContentLength:dLe,kOnError:eM,kMaxConcurrentStreams:QZ,kHTTP2Session:ba,kResume:xh,kSize:fLe,kHTTPContext:pLe}=tr(),Jl=Symbol("open streams"),RZ,vZ=!1,tS;try{tS=require("node:http2")}catch{tS={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:ALe,HTTP2_HEADER_METHOD:mLe,HTTP2_HEADER_PATH:gLe,HTTP2_HEADER_SCHEME:yLe,HTTP2_HEADER_CONTENT_LENGTH:ELe,HTTP2_HEADER_EXPECT:CLe,HTTP2_HEADER_STATUS:ILe}}=tS;function bLe(t){let e=[];for(let[r,s]of Object.entries(t))if(Array.isArray(s))for(let i of s)e.push(Buffer.from(r),Buffer.from(i));else e.push(Buffer.from(r),Buffer.from(s));return e}async function wLe(t,e){t[fs]=e,vZ||(vZ=!0,process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"}));let r=tS.connect(t[eS],{createConnection:()=>e,peerMaxConcurrentStreams:t[QZ]});r[Jl]=0,r[XA]=t,r[fs]=e,lt.addListener(r,"error",SLe),lt.addListener(r,"frameError",xLe),lt.addListener(r,"end",NLe),lt.addListener(r,"goaway",RLe),lt.addListener(r,"close",function(){let{[XA]:i}=this,{[fs]:n}=i,o=this[fs][wa]||this[wa]||new iC("closed",lt.getSocketInfo(n));if(i[ba]=null,i.destroyed){wo(i[hLe]===0);let a=i[Sh].splice(i[Ia]);for(let c=0;c<a.length;c++){let l=a[c];lt.errorRequest(i,l,o)}}}),r.unref(),t[ba]=r,e[ba]=r,lt.addListener(e,"error",function(i){wo(i.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[wa]=i,this[XA][eM](i)}),lt.addListener(e,"end",function(){lt.destroy(this,new iC("other side closed",lt.getSocketInfo(this)))}),lt.addListener(e,"close",function(){let i=this[wa]||new iC("closed",lt.getSocketInfo(this));t[fs]=null,this[ba]!=null&&this[ba].destroy(i),t[Zk]=t[Ia],wo(t[sS]===0),t.emit("disconnect",t[eS],[t],i),t[xh]()});let s=!1;return e.on("close",()=>{s=!0}),{version:"h2",defaultPipelining:1/0,write(...i){return TLe(t,...i)},resume(){BLe(t)},destroy(i,n){s?queueMicrotask(n):e.destroy(i).on("close",n)},get destroyed(){return e.destroyed},busy(){return!1}}}function BLe(t){let e=t[fs];e?.destroyed===!1&&(t[fLe]===0&&t[QZ]===0?(e.unref(),t[ba].unref()):(e.ref(),t[ba].ref()))}function SLe(t){wo(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[fs][wa]=t,this[XA][eM](t)}function xLe(t,e,r){if(r===0){let s=new Xk(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[fs][wa]=s,this[XA][eM](s)}}function NLe(){let t=new iC("other side closed",lt.getSocketInfo(this[fs]));this.destroy(t),lt.destroy(this[fs],t)}function RLe(t){let e=this[wa]||new iC(`HTTP/2: "GOAWAY" frame received with code ${t}`,lt.getSocketInfo(this)),r=this[XA];if(r[fs]=null,r[pLe]=null,this[ba]!=null&&(this[ba].destroy(e),this[ba]=null),lt.destroy(this[fs],e),r[Ia]<r[Sh].length){let s=r[Sh][r[Ia]];r[Sh][r[Ia]++]=null,lt.errorRequest(r,s,e),r[Zk]=r[Ia]}wo(r[sS]===0),r.emit("disconnect",r[eS],[r],e),r[xh]()}function vLe(t){return t!=="GET"&&t!=="HEAD"&&t!=="OPTIONS"&&t!=="TRACE"&&t!=="CONNECT"}function TLe(t,e){let r=t[ba],{method:s,path:i,host:n,upgrade:o,expectContinue:a,signal:c,headers:l}=e,{body:u}=e;if(o)return lt.errorRequest(t,e,new Error("Upgrade not supported for H2")),!1;let h={};for(let S=0;S<l.length;S+=2){let N=l[S+0],P=l[S+1];if(Array.isArray(P))for(let Q=0;Q<P.length;Q++)h[N]?h[N]+=`,${P[Q]}`:h[N]=P[Q];else h[N]=P}let d,{hostname:f,port:p}=t[eS];h[ALe]=n||`${f}${p?`:${p}`:""}`,h[mLe]=s;let m=S=>{e.aborted||e.completed||(S=S||new NZ,lt.errorRequest(t,e,S),d!=null&&lt.destroy(d,S),lt.destroy(u,S),t[Sh][t[Ia]++]=null,t[xh]())};try{e.onConnect(m)}catch(S){lt.errorRequest(t,e,S)}if(e.aborted)return!1;if(s==="CONNECT")return r.ref(),d=r.request(h,{endStream:!1,signal:c}),d.id&&!d.pending?(e.onUpgrade(null,null,d),++r[Jl],t[Sh][t[Ia]++]=null):d.once("ready",()=>{e.onUpgrade(null,null,d),++r[Jl],t[Sh][t[Ia]++]=null}),d.once("close",()=>{r[Jl]-=1,r[Jl]===0&&r.unref()}),!0;h[gLe]=i,h[yLe]="https";let E=s==="PUT"||s==="POST"||s==="PATCH";u&&typeof u.read=="function"&&u.read(0);let y=lt.bodyLength(u);if(lt.isFormDataLike(u)){RZ??=JA().extractBody;let[S,N]=RZ(u);h["content-type"]=N,u=S.stream,y=S.length}if(y==null&&(y=e.contentLength),(y===0||!E)&&(y=null),vLe(s)&&y>0&&e.contentLength!=null&&e.contentLength!==y){if(t[dLe])return lt.errorRequest(t,e,new Kk),!1;process.emitWarning(new Kk)}y!=null&&(wo(u,"no body must not have content length"),h[ELe]=`${y}`),r.ref();let C=s==="GET"||s==="HEAD"||u===null;return a?(h[CLe]="100-continue",d=r.request(h,{endStream:C,signal:c}),d.once(" Line truncated
`,this[r2e]=c??3e5,this[t2e]=i??3e5,this[s2e]=C??!0,this[i2e]=S,this[iM]=P,this[Rh]=null,this[l2e]=k>-1?k:-1,this[h2e]=L??100,this[Tr]=null,this[Ba]=[],this[Wl]=0,this[Sa]=0,this[cC]=V=>oM(this,V),this[u2e]=V=>$Z(this,V)}get pipelining(){return this[aS]}set pipelining(e){this[aS]=e,this[cC](!0)}get[hC](){return this[Ba].length-this[Sa]}get[uC](){return this[Sa]-this[Wl]}get[lC](){return this[Ba].length-this[Wl]}get[JLe](){return!!this[Tr]&&!this[em]&&!this[Tr].destroyed}get[sM](){return!!(this[Tr]?.busy(null)||this[lC]>=(VZ(this)||1)||this[hC]>0)}[jLe](e){jZ(this),this.once("connect",e)}[c2e](e,r){let s=e.origin||this[lc].origin,i=new qLe(s,e,r);return this[Ba].push(i),this[pf]||(ff.bodyLength(i.body)==null&&ff.isIterable(i.body)?(this[pf]=1,queueMicrotask(()=>oM(this))):this[cC](!0)),this[pf]&&this[vh]!==2&&this[sM]&&(this[vh]=2),this[vh]<2}async[o2e](){return new Promise(e=>{this[lC]?this[Rh]=e:e(null)})}async[a2e](e){return new Promise(r=>{let s=this[Ba].splice(this[Sa]);for(let n=0;n<s.length;n++){let o=s[n];ff.errorRequest(this,o,e)}let i=()=>{this[Rh]&&(this[Rh](),this[Rh]=null),r(null)};this[Tr]?(this[Tr].destroy(e,i),this[Tr]=null):queueMicrotask(i),this[cC]()})}},p2e=oS();function $Z(t,e){if(t[uC]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){Yl(t[Sa]===t[Wl]);let r=t[Ba].splice(t[Wl]);for(let s=0;s<r.length;s++){let i=r[s];ff.errorRequest(t,i,e)}Yl(t[lC]===0)}}async function jZ(t){Yl(!t[em]),Yl(!t[Tr]);let{host:e,hostname:r,protocol:s,port:i}=t[lc];if(r[0]==="["){let n=r.indexOf("]");Yl(n!==-1);let o=r.substring(1,n);Yl(zZ.isIP(o)),r=o}t[em]=!0,ZA.beforeConnect.hasSubscribers&&ZA.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:s,port:i,version:t[Tr]?.version,servername:t[Nh],localAddress:t[aC]},connector:t[oC]});try{let n=await new Promise((o,a)=>{t[oC]({host:e,hostname:r,protocol:s,port:i,servername:t[Nh],localAddress:t[aC]},(c,l)=>{c?a(c):o(l)})});if(t.destroyed){ff.destroy(n.on("error",GZ),new zLe);return}Yl(n);try{t[Tr]=n.alpnProtocol==="h2"?await f2e(t,n):await d2e(t,n)}catch(o){throw n.destroy().on("error",GZ),o}t[em]=!1,n[n2e]=0,n[iM]=t[iM],n[$Le]=t,n[WLe]=null,ZA.connected.hasSubscribers&&ZA.connected.publish({connectParams:{host:e,hostname:r,protocol:s,port:i,version:t[Tr]?.version,servername:t[Nh],localAddress:t[aC]},connector:t[oC],socket:n}),t.emit("connect",t[lc],[t])}catch(n){if(t.destroyed)return;if(t[em]=!1,ZA.connectError.hasSubscribers&&ZA.connectError.publish({connectParams:{host:e,hostname:r,protocol:s,port:i,version:t[Tr]?.version,servername:t[Nh],localAddress:t[aC]},connector:t[oC],error:n}),n.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(Yl(t[uC]===0);t[hC]>0&&t[Ba][t[Sa]].servername===t[Nh];){let o=t[Ba][t[Sa]++];ff.errorRequest(t,o,n)}else $Z(t,n);t.emit("connectionError",t[lc],[t],n)}t[cC]()}function HZ(t){t[vh]=0,t.emit("drain",t[lc],[t])}function oM(t,e){t[pf]!==2&&(t[pf]=2,A2e(t,e),t[pf]=0,t[Wl]>256&&(t[Ba].splice(0,t[Wl]),t[Sa]-=t[Wl],t[Wl]=0))}function A2e(t,e){for(;;){if(t.destroyed){Yl(t[hC]===0);return}if(t[Rh]&&!t[lC]){t[Rh](),t[Rh]=null;return}if(t[Tr]&&t[Tr].resume(),t[sM])t[vh]=2;else if(t[vh]===2){e?(t[vh]=1,queueMicrotask(()=>HZ(t))):HZ(t);continue}if(t[hC]===0||t[uC]>=(VZ(t)||1))return;let r=t[Ba][t[Sa]];if(t[lc].protocol==="https:"&&t[Nh]!==r.servername){if(t[uC]>0)return;t[Nh]=r.servername,t[Tr]?.destroy(new HLe("servername changed"),()=>{t[Tr]=null,oM(t)})}if(t[em])return;if(!t[Tr]){jZ(t);return}if(t[Tr].destroyed||t[Tr].busy(r))return;!r.aborted&&t[Tr].write(r)?t[Sa]++:t[Ba].splice(t[Sa],1)}}JZ.exports=nM});var aM=A((T1t,YZ)=>{"use strict";var cS=class{constructor(){this.bottom=0,this.top=0,this.list=new Array(2048),this.next=null}isEmpty(){return this.top===this.bottom}isFull(){return(this.top+1&2047)===this.bottom}push(e){this.list[this.top]=e,this.top=this.top+1&2047}shift(){let e=this.list[this.bottom];return e===void 0?null:(this.list[this.bottom]=void 0,this.bottom=this.bottom+1&2047,e)}};YZ.exports=class{constructor(){this.head=this.tail=new cS}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new cS),this.head.push(e)}shift(){let e=this.tail,r=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next),r}}});var KZ=A((_1t,WZ)=>{var{kFree:m2e,kConnected:g2e,kPending:y2e,kQueued:E2e,kRunning:C2e,kSize:I2e}=tr(),Af=Symbol("pool"),cM=class{constructor(e){this[Af]=e}get connected(){return this[Af][g2e]}get free(){return this[Af][m2e]}get pending(){return this[Af][y2e]}get queued(){return this[Af][E2e]}get running(){return this[Af][C2e]}get size(){return this[Af][I2e]}};WZ.exports=cM});var pM=A((Q1t,a7)=>{"use strict";var b2e=UA(),w2e=aM(),{kConnected:lM,kSize:XZ,kRunning:ZZ,kPending:e7,kQueued:dC,kBusy:B2e,kFree:S2e,kUrl:x2e,kClose:N2e,kDestroy:R2e,kDispatch:v2e}=tr(),T2e=KZ(),Zi=Symbol("clients"),yi=Symbol("needDrain"),fC=Symbol("queue"),uM=Symbol("closed resolve"),hM=Symbol("onDrain"),t7=Symbol("onConnect"),r7=Symbol("onDisconnect"),s7=Symbol("onConnectionError"),dM=Symbol("get d Line truncated
${s.count} ${s.noun} ${s.is} pending:
${e.format(r)}
`.trim())}};W9.exports=aO});var Bw=m((wCt,tK)=>{"use strict";var X9=Symbol.for("undici.globalDispatcher.1"),{InvalidArgumentError:I1e}=mt(),b1e=XA();eK()===void 0&&Z9(new b1e);function Z9(t){if(!t||typeof t.dispatch!="function")throw new I1e("Argument agent must implement Agent");Object.defineProperty(globalThis,X9,{value:t,writable:!0,enumerable:!1,configurable:!1})}function eK(){return globalThis[X9]}tK.exports={setGlobalDispatcher:Z9,getGlobalDispatcher:eK}});var Sw=m((SCt,rK)=>{"use strict";rK.exports=class{#e;constructor(e){if(typeof e!="object"||e===null)throw new TypeError("handler must be an object");this.#e=e}onConnect(...e){return this.#e.onConnect?.(...e)}onError(...e){return this.#e.onError?.(...e)}onUpgrade(...e){return this.#e.onUpgrade?.(...e)}onResponseStarted(...e){return this.#e.onResponseStarted?.(...e)}onHeaders(...e){return this.#e.onHeaders?.(...e)}onData(...e){return this.#e.onData?.(...e)}onComplete(...e){return this.#e.onComplete?.(...e)}onBodySent(...e){return this.#e.onBodySent?.(...e)}}});var iK=m((xCt,sK)=>{"use strict";var w1e=sw();sK.exports=t=>{let e=t?.maxRedirections;return r=>function(i,n){let{maxRedirections:o=e,...a}=i;if(!o)return r(i,n);let c=new w1e(r,o,i,n);return r(a,c)}}});var oK=m((NCt,nK)=>{"use strict";var B1e=Aw();nK.exports=t=>e=>function(s,i){return e(s,new B1e({...s,retryOptions:{...t,...s.retryOptions}},{handler:i,dispatch:e}))}});var cK=m((RCt,aK)=>{"use strict";var S1e=tt(),{InvalidArgumentError:x1e,RequestAbortedError:N1e}=mt(),R1e=Sw(),cO=class extends R1e{#e=1024*1024;#t=null;#s=!1;#r=!1;#i=0;#o=null;#u=null;constructor({maxSize:e},r){if(super(r),e!=null&&(!Number.isFinite(e)||e<1))throw new x1e("maxSize must be a number greater than 0");this.#e=e??this.#e,this.#u=r}onConnect(e){this.#t=e,this.#u.onConnect(this.#l.bind(this))}#l(e){this.#r=!0,this.#o=e}onHeaders(e,r,s,i){let o=S1e.parseHeaders(r)["content-length"];if(o!=null&&o>this.#e)throw new N1e(`Response size (${o}) larger than maxSize (${this.#e})`);return this.#r?!0:this.#u.onHeaders(e,r,s,i)}onError(e){this.#s||(e=this.#o??e,this.#u.onError(e))}onData(e){return this.#i=this.#i+e.length,this.#i>=this.#e&&(this.#s=!0,this.#r?this.#u.onError(this.#o):this.#u.onComplete([])),!0}onComplete(e){if(!this.#s){if(this.#r){this.#u.onError(this.reason);return}this.#u.onComplete(e)}}};function T1e({maxSize:t}={maxSize:1024*1024}){return e=>function(s,i){let{dumpMaxSize:n=t}=s,o=new cO({maxSize:n},i);return e(s,o)}}aK.exports=T1e});var dK=m((TCt,uK)=>{"use strict";var{isIP:Q1e}=require("node:net"),{lookup:v1e}=require("node:dns"),_1e=Sw(),{InvalidArgumentError:cp,InformationalError:P1e}=mt(),lK=Math.pow(2,31)-1,lO=class{#e=0;#t=0;#s=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.#i}get full(){return this.#s.size===this.#t}runLookup(e,r,s){let i=this.#s.get(e.hostname);if(i==null&&this.full){s(null,e.origin);return}let n={affinity:this.affinity,dualStack:this.dualStack,lookup:this.lookup,pick:this.pick,...r.dns,maxTTL:this.#e,maxItems:this.#t};if(i==null)this.lookup(e,n,(o,a)=>{if(o||a==null||a.length===0){s(o??new P1e("No DNS entries found"));return}this.setRecords(e,a);let c=this.#s.get(e.hostname),l=this.pick(e,c,n.affinity),u;typeof l.port=="number"?u=`:${l.port}`:e.port!==""?u=`:${e.port}`:u="",s(null,`${e.protocol}//${l.family===6?`[${l.address}]`:l.address}${u}`)});else{let o=this.pick(e,i,n.affinity);if(o==null){this.#s.delete(e.hostname),this.runLookup(e,r,s);return}let a;typeof o.port=="number"?a=`:${o.port}`:e.port!==""?a=`:${e.port}`:a="",s(null,`${e.protocol}//${o.family===6?`[${o.address}]`:o.address}${a}`)}}#r(e,r,s){v1e(e.hostname,{all:!0,family:this.dualStack===!1?this.affinity:0,order:"ipv4first"},(i,n)=>{if(i)return s(i);let o=new Map;for(let a of n)o.set(`${a.address}:${a.family}`,a);s(null,o.values())})}#i(e,r,s){let i=null,{records:n,offset:o}=r,a;if(this.dualStack?(s==null&&(o==null||o===lK?(r.offset=0,s=4):(r.offset++,s=(r.offset&1)===1?6:4)),n[s]!=null&&n[s].ips.length>0?a=n[s]:a=n[s===4?6:4]):a=n[s],a==null||a.ips.length===0)return i;a.offset==null||a.offset===lK?a.offset=0:a.offset++;let c=a.offset%a.ips.length;return i=a.ips[c]??null,i==null?i:Date.now()-i.timestamp>i.ttl?(a.ips.splice(c,1),this.pick(e,r,s)):i}setRecords(e,r){let s=Date.now(),i={records:{4:null,6:null}};for(let n of r){n.timestamp=s,typeof n.ttl=="number"?n.ttl=Math.min(n.ttl,this.#e):n.ttl=this.#e;let o=i.records[n.family]??{ips:[]};o.ips.push(n),i.records[n.family]=o}this.#s.set(e.hostname,i)}getHandler(e,r){return new uO(this,e,r)}},uO=class extends _1e{#e=null;#t=null;#s=null;#r=null;#i=null;constructor(e,{origin:r,handler:s,dispatch:i},n){super(s),this.#i=r,this.#r=s,this.#t={...n},this.#e=e,this.#s=i}onError(e){switch(e.code){case"ETIMEDOUT":case"ECONNREFUSED":{if(this.#e.dualStack){this.#e.runLookup(this.#i,this.#t,(r,s)=>{if(r)return this.#r.o Line truncated
${n}`;break;case"retry":zZ(n)&&(r[i]=n);break;case"id":VZ(n)&&(r[i]=n);break;case"event":n.length>0&&(r[i]=n);break}}processEvent(e){e.retry&&zZ(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id&&VZ(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}}};$Z.exports={EventSourceStream:WO}});var t7=m((oIt,e7)=>{"use strict";var{pipeline:GMe}=require("node:stream"),{fetching:HMe}=Xy(),{makeRequest:zMe}=dp(),{webidl:xl}=Rs(),{EventSourceStream:VMe}=jZ(),{parseMIMEType:$Me}=Di(),{createFastMessageEvent:jMe}=gp(),{isNetworkError:JZ}=Wy(),{delay:JMe}=JO(),{kEnumerableProperty:kh}=tt(),{environmentSettingsObject:YZ}=An(),WZ=!1,KZ=3e3,dE=0,XZ=1,hE=2,YMe="anonymous",WMe="use-credentials",bp=class t extends EventTarget{#e={open:null,error:null,message:null};#t=null;#s=!1;#r=dE;#i=null;#o=null;#u;#l;constructor(e,r={}){super(),xl.util.markAsUncloneable(this);let s="EventSource constructor";xl.argumentLengthCheck(arguments,1,s),WZ||(WZ=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=xl.converters.USVString(e,s,"url"),r=xl.converters.EventSourceInitDict(r,s,"eventSourceInitDict"),this.#u=r.dispatcher,this.#l={lastEventId:"",reconnectionTime:KZ};let i=YZ,n;try{n=new URL(e,i.settingsObject.baseUrl),this.#l.origin=n.origin}catch(c){throw new DOMException(c,"SyntaxError")}this.#t=n.href;let o=YMe;r.withCredentials&&(o=WMe,this.#s=!0);let a={redirect:"follow",keepalive:!0,mode:"cors",credentials:o==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};a.client=YZ.settingsObject,a.headersList=[["accept",{name:"accept",value:"text/event-stream"}]],a.cache="no-store",a.initiator="other",a.urlList=[new URL(this.#t)],this.#i=zMe(a),this.#a()}get readyState(){return this.#r}get url(){return this.#t}get withCredentials(){return this.#s}#a(){if(this.#r===hE)return;this.#r=dE;let e={request:this.#i,dispatcher:this.#u},r=s=>{JZ(s)&&(this.dispatchEvent(new Event("error")),this.close()),this.#A()};e.processResponseEndOfBody=r,e.processResponse=s=>{if(JZ(s))if(s.aborted){this.close(),this.dispatchEvent(new Event("error"));return}else{this.#A();return}let i=s.headersList.get("content-type",!0),n=i!==null?$Me(i):"failure",o=n!=="failure"&&n.essence==="text/event-stream";if(s.status!==200||o===!1){this.close(),this.dispatchEvent(new Event("error"));return}this.#r=XZ,this.dispatchEvent(new Event("open")),this.#l.origin=s.urlList[s.urlList.length-1].origin;let a=new VMe({eventSourceSettings:this.#l,push:c=>{this.dispatchEvent(jMe(c.type,c.options))}});GMe(s.body.stream,a,c=>{c?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#o=HMe(e)}async#A(){this.#r!==hE&&(this.#r=dE,this.dispatchEvent(new Event("error")),await JMe(this.#l.reconnectionTime),this.#r===dE&&(this.#l.lastEventId.length&&this.#i.headersList.set("last-event-id",this.#l.lastEventId,!0),this.#a()))}close(){xl.brandCheck(this,t),this.#r!==hE&&(this.#r=hE,this.#o.abort(),this.#i=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}},ZZ={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:dE,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:XZ,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:hE,writable:!1}};Object.defineProperties(bp,ZZ);Object.defineProperties(bp.prototype,ZZ);Object.defineProperties(bp.prototype,{close:kh,onerror:kh,onmessage:kh,onopen:kh,readyState:kh,url:kh,withCredentials:kh});xl.converters.EventSourceInitDict=xl.dictionaryConverter([{key:"withCredentials",converter:xl.converters.boolean,defaultValue:()=>!1},{key:"dispatcher",converter:xl.converters.any}]);e7.exports={EventSource:bp,defaultReconnectionTime:KZ}});var fB=m((aIt,_e)=>{"use strict";var KMe=WA(),r7=my(),XMe=KA(),ZMe=Z6(),eLe=XA(),tLe=CD(),rLe=wW(),sLe=TW(),s7=mt(),hB=tt(),{InvalidArgumentError:dB}=s7,wp=p9(),iLe=yy(),nLe=tO(),oLe=K9(),aLe=iO(),cLe=GD(),lLe=Aw(),{getGlobalDispatcher:i7,setGlobalDispatcher:uLe}=Bw(),dLe=Sw(),hLe=sw(),fLe=iw();Object.assign(r7.prototype,wp);_e.exports.Dispatcher=r7;_e.exports.Client=KMe;_e.exports.Pool=XMe;_e.exports.BalancedPool=ZMe;_e.exports.Agent=eLe;_e.exports.ProxyAgent=tLe;_e.exports.EnvHttpProxyAgent=rLe;_e.exports.RetryAgent=sLe;_e.exports.Retry Line truncated
%s`,N,N,C,s);var P=C.type==="*"?zk:C.type==="?"?Hk:"\\"+C.type;i=!0,s=s.slice(0,C.reStart)+P+"\\("+N}A(),n&&(s+="\\\\");var D=!1;switch(s.charAt(0)){case"[":case".":case"(":D=!0}for(var k=a.length-1;k>-1;k--){var z=a[k],Z=s.slice(0,z.reStart),F=s.slice(z.reStart,z.reEnd-8),q=s.slice(z.reEnd-8,z.reEnd),G=s.slice(z.reEnd);q+=G;var $=Z.split("(").length-1,ae=G;for(p=0;p<$;p++)ae=ae.replace(/\)[+*?]?/,"");G=ae;var We="";G===""&&e!==LB&&(We="$");var Ie=Z+F+G+We+q;s=Ie}if(s!==""&&i&&(s="(?=.)"+s),D&&(s=h+s),e===LB)return[s,i];if(!i)return Eqe(t);var ce=r.nocase?"i":"";try{var nt=new RegExp("^"+s+"$",ce)}catch{return new RegExp("$.")}return nt._glob=t,nt._src=s,nt}xn.makeRe=function(t,e){return new Ur(t,e||{}).makeRe()};Ur.prototype.makeRe=yqe;function yqe(){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?zk:e.dot?uqe:dqe,s=e.nocase?"i":"",i=t.map(function(n){return n.map(function(o){return o===qh?r:typeof o=="string"?Cqe(o):o._src}).join("\\/")}).join("|");i="^(?:"+i+")$",this.negate&&(i="^(?!"+i+").*$");try{this.regexp=new RegExp(i,s)}catch{this.regexp=!1}return this.regexp}xn.match=function(t,e,r){r=r||{};var s=new Ur(e,r);return t=t.filter(function(i){return s.match(i)}),s.options.nonull&&!t.length&&t.push(e),t};Ur.prototype.match=function(e,r){if(typeof r>"u"&&(r=this.partial),this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return e==="";if(e==="/"&&r)return!0;var s=this.options;RE.sep!=="/"&&(e=e.split(RE.sep).join("/")),e=e.split(jte),this.debug(this.pattern,"split",e);var i=this.set;this.debug(this.pattern,"set",i);var n,o;for(o=e.length-1;o>=0&&(n=e[o],!n);o--);for(o=0;o<i.length;o++){var a=i[o],c=e;s.matchBase&&a.length===1&&(c=[n]);var l=this.matchOne(c,a,r);if(l)return s.flipNegate?!0:!this.negate}return s.flipNegate?!1:this.negate};Ur.prototype.matchOne=function(t,e,r){return e.indexOf(qh)!==-1?this._matchGlobstar(t,e,r,0,0):this._matchOne(t,e,r,0,0)};Ur.prototype._matchGlobstar=function(t,e,r,s,i){var n,o=-1;for(n=i;n<e.length;n++)if(e[n]===qh){o=n;break}var a=-1;for(n=e.length-1;n>=0;n--)if(e[n]===qh){a=n;break}var c=e.slice(i,o),l=r?e.slice(o+1):e.slice(o+1,a),u=r?[]:e.slice(a+1);if(c.length){var d=t.slice(s,s+c.length);if(!this._matchOne(d,c,r,0,0))return!1;s+=c.length}var h=0;if(u.length){if(u.length+s>t.length)return!1;var f=t.length-u.length;if(this._matchOne(t,u,r,f,0))h=u.length;else{if(t[t.length-1]!==""||s+u.length===t.length||(f--,!this._matchOne(t,u,r,f,0)))return!1;h=u.length+1}}if(!l.length){var A=!!h;for(n=s;n<t.length-h;n++){var p=String(t[n]);if(A=!0,p==="."||p===".."||!this.options.dot&&p.charAt(0)===".")return!1}return r||A}for(var E=[[[],0]],y=E[0],C=0,w=[0],x=0;x<l.length;x++){var N=l[x];N===qh?(w.push(C),y=[[],0],E.push(y)):(y[0].push(N),C++)}for(var P=E.length-1,D=t.length-h,k=0;k<E.length;k++)E[k][1]=D-(w[P--]+E[k][0].length);return!!this._matchGlobStarBodySections(t,E,s,0,r,0,!!h)};Ur.prototype._matchGlobStarBodySections=function(t,e,r,s,i,n,o){var a=e[s];if(!a){for(var c=r;c<t.length;c++){o=!0;var l=t[c];if(l==="."||l===".."||!this.options.dot&&l.charAt(0)===".")return!1}return o}for(var u=a[0],d=a[1];r<=d;){var h=this._matchOne(t.slice(0,r+u.length),u,i,r,0);if(h&&n<this.maxGlobstarRecursion){var f=this._matchGlobStarBodySections(t,e,r+u.length,s+1,i,n+1,o);if(f!==!1)return f}var l=t[r];if(l==="."||l===".."||!this.options.dot&&l.charAt(0)===".")return!1;r++}return i||null};Ur.prototype._matchOne=function(t,e,r,s,i){var n,o,a,c;for(n=s,o=i,a=t.length,c=e.length;n<a&&o<c;n++,o++){this.debug("matchOne loop");var l=e[o],u=t[n];if(this.debug(e,l,u),l===!1||l===qh)return!1;var d;if(typeof l=="string"?(d=u===l,this.debug("string match",l,u,d)):(d=u.match(l),this.debug("pattern match",l,u,d)),!d)return!1}if(n===a&&o===c)return!0;if(n===a)return r;if(o===c)return n===a-1&&t[n]==="";throw new Error("wtf?")};function Eqe(t){return t.replace(/\\(.)/g,"$1")}function Cqe(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}});var vE=m((W0t,ere)=>{"use strict";var Rqe="2.0.0",Tqe=Number.MAX_SAFE_INTEGER||9007199254740991,Qqe=16,vqe=250,_qe=["major","premajor","minor","preminor","patch","prepatch","prerelease"];ere.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:Qqe,MAX_SAFE_BUILD_LENGTH:vqe,MAX_SAFE_INTEGER:Tqe,RELEASE_TYPES:_qe,SEMVER_SPEC_VERSION:Rqe,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var _E=m((K0t,tre)=>{"use strict";var Pqe=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};tre.exports=Pqe});var Dp=m((Ka,rre)=>{"use strict";var{MAX_SAFE_COMPONENT_LENGTH:$k,MAX_SAFE_BUILD_LENGTH:Dqe,MAX_LENGTH:Oqe}=vE(),kqe=_E();Ka=rre.exports={};var Mqe=Ka.re=[],Lqe=Ka.safeRe=[],he=Ka.src=[],Fqe=Ka.safeSrc=[],fe=Ka.t={},Uqe=0,jk="[a-zA-Z0-9-]",qqe=[["\\s",1],["\\d",Oqe],[jk,Dqe]],Gqe=t=>{for(let[e,r]of qqe)t=t.split(`${e}*`).join(`${e}{0,${r}}`).split(`${e}+`).join(`${Line truncated
`.trim())}};fte.exports=pL});var xS=A((oPt,yte)=>{"use strict";var Ate=Symbol.for("undici.globalDispatcher.1"),{InvalidArgumentError:rqe}=yt(),sqe=sm();gte()===void 0&&mte(new sqe);function mte(t){if(!t||typeof t.dispatch!="function")throw new rqe("Argument agent must implement Agent");Object.defineProperty(globalThis,Ate,{value:t,writable:!0,enumerable:!1,configurable:!1})}function gte(){return globalThis[Ate]}yte.exports={setGlobalDispatcher:mte,getGlobalDispatcher:gte}});var NS=A((cPt,Ete)=>{"use strict";Ete.exports=class{#e;constructor(e){if(typeof e!="object"||e===null)throw new TypeError("handler must be an object");this.#e=e}onConnect(...e){return this.#e.onConnect?.(...e)}onError(...e){return this.#e.onError?.(...e)}onUpgrade(...e){return this.#e.onUpgrade?.(...e)}onResponseStarted(...e){return this.#e.onResponseStarted?.(...e)}onHeaders(...e){return this.#e.onHeaders?.(...e)}onData(...e){return this.#e.onData?.(...e)}onComplete(...e){return this.#e.onComplete?.(...e)}onBodySent(...e){return this.#e.onBodySent?.(...e)}}});var Ite=A((lPt,Cte)=>{"use strict";var iqe=nS();Cte.exports=t=>{let e=t?.maxRedirections;return r=>function(i,n){let{maxRedirections:o=e,...a}=i;if(!o)return r(i,n);let c=new iqe(r,o,i,n);return r(a,c)}}});var wte=A((uPt,bte)=>{"use strict";var nqe=mS();bte.exports=t=>e=>function(s,i){return e(s,new nqe({...s,retryOptions:{...t,...s.retryOptions}},{handler:i,dispatch:e}))}});var Ste=A((hPt,Bte)=>{"use strict";var oqe=st(),{InvalidArgumentError:aqe,RequestAbortedError:cqe}=yt(),lqe=NS(),AL=class extends lqe{#e=1024*1024;#t=null;#s=!1;#r=!1;#i=0;#n=null;#u=null;constructor({maxSize:e},r){if(super(r),e!=null&&(!Number.isFinite(e)||e<1))throw new aqe("maxSize must be a number greater than 0");this.#e=e??this.#e,this.#u=r}onConnect(e){this.#t=e,this.#u.onConnect(this.#l.bind(this))}#l(e){this.#r=!0,this.#n=e}onHeaders(e,r,s,i){let o=oqe.parseHeaders(r)["content-length"];if(o!=null&&o>this.#e)throw new cqe(`Response size (${o}) larger than maxSize (${this.#e})`);return this.#r?!0:this.#u.onHeaders(e,r,s,i)}onError(e){this.#s||(e=this.#n??e,this.#u.onError(e))}onData(e){return this.#i=this.#i+e.length,this.#i>=this.#e&&(this.#s=!0,this.#r?this.#u.onError(this.#n):this.#u.onComplete([])),!0}onComplete(e){if(!this.#s){if(this.#r){this.#u.onError(this.reason);return}this.#u.onComplete(e)}}};function uqe({maxSize:t}={maxSize:1024*1024}){return e=>function(s,i){let{dumpMaxSize:n=t}=s,o=new AL({maxSize:n},i);return e(s,o)}}Bte.exports=uqe});var Rte=A((dPt,Nte)=>{"use strict";var{isIP:hqe}=require("node:net"),{lookup:dqe}=require("node:dns"),fqe=NS(),{InvalidArgumentError:fm,InformationalError:pqe}=yt(),xte=Math.pow(2,31)-1,mL=class{#e=0;#t=0;#s=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.#i}get full(){return this.#s.size===this.#t}runLookup(e,r,s){let i=this.#s.get(e.hostname);if(i==null&&this.full){s(null,e.origin);return}let n={affinity:this.affinity,dualStack:this.dualStack,lookup:this.lookup,pick:this.pick,...r.dns,maxTTL:this.#e,maxItems:this.#t};if(i==null)this.lookup(e,n,(o,a)=>{if(o||a==null||a.length===0){s(o??new pqe("No DNS entries found"));return}this.setRecords(e,a);let c=this.#s.get(e.hostname),l=this.pick(e,c,n.affinity),u;typeof l.port=="number"?u=`:${l.port}`:e.port!==""?u=`:${e.port}`:u="",s(null,`${e.protocol}//${l.family===6?`[${l.address}]`:l.address}${u}`)});else{let o=this.pick(e,i,n.affinity);if(o==null){this.#s.delete(e.hostname),this.runLookup(e,r,s);return}let a;typeof o.port=="number"?a=`:${o.port}`:e.port!==""?a=`:${e.port}`:a="",s(null,`${e.protocol}//${o.family===6?`[${o.address}]`:o.address}${a}`)}}#r(e,r,s){dqe(e.hostname,{all:!0,family:this.dualStack===!1?this.affinity:0,order:"ipv4first"},(i,n)=>{if(i)return s(i);let o=new Map;for(let a of n)o.set(`${a.address}:${a.family}`,a);s(null,o.values())})}#i(e,r,s){let i=null,{records:n,offset:o}=r,a;if(this.dualStack?(s==null&&(o==null||o===xte?(r.offset=0,s=4):(r.offset++,s=(r.offset&1)===1?6:4)),n[s]!=null&&n[s].ips.length>0?a=n[s]:a=n[s===4?6:4]):a=n[s],a==null||a.ips.length===0)return i;a.offset==null||a.offset===xte?a.offset=0:a.offset++;let c=a.offset%a.ips.length;return i=a.ips[c]??null,i==null?i:Date.now()-i.timestamp>i.ttl?(a.ips.splice(c,1),this.pick(e,r,s)):i}setRecords(e,r){let s=Date.now(),i={records:{4:null,6:null}};for(let n of r){n.timestamp=s,typeof n.ttl=="number"?n.ttl=Math.min(n.ttl,this.#e):n.ttl=this.#e;let o=i.records[n.family]??{ips:[]};o.ips.push(n),i.records[n.family]=o}this.#s.set(e.hostname,i)}getHandler(e,r){return new gL(this,e,r)}},gL=class extends fqe{#e=null;#t=null;#s=null;#r=null;#i=null;constructor(e,{origin:r,handler:s,dispatch:i},n){super(s),this.#i=r,this.#r=s,this.#t={...n},this.#e=e,this.#s=i}onError(e){switch(e.code){case"ETIMEDOUT":case"ECONNREFUSED":{if(this.#e.dualStack){this.#e.runLookup(this.#i,this.#t,( Line truncated
${n}`;break;case"retry":aie(n)&&(r[i]=n);break;case"id":cie(n)&&(r[i]=n);break;case"event":n.length>0&&(r[i]=n);break}}processEvent(e){e.retry&&aie(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id&&cie(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}}};lie.exports={EventSourceStream:s2}});var yie=A((HPt,gie)=>{"use strict";var{pipeline:w8e}=require("node:stream"),{fetching:B8e}=xC(),{makeRequest:S8e}=mm(),{webidl:tu}=Ms(),{EventSourceStream:x8e}=uie(),{parseMIMEType:N8e}=Ki(),{createFastMessageEvent:R8e}=bm(),{isNetworkError:hie}=BC(),{delay:v8e}=t2(),{kEnumerableProperty:Tf}=st(),{environmentSettingsObject:die}=_n(),fie=!1,pie=3e3,UC=0,Aie=1,FC=2,T8e="anonymous",_8e="use-credentials",Nm=class t extends EventTarget{#e={open:null,error:null,message:null};#t=null;#s=!1;#r=UC;#i=null;#n=null;#u;#l;constructor(e,r={}){super(),tu.util.markAsUncloneable(this);let s="EventSource constructor";tu.argumentLengthCheck(arguments,1,s),fie||(fie=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=tu.converters.USVString(e,s,"url"),r=tu.converters.EventSourceInitDict(r,s,"eventSourceInitDict"),this.#u=r.dispatcher,this.#l={lastEventId:"",reconnectionTime:pie};let i=die,n;try{n=new URL(e,i.settingsObject.baseUrl),this.#l.origin=n.origin}catch(c){throw new DOMException(c,"SyntaxError")}this.#t=n.href;let o=T8e;r.withCredentials&&(o=_8e,this.#s=!0);let a={redirect:"follow",keepalive:!0,mode:"cors",credentials:o==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};a.client=die.settingsObject,a.headersList=[["accept",{name:"accept",value:"text/event-stream"}]],a.cache="no-store",a.initiator="other",a.urlList=[new URL(this.#t)],this.#i=S8e(a),this.#a()}get readyState(){return this.#r}get url(){return this.#t}get withCredentials(){return this.#s}#a(){if(this.#r===FC)return;this.#r=UC;let e={request:this.#i,dispatcher:this.#u},r=s=>{hie(s)&&(this.dispatchEvent(new Event("error")),this.close()),this.#f()};e.processResponseEndOfBody=r,e.processResponse=s=>{if(hie(s))if(s.aborted){this.close(),this.dispatchEvent(new Event("error"));return}else{this.#f();return}let i=s.headersList.get("content-type",!0),n=i!==null?N8e(i):"failure",o=n!=="failure"&&n.essence==="text/event-stream";if(s.status!==200||o===!1){this.close(),this.dispatchEvent(new Event("error"));return}this.#r=Aie,this.dispatchEvent(new Event("open")),this.#l.origin=s.urlList[s.urlList.length-1].origin;let a=new x8e({eventSourceSettings:this.#l,push:c=>{this.dispatchEvent(R8e(c.type,c.options))}});w8e(s.body.stream,a,c=>{c?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#n=B8e(e)}async#f(){this.#r!==FC&&(this.#r=UC,this.dispatchEvent(new Event("error")),await v8e(this.#l.reconnectionTime),this.#r===UC&&(this.#l.lastEventId.length&&this.#i.headersList.set("last-event-id",this.#l.lastEventId,!0),this.#a()))}close(){tu.brandCheck(this,t),this.#r!==FC&&(this.#r=FC,this.#n.abort(),this.#i=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}},mie={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:UC,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:Aie,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:FC,writable:!1}};Object.defineProperties(Nm,mie);Object.defineProperties(Nm.prototype,mie);Object.defineProperties(Nm.prototype,{close:Tf,onerror:Tf,onmessage:Tf,onopen:Tf,readyState:Tf,url:Tf,withCredentials:Tf});tu.converters.EventSourceInitDict=tu.dictionaryConverter([{key:"withCredentials",converter:tu.converters.boolean,defaultValue:()=>!1},{key:"dispatcher",converter:tu.converters.any}]);gie.exports={EventSource:Nm,defaultReconnectionTime:pie}});var Fh=A((zPt,De)=>{"use strict";var Q8e=tm(),Eie=zE(),P8e=rm(),O8e=m7(),D8e=sm(),k8e=NM(),M8e=F7(),L8e=$7(),Cie=yt(),px=st(),{InvalidArgumentError:fx}=Cie,Rm=Qee(),U8e=$E(),F8e=cL(),q8e=pte(),G8e=hL(),H8e=YM(),z8e=mS(),{getGlobalDispatcher:Iie,setGlobalDispatcher:V8e}=xS(),$8e=NS(),j8e=nS(),J8e=oS();Object.assign(Eie.prototype,Rm);De.exports.Dispatcher=Eie;De.exports.Client=Q8e;De.exports.Pool=P8e;De.exports.BalancedPool=O8e;De.exports.Agent=D8e;De.exports.ProxyAgent=k8e;De.exports.EnvHttpProxyAgent=M8e;De.expo Line truncated
%s`,N,N,C,s);var P=C.type==="*"?lU:C.type==="?"?cU:"\\"+C.type;i=!0,s=s.slice(0,C.reStart)+P+"\\("+N}p(),n&&(s+="\\\\");var Q=!1;switch(s.charAt(0)){case"[":case".":case"(":Q=!0}for(var k=a.length-1;k>-1;k--){var G=a[k],X=s.slice(0,G.reStart),L=s.slice(G.reStart,G.reEnd-8),U=s.slice(G.reEnd-8,G.reEnd),q=s.slice(G.reEnd);U+=q;var V=X.split("(").length-1,re=q;for(m=0;m<V;m++)re=re.replace(/\)[+*?]?/,"");q=re;var _e="";q===""&&e!==Gx&&(_e="$");var we=X+L+q+_e+U;s=we}if(s!==""&&i&&(s="(?=.)"+s),Q&&(s=d+s),e===Gx)return[s,i];if(!i)return C$e(t);var le=r.nocase?"i":"";try{var ct=new RegExp("^"+s+"$",le)}catch{return new RegExp("$.")}return ct._glob=t,ct._src=s,ct}Gn.makeRe=function(t,e){return new Jr(t,e||{}).makeRe()};Jr.prototype.makeRe=E$e;function E$e(){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?lU:e.dot?h$e:d$e,s=e.nocase?"i":"",i=t.map(function(n){return n.map(function(o){return o===Mf?r:typeof o=="string"?I$e(o):o._src}).join("\\/")}).join("|");i="^(?:"+i+")$",this.negate&&(i="^(?!"+i+").*$");try{this.regexp=new RegExp(i,s)}catch{this.regexp=!1}return this.regexp}Gn.match=function(t,e,r){r=r||{};var s=new Jr(e,r);return t=t.filter(function(i){return s.match(i)}),s.options.nonull&&!t.length&&t.push(e),t};Jr.prototype.match=function(e,r){if(typeof r>"u"&&(r=this.partial),this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return e==="";if(e==="/"&&r)return!0;var s=this.options;dI.sep!=="/"&&(e=e.split(dI.sep).join("/")),e=e.split(Tae),this.debug(this.pattern,"split",e);var i=this.set;this.debug(this.pattern,"set",i);var n,o;for(o=e.length-1;o>=0&&(n=e[o],!n);o--);for(o=0;o<i.length;o++){var a=i[o],c=e;s.matchBase&&a.length===1&&(c=[n]);var l=this.matchOne(c,a,r);if(l)return s.flipNegate?!0:!this.negate}return s.flipNegate?!1:this.negate};Jr.prototype.matchOne=function(t,e,r){return e.indexOf(Mf)!==-1?this._matchGlobstar(t,e,r,0,0):this._matchOne(t,e,r,0,0)};Jr.prototype._matchGlobstar=function(t,e,r,s,i){var n,o=-1;for(n=i;n<e.length;n++)if(e[n]===Mf){o=n;break}var a=-1;for(n=e.length-1;n>=0;n--)if(e[n]===Mf){a=n;break}var c=e.slice(i,o),l=r?e.slice(o+1):e.slice(o+1,a),u=r?[]:e.slice(a+1);if(c.length){var h=t.slice(s,s+c.length);if(!this._matchOne(h,c,r,0,0))return!1;s+=c.length}var d=0;if(u.length){if(u.length+s>t.length)return!1;var f=t.length-u.length;if(this._matchOne(t,u,r,f,0))d=u.length;else{if(t[t.length-1]!==""||s+u.length===t.length||(f--,!this._matchOne(t,u,r,f,0)))return!1;d=u.length+1}}if(!l.length){var p=!!d;for(n=s;n<t.length-d;n++){var m=String(t[n]);if(p=!0,m==="."||m===".."||!this.options.dot&&m.charAt(0)===".")return!1}return r||p}for(var E=[[[],0]],y=E[0],C=0,w=[0],S=0;S<l.length;S++){var N=l[S];N===Mf?(w.push(C),y=[[],0],E.push(y)):(y[0].push(N),C++)}for(var P=E.length-1,Q=t.length-d,k=0;k<E.length;k++)E[k][1]=Q-(w[P--]+E[k][0].length);return!!this._matchGlobStarBodySections(t,E,s,0,r,0,!!d)};Jr.prototype._matchGlobStarBodySections=function(t,e,r,s,i,n,o){var a=e[s];if(!a){for(var c=r;c<t.length;c++){o=!0;var l=t[c];if(l==="."||l===".."||!this.options.dot&&l.charAt(0)===".")return!1}return o}for(var u=a[0],h=a[1];r<=h;){var d=this._matchOne(t.slice(0,r+u.length),u,i,r,0);if(d&&n<this.maxGlobstarRecursion){var f=this._matchGlobStarBodySections(t,e,r+u.length,s+1,i,n+1,o);if(f!==!1)return f}var l=t[r];if(l==="."||l===".."||!this.options.dot&&l.charAt(0)===".")return!1;r++}return i||null};Jr.prototype._matchOne=function(t,e,r,s,i){var n,o,a,c;for(n=s,o=i,a=t.length,c=e.length;n<a&&o<c;n++,o++){this.debug("matchOne loop");var l=e[o],u=t[n];if(this.debug(e,l,u),l===!1||l===Mf)return!1;var h;if(typeof l=="string"?(h=u===l,this.debug("string match",l,u,h)):(h=u.match(l),this.debug("pattern match",l,u,h)),!h)return!1}if(n===a&&o===c)return!0;if(n===a)return r;if(o===c)return n===a-1&&t[n]==="";throw new Error("wtf?")};function C$e(t){return t.replace(/\\(.)/g,"$1")}function I$e(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}});var AI=A((tMt,Mae)=>{"use strict";var v$e="2.0.0",T$e=Number.MAX_SAFE_INTEGER||9007199254740991,_$e=16,Q$e=250,P$e=["major","premajor","minor","preminor","patch","prepatch","prerelease"];Mae.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:_$e,MAX_SAFE_BUILD_LENGTH:Q$e,MAX_SAFE_INTEGER:T$e,RELEASE_TYPES:P$e,SEMVER_SPEC_VERSION:v$e,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var mI=A((rMt,Lae)=>{"use strict";var O$e=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};Lae.exports=O$e});var qm=A((Ec,Uae)=>{"use strict";var{MAX_SAFE_COMPONENT_LENGTH:hU,MAX_SAFE_BUILD_LENGTH:D$e,MAX_LENGTH:k$e}=AI(),M$e=mI();Ec=Uae.exports={};var L$e=Ec.re=[],U$e=Ec.safeRe=[],fe=Ec.src=[],F$e=Ec.safeSrc=[],pe=Ec.t={},q$e=0,dU="[a-zA-Z0-9-]",G$e=[["\\s",1],["\\d",k$e],[dU,D$e]],H$e=t=>{for(let[e,r]of G$e)t=t.split(`${e}*`).join(`${e}{0,${r}}`).split(`${e}+`).join(`${Line truncated
`).join(`
`+n),t.push(i+"m+"+xS.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=hVe()+e+" "+t[0]}function hVe(){return Qs.inspectOpts.hideDate?"":new Date().toISOString()+" "}function fVe(...t){return process.stderr.write(SS.format(...t)+`
`)}function AVe(t){t?process.env.DEBUG=t:delete process.env.DEBUG}function pVe(){return process.env.DEBUG}function mVe(t){t.inspectOpts={};let e=Object.keys(Qs.inspectOpts);for(let r=0;r<e.length;r++)t.inspectOpts[e[r]]=Qs.inspectOpts[e[r]]}xS.exports=_M()(Qs);var{formatters:kie}=xS.exports;kie.o=function(t){return this.inspectOpts.colors=this.useColors,SS.inspect(t,this.inspectOpts).split(`
`).map(e=>e.trim()).join(" ")};kie.O=function(t){return this.inspectOpts.colors=this.useColors,SS.inspect(t,this.inspectOpts)}});var Xh=m((fBt,kM)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?kM.exports=vie():kM.exports=Mie()});var Uie=m(Gi=>{"use strict";var gVe=Gi&&Gi.__createBinding||(Object.create?(function(t,e,r,s){s===void 0&&(s=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,s,i)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),yVe=Gi&&Gi.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Lie=Gi&&Gi.__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)&&gVe(e,t,r);return yVe(e,t),e};Object.defineProperty(Gi,"__esModule",{value:!0});Gi.req=Gi.json=Gi.toBuffer=void 0;var EVe=Lie(require("http")),CVe=Lie(require("https"));async function Fie(t){let e=0,r=[];for await(let s of t)e+=s.length,r.push(s);return Buffer.concat(r,e)}Gi.toBuffer=Fie;async function IVe(t){let r=(await Fie(t)).toString("utf8");try{return JSON.parse(r)}catch(s){let i=s;throw i.message+=` (input: ${r})`,i}}Gi.json=IVe;function bVe(t,e={}){let s=((typeof t=="string"?t:t.href).startsWith("https:")?CVe:EVe).request(t,e),i=new Promise((n,o)=>{s.once("response",n).once("error",o).end()});return s.then=i.then.bind(i),s}Gi.req=bVe});var zie=m(Qn=>{"use strict";var Gie=Qn&&Qn.__createBinding||(Object.create?(function(t,e,r,s){s===void 0&&(s=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,s,i)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),wVe=Qn&&Qn.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Hie=Qn&&Qn.__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)&&Gie(e,t,r);return wVe(e,t),e},BVe=Qn&&Qn.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&Gie(e,t,r)};Object.defineProperty(Qn,"__esModule",{value:!0});Qn.Agent=void 0;var SVe=Hie(require("net")),qie=Hie(require("http")),xVe=require("https");BVe(Uie(),Qn);var ec=Symbol("AgentBaseInternalState"),MM=class extends qie.Agent{constructor(e){super(e),this[ec]={}}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(s=>s.indexOf("(https.js:")!==-1||s.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 SVe.Socket({writable:!1});return this.sockets[e].push(r),this.totalSocketCount++,r}decrementSockets(e,r){if(!this.sockets[e]||r===null)return;let s=this.sockets[e],i=s.indexOf(r);i!==-1&&(s.splice(i,1),this.totalSocketCount--,s.length===0&&delete this.sockets[e])}getName(e){return this.isSecureEndpoint(e)?xVe.Agent.prototype.getName.call(this,e):super.getName(e)}createSocket(e,r,s){let i={...r,secureEndpoint:this.isSecureEndpoint(r)},n=this.getName(i),o=this.incrementSockets(n);Promise.resolve().then(()=>this.connect(e,i)).then(a=>{if(this.decrementSockets(n,o),a instanceof qie.Agent)try{return a.addRequest(e,i)}catch(c){return s(c)}this[ec].currentSocket=a,super.createSocket(e,r,s)},a=>{this.decrementSockets(n,o),s(a)})}createConnection(){let e=this[ec].currentSocket;if(this[ec].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[ec].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[ec]&&(this[ec].defaultPort=e)}get protocol(){return this[ec].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[ec]&&(this[ec].protocol=e)}};Qn.Agent=MM});var Vie=m(Hp=>{"use strict";var NVe=Hp&&Hp.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Hp,"__esModule",{value:!0});Hp.parseProxyResponse=void 0;var RVe=NVe(Xh()),NS=(0,RVe.default)("https-proxy-agent:parse-proxy-response");function TVe(t){return new Promise((e,r)=>{let s=0,i=[];function n(){let u=t.read();u?l(u):t.once("readable",n)}function o(){t.removeListener("end",a),t.removeListener("error",c),t.removeListener("readable",n)}function a(){o(),NS("onend"),r(new Error("Proxy connection ended before receiving CONNECT response"))}function c(u){o(),NS("onerror %o",u),r(u)}function l(u){i.push(u),s+=u.length;let d=Buffer.concat(i,s),h=d.indexOf(`\r
`+n),t.push(i+"m+"+_N.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=bYe()+e+" "+t[0]}function bYe(){return Us.inspectOpts.hideDate?"":new Date().toISOString()+" "}function wYe(...t){return process.stderr.write(TN.format(...t)+`
`)}function BYe(t){t?process.env.DEBUG=t:delete process.env.DEBUG}function SYe(){return process.env.DEBUG}function xYe(t){t.inspectOpts={};let e=Object.keys(Us.inspectOpts);for(let r=0;r<e.length;r++)t.inspectOpts[e[r]]=Us.inspectOpts[e[r]]}_N.exports=eF()(Us);var{formatters:Cue}=_N.exports;Cue.o=function(t){return this.inspectOpts.colors=this.useColors,TN.inspect(t,this.inspectOpts).split(`
`).map(e=>e.trim()).join(" ")};Cue.O=function(t){return this.inspectOpts.colors=this.useColors,TN.inspect(t,this.inspectOpts)}});var Jf=A((C2t,iF)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?iF.exports=Aue():iF.exports=Iue()});var Bue=A(nn=>{"use strict";var NYe=nn&&nn.__createBinding||(Object.create?(function(t,e,r,s){s===void 0&&(s=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,s,i)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),RYe=nn&&nn.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),bue=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)&&NYe(e,t,r);return RYe(e,t),e};Object.defineProperty(nn,"__esModule",{value:!0});nn.req=nn.json=nn.toBuffer=void 0;var vYe=bue(require("http")),TYe=bue(require("https"));async function wue(t){let e=0,r=[];for await(let s of t)e+=s.length,r.push(s);return Buffer.concat(r,e)}nn.toBuffer=wue;async function _Ye(t){let r=(await wue(t)).toString("utf8");try{return JSON.parse(r)}catch(s){let i=s;throw i.message+=` (input: ${r})`,i}}nn.json=_Ye;function QYe(t,e={}){let s=((typeof t=="string"?t:t.href).startsWith("https:")?TYe:vYe).request(t,e),i=new Promise((n,o)=>{s.once("response",n).once("error",o).end()});return s.then=i.then.bind(i),s}nn.req=QYe});var Rue=A($n=>{"use strict";var xue=$n&&$n.__createBinding||(Object.create?(function(t,e,r,s){s===void 0&&(s=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,s,i)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),PYe=$n&&$n.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Nue=$n&&$n.__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)&&xue(e,t,r);return PYe(e,t),e},OYe=$n&&$n.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&xue(e,t,r)};Object.defineProperty($n,"__esModule",{value:!0});$n.Agent=void 0;var DYe=Nue(require("net")),Sue=Nue(require("http")),kYe=require("https");OYe(Bue(),$n);var wc=Symbol("AgentBaseInternalState"),nF=class extends Sue.Agent{constructor(e){super(e),this[wc]={}}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(s=>s.indexOf("(https.js:")!==-1||s.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 DYe.Socket({writable:!1});return this.sockets[e].push(r),this.totalSocketCount++,r}decrementSockets(e,r){if(!this.sockets[e]||r===null)return;let s=this.sockets[e],i=s.indexOf(r);i!==-1&&(s.splice(i,1),this.totalSocketCount--,s.length===0&&delete this.sockets[e])}getName(e){return this.isSecureEndpoint(e)?kYe.Agent.prototype.getName.call(this,e):super.getName(e)}createSocket(e,r,s){let i={...r,secureEndpoint:this.isSecureEndpoint(r)},n=this.getName(i),o=this.incrementSockets(n);Promise.resolve().then(()=>this.connect(e,i)).then(a=>{if(this.decrementSockets(n,o),a instanceof Sue.Agent)try{return a.addRequest(e,i)}catch(c){return s(c)}this[wc].currentSocket=a,super.createSocket(e,r,s)},a=>{this.decrementSockets(n,o),s(a)})}createConnection(){let e=this[wc].currentSocket;if(this[wc].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[wc].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[wc]&&(this[wc].defaultPort=e)}get protocol(){return this[wc].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[wc]&&(this[wc].protocol=e)}};$n.Agent=nF});var vue=A(Km=>{"use strict";var MYe=Km&&Km.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Km,"__esModule",{value:!0});Km.parseProxyResponse=void 0;var LYe=MYe(Jf()),QN=(0,LYe.default)("https-proxy-agent:parse-proxy-response");function UYe(t){return new Promise((e,r)=>{let s=0,i=[];function n(){let u=t.read();u?l(u):t.once("readable",n)}function o(){t.removeListener("end",a),t.removeListener("error",c),t.removeListener("readable",n)}function a(){o(),QN("onend"),r(new Error("Proxy connection ended before receiving CONNECT response"))}function c(u){o(),QN("onerror %o",u),r(u)}function l(u){i.push(u),s+=u.length;let h=Buffer.concat(i,s),d=h.indexOf(`\r
\r
`);if(h===-1){NS("have not received end of HTTP headers yet..."),n();return}let f=d.slice(0,h).toString("ascii").split(`\r
`),A=f.shift();if(!A)return t.destroy(),r(new Error("No header received from proxy CONNECT response"));let p=A.split(" "),E=+p[1],y=p.slice(2).join(" "),C={};for(let w of f){if(!w)continue;let x=w.indexOf(":");if(x===-1)return t.destroy(),r(new Error(`Invalid header from proxy CONNECT response: "${w}"`));let N=w.slice(0,x).toLowerCase(),P=w.slice(x+1).trimStart(),D=C[N];typeof D=="string"?C[N]=[D,P]:Array.isArray(D)?D.push(P):C[N]=P}NS("got proxy server response: %o %o",A,C),o(),e({connect:{statusCode:E,statusText:y,headers:C},buffered:d})}t.on("error",c),t.on("end",a),n()})}Hp.parseProxyResponse=TVe});var Kie=m(yo=>{"use strict";var QVe=yo&&yo.__createBinding||(Object.create?(function(t,e,r,s){s===void 0&&(s=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,s,i)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),vVe=yo&&yo.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Yie=yo&&yo.__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)&&QVe(e,t,r);return vVe(e,t),e},Wie=yo&&yo.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(yo,"__esModule",{value:!0});yo.HttpsProxyAgent=void 0;var RS=Yie(require("net")),$ie=Yie(require("tls")),_Ve=Wie(require("assert")),PVe=Wie(Xh()),DVe=zie(),OVe=require("url"),kVe=Vie(),$E=(0,PVe.default)("https-proxy-agent"),jie=t=>t.servername===void 0&&t.host&&!RS.isIP(t.host)?{...t,servername:t.host}:t,TS=class extends DVe.Agent{constructor(e,r){super(r),this.options={path:void 0},this.proxy=typeof e=="string"?new OVe.URL(e):e,this.proxyHeaders=r?.headers??{},$E("Creating new HttpsProxyAgent instance: %o",this.proxy.href);let s=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),i=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={ALPNProtocols:["http/1.1"],...r?Jie(r,"headers"):null,host:s,port:i}}async connect(e,r){let{proxy:s}=this;if(!r.host)throw new TypeError('No "host" provided');let i;s.protocol==="https:"?($E("Creating `tls.Socket`: %o",this.connectOpts),i=$ie.connect(jie(this.connectOpts))):($E("Creating `net.Socket`: %o",this.connectOpts),i=RS.connect(this.connectOpts));let n=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders},o=RS.isIPv6(r.host)?`[${r.host}]`:r.host,a=`CONNECT ${o}:${r.port} HTTP/1.1\r
`;if(s.username||s.password){let h=`${decodeURIComponent(s.username)}:${decodeURIComponent(s.password)}`;n["Proxy-Authorization"]=`Basic ${Buffer.from(h).toString("base64")}`}n.Host=`${o}:${r.port}`,n["Proxy-Connection"]||(n["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let h of Object.keys(n))a+=`${h}: ${n[h]}\r
`;let c=(0,kVe.parseProxyResponse)(i);i.write(`${a}\r
`);let{connect:l,buffered:u}=await c;if(e.emit("proxyConnect",l),this.emit("proxyConnect",l,e),l.statusCode===200)return e.once("socket",MVe),r.secureEndpoint?($E("Upgrading socket connection to TLS"),$ie.connect({...Jie(jie(r),"host","path","port"),socket:i})):i;i.destroy();let d=new RS.Socket({writable:!1});return d.readable=!0,e.once("socket",h=>{$E("Replaying proxy buffer for failed request"),(0,_Ve.default)(h.listenerCount("data")>0),h.push(u),h.push(null)}),d}};TS.protocols=["http","https"];yo.HttpsProxyAgent=TS;function MVe(t){t.resume()}function Jie(t,...e){let r={},s;for(s in t)e.includes(s)||(r[s]=t[s]);return r}});var ene=m(Hi=>{"use strict";var LVe=Hi&&Hi.__createBinding||(Object.create?(function(t,e,r,s){s===void 0&&(s=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,s,i)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),FVe=Hi&&Hi.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Xie=Hi&&Hi.__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)&&LVe(e,t,r);return FVe(e,t),e};Object.defineProperty(Hi,"__esModule",{value:!0});Hi.req=Hi.json=Hi.toBuffer=void 0;var UVe=Xie(require("http")),qVe=Xie(require("https"));async function Zie(t){let e=0,r=[];for await(let s of t)e+=s.length,r.push(s);return Buffer.concat(r,e)}Hi.toBuffer=Zie;async function GVe(t){let r=(await Zie(t)).toString("utf8");try{return JSON.parse(r)}catch(s){let i=s;throw i.message+=` (input: ${r})`,i}}Hi.json=GVe;function HVe(t,e={}){let s=((typeof t=="string"?t:t.href).startsWith("https:")?qVe:UVe).request(t,e),i=new Promise((n,o)=>{s.once("response",n).once("error",o).end()});return s.then=i.then.bind(i),s}Hi.req=HVe});var jE=m(vn=>{"use strict";var rne=vn&&vn.__createBinding||(Object.create?(function(t,e,r,s){s===void 0&&(s=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,s,i)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),zVe=vn&&vn.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),sne=vn&&vn.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&rne(e,t,r);return zVe(e,t),e},VVe=vn&&vn.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&rne(e,t,r)};Object.defineProperty(vn,"__esModule",{value:!0});vn.Agent=void 0;var $Ve=sne(require("net")),tne=sne(require("http")),jVe=require("https");VVe(ene(),vn);var tc=Symbol("AgentBaseInternalState"),LM=class extends tne.Agent{constructor(e){super(e),this[tc]={}}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(s=>s.indexOf("(https.js:")!==-1||s.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 $Ve.Socket({writable:!1});return this.sockets[e].push(r),this.totalSocketCount++,r}decrementSockets(e,r){if(!this.sockets[e]||r===null)return;let s=this.sockets[e],i=s.indexOf(r);i!==-1&&(s.splice(i,1),this.totalSocketCount--,s.length===0&&delete this.sockets[e])}getName(e){return(typeof e.secureEndpoint=="boolean"?e.secureEndpoint:this.isSecureEndpoint(e))?jVe.Agent.prototype.getName.call(this,e):super.getName(e)}createSocket(e,r,s){let i={...r,secureEndpoint:this.isSecureEndpoint(r)},n=this.getName(i),o=this.incrementSockets(n);Promise.resolve().then(()=>this.connect(e,i)).then(a=>{if(this.decrementSockets(n,o),a instanceof tne.Agent)return a.addRequest(e,i);this[tc].currentSocket=a,super.createSocket(e,r,s)},a=>{this.decrementSockets(n,o),s(a)})}createConnection(){let e=this[tc].currentSocket;if(this[tc].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[tc].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[tc]&&(this[tc].defaultPort=e)}get protocol(){return this[tc].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[tc]&&(this[tc].protocol=e)}};vn.Agent=LM});var FM=m(Eo=>{"use strict";var JVe=Eo&&Eo.__createBinding||(Object.create?(function(t,e,r,s){s===void 0&&(s=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,s,i)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),YVe=Eo&&Eo.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),nne=Eo&&Eo.__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)&&JVe(e,t,r);return YVe(e,t),e},WVe=Eo&&Eo.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Eo,"__esModule",{value:!0});Eo.HttpProxyAgent=void 0;var KVe=nne(require("net")),XVe=nne(require("tls")),ZVe=WVe(Xh()),e$e=require("events"),t$e=jE(),ine=require("url"),zp=(0,ZVe.default)("http-proxy-agent"),QS=class extends t$e.Agent{constructor(e,r){super(r),this.proxy=typeof e=="string"?new ine.URL(e):e,this.proxyHeaders=r?.headers??{},zp("Creating new HttpProxyAgent instance: %o",this.proxy.href);let s=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),i=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={...r?r$e(r,"headers"):null,host:s,port:i}}addRequest(e,r){e._header=null,this.setRequestProps(e,r),super.addRequest(e,r)}setRequestProps(e,r){let{proxy:s}=this,i=r.secureEndpoint?"https:":"http:",n=e.getHeader("host")||"localhost",o=`${i}//${n}`,a=new ine.URL(e.path,o);r.port!==80&&(a.port=String(r.port)),e.path=String(a);let c=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders};if(s.username||s.password){let l=`${decodeURIComponent(s.username)}:${decodeURIComponent(s.password)}`;c["Proxy-Authorization"]=`Basic ${Buffer.from(l).toString("base64")}`}c["Proxy-Connection"]||(c["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let l of Object.keys(c)){let u=c[l];u&&e.setHeader(l,u)}}async connect(e,r){e._header=null,e.path.includes("://")||this.setRequestProps(e,r);let s,i;zp("Regenerating stored HTTP header string for request"),e._implicitHeader(),e.outputData&&e.outputData.length>0&&(zp("Patching connection write() output buffer with updated header"),s=e.outputData[0].data,i=s.indexOf(`\r
`);if(d===-1){QN("have not received end of HTTP headers yet..."),n();return}let f=h.slice(0,d).toString("ascii").split(`\r
`),p=f.shift();if(!p)return t.destroy(),r(new Error("No header received from proxy CONNECT response"));let m=p.split(" "),E=+m[1],y=m.slice(2).join(" "),C={};for(let w of f){if(!w)continue;let S=w.indexOf(":");if(S===-1)return t.destroy(),r(new Error(`Invalid header from proxy CONNECT response: "${w}"`));let N=w.slice(0,S).toLowerCase(),P=w.slice(S+1).trimStart(),Q=C[N];typeof Q=="string"?C[N]=[Q,P]:Array.isArray(Q)?Q.push(P):C[N]=P}QN("got proxy server response: %o %o",p,C),o(),e({connect:{statusCode:E,statusText:y,headers:C},buffered:h})}t.on("error",c),t.on("end",a),n()})}Km.parseProxyResponse=UYe});var Due=A(Mo=>{"use strict";var FYe=Mo&&Mo.__createBinding||(Object.create?(function(t,e,r,s){s===void 0&&(s=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,s,i)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),qYe=Mo&&Mo.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Pue=Mo&&Mo.__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)&&FYe(e,t,r);return qYe(e,t),e},Oue=Mo&&Mo.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Mo,"__esModule",{value:!0});Mo.HttpsProxyAgent=void 0;var PN=Pue(require("net")),Tue=Pue(require("tls")),GYe=Oue(require("assert")),HYe=Oue(Jf()),zYe=Rue(),VYe=require("url"),$Ye=vue(),QI=(0,HYe.default)("https-proxy-agent"),_ue=t=>t.servername===void 0&&t.host&&!PN.isIP(t.host)?{...t,servername:t.host}:t,ON=class extends zYe.Agent{constructor(e,r){super(r),this.options={path:void 0},this.proxy=typeof e=="string"?new VYe.URL(e):e,this.proxyHeaders=r?.headers??{},QI("Creating new HttpsProxyAgent instance: %o",this.proxy.href);let s=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),i=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={ALPNProtocols:["http/1.1"],...r?Que(r,"headers"):null,host:s,port:i}}async connect(e,r){let{proxy:s}=this;if(!r.host)throw new TypeError('No "host" provided');let i;s.protocol==="https:"?(QI("Creating `tls.Socket`: %o",this.connectOpts),i=Tue.connect(_ue(this.connectOpts))):(QI("Creating `net.Socket`: %o",this.connectOpts),i=PN.connect(this.connectOpts));let n=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders},o=PN.isIPv6(r.host)?`[${r.host}]`:r.host,a=`CONNECT ${o}:${r.port} HTTP/1.1\r
`;if(s.username||s.password){let d=`${decodeURIComponent(s.username)}:${decodeURIComponent(s.password)}`;n["Proxy-Authorization"]=`Basic ${Buffer.from(d).toString("base64")}`}n.Host=`${o}:${r.port}`,n["Proxy-Connection"]||(n["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let d of Object.keys(n))a+=`${d}: ${n[d]}\r
`;let c=(0,$Ye.parseProxyResponse)(i);i.write(`${a}\r
`);let{connect:l,buffered:u}=await c;if(e.emit("proxyConnect",l),this.emit("proxyConnect",l,e),l.statusCode===200)return e.once("socket",jYe),r.secureEndpoint?(QI("Upgrading socket connection to TLS"),Tue.connect({...Que(_ue(r),"host","path","port"),socket:i})):i;i.destroy();let h=new PN.Socket({writable:!1});return h.readable=!0,e.once("socket",d=>{QI("Replaying proxy buffer for failed request"),(0,GYe.default)(d.listenerCount("data")>0),d.push(u),d.push(null)}),h}};ON.protocols=["http","https"];Mo.HttpsProxyAgent=ON;function jYe(t){t.resume()}function Que(t,...e){let r={},s;for(s in t)e.includes(s)||(r[s]=t[s]);return r}});var Lue=A(on=>{"use strict";var JYe=on&&on.__createBinding||(Object.create?(function(t,e,r,s){s===void 0&&(s=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,s,i)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),YYe=on&&on.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),kue=on&&on.__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)&&JYe(e,t,r);return YYe(e,t),e};Object.defineProperty(on,"__esModule",{value:!0});on.req=on.json=on.toBuffer=void 0;var WYe=kue(require("http")),KYe=kue(require("https"));async function Mue(t){let e=0,r=[];for await(let s of t)e+=s.length,r.push(s);return Buffer.concat(r,e)}on.toBuffer=Mue;async function XYe(t){let r=(await Mue(t)).toString("utf8");try{return JSON.parse(r)}catch(s){let i=s;throw i.message+=` (input: ${r})`,i}}on.json=XYe;function ZYe(t,e={}){let s=((typeof t=="string"?t:t.href).startsWith("https:")?KYe:WYe).request(t,e),i=new Promise((n,o)=>{s.once("response",n).once("error",o).end()});return s.then=i.then.bind(i),s}on.req=ZYe});var PI=A(jn=>{"use strict";var Fue=jn&&jn.__createBinding||(Object.create?(function(t,e,r,s){s===void 0&&(s=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,s,i)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),e9e=jn&&jn.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),que=jn&&jn.__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)&&Fue(e,t,r);return e9e(e,t),e},t9e=jn&&jn.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&Fue(e,t,r)};Object.defineProperty(jn,"__esModule",{value:!0});jn.Agent=void 0;var r9e=que(require("net")),Uue=que(require("http")),s9e=require("https");t9e(Lue(),jn);var Bc=Symbol("AgentBaseInternalState"),oF=class extends Uue.Agent{constructor(e){super(e),this[Bc]={}}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(s=>s.indexOf("(https.js:")!==-1||s.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 r9e.Socket({writable:!1});return this.sockets[e].push(r),this.totalSocketCount++,r}decrementSockets(e,r){if(!this.sockets[e]||r===null)return;let s=this.sockets[e],i=s.indexOf(r);i!==-1&&(s.splice(i,1),this.totalSocketCount--,s.length===0&&delete this.sockets[e])}getName(e){return(typeof e.secureEndpoint=="boolean"?e.secureEndpoint:this.isSecureEndpoint(e))?s9e.Agent.prototype.getName.call(this,e):super.getName(e)}createSocket(e,r,s){let i={...r,secureEndpoint:this.isSecureEndpoint(r)},n=this.getName(i),o=this.incrementSockets(n);Promise.resolve().then(()=>this.connect(e,i)).then(a=>{if(this.decrementSockets(n,o),a instanceof Uue.Agent)return a.addRequest(e,i);this[Bc].currentSocket=a,super.createSocket(e,r,s)},a=>{this.decrementSockets(n,o),s(a)})}createConnection(){let e=this[Bc].currentSocket;if(this[Bc].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[Bc].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[Bc]&&(this[Bc].defaultPort=e)}get protocol(){return this[Bc].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[Bc]&&(this[Bc].protocol=e)}};jn.Agent=oF});var aF=A(Lo=>{"use strict";var i9e=Lo&&Lo.__createBinding||(Object.create?(function(t,e,r,s){s===void 0&&(s=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,s,i)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),n9e=Lo&&Lo.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Hue=Lo&&Lo.__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)&&i9e(e,t,r);return n9e(e,t),e},o9e=Lo&&Lo.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Lo,"__esModule",{value:!0});Lo.HttpProxyAgent=void 0;var a9e=Hue(require("net")),c9e=Hue(require("tls")),l9e=o9e(Jf()),u9e=require("events"),h9e=PI(),Gue=require("url"),Xm=(0,l9e.default)("http-proxy-agent"),DN=class extends h9e.Agent{constructor(e,r){super(r),this.proxy=typeof e=="string"?new Gue.URL(e):e,this.proxyHeaders=r?.headers??{},Xm("Creating new HttpProxyAgent instance: %o",this.proxy.href);let s=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),i=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={...r?d9e(r,"headers"):null,host:s,port:i}}addRequest(e,r){e._header=null,this.setRequestProps(e,r),super.addRequest(e,r)}setRequestProps(e,r){let{proxy:s}=this,i=r.secureEndpoint?"https:":"http:",n=e.getHeader("host")||"localhost",o=`${i}//${n}`,a=new Gue.URL(e.path,o);r.port!==80&&(a.port=String(r.port)),e.path=String(a);let c=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders};if(s.username||s.password){let l=`${decodeURIComponent(s.username)}:${decodeURIComponent(s.password)}`;c["Proxy-Authorization"]=`Basic ${Buffer.from(l).toString("base64")}`}c["Proxy-Connection"]||(c["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let l of Object.keys(c)){let u=c[l];u&&e.setHeader(l,u)}}async connect(e,r){e._header=null,e.path.includes("://")||this.setRequestProps(e,r);let s,i;Xm("Regenerating stored HTTP header string for request"),e._implicitHeader(),e.outputData&&e.outputData.length>0&&(Xm("Patching connection write() output buffer with updated header"),s=e.outputData[0].data,i=s.indexOf(`\r
\r
`)+4,e.outputData[0].data=e._header+s.substring(i),zp("Output buffer: %o",e.outputData[0].data));let n;return this.proxy.protocol==="https:"?(zp("Creating `tls.Socket`: %o",this.connectOpts),n=XVe.connect(this.connectOpts)):(zp("Creating `net.Socket`: %o",this.connectOpts),n=KVe.connect(this.connectOpts)),await(0,e$e.once)(n,"connect"),n}};QS.protocols=["http","https"];Eo.HttpProxyAgent=QS;function r$e(t,...e){let r={},s;for(s in t)e.includes(s)||(r[s]=t[s]);return r}});var Nne=m(zS=>{"use strict";Object.defineProperty(zS,"__esModule",{value:!0});zS.state=void 0;zS.state={instrumenterImplementation:void 0}});var zne=m(YS=>{"use strict";Object.defineProperty(YS,"__esModule",{value:!0});YS.state=void 0;YS.state={operationRequestMap:new WeakMap}});var bce=m(cm=>{"use strict";Object.defineProperty(cm,"__esModule",{value:!0});var b5e=require("os"),w5e=require("util");function B5e(t){return t&&typeof t=="object"&&"default"in t?t:{default:t}}var S5e=B5e(w5e);function x5e(t,...e){process.stderr.write(`${S5e.default.format(t,...e)}${b5e.EOL}`)}var hce=typeof process<"u"&&process.env&&process.env.DEBUG||void 0,Ace,gq=[],yq=[],AN=[];hce&&Eq(hce);var pce=Object.assign(t=>mce(t),{enable:Eq,enabled:Cq,disable:N5e,log:x5e});function Eq(t){Ace=t,gq=[],yq=[];let e=/\*/g,r=t.split(",").map(s=>s.trim().replace(e,".*?"));for(let s of r)s.startsWith("-")?yq.push(new RegExp(`^${s.substr(1)}$`)):gq.push(new RegExp(`^${s}$`));for(let s of AN)s.enabled=Cq(s.namespace)}function Cq(t){if(t.endsWith("*"))return!0;for(let e of yq)if(e.test(t))return!1;for(let e of gq)if(e.test(t))return!0;return!1}function N5e(){let t=Ace||"";return Eq(""),t}function mce(t){let e=Object.assign(r,{enabled:Cq(t),destroy:R5e,log:pce.log,namespace:t,extend:T5e});function r(...s){e.enabled&&(s.length>0&&(s[0]=`${t} ${s[0]}`),e.log(...s))}return AN.push(e),e}function R5e(){let t=AN.indexOf(this);return t>=0?(AN.splice(t,1),!0):!1}function T5e(t){let e=mce(`${this.namespace}:${t}`);return e.log=this.log,e}var DC=pce,gce=new Set,hN=typeof process<"u"&&process.env&&process.env.AZURE_LOG_LEVEL||void 0,pN,mN=DC("azure");mN.log=(...t)=>{DC.log(...t)};var Iq=["verbose","info","warning","error"];hN&&(Ice(hN)?yce(hN):console.error(`AZURE_LOG_LEVEL set to unknown log level '${hN}'; logging is not enabled. Acceptable values: ${Iq.join(", ")}.`));function yce(t){if(t&&!Ice(t))throw new Error(`Unknown log level '${t}'. Acceptable values: ${Iq.join(",")}`);pN=t;let e=[];for(let r of gce)Cce(r)&&e.push(r.namespace);DC.enable(e.join(","))}function Q5e(){return pN}var fce={verbose:400,info:300,warning:200,error:100};function v5e(t){let e=mN.extend(t);return Ece(mN,e),{error:fN(e,"error"),warning:fN(e,"warning"),info:fN(e,"info"),verbose:fN(e,"verbose")}}function Ece(t,e){e.log=(...r)=>{t.log(...r)}}function fN(t,e){let r=Object.assign(t.extend(e),{level:e});if(Ece(t,r),Cce(r)){let s=DC.disable();DC.enable(s+","+r.namespace)}return gce.add(r),r}function Cce(t){return!!(pN&&fce[t.level]<=fce[pN])}function Ice(t){return Iq.includes(t)}cm.AzureLogger=mN;cm.createClientLogger=v5e;cm.getLogLevel=Q5e;cm.setLogLevel=yce});var Bq=m(kC=>{"use strict";Object.defineProperty(kC,"__esModule",{value:!0});var lm=new WeakMap,gN=new WeakMap,OC=class t{constructor(){this.onabort=null,lm.set(this,[]),gN.set(this,!1)}get aborted(){if(!gN.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");return gN.get(this)}static get none(){return new t}addEventListener(e,r){if(!lm.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");lm.get(this).push(r)}removeEventListener(e,r){if(!lm.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");let s=lm.get(this),i=s.indexOf(r);i>-1&&s.splice(i,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 wce(t){if(t.aborted)return;t.onabort&&t.onabort.call(t);let e=lm.get(t);e&&e.slice().forEach(r=>{r.call(t,{type:"abort"})}),gN.set(t,!0)}var bq=class extends Error{constructor(e){super(e),this.name="AbortError"}},wq=class{constructor(e){if(this._signal=new OC,!!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(){wce(this._signal)}static timeout(e){let r=new OC,s=setTimeout(wce,e,r);return typeof s.unref=="function"&&s.unref(),r}};kC.AbortController=wq;kC.AbortError=bq;kC.AbortSignal=OC});var Rce=m(mi=>{"use strict";Object.defineProperty(mi,"__esModule",{value:!0});var _5e=Bq(),Rq=require("crypto"),Sq,P5e=typeof process<"u"&&!!process.version&&!!(!((Sq=process.versions)===null||Sq===void 0)&&Sq.node);function Bce(t,e){let{cleanupBeforeAbort:r,abortSignal:s,abortErrorMsg:i}=e??{};return new Promise((n,o)=>{function a(){o(new _5e.AbortError(i??"The operation was aborted."))}function c(){s?.removeEventListener("abort",l)}function l(){r?.(),c(),a()}if(s?.aborted)return a(); Line truncated
`)+4,e.outputData[0].data=e._header+s.substring(i),Xm("Output buffer: %o",e.outputData[0].data));let n;return this.proxy.protocol==="https:"?(Xm("Creating `tls.Socket`: %o",this.connectOpts),n=c9e.connect(this.connectOpts)):(Xm("Creating `net.Socket`: %o",this.connectOpts),n=a9e.connect(this.connectOpts)),await(0,u9e.once)(n,"connect"),n}};DN.protocols=["http","https"];Lo.HttpProxyAgent=DN;function d9e(t,...e){let r={},s;for(s in t)e.includes(s)||(r[s]=t[s]);return r}});var hhe=A(YN=>{"use strict";Object.defineProperty(YN,"__esModule",{value:!0});YN.state=void 0;YN.state={instrumenterImplementation:void 0}});var Rhe=A(eR=>{"use strict";Object.defineProperty(eR,"__esModule",{value:!0});eR.state=void 0;eR.state={operationRequestMap:new WeakMap}});var ope=A(mg=>{"use strict";Object.defineProperty(mg,"__esModule",{value:!0});var Q7e=require("os"),P7e=require("util");function O7e(t){return t&&typeof t=="object"&&"default"in t?t:{default:t}}var D7e=O7e(P7e);function k7e(t,...e){process.stderr.write(`${D7e.default.format(t,...e)}${Q7e.EOL}`)}var Wfe=typeof process<"u"&&process.env&&process.env.DEBUG||void 0,Xfe,U4=[],F4=[],Ev=[];Wfe&&q4(Wfe);var Zfe=Object.assign(t=>epe(t),{enable:q4,enabled:G4,disable:M7e,log:k7e});function q4(t){Xfe=t,U4=[],F4=[];let e=/\*/g,r=t.split(",").map(s=>s.trim().replace(e,".*?"));for(let s of r)s.startsWith("-")?F4.push(new RegExp(`^${s.substr(1)}$`)):U4.push(new RegExp(`^${s}$`));for(let s of Ev)s.enabled=G4(s.namespace)}function G4(t){if(t.endsWith("*"))return!0;for(let e of F4)if(e.test(t))return!1;for(let e of U4)if(e.test(t))return!0;return!1}function M7e(){let t=Xfe||"";return q4(""),t}function epe(t){let e=Object.assign(r,{enabled:G4(t),destroy:L7e,log:Zfe.log,namespace:t,extend:U7e});function r(...s){e.enabled&&(s.length>0&&(s[0]=`${t} ${s[0]}`),e.log(...s))}return Ev.push(e),e}function L7e(){let t=Ev.indexOf(this);return t>=0?(Ev.splice(t,1),!0):!1}function U7e(t){let e=epe(`${this.namespace}:${t}`);return e.log=this.log,e}var C0=Zfe,tpe=new Set,gv=typeof process<"u"&&process.env&&process.env.AZURE_LOG_LEVEL||void 0,Cv,Iv=C0("azure");Iv.log=(...t)=>{C0.log(...t)};var H4=["verbose","info","warning","error"];gv&&(npe(gv)?rpe(gv):console.error(`AZURE_LOG_LEVEL set to unknown log level '${gv}'; logging is not enabled. Acceptable values: ${H4.join(", ")}.`));function rpe(t){if(t&&!npe(t))throw new Error(`Unknown log level '${t}'. Acceptable values: ${H4.join(",")}`);Cv=t;let e=[];for(let r of tpe)ipe(r)&&e.push(r.namespace);C0.enable(e.join(","))}function F7e(){return Cv}var Kfe={verbose:400,info:300,warning:200,error:100};function q7e(t){let e=Iv.extend(t);return spe(Iv,e),{error:yv(e,"error"),warning:yv(e,"warning"),info:yv(e,"info"),verbose:yv(e,"verbose")}}function spe(t,e){e.log=(...r)=>{t.log(...r)}}function yv(t,e){let r=Object.assign(t.extend(e),{level:e});if(spe(t,r),ipe(r)){let s=C0.disable();C0.enable(s+","+r.namespace)}return tpe.add(r),r}function ipe(t){return!!(Cv&&Kfe[t.level]<=Kfe[Cv])}function npe(t){return H4.includes(t)}mg.AzureLogger=Iv;mg.createClientLogger=q7e;mg.getLogLevel=F7e;mg.setLogLevel=rpe});var $4=A(b0=>{"use strict";Object.defineProperty(b0,"__esModule",{value:!0});var gg=new WeakMap,bv=new WeakMap,I0=class t{constructor(){this.onabort=null,gg.set(this,[]),bv.set(this,!1)}get aborted(){if(!bv.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");return bv.get(this)}static get none(){return new t}addEventListener(e,r){if(!gg.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");gg.get(this).push(r)}removeEventListener(e,r){if(!gg.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");let s=gg.get(this),i=s.indexOf(r);i>-1&&s.splice(i,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 ape(t){if(t.aborted)return;t.onabort&&t.onabort.call(t);let e=gg.get(t);e&&e.slice().forEach(r=>{r.call(t,{type:"abort"})}),bv.set(t,!0)}var z4=class extends Error{constructor(e){super(e),this.name="AbortError"}},V4=class{constructor(e){if(this._signal=new I0,!!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(){ape(this._signal)}static timeout(e){let r=new I0,s=setTimeout(ape,e,r);return typeof s.unref=="function"&&s.unref(),r}};b0.AbortController=V4;b0.AbortError=z4;b0.AbortSignal=I0});var dpe=A(vi=>{"use strict";Object.defineProperty(vi,"__esModule",{value:!0});var G7e=$4(),W4=require("crypto"),j4,H7e=typeof process<"u"&&!!process.version&&!!(!((j4=process.versions)===null||j4===void 0)&&j4.node);function cpe(t,e){let{cleanupBeforeAbort:r,abortSignal:s,abortErrorMsg:i}=e??{};return new Promise((n,o)=>{function a(){o(new G7e.AbortError(i??"The operation was aborted."))}function c(){s?.removeEventListener("abort",l)}function l(){r?.(),c(),a()}if(s?.aborted)return a(); Line truncated
Polling from: ${r.config.operationLocation}
Operation status: ${u}
Polling status: ${_ce.includes(u)?"Stopped":"Running"}`),u==="succeeded"){let d=o(l,r);if(d!==void 0)return{response:await e(d).catch(Qce({state:r,stateProxy:s,isOperationError:a})),status:u}}return{response:l,status:u}}async function kce(t){let{poll:e,state:r,stateProxy:s,options:i,getOperationStatus:n,getResourceLocation:o,getOperationLocation:a,isOperationError:c,withOperationLocation:l,getPollingInterval:u,processResult:d,getError:h,updateState:f,setDelay:A,isDone:p,setErrorAsResult:E}=t,{operationLocation:y}=r.config;if(y!==void 0){let{response:C,status:w}=await J5e({poll:e,getOperationStatus:n,state:r,stateProxy:s,operationLocation:y,getResourceLocation:o,isOperationError:c,options:i});if(Dce({status:w,response:C,state:r,stateProxy:s,isDone:p,processResult:d,getError:h,setErrorAsResult:E}),!_ce.includes(w)){let x=u?.(C);x&&A(x);let N=a?.(C,r);if(N!==void 0){let P=y!==N;r.config.operationLocation=N,l?.(N,P)}else l?.(y,!1)}f?.(r,C)}}function Mce(t){let{azureAsyncOperation:e,operationLocation:r}=t;return r??e}function Lce(t){return t.headers.location}function Fce(t){return t.headers["operation-location"]}function Uce(t){return t.headers["azure-asyncoperation"]}function Y5e(t){let{location:e,requestMethod:r,requestPath:s,resourceLocationConfig:i}=t;switch(r){case"PUT":return s;case"DELETE":return;default:switch(i){case"azure-async-operation":return;case"original-uri":return s;default:return e}}}function qce(t){let{rawResponse:e,requestMethod:r,requestPath:s,resourceLocationConfig:i}=t,n=Fce(e),o=Uce(e),a=Mce({operationLocation:n,azureAsyncOperation:o}),c=Lce(e),l=r?.toLocaleUpperCase();return a!==void 0?{mode:"OperationLocation",operationLocation:a,resourceLocation:Y5e({requestMethod:l,location:c,requestPath:s,resourceLocationConfig:i})}:c!==void 0?{mode:"ResourceLocation",operationLocation:c}:l==="PUT"&&s?{mode:"Body",operationLocation:s}:void 0}function Gce(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 _q(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 gf.verbose(`LRO: unrecognized operation status: ${e}`),e}}function W5e(t){var e;let{status:r}=(e=t.body)!==null&&e!==void 0?e:{};return Gce({status:r,statusCode:t.statusCode})}function K5e(t){var e,r;let{properties:s,provisioningState:i}=(e=t.body)!==null&&e!==void 0?e:{},n=(r=s?.provisioningState)!==null&&r!==void 0?r:i;return Gce({status:n,statusCode:t.statusCode})}function _q(t){return t===202?"running":t<300?"succeeded":"failed"}function Hce({rawResponse:t}){let e=t.headers["retry-after"];if(e!==void 0){let r=parseInt(e);return isNaN(r)?X5e(new Date(e)):r*1e3}}function zce(t){let e=t.flatResponse.error;if(!e){gf.warning("The long-running operation failed but there is no error property in the response's body");return}if(!e.code||!e.message){gf.warning("The long-running operation failed but the error property in the response's body doesn't contain code or message");return}return e}function X5e(t){let e=Math.floor(new Date().getTime()),r=t.getTime();if(e<r)return r-e}function Vce(t){let{response:e,state:r,operationLocation:s}=t;function i(){var o;switch((o=r.config.metadata)===null||o===void 0?void 0:o.mode){case void 0:return _q(e.rawResponse.statusCode);case"Body":return Pq(e,r);default:return"running"}}let n=i();return n==="running"&&s===void 0?"succeeded":n}async function Z5e(t){let{stateProxy:e,resourceLocationConfig:r,processResult:s,lro:i,setErrorAsResult:n}=t;return Oce({init:async()=>{let o=await i.sendInitialRequest(),a=qce({rawResponse:o.rawResponse,requestPath:i.requestPath,requestMethod:i.requestMethod,resourceLocationConfig:r});return Object.assign({response:o,operationLocation:a?.operationLocation,resourceLocation:a?.resourceLocation},a?.mode?{metadata:{mode:a.mode}}:{})},stateProxy:e,processResult:s?({flatResponse:o},a)=>s(o,a):({flatResponse:o})=>o,getOperationStatus:Vce,setErrorAsResult:n})}function $ce({rawResponse:t},e){var r;switch((r=e.config.metadata)===null||r===void 0?void 0:r.mode){case"OperationLocation":return Mce({operationLocation:Fce(t),azureAsyncOperation:Uce(t)});case"ResourceLocation":return Lce(t);default:return}}function Pq({rawResponse:t},e){var r;let s=(r=e.config.metadata)===null||r===void 0?void 0:r.mode;switch(s){case"OperationLocation":return W5e(t);case"ResourceLocation":return _q(t.statusCode);case"Body":return K5e(t);default:throw new Error(`Internal error: Unexpected operation mode: ${s}`)}}function jce({flatResponse:t},e){if(typeof t=="object"){let r=t.resourceLocation;r!==void 0&&(e.config.resourceLocation=r)}return e.cLine truncated
`:case"\r":case" ":case" ":continue;default:throw Error("invalid base64 string.")}switch(i){case 0:o=n,i=1;break;case 1:r[s++]=o<<2|(n&48)>>4,o=n,i=2;break;case 2:r[s++]=(o&15)<<4|(n&60)>>2,o=n,i=3;break;case 3:r[s++]=(o&3)<<6|n,i=0;break}}if(i==1)throw Error("invalid base64 string.");return r.subarray(0,s)}pm.base64decode=kYe;function MYe(t){let e="",r=0,s,i=0;for(let n=0;n<t.length;n++)switch(s=t[n],r){case 0:e+=Vl[s>>2],i=(s&3)<<4,r=1;break;case 1:e+=Vl[i|s>>4],i=(s&15)<<2,r=2;break;case 2:e+=Vl[i|s>>6],e+=Vl[s&63],r=0;break}return r&&(e+=Vl[i],e+="=",r==1&&(e+="=")),e}pm.base64encode=MYe});var ble=m(kN=>{"use strict";Object.defineProperty(kN,"__esModule",{value:!0});kN.utf8read=void 0;var Hq=t=>String.fromCharCode.apply(String,t);function LYe(t){if(t.length<1)return"";let e=0,r=[],s=[],i=0,n,o=t.length;for(;e<o;)n=t[e++],n<128?s[i++]=n:n>191&&n<224?s[i++]=(n&31)<<6|t[e++]&63:n>239&&n<365?(n=((n&7)<<18|(t[e++]&63)<<12|(t[e++]&63)<<6|t[e++]&63)-65536,s[i++]=55296+(n>>10),s[i++]=56320+(n&1023)):s[i++]=(n&15)<<12|(t[e++]&63)<<6|t[e++]&63,i>8191&&(r.push(Hq(s)),i=0);return r.length?(i&&r.push(Hq(s.slice(0,i))),r.join("")):Hq(s.slice(0,i))}kN.utf8read=LYe});var zC=m(Nc=>{"use strict";Object.defineProperty(Nc,"__esModule",{value:!0});Nc.WireType=Nc.mergeBinaryOptions=Nc.UnknownFieldHandler=void 0;var FYe;(function(t){t.symbol=Symbol.for("protobuf-ts/unknown"),t.onRead=(r,s,i,n,o)=>{(e(s)?s[t.symbol]:s[t.symbol]=[]).push({no:i,wireType:n,data:o})},t.onWrite=(r,s,i)=>{for(let{no:n,wireType:o,data:a}of t.list(s))i.tag(n,o).raw(a)},t.list=(r,s)=>{if(e(r)){let i=r[t.symbol];return s?i.filter(n=>n.no==s):i}return[]},t.last=(r,s)=>t.list(r,s).slice(-1)[0];let e=r=>r&&Array.isArray(r[t.symbol])})(FYe=Nc.UnknownFieldHandler||(Nc.UnknownFieldHandler={}));function UYe(t,e){return Object.assign(Object.assign({},t),e)}Nc.mergeBinaryOptions=UYe;var qYe;(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"})(qYe=Nc.WireType||(Nc.WireType={}))});var LN=m(Wi=>{"use strict";Object.defineProperty(Wi,"__esModule",{value:!0});Wi.varint32read=Wi.varint32write=Wi.int64toString=Wi.int64fromString=Wi.varint64write=Wi.varint64read=void 0;function GYe(){let t=0,e=0;for(let s=0;s<28;s+=7){let i=this.buf[this.pos++];if(t|=(i&127)<<s,(i&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 s=3;s<=31;s+=7){let i=this.buf[this.pos++];if(e|=(i&127)<<s,(i&128)==0)return this.assertBounds(),[t,e]}throw new Error("invalid varint")}Wi.varint64read=GYe;function HYe(t,e,r){for(let n=0;n<28;n=n+7){let o=t>>>n,a=!(!(o>>>7)&&e==0),c=(a?o|128:o)&255;if(r.push(c),!a)return}let s=t>>>28&15|(e&7)<<4,i=e>>3!=0;if(r.push((i?s|128:s)&255),!!i){for(let n=3;n<31;n=n+7){let o=e>>>n,a=!!(o>>>7),c=(a?o|128:o)&255;if(r.push(c),!a)return}r.push(e>>>31&1)}}Wi.varint64write=HYe;var MN=65536*65536;function zYe(t){let e=t[0]=="-";e&&(t=t.slice(1));let r=1e6,s=0,i=0;function n(o,a){let c=Number(t.slice(o,a));i*=r,s=s*r+c,s>=MN&&(i=i+(s/MN|0),s=s%MN)}return n(-24,-18),n(-18,-12),n(-12,-6),n(-6),[e,s,i]}Wi.int64fromString=zYe;function VYe(t,e){if(e>>>0<=2097151)return""+(MN*e+(t>>>0));let r=t&16777215,s=(t>>>24|e<<8)>>>0&16777215,i=e>>16&65535,n=r+s*6777216+i*6710656,o=s+i*8147497,a=i*2,c=1e7;n>=c&&(o+=Math.floor(n/c),n%=c),o>=c&&(a+=Math.floor(o/c),o%=c);function l(u,d){let h=u?String(u):"";return d?"0000000".slice(h.length)+h:h}return l(a,0)+l(o,a)+l(n,1)}Wi.int64toString=VYe;function $Ye(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)}}Wi.varint32write=$Ye;function jYe(){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}Wi.varint32read=jYe});var Nd=m(xd=>{"use strict";Object.defineProperty(xd,"__esModule",{value:!0});xd.PbLong=xd.PbULong=xd.detectBi=void 0;var VC=LN(),Dt;function wle(){let t=new DataView(new ArrayBuffer(8));Dt=globalThis.BigInt!==void 0&&typeof t.getBigInt64=="function"&&typeof t.getBigUint64=="function"&&typeof t.setBigInt64=="function"&&typeof t.setBigUint64=="function"?{MIN:BigInt("-9223372036854775808"),MAX:BigInt("9223372036854775807"),UMIN:BigInt("0"),UMAX:BigInt("18446744073709551615"),C:BigInt,V:t}:void 0}xd.detectBi=wle;wle();function Ble(t){if(!t)throw new Error("BigInt unavailable, see https://github.com/timostamm/protobuf-ts/blob/v1.0.8/MANUAL.md#bigint-support")}var Sle=/^-?[0-9]+$/,UN=4294967296,FN=2147483648,qN=c Line truncated
`)}};dR.RpcError=mG});var yG=m(fR=>{"use strict";Object.defineProperty(fR,"__esModule",{value:!0});fR.mergeRpcOptions=void 0;var tue=Qr();function p6e(t,e){if(!e)return t;let r={};hR(t,r),hR(e,r);for(let s of Object.keys(e)){let i=e[s];switch(s){case"jsonOptions":r.jsonOptions=tue.mergeJsonOptions(t.jsonOptions,r.jsonOptions);break;case"binaryOptions":r.binaryOptions=tue.mergeBinaryOptions(t.binaryOptions,r.binaryOptions);break;case"meta":r.meta={},hR(t.meta,r.meta),hR(e.meta,r.meta);break;case"interceptors":r.interceptors=t.interceptors?t.interceptors.concat(i):i.concat();break}}return r}fR.mergeRpcOptions=p6e;function hR(t,e){if(!t)return;let r=e;for(let[s,i]of Object.entries(t))i instanceof Date?r[s]=new Date(i.getTime()):Array.isArray(i)?r[s]=i.concat():r[s]=i}});var CG=m(bf=>{"use strict";Object.defineProperty(bf,"__esModule",{value:!0});bf.Deferred=bf.DeferredState=void 0;var Qc;(function(t){t[t.PENDING=0]="PENDING",t[t.REJECTED=1]="REJECTED",t[t.RESOLVED=2]="RESOLVED"})(Qc=bf.DeferredState||(bf.DeferredState={}));var EG=class{constructor(e=!0){this._state=Qc.PENDING,this._promise=new Promise((r,s)=>{this._resolve=r,this._reject=s}),e&&this._promise.catch(r=>{})}get state(){return this._state}get promise(){return this._promise}resolve(e){if(this.state!==Qc.PENDING)throw new Error(`cannot resolve ${Qc[this.state].toLowerCase()}`);this._resolve(e),this._state=Qc.RESOLVED}reject(e){if(this.state!==Qc.PENDING)throw new Error(`cannot reject ${Qc[this.state].toLowerCase()}`);this._reject(e),this._state=Qc.REJECTED}resolvePending(e){this._state===Qc.PENDING&&this.resolve(e)}rejectPending(e){this._state===Qc.PENDING&&this.reject(e)}};bf.Deferred=EG});var bG=m(AR=>{"use strict";Object.defineProperty(AR,"__esModule",{value:!0});AR.RpcOutputStreamController=void 0;var rue=CG(),wf=Qr(),IG=class{constructor(){this._lis={nxt:[],msg:[],err:[],cmp:[]},this._closed=!1,this._itState={q:[]}}onNext(e){return this.addLis(e,this._lis.nxt)}onMessage(e){return this.addLis(e,this._lis.msg)}onError(e){return this.addLis(e,this._lis.err)}onComplete(e){return this.addLis(e,this._lis.cmp)}addLis(e,r){return r.push(e),()=>{let s=r.indexOf(e);s>=0&&r.splice(s,1)}}clearLis(){for(let e of Object.values(this._lis))e.splice(0,e.length)}get closed(){return this._closed!==!1}notifyNext(e,r,s){wf.assert((e?1:0)+(r?1:0)+(s?1:0)<=1,"only one emission at a time"),e&&this.notifyMessage(e),r&&this.notifyError(r),s&&this.notifyComplete()}notifyMessage(e){wf.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){wf.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(){wf.assert(!this.closed,"stream is closed"),this._closed=!0,this.pushIt({value:null,done:!0}),this._lis.cmp.forEach(e=>e()),this._lis.nxt.forEach(e=>e(void 0,void 0,!0)),this.clearLis()}[Symbol.asyncIterator](){return this._closed===!0?this.pushIt({value:null,done:!0}):this._closed!==!1&&this.pushIt(this._closed),{next:()=>{let e=this._itState;wf.assert(e,"bad state"),wf.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 rue.Deferred,e.p.promise)}}}pushIt(e){let r=this._itState;if(r.p){let s=r.p;wf.assert(s.state==rue.DeferredState.PENDING,"iterator contract broken"),"value"in e?s.resolve(e):s.reject(e),delete r.p}else r.q.push(e)}};AR.RpcOutputStreamController=IG});var BG=m(bm=>{"use strict";var m6e=bm&&bm.__awaiter||function(t,e,r,s){function i(n){return n instanceof r?n:new r(function(o){o(n)})}return new(r||(r=Promise))(function(n,o){function a(u){try{l(s.next(u))}catch(d){o(d)}}function c(u){try{l(s.throw(u))}catch(d){o(d)}}function l(u){u.done?n(u.value):i(u.value).then(a,c)}l((s=s.apply(t,e||[])).next())})};Object.defineProperty(bm,"__esModule",{value:!0});bm.UnaryCall=void 0;var wG=class{constructor(e,r,s,i,n,o,a){this.method=e,this.requestHeaders=r,this.request=s,this.headers=i,this.response=n,this.status=o,this.trailers=a}then(e,r){return this.promiseFinished().then(s=>e?Promise.resolve(e(s)):s,s=>r?Promise.resolve(r(s)):Promise.reject(s))}promiseFinished(){return m6e(this,void 0,void 0,function*(){let[e,r,s,i]=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:s,trailers:i}})}};bm.UnaryCall=wG});var xG=m(wm=>{"use strict";var g6e=wm&&wm.__awaiter||function(t,e,r,s){function i(n){return n instanceof r?n:new r(function(o){o(n)})}return new(r||(r=Promise))(function(n,o){function a(u){try{l(s.next(u))}catch(d){o(d)}}function c(u){try{l(s.throw(u))}catch(d){o(d)}}function l(u){u.done?n(u.value):i(u.value).then(a,c)}l((s=s.apply(t,e||[])).next())})};Object.defineProperty(wm,"__esModule",{value:!0});wm.ServerStreamingCall=void 0;var SG=class{constructor(e Line truncated
`).forEach(r=>{r.match(g7e)||r.match(y7e)||(e+=r)}),Buffer.from(e,"base64")}function C7e(t,e="CERTIFICATE"){let s=t.toString("base64").match(/.{1,64}/g)||"";return[`-----BEGIN ${e}-----`,...s,`-----END ${e}-----`].join(`
Polling status: ${mpe.includes(u)?"Stopped":"Running"}`),u==="succeeded"){let h=o(l,r);if(h!==void 0)return{response:await e(h).catch(ppe({state:r,stateProxy:s,isOperationError:a})),status:u}}return{response:l,status:u}}async function Cpe(t){let{poll:e,state:r,stateProxy:s,options:i,getOperationStatus:n,getResourceLocation:o,getOperationLocation:a,isOperationError:c,withOperationLocation:l,getPollingInterval:u,processResult:h,getError:d,updateState:f,setDelay:p,isDone:m,setErrorAsResult:E}=t,{operationLocation:y}=r.config;if(y!==void 0){let{response:C,status:w}=await iet({poll:e,getOperationStatus:n,state:r,stateProxy:s,operationLocation:y,getResourceLocation:o,isOperationError:c,options:i});if(ype({status:w,response:C,state:r,stateProxy:s,isDone:m,processResult:h,getError:d,setErrorAsResult:E}),!mpe.includes(w)){let S=u?.(C);S&&p(S);let N=a?.(C,r);if(N!==void 0){let P=y!==N;r.config.operationLocation=N,l?.(N,P)}else l?.(y,!1)}f?.(r,C)}}function Ipe(t){let{azureAsyncOperation:e,operationLocation:r}=t;return r??e}function bpe(t){return t.headers.location}function wpe(t){return t.headers["operation-location"]}function Bpe(t){return t.headers["azure-asyncoperation"]}function net(t){let{location:e,requestMethod:r,requestPath:s,resourceLocationConfig:i}=t;switch(r){case"PUT":return s;case"DELETE":return;default:switch(i){case"azure-async-operation":return;case"original-uri":return s;default:return e}}}function Spe(t){let{rawResponse:e,requestMethod:r,requestPath:s,resourceLocationConfig:i}=t,n=wpe(e),o=Bpe(e),a=Ipe({operationLocation:n,azureAsyncOperation:o}),c=bpe(e),l=r?.toLocaleUpperCase();return a!==void 0?{mode:"OperationLocation",operationLocation:a,resourceLocation:net({requestMethod:l,location:c,requestPath:s,resourceLocationConfig:i})}:c!==void 0?{mode:"ResourceLocation",operationLocation:c}:l==="PUT"&&s?{mode:"Body",operationLocation:s}:void 0}function xpe(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 e8(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 dp.verbose(`LRO: unrecognized operation status: ${e}`),e}}function oet(t){var e;let{status:r}=(e=t.body)!==null&&e!==void 0?e:{};return xpe({status:r,statusCode:t.statusCode})}function aet(t){var e,r;let{properties:s,provisioningState:i}=(e=t.body)!==null&&e!==void 0?e:{},n=(r=s?.provisioningState)!==null&&r!==void 0?r:i;return xpe({status:n,statusCode:t.statusCode})}function e8(t){return t===202?"running":t<300?"succeeded":"failed"}function Npe({rawResponse:t}){let e=t.headers["retry-after"];if(e!==void 0){let r=parseInt(e);return isNaN(r)?cet(new Date(e)):r*1e3}}function Rpe(t){let e=t.flatResponse.error;if(!e){dp.warning("The long-running operation failed but there is no error property in the response's body");return}if(!e.code||!e.message){dp.warning("The long-running operation failed but the error property in the response's body doesn't contain code or message");return}return e}function cet(t){let e=Math.floor(new Date().getTime()),r=t.getTime();if(e<r)return r-e}function vpe(t){let{response:e,state:r,operationLocation:s}=t;function i(){var o;switch((o=r.config.metadata)===null||o===void 0?void 0:o.mode){case void 0:return e8(e.rawResponse.statusCode);case"Body":return t8(e,r);default:return"running"}}let n=i();return n==="running"&&s===void 0?"succeeded":n}async function uet(t){let{stateProxy:e,resourceLocationConfig:r,processResult:s,lro:i,setErrorAsResult:n}=t;return Epe({init:async()=>{let o=await i.sendInitialRequest(),a=Spe({rawResponse:o.rawResponse,requestPath:i.requestPath,requestMethod:i.requestMethod,resourceLocationConfig:r});return Object.assign({response:o,operationLocation:a?.operationLocation,resourceLocation:a?.resourceLocation},a?.mode?{metadata:{mode:a.mode}}:{})},stateProxy:e,processResult:s?({flatResponse:o},a)=>s(o,a):({flatResponse:o})=>o,getOperationStatus:vpe,setErrorAsResult:n})}function Tpe({rawResponse:t},e){var r;switch((r=e.config.metadata)===null||r===void 0?void 0:r.mode){case"OperationLocation":return Ipe({operationLocation:wpe(t),azureAsyncOperation:Bpe(t)});case"ResourceLocation":return bpe(t);default:return}}function t8({rawResponse:t},e){var r;let s=(r=e.config.metadata)===null||r===void 0?void 0:r.mode;switch(s){case"OperationLocation":return oet(t);case"ResourceLocation":return e8(t.statusCode);case"Body":return aet(t);default:throw new Error(`Internal error: Unexpected operation mode: ${s}`)}}function _pe({flatResponse:t},e){if(typeof t=="object"){let r=t.resourceLocation;r!==void 0&&(e.config.resourceLocation=r)}return e.cLine truncated
`:case"\r":case" ":case" ":continue;default:throw Error("invalid base64 string.")}switch(i){case 0:o=n,i=1;break;case 1:r[s++]=o<<2|(n&48)>>4,o=n,i=2;break;case 2:r[s++]=(o&15)<<4|(n&60)>>2,o=n,i=3;break;case 3:r[s++]=(o&3)<<6|n,i=0;break}}if(i==1)throw Error("invalid base64 string.");return r.subarray(0,s)}wg.base64decode=Jet;function Yet(t){let e="",r=0,s,i=0;for(let n=0;n<t.length;n++)switch(s=t[n],r){case 0:e+=bu[s>>2],i=(s&3)<<4,r=1;break;case 1:e+=bu[i|s>>4],i=(s&15)<<2,r=2;break;case 2:e+=bu[i|s>>6],e+=bu[s&63],r=0;break}return r&&(e+=bu[i],e+="=",r==1&&(e+="=")),e}wg.base64encode=Yet});var oAe=A(qv=>{"use strict";Object.defineProperty(qv,"__esModule",{value:!0});qv.utf8read=void 0;var h8=t=>String.fromCharCode.apply(String,t);function Wet(t){if(t.length<1)return"";let e=0,r=[],s=[],i=0,n,o=t.length;for(;e<o;)n=t[e++],n<128?s[i++]=n:n>191&&n<224?s[i++]=(n&31)<<6|t[e++]&63:n>239&&n<365?(n=((n&7)<<18|(t[e++]&63)<<12|(t[e++]&63)<<6|t[e++]&63)-65536,s[i++]=55296+(n>>10),s[i++]=56320+(n&1023)):s[i++]=(n&15)<<12|(t[e++]&63)<<6|t[e++]&63,i>8191&&(r.push(h8(s)),i=0);return r.length?(i&&r.push(h8(s.slice(0,i))),r.join("")):h8(s.slice(0,i))}qv.utf8read=Wet});var T0=A(Wc=>{"use strict";Object.defineProperty(Wc,"__esModule",{value:!0});Wc.WireType=Wc.mergeBinaryOptions=Wc.UnknownFieldHandler=void 0;var Ket;(function(t){t.symbol=Symbol.for("protobuf-ts/unknown"),t.onRead=(r,s,i,n,o)=>{(e(s)?s[t.symbol]:s[t.symbol]=[]).push({no:i,wireType:n,data:o})},t.onWrite=(r,s,i)=>{for(let{no:n,wireType:o,data:a}of t.list(s))i.tag(n,o).raw(a)},t.list=(r,s)=>{if(e(r)){let i=r[t.symbol];return s?i.filter(n=>n.no==s):i}return[]},t.last=(r,s)=>t.list(r,s).slice(-1)[0];let e=r=>r&&Array.isArray(r[t.symbol])})(Ket=Wc.UnknownFieldHandler||(Wc.UnknownFieldHandler={}));function Xet(t,e){return Object.assign(Object.assign({},t),e)}Wc.mergeBinaryOptions=Xet;var Zet;(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"})(Zet=Wc.WireType||(Wc.WireType={}))});var Hv=A(fn=>{"use strict";Object.defineProperty(fn,"__esModule",{value:!0});fn.varint32read=fn.varint32write=fn.int64toString=fn.int64fromString=fn.varint64write=fn.varint64read=void 0;function ett(){let t=0,e=0;for(let s=0;s<28;s+=7){let i=this.buf[this.pos++];if(t|=(i&127)<<s,(i&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 s=3;s<=31;s+=7){let i=this.buf[this.pos++];if(e|=(i&127)<<s,(i&128)==0)return this.assertBounds(),[t,e]}throw new Error("invalid varint")}fn.varint64read=ett;function ttt(t,e,r){for(let n=0;n<28;n=n+7){let o=t>>>n,a=!(!(o>>>7)&&e==0),c=(a?o|128:o)&255;if(r.push(c),!a)return}let s=t>>>28&15|(e&7)<<4,i=e>>3!=0;if(r.push((i?s|128:s)&255),!!i){for(let n=3;n<31;n=n+7){let o=e>>>n,a=!!(o>>>7),c=(a?o|128:o)&255;if(r.push(c),!a)return}r.push(e>>>31&1)}}fn.varint64write=ttt;var Gv=65536*65536;function rtt(t){let e=t[0]=="-";e&&(t=t.slice(1));let r=1e6,s=0,i=0;function n(o,a){let c=Number(t.slice(o,a));i*=r,s=s*r+c,s>=Gv&&(i=i+(s/Gv|0),s=s%Gv)}return n(-24,-18),n(-18,-12),n(-12,-6),n(-6),[e,s,i]}fn.int64fromString=rtt;function stt(t,e){if(e>>>0<=2097151)return""+(Gv*e+(t>>>0));let r=t&16777215,s=(t>>>24|e<<8)>>>0&16777215,i=e>>16&65535,n=r+s*6777216+i*6710656,o=s+i*8147497,a=i*2,c=1e7;n>=c&&(o+=Math.floor(n/c),n%=c),o>=c&&(a+=Math.floor(o/c),o%=c);function l(u,h){let d=u?String(u):"";return h?"0000000".slice(d.length)+d:d}return l(a,0)+l(o,a)+l(n,1)}fn.int64toString=stt;function itt(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)}}fn.varint32write=itt;function ntt(){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}fn.varint32read=ntt});var dd=A(hd=>{"use strict";Object.defineProperty(hd,"__esModule",{value:!0});hd.PbLong=hd.PbULong=hd.detectBi=void 0;var _0=Hv(),Mt;function aAe(){let t=new DataView(new ArrayBuffer(8));Mt=globalThis.BigInt!==void 0&&typeof t.getBigInt64=="function"&&typeof t.getBigUint64=="function"&&typeof t.setBigInt64=="function"&&typeof t.setBigUint64=="function"?{MIN:BigInt("-9223372036854775808"),MAX:BigInt("9223372036854775807"),UMIN:BigInt("0"),UMAX:BigInt("18446744073709551615"),C:BigInt,V:t}:void 0}hd.detectBi=aAe;aAe();function cAe(t){if(!t)throw new Error("BigInt unavailable, see https://github.com/timostamm/protobuf-ts/blob/v1.0.8/MANUAL.md#bigint-support")}var lAe=/^-?[0-9]+$/,Vv=4294967296,zv=2147483648,$v=c Line truncated
`)}};mT.RpcError=L8});var F8=A(yT=>{"use strict";Object.defineProperty(yT,"__esModule",{value:!0});yT.mergeRpcOptions=void 0;var UAe=kr();function Nrt(t,e){if(!e)return t;let r={};gT(t,r),gT(e,r);for(let s of Object.keys(e)){let i=e[s];switch(s){case"jsonOptions":r.jsonOptions=UAe.mergeJsonOptions(t.jsonOptions,r.jsonOptions);break;case"binaryOptions":r.binaryOptions=UAe.mergeBinaryOptions(t.binaryOptions,r.binaryOptions);break;case"meta":r.meta={},gT(t.meta,r.meta),gT(e.meta,r.meta);break;case"interceptors":r.interceptors=t.interceptors?t.interceptors.concat(i):i.concat();break}}return r}yT.mergeRpcOptions=Nrt;function gT(t,e){if(!t)return;let r=e;for(let[s,i]of Object.entries(t))i instanceof Date?r[s]=new Date(i.getTime()):Array.isArray(i)?r[s]=i.concat():r[s]=i}});var G8=A(gp=>{"use strict";Object.defineProperty(gp,"__esModule",{value:!0});gp.Deferred=gp.DeferredState=void 0;var Zc;(function(t){t[t.PENDING=0]="PENDING",t[t.REJECTED=1]="REJECTED",t[t.RESOLVED=2]="RESOLVED"})(Zc=gp.DeferredState||(gp.DeferredState={}));var q8=class{constructor(e=!0){this._state=Zc.PENDING,this._promise=new Promise((r,s)=>{this._resolve=r,this._reject=s}),e&&this._promise.catch(r=>{})}get state(){return this._state}get promise(){return this._promise}resolve(e){if(this.state!==Zc.PENDING)throw new Error(`cannot resolve ${Zc[this.state].toLowerCase()}`);this._resolve(e),this._state=Zc.RESOLVED}reject(e){if(this.state!==Zc.PENDING)throw new Error(`cannot reject ${Zc[this.state].toLowerCase()}`);this._reject(e),this._state=Zc.REJECTED}resolvePending(e){this._state===Zc.PENDING&&this.resolve(e)}rejectPending(e){this._state===Zc.PENDING&&this.reject(e)}};gp.Deferred=q8});var z8=A(ET=>{"use strict";Object.defineProperty(ET,"__esModule",{value:!0});ET.RpcOutputStreamController=void 0;var FAe=G8(),yp=kr(),H8=class{constructor(){this._lis={nxt:[],msg:[],err:[],cmp:[]},this._closed=!1,this._itState={q:[]}}onNext(e){return this.addLis(e,this._lis.nxt)}onMessage(e){return this.addLis(e,this._lis.msg)}onError(e){return this.addLis(e,this._lis.err)}onComplete(e){return this.addLis(e,this._lis.cmp)}addLis(e,r){return r.push(e),()=>{let s=r.indexOf(e);s>=0&&r.splice(s,1)}}clearLis(){for(let e of Object.values(this._lis))e.splice(0,e.length)}get closed(){return this._closed!==!1}notifyNext(e,r,s){yp.assert((e?1:0)+(r?1:0)+(s?1:0)<=1,"only one emission at a time"),e&&this.notifyMessage(e),r&&this.notifyError(r),s&&this.notifyComplete()}notifyMessage(e){yp.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){yp.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(){yp.assert(!this.closed,"stream is closed"),this._closed=!0,this.pushIt({value:null,done:!0}),this._lis.cmp.forEach(e=>e()),this._lis.nxt.forEach(e=>e(void 0,void 0,!0)),this.clearLis()}[Symbol.asyncIterator](){return this._closed===!0?this.pushIt({value:null,done:!0}):this._closed!==!1&&this.pushIt(this._closed),{next:()=>{let e=this._itState;yp.assert(e,"bad state"),yp.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 FAe.Deferred,e.p.promise)}}}pushIt(e){let r=this._itState;if(r.p){let s=r.p;yp.assert(s.state==FAe.DeferredState.PENDING,"iterator contract broken"),"value"in e?s.resolve(e):s.reject(e),delete r.p}else r.q.push(e)}};ET.RpcOutputStreamController=H8});var $8=A(Tg=>{"use strict";var Rrt=Tg&&Tg.__awaiter||function(t,e,r,s){function i(n){return n instanceof r?n:new r(function(o){o(n)})}return new(r||(r=Promise))(function(n,o){function a(u){try{l(s.next(u))}catch(h){o(h)}}function c(u){try{l(s.throw(u))}catch(h){o(h)}}function l(u){u.done?n(u.value):i(u.value).then(a,c)}l((s=s.apply(t,e||[])).next())})};Object.defineProperty(Tg,"__esModule",{value:!0});Tg.UnaryCall=void 0;var V8=class{constructor(e,r,s,i,n,o,a){this.method=e,this.requestHeaders=r,this.request=s,this.headers=i,this.response=n,this.status=o,this.trailers=a}then(e,r){return this.promiseFinished().then(s=>e?Promise.resolve(e(s)):s,s=>r?Promise.resolve(r(s)):Promise.reject(s))}promiseFinished(){return Rrt(this,void 0,void 0,function*(){let[e,r,s,i]=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:s,trailers:i}})}};Tg.UnaryCall=V8});var J8=A(_g=>{"use strict";var vrt=_g&&_g.__awaiter||function(t,e,r,s){function i(n){return n instanceof r?n:new r(function(o){o(n)})}return new(r||(r=Promise))(function(n,o){function a(u){try{l(s.next(u))}catch(h){o(h)}}function c(u){try{l(s.throw(u))}catch(h){o(h)}}function l(u){u.done?n(u.value):i(u.value).then(a,c)}l((s=s.apply(t,e||[])).next())})};Object.defineProperty(_g,"__esModule",{value:!0});_g.ServerStreamingCall=void 0;var j8=class{constructor(e Line truncated
You can add a runtime option to disable the check or this warning:
See https://handlebarsjs.com/api-reference/runtime-options.html#options-to-control-prototype-access for details`))}function Sit(){Object.keys(qT).forEach(function(t){delete qT[t]})}});var HT=A(rl=>{"use strict";rl.__esModule=!0;rl.HandlebarsEnvironment=jz;function ege(t){return t&&t.__esModule?t:{default:t}}var wp=_i(),xit=so(),Vz=ege(xit),Nit=qz(),Rit=Wme(),vit=Hz(),GT=ege(vit),Tit=zz(),_it="4.7.9";rl.VERSION=_it;var Qit=8;rl.COMPILER_REVISION=Qit;var Pit=7;rl.LAST_COMPATIBLE_COMPILER_REVISION=Pit;var Oit={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"};rl.REVISION_CHANGES=Oit;var $z="[object Object]";function jz(t,e,r){this.helpers=t||{},this.partials=e||{},this.decorators=r||{},Nit.registerDefaultHelpers(this),Rit.registerDefaultDecorators(this)}jz.prototype={constructor:jz,logger:GT.default,log:GT.default.log,registerHelper:function(e,r){if(wp.toString.call(e)===$z){if(r)throw new Vz.default("Arg not supported with multiple helpers");wp.extend(this.helpers,e)}else this.helpers[e]=r},unregisterHelper:function(e){delete this.helpers[e]},registerPartial:function(e,r){if(wp.toString.call(e)===$z)wp.extend(this.partials,e);else{if(typeof r>"u")throw new Vz.default('Attempting to register a partial called "'+e+'" as undefined');this.partials[e]=r}},unregisterPartial:function(e){delete this.partials[e]},registerDecorator:function(e,r){if(wp.toString.call(e)===$z){if(r)throw new Vz.default("Arg not supported with multiple decorators");wp.extend(this.decorators,e)}else this.decorators[e]=r},unregisterDecorator:function(e){delete this.decorators[e]},resetLoggedPropertyAccesses:function(){Tit.resetLoggedProperties()}};var Dit=GT.default.log;rl.log=Dit;rl.createFrame=wp.createFrame;rl.logger=GT.default});var rge=A((zT,tge)=>{"use strict";zT.__esModule=!0;function Jz(t){this.string=t}Jz.prototype.toString=Jz.prototype.toHTML=function(){return""+this.string};zT.default=Jz;tge.exports=zT.default});var sge=A(Yz=>{"use strict";Yz.__esModule=!0;Yz.wrapHelper=kit;function kit(t,e){if(typeof t!="function")return t;var r=function(){var i=arguments[arguments.length-1];return arguments[arguments.length-1]=e(i),t.apply(this,arguments)};return r}});var lge=A(Ad=>{"use strict";Ad.__esModule=!0;Ad.checkRevision=Git;Ad.template=Hit;Ad.wrapProgram=VT;Ad.resolvePartial=zit;Ad.invokePartial=Vit;Ad.noop=age;function Mit(t){return t&&t.__esModule?t:{default:t}}function Lit(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e.default=t,e}var Uit=_i(),Gg=Lit(Uit),Fit=so(),Su=Mit(Fit),xu=HT(),ige=qz(),qit=sge(),nge=zz();function Git(t){var e=t&&t[0]||1,r=xu.COMPILER_REVISION;if(!(e>=xu.LAST_COMPATIBLE_COMPILER_REVISION&&e<=xu.COMPILER_REVISION))if(e<xu.LAST_COMPATIBLE_COMPILER_REVISION){var s=xu.REVISION_CHANGES[r],i=xu.REVISION_CHANGES[e];throw new Su.default("Template was precompiled with an older version of Handlebars than the current runtime. Please update your precompiler to a newer version ("+s+") or downgrade your runtime to an older version ("+i+").")}else throw new Su.default("Template was precompiled with a newer version of Handlebars than the current runtime. Please update your runtime to a newer version ("+t[1]+").")}function Hit(t,e){if(!e)throw new Su.default("No environment passed to template");if(!t||!t.main)throw new Su.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 s(o,a,c){c.hash&&(a=Gg.extend({},a,c.hash),c.ids&&(c.ids[0]=!0)),o=e.VM.resolvePartial.call(this,o,a,c),c.hooks=this.hooks,c.protoAccessControl=this.protoAccessControl;var l=e.VM.invokePartial.call(this,o,a,c);if(l==null&&e.compile&&(c.partials[c.name]=e.compile(o,t.compilerOptions,e),l=c.partials[c.name](a,c)),l!=null){if(c.indent){for(var u=l.split(`
`),h=0,d=u.length;h<d&&!(!u[h]&&h+1===d);h++)u[h]=c.indent+u[h];l=u.join(`
`)}return l}else throw new Su.default("The partial "+c.name+" could not be compiled when running in runtime-only mode")}var i={strict:function(a,c,l){if(!a||!(c in a))throw new Su.default('"'+c+'" not defined in '+a,{loc:l});return i.lookupProperty(a,c)},lookupProperty:function(a,c){var l=a[c];if(l==null||Object.prototype.hasOwnProperty.call(a,c)||nge.resultIsAllowed(l,i.protoAccessControl,c))return l},lookup:function(a,c){for(var l=a.length,u=0;u<l;u++){var h=a[u]&&i.lookupProperty(a[u],c);if(h!=null)return h}},lambda:function(a,c){return typeof a=="function"?a.call(c):a},escapeExpression:Gg.escapeExpression,invokePartial:s,fn:function(a){var c=t[a];return c.decorator=t[a+"_d"],c},programs:[],program:function(a,c,l,u,h){var d=this.programs[a],f=this.fn(a);return c||h||u||l?d=VT(this,a,f,c,l,u,h):d||(d=this.programs[a]=VT(this,a,f)),d},data:function(a,c){for(;a&&c--;)a=a._parent;return a},mergeIfNeeded:function(a,c){var l=a||c;return a&&c&&a!==c&&(l=Gg.extend({},c,a)),l},nullContext:Object.seal({}),noop:e.VM.noop,compilerInfo:t.compiler};function n(o){var a=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],c=a.data;n._setup(a),!a.partial&&t.useData&&(c=$it(o,c));var l=void 0,u=t.useBlockParams?[]:void 0;t.useDepths&&(a.depths?l=o!=a.depths[0]?[o].concat(a.depths):a.depths:l=[o]);function h(d){return""+t.main(i,d,i.helpers,i.partials,c,u,l)}return h=cge(t.main,h,i,a.depths||[],c,u),h(o,a)}return n.isTop=!0,n._setup=function(o){if(o.partial)i.protoAccessControl=o.protoAccessControl,i.helpers=o.helpers,i.partials=o.partials,i.decorators=o.decorators,i.hooks=o.hooks;else{var a={};oge(a,e.helpers,i),oge(a,o.helpers,i),i.helpers=a,t.usePartial&&(i.partials=i.mergeIfNeeded(o.partials,e.partials)),(t.usePartial||t.useDecorators)&&(i.decorators=Gg.extend({},e.decorators,o.decorators)),i.hooks={},i.protoAccessControl=nge.createProtoAccessControl(o);var c=o.allowCallsToHelperMissing||r;ige.moveHelperToHooks(i,"helperMissing",c),ige.moveHelperToHooks(i,"blockHelperMissing",c)}},n._child=function(o,a,c,l){if(t.useBlockParams&&!c)throw new Su.default("must pass block params");if(t.useDepths&&!l)throw new Su.default("must pass parent depths");return VT(i,o,t[o],a,0,c,l)},n}function VT(t,e,r,s,i,n,o){function a(c){var l=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],u=o;return o&&c!=o[0]&&!(c===t.nullContext&&o[0]===null)&&(u=[c].concat(o)),r(t,c,t.helpers,t.partials,l.data||s,n&&[l.blockParams].concat(n),u)}return a=cge(r,a,t,o,s,n),a.program=e,a.depth=o?o.length:0,a.blockParams=i||0,a}function zit(t,e,r){return t?!t.call&&!r.name&&(r.name=t,t=$T(r.partials,t)):r.name==="@partial-block"?t=$T(r.data,"partial-block"):t=$T(r.partials,r.name),t}function Vit(t,e,r){var s=$T(r.data,"partial-block");r.partial=!0,r.ids&&(r.data.contextPath=r.ids[0]||r.data.contextPath);var i=void 0;if(r.fn&&r.fn!==age&&(function(){r.data=xu.createFrame(r.data);var n=r.fn;i=r.data["partial-block"]=function(a){var c=arguments.length<=1||arguments[1]===void 0?{}:arguments[1];return c.data=xu.createFrame(c.data),c.data["partial-block"]=s,n(a,c)},n.partials&&(r.partials=Gg.extend({},r.partials,n.partials))})(),t===void 0&&i&&(t=i),t===void 0)throw new Su.default("The partial "+r.name+" could not be found");if(t instanceof Function)return t(e,r)}function age(){return""}function $T(t,e){if(t&&Object.prototype.hasOwnProperty.call(t,e))return t[e]}function $it(t,e){return(!e||!("root"in e))&&(e=e?xu.createFrame(e):{},e.root=t),e}function cge(t,e,r,s,i,n){if(t.decorator){var o={};e=t.decorator(e,o,r,s&&s[0],i,n,s),Gg.extend(e,o)}return e}function oge(t,e,r){e&&Object.keys(e).forEach(function(s){var i=e[s];t[s]=jit(i,r)})}function jit(t,e){var r=e.lookupProperty;return qit.wrapHelper(t,function(s){return s.lookupProperty=r,s})}});var Wz=A((jT,uge)=>{"use strict";jT.__esModule=!0;jT.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}};uge.exports=jT.default});var Age=A((JT,pge)=>{"use strict";JT.__esModule=!0;function Xz(t){return t&&t.__esModule?t:{default:t}}function Zz(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e.default=t,e}var Jit=HT(),hge=Zz(Jit),Yit=rge(),Wit=Xz(Yit),Kit=so(),Xit=Xz(Kit),Zit=_i(),Kz=Zz(Zit),ent=lge(),dge=Zz(ent),tnt=Wz(),rnt=Xz(tnt);function fge(){var t=new hge.HandlebarsEnvironment;return Kz.extend(t,hge),t.SafeString=Wit.default,t.Exception=Xit.default,t.Utils=Kz,t.escapeExpression=Kz.escapeExpression,t.VM=dge,t.template=function(e){return dge.template(e,t)},t}var Y0=fge();Y0.create=fge;rnt.default(Y0);Y0.default=Y0;JT.default=Y0;pge.exports=JT.default});var eV=A((YT,gge)=>{"use strict";YT.__esModule=!0;var mge={helpers:{helperExpression:function(e){return e.type===" Line truncated
`+this.lexer.showPosition()+`
Expecting `+V.join(", ")+", got '"+(this.terminals_[S]||S)+"'":re="Parse error on line "+(h+1)+": Unexpected "+(S==1?"end of input":"'"+(this.terminals_[S]||S)+"'"),this.parseError(re,{text:this.lexer.match,token:this.terminals_[S]||S,line:this.lexer.yylineno,loc:E,expected:V})}}if(Q[0]instanceof Array&&Q.length>1)throw new Error("Parse Error: multiple actions possible at state: "+P+", token: "+S);switch(Q[0]){case 1:o.push(S),a.push(this.lexer.yytext),c.push(this.lexer.yylloc),o.push(Q[1]),S=null,N?(S=N,N=null):(d=this.lexer.yyleng,u=this.lexer.yytext,h=this.lexer.yylineno,E=this.lexer.yylloc,f>0&&f--);break;case 2:if(U=this.productions_[Q[1]][1],X.$=a[a.length-U],X._$={first_line:c[c.length-(U||1)].first_line,last_line:c[c.length-1].last_line,first_column:c[c.length-(U||1)].first_column,last_column:c[c.length-1].last_column},y&&(X._$.range=[c[c.length-(U||1)].range[0],c[c.length-1].range[1]]),G=this.performAction.call(X,u,d,h,this.yy,Q[1],a,c),typeof G<"u")return G;U&&(o=o.slice(0,-1*U*2),a=a.slice(0,-1*U),c=c.slice(0,-1*U)),o.push(this.productions_[Q[1]][0]),a.push(X.$),c.push(X._$),q=l[o[o.length-2]][o[o.length-1]],o.push(q);break;case 3:return!0}}return!0}},e=(function(){var s={EOF:1,parseError:function(n,o){if(this.yy.parser)this.yy.parser.parseError(n,o);else throw new Error(n)},setInput:function(n){return this._input=n,this._more=this._less=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var n=this._input[0];this.yytext+=n,this.yyleng++,this.offset++,this.match+=n,this.matched+=n;var o=n.match(/(?:\r\n?|\n).*/g);return o?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),n},unput:function(n){var o=n.length,a=n.split(/(?:\r\n?|\n)/g);this._input=n+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-o-1),this.offset-=o;var c=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),a.length-1&&(this.yylineno-=a.length-1);var l=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:a?(a.length===c.length?this.yylloc.first_column:0)+c[c.length-a.length].length-a[0].length:this.yylloc.first_column-o},this.options.ranges&&(this.yylloc.range=[l[0],l[0]+this.yyleng-o]),this},more:function(){return this._more=!0,this},less:function(n){this.unput(this.match.slice(n))},pastInput:function(){var n=this.matched.substr(0,this.matched.length-this.match.length);return(n.length>20?"...":"")+n.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var n=this.match;return n.length<20&&(n+=this._input.substr(0,20-n.length)),(n.substr(0,20)+(n.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var n=this.pastInput(),o=new Array(n.length+1).join("-");return n+this.upcomingInput()+`
`+o+"^"},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var n,o,a,c,l,u;this._more||(this.yytext="",this.match="");for(var h=this._currentRules(),d=0;d<h.length&&(a=this._input.match(this.rules[h[d]]),!(a&&(!o||a[0].length>o[0].length)&&(o=a,c=d,!this.options.flex)));d++);return o?(u=o[0].match(/(?:\r\n?|\n).*/g),u&&(this.yylineno+=u.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:u?u[u.length-1].length-u[u.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+o[0].length},this.yytext+=o[0],this.match+=o[0],this.matches=o,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._input=this._input.slice(o[0].length),this.matched+=o[0],n=this.performAction.call(this,this.yy,this,h[c],this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n||void 0):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var n=this.next();return typeof n<"u"?n:this.lex()},begin:function(n){this.conditionStack.push(n)},popState:function(){return this.conditionStack.pop()},_currentRules:function(){return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules},topState:function(){return this.conditionStack[this.conditionStack.length-2]},pushState:function(n){this.begin(n)}};return s.options={},s.performAction=function(n,o,a,c){function l(h,d){return o.yytext=o.yytext.substring(h,o.yyleng-d+h)}var u=c;switch(a){case 0:if(o.yytext.slice(-2)==="\\\\"?(l(0,1),this.begin("mu")):o.yytext.slice(-1)==="\\"?(l(0,1),this.begin("emu")):this.begin("mu"),o.yytext)return 15;break;case 1:return 15;case 2:return this.popState(),15;break;case 3:return this.begin("raw"),15;break;case 4:return this.popState(),this.conditionStack[this.conditionStack.length-1]==="raw"?15:(l(5,9),"END_RAW_BLOCK");case 5:return 15;case 6:return this.popState(),14;break;case 7:return 65;case 8:return 68;case 9:return 19;case 10:return this.popState(),this.begin("raw"),23;break;case 11:return 55;case 12:return 60;case 13:return 29;case 14:return 47;case 15:return this.popState(),44;break;case 16:return this.popState(),44;break;case 17:return 34;case 18:return 39;case 19:return 51;case 20:return 48;case 21:this.unput(o.yytext),this.popState(),this.begin("com");break;case 22:return this.popState(),14;break;case 23:return 48;case 24:return 73;case 25:return 72;case 26:return 72;case 27:return 87;case 28:break;case 29:return this.popState(),54;break;case 30:return this.popState(),33;break;case 31:return o.yytext=l(1,2).replace(/\\"/g,'"'),80;break;case 32:return o.yytext=l(1,2).replace(/\\'/g,"'"),80;break;case 33:return 85;case 34:return 82;case 35:return 82;case 36:return 83;case 37:return 84;case 38:return 81;case 39:return 75;case 40:return 77;case 41:return 72;case 42:return o.yytext=o.yytext.replace(/\\([\\\]])/g,"$1"),72;break;case 43:return"INVALID";case 44:return 5}},s.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\/.)|]))))/,/^(?:\[(\\\]|[^\]])*\])/,/^(?:.)/,/^(?:$)/],s.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}},s})();t.lexer=e;function r(){this.yy={}}return r.prototype=t,t.Parser=r,new r})();WT.default=snt;yge.exports=WT.default});var e_=A((ZT,bge)=>{"use strict";ZT.__esModule=!0;function int(t){return t&&t.__esModule?t:{default:t}}var nnt=so(),tV=int(nnt);function KT(){this.parents=[]}KT.prototype={constructor:KT,mutating:!1,acceptKey:function(e,r){var s=this.accept(e[r]);if(this.mutating){if(s&&!KT.prototype[s.type])throw new tV.default('Unexpected node type "'+s.type+'" found when accepting '+r+" on "+e.type);e[r]=s}},acceptRequired:function(e,r){if(this.acceptKey(e,r),!e[r])throw new tV.default(e.type+" requires "+r)},acceptArray:function(e){for(var r=0,s=e.length;r<s;r++)this.acceptKey(e,r),e[r]||(e.splice(r,1),r--,s--)},accept:function(e){if(e){if(!this[e.type])throw new tV.default("Unknown type: "+e.type,e);this.current&&this.parents.unshift(this.current),this.current=e;var r=this[e.type](e);if(this.current=this.parents.shift(),!this.mutating||r)return r;if(r!==!1)return e}},Program:function(e){this.acceptArray(e.body)},MustacheStatement:XT,Decorator:XT,BlockStatement:Cge,DecoratorBlock:Cge,PartialStatement:Ige,PartialBlockStatement:function(e){Ige.call(this,e),this.acceptKey(e,"program")},ContentStatement:function(){},CommentStatement:function(){},SubExpression:XT,PathExpression:function(){},StringLiteral:function(){},NumberLiteral:function(){},BooleanLiteral:function(){},UndefinedLiteral:function(){},NullLiteral:function(){},Hash:function(e){this.acceptArray(e.pairs)},HashPair:function(e){this.acceptRequired(e,"value")}};function XT(t){this.acceptRequired(t,"path"),this.acceptArray(t.params),this.acceptKey(t,"hash")}function Line truncated
`])}),e},each:function(e){for(var r=0,s=this.source.length;r<s;r++)e(this.source[r])},empty:function(){var e=this.currentLocation||{start:{}};return new Np(e.start.line,e.start.column,this.srcFile)},wrap:function(e){var r=arguments.length<=1||arguments[1]===void 0?this.currentLocation||{start:{}}:arguments[1];return e instanceof Np?e:(e=wV(e,this,r),new Np(r.start.line,r.start.column,this.srcFile,e))},functionCall:function(e,r,s){return s=this.generateList(s),this.wrap([e,r?"."+r+"(":"(",s,")"])},quotedString:function(e){return'"'+(e+"").replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")+'"'},objectLiteral:function(e){var r=this,s=[];Object.keys(e).forEach(function(n){var o=wV(e[n],r);o!=="undefined"&&s.push([r.quotedString(n),":",o])});var i=this.generateList(s);return i.prepend("{"),i.add("}"),i},generateList:function(e){for(var r=this.empty(),s=0,i=e.length;s<i;s++)s&&r.add(","),r.add(wV(e[s],this));return r},generateArray:function(e){var r=this.generateList(e);return r.prepend("["),r.add("]"),r}};c_.default=sye;iye.exports=c_.default});var uye=A((l_,lye)=>{"use strict";l_.__esModule=!0;function cye(t){return t&&t.__esModule?t:{default:t}}var oye=HT(),rot=so(),SV=cye(rot),sot=_i(),iot=nye(),aye=cye(iot);function Jg(t){this.value=t}function Yg(){}Yg.prototype={nameLookup:function(e,r){return this.internalNameLookup(e,r)},depthedLookup:function(e){return[this.aliasable("container.lookup"),"(depths, ",JSON.stringify(e),")"]},compilerInfo:function(){var e=oye.COMPILER_REVISION,r=oye.REVISION_CHANGES[e];return[e,r]},appendToBuffer:function(e,r,s){return sot.isArray(e)||(e=[e]),e=this.source.wrap(e,r),this.environment.isSimple?["return ",e,";"]:s?["buffer += ",e,";"]:(e.appendToBuffer=!0,e)},initializeBuffer:function(){return this.quotedString("")},internalNameLookup:function(e,r){return this.lookupPropertyFunctionIsUsed=!0,["lookupProperty(",e,",",JSON.stringify(r),")"]},lookupPropertyFunctionIsUsed:!1,compile:function(e,r,s,i){this.environment=e,this.options=r,this.stringParams=this.options.stringParams,this.trackIds=this.options.trackIds,this.precompile=!i,this.name=this.environment.name,this.isChild=!!s,this.context=s||{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 n=e.opcodes,o=void 0,a=void 0,c=void 0,l=void 0;for(c=0,l=n.length;c<l;c++)o=n[c],this.source.currentLocation=o.loc,a=a||o.loc,this[o.opcode].apply(this,o.args);if(this.source.currentLocation=a,this.pushSource(""),this.stackSlot||this.inlineStack.length||this.compileStack.length)throw new SV.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;"),i?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 u=this.createFunctionContext(i);if(this.isChild)return u;var h={compiler:this.compilerInfo(),main:u};this.decorators&&(h.main_d=this.decorators,h.useDecorators=!0);var d=this.context,f=d.programs,p=d.decorators;for(c=0,l=f.length;c<l;c++)h[c]=f[c],p[c]&&(h[c+"_d"]=p[c],h.useDecorators=!0);return this.environment.usePartial&&(h.usePartial=!0),this.options.data&&(h.useData=!0),this.useDepths&&(h.useDepths=!0),this.useBlockParams&&(h.useBlockParams=!0),this.options.compat&&(h.compat=!0),i?h.compilerOptions=this.options:(h.compiler=JSON.stringify(h.compiler),this.source.currentLocation={start:{line:1,column:0}},h=this.objectLiteral(h),r.srcName?(h=h.toStringWithSourceMap({file:r.destName}),h.map=h.map&&h.map.toString()):h=h.toString()),h},preamble:function(){this.lastContext=0,this.source=new aye.default(this.options.srcName),this.decorators=new aye.default(this.options.srcName)},createFunctionContext:function(e){var r=this,s="",i=this.stackVars.concat(this.registers.list);i.length>0&&(s+=", "+i.join(", "));var n=0;Object.keys(this.aliases).forEach(function(c){var l=r.aliases[c];l.children&&l.referenceCount>1&&(s+=", alias"+ ++n+"="+c,l.children[0]="alias"+n)}),this.lookupPropertyFunctionIsUsed&&(s+=", "+this.lookupPropertyFunctionVarDeclaration());var o=["container","depth0","helpers","partials","data"];(this.useBlockParams||this.useDepths)&&o.push("blockParams"),this.useDepths&&o.push("depths");var a=this.mergeSource(s);return e?(o.push(a),Function.apply(this,o)):this.source.wrap(["function(",o.join(","),`) {
`,a,"}"])},mergeSource:function(e){var r=this.environment.isSimple,s=!this.forceBuffer,i=void 0,n=void 0,o=void 0,a=void 0;return this.source.each(function(c){c.appendToBuffer?(o?c.prepend(" + "):o=c,a=c):(o&&(n?o.prepend("buffer += "):i=!0,a.add(";"),o=a=void 0),n=!0,r||(s=!1))}),s?o?(o.prepend("return "),a.add(";")):n||this.source.push('return "";'):(e+=", buffer = "+(i?"":this.initializeBuffer()),o?(o.prepend("return buffer + "),a.add(";")):this.source.push("return buffer;")),e&&this.source.prepend("var "+e.substring(2)+(i?"":`;
`)),this.source.merge()},lookupPropertyFunctionVarDeclaration:function(){return`
lookupProperty = container.lookupProperty || function(parent, propertyName) {
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
return parent[propertyName];
}
return undefined
}
`.trim()},blockValue:function(e){var r=this.aliasable("container.hooks.blockHelperMissing"),s=[this.contextName(0)];this.setupHelperArgs(e,0,s);var i=this.popStack();s.splice(1,0,i),this.push(this.source.functionCall(r,"call",s))},ambiguousBlockValue:function(){var e=this.aliasable("container.hooks.blockHelperMissing"),r=[this.contextName(0)];this.setupHelperArgs("",0,r,!0),this.flushInline();var s=this.topStack();r.splice(1,0,s),this.pushSource(["if (!",this.lastHelper,") { ",s," = ",this.source.functionCall(e,"call",r),"}"])},appendContent:function(e){this.pendingContent?e=this.pendingContent+e:this.pendingLocation=this.source.currentLocation,this.pendingContent=e},append:function(){if(this.isInline())this.replaceStack(function(r){return[" != null ? ",r,' : ""']}),this.pushSource(this.appendToBuffer(this.popStack()));else{var e=this.popStack();this.pushSource(["if (",e," != null) { ",this.appendToBuffer(e,void 0,!0)," }"]),this.environment.isSimple&&this.pushSource(["else { ",this.appendToBuffer("''",void 0,!0)," }"])}},appendEscaped:function(){this.pushSource(this.appendToBuffer([this.aliasable("container.escapeExpression"),"(",this.popStack(),")"]))},getContext:function(e){this.lastContext=e},pushContext:function(){this.pushStackLiteral(this.contextName(this.lastContext))},lookupOnContext:function(e,r,s,i){var n=0;!i&&this.options.compat&&!this.lastContext?this.push(this.depthedLookup(e[n++])):this.pushContext(),this.resolvePath("context",e,n,r,s)},lookupBlockParam:function(e,r){this.useBlockParams=!0,this.push(["blockParams[",e[0],"][",e[1],"]"]),this.resolvePath("context",r,1)},lookupData:function(e,r,s){e?this.pushStackLiteral("container.data(data, "+e+")"):this.pushStackLiteral("data"),this.resolvePath("data",r,0,!0,s)},resolvePath:function(e,r,s,i,n){var o=this;if(this.options.strict||this.options.assumeObjects){this.push(not(this.options.strict&&n,this,r,s,e));return}for(var a=r.length,c=function(u){o.replaceStack(function(h){var d=o.nameLookup(h,r[u],e);return i?[" && ",d]:[" != null ? ",d," : ",h]})},l=s;l<a;l++)c(l)},resolvePossibleLambda:function(){this.push([this.aliasable("container.lambda"),"(",this.popStack(),", ",this.contextName(0),")"])},pushStringParam:function(e,r){this.pushContext(),this.pushString(r),r!=="SubExpression"&&(typeof e=="string"?this.pushString(e):this.pushStackLiteral(e))},emptyHash:function(e){this.trackIds&&this.push("{}"),this.stringParams&&(this.push("{}"),this.push("{}")),this.pushStackLiteral(e?"undefined":"{}")},pushHash:function(){this.hash&&this.hashes.push(this.hash),this.hash={values:{},types:[],contexts:[],ids:[]}},popHash:function(){var e=this.hash;this.hash=this.hashes.pop(),this.trackIds&&this.push(this.objectLiteral(e.ids)),this.stringParams&&(this.push(this.objectLiteral(e.contexts)),this.push(this.objectLiteral(e.types))),this.push(this.objectLiteral(e.values))},pushString:function(e){this.pushStackLiteral(this.quotedString(e))},pushLiteral:function(e){this.pushStackLiteral(e)},pushProgram:function(e){e!=null?this.pushStackLiteral(this.programExpression(e)):this.pushStackLiteral(null)},registerDecorator:function(e,r){var s=this.nameLookup("decorators",r,"decorator"),i=this.setupHelperArgs(r,e);this.decorators.push(["var decorator = ",s,";"]),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",i])," || fn;"])},invokeHelper:function(e,r,s){var i=this.popStack(),n=this.setupHelper(e,r),o=[];s&&o.push(n.name),o.push(i),this.options.strict||o.push(this.aliasable("container.hooks.helperMissing"));var a=["(",this.itemsSeparatedBy(o,"||"),")"],c=this.source.functionCall(a,"call",n.callParams);this.push(c)},itemsSeparatedBy:function(e,r){var s=[];s.push(e[0]);for(var i=1;i<e.length;i++)s.push(r,e[i]);return s},invokeKnownHelper:function(e,r){var s=this.setupHelper(e,r);this.push(this.source.functionCall(s.name,"call",s.callParams))},invokeAmbiguous:function(e,r){this.useRegister("helper");var s=this.popStack();this.emptyHash();var i=this.setupHelper(0,e,r),n=this.lastHelper=this.nameLookup("helpers",e,"helper"),o=["(","(helper = ",n," || ",s,")"];this.options.strict||(o[0]="(helper = ",o.push(" != null ? helper : ",this.aliasable("container.hooks.helperMissing"))),this.push(["(",o,i.paramsInit?["),(",i.paramsInit]:[],"),","(typeof helper === ",this.aliasable('"function"')," ? ",this.source.functionCall("helper","call",i.callParams)," : helper))"])},invokePartial:function(e,r,s){var i=[],n=this.setupParams(r,1,i);e&&(r=this.popStack(),delete n.name),s&&(n.indent=JSON.stringify(s)),n.helpers="helpers",n.partials="partials",n.decorators="container.decorators",e?i.unshift(r):i.unshift(this.nameLookup("partials",r,"partial")),this.options.compat&&(n.depths="depths"),n=this.objectLiteral(n),i.push(n),this.push(this.source.functionCall("container.invokePartial","",i))},assignToHash Line truncated
`,e};wr.prototype.Program=function(t){var e="",r=t.body,s=void 0,i=void 0;if(t.blockParams){var n="BLOCK PARAMS: [";for(s=0,i=t.blockParams.length;s<i;s++)n+=" "+t.blockParams[s];n+=" ]",e+=this.pad(n)}for(s=0,i=r.length;s<i;s++)e+=this.accept(r[s]);return this.padding--,e};wr.prototype.MustacheStatement=function(t){return this.pad("{{ "+this.SubExpression(t)+" }}")};wr.prototype.Decorator=function(t){return this.pad("{{ DIRECTIVE "+this.SubExpression(t)+" }}")};wr.prototype.BlockStatement=wr.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};wr.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+" }}")};wr.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+" }}")};wr.prototype.ContentStatement=function(t){return this.pad("CONTENT[ '"+t.value+"' ]")};wr.prototype.CommentStatement=function(t){return this.pad("{{! '"+t.value+"' }}")};wr.prototype.SubExpression=function(t){for(var e=t.params,r=[],s=void 0,i=0,n=e.length;i<n;i++)r.push(this.accept(e[i]));return e="["+r.join(", ")+"]",s=t.hash?" "+this.accept(t.hash):"",this.accept(t.path)+" "+e+s};wr.prototype.PathExpression=function(t){var e=t.parts.join("/");return(t.data?"@":"")+"PATH:"+e};wr.prototype.StringLiteral=function(t){return'"'+t.value+'"'};wr.prototype.NumberLiteral=function(t){return"NUMBER{"+t.value+"}"};wr.prototype.BooleanLiteral=function(t){return"BOOLEAN{"+t.value+"}"};wr.prototype.UndefinedLiteral=function(){return"UNDEFINED"};wr.prototype.NullLiteral=function(){return"NULL"};wr.prototype.Hash=function(t){for(var e=t.pairs,r=[],s=0,i=e.length;s<i;s++)r.push(this.accept(e[s]));return"HASH{"+r.join(", ")+"}"};wr.prototype.HashPair=function(t){return t.key+"="+this.accept(t.value)}});var yye=A((J9t,gye)=>{var d_=fye().default,mye=pye();d_.PrintVisitor=mye.PrintVisitor;d_.print=mye.print;gye.exports=d_;function Aye(t,e){var r=require("fs"),s=r.readFileSync(e,"utf8");t.exports=d_.compile(s)}typeof require<"u"&&require.extensions&&(require.extensions[".handlebars"]=Aye,require.extensions[".hbs"]=Aye)});var Tye=A(m_=>{"use strict";Object.defineProperty(m_,"__esModule",{value:!0});m_.getProxyUrl=Rot;m_.checkBypass=vye;function Rot(t){let e=t.protocol==="https:";if(vye(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 A_(r)}catch{if(!r.startsWith("http://")&&!r.startsWith("https://"))return new A_(`http://${r}`)}else return}function vye(t){if(!t.hostname)return!1;let e=t.hostname;if(vot(e))return!0;let r=process.env.no_proxy||process.env.NO_PROXY||"";if(!r)return!1;let s;t.port?s=Number(t.port):t.protocol==="http:"?s=80:t.protocol==="https:"&&(s=443);let i=[t.hostname.toUpperCase()];typeof s=="number"&&i.push(`${i[0]}:${s}`);for(let n of r.split(",").map(o=>o.trim().toUpperCase()).filter(o=>o))if(n==="*"||i.some(o=>o===n||o.endsWith(`.${n}`)||n.startsWith(".")&&o.endsWith(`${n}`)))return!0;return!1}function vot(t){let e=t.toLowerCase();return e==="localhost"||e.startsWith("127.")||e.startsWith("[::1]")||e.startsWith("[0:0:0:0:0:0:0:1]")}var A_=class extends URL{constructor(e,r){super(e,r),this._decodedUsername=decodeURIComponent(super.username),this._decodedPassword=decodeURIComponent(super.password)}get username(){return this._decodedUsername}get password(){return this._decodedPassword}}});var Qye=A(ar=>{"use strict";var Tot=ar&&ar.__createBinding||(Object.create?(function(t,e,r,s){s===void 0&&(s=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,s,i)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),_ot=ar&&ar.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),C_=ar&&ar.__importStar||(function(){var t=function(e){return t=Object.getOwnPropertyNames||function(r){var s=[];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(s[s.length]=i);return s},t(e)};return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var s=t(e),i=0;i<s.length;i++)s[i]!=="default"&&Tot(r,e,s[i]);return _ot(r,e),r}})(),Lr=ar&&ar.__awaiter||function(t,e,r,s){function i(n){return n instanceof r?n:new r(function(o){o(n)})}return new(r||(r=Promise))(fu Line truncated
`).forEach(r=>{r.match(Lht)||r.match(Uht)||(e+=r)}),Buffer.from(e,"base64")}function qht(t,e="CERTIFICATE"){let s=t.toString("base64").match(/.{1,64}/g)||"";return[`-----BEGIN ${e}-----`,...s,`-----END ${e}-----`].join(`
`).concat(`
`)}});var wT=m(Ld=>{"use strict";Object.defineProperty(Ld,"__esModule",{value:!0});Ld.SHA2_HASH_ALGOS=Ld.RSA_SIGNATURE_ALGOS=Ld.ECDSA_SIGNATURE_ALGOS=void 0;Ld.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"};Ld.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"};Ld.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 Bz=m(BT=>{"use strict";Object.defineProperty(BT,"__esModule",{value:!0});BT.RFC3161TimestampVerificationError=void 0;var wz=class extends Error{};BT.RFC3161TimestampVerificationError=wz});var BAe=m(Lc=>{"use strict";var I7e=Lc&&Lc.__createBinding||(Object.create?(function(t,e,r,s){s===void 0&&(s=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,s,i)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),b7e=Lc&&Lc.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),w7e=Lc&&Lc.__importStar||(function(){var t=function(e){return t=Object.getOwnPropertyNames||function(r){var s=[];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(s[s.length]=i);return s},t(e)};return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var s=t(e),i=0;i<s.length;i++)s[i]!=="default"&&I7e(r,e,s[i]);return b7e(r,e),r}})();Object.defineProperty(Lc,"__esModule",{value:!0});Lc.TSTInfo=void 0;var wAe=w7e(Gm()),B7e=wT(),S7e=Bz(),Sz=class{root;constructor(e){this.root=e}get version(){return this.root.subs[0].toInteger()}get genTime(){return this.root.subs[4].toDate()}get messageImprintHashAlgorithm(){let e=this.messageImprintObj.subs[0].subs[0].toOID();return B7e.SHA2_HASH_ALGOS[e]}get messageImprintHashedMessage(){return this.messageImprintObj.subs[1].value}get raw(){return this.root.toDER()}verify(e){let r=wAe.digest(this.messageImprintHashAlgorithm,e);if(!wAe.bufferEqual(r,this.messageImprintHashedMessage))throw new S7e.RFC3161TimestampVerificationError("message imprint does not match artifact")}get messageImprintObj(){return this.root.subs[2]}};Lc.TSTInfo=Sz});var xAe=m(Fc=>{"use strict";var x7e=Fc&&Fc.__createBinding||(Object.create?(function(t,e,r,s){s===void 0&&(s=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,s,i)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),N7e=Fc&&Fc.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),R7e=Fc&&Fc.__importStar||(function(){var t=function(e){return t=Object.getOwnPropertyNames||function(r){var s=[];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(s[s.length]=i);return s},t(e)};return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var s=t(e),i=0;i<s.length;i++)s[i]!=="default"&&x7e(r,e,s[i]);return N7e(r,e),r}})();Object.defineProperty(Fc,"__esModule",{value:!0});Fc.RFC3161Timestamp=void 0;var T7e=CT(),xz=R7e(Gm()),SAe=wT(),wI=Bz(),Q7e=BAe(),v7e="1.2.840.113549.1.7.2",_7e="1.2.840.113549.1.9.16.1.4",P7e="1.2.840.113549.1.9.4",Nz=class t{root;constructor(e){this.root=e}static parse(e){let r=T7e.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 SAe.SHA2_HASH_ALGOS[e]}get signatureAlgorithm(){let e=this.signatureAlgorithmObj.subs[0].toOID();return SAe.ECDSA_SIGNATURE_ALGOS[e]}get signatureValue(){return this.signatureValueObj.value}get tstInfo(){return new Q7e.TSTInfo(this.eContentObj.subs[0].subs[0])}verify(e,r){if(!this.timeStampTokenObj)throw new wI.RFC3161TimestampVerificationError("timeStampToken is missing");if(this.contentType!==v7e)throw new wI.RFC3161TimestampVerificationError(`incorrect content type: ${this.contentType}`);if(this.eContentType!==_7e)throw new wI.RFC3161TimestampVerificationError(`incorrect encapsulated content type: ${this.eContentType}`);this.tstInfo.verify(e),this.verifyMessageDigest(),this.verifySignature(r)}verifyMessageDigest(){let e=xz.digest(this.signerDigestAlgorithm,this.tstInfo.raw),r=this.messageDigestAttributeObj.subs[1].subs[0].value;if(!xz.bufferEqual(e,r))throw new wI.RFC3161TimestampVerificationError("signed data does not match tstInfo")}verifySignature(e){let r=this.signedAttrsObj.toDER();if(r[0 Line truncated
`)}});var fQ=A(xd=>{"use strict";Object.defineProperty(xd,"__esModule",{value:!0});xd.SHA2_HASH_ALGOS=xd.RSA_SIGNATURE_ALGOS=xd.ECDSA_SIGNATURE_ALGOS=void 0;xd.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"};xd.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"};xd.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 z3=A(pQ=>{"use strict";Object.defineProperty(pQ,"__esModule",{value:!0});pQ.RFC3161TimestampVerificationError=void 0;var H3=class extends Error{};pQ.RFC3161TimestampVerificationError=H3});var s0e=A(ll=>{"use strict";var Ght=ll&&ll.__createBinding||(Object.create?(function(t,e,r,s){s===void 0&&(s=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,s,i)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),Hht=ll&&ll.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),zht=ll&&ll.__importStar||(function(){var t=function(e){return t=Object.getOwnPropertyNames||function(r){var s=[];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(s[s.length]=i);return s},t(e)};return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var s=t(e),i=0;i<s.length;i++)s[i]!=="default"&&Ght(r,e,s[i]);return Hht(r,e),r}})();Object.defineProperty(ll,"__esModule",{value:!0});ll.TSTInfo=void 0;var r0e=zht(cy()),Vht=fQ(),$ht=z3(),V3=class{root;constructor(e){this.root=e}get version(){return this.root.subs[0].toInteger()}get genTime(){return this.root.subs[4].toDate()}get messageImprintHashAlgorithm(){let e=this.messageImprintObj.subs[0].subs[0].toOID();return Vht.SHA2_HASH_ALGOS[e]}get messageImprintHashedMessage(){return this.messageImprintObj.subs[1].value}get raw(){return this.root.toDER()}verify(e){let r=r0e.digest(this.messageImprintHashAlgorithm,e);if(!r0e.bufferEqual(r,this.messageImprintHashedMessage))throw new $ht.RFC3161TimestampVerificationError("message imprint does not match artifact")}get messageImprintObj(){return this.root.subs[2]}};ll.TSTInfo=V3});var n0e=A(ul=>{"use strict";var jht=ul&&ul.__createBinding||(Object.create?(function(t,e,r,s){s===void 0&&(s=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,s,i)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),Jht=ul&&ul.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Yht=ul&&ul.__importStar||(function(){var t=function(e){return t=Object.getOwnPropertyNames||function(r){var s=[];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(s[s.length]=i);return s},t(e)};return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var s=t(e),i=0;i<s.length;i++)s[i]!=="default"&&jht(r,e,s[i]);return Jht(r,e),r}})();Object.defineProperty(ul,"__esModule",{value:!0});ul.RFC3161Timestamp=void 0;var Wht=uQ(),$3=Yht(cy()),i0e=fQ(),bb=z3(),Kht=s0e(),Xht="1.2.840.113549.1.7.2",Zht="1.2.840.113549.1.9.16.1.4",edt="1.2.840.113549.1.9.4",j3=class t{root;constructor(e){this.root=e}static parse(e){let r=Wht.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 i0e.SHA2_HASH_ALGOS[e]}get signatureAlgorithm(){let e=this.signatureAlgorithmObj.subs[0].toOID();return i0e.ECDSA_SIGNATURE_ALGOS[e]}get signatureValue(){return this.signatureValueObj.value}get tstInfo(){return new Kht.TSTInfo(this.eContentObj.subs[0].subs[0])}verify(e,r){if(!this.timeStampTokenObj)throw new bb.RFC3161TimestampVerificationError("timeStampToken is missing");if(this.contentType!==Xht)throw new bb.RFC3161TimestampVerificationError(`incorrect content type: ${this.contentType}`);if(this.eContentType!==Zht)throw new bb.RFC3161TimestampVerificationError(`incorrect encapsulated content type: ${this.eContentType}`);this.tstInfo.verify(e),this.verifyMessageDigest(),this.verifySignature(r)}verifyMessageDigest(){let e=$3.digest(this.signerDigestAlgorithm,this.tstInfo.raw),r=this.messageDigestAttributeObj.subs[1].subs[0].value;if(!$3.bufferEqual(e,r))throw new bb.RFC3161TimestampVerificationError("signed data does not match tstInfo")}verifySignature(e){let r=this.signedAttrsObj.toDER();if(r[0 Line truncated
\v\f\r\x1B !"#$\u066A&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~\x7F\xB0\xB7\u2219\u221A\u2592\u2500\u2502\u253C\u2524\u252C\u251C\u2534\u2510\u250C\u2514\u2518\u03B2\u221E\u03C6\xB1\xBD\xBC\u2248\xAB\xBB\uFEF7\uFEF8\uFFFD\uFFFD\uFEFB\uFEFC\uFFFD\xA0\xAD\uFE82\xA3\xA4\uFE84\uFFFD\uFFFD\uFE8E\uFE8F\uFE95\uFE99\u060C\uFE9D\uFEA1\uFEA5\u0660\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\uFED1\u061B\uFEB1\uFEB5\uFEB9\u061F\xA2\uFE80\uFE81\uFE83\uFE85\uFECA\uFE8B\uFE8D\uFE91\uFE93\uFE97\uFE9B\uFE9F\uFEA3\uFEA7\uFEA9\uFEAB\uFEAD\uFEAF\uFEB3\uFEB7\uFEBB\uFEBF\uFEC1\uFEC5\uFECB\uFECF\xA6\xAC\xF7\xD7\uFEC9\u0640\uFED3\uFED7\uFEDB\uFEDF\uFEE3\uFEE7\uFEEB\uFEED\uFEEF\uFEF3\uFEBD\uFECC\uFECE\uFECD\uFEE1\uFE7D\u0651\uFEE5\uFEE9\uFEEC\uFEF0\uFEF2\uFED0\uFED5\uFEF5\uFEF6\uFEDD\uFED9\uFEF1\u25A0\uFFFD`},ibm864:"cp864",csibm864:"cp864",cp865:{type:"_sbcs",chars:"\xC7\xFC\xE9\xE2\xE4\xE0\xE5\xE7\xEA\xEB\xE8\xEF\xEE\xEC\xC4\xC5\xC9\xE6\xC6\xF4\xF6\xF2\xFB\xF9\xFF\xD6\xDC\xF8\xA3\xD8\u20A7\u0192\xE1\xED\xF3\xFA\xF1\xD1\xAA\xBA\xBF\u2310\xAC\xBD\xBC\xA1\xAB\xA4\u2591\u2592\u2593\u2502\u2524\u2561\u2562\u2556\u2555\u2563\u2551\u2557\u255D\u255C\u255B\u2510\u2514\u2534\u252C\u251C\u2500\u253C\u255E\u255F\u255A\u2554\u2569\u2566\u2560\u2550\u256C\u2567\u2568\u2564\u2565\u2559\u2558\u2552\u2553\u256B\u256A\u2518\u250C\u2588\u2584\u258C\u2590\u2580\u03B1\xDF\u0393\u03C0\u03A3\u03C3\xB5\u03C4\u03A6\u0398\u03A9\u03B4\u221E\u03C6\u03B5\u2229\u2261\xB1\u2265\u2264\u2320\u2321\xF7\u2248\xB0\u2219\xB7\u221A\u207F\xB2\u25A0\xA0"},ibm865:"cp865",csibm865:"cp865",cp866:{type:"_sbcs",chars:"\u0410\u0411\u0412\u0413\u0414\u0415\u0416\u0417\u0418\u0419\u041A\u041B\u041C\u041D\u041E\u041F\u0420\u0421\u0422\u0423\u0424\u0425\u0426\u0427\u0428\u0429\u042A\u042B\u042C\u042D\u042E\u042F\u0430\u0431\u0432\u0433\u0434\u0435\u0436\u0437\u0438\u0439\u043A\u043B\u043C\u043D\u043E\u043F\u2591\u2592\u2593\u2502\u2524\u2561\u2562\u2556\u2555\u2563\u2551\u2557\u255D\u255C\u255B\u2510\u2514\u2534\u252C\u251C\u2500\u253C\u255E\u255F\u255A\u2554\u2569\u2566\u2560\u2550\u256C\u2567\u2568\u2564\u2565\u2559\u2558\u2552\u2553\u256B\u256A\u2518\u250C\u2588\u2584\u258C\u2590\u2580\u0440\u0441\u0442\u0443\u0444\u0445\u0446\u0447\u0448\u0449\u044A\u044B\u044C\u044D\u044E\u044F\u0401\u0451\u0404\u0454\u0407\u0457\u040E\u045E\xB0\u2219\xB7\u221A\u2116\xA4\u25A0\xA0"},ibm866:"cp866",csibm866:"cp866",cp869:{type:"_sbcs",chars:"\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\u0386\uFFFD\xB7\xAC\xA6\u2018\u2019\u0388\u2015\u0389\u038A\u03AA\u038C\uFFFD\uFFFD\u038E\u03AB\xA9\u038F\xB2\xB3\u03AC\xA3\u03AD\u03AE\u03AF\u03CA\u0390\u03CC\u03CD\u0391\u0392\u0393\u0394\u0395\u0396\u0397\xBD\u0398\u0399\xAB\xBB\u2591\u2592\u2593\u2502\u2524\u039A\u039B\u039C\u039D\u2563\u2551\u2557\u255D\u039E\u039F\u2510\u2514\u2534\u252C\u251C\u2500\u253C\u03A0\u03A1\u255A\u2554\u2569\u2566\u2560\u2550\u256C\u03A3\u03A4\u03A5\u03A6\u03A7\u03A8\u03A9\u03B1\u03B2\u03B3\u2518\u250C\u2588\u2584\u03B4\u03B5\u2580\u03B6\u03B7\u03B8\u03B9\u03BA\u03BB\u03BC\u03BD\u03BE\u03BF\u03C0\u03C1\u03C3\u03C2\u03C4\u0384\xAD\xB1\u03C5\u03C6\u03C7\xA7\u03C8\u0385\xB0\xA8\u03C9\u03CB\u03B0\u03CE\u25A0\xA0"},ibm869:"cp869",csibm869:"cp869",cp922:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\xA1\xA2\xA3\xA4\xA5\xA6\xA7\xA8\xA9\xAA\xAB\xAC\xAD\xAE\u203E\xB0\xB1\xB2\xB3\xB4\xB5\xB6\xB7\xB8\xB9\xBA\xBB\xBC\xBD\xBE\xBF\xC0\xC1\xC2\xC3\xC4\xC5\xC6\xC7\xC8\xC9\xCA\xCB\xCC\xCD\xCE\xCF\u0160\xD1\xD2\xD3\xD4\xD5\xD6\xD7\xD8\xD9\xDA\xDB\xDC\xDD\u017D\xDF\xE0\xE1\xE2\xE3\xE4\xE5\xE6\xE7\xE8\xE9\xEA\xEB\xEC\xED\xEE\xEF\u0161\xF1\xF2\xF3\xF4\xF5\xF6\xF7\xF8\xF9\xFA\xFB\xFC\xFD\u017E\xFF"},ibm922:"cp922",csibm922:"cp922",cp1046:{type:"_sbcs",chars:"\uFE88\xD7\xF7\uF8F6\uF8F5\uF8F4\uF8F7\uFE71\x88\u25A0\u2502\u2500\u2510\u250C\u2514\u2518\uFE79\uFE7B\uFE7D\uFE7F\uFE77\uFE8A\uFEF0\uFEF3\uFEF2\uFECE\uFECF\uFED0\uFEF6\uFEF8\uFEFA\uFEFC\xA0\uF8FA\uF8F9\uF8F8\xA4\uF8FB\uFE8B\uFE91\uFE97\uFE9B\uFE9F\uFEA3\u060C\xAD\uFEA7\uFEB3\u0660\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\uFEB7\u061B\uFEBB\uFEBF\uFECA\u061F\uFECB\u0621\u0622\u0623\u0624\u0625\u0626\u0627\u0628\u0629\u062A\u062B\u062C\u062D\u062E\u062F\u0630\u0631\u0632\u0633\u0634\u0635\u0636\u0637\uFEC7\u0639\u063A\uFECC\uFE82\uFE84\uFE8E\uFED3\u0640\u0641\u0642\u0643\u0644\u0645\u0646\u0647\u0648\u0649\u064A\u064B\u064C\u064D\u064E\u064F\u0650\u0651\u0652\uFED7\uFEDB\uFEDF\uF8FC\uFEF5\uFEF7\uFEF9\uFEFB\uFEE3\uFEE7\uFEEC\uFEE9\uFFFD"},ibm1046:"cp1046",csibm1046:"cp1046",cp1124:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\u0401\u0402\u0490\u0404\u0405\u0406\u0407\u0408\u0409\u040A\u040B\u040C\xAD\u040E\u040F\u0410\u0411\u0412\u0413\u0414\u0415\u0416\u0417\u0418\u0419\u041A\u041B\u041C\u041D\u041E\u041FLine truncated
\v\f\r\u1EE8\u1EF0\u1EF2\u1EF6\u1EF8\xDD\u1EF4\x1B !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~\x7F\xC0\u1EA2\xC3\xC1\u1EA0\u1EB6\u1EAC\xC8\u1EBA\u1EBC\xC9\u1EB8\u1EC6\xCC\u1EC8\u0128\xCD\u1ECA\xD2\u1ECE\xD5\xD3\u1ECC\u1ED8\u1EDC\u1EDE\u1EE0\u1EDA\u1EE2\xD9\u1EE6\u0168\xA0\u0102\xC2\xCA\xD4\u01A0\u01AF\u0110\u0103\xE2\xEA\xF4\u01A1\u01B0\u0111\u1EB0\u0300\u0309\u0303\u0301\u0323\xE0\u1EA3\xE3\xE1\u1EA1\u1EB2\u1EB1\u1EB3\u1EB5\u1EAF\u1EB4\u1EAE\u1EA6\u1EA8\u1EAA\u1EA4\u1EC0\u1EB7\u1EA7\u1EA9\u1EAB\u1EA5\u1EAD\xE8\u1EC2\u1EBB\u1EBD\xE9\u1EB9\u1EC1\u1EC3\u1EC5\u1EBF\u1EC7\xEC\u1EC9\u1EC4\u1EBE\u1ED2\u0129\xED\u1ECB\xF2\u1ED4\u1ECF\xF5\xF3\u1ECD\u1ED3\u1ED5\u1ED7\u1ED1\u1ED9\u1EDD\u1EDF\u1EE1\u1EDB\u1EE3\xF9\u1ED6\u1EE7\u0169\xFA\u1EE5\u1EEB\u1EED\u1EEF\u1EE9\u1EF1\u1EF3\u1EF7\u1EF9\xFD\u1EF5\u1ED0`},georgianacademy:{type:"_sbcs",chars:"\x80\x81\u201A\u0192\u201E\u2026\u2020\u2021\u02C6\u2030\u0160\u2039\u0152\x8D\x8E\x8F\x90\u2018\u2019\u201C\u201D\u2022\u2013\u2014\u02DC\u2122\u0161\u203A\u0153\x9D\x9E\u0178\xA0\xA1\xA2\xA3\xA4\xA5\xA6\xA7\xA8\xA9\xAA\xAB\xAC\xAD\xAE\xAF\xB0\xB1\xB2\xB3\xB4\xB5\xB6\xB7\xB8\xB9\xBA\xBB\xBC\xBD\xBE\xBF\u10D0\u10D1\u10D2\u10D3\u10D4\u10D5\u10D6\u10D7\u10D8\u10D9\u10DA\u10DB\u10DC\u10DD\u10DE\u10DF\u10E0\u10E1\u10E2\u10E3\u10E4\u10E5\u10E6\u10E7\u10E8\u10E9\u10EA\u10EB\u10EC\u10ED\u10EE\u10EF\u10F0\u10F1\u10F2\u10F3\u10F4\u10F5\u10F6\xE7\xE8\xE9\xEA\xEB\xEC\xED\xEE\xEF\xF0\xF1\xF2\xF3\xF4\xF5\xF6\xF7\xF8\xF9\xFA\xFB\xFC\xFD\xFE\xFF"},georgianps:{type:"_sbcs",chars:"\x80\x81\u201A\u0192\u201E\u2026\u2020\u2021\u02C6\u2030\u0160\u2039\u0152\x8D\x8E\x8F\x90\u2018\u2019\u201C\u201D\u2022\u2013\u2014\u02DC\u2122\u0161\u203A\u0153\x9D\x9E\u0178\xA0\xA1\xA2\xA3\xA4\xA5\xA6\xA7\xA8\xA9\xAA\xAB\xAC\xAD\xAE\xAF\xB0\xB1\xB2\xB3\xB4\xB5\xB6\xB7\xB8\xB9\xBA\xBB\xBC\xBD\xBE\xBF\u10D0\u10D1\u10D2\u10D3\u10D4\u10D5\u10D6\u10F1\u10D7\u10D8\u10D9\u10DA\u10DB\u10DC\u10F2\u10DD\u10DE\u10DF\u10E0\u10E1\u10E2\u10F3\u10E3\u10E4\u10E5\u10E6\u10E7\u10E8\u10E9\u10EA\u10EB\u10EC\u10ED\u10EE\u10F4\u10EF\u10F0\u10F5\xE6\xE7\xE8\xE9\xEA\xEB\xEC\xED\xEE\xEF\xF0\xF1\xF2\xF3\xF4\xF5\xF6\xF7\xF8\xF9\xFA\xFB\xFC\xFD\xFE\xFF"},pt154:{type:"_sbcs",chars:"\u0496\u0492\u04EE\u0493\u201E\u2026\u04B6\u04AE\u04B2\u04AF\u04A0\u04E2\u04A2\u049A\u04BA\u04B8\u0497\u2018\u2019\u201C\u201D\u2022\u2013\u2014\u04B3\u04B7\u04A1\u04E3\u04A3\u049B\u04BB\u04B9\xA0\u040E\u045E\u0408\u04E8\u0498\u04B0\xA7\u0401\xA9\u04D8\xAB\xAC\u04EF\xAE\u049C\xB0\u04B1\u0406\u0456\u0499\u04E9\xB6\xB7\u0451\u2116\u04D9\xBB\u0458\u04AA\u04AB\u049D\u0410\u0411\u0412\u0413\u0414\u0415\u0416\u0417\u0418\u0419\u041A\u041B\u041C\u041D\u041E\u041F\u0420\u0421\u0422\u0423\u0424\u0425\u0426\u0427\u0428\u0429\u042A\u042B\u042C\u042D\u042E\u042F\u0430\u0431\u0432\u0433\u0434\u0435\u0436\u0437\u0438\u0439\u043A\u043B\u043C\u043D\u043E\u043F\u0440\u0441\u0442\u0443\u0444\u0445\u0446\u0447\u0448\u0449\u044A\u044B\u044C\u044D\u044E\u044F"},viscii:{type:"_sbcs",chars:`\0\u1EB2\u1EB4\u1EAA\x07\b
\v\f\r\u1EF6\u1EF8\x1B\u1EF4 !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~\x7F\u1EA0\u1EAE\u1EB0\u1EB6\u1EA4\u1EA6\u1EA8\u1EAC\u1EBC\u1EB8\u1EBE\u1EC0\u1EC2\u1EC4\u1EC6\u1ED0\u1ED2\u1ED4\u1ED6\u1ED8\u1EE2\u1EDA\u1EDC\u1EDE\u1ECA\u1ECE\u1ECC\u1EC8\u1EE6\u0168\u1EE4\u1EF2\xD5\u1EAF\u1EB1\u1EB7\u1EA5\u1EA7\u1EA9\u1EAD\u1EBD\u1EB9\u1EBF\u1EC1\u1EC3\u1EC5\u1EC7\u1ED1\u1ED3\u1ED5\u1ED7\u1EE0\u01A0\u1ED9\u1EDD\u1EDF\u1ECB\u1EF0\u1EE8\u1EEA\u1EEC\u01A1\u1EDB\u01AF\xC0\xC1\xC2\xC3\u1EA2\u0102\u1EB3\u1EB5\xC8\xC9\xCA\u1EBA\xCC\xCD\u0128\u1EF3\u0110\u1EE9\xD2\xD3\xD4\u1EA1\u1EF7\u1EEB\u1EED\xD9\xDA\u1EF9\u1EF5\xDD\u1EE1\u01B0\xE0\xE1\xE2\xE3\u1EA3\u0103\u1EEF\u1EAB\xE8\xE9\xEA\u1EBB\xEC\xED\u0129\u1EC9\u0111\u1EF1\xF2\xF3\xF4\xF5\u1ECF\u1ECD\u1EE5\xF9\xFA\u0169\u1EE7\xFD\u1EE3\u1EEE`},iso646cn:{type:"_sbcs",chars:`\0\x07\b
\v\f\r\x1B !"#\xA5%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}\u203E\x7F\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD`},iso646jp:{type:"_sbcs",chars:`\0\x07\b
\v\f\r\x1B !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\xA5]^_\`abcdefghijklmnopqrstuvwxyz{|}\u203E\x7F\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD`},hproman8:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\xC0\xC2\xC8\xCA\xCB\xCE\xCF\xB4\u02CB\u02C6\xA8\u02DC\xD9\xDB\u20A4\xAF\xDD\xFD\xB0\xC7\xE7\xD1\xF1\xA1\xBF\xA4\xA3\xA5\xA7\u0192\xA2\xE2\xEA\xF4\xFB\xE1\xE9\xF3\xFA\xE0\xE8\xF2\xF9\xE4\xEB\xF6\xFC\xC5\xEE\xD8\xC6\xE5\xED\xF8\xE6\xC4\xEC\xD6\xDC\xC9\xEF\xDF\xD4\xC1\xC3\xE3\xD0\xF0\xCD\xCC\xD3\xD2\xD5\xF5\u0160\u0161\xDA\u0178\xFF\xDE\xFE\xB7\xB5\xB6\xBE\u2014\xBC\xBD\xAA\xBA\xAB\u25A0\xBB\xB1\uFFFD"},macintosh:{type:"_sbcs",chars:"\xC4\xC5\xC7\xC9\xD1\xD6\xDC\xE1\xE0\xE2\xE4\xE3\xE5\xE7\xE9\xE8\xEA\xEB\xED\xEC\xEE\xEF\xF1\xF3\xF2\xF4\xF6\xF5\xFA\xF9\xFB\xFC\u2020\xB0\xA2\xA3\xA7\u2022\xB6\xDF\xAE\xA9\u2122\xB4\xA8\u2260\xC6\xD8\u221E\xB1\u2264\u2265\xA5\xB5\u2202\u2211\u220F\u03C0\u222B\xAA\xBA\u2126\xE6\xF8\xBF\xA1\xAC\u221A\u0192\u2248\u2206\xAB\xBB\u2026\xA0\xC0\xC3\xD5\u0152\u0153\u2013\u2014\u201C\u201D\u2018\u2019\xF7\u25CA\xFF\u0178\u2044\xA4\u2039\u203A\uFB01\uFB02\u2021\xB7\u201A\u201E\u2030\xC2\xCA\xC1\xCB\xC8\xCD\xCE\xCF\xCC\xD3\xD4\uFFFD\xD2\xDA\xDB\xD9\u0131\u02C6\u02DC\xAF\u02D8\u02D9\u02DA\xB8\u02DD\u02DB\u02C7"},ascii:{type:"_sbcs",chars:"\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD"},tis620:{type:"_sbcs",chars:"\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\u0E01\u0E02\u0E03\u0E04\u0E05\u0E06\u0E07\u0E08\u0E09\u0E0A\u0E0B\u0E0C\u0E0D\u0E0E\u0E0F\u0E10\u0E11\u0E12\u0E13\u0E14\u0E15\u0E16\u0E17\u0E18\u0E19\u0E1A\u0E1B\u0E1C\u0E1D\u0E1E\u0E1F\u0E20\u0E21\u0E22\u0E23\u0E24\u0E25\u0E26\u0E27\u0E28\u0E29\u0E2A\u0E2B\u0E2C\u0E2D\u0E2E\u0E2F\u0E30\u0E31\u0E32\u0E33\u0E34\u0E35\u0E36\u0E37\u0E38\u0E39\u0E3A\uFFFD\uFFFD\uFFFD\uFFFD\u0E3F\u0E40\u0E41\u0E42\u0E43\u0E44\u0E45\u0E46\u0E47\u0E48\u0E49\u0E4A\u0E4B\u0E4C\u0E4D\u0E4E\u0E4F\u0E50\u0E51\u0E52\u0E53\u0E54\u0E55\u0E56\u0E57\u0E58\u0E59\u0E5A\u0E5B\uFFFD\uFFFD\uFFFD\uFFFD"}}});var Ope=m(Dpe=>{"use strict";var f$=nu().Buffer;Dpe._dbcs=au;var vs=-1,Ppe=-2,Mo=-10,Ri=-1e3,rg=new Array(256),GI=-1;for(lQ=0;lQ<256;lQ++)rg[lQ]=vs;var lQ;function au(t,e){if(this.encodingName=t.encodingName,!t)throw new Error("DBCS codec is called without the data.");if(!t.table)throw new Error("Encoding '"+this.encodingName+"' has no data.");var r=t.table();this.decodeTables=[],this.decodeTables[0]=rg.slice(0),this.decodeTableSeq=[];for(var s=0;s<r.length;s++)this._addDecodeChunk(r[s]);if(typeof t.gb18030=="function"){this.gb18030=t.gb18030();var i=this.decodeTables.length;this.decodeTables.push(rg.slice(0));var n=this.decodeTables.length;this.decodeTables.push(rg.slice(0));for(var o=this.decodeTables[0],s=129;s<=254;s++)for(var a=this.decodeTables[Ri-o[s]],c=48;c<=57;c++){if(a[c]===vs)a[c]=Ri-i;else if(a[c]>Ri)throw new Error("gb18030 decode tables conflict at byte 2");for(var l=this.decodeTables[Ri-a[c]],u=129;u<=254;u++){if(l[u]===vs)l[u]=Ri-n;else{if(l[u]===Ri-n)continue;if(l[u]>Ri)throw new Error("gb18030 decode tables conflict at byte 3")}for(var d=this.decodeTables[Ri-l[u]],h=48;h<=57;h++)d[h]===vs&&(d[h]=Ppe)}}}this.defaultCharUnicode=e.defaultCharUnicode,this.encodeTable=[],this.encodeTableSeq=[];var f={};if(t.encodeSkipVals)for(var s=0;s<t.encodeSkipValsLine truncated
\v\f\r\x1B !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\xA5]^_\`abcdefghijklmnopqrstuvwxyz{|}\u203E\x7F\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD`},hproman8:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\xC0\xC2\xC8\xCA\xCB\xCE\xCF\xB4\u02CB\u02C6\xA8\u02DC\xD9\xDB\u20A4\xAF\xDD\xFD\xB0\xC7\xE7\xD1\xF1\xA1\xBF\xA4\xA3\xA5\xA7\u0192\xA2\xE2\xEA\xF4\xFB\xE1\xE9\xF3\xFA\xE0\xE8\xF2\xF9\xE4\xEB\xF6\xFC\xC5\xEE\xD8\xC6\xE5\xED\xF8\xE6\xC4\xEC\xD6\xDC\xC9\xEF\xDF\xD4\xC1\xC3\xE3\xD0\xF0\xCD\xCC\xD3\xD2\xD5\xF5\u0160\u0161\xDA\u0178\xFF\xDE\xFE\xB7\xB5\xB6\xBE\u2014\xBC\xBD\xAA\xBA\xAB\u25A0\xBB\xB1\uFFFD"},macintosh:{type:"_sbcs",chars:"\xC4\xC5\xC7\xC9\xD1\xD6\xDC\xE1\xE0\xE2\xE4\xE3\xE5\xE7\xE9\xE8\xEA\xEB\xED\xEC\xEE\xEF\xF1\xF3\xF2\xF4\xF6\xF5\xFA\xF9\xFB\xFC\u2020\xB0\xA2\xA3\xA7\u2022\xB6\xDF\xAE\xA9\u2122\xB4\xA8\u2260\xC6\xD8\u221E\xB1\u2264\u2265\xA5\xB5\u2202\u2211\u220F\u03C0\u222B\xAA\xBA\u2126\xE6\xF8\xBF\xA1\xAC\u221A\u0192\u2248\u2206\xAB\xBB\u2026\xA0\xC0\xC3\xD5\u0152\u0153\u2013\u2014\u201C\u201D\u2018\u2019\xF7\u25CA\xFF\u0178\u2044\xA4\u2039\u203A\uFB01\uFB02\u2021\xB7\u201A\u201E\u2030\xC2\xCA\xC1\xCB\xC8\xCD\xCE\xCF\xCC\xD3\xD4\uFFFD\xD2\xDA\xDB\xD9\u0131\u02C6\u02DC\xAF\u02D8\u02D9\u02DA\xB8\u02DD\u02DB\u02C7"},ascii:{type:"_sbcs",chars:"\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD"},tis620:{type:"_sbcs",chars:"\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\u0E01\u0E02\u0E03\u0E04\u0E05\u0E06\u0E07\u0E08\u0E09\u0E0A\u0E0B\u0E0C\u0E0D\u0E0E\u0E0F\u0E10\u0E11\u0E12\u0E13\u0E14\u0E15\u0E16\u0E17\u0E18\u0E19\u0E1A\u0E1B\u0E1C\u0E1D\u0E1E\u0E1F\u0E20\u0E21\u0E22\u0E23\u0E24\u0E25\u0E26\u0E27\u0E28\u0E29\u0E2A\u0E2B\u0E2C\u0E2D\u0E2E\u0E2F\u0E30\u0E31\u0E32\u0E33\u0E34\u0E35\u0E36\u0E37\u0E38\u0E39\u0E3A\uFFFD\uFFFD\uFFFD\uFFFD\u0E3F\u0E40\u0E41\u0E42\u0E43\u0E44\u0E45\u0E46\u0E47\u0E48\u0E49\u0E4A\u0E4B\u0E4C\u0E4D\u0E4E\u0E4F\u0E50\u0E51\u0E52\u0E53\u0E54\u0E55\u0E56\u0E57\u0E58\u0E59\u0E5A\u0E5B\uFFFD\uFFFD\uFFFD\uFFFD"}}});var Ebe=A(ybe=>{"use strict";var D$=Fu().Buffer;ybe._dbcs=Gu;var Hs=-1,gbe=-2,ia=-10,Vi=-1e3,by=new Array(256),qb=-1;for(ZQ=0;ZQ<256;ZQ++)by[ZQ]=Hs;var ZQ;function Gu(t,e){if(this.encodingName=t.encodingName,!t)throw new Error("DBCS codec is called without the data.");if(!t.table)throw new Error("Encoding '"+this.encodingName+"' has no data.");var r=t.table();this.decodeTables=[],this.decodeTables[0]=by.slice(0),this.decodeTableSeq=[];for(var s=0;s<r.length;s++)this._addDecodeChunk(r[s]);if(typeof t.gb18030=="function"){this.gb18030=t.gb18030();var i=this.decodeTables.length;this.decodeTables.push(by.slice(0));var n=this.decodeTables.length;this.decodeTables.push(by.slice(0));for(var o=this.decodeTables[0],s=129;s<=254;s++)for(var a=this.decodeTables[Vi-o[s]],c=48;c<=57;c++){if(a[c]===Hs)a[c]=Vi-i;else if(a[c]>Vi)throw new Error("gb18030 decode tables conflict at byte 2");for(var l=this.decodeTables[Vi-a[c]],u=129;u<=254;u++){if(l[u]===Hs)l[u]=Vi-n;else{if(l[u]===Vi-n)continue;if(l[u]>Vi)throw new Error("gb18030 decode tables conflict at byte 3")}for(var h=this.decodeTables[Vi-l[u]],d=48;d<=57;d++)h[d]===Hs&&(h[d]=gbe)}}}this.defaultCharUnicode=e.defaultCharUnicode,this.encodeTable=[],this.encodeTableSeq=[];var f={};if(t.encodeSkipVals)for(var s=0;s<t.encodeSkipValsLine truncated
Wanted: ${this.expectedSize}
Found: ${this.size}`);s.code="EBADSIZE",s.found=this.size,s.expected=this.expectedSize,s.sri=this.sri,this.emit("error",s)}else if(this.sri&&!r){let s=new Error(`${this.sri} integrity checksum failed when using ${this.algorithm}: wanted ${this.digests} but got ${e}. (${this.size} bytes)`);s.code="EINTEGRITY",s.found=e,s.expected=this.digests,s.algorithm=this.algorithm,s.sri=this.sri,this.emit("error",s)}else this.#t=this.size,this.emit("size",this.size),this.#e=e,this.emit("integrity",e),r&&(this.#s=r,this.emit("verified",r))}},du=class{get isHash(){return!0}constructor(e,r){let s=r?.strict;this.source=e.trim(),this.digest="",this.algorithm="",this.options=[];let i=this.source.match(s?zrt:Hrt);if(!i||s&&!O$.includes(i[1])||!Hme.includes(i[1]))return;this.algorithm=i[1],this.digest=i[2];let n=i[3];n&&(this.options=n.slice(1).split("?"))}hexDigest(){return this.digest&&Buffer.from(this.digest,"base64").toString("hex")}toJSON(){return this.toString()}match(e,r){let s=Jn(e,r);if(!s)return!1;if(s.isIntegrity){let i=s.pickAlgorithm(r,[this.algorithm]);if(!i)return!1;let n=s[i].find(o=>o.digest===this.digest);return n||!1}return s.digest===this.digest?s:!1}toString(e){return e?.strict&&!(O$.includes(this.algorithm)&&this.digest.match(Grt)&&this.options.every(r=>r.match(Vrt)))?"":`${this.algorithm}-${this.digest}${KI(this.options)}`}};function Gme(t,e,r,s){let i=t!=="",n=!1,o="",a=s.length-1;for(let l=0;l<a;l++){let u=du.prototype.toString.call(s[l],r);u&&(n=!0,o+=u,o+=e)}let c=du.prototype.toString.call(s[a],r);return c&&(n=!0,o+=c),i&&n?t+e+o:t+o}var Yf=class{get isIntegrity(){return!0}toJSON(){return this.toString()}isEmpty(){return Object.keys(this).length===0}toString(e){let r=e?.sep||" ",s="";if(e?.strict){r=r.replace(/\S+/g," ");for(let i of O$)this[i]&&(s=Gme(s,r,e,this[i]))}else for(let i of Object.keys(this))s=Gme(s,r,e,this[i]);return s}concat(e,r){let s=typeof e=="string"?e:YI(e,r);return Jn(`${this.toString(r)} ${s}`,r)}hexDigest(){return Jn(this,{single:!0}).hexDigest()}merge(e,r){let s=Jn(e,r);for(let i in s)if(this[i]){if(!this[i].find(n=>s[i].find(o=>n.digest===o.digest)))throw new Error("hashes do not match, cannot update integrity")}else this[i]=s[i]}match(e,r){let s=Jn(e,r);if(!s)return!1;let i=s.pickAlgorithm(r,Object.keys(this));return!!i&&this[i].find(n=>s[i].find(o=>n.digest===o.digest))||!1}pickAlgorithm(e,r){let s=e?.pickAlgorithm||Xrt,i=Object.keys(this);return r?.length&&(i=i.filter(n=>r.includes(n))),i.length?i.reduce((n,o)=>s(n,o)||n):null}};Yc.exports.parse=Jn;function Jn(t,e){if(!t)return null;if(typeof t=="string")return D$(t,e);if(t.algorithm&&t.digest){let r=new Yf;return r[t.algorithm]=[t],D$(YI(r,e),e)}else return D$(YI(t,e),e)}function D$(t,e){if(e?.single)return new du(t,e);let r=t.trim().split(/\s+/).reduce((s,i)=>{let n=new du(i,e);if(n.algorithm&&n.digest){let o=n.algorithm;Object.keys(s).includes(o)||(s[o]=[]),s[o].push(n)}return s},new Yf);return r.isEmpty()?null:r}Yc.exports.stringify=YI;function YI(t,e){return t.algorithm&&t.digest?du.prototype.toString.call(t,e):typeof t=="string"?YI(Jn(t,e),e):Yf.prototype.toString.call(t,e)}Yc.exports.fromHex=$rt;function $rt(t,e,r){let s=KI(r?.options);return Jn(`${e}-${Buffer.from(t,"hex").toString("base64")}${s}`,r)}Yc.exports.fromData=jrt;function jrt(t,e){let r=e?.algorithms||[...M$],s=KI(e?.options);return r.reduce((i,n)=>{let o=WI.createHash(n).update(t).digest("base64"),a=new du(`${n}-${o}${s}`,e);if(a.algorithm&&a.digest){let c=a.algorithm;i[c]||(i[c]=[]),i[c].push(a)}return i},new Yf)}Yc.exports.fromStream=Jrt;function Jrt(t,e){let r=L$(e);return new Promise((s,i)=>{t.pipe(r),t.on("error",i),r.on("error",i);let n;r.on("integrity",o=>{n=o}),r.on("end",()=>s(n)),r.resume()})}Yc.exports.checkData=Yrt;function Yrt(t,e,r){if(e=Jn(e,r),!e||!Object.keys(e).length){if(r?.error)throw Object.assign(new Error("No valid integrity hashes to check against"),{code:"EINTEGRITY"});return!1}let s=e.pickAlgorithm(r),i=WI.createHash(s).update(t).digest("base64"),n=Jn({algorithm:s,digest:i}),o=n.match(e,r);if(r=r||{},o||!r.error)return o;if(typeof r.size=="number"&&t.length!==r.size){let a=new Error(`data size mismatch when checking ${e}.
Found: ${this.size}`);s.code="EBADSIZE",s.found=this.size,s.expected=this.expectedSize,s.sri=this.sri,this.emit("error",s)}else if(this.sri&&!r){let s=new Error(`${this.sri} integrity checksum failed when using ${this.algorithm}: wanted ${this.digests} but got ${e}. (${this.size} bytes)`);s.code="EINTEGRITY",s.found=e,s.expected=this.digests,s.algorithm=this.algorithm,s.sri=this.sri,this.emit("error",s)}else this.#t=this.size,this.emit("size",this.size),this.#e=e,this.emit("integrity",e),r&&(this.#s=r,this.emit("verified",r))}},ju=class{get isHash(){return!0}constructor(e,r){let s=r?.strict;this.source=e.trim(),this.digest="",this.algorithm="",this.options=[];let i=this.source.match(s?dAt:hAt);if(!i||s&&!nj.includes(i[1])||!Swe.includes(i[1]))return;this.algorithm=i[1],this.digest=i[2];let n=i[3];n&&(this.options=n.slice(1).split("?"))}hexDigest(){return this.digest&&Buffer.from(this.digest,"base64").toString("hex")}toJSON(){return this.toString()}match(e,r){let s=uo(e,r);if(!s)return!1;if(s.isIntegrity){let i=s.pickAlgorithm(r,[this.algorithm]);if(!i)return!1;let n=s[i].find(o=>o.digest===this.digest);return n||!1}return s.digest===this.digest?s:!1}toString(e){return e?.strict&&!(nj.includes(this.algorithm)&&this.digest.match(uAt)&&this.options.every(r=>r.match(fAt)))?"":`${this.algorithm}-${this.digest}${Yb(this.options)}`}};function Bwe(t,e,r,s){let i=t!=="",n=!1,o="",a=s.length-1;for(let l=0;l<a;l++){let u=ju.prototype.toString.call(s[l],r);u&&(n=!0,o+=u,o+=e)}let c=ju.prototype.toString.call(s[a],r);return c&&(n=!0,o+=c),i&&n?t+e+o:t+o}var Wp=class{get isIntegrity(){return!0}toJSON(){return this.toString()}isEmpty(){return Object.keys(this).length===0}toString(e){let r=e?.sep||" ",s="";if(e?.strict){r=r.replace(/\S+/g," ");for(let i of nj)this[i]&&(s=Bwe(s,r,e,this[i]))}else for(let i of Object.keys(this))s=Bwe(s,r,e,this[i]);return s}concat(e,r){let s=typeof e=="string"?e:jb(e,r);return uo(`${this.toString(r)} ${s}`,r)}hexDigest(){return uo(this,{single:!0}).hexDigest()}merge(e,r){let s=uo(e,r);for(let i in s)if(this[i]){if(!this[i].find(n=>s[i].find(o=>n.digest===o.digest)))throw new Error("hashes do not match, cannot update integrity")}else this[i]=s[i]}match(e,r){let s=uo(e,r);if(!s)return!1;let i=s.pickAlgorithm(r,Object.keys(this));return!!i&&this[i].find(n=>s[i].find(o=>n.digest===o.digest))||!1}pickAlgorithm(e,r){let s=e?.pickAlgorithm||CAt,i=Object.keys(this);return r?.length&&(i=i.filter(n=>r.includes(n))),i.length?i.reduce((n,o)=>s(n,o)||n):null}};Cl.exports.parse=uo;function uo(t,e){if(!t)return null;if(typeof t=="string")return ij(t,e);if(t.algorithm&&t.digest){let r=new Wp;return r[t.algorithm]=[t],ij(jb(r,e),e)}else return ij(jb(t,e),e)}function ij(t,e){if(e?.single)return new ju(t,e);let r=t.trim().split(/\s+/).reduce((s,i)=>{let n=new ju(i,e);if(n.algorithm&&n.digest){let o=n.algorithm;Object.keys(s).includes(o)||(s[o]=[]),s[o].push(n)}return s},new Wp);return r.isEmpty()?null:r}Cl.exports.stringify=jb;function jb(t,e){return t.algorithm&&t.digest?ju.prototype.toString.call(t,e):typeof t=="string"?jb(uo(t,e),e):Wp.prototype.toString.call(t,e)}Cl.exports.fromHex=pAt;function pAt(t,e,r){let s=Yb(r?.options);return uo(`${e}-${Buffer.from(t,"hex").toString("base64")}${s}`,r)}Cl.exports.fromData=AAt;function AAt(t,e){let r=e?.algorithms||[...aj],s=Yb(e?.options);return r.reduce((i,n)=>{let o=Jb.createHash(n).update(t).digest("base64"),a=new ju(`${n}-${o}${s}`,e);if(a.algorithm&&a.digest){let c=a.algorithm;i[c]||(i[c]=[]),i[c].push(a)}return i},new Wp)}Cl.exports.fromStream=mAt;function mAt(t,e){let r=cj(e);return new Promise((s,i)=>{t.pipe(r),t.on("error",i),r.on("error",i);let n;r.on("integrity",o=>{n=o}),r.on("end",()=>s(n)),r.resume()})}Cl.exports.checkData=gAt;function gAt(t,e,r){if(e=uo(e,r),!e||!Object.keys(e).length){if(r?.error)throw Object.assign(new Error("No valid integrity hashes to check against"),{code:"EINTEGRITY"});return!1}let s=e.pickAlgorithm(r),i=Jb.createHash(s).update(t).digest("base64"),n=uo({algorithm:s,digest:i}),o=n.match(e,r);if(r=r||{},o||!r.error)return o;if(typeof r.size=="number"&&t.length!==r.size){let a=new Error(`data size mismatch when checking ${e}.
Wanted: ${r.size}
Found: ${t.length}`);throw a.code="EBADSIZE",a.found=t.length,a.expected=r.size,a.sri=e,a}else{let a=new Error(`Integrity checksum failed when using ${s}: Wanted ${e}, but got ${n}. (${t.length} bytes)`);throw a.code="EINTEGRITY",a.found=n,a.expected=e,a.algorithm=s,a.sri=e,a}}Yc.exports.checkStream=Wrt;function Wrt(t,e,r){if(r=r||Object.create(null),r.integrity=e,e=Jn(e,r),!e||!Object.keys(e).length)return Promise.reject(Object.assign(new Error("No valid integrity hashes to check against"),{code:"EINTEGRITY"}));let s=L$(r);return new Promise((i,n)=>{t.pipe(s),t.on("error",n),s.on("error",n);let o;s.on("verified",a=>{o=a}),s.on("end",()=>i(o)),s.resume()})}Yc.exports.integrityStream=L$;function L$(t=Object.create(null)){return new k$(t)}Yc.exports.create=Krt;function Krt(t){let e=t?.algorithms||[...M$],r=KI(t?.options),s=e.map(WI.createHash);return{update:function(i,n){return s.forEach(o=>o.update(i,n)),this},digest:function(){return e.reduce((n,o)=>{let a=s.shift().digest("base64"),c=new du(`${o}-${a}${r}`,t);return n[c.algorithm]||(n[c.algorithm]=[]),n[c.algorithm].push(c),n},new Yf)}}}function Xrt(t,e){return qme.indexOf(t.toLowerCase())>=qme.indexOf(e.toLowerCase())?t:e}});var U$=m((zHt,Jme)=>{var zme=Cme(),Vme=Ume(),Zrt=$d(),$me={shared:!1,ignoreCargoCult:!0},est={status:200,headers:{}},ng=t=>{let e={method:t.method,url:t.url,headers:{},compress:t.compress};return t.headers.forEach((r,s)=>{e.headers[s]=r}),e},jme=t=>{let e={status:t.status,headers:{}};return t.headers.forEach((r,s)=>{e.headers[s]=r}),e},F$=class{constructor({entry:e,request:r,response:s,options:i}){this.entry=e,this.request=ng(r),this.response=jme(s),this.options=i,this.policy=new zme(this.request,this.response,$me),this.entry&&(this.policy._responseTime=this.entry.metadata.time)}static storable(e,r){return!r.cachePath||r.cache==="no-store"||!["GET","HEAD"].includes(e.method)?!1:new zme(ng(e),est,$me).storable()}satisfies(e){let r=ng(e);if(this.request.headers.host!==r.headers.host||this.request.compress!==r.compress)return!1;let s=new Vme(this.request),i=new Vme(r);return JSON.stringify(s.mediaTypes())!==JSON.stringify(i.mediaTypes())||JSON.stringify(s.languages())!==JSON.stringify(i.languages())||JSON.stringify(s.encodings())!==JSON.stringify(i.encodings())?!1:this.options.integrity?Zrt.parse(this.options.integrity).match(this.entry.integrity):!0}storable(){return this.policy.storable()}get mustRevalidate(){return!!this.policy._rescc["must-revalidate"]}needsRevalidation(e){let r=ng(e);return r.method="GET",!this.policy.satisfiesWithoutRevalidation(r)}responseHeaders(){return this.policy.responseHeaders()}revalidationHeaders(e){let r=ng(e);return this.policy.revalidationHeaders(r)}revalidated(e,r){let s=ng(e),i=jme(r);return!this.policy.revalidatedPolicy(s,i).modified}};Jme.exports=F$});var Wme=m((VHt,Yme)=>{var q$=class extends Error{constructor(e){super(`request to ${e} failed: cache mode is 'only-if-cached' but no cached response is available.`),this.code="ENOTCACHED"}};Yme.exports={NotCachedError:q$}});var oge=m(($Ht,nge)=>{"use strict";var Kme=typeof process=="object"&&process?process:{stdout:null,stderr:null},tst=require("events"),Xme=require("stream"),Zme=require("string_decoder").StringDecoder,hu=Symbol("EOF"),fu=Symbol("maybeEmitEnd"),jd=Symbol("emittedEnd"),bQ=Symbol("emittingEnd"),XI=Symbol("emittedError"),wQ=Symbol("closed"),ege=Symbol("read"),BQ=Symbol("flush"),tge=Symbol("flushChunk"),rn=Symbol("encoding"),Au=Symbol("decoder"),SQ=Symbol("flowing"),ZI=Symbol("paused"),og=Symbol("resume"),Is=Symbol("bufferLength"),G$=Symbol("bufferPush"),H$=Symbol("bufferShift"),Ws=Symbol("objectMode"),Ks=Symbol("destroyed"),z$=Symbol("emitData"),rge=Symbol("emitEnd"),V$=Symbol("emitEnd2"),pu=Symbol("async"),e0=t=>Promise.resolve().then(t),sge=global._MP_NO_ITERATOR_SYMBOLS_!=="1",rst=sge&&Symbol.asyncIterator||Symbol("asyncIterator not implemented"),sst=sge&&Symbol.iterator||Symbol("iterator not implemented"),ist=t=>t==="end"||t==="finish"||t==="prefinish",nst=t=>t instanceof ArrayBuffer||typeof t=="object"&&t.constructor&&t.constructor.name==="ArrayBuffer"&&t.byteLength>=0,ost=t=>!Buffer.isBuffer(t)&&ArrayBuffer.isView(t),xQ=class{constructor(e,r,s){this.src=e,this.dest=r,this.opts=s,this.ondrain=()=>e[og](),r.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},$$=class extends xQ{unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(e,r,s){super(e,r,s),this.proxyErrors=i=>r.emit("error",i),e.on("error",this.proxyErrors)}};nge.exports=class ige extends Xme{constructor(e){super(),this[SQ]=!1,this[ZI]=!1,this.pipes=[],this.buffer=[],this[Ws]=e&&e.objectMode||!1,this[Ws]?this[rn]=null:this[rn]=e&&e.encoding||null,this[rn]==="buffer"&&(this[rn]=null),this[pu]=e&&!!e.async||!1,this[Au]=this[rn]?new Zme(this[rn]):null,this[hu]=!1,this[jd]=!1,this[bQ]=!1,this[wQ]=!1,this[XI]=null,this.writable=!0,this.readable=!0,t Line truncated
`+o.map(h=>{let f=JSON.stringify(h);return`${XQ(f)} ${f}`}).join(`
`),c=async()=>{let h=Mat(Kc.join(t,"tmp"),s.tmpPrefix);return await q4(Kc.dirname(h),{recursive:!0}),{target:h,moved:!1}},l=async h=>{if(!h.moved)return mCe(h.target,{recursive:!0,force:!0})},u=async h=>{await Dat(h.target,a,{flag:"wx"}),await q4(Kc.dirname(i),{recursive:!0}),await qat(h.target,i),h.moved=!0},d=await c();try{await u(d)}finally{await l(d)}return o.reverse().map(h=>ZQ(t,h,!0))}Wn.exports.insert=gCe;async function gCe(t,e,r,s={}){let{metadata:i,size:n,time:o}=s,a=m0(t,e),c={key:e,integrity:r&&kat.stringify(r),time:o||Date.now(),size:n,metadata:i};try{await q4(Kc.dirname(a),{recursive:!0});let l=JSON.stringify(c);await vat(a,`
${XQ(l)} ${l}`)}catch(l){if(l.code==="ENOENT")return;throw l}return ZQ(t,c)}Wn.exports.find=Hat;async function Hat(t,e){let r=m0(t,e);try{return(await KQ(r)).reduce((i,n)=>n&&n.key===e?ZQ(t,n):i,null)}catch(s){if(s.code==="ENOENT")return null;throw s}}Wn.exports.delete=zat;function zat(t,e,r={}){if(!r.removeFully)return gCe(t,e,null,r);let s=m0(t,e);return mCe(s,{recursive:!0,force:!0})}Wn.exports.lsStream=yCe;function yCe(t){let e=G4(t),r=new Oat({objectMode:!0});return Promise.resolve().then(async()=>{let{default:s}=await Promise.resolve().then(()=>(WQ(),YQ)),i=await U4(e);return await s(i,async n=>{let o=Kc.join(e,n),a=await U4(o);await s(a,async c=>{let l=Kc.join(o,c),u=await U4(l);await s(u,async d=>{let h=Kc.join(l,d);try{let A=(await KQ(h)).reduce((p,E)=>(p.set(E.key,E),p),new Map);for(let p of A.values()){let E=ZQ(t,p);E&&r.write(E)}}catch(f){if(f.code==="ENOENT")return;throw f}},{concurrency:F4})},{concurrency:F4})},{concurrency:F4}),r.end(),r}).catch(s=>r.emit("error",s)),r}Wn.exports.ls=Vat;async function Vat(t){return(await yCe(t).collect()).reduce((r,s)=>(r[s.key]=s,r),{})}Wn.exports.bucketEntries=KQ;async function KQ(t,e){let r=await _at(t,"utf8");return $at(r,e)}function $at(t){let e=[];return t.split(`
`).forEach(r=>{if(!r)return;let s=r.split(" ");if(!s[1]||XQ(s[1])!==s[0])return;let i;try{i=JSON.parse(s[1])}catch{}i&&e.push(i)}),e}Wn.exports.bucketDir=G4;function G4(t){return Kc.join(t,`index-v${Uat}`)}Wn.exports.bucketPath=m0;function m0(t,e){let r=ECe(e);return Kc.join.apply(Kc,[G4(t)].concat(Fat(r)))}Wn.exports.hashKey=ECe;function ECe(t){return CCe(t,"sha256")}Wn.exports.hashEntry=XQ;function XQ(t){return CCe(t,"sha1")}function CCe(t,e){return Qat.createHash(e).update(t).digest("hex")}function ZQ(t,e,r){return!e.integrity&&!r?null:{key:e.key,integrity:e.integrity,path:e.integrity?Lat(t,e.integrity):void 0,size:e.size,time:e.time,metadata:e.metadata}}function U4(t){return Pat(t).catch(e=>{if(e.code==="ENOENT"||e.code==="ENOTDIR")return[];throw e})}});var y0=m(rv=>{"use strict";Object.defineProperty(rv,"__esModule",{value:!0});rv.LRUCache=void 0;var jat=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,bCe=new Set,H4=typeof process=="object"&&process?process:{},wCe=(t,e,r,s)=>{typeof H4.emitWarning=="function"?H4.emitWarning(t,e,r,s):console.error(`[${r}] ${e}: ${t}`)},tv=globalThis.AbortController,ICe=globalThis.AbortSignal;if(typeof tv>"u"){ICe=class{onabort;_onabort=[];reason;aborted=!1;addEventListener(r,s){this._onabort.push(s)}},tv=class{constructor(){e()}signal=new ICe;abort(r){if(!this.signal.aborted){this.signal.reason=r,this.signal.aborted=!0;for(let s of this.signal._onabort)s(r);this.signal.onabort?.(r)}}};let t=H4.env?.LRU_CACHE_IGNORE_AC_WARNING!=="1",e=()=>{t&&(t=!1,wCe("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.","NO_ABORT_CONTROLLER","ENOTSUP",e))}}var Jat=t=>!bCe.has(t),Yd=t=>t&&t===Math.floor(t)&&t>0&&isFinite(t),BCe=t=>Yd(t)?t<=Math.pow(2,8)?Uint8Array:t<=Math.pow(2,16)?Uint16Array:t<=Math.pow(2,32)?Uint32Array:t<=Number.MAX_SAFE_INTEGER?ev:null:null,ev=class extends Array{constructor(t){super(t),this.fill(0)}},Yat=class g0{heap;length;static#e=!1;static create(e){let r=BCe(e);if(!r)return[];g0.#e=!0;let s=new g0(e,r);return g0.#e=!1,s}constructor(e,r){if(!g0.#e)throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new r(e),this.length=0}push(e){this.heap[this.length++]=e}pop(){return this.heap[--this.length]}},Wat=class SCe{#e;#t;#s;#r;#i;#o;#u;#l;get perf(){return this.#l}ttl;ttlResolution;ttlAutopurge;updateAgeOnGet;updateAgeOnHas;allowStale;noDisposeOnSet;noUpdateTTL;maxEntrySize;sizeCalculation;noDeleteOnFetchRejection;noDeleteOnStaleGet;allowStaleOnFetchAbort;allowStaleOnFetchRejection;ignoreFetchAbort;#a;#A;#f;#d;#n;#y;#I;#g;#p;#x;#m;#B;#S;#E;#C;#b;#R;#c;#D;static unsafeExposeInternals(e){return{starts:e.#S,ttls:e.#E,autopurgeTimers:e.#C,sizes:e.#B,keyMap:e.#f,keyList:e.#d,valList:e.#n,next:e.#y,prev:e.#I,get head(){return e.#g},get tail(){return e.#p},free:e.#x,isBackgroundFetch:r=>e.#h(r),backgroundFetch:(r,s,i,n)=>e.#G(r,s,i,n),moveToTail:r=>e.#P(r),indexes:r=>e.#T(r),rindexes:r=>e.#Q(r),isStale:r=>e.#w(r)}}get max(){return this.#e}get maxSize(){return this.#t}get calculatedSize(){return this.#A}get size(){return this.#a}get fetchMethod(){return this.#o}get memoMethod(){return this.#u}get dispose(){return this.#s}get onInsert(){return this.#r}get disposeAfter(){return this.#i}constructor(e){let{max:r=0,ttl:s,ttlResolution:i=1,ttlAutopurge:n,updateAgeOnGet:o,updateAgeOnHas:a,allowStale:c,dispose:l,onInsert:u,disposeAfter:d,noDisposeOnSet:h,noUpdateTTL:f,maxSize:A=0,maxEntrySize:p=0,sizeCalculation:E,fetchMethod:y,memoMethod:C,noDeleteOnFetchRejection:w,noDeleteOnStaleGet:x,allowStaleOnFetchRejection:N,allowStaleOnFetchAbort:P,ignoreFetchAbort:D,perf:k}=e;if(k!==void 0&&typeof k?.now!="function")throw new TypeError("perf option must have a now() method if specified");if(this.#l=k??jat,r!==0&&!Yd(r))throw new TypeError("max option must be a nonnegative integer");let z=r?BCe(r):Array;if(!z)throw new Error("invalid max value: "+r);if(this.#e=r,this.#t=A,this.maxEntrySize=p||this.#t,this.sizeCalculation=E,this.sizeCalculation){if(!this.#t&&!this.maxEntrySize)throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if(typeof this.sizeCalculation!="function")throw new TypeError("sizeCalculation set to non-function")}if(C!==void 0&&typeof C!="function")throw new TypeError("memoMethod must be a function if defined");if(this.#u=C,y!==void 0&&typeof y!="function")throw new TypeError("fetchMethod must be a function if specified");if(this.#o=y,this.#R=!!y,this.#f=new Map,this.#d=new Array(r).fill(void 0),this.#n=new Array(r).fill(void 0),this.#y=new z(r),this.#I=new z(r),this.#g=0,this.#p=0,this.#x=Yat.create(r),this.#a=0, Line truncated
Found: ${t.length}`);throw a.code="EBADSIZE",a.found=t.length,a.expected=r.size,a.sri=e,a}else{let a=new Error(`Integrity checksum failed when using ${s}: Wanted ${e}, but got ${n}. (${t.length} bytes)`);throw a.code="EINTEGRITY",a.found=n,a.expected=e,a.algorithm=s,a.sri=e,a}}Cl.exports.checkStream=yAt;function yAt(t,e,r){if(r=r||Object.create(null),r.integrity=e,e=uo(e,r),!e||!Object.keys(e).length)return Promise.reject(Object.assign(new Error("No valid integrity hashes to check against"),{code:"EINTEGRITY"}));let s=cj(r);return new Promise((i,n)=>{t.pipe(s),t.on("error",n),s.on("error",n);let o;s.on("verified",a=>{o=a}),s.on("end",()=>i(o)),s.resume()})}Cl.exports.integrityStream=cj;function cj(t=Object.create(null)){return new oj(t)}Cl.exports.create=EAt;function EAt(t){let e=t?.algorithms||[...aj],r=Yb(t?.options),s=e.map(Jb.createHash);return{update:function(i,n){return s.forEach(o=>o.update(i,n)),this},digest:function(){return e.reduce((n,o)=>{let a=s.shift().digest("base64"),c=new ju(`${o}-${a}${r}`,t);return n[c.algorithm]||(n[c.algorithm]=[]),n[c.algorithm].push(c),n},new Wp)}}}function CAt(t,e){return wwe.indexOf(t.toLowerCase())>=wwe.indexOf(e.toLowerCase())?t:e}});var uj=A((w7t,Twe)=>{var xwe=K$(),Nwe=sj(),IAt=Il(),Rwe={shared:!1,ignoreCargoCult:!0},bAt={status:200,headers:{}},Sy=t=>{let e={method:t.method,url:t.url,headers:{},compress:t.compress};return t.headers.forEach((r,s)=>{e.headers[s]=r}),e},vwe=t=>{let e={status:t.status,headers:{}};return t.headers.forEach((r,s)=>{e.headers[s]=r}),e},lj=class{constructor({entry:e,request:r,response:s,options:i}){this.entry=e,this.request=Sy(r),this.response=vwe(s),this.options=i,this.policy=new xwe(this.request,this.response,Rwe),this.entry&&(this.policy._responseTime=this.entry.metadata.time)}static storable(e,r){return!r.cachePath||r.cache==="no-store"||!["GET","HEAD"].includes(e.method)?!1:new xwe(Sy(e),bAt,Rwe).storable()}satisfies(e){let r=Sy(e);if(this.request.headers.host!==r.headers.host||this.request.compress!==r.compress)return!1;let s=new Nwe(this.request),i=new Nwe(r);return JSON.stringify(s.mediaTypes())!==JSON.stringify(i.mediaTypes())||JSON.stringify(s.languages())!==JSON.stringify(i.languages())||JSON.stringify(s.encodings())!==JSON.stringify(i.encodings())?!1:this.options.integrity?IAt.parse(this.options.integrity).match(this.entry.integrity):!0}storable(){return this.policy.storable()}get mustRevalidate(){return!!this.policy._rescc["must-revalidate"]}needsRevalidation(e){let r=Sy(e);return r.method="GET",!this.policy.satisfiesWithoutRevalidation(r)}responseHeaders(){return this.policy.responseHeaders()}revalidationHeaders(e){let r=Sy(e);return this.policy.revalidationHeaders(r)}revalidated(e,r){let s=Sy(e),i=vwe(r);return!this.policy.revalidatedPolicy(s,i).modified}};Twe.exports=lj});var Qwe=A((B7t,_we)=>{var hj=class extends Error{constructor(e){super(`request to ${e} failed: cache mode is 'only-if-cached' but no cached response is available.`),this.code="ENOTCACHED"}};_we.exports={NotCachedError:hj}});var Gwe=A((S7t,qwe)=>{"use strict";var Pwe=typeof process=="object"&&process?process:{stdout:null,stderr:null},wAt=require("events"),Owe=require("stream"),Dwe=require("string_decoder").StringDecoder,Ju=Symbol("EOF"),Yu=Symbol("maybeEmitEnd"),Od=Symbol("emittedEnd"),d1=Symbol("emittingEnd"),Wb=Symbol("emittedError"),f1=Symbol("closed"),kwe=Symbol("read"),p1=Symbol("flush"),Mwe=Symbol("flushChunk"),Cn=Symbol("encoding"),Wu=Symbol("decoder"),A1=Symbol("flowing"),Kb=Symbol("paused"),xy=Symbol("resume"),Ts=Symbol("bufferLength"),dj=Symbol("bufferPush"),fj=Symbol("bufferShift"),ai=Symbol("objectMode"),ci=Symbol("destroyed"),pj=Symbol("emitData"),Lwe=Symbol("emitEnd"),Aj=Symbol("emitEnd2"),Ku=Symbol("async"),Xb=t=>Promise.resolve().then(t),Uwe=global._MP_NO_ITERATOR_SYMBOLS_!=="1",BAt=Uwe&&Symbol.asyncIterator||Symbol("asyncIterator not implemented"),SAt=Uwe&&Symbol.iterator||Symbol("iterator not implemented"),xAt=t=>t==="end"||t==="finish"||t==="prefinish",NAt=t=>t instanceof ArrayBuffer||typeof t=="object"&&t.constructor&&t.constructor.name==="ArrayBuffer"&&t.byteLength>=0,RAt=t=>!Buffer.isBuffer(t)&&ArrayBuffer.isView(t),m1=class{constructor(e,r,s){this.src=e,this.dest=r,this.opts=s,this.ondrain=()=>e[xy](),r.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},mj=class extends m1{unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(e,r,s){super(e,r,s),this.proxyErrors=i=>r.emit("error",i),e.on("error",this.proxyErrors)}};qwe.exports=class Fwe extends Owe{constructor(e){super(),this[A1]=!1,this[Kb]=!1,this.pipes=[],this.buffer=[],this[ai]=e&&e.objectMode||!1,this[ai]?this[Cn]=null:this[Cn]=e&&e.encoding||null,this[Cn]==="buffer"&&(this[Cn]=null),this[Ku]=e&&!!e.async||!1,this[Wu]=this[Cn]?new Dwe(this[Cn]):null,this[Ju]=!1,this[Od]=!1,this[d1]=!1,this[f1]=!1,this[Wb]=null,this.writable=!0,this.readable=!0,thi Line truncated
`+o.map(d=>{let f=JSON.stringify(d);return`${q1(f)} ${f}`}).join(`
`),c=async()=>{let d=nCt(wl.join(t,"tmp"),s.tmpPrefix);return await h6(wl.dirname(d),{recursive:!0}),{target:d,moved:!1}},l=async d=>{if(!d.moved)return Xxe(d.target,{recursive:!0,force:!0})},u=async d=>{await rCt(d.target,a,{flag:"wx"}),await h6(wl.dirname(i),{recursive:!0}),await lCt(d.target,i),d.moved=!0},h=await c();try{await u(h)}finally{await l(h)}return o.reverse().map(d=>G1(t,d,!0))}fo.exports.insert=Zxe;async function Zxe(t,e,r,s={}){let{metadata:i,size:n,time:o}=s,a=Aw(t,e),c={key:e,integrity:r&&iCt.stringify(r),time:o||Date.now(),size:n,metadata:i};try{await h6(wl.dirname(a),{recursive:!0});let l=JSON.stringify(c);await ZEt(a,`
${q1(l)} ${l}`)}catch(l){if(l.code==="ENOENT")return;throw l}return G1(t,c)}fo.exports.find=hCt;async function hCt(t,e){let r=Aw(t,e);try{return(await F1(r)).reduce((i,n)=>n&&n.key===e?G1(t,n):i,null)}catch(s){if(s.code==="ENOENT")return null;throw s}}fo.exports.delete=dCt;function dCt(t,e,r={}){if(!r.removeFully)return Zxe(t,e,null,r);let s=Aw(t,e);return Xxe(s,{recursive:!0,force:!0})}fo.exports.lsStream=eNe;function eNe(t){let e=d6(t),r=new sCt({objectMode:!0});return Promise.resolve().then(async()=>{let{default:s}=await Promise.resolve().then(()=>(U1(),L1)),i=await u6(e);return await s(i,async n=>{let o=wl.join(e,n),a=await u6(o);await s(a,async c=>{let l=wl.join(o,c),u=await u6(l);await s(u,async h=>{let d=wl.join(l,h);try{let p=(await F1(d)).reduce((m,E)=>(m.set(E.key,E),m),new Map);for(let m of p.values()){let E=G1(t,m);E&&r.write(E)}}catch(f){if(f.code==="ENOENT")return;throw f}},{concurrency:l6})},{concurrency:l6})},{concurrency:l6}),r.end(),r}).catch(s=>r.emit("error",s)),r}fo.exports.ls=fCt;async function fCt(t){return(await eNe(t).collect()).reduce((r,s)=>(r[s.key]=s,r),{})}fo.exports.bucketEntries=F1;async function F1(t,e){let r=await eCt(t,"utf8");return pCt(r,e)}function pCt(t){let e=[];return t.split(`
`).forEach(r=>{if(!r)return;let s=r.split(" ");if(!s[1]||q1(s[1])!==s[0])return;let i;try{i=JSON.parse(s[1])}catch{}i&&e.push(i)}),e}fo.exports.bucketDir=d6;function d6(t){return wl.join(t,`index-v${cCt}`)}fo.exports.bucketPath=Aw;function Aw(t,e){let r=tNe(e);return wl.join.apply(wl,[d6(t)].concat(aCt(r)))}fo.exports.hashKey=tNe;function tNe(t){return rNe(t,"sha256")}fo.exports.hashEntry=q1;function q1(t){return rNe(t,"sha1")}function rNe(t,e){return XEt.createHash(e).update(t).digest("hex")}function G1(t,e,r){return!e.integrity&&!r?null:{key:e.key,integrity:e.integrity,path:e.integrity?oCt(t,e.integrity):void 0,size:e.size,time:e.time,metadata:e.metadata}}function u6(t){return tCt(t).catch(e=>{if(e.code==="ENOENT"||e.code==="ENOTDIR")return[];throw e})}});var gw=A(V1=>{"use strict";Object.defineProperty(V1,"__esModule",{value:!0});V1.LRUCache=void 0;var ACt=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,iNe=new Set,f6=typeof process=="object"&&process?process:{},nNe=(t,e,r,s)=>{typeof f6.emitWarning=="function"?f6.emitWarning(t,e,r,s):console.error(`[${r}] ${e}: ${t}`)},z1=globalThis.AbortController,sNe=globalThis.AbortSignal;if(typeof z1>"u"){sNe=class{onabort;_onabort=[];reason;aborted=!1;addEventListener(r,s){this._onabort.push(s)}},z1=class{constructor(){e()}signal=new sNe;abort(r){if(!this.signal.aborted){this.signal.reason=r,this.signal.aborted=!0;for(let s of this.signal._onabort)s(r);this.signal.onabort?.(r)}}};let t=f6.env?.LRU_CACHE_IGNORE_AC_WARNING!=="1",e=()=>{t&&(t=!1,nNe("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.","NO_ABORT_CONTROLLER","ENOTSUP",e))}}var mCt=t=>!iNe.has(t),kd=t=>t&&t===Math.floor(t)&&t>0&&isFinite(t),oNe=t=>kd(t)?t<=Math.pow(2,8)?Uint8Array:t<=Math.pow(2,16)?Uint16Array:t<=Math.pow(2,32)?Uint32Array:t<=Number.MAX_SAFE_INTEGER?H1:null:null,H1=class extends Array{constructor(t){super(t),this.fill(0)}},gCt=class mw{heap;length;static#e=!1;static create(e){let r=oNe(e);if(!r)return[];mw.#e=!0;let s=new mw(e,r);return mw.#e=!1,s}constructor(e,r){if(!mw.#e)throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new r(e),this.length=0}push(e){this.heap[this.length++]=e}pop(){return this.heap[--this.length]}},yCt=class aNe{#e;#t;#s;#r;#i;#n;#u;#l;get perf(){return this.#l}ttl;ttlResolution;ttlAutopurge;updateAgeOnGet;updateAgeOnHas;allowStale;noDisposeOnSet;noUpdateTTL;maxEntrySize;sizeCalculation;noDeleteOnFetchRejection;noDeleteOnStaleGet;allowStaleOnFetchAbort;allowStaleOnFetchRejection;ignoreFetchAbort;#a;#f;#p;#h;#o;#y;#I;#g;#A;#x;#m;#B;#S;#E;#C;#b;#R;#c;#O;static unsafeExposeInternals(e){return{starts:e.#S,ttls:e.#E,autopurgeTimers:e.#C,sizes:e.#B,keyMap:e.#p,keyList:e.#h,valList:e.#o,next:e.#y,prev:e.#I,get head(){return e.#g},get tail(){return e.#A},free:e.#x,isBackgroundFetch:r=>e.#d(r),backgroundFetch:(r,s,i,n)=>e.#G(r,s,i,n),moveToTail:r=>e.#P(r),indexes:r=>e.#v(r),rindexes:r=>e.#T(r),isStale:r=>e.#w(r)}}get max(){return this.#e}get maxSize(){return this.#t}get calculatedSize(){return this.#f}get size(){return this.#a}get fetchMethod(){return this.#n}get memoMethod(){return this.#u}get dispose(){return this.#s}get onInsert(){return this.#r}get disposeAfter(){return this.#i}constructor(e){let{max:r=0,ttl:s,ttlResolution:i=1,ttlAutopurge:n,updateAgeOnGet:o,updateAgeOnHas:a,allowStale:c,dispose:l,onInsert:u,disposeAfter:h,noDisposeOnSet:d,noUpdateTTL:f,maxSize:p=0,maxEntrySize:m=0,sizeCalculation:E,fetchMethod:y,memoMethod:C,noDeleteOnFetchRejection:w,noDeleteOnStaleGet:S,allowStaleOnFetchRejection:N,allowStaleOnFetchAbort:P,ignoreFetchAbort:Q,perf:k}=e;if(k!==void 0&&typeof k?.now!="function")throw new TypeError("perf option must have a now() method if specified");if(this.#l=k??ACt,r!==0&&!kd(r))throw new TypeError("max option must be a nonnegative integer");let G=r?oNe(r):Array;if(!G)throw new Error("invalid max value: "+r);if(this.#e=r,this.#t=p,this.maxEntrySize=m||this.#t,this.sizeCalculation=E,this.sizeCalculation){if(!this.#t&&!this.maxEntrySize)throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if(typeof this.sizeCalculation!="function")throw new TypeError("sizeCalculation set to non-function")}if(C!==void 0&&typeof C!="function")throw new TypeError("memoMethod must be a function if defined");if(this.#u=C,y!==void 0&&typeof y!="function")throw new TypeError("fetchMethod must be a function if specified");if(this.#n=y,this.#R=!!y,this.#p=new Map,this.#h=new Array(r).fill(void 0),this.#o=new Array(r).fill(void 0),this.#y=new G(r),this.#I=new G(r),this.#g=0,this.#A=0,this.#x=gCt.create(r),this.#a=0, Line truncated
Wanted: ${t}
Found: ${e}`);return r.code="EINTEGRITY",r.expected=t,r.found=e,r}});var jCe=m((gVt,sj)=>{"use strict";var HCe=gg(),zCe=E0(),VCe=GCe(),_ct=NQ(),{PassThrough:Pct}=K$(),Dct=ug(),$Ce=t=>({algorithms:["sha512"],...t});sj.exports=Oct;async function Oct(t,e,r,s={}){let{memoize:i}=s;s=$Ce(s);let n=await VCe(t,r,s),o=await HCe.insert(t,e,n.integrity,{...s,size:n.size});return i&&zCe.put(t,o,r,s),n.integrity}sj.exports.stream=kct;function kct(t,e,r={}){let{memoize:s}=r;r=$Ce(r);let i,n,o,a,c=new Dct;if(s){let u=new Pct().on("collect",d=>{a=d});c.push(u)}let l=VCe.stream(t,r).on("integrity",u=>{i=u}).on("size",u=>{n=u}).on("error",u=>{o=u});return c.push(l),c.push(new _ct({async flush(){if(!o){let u=await HCe.insert(t,e,i,{...r,size:n});s&&a&&zCe.put(t,u,a,r),c.emit("integrity",i),c.emit("size",n)}}})),c}});var uIe=m(ct=>{"use strict";var _s=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),Mct=_s(t=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.range=t.balanced=void 0;var e=(i,n,o)=>{let a=i instanceof RegExp?r(i,o):i,c=n instanceof RegExp?r(n,o):n,l=a!==null&&c!=null&&(0,t.range)(a,c,o);return l&&{start:l[0],end:l[1],pre:o.slice(0,l[0]),body:o.slice(l[0]+a.length,l[1]),post:o.slice(l[1]+c.length)}};t.balanced=e;var r=(i,n)=>{let o=n.match(i);return o?o[0]:null},s=(i,n,o)=>{let a,c,l,u,d,h=o.indexOf(i),f=o.indexOf(n,h+1),A=h;if(h>=0&&f>0){if(i===n)return[h,f];for(a=[],l=o.length;A>=0&&!d;){if(A===h)a.push(A),h=o.indexOf(i,A+1);else if(a.length===1){let p=a.pop();p!==void 0&&(d=[p,f])}else c=a.pop(),c!==void 0&&c<l&&(l=c,u=f),f=o.indexOf(n,A+1);A=h<f&&h>=0?h:f}a.length&&u!==void 0&&(d=[l,u])}return d};t.range=s}),Lct=_s(t=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EXPANSION_MAX=void 0,t.expand=N;var e=Mct(),r="\0SLASH"+Math.random()+"\0",s="\0OPEN"+Math.random()+"\0",i="\0CLOSE"+Math.random()+"\0",n="\0COMMA"+Math.random()+"\0",o="\0PERIOD"+Math.random()+"\0",a=new RegExp(r,"g"),c=new RegExp(s,"g"),l=new RegExp(i,"g"),u=new RegExp(n,"g"),d=new RegExp(o,"g"),h=/\\\\/g,f=/\\{/g,A=/\\}/g,p=/\\,/g,E=/\\./g;t.EXPANSION_MAX=1e5;function y(F){return isNaN(F)?F.charCodeAt(0):parseInt(F,10)}function C(F){return F.replace(h,r).replace(f,s).replace(A,i).replace(p,n).replace(E,o)}function w(F){return F.replace(a,"\\").replace(c,"{").replace(l,"}").replace(u,",").replace(d,".")}function x(F){if(!F)return[""];let q=[],G=(0,e.balanced)("{","}",F);if(!G)return F.split(",");let{pre:$,body:ae,post:We}=G,Ie=$.split(",");Ie[Ie.length-1]+="{"+ae+"}";let ce=x(We);return We.length&&(Ie[Ie.length-1]+=ce.shift(),Ie.push.apply(Ie,ce)),q.push.apply(q,Ie),q}function N(F,q={}){if(!F)return[];let{max:G=t.EXPANSION_MAX}=q;return F.slice(0,2)==="{}"&&(F="\\{\\}"+F.slice(2)),Z(C(F),G,!0).map(w)}function P(F){return"{"+F+"}"}function D(F){return/^-?0\d/.test(F)}function k(F,q){return F<=q}function z(F,q){return F>=q}function Z(F,q,G){let $=[],ae=(0,e.balanced)("{","}",F);if(!ae)return[F];let We=ae.pre,Ie=ae.post.length?Z(ae.post,q,!1):[""];if(/\$$/.test(ae.pre))for(let ce=0;ce<Ie.length&&ce<q;ce++){let nt=We+"{"+ae.body+"}"+Ie[ce];$.push(nt)}else{let ce=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(ae.body),nt=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(ae.body),Ke=ce||nt,gt=ae.body.indexOf(",")>=0;if(!Ke&&!gt)return ae.post.match(/,(?!,).*\}/)?(F=ae.pre+"{"+ae.body+i+ae.post,Z(F,q,!0)):[F];let Qe;if(Ke)Qe=ae.body.split(/\.\./);else if(Qe=x(ae.body),Qe.length===1&&Qe[0]!==void 0&&(Qe=Z(Qe[0],q,!1).map(P),Qe.length===1))return Ie.map(Mt=>ae.pre+Qe[0]+Mt);let lt;if(Ke&&Qe[0]!==void 0&&Qe[1]!==void 0){let Mt=y(Qe[0]),Vr=y(Qe[1]),dn=Math.max(Qe[0].length,Qe[1].length),bt=Qe.length===3&&Qe[2]!==void 0?Math.abs(y(Qe[2])):1,Zn=k;Vr<Mt&&(bt*=-1,Zn=z);let Q=Qe.some(D);lt=[];for(let _=Mt;Zn(_,Vr);_+=bt){let O;if(nt)O=String.fromCharCode(_),O==="\\"&&(O="");else if(O=String(_),Q){let U=dn-O.length;if(U>0){let Y=new Array(U+1).join("0");_<0?O="-"+Y+O.slice(1):O=Y+O}}lt.push(O)}}else{lt=[];for(let Mt=0;Mt<Qe.length;Mt++)lt.push.apply(lt,Z(Qe[Mt],q,!1))}for(let Mt=0;Mt<lt.length;Mt++)for(let Vr=0;Vr<Ie.length&&$.length<q;Vr++){let dn=We+lt[Mt]+Ie[Vr];(!G||Ke||dn)&&$.push(dn)}}return $}}),Fct=_s(t=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.assertValidPattern=void 0;var e=1024*64,r=s=>{if(typeof s!="string")throw new TypeError("invalid pattern");if(s.length>e)throw new TypeError("pattern is too long")};t.assertValidPattern=r}),Uct=_s(t=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseClass=void 0;var e={"[:alnum:]":["\\p{L}\\p{Nl}\\p{Nd}",!0],"[:alpha:]":["\\p{L}\\p{Nl}",!0],"[:ascii:]":["\\x00-\\x7f",!1],"[:blank:]":["\\p{Zs}\\t",!0],"[:cntrl:]":["\\p{Cc}",!0],"[:digit:]":["\\p{Nd}",!0],"[:graph:]":["\\p{Z}\\p{C}",!0,!0],"[:lower:]":["\\p{Ll}",!0],"[:print:]":["\\p{C}",!0],"[:punct:]":["\\p{P}",!0],"[:space:]":["\\p{Z}\\t\\r\\n\\v\\f",!0],"[:upper:]":["\\p{Lu}",!0],"[:word:]":["\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}",!0],"[:xdigit:]":["A-Fa-f0-9",!1]},r=o=>o.replace(/[[\]\\-]/g,"\\$&"),s= Line truncated
globstar while`,Q,ee,_,ve,st),this.matchOne(Q.slice(ee),_.slice(ve),O))return this.debug("globstar found match!",ee,R,st),!0;if(st==="."||st===".."||!U.dot&&st.charAt(0)==="."){this.debug("dot detected!",Q,ee,_,ve);break}this.debug("globstar swallow a segment, and continue"),ee++}return!!(O&&(this.debug(`
>>> no match, partial?`,Q,ee,_,ve),ee===R))}let et;if(typeof j=="string"?(et=me===j,this.debug("string match",j,me,et)):(et=j.test(me),this.debug("pattern match",j,me,et)),!et)return!1}if(g===R&&B===L)return!0;if(g===R)return O;if(B===L)return g===R-1&&Q[g]==="";throw new Error("wtf?")}braceExpand(){return(0,t.braceExpand)(this.pattern,this.options)}parse(Q){(0,r.assertValidPattern)(Q);let _=this.options;if(Q==="**")return t.GLOBSTAR;if(Q==="")return"";let O,U=null;(O=Q.match(y))?U=_.dot?w:C:(O=Q.match(a))?U=(_.nocase?_.dot?d:u:_.dot?l:c)(O[1]):(O=Q.match(x))?U=(_.nocase?_.dot?P:N:_.dot?D:k)(O):(O=Q.match(h))?U=_.dot?A:f:(O=Q.match(p))&&(U=E);let Y=s.AST.fromGlob(Q,this.options).toMMPattern();return U&&typeof Y=="object"&&Reflect.defineProperty(Y,"test",{value:U}),Y}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;let Q=this.set;if(!Q.length)return this.regexp=!1,this.regexp;let _=this.options,O=_.noglobstar?$:_.dot?ae:We,U=new Set(_.nocase?["i"]:[]),Y=Q.map(R=>{let L=R.map(me=>{if(me instanceof RegExp)for(let ee of me.flags.split(""))U.add(ee);return typeof me=="string"?Mt(me):me===t.GLOBSTAR?t.GLOBSTAR:me._src});L.forEach((me,ee)=>{let ve=L[ee+1],st=L[ee-1];me!==t.GLOBSTAR||st===t.GLOBSTAR||(st===void 0?ve!==void 0&&ve!==t.GLOBSTAR?L[ee+1]="(?:\\/|"+O+"\\/)?"+ve:L[ee]=O:ve===void 0?L[ee-1]=st+"(?:\\/|\\/"+O+")?":ve!==t.GLOBSTAR&&(L[ee-1]=st+"(?:\\/|\\/"+O+"\\/)"+ve,L[ee+1]=t.GLOBSTAR))});let j=L.filter(me=>me!==t.GLOBSTAR);if(this.partial&&j.length>=1){let me=[];for(let ee=1;ee<=j.length;ee++)me.push(j.slice(0,ee).join("/"));return"(?:"+me.join("|")+")"}return j.join("/")}).join("|"),[g,B]=Q.length>1?["(?:",")"]:["",""];Y="^"+g+Y+B+"$",this.partial&&(Y="^(?:\\/|"+g+Y.slice(1,-1)+B+")$"),this.negate&&(Y="^(?!"+Y+").+$");try{this.regexp=new RegExp(Y,[...U].join(""))}catch{this.regexp=!1}return this.regexp}slashSplit(Q){return this.preserveMultipleSlashes?Q.split("/"):this.isWindows&&/^\/\/[^\/]+/.test(Q)?["",...Q.split(/\/+/)]:Q.split(/\/+/)}match(Q,_=this.partial){if(this.debug("match",Q,this.pattern),this.comment)return!1;if(this.empty)return Q==="";if(Q==="/"&&_)return!0;let O=this.options;this.isWindows&&(Q=Q.split("\\").join("/"));let U=this.slashSplit(Q);this.debug(this.pattern,"split",U);let Y=this.set;this.debug(this.pattern,"set",Y);let g=U[U.length-1];if(!g)for(let B=U.length-2;!g&&B>=0;B--)g=U[B];for(let B=0;B<Y.length;B++){let R=Y[B],L=U;if(O.matchBase&&R.length===1&&(L=[g]),this.matchOne(L,R,_))return O.flipNegate?!0:!this.negate}return O.flipNegate?!1:this.negate}static defaults(Q){return t.minimatch.defaults(Q).Minimatch}};t.Minimatch=Vr;var dn=JCe();Object.defineProperty(t,"AST",{enumerable:!0,get:function(){return dn.AST}});var bt=YCe();Object.defineProperty(t,"escape",{enumerable:!0,get:function(){return bt.escape}});var Zn=ij();Object.defineProperty(t,"unescape",{enumerable:!0,get:function(){return Zn.unescape}}),t.minimatch.AST=s.AST,t.minimatch.Minimatch=Vr,t.minimatch.escape=i.escape,t.minimatch.unescape=n.unescape}),qct=_s(t=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LRUCache=void 0;var e=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,r=new Set,s=typeof process=="object"&&process?process:{},i=(f,A,p,E)=>{typeof s.emitWarning=="function"?s.emitWarning(f,A,p,E):console.error(`[${p}] ${A}: ${f}`)},n=globalThis.AbortController,o=globalThis.AbortSignal;if(typeof n>"u"){o=class{onabort;_onabort=[];reason;aborted=!1;addEventListener(p,E){this._onabort.push(E)}},n=class{constructor(){A()}signal=new o;abort(p){if(!this.signal.aborted){this.signal.reason=p,this.signal.aborted=!0;for(let E of this.signal._onabort)E(p);this.signal.onabort?.(p)}}};let f=s.env?.LRU_CACHE_IGNORE_AC_WARNING!=="1",A=()=>{f&&(f=!1,i("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.","NO_ABORT_CONTROLLER","ENOTSUP",A))}}var a=f=>!r.has(f),c=f=>f&&f===Math.floor(f)&&f>0&&isFinite(f),l=f=>c(f)?f<=Math.pow(2,8)?Uint8Array:f<=Math.pow(2,16)?Uint16Array:f<=Math.pow(2,32)?Uint32Array:f<=Number.MAX_SAFE_INTEGER?u:null:null,u=class extends Array{constructor(f){super(f),this.fill(0)}},d=class x0{heap;length;static#e=!1;static create(A){let p=l(A);if(!p)return[];x0.#e=!0;let E=new x0(A,p);return x0.#e=!1,E}constructor(A,p){if(!x0.#e)throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new p(A),this.length=0}push(A){this.heap[this.length++]=A}pop(){return this.heap[--this.length]}},h=class XCe{#e;#t;#s;#r;#i;#o;#u;#l;get perf(){return this.#l}ttl;ttlResolution;ttlAutopurge;updateAgeOnGet;updateAgeOnHas;allowStale;noDisposeOnSet;noUpdateTTL;maxEntrySize;sizeCalculation Line truncated
Found: ${e}`);return r.code="EINTEGRITY",r.expected=t,r.found=e,r}});var vNe=A((Wer,N6)=>{"use strict";var SNe=ky(),xNe=yw(),NNe=BNe(),eIt=Zb(),{PassThrough:tIt}=Ij(),rIt=Xp(),RNe=t=>({algorithms:["sha512"],...t});N6.exports=sIt;async function sIt(t,e,r,s={}){let{memoize:i}=s;s=RNe(s);let n=await NNe(t,r,s),o=await SNe.insert(t,e,n.integrity,{...s,size:n.size});return i&&xNe.put(t,o,r,s),n.integrity}N6.exports.stream=iIt;function iIt(t,e,r={}){let{memoize:s}=r;r=RNe(r);let i,n,o,a,c=new rIt;if(s){let u=new tIt().on("collect",h=>{a=h});c.push(u)}let l=NNe.stream(t,r).on("integrity",u=>{i=u}).on("size",u=>{n=u}).on("error",u=>{o=u});return c.push(l),c.push(new eIt({async flush(){if(!o){let u=await SNe.insert(t,e,i,{...r,size:n});s&&a&&xNe.put(t,u,a,r),c.emit("integrity",i),c.emit("size",n)}}})),c}});var $Ne=A(ht=>{"use strict";var zs=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),nIt=zs(t=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.range=t.balanced=void 0;var e=(i,n,o)=>{let a=i instanceof RegExp?r(i,o):i,c=n instanceof RegExp?r(n,o):n,l=a!==null&&c!=null&&(0,t.range)(a,c,o);return l&&{start:l[0],end:l[1],pre:o.slice(0,l[0]),body:o.slice(l[0]+a.length,l[1]),post:o.slice(l[1]+c.length)}};t.balanced=e;var r=(i,n)=>{let o=n.match(i);return o?o[0]:null},s=(i,n,o)=>{let a,c,l,u,h,d=o.indexOf(i),f=o.indexOf(n,d+1),p=d;if(d>=0&&f>0){if(i===n)return[d,f];for(a=[],l=o.length;p>=0&&!h;){if(p===d)a.push(p),d=o.indexOf(i,p+1);else if(a.length===1){let m=a.pop();m!==void 0&&(h=[m,f])}else c=a.pop(),c!==void 0&&c<l&&(l=c,u=f),f=o.indexOf(n,p+1);p=d<f&&d>=0?d:f}a.length&&u!==void 0&&(h=[l,u])}return h};t.range=s}),oIt=zs(t=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EXPANSION_MAX=void 0,t.expand=N;var e=nIt(),r="\0SLASH"+Math.random()+"\0",s="\0OPEN"+Math.random()+"\0",i="\0CLOSE"+Math.random()+"\0",n="\0COMMA"+Math.random()+"\0",o="\0PERIOD"+Math.random()+"\0",a=new RegExp(r,"g"),c=new RegExp(s,"g"),l=new RegExp(i,"g"),u=new RegExp(n,"g"),h=new RegExp(o,"g"),d=/\\\\/g,f=/\\{/g,p=/\\}/g,m=/\\,/g,E=/\\./g;t.EXPANSION_MAX=1e5;function y(L){return isNaN(L)?L.charCodeAt(0):parseInt(L,10)}function C(L){return L.replace(d,r).replace(f,s).replace(p,i).replace(m,n).replace(E,o)}function w(L){return L.replace(a,"\\").replace(c,"{").replace(l,"}").replace(u,",").replace(h,".")}function S(L){if(!L)return[""];let U=[],q=(0,e.balanced)("{","}",L);if(!q)return L.split(",");let{pre:V,body:re,post:_e}=q,we=V.split(",");we[we.length-1]+="{"+re+"}";let le=S(_e);return _e.length&&(we[we.length-1]+=le.shift(),we.push.apply(we,le)),U.push.apply(U,we),U}function N(L,U={}){if(!L)return[];let{max:q=t.EXPANSION_MAX}=U;return L.slice(0,2)==="{}"&&(L="\\{\\}"+L.slice(2)),X(C(L),q,!0).map(w)}function P(L){return"{"+L+"}"}function Q(L){return/^-?0\d/.test(L)}function k(L,U){return L<=U}function G(L,U){return L>=U}function X(L,U,q){let V=[],re=(0,e.balanced)("{","}",L);if(!re)return[L];let _e=re.pre,we=re.post.length?X(re.post,U,!1):[""];if(/\$$/.test(re.pre))for(let le=0;le<we.length&&le<U;le++){let ct=_e+"{"+re.body+"}"+we[le];V.push(ct)}else{let le=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(re.body),ct=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(re.body),Ze=le||ct,Et=re.body.indexOf(",")>=0;if(!Ze&&!Et)return re.post.match(/,(?!,).*\}/)?(L=re.pre+"{"+re.body+i+re.post,X(L,U,!0)):[L];let Pe;if(Ze)Pe=re.body.split(/\.\./);else if(Pe=S(re.body),Pe.length===1&&Pe[0]!==void 0&&(Pe=X(Pe[0],U,!1).map(P),Pe.length===1))return we.map(Ft=>re.pre+Pe[0]+Ft);let dt;if(Ze&&Pe[0]!==void 0&&Pe[1]!==void 0){let Ft=y(Pe[0]),es=y(Pe[1]),Rn=Math.max(Pe[0].length,Pe[1].length),St=Pe.length===3&&Pe[2]!==void 0?Math.abs(y(Pe[2])):1,go=k;es<Ft&&(St*=-1,go=G);let v=Pe.some(Q);dt=[];for(let _=Ft;go(_,es);_+=St){let D;if(ct)D=String.fromCharCode(_),D==="\\"&&(D="");else if(D=String(_),v){let F=Rn-D.length;if(F>0){let Y=new Array(F+1).join("0");_<0?D="-"+Y+D.slice(1):D=Y+D}}dt.push(D)}}else{dt=[];for(let Ft=0;Ft<Pe.length;Ft++)dt.push.apply(dt,X(Pe[Ft],U,!1))}for(let Ft=0;Ft<dt.length;Ft++)for(let es=0;es<we.length&&V.length<U;es++){let Rn=_e+dt[Ft]+we[es];(!q||Ze||Rn)&&V.push(Rn)}}return V}}),aIt=zs(t=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.assertValidPattern=void 0;var e=1024*64,r=s=>{if(typeof s!="string")throw new TypeError("invalid pattern");if(s.length>e)throw new TypeError("pattern is too long")};t.assertValidPattern=r}),cIt=zs(t=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseClass=void 0;var e={"[:alnum:]":["\\p{L}\\p{Nl}\\p{Nd}",!0],"[:alpha:]":["\\p{L}\\p{Nl}",!0],"[:ascii:]":["\\x00-\\x7f",!1],"[:blank:]":["\\p{Zs}\\t",!0],"[:cntrl:]":["\\p{Cc}",!0],"[:digit:]":["\\p{Nd}",!0],"[:graph:]":["\\p{Z}\\p{C}",!0,!0],"[:lower:]":["\\p{Ll}",!0],"[:print:]":["\\p{C}",!0],"[:punct:]":["\\p{P}",!0],"[:space:]":["\\p{Z}\\t\\r\\n\\v\\f",!0],"[:upper:]":["\\p{Lu}",!0],"[:word:]":["\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}",!0],"[:xdigit:]":["A-Fa-f0-9",!1]},r=o=>o.replace(/[[\]\\-]/g,"\\$&"),s= Line truncated
globstar while`,v,ee,_,Oe,nt),this.matchOne(v.slice(ee),_.slice(Oe),D))return this.debug("globstar found match!",ee,R,nt),!0;if(nt==="."||nt===".."||!F.dot&&nt.charAt(0)==="."){this.debug("dot detected!",v,ee,_,Oe);break}this.debug("globstar swallow a segment, and continue"),ee++}return!!(D&&(this.debug(`
>>> no match, partial?`,v,ee,_,Oe),ee===R))}let rt;if(typeof $=="string"?(rt=ge===$,this.debug("string match",$,ge,rt)):(rt=$.test(ge),this.debug("pattern match",$,ge,rt)),!rt)return!1}if(g===R&&B===M)return!0;if(g===R)return D;if(B===M)return g===R-1&&v[g]==="";throw new Error("wtf?")}braceExpand(){return(0,t.braceExpand)(this.pattern,this.options)}parse(v){(0,r.assertValidPattern)(v);let _=this.options;if(v==="**")return t.GLOBSTAR;if(v==="")return"";let D,F=null;(D=v.match(y))?F=_.dot?w:C:(D=v.match(a))?F=(_.nocase?_.dot?h:u:_.dot?l:c)(D[1]):(D=v.match(S))?F=(_.nocase?_.dot?P:N:_.dot?Q:k)(D):(D=v.match(d))?F=_.dot?p:f:(D=v.match(m))&&(F=E);let Y=s.AST.fromGlob(v,this.options).toMMPattern();return F&&typeof Y=="object"&&Reflect.defineProperty(Y,"test",{value:F}),Y}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;let v=this.set;if(!v.length)return this.regexp=!1,this.regexp;let _=this.options,D=_.noglobstar?V:_.dot?re:_e,F=new Set(_.nocase?["i"]:[]),Y=v.map(R=>{let M=R.map(ge=>{if(ge instanceof RegExp)for(let ee of ge.flags.split(""))F.add(ee);return typeof ge=="string"?Ft(ge):ge===t.GLOBSTAR?t.GLOBSTAR:ge._src});M.forEach((ge,ee)=>{let Oe=M[ee+1],nt=M[ee-1];ge!==t.GLOBSTAR||nt===t.GLOBSTAR||(nt===void 0?Oe!==void 0&&Oe!==t.GLOBSTAR?M[ee+1]="(?:\\/|"+D+"\\/)?"+Oe:M[ee]=D:Oe===void 0?M[ee-1]=nt+"(?:\\/|\\/"+D+")?":Oe!==t.GLOBSTAR&&(M[ee-1]=nt+"(?:\\/|\\/"+D+"\\/)"+Oe,M[ee+1]=t.GLOBSTAR))});let $=M.filter(ge=>ge!==t.GLOBSTAR);if(this.partial&&$.length>=1){let ge=[];for(let ee=1;ee<=$.length;ee++)ge.push($.slice(0,ee).join("/"));return"(?:"+ge.join("|")+")"}return $.join("/")}).join("|"),[g,B]=v.length>1?["(?:",")"]:["",""];Y="^"+g+Y+B+"$",this.partial&&(Y="^(?:\\/|"+g+Y.slice(1,-1)+B+")$"),this.negate&&(Y="^(?!"+Y+").+$");try{this.regexp=new RegExp(Y,[...F].join(""))}catch{this.regexp=!1}return this.regexp}slashSplit(v){return this.preserveMultipleSlashes?v.split("/"):this.isWindows&&/^\/\/[^\/]+/.test(v)?["",...v.split(/\/+/)]:v.split(/\/+/)}match(v,_=this.partial){if(this.debug("match",v,this.pattern),this.comment)return!1;if(this.empty)return v==="";if(v==="/"&&_)return!0;let D=this.options;this.isWindows&&(v=v.split("\\").join("/"));let F=this.slashSplit(v);this.debug(this.pattern,"split",F);let Y=this.set;this.debug(this.pattern,"set",Y);let g=F[F.length-1];if(!g)for(let B=F.length-2;!g&&B>=0;B--)g=F[B];for(let B=0;B<Y.length;B++){let R=Y[B],M=F;if(D.matchBase&&R.length===1&&(M=[g]),this.matchOne(M,R,_))return D.flipNegate?!0:!this.negate}return D.flipNegate?!1:this.negate}static defaults(v){return t.minimatch.defaults(v).Minimatch}};t.Minimatch=es;var Rn=TNe();Object.defineProperty(t,"AST",{enumerable:!0,get:function(){return Rn.AST}});var St=_Ne();Object.defineProperty(t,"escape",{enumerable:!0,get:function(){return St.escape}});var go=R6();Object.defineProperty(t,"unescape",{enumerable:!0,get:function(){return go.unescape}}),t.minimatch.AST=s.AST,t.minimatch.Minimatch=es,t.minimatch.escape=i.escape,t.minimatch.unescape=n.unescape}),lIt=zs(t=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LRUCache=void 0;var e=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,r=new Set,s=typeof process=="object"&&process?process:{},i=(f,p,m,E)=>{typeof s.emitWarning=="function"?s.emitWarning(f,p,m,E):console.error(`[${m}] ${p}: ${f}`)},n=globalThis.AbortController,o=globalThis.AbortSignal;if(typeof n>"u"){o=class{onabort;_onabort=[];reason;aborted=!1;addEventListener(m,E){this._onabort.push(E)}},n=class{constructor(){p()}signal=new o;abort(m){if(!this.signal.aborted){this.signal.reason=m,this.signal.aborted=!0;for(let E of this.signal._onabort)E(m);this.signal.onabort?.(m)}}};let f=s.env?.LRU_CACHE_IGNORE_AC_WARNING!=="1",p=()=>{f&&(f=!1,i("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.","NO_ABORT_CONTROLLER","ENOTSUP",p))}}var a=f=>!r.has(f),c=f=>f&&f===Math.floor(f)&&f>0&&isFinite(f),l=f=>c(f)?f<=Math.pow(2,8)?Uint8Array:f<=Math.pow(2,16)?Uint16Array:f<=Math.pow(2,32)?Uint32Array:f<=Number.MAX_SAFE_INTEGER?u:null:null,u=class extends Array{constructor(f){super(f),this.fill(0)}},h=class Sw{heap;length;static#e=!1;static create(p){let m=l(p);if(!m)return[];Sw.#e=!0;let E=new Sw(p,m);return Sw.#e=!1,E}constructor(p,m){if(!Sw.#e)throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new m(p),this.length=0}push(p){this.heap[this.length++]=p}pop(){return this.heap[--this.length]}},d=class ONe{#e;#t;#s;#r;#i;#n;#u;#l;get perf(){return this.#l}ttl;ttlResolution;ttlAutopurge;updateAgeOnGet;updateAgeOnHas;allowStale;noDisposeOnSet;noUpdateTTL;maxEntrySize;sizeCalculation Line truncated
\r
`);if(h===-1){mv("have not received end of HTTP headers yet..."),n();return}let f=d.slice(0,h).toString("ascii").split(`\r
`),A=f.shift();if(!A)return t.destroy(),r(new Error("No header received from proxy CONNECT response"));let p=A.split(" "),E=+p[1],y=p.slice(2).join(" "),C={};for(let w of f){if(!w)continue;let x=w.indexOf(":");if(x===-1)return t.destroy(),r(new Error(`Invalid header from proxy CONNECT response: "${w}"`));let N=w.slice(0,x).toLowerCase(),P=w.slice(x+1).trimStart(),D=C[N];typeof D=="string"?C[N]=[D,P]:Array.isArray(D)?D.push(P):C[N]=P}mv("got proxy server response: %o %o",A,C),o(),e({connect:{statusCode:E,statusText:y,headers:C},buffered:d})}t.on("error",c),t.on("end",a),n()})}Ng.parseProxyResponse=Jlt});var VIe=m(qo=>{"use strict";var Ylt=qo&&qo.__createBinding||(Object.create?(function(t,e,r,s){s===void 0&&(s=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,s,i)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),Wlt=qo&&qo.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),HIe=qo&&qo.__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)&&Ylt(e,t,r);return Wlt(e,t),e},zIe=qo&&qo.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(qo,"__esModule",{value:!0});qo.HttpsProxyAgent=void 0;var Q0=HIe(require("net")),qIe=HIe(require("tls")),Klt=zIe(require("assert")),Xlt=zIe(Xh()),Zlt=jE(),eut=require("url"),tut=UIe(),v0=(0,Xlt.default)("https-proxy-agent"),gv=class extends Zlt.Agent{constructor(e,r){super(r),this.options={path:void 0},this.proxy=typeof e=="string"?new eut.URL(e):e,this.proxyHeaders=r?.headers??{},v0("Creating new HttpsProxyAgent instance: %o",this.proxy.href);let s=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),i=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={ALPNProtocols:["http/1.1"],...r?GIe(r,"headers"):null,host:s,port:i}}async connect(e,r){let{proxy:s}=this;if(!r.host)throw new TypeError('No "host" provided');let i;if(s.protocol==="https:"){v0("Creating `tls.Socket`: %o",this.connectOpts);let h=this.connectOpts.servername||this.connectOpts.host;i=qIe.connect({...this.connectOpts,servername:h&&Q0.isIP(h)?void 0:h})}else v0("Creating `net.Socket`: %o",this.connectOpts),i=Q0.connect(this.connectOpts);let n=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders},o=Q0.isIPv6(r.host)?`[${r.host}]`:r.host,a=`CONNECT ${o}:${r.port} HTTP/1.1\r
`;if(s.username||s.password){let h=`${decodeURIComponent(s.username)}:${decodeURIComponent(s.password)}`;n["Proxy-Authorization"]=`Basic ${Buffer.from(h).toString("base64")}`}n.Host=`${o}:${r.port}`,n["Proxy-Connection"]||(n["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let h of Object.keys(n))a+=`${h}: ${n[h]}\r
`;let c=(0,tut.parseProxyResponse)(i);i.write(`${a}\r
`);let{connect:l,buffered:u}=await c;if(e.emit("proxyConnect",l),this.emit("proxyConnect",l,e),l.statusCode===200){if(e.once("socket",rut),r.secureEndpoint){v0("Upgrading socket connection to TLS");let h=r.servername||r.host;return qIe.connect({...GIe(r,"host","path","port"),socket:i,servername:Q0.isIP(h)?void 0:h})}return i}i.destroy();let d=new Q0.Socket({writable:!1});return d.readable=!0,e.once("socket",h=>{v0("Replaying proxy buffer for failed request"),(0,Klt.default)(h.listenerCount("data")>0),h.push(u),h.push(null)}),d}};gv.protocols=["http","https"];qo.HttpsProxyAgent=gv;function rut(t){t.resume()}function GIe(t,...e){let r={},s;for(s in t)e.includes(s)||(r[s]=t[s]);return r}});var YIe=m(Ru=>{"use strict";Object.defineProperty(Ru,"__esModule",{value:!0});var $Ie=require("buffer"),cA={INVALID_ENCODING:"Invalid encoding provided. Please specify a valid encoding the internal Node.js Buffer supports.",INVALID_SMARTBUFFER_SIZE:"Invalid size provided. Size must be a valid integer greater than zero.",INVALID_SMARTBUFFER_BUFFER:"Invalid Buffer provided in SmartBufferOptions.",INVALID_SMARTBUFFER_OBJECT:"Invalid SmartBufferOptions object supplied to SmartBuffer constructor or factory methods.",INVALID_OFFSET:"An invalid offset value was provided.",INVALID_OFFSET_NON_NUMBER:"An invalid offset value was provided. A numeric value is required.",INVALID_LENGTH:"An invalid length value was provided.",INVALID_LENGTH_NON_NUMBER:"An invalid length value was provived. A numeric value is required.",INVALID_TARGET_OFFSET:"Target offset is beyond the bounds of the internal SmartBuffer data.",INVALID_TARGET_LENGTH:"Specified length value moves cursor beyong the bounds of the internal SmartBuffer data.",INVALID_READ_BEYOND_BOUNDS:"Attempted to read beyond the bounds of the managed data.",INVALID_WRITE_BEYOND_BOUNDS:"Attempted to write beyond the bounds of the managed data."};Ru.ERRORS=cA;function sut(t){if(!$Ie.Buffer.isEncoding(t))throw new Error(cA.INVALID_ENCODING)}Ru.checkEncoding=sut;function jIe(t){return typeof t=="number"&&isFinite(t)&&aut(t)}Ru.isFiniteInteger=jIe;function JIe(t,e){if(typeof t=="number"){if(!jIe(t)||t<0)throw new Error(e?cA.INVALID_OFFSET:cA.INVALID_LENGTH)}else throw new Error(e?cA.INVALID_OFFSET_NON_NUMBER:cA.INVALID_LENGTH_NON_NUMBER)}function iut(t){JIe(t,!1)}Ru.checkLengthValue=iut;function nut(t){JIe(t,!0)}Ru.checkOffsetValue=nut;function out(t,e){if(t<0||t>e.length)throw new Error(cA.INVALID_TARGET_OFFSET)}Ru.checkTargetOffset=out;function aut(t){return typeof t=="number"&&isFinite(t)&&Math.floor(t)===t}function cut(t){if(typeof BigInt>"u")throw new Error("Platform does not support JS BigInt type.");if(typeof $Ie.Buffer.prototype[t]>"u")throw new Error(`Platform does not support Buffer.prototype.${t}.`)}Ru.bigIntAndBufferInt64Check=cut});var KIe=m(wj=>{"use strict";Object.defineProperty(wj,"__esModule",{value:!0});var Ze=YIe(),WIe=4096,lut="utf8",bj=class t{constructor(e){if(this.length=0,this._encoding=lut,this._writeOffset=0,this._readOffset=0,t.isSmartBufferOptions(e))if(e.encoding&&(Ze.checkEncoding(e.encoding),this._encoding=e.encoding),e.size)if(Ze.isFiniteInteger(e.size)&&e.size>0)this._buff=Buffer.allocUnsafe(e.size);else throw new Error(Ze.ERRORS.INVALID_SMARTBUFFER_SIZE);else if(e.buff)if(Buffer.isBuffer(e.buff))this._buff=e.buff,this.length=e.buff.length;else throw new Error(Ze.ERRORS.INVALID_SMARTBUFFER_BUFFER);else this._buff=Buffer.allocUnsafe(WIe);else{if(typeof e<"u")throw new Error(Ze.ERRORS.INVALID_SMARTBUFFER_OBJECT);this._buff=Buffer.allocUnsafe(WIe)}}static fromSize(e,r){return new this({size:e,encoding:r})}static fromBuffer(e,r){return new this({buff:e,encoding:r})}static fromOptions(e){return new this(e)}static isSmartBufferOptions(e){let r=e;return r&&(r.encoding!==void 0||r.size!==void 0||r.buff!==void 0)}readInt8(e){return this._readNumberValue(Buffer.prototype.readInt8,1,e)}readInt16BE(e){return this._readNumberValue(Buffer.prototype.readInt16BE,2,e)}readInt16LE(e){return this._readNumberValue(Buffer.prototype.readInt16LE,2,e)}readInt32BE(e){return this._readNumberValue(Buffer.prototype.readInt32BE,4,e)}readInt32LE(e){return this._readNumberValue(Buffer.prototype.readInt32LE,4,e)}readBigInt64BE(e){return Ze.bigIntAndBufferInt64Check("readBigInt64BE"),this._readNumberValue(Buffer.prototype.readBigInt64BE,8,e)}readBigInt64LE(e){return Ze.bigIntAndBufferInt64Check("readBigInt64LE"),this._readNumberValue(Buffer.prototype.readBigInt64LE,8,e)}writeInt8(e,r){return this._writeNumberValue(Buffer.prototype.writeInt8,1,e,r),this}insertInt8(e,r){return this._insertNumberValue(Buffer.prototype.writeInt8,1,e,r)}writeInt16BE(e,r){return this._writeNumberValue(Buffer.prototype.writeInt16BE,2,e,r)}insertInt16BE(e,r){return this._insertNumberValue(Buffer.prototype.writeInt16BE,2,e,r)}writeInt16LE(e,r){return this._writeNumberValue(Buffer.prototype.writeInt16LE,2,e,r)}insertInt16LE(e,r){return this._insertNumberValue(Buffer.prototype.writeInt16LE,2,e,r)}writeInt32BE(e,r){return t Line truncated
`);if(d===-1){cP("have not received end of HTTP headers yet..."),n();return}let f=h.slice(0,d).toString("ascii").split(`\r
`),p=f.shift();if(!p)return t.destroy(),r(new Error("No header received from proxy CONNECT response"));let m=p.split(" "),E=+m[1],y=m.slice(2).join(" "),C={};for(let w of f){if(!w)continue;let S=w.indexOf(":");if(S===-1)return t.destroy(),r(new Error(`Invalid header from proxy CONNECT response: "${w}"`));let N=w.slice(0,S).toLowerCase(),P=w.slice(S+1).trimStart(),Q=C[N];typeof Q=="string"?C[N]=[Q,P]:Array.isArray(Q)?Q.push(P):C[N]=P}cP("got proxy server response: %o %o",p,C),o(),e({connect:{statusCode:E,statusText:y,headers:C},buffered:h})}t.on("error",c),t.on("end",a),n()})}Jy.parseProxyResponse=U0t});var kRe=A(ca=>{"use strict";var F0t=ca&&ca.__createBinding||(Object.create?(function(t,e,r,s){s===void 0&&(s=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,s,i)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),q0t=ca&&ca.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),ORe=ca&&ca.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&F0t(e,t,r);return q0t(e,t),e},DRe=ca&&ca.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(ca,"__esModule",{value:!0});ca.HttpsProxyAgent=void 0;var vw=ORe(require("net")),QRe=ORe(require("tls")),G0t=DRe(require("assert")),H0t=DRe(Jf()),z0t=PI(),V0t=require("url"),$0t=_Re(),Tw=(0,H0t.default)("https-proxy-agent"),lP=class extends z0t.Agent{constructor(e,r){super(r),this.options={path:void 0},this.proxy=typeof e=="string"?new V0t.URL(e):e,this.proxyHeaders=r?.headers??{},Tw("Creating new HttpsProxyAgent instance: %o",this.proxy.href);let s=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),i=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={ALPNProtocols:["http/1.1"],...r?PRe(r,"headers"):null,host:s,port:i}}async connect(e,r){let{proxy:s}=this;if(!r.host)throw new TypeError('No "host" provided');let i;if(s.protocol==="https:"){Tw("Creating `tls.Socket`: %o",this.connectOpts);let d=this.connectOpts.servername||this.connectOpts.host;i=QRe.connect({...this.connectOpts,servername:d&&vw.isIP(d)?void 0:d})}else Tw("Creating `net.Socket`: %o",this.connectOpts),i=vw.connect(this.connectOpts);let n=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders},o=vw.isIPv6(r.host)?`[${r.host}]`:r.host,a=`CONNECT ${o}:${r.port} HTTP/1.1\r
`;if(s.username||s.password){let d=`${decodeURIComponent(s.username)}:${decodeURIComponent(s.password)}`;n["Proxy-Authorization"]=`Basic ${Buffer.from(d).toString("base64")}`}n.Host=`${o}:${r.port}`,n["Proxy-Connection"]||(n["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let d of Object.keys(n))a+=`${d}: ${n[d]}\r
`;let c=(0,$0t.parseProxyResponse)(i);i.write(`${a}\r
`);let{connect:l,buffered:u}=await c;if(e.emit("proxyConnect",l),this.emit("proxyConnect",l,e),l.statusCode===200){if(e.once("socket",j0t),r.secureEndpoint){Tw("Upgrading socket connection to TLS");let d=r.servername||r.host;return QRe.connect({...PRe(r,"host","path","port"),socket:i,servername:vw.isIP(d)?void 0:d})}return i}i.destroy();let h=new vw.Socket({writable:!1});return h.readable=!0,e.once("socket",d=>{Tw("Replaying proxy buffer for failed request"),(0,G0t.default)(d.listenerCount("data")>0),d.push(u),d.push(null)}),h}};lP.protocols=["http","https"];ca.HttpsProxyAgent=lP;function j0t(t){t.resume()}function PRe(t,...e){let r={},s;for(s in t)e.includes(s)||(r[s]=t[s]);return r}});var FRe=A(uh=>{"use strict";Object.defineProperty(uh,"__esModule",{value:!0});var MRe=require("buffer"),uA={INVALID_ENCODING:"Invalid encoding provided. Please specify a valid encoding the internal Node.js Buffer supports.",INVALID_SMARTBUFFER_SIZE:"Invalid size provided. Size must be a valid integer greater than zero.",INVALID_SMARTBUFFER_BUFFER:"Invalid Buffer provided in SmartBufferOptions.",INVALID_SMARTBUFFER_OBJECT:"Invalid SmartBufferOptions object supplied to SmartBuffer constructor or factory methods.",INVALID_OFFSET:"An invalid offset value was provided.",INVALID_OFFSET_NON_NUMBER:"An invalid offset value was provided. A numeric value is required.",INVALID_LENGTH:"An invalid length value was provided.",INVALID_LENGTH_NON_NUMBER:"An invalid length value was provived. A numeric value is required.",INVALID_TARGET_OFFSET:"Target offset is beyond the bounds of the internal SmartBuffer data.",INVALID_TARGET_LENGTH:"Specified length value moves cursor beyong the bounds of the internal SmartBuffer data.",INVALID_READ_BEYOND_BOUNDS:"Attempted to read beyond the bounds of the managed data.",INVALID_WRITE_BEYOND_BOUNDS:"Attempted to write beyond the bounds of the managed data."};uh.ERRORS=uA;function J0t(t){if(!MRe.Buffer.isEncoding(t))throw new Error(uA.INVALID_ENCODING)}uh.checkEncoding=J0t;function LRe(t){return typeof t=="number"&&isFinite(t)&&X0t(t)}uh.isFiniteInteger=LRe;function URe(t,e){if(typeof t=="number"){if(!LRe(t)||t<0)throw new Error(e?uA.INVALID_OFFSET:uA.INVALID_LENGTH)}else throw new Error(e?uA.INVALID_OFFSET_NON_NUMBER:uA.INVALID_LENGTH_NON_NUMBER)}function Y0t(t){URe(t,!1)}uh.checkLengthValue=Y0t;function W0t(t){URe(t,!0)}uh.checkOffsetValue=W0t;function K0t(t,e){if(t<0||t>e.length)throw new Error(uA.INVALID_TARGET_OFFSET)}uh.checkTargetOffset=K0t;function X0t(t){return typeof t=="number"&&isFinite(t)&&Math.floor(t)===t}function Z0t(t){if(typeof BigInt>"u")throw new Error("Platform does not support JS BigInt type.");if(typeof MRe.Buffer.prototype[t]>"u")throw new Error(`Platform does not support Buffer.prototype.${t}.`)}uh.bigIntAndBufferInt64Check=Z0t});var GRe=A(X6=>{"use strict";Object.defineProperty(X6,"__esModule",{value:!0});var tt=FRe(),qRe=4096,ebt="utf8",K6=class t{constructor(e){if(this.length=0,this._encoding=ebt,this._writeOffset=0,this._readOffset=0,t.isSmartBufferOptions(e))if(e.encoding&&(tt.checkEncoding(e.encoding),this._encoding=e.encoding),e.size)if(tt.isFiniteInteger(e.size)&&e.size>0)this._buff=Buffer.allocUnsafe(e.size);else throw new Error(tt.ERRORS.INVALID_SMARTBUFFER_SIZE);else if(e.buff)if(Buffer.isBuffer(e.buff))this._buff=e.buff,this.length=e.buff.length;else throw new Error(tt.ERRORS.INVALID_SMARTBUFFER_BUFFER);else this._buff=Buffer.allocUnsafe(qRe);else{if(typeof e<"u")throw new Error(tt.ERRORS.INVALID_SMARTBUFFER_OBJECT);this._buff=Buffer.allocUnsafe(qRe)}}static fromSize(e,r){return new this({size:e,encoding:r})}static fromBuffer(e,r){return new this({buff:e,encoding:r})}static fromOptions(e){return new this(e)}static isSmartBufferOptions(e){let r=e;return r&&(r.encoding!==void 0||r.size!==void 0||r.buff!==void 0)}readInt8(e){return this._readNumberValue(Buffer.prototype.readInt8,1,e)}readInt16BE(e){return this._readNumberValue(Buffer.prototype.readInt16BE,2,e)}readInt16LE(e){return this._readNumberValue(Buffer.prototype.readInt16LE,2,e)}readInt32BE(e){return this._readNumberValue(Buffer.prototype.readInt32BE,4,e)}readInt32LE(e){return this._readNumberValue(Buffer.prototype.readInt32LE,4,e)}readBigInt64BE(e){return tt.bigIntAndBufferInt64Check("readBigInt64BE"),this._readNumberValue(Buffer.prototype.readBigInt64BE,8,e)}readBigInt64LE(e){return tt.bigIntAndBufferInt64Check("readBigInt64LE"),this._readNumberValue(Buffer.prototype.readBigInt64LE,8,e)}writeInt8(e,r){return this._writeNumberValue(Buffer.prototype.writeInt8,1,e,r),this}insertInt8(e,r){return this._insertNumberValue(Buffer.prototype.writeInt8,1,e,r)}writeInt16BE(e,r){return this._writeNumberValue(Buffer.prototype.writeInt16BE,2,e,r)}insertInt16BE(e,r){return this._insertNumberValue(Buffer.prototype.writeInt16BE,2,e,r)}writeInt16LE(e,r){return this._writeNumberValue(Buffer.prototype.writeInt16LE,2,e,r)}insertInt16LE(e,r){return this._insertNumberValue(Buffer.prototype.writeInt16LE,2,e,r)}writeInt32BE(e,r){return t Line truncated
`).join(`
`+n),t.push(i+"m+"+v_.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=Lmt()+e+" "+t[0]}function Lmt(){return xs.inspectOpts.hideDate?"":new Date().toISOString()+" "}function Fmt(...t){return process.stderr.write(Q_.formatWithOptions(xs.inspectOpts,...t)+`
`)}function Umt(t){t?process.env.DEBUG=t:delete process.env.DEBUG}function qmt(){return process.env.DEBUG}function Gmt(t){t.inspectOpts={};let e=Object.keys(xs.inspectOpts);for(let r=0;r<e.length;r++)t.inspectOpts[e[r]]=xs.inspectOpts[e[r]]}v_.exports=yJ()(xs);var{formatters:Zwe}=v_.exports;Zwe.o=function(t){return this.inspectOpts.colors=this.useColors,Q_.inspect(t,this.inspectOpts).split(`
`).map(e=>e.trim()).join(" ")};Zwe.O=function(t){return this.inspectOpts.colors=this.useColors,Q_.inspect(t,this.inspectOpts)}});var CJ=m((G4t,EJ)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?EJ.exports=Xwe():EJ.exports=eBe()});var P_=m(br=>{"use strict";Object.defineProperty(br,"__esModule",{value:!0});br.DownloadHTTPError=br.DownloadLengthMismatchError=br.DownloadError=br.ExpiredMetadataError=br.EqualVersionError=br.BadVersionError=br.RepositoryError=br.PersistError=br.RuntimeError=br.ValueError=void 0;var IJ=class extends Error{};br.ValueError=IJ;var bJ=class extends Error{};br.RuntimeError=bJ;var wJ=class extends Error{};br.PersistError=wJ;var K0=class extends Error{};br.RepositoryError=K0;var __=class extends K0{};br.BadVersionError=__;var BJ=class extends __{};br.EqualVersionError=BJ;var SJ=class extends K0{};br.ExpiredMetadataError=SJ;var X0=class extends Error{};br.DownloadError=X0;var xJ=class extends X0{};br.DownloadLengthMismatchError=xJ;var NJ=class extends X0{statusCode;constructor(e,r){super(e),this.statusCode=r}};br.DownloadHTTPError=NJ});var rBe=m(ty=>{"use strict";var TJ=ty&&ty.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(ty,"__esModule",{value:!0});ty.withTempFile=void 0;var RJ=TJ(require("fs/promises")),Hmt=TJ(require("os")),tBe=TJ(require("path")),zmt=async t=>Vmt(async e=>t(tBe.default.join(e,"tempfile")));ty.withTempFile=zmt;var Vmt=async t=>{let e=await RJ.default.realpath(Hmt.default.tmpdir()),r=await RJ.default.mkdtemp(e+tBe.default.sep);try{return await t(r)}finally{await RJ.default.rm(r,{force:!0,recursive:!0,maxRetries:3})}}});var vJ=m(oh=>{"use strict";var O_=oh&&oh.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(oh,"__esModule",{value:!0});oh.DefaultFetcher=oh.BaseFetcher=void 0;var $mt=O_(CJ()),sBe=O_(require("fs")),jmt=O_(Mv()),Jmt=O_(require("util")),iBe=P_(),Ymt=rBe(),Wmt=(0,$mt.default)("tuf:fetch"),Kmt="User-Agent",D_=class{async downloadFile(e,r,s){return(0,Ymt.withTempFile)(async i=>{let n=await this.fetch(e),o=0,a=sBe.default.createWriteStream(i);try{for await(let c of n){if(o+=c.length,o>r)throw new iBe.DownloadLengthMismatchError("Max length reached");await Xmt(a,c)}}finally{await Jmt.default.promisify(a.close).bind(a)()}return s(i)})}async downloadBytes(e,r){return this.downloadFile(e,r,async s=>{let i=sBe.default.createReadStream(s),n=[];for await(let o of i)n.push(o);return Buffer.concat(n)})}};oh.BaseFetcher=D_;var QJ=class extends D_{userAgent;timeout;retry;constructor(e={}){super(),this.userAgent=e.userAgent,this.timeout=e.timeout,this.retry=e.retry}async fetch(e){Wmt("GET %s",e);let r=await(0,jmt.default)(e,{headers:{[Kmt]:this.userAgent||""},timeout:this.timeout,retry:this.retry});if(!r.ok||!r?.body)throw new iBe.DownloadHTTPError("Failed to download",r.status);return r.body}};oh.DefaultFetcher=QJ;var Xmt=async(t,e)=>new Promise((r,s)=>{t.write(e,i=>{i&&s(i),r(!0)})})});var nBe=m(($4t,Zmt)=>{Zmt.exports={name:"tuf-js",version:"4.1.0",description:"JavaScript implementation of The Update Framework (TUF)",main:"dist/index.js",types:"dist/index.d.ts",scripts:{build:"tsc --build tsconfig.build.json",clean:"rm -rf dist && rm tsconfig.build.tsbuildinfo",test:"jest"},repository:{type:"git",url:"git+https://github.com/theupdateframework/tuf-js.git"},files:["dist"],keywords:["tuf","security","update"],author:"bdehamer@github.com",license:"MIT",bugs:{url:"https://github.com/theupdateframework/tuf-js/issues"},homepage:"https://github.com/theupdateframework/tuf-js/tree/main/packages/client#readme",devDependencies:{"@tufjs/repo-mock":"4.0.1","@types/debug":"^4.1.12","@types/make-fetch-happen":"^10.0.4"},dependencies:{"@tufjs/models":"4.1.0",debug:"^4.4.3","make-fetch-happen":"^15.0.1"},engines:{node:"^20.17.0 || >=22.9.0"}}});var oBe=m(k_=>{"use strict";Object.defineProperty(k_,"__esModule",{value:!0});k_.defaultConfig=void 0;k_.defaultConfig={maxRootRotations:256,maxDelegations:32,rootMaxLength:512e3,timestampMaxLength:16384,snapshotMaxLength:2e6,targetsMaxLength:5e6,prefixTargetsWithHash:!0,fetchTimeout:1e5,fetchRetries:void 0,fetchRetry:2,userAgent:""}});var aBe=m(M_=>{"use strict";Object.defineProperty(M_,"__esModule",{value:!0});M_.TrustedMetadataStore=void 0;var zr=N_(),cr=P_(),_J=class{trustedSet={};referenceTime;constructor(e){this.referenceTime=new Date,this.loadTrustedRoot(e)}get root(){if(!this.trustedSet.root)throw new ReferenceError("No trusted root metadata");return this.trustedSet.root}get timestamp(){return this.trustedSet.timestamp}get snapshot(){return this.trustedSet.snapshot}get targets(){return this.trustedSet.targets}getRole(e){return this.trustedSet[e]}updateRoot(e){let r=JSON.parse(e.toString("utf8")),s=zr.Metadata.fromJSON(zr.MetadataKind.Root,r);if(s.signed.type!=zr.MetadataKind.Root)throw new cr.RepositoryError(`Expected 'root', got ${s.signed.type}`);if(this.root.verifyDelegate(zr.MetadataKind.Root,s),s.signed.version!=t Line truncated
`+n),t.push(i+"m+"+bO.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=SRt()+e+" "+t[0]}function SRt(){return Ds.inspectOpts.hideDate?"":new Date().toISOString()+" "}function xRt(...t){return process.stderr.write(IO.formatWithOptions(Ds.inspectOpts,...t)+`
`)}function NRt(t){t?process.env.DEBUG=t:delete process.env.DEBUG}function RRt(){return process.env.DEBUG}function vRt(t){t.inspectOpts={};let e=Object.keys(Ds.inspectOpts);for(let r=0;r<e.length;r++)t.inspectOpts[e[r]]=Ds.inspectOpts[e[r]]}bO.exports=YY()(Ds);var{formatters:__e}=bO.exports;__e.o=function(t){return this.inspectOpts.colors=this.useColors,IO.inspect(t,this.inspectOpts).split(`
`).map(e=>e.trim()).join(" ")};__e.O=function(t){return this.inspectOpts.colors=this.useColors,IO.inspect(t,this.inspectOpts)}});var KY=A((Esr,WY)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?WY.exports=T_e():WY.exports=Q_e()});var O_e=A((Csr,P_e)=>{var TRt=require("dns"),_Rt=["if-modified-since","if-none-match","if-unmodified-since","if-match","if-range"],QRt=t=>{let{strictSSL:e,...r}={...t};if(r.method=r.method?r.method.toUpperCase():"GET",e==null?r.rejectUnauthorized=process.env.NODE_TLS_REJECT_UNAUTHORIZED!=="0":r.rejectUnauthorized=e!==!1,!r.retry)r.retry={retries:0};else if(typeof r.retry=="string"){let s=parseInt(r.retry,10);isFinite(s)?r.retry={retries:s}:r.retry={retries:0}}else typeof r.retry=="number"?r.retry={retries:r.retry}:r.retry={retries:0,...r.retry};return r.dns={ttl:300*1e3,lookup:TRt.lookup,...r.dns},r.cache=r.cache||"default",r.cache==="default"&&Object.keys(r.headers||{}).some(i=>_Rt.includes(i.toLowerCase()))&&(r.cache="no-store"),r.cacheAdditionalHeaders=r.cacheAdditionalHeaders||[],r.cacheManager&&!r.cachePath&&(r.cachePath=r.cacheManager),r};P_e.exports=QRt});var ZY=A((Isr,U_e)=>{var D_e=K$(),k_e=sj(),PRt=Il(),M_e={shared:!1,ignoreCargoCult:!0},ORt={status:200,headers:{}},bE=t=>{let e={method:t.method,url:t.url,headers:{},compress:t.compress};return t.headers.forEach((r,s)=>{e.headers[s]=r}),e},L_e=t=>{let e={status:t.status,headers:{}};return t.headers.forEach((r,s)=>{e.headers[s]=r}),e},XY=class{constructor({entry:e,request:r,response:s,options:i}){this.entry=e,this.request=bE(r),this.response=L_e(s),this.options=i,this.policy=new D_e(this.request,this.response,M_e),this.entry&&(this.policy._responseTime=this.entry.metadata.time)}static storable(e,r){return!r.cachePath||r.cache==="no-store"||!["GET","HEAD"].includes(e.method)?!1:new D_e(bE(e),ORt,M_e).storable()}satisfies(e){let r=bE(e);if(this.request.headers.host!==r.headers.host||this.request.compress!==r.compress)return!1;let s=new k_e(this.request),i=new k_e(r);return JSON.stringify(s.mediaTypes())!==JSON.stringify(i.mediaTypes())||JSON.stringify(s.languages())!==JSON.stringify(i.languages())||JSON.stringify(s.encodings())!==JSON.stringify(i.encodings())?!1:this.options.integrity?PRt.parse(this.options.integrity).match(this.entry.integrity):!0}storable(){return this.policy.storable()}get mustRevalidate(){return!!this.policy._rescc["must-revalidate"]}needsRevalidation(e){let r=bE(e);return r.method="GET",!this.policy.satisfiesWithoutRevalidation(r)}responseHeaders(){return this.policy.responseHeaders()}revalidationHeaders(e){let r=bE(e);return this.policy.revalidationHeaders(r)}revalidated(e,r){let s=bE(e),i=L_e(r);return!this.policy.revalidatedPolicy(s,i).modified}};U_e.exports=XY});var q_e=A((bsr,F_e)=>{var e9=class extends Error{constructor(e){super(`request to ${e} failed: cache mode is 'only-if-cached' but no cached response is available.`),this.code="ENOTCACHED"}};F_e.exports={NotCachedError:e9}});var r9=A((wsr,G_e)=>{"use strict";var DRt=Xp(),t9=class extends DRt{#e=[];#t=new Map;constructor(e,...r){super(),this.#e=e.events,r.length&&this.push(...r)}on(e,r){return this.#e.includes(e)&&this.#t.has(e)?r(...this.#t.get(e)):super.on(e,r)}emit(e,...r){return this.#e.includes(e)&&this.#t.set(e,r),super.emit(e,...r)}};G_e.exports=t9});var z_e=A((Bsr,H_e)=>{var{URL:kRt,format:MRt}=require("url"),LRt={auth:!1,fragment:!1,search:!0,unicode:!1},URt=t=>{let e=new kRt(t.url);return`make-fetch-happen:request-cache:${MRt(e,LRt)}`};H_e.exports=URt});var $_e=A((Ssr,V_e)=>{var FRt=z6(),qRt=t=>t?.code==="EPROMISERETRY"&&Object.hasOwn(t,"retried");async function GRt(t,e={}){let r=FRt.operation(e);return new Promise(function(s,i){r.attempt(async n=>{try{let o=await t(a=>{throw Object.assign(new Error("Retrying"),{code:"EPROMISERETRY",retried:a})},n,r);return s(o)}catch(o){return qRt(o)?r.retry(o.retried||new Error)?void 0:i(o.retried):i(o)}})})}V_e.exports={promiseRetry:GRt}});var j_e=A((xsr,HRt)=>{HRt.exports={name:"make-fetch-happen",version:"15.0.4",description:"Opinionated, caching, retrying fetch client",main:"lib/index.js",files:["bin/","lib/"],scripts:{test:"tap",posttest:"npm run lint",eslint:'eslint "**/*.{js,cjs,ts,mjs,jsx,tsx}"',lint:"npm run eslint",lintfix:"npm run eslint -- --fix",postlint:"template-oss-check",snap:"tap","template-oss-apply":"template-oss-apply --force"},repository:{type:"git",url:"git+https://github.com/npm/make-fetch-happen.git"},keywords:["http","request","fetch","mean girls","caching","cache","subresource integrity"],author:"GitHub Inc.",license:"ISC",dependencies:{"@gar/promise-retry":"^1.0.0","@npmcli/agent":"^4.0.0",cacache:"^20.0.1","http-cache-semantics":"^4.1.1",minipass:"^7.0.2","minipass-fetch":"^5.0.0","minipass-flush":"^1.0.5","minipass-pipeline":"^1.2.4",negotiator:"^1.0.0","proc-log":"^6.0.0",ssri:"^13.0.0"},devDependencies:{"@npmcli/eslint-config":"^5.0.0","@npmcli/template-oss":"4.25.0",nock:"^13.2.4","safe-buffer":"^5.2.1","standard-version":"^9.3. Line truncated
`).forEach(r=>{r.match(_Tt)||r.match(QTt)||(e+=r)}),Buffer.from(e,"base64")}function OTt(t,e="CERTIFICATE"){let s=t.toString("base64").match(/.{1,64}/g)||"";return[`-----BEGIN ${e}-----`,...s,`-----END ${e}-----`].join(`
`).concat(`
`)}});var JO=A(Zd=>{"use strict";Object.defineProperty(Zd,"__esModule",{value:!0});Zd.SHA2_HASH_ALGOS=Zd.RSA_SIGNATURE_ALGOS=Zd.ECDSA_SIGNATURE_ALGOS=void 0;Zd.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"};Zd.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"};Zd.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 H9=A(YO=>{"use strict";Object.defineProperty(YO,"__esModule",{value:!0});YO.RFC3161TimestampVerificationError=void 0;var G9=class extends Error{};YO.RFC3161TimestampVerificationError=G9});var VQe=A(Ol=>{"use strict";var DTt=Ol&&Ol.__createBinding||(Object.create?(function(t,e,r,s){s===void 0&&(s=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,s,i)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),kTt=Ol&&Ol.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),MTt=Ol&&Ol.__importStar||(function(){var t=function(e){return t=Object.getOwnPropertyNames||function(r){var s=[];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(s[s.length]=i);return s},t(e)};return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var s=t(e),i=0;i<s.length;i++)s[i]!=="default"&&DTt(r,e,s[i]);return kTt(r,e),r}})();Object.defineProperty(Ol,"__esModule",{value:!0});Ol.TSTInfo=void 0;var zQe=MTt(TE()),LTt=JO(),UTt=H9(),z9=class{root;constructor(e){this.root=e}get version(){return this.root.subs[0].toInteger()}get genTime(){return this.root.subs[4].toDate()}get messageImprintHashAlgorithm(){let e=this.messageImprintObj.subs[0].subs[0].toOID();return LTt.SHA2_HASH_ALGOS[e]}get messageImprintHashedMessage(){return this.messageImprintObj.subs[1].value}get raw(){return this.root.toDER()}verify(e){let r=zQe.digest(this.messageImprintHashAlgorithm,e);if(!zQe.bufferEqual(r,this.messageImprintHashedMessage))throw new UTt.RFC3161TimestampVerificationError("message imprint does not match artifact")}get messageImprintObj(){return this.root.subs[2]}};Ol.TSTInfo=z9});var jQe=A(Dl=>{"use strict";var FTt=Dl&&Dl.__createBinding||(Object.create?(function(t,e,r,s){s===void 0&&(s=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,s,i)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),qTt=Dl&&Dl.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),GTt=Dl&&Dl.__importStar||(function(){var t=function(e){return t=Object.getOwnPropertyNames||function(r){var s=[];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(s[s.length]=i);return s},t(e)};return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var s=t(e),i=0;i<s.length;i++)s[i]!=="default"&&FTt(r,e,s[i]);return qTt(r,e),r}})();Object.defineProperty(Dl,"__esModule",{value:!0});Dl.RFC3161Timestamp=void 0;var HTt=VO(),V9=GTt(TE()),$Qe=JO(),sB=H9(),zTt=VQe(),VTt="1.2.840.113549.1.7.2",$Tt="1.2.840.113549.1.9.16.1.4",jTt="1.2.840.113549.1.9.4",$9=class t{root;constructor(e){this.root=e}static parse(e){let r=HTt.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 $Qe.SHA2_HASH_ALGOS[e]}get signatureAlgorithm(){let e=this.signatureAlgorithmObj.subs[0].toOID();return $Qe.ECDSA_SIGNATURE_ALGOS[e]}get signatureValue(){return this.signatureValueObj.value}get tstInfo(){return new zTt.TSTInfo(this.eContentObj.subs[0].subs[0])}verify(e,r){if(!this.timeStampTokenObj)throw new sB.RFC3161TimestampVerificationError("timeStampToken is missing");if(this.contentType!==VTt)throw new sB.RFC3161TimestampVerificationError(`incorrect content type: ${this.contentType}`);if(this.eContentType!==$Tt)throw new sB.RFC3161TimestampVerificationError(`incorrect encapsulated content type: ${this.eContentType}`);this.tstInfo.verify(e),this.verifyMessageDigest(),this.verifySignature(r)}verifyMessageDigest(){let e=V9.digest(this.signerDigestAlgorithm,this.tstInfo.raw),r=this.messageDigestAttributeObj.subs[1].subs[0].value;if(!V9.bufferEqual(e,r))throw new sB.RFC3161TimestampVerificationError("signed data does not match tstInfo")}verifySignature(e){let r=this.signedAttrsObj.toDER();if(r[0 Line truncated
`,Ryt=/\u2014 (\S+) (\S+)\n/g;function Tyt(t,e){let r=t.inclusionProof,s=s5.fromString(r.checkpoint.envelope),i=X_.fromString(s.note);if(!Qyt(s,e))throw new nb.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"invalid checkpoint signature"});return i}function Qyt(t,e){let r=Buffer.from(t.note,"utf-8");return t.signatures.some(s=>{let i=e.find(n=>MBe.crypto.bufferEqual(n.logID.subarray(0,4),s.keyHint)&&n.baseURL.match(s.name));return i?MBe.crypto.verify(r,i.publicKey,s.signature):!1})}var s5=class t{note;signatures;constructor(e,r){this.note=e,this.signatures=r}static fromString(e){if(!e.includes(r5))throw new nb.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"missing checkpoint separator"});let r=e.indexOf(r5),s=e.slice(0,r+1),n=e.slice(r+r5.length).matchAll(Ryt),o=Array.from(n,a=>{let[,c,l]=a,u=Buffer.from(l,"base64");if(u.length<5)throw new nb.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"malformed checkpoint signature"});return{name:c,keyHint:u.subarray(0,4),signature:u.subarray(4)}});if(o.length===0)throw new nb.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"no signatures found in checkpoint"});return new t(s,o)}},X_=class t{origin;logSize;logHash;rest;constructor(e,r,s,i){this.origin=e,this.logSize=r,this.logHash=s,this.rest=i}static fromString(e){let r=e.trimEnd().split(`
`);if(r.length<3)throw new nb.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"too few lines in checkpoint header"});let s=r[0],i=BigInt(r[1]),n=Buffer.from(r[2],"base64"),o=r.slice(3);return new t(s,i,n,o)}};ob.LogCheckpoint=X_});var FBe=m(a5=>{"use strict";Object.defineProperty(a5,"__esModule",{value:!0});a5.verifyMerkleInclusion=Pyt;var o5=Hn(),i5=ri(),vyt=Buffer.from([0]),_yt=Buffer.from([1]);function Pyt(t,e){let r=t.inclusionProof,s=BigInt(r.logIndex),i=BigInt(e.logSize);if(s<0n||s>=i)throw new i5.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:`invalid index: ${s}`});let{inner:n,border:o}=Dyt(s,i);if(r.hashes.length!==n+o)throw new i5.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"invalid hash count"});let a=r.hashes.slice(0,n),c=r.hashes.slice(n),l=Uyt(t.canonicalizedBody),u=kyt(Oyt(l,a,s),c);if(!o5.crypto.bufferEqual(u,e.logHash))throw new i5.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"calculated root hash does not match inclusion proof"})}function Dyt(t,e){let r=Myt(t,e),s=Lyt(t>>BigInt(r));return{inner:r,border:s}}function Oyt(t,e,r){return e.reduce((s,i,n)=>r>>BigInt(n)&BigInt(1)?n5(i,s):n5(s,i),t)}function kyt(t,e){return e.reduce((r,s)=>n5(s,r),t)}function Myt(t,e){return Fyt(t^e-BigInt(1))}function Lyt(t){return t.toString(2).split("1").length-1}function Fyt(t){return t===0n?0:t.toString(2).length}function n5(t,e){return o5.crypto.digest("sha256",_yt,t,e)}function Uyt(t){return o5.crypto.digest("sha256",vyt,t)}});var qBe=m(c5=>{"use strict";Object.defineProperty(c5,"__esModule",{value:!0});c5.verifyTLogSET=Hyt;var UBe=Hn(),qyt=ri(),Gyt=oy();function Hyt(t,e){if(!(0,Gyt.filterTLogAuthorities)(e,{logID:t.logId.keyId,targetDate:new Date(Number(t.integratedTime)*1e3)}).some(i=>{let n=zyt(t),o=Buffer.from(UBe.json.canonicalize(n),"utf8"),a=t.inclusionPromise.signedEntryTimestamp;return UBe.crypto.verify(o,i.publicKey,a)}))throw new qyt.VerificationError({code:"TLOG_INCLUSION_PROMISE_ERROR",message:"inclusion promise could not be verified"})}function zyt(t){let{integratedTime:e,logIndex:r,logId:s,canonicalizedBody:i}=t;return{body:i.toString("base64"),integratedTime:Number(e),logIndex:Number(r),logID:s.keyId.toString("hex")}}});var HBe=m(Z_=>{"use strict";Object.defineProperty(Z_,"__esModule",{value:!0});Z_.verifyTLogBody=Yyt;Z_.verifyTLogInclusion=Wyt;var GBe=p8(),d5=ri(),l5=DBe(),u5=OBe(),Vyt=kBe(),$yt=LBe(),jyt=FBe(),Jyt=qBe();function Yyt(t,e){let{kind:r,version:s}=t.kindVersion,i=JSON.parse(t.canonicalizedBody.toString("utf8"));if(r!==i.kind||s!==i.apiVersion)throw new d5.VerificationError({code:"TLOG_BODY_ERROR",message:`kind/version mismatch - expected: ${r}/${s}, received: ${i.kind}/${i.apiVersion}`});switch(r){case"dsse":if(s==l5.DSSE_API_VERSION_V1)return(0,l5.verifyDSSETLogBody)(i,e);{let n=GBe.Entry.fromJSON(i);return(0,l5.verifyDSSETLogBodyV2)(n,e)}case"intoto":return(0,Vyt.verifyIntotoTLogBody)(i,e);case"hashedrekord":if(s==u5.HASHEDREKORD_API_VERSION_V1)return(0,u5.verifyHashedRekordTLogBody)(i,e);{let n=GBe.Entry.fromJSON(i);return(0,u5.verifyHashedRekordTLogBodyV2)(n,e)}default:throw new d5.VerificationError({code:"TLOG_BODY_ERROR",message:`unsupported kind: ${r}`})}}function Wyt(t,e){let r=!1;if(Kyt(t)&&((0,Jyt.verifyTLogSET)(t,e),r=!0),Xyt(t)){let s=(0,$yt.verifyCheckpoint)(t,e);(0,jyt.verifyMerkleInclusion)(t,s),r=!0}if(!r)throw new d5.VerificationError({code:"TLOG_MISSING_INCLUSION_ERROR",message:"inclusion could not be verified"})}function Kyt(t){return t.inclusionPromise!==void 0}function Xyt(t){return t.inclusionProof!==void 0}});var YBe=m(eP=>{"use strict";Object.defineProperty(eP,"__esModule",{value:!0});eP.Verifier=void 0;var Zyt=require("util"),ay=ri(),zBe=RBe(),VBe=QBe(),$Be=PBe(),jBe=HBe(),h5=class{trustMaterial;options;constructor(e,r={}){this.trustMaterial=e,this.options={ctlogThreshold:r.ctlogThreshold??1,tlogThreshold:r.tlogThreshold??1,timestampThreshold:r.timestampThreshold??r.tsaThreshold??1,tsaThreshold:0}}verify(e,r){let s=this.verifyTimestamps(e),i=this.verifySigningKey(e,s);return this.verifyTLogs(e),this.verifySignature(e,i),r&&this.verifyPolicy(r,i.identity||{}),i}verifyTimestamps(e){let r=0,s=e.timestamps.map(i=>{switch(i.$case){case"timestamp-authority":return r++,(0,$Be.getTSATimestamp)(i.timestamp,e.signature.signature,this.trustMaterial.timestampAuthorities);case"transparency-log":return r++,(0,$Be.getTLogTimestamp)(i.tlogEntry)}});if(JBe(s))throw new ay.VerificationError({code:"TIMESTAMP_ERROR",message:"duplicate timestamp"});if(r<this.options.timestampThreshold)throw new ay.VerificationError({code:"TIMESTAMP_ERROR",message:`expected ${this.options.timestampThreshold} timestamps, got ${r}`});return s.map(i=>i.timestamp)}verifySigningKey({key:e},r){switch(e.$case){case"public-key":return(0,zBe.verifyPublicKey)(e.hint,r,this.trustMaterial);case"certificate":{let s=(0,zBe.verifyCertificate)(e.certificate,r,this.trustMaterial);if(JBe(s.scts))throw new ay.VerificationError({code:"CERTIFICATE_ERRO Line truncated
Support boolean input list: \`true | True | TRUE | false | False | FALSE\``)}function N7(t){process.exitCode=fk.Failure,xp(t)}function Ja(){return process.env.RUNNER_DEBUG==="1"}function T(t){Fu("debug",{},t)}function xp(t,e={}){Fu("error",wP(e),t instanceof Error?t.toString():t)}function or(t,e={}){Fu("warning",wP(e),t instanceof Error?t.toString():t)}function H(t){process.stdout.write(t+S7.EOL)}function VLe(t){SP("group",t)}function $Le(){SP("endgroup")}function Sn(t,e){return zLe(this,void 0,void 0,function*(){VLe(t);let r;try{r=yield e()}finally{$Le()}return r})}function CB(t,e){if(process.env.GITHUB_STATE||"")return xP("STATE",R5(t,e));Fu("save-state",{name:t},Lu(e))}function R7(t){return process.env[`STATE_${t}`]||""}var bR=M(require("fs"),1),oH=M(require("os"),1),aH=M(require("path"),1);var Ok=M(require("crypto"),1),Fs=M(require("fs"),1);var G2e=M(Pk(),1);var OB=M(require("os"),1),ua=M(require("path"),1);var ho=M(Pk(),1),yte=M(require("stream"),1),Ete=M(require("util"),1),kk=require("assert");var gte=function(t,e,r,s){function i(n){return n instanceof r?n:new r(function(o){o(n)})}return new(r||(r=Promise))(function(n,o){function a(u){try{l(s.next(u))}catch(d){o(d)}}function c(u){try{l(s.throw(u))}catch(d){o(d)}}function l(u){u.done?n(u.value):i(u.value).then(a,c)}l((s=s.apply(t,e||[])).next())})},PB=class{constructor(e,r,s){if(e<1)throw new Error("max attempts should be greater than or equal to 1");if(this.maxAttempts=e,this.minSeconds=Math.floor(r),this.maxSeconds=Math.floor(s),this.minSeconds>this.maxSeconds)throw new Error("min seconds should be less than or equal to max seconds")}execute(e,r){return gte(this,void 0,void 0,function*(){let s=1;for(;s<this.maxAttempts;){try{return yield e()}catch(n){if(r&&!r(n))throw n;H(n.message)}let i=this.getSleepAmount();H(`Waiting ${i} seconds before trying again`),yield this.sleep(i),s++}return yield e()})}getSleepAmount(){return Math.floor(Math.random()*(this.maxSeconds-this.minSeconds+1))+this.minSeconds}sleep(e){return gte(this,void 0,void 0,function*(){return new Promise(r=>setTimeout(r,e*1e3))})}};var Wa=function(t,e,r,s){function i(n){return n instanceof r?n:new r(function(o){o(n)})}return new(r||(r=Promise))(function(n,o){function a(u){try{l(s.next(u))}catch(d){o(d)}}function c(u){try{l(s.throw(u))}catch(d){o(d)}}function l(u){u.done?n(u.value):i(u.value).then(a,c)}l((s=s.apply(t,e||[])).next())})},DB=class extends Error{constructor(e){super(`Unexpected HTTP response: ${e}`),this.httpStatusCode=e,Object.setPrototypeOf(this,new.target.prototype)}},Cte=process.platform==="win32",Q0t=process.platform==="darwin",z2e="actions/tool-cache";function fo(t,e,r,s){return Wa(this,void 0,void 0,function*(){e=e||ua.join(xte(),Ok.randomUUID()),yield Rl(ua.dirname(e)),T(`Downloading ${t}`),T(`Destination ${e}`);let i=3,n=Dk("TEST_DOWNLOAD_TOOL_RETRY_MIN_SECONDS",10),o=Dk("TEST_DOWNLOAD_TOOL_RETRY_MAX_SECONDS",20);return yield new PB(i,n,o).execute(()=>Wa(this,void 0,void 0,function*(){return yield V2e(t,e||"",r,s)}),c=>!(c instanceof DB&&c.httpStatusCode&&c.httpStatusCode<500&&c.httpStatusCode!==408&&c.httpStatusCode!==429))})}function V2e(t,e,r,s){return Wa(this,void 0,void 0,function*(){if(Fs.existsSync(e))throw new Error(`Destination file path ${e} already exists`);let i=new Ui(z2e,[],{allowRetries:!1});r&&(T("set auth"),s===void 0&&(s={}),s.authorization=r);let n=yield i.get(t,s);if(n.message.statusCode!==200){let u=new DB(n.message.statusCode);throw T(`Failed to download from "${t}". Code(${n.message.statusCode}) Message(${n.message.statusMessage})`),u}let o=Ete.promisify(yte.pipeline),c=Dk("TEST_DOWNLOAD_TOOL_RESPONSE_MESSAGE_FACTORY",()=>n.message)(),l=!1;try{return yield o(c,Fs.createWriteStream(e)),T("download complete"),l=!0,e}finally{if(!l){T("download failed");try{yield mB(e)}catch(u){T(`Failed to delete '${e}'. ${u.message}`)}}}})}function Ite(t,e){return Wa(this,arguments,void 0,function*(r,s,i="xz"){if(!r)throw new Error("parameter 'file' is required");s=yield Bte(s),T("Checking tar --version");let n="";yield Bn("tar --version",[],{ignoreReturnCode:!0,silent:!0,listeners:{stdout:u=>n+=u.toString(),stderr:u=>n+=u.toString()}}),T(n.trim());let o=n.toUpperCase().includes("GNU TAR"),a;i instanceof Array?a=i:a=[i],Ja()&&!i.includes("v")&&a.push("-v");let c=s,l=r;return Cte&&o&&(a.push("--force-local"),c=s.replace(/\\/g,"/"),l=r.replace(/\\/g,"/")),o&&(a.push("--warning=no-unknown-keyword"),a.push("--overwrite")),a.push("-C",c,"-f",l),yield Bn("tar",a),s})}function bte(t,e){return Wa(this,void 0,void 0,function*(){if(!t)throw new Error("parameter 'file' is required");return e=yield Bte(e),Cte?yield $2e(t,e):yield j2e(t,e),e})}function $2e(t,e){return Wa(this,void 0,void 0,function*(){let r=t.replace(/'/g,"''").replace(/"|\n|\r/g,""),s=e.replace(/'/g,"''").replace(/"|\n|\r/g,""),i=yield Ts("pwsh",!1);if(i){let o=["-NoLogo","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",["$ErrorActionPreference = 'Stop' ;","try { Add-Type -AssemblyLine truncated
`,uQt=/\u2014 (\S+) (\S+)\n/g;function hQt(t,e){let r=t.inclusionProof,s=CW.fromString(r.checkpoint.envelope),i=aD.fromString(s.note);if(!dQt(s,e))throw new lB.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"invalid checkpoint signature"});return i}function dQt(t,e){let r=Buffer.from(t.note,"utf-8");return t.signatures.some(s=>{let i=e.find(n=>E1e.crypto.bufferEqual(n.logID.subarray(0,4),s.keyHint)&&n.baseURL.match(s.name));return i?E1e.crypto.verify(r,i.publicKey,s.signature):!1})}var CW=class t{note;signatures;constructor(e,r){this.note=e,this.signatures=r}static fromString(e){if(!e.includes(EW))throw new lB.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"missing checkpoint separator"});let r=e.indexOf(EW),s=e.slice(0,r+1),n=e.slice(r+EW.length).matchAll(uQt),o=Array.from(n,a=>{let[,c,l]=a,u=Buffer.from(l,"base64");if(u.length<5)throw new lB.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"malformed checkpoint signature"});return{name:c,keyHint:u.subarray(0,4),signature:u.subarray(4)}});if(o.length===0)throw new lB.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"no signatures found in checkpoint"});return new t(s,o)}},aD=class t{origin;logSize;logHash;rest;constructor(e,r,s,i){this.origin=e,this.logSize=r,this.logHash=s,this.rest=i}static fromString(e){let r=e.trimEnd().split(`
`);if(r.length<3)throw new lB.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"too few lines in checkpoint header"});let s=r[0],i=BigInt(r[1]),n=Buffer.from(r[2],"base64"),o=r.slice(3);return new t(s,i,n,o)}};uB.LogCheckpoint=aD});var I1e=A(BW=>{"use strict";Object.defineProperty(BW,"__esModule",{value:!0});BW.verifyMerkleInclusion=AQt;var wW=ec(),IW=pi(),fQt=Buffer.from([0]),pQt=Buffer.from([1]);function AQt(t,e){let r=t.inclusionProof,s=BigInt(r.logIndex),i=BigInt(e.logSize);if(s<0n||s>=i)throw new IW.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:`invalid index: ${s}`});let{inner:n,border:o}=mQt(s,i);if(r.hashes.length!==n+o)throw new IW.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"invalid hash count"});let a=r.hashes.slice(0,n),c=r.hashes.slice(n),l=bQt(t.canonicalizedBody),u=yQt(gQt(l,a,s),c);if(!wW.crypto.bufferEqual(u,e.logHash))throw new IW.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"calculated root hash does not match inclusion proof"})}function mQt(t,e){let r=EQt(t,e),s=CQt(t>>BigInt(r));return{inner:r,border:s}}function gQt(t,e,r){return e.reduce((s,i,n)=>r>>BigInt(n)&BigInt(1)?bW(i,s):bW(s,i),t)}function yQt(t,e){return e.reduce((r,s)=>bW(s,r),t)}function EQt(t,e){return IQt(t^e-BigInt(1))}function CQt(t){return t.toString(2).split("1").length-1}function IQt(t){return t===0n?0:t.toString(2).length}function bW(t,e){return wW.crypto.digest("sha256",pQt,t,e)}function bQt(t){return wW.crypto.digest("sha256",fQt,t)}});var w1e=A(SW=>{"use strict";Object.defineProperty(SW,"__esModule",{value:!0});SW.verifyTLogSET=SQt;var b1e=ec(),wQt=pi(),BQt=PE();function SQt(t,e){if(!(0,BQt.filterTLogAuthorities)(e,{logID:t.logId.keyId,targetDate:new Date(Number(t.integratedTime)*1e3)}).some(i=>{let n=xQt(t),o=Buffer.from(b1e.json.canonicalize(n),"utf8"),a=t.inclusionPromise.signedEntryTimestamp;return b1e.crypto.verify(o,i.publicKey,a)}))throw new wQt.VerificationError({code:"TLOG_INCLUSION_PROMISE_ERROR",message:"inclusion promise could not be verified"})}function xQt(t){let{integratedTime:e,logIndex:r,logId:s,canonicalizedBody:i}=t;return{body:i.toString("base64"),integratedTime:Number(e),logIndex:Number(r),logID:s.keyId.toString("hex")}}});var S1e=A(cD=>{"use strict";Object.defineProperty(cD,"__esModule",{value:!0});cD.verifyTLogBody=_Qt;cD.verifyTLogInclusion=QQt;var B1e=$J(),RW=pi(),xW=m1e(),NW=g1e(),NQt=y1e(),RQt=C1e(),vQt=I1e(),TQt=w1e();function _Qt(t,e){let{kind:r,version:s}=t.kindVersion,i=JSON.parse(t.canonicalizedBody.toString("utf8"));if(r!==i.kind||s!==i.apiVersion)throw new RW.VerificationError({code:"TLOG_BODY_ERROR",message:`kind/version mismatch - expected: ${r}/${s}, received: ${i.kind}/${i.apiVersion}`});switch(r){case"dsse":if(s==xW.DSSE_API_VERSION_V1)return(0,xW.verifyDSSETLogBody)(i,e);{let n=B1e.Entry.fromJSON(i);return(0,xW.verifyDSSETLogBodyV2)(n,e)}case"intoto":return(0,NQt.verifyIntotoTLogBody)(i,e);case"hashedrekord":if(s==NW.HASHEDREKORD_API_VERSION_V1)return(0,NW.verifyHashedRekordTLogBody)(i,e);{let n=B1e.Entry.fromJSON(i);return(0,NW.verifyHashedRekordTLogBodyV2)(n,e)}default:throw new RW.VerificationError({code:"TLOG_BODY_ERROR",message:`unsupported kind: ${r}`})}}function QQt(t,e){let r=!1;if(PQt(t)&&((0,TQt.verifyTLogSET)(t,e),r=!0),OQt(t)){let s=(0,RQt.verifyCheckpoint)(t,e);(0,vQt.verifyMerkleInclusion)(t,s),r=!0}if(!r)throw new RW.VerificationError({code:"TLOG_MISSING_INCLUSION_ERROR",message:"inclusion could not be verified"})}function PQt(t){return t.inclusionPromise!==void 0}function OQt(t){return t.inclusionProof!==void 0}});var T1e=A(lD=>{"use strict";Object.defineProperty(lD,"__esModule",{value:!0});lD.Verifier=void 0;var DQt=require("util"),OE=pi(),x1e=h1e(),vW=d1e(),N1e=A1e(),R1e=S1e(),TW=class{trustMaterial;options;constructor(e,r={}){this.trustMaterial=e,this.options={ctlogThreshold:r.ctlogThreshold??1,tlogThreshold:r.tlogThreshold??1,timestampThreshold:r.timestampThreshold??r.tsaThreshold??1,tsaThreshold:0}}verify(e,r){let s=this.verifyTimestamps(e),i=this.verifySigningKey(e,s);return this.verifyTLogs(e),this.verifySignature(e,i),r&&this.verifyPolicy(r,i.identity||{}),i}verifyTimestamps(e){let r=[];for(let s of e.timestamps)switch(s.$case){case"timestamp-authority":r.push((0,N1e.getTSATimestamp)(s.timestamp,e.signature.signature,this.trustMaterial.timestampAuthorities));break;case"transparency-log":{let i=(0,N1e.getTLogTimestamp)(s.tlogEntry);i&&r.push(i);break}}if(v1e(r))throw new OE.VerificationError({code:"TIMESTAMP_ERROR",message:"duplicate timestamp"});if(r.length<this.options.timestampThreshold)throw new OE.VerificationError({code:"TIMESTAMP_ERROR",message:`expected ${this.options.timestampThreshold} timestamps, got ${r.length}`});return r.map(s=>s.timestamp)}verifySigningKey({key:e},r){switch(e.$case){case"public-key":return(0,x1e.verifyPublicKey)(e.hint,r,this.trustMaterial);case"certificate":{let s=(0,x1e.verifyCertificate)(e.certificate,r,this.trustMaterial);if(v1e(s.scts))throw new OE.Verifica Line truncated
Support boolean input list: \`true | True | TRUE | false | False | FALSE\``)}function E2(){return process.env.RUNNER_DEBUG==="1"}function ot(t){PD("debug",{},t)}function _m(t){process.stdout.write(t+Hie.EOL)}function xze(t){OD("group",t)}function Nze(){OD("endgroup")}function WC(t,e){return Sze(this,void 0,void 0,function*(){xze(t);let r;try{r=yield e()}finally{Nze()}return r})}var $ie=O(require("os"),1);function Hh(t){return t==null?"":typeof t=="string"||t instanceof String?t:JSON.stringify(t)}function C2(t){return Object.keys(t).length?{title:t.title,file:t.file,line:t.startLine,endLine:t.endLine,col:t.startColumn,endColumn:t.endColumn}:{}}function zh(t,e,r){let s=new I2(t,e,r);process.stdout.write(s.toString()+$ie.EOL)}function b2(t,e=""){zh(t,{},e)}var Vie="::",I2=class{constructor(e,r,s){e||(e="missing.command"),this.command=e,this.properties=r,this.message=s}toString(){let e=Vie+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let r=!0;for(let s in this.properties)if(this.properties.hasOwnProperty(s)){let i=this.properties[s];i&&(r?r=!1:e+=",",e+=`${s}=${vze(i)}`)}}return e+=`${Vie}${Rze(this.message)}`,e}};function Rze(t){return Hh(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}function vze(t){return Hh(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}var jie=O(require("crypto"),1),Ix=O(require("fs"),1),Cx=O(require("os"),1);function w2(t,e){let r=process.env[`GITHUB_${t}`];if(!r)throw new Error(`Unable to find environment variable for file command ${t}`);if(!Ix.existsSync(r))throw new Error(`Missing file at path: ${r}`);Ix.appendFileSync(r,`${Hh(e)}${Cx.EOL}`,{encoding:"utf8"})}function Jie(t,e){let r=`ghadelimiter_${jie.randomUUID()}`,s=Hh(e);if(t.includes(r))throw new Error(`Unexpected input: name should not contain the delimiter "${r}"`);if(s.includes(r))throw new Error(`Unexpected input: value should not contain the delimiter "${r}"`);return`${t}<<${r}${Cx.EOL}${s}${Cx.EOL}${r}`}var Zie=O(require("os"),1),ene=O(require("path"),1);var bx=O(af(),1),_ze=O(Fh(),1);var pc;(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"})(pc||(pc={}));var Yie;(function(t){t.Accept="accept",t.ContentType="content-type"})(Yie||(Yie={}));var Wie;(function(t){t.ApplicationJson="application/json"})(Wie||(Wie={}));var vOt=[pc.MovedPermanently,pc.ResourceMoved,pc.SeeOther,pc.TemporaryRedirect,pc.PermanentRedirect],TOt=[pc.BadGateway,pc.ServiceUnavailable,pc.GatewayTimeout];var Xie=require("os"),XC=require("fs"),B2=function(t,e,r,s){function i(n){return n instanceof r?n:new r(function(o){o(n)})}return new(r||(r=Promise))(function(n,o){function a(u){try{l(s.next(u))}catch(h){o(h)}}function c(u){try{l(s.throw(u))}catch(h){o(h)}}function l(u){u.done?n(u.value):i(u.value).then(a,c)}l((s=s.apply(t,e||[])).next())})},{access:Qze,appendFile:Pze,writeFile:Oze}=XC.promises,Kie="GITHUB_STEP_SUMMARY";var S2=class{constructor(){this._buffer=""}filePath(){return B2(this,void 0,void 0,function*(){if(this._filePath)return this._filePath;let e=process.env[Kie];if(!e)throw new Error(`Unable to find environment variable for $${Kie}. Check if your runtime environment supports job summaries.`);try{yield Qze(e,XC.constants.R_OK|XC.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,s={}){let i=Object.entries(s).map(([n,o])=>` ${n}="${o}"`).join("");return r?`<${e}${i}>${r}</${e}>`:`<${e}${i}>`}write(e){return B2(this,void 0,void 0,function*(){let r=!!e?.overwrite,s=yield this.filePath();return yield(r?Oze:Pze)(s,this._buffer,{encoding:"utf8"}),this.emptyBuffer()})}clear(){return B2(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.addELine truncated
Support boolean input list: \`true | True | TRUE | false | False | FALSE\``)}function rne(t){process.exitCode=N2.Failure,Mze(t)}function z(t){zh("debug",{},t)}function Mze(t,e={}){zh("error",C2(e),t instanceof Error?t.toString():t)}function Ro(t,e={}){zh("warning",C2(e),t instanceof Error?t.toString():t)}function j(t){process.stdout.write(t+Zie.EOL)}function Lze(t){b2("group",t)}function Uze(){b2("endgroup")}function Vh(t,e){return kze(this,void 0,void 0,function*(){Lze(t);let r;try{r=yield e()}finally{Uze()}return r})}function wx(t,e){if(process.env.GITHUB_STATE||"")return w2("STATE",Jie(t,e));zh("save-state",{name:t},Hh(e))}function sne(t){return process.env[`STATE_${t}`]||""}var NT=O(require("fs"),1),Rz=O(require("os"),1),vz=O(require("path"),1);var Y2=O(require("crypto"),1),Ks=O(require("fs"),1);var D5e=O(j2(),1);var Lx=O(require("os"),1),Ta=O(require("path"),1);var _o=O(j2(),1),joe=O(require("stream"),1),Joe=O(require("util"),1),W2=require("assert");var $oe=function(t,e,r,s){function i(n){return n instanceof r?n:new r(function(o){o(n)})}return new(r||(r=Promise))(function(n,o){function a(u){try{l(s.next(u))}catch(h){o(h)}}function c(u){try{l(s.throw(u))}catch(h){o(h)}}function l(u){u.done?n(u.value):i(u.value).then(a,c)}l((s=s.apply(t,e||[])).next())})},kx=class{constructor(e,r,s){if(e<1)throw new Error("max attempts should be greater than or equal to 1");if(this.maxAttempts=e,this.minSeconds=Math.floor(r),this.maxSeconds=Math.floor(s),this.minSeconds>this.maxSeconds)throw new Error("min seconds should be less than or equal to max seconds")}execute(e,r){return $oe(this,void 0,void 0,function*(){let s=1;for(;s<this.maxAttempts;){try{return yield e()}catch(n){if(r&&!r(n))throw n;_m(n.message)}let i=this.getSleepAmount();_m(`Waiting ${i} seconds before trying again`),yield this.sleep(i),s++}return yield e()})}getSleepAmount(){return Math.floor(Math.random()*(this.maxSeconds-this.minSeconds+1))+this.minSeconds}sleep(e){return $oe(this,void 0,void 0,function*(){return new Promise(r=>setTimeout(r,e*1e3))})}};var gc=function(t,e,r,s){function i(n){return n instanceof r?n:new r(function(o){o(n)})}return new(r||(r=Promise))(function(n,o){function a(u){try{l(s.next(u))}catch(h){o(h)}}function c(u){try{l(s.throw(u))}catch(h){o(h)}}function l(u){u.done?n(u.value):i(u.value).then(a,c)}l((s=s.apply(t,e||[])).next())})},Mx=class extends Error{constructor(e){super(`Unexpected HTTP response: ${e}`),this.httpStatusCode=e,Object.setPrototypeOf(this,new.target.prototype)}},Yoe=process.platform==="win32",XDt=process.platform==="darwin",M5e="actions/tool-cache";function Qo(t,e,r,s){return gc(this,void 0,void 0,function*(){e=e||Ta.join(tae(),Y2.randomUUID()),yield su(Ta.dirname(e)),ot(`Downloading ${t}`),ot(`Destination ${e}`);let i=3,n=J2("TEST_DOWNLOAD_TOOL_RETRY_MIN_SECONDS",10),o=J2("TEST_DOWNLOAD_TOOL_RETRY_MAX_SECONDS",20);return yield new kx(i,n,o).execute(()=>gc(this,void 0,void 0,function*(){return yield L5e(t,e||"",r,s)}),c=>!(c instanceof Mx&&c.httpStatusCode&&c.httpStatusCode<500&&c.httpStatusCode!==408&&c.httpStatusCode!==429))})}function L5e(t,e,r,s){return gc(this,void 0,void 0,function*(){if(Ks.existsSync(e))throw new Error(`Destination file path ${e} already exists`);let i=new HC(M5e,[],{allowRetries:!1});r&&(ot("set auth"),s===void 0&&(s={}),s.authorization=r);let n=yield i.get(t,s);if(n.message.statusCode!==200){let u=new Mx(n.message.statusCode);throw ot(`Failed to download from "${t}". Code(${n.message.statusCode}) Message(${n.message.statusMessage})`),u}let o=Joe.promisify(joe.pipeline),c=J2("TEST_DOWNLOAD_TOOL_RESPONSE_MESSAGE_FACTORY",()=>n.message)(),l=!1;try{return yield o(c,Ks.createWriteStream(e)),ot("download complete"),l=!0,e}finally{if(!l){ot("download failed");try{yield gx(e)}catch(u){ot(`Failed to delete '${e}'. ${u.message}`)}}}})}function Woe(t,e){return gc(this,arguments,void 0,function*(r,s,i="xz"){if(!r)throw new Error("parameter 'file' is required");s=yield Zoe(s),ot("Checking tar --version");let n="";yield qn("tar --version",[],{ignoreReturnCode:!0,silent:!0,listeners:{stdout:u=>n+=u.toString(),stderr:u=>n+=u.toString()}}),ot(n.trim());let o=n.toUpperCase().includes("GNU TAR"),a;i instanceof Array?a=i:a=[i],E2()&&!i.includes("v")&&a.push("-v");let c=s,l=r;return Yoe&&o&&(a.push("--force-local"),c=s.replace(/\\/g,"/"),l=r.replace(/\\/g,"/")),o&&(a.push("--warning=no-unknown-keyword"),a.push("--overwrite")),a.push("-C",c,"-f",l),yield qn("tar",a),s})}function Koe(t,e){return gc(this,void 0,void 0,function*(){if(!t)throw new Error("parameter 'file' is required");return e=yield Zoe(e),Yoe?yield U5e(t,e):yield F5e(t,e),e})}function U5e(t,e){return gc(this,void 0,void 0,function*(){let r=t.replace(/'/g,"''").replace(/"|\n|\r/g,""),s=e.replace(/'/g,"''").replace(/"|\n|\r/g,""),i=yield Ls("pwsh",!1);if(i){let o=["-NoLogo","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",["$ErrorActionPreference = 'Stop' ;","try { Add-Type -AssemblyName System.IO.Compression.ZipFile Line truncated
`),e=e.replace(/\r/g,`
`));let i=e.split(`
`).map(n=>n.trim());for(let n of i)!n||n.startsWith("#")||s.patterns.push(new TE(n));return s.searchPaths.push(...Uk(s.patterns)),s})}static stat(e,r,s){return Vk(this,void 0,void 0,function*(){let i;if(r.followSymbolicLinks)try{i=yield Pp.promises.stat(e.path)}catch(n){if(n.code==="ENOENT"){if(r.omitBrokenSymbolicLinks){T(`Broken symlink '${e.path}'`);return}throw new Error(`No information found for the path '${e.path}'. This may indicate a broken symbolic link.`)}throw n}else i=yield Pp.promises.lstat(e.path);if(i.isDirectory()&&r.followSymbolicLinks){let n=yield Pp.promises.realpath(e.path);for(;s.length>=e.level;)s.pop();if(s.some(o=>o===n)){T(`Symlink cycle detected for path '${e.path}' and realpath '${n}'`);return}s.push(n)}return i})}};var xqe=function(t,e,r,s){function i(n){return n instanceof r?n:new r(function(o){o(n)})}return new(r||(r=Promise))(function(n,o){function a(u){try{l(s.next(u))}catch(d){o(d)}}function c(u){try{l(s.throw(u))}catch(d){o(d)}}function l(u){u.done?n(u.value):i(u.value).then(a,c)}l((s=s.apply(t,e||[])).next())})};function Zte(t,e){return xqe(this,void 0,void 0,function*(){return yield UB.create(t,e)})}var rS=M(require("crypto"),1),kp=M(require("fs"),1),Vh=M(require("path"),1),zse=M(Gse(),1),Vse=M(require("util"),1);var LE;(function(t){t.Gzip="cache.tgz",t.Zstd="cache.tzst"})(LE||(LE={}));var hi;(function(t){t.Gzip="gzip",t.ZstdWithoutLong="zstd-without-long",t.Zstd="zstd"})(hi||(hi={}));var Nn;(function(t){t.GNU="gnu",t.BSD="bsd"})(Nn||(Nn={}));var eS=2,tS=5e3,dM=5e3,hM=`${process.env.PROGRAMFILES}\\Git\\usr\\bin\\tar.exe`,Hse=`${process.env.SYSTEMDRIVE}\\Windows\\System32\\tar.exe`,FE="cache.tar",fM="manifest.txt",Ubt=10*Math.pow(1024,3);var Op=function(t,e,r,s){function i(n){return n instanceof r?n:new r(function(o){o(n)})}return new(r||(r=Promise))(function(n,o){function a(u){try{l(s.next(u))}catch(d){o(d)}}function c(u){try{l(s.throw(u))}catch(d){o(d)}}function l(u){u.done?n(u.value):i(u.value).then(a,c)}l((s=s.apply(t,e||[])).next())})},wze=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={},s("next"),s("throw"),s("return"),r[Symbol.asyncIterator]=function(){return this},r);function s(n){r[n]=t[n]&&function(o){return new Promise(function(a,c){o=t[n](o),i(a,c,o.done,o.value)})}}function i(n,o,a,c){Promise.resolve(c).then(function(l){n({value:l,done:a})},o)}},Bze="1.0";function UE(){return Op(this,void 0,void 0,function*(){let t=process.platform==="win32",e=process.env.RUNNER_TEMP||"";if(!e){let s;t?s=process.env.USERPROFILE||"C:\\":process.platform==="darwin"?s="/Users":s="/home",e=Vh.join(s,"actions","temp")}let r=Vh.join(e,rS.randomUUID());return yield Rl(r),r})}function Xa(t){return kp.statSync(t).size}function AM(t){return Op(this,void 0,void 0,function*(){var e,r,s,i,n;let o=[],a=(n=process.env.GITHUB_WORKSPACE)!==null&&n!==void 0?n:process.cwd(),c=yield Zte(t.join(`
`),{implicitDescendants:!1});try{for(var l=!0,u=wze(c.globGenerator()),d;d=yield u.next(),e=d.done,!e;l=!0){i=d.value,l=!1;let f=Vh.relative(a,i).replace(new RegExp(`\\${Vh.sep}`,"g"),"/");T(`Matched: ${f}`),f===""?o.push("."):o.push(`${f}`)}}catch(h){r={error:h}}finally{try{!l&&!e&&(s=u.return)&&(yield s.call(u))}finally{if(r)throw r.error}}return o})}function qE(t){return Op(this,void 0,void 0,function*(){return Vse.promisify(kp.unlink)(t)})}function $se(t){return Op(this,arguments,void 0,function*(e,r=[]){let s="";r.push("--version"),T(`Checking ${e} ${r.join(" ")}`);try{yield Bn(`${e}`,r,{ignoreReturnCode:!0,silent:!0,listeners:{stdout:i=>s+=i.toString(),stderr:i=>s+=i.toString()}})}catch(i){T(i.message)}return s=s.trim(),T(s),s})}function GE(){return Op(this,void 0,void 0,function*(){let t=yield $se("zstd",["--quiet"]),e=zse.clean(t);return T(`zstd version: ${e}`),t===""?hi.Gzip:hi.ZstdWithoutLong})}function fd(t){return t===hi.Gzip?LE.Gzip:LE.Zstd}function jse(){return Op(this,void 0,void 0,function*(){return kp.existsSync(hM)?hM:(yield $se("tar")).toLowerCase().includes("gnu tar")?Ts("tar"):""})}function pM(t,e){if(e===void 0)throw Error(`Expected ${t} but value was undefiend`);return e}function Mp(t,e,r=!1){let s=t.slice();return e&&s.push(e),process.platform==="win32"&&!r&&s.push("windows-only"),s.push(Bze),rS.createHash("sha256").update(s.join("|")).digest("hex")}function Jse(){let t=process.env.ACTIONS_RUNTIME_TOKEN;if(!t)throw new Error("Unable to get the ACTIONS_RUNTIME_TOKEN env variable");return t}var fm=M(require("fs"),1),Ele=require("url");var Za=class extends Error{constructor(e){super(e),this.name="AbortError"}};var Yse=require("node:os"),Wse=M(require("node:util"),1),Kse=M(require("node:process"),1);function Xse(t,...e){Kse.default.stderr.write(`${Wse.default.format(t,...e)}${Yse.EOL}`)}var Zse=typeof process<"u"&&process.env&&process.env.DEBUG||void 0,tie,mM=[],gM=[],iS=[];Zse&&yM(Zse);var rie=Object.assign(t=>sie(t),{enable:yM,enabled:EM,disable:Sze,log:Xse});function yM(t){tie=t,mM=[],gM=[];let e=t.split(",").map(r=>r.trim());for(let r of e)r.startsWith("-")?gM.push(r.substring(1)):mM.push(r);for(let r of iS)r.enabled=EM(r.namespace)}function EM(t){if(t.endsWith("*"))return!0;for(let e of gM)if(eie(t,e))return!1;for(let e of mM)if(eie(t,e))return!0;return!1}function eie(t,e){if(e.indexOf("*")===-1)return t===e;let r=e;if(e.indexOf("**")!==-1){let h=[],f="";for(let A of e)A==="*"&&f==="*"||(f=A,h.push(A));r=h.join("")}let s=0,i=0,n=r.length,o=t.length,a=-1,c=-1;for(;s<o&&i<n;)if(r[i]==="*"){if(a=i,i++,i===n)return!0;for(;t[s]!==r[i];)if(s++,s===o)return!1;c=s,s++,i++;continue}else if(r[i]===t[s])i++,s++;else if(a>=0){if(i=a+1,s=c+1,s===o)return!1;for(;t[s]!==r[i];)if(s++,s===o)return!1;c=s,s++,i++;continue}else return!1;let l=s===t.length,u=i===r.length,d=i===r.length-1&&r[i]==="*";return l&&(u||d)}function Sze(){let t=tie||"";return yM(""),t}function sie(t){let e=Object.assign(r,{enabled:EM(t),destroy:xze,log:rie.log,namespace:t,extend:Nze});function r(...s){e.enabled&&(s.length>0&&(s[0]=`${t} ${s[0]}`),e.log(...s))}return iS.push(e),e}function xze(){let t=iS.indexOf(this);return t>=0?(iS.splice(t,1),!0):!1}function Nze(t){let e=sie(`${this.namespace}:${t}`);return e.log=this.log,e}var Lp=rie;var CM=["verbose","info","warning","error"],iie={verbose:400,info:300,warning:200,error:100};function nie(t,e){e.log=(...r)=>{t.log(...r)}}function oie(t){return CM.includes(t)}function nS(t){let e=new Set,r=typeof process<"u"&&process.env&&process.env[t.logLevelEnvVarName]||void 0,s,i=Lp(t.namespace);i.log=(...u)=>{Lp.log(...u)};function n(u){if(u&&!oie(u))throw new Error(`Unknown log level '${u}'. Acceptable values: ${CM.join(",")}`);s=u;let d=[];for(let h of e)o(h)&&d.push(h.namespace);Lp.enable(d.join(","))}r&&(oie(r)?n(r):console.error(`${t.logLevelEnvVarName} set to unknown log level '${r}'; logging is not enabled. Acceptable values: ${CM.join(", ")}.`));function o(u){return!!(s&&iie[u.level]<=iie[s])}function a(u,d){let h=Object.assign(u.extend(d),{level:d});if(nie(u,h),o(h)){let f=Lp.disable();Lp.enable(f+","+h.namespace)}return e.add(h),h}function c(){return s}function l(u){let d=i.extend(u);return nie(i,d),{error:a(d,"error"),warning:a(d,"warning"),info:a(d,"info"),verbose:a(d,"verbose")}}return{setLogLevel:n,getLogLevel:c,createClientLogger:l,logger:i}}var aie=nS({logLevelEnvVarName:"TYPESPEC_RUNTIME_LOG_LEVEL",namespace:"typeSpecRuntime"}),Rze=aie.logger;function HE(t){return aie.createClientLogger(t)}function oS(t){return t.toLowerCase()}function*Tze(t){for(let e of t.values())yield[e.name,e.value]}var IM=class{_headersMap;constructor(e){if(this._headersMap=new Map,e)for(let r of Object.keys(e))this.set(r,e[r])}set(e,r){this._headersMap.set(oS(e),{name:e,value:String(r).trim()})}get(e){return this._headersMap.get(oS(e))?.value}has(e){return this._headersMap.has(oS(e))}delete(e){this._headersMap.delete(oS(e))}toJSON(e={}){let r={};if(e.preserveCase)for(let s of this._headersMap.value Line truncated
${_ze.sanitize({...this,request:{...this.request,agent:s},response:this.response})}`,enumerable:!1}),Object.setPrototypeOf(this,t.prototype)}};function lS(t){return t instanceof fi?!0:jh(t)&&t.name==="RestError"}function qi(t,e){return Buffer.from(t,e)}var uS=M(require("node:http"),1),dS=M(require("node:https"),1),SM=M(require("node:zlib"),1),hie=require("node:stream");var mo=HE("ts-http-runtime");var Pze={};function zE(t){return t&&typeof t.pipe=="function"}function die(t){return t.readable===!1?Promise.resolve():new Promise(e=>{let r=()=>{e(),t.removeListener("close",r),t.removeListener("end",r),t.removeListener("error",r)};t.on("close",r),t.on("end",r),t.on("error",r)})}function fie(t){return t&&typeof t.byteLength=="number"}var hS=class extends hie.Transform{loadedBytes=0;progressCallback;_transform(e,r,s){this.push(e),this.loadedBytes+=e.length;try{this.progressCallback({loadedBytes:this.loadedBytes}),s()}catch(i){s(i)}}constructor(e){super(),this.progressCallback=e}},xM=class{cachedHttpAgent;cachedHttpsAgents=new WeakMap;async sendRequest(e){let r=new AbortController,s;if(e.abortSignal){if(e.abortSignal.aborted)throw new Za("The operation was aborted. Request has already been canceled.");s=l=>{l.type==="abort"&&r.abort()},e.abortSignal.addEventListener("abort",s)}let i;e.timeout>0&&(i=setTimeout(()=>{let l=new fa;mo.info(`request to '${l.sanitizeUrl(e.url)}' timed out. canceling...`),r.abort()},e.timeout));let n=e.headers.get("Accept-Encoding"),o=n?.includes("gzip")||n?.includes("deflate"),a=typeof e.body=="function"?e.body():e.body;if(a&&!e.headers.has("Content-Length")){let l=Mze(a);l!==null&&e.headers.set("Content-Length",l)}let c;try{if(a&&e.onUploadProgress){let A=e.onUploadProgress,p=new hS(A);p.on("error",E=>{mo.error("Error in upload progress",E)}),zE(a)?a.pipe(p):p.end(a),a=p}let l=await this.makeRequest(e,r,a);i!==void 0&&clearTimeout(i);let u=Dze(l),h={status:l.statusCode??0,headers:u,request:e};if(e.method==="HEAD")return l.resume(),h;c=o?Oze(l,u):l;let f=e.onDownloadProgress;if(f){let A=new hS(f);A.on("error",p=>{mo.error("Error in download progress",p)}),c.pipe(A),c=A}return e.streamResponseStatusCodes?.has(Number.POSITIVE_INFINITY)||e.streamResponseStatusCodes?.has(h.status)?h.readableStreamBody=c:h.bodyAsText=await kze(c),h}finally{if(e.abortSignal&&s){let l=Promise.resolve();zE(a)&&(l=die(a));let u=Promise.resolve();zE(c)&&(u=die(c)),Promise.all([l,u]).then(()=>{s&&e.abortSignal?.removeEventListener("abort",s)}).catch(d=>{mo.warning("Error when cleaning up abortListener on httpRequest",d)})}}}makeRequest(e,r,s){let i=new URL(e.url),n=i.protocol!=="https:";if(n&&!e.allowInsecureConnection)throw new Error(`Cannot connect to ${e.url} while allowInsecureConnection is false.`);let a={agent:e.agent??this.getOrCreateAgent(e,n),hostname:i.hostname,path:`${i.pathname}${i.search}`,port:i.port,method:e.method,headers:e.headers.toJSON({preserveCase:!0}),...e.requestOverrides};return new Promise((c,l)=>{let u=n?uS.default.request(a,c):dS.default.request(a,c);u.once("error",d=>{l(new fi(d.message,{code:d.code??fi.REQUEST_SEND_ERROR,request:e}))}),r.signal.addEventListener("abort",()=>{let d=new Za("The operation was aborted. Rejecting from abort signal callback while making request.");u.destroy(d),l(d)}),s&&zE(s)?s.pipe(u):s?typeof s=="string"||Buffer.isBuffer(s)?u.end(s):fie(s)?u.end(ArrayBuffer.isView(s)?Buffer.from(s.buffer):Buffer.from(s)):(mo.error("Unrecognized body type",s),l(new fi("Unrecognized body type"))):u.end()})}getOrCreateAgent(e,r){let s=e.disableKeepAlive;if(r)return s?uS.default.globalAgent:(this.cachedHttpAgent||(this.cachedHttpAgent=new uS.default.Agent({keepAlive:!0})),this.cachedHttpAgent);{if(s&&!e.tlsSettings)return dS.default.globalAgent;let i=e.tlsSettings??Pze,n=this.cachedHttpsAgents.get(i);return n&&n.options.keepAlive===!s||(mo.info("No cached TLS Agent exist, creating a new Agent"),n=new dS.default.Agent({keepAlive:!s,...i}),this.cachedHttpsAgents.set(i,n)),n}}};function Dze(t){let e=Rn();for(let r of Object.keys(t.headers)){let s=t.headers[r];Array.isArray(s)?s.length>0&&e.set(r,s[0]):s&&e.set(r,s)}return e}function Oze(t,e){let r=e.get("Content-Encoding");if(r==="gzip"){let s=SM.default.createGunzip();return t.pipe(s),s}else if(r==="deflate"){let s=SM.default.createInflate();return t.pipe(s),s}return t}function kze(t){return new Promise((e,r)=>{let s=[];t.on("data",i=>{Buffer.isBuffer(i)?s.push(i):s.push(Buffer.from(i))}),t.on("end",()=>{e(Buffer.concat(s).toString("utf8"))}),t.on("error",i=>{i&&i?.name==="AbortError"?r(i):r(new fi(`Error reading response as text: ${i.message}`,{code:fi.PARSE_ERROR}))})})}function Mze(t){return t?Buffer.isBuffer(t)?t.length:zE(t)?null:fie(t)?t.byteLength:typeof t=="string"?Buffer.from(t).length:null:0}function Aie(){return new xM}function fS(){return Aie()}var NM="logPolicy";function AS(t={}){let e=t.logger??mo.info,r=new fa({additionalAllowedHeaderNames:t.additionalAllowedHeaderNames,additionalAllowedQueryParameters:t.additional Line truncated
`;return e}function p$e(t){return t instanceof Uint8Array?t.byteLength:OS(t)?t.size===-1?void 0:t.size:void 0}function m$e(t){let e=0;for(let r of t){let s=p$e(r);if(s===void 0)return;e+=s}return e}async function g$e(t,e,r){let s=[qi(`--${r}`,"utf-8"),...e.flatMap(n=>[qi(`\r
`,"utf-8"),qi(A$e(n.headers),"utf-8"),qi(`\r
`,"utf-8"),n.body,qi(`\r
--${r}`,"utf-8")]),qi(`--\r
`).map(n=>n.trim());for(let n of i)!n||n.startsWith("#")||s.patterns.push(new fI(n));return s.searchPaths.push(...nU(s.patterns)),s})}static stat(e,r,s){return uU(this,void 0,void 0,function*(){let i;if(r.followSymbolicLinks)try{i=yield Fm.promises.stat(e.path)}catch(n){if(n.code==="ENOENT"){if(r.omitBrokenSymbolicLinks){ot(`Broken symlink '${e.path}'`);return}throw new Error(`No information found for the path '${e.path}'. This may indicate a broken symbolic link.`)}throw n}else i=yield Fm.promises.lstat(e.path);if(i.isDirectory()&&r.followSymbolicLinks){let n=yield Fm.promises.realpath(e.path);for(;s.length>=e.level;)s.pop();if(s.some(o=>o===n)){ot(`Symlink cycle detected for path '${e.path}' and realpath '${n}'`);return}s.push(n)}return i})}};var N$e=function(t,e,r,s){function i(n){return n instanceof r?n:new r(function(o){o(n)})}return new(r||(r=Promise))(function(n,o){function a(u){try{l(s.next(u))}catch(h){o(h)}}function c(u){try{l(s.throw(u))}catch(h){o(h)}}function l(u){u.done?n(u.value):i(u.value).then(a,c)}l((s=s.apply(t,e||[])).next())})};function kae(t,e){return N$e(this,void 0,void 0,function*(){return yield zx.create(t,e)})}var oN=O(require("crypto"),1),Hm=O(require("fs"),1),qf=O(require("path"),1),Nle=O(Sle(),1),Rle=O(require("util"),1);var bI;(function(t){t.Gzip="cache.tgz",t.Zstd="cache.tzst"})(bI||(bI={}));var Bi;(function(t){t.Gzip="gzip",t.ZstdWithoutLong="zstd-without-long",t.Zstd="zstd"})(Bi||(Bi={}));var Hn;(function(t){t.GNU="gnu",t.BSD="bsd"})(Hn||(Hn={}));var iN=2,nN=5e3,TU=5e3,_U=`${process.env.PROGRAMFILES}\\Git\\usr\\bin\\tar.exe`,xle=`${process.env.SYSTEMDRIVE}\\Windows\\System32\\tar.exe`,wI="cache.tar",QU="manifest.txt",VMt=10*Math.pow(1024,3);var Gm=function(t,e,r,s){function i(n){return n instanceof r?n:new r(function(o){o(n)})}return new(r||(r=Promise))(function(n,o){function a(u){try{l(s.next(u))}catch(h){o(h)}}function c(u){try{l(s.throw(u))}catch(h){o(h)}}function l(u){u.done?n(u.value):i(u.value).then(a,c)}l((s=s.apply(t,e||[])).next())})},BJe=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={},s("next"),s("throw"),s("return"),r[Symbol.asyncIterator]=function(){return this},r);function s(n){r[n]=t[n]&&function(o){return new Promise(function(a,c){o=t[n](o),i(a,c,o.done,o.value)})}}function i(n,o,a,c){Promise.resolve(c).then(function(l){n({value:l,done:a})},o)}},SJe="1.0";function BI(){return Gm(this,void 0,void 0,function*(){let t=process.platform==="win32",e=process.env.RUNNER_TEMP||"";if(!e){let s;t?s=process.env.USERPROFILE||"C:\\":process.platform==="darwin"?s="/Users":s="/home",e=qf.join(s,"actions","temp")}let r=qf.join(e,oN.randomUUID());return yield su(r),r})}function Cc(t){return Hm.statSync(t).size}function PU(t){return Gm(this,void 0,void 0,function*(){var e,r,s,i,n;let o=[],a=(n=process.env.GITHUB_WORKSPACE)!==null&&n!==void 0?n:process.cwd(),c=yield kae(t.join(`
`),{implicitDescendants:!1});try{for(var l=!0,u=BJe(c.globGenerator()),h;h=yield u.next(),e=h.done,!e;l=!0){i=h.value,l=!1;let f=qf.relative(a,i).replace(new RegExp(`\\${qf.sep}`,"g"),"/");se(`Matched: ${f}`),f===""?o.push("."):o.push(`${f}`)}}catch(d){r={error:d}}finally{try{!l&&!e&&(s=u.return)&&(yield s.call(u))}finally{if(r)throw r.error}}return o})}function SI(t){return Gm(this,void 0,void 0,function*(){return Rle.promisify(Hm.unlink)(t)})}function vle(t){return Gm(this,arguments,void 0,function*(e,r=[]){let s="";r.push("--version"),se(`Checking ${e} ${r.join(" ")}`);try{yield qn(`${e}`,r,{ignoreReturnCode:!0,silent:!0,listeners:{stdout:i=>s+=i.toString(),stderr:i=>s+=i.toString()}})}catch(i){se(i.message)}return s=s.trim(),se(s),s})}function xI(){return Gm(this,void 0,void 0,function*(){let t=yield vle("zstd",["--quiet"]),e=Nle.clean(t);return se(`zstd version: ${e}`),t===""?Bi.Gzip:Bi.ZstdWithoutLong})}function Kh(t){return t===Bi.Gzip?bI.Gzip:bI.Zstd}function Tle(){return Gm(this,void 0,void 0,function*(){return Hm.existsSync(_U)?_U:(yield vle("tar")).toLowerCase().includes("gnu tar")?Ls("tar"):""})}function OU(t,e){if(e===void 0)throw Error(`Expected ${t} but value was undefiend`);return e}function zm(t,e,r=!1){let s=t.slice();return e&&s.push(e),process.platform==="win32"&&!r&&s.push("windows-only"),s.push(SJe),oN.createHash("sha256").update(s.join("|")).digest("hex")}function _le(){let t=process.env.ACTIONS_RUNTIME_TOKEN;if(!t)throw new Error("Unable to get the ACTIONS_RUNTIME_TOKEN env variable");return t}var RI=O(require("http"),1),MU=O(require("https"),1);function DU(t){let e=t.protocol==="https:";if(xJe(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 cN(r)}catch{if(!r.startsWith("http://")&&!r.startsWith("https://"))return new cN(`http://${r}`)}else return}function xJe(t){if(!t.hostname)return!1;let e=t.hostname;if(NJe(e))return!0;let r=process.env.no_proxy||process.env.NO_PROXY||"";if(!r)return!1;let s;t.port?s=Number(t.port):t.protocol==="http:"?s=80:t.protocol==="https:"&&(s=443);let i=[t.hostname.toUpperCase()];typeof s=="number"&&i.push(`${i[0]}:${s}`);for(let n of r.split(",").map(o=>o.trim().toUpperCase()).filter(o=>o))if(n==="*"||i.some(o=>o===n||o.endsWith(`.${n}`)||n.startsWith(".")&&o.endsWith(`${n}`)))return!0;return!1}function NJe(t){let e=t.toLowerCase();return e==="localhost"||e.startsWith("127.")||e.startsWith("[::1]")||e.startsWith("[0:0:0:0:0:0:0:1]")}var cN=class extends URL{constructor(e,r){super(e,r),this._decodedUsername=decodeURIComponent(super.username),this._decodedPassword=decodeURIComponent(super.password)}get username(){return this._decodedUsername}get password(){return this._decodedPassword}};var Xh=O(af(),1),Qle=O(Fh(),1),Qr=function(t,e,r,s){function i(n){return n instanceof r?n:new r(function(o){o(n)})}return new(r||(r=Promise))(function(n,o){function a(u){try{l(s.next(u))}catch(h){o(h)}}function c(u){try{l(s.throw(u))}catch(h){o(h)}}function l(u){u.done?n(u.value):i(u.value).then(a,c)}l((s=s.apply(t,e||[])).next())})},mr;(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"})(mr||(mr={}));var Si;(function(t){t.Accept="accept",t.ContentType="content-type"})(Si||(Si={}));var au;(function(t){t.ApplicationJson="application/json"})(au||(au={}));var vJe=[mr.MovedPermanently,mr.ResourceMoved,mr.SeeOther,mr.TemporaryRedirect,mr.PermanentRedirect],TJe=[mr.BadGateway,mr.ServiceUnavailable,mr.GatewayTimeout],_Je=["OPTIONS","GET","DELETE","HEAD"],QJe=10,PJe=5,Ic=class t extends Error{constructor(e,r){super(e),this.name="HttpClientError",this.statusCode=r,Object.setPrototypeOf(this,t.prototype)}},kU=class{constructor(e){this.message=e}readBody(){return Qr(this,void 0,void 0,function*(){return new Promise(e=>Qr(this,void 0,void 0,function*(){let r=Buffer.alloc(0);this.message.on("data",s=>{r=Buffer.concat([r,s])}),this.message.on("end",()=>{e(r.toString())})}))})}readBodyBuffer(){return Qr(this,void 0,void 0,f Line truncated
${GJe.sanitize({...this,request:{...this.request,agent:s},response:this.response})}`,enumerable:!1}),Object.setPrototypeOf(this,t.prototype)}};function pN(t){return t instanceof xi?!0:Hf(t)&&t.name==="RestError"}function sn(t,e){return Buffer.from(t,e)}var AN=O(require("node:http"),1),mN=O(require("node:https"),1),jU=O(require("node:zlib"),1),Wle=require("node:stream");var Do=vI("ts-http-runtime");var HJe={};function TI(t){return t&&typeof t.pipe=="function"}function Yle(t){return t.readable===!1?Promise.resolve():new Promise(e=>{let r=()=>{e(),t.removeListener("close",r),t.removeListener("end",r),t.removeListener("error",r)};t.on("close",r),t.on("end",r),t.on("error",r)})}function Kle(t){return t&&typeof t.byteLength=="number"}var gN=class extends Wle.Transform{loadedBytes=0;progressCallback;_transform(e,r,s){this.push(e),this.loadedBytes+=e.length;try{this.progressCallback({loadedBytes:this.loadedBytes}),s()}catch(i){s(i)}}constructor(e){super(),this.progressCallback=e}},JU=class{cachedHttpAgent;cachedHttpsAgents=new WeakMap;async sendRequest(e){let r=new AbortController,s;if(e.abortSignal){if(e.abortSignal.aborted)throw new bc("The operation was aborted. Request has already been canceled.");s=l=>{l.type==="abort"&&r.abort()},e.abortSignal.addEventListener("abort",s)}let i;e.timeout>0&&(i=setTimeout(()=>{let l=new Oa;Do.info(`request to '${l.sanitizeUrl(e.url)}' timed out. canceling...`),r.abort()},e.timeout));let n=e.headers.get("Accept-Encoding"),o=n?.includes("gzip")||n?.includes("deflate"),a=typeof e.body=="function"?e.body():e.body;if(a&&!e.headers.has("Content-Length")){let l=jJe(a);l!==null&&e.headers.set("Content-Length",l)}let c;try{if(a&&e.onUploadProgress){let p=e.onUploadProgress,m=new gN(p);m.on("error",E=>{Do.error("Error in upload progress",E)}),TI(a)?a.pipe(m):m.end(a),a=m}let l=await this.makeRequest(e,r,a);i!==void 0&&clearTimeout(i);let u=zJe(l),d={status:l.statusCode??0,headers:u,request:e};if(e.method==="HEAD")return l.resume(),d;c=o?VJe(l,u):l;let f=e.onDownloadProgress;if(f){let p=new gN(f);p.on("error",m=>{Do.error("Error in download progress",m)}),c.pipe(p),c=p}return e.streamResponseStatusCodes?.has(Number.POSITIVE_INFINITY)||e.streamResponseStatusCodes?.has(d.status)?d.readableStreamBody=c:d.bodyAsText=await $Je(c),d}finally{if(e.abortSignal&&s){let l=Promise.resolve();TI(a)&&(l=Yle(a));let u=Promise.resolve();TI(c)&&(u=Yle(c)),Promise.all([l,u]).then(()=>{s&&e.abortSignal?.removeEventListener("abort",s)}).catch(h=>{Do.warning("Error when cleaning up abortListener on httpRequest",h)})}}}makeRequest(e,r,s){let i=new URL(e.url),n=i.protocol!=="https:";if(n&&!e.allowInsecureConnection)throw new Error(`Cannot connect to ${e.url} while allowInsecureConnection is false.`);let a={agent:e.agent??this.getOrCreateAgent(e,n),hostname:i.hostname,path:`${i.pathname}${i.search}`,port:i.port,method:e.method,headers:e.headers.toJSON({preserveCase:!0}),...e.requestOverrides};return new Promise((c,l)=>{let u=n?AN.default.request(a,c):mN.default.request(a,c);u.once("error",h=>{l(new xi(h.message,{code:h.code??xi.REQUEST_SEND_ERROR,request:e}))}),r.signal.addEventListener("abort",()=>{let h=new bc("The operation was aborted. Rejecting from abort signal callback while making request.");u.destroy(h),l(h)}),s&&TI(s)?s.pipe(u):s?typeof s=="string"||Buffer.isBuffer(s)?u.end(s):Kle(s)?u.end(ArrayBuffer.isView(s)?Buffer.from(s.buffer):Buffer.from(s)):(Do.error("Unrecognized body type",s),l(new xi("Unrecognized body type"))):u.end()})}getOrCreateAgent(e,r){let s=e.disableKeepAlive;if(r)return s?AN.default.globalAgent:(this.cachedHttpAgent||(this.cachedHttpAgent=new AN.default.Agent({keepAlive:!0})),this.cachedHttpAgent);{if(s&&!e.tlsSettings)return mN.default.globalAgent;let i=e.tlsSettings??HJe,n=this.cachedHttpsAgents.get(i);return n&&n.options.keepAlive===!s||(Do.info("No cached TLS Agent exist, creating a new Agent"),n=new mN.default.Agent({keepAlive:!s,...i}),this.cachedHttpsAgents.set(i,n)),n}}};function zJe(t){let e=zn();for(let r of Object.keys(t.headers)){let s=t.headers[r];Array.isArray(s)?s.length>0&&e.set(r,s[0]):s&&e.set(r,s)}return e}function VJe(t,e){let r=e.get("Content-Encoding");if(r==="gzip"){let s=jU.default.createGunzip();return t.pipe(s),s}else if(r==="deflate"){let s=jU.default.createInflate();return t.pipe(s),s}return t}function $Je(t){return new Promise((e,r)=>{let s=[];t.on("data",i=>{Buffer.isBuffer(i)?s.push(i):s.push(Buffer.from(i))}),t.on("end",()=>{e(Buffer.concat(s).toString("utf8"))}),t.on("error",i=>{i&&i?.name==="AbortError"?r(i):r(new xi(`Error reading response as text: ${i.message}`,{code:xi.PARSE_ERROR}))})})}function jJe(t){return t?Buffer.isBuffer(t)?t.length:TI(t)?null:Kle(t)?t.byteLength:typeof t=="string"?Buffer.from(t).length:null:0}function Xle(){return new JU}function yN(){return Xle()}var YU="logPolicy";function EN(t={}){let e=t.logger??Do.info,r=new Oa({additionalAllowedHeaderNames:t.additionalAllowedHeaderNames,additionalAllowedQueryParameters:t.additional Line truncated
`;return e}function S9e(t){return t instanceof Uint8Array?t.byteLength:FN(t)?t.size===-1?void 0:t.size:void 0}function x9e(t){let e=0;for(let r of t){let s=S9e(r);if(s===void 0)return;e+=s}return e}async function N9e(t,e,r){let s=[sn(`--${r}`,"utf-8"),...e.flatMap(n=>[sn(`\r
`,"utf-8"),sn(B9e(n.headers),"utf-8"),sn(`\r
`,"utf-8"),n.body,sn(`\r
--${r}`,"utf-8")]),sn(`--\r
\r
`,"utf-8")],i=m$e(s);i&&t.headers.set("Content-Length",i),t.body=await pne(s)}var JE="multipartPolicy",y$e=70,E$e=new Set("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'()+,-./:=?");function C$e(t){if(t.length>y$e)throw new Error(`Multipart boundary "${t}" exceeds maximum length of 70 characters`);if(Array.from(t).some(e=>!E$e.has(e)))throw new Error(`Multipart boundary "${t}" contains invalid characters`)}function MS(){return{name:JE,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,s=t.headers.get("Content-Type")??"multipart/mixed",i=s.match(/^(multipart\/[^ ;]+)(?:; *boundary=(.+))?$/);if(!i)throw new Error(`Got multipart request body, but content-type header was not multipart: ${s}`);let[,n,o]=i;if(o&&r&&o!==r)throw new Error(`Multipart boundary was specified as ${o} in the header, but got ${r} in the request body`);return r??=o,r?C$e(r):r=f$e(),t.headers.set("Content-Type",`${n}; boundary=${r}`),await g$e(t,t.multipartBody.parts,r),t.multipartBody=void 0,e(t)}}}function LS(){return cS()}var mne=nS({logLevelEnvVarName:"AZURE_LOG_LEVEL",namespace:"azure"}),wxt=mne.logger;function rc(t){return mne.createClientLogger(t)}var sc=rc("core-rest-pipeline");function $M(t={}){return AS({logger:sc.info,...t})}var jM=pS;function JM(t={}){return mS(t)}var FS=M(require("node:os"),1),US=M(require("node:process"),1);function gne(){return"User-Agent"}async function yne(t){if(US.default&&US.default.versions){let e=`${FS.default.type()} ${FS.default.release()}; ${FS.default.arch()}`,r=US.default.versions;r.bun?t.set("Bun",`${r.bun} (${e})`):r.deno?t.set("Deno",`${r.deno} (${e})`):r.node&&t.set("Node",`${r.node} (${e})`)}}var qS="1.22.2";function R$e(t){let e=[];for(let[r,s]of t){let i=s?`${r}/${s}`:r;e.push(i)}return e.join(" ")}function Ene(){return gne()}async function GS(t){let e=new Map;e.set("core-rest-pipeline",qS),await yne(e);let r=R$e(e);return t?`${t} ${r}`:r}var Cne=Ene(),Ine="userAgentPolicy";function YM(t={}){let e=GS(t.userAgentPrefix);return{name:Ine,async sendRequest(r,s){return r.headers.has(Cne)||r.headers.set(Cne,await e),s(r)}}}var _n=class extends Error{constructor(e){super(e),this.name="AbortError"}};function WM(t,e){let{cleanupBeforeAbort:r,abortSignal:s,abortErrorMsg:i}=e??{};return new Promise((n,o)=>{function a(){o(new _n(i??"The operation was aborted."))}function c(){s?.removeEventListener("abort",l)}function l(){r?.(),c(),a()}if(s?.aborted)return a();try{t(u=>{c(),n(u)},u=>{c(),o(u)})}catch(u){o(u)}s?.addEventListener("abort",l)})}var P$e="The delay was aborted.";function YE(t,e){let r,{abortSignal:s,abortErrorMsg:i}=e??{};return WM(n=>{r=setTimeout(n,t)},{cleanupBeforeAbort:()=>clearTimeout(r),abortSignal:s,abortErrorMsg:i??P$e})}function pd(t){if(jh(t))return t.message;{let e;try{typeof t=="object"&&t?e=JSON.stringify(t):e=String(t)}catch{e="[unable to stringify input]"}return`Unknown error ${e}`}}function bne(t){return jh(t)}function Vp(){return $h()}var Ct=Wh;var wne=Symbol("rawContent");function XM(t){return typeof t[wne]=="function"}function Bne(t){return XM(t)?t[wne]():t}var HS=JE;function ZM(){let t=MS();return{name:HS,sendRequest:async(e,r)=>{if(e.multipartBody)for(let s of e.multipartBody.parts)XM(s.body)&&(s.body=Bne(s.body));return t.sendRequest(e,r)}}}var eL=gS;function tL(){return yS()}function rL(t={}){return IS(t)}function sL(){return bS()}function md(t){return qM(t)}function iL(t,e){return _S(t,e)}var Sne="setClientRequestIdPolicy";function nL(t="x-ms-client-request-id"){return{name:Sne,async sendRequest(e,r){return e.headers.has(t)||e.headers.set(t,e.requestId),r(e)}}}function oL(t){return PS(t)}function aL(t){return DS(t)}var $p={span:Symbol.for("@azure/core-tracing span"),namespace:Symbol.for("@azure/core-tracing namespace")};function xne(t={}){let e=new cL(t.parentContext);return t.span&&(e=e.setValue($p.span,t.span)),t.namespace&&(e=e.setValue($p.namespace,t.namespace)),e}var cL=class t{_contextMap;constructor(e){this._contextMap=e instanceof t?new Map(e._contextMap):new Map}setValue(e,r){let s=new t(this);return s._contextMap.set(e,r),s}getValue(e){return this._contextMap.get(e)}deleteValue(e){let r=new t(this);return r._contextMap.delete(e),r}};var Rne=M(Nne(),1),VS=Rne.state;function D$e(){return{end:()=>{},isRecording:()=>!1,recordException:()=>{},setAttribute:()=>{},setStatus:()=>{},addEvent:()=>{}}}function O$e(){return{createRequestHeaders:()=>({}),parseTraceparentHeader:()=>{},startSpan:(t,e)=>({span:D$e(),tracingContext:xne({parentContext:e.tracingContext})}),withContext(t,e,...r){return e(...r)}}}function WE(){return VS.instrumenterImplementation||(VS.instrumenterImplementation=O$e()),VS.instrumenterImplementation}function KE(t){let{namespace:e,packageName:r,packageVersion:s}=t;function i(l,u,d){let h=WE().startSpan(l,{...d,packageName:r,packageVersion:s,tracingContext:u?.tracingOptions?.tracingContext}),f=h.tracingConte Line truncated
`&&t[n]!=="\r";n++)c+=t[n];if(c=c.trim(),c[c.length-1]==="/"&&(c=c.substring(0,c.length-1),n--),!sje(c)){let d;return c.trim().length===0?d="Invalid space after '<'.":d="Tag '"+c+"' is an invalid name.",Nr("InvalidTag",d,Ai(t,n))}let l=X4e(t,n);if(l===!1)return Nr("InvalidAttr","Attributes for '"+c+"' have open quote.",Ai(t,n));let u=l.value;if(n=l.index,u[u.length-1]==="/"){let d=n-u.length;u=u.substring(0,u.length-1);let h=loe(u,e);if(h===!0)s=!0;else return Nr(h.err.code,h.err.msg,Ai(t,d+h.err.line))}else if(a)if(l.tagClosed){if(u.trim().length>0)return Nr("InvalidTag","Closing tag '"+c+"' can't have attributes or invalid starting.",Ai(t,o));if(r.length===0)return Nr("InvalidTag","Closing tag '"+c+"' has not been opened.",Ai(t,o));{let d=r.pop();if(c!==d.tagName){let h=Ai(t,d.tagStartPos);return Nr("InvalidTag","Expected closing tag '"+d.tagName+"' (opened in line "+h.line+", col "+h.col+") instead of closing tag '"+c+"'.",Ai(t,o))}r.length==0&&(i=!0)}}else return Nr("InvalidTag","Closing tag '"+c+"' doesn't have proper closing.",Ai(t,n));else{let d=loe(u,e);if(d!==!0)return Nr(d.err.code,d.err.msg,Ai(t,n-u.length+d.err.line));if(i===!0)return Nr("InvalidXml","Multiple possible root nodes found.",Ai(t,n));e.unpairedTags.indexOf(c)!==-1||r.push({tagName:c,tagStartPos:o}),s=!0}for(n++;n<t.length;n++)if(t[n]==="<")if(t[n+1]==="!"){n++,n=coe(t,n);continue}else if(t[n+1]==="?"){if(n=aoe(t,++n),n.err)return n}else break;else if(t[n]==="&"){let d=tje(t,n);if(d==-1)return Nr("InvalidChar","char '&' is not expected.",Ai(t,n));n=d}else if(i===!0&&!ooe(t[n]))return Nr("InvalidXml","Extra text at the end",Ai(t,n));t[n]==="<"&&n--}}else{if(ooe(t[n]))continue;return Nr("InvalidChar","char '"+t[n]+"' is not expected.",Ai(t,n))}if(s){if(r.length==1)return Nr("InvalidTag","Unclosed tag '"+r[0].tagName+"'.",Ai(t,r[0].tagStartPos));if(r.length>0)return Nr("InvalidXml","Invalid '"+JSON.stringify(r.map(n=>n.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}else return Nr("InvalidXml","Start tag expected.",1);return!0}function ooe(t){return t===" "||t===" "||t===`
`||t==="\r"}function aoe(t,e){let r=e;for(;e<t.length;e++)if(t[e]=="?"||t[e]==" "){let s=t.substr(r,e-r);if(e>5&&s==="xml")return Nr("InvalidXml","XML declaration allowed only at the start of the document.",Ai(t,e));if(t[e]=="?"&&t[e+1]==">"){e++;break}else continue}return e}function coe(t,e){if(t.length>e+5&&t[e+1]==="-"&&t[e+2]==="-"){for(e+=3;e<t.length;e++)if(t[e]==="-"&&t[e+1]==="-"&&t[e+2]===">"){e+=2;break}}else if(t.length>e+8&&t[e+1]==="D"&&t[e+2]==="O"&&t[e+3]==="C"&&t[e+4]==="T"&&t[e+5]==="Y"&&t[e+6]==="P"&&t[e+7]==="E"){let r=1;for(e+=8;e<t.length;e++)if(t[e]==="<")r++;else if(t[e]===">"&&(r--,r===0))break}else if(t.length>e+9&&t[e+1]==="["&&t[e+2]==="C"&&t[e+3]==="D"&&t[e+4]==="A"&&t[e+5]==="T"&&t[e+6]==="A"&&t[e+7]==="["){for(e+=8;e<t.length;e++)if(t[e]==="]"&&t[e+1]==="]"&&t[e+2]===">"){e+=2;break}}return e}var W4e='"',K4e="'";function X4e(t,e){let r="",s="",i=!1;for(;e<t.length;e++){if(t[e]===W4e||t[e]===K4e)s===""?s=t[e]:s!==t[e]||(s="");else if(t[e]===">"&&s===""){i=!0;break}r+=t[e]}return s!==""?!1:{value:r,index:e,tagClosed:i}}var Z4e=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function loe(t,e){let r=ex(t,Z4e),s={};for(let i=0;i<r.length;i++){if(r[i][1].length===0)return Nr("InvalidAttr","Attribute '"+r[i][2]+"' has no space in starting.",aC(r[i]));if(r[i][3]!==void 0&&r[i][4]===void 0)return Nr("InvalidAttr","Attribute '"+r[i][2]+"' is without value.",aC(r[i]));if(r[i][3]===void 0&&!e.allowBooleanAttributes)return Nr("InvalidAttr","boolean attribute '"+r[i][2]+"' is not allowed.",aC(r[i]));let n=r[i][2];if(!rje(n))return Nr("InvalidAttr","Attribute '"+n+"' is an invalid name.",aC(r[i]));if(!Object.prototype.hasOwnProperty.call(s,n))s[n]=1;else return Nr("InvalidAttr","Attribute '"+n+"' is repeated.",aC(r[i]))}return!0}function eje(t,e){let r=/\d/;for(t[e]==="x"&&(e++,r=/[\da-fA-F]/);e<t.length;e++){if(t[e]===";")return e;if(!t[e].match(r))break}return-1}function tje(t,e){if(e++,t[e]===";")return-1;if(t[e]==="#")return e++,eje(t,e);let r=0;for(;e<t.length;e++,r++)if(!(t[e].match(/\w/)&&r<20)){if(t[e]===";")break;return-1}return e}function Nr(t,e,r){return{err:{code:t,msg:e,line:r.line||r,col:r.col}}}function rje(t){return xL(t)}function sje(t){return xL(t)}function Ai(t,e){let r=t.substring(0,e).split(/\r?\n/);return{line:r.length,col:r[r.length-1].length+1}}function aC(t){return t.startIndex+t[1].length}var uoe={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"},doe={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"},hoe={Amacr:"\u0100",amacr:"\u0101",Abreve:"\u0102",abreve:"\u0103",Aogon:"\u0104",aogon:"\u0105",Cacute:"\u0106",cacute:"\u0107",Ccirc:"\u0108",ccirc:"\u0109",Cdot:"\u010A",cdot:"\u010B",Ccaron:"\u010C",ccaron:"\u010D",Dcaron:"\u010E",dcaron:"\u010F",Dstrok:"\u0110",dstrok:"\u0111",Emacr:"\u0112",emacr:"\u0113",Ecaron:"\u011A",ecaron:"\u011B",Edot:"\u0116",edot:"\u0117",Eogon:"\u0118",eogon:"\u0119",Gcirc:"\u011C",gcirc:"\u011D",Gbreve:"\u011E",gbreve:"\u011F",Gdot:"\u0120",gdot:"\u0121",Gcedil:"\u0122",Hcirc:"\u0124",hcirc:"\u0125",Hstrok:"\u0126",hstrok:"\u0127",Itilde:"\u0128",itilde:"\u0129",Imacr:"\u012A",imacr:"\u012B",Iogon:"\u012E",iogon:"\u012F",Idot:"\u0130",IJlig:"\u0132",ijlig:"\u0133",Jcirc:"\u0134",jcirc:"\u0135",Kcedil:"\u0136",kcedil:"\u0137",kgreen:"\u0138",Lacute:"\u0139",lacute:"\u013A",Lcedil:"\u013B",lcedil:"\u013C",LcaroLine truncated
`);let e=new Vi("!xml"),r=e,s="";this.matcher.reset(),this.entityDecoder.reset(),this.entityExpansionCount=0,this.currentExpandedLength=0;let i=this.options,n=new uC(i.processEntities),o=t.length;for(let a=0;a<o;a++)if(t[a]==="<"){let l=t.charCodeAt(a+1);if(l===47){let u=Kp(t,">",a,"Closing Tag is not closed."),d=t.substring(a+2,u).trim();if(i.removeNSPrefix){let f=d.indexOf(":");f!==-1&&(d=d.substr(f+1))}d=DL(i.transformTagName,d,"",i).tagName,r&&(s=this.saveTextToParentTag(s,r,this.readonlyMatcher));let h=this.matcher.getCurrentTag();if(d&&i.unpairedTagsSet.has(d))throw new Error(`Unpaired tag can not be used as closing tag: </${d}>`);h&&i.unpairedTagsSet.has(h)&&(this.matcher.pop(),this.tagsNodeStack.pop()),this.matcher.pop(),this.isCurrentNodeStopNode=!1,r=this.tagsNodeStack.pop(),s="",a=u}else if(l===63){let u=OL(t,a,!1,"?>");if(!u)throw new Error("Pi Tag is not closed.");s=this.saveTextToParentTag(s,r,this.readonlyMatcher);let d=this.buildAttributesMap(u.tagExp,this.matcher,u.tagName,!0);if(d){let h=d[this.options.attributeNamePrefix+"version"];this.entityDecoder.setXmlVersion(Number(h)||1),n.setXmlVersion(Number(h)||1)}if(!(i.ignoreDeclaration&&u.tagName==="?xml"||i.ignorePiTags)){let h=new Vi(u.tagName);h.add(i.textNodeName,""),u.tagName!==u.tagExp&&u.attrExpPresent&&i.ignoreAttributes!==!0&&(h[":@"]=d),this.addChild(r,h,this.readonlyMatcher,a)}a=u.closeIndex+1}else if(l===33&&t.charCodeAt(a+2)===45&&t.charCodeAt(a+3)===45){let u=Kp(t,"-->",a+4,"Comment is not closed.");if(i.commentPropName){let d=t.substring(a+4,u-2);s=this.saveTextToParentTag(s,r,this.readonlyMatcher),r.add(i.commentPropName,[{[i.textNodeName]:d}])}a=u}else if(l===33&&t.charCodeAt(a+2)===68){let u=n.readDocType(t,a);this.entityDecoder.addInputEntities(u.entities),a=u.i}else if(l===33&&t.charCodeAt(a+2)===91){let u=Kp(t,"]]>",a,"CDATA is not closed.")-2,d=t.substring(a+9,u);s=this.saveTextToParentTag(s,r,this.readonlyMatcher);let h=this.parseTextData(d,r.tagname,this.readonlyMatcher,!0,!1,!0,!0);h==null&&(h=""),i.cdataPropName?r.add(i.cdataPropName,[{[i.textNodeName]:d}]):r.add(i.textNodeName,h),a=u+2}else{let u=OL(t,a,i.removeNSPrefix);if(!u){let P=t.substring(Math.max(0,a-50),Math.min(o,a+50));throw new Error(`readTagExp returned undefined at position ${a}. Context: "${P}"`)}let d=u.tagName,h=u.rawTagName,f=u.tagExp,A=u.attrExpPresent,p=u.closeIndex;if({tagName:d,tagExp:f}=DL(i.transformTagName,d,f,i),i.strictReservedNames&&(d===i.commentPropName||d===i.cdataPropName||d===i.textNodeName||d===i.attributesGroupName))throw new Error(`Invalid tag name: ${d}`);r&&s&&r.tagname!=="!xml"&&(s=this.saveTextToParentTag(s,r,this.readonlyMatcher,!1));let E=r;E&&i.unpairedTagsSet.has(E.tagname)&&(r=this.tagsNodeStack.pop(),this.matcher.pop());let y=!1;f.length>0&&f.lastIndexOf("/")===f.length-1&&(y=!0,d[d.length-1]==="/"?(d=d.substr(0,d.length-1),f=d):f=f.substr(0,f.length-1),A=d!==f);let C=null,w={},x;x=xje(h),d!==e.tagname&&this.matcher.push(d,{},x),d!==f&&A&&(C=this.buildAttributesMap(f,this.matcher,d),C&&(w=Sje(C,i))),d!==e.tagname&&(this.isCurrentNodeStopNode=this.isItStopNode());let N=a;if(this.isCurrentNodeStopNode){let P="";if(y)a=u.closeIndex;else if(i.unpairedTagsSet.has(d))a=u.closeIndex;else{let k=this.readStopNodeData(t,h,p+1);if(!k)throw new Error(`Unexpected end of ${h}`);a=k.i,P=k.tagContent}let D=new Vi(d);C&&(D[":@"]=C),D.add(i.textNodeName,P),this.matcher.pop(),this.isCurrentNodeStopNode=!1,this.addChild(r,D,this.readonlyMatcher,N)}else{if(y){({tagName:d,tagExp:f}=DL(i.transformTagName,d,f,i));let P=new Vi(d);C&&(P[":@"]=C),this.addChild(r,P,this.readonlyMatcher,N),this.matcher.pop(),this.isCurrentNodeStopNode=!1}else if(i.unpairedTagsSet.has(d)){let P=new Vi(d);C&&(P[":@"]=C),this.addChild(r,P,this.readonlyMatcher,N),this.matcher.pop(),this.isCurrentNodeStopNode=!1,a=u.closeIndex;continue}else{let P=new Vi(d);if(this.tagsNodeStack.length>i.maxNestedTags)throw new Error("Maximum nested tags exceeded");this.tagsNodeStack.push(r),C&&(P[":@"]=C),this.addChild(r,P,this.readonlyMatcher,N),r=P}s="",a=p}}}else s+=t[a];return e.child};function _je(t,e,r,s){this.options.captureMetaData||(s=void 0);let i=this.options.jPath?r.toString():r,n=this.options.updateTag(e.tagname,i,e[":@"]);n===!1||(typeof n=="string"&&(e.tagname=n),t.addChild(e,s))}function Pje(t,e,r){let s=this.options.processEntities;if(!s||!s.enabled)return t;if(s.allowedTags){let i=this.options.jPath?r.toString():r;if(!(Array.isArray(s.allowedTags)?s.allowedTags.includes(e):s.allowedTags(e,i)))return t}if(s.tagFilter){let i=this.options.jPath?r.toString():r;if(!s.tagFilter(e,i))return t}return this.entityDecoder.decode(t)}function Dje(t,e,r,s){return t&&(s===void 0&&(s=e.child.length===0),t=this.parseTextData(t,e.tagname,r,!1,e[":@"]?Object.keys(e[":@"]).length!==0:!1,s),t!==void 0&&t!==""&&e.add(this.options.textNodeName,t),t=""),t}function Oje(){return this.stopNodeExpressionsSet.size===0?!1:this.matcher.matchesAny(this.stopNodeExpressionsSet)}function kje(t,e,r=">"){Line truncated
`;function zje(t,e){if(!Array.isArray(t)||t.length===0)return"1.0";let r=t[0];if(qL(r)==="?xml"){let i=r[":@"];if(i){let n=e.attributeNamePrefix+"version";if(i[n])return i[n]}}return"1.0"}function _oe(t,e,r,s,i){return!r.sanitizeName||rf(t,{xmlVersion:i})?t:r.sanitizeName(t,{isAttribute:e,matcher:s.readOnly()})}function UL(t,e){let r="";e.format&&(r=Hje);let s=[];if(e.stopNodes&&Array.isArray(e.stopNodes))for(let o=0;o<e.stopNodes.length;o++){let a=e.stopNodes[o];typeof a=="string"?s.push(new On(a)):a instanceof On&&s.push(a)}let i=zje(t,e),n=new oc;return Poe(t,e,r,n,s,i)}function Poe(t,e,r,s,i,n){let o="",a=!1;if(e.maxNestedTags&&s.getDepth()>e.maxNestedTags)throw new Error("Maximum nested tags exceeded");if(!Array.isArray(t)){if(t!=null){let c=t.toString();return c=FL(c,e),c}return""}for(let c=0;c<t.length;c++){let l=t[c],u=qL(l);if(u===void 0)continue;let h=u===e.textNodeName||u===e.cdataPropName||u===e.commentPropName||u[0]==="?"?u:_oe(u,!1,e,s,n),f=Vje(l[":@"],e);s.push(h,f);let A=jje(s,i);if(h===e.textNodeName){let w=l[u];A||(w=e.tagValueProcessor(h,w),w=FL(w,e)),a&&(o+=r),o+=w,a=!1,s.pop();continue}else if(h===e.cdataPropName){a&&(o+=r);let w=l[u][0][e.textNodeName],x=ax(w);o+=`<![CDATA[${x}]]>`,a=!1,s.pop();continue}else if(h===e.commentPropName){let w=l[u][0][e.textNodeName],x=ox(w);o+=r+`<!--${x}-->`,a=!0,s.pop();continue}else if(h[0]==="?"){let w=voe(l[":@"],e,A,s,n);o+=(h==="?xml"?"":r)+`<${h}${w}?>`,a=!0,s.pop();continue}let p=r;p!==""&&(p+=e.indentBy);let E=voe(l[":@"],e,A,s,n),y=r+`<${h}${E}`,C;A?C=Doe(l[u],e):C=Poe(l[u],e,p,s,i,n),e.unpairedTags.indexOf(h)!==-1?e.suppressUnpairedNode?o+=y+">":o+=y+"/>":(!C||C.length===0)&&e.suppressEmptyNode?o+=y+"/>":C&&C.endsWith(">")?o+=y+`>${C}${r}</${h}>`:(o+=y+">",C&&r!==""&&(C.includes("/>")||C.includes("</"))?o+=r+e.indentBy+C+r:o+=C,o+=`</${h}>`),a=!0,s.pop()}return o}function Vje(t,e){if(!t||e.ignoreAttributes)return null;let r={},s=!1;for(let i in t){if(!Object.prototype.hasOwnProperty.call(t,i))continue;let n=i.startsWith(e.attributeNamePrefix)?i.substr(e.attributeNamePrefix.length):i;r[n]=Ed(t[i]),s=!0}return s?r:null}function Doe(t,e){if(!Array.isArray(t))return t!=null?t.toString():"";let r="";for(let s=0;s<t.length;s++){let i=t[s],n=qL(i);if(n===e.textNodeName)r+=i[n];else if(n===e.cdataPropName)r+=i[n][0][e.textNodeName];else if(n===e.commentPropName)r+=i[n][0][e.textNodeName];else{if(n&&n[0]==="?")continue;if(n){let o=$je(i[":@"],e),a=Doe(i[n],e);!a||a.length===0?r+=`<${n}${o}/>`:r+=`<${n}${o}>${a}</${n}>`}}}return r}function $je(t,e){let r="";if(t&&!e.ignoreAttributes)for(let s in t){if(!Object.prototype.hasOwnProperty.call(t,s))continue;let i=t[s];i===!0&&e.suppressBooleanAttributes?r+=` ${s.substr(e.attributeNamePrefix.length)}`:r+=` ${s.substr(e.attributeNamePrefix.length)}="${Ed(i)}"`}return r}function qL(t){let e=Object.keys(t);for(let r=0;r<e.length;r++){let s=e[r];if(Object.prototype.hasOwnProperty.call(t,s)&&s!==":@")return s}}function voe(t,e,r,s,i){let n="";if(t&&!e.ignoreAttributes)for(let o in t){if(!Object.prototype.hasOwnProperty.call(t,o))continue;let a=o.substr(e.attributeNamePrefix.length),c=r?a:_oe(a,!0,e,s,i),l;r?l=t[o]:(l=e.attributeValueProcessor(o,t[o]),l=FL(l,e)),l===!0&&e.suppressBooleanAttributes?n+=` ${c}`:n+=` ${c}="${Ed(l)}"`}return n}function jje(t,e){if(!e||e.length===0)return!1;for(let r=0;r<e.length;r++)if(t.matches(e[r]))return!0;return!1}function FL(t,e){if(t&&t.length>0&&e.processEntities)for(let r=0;r<e.entities.length;r++){let s=e.entities[r];t=t.replace(s.regex,s.val)}return t}function GL(t){return typeof t=="function"?t:Array.isArray(t)?e=>{for(let r of t)if(typeof r=="string"&&e===r||r instanceof RegExp&&r.test(e))return!0}:()=>!1}var Jje={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:" ",suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:function(t,e){return e},attributeValueProcessor:function(t,e){return e},preserveOrder:!1,commentPropName:!1,unpairedTags:[],entities:[{regex:new RegExp("&","g"),val:"&amp;"},{regex:new RegExp(">","g"),val:"&gt;"},{regex:new RegExp("<","g"),val:"&lt;"},{regex:new RegExp("'","g"),val:"&apos;"},{regex:new RegExp('"',"g"),val:"&quot;"}],processEntities:!0,stopNodes:[],oneListGroup:!1,maxNestedTags:100,jPath:!0,sanitizeName:!1};function ji(t){if(this.options=Object.assign({},Jje,t),this.options.stopNodes&&Array.isArray(this.options.stopNodes)&&(this.options.stopNodes=this.options.stopNodes.map(e=>typeof e=="string"&&e.startsWith("*.")?".."+e.substring(2):e)),this.stopNodeExpressions=[],this.options.stopNodes&&Array.isArray(this.options.stopNodes))for(let e=0;e<this.options.stopNodes.length;e++){let r=this.options.stopNodes[e];typeof r=="string"?this.stopNodeExpressions.push(new On(r)):r instanceof On&&this.stopNodeExpressions.push(r)}this.options.ignoreAttributes===!0||this.options.attributesGroupName?this.isAttribute=function(){return!1}:(this.ignorLine truncated
`,"utf-8")],i=x9e(s);i&&t.headers.set("Content-Length",i),t.body=await Zue(s)}var OI="multipartPolicy",R9e=70,v9e=new Set("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'()+,-./:=?");function T9e(t){if(t.length>R9e)throw new Error(`Multipart boundary "${t}" exceeds maximum length of 70 characters`);if(Array.from(t).some(e=>!v9e.has(e)))throw new Error(`Multipart boundary "${t}" contains invalid characters`)}function GN(){return{name:OI,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,s=t.headers.get("Content-Type")??"multipart/mixed",i=s.match(/^(multipart\/[^ ;]+)(?:; *boundary=(.+))?$/);if(!i)throw new Error(`Got multipart request body, but content-type header was not multipart: ${s}`);let[,n,o]=i;if(o&&r&&o!==r)throw new Error(`Multipart boundary was specified as ${o} in the header, but got ${r} in the request body`);return r??=o,r?T9e(r):r=w9e(),t.headers.set("Content-Type",`${n}; boundary=${r}`),await N9e(t,t.multipartBody.parts,r),t.multipartBody=void 0,e(t)}}}function HN(){return fN()}var ehe=uN({logLevelEnvVarName:"AZURE_LOG_LEVEL",namespace:"azure"}),TFt=ehe.logger;function Sc(t){return ehe.createClientLogger(t)}var xc=Sc("core-rest-pipeline");function pF(t={}){return EN({logger:xc.info,...t})}var AF=CN;function mF(t={}){return IN(t)}var zN=O(require("node:os"),1),VN=O(require("node:process"),1);function the(){return"User-Agent"}async function rhe(t){if(VN.default&&VN.default.versions){let e=`${zN.default.type()} ${zN.default.release()}; ${zN.default.arch()}`,r=VN.default.versions;r.bun?t.set("Bun",`${r.bun} (${e})`):r.deno?t.set("Deno",`${r.deno} (${e})`):r.node&&t.set("Node",`${r.node} (${e})`)}}var $N="1.22.2";function L9e(t){let e=[];for(let[r,s]of t){let i=s?`${r}/${s}`:r;e.push(i)}return e.join(" ")}function she(){return the()}async function jN(t){let e=new Map;e.set("core-rest-pipeline",$N),await rhe(e);let r=L9e(e);return t?`${t} ${r}`:r}var ihe=she(),nhe="userAgentPolicy";function gF(t={}){let e=jN(t.userAgentPrefix);return{name:nhe,async sendRequest(r,s){return r.headers.has(ihe)||r.headers.set(ihe,await e),s(r)}}}var Jn=class extends Error{constructor(e){super(e),this.name="AbortError"}};function yF(t,e){let{cleanupBeforeAbort:r,abortSignal:s,abortErrorMsg:i}=e??{};return new Promise((n,o)=>{function a(){o(new Jn(i??"The operation was aborted."))}function c(){s?.removeEventListener("abort",l)}function l(){r?.(),c(),a()}if(s?.aborted)return a();try{t(u=>{c(),n(u)},u=>{c(),o(u)})}catch(u){o(u)}s?.addEventListener("abort",l)})}var H9e="The delay was aborted.";function DI(t,e){let r,{abortSignal:s,abortErrorMsg:i}=e??{};return yF(n=>{r=setTimeout(n,t)},{cleanupBeforeAbort:()=>clearTimeout(r),abortSignal:s,abortErrorMsg:i??H9e})}function ed(t){if(Hf(t))return t.message;{let e;try{typeof t=="object"&&t?e=JSON.stringify(t):e=String(t)}catch{e="[unable to stringify input]"}return`Unknown error ${e}`}}function ohe(t){return Hf(t)}function Zm(){return Gf()}var wt=$f;var ahe=Symbol("rawContent");function CF(t){return typeof t[ahe]=="function"}function che(t){return CF(t)?t[ahe]():t}var JN=OI;function IF(){let t=GN();return{name:JN,sendRequest:async(e,r)=>{if(e.multipartBody)for(let s of e.multipartBody.parts)CF(s.body)&&(s.body=che(s.body));return t.sendRequest(e,r)}}}var bF=bN;function wF(){return wN()}function BF(t={}){return xN(t)}function SF(){return NN()}function td(t){return lF(t)}function xF(t,e){return MN(t,e)}var lhe="setClientRequestIdPolicy";function NF(t="x-ms-client-request-id"){return{name:lhe,async sendRequest(e,r){return e.headers.has(t)||e.headers.set(t,e.requestId),r(e)}}}function RF(t){return LN(t)}function vF(t){return UN(t)}var eg={span:Symbol.for("@azure/core-tracing span"),namespace:Symbol.for("@azure/core-tracing namespace")};function uhe(t={}){let e=new TF(t.parentContext);return t.span&&(e=e.setValue(eg.span,t.span)),t.namespace&&(e=e.setValue(eg.namespace,t.namespace)),e}var TF=class t{_contextMap;constructor(e){this._contextMap=e instanceof t?new Map(e._contextMap):new Map}setValue(e,r){let s=new t(this);return s._contextMap.set(e,r),s}getValue(e){return this._contextMap.get(e)}deleteValue(e){let r=new t(this);return r._contextMap.delete(e),r}};var dhe=O(hhe(),1),WN=dhe.state;function z9e(){return{end:()=>{},isRecording:()=>!1,recordException:()=>{},setAttribute:()=>{},setStatus:()=>{},addEvent:()=>{}}}function V9e(){return{createRequestHeaders:()=>({}),parseTraceparentHeader:()=>{},startSpan:(t,e)=>({span:z9e(),tracingContext:uhe({parentContext:e.tracingContext})}),withContext(t,e,...r){return e(...r)}}}function kI(){return WN.instrumenterImplementation||(WN.instrumenterImplementation=V9e()),WN.instrumenterImplementation}function MI(t){let{namespace:e,packageName:r,packageVersion:s}=t;function i(l,u,h){let d=kI().startSpan(l,{...h,packageName:r,packageVersion:s,tracingContext:u?.tracingOptions?.tracingContext}),f=d.tracingConte Line truncated
`&&t[n]!=="\r";n++)c+=t[n];if(c=c.trim(),c[c.length-1]==="/"&&(c=c.substring(0,c.length-1),n--),!fKe(c)){let h;return c.trim().length===0?h="Invalid space after '<'.":h="Tag '"+c+"' is an invalid name.",Pr("InvalidTag",h,Ni(t,n))}let l=cKe(t,n);if(l===!1)return Pr("InvalidAttr","Attributes for '"+c+"' have open quote.",Ni(t,n));let u=l.value;if(n=l.index,u[u.length-1]==="/"){let h=n-u.length;u=u.substring(0,u.length-1);let d=jhe(u,e);if(d===!0)s=!0;else return Pr(d.err.code,d.err.msg,Ni(t,h+d.err.line))}else if(a)if(l.tagClosed){if(u.trim().length>0)return Pr("InvalidTag","Closing tag '"+c+"' can't have attributes or invalid starting.",Ni(t,o));if(r.length===0)return Pr("InvalidTag","Closing tag '"+c+"' has not been opened.",Ni(t,o));{let h=r.pop();if(c!==h.tagName){let d=Ni(t,h.tagStartPos);return Pr("InvalidTag","Expected closing tag '"+h.tagName+"' (opened in line "+d.line+", col "+d.col+") instead of closing tag '"+c+"'.",Ni(t,o))}r.length==0&&(i=!0)}}else return Pr("InvalidTag","Closing tag '"+c+"' doesn't have proper closing.",Ni(t,n));else{let h=jhe(u,e);if(h!==!0)return Pr(h.err.code,h.err.msg,Ni(t,n-u.length+h.err.line));if(i===!0)return Pr("InvalidXml","Multiple possible root nodes found.",Ni(t,n));e.unpairedTags.indexOf(c)!==-1||r.push({tagName:c,tagStartPos:o}),s=!0}for(n++;n<t.length;n++)if(t[n]==="<")if(t[n+1]==="!"){n++,n=$he(t,n);continue}else if(t[n+1]==="?"){if(n=Vhe(t,++n),n.err)return n}else break;else if(t[n]==="&"){let h=hKe(t,n);if(h==-1)return Pr("InvalidChar","char '&' is not expected.",Ni(t,n));n=h}else if(i===!0&&!zhe(t[n]))return Pr("InvalidXml","Extra text at the end",Ni(t,n));t[n]==="<"&&n--}}else{if(zhe(t[n]))continue;return Pr("InvalidChar","char '"+t[n]+"' is not expected.",Ni(t,n))}if(s){if(r.length==1)return Pr("InvalidTag","Unclosed tag '"+r[0].tagName+"'.",Ni(t,r[0].tagStartPos));if(r.length>0)return Pr("InvalidXml","Invalid '"+JSON.stringify(r.map(n=>n.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}else return Pr("InvalidXml","Start tag expected.",1);return!0}function zhe(t){return t===" "||t===" "||t===`
`||t==="\r"}function Vhe(t,e){let r=e;for(;e<t.length;e++)if(t[e]=="?"||t[e]==" "){let s=t.substr(r,e-r);if(e>5&&s==="xml")return Pr("InvalidXml","XML declaration allowed only at the start of the document.",Ni(t,e));if(t[e]=="?"&&t[e+1]==">"){e++;break}else continue}return e}function $he(t,e){if(t.length>e+5&&t[e+1]==="-"&&t[e+2]==="-"){for(e+=3;e<t.length;e++)if(t[e]==="-"&&t[e+1]==="-"&&t[e+2]===">"){e+=2;break}}else if(t.length>e+8&&t[e+1]==="D"&&t[e+2]==="O"&&t[e+3]==="C"&&t[e+4]==="T"&&t[e+5]==="Y"&&t[e+6]==="P"&&t[e+7]==="E"){let r=1;for(e+=8;e<t.length;e++)if(t[e]==="<")r++;else if(t[e]===">"&&(r--,r===0))break}else if(t.length>e+9&&t[e+1]==="["&&t[e+2]==="C"&&t[e+3]==="D"&&t[e+4]==="A"&&t[e+5]==="T"&&t[e+6]==="A"&&t[e+7]==="["){for(e+=8;e<t.length;e++)if(t[e]==="]"&&t[e+1]==="]"&&t[e+2]===">"){e+=2;break}}return e}var oKe='"',aKe="'";function cKe(t,e){let r="",s="",i=!1;for(;e<t.length;e++){if(t[e]===oKe||t[e]===aKe)s===""?s=t[e]:s!==t[e]||(s="");else if(t[e]===">"&&s===""){i=!0;break}r+=t[e]}return s!==""?!1:{value:r,index:e,tagClosed:i}}var lKe=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function jhe(t,e){let r=nR(t,lKe),s={};for(let i=0;i<r.length;i++){if(r[i][1].length===0)return Pr("InvalidAttr","Attribute '"+r[i][2]+"' has no space in starting.",jI(r[i]));if(r[i][3]!==void 0&&r[i][4]===void 0)return Pr("InvalidAttr","Attribute '"+r[i][2]+"' is without value.",jI(r[i]));if(r[i][3]===void 0&&!e.allowBooleanAttributes)return Pr("InvalidAttr","boolean attribute '"+r[i][2]+"' is not allowed.",jI(r[i]));let n=r[i][2];if(!dKe(n))return Pr("InvalidAttr","Attribute '"+n+"' is an invalid name.",jI(r[i]));if(!Object.prototype.hasOwnProperty.call(s,n))s[n]=1;else return Pr("InvalidAttr","Attribute '"+n+"' is repeated.",jI(r[i]))}return!0}function uKe(t,e){let r=/\d/;for(t[e]==="x"&&(e++,r=/[\da-fA-F]/);e<t.length;e++){if(t[e]===";")return e;if(!t[e].match(r))break}return-1}function hKe(t,e){if(e++,t[e]===";")return-1;if(t[e]==="#")return e++,uKe(t,e);let r=0;for(;e<t.length;e++,r++)if(!(t[e].match(/\w/)&&r<20)){if(t[e]===";")break;return-1}return e}function Pr(t,e,r){return{err:{code:t,msg:e,line:r.line||r,col:r.col}}}function dKe(t){return JF(t)}function fKe(t){return JF(t)}function Ni(t,e){let r=t.substring(0,e).split(/\r?\n/);return{line:r.length,col:r[r.length-1].length+1}}function jI(t){return t.startIndex+t[1].length}var Jhe={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"},Yhe={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"},Whe={Amacr:"\u0100",amacr:"\u0101",Abreve:"\u0102",abreve:"\u0103",Aogon:"\u0104",aogon:"\u0105",Cacute:"\u0106",cacute:"\u0107",Ccirc:"\u0108",ccirc:"\u0109",Cdot:"\u010A",cdot:"\u010B",Ccaron:"\u010C",ccaron:"\u010D",Dcaron:"\u010E",dcaron:"\u010F",Dstrok:"\u0110",dstrok:"\u0111",Emacr:"\u0112",emacr:"\u0113",Ecaron:"\u011A",ecaron:"\u011B",Edot:"\u0116",edot:"\u0117",Eogon:"\u0118",eogon:"\u0119",Gcirc:"\u011C",gcirc:"\u011D",Gbreve:"\u011E",gbreve:"\u011F",Gdot:"\u0120",gdot:"\u0121",Gcedil:"\u0122",Hcirc:"\u0124",hcirc:"\u0125",Hstrok:"\u0126",hstrok:"\u0127",Itilde:"\u0128",itilde:"\u0129",Imacr:"\u012A",imacr:"\u012B",Iogon:"\u012E",iogon:"\u012F",Idot:"\u0130",IJlig:"\u0132",ijlig:"\u0133",Jcirc:"\u0134",jcirc:"\u0135",Kcedil:"\u0136",kcedil:"\u0137",kgreen:"\u0138",Lacute:"\u0139",lacute:"\u013A",Lcedil:"\u013B",lcedil:"\u013C",LcaroLine truncated
`);let e=new cn("!xml"),r=e,s="";this.matcher.reset(),this.entityDecoder.reset(),this.entityExpansionCount=0,this.currentExpandedLength=0;let i=this.options,n=new WI(i.processEntities),o=t.length;for(let a=0;a<o;a++)if(t[a]==="<"){let l=t.charCodeAt(a+1);if(l===47){let u=ng(t,">",a,"Closing Tag is not closed."),h=t.substring(a+2,u).trim();if(i.removeNSPrefix){let f=h.indexOf(":");f!==-1&&(h=h.substr(f+1))}h=rq(i.transformTagName,h,"",i).tagName,r&&(s=this.saveTextToParentTag(s,r,this.readonlyMatcher));let d=this.matcher.getCurrentTag();if(h&&i.unpairedTagsSet.has(h))throw new Error(`Unpaired tag can not be used as closing tag: </${h}>`);d&&i.unpairedTagsSet.has(d)&&(this.matcher.pop(),this.tagsNodeStack.pop()),this.matcher.pop(),this.isCurrentNodeStopNode=!1,r=this.tagsNodeStack.pop(),s="",a=u}else if(l===63){let u=sq(t,a,!1,"?>");if(!u)throw new Error("Pi Tag is not closed.");s=this.saveTextToParentTag(s,r,this.readonlyMatcher);let h=this.buildAttributesMap(u.tagExp,this.matcher,u.tagName,!0);if(h){let d=h[this.options.attributeNamePrefix+"version"];this.entityDecoder.setXmlVersion(Number(d)||1),n.setXmlVersion(Number(d)||1)}if(!(i.ignoreDeclaration&&u.tagName==="?xml"||i.ignorePiTags)){let d=new cn(u.tagName);d.add(i.textNodeName,""),u.tagName!==u.tagExp&&u.attrExpPresent&&i.ignoreAttributes!==!0&&(d[":@"]=h),this.addChild(r,d,this.readonlyMatcher,a)}a=u.closeIndex+1}else if(l===33&&t.charCodeAt(a+2)===45&&t.charCodeAt(a+3)===45){let u=ng(t,"-->",a+4,"Comment is not closed.");if(i.commentPropName){let h=t.substring(a+4,u-2);s=this.saveTextToParentTag(s,r,this.readonlyMatcher),r.add(i.commentPropName,[{[i.textNodeName]:h}])}a=u}else if(l===33&&t.charCodeAt(a+2)===68){let u=n.readDocType(t,a);this.entityDecoder.addInputEntities(u.entities),a=u.i}else if(l===33&&t.charCodeAt(a+2)===91){let u=ng(t,"]]>",a,"CDATA is not closed.")-2,h=t.substring(a+9,u);s=this.saveTextToParentTag(s,r,this.readonlyMatcher);let d=this.parseTextData(h,r.tagname,this.readonlyMatcher,!0,!1,!0,!0);d==null&&(d=""),i.cdataPropName?r.add(i.cdataPropName,[{[i.textNodeName]:h}]):r.add(i.textNodeName,d),a=u+2}else{let u=sq(t,a,i.removeNSPrefix);if(!u){let P=t.substring(Math.max(0,a-50),Math.min(o,a+50));throw new Error(`readTagExp returned undefined at position ${a}. Context: "${P}"`)}let h=u.tagName,d=u.rawTagName,f=u.tagExp,p=u.attrExpPresent,m=u.closeIndex;if({tagName:h,tagExp:f}=rq(i.transformTagName,h,f,i),i.strictReservedNames&&(h===i.commentPropName||h===i.cdataPropName||h===i.textNodeName||h===i.attributesGroupName))throw new Error(`Invalid tag name: ${h}`);r&&s&&r.tagname!=="!xml"&&(s=this.saveTextToParentTag(s,r,this.readonlyMatcher,!1));let E=r;E&&i.unpairedTagsSet.has(E.tagname)&&(r=this.tagsNodeStack.pop(),this.matcher.pop());let y=!1;f.length>0&&f.lastIndexOf("/")===f.length-1&&(y=!0,h[h.length-1]==="/"?(h=h.substr(0,h.length-1),f=h):f=f.substr(0,f.length-1),p=h!==f);let C=null,w={},S;S=kKe(d),h!==e.tagname&&this.matcher.push(h,{},S),h!==f&&p&&(C=this.buildAttributesMap(f,this.matcher,h),C&&(w=DKe(C,i))),h!==e.tagname&&(this.isCurrentNodeStopNode=this.isItStopNode());let N=a;if(this.isCurrentNodeStopNode){let P="";if(y)a=u.closeIndex;else if(i.unpairedTagsSet.has(h))a=u.closeIndex;else{let k=this.readStopNodeData(t,d,m+1);if(!k)throw new Error(`Unexpected end of ${d}`);a=k.i,P=k.tagContent}let Q=new cn(h);C&&(Q[":@"]=C),Q.add(i.textNodeName,P),this.matcher.pop(),this.isCurrentNodeStopNode=!1,this.addChild(r,Q,this.readonlyMatcher,N)}else{if(y){({tagName:h,tagExp:f}=rq(i.transformTagName,h,f,i));let P=new cn(h);C&&(P[":@"]=C),this.addChild(r,P,this.readonlyMatcher,N),this.matcher.pop(),this.isCurrentNodeStopNode=!1}else if(i.unpairedTagsSet.has(h)){let P=new cn(h);C&&(P[":@"]=C),this.addChild(r,P,this.readonlyMatcher,N),this.matcher.pop(),this.isCurrentNodeStopNode=!1,a=u.closeIndex;continue}else{let P=new cn(h);if(this.tagsNodeStack.length>i.maxNestedTags)throw new Error("Maximum nested tags exceeded");this.tagsNodeStack.push(r),C&&(P[":@"]=C),this.addChild(r,P,this.readonlyMatcher,N),r=P}s="",a=m}}}else s+=t[a];return e.child};function GKe(t,e,r,s){this.options.captureMetaData||(s=void 0);let i=this.options.jPath?r.toString():r,n=this.options.updateTag(e.tagname,i,e[":@"]);n===!1||(typeof n=="string"&&(e.tagname=n),t.addChild(e,s))}function HKe(t,e,r){let s=this.options.processEntities;if(!s||!s.enabled)return t;if(s.allowedTags){let i=this.options.jPath?r.toString():r;if(!(Array.isArray(s.allowedTags)?s.allowedTags.includes(e):s.allowedTags(e,i)))return t}if(s.tagFilter){let i=this.options.jPath?r.toString():r;if(!s.tagFilter(e,i))return t}return this.entityDecoder.decode(t)}function zKe(t,e,r,s){return t&&(s===void 0&&(s=e.child.length===0),t=this.parseTextData(t,e.tagname,r,!1,e[":@"]?Object.keys(e[":@"]).length!==0:!1,s),t!==void 0&&t!==""&&e.add(this.options.textNodeName,t),t=""),t}function VKe(){return this.stopNodeExpressionsSet.size===0?!1:this.matcher.matchesAny(this.stopNodeExpressionsSet)}function $Ke(t,e,r=">"){Line truncated
`;function eXe(t,e){if(!Array.isArray(t)||t.length===0)return"1.0";let r=t[0];if(lq(r)==="?xml"){let i=r[":@"];if(i){let n=e.attributeNamePrefix+"version";if(i[n])return i[n]}}return"1.0"}function mde(t,e,r,s,i){return!r.sanitizeName||Xf(t,{xmlVersion:i})?t:r.sanitizeName(t,{isAttribute:e,matcher:s.readOnly()})}function cq(t,e){let r="";e.format&&(r=ZKe);let s=[];if(e.stopNodes&&Array.isArray(e.stopNodes))for(let o=0;o<e.stopNodes.length;o++){let a=e.stopNodes[o];typeof a=="string"?s.push(new Kn(a)):a instanceof Kn&&s.push(a)}let i=eXe(t,e),n=new vc;return gde(t,e,r,n,s,i)}function gde(t,e,r,s,i,n){let o="",a=!1;if(e.maxNestedTags&&s.getDepth()>e.maxNestedTags)throw new Error("Maximum nested tags exceeded");if(!Array.isArray(t)){if(t!=null){let c=t.toString();return c=aq(c,e),c}return""}for(let c=0;c<t.length;c++){let l=t[c],u=lq(l);if(u===void 0)continue;let d=u===e.textNodeName||u===e.cdataPropName||u===e.commentPropName||u[0]==="?"?u:mde(u,!1,e,s,n),f=tXe(l[":@"],e);s.push(d,f);let p=sXe(s,i);if(d===e.textNodeName){let w=l[u];p||(w=e.tagValueProcessor(d,w),w=aq(w,e)),a&&(o+=r),o+=w,a=!1,s.pop();continue}else if(d===e.cdataPropName){a&&(o+=r);let w=l[u][0][e.textNodeName],S=dR(w);o+=`<![CDATA[${S}]]>`,a=!1,s.pop();continue}else if(d===e.commentPropName){let w=l[u][0][e.textNodeName],S=hR(w);o+=r+`<!--${S}-->`,a=!0,s.pop();continue}else if(d[0]==="?"){let w=Ade(l[":@"],e,p,s,n);o+=(d==="?xml"?"":r)+`<${d}${w}?>`,a=!0,s.pop();continue}let m=r;m!==""&&(m+=e.indentBy);let E=Ade(l[":@"],e,p,s,n),y=r+`<${d}${E}`,C;p?C=yde(l[u],e):C=gde(l[u],e,m,s,i,n),e.unpairedTags.indexOf(d)!==-1?e.suppressUnpairedNode?o+=y+">":o+=y+"/>":(!C||C.length===0)&&e.suppressEmptyNode?o+=y+"/>":C&&C.endsWith(">")?o+=y+`>${C}${r}</${d}>`:(o+=y+">",C&&r!==""&&(C.includes("/>")||C.includes("</"))?o+=r+e.indentBy+C+r:o+=C,o+=`</${d}>`),a=!0,s.pop()}return o}function tXe(t,e){if(!t||e.ignoreAttributes)return null;let r={},s=!1;for(let i in t){if(!Object.prototype.hasOwnProperty.call(t,i))continue;let n=i.startsWith(e.attributeNamePrefix)?i.substr(e.attributeNamePrefix.length):i;r[n]=id(t[i]),s=!0}return s?r:null}function yde(t,e){if(!Array.isArray(t))return t!=null?t.toString():"";let r="";for(let s=0;s<t.length;s++){let i=t[s],n=lq(i);if(n===e.textNodeName)r+=i[n];else if(n===e.cdataPropName)r+=i[n][0][e.textNodeName];else if(n===e.commentPropName)r+=i[n][0][e.textNodeName];else{if(n&&n[0]==="?")continue;if(n){let o=rXe(i[":@"],e),a=yde(i[n],e);!a||a.length===0?r+=`<${n}${o}/>`:r+=`<${n}${o}>${a}</${n}>`}}}return r}function rXe(t,e){let r="";if(t&&!e.ignoreAttributes)for(let s in t){if(!Object.prototype.hasOwnProperty.call(t,s))continue;let i=t[s];i===!0&&e.suppressBooleanAttributes?r+=` ${s.substr(e.attributeNamePrefix.length)}`:r+=` ${s.substr(e.attributeNamePrefix.length)}="${id(i)}"`}return r}function lq(t){let e=Object.keys(t);for(let r=0;r<e.length;r++){let s=e[r];if(Object.prototype.hasOwnProperty.call(t,s)&&s!==":@")return s}}function Ade(t,e,r,s,i){let n="";if(t&&!e.ignoreAttributes)for(let o in t){if(!Object.prototype.hasOwnProperty.call(t,o))continue;let a=o.substr(e.attributeNamePrefix.length),c=r?a:mde(a,!0,e,s,i),l;r?l=t[o]:(l=e.attributeValueProcessor(o,t[o]),l=aq(l,e)),l===!0&&e.suppressBooleanAttributes?n+=` ${c}`:n+=` ${c}="${id(l)}"`}return n}function sXe(t,e){if(!e||e.length===0)return!1;for(let r=0;r<e.length;r++)if(t.matches(e[r]))return!0;return!1}function aq(t,e){if(t&&t.length>0&&e.processEntities)for(let r=0;r<e.entities.length;r++){let s=e.entities[r];t=t.replace(s.regex,s.val)}return t}function uq(t){return typeof t=="function"?t:Array.isArray(t)?e=>{for(let r of t)if(typeof r=="string"&&e===r||r instanceof RegExp&&r.test(e))return!0}:()=>!1}var iXe={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:" ",suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:function(t,e){return e},attributeValueProcessor:function(t,e){return e},preserveOrder:!1,commentPropName:!1,unpairedTags:[],entities:[{regex:new RegExp("&","g"),val:"&amp;"},{regex:new RegExp(">","g"),val:"&gt;"},{regex:new RegExp("<","g"),val:"&lt;"},{regex:new RegExp("'","g"),val:"&apos;"},{regex:new RegExp('"',"g"),val:"&quot;"}],processEntities:!0,stopNodes:[],oneListGroup:!1,maxNestedTags:100,jPath:!0,sanitizeName:!1};function un(t){if(this.options=Object.assign({},iXe,t),this.options.stopNodes&&Array.isArray(this.options.stopNodes)&&(this.options.stopNodes=this.options.stopNodes.map(e=>typeof e=="string"&&e.startsWith("*.")?".."+e.substring(2):e)),this.stopNodeExpressions=[],this.options.stopNodes&&Array.isArray(this.options.stopNodes))for(let e=0;e<this.options.stopNodes.length;e++){let r=this.options.stopNodes[e];typeof r=="string"?this.stopNodeExpressions.push(new Kn(r)):r instanceof Kn&&this.stopNodeExpressions.push(r)}this.options.ignoreAttributes===!0||this.options.attributesGroupName?this.isAttribute=function(){return!1}:(this.ignorLine truncated
`,this.newLine=`
`):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}function Yje(t,e){let r=t["?xml"];if(r&&typeof r=="object"){if(e.attributesGroupName&&r[e.attributesGroupName]){let i=r[e.attributesGroupName][e.attributeNamePrefix+"version"];if(i)return i}let s=r[e.attributeNamePrefix+"version"];if(s)return s}return"1.0"}function HL(t,e,r,s,i){return!r.sanitizeName||rf(t,{xmlVersion:i})?t:r.sanitizeName(t,{isAttribute:e,matcher:s.readOnly()})}ji.prototype.build=function(t){if(this.options.preserveOrder)return UL(t,this.options);{Array.isArray(t)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(t={[this.options.arrayNodeName]:t});let e=new oc,r=Yje(t,this.options);return this.j2x(t,0,e,r).val}};ji.prototype.j2x=function(t,e,r,s){let i="",n="";if(this.options.maxNestedTags&&r.getDepth()>=this.options.maxNestedTags)throw new Error("Maximum nested tags exceeded");let o=this.options.jPath?r.toString():r,a=this.checkStopNode(r);for(let c in t){if(!Object.prototype.hasOwnProperty.call(t,c))continue;let u=c===this.options.textNodeName||c===this.options.cdataPropName||c===this.options.commentPropName||this.options.attributesGroupName&&c===this.options.attributesGroupName||this.isAttribute(c)||c[0]==="?"?c:HL(c,!1,this.options,r,s);if(typeof t[c]>"u")this.isAttribute(c)&&(n+="");else if(t[c]===null)this.isAttribute(c)||u===this.options.cdataPropName||u===this.options.commentPropName?n+="":u[0]==="?"?n+=this.indentate(e)+"<"+u+"?"+this.tagEndChar:n+=this.indentate(e)+"<"+u+"/"+this.tagEndChar;else if(t[c]instanceof Date)n+=this.buildTextValNode(t[c],u,"",e,r);else if(typeof t[c]!="object"){let d=this.isAttribute(c);if(d&&!this.ignoreAttributesFn(d,o)){let h=HL(d,!0,this.options,r,s);i+=this.buildAttrPairStr(h,""+t[c],a)}else if(!d)if(c===this.options.textNodeName){let h=this.options.tagValueProcessor(c,""+t[c]);n+=this.replaceEntitiesValue(h)}else{r.push(u);let h=this.checkStopNode(r);if(r.pop(),h){let f=""+t[c];f===""?n+=this.indentate(e)+"<"+u+this.closeTag(u)+this.tagEndChar:n+=this.indentate(e)+"<"+u+">"+f+"</"+u+this.tagEndChar}else n+=this.buildTextValNode(t[c],u,"",e,r)}}else if(Array.isArray(t[c])){let d=t[c].length,h="",f="";for(let A=0;A<d;A++){let p=t[c][A];if(!(typeof p>"u"))if(p===null)u[0]==="?"?n+=this.indentate(e)+"<"+u+"?"+this.tagEndChar:n+=this.indentate(e)+"<"+u+"/"+this.tagEndChar;else if(typeof p=="object")if(this.options.oneListGroup){r.push(u);let E=this.j2x(p,e+1,r,s);r.pop(),h+=E.val,this.options.attributesGroupName&&p.hasOwnProperty(this.options.attributesGroupName)&&(f+=E.attrStr)}else h+=this.processTextOrObjNode(p,u,e,r,s);else if(this.options.oneListGroup){let E=this.options.tagValueProcessor(u,p);E=this.replaceEntitiesValue(E),h+=E}else{r.push(u);let E=this.checkStopNode(r);if(r.pop(),E){let y=""+p;y===""?h+=this.indentate(e)+"<"+u+this.closeTag(u)+this.tagEndChar:h+=this.indentate(e)+"<"+u+">"+y+"</"+u+this.tagEndChar}else h+=this.buildTextValNode(p,u,"",e,r)}}this.options.oneListGroup&&(h=this.buildObjectNode(h,u,f,e)),n+=h}else if(this.options.attributesGroupName&&c===this.options.attributesGroupName){let d=Object.keys(t[c]),h=d.length;for(let f=0;f<h;f++){let A=HL(d[f],!0,this.options,r,s);i+=this.buildAttrPairStr(A,""+t[c][d[f]],a)}}else n+=this.processTextOrObjNode(t[c],u,e,r,s)}return{attrStr:i,val:n}};ji.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+'="'+Ed(e)+'"'};function Wje(t,e,r,s,i){let n=this.extractAttributes(t);if(s.push(e,n),this.checkStopNode(s)){let c=this.buildRawContent(t),l=this.buildAttributesForStopNode(t);return s.pop(),this.buildObjectNode(c,e,l,r)}let a=this.j2x(t,r+1,s,i);return s.pop(),e[0]==="?"?this.buildTextValNode("",e,a.attrStr,r,s):t[this.options.textNodeName]!==void 0&&Object.keys(t).length===1?this.buildTextValNode(t[this.options.textNodeName],e,a.attrStr,r,s):this.buildObjectNode(a.val,e,a.attrStr,r)}ji.prototype.extractAttributes=function(t){if(!t||typeof t!="object")return null;let e={},r=!1;if(this.options.attributesGroupName&&t[this.options.attributesGroupName]){let s=t[this.options.attributesGroupName];for(let i in s){if(!Object.prototype.hasOwnProperty.call(s,i))continue;let n=i.startsWith(this.options.attributeNamePrefix)?i.substring(this.options.attributeNamePrefix.length):i;e[n]=Ed(s[i]),r=!0}}else for(let s in t){if(!Object.prototype.hasOwnProperty.call(t,s))continue;let i=this.isAttribute(s);i&&(e[i]=Ed(t[s]),r=!0)}return r?e:null};ji.prototype.buildRawContent=function(t){if(typeof t=="string")return t;if(typeof t!="object"||t===null)return String(t);if(t[this.options.textNodeName]!==void 0)return t[this.options.textNodeName];let e="";for(let r in t){if(!Object.prototype.hasOwnProperty.call(t,r)||this.isAttribute(r)||this.options.attributesGroupName&&r===this.options.attributesGroupName)continue;let s=t[r];if(r===this.options.textNodeName)e+=s;else if(Array.isA Line truncated
`):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}function nXe(t,e){let r=t["?xml"];if(r&&typeof r=="object"){if(e.attributesGroupName&&r[e.attributesGroupName]){let i=r[e.attributesGroupName][e.attributeNamePrefix+"version"];if(i)return i}let s=r[e.attributeNamePrefix+"version"];if(s)return s}return"1.0"}function hq(t,e,r,s,i){return!r.sanitizeName||Xf(t,{xmlVersion:i})?t:r.sanitizeName(t,{isAttribute:e,matcher:s.readOnly()})}un.prototype.build=function(t){if(this.options.preserveOrder)return cq(t,this.options);{Array.isArray(t)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(t={[this.options.arrayNodeName]:t});let e=new vc,r=nXe(t,this.options);return this.j2x(t,0,e,r).val}};un.prototype.j2x=function(t,e,r,s){let i="",n="";if(this.options.maxNestedTags&&r.getDepth()>=this.options.maxNestedTags)throw new Error("Maximum nested tags exceeded");let o=this.options.jPath?r.toString():r,a=this.checkStopNode(r);for(let c in t){if(!Object.prototype.hasOwnProperty.call(t,c))continue;let u=c===this.options.textNodeName||c===this.options.cdataPropName||c===this.options.commentPropName||this.options.attributesGroupName&&c===this.options.attributesGroupName||this.isAttribute(c)||c[0]==="?"?c:hq(c,!1,this.options,r,s);if(typeof t[c]>"u")this.isAttribute(c)&&(n+="");else if(t[c]===null)this.isAttribute(c)||u===this.options.cdataPropName||u===this.options.commentPropName?n+="":u[0]==="?"?n+=this.indentate(e)+"<"+u+"?"+this.tagEndChar:n+=this.indentate(e)+"<"+u+"/"+this.tagEndChar;else if(t[c]instanceof Date)n+=this.buildTextValNode(t[c],u,"",e,r);else if(typeof t[c]!="object"){let h=this.isAttribute(c);if(h&&!this.ignoreAttributesFn(h,o)){let d=hq(h,!0,this.options,r,s);i+=this.buildAttrPairStr(d,""+t[c],a)}else if(!h)if(c===this.options.textNodeName){let d=this.options.tagValueProcessor(c,""+t[c]);n+=this.replaceEntitiesValue(d)}else{r.push(u);let d=this.checkStopNode(r);if(r.pop(),d){let f=""+t[c];f===""?n+=this.indentate(e)+"<"+u+this.closeTag(u)+this.tagEndChar:n+=this.indentate(e)+"<"+u+">"+f+"</"+u+this.tagEndChar}else n+=this.buildTextValNode(t[c],u,"",e,r)}}else if(Array.isArray(t[c])){let h=t[c].length,d="",f="";for(let p=0;p<h;p++){let m=t[c][p];if(!(typeof m>"u"))if(m===null)u[0]==="?"?n+=this.indentate(e)+"<"+u+"?"+this.tagEndChar:n+=this.indentate(e)+"<"+u+"/"+this.tagEndChar;else if(typeof m=="object")if(this.options.oneListGroup){r.push(u);let E=this.j2x(m,e+1,r,s);r.pop(),d+=E.val,this.options.attributesGroupName&&m.hasOwnProperty(this.options.attributesGroupName)&&(f+=E.attrStr)}else d+=this.processTextOrObjNode(m,u,e,r,s);else if(this.options.oneListGroup){let E=this.options.tagValueProcessor(u,m);E=this.replaceEntitiesValue(E),d+=E}else{r.push(u);let E=this.checkStopNode(r);if(r.pop(),E){let y=""+m;y===""?d+=this.indentate(e)+"<"+u+this.closeTag(u)+this.tagEndChar:d+=this.indentate(e)+"<"+u+">"+y+"</"+u+this.tagEndChar}else d+=this.buildTextValNode(m,u,"",e,r)}}this.options.oneListGroup&&(d=this.buildObjectNode(d,u,f,e)),n+=d}else if(this.options.attributesGroupName&&c===this.options.attributesGroupName){let h=Object.keys(t[c]),d=h.length;for(let f=0;f<d;f++){let p=hq(h[f],!0,this.options,r,s);i+=this.buildAttrPairStr(p,""+t[c][h[f]],a)}}else n+=this.processTextOrObjNode(t[c],u,e,r,s)}return{attrStr:i,val:n}};un.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+'="'+id(e)+'"'};function oXe(t,e,r,s,i){let n=this.extractAttributes(t);if(s.push(e,n),this.checkStopNode(s)){let c=this.buildRawContent(t),l=this.buildAttributesForStopNode(t);return s.pop(),this.buildObjectNode(c,e,l,r)}let a=this.j2x(t,r+1,s,i);return s.pop(),e[0]==="?"?this.buildTextValNode("",e,a.attrStr,r,s):t[this.options.textNodeName]!==void 0&&Object.keys(t).length===1?this.buildTextValNode(t[this.options.textNodeName],e,a.attrStr,r,s):this.buildObjectNode(a.val,e,a.attrStr,r)}un.prototype.extractAttributes=function(t){if(!t||typeof t!="object")return null;let e={},r=!1;if(this.options.attributesGroupName&&t[this.options.attributesGroupName]){let s=t[this.options.attributesGroupName];for(let i in s){if(!Object.prototype.hasOwnProperty.call(s,i))continue;let n=i.startsWith(this.options.attributeNamePrefix)?i.substring(this.options.attributeNamePrefix.length):i;e[n]=id(s[i]),r=!0}}else for(let s in t){if(!Object.prototype.hasOwnProperty.call(t,s))continue;let i=this.isAttribute(s);i&&(e[i]=id(t[s]),r=!0)}return r?e:null};un.prototype.buildRawContent=function(t){if(typeof t=="string")return t;if(typeof t!="object"||t===null)return String(t);if(t[this.options.textNodeName]!==void 0)return t[this.options.textNodeName];let e="";for(let r in t){if(!Object.prototype.hasOwnProperty.call(t,r)||this.isAttribute(r)||this.options.attributesGroupName&&r===this.options.attributesGroupName)continue;let s=t[r];if(r===this.options.textNodeName)e+=s;else if(Array.isA Line truncated
`)+`
`+this.getCanonicalizedHeadersString(e)+this.getCanonicalizedResourceString(e),s=this.factory.computeHMACSHA256(r);return e.headers.set(Me.AUTHORIZATION,`SharedKey ${this.factory.accountName}:${s}`),e}getHeaderValueToSign(e,r){let s=e.headers.get(r);return!s||r===Me.CONTENT_LENGTH&&s==="0"?"":s}getCanonicalizedHeadersString(e){let r=e.headers.headersArray().filter(i=>i.name.toLowerCase().startsWith(Me.PREFIX_FOR_STORAGE));r.sort((i,n)=>yx(i.name.toLowerCase(),n.name.toLowerCase())),r=r.filter((i,n,o)=>!(n>0&&i.name.toLowerCase()===o[n-1].name.toLowerCase()));let s="";return r.forEach(i=>{s+=`${i.name.toLowerCase().trimRight()}:${i.value.trimLeft()}
`}),s}getCanonicalizedResourceString(e){let r=px(e.url)||"/",s="";s+=`/${this.factory.accountName}${r}`;let i=mx(e.url),n={};if(i){let o=[];for(let a in i)if(Object.prototype.hasOwnProperty.call(i,a)){let c=a.toLowerCase();n[c]=i[a],o.push(c)}o.sort();for(let a of o)s+=`
${a}:${decodeURIComponent(n[a])}`}return s}};var hr=class extends of{accountName;accountKey;constructor(e,r){super(),this.accountName=e,this.accountKey=Buffer.from(r,"base64")}create(e,r){return new pC(e,r,this)}computeHMACSHA256(e){return(0,Goe.createHmac)("sha256",this.accountKey).update(e,"utf8").digest("base64")}};var jr=rc("storage-common");var Co;(function(t){t[t.EXPONENTIAL=0]="EXPONENTIAL",t[t.FIXED=1]="FIXED"})(Co||(Co={}));var Id={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:Co.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},n8e=new _n("The operation was aborted."),mC=class extends ac{retryOptions;constructor(e,r,s=Id){super(e,r),this.retryOptions={retryPolicyType:s.retryPolicyType?s.retryPolicyType:Id.retryPolicyType,maxTries:s.maxTries&&s.maxTries>=1?Math.floor(s.maxTries):Id.maxTries,tryTimeoutInMs:s.tryTimeoutInMs&&s.tryTimeoutInMs>=0?s.tryTimeoutInMs:Id.tryTimeoutInMs,retryDelayInMs:s.retryDelayInMs&&s.retryDelayInMs>=0?Math.min(s.retryDelayInMs,s.maxRetryDelayInMs?s.maxRetryDelayInMs:Id.maxRetryDelayInMs):Id.retryDelayInMs,maxRetryDelayInMs:s.maxRetryDelayInMs&&s.maxRetryDelayInMs>=0?s.maxRetryDelayInMs:Id.maxRetryDelayInMs,secondaryHost:s.secondaryHost?s.secondaryHost:Id.secondaryHost}}async sendRequest(e){return this.attemptSendRequest(e,!1,1)}async attemptSendRequest(e,r,s){let i=e.clone(),n=r||!this.retryOptions.secondaryHost||!(e.method==="GET"||e.method==="HEAD"||e.method==="OPTIONS")||s%2===1;n||(i.url=Ax(i.url,this.retryOptions.secondaryHost)),this.retryOptions.tryTimeoutInMs&&(i.url=Cd(i.url,Ol.Parameters.TIMEOUT,Math.floor(this.retryOptions.tryTimeoutInMs/1e3).toString()));let o;try{if(jr.info(`RetryPolicy: =====> Try=${s} ${n?"Primary":"Secondary"}`),o=await this._nextPolicy.sendRequest(i),!this.shouldRetry(n,s,o))return o;r=r||!n&&o.status===404}catch(a){if(jr.error(`RetryPolicy: Caught error, message: ${a.message}, code: ${a.code}`),!this.shouldRetry(n,s,o,a))throw a}return await this.delay(n,s,e.abortSignal),this.attemptSendRequest(e,r,++s)}shouldRetry(e,r,s,i){if(r>=this.retryOptions.maxTries)return jr.info(`RetryPolicy: Attempt(s) ${r} >= maxTries ${this.retryOptions.maxTries}, no further try.`),!1;let n=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"];if(i){for(let o of n)if(i.name.toUpperCase().includes(o)||i.message.toUpperCase().includes(o)||i.code&&i.code.toString().toUpperCase()===o)return jr.info(`RetryPolicy: Network error ${o} found, will retry.`),!0}if(s||i){let o=s?s.status:i?i.statusCode:0;if(!e&&o===404)return jr.info("RetryPolicy: Secondary access with 404, will retry."),!0;if(o===503||o===500)return jr.info(`RetryPolicy: Will retry for status code ${o}.`),!0}if(s&&s?.status>=400){let o=s.headers.get(Me.X_MS_CopySourceErrorCode);if(o!==void 0)switch(o){case"InternalError":case"OperationTimedOut":case"ServerBusy":return!0}}return i?.code==="PARSE_ERROR"&&i?.message.startsWith('Error "Error: Unclosed root tag')?(jr.info("RetryPolicy: Incomplete XML response likely due to service timeout, will retry."),!0):!1}async delay(e,r,s){let i=0;if(e)switch(this.retryOptions.retryPolicyType){case Co.EXPONENTIAL:i=Math.min((Math.pow(2,r-1)-1)*this.retryOptions.retryDelayInMs,this.retryOptions.maxRetryDelayInMs);break;case Co.FIXED:i=this.retryOptions.retryDelayInMs;break}else i=Math.random()*1e3;return jr.info(`RetryPolicy: Delay for ${i}ms`),gx(i,s,n8e)}};var gC=class{retryOptions;constructor(e){this.retryOptions=e}create(e,r){return new mC(e,r,this.retryOptions)}};var o8e="storageBrowserPolicy";function Hoe(){return{name:o8e,async sendRequest(t,e){return Ct||((t.method==="GET"||t.method==="HEAD")&&(t.url=Cd(t.url,Ol.Parameters.FORCE_BROWSER_NO_CACHE,new Date().getTime().toString())),t.headers.delete(Me.COOKIE),t.headers.delete(Me.CONTENT_LENGTH)),e(t)}}}var a8e="StorageCorrectContentLengthPolicy";function zoe(){function t(e){e.body&&(typeof e.body=="string"||Buffer.isBuffer(e.body))&&e.body.length>0&&e.headers.set(Me.CONTENT_LENGTH,Buffer.byteLength(e.body))}return{name:a8e,async sendRequest(e,r){return t(e),r(e)}}}var c8e="storageRetryPolicy",Zp={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:Co.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},l8e=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"],u8e=new _n("The operation was aborted.");function Voe(t={}){let e=t.retryPolicyType??Zp.retryPolicyType,r=t.maxTries??Zp.maxTries,s=t.retryDelayInMs??Zp.retryDelayInMs,i=t.maxRetryDelayInMs??Zp.maxRetryDelayInMs,n=t.secondaryHost??Zp.secondaryHost,o=t.tryTimeoutInMs??Zp.tryTimeoutInMs;function a({isPrimaryRetry:l,attempt:u,response:d,error:h}){if(u>=r)return jr.info(`RetryPolicy: Attempt(s) ${u} >= maxTries ${r}, no further try.`),!1;if(h){for(let f of l8e)if(h.name.toUpperCase().includes(f)||h.message.toUpperCase().includes(f)||h.code&&h.code.toString().toUpperCase()===f)return Line truncated
`+this.getCanonicalizedHeadersString(e)+this.getCanonicalizedResourceString(e),s=this.factory.computeHMACSHA256(r);return e.headers.set(Fe.AUTHORIZATION,`SharedKey ${this.factory.accountName}:${s}`),e}getHeaderValueToSign(e,r){let s=e.headers.get(r);return!s||r===Fe.CONTENT_LENGTH&&s==="0"?"":s}getCanonicalizedHeadersString(e){let r=e.headers.headersArray().filter(i=>i.name.toLowerCase().startsWith(Fe.PREFIX_FOR_STORAGE));r.sort((i,n)=>wR(i.name.toLowerCase(),n.name.toLowerCase())),r=r.filter((i,n,o)=>!(n>0&&i.name.toLowerCase()===o[n-1].name.toLowerCase()));let s="";return r.forEach(i=>{s+=`${i.name.toLowerCase().trimRight()}:${i.value.trimLeft()}
`}),s}getCanonicalizedResourceString(e){let r=CR(e.url)||"/",s="";s+=`/${this.factory.accountName}${r}`;let i=IR(e.url),n={};if(i){let o=[];for(let a in i)if(Object.prototype.hasOwnProperty.call(i,a)){let c=a.toLowerCase();n[c]=i[a],o.push(c)}o.sort();for(let a of o)s+=`
${a}:${decodeURIComponent(n[a])}`}return s}};var gr=class extends tp{accountName;accountKey;constructor(e,r){super(),this.accountName=e,this.accountKey=Buffer.from(r,"base64")}create(e,r){return new t0(e,r,this)}computeHMACSHA256(e){return(0,xde.createHmac)("sha256",this.accountKey).update(e,"utf8").digest("base64")}};var rs=Sc("storage-common");var Uo;(function(t){t[t.EXPONENTIAL=0]="EXPONENTIAL",t[t.FIXED=1]="FIXED"})(Uo||(Uo={}));var od={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:Uo.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},AXe=new Jn("The operation was aborted."),r0=class extends Tc{retryOptions;constructor(e,r,s=od){super(e,r),this.retryOptions={retryPolicyType:s.retryPolicyType?s.retryPolicyType:od.retryPolicyType,maxTries:s.maxTries&&s.maxTries>=1?Math.floor(s.maxTries):od.maxTries,tryTimeoutInMs:s.tryTimeoutInMs&&s.tryTimeoutInMs>=0?s.tryTimeoutInMs:od.tryTimeoutInMs,retryDelayInMs:s.retryDelayInMs&&s.retryDelayInMs>=0?Math.min(s.retryDelayInMs,s.maxRetryDelayInMs?s.maxRetryDelayInMs:od.maxRetryDelayInMs):od.retryDelayInMs,maxRetryDelayInMs:s.maxRetryDelayInMs&&s.maxRetryDelayInMs>=0?s.maxRetryDelayInMs:od.maxRetryDelayInMs,secondaryHost:s.secondaryHost?s.secondaryHost:od.secondaryHost}}async sendRequest(e){return this.attemptSendRequest(e,!1,1)}async attemptSendRequest(e,r,s){let i=e.clone(),n=r||!this.retryOptions.secondaryHost||!(e.method==="GET"||e.method==="HEAD"||e.method==="OPTIONS")||s%2===1;n||(i.url=ER(i.url,this.retryOptions.secondaryHost)),this.retryOptions.tryTimeoutInMs&&(i.url=nd(i.url,du.Parameters.TIMEOUT,Math.floor(this.retryOptions.tryTimeoutInMs/1e3).toString()));let o;try{if(rs.info(`RetryPolicy: =====> Try=${s} ${n?"Primary":"Secondary"}`),o=await this._nextPolicy.sendRequest(i),!this.shouldRetry(n,s,o))return o;r=r||!n&&o.status===404}catch(a){if(rs.error(`RetryPolicy: Caught error, message: ${a.message}, code: ${a.code}`),!this.shouldRetry(n,s,o,a))throw a}return await this.delay(n,s,e.abortSignal),this.attemptSendRequest(e,r,++s)}shouldRetry(e,r,s,i){if(r>=this.retryOptions.maxTries)return rs.info(`RetryPolicy: Attempt(s) ${r} >= maxTries ${this.retryOptions.maxTries}, no further try.`),!1;let n=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"];if(i){for(let o of n)if(i.name.toUpperCase().includes(o)||i.message.toUpperCase().includes(o)||i.code&&i.code.toString().toUpperCase()===o)return rs.info(`RetryPolicy: Network error ${o} found, will retry.`),!0}if(s||i){let o=s?s.status:i?i.statusCode:0;if(!e&&o===404)return rs.info("RetryPolicy: Secondary access with 404, will retry."),!0;if(o===503||o===500)return rs.info(`RetryPolicy: Will retry for status code ${o}.`),!0}if(s&&s?.status>=400){let o=s.headers.get(Fe.X_MS_CopySourceErrorCode);if(o!==void 0)switch(o){case"InternalError":case"OperationTimedOut":case"ServerBusy":return!0}}return i?.code==="PARSE_ERROR"&&i?.message.startsWith('Error "Error: Unclosed root tag')?(rs.info("RetryPolicy: Incomplete XML response likely due to service timeout, will retry."),!0):!1}async delay(e,r,s){let i=0;if(e)switch(this.retryOptions.retryPolicyType){case Uo.EXPONENTIAL:i=Math.min((Math.pow(2,r-1)-1)*this.retryOptions.retryDelayInMs,this.retryOptions.maxRetryDelayInMs);break;case Uo.FIXED:i=this.retryOptions.retryDelayInMs;break}else i=Math.random()*1e3;return rs.info(`RetryPolicy: Delay for ${i}ms`),bR(i,s,AXe)}};var s0=class{retryOptions;constructor(e){this.retryOptions=e}create(e,r){return new r0(e,r,this.retryOptions)}};var mXe="storageBrowserPolicy";function Nde(){return{name:mXe,async sendRequest(t,e){return wt||((t.method==="GET"||t.method==="HEAD")&&(t.url=nd(t.url,du.Parameters.FORCE_BROWSER_NO_CACHE,new Date().getTime().toString())),t.headers.delete(Fe.COOKIE),t.headers.delete(Fe.CONTENT_LENGTH)),e(t)}}}var gXe="StorageCorrectContentLengthPolicy";function Rde(){function t(e){e.body&&(typeof e.body=="string"||Buffer.isBuffer(e.body))&&e.body.length>0&&e.headers.set(Fe.CONTENT_LENGTH,Buffer.byteLength(e.body))}return{name:gXe,async sendRequest(e,r){return t(e),r(e)}}}var yXe="storageRetryPolicy",ag={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:Uo.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},EXe=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"],CXe=new Jn("The operation was aborted.");function vde(t={}){let e=t.retryPolicyType??ag.retryPolicyType,r=t.maxTries??ag.maxTries,s=t.retryDelayInMs??ag.retryDelayInMs,i=t.maxRetryDelayInMs??ag.maxRetryDelayInMs,n=t.secondaryHost??ag.secondaryHost,o=t.tryTimeoutInMs??ag.tryTimeoutInMs;function a({isPrimaryRetry:l,attempt:u,response:h,error:d}){if(u>=r)return rs.info(`RetryPolicy: Attempt(s) ${u} >= maxTries ${r}, no further try.`),!1;if(d){for(let f of EXe)if(d.name.toUpperCase().includes(f)||d.message.toUpperCase().includes(f)||d.code&&d.code.toString().toUpperCase()===f)return Line truncated
`)+`
`+s(n)+i(n),a=(0,$oe.createHmac)("sha256",t.accountKey).update(o,"utf8").digest("base64");n.headers.set(Me.AUTHORIZATION,`SharedKey ${t.accountName}:${a}`)}function r(n,o){let a=n.headers.get(o);return!a||o===Me.CONTENT_LENGTH&&a==="0"?"":a}function s(n){let o=[];for(let[c,l]of n.headers)c.toLowerCase().startsWith(Me.PREFIX_FOR_STORAGE)&&o.push({name:c,value:l});o.sort((c,l)=>yx(c.name.toLowerCase(),l.name.toLowerCase())),o=o.filter((c,l,u)=>!(l>0&&c.name.toLowerCase()===u[l-1].name.toLowerCase()));let a="";return o.forEach(c=>{a+=`${c.name.toLowerCase().trimRight()}:${c.value.trimLeft()}
`}),a}function i(n){let o=px(n.url)||"/",a="";a+=`/${t.accountName}${o}`;let c=mx(n.url),l={};if(c){let u=[];for(let d in c)if(Object.prototype.hasOwnProperty.call(c,d)){let h=d.toLowerCase();l[h]=c[d],u.push(h)}u.sort();for(let d of u)a+=`
${d}:${decodeURIComponent(l[d])}`}return a}return{name:d8e,async sendRequest(n,o){return e(n),o(n)}}}var h8e="storageRequestFailureDetailsParserPolicy";function joe(){return{name:h8e,async sendRequest(t,e){try{return await e(t)}catch(r){throw typeof r=="object"&&r!==null&&r.response&&r.response.parsedBody&&r.response.parsedBody.code==="InvalidHeaderValue"&&r.response.parsedBody.HeaderName==="x-ms-version"&&(r.message=`The provided service version is not enabled on this storage account. Please see https://learn.microsoft.com/rest/api/storageservices/versioning-for-the-azure-storage-services for additional information.
`),r}}}}var Joe=require("node:crypto"),Ex=class{accountName;userDelegationKey;key;constructor(e,r){this.accountName=e,this.userDelegationKey=r,this.key=Buffer.from(r.value,"base64")}computeHMACSHA256(e){return(0,Joe.createHmac)("sha256",this.key).update(e,"utf8").digest("base64")}};var Cx="12.31.0",Ix="2026-02-06";var bx="https://storage.azure.com/.default",kl={Parameters:{FORCE_BROWSER_NO_CACHE:"_",SIGNATURE:"sig",SNAPSHOT:"snapshot",VERSIONID:"versionid",TIMEOUT:"timeout"}};var Aa="",YL="*",f8e=1*1024*1024;var A8e=4*f8e;var Yoe="AES256",Woe="DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;",Koe=["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"],Xoe=["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"],Zoe="BlobUsesCustomerSpecifiedEncryption",eae="BlobDoesNotUseCustomerSpecifiedEncryption",tae=["10000","10001","10002","10003","10004","10100","10101","10102","10103","10104","11000","11001","11002","11003","11004","11100","11101","11102","11103","11104"];function Ml(t){if(!t||typeof t!="object")return!1;let e=t;return Array.isArray(e.factories)&&typeof e.options=="object"&&typeof e.toServiceClientOptions=="function"}var yC=class{factories;options;constructor(e,r={}){this.factories=e,this.options=r}toServiceClientOptions(){return{httpClient:this.options.httpClient,requestPolicyFactories:this.factories}}};function Rr(t,e={}){t||(t=new er);let r=new yC([],e);return r._credential=t,r}function p8e(t){let e=[m8e,rae,g8e,y8e,E8e,C8e,b8e];if(t.factories.length){let r=t.factories.filter(s=>!e.some(i=>i(s)));if(r.length){let s=r.some(i=>I8e(i));return{wrappedPolicies:BL(r),afterRetry:s}}}}function WL(t){let{httpClient:e,...r}=t.options,s=t._coreHttpClient;s||(s=e?SL(e):jL(),t._coreHttpClient=s);let i=t._corePipeline;if(!i){let n=`azsdk-js-azure-storage-blob/${Cx}`,o=r.userAgentOptions&&r.userAgentOptions.userAgentPrefix?`${r.userAgentOptions.userAgentPrefix} ${n}`:`${n}`;i=eC({...r,loggingOptions:{additionalAllowedHeaderNames:Koe,additionalAllowedQueryParameters:Xoe,logger:lx.info},userAgentOptions:{userAgentPrefix:o},serializationOptions:{stringifyXML:cx,serializerOptions:{xml:{xmlCharKey:"#"}}},deserializationOptions:{parseXML:VL,serializerOptions:{xml:{xmlCharKey:"#"}}}}),i.removePolicy({phase:"Retry"}),i.removePolicy({name:eL}),i.addPolicy(zoe()),i.addPolicy(Voe(r.retryOptions),{phase:"Retry"}),i.addPolicy(joe()),i.addPolicy(Hoe());let a=p8e(t);a&&i.addPolicy(a.wrappedPolicies,a.afterRetry?{afterPhase:"Retry"}:void 0);let c=KL(t);Pn(c)?i.addPolicy(jp({credential:c,scopes:r.audience??bx Line truncated
`),n=e.computeHMACSHA256(i);return{sasQueryParameters:new Ea(t.version,n,s,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType),stringToSign:i}}function m5e(t,e){if(t=pf(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",s=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",s=t.versionId));let i;t.permissions&&(t.blobName?i=Bc.parse(t.permissions.toString()).toString():i=Sc.parse(t.permissions.toString()).toString());let n=[i||"",t.startsOn?It(t.startsOn,!1):"",t.expiresOn?It(t.expiresOn,!1):"",Af(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?ya(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,s,t.cacheControl?t.cacheControl:"",t.contentDisposition?t.contentDisposition:"",t.contentEncoding?t.contentEncoding:"",t.contentLanguage?t.contentLanguage:"",t.contentType?t.contentType:""].join(`
`),o=e.computeHMACSHA256(n);return{sasQueryParameters:new Ea(t.version,o,i,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType),stringToSign:n}}function g5e(t,e){if(t=pf(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",s=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",s=t.versionId));let i;t.permissions&&(t.blobName?i=Bc.parse(t.permissions.toString()).toString():i=Sc.parse(t.permissions.toString()).toString());let n=[i||"",t.startsOn?It(t.startsOn,!1):"",t.expiresOn?It(t.expiresOn,!1):"",Af(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?ya(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,s,t.encryptionScope,t.cacheControl?t.cacheControl:"",t.contentDisposition?t.contentDisposition:"",t.contentEncoding?t.contentEncoding:"",t.contentLanguage?t.contentLanguage:"",t.contentType?t.contentType:""].join(`
`),o=e.computeHMACSHA256(n);return{sasQueryParameters:new Ea(t.version,o,i,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,void 0,void 0,void 0,t.encryptionScope),stringToSign:n}}function y5e(t,e){if(t=pf(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",s=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",s=t.versionId));let i;t.permissions&&(t.blobName?i=Bc.parse(t.permissions.toString()).toString():i=Sc.parse(t.permissions.toString()).toString());let n=[i||"",t.startsOn?It(t.startsOn,!1):"",t.expiresOn?It(t.expiresOn,!1):"",Af(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?It(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?It(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.ipRange?ya(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,s,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),o=e.computeHMACSHA256(n);return{sasQueryParameters:new Ea(t.version,o,i,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey),stringToSign:n}}function E5e(t,e){if(t=pf(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",s=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",s=t.versionId));let i;t.permissions&&(t.blobName?i=Bc.parse(t.permissions.toString()).toString():i=Sc.parse(t.permissions.toString()).toString());let n=[i||"",t.startsOn?It(t.startsOn,!1):"",t.expiresOn?It(t.expiresOn,!1):"",Af(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?It(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?It(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?ya(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,s,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),o=e.computeHMACSHA256(n);return{sasQueryParameters:new Ea(t.version,o,i,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId),stringToSign:n}}function C5e(t,e){if(t=pf(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",s=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",s=t.versionId));let i;t.permissions&&(t.blobName?i=Bc.parse(t.permissions.toString()).toString():i=Sc.parse(t.permissions.toString()).toString());let n=[i||"",t.startsOn?It(t.startsOn,!1):"",t.expiresOn?It(t.expiresOn,!1):"",Af(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?It(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?It(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?ya(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,s,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),o=e.computeHMACSHA256(n);return{sasQueryParameters:new Ea(t.version,o,i,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId,t.encryptionScope),stringToSign:n}}function I5e(t,e){if(t=pf(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",s=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",s=t.versionId));let i;t.permissions&&(t.blobName?i=Bc.parse(t.permissions.toString()).toString():i=Sc.parse(t.permissions.toString()).toString());let n=[i||"",t.startsOn?It(t.startsOn,!1):"",t.expiresOn?It(t.expiresOn,!1):"",Af(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?It(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?It(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,void 0,t.delegatedUserObjectId,t.ipRange?ya(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,s,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),o=e.computeHMACSHA256(n);return{sasQueryParameters:new Ea(t.version,o,i,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId,t.encryptionScope,t.delegatedUserObjectId),stringToSign:n}}function Af(t,e,r){let s=[`/blob/${t}/${e}`];return r&&s.push(`/${r}`),s.join("")}function pf(t){let e=t.version?t.version:Ix;if(t.snapshotTime&&e<"2018-11-09")throw RangeError("'version' must be >= '2018-11-09' when providing 'snapshotTime'.");if(t.blobName===void 0&&t.snapshotTime)throw RangeError("Must provide 'blobName' when providing 'snapshotTime'.");if(t.versionId&&e<"2019-10-10")throw RangeError("'version' must be >= '2019-10-10' when providing 'versionId'.");if(t.blobName===void 0&&t.versionId)throw RangeError("Must provide 'blobName' when providing 'versionId'.");if(t.permissions&&t.permissions.setImmutabilityPolicy&&e<"2020-08-04")throw RangeError("'version' must be >= '2020-08-04' when provided 'i' permission.");if(t.permissions&&t.permissions.deleteVersion&&e<"2019-10-10")throw RangeError("'version' must be >= '2019-10-10' when providing 'x' permission.");if(t.permissions&&t.permissions.permanentDelete&&e<"2019-10-10")throw RangeError("'version' must be >= '2019-10-10' when providing 'y' permission.");if(t.permissions&&t.permissions.tag&&e<"2019-12-12")throw RangeError("'version' must be >= '2019-12-12' when providing 't' permission.");if(e<"2020-02-10"&&t.permissions&&(t.permissions.move||t.permissions.execute))throw RangeError("'version' must be >= '2020-02-10' when providing the 'm' or 'e' permission.");if(e<"2021-04-10"&&t.permissions&&t.permissions.filterByTags)throw RangeError("'version' must be >= '2021-04-10' when providing the 'f' permission.");if(e<"2020-02-10"&&(t.preauthorizedAgentObjectId||t.correlationId))throw RangeError("'version' must be >= '2020-02-10' when providing 'preauthorizedAgentObjectId' or 'correlationId'.");if(t.encryptionScope&&e<"2020-12-06")throw RangeError("'version' must be >= '2020-12-06' when provided 'encryptionScope' in SAS.");return t.version=e,t}var QC=class{_leaseId;_url;_containerOrBlobOperation;_isContainer;get leaseId(){return this._leaseId}get url(){return this._url}constructor(e,r){let s=e.storageClientContext;this._url=e.url,e.name===void 0?(this._isContainer=!0,this._containerOrBlobOperation=s.container):(this._isContainer=!1,this._containerOrBlobOperation=s.blob),r||(r=Vp()),this._leaseId=r}async acquireLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==Aa||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==Aa||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 be.withSpan("BlobLeaseClient-acquireLease",r,async s=>Se(await this._containerOrBlobOperation.acquireLease({abortSignal:r.abortSignal,duration:e,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},proposedLeaseId:this._leaseId,tracingOptions:s.tracingOptions})))}async changeLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==Aa||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==Aa||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 be.withSpan("BlobLeaseClient-changeLease",r,async s=>{let i=Se(await this._containerOrBlobOperation.changeLease(this._leaseId,e,{abortSignal:r.abortSignal,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},tracingOptions:s.tracingOptions}));return this._leaseId=e,i})}async releaseLease(e={}){if(this._isContainer&&(e.conditions?.ifMatch&&e.conditions?.ifMatch!==Aa||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==Aa||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 be.withSpan("BlobLeaseClient-releaseLease",e,async r=>Se(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!==Aa||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==Aa||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 be.withSpan("BlobLeaseClient-renewLease",e,async r=>this._containerOrBlobOperation.renewLease(this._leaseId,{abortSignal:e.ab Line truncated
If you are using self-hosted runners, please make sure your runner has access to all GitHub endpoints: https://docs.github.com/en/actions/hosting-your-own-runners/managing-self-hosted-runners/about-self-hosted-runners#communication-between-self-hosted-runners-and-github`;super(r),this.code=e,this.name="NetworkError"}};dm.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var Ef=class extends Error{constructor(){super(`Cache storage quota has been hit. Unable to upload any new cache entries. Usage is recalculated every 6-12 hours.
More info on storage limits: https://docs.github.com/en/billing/managing-billing-for-github-actions/about-billing-for-github-actions#calculating-minute-and-storage-spending`),this.name="UsageError"}};Ef.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var UC=class extends Error{constructor(e){super(e),this.name="RateLimitError"}};var yYe=function(t,e,r,s){function i(n){return n instanceof r?n:new r(function(o){o(n)})}return new(r||(r=Promise))(function(n,o){function a(u){try{l(s.next(u))}catch(d){o(d)}}function c(u){try{l(s.throw(u))}catch(d){o(d)}}function l(u){u.done?n(u.value):i(u.value).then(a,c)}l((s=s.apply(t,e||[])).next())})},Mq=class{constructor(e){this.contentLength=e,this.sentBytes=0,this.displayedComplete=!1,this.startTime=Date.now()}setSentBytes(e){this.sentBytes=e}getTransferredBytes(){return this.sentBytes}isDone(){return this.getTransferredBytes()===this.contentLength}display(){if(this.displayedComplete)return;let e=this.sentBytes,r=(100*(e/this.contentLength)).toFixed(1),s=Date.now()-this.startTime,i=(e/(1024*1024)/(s/1e3)).toFixed(1);H(`Sent ${e} of ${this.contentLength} (${r}%), ${i} MBs/sec`),this.isDone()&&(this.displayedComplete=!0)}onProgress(){return e=>{this.setSentBytes(e.loadedBytes)}}startDisplayTimer(e=1e3){let r=()=>{this.display(),this.isDone()||(this.timeoutHandle=setTimeout(r,e))};this.timeoutHandle=setTimeout(r,e)}stopDisplayTimer(){this.timeoutHandle&&(clearTimeout(this.timeoutHandle),this.timeoutHandle=void 0),this.display()}};function nle(t,e,r){return yYe(this,void 0,void 0,function*(){var s;let i=new zl(t),n=i.getBlockBlobClient(),o=new Mq((s=r?.archiveSizeBytes)!==null&&s!==void 0?s:0),a={blockSize:r?.uploadChunkSize,concurrency:r?.uploadConcurrency,maxSingleShotSize:128*1024*1024,onProgress:o.onProgress()};try{o.startDisplayTimer(),T(`BlobClient: ${i.name}:${i.accountName}:${i.containerName}`);let c=yield n.uploadFile(e,a);if(c._response.status>=400)throw new xN(`uploadCacheArchiveSDK: upload failed with status code ${c._response.status}`);return c}catch(c){throw or(`uploadCacheArchiveSDK: internal error uploading cache archive: ${c.message}`),c}finally{o.stopDisplayTimer()}})}var ale=M(require("buffer"),1),xc=M(require("fs"),1),cle=M(require("stream"),1),lle=M(require("util"),1);var NN=function(t,e,r,s){function i(n){return n instanceof r?n:new r(function(o){o(n)})}return new(r||(r=Promise))(function(n,o){function a(u){try{l(s.next(u))}catch(d){o(d)}}function c(u){try{l(s.throw(u))}catch(d){o(d)}}function l(u){u.done?n(u.value):i(u.value).then(a,c)}l((s=s.apply(t,e||[])).next())})};function RN(t){return t?t>=200&&t<300:!1}function EYe(t){return t?t>=500:!0}function CYe(t){return t?[Zt.BadGateway,Zt.ServiceUnavailable,Zt.GatewayTimeout].includes(t):!1}function IYe(t){return NN(this,void 0,void 0,function*(){return new Promise(e=>setTimeout(e,t))})}function ole(t,e,r){return NN(this,arguments,void 0,function*(s,i,n,o=eS,a=tS,c=void 0){let l="",u=1;for(;u<=o;){let d,h,f=!1;try{d=yield i()}catch(A){c&&(d=c(A)),f=!0,l=A.message}if(d&&(h=n(d),!EYe(h)))return d;if(h&&(f=CYe(h),l=`Cache service responded with ${h}`),T(`${s} - Attempt ${u} of ${o} failed with error: ${l}`),!f){T(`${s} - Error is not retryable`);break}yield IYe(a),u++}throw Error(`${s} failed: ${l}`)})}function qC(t,e){return NN(this,arguments,void 0,function*(r,s,i=eS,n=tS){return yield ole(r,s,o=>o.statusCode,i,n,o=>{if(o instanceof za)return{statusCode:o.statusCode,result:null,headers:{},error:o}})})}function hm(t,e){return NN(this,arguments,void 0,function*(r,s,i=eS,n=tS){return yield ole(r,s,o=>o.message.statusCode,i,n)})}var So=function(t,e,r,s){function i(n){return n instanceof r?n:new r(function(o){o(n)})}return new(r||(r=Promise))(function(n,o){function a(u){try{l(s.next(u))}catch(d){o(d)}}function c(u){try{l(s.throw(u))}catch(d){o(d)}}function l(u){u.done?n(u.value):i(u.value).then(a,c)}l((s=s.apply(t,e||[])).next())})};function bYe(t,e){return So(this,void 0,void 0,function*(){yield lle.promisify(cle.pipeline)(t.message,e)})}var TN=class{constructor(e){this.contentLength=e,this.segmentIndex=0,this.segmentSize=0,this.segmentOffset=0,this.receivedBytes=0,this.displayedComplete=!1,this.startTime=Date.now()}nextSegment(e){this.segmentOffset=this.segmentOffset+this.segmentSize,this.segmentIndex=this.segmentIndex+1,this.segmentSize=e,this.receivedBytes=0,T(`Downloading segment at offset ${this.segmentOffset} with length ${this.segmentSize}...`)}setReceivedBytes(e){this.receivedBytes=e}getTransferredBytes(){return this.segmentOffset+this.receivedBytes}isDone(){return this.getTransferredBytes()===this.contentLength}display(){if(this.displayedComplete)return;let e=this.segmentOffset+this.receivedBytes,r=(100*(e/this.contentLength)).toFixed(1),s=Date.now()-this.startTime,i=(e/(1024*1024)/(s/1e3)).toFixed(1);H(`Received ${e} of ${this.contentLength} (${r}%), ${i} MBs/sec`),this.isDone()&&(this.displayedComplete=!0)}onProgress(){return e=>{this.setReceivedBytes(e.loadedBytes)}}startDisplayTimer(e= Line truncated
Other caches with similar key:`);for(let a of n?.artifactCaches||[])T(`Cache Key: ${a?.cacheKey}, Cache Version: ${a?.cacheVersion}, Cache Scope: ${a?.scope}, Cache Created: ${a?.creationTime}`)}}})}function qq(t,e,r){return Yi(this,void 0,void 0,function*(){let s=new Ele.URL(t),i=fle(r);s.hostname.endsWith(".blob.core.windows.net")?i.useAzureSdk?yield dle(t,e,i):i.concurrentBlobDownloads?yield ule(t,e,i):yield QN(t,e):yield QN(t,e)})}function Ile(t,e,r){return Yi(this,void 0,void 0,function*(){let s=Uq(),i=Mp(e,r?.compressionMethod,r?.enableCrossOsArchive),n={key:t,version:i,cacheSize:r?.cacheSize};return yield qC("reserveCache",()=>Yi(this,void 0,void 0,function*(){return s.postJson(HC("caches"),n)}))})}function yle(t,e){return`bytes ${t}-${e}/*`}function QYe(t,e,r,s,i){return Yi(this,void 0,void 0,function*(){T(`Uploading chunk of size ${i-s+1} bytes at offset ${s} with content range: ${yle(s,i)}`);let n={"Content-Type":"application/octet-stream","Content-Range":yle(s,i)},o=yield hm(`uploadChunk (start: ${s}, end: ${i})`,()=>Yi(this,void 0,void 0,function*(){return t.sendStream("PATCH",e,r(),n)}));if(!RN(o.message.statusCode))throw new Error(`Cache service responded with ${o.message.statusCode} during upload chunk.`)})}function vYe(t,e,r,s){return Yi(this,void 0,void 0,function*(){let i=Xa(r),n=HC(`caches/${e.toString()}`),o=fm.openSync(r,"r"),a=Lq(s),c=pM("uploadConcurrency",a.uploadConcurrency),l=pM("uploadChunkSize",a.uploadChunkSize),u=[...new Array(c).keys()];T("Awaiting all uploads");let d=0;try{yield Promise.all(u.map(()=>Yi(this,void 0,void 0,function*(){for(;d<i;){let h=Math.min(i-d,l),f=d,A=d+h-1;d+=l,yield QYe(t,n,()=>fm.createReadStream(r,{fd:o,start:f,end:A,autoClose:!1}).on("error",p=>{throw new Error(`Cache upload failed because file read failed with ${p.message}`)}),f,A)}})))}finally{fm.closeSync(o)}})}function _Ye(t,e,r){return Yi(this,void 0,void 0,function*(){let s={size:r};return yield qC("commitCache",()=>Yi(this,void 0,void 0,function*(){return t.postJson(HC(`caches/${e.toString()}`),s)}))})}function Gq(t,e,r,s){return Yi(this,void 0,void 0,function*(){if(Lq(s).useAzureSdk){if(!r)throw new Error("Azure Storage SDK can only be used when a signed URL is provided.");yield nle(r,e,s)}else{let n=Uq();T("Upload cache"),yield vYe(n,t,e,s),T("Commiting cache");let o=Xa(e);H(`Cache Size: ~${Math.round(o/(1024*1024))} MB (${o} B)`);let a=yield _Ye(n,t,o);if(!RN(a.statusCode))throw new Error(`Cache service responded with ${a.statusCode} during commit cache.`);H("Cache saved successfully")}})}var pue=M(cue(),1),vr=M(Qr(),1),Ln=M(Qr(),1),Bf=M(Qr(),1),Sf=M(Qr(),1),xf=M(Qr(),1);var kG=M(Qr(),1),MG=M(Qr(),1),hue=M(Qr(),1),fue=M(Qr(),1),Aue=M(Qr(),1);var PG=M(Qr(),1),DG=M(Qr(),1),lue=M(Qr(),1),uue=M(Qr(),1),due=M(Qr(),1),OG=class extends due.MessageType{constructor(){super("github.actions.results.entities.v1.CacheScope",[{no:1,name:"scope",kind:"scalar",T:9},{no:2,name:"permission",kind:"scalar",T:3}])}create(e){let r={scope:"",permission:"0"};return globalThis.Object.defineProperty(r,uue.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,lue.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,s,i){let n=i??this.create(),o=e.pos+r;for(;e.pos<o;){let[a,c]=e.tag();switch(a){case 1:n.scope=e.string();break;case 2:n.permission=e.int64().toString();break;default:let l=s.readUnknownField;if(l==="throw")throw new globalThis.Error(`Unknown field ${a} (wire type ${c}) for ${this.typeName}`);let u=e.skip(c);l!==!1&&(l===!0?DG.UnknownFieldHandler.onRead:l)(this.typeName,n,a,c,u)}}return n}internalBinaryWrite(e,r,s){e.scope!==""&&r.tag(1,PG.WireType.LengthDelimited).string(e.scope),e.permission!=="0"&&r.tag(2,PG.WireType.Varint).int64(e.permission);let i=s.writeUnknownFields;return i!==!1&&(i==!0?DG.UnknownFieldHandler.onWrite:i)(this.typeName,e,r),r}},gR=new OG;var LG=class extends Aue.MessageType{constructor(){super("github.actions.results.entities.v1.CacheMetadata",[{no:1,name:"repository_id",kind:"scalar",T:3},{no:2,name:"scope",kind:"message",repeat:1,T:()=>gR}])}create(e){let r={repositoryId:"0",scope:[]};return globalThis.Object.defineProperty(r,fue.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,hue.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,s,i){let n=i??this.create(),o=e.pos+r;for(;e.pos<o;){let[a,c]=e.tag();switch(a){case 1:n.repositoryId=e.int64().toString();break;case 2:n.scope.push(gR.internalBinaryRead(e,e.uint32(),s));break;default:let l=s.readUnknownField;if(l==="throw")throw new globalThis.Error(`Unknown field ${a} (wire type ${c}) for ${this.typeName}`);let u=e.skip(c);l!==!1&&(l===!0?MG.UnknownFieldHandler.onRead:l)(this.typeName,n,a,c,u)}}return n}internalBinaryWrite(e,r,s){e.repositoryId!=="0"&&r.tag(1,kG.WireType.Varint).int64(e.repositoryId);for(let n=0;n<e.scope.length;n++)gR.internalBinaryWrite(e.scope[n],r.tag(2,kG.WireType.LengthDelimited).fork(),s).join();let i=s.writeUnknownFields;return i!==!1&&(i==!0?MG.UnknownFieldHandler.onWrite:i)(this.type Line truncated
`));let s=yield ZG(r,"create");yield eH(s,t)})}var Qm=function(t,e,r,s){function i(n){return n instanceof r?n:new r(function(o){o(n)})}return new(r||(r=Promise))(function(n,o){function a(u){try{l(s.next(u))}catch(d){o(d)}}function c(u){try{l(s.throw(u))}catch(d){o(d)}}function l(u){u.done?n(u.value):i(u.value).then(a,c)}l((s=s.apply(t,e||[])).next())})},ba=class t extends Error{constructor(e){super(e),this.name="ValidationError",Object.setPrototypeOf(this,t.prototype)}},Tm=class t extends Error{constructor(e){super(e),this.name="ReserveCacheError",Object.setPrototypeOf(this,t.prototype)}},IR=class t extends Error{constructor(e){super(e),this.name="FinalizeCacheError",Object.setPrototypeOf(this,t.prototype)}};function Eue(t){if(!t||t.length===0)throw new ba("Path Validation Error: At least one directory or file path is required")}function sH(t){if(t.length>512)throw new ba(`Key Validation Error: ${t} cannot be larger than 512 characters.`);if(!/^[^,]*$/.test(t))throw new ba(`Key Validation Error: ${t} cannot contain commas.`)}function iH(){return GC()==="v2"?!!process.env.ACTIONS_RESULTS_URL:!!process.env.ACTIONS_CACHE_URL}function Cue(t,e,r,s){return Qm(this,arguments,void 0,function*(i,n,o,a,c=!1){let l=GC();return T(`Cache service version: ${l}`),Eue(i),l==="v2"?yield j6e(i,n,o,a,c):yield $6e(i,n,o,a,c)})}function $6e(t,e,r,s){return Qm(this,arguments,void 0,function*(i,n,o,a,c=!1){o=o||[];let l=[n,...o];if(T("Resolved Keys:"),T(JSON.stringify(l)),l.length>10)throw new ba("Key Validation Error: Keys are limited to a maximum of 10.");for(let h of l)sH(h);let u=yield GE(),d="";try{let h=yield Cle(l,i,{compressionMethod:u,enableCrossOsArchive:c});if(!h?.archiveLocation)return;if(a?.lookupOnly)return H("Lookup only - skipping download"),h.cacheKey;d=nI.join(yield UE(),fd(u)),T(`Archive Path: ${d}`),yield qq(h.archiveLocation,d,a),Ja()&&(yield iI(d,u));let f=Xa(d);return H(`Cache Size: ~${Math.round(f/(1024*1024))} MB (${f} B)`),yield tH(d,u),H("Cache restored successfully"),h.cacheKey}catch(h){let f=h;if(f.name===ba.name)throw h;f instanceof za&&typeof f.statusCode=="number"&&f.statusCode>=500?xp(`Failed to restore: ${h.message}`):or(`Failed to restore: ${h.message}`)}finally{try{yield qE(d)}catch(h){T(`Failed to delete archive: ${h}`)}}})}function j6e(t,e,r,s){return Qm(this,arguments,void 0,function*(i,n,o,a,c=!1){a=Object.assign(Object.assign({},a),{useAzureSdk:!0}),o=o||[];let l=[n,...o];if(T("Resolved Keys:"),T(JSON.stringify(l)),l.length>10)throw new ba("Key Validation Error: Keys are limited to a maximum of 10.");for(let d of l)sH(d);let u="";try{let d=XG(),h=yield GE(),f={key:n,restoreKeys:o,version:Mp(i,h,c)},A=yield d.GetCacheEntryDownloadURL(f);if(!A.ok){T(`Cache not found for version ${f.version} of keys: ${l.join(", ")}`);return}if(f.key!==A.matchedKey?H(`Cache hit for restore-key: ${A.matchedKey}`):H(`Cache hit for: ${A.matchedKey}`),a?.lookupOnly)return H("Lookup only - skipping download"),A.matchedKey;u=nI.join(yield UE(),fd(h)),T(`Archive path: ${u}`),T(`Starting download of archive to: ${u}`),yield qq(A.signedDownloadUrl,u,a);let E=Xa(u);return H(`Cache Size: ~${Math.round(E/(1024*1024))} MB (${E} B)`),Ja()&&(yield iI(u,h)),yield tH(u,h),H("Cache restored successfully"),A.matchedKey}catch(d){let h=d;if(h.name===ba.name)throw d;h instanceof za&&typeof h.statusCode=="number"&&h.statusCode>=500?xp(`Failed to restore: ${d.message}`):or(`Failed to restore: ${d.message}`)}finally{try{u&&(yield qE(u))}catch(d){T(`Failed to delete archive: ${d}`)}}})}function nH(t,e,r){return Qm(this,arguments,void 0,function*(s,i,n,o=!1){let a=GC();return T(`Cache service version: ${a}`),Eue(s),sH(i),a==="v2"?yield Y6e(s,i,n,o):yield J6e(s,i,n,o)})}function J6e(t,e,r){return Qm(this,arguments,void 0,function*(s,i,n,o=!1){var a,c,l,u,d;let h=yield GE(),f=-1,A=yield AM(s);if(T("Cache Paths:"),T(`${JSON.stringify(A)}`),A.length===0)throw new Error("Path Validation Error: Path(s) specified in the action for caching do(es) not exist, hence no cache is being saved.");let p=yield UE(),E=nI.join(p,fd(h));T(`Archive Path: ${E}`);try{yield rH(p,A,h),Ja()&&(yield iI(E,h));let y=10*1024*1024*1024,C=Xa(E);if(T(`File Size: ${C}`),C>y&&!Fq())throw new Error(`Cache size of ~${Math.round(C/(1024*1024))} MB (${C} B) is over the 10GB limit, not saving cache.`);T("Reserving Cache");let w=yield Ile(i,s,{compressionMethod:h,enableCrossOsArchive:o,cacheSize:C});if(!((a=w?.result)===null||a===void 0)&&a.cacheId)f=(c=w?.result)===null||c===void 0?void 0:c.cacheId;else throw w?.statusCode===400?new Error((u=(l=w?.error)===null||l===void 0?void 0:l.message)!==null&&u!==void 0?u:`Cache size of ~${Math.round(C/(1024*1024))} MB (${C} B) is over the data cap limit, not saving cache.`):new Tm(`Unable to reserve cache with key ${i}, another job may be creating this cache. More details: ${(d=w?.error)===null||d===void 0?void 0:d.message}`);T(`Saving Cache (ID: ${f})`),yield Gq(f,E,"",n)}catch(y){let C=y;if(C.name===ba.name)throw y;C.name===Tm.name Line truncated
`+t.errors.map(e=>` - ${e.message}`).join(`
`)}var s9e=class extends Error{constructor(t,e,r){super(r9e(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},i9e=["method","baseUrl","url","headers","request","query","mediaType","operationName"],n9e=["query","method","url"],wde=/\/api\/v3\/?$/;function o9e(t,e,r){if(r){if(typeof e=="string"&&"query"in r)return Promise.reject(new Error('[@octokit/graphql] "query" cannot be used as variable name'));for(let o in r)if(n9e.includes(o))return Promise.reject(new Error(`[@octokit/graphql] "${o}" cannot be used as variable name`))}let s=typeof e=="string"?Object.assign({query:e},r):e,i=Object.keys(s).reduce((o,a)=>i9e.includes(a)?(o[a]=s[a],o):(o.variables||(o.variables={}),o.variables[a]=s[a],o),{}),n=s.baseUrl||t.endpoint.DEFAULTS.baseUrl;return wde.test(n)&&(i.url=n.replace(wde,"/api/graphql")),t(i).then(o=>{if(o.data.errors){let a={};for(let c of Object.keys(o.headers))a[c]=o.headers[c];throw new s9e(i,a,o.data)}return o.data.data})}function bH(t,e){let r=t.defaults(e);return Object.assign((i,n)=>o9e(r,i,n),{defaults:bH.bind(null,r),endpoint:r.endpoint})}var FUt=bH(lI,{headers:{"user-agent":`octokit-graphql.js/${t9e} ${Qd()}`},method:"POST",url:"/graphql"});function Bde(t){return bH(t,{method:"POST",url:"/graphql"})}var wH="(?:[a-zA-Z0-9_-]+)",Sde="\\.",xde=new RegExp(`^${wH}${Sde}${wH}${Sde}${wH}$`),a9e=xde.test.bind(xde);async function c9e(t){let e=a9e(t),r=t.startsWith("v1.")||t.startsWith("ghs_"),s=t.startsWith("ghu_");return{type:"token",token:t,tokenType:e?"app":r?"installation":s?"user-to-server":"oauth"}}function l9e(t){return t.split(/\./).length===3?`bearer ${t}`:`token ${t}`}async function u9e(t,e,r,s){let i=e.endpoint.merge(r,s);return i.headers.authorization=l9e(t),e(i)}var Nde=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(c9e.bind(null,e),{hook:u9e.bind(null,e)})};var BH="7.0.6";var Rde=()=>{},d9e=console.warn.bind(console),h9e=console.error.bind(console);function f9e(t={}){return typeof t.debug!="function"&&(t.debug=Rde),typeof t.info!="function"&&(t.info=Rde),typeof t.warn!="function"&&(t.warn=d9e),typeof t.error!="function"&&(t.error=h9e),t}var Tde=`octokit-core.js/${BH} ${Qd()}`,kR=class{static VERSION=BH;static defaults(e){return class extends this{constructor(...s){let i=s[0]||{};if(typeof e=="function"){super(e(i));return}super(Object.assign({},e,i,i.userAgent&&e.userAgent?{userAgent:`${i.userAgent} ${e.userAgent}`}:null))}}}static plugins=[];static plugin(...e){let r=this.plugins;return class extends this{static plugins=r.concat(e.filter(i=>!r.includes(i)))}}constructor(e={}){let r=new ide.Collection,s={baseUrl:lI.endpoint.DEFAULTS.baseUrl,headers:{},request:Object.assign({},e.request,{hook:r.bind(null,"request")}),mediaType:{previews:[],format:""}};if(s.headers["user-agent"]=e.userAgent?`${e.userAgent} ${Tde}`:Tde,e.baseUrl&&(s.baseUrl=e.baseUrl),e.previews&&(s.mediaType.previews=e.previews),e.timeZone&&(s.headers["time-zone"]=e.timeZone),this.request=lI.defaults(s),this.graphql=Bde(this.request).defaults(s),this.log=f9e(e.log),this.hook=r,e.authStrategy){let{authStrategy:n,...o}=e,a=n(Object.assign({request:this.request,log:this.log,octokit:this,octokitOptions:o},e.auth));r.wrap("request",a.hook),this.auth=a}else if(!e.auth)this.auth=async()=>({type:"unauthenticated"});else{let n=Nde(e.auth);r.wrap("request",n.hook),this.auth=n}let i=this.constructor;for(let n=0;n<i.plugins.length;++n)Object.assign(this,i.plugins[n](this,e))}request;graphql;log;hook;auth};var SH="17.0.0";var A9e={actions:{addCustomLabelsToSelfHostedRunnerForOrg:["POST /orgs/{org}/actions/runners/{runner_id}/labels"],addCustomLabelsToSelfHostedRunnerForRepo:["POST /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],addRepoAccessToSelfHostedRunnerGroupInOrg:["PUT /orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/{repository_id}"],addSelectedRepoToOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}"],addSelectedRepoToOrgVariable:["PUT /orgs/{org}/actions/variables/{name}/repositories/{repository_id}"],approveWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/approve"],cancelWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/cancel"],createEnvironmentVariable:["POST /repos/{owner}/{repo}/environments/{environment_name}/variables"],createHostedRunnerForOrg:["POST /orgs/{org}/actions/hosted-runners"],createOrUpdateEnvironmentSecret:["PUT /repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}"],createOrUpdateOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}"],createOrUpdateRepoSecret:["PUT /repos/{owner}/{repo}/actions/secrets/{secret_name}"],createOrgVaria Line truncated
`,o).length:d,l?(a===null?0:a.length)+c.length:0,l?c.length+d:0);return h<f},parse:function(s,i,n,o){let{bom:a,comment_no_infix:c,encoding:l,from_line:u,ltrim:d,max_record_size:h,raw:f,relax_quotes:A,rtrim:p,skip_empty_lines:E,to:y,to_line:C}=this.options,{comment:w,escape:x,quote:N,record_delimiter:P}=this.options,{bomSkipped:D,previousBuf:k,rawBuffer:z,escapeIsQuote:Z}=this.state,F;if(k===void 0)if(s===void 0){o();return}else F=s;else k!==void 0&&s===void 0?F=k:F=Buffer.concat([k,s]);if(D===!1)if(a===!1)this.state.bomSkipped=!0;else if(F.length<3){if(i===!1){this.state.previousBuf=F;return}}else{for(let $ in km)if(km[$].compare(F,0,km[$].length)===0){let ae=km[$].length;this.state.bufBytesStart+=ae,F=F.slice(ae);let We=OH({...this.original_options,encoding:$});for(let Ie in We)this.options[Ie]=We[Ie];({comment:w,escape:x,quote:N}=this.options);break}this.state.bomSkipped=!0}let q=F.length,G;for(G=0;G<q&&!this.__needMoreData(G,q,i);G++){if(this.state.wasRowDelimiter===!0&&(this.info.lines++,this.state.wasRowDelimiter=!1),C!==-1&&this.info.lines>C){this.state.stop=!0,o();return}this.state.quoting===!1&&P.length===0&&this.__autoDiscoverRecordDelimiter(F,G)&&(P=this.options.record_delimiter);let $=F[G];if(f===!0&&z.append($),($===R9e||$===T9e)&&this.state.wasRowDelimiter===!1&&(this.state.wasRowDelimiter=!0),this.state.escaping===!0)this.state.escaping=!1;else{if(x!==null&&this.state.quoting===!0&&this.__isEscape(F,G,$)&&G+x.length<q)if(Z){if(this.__isQuote(F,G+x.length)){this.state.escaping=!0,G+=x.length-1;continue}}else{this.state.escaping=!0,G+=x.length-1;continue}if(this.state.commenting===!1&&this.__isQuote(F,G))if(this.state.quoting===!0){let Ie=F[G+N.length],ce=p&&this.__isCharTrimable(F,G+N.length),nt=w!==null&&this.__compareBytes(w,F,G+N.length,Ie),Ke=this.__isDelimiter(F,G+N.length,Ie),gt=P.length===0?this.__autoDiscoverRecordDelimiter(F,G+N.length):this.__isRecordDelimiter(Ie,F,G+N.length);if(x!==null&&this.__isEscape(F,G,$)&&this.__isQuote(F,G+x.length))G+=x.length-1;else if(!Ie||Ke||gt||nt||ce){this.state.quoting=!1,this.state.wasQuoting=!0,G+=N.length-1;continue}else if(A===!1){let Qe=this.__error(new pt("CSV_INVALID_CLOSING_QUOTE",["Invalid Closing Quote:",`got "${String.fromCharCode(Ie)}"`,`at line ${this.info.lines}`,"instead of delimiter, record delimiter, trimable character","(if activated) or comment"],this.options,this.__infoField()));if(Qe!==void 0)return Qe}else this.state.quoting=!1,this.state.wasQuoting=!0,this.state.field.prepend(N),G+=N.length-1}else if(this.state.field.length!==0){if(A===!1){let Ie=this.__infoField(),ce=Object.keys(km).map(Ke=>km[Ke].equals(this.state.field.toString())?Ke:!1).filter(Boolean)[0],nt=this.__error(new pt("INVALID_OPENING_QUOTE",["Invalid Opening Quote:",`a quote is found on field ${JSON.stringify(Ie.column)} at line ${Ie.lines}, value is ${JSON.stringify(this.state.field.toString(l))}`,ce?`(${ce} bom)`:void 0],this.options,Ie,{field:this.state.field}));if(nt!==void 0)return nt}}else{this.state.quoting=!0,G+=N.length-1;continue}if(this.state.quoting===!1){let Ie=this.__isRecordDelimiter($,F,G);if(Ie!==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)>=u){this.state.enabled=!0,this.__resetField(),this.__resetRecord(),G+=Ie-1;continue}if(E===!0&&this.state.wasQuoting===!1&&this.state.record.length===0&&this.state.field.length===0){this.info.empty_lines++,G+=Ie-1;continue}this.info.bytes=this.state.bufBytesStart+G;let Ke=this.__onField();if(Ke!==void 0)return Ke;this.info.bytes=this.state.bufBytesStart+G+Ie;let gt=this.__onRecord(n);if(gt!==void 0)return gt;if(y!==-1&&this.info.records>=y){this.state.stop=!0,o();return}}this.state.commenting=!1,G+=Ie-1;continue}if(this.state.commenting)continue;if(w!==null&&(c===!1||this.state.record.length===0&&this.state.field.length===0)&&this.__compareBytes(w,F,G,$)!==0){this.state.commenting=!0;continue}let ce=this.__isDelimiter(F,G,$);if(ce!==0){this.info.bytes=this.state.bufBytesStart+G;let nt=this.__onField();if(nt!==void 0)return nt;G+=ce-1;continue}}}if(this.state.commenting===!1&&h!==0&&this.state.record_length+this.state.field.length>h)return this.__error(new pt("CSV_MAX_RECORD_SIZE",["Max Record Size:","record exceed the maximum number of tolerated bytes",`of ${h}`,`at line ${this.info.lines}`],this.options,this.__infoField()));let ae=d===!1||this.state.quoting===!0||this.state.field.length!==0||!this.__isCharTrimable(F,G),We=p===!1||this.state.wasQuoting===!1;if(ae===!0&&We===!0)this.state.field.append($);else{if(p===!0&&!this.__isCharTrimable(F,G))return this.__error(new pt("CSV_NON_TRIMABLE_CHAR_AFTER_CLOSING_QUOTE",["Invalid Closing Quote:","found non trimable byte after quote",`at line ${this.info.lines}`],this.options,this.__infoField()));ae===!1&&(G+=this.__isCharTrimable(F,G)-1);continue}}if(i===!0)if(this.state.quoting===!0) Line truncated
`+s(n)+i(n),a=(0,Tde.createHmac)("sha256",t.accountKey).update(o,"utf8").digest("base64");n.headers.set(Fe.AUTHORIZATION,`SharedKey ${t.accountName}:${a}`)}function r(n,o){let a=n.headers.get(o);return!a||o===Fe.CONTENT_LENGTH&&a==="0"?"":a}function s(n){let o=[];for(let[c,l]of n.headers)c.toLowerCase().startsWith(Fe.PREFIX_FOR_STORAGE)&&o.push({name:c,value:l});o.sort((c,l)=>wR(c.name.toLowerCase(),l.name.toLowerCase())),o=o.filter((c,l,u)=>!(l>0&&c.name.toLowerCase()===u[l-1].name.toLowerCase()));let a="";return o.forEach(c=>{a+=`${c.name.toLowerCase().trimRight()}:${c.value.trimLeft()}
`}),a}function i(n){let o=CR(n.url)||"/",a="";a+=`/${t.accountName}${o}`;let c=IR(n.url),l={};if(c){let u=[];for(let h in c)if(Object.prototype.hasOwnProperty.call(c,h)){let d=h.toLowerCase();l[d]=c[h],u.push(d)}u.sort();for(let h of u)a+=`
${h}:${decodeURIComponent(l[h])}`}return a}return{name:IXe,async sendRequest(n,o){return e(n),o(n)}}}var bXe="storageRequestFailureDetailsParserPolicy";function _de(){return{name:bXe,async sendRequest(t,e){try{return await e(t)}catch(r){throw typeof r=="object"&&r!==null&&r.response&&r.response.parsedBody&&r.response.parsedBody.code==="InvalidHeaderValue"&&r.response.parsedBody.HeaderName==="x-ms-version"&&(r.message=`The provided service version is not enabled on this storage account. Please see https://learn.microsoft.com/rest/api/storageservices/versioning-for-the-azure-storage-services for additional information.
`),r}}}}var Qde=require("node:crypto"),BR=class{accountName;userDelegationKey;key;constructor(e,r){this.accountName=e,this.userDelegationKey=r,this.key=Buffer.from(r.value,"base64")}computeHMACSHA256(e){return(0,Qde.createHmac)("sha256",this.key).update(e,"utf8").digest("base64")}};var SR="12.31.0",xR="2026-02-06";var NR="https://storage.azure.com/.default",fu={Parameters:{FORCE_BROWSER_NO_CACHE:"_",SIGNATURE:"sig",SNAPSHOT:"snapshot",VERSIONID:"versionid",TIMEOUT:"timeout"}};var Da="",gq="*",wXe=1*1024*1024;var BXe=4*wXe;var Pde="AES256",Ode="DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;",Dde=["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"],kde=["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"],Mde="BlobUsesCustomerSpecifiedEncryption",Lde="BlobDoesNotUseCustomerSpecifiedEncryption",Ude=["10000","10001","10002","10003","10004","10100","10101","10102","10103","10104","11000","11001","11002","11003","11004","11100","11101","11102","11103","11104"];function pu(t){if(!t||typeof t!="object")return!1;let e=t;return Array.isArray(e.factories)&&typeof e.options=="object"&&typeof e.toServiceClientOptions=="function"}var i0=class{factories;options;constructor(e,r={}){this.factories=e,this.options=r}toServiceClientOptions(){return{httpClient:this.options.httpClient,requestPolicyFactories:this.factories}}};function Or(t,e={}){t||(t=new ir);let r=new i0([],e);return r._credential=t,r}function SXe(t){let e=[xXe,Fde,NXe,RXe,vXe,TXe,QXe];if(t.factories.length){let r=t.factories.filter(s=>!e.some(i=>i(s)));if(r.length){let s=r.some(i=>_Xe(i));return{wrappedPolicies:$F(r),afterRetry:s}}}}function yq(t){let{httpClient:e,...r}=t.options,s=t._coreHttpClient;s||(s=e?jF(e):Aq(),t._coreHttpClient=s);let i=t._corePipeline;if(!i){let n=`azsdk-js-azure-storage-blob/${SR}`,o=r.userAgentOptions&&r.userAgentOptions.userAgentPrefix?`${r.userAgentOptions.userAgentPrefix} ${n}`:`${n}`;i=FI({...r,loggingOptions:{additionalAllowedHeaderNames:Dde,additionalAllowedQueryParameters:kde,logger:pR.info},userAgentOptions:{userAgentPrefix:o},serializationOptions:{stringifyXML:fR,serializerOptions:{xml:{xmlCharKey:"#"}}},deserializationOptions:{parseXML:fq,serializerOptions:{xml:{xmlCharKey:"#"}}}}),i.removePolicy({phase:"Retry"}),i.removePolicy({name:bF}),i.addPolicy(Rde()),i.addPolicy(vde(r.retryOptions),{phase:"Retry"}),i.addPolicy(_de()),i.addPolicy(Nde());let a=SXe(t);a&&i.addPolicy(a.wrappedPolicies,a.afterRetry?{afterPhase:"Retry"}:void 0);let c=Eq(t);Yn(c)?i.addPolicy(tg({credential:c,scopes:r.audience??NR Line truncated
`),n=e.computeHMACSHA256(i);return{sasQueryParameters:new Fa(t.version,n,s,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType),stringToSign:i}}function x7e(t,e){if(t=up(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",s=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",s=t.versionId));let i;t.permissions&&(t.blobName?i=jc.parse(t.permissions.toString()).toString():i=Jc.parse(t.permissions.toString()).toString());let n=[i||"",t.startsOn?Bt(t.startsOn,!1):"",t.expiresOn?Bt(t.expiresOn,!1):"",lp(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?Ua(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,s,t.cacheControl?t.cacheControl:"",t.contentDisposition?t.contentDisposition:"",t.contentEncoding?t.contentEncoding:"",t.contentLanguage?t.contentLanguage:"",t.contentType?t.contentType:""].join(`
`),o=e.computeHMACSHA256(n);return{sasQueryParameters:new Fa(t.version,o,i,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType),stringToSign:n}}function N7e(t,e){if(t=up(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",s=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",s=t.versionId));let i;t.permissions&&(t.blobName?i=jc.parse(t.permissions.toString()).toString():i=Jc.parse(t.permissions.toString()).toString());let n=[i||"",t.startsOn?Bt(t.startsOn,!1):"",t.expiresOn?Bt(t.expiresOn,!1):"",lp(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?Ua(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,s,t.encryptionScope,t.cacheControl?t.cacheControl:"",t.contentDisposition?t.contentDisposition:"",t.contentEncoding?t.contentEncoding:"",t.contentLanguage?t.contentLanguage:"",t.contentType?t.contentType:""].join(`
`),o=e.computeHMACSHA256(n);return{sasQueryParameters:new Fa(t.version,o,i,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,void 0,void 0,void 0,t.encryptionScope),stringToSign:n}}function R7e(t,e){if(t=up(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",s=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",s=t.versionId));let i;t.permissions&&(t.blobName?i=jc.parse(t.permissions.toString()).toString():i=Jc.parse(t.permissions.toString()).toString());let n=[i||"",t.startsOn?Bt(t.startsOn,!1):"",t.expiresOn?Bt(t.expiresOn,!1):"",lp(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Bt(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Bt(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.ipRange?Ua(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,s,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),o=e.computeHMACSHA256(n);return{sasQueryParameters:new Fa(t.version,o,i,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey),stringToSign:n}}function v7e(t,e){if(t=up(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",s=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",s=t.versionId));let i;t.permissions&&(t.blobName?i=jc.parse(t.permissions.toString()).toString():i=Jc.parse(t.permissions.toString()).toString());let n=[i||"",t.startsOn?Bt(t.startsOn,!1):"",t.expiresOn?Bt(t.expiresOn,!1):"",lp(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Bt(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Bt(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?Ua(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,s,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),o=e.computeHMACSHA256(n);return{sasQueryParameters:new Fa(t.version,o,i,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId),stringToSign:n}}function T7e(t,e){if(t=up(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",s=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",s=t.versionId));let i;t.permissions&&(t.blobName?i=jc.parse(t.permissions.toString()).toString():i=Jc.parse(t.permissions.toString()).toString());let n=[i||"",t.startsOn?Bt(t.startsOn,!1):"",t.expiresOn?Bt(t.expiresOn,!1):"",lp(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Bt(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Bt(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?Ua(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,s,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),o=e.computeHMACSHA256(n);return{sasQueryParameters:new Fa(t.version,o,i,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId,t.encryptionScope),stringToSign:n}}function _7e(t,e){if(t=up(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",s=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",s=t.versionId));let i;t.permissions&&(t.blobName?i=jc.parse(t.permissions.toString()).toString():i=Jc.parse(t.permissions.toString()).toString());let n=[i||"",t.startsOn?Bt(t.startsOn,!1):"",t.expiresOn?Bt(t.expiresOn,!1):"",lp(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Bt(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Bt(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,void 0,t.delegatedUserObjectId,t.ipRange?Ua(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,s,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),o=e.computeHMACSHA256(n);return{sasQueryParameters:new Fa(t.version,o,i,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId,t.encryptionScope,t.delegatedUserObjectId),stringToSign:n}}function lp(t,e,r){let s=[`/blob/${t}/${e}`];return r&&s.push(`/${r}`),s.join("")}function up(t){let e=t.version?t.version:xR;if(t.snapshotTime&&e<"2018-11-09")throw RangeError("'version' must be >= '2018-11-09' when providing 'snapshotTime'.");if(t.blobName===void 0&&t.snapshotTime)throw RangeError("Must provide 'blobName' when providing 'snapshotTime'.");if(t.versionId&&e<"2019-10-10")throw RangeError("'version' must be >= '2019-10-10' when providing 'versionId'.");if(t.blobName===void 0&&t.versionId)throw RangeError("Must provide 'blobName' when providing 'versionId'.");if(t.permissions&&t.permissions.setImmutabilityPolicy&&e<"2020-08-04")throw RangeError("'version' must be >= '2020-08-04' when provided 'i' permission.");if(t.permissions&&t.permissions.deleteVersion&&e<"2019-10-10")throw RangeError("'version' must be >= '2019-10-10' when providing 'x' permission.");if(t.permissions&&t.permissions.permanentDelete&&e<"2019-10-10")throw RangeError("'version' must be >= '2019-10-10' when providing 'y' permission.");if(t.permissions&&t.permissions.tag&&e<"2019-12-12")throw RangeError("'version' must be >= '2019-12-12' when providing 't' permission.");if(e<"2020-02-10"&&t.permissions&&(t.permissions.move||t.permissions.execute))throw RangeError("'version' must be >= '2020-02-10' when providing the 'm' or 'e' permission.");if(e<"2021-04-10"&&t.permissions&&t.permissions.filterByTags)throw RangeError("'version' must be >= '2021-04-10' when providing the 'f' permission.");if(e<"2020-02-10"&&(t.preauthorizedAgentObjectId||t.correlationId))throw RangeError("'version' must be >= '2020-02-10' when providing 'preauthorizedAgentObjectId' or 'correlationId'.");if(t.encryptionScope&&e<"2020-12-06")throw RangeError("'version' must be >= '2020-12-06' when provided 'encryptionScope' in SAS.");return t.version=e,t}var m0=class{_leaseId;_url;_containerOrBlobOperation;_isContainer;get leaseId(){return this._leaseId}get url(){return this._url}constructor(e,r){let s=e.storageClientContext;this._url=e.url,e.name===void 0?(this._isContainer=!0,this._containerOrBlobOperation=s.container):(this._isContainer=!1,this._containerOrBlobOperation=s.blob),r||(r=Zm()),this._leaseId=r}async acquireLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==Da||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==Da||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 Be.withSpan("BlobLeaseClient-acquireLease",r,async s=>Ne(await this._containerOrBlobOperation.acquireLease({abortSignal:r.abortSignal,duration:e,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},proposedLeaseId:this._leaseId,tracingOptions:s.tracingOptions})))}async changeLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==Da||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==Da||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 Be.withSpan("BlobLeaseClient-changeLease",r,async s=>{let i=Ne(await this._containerOrBlobOperation.changeLease(this._leaseId,e,{abortSignal:r.abortSignal,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},tracingOptions:s.tracingOptions}));return this._leaseId=e,i})}async releaseLease(e={}){if(this._isContainer&&(e.conditions?.ifMatch&&e.conditions?.ifMatch!==Da||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==Da||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 Be.withSpan("BlobLeaseClient-releaseLease",e,async r=>Ne(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!==Da||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==Da||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 Be.withSpan("BlobLeaseClient-renewLease",e,async r=>this._containerOrBlobOperation.renewLease(this._leaseId,{abortSignal:e.ab Line truncated
If you are using self-hosted runners, please make sure your runner has access to all GitHub endpoints: https://docs.github.com/en/actions/hosting-your-own-runners/managing-self-hosted-runners/about-self-hosted-runners#communication-between-self-hosted-runners-and-github`;super(r),this.code=e,this.name="NetworkError"}};Eg.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var pp=class extends Error{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"}};pp.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var x0=class extends Error{constructor(e){super(e),this.name="RateLimitError"}};var Tet=function(t,e,r,s){function i(n){return n instanceof r?n:new r(function(o){o(n)})}return new(r||(r=Promise))(function(n,o){function a(u){try{l(s.next(u))}catch(h){o(h)}}function c(u){try{l(s.throw(u))}catch(h){o(h)}}function l(u){u.done?n(u.value):i(u.value).then(a,c)}l((s=s.apply(t,e||[])).next())})},n8=class{constructor(e){this.contentLength=e,this.sentBytes=0,this.displayedComplete=!1,this.startTime=Date.now()}setSentBytes(e){this.sentBytes=e}getTransferredBytes(){return this.sentBytes}isDone(){return this.getTransferredBytes()===this.contentLength}display(){if(this.displayedComplete)return;let e=this.sentBytes,r=(100*(e/this.contentLength)).toFixed(1),s=Date.now()-this.startTime,i=(e/(1024*1024)/(s/1e3)).toFixed(1);jr(`Sent ${e} of ${this.contentLength} (${r}%), ${i} MBs/sec`),this.isDone()&&(this.displayedComplete=!0)}onProgress(){return e=>{this.setSentBytes(e.loadedBytes)}}startDisplayTimer(e=1e3){let r=()=>{this.display(),this.isDone()||(this.timeoutHandle=setTimeout(r,e))};this.timeoutHandle=setTimeout(r,e)}stopDisplayTimer(){this.timeoutHandle&&(clearTimeout(this.timeoutHandle),this.timeoutHandle=void 0),this.display()}};function Hpe(t,e,r){return Tet(this,void 0,void 0,function*(){var s;let i=new Iu(t),n=i.getBlockBlobClient(),o=new n8((s=r?.archiveSizeBytes)!==null&&s!==void 0?s:0),a={blockSize:r?.uploadChunkSize,concurrency:r?.uploadConcurrency,maxSingleShotSize:128*1024*1024,onProgress:o.onProgress()};try{o.startDisplayTimer(),se(`BlobClient: ${i.name}:${i.accountName}:${i.containerName}`);let c=yield n.uploadFile(e,a);if(c._response.status>=400)throw new _v(`uploadCacheArchiveSDK: upload failed with status code ${c._response.status}`);return c}catch(c){throw _a(`uploadCacheArchiveSDK: internal error uploading cache archive: ${c.message}`),c}finally{o.stopDisplayTimer()}})}var Vpe=O(require("buffer"),1),Yc=O(require("fs"),1),$pe=O(require("stream"),1),jpe=O(require("util"),1);var Qv=function(t,e,r,s){function i(n){return n instanceof r?n:new r(function(o){o(n)})}return new(r||(r=Promise))(function(n,o){function a(u){try{l(s.next(u))}catch(h){o(h)}}function c(u){try{l(s.throw(u))}catch(h){o(h)}}function l(u){u.done?n(u.value):i(u.value).then(a,c)}l((s=s.apply(t,e||[])).next())})};function Pv(t){return t?t>=200&&t<300:!1}function _et(t){return t?t>=500:!0}function Qet(t){return t?[mr.BadGateway,mr.ServiceUnavailable,mr.GatewayTimeout].includes(t):!1}function Pet(t){return Qv(this,void 0,void 0,function*(){return new Promise(e=>setTimeout(e,t))})}function zpe(t,e,r){return Qv(this,arguments,void 0,function*(s,i,n,o=iN,a=nN,c=void 0){let l="",u=1;for(;u<=o;){let h,d,f=!1;try{h=yield i()}catch(p){c&&(h=c(p)),f=!0,l=p.message}if(h&&(d=n(h),!_et(d)))return h;if(d&&(f=Qet(d),l=`Cache service responded with ${d}`),se(`${s} - Attempt ${u} of ${o} failed with error: ${l}`),!f){se(`${s} - Error is not retryable`);break}yield Pet(a),u++}throw Error(`${s} failed: ${l}`)})}function N0(t,e){return Qv(this,arguments,void 0,function*(r,s,i=iN,n=nN){return yield zpe(r,s,o=>o.statusCode,i,n,o=>{if(o instanceof Ic)return{statusCode:o.statusCode,result:null,headers:{},error:o}})})}function Cg(t,e){return Qv(this,arguments,void 0,function*(r,s,i=iN,n=nN){return yield zpe(r,s,o=>o.message.statusCode,i,n)})}var zo=function(t,e,r,s){function i(n){return n instanceof r?n:new r(function(o){o(n)})}return new(r||(r=Promise))(function(n,o){function a(u){try{l(s.next(u))}catch(h){o(h)}}function c(u){try{l(s.throw(u))}catch(h){o(h)}}function l(u){u.done?n(u.value):i(u.value).then(a,c)}l((s=s.apply(t,e||[])).next())})};function Oet(t,e){return zo(this,void 0,void 0,function*(){yield jpe.promisify($pe.pipeline)(t.message,e)})}var Ov=class{constructor(e){this.contentLength=e,this.segmentIndex=0,this.segmentSize=0,this.segmentOffset=0,this.receivedBytes=0,this.displayedComplete=!1,this.startTime=Date.now()}nextSegment(e){this.segmentOffset=this.segmentOffset+this.segmentSize,this.segmentIndex=this.segmentIndex+1,this.segmentSize=e,this.receivedBytes=0,se(`Downloading segment at offset ${this.segmentOffset} with length ${this.segmentSize}...`)}setReceivedBytes(e){this.receivedBytes=e}getTransferredBytes(){return this.segmentOffset+this.receivedBytes}isDone(){return this.getTransferredBytes()===this.contentLength}display(){if(this.displayedComplete)return;let e=this.segmentOffset+this.receivedBytes,r=(100*(e/this.contentLength)).toFixed(1),s=Date.now()-this.startTime,i=(e/(1024*1024)/(s/1e3)).toFixed(1);jr(`Received ${e} of ${this.contentLength} (${r}%), ${i} MBs/sec`),this.isDone()&&(this.displayedComplete=!0)}onProgress(){return e=>{this.setReceivedBytes(e.loadedBytes)}}startDisplayTi Line truncated
Other caches with similar key:`);for(let a of n?.artifactCaches||[])se(`Cache Key: ${a?.cacheKey}, Cache Version: ${a?.cacheVersion}, Cache Scope: ${a?.scope}, Cache Created: ${a?.creationTime}`)}}})}function l8(t,e,r){return dn(this,void 0,void 0,function*(){let s=new sAe.URL(t),i=Kpe(r);s.hostname.endsWith(".blob.core.windows.net")?i.useAzureSdk?yield Ype(t,e,i):i.concurrentBlobDownloads?yield Jpe(t,e,i):yield Dv(t,e):yield Dv(t,e)})}function nAe(t,e,r){return dn(this,void 0,void 0,function*(){let s=c8(),i=zm(e,r?.compressionMethod,r?.enableCrossOsArchive),n={key:t,version:i,cacheSize:r?.cacheSize};return yield N0("reserveCache",()=>dn(this,void 0,void 0,function*(){return s.postJson(v0("caches"),n)}))})}function rAe(t,e){return`bytes ${t}-${e}/*`}function Get(t,e,r,s,i){return dn(this,void 0,void 0,function*(){se(`Uploading chunk of size ${i-s+1} bytes at offset ${s} with content range: ${rAe(s,i)}`);let n={"Content-Type":"application/octet-stream","Content-Range":rAe(s,i)},o=yield Cg(`uploadChunk (start: ${s}, end: ${i})`,()=>dn(this,void 0,void 0,function*(){return t.sendStream("PATCH",e,r(),n)}));if(!Pv(o.message.statusCode))throw new Error(`Cache service responded with ${o.message.statusCode} during upload chunk.`)})}function Het(t,e,r,s){return dn(this,void 0,void 0,function*(){let i=Cc(r),n=v0(`caches/${e.toString()}`),o=Ig.openSync(r,"r"),a=o8(s),c=OU("uploadConcurrency",a.uploadConcurrency),l=OU("uploadChunkSize",a.uploadChunkSize),u=[...new Array(c).keys()];se("Awaiting all uploads");let h=0;try{yield Promise.all(u.map(()=>dn(this,void 0,void 0,function*(){for(;h<i;){let d=Math.min(i-h,l),f=h,p=h+d-1;h+=l,yield Get(t,n,()=>Ig.createReadStream(r,{fd:o,start:f,end:p,autoClose:!1}).on("error",m=>{throw new Error(`Cache upload failed because file read failed with ${m.message}`)}),f,p)}})))}finally{Ig.closeSync(o)}})}function zet(t,e,r){return dn(this,void 0,void 0,function*(){let s={size:r};return yield N0("commitCache",()=>dn(this,void 0,void 0,function*(){return t.postJson(v0(`caches/${e.toString()}`),s)}))})}function u8(t,e,r,s){return dn(this,void 0,void 0,function*(){if(o8(s).useAzureSdk){if(!r)throw new Error("Azure Storage SDK can only be used when a signed URL is provided.");yield Hpe(r,e,s)}else{let n=c8();se("Upload cache"),yield Het(n,t,e,s),se("Commiting cache");let o=Cc(e);jr(`Cache Size: ~${Math.round(o/(1024*1024))} MB (${o} B)`);let a=yield zet(n,t,o);if(!Pv(a.statusCode))throw new Error(`Cache service responded with ${a.statusCode} during commit cache.`);jr("Cache saved successfully")}})}var ZAe=O($Ae(),1),Mr=O(kr(),1),eo=O(kr(),1),Ep=O(kr(),1),Cp=O(kr(),1),Ip=O(kr(),1);var iz=O(kr(),1),nz=O(kr(),1),WAe=O(kr(),1),KAe=O(kr(),1),XAe=O(kr(),1);var tz=O(kr(),1),rz=O(kr(),1),jAe=O(kr(),1),JAe=O(kr(),1),YAe=O(kr(),1),sz=class extends YAe.MessageType{constructor(){super("github.actions.results.entities.v1.CacheScope",[{no:1,name:"scope",kind:"scalar",T:9},{no:2,name:"permission",kind:"scalar",T:3}])}create(e){let r={scope:"",permission:"0"};return globalThis.Object.defineProperty(r,JAe.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,jAe.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,s,i){let n=i??this.create(),o=e.pos+r;for(;e.pos<o;){let[a,c]=e.tag();switch(a){case 1:n.scope=e.string();break;case 2:n.permission=e.int64().toString();break;default:let l=s.readUnknownField;if(l==="throw")throw new globalThis.Error(`Unknown field ${a} (wire type ${c}) for ${this.typeName}`);let u=e.skip(c);l!==!1&&(l===!0?rz.UnknownFieldHandler.onRead:l)(this.typeName,n,a,c,u)}}return n}internalBinaryWrite(e,r,s){e.scope!==""&&r.tag(1,tz.WireType.LengthDelimited).string(e.scope),e.permission!=="0"&&r.tag(2,tz.WireType.Varint).int64(e.permission);let i=s.writeUnknownFields;return i!==!1&&(i==!0?rz.UnknownFieldHandler.onWrite:i)(this.typeName,e,r),r}},bT=new sz;var oz=class extends XAe.MessageType{constructor(){super("github.actions.results.entities.v1.CacheMetadata",[{no:1,name:"repository_id",kind:"scalar",T:3},{no:2,name:"scope",kind:"message",repeat:1,T:()=>bT}])}create(e){let r={repositoryId:"0",scope:[]};return globalThis.Object.defineProperty(r,KAe.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,WAe.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,s,i){let n=i??this.create(),o=e.pos+r;for(;e.pos<o;){let[a,c]=e.tag();switch(a){case 1:n.repositoryId=e.int64().toString();break;case 2:n.scope.push(bT.internalBinaryRead(e,e.uint32(),s));break;default:let l=s.readUnknownField;if(l==="throw")throw new globalThis.Error(`Unknown field ${a} (wire type ${c}) for ${this.typeName}`);let u=e.skip(c);l!==!1&&(l===!0?nz.UnknownFieldHandler.onRead:l)(this.typeName,n,a,c,u)}}return n}internalBinaryWrite(e,r,s){e.repositoryId!=="0"&&r.tag(1,iz.WireType.Varint).int64(e.repositoryId);for(let n=0;n<e.scope.length;n++)bT.internalBinaryWrite(e.scope[n],r.tag(2,iz.WireType.LengthDelimited).fork(),s).join();let i=s.writeUnknownFields;return i!==!1&&(i==!0?nz.UnknownFieldHandler.onWrite:i)(th Line truncated
`));let s=yield Iz(r,"create");yield bz(s,t)})}var Lg=function(t,e,r,s){function i(n){return n instanceof r?n:new r(function(o){o(n)})}return new(r||(r=Promise))(function(n,o){function a(u){try{l(s.next(u))}catch(h){o(h)}}function c(u){try{l(s.throw(u))}catch(h){o(h)}}function l(u){u.done?n(u.value):i(u.value).then(a,c)}l((s=s.apply(t,e||[])).next())})},Ha=class t extends Error{constructor(e){super(e),this.name="ValidationError",Object.setPrototypeOf(this,t.prototype)}},Mg=class t extends Error{constructor(e){super(e),this.name="ReserveCacheError",Object.setPrototypeOf(this,t.prototype)}},xT=class t extends Error{constructor(e){super(e),this.name="FinalizeCacheError",Object.setPrototypeOf(this,t.prototype)}};function sme(t){if(!t||t.length===0)throw new Ha("Path Validation Error: At least one directory or file path is required")}function Sz(t){if(t.length>512)throw new Ha(`Key Validation Error: ${t} cannot be larger than 512 characters.`);if(!/^[^,]*$/.test(t))throw new Ha(`Key Validation Error: ${t} cannot contain commas.`)}function xz(){return R0()==="v2"?!!process.env.ACTIONS_RESULTS_URL:!!process.env.ACTIONS_CACHE_URL}function ime(t,e,r,s){return Lg(this,arguments,void 0,function*(i,n,o,a,c=!1){let l=R0();return se(`Cache service version: ${l}`),sme(i),l==="v2"?yield nst(i,n,o,a,c):yield ist(i,n,o,a,c)})}function ist(t,e,r,s){return Lg(this,arguments,void 0,function*(i,n,o,a,c=!1){o=o||[];let l=[n,...o];if(se("Resolved Keys:"),se(JSON.stringify(l)),l.length>10)throw new Ha("Key Validation Error: Keys are limited to a maximum of 10.");for(let d of l)Sz(d);let u=yield xI(),h="";try{let d=yield iAe(l,i,{compressionMethod:u,enableCrossOsArchive:c});if(!d?.archiveLocation)return;if(a?.lookupOnly)return jr("Lookup only - skipping download"),d.cacheKey;h=V0.join(yield BI(),Kh(u)),se(`Archive Path: ${h}`),yield l8(d.archiveLocation,h,a),Df()&&(yield z0(h,u));let f=Cc(h);return jr(`Cache Size: ~${Math.round(f/(1024*1024))} MB (${f} B)`),yield wz(h,u),jr("Cache restored successfully"),d.cacheKey}catch(d){let f=d;if(f.name===Ha.name)throw d;f instanceof Ic&&typeof f.statusCode=="number"&&f.statusCode>=500?lI(`Failed to restore: ${d.message}`):_a(`Failed to restore: ${d.message}`)}finally{try{yield SI(h)}catch(d){se(`Failed to delete archive: ${d}`)}}})}function nst(t,e,r,s){return Lg(this,arguments,void 0,function*(i,n,o,a,c=!1){a=Object.assign(Object.assign({},a),{useAzureSdk:!0}),o=o||[];let l=[n,...o];if(se("Resolved Keys:"),se(JSON.stringify(l)),l.length>10)throw new Ha("Key Validation Error: Keys are limited to a maximum of 10.");for(let h of l)Sz(h);let u="";try{let h=Cz(),d=yield xI(),f={key:n,restoreKeys:o,version:zm(i,d,c)},p=yield h.GetCacheEntryDownloadURL(f);if(!p.ok){se(`Cache not found for version ${f.version} of keys: ${l.join(", ")}`);return}if(f.key!==p.matchedKey?jr(`Cache hit for restore-key: ${p.matchedKey}`):jr(`Cache hit for: ${p.matchedKey}`),a?.lookupOnly)return jr("Lookup only - skipping download"),p.matchedKey;u=V0.join(yield BI(),Kh(d)),se(`Archive path: ${u}`),se(`Starting download of archive to: ${u}`),yield l8(p.signedDownloadUrl,u,a);let E=Cc(u);return jr(`Cache Size: ~${Math.round(E/(1024*1024))} MB (${E} B)`),Df()&&(yield z0(u,d)),yield wz(u,d),jr("Cache restored successfully"),p.matchedKey}catch(h){let d=h;if(d.name===Ha.name)throw h;d instanceof Ic&&typeof d.statusCode=="number"&&d.statusCode>=500?lI(`Failed to restore: ${h.message}`):_a(`Failed to restore: ${h.message}`)}finally{try{u&&(yield SI(u))}catch(h){se(`Failed to delete archive: ${h}`)}}})}function Nz(t,e,r){return Lg(this,arguments,void 0,function*(s,i,n,o=!1){let a=R0();return se(`Cache service version: ${a}`),sme(s),Sz(i),a==="v2"?yield ast(s,i,n,o):yield ost(s,i,n,o)})}function ost(t,e,r){return Lg(this,arguments,void 0,function*(s,i,n,o=!1){var a,c,l,u,h;let d=yield xI(),f=-1,p=yield PU(s);if(se("Cache Paths:"),se(`${JSON.stringify(p)}`),p.length===0)throw new Error("Path Validation Error: Path(s) specified in the action for caching do(es) not exist, hence no cache is being saved.");let m=yield BI(),E=V0.join(m,Kh(d));se(`Archive Path: ${E}`);try{yield Bz(m,p,d),Df()&&(yield z0(E,d));let y=10*1024*1024*1024,C=Cc(E);if(se(`File Size: ${C}`),C>y&&!a8())throw new Error(`Cache size of ~${Math.round(C/(1024*1024))} MB (${C} B) is over the 10GB limit, not saving cache.`);se("Reserving Cache");let w=yield nAe(i,s,{compressionMethod:d,enableCrossOsArchive:o,cacheSize:C});if(!((a=w?.result)===null||a===void 0)&&a.cacheId)f=(c=w?.result)===null||c===void 0?void 0:c.cacheId;else throw w?.statusCode===400?new Error((u=(l=w?.error)===null||l===void 0?void 0:l.message)!==null&&u!==void 0?u:`Cache size of ~${Math.round(C/(1024*1024))} MB (${C} B) is over the data cap limit, not saving cache.`):new Mg(`Unable to reserve cache with key ${i}, another job may be creating this cache. More details: ${(h=w?.error)===null||h===void 0?void 0:h.message}`);se(`Saving Cache (ID: ${f})`),yield u8(f,E,"",n)}catch(y){let C=y;if(C.name===Ha.nam Line truncated
`,o).length:h,l?(a===null?0:a.length)+c.length:0,l?c.length+h:0);return d<f},parse:function(s,i,n,o){let{bom:a,comment_no_infix:c,encoding:l,from_line:u,ltrim:h,max_record_size:d,raw:f,relax_quotes:p,rtrim:m,skip_empty_lines:E,to:y,to_line:C}=this.options,{comment:w,escape:S,quote:N,record_delimiter:P}=this.options,{bomSkipped:Q,previousBuf:k,rawBuffer:G,escapeIsQuote:X}=this.state,L;if(k===void 0)if(s===void 0){o();return}else L=s;else k!==void 0&&s===void 0?L=k:L=Buffer.concat([k,s]);if(Q===!1)if(a===!1)this.state.bomSkipped=!0;else if(L.length<3){if(i===!1){this.state.previousBuf=L;return}}else{for(let V in Kg)if(Kg[V].compare(L,0,Kg[V].length)===0){let re=Kg[V].length;this.state.bufBytesStart+=re,L=L.slice(re);let _e=TV({...this.original_options,encoding:V});for(let we in _e)this.options[we]=_e[we];({comment:w,escape:S,quote:N}=this.options);break}this.state.bomSkipped=!0}let U=L.length,q;for(q=0;q<U&&!this.__needMoreData(q,U,i);q++){if(this.state.wasRowDelimiter===!0&&(this.info.lines++,this.state.wasRowDelimiter=!1),C!==-1&&this.info.lines>C){this.state.stop=!0,o();return}this.state.quoting===!1&&P.length===0&&this.__autoDiscoverRecordDelimiter(L,q)&&(P=this.options.record_delimiter);let V=L[q];if(f===!0&&G.append(V),(V===xot||V===Not)&&this.state.wasRowDelimiter===!1&&(this.state.wasRowDelimiter=!0),this.state.escaping===!0)this.state.escaping=!1;else{if(S!==null&&this.state.quoting===!0&&this.__isEscape(L,q,V)&&q+S.length<U)if(X){if(this.__isQuote(L,q+S.length)){this.state.escaping=!0,q+=S.length-1;continue}}else{this.state.escaping=!0,q+=S.length-1;continue}if(this.state.commenting===!1&&this.__isQuote(L,q))if(this.state.quoting===!0){let we=L[q+N.length],le=m&&this.__isCharTrimable(L,q+N.length),ct=w!==null&&this.__compareBytes(w,L,q+N.length,we),Ze=this.__isDelimiter(L,q+N.length,we),Et=P.length===0?this.__autoDiscoverRecordDelimiter(L,q+N.length):this.__isRecordDelimiter(we,L,q+N.length);if(S!==null&&this.__isEscape(L,q,V)&&this.__isQuote(L,q+S.length))q+=S.length-1;else if(!we||Ze||Et||ct||le){this.state.quoting=!1,this.state.wasQuoting=!0,q+=N.length-1;continue}else if(p===!1){let Pe=this.__error(new gt("CSV_INVALID_CLOSING_QUOTE",["Invalid Closing Quote:",`got "${String.fromCharCode(we)}"`,`at line ${this.info.lines}`,"instead of delimiter, record delimiter, trimable character","(if activated) or comment"],this.options,this.__infoField()));if(Pe!==void 0)return Pe}else this.state.quoting=!1,this.state.wasQuoting=!0,this.state.field.prepend(N),q+=N.length-1}else if(this.state.field.length!==0){if(p===!1){let we=this.__infoField(),le=Object.keys(Kg).map(Ze=>Kg[Ze].equals(this.state.field.toString())?Ze:!1).filter(Boolean)[0],ct=this.__error(new gt("INVALID_OPENING_QUOTE",["Invalid Opening Quote:",`a quote is found on field ${JSON.stringify(we.column)} at line ${we.lines}, value is ${JSON.stringify(this.state.field.toString(l))}`,le?`(${le} bom)`:void 0],this.options,we,{field:this.state.field}));if(ct!==void 0)return ct}}else{this.state.quoting=!0,q+=N.length-1;continue}if(this.state.quoting===!1){let we=this.__isRecordDelimiter(V,L,q);if(we!==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)>=u){this.state.enabled=!0,this.__resetField(),this.__resetRecord(),q+=we-1;continue}if(E===!0&&this.state.wasQuoting===!1&&this.state.record.length===0&&this.state.field.length===0){this.info.empty_lines++,q+=we-1;continue}this.info.bytes=this.state.bufBytesStart+q;let Ze=this.__onField();if(Ze!==void 0)return Ze;this.info.bytes=this.state.bufBytesStart+q+we;let Et=this.__onRecord(n);if(Et!==void 0)return Et;if(y!==-1&&this.info.records>=y){this.state.stop=!0,o();return}}this.state.commenting=!1,q+=we-1;continue}if(this.state.commenting)continue;if(w!==null&&(c===!1||this.state.record.length===0&&this.state.field.length===0)&&this.__compareBytes(w,L,q,V)!==0){this.state.commenting=!0;continue}let le=this.__isDelimiter(L,q,V);if(le!==0){this.info.bytes=this.state.bufBytesStart+q;let ct=this.__onField();if(ct!==void 0)return ct;q+=le-1;continue}}}if(this.state.commenting===!1&&d!==0&&this.state.record_length+this.state.field.length>d)return this.__error(new gt("CSV_MAX_RECORD_SIZE",["Max Record Size:","record exceed the maximum number of tolerated bytes",`of ${d}`,`at line ${this.info.lines}`],this.options,this.__infoField()));let re=h===!1||this.state.quoting===!0||this.state.field.length!==0||!this.__isCharTrimable(L,q),_e=m===!1||this.state.wasQuoting===!1;if(re===!0&&_e===!0)this.state.field.append(V);else{if(m===!0&&!this.__isCharTrimable(L,q))return this.__error(new gt("CSV_NON_TRIMABLE_CHAR_AFTER_CLOSING_QUOTE",["Invalid Closing Quote:","found non trimable byte after quote",`at line ${this.info.lines}`],this.options,this.__infoField()));re===!1&&(q+=this.__isCharTrimable(L,q)-1);continue}}if(i===!0)if(this.state.quoting===!0) Line truncated
`,n),Buffer.from(`
`,n),Buffer.from("\r",n)];e:for(let a=0;a<o.length;a++){let c=o[a].length;for(let l=0;l<c;l++)if(o[a][l]!==s[i+l])continue e;return this.options.record_delimiter.push(o[a]),this.state.recordDelimiterMaxLength=o[a].length,o[a].length}return 0},__error:function(s){let{encoding:i,raw:n,skip_records_with_error:o}=this.options,a=typeof s=="string"?new Error(s):s;if(o){if(this.state.recordHasError=!0,this.options.on_skip!==void 0)try{this.options.on_skip(a,n?this.state.rawBuffer.toString(i):void 0)}catch(c){return c}return}else return a},__infoDataSet:function(){return{...this.info,columns:this.options.columns}},__infoRecord:function(){let{columns:s,raw:i,encoding:n}=this.options;return{...this.__infoDataSet(),error:this.state.error,header:s===!0,index:this.state.record.length,raw:i?this.state.rawBuffer.toString(n):void 0}},__infoField:function(){let{columns:s}=this.options,i=Array.isArray(s);return{...this.__infoRecord(),column:i===!0?s.length>this.state.record.length?s[this.state.record.length].name:null:this.state.record.length,quoting:this.state.wasQuoting}}}};var qn=function(t,e={}){typeof t=="string"&&(t=Buffer.from(t));let r=e&&e.objname?{}:[],s=Hde(e),i=a=>{s.options.objname===void 0?r.push(a):r[a[0]]=a[1]},n=()=>{},o=s.parse(t,!0,i,n);if(o!==void 0)throw o;return r};var yr=class t{static getInputList(e,r){return this.getList(ad(e),r)}static getList(e,r){let s=[];if(e=="")return s;let i=qn(e,{columns:!1,relaxQuotes:!0,comment:r?.comment,comment_no_infix:r?.commentNoInfix,relaxColumnCount:!0,skipEmptyLines:!0,quote:r?.quote});for(let n of i)n.length==1?r?.ignoreComma?s.push(n[0]):s.push(...n[0].split(",")):r?.ignoreComma?s.push(n.join(",")):s.push(...n);return s.filter(n=>n).map(n=>n.trim())}static getInputNumber(e){let r=ad(e);if(r)return parseInt(r)}static async asyncForEach(e,r){for(let s=0;s<e.length;s++)await r(e[s],s,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 s=await Ts("powershell",!0),i=e.replace(/'/g,"''").replace(/"|\n|\r/g,""),n=[];if(r)for(let o in r)n.push(`-${o} '${r[o].replace(/'/g,"''").replace(/"|\n|\r/g,"")}'`);return{command:`"${s}"`,args:["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",`& '${i}' ${n.join(" ")}`]}}static isDirectory(e){try{return zde.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 s=e.lastIndexOf(r);return s===-1||s+r.length!==e.length?e:e.substring(0,s)}static sleep(e){return new Promise(r=>setTimeout(r,e*1e3))}static hash(e){return kH.default.createHash("sha256").update(e).digest("hex")}static parseBool(e){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 formatFileSize(e){if(e===0)return"0 Bytes";let r=1024,s=["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"],i=Math.floor(Math.log(e)/Math.log(r));return parseFloat((e/Math.pow(r,i)).toFixed(2))+" "+s[i]}static generateRandomString(e=10){return kH.default.randomBytes(Math.ceil(e/2)).toString("hex").slice(0,e)}static stringToUnicodeEntities(e){return Array.from(e).map(r=>`&#x${r.charCodeAt(0).toString(16)};`).join("")}static countLines(e){return e.split(/\r\n|\r|\n/).length}static isPathRelativeTo(e,r){let s=uI.default.resolve(e);return uI.default.resolve(r).startsWith(s.endsWith(uI.default.sep)?s:`${s}${uI.default.sep}`)}static formatDuration(e){if(e===0)return"0s";let r=Math.floor(e/1e9),s=Math.floor(r/3600),i=Math.floor(r%3600/60),n=r%60,o=[];return s&&o.push(`${s}h`),i&&o.push(`${i}m`),(n||o.length===0)&&o.push(`${n}s`),o.join("")}};var Zr=class t{static get configDir(){return process.env.DOCKER_CONFIG||dI.default.join(Vde.default.homedir(),".docker")}static configFile(){let e=dI.default.join(t.configDir,"config.json");if(MH.default.existsSync(e))return JSON.parse(MH.default.readFileSync(e,{encoding:"utf-8"}))}static async isAvailable(){return await Ts("docker",!0).then(e=>(T(`Docker.isAvailable ok: ${e}`),!0)).catch(e=>(T(`Docker.isAvailable error: ${e}`),!1))}static async isDaemonRunning(){try{return await t.getExecOutput(["version"],{silent:!0}),!0}catch{return!1}}static async exec(e,r){return Pe.exec("docker",e,t.execOptions(r))}static async getExecOutput(e,r){return Pe.getExecOutput("docker",e,t.execOptions(r))}static execOptions(e){return e||(e={}),e.env?e.env.DOCKER_CONTENT_TRUST="false":e.env=Object.assign({},process.env,{DOCKER_CONTENT_TRUST:"false"}),e}static async context(e){let r=["context","inspect","--format","{{.Name}}"];return e&&r.push(e),await t.getExecOutput(r,{ignoreReturnCode:!0,silent:!0}).then(s=>{if(s.stderr.length>0&&s.exitCode!=0)t Line truncated
More info: ${c.url}`);let f=c.range&&c.range.length>0?c.range[0]?.start.line:void 0,A=!1;for(let p of o)if(p.remote||p.path.endsWith(l)&&p.content===u){a.push({title:d,message:h,file:p.path,startLine:f}),A=!0;break}A||T(`Buildx.convertWarningsToGitHubAnnotations: skipping warning without matching Dockerfile ${l}: ${d}`)}return a}};var vd=M(require("fs"),1),sz=M(require("path"),1);var XR=class t{buildx;iidFilename;metadataFilename;constructor(e){this.buildx=e?.buildx||new qt,this.iidFilename=`build-iidfile-${yr.generateRandomString()}.txt`,this.metadataFilename=`build-metadata-${yr.generateRandomString()}.json`}getImageIDFilePath(){return sz.default.join(Nt.tmpDir(),this.iidFilename)}resolveImageID(){let e=this.getImageIDFilePath();if(vd.default.existsSync(e))return vd.default.readFileSync(e,{encoding:"utf-8"}).trim()}getMetadataFilePath(){return sz.default.join(Nt.tmpDir(),this.metadataFilename)}resolveMetadata(){let e=this.getMetadataFilePath();if(!vd.default.existsSync(e))return;let r=vd.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,s]=t.resolveSecret(e,{redact:!0});return`id=${r},src=${s}`}static resolveSecretFile(e){let[r,s]=t.resolveSecret(e,{asFile:!0});return`id=${r},src=${s}`}static resolveSecretEnv(e){let[r,s]=t.parseSecretKvp(e);return`id=${r},env=${s}`}static resolveSecret(e,r){let[s,i]=t.parseSecretKvp(e,r?.redact),n=Nt.tmpName({tmpdir:Nt.tmpDir()});if(r?.asFile){if(!vd.default.existsSync(i))throw new Error(`secret file ${i} not found`);vd.default.copyFileSync(i,n)}else vd.default.writeFileSync(n,i);return[s,n]}static getProvenanceInput(e){let r=ad(e);if(!r)return r;try{return EB(e)?`builder-id=${xt.workflowRunURL(!0)}`:"false"}catch{return t.resolveProvenanceAttrs(r)}}static resolveProvenanceAttrs(e){if(!e)return`builder-id=${xt.workflowRunURL(!0)}`;let r=qn(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0];for(let s of r)if(s.toString().split(/(?<=^[^=]+?)=/).map(n=>n.trim())[0]=="builder-id")return e;return`${e},builder-id=${xt.workflowRunURL(!0)}`}static resolveCacheToAttrs(e,r){if(!e)return e;let s="registry",i="",n="",o=qn(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0];for(let a of o){let c=a.toString().split(/(?<=^[^=]+?)=/).map(l=>l.trim());c[0]==="type"?s=c[1]:c[0]==="repository"?i=c[1]:c[0]==="ghtoken"&&(n=c[1])}return s==="gha"&&(i||(e=`${e},repository=${xt.repository}`),!n&&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 s=qn(r.join(`
`),{delimiter:",",trim:!0,columns:!1,relaxColumnCount:!0});for(let i of s){if(i.length==1&&!i[0].startsWith("type="))return e=="local";for(let[n,o]of i.map(a=>a.split("=").map(c=>c.trim())))if(n=="type"&&o==e)return!0}return!1}static hasAttestationType(e,r){let s=qn(r,{delimiter:",",trim:!0,columns:!1,relaxColumnCount:!0});for(let i of s)for(let[n,o]of i.map(a=>a.split("=").map(c=>c.trim())))if(n=="type"&&o==e)return!0;return!1}static resolveAttestationAttrs(e){let r=qn(e,{delimiter:",",trim:!0,columns:!1,relaxColumnCount:!0}),s=[];for(let i of r)for(let n of i)try{let o=yr.parseBool(n);s.push(`disabled=${!o}`)}catch{s.push(n)}return s.join(",")}static hasGitAuthTokenSecret(e,r){for(let s of e){if(r&&s.startsWith(`GIT_AUTH_TOKEN.${r}=`))return!0;if(s.startsWith("GIT_AUTH_TOKEN="))return!0}return!1}static parseSecretKvp(e,r){let s=e.indexOf("="),i=e.substring(0,s),n=e.substring(s+1);if(i.length==0||n.length==0)throw new Error(`${e} is not a valid secret`);return r&&Va(n),[i,n]}};var iz=M(require("fs"),1),Ofe=M(require("path"),1);var ZR=class t{buildx;metadataFilename;constructor(e){this.buildx=e?.buildx||new qt,this.metadataFilename=`bake-metadata-${yr.generateRandomString()}.json`}getMetadataFilePath(){return Ofe.default.join(Nt.tmpDir(),this.metadataFilename)}resolveMetadata(){let e=this.getMetadataFilePath();if(!iz.default.existsSync(e))return;let r=iz.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 s in e)"buildx.build.ref"in e[s]&&r.push(e[s]["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 s=["bake"],i,n=[],o=[...e.files||[],e.source];if(o){for(let c of o.map(l=>l?l.trim():""))if(c.length!=0){if(!yr.isValidRef(c)){n.push(c);continue}if(i)throw new Error("Only one remote bake definition can be defined");i=c}}i&&s.push(i);for(let c of n)s.push("--file",c);if(e.overrides)for(let c of e.overrides)s.push("--set",c);if(e.allow)for(let c of e.allow)s.push("--allow",c);e.call&&s.push("--call",e.call),e.load&&s.push("--load"),e.noCache&&s.push("--no-cache"),e.provenance&&s.push("--provenance",e.provenance),e.push&&s.push("--push"),e.sbom&&s.push("--sbom",e.sbom);let a=await this.buildx.getCommand([...s,"--print",...e.targets||[]]);return await Pe.getExecOutput(a.command,a.args,r).then(c=>{if(c.stderr.length>0&&c.exitCode!=0)throw new Error(`cannot parse bake definitions: ${c.stderr.match(/(.*)\s*$/)?.[0]?.trim()??"unknown error"}`);return t.parseDefinition(c.stdout.trim())})}static parseDefinition(e){let r=JSON.parse(e);for(let s in r.target){let i=r.target[s];i.attest&&Array.isArray(i.attest)&&(i.attest=i.attest.map(n=>t.parseAttestEntry(n))),i["cache-from"]&&Array.isArray(i["cache-from"])&&(i["cache-from"]=i["cache-from"].map(n=>t.parseCacheEntry(n))),i["cache-to"]&&Array.isArray(i["cache-to"])&&(i["cache-to"]=i["cache-to"].map(n=>t.parseCacheEntry(n))),i.output&&Array.isArray(i.output)&&(i.output=i.output.map(n=>t.parseExportEntry(n))),i.secret&&Array.isArray(i.secret)&&(i.secret=i.secret.map(n=>t.parseSecretEntry(n))),i.ssh&&Array.isArray(i.ssh)&&(i.ssh=i.ssh.map(n=>t.parseSSHEntry(n)))}return r}static parseAttestEntry(e){if(typeof e!="string")return e;let r={type:""},s=qn(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0];for(let i of s){let[n,o]=i.toString().split(/(?<=^[^=]+?)=/).map(a=>a.trim());switch(n){case"type":r.type=o;break;case"disabled":r.disabled=yr.parseBool(o);break;default:r[n]=o}}return r}static parseCacheEntry(e){if(typeof e!="string")return e;let r={type:""},s=qn(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0];if(s.length===1&&!s[0].includes("="))return r.type="registry",r.ref=s[0],r;for(let i of s){let[n,o]=i.toString().split(/(?<=^[^=]+?)=/).map(a=>a.trim());n==="type"?r.type=o:r[n]=o}return r}static parseExportEntry(e){if(typeof e!="string")return e;let r={type:""},s=qn(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0];if(s.length===1&&s[0]===e&&!e.startsWith("type="))return e!=="-"?(r.type="local",r.dest=e,r):(r.type="tar",r.dest=e,r);for(let i of s){let[n,o]=i.toString().split(/(?<=^[^=]+?)=/).map(a=>a.trim());n==="type"?r.type=o:r[n]=o}return r}static parseSecretEntry(e){if(typeof e!="string")return e;let r={},s=qn(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0],i="";for(let n of s){let[o,a]=n.toString().split(/(?<=^[^=]+?)=/).map(c=>c.trim());switch(o){case"type":i=a;break;case"id":r.id=a;break;case"source":case"src":r.src=a;break;case"env":r.env=a;break}}return i==="env"&&!r.env&&(r.env=r.src,r.src=void 0),r}static parseSSHEntry(e){if(typeof e!="string")return e;let r={},[s,i]=e.split("=",2);return r.id=s,i&&(r.paths=i.split(",")),r}static hasLocalExporter(e){return t.hasExp Line truncated
`)[0])}static async isHeadDetached(){return await t.exec(["branch","--show-current"]).then(e=>e.length==0)}static async getDetachedRef(){let e=await t.exec(["show","-s","--pretty=%D"]);T(`detached HEAD ref: ${e}`);let r=e.replace(/^grafted, /,"").trim();if(r==="HEAD")return await t.inferRefFromHead();let s=r.match(/^HEAD, (.*)$/);if(!s||!s[1])throw new Error(`Cannot find detached HEAD ref in "${e}"`);let i=s[1].trim();if(i.startsWith("tag: "))return`refs/tags/${i.split(":")[1].trim()}`;if(i.match(/^pull\/\d+\/(head|merge)$/))return`refs/${i}`;let o=i.match(/^[^/]+\/[^/]+, (.+)$/);if(o)return`refs/heads/${o[1].trim()}`;let a=i.match(/^[^/]+\/(.+)$/);if(a)return`refs/heads/${a[1].trim()}`;throw new Error(`Unsupported detached HEAD ref in "${e}"`)}static async exec(e=[]){return await Pe.getExecOutput("git",e,{ignoreReturnCode:!0,silent:!0}).then(r=>{if(r.stderr.length>0&&r.exitCode!=0)throw new Error(r.stderr);return r.stdout.trim()})}static async inferRefFromHead(){let e=await t.findContainingRef("refs/heads/");if(e)return e;let r=await t.findContainingRef("refs/remotes/");if(r){let n=r.match(/^refs\/remotes\/[^/]+\/(.+)$/);return n?`refs/heads/${n[1]}`:r}let s=await t.exec(["tag","--contains","HEAD"]),[i]=s.split(`
`,n),Buffer.from("\r",n)];e:for(let a=0;a<o.length;a++){let c=o[a].length;for(let l=0;l<c;l++)if(o[a][l]!==s[i+l])continue e;return this.options.record_delimiter.push(o[a]),this.state.recordDelimiterMaxLength=o[a].length,o[a].length}return 0},__error:function(s){let{encoding:i,raw:n,skip_records_with_error:o}=this.options,a=typeof s=="string"?new Error(s):s;if(o){if(this.state.recordHasError=!0,this.options.on_skip!==void 0)try{this.options.on_skip(a,n?this.state.rawBuffer.toString(i):void 0)}catch(c){return c}return}else return a},__infoDataSet:function(){return{...this.info,columns:this.options.columns}},__infoRecord:function(){let{columns:s,raw:i,encoding:n}=this.options;return{...this.__infoDataSet(),bytes_records:this.info.bytes,error:this.state.error,header:s===!0,index:this.state.record.length,raw:i?this.state.rawBuffer.toString(n):void 0}},__infoField:function(){let{columns:s}=this.options,i=Array.isArray(s),n=this.info.bytes_records;return{...this.__infoRecord(),bytes_records:n,column:i===!0?s.length>this.state.record.length?s[this.state.record.length].name:null:this.state.record.length,quoting:this.state.wasQuoting}}}};var no=function(t,e={}){typeof t=="string"&&(t=Buffer.from(t));let r=e&&e.objname?{}:[],s=wye(e),i=a=>{s.options.objname===void 0?r.push(a):r[a[0]]=a[1]},n=()=>{},o=s.parse(t,!0,i,n);if(o!==void 0)throw o;return r};var Xt=class t{static getInputList(e,r){return this.getList(Qm(e,{trimWhitespace:r?.trimWhitespace!==!1}),r)}static getList(e,r){let s=[];if(e=="")return s;let i=no(e,{columns:!1,relaxQuotes:!0,comment:r?.comment,comment_no_infix:r?.commentNoInfix,relaxColumnCount:!0,skipEmptyLines:!0,quote:r?.quote});for(let n of i)n.length==1?r?.ignoreComma?s.push(n[0]):s.push(...n[0].split(",")):r?.ignoreComma?s.push(n.join(",")):s.push(...n);return s.filter(n=>n).map(n=>r?.trimWhitespace===!1?n:n.trim())}static getInputNumber(e){let r=Qm(e);if(r)return parseInt(r)}static async asyncForEach(e,r){for(let s=0;s<e.length;s++)await r(e[s],s,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 s=await Ls("powershell",!0),i=e.replace(/'/g,"''").replace(/"|\n|\r/g,""),n=[];if(r)for(let o in r)n.push(`-${o} '${r[o].replace(/'/g,"''").replace(/"|\n|\r/g,"")}'`);return{command:`"${s}"`,args:["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",`& '${i}' ${n.join(" ")}`]}}static isDirectory(e){try{return Bye.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 s=e.lastIndexOf(r);return s===-1||s+r.length!==e.length?e:e.substring(0,s)}static sleep(e){return new Promise(r=>setTimeout(r,e*1e3))}static hash(e){return _V.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,s=["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"],i=Math.floor(Math.log(e)/Math.log(r));return parseFloat((e/Math.pow(r,i)).toFixed(2))+" "+s[i]}static generateRandomString(e=10){return _V.default.randomBytes(Math.ceil(e/2)).toString("hex").slice(0,e)}static compileHandlebars(e,r,s){return Sye.default.compile(e,r)(s)}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 s=ob.default.resolve(e);return ob.default.resolve(r).startsWith(s.endsWith(ob.default.sep)?s:`${s}${ob.default.sep}`)}static formatDuration(e){if(e===0)return"0s";let r=Math.floor(e/1e9),s=Math.floor(r/3600),i=Math.floor(r%3600/60),n=r%60,o=[];return s&&o.push(`${s}h`),i&&o.push(`${i}m`),(n||o.length===0)&&o.push(`${n}s`),o.join("")}};var cs=class t{static get configDir(){return process.env.DOCKER_CONFIG||ab.default.join(xye.default.homedir(),".docker")}static configFile(){let e=ab.default.join(t.configDir,"config.json");if(QV.default.existsSync(e))return JSON.parse(QV.default.readFileSync(e,{encoding:"utf-8"}))}static async isAvailable(){return await Ls("docker",!0).then(e=>(z(`Docker.isAvailable ok: ${e}`),!0)).catch(e=>(z(`Docker.isAvailable error: ${e}`),!1))}static async isDaemonRunning(){try{return await t.getExecOutput(["version"],{silent:!0}),!0}catch{return!1}}static async exec(e,r){return ke.exec("docker",e,t.execOptions(r))}static async getExecOutput(e,r){return ke.getExecOutput("docker",e,t.execOptions(r))}static execOptions(e){return e||(e={}),e. Line truncated
`+t.errors.map(e=>` - ${e.message}`).join(`
`)}var fat=class extends Error{constructor(t,e,r){super(dat(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},pat=["method","baseUrl","url","headers","request","query","mediaType","operationName"],Aat=["query","method","url"],cEe=/\/api\/v3\/?$/;function mat(t,e,r){if(r){if(typeof e=="string"&&"query"in r)return Promise.reject(new Error('[@octokit/graphql] "query" cannot be used as variable name'));for(let o in r)if(Aat.includes(o))return Promise.reject(new Error(`[@octokit/graphql] "${o}" cannot be used as variable name`))}let s=typeof e=="string"?Object.assign({query:e},r):e,i=Object.keys(s).reduce((o,a)=>pat.includes(a)?(o[a]=s[a],o):(o.variables||(o.variables={}),o.variables[a]=s[a],o),{}),n=s.baseUrl||t.endpoint.DEFAULTS.baseUrl;return cEe.test(n)&&(i.url=n.replace(cEe,"/api/graphql")),t(i).then(o=>{if(o.data.errors){let a={};for(let c of Object.keys(o.headers))a[c]=o.headers[c];throw new fat(i,a,o.data)}return o.data.data})}function HV(t,e){let r=t.defaults(e);return Object.assign((i,n)=>mat(r,i,n),{defaults:HV.bind(null,r),endpoint:r.endpoint})}var zWt=HV(hb,{headers:{"user-agent":`octokit-graphql.js/${hat} ${gd()}`},method:"POST",url:"/graphql"});function lEe(t){return HV(t,{method:"POST",url:"/graphql"})}var zV="(?:[a-zA-Z0-9_-]+)",uEe="\\.",hEe=new RegExp(`^${zV}${uEe}${zV}${uEe}${zV}$`),gat=hEe.test.bind(hEe);async function yat(t){let e=gat(t),r=t.startsWith("v1.")||t.startsWith("ghs_"),s=t.startsWith("ghu_");return{type:"token",token:t,tokenType:e?"app":r?"installation":s?"user-to-server":"oauth"}}function Eat(t){return t.split(/\./).length===3?`bearer ${t}`:`token ${t}`}async function Cat(t,e,r,s){let i=e.endpoint.merge(r,s);return i.headers.authorization=Eat(t),e(i)}var dEe=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(yat.bind(null,e),{hook:Cat.bind(null,e)})};var VV="7.0.6";var fEe=()=>{},Iat=console.warn.bind(console),bat=console.error.bind(console);function wat(t={}){return typeof t.debug!="function"&&(t.debug=fEe),typeof t.info!="function"&&(t.info=fEe),typeof t.warn!="function"&&(t.warn=Iat),typeof t.error!="function"&&(t.error=bat),t}var pEe=`octokit-core.js/${VV} ${gd()}`,S_=class{static VERSION=VV;static defaults(e){return class extends this{constructor(...s){let i=s[0]||{};if(typeof e=="function"){super(e(i));return}super(Object.assign({},e,i,i.userAgent&&e.userAgent?{userAgent:`${i.userAgent} ${e.userAgent}`}:null))}}}static plugins=[];static plugin(...e){let r=this.plugins;return class extends this{static plugins=r.concat(e.filter(i=>!r.includes(i)))}}constructor(e={}){let r=new Hye.Collection,s={baseUrl:hb.endpoint.DEFAULTS.baseUrl,headers:{},request:Object.assign({},e.request,{hook:r.bind(null,"request")}),mediaType:{previews:[],format:""}};if(s.headers["user-agent"]=e.userAgent?`${e.userAgent} ${pEe}`:pEe,e.baseUrl&&(s.baseUrl=e.baseUrl),e.previews&&(s.mediaType.previews=e.previews),e.timeZone&&(s.headers["time-zone"]=e.timeZone),this.request=hb.defaults(s),this.graphql=lEe(this.request).defaults(s),this.log=wat(e.log),this.hook=r,e.authStrategy){let{authStrategy:n,...o}=e,a=n(Object.assign({request:this.request,log:this.log,octokit:this,octokitOptions:o},e.auth));r.wrap("request",a.hook),this.auth=a}else if(!e.auth)this.auth=async()=>({type:"unauthenticated"});else{let n=dEe(e.auth);r.wrap("request",n.hook),this.auth=n}let i=this.constructor;for(let n=0;n<i.plugins.length;++n)Object.assign(this,i.plugins[n](this,e))}request;graphql;log;hook;auth};var $V="17.0.0";var Bat={actions:{addCustomLabelsToSelfHostedRunnerForOrg:["POST /orgs/{org}/actions/runners/{runner_id}/labels"],addCustomLabelsToSelfHostedRunnerForRepo:["POST /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],addRepoAccessToSelfHostedRunnerGroupInOrg:["PUT /orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/{repository_id}"],addSelectedRepoToOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}"],addSelectedRepoToOrgVariable:["PUT /orgs/{org}/actions/variables/{name}/repositories/{repository_id}"],approveWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/approve"],cancelWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/cancel"],createEnvironmentVariable:["POST /repos/{owner}/{repo}/environments/{environment_name}/variables"],createHostedRunnerForOrg:["POST /orgs/{org}/actions/hosted-runners"],createOrUpdateEnvironmentSecret:["PUT /repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}"],createOrUpdateOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}"],createOrUpdateRepoSecret:["PUT /repos/{owner}/{repo}/actions/secrets/{secret_name}"],createOrgVaria Line truncated
More info: ${c.url}`);let f=c.range&&c.range.length>0?c.range[0]?.start.line:void 0,p=!1;for(let m of o)if(m.remote||m.path.endsWith(l)&&m.content===u){a.push({title:h,message:d,file:m.path,startLine:f}),p=!0;break}p||z(`Buildx.convertWarningsToGitHubAnnotations: skipping warning without matching Dockerfile ${l}: ${h}`)}return a}};var Qp=O(require("fs"),1),w3=O(require("path"),1);var G_=class t{buildx;iidFilename;metadataFilename;constructor(e){this.buildx=e?.buildx||new zt,this.iidFilename=`build-iidfile-${Xt.generateRandomString()}.txt`,this.metadataFilename=`build-metadata-${Xt.generateRandomString()}.json`}async gitContext(e){let r=new Set(["ref","checksum","subdir"]),s=e?.attrs||{},i=Object.entries(s).filter(([f])=>!r.has(f)),n=Xt.parseBoolOrDefault(s["fetch-by-commit"]),o=e?.ref||s.ref||Pi.ref;o.startsWith("refs/")?o.startsWith("refs/pull/")&&Xt.parseBoolOrDefault(process.env.DOCKER_DEFAULT_GIT_CONTEXT_PR_HEAD_REF)&&(o=o.replace(/\/merge$/g,"/head")):o=`refs/heads/${o}`;let a=`${Pt.serverURL}/${Pi.repo.owner}/${Pi.repo.repo}.git`,c=e?.checksum||s.checksum,l=e?.subdir||s.subdir,u=e?.format;if(!u){if(u="fragment",i.length>0)u="query";else if(Xt.parseBoolOrDefault(process.env.BUILDX_SEND_GIT_QUERY_AS_INPUT))try{await this.buildx.versionSatisfies(">=0.29.0")&&(u="query")}catch{}}let h=Pi.sha||o;o.startsWith("refs/pull/")&&o.endsWith("/head")&&(h=typeof Pi.payload.pull_request?.head?.sha=="string"?Pi.payload.pull_request.head.sha:o);let d=c||h;if(u==="query"){let f=[`ref=${n||c?o:d}`],p=n?d:c;p&&f.push(`checksum=${p}`),l&&l!=="."&&f.push(`subdir=${l}`);for(let[m,E]of i)f.push(`${m}=${E}`);return`${a}?${f.join("&")}`}return`${a}#${d}${l&&l!=="."?`:${l}`:""}`}getImageIDFilePath(){return w3.default.join(Ct.tmpDir(),this.iidFilename)}resolveImageID(){let e=this.getImageIDFilePath();if(Qp.default.existsSync(e))return Qp.default.readFileSync(e,{encoding:"utf-8"}).trim()}getMetadataFilePath(){return w3.default.join(Ct.tmpDir(),this.metadataFilename)}resolveMetadata(){let e=this.getMetadataFilePath();if(!Qp.default.existsSync(e))return;let r=Qp.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,s]=t.resolveSecret(e,{redact:!0});return`id=${r},src=${s}`}static resolveSecretFile(e){let[r,s]=t.resolveSecret(e,{asFile:!0});return`id=${r},src=${s}`}static resolveSecretEnv(e){let[r,s]=t.parseSecretKvp(e);return`id=${r},env=${s}`}static resolveSecret(e,r){let[s,i]=t.parseSecretKvp(e,r?.redact);if(r?.asFile){if(!Qp.default.existsSync(i))throw new Error(`secret file ${i} not found`);return[s,i]}let n=Ct.tmpName({tmpdir:Ct.tmpDir()});return Qp.default.writeFileSync(n,i),[s,n]}static getProvenanceInput(e){let r=Qm(e);if(!r)return r;try{return tne(e)?`builder-id=${Pt.workflowRunURL(!0)}`:"false"}catch{return t.resolveProvenanceAttrs(r)}}static resolveProvenanceAttrs(e){if(!e)return`builder-id=${Pt.workflowRunURL(!0)}`;let r=no(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0];for(let s of r)if(s.toString().split(/(?<=^[^=]+?)=/).map(n=>n.trim())[0]=="builder-id")return e;return`${e},builder-id=${Pt.workflowRunURL(!0)}`}static resolveCacheToAttrs(e,r){if(!e)return e;let s="registry",i="",n="",o=no(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0];for(let a of o){let c=a.toString().split(/(?<=^[^=]+?)=/).map(l=>l.trim());c[0]==="type"?s=c[1]:c[0]==="repository"?i=c[1]:c[0]==="ghtoken"&&(n=c[1])}return s==="gha"&&(i||(e=`${e},repository=${Pt.repository}`),!n&&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 s=no(r.join(`
`),{delimiter:",",trim:!0,columns:!1,relaxColumnCount:!0});for(let i of s){if(i.length==1&&!i[0].startsWith("type="))return e=="local";for(let[n,o]of i.map(a=>a.split("=").map(c=>c.trim())))if(n=="type"&&o==e)return!0}return!1}static hasAttestationType(e,r){let s=no(r,{delimiter:",",trim:!0,columns:!1,relaxColumnCount:!0});for(let i of s)for(let[n,o]of i.map(a=>a.split("=").map(c=>c.trim())))if(n=="type"&&o==e)return!0;return!1}static resolveAttestationAttrs(e){let r=no(e,{delimiter:",",trim:!0,columns:!1,relaxColumnCount:!0}),s=[];for(let i of r)for(let n of i)try{let o=Xt.parseBool(n);s.push(`disabled=${!o}`)}catch{s.push(n)}return s.join(",")}static hasGitAuthTokenSecret(e,r){for(let s of e){if(r&&s.startsWith(`GIT_AUTH_TOKEN.${r}=`))return!0;if(s.startsWith("GIT_AUTH_TOKEN="))return!0}return!1}static parseSecretKvp(e,r){let s=e.indexOf("="),i=e.substring(0,s),n=e.substring(s+1);if(i.length==0||n.length==0)throw new Error(`${e} is not a valid secret`);return r&&KC(n),[i,n]}};var B3=O(require("fs"),1),pIe=O(require("path"),1);var H_=class t{buildx;metadataFilename;constructor(e){this.buildx=e?.buildx||new zt,this.metadataFilename=`bake-metadata-${Xt.generateRandomString()}.json`}getMetadataFilePath(){return pIe.default.join(Ct.tmpDir(),this.metadataFilename)}resolveMetadata(){let e=this.getMetadataFilePath();if(!B3.default.existsSync(e))return;let r=B3.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 s in e)"buildx.build.ref"in e[s]&&r.push(e[s]["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 s=["bake"],i,n=[],o=[...e.files||[],e.source];if(o){for(let c of o.map(l=>l?l.trim():""))if(c.length!=0){if(!Xt.isValidRef(c)){n.push(c);continue}if(i)throw new Error("Only one remote bake definition can be defined");i=c}}i&&s.push(i);for(let c of n)s.push("--file",c);if(e.overrides)for(let c of e.overrides)s.push("--set",c);if(e.vars)for(let c of e.vars)s.push("--var",c);if(e.allow)for(let c of e.allow)s.push("--allow",c);e.call&&s.push("--call",e.call),e.load&&s.push("--load"),e.noCache&&s.push("--no-cache"),e.provenance&&s.push("--provenance",e.provenance),e.push&&s.push("--push"),e.sbom&&s.push("--sbom",e.sbom);let a=await this.buildx.getCommand([...s,"--print",...e.targets||[]]);return await ke.getExecOutput(a.command,a.args,r).then(c=>{if(c.stderr.length>0&&c.exitCode!=0)throw new Error(`cannot parse bake definitions: ${c.stderr.match(/(.*)\s*$/)?.[0]?.trim()??"unknown error"}`);return t.parseDefinition(c.stdout.trim())})}static parseDefinition(e){let r=JSON.parse(e);for(let s in r.target){let i=r.target[s];i.attest&&Array.isArray(i.attest)&&(i.attest=i.attest.map(n=>t.parseAttestEntry(n))),i["cache-from"]&&Array.isArray(i["cache-from"])&&(i["cache-from"]=i["cache-from"].map(n=>t.parseCacheEntry(n))),i["cache-to"]&&Array.isArray(i["cache-to"])&&(i["cache-to"]=i["cache-to"].map(n=>t.parseCacheEntry(n))),i.output&&Array.isArray(i.output)&&(i.output=i.output.map(n=>t.parseExportEntry(n))),i.secret&&Array.isArray(i.secret)&&(i.secret=i.secret.map(n=>t.parseSecretEntry(n))),i.ssh&&Array.isArray(i.ssh)&&(i.ssh=i.ssh.map(n=>t.parseSSHEntry(n)))}return r}static parseAttestEntry(e){if(typeof e!="string")return e;let r={type:""},s=no(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0];for(let i of s){let[n,o]=i.toString().split(/(?<=^[^=]+?)=/).map(a=>a.trim());switch(n){case"type":r.type=o;break;case"disabled":r.disabled=Xt.parseBool(o);break;default:r[n]=o}}return r}static parseCacheEntry(e){if(typeof e!="string")return e;let r={type:""},s=no(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0];if(s.length===1&&!s[0].includes("="))return r.type="registry",r.ref=s[0],r;for(let i of s){let[n,o]=i.toString().split(/(?<=^[^=]+?)=/).map(a=>a.trim());n==="type"?r.type=o:r[n]=o}return r}static parseExportEntry(e){if(typeof e!="string")return e;let r={type:""},s=no(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0];if(s.length===1&&s[0]===e&&!e.startsWith("type="))return e!=="-"?(r.type="local",r.dest=e,r):(r.type="tar",r.dest=e,r);for(let i of s){let[n,o]=i.toString().split(/(?<=^[^=]+?)=/).map(a=>a.trim());n==="type"?r.type=o:r[n]=o}return r}static parseSecretEntry(e){if(typeof e!="string")return e;let r={},s=no(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0],i="";for(let n of s){let[o,a]=n.toString().split(/(?<=^[^=]+?)=/).map(c=>c.trim());switch(o){case"type":i=a;break;case"id":r.id=a;break;case"source":case"src":r.src=a;break;case"env":r.env=a;break}}return i==="env"&&!r.env&&(r.env=r.src,r.src=void 0),r}static parseSSHEntry(e){if(typeof e!="string")return e;let r={},[s,i]=e.split("=",2);return r.id=s,i&&(r.paths=i.split(", Line truncated
`)[0])}static async isHeadDetached(){return await t.exec(["branch","--show-current"]).then(e=>e.length==0)}static async getDetachedRef(){let e=await t.exec(["show","-s","--pretty=%D"]);z(`detached HEAD ref: ${e}`);let r=e.replace(/^grafted, /,"").trim();if(r==="HEAD")return await t.inferRefFromHead();let s=r.match(/^HEAD, (.*)$/);if(!s||!s[1])throw new Error(`Cannot find detached HEAD ref in "${e}"`);let i=s[1].trim();if(i.startsWith("tag: "))return`refs/tags/${i.split(":")[1].trim()}`;if(i.match(/^pull\/\d+\/(head|merge)$/))return`refs/${i}`;let o=i.match(/^[^/]+\/[^/]+, (.+)$/);if(o)return`refs/heads/${o[1].trim()}`;let a=i.match(/^[^/]+\/(.+)$/);if(a)return`refs/heads/${a[1].trim()}`;throw new Error(`Unsupported detached HEAD ref in "${e}"`)}static async exec(e=[]){return await ke.getExecOutput("git",e,{ignoreReturnCode:!0,silent:!0}).then(r=>{if(r.stderr.length>0&&r.exitCode!=0)throw new Error(r.stderr);return r.stdout.trim()})}static async inferRefFromHead(){let e=await t.findContainingRef("refs/heads/");if(e)return e;let r=await t.findContainingRef("refs/remotes/");if(r){let n=r.match(/^refs\/remotes\/[^/]+\/(.+)$/);return n?`refs/heads/${n[1]}`:r}let s=await t.exec(["tag","--contains","HEAD"]),[i]=s.split(`
`).map(n=>n.trim()).filter(n=>n.length>0);if(i)return`refs/tags/${i}`;throw new Error("Cannot infer ref from detached HEAD")}static async findContainingRef(e){let r=await t.exec(["for-each-ref","--format=%(refname)","--contains","HEAD","--sort=-committerdate",e]),[s]=r.split(`
`).map(i=>i.trim()).filter(i=>i.length>0);return s}static async commitDate(e){return new Date(await t.exec(["show","-s",'--format="%ci"',e]))}};var iSe=require("crypto"),cl=M(require("fs"),1),uh=M(require("path"),1);var ab=M(CI(),1),ll=M(Jbe(),1),nSe=M(qJ(),1),cy=M(KBe(),1);var f5=M(CI(),1);var ZBe=M(wa(),1);var XBe="application/vnd.oci.empty.v1+json";var Pu=class{binPath;_version;_versionOnce;constructor(e){this.binPath=e?.binPath||"cosign",this._version="",this._versionOnce=!1}async isAvailable(){let e=await Pe.getExecOutput(this.binPath,[],{ignoreReturnCode:!0,silent:!0}).then(r=>r.stderr.length>0&&r.exitCode!=0?(T(`Cosign.isAvailable cmd err: ${r.stderr.trim()}`),!1):r.exitCode==0).catch(r=>(T(`Cosign.isAvailable error: ${r}`),!1));return T(`Cosign.isAvailable: ${e}`),e}async version(){return this._versionOnce?this._version:(this._versionOnce=!0,this._version=await Pe.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 Pe.exec(this.binPath,["version","--json"],{failOnStdErr:!1})}async versionSatisfies(e,r){let s=r??await this.version();if(!s)return T("Cosign.versionSatisfies false: undefined version"),!1;let i=ZBe.satisfies(s,e)||/^[0-9a-f]{7}$/.exec(s)!==null;return T(`Cosign.versionSatisfies ${s} statisfies ${e}: ${i}`),i}static parseCommandOutput(e){let r,s,i,n;for(let o of e.split(/\r?\n/)){let a=o.trim();if(!a.startsWith("{")||!a.endsWith("}"))continue;let c;try{c=JSON.parse(a)}catch{continue}if(c&&Array.isArray(c.errors)&&c.errors.length>0&&(n=c.errors),!r&&c&&Array.isArray(c.manifests)&&c.manifests.length>0){let l=c.manifests[0];l?.artifactType===f5.BUNDLE_V03_MEDIA_TYPE&&typeof l.digest=="string"?r=l.digest:l?.artifactType===XBe&&typeof l.digest=="string"&&(s=l.digest)}if(!i&&c&&c.mediaType===f5.BUNDLE_V03_MEDIA_TYPE&&(i=c),i&&(r||s)){n=void 0;break}}return{bundle:i,signatureManifestDigest:r||s,errors:n}}};var tP=class{buildx;constructor(e){this.buildx=e?.buildx||new qt}async getCommand(e){return await this.buildx.getCommand(["imagetools",...e])}async getInspectCommand(e){return await this.getCommand(["inspect",...e])}async inspectImage(e){let r=await this.getInspectCommand([e,"--format","{{json .Image}}"]);return await Pe.getExecOutput(r.command,r.args,{ignoreReturnCode:!0,silent:!0}).then(s=>{if(s.stderr.length>0&&s.exitCode!=0)throw new Error(s.stderr.trim());let i=JSON.parse(s.stdout);if(typeof i=="object"&&!Array.isArray(i)&&i!==null)return Object.prototype.hasOwnProperty.call(i,"config"),i;throw new Error("Unexpected output format")})}async inspectManifest(e){let r=await this.getInspectCommand([e,"--format","{{json .Manifest}}"]);return await Pe.getExecOutput(r.command,r.args,{ignoreReturnCode:!0,silent:!0}).then(s=>{if(s.stderr.length>0&&s.exitCode!=0)throw new Error(s.stderr.trim());let i=JSON.parse(s.stdout);if(typeof i=="object"&&!Array.isArray(i)&&i!==null)return Object.prototype.hasOwnProperty.call(i,"manifests"),i;throw new Error("Unexpected output format")})}async attestationDescriptors(e,r){let s=await this.inspectManifest(e);if(typeof s!="object"||s===null||!("manifests"in s)||!Array.isArray(s.manifests))throw new Error(`No descriptor found for ${e}`);let i=s.manifests.filter(o=>o.annotations?.["vnd.docker.reference.type"]==="attestation-manifest");if(!r)return i;let n=new Map;for(let o of s.manifests)o.digest&&n.set(o.digest,o);return i.filter(o=>{let a=o.annotations?.["vnd.docker.reference.digest"];if(!a)return!1;let c=n.get(a);return c?c.platform?.os===r.os&&c.platform?.architecture===r.architecture&&(c.platform?.variant??"")===(r.variant??""):!1})}async attestationDigests(e,r){return(await this.attestationDescriptors(e,r)).map(s=>s.digest)}};var eSe="application/vnd.in-toto+json";var tSe="https://fulcio.sigstore.dev",rSe="https://rekor.sigstore.dev",sSe="https://timestamp.sigstore.dev",xA="https://search.sigstore.dev";var dh=class t{cosign;imageTools;constructor(e){this.cosign=e?.cosign||new Pu,this.imageTools=e?.imageTools||new tP}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 s=this.signingEndpoints(e.noTransparencyLog);H(`Using Sigstore signing endpoint: ${s.fulcioURL}`);let i=t.noTransparencyLog(e.noTransparencyLog),n=[];await this.cosign.versionSatisfies(">=3.0.4")?await Sn("Creating Sigstore protobuf signing config",async()=>{let o=Nt.tmpName({template:"signing-config-XXXXXX.json",tmpdir:Nt.tmpDir()}),a=["signing-config","create","--with-default-services=true",`--out=${o}`];i&&a.push("--no-default-rekor=true"),await Pe.exec("cosign",a,{env:Object.assign({},process.env,{COSIGN_EXPERIMENTAL:"1"})}),H(JSON.stringify(JSON Line truncated
`).map(i=>i.trim()).filter(i=>i.length>0);return s}static async commitDate(e){return new Date(await t.exec(["show","-s",'--format="%ci"',e]))}};var U1e=require("crypto"),Ml=O(require("fs"),1),rf=O(require("path"),1);var hB=O(Cb(),1),Ll=O(xTe(),1),F1e=O(T9(),1),DE=O(Q1e(),1);var _W=O(Cb(),1);var O1e=O(Va(),1);var P1e="application/vnd.oci.empty.v1+json";var mh=class{binPath;_version;_versionOnce;constructor(e){this.binPath=e?.binPath||"cosign",this._version="",this._versionOnce=!1}async isAvailable(){let e=await ke.getExecOutput(this.binPath,[],{ignoreReturnCode:!0,silent:!0}).then(r=>r.stderr.length>0&&r.exitCode!=0?(z(`Cosign.isAvailable cmd err: ${r.stderr.trim()}`),!1):r.exitCode==0).catch(r=>(z(`Cosign.isAvailable error: ${r}`),!1));return z(`Cosign.isAvailable: ${e}`),e}async version(){return this._versionOnce?this._version:(this._versionOnce=!0,this._version=await ke.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 ke.exec(this.binPath,["version","--json"],{failOnStdErr:!1})}async versionSatisfies(e,r){let s=r??await this.version();if(!s)return z("Cosign.versionSatisfies false: undefined version"),!1;let i=O1e.satisfies(s,e)||/^[0-9a-f]{7}$/.exec(s)!==null;return z(`Cosign.versionSatisfies ${s} statisfies ${e}: ${i}`),i}static parseCommandOutput(e){let r,s,i,n;for(let o of e.split(/\r?\n/)){let a=o.trim();if(!a.startsWith("{")||!a.endsWith("}"))continue;let c;try{c=JSON.parse(a)}catch{continue}if(c&&Array.isArray(c.errors)&&c.errors.length>0&&(n=c.errors),!r&&c&&Array.isArray(c.manifests)&&c.manifests.length>0){let l=c.manifests[0];l?.artifactType===_W.BUNDLE_V03_MEDIA_TYPE&&typeof l.digest=="string"?r=l.digest:l?.artifactType===P1e&&typeof l.digest=="string"&&(s=l.digest)}if(!i&&c&&c.mediaType===_W.BUNDLE_V03_MEDIA_TYPE&&(i=c),i&&(r||s)){n=void 0;break}}return{bundle:i,signatureManifestDigest:r||s,errors:n}}};var QW=O(require("fs"),1);var uD=class t{buildx;constructor(e){this.buildx=e?.buildx||new zt}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 s=r.manifests.filter(o=>o.annotations?.["vnd.docker.reference.type"]==="attestation-manifest");if(!e.platform)return s;let i=e.platform,n=new Map;for(let o of r.manifests)o.digest&&n.set(o.digest,o);return s.filter(o=>{let a=o.annotations?.["vnd.docker.reference.digest"];if(!a)return!1;let c=n.get(a);return c?c.platform?.os===i.os&&c.platform?.architecture===i.architecture&&(c.platform?.variant??"")===(i.variant??""):!1})}async attestationDigests(e){return(await this.attestationDescriptors(e)).map(r=>r.digest)}async create(e){let r=[],s=Ct.tmpName({tmpdir:Ct.tmpDir(),template:"imagetools-metadata-XXXXXX"}),i=[],n=[];for(let a of e.sources){if(a.startsWith("cwd://")){let c=a.substring(6);c.length>0&&i.push(c);continue}n.push(a)}if(e.tags)for(let a of e.tags)r.push("--tag",a);if(e.platforms)for(let a of e.platforms)r.push("--platform",a);if(e.annotations)for(let a of e.annotations)r.push("--annotation",a);e.dryRun?r.push("--dry-run"):r.push("--metadata-file",s);for(let a of i)r.push("--file",a);for(let a of n)r.push(a);let o=await this.getCreateCommand(r);if(e.skipExec){j(`[command]${o.command} ${o.args.join(" ")}`),j("Skipped create command");return}return await ke.getExecOutput(o.command,o.args,{ignoreReturnCode:!0,silent:e.silent}).then(a=>{if(a.stderr.length>0&&a.exitCode!=0)throw new Error(a.stderr.trim());if(!e.dryRun){if(!QW.default.existsSync(s))return;let c=QW.default.readFileSync(s,{encoding:"utf-8"}).trim();if(c===""||c==="null")return;let l=JSON.parse(c),u=l["containerimage.descriptor"];return u?{digest:l["containerimage.digest"]||u.digest,descriptor:u,imageNames:l["image.name"]?l["image.name"].split(",").map(h=>h.trim()):[]}:void 0}})}async inspect(e,r,s){let i=await this.getInspectCommand([e.name,"--format",r]);if(!e.retryOnManifestUnknown)return await this.execInspect(i.command,i.args,s);let n=e.retryLimit??15,o;for(let a=0;a<n;a++)try{return await this.execInspect(i.command,i.args,s)}catch(c){if(o=c,!t.isManifestUnknown Line truncated
${o.message}`),await new Promise(l=>setTimeout(l,Math.pow(2,a)*100))}throw o??new Error(`ImageTools inspect command failed for ${e.name}`)}async execInspect(e,r,s){return await ke.getExecOutput(e,r,{ignoreReturnCode:!0,silent:!0}).then(i=>{if(i.stderr.length>0&&i.exitCode!=0)throw new Error(i.stderr.trim());return s(JSON.parse(i.stdout))})}static isManifestUnknownError(e){return/(MANIFEST_UNKNOWN|manifest unknown|not found: not found)/i.test(e)}};var D1e="application/vnd.in-toto+json";var k1e="https://fulcio.sigstore.dev",M1e="https://rekor.sigstore.dev",L1e="https://timestamp.sigstore.dev",_A="https://search.sigstore.dev";var UQt="slsaprovenance1",sf=class t{cosign;imageTools;constructor(e){this.cosign=e?.cosign||new mh,this.imageTools=e?.imageTools||new uD}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 s=this.signingEndpoints(e.noTransparencyLog);j(`Using Sigstore signing endpoint: ${s.fulcioURL}`);let i=t.noTransparencyLog(e.noTransparencyLog),n=[];await this.cosign.versionSatisfies(">=3.0.4")?await Vh("Creating Sigstore protobuf signing config",async()=>{let o=Ct.tmpName({template:"signing-config-XXXXXX.json",tmpdir:Ct.tmpDir()}),a=["signing-config","create","--with-default-services=true",`--out=${o}`];i&&a.push("--no-default-rekor=true"),await ke.exec(this.cosign.binPath,a,{env:Object.assign({},process.env,{COSIGN_EXPERIMENTAL:"1"})}),j(JSON.stringify(JSON.parse(Ml.default.readFileSync(o,{encoding:"utf-8"})),null,2)),n.push(`--signing-config=${o}`)}):(n.push("--use-signing-config"),i&&n.push("--tlog-upload=false"));for(let o of e.imageNames){let a=await this.imageTools.attestationDigests({name:`${o}@${e.imageDigest}`,retryOnManifestUnknown:e.retryOnManifestUnknown,retryLimit:e.retryLimit});for(let c of a){let l=`${o}@${c}`;await Vh(`Signing attestation manifest ${l}`,async()=>{let u=["sign","--yes","--oidc-provider","github-actions","--registry-referrers-mode","oci-1-1","--new-bundle-format",...n];j(`[command]${this.cosign.binPath} ${[...u,l].join(" ")}`);let h=await ke.getExecOutput(this.cosign.binPath,["--verbose",...u,l],{ignoreReturnCode:!0,silent:!0,env:Object.assign({},process.env,{COSIGN_EXPERIMENTAL:"1"})}),d=mh.parseCommandOutput(h.stderr.trim());if(h.exitCode!=0)if(d.errors&&d.errors.length>0){let p=d.errors.map(m=>`- [${m.code}] ${m.message} : ${m.detail}`).join(`
`);throw new Error(`Cosign sign command failed with errors:
${A}`)}else throw new Error(`Cosign sign command failed with: ${d.stderr.trim().split(/\r?\n/).filter(A=>A.length>0).pop()??"unknown error"}`);let f=t.parseBundle((0,ab.bundleFromJSON)(h.bundle));f.tlogID&&H(`Uploaded to Rekor transparency log: ${xA}?logIndex=${f.tlogID}`),H(`Signature manifest pushed: https://oci.dag.dev/?referrers=${l}`),r[l]={...f,imageName:o}})}}}catch(s){throw new Error(`Signing BuildKit attestation manifests failed: ${s.message}`)}return r}async verifySignedManifests(e,r){let s={};for(let[i,n]of Object.entries(e))await Sn(`Verifying signature of ${i}`,async()=>{let o=await this.verifyImageAttestation(i,{certificateIdentityRegexp:r.certificateIdentityRegexp,noTransparencyLog:r.noTransparencyLog||!n.tlogID,retryOnManifestUnknown:r.retryOnManifestUnknown});H(`Signature manifest verified: https://oci.dag.dev/?image=${n.imageName}@${o.signatureManifestDigest}`),s[i]=o});return s}async verifyImageAttestations(e,r){let s={},i=await this.imageTools.attestationDigests(e,r.platform);if(i.length===0)throw new Error(`No attestation manifests found for ${e}`);let n=e.split(":",1)[0];for(let o of i){let a=`${n}@${o}`,c=await this.verifyImageAttestation(a,r);H(`Signature manifest verified: https://oci.dag.dev/?image=${n}@${c.signatureManifestDigest}`),s[a]=c}return s}async verifyImageAttestation(e,r){if(!await this.cosign.isAvailable())throw new Error("Cosign is required to verify signed manifests");let s=["verify","--experimental-oci11","--new-bundle-format","--certificate-oidc-issuer","https://token.actions.githubusercontent.com","--certificate-identity-regexp",r.certificateIdentityRegexp];if(r.noTransparencyLog&&s.push("--use-signed-timestamps","--insecure-ignore-tlog"),!r.retryOnManifestUnknown){H(`[command]cosign ${[...s,e].join(" ")}`);let o=await Pe.getExecOutput("cosign",["--verbose",...s,e],{ignoreReturnCode:!0,silent:!0,env:Object.assign({},process.env,{COSIGN_EXPERIMENTAL:"1"})});if(o.exitCode!==0)throw new Error(`Cosign verify command failed with: ${o.stderr.trim().split(/\r?\n/).filter(c=>c.length>0).pop()??"unknown error"}`);let a=Pu.parseCommandOutput(o.stderr.trim());return{cosignArgs:s,signatureManifestDigest:a.signatureManifestDigest}}let i=15,n;H(`[command]cosign ${[...s,e].join(" ")}`);for(let o=0;o<i;o++){let a=await Pe.getExecOutput("cosign",["--verbose",...s,e],{ignoreReturnCode:!0,silent:!0,env:Object.assign({},process.env,{COSIGN_EXPERIMENTAL:"1"})}),c=Pu.parseCommandOutput(a.stderr.trim());if(a.exitCode===0)return{cosignArgs:s,signatureManifestDigest:c.signatureManifestDigest};if(c.errors&&c.errors.length>0){let l=c.errors.map(u=>`- [${u.code}] ${u.message} : ${u.detail}`).join(`
${p}`)}else throw new Error(`Cosign sign command failed with: ${h.stderr.trim().split(/\r?\n/).filter(p=>p.length>0).pop()??"unknown error"}`);let f=t.parseBundle((0,hB.bundleFromJSON)(d.bundle));f.tlogID&&j(`Uploaded to Rekor transparency log: ${_A}?logIndex=${f.tlogID}`),j(`Signature manifest pushed: https://oci.dag.dev/?referrers=${l}`),r[l]={...f,imageName:o}})}}}catch(s){throw new Error(`Signing BuildKit attestation manifests failed: ${s.message}`)}return r}async verifySignedManifests(e,r){let s={};for(let[i,n]of Object.entries(e))await Vh(`Verifying signature of ${i}`,async()=>{let o=await this.verifyImageAttestation(i,{certificateIdentityRegexp:r.certificateIdentityRegexp,noTransparencyLog:r.noTransparencyLog||!n.tlogID,retryOnManifestUnknown:r.retryOnManifestUnknown});j(`Signature manifest verified: https://oci.dag.dev/?image=${n.imageName}@${o.signatureManifestDigest}`),s[i]=o});return s}async verifyImageAttestations(e,r){let s={},i=await this.imageTools.attestationDigests({name:e,platform:r.platform,retryOnManifestUnknown:r.retryOnManifestUnknown,retryLimit:r.retryLimit});if(i.length===0)throw new Error(`No attestation manifests found for ${e}`);let n=e.split(":",1)[0];for(let o of i){let a=`${n}@${o}`,c=await this.verifyImageAttestation(a,r);j(`Signature manifest verified: https://oci.dag.dev/?image=${n}@${c.signatureManifestDigest}`),s[a]=c}return s}async verifyImageAttestation(e,r){if(!await this.cosign.isAvailable())throw new Error("Cosign is required to verify signed manifests");let s=["verify","--experimental-oci11","--new-bundle-format","--certificate-oidc-issuer","https://token.actions.githubusercontent.com","--certificate-identity-regexp",r.certificateIdentityRegexp];if(r.noTransparencyLog&&s.push("--use-signed-timestamps","--insecure-ignore-tlog"),!r.retryOnManifestUnknown){j(`[command]${this.cosign.binPath} ${[...s,e].join(" ")}`);let o=await ke.getExecOutput(this.cosign.binPath,["--verbose",...s,e],{ignoreReturnCode:!0,silent:!0,env:Object.assign({},process.env,{COSIGN_EXPERIMENTAL:"1"})});if(o.exitCode!==0)throw new Error(`Cosign verify command failed with: ${o.stderr.trim().split(/\r?\n/).filter(c=>c.length>0).pop()??"unknown error"}`);let a=mh.parseCommandOutput(o.stderr.trim());return{cosignArgs:s,signatureManifestDigest:a.signatureManifestDigest}}let i=r.retryLimit??15,n;j(`[command]${this.cosign.binPath} ${[...s,e].join(" ")}`);for(let o=0;o<i;o++){let a=await ke.getExecOutput(this.cosign.binPath,["--verbose",...s,e],{ignoreReturnCode:!0,silent:!0,env:Object.assign({},process.env,{COSIGN_EXPERIMENTAL:"1"})}),c=mh.parseCommandOutput(a.stderr.trim());if(a.exitCode===0)return{cosignArgs:s,signatureManifestDigest:c.signatureManifestDigest};if(c.errors&&c.errors.length>0){let l=c.errors.map(u=>`- [${u.code}] ${u.message} : ${u.detail}`).join(`
`);if(n=new Error(`Cosign verify command failed with errors:
${l}`),c.errors.some(u=>u.code==="MANIFEST_UNKNOWN"))H(`Cosign verify command failed with MANIFEST_UNKNOWN, retrying attempt ${o+1}/${i}...
${l}`),await new Promise(u=>setTimeout(u,Math.pow(2,o)*100));else throw n}else throw new Error(`Cosign verify command failed with: ${a.stderr.trim().split(/\r?\n/).filter(l=>l.length>0).pop()??"unknown error"}`)}throw n}async signProvenanceBlobs(e){let r={};try{if(!process.env.ACTIONS_ID_TOKEN_REQUEST_URL)throw new Error('missing "id-token" permission. Please add "permissions: id-token: write" to your workflow.');let s=this.signingEndpoints(e.noTransparencyLog);H(`Using Sigstore signing endpoint: ${s.fulcioURL}`);let i=t.getProvenanceBlobs(e);for(let n of Object.keys(i))await Sn(`Signing ${n}`,async()=>{let o=i[n],a=uh.default.join(uh.default.dirname(n),`${e.name??"provenance"}.sigstore.json`),c=t.getProvenanceSubjects(o);if(c.length===0){or(`No subjects found in provenance ${n}, skip signing.`);return}let l=await t.signPayload({data:o,type:eSe},s),u=t.parseBundle(l);H("Provenance blob signed for:");for(let d of c){let[h,f]=Object.entries(d.digest)[0]||[];H(` - ${d.name} (${h}:${f})`)}u.tlogID&&H(`Attestation signature uploaded to Rekor transparency log: ${xA}?logIndex=${u.tlogID}`),H(`Writing Sigstore bundle to: ${a}`),cl.default.writeFileSync(a,JSON.stringify(u.payload,null,2),{encoding:"utf-8"}),r[n]={...u,bundlePath:a,subjects:c}})}catch(s){throw new Error(`Signing BuildKit provenance blobs failed: ${s.message}`)}return r}async verifySignedArtifacts(e,r){let s={};if(!await this.cosign.isAvailable())throw new Error("Cosign is required to verify signed artifacts");for(let[i,n]of Object.entries(e)){let o=uh.default.dirname(i);await Sn(`Verifying signature bundle ${n.bundlePath}`,async()=>{for(let a of n.subjects){let c=uh.default.join(o,a.name);H(`Verifying signed artifact ${c}`);let l=["verify-blob-attestation","--new-bundle-format","--certificate-oidc-issuer","https://token.actions.githubusercontent.com","--certificate-identity-regexp",r.certificateIdentityRegexp];(r.noTransparencyLog||!n.tlogID)&&l.push("--use-signed-timestamps","--insecure-ignore-tlog");let u=await Pe.getExecOutput("cosign",[...l,"--bundle",n.bundlePath,c],{ignoreReturnCode:!0});if(u.stderr.length>0&&u.exitCode!=0)throw new Error(u.stderr);s[c]={bundlePath:n.bundlePath,cosignArgs:l}}})}return s}async verifyArtifact(e,r,s){H("Verifying keyless verification bundle signature");let i=JSON.parse(cl.default.readFileSync(r,"utf-8")),n=(0,ab.bundleFromJSON)(i);H("Fetching Sigstore TUF trusted root metadata");let o=await nSe.getTrustedRoot(),a=(0,cy.toTrustMaterial)(o);try{H("Verifying artifact signature");let c=(0,cy.toSignedEntity)(n,cl.default.readFileSync(e)),l=t.parseCertificate(n),u=n.verificationMaterial.tlogEntries,d=u.length>0?u[0].logIndex:void 0;if(s?.subjectAlternativeName&&s?.subjectAlternativeName instanceof RegExp){let A=l.subjectAltName?.replace(/^uri:/i,"");if(A){if(!A.match(s.subjectAlternativeName))throw new Error(`Signing certificate subjectAlternativeName "${A}" does not match expected pattern`)}else throw new Error("Signing certificate does not contain subjectAltName")}let f=new cy.Verifier(a).verify(c,{subjectAlternativeName:s?.subjectAlternativeName&&typeof s.subjectAlternativeName=="string"?s.subjectAlternativeName:void 0,extensions:s?.issuer?{issuer:s.issuer}:void 0});return T(`Sigstore.verifyArtifact signer: ${JSON.stringify(f)}`),{payload:i,certificate:l.toString(),tlogID:d}}catch(c){throw new Error(`Failed to verify artifact signature: ${c}`)}}signingEndpoints(e){return e=t.noTransparencyLog(e),H(`Upload to transparency log: ${e?"disabled":"enabled"}`),{fulcioURL:tSe,rekorURL:e?void 0:rSe,tsaServerURL:sSe}}static noTransparencyLog(e){return e??xt.context.payload.repository?.private}static getProvenanceBlobs(e){let r=uh.default.join(e.localExportDir,"provenance.json");if(cl.default.existsSync(r))return{[r]:cl.default.readFileSync(r)};let s=cl.default.readdirSync(e.localExportDir,{withFileTypes:!0}),i=s.filter(n=>n.isDirectory());if(i.length>0&&i.length===s.length&&i.every(n=>cl.default.existsSync(uh.default.join(e.localExportDir,n.name,"provenance.json")))){let n={};for(let o of i){let a=uh.default.join(e.localExportDir,o.name,"provenance.json");n[a]=cl.default.readFileSync(a)}return n}throw new Error(`No valid provenance.json found in ${e.localExportDir}`)}static getProvenanceSubjects(e){return JSON.parse(e.toString()).subject.map(s=>({name:s.name,digest:s.digest}))}static async signPayload(e,r,s,i){let n=[],o=new ll.FulcioSigner({identityProvider:new ll.CIContextProvider("sigstore"),fulcioBaseURL:r.fulcioURL,timeout:s,retry:i});return r.rekorURL&&n.push(new ll.RekorWitness({rekorBaseURL:r.rekorURL,fetchOnConflict:!0,timeout:s,retry:i})),r.tsaServerURL&&n.push(new ll.TSAWitness({tsaBaseURL:r.tsaServerURL,timeout:s,retry:i})),new ll.DSSEBundleBuilder({signer:o,witnesses:n}).create(e)}static parseBundle(e){let r=t.parseCertificate(e),s=e.verificationMaterial.tlogEntries,i=s.length>0?s[0].logIndex:void 0;return{payload:(0,ab.bundleToJSON)(e),certificate:r.toString(),tlogID:i}}static parseCertificate(e){let r;switch(e Line truncated
`)){let[l,...u]=c.split(":"),d=l.toLowerCase(),h=u.map(f=>f.trim()).join(":");if(l.length!=0)switch(!0){case d=="name":s=void 0,r.name==null?r.name=h:(n&&i.gcPolicy&&(i.gcPolicy.push(n),n=void 0),i.name&&r.nodes.push(i),i={name:h});break;case d=="driver":s=void 0,r.driver=h;break;case d=="last activity":s=void 0,r.lastActivity=new Date(h);break;case d=="endpoint":s=void 0,i.endpoint=h;break;case d=="driver options":s=void 0,i["driver-opts"]=(h.match(/([a-zA-Z0-9_.]+)="([^"]*)"/g)||[]).map(f=>f.replace(/^(.*)="(.*)"$/g,"$1=$2"));break;case d=="status":s=void 0,i.status=h;break;case d=="buildkit daemon flags":case d=="flags":s=void 0,i["buildkitd-flags"]=h;break;case d=="buildkit version":case d=="buildkit":s=void 0,i.buildkit=h;break;case d=="platforms":{if(s=void 0,!h)break;let f=[];if(h.includes("*"))for(let A of h.split(", "))A.includes("*")&&f.push(A.replace(/\*/g,""));else f=h.split(", ");i.platforms=f.join(",");break}case d=="features":s="features",i.features={};break;case d=="labels":s="label",i.labels={};break;case d=="devices":s="devices",i.devices=i.devices||[];break;case d.startsWith("gc policy rule#"):s="gcpolicy",i.gcPolicy&&n&&(i.gcPolicy.push(n),n=void 0);break;case d.startsWith("file#"):s="file",a=l.split("#")[1],i.files=i.files||{},i.files[a]="";break;default:switch(s&&s!=="devices"&&i.devices&&o&&(i.devices.push(o),o=void 0),s||""){case"features":{i.features=i.features||{},i.features[l.trim()]=!!h;break}case"label":{i.labels=i.labels||{},i.labels[l.trim()]=h;break}case"devices":{switch(d.trim()){case"name":{i.devices&&o&&i.devices.push(o),o={},o.name=h;break}case"on-demand":{o&&h&&(o.onDemand=h=="true");break}case"automatically allowed":{o&&h&&(o.autoAllow=h=="true");break}case"annotations":{o&&(o.annotations=o.annotations||{});break}default:o&&o.annotations&&(o.annotations[l.trim()]=h)}break}case"gcpolicy":{switch(i.gcPolicy=i.gcPolicy||[],n=n||{},d.trim()){case"all":{n.all=h=="true";break}case"filters":{h&&(n.filter=h.split(","));break}case"keep duration":{n.keepDuration=h;break}case"keep bytes":{n.keepBytes=h;break}case"reserved space":{n.reservedSpace=h;break}case"max used space":{n.maxUsedSpace=h;break}case"min free space":{n.minFreeSpace=h;break}}break}case"file":{a&&i.files&&(i.files[a].length>0&&(i.files[a]+=`
`),i.files[a]+=c.replace(/^\s>\s?/,""));break}}}}return o&&i.devices&&i.devices.push(o),n&&i.gcPolicy&&i.gcPolicy.push(n),i.name&&r.nodes.push(i),r}};var oSe=M(wa(),1);var sP=M(require("fs"),1);var iP=class{resolveFromString(e){return this.resolve(e,!1)}resolveFromFile(e){return this.resolve(e,!0)}resolve(e,r){if(r){if(!sP.default.existsSync(e))throw new Error(`config file ${e} not found`);e=sP.default.readFileSync(e,{encoding:"utf-8"})}let s=Nt.tmpName({tmpdir:Nt.tmpDir()});return sP.default.writeFileSync(s,e),s}};var nP=class{buildx;config;constructor(e){this.config=new iP,this.buildx=e?.buildx||new qt}async getVersion(e){if(!e.buildkit&&e.name)try{return await this.getVersionWithinImage(e.name)}catch(r){or(r)}return e.buildkit}async getVersionWithinImage(e){return T(`BuildKit.getVersionWithinImage nodeName: ${e}`),Zr.getExecOutput(["inspect","--format","{{.Config.Image}}",`${qt.containerNamePrefix}${e}`],{ignoreReturnCode:!0,silent:!0}).then(r=>{if(r.exitCode==0&&r.stdout.length>0)return T(`BuildKit.getVersionWithinImage image: ${r.stdout.trim()}`),Zr.getExecOutput(["run","--rm",r.stdout.trim(),"--version"],{ignoreReturnCode:!0,silent:!0}).then(s=>{if(s.exitCode==0&&s.stdout.length>0)return`${r.stdout.trim()} => ${s.stdout.trim()}`;if(s.stderr.length>0)throw new Error(r.stderr.trim());return s.stdout.trim()});if(r.stderr.length>0)throw new Error(r.stderr.trim());return r.stdout.trim()})}async versionSatisfies(e,r,s){s||(s=await new uy({buildx:this.buildx}).inspect(e));for(let i of s.nodes){let n=i.buildkit;if(T(`BuildKit.versionSatisfies ${n}: ${r}`),!n)try{n=await this.getVersionWithinImage(i.name||"")}catch{return T(`BuildKit.versionSatisfies ${i.name}: can't get version`),!1}if(T(`BuildKit.versionSatisfies ${i.name}: version ${n}`),s.driver=="docker"&&!n.endsWith("-moby")||!oSe.satisfies(n.replace(/-moby$/,""),r))return!1}return!0}};var oP=class t{_version;_versionOnce;_standalone;constructor(e){this._standalone=e?.standalone,this._version="",this._versionOnce=!1}async isStandalone(){let e=this._standalone??!await Zr.isAvailable();return T(`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 Pe.getExecOutput(e.command,e.args,{ignoreReturnCode:!0,silent:!0}).then(s=>s.stderr.length>0&&s.exitCode!=0?(T(`Compose.isAvailable cmd err: ${s.stderr.trim()}`),!1):s.exitCode==0).catch(s=>(T(`Compose.isAvailable error: ${s}`),!1));return T(`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 Pe.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 Pe.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 Ou=M(require("fs"),1),dl=M(require("os"),1),dy=M(require("path"),1);var cP=M(wa(),1),p5=M(require("util"),1);var aP=class t{standalone;githubToken;constructor(e){this.standalone=e?.standalone,this.githubToken=e?.githubToken||process.env.GITHUB_TOKEN}async download(e,r){let s=await t.getDownloadVersion(e);T(`Install.download version: ${s.version}`);let i=await t.getRelease(s,this.githubToken);T(`Install.download release tag name: ${i.tag_name}`);let n=await this.vspec(i.tag_name);T(`Install.download vspec: ${n}`);let o=cP.clean(n)||"";if(!cP.valid(o))throw new Error(`Invalid Compose version "${n}".`);let a=new ds({htcName:s.key!="official"?`compose-dl-bin-${s.key}`:"compose-dl-bin",htcVersion:n,baseCacheDir:dy.default.join(dl.default.homedir(),".bin","docker-compose"),cacheFile:dl.default.platform()=="win32"?"docker-compose.exe":"docker-compose",ghaNoCache:r}),c=await a.find();if(c)return H(`Compose binary found in ${c}`),c;let l=p5.format(s.downloadURL,n,this.filename());H(`Downloading ${l}`);let u=await fo(l,void 0,this.githubToken);T(`Install.download htcDownloadPath: ${u}`);let d=await a.save(u);return H(`Cached to ${d}`),d}async installStandalone(e,r){H("Standalone mode"),r=r||Nt.tmpDir();let s=dy.default.join(r,"compose-bin-standalone");Ou.default.existsSync(s)||Ou.default.mkdirSync(s,{recursive:!0});let i=dl.default.platform()=="win32"?"compose.exe":"compose",n=dy.default.join(s,i);return Ou.default.copyFileSync(e,n),H("Fixing perms"),Ou.default.chmodSync(n,"0755"),ja(s),H("Added Compose to PATH"),H(`Binary path: ${n}`),n}async installPlugin(e,r){H("Docker plugin mode"),r=r||Zr.configDir;let s=dy.default.join(r,"cli-plugins");Ou.default.existsSync(s)||Ou.default.mkdirSync(s,{recursive:!0});let i=dl.default.platform()=="win32"?"docker-compose.exe":"docker-compose",n=dy.default.join(s,i);return Ou.default. Line truncated
${l}`),c.errors.some(u=>u.code==="MANIFEST_UNKNOWN"))j(`Cosign verify command failed with MANIFEST_UNKNOWN, retrying attempt ${o+1}/${i}...
${l}`),await new Promise(u=>setTimeout(u,Math.pow(2,o)*100));else throw n}else throw new Error(`Cosign verify command failed with: ${a.stderr.trim().split(/\r?\n/).filter(l=>l.length>0).pop()??"unknown error"}`)}throw n}async signProvenanceBlobs(e){let r={};try{if(!process.env.ACTIONS_ID_TOKEN_REQUEST_URL)throw new Error('missing "id-token" permission. Please add "permissions: id-token: write" to your workflow.');let s=this.signingEndpoints(e.noTransparencyLog);j(`Using Sigstore signing endpoint: ${s.fulcioURL}`);let i=t.getProvenanceBlobs(e);for(let n of Object.keys(i))await Vh(`Signing ${n}`,async()=>{let o=i[n],a=rf.default.join(rf.default.dirname(n),`${e.name??"provenance"}.sigstore.json`),c=t.getProvenanceSubjects(o);if(c.length===0){Ro(`No subjects found in provenance ${n}, skip signing.`);return}let l=await t.signPayload({data:o,type:D1e},s),u=t.parseBundle(l);j("Provenance blob signed for:");for(let h of c){let[d,f]=Object.entries(h.digest)[0]||[];j(` - ${h.name} (${d}:${f})`)}u.tlogID&&j(`Attestation signature uploaded to Rekor transparency log: ${_A}?logIndex=${u.tlogID}`),j(`Writing Sigstore bundle to: ${a}`),Ml.default.writeFileSync(a,JSON.stringify(u.payload,null,2),{encoding:"utf-8"}),r[n]={...u,bundlePath:a,subjects:c}})}catch(s){throw new Error(`Signing BuildKit provenance blobs failed: ${s.message}`)}return r}async verifySignedArtifacts(e,r){let s={};if(!await this.cosign.isAvailable())throw new Error("Cosign is required to verify signed artifacts");for(let[i,n]of Object.entries(e)){let o=rf.default.dirname(i);await Vh(`Verifying signature bundle ${n.bundlePath}`,async()=>{for(let a of n.subjects){let c=rf.default.join(o,a.name);j(`Verifying signed artifact ${c}`);let l=["verify-blob-attestation","--new-bundle-format","--certificate-oidc-issuer","https://token.actions.githubusercontent.com","--certificate-identity-regexp",r.certificateIdentityRegexp,"--type",r.predicateType??UQt];(r.noTransparencyLog||!n.tlogID)&&l.push("--use-signed-timestamps","--insecure-ignore-tlog");let u=await ke.getExecOutput(this.cosign.binPath,[...l,"--bundle",n.bundlePath,c],{ignoreReturnCode:!0});if(u.stderr.length>0&&u.exitCode!=0)throw new Error(u.stderr);s[c]={bundlePath:n.bundlePath,cosignArgs:l}}})}return s}async verifyArtifact(e,r,s){j("Verifying keyless verification bundle signature");let i=JSON.parse(Ml.default.readFileSync(r,"utf-8")),n=(0,hB.bundleFromJSON)(i);j("Fetching Sigstore TUF trusted root metadata");let o=await F1e.getTrustedRoot(),a=(0,DE.toTrustMaterial)(o);try{j("Verifying artifact signature");let c=(0,DE.toSignedEntity)(n,Ml.default.readFileSync(e)),l=t.parseCertificate(n),u=n.verificationMaterial.tlogEntries,h=u.length>0?u[0].logIndex:void 0;if(s?.subjectAlternativeName&&s?.subjectAlternativeName instanceof RegExp){let p=l.subjectAltName?.replace(/^uri:/i,"");if(p){if(!p.match(s.subjectAlternativeName))throw new Error(`Signing certificate subjectAlternativeName "${p}" does not match expected pattern`)}else throw new Error("Signing certificate does not contain subjectAltName")}let f=new DE.Verifier(a).verify(c,{subjectAlternativeName:s?.subjectAlternativeName&&typeof s.subjectAlternativeName=="string"?s.subjectAlternativeName:void 0,extensions:s?.issuer?{issuer:s.issuer}:void 0});return z(`Sigstore.verifyArtifact signer: ${JSON.stringify(f)}`),{payload:i,certificate:l.toString(),tlogID:h}}catch(c){throw new Error(`Failed to verify artifact signature: ${c}`)}}signingEndpoints(e){return e=t.noTransparencyLog(e),j(`Upload to transparency log: ${e?"disabled":"enabled"}`),{fulcioURL:k1e,rekorURL:e?void 0:M1e,tsaServerURL:L1e}}static noTransparencyLog(e){return e??Pt.context.payload.repository?.private}static getProvenanceBlobs(e){let r=rf.default.join(e.localExportDir,"provenance.json");if(Ml.default.existsSync(r))return{[r]:Ml.default.readFileSync(r)};let s=Ml.default.readdirSync(e.localExportDir,{withFileTypes:!0}),i=s.filter(n=>n.isDirectory());if(i.length>0&&i.length===s.length&&i.every(n=>Ml.default.existsSync(rf.default.join(e.localExportDir,n.name,"provenance.json")))){let n={};for(let o of i){let a=rf.default.join(e.localExportDir,o.name,"provenance.json");n[a]=Ml.default.readFileSync(a)}return n}throw new Error(`No valid provenance.json found in ${e.localExportDir}`)}static getProvenanceSubjects(e){return JSON.parse(e.toString()).subject.map(s=>({name:s.name,digest:s.digest}))}static async signPayload(e,r,s,i){let n=[],o=new Ll.FulcioSigner({identityProvider:new Ll.CIContextProvider("sigstore"),fulcioBaseURL:r.fulcioURL,timeout:s,retry:i});return r.rekorURL&&n.push(new Ll.RekorWitness({rekorBaseURL:r.rekorURL,fetchOnConflict:!0,timeout:s,retry:i})),r.tsaServerURL&&n.push(new Ll.TSAWitness({tsaBaseURL:r.tsaServerURL,timeout:s,retry:i})),new Ll.DSSEBundleBuilder({signer:o,witnesses:n}).create(e)}static parseBundle(e){let r=t.parseCertificate(e),s=e.verificationMaterial.tlogEntries,i=s.length>0?s[0].logIndex:void 0;return{payload:(0,hB.bundleToJSON)(e),certificate:r.toString(),tlogID:i}} Line truncated
`)){let[l,...u]=c.split(":"),h=l.toLowerCase(),d=u.map(f=>f.trim()).join(":");if(l.length!=0)switch(!0){case h=="name":s=void 0,r.name==null?r.name=d:(n&&i.gcPolicy&&(i.gcPolicy.push(n),n=void 0),i.name&&r.nodes.push(i),i={name:d});break;case h=="driver":s=void 0,r.driver=d;break;case h=="last activity":s=void 0,r.lastActivity=new Date(d);break;case h=="endpoint":s=void 0,i.endpoint=d;break;case h=="driver options":s=void 0,i["driver-opts"]=(d.match(/([a-zA-Z0-9_.]+)="([^"]*)"/g)||[]).map(f=>f.replace(/^(.*)="(.*)"$/g,"$1=$2"));break;case h=="status":s=void 0,i.status=d;break;case h=="buildkit daemon flags":case h=="flags":s=void 0,i["buildkitd-flags"]=d;break;case h=="buildkit version":case h=="buildkit":s=void 0,i.buildkit=d;break;case h=="platforms":{if(s=void 0,!d)break;let f=[];if(d.includes("*"))for(let p of d.split(", "))p.includes("*")&&f.push(p.replace(/\*/g,""));else f=d.split(", ");i.platforms=f.join(",");break}case h=="features":s="features",i.features={};break;case h=="labels":s="label",i.labels={};break;case h=="devices":s="devices",i.devices=i.devices||[];break;case h.startsWith("gc policy rule#"):s="gcpolicy",i.gcPolicy&&n&&(i.gcPolicy.push(n),n=void 0);break;case h.startsWith("file#"):s="file",a=l.split("#")[1],i.files=i.files||{},i.files[a]="";break;default:switch(s&&s!=="devices"&&i.devices&&o&&(i.devices.push(o),o=void 0),s||""){case"features":{i.features=i.features||{},i.features[l.trim()]=!!d;break}case"label":{i.labels=i.labels||{},i.labels[l.trim()]=d;break}case"devices":{switch(h.trim()){case"name":{i.devices&&o&&i.devices.push(o),o={},o.name=d;break}case"on-demand":{o&&d&&(o.onDemand=d=="true");break}case"automatically allowed":{o&&d&&(o.autoAllow=d=="true");break}case"annotations":{o&&(o.annotations=o.annotations||{});break}default:o&&o.annotations&&(o.annotations[l.trim()]=d)}break}case"gcpolicy":{switch(i.gcPolicy=i.gcPolicy||[],n=n||{},h.trim()){case"all":{n.all=d=="true";break}case"filters":{d&&(n.filter=d.split(","));break}case"keep duration":{n.keepDuration=d;break}case"keep bytes":{n.keepBytes=d;break}case"reserved space":{n.reservedSpace=d;break}case"max used space":{n.maxUsedSpace=d;break}case"min free space":{n.minFreeSpace=d;break}}break}case"file":{a&&i.files&&(i.files[a].length>0&&(i.files[a]+=`
`),i.files[a]+=c.replace(/^\s>\s?/,""));break}}}}return o&&i.devices&&i.devices.push(o),n&&i.gcPolicy&&i.gcPolicy.push(n),i.name&&r.nodes.push(i),r}};var q1e=O(Va(),1);var dD=O(require("fs"),1);var fD=class{resolveFromString(e){return this.resolve(e,!1)}resolveFromFile(e){return this.resolve(e,!0)}resolve(e,r){if(r){if(!dD.default.existsSync(e))throw new Error(`config file ${e} not found`);e=dD.default.readFileSync(e,{encoding:"utf-8"})}let s=Ct.tmpName({tmpdir:Ct.tmpDir()});return dD.default.writeFileSync(s,e),s}};var pD=class{buildx;config;constructor(e){this.config=new fD,this.buildx=e?.buildx||new zt}async getVersion(e){if(!e.buildkit&&e.name)try{return await this.getVersionWithinImage(e.name)}catch(r){Ro(r)}return e.buildkit}async getVersionWithinImage(e){return z(`BuildKit.getVersionWithinImage nodeName: ${e}`),cs.getExecOutput(["inspect","--format","{{.Config.Image}}",`${zt.containerNamePrefix}${e}`],{ignoreReturnCode:!0,silent:!0}).then(r=>{if(r.exitCode==0&&r.stdout.length>0)return z(`BuildKit.getVersionWithinImage image: ${r.stdout.trim()}`),cs.getExecOutput(["run","--rm",r.stdout.trim(),"--version"],{ignoreReturnCode:!0,silent:!0}).then(s=>{if(s.exitCode==0&&s.stdout.length>0)return`${r.stdout.trim()} => ${s.stdout.trim()}`;if(s.stderr.length>0)throw new Error(r.stderr.trim());return s.stdout.trim()});if(r.stderr.length>0)throw new Error(r.stderr.trim());return r.stdout.trim()})}async versionSatisfies(e,r,s){s||(s=await new ME({buildx:this.buildx}).inspect(e));for(let i of s.nodes){let n=i.buildkit;if(z(`BuildKit.versionSatisfies ${n}: ${r}`),!n)try{n=await this.getVersionWithinImage(i.name||"")}catch{return z(`BuildKit.versionSatisfies ${i.name}: can't get version`),!1}if(z(`BuildKit.versionSatisfies ${i.name}: version ${n}`),s.driver=="docker"&&!n.endsWith("-moby")||!q1e.satisfies(n.replace(/-moby$/,""),r))return!1}return!0}};var AD=class t{_version;_versionOnce;_standalone;constructor(e){this._standalone=e?.standalone,this._version="",this._versionOnce=!1}async isStandalone(){let e=this._standalone??!await cs.isAvailable();return z(`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 ke.getExecOutput(e.command,e.args,{ignoreReturnCode:!0,silent:!0}).then(s=>s.stderr.length>0&&s.exitCode!=0?(z(`Compose.isAvailable cmd err: ${s.stderr.trim()}`),!1):s.exitCode==0).catch(s=>(z(`Compose.isAvailable error: ${s}`),!1));return z(`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 ke.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 ke.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 yh=O(require("fs"),1),Fl=O(require("os"),1),LE=O(require("path"),1);var gD=O(Va(),1),OW=O(require("util"),1);var mD=class t{standalone;githubToken;constructor(e){this.standalone=e?.standalone,this.githubToken=e?.githubToken||process.env.GITHUB_TOKEN}async download(e,r){let s=await t.getDownloadVersion(e);z(`Install.download version: ${s.version}`);let i=await t.getRelease(s,this.githubToken);z(`Install.download release tag name: ${i.tag_name}`);let n=await this.vspec(i.tag_name);z(`Install.download vspec: ${n}`);let o=gD.clean(n)||"";if(!gD.valid(o))throw new Error(`Invalid Compose version "${n}".`);let a=new Cs({htcName:s.key!="official"?`compose-dl-bin-${s.key}`:"compose-dl-bin",htcVersion:n,baseCacheDir:LE.default.join(Fl.default.homedir(),".bin","docker-compose"),cacheFile:Fl.default.platform()=="win32"?"docker-compose.exe":"docker-compose",ghaNoCache:r}),c=await a.find();if(c)return j(`Compose binary found in ${c}`),c;let l=OW.format(s.downloadURL,n,this.filename());j(`Downloading ${l}`);let u=await Qo(l,void 0,this.githubToken);z(`Install.download htcDownloadPath: ${u}`);let h=await a.save(u);return j(`Cached to ${h}`),h}async installStandalone(e,r){j("Standalone mode"),r=r||Ct.tmpDir();let s=LE.default.join(r,"compose-bin-standalone");yh.default.existsSync(s)||yh.default.mkdirSync(s,{recursive:!0});let i=Fl.default.platform()=="win32"?"compose.exe":"compose",n=LE.default.join(s,i);return yh.default.copyFileSync(e,n),j("Fixing perms"),yh.default.chmodSync(n,"0755"),Ac(s),j("Added Compose to PATH"),j(`Binary path: ${n}`),n}async installPlugin(e,r){j("Docker plugin mode"),r=r||cs.configDir;let s=LE.default.join(r,"cli-plugins");yh.default.existsSync(s)||yh.default.mkdirSync(s,{recursive:!0});let i=Fl.default.platform()=="win32"?"docker-compose.exe":"docker-compose",n=LE.default.join(s,i);return yh.default. Line truncated
# syntax=docker/dockerfile:1
ARG GO_VERSION="1.24"
@@ -195,7 +222,7 @@ EOT
FROM scratch
COPY --from=builder /out /
`;var lP=class t{githubToken;buildx;sigstore;constructor(e){this.githubToken=e?.githubToken||process.env.GITHUB_TOKEN,this.buildx=e?.buildx||new qt,this.sigstore=e?.sigstore||new dh}async download(e){let r=await t.getDownloadVersion(e.version);T(`Install.download version: ${r.version}`);let s=await t.getRelease(r,this.githubToken);T(`Install.download release tag name: ${s.tag_name}`);let i=await this.vspec(s.tag_name);T(`Install.download vspec: ${i}`);let n=fy.clean(i)||"";if(!fy.valid(n))throw new Error(`Invalid Cosign version "${i}".`);let o=new ds({htcName:"cosign-dl-bin",htcVersion:i,baseCacheDir:hy.default.join(_a.default.homedir(),".bin"),cacheFile:_a.default.platform()=="win32"?"cosign.exe":"cosign",ghaNoCache:e.ghaNoCache}),a=await o.find();if(a)return H(`Cosign binary found in ${a}`),a;let c=m5.format(r.downloadURL,i,this.filename());H(`Downloading ${c}`);let l=await fo(c,void 0,this.githubToken);T(`Install.download htcDownloadPath: ${l}`),e.verifySignature&&fy.satisfies(i,">=3.0.1")&&await this.verifySignature(l,c);let u=await o.save(l,e.skipState);return H(`Cached to ${u}`),u}async build(e,r,s){let i=await this.vspec(e);T(`Install.build vspec: ${i}`);let n=new ds({htcName:"cosign-build-bin",htcVersion:i,baseCacheDir:hy.default.join(_a.default.homedir(),".bin"),cacheFile:_a.default.platform()=="win32"?"cosign.exe":"cosign",ghaNoCache:r}),o=await n.find();if(o)return H(`Cosign binary found in ${o}`),o;let a=hy.default.join(Nt.tmpDir(),"cosign-build-cache"),c=await this.buildCommand(e,a),l=await Pe.getExecOutput(c.command,c.args,{ignoreReturnCode:!0,input:Buffer.from(aSe)}).then(d=>{if(d.stderr.length>0&&d.exitCode!=0)throw new Error(`build failed with: ${d.stderr.match(/(.*)\s*$/)?.[0]?.trim()??"unknown error"}`);return`${a}/cosign`}),u=await n.save(l,s);return H(`Cached to ${u}`),u}async install(e,r){r=r||Nt.tmpDir();let s=hy.default.join(r,"cosign-bin");cb.default.existsSync(s)||cb.default.mkdirSync(s,{recursive:!0});let i=_a.default.platform()=="win32"?"cosign.exe":"cosign",n=hy.default.join(s,i);return cb.default.copyFileSync(e,n),H("Fixing perms"),cb.default.chmodSync(n,"0755"),ja(s),H("Added Cosign to PATH"),H(`Binary path: ${n}`),n}async buildCommand(e,r){let s=await new qt({standalone:!0}).isAvailable(),i=await new qt({standalone:!1}).isAvailable(),n=!1;if(await this.buildx.isStandalone()&&s)T("Install.buildCommand: Buildx standalone found, build with it"),n=!0;else if(!await this.buildx.isStandalone()&&i)T("Install.buildCommand: Buildx plugin found, build with it"),n=!1;else if(s)T("Install.buildCommand: Buildx plugin not found, but standalone found so trying to build with it"),n=!0;else if(i)T("Install.buildCommand: Buildx standalone not found, but plugin found so trying to build with it"),n=!1;else throw new Error(`Neither buildx standalone or plugin have been found to build from ref ${e}`);let o=["build","--platform","local","--build-arg","BUILDKIT_CONTEXT_KEEP_GIT_DIR=1","--output",`type=local,dest=${r}`];return process.env.GIT_AUTH_TOKEN&&o.push("--secret","id=GIT_AUTH_TOKEN"),o.push("-f-",e),await new qt({standalone:n}).getCommand(o)}async verifySignature(e,r){let s=`${r}.sigstore.json`;H(`Downloading keyless verification bundle at ${s}`);let i=await fo(s,void 0,this.githubToken);T(`Install.verifySignature bundlePath: ${i}`);let n=await this.sigstore.verifyArtifact(e,i,{subjectAlternativeName:"keyless@projectsigstore.iam.gserviceaccount.com",issuer:"https://accounts.google.com"});H(`Cosign binary signature verified! ${n.tlogID?`${xA}?logIndex=${n.tlogID}`:""}`)}filename(){let e;switch(_a.default.arch()){case"x64":{e="amd64";break}case"ppc64":{e="ppc64le";break}default:{e=_a.default.arch();break}}let r=_a.default.platform()=="win32"?"windows":_a.default.platform(),s=_a.default.platform()=="win32"?".exe":"";return m5.format("cosign-%s-%s%s",r,e,s)}async vspec(e){if(!yr.isValidRef(e)){let l=e.replace(/^v+|v+$/g,"");return H(`Use ${l} version spec cache key for ${e}`),l}let[r,s]=e.split("#");s.length==0&&(s="master");let i;s.match(/^[0-9a-fA-F]{40}$/)?i=s:i=await Lm.remoteSha(r,s,process.env.GIT_AUTH_TOKEN);let[n,o]=r.substring(19).split("/"),a=`${n}/${yr.trimSuffix(o,".git")}/${i}`,c=yr.hash(a);return H(`Use ${c} version spec cache key for ${a}`),c}static async getDownloadVersion(e){return{version:e,downloadURL:"https://github.com/sigstore/cosign/releases/download/v%s/%s",contentOpts:{owner:"docker",repo:"actions-toolkit",ref:"main",path:".github/cosign-releases.json"}}}static async getRelease(e,r){let i=await new xt({token:r}).releases("Cosign",e.contentOpts);if(!i[e.version])throw new Error(`Cannot find Cosign release ${e.version} in releases JSON`);return i[e.version]}};var cSe=M(wa(),1);var uP=class{binPath;_version;_versionOnce;constructor(e){this.binPath=e?.binPath||"regctl",this._version="",this._versionOnce=!1}async blobGet(e){return await Pe.getExecOutput(this.binPath,["blob","get",e.repository,e.digest],{ignoreReturnCode:!0,silent:!0}).then(r=>{if(r.stderr.length>0&&r.exitCod Line truncated
`;var yD=class t{githubToken;buildx;sigstore;constructor(e){this.githubToken=e?.githubToken||process.env.GITHUB_TOKEN,this.buildx=e?.buildx||new zt,this.sigstore=e?.sigstore||new sf}async download(e){let r=await t.getDownloadVersion(e.version);z(`Install.download version: ${r.version}`);let s=await t.getRelease(r,this.githubToken);z(`Install.download release tag name: ${s.tag_name}`);let i=await this.vspec(s.tag_name);z(`Install.download vspec: ${i}`);let n=FE.clean(i)||"";if(!FE.valid(n))throw new Error(`Invalid Cosign version "${i}".`);let o=new Cs({htcName:"cosign-dl-bin",htcVersion:i,baseCacheDir:UE.default.join(tc.default.homedir(),".bin"),cacheFile:tc.default.platform()=="win32"?"cosign.exe":"cosign",ghaNoCache:e.ghaNoCache}),a=await o.find();if(a)return j(`Cosign binary found in ${a}`),a;let c=DW.format(r.downloadURL,i,this.filename());j(`Downloading ${c}`);let l=await Qo(c,void 0,this.githubToken);z(`Install.download htcDownloadPath: ${l}`),e.verifySignature&&FE.satisfies(i,">=3.0.1")&&await this.verifySignature(l,c);let u=await o.save(l,e.skipState);return j(`Cached to ${u}`),u}async build(e,r,s){let i=await this.vspec(e);z(`Install.build vspec: ${i}`);let n=new Cs({htcName:"cosign-build-bin",htcVersion:i,baseCacheDir:UE.default.join(tc.default.homedir(),".bin"),cacheFile:tc.default.platform()=="win32"?"cosign.exe":"cosign",ghaNoCache:r}),o=await n.find();if(o)return j(`Cosign binary found in ${o}`),o;let a=UE.default.join(Ct.tmpDir(),"cosign-build-cache"),c=await this.buildCommand(e,a),l=await ke.getExecOutput(c.command,c.args,{ignoreReturnCode:!0,input:Buffer.from(G1e)}).then(h=>{if(h.stderr.length>0&&h.exitCode!=0)throw new Error(`build failed with: ${h.stderr.match(/(.*)\s*$/)?.[0]?.trim()??"unknown error"}`);return`${a}/cosign`}),u=await n.save(l,s);return j(`Cached to ${u}`),u}async install(e,r){r=r||Ct.tmpDir();let s=UE.default.join(r,"cosign-bin");dB.default.existsSync(s)||dB.default.mkdirSync(s,{recursive:!0});let i=tc.default.platform()=="win32"?"cosign.exe":"cosign",n=UE.default.join(s,i);return dB.default.copyFileSync(e,n),j("Fixing perms"),dB.default.chmodSync(n,"0755"),Ac(s),j("Added Cosign to PATH"),j(`Binary path: ${n}`),n}async buildCommand(e,r){let s=await new zt({standalone:!0}).isAvailable(),i=await new zt({standalone:!1}).isAvailable(),n=!1;if(await this.buildx.isStandalone()&&s)z("Install.buildCommand: Buildx standalone found, build with it"),n=!0;else if(!await this.buildx.isStandalone()&&i)z("Install.buildCommand: Buildx plugin found, build with it"),n=!1;else if(s)z("Install.buildCommand: Buildx plugin not found, but standalone found so trying to build with it"),n=!0;else if(i)z("Install.buildCommand: Buildx standalone not found, but plugin found so trying to build with it"),n=!1;else throw new Error(`Neither buildx standalone or plugin have been found to build from ref ${e}`);let o=["build","--platform","local","--build-arg","BUILDKIT_CONTEXT_KEEP_GIT_DIR=1","--output",`type=local,dest=${r}`];return process.env.GIT_AUTH_TOKEN&&o.push("--secret","id=GIT_AUTH_TOKEN"),o.push("-f-",e),await new zt({standalone:n}).getCommand(o)}async verifySignature(e,r){let s=`${r}.sigstore.json`;j(`Downloading keyless verification bundle at ${s}`);let i=await Qo(s,void 0,this.githubToken);z(`Install.verifySignature bundlePath: ${i}`);let n=await this.sigstore.verifyArtifact(e,i,{subjectAlternativeName:"keyless@projectsigstore.iam.gserviceaccount.com",issuer:"https://accounts.google.com"});j(`Cosign binary signature verified! ${n.tlogID?`${_A}?logIndex=${n.tlogID}`:""}`)}filename(){let e;switch(tc.default.arch()){case"x64":{e="amd64";break}case"ppc64":{e="ppc64le";break}default:{e=tc.default.arch();break}}let r=tc.default.platform()=="win32"?"windows":tc.default.platform(),s=tc.default.platform()=="win32"?".exe":"";return DW.format("cosign-%s-%s%s",r,e,s)}async vspec(e){if(!Xt.isValidRef(e)){let l=e.replace(/^v+|v+$/g,"");return j(`Use ${l} version spec cache key for ${e}`),l}let[r,s]=e.split("#");s.length==0&&(s="master");let i;s.match(/^[0-9a-fA-F]{40}$/)?i=s:i=await sy.remoteSha(r,s,process.env.GIT_AUTH_TOKEN);let[n,o]=r.substring(19).split("/"),a=`${n}/${Xt.trimSuffix(o,".git")}/${i}`,c=Xt.hash(a);return j(`Use ${c} version spec cache key for ${a}`),c}static async getDownloadVersion(e){return{version:e,downloadURL:"https://github.com/sigstore/cosign/releases/download/v%s/%s",contentOpts:{owner:"docker",repo:"actions-toolkit",ref:"main",path:".github/cosign-releases.json"}}}static async getRelease(e,r){let i=await new Pt({token:r}).releases("Cosign",e.contentOpts);if(!i[e.version])throw new Error(`Cannot find Cosign release ${e.version} in releases JSON`);return i[e.version]}};var H1e=O(Va(),1);var ED=class{binPath;_version;_versionOnce;constructor(e){this.binPath=e?.binPath||"regctl",this._version="",this._versionOnce=!1}async blobGet(e){return await ke.getExecOutput(this.binPath,["blob","get",e.repository,e.digest],{ignoreReturnCode:!0,silent:!0}).then(r=>{if(r.stderr.length>0&&r.exitCod Line truncated
/*! Bundled license information:
undici/lib/web/fetch/body.js:
@@ -235,6 +262,7 @@ imurmurhash/imurmurhash.js:
* @see http://sites.google.com/site/murmurhash/
*)
make-fetch-happen/lib/fetch.js:
make-fetch-happen/lib/fetch.js:
(**
* @license
Generated Vendored
+4 -4
View File
@@ -1,7 +1,7 @@
{
"version": 3,
"sources": ["../node_modules/tunnel/lib/tunnel.js", "../node_modules/tunnel/index.js", "../node_modules/undici/lib/core/symbols.js", "../node_modules/undici/lib/core/errors.js", "../node_modules/undici/lib/core/constants.js", "../node_modules/undici/lib/core/tree.js", "../node_modules/undici/lib/core/util.js", "../node_modules/undici/lib/core/diagnostics.js", "../node_modules/undici/lib/core/request.js", "../node_modules/undici/lib/dispatcher/dispatcher.js", "../node_modules/undici/lib/dispatcher/dispatcher-base.js", "../node_modules/undici/lib/util/timers.js", "../node_modules/undici/lib/core/connect.js", "../node_modules/undici/lib/llhttp/utils.js", "../node_modules/undici/lib/llhttp/constants.js", "../node_modules/undici/lib/llhttp/llhttp-wasm.js", "../node_modules/undici/lib/llhttp/llhttp_simd-wasm.js", "../node_modules/undici/lib/web/fetch/constants.js", "../node_modules/undici/lib/web/fetch/global.js", "../node_modules/undici/lib/web/fetch/data-url.js", "../node_modules/undici/lib/web/fetch/webidl.js", "../node_modules/undici/lib/web/fetch/util.js", "../node_modules/undici/lib/web/fetch/symbols.js", "../node_modules/undici/lib/web/fetch/file.js", "../node_modules/undici/lib/web/fetch/formdata.js", "../node_modules/undici/lib/web/fetch/formdata-parser.js", "../node_modules/undici/lib/web/fetch/body.js", "../node_modules/undici/lib/dispatcher/client-h1.js", "../node_modules/undici/lib/dispatcher/client-h2.js", "../node_modules/undici/lib/handler/redirect-handler.js", "../node_modules/undici/lib/interceptor/redirect-interceptor.js", "../node_modules/undici/lib/dispatcher/client.js", "../node_modules/undici/lib/dispatcher/fixed-queue.js", "../node_modules/undici/lib/dispatcher/pool-stats.js", "../node_modules/undici/lib/dispatcher/pool-base.js", "../node_modules/undici/lib/dispatcher/pool.js", "../node_modules/undici/lib/dispatcher/balanced-pool.js", "../node_modules/undici/lib/dispatcher/agent.js", "../node_modules/undici/lib/dispatcher/proxy-agent.js", "../node_modules/undici/lib/dispatcher/env-http-proxy-agent.js", "../node_modules/undici/lib/handler/retry-handler.js", "../node_modules/undici/lib/dispatcher/retry-agent.js", "../node_modules/undici/lib/api/readable.js", "../node_modules/undici/lib/api/util.js", "../node_modules/undici/lib/api/api-request.js", "../node_modules/undici/lib/api/abort-signal.js", "../node_modules/undici/lib/api/api-stream.js", "../node_modules/undici/lib/api/api-pipeline.js", "../node_modules/undici/lib/api/api-upgrade.js", "../node_modules/undici/lib/api/api-connect.js", "../node_modules/undici/lib/api/index.js", "../node_modules/undici/lib/mock/mock-errors.js", "../node_modules/undici/lib/mock/mock-symbols.js", "../node_modules/undici/lib/mock/mock-utils.js", "../node_modules/undici/lib/mock/mock-interceptor.js", "../node_modules/undici/lib/mock/mock-client.js", "../node_modules/undici/lib/mock/mock-pool.js", "../node_modules/undici/lib/mock/pluralizer.js", "../node_modules/undici/lib/mock/pending-interceptors-formatter.js", "../node_modules/undici/lib/mock/mock-agent.js", "../node_modules/undici/lib/global.js", "../node_modules/undici/lib/handler/decorator-handler.js", "../node_modules/undici/lib/interceptor/redirect.js", "../node_modules/undici/lib/interceptor/retry.js", "../node_modules/undici/lib/interceptor/dump.js", "../node_modules/undici/lib/interceptor/dns.js", "../node_modules/undici/lib/web/fetch/headers.js", "../node_modules/undici/lib/web/fetch/response.js", "../node_modules/undici/lib/web/fetch/dispatcher-weakref.js", "../node_modules/undici/lib/web/fetch/request.js", "../node_modules/undici/lib/web/fetch/index.js", "../node_modules/undici/lib/web/fileapi/symbols.js", "../node_modules/undici/lib/web/fileapi/progressevent.js", "../node_modules/undici/lib/web/fileapi/encoding.js", "../node_modules/undici/lib/web/fileapi/util.js", "../node_modules/undici/lib/web/fileapi/filereader.js", "../node_modules/undici/lib/web/cache/symbols.js", "../node_modules/undici/lib/web/cache/util.js", "../node_modules/undici/lib/web/cache/cache.js", "../node_modules/undici/lib/web/cache/cachestorage.js", "../node_modules/undici/lib/web/cookies/constants.js", "../node_modules/undici/lib/web/cookies/util.js", "../node_modules/undici/lib/web/cookies/parse.js", "../node_modules/undici/lib/web/cookies/index.js", "../node_modules/undici/lib/web/websocket/events.js", "../node_modules/undici/lib/web/websocket/constants.js", "../node_modules/undici/lib/web/websocket/symbols.js", "../node_modules/undici/lib/web/websocket/util.js", "../node_modules/undici/lib/web/websocket/frame.js", "../node_modules/undici/lib/web/websocket/connection.js", "../node_modules/undici/lib/web/websocket/permessage-deflate.js", "../node_modules/undici/lib/web/websocket/receiver.js", "../node_modules/undici/lib/web/websocket/sender.js", "../node_modules/undici/lib/web/websocket/websocket.js", "../node_modules/undici/lib/web/eventsource/util.js", "../node_modules/undici/lib/web/eventsource/eventsource-stream.js",Line truncated
"sourcesContent": ["'use strict';\n\nvar net = require('net');\nvar tls = require('tls');\nvar http = require('http');\nvar https = require('https');\nvar events = require('events');\nvar assert = require('assert');\nvar util = require('util');\n\n\nexports.httpOverHttp = httpOverHttp;\nexports.httpsOverHttp = httpsOverHttp;\nexports.httpOverHttps = httpOverHttps;\nexports.httpsOverHttps = httpsOverHttps;\n\n\nfunction httpOverHttp(options) {\n var agent = new TunnelingAgent(options);\n agent.request = http.request;\n return agent;\n}\n\nfunction httpsOverHttp(options) {\n var agent = new TunnelingAgent(options);\n agent.request = http.request;\n agent.createSocket = createSecureSocket;\n agent.defaultPort = 443;\n return agent;\n}\n\nfunction httpOverHttps(options) {\n var agent = new TunnelingAgent(options);\n agent.request = https.request;\n return agent;\n}\n\nfunction httpsOverHttps(options) {\n var agent = new TunnelingAgent(options);\n agent.request = https.request;\n agent.createSocket = createSecureSocket;\n agent.defaultPort = 443;\n return agent;\n}\n\n\nfunction TunnelingAgent(options) {\n var self = this;\n self.options = options || {};\n self.proxyOptions = self.options.proxy || {};\n self.maxSockets = self.options.maxSockets || http.Agent.defaultMaxSockets;\n self.requests = [];\n self.sockets = [];\n\n self.on('free', function onFree(socket, host, port, localAddress) {\n var options = toOptions(host, port, localAddress);\n for (var i = 0, len = self.requests.length; i < len; ++i) {\n var pending = self.requests[i];\n if (pending.host === options.host && pending.port === options.port) {\n // Detect the request to connect same origin server,\n // reuse the connection.\n self.requests.splice(i, 1);\n pending.request.onSocket(socket);\n return;\n }\n }\n socket.destroy();\n self.removeSocket(socket);\n });\n}\nutil.inherits(TunnelingAgent, events.EventEmitter);\n\nTunnelingAgent.prototype.addRequest = function addRequest(req, host, port, localAddress) {\n var self = this;\n var options = mergeOptions({request: req}, self.options, toOptions(host, port, localAddress));\n\n if (self.sockets.length >= this.maxSockets) {\n // We are over limit so we'll add it to the queue.\n self.requests.push(options);\n return;\n }\n\n // If we are under maxSockets create a new one.\n self.createSocket(options, function(socket) {\n socket.on('free', onFree);\n socket.on('close', onCloseOrRemove);\n socket.on('agentRemove', onCloseOrRemove);\n req.onSocket(socket);\n\n function onFree() {\n self.emit('free', socket, options);\n }\n\n function onCloseOrRemove(err) {\n self.removeSocket(socket);\n socket.removeListener('free', onFree);\n socket.removeListener('close', onCloseOrRemove);\n socket.removeListener('agentRemove', onCloseOrRemove);\n }\n });\n};\n\nTunnelingAgent.prototype.createSocket = function createSocket(options, cb) {\n var self = this;\n var placeholder = {};\n self.sockets.push(placeholder);\n\n var connectOptions = mergeOptions({}, self.proxyOptions, {\n method: 'CONNECT',\n path: options.host + ':' + options.port,\n agent: false,\n headers: {\n host: options.host + ':' + options.port\n }\n });\n if (options.localAddress) {\n connectOptions.localAddress = options.localAddress;\n }\n if (connectOptions.proxyAuth) {\n connectOptions.headers = connectOptions.headers || {};\n connectOptions.headers['Proxy-Authorization'] = 'Basic ' +\n new Buffer(connectOptions.proxyAuth).toString('base64');\n }\n\n debug('making CONNECT request');\n var connectReq = self.request(connectOptions);\n connectReq.useChunkedEncodingByDefault = false; // for v0.6\n connectReq.once('response', onResponse); // for v0.6\n connectReq.once('upgrade', onUpgrade); // for v0.6\n connectReq.once('connect', onConnect); // for v0.7 or later\n connectReq.once('error', onError);\n connectReq.end();\n\n function onResponse(res) {\n // Very hacky. This is necessary to avoid http-parser leaks.\n res.upgrade = true;\n }\n\n function onUpgrade(res, socket, head) {\n // Hacky.\n process.nextTick(function() {\n onConnect(res, socket, head);\n });\n }\n\n function onConnect(res, socket, head) {\n connectReq.removeAllListeners();\n socket.removeAllListeners();\n\n if (res.statusCode !== 200) {\n debug('tunneling socket could not be established, statusCode=%d',\n res.statusCode);\n socket.destroy();\n var error = new Error('tunneling socket could not be established, ' +\n 'statusCode=' + res.statusCode);\n error.code = 'ECONNRESET';\n options.request.emit('error', error);\n self.removeSocket(placeholder);\n return;\n }\n if (head.length > 0) {\n debug('got illegal response body from proxy');\n socket.destroy();\n var error = new Error('Line truncated
"mappings": "ioBAAA,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,CAEA,SAASJ,IAAcG,EAAS,CAC9B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUV,GAAK,QACrBU,EAAM,aAAeE,GACrBF,EAAM,YAAc,IACbA,CACT,CAEA,SAASH,IAAcE,EAAS,CAC9B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUT,GAAM,QACfS,CACT,CAEA,SAASF,IAAeC,EAAS,CAC/B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUT,GAAM,QACtBS,EAAM,aAAeE,GACrBF,EAAM,YAAc,IACbA,CACT,CAGA,SAASC,GAAeF,EAAS,CAC/B,IAAII,EAAO,KACXA,EAAK,QAAUJ,GAAW,CAAC,EAC3BI,EAAK,aAAeA,EAAK,QAAQ,OAAS,CAAC,EAC3CA,EAAK,WAAaA,EAAK,QAAQ,YAAcb,GAAK,MAAM,kBACxDa,EAAK,SAAW,CAAC,EACjBA,EAAK,QAAU,CAAC,EAEhBA,EAAK,GAAG,OAAQ,SAAgBC,EAAQC,EAAMC,EAAMC,EAAc,CAEhE,QADIR,EAAUS,GAAUH,EAAMC,EAAMC,CAAY,EACvCE,EAAI,EAAGC,EAAMP,EAAK,SAAS,OAAQM,EAAIC,EAAK,EAAED,EAAG,CACxD,IAAIE,EAAUR,EAAK,SAASM,CAAC,EAC7B,GAAIE,EAAQ,OAASZ,EAAQ,MAAQY,EAAQ,OAASZ,EAAQ,KAAM,CAGlEI,EAAK,SAAS,OAAOM,EAAG,CAAC,EACzBE,EAAQ,QAAQ,SAASP,CAAM,EAC/B,MACF,CACF,CACAA,EAAO,QAAQ,EACfD,EAAK,aAAaC,CAAM,CAC1B,CAAC,CACH,CACAV,IAAK,SAASO,GAAgBT,IAAO,YAAY,EAEjDS,GAAe,UAAU,WAAa,SAAoBW,EAAKP,EAAMC,EAAMC,EAAc,CACvF,IAAIJ,EAAO,KACPJ,EAAUc,GAAa,CAAC,QAASD,CAAG,EAAGT,EAAK,QAASK,GAAUH,EAAMC,EAAMC,CAAY,CAAC,EAE5F,GAAIJ,EAAK,QAAQ,QAAU,KAAK,WAAY,CAE1CA,EAAK,SAAS,KAAKJ,CAAO,EAC1B,MACF,CAGAI,EAAK,aAAaJ,EAAS,SAASK,EAAQ,CAC1CA,EAAO,GAAG,OAAQU,CAAM,EACxBV,EAAO,GAAG,QAASW,CAAe,EAClCX,EAAO,GAAG,cAAeW,CAAe,EACxCH,EAAI,SAASR,CAAM,EAEnB,SAASU,GAAS,CAChBX,EAAK,KAAK,OAAQC,EAAQL,CAAO,CACnC,CAEA,SAASgB,EAAgBC,EAAK,CAC5Bb,EAAK,aAAaC,CAAM,EACxBA,EAAO,eAAe,OAAQU,CAAM,EACpCV,EAAO,eAAe,QAASW,CAAe,EAC9CX,EAAO,eAAe,cAAeW,CAAe,CACtD,CACF,CAAC,CACH,EAEAd,GAAe,UAAU,aAAe,SAAsBF,EAASkB,EAAI,CACzE,IAAId,EAAO,KACPe,EAAc,CAAC,EACnBf,EAAK,QAAQ,KAAKe,CAAW,EAE7B,IAAIC,EAAiBN,GAAa,CAAC,EAAGV,EAAK,aAAc,CACvD,OAAQ,UACR,KAAMJ,EAAQ,KAAO,IAAMA,EAAQ,KACnC,MAAO,GACP,QAAS,CACP,KAAMA,EAAQ,KAAO,IAAMA,EAAQ,IACrC,CACF,CAAC,EACGA,EAAQ,eACVoB,EAAe,aAAepB,EAAQ,cAEpCoB,EAAe,YACjBA,EAAe,QAAUA,EAAe,SAAW,CAAC,EACpDA,EAAe,QAAQ,qBAAqB,EAAI,SAC5C,IAAI,OAAOA,EAAe,SAAS,EAAE,SAAS,QAAQ,GAG5DC,GAAM,wBAAwB,EAC9B,IAAIC,EAAalB,EAAK,QAAQgB,CAAc,EAC5CE,EAAW,4BAA8B,GACzCA,EAAW,KAAK,WAAYC,CAAU,EACtCD,EAAW,KAAK,UAAWE,CAAS,EACpCF,EAAW,KAAK,UAAWG,CAAS,EACpCH,EAAW,KAAK,QAASI,CAAO,EAChCJ,EAAW,IAAI,EAEf,SAASC,EAAWI,EAAK,CAEvBA,EAAI,QAAU,EAChB,CAEA,SAASH,EAAUG,EAAKtB,EAAQuB,EAAM,CAEpC,QAAQ,SAAS,UAAW,CAC1BH,EAAUE,EAAKtB,EAAQuB,CAAI,CAC7B,CAAC,CACH,CAEA,SAASH,EAAUE,EAAKtB,EAAQuB,EAAM,CAIpC,GAHAN,EAAW,mBAAmB,EAC9BjB,EAAO,mBAAmB,EAEtBsB,EAAI,aAAe,IAAK,CAC1BN,GAAM,2DACJM,EAAI,UAAU,EAChBtB,EAAO,QAAQ,EACf,IAAIwB,EAAQ,IAAI,MAAM,yDACJF,EAAI,UAAU,EAChCE,EAAM,KAAO,aACb7B,EAAQ,QAAQ,KAAK,QAAS6B,CAAK,EACnCzB,EAAK,aAAae,CAAW,EAC7B,MACF,CACA,GAAIS,EAAK,OAAS,EAAG,CACnBP,GAAM,sCAAsC,EAC5ChB,EAAO,QAAQ,EACf,IAAIwB,EAAQ,IAAI,MAAM,sCAAsC,EAC5DA,EAAM,KAAO,aACb7B,EAAQ,QAAQ,KAAK,QAAS6B,CAAK,EACnCzB,EAAK,aAAae,CAAW,EAC7B,MACF,CACA,OAAAE,GAAM,sCAAsC,EAC5CjB,EAAK,QAAQA,EAAK,QAAQ,QAAQe,CAAW,CAAC,EAAId,EAC3Ca,EAAGb,CAAM,CAClB,CAEA,SAASqB,EAAQI,EAAO,CACtBR,EAAW,mBAAmB,EAE9BD,GAAM;AAAA,EACAS,EAAM,QAASA,EAAM,KAAK,EAChC,IAAID,EAAQ,IAAI,MAAM,oDACWC,EAAM,OAAO,EAC9CD,EAAM,KAAO,aACb7B,EAAQ,QAAQ,KAAK,QAAS6B,CAAK,EACnCzB,EAAK,aAAae,CAAW,CAC/B,CACF,EAEAjB,GAAe,UAAU,aAAe,SAAsBG,EAAQ,CACpE,IAAI0B,EAAM,KAAK,QAAQ,QAAQ1B,CAAM,EACrC,GAAI0B,IAAQ,GAGZ,MAAK,QAAQ,OAAOA,EAAK,CAAC,EAE1B,IAAInB,EAAU,KAAK,SAAS,MAAM,EAC9BA,GAGF,KAAK,aAAaA,EAAS,SAASP,EAAQ,CAC1CO,EAAQ,QAAQ,SAASP,CAAM,CACjC,CAAC,EAEL,EAEA,SAASF,GAAmBH,EAASkB,EAAI,CACvC,IAAId,EAAO,KACXF,GAAe,UAAU,aAAa,KAAKE,EAAMJ,EAAS,SAASK,EAAQ,CACzE,IAAI2B,EAAahC,EAAQ,QAAQ,UAAU,MAAM,EAC7CiC,EAAanB,GAAa,CAAC,EAAGV,EAAK,QAAS,CAC9C,OAAQC,EACR,WAAY2B,EAAaA,EAAW,QAAQ,OAAQ,EAAE,EAAIhC,EAAQ,IACpE,CAAC,EAGGkC,EAAe5C,IAAI,QAAQ,EAAG2C,CAAU,EAC5C7B,EAAK,QAAQA,EAAK,QAAQ,QAAQC,CAAM,CAAC,EAAI6B,EAC7ChB,EAAGgB,CAAY,CACjB,CAAC,CACH,CAGA,SAASzB,GAAUH,EAAMC,EAAMC,EAAc,CAC3C,OAAI,OAAOF,GAAS,SACX,CACL,KAAMA,EACN,KAAMC,EACN,aAAcC,CAChB,EAEKF,CACT,CAEA,SAASQ,GAAaqB,EAAQ,CAC5B,QAASzB,EAAI,EAAGC,EAAM,UAAU,OAAQD,EAAIC,EAAK,EAAED,EAAG,CACpD,IAAI0B,EAAY,UAAU1B,CAAC,EAC3B,GAAI,OAAO0B,GAAc,SAEvB,QADIC,EAAO,OAAO,KAAKD,CAAS,EACvBE,EAAI,EAAGC,EAASF,EAAK,OAAQC,EAAIC,EAAQ,EAAED,EAAG,CACrD,IAAIE,EAAIH,EAAKC,CAAC,EACVF,EAAUI,CAAC,IAAM,SACnBL,EAAOK,CAAC,EAAIJ,EAAUI,CAAC,EAE3B,CAEJ,CACA,OAAOL,CACT,CAGA,IAAId,GACA,QAAQ,IAAI,YAAc,aAAa,KAAK,QAAQ,IAAI,UAAU,EACpEA,GAAQ,UAAW,CACjB,IAAIoB,EAAO,MAAM,UAAU,MAAM,KAAK,SAAS,EAC3C,OAAOA,EAAK,CAAC,GAAM,SACrBA,EAAK,CAAC,EAAI,WAAaA,EAAK,CAAC,EAE7BA,EAAK,QAAQ,SAAS,EAExB,QAAQ,MAAM,MAAM,QAASA,CAAI,CACnC,EAEApB,GAAQ,UAAW,CAAC,EAEtBjC,GAAQ,MAAQiC,KCvQhB,IAAAqB,GAAAC,EAAA,CAAAC,IAAAC,KAAA,CAAAA,GAAO,QAAU,OCAjB,IAAAC,GAAAC,EAAA,CAAAC,IAAAC,KAAA,CAAAA,GAAO,QAAU,CACf,OAAQ,OAAO,OAAO,EACtB,SAAU,OAAO,SAAS,EAC1B,UAAW,OAAO,UAAU,EAC5B,KAAM,OAAO,KAAK,EAClB,SAAULine truncated
"names": ["require_tunnel", "__commonJSMin", "exports", "net", "tls", "http", "https", "events", "assert", "util", "httpOverHttp", "httpsOverHttp", "httpOverHttps", "httpsOverHttps", "options", "agent", "TunnelingAgent", "createSecureSocket", "self", "socket", "host", "port", "localAddress", "toOptions", "i", "len", "pending", "req", "mergeOptions", "onFree", "onCloseOrRemove", "err", "cb", "placeholder", "connectOptions", "debug", "connectReq", "onResponse", "onUpgrade", "onConnect", "onError", "res", "head", "error", "cause", "pos", "hostHeader", "tlsOptions", "secureSocket", "target", "overrides", "keys", "j", "keyLen", "k", "args", "require_tunnel", "__commonJSMin", "exports", "module", "require_symbols", "__commonJSMin", "exports", "module", "require_errors", "__commonJSMin", "exports", "module", "kUndiciError", "UndiciError", "message", "instance", "kConnectTimeoutError", "ConnectTimeoutError", "kHeadersTimeoutError", "HeadersTimeoutError", "kHeadersOverflowError", "HeadersOverflowError", "kBodyTimeoutError", "BodyTimeoutError", "kResponseStatusCodeError", "ResponseStatusCodeError", "statusCode", "headers", "body", "kInvalidArgumentError", "InvalidArgumentError", "kInvalidReturnValueError", "InvalidReturnValueError", "kAbortError", "AbortError", "kRequestAbortedError", "RequestAbortedError", "kInformationalError", "InformationalError", "kRequestContentLengthMismatchError", "RequestContentLengthMismatchError", "kResponseContentLengthMismatchError", "ResponseContentLengthMismatchError", "kClientDestroyedError", "ClientDestroyedError", "kClientClosedError", "ClientClosedError", "kSocketError", "SocketError", "socket", "kNotSupportedError", "NotSupportedError", "kBalancedPoolMissingUpstreamError", "BalancedPoolMissingUpstreamError", "kHTTPParserError", "HTTPParserError", "code", "data", "kResponseExceededMaxSizeError", "ResponseExceededMaxSizeError", "kRequestRetryError", "RequestRetryError", "kResponseError", "ResponseError", "kSecureProxyConnectionError", "SecureProxyConnectionError", "cause", "options", "kMessageSizeExceededError", "MessageSizeExceededError", "require_constants", "__commonJSMin", "exports", "module", "headerNameLowerCasedRecord", "wellknownHeaderNames", "i", "key", "lowerCasedKey", "require_tree", "__commonJSMin", "exports", "module", "wellknownHeaderNames", "headerNameLowerCasedRecord", "TstNode", "_TstNode", "key", "value", "index", "length", "node", "code", "keylength", "TernarySearchTree", "tree", "i", "require_util", "__commonJSMin", "exports", "module", "assert", "kDestroyed", "kBodyUsed", "kListeners", "kBody", "IncomingMessage", "stream", "net", "Blob", "nodeUtil", "stringify", "EE", "InvalidArgumentError", "headerNameLowerCasedRecord", "tree", "nodeMajor", "nodeMinor", "v", "BodyAsyncIterable", "body", "wrapRequestBody", "isStream", "bodyLength", "isIterable", "nop", "obj", "isBlobLike", "object", "sTag", "buildURL", "url", "queryParams", "stringified", "isValidPort", "port", "value", "isHttpOrHttpsPrefixed", "parseURL", "origin", "path", "parseOrigin", "getHostname", "host", "idx", "getServerName", "servername", "deepClone", "isAsyncIterable", "state", "isBuffer", "isDestroyed", "destroy", "err", "KEEPALIVE_TIMEOUT_EXPR", "parseKeepAliveTimeout", "val", "m", "headerNameToString", "bufferToLowerCasedHeaderName", "parseHeaders", "headers", "i", "key", "headersValue", "x", "parseRawHeaders", "len", "ret", "hasContentLength", "contentDispositionIdx", "kLen", "n", "buffer", "validateHandler", "handler", "method", "upgrade", "isDisturbed", "isErrored", "isReadable", "getSocketInfo", "socket", "ReadableStreamFrom", "iterable", "iterator", "controller", "done", "buf", "reason", "isFormDataLike", "addAbortListener", "signal", "listener", "hasToWellFormed", "hasIsWellFormed", "toUSVString", "isUSVString", "isTokenCharCode", "c", "isValidHTTPToken", "characters", "headerCharRegex", "isValidHeaderValue", "parseRangeHeader", "range", "addListener", "name", "removeAllListeners", "errorRequest", "client", "request", "kEnumerableProperty", "normalizedMethodRecordsBase", "normalizedMethodRecords", "require_diagnostics", "__commonJSMin", "exports", "module", "diagnosticsChannel", "util", "undiciDebugLog", "fetchDebuglog", "websocketDebuglog", "isClientSet", "channels", "debuglog", "evt", "version", "protocol", "port", "host", "error", "method", "path", "origin", "statusCode", "address", "websocket", "code", "reason", "err", "require_request", "__commonJSMin", "exports", "module", "InvalidArgumentError", "NotSupportedError", "assert", "isValidHTTPToken", "isValidHeaderValue", "isStream", "destroy", "isBuffer", "isFormDataLike", "isIterable", "isBlobLike", "buildURL", "validateHandler", "getServerName", "normalizedMethodRecords", "channels", "headerNameLowerCasedRecord", "invalidPathRegex", "kHandler", "Request", "origin", "path", "method", "body", "headers", "query", "idempotent", "blocking", "upgrade", "headersTimeout", "bodyTimeout", "reset", "throwOnError", "expectContinue", "servername",Line truncated
"sources": ["../node_modules/tunnel/lib/tunnel.js", "../node_modules/tunnel/index.js", "../node_modules/undici/lib/core/symbols.js", "../node_modules/undici/lib/core/errors.js", "../node_modules/undici/lib/core/constants.js", "../node_modules/undici/lib/core/tree.js", "../node_modules/undici/lib/core/util.js", "../node_modules/undici/lib/core/diagnostics.js", "../node_modules/undici/lib/core/request.js", "../node_modules/undici/lib/dispatcher/dispatcher.js", "../node_modules/undici/lib/dispatcher/dispatcher-base.js", "../node_modules/undici/lib/util/timers.js", "../node_modules/undici/lib/core/connect.js", "../node_modules/undici/lib/llhttp/utils.js", "../node_modules/undici/lib/llhttp/constants.js", "../node_modules/undici/lib/llhttp/llhttp-wasm.js", "../node_modules/undici/lib/llhttp/llhttp_simd-wasm.js", "../node_modules/undici/lib/web/fetch/constants.js", "../node_modules/undici/lib/web/fetch/global.js", "../node_modules/undici/lib/web/fetch/data-url.js", "../node_modules/undici/lib/web/fetch/webidl.js", "../node_modules/undici/lib/web/fetch/util.js", "../node_modules/undici/lib/web/fetch/symbols.js", "../node_modules/undici/lib/web/fetch/file.js", "../node_modules/undici/lib/web/fetch/formdata.js", "../node_modules/undici/lib/web/fetch/formdata-parser.js", "../node_modules/undici/lib/web/fetch/body.js", "../node_modules/undici/lib/dispatcher/client-h1.js", "../node_modules/undici/lib/dispatcher/client-h2.js", "../node_modules/undici/lib/handler/redirect-handler.js", "../node_modules/undici/lib/interceptor/redirect-interceptor.js", "../node_modules/undici/lib/dispatcher/client.js", "../node_modules/undici/lib/dispatcher/fixed-queue.js", "../node_modules/undici/lib/dispatcher/pool-stats.js", "../node_modules/undici/lib/dispatcher/pool-base.js", "../node_modules/undici/lib/dispatcher/pool.js", "../node_modules/undici/lib/dispatcher/balanced-pool.js", "../node_modules/undici/lib/dispatcher/agent.js", "../node_modules/undici/lib/dispatcher/proxy-agent.js", "../node_modules/undici/lib/dispatcher/env-http-proxy-agent.js", "../node_modules/undici/lib/handler/retry-handler.js", "../node_modules/undici/lib/dispatcher/retry-agent.js", "../node_modules/undici/lib/api/readable.js", "../node_modules/undici/lib/api/util.js", "../node_modules/undici/lib/api/api-request.js", "../node_modules/undici/lib/api/abort-signal.js", "../node_modules/undici/lib/api/api-stream.js", "../node_modules/undici/lib/api/api-pipeline.js", "../node_modules/undici/lib/api/api-upgrade.js", "../node_modules/undici/lib/api/api-connect.js", "../node_modules/undici/lib/api/index.js", "../node_modules/undici/lib/mock/mock-errors.js", "../node_modules/undici/lib/mock/mock-symbols.js", "../node_modules/undici/lib/mock/mock-utils.js", "../node_modules/undici/lib/mock/mock-interceptor.js", "../node_modules/undici/lib/mock/mock-client.js", "../node_modules/undici/lib/mock/mock-pool.js", "../node_modules/undici/lib/mock/pluralizer.js", "../node_modules/undici/lib/mock/pending-interceptors-formatter.js", "../node_modules/undici/lib/mock/mock-agent.js", "../node_modules/undici/lib/global.js", "../node_modules/undici/lib/handler/decorator-handler.js", "../node_modules/undici/lib/interceptor/redirect.js", "../node_modules/undici/lib/interceptor/retry.js", "../node_modules/undici/lib/interceptor/dump.js", "../node_modules/undici/lib/interceptor/dns.js", "../node_modules/undici/lib/web/fetch/headers.js", "../node_modules/undici/lib/web/fetch/response.js", "../node_modules/undici/lib/web/fetch/dispatcher-weakref.js", "../node_modules/undici/lib/web/fetch/request.js", "../node_modules/undici/lib/web/fetch/index.js", "../node_modules/undici/lib/web/fileapi/symbols.js", "../node_modules/undici/lib/web/fileapi/progressevent.js", "../node_modules/undici/lib/web/fileapi/encoding.js", "../node_modules/undici/lib/web/fileapi/util.js", "../node_modules/undici/lib/web/fileapi/filereader.js", "../node_modules/undici/lib/web/cache/symbols.js", "../node_modules/undici/lib/web/cache/util.js", "../node_modules/undici/lib/web/cache/cache.js", "../node_modules/undici/lib/web/cache/cachestorage.js", "../node_modules/undici/lib/web/cookies/constants.js", "../node_modules/undici/lib/web/cookies/util.js", "../node_modules/undici/lib/web/cookies/parse.js", "../node_modules/undici/lib/web/cookies/index.js", "../node_modules/undici/lib/web/websocket/events.js", "../node_modules/undici/lib/web/websocket/constants.js", "../node_modules/undici/lib/web/websocket/symbols.js", "../node_modules/undici/lib/web/websocket/util.js", "../node_modules/undici/lib/web/websocket/frame.js", "../node_modules/undici/lib/web/websocket/connection.js", "../node_modules/undici/lib/web/websocket/permessage-deflate.js", "../node_modules/undici/lib/web/websocket/receiver.js", "../node_modules/undici/lib/web/websocket/sender.js", "../node_modules/undici/lib/web/websocket/websocket.js", "../node_modules/undici/lib/web/eventsource/util.js", "../node_modules/undici/lib/web/eventsource/eventsource-stream.js",Line truncated
"sourcesContent": ["'use strict';\n\nvar net = require('net');\nvar tls = require('tls');\nvar http = require('http');\nvar https = require('https');\nvar events = require('events');\nvar assert = require('assert');\nvar util = require('util');\n\n\nexports.httpOverHttp = httpOverHttp;\nexports.httpsOverHttp = httpsOverHttp;\nexports.httpOverHttps = httpOverHttps;\nexports.httpsOverHttps = httpsOverHttps;\n\n\nfunction httpOverHttp(options) {\n var agent = new TunnelingAgent(options);\n agent.request = http.request;\n return agent;\n}\n\nfunction httpsOverHttp(options) {\n var agent = new TunnelingAgent(options);\n agent.request = http.request;\n agent.createSocket = createSecureSocket;\n agent.defaultPort = 443;\n return agent;\n}\n\nfunction httpOverHttps(options) {\n var agent = new TunnelingAgent(options);\n agent.request = https.request;\n return agent;\n}\n\nfunction httpsOverHttps(options) {\n var agent = new TunnelingAgent(options);\n agent.request = https.request;\n agent.createSocket = createSecureSocket;\n agent.defaultPort = 443;\n return agent;\n}\n\n\nfunction TunnelingAgent(options) {\n var self = this;\n self.options = options || {};\n self.proxyOptions = self.options.proxy || {};\n self.maxSockets = self.options.maxSockets || http.Agent.defaultMaxSockets;\n self.requests = [];\n self.sockets = [];\n\n self.on('free', function onFree(socket, host, port, localAddress) {\n var options = toOptions(host, port, localAddress);\n for (var i = 0, len = self.requests.length; i < len; ++i) {\n var pending = self.requests[i];\n if (pending.host === options.host && pending.port === options.port) {\n // Detect the request to connect same origin server,\n // reuse the connection.\n self.requests.splice(i, 1);\n pending.request.onSocket(socket);\n return;\n }\n }\n socket.destroy();\n self.removeSocket(socket);\n });\n}\nutil.inherits(TunnelingAgent, events.EventEmitter);\n\nTunnelingAgent.prototype.addRequest = function addRequest(req, host, port, localAddress) {\n var self = this;\n var options = mergeOptions({request: req}, self.options, toOptions(host, port, localAddress));\n\n if (self.sockets.length >= this.maxSockets) {\n // We are over limit so we'll add it to the queue.\n self.requests.push(options);\n return;\n }\n\n // If we are under maxSockets create a new one.\n self.createSocket(options, function(socket) {\n socket.on('free', onFree);\n socket.on('close', onCloseOrRemove);\n socket.on('agentRemove', onCloseOrRemove);\n req.onSocket(socket);\n\n function onFree() {\n self.emit('free', socket, options);\n }\n\n function onCloseOrRemove(err) {\n self.removeSocket(socket);\n socket.removeListener('free', onFree);\n socket.removeListener('close', onCloseOrRemove);\n socket.removeListener('agentRemove', onCloseOrRemove);\n }\n });\n};\n\nTunnelingAgent.prototype.createSocket = function createSocket(options, cb) {\n var self = this;\n var placeholder = {};\n self.sockets.push(placeholder);\n\n var connectOptions = mergeOptions({}, self.proxyOptions, {\n method: 'CONNECT',\n path: options.host + ':' + options.port,\n agent: false,\n headers: {\n host: options.host + ':' + options.port\n }\n });\n if (options.localAddress) {\n connectOptions.localAddress = options.localAddress;\n }\n if (connectOptions.proxyAuth) {\n connectOptions.headers = connectOptions.headers || {};\n connectOptions.headers['Proxy-Authorization'] = 'Basic ' +\n new Buffer(connectOptions.proxyAuth).toString('base64');\n }\n\n debug('making CONNECT request');\n var connectReq = self.request(connectOptions);\n connectReq.useChunkedEncodingByDefault = false; // for v0.6\n connectReq.once('response', onResponse); // for v0.6\n connectReq.once('upgrade', onUpgrade); // for v0.6\n connectReq.once('connect', onConnect); // for v0.7 or later\n connectReq.once('error', onError);\n connectReq.end();\n\n function onResponse(res) {\n // Very hacky. This is necessary to avoid http-parser leaks.\n res.upgrade = true;\n }\n\n function onUpgrade(res, socket, head) {\n // Hacky.\n process.nextTick(function() {\n onConnect(res, socket, head);\n });\n }\n\n function onConnect(res, socket, head) {\n connectReq.removeAllListeners();\n socket.removeAllListeners();\n\n if (res.statusCode !== 200) {\n debug('tunneling socket could not be established, statusCode=%d',\n res.statusCode);\n socket.destroy();\n var error = new Error('tunneling socket could not be established, ' +\n 'statusCode=' + res.statusCode);\n error.code = 'ECONNRESET';\n options.request.emit('error', error);\n self.removeSocket(placeholder);\n return;\n }\n if (head.length > 0) {\n debug('got illegal response body from proxy');\n socket.destroy();\n var error = new Error('Line truncated
"mappings": "ioBAAA,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,CAEA,SAASJ,IAAcG,EAAS,CAC9B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUV,GAAK,QACrBU,EAAM,aAAeE,GACrBF,EAAM,YAAc,IACbA,CACT,CAEA,SAASH,IAAcE,EAAS,CAC9B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUT,GAAM,QACfS,CACT,CAEA,SAASF,IAAeC,EAAS,CAC/B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUT,GAAM,QACtBS,EAAM,aAAeE,GACrBF,EAAM,YAAc,IACbA,CACT,CAGA,SAASC,GAAeF,EAAS,CAC/B,IAAII,EAAO,KACXA,EAAK,QAAUJ,GAAW,CAAC,EAC3BI,EAAK,aAAeA,EAAK,QAAQ,OAAS,CAAC,EAC3CA,EAAK,WAAaA,EAAK,QAAQ,YAAcb,GAAK,MAAM,kBACxDa,EAAK,SAAW,CAAC,EACjBA,EAAK,QAAU,CAAC,EAEhBA,EAAK,GAAG,OAAQ,SAAgBC,EAAQC,EAAMC,EAAMC,EAAc,CAEhE,QADIR,EAAUS,GAAUH,EAAMC,EAAMC,CAAY,EACvCE,EAAI,EAAGC,EAAMP,EAAK,SAAS,OAAQM,EAAIC,EAAK,EAAED,EAAG,CACxD,IAAIE,EAAUR,EAAK,SAASM,CAAC,EAC7B,GAAIE,EAAQ,OAASZ,EAAQ,MAAQY,EAAQ,OAASZ,EAAQ,KAAM,CAGlEI,EAAK,SAAS,OAAOM,EAAG,CAAC,EACzBE,EAAQ,QAAQ,SAASP,CAAM,EAC/B,MACF,CACF,CACAA,EAAO,QAAQ,EACfD,EAAK,aAAaC,CAAM,CAC1B,CAAC,CACH,CACAV,IAAK,SAASO,GAAgBT,IAAO,YAAY,EAEjDS,GAAe,UAAU,WAAa,SAAoBW,EAAKP,EAAMC,EAAMC,EAAc,CACvF,IAAIJ,EAAO,KACPJ,EAAUc,GAAa,CAAC,QAASD,CAAG,EAAGT,EAAK,QAASK,GAAUH,EAAMC,EAAMC,CAAY,CAAC,EAE5F,GAAIJ,EAAK,QAAQ,QAAU,KAAK,WAAY,CAE1CA,EAAK,SAAS,KAAKJ,CAAO,EAC1B,MACF,CAGAI,EAAK,aAAaJ,EAAS,SAASK,EAAQ,CAC1CA,EAAO,GAAG,OAAQU,CAAM,EACxBV,EAAO,GAAG,QAASW,CAAe,EAClCX,EAAO,GAAG,cAAeW,CAAe,EACxCH,EAAI,SAASR,CAAM,EAEnB,SAASU,GAAS,CAChBX,EAAK,KAAK,OAAQC,EAAQL,CAAO,CACnC,CAEA,SAASgB,EAAgBC,EAAK,CAC5Bb,EAAK,aAAaC,CAAM,EACxBA,EAAO,eAAe,OAAQU,CAAM,EACpCV,EAAO,eAAe,QAASW,CAAe,EAC9CX,EAAO,eAAe,cAAeW,CAAe,CACtD,CACF,CAAC,CACH,EAEAd,GAAe,UAAU,aAAe,SAAsBF,EAASkB,EAAI,CACzE,IAAId,EAAO,KACPe,EAAc,CAAC,EACnBf,EAAK,QAAQ,KAAKe,CAAW,EAE7B,IAAIC,EAAiBN,GAAa,CAAC,EAAGV,EAAK,aAAc,CACvD,OAAQ,UACR,KAAMJ,EAAQ,KAAO,IAAMA,EAAQ,KACnC,MAAO,GACP,QAAS,CACP,KAAMA,EAAQ,KAAO,IAAMA,EAAQ,IACrC,CACF,CAAC,EACGA,EAAQ,eACVoB,EAAe,aAAepB,EAAQ,cAEpCoB,EAAe,YACjBA,EAAe,QAAUA,EAAe,SAAW,CAAC,EACpDA,EAAe,QAAQ,qBAAqB,EAAI,SAC5C,IAAI,OAAOA,EAAe,SAAS,EAAE,SAAS,QAAQ,GAG5DC,GAAM,wBAAwB,EAC9B,IAAIC,EAAalB,EAAK,QAAQgB,CAAc,EAC5CE,EAAW,4BAA8B,GACzCA,EAAW,KAAK,WAAYC,CAAU,EACtCD,EAAW,KAAK,UAAWE,CAAS,EACpCF,EAAW,KAAK,UAAWG,CAAS,EACpCH,EAAW,KAAK,QAASI,CAAO,EAChCJ,EAAW,IAAI,EAEf,SAASC,EAAWI,EAAK,CAEvBA,EAAI,QAAU,EAChB,CAEA,SAASH,EAAUG,EAAKtB,EAAQuB,EAAM,CAEpC,QAAQ,SAAS,UAAW,CAC1BH,EAAUE,EAAKtB,EAAQuB,CAAI,CAC7B,CAAC,CACH,CAEA,SAASH,EAAUE,EAAKtB,EAAQuB,EAAM,CAIpC,GAHAN,EAAW,mBAAmB,EAC9BjB,EAAO,mBAAmB,EAEtBsB,EAAI,aAAe,IAAK,CAC1BN,GAAM,2DACJM,EAAI,UAAU,EAChBtB,EAAO,QAAQ,EACf,IAAIwB,EAAQ,IAAI,MAAM,yDACJF,EAAI,UAAU,EAChCE,EAAM,KAAO,aACb7B,EAAQ,QAAQ,KAAK,QAAS6B,CAAK,EACnCzB,EAAK,aAAae,CAAW,EAC7B,MACF,CACA,GAAIS,EAAK,OAAS,EAAG,CACnBP,GAAM,sCAAsC,EAC5ChB,EAAO,QAAQ,EACf,IAAIwB,EAAQ,IAAI,MAAM,sCAAsC,EAC5DA,EAAM,KAAO,aACb7B,EAAQ,QAAQ,KAAK,QAAS6B,CAAK,EACnCzB,EAAK,aAAae,CAAW,EAC7B,MACF,CACA,OAAAE,GAAM,sCAAsC,EAC5CjB,EAAK,QAAQA,EAAK,QAAQ,QAAQe,CAAW,CAAC,EAAId,EAC3Ca,EAAGb,CAAM,CAClB,CAEA,SAASqB,EAAQI,EAAO,CACtBR,EAAW,mBAAmB,EAE9BD,GAAM;AAAA,EACAS,EAAM,QAASA,EAAM,KAAK,EAChC,IAAID,EAAQ,IAAI,MAAM,oDACWC,EAAM,OAAO,EAC9CD,EAAM,KAAO,aACb7B,EAAQ,QAAQ,KAAK,QAAS6B,CAAK,EACnCzB,EAAK,aAAae,CAAW,CAC/B,CACF,EAEAjB,GAAe,UAAU,aAAe,SAAsBG,EAAQ,CACpE,IAAI0B,EAAM,KAAK,QAAQ,QAAQ1B,CAAM,EACrC,GAAI0B,IAAQ,GAGZ,MAAK,QAAQ,OAAOA,EAAK,CAAC,EAE1B,IAAInB,EAAU,KAAK,SAAS,MAAM,EAC9BA,GAGF,KAAK,aAAaA,EAAS,SAASP,EAAQ,CAC1CO,EAAQ,QAAQ,SAASP,CAAM,CACjC,CAAC,EAEL,EAEA,SAASF,GAAmBH,EAASkB,EAAI,CACvC,IAAId,EAAO,KACXF,GAAe,UAAU,aAAa,KAAKE,EAAMJ,EAAS,SAASK,EAAQ,CACzE,IAAI2B,EAAahC,EAAQ,QAAQ,UAAU,MAAM,EAC7CiC,EAAanB,GAAa,CAAC,EAAGV,EAAK,QAAS,CAC9C,OAAQC,EACR,WAAY2B,EAAaA,EAAW,QAAQ,OAAQ,EAAE,EAAIhC,EAAQ,IACpE,CAAC,EAGGkC,EAAe5C,IAAI,QAAQ,EAAG2C,CAAU,EAC5C7B,EAAK,QAAQA,EAAK,QAAQ,QAAQC,CAAM,CAAC,EAAI6B,EAC7ChB,EAAGgB,CAAY,CACjB,CAAC,CACH,CAGA,SAASzB,GAAUH,EAAMC,EAAMC,EAAc,CAC3C,OAAI,OAAOF,GAAS,SACX,CACL,KAAMA,EACN,KAAMC,EACN,aAAcC,CAChB,EAEKF,CACT,CAEA,SAASQ,GAAaqB,EAAQ,CAC5B,QAASzB,EAAI,EAAGC,EAAM,UAAU,OAAQD,EAAIC,EAAK,EAAED,EAAG,CACpD,IAAI0B,EAAY,UAAU1B,CAAC,EAC3B,GAAI,OAAO0B,GAAc,SAEvB,QADIC,EAAO,OAAO,KAAKD,CAAS,EACvBE,EAAI,EAAGC,EAASF,EAAK,OAAQC,EAAIC,EAAQ,EAAED,EAAG,CACrD,IAAIE,EAAIH,EAAKC,CAAC,EACVF,EAAUI,CAAC,IAAM,SACnBL,EAAOK,CAAC,EAAIJ,EAAUI,CAAC,EAE3B,CAEJ,CACA,OAAOL,CACT,CAGA,IAAId,GACA,QAAQ,IAAI,YAAc,aAAa,KAAK,QAAQ,IAAI,UAAU,EACpEA,GAAQ,UAAW,CACjB,IAAIoB,EAAO,MAAM,UAAU,MAAM,KAAK,SAAS,EAC3C,OAAOA,EAAK,CAAC,GAAM,SACrBA,EAAK,CAAC,EAAI,WAAaA,EAAK,CAAC,EAE7BA,EAAK,QAAQ,SAAS,EAExB,QAAQ,MAAM,MAAM,QAASA,CAAI,CACnC,EAEApB,GAAQ,UAAW,CAAC,EAEtBjC,GAAQ,MAAQiC,KCvQhB,IAAAqB,GAAAC,EAAA,CAAAC,IAAAC,KAAA,CAAAA,GAAO,QAAU,OCAjB,IAAAC,GAAAC,EAAA,CAAAC,IAAAC,KAAA,CAAAA,GAAO,QAAU,CACf,OAAQ,OAAO,OAAO,EACtB,SAAU,OAAO,SAAS,EAC1B,UAAW,OAAO,UAAU,EAC5B,KAAM,OAAO,KAAK,EAClB,SAAULine truncated
"names": ["require_tunnel", "__commonJSMin", "exports", "net", "tls", "http", "https", "events", "assert", "util", "httpOverHttp", "httpsOverHttp", "httpOverHttps", "httpsOverHttps", "options", "agent", "TunnelingAgent", "createSecureSocket", "self", "socket", "host", "port", "localAddress", "toOptions", "i", "len", "pending", "req", "mergeOptions", "onFree", "onCloseOrRemove", "err", "cb", "placeholder", "connectOptions", "debug", "connectReq", "onResponse", "onUpgrade", "onConnect", "onError", "res", "head", "error", "cause", "pos", "hostHeader", "tlsOptions", "secureSocket", "target", "overrides", "keys", "j", "keyLen", "k", "args", "require_tunnel", "__commonJSMin", "exports", "module", "require_symbols", "__commonJSMin", "exports", "module", "require_errors", "__commonJSMin", "exports", "module", "kUndiciError", "UndiciError", "message", "instance", "kConnectTimeoutError", "ConnectTimeoutError", "kHeadersTimeoutError", "HeadersTimeoutError", "kHeadersOverflowError", "HeadersOverflowError", "kBodyTimeoutError", "BodyTimeoutError", "kResponseStatusCodeError", "ResponseStatusCodeError", "statusCode", "headers", "body", "kInvalidArgumentError", "InvalidArgumentError", "kInvalidReturnValueError", "InvalidReturnValueError", "kAbortError", "AbortError", "kRequestAbortedError", "RequestAbortedError", "kInformationalError", "InformationalError", "kRequestContentLengthMismatchError", "RequestContentLengthMismatchError", "kResponseContentLengthMismatchError", "ResponseContentLengthMismatchError", "kClientDestroyedError", "ClientDestroyedError", "kClientClosedError", "ClientClosedError", "kSocketError", "SocketError", "socket", "kNotSupportedError", "NotSupportedError", "kBalancedPoolMissingUpstreamError", "BalancedPoolMissingUpstreamError", "kHTTPParserError", "HTTPParserError", "code", "data", "kResponseExceededMaxSizeError", "ResponseExceededMaxSizeError", "kRequestRetryError", "RequestRetryError", "kResponseError", "ResponseError", "kSecureProxyConnectionError", "SecureProxyConnectionError", "cause", "options", "kMessageSizeExceededError", "MessageSizeExceededError", "require_constants", "__commonJSMin", "exports", "module", "headerNameLowerCasedRecord", "wellknownHeaderNames", "i", "key", "lowerCasedKey", "require_tree", "__commonJSMin", "exports", "module", "wellknownHeaderNames", "headerNameLowerCasedRecord", "TstNode", "_TstNode", "key", "value", "index", "length", "node", "code", "keylength", "TernarySearchTree", "tree", "i", "require_util", "__commonJSMin", "exports", "module", "assert", "kDestroyed", "kBodyUsed", "kListeners", "kBody", "IncomingMessage", "stream", "net", "Blob", "nodeUtil", "stringify", "EE", "InvalidArgumentError", "headerNameLowerCasedRecord", "tree", "nodeMajor", "nodeMinor", "v", "BodyAsyncIterable", "body", "wrapRequestBody", "isStream", "bodyLength", "isIterable", "nop", "obj", "isBlobLike", "object", "sTag", "buildURL", "url", "queryParams", "stringified", "isValidPort", "port", "value", "isHttpOrHttpsPrefixed", "parseURL", "origin", "path", "parseOrigin", "getHostname", "host", "idx", "getServerName", "servername", "deepClone", "isAsyncIterable", "state", "isBuffer", "isDestroyed", "destroy", "err", "KEEPALIVE_TIMEOUT_EXPR", "parseKeepAliveTimeout", "val", "m", "headerNameToString", "bufferToLowerCasedHeaderName", "parseHeaders", "headers", "i", "key", "headersValue", "x", "parseRawHeaders", "len", "ret", "hasContentLength", "contentDispositionIdx", "kLen", "n", "buffer", "validateHandler", "handler", "method", "upgrade", "isDisturbed", "isErrored", "isReadable", "getSocketInfo", "socket", "ReadableStreamFrom", "iterable", "iterator", "controller", "done", "buf", "reason", "isFormDataLike", "addAbortListener", "signal", "listener", "hasToWellFormed", "hasIsWellFormed", "toUSVString", "isUSVString", "isTokenCharCode", "c", "isValidHTTPToken", "characters", "headerCharRegex", "isValidHeaderValue", "parseRangeHeader", "range", "addListener", "name", "removeAllListeners", "errorRequest", "client", "request", "kEnumerableProperty", "normalizedMethodRecordsBase", "normalizedMethodRecords", "require_diagnostics", "__commonJSMin", "exports", "module", "diagnosticsChannel", "util", "undiciDebugLog", "fetchDebuglog", "websocketDebuglog", "isClientSet", "channels", "debuglog", "evt", "version", "protocol", "port", "host", "error", "method", "path", "origin", "statusCode", "address", "websocket", "code", "reason", "err", "require_request", "__commonJSMin", "exports", "module", "InvalidArgumentError", "NotSupportedError", "assert", "isValidHTTPToken", "isValidHeaderValue", "isStream", "destroy", "isBuffer", "isFormDataLike", "isIterable", "isBlobLike", "buildURL", "validateHandler", "getServerName", "normalizedMethodRecords", "channels", "headerNameLowerCasedRecord", "invalidPathRegex", "kHandler", "Request", "origin", "path", "method", "body", "headers", "query", "idempotent", "blocking", "upgrade", "headersTimeout", "bodyTimeout", "reset", "throwOnError", "expectContinue", "servername",Line truncated
}
Generated Vendored
+360 -17
View File
@@ -4,10 +4,10 @@ https://www.npmjs.com/package/generate-license-file
The following npm packages may be included in this product:
- @sigstore/bundle@4.0.0
- @sigstore/core@3.1.0
- @sigstore/core@3.2.1
- @sigstore/protobuf-specs@0.5.0
- @sigstore/sign@4.1.0
- @sigstore/tuf@4.0.1
- @sigstore/sign@4.1.1
- @sigstore/tuf@4.0.2
These packages each contain the following license:
@@ -217,7 +217,7 @@ Apache License
The following npm package may be included in this product:
- @docker/actions-toolkit@0.79.0
- @docker/actions-toolkit@0.91.0
This package contains the following license:
@@ -455,6 +455,13 @@ The following npm packages may be included in this product:
- @pkgjs/parseargs@0.11.0
- b4a@1.6.6
- bare-events@2.2.2
- bare-events@2.8.3
- bare-fs@4.7.1
- bare-os@3.9.1
- bare-stream@2.13.1
- bare-url@2.4.3
- events-universal@1.0.1
- text-decoder@1.2.7
These packages each contain the following license:
@@ -662,6 +669,247 @@ Apache License
-----------
The following npm package may be included in this product:
- bare-path@3.0.0
This package contains the following license:
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction,
and distribution as defined by Sections 1 through 9 of this document.
"Licensor" shall mean the copyright owner or entity authorized by
the copyright owner that is granting the License.
"Legal Entity" shall mean the union of the acting entity and all
other entities that control, are controlled by, or are under common
control with that entity. For the purposes of this definition,
"control" means (i) the power, direct or indirect, to cause the
direction or management of such entity, whether by contract or
otherwise, or (ii) ownership of fifty percent (50%) or more of the
outstanding shares, or (iii) beneficial ownership of such entity.
"You" (or "Your") shall mean an individual or Legal Entity
exercising permissions granted by this License.
"Source" form shall mean the preferred form for making modifications,
including but not limited to software source code, documentation
source, and configuration files.
"Object" form shall mean any form resulting from mechanical
transformation or translation of a Source form, including but
not limited to compiled object code, generated documentation,
and conversions to other media types.
"Work" shall mean the work of authorship, whether in Source or
Object form, made available under the License, as indicated by a
copyright notice that is included in or attached to the work
(an example is provided in the Appendix below).
"Derivative Works" shall mean any work, whether in Source or Object
form, that is based on (or derived from) the Work and for which the
editorial revisions, annotations, elaborations, or other modifications
represent, as a whole, an original work of authorship. For the purposes
of this License, Derivative Works shall not include works that remain
separable from, or merely link (or bind by name) to the interfaces of,
the Work and Derivative Works thereof.
"Contribution" shall mean any work of authorship, including
the original version of the Work and any modifications or additions
to that Work or Derivative Works thereof, that is intentionally
submitted to Licensor for inclusion in the Work by the copyright owner
or by an individual or Legal Entity authorized to submit on behalf of
the copyright owner. For the purposes of this definition, "submitted"
means any form of electronic, verbal, or written communication sent
to the Licensor or its representatives, including but not limited to
communication on electronic mailing lists, source code control systems,
and issue tracking systems that are managed by, or on behalf of, the
Licensor for the purpose of discussing and improving the Work, but
excluding communication that is conspicuously marked or otherwise
designated in writing by the copyright owner as "Not a Contribution."
"Contributor" shall mean Licensor and any individual or Legal Entity
on behalf of whom a Contribution has been received by Licensor and
subsequently incorporated within the Work.
2. Grant of Copyright License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
copyright license to reproduce, prepare Derivative Works of,
publicly display, publicly perform, sublicense, and distribute the
Work and such Derivative Works in Source or Object form.
3. Grant of Patent License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
(except as stated in this section) patent license to make, have made,
use, offer to sell, sell, import, and otherwise transfer the Work,
where such license applies only to those patent claims licensable
by such Contributor that are necessarily infringed by their
Contribution(s) alone or by combination of their Contribution(s)
with the Work to which such Contribution(s) was submitted. If You
institute patent litigation against any entity (including a
cross-claim or counterclaim in a lawsuit) alleging that the Work
or a Contribution incorporated within the Work constitutes direct
or contributory patent infringement, then any patent licenses
granted to You under this License for that Work shall terminate
as of the date such litigation is filed.
4. Redistribution. You may reproduce and distribute copies of the
Work or Derivative Works thereof in any medium, with or without
modifications, and in Source or Object form, provided that You
meet the following conditions:
(a) You must give any other recipients of the Work or
Derivative Works a copy of this License; and
(b) You must cause any modified files to carry prominent notices
stating that You changed the files; and
(c) You must retain, in the Source form of any Derivative Works
that You distribute, all copyright, patent, trademark, and
attribution notices from the Source form of the Work,
excluding those notices that do not pertain to any part of
the Derivative Works; and
(d) If the Work includes a "NOTICE" text file as part of its
distribution, then any Derivative Works that You distribute must
include a readable copy of the attribution notices contained
within such NOTICE file, excluding those notices that do not
pertain to any part of the Derivative Works, in at least one
of the following places: within a NOTICE text file distributed
as part of the Derivative Works; within the Source form or
documentation, if provided along with the Derivative Works; or,
within a display generated by the Derivative Works, if and
wherever such third-party notices normally appear. The contents
of the NOTICE file are for informational purposes only and
do not modify the License. You may add Your own attribution
notices within Derivative Works that You distribute, alongside
or as an addendum to the NOTICE text from the Work, provided
that such additional attribution notices cannot be construed
as modifying the License.
You may add Your own copyright statement to Your modifications and
may provide additional or different license terms and conditions
for use, reproduction, or distribution of Your modifications, or
for any such Derivative Works as a whole, provided Your use,
reproduction, and distribution of the Work otherwise complies with
the conditions stated in this License.
5. Submission of Contributions. Unless You explicitly state otherwise,
any Contribution intentionally submitted for inclusion in the Work
by You to the Licensor shall be under the terms and conditions of
this License, without any additional terms or conditions.
Notwithstanding the above, nothing herein shall supersede or modify
the terms of any separate license agreement you may have executed
with Licensor regarding such Contributions.
6. Trademarks. This License does not grant permission to use the trade
names, trademarks, service marks, or product names of the Licensor,
except as required for reasonable and customary use in describing the
origin of the Work and reproducing the content of the NOTICE file.
7. Disclaimer of Warranty. Unless required by applicable law or
agreed to in writing, Licensor provides the Work (and each
Contributor provides its Contributions) on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied, including, without limitation, any warranties or conditions
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
PARTICULAR PURPOSE. You are solely responsible for determining the
appropriateness of using or redistributing the Work and assume any
risks associated with Your exercise of permissions under this License.
8. Limitation of Liability. In no event and under no legal theory,
whether in tort (including negligence), contract, or otherwise,
unless required by applicable law (such as deliberate and grossly
negligent acts) or agreed to in writing, shall any Contributor be
liable to You for damages, including any direct, indirect, special,
incidental, or consequential damages of any character arising as a
result of this License or out of the use or inability to use the
Work (including but not limited to damages for loss of goodwill,
work stoppage, computer failure or malfunction, or any and all
other commercial damages or losses), even if such Contributor
has been advised of the possibility of such damages.
9. Accepting Warranty or Additional Liability. While redistributing
the Work or Derivative Works thereof, You may choose to offer,
and charge a fee for, acceptance of support, warranty, indemnity,
or other liability obligations and/or rights consistent with this
License. However, in accepting such obligations, You may act only
on Your own behalf and on Your sole responsibility, not on behalf
of any other Contributor, and only if You agree to indemnify,
defend, and hold each Contributor harmless for any liability
incurred by, or claims asserted against, such Contributor by reason
of your accepting any such warranty or additional liability.
END OF TERMS AND CONDITIONS
APPENDIX: How to apply the Apache License to your work.
To apply the Apache License to your work, attach the following
boilerplate notice, with the fields enclosed by brackets "[]"
replaced with your own identifying information. (Don't include
the brackets!) The text should be enclosed in the appropriate
comment syntax for the file format. We also recommend that a
file or class name and description of purpose be included on the
same "printed page" as the copyright notice for easier
identification within third-party archives.
Copyright [yyyy] [name of copyright owner]
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
With the following notices:
Copyright 2023 Holepunch Inc
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
---
Copyright Joyent, Inc. and other Node contributors.
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to permit
persons to whom the Software is furnished to do so, subject to the
following conditions:
The above copyright notice and this permission notice shall be included
in all copies or substantial portions of the Software.
-----------
The following npm package may be included in this product:
- readdir-glob@1.1.3
@@ -2285,6 +2533,7 @@ The following npm packages may be included in this product:
- @actions/http-client@3.0.2
- @actions/http-client@4.0.0
- @actions/http-client@4.0.1
These packages each contain the following license:
@@ -2451,7 +2700,7 @@ END OF TERMS AND CONDITIONS
The following npm package may be included in this product:
- @sigstore/verify@3.1.0
- @sigstore/verify@3.1.1
This package contains the following license:
@@ -2577,6 +2826,35 @@ THE SOFTWARE.
-----------
The following npm package may be included in this product:
- @gar/promise-retry@1.0.3
This package contains the following license:
Copyright (c) 2011 Tim Koschützki (tim@debuggable.com), Felix Geisendörfer (felix@debuggable.com)
Copyright (c) 2014 IndigoUnited
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is furnished
to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
-----------
The following npm package may be included in this product:
- color-convert@2.0.1
@@ -2634,12 +2912,11 @@ THE SOFTWARE.
-----------
The following npm packages may be included in this product:
The following npm package may be included in this product:
- retry@0.12.0
- retry@0.13.1
These packages each contain the following license:
This package contains the following license:
Copyright (c) 2011:
Tim Koschützki (tim@debuggable.com)
@@ -2760,12 +3037,11 @@ OTHER DEALINGS IN THE SOFTWARE.
-----------
The following npm packages may be included in this product:
The following npm package may be included in this product:
- @gar/promise-retry@1.0.2
- promise-retry@2.0.1
These packages each contain the following license:
This package contains the following license:
Copyright (c) 2014 IndigoUnited
@@ -2895,12 +3171,14 @@ The following npm packages may be included in this product:
- @azure/core-client@1.10.1
- @azure/core-http-compat@2.3.2
- @azure/core-rest-pipeline@1.22.2
- @azure/core-rest-pipeline@1.23.0
- @azure/core-tracing@1.3.1
- @azure/core-util@1.13.1
- @azure/core-xml@1.5.0
- @azure/logger@1.3.0
- @azure/storage-blob@12.31.0
- @typespec/ts-http-runtime@0.3.3
- @typespec/ts-http-runtime@0.3.5
These packages each contain the following license:
@@ -3215,11 +3493,12 @@ USE OR PERFORMANCE OF THIS SOFTWARE.
-----------
The following npm package may be included in this product:
The following npm packages may be included in this product:
- make-fetch-happen@15.0.4
- make-fetch-happen@15.0.6
This package contains the following license:
These packages each contain the following license:
ISC License
@@ -3355,7 +3634,6 @@ The following npm packages may be included in this product:
- binary@0.3.0
- browserify-zlib@0.1.4
- eastasianwidth@0.2.0
- err-code@2.0.3
- imurmurhash@0.1.4
- is-gzip@1.0.0
- isarray@1.0.0
@@ -3765,6 +4043,36 @@ SOFTWARE.
-----------
The following npm package may be included in this product:
- @npmcli/redact@4.0.0
This package contains the following license:
MIT License
Copyright (c) 2024 npm
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
-----------
The following npm package may be included in this product:
- fast-xml-builder@1.2.0
@@ -4362,6 +4670,7 @@ The following npm packages may be included in this product:
- semver@7.5.4
- semver@7.7.3
- semver@7.7.4
- semver@7.8.1
- which@2.0.2
- wrappy@1.0.2
- yallist@4.0.0
@@ -4504,7 +4813,7 @@ THE SOFTWARE.
The following npm package may be included in this product:
- csv-parse@6.1.0
- csv-parse@6.2.1
This package contains the following license:
@@ -4688,6 +4997,7 @@ The following npm packages may be included in this product:
- pump@2.0.1
- pumpify@1.5.1
- tar-stream@3.1.7
- tar-stream@3.2.0
These packages each contain the following license:
@@ -4959,6 +5269,7 @@ The following npm packages may be included in this product:
- fast-fifo@1.3.2
- streamx@2.16.1
- streamx@2.26.0
These packages each contain the following license:
@@ -4986,6 +5297,36 @@ THE SOFTWARE.
-----------
The following npm package may be included in this product:
- teex@1.0.1
This package contains the following license:
The MIT License (MIT)
Copyright (c) 2020 Mathias Buus
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
-----------
The following npm packages may be included in this product:
- @azure/abort-controller@1.1.0
@@ -5211,11 +5552,13 @@ https://github.com/bitinn/node-fetch
The following npm packages may be included in this product:
- @actions/artifact@6.2.0
- @actions/cache@6.0.0
- @actions/artifact@6.2.1
- @actions/cache@6.0.1
- @actions/core@3.0.0
- @actions/core@3.0.1
- @actions/exec@3.0.0
- @actions/github@9.0.0
- @actions/github@9.1.1
- @actions/glob@0.6.1
- @actions/io@3.0.2
- @actions/tool-cache@4.0.0