mirror of
https://github.com/docker/setup-compose-action.git
synced 2026-11-01 22:11:27 +01:00
[dependabot skip] chore: update generated content
This commit is contained in:
1 parent
2f4a3092b7
commit
310654b5cc
3 files changed
+136
-842
No files matched your search
+118
-176
@@ -1,82 +1,82 @@
|
||||
var WQe=Object.create;var jw=Object.defineProperty;var KQe=Object.getOwnPropertyDescriptor;var XQe=Object.getOwnPropertyNames;var ZQe=Object.getPrototypeOf,e1e=Object.prototype.hasOwnProperty;var o=(t,e)=>jw(t,"name",{value:e,configurable:!0});var t1e=(t,e)=>()=>(t&&(e=t(t=0)),e);var m=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),vW=(t,e)=>{for(var r in e)jw(t,r,{get:e[r],enumerable:!0})},r1e=(t,e,r,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of XQe(e))!e1e.call(t,i)&&i!==r&&jw(t,i,{get:()=>e[i],enumerable:!(s=KQe(e,i))||s.enumerable});return t};var M=(t,e,r)=>(r=t!=null?WQe(ZQe(t)):{},r1e(e||!t||!t.__esModule?jw(r,"default",{value:t,enumerable:!0}):r,t));var MW=m(yA=>{"use strict";var Jvt=require("net"),c1e=require("tls"),WO=require("http"),OW=require("https"),l1e=require("events"),Yvt=require("assert"),u1e=require("util");yA.httpOverHttp=h1e;yA.httpsOverHttp=d1e;yA.httpOverHttps=f1e;yA.httpsOverHttps=p1e;function h1e(t){var e=new Dl(t);return e.request=WO.request,e}o(h1e,"httpOverHttp");function d1e(t){var e=new Dl(t);return e.request=WO.request,e.createSocket=DW,e.defaultPort=443,e}o(d1e,"httpsOverHttp");function f1e(t){var e=new Dl(t);return e.request=OW.request,e}o(f1e,"httpOverHttps");function p1e(t){var e=new Dl(t);return e.request=OW.request,e.createSocket=DW,e.defaultPort=443,e}o(p1e,"httpsOverHttps");function Dl(t){var e=this;e.options=t||{},e.proxyOptions=e.options.proxy||{},e.maxSockets=e.options.maxSockets||WO.Agent.defaultMaxSockets,e.requests=[],e.sockets=[],e.on("free",o(function(s,i,n,a){for(var c=kW(i,n,a),l=0,u=e.requests.length;l<u;++l){var h=e.requests[l];if(h.host===c.host&&h.port===c.port){e.requests.splice(l,1),h.request.onSocket(s);return}}s.destroy(),e.removeSocket(s)},"onFree"))}o(Dl,"TunnelingAgent");u1e.inherits(Dl,l1e.EventEmitter);Dl.prototype.addRequest=o(function(e,r,s,i){var n=this,a=KO({request:e},n.options,kW(r,s,i));if(n.sockets.length>=this.maxSockets){n.requests.push(a);return}n.createSocket(a,function(c){c.on("free",l),c.on("close",u),c.on("agentRemove",u),e.onSocket(c);function l(){n.emit("free",c,a)}o(l,"onFree");function u(h){n.removeSocket(c),c.removeListener("free",l),c.removeListener("close",u),c.removeListener("agentRemove",u)}o(u,"onCloseOrRemove")})},"addRequest");Dl.prototype.createSocket=o(function(e,r){var s=this,i={};s.sockets.push(i);var n=KO({},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")),mh("making CONNECT request");var a=s.request(n);a.useChunkedEncodingByDefault=!1,a.once("response",c),a.once("upgrade",l),a.once("connect",u),a.once("error",h),a.end();function c(d){d.upgrade=!0}o(c,"onResponse");function l(d,f,p){process.nextTick(function(){u(d,f,p)})}o(l,"onUpgrade");function u(d,f,p){if(a.removeAllListeners(),f.removeAllListeners(),d.statusCode!==200){mh("tunneling socket could not be established, statusCode=%d",d.statusCode),f.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(p.length>0){mh("got illegal response body from proxy"),f.destroy();var A=new Error("got illegal response body from proxy");A.code="ECONNRESET",e.request.emit("error",A),s.removeSocket(i);return}return mh("tunneling connection has established"),s.sockets[s.sockets.indexOf(i)]=f,r(f)}o(u,"onConnect");function h(d){a.removeAllListeners(),mh(`tunneling socket could not be established, cause=%s
|
||||
`,d.message,d.stack);var f=new Error("tunneling socket could not be established, cause="+d.message);f.code="ECONNRESET",e.request.emit("error",f),s.removeSocket(i)}o(h,"onError")},"createSocket");Dl.prototype.removeSocket=o(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)})}},"removeSocket");function DW(t,e){var r=this;Dl.prototype.createSocket.call(r,t,function(s){var i=t.request.getHeader("host"),n=KO({},r.options,{socket:s,servername:i?i.replace(/:.*$/,""):t.host}),a=c1e.connect(0,n);r.sockets[r.sockets.indexOf(s)]=a,e(a)})}o(DW,"createSecureSocket");function kW(t,e,r){return typeof t=="string"?{host:t,port:e,localAddress:r}:t}o(kW,"toOptions");function KO(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,a=i.length;n<a;++n){var c=i[n];s[c]!==void 0&&(t[c]=s[c])}}return t}o(KO,"mergeOptions");var mh;process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)?mh=o(function(){var t=Array.prototype.slice.call(arguments);typeof t[0]=="string"?t[0]="TUNNEL: "+t[0]:t.unshift("TUNNEL:"),console.error.apply(console,t)},"debug"):mh=o(function(){},"debug");yA.debug=mh});var bE=m((Xvt,LW)=>{LW.exports=MW()});var rr=m((Zvt,FW)=>{FW.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 gt=m((eTt,u9)=>{"use strict";var UW=Symbol.for("undici.error.UND_ERR"),sr=class extends Error{static{o(this,"UndiciError")}constructor(e){super(e),this.name="UndiciError",this.code="UND_ERR"}static[Symbol.hasInstance](e){return e&&e[UW]===!0}[UW]=!0},qW=Symbol.for("undici.error.UND_ERR_CONNECT_TIMEOUT"),XO=class extends sr{static{o(this,"ConnectTimeoutError")}constructor(e){super(e),this.name="ConnectTimeoutError",this.message=e||"Connect Timeout Error",this.code="UND_ERR_CONNECT_TIMEOUT"}static[Symbol.hasInstance](e){return e&&e[qW]===!0}[qW]=!0},GW=Symbol.for("undici.error.UND_ERR_HEADERS_TIMEOUT"),ZO=class extends sr{static{o(this,"HeadersTimeoutError")}constructor(e){super(e),this.name="HeadersTimeoutError",this.message=e||"Headers Timeout Error",this.code="UND_ERR_HEADERS_TIMEOUT"}static[Symbol.hasInstance](e){return e&&e[GW]===!0}[GW]=!0},HW=Symbol.for("undici.error.UND_ERR_HEADERS_OVERFLOW"),eD=class extends sr{static{o(this,"HeadersOverflowError")}constructor(e){super(e),this.name="HeadersOverflowError",this.message=e||"Headers Overflow Error",this.code="UND_ERR_HEADERS_OVERFLOW"}static[Symbol.hasInstance](e){return e&&e[HW]===!0}[HW]=!0},zW=Symbol.for("undici.error.UND_ERR_BODY_TIMEOUT"),tD=class extends sr{static{o(this,"BodyTimeoutError")}constructor(e){super(e),this.name="BodyTimeoutError",this.message=e||"Body Timeout Error",this.code="UND_ERR_BODY_TIMEOUT"
Line truncated
|
||||
`)||t.includes("\r")||t.includes("\0"))===!1}o(wK,"isValidHeaderValue");function TOe(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 a=s[n-1].trim();if(pOe.has(a)){i=a;break}}i!==""&&(t.referrerPolicy=i)}o(TOe,"setRequestReferrerPolicyOnRedirect");function _Oe(){return"allowed"}o(_Oe,"crossOriginResourcePolicyCheck");function QOe(){return"success"}o(QOe,"corsCheck");function POe(){return"success"}o(POe,"TAOCheck");function OOe(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}o(OOe,"appendFetchMetadata");function DOe(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&&JD(t.origin)&&!JD(_E(t))&&(e=null);break;case"same-origin":gB(t,_E(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}o(DOe,"appendRequestOriginHeader");function RA(t,e){return t}o(RA,"coarsenTime");function kOe(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:RA(t.domainLookupStartTime,r),domainLookupEndTime:RA(t.domainLookupEndTime,r),connectionStartTime:RA(t.connectionStartTime,r),connectionEndTime:RA(t.connectionEndTime,r),secureConnectionStartTime:RA(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}o(kOe,"clampAndCoarsenConnectionTimingInfo");function MOe(t){return RA(EOe.now(),t)}o(MOe,"coarsenedSharedCurrentTime");function LOe(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}}o(LOe,"createOpaqueTimingInfo");function BK(){return{referrerPolicy:"strict-origin-when-cross-origin"}}o(BK,"makePolicyContainer");function FOe(t){return{referrerPolicy:t.referrerPolicy}}o(FOe,"clonePolicyContainer");function UOe(t){let e=t.referrerPolicy;Wd(e);let r=null;if(t.referrer==="client"){let c=yK();if(!c||c.origin==="null")return"no-referrer";r=new URL(c)}else t.referrer instanceof URL&&(r=t.referrer);let s=jD(r),i=jD(r,!0);s.toString().length>4096&&(s=i);let n=gB(t,s),a=TE(s)&&!TE(t.url);switch(e){case"origin":return i??jD(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 c=_E(t);return gB(s,c)?s:TE(s)&&!TE(c)?"no-referrer":i}default:return a?"no-referrer":i}}o(UOe,"determineRequestsReferrer");function jD(t,e){return Wd(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)}o(jD,"stripURLForReferrer");function TE(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"))}}o(TE,"isURLPotentiallyTrustworthy");function qOe(t,e){if(mB===void 0)return!0;let r=SK(e);if(r==="no metadata"||r.length===0)return!0;let s=HOe(r),i=zOe(r,s);for(let n of i){let a=n.algo,c=n.hash,l=mB.createHash(a).update(t).digest("base64");if(l[l.length-1]==="="&&(l[l.length-2]==="="?l=l.slice(0,-2):l=l.slice(0,-1)),VOe(l,c))return!0}return!1}o(qOe,"bytesMatch");var GOe=/(?<algo>sha256|sha384|sha512)-((?<hash>[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;function SK(t){let e=[],r=!0;for(let s of t.split(" ")){r=!1;let i=GOe.exec(s);if(i===null||i.groups===void 0||i.groups.algo===void 0)continue;let n=i.groups.algo.toLowerCase();CK.includes(n)&&e.push(i.groups)}return r===!0?"no metadata":e}o(SK,"parseMetadata");function HOe(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}o(HOe,"getStrongestMetadata");function zOe(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}o(zOe,"filterMetadataListByAlgorithm");function VOe(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}o(VOe,"compareBase64Mixed");function $Oe(t){}o($Oe,"tryUpgradeReque
Line truncated
|
||||
`);function RDe(t){for(let e=0;e<t.length;++e)if((t.charCodeAt(e)&-128)!==0)return!1;return!0}o(RDe,"isAsciiString");function vDe(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}o(vDe,"validateBoundary");function TDe(t,e){EB(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 a=t.length;for(;t[a-1]===10&&t[a-2]===13;)a-=2;for(a!==t.length&&(t=t.subarray(0,a));;){if(t.subarray(n.position,n.position+s.length).equals(s))n.position+=s.length;else return"failure";if(n.position===t.length-2&&CB(t,xDe,n)||n.position===t.length-4&&CB(t,NDe,n))return i;if(t[n.position]!==13||t[n.position+1]!==10)return"failure";n.position+=2;let c=_De(t,n);if(c==="failure")return"failure";let{name:l,filename:u,contentType:h,encoding:d}=c;n.position+=2;let f;{let A=t.indexOf(s.subarray(2),n.position);if(A===-1)return"failure";f=t.subarray(n.position,A-4),n.position+=f.length,d==="base64"&&(f=Buffer.from(f.toString(),"base64"))}if(t[n.position]!==13||t[n.position+1]!==10)return"failure";n.position+=2;let p;u!==null?(h??="text/plain",RDe(h)||(h=""),p=new BDe([f],u,{type:h})):p=EDe(Buffer.from(f)),EB(LK(l)),EB(typeof p=="string"&&LK(p)||IDe(p)),i.push(bDe(l,p,u))}}o(TDe,"multipartFormDataParser");function _De(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 a=TA(c=>c!==10&&c!==13&&c!==58,t,e);if(a=tk(a,!0,!0,c=>c===9||c===32),!CDe.test(a.toString())||t[e.position]!==58)return"failure";switch(e.position++,TA(c=>c===32||c===9,t,e),yDe(a)){case"content-disposition":{if(r=s=null,!CB(t,SDe,e)||(e.position+=17,r=qK(t,e),r===null))return"failure";if(CB(t,UK,e)){let c=e.position+UK.length;if(t[c]===42&&(e.position+=1,c+=1),t[c]!==61||t[c+1]!==34||(e.position+=12,s=qK(t,e),s===null))return"failure"}break}case"content-type":{let c=TA(l=>l!==10&&l!==13,t,e);c=tk(c,!1,!0,l=>l===9||l===32),i=FK(c);break}case"content-transfer-encoding":{let c=TA(l=>l!==10&&l!==13,t,e);c=tk(c,!1,!0,l=>l===9||l===32),n=FK(c);break}default:TA(c=>c!==10&&c!==13,t,e)}if(t[e.position]!==13&&t[e.position+1]!==10)return"failure";e.position+=2}}o(_De,"parseMultipartFormDataHeaders");function qK(t,e){EB(t[e.position-1]===34);let r=TA(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)}o(qK,"parseMultipartFormDataName");function TA(t,e,r){let s=r.position;for(;s<e.length&&t(e[s]);)++s;return e.subarray(r.position,r.position=s)}o(TA,"collectASequenceOfBytes");function tk(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)}o(tk,"removeChars");function CB(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}o(CB,"bufferStartsWith");GK.exports={multipartFormDataParser:TDe,validateBoundary:vDe}});var PA=m((UTt,ZK)=>{"use strict";var OE=st(),{ReadableStreamFrom:QDe,isBlobLike:zK,isReadableStreamLike:PDe,readableStreamClose:ODe,createDeferredPromise:DDe,fullyReadBody:kDe,extractMimeType:MDe,utf8DecodeBytes:jK}=Rn(),{FormData:VK}=PE(),{kState:QA}=gh(),{webidl:LDe}=Ms(),{Blob:FDe}=require("node:buffer"),rk=require("node:assert"),{isErrored:JK,isDisturbed:UDe}=require("node:stream"),{isArrayBuffer:qDe}=require("node:util/types"),{serializeAMimeType:GDe}=Ji(),{multipartFormDataParser:HDe}=HK(),sk;try{let t=require("node:crypto");sk=o(e=>t.randomInt(0,e),"random")}catch{sk=o(t=>Math.floor(Math.random(t)),"random")}var IB=new TextEncoder;function zDe(){}o(zDe,"noop");var YK=globalThis.FinalizationRegistry&&process.version.indexOf("v18")!==0,WK;YK&&(WK=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!UDe(e)&&!JK(e)&&e.cancel("Response object has been garbage collected").catch(zDe)}));function KK(t,e=!1){let r=null;t instanceof ReadableStream?r=t:zK(t)?r=t.stream():r=new ReadableStream({async pull(l){let u=typeof i=="string"?IB.encode(i):i;u.byteLength&&l.enqueue(u),queueMicrotask(()=>ODe(l))},start(){},type:"bytes"}),rk(PDe(r));let s=null,i=null,n=null,a=null;if(typeof t=="string")i=t,a="text/plain;charset=UTF-8";else if(t instanceof URLSearchParams)i=t.toString(),a="application/x-www-form-urlencoded;charset=UTF-8";else if(qDe(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(OE.isFormDataLike(t)){let l=`----formdata-undici-0${`${sk(1e11)}`.padStart(11,"0")}`,u=`--${l}\r
|
||||
Content-Disposition: form-data`;let h=o(C=>C.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22"),"escape"),d=o(C=>C.replace(/\r?\n|\r/g,`\r
|
||||
`),"normalizeLinefeeds"),f=[],p=new Uint8Array([13,10]);n=0;let A=!1;for(let[C,E]of t)if(typeof E=="string"){let I=IB.encode(u+`; name="${h(d(C))}"\r
|
||||
var Hce=Object.create;var iE=Object.defineProperty;var Vce=Object.getOwnPropertyDescriptor;var zce=Object.getOwnPropertyNames;var Jce=Object.getPrototypeOf,Yce=Object.prototype.hasOwnProperty;var o=(t,e)=>iE(t,"name",{value:e,configurable:!0});var h=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),$ce=(t,e)=>{for(var r in e)iE(t,r,{get:e[r],enumerable:!0})},Wce=(t,e,r,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of zce(e))!Yce.call(t,n)&&n!==r&&iE(t,n,{get:()=>e[n],enumerable:!(s=Vce(e,n))||s.enumerable});return t};var w=(t,e,r)=>(r=t!=null?Hce(Jce(t)):{},Wce(e||!t||!t.__esModule?iE(r,"default",{value:t,enumerable:!0}):r,t));var nq=h(zu=>{"use strict";var e4e=require("net"),tle=require("tls"),RN=require("http"),tq=require("https"),rle=require("events"),t4e=require("assert"),sle=require("util");zu.httpOverHttp=nle;zu.httpsOverHttp=ile;zu.httpOverHttps=ole;zu.httpsOverHttps=ale;function nle(t){var e=new Uo(t);return e.request=RN.request,e}o(nle,"httpOverHttp");function ile(t){var e=new Uo(t);return e.request=RN.request,e.createSocket=rq,e.defaultPort=443,e}o(ile,"httpsOverHttp");function ole(t){var e=new Uo(t);return e.request=tq.request,e}o(ole,"httpOverHttps");function ale(t){var e=new Uo(t);return e.request=tq.request,e.createSocket=rq,e.defaultPort=443,e}o(ale,"httpsOverHttps");function Uo(t){var e=this;e.options=t||{},e.proxyOptions=e.options.proxy||{},e.maxSockets=e.options.maxSockets||RN.Agent.defaultMaxSockets,e.requests=[],e.sockets=[],e.on("free",o(function(s,n,i,a){for(var c=sq(n,i,a),l=0,u=e.requests.length;l<u;++l){var d=e.requests[l];if(d.host===c.host&&d.port===c.port){e.requests.splice(l,1),d.request.onSocket(s);return}}s.destroy(),e.removeSocket(s)},"onFree"))}o(Uo,"TunnelingAgent");sle.inherits(Uo,rle.EventEmitter);Uo.prototype.addRequest=o(function(e,r,s,n){var i=this,a=TN({request:e},i.options,sq(r,s,n));if(i.sockets.length>=this.maxSockets){i.requests.push(a);return}i.createSocket(a,function(c){c.on("free",l),c.on("close",u),c.on("agentRemove",u),e.onSocket(c);function l(){i.emit("free",c,a)}o(l,"onFree");function u(d){i.removeSocket(c),c.removeListener("free",l),c.removeListener("close",u),c.removeListener("agentRemove",u)}o(u,"onCloseOrRemove")})},"addRequest");Uo.prototype.createSocket=o(function(e,r){var s=this,n={};s.sockets.push(n);var i=TN({},s.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:!1,headers:{host:e.host+":"+e.port}});e.localAddress&&(i.localAddress=e.localAddress),i.proxyAuth&&(i.headers=i.headers||{},i.headers["Proxy-Authorization"]="Basic "+new Buffer(i.proxyAuth).toString("base64")),qa("making CONNECT request");var a=s.request(i);a.useChunkedEncodingByDefault=!1,a.once("response",c),a.once("upgrade",l),a.once("connect",u),a.once("error",d),a.end();function c(A){A.upgrade=!0}o(c,"onResponse");function l(A,p,f){process.nextTick(function(){u(A,p,f)})}o(l,"onUpgrade");function u(A,p,f){if(a.removeAllListeners(),p.removeAllListeners(),A.statusCode!==200){qa("tunneling socket could not be established, statusCode=%d",A.statusCode),p.destroy();var m=new Error("tunneling socket could not be established, statusCode="+A.statusCode);m.code="ECONNRESET",e.request.emit("error",m),s.removeSocket(n);return}if(f.length>0){qa("got illegal response body from proxy"),p.destroy();var m=new Error("got illegal response body from proxy");m.code="ECONNRESET",e.request.emit("error",m),s.removeSocket(n);return}return qa("tunneling connection has established"),s.sockets[s.sockets.indexOf(n)]=p,r(p)}o(u,"onConnect");function d(A){a.removeAllListeners(),qa(`tunneling socket could not be established, cause=%s
|
||||
`,A.message,A.stack);var p=new Error("tunneling socket could not be established, cause="+A.message);p.code="ECONNRESET",e.request.emit("error",p),s.removeSocket(n)}o(d,"onError")},"createSocket");Uo.prototype.removeSocket=o(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(n){s.request.onSocket(n)})}},"removeSocket");function rq(t,e){var r=this;Uo.prototype.createSocket.call(r,t,function(s){var n=t.request.getHeader("host"),i=TN({},r.options,{socket:s,servername:n?n.replace(/:.*$/,""):t.host}),a=tle.connect(0,i);r.sockets[r.sockets.indexOf(s)]=a,e(a)})}o(rq,"createSecureSocket");function sq(t,e,r){return typeof t=="string"?{host:t,port:e,localAddress:r}:t}o(sq,"toOptions");function TN(t){for(var e=1,r=arguments.length;e<r;++e){var s=arguments[e];if(typeof s=="object")for(var n=Object.keys(s),i=0,a=n.length;i<a;++i){var c=n[i];s[c]!==void 0&&(t[c]=s[c])}}return t}o(TN,"mergeOptions");var qa;process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)?qa=o(function(){var t=Array.prototype.slice.call(arguments);typeof t[0]=="string"?t[0]="TUNNEL: "+t[0]:t.unshift("TUNNEL:"),console.error.apply(console,t)},"debug"):qa=o(function(){},"debug");zu.debug=qa});var Zp=h((n4e,iq)=>{iq.exports=nq()});var ot=h((i4e,oq)=>{oq.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 Te=h((o4e,vq)=>{"use strict";var aq=Symbol.for("undici.error.UND_ERR"),at=class extends Error{static{o(this,"UndiciError")}constructor(e){super(e),this.name="UndiciError",this.code="UND_ERR"}static[Symbol.hasInstance](e){return e&&e[aq]===!0}[aq]=!0},cq=Symbol.for("undici.error.UND_ERR_CONNECT_TIMEOUT"),vN=class extends at{static{o(this,"ConnectTimeoutError")}constructor(e){super(e),this.name="ConnectTimeoutError",this.message=e||"Connect Timeout Error",this.code="UND_ERR_CONNECT_TIMEOUT"}static[Symbol.hasInstance](e){return e&&e[cq]===!0}[cq]=!0},lq=Symbol.for("undici.error.UND_ERR_HEADERS_TIMEOUT"),PN=class extends at{static{o(this,"HeadersTimeoutError")}constructor(e){super(e),this.name="HeadersTimeoutError",this.message=e||"Headers Timeout Error",this.code="UND_ERR_HEADERS_TIMEOUT"}static[Symbol.hasInstance](e){return e&&e[lq]===!0}[lq]=!0},uq=Symbol.for("undici.error.UND_ERR_HEADERS_OVERFLOW"),_N=class extends at{static{o(this,"HeadersOverflowError")}constructor(e){super(e),this.name="HeadersOverflowError",this.message=e||"Headers Overflow Error",this.code="UND_ERR_HEADERS_OVERFLOW"}static[Symbol.hasInstance](e){return e&&e[uq]===!0}[uq]=!0},dq=Symbol.for("undici.error.UND_ERR_BODY_TIMEOUT"),kN=class extends at{static{o(this,"BodyTimeoutError")}constructor(e){super(e),this.name="BodyTimeoutError",this.message=e||"Body Timeout Error",this.code="UND_ERR_BODY_TIMEOUT"
Line truncated
|
||||
`)||t.includes("\r")||t.includes("\0"))===!1}o(VG,"isValidHeaderValue");function bde(t,e){let{headersList:r}=e,s=(r.get("referrer-policy",!0)??"").split(","),n="";if(s.length>0)for(let i=s.length;i!==0;i--){let a=s[i-1].trim();if(ade.has(a)){n=a;break}}n!==""&&(t.referrerPolicy=n)}o(bde,"setRequestReferrerPolicyOnRedirect");function wde(){return"allowed"}o(wde,"crossOriginResourcePolicyCheck");function Sde(){return"success"}o(Sde,"corsCheck");function Nde(){return"success"}o(Nde,"TAOCheck");function xde(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}o(xde,"appendFetchMetadata");function Qde(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&&xx(t.origin)&&!xx(lf(t))&&(e=null);break;case"same-origin":RE(t,lf(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}o(Qde,"appendRequestOriginHeader");function td(t,e){return t}o(td,"coarsenTime");function Rde(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:td(t.domainLookupStartTime,r),domainLookupEndTime:td(t.domainLookupEndTime,r),connectionStartTime:td(t.connectionStartTime,r),connectionEndTime:td(t.connectionEndTime,r),secureConnectionStartTime:td(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}o(Rde,"clampAndCoarsenConnectionTimingInfo");function Tde(t){return td(Ade.now(),t)}o(Tde,"coarsenedSharedCurrentTime");function vde(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}}o(vde,"createOpaqueTimingInfo");function zG(){return{referrerPolicy:"strict-origin-when-cross-origin"}}o(zG,"makePolicyContainer");function Pde(t){return{referrerPolicy:t.referrerPolicy}}o(Pde,"clonePolicyContainer");function _de(t){let e=t.referrerPolicy;sl(e);let r=null;if(t.referrer==="client"){let c=FG();if(!c||c.origin==="null")return"no-referrer";r=new URL(c)}else t.referrer instanceof URL&&(r=t.referrer);let s=Nx(r),n=Nx(r,!0);s.toString().length>4096&&(s=n);let i=RE(t,s),a=cf(s)&&!cf(t.url);switch(e){case"origin":return n??Nx(r,!0);case"unsafe-url":return s;case"same-origin":return i?n:"no-referrer";case"origin-when-cross-origin":return i?s:n;case"strict-origin-when-cross-origin":{let c=lf(t);return RE(s,c)?s:cf(s)&&!cf(c)?"no-referrer":n}default:return a?"no-referrer":n}}o(_de,"determineRequestsReferrer");function Nx(t,e){return sl(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)}o(Nx,"stripURLForReferrer");function cf(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"))}}o(cf,"isURLPotentiallyTrustworthy");function kde(t,e){if(QE===void 0)return!0;let r=JG(e);if(r==="no metadata"||r.length===0)return!0;let s=Ode(r),n=Mde(r,s);for(let i of n){let a=i.algo,c=i.hash,l=QE.createHash(a).update(t).digest("base64");if(l[l.length-1]==="="&&(l[l.length-2]==="="?l=l.slice(0,-2):l=l.slice(0,-1)),Lde(l,c))return!0}return!1}o(kde,"bytesMatch");var Dde=/(?<algo>sha256|sha384|sha512)-((?<hash>[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;function JG(t){let e=[],r=!0;for(let s of t.split(" ")){r=!1;let n=Dde.exec(s);if(n===null||n.groups===void 0||n.groups.algo===void 0)continue;let i=n.groups.algo.toLowerCase();qG.includes(i)&&e.push(n.groups)}return r===!0?"no metadata":e}o(JG,"parseMetadata");function Ode(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}o(Ode,"getStrongestMetadata");function Mde(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}o(Mde,"filterMetadataListByAlgorithm");function Lde(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}o(Lde,"compareBase64Mixed");function Fde(t){}o(Fde,"tryUpgradeReque
Line truncated
|
||||
`);function IAe(t){for(let e=0;e<t.length;++e)if((t.charCodeAt(e)&-128)!==0)return!1;return!0}o(IAe,"isAsciiString");function BAe(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}o(BAe,"validateBoundary");function bAe(t,e){vE(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"),n=[],i={position:0};for(;t[i.position]===13&&t[i.position+1]===10;)i.position+=2;let a=t.length;for(;t[a-1]===10&&t[a-2]===13;)a-=2;for(a!==t.length&&(t=t.subarray(0,a));;){if(t.subarray(i.position,i.position+s.length).equals(s))i.position+=s.length;else return"failure";if(i.position===t.length-2&&PE(t,yAe,i)||i.position===t.length-4&&PE(t,CAe,i))return n;if(t[i.position]!==13||t[i.position+1]!==10)return"failure";i.position+=2;let c=wAe(t,i);if(c==="failure")return"failure";let{name:l,filename:u,contentType:d,encoding:A}=c;i.position+=2;let p;{let m=t.indexOf(s.subarray(2),i.position);if(m===-1)return"failure";p=t.subarray(i.position,m-4),i.position+=p.length,A==="base64"&&(p=Buffer.from(p.toString(),"base64"))}if(t[i.position]!==13||t[i.position+1]!==10)return"failure";i.position+=2;let f;u!==null?(d??="text/plain",IAe(d)||(d=""),f=new gAe([p],u,{type:d})):f=AAe(Buffer.from(p)),vE(iH(l)),vE(typeof f=="string"&&iH(f)||fAe(f)),n.push(hAe(l,f,u))}}o(bAe,"multipartFormDataParser");function wAe(t,e){let r=null,s=null,n=null,i=null;for(;;){if(t[e.position]===13&&t[e.position+1]===10)return r===null?"failure":{name:r,filename:s,contentType:n,encoding:i};let a=sd(c=>c!==10&&c!==13&&c!==58,t,e);if(a=kx(a,!0,!0,c=>c===9||c===32),!pAe.test(a.toString())||t[e.position]!==58)return"failure";switch(e.position++,sd(c=>c===32||c===9,t,e),dAe(a)){case"content-disposition":{if(r=s=null,!PE(t,EAe,e)||(e.position+=17,r=cH(t,e),r===null))return"failure";if(PE(t,aH,e)){let c=e.position+aH.length;if(t[c]===42&&(e.position+=1,c+=1),t[c]!==61||t[c+1]!==34||(e.position+=12,s=cH(t,e),s===null))return"failure"}break}case"content-type":{let c=sd(l=>l!==10&&l!==13,t,e);c=kx(c,!1,!0,l=>l===9||l===32),n=oH(c);break}case"content-transfer-encoding":{let c=sd(l=>l!==10&&l!==13,t,e);c=kx(c,!1,!0,l=>l===9||l===32),i=oH(c);break}default:sd(c=>c!==10&&c!==13,t,e)}if(t[e.position]!==13&&t[e.position+1]!==10)return"failure";e.position+=2}}o(wAe,"parseMultipartFormDataHeaders");function cH(t,e){vE(t[e.position-1]===34);let r=sd(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)}o(cH,"parseMultipartFormDataName");function sd(t,e,r){let s=r.position;for(;s<e.length&&t(e[s]);)++s;return e.subarray(r.position,r.position=s)}o(sd,"collectASequenceOfBytes");function kx(t,e,r,s){let n=0,i=t.length-1;if(e)for(;n<t.length&&s(t[n]);)n++;if(r)for(;i>0&&s(t[i]);)i--;return n===0&&i===t.length-1?t:t.subarray(n,i+1)}o(kx,"removeChars");function PE(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}o(PE,"bufferStartsWith");lH.exports={multipartFormDataParser:bAe,validateBoundary:BAe}});var od=h((J4e,CH)=>{"use strict";var Af=Ce(),{ReadableStreamFrom:SAe,isBlobLike:dH,isReadableStreamLike:NAe,readableStreamClose:xAe,createDeferredPromise:QAe,fullyReadBody:RAe,extractMimeType:TAe,utf8DecodeBytes:fH}=Ss(),{FormData:AH}=df(),{kState:id}=Ga(),{webidl:vAe}=pr(),{Blob:PAe}=require("node:buffer"),Dx=require("node:assert"),{isErrored:hH,isDisturbed:_Ae}=require("node:stream"),{isArrayBuffer:kAe}=require("node:util/types"),{serializeAMimeType:DAe}=Zr(),{multipartFormDataParser:OAe}=uH(),Ox;try{let t=require("node:crypto");Ox=o(e=>t.randomInt(0,e),"random")}catch{Ox=o(t=>Math.floor(Math.random(t)),"random")}var _E=new TextEncoder;function MAe(){}o(MAe,"noop");var mH=globalThis.FinalizationRegistry&&process.version.indexOf("v18")!==0,gH;mH&&(gH=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!_Ae(e)&&!hH(e)&&e.cancel("Response object has been garbage collected").catch(MAe)}));function EH(t,e=!1){let r=null;t instanceof ReadableStream?r=t:dH(t)?r=t.stream():r=new ReadableStream({async pull(l){let u=typeof n=="string"?_E.encode(n):n;u.byteLength&&l.enqueue(u),queueMicrotask(()=>xAe(l))},start(){},type:"bytes"}),Dx(NAe(r));let s=null,n=null,i=null,a=null;if(typeof t=="string")n=t,a="text/plain;charset=UTF-8";else if(t instanceof URLSearchParams)n=t.toString(),a="application/x-www-form-urlencoded;charset=UTF-8";else if(kAe(t))n=new Uint8Array(t.slice());else if(ArrayBuffer.isView(t))n=new Uint8Array(t.buffer.slice(t.byteOffset,t.byteOffset+t.byteLength));else if(Af.isFormDataLike(t)){let l=`----formdata-undici-0${`${Ox(1e11)}`.padStart(11,"0")}`,u=`--${l}\r
|
||||
Content-Disposition: form-data`;let d=o(y=>y.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22"),"escape"),A=o(y=>y.replace(/\r?\n|\r/g,`\r
|
||||
`),"normalizeLinefeeds"),p=[],f=new Uint8Array([13,10]);i=0;let m=!1;for(let[y,E]of t)if(typeof E=="string"){let C=_E.encode(u+`; name="${d(A(y))}"\r
|
||||
\r
|
||||
${d(E)}\r
|
||||
`);f.push(I),n+=I.byteLength}else{let I=IB.encode(`${u}; name="${h(d(C))}"`+(E.name?`; filename="${h(E.name)}"`:"")+`\r
|
||||
${A(E)}\r
|
||||
`);p.push(C),i+=C.byteLength}else{let C=_E.encode(`${u}; name="${d(A(y))}"`+(E.name?`; filename="${d(E.name)}"`:"")+`\r
|
||||
Content-Type: ${E.type||"application/octet-stream"}\r
|
||||
\r
|
||||
`);f.push(I,E,p),typeof E.size=="number"?n+=I.byteLength+E.size+p.byteLength:A=!0}let g=IB.encode(`--${l}--\r
|
||||
`);f.push(g),n+=g.byteLength,A&&(n=null),i=t,s=o(async function*(){for(let C of f)C.stream?yield*C.stream():yield C},"action"),a=`multipart/form-data; boundary=${l}`}else if(zK(t))i=t,n=t.size,t.type&&(a=t.type);else if(typeof t[Symbol.asyncIterator]=="function"){if(e)throw new TypeError("keepalive");if(OE.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=t instanceof ReadableStream?t:QDe(t)}if((typeof i=="string"||OE.isBuffer(i))&&(n=Buffer.byteLength(i)),s!=null){let l;r=new ReadableStream({async start(){l=s(t)[Symbol.asyncIterator]()},async pull(u){let{value:h,done:d}=await l.next();if(d)queueMicrotask(()=>{u.close(),u.byobRequest?.respond(0)});else if(!JK(r)){let f=new Uint8Array(h);f.byteLength&&u.enqueue(f)}return u.desiredSize>0},async cancel(u){await l.return()},type:"bytes"})}return[{stream:r,source:i,length:n},a]}o(KK,"extractBody");function VDe(t,e=!1){return t instanceof ReadableStream&&(rk(!OE.isDisturbed(t),"The body has already been consumed."),rk(!t.locked,"The stream is locked.")),KK(t,e)}o(VDe,"safelyExtractBody");function $De(t,e){let[r,s]=e.stream.tee();return e.stream=r,{stream:s,length:e.length,source:e.source}}o($De,"cloneBody");function jDe(t){if(t.aborted)throw new DOMException("The operation was aborted.","AbortError")}o(jDe,"throwIfAborted");function JDe(t){return{blob(){return _A(this,r=>{let s=$K(this);return s===null?s="":s&&(s=GDe(s)),new FDe([r],{type:s})},t)},arrayBuffer(){return _A(this,r=>new Uint8Array(r).buffer,t)},text(){return _A(this,jK,t)},json(){return _A(this,WDe,t)},formData(){return _A(this,r=>{let s=$K(this);if(s!==null)switch(s.essence){case"multipart/form-data":{let i=HDe(r,s);if(i==="failure")throw new TypeError("Failed to parse body as FormData.");let n=new VK;return n[QA]=i,n}case"application/x-www-form-urlencoded":{let i=new URLSearchParams(r.toString()),n=new VK;for(let[a,c]of i)n.append(a,c);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)}}}o(JDe,"bodyMixinMethods");function YDe(t){Object.assign(t.prototype,JDe(t))}o(YDe,"mixinBody");async function _A(t,e,r){if(LDe.brandCheck(t,r),XK(t))throw new TypeError("Body is unusable: Body has already been read");jDe(t[QA]);let s=DDe(),i=o(a=>s.reject(a),"errorSteps"),n=o(a=>{try{s.resolve(e(a))}catch(c){i(c)}},"successSteps");return t[QA].body==null?(n(Buffer.allocUnsafe(0)),s.promise):(await kDe(t[QA].body,n,i),s.promise)}o(_A,"consumeBody");function XK(t){let e=t[QA].body;return e!=null&&(e.stream.locked||OE.isDisturbed(e.stream))}o(XK,"bodyUnusable");function WDe(t){return JSON.parse(jK(t))}o(WDe,"parseJSONFromBytes");function $K(t){let e=t[QA].headersList,r=MDe(e);return r==="failure"?null:r}o($K,"bodyMimeType");ZK.exports={extractBody:KK,safelyExtractBody:VDe,cloneBody:$De,mixinBody:YDe,streamRegistry:WK,hasFinalizationRegistry:YK,bodyUnusable:XK}});var AX=m((GTt,pX)=>{"use strict";var Re=require("node:assert"),Qe=st(),{channels:eX}=CA(),ik=FD(),{RequestContentLengthMismatchError:Kd,ResponseContentLengthMismatchError:tX,RequestAbortedError:lX,HeadersTimeoutError:KDe,HeadersOverflowError:XDe,SocketError:OA,InformationalError:DA,BodyTimeoutError:ZDe,HTTPParserError:eke,ResponseExceededMaxSizeError:tke}=gt(),{kUrl:uX,kReset:Yi,kClient:SB,kParser:Jt,kBlocking:ME,kRunning:Vr,kPending:hX,kSize:rX,kWriting:yh,kQueue:Ea,kNoRef:DE,kKeepAliveDefaultTimeout:rke,kHostHeader:ske,kPendingIdx:ike,kRunningIdx:Io,kError:pi,kPipelining:xB,kSocket:Zd,kKeepAliveTimeoutValue:RB,kMaxHeadersSize:nk,kKeepAliveMaxTimeout:nke,kKeepAliveTimeoutThreshold:oke,kHeadersTimeout:ake,kBodyTimeout:cke,kStrictContentLength:ck,kMaxRequests:sX,kCounter:lke,kMaxResponseSize:uke,kOnError:iX,kResume:ql,kHTTPContext:dX}=rr(),vn=W9(),nX=Buffer.alloc(0),bB=Buffer[Symbol.species],wB=Qe.addListener,hke=Qe.removeAllListeners,ef=Symbol("kIdleSocketValidation"),Xd=Symbol("kIdleSocketValidationTimeout"),dk=Symbol("kSocketUsed"),ok;async function dke(){let t=process.env.JEST_WORKER_ID?GD():void 0,e;try{e=await WebAssembly.compile(Z9())}catch{e=await WebAssembly.compile(t||GD())}return await WebAssembly.instantiate(e,{env:{wasm_on_url:o((r,s,i)=>0,"wasm_on_url"),wasm_on_status:o((r,s,i)=>{Re(Ar.ptr===r);let n=s-ic+sc.byteOffset;return Ar.onStatus(new bB(sc.buffer,n,i))||0},"wasm_on_status"),wasm_on_message_begin:o(r=>(Re(Ar.ptr===r),Ar.onMessageBegin()||0),"wasm_on_message_begin"),wasm_on_header_field:o((r,s,i)=>{Re(Ar.ptr===r);let n=s-ic+sc.byteOffset;return Ar.onHeaderField(new bB(sc.buffer,n,i))||0},"wasm_on_header_field"),wasm_on_header_value:o((r,s,i)=>{Re(Ar.ptr===r);let n=s-ic+sc.byteOffset;return Ar.onHeaderValue(new bB(sc.buffer,n,i))||0},"wasm_on_header_value"),wasm_on_headers_complete:o((r,s,i,n)=>(Re(Ar.ptr===r),Ar.onHeadersComplete(s,!!i,!!n)||0),"wasm_on_headers_complete"),wasm_on_body:o((r,s,i)=>{Re(Ar.ptr===r);let n=s-ic+sc.byteOffset;return Ar.onBody(new bB(sc.bu
Line truncated
|
||||
`;if(typeof i=="string"?g+=`host: ${i}\r
|
||||
`:g+=t[ske],n?g+=`connection: upgrade\r
|
||||
upgrade: ${n}\r
|
||||
`:t[xB]&&!p[Yi]?g+=`connection: keep-alive\r
|
||||
`);p.push(C,E,f),typeof E.size=="number"?i+=C.byteLength+E.size+f.byteLength:m=!0}let g=_E.encode(`--${l}--\r
|
||||
`);p.push(g),i+=g.byteLength,m&&(i=null),n=t,s=o(async function*(){for(let y of p)y.stream?yield*y.stream():yield y},"action"),a=`multipart/form-data; boundary=${l}`}else if(dH(t))n=t,i=t.size,t.type&&(a=t.type);else if(typeof t[Symbol.asyncIterator]=="function"){if(e)throw new TypeError("keepalive");if(Af.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=t instanceof ReadableStream?t:SAe(t)}if((typeof n=="string"||Af.isBuffer(n))&&(i=Buffer.byteLength(n)),s!=null){let l;r=new ReadableStream({async start(){l=s(t)[Symbol.asyncIterator]()},async pull(u){let{value:d,done:A}=await l.next();if(A)queueMicrotask(()=>{u.close(),u.byobRequest?.respond(0)});else if(!hH(r)){let p=new Uint8Array(d);p.byteLength&&u.enqueue(p)}return u.desiredSize>0},async cancel(u){await l.return()},type:"bytes"})}return[{stream:r,source:n,length:i},a]}o(EH,"extractBody");function LAe(t,e=!1){return t instanceof ReadableStream&&(Dx(!Af.isDisturbed(t),"The body has already been consumed."),Dx(!t.locked,"The stream is locked.")),EH(t,e)}o(LAe,"safelyExtractBody");function FAe(t,e){let[r,s]=e.stream.tee();return e.stream=r,{stream:s,length:e.length,source:e.source}}o(FAe,"cloneBody");function UAe(t){if(t.aborted)throw new DOMException("The operation was aborted.","AbortError")}o(UAe,"throwIfAborted");function qAe(t){return{blob(){return nd(this,r=>{let s=pH(this);return s===null?s="":s&&(s=DAe(s)),new PAe([r],{type:s})},t)},arrayBuffer(){return nd(this,r=>new Uint8Array(r).buffer,t)},text(){return nd(this,fH,t)},json(){return nd(this,HAe,t)},formData(){return nd(this,r=>{let s=pH(this);if(s!==null)switch(s.essence){case"multipart/form-data":{let n=OAe(r,s);if(n==="failure")throw new TypeError("Failed to parse body as FormData.");let i=new AH;return i[id]=n,i}case"application/x-www-form-urlencoded":{let n=new URLSearchParams(r.toString()),i=new AH;for(let[a,c]of n)i.append(a,c);return i}}throw new TypeError('Content-Type was not one of "multipart/form-data" or "application/x-www-form-urlencoded".')},t)},bytes(){return nd(this,r=>new Uint8Array(r),t)}}}o(qAe,"bodyMixinMethods");function GAe(t){Object.assign(t.prototype,qAe(t))}o(GAe,"mixinBody");async function nd(t,e,r){if(vAe.brandCheck(t,r),yH(t))throw new TypeError("Body is unusable: Body has already been read");UAe(t[id]);let s=QAe(),n=o(a=>s.reject(a),"errorSteps"),i=o(a=>{try{s.resolve(e(a))}catch(c){n(c)}},"successSteps");return t[id].body==null?(i(Buffer.allocUnsafe(0)),s.promise):(await RAe(t[id].body,i,n),s.promise)}o(nd,"consumeBody");function yH(t){let e=t[id].body;return e!=null&&(e.stream.locked||Af.isDisturbed(e.stream))}o(yH,"bodyUnusable");function HAe(t){return JSON.parse(fH(t))}o(HAe,"parseJSONFromBytes");function pH(t){let e=t[id].headersList,r=TAe(e);return r==="failure"?null:r}o(pH,"bodyMimeType");CH.exports={extractBody:EH,safelyExtractBody:LAe,cloneBody:FAe,mixinBody:GAe,streamRegistry:gH,hasFinalizationRegistry:mH,bodyUnusable:yH}});var OH=h(($4e,DH)=>{"use strict";var j=require("node:assert"),Z=Ce(),{channels:IH}=Yu(),Mx=Ex(),{RequestContentLengthMismatchError:nl,ResponseContentLengthMismatchError:BH,RequestAbortedError:TH,HeadersTimeoutError:VAe,HeadersOverflowError:zAe,SocketError:ad,InformationalError:cd,BodyTimeoutError:JAe,HTTPParserError:YAe,ResponseExceededMaxSizeError:$Ae}=Te(),{kUrl:vH,kReset:es,kClient:ME,kParser:Xe,kBlocking:hf,kRunning:Ft,kPending:PH,kSize:bH,kWriting:Ha,kQueue:zn,kNoRef:pf,kKeepAliveDefaultTimeout:WAe,kHostHeader:jAe,kPendingIdx:KAe,kRunningIdx:nn,kError:_r,kPipelining:LE,kSocket:ol,kKeepAliveTimeoutValue:UE,kMaxHeadersSize:Lx,kKeepAliveMaxTimeout:XAe,kKeepAliveTimeoutThreshold:ZAe,kHeadersTimeout:epe,kBodyTimeout:tpe,kStrictContentLength:qx,kMaxRequests:wH,kCounter:rpe,kMaxResponseSize:spe,kOnError:SH,kResume:Jo,kHTTPContext:_H}=ot(),Ns=gG(),NH=Buffer.alloc(0),kE=Buffer[Symbol.species],DE=Z.addListener,npe=Z.removeAllListeners,al=Symbol("kIdleSocketValidation"),il=Symbol("kIdleSocketValidationTimeout"),zx=Symbol("kSocketUsed"),Fx;async function ipe(){let t=process.env.JEST_WORKER_ID?Ix():void 0,e;try{e=await WebAssembly.compile(CG())}catch{e=await WebAssembly.compile(t||Ix())}return await WebAssembly.instantiate(e,{env:{wasm_on_url:o((r,s,n)=>0,"wasm_on_url"),wasm_on_status:o((r,s,n)=>{j(Et.ptr===r);let i=s-Ni+Si.byteOffset;return Et.onStatus(new kE(Si.buffer,i,n))||0},"wasm_on_status"),wasm_on_message_begin:o(r=>(j(Et.ptr===r),Et.onMessageBegin()||0),"wasm_on_message_begin"),wasm_on_header_field:o((r,s,n)=>{j(Et.ptr===r);let i=s-Ni+Si.byteOffset;return Et.onHeaderField(new kE(Si.buffer,i,n))||0},"wasm_on_header_field"),wasm_on_header_value:o((r,s,n)=>{j(Et.ptr===r);let i=s-Ni+Si.byteOffset;return Et.onHeaderValue(new kE(Si.buffer,i,n))||0},"wasm_on_header_value"),wasm_on_headers_complete:o((r,s,n,i)=>(j(Et.ptr===r),Et.onHeadersComplete(s,!!n,!!i)||0),"wasm_on_headers_complete"),wasm_on_body:o((r,s,n)=>{j(Et.ptr===r);let i=s-Ni+Si.byteOffset;return Et.onBody(new kE(Si.buffer,i,n))
Line truncated
|
||||
`;if(typeof n=="string"?g+=`host: ${n}\r
|
||||
`:g+=t[jAe],i?g+=`connection: upgrade\r
|
||||
upgrade: ${i}\r
|
||||
`:t[LE]&&!f[es]?g+=`connection: keep-alive\r
|
||||
`:g+=`connection: close\r
|
||||
`,Array.isArray(u))for(let C=0;C<u.length;C+=2){let E=u[C+0],I=u[C+1];if(Array.isArray(I))for(let B=0;B<I.length;B++)g+=`${E}: ${I[B]}\r
|
||||
`;else g+=`${E}: ${I}\r
|
||||
`}return eX.sendHeaders.hasSubscribers&&eX.sendHeaders.publish({request:e,headers:g,socket:p}),!l||f===0?aX(A,null,t,e,p,h,g,d):Qe.isBuffer(l)?aX(A,l,t,e,p,h,g,d):Qe.isBlobLike(l)?typeof l.stream=="function"?cX(A,l.stream(),t,e,p,h,g,d):Cke(A,l,t,e,p,h,g,d):Qe.isStream(l)?Eke(A,l,t,e,p,h,g,d):Qe.isIterable(l)?cX(A,l,t,e,p,h,g,d):Re(!1),!0}o(yke,"writeH1");function Eke(t,e,r,s,i,n,a,c){Re(n!==0||r[Vr]===0,"stream body cannot be pipelined");let l=!1,u=new vB({abort:t,socket:i,request:s,contentLength:n,client:r,expectsPayload:c,header:a}),h=o(function(A){if(!l)try{!u.write(A)&&this.pause&&this.pause()}catch(g){Qe.destroy(this,g)}},"onData"),d=o(function(){l||e.resume&&e.resume()},"onDrain"),f=o(function(){if(queueMicrotask(()=>{e.removeListener("error",p)}),!l){let A=new lX;queueMicrotask(()=>p(A))}},"onClose"),p=o(function(A){if(!l){if(l=!0,Re(i.destroyed||i[yh]&&r[Vr]<=1),i.off("drain",d).off("error",p),e.removeListener("data",h).removeListener("end",p).removeListener("close",f),!A)try{u.end()}catch(g){A=g}u.destroy(A),A&&(A.code!=="UND_ERR_INFO"||A.message!=="reset")?Qe.destroy(e,A):Qe.destroy(e)}},"onFinished");e.on("data",h).on("end",p).on("error",p).on("close",f),e.resume&&e.resume(),i.on("drain",d).on("error",p),e.errorEmitted??e.errored?setImmediate(()=>p(e.errored)):(e.endEmitted??e.readableEnded)&&setImmediate(()=>p(null)),(e.closeEmitted??e.closed)&&setImmediate(f)}o(Eke,"writeStream");function aX(t,e,r,s,i,n,a,c){try{e?Qe.isBuffer(e)&&(Re(n===e.byteLength,"buffer body must have content length"),i.cork(),i.write(`${a}content-length: ${n}\r
|
||||
`,Array.isArray(u))for(let y=0;y<u.length;y+=2){let E=u[y+0],C=u[y+1];if(Array.isArray(C))for(let I=0;I<C.length;I++)g+=`${E}: ${C[I]}\r
|
||||
`;else g+=`${E}: ${C}\r
|
||||
`}return IH.sendHeaders.hasSubscribers&&IH.sendHeaders.publish({request:e,headers:g,socket:f}),!l||p===0?QH(m,null,t,e,f,d,g,A):Z.isBuffer(l)?QH(m,l,t,e,f,d,g,A):Z.isBlobLike(l)?typeof l.stream=="function"?RH(m,l.stream(),t,e,f,d,g,A):ppe(m,l,t,e,f,d,g,A):Z.isStream(l)?Ape(m,l,t,e,f,d,g,A):Z.isIterable(l)?RH(m,l,t,e,f,d,g,A):j(!1),!0}o(dpe,"writeH1");function Ape(t,e,r,s,n,i,a,c){j(i!==0||r[Ft]===0,"stream body cannot be pipelined");let l=!1,u=new qE({abort:t,socket:n,request:s,contentLength:i,client:r,expectsPayload:c,header:a}),d=o(function(m){if(!l)try{!u.write(m)&&this.pause&&this.pause()}catch(g){Z.destroy(this,g)}},"onData"),A=o(function(){l||e.resume&&e.resume()},"onDrain"),p=o(function(){if(queueMicrotask(()=>{e.removeListener("error",f)}),!l){let m=new TH;queueMicrotask(()=>f(m))}},"onClose"),f=o(function(m){if(!l){if(l=!0,j(n.destroyed||n[Ha]&&r[Ft]<=1),n.off("drain",A).off("error",f),e.removeListener("data",d).removeListener("end",f).removeListener("close",p),!m)try{u.end()}catch(g){m=g}u.destroy(m),m&&(m.code!=="UND_ERR_INFO"||m.message!=="reset")?Z.destroy(e,m):Z.destroy(e)}},"onFinished");e.on("data",d).on("end",f).on("error",f).on("close",p),e.resume&&e.resume(),n.on("drain",A).on("error",f),e.errorEmitted??e.errored?setImmediate(()=>f(e.errored)):(e.endEmitted??e.readableEnded)&&setImmediate(()=>f(null)),(e.closeEmitted??e.closed)&&setImmediate(p)}o(Ape,"writeStream");function QH(t,e,r,s,n,i,a,c){try{e?Z.isBuffer(e)&&(j(i===e.byteLength,"buffer body must have content length"),n.cork(),n.write(`${a}content-length: ${i}\r
|
||||
\r
|
||||
`,"latin1"),i.write(e),i.uncork(),s.onBodySent(e),!c&&s.reset!==!1&&(i[Yi]=!0)):n===0?i.write(`${a}content-length: 0\r
|
||||
`,"latin1"),n.write(e),n.uncork(),s.onBodySent(e),!c&&s.reset!==!1&&(n[es]=!0)):i===0?n.write(`${a}content-length: 0\r
|
||||
\r
|
||||
`,"latin1"):(Re(n===null,"no body must not have content length"),i.write(`${a}\r
|
||||
`,"latin1")),s.onRequestSent(),r[ql]()}catch(l){t(l)}}o(aX,"writeBuffer");async function Cke(t,e,r,s,i,n,a,c){Re(n===e.size,"blob body must have content length");try{if(n!=null&&n!==e.size)throw new Kd;let l=Buffer.from(await e.arrayBuffer());i.cork(),i.write(`${a}content-length: ${n}\r
|
||||
`,"latin1"):(j(i===null,"no body must not have content length"),n.write(`${a}\r
|
||||
`,"latin1")),s.onRequestSent(),r[Jo]()}catch(l){t(l)}}o(QH,"writeBuffer");async function ppe(t,e,r,s,n,i,a,c){j(i===e.size,"blob body must have content length");try{if(i!=null&&i!==e.size)throw new nl;let l=Buffer.from(await e.arrayBuffer());n.cork(),n.write(`${a}content-length: ${i}\r
|
||||
\r
|
||||
`,"latin1"),i.write(l),i.uncork(),s.onBodySent(l),s.onRequestSent(),!c&&s.reset!==!1&&(i[Yi]=!0),r[ql]()}catch(l){t(l)}}o(Cke,"writeBlob");async function cX(t,e,r,s,i,n,a,c){Re(n!==0||r[Vr]===0,"iterator body cannot be pipelined");let l=null;function u(){if(l){let f=l;l=null,f()}}o(u,"onDrain");let h=o(()=>new Promise((f,p)=>{Re(l===null),i[pi]?p(i[pi]):l=f}),"waitForDrain");i.on("close",u).on("drain",u);let d=new vB({abort:t,socket:i,request:s,contentLength:n,client:r,expectsPayload:c,header:a});try{for await(let f of e){if(i[pi])throw i[pi];d.write(f)||await h()}d.end()}catch(f){d.destroy(f)}finally{i.off("close",u).off("drain",u)}}o(cX,"writeIterable");var vB=class{static{o(this,"AsyncWriter")}constructor({abort:e,socket:r,request:s,contentLength:i,client:n,expectsPayload:a,header:c}){this.socket=r,this.request=s,this.contentLength=i,this.client=n,this.bytesWritten=0,this.expectsPayload=a,this.header=c,this.abort=e,r[yh]=!0}write(e){let{socket:r,request:s,contentLength:i,client:n,bytesWritten:a,expectsPayload:c,header:l}=this;if(r[pi])throw r[pi];if(r.destroyed)return!1;let u=Buffer.byteLength(e);if(!u)return!0;if(i!==null&&a+u>i){if(n[ck])throw new Kd;process.emitWarning(new Kd)}r.cork(),a===0&&(!c&&s.reset!==!1&&(r[Yi]=!0),i===null?r.write(`${l}transfer-encoding: chunked\r
|
||||
`,"latin1"):r.write(`${l}content-length: ${i}\r
|
||||
`,"latin1"),n.write(l),n.uncork(),s.onBodySent(l),s.onRequestSent(),!c&&s.reset!==!1&&(n[es]=!0),r[Jo]()}catch(l){t(l)}}o(ppe,"writeBlob");async function RH(t,e,r,s,n,i,a,c){j(i!==0||r[Ft]===0,"iterator body cannot be pipelined");let l=null;function u(){if(l){let p=l;l=null,p()}}o(u,"onDrain");let d=o(()=>new Promise((p,f)=>{j(l===null),n[_r]?f(n[_r]):l=p}),"waitForDrain");n.on("close",u).on("drain",u);let A=new qE({abort:t,socket:n,request:s,contentLength:i,client:r,expectsPayload:c,header:a});try{for await(let p of e){if(n[_r])throw n[_r];A.write(p)||await d()}A.end()}catch(p){A.destroy(p)}finally{n.off("close",u).off("drain",u)}}o(RH,"writeIterable");var qE=class{static{o(this,"AsyncWriter")}constructor({abort:e,socket:r,request:s,contentLength:n,client:i,expectsPayload:a,header:c}){this.socket=r,this.request=s,this.contentLength=n,this.client=i,this.bytesWritten=0,this.expectsPayload=a,this.header=c,this.abort=e,r[Ha]=!0}write(e){let{socket:r,request:s,contentLength:n,client:i,bytesWritten:a,expectsPayload:c,header:l}=this;if(r[_r])throw r[_r];if(r.destroyed)return!1;let u=Buffer.byteLength(e);if(!u)return!0;if(n!==null&&a+u>n){if(i[qx])throw new nl;process.emitWarning(new nl)}r.cork(),a===0&&(!c&&s.reset!==!1&&(r[es]=!0),n===null?r.write(`${l}transfer-encoding: chunked\r
|
||||
`,"latin1"):r.write(`${l}content-length: ${n}\r
|
||||
\r
|
||||
`,"latin1")),i===null&&r.write(`\r
|
||||
`,"latin1")),n===null&&r.write(`\r
|
||||
${u.toString(16)}\r
|
||||
`,"latin1"),this.bytesWritten+=u;let h=r.write(e);return r.uncork(),s.onBodySent(e),h||r[Jt].timeout&&r[Jt].timeoutType===kA&&r[Jt].timeout.refresh&&r[Jt].timeout.refresh(),h}end(){let{socket:e,contentLength:r,client:s,bytesWritten:i,expectsPayload:n,header:a,request:c}=this;if(c.onRequestSent(),e[yh]=!1,e[pi])throw e[pi];if(!e.destroyed){if(i===0?n?e.write(`${a}content-length: 0\r
|
||||
`,"latin1"),this.bytesWritten+=u;let d=r.write(e);return r.uncork(),s.onBodySent(e),d||r[Xe].timeout&&r[Xe].timeoutType===ld&&r[Xe].timeout.refresh&&r[Xe].timeout.refresh(),d}end(){let{socket:e,contentLength:r,client:s,bytesWritten:n,expectsPayload:i,header:a,request:c}=this;if(c.onRequestSent(),e[Ha]=!1,e[_r])throw e[_r];if(!e.destroyed){if(n===0?i?e.write(`${a}content-length: 0\r
|
||||
\r
|
||||
`,"latin1"):e.write(`${a}\r
|
||||
`,"latin1"):r===null&&e.write(`\r
|
||||
0\r
|
||||
\r
|
||||
`,"latin1"),r!==null&&i!==r){if(s[ck])throw new Kd;process.emitWarning(new Kd)}e[Jt].timeout&&e[Jt].timeoutType===kA&&e[Jt].timeout.refresh&&e[Jt].timeout.refresh(),s[ql]()}}destroy(e){let{socket:r,client:s,abort:i}=this;r[yh]=!1,e&&(Re(s[Vr]<=1,"pipeline should only contain this request"),i(e))}};pX.exports=pke});var wX=m((zTt,bX)=>{"use strict";var bo=require("node:assert"),{pipeline:Ike}=require("node:stream"),ct=st(),{RequestContentLengthMismatchError:fk,RequestAbortedError:mX,SocketError:LE,InformationalError:pk}=gt(),{kUrl:TB,kReset:QB,kClient:MA,kRunning:PB,kPending:bke,kQueue:Eh,kPendingIdx:Ak,kRunningIdx:Ca,kError:ba,kSocket:fs,kStrictContentLength:wke,kOnError:mk,kMaxConcurrentStreams:IX,kHTTP2Session:Ia,kResume:Ch,kSize:Bke,kHTTPContext:Ske}=rr(),Gl=Symbol("open streams"),gX,yX=!1,_B;try{_B=require("node:http2")}catch{_B={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:xke,HTTP2_HEADER_METHOD:Nke,HTTP2_HEADER_PATH:Rke,HTTP2_HEADER_SCHEME:vke,HTTP2_HEADER_CONTENT_LENGTH:Tke,HTTP2_HEADER_EXPECT:_ke,HTTP2_HEADER_STATUS:Qke}}=_B;function Pke(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}o(Pke,"parseH2Headers");async function Oke(t,e){t[fs]=e,yX||(yX=!0,process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"}));let r=_B.connect(t[TB],{createConnection:o(()=>e,"createConnection"),peerMaxConcurrentStreams:t[IX]});r[Gl]=0,r[MA]=t,r[fs]=e,ct.addListener(r,"error",kke),ct.addListener(r,"frameError",Mke),ct.addListener(r,"end",Lke),ct.addListener(r,"goaway",Fke),ct.addListener(r,"close",function(){let{[MA]:i}=this,{[fs]:n}=i,a=this[fs][ba]||this[ba]||new LE("closed",ct.getSocketInfo(n));if(i[Ia]=null,i.destroyed){bo(i[bke]===0);let c=i[Eh].splice(i[Ca]);for(let l=0;l<c.length;l++){let u=c[l];ct.errorRequest(i,u,a)}}}),r.unref(),t[Ia]=r,e[Ia]=r,ct.addListener(e,"error",function(i){bo(i.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[ba]=i,this[MA][mk](i)}),ct.addListener(e,"end",function(){ct.destroy(this,new LE("other side closed",ct.getSocketInfo(this)))}),ct.addListener(e,"close",function(){let i=this[ba]||new LE("closed",ct.getSocketInfo(this));t[fs]=null,this[Ia]!=null&&this[Ia].destroy(i),t[Ak]=t[Ca],bo(t[PB]===0),t.emit("disconnect",t[TB],[t],i),t[Ch]()});let s=!1;return e.on("close",()=>{s=!0}),{version:"h2",defaultPipelining:1/0,write(...i){return qke(t,...i)},resume(){Dke(t)},destroy(i,n){s?queueMicrotask(n):e.destroy(i).on("close",n)},get destroyed(){return e.destroyed},busy(){return!1}}}o(Oke,"connectH2");function Dke(t){let e=t[fs];e?.destroyed===!1&&(t[Bke]===0&&t[IX]===0?(e.unref(),t[Ia].unref()):(e.ref(),t[Ia].ref()))}o(Dke,"resumeH2");function kke(t){bo(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[fs][ba]=t,this[MA][mk](t)}o(kke,"onHttp2SessionError");function Mke(t,e,r){if(r===0){let s=new pk(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[fs][ba]=s,this[MA][mk](s)}}o(Mke,"onHttp2FrameError");function Lke(){let t=new LE("other side closed",ct.getSocketInfo(this[fs]));this.destroy(t),ct.destroy(this[fs],t)}o(Lke,"onHttp2SessionEnd");function Fke(t){let e=this[ba]||new LE(`HTTP/2: "GOAWAY" frame received with code ${t}`,ct.getSocketInfo(this)),r=this[MA];if(r[fs]=null,r[Ske]=null,this[Ia]!=null&&(this[Ia].destroy(e),this[Ia]=null),ct.destroy(this[fs],e),r[Ca]<r[Eh].length){let s=r[Eh][r[Ca]];r[Eh][r[Ca]++]=null,ct.errorRequest(r,s,e),r[Ak]=r[Ca]}bo(r[PB]===0),r.emit("disconnect",r[TB],[r],e),r[Ch]()}o(Fke,"onHTTP2GoAway");function Uke(t){return t!=="GET"&&t!=="HEAD"&&t!=="OPTIONS"&&t!=="TRACE"&&t!=="CONNECT"}o(Uke,"shouldSendContentLength");function qke(t,e){let r=t[Ia],{method:s,path:i,host:n,upgrade:a,expectContinue:c,signal:l,headers:u}=e,{body:h}=e;if(a)return ct.errorRequest(t,e,new Error("Upgrade not supported for H2")),!1;let d={};for(let x=0;x<u.length;x+=2){let R=u[x+0],D=u[x+1];if(Array.isArray(D))for(let O=0;O<D.length;O++)d[R]?d[R]+=`,${D[O]}`:d[R]=D[O];else d[R]=D}let f,{hostname:p,port:A}=t[TB];d[xke]=n||`${p}${A?`:${A}`:""}`,d[Nke]=s;let g=o(x=>{e.aborted||e.completed||(x=x||new mX,ct.errorRequest(t,e,x),f!=null&&ct.destroy(f,x),ct.destroy(h,x),t[Eh][t[Ca]++]=null,t[Ch]())},"abort");try{e.onConnect(g)}catch(x){ct.errorRequest(t,e,x)}if(e.aborted)return!1;if(s==="CONNECT")return r.ref(),f=r.request(d,{endStream:!1,signal:l}),f.id&&!f.pending?(e.onUpgrade(null,null,f),++r[Gl],t[Eh][t[Ca]++]=null):f.once("ready",()=>{e.onUpgrade(null,null,f),++r[Gl],t[Eh][t[Ca]++]=null}),f.once("close",()=>{r[Gl]-=1,r[Gl]===0&&r.unref()}),!0;d[Rke]=i,d[vke]="https";let C=s==="PUT"||s==="POST"||s==="PATCH";h&&typeof h.read=="function"&&h.read(0);let E=ct.bodyLength(h);if(ct.isFormDataLike(h)){gX??=PA().extractBody;let[x,R]=gX(h);d["content-type"]=R,h=x.stream,E=x.length}if(E==null&&(E=e.contentLength),(E===0||!C)&&(E=null),Uke(s)&&E>0&&e.contentLength!=null&&e.contentLength!==E){if(t[wke])return ct.errorRequest(t,e,
Line truncated
|
||||
`,this[fMe]=l??3e5,this[dMe]=i??3e5,this[pMe]=I??!0,this[AMe]=x,this[Ck]=D,this[bh]=null,this[CMe]=L>-1?L:-1,this[bMe]=U??100,this[Tr]=null,this[wa]=[],this[zl]=0,this[Ba]=0,this[GE]=j=>bk(this,j),this[IMe]=j=>DX(this,j)}get pipelining(){return this[MB]}set pipelining(e){this[MB]=e,this[GE](!0)}get[VE](){return this[wa].length-this[Ba]}get[zE](){return this[Ba]-this[zl]}get[HE](){return this[wa].length-this[zl]}get[nMe](){return!!this[Tr]&&!this[FA]&&!this[Tr].destroyed}get[Ek](){return!!(this[Tr]?.busy(null)||this[HE]>=(OX(this)||1)||this[VE]>0)}[iMe](e){kX(this),this.once("connect",e)}[EMe](e,r){let s=e.origin||this[oc].origin,i=new Xke(s,e,r);return this[wa].push(i),this[rf]||(tf.bodyLength(i.body)==null&&tf.isIterable(i.body)?(this[rf]=1,queueMicrotask(()=>bk(this))):this[GE](!0)),this[rf]&&this[wh]!==2&&this[Ek]&&(this[wh]=2),this[wh]<2}async[gMe](){return new Promise(e=>{this[HE]?this[bh]=e:e(null)})}async[yMe](e){return new Promise(r=>{let s=this[wa].splice(this[Ba]);for(let n=0;n<s.length;n++){let a=s[n];tf.errorRequest(this,a,e)}let i=o(()=>{this[bh]&&(this[bh](),this[bh]=null),r(null)},"callback");this[Tr]?(this[Tr].destroy(e,i),this[Tr]=null):queueMicrotask(i),this[GE]()})}},SMe=kB();function DX(t,e){if(t[zE]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){Hl(t[Ba]===t[zl]);let r=t[wa].splice(t[zl]);for(let s=0;s<r.length;s++){let i=r[s];tf.errorRequest(t,i,e)}Hl(t[HE]===0)}}o(DX,"onError");async function kX(t){Hl(!t[FA]),Hl(!t[Tr]);let{host:e,hostname:r,protocol:s,port:i}=t[oc];if(r[0]==="["){let n=r.indexOf("]");Hl(n!==-1);let a=r.substring(1,n);Hl(PX.isIP(a)),r=a}t[FA]=!0,LA.beforeConnect.hasSubscribers&&LA.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:s,port:i,version:t[Tr]?.version,servername:t[Ih],localAddress:t[qE]},connector:t[UE]});try{let n=await new Promise((a,c)=>{t[UE]({host:e,hostname:r,protocol:s,port:i,servername:t[Ih],localAddress:t[qE]},(l,u)=>{l?c(l):a(u)})});if(t.destroyed){tf.destroy(n.on("error",_X),new tMe);return}Hl(n);try{t[Tr]=n.alpnProtocol==="h2"?await BMe(t,n):await wMe(t,n)}catch(a){throw n.destroy().on("error",_X),a}t[FA]=!1,n[mMe]=0,n[Ck]=t[Ck],n[sMe]=t,n[aMe]=null,LA.connected.hasSubscribers&&LA.connected.publish({connectParams:{host:e,hostname:r,protocol:s,port:i,version:t[Tr]?.version,servername:t[Ih],localAddress:t[qE]},connector:t[UE],socket:n}),t.emit("connect",t[oc],[t])}catch(n){if(t.destroyed)return;if(t[FA]=!1,LA.connectError.hasSubscribers&&LA.connectError.publish({connectParams:{host:e,hostname:r,protocol:s,port:i,version:t[Tr]?.version,servername:t[Ih],localAddress:t[qE]},connector:t[UE],error:n}),n.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(Hl(t[zE]===0);t[VE]>0&&t[wa][t[Ba]].servername===t[Ih];){let a=t[wa][t[Ba]++];tf.errorRequest(t,a,n)}else DX(t,n);t.emit("connectionError",t[oc],[t],n)}t[GE]()}o(kX,"connect");function QX(t){t[wh]=0,t.emit("drain",t[oc],[t])}o(QX,"emitDrain");function bk(t,e){t[rf]!==2&&(t[rf]=2,xMe(t,e),t[rf]=0,t[zl]>256&&(t[wa].splice(0,t[zl]),t[Ba]-=t[zl],t[zl]=0))}o(bk,"resume");function xMe(t,e){for(;;){if(t.destroyed){Hl(t[VE]===0);return}if(t[bh]&&!t[HE]){t[bh](),t[bh]=null;return}if(t[Tr]&&t[Tr].resume(),t[Ek])t[wh]=2;else if(t[wh]===2){e?(t[wh]=1,queueMicrotask(()=>QX(t))):QX(t);continue}if(t[VE]===0||t[zE]>=(OX(t)||1))return;let r=t[wa][t[Ba]];if(t[oc].protocol==="https:"&&t[Ih]!==r.servername){if(t[zE]>0)return;t[Ih]=r.servername,t[Tr]?.destroy(new eMe("servername changed"),()=>{t[Tr]=null,bk(t)})}if(t[FA])return;if(!t[Tr]){kX(t);return}if(t[Tr].destroyed||t[Tr].busy(r))return;!r.aborted&&t[Tr].write(r)?t[Ba]++:t[wa].splice(t[Ba],1)}}o(xMe,"_resume");MX.exports=Ik});var wk=m((ZTt,LX)=>{"use strict";var LB=class{static{o(this,"FixedCircularBuffer")}constructor(){this.bottom=0,this.top=0,this.list=new Array(2048),this.next=null}isEmpty(){return this.top===this.bottom}isFull(){return(this.top+1&2047)===this.bottom}push(e){this.list[this.top]=e,this.top=this.top+1&2047}shift(){let e=this.list[this.bottom];return e===void 0?null:(this.list[this.bottom]=void 0,this.bottom=this.bottom+1&2047,e)}};LX.exports=class{static{o(this,"FixedQueue")}constructor(){this.head=this.tail=new LB}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new LB),this.head.push(e)}shift(){let e=this.tail,r=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next),r}}});var UX=m((t_t,FX)=>{var{kFree:NMe,kConnected:RMe,kPending:vMe,kQueued:TMe,kRunning:_Me,kSize:QMe}=rr(),sf=Symbol("pool"),Bk=class{static{o(this,"PoolStats")}constructor(e){this[sf]=e}get connected(){return this[sf][RMe]}get free(){return this[sf][NMe]}get pending(){return this[sf][vMe]}get queued(){return this[sf][TMe]}get running(){return this[sf][_Me]}get size(){return this[sf][QMe]}};FX.exports=Bk});var Tk=m((s_t,WX)=>{"use strict";var PMe=BA(),OMe=wk(),{kConnected:Sk,kSize:qX,kRunning:GX,kPending:HX,kQueued:$E,kBusy:DMe,kFree:kMe,kUrl:MMe,kClose:LMe,kDestroy:FMe,kDispatch:UMe}=rr(),qMe=UX(),Wi=Symbol("clients")
Line truncated
|
||||
`,"latin1"),r!==null&&n!==r){if(s[qx])throw new nl;process.emitWarning(new nl)}e[Xe].timeout&&e[Xe].timeoutType===ld&&e[Xe].timeout.refresh&&e[Xe].timeout.refresh(),s[Jo]()}}destroy(e){let{socket:r,client:s,abort:n}=this;r[Ha]=!1,e&&(j(s[Ft]<=1,"pipeline should only contain this request"),n(e))}};DH.exports=ape});var VH=h((j4e,HH)=>{"use strict";var on=require("node:assert"),{pipeline:fpe}=require("node:stream"),be=Ce(),{RequestContentLengthMismatchError:Jx,RequestAbortedError:MH,SocketError:mf,InformationalError:Yx}=Te(),{kUrl:GE,kReset:VE,kClient:ud,kRunning:zE,kPending:hpe,kQueue:Va,kPendingIdx:$x,kRunningIdx:Jn,kError:$n,kSocket:nr,kStrictContentLength:mpe,kOnError:Wx,kMaxConcurrentStreams:GH,kHTTP2Session:Yn,kResume:za,kSize:gpe,kHTTPContext:Epe}=ot(),Yo=Symbol("open streams"),LH,FH=!1,HE;try{HE=require("node:http2")}catch{HE={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:ype,HTTP2_HEADER_METHOD:Cpe,HTTP2_HEADER_PATH:Ipe,HTTP2_HEADER_SCHEME:Bpe,HTTP2_HEADER_CONTENT_LENGTH:bpe,HTTP2_HEADER_EXPECT:wpe,HTTP2_HEADER_STATUS:Spe}}=HE;function Npe(t){let e=[];for(let[r,s]of Object.entries(t))if(Array.isArray(s))for(let n of s)e.push(Buffer.from(r),Buffer.from(n));else e.push(Buffer.from(r),Buffer.from(s));return e}o(Npe,"parseH2Headers");async function xpe(t,e){t[nr]=e,FH||(FH=!0,process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"}));let r=HE.connect(t[GE],{createConnection:o(()=>e,"createConnection"),peerMaxConcurrentStreams:t[GH]});r[Yo]=0,r[ud]=t,r[nr]=e,be.addListener(r,"error",Rpe),be.addListener(r,"frameError",Tpe),be.addListener(r,"end",vpe),be.addListener(r,"goaway",Ppe),be.addListener(r,"close",function(){let{[ud]:n}=this,{[nr]:i}=n,a=this[nr][$n]||this[$n]||new mf("closed",be.getSocketInfo(i));if(n[Yn]=null,n.destroyed){on(n[hpe]===0);let c=n[Va].splice(n[Jn]);for(let l=0;l<c.length;l++){let u=c[l];be.errorRequest(n,u,a)}}}),r.unref(),t[Yn]=r,e[Yn]=r,be.addListener(e,"error",function(n){on(n.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[$n]=n,this[ud][Wx](n)}),be.addListener(e,"end",function(){be.destroy(this,new mf("other side closed",be.getSocketInfo(this)))}),be.addListener(e,"close",function(){let n=this[$n]||new mf("closed",be.getSocketInfo(this));t[nr]=null,this[Yn]!=null&&this[Yn].destroy(n),t[$x]=t[Jn],on(t[zE]===0),t.emit("disconnect",t[GE],[t],n),t[za]()});let s=!1;return e.on("close",()=>{s=!0}),{version:"h2",defaultPipelining:1/0,write(...n){return kpe(t,...n)},resume(){Qpe(t)},destroy(n,i){s?queueMicrotask(i):e.destroy(n).on("close",i)},get destroyed(){return e.destroyed},busy(){return!1}}}o(xpe,"connectH2");function Qpe(t){let e=t[nr];e?.destroyed===!1&&(t[gpe]===0&&t[GH]===0?(e.unref(),t[Yn].unref()):(e.ref(),t[Yn].ref()))}o(Qpe,"resumeH2");function Rpe(t){on(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[nr][$n]=t,this[ud][Wx](t)}o(Rpe,"onHttp2SessionError");function Tpe(t,e,r){if(r===0){let s=new Yx(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[nr][$n]=s,this[ud][Wx](s)}}o(Tpe,"onHttp2FrameError");function vpe(){let t=new mf("other side closed",be.getSocketInfo(this[nr]));this.destroy(t),be.destroy(this[nr],t)}o(vpe,"onHttp2SessionEnd");function Ppe(t){let e=this[$n]||new mf(`HTTP/2: "GOAWAY" frame received with code ${t}`,be.getSocketInfo(this)),r=this[ud];if(r[nr]=null,r[Epe]=null,this[Yn]!=null&&(this[Yn].destroy(e),this[Yn]=null),be.destroy(this[nr],e),r[Jn]<r[Va].length){let s=r[Va][r[Jn]];r[Va][r[Jn]++]=null,be.errorRequest(r,s,e),r[$x]=r[Jn]}on(r[zE]===0),r.emit("disconnect",r[GE],[r],e),r[za]()}o(Ppe,"onHTTP2GoAway");function _pe(t){return t!=="GET"&&t!=="HEAD"&&t!=="OPTIONS"&&t!=="TRACE"&&t!=="CONNECT"}o(_pe,"shouldSendContentLength");function kpe(t,e){let r=t[Yn],{method:s,path:n,host:i,upgrade:a,expectContinue:c,signal:l,headers:u}=e,{body:d}=e;if(a)return be.errorRequest(t,e,new Error("Upgrade not supported for H2")),!1;let A={};for(let B=0;B<u.length;B+=2){let N=u[B+0],Q=u[B+1];if(Array.isArray(Q))for(let D=0;D<Q.length;D++)A[N]?A[N]+=`,${Q[D]}`:A[N]=Q[D];else A[N]=Q}let p,{hostname:f,port:m}=t[GE];A[ype]=i||`${f}${m?`:${m}`:""}`,A[Cpe]=s;let g=o(B=>{e.aborted||e.completed||(B=B||new MH,be.errorRequest(t,e,B),p!=null&&be.destroy(p,B),be.destroy(d,B),t[Va][t[Jn]++]=null,t[za]())},"abort");try{e.onConnect(g)}catch(B){be.errorRequest(t,e,B)}if(e.aborted)return!1;if(s==="CONNECT")return r.ref(),p=r.request(A,{endStream:!1,signal:l}),p.id&&!p.pending?(e.onUpgrade(null,null,p),++r[Yo],t[Va][t[Jn]++]=null):p.once("ready",()=>{e.onUpgrade(null,null,p),++r[Yo],t[Va][t[Jn]++]=null}),p.once("close",()=>{r[Yo]-=1,r[Yo]===0&&r.unref()}),!0;A[Ipe]=n,A[Bpe]="https";let y=s==="PUT"||s==="POST"||s==="PATCH";d&&typeof d.read=="function"&&d.read(0);let E=be.bodyLength(d);if(be.isFormDataLike(d)){LH??=od().extractBody;let[B,N]=LH(d);A["content-type"]=N,d=B.stream,E=B.length}if(E==null&&(E=e.contentLength),(E===0||!y)&&(E=null),_pe(s)&&E>0&&e.contentLength!=null&&e.contentLength!==E){if(t[mpe])return be.errorRequest(t,e,n
Line truncated
|
||||
`,this[ofe]=l??3e5,this[ife]=n??3e5,this[afe]=C??!0,this[cfe]=B,this[Zx]=Q,this[Ya]=null,this[pfe]=le>-1?le:-1,this[hfe]=Oe??100,this[Rt]=null,this[Wn]=[],this[Wo]=0,this[jn]=0,this[Cf]=ue=>tQ(this,ue),this[ffe]=ue=>rV(this,ue)}get pipelining(){return this[WE]}set pipelining(e){this[WE]=e,this[Cf](!0)}get[bf](){return this[Wn].length-this[jn]}get[Bf](){return this[jn]-this[Wo]}get[If](){return this[Wn].length-this[Wo]}get[Xpe](){return!!this[Rt]&&!this[Ad]&&!this[Rt].destroyed}get[Xx](){return!!(this[Rt]?.busy(null)||this[If]>=(tV(this)||1)||this[bf]>0)}[Kpe](e){sV(this),this.once("connect",e)}[Afe](e,r){let s=e.origin||this[Qi].origin,n=new zpe(s,e,r);return this[Wn].push(n),this[ll]||(cl.bodyLength(n.body)==null&&cl.isIterable(n.body)?(this[ll]=1,queueMicrotask(()=>tQ(this))):this[Cf](!0)),this[ll]&&this[$a]!==2&&this[Xx]&&(this[$a]=2),this[$a]<2}async[ufe](){return new Promise(e=>{this[If]?this[Ya]=e:e(null)})}async[dfe](e){return new Promise(r=>{let s=this[Wn].splice(this[jn]);for(let i=0;i<s.length;i++){let a=s[i];cl.errorRequest(this,a,e)}let n=o(()=>{this[Ya]&&(this[Ya](),this[Ya]=null),r(null)},"callback");this[Rt]?(this[Rt].destroy(e,n),this[Rt]=null):queueMicrotask(n),this[Cf]()})}},Efe=$E();function rV(t,e){if(t[Bf]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){$o(t[jn]===t[Wo]);let r=t[Wn].splice(t[Wo]);for(let s=0;s<r.length;s++){let n=r[s];cl.errorRequest(t,n,e)}$o(t[If]===0)}}o(rV,"onError");async function sV(t){$o(!t[Ad]),$o(!t[Rt]);let{host:e,hostname:r,protocol:s,port:n}=t[Qi];if(r[0]==="["){let i=r.indexOf("]");$o(i!==-1);let a=r.substring(1,i);$o(eV.isIP(a)),r=a}t[Ad]=!0,dd.beforeConnect.hasSubscribers&&dd.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:s,port:n,version:t[Rt]?.version,servername:t[Ja],localAddress:t[yf]},connector:t[Ef]});try{let i=await new Promise((a,c)=>{t[Ef]({host:e,hostname:r,protocol:s,port:n,servername:t[Ja],localAddress:t[yf]},(l,u)=>{l?c(l):a(u)})});if(t.destroyed){cl.destroy(i.on("error",XH),new $pe);return}$o(i);try{t[Rt]=i.alpnProtocol==="h2"?await gfe(t,i):await mfe(t,i)}catch(a){throw i.destroy().on("error",XH),a}t[Ad]=!1,i[lfe]=0,i[Zx]=t[Zx],i[jpe]=t,i[efe]=null,dd.connected.hasSubscribers&&dd.connected.publish({connectParams:{host:e,hostname:r,protocol:s,port:n,version:t[Rt]?.version,servername:t[Ja],localAddress:t[yf]},connector:t[Ef],socket:i}),t.emit("connect",t[Qi],[t])}catch(i){if(t.destroyed)return;if(t[Ad]=!1,dd.connectError.hasSubscribers&&dd.connectError.publish({connectParams:{host:e,hostname:r,protocol:s,port:n,version:t[Rt]?.version,servername:t[Ja],localAddress:t[yf]},connector:t[Ef],error:i}),i.code==="ERR_TLS_CERT_ALTNAME_INVALID")for($o(t[Bf]===0);t[bf]>0&&t[Wn][t[jn]].servername===t[Ja];){let a=t[Wn][t[jn]++];cl.errorRequest(t,a,i)}else rV(t,i);t.emit("connectionError",t[Qi],[t],i)}t[Cf]()}o(sV,"connect");function ZH(t){t[$a]=0,t.emit("drain",t[Qi],[t])}o(ZH,"emitDrain");function tQ(t,e){t[ll]!==2&&(t[ll]=2,yfe(t,e),t[ll]=0,t[Wo]>256&&(t[Wn].splice(0,t[Wo]),t[jn]-=t[Wo],t[Wo]=0))}o(tQ,"resume");function yfe(t,e){for(;;){if(t.destroyed){$o(t[bf]===0);return}if(t[Ya]&&!t[If]){t[Ya](),t[Ya]=null;return}if(t[Rt]&&t[Rt].resume(),t[Xx])t[$a]=2;else if(t[$a]===2){e?(t[$a]=1,queueMicrotask(()=>ZH(t))):ZH(t);continue}if(t[bf]===0||t[Bf]>=(tV(t)||1))return;let r=t[Wn][t[jn]];if(t[Qi].protocol==="https:"&&t[Ja]!==r.servername){if(t[Bf]>0)return;t[Ja]=r.servername,t[Rt]?.destroy(new Ype("servername changed"),()=>{t[Rt]=null,tQ(t)})}if(t[Ad])return;if(!t[Rt]){sV(t);return}if(t[Rt].destroyed||t[Rt].busy(r))return;!r.aborted&&t[Rt].write(r)?t[jn]++:t[Wn].splice(t[jn],1)}}o(yfe,"_resume");nV.exports=eQ});var rQ=h((i5e,iV)=>{"use strict";var jE=class{static{o(this,"FixedCircularBuffer")}constructor(){this.bottom=0,this.top=0,this.list=new Array(2048),this.next=null}isEmpty(){return this.top===this.bottom}isFull(){return(this.top+1&2047)===this.bottom}push(e){this.list[this.top]=e,this.top=this.top+1&2047}shift(){let e=this.list[this.bottom];return e===void 0?null:(this.list[this.bottom]=void 0,this.bottom=this.bottom+1&2047,e)}};iV.exports=class{static{o(this,"FixedQueue")}constructor(){this.head=this.tail=new jE}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new jE),this.head.push(e)}shift(){let e=this.tail,r=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next),r}}});var aV=h((a5e,oV)=>{var{kFree:Cfe,kConnected:Ife,kPending:Bfe,kQueued:bfe,kRunning:wfe,kSize:Sfe}=ot(),ul=Symbol("pool"),sQ=class{static{o(this,"PoolStats")}constructor(e){this[ul]=e}get connected(){return this[ul][Ife]}get free(){return this[ul][Cfe]}get pending(){return this[ul][Bfe]}get queued(){return this[ul][bfe]}get running(){return this[ul][wfe]}get size(){return this[ul][Sfe]}};oV.exports=sQ});var lQ=h((l5e,gV)=>{"use strict";var Nfe=Ku(),xfe=rQ(),{kConnected:nQ,kSize:cV,kRunning:lV,kPending:uV,kQueued:wf,kBusy:Qfe,kFree:Rfe,kUrl:Tfe,kClose:vfe,kDestroy:Pfe,kDispatch:_fe}=ot(),kfe=aV(),ts=Symbol("cl
Line truncated
|
||||
${s.count} ${s.noun} ${s.is} pending:
|
||||
|
||||
${e.format(r)}
|
||||
`.trim())}};ree.exports=TM});var rS=m((tQt,aee)=>{"use strict";var iee=Symbol.for("undici.globalDispatcher.1"),{InvalidArgumentError:fFe}=gt(),pFe=GA();oee()===void 0&&nee(new pFe);function nee(t){if(!t||typeof t.dispatch!="function")throw new fFe("Argument agent must implement Agent");Object.defineProperty(globalThis,iee,{value:t,writable:!0,enumerable:!1,configurable:!1})}o(nee,"setGlobalDispatcher");function oee(){return globalThis[iee]}o(oee,"getGlobalDispatcher");aee.exports={setGlobalDispatcher:nee,getGlobalDispatcher:oee}});var sS=m((iQt,cee)=>{"use strict";cee.exports=class{static{o(this,"DecoratorHandler")}#e;constructor(e){if(typeof e!="object"||e===null)throw new TypeError("handler must be an object");this.#e=e}onConnect(...e){return this.#e.onConnect?.(...e)}onError(...e){return this.#e.onError?.(...e)}onUpgrade(...e){return this.#e.onUpgrade?.(...e)}onResponseStarted(...e){return this.#e.onResponseStarted?.(...e)}onHeaders(...e){return this.#e.onHeaders?.(...e)}onData(...e){return this.#e.onData?.(...e)}onComplete(...e){return this.#e.onComplete?.(...e)}onBodySent(...e){return this.#e.onBodySent?.(...e)}}});var uee=m((oQt,lee)=>{"use strict";var AFe=DB();lee.exports=t=>{let e=t?.maxRedirections;return r=>o(function(i,n){let{maxRedirections:a=e,...c}=i;if(!a)return r(i,n);let l=new AFe(r,a,i,n);return r(c,l)},"redirectInterceptor")}});var dee=m((cQt,hee)=>{"use strict";var mFe=$B();hee.exports=t=>e=>o(function(s,i){return e(s,new mFe({...s,retryOptions:{...t,...s.retryOptions}},{handler:i,dispatch:e}))},"retryInterceptor")});var pee=m((uQt,fee)=>{"use strict";var gFe=st(),{InvalidArgumentError:yFe,RequestAbortedError:EFe}=gt(),CFe=sS(),_M=class extends CFe{static{o(this,"DumpHandler")}#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 yFe("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 a=gFe.parseHeaders(r)["content-length"];if(a!=null&&a>this.#e)throw new EFe(`Response size (${a}) 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 IFe({maxSize:t}={maxSize:1024*1024}){return e=>o(function(s,i){let{dumpMaxSize:n=t}=s,a=new _M({maxSize:n},i);return e(s,a)},"Intercept")}o(IFe,"createDumpInterceptor");fee.exports=IFe});var gee=m((dQt,mee)=>{"use strict";var{isIP:bFe}=require("node:net"),{lookup:wFe}=require("node:dns"),BFe=sS(),{InvalidArgumentError:XA,InformationalError:SFe}=gt(),Aee=Math.pow(2,31)-1,QM=class{static{o(this,"DNSInstance")}#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,(a,c)=>{if(a||c==null||c.length===0){s(a??new SFe("No DNS entries found"));return}this.setRecords(e,c);let l=this.#s.get(e.hostname),u=this.pick(e,l,n.affinity),h;typeof u.port=="number"?h=`:${u.port}`:e.port!==""?h=`:${e.port}`:h="",s(null,`${e.protocol}//${u.family===6?`[${u.address}]`:u.address}${h}`)});else{let a=this.pick(e,i,n.affinity);if(a==null){this.#s.delete(e.hostname),this.runLookup(e,r,s);return}let c;typeof a.port=="number"?c=`:${a.port}`:e.port!==""?c=`:${e.port}`:c="",s(null,`${e.protocol}//${a.family===6?`[${a.address}]`:a.address}${c}`)}}#r(e,r,s){wFe(e.hostname,{all:!0,family:this.dualStack===!1?this.affinity:0,order:"ipv4first"},(i,n)=>{if(i)return s(i);let a=new Map;for(let c of n)a.set(`${c.address}:${c.family}`,c);s(null,a.values())})}#i(e,r,s){let i=null,{records:n,offset:a}=r,c;if(this.dualStack?(s==null&&(a==null||a===Aee?(r.offset=0,s=4):(r.offset++,s=(r.offset&1)===1?6:4)),n[s]!=null&&n[s].ips.length>0?c=n[s]:c=n[s===4?6:4]):c=n[s],c==null||c.ips.length===0)return i;c.offset==null||c.offset===Aee?c.offset=0:c.offset++;let l=c.offset%c.ips.length;return i=c.ips[l]??null,i==null?i:Date.now()-i.timestamp>i.ttl?(c.ips.splice(l,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 a=i.records[n.family]??{ips:[]};a.ips.push(n),i.records[n.family]=a}this.#s.set(e.hostname,i)}getHandler(e,r){return new PM(this,e,r)}},PM=class extends BFe{static{o(this,"DNSDispatchHan
Line truncated
|
||||
${n}`;break;case"retry":Wre(n)&&(r[i]=n);break;case"id":Kre(n)&&(r[i]=n);break;case"event":n.length>0&&(r[i]=n);break}}processEvent(e){e.retry&&Wre(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id&&Kre(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}}};Xre.exports={EventSourceStream:CL}});var ase=m((A1t,ose)=>{"use strict";var{pipeline:PHe}=require("node:stream"),{fetching:OHe}=oC(),{makeRequest:DHe}=tm(),{webidl:Yl}=Ms(),{EventSourceStream:kHe}=Zre(),{parseMIMEType:MHe}=Ji(),{createFastMessageEvent:LHe}=am(),{isNetworkError:ese}=iC(),{delay:FHe}=yL(),{kEnumerableProperty:Ef}=st(),{environmentSettingsObject:tse}=Rn(),rse=!1,sse=3e3,CC=0,ise=1,IC=2,UHe="anonymous",qHe="use-credentials",dm=class t extends EventTarget{static{o(this,"EventSource")}#e={open:null,error:null,message:null};#t=null;#s=!1;#r=CC;#i=null;#n=null;#u;#l;constructor(e,r={}){super(),Yl.util.markAsUncloneable(this);let s="EventSource constructor";Yl.argumentLengthCheck(arguments,1,s),rse||(rse=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=Yl.converters.USVString(e,s,"url"),r=Yl.converters.EventSourceInitDict(r,s,"eventSourceInitDict"),this.#u=r.dispatcher,this.#l={lastEventId:"",reconnectionTime:sse};let i=tse,n;try{n=new URL(e,i.settingsObject.baseUrl),this.#l.origin=n.origin}catch(l){throw new DOMException(l,"SyntaxError")}this.#t=n.href;let a=UHe;r.withCredentials&&(a=qHe,this.#s=!0);let c={redirect:"follow",keepalive:!0,mode:"cors",credentials:a==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};c.client=tse.settingsObject,c.headersList=[["accept",{name:"accept",value:"text/event-stream"}]],c.cache="no-store",c.initiator="other",c.urlList=[new URL(this.#t)],this.#i=DHe(c),this.#a()}get readyState(){return this.#r}get url(){return this.#t}get withCredentials(){return this.#s}#a(){if(this.#r===IC)return;this.#r=CC;let e={request:this.#i,dispatcher:this.#u},r=o(s=>{ese(s)&&(this.dispatchEvent(new Event("error")),this.close()),this.#d()},"processEventSourceEndOfBody");e.processResponseEndOfBody=r,e.processResponse=s=>{if(ese(s))if(s.aborted){this.close(),this.dispatchEvent(new Event("error"));return}else{this.#d();return}let i=s.headersList.get("content-type",!0),n=i!==null?MHe(i):"failure",a=n!=="failure"&&n.essence==="text/event-stream";if(s.status!==200||a===!1){this.close(),this.dispatchEvent(new Event("error"));return}this.#r=ise,this.dispatchEvent(new Event("open")),this.#l.origin=s.urlList[s.urlList.length-1].origin;let c=new kHe({eventSourceSettings:this.#l,push:o(l=>{this.dispatchEvent(LHe(l.type,l.options))},"push")});PHe(s.body.stream,c,l=>{l?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#n=OHe(e)}async#d(){this.#r!==IC&&(this.#r=CC,this.dispatchEvent(new Event("error")),await FHe(this.#l.reconnectionTime),this.#r===CC&&(this.#l.lastEventId.length&&this.#i.headersList.set("last-event-id",this.#l.lastEventId,!0),this.#a()))}close(){Yl.brandCheck(this,t),this.#r!==IC&&(this.#r=IC,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}},nse={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:CC,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:ise,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:IC,writable:!1}};Object.defineProperties(dm,nse);Object.defineProperties(dm.prototype,nse);Object.defineProperties(dm.prototype,{close:Ef,onerror:Ef,onmessage:Ef,onopen:Ef,readyState:Ef,url:Ef,withCredentials:Ef});Yl.converters.EventSourceInitDict=Yl.dictionaryConverter([{key:"withCredentials",converter:Yl.converters.boolean,defaultValue:o(()=>!1,"defaultValue")},{key:"dispatcher",converter:Yl.converters.any}]);ose.exports={EventSource:dm,defaultReconnectionTime:sse}});var pm=m((g1t,ke)=>{"use strict";var GHe=UA(),cse=BE(),HHe=qA(),zHe=nZ(),VHe=GA(),$He=Hk(),jHe=vZ(),JHe=DZ(),lse=gt(),zS=st(),{InvalidArgumentError:HS}=lse,fm=I7(),YHe=xE(),WHe=BM(),KHe=see(),XHe=NM(),ZHe=hM(),e4e=$B(),{getGlobalDispatcher:use,setGlobalDispatcher:t4e}=rS(),r4e=sS(),s4e=DB(),i4e=kB();Object.assign(cse.prototype,fm);ke.exports.Dispatcher=cse;ke.exports.Client=GHe;ke.exports.Pool=HHe;ke.exports.BalancedPool=zH
Line truncated
|
||||
%s`,R,R,I,s);var D=I.type==="*"?w2:I.type==="?"?b2:"\\"+I.type;i=!0,s=s.slice(0,I.reStart)+D+"\\("+R}A(),n&&(s+="\\\\");var O=!1;switch(s.charAt(0)){case"[":case".":case"(":O=!0}for(var L=c.length-1;L>-1;L--){var z=c[L],Z=s.slice(0,z.reStart),U=s.slice(z.reStart,z.reEnd-8),q=s.slice(z.reEnd-8,z.reEnd),H=s.slice(z.reEnd);q+=H;var j=Z.split("(").length-1,se=H;for(g=0;g<j;g++)se=se.replace(/\)[+*?]?/,"");H=se;var _e="";H===""&&e!==Ax&&(_e="$");var we=Z+U+H+_e+q;s=we}if(s!==""&&i&&(s="(?=.)"+s),O&&(s=f+s),e===Ax)return[s,i];if(!i)return b3e(t);var le=r.nocase?"i":"";try{var at=new RegExp("^"+s+"$",le)}catch{return new RegExp("$.")}return at._glob=t,at._src=s,at}o(C3e,"parse");qn.makeRe=function(t,e){return new Jr(t,e||{}).makeRe()};Jr.prototype.makeRe=I3e;function I3e(){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?w2:e.dot?f3e:p3e,s=e.nocase?"i":"",i=t.map(function(n){return n.map(function(a){return a===Sf?r:typeof a=="string"?w3e(a):a._src}).join("\\/")}).join("|");i="^(?:"+i+")$",this.negate&&(i="^(?!"+i+").*$");try{this.regexp=new RegExp(i,s)}catch{this.regexp=!1}return this.regexp}o(I3e,"makeRe");qn.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=o(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;HC.sep!=="/"&&(e=e.split(HC.sep).join("/")),e=e.split(poe),this.debug(this.pattern,"split",e);var i=this.set;this.debug(this.pattern,"set",i);var n,a;for(a=e.length-1;a>=0&&(n=e[a],!n);a--);for(a=0;a<i.length;a++){var c=i[a],l=e;s.matchBase&&c.length===1&&(l=[n]);var u=this.matchOne(l,c,r);if(u)return s.flipNegate?!0:!this.negate}return s.flipNegate?!1:this.negate},"match");Jr.prototype.matchOne=function(t,e,r){return e.indexOf(Sf)!==-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,a=-1;for(n=i;n<e.length;n++)if(e[n]===Sf){a=n;break}var c=-1;for(n=e.length-1;n>=0;n--)if(e[n]===Sf){c=n;break}var l=e.slice(i,a),u=r?e.slice(a+1):e.slice(a+1,c),h=r?[]:e.slice(c+1);if(l.length){var d=t.slice(s,s+l.length);if(!this._matchOne(d,l,r,0,0))return!1;s+=l.length}var f=0;if(h.length){if(h.length+s>t.length)return!1;var p=t.length-h.length;if(this._matchOne(t,h,r,p,0))f=h.length;else{if(t[t.length-1]!==""||s+h.length===t.length||(p--,!this._matchOne(t,h,r,p,0)))return!1;f=h.length+1}}if(!u.length){var A=!!f;for(n=s;n<t.length-f;n++){var g=String(t[n]);if(A=!0,g==="."||g===".."||!this.options.dot&&g.charAt(0)===".")return!1}return r||A}for(var C=[[[],0]],E=C[0],I=0,B=[0],x=0;x<u.length;x++){var R=u[x];R===Sf?(B.push(I),E=[[],0],C.push(E)):(E[0].push(R),I++)}for(var D=C.length-1,O=t.length-f,L=0;L<C.length;L++)C[L][1]=O-(B[D--]+C[L][0].length);return!!this._matchGlobStarBodySections(t,C,s,0,r,0,!!f)};Jr.prototype._matchGlobStarBodySections=function(t,e,r,s,i,n,a){var c=e[s];if(!c){for(var l=r;l<t.length;l++){a=!0;var u=t[l];if(u==="."||u===".."||!this.options.dot&&u.charAt(0)===".")return!1}return a}for(var h=c[0],d=c[1];r<=d;){var f=this._matchOne(t.slice(0,r+h.length),h,i,r,0);if(f&&n<this.maxGlobstarRecursion){var p=this._matchGlobStarBodySections(t,e,r+h.length,s+1,i,n+1,a);if(p!==!1)return p}var u=t[r];if(u==="."||u===".."||!this.options.dot&&u.charAt(0)===".")return!1;r++}return i||null};Jr.prototype._matchOne=function(t,e,r,s,i){var n,a,c,l;for(n=s,a=i,c=t.length,l=e.length;n<c&&a<l;n++,a++){this.debug("matchOne loop");var u=e[a],h=t[n];if(this.debug(e,u,h),u===!1||u===Sf)return!1;var d;if(typeof u=="string"?(d=h===u,this.debug("string match",u,h,d)):(d=h.match(u),this.debug("pattern match",u,h,d)),!d)return!1}if(n===c&&a===l)return!0;if(n===c)return r;if(a===l)return n===c-1&&t[n]==="";throw new Error("wtf?")};function b3e(t){return t.replace(/\\(.)/g,"$1")}o(b3e,"globUnescape");function w3e(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}o(w3e,"regExpEscape")});var $C=m((jkt,Ioe)=>{"use strict";var _3e="2.0.0",Q3e=Number.MAX_SAFE_INTEGER||9007199254740991,P3e=16,O3e=250,D3e=["major","premajor","minor","preminor","patch","prepatch","prerelease"];Ioe.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:P3e,MAX_SAFE_BUILD_LENGTH:O3e,MAX_SAFE_INTEGER:Q3e,RELEASE_TYPES:D3e,SEMVER_SPEC_VERSION:_3e,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var jC=m((Jkt,boe)=>{"use strict";var k3e=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};boe.exports=k3e});var Sm=m((Ac,woe)=>{"use strict";var{MAX_SAFE_COMPONENT_LENGTH:S2,MAX_SAFE_BUILD_LENGTH:M3e,MAX_LENGTH:L3e}=$C(),F3e=jC();Ac=woe.exports={};var U3e=Ac.re=[],q3e=Ac.safeRe=[],fe=Ac.src=[],G3e=Ac.safeSrc=[],pe=Ac.t={},H3e=0,x2="[a-zA-Z0-9-]",z3e=[["\\s",1],["\\d",L3e],[x2,M3e]],V3e=o
Line truncated
|
||||
`.trim())}};bJ.exports=lR});var fy=h((a8e,QJ)=>{"use strict";var SJ=Symbol.for("undici.globalDispatcher.1"),{InvalidArgumentError:oge}=Te(),age=hd();xJ()===void 0&&NJ(new age);function NJ(t){if(!t||typeof t.dispatch!="function")throw new oge("Argument agent must implement Agent");Object.defineProperty(globalThis,SJ,{value:t,writable:!0,enumerable:!1,configurable:!1})}o(NJ,"setGlobalDispatcher");function xJ(){return globalThis[SJ]}o(xJ,"getGlobalDispatcher");QJ.exports={setGlobalDispatcher:NJ,getGlobalDispatcher:xJ}});var hy=h((u8e,RJ)=>{"use strict";RJ.exports=class{static{o(this,"DecoratorHandler")}#e;constructor(e){if(typeof e!="object"||e===null)throw new TypeError("handler must be an object");this.#e=e}onConnect(...e){return this.#e.onConnect?.(...e)}onError(...e){return this.#e.onError?.(...e)}onUpgrade(...e){return this.#e.onUpgrade?.(...e)}onResponseStarted(...e){return this.#e.onResponseStarted?.(...e)}onHeaders(...e){return this.#e.onHeaders?.(...e)}onData(...e){return this.#e.onData?.(...e)}onComplete(...e){return this.#e.onComplete?.(...e)}onBodySent(...e){return this.#e.onBodySent?.(...e)}}});var vJ=h((A8e,TJ)=>{"use strict";var cge=YE();TJ.exports=t=>{let e=t?.maxRedirections;return r=>o(function(n,i){let{maxRedirections:a=e,...c}=n;if(!a)return r(n,i);let l=new cge(r,a,n,i);return r(c,l)},"redirectInterceptor")}});var _J=h((f8e,PJ)=>{"use strict";var lge=ny();PJ.exports=t=>e=>o(function(s,n){return e(s,new lge({...s,retryOptions:{...t,...s.retryOptions}},{handler:n,dispatch:e}))},"retryInterceptor")});var DJ=h((m8e,kJ)=>{"use strict";var uge=Ce(),{InvalidArgumentError:dge,RequestAbortedError:Age}=Te(),pge=hy(),uR=class extends pge{static{o(this,"DumpHandler")}#e=1024*1024;#t=null;#s=!1;#r=!1;#n=0;#i=null;#a=null;constructor({maxSize:e},r){if(super(r),e!=null&&(!Number.isFinite(e)||e<1))throw new dge("maxSize must be a number greater than 0");this.#e=e??this.#e,this.#a=r}onConnect(e){this.#t=e,this.#a.onConnect(this.#o.bind(this))}#o(e){this.#r=!0,this.#i=e}onHeaders(e,r,s,n){let a=uge.parseHeaders(r)["content-length"];if(a!=null&&a>this.#e)throw new Age(`Response size (${a}) larger than maxSize (${this.#e})`);return this.#r?!0:this.#a.onHeaders(e,r,s,n)}onError(e){this.#s||(e=this.#i??e,this.#a.onError(e))}onData(e){return this.#n=this.#n+e.length,this.#n>=this.#e&&(this.#s=!0,this.#r?this.#a.onError(this.#i):this.#a.onComplete([])),!0}onComplete(e){if(!this.#s){if(this.#r){this.#a.onError(this.reason);return}this.#a.onComplete(e)}}};function fge({maxSize:t}={maxSize:1024*1024}){return e=>o(function(s,n){let{dumpMaxSize:i=t}=s,a=new uR({maxSize:i},n);return e(s,a)},"Intercept")}o(fge,"createDumpInterceptor");kJ.exports=fge});var LJ=h((E8e,MJ)=>{"use strict";var{isIP:hge}=require("node:net"),{lookup:mge}=require("node:dns"),gge=hy(),{InvalidArgumentError:Sd,InformationalError:Ege}=Te(),OJ=Math.pow(2,31)-1,dR=class{static{o(this,"DNSInstance")}#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.#n}get full(){return this.#s.size===this.#t}runLookup(e,r,s){let n=this.#s.get(e.hostname);if(n==null&&this.full){s(null,e.origin);return}let i={affinity:this.affinity,dualStack:this.dualStack,lookup:this.lookup,pick:this.pick,...r.dns,maxTTL:this.#e,maxItems:this.#t};if(n==null)this.lookup(e,i,(a,c)=>{if(a||c==null||c.length===0){s(a??new Ege("No DNS entries found"));return}this.setRecords(e,c);let l=this.#s.get(e.hostname),u=this.pick(e,l,i.affinity),d;typeof u.port=="number"?d=`:${u.port}`:e.port!==""?d=`:${e.port}`:d="",s(null,`${e.protocol}//${u.family===6?`[${u.address}]`:u.address}${d}`)});else{let a=this.pick(e,n,i.affinity);if(a==null){this.#s.delete(e.hostname),this.runLookup(e,r,s);return}let c;typeof a.port=="number"?c=`:${a.port}`:e.port!==""?c=`:${e.port}`:c="",s(null,`${e.protocol}//${a.family===6?`[${a.address}]`:a.address}${c}`)}}#r(e,r,s){mge(e.hostname,{all:!0,family:this.dualStack===!1?this.affinity:0,order:"ipv4first"},(n,i)=>{if(n)return s(n);let a=new Map;for(let c of i)a.set(`${c.address}:${c.family}`,c);s(null,a.values())})}#n(e,r,s){let n=null,{records:i,offset:a}=r,c;if(this.dualStack?(s==null&&(a==null||a===OJ?(r.offset=0,s=4):(r.offset++,s=(r.offset&1)===1?6:4)),i[s]!=null&&i[s].ips.length>0?c=i[s]:c=i[s===4?6:4]):c=i[s],c==null||c.ips.length===0)return n;c.offset==null||c.offset===OJ?c.offset=0:c.offset++;let l=c.offset%c.ips.length;return n=c.ips[l]??null,n==null?n:Date.now()-n.timestamp>n.ttl?(c.ips.splice(l,1),this.pick(e,r,s)):n}setRecords(e,r){let s=Date.now(),n={records:{4:null,6:null}};for(let i of r){i.timestamp=s,typeof i.ttl=="number"?i.ttl=Math.min(i.ttl,this.#e):i.ttl=this.#e;let a=n.records[i.family]??{ips:[]};a.ips.push(i),n.records[i.family]=a}this.#s.set(e.hostname,n)}getHandler(e,r){return new AR(this,e,r)}},AR=class extends gge{static{o(this,"DNSDispatchHandler")}#e=null;#t=null;#s=null
Line truncated
|
||||
${i}`;break;case"retry":g3(i)&&(r[n]=i);break;case"id":E3(i)&&(r[n]=i);break;case"event":i.length>0&&(r[n]=i);break}}processEvent(e){e.retry&&g3(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id&&E3(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}}};y3.exports={EventSourceStream:ZR}});var Q3=h((I6e,x3)=>{"use strict";var{pipeline:NIe}=require("node:stream"),{fetching:xIe}=Lf(),{makeRequest:QIe}=Qd(),{webidl:ea}=pr(),{EventSourceStream:RIe}=C3(),{parseMIMEType:TIe}=Zr(),{createFastMessageEvent:vIe}=kd(),{isNetworkError:I3}=Of(),{delay:PIe}=KR(),{kEnumerableProperty:Sl}=Ce(),{environmentSettingsObject:B3}=Ss(),b3=!1,w3=3e3,Xf=0,S3=1,Zf=2,_Ie="anonymous",kIe="use-credentials",Fd=class t extends EventTarget{static{o(this,"EventSource")}#e={open:null,error:null,message:null};#t=null;#s=!1;#r=Xf;#n=null;#i=null;#a;#o;constructor(e,r={}){super(),ea.util.markAsUncloneable(this);let s="EventSource constructor";ea.argumentLengthCheck(arguments,1,s),b3||(b3=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=ea.converters.USVString(e,s,"url"),r=ea.converters.EventSourceInitDict(r,s,"eventSourceInitDict"),this.#a=r.dispatcher,this.#o={lastEventId:"",reconnectionTime:w3};let n=B3,i;try{i=new URL(e,n.settingsObject.baseUrl),this.#o.origin=i.origin}catch(l){throw new DOMException(l,"SyntaxError")}this.#t=i.href;let a=_Ie;r.withCredentials&&(a=kIe,this.#s=!0);let c={redirect:"follow",keepalive:!0,mode:"cors",credentials:a==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};c.client=B3.settingsObject,c.headersList=[["accept",{name:"accept",value:"text/event-stream"}]],c.cache="no-store",c.initiator="other",c.urlList=[new URL(this.#t)],this.#n=QIe(c),this.#l()}get readyState(){return this.#r}get url(){return this.#t}get withCredentials(){return this.#s}#l(){if(this.#r===Zf)return;this.#r=Xf;let e={request:this.#n,dispatcher:this.#a},r=o(s=>{I3(s)&&(this.dispatchEvent(new Event("error")),this.close()),this.#c()},"processEventSourceEndOfBody");e.processResponseEndOfBody=r,e.processResponse=s=>{if(I3(s))if(s.aborted){this.close(),this.dispatchEvent(new Event("error"));return}else{this.#c();return}let n=s.headersList.get("content-type",!0),i=n!==null?TIe(n):"failure",a=i!=="failure"&&i.essence==="text/event-stream";if(s.status!==200||a===!1){this.close(),this.dispatchEvent(new Event("error"));return}this.#r=S3,this.dispatchEvent(new Event("open")),this.#o.origin=s.urlList[s.urlList.length-1].origin;let c=new RIe({eventSourceSettings:this.#o,push:o(l=>{this.dispatchEvent(vIe(l.type,l.options))},"push")});NIe(s.body.stream,c,l=>{l?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#i=xIe(e)}async#c(){this.#r!==Zf&&(this.#r=Xf,this.dispatchEvent(new Event("error")),await PIe(this.#o.reconnectionTime),this.#r===Xf&&(this.#o.lastEventId.length&&this.#n.headersList.set("last-event-id",this.#o.lastEventId,!0),this.#l()))}close(){ea.brandCheck(this,t),this.#r!==Zf&&(this.#r=Zf,this.#i.abort(),this.#n=null)}get onopen(){return this.#e.open}set onopen(e){this.#e.open&&this.removeEventListener("open",this.#e.open),typeof e=="function"?(this.#e.open=e,this.addEventListener("open",e)):this.#e.open=null}get onmessage(){return this.#e.message}set onmessage(e){this.#e.message&&this.removeEventListener("message",this.#e.message),typeof e=="function"?(this.#e.message=e,this.addEventListener("message",e)):this.#e.message=null}get onerror(){return this.#e.error}set onerror(e){this.#e.error&&this.removeEventListener("error",this.#e.error),typeof e=="function"?(this.#e.error=e,this.addEventListener("error",e)):this.#e.error=null}},N3={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:Xf,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:S3,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:Zf,writable:!1}};Object.defineProperties(Fd,N3);Object.defineProperties(Fd.prototype,N3);Object.defineProperties(Fd.prototype,{close:Sl,onerror:Sl,onmessage:Sl,onopen:Sl,readyState:Sl,url:Sl,withCredentials:Sl});ea.converters.EventSourceInitDict=ea.dictionaryConverter([{key:"withCredentials",converter:ea.converters.boolean,defaultValue:o(()=>!1,"defaultValue")},{key:"dispatcher",converter:ea.converters.any}]);x3.exports={EventSource:Fd,defaultReconnectionTime:w3}});var qd=h((b6e,te)=>{"use strict";var DIe=pd(),R3=tf(),OIe=fd(),MIe=NV(),LIe=hd(),FIe=BQ(),UIe=jV(),qIe=rz(),T3=Te(),rC=Ce(),{InvalidArgumentError:tC}=T3,Ud=Gz(),GIe=sf(),HIe=sR(),VIe=wJ(),zIe=oR(),JIe=VQ(),YIe=ny(),{getGlobalDispatcher:v3,setGlobalDispatcher:$Ie}=fy(),WIe=hy(),jIe=YE(),KIe=$E();Object.assign(R3.prototype,Ud);te.exports.Dispatcher=R3;te.exports.Client=DIe;te.exports.Pool=OIe;te.exports.BalancedPool=MIe;te.exports.Agent=LIe;te.exports.
Line truncated
|
||||
%s`,N,N,C,s);var Q=C.type==="*"?rv:C.type==="?"?tv:"\\"+C.type;n=!0,s=s.slice(0,C.reStart)+Q+"\\("+N}m(),i&&(s+="\\\\");var D=!1;switch(s.charAt(0)){case"[":case".":case"(":D=!0}for(var le=c.length-1;le>-1;le--){var Se=c[le],Re=s.slice(0,Se.reStart),Oe=s.slice(Se.reStart,Se.reEnd-8),me=s.slice(Se.reEnd-8,Se.reEnd),Je=s.slice(Se.reEnd);me+=Je;var ue=Re.split("(").length-1,vr=Je;for(g=0;g<ue;g++)vr=vr.replace(/\)[+*?]?/,"");Je=vr;var J="";Je===""&&e!==xC&&(J="$");var Me=Re+Oe+Je+J+me;s=Me}if(s!==""&&n&&(s="(?=.)"+s),D&&(s=p+s),e===xC)return[s,n];if(!n)return hSe(t);var Ci=r.nocase?"i":"";try{var La=new RegExp("^"+s+"$",Ci)}catch{return new RegExp("$.")}return La._glob=t,La._src=s,La}o(pSe,"parse");Ls.makeRe=function(t,e){return new Gt(t,e||{}).makeRe()};Gt.prototype.makeRe=fSe;function fSe(){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?rv:e.dot?oSe:aSe,s=e.nocase?"i":"",n=t.map(function(i){return i.map(function(a){return a===vl?r:typeof a=="string"?mSe(a):a._src}).join("\\/")}).join("|");n="^(?:"+n+")$",this.negate&&(n="^(?!"+n+").*$");try{this.regexp=new RegExp(n,s)}catch{this.regexp=!1}return this.regexp}o(fSe,"makeRe");Ls.match=function(t,e,r){r=r||{};var s=new Gt(e,r);return t=t.filter(function(n){return s.match(n)}),s.options.nonull&&!t.length&&t.push(e),t};Gt.prototype.match=o(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;Ih.sep!=="/"&&(e=e.split(Ih.sep).join("/")),e=e.split(D4),this.debug(this.pattern,"split",e);var n=this.set;this.debug(this.pattern,"set",n);var i,a;for(a=e.length-1;a>=0&&(i=e[a],!i);a--);for(a=0;a<n.length;a++){var c=n[a],l=e;s.matchBase&&c.length===1&&(l=[i]);var u=this.matchOne(l,c,r);if(u)return s.flipNegate?!0:!this.negate}return s.flipNegate?!1:this.negate},"match");Gt.prototype.matchOne=function(t,e,r){return e.indexOf(vl)!==-1?this._matchGlobstar(t,e,r,0,0):this._matchOne(t,e,r,0,0)};Gt.prototype._matchGlobstar=function(t,e,r,s,n){var i,a=-1;for(i=n;i<e.length;i++)if(e[i]===vl){a=i;break}var c=-1;for(i=e.length-1;i>=0;i--)if(e[i]===vl){c=i;break}var l=e.slice(n,a),u=r?e.slice(a+1):e.slice(a+1,c),d=r?[]:e.slice(c+1);if(l.length){var A=t.slice(s,s+l.length);if(!this._matchOne(A,l,r,0,0))return!1;s+=l.length}var p=0;if(d.length){if(d.length+s>t.length)return!1;var f=t.length-d.length;if(this._matchOne(t,d,r,f,0))p=d.length;else{if(t[t.length-1]!==""||s+d.length===t.length||(f--,!this._matchOne(t,d,r,f,0)))return!1;p=d.length+1}}if(!u.length){var m=!!p;for(i=s;i<t.length-p;i++){var g=String(t[i]);if(m=!0,g==="."||g===".."||!this.options.dot&&g.charAt(0)===".")return!1}return r||m}for(var y=[[[],0]],E=y[0],C=0,I=[0],B=0;B<u.length;B++){var N=u[B];N===vl?(I.push(C),E=[[],0],y.push(E)):(E[0].push(N),C++)}for(var Q=y.length-1,D=t.length-p,le=0;le<y.length;le++)y[le][1]=D-(I[Q--]+y[le][0].length);return!!this._matchGlobStarBodySections(t,y,s,0,r,0,!!p)};Gt.prototype._matchGlobStarBodySections=function(t,e,r,s,n,i,a){var c=e[s];if(!c){for(var l=r;l<t.length;l++){a=!0;var u=t[l];if(u==="."||u===".."||!this.options.dot&&u.charAt(0)===".")return!1}return a}for(var d=c[0],A=c[1];r<=A;){var p=this._matchOne(t.slice(0,r+d.length),d,n,r,0);if(p&&i<this.maxGlobstarRecursion){var f=this._matchGlobStarBodySections(t,e,r+d.length,s+1,n,i+1,a);if(f!==!1)return f}var u=t[r];if(u==="."||u===".."||!this.options.dot&&u.charAt(0)===".")return!1;r++}return n||null};Gt.prototype._matchOne=function(t,e,r,s,n){var i,a,c,l;for(i=s,a=n,c=t.length,l=e.length;i<c&&a<l;i++,a++){this.debug("matchOne loop");var u=e[a],d=t[i];if(this.debug(e,u,d),u===!1||u===vl)return!1;var A;if(typeof u=="string"?(A=d===u,this.debug("string match",u,d,A)):(A=d.match(u),this.debug("pattern match",u,d,A)),!A)return!1}if(i===c&&a===l)return!0;if(i===c)return r;if(a===l)return i===c-1&&t[i]==="";throw new Error("wtf?")};function hSe(t){return t.replace(/\\(.)/g,"$1")}o(hSe,"globUnescape");function mSe(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}o(mSe,"regExpEscape")});var wh=h((ZZe,G4)=>{"use strict";var wSe="2.0.0",SSe=Number.MAX_SAFE_INTEGER||9007199254740991,NSe=16,xSe=250,QSe=["major","premajor","minor","preminor","patch","prepatch","prerelease"];G4.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:NSe,MAX_SAFE_BUILD_LENGTH:xSe,MAX_SAFE_INTEGER:SSe,RELEASE_TYPES:QSe,SEMVER_SPEC_VERSION:wSe,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var Sh=h((e7e,H4)=>{"use strict";var RSe=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};H4.exports=RSe});var Xd=h((Mi,V4)=>{"use strict";var{MAX_SAFE_COMPONENT_LENGTH:nv,MAX_SAFE_BUILD_LENGTH:TSe,MAX_LENGTH:vSe}=wh(),PSe=Sh();Mi=V4.exports={};var _Se=Mi.re=[],kSe=Mi.safeRe=[],L=Mi.src=[],DSe=Mi.safeSrc=[],F=Mi.t={},OSe=0,iv="[a-zA-Z0-9-]",MSe=[["\\s",1],["\\d",
Line truncated
|
||||
`).join(`
|
||||
`+n),t.push(i+"m+"+iN.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=Bje()+e+" "+t[0]}o(wje,"formatArgs");function Bje(){return Fs.inspectOpts.hideDate?"":new Date().toISOString()+" "}o(Bje,"getDate");function Sje(...t){return process.stderr.write(sN.format(...t)+`
|
||||
`)}o(Sje,"log");function xje(t){t?process.env.DEBUG=t:delete process.env.DEBUG}o(xje,"save");function Nje(){return process.env.DEBUG}o(Nje,"load");function Rje(t){t.inspectOpts={};let e=Object.keys(Fs.inspectOpts);for(let r=0;r<e.length;r++)t.inspectOpts[e[r]]=Fs.inspectOpts[e[r]]}o(Rje,"init");iN.exports=pF()(Fs);var{formatters:ile}=iN.exports;ile.o=function(t){return this.inspectOpts.colors=this.useColors,sN.inspect(t,this.inspectOpts).split(`
|
||||
`).map(e=>e.trim()).join(" ")};ile.O=function(t){return this.inspectOpts.colors=this.useColors,sN.inspect(t,this.inspectOpts)}});var kf=m((MFt,yF)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?yF.exports=Zce():yF.exports=nle()});var cle=m(tn=>{"use strict";var vje=tn&&tn.__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:o(function(){return e[r]},"get")}),Object.defineProperty(t,s,i)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),Tje=tn&&tn.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),ole=tn&&tn.__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)&&vje(e,t,r);return Tje(e,t),e};Object.defineProperty(tn,"__esModule",{value:!0});tn.req=tn.json=tn.toBuffer=void 0;var _je=ole(require("http")),Qje=ole(require("https"));async function ale(t){let e=0,r=[];for await(let s of t)e+=s.length,r.push(s);return Buffer.concat(r,e)}o(ale,"toBuffer");tn.toBuffer=ale;async function Pje(t){let r=(await ale(t)).toString("utf8");try{return JSON.parse(r)}catch(s){let i=s;throw i.message+=` (input: ${r})`,i}}o(Pje,"json");tn.json=Pje;function Oje(t,e={}){let s=((typeof t=="string"?t:t.href).startsWith("https:")?Qje:_je).request(t,e),i=new Promise((n,a)=>{s.once("response",n).once("error",a).end()});return s.then=i.then.bind(i),s}o(Oje,"req");tn.req=Oje});var dle=m(Vn=>{"use strict";var ule=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:o(function(){return e[r]},"get")}),Object.defineProperty(t,s,i)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),Dje=Vn&&Vn.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),hle=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)&&ule(e,t,r);return Dje(e,t),e},kje=Vn&&Vn.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&ule(e,t,r)};Object.defineProperty(Vn,"__esModule",{value:!0});Vn.Agent=void 0;var Mje=hle(require("net")),lle=hle(require("http")),Lje=require("https");kje(cle(),Vn);var Ec=Symbol("AgentBaseInternalState"),EF=class extends lle.Agent{static{o(this,"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 Mje.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)?Lje.Agent.prototype.getName.call(this,e):super.getName(e)}createSocket(e,r,s){let i={...r,secureEndpoint:this.isSecureEndpoint(r)},n=this.getName(i),a=this.incrementSockets(n);Promise.resolve().then(()=>this.connect(e,i)).then(c=>{if(this.decrementSockets(n,a),c instanceof lle.Agent)try{return c.addRequest(e,i)}catch(l){return s(l)}this[Ec].currentSocket=c,super.createSocket(e,r,s)},c=>{this.decrementSockets(n,a),s(c)})}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)}};Vn.Agent=EF});var fle=m(Dm=>{"use strict";var Fje=Dm&&Dm.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Dm,"__esModule",{value:!0});Dm.parseProxyResponse=void 0;var Uje=Fje(kf()),nN=(0,Uje.default)("https-proxy-agent:parse-proxy-response");function qje(t){return new Promise((e,r)=>{let s=0,i=[];function n(){let h=t.read();h?u(h):t.once("readable",n)}o(n,"read");function a(){t.removeListener("end",c),t.removeListener("error",l),t.removeListener("readable",n)}o(a,"cleanup");function c(){a(),nN("onend"),r(new Error("Proxy connection ended before receiving CONNECT response"))}o(c,"onend");function l(h){a(),nN("onerror %o",h),r(h)}o(l,"onerror");function u(h){i.push(h),s+=h.length;let d=Buffer.concat(i,s),f=d.indexOf(`\r
|
||||
`+i),t.push(n+"m+"+mI.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=gRe()+e+" "+t[0]}o(mRe,"formatArgs");function gRe(){return hr.inspectOpts.hideDate?"":new Date().toISOString()+" "}o(gRe,"getDate");function ERe(...t){return process.stderr.write(hI.format(...t)+`
|
||||
`)}o(ERe,"log");function yRe(t){t?process.env.DEBUG=t:delete process.env.DEBUG}o(yRe,"save");function CRe(){return process.env.DEBUG}o(CRe,"load");function IRe(t){t.inspectOpts={};let e=Object.keys(hr.inspectOpts);for(let r=0;r<e.length;r++)t.inspectOpts[e[r]]=hr.inspectOpts[e[r]]}o(IRe,"init");mI.exports=Yv()(hr);var{formatters:S6}=mI.exports;S6.o=function(t){return this.inspectOpts.colors=this.useColors,hI.inspect(t,this.inspectOpts).split(`
|
||||
`).map(e=>e.trim()).join(" ")};S6.O=function(t){return this.inspectOpts.colors=this.useColors,hI.inspect(t,this.inspectOpts)}});var gI=h((zrt,Kv)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?Kv.exports=C6():Kv.exports=N6()});var R6=h(os=>{"use strict";var BRe=os&&os.__createBinding||(Object.create?(function(t,e,r,s){s===void 0&&(s=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,s,n)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),bRe=os&&os.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),x6=os&&os.__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)&&BRe(e,t,r);return bRe(e,t),e};Object.defineProperty(os,"__esModule",{value:!0});os.req=os.json=os.toBuffer=void 0;var wRe=x6(require("http")),SRe=x6(require("https"));async function Q6(t){let e=0,r=[];for await(let s of t)e+=s.length,r.push(s);return Buffer.concat(r,e)}o(Q6,"toBuffer");os.toBuffer=Q6;async function NRe(t){let r=(await Q6(t)).toString("utf8");try{return JSON.parse(r)}catch(s){let n=s;throw n.message+=` (input: ${r})`,n}}o(NRe,"json");os.json=NRe;function xRe(t,e={}){let s=((typeof t=="string"?t:t.href).startsWith("https:")?SRe:wRe).request(t,e),n=new Promise((i,a)=>{s.once("response",i).once("error",a).end()});return s.then=n.then.bind(n),s}o(xRe,"req");os.req=xRe});var _6=h(Gs=>{"use strict";var v6=Gs&&Gs.__createBinding||(Object.create?(function(t,e,r,s){s===void 0&&(s=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,s,n)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),QRe=Gs&&Gs.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),P6=Gs&&Gs.__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)&&v6(e,t,r);return QRe(e,t),e},RRe=Gs&&Gs.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&v6(e,t,r)};Object.defineProperty(Gs,"__esModule",{value:!0});Gs.Agent=void 0;var TRe=P6(require("net")),T6=P6(require("http")),vRe=require("https");RRe(R6(),Gs);var qi=Symbol("AgentBaseInternalState"),Xv=class extends T6.Agent{static{o(this,"Agent")}constructor(e){super(e),this[qi]={}}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 TRe.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],n=s.indexOf(r);n!==-1&&(s.splice(n,1),this.totalSocketCount--,s.length===0&&delete this.sockets[e])}getName(e){return this.isSecureEndpoint(e)?vRe.Agent.prototype.getName.call(this,e):super.getName(e)}createSocket(e,r,s){let n={...r,secureEndpoint:this.isSecureEndpoint(r)},i=this.getName(n),a=this.incrementSockets(i);Promise.resolve().then(()=>this.connect(e,n)).then(c=>{if(this.decrementSockets(i,a),c instanceof T6.Agent)try{return c.addRequest(e,n)}catch(l){return s(l)}this[qi].currentSocket=c,super.createSocket(e,r,s)},c=>{this.decrementSockets(i,a),s(c)})}createConnection(){let e=this[qi].currentSocket;if(this[qi].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[qi].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[qi]&&(this[qi].defaultPort=e)}get protocol(){return this[qi].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[qi]&&(this[qi].protocol=e)}};Gs.Agent=Xv});var k6=h(cA=>{"use strict";var PRe=cA&&cA.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(cA,"__esModule",{value:!0});cA.parseProxyResponse=void 0;var _Re=PRe(gI()),EI=(0,_Re.default)("https-proxy-agent:parse-proxy-response");function kRe(t){return new Promise((e,r)=>{let s=0,n=[];function i(){let d=t.read();d?u(d):t.once("readable",i)}o(i,"read");function a(){t.removeListener("end",c),t.removeListener("error",l),t.removeListener("readable",i)}o(a,"cleanup");function c(){a(),EI("onend"),r(new Error("Proxy connection ended before receiving CONNECT response"))}o(c,"onend");function l(d){a(),EI("onerror %o",d),r(d)}o(l,"onerror");function u(d){n.push(d),s+=d.length;let A=Buffer.concat(n,s),p=A.indexOf(`\r
|
||||
\r
|
||||
`);if(f===-1){nN("have not received end of HTTP headers yet..."),n();return}let p=d.slice(0,f).toString("ascii").split(`\r
|
||||
`),A=p.shift();if(!A)return t.destroy(),r(new Error("No header received from proxy CONNECT response"));let g=A.split(" "),C=+g[1],E=g.slice(2).join(" "),I={};for(let B of p){if(!B)continue;let x=B.indexOf(":");if(x===-1)return t.destroy(),r(new Error(`Invalid header from proxy CONNECT response: "${B}"`));let R=B.slice(0,x).toLowerCase(),D=B.slice(x+1).trimStart(),O=I[R];typeof O=="string"?I[R]=[O,D]:Array.isArray(O)?O.push(D):I[R]=D}nN("got proxy server response: %o %o",A,I),a(),e({connect:{statusCode:C,statusText:E,headers:I},buffered:d})}o(u,"ondata"),t.on("error",l),t.on("end",c),n()})}o(qje,"parseProxyResponse");Dm.parseProxyResponse=qje});var Ele=m(ko=>{"use strict";var Gje=ko&&ko.__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:o(function(){return e[r]},"get")}),Object.defineProperty(t,s,i)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),Hje=ko&&ko.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),gle=ko&&ko.__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)&&Gje(e,t,r);return Hje(e,t),e},yle=ko&&ko.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(ko,"__esModule",{value:!0});ko.HttpsProxyAgent=void 0;var oN=gle(require("net")),ple=gle(require("tls")),zje=yle(require("assert")),Vje=yle(kf()),$je=dle(),jje=require("url"),Jje=fle(),lI=(0,Vje.default)("https-proxy-agent"),Ale=o(t=>t.servername===void 0&&t.host&&!oN.isIP(t.host)?{...t,servername:t.host}:t,"setServernameFromNonIpHost"),aN=class extends $je.Agent{static{o(this,"HttpsProxyAgent")}constructor(e,r){super(r),this.options={path:void 0},this.proxy=typeof e=="string"?new jje.URL(e):e,this.proxyHeaders=r?.headers??{},lI("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?mle(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:"?(lI("Creating `tls.Socket`: %o",this.connectOpts),i=ple.connect(Ale(this.connectOpts))):(lI("Creating `net.Socket`: %o",this.connectOpts),i=oN.connect(this.connectOpts));let n=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders},a=oN.isIPv6(r.host)?`[${r.host}]`:r.host,c=`CONNECT ${a}:${r.port} HTTP/1.1\r
|
||||
`;if(s.username||s.password){let f=`${decodeURIComponent(s.username)}:${decodeURIComponent(s.password)}`;n["Proxy-Authorization"]=`Basic ${Buffer.from(f).toString("base64")}`}n.Host=`${a}:${r.port}`,n["Proxy-Connection"]||(n["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let f of Object.keys(n))c+=`${f}: ${n[f]}\r
|
||||
`;let l=(0,Jje.parseProxyResponse)(i);i.write(`${c}\r
|
||||
`);let{connect:u,buffered:h}=await l;if(e.emit("proxyConnect",u),this.emit("proxyConnect",u,e),u.statusCode===200)return e.once("socket",Yje),r.secureEndpoint?(lI("Upgrading socket connection to TLS"),ple.connect({...mle(Ale(r),"host","path","port"),socket:i})):i;i.destroy();let d=new oN.Socket({writable:!1});return d.readable=!0,e.once("socket",f=>{lI("Replaying proxy buffer for failed request"),(0,zje.default)(f.listenerCount("data")>0),f.push(h),f.push(null)}),d}};aN.protocols=["http","https"];ko.HttpsProxyAgent=aN;function Yje(t){t.resume()}o(Yje,"resume");function mle(t,...e){let r={},s;for(s in t)e.includes(s)||(r[s]=t[s]);return r}o(mle,"omit")});var ble=m(rn=>{"use strict";var Wje=rn&&rn.__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:o(function(){return e[r]},"get")}),Object.defineProperty(t,s,i)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),Kje=rn&&rn.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Cle=rn&&rn.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&Wje(e,t,r);return Kje(e,t),e};Object.defineProperty(rn,"__esModule",{value:!0});rn.req=rn.json=rn.toBuffer=void 0;var Xje=Cle(require("http")),Zje=Cle(require("https"));async function Ile(t){let e=0,r=[];for await(let s of t)e+=s.length,r.push(s);return Buffer.concat(r,e)}o(Ile,"toBuffer");rn.toBuffer=Ile;async function eJe(t){let r=(await Ile(t)).toString("utf8");try{return JSON.parse(r)}catch(s){let i=s;throw i.message+=` (input: ${r})`,i}}o(eJe,"json");rn.json=eJe;function tJe(t,e={}){let s=((typeof t=="string"?t:t.href).startsWith("https:")?Zje:Xje).request(t,e),i=new Promise((n,a)=>{s.once("response",n).once("error",a).end()});return s.then=i.then.bind(i),s}o(tJe,"req");rn.req=tJe});var uI=m($n=>{"use strict";var Ble=$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:o(function(){return e[r]},"get")}),Object.defineProperty(t,s,i)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),rJe=$n&&$n.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Sle=$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)&&Ble(e,t,r);return rJe(e,t),e},sJe=$n&&$n.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&Ble(e,t,r)};Object.defineProperty($n,"__esModule",{value:!0});$n.Agent=void 0;var iJe=Sle(require("net")),wle=Sle(require("http")),nJe=require("https");sJe(ble(),$n);var Cc=Symbol("AgentBaseInternalState"),CF=class extends wle.Agent{static{o(this,"Agent")}constructor(e){super(e),this[Cc]={}}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 iJe.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))?nJe.Agent.prototype.getName.call(this,e):super.getName(e)}createSocket(e,r,s){let i={...r,secureEndpoint:this.isSecureEndpoint(r)},n=this.getName(i),a=this.incrementSockets(n);Promise.resolve().then(()=>this.connect(e,i)).then(c=>{if(this.decrementSockets(n,a),c instanceof wle.Agent)return c.addRequest(e,i);this[Cc].currentSocket=c,super.createSocket(e,r,s)},c=>{this.decrementSockets(n,a),s(c)})}createConnection(){let e=this[Cc].currentSocket;if(this[Cc].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[Cc].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[Cc]&&(this[Cc].defaultPort=e)}get protocol(){return this[Cc].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[Cc]&&(this[Cc].protocol=e)}};$n.Agent=CF});var IF=m(Mo=>{"use strict";var oJe=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:o(function(){return e[r]},"get")}),Object.defineProperty(t,s,i)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),aJe=Mo&&Mo.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Nle=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)&&oJe(e,t,r);return aJe(e,t),e},cJe=Mo&&Mo.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Mo,"__esModule",{value:!0});Mo.HttpProxyAgent=void 0;var lJe=Nle(require("net")),uJe=Nle(require("tls")),hJe=cJe(kf()),dJe=require("events"),fJe=uI(),xle=require("url"),km=(0,hJe.default)("http-proxy-agent"),cN=class extends fJe.Agent{static{o(this,"HttpProxyAgent")}constructor(e,r){super(r),this.proxy=typeof e=="string"?new xle.URL(e):e,this.proxyHeaders=r?.headers??{},km("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?pJe(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",a=`${i}//${n}`,c=new xle.URL(e.path,a);r.port!==80&&(c.port=String(r.port)),e.path=String(c);let l=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders};if(s.username||s.password){let u=`${decodeURIComponent(s.username)}:${decodeURIComponent(s.password)}`;l["Proxy-Authorization"]=`Basic ${Buffer.from(u).toString("base64")}`}l["Proxy-Connection"]||(l["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let u of Object.keys(l)){let h=l[u];h&&e.setHeader(u,h)}}async connect(e,r){e._header=null,e.path.includes("://")||this.setRequestProps(e,r);let s,i;km("Regenerating stored HTTP header string for request"),e._implicitHeader(),e.outputData&&e.outputData.length>0&&(km("Patching connection write() output buffer with updated header"),s=e.outputData[0].data,i=s.indexOf(`\r
|
||||
`);if(p===-1){EI("have not received end of HTTP headers yet..."),i();return}let f=A.slice(0,p).toString("ascii").split(`\r
|
||||
`),m=f.shift();if(!m)return t.destroy(),r(new Error("No header received from proxy CONNECT response"));let g=m.split(" "),y=+g[1],E=g.slice(2).join(" "),C={};for(let I of f){if(!I)continue;let B=I.indexOf(":");if(B===-1)return t.destroy(),r(new Error(`Invalid header from proxy CONNECT response: "${I}"`));let N=I.slice(0,B).toLowerCase(),Q=I.slice(B+1).trimStart(),D=C[N];typeof D=="string"?C[N]=[D,Q]:Array.isArray(D)?D.push(Q):C[N]=Q}EI("got proxy server response: %o %o",m,C),a(),e({connect:{statusCode:y,statusText:E,headers:C},buffered:A})}o(u,"ondata"),t.on("error",l),t.on("end",c),i()})}o(kRe,"parseProxyResponse");cA.parseProxyResponse=kRe});var U6=h(Cn=>{"use strict";var DRe=Cn&&Cn.__createBinding||(Object.create?(function(t,e,r,s){s===void 0&&(s=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,s,n)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),ORe=Cn&&Cn.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),L6=Cn&&Cn.__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)&&DRe(e,t,r);return ORe(e,t),e},F6=Cn&&Cn.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Cn,"__esModule",{value:!0});Cn.HttpsProxyAgent=void 0;var yI=L6(require("net")),D6=L6(require("tls")),MRe=F6(require("assert")),LRe=F6(gI()),FRe=_6(),URe=require("url"),qRe=k6(),qh=(0,LRe.default)("https-proxy-agent"),O6=o(t=>t.servername===void 0&&t.host&&!yI.isIP(t.host)?{...t,servername:t.host}:t,"setServernameFromNonIpHost"),CI=class extends FRe.Agent{static{o(this,"HttpsProxyAgent")}constructor(e,r){super(r),this.options={path:void 0},this.proxy=typeof e=="string"?new URe.URL(e):e,this.proxyHeaders=r?.headers??{},qh("Creating new HttpsProxyAgent instance: %o",this.proxy.href);let s=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),n=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={ALPNProtocols:["http/1.1"],...r?M6(r,"headers"):null,host:s,port:n}}async connect(e,r){let{proxy:s}=this;if(!r.host)throw new TypeError('No "host" provided');let n;s.protocol==="https:"?(qh("Creating `tls.Socket`: %o",this.connectOpts),n=D6.connect(O6(this.connectOpts))):(qh("Creating `net.Socket`: %o",this.connectOpts),n=yI.connect(this.connectOpts));let i=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders},a=yI.isIPv6(r.host)?`[${r.host}]`:r.host,c=`CONNECT ${a}:${r.port} HTTP/1.1\r
|
||||
`;if(s.username||s.password){let p=`${decodeURIComponent(s.username)}:${decodeURIComponent(s.password)}`;i["Proxy-Authorization"]=`Basic ${Buffer.from(p).toString("base64")}`}i.Host=`${a}:${r.port}`,i["Proxy-Connection"]||(i["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let p of Object.keys(i))c+=`${p}: ${i[p]}\r
|
||||
`;let l=(0,qRe.parseProxyResponse)(n);n.write(`${c}\r
|
||||
`);let{connect:u,buffered:d}=await l;if(e.emit("proxyConnect",u),this.emit("proxyConnect",u,e),u.statusCode===200)return e.once("socket",GRe),r.secureEndpoint?(qh("Upgrading socket connection to TLS"),D6.connect({...M6(O6(r),"host","path","port"),socket:n})):n;n.destroy();let A=new yI.Socket({writable:!1});return A.readable=!0,e.once("socket",p=>{qh("Replaying proxy buffer for failed request"),(0,MRe.default)(p.listenerCount("data")>0),p.push(d),p.push(null)}),A}};CI.protocols=["http","https"];Cn.HttpsProxyAgent=CI;function GRe(t){t.resume()}o(GRe,"resume");function M6(t,...e){let r={},s;for(s in t)e.includes(s)||(r[s]=t[s]);return r}o(M6,"omit")});var H6=h(as=>{"use strict";var HRe=as&&as.__createBinding||(Object.create?(function(t,e,r,s){s===void 0&&(s=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,s,n)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),VRe=as&&as.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),q6=as&&as.__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)&&HRe(e,t,r);return VRe(e,t),e};Object.defineProperty(as,"__esModule",{value:!0});as.req=as.json=as.toBuffer=void 0;var zRe=q6(require("http")),JRe=q6(require("https"));async function G6(t){let e=0,r=[];for await(let s of t)e+=s.length,r.push(s);return Buffer.concat(r,e)}o(G6,"toBuffer");as.toBuffer=G6;async function YRe(t){let r=(await G6(t)).toString("utf8");try{return JSON.parse(r)}catch(s){let n=s;throw n.message+=` (input: ${r})`,n}}o(YRe,"json");as.json=YRe;function $Re(t,e={}){let s=((typeof t=="string"?t:t.href).startsWith("https:")?JRe:zRe).request(t,e),n=new Promise((i,a)=>{s.once("response",i).once("error",a).end()});return s.then=n.then.bind(n),s}o($Re,"req");as.req=$Re});var Y6=h(Hs=>{"use strict";var z6=Hs&&Hs.__createBinding||(Object.create?(function(t,e,r,s){s===void 0&&(s=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,s,n)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),WRe=Hs&&Hs.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),J6=Hs&&Hs.__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)&&z6(e,t,r);return WRe(e,t),e},jRe=Hs&&Hs.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&z6(e,t,r)};Object.defineProperty(Hs,"__esModule",{value:!0});Hs.Agent=void 0;var KRe=J6(require("net")),V6=J6(require("http")),XRe=require("https");jRe(H6(),Hs);var Gi=Symbol("AgentBaseInternalState"),Zv=class extends V6.Agent{static{o(this,"Agent")}constructor(e){super(e),this[Gi]={}}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 KRe.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],n=s.indexOf(r);n!==-1&&(s.splice(n,1),this.totalSocketCount--,s.length===0&&delete this.sockets[e])}getName(e){return(typeof e.secureEndpoint=="boolean"?e.secureEndpoint:this.isSecureEndpoint(e))?XRe.Agent.prototype.getName.call(this,e):super.getName(e)}createSocket(e,r,s){let n={...r,secureEndpoint:this.isSecureEndpoint(r)},i=this.getName(n),a=this.incrementSockets(i);Promise.resolve().then(()=>this.connect(e,n)).then(c=>{if(this.decrementSockets(i,a),c instanceof V6.Agent)return c.addRequest(e,n);this[Gi].currentSocket=c,super.createSocket(e,r,s)},c=>{this.decrementSockets(i,a),s(c)})}createConnection(){let e=this[Gi].currentSocket;if(this[Gi].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[Gi].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[Gi]&&(this[Gi].defaultPort=e)}get protocol(){return this[Gi].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[Gi]&&(this[Gi].protocol=e)}};Hs.Agent=Zv});var j6=h(In=>{"use strict";var ZRe=In&&In.__createBinding||(Object.create?(function(t,e,r,s){s===void 0&&(s=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,s,n)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),eTe=In&&In.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),W6=In&&In.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&ZRe(e,t,r);return eTe(e,t),e},tTe=In&&In.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(In,"__esModule",{value:!0});In.HttpProxyAgent=void 0;var rTe=W6(require("net")),sTe=W6(require("tls")),nTe=tTe(gI()),iTe=require("events"),oTe=Y6(),$6=require("url"),lA=(0,nTe.default)("http-proxy-agent"),II=class extends oTe.Agent{static{o(this,"HttpProxyAgent")}constructor(e,r){super(r),this.proxy=typeof e=="string"?new $6.URL(e):e,this.proxyHeaders=r?.headers??{},lA("Creating new HttpProxyAgent instance: %o",this.proxy.href);let s=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),n=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={...r?aTe(r,"headers"):null,host:s,port:n}}addRequest(e,r){e._header=null,this.setRequestProps(e,r),super.addRequest(e,r)}setRequestProps(e,r){let{proxy:s}=this,n=r.secureEndpoint?"https:":"http:",i=e.getHeader("host")||"localhost",a=`${n}//${i}`,c=new $6.URL(e.path,a);r.port!==80&&(c.port=String(r.port)),e.path=String(c);let l=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders};if(s.username||s.password){let u=`${decodeURIComponent(s.username)}:${decodeURIComponent(s.password)}`;l["Proxy-Authorization"]=`Basic ${Buffer.from(u).toString("base64")}`}l["Proxy-Connection"]||(l["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let u of Object.keys(l)){let d=l[u];d&&e.setHeader(u,d)}}async connect(e,r){e._header=null,e.path.includes("://")||this.setRequestProps(e,r);let s,n;lA("Regenerating stored HTTP header string for request"),e._implicitHeader(),e.outputData&&e.outputData.length>0&&(lA("Patching connection write() output buffer with updated header"),s=e.outputData[0].data,n=s.indexOf(`\r
|
||||
\r
|
||||
`)+4,e.outputData[0].data=e._header+s.substring(i),km("Output buffer: %o",e.outputData[0].data));let n;return this.proxy.protocol==="https:"?(km("Creating `tls.Socket`: %o",this.connectOpts),n=uJe.connect(this.connectOpts)):(km("Creating `net.Socket`: %o",this.connectOpts),n=lJe.connect(this.connectOpts)),await(0,dJe.once)(n,"connect"),n}};cN.protocols=["http","https"];Mo.HttpProxyAgent=cN;function pJe(t,...e){let r={},s;for(s in t)e.includes(s)||(r[s]=t[s]);return r}o(pJe,"omit")});var Yle=m(bN=>{"use strict";Object.defineProperty(bN,"__esModule",{value:!0});bN.state=void 0;bN.state={instrumenterImplementation:void 0}});var due=m(NN=>{"use strict";Object.defineProperty(NN,"__esModule",{value:!0});NN.state=void 0;NN.state={operationRequestMap:new WeakMap}});var zde=m(eg=>{"use strict";Object.defineProperty(eg,"__esModule",{value:!0});var OXe=require("os"),DXe=require("util");function kXe(t){return t&&typeof t=="object"&&"default"in t?t:{default:t}}o(kXe,"_interopDefaultLegacy");var MXe=kXe(DXe);function LXe(t,...e){process.stderr.write(`${MXe.default.format(t,...e)}${OXe.EOL}`)}o(LXe,"log");var Ode=typeof process<"u"&&process.env&&process.env.DEBUG||void 0,kde,ZH=[],e4=[],$R=[];Ode&&t4(Ode);var Mde=Object.assign(t=>Lde(t),{enable:t4,enabled:r4,disable:FXe,log:LXe});function t4(t){kde=t,ZH=[],e4=[];let e=/\*/g,r=t.split(",").map(s=>s.trim().replace(e,".*?"));for(let s of r)s.startsWith("-")?e4.push(new RegExp(`^${s.substr(1)}$`)):ZH.push(new RegExp(`^${s}$`));for(let s of $R)s.enabled=r4(s.namespace)}o(t4,"enable");function r4(t){if(t.endsWith("*"))return!0;for(let e of e4)if(e.test(t))return!1;for(let e of ZH)if(e.test(t))return!0;return!1}o(r4,"enabled");function FXe(){let t=kde||"";return t4(""),t}o(FXe,"disable");function Lde(t){let e=Object.assign(r,{enabled:r4(t),destroy:UXe,log:Mde.log,namespace:t,extend:qXe});function r(...s){e.enabled&&(s.length>0&&(s[0]=`${t} ${s[0]}`),e.log(...s))}return o(r,"debug"),$R.push(e),e}o(Lde,"createDebugger");function UXe(){let t=$R.indexOf(this);return t>=0?($R.splice(t,1),!0):!1}o(UXe,"destroy");function qXe(t){let e=Lde(`${this.namespace}:${t}`);return e.log=this.log,e}o(qXe,"extend");var KI=Mde,Fde=new Set,zR=typeof process<"u"&&process.env&&process.env.AZURE_LOG_LEVEL||void 0,jR,JR=KI("azure");JR.log=(...t)=>{KI.log(...t)};var s4=["verbose","info","warning","error"];zR&&(Hde(zR)?Ude(zR):console.error(`AZURE_LOG_LEVEL set to unknown log level '${zR}'; logging is not enabled. Acceptable values: ${s4.join(", ")}.`));function Ude(t){if(t&&!Hde(t))throw new Error(`Unknown log level '${t}'. Acceptable values: ${s4.join(",")}`);jR=t;let e=[];for(let r of Fde)Gde(r)&&e.push(r.namespace);KI.enable(e.join(","))}o(Ude,"setLogLevel");function GXe(){return jR}o(GXe,"getLogLevel");var Dde={verbose:400,info:300,warning:200,error:100};function HXe(t){let e=JR.extend(t);return qde(JR,e),{error:VR(e,"error"),warning:VR(e,"warning"),info:VR(e,"info"),verbose:VR(e,"verbose")}}o(HXe,"createClientLogger");function qde(t,e){e.log=(...r)=>{t.log(...r)}}o(qde,"patchLogMethod");function VR(t,e){let r=Object.assign(t.extend(e),{level:e});if(qde(t,r),Gde(r)){let s=KI.disable();KI.enable(s+","+r.namespace)}return Fde.add(r),r}o(VR,"createLogger");function Gde(t){return!!(jR&&Dde[t.level]<=Dde[jR])}o(Gde,"shouldEnable");function Hde(t){return s4.includes(t)}o(Hde,"isAzureLogLevel");eg.AzureLogger=JR;eg.createClientLogger=HXe;eg.getLogLevel=GXe;eg.setLogLevel=Ude});var o4=m(ZI=>{"use strict";Object.defineProperty(ZI,"__esModule",{value:!0});var tg=new WeakMap,YR=new WeakMap,XI=class t{static{o(this,"AbortSignal")}constructor(){this.onabort=null,tg.set(this,[]),YR.set(this,!1)}get aborted(){if(!YR.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");return YR.get(this)}static get none(){return new t}addEventListener(e,r){if(!tg.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");tg.get(this).push(r)}removeEventListener(e,r){if(!tg.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");let s=tg.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 Vde(t){if(t.aborted)return;t.onabort&&t.onabort.call(t);let e=tg.get(t);e&&e.slice().forEach(r=>{r.call(t,{type:"abort"})}),YR.set(t,!0)}o(Vde,"abortSignal");var i4=class extends Error{static{o(this,"AbortError")}constructor(e){super(e),this.name="AbortError"}},n4=class{static{o(this,"AbortController")}constructor(e){if(this._signal=new XI,!!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(){Vde(this._signal)}static timeout(e){let r=new XI,s=setTimeout(Vde,e,r);return typeof s.unref=="function"&&s.unref(),r}};ZI.AbortController=n4;ZI.AbortError=i4;ZI.AbortSignal=XI});var Wde=m(xi=>{"use strict";Object.defineP
Line truncated
|
||||
`)+4,e.outputData[0].data=e._header+s.substring(n),lA("Output buffer: %o",e.outputData[0].data));let i;return this.proxy.protocol==="https:"?(lA("Creating `tls.Socket`: %o",this.connectOpts),i=sTe.connect(this.connectOpts)):(lA("Creating `net.Socket`: %o",this.connectOpts),i=rTe.connect(this.connectOpts)),await(0,iTe.once)(i,"connect"),i}};II.protocols=["http","https"];In.HttpProxyAgent=II;function aTe(t,...e){let r={},s;for(s in t)e.includes(s)||(r[s]=t[s]);return r}o(aTe,"omit")});var E9=h(DI=>{"use strict";Object.defineProperty(DI,"__esModule",{value:!0});DI.state=void 0;DI.state={instrumenterImplementation:void 0}});var D9=h(UI=>{"use strict";Object.defineProperty(UI,"__esModule",{value:!0});UI.state=void 0;UI.state={operationRequestMap:new WeakMap}});var pZ=h(xA=>{"use strict";Object.defineProperty(xA,"__esModule",{value:!0});var xDe=require("os"),QDe=require("util");function RDe(t){return t&&typeof t=="object"&&"default"in t?t:{default:t}}o(RDe,"_interopDefaultLegacy");var TDe=RDe(QDe);function vDe(t,...e){process.stderr.write(`${TDe.default.format(t,...e)}${xDe.EOL}`)}o(vDe,"log");var sZ=typeof process<"u"&&process.env&&process.env.DEBUG||void 0,iZ,vO=[],PO=[],ib=[];sZ&&_O(sZ);var oZ=Object.assign(t=>aZ(t),{enable:_O,enabled:kO,disable:PDe,log:vDe});function _O(t){iZ=t,vO=[],PO=[];let e=/\*/g,r=t.split(",").map(s=>s.trim().replace(e,".*?"));for(let s of r)s.startsWith("-")?PO.push(new RegExp(`^${s.substr(1)}$`)):vO.push(new RegExp(`^${s}$`));for(let s of ib)s.enabled=kO(s.namespace)}o(_O,"enable");function kO(t){if(t.endsWith("*"))return!0;for(let e of PO)if(e.test(t))return!1;for(let e of vO)if(e.test(t))return!0;return!1}o(kO,"enabled");function PDe(){let t=iZ||"";return _O(""),t}o(PDe,"disable");function aZ(t){let e=Object.assign(r,{enabled:kO(t),destroy:_De,log:oZ.log,namespace:t,extend:kDe});function r(...s){e.enabled&&(s.length>0&&(s[0]=`${t} ${s[0]}`),e.log(...s))}return o(r,"debug"),ib.push(e),e}o(aZ,"createDebugger");function _De(){let t=ib.indexOf(this);return t>=0?(ib.splice(t,1),!0):!1}o(_De,"destroy");function kDe(t){let e=aZ(`${this.namespace}:${t}`);return e.log=this.log,e}o(kDe,"extend");var Qm=oZ,cZ=new Set,sb=typeof process<"u"&&process.env&&process.env.AZURE_LOG_LEVEL||void 0,ob,ab=Qm("azure");ab.log=(...t)=>{Qm.log(...t)};var DO=["verbose","info","warning","error"];sb&&(AZ(sb)?lZ(sb):console.error(`AZURE_LOG_LEVEL set to unknown log level '${sb}'; logging is not enabled. Acceptable values: ${DO.join(", ")}.`));function lZ(t){if(t&&!AZ(t))throw new Error(`Unknown log level '${t}'. Acceptable values: ${DO.join(",")}`);ob=t;let e=[];for(let r of cZ)dZ(r)&&e.push(r.namespace);Qm.enable(e.join(","))}o(lZ,"setLogLevel");function DDe(){return ob}o(DDe,"getLogLevel");var nZ={verbose:400,info:300,warning:200,error:100};function ODe(t){let e=ab.extend(t);return uZ(ab,e),{error:nb(e,"error"),warning:nb(e,"warning"),info:nb(e,"info"),verbose:nb(e,"verbose")}}o(ODe,"createClientLogger");function uZ(t,e){e.log=(...r)=>{t.log(...r)}}o(uZ,"patchLogMethod");function nb(t,e){let r=Object.assign(t.extend(e),{level:e});if(uZ(t,r),dZ(r)){let s=Qm.disable();Qm.enable(s+","+r.namespace)}return cZ.add(r),r}o(nb,"createLogger");function dZ(t){return!!(ob&&nZ[t.level]<=nZ[ob])}o(dZ,"shouldEnable");function AZ(t){return DO.includes(t)}o(AZ,"isAzureLogLevel");xA.AzureLogger=ab;xA.createClientLogger=ODe;xA.getLogLevel=DDe;xA.setLogLevel=lZ});var LO=h(Tm=>{"use strict";Object.defineProperty(Tm,"__esModule",{value:!0});var QA=new WeakMap,cb=new WeakMap,Rm=class t{static{o(this,"AbortSignal")}constructor(){this.onabort=null,QA.set(this,[]),cb.set(this,!1)}get aborted(){if(!cb.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");return cb.get(this)}static get none(){return new t}addEventListener(e,r){if(!QA.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");QA.get(this).push(r)}removeEventListener(e,r){if(!QA.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");let s=QA.get(this),n=s.indexOf(r);n>-1&&s.splice(n,1)}dispatchEvent(e){throw new Error("This is a stub dispatchEvent implementation that should not be used. It only exists for type-checking purposes.")}};function fZ(t){if(t.aborted)return;t.onabort&&t.onabort.call(t);let e=QA.get(t);e&&e.slice().forEach(r=>{r.call(t,{type:"abort"})}),cb.set(t,!0)}o(fZ,"abortSignal");var OO=class extends Error{static{o(this,"AbortError")}constructor(e){super(e),this.name="AbortError"}},MO=class{static{o(this,"AbortController")}constructor(e){if(this._signal=new Rm,!!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(){fZ(this._signal)}static timeout(e){let r=new Rm,s=setTimeout(fZ,e,r);return typeof s.unref=="function"&&s.unref(),r}};Tm.AbortController=MO;Tm.AbortError=OO;Tm.AbortSignal=Rm});var yZ=h(zr=>{"use strict";Object.defineProperty(zr,"__esModule",{value:!0});var MDe
Line truncated
|
||||
Polling from: ${r.config.operationLocation}
|
||||
Operation status: ${h}
|
||||
Polling status: ${efe.includes(h)?"Stopped":"Running"}`),h==="succeeded"){let d=a(u,r);if(d!==void 0)return{response:await e(d).catch(Xde({state:r,stateProxy:s,isOperationError:c})),status:h}}return{response:u,status:h}}o(oZe,"pollOperationHelper");async function ife(t){let{poll:e,state:r,stateProxy:s,options:i,getOperationStatus:n,getResourceLocation:a,getOperationLocation:c,isOperationError:l,withOperationLocation:u,getPollingInterval:h,processResult:d,getError:f,updateState:p,setDelay:A,isDone:g,setErrorAsResult:C}=t,{operationLocation:E}=r.config;if(E!==void 0){let{response:I,status:B}=await oZe({poll:e,getOperationStatus:n,state:r,stateProxy:s,operationLocation:E,getResourceLocation:a,isOperationError:l,options:i});if(rfe({status:B,response:I,state:r,stateProxy:s,isDone:g,processResult:d,getError:f,setErrorAsResult:C}),!efe.includes(B)){let x=h?.(I);x&&A(x);let R=c?.(I,r);if(R!==void 0){let D=E!==R;r.config.operationLocation=R,u?.(R,D)}else u?.(E,!1)}p?.(r,I)}}o(ife,"pollOperation");function nfe(t){let{azureAsyncOperation:e,operationLocation:r}=t;return r??e}o(nfe,"getOperationLocationPollingUrl");function ofe(t){return t.headers.location}o(ofe,"getLocationHeader");function afe(t){return t.headers["operation-location"]}o(afe,"getOperationLocationHeader");function cfe(t){return t.headers["azure-asyncoperation"]}o(cfe,"getAzureAsyncOperationHeader");function aZe(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}}}o(aZe,"findResourceLocation");function lfe(t){let{rawResponse:e,requestMethod:r,requestPath:s,resourceLocationConfig:i}=t,n=afe(e),a=cfe(e),c=nfe({operationLocation:n,azureAsyncOperation:a}),l=ofe(e),u=r?.toLocaleUpperCase();return c!==void 0?{mode:"OperationLocation",operationLocation:c,resourceLocation:aZe({requestMethod:u,location:l,requestPath:s,resourceLocationConfig:i})}:l!==void 0?{mode:"ResourceLocation",operationLocation:l}:u==="PUT"&&s?{mode:"Body",operationLocation:s}:void 0}o(lfe,"inferLroMode");function ufe(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 p4(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 ep.verbose(`LRO: unrecognized operation status: ${e}`),e}}o(ufe,"transformStatus");function cZe(t){var e;let{status:r}=(e=t.body)!==null&&e!==void 0?e:{};return ufe({status:r,statusCode:t.statusCode})}o(cZe,"getStatus");function lZe(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 ufe({status:n,statusCode:t.statusCode})}o(lZe,"getProvisioningState");function p4(t){return t===202?"running":t<300?"succeeded":"failed"}o(p4,"toOperationStatus");function hfe({rawResponse:t}){let e=t.headers["retry-after"];if(e!==void 0){let r=parseInt(e);return isNaN(r)?uZe(new Date(e)):r*1e3}}o(hfe,"parseRetryAfter");function dfe(t){let e=t.flatResponse.error;if(!e){ep.warning("The long-running operation failed but there is no error property in the response's body");return}if(!e.code||!e.message){ep.warning("The long-running operation failed but the error property in the response's body doesn't contain code or message");return}return e}o(dfe,"getErrorFromResponse");function uZe(t){let e=Math.floor(new Date().getTime()),r=t.getTime();if(e<r)return r-e}o(uZe,"calculatePollingIntervalFromDate");function ffe(t){let{response:e,state:r,operationLocation:s}=t;function i(){var a;switch((a=r.config.metadata)===null||a===void 0?void 0:a.mode){case void 0:return p4(e.rawResponse.statusCode);case"Body":return A4(e,r);default:return"running"}}o(i,"helper");let n=i();return n==="running"&&s===void 0?"succeeded":n}o(ffe,"getStatusFromInitialResponse");async function hZe(t){let{stateProxy:e,resourceLocationConfig:r,processResult:s,lro:i,setErrorAsResult:n}=t;return sfe({init:o(async()=>{let a=await i.sendInitialRequest(),c=lfe({rawResponse:a.rawResponse,requestPath:i.requestPath,requestMethod:i.requestMethod,resourceLocationConfig:r});return Object.assign({response:a,operationLocation:c?.operationLocation,resourceLocation:c?.resourceLocation},c?.mode?{metadata:{mode:c.mode}}:{})},"init"),stateProxy:e,processResult:s?({flatResponse:a},c)=>s(a,c):({flatResponse:a})=>a,getOperationStatus:ffe,setErrorAsResult:n})}o(hZe,"initHttpOperation");function pfe({rawResponse:t},e){var r;switch((r=e.config.metadata)===null||r===void 0?void 0:r.mode){case"OperationLocation":return nfe({opeLine truncated
|
||||
`:case"\r":case" ":case" ":continue;default:throw Error("invalid base64 string.")}switch(i){case 0:a=n,i=1;break;case 1:r[s++]=a<<2|(n&48)>>4,a=n,i=2;break;case 2:r[s++]=(a&15)<<4|(n&60)>>2,a=n,i=3;break;case 3:r[s++]=(a&3)<<6|n,i=0;break}}if(i==1)throw Error("invalid base64 string.");return r.subarray(0,s)}o(JZe,"base64decode");ag.base64decode=JZe;function YZe(t){let e="",r=0,s,i=0;for(let n=0;n<t.length;n++)switch(s=t[n],r){case 0:e+=mu[s>>2],i=(s&3)<<4,r=1;break;case 1:e+=mu[i|s>>4],i=(s&15)<<2,r=2;break;case 2:e+=mu[i|s>>6],e+=mu[s&63],r=0;break}return r&&(e+=mu[i],e+="=",r==1&&(e+="=")),e}o(YZe,"base64encode");ag.base64encode=YZe});var zfe=m(pv=>{"use strict";Object.defineProperty(pv,"__esModule",{value:!0});pv.utf8read=void 0;var S4=o(t=>String.fromCharCode.apply(String,t),"fromCharCodes");function WZe(t){if(t.length<1)return"";let e=0,r=[],s=[],i=0,n,a=t.length;for(;e<a;)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(S4(s)),i=0);return r.length?(i&&r.push(S4(s.slice(0,i))),r.join("")):S4(s.slice(0,i))}o(WZe,"utf8read");pv.utf8read=WZe});var a0=m($c=>{"use strict";Object.defineProperty($c,"__esModule",{value:!0});$c.WireType=$c.mergeBinaryOptions=$c.UnknownFieldHandler=void 0;var KZe;(function(t){t.symbol=Symbol.for("protobuf-ts/unknown"),t.onRead=(r,s,i,n,a)=>{(e(s)?s[t.symbol]:s[t.symbol]=[]).push({no:i,wireType:n,data:a})},t.onWrite=(r,s,i)=>{for(let{no:n,wireType:a,data:c}of t.list(s))i.tag(n,a).raw(c)},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=o(r=>r&&Array.isArray(r[t.symbol]),"is")})(KZe=$c.UnknownFieldHandler||($c.UnknownFieldHandler={}));function XZe(t,e){return Object.assign(Object.assign({},t),e)}o(XZe,"mergeBinaryOptions");$c.mergeBinaryOptions=XZe;var ZZe;(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"})(ZZe=$c.WireType||($c.WireType={}))});var mv=m(un=>{"use strict";Object.defineProperty(un,"__esModule",{value:!0});un.varint32read=un.varint32write=un.int64toString=un.int64fromString=un.varint64write=un.varint64read=void 0;function e7e(){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")}o(e7e,"varint64read");un.varint64read=e7e;function t7e(t,e,r){for(let n=0;n<28;n=n+7){let a=t>>>n,c=!(!(a>>>7)&&e==0),l=(c?a|128:a)&255;if(r.push(l),!c)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 a=e>>>n,c=!!(a>>>7),l=(c?a|128:a)&255;if(r.push(l),!c)return}r.push(e>>>31&1)}}o(t7e,"varint64write");un.varint64write=t7e;var Av=65536*65536;function r7e(t){let e=t[0]=="-";e&&(t=t.slice(1));let r=1e6,s=0,i=0;function n(a,c){let l=Number(t.slice(a,c));i*=r,s=s*r+l,s>=Av&&(i=i+(s/Av|0),s=s%Av)}return o(n,"add1e6digit"),n(-24,-18),n(-18,-12),n(-12,-6),n(-6),[e,s,i]}o(r7e,"int64fromString");un.int64fromString=r7e;function s7e(t,e){if(e>>>0<=2097151)return""+(Av*e+(t>>>0));let r=t&16777215,s=(t>>>24|e<<8)>>>0&16777215,i=e>>16&65535,n=r+s*6777216+i*6710656,a=s+i*8147497,c=i*2,l=1e7;n>=l&&(a+=Math.floor(n/l),n%=l),a>=l&&(c+=Math.floor(a/l),a%=l);function u(h,d){let f=h?String(h):"";return d?"0000000".slice(f.length)+f:f}return o(u,"decimalFrom1e7"),u(c,0)+u(a,c)+u(n,1)}o(s7e,"int64toString");un.int64toString=s7e;function i7e(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)}}o(i7e,"varint32write");un.varint32write=i7e;function n7e(){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}o(n7e,"varint32read");un.varint32read=n7e});var sd=m(rd=>{"use strict";Object.defineProperty(rd,"__esModule",{value:!0});rd.PbLong=rd.PbULong=rd.detectBi=void 0;var c0=mv(),kt;function Vfe(){let t=new DataView(new ArrayBuffer(8));kt=globalThis.BigInt!==void 0&&typeof t.getBigInt64=="function"&&typeof t.getBigUint64=="function"&&typeof t.setBigInt64=="function"&&typeof t.setBigUint64=="function"?{MIN:BigInt("-9223372036854775808"),MAX:BigInt("922337203685477580
Line truncated
|
||||
`)}};Hv.RpcError=X4});var ez=m(Vv=>{"use strict";Object.defineProperty(Vv,"__esModule",{value:!0});Vv.mergeRpcOptions=void 0;var wpe=kr();function vet(t,e){if(!e)return t;let r={};zv(t,r),zv(e,r);for(let s of Object.keys(e)){let i=e[s];switch(s){case"jsonOptions":r.jsonOptions=wpe.mergeJsonOptions(t.jsonOptions,r.jsonOptions);break;case"binaryOptions":r.binaryOptions=wpe.mergeBinaryOptions(t.binaryOptions,r.binaryOptions);break;case"meta":r.meta={},zv(t.meta,r.meta),zv(e.meta,r.meta);break;case"interceptors":r.interceptors=t.interceptors?t.interceptors.concat(i):i.concat();break}}return r}o(vet,"mergeRpcOptions");Vv.mergeRpcOptions=vet;function zv(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}o(zv,"copy")});var rz=m(np=>{"use strict";Object.defineProperty(np,"__esModule",{value:!0});np.Deferred=np.DeferredState=void 0;var Yc;(function(t){t[t.PENDING=0]="PENDING",t[t.REJECTED=1]="REJECTED",t[t.RESOLVED=2]="RESOLVED"})(Yc=np.DeferredState||(np.DeferredState={}));var tz=class{static{o(this,"Deferred")}constructor(e=!0){this._state=Yc.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!==Yc.PENDING)throw new Error(`cannot resolve ${Yc[this.state].toLowerCase()}`);this._resolve(e),this._state=Yc.RESOLVED}reject(e){if(this.state!==Yc.PENDING)throw new Error(`cannot reject ${Yc[this.state].toLowerCase()}`);this._reject(e),this._state=Yc.REJECTED}resolvePending(e){this._state===Yc.PENDING&&this.resolve(e)}rejectPending(e){this._state===Yc.PENDING&&this.reject(e)}};np.Deferred=tz});var iz=m($v=>{"use strict";Object.defineProperty($v,"__esModule",{value:!0});$v.RpcOutputStreamController=void 0;var Bpe=rz(),op=kr(),sz=class{static{o(this,"RpcOutputStreamController")}constructor(){this._lis={nxt:[],msg:[],err:[],cmp:[]},this._closed=!1,this._itState={q:[]}}onNext(e){return this.addLis(e,this._lis.nxt)}onMessage(e){return this.addLis(e,this._lis.msg)}onError(e){return this.addLis(e,this._lis.err)}onComplete(e){return this.addLis(e,this._lis.cmp)}addLis(e,r){return r.push(e),()=>{let 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){op.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){op.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){op.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(){op.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:o(()=>{let e=this._itState;op.assert(e,"bad state"),op.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 Bpe.Deferred,e.p.promise)},"next")}}pushIt(e){let r=this._itState;if(r.p){let s=r.p;op.assert(s.state==Bpe.DeferredState.PENDING,"iterator contract broken"),"value"in e?s.resolve(e):s.reject(e),delete r.p}else r.q.push(e)}};$v.RpcOutputStreamController=sz});var oz=m(pg=>{"use strict";var Tet=pg&&pg.__awaiter||function(t,e,r,s){function i(n){return n instanceof r?n:new r(function(a){a(n)})}return o(i,"adopt"),new(r||(r=Promise))(function(n,a){function c(h){try{u(s.next(h))}catch(d){a(d)}}o(c,"fulfilled");function l(h){try{u(s.throw(h))}catch(d){a(d)}}o(l,"rejected");function u(h){h.done?n(h.value):i(h.value).then(c,l)}o(u,"step"),u((s=s.apply(t,e||[])).next())})};Object.defineProperty(pg,"__esModule",{value:!0});pg.UnaryCall=void 0;var nz=class{static{o(this,"UnaryCall")}constructor(e,r,s,i,n,a,c){this.method=e,this.requestHeaders=r,this.request=s,this.headers=i,this.response=n,this.status=a,this.trailers=c}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 Tet(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}})}};pg.UnaryCall=nz});var cz=m(Ag=>{"use strict";var _et=Ag&&Ag.__awaiter||function(t,e,r,s){function i(n){return n instanceof r?n:new r(function(a){a(n)})}return o(i,"adopt"),new(r||(r=Promise))(function(n,a){function c(h){try{u(s.next(h))}catch(d){a(d)}}o(c,"fulfilled");function
Line truncated
|
||||
Operation status: ${d}
|
||||
Polling status: ${bZ.includes(d)?"Stopped":"Running"}`),d==="succeeded"){let A=a(u,r);if(A!==void 0)return{response:await e(A).catch(IZ({state:r,stateProxy:s,isOperationError:c})),status:d}}return{response:u,status:d}}o(ZDe,"pollOperationHelper");async function xZ(t){let{poll:e,state:r,stateProxy:s,options:n,getOperationStatus:i,getResourceLocation:a,getOperationLocation:c,isOperationError:l,withOperationLocation:u,getPollingInterval:d,processResult:A,getError:p,updateState:f,setDelay:m,isDone:g,setErrorAsResult:y}=t,{operationLocation:E}=r.config;if(E!==void 0){let{response:C,status:I}=await ZDe({poll:e,getOperationStatus:i,state:r,stateProxy:s,operationLocation:E,getResourceLocation:a,isOperationError:l,options:n});if(SZ({status:I,response:C,state:r,stateProxy:s,isDone:g,processResult:A,getError:p,setErrorAsResult:y}),!bZ.includes(I)){let B=d?.(C);B&&m(B);let N=c?.(C,r);if(N!==void 0){let Q=E!==N;r.config.operationLocation=N,u?.(N,Q)}else u?.(E,!1)}f?.(r,C)}}o(xZ,"pollOperation");function QZ(t){let{azureAsyncOperation:e,operationLocation:r}=t;return r??e}o(QZ,"getOperationLocationPollingUrl");function RZ(t){return t.headers.location}o(RZ,"getLocationHeader");function TZ(t){return t.headers["operation-location"]}o(TZ,"getOperationLocationHeader");function vZ(t){return t.headers["azure-asyncoperation"]}o(vZ,"getAzureAsyncOperationHeader");function eOe(t){let{location:e,requestMethod:r,requestPath:s,resourceLocationConfig:n}=t;switch(r){case"PUT":return s;case"DELETE":return;default:switch(n){case"azure-async-operation":return;case"original-uri":return s;default:return e}}}o(eOe,"findResourceLocation");function PZ(t){let{rawResponse:e,requestMethod:r,requestPath:s,resourceLocationConfig:n}=t,i=TZ(e),a=vZ(e),c=QZ({operationLocation:i,azureAsyncOperation:a}),l=RZ(e),u=r?.toLocaleUpperCase();return c!==void 0?{mode:"OperationLocation",operationLocation:c,resourceLocation:eOe({requestMethod:u,location:l,requestPath:s,resourceLocationConfig:n})}:l!==void 0?{mode:"ResourceLocation",operationLocation:l}:u==="PUT"&&s?{mode:"Body",operationLocation:s}:void 0}o(PZ,"inferLroMode");function _Z(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 JO(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 iu.verbose(`LRO: unrecognized operation status: ${e}`),e}}o(_Z,"transformStatus");function tOe(t){var e;let{status:r}=(e=t.body)!==null&&e!==void 0?e:{};return _Z({status:r,statusCode:t.statusCode})}o(tOe,"getStatus");function rOe(t){var e,r;let{properties:s,provisioningState:n}=(e=t.body)!==null&&e!==void 0?e:{},i=(r=s?.provisioningState)!==null&&r!==void 0?r:n;return _Z({status:i,statusCode:t.statusCode})}o(rOe,"getProvisioningState");function JO(t){return t===202?"running":t<300?"succeeded":"failed"}o(JO,"toOperationStatus");function kZ({rawResponse:t}){let e=t.headers["retry-after"];if(e!==void 0){let r=parseInt(e);return isNaN(r)?sOe(new Date(e)):r*1e3}}o(kZ,"parseRetryAfter");function DZ(t){let e=t.flatResponse.error;if(!e){iu.warning("The long-running operation failed but there is no error property in the response's body");return}if(!e.code||!e.message){iu.warning("The long-running operation failed but the error property in the response's body doesn't contain code or message");return}return e}o(DZ,"getErrorFromResponse");function sOe(t){let e=Math.floor(new Date().getTime()),r=t.getTime();if(e<r)return r-e}o(sOe,"calculatePollingIntervalFromDate");function OZ(t){let{response:e,state:r,operationLocation:s}=t;function n(){var a;switch((a=r.config.metadata)===null||a===void 0?void 0:a.mode){case void 0:return JO(e.rawResponse.statusCode);case"Body":return YO(e,r);default:return"running"}}o(n,"helper");let i=n();return i==="running"&&s===void 0?"succeeded":i}o(OZ,"getStatusFromInitialResponse");async function nOe(t){let{stateProxy:e,resourceLocationConfig:r,processResult:s,lro:n,setErrorAsResult:i}=t;return NZ({init:o(async()=>{let a=await n.sendInitialRequest(),c=PZ({rawResponse:a.rawResponse,requestPath:n.requestPath,requestMethod:n.requestMethod,resourceLocationConfig:r});return Object.assign({response:a,operationLocation:c?.operationLocation,resourceLocation:c?.resourceLocation},c?.mode?{metadata:{mode:c.mode}}:{})},"init"),stateProxy:e,processResult:s?({flatResponse:a},c)=>s(a,c):({flatResponse:a})=>a,getOperationStatus:OZ,setErrorAsResult:i})}o(nOe,"initHttpOperation");function MZ({rawResponse:t},e){var r;switch((r=e.config.metadata)===null||r===void 0?void 0:r.mode){case"OperationLocation":return QZ({operationLocation:TZ(t),azureAsyncOperLine truncated
|
||||
`:case"\r":case" ":case" ":continue;default:throw Error("invalid base64 string.")}switch(n){case 0:a=i,n=1;break;case 1:r[s++]=a<<2|(i&48)>>4,a=i,n=2;break;case 2:r[s++]=(a&15)<<4|(i&60)>>2,a=i,n=3;break;case 3:r[s++]=(a&3)<<6|i,n=0;break}}if(n==1)throw Error("invalid base64 string.");return r.subarray(0,s)}o(qOe,"base64decode");kA.base64decode=qOe;function GOe(t){let e="",r=0,s,n=0;for(let i=0;i<t.length;i++)switch(s=t[i],r){case 0:e+=Ia[s>>2],n=(s&3)<<4,r=1;break;case 1:e+=Ia[n|s>>4],n=(s&15)<<2,r=2;break;case 2:e+=Ia[n|s>>6],e+=Ia[s&63],r=0;break}return r&&(e+=Ia[n],e+="=",r==1&&(e+="=")),e}o(GOe,"base64encode");kA.base64encode=GOe});var p7=h(xb=>{"use strict";Object.defineProperty(xb,"__esModule",{value:!0});xb.utf8read=void 0;var sM=o(t=>String.fromCharCode.apply(String,t),"fromCharCodes");function HOe(t){if(t.length<1)return"";let e=0,r=[],s=[],n=0,i,a=t.length;for(;e<a;)i=t[e++],i<128?s[n++]=i:i>191&&i<224?s[n++]=(i&31)<<6|t[e++]&63:i>239&&i<365?(i=((i&7)<<18|(t[e++]&63)<<12|(t[e++]&63)<<6|t[e++]&63)-65536,s[n++]=55296+(i>>10),s[n++]=56320+(i&1023)):s[n++]=(i&15)<<12|(t[e++]&63)<<6|t[e++]&63,n>8191&&(r.push(sM(s)),n=0);return r.length?(n&&r.push(sM(s.slice(0,n))),r.join("")):sM(s.slice(0,n))}o(HOe,"utf8read");xb.utf8read=HOe});var Lm=h(ho=>{"use strict";Object.defineProperty(ho,"__esModule",{value:!0});ho.WireType=ho.mergeBinaryOptions=ho.UnknownFieldHandler=void 0;var VOe;(function(t){t.symbol=Symbol.for("protobuf-ts/unknown"),t.onRead=(r,s,n,i,a)=>{(e(s)?s[t.symbol]:s[t.symbol]=[]).push({no:n,wireType:i,data:a})},t.onWrite=(r,s,n)=>{for(let{no:i,wireType:a,data:c}of t.list(s))n.tag(i,a).raw(c)},t.list=(r,s)=>{if(e(r)){let n=r[t.symbol];return s?n.filter(i=>i.no==s):n}return[]},t.last=(r,s)=>t.list(r,s).slice(-1)[0];let e=o(r=>r&&Array.isArray(r[t.symbol]),"is")})(VOe=ho.UnknownFieldHandler||(ho.UnknownFieldHandler={}));function zOe(t,e){return Object.assign(Object.assign({},t),e)}o(zOe,"mergeBinaryOptions");ho.mergeBinaryOptions=zOe;var JOe;(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"})(JOe=ho.WireType||(ho.WireType={}))});var Rb=h(fs=>{"use strict";Object.defineProperty(fs,"__esModule",{value:!0});fs.varint32read=fs.varint32write=fs.int64toString=fs.int64fromString=fs.varint64write=fs.varint64read=void 0;function YOe(){let t=0,e=0;for(let s=0;s<28;s+=7){let n=this.buf[this.pos++];if(t|=(n&127)<<s,(n&128)==0)return this.assertBounds(),[t,e]}let r=this.buf[this.pos++];if(t|=(r&15)<<28,e=(r&112)>>4,(r&128)==0)return this.assertBounds(),[t,e];for(let s=3;s<=31;s+=7){let n=this.buf[this.pos++];if(e|=(n&127)<<s,(n&128)==0)return this.assertBounds(),[t,e]}throw new Error("invalid varint")}o(YOe,"varint64read");fs.varint64read=YOe;function $Oe(t,e,r){for(let i=0;i<28;i=i+7){let a=t>>>i,c=!(!(a>>>7)&&e==0),l=(c?a|128:a)&255;if(r.push(l),!c)return}let s=t>>>28&15|(e&7)<<4,n=e>>3!=0;if(r.push((n?s|128:s)&255),!!n){for(let i=3;i<31;i=i+7){let a=e>>>i,c=!!(a>>>7),l=(c?a|128:a)&255;if(r.push(l),!c)return}r.push(e>>>31&1)}}o($Oe,"varint64write");fs.varint64write=$Oe;var Qb=65536*65536;function WOe(t){let e=t[0]=="-";e&&(t=t.slice(1));let r=1e6,s=0,n=0;function i(a,c){let l=Number(t.slice(a,c));n*=r,s=s*r+l,s>=Qb&&(n=n+(s/Qb|0),s=s%Qb)}return o(i,"add1e6digit"),i(-24,-18),i(-18,-12),i(-12,-6),i(-6),[e,s,n]}o(WOe,"int64fromString");fs.int64fromString=WOe;function jOe(t,e){if(e>>>0<=2097151)return""+(Qb*e+(t>>>0));let r=t&16777215,s=(t>>>24|e<<8)>>>0&16777215,n=e>>16&65535,i=r+s*6777216+n*6710656,a=s+n*8147497,c=n*2,l=1e7;i>=l&&(a+=Math.floor(i/l),i%=l),a>=l&&(c+=Math.floor(a/l),a%=l);function u(d,A){let p=d?String(d):"";return A?"0000000".slice(p.length)+p:p}return o(u,"decimalFrom1e7"),u(c,0)+u(a,c)+u(i,1)}o(jOe,"int64toString");fs.int64toString=jOe;function KOe(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)}}o(KOe,"varint32write");fs.varint32write=KOe;function XOe(){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}o(XOe,"varint32read");fs.varint32read=XOe});var Qc=h(xc=>{"use strict";Object.defineProperty(xc,"__esModule",{value:!0});xc.PbLong=xc.PbULong=xc.detectBi=void 0;var Fm=Rb(),Ve;function f7(){let t=new DataView(new ArrayBuffer(8));Ve=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"
Line truncated
|
||||
`)}};rw.RpcError=TM});var PM=h(nw=>{"use strict";Object.defineProperty(nw,"__esModule",{value:!0});nw.mergeRpcOptions=void 0;var J7=Dt();function CLe(t,e){if(!e)return t;let r={};sw(t,r),sw(e,r);for(let s of Object.keys(e)){let n=e[s];switch(s){case"jsonOptions":r.jsonOptions=J7.mergeJsonOptions(t.jsonOptions,r.jsonOptions);break;case"binaryOptions":r.binaryOptions=J7.mergeBinaryOptions(t.binaryOptions,r.binaryOptions);break;case"meta":r.meta={},sw(t.meta,r.meta),sw(e.meta,r.meta);break;case"interceptors":r.interceptors=t.interceptors?t.interceptors.concat(n):n.concat();break}}return r}o(CLe,"mergeRpcOptions");nw.mergeRpcOptions=CLe;function sw(t,e){if(!t)return;let r=e;for(let[s,n]of Object.entries(t))n instanceof Date?r[s]=new Date(n.getTime()):Array.isArray(n)?r[s]=n.concat():r[s]=n}o(sw,"copy")});var kM=h(uu=>{"use strict";Object.defineProperty(uu,"__esModule",{value:!0});uu.Deferred=uu.DeferredState=void 0;var Eo;(function(t){t[t.PENDING=0]="PENDING",t[t.REJECTED=1]="REJECTED",t[t.RESOLVED=2]="RESOLVED"})(Eo=uu.DeferredState||(uu.DeferredState={}));var _M=class{static{o(this,"Deferred")}constructor(e=!0){this._state=Eo.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!==Eo.PENDING)throw new Error(`cannot resolve ${Eo[this.state].toLowerCase()}`);this._resolve(e),this._state=Eo.RESOLVED}reject(e){if(this.state!==Eo.PENDING)throw new Error(`cannot reject ${Eo[this.state].toLowerCase()}`);this._reject(e),this._state=Eo.REJECTED}resolvePending(e){this._state===Eo.PENDING&&this.resolve(e)}rejectPending(e){this._state===Eo.PENDING&&this.reject(e)}};uu.Deferred=_M});var OM=h(iw=>{"use strict";Object.defineProperty(iw,"__esModule",{value:!0});iw.RpcOutputStreamController=void 0;var Y7=kM(),du=Dt(),DM=class{static{o(this,"RpcOutputStreamController")}constructor(){this._lis={nxt:[],msg:[],err:[],cmp:[]},this._closed=!1,this._itState={q:[]}}onNext(e){return this.addLis(e,this._lis.nxt)}onMessage(e){return this.addLis(e,this._lis.msg)}onError(e){return this.addLis(e,this._lis.err)}onComplete(e){return this.addLis(e,this._lis.cmp)}addLis(e,r){return r.push(e),()=>{let 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){du.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){du.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){du.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(){du.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:o(()=>{let e=this._itState;du.assert(e,"bad state"),du.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 Y7.Deferred,e.p.promise)},"next")}}pushIt(e){let r=this._itState;if(r.p){let s=r.p;du.assert(s.state==Y7.DeferredState.PENDING,"iterator contract broken"),"value"in e?s.resolve(e):s.reject(e),delete r.p}else r.q.push(e)}};iw.RpcOutputStreamController=DM});var LM=h(qA=>{"use strict";var ILe=qA&&qA.__awaiter||function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(a){a(i)})}return o(n,"adopt"),new(r||(r=Promise))(function(i,a){function c(d){try{u(s.next(d))}catch(A){a(A)}}o(c,"fulfilled");function l(d){try{u(s.throw(d))}catch(A){a(A)}}o(l,"rejected");function u(d){d.done?i(d.value):n(d.value).then(c,l)}o(u,"step"),u((s=s.apply(t,e||[])).next())})};Object.defineProperty(qA,"__esModule",{value:!0});qA.UnaryCall=void 0;var MM=class{static{o(this,"UnaryCall")}constructor(e,r,s,n,i,a,c){this.method=e,this.requestHeaders=r,this.request=s,this.headers=n,this.response=i,this.status=a,this.trailers=c}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 ILe(this,void 0,void 0,function*(){let[e,r,s,n]=yield Promise.all([this.headers,this.response,this.status,this.trailers]);return{method:this.method,requestHeaders:this.requestHeaders,request:this.request,headers:e,response:r,status:s,trailers:n}})}};qA.UnaryCall=MM});var UM=h(GA=>{"use strict";var BLe=GA&&GA.__awaiter||function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(a){a(i)})}return o(n,"adopt"),new(r||(r=Promise))(function(i,a){function c(d){try{u(s.next(d))}catch(A){a(A)}}o(c,"fulfilled");function l(d){t
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`))}o(xrt,"logUnexpecedPropertyAccessOnce");function Nrt(){Object.keys(pT).forEach(function(t){delete pT[t]})}o(Nrt,"resetLoggedProperties")});var mT=m(Xc=>{"use strict";Xc.__esModule=!0;Xc.HandlebarsEnvironment=a8;function LAe(t){return t&&t.__esModule?t:{default:t}}o(LAe,"_interopRequireDefault");var hp=Ri(),Rrt=ro(),n8=LAe(Rrt),vrt=t8(),Trt=OAe(),_rt=s8(),AT=LAe(_rt),Qrt=i8(),Prt="4.7.9";Xc.VERSION=Prt;var Ort=8;Xc.COMPILER_REVISION=Ort;var Drt=7;Xc.LAST_COMPATIBLE_COMPILER_REVISION=Drt;var krt={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"};Xc.REVISION_CHANGES=krt;var o8="[object Object]";function a8(t,e,r){this.helpers=t||{},this.partials=e||{},this.decorators=r||{},vrt.registerDefaultHelpers(this),Trt.registerDefaultDecorators(this)}o(a8,"HandlebarsEnvironment");a8.prototype={constructor:a8,logger:AT.default,log:AT.default.log,registerHelper:o(function(e,r){if(hp.toString.call(e)===o8){if(r)throw new n8.default("Arg not supported with multiple helpers");hp.extend(this.helpers,e)}else this.helpers[e]=r},"registerHelper"),unregisterHelper:o(function(e){delete this.helpers[e]},"unregisterHelper"),registerPartial:o(function(e,r){if(hp.toString.call(e)===o8)hp.extend(this.partials,e);else{if(typeof r>"u")throw new n8.default('Attempting to register a partial called "'+e+'" as undefined');this.partials[e]=r}},"registerPartial"),unregisterPartial:o(function(e){delete this.partials[e]},"unregisterPartial"),registerDecorator:o(function(e,r){if(hp.toString.call(e)===o8){if(r)throw new n8.default("Arg not supported with multiple decorators");hp.extend(this.decorators,e)}else this.decorators[e]=r},"registerDecorator"),unregisterDecorator:o(function(e){delete this.decorators[e]},"unregisterDecorator"),resetLoggedPropertyAccesses:o(function(){Qrt.resetLoggedProperties()},"resetLoggedPropertyAccesses")};var Mrt=AT.default.log;Xc.log=Mrt;Xc.createFrame=hp.createFrame;Xc.logger=AT.default});var UAe=m((gT,FAe)=>{"use strict";gT.__esModule=!0;function c8(t){this.string=t}o(c8,"SafeString");c8.prototype.toString=c8.prototype.toHTML=function(){return""+this.string};gT.default=c8;FAe.exports=gT.default});var qAe=m(l8=>{"use strict";l8.__esModule=!0;l8.wrapHelper=Lrt;function Lrt(t,e){if(typeof t!="function")return t;var r=o(function(){var i=arguments[arguments.length-1];return arguments[arguments.length-1]=e(i),t.apply(this,arguments)},"wrapper");return r}o(Lrt,"wrapHelper")});var jAe=m(od=>{"use strict";od.__esModule=!0;od.checkRevision=zrt;od.template=Vrt;od.wrapProgram=yT;od.resolvePartial=$rt;od.invokePartial=jrt;od.noop=VAe;function Frt(t){return t&&t.__esModule?t:{default:t}}o(Frt,"_interopRequireDefault");function Urt(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}o(Urt,"_interopRequireWildcard");var qrt=Ri(),xg=Urt(qrt),Grt=ro(),Eu=Frt(Grt),Cu=mT(),GAe=t8(),Hrt=qAe(),HAe=i8();function zrt(t){var e=t&&t[0]||1,r=Cu.COMPILER_REVISION;if(!(e>=Cu.LAST_COMPATIBLE_COMPILER_REVISION&&e<=Cu.COMPILER_REVISION))if(e<Cu.LAST_COMPATIBLE_COMPILER_REVISION){var s=Cu.REVISION_CHANGES[r],i=Cu.REVISION_CHANGES[e];throw new Eu.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 Eu.default("Template was precompiled with a newer version of Handlebars than the current runtime. Please update your runtime to a newer version ("+t[1]+").")}o(zrt,"checkRevision");function Vrt(t,e){if(!e)throw new Eu.default("No environment passed to template");if(!t||!t.main)throw new Eu.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(a,c,l){l.hash&&(c=xg.extend({},c,l.hash),l.ids&&(l.ids[0]=!0)),a=e.VM.resolvePartial.call(this,a,c,l),l.hooks=this.hooks,l.protoAccessControl=this.protoAccessControl;var u=e.VM.invokePartial.call(this,a,c,l);if(u==null&&e.compile&&(l.partials[l.name]=e.compile(a,t.compilerOptions,e),u=l.partials[l.name](c,l)),u!=null){if(l.indent){for(var h=u.split(`
|
||||
`),d=0,f=h.length;d<f&&!(!h[d]&&d+1===f);d++)h[d]=l.indent+h[d];u=h.join(`
|
||||
`)}return u}else throw new Eu.default("The partial "+l.name+" could not be compiled when running in runtime-only mode")}o(s,"invokePartialWrapper");var i={strict:o(function(c,l,u){if(!c||!(l in c))throw new Eu.default('"'+l+'" not defined in '+c,{loc:u});return i.lookupProperty(c,l)},"strict"),lookupProperty:o(function(c,l){var u=c[l];if(u==null||Object.prototype.hasOwnProperty.call(c,l)||HAe.resultIsAllowed(u,i.protoAccessControl,l))return u},"lookupProperty"),lookup:o(function(c,l){for(var u=c.length,h=0;h<u;h++){var d=c[h]&&i.lookupProperty(c[h],l);if(d!=null)return d}},"lookup"),lambda:o(function(c,l){return typeof c=="function"?c.call(l):c},"lambda"),escapeExpression:xg.escapeExpression,invokePartial:s,fn:o(function(c){var l=t[c];return l.decorator=t[c+"_d"],l},"fn"),programs:[],program:o(function(c,l,u,h,d){var f=this.programs[c],p=this.fn(c);return l||d||h||u?f=yT(this,c,p,l,u,h,d):f||(f=this.programs[c]=yT(this,c,p)),f},"program"),data:o(function(c,l){for(;c&&l--;)c=c._parent;return c},"data"),mergeIfNeeded:o(function(c,l){var u=c||l;return c&&l&&c!==l&&(u=xg.extend({},l,c)),u},"mergeIfNeeded"),nullContext:Object.seal({}),noop:e.VM.noop,compilerInfo:t.compiler};function n(a){var c=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],l=c.data;n._setup(c),!c.partial&&t.useData&&(l=Jrt(a,l));var u=void 0,h=t.useBlockParams?[]:void 0;t.useDepths&&(c.depths?u=a!=c.depths[0]?[a].concat(c.depths):c.depths:u=[a]);function d(f){return""+t.main(i,f,i.helpers,i.partials,l,h,u)}return o(d,"main"),d=$Ae(t.main,d,i,c.depths||[],l,h),d(a,c)}return o(n,"ret"),n.isTop=!0,n._setup=function(a){if(a.partial)i.protoAccessControl=a.protoAccessControl,i.helpers=a.helpers,i.partials=a.partials,i.decorators=a.decorators,i.hooks=a.hooks;else{var c={};zAe(c,e.helpers,i),zAe(c,a.helpers,i),i.helpers=c,t.usePartial&&(i.partials=i.mergeIfNeeded(a.partials,e.partials)),(t.usePartial||t.useDecorators)&&(i.decorators=xg.extend({},e.decorators,a.decorators)),i.hooks={},i.protoAccessControl=HAe.createProtoAccessControl(a);var l=a.allowCallsToHelperMissing||r;GAe.moveHelperToHooks(i,"helperMissing",l),GAe.moveHelperToHooks(i,"blockHelperMissing",l)}},n._child=function(a,c,l,u){if(t.useBlockParams&&!l)throw new Eu.default("must pass block params");if(t.useDepths&&!u)throw new Eu.default("must pass parent depths");return yT(i,a,t[a],c,0,l,u)},n}o(Vrt,"template");function yT(t,e,r,s,i,n,a){function c(l){var u=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],h=a;return a&&l!=a[0]&&!(l===t.nullContext&&a[0]===null)&&(h=[l].concat(a)),r(t,l,t.helpers,t.partials,u.data||s,n&&[u.blockParams].concat(n),h)}return o(c,"prog"),c=$Ae(r,c,t,a,s,n),c.program=e,c.depth=a?a.length:0,c.blockParams=i||0,c}o(yT,"wrapProgram");function $rt(t,e,r){return t?!t.call&&!r.name&&(r.name=t,t=ET(r.partials,t)):r.name==="@partial-block"?t=ET(r.data,"partial-block"):t=ET(r.partials,r.name),t}o($rt,"resolvePartial");function jrt(t,e,r){var s=ET(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!==VAe&&(function(){r.data=Cu.createFrame(r.data);var n=r.fn;i=r.data["partial-block"]=o(function(c){var l=arguments.length<=1||arguments[1]===void 0?{}:arguments[1];return l.data=Cu.createFrame(l.data),l.data["partial-block"]=s,n(c,l)},"partialBlockWrapper"),n.partials&&(r.partials=xg.extend({},r.partials,n.partials))})(),t===void 0&&i&&(t=i),t===void 0)throw new Eu.default("The partial "+r.name+" could not be found");if(t instanceof Function)return t(e,r)}o(jrt,"invokePartial");function VAe(){return""}o(VAe,"noop");function ET(t,e){if(t&&Object.prototype.hasOwnProperty.call(t,e))return t[e]}o(ET,"lookupOwnProperty");function Jrt(t,e){return(!e||!("root"in e))&&(e=e?Cu.createFrame(e):{},e.root=t),e}o(Jrt,"initData");function $Ae(t,e,r,s,i,n){if(t.decorator){var a={};e=t.decorator(e,a,r,s&&s[0],i,n,s),xg.extend(e,a)}return e}o($Ae,"executeDecorators");function zAe(t,e,r){e&&Object.keys(e).forEach(function(s){var i=e[s];t[s]=Yrt(i,r)})}o(zAe,"addHelpers");function Yrt(t,e){var r=e.lookupProperty;return Hrt.wrapHelper(t,function(s){return s.lookupProperty=r,s})}o(Yrt,"passLookupPropertyOption")});var u8=m((CT,JAe)=>{"use strict";CT.__esModule=!0;CT.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}};JAe.exports=CT.default});var ZAe=m((IT,XAe)=>{"use strict";IT.__esModule=!0;function d8(t){return t&&t.__esModule?t:{default:t}}o(d8,"_interopRequireDefault");function f8(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}o(f8,"_interopRequireWildcard");var Wrt=mT(),YAe=f8(Wrt),Krt=UAe(),Xrt=d8(Krt),Zrt=ro(),est=d8(Zrt),tst=Ri(),h8=f8(tst),rst=jAe
Line truncated
|
||||
See https://handlebarsjs.com/api-reference/runtime-options.html#options-to-control-prototype-access for details`))}o(g1e,"logUnexpecedPropertyAccessOnce");function E1e(){Object.keys(xw).forEach(function(t){delete xw[t]})}o(E1e,"resetLoggedProperties")});var Rw=h(Io=>{"use strict";Io.__esModule=!0;Io.HandlebarsEnvironment=UL;function ate(t){return t&&t.__esModule?t:{default:t}}o(ate,"_interopRequireDefault");var gu=Yr(),y1e=Zs(),LL=ate(y1e),C1e=kL(),I1e=ste(),B1e=OL(),Qw=ate(B1e),b1e=ML(),w1e="4.7.9";Io.VERSION=w1e;var S1e=8;Io.COMPILER_REVISION=S1e;var N1e=7;Io.LAST_COMPATIBLE_COMPILER_REVISION=N1e;var x1e={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"};Io.REVISION_CHANGES=x1e;var FL="[object Object]";function UL(t,e,r){this.helpers=t||{},this.partials=e||{},this.decorators=r||{},C1e.registerDefaultHelpers(this),I1e.registerDefaultDecorators(this)}o(UL,"HandlebarsEnvironment");UL.prototype={constructor:UL,logger:Qw.default,log:Qw.default.log,registerHelper:o(function(e,r){if(gu.toString.call(e)===FL){if(r)throw new LL.default("Arg not supported with multiple helpers");gu.extend(this.helpers,e)}else this.helpers[e]=r},"registerHelper"),unregisterHelper:o(function(e){delete this.helpers[e]},"unregisterHelper"),registerPartial:o(function(e,r){if(gu.toString.call(e)===FL)gu.extend(this.partials,e);else{if(typeof r>"u")throw new LL.default('Attempting to register a partial called "'+e+'" as undefined');this.partials[e]=r}},"registerPartial"),unregisterPartial:o(function(e){delete this.partials[e]},"unregisterPartial"),registerDecorator:o(function(e,r){if(gu.toString.call(e)===FL){if(r)throw new LL.default("Arg not supported with multiple decorators");gu.extend(this.decorators,e)}else this.decorators[e]=r},"registerDecorator"),unregisterDecorator:o(function(e){delete this.decorators[e]},"unregisterDecorator"),resetLoggedPropertyAccesses:o(function(){b1e.resetLoggedProperties()},"resetLoggedPropertyAccesses")};var Q1e=Qw.default.log;Io.log=Q1e;Io.createFrame=gu.createFrame;Io.logger=Qw.default});var lte=h((Tw,cte)=>{"use strict";Tw.__esModule=!0;function qL(t){this.string=t}o(qL,"SafeString");qL.prototype.toString=qL.prototype.toHTML=function(){return""+this.string};Tw.default=qL;cte.exports=Tw.default});var ute=h(GL=>{"use strict";GL.__esModule=!0;GL.wrapHelper=R1e;function R1e(t,e){if(typeof t!="function")return t;var r=o(function(){var n=arguments[arguments.length-1];return arguments[arguments.length-1]=e(n),t.apply(this,arguments)},"wrapper");return r}o(R1e,"wrapHelper")});var mte=h(vc=>{"use strict";vc.__esModule=!0;vc.checkRevision=D1e;vc.template=O1e;vc.wrapProgram=vw;vc.resolvePartial=M1e;vc.invokePartial=L1e;vc.noop=fte;function T1e(t){return t&&t.__esModule?t:{default:t}}o(T1e,"_interopRequireDefault");function v1e(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}o(v1e,"_interopRequireWildcard");var P1e=Yr(),ZA=v1e(P1e),_1e=Zs(),wa=T1e(_1e),Sa=Rw(),dte=kL(),k1e=ute(),Ate=ML();function D1e(t){var e=t&&t[0]||1,r=Sa.COMPILER_REVISION;if(!(e>=Sa.LAST_COMPATIBLE_COMPILER_REVISION&&e<=Sa.COMPILER_REVISION))if(e<Sa.LAST_COMPATIBLE_COMPILER_REVISION){var s=Sa.REVISION_CHANGES[r],n=Sa.REVISION_CHANGES[e];throw new wa.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 ("+n+").")}else throw new wa.default("Template was precompiled with a newer version of Handlebars than the current runtime. Please update your runtime to a newer version ("+t[1]+").")}o(D1e,"checkRevision");function O1e(t,e){if(!e)throw new wa.default("No environment passed to template");if(!t||!t.main)throw new wa.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(a,c,l){l.hash&&(c=ZA.extend({},c,l.hash),l.ids&&(l.ids[0]=!0)),a=e.VM.resolvePartial.call(this,a,c,l),l.hooks=this.hooks,l.protoAccessControl=this.protoAccessControl;var u=e.VM.invokePartial.call(this,a,c,l);if(u==null&&e.compile&&(l.partials[l.name]=e.compile(a,t.compilerOptions,e),u=l.partials[l.name](c,l)),u!=null){if(l.indent){for(var d=u.split(`
|
||||
`),A=0,p=d.length;A<p&&!(!d[A]&&A+1===p);A++)d[A]=l.indent+d[A];u=d.join(`
|
||||
`)}return u}else throw new wa.default("The partial "+l.name+" could not be compiled when running in runtime-only mode")}o(s,"invokePartialWrapper");var n={strict:o(function(c,l,u){if(!c||!(l in c))throw new wa.default('"'+l+'" not defined in '+c,{loc:u});return n.lookupProperty(c,l)},"strict"),lookupProperty:o(function(c,l){var u=c[l];if(u==null||Object.prototype.hasOwnProperty.call(c,l)||Ate.resultIsAllowed(u,n.protoAccessControl,l))return u},"lookupProperty"),lookup:o(function(c,l){for(var u=c.length,d=0;d<u;d++){var A=c[d]&&n.lookupProperty(c[d],l);if(A!=null)return A}},"lookup"),lambda:o(function(c,l){return typeof c=="function"?c.call(l):c},"lambda"),escapeExpression:ZA.escapeExpression,invokePartial:s,fn:o(function(c){var l=t[c];return l.decorator=t[c+"_d"],l},"fn"),programs:[],program:o(function(c,l,u,d,A){var p=this.programs[c],f=this.fn(c);return l||A||d||u?p=vw(this,c,f,l,u,d,A):p||(p=this.programs[c]=vw(this,c,f)),p},"program"),data:o(function(c,l){for(;c&&l--;)c=c._parent;return c},"data"),mergeIfNeeded:o(function(c,l){var u=c||l;return c&&l&&c!==l&&(u=ZA.extend({},l,c)),u},"mergeIfNeeded"),nullContext:Object.seal({}),noop:e.VM.noop,compilerInfo:t.compiler};function i(a){var c=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],l=c.data;i._setup(c),!c.partial&&t.useData&&(l=F1e(a,l));var u=void 0,d=t.useBlockParams?[]:void 0;t.useDepths&&(c.depths?u=a!=c.depths[0]?[a].concat(c.depths):c.depths:u=[a]);function A(p){return""+t.main(n,p,n.helpers,n.partials,l,d,u)}return o(A,"main"),A=hte(t.main,A,n,c.depths||[],l,d),A(a,c)}return o(i,"ret"),i.isTop=!0,i._setup=function(a){if(a.partial)n.protoAccessControl=a.protoAccessControl,n.helpers=a.helpers,n.partials=a.partials,n.decorators=a.decorators,n.hooks=a.hooks;else{var c={};pte(c,e.helpers,n),pte(c,a.helpers,n),n.helpers=c,t.usePartial&&(n.partials=n.mergeIfNeeded(a.partials,e.partials)),(t.usePartial||t.useDecorators)&&(n.decorators=ZA.extend({},e.decorators,a.decorators)),n.hooks={},n.protoAccessControl=Ate.createProtoAccessControl(a);var l=a.allowCallsToHelperMissing||r;dte.moveHelperToHooks(n,"helperMissing",l),dte.moveHelperToHooks(n,"blockHelperMissing",l)}},i._child=function(a,c,l,u){if(t.useBlockParams&&!l)throw new wa.default("must pass block params");if(t.useDepths&&!u)throw new wa.default("must pass parent depths");return vw(n,a,t[a],c,0,l,u)},i}o(O1e,"template");function vw(t,e,r,s,n,i,a){function c(l){var u=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],d=a;return a&&l!=a[0]&&!(l===t.nullContext&&a[0]===null)&&(d=[l].concat(a)),r(t,l,t.helpers,t.partials,u.data||s,i&&[u.blockParams].concat(i),d)}return o(c,"prog"),c=hte(r,c,t,a,s,i),c.program=e,c.depth=a?a.length:0,c.blockParams=n||0,c}o(vw,"wrapProgram");function M1e(t,e,r){return t?!t.call&&!r.name&&(r.name=t,t=Pw(r.partials,t)):r.name==="@partial-block"?t=Pw(r.data,"partial-block"):t=Pw(r.partials,r.name),t}o(M1e,"resolvePartial");function L1e(t,e,r){var s=Pw(r.data,"partial-block");r.partial=!0,r.ids&&(r.data.contextPath=r.ids[0]||r.data.contextPath);var n=void 0;if(r.fn&&r.fn!==fte&&(function(){r.data=Sa.createFrame(r.data);var i=r.fn;n=r.data["partial-block"]=o(function(c){var l=arguments.length<=1||arguments[1]===void 0?{}:arguments[1];return l.data=Sa.createFrame(l.data),l.data["partial-block"]=s,i(c,l)},"partialBlockWrapper"),i.partials&&(r.partials=ZA.extend({},r.partials,i.partials))})(),t===void 0&&n&&(t=n),t===void 0)throw new wa.default("The partial "+r.name+" could not be found");if(t instanceof Function)return t(e,r)}o(L1e,"invokePartial");function fte(){return""}o(fte,"noop");function Pw(t,e){if(t&&Object.prototype.hasOwnProperty.call(t,e))return t[e]}o(Pw,"lookupOwnProperty");function F1e(t,e){return(!e||!("root"in e))&&(e=e?Sa.createFrame(e):{},e.root=t),e}o(F1e,"initData");function hte(t,e,r,s,n,i){if(t.decorator){var a={};e=t.decorator(e,a,r,s&&s[0],n,i,s),ZA.extend(e,a)}return e}o(hte,"executeDecorators");function pte(t,e,r){e&&Object.keys(e).forEach(function(s){var n=e[s];t[s]=U1e(n,r)})}o(pte,"addHelpers");function U1e(t,e){var r=e.lookupProperty;return k1e.wrapHelper(t,function(s){return s.lookupProperty=r,s})}o(U1e,"passLookupPropertyOption")});var HL=h((_w,gte)=>{"use strict";_w.__esModule=!0;_w.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}};gte.exports=_w.default});var Bte=h((kw,Ite)=>{"use strict";kw.__esModule=!0;function zL(t){return t&&t.__esModule?t:{default:t}}o(zL,"_interopRequireDefault");function JL(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}o(JL,"_interopRequireWildcard");var q1e=Rw(),Ete=JL(q1e),G1e=lte(),H1e=zL(G1e),V1e=Zs(),z1e=zL(V1e),J1e=Yr(),VL=JL(J1e),Y1e=mte
Line truncated
|
||||
`+this.lexer.showPosition()+`
|
||||
Expecting `+j.join(", ")+", got '"+(this.terminals_[x]||x)+"'":se="Parse error on line "+(d+1)+": Unexpected "+(x==1?"end of input":"'"+(this.terminals_[x]||x)+"'"),this.parseError(se,{text:this.lexer.match,token:this.terminals_[x]||x,line:this.lexer.yylineno,loc:C,expected:j})}}if(O[0]instanceof Array&&O.length>1)throw new Error("Parse Error: multiple actions possible at state: "+D+", token: "+x);switch(O[0]){case 1:a.push(x),c.push(this.lexer.yytext),l.push(this.lexer.yylloc),a.push(O[1]),x=null,R?(x=R,R=null):(f=this.lexer.yyleng,h=this.lexer.yytext,d=this.lexer.yylineno,C=this.lexer.yylloc,p>0&&p--);break;case 2:if(q=this.productions_[O[1]][1],Z.$=c[c.length-q],Z._$={first_line:l[l.length-(q||1)].first_line,last_line:l[l.length-1].last_line,first_column:l[l.length-(q||1)].first_column,last_column:l[l.length-1].last_column},E&&(Z._$.range=[l[l.length-(q||1)].range[0],l[l.length-1].range[1]]),z=this.performAction.call(Z,h,f,d,this.yy,O[1],c,l),typeof z<"u")return z;q&&(a=a.slice(0,-1*q*2),c=c.slice(0,-1*q),l=l.slice(0,-1*q)),a.push(this.productions_[O[1]][0]),c.push(Z.$),l.push(Z._$),H=u[a[a.length-2]][a[a.length-1]],a.push(H);break;case 3:return!0}}return!0},"parse")},e=(function(){var s={EOF:1,parseError:o(function(n,a){if(this.yy.parser)this.yy.parser.parseError(n,a);else throw new Error(n)},"parseError"),setInput:o(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},"setInput"),input:o(function(){var n=this._input[0];this.yytext+=n,this.yyleng++,this.offset++,this.match+=n,this.matched+=n;var a=n.match(/(?:\r\n?|\n).*/g);return a?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),n},"input"),unput:o(function(n){var a=n.length,c=n.split(/(?:\r\n?|\n)/g);this._input=n+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-a-1),this.offset-=a;var l=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),c.length-1&&(this.yylineno-=c.length-1);var u=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:c?(c.length===l.length?this.yylloc.first_column:0)+l[l.length-c.length].length-c[0].length:this.yylloc.first_column-a},this.options.ranges&&(this.yylloc.range=[u[0],u[0]+this.yyleng-a]),this},"unput"),more:o(function(){return this._more=!0,this},"more"),less:o(function(n){this.unput(this.match.slice(n))},"less"),pastInput:o(function(){var n=this.matched.substr(0,this.matched.length-this.match.length);return(n.length>20?"...":"")+n.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:o(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,"")},"upcomingInput"),showPosition:o(function(){var n=this.pastInput(),a=new Array(n.length+1).join("-");return n+this.upcomingInput()+`
|
||||
`+a+"^"},"showPosition"),next:o(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var n,a,c,l,u,h;this._more||(this.yytext="",this.match="");for(var d=this._currentRules(),f=0;f<d.length&&(c=this._input.match(this.rules[d[f]]),!(c&&(!a||c[0].length>a[0].length)&&(a=c,l=f,!this.options.flex)));f++);return a?(h=a[0].match(/(?:\r\n?|\n).*/g),h&&(this.yylineno+=h.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:h?h[h.length-1].length-h[h.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+a[0].length},this.yytext+=a[0],this.match+=a[0],this.matches=a,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._input=this._input.slice(a[0].length),this.matched+=a[0],n=this.performAction.call(this,this.yy,this,d[l],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})},"next"),lex:o(function(){var n=this.next();return typeof n<"u"?n:this.lex()},"lex"),begin:o(function(n){this.conditionStack.push(n)},"begin"),popState:o(function(){return this.conditionStack.pop()},"popState"),_currentRules:o(function(){return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules},"_currentRules"),topState:o(function(){return this.conditionStack[this.conditionStack.length-2]},"topState"),pushState:o(function(n){this.begin(n)},"begin")};return s.options={},s.performAction=o(function(n,a,c,l){function u(d,f){return a.yytext=a.yytext.substring(d,a.yyleng-f+d)}o(u,"strip");var h=l;switch(c){case 0:if(a.yytext.slice(-2)==="\\\\"?(u(0,1),this.begin("mu")):a.yytext.slice(-1)==="\\"?(u(0,1),this.begin("emu")):this.begin("mu"),a.yytext)return 15;break;case 1:return 15;case 2:return this.popState(),15;break;case 3:return this.begin("raw"),15;break;case 4:return this.popState(),this.conditionStack[this.conditionStack.length-1]==="raw"?15:(u(5,9),"END_RAW_BLOCK");case 5:return 15;case 6:return this.popState(),14;break;case 7:return 65;case 8:return 68;case 9:return 19;case 10:return this.popState(),this.begin("raw"),23;break;case 11:return 55;case 12:return 60;case 13:return 29;case 14:return 47;case 15:return this.popState(),44;break;case 16:return this.popState(),44;break;case 17:return 34;case 18:return 39;case 19:return 51;case 20:return 48;case 21:this.unput(a.yytext),this.popState(),this.begin("com");break;case 22:return this.popState(),14;break;case 23:return 48;case 24:return 73;case 25:return 72;case 26:return 72;case 27:return 87;case 28:break;case 29:return this.popState(),54;break;case 30:return this.popState(),33;break;case 31:return a.yytext=u(1,2).replace(/\\"/g,'"'),80;break;case 32:return a.yytext=u(1,2).replace(/\\'/g,"'"),80;break;case 33:return 85;case 34:return 82;case 35:return 82;case 36:return 83;case 37:return 84;case 38:return 81;case 39:return 75;case 40:return 77;case 41:return 72;case 42:return a.yytext=a.yytext.replace(/\\([\\\]])/g,"$1"),72;break;case 43:return"INVALID";case 44:return 5}},"anonymous"),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 o(r,"Parser"),r.prototype=t,t.Parser=r,new r})();wT.default=nst;rme.exports=wT.default});var NT=m((xT,ome)=>{"use strict";xT.__esModule=!0;function ost(t){return t&&t.__esModule?t:{default:t}}o(ost,"_interopRequireDefault");var ast=ro(),A8=ost(ast);function BT(){this.parents=[]}o(BT,"Visitor");BT.prototype={constructor:BT,mutating:!1,acceptKey:o(function(e,r){var s=this.accept(e[r]);if(this.mutating){if(s&&!BT.prototype[s.type])throw new A8.default('Unexpected node type "'+s.type+'" found when accepting '+r+" on "+e.type);e[r]=s}},"acceptKey"),acceptRequired:o(function(e,r){if(this.acceptKey(e,r),!e[r])throw new A8.default(e.type+" requires "+r)},"acceptRequired"),acceptArray:o(function(e){for(var r=0,s=e.length;r<s;r++)this.acceptKey(e,r),e[r]||(e.splice(r,1),r--,s--)},"acceptArray"),accept:o(function(e){if(e){if(!this[e.type])throw new A8.default("Unknown type: "+e.type,e);this.current&&this.parents.unshift(this.current),this.current=e;var r=this[e.type](e);if(this.current=this.parents.shift(),!this.mutating||r)return r;if(r!==!1)return e}},"accept"),Program:o(function(e){this.acceptArray(e.body)},"Program"),MustacheStatement:ST,Decorator:ST,BlockStatement:ime,DecoratorBlock:ime,PartialStatement:nme,PartialBlockStatement:o(function(e){nme.call(this,e),this.acceptKey(e,"program")},"PartialBlockStatement"),ContentStatement:o(function(){},"ContentStatement"),CommentStatement:o(function(){},"CommentStatement"),SubExpression:ST,PathExpression:o(function(){},"PathExpressionLine truncated
|
||||
`])}),e},"merge"),each:o(function(e){for(var r=0,s=this.source.length;r<s;r++)e(this.source[r])},"each"),empty:o(function(){var e=this.currentLocation||{start:{}};return new Ap(e.start.line,e.start.column,this.srcFile)},"empty"),wrap:o(function(e){var r=arguments.length<=1||arguments[1]===void 0?this.currentLocation||{start:{}}:arguments[1];return e instanceof Ap?e:(e=M8(e,this,r),new Ap(r.start.line,r.start.column,this.srcFile,e))},"wrap"),functionCall:o(function(e,r,s){return s=this.generateList(s),this.wrap([e,r?"."+r+"(":"(",s,")"])},"functionCall"),quotedString:o(function(e){return'"'+(e+"").replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")+'"'},"quotedString"),objectLiteral:o(function(e){var r=this,s=[];Object.keys(e).forEach(function(n){var a=M8(e[n],r);a!=="undefined"&&s.push([r.quotedString(n),":",a])});var i=this.generateList(s);return i.prepend("{"),i.add("}"),i},"objectLiteral"),generateList:o(function(e){for(var r=this.empty(),s=0,i=e.length;s<i;s++)s&&r.add(","),r.add(M8(e[s],this));return r},"generateList"),generateArray:o(function(e){var r=this.generateList(e);return r.prepend("["),r.add("]"),r},"generateArray")};DT.default=qme;Gme.exports=DT.default});var Jme=m((kT,jme)=>{"use strict";kT.__esModule=!0;function $me(t){return t&&t.__esModule?t:{default:t}}o($me,"_interopRequireDefault");var zme=mT(),iit=ro(),F8=$me(iit),nit=Ri(),oit=Hme(),Vme=$me(oit);function Qg(t){this.value=t}o(Qg,"Literal");function Pg(){}o(Pg,"JavaScriptCompiler");Pg.prototype={nameLookup:o(function(e,r){return this.internalNameLookup(e,r)},"nameLookup"),depthedLookup:o(function(e){return[this.aliasable("container.lookup"),"(depths, ",JSON.stringify(e),")"]},"depthedLookup"),compilerInfo:o(function(){var e=zme.COMPILER_REVISION,r=zme.REVISION_CHANGES[e];return[e,r]},"compilerInfo"),appendToBuffer:o(function(e,r,s){return nit.isArray(e)||(e=[e]),e=this.source.wrap(e,r),this.environment.isSimple?["return ",e,";"]:s?["buffer += ",e,";"]:(e.appendToBuffer=!0,e)},"appendToBuffer"),initializeBuffer:o(function(){return this.quotedString("")},"initializeBuffer"),internalNameLookup:o(function(e,r){return this.lookupPropertyFunctionIsUsed=!0,["lookupProperty(",e,",",JSON.stringify(r),")"]},"internalNameLookup"),lookupPropertyFunctionIsUsed:!1,compile:o(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,a=void 0,c=void 0,l=void 0,u=void 0;for(l=0,u=n.length;l<u;l++)a=n[l],this.source.currentLocation=a.loc,c=c||a.loc,this[a.opcode].apply(this,a.args);if(this.source.currentLocation=c,this.pushSource(""),this.stackSlot||this.inlineStack.length||this.compileStack.length)throw new F8.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) {
|
||||
Expecting `+ue.join(", ")+", got '"+(this.terminals_[B]||B)+"'":vr="Parse error on line "+(A+1)+": Unexpected "+(B==1?"end of input":"'"+(this.terminals_[B]||B)+"'"),this.parseError(vr,{text:this.lexer.match,token:this.terminals_[B]||B,line:this.lexer.yylineno,loc:y,expected:ue})}}if(D[0]instanceof Array&&D.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Q+", token: "+B);switch(D[0]){case 1:a.push(B),c.push(this.lexer.yytext),l.push(this.lexer.yylloc),a.push(D[1]),B=null,N?(B=N,N=null):(p=this.lexer.yyleng,d=this.lexer.yytext,A=this.lexer.yylineno,y=this.lexer.yylloc,f>0&&f--);break;case 2:if(me=this.productions_[D[1]][1],Re.$=c[c.length-me],Re._$={first_line:l[l.length-(me||1)].first_line,last_line:l[l.length-1].last_line,first_column:l[l.length-(me||1)].first_column,last_column:l[l.length-1].last_column},E&&(Re._$.range=[l[l.length-(me||1)].range[0],l[l.length-1].range[1]]),Se=this.performAction.call(Re,d,p,A,this.yy,D[1],c,l),typeof Se<"u")return Se;me&&(a=a.slice(0,-1*me*2),c=c.slice(0,-1*me),l=l.slice(0,-1*me)),a.push(this.productions_[D[1]][0]),c.push(Re.$),l.push(Re._$),Je=u[a[a.length-2]][a[a.length-1]],a.push(Je);break;case 3:return!0}}return!0},"parse")},e=(function(){var s={EOF:1,parseError:o(function(i,a){if(this.yy.parser)this.yy.parser.parseError(i,a);else throw new Error(i)},"parseError"),setInput:o(function(i){return this._input=i,this._more=this._less=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:o(function(){var i=this._input[0];this.yytext+=i,this.yyleng++,this.offset++,this.match+=i,this.matched+=i;var a=i.match(/(?:\r\n?|\n).*/g);return a?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),i},"input"),unput:o(function(i){var a=i.length,c=i.split(/(?:\r\n?|\n)/g);this._input=i+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-a-1),this.offset-=a;var l=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),c.length-1&&(this.yylineno-=c.length-1);var u=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:c?(c.length===l.length?this.yylloc.first_column:0)+l[l.length-c.length].length-c[0].length:this.yylloc.first_column-a},this.options.ranges&&(this.yylloc.range=[u[0],u[0]+this.yyleng-a]),this},"unput"),more:o(function(){return this._more=!0,this},"more"),less:o(function(i){this.unput(this.match.slice(i))},"less"),pastInput:o(function(){var i=this.matched.substr(0,this.matched.length-this.match.length);return(i.length>20?"...":"")+i.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:o(function(){var i=this.match;return i.length<20&&(i+=this._input.substr(0,20-i.length)),(i.substr(0,20)+(i.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:o(function(){var i=this.pastInput(),a=new Array(i.length+1).join("-");return i+this.upcomingInput()+`
|
||||
`+a+"^"},"showPosition"),next:o(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var i,a,c,l,u,d;this._more||(this.yytext="",this.match="");for(var A=this._currentRules(),p=0;p<A.length&&(c=this._input.match(this.rules[A[p]]),!(c&&(!a||c[0].length>a[0].length)&&(a=c,l=p,!this.options.flex)));p++);return a?(d=a[0].match(/(?:\r\n?|\n).*/g),d&&(this.yylineno+=d.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:d?d[d.length-1].length-d[d.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+a[0].length},this.yytext+=a[0],this.match+=a[0],this.matches=a,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._input=this._input.slice(a[0].length),this.matched+=a[0],i=this.performAction.call(this,this.yy,this,A[l],this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),i||void 0):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
||||
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:o(function(){var i=this.next();return typeof i<"u"?i:this.lex()},"lex"),begin:o(function(i){this.conditionStack.push(i)},"begin"),popState:o(function(){return this.conditionStack.pop()},"popState"),_currentRules:o(function(){return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules},"_currentRules"),topState:o(function(){return this.conditionStack[this.conditionStack.length-2]},"topState"),pushState:o(function(i){this.begin(i)},"begin")};return s.options={},s.performAction=o(function(i,a,c,l){function u(A,p){return a.yytext=a.yytext.substring(A,a.yyleng-p+A)}o(u,"strip");var d=l;switch(c){case 0:if(a.yytext.slice(-2)==="\\\\"?(u(0,1),this.begin("mu")):a.yytext.slice(-1)==="\\"?(u(0,1),this.begin("emu")):this.begin("mu"),a.yytext)return 15;break;case 1:return 15;case 2:return this.popState(),15;break;case 3:return this.begin("raw"),15;break;case 4:return this.popState(),this.conditionStack[this.conditionStack.length-1]==="raw"?15:(u(5,9),"END_RAW_BLOCK");case 5:return 15;case 6:return this.popState(),14;break;case 7:return 65;case 8:return 68;case 9:return 19;case 10:return this.popState(),this.begin("raw"),23;break;case 11:return 55;case 12:return 60;case 13:return 29;case 14:return 47;case 15:return this.popState(),44;break;case 16:return this.popState(),44;break;case 17:return 34;case 18:return 39;case 19:return 51;case 20:return 48;case 21:this.unput(a.yytext),this.popState(),this.begin("com");break;case 22:return this.popState(),14;break;case 23:return 48;case 24:return 73;case 25:return 72;case 26:return 72;case 27:return 87;case 28:break;case 29:return this.popState(),54;break;case 30:return this.popState(),33;break;case 31:return a.yytext=u(1,2).replace(/\\"/g,'"'),80;break;case 32:return a.yytext=u(1,2).replace(/\\'/g,"'"),80;break;case 33:return 85;case 34:return 82;case 35:return 82;case 36:return 83;case 37:return 84;case 38:return 81;case 39:return 75;case 40:return 77;case 41:return 72;case 42:return a.yytext=a.yytext.replace(/\\([\\\]])/g,"$1"),72;break;case 43:return"INVALID";case 44:return 5}},"anonymous"),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 o(r,"Parser"),r.prototype=t,t.Parser=r,new r})();Ow.default=j1e;Ste.exports=Ow.default});var Uw=h((Fw,Rte)=>{"use strict";Fw.__esModule=!0;function K1e(t){return t&&t.__esModule?t:{default:t}}o(K1e,"_interopRequireDefault");var X1e=Zs(),$L=K1e(X1e);function Mw(){this.parents=[]}o(Mw,"Visitor");Mw.prototype={constructor:Mw,mutating:!1,acceptKey:o(function(e,r){var s=this.accept(e[r]);if(this.mutating){if(s&&!Mw.prototype[s.type])throw new $L.default('Unexpected node type "'+s.type+'" found when accepting '+r+" on "+e.type);e[r]=s}},"acceptKey"),acceptRequired:o(function(e,r){if(this.acceptKey(e,r),!e[r])throw new $L.default(e.type+" requires "+r)},"acceptRequired"),acceptArray:o(function(e){for(var r=0,s=e.length;r<s;r++)this.acceptKey(e,r),e[r]||(e.splice(r,1),r--,s--)},"acceptArray"),accept:o(function(e){if(e){if(!this[e.type])throw new $L.default("Unknown type: "+e.type,e);this.current&&this.parents.unshift(this.current),this.current=e;var r=this[e.type](e);if(this.current=this.parents.shift(),!this.mutating||r)return r;if(r!==!1)return e}},"accept"),Program:o(function(e){this.acceptArray(e.body)},"Program"),MustacheStatement:Lw,Decorator:Lw,BlockStatement:xte,DecoratorBlock:xte,PartialStatement:Qte,PartialBlockStatement:o(function(e){Qte.call(this,e),this.acceptKey(e,"program")},"PartialBlockStatement"),ContentStatement:o(function(){},"ContentStatement"),CommentStatement:o(function(){},"CommentStatement"),SubExpression:Lw,PathExpression:o(function(){},"PathExpressionLine truncated
|
||||
`])}),e},"merge"),each:o(function(e){for(var r=0,s=this.source.length;r<s;r++)e(this.source[r])},"each"),empty:o(function(){var e=this.currentLocation||{start:{}};return new Iu(e.start.line,e.start.column,this.srcFile)},"empty"),wrap:o(function(e){var r=arguments.length<=1||arguments[1]===void 0?this.currentLocation||{start:{}}:arguments[1];return e instanceof Iu?e:(e=mF(e,this,r),new Iu(r.start.line,r.start.column,this.srcFile,e))},"wrap"),functionCall:o(function(e,r,s){return s=this.generateList(s),this.wrap([e,r?"."+r+"(":"(",s,")"])},"functionCall"),quotedString:o(function(e){return'"'+(e+"").replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")+'"'},"quotedString"),objectLiteral:o(function(e){var r=this,s=[];Object.keys(e).forEach(function(i){var a=mF(e[i],r);a!=="undefined"&&s.push([r.quotedString(i),":",a])});var n=this.generateList(s);return n.prepend("{"),n.add("}"),n},"objectLiteral"),generateList:o(function(e){for(var r=this.empty(),s=0,n=e.length;s<n;s++)s&&r.add(","),r.add(mF(e[s],this));return r},"generateList"),generateArray:o(function(e){var r=this.generateList(e);return r.prepend("["),r.add("]"),r},"generateArray")};$w.default=ure;dre.exports=$w.default});var gre=h((Ww,mre)=>{"use strict";Ww.__esModule=!0;function hre(t){return t&&t.__esModule?t:{default:t}}o(hre,"_interopRequireDefault");var pre=Rw(),WUe=Zs(),EF=hre(WUe),jUe=Yr(),KUe=Are(),fre=hre(KUe);function ip(t){this.value=t}o(ip,"Literal");function op(){}o(op,"JavaScriptCompiler");op.prototype={nameLookup:o(function(e,r){return this.internalNameLookup(e,r)},"nameLookup"),depthedLookup:o(function(e){return[this.aliasable("container.lookup"),"(depths, ",JSON.stringify(e),")"]},"depthedLookup"),compilerInfo:o(function(){var e=pre.COMPILER_REVISION,r=pre.REVISION_CHANGES[e];return[e,r]},"compilerInfo"),appendToBuffer:o(function(e,r,s){return jUe.isArray(e)||(e=[e]),e=this.source.wrap(e,r),this.environment.isSimple?["return ",e,";"]:s?["buffer += ",e,";"]:(e.appendToBuffer=!0,e)},"appendToBuffer"),initializeBuffer:o(function(){return this.quotedString("")},"initializeBuffer"),internalNameLookup:o(function(e,r){return this.lookupPropertyFunctionIsUsed=!0,["lookupProperty(",e,",",JSON.stringify(r),")"]},"internalNameLookup"),lookupPropertyFunctionIsUsed:!1,compile:o(function(e,r,s,n){this.environment=e,this.options=r,this.stringParams=this.options.stringParams,this.trackIds=this.options.trackIds,this.precompile=!n,this.name=this.environment.name,this.isChild=!!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 i=e.opcodes,a=void 0,c=void 0,l=void 0,u=void 0;for(l=0,u=i.length;l<u;l++)a=i[l],this.source.currentLocation=a.loc,c=c||a.loc,this[a.opcode].apply(this,a.args);if(this.source.currentLocation=c,this.pushSource(""),this.stackSlot||this.inlineStack.length||this.compileStack.length)throw new EF.default("Compile completed with content left on stack");this.decorators.isEmpty()?this.decorators=void 0:(this.useDecorators=!0,this.decorators.prepend(["var decorators = container.decorators, ",this.lookupPropertyFunctionVarDeclaration(),`;
|
||||
`]),this.decorators.push("return fn;"),n?this.decorators=Function.apply(this,["fn","props","container","depth0","data","blockParams","depths",this.decorators.merge()]):(this.decorators.prepend(`function(fn, props, container, depth0, data, blockParams, depths) {
|
||||
`),this.decorators.push(`}
|
||||
`),this.decorators=this.decorators.merge()));var h=this.createFunctionContext(i);if(this.isChild)return h;var d={compiler:this.compilerInfo(),main:h};this.decorators&&(d.main_d=this.decorators,d.useDecorators=!0);var f=this.context,p=f.programs,A=f.decorators;for(l=0,u=p.length;l<u;l++)d[l]=p[l],A[l]&&(d[l+"_d"]=A[l],d.useDecorators=!0);return this.environment.usePartial&&(d.usePartial=!0),this.options.data&&(d.useData=!0),this.useDepths&&(d.useDepths=!0),this.useBlockParams&&(d.useBlockParams=!0),this.options.compat&&(d.compat=!0),i?d.compilerOptions=this.options:(d.compiler=JSON.stringify(d.compiler),this.source.currentLocation={start:{line:1,column:0}},d=this.objectLiteral(d),r.srcName?(d=d.toStringWithSourceMap({file:r.destName}),d.map=d.map&&d.map.toString()):d=d.toString()),d},"compile"),preamble:o(function(){this.lastContext=0,this.source=new Vme.default(this.options.srcName),this.decorators=new Vme.default(this.options.srcName)},"preamble"),createFunctionContext:o(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(l){var u=r.aliases[l];u.children&&u.referenceCount>1&&(s+=", alias"+ ++n+"="+l,u.children[0]="alias"+n)}),this.lookupPropertyFunctionIsUsed&&(s+=", "+this.lookupPropertyFunctionVarDeclaration());var a=["container","depth0","helpers","partials","data"];(this.useBlockParams||this.useDepths)&&a.push("blockParams"),this.useDepths&&a.push("depths");var c=this.mergeSource(s);return e?(a.push(c),Function.apply(this,a)):this.source.wrap(["function(",a.join(","),`) {
|
||||
`,c,"}"])},"createFunctionContext"),mergeSource:o(function(e){var r=this.environment.isSimple,s=!this.forceBuffer,i=void 0,n=void 0,a=void 0,c=void 0;return this.source.each(function(l){l.appendToBuffer?(a?l.prepend(" + "):a=l,c=l):(a&&(n?a.prepend("buffer += "):i=!0,c.add(";"),a=c=void 0),n=!0,r||(s=!1))}),s?a?(a.prepend("return "),c.add(";")):n||this.source.push('return "";'):(e+=", buffer = "+(i?"":this.initializeBuffer()),a?(a.prepend("return buffer + "),c.add(";")):this.source.push("return buffer;")),e&&this.source.prepend("var "+e.substring(2)+(i?"":`;
|
||||
`),this.decorators=this.decorators.merge()));var d=this.createFunctionContext(n);if(this.isChild)return d;var A={compiler:this.compilerInfo(),main:d};this.decorators&&(A.main_d=this.decorators,A.useDecorators=!0);var p=this.context,f=p.programs,m=p.decorators;for(l=0,u=f.length;l<u;l++)A[l]=f[l],m[l]&&(A[l+"_d"]=m[l],A.useDecorators=!0);return this.environment.usePartial&&(A.usePartial=!0),this.options.data&&(A.useData=!0),this.useDepths&&(A.useDepths=!0),this.useBlockParams&&(A.useBlockParams=!0),this.options.compat&&(A.compat=!0),n?A.compilerOptions=this.options:(A.compiler=JSON.stringify(A.compiler),this.source.currentLocation={start:{line:1,column:0}},A=this.objectLiteral(A),r.srcName?(A=A.toStringWithSourceMap({file:r.destName}),A.map=A.map&&A.map.toString()):A=A.toString()),A},"compile"),preamble:o(function(){this.lastContext=0,this.source=new fre.default(this.options.srcName),this.decorators=new fre.default(this.options.srcName)},"preamble"),createFunctionContext:o(function(e){var r=this,s="",n=this.stackVars.concat(this.registers.list);n.length>0&&(s+=", "+n.join(", "));var i=0;Object.keys(this.aliases).forEach(function(l){var u=r.aliases[l];u.children&&u.referenceCount>1&&(s+=", alias"+ ++i+"="+l,u.children[0]="alias"+i)}),this.lookupPropertyFunctionIsUsed&&(s+=", "+this.lookupPropertyFunctionVarDeclaration());var a=["container","depth0","helpers","partials","data"];(this.useBlockParams||this.useDepths)&&a.push("blockParams"),this.useDepths&&a.push("depths");var c=this.mergeSource(s);return e?(a.push(c),Function.apply(this,a)):this.source.wrap(["function(",a.join(","),`) {
|
||||
`,c,"}"])},"createFunctionContext"),mergeSource:o(function(e){var r=this.environment.isSimple,s=!this.forceBuffer,n=void 0,i=void 0,a=void 0,c=void 0;return this.source.each(function(l){l.appendToBuffer?(a?l.prepend(" + "):a=l,c=l):(a&&(i?a.prepend("buffer += "):n=!0,c.add(";"),a=c=void 0),i=!0,r||(s=!1))}),s?a?(a.prepend("return "),c.add(";")):i||this.source.push('return "";'):(e+=", buffer = "+(n?"":this.initializeBuffer()),a?(a.prepend("return buffer + "),c.add(";")):this.source.push("return buffer;")),e&&this.source.prepend("var "+e.substring(2)+(n?"":`;
|
||||
`)),this.source.merge()},"mergeSource"),lookupPropertyFunctionVarDeclaration:o(function(){return`
|
||||
lookupProperty = container.lookupProperty || function(parent, propertyName) {
|
||||
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
|
||||
@@ -84,97 +84,77 @@ Expecting `+j.join(", ")+", got '"+(this.terminals_[x]||x)+"'":se="Parse error o
|
||||
}
|
||||
return undefined
|
||||
}
|
||||
`.trim()},"lookupPropertyFunctionVarDeclaration"),blockValue:o(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))},"blockValue"),ambiguousBlockValue:o(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),"}"])},"ambiguousBlockValue"),appendContent:o(function(e){this.pendingContent?e=this.pendingContent+e:this.pendingLocation=this.source.currentLocation,this.pendingContent=e},"appendContent"),append:o(function(){if(this.isInline())this.replaceStack(function(r){return[" != null ? ",r,' : ""']}),this.pushSource(this.appendToBuffer(this.popStack()));else{var e=this.popStack();this.pushSource(["if (",e," != null) { ",this.appendToBuffer(e,void 0,!0)," }"]),this.environment.isSimple&&this.pushSource(["else { ",this.appendToBuffer("''",void 0,!0)," }"])}},"append"),appendEscaped:o(function(){this.pushSource(this.appendToBuffer([this.aliasable("container.escapeExpression"),"(",this.popStack(),")"]))},"appendEscaped"),getContext:o(function(e){this.lastContext=e},"getContext"),pushContext:o(function(){this.pushStackLiteral(this.contextName(this.lastContext))},"pushContext"),lookupOnContext:o(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)},"lookupOnContext"),lookupBlockParam:o(function(e,r){this.useBlockParams=!0,this.push(["blockParams[",e[0],"][",e[1],"]"]),this.resolvePath("context",r,1)},"lookupBlockParam"),lookupData:o(function(e,r,s){e?this.pushStackLiteral("container.data(data, "+e+")"):this.pushStackLiteral("data"),this.resolvePath("data",r,0,!0,s)},"lookupData"),resolvePath:o(function(e,r,s,i,n){var a=this;if(this.options.strict||this.options.assumeObjects){this.push(ait(this.options.strict&&n,this,r,s,e));return}for(var c=r.length,l=o(function(h){a.replaceStack(function(d){var f=a.nameLookup(d,r[h],e);return i?[" && ",f]:[" != null ? ",f," : ",d]})},"_loop"),u=s;u<c;u++)l(u)},"resolvePath"),resolvePossibleLambda:o(function(){this.push([this.aliasable("container.lambda"),"(",this.popStack(),", ",this.contextName(0),")"])},"resolvePossibleLambda"),pushStringParam:o(function(e,r){this.pushContext(),this.pushString(r),r!=="SubExpression"&&(typeof e=="string"?this.pushString(e):this.pushStackLiteral(e))},"pushStringParam"),emptyHash:o(function(e){this.trackIds&&this.push("{}"),this.stringParams&&(this.push("{}"),this.push("{}")),this.pushStackLiteral(e?"undefined":"{}")},"emptyHash"),pushHash:o(function(){this.hash&&this.hashes.push(this.hash),this.hash={values:{},types:[],contexts:[],ids:[]}},"pushHash"),popHash:o(function(){var e=this.hash;this.hash=this.hashes.pop(),this.trackIds&&this.push(this.objectLiteral(e.ids)),this.stringParams&&(this.push(this.objectLiteral(e.contexts)),this.push(this.objectLiteral(e.types))),this.push(this.objectLiteral(e.values))},"popHash"),pushString:o(function(e){this.pushStackLiteral(this.quotedString(e))},"pushString"),pushLiteral:o(function(e){this.pushStackLiteral(e)},"pushLiteral"),pushProgram:o(function(e){e!=null?this.pushStackLiteral(this.programExpression(e)):this.pushStackLiteral(null)},"pushProgram"),registerDecorator:o(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;"])},"registerDecorator"),invokeHelper:o(function(e,r,s){var i=this.popStack(),n=this.setupHelper(e,r),a=[];s&&a.push(n.name),a.push(i),this.options.strict||a.push(this.aliasable("container.hooks.helperMissing"));var c=["(",this.itemsSeparatedBy(a,"||"),")"],l=this.source.functionCall(c,"call",n.callParams);this.push(l)},"invokeHelper"),itemsSeparatedBy:o(function(e,r){var s=[];s.push(e[0]);for(var i=1;i<e.length;i++)s.push(r,e[i]);return s},"itemsSeparatedBy"),invokeKnownHelper:o(function(e,r){var s=this.setupHelper(e,r);this.push(this.source.functionCall(s.name,"call",s.callParams))},"invokeKnownHelper"),invokeAmbiguous:o(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"),a=["(","(helper = ",n," || ",s,")"];this.options.strict||(a[0]="(helper = ",a.push(" != null ? helper : ",this.aliasable("container.hooks.helperMissing"))),this.push(["(",a,i.paramsInit?["),(",i.paramsInit]:[],"),","(typeof helper === ",this.aliasable('"function"')," ? ",this.source.functionCall("h
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 rge=m((Rtr,tge)=>{var FT=Kme().default,ege=Xme();FT.PrintVisitor=ege.PrintVisitor;FT.print=ege.print;tge.exports=FT;function Zme(t,e){var r=require("fs"),s=r.readFileSync(e,"utf8");t.exports=FT.compile(s)}o(Zme,"extension");typeof require<"u"&&require.extensions&&(require.extensions[".handlebars"]=Zme,require.extensions[".hbs"]=Zme)});var pge=m(HT=>{"use strict";Object.defineProperty(HT,"__esModule",{value:!0});HT.getProxyUrl=Tit;HT.checkBypass=fge;function Tit(t){let e=t.protocol==="https:";if(fge(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 GT(r)}catch{if(!r.startsWith("http://")&&!r.startsWith("https://"))return new GT(`http://${r}`)}else return}o(Tit,"getProxyUrl");function fge(t){if(!t.hostname)return!1;let e=t.hostname;if(_it(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(a=>a.trim().toUpperCase()).filter(a=>a))if(n==="*"||i.some(a=>a===n||a.endsWith(`.${n}`)||n.startsWith(".")&&a.endsWith(`${n}`)))return!0;return!1}o(fge,"checkBypass");function _it(t){let e=t.toLowerCase();return e==="localhost"||e.startsWith("127.")||e.startsWith("[::1]")||e.startsWith("[0:0:0:0:0:0:0:1]")}o(_it,"isLoopbackAddress");var GT=class extends URL{static{o(this,"DecodedURL")}constructor(e,r){super(e,r),this._decodedUsername=decodeURIComponent(super.username),this._decodedPassword=decodeURIComponent(super.password)}get username(){return this._decodedUsername}get password(){return this._decodedPassword}}});var mge=m(cr=>{"use strict";var Qit=cr&&cr.__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:o(function(){return e[r]},"get")}),Object.defineProperty(t,s,i)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),Pit=cr&&cr.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),jT=cr&&cr.__importStar||(function(){var t=o(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)},"ownKeys");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"&&Qit(r,e,s[i]);return Pit(r,e),
Line truncated
|
||||
`).forEach(r=>{r.match(Ult)||r.match(qlt)||(e+=r)}),Buffer.from(e,"base64")}o(Glt,"toDER");function Hlt(t,e="CERTIFICATE"){let s=t.toString("base64").match(/.{1,64}/g)||"";return[`-----BEGIN ${e}-----`,...s,`-----END ${e}-----`].join(`
|
||||
`).concat(`
|
||||
`)}o(Hlt,"fromDER")});var U_=m(gd=>{"use strict";Object.defineProperty(gd,"__esModule",{value:!0});gd.SHA2_HASH_ALGOS=gd.RSA_SIGNATURE_ALGOS=gd.ECDSA_SIGNATURE_ALGOS=void 0;gd.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"};gd.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"};gd.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 i3=m(q_=>{"use strict";Object.defineProperty(q_,"__esModule",{value:!0});q_.RFC3161TimestampVerificationError=void 0;var s3=class extends Error{static{o(this,"RFC3161TimestampVerificationError")}};q_.RFC3161TimestampVerificationError=s3});var qCe=m(nl=>{"use strict";var zlt=nl&&nl.__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:o(function(){return e[r]},"get")}),Object.defineProperty(t,s,i)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),Vlt=nl&&nl.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),$lt=nl&&nl.__importStar||(function(){var t=o(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)},"ownKeys");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"&&zlt(r,e,s[i]);return Vlt(r,e),r}})();Object.defineProperty(nl,"__esModule",{value:!0});nl.TSTInfo=void 0;var UCe=$lt($g()),jlt=U_(),Jlt=i3(),n3=class{static{o(this,"TSTInfo")}root;constructor(e){this.root=e}get version(){return this.root.subs[0].toInteger()}get genTime(){return this.root.subs[4].toDate()}get messageImprintHashAlgorithm(){let e=this.messageImprintObj.subs[0].subs[0].toOID();return jlt.SHA2_HASH_ALGOS[e]}get messageImprintHashedMessage(){return this.messageImprintObj.subs[1].value}get raw(){return this.root.toDER()}verify(e){let r=UCe.digest(this.messageImprintHashAlgorithm,e);if(!UCe.bufferEqual(r,this.messageImprintHashedMessage))throw new Jlt.RFC3161TimestampVerificationError("message imprint does not match artifact")}get messageImprintObj(){return this.root.subs[2]}};nl.TSTInfo=n3});var HCe=m(ol=>{"use strict";var Ylt=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:o(function(){return e[r]},"get")}),Object.defineProperty(t,s,i)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),Wlt=ol&&ol.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Klt=ol&&ol.__importStar||(function(){var t=o(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)},"ownKeys");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"&&Ylt(r,e,s[i]);return Wlt(r,e),r}})();Object.defineProperty(ol,"__esModule",{value:!0});ol.RFC3161Timestamp=void 0;var Xlt=M_(),o3=Klt($g()),GCe=U_(),Z0=i3(),Zlt=qCe(),eut="1.2.840.113549.1.7.2",tut="1.2.840.113549.1.9.16.1.4",rut="1.2.840.113549.1.9.4",a3=class t{static{o(this,"RFC3161Timestamp")}root;constructor(e){this.root=e}static parse(e){let r=Xlt.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 GCe.SHA2_HASH_ALGOS[e]}get signatureAlgorithm(){let e=this.signatureAlgorithmObj.subs[0].toOID();return GCe.ECDSA_SIGNATURE_ALGOS[e]}get signatureValue(){return this.signatureValueObj.value}get tstInfo(){return new Zlt.TSTInfo(this.eContentObj.subs[0].subs[0])}verify(e,r){if(!this.timeStampTokenObj)throw new Z0.RFC3161TimestampVerificationError("timeStampToken is missing");if(this.contentType!==eut)throw new Z0.RFC3161TimestampVerificationError(`incorrect content type: ${this.contentType}`);if(this.eContentType!==tut)throw new Z0.RFC3161TimestampVerificationError(`incorrect encapsulated content type: ${this.eContentType}`);this.tstInfo.verify(e),this.verifyMessageDigest(),this.verifySignature(r)}verifyMessageDigest(){let e=o3.digest(this.signerDigestAlgorithm,this.tstInfo.raw),r=this.messageDigestAttributeObj.subs[1].subs[0].valu
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 s0e=m(r0e=>{"use strict";var J5=Ou().Buffer;r0e._dbcs=ku;var Hs=-1,t0e=-2,sa=-10,Gi=-1e3,oy=new Array(256),yb=-1;for(xQ=0;xQ<256;xQ++)oy[xQ]=Hs;var xQ;function ku(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]=oy.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(oy.slice(0));var n=this.decodeTables.length;this.decodeTables.push(oy.slice(0));for(var a=this.decodeTables[0],s=129;s<=254;s++)for(var c=this.decodeTables[Gi-a[s]],l=48;l<=57;l++){if(c[l]===Hs)c[l]=Gi-i;else if(c[l]>Gi)throw new Error("gb18030 decode tables conflict at byte 2");for(var u=this.decodeTables[Gi-c[l]],h=129;h<=254;h++){if(u[h]===Hs)u[h]=Gi-n;else{if(u[h]===Gi-n)continue;if(u[h]>Gi)throw new Error("gb18030 decode tables conflict at byte 3")}for(var d=this.decodeTables[Gi-u[h]],f=48;f<=57;f++)d[f]===Hs&&(d[f]=t0e)}}}this.defaultCharUnicode=e.defaultCharUnicode,this.encodeTable=[],this.encodeTableSeq=[];var p={};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))}},qu=class{static{o(this,"Hash")}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?pft:fft);if(!i||s&&!y$.includes(i[1])||!lbe.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(a=>a.digest===this.digest);return n||!1}return s.digest===this.digest?s:!1}toString(e){return e?.strict&&!(y$.includes(this.algorithm)&&this.digest.match(dft)&&this.options.every(r=>r.match(Aft)))?"":`${this.algorithm}-${this.digest}${xb(this.options)}`}};function cbe(t,e,r,s){let i=t!=="",n=!1,a="",c=s.length-1;for(let u=0;u<c;u++){let h=qu.prototype.toString.call(s[u],r);h&&(n=!0,a+=h,a+=e)}let l=qu.prototype.toString.call(s[c],r);return l&&(n=!0,a+=l),i&&n?t+e+a:t+a}o(cbe,"integrityHashToString");var Lp=class{static{o(this,"Integrity")}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 y$)this[i]&&(s=cbe(s,r,e,this[i]))}else for(let i of Object.keys(this))s=cbe(s,r,e,this[i]);return s}concat(e,r){let s=typeof e=="string"?e:Bb(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(a=>n.digest===a.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(a=>n.digest===a.digest))||!1}pickAlgorithm(e,r){let s=e?.pickAlgorithm||bft,i=Object.keys(this);return r?.length&&(i=i.filter(n=>r.includes(n))),i.length?i.reduce((n,a)=>s(n,a)||n):null}};ml.exports.parse=uo;function uo(t,e){if(!t)return null;if(typeof t=="string")return g$(t,e);if(t.algorithm&&t.digest){let r=new Lp;return r[t.algorithm]=[t],g$(Bb(r,e),e)}else return g$(Bb(t,e),e)}o(uo,"parse");function g$(t,e){if(e?.single)return new qu(t,e);let r=t.trim().split(/\s+/).reduce((s,i)=>{let n=new qu(i,e);if(n.algorithm&&n.digest){let a=n.algorithm;Object.keys(s).includes(a)||(s[a]=[]),s[a].push(n)}return s},new Lp);return r.isEmpty()?null:r}o(g$,"_parse");ml.exports.stringify=Bb;function Bb(t,e){return t.algorithm&&t.digest?qu.prototype.toString.call(t,e):typeof t=="string"?Bb(uo(t,e),e):Lp.prototype.toString.call(t,e)}o(Bb,"stringify");ml.exports.fromHex=mft;function mft(t,e,r){let s=xb(r?.options);return uo(`${e}-${Buffer.from(t,"hex").toString("base64")}${s}`,r)}o(mft,"fromHex");ml.exports.fromData=gft;function gft(t,e){let r=e?.algorithms||[...C$],s=xb(e?.options);return r.reduce((i,n)=>{let a=Sb.createHash(n).update(t).digest("base64"),c=new qu(`${n}-${a}${s}`,e);if(c.algorithm&&c.digest){let l=c.algorithm;i[l]||(i[l]=[]),i[l].push(c)}return i},new Lp)}o(gft,"fromData");ml.exports.fromStream=yft;function yft(t,e){let r=I$(e);return new Promise((s,i)=>{t.pipe(r),t.on("error",i),r.on("error",i);let n;r.on("integrity",a=>{n=a}),r.on("end",()=>s(n)),r.resume()})}o(yft,"fromStream");ml.exports.checkData=Eft;function Eft(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=Sb.createHash(s).update(t).digest("base64"),n=uo({algorithm:s,digest:i}),a=n.match(e,r);if(r=r||{},a||!r.error)return a;if(typeof r.size=="number"&&t.length!==r.size){let c=new Error(`data size mismatch when checking ${e}.
|
||||
Wanted: ${r.size}
|
||||
Found: ${t.length}`);throw c.code="EBADSIZE",c.found=t.length,c.expected=r.size,c.sri=e,c}else{let c=new Error(`Integrity checksum failed when using ${s}: Wanted ${e}, but got ${n}. (${t.length} bytes)`);throw c.code="EINTEGRITY",c.found=n,c.expected=e,c.algorithm=s,c.sri=e,c}}o(Eft,"checkData");ml.exports.checkStream=Cft;function Cft(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=I$(r);return new Promise((i,n)=>{t.pipe(s),t.on("error",n),s.on("error",n);let a;s.on("verified",c=>{a=c}),s.on("end",()=>i(a)),s.resume()})}o(Cft,"checkStream");ml.exports.integrityStream=I$;function I$(t=Object.create(null)){return new E$(t)}o(I$,"integrityStream");ml.exports.create=Ift;function Ift(t){let e=t?.algorithms||[...C$],r=xb(t?.options),s=e.map(Sb.createHash);return{update:o(function(i,n){return s.forEach(a=>a.update(i,n)),this},"update"),digest:o(function(){return e.reduce((n,a)=>{let c=s.shift().digest("base64"),l=new qu(`${a}-${c}${r}`,t);return n[l.algorithm]||(n[l.algorithm]=[]),n[l.algorithm].push(l),n},new Lp)},"digest")}}o(Ift,"createIntegrity");function bft(t,e){return abe.indexOf(t.toLowerCase())>=abe.indexOf(e.toLowerCase())?t:e}o(bft,"getPrioritizedHash")});var w$=m((alr,pbe)=>{var ube=u$(),hbe=m$(),wft=gl(),dbe={shared:!1,ignoreCargoCult:!0},Bft={status:200,headers:{}},ly=o(t=>{let e={method:t.method,url:t.url,headers:{},compress:t.compress};return t.headers.forEach((r,s)=>{e.headers[s]=r}),e},"requestObject"),fbe=o(t=>{let e={status:t.status,headers:{}};return t.headers.forEach((r,s)=>{e.headers[s]=r}),e},"responseObject"),b$=class{static{o(this,"CachePolicy")}constructor({entry:e,request:r,response:s,options:i}){this.entry=e,this.request=ly(r),this.response=fbe(s),this.options=i,this.policy=new ube(this.request,this.response,dbe),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 ube(ly(e),Bft,dbe).storable()}satisfies(e){let r=ly(e);if(this.request.headers.host!==r.headers.host||this.request.compress!==r.compress)return!1;let s=new hbe(this.request),i=new hbe(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?wft.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=ly(e);return r.method="GET",!this.policy.satisfiesWithoutRevalidation(r)}responseHeaders(){return this.policy.responseHeaders()}revalidationHeaders(e){let r=ly(e);return this.policy.revalidationHeaders(r)}revalidated(e,r){let s=ly(e),i=fbe(r);return!this.policy.revalidatedPolicy(s,i).modified}};pbe.exports=b$});var mbe=m((llr,Abe)=>{var B$=class extends Error{static{o(this,"NotCachedError")}constructor(e){super(`request to ${e} failed: cache mode is 'only-if-cached' but no cached response is available.`),this.code="ENOTCACHED"}};Abe.exports={NotCachedError:B$}});var xbe=m((hlr,Sbe)=>{"use strict";var gbe=typeof process=="object"&&process?process:{stdout:null,stderr:null},Sft=require("events"),ybe=require("stream"),Ebe=require("string_decoder").StringDecoder,Gu=Symbol("EOF"),Hu=Symbol("maybeEmitEnd"),Sd=Symbol("emittedEnd"),FQ=Symbol("emittingEnd"),Nb=Symbol("emittedError"),UQ=Symbol("closed"),Cbe=Symbol("read"),qQ=Symbol("flush"),Ibe=Symbol("flushChunk"),gn=Symbol("encoding"),zu=Symbol("decoder"),GQ=Symbol("flowing"),Rb=Symbol("paused"),uy=Symbol("resume"),Ts=Symbol("bufferLength"),S$=Symbol("bufferPush"),x$=Symbol("bufferShift"),ni=Symbol("objectMode"),oi=Symbol("destroyed"),N$=Symbol("emitData"),bbe=Symbol("emitEnd"),R$=Symbol("emitEnd2"),Vu=Symbol("async"),vb=o(t=>Promise.resolve().then(t),"defer"),wbe=global._MP_NO_ITERATOR_SYMBOLS_!=="1",xft=wbe&&Symbol.asyncIterator||Symbol("asyncIterator not implemented"),Nft=wbe&&Symbol.iterator||Symbol("iterator not implemented"),Rft=o(t=>t==="end"||t==="finish"||t==="prefinish","isEndish"),vft=o(t=>t instanceof ArrayBuffer||typeof t=="object"&&t.constructor&&t.constructor.name==="ArrayBuffer"&&t.byteLength>=0,"isArrayBuffer"),Tft=o(t=>!Buffer.isBuffer(t)&&ArrayBuffer.isView(t),"isArrayBufferView"),HQ=class{static{o(this,"Pipe")}constructor(e,r,s){this.src=e,this.dest=r,this.opts=s,this.ondrain=()=>e[uy](),r.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},v$=class extends HQ{static{o(this,"PipeProxyErrors")}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)}};Sbe.exports=class Bbe extends yb
Line truncated
|
||||
`+a.map(f=>{let p=JSON.stringify(f);return`${p1(p)} ${p}`}).join(`
|
||||
`),l=o(async()=>{let f=ayt(El.join(t,"tmp"),s.tmpPrefix);return await B6(El.dirname(f),{recursive:!0}),{target:f,moved:!1}},"setup"),u=o(async f=>{if(!f.moved)return kSe(f.target,{recursive:!0,force:!0})},"teardown"),h=o(async f=>{await iyt(f.target,c,{flag:"wx"}),await B6(El.dirname(i),{recursive:!0}),await hyt(f.target,i),f.moved=!0},"write"),d=await l();try{await h(d)}finally{await u(d)}return a.reverse().map(f=>A1(t,f,!0))}o(dyt,"compact");fo.exports.insert=MSe;async function MSe(t,e,r,s={}){let{metadata:i,size:n,time:a}=s,c=$b(t,e),l={key:e,integrity:r&&oyt.stringify(r),time:a||Date.now(),size:n,metadata:i};try{await B6(El.dirname(c),{recursive:!0});let u=JSON.stringify(l);await tyt(c,`
|
||||
${p1(u)} ${u}`)}catch(u){if(u.code==="ENOENT")return;throw u}return A1(t,l)}o(MSe,"insert");fo.exports.find=fyt;async function fyt(t,e){let r=$b(t,e);try{return(await f1(r)).reduce((i,n)=>n&&n.key===e?A1(t,n):i,null)}catch(s){if(s.code==="ENOENT")return null;throw s}}o(fyt,"find");fo.exports.delete=pyt;function pyt(t,e,r={}){if(!r.removeFully)return MSe(t,e,null,r);let s=$b(t,e);return kSe(s,{recursive:!0,force:!0})}o(pyt,"del");fo.exports.lsStream=LSe;function LSe(t){let e=S6(t),r=new nyt({objectMode:!0});return Promise.resolve().then(async()=>{let{default:s}=await Promise.resolve().then(()=>(d1(),h1)),i=await w6(e);return await s(i,async n=>{let a=El.join(e,n),c=await w6(a);await s(c,async l=>{let u=El.join(a,l),h=await w6(u);await s(h,async d=>{let f=El.join(u,d);try{let A=(await f1(f)).reduce((g,C)=>(g.set(C.key,C),g),new Map);for(let g of A.values()){let C=A1(t,g);C&&r.write(C)}}catch(p){if(p.code==="ENOENT")return;throw p}},{concurrency:b6})},{concurrency:b6})},{concurrency:b6}),r.end(),r}).catch(s=>r.emit("error",s)),r}o(LSe,"lsStream");fo.exports.ls=Ayt;async function Ayt(t){return(await LSe(t).collect()).reduce((r,s)=>(r[s.key]=s,r),{})}o(Ayt,"ls");fo.exports.bucketEntries=f1;async function f1(t,e){let r=await ryt(t,"utf8");return myt(r,e)}o(f1,"bucketEntries");function myt(t){let e=[];return t.split(`
|
||||
`).forEach(r=>{if(!r)return;let s=r.split(" ");if(!s[1]||p1(s[1])!==s[0])return;let i;try{i=JSON.parse(s[1])}catch{}i&&e.push(i)}),e}o(myt,"_bucketEntries");fo.exports.bucketDir=S6;function S6(t){return El.join(t,`index-v${uyt}`)}o(S6,"bucketDir");fo.exports.bucketPath=$b;function $b(t,e){let r=FSe(e);return El.join.apply(El,[S6(t)].concat(lyt(r)))}o($b,"bucketPath");fo.exports.hashKey=FSe;function FSe(t){return USe(t,"sha256")}o(FSe,"hashKey");fo.exports.hashEntry=p1;function p1(t){return USe(t,"sha1")}o(p1,"hashEntry");function USe(t,e){return eyt.createHash(e).update(t).digest("hex")}o(USe,"hash");function A1(t,e,r){return!e.integrity&&!r?null:{key:e.key,integrity:e.integrity,path:e.integrity?cyt(t,e.integrity):void 0,size:e.size,time:e.time,metadata:e.metadata}}o(A1,"formatEntry");function w6(t){return syt(t).catch(e=>{if(e.code==="ENOENT"||e.code==="ENOTDIR")return[];throw e})}o(w6,"readdirOrEmpty")});var Jb=m(y1=>{"use strict";Object.defineProperty(y1,"__esModule",{value:!0});y1.LRUCache=void 0;var gyt=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,GSe=new Set,x6=typeof process=="object"&&process?process:{},HSe=o((t,e,r,s)=>{typeof x6.emitWarning=="function"?x6.emitWarning(t,e,r,s):console.error(`[${r}] ${e}: ${t}`)},"I"),g1=globalThis.AbortController,qSe=globalThis.AbortSignal;if(typeof g1>"u"){qSe=class{static{o(this,"L")}onabort;_onabort=[];reason;aborted=!1;addEventListener(r,s){this._onabort.push(s)}},g1=class{static{o(this,"C")}constructor(){e()}signal=new qSe;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=x6.env?.LRU_CACHE_IGNORE_AC_WARNING!=="1",e=o(()=>{t&&(t=!1,HSe("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))},"t")}var yyt=o(t=>!GSe.has(t),"G"),Nd=o(t=>t&&t===Math.floor(t)&&t>0&&isFinite(t),"y"),zSe=o(t=>Nd(t)?t<=Math.pow(2,8)?Uint8Array:t<=Math.pow(2,16)?Uint16Array:t<=Math.pow(2,32)?Uint32Array:t<=Number.MAX_SAFE_INTEGER?m1:null:null,"M"),m1=class extends Array{static{o(this,"z")}constructor(t){super(t),this.fill(0)}},Eyt=class jb{static{o(this,"a")}heap;length;static#e=!1;static create(e){let r=zSe(e);if(!r)return[];jb.#e=!0;let s=new jb(e,r);return jb.#e=!1,s}constructor(e,r){if(!jb.#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]}},Cyt=class VSe{static{o(this,"a")}#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;#d;#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:o(r=>e.#f(r),"isBackgroundFetch"),backgroundFetch:o((r,s,i,n)=>e.#G(r,s,i,n),"backgroundFetch"),moveToTail:o(r=>e.#P(r),"moveToTail"),indexes:o(r=>e.#v(r),"indexes"),rindexes:o(r=>e.#T(r),"rindexes"),isStale:o(r=>e.#w(r),"isStale")}}get max(){return this.#e}get maxSize(){return this.#t}get calculatedSize(){return this.#d}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:a,updateAgeOnHas:c,allowStale:l,dispose:u,onInsert:h,disposeAfter:d,noDisposeOnSet:f,noUpdateTTL:p,maxSize:A=0,maxEntrySize:g=0,sizeCalculation:C,fetchMethod:E,memoMethod:I,noDeleteOnFetchRejection:B,noDeleteOnStaleGet:x,allowStaleOnFetchRejection:R,allowStaleOnFetchAbort:D,ignoreFetchAbort:O,perf:L}=e;if(L!==void 0&&typeof L?.now!="function")throw new TypeError("perf option must have a now() method if specified");if(this.#l=L??gyt,r!==0&&!Nd(r))throw new TypeError("max option must be a nonnegative integer");let z=r?zSe(r):Array;if(!z)throw new Error("invalid max value: "+r);if(this.#e=r,this.#t=A,this.maxEntrySize=g||this.#t,this.sizeCalculation=C,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(I!==void 0&&typeof I!="
Line truncated
|
||||
Wanted: ${t}
|
||||
Found: ${e}`);return r.code="EINTEGRITY",r.expected=t,r.found=e,r}o(tEt,"checksumError")});var fxe=m((Jhr,U6)=>{"use strict";var lxe=Cy(),uxe=Yb(),hxe=cxe(),rEt=Tb(),{PassThrough:sEt}=O$(),iEt=Up(),dxe=o(t=>({algorithms:["sha512"],...t}),"putOpts");U6.exports=nEt;async function nEt(t,e,r,s={}){let{memoize:i}=s;s=dxe(s);let n=await hxe(t,r,s),a=await lxe.insert(t,e,n.integrity,{...s,size:n.size});return i&&uxe.put(t,a,r,s),n.integrity}o(nEt,"putData");U6.exports.stream=oEt;function oEt(t,e,r={}){let{memoize:s}=r;r=dxe(r);let i,n,a,c,l=new iEt;if(s){let h=new sEt().on("collect",d=>{c=d});l.push(h)}let u=hxe.stream(t,r).on("integrity",h=>{i=h}).on("size",h=>{n=h}).on("error",h=>{a=h});return l.push(u),l.push(new rEt({async flush(){if(!a){let h=await lxe.insert(t,e,i,{...r,size:n});s&&c&&uxe.put(t,h,c,r),l.emit("integrity",i),l.emit("size",n)}}})),l}o(oEt,"putStream")});var Txe=m(ut=>{"use strict";var zs=o((t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),"R"),aEt=zs(t=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.range=t.balanced=void 0;var e=o((i,n,a)=>{let c=i instanceof RegExp?r(i,a):i,l=n instanceof RegExp?r(n,a):n,u=c!==null&&l!=null&&(0,t.range)(c,l,a);return u&&{start:u[0],end:u[1],pre:a.slice(0,u[0]),body:a.slice(u[0]+c.length,u[1]),post:a.slice(u[1]+l.length)}},"Gs");t.balanced=e;var r=o((i,n)=>{let a=n.match(i);return a?a[0]:null},"Ie"),s=o((i,n,a)=>{let c,l,u,h,d,f=a.indexOf(i),p=a.indexOf(n,f+1),A=f;if(f>=0&&p>0){if(i===n)return[f,p];for(c=[],u=a.length;A>=0&&!d;){if(A===f)c.push(A),f=a.indexOf(i,A+1);else if(c.length===1){let g=c.pop();g!==void 0&&(d=[g,p])}else l=c.pop(),l!==void 0&&l<u&&(u=l,h=p),p=a.indexOf(n,A+1);A=f<p&&f>=0?f:p}c.length&&h!==void 0&&(d=[u,h])}return d},"zs");t.range=s}),cEt=zs(t=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EXPANSION_MAX=void 0,t.expand=R;var e=aEt(),r="\0SLASH"+Math.random()+"\0",s="\0OPEN"+Math.random()+"\0",i="\0CLOSE"+Math.random()+"\0",n="\0COMMA"+Math.random()+"\0",a="\0PERIOD"+Math.random()+"\0",c=new RegExp(r,"g"),l=new RegExp(s,"g"),u=new RegExp(i,"g"),h=new RegExp(n,"g"),d=new RegExp(a,"g"),f=/\\\\/g,p=/\\{/g,A=/\\}/g,g=/\\,/g,C=/\\./g;t.EXPANSION_MAX=1e5;function E(U){return isNaN(U)?U.charCodeAt(0):parseInt(U,10)}o(E,"ce");function I(U){return U.replace(f,r).replace(p,s).replace(A,i).replace(g,n).replace(C,a)}o(I,"Qs");function B(U){return U.replace(c,"\\").replace(l,"{").replace(u,"}").replace(h,",").replace(d,".")}o(B,"ti");function x(U){if(!U)return[""];let q=[],H=(0,e.balanced)("{","}",U);if(!H)return U.split(",");let{pre:j,body:se,post:_e}=H,we=j.split(",");we[we.length-1]+="{"+se+"}";let le=x(_e);return _e.length&&(we[we.length-1]+=le.shift(),we.push.apply(we,le)),q.push.apply(q,we),q}o(x,"Ve");function R(U,q={}){if(!U)return[];let{max:H=t.EXPANSION_MAX}=q;return U.slice(0,2)==="{}"&&(U="\\{\\}"+U.slice(2)),Z(I(U),H,!0).map(B)}o(R,"ei");function D(U){return"{"+U+"}"}o(D,"si");function O(U){return/^-?0\d/.test(U)}o(O,"ii");function L(U,q){return U<=q}o(L,"ri");function z(U,q){return U>=q}o(z,"ni");function Z(U,q,H){let j=[],se=(0,e.balanced)("{","}",U);if(!se)return[U];let _e=se.pre,we=se.post.length?Z(se.post,q,!1):[""];if(/\$$/.test(se.pre))for(let le=0;le<we.length&&le<q;le++){let at=_e+"{"+se.body+"}"+we[le];j.push(at)}else{let le=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(se.body),at=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(se.body),Ze=le||at,yt=se.body.indexOf(",")>=0;if(!Ze&&!yt)return se.post.match(/,(?!,).*\}/)?(U=se.pre+"{"+se.body+i+se.post,Z(U,q,!0)):[U];let Oe;if(Ze)Oe=se.body.split(/\.\./);else if(Oe=x(se.body),Oe.length===1&&Oe[0]!==void 0&&(Oe=Z(Oe[0],q,!1).map(D),Oe.length===1))return we.map(Ft=>se.pre+Oe[0]+Ft);let ht;if(Ze&&Oe[0]!==void 0&&Oe[1]!==void 0){let Ft=E(Oe[0]),es=E(Oe[1]),Sn=Math.max(Oe[0].length,Oe[1].length),St=Oe.length===3&&Oe[2]!==void 0?Math.abs(E(Oe[2])):1,mo=L;es<Ft&&(St*=-1,mo=z);let T=Oe.some(O);ht=[];for(let P=Ft;mo(P,es);P+=St){let k;if(at)k=String.fromCharCode(P),k==="\\"&&(k="");else if(k=String(P),T){let G=Sn-k.length;if(G>0){let W=new Array(G+1).join("0");P<0?k="-"+W+k.slice(1):k=W+k}}ht.push(k)}}else{ht=[];for(let Ft=0;Ft<Oe.length;Ft++)ht.push.apply(ht,Z(Oe[Ft],q,!1))}for(let Ft=0;Ft<ht.length;Ft++)for(let es=0;es<we.length&&j.length<q;es++){let Sn=_e+ht[Ft]+we[es];(!H||Ze||Sn)&&j.push(Sn)}}return j}o(Z,"ht")}),lEt=zs(t=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.assertValidPattern=void 0;var e=1024*64,r=o(s=>{if(typeof s!="string")throw new TypeError("invalid pattern");if(s.length>e)throw new TypeError("pattern is too long")},"oi");t.assertValidPattern=r}),uEt=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],
Line truncated
|
||||
globstar while`,T,te,P,De,nt),this.matchOne(T.slice(te),P.slice(De),k))return this.debug("globstar found match!",te,v,nt),!0;if(nt==="."||nt===".."||!G.dot&&nt.charAt(0)==="."){this.debug("dot detected!",T,te,P,De);break}this.debug("globstar swallow a segment, and continue"),te++}return!!(k&&(this.debug(`
|
||||
>>> no match, partial?`,T,te,P,De),te===v))}let rt;if(typeof J=="string"?(rt=ge===J,this.debug("string match",J,ge,rt)):(rt=J.test(ge),this.debug("pattern match",J,ge,rt)),!rt)return!1}if(y===v&&S===F)return!0;if(y===v)return k;if(S===F)return y===v-1&&T[y]==="";throw new Error("wtf?")}braceExpand(){return(0,t.braceExpand)(this.pattern,this.options)}parse(T){(0,r.assertValidPattern)(T);let P=this.options;if(T==="**")return t.GLOBSTAR;if(T==="")return"";let k,G=null;(k=T.match(E))?G=P.dot?B:I:(k=T.match(c))?G=(P.nocase?P.dot?d:h:P.dot?u:l)(k[1]):(k=T.match(x))?G=(P.nocase?P.dot?D:R:P.dot?O:L)(k):(k=T.match(f))?G=P.dot?A:p:(k=T.match(g))&&(G=C);let W=s.AST.fromGlob(T,this.options).toMMPattern();return G&&typeof W=="object"&&Reflect.defineProperty(W,"test",{value:G}),W}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;let T=this.set;if(!T.length)return this.regexp=!1,this.regexp;let P=this.options,k=P.noglobstar?j:P.dot?se:_e,G=new Set(P.nocase?["i"]:[]),W=T.map(v=>{let F=v.map(ge=>{if(ge instanceof RegExp)for(let te of ge.flags.split(""))G.add(te);return typeof ge=="string"?Ft(ge):ge===t.GLOBSTAR?t.GLOBSTAR:ge._src});F.forEach((ge,te)=>{let De=F[te+1],nt=F[te-1];ge!==t.GLOBSTAR||nt===t.GLOBSTAR||(nt===void 0?De!==void 0&&De!==t.GLOBSTAR?F[te+1]="(?:\\/|"+k+"\\/)?"+De:F[te]=k:De===void 0?F[te-1]=nt+"(?:\\/|\\/"+k+")?":De!==t.GLOBSTAR&&(F[te-1]=nt+"(?:\\/|\\/"+k+"\\/)"+De,F[te+1]=t.GLOBSTAR))});let J=F.filter(ge=>ge!==t.GLOBSTAR);if(this.partial&&J.length>=1){let ge=[];for(let te=1;te<=J.length;te++)ge.push(J.slice(0,te).join("/"));return"(?:"+ge.join("|")+")"}return J.join("/")}).join("|"),[y,S]=T.length>1?["(?:",")"]:["",""];W="^"+y+W+S+"$",this.partial&&(W="^(?:\\/|"+y+W.slice(1,-1)+S+")$"),this.negate&&(W="^(?!"+W+").+$");try{this.regexp=new RegExp(W,[...G].join(""))}catch{this.regexp=!1}return this.regexp}slashSplit(T){return this.preserveMultipleSlashes?T.split("/"):this.isWindows&&/^\/\/[^\/]+/.test(T)?["",...T.split(/\/+/)]:T.split(/\/+/)}match(T,P=this.partial){if(this.debug("match",T,this.pattern),this.comment)return!1;if(this.empty)return T==="";if(T==="/"&&P)return!0;let k=this.options;this.isWindows&&(T=T.split("\\").join("/"));let G=this.slashSplit(T);this.debug(this.pattern,"split",G);let W=this.set;this.debug(this.pattern,"set",W);let y=G[G.length-1];if(!y)for(let S=G.length-2;!y&&S>=0;S--)y=G[S];for(let S=0;S<W.length;S++){let v=W[S],F=G;if(k.matchBase&&v.length===1&&(F=[y]),this.matchOne(F,v,P))return k.flipNegate?!0:!this.negate}return k.flipNegate?!1:this.negate}static defaults(T){return t.minimatch.defaults(T).Minimatch}};t.Minimatch=es;var Sn=pxe();Object.defineProperty(t,"AST",{enumerable:!0,get:o(function(){return Sn.AST},"get")});var St=Axe();Object.defineProperty(t,"escape",{enumerable:!0,get:o(function(){return St.escape},"get")});var mo=q6();Object.defineProperty(t,"unescape",{enumerable:!0,get:o(function(){return mo.unescape},"get")}),t.minimatch.AST=s.AST,t.minimatch.Minimatch=es,t.minimatch.escape=i.escape,t.minimatch.unescape=n.unescape}),hEt=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=o((p,A,g,C)=>{typeof s.emitWarning=="function"?s.emitWarning(p,A,g,C):console.error(`[${g}] ${A}: ${p}`)},"ls"),n=globalThis.AbortController,a=globalThis.AbortSignal;if(typeof n>"u"){a=class{static{o(this,"os")}onabort;_onabort=[];reason;aborted=!1;addEventListener(g,C){this._onabort.push(C)}},n=class{static{o(this,"Lt")}constructor(){A()}signal=new a;abort(g){if(!this.signal.aborted){this.signal.reason=g,this.signal.aborted=!0;for(let C of this.signal._onabort)C(g);this.signal.onabort?.(g)}}};let p=s.env?.LRU_CACHE_IGNORE_AC_WARNING!=="1",A=o(()=>{p&&(p=!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))},"t")}var c=o(p=>!r.has(p),"sr"),l=o(p=>p&&p===Math.floor(p)&&p>0&&isFinite(p),"V"),u=o(p=>l(p)?p<=Math.pow(2,8)?Uint8Array:p<=Math.pow(2,16)?Uint16Array:p<=Math.pow(2,32)?Uint32Array:p<=Number.MAX_SAFE_INTEGER?h:null:null,"cs"),h=class extends Array{static{o(this,"Nt")}constructor(p){super(p),this.fill(0)}},d=class rw{static{o(this,"at")}heap;length;static#e=!1;static create(A){let g=u(A);if(!g)return[];rw.#e=!0;let C=new rw(A,g);return rw.#e=!1,C}constructor(A,g){if(!rw.#e)throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new g(A),this.length=0}push(A){this.heap[this.length++]=A}pop(){return this.heap[--this.length]}},f=class yxe{static{o(this,"us")}#e;#t;#s;#r;
Line truncated
|
||||
\r
|
||||
`);if(f===-1){D1("have not received end of HTTP headers yet..."),n();return}let p=d.slice(0,f).toString("ascii").split(`\r
|
||||
`),A=p.shift();if(!A)return t.destroy(),r(new Error("No header received from proxy CONNECT response"));let g=A.split(" "),C=+g[1],E=g.slice(2).join(" "),I={};for(let B of p){if(!B)continue;let x=B.indexOf(":");if(x===-1)return t.destroy(),r(new Error(`Invalid header from proxy CONNECT response: "${B}"`));let R=B.slice(0,x).toLowerCase(),D=B.slice(x+1).trimStart(),O=I[R];typeof O=="string"?I[R]=[O,D]:Array.isArray(O)?O.push(D):I[R]=D}D1("got proxy server response: %o %o",A,I),a(),e({connect:{statusCode:C,statusText:E,headers:I},buffered:d})}o(u,"ondata"),t.on("error",l),t.on("end",c),n()})}o(qCt,"parseProxyResponse");Qy.parseProxyResponse=qCt});var CNe=m(aa=>{"use strict";var GCt=aa&&aa.__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:o(function(){return e[r]},"get")}),Object.defineProperty(t,s,i)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),HCt=aa&&aa.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),yNe=aa&&aa.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&GCt(e,t,r);return HCt(e,t),e},ENe=aa&&aa.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(aa,"__esModule",{value:!0});aa.HttpsProxyAgent=void 0;var ow=yNe(require("net")),mNe=yNe(require("tls")),zCt=ENe(require("assert")),VCt=ENe(kf()),$Ct=uI(),jCt=require("url"),JCt=ANe(),aw=(0,VCt.default)("https-proxy-agent"),k1=class extends $Ct.Agent{static{o(this,"HttpsProxyAgent")}constructor(e,r){super(r),this.options={path:void 0},this.proxy=typeof e=="string"?new jCt.URL(e):e,this.proxyHeaders=r?.headers??{},aw("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?gNe(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:"){aw("Creating `tls.Socket`: %o",this.connectOpts);let f=this.connectOpts.servername||this.connectOpts.host;i=mNe.connect({...this.connectOpts,servername:f&&ow.isIP(f)?void 0:f})}else aw("Creating `net.Socket`: %o",this.connectOpts),i=ow.connect(this.connectOpts);let n=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders},a=ow.isIPv6(r.host)?`[${r.host}]`:r.host,c=`CONNECT ${a}:${r.port} HTTP/1.1\r
|
||||
`;if(s.username||s.password){let f=`${decodeURIComponent(s.username)}:${decodeURIComponent(s.password)}`;n["Proxy-Authorization"]=`Basic ${Buffer.from(f).toString("base64")}`}n.Host=`${a}:${r.port}`,n["Proxy-Connection"]||(n["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let f of Object.keys(n))c+=`${f}: ${n[f]}\r
|
||||
`;let l=(0,JCt.parseProxyResponse)(i);i.write(`${c}\r
|
||||
`);let{connect:u,buffered:h}=await l;if(e.emit("proxyConnect",u),this.emit("proxyConnect",u,e),u.statusCode===200){if(e.once("socket",YCt),r.secureEndpoint){aw("Upgrading socket connection to TLS");let f=r.servername||r.host;return mNe.connect({...gNe(r,"host","path","port"),socket:i,servername:ow.isIP(f)?void 0:f})}return i}i.destroy();let d=new ow.Socket({writable:!1});return d.readable=!0,e.once("socket",f=>{aw("Replaying proxy buffer for failed request"),(0,zCt.default)(f.listenerCount("data")>0),f.push(h),f.push(null)}),d}};k1.protocols=["http","https"];aa.HttpsProxyAgent=k1;function YCt(t){t.resume()}o(YCt,"resume");function gNe(t,...e){let r={},s;for(s in t)e.includes(s)||(r[s]=t[s]);return r}o(gNe,"omit")});var BNe=m(ih=>{"use strict";Object.defineProperty(ih,"__esModule",{value:!0});var INe=require("buffer"),Xp={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."};ih.ERRORS=Xp;function WCt(t){if(!INe.Buffer.isEncoding(t))throw new Error(Xp.INVALID_ENCODING)}o(WCt,"checkEncoding");ih.checkEncoding=WCt;function bNe(t){return typeof t=="number"&&isFinite(t)&&eIt(t)}o(bNe,"isFiniteInteger");ih.isFiniteInteger=bNe;function wNe(t,e){if(typeof t=="number"){if(!bNe(t)||t<0)throw new Error(e?Xp.INVALID_OFFSET:Xp.INVALID_LENGTH)}else throw new Error(e?Xp.INVALID_OFFSET_NON_NUMBER:Xp.INVALID_LENGTH_NON_NUMBER)}o(wNe,"checkOffsetOrLengthValue");function KCt(t){wNe(t,!1)}o(KCt,"checkLengthValue");ih.checkLengthValue=KCt;function XCt(t){wNe(t,!0)}o(XCt,"checkOffsetValue");ih.checkOffsetValue=XCt;function ZCt(t,e){if(t<0||t>e.length)throw new Error(Xp.INVALID_TARGET_OFFSET)}o(ZCt,"checkTargetOffset");ih.checkTargetOffset=ZCt;function eIt(t){return typeof t=="number"&&isFinite(t)&&Math.floor(t)===t}o(eIt,"isInteger");function tIt(t){if(typeof BigInt>"u")throw new Error("Platform does not support JS BigInt type.");if(typeof INe.Buffer.prototype[t]>"u")throw new Error(`Platform does not support Buffer.prototype.${t}.`)}o(tIt,"bigIntAndBufferInt64Check");ih.bigIntAndBufferInt64Check=tIt});var xNe=m(hj=>{"use strict";Object.defineProperty(hj,"__esModule",{value:!0});var tt=BNe(),SNe=4096,rIt="utf8",uj=class t{static{o(this,"SmartBuffer")}constructor(e){if(this.length=0,this._encoding=rIt,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(SNe);else{if(typeof e<"u")throw new Error(tt.ERRORS.INVALID_SMARTBUFFER_OBJECT);this._buff=Buffer.allocUnsafe(SNe)}}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)}insertInt16B
Line truncated
|
||||
`.trim()},"lookupPropertyFunctionVarDeclaration"),blockValue:o(function(e){var r=this.aliasable("container.hooks.blockHelperMissing"),s=[this.contextName(0)];this.setupHelperArgs(e,0,s);var n=this.popStack();s.splice(1,0,n),this.push(this.source.functionCall(r,"call",s))},"blockValue"),ambiguousBlockValue:o(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),"}"])},"ambiguousBlockValue"),appendContent:o(function(e){this.pendingContent?e=this.pendingContent+e:this.pendingLocation=this.source.currentLocation,this.pendingContent=e},"appendContent"),append:o(function(){if(this.isInline())this.replaceStack(function(r){return[" != null ? ",r,' : ""']}),this.pushSource(this.appendToBuffer(this.popStack()));else{var e=this.popStack();this.pushSource(["if (",e," != null) { ",this.appendToBuffer(e,void 0,!0)," }"]),this.environment.isSimple&&this.pushSource(["else { ",this.appendToBuffer("''",void 0,!0)," }"])}},"append"),appendEscaped:o(function(){this.pushSource(this.appendToBuffer([this.aliasable("container.escapeExpression"),"(",this.popStack(),")"]))},"appendEscaped"),getContext:o(function(e){this.lastContext=e},"getContext"),pushContext:o(function(){this.pushStackLiteral(this.contextName(this.lastContext))},"pushContext"),lookupOnContext:o(function(e,r,s,n){var i=0;!n&&this.options.compat&&!this.lastContext?this.push(this.depthedLookup(e[i++])):this.pushContext(),this.resolvePath("context",e,i,r,s)},"lookupOnContext"),lookupBlockParam:o(function(e,r){this.useBlockParams=!0,this.push(["blockParams[",e[0],"][",e[1],"]"]),this.resolvePath("context",r,1)},"lookupBlockParam"),lookupData:o(function(e,r,s){e?this.pushStackLiteral("container.data(data, "+e+")"):this.pushStackLiteral("data"),this.resolvePath("data",r,0,!0,s)},"lookupData"),resolvePath:o(function(e,r,s,n,i){var a=this;if(this.options.strict||this.options.assumeObjects){this.push(XUe(this.options.strict&&i,this,r,s,e));return}for(var c=r.length,l=o(function(d){a.replaceStack(function(A){var p=a.nameLookup(A,r[d],e);return n?[" && ",p]:[" != null ? ",p," : ",A]})},"_loop"),u=s;u<c;u++)l(u)},"resolvePath"),resolvePossibleLambda:o(function(){this.push([this.aliasable("container.lambda"),"(",this.popStack(),", ",this.contextName(0),")"])},"resolvePossibleLambda"),pushStringParam:o(function(e,r){this.pushContext(),this.pushString(r),r!=="SubExpression"&&(typeof e=="string"?this.pushString(e):this.pushStackLiteral(e))},"pushStringParam"),emptyHash:o(function(e){this.trackIds&&this.push("{}"),this.stringParams&&(this.push("{}"),this.push("{}")),this.pushStackLiteral(e?"undefined":"{}")},"emptyHash"),pushHash:o(function(){this.hash&&this.hashes.push(this.hash),this.hash={values:{},types:[],contexts:[],ids:[]}},"pushHash"),popHash:o(function(){var e=this.hash;this.hash=this.hashes.pop(),this.trackIds&&this.push(this.objectLiteral(e.ids)),this.stringParams&&(this.push(this.objectLiteral(e.contexts)),this.push(this.objectLiteral(e.types))),this.push(this.objectLiteral(e.values))},"popHash"),pushString:o(function(e){this.pushStackLiteral(this.quotedString(e))},"pushString"),pushLiteral:o(function(e){this.pushStackLiteral(e)},"pushLiteral"),pushProgram:o(function(e){e!=null?this.pushStackLiteral(this.programExpression(e)):this.pushStackLiteral(null)},"pushProgram"),registerDecorator:o(function(e,r){var s=this.nameLookup("decorators",r,"decorator"),n=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",n])," || fn;"])},"registerDecorator"),invokeHelper:o(function(e,r,s){var n=this.popStack(),i=this.setupHelper(e,r),a=[];s&&a.push(i.name),a.push(n),this.options.strict||a.push(this.aliasable("container.hooks.helperMissing"));var c=["(",this.itemsSeparatedBy(a,"||"),")"],l=this.source.functionCall(c,"call",i.callParams);this.push(l)},"invokeHelper"),itemsSeparatedBy:o(function(e,r){var s=[];s.push(e[0]);for(var n=1;n<e.length;n++)s.push(r,e[n]);return s},"itemsSeparatedBy"),invokeKnownHelper:o(function(e,r){var s=this.setupHelper(e,r);this.push(this.source.functionCall(s.name,"call",s.callParams))},"invokeKnownHelper"),invokeAmbiguous:o(function(e,r){this.useRegister("helper");var s=this.popStack();this.emptyHash();var n=this.setupHelper(0,e,r),i=this.lastHelper=this.nameLookup("helpers",e,"helper"),a=["(","(helper = ",i," || ",s,")"];this.options.strict||(a[0]="(helper = ",a.push(" != null ? helper : ",this.aliasable("container.hooks.helperMissing"))),this.push(["(",a,n.paramsInit?["),(",n.paramsInit]:[],"),","(typeof helper === ",this.aliasable('"function"')," ? ",this.source.functionCall("h
Line truncated
|
||||
`,e};Nt.prototype.Program=function(t){var e="",r=t.body,s=void 0,n=void 0;if(t.blockParams){var i="BLOCK PARAMS: [";for(s=0,n=t.blockParams.length;s<n;s++)i+=" "+t.blockParams[s];i+=" ]",e+=this.pad(i)}for(s=0,n=r.length;s<n;s++)e+=this.accept(r[s]);return this.padding--,e};Nt.prototype.MustacheStatement=function(t){return this.pad("{{ "+this.SubExpression(t)+" }}")};Nt.prototype.Decorator=function(t){return this.pad("{{ DIRECTIVE "+this.SubExpression(t)+" }}")};Nt.prototype.BlockStatement=Nt.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};Nt.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+" }}")};Nt.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+" }}")};Nt.prototype.ContentStatement=function(t){return this.pad("CONTENT[ '"+t.value+"' ]")};Nt.prototype.CommentStatement=function(t){return this.pad("{{! '"+t.value+"' }}")};Nt.prototype.SubExpression=function(t){for(var e=t.params,r=[],s=void 0,n=0,i=e.length;n<i;n++)r.push(this.accept(e[n]));return e="["+r.join(", ")+"]",s=t.hash?" "+this.accept(t.hash):"",this.accept(t.path)+" "+e+s};Nt.prototype.PathExpression=function(t){var e=t.parts.join("/");return(t.data?"@":"")+"PATH:"+e};Nt.prototype.StringLiteral=function(t){return'"'+t.value+'"'};Nt.prototype.NumberLiteral=function(t){return"NUMBER{"+t.value+"}"};Nt.prototype.BooleanLiteral=function(t){return"BOOLEAN{"+t.value+"}"};Nt.prototype.UndefinedLiteral=function(){return"UNDEFINED"};Nt.prototype.NullLiteral=function(){return"NULL"};Nt.prototype.Hash=function(t){for(var e=t.pairs,r=[],s=0,n=e.length;s<n;s++)r.push(this.accept(e[s]));return"HASH{"+r.join(", ")+"}"};Nt.prototype.HashPair=function(t){return t.key+"="+this.accept(t.value)}});var Sre=h((O0t,wre)=>{var Xw=Cre().default,bre=Ire();Xw.PrintVisitor=bre.PrintVisitor;Xw.print=bre.print;wre.exports=Xw;function Bre(t,e){var r=require("fs"),s=r.readFileSync(e,"utf8");t.exports=Xw.compile(s)}o(Bre,"extension");typeof require<"u"&&require.extensions&&(require.extensions[".handlebars"]=Bre,require.extensions[".hbs"]=Bre)});var Ore=h(s0=>{"use strict";Object.defineProperty(s0,"__esModule",{value:!0});s0.getProxyUrl=g2e;s0.checkBypass=Dre;function g2e(t){let e=t.protocol==="https:";if(Dre(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 r0(r)}catch{if(!r.startsWith("http://")&&!r.startsWith("https://"))return new r0(`http://${r}`)}else return}o(g2e,"getProxyUrl");function Dre(t){if(!t.hostname)return!1;let e=t.hostname;if(E2e(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 n=[t.hostname.toUpperCase()];typeof s=="number"&&n.push(`${n[0]}:${s}`);for(let i of r.split(",").map(a=>a.trim().toUpperCase()).filter(a=>a))if(i==="*"||n.some(a=>a===i||a.endsWith(`.${i}`)||i.startsWith(".")&&a.endsWith(`${i}`)))return!0;return!1}o(Dre,"checkBypass");function E2e(t){let e=t.toLowerCase();return e==="localhost"||e.startsWith("127.")||e.startsWith("[::1]")||e.startsWith("[0:0:0:0:0:0:0:1]")}o(E2e,"isLoopbackAddress");var r0=class extends URL{static{o(this,"DecodedURL")}constructor(e,r){super(e,r),this._decodedUsername=decodeURIComponent(super.username),this._decodedPassword=decodeURIComponent(super.password)}get username(){return this._decodedUsername}get password(){return this._decodedPassword}}});var Lre=h(At=>{"use strict";var y2e=At&&At.__createBinding||(Object.create?(function(t,e,r,s){s===void 0&&(s=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,s,n)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),C2e=At&&At.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),a0=At&&At.__importStar||(function(){var t=o(function(e){return t=Object.getOwnPropertyNames||function(r){var s=[];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(s[s.length]=n);return s},t(e)},"ownKeys");return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var s=t(e),n=0;n<s.length;n++)s[n]!=="default"&&y2e(r,e,s[n]);return C2e(r,e),
Line truncated
|
||||
`).join(`
|
||||
`+n),t.push(i+"m+"+YP.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=Nxt()+e+" "+t[0]}o(xxt,"formatArgs");function Nxt(){return Ds.inspectOpts.hideDate?"":new Date().toISOString()+" "}o(Nxt,"getDate");function Rxt(...t){return process.stderr.write(JP.formatWithOptions(Ds.inspectOpts,...t)+`
|
||||
`)}o(Rxt,"log");function vxt(t){t?process.env.DEBUG=t:delete process.env.DEBUG}o(vxt,"save");function Txt(){return process.env.DEBUG}o(Txt,"load");function _xt(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]]}o(_xt,"init");YP.exports=cY()(Ds);var{formatters:ATe}=YP.exports;ATe.o=function(t){return this.inspectOpts.colors=this.useColors,JP.inspect(t,this.inspectOpts).split(`
|
||||
`).map(e=>e.trim()).join(" ")};ATe.O=function(t){return this.inspectOpts.colors=this.useColors,JP.inspect(t,this.inspectOpts)}});var uY=m((dmr,lY)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?lY.exports=pTe():lY.exports=mTe()});var yTe=m((fmr,gTe)=>{var Qxt=require("dns"),Pxt=["if-modified-since","if-none-match","if-unmodified-since","if-match","if-range"],Oxt=o(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:Qxt.lookup,...r.dns},r.cache=r.cache||"default",r.cache==="default"&&Object.keys(r.headers||{}).some(i=>Pxt.includes(i.toLowerCase()))&&(r.cache="no-store"),r.cacheAdditionalHeaders=r.cacheAdditionalHeaders||[],r.cacheManager&&!r.cachePath&&(r.cachePath=r.cacheManager),r},"configureOptions");gTe.exports=Oxt});var dY=m((Amr,wTe)=>{var ETe=u$(),CTe=m$(),Dxt=gl(),ITe={shared:!1,ignoreCargoCult:!0},kxt={status:200,headers:{}},oE=o(t=>{let e={method:t.method,url:t.url,headers:{},compress:t.compress};return t.headers.forEach((r,s)=>{e.headers[s]=r}),e},"requestObject"),bTe=o(t=>{let e={status:t.status,headers:{}};return t.headers.forEach((r,s)=>{e.headers[s]=r}),e},"responseObject"),hY=class{static{o(this,"CachePolicy")}constructor({entry:e,request:r,response:s,options:i}){this.entry=e,this.request=oE(r),this.response=bTe(s),this.options=i,this.policy=new ETe(this.request,this.response,ITe),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 ETe(oE(e),kxt,ITe).storable()}satisfies(e){let r=oE(e);if(this.request.headers.host!==r.headers.host||this.request.compress!==r.compress)return!1;let s=new CTe(this.request),i=new CTe(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?Dxt.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=oE(e);return r.method="GET",!this.policy.satisfiesWithoutRevalidation(r)}responseHeaders(){return this.policy.responseHeaders()}revalidationHeaders(e){let r=oE(e);return this.policy.revalidationHeaders(r)}revalidated(e,r){let s=oE(e),i=bTe(r);return!this.policy.revalidatedPolicy(s,i).modified}};wTe.exports=hY});var STe=m((gmr,BTe)=>{var fY=class extends Error{static{o(this,"NotCachedError")}constructor(e){super(`request to ${e} failed: cache mode is 'only-if-cached' but no cached response is available.`),this.code="ENOTCACHED"}};BTe.exports={NotCachedError:fY}});var AY=m((Emr,xTe)=>{"use strict";var Mxt=Up(),pY=class extends Mxt{static{o(this,"CachingMinipassPipeline")}#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)}};xTe.exports=pY});var RTe=m((Imr,NTe)=>{var{URL:Lxt,format:Fxt}=require("url"),Uxt={auth:!1,fragment:!1,search:!0,unicode:!1},qxt=o(t=>{let e=new Lxt(t.url);return`make-fetch-happen:request-cache:${Fxt(e,Uxt)}`},"cacheKey");NTe.exports=qxt});var TTe=m((wmr,vTe)=>{var Gxt=sj(),Hxt=o(t=>t?.code==="EPROMISERETRY"&&Object.hasOwn(t,"retried"),"isRetryError");async function zxt(t,e={}){let r=Gxt.operation(e);return new Promise(function(s,i){r.attempt(async n=>{try{let a=await t(c=>{throw Object.assign(new Error("Retrying"),{code:"EPROMISERETRY",retried:c})},n,r);return s(a)}catch(a){return Hxt(a)?r.retry(a.retried||new Error)?void 0:i(a.retried):i(a)}})})}o(zxt,"promiseRetry");vTe.exports={promiseRetry:zxt}});var _Te=m((Smr,Vxt)=>{Vxt.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-pip
Line truncated
|
||||
`+i),t.push(n+"m+"+ES.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=u$e()+e+" "+t[0]}o(l$e,"formatArgs");function u$e(){return Ar.inspectOpts.hideDate?"":new Date().toISOString()+" "}o(u$e,"getDate");function d$e(...t){return process.stderr.write(gS.formatWithOptions(Ar.inspectOpts,...t)+`
|
||||
`)}o(d$e,"log");function A$e(t){t?process.env.DEBUG=t:delete process.env.DEBUG}o(A$e,"save");function p$e(){return process.env.DEBUG}o(p$e,"load");function f$e(t){t.inspectOpts={};let e=Object.keys(Ar.inspectOpts);for(let r=0;r<e.length;r++)t.inspectOpts[e[r]]=Ar.inspectOpts[e[r]]}o(f$e,"init");ES.exports=fU()(Ar);var{formatters:Koe}=ES.exports;Koe.o=function(t){return this.inspectOpts.colors=this.useColors,gS.inspect(t,this.inspectOpts).split(`
|
||||
`).map(e=>e.trim()).join(" ")};Koe.O=function(t){return this.inspectOpts.colors=this.useColors,gS.inspect(t,this.inspectOpts)}});var mU=h((JTt,hU)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?hU.exports=joe():hU.exports=Xoe()});var CS=h(xt=>{"use strict";Object.defineProperty(xt,"__esModule",{value:!0});xt.DownloadHTTPError=xt.DownloadLengthMismatchError=xt.DownloadError=xt.ExpiredMetadataError=xt.EqualVersionError=xt.BadVersionError=xt.RepositoryError=xt.PersistError=xt.RuntimeError=xt.ValueError=void 0;var gU=class extends Error{static{o(this,"ValueError")}};xt.ValueError=gU;var EU=class extends Error{static{o(this,"RuntimeError")}};xt.RuntimeError=EU;var yU=class extends Error{static{o(this,"PersistError")}};xt.PersistError=yU;var Ug=class extends Error{static{o(this,"RepositoryError")}};xt.RepositoryError=Ug;var yS=class extends Ug{static{o(this,"BadVersionError")}};xt.BadVersionError=yS;var CU=class extends yS{static{o(this,"EqualVersionError")}};xt.EqualVersionError=CU;var IU=class extends Ug{static{o(this,"ExpiredMetadataError")}};xt.ExpiredMetadataError=IU;var qg=class extends Error{static{o(this,"DownloadError")}};xt.DownloadError=qg;var BU=class extends qg{static{o(this,"DownloadLengthMismatchError")}};xt.DownloadLengthMismatchError=BU;var bU=class extends qg{static{o(this,"DownloadHTTPError")}statusCode;constructor(e,r){super(e),this.statusCode=r}};xt.DownloadHTTPError=bU});var eae=h(Pp=>{"use strict";var SU=Pp&&Pp.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Pp,"__esModule",{value:!0});Pp.withTempFile=void 0;var wU=SU(require("fs/promises")),h$e=SU(require("os")),Zoe=SU(require("path")),m$e=o(async t=>g$e(async e=>t(Zoe.default.join(e,"tempfile"))),"withTempFile");Pp.withTempFile=m$e;var g$e=o(async t=>{let e=await wU.default.realpath(h$e.default.tmpdir()),r=await wU.default.mkdtemp(e+Zoe.default.sep);try{return await t(r)}finally{await wU.default.rm(r,{force:!0,recursive:!0,maxRetries:3})}},"withTempDir")});var rae=h((KTt,tae)=>{var NU=class{static{o(this,"RetryOperation")}#e=1;#t=null;#s=[];#r=null;#n;#i=null;#a;#o;#l=null;#c;constructor(e,r={}){this.#a=[...e],this.#o=[...e],this.#c=r.unref,this.#n=r.maxRetryTime||1/0,r.forever&&(this.#t=[...this.#o])}get timeouts(){return[...this.#o]}get errors(){return[...this.#s]}get attempts(){return this.#e}get mainError(){let e=null;if(this.#s.length){let r=0,s={};for(let n=0;n<this.#s.length;n++){let i=this.#s[n],{message:a}=i;s[a]||(s[a]=0),s[a]++,s[a]>=r&&(e=i,r=s[a])}}return e}reset(){this.#e=1,this.#o=[...this.#a]}stop(){this.#l&&clearTimeout(this.#l),this.#o=[],this.#t=null}retry(e){if(this.#s.push(e),new Date().getTime()-this.#i>=this.#n)return this.#s.unshift(new Error("RetryOperation timeout occurred")),!1;let r=this.#o.shift();if(r===void 0)if(this.#t)this.#s.pop(),r=this.#t.at(-1);else return!1;return this.#l=setTimeout(()=>{this.#e++,this.#r(this.#e)},r),this.#c&&this.#l.unref(),!0}attempt(e){this.#r=e,this.#i=new Date().getTime(),this.#r(this.#e)}};tae.exports={RetryOperation:NU}});var iae=h((ZTt,nae)=>{var{RetryOperation:E$e}=rae(),sae=o((t,e)=>Math.min(Math.round((1+(e.randomize?Math.random():0))*Math.max(e.minTimeout,1)*Math.pow(e.factor,t)),e.maxTimeout),"createTimeout"),y$e=o(t=>t?.code==="EPROMISERETRY"&&Object.hasOwn(t,"retried"),"isRetryError"),C$e=o(async(t,e={})=>{let r=[];if(e instanceof Array)r=[...e];else{e.retries===1/0&&(e.forever=!0,delete e.retries);let n={retries:10,factor:2,minTimeout:1*1e3,maxTimeout:1/0,randomize:!1,...e};if(n.minTimeout>n.maxTimeout)throw new Error("minTimeout is greater than maxTimeout");if(n.retries){for(let i=0;i<n.retries;i++)r.push(sae(i,n));r.sort((i,a)=>i-a)}else e.forever&&r.push(sae(0,n))}let s=new E$e(r,{forever:e.forever,unref:e.unref,maxRetryTime:e.maxRetryTime});return new Promise(function(n,i){s.attempt(async a=>{try{let c=await t(l=>{throw Object.assign(new Error("Retrying"),{code:"EPROMISERETRY",retried:l})},a,s);return n(c)}catch(c){if(!y$e(c))return i(c);if(!s.retry(c.retried||new Error))return i(c.retried)}})})},"promiseRetry");nae.exports={promiseRetry:C$e}});var RU=h(Hc=>{"use strict";var QU=Hc&&Hc.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Hc,"__esModule",{value:!0});Hc.DefaultFetcher=Hc.BaseFetcher=void 0;var I$e=QU(mU()),oae=QU(require("fs")),B$e=QU(require("util")),aae=CS(),b$e=eae(),w$e=iae(),S$e=(0,I$e.default)("tuf:fetch"),N$e="User-Agent",IS=class{static{o(this,"BaseFetcher")}async downloadFile(e,r,s){return(0,b$e.withTempFile)(async n=>{let i=await this.fetch(e),a=0,c=oae.default.createWriteStream(n),l=i.getReader();try{for(;;){let{done:u,value:d}=await l.read();if(u)break;if(a+=d.length,a>r)throw new aae.DownloadLengthMismatchError("Max length reached");await x$e(c,Buffer.from(d))}}finally{l.releaseLock(),await B$e.default.promisify(c.close).bind(c)()}return s(n)})}async downloadBytes(e,r){return this.downloadFile(e,r,async s=>{let n=oae.defau
Line truncated
|
||||
`).forEach(r=>{r.match(P3e)||r.match(_3e)||(e+=r)}),Buffer.from(e,"base64")}o(k3e,"toDER");function D3e(t,e="CERTIFICATE"){let s=t.toString("base64").match(/.{1,64}/g)||"";return[`-----BEGIN ${e}-----`,...s,`-----END ${e}-----`].join(`
|
||||
`).concat(`
|
||||
`)}o(D3e,"fromDER")});var MS=h($c=>{"use strict";Object.defineProperty($c,"__esModule",{value:!0});$c.SHA2_HASH_ALGOS=$c.RSA_SIGNATURE_ALGOS=$c.ECDSA_SIGNATURE_ALGOS=void 0;$c.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"};$c.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"};$c.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 ZU=h(LS=>{"use strict";Object.defineProperty(LS,"__esModule",{value:!0});LS.RFC3161TimestampVerificationError=void 0;var XU=class extends Error{static{o(this,"RFC3161TimestampVerificationError")}};LS.RFC3161TimestampVerificationError=XU});var Mae=h(To=>{"use strict";var O3e=To&&To.__createBinding||(Object.create?(function(t,e,r,s){s===void 0&&(s=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,s,n)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),M3e=To&&To.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),L3e=To&&To.__importStar||(function(){var t=o(function(e){return t=Object.getOwnPropertyNames||function(r){var s=[];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(s[s.length]=n);return s},t(e)},"ownKeys");return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var s=t(e),n=0;n<s.length;n++)s[n]!=="default"&&O3e(r,e,s[n]);return M3e(r,e),r}})();Object.defineProperty(To,"__esModule",{value:!0});To.TSTInfo=void 0;var Oae=L3e(Lp()),F3e=MS(),U3e=ZU(),e2=class{static{o(this,"TSTInfo")}root;constructor(e){this.root=e}get version(){return this.root.subs[0].toInteger()}get genTime(){return this.root.subs[4].toDate()}get messageImprintHashAlgorithm(){let e=this.messageImprintObj.subs[0].subs[0].toOID();return F3e.SHA2_HASH_ALGOS[e]}get messageImprintHashedMessage(){return this.messageImprintObj.subs[1].value}get raw(){return this.root.toDER()}verify(e){let r=Oae.digest(this.messageImprintHashAlgorithm,e);if(!Oae.bufferEqual(r,this.messageImprintHashedMessage))throw new U3e.RFC3161TimestampVerificationError("message imprint does not match artifact")}get messageImprintObj(){return this.root.subs[2]}};To.TSTInfo=e2});var Fae=h(vo=>{"use strict";var q3e=vo&&vo.__createBinding||(Object.create?(function(t,e,r,s){s===void 0&&(s=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,s,n)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),G3e=vo&&vo.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),H3e=vo&&vo.__importStar||(function(){var t=o(function(e){return t=Object.getOwnPropertyNames||function(r){var s=[];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(s[s.length]=n);return s},t(e)},"ownKeys");return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var s=t(e),n=0;n<s.length;n++)s[n]!=="default"&&q3e(r,e,s[n]);return G3e(r,e),r}})();Object.defineProperty(vo,"__esModule",{value:!0});vo.RFC3161Timestamp=void 0;var V3e=kS(),t2=H3e(Lp()),Lae=MS(),Yg=ZU(),z3e=Mae(),J3e="1.2.840.113549.1.7.2",Y3e="1.2.840.113549.1.9.16.1.4",$3e="1.2.840.113549.1.9.4",r2=class t{static{o(this,"RFC3161Timestamp")}root;constructor(e){this.root=e}static parse(e){let r=V3e.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 Lae.SHA2_HASH_ALGOS[e]}get signatureAlgorithm(){let e=this.signatureAlgorithmObj.subs[0].toOID();return Lae.ECDSA_SIGNATURE_ALGOS[e]}get signatureValue(){return this.signatureValueObj.value}get tstInfo(){return new z3e.TSTInfo(this.eContentObj.subs[0].subs[0])}verify(e,r){if(!this.timeStampTokenObj)throw new Yg.RFC3161TimestampVerificationError("timeStampToken is missing");if(this.contentType!==J3e)throw new Yg.RFC3161TimestampVerificationError(`incorrect content type: ${this.contentType}`);if(this.eContentType!==Y3e)throw new Yg.RFC3161TimestampVerificationError(`incorrect encapsulated content type: ${this.eContentType}`);this.tstInfo.verify(e),this.verifyMessageDigest(),this.verifySignature(r)}verifyMessageDigest(){let e=t2.digest(this.signerDigestAlgorithm,this.tstInfo.raw),r=this.messageDigestAttributeObj.subs[1].subs[0].valu
Line truncated
|
||||
|
||||
`,avt=/\u2014 (\S+) (\S+)\n/g;function cvt(t,e){let r=t.inclusionProof,s=oW.fromString(r.checkpoint.envelope),i=IO.fromString(s.note);if(!lvt(s,e))throw new Mw.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"invalid checkpoint signature"});return i}o(cvt,"verifyCheckpoint");function lvt(t,e){let r=Buffer.from(t.note,"utf-8");return t.signatures.some(s=>{let i=e.find(n=>T_e.crypto.bufferEqual(n.logID.subarray(0,4),s.keyHint)&&n.baseURL.match(s.name));return i?T_e.crypto.verify(r,i.publicKey,s.signature):!1})}o(lvt,"verifySignedNote");var oW=class t{static{o(this,"SignedNote")}note;signatures;constructor(e,r){this.note=e,this.signatures=r}static fromString(e){if(!e.includes(nW))throw new Mw.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"missing checkpoint separator"});let r=e.indexOf(nW),s=e.slice(0,r+1),n=e.slice(r+nW.length).matchAll(avt),a=Array.from(n,c=>{let[,l,u]=c,h=Buffer.from(u,"base64");if(h.length<5)throw new Mw.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"malformed checkpoint signature"});return{name:l,keyHint:h.subarray(0,4),signature:h.subarray(4)}});if(a.length===0)throw new Mw.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"no signatures found in checkpoint"});return new t(s,a)}},IO=class t{static{o(this,"LogCheckpoint")}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 Mw.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"),a=r.slice(3);return new t(s,i,n,a)}};Lw.LogCheckpoint=IO});var Q_e=m(uW=>{"use strict";Object.defineProperty(uW,"__esModule",{value:!0});uW.verifyMerkleInclusion=dvt;var lW=oo(),aW=hi(),uvt=Buffer.from([0]),hvt=Buffer.from([1]);function dvt(t,e){let r=t.inclusionProof,s=BigInt(r.logIndex),i=BigInt(e.logSize);if(s<0n||s>=i)throw new aW.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:`invalid index: ${s}`});let{inner:n,border:a}=fvt(s,i);if(r.hashes.length!==n+a)throw new aW.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"invalid hash count"});let c=r.hashes.slice(0,n),l=r.hashes.slice(n),u=Evt(t.canonicalizedBody),h=Avt(pvt(u,c,s),l);if(!lW.crypto.bufferEqual(h,e.logHash))throw new aW.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"calculated root hash does not match inclusion proof"})}o(dvt,"verifyMerkleInclusion");function fvt(t,e){let r=mvt(t,e),s=gvt(t>>BigInt(r));return{inner:r,border:s}}o(fvt,"decompInclProof");function pvt(t,e,r){return e.reduce((s,i,n)=>r>>BigInt(n)&BigInt(1)?cW(i,s):cW(s,i),t)}o(pvt,"chainInner");function Avt(t,e){return e.reduce((r,s)=>cW(s,r),t)}o(Avt,"chainBorderRight");function mvt(t,e){return yvt(t^e-BigInt(1))}o(mvt,"innerProofSize");function gvt(t){return t.toString(2).split("1").length-1}o(gvt,"onesCount");function yvt(t){return t===0n?0:t.toString(2).length}o(yvt,"bitLength");function cW(t,e){return lW.crypto.digest("sha256",hvt,t,e)}o(cW,"hashChildren");function Evt(t){return lW.crypto.digest("sha256",uvt,t)}o(Evt,"hashLeaf")});var O_e=m(hW=>{"use strict";Object.defineProperty(hW,"__esModule",{value:!0});hW.verifyTLogSET=bvt;var P_e=oo(),Cvt=hi(),Ivt=fE();function bvt(t,e){if(!(0,Ivt.filterTLogAuthorities)(e,{logID:t.logId.keyId,targetDate:new Date(Number(t.integratedTime)*1e3)}).some(i=>{let n=wvt(t),a=Buffer.from(P_e.json.canonicalize(n),"utf8"),c=t.inclusionPromise.signedEntryTimestamp;return P_e.crypto.verify(a,i.publicKey,c)}))throw new Cvt.VerificationError({code:"TLOG_INCLUSION_PROMISE_ERROR",message:"inclusion promise could not be verified"})}o(bvt,"verifyTLogSET");function wvt(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")}}o(wvt,"toVerificationPayload")});var k_e=m(bO=>{"use strict";Object.defineProperty(bO,"__esModule",{value:!0});bO.verifyTLogBody=Rvt;bO.verifyTLogInclusion=vvt;var D_e=nJ(),pW=hi(),dW=N_e(),fW=R_e(),Bvt=v_e(),Svt=__e(),xvt=Q_e(),Nvt=O_e();function Rvt(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 pW.VerificationError({code:"TLOG_BODY_ERROR",message:`kind/version mismatch - expected: ${r}/${s}, received: ${i.kind}/${i.apiVersion}`});switch(r){case"dsse":if(s==dW.DSSE_API_VERSION_V1)return(0,dW.verifyDSSETLogBody)(i,e);{let n=D_e.Entry.fromJSON(i);return(0,dW.verifyDSSETLogBodyV2)(n,e)}case"intoto":return(0,Bvt.verifyIntotoTLogBody)(i,e);case"hashedrekord":if(s==fW.HASHEDREKORD_API_VERSION_V1)return(0,fW.verifyHashedRekordTLogBody)(i,e);{let n=D_e.Entry.fromJSON(i);return(0,fW.verifyHashedRekordTLogBodyV2)(n,e)}default:throw new pW.VerificationError({code:"TLOG_BODY_ERROR",message:`unsupported kind: ${r}`})}}o(Rvt,"verifyTLogBody");function vvt(t,e){let r=!1;if(Tvt(t)&&((0,Nvt.verifyTLogSET)(t,e),r=!0),_vt(t)){let s=(0,Svt.verifyCheckpoint)(t,e);(0,xvt.verifyMerkleInclusion)(t,s),r=!0}if(!r)throw new pW.VerificationError({code:"TLOG_MISSING_INCLUSION_ERROR",message:"inclusion could not be verified"})}o(vvt,"verifyTLogInclusion");function Tvt(t){return t.inclusionPromise!==void 0}o(Tvt,"isTLogEntryWithInclusionPromise");function _vt(t){return t.inclusionProof!==void 0}o(_vt,"isTLogEntryWithInclusionProof")});var q_e=m(wO=>{"use strict";Object.defineProperty(wO,"__esModule",{value:!0});wO.Verifier=void 0;var Qvt=require("util"),pE=hi(),M_e=b_e(),AW=w_e(),L_e=x_e(),F_e=k_e(),mW=class{static{o(this,"Verifier")}trustMaterial;options;constructor(e,r={}){this.trustMaterial=e,this.options={ctlogThreshold:r.ctlogThreshold??1,tlogThreshold:r.tlogThreshold??1,timestampThreshold:r.timestampThreshold??r.tsaThreshold??1,tsaThreshold:0}}verify(e,r){let 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,L_e.getTSATimestamp)(s.timestamp,e.signature.signature,this.trustMaterial.timestampAuthorities));break;case"transparency-log":{let i=(0,L_e.getTLogTimestamp)(s.tlogEntry);i&&r.push(i);break}}if(U_e(r))throw new pE.VerificationError({code:"TIMESTAMP_ERROR",message:"duplicate timestamp"});if(r.length<this.options.timestampThreshol
Line truncated
|
||||
Support boolean input list: \`true | True | TRUE | false | False | FALSE\``)}o(WS,"getBooleanInput");function Ose(t){process.exitCode=DL.Failure,gm(t)}o(Ose,"setFailed");function wf(){return process.env.RUNNER_DEBUG==="1"}o(wf,"isDebug");function Q(t){Ah("debug",{},t)}o(Q,"debug");function gm(t,e={}){Ah("error",VO(e),t instanceof Error?t.toString():t)}o(gm,"error");function hr(t,e={}){Ah("warning",VO(e),t instanceof Error?t.toString():t)}o(hr,"warning");function V(t){process.stdout.write(t+Qse.EOL)}o(V,"info");function k4e(t){jO("group",t)}o(k4e,"startGroup");function M4e(){jO("endgroup")}o(M4e,"endGroup");function Un(t,e){return D4e(this,void 0,void 0,function*(){k4e(t);let r;try{r=yield e()}finally{M4e()}return r})}o(Un,"group");function KS(t,e){if(process.env.GITHUB_STATE||"")return JO("STATE",PW(t,e));Ah("save-state",{name:t},ph(e))}o(KS,"saveState");function Dse(t){return process.env[`STATE_${t}`]||""}o(Dse,"getState");var eT=M(require("fs"),1),Gz=M(require("os"),1),Hz=M(require("path"),1);var Mse=M(require("os"),1);function TC(t){return t==null?"":typeof t=="string"||t instanceof String?t:JSON.stringify(t)}o(TC,"toCommandValue");function Lse(t,e,r){let s=new kL(t,e,r);process.stdout.write(s.toString()+Mse.EOL)}o(Lse,"issueCommand");var kse="::",kL=class{static{o(this,"Command")}constructor(e,r,s){e||(e="missing.command"),this.command=e,this.properties=r,this.message=s}toString(){let e=kse+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}=${F4e(i)}`)}}return e+=`${kse}${L4e(this.message)}`,e}};function L4e(t){return TC(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}o(L4e,"escapeData");function F4e(t){return TC(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}o(F4e,"escapeProperty");var Gse=M(require("os"),1);var Use=require("os"),_C=require("fs");var ML=function(t,e,r,s){function i(n){return n instanceof r?n:new r(function(a){a(n)})}return o(i,"adopt"),new(r||(r=Promise))(function(n,a){function c(h){try{u(s.next(h))}catch(d){a(d)}}o(c,"fulfilled");function l(h){try{u(s.throw(h))}catch(d){a(d)}}o(l,"rejected");function u(h){h.done?n(h.value):i(h.value).then(c,l)}o(u,"step"),u((s=s.apply(t,e||[])).next())})},{access:U4e,appendFile:q4e,writeFile:G4e}=_C.promises,Fse="GITHUB_STEP_SUMMARY";var LL=class{static{o(this,"Summary")}constructor(){this._buffer=""}filePath(){return ML(this,void 0,void 0,function*(){if(this._filePath)return this._filePath;let e=process.env[Fse];if(!e)throw new Error(`Unable to find environment variable for $${Fse}. Check if your runtime environment supports job summaries.`);try{yield U4e(e,_C.constants.R_OK|_C.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,a])=>` ${n}="${a}"`).join("");return r?`<${e}${i}>${r}</${e}>`:`<${e}${i}>`}write(e){return ML(this,void 0,void 0,function*(){let r=!!e?.overwrite,s=yield this.filePath();return yield(r?G4e:q4e)(s,this._buffer,{encoding:"utf8"}),this.emptyBuffer()})}clear(){return ML(this,void 0,void 0,function*(){return this.emptyBuffer().write({overwrite:!0})})}stringify(){return this._buffer}isEmptyBuffer(){return this._buffer.length===0}emptyBuffer(){return this._buffer="",this}addRaw(e,r=!1){return this._buffer+=e,r?this.addEOL():this}addEOL(){return this.addRaw(Use.EOL)}addCodeBlock(e,r){let s=Object.assign({},r&&{lang:r}),i=this.wrap("pre",this.wrap("code",e),s);return this.addRaw(i).addEOL()}addList(e,r=!1){let s=r?"ol":"ul",i=e.map(a=>this.wrap("li",a)).join(""),n=this.wrap(s,i);return this.addRaw(n).addEOL()}addTable(e){let r=e.map(i=>{let n=i.map(a=>{if(typeof a=="string")return this.wrap("td",a);let{header:c,data:l,colspan:u,rowspan:h}=a,d=c?"th":"td",f=Object.assign(Object.assign({},u&&{colspan:u}),h&&{rowspan:h});return this.wrap(d,l,f)}).join("");return this.wrap("tr",n)}).join(""),s=this.wrap("table",r);return this.addRaw(s).addEOL()}addDetails(e,r){let s=this.wrap("details",this.wrap("summary",e)+r);return this.addRaw(s).addEOL()}addImage(e,r,s){let{width:i,height:n}=s||{},a=Object.assign(Object.assign({},i&&{width:i}),n&&{height:n}),c=this.wrap("img",null,Object.assign({src:e,alt:r},a));return this.addRaw(c).addEOL()}addHeading(e,r){let s=`h${r}`,i=["h1","h2","h3","h4","h5","h6"].includes(s)?s:"h1",n=this.wrap(i,e);return this.addRaw(n).addEOL()}addSeparator(){let e=this.wrap("hr",null);return this.addRaw(e).addEOL()}addBreak(){let e=this.wrap("br",null);return this.addRaw(e).addEOL()}addQuote(e,r){let s=Object.assign({},r&&{cite:r}),i=this.wrap("blockquote",e,s);return this.addRaw(i).addEOL()}addLink(e,r){let s=this.wrap("a",e,{href:r});return this.addRaw(s).addEOL()}},gPt=new LL;var FL=M(require("os"),1);var bPt=FL.default.platfLine truncated
|
||||
`,fje=/\u2014 (\S+) (\S+)\n/g;function hje(t,e){let r=t.inclusionProof,s=P2.fromString(r.checkpoint.envelope),n=nN.fromString(s.note);if(!mje(s,e))throw new Xg.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"invalid checkpoint signature"});return n}o(hje,"verifyCheckpoint");function mje(t,e){let r=Buffer.from(t.note,"utf-8");return t.signatures.some(s=>{let n=e.find(i=>yce.crypto.bufferEqual(i.logID.subarray(0,4),s.keyHint)&&i.baseURL.match(s.name));return n?yce.crypto.verify(r,n.publicKey,s.signature):!1})}o(mje,"verifySignedNote");var P2=class t{static{o(this,"SignedNote")}note;signatures;constructor(e,r){this.note=e,this.signatures=r}static fromString(e){if(!e.includes(v2))throw new Xg.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"missing checkpoint separator"});let r=e.indexOf(v2),s=e.slice(0,r+1),i=e.slice(r+v2.length).matchAll(fje),a=Array.from(i,c=>{let[,l,u]=c,d=Buffer.from(u,"base64");if(d.length<5)throw new Xg.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"malformed checkpoint signature"});return{name:l,keyHint:d.subarray(0,4),signature:d.subarray(4)}});if(a.length===0)throw new Xg.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"no signatures found in checkpoint"});return new t(s,a)}},nN=class t{static{o(this,"LogCheckpoint")}origin;logSize;logHash;rest;constructor(e,r,s,n){this.origin=e,this.logSize=r,this.logHash=s,this.rest=n}static fromString(e){let r=e.trimEnd().split(`
|
||||
`);if(r.length<3)throw new Xg.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"too few lines in checkpoint header"});let s=r[0],n=BigInt(r[1]),i=Buffer.from(r[2],"base64"),a=r.slice(3);return new t(s,n,i,a)}};Zg.LogCheckpoint=nN});var Ice=h(O2=>{"use strict";Object.defineProperty(O2,"__esModule",{value:!0});O2.verifyMerkleInclusion=yje;var D2=gi(),_2=Tr(),gje=Buffer.from([0]),Eje=Buffer.from([1]);function yje(t,e){let r=t.inclusionProof,s=BigInt(r.logIndex),n=BigInt(e.logSize);if(s<0n||s>=n)throw new _2.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:`invalid index: ${s}`});let{inner:i,border:a}=Cje(s,n);if(r.hashes.length!==i+a)throw new _2.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"invalid hash count"});let c=r.hashes.slice(0,i),l=r.hashes.slice(i),u=Nje(t.canonicalizedBody),d=Bje(Ije(u,c,s),l);if(!D2.crypto.bufferEqual(d,e.logHash))throw new _2.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"calculated root hash does not match inclusion proof"})}o(yje,"verifyMerkleInclusion");function Cje(t,e){let r=bje(t,e),s=wje(t>>BigInt(r));return{inner:r,border:s}}o(Cje,"decompInclProof");function Ije(t,e,r){return e.reduce((s,n,i)=>r>>BigInt(i)&BigInt(1)?k2(n,s):k2(s,n),t)}o(Ije,"chainInner");function Bje(t,e){return e.reduce((r,s)=>k2(s,r),t)}o(Bje,"chainBorderRight");function bje(t,e){return Sje(t^e-BigInt(1))}o(bje,"innerProofSize");function wje(t){return t.toString(2).split("1").length-1}o(wje,"onesCount");function Sje(t){return t===0n?0:t.toString(2).length}o(Sje,"bitLength");function k2(t,e){return D2.crypto.digest("sha256",Eje,t,e)}o(k2,"hashChildren");function Nje(t){return D2.crypto.digest("sha256",gje,t)}o(Nje,"hashLeaf")});var bce=h(M2=>{"use strict";Object.defineProperty(M2,"__esModule",{value:!0});M2.verifyTLogSET=Rje;var Bce=gi(),xje=Tr(),Qje=qp();function Rje(t,e){if(!(0,Qje.filterTLogAuthorities)(e,{logID:t.logId.keyId,targetDate:new Date(Number(t.integratedTime)*1e3)}).some(n=>{let i=Tje(t),a=Buffer.from(Bce.json.canonicalize(i),"utf8"),c=t.inclusionPromise.signedEntryTimestamp;return Bce.crypto.verify(a,n.publicKey,c)}))throw new xje.VerificationError({code:"TLOG_INCLUSION_PROMISE_ERROR",message:"inclusion promise could not be verified"})}o(Rje,"verifyTLogSET");function Tje(t){let{integratedTime:e,logIndex:r,logId:s,canonicalizedBody:n}=t;return{body:n.toString("base64"),integratedTime:Number(e),logIndex:Number(r),logID:s.keyId.toString("hex")}}o(Tje,"toVerificationPayload")});var Sce=h(iN=>{"use strict";Object.defineProperty(iN,"__esModule",{value:!0});iN.verifyTLogBody=Dje;iN.verifyTLogInclusion=Oje;var wce=hce(),U2=Tr(),L2=mce(),F2=gce(),vje=Ece(),Pje=Cce(),_je=Ice(),kje=bce();function Dje(t,e){let{kind:r,version:s}=t.kindVersion,n=JSON.parse(t.canonicalizedBody.toString("utf8"));if(r!==n.kind||s!==n.apiVersion)throw new U2.VerificationError({code:"TLOG_BODY_ERROR",message:`kind/version mismatch - expected: ${r}/${s}, received: ${n.kind}/${n.apiVersion}`});switch(r){case"dsse":if(s==L2.DSSE_API_VERSION_V1)return(0,L2.verifyDSSETLogBody)(n,e);{let i=wce.Entry.fromJSON(n);return(0,L2.verifyDSSETLogBodyV2)(i,e)}case"intoto":return(0,vje.verifyIntotoTLogBody)(n,e);case"hashedrekord":if(s==F2.HASHEDREKORD_API_VERSION_V1)return(0,F2.verifyHashedRekordTLogBody)(n,e);{let i=wce.Entry.fromJSON(n);return(0,F2.verifyHashedRekordTLogBodyV2)(i,e)}default:throw new U2.VerificationError({code:"TLOG_BODY_ERROR",message:`unsupported kind: ${r}`})}}o(Dje,"verifyTLogBody");function Oje(t,e){let r=!1;if(Mje(t)&&((0,kje.verifyTLogSET)(t,e),r=!0),Lje(t)){let s=(0,Pje.verifyCheckpoint)(t,e);(0,_je.verifyMerkleInclusion)(t,s),r=!0}if(!r)throw new U2.VerificationError({code:"TLOG_MISSING_INCLUSION_ERROR",message:"inclusion could not be verified"})}o(Oje,"verifyTLogInclusion");function Mje(t){return t.inclusionPromise!==void 0}o(Mje,"isTLogEntryWithInclusionPromise");function Lje(t){return t.inclusionProof!==void 0}o(Lje,"isTLogEntryWithInclusionProof")});var Tce=h(oN=>{"use strict";Object.defineProperty(oN,"__esModule",{value:!0});oN.Verifier=void 0;var Fje=require("util"),zp=Tr(),Nce=sce(),q2=nce(),xce=ace(),Qce=Sce(),G2=class{static{o(this,"Verifier")}trustMaterial;options;constructor(e,r={}){this.trustMaterial=e,this.options={ctlogThreshold:r.ctlogThreshold??1,tlogThreshold:r.tlogThreshold??1,timestampThreshold:r.timestampThreshold??r.tsaThreshold??1,tsaThreshold:0}}verify(e,r){let s=this.verifyTimestamps(e),n=this.verifySigningKey(e,s);return this.verifyTLogs(e),this.verifySignature(e,n),r&&this.verifyPolicy(r,n.identity||{}),n}verifyTimestamps(e){let r=[];for(let s of e.timestamps)switch(s.$case){case"timestamp-authority":r.push((0,xce.getTSATimestamp)(s.timestamp,e.signature.signature,this.trustMaterial.timestampAuthorities));break;case"transparency-log":{let n=(0,xce.getTLogTimestamp)(s.tlogEntry);n&&r.push(n);break}}if(Rce(r))throw new zp.VerificationError({code:"TIMESTAMP_ERROR",message:"duplicate timestamp"});if(r.length<this.options.timestampThresho
Line truncated
|
||||
Support boolean input list: \`true | True | TRUE | false | False | FALSE\``)}o(cC,"getBooleanInput");function tW(t){process.exitCode=fT.Failure,Vd(t)}o(tW,"setFailed");function Rl(){return process.env.RUNNER_DEBUG==="1"}o(Rl,"isDebug");function b(t){Ua("debug",{},t)}o(b,"debug");function Vd(t,e={}){Ua("error",wN(e),t instanceof Error?t.toString():t)}o(Vd,"error");function et(t,e={}){Ua("warning",wN(e),t instanceof Error?t.toString():t)}o(et,"warning");function S(t){process.stdout.write(t+Z3.EOL)}o(S,"info");function RBe(t){NN("group",t)}o(RBe,"startGroup");function TBe(){NN("endgroup")}o(TBe,"endGroup");function Ms(t,e){return QBe(this,void 0,void 0,function*(){RBe(t);let r;try{r=yield e()}finally{TBe()}return r})}o(Ms,"group");function lC(t,e){if(process.env.GITHUB_STATE||"")return xN("STATE",eq(t,e));Ua("save-state",{name:t},Fa(e))}o(lC,"saveState");function rW(t){return process.env[`STATE_${t}`]||""}o(rW,"getState");var pw=w(require("fs"),1),IL=w(require("os"),1),BL=w(require("path"),1);var nW=w(require("os"),1);function ch(t){return t==null?"":typeof t=="string"||t instanceof String?t:JSON.stringify(t)}o(ch,"toCommandValue");function iW(t,e,r){let s=new hT(t,e,r);process.stdout.write(s.toString()+nW.EOL)}o(iW,"issueCommand");var sW="::",hT=class{static{o(this,"Command")}constructor(e,r,s){e||(e="missing.command"),this.command=e,this.properties=r,this.message=s}toString(){let e=sW+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 n=this.properties[s];n&&(r?r=!1:e+=",",e+=`${s}=${PBe(n)}`)}}return e+=`${sW}${vBe(this.message)}`,e}};function vBe(t){return ch(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}o(vBe,"escapeData");function PBe(t){return ch(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}o(PBe,"escapeProperty");var lW=w(require("os"),1);var aW=require("os"),lh=require("fs");var mT=function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(a){a(i)})}return o(n,"adopt"),new(r||(r=Promise))(function(i,a){function c(d){try{u(s.next(d))}catch(A){a(A)}}o(c,"fulfilled");function l(d){try{u(s.throw(d))}catch(A){a(A)}}o(l,"rejected");function u(d){d.done?i(d.value):n(d.value).then(c,l)}o(u,"step"),u((s=s.apply(t,e||[])).next())})},{access:_Be,appendFile:kBe,writeFile:DBe}=lh.promises,oW="GITHUB_STEP_SUMMARY";var gT=class{static{o(this,"Summary")}constructor(){this._buffer=""}filePath(){return mT(this,void 0,void 0,function*(){if(this._filePath)return this._filePath;let e=process.env[oW];if(!e)throw new Error(`Unable to find environment variable for $${oW}. Check if your runtime environment supports job summaries.`);try{yield _Be(e,lh.constants.R_OK|lh.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 n=Object.entries(s).map(([i,a])=>` ${i}="${a}"`).join("");return r?`<${e}${n}>${r}</${e}>`:`<${e}${n}>`}write(e){return mT(this,void 0,void 0,function*(){let r=!!e?.overwrite,s=yield this.filePath();return yield(r?DBe:kBe)(s,this._buffer,{encoding:"utf8"}),this.emptyBuffer()})}clear(){return mT(this,void 0,void 0,function*(){return this.emptyBuffer().write({overwrite:!0})})}stringify(){return this._buffer}isEmptyBuffer(){return this._buffer.length===0}emptyBuffer(){return this._buffer="",this}addRaw(e,r=!1){return this._buffer+=e,r?this.addEOL():this}addEOL(){return this.addRaw(aW.EOL)}addCodeBlock(e,r){let s=Object.assign({},r&&{lang:r}),n=this.wrap("pre",this.wrap("code",e),s);return this.addRaw(n).addEOL()}addList(e,r=!1){let s=r?"ol":"ul",n=e.map(a=>this.wrap("li",a)).join(""),i=this.wrap(s,n);return this.addRaw(i).addEOL()}addTable(e){let r=e.map(n=>{let i=n.map(a=>{if(typeof a=="string")return this.wrap("td",a);let{header:c,data:l,colspan:u,rowspan:d}=a,A=c?"th":"td",p=Object.assign(Object.assign({},u&&{colspan:u}),d&&{rowspan:d});return this.wrap(A,l,p)}).join("");return this.wrap("tr",i)}).join(""),s=this.wrap("table",r);return this.addRaw(s).addEOL()}addDetails(e,r){let s=this.wrap("details",this.wrap("summary",e)+r);return this.addRaw(s).addEOL()}addImage(e,r,s){let{width:n,height:i}=s||{},a=Object.assign(Object.assign({},n&&{width:n}),i&&{height:i}),c=this.wrap("img",null,Object.assign({src:e,alt:r},a));return this.addRaw(c).addEOL()}addHeading(e,r){let s=`h${r}`,n=["h1","h2","h3","h4","h5","h6"].includes(s)?s:"h1",i=this.wrap(n,e);return this.addRaw(i).addEOL()}addSeparator(){let e=this.wrap("hr",null);return this.addRaw(e).addEOL()}addBreak(){let e=this.wrap("br",null);return this.addRaw(e).addEOL()}addQuote(e,r){let s=Object.assign({},r&&{cite:r}),n=this.wrap("blockquote",e,s);return this.addRaw(n).addEOL()}addLink(e,r){let s=this.wrap("a",e,{href:r});return this.addRaw(s).addEOL()}},b9e=new gT;var ET=w(require("os"),1);var Q9e=ET.default.platform(),R9e=ET.defauLine 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 zC(n));return s.searchPaths.push(...E2(s.patterns)),s})}static stat(e,r,s){return B2(this,void 0,void 0,function*(){let i;if(r.followSymbolicLinks)try{i=yield Bm.promises.stat(e.path)}catch(n){if(n.code==="ENOENT"){if(r.omitBrokenSymbolicLinks){_o(`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 Bm.promises.lstat(e.path);if(i.isDirectory()&&r.followSymbolicLinks){let n=yield Bm.promises.realpath(e.path);for(;s.length>=e.level;)s.pop();if(s.some(a=>a===n)){_o(`Symlink cycle detected for path '${e.path}' and realpath '${n}'`);return}s.push(n)}return i})}};var v3e=function(t,e,r,s){function i(n){return n instanceof r?n:new r(function(a){a(n)})}return o(i,"adopt"),new(r||(r=Promise))(function(n,a){function c(h){try{u(s.next(h))}catch(d){a(d)}}o(c,"fulfilled");function l(h){try{u(s.throw(h))}catch(d){a(d)}}o(l,"rejected");function u(h){h.done?n(h.value):i(h.value).then(c,l)}o(u,"step"),u((s=s.apply(t,e||[])).next())})};function Coe(t,e){return v3e(this,void 0,void 0,function*(){return yield gx.create(t,e)})}o(Coe,"create");var Px=M(require("crypto"),1),Nm=M(require("fs"),1),vf=M(require("path"),1),hce=M(lce(),1),dce=M(require("util"),1);var ZC;(function(t){t.Gzip="cache.tgz",t.Zstd="cache.tzst"})(ZC||(ZC={}));var Ii;(function(t){t.Gzip="gzip",t.ZstdWithoutLong="zstd-without-long",t.Zstd="zstd"})(Ii||(Ii={}));var Gn;(function(t){t.GNU="gnu",t.BSD="bsd"})(Gn||(Gn={}));var _x=2,Qx=5e3,z2=5e3,V2=`${process.env.PROGRAMFILES}\\Git\\usr\\bin\\tar.exe`,uce=`${process.env.SYSTEMDRIVE}\\Windows\\System32\\tar.exe`,eI="cache.tar",$2="manifest.txt",BLt=10*Math.pow(1024,3);var xm=function(t,e,r,s){function i(n){return n instanceof r?n:new r(function(a){a(n)})}return o(i,"adopt"),new(r||(r=Promise))(function(n,a){function c(h){try{u(s.next(h))}catch(d){a(d)}}o(c,"fulfilled");function l(h){try{u(s.throw(h))}catch(d){a(d)}}o(l,"rejected");function u(h){h.done?n(h.value):i(h.value).then(c,l)}o(u,"step"),u((s=s.apply(t,e||[])).next())})},x6e=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(a){return new Promise(function(c,l){a=t[n](a),i(c,l,a.done,a.value)})}}function i(n,a,c,l){Promise.resolve(l).then(function(u){n({value:u,done:c})},a)}},N6e="1.0";function tI(){return xm(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=vf.join(s,"actions","temp")}let r=vf.join(e,Px.randomUUID());return yield Kl(r),r})}o(tI,"createTempDirectory");function mc(t){return Nm.statSync(t).size}o(mc,"getArchiveFileSizeInBytes");function j2(t){return xm(this,void 0,void 0,function*(){var e,r,s,i,n;let a=[],c=(n=process.env.GITHUB_WORKSPACE)!==null&&n!==void 0?n:process.cwd(),l=yield Coe(t.join(`
|
||||
`),{implicitDescendants:!1});try{for(var u=!0,h=x6e(l.globGenerator()),d;d=yield h.next(),e=d.done,!e;u=!0){i=d.value,u=!1;let p=vf.relative(c,i).replace(new RegExp(`\\${vf.sep}`,"g"),"/");Q(`Matched: ${p}`),p===""?a.push("."):a.push(`${p}`)}}catch(f){r={error:f}}finally{try{!u&&!e&&(s=h.return)&&(yield s.call(h))}finally{if(r)throw r.error}}return a})}o(j2,"resolvePaths");function rI(t){return xm(this,void 0,void 0,function*(){return dce.promisify(Nm.unlink)(t)})}o(rI,"unlinkFile");function fce(t){return xm(this,arguments,void 0,function*(e,r=[]){let s="";r.push("--version"),Q(`Checking ${e} ${r.join(" ")}`);try{yield Fn(`${e}`,r,{ignoreReturnCode:!0,silent:!0,listeners:{stdout:o(i=>s+=i.toString(),"stdout"),stderr:o(i=>s+=i.toString(),"stderr")}})}catch(i){Q(i.message)}return s=s.trim(),Q(s),s})}o(fce,"getVersion");function sI(){return xm(this,void 0,void 0,function*(){let t=yield fce("zstd",["--quiet"]),e=hce.clean(t);return Q(`zstd version: ${e}`),t===""?Ii.Gzip:Ii.ZstdWithoutLong})}o(sI,"getCompressionMethod");function Gh(t){return t===Ii.Gzip?ZC.Gzip:ZC.Zstd}o(Gh,"getCacheFileName");function pce(){return xm(this,void 0,void 0,function*(){return Nm.existsSync(V2)?V2:(yield fce("tar")).toLowerCase().includes("gnu tar")?Ls("tar"):""})}o(pce,"getGnuTarPathOnWindows");function J2(t,e){if(e===void 0)throw Error(`Expected ${t} but value was undefiend`);return e}o(J2,"assertDefined");function Rm(t,e,r=!1){let s=t.slice();return e&&s.push(e),process.platform==="win32"&&!r&&s.push("windows-only"),s.push(N6e),Px.createHash("sha256").update(s.join("|")).digest("hex")}o(Rm,"getCacheVersion");function Ace(){let t=process.env.ACTIONS_RUNTIME_TOKEN;if(!t)throw new Error("Unable to get the ACTIONS_RUNTIME_TOKEN env variable");return t}o(Ace,"getRuntimeToken");var nI=M(require("http"),1),K2=M(require("https"),1);function Y2(t){let e=t.protocol==="https:";if(R6e(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 Dx(r)}catch{if(!r.startsWith("http://")&&!r.startsWith("https://"))return new Dx(`http://${r}`)}else return}o(Y2,"getProxyUrl");function R6e(t){if(!t.hostname)return!1;let e=t.hostname;if(v6e(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(a=>a.trim().toUpperCase()).filter(a=>a))if(n==="*"||i.some(a=>a===n||a.endsWith(`.${n}`)||n.startsWith(".")&&a.endsWith(`${n}`)))return!0;return!1}o(R6e,"checkBypass");function v6e(t){let e=t.toLowerCase();return e==="localhost"||e.startsWith("127.")||e.startsWith("[::1]")||e.startsWith("[0:0:0:0:0:0:0:1]")}o(v6e,"isLoopbackAddress");var Dx=class extends URL{static{o(this,"DecodedURL")}constructor(e,r){super(e,r),this._decodedUsername=decodeURIComponent(super.username),this._decodedPassword=decodeURIComponent(super.password)}get username(){return this._decodedUsername}get password(){return this._decodedPassword}};var Hh=M(bE(),1),mce=M(pm(),1);var Qr=function(t,e,r,s){function i(n){return n instanceof r?n:new r(function(a){a(n)})}return o(i,"adopt"),new(r||(r=Promise))(function(n,a){function c(h){try{u(s.next(h))}catch(d){a(d)}}o(c,"fulfilled");function l(h){try{u(s.throw(h))}catch(d){a(d)}}o(l,"rejected");function u(h){h.done?n(h.value):i(h.value).then(c,l)}o(u,"step"),u((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 bi;(function(t){t.Accept="accept",t.ContentType="content-type"})(bi||(bi={}));var tu;(function(t){t.ApplicationJson="application/json"})(tu||(tu={}));var _6e=[mr.MovedPermanently,mr.ResourceMoved,mr.SeeOther,mr.TemporaryRedirect,mr.PermanentRedirect],Q6e=[mr.BadGateway,mr.ServiceUnavailable,mr.GatewayTimeout],P6e=["OPTIONS","GET","DELETE","HEAD"],O6e=10,D6e=5,gc=class t extends Error{static{o(this,"HttpClientError")}const
Line truncated
|
||||
${z6e.sanitize({...this,request:{...this.request,agent:s},response:this.response})}`,"value"),enumerable:!1}),Object.setPrototypeOf(this,t.prototype)}};function qx(t){return t instanceof wi?!0:_f(t)&&t.name==="RestError"}o(qx,"isRestError");function en(t,e){return Buffer.from(t,e)}o(en,"stringToUint8Array");var Gx=M(require("node:http"),1),Hx=M(require("node:https"),1),aF=M(require("node:zlib"),1),Oce=require("node:stream");var Oo=oI("ts-http-runtime");var V6e={};function aI(t){return t&&typeof t.pipe=="function"}o(aI,"isReadableStream");function Pce(t){return t.readable===!1?Promise.resolve():new Promise(e=>{let r=o(()=>{e(),t.removeListener("close",r),t.removeListener("end",r),t.removeListener("error",r)},"handler");t.on("close",r),t.on("end",r),t.on("error",r)})}o(Pce,"isStreamComplete");function Dce(t){return t&&typeof t.byteLength=="number"}o(Dce,"isArrayBuffer");var zx=class extends Oce.Transform{static{o(this,"ReportTransform")}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}},cF=class{static{o(this,"NodeHttpClient")}cachedHttpAgent;cachedHttpsAgents=new WeakMap;async sendRequest(e){let r=new AbortController,s;if(e.abortSignal){if(e.abortSignal.aborted)throw new yc("The operation was aborted. Request has already been canceled.");s=o(u=>{u.type==="abort"&&r.abort()},"abortListener"),e.abortSignal.addEventListener("abort",s)}let i;e.timeout>0&&(i=setTimeout(()=>{let u=new Qa;Oo.info(`request to '${u.sanitizeUrl(e.url)}' timed out. canceling...`),r.abort()},e.timeout));let n=e.headers.get("Accept-Encoding"),a=n?.includes("gzip")||n?.includes("deflate"),c=typeof e.body=="function"?e.body():e.body;if(c&&!e.headers.has("Content-Length")){let u=Y6e(c);u!==null&&e.headers.set("Content-Length",u)}let l;try{if(c&&e.onUploadProgress){let A=e.onUploadProgress,g=new zx(A);g.on("error",C=>{Oo.error("Error in upload progress",C)}),aI(c)?c.pipe(g):g.end(c),c=g}let u=await this.makeRequest(e,r,c);i!==void 0&&clearTimeout(i);let h=$6e(u),f={status:u.statusCode??0,headers:h,request:e};if(e.method==="HEAD")return u.resume(),f;l=a?j6e(u,h):u;let p=e.onDownloadProgress;if(p){let A=new zx(p);A.on("error",g=>{Oo.error("Error in download progress",g)}),l.pipe(A),l=A}return e.streamResponseStatusCodes?.has(Number.POSITIVE_INFINITY)||e.streamResponseStatusCodes?.has(f.status)?f.readableStreamBody=l:f.bodyAsText=await J6e(l),f}finally{if(e.abortSignal&&s){let u=Promise.resolve();aI(c)&&(u=Pce(c));let h=Promise.resolve();aI(l)&&(h=Pce(l)),Promise.all([u,h]).then(()=>{s&&e.abortSignal?.removeEventListener("abort",s)}).catch(d=>{Oo.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 c={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((l,u)=>{let h=n?Gx.default.request(c,l):Hx.default.request(c,l);h.once("error",d=>{u(new wi(d.message,{code:d.code??wi.REQUEST_SEND_ERROR,request:e}))}),r.signal.addEventListener("abort",()=>{let d=new yc("The operation was aborted. Rejecting from abort signal callback while making request.");h.destroy(d),u(d)}),s&&aI(s)?s.pipe(h):s?typeof s=="string"||Buffer.isBuffer(s)?h.end(s):Dce(s)?h.end(ArrayBuffer.isView(s)?Buffer.from(s.buffer):Buffer.from(s)):(Oo.error("Unrecognized body type",s),u(new wi("Unrecognized body type"))):h.end()})}getOrCreateAgent(e,r){let s=e.disableKeepAlive;if(r)return s?Gx.default.globalAgent:(this.cachedHttpAgent||(this.cachedHttpAgent=new Gx.default.Agent({keepAlive:!0})),this.cachedHttpAgent);{if(s&&!e.tlsSettings)return Hx.default.globalAgent;let i=e.tlsSettings??V6e,n=this.cachedHttpsAgents.get(i);return n&&n.options.keepAlive===!s||(Oo.info("No cached TLS Agent exist, creating a new Agent"),n=new Hx.default.Agent({keepAlive:!s,...i}),this.cachedHttpsAgents.set(i,n)),n}}};function $6e(t){let e=Hn();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}o($6e,"getResponseHeaders");function j6e(t,e){let r=e.get("Content-Encoding");if(r==="gzip"){let s=aF.default.createGunzip();return t.pipe(s),s}else if(r==="deflate"){let s=aF.default.createInflate();return t.pipe(s),s}return t}o(j6e,"getDecodedResponseStream");function J6e(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 wi(`Error reading response as text: ${i.message}`,{code:wi.PARSE_ERROR}))})})}o(J6e,"streamToText");function Y6e(t){return t?Buffer.isBuffer(t)?t.length:
Line truncated
|
||||
`;return e}o(xJe,"encodeHeaders");function NJe(t){return t instanceof Uint8Array?t.byteLength:fN(t)?t.size===-1?void 0:t.size:void 0}o(NJe,"getLength");function RJe(t){let e=0;for(let r of t){let s=NJe(r);if(s===void 0)return;e+=s}return e}o(RJe,"getTotalLength");async function vJe(t,e,r){let s=[en(`--${r}`,"utf-8"),...e.flatMap(n=>[en(`\r
|
||||
`,"utf-8"),en(xJe(n.headers),"utf-8"),en(`\r
|
||||
`,"utf-8"),n.body,en(`\r
|
||||
--${r}`,"utf-8")]),en(`--\r
|
||||
`));let n=e.split(`
|
||||
`).map(i=>i.trim());for(let i of n)!i||i.startsWith("#")||s.patterns.push(new Bh(i));return s.searchPaths.push(...XT(s.patterns)),s})}static stat(e,r,s){return sv(this,void 0,void 0,function*(){let n;if(r.followSymbolicLinks)try{n=yield Kd.promises.stat(e.path)}catch(i){if(i.code==="ENOENT"){if(r.omitBrokenSymbolicLinks){hn(`Broken symlink '${e.path}'`);return}throw new Error(`No information found for the path '${e.path}'. This may indicate a broken symbolic link.`)}throw i}else n=yield Kd.promises.lstat(e.path);if(n.isDirectory()&&r.followSymbolicLinks){let i=yield Kd.promises.realpath(e.path);for(;s.length>=e.level;)s.pop();if(s.some(a=>a===i)){hn(`Symlink cycle detected for path '${e.path}' and realpath '${i}'`);return}s.push(i)}return n})}};var BSe=function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(a){a(i)})}return o(n,"adopt"),new(r||(r=Promise))(function(i,a){function c(d){try{u(s.next(d))}catch(A){a(A)}}o(c,"fulfilled");function l(d){try{u(s.throw(d))}catch(A){a(A)}}o(l,"rejected");function u(d){d.done?i(d.value):n(d.value).then(c,l)}o(u,"step"),u((s=s.apply(t,e||[])).next())})};function q4(t,e){return BSe(this,void 0,void 0,function*(){return yield RC.create(t,e)})}o(q4,"create");var zC=w(require("crypto"),1),eA=w(require("fs"),1),Dl=w(require("path"),1),P8=w(T8(),1),_8=w(require("util"),1);var vh;(function(t){t.Gzip="cache.tgz",t.Zstd="cache.tzst"})(vh||(vh={}));var Ur;(function(t){t.Gzip="gzip",t.ZstdWithoutLong="zstd-without-long",t.Zstd="zstd"})(Ur||(Ur={}));var Fs;(function(t){t.GNU="gnu",t.BSD="bsd"})(Fs||(Fs={}));var HC=2,VC=5e3,bv=5e3,wv=`${process.env.PROGRAMFILES}\\Git\\usr\\bin\\tar.exe`,v8=`${process.env.SYSTEMDRIVE}\\Windows\\System32\\tar.exe`,Ph="cache.tar",Sv="manifest.txt",Pet=10*Math.pow(1024,3);var Zd=function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(a){a(i)})}return o(n,"adopt"),new(r||(r=Promise))(function(i,a){function c(d){try{u(s.next(d))}catch(A){a(A)}}o(c,"fulfilled");function l(d){try{u(s.throw(d))}catch(A){a(A)}}o(l,"rejected");function u(d){d.done?i(d.value):n(d.value).then(c,l)}o(u,"step"),u((s=s.apply(t,e||[])).next())})},yQe=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(i){r[i]=t[i]&&function(a){return new Promise(function(c,l){a=t[i](a),n(c,l,a.done,a.value)})}}function n(i,a,c,l){Promise.resolve(l).then(function(u){i({value:u,done:c})},a)}},CQe="1.0";function _h(){return Zd(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=Dl.join(s,"actions","temp")}let r=Dl.join(e,zC.randomUUID());return yield ra(r),r})}o(_h,"createTempDirectory");function Li(t){return eA.statSync(t).size}o(Li,"getArchiveFileSizeInBytes");function Nv(t){return Zd(this,void 0,void 0,function*(){var e,r,s,n,i;let a=[],c=(i=process.env.GITHUB_WORKSPACE)!==null&&i!==void 0?i:process.cwd(),l=yield q4(t.join(`
|
||||
`),{implicitDescendants:!1});try{for(var u=!0,d=yQe(l.globGenerator()),A;A=yield d.next(),e=A.done,!e;u=!0){n=A.value,u=!1;let f=Dl.relative(c,n).replace(new RegExp(`\\${Dl.sep}`,"g"),"/");b(`Matched: ${f}`),f===""?a.push("."):a.push(`${f}`)}}catch(p){r={error:p}}finally{try{!u&&!e&&(s=d.return)&&(yield s.call(d))}finally{if(r)throw r.error}}return a})}o(Nv,"resolvePaths");function kh(t){return Zd(this,void 0,void 0,function*(){return _8.promisify(eA.unlink)(t)})}o(kh,"unlinkFile");function k8(t){return Zd(this,arguments,void 0,function*(e,r=[]){let s="";r.push("--version"),b(`Checking ${e} ${r.join(" ")}`);try{yield Os(`${e}`,r,{ignoreReturnCode:!0,silent:!0,listeners:{stdout:o(n=>s+=n.toString(),"stdout"),stderr:o(n=>s+=n.toString(),"stderr")}})}catch(n){b(n.message)}return s=s.trim(),b(s),s})}o(k8,"getVersion");function Dh(){return Zd(this,void 0,void 0,function*(){let t=yield k8("zstd",["--quiet"]),e=P8.clean(t);return b(`zstd version: ${e}`),t===""?Ur.Gzip:Ur.ZstdWithoutLong})}o(Dh,"getCompressionMethod");function pc(t){return t===Ur.Gzip?vh.Gzip:vh.Zstd}o(pc,"getCacheFileName");function D8(){return Zd(this,void 0,void 0,function*(){return eA.existsSync(wv)?wv:(yield k8("tar")).toLowerCase().includes("gnu tar")?fr("tar"):""})}o(D8,"getGnuTarPathOnWindows");function xv(t,e){if(e===void 0)throw Error(`Expected ${t} but value was undefiend`);return e}o(xv,"assertDefined");function tA(t,e,r=!1){let s=t.slice();return e&&s.push(e),process.platform==="win32"&&!r&&s.push("windows-only"),s.push(CQe),zC.createHash("sha256").update(s.join("|")).digest("hex")}o(tA,"getCacheVersion");function O8(){let t=process.env.ACTIONS_RUNTIME_TOKEN;if(!t)throw new Error("Unable to get the ACTIONS_RUNTIME_TOKEN env variable");return t}o(O8,"getRuntimeToken");var Mh=w(require("http"),1),Tv=w(require("https"),1);function Qv(t){let e=t.protocol==="https:";if(IQe(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 YC(r)}catch{if(!r.startsWith("http://")&&!r.startsWith("https://"))return new YC(`http://${r}`)}else return}o(Qv,"getProxyUrl");function IQe(t){if(!t.hostname)return!1;let e=t.hostname;if(BQe(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 n=[t.hostname.toUpperCase()];typeof s=="number"&&n.push(`${n[0]}:${s}`);for(let i of r.split(",").map(a=>a.trim().toUpperCase()).filter(a=>a))if(i==="*"||n.some(a=>a===i||a.endsWith(`.${i}`)||i.startsWith(".")&&a.endsWith(`${i}`)))return!0;return!1}o(IQe,"checkBypass");function BQe(t){let e=t.toLowerCase();return e==="localhost"||e.startsWith("127.")||e.startsWith("[::1]")||e.startsWith("[0:0:0:0:0:0:0:1]")}o(BQe,"isLoopbackAddress");var YC=class extends URL{static{o(this,"DecodedURL")}constructor(e,r){super(e,r),this._decodedUsername=decodeURIComponent(super.username),this._decodedPassword=decodeURIComponent(super.password)}get username(){return this._decodedUsername}get password(){return this._decodedPassword}};var fc=w(Zp(),1),M8=w(qd(),1);var vt=function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(a){a(i)})}return o(n,"adopt"),new(r||(r=Promise))(function(i,a){function c(d){try{u(s.next(d))}catch(A){a(A)}}o(c,"fulfilled");function l(d){try{u(s.throw(d))}catch(A){a(A)}}o(l,"rejected");function u(d){d.done?i(d.value):n(d.value).then(c,l)}o(u,"step"),u((s=s.apply(t,e||[])).next())})},yt;(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"})(yt||(yt={}));var qr;(function(t){t.Accept="accept",t.ContentType="content-type"})(qr||(qr={}));var oa;(function(t){t.ApplicationJson="application/json"})(oa||(oa={}));var wQe=[yt.MovedPermanently,yt.ResourceMoved,yt.SeeOther,yt.TemporaryRedirect,yt.PermanentRedirect],SQe=[yt.BadGateway,yt.ServiceUnavailable,yt.GatewayTimeout],NQe=["OPTIONS","GET","DELETE","HEAD"],xQe=10,QQe=5,Fi=class t extends Error{static{o(this,"HttpClientError")}constructor(e,r)
Line truncated
|
||||
${MQe.sanitize({...this,request:{...this.request,agent:s},response:this.response})}`,"value"),enumerable:!1}),Object.setPrototypeOf(this,t.prototype)}};function ZC(t){return t instanceof Gr?!0:Ml(t)&&t.name==="RestError"}o(ZC,"isRestError");function is(t,e){return Buffer.from(t,e)}o(is,"stringToUint8Array");var eI=w(require("node:http"),1),tI=w(require("node:https"),1),Uv=w(require("node:zlib"),1),t6=require("node:stream");var En=Lh("ts-http-runtime");var LQe={};function Fh(t){return t&&typeof t.pipe=="function"}o(Fh,"isReadableStream");function e6(t){return t.readable===!1?Promise.resolve():new Promise(e=>{let r=o(()=>{e(),t.removeListener("close",r),t.removeListener("end",r),t.removeListener("error",r)},"handler");t.on("close",r),t.on("end",r),t.on("error",r)})}o(e6,"isStreamComplete");function r6(t){return t&&typeof t.byteLength=="number"}o(r6,"isArrayBuffer");var rI=class extends t6.Transform{static{o(this,"ReportTransform")}loadedBytes=0;progressCallback;_transform(e,r,s){this.push(e),this.loadedBytes+=e.length;try{this.progressCallback({loadedBytes:this.loadedBytes}),s()}catch(n){s(n)}}constructor(e){super(),this.progressCallback=e}},qv=class{static{o(this,"NodeHttpClient")}cachedHttpAgent;cachedHttpsAgents=new WeakMap;async sendRequest(e){let r=new AbortController,s;if(e.abortSignal){if(e.abortSignal.aborted)throw new Ui("The operation was aborted. Request has already been canceled.");s=o(u=>{u.type==="abort"&&r.abort()},"abortListener"),e.abortSignal.addEventListener("abort",s)}let n;e.timeout>0&&(n=setTimeout(()=>{let u=new ni;En.info(`request to '${u.sanitizeUrl(e.url)}' timed out. canceling...`),r.abort()},e.timeout));let i=e.headers.get("Accept-Encoding"),a=i?.includes("gzip")||i?.includes("deflate"),c=typeof e.body=="function"?e.body():e.body;if(c&&!e.headers.has("Content-Length")){let u=GQe(c);u!==null&&e.headers.set("Content-Length",u)}let l;try{if(c&&e.onUploadProgress){let m=e.onUploadProgress,g=new rI(m);g.on("error",y=>{En.error("Error in upload progress",y)}),Fh(c)?c.pipe(g):g.end(c),c=g}let u=await this.makeRequest(e,r,c);n!==void 0&&clearTimeout(n);let d=FQe(u),p={status:u.statusCode??0,headers:d,request:e};if(e.method==="HEAD")return u.resume(),p;l=a?UQe(u,d):u;let f=e.onDownloadProgress;if(f){let m=new rI(f);m.on("error",g=>{En.error("Error in download progress",g)}),l.pipe(m),l=m}return e.streamResponseStatusCodes?.has(Number.POSITIVE_INFINITY)||e.streamResponseStatusCodes?.has(p.status)?p.readableStreamBody=l:p.bodyAsText=await qQe(l),p}finally{if(e.abortSignal&&s){let u=Promise.resolve();Fh(c)&&(u=e6(c));let d=Promise.resolve();Fh(l)&&(d=e6(l)),Promise.all([u,d]).then(()=>{s&&e.abortSignal?.removeEventListener("abort",s)}).catch(A=>{En.warning("Error when cleaning up abortListener on httpRequest",A)})}}}makeRequest(e,r,s){let n=new URL(e.url),i=n.protocol!=="https:";if(i&&!e.allowInsecureConnection)throw new Error(`Cannot connect to ${e.url} while allowInsecureConnection is false.`);let c={agent:e.agent??this.getOrCreateAgent(e,i),hostname:n.hostname,path:`${n.pathname}${n.search}`,port:n.port,method:e.method,headers:e.headers.toJSON({preserveCase:!0}),...e.requestOverrides};return new Promise((l,u)=>{let d=i?eI.default.request(c,l):tI.default.request(c,l);d.once("error",A=>{u(new Gr(A.message,{code:A.code??Gr.REQUEST_SEND_ERROR,request:e}))}),r.signal.addEventListener("abort",()=>{let A=new Ui("The operation was aborted. Rejecting from abort signal callback while making request.");d.destroy(A),u(A)}),s&&Fh(s)?s.pipe(d):s?typeof s=="string"||Buffer.isBuffer(s)?d.end(s):r6(s)?d.end(ArrayBuffer.isView(s)?Buffer.from(s.buffer):Buffer.from(s)):(En.error("Unrecognized body type",s),u(new Gr("Unrecognized body type"))):d.end()})}getOrCreateAgent(e,r){let s=e.disableKeepAlive;if(r)return s?eI.default.globalAgent:(this.cachedHttpAgent||(this.cachedHttpAgent=new eI.default.Agent({keepAlive:!0})),this.cachedHttpAgent);{if(s&&!e.tlsSettings)return tI.default.globalAgent;let n=e.tlsSettings??LQe,i=this.cachedHttpsAgents.get(n);return i&&i.options.keepAlive===!s||(En.info("No cached TLS Agent exist, creating a new Agent"),i=new tI.default.Agent({keepAlive:!s,...n}),this.cachedHttpsAgents.set(n,i)),i}}};function FQe(t){let e=Us();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}o(FQe,"getResponseHeaders");function UQe(t,e){let r=e.get("Content-Encoding");if(r==="gzip"){let s=Uv.default.createGunzip();return t.pipe(s),s}else if(r==="deflate"){let s=Uv.default.createInflate();return t.pipe(s),s}return t}o(UQe,"getDecodedResponseStream");function qQe(t){return new Promise((e,r)=>{let s=[];t.on("data",n=>{Buffer.isBuffer(n)?s.push(n):s.push(Buffer.from(n))}),t.on("end",()=>{e(Buffer.concat(s).toString("utf8"))}),t.on("error",n=>{n&&n?.name==="AbortError"?r(n):r(new Gr(`Error reading response as text: ${n.message}`,{code:Gr.PARSE_ERROR}))})})}o(qQe,"streamToText");function GQe(t){return t?Buffer.isBuffer(t)?t.length:Fh(t)?nul
Line truncated
|
||||
`;return e}o(yTe,"encodeHeaders");function CTe(t){return t instanceof Uint8Array?t.byteLength:NI(t)?t.size===-1?void 0:t.size:void 0}o(CTe,"getLength");function ITe(t){let e=0;for(let r of t){let s=CTe(r);if(s===void 0)return;e+=s}return e}o(ITe,"getTotalLength");async function BTe(t,e,r){let s=[is(`--${r}`,"utf-8"),...e.flatMap(i=>[is(`\r
|
||||
`,"utf-8"),is(yTe(i.headers),"utf-8"),is(`\r
|
||||
`,"utf-8"),i.body,is(`\r
|
||||
--${r}`,"utf-8")]),is(`--\r
|
||||
\r
|
||||
`,"utf-8")],i=RJe(s);i&&t.headers.set("Content-Length",i),t.body=await Mle(s)}o(vJe,"buildRequestBody");var hI="multipartPolicy",TJe=70,_Je=new Set("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'()+,-./:=?");function QJe(t){if(t.length>TJe)throw new Error(`Multipart boundary "${t}" exceeds maximum length of 70 characters`);if(Array.from(t).some(e=>!_Je.has(e)))throw new Error(`Multipart boundary "${t}" contains invalid characters`)}o(QJe,"assertValidBoundary");function AN(){return{name:hI,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,a]=i;if(a&&r&&a!==r)throw new Error(`Multipart boundary was specified as ${a} in the header, but got ${r} in the request body`);return r??=a,r?QJe(r):r=SJe(),t.headers.set("Content-Type",`${n}; boundary=${r}`),await vJe(t,t.multipartBody.parts,r),t.multipartBody=void 0,e(t)}}}o(AN,"multipartPolicy");function mN(){return Ux()}o(mN,"createEmptyPipeline");var Lle=Mx({logLevelEnvVarName:"AZURE_LOG_LEVEL",namespace:"azure"}),bGt=Lle.logger;function Ic(t){return Lle.createClientLogger(t)}o(Ic,"createClientLogger");var bc=Ic("core-rest-pipeline");function RF(t={}){return $x({logger:bc.info,...t})}o(RF,"logPolicy");var vF=jx;function TF(t={}){return Jx(t)}o(TF,"redirectPolicy");var gN=M(require("node:os"),1),yN=M(require("node:process"),1);function Fle(){return"User-Agent"}o(Fle,"getHeaderName");async function Ule(t){if(yN.default&&yN.default.versions){let e=`${gN.default.type()} ${gN.default.release()}; ${gN.default.arch()}`,r=yN.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})`)}}o(Ule,"setPlatformSpecificData");var EN="1.22.2";function UJe(t){let e=[];for(let[r,s]of t){let i=s?`${r}/${s}`:r;e.push(i)}return e.join(" ")}o(UJe,"getUserAgentString");function qle(){return Fle()}o(qle,"getUserAgentHeaderName");async function CN(t){let e=new Map;e.set("core-rest-pipeline",EN),await Ule(e);let r=UJe(e);return t?`${t} ${r}`:r}o(CN,"getUserAgentValue");var Gle=qle(),Hle="userAgentPolicy";function _F(t={}){let e=CN(t.userAgentPrefix);return{name:Hle,async sendRequest(r,s){return r.headers.has(Gle)||r.headers.set(Gle,await e),s(r)}}}o(_F,"userAgentPolicy");var jn=class extends Error{static{o(this,"AbortError")}constructor(e){super(e),this.name="AbortError"}};function QF(t,e){let{cleanupBeforeAbort:r,abortSignal:s,abortErrorMsg:i}=e??{};return new Promise((n,a)=>{function c(){a(new jn(i??"The operation was aborted."))}o(c,"rejectOnAbort");function l(){s?.removeEventListener("abort",u)}o(l,"removeListeners");function u(){r?.(),l(),c()}if(o(u,"onAbort"),s?.aborted)return c();try{t(h=>{l(),n(h)},h=>{l(),a(h)})}catch(h){a(h)}s?.addEventListener("abort",u)})}o(QF,"createAbortablePromise");var VJe="The delay was aborted.";function dI(t,e){let r,{abortSignal:s,abortErrorMsg:i}=e??{};return QF(n=>{r=setTimeout(n,t)},{cleanupBeforeAbort:o(()=>clearTimeout(r),"cleanupBeforeAbort"),abortSignal:s,abortErrorMsg:i??VJe})}o(dI,"delay");function Vh(t){if(_f(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}`}}o(Vh,"getErrorMessage");function zle(t){return _f(t)}o(zle,"isError");function Mm(){return Tf()}o(Mm,"randomUUID");var wt=Of;var Vle=Symbol("rawContent");function OF(t){return typeof t[Vle]=="function"}o(OF,"hasRawContent");function $le(t){return OF(t)?t[Vle]():t}o($le,"getRawContent");var IN=hI;function DF(){let t=AN();return{name:IN,sendRequest:o(async(e,r)=>{if(e.multipartBody)for(let s of e.multipartBody.parts)OF(s.body)&&(s.body=$le(s.body));return t.sendRequest(e,r)},"sendRequest")}}o(DF,"multipartPolicy");var kF=Yx;function MF(){return Wx()}o(MF,"decompressResponsePolicy");function LF(t={}){return Zx(t)}o(LF,"defaultRetryPolicy");function FF(){return eN()}o(FF,"formDataPolicy");function $h(t){return wF(t)}o($h,"getDefaultProxySettings");function UF(t,e){return uN(t,e)}o(UF,"proxyPolicy");var jle="setClientRequestIdPolicy";function qF(t="x-ms-client-request-id"){return{name:jle,async sendRequest(e,r){return e.headers.has(t)||e.headers.set(t,e.requestId),r(e)}}}o(qF,"setClientRequestIdPolicy");function GF(t){return hN(t)}o(GF,"agentPolicy");function HF(t){return dN(t)}o(HF,"tlsPolicy");var Lm={span:Symbol.for("@azure/core-tracing span"),namespace:Symbol.for("@azure/core-tracing namespace")};function Jle(t={}){let e=new zF(t.parentContext);return t.span&&(e=e.setValue(Lm.span,t.span)),t.namespace&&(e=e.setValue(Lm.namespace,t.namespace)),e}o(Jle,"createTracingContext");var zF=class t{static{o(this,"TracingContextImpl")}_contextMap;constructor(e){this._contextMap=e i
Line truncated
|
||||
`&&t[n]!=="\r";n++)l+=t[n];if(l=l.trim(),l[l.length-1]==="/"&&(l=l.substring(0,l.length-1),n--),!AWe(l)){let d;return l.trim().length===0?d="Invalid space after '<'.":d="Tag '"+l+"' is an invalid name.",Pr("InvalidTag",d,Bi(t,n))}let u=uWe(t,n);if(u===!1)return Pr("InvalidAttr","Attributes for '"+l+"' have open quote.",Bi(t,n));let h=u.value;if(n=u.index,h[h.length-1]==="/"){let d=n-h.length;h=h.substring(0,h.length-1);let f=_ue(h,e);if(f===!0)s=!0;else return Pr(f.err.code,f.err.msg,Bi(t,d+f.err.line))}else if(c)if(u.tagClosed){if(h.trim().length>0)return Pr("InvalidTag","Closing tag '"+l+"' can't have attributes or invalid starting.",Bi(t,a));if(r.length===0)return Pr("InvalidTag","Closing tag '"+l+"' has not been opened.",Bi(t,a));{let d=r.pop();if(l!==d.tagName){let f=Bi(t,d.tagStartPos);return Pr("InvalidTag","Expected closing tag '"+d.tagName+"' (opened in line "+f.line+", col "+f.col+") instead of closing tag '"+l+"'.",Bi(t,a))}r.length==0&&(i=!0)}}else return Pr("InvalidTag","Closing tag '"+l+"' doesn't have proper closing.",Bi(t,n));else{let d=_ue(h,e);if(d!==!0)return Pr(d.err.code,d.err.msg,Bi(t,n-h.length+d.err.line));if(i===!0)return Pr("InvalidXml","Multiple possible root nodes found.",Bi(t,n));e.unpairedTags.indexOf(l)!==-1||r.push({tagName:l,tagStartPos:a}),s=!0}for(n++;n<t.length;n++)if(t[n]==="<")if(t[n+1]==="!"){n++,n=Tue(t,n);continue}else if(t[n+1]==="?"){if(n=vue(t,++n),n.err)return n}else break;else if(t[n]==="&"){let d=fWe(t,n);if(d==-1)return Pr("InvalidChar","char '&' is not expected.",Bi(t,n));n=d}else if(i===!0&&!Rue(t[n]))return Pr("InvalidXml","Extra text at the end",Bi(t,n));t[n]==="<"&&n--}}else{if(Rue(t[n]))continue;return Pr("InvalidChar","char '"+t[n]+"' is not expected.",Bi(t,n))}if(s){if(r.length==1)return Pr("InvalidTag","Unclosed tag '"+r[0].tagName+"'.",Bi(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}o(ON,"validate");function Rue(t){return t===" "||t===" "||t===`
|
||||
`||t==="\r"}o(Rue,"isWhiteSpace");function vue(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.",Bi(t,e));if(t[e]=="?"&&t[e+1]==">"){e++;break}else continue}return e}o(vue,"readPI");function Tue(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}o(Tue,"readCommentAndCDATA");var cWe='"',lWe="'";function uWe(t,e){let r="",s="",i=!1;for(;e<t.length;e++){if(t[e]===cWe||t[e]===lWe)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}}o(uWe,"readAttributeStr");var hWe=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function _ue(t,e){let r=QN(t,hWe),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.",BI(r[i]));if(r[i][3]!==void 0&&r[i][4]===void 0)return Pr("InvalidAttr","Attribute '"+r[i][2]+"' is without value.",BI(r[i]));if(r[i][3]===void 0&&!e.allowBooleanAttributes)return Pr("InvalidAttr","boolean attribute '"+r[i][2]+"' is not allowed.",BI(r[i]));let n=r[i][2];if(!pWe(n))return Pr("InvalidAttr","Attribute '"+n+"' is an invalid name.",BI(r[i]));if(!Object.prototype.hasOwnProperty.call(s,n))s[n]=1;else return Pr("InvalidAttr","Attribute '"+n+"' is repeated.",BI(r[i]))}return!0}o(_ue,"validateAttributeString");function dWe(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}o(dWe,"validateNumberAmpersand");function fWe(t,e){if(e++,t[e]===";")return-1;if(t[e]==="#")return e++,dWe(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}o(fWe,"validateAmpersand");function Pr(t,e,r){return{err:{code:t,msg:e,line:r.line||r,col:r.col}}}o(Pr,"getErrorObject");function pWe(t){return cU(t)}o(pWe,"validateAttrName");function AWe(t){return cU(t)}o(AWe,"validateTagName");function Bi(t,e){let r=t.substring(0,e).split(/\r?\n/);return{line:r.length,col:r[r.length-1].length+1}}o(Bi,"getLineNumberForPosition");function BI(t){return t.startIndex+t[1].length}o(BI,"getPositionFromMatch");var Que={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"},Pue={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"},Oue={Amacr:"\u0100",amacr:"\u0101",Abreve:"\u0102",abreve:"\u0103",Aogon:"\u0104",aogon:"\u0105",Cacute:"\u0106",cacute:"\u0107",Ccirc:"\u0108",ccirc:"\u0109",Cdot:"\u010A",cdot:"\u010B",Ccaron:"\u010C",ccaron:"\u010D",Dcaron:"\u010E",dcaron:"\u010F",Dstrok:"\u0110",dstrok:"\u0111",Emacr:"\u0112",emacr:"\u0113",Ecaron:"\u011A",ecaron:"\u011B",Edot:"\u0116",edot:"\u0117",Eogon:"\u0118",eogon:"\u0119",Gcirc:"\u011C",gcirc:"\u011D",Gbreve:"\u011E",gbreve:"\u011F",Gdot:"\u0120",gdot:"\u0121",Gcedil:"\u0122",Hcirc:"\u0124",hcirc:"\Line truncated
|
||||
`);let e=new nn("!xml"),r=e,s="";this.matcher.reset(),this.entityDecoder.reset(),this.entityExpansionCount=0,this.currentExpandedLength=0;let i=this.options,n=new NI(i.processEntities),a=t.length;for(let c=0;c<a;c++)if(t[c]==="<"){let u=t.charCodeAt(c+1);if(u===47){let h=Hm(t,">",c,"Closing Tag is not closed."),d=t.substring(c+2,h).trim();if(i.removeNSPrefix){let p=d.indexOf(":");p!==-1&&(d=d.substr(p+1))}d=mU(i.transformTagName,d,"",i).tagName,r&&(s=this.saveTextToParentTag(s,r,this.readonlyMatcher));let f=this.matcher.getCurrentTag();if(d&&i.unpairedTagsSet.has(d))throw new Error(`Unpaired tag can not be used as closing tag: </${d}>`);f&&i.unpairedTagsSet.has(f)&&(this.matcher.pop(),this.tagsNodeStack.pop()),this.matcher.pop(),this.isCurrentNodeStopNode=!1,r=this.tagsNodeStack.pop(),s="",c=h}else if(u===63){let h=gU(t,c,!1,"?>");if(!h)throw new Error("Pi Tag is not closed.");s=this.saveTextToParentTag(s,r,this.readonlyMatcher);let d=this.buildAttributesMap(h.tagExp,this.matcher,h.tagName,!0);if(d){let f=d[this.options.attributeNamePrefix+"version"];this.entityDecoder.setXmlVersion(Number(f)||1),n.setXmlVersion(Number(f)||1)}if(!(i.ignoreDeclaration&&h.tagName==="?xml"||i.ignorePiTags)){let f=new nn(h.tagName);f.add(i.textNodeName,""),h.tagName!==h.tagExp&&h.attrExpPresent&&i.ignoreAttributes!==!0&&(f[":@"]=d),this.addChild(r,f,this.readonlyMatcher,c)}c=h.closeIndex+1}else if(u===33&&t.charCodeAt(c+2)===45&&t.charCodeAt(c+3)===45){let h=Hm(t,"-->",c+4,"Comment is not closed.");if(i.commentPropName){let d=t.substring(c+4,h-2);s=this.saveTextToParentTag(s,r,this.readonlyMatcher),r.add(i.commentPropName,[{[i.textNodeName]:d}])}c=h}else if(u===33&&t.charCodeAt(c+2)===68){let h=n.readDocType(t,c);this.entityDecoder.addInputEntities(h.entities),c=h.i}else if(u===33&&t.charCodeAt(c+2)===91){let h=Hm(t,"]]>",c,"CDATA is not closed.")-2,d=t.substring(c+9,h);s=this.saveTextToParentTag(s,r,this.readonlyMatcher);let f=this.parseTextData(d,r.tagname,this.readonlyMatcher,!0,!1,!0,!0);f==null&&(f=""),i.cdataPropName?r.add(i.cdataPropName,[{[i.textNodeName]:d}]):r.add(i.textNodeName,f),c=h+2}else{let h=gU(t,c,i.removeNSPrefix);if(!h){let D=t.substring(Math.max(0,c-50),Math.min(a,c+50));throw new Error(`readTagExp returned undefined at position ${c}. Context: "${D}"`)}let d=h.tagName,f=h.rawTagName,p=h.tagExp,A=h.attrExpPresent,g=h.closeIndex;if({tagName:d,tagExp:p}=mU(i.transformTagName,d,p,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 C=r;C&&i.unpairedTagsSet.has(C.tagname)&&(r=this.tagsNodeStack.pop(),this.matcher.pop());let E=!1;p.length>0&&p.lastIndexOf("/")===p.length-1&&(E=!0,d[d.length-1]==="/"?(d=d.substr(0,d.length-1),p=d):p=p.substr(0,p.length-1),A=d!==p);let I=null,B={},x;x=LWe(f),d!==e.tagname&&this.matcher.push(d,{},x),d!==p&&A&&(I=this.buildAttributesMap(p,this.matcher,d),I&&(B=MWe(I,i))),d!==e.tagname&&(this.isCurrentNodeStopNode=this.isItStopNode());let R=c;if(this.isCurrentNodeStopNode){let D="";if(E)c=h.closeIndex;else if(i.unpairedTagsSet.has(d))c=h.closeIndex;else{let L=this.readStopNodeData(t,f,g+1);if(!L)throw new Error(`Unexpected end of ${f}`);c=L.i,D=L.tagContent}let O=new nn(d);I&&(O[":@"]=I),O.add(i.textNodeName,D),this.matcher.pop(),this.isCurrentNodeStopNode=!1,this.addChild(r,O,this.readonlyMatcher,R)}else{if(E){({tagName:d,tagExp:p}=mU(i.transformTagName,d,p,i));let D=new nn(d);I&&(D[":@"]=I),this.addChild(r,D,this.readonlyMatcher,R),this.matcher.pop(),this.isCurrentNodeStopNode=!1}else if(i.unpairedTagsSet.has(d)){let D=new nn(d);I&&(D[":@"]=I),this.addChild(r,D,this.readonlyMatcher,R),this.matcher.pop(),this.isCurrentNodeStopNode=!1,c=h.closeIndex;continue}else{let D=new nn(d);if(this.tagsNodeStack.length>i.maxNestedTags)throw new Error("Maximum nested tags exceeded");this.tagsNodeStack.push(r),I&&(D[":@"]=I),this.addChild(r,D,this.readonlyMatcher,R),r=D}s="",c=g}}}else s+=t[c];return e.child},"parseXml");function zWe(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))}o(zWe,"addChild");function VWe(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)}o(VWe,"replaceEntitiesValue");function $We(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}o($We,"saveTextToParentTag");function jWe(){return this.stopNodeExpressionsSet.Line truncated
|
||||
`;function r9e(t,e){if(!Array.isArray(t)||t.length===0)return"1.0";let r=t[0];if(wU(r)==="?xml"){let i=r[":@"];if(i){let n=e.attributeNamePrefix+"version";if(i[n])return i[n]}}return"1.0"}o(r9e,"detectXmlVersionFromArray");function ehe(t,e,r,s,i){return!r.sanitizeName||Uf(t,{xmlVersion:i})?t:r.sanitizeName(t,{isAttribute:e,matcher:s.readOnly()})}o(ehe,"resolveTagName");function bU(t,e){let r="";e.format&&(r=t9e);let s=[];if(e.stopNodes&&Array.isArray(e.stopNodes))for(let a=0;a<e.stopNodes.length;a++){let c=e.stopNodes[a];typeof c=="string"?s.push(new Wn(c)):c instanceof Wn&&s.push(c)}let i=r9e(t,e),n=new Sc;return the(t,e,r,n,s,i)}o(bU,"toXml");function the(t,e,r,s,i,n){let a="",c=!1;if(e.maxNestedTags&&s.getDepth()>e.maxNestedTags)throw new Error("Maximum nested tags exceeded");if(!Array.isArray(t)){if(t!=null){let l=t.toString();return l=IU(l,e),l}return""}for(let l=0;l<t.length;l++){let u=t[l],h=wU(u);if(h===void 0)continue;let f=h===e.textNodeName||h===e.cdataPropName||h===e.commentPropName||h[0]==="?"?h:ehe(h,!1,e,s,n),p=s9e(u[":@"],e);s.push(f,p);let A=n9e(s,i);if(f===e.textNodeName){let B=u[h];A||(B=e.tagValueProcessor(f,B),B=IU(B,e)),c&&(a+=r),a+=B,c=!1,s.pop();continue}else if(f===e.cdataPropName){c&&(a+=r);let B=u[h][0][e.textNodeName],x=FN(B);a+=`<![CDATA[${x}]]>`,c=!1,s.pop();continue}else if(f===e.commentPropName){let B=u[h][0][e.textNodeName],x=LN(B);a+=r+`<!--${x}-->`,c=!0,s.pop();continue}else if(f[0]==="?"){let B=Zue(u[":@"],e,A,s,n);a+=(f==="?xml"?"":r)+`<${f}${B}?>`,c=!0,s.pop();continue}let g=r;g!==""&&(g+=e.indentBy);let C=Zue(u[":@"],e,A,s,n),E=r+`<${f}${C}`,I;A?I=rhe(u[h],e):I=the(u[h],e,g,s,i,n),e.unpairedTags.indexOf(f)!==-1?e.suppressUnpairedNode?a+=E+">":a+=E+"/>":(!I||I.length===0)&&e.suppressEmptyNode?a+=E+"/>":I&&I.endsWith(">")?a+=E+`>${I}${r}</${f}>`:(a+=E+">",I&&r!==""&&(I.includes("/>")||I.includes("</"))?a+=r+e.indentBy+I+r:a+=I,a+=`</${f}>`),c=!0,s.pop()}return a}o(the,"arrToStr");function s9e(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]=Yh(t[i]),s=!0}return s?r:null}o(s9e,"extractAttributeValues");function rhe(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=wU(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 a=i9e(i[":@"],e),c=rhe(i[n],e);!c||c.length===0?r+=`<${n}${a}/>`:r+=`<${n}${a}>${c}</${n}>`}}}return r}o(rhe,"getRawContent");function i9e(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)}="${Yh(i)}"`}return r}o(i9e,"attr_to_str_raw");function wU(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}}o(wU,"propName");function Zue(t,e,r,s,i){let n="";if(t&&!e.ignoreAttributes)for(let a in t){if(!Object.prototype.hasOwnProperty.call(t,a))continue;let c=a.substr(e.attributeNamePrefix.length),l=r?c:ehe(c,!0,e,s,i),u;r?u=t[a]:(u=e.attributeValueProcessor(a,t[a]),u=IU(u,e)),u===!0&&e.suppressBooleanAttributes?n+=` ${l}`:n+=` ${l}="${Yh(u)}"`}return n}o(Zue,"attr_to_str");function n9e(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}o(n9e,"checkStopNode");function IU(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}o(IU,"replaceEntitiesValue");function BU(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}o(BU,"getIgnoreAttributesFn");var o9e={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:" ",suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:o(function(t,e){return e},"tagValueProcessor"),attributeValueProcessor:o(function(t,e){return e},"attributeValueProcessor"),preserveOrder:!1,commentPropName:!1,unpairedTags:[],entities:[{regex:new RegExp("&","g"),val:"&"},{regex:new RegExp(">","g"),val:">"},{regex:new RegExp("<","g"),val:"<"},{regex:new RegExp("'","g"),val:"'"},{regex:new RegExp('"',"g"),val:"""}],processEntities:!0,stopNodes:[],oneListGroup:!1,maxNestedTags:100,jPath:!0,sanitizeName:!1};function an(t){if(this.options=Object.assign({},o9e,t),this.options.stopNodes&&Array.isArray(this.options.stopNodes)&&(this.options.stopNodes=this.options.stopNodes.map(e=>typeof e=="string"&&e.startsWith("*.")?".."+e.substring(2):e)),this.stopNodeExpressions=[],this.options.stopNodes&&ArraLine truncated
|
||||
`,"utf-8")],n=ITe(s);n&&t.headers.set("Content-Length",n),t.body=await o9(s)}o(BTe,"buildRequestBody");var Gh="multipartPolicy",bTe=70,wTe=new Set("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'()+,-./:=?");function STe(t){if(t.length>bTe)throw new Error(`Multipart boundary "${t}" exceeds maximum length of 70 characters`);if(Array.from(t).some(e=>!wTe.has(e)))throw new Error(`Multipart boundary "${t}" contains invalid characters`)}o(STe,"assertValidBoundary");function QI(){return{name:Gh,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",n=s.match(/^(multipart\/[^ ;]+)(?:; *boundary=(.+))?$/);if(!n)throw new Error(`Got multipart request body, but content-type header was not multipart: ${s}`);let[,i,a]=n;if(a&&r&&a!==r)throw new Error(`Multipart boundary was specified as ${a} in the header, but got ${r} in the request body`);return r??=a,r?STe(r):r=ETe(),t.headers.set("Content-Type",`${i}; boundary=${r}`),await BTe(t,t.multipartBody.parts,r),t.multipartBody=void 0,e(t)}}}o(QI,"multipartPolicy");function RI(){return XC()}o(RI,"createEmptyPipeline");var a9=WC({logLevelEnvVarName:"AZURE_LOG_LEVEL",namespace:"azure"}),Tit=a9.logger;function Hi(t){return a9.createClientLogger(t)}o(Hi,"createClientLogger");var Vi=Hi("core-rest-pipeline");function oP(t={}){return nI({logger:Vi.info,...t})}o(oP,"logPolicy");var aP=iI;function cP(t={}){return oI(t)}o(cP,"redirectPolicy");var TI=w(require("node:os"),1),vI=w(require("node:process"),1);function c9(){return"User-Agent"}o(c9,"getHeaderName");async function l9(t){if(vI.default&&vI.default.versions){let e=`${TI.default.type()} ${TI.default.release()}; ${TI.default.arch()}`,r=vI.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})`)}}o(l9,"setPlatformSpecificData");var PI="1.22.2";function _Te(t){let e=[];for(let[r,s]of t){let n=s?`${r}/${s}`:r;e.push(n)}return e.join(" ")}o(_Te,"getUserAgentString");function u9(){return c9()}o(u9,"getUserAgentHeaderName");async function _I(t){let e=new Map;e.set("core-rest-pipeline",PI),await l9(e);let r=_Te(e);return t?`${t} ${r}`:r}o(_I,"getUserAgentValue");var d9=u9(),A9="userAgentPolicy";function lP(t={}){let e=_I(t.userAgentPrefix);return{name:A9,async sendRequest(r,s){return r.headers.has(d9)||r.headers.set(d9,await e),s(r)}}}o(lP,"userAgentPolicy");var Vs=class extends Error{static{o(this,"AbortError")}constructor(e){super(e),this.name="AbortError"}};function uP(t,e){let{cleanupBeforeAbort:r,abortSignal:s,abortErrorMsg:n}=e??{};return new Promise((i,a)=>{function c(){a(new Vs(n??"The operation was aborted."))}o(c,"rejectOnAbort");function l(){s?.removeEventListener("abort",u)}o(l,"removeListeners");function u(){r?.(),l(),c()}if(o(u,"onAbort"),s?.aborted)return c();try{t(d=>{l(),i(d)},d=>{l(),a(d)})}catch(d){a(d)}s?.addEventListener("abort",u)})}o(uP,"createAbortablePromise");var LTe="The delay was aborted.";function Hh(t,e){let r,{abortSignal:s,abortErrorMsg:n}=e??{};return uP(i=>{r=setTimeout(i,t)},{cleanupBeforeAbort:o(()=>clearTimeout(r),"cleanupBeforeAbort"),abortSignal:s,abortErrorMsg:n??LTe})}o(Hh,"delay");function mc(t){if(Ml(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}`}}o(mc,"getErrorMessage");function p9(t){return Ml(t)}o(p9,"isError");function uA(){return Ol()}o(uA,"randomUUID");var ke=Ul;var f9=Symbol("rawContent");function AP(t){return typeof t[f9]=="function"}o(AP,"hasRawContent");function h9(t){return AP(t)?t[f9]():t}o(h9,"getRawContent");var kI=Gh;function pP(){let t=QI();return{name:kI,sendRequest:o(async(e,r)=>{if(e.multipartBody)for(let s of e.multipartBody.parts)AP(s.body)&&(s.body=h9(s.body));return t.sendRequest(e,r)},"sendRequest")}}o(pP,"multipartPolicy");var fP=aI;function hP(){return cI()}o(hP,"decompressResponsePolicy");function mP(t={}){return dI(t)}o(mP,"defaultRetryPolicy");function gP(){return AI()}o(gP,"formDataPolicy");function gc(t){return tP(t)}o(gc,"getDefaultProxySettings");function EP(t,e){return bI(t,e)}o(EP,"proxyPolicy");var m9="setClientRequestIdPolicy";function yP(t="x-ms-client-request-id"){return{name:m9,async sendRequest(e,r){return e.headers.has(t)||e.headers.set(t,e.requestId),r(e)}}}o(yP,"setClientRequestIdPolicy");function CP(t){return wI(t)}o(CP,"agentPolicy");function IP(t){return SI(t)}o(IP,"tlsPolicy");var dA={span:Symbol.for("@azure/core-tracing span"),namespace:Symbol.for("@azure/core-tracing namespace")};function g9(t={}){let e=new BP(t.parentContext);return t.span&&(e=e.setValue(dA.span,t.span)),t.namespace&&(e=e.setValue(dA.namespace,t.namespace)),e}o(g9,"createTracingContext");var BP=class t{static{o(this,"TracingContextImpl")}_contextMap;constructor(e){this._contextMap=e instanceof t?new Map(e._context
Line truncated
|
||||
`&&t[i]!=="\r";i++)l+=t[i];if(l=l.trim(),l[l.length-1]==="/"&&(l=l.substring(0,l.length-1),i--),!cPe(l)){let A;return l.trim().length===0?A="Invalid space after '<'.":A="Tag '"+l+"' is an invalid name.",Pt("InvalidTag",A,Hr(t,i))}let u=sPe(t,i);if(u===!1)return Pt("InvalidAttr","Attributes for '"+l+"' have open quote.",Hr(t,i));let d=u.value;if(i=u.index,d[d.length-1]==="/"){let A=i-d.length;d=d.substring(0,d.length-1);let p=eK(d,e);if(p===!0)s=!0;else return Pt(p.err.code,p.err.msg,Hr(t,A+p.err.line))}else if(c)if(u.tagClosed){if(d.trim().length>0)return Pt("InvalidTag","Closing tag '"+l+"' can't have attributes or invalid starting.",Hr(t,a));if(r.length===0)return Pt("InvalidTag","Closing tag '"+l+"' has not been opened.",Hr(t,a));{let A=r.pop();if(l!==A.tagName){let p=Hr(t,A.tagStartPos);return Pt("InvalidTag","Expected closing tag '"+A.tagName+"' (opened in line "+p.line+", col "+p.col+") instead of closing tag '"+l+"'.",Hr(t,a))}r.length==0&&(n=!0)}}else return Pt("InvalidTag","Closing tag '"+l+"' doesn't have proper closing.",Hr(t,i));else{let A=eK(d,e);if(A!==!0)return Pt(A.err.code,A.err.msg,Hr(t,i-d.length+A.err.line));if(n===!0)return Pt("InvalidXml","Multiple possible root nodes found.",Hr(t,i));e.unpairedTags.indexOf(l)!==-1||r.push({tagName:l,tagStartPos:a}),s=!0}for(i++;i<t.length;i++)if(t[i]==="<")if(t[i+1]==="!"){i++,i=Z9(t,i);continue}else if(t[i+1]==="?"){if(i=X9(t,++i),i.err)return i}else break;else if(t[i]==="&"){let A=oPe(t,i);if(A==-1)return Pt("InvalidChar","char '&' is not expected.",Hr(t,i));i=A}else if(n===!0&&!K9(t[i]))return Pt("InvalidXml","Extra text at the end",Hr(t,i));t[i]==="<"&&i--}}else{if(K9(t[i]))continue;return Pt("InvalidChar","char '"+t[i]+"' is not expected.",Hr(t,i))}if(s){if(r.length==1)return Pt("InvalidTag","Unclosed tag '"+r[0].tagName+"'.",Hr(t,r[0].tagStartPos));if(r.length>0)return Pt("InvalidXml","Invalid '"+JSON.stringify(r.map(i=>i.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}else return Pt("InvalidXml","Start tag expected.",1);return!0}o(YI,"validate");function K9(t){return t===" "||t===" "||t===`
|
||||
`||t==="\r"}o(K9,"isWhiteSpace");function X9(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 Pt("InvalidXml","XML declaration allowed only at the start of the document.",Hr(t,e));if(t[e]=="?"&&t[e+1]==">"){e++;break}else continue}return e}o(X9,"readPI");function Z9(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}o(Z9,"readCommentAndCDATA");var tPe='"',rPe="'";function sPe(t,e){let r="",s="",n=!1;for(;e<t.length;e++){if(t[e]===tPe||t[e]===rPe)s===""?s=t[e]:s!==t[e]||(s="");else if(t[e]===">"&&s===""){n=!0;break}r+=t[e]}return s!==""?!1:{value:r,index:e,tagClosed:n}}o(sPe,"readAttributeStr");var nPe=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function eK(t,e){let r=zI(t,nPe),s={};for(let n=0;n<r.length;n++){if(r[n][1].length===0)return Pt("InvalidAttr","Attribute '"+r[n][2]+"' has no space in starting.",tm(r[n]));if(r[n][3]!==void 0&&r[n][4]===void 0)return Pt("InvalidAttr","Attribute '"+r[n][2]+"' is without value.",tm(r[n]));if(r[n][3]===void 0&&!e.allowBooleanAttributes)return Pt("InvalidAttr","boolean attribute '"+r[n][2]+"' is not allowed.",tm(r[n]));let i=r[n][2];if(!aPe(i))return Pt("InvalidAttr","Attribute '"+i+"' is an invalid name.",tm(r[n]));if(!Object.prototype.hasOwnProperty.call(s,i))s[i]=1;else return Pt("InvalidAttr","Attribute '"+i+"' is repeated.",tm(r[n]))}return!0}o(eK,"validateAttributeString");function iPe(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}o(iPe,"validateNumberAmpersand");function oPe(t,e){if(e++,t[e]===";")return-1;if(t[e]==="#")return e++,iPe(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}o(oPe,"validateAmpersand");function Pt(t,e,r){return{err:{code:t,msg:e,line:r.line||r,col:r.col}}}o(Pt,"getErrorObject");function aPe(t){return UP(t)}o(aPe,"validateAttrName");function cPe(t){return UP(t)}o(cPe,"validateTagName");function Hr(t,e){let r=t.substring(0,e).split(/\r?\n/);return{line:r.length,col:r[r.length-1].length+1}}o(Hr,"getLineNumberForPosition");function tm(t){return t.startIndex+t[1].length}o(tm,"getPositionFromMatch");var tK={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"},rK={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"},sK={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",HstLine truncated
|
||||
`);let e=new ls("!xml"),r=e,s="";this.matcher.reset(),this.entityDecoder.reset(),this.entityExpansionCount=0,this.currentExpandedLength=0;let n=this.options,i=new nm(n.processEntities),a=t.length;for(let c=0;c<a;c++)if(t[c]==="<"){let u=t.charCodeAt(c+1);if(u===47){let d=mA(t,">",c,"Closing Tag is not closed."),A=t.substring(c+2,d).trim();if(n.removeNSPrefix){let f=A.indexOf(":");f!==-1&&(A=A.substr(f+1))}A=$P(n.transformTagName,A,"",n).tagName,r&&(s=this.saveTextToParentTag(s,r,this.readonlyMatcher));let p=this.matcher.getCurrentTag();if(A&&n.unpairedTagsSet.has(A))throw new Error(`Unpaired tag can not be used as closing tag: </${A}>`);p&&n.unpairedTagsSet.has(p)&&(this.matcher.pop(),this.tagsNodeStack.pop()),this.matcher.pop(),this.isCurrentNodeStopNode=!1,r=this.tagsNodeStack.pop(),s="",c=d}else if(u===63){let d=WP(t,c,!1,"?>");if(!d)throw new Error("Pi Tag is not closed.");s=this.saveTextToParentTag(s,r,this.readonlyMatcher);let A=this.buildAttributesMap(d.tagExp,this.matcher,d.tagName,!0);if(A){let p=A[this.options.attributeNamePrefix+"version"];this.entityDecoder.setXmlVersion(Number(p)||1),i.setXmlVersion(Number(p)||1)}if(!(n.ignoreDeclaration&&d.tagName==="?xml"||n.ignorePiTags)){let p=new ls(d.tagName);p.add(n.textNodeName,""),d.tagName!==d.tagExp&&d.attrExpPresent&&n.ignoreAttributes!==!0&&(p[":@"]=A),this.addChild(r,p,this.readonlyMatcher,c)}c=d.closeIndex+1}else if(u===33&&t.charCodeAt(c+2)===45&&t.charCodeAt(c+3)===45){let d=mA(t,"-->",c+4,"Comment is not closed.");if(n.commentPropName){let A=t.substring(c+4,d-2);s=this.saveTextToParentTag(s,r,this.readonlyMatcher),r.add(n.commentPropName,[{[n.textNodeName]:A}])}c=d}else if(u===33&&t.charCodeAt(c+2)===68){let d=i.readDocType(t,c);this.entityDecoder.addInputEntities(d.entities),c=d.i}else if(u===33&&t.charCodeAt(c+2)===91){let d=mA(t,"]]>",c,"CDATA is not closed.")-2,A=t.substring(c+9,d);s=this.saveTextToParentTag(s,r,this.readonlyMatcher);let p=this.parseTextData(A,r.tagname,this.readonlyMatcher,!0,!1,!0,!0);p==null&&(p=""),n.cdataPropName?r.add(n.cdataPropName,[{[n.textNodeName]:A}]):r.add(n.textNodeName,p),c=d+2}else{let d=WP(t,c,n.removeNSPrefix);if(!d){let Q=t.substring(Math.max(0,c-50),Math.min(a,c+50));throw new Error(`readTagExp returned undefined at position ${c}. Context: "${Q}"`)}let A=d.tagName,p=d.rawTagName,f=d.tagExp,m=d.attrExpPresent,g=d.closeIndex;if({tagName:A,tagExp:f}=$P(n.transformTagName,A,f,n),n.strictReservedNames&&(A===n.commentPropName||A===n.cdataPropName||A===n.textNodeName||A===n.attributesGroupName))throw new Error(`Invalid tag name: ${A}`);r&&s&&r.tagname!=="!xml"&&(s=this.saveTextToParentTag(s,r,this.readonlyMatcher,!1));let y=r;y&&n.unpairedTagsSet.has(y.tagname)&&(r=this.tagsNodeStack.pop(),this.matcher.pop());let E=!1;f.length>0&&f.lastIndexOf("/")===f.length-1&&(E=!0,A[A.length-1]==="/"?(A=A.substr(0,A.length-1),f=A):f=f.substr(0,f.length-1),m=A!==f);let C=null,I={},B;B=vPe(p),A!==e.tagname&&this.matcher.push(A,{},B),A!==f&&m&&(C=this.buildAttributesMap(f,this.matcher,A),C&&(I=TPe(C,n))),A!==e.tagname&&(this.isCurrentNodeStopNode=this.isItStopNode());let N=c;if(this.isCurrentNodeStopNode){let Q="";if(E)c=d.closeIndex;else if(n.unpairedTagsSet.has(A))c=d.closeIndex;else{let le=this.readStopNodeData(t,p,g+1);if(!le)throw new Error(`Unexpected end of ${p}`);c=le.i,Q=le.tagContent}let D=new ls(A);C&&(D[":@"]=C),D.add(n.textNodeName,Q),this.matcher.pop(),this.isCurrentNodeStopNode=!1,this.addChild(r,D,this.readonlyMatcher,N)}else{if(E){({tagName:A,tagExp:f}=$P(n.transformTagName,A,f,n));let Q=new ls(A);C&&(Q[":@"]=C),this.addChild(r,Q,this.readonlyMatcher,N),this.matcher.pop(),this.isCurrentNodeStopNode=!1}else if(n.unpairedTagsSet.has(A)){let Q=new ls(A);C&&(Q[":@"]=C),this.addChild(r,Q,this.readonlyMatcher,N),this.matcher.pop(),this.isCurrentNodeStopNode=!1,c=d.closeIndex;continue}else{let Q=new ls(A);if(this.tagsNodeStack.length>n.maxNestedTags)throw new Error("Maximum nested tags exceeded");this.tagsNodeStack.push(r),C&&(Q[":@"]=C),this.addChild(r,Q,this.readonlyMatcher,N),r=Q}s="",c=g}}}else s+=t[c];return e.child},"parseXml");function MPe(t,e,r,s){this.options.captureMetaData||(s=void 0);let n=this.options.jPath?r.toString():r,i=this.options.updateTag(e.tagname,n,e[":@"]);i===!1||(typeof i=="string"&&(e.tagname=i),t.addChild(e,s))}o(MPe,"addChild");function LPe(t,e,r){let s=this.options.processEntities;if(!s||!s.enabled)return t;if(s.allowedTags){let n=this.options.jPath?r.toString():r;if(!(Array.isArray(s.allowedTags)?s.allowedTags.includes(e):s.allowedTags(e,n)))return t}if(s.tagFilter){let n=this.options.jPath?r.toString():r;if(!s.tagFilter(e,n))return t}return this.entityDecoder.decode(t)}o(LPe,"replaceEntitiesValue");function FPe(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}o(FPe,"saveTextToParentTag");function UPe(){return this.stopNodeExpressionsLine truncated
|
||||
`;function WPe(t,e){if(!Array.isArray(t)||t.length===0)return"1.0";let r=t[0];if(t_(r)==="?xml"){let n=r[":@"];if(n){let i=e.attributeNamePrefix+"version";if(n[i])return n[i]}}return"1.0"}o(WPe,"detectXmlVersionFromArray");function bK(t,e,r,s,n){return!r.sanitizeName||zl(t,{xmlVersion:n})?t:r.sanitizeName(t,{isAttribute:e,matcher:s.readOnly()})}o(bK,"resolveTagName");function e_(t,e){let r="";e.format&&(r=$Pe);let s=[];if(e.stopNodes&&Array.isArray(e.stopNodes))for(let a=0;a<e.stopNodes.length;a++){let c=e.stopNodes[a];typeof c=="string"?s.push(new Ys(c)):c instanceof Ys&&s.push(c)}let n=WPe(t,e),i=new Yi;return wK(t,e,r,i,s,n)}o(e_,"toXml");function wK(t,e,r,s,n,i){let a="",c=!1;if(e.maxNestedTags&&s.getDepth()>e.maxNestedTags)throw new Error("Maximum nested tags exceeded");if(!Array.isArray(t)){if(t!=null){let l=t.toString();return l=ZP(l,e),l}return""}for(let l=0;l<t.length;l++){let u=t[l],d=t_(u);if(d===void 0)continue;let p=d===e.textNodeName||d===e.cdataPropName||d===e.commentPropName||d[0]==="?"?d:bK(d,!1,e,s,i),f=jPe(u[":@"],e);s.push(p,f);let m=XPe(s,n);if(p===e.textNodeName){let I=u[d];m||(I=e.tagValueProcessor(p,I),I=ZP(I,e)),c&&(a+=r),a+=I,c=!1,s.pop();continue}else if(p===e.cdataPropName){c&&(a+=r);let I=u[d][0][e.textNodeName],B=XI(I);a+=`<![CDATA[${B}]]>`,c=!1,s.pop();continue}else if(p===e.commentPropName){let I=u[d][0][e.textNodeName],B=KI(I);a+=r+`<!--${B}-->`,c=!0,s.pop();continue}else if(p[0]==="?"){let I=BK(u[":@"],e,m,s,i);a+=(p==="?xml"?"":r)+`<${p}${I}?>`,c=!0,s.pop();continue}let g=r;g!==""&&(g+=e.indentBy);let y=BK(u[":@"],e,m,s,i),E=r+`<${p}${y}`,C;m?C=SK(u[d],e):C=wK(u[d],e,g,s,n,i),e.unpairedTags.indexOf(p)!==-1?e.suppressUnpairedNode?a+=E+">":a+=E+"/>":(!C||C.length===0)&&e.suppressEmptyNode?a+=E+"/>":C&&C.endsWith(">")?a+=E+`>${C}${r}</${p}>`:(a+=E+">",C&&r!==""&&(C.includes("/>")||C.includes("</"))?a+=r+e.indentBy+C+r:a+=C,a+=`</${p}>`),c=!0,s.pop()}return a}o(wK,"arrToStr");function jPe(t,e){if(!t||e.ignoreAttributes)return null;let r={},s=!1;for(let n in t){if(!Object.prototype.hasOwnProperty.call(t,n))continue;let i=n.startsWith(e.attributeNamePrefix)?n.substr(e.attributeNamePrefix.length):n;r[i]=Cc(t[n]),s=!0}return s?r:null}o(jPe,"extractAttributeValues");function SK(t,e){if(!Array.isArray(t))return t!=null?t.toString():"";let r="";for(let s=0;s<t.length;s++){let n=t[s],i=t_(n);if(i===e.textNodeName)r+=n[i];else if(i===e.cdataPropName)r+=n[i][0][e.textNodeName];else if(i===e.commentPropName)r+=n[i][0][e.textNodeName];else{if(i&&i[0]==="?")continue;if(i){let a=KPe(n[":@"],e),c=SK(n[i],e);!c||c.length===0?r+=`<${i}${a}/>`:r+=`<${i}${a}>${c}</${i}>`}}}return r}o(SK,"getRawContent");function KPe(t,e){let r="";if(t&&!e.ignoreAttributes)for(let s in t){if(!Object.prototype.hasOwnProperty.call(t,s))continue;let n=t[s];n===!0&&e.suppressBooleanAttributes?r+=` ${s.substr(e.attributeNamePrefix.length)}`:r+=` ${s.substr(e.attributeNamePrefix.length)}="${Cc(n)}"`}return r}o(KPe,"attr_to_str_raw");function t_(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}}o(t_,"propName");function BK(t,e,r,s,n){let i="";if(t&&!e.ignoreAttributes)for(let a in t){if(!Object.prototype.hasOwnProperty.call(t,a))continue;let c=a.substr(e.attributeNamePrefix.length),l=r?c:bK(c,!0,e,s,n),u;r?u=t[a]:(u=e.attributeValueProcessor(a,t[a]),u=ZP(u,e)),u===!0&&e.suppressBooleanAttributes?i+=` ${l}`:i+=` ${l}="${Cc(u)}"`}return i}o(BK,"attr_to_str");function XPe(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}o(XPe,"checkStopNode");function ZP(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}o(ZP,"replaceEntitiesValue");function r_(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}o(r_,"getIgnoreAttributesFn");var ZPe={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:" ",suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:o(function(t,e){return e},"tagValueProcessor"),attributeValueProcessor:o(function(t,e){return e},"attributeValueProcessor"),preserveOrder:!1,commentPropName:!1,unpairedTags:[],entities:[{regex:new RegExp("&","g"),val:"&"},{regex:new RegExp(">","g"),val:">"},{regex:new RegExp("<","g"),val:"<"},{regex:new RegExp("'","g"),val:"'"},{regex:new RegExp('"',"g"),val:"""}],processEntities:!0,stopNodes:[],oneListGroup:!1,maxNestedTags:100,jPath:!0,sanitizeName:!1};function ds(t){if(this.options=Object.assign({},ZPe,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.oLine truncated
|
||||
`,this.newLine=`
|
||||
`):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}o(an,"Builder");function a9e(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"}o(a9e,"detectXmlVersionFromObj");function SU(t,e,r,s,i){return!r.sanitizeName||Uf(t,{xmlVersion:i})?t:r.sanitizeName(t,{isAttribute:e,matcher:s.readOnly()})}o(SU,"resolveTagName");an.prototype.build=function(t){if(this.options.preserveOrder)return bU(t,this.options);{Array.isArray(t)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(t={[this.options.arrayNodeName]:t});let e=new Sc,r=a9e(t,this.options);return this.j2x(t,0,e,r).val}};an.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 a=this.options.jPath?r.toString():r,c=this.checkStopNode(r);for(let l in t){if(!Object.prototype.hasOwnProperty.call(t,l))continue;let h=l===this.options.textNodeName||l===this.options.cdataPropName||l===this.options.commentPropName||this.options.attributesGroupName&&l===this.options.attributesGroupName||this.isAttribute(l)||l[0]==="?"?l:SU(l,!1,this.options,r,s);if(typeof t[l]>"u")this.isAttribute(l)&&(n+="");else if(t[l]===null)this.isAttribute(l)||h===this.options.cdataPropName||h===this.options.commentPropName?n+="":h[0]==="?"?n+=this.indentate(e)+"<"+h+"?"+this.tagEndChar:n+=this.indentate(e)+"<"+h+"/"+this.tagEndChar;else if(t[l]instanceof Date)n+=this.buildTextValNode(t[l],h,"",e,r);else if(typeof t[l]!="object"){let d=this.isAttribute(l);if(d&&!this.ignoreAttributesFn(d,a)){let f=SU(d,!0,this.options,r,s);i+=this.buildAttrPairStr(f,""+t[l],c)}else if(!d)if(l===this.options.textNodeName){let f=this.options.tagValueProcessor(l,""+t[l]);n+=this.replaceEntitiesValue(f)}else{r.push(h);let f=this.checkStopNode(r);if(r.pop(),f){let p=""+t[l];p===""?n+=this.indentate(e)+"<"+h+this.closeTag(h)+this.tagEndChar:n+=this.indentate(e)+"<"+h+">"+p+"</"+h+this.tagEndChar}else n+=this.buildTextValNode(t[l],h,"",e,r)}}else if(Array.isArray(t[l])){let d=t[l].length,f="",p="";for(let A=0;A<d;A++){let g=t[l][A];if(!(typeof g>"u"))if(g===null)h[0]==="?"?n+=this.indentate(e)+"<"+h+"?"+this.tagEndChar:n+=this.indentate(e)+"<"+h+"/"+this.tagEndChar;else if(typeof g=="object")if(this.options.oneListGroup){r.push(h);let C=this.j2x(g,e+1,r,s);r.pop(),f+=C.val,this.options.attributesGroupName&&g.hasOwnProperty(this.options.attributesGroupName)&&(p+=C.attrStr)}else f+=this.processTextOrObjNode(g,h,e,r,s);else if(this.options.oneListGroup){let C=this.options.tagValueProcessor(h,g);C=this.replaceEntitiesValue(C),f+=C}else{r.push(h);let C=this.checkStopNode(r);if(r.pop(),C){let E=""+g;E===""?f+=this.indentate(e)+"<"+h+this.closeTag(h)+this.tagEndChar:f+=this.indentate(e)+"<"+h+">"+E+"</"+h+this.tagEndChar}else f+=this.buildTextValNode(g,h,"",e,r)}}this.options.oneListGroup&&(f=this.buildObjectNode(f,h,p,e)),n+=f}else if(this.options.attributesGroupName&&l===this.options.attributesGroupName){let d=Object.keys(t[l]),f=d.length;for(let p=0;p<f;p++){let A=SU(d[p],!0,this.options,r,s);i+=this.buildAttrPairStr(A,""+t[l][d[p]],c)}}else n+=this.processTextOrObjNode(t[l],h,e,r,s)}return{attrStr:i,val:n}};an.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+'="'+Yh(e)+'"'};function c9e(t,e,r,s,i){let n=this.extractAttributes(t);if(s.push(e,n),this.checkStopNode(s)){let l=this.buildRawContent(t),u=this.buildAttributesForStopNode(t);return s.pop(),this.buildObjectNode(l,e,u,r)}let c=this.j2x(t,r+1,s,i);return s.pop(),e[0]==="?"?this.buildTextValNode("",e,c.attrStr,r,s):t[this.options.textNodeName]!==void 0&&Object.keys(t).length===1?this.buildTextValNode(t[this.options.textNodeName],e,c.attrStr,r,s):this.buildObjectNode(c.val,e,c.attrStr,r)}o(c9e,"processTextOrObjNode");an.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]=Yh(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]=Yh(t[s]),r=!0)}return r?e:null};an.prototype.buildRawContent=function(t){if(typeof t=="string")return t;if(typeof t!="object"||t===null)return String(t);if(t[this.options.textNodeName]!==void 0)return t[this.options.textNodeName];let e="";for(let r in t){if(!Object.prototype.hasOwnProperty.call(t,r)||this.isAttribute(r)||this.options.attributesGroupName&&r===this.o
Line truncated
|
||||
`):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}o(ds,"Builder");function e_e(t,e){let r=t["?xml"];if(r&&typeof r=="object"){if(e.attributesGroupName&&r[e.attributesGroupName]){let n=r[e.attributesGroupName][e.attributeNamePrefix+"version"];if(n)return n}let s=r[e.attributeNamePrefix+"version"];if(s)return s}return"1.0"}o(e_e,"detectXmlVersionFromObj");function s_(t,e,r,s,n){return!r.sanitizeName||zl(t,{xmlVersion:n})?t:r.sanitizeName(t,{isAttribute:e,matcher:s.readOnly()})}o(s_,"resolveTagName");ds.prototype.build=function(t){if(this.options.preserveOrder)return e_(t,this.options);{Array.isArray(t)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(t={[this.options.arrayNodeName]:t});let e=new Yi,r=e_e(t,this.options);return this.j2x(t,0,e,r).val}};ds.prototype.j2x=function(t,e,r,s){let n="",i="";if(this.options.maxNestedTags&&r.getDepth()>=this.options.maxNestedTags)throw new Error("Maximum nested tags exceeded");let a=this.options.jPath?r.toString():r,c=this.checkStopNode(r);for(let l in t){if(!Object.prototype.hasOwnProperty.call(t,l))continue;let d=l===this.options.textNodeName||l===this.options.cdataPropName||l===this.options.commentPropName||this.options.attributesGroupName&&l===this.options.attributesGroupName||this.isAttribute(l)||l[0]==="?"?l:s_(l,!1,this.options,r,s);if(typeof t[l]>"u")this.isAttribute(l)&&(i+="");else if(t[l]===null)this.isAttribute(l)||d===this.options.cdataPropName||d===this.options.commentPropName?i+="":d[0]==="?"?i+=this.indentate(e)+"<"+d+"?"+this.tagEndChar:i+=this.indentate(e)+"<"+d+"/"+this.tagEndChar;else if(t[l]instanceof Date)i+=this.buildTextValNode(t[l],d,"",e,r);else if(typeof t[l]!="object"){let A=this.isAttribute(l);if(A&&!this.ignoreAttributesFn(A,a)){let p=s_(A,!0,this.options,r,s);n+=this.buildAttrPairStr(p,""+t[l],c)}else if(!A)if(l===this.options.textNodeName){let p=this.options.tagValueProcessor(l,""+t[l]);i+=this.replaceEntitiesValue(p)}else{r.push(d);let p=this.checkStopNode(r);if(r.pop(),p){let f=""+t[l];f===""?i+=this.indentate(e)+"<"+d+this.closeTag(d)+this.tagEndChar:i+=this.indentate(e)+"<"+d+">"+f+"</"+d+this.tagEndChar}else i+=this.buildTextValNode(t[l],d,"",e,r)}}else if(Array.isArray(t[l])){let A=t[l].length,p="",f="";for(let m=0;m<A;m++){let g=t[l][m];if(!(typeof g>"u"))if(g===null)d[0]==="?"?i+=this.indentate(e)+"<"+d+"?"+this.tagEndChar:i+=this.indentate(e)+"<"+d+"/"+this.tagEndChar;else if(typeof g=="object")if(this.options.oneListGroup){r.push(d);let y=this.j2x(g,e+1,r,s);r.pop(),p+=y.val,this.options.attributesGroupName&&g.hasOwnProperty(this.options.attributesGroupName)&&(f+=y.attrStr)}else p+=this.processTextOrObjNode(g,d,e,r,s);else if(this.options.oneListGroup){let y=this.options.tagValueProcessor(d,g);y=this.replaceEntitiesValue(y),p+=y}else{r.push(d);let y=this.checkStopNode(r);if(r.pop(),y){let E=""+g;E===""?p+=this.indentate(e)+"<"+d+this.closeTag(d)+this.tagEndChar:p+=this.indentate(e)+"<"+d+">"+E+"</"+d+this.tagEndChar}else p+=this.buildTextValNode(g,d,"",e,r)}}this.options.oneListGroup&&(p=this.buildObjectNode(p,d,f,e)),i+=p}else if(this.options.attributesGroupName&&l===this.options.attributesGroupName){let A=Object.keys(t[l]),p=A.length;for(let f=0;f<p;f++){let m=s_(A[f],!0,this.options,r,s);n+=this.buildAttrPairStr(m,""+t[l][A[f]],c)}}else i+=this.processTextOrObjNode(t[l],d,e,r,s)}return{attrStr:n,val:i}};ds.prototype.buildAttrPairStr=function(t,e,r){return r||(e=this.options.attributeValueProcessor(t,""+e),e=this.replaceEntitiesValue(e)),this.options.suppressBooleanAttributes&&e==="true"?" "+t:" "+t+'="'+Cc(e)+'"'};function t_e(t,e,r,s,n){let i=this.extractAttributes(t);if(s.push(e,i),this.checkStopNode(s)){let l=this.buildRawContent(t),u=this.buildAttributesForStopNode(t);return s.pop(),this.buildObjectNode(l,e,u,r)}let c=this.j2x(t,r+1,s,n);return s.pop(),e[0]==="?"?this.buildTextValNode("",e,c.attrStr,r,s):t[this.options.textNodeName]!==void 0&&Object.keys(t).length===1?this.buildTextValNode(t[this.options.textNodeName],e,c.attrStr,r,s):this.buildObjectNode(c.val,e,c.attrStr,r)}o(t_e,"processTextOrObjNode");ds.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 n in s){if(!Object.prototype.hasOwnProperty.call(s,n))continue;let i=n.startsWith(this.options.attributeNamePrefix)?n.substring(this.options.attributeNamePrefix.length):n;e[i]=Cc(s[n]),r=!0}}else for(let s in t){if(!Object.prototype.hasOwnProperty.call(t,s))continue;let n=this.isAttribute(s);n&&(e[n]=Cc(t[s]),r=!0)}return r?e:null};ds.prototype.buildRawContent=function(t){if(typeof t=="string")return t;if(typeof t!="object"||t===null)return String(t);if(t[this.options.textNodeName]!==void 0)return t[this.options.textNodeName];let e="";for(let r in t){if(!Object.prototype.hasOwnProperty.call(t,r)||this.isAttribute(r)||this.options.attributesGroupName&&r===this.o
Line truncated
|
||||
`)+`
|
||||
`+this.getCanonicalizedHeadersString(e)+this.getCanonicalizedResourceString(e),s=this.factory.computeHMACSHA256(r);return e.headers.set(qe.AUTHORIZATION,`SharedKey ${this.factory.accountName}:${s}`),e}getHeaderValueToSign(e,r){let s=e.headers.get(r);return!s||r===qe.CONTENT_LENGTH&&s==="0"?"":s}getCanonicalizedHeadersString(e){let r=e.headers.headersArray().filter(i=>i.name.toLowerCase().startsWith(qe.PREFIX_FOR_STORAGE));r.sort((i,n)=>WN(i.name.toLowerCase(),n.name.toLowerCase())),r=r.filter((i,n,a)=>!(n>0&&i.name.toLowerCase()===a[n-1].name.toLowerCase()));let s="";return r.forEach(i=>{s+=`${i.name.toLowerCase().trimRight()}:${i.value.trimLeft()}
|
||||
`}),s}getCanonicalizedResourceString(e){let r=jN(e.url)||"/",s="";s+=`/${this.factory.accountName}${r}`;let i=JN(e.url),n={};if(i){let a=[];for(let c in i)if(Object.prototype.hasOwnProperty.call(i,c)){let l=c.toLowerCase();n[l]=i[c],a.push(l)}a.sort();for(let c of a)s+=`
|
||||
${c}:${decodeURIComponent(n[c])}`}return s}};var gr=class extends Hf{static{o(this,"StorageSharedKeyCredential")}accountName;accountKey;constructor(e,r){super(),this.accountName=e,this.accountKey=Buffer.from(r,"base64")}create(e,r){return new QI(e,r,this)}computeHMACSHA256(e){return(0,uhe.createHmac)("sha256",this.accountKey).update(e,"utf8").digest("base64")}};var rs=Ic("storage-common");var Lo;(function(t){t[t.EXPONENTIAL=0]="EXPONENTIAL",t[t.FIXED=1]="FIXED"})(Lo||(Lo={}));var Kh={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:Lo.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},g9e=new jn("The operation was aborted."),PI=class extends xc{static{o(this,"StorageRetryPolicy")}retryOptions;constructor(e,r,s=Kh){super(e,r),this.retryOptions={retryPolicyType:s.retryPolicyType?s.retryPolicyType:Kh.retryPolicyType,maxTries:s.maxTries&&s.maxTries>=1?Math.floor(s.maxTries):Kh.maxTries,tryTimeoutInMs:s.tryTimeoutInMs&&s.tryTimeoutInMs>=0?s.tryTimeoutInMs:Kh.tryTimeoutInMs,retryDelayInMs:s.retryDelayInMs&&s.retryDelayInMs>=0?Math.min(s.retryDelayInMs,s.maxRetryDelayInMs?s.maxRetryDelayInMs:Kh.maxRetryDelayInMs):Kh.retryDelayInMs,maxRetryDelayInMs:s.maxRetryDelayInMs&&s.maxRetryDelayInMs>=0?s.maxRetryDelayInMs:Kh.maxRetryDelayInMs,secondaryHost:s.secondaryHost?s.secondaryHost:Kh.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=$N(i.url,this.retryOptions.secondaryHost)),this.retryOptions.tryTimeoutInMs&&(i.url=Wh(i.url,ou.Parameters.TIMEOUT,Math.floor(this.retryOptions.tryTimeoutInMs/1e3).toString()));let a;try{if(rs.info(`RetryPolicy: =====> Try=${s} ${n?"Primary":"Secondary"}`),a=await this._nextPolicy.sendRequest(i),!this.shouldRetry(n,s,a))return a;r=r||!n&&a.status===404}catch(c){if(rs.error(`RetryPolicy: Caught error, message: ${c.message}, code: ${c.code}`),!this.shouldRetry(n,s,a,c))throw c}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 a of n)if(i.name.toUpperCase().includes(a)||i.message.toUpperCase().includes(a)||i.code&&i.code.toString().toUpperCase()===a)return rs.info(`RetryPolicy: Network error ${a} found, will retry.`),!0}if(s||i){let a=s?s.status:i?i.statusCode:0;if(!e&&a===404)return rs.info("RetryPolicy: Secondary access with 404, will retry."),!0;if(a===503||a===500)return rs.info(`RetryPolicy: Will retry for status code ${a}.`),!0}if(s&&s?.status>=400){let a=s.headers.get(qe.X_MS_CopySourceErrorCode);if(a!==void 0)switch(a){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 Lo.EXPONENTIAL:i=Math.min((Math.pow(2,r-1)-1)*this.retryOptions.retryDelayInMs,this.retryOptions.maxRetryDelayInMs);break;case Lo.FIXED:i=this.retryOptions.retryDelayInMs;break}else i=Math.random()*1e3;return rs.info(`RetryPolicy: Delay for ${i}ms`),YN(i,s,g9e)}};var OI=class{static{o(this,"StorageRetryPolicyFactory")}retryOptions;constructor(e){this.retryOptions=e}create(e,r){return new PI(e,r,this.retryOptions)}};var y9e="storageBrowserPolicy";function hhe(){return{name:y9e,async sendRequest(t,e){return wt||((t.method==="GET"||t.method==="HEAD")&&(t.url=Wh(t.url,ou.Parameters.FORCE_BROWSER_NO_CACHE,new Date().getTime().toString())),t.headers.delete(qe.COOKIE),t.headers.delete(qe.CONTENT_LENGTH)),e(t)}}}o(hhe,"storageBrowserPolicy");var E9e="StorageCorrectContentLengthPolicy";function dhe(){function t(e){e.body&&(typeof e.body=="string"||Buffer.isBuffer(e.body))&&e.body.length>0&&e.headers.set(qe.CONTENT_LENGTH,Buffer.byteLength(e.body))}return o(t,"correctContentLength"),{name:E9e,async sendRequest(e,r){return t(e),r(e)}}}o(dhe,"storageCorrectContentLengthPolicy");var C9e="storageRetryPolicy",Vm={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:Lo.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},I9e=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"],b9e=new jn("The operation was aborted.");function fhe(t={}){let e=t.retryPolicyType??Vm.retryPolicyType,r=t.maxTries??Vm.maxTries,s=t.retryDelayInMs??Vm.retryDelayInMs,i=t.maxRetryDelayInMs??Vm.maxRetryDelayInMs,n=t.secondaryHost??Vm.secondaryHost,a=t.tryTimeoutInMs??Vm.tryTimeoutInMs;function c({isPrimaryRetry:u,attempt:h,response:d,error:f}){if(h>=r)return
Line truncated
|
||||
`+this.getCanonicalizedHeadersString(e)+this.getCanonicalizedResourceString(e),s=this.factory.computeHMACSHA256(r);return e.headers.set(oe.AUTHORIZATION,`SharedKey ${this.factory.accountName}:${s}`),e}getHeaderValueToSign(e,r){let s=e.headers.get(r);return!s||r===oe.CONTENT_LENGTH&&s==="0"?"":s}getCanonicalizedHeadersString(e){let r=e.headers.headersArray().filter(n=>n.name.toLowerCase().startsWith(oe.PREFIX_FOR_STORAGE));r.sort((n,i)=>lB(n.name.toLowerCase(),i.name.toLowerCase())),r=r.filter((n,i,a)=>!(i>0&&n.name.toLowerCase()===a[i-1].name.toLowerCase()));let s="";return r.forEach(n=>{s+=`${n.name.toLowerCase().trimRight()}:${n.value.trimLeft()}
|
||||
`}),s}getCanonicalizedResourceString(e){let r=oB(e.url)||"/",s="";s+=`/${this.factory.accountName}${r}`;let n=aB(e.url),i={};if(n){let a=[];for(let c in n)if(Object.prototype.hasOwnProperty.call(n,c)){let l=c.toLowerCase();i[l]=n[c],a.push(l)}a.sort();for(let c of a)s+=`
|
||||
${c}:${decodeURIComponent(i[c])}`}return s}};var Ct=class extends $l{static{o(this,"StorageSharedKeyCredential")}accountName;accountKey;constructor(e,r){super(),this.accountName=e,this.accountKey=Buffer.from(r,"base64")}create(e,r){return new lm(e,r,this)}computeHMACSHA256(e){return(0,_K.createHmac)("sha256",this.accountKey).update(e,"utf8").digest("base64")}};var Wt=Hi("storage-common");var Bn;(function(t){t[t.EXPONENTIAL=0]="EXPONENTIAL",t[t.FIXED=1]="FIXED"})(Bn||(Bn={}));var Bc={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:Bn.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},u_e=new Vs("The operation was aborted."),um=class extends $i{static{o(this,"StorageRetryPolicy")}retryOptions;constructor(e,r,s=Bc){super(e,r),this.retryOptions={retryPolicyType:s.retryPolicyType?s.retryPolicyType:Bc.retryPolicyType,maxTries:s.maxTries&&s.maxTries>=1?Math.floor(s.maxTries):Bc.maxTries,tryTimeoutInMs:s.tryTimeoutInMs&&s.tryTimeoutInMs>=0?s.tryTimeoutInMs:Bc.tryTimeoutInMs,retryDelayInMs:s.retryDelayInMs&&s.retryDelayInMs>=0?Math.min(s.retryDelayInMs,s.maxRetryDelayInMs?s.maxRetryDelayInMs:Bc.maxRetryDelayInMs):Bc.retryDelayInMs,maxRetryDelayInMs:s.maxRetryDelayInMs&&s.maxRetryDelayInMs>=0?s.maxRetryDelayInMs:Bc.maxRetryDelayInMs,secondaryHost:s.secondaryHost?s.secondaryHost:Bc.secondaryHost}}async sendRequest(e){return this.attemptSendRequest(e,!1,1)}async attemptSendRequest(e,r,s){let n=e.clone(),i=r||!this.retryOptions.secondaryHost||!(e.method==="GET"||e.method==="HEAD"||e.method==="OPTIONS")||s%2===1;i||(n.url=iB(n.url,this.retryOptions.secondaryHost)),this.retryOptions.tryTimeoutInMs&&(n.url=Ic(n.url,da.Parameters.TIMEOUT,Math.floor(this.retryOptions.tryTimeoutInMs/1e3).toString()));let a;try{if(Wt.info(`RetryPolicy: =====> Try=${s} ${i?"Primary":"Secondary"}`),a=await this._nextPolicy.sendRequest(n),!this.shouldRetry(i,s,a))return a;r=r||!i&&a.status===404}catch(c){if(Wt.error(`RetryPolicy: Caught error, message: ${c.message}, code: ${c.code}`),!this.shouldRetry(i,s,a,c))throw c}return await this.delay(i,s,e.abortSignal),this.attemptSendRequest(e,r,++s)}shouldRetry(e,r,s,n){if(r>=this.retryOptions.maxTries)return Wt.info(`RetryPolicy: Attempt(s) ${r} >= maxTries ${this.retryOptions.maxTries}, no further try.`),!1;let i=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"];if(n){for(let a of i)if(n.name.toUpperCase().includes(a)||n.message.toUpperCase().includes(a)||n.code&&n.code.toString().toUpperCase()===a)return Wt.info(`RetryPolicy: Network error ${a} found, will retry.`),!0}if(s||n){let a=s?s.status:n?n.statusCode:0;if(!e&&a===404)return Wt.info("RetryPolicy: Secondary access with 404, will retry."),!0;if(a===503||a===500)return Wt.info(`RetryPolicy: Will retry for status code ${a}.`),!0}if(s&&s?.status>=400){let a=s.headers.get(oe.X_MS_CopySourceErrorCode);if(a!==void 0)switch(a){case"InternalError":case"OperationTimedOut":case"ServerBusy":return!0}}return n?.code==="PARSE_ERROR"&&n?.message.startsWith('Error "Error: Unclosed root tag')?(Wt.info("RetryPolicy: Incomplete XML response likely due to service timeout, will retry."),!0):!1}async delay(e,r,s){let n=0;if(e)switch(this.retryOptions.retryPolicyType){case Bn.EXPONENTIAL:n=Math.min((Math.pow(2,r-1)-1)*this.retryOptions.retryDelayInMs,this.retryOptions.maxRetryDelayInMs);break;case Bn.FIXED:n=this.retryOptions.retryDelayInMs;break}else n=Math.random()*1e3;return Wt.info(`RetryPolicy: Delay for ${n}ms`),cB(n,s,u_e)}};var dm=class{static{o(this,"StorageRetryPolicyFactory")}retryOptions;constructor(e){this.retryOptions=e}create(e,r){return new um(e,r,this.retryOptions)}};var d_e="storageBrowserPolicy";function kK(){return{name:d_e,async sendRequest(t,e){return ke||((t.method==="GET"||t.method==="HEAD")&&(t.url=Ic(t.url,da.Parameters.FORCE_BROWSER_NO_CACHE,new Date().getTime().toString())),t.headers.delete(oe.COOKIE),t.headers.delete(oe.CONTENT_LENGTH)),e(t)}}}o(kK,"storageBrowserPolicy");var A_e="StorageCorrectContentLengthPolicy";function DK(){function t(e){e.body&&(typeof e.body=="string"||Buffer.isBuffer(e.body))&&e.body.length>0&&e.headers.set(oe.CONTENT_LENGTH,Buffer.byteLength(e.body))}return o(t,"correctContentLength"),{name:A_e,async sendRequest(e,r){return t(e),r(e)}}}o(DK,"storageCorrectContentLengthPolicy");var p_e="storageRetryPolicy",EA={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:Bn.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},f_e=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"],h_e=new Vs("The operation was aborted.");function OK(t={}){let e=t.retryPolicyType??EA.retryPolicyType,r=t.maxTries??EA.maxTries,s=t.retryDelayInMs??EA.retryDelayInMs,n=t.maxRetryDelayInMs??EA.maxRetryDelayInMs,i=t.secondaryHost??EA.secondaryHost,a=t.tryTimeoutInMs??EA.tryTimeoutInMs;function c({isPrimaryRetry:u,attempt:d,response:A,error:p}){if(d>=r)return Wt.inf
Line truncated
|
||||
`)+`
|
||||
`+s(n)+i(n),c=(0,phe.createHmac)("sha256",t.accountKey).update(a,"utf8").digest("base64");n.headers.set(qe.AUTHORIZATION,`SharedKey ${t.accountName}:${c}`)}o(e,"signRequest");function r(n,a){let c=n.headers.get(a);return!c||a===qe.CONTENT_LENGTH&&c==="0"?"":c}o(r,"getHeaderValueToSign");function s(n){let a=[];for(let[l,u]of n.headers)l.toLowerCase().startsWith(qe.PREFIX_FOR_STORAGE)&&a.push({name:l,value:u});a.sort((l,u)=>WN(l.name.toLowerCase(),u.name.toLowerCase())),a=a.filter((l,u,h)=>!(u>0&&l.name.toLowerCase()===h[u-1].name.toLowerCase()));let c="";return a.forEach(l=>{c+=`${l.name.toLowerCase().trimRight()}:${l.value.trimLeft()}
|
||||
`}),c}o(s,"getCanonicalizedHeadersString");function i(n){let a=jN(n.url)||"/",c="";c+=`/${t.accountName}${a}`;let l=JN(n.url),u={};if(l){let h=[];for(let d in l)if(Object.prototype.hasOwnProperty.call(l,d)){let f=d.toLowerCase();u[f]=l[d],h.push(f)}h.sort();for(let d of h)c+=`
|
||||
${d}:${decodeURIComponent(u[d])}`}return c}return o(i,"getCanonicalizedResourceString"),{name:w9e,async sendRequest(n,a){return e(n),a(n)}}}o(TU,"storageSharedKeyCredentialPolicy");var B9e="storageRequestFailureDetailsParserPolicy";function Ahe(){return{name:B9e,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}}}}o(Ahe,"storageRequestFailureDetailsParserPolicy");var mhe=require("node:crypto");var KN=class{static{o(this,"UserDelegationKeyCredential")}accountName;userDelegationKey;key;constructor(e,r){this.accountName=e,this.userDelegationKey=r,this.key=Buffer.from(r.value,"base64")}computeHMACSHA256(e){return(0,mhe.createHmac)("sha256",this.key).update(e,"utf8").digest("base64")}};var XN="12.31.0",ZN="2026-02-06";var eR="https://storage.azure.com/.default",au={Parameters:{FORCE_BROWSER_NO_CACHE:"_",SIGNATURE:"sig",SNAPSHOT:"snapshot",VERSIONID:"versionid",TIMEOUT:"timeout"}};var Pa="",_U="*",S9e=1*1024*1024;var x9e=4*S9e;var ghe="AES256",yhe="DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;",Ehe=["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"],Che=["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"],Ihe="BlobUsesCustomerSpecifiedEncryption",bhe="BlobDoesNotUseCustomerSpecifiedEncryption",whe=["10000","10001","10002","10003","10004","10100","10101","10102","10103","10104","11000","11001","11002","11003","11004","11100","11101","11102","11103","11104"];function cu(t){if(!t||typeof t!="object")return!1;let e=t;return Array.isArray(e.factories)&&typeof e.options=="object"&&typeof e.toServiceClientOptions=="function"}o(cu,"isPipelineLike");var DI=class{static{o(this,"Pipeline")}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 nr);let r=new DI([],e);return r._credential=t,r}o(Or,"newPipeline");function N9e(t){let e=[R9e,Bhe,v9e,T9e,_9e,Q9e,O9e];if(t.factories.length){let r=t.factories.filter(s=>!e.some(i=>i(s)));if(r.length){let s=r.some(i=>P9e(i));return{wrappedPolicies:oU(r),afterRetry:s}}}}o(N9e,"processDownlevelPipeline");function QU(t){let{httpClient:e,...r}=t.options,s=t._coreHttpClient;s||(s=e?aU(e):vU(),t._coreHttpClient=s);let i=t._corePipeline;if(!i){let n=`azsdk-js-azure-storage-blob/${XN}`,a=r.userAgentOptions&&r.userAgentOptions.userAgentPrefix?`${r.userAgentOptions.userAgentPrefix} ${n}`:`${n}`;i=gI({...r,loggingOptions:{additionalAllowedHeaderNames:Ehe,additionalAllowedQueryParameters:Che,logger:qN.info},userAgentOptions:{userAgentPrefix:a},serializationOptions:{stringifyXML:UN,serializerOptions:{xml:{xmlCharKey:"#"}}},deserializationOptions:{parseXML:NU,serializerOptions:{xml:{xmlCharKey:"#"}}}}),i.removePolicy({phase:"Retry"}),i.removePolicy({name:kF}),i.addPolicy(dhe()),i.addPolicy(fhe(r.retryOptions),{phase:"R
Line truncated
|
||||
`),n=e.computeHMACSHA256(i);return{sasQueryParameters:new La(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}}o(NXe,"generateBlobSASQueryParameters20150405");function RXe(t,e){if(t=Xf(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=Hc.parse(t.permissions.toString()).toString():i=zc.parse(t.permissions.toString()).toString());let n=[i||"",t.startsOn?Bt(t.startsOn,!1):"",t.expiresOn?Bt(t.expiresOn,!1):"",Kf(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?Ma(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(`
|
||||
`),a=e.computeHMACSHA256(n);return{sasQueryParameters:new La(t.version,a,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}}o(RXe,"generateBlobSASQueryParameters20181109");function vXe(t,e){if(t=Xf(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=Hc.parse(t.permissions.toString()).toString():i=zc.parse(t.permissions.toString()).toString());let n=[i||"",t.startsOn?Bt(t.startsOn,!1):"",t.expiresOn?Bt(t.expiresOn,!1):"",Kf(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?Ma(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(`
|
||||
`),a=e.computeHMACSHA256(n);return{sasQueryParameters:new La(t.version,a,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}}o(vXe,"generateBlobSASQueryParameters20201206");function TXe(t,e){if(t=Xf(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=Hc.parse(t.permissions.toString()).toString():i=zc.parse(t.permissions.toString()).toString());let n=[i||"",t.startsOn?Bt(t.startsOn,!1):"",t.expiresOn?Bt(t.expiresOn,!1):"",Kf(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?Ma(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,s,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
|
||||
`),a=e.computeHMACSHA256(n);return{sasQueryParameters:new La(t.version,a,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}}o(TXe,"generateBlobSASQueryParametersUDK20181109");function _Xe(t,e){if(t=Xf(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=Hc.parse(t.permissions.toString()).toString():i=zc.parse(t.permissions.toString()).toString());let n=[i||"",t.startsOn?Bt(t.startsOn,!1):"",t.expiresOn?Bt(t.expiresOn,!1):"",Kf(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?Ma(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,s,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
|
||||
`),a=e.computeHMACSHA256(n);return{sasQueryParameters:new La(t.version,a,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}}o(_Xe,"generateBlobSASQueryParametersUDK20200210");function QXe(t,e){if(t=Xf(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=Hc.parse(t.permissions.toString()).toString():i=zc.parse(t.permissions.toString()).toString());let n=[i||"",t.startsOn?Bt(t.startsOn,!1):"",t.expiresOn?Bt(t.expiresOn,!1):"",Kf(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?Ma(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,s,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
|
||||
`),a=e.computeHMACSHA256(n);return{sasQueryParameters:new La(t.version,a,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}}o(QXe,"generateBlobSASQueryParametersUDK20201206");function PXe(t,e){if(t=Xf(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=Hc.parse(t.permissions.toString()).toString():i=zc.parse(t.permissions.toString()).toString());let n=[i||"",t.startsOn?Bt(t.startsOn,!1):"",t.expiresOn?Bt(t.expiresOn,!1):"",Kf(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?Ma(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,s,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
|
||||
`),a=e.computeHMACSHA256(n);return{sasQueryParameters:new La(t.version,a,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}}o(PXe,"generateBlobSASQueryParametersUDK20250705");function Kf(t,e,r){let s=[`/blob/${t}/${e}`];return r&&s.push(`/${r}`),s.join("")}o(Kf,"getCanonicalName");function Xf(t){let e=t.version?t.version:ZN;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}o(Xf,"SASSignatureValuesSanityCheckAndAutofill");var jI=class{static{o(this,"BlobLeaseClient")}_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=Mm()),this._leaseId=r}async acquireLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==Pa||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==Pa||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!==Pa||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==Pa||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!==Pa||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==Pa||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!==Pa||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==Pa||e.conditions?.tagConditions))throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default val
Line truncated
|
||||
If you are using self-hosted runners, please make sure your runner has access to all GitHub endpoints: https://docs.github.com/en/actions/hosting-your-own-runners/managing-self-hosted-runners/about-self-hosted-runners#communication-between-self-hosted-runners-and-github`;super(r),this.code=e,this.name="NetworkError"}};sg.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var rp=class extends Error{static{o(this,"UsageError")}constructor(){super(`Cache storage quota has been hit. Unable to upload any new cache entries.
|
||||
More info on storage limits: https://docs.github.com/en/billing/managing-billing-for-github-actions/about-billing-for-github-actions#calculating-minute-and-storage-spending`),this.name="UsageError"}};rp.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var s0=class extends Error{static{o(this,"RateLimitError")}constructor(e){super(e),this.name="RateLimitError"}};var TZe=function(t,e,r,s){function i(n){return n instanceof r?n:new r(function(a){a(n)})}return o(i,"adopt"),new(r||(r=Promise))(function(n,a){function c(h){try{u(s.next(h))}catch(d){a(d)}}o(c,"fulfilled");function l(h){try{u(s.throw(h))}catch(d){a(d)}}o(l,"rejected");function u(h){h.done?n(h.value):i(h.value).then(c,l)}o(u,"step"),u((s=s.apply(t,e||[])).next())})},E4=class{static{o(this,"UploadProgress")}constructor(e){this.contentLength=e,this.sentBytes=0,this.displayedComplete=!1,this.startTime=Date.now()}setSentBytes(e){this.sentBytes=e}getTransferredBytes(){return this.sentBytes}isDone(){return this.getTransferredBytes()===this.contentLength}display(){if(this.displayedComplete)return;let e=this.sentBytes,r=(100*(e/this.contentLength)).toFixed(1),s=Date.now()-this.startTime,i=(e/(1024*1024)/(s/1e3)).toFixed(1);V(`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=o(()=>{this.display(),this.isDone()||(this.timeoutHandle=setTimeout(r,e))},"displayCallback");this.timeoutHandle=setTimeout(r,e)}stopDisplayTimer(){this.timeoutHandle&&(clearTimeout(this.timeoutHandle),this.timeoutHandle=void 0),this.display()}};function Nfe(t,e,r){return TZe(this,void 0,void 0,function*(){var s;let i=new Au(t),n=i.getBlockBlobClient(),a=new E4((s=r?.archiveSizeBytes)!==null&&s!==void 0?s:0),c={blockSize:r?.uploadChunkSize,concurrency:r?.uploadConcurrency,maxSingleShotSize:128*1024*1024,onProgress:a.onProgress()};try{a.startDisplayTimer(),Q(`BlobClient: ${i.name}:${i.accountName}:${i.containerName}`);let l=yield n.uploadFile(e,c);if(l._response.status>=400)throw new iv(`uploadCacheArchiveSDK: upload failed with status code ${l._response.status}`);return l}catch(l){throw hr(`uploadCacheArchiveSDK: internal error uploading cache archive: ${l.message}`),l}finally{a.stopDisplayTimer()}})}o(Nfe,"uploadCacheArchiveSDK");var vfe=M(require("buffer"),1),Vc=M(require("fs"),1),Tfe=M(require("stream"),1),_fe=M(require("util"),1);var nv=function(t,e,r,s){function i(n){return n instanceof r?n:new r(function(a){a(n)})}return o(i,"adopt"),new(r||(r=Promise))(function(n,a){function c(h){try{u(s.next(h))}catch(d){a(d)}}o(c,"fulfilled");function l(h){try{u(s.throw(h))}catch(d){a(d)}}o(l,"rejected");function u(h){h.done?n(h.value):i(h.value).then(c,l)}o(u,"step"),u((s=s.apply(t,e||[])).next())})};function ov(t){return t?t>=200&&t<300:!1}o(ov,"isSuccessStatusCode");function _Ze(t){return t?t>=500:!0}o(_Ze,"isServerErrorStatusCode");function QZe(t){return t?[mr.BadGateway,mr.ServiceUnavailable,mr.GatewayTimeout].includes(t):!1}o(QZe,"isRetryableStatusCode");function PZe(t){return nv(this,void 0,void 0,function*(){return new Promise(e=>setTimeout(e,t))})}o(PZe,"sleep");function Rfe(t,e,r){return nv(this,arguments,void 0,function*(s,i,n,a=_x,c=Qx,l=void 0){let u="",h=1;for(;h<=a;){let d,f,p=!1;try{d=yield i()}catch(A){l&&(d=l(A)),p=!0,u=A.message}if(d&&(f=n(d),!_Ze(f)))return d;if(f&&(p=QZe(f),u=`Cache service responded with ${f}`),Q(`${s} - Attempt ${h} of ${a} failed with error: ${u}`),!p){Q(`${s} - Error is not retryable`);break}yield PZe(c),h++}throw Error(`${s} failed: ${u}`)})}o(Rfe,"retry");function i0(t,e){return nv(this,arguments,void 0,function*(r,s,i=_x,n=Qx){return yield Rfe(r,s,a=>a.statusCode,i,n,a=>{if(a instanceof gc)return{statusCode:a.statusCode,result:null,headers:{},error:a}})})}o(i0,"retryTypedResponse");function ig(t,e){return nv(this,arguments,void 0,function*(r,s,i=_x,n=Qx){return yield Rfe(r,s,a=>a.message.statusCode,i,n)})}o(ig,"retryHttpClientResponse");var Ho=function(t,e,r,s){function i(n){return n instanceof r?n:new r(function(a){a(n)})}return o(i,"adopt"),new(r||(r=Promise))(function(n,a){function c(h){try{u(s.next(h))}catch(d){a(d)}}o(c,"fulfilled");function l(h){try{u(s.throw(h))}catch(d){a(d)}}o(l,"rejected");function u(h){h.done?n(h.value):i(h.value).then(c,l)}o(u,"step"),u((s=s.apply(t,e||[])).next())})};function OZe(t,e){return Ho(this,void 0,void 0,function*(){yield _fe.promisify(Tfe.pipeline)(t.message,e)})}o(OZe,"pipeResponseToStream");var av=class{static{o(this,"DownloadProgress")}constructor(e){this.contentLength=e,this.segmentIndex=0,this.segmentSize=0,this.segmentOffset=0,this.receivedBytes=0,this.displayedComplete=!1,this.startTime=Date.now()}nextSegment(e){this.segmentOffset=this.segmentOffset+this.segmentSize,this.segmentIndex=this.segmentIndex+1,this.segmentSize=e,this.receivedBytes=0,Q(`Downloading segment at offset ${this.segmentOffset} with length ${this.segmentSize}...`)}setReceivedBytes(e){th
Line truncated
|
||||
Other caches with similar key:`);for(let c of n?.artifactCaches||[])Q(`Cache Key: ${c?.cacheKey}, Cache Version: ${c?.cacheVersion}, Cache Scope: ${c?.scope}, Cache Created: ${c?.creationTime}`)}}})}o(qZe,"printCachesListForDiagnostics");function w4(t,e,r){return ln(this,void 0,void 0,function*(){let s=new qfe.URL(t),i=Dfe(r);s.hostname.endsWith(".blob.core.windows.net")?i.useAzureSdk?yield Pfe(t,e,i):i.concurrentBlobDownloads?yield Qfe(t,e,i):yield cv(t,e):yield cv(t,e)})}o(w4,"downloadCache");function Hfe(t,e,r){return ln(this,void 0,void 0,function*(){let s=b4(),i=Rm(e,r?.compressionMethod,r?.enableCrossOsArchive),n={key:t,version:i,cacheSize:r?.cacheSize};return yield i0("reserveCache",()=>ln(this,void 0,void 0,function*(){return s.postJson(o0("caches"),n)}))})}o(Hfe,"reserveCache");function Ufe(t,e){return`bytes ${t}-${e}/*`}o(Ufe,"getContentRange");function GZe(t,e,r,s,i){return ln(this,void 0,void 0,function*(){Q(`Uploading chunk of size ${i-s+1} bytes at offset ${s} with content range: ${Ufe(s,i)}`);let n={"Content-Type":"application/octet-stream","Content-Range":Ufe(s,i)},a=yield ig(`uploadChunk (start: ${s}, end: ${i})`,()=>ln(this,void 0,void 0,function*(){return t.sendStream("PATCH",e,r(),n)}));if(!ov(a.message.statusCode))throw new Error(`Cache service responded with ${a.message.statusCode} during upload chunk.`)})}o(GZe,"uploadChunk");function HZe(t,e,r,s){return ln(this,void 0,void 0,function*(){let i=mc(r),n=o0(`caches/${e.toString()}`),a=ng.openSync(r,"r"),c=C4(s),l=J2("uploadConcurrency",c.uploadConcurrency),u=J2("uploadChunkSize",c.uploadChunkSize),h=[...new Array(l).keys()];Q("Awaiting all uploads");let d=0;try{yield Promise.all(h.map(()=>ln(this,void 0,void 0,function*(){for(;d<i;){let f=Math.min(i-d,u),p=d,A=d+f-1;d+=u,yield GZe(t,n,()=>ng.createReadStream(r,{fd:a,start:p,end:A,autoClose:!1}).on("error",g=>{throw new Error(`Cache upload failed because file read failed with ${g.message}`)}),p,A)}})))}finally{ng.closeSync(a)}})}o(HZe,"uploadFile");function zZe(t,e,r){return ln(this,void 0,void 0,function*(){let s={size:r};return yield i0("commitCache",()=>ln(this,void 0,void 0,function*(){return t.postJson(o0(`caches/${e.toString()}`),s)}))})}o(zZe,"commitCache");function B4(t,e,r,s){return ln(this,void 0,void 0,function*(){if(C4(s).useAzureSdk){if(!r)throw new Error("Azure Storage SDK can only be used when a signed URL is provided.");yield Nfe(r,e,s)}else{let n=b4();Q("Upload cache"),yield HZe(n,t,e,s),Q("Commiting cache");let a=mc(e);V(`Cache Size: ~${Math.round(a/(1024*1024))} MB (${a} B)`);let c=yield zZe(n,t,a);if(!ov(c.statusCode))throw new Error(`Cache service responded with ${c.statusCode} during commit cache.`);V("Cache saved successfully")}})}o(B4,"saveCache");var Mpe=M(Tpe(),1),Mr=M(kr(),1),Zn=M(kr(),1),ap=M(kr(),1),cp=M(kr(),1),lp=M(kr(),1);var yz=M(kr(),1),Ez=M(kr(),1),Ope=M(kr(),1),Dpe=M(kr(),1),kpe=M(kr(),1);var Az=M(kr(),1),mz=M(kr(),1),_pe=M(kr(),1),Qpe=M(kr(),1),Ppe=M(kr(),1);var gz=class extends Ppe.MessageType{static{o(this,"CacheScope$Type")}constructor(){super("github.actions.results.entities.v1.CacheScope",[{no:1,name:"scope",kind:"scalar",T:9},{no:2,name:"permission",kind:"scalar",T:3}])}create(e){let r={scope:"",permission:"0"};return globalThis.Object.defineProperty(r,Qpe.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,_pe.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,s,i){let n=i??this.create(),a=e.pos+r;for(;e.pos<a;){let[c,l]=e.tag();switch(c){case 1:n.scope=e.string();break;case 2:n.permission=e.int64().toString();break;default:let u=s.readUnknownField;if(u==="throw")throw new globalThis.Error(`Unknown field ${c} (wire type ${l}) for ${this.typeName}`);let h=e.skip(l);u!==!1&&(u===!0?mz.UnknownFieldHandler.onRead:u)(this.typeName,n,c,l,h)}}return n}internalBinaryWrite(e,r,s){e.scope!==""&&r.tag(1,Az.WireType.LengthDelimited).string(e.scope),e.permission!=="0"&&r.tag(2,Az.WireType.Varint).int64(e.permission);let i=s.writeUnknownFields;return i!==!1&&(i==!0?mz.UnknownFieldHandler.onWrite:i)(this.typeName,e,r),r}},Yv=new gz;var Cz=class extends kpe.MessageType{static{o(this,"CacheMetadata$Type")}constructor(){super("github.actions.results.entities.v1.CacheMetadata",[{no:1,name:"repository_id",kind:"scalar",T:3},{no:2,name:"scope",kind:"message",repeat:1,T:o(()=>Yv,"T")}])}create(e){let r={repositoryId:"0",scope:[]};return globalThis.Object.defineProperty(r,Dpe.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,Ope.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,s,i){let n=i??this.create(),a=e.pos+r;for(;e.pos<a;){let[c,l]=e.tag();switch(c){case 1:n.repositoryId=e.int64().toString();break;case 2:n.scope.push(Yv.internalBinaryRead(e,e.uint32(),s));break;default:let u=s.readUnknownField;if(u==="throw")throw new globalThis.Error(`Unknown field ${c} (wire type ${l}) for ${this.typeName}`);let h=e.skip(l);u!==!1&&(u===!0?Ez.UnknownFieldHandler.onRead:u)(this.typeName,n,c,l,h)}}return n}internalBinaryWrite(e,r,s){e.repositoryId!==
Line truncated
|
||||
`));let s=yield Dz(r,"create");yield kz(s,t)})}o(Lz,"createTar");var bg=function(t,e,r,s){function i(n){return n instanceof r?n:new r(function(a){a(n)})}return o(i,"adopt"),new(r||(r=Promise))(function(n,a){function c(h){try{u(s.next(h))}catch(d){a(d)}}o(c,"fulfilled");function l(h){try{u(s.throw(h))}catch(d){a(d)}}o(l,"rejected");function u(h){h.done?n(h.value):i(h.value).then(c,l)}o(u,"step"),u((s=s.apply(t,e||[])).next())})},qa=class t extends Error{static{o(this,"ValidationError")}constructor(e){super(e),this.name="ValidationError",Object.setPrototypeOf(this,t.prototype)}},Ig=class t extends Error{static{o(this,"ReserveCacheError")}constructor(e){super(e),this.name="ReserveCacheError",Object.setPrototypeOf(this,t.prototype)}},Zv=class t extends Error{static{o(this,"FinalizeCacheError")}constructor(e){super(e),this.name="FinalizeCacheError",Object.setPrototypeOf(this,t.prototype)}};function qpe(t){if(!t||t.length===0)throw new qa("Path Validation Error: At least one directory or file path is required")}o(qpe,"checkPaths");function Fz(t){if(t.length>512)throw new qa(`Key Validation Error: ${t} cannot be larger than 512 characters.`);if(!/^[^,]*$/.test(t))throw new qa(`Key Validation Error: ${t} cannot contain commas.`)}o(Fz,"checkKey");function Uz(){return n0()==="v2"?!!process.env.ACTIONS_RESULTS_URL:!!process.env.ACTIONS_CACHE_URL}o(Uz,"isFeatureAvailable");function Gpe(t,e,r,s){return bg(this,arguments,void 0,function*(i,n,a,c,l=!1){let u=n0();return Q(`Cache service version: ${u}`),qpe(i),u==="v2"?yield att(i,n,a,c,l):yield ott(i,n,a,c,l)})}o(Gpe,"restoreCache");function ott(t,e,r,s){return bg(this,arguments,void 0,function*(i,n,a,c,l=!1){a=a||[];let u=[n,...a];if(Q("Resolved Keys:"),Q(JSON.stringify(u)),u.length>10)throw new qa("Key Validation Error: Keys are limited to a maximum of 10.");for(let f of u)Fz(f);let h=yield sI(),d="";try{let f=yield Gfe(u,i,{compressionMethod:h,enableCrossOsArchive:l});if(!f?.archiveLocation)return;if(c?.lookupOnly)return V("Lookup only - skipping download"),f.cacheKey;d=b0.join(yield tI(),Gh(h)),Q(`Archive Path: ${d}`),yield w4(f.archiveLocation,d,c),wf()&&(yield I0(d,h));let p=mc(d);return V(`Cache Size: ~${Math.round(p/(1024*1024))} MB (${p} B)`),yield Mz(d,h),V("Cache restored successfully"),f.cacheKey}catch(f){let p=f;if(p.name===qa.name)throw f;p instanceof gc&&typeof p.statusCode=="number"&&p.statusCode>=500?gm(`Failed to restore: ${f.message}`):hr(`Failed to restore: ${f.message}`)}finally{try{yield rI(d)}catch(f){Q(`Failed to delete archive: ${f}`)}}})}o(ott,"restoreCacheV1");function att(t,e,r,s){return bg(this,arguments,void 0,function*(i,n,a,c,l=!1){c=Object.assign(Object.assign({},c),{useAzureSdk:!0}),a=a||[];let u=[n,...a];if(Q("Resolved Keys:"),Q(JSON.stringify(u)),u.length>10)throw new qa("Key Validation Error: Keys are limited to a maximum of 10.");for(let d of u)Fz(d);let h="";try{let d=Oz(),f=yield sI(),p={key:n,restoreKeys:a,version:Rm(i,f,l)},A=yield d.GetCacheEntryDownloadURL(p);if(!A.ok){Q(`Cache not found for version ${p.version} of keys: ${u.join(", ")}`);return}if(p.key!==A.matchedKey?V(`Cache hit for restore-key: ${A.matchedKey}`):V(`Cache hit for: ${A.matchedKey}`),c?.lookupOnly)return V("Lookup only - skipping download"),A.matchedKey;h=b0.join(yield tI(),Gh(f)),Q(`Archive path: ${h}`),Q(`Starting download of archive to: ${h}`),yield w4(A.signedDownloadUrl,h,c);let C=mc(h);return V(`Cache Size: ~${Math.round(C/(1024*1024))} MB (${C} B)`),wf()&&(yield I0(h,f)),yield Mz(h,f),V("Cache restored successfully"),A.matchedKey}catch(d){let f=d;if(f.name===qa.name)throw d;f instanceof gc&&typeof f.statusCode=="number"&&f.statusCode>=500?gm(`Failed to restore: ${d.message}`):hr(`Failed to restore: ${d.message}`)}finally{try{h&&(yield rI(h))}catch(d){Q(`Failed to delete archive: ${d}`)}}})}o(att,"restoreCacheV2");function qz(t,e,r){return bg(this,arguments,void 0,function*(s,i,n,a=!1){let c=n0();return Q(`Cache service version: ${c}`),qpe(s),Fz(i),c==="v2"?yield ltt(s,i,n,a):yield ctt(s,i,n,a)})}o(qz,"saveCache");function ctt(t,e,r){return bg(this,arguments,void 0,function*(s,i,n,a=!1){var c,l,u,h,d;let f=yield sI(),p=-1,A=yield j2(s);if(Q("Cache Paths:"),Q(`${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 g=yield tI(),C=b0.join(g,Gh(f));Q(`Archive Path: ${C}`);try{yield Lz(g,A,f),wf()&&(yield I0(C,f));let E=10*1024*1024*1024,I=mc(C);if(Q(`File Size: ${I}`),I>E&&!I4())throw new Error(`Cache size of ~${Math.round(I/(1024*1024))} MB (${I} B) is over the 10GB limit, not saving cache.`);Q("Reserving Cache");let B=yield Hfe(i,s,{compressionMethod:f,enableCrossOsArchive:a,cacheSize:I});if(!((c=B?.result)===null||c===void 0)&&c.cacheId)p=(l=B?.result)===null||l===void 0?void 0:l.cacheId;else throw B?.statusCode===400?new Error((h=(u=B?.error)===null||u===void 0?void 0:u.message)!==null&&h!==void 0?h:`Cache size of ~${Math.round(I/(1024*Line truncated
|
||||
`,a).length:d,u?(c===null?0:c.length)+l.length:0,u?l.length+d:0);return f<p},"__needMoreData"),parse:o(function(s,i,n,a){let{bom:c,comment_no_infix:l,encoding:u,from_line:h,ltrim:d,max_record_size:f,raw:p,relax_quotes:A,rtrim:g,skip_empty_lines:C,to:E,to_line:I}=this.options,{comment:B,escape:x,quote:R,record_delimiter:D}=this.options,{bomSkipped:O,previousBuf:L,rawBuffer:z,escapeIsQuote:Z}=this.state,U;if(L===void 0)if(s===void 0){a();return}else U=s;else L!==void 0&&s===void 0?U=L:U=Buffer.concat([L,s]);if(O===!1)if(c===!1)this.state.bomSkipped=!0;else if(U.length<3){if(i===!1){this.state.previousBuf=U;return}}else{for(let j in Dg)if(Dg[j].compare(U,0,Dg[j].length)===0){let se=Dg[j].length;this.state.bufBytesStart+=se,U=U.slice(se);let _e=z8({...this.original_options,encoding:j});for(let we in _e)this.options[we]=_e[we];({comment:B,escape:x,quote:R}=this.options);break}this.state.bomSkipped=!0}let q=U.length,H;for(H=0;H<q&&!this.__needMoreData(H,q,i);H++){if(this.state.wasRowDelimiter===!0&&(this.info.lines++,this.state.wasRowDelimiter=!1),I!==-1&&this.info.lines>I){this.state.stop=!0,a();return}this.state.quoting===!1&&D.length===0&&this.__autoDiscoverRecordDelimiter(U,H)&&(D=this.options.record_delimiter);let j=U[H];if(p===!0&&z.append(j),(j===Rit||j===vit)&&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(U,H,j)&&H+x.length<q)if(Z){if(this.__isQuote(U,H+x.length)){this.state.escaping=!0,H+=x.length-1;continue}}else{this.state.escaping=!0,H+=x.length-1;continue}if(this.state.commenting===!1&&this.__isQuote(U,H))if(this.state.quoting===!0){let we=U[H+R.length],le=g&&this.__isCharTrimable(U,H+R.length),at=B!==null&&this.__compareBytes(B,U,H+R.length,we),Ze=this.__isDelimiter(U,H+R.length,we),yt=D.length===0?this.__autoDiscoverRecordDelimiter(U,H+R.length):this.__isRecordDelimiter(we,U,H+R.length);if(x!==null&&this.__isEscape(U,H,j)&&this.__isQuote(U,H+x.length))H+=x.length-1;else if(!we||Ze||yt||at||le){this.state.quoting=!1,this.state.wasQuoting=!0,H+=R.length-1;continue}else if(A===!1){let Oe=this.__error(new mt("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(Oe!==void 0)return Oe}else this.state.quoting=!1,this.state.wasQuoting=!0,this.state.field.prepend(R),H+=R.length-1}else if(this.state.field.length!==0){if(A===!1){let we=this.__infoField(),le=Object.keys(Dg).map(Ze=>Dg[Ze].equals(this.state.field.toString())?Ze:!1).filter(Boolean)[0],at=this.__error(new mt("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(u))}`,le?`(${le} bom)`:void 0],this.options,we,{field:this.state.field}));if(at!==void 0)return at}}else{this.state.quoting=!0,H+=R.length-1;continue}if(this.state.quoting===!1){let we=this.__isRecordDelimiter(j,U,H);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)>=h){this.state.enabled=!0,this.__resetField(),this.__resetRecord(),H+=we-1;continue}if(C===!0&&this.state.wasQuoting===!1&&this.state.record.length===0&&this.state.field.length===0){this.info.empty_lines++,H+=we-1;continue}this.info.bytes=this.state.bufBytesStart+H;let Ze=this.__onField();if(Ze!==void 0)return Ze;this.info.bytes=this.state.bufBytesStart+H+we;let yt=this.__onRecord(n);if(yt!==void 0)return yt;if(E!==-1&&this.info.records>=E){this.state.stop=!0,a();return}}this.state.commenting=!1,H+=we-1;continue}if(this.state.commenting)continue;if(B!==null&&(l===!1||this.state.record.length===0&&this.state.field.length===0)&&this.__compareBytes(B,U,H,j)!==0){this.state.commenting=!0;continue}let le=this.__isDelimiter(U,H,j);if(le!==0){this.info.bytes=this.state.bufBytesStart+H;let at=this.__onField();if(at!==void 0)return at;H+=le-1;continue}}}if(this.state.commenting===!1&&f!==0&&this.state.record_length+this.state.field.length>f)return this.__error(new mt("CSV_MAX_RECORD_SIZE",["Max Record Size:","record exceed the maximum number of tolerated bytes",`of ${f}`,`at line ${this.info.lines}`],this.options,this.__infoField()));let se=d===!1||this.state.quoting===!0||this.state.field.length!==0||!this.__isCharTrimable(U,H),_e=g===!1||this.state.wasQuoting===!1;if(se===!0&&_e===!0)this.state.field.append(j);else{if(g===!0&&!this.__isCharTrimable(U,H))return this.__error(new mt("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()));se===!1&&(H+=this.__isCharTrimable(U,H)-1);continue}}if(i===!0)if(this
Line truncated
|
||||
`,n),Buffer.from(`
|
||||
`,n),Buffer.from("\r",n)];e:for(let c=0;c<a.length;c++){let l=a[c].length;for(let u=0;u<l;u++)if(a[c][u]!==s[i+u])continue e;return this.options.record_delimiter.push(a[c]),this.state.recordDelimiterMaxLength=a[c].length,a[c].length}return 0},"__autoDiscoverRecordDelimiter"),__error:o(function(s){let{encoding:i,raw:n,skip_records_with_error:a}=this.options,c=typeof s=="string"?new Error(s):s;if(a){if(this.state.recordHasError=!0,this.options.on_skip!==void 0)try{this.options.on_skip(c,n?this.state.rawBuffer.toString(i):void 0)}catch(l){return l}return}else return c},"__error"),__infoDataSet:o(function(){return{...this.info,columns:this.options.columns}},"__infoDataSet"),__infoRecord:o(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}},"__infoRecord"),__infoField:o(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}},"__infoField")}},"transform");var io=o(function(t,e={}){typeof t=="string"&&(t=Buffer.from(t));let r=e&&e.objname?{}:[],s=age(e),i=o(c=>{s.options.objname===void 0?r.push(c):r[c[0]]=c[1]},"push"),n=o(()=>{},"close"),a=s.parse(t,!0,i,n);if(a!==void 0)throw a;return r},"parse");var Zt=class t{static{o(this,"Util")}static getInputList(e,r){return this.getList(kh(e,{trimWhitespace:r?.trimWhitespace!==!1}),r)}static getList(e,r){let s=[];if(e=="")return s;let i=io(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=kh(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 a in r)n.push(`-${a} '${r[a].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 cge.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 V8.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 V8.default.randomBytes(Math.ceil(e/2)).toString("hex").slice(0,e)}static compileHandlebars(e,r,s){return lge.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=M0.default.resolve(e);return M0.default.resolve(r).startsWith(s.endsWith(M0.default.sep)?s:`${s}${M0.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,a=[];return s&&a.push(`${s}h`),i&&a.push(`${i}m`),(n||a.length===0)&&a.push(`${n}s`),a.join("")}};var cs=class t{static{o(this,"Docker")}static get configDir(){return process.env.DOCKER_CONFIG||L0.default.join(uge.default.homedir(),".docker")}static configFile(){let e=L0.default.join(t.configDir,"config.json");if($8.default.existsSync(e))return JSON.parse($8.default.readFileSync(e,{encoding:"utf-8"}))}static async isAvailable(){return await Ls("docker",!0).then(e=>(Q(`Docker.isAvailable ok: ${e}`),!0)).catch(e=>(Q(`Docker.isAvailable error: ${e}`),!1))}static async isDaemonRunning(){try{return await t.getExecOutput(["version"],{silent:!0}),!0}catch{return!1}}st
Line truncated
|
||||
`+s(i)+n(i),c=(0,MK.createHmac)("sha256",t.accountKey).update(a,"utf8").digest("base64");i.headers.set(oe.AUTHORIZATION,`SharedKey ${t.accountName}:${c}`)}o(e,"signRequest");function r(i,a){let c=i.headers.get(a);return!c||a===oe.CONTENT_LENGTH&&c==="0"?"":c}o(r,"getHeaderValueToSign");function s(i){let a=[];for(let[l,u]of i.headers)l.toLowerCase().startsWith(oe.PREFIX_FOR_STORAGE)&&a.push({name:l,value:u});a.sort((l,u)=>lB(l.name.toLowerCase(),u.name.toLowerCase())),a=a.filter((l,u,d)=>!(u>0&&l.name.toLowerCase()===d[u-1].name.toLowerCase()));let c="";return a.forEach(l=>{c+=`${l.name.toLowerCase().trimRight()}:${l.value.trimLeft()}
|
||||
`}),c}o(s,"getCanonicalizedHeadersString");function n(i){let a=oB(i.url)||"/",c="";c+=`/${t.accountName}${a}`;let l=aB(i.url),u={};if(l){let d=[];for(let A in l)if(Object.prototype.hasOwnProperty.call(l,A)){let p=A.toLowerCase();u[p]=l[A],d.push(p)}d.sort();for(let A of d)c+=`
|
||||
${A}:${decodeURIComponent(u[A])}`}return c}return o(n,"getCanonicalizedResourceString"),{name:m_e,async sendRequest(i,a){return e(i),a(i)}}}o(c_,"storageSharedKeyCredentialPolicy");var g_e="storageRequestFailureDetailsParserPolicy";function LK(){return{name:g_e,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}}}}o(LK,"storageRequestFailureDetailsParserPolicy");var FK=require("node:crypto");var uB=class{static{o(this,"UserDelegationKeyCredential")}accountName;userDelegationKey;key;constructor(e,r){this.accountName=e,this.userDelegationKey=r,this.key=Buffer.from(r.value,"base64")}computeHMACSHA256(e){return(0,FK.createHmac)("sha256",this.key).update(e,"utf8").digest("base64")}};var dB="12.31.0",AB="2026-02-06";var pB="https://storage.azure.com/.default",Aa={Parameters:{FORCE_BROWSER_NO_CACHE:"_",SIGNATURE:"sig",SNAPSHOT:"snapshot",VERSIONID:"versionid",TIMEOUT:"timeout"}};var ii="",l_="*",E_e=1*1024*1024;var y_e=4*E_e;var UK="AES256",qK="DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;",GK=["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"],HK=["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"],VK="BlobUsesCustomerSpecifiedEncryption",zK="BlobDoesNotUseCustomerSpecifiedEncryption",JK=["10000","10001","10002","10003","10004","10100","10101","10102","10103","10104","11000","11001","11002","11003","11004","11100","11101","11102","11103","11104"];function pa(t){if(!t||typeof t!="object")return!1;let e=t;return Array.isArray(e.factories)&&typeof e.options=="object"&&typeof e.toServiceClientOptions=="function"}o(pa,"isPipelineLike");var Am=class{static{o(this,"Pipeline")}factories;options;constructor(e,r={}){this.factories=e,this.options=r}toServiceClientOptions(){return{httpClient:this.options.httpClient,requestPolicyFactories:this.factories}}};function _t(t,e={}){t||(t=new lt);let r=new Am([],e);return r._credential=t,r}o(_t,"newPipeline");function C_e(t){let e=[I_e,YK,B_e,b_e,w_e,S_e,x_e];if(t.factories.length){let r=t.factories.filter(s=>!e.some(n=>n(s)));if(r.length){let s=r.some(n=>N_e(n));return{wrappedPolicies:LP(r),afterRetry:s}}}}o(C_e,"processDownlevelPipeline");function u_(t){let{httpClient:e,...r}=t.options,s=t._coreHttpClient;s||(s=e?FP(e):a_(),t._coreHttpClient=s);let n=t._corePipeline;if(!n){let i=`azsdk-js-azure-storage-blob/${dB}`,a=r.userAgentOptions&&r.userAgentOptions.userAgentPrefix?`${r.userAgentOptions.userAgentPrefix} ${i}`:`${i}`;n=$h({...r,loggingOptions:{additionalAllowedHeaderNames:GK,additionalAllowedQueryParameters:HK,logger:eB.info},userAgentOptions:{userAgentPrefix:a},serializationOptions:{stringifyXML:ZI,serializerOptions:{xml:{xmlCharKey:"#"}}},deserializationOptions:{parseXML:i_,serializerOptions:{xml:{xmlCharKey:"#"}}}}),n.removePolicy({phase:"Retry"}),n.removePolicy({name:fP}),n.addPolicy(DK()),n.addPolicy(OK(r.retryOptions),{phase:"Retry"}),n.addPo
Line truncated
|
||||
`),i=e.computeHMACSHA256(n);return{sasQueryParameters:new ui(t.version,i,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:n}}o(CDe,"generateBlobSASQueryParameters20150405");function IDe(t,e){if(t=su(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 n;t.permissions&&(t.blobName?n=Ao.parse(t.permissions.toString()).toString():n=po.parse(t.permissions.toString()).toString());let i=[n||"",t.startsOn?De(t.startsOn,!1):"",t.expiresOn?De(t.expiresOn,!1):"",ru(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?li(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(`
|
||||
`),a=e.computeHMACSHA256(i);return{sasQueryParameters:new ui(t.version,a,n,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType),stringToSign:i}}o(IDe,"generateBlobSASQueryParameters20181109");function BDe(t,e){if(t=su(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 n;t.permissions&&(t.blobName?n=Ao.parse(t.permissions.toString()).toString():n=po.parse(t.permissions.toString()).toString());let i=[n||"",t.startsOn?De(t.startsOn,!1):"",t.expiresOn?De(t.expiresOn,!1):"",ru(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?li(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(`
|
||||
`),a=e.computeHMACSHA256(i);return{sasQueryParameters:new ui(t.version,a,n,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,void 0,void 0,void 0,t.encryptionScope),stringToSign:i}}o(BDe,"generateBlobSASQueryParameters20201206");function bDe(t,e){if(t=su(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 n;t.permissions&&(t.blobName?n=Ao.parse(t.permissions.toString()).toString():n=po.parse(t.permissions.toString()).toString());let i=[n||"",t.startsOn?De(t.startsOn,!1):"",t.expiresOn?De(t.expiresOn,!1):"",ru(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?De(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?De(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.ipRange?li(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,s,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
|
||||
`),a=e.computeHMACSHA256(i);return{sasQueryParameters:new ui(t.version,a,n,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey),stringToSign:i}}o(bDe,"generateBlobSASQueryParametersUDK20181109");function wDe(t,e){if(t=su(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 n;t.permissions&&(t.blobName?n=Ao.parse(t.permissions.toString()).toString():n=po.parse(t.permissions.toString()).toString());let i=[n||"",t.startsOn?De(t.startsOn,!1):"",t.expiresOn?De(t.expiresOn,!1):"",ru(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?De(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?De(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?li(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,s,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
|
||||
`),a=e.computeHMACSHA256(i);return{sasQueryParameters:new ui(t.version,a,n,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId),stringToSign:i}}o(wDe,"generateBlobSASQueryParametersUDK20200210");function SDe(t,e){if(t=su(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 n;t.permissions&&(t.blobName?n=Ao.parse(t.permissions.toString()).toString():n=po.parse(t.permissions.toString()).toString());let i=[n||"",t.startsOn?De(t.startsOn,!1):"",t.expiresOn?De(t.expiresOn,!1):"",ru(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?De(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?De(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?li(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,s,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
|
||||
`),a=e.computeHMACSHA256(i);return{sasQueryParameters:new ui(t.version,a,n,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId,t.encryptionScope),stringToSign:i}}o(SDe,"generateBlobSASQueryParametersUDK20201206");function NDe(t,e){if(t=su(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 n;t.permissions&&(t.blobName?n=Ao.parse(t.permissions.toString()).toString():n=po.parse(t.permissions.toString()).toString());let i=[n||"",t.startsOn?De(t.startsOn,!1):"",t.expiresOn?De(t.expiresOn,!1):"",ru(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?De(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?De(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,void 0,t.delegatedUserObjectId,t.ipRange?li(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,s,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
|
||||
`),a=e.computeHMACSHA256(i);return{sasQueryParameters:new ui(t.version,a,n,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId,t.encryptionScope,t.delegatedUserObjectId),stringToSign:i}}o(NDe,"generateBlobSASQueryParametersUDK20250705");function ru(t,e,r){let s=[`/blob/${t}/${e}`];return r&&s.push(`/${r}`),s.join("")}o(ru,"getCanonicalName");function su(t){let e=t.version?t.version:AB;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}o(su,"SASSignatureValuesSanityCheckAndAutofill");var wm=class{static{o(this,"BlobLeaseClient")}_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=uA()),this._leaseId=r}async acquireLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==ii||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==ii||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 z.withSpan("BlobLeaseClient-acquireLease",r,async s=>W(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!==ii||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==ii||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 z.withSpan("BlobLeaseClient-changeLease",r,async s=>{let n=W(await this._containerOrBlobOperation.changeLease(this._leaseId,e,{abortSignal:r.abortSignal,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},tracingOptions:s.tracingOptions}));return this._leaseId=e,n})}async releaseLease(e={}){if(this._isContainer&&(e.conditions?.ifMatch&&e.conditions?.ifMatch!==ii||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==ii||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 z.withSpan("BlobLeaseClient-releaseLease",e,async r=>W(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!==ii||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==ii||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 ar
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"}};TA.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var au=class extends Error{static{o(this,"UsageError")}constructor(){super(`Cache storage quota has been hit. Unable to upload any new cache entries.
|
||||
More info on storage limits: https://docs.github.com/en/billing/managing-billing-for-github-actions/about-billing-for-github-actions#calculating-minute-and-storage-spending`),this.name="UsageError"}};au.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var km=class extends Error{static{o(this,"RateLimitError")}constructor(e){super(e),this.name="RateLimitError"}};var bOe=function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(a){a(i)})}return o(n,"adopt"),new(r||(r=Promise))(function(i,a){function c(d){try{u(s.next(d))}catch(A){a(A)}}o(c,"fulfilled");function l(d){try{u(s.throw(d))}catch(A){a(A)}}o(l,"rejected");function u(d){d.done?i(d.value):n(d.value).then(c,l)}o(u,"step"),u((s=s.apply(t,e||[])).next())})},KO=class{static{o(this,"UploadProgress")}constructor(e){this.contentLength=e,this.sentBytes=0,this.displayedComplete=!1,this.startTime=Date.now()}setSentBytes(e){this.sentBytes=e}getTransferredBytes(){return this.sentBytes}isDone(){return this.getTransferredBytes()===this.contentLength}display(){if(this.displayedComplete)return;let e=this.sentBytes,r=(100*(e/this.contentLength)).toFixed(1),s=Date.now()-this.startTime,n=(e/(1024*1024)/(s/1e3)).toFixed(1);S(`Sent ${e} of ${this.contentLength} (${r}%), ${n} MBs/sec`),this.isDone()&&(this.displayedComplete=!0)}onProgress(){return e=>{this.setSentBytes(e.loadedBytes)}}startDisplayTimer(e=1e3){let r=o(()=>{this.display(),this.isDone()||(this.timeoutHandle=setTimeout(r,e))},"displayCallback");this.timeoutHandle=setTimeout(r,e)}stopDisplayTimer(){this.timeoutHandle&&(clearTimeout(this.timeoutHandle),this.timeoutHandle=void 0),this.display()}};function jZ(t,e,r){return bOe(this,void 0,void 0,function*(){var s;let n=new Ca(t),i=n.getBlockBlobClient(),a=new KO((s=r?.archiveSizeBytes)!==null&&s!==void 0?s:0),c={blockSize:r?.uploadChunkSize,concurrency:r?.uploadConcurrency,maxSingleShotSize:128*1024*1024,onProgress:a.onProgress()};try{a.startDisplayTimer(),b(`BlobClient: ${n.name}:${n.accountName}:${n.containerName}`);let l=yield i.uploadFile(e,c);if(l._response.status>=400)throw new gb(`uploadCacheArchiveSDK: upload failed with status code ${l._response.status}`);return l}catch(l){throw et(`uploadCacheArchiveSDK: internal error uploading cache archive: ${l.message}`),l}finally{a.stopDisplayTimer()}})}o(jZ,"uploadCacheArchiveSDK");var XZ=w(require("buffer"),1),fo=w(require("fs"),1),ZZ=w(require("stream"),1),e7=w(require("util"),1);var Eb=function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(a){a(i)})}return o(n,"adopt"),new(r||(r=Promise))(function(i,a){function c(d){try{u(s.next(d))}catch(A){a(A)}}o(c,"fulfilled");function l(d){try{u(s.throw(d))}catch(A){a(A)}}o(l,"rejected");function u(d){d.done?i(d.value):n(d.value).then(c,l)}o(u,"step"),u((s=s.apply(t,e||[])).next())})};function yb(t){return t?t>=200&&t<300:!1}o(yb,"isSuccessStatusCode");function wOe(t){return t?t>=500:!0}o(wOe,"isServerErrorStatusCode");function SOe(t){return t?[yt.BadGateway,yt.ServiceUnavailable,yt.GatewayTimeout].includes(t):!1}o(SOe,"isRetryableStatusCode");function NOe(t){return Eb(this,void 0,void 0,function*(){return new Promise(e=>setTimeout(e,t))})}o(NOe,"sleep");function KZ(t,e,r){return Eb(this,arguments,void 0,function*(s,n,i,a=HC,c=VC,l=void 0){let u="",d=1;for(;d<=a;){let A,p,f=!1;try{A=yield n()}catch(m){l&&(A=l(m)),f=!0,u=m.message}if(A&&(p=i(A),!wOe(p)))return A;if(p&&(f=SOe(p),u=`Cache service responded with ${p}`),b(`${s} - Attempt ${d} of ${a} failed with error: ${u}`),!f){b(`${s} - Error is not retryable`);break}yield NOe(c),d++}throw Error(`${s} failed: ${u}`)})}o(KZ,"retry");function Dm(t,e){return Eb(this,arguments,void 0,function*(r,s,n=HC,i=VC){return yield KZ(r,s,a=>a.statusCode,n,i,a=>{if(a instanceof Fi)return{statusCode:a.statusCode,result:null,headers:{},error:a}})})}o(Dm,"retryTypedResponse");function vA(t,e){return Eb(this,arguments,void 0,function*(r,s,n=HC,i=VC){return yield KZ(r,s,a=>a.message.statusCode,n,i)})}o(vA,"retryHttpClientResponse");var xn=function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(a){a(i)})}return o(n,"adopt"),new(r||(r=Promise))(function(i,a){function c(d){try{u(s.next(d))}catch(A){a(A)}}o(c,"fulfilled");function l(d){try{u(s.throw(d))}catch(A){a(A)}}o(l,"rejected");function u(d){d.done?i(d.value):n(d.value).then(c,l)}o(u,"step"),u((s=s.apply(t,e||[])).next())})};function xOe(t,e){return xn(this,void 0,void 0,function*(){yield e7.promisify(ZZ.pipeline)(t.message,e)})}o(xOe,"pipeResponseToStream");var Cb=class{static{o(this,"DownloadProgress")}constructor(e){this.contentLength=e,this.segmentIndex=0,this.segmentSize=0,this.segmentOffset=0,this.receivedBytes=0,this.displayedComplete=!1,this.startTime=Date.now()}nextSegment(e){this.segmentOffset=this.segmentOffset+this.segmentSize,this.segmentIndex=this.segmentIndex+1,this.segmentSize=e,this.receivedBytes=0,b(`Downloading segment at offset ${this.segmentOffset} with length ${this.segmentSize}...`)}setReceivedBytes(e){this.received
Line truncated
|
||||
Other caches with similar key:`);for(let c of i?.artifactCaches||[])b(`Cache Key: ${c?.cacheKey}, Cache Version: ${c?.cacheVersion}, Cache Scope: ${c?.scope}, Cache Created: ${c?.creationTime}`)}}})}o(kOe,"printCachesListForDiagnostics");function tM(t,e,r){return ps(this,void 0,void 0,function*(){let s=new u7.URL(t),n=n7(r);s.hostname.endsWith(".blob.core.windows.net")?n.useAzureSdk?yield r7(t,e,n):n.concurrentBlobDownloads?yield t7(t,e,n):yield Ib(t,e):yield Ib(t,e)})}o(tM,"downloadCache");function A7(t,e,r){return ps(this,void 0,void 0,function*(){let s=eM(),n=tA(e,r?.compressionMethod,r?.enableCrossOsArchive),i={key:t,version:n,cacheSize:r?.cacheSize};return yield Dm("reserveCache",()=>ps(this,void 0,void 0,function*(){return s.postJson(Mm("caches"),i)}))})}o(A7,"reserveCache");function l7(t,e){return`bytes ${t}-${e}/*`}o(l7,"getContentRange");function DOe(t,e,r,s,n){return ps(this,void 0,void 0,function*(){b(`Uploading chunk of size ${n-s+1} bytes at offset ${s} with content range: ${l7(s,n)}`);let i={"Content-Type":"application/octet-stream","Content-Range":l7(s,n)},a=yield vA(`uploadChunk (start: ${s}, end: ${n})`,()=>ps(this,void 0,void 0,function*(){return t.sendStream("PATCH",e,r(),i)}));if(!yb(a.message.statusCode))throw new Error(`Cache service responded with ${a.message.statusCode} during upload chunk.`)})}o(DOe,"uploadChunk");function OOe(t,e,r,s){return ps(this,void 0,void 0,function*(){let n=Li(r),i=Mm(`caches/${e.toString()}`),a=PA.openSync(r,"r"),c=XO(s),l=xv("uploadConcurrency",c.uploadConcurrency),u=xv("uploadChunkSize",c.uploadChunkSize),d=[...new Array(l).keys()];b("Awaiting all uploads");let A=0;try{yield Promise.all(d.map(()=>ps(this,void 0,void 0,function*(){for(;A<n;){let p=Math.min(n-A,u),f=A,m=A+p-1;A+=u,yield DOe(t,i,()=>PA.createReadStream(r,{fd:a,start:f,end:m,autoClose:!1}).on("error",g=>{throw new Error(`Cache upload failed because file read failed with ${g.message}`)}),f,m)}})))}finally{PA.closeSync(a)}})}o(OOe,"uploadFile");function MOe(t,e,r){return ps(this,void 0,void 0,function*(){let s={size:r};return yield Dm("commitCache",()=>ps(this,void 0,void 0,function*(){return t.postJson(Mm(`caches/${e.toString()}`),s)}))})}o(MOe,"commitCache");function rM(t,e,r,s){return ps(this,void 0,void 0,function*(){if(XO(s).useAzureSdk){if(!r)throw new Error("Azure Storage SDK can only be used when a signed URL is provided.");yield jZ(r,e,s)}else{let i=eM();b("Upload cache"),yield OOe(i,t,e,s),b("Commiting cache");let a=Li(e);S(`Cache Size: ~${Math.round(a/(1024*1024))} MB (${a} B)`);let c=yield MOe(i,t,a);if(!yb(c.statusCode))throw new Error(`Cache service responded with ${c.statusCode} during commit cache.`);S("Cache saved successfully")}})}o(rM,"saveCache");var oee=w(Z7(),1),Ot=w(Dt(),1),js=w(Dt(),1),Au=w(Dt(),1),pu=w(Dt(),1),fu=w(Dt(),1);var jM=w(Dt(),1),KM=w(Dt(),1),see=w(Dt(),1),nee=w(Dt(),1),iee=w(Dt(),1);var YM=w(Dt(),1),$M=w(Dt(),1),eee=w(Dt(),1),tee=w(Dt(),1),ree=w(Dt(),1);var WM=class extends ree.MessageType{static{o(this,"CacheScope$Type")}constructor(){super("github.actions.results.entities.v1.CacheScope",[{no:1,name:"scope",kind:"scalar",T:9},{no:2,name:"permission",kind:"scalar",T:3}])}create(e){let r={scope:"",permission:"0"};return globalThis.Object.defineProperty(r,tee.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,eee.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,s,n){let i=n??this.create(),a=e.pos+r;for(;e.pos<a;){let[c,l]=e.tag();switch(c){case 1:i.scope=e.string();break;case 2:i.permission=e.int64().toString();break;default:let u=s.readUnknownField;if(u==="throw")throw new globalThis.Error(`Unknown field ${c} (wire type ${l}) for ${this.typeName}`);let d=e.skip(l);u!==!1&&(u===!0?$M.UnknownFieldHandler.onRead:u)(this.typeName,i,c,l,d)}}return i}internalBinaryWrite(e,r,s){e.scope!==""&&r.tag(1,YM.WireType.LengthDelimited).string(e.scope),e.permission!=="0"&&r.tag(2,YM.WireType.Varint).int64(e.permission);let n=s.writeUnknownFields;return n!==!1&&(n==!0?$M.UnknownFieldHandler.onWrite:n)(this.typeName,e,r),r}},cw=new WM;var XM=class extends iee.MessageType{static{o(this,"CacheMetadata$Type")}constructor(){super("github.actions.results.entities.v1.CacheMetadata",[{no:1,name:"repository_id",kind:"scalar",T:3},{no:2,name:"scope",kind:"message",repeat:1,T:o(()=>cw,"T")}])}create(e){let r={repositoryId:"0",scope:[]};return globalThis.Object.defineProperty(r,nee.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,see.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,s,n){let i=n??this.create(),a=e.pos+r;for(;e.pos<a;){let[c,l]=e.tag();switch(c){case 1:i.repositoryId=e.int64().toString();break;case 2:i.scope.push(cw.internalBinaryRead(e,e.uint32(),s));break;default:let u=s.readUnknownField;if(u==="throw")throw new globalThis.Error(`Unknown field ${c} (wire type ${l}) for ${this.typeName}`);let d=e.skip(l);u!==!1&&(u===!0?KM.UnknownFieldHandler.onRead:u)(this.typeName,i,c,l,d)}}return i}internalBinaryWrite(e,r,s){e.repositoryId!=="0"&&r.tag(1
Line truncated
|
||||
`));let s=yield pL(r,"create");yield fL(s,t)})}o(mL,"createTar");var WA=function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(a){a(i)})}return o(n,"adopt"),new(r||(r=Promise))(function(i,a){function c(d){try{u(s.next(d))}catch(A){a(A)}}o(c,"fulfilled");function l(d){try{u(s.throw(d))}catch(A){a(A)}}o(l,"rejected");function u(d){d.done?i(d.value):n(d.value).then(c,l)}o(u,"step"),u((s=s.apply(t,e||[])).next())})},pi=class t extends Error{static{o(this,"ValidationError")}constructor(e){super(e),this.name="ValidationError",Object.setPrototypeOf(this,t.prototype)}},hu=class t extends Error{static{o(this,"ReserveCacheError")}constructor(e){super(e),this.name="ReserveCacheError",Object.setPrototypeOf(this,t.prototype)}},gL="cache write denied:",$A=class t extends hu{static{o(this,"CacheWriteDeniedError")}constructor(e){super(e),this.name="CacheWriteDeniedError",Object.setPrototypeOf(this,t.prototype)}},Aw=class t extends Error{static{o(this,"FinalizeCacheError")}constructor(e){super(e),this.name="FinalizeCacheError",Object.setPrototypeOf(this,t.prototype)}};function uee(t){if(!t||t.length===0)throw new pi("Path Validation Error: At least one directory or file path is required")}o(uee,"checkPaths");function EL(t){if(t.length>512)throw new pi(`Key Validation Error: ${t} cannot be larger than 512 characters.`);if(!/^[^,]*$/.test(t))throw new pi(`Key Validation Error: ${t} cannot contain commas.`)}o(EL,"checkKey");function yL(){return Om()==="v2"?!!process.env.ACTIONS_RESULTS_URL:!!process.env.ACTIONS_CACHE_URL}o(yL,"isFeatureAvailable");function dee(t,e,r,s){return WA(this,arguments,void 0,function*(n,i,a,c,l=!1){let u=Om();return b(`Cache service version: ${u}`),uee(n),u==="v2"?yield XLe(n,i,a,c,l):yield KLe(n,i,a,c,l)})}o(dee,"restoreCache");function KLe(t,e,r,s){return WA(this,arguments,void 0,function*(n,i,a,c,l=!1){a=a||[];let u=[i,...a];if(b("Resolved Keys:"),b(JSON.stringify(u)),u.length>10)throw new pi("Key Validation Error: Keys are limited to a maximum of 10.");for(let p of u)EL(p);let d=yield Dh(),A="";try{let p=yield d7(u,n,{compressionMethod:d,enableCrossOsArchive:l});if(!p?.archiveLocation)return;if(c?.lookupOnly)return S("Lookup only - skipping download"),p.cacheKey;A=Zm.join(yield _h(),pc(d)),b(`Archive Path: ${A}`),yield tM(p.archiveLocation,A,c),Rl()&&(yield Xm(A,d));let f=Li(A);return S(`Cache Size: ~${Math.round(f/(1024*1024))} MB (${f} B)`),yield hL(A,d),S("Cache restored successfully"),p.cacheKey}catch(p){let f=p;if(f.name===pi.name)throw p;f instanceof Fi&&typeof f.statusCode=="number"&&f.statusCode>=500?Vd(`Failed to restore: ${p.message}`):et(`Failed to restore: ${p.message}`)}finally{try{yield kh(A)}catch(p){b(`Failed to delete archive: ${p}`)}}})}o(KLe,"restoreCacheV1");function XLe(t,e,r,s){return WA(this,arguments,void 0,function*(n,i,a,c,l=!1){c=Object.assign(Object.assign({},c),{useAzureSdk:!0}),a=a||[];let u=[i,...a];if(b("Resolved Keys:"),b(JSON.stringify(u)),u.length>10)throw new pi("Key Validation Error: Keys are limited to a maximum of 10.");for(let A of u)EL(A);let d="";try{let A=AL(),p=yield Dh(),f={key:i,restoreKeys:a,version:tA(n,p,l)},m=yield A.GetCacheEntryDownloadURL(f);if(!m.ok){b(`Cache not found for version ${f.version} of keys: ${u.join(", ")}`);return}if(f.key!==m.matchedKey?S(`Cache hit for restore-key: ${m.matchedKey}`):S(`Cache hit for: ${m.matchedKey}`),c?.lookupOnly)return S("Lookup only - skipping download"),m.matchedKey;d=Zm.join(yield _h(),pc(p)),b(`Archive path: ${d}`),b(`Starting download of archive to: ${d}`),yield tM(m.signedDownloadUrl,d,c);let y=Li(d);return S(`Cache Size: ~${Math.round(y/(1024*1024))} MB (${y} B)`),Rl()&&(yield Xm(d,p)),yield hL(d,p),S("Cache restored successfully"),m.matchedKey}catch(A){let p=A;if(p.name===pi.name)throw A;p instanceof Fi&&typeof p.statusCode=="number"&&p.statusCode>=500?Vd(`Failed to restore: ${A.message}`):et(`Failed to restore: ${A.message}`)}finally{try{d&&(yield kh(d))}catch(A){b(`Failed to delete archive: ${A}`)}}})}o(XLe,"restoreCacheV2");function CL(t,e,r){return WA(this,arguments,void 0,function*(s,n,i,a=!1){let c=Om();return b(`Cache service version: ${c}`),uee(s),EL(n),c==="v2"?yield eFe(s,n,i,a):yield ZLe(s,n,i,a)})}o(CL,"saveCache");function ZLe(t,e,r){return WA(this,arguments,void 0,function*(s,n,i,a=!1){var c,l,u,d,A,p;let f=yield Dh(),m=-1,g=yield Nv(s);if(b("Cache Paths:"),b(`${JSON.stringify(g)}`),g.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 y=yield _h(),E=Zm.join(y,pc(f));b(`Archive Path: ${E}`);try{yield mL(y,g,f),Rl()&&(yield Xm(E,f));let C=10*1024*1024*1024,I=Li(E);if(b(`File Size: ${I}`),I>C&&!ZO())throw new Error(`Cache size of ~${Math.round(I/(1024*1024))} MB (${I} B) is over the 10GB limit, not saving cache.`);b("Reserving Cache");let B=yield A7(n,s,{compressionMethod:f,enableCrossOsArchive:a,cacheSize:I});if(!((c=B?.result)===null||c===void 0)&&c.cacheId)m=(l=B?.result)===
Line truncated
|
||||
`,a).length:A,u?(c===null?0:c.length)+l.length:0,u?l.length+A:0);return p<f},"__needMoreData"),parse:o(function(s,n,i,a){let{bom:c,comment_no_infix:l,delimiter_auto:u,encoding:d,from_line:A,ltrim:p,max_record_size:f,raw:m,relax_quotes:g,rtrim:y,skip_empty_lines:E,to:C,to_line:I}=this.options,{comment:B,escape:N,quote:Q,record_delimiter:D}=this.options,{bomSkipped:le,delimiterDiscovered:Se,delimiterBufPrevious:Re,rawBuffer:Oe,escapeIsQuote:me}=this.state;if(!Se&&u){let Me;if(Re===void 0?Me=s:Re!==void 0&&s===void 0?Me=Re:Me=Buffer.concat([Re,s]),s=void 0,n||Me.length>u.size)this.options.delimiter=[Buffer.from(Qre(Me,this.options.delimiter_auto))],this.state.previousBuf=Me,this.state.delimiterBufPrevious=void 0,this.state.delimiterDiscovered=!0;else{this.state.delimiterBufPrevious=Me;return}}let{previousBuf:Je}=this.state,ue;if(Je===void 0)if(s===void 0){a();return}else ue=s;else Je!==void 0&&s===void 0?ue=Je:ue=Buffer.concat([Je,s]);if(le===!1)if(c===!1)this.state.bomSkipped=!0;else if(ue.length<3){if(n===!1){this.state.previousBuf=ue;return}}else{for(let Me in lp)if(lp[Me].compare(ue,0,lp[Me].length)===0){let Ci=lp[Me].length;this.state.bufBytesStart+=Ci,ue=ue.slice(Ci);let La=cp({...this.original_options,encoding:Me});for(let gt in La)this.options[gt]=La[gt];({comment:B,escape:N,quote:Q}=this.options);break}this.state.bomSkipped=!0}let vr=ue.length,J;for(J=0;J<vr&&!this.__needMoreData(J,vr,n);J++){if(this.state.wasRowDelimiter===!0&&(this.info.lines++,this.state.wasRowDelimiter=!1),I!==-1&&this.info.lines>I){this.state.stop=!0,a();return}this.state.quoting===!1&&D.length===0&&this.__autoDiscoverRecordDelimiter(ue,J)&&(D=this.options.record_delimiter);let Me=ue[J];if(m===!0&&Oe.append(Me),(Me===h2e||Me===m2e)&&this.state.wasRowDelimiter===!1&&(this.state.wasRowDelimiter=!0),this.state.escaping===!0)this.state.escaping=!1;else{if(N!==null&&this.state.quoting===!0&&this.__isEscape(ue,J,Me)&&J+N.length<vr)if(me){if(this.__isQuote(ue,J+N.length)){this.state.escaping=!0,J+=N.length-1;continue}}else{this.state.escaping=!0,J+=N.length-1;continue}if(this.state.commenting===!1&&this.__isQuote(ue,J))if(this.state.quoting===!0){let gt=ue[J+Q.length],Ii=y&&this.__isCharTrimable(ue,J+Q.length),ws=B!==null&&this.__compareBytes(B,ue,J+Q.length,gt),Zc=this.__isDelimiter(ue,J+Q.length,gt),nE=D.length===0?this.__autoDiscoverRecordDelimiter(ue,J+Q.length):this.__isRecordDelimiter(gt,ue,J+Q.length);if(N!==null&&this.__isEscape(ue,J,Me)&&this.__isQuote(ue,J+N.length))J+=N.length-1;else if(!gt||Zc||nE||ws||Ii){this.state.quoting=!1,this.state.wasQuoting=!0,J+=Q.length-1;continue}else if(g===!1){let j2=this.__error(new Be("CSV_INVALID_CLOSING_QUOTE",["Invalid Closing Quote:",`got "${String.fromCharCode(gt)}"`,`at line ${this.info.lines}`,"instead of delimiter, record delimiter, trimable character","(if activated) or comment"],this.options,this.__infoField()));if(j2!==void 0)return j2}else this.state.quoting=!1,this.state.wasQuoting=!0,this.state.field.prepend(Q),J+=Q.length-1}else if(this.state.field.length!==0){if(g===!1){let gt=this.__infoField(),Ii=Object.keys(lp).map(Zc=>lp[Zc].equals(this.state.field.toString())?Zc:!1).filter(Boolean)[0],ws=this.__error(new Be("INVALID_OPENING_QUOTE",["Invalid Opening Quote:",`a quote is found on field ${JSON.stringify(gt.column)} at line ${gt.lines}, value is ${JSON.stringify(this.state.field.toString(d))}`,Ii?`(${Ii} bom)`:void 0],this.options,gt,{field:this.state.field}));if(ws!==void 0)return ws}}else{this.state.quoting=!0,J+=Q.length-1;continue}if(this.state.quoting===!1){let gt=this.__isRecordDelimiter(Me,ue,J);if(gt!==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)>=A){this.state.enabled=!0,this.__resetField(),this.__resetRecord(),J+=gt-1;continue}if(E===!0&&this.state.wasQuoting===!1&&this.state.record.length===0&&this.state.field.length===0){this.info.empty_lines++,J+=gt-1;continue}this.info.bytes=this.state.bufBytesStart+J;let Zc=this.__onField();if(Zc!==void 0)return Zc;this.info.bytes=this.state.bufBytesStart+J+gt;let nE=this.__onRecord(i);if(nE!==void 0)return nE;if(C!==-1&&this.info.records>=C){this.state.stop=!0,a();return}}this.state.commenting=!1,J+=gt-1;continue}if(this.state.commenting)continue;if(B!==null&&(l===!1||this.state.record.length===0&&this.state.field.length===0)&&this.__compareBytes(B,ue,J,Me)!==0){this.state.commenting=!0;continue}let Ii=this.__isDelimiter(ue,J,Me);if(Ii!==0){this.info.bytes=this.state.bufBytesStart+J;let ws=this.__onField();if(ws!==void 0)return ws;J+=Ii-1;continue}}}if(this.state.commenting===!1&&f!==0&&this.state.record_length+this.state.field.length>f)return this.__error(new Be("CSV_MAX_RECORD_SIZE",["Max Record Size:","record exceed the maximum number of tolerated bytes",`of ${f}`,`at line ${this.info.lines}`],this.options,this.__infoField()));let Ci=p===!1||th
Line truncated
|
||||
`,i),Buffer.from(`
|
||||
`,i),Buffer.from("\r",i)];e:for(let c=0;c<a.length;c++){let l=a[c].length;for(let u=0;u<l;u++)if(a[c][u]!==s[n+u])continue e;return this.options.record_delimiter.push(a[c]),this.state.recordDelimiterMaxLength=a[c].length,a[c].length}return 0},"__autoDiscoverRecordDelimiter"),__error:o(function(s){let{encoding:n,raw:i,skip_records_with_error:a}=this.options,c=typeof s=="string"?new Error(s):s;if(a){if(this.state.recordHasError=!0,this.options.on_skip!==void 0)try{this.options.on_skip(c,i?this.state.rawBuffer.toString(n):void 0)}catch(l){return l}return}else return c},"__error"),__infoDataSet:o(function(){return{...this.info,columns:this.options.columns}},"__infoDataSet"),__infoRecord:o(function(){let{columns:s,raw:n,encoding:i}=this.options;return{...this.__infoDataSet(),bytes_records:this.info.bytes,error:this.state.error,header:s===!0,index:this.state.record.length,raw:n?this.state.rawBuffer.toString(i):void 0}},"__infoRecord"),__infoField:o(function(){let{columns:s}=this.options,n=Array.isArray(s),i=this.info.bytes_records;return{...this.__infoRecord(),bytes_records:i,column:n===!0?s.length>this.state.record.length?s[this.state.record.length].name:null:this.state.record.length,quoting:this.state.wasQuoting}},"__infoField")}},"transform");var tn=o(function(t,e={}){typeof t=="string"&&(t=Buffer.from(t));let r=e&&e.objname?Object.create(null):[],s=e0(e),n=o(c=>{s.options.objname===void 0?r.push(c):r[c[0]]=c[1]},"push"),i=o(()=>{},"close"),a=s.parse(t,!0,n,i);if(a!==void 0)throw a;return r},"parse");var nt=class t{static{o(this,"Util")}static getInputList(e,r){return this.getList(ac(e,{trimWhitespace:r?.trimWhitespace!==!1}),r)}static getList(e,r){let s=[];if(e=="")return s;let n=tn(e,{columns:!1,relaxQuotes:!0,comment:r?.comment,comment_no_infix:r?.commentNoInfix,relaxColumnCount:!0,skipEmptyLines:!0,quote:r?.quote});for(let i of n)i.length==1?r?.ignoreComma?s.push(i[0]):s.push(...i[0].split(",")):r?.ignoreComma?s.push(i.join(",")):s.push(...i);return s.filter(i=>i).map(i=>r?.trimWhitespace===!1?i:i.trim())}static getInputNumber(e){let r=ac(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 fr("powershell",!0),n=e.replace(/'/g,"''").replace(/"|\n|\r/g,""),i=[];if(r)for(let a in r)i.push(`-${a} '${r[a].replace(/'/g,"''").replace(/"|\n|\r/g,"")}'`);return{command:`"${s}"`,args:["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",`& '${n}' ${i.join(" ")}`]}}static isDirectory(e){try{return Tre.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 bF.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"],n=Math.floor(Math.log(e)/Math.log(r));return parseFloat((e/Math.pow(r,n)).toFixed(2))+" "+s[n]}static generateRandomString(e=10){return bF.default.randomBytes(Math.ceil(e/2)).toString("hex").slice(0,e)}static compileHandlebars(e,r,s){return vre.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=hg.default.resolve(e);return hg.default.resolve(r).startsWith(s.endsWith(hg.default.sep)?s:`${s}${hg.default.sep}`)}static formatDuration(e){if(e===0)return"0s";let r=Math.floor(e/1e9),s=Math.floor(r/3600),n=Math.floor(r%3600/60),i=r%60,a=[];return s&&a.push(`${s}h`),n&&a.push(`${n}m`),(i||a.length===0)&&a.push(`${i}s`),a.join("")}};var tr=class t{static{o(this,"Docker")}static get configDir(){return process.env.DOCKER_CONFIG||mg.default.join(Pre.default.homedir(),".docker")}static configFile(){let e=mg.default.join(t.configDir,"config.json");if(wF.default.existsSync(e))return JSON.parse(wF.default.readFileSync(e,{encoding:"utf-8"}))}static async isAvailable(){return await fr("docker",!0).then(e=>(b(`Docker.isAvailable ok: ${e}`),!0)).catch(e=>(b(`Docker.isAvailable error: ${e}`),!1))}static async isDaemonRunning(){try{return await t.getExecOutput(["version"],{silent:!0}),!0}ca
Line truncated
|
||||
`+t.errors.map(e=>` - ${e.message}`).join(`
|
||||
`)}o(pnt,"_buildMessageForResponseErrors");var Ant=class extends Error{static{o(this,"GraphqlResponseError")}constructor(t,e,r){super(pnt(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},mnt=["method","baseUrl","url","headers","request","query","mediaType","operationName"],gnt=["query","method","url"],$ge=/\/api\/v3\/?$/;function ynt(t,e,r){if(r){if(typeof e=="string"&&"query"in r)return Promise.reject(new Error('[@octokit/graphql] "query" cannot be used as variable name'));for(let a in r)if(gnt.includes(a))return Promise.reject(new Error(`[@octokit/graphql] "${a}" cannot be used as variable name`))}let s=typeof e=="string"?Object.assign({query:e},r):e,i=Object.keys(s).reduce((a,c)=>mnt.includes(c)?(a[c]=s[c],a):(a.variables||(a.variables={}),a.variables[c]=s[c],a),{}),n=s.baseUrl||t.endpoint.DEFAULTS.baseUrl;return $ge.test(n)&&(i.url=n.replace($ge,"/api/graphql")),t(i).then(a=>{if(a.data.errors){let c={};for(let l of Object.keys(a.headers))c[l]=a.headers[l];throw new Ant(i,c,a.data)}return a.data.data})}o(ynt,"graphql");function sV(t,e){let r=t.defaults(e);return Object.assign(o((i,n)=>ynt(r,i,n),"newApi"),{defaults:sV.bind(null,r),endpoint:r.endpoint})}o(sV,"withDefaults");var Wrr=sV(G0,{headers:{"user-agent":`octokit-graphql.js/${fnt} ${cd()}`},method:"POST",url:"/graphql"});function jge(t){return sV(t,{method:"POST",url:"/graphql"})}o(jge,"withCustomRequest");var iV="(?:[a-zA-Z0-9_-]+)",Jge="\\.",Yge=new RegExp(`^${iV}${Jge}${iV}${Jge}${iV}$`),Ent=Yge.test.bind(Yge);async function Cnt(t){let e=Ent(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"}}o(Cnt,"auth");function Int(t){return t.split(/\./).length===3?`bearer ${t}`:`token ${t}`}o(Int,"withAuthorizationPrefix");async function bnt(t,e,r,s){let i=e.endpoint.merge(r,s);return i.headers.authorization=Int(t),e(i)}o(bnt,"hook");var Wge=o(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(Cnt.bind(null,e),{hook:bnt.bind(null,e)})},"createTokenAuth2");var nV="7.0.6";var Kge=o(()=>{},"noop"),wnt=console.warn.bind(console),Bnt=console.error.bind(console);function Snt(t={}){return typeof t.debug!="function"&&(t.debug=Kge),typeof t.info!="function"&&(t.info=Kge),typeof t.warn!="function"&&(t.warn=wnt),typeof t.error!="function"&&(t.error=Bnt),t}o(Snt,"createLogger");var Xge=`octokit-core.js/${nV} ${cd()}`,XT=class{static{o(this,"Octokit")}static VERSION=nV;static defaults(e){return class extends this{static{o(this,"OctokitWithDefaults")}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{o(this,"NewOctokit")}static plugins=r.concat(e.filter(i=>!r.includes(i)))}}constructor(e={}){let r=new Nge.Collection,s={baseUrl:G0.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} ${Xge}`:Xge,e.baseUrl&&(s.baseUrl=e.baseUrl),e.previews&&(s.mediaType.previews=e.previews),e.timeZone&&(s.headers["time-zone"]=e.timeZone),this.request=G0.defaults(s),this.graphql=jge(this.request).defaults(s),this.log=Snt(e.log),this.hook=r,e.authStrategy){let{authStrategy:n,...a}=e,c=n(Object.assign({request:this.request,log:this.log,octokit:this,octokitOptions:a},e.auth));r.wrap("request",c.hook),this.auth=c}else if(!e.auth)this.auth=async()=>({type:"unauthenticated"});else{let n=Wge(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 oV="17.0.0";var xnt={actions:{addCustomLabelsToSelfHostedRunnerForOrg:["POST /orgs/{org}/actions/runners/{runner_id}/labels"],addCustomLabelsToSelfHostedRunnerForRepo:["POST /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],addRepoAccessToSelfHostedRunnerGroupInOrg:["PUT /orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/{repository_id}"],addSelectedRepoToOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}"],addSelectedRepoToOrgVariable:["PUT /orgs/{org}/actions/variables/{name}/repositories/{repository_id}"],approveWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/approve"],cancelWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/cancel"],createEnvironmentVariable:["POST /repos/{owner}/{repo}/environments/{environment_name}/variables"
Line truncated
|
||||
More info: ${l.url}`);let p=l.range&&l.range.length>0?l.range[0]?.start.line:void 0,A=!1;for(let g of a)if(g.remote||g.path.endsWith(u)&&g.content===h){c.push({title:d,message:f,file:g.path,startLine:p}),A=!0;break}A||Q(`Buildx.convertWarningsToGitHubAnnotations: skipping warning without matching Dockerfile ${u}: ${d}`)}return c}};var Cp=M(require("fs"),1),MV=M(require("path"),1);var A_=class t{static{o(this,"Build")}buildx;iidFilename;metadataFilename;constructor(e){this.buildx=e?.buildx||new zt,this.iidFilename=`build-iidfile-${Zt.generateRandomString()}.txt`,this.metadataFilename=`build-metadata-${Zt.generateRandomString()}.json`}async gitContext(e){let r=new Set(["ref","checksum","subdir"]),s=e?.attrs||{},i=Object.entries(s).filter(([p])=>!r.has(p)),n=Zt.parseBoolOrDefault(s["fetch-by-commit"]),a=e?.ref||s.ref||Ti.ref;a.startsWith("refs/")?a.startsWith("refs/pull/")&&Zt.parseBoolOrDefault(process.env.DOCKER_DEFAULT_GIT_CONTEXT_PR_HEAD_REF)&&(a=a.replace(/\/merge$/g,"/head")):a=`refs/heads/${a}`;let c=`${Qt.serverURL}/${Ti.repo.owner}/${Ti.repo.repo}.git`,l=e?.checksum||s.checksum,u=e?.subdir||s.subdir,h=e?.format;if(!h){if(h="fragment",i.length>0)h="query";else if(Zt.parseBoolOrDefault(process.env.BUILDX_SEND_GIT_QUERY_AS_INPUT))try{await this.buildx.versionSatisfies(">=0.29.0")&&(h="query")}catch{}}let d=Ti.sha||a;a.startsWith("refs/pull/")&&a.endsWith("/head")&&(d=typeof Ti.payload.pull_request?.head?.sha=="string"?Ti.payload.pull_request.head.sha:a);let f=l||d;if(h==="query"){let p=[`ref=${n||l?a:f}`],A=n?f:l;A&&p.push(`checksum=${A}`),u&&u!=="."&&p.push(`subdir=${u}`);for(let[g,C]of i)p.push(`${g}=${C}`);return`${c}?${p.join("&")}`}return`${c}#${f}${u&&u!=="."?`:${u}`:""}`}getImageIDFilePath(){return MV.default.join(Et.tmpDir(),this.iidFilename)}resolveImageID(){let e=this.getImageIDFilePath();if(Cp.default.existsSync(e))return Cp.default.readFileSync(e,{encoding:"utf-8"}).trim()}getMetadataFilePath(){return MV.default.join(Et.tmpDir(),this.metadataFilename)}resolveMetadata(){let e=this.getMetadataFilePath();if(!Cp.default.existsSync(e))return;let r=Cp.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(!Cp.default.existsSync(i))throw new Error(`secret file ${i} not found`);return[s,i]}let n=Et.tmpName({tmpdir:Et.tmpDir()});return Cp.default.writeFileSync(n,i),[s,n]}static getProvenanceInput(e){let r=kh(e);if(!r)return r;try{return WS(e)?`builder-id=${Qt.workflowRunURL(!0)}`:"false"}catch{return t.resolveProvenanceAttrs(r)}}static resolveProvenanceAttrs(e){if(!e)return`builder-id=${Qt.workflowRunURL(!0)}`;let r=io(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=${Qt.workflowRunURL(!0)}`}static resolveCacheToAttrs(e,r){if(!e)return e;let s="registry",i="",n="",a=io(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0];for(let c of a){let l=c.toString().split(/(?<=^[^=]+?)=/).map(u=>u.trim());l[0]==="type"?s=l[1]:l[0]==="repository"?i=l[1]:l[0]==="ghtoken"&&(n=l[1])}return s==="gha"&&(i||(e=`${e},repository=${Qt.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=io(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,a]of i.map(c=>c.split("=").map(l=>l.trim())))if(n=="type"&&a==e)return!0}return!1}static hasAttestationType(e,r){let s=io(r,{delimiter:",",trim:!0,columns:!1,relaxColumnCount:!0});for(let i of s)for(let[n,a]of i.map(c=>c.split("=").map(l=>l.trim())))if(n=="type"&&a==e)return!0;return!1}static resolveAttestationAttrs(e){let r=io(e,{delimiter:",",trim:!0,columns:!1,relaxColumnCount:!0}),s=[];for(let i of r)for(let n of i)try{let a=Zt.parseBool(n);s.push(`disabled=${!a}`)}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&&uc(n),[i,n]}};var LV=M(require("fs"),1),XEe=M(require("path"),1);var m_=class t{static{o(this,"Bake")}buildx;metadataFilename;constructor(e){this.buildx=e?.buildx||new zt,this.metadataFilename=`bake-metadata-${Zt.generateRandomString()}.json`}getMetadataFilePath(){return XEe.default.join(Et.tmpDir(),this.metadataFilename)}resolveMetadata(){let e=this.getMetadataFilePath();if(!LV.default.existsSync(e))return;let r=LV.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=[],a=[...e.files||[],e.source];if(a){for(let l of a.map(u=>u?u.trim():""))if(l.length!=0){if(!Zt.isValidRef(l)){n.push(l);continue}if(i)throw new Error("Only one remote bake definition can be defined");i=l}}i&&s.push(i);for(let l of n)s.push("--file",l);if(e.overrides)for(let l of e.overrides)s.push("--set",l);if(e.vars)for(let l of e.vars)s.push("--var",l);if(e.allow)for(let l of e.allow)s.push("--allow",l);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 c=await this.buildx.getCommand([...s,"--print",...e.targets||[]]);return await Me.getExecOutput(c.command,c.args,r).then(l=>{if(l.stderr.length>0&&l.exitCode!=0)throw new Error(`cannot parse bake definitions: ${l.stderr.match(/(.*)\s*$/)?.[0]?.trim()??"unknown error"}`);return t.parseDefinition(l.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=io(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0];for(let i of s){let[n,a]=i.toString().split(/(?<=^[^=]+?)=/).map(c=>c.trim());switch(n){case"type":r.type=a;break;case"disabled":r.disabled=Zt.parseBool(a);break;default:r[n]=a}}return r}static parseCacheEntry(e){if(typeof e!="string")return e;let r={type:""},s=io(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,a]=i.toString().split(/(?<=^[^=]+?)=/).map(c=>c.trim());n==="type"?r.type=a:r[n]=a}return r}static parseExportEntry(e){if(typeof e!="string")return e;let r={type:""},s=io(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,a]=i.toString().split(/(?<=^[^=]+?)=/).map(c=>c.trim());n==="type"?r.type=a:r[n]=a}return r}static parseSecretEntry(e){if(typeof e!="string")return e;let r={},s=io(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0],i="";for(let n of s){let[a,c]=n.toString().split(/(?<=^[^=]+?)=/).map(l=>l.trim());switch(a){case"type":i=c;break;case"id":r.id=c;break;case"source":case"src":r.src=c;break;case"env":r.env=c;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,
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"]);Q(`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 a=i.match(/^[^/]+\/[^/]+, (.+)$/);if(a)return`refs/heads/${a[1].trim()}`;let c=i.match(/^[^/]+\/(.+)$/);if(c)return`refs/heads/${c[1].trim()}`;throw new Error(`Unsupported detached HEAD ref in "${e}"`)}static async exec(e=[]){return await Me.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 W_e=require("crypto"),Tl=M(require("fs"),1),Hd=M(require("path"),1);var Fw=M(K0(),1),_l=M(uve(),1),K_e=M(HY(),1),AE=M(H_e(),1);var gW=M(K0(),1);var V_e=M(Ha(),1);var z_e="application/vnd.oci.empty.v1+json";var lh=class{static{o(this,"Cosign")}binPath;_version;_versionOnce;constructor(e){this.binPath=e?.binPath||"cosign",this._version="",this._versionOnce=!1}async isAvailable(){let e=await Me.getExecOutput(this.binPath,[],{ignoreReturnCode:!0,silent:!0}).then(r=>r.stderr.length>0&&r.exitCode!=0?(Q(`Cosign.isAvailable cmd err: ${r.stderr.trim()}`),!1):r.exitCode==0).catch(r=>(Q(`Cosign.isAvailable error: ${r}`),!1));return Q(`Cosign.isAvailable: ${e}`),e}async version(){return this._versionOnce?this._version:(this._versionOnce=!0,this._version=await Me.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 Me.exec(this.binPath,["version","--json"],{failOnStdErr:!1})}async versionSatisfies(e,r){let s=r??await this.version();if(!s)return Q("Cosign.versionSatisfies false: undefined version"),!1;let i=V_e.satisfies(s,e)||/^[0-9a-f]{7}$/.exec(s)!==null;return Q(`Cosign.versionSatisfies ${s} statisfies ${e}: ${i}`),i}static parseCommandOutput(e){let r,s,i,n;for(let a of e.split(/\r?\n/)){let c=a.trim();if(!c.startsWith("{")||!c.endsWith("}"))continue;let l;try{l=JSON.parse(c)}catch{continue}if(l&&Array.isArray(l.errors)&&l.errors.length>0&&(n=l.errors),!r&&l&&Array.isArray(l.manifests)&&l.manifests.length>0){let u=l.manifests[0];u?.artifactType===gW.BUNDLE_V03_MEDIA_TYPE&&typeof u.digest=="string"?r=u.digest:u?.artifactType===z_e&&typeof u.digest=="string"&&(s=u.digest)}if(!i&&l&&l.mediaType===gW.BUNDLE_V03_MEDIA_TYPE&&(i=l),i&&(r||s)){n=void 0;break}}return{bundle:i,signatureManifestDigest:r||s,errors:n}}};var yW=M(require("fs"),1);var BO=class t{static{o(this,"ImageTools")}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(a=>a.annotations?.["vnd.docker.reference.type"]==="attestation-manifest");if(!e.platform)return s;let i=e.platform,n=new Map;for(let a of r.manifests)a.digest&&n.set(a.digest,a);return s.filter(a=>{let c=a.annotations?.["vnd.docker.reference.digest"];if(!c)return!1;let l=n.get(c);return l?l.platform?.os===i.os&&l.platform?.architecture===i.architecture&&(l.platform?.variant??"")===(i.variant??""):!1})}async attestationDigests(e){return(await this.attestationDescriptors(e)).map(r=>r.digest)}async create(e){let r=[],s=Et.tmpName({tmpdir:Et.tmpDir(),template:"imagetools-metadata-XXXXXX"}),i=[],n=[];for(let c of e.sources){if(c.startsWith("cwd://")){let l=c.substring(6);l.length>0&&i.push(l);continue}n.push(c)}if(e.tags)for(let c of e.tags)r.push("--tag",c);if(e.platforms)for(let c of e.platforms)r.push("--platform",c);if(e.annotations)for(let c of e.annotations)r.push("--annotation",c);e.dryRun?r.push("--dry-run"):r.push("--metadata-file",s);for(let c of i)r.push("--file",c);for(let c of n)r.push(c);let a=await this.getCreateCommand(r);if(e.skipExec){V(`[command]${a.command} ${a.args.join(" ")}`),V("Skipped create command");return}return await Me.getExecOutput(a.command,a.args,{ignoreReturnCode:!0,silent:e.silent}).then(c=>{if(c.stderr.length>0&&c.exitCode!=0)throw new Error(c.stderr.trim());if(!e.dryRun){if(!yW.default.existsSync(s))return;let l=yW.default.readFileSync(s,{encoding:"utf-8"}).trim();if(l===""||l==="null")return;let u=JSON.parse(l),h=u["containerimage.descriptor"];return h?{digest:u["containerimage.digest"]||h.digest,descriptor:h,imageNames:u["image.name"]?u["image.name"].split(",").map(d=>d.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,a;for(let c=0;c<n;c++)try{return await this.execInspect(i.co
Line truncated
|
||||
${a.message}`),await new Promise(u=>setTimeout(u,Math.pow(2,c)*100))}throw a??new Error(`ImageTools inspect command failed for ${e.name}`)}async execInspect(e,r,s){return await Me.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 $_e="application/vnd.in-toto+json";var j_e="https://fulcio.sigstore.dev",J_e="https://rekor.sigstore.dev",Y_e="https://timestamp.sigstore.dev",mA="https://search.sigstore.dev";var kvt="slsaprovenance1",zd=class t{static{o(this,"Sigstore")}cosign;imageTools;constructor(e){this.cosign=e?.cosign||new lh,this.imageTools=e?.imageTools||new BO}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);V(`Using Sigstore signing endpoint: ${s.fulcioURL}`);let i=t.noTransparencyLog(e.noTransparencyLog),n=[];await this.cosign.versionSatisfies(">=3.0.4")?await Un("Creating Sigstore protobuf signing config",async()=>{let a=Et.tmpName({template:"signing-config-XXXXXX.json",tmpdir:Et.tmpDir()}),c=["signing-config","create","--with-default-services=true",`--out=${a}`];i&&c.push("--no-default-rekor=true"),await Me.exec(this.cosign.binPath,c,{env:Object.assign({},process.env,{COSIGN_EXPERIMENTAL:"1"})}),V(JSON.stringify(JSON.parse(Tl.default.readFileSync(a,{encoding:"utf-8"})),null,2)),n.push(`--signing-config=${a}`)}):(n.push("--use-signing-config"),i&&n.push("--tlog-upload=false"));for(let a of e.imageNames){let c=await this.imageTools.attestationDigests({name:`${a}@${e.imageDigest}`,retryOnManifestUnknown:e.retryOnManifestUnknown,retryLimit:e.retryLimit});for(let l of c){let u=`${a}@${l}`;await Un(`Signing attestation manifest ${u}`,async()=>{let h=["sign","--yes","--oidc-provider","github-actions","--registry-referrers-mode","oci-1-1","--new-bundle-format",...n];V(`[command]${this.cosign.binPath} ${[...h,u].join(" ")}`);let d=await Me.getExecOutput(this.cosign.binPath,["--verbose",...h,u],{ignoreReturnCode:!0,silent:!0,env:Object.assign({},process.env,{COSIGN_EXPERIMENTAL:"1"})}),f=lh.parseCommandOutput(d.stderr.trim());if(d.exitCode!=0)if(f.errors&&f.errors.length>0){let A=f.errors.map(g=>`- [${g.code}] ${g.message} : ${g.detail}`).join(`
|
||||
`)}o(tqe,"_buildMessageForResponseErrors");var rqe=class extends Error{static{o(this,"GraphqlResponseError")}constructor(t,e,r){super(tqe(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},sqe=["method","baseUrl","url","headers","request","query","mediaType","operationName"],nqe=["query","method","url"],fse=/\/api\/v3\/?$/;function iqe(t,e,r){if(r){if(typeof e=="string"&&"query"in r)return Promise.reject(new Error('[@octokit/graphql] "query" cannot be used as variable name'));for(let a in r)if(nqe.includes(a))return Promise.reject(new Error(`[@octokit/graphql] "${a}" cannot be used as variable name`))}let s=typeof e=="string"?Object.assign({query:e},r):e,n=Object.keys(s).reduce((a,c)=>sqe.includes(c)?(a[c]=s[c],a):(a.variables||(a.variables={}),a.variables[c]=s[c],a),{}),i=s.baseUrl||t.endpoint.DEFAULTS.baseUrl;return fse.test(i)&&(n.url=i.replace(fse,"/api/graphql")),t(n).then(a=>{if(a.data.errors){let c={};for(let l of Object.keys(a.headers))c[l]=a.headers[l];throw new rqe(n,c,a.data)}return a.data.data})}o(iqe,"graphql");function DF(t,e){let r=t.defaults(e);return Object.assign(o((n,i)=>iqe(r,n,i),"newApi"),{defaults:DF.bind(null,r),endpoint:r.endpoint})}o(DF,"withDefaults");var dNt=DF(Cg,{headers:{"user-agent":`octokit-graphql.js/${eqe} ${_c()}`},method:"POST",url:"/graphql"});function hse(t){return DF(t,{method:"POST",url:"/graphql"})}o(hse,"withCustomRequest");var OF="(?:[a-zA-Z0-9_-]+)",mse="\\.",gse=new RegExp(`^${OF}${mse}${OF}${mse}${OF}$`),oqe=gse.test.bind(gse);async function aqe(t){let e=oqe(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"}}o(aqe,"auth");function cqe(t){return t.split(/\./).length===3?`bearer ${t}`:`token ${t}`}o(cqe,"withAuthorizationPrefix");async function lqe(t,e,r,s){let n=e.endpoint.merge(r,s);return n.headers.authorization=cqe(t),e(n)}o(lqe,"hook");var Ese=o(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(aqe.bind(null,e),{hook:lqe.bind(null,e)})},"createTokenAuth2");var MF="7.0.6";var yse=o(()=>{},"noop"),uqe=console.warn.bind(console),dqe=console.error.bind(console);function Aqe(t={}){return typeof t.debug!="function"&&(t.debug=yse),typeof t.info!="function"&&(t.info=yse),typeof t.warn!="function"&&(t.warn=uqe),typeof t.error!="function"&&(t.error=dqe),t}o(Aqe,"createLogger");var Cse=`octokit-core.js/${MF} ${_c()}`,A0=class{static{o(this,"Octokit")}static VERSION=MF;static defaults(e){return class extends this{static{o(this,"OctokitWithDefaults")}constructor(...s){let n=s[0]||{};if(typeof e=="function"){super(e(n));return}super(Object.assign({},e,n,n.userAgent&&e.userAgent?{userAgent:`${n.userAgent} ${e.userAgent}`}:null))}}}static plugins=[];static plugin(...e){let r=this.plugins;return class extends this{static{o(this,"NewOctokit")}static plugins=r.concat(e.filter(n=>!r.includes(n)))}}constructor(e={}){let r=new Wre.Collection,s={baseUrl:Cg.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} ${Cse}`:Cse,e.baseUrl&&(s.baseUrl=e.baseUrl),e.previews&&(s.mediaType.previews=e.previews),e.timeZone&&(s.headers["time-zone"]=e.timeZone),this.request=Cg.defaults(s),this.graphql=hse(this.request).defaults(s),this.log=Aqe(e.log),this.hook=r,e.authStrategy){let{authStrategy:i,...a}=e,c=i(Object.assign({request:this.request,log:this.log,octokit:this,octokitOptions:a},e.auth));r.wrap("request",c.hook),this.auth=c}else if(!e.auth)this.auth=async()=>({type:"unauthenticated"});else{let i=Ese(e.auth);r.wrap("request",i.hook),this.auth=i}let n=this.constructor;for(let i=0;i<n.plugins.length;++i)Object.assign(this,n.plugins[i](this,e))}request;graphql;log;hook;auth};var LF="17.0.0";var pqe={actions:{addCustomLabelsToSelfHostedRunnerForOrg:["POST /orgs/{org}/actions/runners/{runner_id}/labels"],addCustomLabelsToSelfHostedRunnerForRepo:["POST /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],addRepoAccessToSelfHostedRunnerGroupInOrg:["PUT /orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/{repository_id}"],addSelectedRepoToOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}"],addSelectedRepoToOrgVariable:["PUT /orgs/{org}/actions/variables/{name}/repositories/{repository_id}"],approveWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/approve"],cancelWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/cancel"],createEnvironmentVariable:["POST /repos/{owner}/{repo}/environments/{environment_name}/variables"
Line truncated
|
||||
More info: ${l.url}`);let f=l.range&&l.range.length>0?l.range[0]?.start.line:void 0,m=!1;for(let g of a)if(g.remote||g.path.endsWith(u)&&g.content===d){c.push({title:A,message:p,file:g.path,startLine:f}),m=!0;break}m||b(`Buildx.convertWarningsToGitHubAnnotations: skipping warning without matching Dockerfile ${u}: ${A}`)}return c}};var Nu=w(require("fs"),1),h1=w(require("path"),1);var R0=class t{static{o(this,"Build")}buildx;iidFilename;metadataFilename;constructor(e){this.buildx=e?.buildx||new Ke,this.iidFilename=`build-iidfile-${nt.generateRandomString()}.txt`,this.metadataFilename=`build-metadata-${nt.generateRandomString()}.json`}async gitContext(e){let r=new Set(["ref","checksum","subdir"]),s=e?.attrs||{},n=Object.entries(s).filter(([f])=>!r.has(f)),i=nt.parseBoolOrDefault(s["fetch-by-commit"]),a=e?.ref||s.ref||Wr.ref;a.startsWith("refs/")?a.startsWith("refs/pull/")&&nt.parseBoolOrDefault(process.env.DOCKER_DEFAULT_GIT_CONTEXT_PR_HEAD_REF)&&(a=a.replace(/\/merge$/g,"/head")):a=`refs/heads/${a}`;let c=`${He.serverURL}/${Wr.repo.owner}/${Wr.repo.repo}.git`,l=e?.checksum||s.checksum,u=e?.subdir||s.subdir,d=e?.format;if(!d){if(d="fragment",n.length>0)d="query";else if(nt.parseBoolOrDefault(process.env.BUILDX_SEND_GIT_QUERY_AS_INPUT))try{await this.buildx.versionSatisfies(">=0.29.0")&&(d="query")}catch{}}let A=Wr.sha||a;a.startsWith("refs/pull/")&&a.endsWith("/head")&&(A=typeof Wr.payload.pull_request?.head?.sha=="string"?Wr.payload.pull_request.head.sha:a);let p=l||A;if(d==="query"){let f=[`ref=${i||l?a:p}`],m=i?p:l;m&&f.push(`checksum=${m}`),u&&u!=="."&&f.push(`subdir=${u}`);for(let[g,y]of n)f.push(`${g}=${y}`);return`${c}?${f.join("&")}`}return`${c}#${p}${u&&u!=="."?`:${u}`:""}`}getImageIDFilePath(){return h1.default.join(ve.tmpDir(),this.iidFilename)}resolveImageID(){let e=this.getImageIDFilePath();if(Nu.default.existsSync(e))return Nu.default.readFileSync(e,{encoding:"utf-8"}).trim()}getMetadataFilePath(){return h1.default.join(ve.tmpDir(),this.metadataFilename)}resolveMetadata(){let e=this.getMetadataFilePath();if(!Nu.default.existsSync(e))return;let r=Nu.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,n]=t.parseSecretKvp(e,r?.redact);if(r?.asFile){if(!Nu.default.existsSync(n))throw new Error(`secret file ${n} not found`);return[s,n]}let i=ve.tmpName({tmpdir:ve.tmpDir()});return Nu.default.writeFileSync(i,n),[s,i]}static getProvenanceInput(e){let r=ac(e);if(!r)return r;try{return cC(e)?`builder-id=${He.workflowRunURL(!0)}`:"false"}catch{return t.resolveProvenanceAttrs(r)}}static resolveProvenanceAttrs(e){if(!e)return`builder-id=${He.workflowRunURL(!0)}`;let r=tn(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0];for(let s of r)if(s.toString().split(/(?<=^[^=]+?)=/).map(i=>i.trim())[0]=="builder-id")return e;return`${e},builder-id=${He.workflowRunURL(!0)}`}static resolveCacheToAttrs(e,r){if(!e)return e;let s="registry",n="",i="",a=tn(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0];for(let c of a){let l=c.toString().split(/(?<=^[^=]+?)=/).map(u=>u.trim());l[0]==="type"?s=l[1]:l[0]==="repository"?n=l[1]:l[0]==="ghtoken"&&(i=l[1])}return s==="gha"&&(n||(e=`${e},repository=${He.repository}`),!i&&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=tn(r.join(`
|
||||
`),{delimiter:",",trim:!0,columns:!1,relaxColumnCount:!0});for(let n of s){if(n.length==1&&!n[0].startsWith("type="))return e=="local";for(let[i,a]of n.map(c=>c.split("=").map(l=>l.trim())))if(i=="type"&&a==e)return!0}return!1}static hasAttestationType(e,r){let s=tn(r,{delimiter:",",trim:!0,columns:!1,relaxColumnCount:!0});for(let n of s)for(let[i,a]of n.map(c=>c.split("=").map(l=>l.trim())))if(i=="type"&&a==e)return!0;return!1}static resolveAttestationAttrs(e){let r=tn(e,{delimiter:",",trim:!0,columns:!1,relaxColumnCount:!0}),s=[];for(let n of r)for(let i of n)try{let a=nt.parseBool(i);s.push(`disabled=${!a}`)}catch{s.push(i)}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("="),n=e.substring(0,s),i=e.substring(s+1);if(n.length==0||i.length==0)throw new Error(`${e} is not a valid secret`);return r&&Pi(i),[n,i]}};var m1=w(require("fs"),1),Cie=w(require("path"),1);var T0=class t{static{o(this,"Bake")}buildx;metadataFilename;constructor(e){this.buildx=e?.buildx||new Ke,this.metadataFilename=`bake-metadata-${nt.generateRandomString()}.json`}getMetadataFilePath(){return Cie.default.join(ve.tmpDir(),this.metadataFilename)}resolveMetadata(){let e=this.getMetadataFilePath();if(!m1.default.existsSync(e))return;let r=m1.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"],n,i=[],a=[...e.files||[],e.source];if(a){for(let l of a.map(u=>u?u.trim():""))if(l.length!=0){if(!nt.isValidRef(l)){i.push(l);continue}if(n)throw new Error("Only one remote bake definition can be defined");n=l}}n&&s.push(n);for(let l of i)s.push("--file",l);if(e.overrides)for(let l of e.overrides)s.push("--set",l);if(e.vars)for(let l of e.vars)s.push("--var",l);if(e.allow)for(let l of e.allow)s.push("--allow",l);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 c=await this.buildx.getCommand([...s,"--print",...e.targets||[]]);return await re.getExecOutput(c.command,c.args,r).then(l=>{if(l.stderr.length>0&&l.exitCode!=0)throw new Error(`cannot parse bake definitions: ${l.stderr.match(/(.*)\s*$/)?.[0]?.trim()??"unknown error"}`);return t.parseDefinition(l.stdout.trim())})}static parseDefinition(e){let r=JSON.parse(e);for(let s in r.target){let n=r.target[s];n.attest&&Array.isArray(n.attest)&&(n.attest=n.attest.map(i=>t.parseAttestEntry(i))),n["cache-from"]&&Array.isArray(n["cache-from"])&&(n["cache-from"]=n["cache-from"].map(i=>t.parseCacheEntry(i))),n["cache-to"]&&Array.isArray(n["cache-to"])&&(n["cache-to"]=n["cache-to"].map(i=>t.parseCacheEntry(i))),n.output&&Array.isArray(n.output)&&(n.output=n.output.map(i=>t.parseExportEntry(i))),n.secret&&Array.isArray(n.secret)&&(n.secret=n.secret.map(i=>t.parseSecretEntry(i))),n.ssh&&Array.isArray(n.ssh)&&(n.ssh=n.ssh.map(i=>t.parseSSHEntry(i)))}return r}static parseAttestEntry(e){if(typeof e!="string")return e;let r={type:""},s=tn(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0];for(let n of s){let[i,a]=n.toString().split(/(?<=^[^=]+?)=/).map(c=>c.trim());switch(i){case"type":r.type=a;break;case"disabled":r.disabled=nt.parseBool(a);break;default:r[i]=a}}return r}static parseCacheEntry(e){if(typeof e!="string")return e;let r={type:""},s=tn(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0];if(s.length===1&&!s[0].includes("="))return r.type="registry",r.ref=s[0],r;for(let n of s){let[i,a]=n.toString().split(/(?<=^[^=]+?)=/).map(c=>c.trim());i==="type"?r.type=a:r[i]=a}return r}static parseExportEntry(e){if(typeof e!="string")return e;let r={type:""},s=tn(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 n of s){let[i,a]=n.toString().split(/(?<=^[^=]+?)=/).map(c=>c.trim());i==="type"?r.type=a:r[i]=a}return r}static parseSecretEntry(e){if(typeof e!="string")return e;let r={},s=tn(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0],n="";for(let i of s){let[a,c]=i.toString().split(/(?<=^[^=]+?)=/).map(l=>l.trim());switch(a){case"type":n=c;break;case"id":r.id=c;break;case"source":case"src":r.src=c;break;case"env":r.env=c;break}}return n==="env"&&!r.env&&(r.env=r.src,r.src=void 0),r}static parseSSHEntry(e){if(typeof e!="string")return e;let r={},[s,n]=e.split("=",2);return r.id=s,
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"]);b(`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 n=s[1].trim();if(n.startsWith("tag: "))return await t.findDetachedTagRef(n,e);if(n.match(/^pull\/\d+\/(head|merge)$/))return`refs/${n}`;let a=n.match(/^[^/]+\/[^/]+, (.+)$/);if(a)return`refs/heads/${a[1].trim()}`;let c=n.match(/^[^/]+\/(.+)$/);if(c)return`refs/heads/${c[1].trim()}`;throw new Error(`Unsupported detached HEAD ref in "${e}"`)}static async exec(e=[]){return await re.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 i=r.match(/^refs\/remotes\/[^/]+\/(.+)$/);return i?`refs/heads/${i[1]}`:r}let s=await t.exec(["tag","--contains","HEAD"]),[n]=s.split(`
|
||||
`).map(i=>i.trim()).filter(i=>i.length>0);if(n)return`refs/tags/${n}`;throw new Error("Cannot infer ref from detached HEAD")}static async findDetachedTagRef(e,r){let n=(await t.exec(["for-each-ref","--format=%(refname)","--points-at","HEAD","refs/tags/"])).split(`
|
||||
`).map(i=>i.trim()).filter(i=>i.length>0).sort((i,a)=>a.length-i.length);for(let i of n){let a=`tag: ${i.slice(10)}`;if(e===a||e.startsWith(`${a}, `))return i}if(n.length===1)return n[0];throw new Error(`Cannot find detached tag ref in "${r}"`)}static async findContainingRef(e){let r=await t.exec(["for-each-ref","--format=%(refname)","--contains","HEAD","--sort=-committerdate",e]),[s]=r.split(`
|
||||
`).map(n=>n.trim()).filter(n=>n.length>0);return s}static async commitDate(e){return new Date(await t.exec(["show","-s",'--format="%ci"',e]))}};var Oce=require("crypto"),Oo=w(require("fs"),1),Mo=w(require("path"),1);var Jp=w(w1(),1),Mce=w(FU(),1),Yp=w(Pce(),1);var H2=w(w1(),1);var kce=w(hi(),1);var _ce="application/vnd.oci.empty.v1+json";var Do=class{static{o(this,"Cosign")}binPath;_version;_versionOnce;constructor(e){this.binPath=e?.binPath||"cosign",this._version="",this._versionOnce=!1}async isAvailable(){let e=await re.getExecOutput(this.binPath,[],{ignoreReturnCode:!0,silent:!0}).then(r=>r.stderr.length>0&&r.exitCode!=0?(b(`Cosign.isAvailable cmd err: ${r.stderr.trim()}`),!1):r.exitCode==0).catch(r=>(b(`Cosign.isAvailable error: ${r}`),!1));return b(`Cosign.isAvailable: ${e}`),e}async version(){return this._versionOnce?this._version:(this._versionOnce=!0,this._version=await re.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 re.exec(this.binPath,["version","--json"],{failOnStdErr:!1})}async versionSatisfies(e,r){let s=r??await this.version();if(!s)return b("Cosign.versionSatisfies false: undefined version"),!1;let n=kce.satisfies(s,e)||/^[0-9a-f]{7}$/.exec(s)!==null;return b(`Cosign.versionSatisfies ${s} statisfies ${e}: ${n}`),n}static parseCommandOutput(e){let r,s,n,i;for(let a of e.split(/\r?\n/)){let c=a.trim();if(!c.startsWith("{")||!c.endsWith("}"))continue;let l;try{l=JSON.parse(c)}catch{continue}if(l&&Array.isArray(l.errors)&&l.errors.length>0&&(i=l.errors),!r&&l&&Array.isArray(l.manifests)&&l.manifests.length>0){let u=l.manifests[0];u?.artifactType===H2.BUNDLE_V03_MEDIA_TYPE&&typeof u.digest=="string"?r=u.digest:u?.artifactType===_ce&&typeof u.digest=="string"&&(s=u.digest)}if(!n&&l&&l.mediaType===H2.BUNDLE_V03_MEDIA_TYPE&&(n=l),n&&(r||s)){i=void 0;break}}return{bundle:n,signatureManifestDigest:r||s,errors:i}}};var V2=w(require("fs"),1);var aN=class t{static{o(this,"ImageTools")}buildx;constructor(e){this.buildx=e?.buildx||new Ke}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(a=>a.annotations?.["vnd.docker.reference.type"]==="attestation-manifest");if(!e.platform)return s;let n=e.platform,i=new Map;for(let a of r.manifests)a.digest&&i.set(a.digest,a);return s.filter(a=>{let c=a.annotations?.["vnd.docker.reference.digest"];if(!c)return!1;let l=i.get(c);return l?l.platform?.os===n.os&&l.platform?.architecture===n.architecture&&(l.platform?.variant??"")===(n.variant??""):!1})}async attestationDigests(e){return(await this.attestationDescriptors(e)).map(r=>r.digest)}async create(e){let r=[],s=ve.tmpName({tmpdir:ve.tmpDir(),template:"imagetools-metadata-XXXXXX"}),n=[],i=[];for(let c of e.sources){if(c.startsWith("cwd://")){let l=c.substring(6);l.length>0&&n.push(l);continue}i.push(c)}if(e.tags)for(let c of e.tags)r.push("--tag",c);if(e.platforms)for(let c of e.platforms)r.push("--platform",c);if(e.annotations)for(let c of e.annotations)r.push("--annotation",c);e.dryRun?r.push("--dry-run"):r.push("--metadata-file",s);for(let c of n)r.push("--file",c);for(let c of i)r.push(c);let a=await this.getCreateCommand(r);if(e.skipExec){S(`[command]${a.command} ${a.args.join(" ")}`),S("Skipped create command");return}return await re.getExecOutput(a.command,a.args,{ignoreReturnCode:!0,silent:e.silent}).then(c=>{if(c.stderr.length>0&&c.exitCode!=0)throw new Error(c.stderr.trim());if(!e.dryRun){if(!V2.default.existsSync(s))return;let l=V2.default.readFileSync(s,{encoding:"utf-8"}).trim();if(l===""||l==="null")return;let u=JSON.parse(l),d=u["containerimage.descriptor"];return d?{digest:u["containerimage.digest"]||d.digest,descriptor:d,imageNames:u["image.name"]?u["image.name"].split(",").map(A=>A.trim()):[]}:void 0}})}async inspect(e,r,s){let n=await this.getInspectCommand([e.name,"--format",r]);if(!e.retryOnManifestUnknown)return await this.execInspect(n.command,n.args,s);let i=e.retryLimit??15,a;for(let c=0;c<i;c++)try{return await this.execInspect(n.command,n.args,s
Line truncated
|
||||
${a.message}`),await new Promise(u=>setTimeout(u,Math.pow(2,c)*100))}throw a??new Error(`ImageTools inspect command failed for ${e.name}`)}async execInspect(e,r,s){return await re.getExecOutput(e,r,{ignoreReturnCode:!0,silent:!0}).then(n=>{if(n.stderr.length>0&&n.exitCode!=0)throw new Error(n.stderr.trim());return s(JSON.parse(n.stdout))})}static isManifestUnknownError(e){return/(MANIFEST_UNKNOWN|manifest unknown)/i.test(e)||/:\s*not found$/i.test(e)}};var Vu="https://search.sigstore.dev";var Dce="slsaprovenance1",Kc=class t{static{o(this,"Sigstore")}cosign;imageTools;constructor(e){this.cosign=e?.cosign||new Do,this.imageTools=e?.imageTools||new aN}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=await this.cosignSigningConfigArgs(e.noTransparencyLog);for(let n of e.imageNames){let i=await this.imageTools.attestationDigests({name:`${n}@${e.imageDigest}`,retryOnManifestUnknown:e.retryOnManifestUnknown,retryLimit:e.retryLimit});for(let a of i){let c=`${n}@${a}`;await Ms(`Signing attestation manifest ${c}`,async()=>{let l=["sign","--yes","--oidc-provider","github-actions","--registry-referrers-mode","oci-1-1","--new-bundle-format",...s];S(`[command]${this.cosign.binPath} ${[...l,c].join(" ")}`);let u=await re.getExecOutput(this.cosign.binPath,["--verbose",...l,c],{ignoreReturnCode:!0,silent:!0,env:Object.assign({},process.env,{COSIGN_EXPERIMENTAL:"1"})}),d=Do.parseCommandOutput(u.stderr.trim());if(u.exitCode!=0)if(d.errors&&d.errors.length>0){let p=d.errors.map(f=>`- [${f.code}] ${f.message} : ${f.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 p=t.parseBundle((0,Fw.bundleFromJSON)(f.bundle));p.tlogID&&V(`Uploaded to Rekor transparency log: ${mA}?logIndex=${p.tlogID}`),V(`Signature manifest pushed: https://oci.dag.dev/?referrers=${u}`),r[u]={...p,imageName:a}})}}}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 Un(`Verifying signature of ${i}`,async()=>{let a=await this.verifyImageAttestation(i,{certificateIdentityRegexp:r.certificateIdentityRegexp,noTransparencyLog:r.noTransparencyLog||!n.tlogID,retryOnManifestUnknown:r.retryOnManifestUnknown});V(`Signature manifest verified: https://oci.dag.dev/?image=${n.imageName}@${a.signatureManifestDigest}`),s[i]=a});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 a of i){let c=`${n}@${a}`,l=await this.verifyImageAttestation(c,r);V(`Signature manifest verified: https://oci.dag.dev/?image=${n}@${l.signatureManifestDigest}`),s[c]=l}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){V(`[command]${this.cosign.binPath} ${[...s,e].join(" ")}`);let a=await Me.getExecOutput(this.cosign.binPath,["--verbose",...s,e],{ignoreReturnCode:!0,silent:!0,env:Object.assign({},process.env,{COSIGN_EXPERIMENTAL:"1"})});if(a.exitCode!==0)throw new Error(`Cosign verify command failed with: ${a.stderr.trim().split(/\r?\n/).filter(l=>l.length>0).pop()??"unknown error"}`);let c=lh.parseCommandOutput(a.stderr.trim());return{cosignArgs:s,signatureManifestDigest:c.signatureManifestDigest}}let i=r.retryLimit??15,n;V(`[command]${this.cosign.binPath} ${[...s,e].join(" ")}`);for(let a=0;a<i;a++){let c=await Me.getExecOutput(this.cosign.binPath,["--verbose",...s,e],{ignoreReturnCode:!0,silent:!0,env:Object.assign({},process.env,{COSIGN_EXPERIMENTAL:"1"})}),l=lh.parseCommandOutput(c.stderr.trim());if(c.exitCode===0)return{cosignArgs:s,signatureManifestDigest:l.signatureManifestDigest};if(l.errors&&l.errors.length>0){let u=l.errors.map(h=>`- [${h.code}] ${h.message} : ${h.detail}`).join(`
|
||||
`);if(n=new Error(`Cosign verify command failed with errors:
|
||||
${u}`),l.errors.some(h=>h.code==="MANIFEST_UNKNOWN"))V(`Cosign verify command failed with MANIFEST_UNKNOWN, retrying attempt ${a+1}/${i}...
|
||||
${u}`),await new Promise(h=>setTimeout(h,Math.pow(2,a)*100));else throw n}else throw new Error(`Cosign verify command failed with: ${c.stderr.trim().split(/\r?\n/).filter(u=>u.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);V(`Using Sigstore signing endpoint: ${s.fulcioURL}`);let i=t.getProvenanceBlobs(e);for(let n of Object.keys(i))await Un(`Signing ${n}`,async()=>{let a=i[n],c=Hd.default.join(Hd.default.dirname(n),`${e.name??"provenance"}.sigstore.json`),l=t.getProvenanceSubjects(a);if(l.length===0){hr(`No subjects found in provenance ${n}, skip signing.`);return}let u=await t.signPayload({data:a,type:$_e},s),h=t.parseBundle(u);V("Provenance blob signed for:");for(let d of l){let[f,p]=Object.entries(d.digest)[0]||[];V(` - ${d.name} (${f}:${p})`)}h.tlogID&&V(`Attestation signature uploaded to Rekor transparency log: ${mA}?logIndex=${h.tlogID}`),V(`Writing Sigstore bundle to: ${c}`),Tl.default.writeFileSync(c,JSON.stringify(h.payload,null,2),{encoding:"utf-8"}),r[n]={...h,bundlePath:c,subjects:l}})}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 a=Hd.default.dirname(i);await Un(`Verifying signature bundle ${n.bundlePath}`,async()=>{for(let c of n.subjects){let l=Hd.default.join(a,c.name);V(`Verifying signed artifact ${l}`);let u=["verify-blob-attestation","--new-bundle-format","--certificate-oidc-issuer","https://token.actions.githubusercontent.com","--certificate-identity-regexp",r.certificateIdentityRegexp,"--type",r.predicateType??kvt];(r.noTransparencyLog||!n.tlogID)&&u.push("--use-signed-timestamps","--insecure-ignore-tlog");let h=await Me.getExecOutput(this.cosign.binPath,[...u,"--bundle",n.bundlePath,l],{ignoreReturnCode:!0});if(h.stderr.length>0&&h.exitCode!=0)throw new Error(h.stderr);s[l]={bundlePath:n.bundlePath,cosignArgs:u}}})}return s}async verifyArtifact(e,r,s){V("Verifying keyless verification bundle signature");let i=JSON.parse(Tl.default.readFileSync(r,"utf-8")),n=(0,Fw.bundleFromJSON)(i);V("Fetching Sigstore TUF trusted root metadata");let a=await K_e.getTrustedRoot(),c=(0,AE.toTrustMaterial)(a);try{V("Verifying artifact signature");let l=(0,AE.toSignedEntity)(n,Tl.default.readFileSync(e)),u=t.parseCertificate(n),h=n.verificationMaterial.tlogEntries,d=h.length>0?h[0].logIndex:void 0;if(s?.subjectAlternativeName&&s?.subjectAlternativeName instanceof RegExp){let A=u.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 p=new AE.Verifier(c).verify(l,{subjectAlternativeName:s?.subjectAlternativeName&&typeof s.subjectAlternativeName=="string"?s.subjectAlternativeName:void 0,extensions:s?.issuer?{issuer:s.issuer}:void 0});return Q(`Sigstore.verifyArtifact signer: ${JSON.stringify(p)}`),{payload:i,certificate:u.toString(),tlogID:d}}catch(l){throw new Error(`Failed to verify artifact signature: ${l}`)}}signingEndpoints(e){return e=t.noTransparencyLog(e),V(`Upload to transparency log: ${e?"disabled":"enabled"}`),{fulcioURL:j_e,rekorURL:e?void 0:J_e,tsaServerURL:Y_e}}static noTransparencyLog(e){return e??Qt.context.payload.repository?.private}static getProvenanceBlobs(e){let r=Hd.default.join(e.localExportDir,"provenance.json");if(Tl.default.existsSync(r))return{[r]:Tl.default.readFileSync(r)};let s=Tl.default.readdirSync(e.localExportDir,{withFileTypes:!0}),i=s.filter(n=>n.isDirectory());if(i.length>0&&i.length===s.length&&i.every(n=>Tl.default.existsSync(Hd.default.join(e.localExportDir,n.name,"provenance.json")))){let n={};for(let a of i){let c=Hd.default.join(e.localExportDir,a.name,"provenance.json");n[c]=Tl.default.readFileSync(c)}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=[],a=new _l.FulcioSigner({identityProvider:new _l.CIContextProvider("sigstore"),fulcioBaseURL:r.fulcioURL,timeout:s,retry:i});return r.rekorURL&&n.push(new _l.RekorWitness({rekorBaseURL:r.rekorURL,fetchOnConflict:!0,timeout:s,retry:i})),r.tsaServerURL&&n.push(new _l.TSAWitness({tsaBaseURL:r.tsaServerURL,timeout:s,retry:i})),new _l.DSSEBundleBuilder({signer:a,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,Fw.bundleToJSON)(e),certificate:r.toString(),tlogID:i}}
Line truncated
|
||||
`)){let[u,...h]=l.split(":"),d=u.toLowerCase(),f=h.map(p=>p.trim()).join(":");if(u.length!=0)switch(!0){case d=="name":s=void 0,r.name==null?r.name=f:(n&&i.gcPolicy&&(i.gcPolicy.push(n),n=void 0),i.name&&r.nodes.push(i),i={name:f});break;case d=="driver":s=void 0,r.driver=f;break;case d=="last activity":s=void 0,r.lastActivity=new Date(f);break;case d=="endpoint":s=void 0,i.endpoint=f;break;case d=="driver options":s=void 0,i["driver-opts"]=(f.match(/([a-zA-Z0-9_.]+)="([^"]*)"/g)||[]).map(p=>p.replace(/^(.*)="(.*)"$/g,"$1=$2"));break;case d=="status":s=void 0,i.status=f;break;case d=="buildkit daemon flags":case d=="flags":s=void 0,i["buildkitd-flags"]=f;break;case d=="buildkit version":case d=="buildkit":s=void 0,i.buildkit=f;break;case d=="platforms":{if(s=void 0,!f)break;let p=[];if(f.includes("*"))for(let A of f.split(", "))A.includes("*")&&p.push(A.replace(/\*/g,""));else p=f.split(", ");i.platforms=p.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",c=u.split("#")[1],i.files=i.files||{},i.files[c]="";break;default:switch(s&&s!=="devices"&&i.devices&&a&&(i.devices.push(a),a=void 0),s||""){case"features":{i.features=i.features||{},i.features[u.trim()]=!!f;break}case"label":{i.labels=i.labels||{},i.labels[u.trim()]=f;break}case"devices":{switch(d.trim()){case"name":{i.devices&&a&&i.devices.push(a),a={},a.name=f;break}case"on-demand":{a&&f&&(a.onDemand=f=="true");break}case"automatically allowed":{a&&f&&(a.autoAllow=f=="true");break}case"annotations":{a&&(a.annotations=a.annotations||{});break}default:a&&a.annotations&&(a.annotations[u.trim()]=f)}break}case"gcpolicy":{switch(i.gcPolicy=i.gcPolicy||[],n=n||{},d.trim()){case"all":{n.all=f=="true";break}case"filters":{f&&(n.filter=f.split(","));break}case"keep duration":{n.keepDuration=f;break}case"keep bytes":{n.keepBytes=f;break}case"reserved space":{n.reservedSpace=f;break}case"max used space":{n.maxUsedSpace=f;break}case"min free space":{n.minFreeSpace=f;break}}break}case"file":{c&&i.files&&(i.files[c].length>0&&(i.files[c]+=`
|
||||
`),i.files[c]+=l.replace(/^\s>\s?/,""));break}}}}return a&&i.devices&&i.devices.push(a),n&&i.gcPolicy&&i.gcPolicy.push(n),i.name&&r.nodes.push(i),r}};var X_e=M(Ha(),1);var xO=M(require("fs"),1);var NO=class{static{o(this,"Config")}resolveFromString(e){return this.resolve(e,!1)}resolveFromFile(e){return this.resolve(e,!0)}resolve(e,r){if(r){if(!xO.default.existsSync(e))throw new Error(`config file ${e} not found`);e=xO.default.readFileSync(e,{encoding:"utf-8"})}let s=Et.tmpName({tmpdir:Et.tmpDir()});return xO.default.writeFileSync(s,e),s}};var RO=class{static{o(this,"BuildKit")}buildx;config;constructor(e){this.config=new NO,this.buildx=e?.buildx||new zt}async getVersion(e){if(!e.buildkit&&e.name)try{return await this.getVersionWithinImage(e.name)}catch(r){hr(r)}return e.buildkit}async getVersionWithinImage(e){return Q(`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 Q(`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 gE({buildx:this.buildx}).inspect(e));for(let i of s.nodes){let n=i.buildkit;if(Q(`BuildKit.versionSatisfies ${n}: ${r}`),!n)try{n=await this.getVersionWithinImage(i.name||"")}catch{return Q(`BuildKit.versionSatisfies ${i.name}: can't get version`),!1}if(Q(`BuildKit.versionSatisfies ${i.name}: version ${n}`),s.driver=="docker"&&!n.endsWith("-moby")||!X_e.satisfies(n.replace(/-moby$/,""),r))return!1}return!0}};var vO=class t{static{o(this,"Compose")}_version;_versionOnce;_standalone;constructor(e){this._standalone=e?.standalone,this._version="",this._versionOnce=!1}async isStandalone(){let e=this._standalone??!await cs.isAvailable();return Q(`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 Me.getExecOutput(e.command,e.args,{ignoreReturnCode:!0,silent:!0}).then(s=>s.stderr.length>0&&s.exitCode!=0?(Q(`Compose.isAvailable cmd err: ${s.stderr.trim()}`),!1):s.exitCode==0).catch(s=>(Q(`Compose.isAvailable error: ${s}`),!1));return Q(`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 Me.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 Me.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 hh=M(require("fs"),1),Pl=M(require("os"),1),yE=M(require("path"),1);var _O=M(Ha(),1),CW=M(require("util"),1);var TO=class t{static{o(this,"Install")}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);Q(`Install.download version: ${s.version}`);let i=await t.getRelease(s,this.githubToken);Q(`Install.download release tag name: ${i.tag_name}`);let n=await this.vspec(i.tag_name);Q(`Install.download vspec: ${n}`);let a=_O.clean(n)||"";if(!_O.valid(a))throw new Error(`Invalid Compose version "${n}".`);let c=new Cs({htcName:s.key!="official"?`compose-dl-bin-${s.key}`:"compose-dl-bin",htcVersion:n,baseCacheDir:yE.default.join(Pl.default.homedir(),".bin","docker-compose"),cacheFile:Pl.default.platform()=="win32"?"docker-compose.exe":"docker-compose",ghaNoCache:r}),l=await c.find();if(l)return V(`Compose binary found in ${l}`),l;let u=CW.format(s.downloadURL,n,this.filename());V(`Downloading ${u}`);let h=await To(u,void 0,this.githubToken);Q(`Install.download htcDownloadPath: ${h}`);let d=await c.save(h);return V(`Cached to ${d}`),d}async installStandalone(e,r){V("Standalone mode"),r=r||Et.tmpDir();let s=yE.default.join(r,"compose-bin-standalone");hh.default.existsSync(s)||hh.default.mkdirSync(s,{recursive:!0});let i=Pl.default.platform()=="win32"?"compose.exe":"compose",n=yE.default.join(s,i);return hh.default.copyFileSync(e,n),V("Fixing perms"),hh.default.chmodSync(n,"0755"),dc(s),V("Added Compose to PATH"),V(`Binary path: ${n}`),n}async installPlugin(e,r){V("Docker plugin mode"),r=r||cs.configDir;let s=yE.default.join(r,"cli-plugins");hh.default.existsSync(s)||hh.default.mkdirSync(s,{recursive:!0});let i=Pl.default
Line truncated
|
||||
${p}`)}else throw new Error(`Cosign sign command failed with: ${u.stderr.trim().split(/\r?\n/).filter(p=>p.length>0).pop()??"unknown error"}`);let A=t.parseBundle((0,Jp.bundleFromJSON)(d.bundle));A.tlogID&&S(`Uploaded to Rekor transparency log: ${Vu}?logIndex=${A.tlogID}`),S(`Signature manifest pushed: https://oci.dag.dev/?referrers=${c}`),r[c]={...A,imageName:n}})}}}catch(s){throw new Error(`Signing BuildKit attestation manifests failed: ${s.message}`)}return r}async verifySignedManifests(e,r){let s={};for(let[n,i]of Object.entries(e))await Ms(`Verifying signature of ${n}`,async()=>{let a=await this.verifyImageAttestation(n,{certificateIdentityRegexp:r.certificateIdentityRegexp,noTransparencyLog:r.noTransparencyLog||!i.tlogID,retryOnManifestUnknown:r.retryOnManifestUnknown,retryLimit:r.retryLimit});S(`Signature manifest verified: https://oci.dag.dev/?image=${i.imageName}@${a.signatureManifestDigest}`),s[n]=a});return s}async verifyImageAttestations(e,r){let s={},n=await this.imageTools.attestationDigests({name:e,platform:r.platform,retryOnManifestUnknown:r.retryOnManifestUnknown,retryLimit:r.retryLimit});if(n.length===0)throw new Error(`No attestation manifests found for ${e}`);let i=e.split(":",1)[0];for(let a of n){let c=`${i}@${a}`,l=await this.verifyImageAttestation(c,r);S(`Signature manifest verified: https://oci.dag.dev/?image=${i}@${l.signatureManifestDigest}`),s[c]=l}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){S(`[command]${this.cosign.binPath} ${[...s,e].join(" ")}`);let a=await re.getExecOutput(this.cosign.binPath,["--verbose",...s,e],{ignoreReturnCode:!0,silent:!0,env:Object.assign({},process.env,{COSIGN_EXPERIMENTAL:"1"})});if(a.exitCode!==0)throw new Error(`Cosign verify command failed with: ${a.stderr.trim().split(/\r?\n/).filter(l=>l.length>0).pop()??"unknown error"}`);let c=Do.parseCommandOutput(a.stderr.trim());return{cosignArgs:s,signatureManifestDigest:c.signatureManifestDigest}}let n=r.retryLimit??15,i;S(`[command]${this.cosign.binPath} ${[...s,e].join(" ")}`);for(let a=0;a<n;a++){let c=await re.getExecOutput(this.cosign.binPath,["--verbose",...s,e],{ignoreReturnCode:!0,silent:!0,env:Object.assign({},process.env,{COSIGN_EXPERIMENTAL:"1"})}),l=Do.parseCommandOutput(c.stderr.trim());if(c.exitCode===0)return{cosignArgs:s,signatureManifestDigest:l.signatureManifestDigest};if(l.errors&&l.errors.length>0){let u=l.errors.map(d=>`- [${d.code}] ${d.message} : ${d.detail}`).join(`
|
||||
`);if(i=new Error(`Cosign verify command failed with errors:
|
||||
${u}`),l.errors.some(d=>d.code==="MANIFEST_UNKNOWN"))S(`Cosign verify command failed with MANIFEST_UNKNOWN, retrying attempt ${a+1}/${n}...
|
||||
${u}`),await new Promise(d=>setTimeout(d,Math.pow(2,a)*100));else throw i}else throw new Error(`Cosign verify command failed with: ${c.stderr.trim().split(/\r?\n/).filter(u=>u.length>0).pop()??"unknown error"}`)}throw i}async signProvenanceBlobs(e){if(!await this.cosign.isAvailable())throw new Error("Cosign is required to sign provenance blobs");let r={};try{if(!process.env.ACTIONS_ID_TOKEN_REQUEST_URL)throw new Error('missing "id-token" permission. Please add "permissions: id-token: write" to your workflow.');let s=await this.cosignSigningConfigArgs(e.noTransparencyLog),n=t.getProvenanceBlobs(e);for(let i of Object.keys(n))await Ms(`Signing ${i}`,async()=>{let a=n[i],c=Mo.default.join(Mo.default.dirname(i),`${e.name??"provenance"}.sigstore.json`),l=t.getProvenanceSubjects(a);if(l.length===0){et(`No subjects found in provenance ${i}, skip signing.`);return}let u=Mo.default.join(Mo.default.dirname(i),l[0].name),d=["attest-blob","--yes","--oidc-provider","github-actions","--new-bundle-format","--statement",i,"--type",Dce,"--bundle",c,...s];S(`[command]${this.cosign.binPath} ${[...d,u].join(" ")}`);let A=await re.getExecOutput(this.cosign.binPath,["--verbose",...d,u],{ignoreReturnCode:!0,silent:!0,env:Object.assign({},process.env,{COSIGN_EXPERIMENTAL:"1"})}),p=Do.parseCommandOutput(A.stderr.trim());if(A.exitCode!=0)if(p.errors&&p.errors.length>0){let m=p.errors.map(g=>`- [${g.code}] ${g.message} : ${g.detail}`).join(`
|
||||
`);throw new Error(`Cosign attest-blob command failed with errors:
|
||||
${m}`)}else throw new Error(`Cosign attest-blob command failed with: ${A.stderr.trim().split(/\r?\n/).filter(m=>m.length>0).pop()??"unknown error"}`);let f=t.parseBundle((0,Jp.bundleFromJSON)(JSON.parse(Oo.default.readFileSync(c,{encoding:"utf-8"}))));S("Provenance blob signed for:");for(let m of l){let[g,y]=Object.entries(m.digest)[0]||[];S(` - ${m.name} (${g}:${y})`)}f.tlogID&&S(`Attestation signature uploaded to Rekor transparency log: ${Vu}?logIndex=${f.tlogID}`),S(`Sigstore bundle written to: ${c}`),r[i]={...f,bundlePath:c,subjects:l}})}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[n,i]of Object.entries(e)){let a=Mo.default.dirname(n);await Ms(`Verifying signature bundle ${i.bundlePath}`,async()=>{for(let c of i.subjects){let l=Mo.default.join(a,c.name);S(`Verifying signed artifact ${l}`);let u=["verify-blob-attestation","--new-bundle-format","--certificate-oidc-issuer","https://token.actions.githubusercontent.com","--certificate-identity-regexp",r.certificateIdentityRegexp,"--type",r.predicateType??Dce];(r.noTransparencyLog||!i.tlogID)&&u.push("--use-signed-timestamps","--insecure-ignore-tlog");let d=await re.getExecOutput(this.cosign.binPath,[...u,"--bundle",i.bundlePath,l],{ignoreReturnCode:!0});if(d.stderr.length>0&&d.exitCode!=0)throw new Error(d.stderr);s[l]={bundlePath:i.bundlePath,cosignArgs:u}}})}return s}async verifyArtifact(e,r,s){S("Verifying keyless verification bundle signature");let n=JSON.parse(Oo.default.readFileSync(r,"utf-8")),i=(0,Jp.bundleFromJSON)(n);S("Fetching Sigstore TUF trusted root metadata");let a=await Mce.getTrustedRoot(),c=(0,Yp.toTrustMaterial)(a);try{S("Verifying artifact signature");let l=(0,Yp.toSignedEntity)(i,Oo.default.readFileSync(e)),u=t.parseCertificate(i),d=i.verificationMaterial.tlogEntries,A=d.length>0?d[0].logIndex:void 0;if(s?.subjectAlternativeName&&s?.subjectAlternativeName instanceof RegExp){let m=u.subjectAltName?.replace(/^uri:/i,"");if(m){if(!m.match(s.subjectAlternativeName))throw new Error(`Signing certificate subjectAlternativeName "${m}" does not match expected pattern`)}else throw new Error("Signing certificate does not contain subjectAltName")}let f=new Yp.Verifier(c).verify(l,{subjectAlternativeName:s?.subjectAlternativeName&&typeof s.subjectAlternativeName=="string"?s.subjectAlternativeName:void 0,extensions:s?.issuer?{issuer:s.issuer}:void 0});return b(`Sigstore.verifyArtifact signer: ${JSON.stringify(f)}`),{payload:n,certificate:u.toString(),tlogID:A}}catch(l){throw new Error(`Failed to verify artifact signature: ${l}`)}}static noTransparencyLog(e){return e??He.context.payload.repository?.private??!1}async cosignSigningConfigArgs(e){let r=[],s=t.noTransparencyLog(e);return S(`Upload to transparency log: ${s?"disabled":"enabled"}`),await this.cosign.versionSatisfies(">=3.0.4")?await Ms("Creating Sigstore protobuf signing config",async()=>{let n=ve.tmpName({template:"signing-config-XXXXXX.json",tmpdir:ve.tmpDir()}),i=["signing-config","create","--with-default-services=true",`--out=${n}`];s&&i.push("--no-default-rekor=true"),await re.exec(this.cosign.binPath,i,{env:Object.assign({},process.env,{COSIGN_EXPERIMENTAL:"1"})}),S(JSON.stringify(JSON.parse(Oo.default.readFileSync(n,{encoding:"utf-8"})),null,2)),r.push(`--signing-config=${n}`)}):(r.push("--use-signing-config"),s&&r.push("--tlog-upload=false")),r}static getProvenanceBlobs(e){let r=Mo.default.join(e.localExportDir,"provenance.json");if(Oo.default.existsSync(r))return{[r]:Oo.default.readFileSync(r)};let s=Oo.default.readdirSync(e.localExportDir,{withFileTypes:!0}),n=s.filter(i=>i.isDirectory());if(n.length>0&&n.length===s.length&&n.every(i=>Oo.default.existsSync(Mo.default.join(e.localExportDir,i.name,"provenance.json")))){let i={};for(let a of n){let c=Mo.default.join(e.localExportDir,a.name,"provenance.json");i[c]=Oo.default.readFileSync(c)}return i}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 parseBundle(e){let r=t.parseCertificate(e),s=e.verificationMaterial.tlogEntries,n=s.length>0?s[0].logIndex:void 0;return{payload:(0,Jp.bundleToJSON)(e),certificate:r.toString(),tlogID:n}}static parseCertificate(e){let r;switch(e.verificationMaterial.content.$case){case"x509CertificateChain":r=e.verificationMaterial.content.x509CertificateChain.certificates[0].rawBytes;break;case"certificate":r=e.verificationMaterial.content.certificate.rawBytes;break;default:throw new Error("Bundle must contain an x509 certificate")}return new Oce.X509Certificate(r)}};var cN=class t{static{o(this,"Install")}standalone;githubToken;sigstore;constructor(e){this.standalone=e?.standalone,this.githubToken=e?.githubToken||process.env.GITHUB_TOKEN,this.sigstore=e?.sigstore||new Kc}
Line truncated
|
||||
`)){let[u,...d]=l.split(":"),A=u.toLowerCase(),p=d.map(f=>f.trim()).join(":");if(u.length!=0)switch(!0){case A=="name":s=void 0,r.name==null?r.name=p:(i&&n.gcPolicy&&(n.gcPolicy.push(i),i=void 0),n.name&&r.nodes.push(n),n={name:p});break;case A=="driver":s=void 0,r.driver=p;break;case A=="last activity":s=void 0,r.lastActivity=new Date(p);break;case A=="endpoint":s=void 0,n.endpoint=p;break;case A=="driver options":s=void 0,n["driver-opts"]=(p.match(/([a-zA-Z0-9_.]+)="([^"]*)"/g)||[]).map(f=>f.replace(/^(.*)="(.*)"$/g,"$1=$2"));break;case A=="status":s=void 0,n.status=p;break;case A=="buildkit daemon flags":case A=="flags":s=void 0,n["buildkitd-flags"]=p;break;case A=="buildkit version":case A=="buildkit":s=void 0,n.buildkit=p;break;case A=="platforms":{if(s=void 0,!p)break;let f=[];if(p.includes("*"))for(let m of p.split(", "))m.includes("*")&&f.push(m.replace(/\*/g,""));else f=p.split(", ");n.platforms=f.join(",");break}case A=="features":s="features",n.features={};break;case A=="labels":s="label",n.labels={};break;case A=="devices":s="devices",n.devices=n.devices||[];break;case A.startsWith("gc policy rule#"):s="gcpolicy",n.gcPolicy&&i&&(n.gcPolicy.push(i),i=void 0);break;case A.startsWith("file#"):s="file",c=u.split("#")[1],n.files=n.files||{},n.files[c]="";break;default:switch(s&&s!=="devices"&&n.devices&&a&&(n.devices.push(a),a=void 0),s||""){case"features":{n.features=n.features||{},n.features[u.trim()]=!!p;break}case"label":{n.labels=n.labels||{},n.labels[u.trim()]=p;break}case"devices":{switch(A.trim()){case"name":{n.devices&&a&&n.devices.push(a),a={},a.name=p;break}case"on-demand":{a&&p&&(a.onDemand=p=="true");break}case"automatically allowed":{a&&p&&(a.autoAllow=p=="true");break}case"annotations":{a&&(a.annotations=a.annotations||{});break}default:a&&a.annotations&&(a.annotations[u.trim()]=p)}break}case"gcpolicy":{switch(n.gcPolicy=n.gcPolicy||[],i=i||{},A.trim()){case"all":{i.all=p=="true";break}case"filters":{p&&(i.filter=p.split(","));break}case"keep duration":{i.keepDuration=p;break}case"keep bytes":{i.keepBytes=p;break}case"reserved space":{i.reservedSpace=p;break}case"max used space":{i.maxUsedSpace=p;break}case"min free space":{i.minFreeSpace=p;break}}break}case"file":{c&&n.files&&(n.files[c].length>0&&(n.files[c]+=`
|
||||
`),n.files[c]+=l.replace(/^\s>\s?/,""));break}}}}return a&&n.devices&&n.devices.push(a),i&&n.gcPolicy&&n.gcPolicy.push(i),n.name&&r.nodes.push(n),r}};var Lce=w(hi(),1);var lN=w(require("fs"),1);var uN=class{static{o(this,"Config")}resolveFromString(e){return this.resolve(e,!1)}resolveFromFile(e){return this.resolve(e,!0)}resolve(e,r){if(r){if(!lN.default.existsSync(e))throw new Error(`config file ${e} not found`);e=lN.default.readFileSync(e,{encoding:"utf-8"})}let s=ve.tmpName({tmpdir:ve.tmpDir()});return lN.default.writeFileSync(s,e),s}};var dN=class{static{o(this,"BuildKit")}buildx;config;constructor(e){this.config=new uN,this.buildx=e?.buildx||new Ke}async getVersion(e){if(!e.buildkit&&e.name)try{return await this.getVersionWithinImage(e.name)}catch(r){et(r)}return e.buildkit}async getVersionWithinImage(e){return b(`BuildKit.getVersionWithinImage nodeName: ${e}`),tr.getExecOutput(["inspect","--format","{{.Config.Image}}",`${Ke.containerNamePrefix}${e}`],{ignoreReturnCode:!0,silent:!0}).then(r=>{if(r.exitCode==0&&r.stdout.length>0)return b(`BuildKit.getVersionWithinImage image: ${r.stdout.trim()}`),tr.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 Wp({buildx:this.buildx}).inspect(e));for(let n of s.nodes){let i=n.buildkit;if(b(`BuildKit.versionSatisfies ${i}: ${r}`),!i)try{i=await this.getVersionWithinImage(n.name||"")}catch{return b(`BuildKit.versionSatisfies ${n.name}: can't get version`),!1}if(b(`BuildKit.versionSatisfies ${n.name}: version ${i}`),s.driver=="docker"&&!i.endsWith("-moby")||!Lce.satisfies(i.replace(/-moby$/,""),r))return!1}return!0}};var AN=class t{static{o(this,"Compose")}_version;_versionOnce;_standalone;constructor(e){this._standalone=e?.standalone,this._version="",this._versionOnce=!1}async isStandalone(){let e=this._standalone??!await tr.isAvailable();return b(`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 re.getExecOutput(e.command,e.args,{ignoreReturnCode:!0,silent:!0}).then(s=>s.stderr.length>0&&s.exitCode!=0?(b(`Compose.isAvailable cmd err: ${s.stderr.trim()}`),!1):s.exitCode==0).catch(s=>(b(`Compose.isAvailable error: ${s}`),!1));return b(`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 re.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 re.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 Oa=w(require("fs"),1),Fo=w(require("os"),1),jp=w(require("path"),1);var fN=w(hi(),1),J2=w(require("util"),1);var pN=class t{static{o(this,"Install")}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);b(`Install.download version: ${s.version}`);let n=await t.getRelease(s,this.githubToken);b(`Install.download release tag name: ${n.tag_name}`);let i=await this.vspec(n.tag_name);b(`Install.download vspec: ${i}`);let a=fN.clean(i)||"";if(!fN.valid(a))throw new Error(`Invalid Compose version "${i}".`);let c=new dr({htcName:s.key!="official"?`compose-dl-bin-${s.key}`:"compose-dl-bin",htcVersion:i,baseCacheDir:jp.default.join(Fo.default.homedir(),".bin","docker-compose"),cacheFile:Fo.default.platform()=="win32"?"docker-compose.exe":"docker-compose",ghaNoCache:r}),l=await c.find();if(l)return S(`Compose binary found in ${l}`),l;let u=J2.format(s.downloadURL,i,this.filename());S(`Downloading ${u}`);let d=await fn(u,void 0,this.githubToken);b(`Install.download htcDownloadPath: ${d}`);let A=await c.save(d);return S(`Cached to ${A}`),A}async installStandalone(e,r){S("Standalone mode"),r=r||ve.tmpDir();let s=jp.default.join(r,"compose-bin-standalone");Oa.default.existsSync(s)||Oa.default.mkdirSync(s,{recursive:!0});let n=Fo.default.platform()=="win32"?"compose.exe":"compose",i=jp.default.join(s,n);return Oa.default.copyFileSync(e,i),S("Fixing perms"),Oa.default.chmodSync(i,"0755"),ki(s),S("Added Compose to PATH"),S(`Binary path: ${i}`),i}async installPlugin(e,r){S("Docker plugin mode"),r=r||tr.configDir;let s=jp.default.join(r,"cli-plugins");Oa.default.existsSync(s)||Oa.default.mkdirSync(s,{recursive:!0});let n=Fo.default
Line truncated
|
||||
# syntax=docker/dockerfile:1
|
||||
|
||||
ARG GO_VERSION="1.24"
|
||||
@@ -218,7 +198,7 @@ EOT
|
||||
|
||||
FROM scratch
|
||||
COPY --from=builder /out /
|
||||
`;var QO=class t{static{o(this,"Install")}githubToken;buildx;sigstore;constructor(e){this.githubToken=e?.githubToken||process.env.GITHUB_TOKEN,this.buildx=e?.buildx||new zt,this.sigstore=e?.sigstore||new zd}async download(e){let r=await t.getDownloadVersion(e.version);Q(`Install.download version: ${r.version}`);let s=await t.getRelease(r,this.githubToken);Q(`Install.download release tag name: ${s.tag_name}`);let i=await this.vspec(s.tag_name);Q(`Install.download vspec: ${i}`);let n=CE.clean(i)||"";if(!CE.valid(n))throw new Error(`Invalid Cosign version "${i}".`);let a=new Cs({htcName:"cosign-dl-bin",htcVersion:i,baseCacheDir:EE.default.join(Xa.default.homedir(),".bin"),cacheFile:Xa.default.platform()=="win32"?"cosign.exe":"cosign",ghaNoCache:e.ghaNoCache}),c=await a.find();if(c)return V(`Cosign binary found in ${c}`),c;let l=IW.format(r.downloadURL,i,this.filename());V(`Downloading ${l}`);let u=await To(l,void 0,this.githubToken);Q(`Install.download htcDownloadPath: ${u}`),e.verifySignature&&CE.satisfies(i,">=3.0.1")&&await this.verifySignature(u,l);let h=await a.save(u,e.skipState);return V(`Cached to ${h}`),h}async build(e,r,s){let i=await this.vspec(e);Q(`Install.build vspec: ${i}`);let n=new Cs({htcName:"cosign-build-bin",htcVersion:i,baseCacheDir:EE.default.join(Xa.default.homedir(),".bin"),cacheFile:Xa.default.platform()=="win32"?"cosign.exe":"cosign",ghaNoCache:r}),a=await n.find();if(a)return V(`Cosign binary found in ${a}`),a;let c=EE.default.join(Et.tmpDir(),"cosign-build-cache"),l=await this.buildCommand(e,c),u=await Me.getExecOutput(l.command,l.args,{ignoreReturnCode:!0,input:Buffer.from(Z_e)}).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`${c}/cosign`}),h=await n.save(u,s);return V(`Cached to ${h}`),h}async install(e,r){r=r||Et.tmpDir();let s=EE.default.join(r,"cosign-bin");Uw.default.existsSync(s)||Uw.default.mkdirSync(s,{recursive:!0});let i=Xa.default.platform()=="win32"?"cosign.exe":"cosign",n=EE.default.join(s,i);return Uw.default.copyFileSync(e,n),V("Fixing perms"),Uw.default.chmodSync(n,"0755"),dc(s),V("Added Cosign to PATH"),V(`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)Q("Install.buildCommand: Buildx standalone found, build with it"),n=!0;else if(!await this.buildx.isStandalone()&&i)Q("Install.buildCommand: Buildx plugin found, build with it"),n=!1;else if(s)Q("Install.buildCommand: Buildx plugin not found, but standalone found so trying to build with it"),n=!0;else if(i)Q("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 a=["build","--platform","local","--build-arg","BUILDKIT_CONTEXT_KEEP_GIT_DIR=1","--output",`type=local,dest=${r}`];return process.env.GIT_AUTH_TOKEN&&a.push("--secret","id=GIT_AUTH_TOKEN"),a.push("-f-",e),await new zt({standalone:n}).getCommand(a)}async verifySignature(e,r){let s=`${r}.sigstore.json`;V(`Downloading keyless verification bundle at ${s}`);let i=await To(s,void 0,this.githubToken);Q(`Install.verifySignature bundlePath: ${i}`);let n=await this.sigstore.verifyArtifact(e,i,{subjectAlternativeName:"keyless@projectsigstore.iam.gserviceaccount.com",issuer:"https://accounts.google.com"});V(`Cosign binary signature verified! ${n.tlogID?`${mA}?logIndex=${n.tlogID}`:""}`)}filename(){let e;switch(Xa.default.arch()){case"x64":{e="amd64";break}case"ppc64":{e="ppc64le";break}default:{e=Xa.default.arch();break}}let r=Xa.default.platform()=="win32"?"windows":Xa.default.platform(),s=Xa.default.platform()=="win32"?".exe":"";return IW.format("cosign-%s-%s%s",r,e,s)}async vspec(e){if(!Zt.isValidRef(e)){let u=e.replace(/^v+|v+$/g,"");return V(`Use ${u} version spec cache key for ${e}`),u}let[r,s]=e.split("#");s.length==0&&(s="master");let i;s.match(/^[0-9a-fA-F]{40}$/)?i=s:i=await qg.remoteSha(r,s,process.env.GIT_AUTH_TOKEN);let[n,a]=r.substring(19).split("/"),c=`${n}/${Zt.trimSuffix(a,".git")}/${i}`,l=Zt.hash(c);return V(`Use ${l} version spec cache key for ${c}`),l}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 Qt({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 eQe=M(Ha(),1);var PO=class{static{o(this,"Regctl")}binPath;_version;_versionOnce;constructor(e){this.binPath=e?.binPath||"regctl",this._version="",this._versionOnce=!1}async blobGet(e){return await Me.getExecOutput(this.binPath,["blob","get",e.repository,e.digest],{ignoreReturnCode:!0,sil
Line truncated
|
||||
`;var hN=class t{static{o(this,"Install")}githubToken;buildx;sigstore;constructor(e){this.githubToken=e?.githubToken||process.env.GITHUB_TOKEN,this.buildx=e?.buildx||new Ke,this.sigstore=e?.sigstore||new Kc}async download(e){let r=await t.getDownloadVersion(e.version);b(`Install.download version: ${r.version}`);let s=await t.getRelease(r,this.githubToken);b(`Install.download release tag name: ${s.tag_name}`);let n=await this.vspec(s.tag_name);b(`Install.download vspec: ${n}`);let i=Xp.clean(n)||"";if(!Xp.valid(i))throw new Error(`Invalid Cosign version "${n}".`);let a=new dr({htcName:"cosign-dl-bin",htcVersion:n,baseCacheDir:Kp.default.join(Ei.default.homedir(),".bin"),cacheFile:Ei.default.platform()=="win32"?"cosign.exe":"cosign",ghaNoCache:e.ghaNoCache}),c=await a.find();if(c)return S(`Cosign binary found in ${c}`),c;let l=Y2.format(r.downloadURL,n,this.filename());S(`Downloading ${l}`);let u=await fn(l,void 0,this.githubToken);b(`Install.download htcDownloadPath: ${u}`),e.verifySignature&&Xp.satisfies(n,">=3.0.1")&&await this.verifySignature(u,l);let d=await a.save(u,e.skipState);return S(`Cached to ${d}`),d}async build(e,r,s){let n=await this.vspec(e);b(`Install.build vspec: ${n}`);let i=new dr({htcName:"cosign-build-bin",htcVersion:n,baseCacheDir:Kp.default.join(Ei.default.homedir(),".bin"),cacheFile:Ei.default.platform()=="win32"?"cosign.exe":"cosign",ghaNoCache:r}),a=await i.find();if(a)return S(`Cosign binary found in ${a}`),a;let c=Kp.default.join(ve.tmpDir(),"cosign-build-cache"),l=await this.buildCommand(e,c),u=await re.getExecOutput(l.command,l.args,{ignoreReturnCode:!0,input:Buffer.from(Fce)}).then(A=>{if(A.stderr.length>0&&A.exitCode!=0)throw new Error(`build failed with: ${A.stderr.match(/(.*)\s*$/)?.[0]?.trim()??"unknown error"}`);return`${c}/cosign`}),d=await i.save(u,s);return S(`Cached to ${d}`),d}async install(e,r){r=r||ve.tmpDir();let s=Kp.default.join(r,"cosign-bin");eE.default.existsSync(s)||eE.default.mkdirSync(s,{recursive:!0});let n=Ei.default.platform()=="win32"?"cosign.exe":"cosign",i=Kp.default.join(s,n);return eE.default.copyFileSync(e,i),S("Fixing perms"),eE.default.chmodSync(i,"0755"),ki(s),S("Added Cosign to PATH"),S(`Binary path: ${i}`),i}async buildCommand(e,r){let s=await new Ke({standalone:!0}).isAvailable(),n=await new Ke({standalone:!1}).isAvailable(),i=!1;if(await this.buildx.isStandalone()&&s)b("Install.buildCommand: Buildx standalone found, build with it"),i=!0;else if(!await this.buildx.isStandalone()&&n)b("Install.buildCommand: Buildx plugin found, build with it"),i=!1;else if(s)b("Install.buildCommand: Buildx plugin not found, but standalone found so trying to build with it"),i=!0;else if(n)b("Install.buildCommand: Buildx standalone not found, but plugin found so trying to build with it"),i=!1;else throw new Error(`Neither buildx standalone or plugin have been found to build from ref ${e}`);let a=["build","--platform","local","--build-arg","BUILDKIT_CONTEXT_KEEP_GIT_DIR=1","--output",`type=local,dest=${r}`];return process.env.GIT_AUTH_TOKEN&&a.push("--secret","id=GIT_AUTH_TOKEN"),a.push("-f-",e),await new Ke({standalone:i}).getCommand(a)}async verifySignature(e,r){let s=`${r}.sigstore.json`;S(`Downloading keyless verification bundle at ${s}`);let n=await fn(s,void 0,this.githubToken);b(`Install.verifySignature bundlePath: ${n}`);let i=await this.sigstore.verifyArtifact(e,n,{subjectAlternativeName:"keyless@projectsigstore.iam.gserviceaccount.com",issuer:"https://accounts.google.com"});S(`Cosign binary signature verified! ${i.tlogID?`${Vu}?logIndex=${i.tlogID}`:""}`)}filename(){let e;switch(Ei.default.arch()){case"x64":{e="amd64";break}case"ppc64":{e="ppc64le";break}default:{e=Ei.default.arch();break}}let r=Ei.default.platform()=="win32"?"windows":Ei.default.platform(),s=Ei.default.platform()=="win32"?".exe":"";return Y2.format("cosign-%s-%s%s",r,e,s)}async vspec(e){if(!nt.isValidRef(e)){let u=e.replace(/^v+|v+$/g,"");return S(`Use ${u} version spec cache key for ${e}`),u}let[r,s]=e.split("#");s.length==0&&(s="master");let n;s.match(/^[0-9a-fA-F]{40}$/)?n=s:n=await hp.remoteSha(r,s,process.env.GIT_AUTH_TOKEN);let[i,a]=r.substring(19).split("/"),c=`${i}/${nt.trimSuffix(a,".git")}/${n}`,l=nt.hash(c);return S(`Use ${l} version spec cache key for ${c}`),l}static async getDownloadVersion(e){return{version:e,downloadURL:"https://github.com/sigstore/cosign/releases/download/v%s/%s",contentOpts:{owner:"docker",repo:"actions-toolkit",ref:"main",path:".github/cosign-releases.json"}}}static async getRelease(e,r){let n=await new He({token:r}).releases("Cosign",e.contentOpts);if(!n[e.version])throw new Error(`Cannot find Cosign release ${e.version} in releases JSON`);return n[e.version]}};var Uce=w(hi(),1);var mN=class{static{o(this,"Regctl")}binPath;_version;_versionOnce;constructor(e){this.binPath=e?.binPath||"regctl",this._version="",this._versionOnce=!1}async blobGet(e){return await re.getExecOutput(this.binPath,["blob","get",e.repository,e.digest],{ignoreReturnCode:!0,sil
Line truncated
|
||||
/*! Bundled license information:
|
||||
|
||||
undici/lib/web/fetch/body.js:
|
||||
@@ -236,44 +216,6 @@ tmp/lib/tmp.js:
|
||||
* MIT Licensed
|
||||
*)
|
||||
|
||||
negotiator/index.js:
|
||||
(*!
|
||||
* negotiator
|
||||
* Copyright(c) 2012 Federico Romero
|
||||
* Copyright(c) 2012-2014 Isaac Z. Schlueter
|
||||
* Copyright(c) 2015 Douglas Christopher Wilson
|
||||
* MIT Licensed
|
||||
*)
|
||||
|
||||
imurmurhash/imurmurhash.js:
|
||||
(**
|
||||
* @preserve
|
||||
* JS Implementation of incremental MurmurHash3 (r150) (as of May 10, 2013)
|
||||
*
|
||||
* @author <a href="mailto:jensyt@gmail.com">Jens Taylor</a>
|
||||
* @see http://github.com/homebrewing/brauhaus-diff
|
||||
* @author <a href="mailto:gary.court@gmail.com">Gary Court</a>
|
||||
* @see http://github.com/garycourt/murmurhash-js
|
||||
* @author <a href="mailto:aappleby@gmail.com">Austin Appleby</a>
|
||||
* @see http://sites.google.com/site/murmurhash/
|
||||
*)
|
||||
|
||||
make-fetch-happen/lib/fetch.js:
|
||||
make-fetch-happen/lib/fetch.js:
|
||||
(**
|
||||
* @license
|
||||
* Copyright (c) 2010-2012 Mikeal Rogers
|
||||
* 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.
|
||||
*)
|
||||
|
||||
@octokit/request-error/dist-src/index.js:
|
||||
(* v8 ignore else -- @preserve -- Bug with vitest coverage where it sees an else branch that doesn't exist *)
|
||||
|
||||
|
||||
+4
-4
@@ -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": "qrBAAA,IAAAA,GAAAC,EAAAC,IAAA,cAEA,IAAIC,IAAM,QAAQ,KAAK,EACnBC,IAAM,QAAQ,KAAK,EACnBC,GAAO,QAAQ,MAAM,EACrBC,GAAQ,QAAQ,OAAO,EACvBC,IAAS,QAAQ,QAAQ,EACzBC,IAAS,QAAQ,QAAQ,EACzBC,IAAO,QAAQ,MAAM,EAGzBP,GAAQ,aAAeQ,IACvBR,GAAQ,cAAgBS,IACxBT,GAAQ,cAAgBU,IACxBV,GAAQ,eAAiBW,IAGzB,SAASH,IAAaI,EAAS,CAC7B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUV,GAAK,QACdU,CACT,CAJSE,EAAAP,IAAA,gBAMT,SAASC,IAAcG,EAAS,CAC9B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUV,GAAK,QACrBU,EAAM,aAAeG,GACrBH,EAAM,YAAc,IACbA,CACT,CANSE,EAAAN,IAAA,iBAQT,SAASC,IAAcE,EAAS,CAC9B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUT,GAAM,QACfS,CACT,CAJSE,EAAAL,IAAA,iBAMT,SAASC,IAAeC,EAAS,CAC/B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUT,GAAM,QACtBS,EAAM,aAAeG,GACrBH,EAAM,YAAc,IACbA,CACT,CANSE,EAAAJ,IAAA,kBAST,SAASG,GAAeF,EAAS,CAC/B,IAAIK,EAAO,KACXA,EAAK,QAAUL,GAAW,CAAC,EAC3BK,EAAK,aAAeA,EAAK,QAAQ,OAAS,CAAC,EAC3CA,EAAK,WAAaA,EAAK,QAAQ,YAAcd,GAAK,MAAM,kBACxDc,EAAK,SAAW,CAAC,EACjBA,EAAK,QAAU,CAAC,EAEhBA,EAAK,GAAG,OAAQF,EAAA,SAAgBG,EAAQC,EAAMC,EAAMC,EAAc,CAEhE,QADIT,EAAUU,GAAUH,EAAMC,EAAMC,CAAY,EACvCE,EAAI,EAAGC,EAAMP,EAAK,SAAS,OAAQM,EAAIC,EAAK,EAAED,EAAG,CACxD,IAAIE,EAAUR,EAAK,SAASM,CAAC,EAC7B,GAAIE,EAAQ,OAASb,EAAQ,MAAQa,EAAQ,OAASb,EAAQ,KAAM,CAGlEK,EAAK,SAAS,OAAOM,EAAG,CAAC,EACzBE,EAAQ,QAAQ,SAASP,CAAM,EAC/B,MACF,CACF,CACAA,EAAO,QAAQ,EACfD,EAAK,aAAaC,CAAM,CAC1B,EAdgB,SAcf,CACH,CAvBSH,EAAAD,GAAA,kBAwBTP,IAAK,SAASO,GAAgBT,IAAO,YAAY,EAEjDS,GAAe,UAAU,WAAaC,EAAA,SAAoBW,EAAKP,EAAMC,EAAMC,EAAc,CACvF,IAAIJ,EAAO,KACPL,EAAUe,GAAa,CAAC,QAASD,CAAG,EAAGT,EAAK,QAASK,GAAUH,EAAMC,EAAMC,CAAY,CAAC,EAE5F,GAAIJ,EAAK,QAAQ,QAAU,KAAK,WAAY,CAE1CA,EAAK,SAAS,KAAKL,CAAO,EAC1B,MACF,CAGAK,EAAK,aAAaL,EAAS,SAASM,EAAQ,CAC1CA,EAAO,GAAG,OAAQU,CAAM,EACxBV,EAAO,GAAG,QAASW,CAAe,EAClCX,EAAO,GAAG,cAAeW,CAAe,EACxCH,EAAI,SAASR,CAAM,EAEnB,SAASU,GAAS,CAChBX,EAAK,KAAK,OAAQC,EAAQN,CAAO,CACnC,CAFSG,EAAAa,EAAA,UAIT,SAASC,EAAgBC,EAAK,CAC5Bb,EAAK,aAAaC,CAAM,EACxBA,EAAO,eAAe,OAAQU,CAAM,EACpCV,EAAO,eAAe,QAASW,CAAe,EAC9CX,EAAO,eAAe,cAAeW,CAAe,CACtD,CALSd,EAAAc,EAAA,kBAMX,CAAC,CACH,EA5BsC,cA8BtCf,GAAe,UAAU,aAAeC,EAAA,SAAsBH,EAASmB,EAAI,CACzE,IAAId,EAAO,KACPe,EAAc,CAAC,EACnBf,EAAK,QAAQ,KAAKe,CAAW,EAE7B,IAAIC,EAAiBN,GAAa,CAAC,EAAGV,EAAK,aAAc,CACvD,OAAQ,UACR,KAAML,EAAQ,KAAO,IAAMA,EAAQ,KACnC,MAAO,GACP,QAAS,CACP,KAAMA,EAAQ,KAAO,IAAMA,EAAQ,IACrC,CACF,CAAC,EACGA,EAAQ,eACVqB,EAAe,aAAerB,EAAQ,cAEpCqB,EAAe,YACjBA,EAAe,QAAUA,EAAe,SAAW,CAAC,EACpDA,EAAe,QAAQ,qBAAqB,EAAI,SAC5C,IAAI,OAAOA,EAAe,SAAS,EAAE,SAAS,QAAQ,GAG5DC,GAAM,wBAAwB,EAC9B,IAAIC,EAAalB,EAAK,QAAQgB,CAAc,EAC5CE,EAAW,4BAA8B,GACzCA,EAAW,KAAK,WAAYC,CAAU,EACtCD,EAAW,KAAK,UAAWE,CAAS,EACpCF,EAAW,KAAK,UAAWG,CAAS,EACpCH,EAAW,KAAK,QAASI,CAAO,EAChCJ,EAAW,IAAI,EAEf,SAASC,EAAWI,EAAK,CAEvBA,EAAI,QAAU,EAChB,CAHSzB,EAAAqB,EAAA,cAKT,SAASC,EAAUG,EAAKtB,EAAQuB,EAAM,CAEpC,QAAQ,SAAS,UAAW,CAC1BH,EAAUE,EAAKtB,EAAQuB,CAAI,CAC7B,CAAC,CACH,CALS1B,EAAAsB,EAAA,aAOT,SAASC,EAAUE,EAAKtB,EAAQuB,EAAM,CAIpC,GAHAN,EAAW,mBAAmB,EAC9BjB,EAAO,mBAAmB,EAEtBsB,EAAI,aAAe,IAAK,CAC1BN,GAAM,2DACJM,EAAI,UAAU,EAChBtB,EAAO,QAAQ,EACf,IAAIwB,EAAQ,IAAI,MAAM,yDACJF,EAAI,UAAU,EAChCE,EAAM,KAAO,aACb9B,EAAQ,QAAQ,KAAK,QAAS8B,CAAK,EACnCzB,EAAK,aAAae,CAAW,EAC7B,MACF,CACA,GAAIS,EAAK,OAAS,EAAG,CACnBP,GAAM,sCAAsC,EAC5ChB,EAAO,QAAQ,EACf,IAAIwB,EAAQ,IAAI,MAAM,sCAAsC,EAC5DA,EAAM,KAAO,aACb9B,EAAQ,QAAQ,KAAK,QAAS8B,CAAK,EACnCzB,EAAK,aAAae,CAAW,EAC7B,MACF,CACA,OAAAE,GAAM,sCAAsC,EAC5CjB,EAAK,QAAQA,EAAK,QAAQ,QAAQe,CAAW,CAAC,EAAId,EAC3Ca,EAAGb,CAAM,CAClB,CA3BSH,EAAAuB,EAAA,aA6BT,SAASC,EAAQI,EAAO,CACtBR,EAAW,mBAAmB,EAE9BD,GAAM;AAAA,EACAS,EAAM,QAASA,EAAM,KAAK,EAChC,IAAID,EAAQ,IAAI,MAAM,oDACWC,EAAM,OAAO,EAC9CD,EAAM,KAAO,aACb9B,EAAQ,QAAQ,KAAK,QAAS8B,CAAK,EACnCzB,EAAK,aAAae,CAAW,CAC/B,CAVSjB,EAAAwB,EAAA,UAWX,EAnFwC,gBAqFxCzB,GAAe,UAAU,aAAeC,EAAA,SAAsBG,EAAQ,CACpE,IAAI0B,EAAM,KAAK,QAAQ,QAAQ1B,CAAM,EACrC,GAAI0B,IAAQ,GAGZ,MAAK,QAAQ,OAAOA,EAAK,CAAC,EAE1B,IAAInB,EAAU,KAAK,SAAS,MAAM,EAC9BA,GAGF,KAAK,aAAaA,EAAS,SAASP,EAAQ,CAC1CO,EAAQ,QAAQ,SAASP,CAAM,CACjC,CAAC,EAEL,EAfwC,gBAiBxC,SAASF,GAAmBJ,EAASmB,EAAI,CACvC,IAAId,EAAO,KACXH,GAAe,UAAU,aAAa,KAAKG,EAAML,EAAS,SAASM,EAAQ,CACzE,IAAI2B,EAAajC,EAAQ,QAAQ,UAAU,MAAM,EAC7CkC,EAAanB,GAAa,CAAC,EAAGV,EAAK,QAAS,CAC9C,OAAQC,EACR,WAAY2B,EAAaA,EAAW,QAAQ,OAAQ,EAAE,EAAIjC,EAAQ,IACpE,CAAC,EAGGmC,EAAe7C,IAAI,QAAQ,EAAG4C,CAAU,EAC5C7B,EAAK,QAAQA,EAAK,QAAQ,QAAQC,CAAM,CAAC,EAAI6B,EAC7ChB,EAAGgB,CAAY,CACjB,CAAC,CACH,CAdShC,EAAAC,GAAA,sBAiBT,SAASM,GAAUH,EAAMC,EAAMC,EAAc,CAC3C,OAAI,OAAOF,GAAS,SACX,CACL,KAAMA,EACN,KAAMC,EACN,aAAcC,CAChB,EAEKF,CACT,CATSJ,EAAAO,GAAA,aAWT,SAASK,GAAaqB,EAAQ,CAC5B,QAASzB,EAAI,EAAGC,EAAM,UAAU,OAAQD,EAAIC,EAAK,EAAED,EAAG,CACpD,IAAI0B,EAAY,UAAU1B,CAAC,EAC3B,GAAI,OAAO0B,GAAc,SAEvB,QADIC,EAAO,OAAO,KAAKD,CAAS,EACvBE,EAAI,EAAGC,EAASF,EAAK,OAAQC,EAAIC,EAAQ,EAAED,EAAG,CACrD,IAAIE,EAAIH,EAAKC,CAAC,EACVF,EAAUI,CAAC,IAAM,SACnBL,EAAOK,CAAC,EAAIJ,EAAUI,CAAC,EAE3B,CAEJ,CACA,OAAOL,CACT,CAdSjC,EAAAY,GAAA,gBAiBT,IAAIO,GACA,QAAQ,IAAI,YAAc,aAAa,KAAK,QAAQ,IAAI,UAAU,EACpEA,GAAQnB,EAAA,UAAW,CACjB,IAAIuC,EAAO,MAAM,UAAU,MAAM,KAAK,SAAS,EAC3C,OAAOA,EAAK,CAAC,GAAM,SACrBA,EAAK,CAAC,EAAI,WALine truncated
|
||||
"names": ["require_tunnel", "__commonJSMin", "exports", "net", "tls", "http", "https", "events", "assert", "util", "httpOverHttp", "httpsOverHttp", "httpOverHttps", "httpsOverHttps", "options", "agent", "TunnelingAgent", "__name", "createSecureSocket", "self", "socket", "host", "port", "localAddress", "toOptions", "i", "len", "pending", "req", "mergeOptions", "onFree", "onCloseOrRemove", "err", "cb", "placeholder", "connectOptions", "debug", "connectReq", "onResponse", "onUpgrade", "onConnect", "onError", "res", "head", "error", "cause", "pos", "hostHeader", "tlsOptions", "secureSocket", "target", "overrides", "keys", "j", "keyLen", "k", "args", "require_tunnel", "__commonJSMin", "exports", "module", "require_symbols", "__commonJSMin", "exports", "module", "require_errors", "__commonJSMin", "exports", "module", "kUndiciError", "UndiciError", "__name", "message", "instance", "kConnectTimeoutError", "ConnectTimeoutError", "kHeadersTimeoutError", "HeadersTimeoutError", "kHeadersOverflowError", "HeadersOverflowError", "kBodyTimeoutError", "BodyTimeoutError", "kResponseStatusCodeError", "ResponseStatusCodeError", "statusCode", "headers", "body", "kInvalidArgumentError", "InvalidArgumentError", "kInvalidReturnValueError", "InvalidReturnValueError", "kAbortError", "AbortError", "kRequestAbortedError", "RequestAbortedError", "kInformationalError", "InformationalError", "kRequestContentLengthMismatchError", "RequestContentLengthMismatchError", "kResponseContentLengthMismatchError", "ResponseContentLengthMismatchError", "kClientDestroyedError", "ClientDestroyedError", "kClientClosedError", "ClientClosedError", "kSocketError", "SocketError", "socket", "kNotSupportedError", "NotSupportedError", "kBalancedPoolMissingUpstreamError", "BalancedPoolMissingUpstreamError", "kHTTPParserError", "HTTPParserError", "code", "data", "kResponseExceededMaxSizeError", "ResponseExceededMaxSizeError", "kRequestRetryError", "RequestRetryError", "kResponseError", "ResponseError", "kSecureProxyConnectionError", "SecureProxyConnectionError", "cause", "options", "kMessageSizeExceededError", "MessageSizeExceededError", "require_constants", "__commonJSMin", "exports", "module", "headerNameLowerCasedRecord", "wellknownHeaderNames", "i", "key", "lowerCasedKey", "require_tree", "__commonJSMin", "exports", "module", "wellknownHeaderNames", "headerNameLowerCasedRecord", "TstNode", "_TstNode", "__name", "key", "value", "index", "length", "node", "code", "keylength", "TernarySearchTree", "tree", "i", "require_util", "__commonJSMin", "exports", "module", "assert", "kDestroyed", "kBodyUsed", "kListeners", "kBody", "IncomingMessage", "stream", "net", "Blob", "nodeUtil", "stringify", "EE", "InvalidArgumentError", "headerNameLowerCasedRecord", "tree", "nodeMajor", "nodeMinor", "v", "BodyAsyncIterable", "__name", "body", "wrapRequestBody", "isStream", "bodyLength", "isIterable", "nop", "obj", "isBlobLike", "object", "sTag", "buildURL", "url", "queryParams", "stringified", "isValidPort", "port", "value", "isHttpOrHttpsPrefixed", "parseURL", "origin", "path", "parseOrigin", "getHostname", "host", "idx", "getServerName", "servername", "deepClone", "isAsyncIterable", "state", "isBuffer", "isDestroyed", "destroy", "err", "KEEPALIVE_TIMEOUT_EXPR", "parseKeepAliveTimeout", "val", "m", "headerNameToString", "bufferToLowerCasedHeaderName", "parseHeaders", "headers", "i", "key", "headersValue", "x", "parseRawHeaders", "len", "ret", "hasContentLength", "contentDispositionIdx", "kLen", "n", "buffer", "validateHandler", "handler", "method", "upgrade", "isDisturbed", "isErrored", "isReadable", "getSocketInfo", "socket", "ReadableStreamFrom", "iterable", "iterator", "controller", "done", "buf", "reason", "isFormDataLike", "addAbortListener", "signal", "listener", "hasToWellFormed", "hasIsWellFormed", "toUSVString", "isUSVString", "isTokenCharCode", "c", "isValidHTTPToken", "characters", "headerCharRegex", "isValidHeaderValue", "parseRangeHeader", "range", "addListener", "name", "removeAllListeners", "errorRequest", "client", "request", "kEnumerableProperty", "normalizedMethodRecordsBase", "normalizedMethodRecords", "require_diagnostics", "__commonJSMin", "exports", "module", "diagnosticsChannel", "util", "undiciDebugLog", "fetchDebuglog", "websocketDebuglog", "isClientSet", "channels", "debuglog", "evt", "version", "protocol", "port", "host", "error", "method", "path", "origin", "statusCode", "address", "websocket", "code", "reason", "err", "require_request", "__commonJSMin", "exports", "module", "InvalidArgumentError", "NotSupportedError", "assert", "isValidHTTPToken", "isValidHeaderValue", "isStream", "destroy", "isBuffer", "isFormDataLike", "isIterable", "isBlobLike", "buildURL", "validateHandler", "getServerName", "normalizedMethodRecords", "channels", "headerNameLowerCasedRecord", "invalidPathRegex", "kHandler", "Request", "__name", "origin", "path", "method", "body", "headers", "query", "idempotent", "blocking", "upgrade", "headersTimeout", "bodyTimeout", "resetLine truncated
|
||||
"sources": ["../node_modules/tunnel/lib/tunnel.js", "../node_modules/tunnel/index.js", "../node_modules/undici/lib/core/symbols.js", "../node_modules/undici/lib/core/errors.js", "../node_modules/undici/lib/core/constants.js", "../node_modules/undici/lib/core/tree.js", "../node_modules/undici/lib/core/util.js", "../node_modules/undici/lib/core/diagnostics.js", "../node_modules/undici/lib/core/request.js", "../node_modules/undici/lib/dispatcher/dispatcher.js", "../node_modules/undici/lib/dispatcher/dispatcher-base.js", "../node_modules/undici/lib/util/timers.js", "../node_modules/undici/lib/core/connect.js", "../node_modules/undici/lib/llhttp/utils.js", "../node_modules/undici/lib/llhttp/constants.js", "../node_modules/undici/lib/llhttp/llhttp-wasm.js", "../node_modules/undici/lib/llhttp/llhttp_simd-wasm.js", "../node_modules/undici/lib/web/fetch/constants.js", "../node_modules/undici/lib/web/fetch/global.js", "../node_modules/undici/lib/web/fetch/data-url.js", "../node_modules/undici/lib/web/fetch/webidl.js", "../node_modules/undici/lib/web/fetch/util.js", "../node_modules/undici/lib/web/fetch/symbols.js", "../node_modules/undici/lib/web/fetch/file.js", "../node_modules/undici/lib/web/fetch/formdata.js", "../node_modules/undici/lib/web/fetch/formdata-parser.js", "../node_modules/undici/lib/web/fetch/body.js", "../node_modules/undici/lib/dispatcher/client-h1.js", "../node_modules/undici/lib/dispatcher/client-h2.js", "../node_modules/undici/lib/handler/redirect-handler.js", "../node_modules/undici/lib/interceptor/redirect-interceptor.js", "../node_modules/undici/lib/dispatcher/client.js", "../node_modules/undici/lib/dispatcher/fixed-queue.js", "../node_modules/undici/lib/dispatcher/pool-stats.js", "../node_modules/undici/lib/dispatcher/pool-base.js", "../node_modules/undici/lib/dispatcher/pool.js", "../node_modules/undici/lib/dispatcher/balanced-pool.js", "../node_modules/undici/lib/dispatcher/agent.js", "../node_modules/undici/lib/dispatcher/proxy-agent.js", "../node_modules/undici/lib/dispatcher/env-http-proxy-agent.js", "../node_modules/undici/lib/handler/retry-handler.js", "../node_modules/undici/lib/dispatcher/retry-agent.js", "../node_modules/undici/lib/api/readable.js", "../node_modules/undici/lib/api/util.js", "../node_modules/undici/lib/api/api-request.js", "../node_modules/undici/lib/api/abort-signal.js", "../node_modules/undici/lib/api/api-stream.js", "../node_modules/undici/lib/api/api-pipeline.js", "../node_modules/undici/lib/api/api-upgrade.js", "../node_modules/undici/lib/api/api-connect.js", "../node_modules/undici/lib/api/index.js", "../node_modules/undici/lib/mock/mock-errors.js", "../node_modules/undici/lib/mock/mock-symbols.js", "../node_modules/undici/lib/mock/mock-utils.js", "../node_modules/undici/lib/mock/mock-interceptor.js", "../node_modules/undici/lib/mock/mock-client.js", "../node_modules/undici/lib/mock/mock-pool.js", "../node_modules/undici/lib/mock/pluralizer.js", "../node_modules/undici/lib/mock/pending-interceptors-formatter.js", "../node_modules/undici/lib/mock/mock-agent.js", "../node_modules/undici/lib/global.js", "../node_modules/undici/lib/handler/decorator-handler.js", "../node_modules/undici/lib/interceptor/redirect.js", "../node_modules/undici/lib/interceptor/retry.js", "../node_modules/undici/lib/interceptor/dump.js", "../node_modules/undici/lib/interceptor/dns.js", "../node_modules/undici/lib/web/fetch/headers.js", "../node_modules/undici/lib/web/fetch/response.js", "../node_modules/undici/lib/web/fetch/dispatcher-weakref.js", "../node_modules/undici/lib/web/fetch/request.js", "../node_modules/undici/lib/web/fetch/index.js", "../node_modules/undici/lib/web/fileapi/symbols.js", "../node_modules/undici/lib/web/fileapi/progressevent.js", "../node_modules/undici/lib/web/fileapi/encoding.js", "../node_modules/undici/lib/web/fileapi/util.js", "../node_modules/undici/lib/web/fileapi/filereader.js", "../node_modules/undici/lib/web/cache/symbols.js", "../node_modules/undici/lib/web/cache/util.js", "../node_modules/undici/lib/web/cache/cache.js", "../node_modules/undici/lib/web/cache/cachestorage.js", "../node_modules/undici/lib/web/cookies/constants.js", "../node_modules/undici/lib/web/cookies/util.js", "../node_modules/undici/lib/web/cookies/parse.js", "../node_modules/undici/lib/web/cookies/index.js", "../node_modules/undici/lib/web/websocket/events.js", "../node_modules/undici/lib/web/websocket/constants.js", "../node_modules/undici/lib/web/websocket/symbols.js", "../node_modules/undici/lib/web/websocket/util.js", "../node_modules/undici/lib/web/websocket/frame.js", "../node_modules/undici/lib/web/websocket/connection.js", "../node_modules/undici/lib/web/websocket/permessage-deflate.js", "../node_modules/undici/lib/web/websocket/receiver.js", "../node_modules/undici/lib/web/websocket/sender.js", "../node_modules/undici/lib/web/websocket/websocket.js", "../node_modules/undici/lib/web/eventsource/util.js", "../node_modules/undici/lib/web/eventsource/eventsource-stream.js",Line truncated
|
||||
"sourcesContent": ["'use strict';\n\nvar net = require('net');\nvar tls = require('tls');\nvar http = require('http');\nvar https = require('https');\nvar events = require('events');\nvar assert = require('assert');\nvar util = require('util');\n\n\nexports.httpOverHttp = httpOverHttp;\nexports.httpsOverHttp = httpsOverHttp;\nexports.httpOverHttps = httpOverHttps;\nexports.httpsOverHttps = httpsOverHttps;\n\n\nfunction httpOverHttp(options) {\n var agent = new TunnelingAgent(options);\n agent.request = http.request;\n return agent;\n}\n\nfunction httpsOverHttp(options) {\n var agent = new TunnelingAgent(options);\n agent.request = http.request;\n agent.createSocket = createSecureSocket;\n agent.defaultPort = 443;\n return agent;\n}\n\nfunction httpOverHttps(options) {\n var agent = new TunnelingAgent(options);\n agent.request = https.request;\n return agent;\n}\n\nfunction httpsOverHttps(options) {\n var agent = new TunnelingAgent(options);\n agent.request = https.request;\n agent.createSocket = createSecureSocket;\n agent.defaultPort = 443;\n return agent;\n}\n\n\nfunction TunnelingAgent(options) {\n var self = this;\n self.options = options || {};\n self.proxyOptions = self.options.proxy || {};\n self.maxSockets = self.options.maxSockets || http.Agent.defaultMaxSockets;\n self.requests = [];\n self.sockets = [];\n\n self.on('free', function onFree(socket, host, port, localAddress) {\n var options = toOptions(host, port, localAddress);\n for (var i = 0, len = self.requests.length; i < len; ++i) {\n var pending = self.requests[i];\n if (pending.host === options.host && pending.port === options.port) {\n // Detect the request to connect same origin server,\n // reuse the connection.\n self.requests.splice(i, 1);\n pending.request.onSocket(socket);\n return;\n }\n }\n socket.destroy();\n self.removeSocket(socket);\n });\n}\nutil.inherits(TunnelingAgent, events.EventEmitter);\n\nTunnelingAgent.prototype.addRequest = function addRequest(req, host, port, localAddress) {\n var self = this;\n var options = mergeOptions({request: req}, self.options, toOptions(host, port, localAddress));\n\n if (self.sockets.length >= this.maxSockets) {\n // We are over limit so we'll add it to the queue.\n self.requests.push(options);\n return;\n }\n\n // If we are under maxSockets create a new one.\n self.createSocket(options, function(socket) {\n socket.on('free', onFree);\n socket.on('close', onCloseOrRemove);\n socket.on('agentRemove', onCloseOrRemove);\n req.onSocket(socket);\n\n function onFree() {\n self.emit('free', socket, options);\n }\n\n function onCloseOrRemove(err) {\n self.removeSocket(socket);\n socket.removeListener('free', onFree);\n socket.removeListener('close', onCloseOrRemove);\n socket.removeListener('agentRemove', onCloseOrRemove);\n }\n });\n};\n\nTunnelingAgent.prototype.createSocket = function createSocket(options, cb) {\n var self = this;\n var placeholder = {};\n self.sockets.push(placeholder);\n\n var connectOptions = mergeOptions({}, self.proxyOptions, {\n method: 'CONNECT',\n path: options.host + ':' + options.port,\n agent: false,\n headers: {\n host: options.host + ':' + options.port\n }\n });\n if (options.localAddress) {\n connectOptions.localAddress = options.localAddress;\n }\n if (connectOptions.proxyAuth) {\n connectOptions.headers = connectOptions.headers || {};\n connectOptions.headers['Proxy-Authorization'] = 'Basic ' +\n new Buffer(connectOptions.proxyAuth).toString('base64');\n }\n\n debug('making CONNECT request');\n var connectReq = self.request(connectOptions);\n connectReq.useChunkedEncodingByDefault = false; // for v0.6\n connectReq.once('response', onResponse); // for v0.6\n connectReq.once('upgrade', onUpgrade); // for v0.6\n connectReq.once('connect', onConnect); // for v0.7 or later\n connectReq.once('error', onError);\n connectReq.end();\n\n function onResponse(res) {\n // Very hacky. This is necessary to avoid http-parser leaks.\n res.upgrade = true;\n }\n\n function onUpgrade(res, socket, head) {\n // Hacky.\n process.nextTick(function() {\n onConnect(res, socket, head);\n });\n }\n\n function onConnect(res, socket, head) {\n connectReq.removeAllListeners();\n socket.removeAllListeners();\n\n if (res.statusCode !== 200) {\n debug('tunneling socket could not be established, statusCode=%d',\n res.statusCode);\n socket.destroy();\n var error = new Error('tunneling socket could not be established, ' +\n 'statusCode=' + res.statusCode);\n error.code = 'ECONNRESET';\n options.request.emit('error', error);\n self.removeSocket(placeholder);\n return;\n }\n if (head.length > 0) {\n debug('got illegal response body from proxy');\n socket.destroy();\n var error = new Error('Line truncated
|
||||
"mappings": "ipBAAA,IAAAA,GAAAC,EAAAC,IAAA,cAEA,IAAIC,IAAM,QAAQ,KAAK,EACnBC,IAAM,QAAQ,KAAK,EACnBC,GAAO,QAAQ,MAAM,EACrBC,GAAQ,QAAQ,OAAO,EACvBC,IAAS,QAAQ,QAAQ,EACzBC,IAAS,QAAQ,QAAQ,EACzBC,IAAO,QAAQ,MAAM,EAGzBP,GAAQ,aAAeQ,IACvBR,GAAQ,cAAgBS,IACxBT,GAAQ,cAAgBU,IACxBV,GAAQ,eAAiBW,IAGzB,SAASH,IAAaI,EAAS,CAC7B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUV,GAAK,QACdU,CACT,CAJSE,EAAAP,IAAA,gBAMT,SAASC,IAAcG,EAAS,CAC9B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUV,GAAK,QACrBU,EAAM,aAAeG,GACrBH,EAAM,YAAc,IACbA,CACT,CANSE,EAAAN,IAAA,iBAQT,SAASC,IAAcE,EAAS,CAC9B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUT,GAAM,QACfS,CACT,CAJSE,EAAAL,IAAA,iBAMT,SAASC,IAAeC,EAAS,CAC/B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUT,GAAM,QACtBS,EAAM,aAAeG,GACrBH,EAAM,YAAc,IACbA,CACT,CANSE,EAAAJ,IAAA,kBAST,SAASG,GAAeF,EAAS,CAC/B,IAAIK,EAAO,KACXA,EAAK,QAAUL,GAAW,CAAC,EAC3BK,EAAK,aAAeA,EAAK,QAAQ,OAAS,CAAC,EAC3CA,EAAK,WAAaA,EAAK,QAAQ,YAAcd,GAAK,MAAM,kBACxDc,EAAK,SAAW,CAAC,EACjBA,EAAK,QAAU,CAAC,EAEhBA,EAAK,GAAG,OAAQF,EAAA,SAAgBG,EAAQC,EAAMC,EAAMC,EAAc,CAEhE,QADIT,EAAUU,GAAUH,EAAMC,EAAMC,CAAY,EACvCE,EAAI,EAAGC,EAAMP,EAAK,SAAS,OAAQM,EAAIC,EAAK,EAAED,EAAG,CACxD,IAAIE,EAAUR,EAAK,SAASM,CAAC,EAC7B,GAAIE,EAAQ,OAASb,EAAQ,MAAQa,EAAQ,OAASb,EAAQ,KAAM,CAGlEK,EAAK,SAAS,OAAOM,EAAG,CAAC,EACzBE,EAAQ,QAAQ,SAASP,CAAM,EAC/B,MACF,CACF,CACAA,EAAO,QAAQ,EACfD,EAAK,aAAaC,CAAM,CAC1B,EAdgB,SAcf,CACH,CAvBSH,EAAAD,GAAA,kBAwBTP,IAAK,SAASO,GAAgBT,IAAO,YAAY,EAEjDS,GAAe,UAAU,WAAaC,EAAA,SAAoBW,EAAKP,EAAMC,EAAMC,EAAc,CACvF,IAAIJ,EAAO,KACPL,EAAUe,GAAa,CAAC,QAASD,CAAG,EAAGT,EAAK,QAASK,GAAUH,EAAMC,EAAMC,CAAY,CAAC,EAE5F,GAAIJ,EAAK,QAAQ,QAAU,KAAK,WAAY,CAE1CA,EAAK,SAAS,KAAKL,CAAO,EAC1B,MACF,CAGAK,EAAK,aAAaL,EAAS,SAASM,EAAQ,CAC1CA,EAAO,GAAG,OAAQU,CAAM,EACxBV,EAAO,GAAG,QAASW,CAAe,EAClCX,EAAO,GAAG,cAAeW,CAAe,EACxCH,EAAI,SAASR,CAAM,EAEnB,SAASU,GAAS,CAChBX,EAAK,KAAK,OAAQC,EAAQN,CAAO,CACnC,CAFSG,EAAAa,EAAA,UAIT,SAASC,EAAgBC,EAAK,CAC5Bb,EAAK,aAAaC,CAAM,EACxBA,EAAO,eAAe,OAAQU,CAAM,EACpCV,EAAO,eAAe,QAASW,CAAe,EAC9CX,EAAO,eAAe,cAAeW,CAAe,CACtD,CALSd,EAAAc,EAAA,kBAMX,CAAC,CACH,EA5BsC,cA8BtCf,GAAe,UAAU,aAAeC,EAAA,SAAsBH,EAASmB,EAAI,CACzE,IAAId,EAAO,KACPe,EAAc,CAAC,EACnBf,EAAK,QAAQ,KAAKe,CAAW,EAE7B,IAAIC,EAAiBN,GAAa,CAAC,EAAGV,EAAK,aAAc,CACvD,OAAQ,UACR,KAAML,EAAQ,KAAO,IAAMA,EAAQ,KACnC,MAAO,GACP,QAAS,CACP,KAAMA,EAAQ,KAAO,IAAMA,EAAQ,IACrC,CACF,CAAC,EACGA,EAAQ,eACVqB,EAAe,aAAerB,EAAQ,cAEpCqB,EAAe,YACjBA,EAAe,QAAUA,EAAe,SAAW,CAAC,EACpDA,EAAe,QAAQ,qBAAqB,EAAI,SAC5C,IAAI,OAAOA,EAAe,SAAS,EAAE,SAAS,QAAQ,GAG5DC,GAAM,wBAAwB,EAC9B,IAAIC,EAAalB,EAAK,QAAQgB,CAAc,EAC5CE,EAAW,4BAA8B,GACzCA,EAAW,KAAK,WAAYC,CAAU,EACtCD,EAAW,KAAK,UAAWE,CAAS,EACpCF,EAAW,KAAK,UAAWG,CAAS,EACpCH,EAAW,KAAK,QAASI,CAAO,EAChCJ,EAAW,IAAI,EAEf,SAASC,EAAWI,EAAK,CAEvBA,EAAI,QAAU,EAChB,CAHSzB,EAAAqB,EAAA,cAKT,SAASC,EAAUG,EAAKtB,EAAQuB,EAAM,CAEpC,QAAQ,SAAS,UAAW,CAC1BH,EAAUE,EAAKtB,EAAQuB,CAAI,CAC7B,CAAC,CACH,CALS1B,EAAAsB,EAAA,aAOT,SAASC,EAAUE,EAAKtB,EAAQuB,EAAM,CAIpC,GAHAN,EAAW,mBAAmB,EAC9BjB,EAAO,mBAAmB,EAEtBsB,EAAI,aAAe,IAAK,CAC1BN,GAAM,2DACJM,EAAI,UAAU,EAChBtB,EAAO,QAAQ,EACf,IAAIwB,EAAQ,IAAI,MAAM,yDACJF,EAAI,UAAU,EAChCE,EAAM,KAAO,aACb9B,EAAQ,QAAQ,KAAK,QAAS8B,CAAK,EACnCzB,EAAK,aAAae,CAAW,EAC7B,MACF,CACA,GAAIS,EAAK,OAAS,EAAG,CACnBP,GAAM,sCAAsC,EAC5ChB,EAAO,QAAQ,EACf,IAAIwB,EAAQ,IAAI,MAAM,sCAAsC,EAC5DA,EAAM,KAAO,aACb9B,EAAQ,QAAQ,KAAK,QAAS8B,CAAK,EACnCzB,EAAK,aAAae,CAAW,EAC7B,MACF,CACA,OAAAE,GAAM,sCAAsC,EAC5CjB,EAAK,QAAQA,EAAK,QAAQ,QAAQe,CAAW,CAAC,EAAId,EAC3Ca,EAAGb,CAAM,CAClB,CA3BSH,EAAAuB,EAAA,aA6BT,SAASC,EAAQI,EAAO,CACtBR,EAAW,mBAAmB,EAE9BD,GAAM;AAAA,EACAS,EAAM,QAASA,EAAM,KAAK,EAChC,IAAID,EAAQ,IAAI,MAAM,oDACWC,EAAM,OAAO,EAC9CD,EAAM,KAAO,aACb9B,EAAQ,QAAQ,KAAK,QAAS8B,CAAK,EACnCzB,EAAK,aAAae,CAAW,CAC/B,CAVSjB,EAAAwB,EAAA,UAWX,EAnFwC,gBAqFxCzB,GAAe,UAAU,aAAeC,EAAA,SAAsBG,EAAQ,CACpE,IAAI0B,EAAM,KAAK,QAAQ,QAAQ1B,CAAM,EACrC,GAAI0B,IAAQ,GAGZ,MAAK,QAAQ,OAAOA,EAAK,CAAC,EAE1B,IAAInB,EAAU,KAAK,SAAS,MAAM,EAC9BA,GAGF,KAAK,aAAaA,EAAS,SAASP,EAAQ,CAC1CO,EAAQ,QAAQ,SAASP,CAAM,CACjC,CAAC,EAEL,EAfwC,gBAiBxC,SAASF,GAAmBJ,EAASmB,EAAI,CACvC,IAAId,EAAO,KACXH,GAAe,UAAU,aAAa,KAAKG,EAAML,EAAS,SAASM,EAAQ,CACzE,IAAI2B,EAAajC,EAAQ,QAAQ,UAAU,MAAM,EAC7CkC,EAAanB,GAAa,CAAC,EAAGV,EAAK,QAAS,CAC9C,OAAQC,EACR,WAAY2B,EAAaA,EAAW,QAAQ,OAAQ,EAAE,EAAIjC,EAAQ,IACpE,CAAC,EAGGmC,EAAe7C,IAAI,QAAQ,EAAG4C,CAAU,EAC5C7B,EAAK,QAAQA,EAAK,QAAQ,QAAQC,CAAM,CAAC,EAAI6B,EAC7ChB,EAAGgB,CAAY,CACjB,CAAC,CACH,CAdShC,EAAAC,GAAA,sBAiBT,SAASM,GAAUH,EAAMC,EAAMC,EAAc,CAC3C,OAAI,OAAOF,GAAS,SACX,CACL,KAAMA,EACN,KAAMC,EACN,aAAcC,CAChB,EAEKF,CACT,CATSJ,EAAAO,GAAA,aAWT,SAASK,GAAaqB,EAAQ,CAC5B,QAASzB,EAAI,EAAGC,EAAM,UAAU,OAAQD,EAAIC,EAAK,EAAED,EAAG,CACpD,IAAI0B,EAAY,UAAU1B,CAAC,EAC3B,GAAI,OAAO0B,GAAc,SAEvB,QADIC,EAAO,OAAO,KAAKD,CAAS,EACvBE,EAAI,EAAGC,EAASF,EAAK,OAAQC,EAAIC,EAAQ,EAAED,EAAG,CACrD,IAAIE,EAAIH,EAAKC,CAAC,EACVF,EAAUI,CAAC,IAAM,SACnBL,EAAOK,CAAC,EAAIJ,EAAUI,CAAC,EAE3B,CAEJ,CACA,OAAOL,CACT,CAdSjC,EAAAY,GAAA,gBAiBT,IAAIO,GACA,QAAQ,IAAI,YAAc,aAAa,KAAK,QAAQ,IAAI,UAAU,EACpEA,GAAQnB,EAAA,UAAW,CACjB,IAAIuC,EAAO,MAAM,UAAU,MAAM,KAAK,SAAS,EAC3C,OAAOA,EAAK,CAAC,GAAM,SACrBA,EAAK,CAAC,EAAI,WALine truncated
|
||||
"names": ["require_tunnel", "__commonJSMin", "exports", "net", "tls", "http", "https", "events", "assert", "util", "httpOverHttp", "httpsOverHttp", "httpOverHttps", "httpsOverHttps", "options", "agent", "TunnelingAgent", "__name", "createSecureSocket", "self", "socket", "host", "port", "localAddress", "toOptions", "i", "len", "pending", "req", "mergeOptions", "onFree", "onCloseOrRemove", "err", "cb", "placeholder", "connectOptions", "debug", "connectReq", "onResponse", "onUpgrade", "onConnect", "onError", "res", "head", "error", "cause", "pos", "hostHeader", "tlsOptions", "secureSocket", "target", "overrides", "keys", "j", "keyLen", "k", "args", "require_tunnel", "__commonJSMin", "exports", "module", "require_symbols", "__commonJSMin", "exports", "module", "require_errors", "__commonJSMin", "exports", "module", "kUndiciError", "UndiciError", "__name", "message", "instance", "kConnectTimeoutError", "ConnectTimeoutError", "kHeadersTimeoutError", "HeadersTimeoutError", "kHeadersOverflowError", "HeadersOverflowError", "kBodyTimeoutError", "BodyTimeoutError", "kResponseStatusCodeError", "ResponseStatusCodeError", "statusCode", "headers", "body", "kInvalidArgumentError", "InvalidArgumentError", "kInvalidReturnValueError", "InvalidReturnValueError", "kAbortError", "AbortError", "kRequestAbortedError", "RequestAbortedError", "kInformationalError", "InformationalError", "kRequestContentLengthMismatchError", "RequestContentLengthMismatchError", "kResponseContentLengthMismatchError", "ResponseContentLengthMismatchError", "kClientDestroyedError", "ClientDestroyedError", "kClientClosedError", "ClientClosedError", "kSocketError", "SocketError", "socket", "kNotSupportedError", "NotSupportedError", "kBalancedPoolMissingUpstreamError", "BalancedPoolMissingUpstreamError", "kHTTPParserError", "HTTPParserError", "code", "data", "kResponseExceededMaxSizeError", "ResponseExceededMaxSizeError", "kRequestRetryError", "RequestRetryError", "kResponseError", "ResponseError", "kSecureProxyConnectionError", "SecureProxyConnectionError", "cause", "options", "kMessageSizeExceededError", "MessageSizeExceededError", "require_constants", "__commonJSMin", "exports", "module", "headerNameLowerCasedRecord", "wellknownHeaderNames", "i", "key", "lowerCasedKey", "require_tree", "__commonJSMin", "exports", "module", "wellknownHeaderNames", "headerNameLowerCasedRecord", "TstNode", "_TstNode", "__name", "key", "value", "index", "length", "node", "code", "keylength", "TernarySearchTree", "tree", "i", "require_util", "__commonJSMin", "exports", "module", "assert", "kDestroyed", "kBodyUsed", "kListeners", "kBody", "IncomingMessage", "stream", "net", "Blob", "nodeUtil", "stringify", "EE", "InvalidArgumentError", "headerNameLowerCasedRecord", "tree", "nodeMajor", "nodeMinor", "v", "BodyAsyncIterable", "__name", "body", "wrapRequestBody", "isStream", "bodyLength", "isIterable", "nop", "obj", "isBlobLike", "object", "sTag", "buildURL", "url", "queryParams", "stringified", "isValidPort", "port", "value", "isHttpOrHttpsPrefixed", "parseURL", "origin", "path", "parseOrigin", "getHostname", "host", "idx", "getServerName", "servername", "deepClone", "isAsyncIterable", "state", "isBuffer", "isDestroyed", "destroy", "err", "KEEPALIVE_TIMEOUT_EXPR", "parseKeepAliveTimeout", "val", "m", "headerNameToString", "bufferToLowerCasedHeaderName", "parseHeaders", "headers", "i", "key", "headersValue", "x", "parseRawHeaders", "len", "ret", "hasContentLength", "contentDispositionIdx", "kLen", "n", "buffer", "validateHandler", "handler", "method", "upgrade", "isDisturbed", "isErrored", "isReadable", "getSocketInfo", "socket", "ReadableStreamFrom", "iterable", "iterator", "controller", "done", "buf", "reason", "isFormDataLike", "addAbortListener", "signal", "listener", "hasToWellFormed", "hasIsWellFormed", "toUSVString", "isUSVString", "isTokenCharCode", "c", "isValidHTTPToken", "characters", "headerCharRegex", "isValidHeaderValue", "parseRangeHeader", "range", "addListener", "name", "removeAllListeners", "errorRequest", "client", "request", "kEnumerableProperty", "normalizedMethodRecordsBase", "normalizedMethodRecords", "require_diagnostics", "__commonJSMin", "exports", "module", "diagnosticsChannel", "util", "undiciDebugLog", "fetchDebuglog", "websocketDebuglog", "isClientSet", "channels", "debuglog", "evt", "version", "protocol", "port", "host", "error", "method", "path", "origin", "statusCode", "address", "websocket", "code", "reason", "err", "require_request", "__commonJSMin", "exports", "module", "InvalidArgumentError", "NotSupportedError", "assert", "isValidHTTPToken", "isValidHeaderValue", "isStream", "destroy", "isBuffer", "isFormDataLike", "isIterable", "isBlobLike", "buildURL", "validateHandler", "getServerName", "normalizedMethodRecords", "channels", "headerNameLowerCasedRecord", "invalidPathRegex", "kHandler", "Request", "__name", "origin", "path", "method", "body", "headers", "query", "idempotent", "blocking", "upgrade", "headersTimeout", "bodyTimeout", "resetLine truncated
|
||||
}
|
||||
+14
-662
@@ -3,11 +3,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.2.1
|
||||
- @sigstore/bundle@5.0.0
|
||||
- @sigstore/core@4.0.1
|
||||
- @sigstore/protobuf-specs@0.5.0
|
||||
- @sigstore/sign@4.1.1
|
||||
- @sigstore/tuf@4.0.2
|
||||
- @sigstore/tuf@5.0.0
|
||||
|
||||
These packages each contain the following license:
|
||||
|
||||
@@ -217,7 +216,7 @@ Apache License
|
||||
|
||||
The following npm package may be included in this product:
|
||||
|
||||
- @docker/actions-toolkit@0.91.0
|
||||
- @docker/actions-toolkit@0.92.0
|
||||
|
||||
This package contains the following license:
|
||||
|
||||
@@ -1793,7 +1792,7 @@ SOFTWARE.
|
||||
|
||||
The following npm package may be included in this product:
|
||||
|
||||
- js-yaml@4.3.0
|
||||
- js-yaml@5.2.0
|
||||
|
||||
This package contains the following license:
|
||||
|
||||
@@ -1821,46 +1820,11 @@ THE SOFTWARE.
|
||||
|
||||
-----------
|
||||
|
||||
The following npm package may be included in this product:
|
||||
|
||||
- negotiator@1.0.0
|
||||
|
||||
This package contains the following license:
|
||||
|
||||
(The MIT License)
|
||||
|
||||
Copyright (c) 2012-2014 Federico Romero
|
||||
Copyright (c) 2012-2014 Isaac Z. Schlueter
|
||||
Copyright (c) 2014-2015 Douglas Christopher Wilson
|
||||
|
||||
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:
|
||||
|
||||
- agent-base@7.1.1
|
||||
- agent-base@7.1.4
|
||||
- https-proxy-agent@7.0.4
|
||||
- https-proxy-agent@7.0.6
|
||||
- socks-proxy-agent@8.0.3
|
||||
|
||||
These packages each contain the following license:
|
||||
|
||||
@@ -2061,10 +2025,8 @@ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH RE
|
||||
|
||||
The following npm packages may be included in this product:
|
||||
|
||||
- lru-cache@11.2.6
|
||||
- minipass@7.1.3
|
||||
- path-scurry@1.11.1
|
||||
- path-scurry@2.0.2
|
||||
|
||||
These packages each contain the following license:
|
||||
|
||||
@@ -2129,7 +2091,7 @@ software or this license, under any kind of legal claim.***
|
||||
The following npm packages may be included in this product:
|
||||
|
||||
- jackspeak@3.4.3
|
||||
- minimatch@10.2.4
|
||||
- minimatch@10.2.5
|
||||
|
||||
These packages each contain the following license:
|
||||
|
||||
@@ -2237,35 +2199,6 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
|
||||
|
||||
-----------
|
||||
|
||||
The following npm package may be included in this product:
|
||||
|
||||
- @npmcli/fs@5.0.0
|
||||
|
||||
This package contains the following license:
|
||||
|
||||
<!-- This file is automatically added by @npmcli/template-oss. Do not edit. -->
|
||||
|
||||
ISC License
|
||||
|
||||
Copyright npm, Inc.
|
||||
|
||||
Permission to use, copy, modify, and/or distribute this
|
||||
software for any purpose with or without fee is hereby
|
||||
granted, provided that the above copyright notice and this
|
||||
permission notice appear in all copies.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS" AND NPM DISCLAIMS ALL
|
||||
WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
|
||||
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO
|
||||
EVENT SHALL NPM BE LIABLE FOR ANY SPECIAL, DIRECT,
|
||||
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
||||
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
|
||||
WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
|
||||
TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE
|
||||
USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
|
||||
-----------
|
||||
|
||||
The following npm package may be included in this product:
|
||||
|
||||
- argparse@2.0.1
|
||||
@@ -2561,12 +2494,11 @@ SOFTWARE OR THE USE OR 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:
|
||||
|
||||
- glob@13.0.6
|
||||
- package-json-from-dist@1.0.1
|
||||
|
||||
These packages each contain the following license:
|
||||
This package contains the following license:
|
||||
|
||||
All packages under `src/` are licensed according to the terms in
|
||||
their respective `LICENSE` or `LICENSE.md` files.
|
||||
@@ -2700,7 +2632,7 @@ END OF TERMS AND CONDITIONS
|
||||
|
||||
The following npm package may be included in this product:
|
||||
|
||||
- @sigstore/verify@3.1.1
|
||||
- @sigstore/verify@4.1.0
|
||||
|
||||
This package contains the following license:
|
||||
|
||||
@@ -2708,39 +2640,6 @@ Apache-2.0
|
||||
|
||||
-----------
|
||||
|
||||
The following npm package may be included in this product:
|
||||
|
||||
- sprintf-js@1.1.3
|
||||
|
||||
This package contains the following license:
|
||||
|
||||
Copyright (c) 2007-present, Alexandru Mărășteanu <hello@alexei.ro>
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without
|
||||
modification, are permitted provided that the following conditions are met:
|
||||
* Redistributions of source code must retain the above copyright
|
||||
notice, this list of conditions and the following disclaimer.
|
||||
* Redistributions in binary form must reproduce the above copyright
|
||||
notice, this list of conditions and the following disclaimer in the
|
||||
documentation and/or other materials provided with the distribution.
|
||||
* Neither the name of this software nor the names of its contributors may be
|
||||
used to endorse or promote products derived from this software without
|
||||
specific prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
||||
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||
DISCLAIMED. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR
|
||||
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
||||
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
||||
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
|
||||
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
||||
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
-----------
|
||||
|
||||
The following npm package may be included in this product:
|
||||
|
||||
- async@3.2.5
|
||||
@@ -2769,63 +2668,6 @@ THE SOFTWARE.
|
||||
|
||||
-----------
|
||||
|
||||
The following npm package may be included in this product:
|
||||
|
||||
- iconv-lite@0.7.2
|
||||
|
||||
This package contains the following license:
|
||||
|
||||
Copyright (c) 2011 Alexander Shtuchkin
|
||||
|
||||
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:
|
||||
|
||||
- ip-address@9.0.5
|
||||
|
||||
This package contains the following license:
|
||||
|
||||
Copyright (C) 2011 by Beau Gunderson
|
||||
|
||||
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:
|
||||
|
||||
- @gar/promise-retry@1.0.3
|
||||
@@ -3037,34 +2879,6 @@ OTHER DEALINGS IN THE SOFTWARE.
|
||||
|
||||
-----------
|
||||
|
||||
The following npm package may be included in this product:
|
||||
|
||||
- @gar/promise-retry@1.0.2
|
||||
|
||||
This package contains the following license:
|
||||
|
||||
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:
|
||||
|
||||
- archiver-utils@5.0.2
|
||||
@@ -3311,24 +3125,6 @@ THE SOFTWARE.
|
||||
|
||||
-----------
|
||||
|
||||
The following npm package may be included in this product:
|
||||
|
||||
- http-cache-semantics@4.1.1
|
||||
|
||||
This package contains the following license:
|
||||
|
||||
Copyright 2016-2018 Kornel Lesiński
|
||||
|
||||
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
|
||||
|
||||
1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
|
||||
|
||||
2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
-----------
|
||||
|
||||
The following npm packages may be included in this product:
|
||||
|
||||
- emoji-regex@8.0.0
|
||||
@@ -3388,20 +3184,6 @@ IN THE SOFTWARE.
|
||||
|
||||
-----------
|
||||
|
||||
The following npm package may be included in this product:
|
||||
|
||||
- unique-filename@5.0.0
|
||||
|
||||
This package contains the following license:
|
||||
|
||||
Copyright npm, Inc
|
||||
|
||||
Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
|
||||
-----------
|
||||
|
||||
The following npm package may be included in this product:
|
||||
|
||||
- lodash@4.18.1
|
||||
@@ -3458,183 +3240,12 @@ terms above.
|
||||
|
||||
-----------
|
||||
|
||||
The following npm package may be included in this product:
|
||||
|
||||
- @npmcli/agent@4.0.0
|
||||
|
||||
This package contains the following license:
|
||||
|
||||
ISC
|
||||
|
||||
-----------
|
||||
|
||||
The following npm package may be included in this product:
|
||||
|
||||
- cacache@20.0.3
|
||||
|
||||
This package contains the following license:
|
||||
|
||||
ISC License
|
||||
|
||||
Copyright (c) npm, Inc.
|
||||
|
||||
Permission to use, copy, modify, and/or distribute this software for
|
||||
any purpose with or without fee is hereby granted, provided that the
|
||||
above copyright notice and this permission notice appear in all copies.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS" AND THE COPYRIGHT HOLDER DISCLAIMS
|
||||
ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
|
||||
WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE
|
||||
COPYRIGHT HOLDER BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR
|
||||
CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS
|
||||
OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
|
||||
OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE
|
||||
USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
|
||||
-----------
|
||||
|
||||
The following npm packages may be included in this product:
|
||||
|
||||
- make-fetch-happen@15.0.4
|
||||
- make-fetch-happen@15.0.6
|
||||
|
||||
These packages each contain the following license:
|
||||
|
||||
ISC License
|
||||
|
||||
Copyright 2017-2022 (c) npm, Inc.
|
||||
|
||||
Permission to use, copy, modify, and/or distribute this software for
|
||||
any purpose with or without fee is hereby granted, provided that the
|
||||
above copyright notice and this permission notice appear in all copies.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS" AND THE COPYRIGHT HOLDER DISCLAIMS
|
||||
ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
|
||||
WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE
|
||||
COPYRIGHT HOLDER BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR
|
||||
CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS
|
||||
OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
|
||||
OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE
|
||||
USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
|
||||
-----------
|
||||
|
||||
The following npm package may be included in this product:
|
||||
|
||||
- ssri@13.0.1
|
||||
|
||||
This package contains the following license:
|
||||
|
||||
ISC License
|
||||
|
||||
Copyright 2021 (c) npm, Inc.
|
||||
|
||||
Permission to use, copy, modify, and/or distribute this software for
|
||||
any purpose with or without fee is hereby granted, provided that the
|
||||
above copyright notice and this permission notice appear in all copies.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS" AND THE COPYRIGHT HOLDER DISCLAIMS
|
||||
ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
|
||||
WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE
|
||||
COPYRIGHT HOLDER BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR
|
||||
CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS
|
||||
OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
|
||||
OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE
|
||||
USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
|
||||
-----------
|
||||
|
||||
The following npm package may be included in this product:
|
||||
|
||||
- jsbn@1.1.0
|
||||
|
||||
This package contains the following license:
|
||||
|
||||
Licensing
|
||||
---------
|
||||
|
||||
This software is covered under the following copyright:
|
||||
|
||||
/*
|
||||
* Copyright (c) 2003-2005 Tom Wu
|
||||
* All Rights Reserved.
|
||||
*
|
||||
* 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" AND WITHOUT WARRANTY OF ANY KIND,
|
||||
* EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY
|
||||
* WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
|
||||
*
|
||||
* IN NO EVENT SHALL TOM WU BE LIABLE FOR ANY SPECIAL, INCIDENTAL,
|
||||
* INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND, OR ANY DAMAGES WHATSOEVER
|
||||
* RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER OR NOT ADVISED OF
|
||||
* THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF LIABILITY, ARISING OUT
|
||||
* OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
*
|
||||
* In addition, the following condition applies:
|
||||
*
|
||||
* All redistributions must retain an intact copy of this copyright notice
|
||||
* and disclaimer.
|
||||
*/
|
||||
|
||||
Address all questions regarding this license to:
|
||||
|
||||
Tom Wu
|
||||
tjw@cs.Stanford.EDU
|
||||
|
||||
-----------
|
||||
|
||||
The following npm package may be included in this product:
|
||||
|
||||
- minizlib@3.1.0
|
||||
|
||||
This package contains the following license:
|
||||
|
||||
Minizlib was created by Isaac Z. Schlueter.
|
||||
It is a derivative work of the Node.js project.
|
||||
|
||||
"""
|
||||
Copyright (c) 2017-2023 Isaac Z. Schlueter and Contributors
|
||||
Copyright (c) 2017-2023 Node.js contributors. All rights reserved.
|
||||
Copyright (c) 2017-2023 Joyent, Inc. and other Node contributors. All rights reserved.
|
||||
|
||||
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:
|
||||
|
||||
- @nodable/entities@2.1.0
|
||||
- binary@0.3.0
|
||||
- browserify-zlib@0.1.4
|
||||
- eastasianwidth@0.2.0
|
||||
- imurmurhash@0.1.4
|
||||
- is-gzip@1.0.0
|
||||
- isarray@1.0.0
|
||||
- xml-naming@0.1.0
|
||||
@@ -3828,36 +3439,6 @@ SOFTWARE.
|
||||
|
||||
-----------
|
||||
|
||||
The following npm package may be included in this product:
|
||||
|
||||
- safer-buffer@2.1.2
|
||||
|
||||
This package contains the following license:
|
||||
|
||||
MIT License
|
||||
|
||||
Copyright (c) 2018 Nikita Skovoroda <chalkerx@gmail.com>
|
||||
|
||||
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:
|
||||
|
||||
- @octokit/plugin-retry@8.1.0
|
||||
@@ -3921,8 +3502,8 @@ SOFTWARE.
|
||||
The following npm packages may be included in this product:
|
||||
|
||||
- @tufjs/canonical-json@2.0.0
|
||||
- @tufjs/models@4.1.0
|
||||
- tuf-js@4.1.0
|
||||
- @tufjs/models@5.0.0
|
||||
- tuf-js@6.0.0
|
||||
|
||||
These packages each contain the following license:
|
||||
|
||||
@@ -4043,36 +3624,6 @@ 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
|
||||
@@ -4156,7 +3707,6 @@ The following npm packages may be included in this product:
|
||||
- ansi-regex@6.0.1
|
||||
- ansi-styles@6.2.1
|
||||
- is-stream@2.0.1
|
||||
- p-map@7.0.4
|
||||
- string-width@5.1.2
|
||||
- strip-ansi@7.1.0
|
||||
- wrap-ansi@7.0.0
|
||||
@@ -4537,30 +4087,6 @@ IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
|
||||
-----------
|
||||
|
||||
The following npm package may be included in this product:
|
||||
|
||||
- minipass@3.3.6
|
||||
|
||||
This package contains the following license:
|
||||
|
||||
The ISC License
|
||||
|
||||
Copyright (c) 2017-2022 npm, Inc., Isaac Z. Schlueter, and Contributors
|
||||
|
||||
Permission to use, copy, modify, and/or distribute this software for any
|
||||
purpose with or without fee is hereby granted, provided that the above
|
||||
copyright notice and this permission notice appear in all copies.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
||||
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
||||
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
||||
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
||||
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
||||
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
|
||||
IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
|
||||
-----------
|
||||
|
||||
The following npm package may be included in this product:
|
||||
|
||||
- minipass@7.1.0
|
||||
@@ -4585,54 +4111,6 @@ IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
|
||||
-----------
|
||||
|
||||
The following npm package may be included in this product:
|
||||
|
||||
- minipass-collect@2.0.1
|
||||
|
||||
This package contains the following license:
|
||||
|
||||
The ISC License
|
||||
|
||||
Copyright (c) 2019-2023 Isaac Z. Schlueter and Contributors
|
||||
|
||||
Permission to use, copy, modify, and/or distribute this software for any
|
||||
purpose with or without fee is hereby granted, provided that the above
|
||||
copyright notice and this permission notice appear in all copies.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
||||
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
||||
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
||||
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
||||
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
||||
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
|
||||
IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
|
||||
-----------
|
||||
|
||||
The following npm package may be included in this product:
|
||||
|
||||
- proc-log@6.1.0
|
||||
|
||||
This package contains the following license:
|
||||
|
||||
The ISC License
|
||||
|
||||
Copyright (c) GitHub, Inc.
|
||||
|
||||
Permission to use, copy, modify, and/or distribute this software for any
|
||||
purpose with or without fee is hereby granted, provided that the above
|
||||
copyright notice and this permission notice appear in all copies.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
||||
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
||||
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
||||
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
||||
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
||||
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
|
||||
IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
|
||||
-----------
|
||||
|
||||
The following npm package may be included in this product:
|
||||
|
||||
- inherits@2.0.4
|
||||
@@ -4659,21 +4137,14 @@ PERFORMANCE OF THIS SOFTWARE.
|
||||
|
||||
The following npm packages may be included in this product:
|
||||
|
||||
- fs-minipass@3.0.3
|
||||
- isexe@2.0.0
|
||||
- lru-cache@6.0.0
|
||||
- minimatch@3.1.5
|
||||
- minipass-flush@1.0.5
|
||||
- minipass-pipeline@1.2.4
|
||||
- minipass-sized@2.0.0
|
||||
- once@1.4.0
|
||||
- semver@7.5.4
|
||||
- semver@7.7.3
|
||||
- semver@7.7.4
|
||||
- semver@7.8.1
|
||||
- semver@7.8.5
|
||||
- which@2.0.2
|
||||
- wrappy@1.0.2
|
||||
- yallist@4.0.0
|
||||
|
||||
These packages each contain the following license:
|
||||
|
||||
@@ -4695,30 +4166,6 @@ IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
|
||||
-----------
|
||||
|
||||
The following npm package may be included in this product:
|
||||
|
||||
- unique-slug@6.0.0
|
||||
|
||||
This package contains the following license:
|
||||
|
||||
The ISC License
|
||||
|
||||
Copyright npm, Inc
|
||||
|
||||
Permission to use, copy, modify, and/or distribute this software for any
|
||||
purpose with or without fee is hereby granted, provided that the above
|
||||
copyright notice and this permission notice appear in all copies.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
||||
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
||||
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
||||
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
||||
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
||||
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
|
||||
IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
|
||||
-----------
|
||||
|
||||
The following npm package may be included in this product:
|
||||
|
||||
- buffer-crc32@1.0.0
|
||||
@@ -4813,7 +4260,7 @@ THE SOFTWARE.
|
||||
|
||||
The following npm package may be included in this product:
|
||||
|
||||
- csv-parse@6.2.1
|
||||
- csv-parse@7.0.0
|
||||
|
||||
This package contains the following license:
|
||||
|
||||
@@ -4871,64 +4318,6 @@ THE SOFTWARE.
|
||||
|
||||
-----------
|
||||
|
||||
The following npm package may be included in this product:
|
||||
|
||||
- socks@2.8.3
|
||||
|
||||
This package contains the following license:
|
||||
|
||||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) 2013 Josh Glazebrook
|
||||
|
||||
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:
|
||||
|
||||
- smart-buffer@4.2.0
|
||||
|
||||
This package contains the following license:
|
||||
|
||||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) 2013-2017 Josh Glazebrook
|
||||
|
||||
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:
|
||||
|
||||
- base64-js@1.5.1
|
||||
@@ -5513,47 +4902,10 @@ THE SOFTWARE.
|
||||
|
||||
-----------
|
||||
|
||||
The following npm package may be included in this product:
|
||||
|
||||
- minipass-fetch@5.0.2
|
||||
|
||||
This package contains the following license:
|
||||
|
||||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) Isaac Z. Schlueter and Contributors
|
||||
Copyright (c) 2016 David Frank
|
||||
|
||||
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.
|
||||
|
||||
---
|
||||
|
||||
Note: This is a derivative work based on "node-fetch" by David Frank,
|
||||
modified and distributed under the terms of the MIT license above.
|
||||
https://github.com/bitinn/node-fetch
|
||||
|
||||
-----------
|
||||
|
||||
The following npm packages may be included in this product:
|
||||
|
||||
- @actions/artifact@6.2.1
|
||||
- @actions/cache@6.0.1
|
||||
- @actions/cache@6.1.0
|
||||
- @actions/core@3.0.0
|
||||
- @actions/core@3.0.1
|
||||
- @actions/exec@3.0.0
|
||||
|
||||
Reference in new issue
Block a user