[dependabot skip] chore: update generated content
This commit is contained in:
1 parent
bf25466da6
commit
7b0fced239
3 files changed
+177
-209
No files matched your search
+109
-110
@@ -1,81 +1,80 @@
|
||||
var Dde=Object.create;var FE=Object.defineProperty;var Ode=Object.getOwnPropertyDescriptor;var Mde=Object.getOwnPropertyNames;var Lde=Object.getPrototypeOf,Fde=Object.prototype.hasOwnProperty;var o=(t,e)=>FE(t,"name",{value:e,configurable:!0});var m=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),Ude=(t,e)=>{for(var r in e)FE(t,r,{get:e[r],enumerable:!0})},qde=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of Mde(e))!Fde.call(t,s)&&s!==r&&FE(t,s,{get:()=>e[s],enumerable:!(n=Ode(e,s))||n.enumerable});return t};var w=(t,e,r)=>(r=t!=null?Dde(Lde(t)):{},qde(e||!t||!t.__esModule?FE(r,"default",{value:t,enumerable:!0}):r,t));var lH=m(Bd=>{"use strict";var aXe=require("net"),cfe=require("tls"),Hx=require("http"),oH=require("https"),lfe=require("events"),cXe=require("assert"),ufe=require("util");Bd.httpOverHttp=dfe;Bd.httpsOverHttp=Afe;Bd.httpOverHttps=pfe;Bd.httpsOverHttps=ffe;function dfe(t){var e=new sa(t);return e.request=Hx.request,e}o(dfe,"httpOverHttp");function Afe(t){var e=new sa(t);return e.request=Hx.request,e.createSocket=aH,e.defaultPort=443,e}o(Afe,"httpsOverHttp");function pfe(t){var e=new sa(t);return e.request=oH.request,e}o(pfe,"httpOverHttps");function ffe(t){var e=new sa(t);return e.request=oH.request,e.createSocket=aH,e.defaultPort=443,e}o(ffe,"httpsOverHttps");function sa(t){var e=this;e.options=t||{},e.proxyOptions=e.options.proxy||{},e.maxSockets=e.options.maxSockets||Hx.Agent.defaultMaxSockets,e.requests=[],e.sockets=[],e.on("free",o(function(n,s,i,a){for(var c=cH(s,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(n);return}}n.destroy(),e.removeSocket(n)},"onFree"))}o(sa,"TunnelingAgent");ufe.inherits(sa,lfe.EventEmitter);sa.prototype.addRequest=o(function(e,r,n,s){var i=this,a=Vx({request:e},i.options,cH(r,n,s));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");sa.prototype.createSocket=o(function(e,r){var n=this,s={};n.sockets.push(s);var i=Vx({},n.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")),ic("making CONNECT request");var a=n.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){ic("tunneling socket could not be established, statusCode=%d",A.statusCode),p.destroy();var h=new Error("tunneling socket could not be established, statusCode="+A.statusCode);h.code="ECONNRESET",e.request.emit("error",h),n.removeSocket(s);return}if(f.length>0){ic("got illegal response body from proxy"),p.destroy();var h=new Error("got illegal response body from proxy");h.code="ECONNRESET",e.request.emit("error",h),n.removeSocket(s);return}return ic("tunneling connection has established"),n.sockets[n.sockets.indexOf(s)]=p,r(p)}o(u,"onConnect");function d(A){a.removeAllListeners(),ic(`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),n.removeSocket(s)}o(d,"onError")},"createSocket");sa.prototype.removeSocket=o(function(e){var r=this.sockets.indexOf(e);if(r!==-1){this.sockets.splice(r,1);var n=this.requests.shift();n&&this.createSocket(n,function(s){n.request.onSocket(s)})}},"removeSocket");function aH(t,e){var r=this;sa.prototype.createSocket.call(r,t,function(n){var s=t.request.getHeader("host"),i=Vx({},r.options,{socket:n,servername:s?s.replace(/:.*$/,""):t.host}),a=cfe.connect(0,i);r.sockets[r.sockets.indexOf(n)]=a,e(a)})}o(aH,"createSecureSocket");function cH(t,e,r){return typeof t=="string"?{host:t,port:e,localAddress:r}:t}o(cH,"toOptions");function Vx(t){for(var e=1,r=arguments.length;e<r;++e){var n=arguments[e];if(typeof n=="object")for(var s=Object.keys(n),i=0,a=s.length;i<a;++i){var c=s[i];n[c]!==void 0&&(t[c]=n[c])}}return t}o(Vx,"mergeOptions");var ic;process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)?ic=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"):ic=o(function(){},"debug");Bd.debug=ic});var kf=m((dXe,uH)=>{uH.exports=lH()});var At=m((AXe,dH)=>{dH.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 _e=m((pXe,OH)=>{"use strict";var AH=Symbol.for("undici.error.UND_ERR"),pt=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[AH]===!0}[AH]=!0},pH=Symbol.for("undici.error.UND_ERR_CONNECT_TIMEOUT"),zx=class extends pt{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[pH]===!0}[pH]=!0},fH=Symbol.for("undici.error.UND_ERR_HEADERS_TIMEOUT"),$x=class extends pt{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[fH]===!0}[fH]=!0},hH=Symbol.for("undici.error.UND_ERR_HEADERS_OVERFLOW"),Jx=class extends pt{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[hH]===!0}[hH]=!0},mH=Symbol.for("undici.error.UND_ERR_BODY_TIMEOUT"),Yx=class extends pt{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(WV,"isValidHeaderValue");function Tme(t,e){let{headersList:r}=e,n=(r.get("referrer-policy",!0)??"").split(","),s="";if(n.length>0)for(let i=n.length;i!==0;i--){let a=n[i-1].trim();if(fme.has(a)){s=a;break}}s!==""&&(t.referrerPolicy=s)}o(Tme,"setRequestReferrerPolicyOnRedirect");function vme(){return"allowed"}o(vme,"crossOriginResourcePolicyCheck");function _me(){return"success"}o(_me,"corsCheck");function Pme(){return"success"}o(Pme,"TAOCheck");function kme(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}o(kme,"appendFetchMetadata");function Dme(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&&UQ(t.origin)&&!UQ(Vf(t))&&(e=null);break;case"same-origin":Ey(t,Vf(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}o(Dme,"appendRequestOriginHeader");function _d(t,e){return t}o(_d,"coarsenTime");function Ome(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:_d(t.domainLookupStartTime,r),domainLookupEndTime:_d(t.domainLookupEndTime,r),connectionStartTime:_d(t.connectionStartTime,r),connectionEndTime:_d(t.connectionEndTime,r),secureConnectionStartTime:_d(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}o(Ome,"clampAndCoarsenConnectionTimingInfo");function Mme(t){return _d(yme.now(),t)}o(Mme,"coarsenedSharedCurrentTime");function Lme(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(Lme,"createOpaqueTimingInfo");function jV(){return{referrerPolicy:"strict-origin-when-cross-origin"}}o(jV,"makePolicyContainer");function Fme(t){return{referrerPolicy:t.referrerPolicy}}o(Fme,"clonePolicyContainer");function Ume(t){let e=t.referrerPolicy;xl(e);let r=null;if(t.referrer==="client"){let c=VV();if(!c||c.origin==="null")return"no-referrer";r=new URL(c)}else t.referrer instanceof URL&&(r=t.referrer);let n=FQ(r),s=FQ(r,!0);n.toString().length>4096&&(n=s);let i=Ey(t,n),a=Hf(n)&&!Hf(t.url);switch(e){case"origin":return s??FQ(r,!0);case"unsafe-url":return n;case"same-origin":return i?s:"no-referrer";case"origin-when-cross-origin":return i?n:s;case"strict-origin-when-cross-origin":{let c=Vf(t);return Ey(n,c)?n:Hf(n)&&!Hf(c)?"no-referrer":s}default:return a?"no-referrer":s}}o(Ume,"determineRequestsReferrer");function FQ(t,e){return xl(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(FQ,"stripURLForReferrer");function Hf(t){if(!(t instanceof URL))return!1;if(t.href==="about:blank"||t.href==="about:srcdoc"||t.protocol==="data:"||t.protocol==="file:")return!0;return e(t.origin);function e(r){if(r==null||r==="null")return!1;let n=new URL(r);return!!(n.protocol==="https:"||n.protocol==="wss:"||/^127(?:\.[0-9]+){0,2}\.[0-9]+$|^\[(?:0*:)*?:?0*1\]$/.test(n.hostname)||n.hostname==="localhost"||n.hostname.includes("localhost.")||n.hostname.endsWith(".localhost"))}}o(Hf,"isURLPotentiallyTrustworthy");function qme(t,e){if(gy===void 0)return!0;let r=KV(e);if(r==="no metadata"||r.length===0)return!0;let n=Hme(r),s=Vme(r,n);for(let i of s){let a=i.algo,c=i.hash,l=gy.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)),zme(l,c))return!0}return!1}o(qme,"bytesMatch");var Gme=/(?<algo>sha256|sha384|sha512)-((?<hash>[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;function KV(t){let e=[],r=!0;for(let n of t.split(" ")){r=!1;let s=Gme.exec(n);if(s===null||s.groups===void 0||s.groups.algo===void 0)continue;let i=s.groups.algo.toLowerCase();$V.includes(i)&&e.push(s.groups)}return r===!0?"no metadata":e}o(KV,"parseMetadata");function Hme(t){let e=t[0].algo;if(e[3]==="5")return e;for(let r=1;r<t.length;++r){let n=t[r];if(n.algo[3]==="5"){e="sha512";break}else{if(e[3]==="3")continue;n.algo[3]==="3"&&(e="sha384")}}return e}o(Hme,"getStrongestMetadata");function Vme(t,e){if(t.length===1)return t;let r=0;for(let n=0;n<t.length;++n)t[n].algo===e&&(t[r++]=t[n]);return t.length=r,t}o(Vme,"filterMetadataListByAlgorithm");function zme(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(zme,"compareBase64Mixed");function $me(t){}o($me,"tryUpgradeReque
Line truncated
|
||||
`);function Qge(t){for(let e=0;e<t.length;++e)if((t.charCodeAt(e)&-128)!==0)return!1;return!0}o(Qge,"isAsciiString");function Rge(t){let e=t.length;if(e<27||e>70)return!1;for(let r=0;r<e;++r){let n=t.charCodeAt(r);if(!(n>=48&&n<=57||n>=65&&n<=90||n>=97&&n<=122||n===39||n===45||n===95))return!1}return!0}o(Rge,"validateBoundary");function Tge(t,e){Cy(e!=="failure"&&e.essence==="multipart/form-data");let r=e.parameters.get("boundary");if(r===void 0)return"failure";let n=Buffer.from(`--${r}`,"utf8"),s=[],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+n.length).equals(n))i.position+=n.length;else return"failure";if(i.position===t.length-2&&Iy(t,Nge,i)||i.position===t.length-4&&Iy(t,xge,i))return s;if(t[i.position]!==13||t[i.position+1]!==10)return"failure";i.position+=2;let c=vge(t,i);if(c==="failure")return"failure";let{name:l,filename:u,contentType:d,encoding:A}=c;i.position+=2;let p;{let h=t.indexOf(n.subarray(2),i.position);if(h===-1)return"failure";p=t.subarray(i.position,h-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",Qge(d)||(d=""),f=new wge([p],u,{type:d})):f=yge(Buffer.from(p)),Cy(uz(l)),Cy(typeof f=="string"&&uz(f)||Ige(f)),s.push(Bge(l,f,u))}}o(Tge,"multipartFormDataParser");function vge(t,e){let r=null,n=null,s=null,i=null;for(;;){if(t[e.position]===13&&t[e.position+1]===10)return r===null?"failure":{name:r,filename:n,contentType:s,encoding:i};let a=kd(c=>c!==10&&c!==13&&c!==58,t,e);if(a=JQ(a,!0,!0,c=>c===9||c===32),!Cge.test(a.toString())||t[e.position]!==58)return"failure";switch(e.position++,kd(c=>c===32||c===9,t,e),Ege(a)){case"content-disposition":{if(r=n=null,!Iy(t,Sge,e)||(e.position+=17,r=pz(t,e),r===null))return"failure";if(Iy(t,Az,e)){let c=e.position+Az.length;if(t[c]===42&&(e.position+=1,c+=1),t[c]!==61||t[c+1]!==34||(e.position+=12,n=pz(t,e),n===null))return"failure"}break}case"content-type":{let c=kd(l=>l!==10&&l!==13,t,e);c=JQ(c,!1,!0,l=>l===9||l===32),s=dz(c);break}case"content-transfer-encoding":{let c=kd(l=>l!==10&&l!==13,t,e);c=JQ(c,!1,!0,l=>l===9||l===32),i=dz(c);break}default:kd(c=>c!==10&&c!==13,t,e)}if(t[e.position]!==13&&t[e.position+1]!==10)return"failure";e.position+=2}}o(vge,"parseMultipartFormDataHeaders");function pz(t,e){Cy(t[e.position-1]===34);let r=kd(n=>n!==10&&n!==13&&n!==34,t,e);return t[e.position]!==34?null:(e.position++,r=new TextDecoder().decode(r).replace(/%0A/ig,`
|
||||
`).replace(/%0D/ig,"\r").replace(/%22/g,'"'),r)}o(pz,"parseMultipartFormDataName");function kd(t,e,r){let n=r.position;for(;n<e.length&&t(e[n]);)++n;return e.subarray(r.position,r.position=n)}o(kd,"collectASequenceOfBytes");function JQ(t,e,r,n){let s=0,i=t.length-1;if(e)for(;s<t.length&&n(t[s]);)s++;if(r)for(;i>0&&n(t[i]);)i--;return s===0&&i===t.length-1?t:t.subarray(s,i+1)}o(JQ,"removeChars");function Iy(t,e,r){if(t.length<e.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[r.position+n])return!1;return!0}o(Iy,"bufferStartsWith");fz.exports={multipartFormDataParser:Tge,validateBoundary:Rge}});var Md=m((ZXe,Sz)=>{"use strict";var Jf=Be(),{ReadableStreamFrom:_ge,isBlobLike:mz,isReadableStreamLike:Pge,readableStreamClose:kge,createDeferredPromise:Dge,fullyReadBody:Oge,extractMimeType:Mge,utf8DecodeBytes:yz}=qn(),{FormData:gz}=$f(),{kState:Od}=oc(),{webidl:Lge}=Ir(),{Blob:Fge}=require("node:buffer"),YQ=require("node:assert"),{isErrored:Cz,isDisturbed:Uge}=require("node:stream"),{isArrayBuffer:qge}=require("node:util/types"),{serializeAMimeType:Gge}=An(),{multipartFormDataParser:Hge}=hz(),WQ;try{let t=require("node:crypto");WQ=o(e=>t.randomInt(0,e),"random")}catch{WQ=o(t=>Math.floor(Math.random(t)),"random")}var By=new TextEncoder;function Vge(){}o(Vge,"noop");var Iz=globalThis.FinalizationRegistry&&process.version.indexOf("v18")!==0,Bz;Iz&&(Bz=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!Uge(e)&&!Cz(e)&&e.cancel("Response object has been garbage collected").catch(Vge)}));function bz(t,e=!1){let r=null;t instanceof ReadableStream?r=t:mz(t)?r=t.stream():r=new ReadableStream({async pull(l){let u=typeof s=="string"?By.encode(s):s;u.byteLength&&l.enqueue(u),queueMicrotask(()=>kge(l))},start(){},type:"bytes"}),YQ(Pge(r));let n=null,s=null,i=null,a=null;if(typeof t=="string")s=t,a="text/plain;charset=UTF-8";else if(t instanceof URLSearchParams)s=t.toString(),a="application/x-www-form-urlencoded;charset=UTF-8";else if(qge(t))s=new Uint8Array(t.slice());else if(ArrayBuffer.isView(t))s=new Uint8Array(t.buffer.slice(t.byteOffset,t.byteOffset+t.byteLength));else if(Jf.isFormDataLike(t)){let l=`----formdata-undici-0${`${WQ(1e11)}`.padStart(11,"0")}`,u=`--${l}\r
|
||||
var Jde=Object.create;var VE=Object.defineProperty;var Yde=Object.getOwnPropertyDescriptor;var Wde=Object.getOwnPropertyNames;var jde=Object.getPrototypeOf,Kde=Object.prototype.hasOwnProperty;var o=(t,e)=>VE(t,"name",{value:e,configurable:!0});var g=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),Xde=(t,e)=>{for(var r in e)VE(t,r,{get:e[r],enumerable:!0})},Zde=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of Wde(e))!Kde.call(t,s)&&s!==r&&VE(t,s,{get:()=>e[s],enumerable:!(n=Yde(e,s))||n.enumerable});return t};var w=(t,e,r)=>(r=t!=null?Jde(jde(t)):{},Zde(e||!t||!t.__esModule?VE(r,"default",{value:t,enumerable:!0}):r,t));var EH=g(Qd=>{"use strict";var pZe=require("net"),Cfe=require("tls"),Jx=require("http"),hH=require("https"),Ife=require("events"),fZe=require("assert"),Bfe=require("util");Qd.httpOverHttp=bfe;Qd.httpsOverHttp=wfe;Qd.httpOverHttps=Sfe;Qd.httpsOverHttps=Nfe;function bfe(t){var e=new oa(t);return e.request=Jx.request,e}o(bfe,"httpOverHttp");function wfe(t){var e=new oa(t);return e.request=Jx.request,e.createSocket=mH,e.defaultPort=443,e}o(wfe,"httpsOverHttp");function Sfe(t){var e=new oa(t);return e.request=hH.request,e}o(Sfe,"httpOverHttps");function Nfe(t){var e=new oa(t);return e.request=hH.request,e.createSocket=mH,e.defaultPort=443,e}o(Nfe,"httpsOverHttps");function oa(t){var e=this;e.options=t||{},e.proxyOptions=e.options.proxy||{},e.maxSockets=e.options.maxSockets||Jx.Agent.defaultMaxSockets,e.requests=[],e.sockets=[],e.on("free",o(function(n,s,i,a){for(var c=gH(s,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(n);return}}n.destroy(),e.removeSocket(n)},"onFree"))}o(oa,"TunnelingAgent");Bfe.inherits(oa,Ife.EventEmitter);oa.prototype.addRequest=o(function(e,r,n,s){var i=this,a=Yx({request:e},i.options,gH(r,n,s));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");oa.prototype.createSocket=o(function(e,r){var n=this,s={};n.sockets.push(s);var i=Yx({},n.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")),oc("making CONNECT request");var a=n.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){oc("tunneling socket could not be established, statusCode=%d",A.statusCode),p.destroy();var h=new Error("tunneling socket could not be established, statusCode="+A.statusCode);h.code="ECONNRESET",e.request.emit("error",h),n.removeSocket(s);return}if(f.length>0){oc("got illegal response body from proxy"),p.destroy();var h=new Error("got illegal response body from proxy");h.code="ECONNRESET",e.request.emit("error",h),n.removeSocket(s);return}return oc("tunneling connection has established"),n.sockets[n.sockets.indexOf(s)]=p,r(p)}o(u,"onConnect");function d(A){a.removeAllListeners(),oc(`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),n.removeSocket(s)}o(d,"onError")},"createSocket");oa.prototype.removeSocket=o(function(e){var r=this.sockets.indexOf(e);if(r!==-1){this.sockets.splice(r,1);var n=this.requests.shift();n&&this.createSocket(n,function(s){n.request.onSocket(s)})}},"removeSocket");function mH(t,e){var r=this;oa.prototype.createSocket.call(r,t,function(n){var s=t.request.getHeader("host"),i=Yx({},r.options,{socket:n,servername:s?s.replace(/:.*$/,""):t.host}),a=Cfe.connect(0,i);r.sockets[r.sockets.indexOf(n)]=a,e(a)})}o(mH,"createSecureSocket");function gH(t,e,r){return typeof t=="string"?{host:t,port:e,localAddress:r}:t}o(gH,"toOptions");function Yx(t){for(var e=1,r=arguments.length;e<r;++e){var n=arguments[e];if(typeof n=="object")for(var s=Object.keys(n),i=0,a=s.length;i<a;++i){var c=s[i];n[c]!==void 0&&(t[c]=n[c])}}return t}o(Yx,"mergeOptions");var oc;process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)?oc=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"):oc=o(function(){},"debug");Qd.debug=oc});var Hf=g((gZe,yH)=>{yH.exports=EH()});var dt=g((EZe,CH)=>{CH.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 _e=g((yZe,zH)=>{"use strict";var IH=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[IH]===!0}[IH]=!0},BH=Symbol.for("undici.error.UND_ERR_CONNECT_TIMEOUT"),Wx=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[BH]===!0}[BH]=!0},bH=Symbol.for("undici.error.UND_ERR_HEADERS_TIMEOUT"),jx=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[bH]===!0}[bH]=!0},wH=Symbol.for("undici.error.UND_ERR_HEADERS_OVERFLOW"),Kx=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[wH]===!0}[wH]=!0},SH=Symbol.for("undici.error.UND_ERR_BODY_TIMEOUT"),Xx=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(sz,"isValidHeaderValue");function Gme(t,e){let{headersList:r}=e,n=(r.get("referrer-policy",!0)??"").split(","),s="";if(n.length>0)for(let i=n.length;i!==0;i--){let a=n[i-1].trim();if(Nme.has(a)){s=a;break}}s!==""&&(t.referrerPolicy=s)}o(Gme,"setRequestReferrerPolicyOnRedirect");function Hme(){return"allowed"}o(Hme,"crossOriginResourcePolicyCheck");function Vme(){return"success"}o(Vme,"corsCheck");function zme(){return"success"}o(zme,"TAOCheck");function $me(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}o($me,"appendFetchMetadata");function Jme(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&&VQ(t.origin)&&!VQ(Zf(t))&&(e=null);break;case"same-origin":by(t,Zf(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}o(Jme,"appendRequestOriginHeader");function Ld(t,e){return t}o(Ld,"coarsenTime");function Yme(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:Ld(t.domainLookupStartTime,r),domainLookupEndTime:Ld(t.domainLookupEndTime,r),connectionStartTime:Ld(t.connectionStartTime,r),connectionEndTime:Ld(t.connectionEndTime,r),secureConnectionStartTime:Ld(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}o(Yme,"clampAndCoarsenConnectionTimingInfo");function Wme(t){return Ld(vme.now(),t)}o(Wme,"coarsenedSharedCurrentTime");function jme(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(jme,"createOpaqueTimingInfo");function iz(){return{referrerPolicy:"strict-origin-when-cross-origin"}}o(iz,"makePolicyContainer");function Kme(t){return{referrerPolicy:t.referrerPolicy}}o(Kme,"clonePolicyContainer");function Xme(t){let e=t.referrerPolicy;vl(e);let r=null;if(t.referrer==="client"){let c=ZV();if(!c||c.origin==="null")return"no-referrer";r=new URL(c)}else t.referrer instanceof URL&&(r=t.referrer);let n=HQ(r),s=HQ(r,!0);n.toString().length>4096&&(n=s);let i=by(t,n),a=Xf(n)&&!Xf(t.url);switch(e){case"origin":return s??HQ(r,!0);case"unsafe-url":return n;case"same-origin":return i?s:"no-referrer";case"origin-when-cross-origin":return i?n:s;case"strict-origin-when-cross-origin":{let c=Zf(t);return by(n,c)?n:Xf(n)&&!Xf(c)?"no-referrer":s}default:return a?"no-referrer":s}}o(Xme,"determineRequestsReferrer");function HQ(t,e){return vl(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(HQ,"stripURLForReferrer");function Xf(t){if(!(t instanceof URL))return!1;if(t.href==="about:blank"||t.href==="about:srcdoc"||t.protocol==="data:"||t.protocol==="file:")return!0;return e(t.origin);function e(r){if(r==null||r==="null")return!1;let n=new URL(r);return!!(n.protocol==="https:"||n.protocol==="wss:"||/^127(?:\.[0-9]+){0,2}\.[0-9]+$|^\[(?:0*:)*?:?0*1\]$/.test(n.hostname)||n.hostname==="localhost"||n.hostname.includes("localhost.")||n.hostname.endsWith(".localhost"))}}o(Xf,"isURLPotentiallyTrustworthy");function Zme(t,e){if(By===void 0)return!0;let r=oz(e);if(r==="no metadata"||r.length===0)return!0;let n=tge(r),s=rge(r,n);for(let i of s){let a=i.algo,c=i.hash,l=By.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)),nge(l,c))return!0}return!1}o(Zme,"bytesMatch");var ege=/(?<algo>sha256|sha384|sha512)-((?<hash>[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;function oz(t){let e=[],r=!0;for(let n of t.split(" ")){r=!1;let s=ege.exec(n);if(s===null||s.groups===void 0||s.groups.algo===void 0)continue;let i=s.groups.algo.toLowerCase();tz.includes(i)&&e.push(s.groups)}return r===!0?"no metadata":e}o(oz,"parseMetadata");function tge(t){let e=t[0].algo;if(e[3]==="5")return e;for(let r=1;r<t.length;++r){let n=t[r];if(n.algo[3]==="5"){e="sha512";break}else{if(e[3]==="3")continue;n.algo[3]==="3"&&(e="sha384")}}return e}o(tge,"getStrongestMetadata");function rge(t,e){if(t.length===1)return t;let r=0;for(let n=0;n<t.length;++n)t[n].algo===e&&(t[r++]=t[n]);return t.length=r,t}o(rge,"filterMetadataListByAlgorithm");function nge(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(nge,"compareBase64Mixed");function sge(t){}o(sge,"tryUpgradeReque
Line truncated
|
||||
`);function Uge(t){for(let e=0;e<t.length;++e)if((t.charCodeAt(e)&-128)!==0)return!1;return!0}o(Uge,"isAsciiString");function qge(t){let e=t.length;if(e<27||e>70)return!1;for(let r=0;r<e;++r){let n=t.charCodeAt(r);if(!(n>=48&&n<=57||n>=65&&n<=90||n>=97&&n<=122||n===39||n===45||n===95))return!1}return!0}o(qge,"validateBoundary");function Gge(t,e){Sy(e!=="failure"&&e.essence==="multipart/form-data");let r=e.parameters.get("boundary");if(r===void 0)return"failure";let n=Buffer.from(`--${r}`,"utf8"),s=[],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+n.length).equals(n))i.position+=n.length;else return"failure";if(i.position===t.length-2&&Ny(t,Lge,i)||i.position===t.length-4&&Ny(t,Fge,i))return s;if(t[i.position]!==13||t[i.position+1]!==10)return"failure";i.position+=2;let c=Hge(t,i);if(c==="failure")return"failure";let{name:l,filename:u,contentType:d,encoding:A}=c;i.position+=2;let p;{let h=t.indexOf(n.subarray(2),i.position);if(h===-1)return"failure";p=t.subarray(i.position,h-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",Uge(d)||(d=""),f=new Oge([p],u,{type:d})):f=vge(Buffer.from(p)),Sy(yz(l)),Sy(typeof f=="string"&&yz(f)||Pge(f)),s.push(kge(l,f,u))}}o(Gge,"multipartFormDataParser");function Hge(t,e){let r=null,n=null,s=null,i=null;for(;;){if(t[e.position]===13&&t[e.position+1]===10)return r===null?"failure":{name:r,filename:n,contentType:s,encoding:i};let a=Ud(c=>c!==10&&c!==13&&c!==58,t,e);if(a=KQ(a,!0,!0,c=>c===9||c===32),!_ge.test(a.toString())||t[e.position]!==58)return"failure";switch(e.position++,Ud(c=>c===32||c===9,t,e),Tge(a)){case"content-disposition":{if(r=n=null,!Ny(t,Mge,e)||(e.position+=17,r=Bz(t,e),r===null))return"failure";if(Ny(t,Iz,e)){let c=e.position+Iz.length;if(t[c]===42&&(e.position+=1,c+=1),t[c]!==61||t[c+1]!==34||(e.position+=12,n=Bz(t,e),n===null))return"failure"}break}case"content-type":{let c=Ud(l=>l!==10&&l!==13,t,e);c=KQ(c,!1,!0,l=>l===9||l===32),s=Cz(c);break}case"content-transfer-encoding":{let c=Ud(l=>l!==10&&l!==13,t,e);c=KQ(c,!1,!0,l=>l===9||l===32),i=Cz(c);break}default:Ud(c=>c!==10&&c!==13,t,e)}if(t[e.position]!==13&&t[e.position+1]!==10)return"failure";e.position+=2}}o(Hge,"parseMultipartFormDataHeaders");function Bz(t,e){Sy(t[e.position-1]===34);let r=Ud(n=>n!==10&&n!==13&&n!==34,t,e);return t[e.position]!==34?null:(e.position++,r=new TextDecoder().decode(r).replace(/%0A/ig,`
|
||||
`).replace(/%0D/ig,"\r").replace(/%22/g,'"'),r)}o(Bz,"parseMultipartFormDataName");function Ud(t,e,r){let n=r.position;for(;n<e.length&&t(e[n]);)++n;return e.subarray(r.position,r.position=n)}o(Ud,"collectASequenceOfBytes");function KQ(t,e,r,n){let s=0,i=t.length-1;if(e)for(;s<t.length&&n(t[s]);)s++;if(r)for(;i>0&&n(t[i]);)i--;return s===0&&i===t.length-1?t:t.subarray(s,i+1)}o(KQ,"removeChars");function Ny(t,e,r){if(t.length<e.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[r.position+n])return!1;return!0}o(Ny,"bufferStartsWith");bz.exports={multipartFormDataParser:Gge,validateBoundary:qge}});var Hd=g((i7e,kz)=>{"use strict";var rh=Ce(),{ReadableStreamFrom:Vge,isBlobLike:Sz,isReadableStreamLike:zge,readableStreamClose:$ge,createDeferredPromise:Jge,fullyReadBody:Yge,extractMimeType:Wge,utf8DecodeBytes:Qz}=Gn(),{FormData:Nz}=th(),{kState:Gd}=ac(),{webidl:jge}=Ir(),{Blob:Kge}=require("node:buffer"),XQ=require("node:assert"),{isErrored:Rz,isDisturbed:Xge}=require("node:stream"),{isArrayBuffer:Zge}=require("node:util/types"),{serializeAMimeType:eEe}=An(),{multipartFormDataParser:tEe}=wz(),ZQ;try{let t=require("node:crypto");ZQ=o(e=>t.randomInt(0,e),"random")}catch{ZQ=o(t=>Math.floor(Math.random(t)),"random")}var xy=new TextEncoder;function rEe(){}o(rEe,"noop");var Tz=globalThis.FinalizationRegistry&&process.version.indexOf("v18")!==0,vz;Tz&&(vz=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!Xge(e)&&!Rz(e)&&e.cancel("Response object has been garbage collected").catch(rEe)}));function _z(t,e=!1){let r=null;t instanceof ReadableStream?r=t:Sz(t)?r=t.stream():r=new ReadableStream({async pull(l){let u=typeof s=="string"?xy.encode(s):s;u.byteLength&&l.enqueue(u),queueMicrotask(()=>$ge(l))},start(){},type:"bytes"}),XQ(zge(r));let n=null,s=null,i=null,a=null;if(typeof t=="string")s=t,a="text/plain;charset=UTF-8";else if(t instanceof URLSearchParams)s=t.toString(),a="application/x-www-form-urlencoded;charset=UTF-8";else if(Zge(t))s=new Uint8Array(t.slice());else if(ArrayBuffer.isView(t))s=new Uint8Array(t.buffer.slice(t.byteOffset,t.byteOffset+t.byteLength));else if(rh.isFormDataLike(t)){let l=`----formdata-undici-0${`${ZQ(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 h=!1;for(let[y,E]of t)if(typeof E=="string"){let C=By.encode(u+`; name="${d(A(y))}"\r
|
||||
`),"normalizeLinefeeds"),p=[],f=new Uint8Array([13,10]);i=0;let h=!1;for(let[y,E]of t)if(typeof E=="string"){let C=xy.encode(u+`; name="${d(A(y))}"\r
|
||||
\r
|
||||
${A(E)}\r
|
||||
`);p.push(C),i+=C.byteLength}else{let C=By.encode(`${u}; name="${d(A(y))}"`+(E.name?`; filename="${d(E.name)}"`:"")+`\r
|
||||
`);p.push(C),i+=C.byteLength}else{let C=xy.encode(`${u}; name="${d(A(y))}"`+(E.name?`; filename="${d(E.name)}"`:"")+`\r
|
||||
Content-Type: ${E.type||"application/octet-stream"}\r
|
||||
\r
|
||||
`);p.push(C,E,f),typeof E.size=="number"?i+=C.byteLength+E.size+f.byteLength:h=!0}let g=By.encode(`--${l}--\r
|
||||
`);p.push(g),i+=g.byteLength,h&&(i=null),s=t,n=o(async function*(){for(let y of p)y.stream?yield*y.stream():yield y},"action"),a=`multipart/form-data; boundary=${l}`}else if(mz(t))s=t,i=t.size,t.type&&(a=t.type);else if(typeof t[Symbol.asyncIterator]=="function"){if(e)throw new TypeError("keepalive");if(Jf.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=t instanceof ReadableStream?t:_ge(t)}if((typeof s=="string"||Jf.isBuffer(s))&&(i=Buffer.byteLength(s)),n!=null){let l;r=new ReadableStream({async start(){l=n(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(!Cz(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:s,length:i},a]}o(bz,"extractBody");function zge(t,e=!1){return t instanceof ReadableStream&&(YQ(!Jf.isDisturbed(t),"The body has already been consumed."),YQ(!t.locked,"The stream is locked.")),bz(t,e)}o(zge,"safelyExtractBody");function $ge(t,e){let[r,n]=e.stream.tee();return e.stream=r,{stream:n,length:e.length,source:e.source}}o($ge,"cloneBody");function Jge(t){if(t.aborted)throw new DOMException("The operation was aborted.","AbortError")}o(Jge,"throwIfAborted");function Yge(t){return{blob(){return Dd(this,r=>{let n=Ez(this);return n===null?n="":n&&(n=Gge(n)),new Fge([r],{type:n})},t)},arrayBuffer(){return Dd(this,r=>new Uint8Array(r).buffer,t)},text(){return Dd(this,yz,t)},json(){return Dd(this,jge,t)},formData(){return Dd(this,r=>{let n=Ez(this);if(n!==null)switch(n.essence){case"multipart/form-data":{let s=Hge(r,n);if(s==="failure")throw new TypeError("Failed to parse body as FormData.");let i=new gz;return i[Od]=s,i}case"application/x-www-form-urlencoded":{let s=new URLSearchParams(r.toString()),i=new gz;for(let[a,c]of s)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 Dd(this,r=>new Uint8Array(r),t)}}}o(Yge,"bodyMixinMethods");function Wge(t){Object.assign(t.prototype,Yge(t))}o(Wge,"mixinBody");async function Dd(t,e,r){if(Lge.brandCheck(t,r),wz(t))throw new TypeError("Body is unusable: Body has already been read");Jge(t[Od]);let n=Dge(),s=o(a=>n.reject(a),"errorSteps"),i=o(a=>{try{n.resolve(e(a))}catch(c){s(c)}},"successSteps");return t[Od].body==null?(i(Buffer.allocUnsafe(0)),n.promise):(await Oge(t[Od].body,i,s),n.promise)}o(Dd,"consumeBody");function wz(t){let e=t[Od].body;return e!=null&&(e.stream.locked||Jf.isDisturbed(e.stream))}o(wz,"bodyUnusable");function jge(t){return JSON.parse(yz(t))}o(jge,"parseJSONFromBytes");function Ez(t){let e=t[Od].headersList,r=Mge(e);return r==="failure"?null:r}o(Ez,"bodyMimeType");Sz.exports={extractBody:bz,safelyExtractBody:zge,cloneBody:$ge,mixinBody:Wge,streamRegistry:Bz,hasFinalizationRegistry:Iz,bodyUnusable:wz}});var qz=m((tZe,Uz)=>{"use strict";var X=require("node:assert"),te=Be(),{channels:Nz}=wd(),jQ=vQ(),{RequestContentLengthMismatchError:Ql,ResponseContentLengthMismatchError:xz,RequestAbortedError:Dz,InvalidArgumentError:Kge,HeadersTimeoutError:Xge,HeadersOverflowError:Zge,SocketError:Ld,InformationalError:Fd,BodyTimeoutError:eEe,HTTPParserError:tEe,ResponseExceededMaxSizeError:rEe}=_e(),{kUrl:Oz,kReset:pn,kClient:Ny,kParser:ot,kBlocking:jf,kRunning:$t,kPending:Mz,kSize:Qz,kWriting:ac,kQueue:ai,kNoRef:Yf,kKeepAliveDefaultTimeout:nEe,kHostHeader:sEe,kPendingIdx:iEe,kRunningIdx:ys,kError:zr,kPipelining:xy,kSocket:Tl,kKeepAliveTimeoutValue:Ry,kMaxHeadersSize:KQ,kKeepAliveMaxTimeout:oEe,kKeepAliveTimeoutThreshold:aEe,kHeadersTimeout:cEe,kBodyTimeout:lEe,kStrictContentLength:eR,kMaxRequests:Rz,kCounter:uEe,kMaxResponseSize:dEe,kOnError:Tz,kResume:ua,kHTTPContext:Lz}=At(),Gn=BV(),vz=Buffer.alloc(0),by=Buffer[Symbol.species],wy=te.addListener,AEe=te.removeAllListeners,vl=Symbol("kIdleSocketValidation"),Rl=Symbol("kIdleSocketValidationTimeout"),sR=Symbol("kSocketUsed"),XQ;async function pEe(){let t=process.env.JEST_WORKER_ID?kQ():void 0,e;try{e=await WebAssembly.compile(SV())}catch{e=await WebAssembly.compile(t||kQ())}return await WebAssembly.instantiate(e,{env:{wasm_on_url:o((r,n,s)=>0,"wasm_on_url"),wasm_on_status:o((r,n,s)=>{X(St.ptr===r);let i=n-Gi+qi.byteOffset;return St.onStatus(new by(qi.buffer,i,s))||0},"wasm_on_status"),wasm_on_message_begin:o(r=>(X(St.ptr===r),St.onMessageBegin()||0),"wasm_on_message_begin"),wasm_on_header_field:o((r,n,s)=>{X(St.ptr===r);let i=n-Gi+qi.byteOffset;return St.onHeaderField(new by(qi.buffer,i,s))||0},"wasm_on_header_field"),wasm_on_header_value:o((r,n,s)=>{X(St.ptr===r);let i=n-Gi+qi.byteOffset;return St.onHeaderValue(new by(qi.buffer,i,s))||0},"wasm_on_header_value"),wasm_on_headers_complete:o((r,n,s,i)=>(X(St.ptr===r),St.onHeadersComplete(n,!!s,!!i)||0),"wasm_on_headers_complete"),wasm_on_body:o((r,n,s)=>{X(St.ptr===r);let i=n-Gi+qi.byteOffset;return St.o
Line truncated
|
||||
`;if(typeof s=="string"?g+=`host: ${s}\r
|
||||
`:g+=t[sEe],i?g+=`connection: upgrade\r
|
||||
`);p.push(C,E,f),typeof E.size=="number"?i+=C.byteLength+E.size+f.byteLength:h=!0}let m=xy.encode(`--${l}--\r
|
||||
`);p.push(m),i+=m.byteLength,h&&(i=null),s=t,n=o(async function*(){for(let y of p)y.stream?yield*y.stream():yield y},"action"),a=`multipart/form-data; boundary=${l}`}else if(Sz(t))s=t,i=t.size,t.type&&(a=t.type);else if(typeof t[Symbol.asyncIterator]=="function"){if(e)throw new TypeError("keepalive");if(rh.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=t instanceof ReadableStream?t:Vge(t)}if((typeof s=="string"||rh.isBuffer(s))&&(i=Buffer.byteLength(s)),n!=null){let l;r=new ReadableStream({async start(){l=n(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(!Rz(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:s,length:i},a]}o(_z,"extractBody");function nEe(t,e=!1){return t instanceof ReadableStream&&(XQ(!rh.isDisturbed(t),"The body has already been consumed."),XQ(!t.locked,"The stream is locked.")),_z(t,e)}o(nEe,"safelyExtractBody");function sEe(t,e){let[r,n]=e.stream.tee();return e.stream=r,{stream:n,length:e.length,source:e.source}}o(sEe,"cloneBody");function iEe(t){if(t.aborted)throw new DOMException("The operation was aborted.","AbortError")}o(iEe,"throwIfAborted");function oEe(t){return{blob(){return qd(this,r=>{let n=xz(this);return n===null?n="":n&&(n=eEe(n)),new Kge([r],{type:n})},t)},arrayBuffer(){return qd(this,r=>new Uint8Array(r).buffer,t)},text(){return qd(this,Qz,t)},json(){return qd(this,cEe,t)},formData(){return qd(this,r=>{let n=xz(this);if(n!==null)switch(n.essence){case"multipart/form-data":{let s=tEe(r,n);if(s==="failure")throw new TypeError("Failed to parse body as FormData.");let i=new Nz;return i[Gd]=s,i}case"application/x-www-form-urlencoded":{let s=new URLSearchParams(r.toString()),i=new Nz;for(let[a,c]of s)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 qd(this,r=>new Uint8Array(r),t)}}}o(oEe,"bodyMixinMethods");function aEe(t){Object.assign(t.prototype,oEe(t))}o(aEe,"mixinBody");async function qd(t,e,r){if(jge.brandCheck(t,r),Pz(t))throw new TypeError("Body is unusable: Body has already been read");iEe(t[Gd]);let n=Jge(),s=o(a=>n.reject(a),"errorSteps"),i=o(a=>{try{n.resolve(e(a))}catch(c){s(c)}},"successSteps");return t[Gd].body==null?(i(Buffer.allocUnsafe(0)),n.promise):(await Yge(t[Gd].body,i,s),n.promise)}o(qd,"consumeBody");function Pz(t){let e=t[Gd].body;return e!=null&&(e.stream.locked||rh.isDisturbed(e.stream))}o(Pz,"bodyUnusable");function cEe(t){return JSON.parse(Qz(t))}o(cEe,"parseJSONFromBytes");function xz(t){let e=t[Gd].headersList,r=Wge(e);return r==="failure"?null:r}o(xz,"bodyMimeType");kz.exports={extractBody:_z,safelyExtractBody:nEe,cloneBody:sEe,mixinBody:aEe,streamRegistry:vz,hasFinalizationRegistry:Tz,bodyUnusable:Pz}});var jz=g((a7e,Wz)=>{"use strict";var X=require("node:assert"),te=Ce(),{channels:Dz}=Td(),eR=DQ(),{RequestContentLengthMismatchError:_l,ResponseContentLengthMismatchError:Oz,RequestAbortedError:Vz,InvalidArgumentError:lEe,HeadersTimeoutError:uEe,HeadersOverflowError:dEe,SocketError:Vd,InformationalError:zd,BodyTimeoutError:AEe,HTTPParserError:pEe,ResponseExceededMaxSizeError:fEe}=_e(),{kUrl:zz,kReset:pn,kClient:vy,kParser:st,kBlocking:ih,kRunning:zt,kPending:$z,kSize:Mz,kWriting:cc,kQueue:ci,kNoRef:nh,kKeepAliveDefaultTimeout:hEe,kHostHeader:mEe,kPendingIdx:gEe,kRunningIdx:gs,kError:$r,kPipelining:_y,kSocket:kl,kKeepAliveTimeoutValue:ky,kMaxHeadersSize:tR,kKeepAliveMaxTimeout:EEe,kKeepAliveTimeoutThreshold:yEe,kHeadersTimeout:CEe,kBodyTimeout:IEe,kStrictContentLength:sR,kMaxRequests:Lz,kCounter:BEe,kMaxResponseSize:bEe,kOnError:Fz,kResume:Aa,kHTTPContext:Jz}=dt(),Hn=vV(),Uz=Buffer.alloc(0),Qy=Buffer[Symbol.species],Ry=te.addListener,wEe=te.removeAllListeners,Dl=Symbol("kIdleSocketValidation"),Pl=Symbol("kIdleSocketValidationTimeout"),cR=Symbol("kSocketUsed"),rR;async function SEe(){let t=process.env.JEST_WORKER_ID?LQ():void 0,e;try{e=await WebAssembly.compile(kV())}catch{e=await WebAssembly.compile(t||LQ())}return await WebAssembly.instantiate(e,{env:{wasm_on_url:o((r,n,s)=>0,"wasm_on_url"),wasm_on_status:o((r,n,s)=>{X(bt.ptr===r);let i=n-Gi+qi.byteOffset;return bt.onStatus(new Qy(qi.buffer,i,s))||0},"wasm_on_status"),wasm_on_message_begin:o(r=>(X(bt.ptr===r),bt.onMessageBegin()||0),"wasm_on_message_begin"),wasm_on_header_field:o((r,n,s)=>{X(bt.ptr===r);let i=n-Gi+qi.byteOffset;return bt.onHeaderField(new Qy(qi.buffer,i,s))||0},"wasm_on_header_field"),wasm_on_header_value:o((r,n,s)=>{X(bt.ptr===r);let i=n-Gi+qi.byteOffset;return bt.onHeaderValue(new Qy(qi.buffer,i,s))||0},"wasm_on_header_value"),wasm_on_headers_complete:o((r,n,s,i)=>(X(bt.ptr===r),bt.onHeadersComplete(n,!!s,!!i)||0),"wasm_on_headers_complete"),wasm_on_body:o((r,n,s)=>{X(bt.ptr===r);let i=n-Gi+qi.byteOffset;return bt.o
Line truncated
|
||||
`;if(typeof s=="string"?m+=`host: ${s}\r
|
||||
`:m+=t[mEe],i?m+=`connection: upgrade\r
|
||||
upgrade: ${i}\r
|
||||
`:t[xy]&&!f[pn]?g+=`connection: keep-alive\r
|
||||
`:g+=`connection: close\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 Nz.sendHeaders.hasSubscribers&&Nz.sendHeaders.publish({request:e,headers:g,socket:f}),!l||p===0?Pz(h,null,t,e,f,d,g,A):te.isBuffer(l)?Pz(h,l,t,e,f,d,g,A):te.isBlobLike(l)?typeof l.stream=="function"?kz(h,l.stream(),t,e,f,d,g,A):IEe(h,l,t,e,f,d,g,A):te.isStream(l)?CEe(h,l,t,e,f,d,g,A):te.isIterable(l)?kz(h,l,t,e,f,d,g,A):X(!1),!0}o(yEe,"writeH1");function CEe(t,e,r,n,s,i,a,c){X(i!==0||r[$t]===0,"stream body cannot be pipelined");let l=!1,u=new Ty({abort:t,socket:s,request:n,contentLength:i,client:r,expectsPayload:c,header:a}),d=o(function(h){if(!l)try{!u.write(h)&&this.pause&&this.pause()}catch(g){te.destroy(this,g)}},"onData"),A=o(function(){l||e.resume&&e.resume()},"onDrain"),p=o(function(){if(queueMicrotask(()=>{e.removeListener("error",f)}),!l){let h=new Dz;queueMicrotask(()=>f(h))}},"onClose"),f=o(function(h){if(!l){if(l=!0,X(s.destroyed||s[ac]&&r[$t]<=1),s.off("drain",A).off("error",f),e.removeListener("data",d).removeListener("end",f).removeListener("close",p),!h)try{u.end()}catch(g){h=g}u.destroy(h),h&&(h.code!=="UND_ERR_INFO"||h.message!=="reset")?te.destroy(e,h):te.destroy(e)}},"onFinished");e.on("data",d).on("end",f).on("error",f).on("close",p),e.resume&&e.resume(),s.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(CEe,"writeStream");function Pz(t,e,r,n,s,i,a,c){try{e?te.isBuffer(e)&&(X(i===e.byteLength,"buffer body must have content length"),s.cork(),s.write(`${a}content-length: ${i}\r
|
||||
`:t[_y]&&!f[pn]?m+=`connection: keep-alive\r
|
||||
`:m+=`connection: close\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++)m+=`${E}: ${C[I]}\r
|
||||
`;else m+=`${E}: ${C}\r
|
||||
`}return Dz.sendHeaders.hasSubscribers&&Dz.sendHeaders.publish({request:e,headers:m,socket:f}),!l||p===0?Gz(h,null,t,e,f,d,m,A):te.isBuffer(l)?Gz(h,l,t,e,f,d,m,A):te.isBlobLike(l)?typeof l.stream=="function"?Hz(h,l.stream(),t,e,f,d,m,A):PEe(h,l,t,e,f,d,m,A):te.isStream(l)?_Ee(h,l,t,e,f,d,m,A):te.isIterable(l)?Hz(h,l,t,e,f,d,m,A):X(!1),!0}o(vEe,"writeH1");function _Ee(t,e,r,n,s,i,a,c){X(i!==0||r[zt]===0,"stream body cannot be pipelined");let l=!1,u=new Dy({abort:t,socket:s,request:n,contentLength:i,client:r,expectsPayload:c,header:a}),d=o(function(h){if(!l)try{!u.write(h)&&this.pause&&this.pause()}catch(m){te.destroy(this,m)}},"onData"),A=o(function(){l||e.resume&&e.resume()},"onDrain"),p=o(function(){if(queueMicrotask(()=>{e.removeListener("error",f)}),!l){let h=new Vz;queueMicrotask(()=>f(h))}},"onClose"),f=o(function(h){if(!l){if(l=!0,X(s.destroyed||s[cc]&&r[zt]<=1),s.off("drain",A).off("error",f),e.removeListener("data",d).removeListener("end",f).removeListener("close",p),!h)try{u.end()}catch(m){h=m}u.destroy(h),h&&(h.code!=="UND_ERR_INFO"||h.message!=="reset")?te.destroy(e,h):te.destroy(e)}},"onFinished");e.on("data",d).on("end",f).on("error",f).on("close",p),e.resume&&e.resume(),s.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(_Ee,"writeStream");function Gz(t,e,r,n,s,i,a,c){try{e?te.isBuffer(e)&&(X(i===e.byteLength,"buffer body must have content length"),s.cork(),s.write(`${a}content-length: ${i}\r
|
||||
\r
|
||||
`,"latin1"),s.write(e),s.uncork(),n.onBodySent(e),!c&&n.reset!==!1&&(s[pn]=!0)):i===0?s.write(`${a}content-length: 0\r
|
||||
\r
|
||||
`,"latin1"):(X(i===null,"no body must not have content length"),s.write(`${a}\r
|
||||
`,"latin1")),n.onRequestSent(),r[ua]()}catch(l){t(l)}}o(Pz,"writeBuffer");async function IEe(t,e,r,n,s,i,a,c){X(i===e.size,"blob body must have content length");try{if(i!=null&&i!==e.size)throw new Ql;let l=Buffer.from(await e.arrayBuffer());s.cork(),s.write(`${a}content-length: ${i}\r
|
||||
`,"latin1")),n.onRequestSent(),r[Aa]()}catch(l){t(l)}}o(Gz,"writeBuffer");async function PEe(t,e,r,n,s,i,a,c){X(i===e.size,"blob body must have content length");try{if(i!=null&&i!==e.size)throw new _l;let l=Buffer.from(await e.arrayBuffer());s.cork(),s.write(`${a}content-length: ${i}\r
|
||||
\r
|
||||
`,"latin1"),s.write(l),s.uncork(),n.onBodySent(l),n.onRequestSent(),!c&&n.reset!==!1&&(s[pn]=!0),r[ua]()}catch(l){t(l)}}o(IEe,"writeBlob");async function kz(t,e,r,n,s,i,a,c){X(i!==0||r[$t]===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)=>{X(l===null),s[zr]?f(s[zr]):l=p}),"waitForDrain");s.on("close",u).on("drain",u);let A=new Ty({abort:t,socket:s,request:n,contentLength:i,client:r,expectsPayload:c,header:a});try{for await(let p of e){if(s[zr])throw s[zr];A.write(p)||await d()}A.end()}catch(p){A.destroy(p)}finally{s.off("close",u).off("drain",u)}}o(kz,"writeIterable");var Ty=class{static{o(this,"AsyncWriter")}constructor({abort:e,socket:r,request:n,contentLength:s,client:i,expectsPayload:a,header:c}){this.socket=r,this.request=n,this.contentLength=s,this.client=i,this.bytesWritten=0,this.expectsPayload=a,this.header=c,this.abort=e,r[ac]=!0}write(e){let{socket:r,request:n,contentLength:s,client:i,bytesWritten:a,expectsPayload:c,header:l}=this;if(r[zr])throw r[zr];if(r.destroyed)return!1;let u=Buffer.byteLength(e);if(!u)return!0;if(s!==null&&a+u>s){if(i[eR])throw new Ql;process.emitWarning(new Ql)}r.cork(),a===0&&(!c&&n.reset!==!1&&(r[pn]=!0),s===null?r.write(`${l}transfer-encoding: chunked\r
|
||||
`,"latin1"),s.write(l),s.uncork(),n.onBodySent(l),n.onRequestSent(),!c&&n.reset!==!1&&(s[pn]=!0),r[Aa]()}catch(l){t(l)}}o(PEe,"writeBlob");async function Hz(t,e,r,n,s,i,a,c){X(i!==0||r[zt]===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)=>{X(l===null),s[$r]?f(s[$r]):l=p}),"waitForDrain");s.on("close",u).on("drain",u);let A=new Dy({abort:t,socket:s,request:n,contentLength:i,client:r,expectsPayload:c,header:a});try{for await(let p of e){if(s[$r])throw s[$r];A.write(p)||await d()}A.end()}catch(p){A.destroy(p)}finally{s.off("close",u).off("drain",u)}}o(Hz,"writeIterable");var Dy=class{static{o(this,"AsyncWriter")}constructor({abort:e,socket:r,request:n,contentLength:s,client:i,expectsPayload:a,header:c}){this.socket=r,this.request=n,this.contentLength=s,this.client=i,this.bytesWritten=0,this.expectsPayload=a,this.header=c,this.abort=e,r[cc]=!0}write(e){let{socket:r,request:n,contentLength:s,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(s!==null&&a+u>s){if(i[sR])throw new _l;process.emitWarning(new _l)}r.cork(),a===0&&(!c&&n.reset!==!1&&(r[pn]=!0),s===null?r.write(`${l}transfer-encoding: chunked\r
|
||||
`,"latin1"):r.write(`${l}content-length: ${s}\r
|
||||
\r
|
||||
`,"latin1")),s===null&&r.write(`\r
|
||||
${u.toString(16)}\r
|
||||
`,"latin1"),this.bytesWritten+=u;let d=r.write(e);return r.uncork(),n.onBodySent(e),d||r[ot].timeout&&r[ot].timeoutType===Ud&&r[ot].timeout.refresh&&r[ot].timeout.refresh(),d}end(){let{socket:e,contentLength:r,client:n,bytesWritten:s,expectsPayload:i,header:a,request:c}=this;if(c.onRequestSent(),e[ac]=!1,e[zr])throw e[zr];if(!e.destroyed){if(s===0?i?e.write(`${a}content-length: 0\r
|
||||
`,"latin1"),this.bytesWritten+=u;let d=r.write(e);return r.uncork(),n.onBodySent(e),d||r[st].timeout&&r[st].timeoutType===$d&&r[st].timeout.refresh&&r[st].timeout.refresh(),d}end(){let{socket:e,contentLength:r,client:n,bytesWritten:s,expectsPayload:i,header:a,request:c}=this;if(c.onRequestSent(),e[cc]=!1,e[$r])throw e[$r];if(!e.destroyed){if(s===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&&s!==r){if(n[eR])throw new Ql;process.emitWarning(new Ql)}e[ot].timeout&&e[ot].timeoutType===Ud&&e[ot].timeout.refresh&&e[ot].timeout.refresh(),n[ua]()}}destroy(e){let{socket:r,client:n,abort:s}=this;r[ac]=!1,e&&(X(n[$t]<=1,"pipeline should only contain this request"),s(e))}};Uz.exports=hEe});var Wz=m((nZe,Yz)=>{"use strict";var Cs=require("node:assert"),{pipeline:BEe}=require("node:stream"),Ne=Be(),{RequestContentLengthMismatchError:iR,RequestAbortedError:Gz,SocketError:Kf,InformationalError:oR}=_e(),{kUrl:vy,kReset:Py,kClient:qd,kRunning:ky,kPending:bEe,kQueue:cc,kPendingIdx:aR,kRunningIdx:ci,kError:ui,kSocket:dr,kStrictContentLength:wEe,kOnError:cR,kMaxConcurrentStreams:Jz,kHTTP2Session:li,kResume:lc,kSize:SEe,kHTTPContext:NEe}=At(),da=Symbol("open streams"),Hz,Vz=!1,_y;try{_y=require("node:http2")}catch{_y={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:xEe,HTTP2_HEADER_METHOD:QEe,HTTP2_HEADER_PATH:REe,HTTP2_HEADER_SCHEME:TEe,HTTP2_HEADER_CONTENT_LENGTH:vEe,HTTP2_HEADER_EXPECT:_Ee,HTTP2_HEADER_STATUS:PEe}}=_y;function kEe(t){let e=[];for(let[r,n]of Object.entries(t))if(Array.isArray(n))for(let s of n)e.push(Buffer.from(r),Buffer.from(s));else e.push(Buffer.from(r),Buffer.from(n));return e}o(kEe,"parseH2Headers");async function DEe(t,e){t[dr]=e,Vz||(Vz=!0,process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"}));let r=_y.connect(t[vy],{createConnection:o(()=>e,"createConnection"),peerMaxConcurrentStreams:t[Jz]});r[da]=0,r[qd]=t,r[dr]=e,Ne.addListener(r,"error",MEe),Ne.addListener(r,"frameError",LEe),Ne.addListener(r,"end",FEe),Ne.addListener(r,"goaway",UEe),Ne.addListener(r,"close",function(){let{[qd]:s}=this,{[dr]:i}=s,a=this[dr][ui]||this[ui]||new Kf("closed",Ne.getSocketInfo(i));if(s[li]=null,s.destroyed){Cs(s[bEe]===0);let c=s[cc].splice(s[ci]);for(let l=0;l<c.length;l++){let u=c[l];Ne.errorRequest(s,u,a)}}}),r.unref(),t[li]=r,e[li]=r,Ne.addListener(e,"error",function(s){Cs(s.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[ui]=s,this[qd][cR](s)}),Ne.addListener(e,"end",function(){Ne.destroy(this,new Kf("other side closed",Ne.getSocketInfo(this)))}),Ne.addListener(e,"close",function(){let s=this[ui]||new Kf("closed",Ne.getSocketInfo(this));t[dr]=null,this[li]!=null&&this[li].destroy(s),t[aR]=t[ci],Cs(t[ky]===0),t.emit("disconnect",t[vy],[t],s),t[lc]()});let n=!1;return e.on("close",()=>{n=!0}),{version:"h2",defaultPipelining:1/0,write(...s){return GEe(t,...s)},resume(){OEe(t)},destroy(s,i){n?queueMicrotask(i):e.destroy(s).on("close",i)},get destroyed(){return e.destroyed},busy(){return!1}}}o(DEe,"connectH2");function OEe(t){let e=t[dr];e?.destroyed===!1&&(t[SEe]===0&&t[Jz]===0?(e.unref(),t[li].unref()):(e.ref(),t[li].ref()))}o(OEe,"resumeH2");function MEe(t){Cs(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[dr][ui]=t,this[qd][cR](t)}o(MEe,"onHttp2SessionError");function LEe(t,e,r){if(r===0){let n=new oR(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[dr][ui]=n,this[qd][cR](n)}}o(LEe,"onHttp2FrameError");function FEe(){let t=new Kf("other side closed",Ne.getSocketInfo(this[dr]));this.destroy(t),Ne.destroy(this[dr],t)}o(FEe,"onHttp2SessionEnd");function UEe(t){let e=this[ui]||new Kf(`HTTP/2: "GOAWAY" frame received with code ${t}`,Ne.getSocketInfo(this)),r=this[qd];if(r[dr]=null,r[NEe]=null,this[li]!=null&&(this[li].destroy(e),this[li]=null),Ne.destroy(this[dr],e),r[ci]<r[cc].length){let n=r[cc][r[ci]];r[cc][r[ci]++]=null,Ne.errorRequest(r,n,e),r[aR]=r[ci]}Cs(r[ky]===0),r.emit("disconnect",r[vy],[r],e),r[lc]()}o(UEe,"onHTTP2GoAway");function qEe(t){return t!=="GET"&&t!=="HEAD"&&t!=="OPTIONS"&&t!=="TRACE"&&t!=="CONNECT"}o(qEe,"shouldSendContentLength");function GEe(t,e){let r=t[li],{method:n,path:s,host:i,upgrade:a,expectContinue:c,signal:l,headers:u}=e,{body:d}=e;if(a)return Ne.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:h}=t[vy];A[xEe]=i||`${f}${h?`:${h}`:""}`,A[QEe]=n;let g=o(b=>{e.aborted||e.completed||(b=b||new Gz,Ne.errorRequest(t,e,b),p!=null&&Ne.destroy(p,b),Ne.destroy(d,b),t[cc][t[ci]++]=null,t[lc]())},"abort");try{e.onConnect(g)}catch(b){Ne.errorRequest(t,e,b)}if(e.aborted)return!1;if(n==="CONNECT")return r.ref(),p=r.request(A,{endStream:!1,signal:l}),p.id&&!p.pending?(e.onUpgrade(null,null,p),++r[da],t[cc][t[ci]++]=null):p.once("ready",()=>{e.onUpgrade(null,null,p),++r[da],t[cc][t[ci]++]=null}),p.once("close",()=>{r[da]-=1,r[da]===0&&r.unref()}),!0;A[REe]=s,A[TEe]="https";let y=n==="PUT"||n==="POST"||n==="PATCH";d&&typeof d.read=="function"&&d.read(0);let E=Ne.bodyLength(d);if(Ne.isFormDataLike(d)){Hz??=Md().extractBody;let[b,N]=Hz(d);A["content-type"]=N,d=b.stream,E=b.length}if(E==null&&(E=e.contentLength),(E===0||!y)&&(E=null),qEe(n)&&E>0&&e.contentLength!=null&&e.contentLength!==E){if(t[wEe])return Ne.errorRequest(t,e,n
Line truncated
|
||||
`,this[fye]=l??3e5,this[pye]=s??3e5,this[hye]=C??!0,this[mye]=b,this[AR]=Q,this[dc]=null,this[Iye]=ce>-1?ce:-1,this[bye]=Ye??100,this[Ot]=null,this[di]=[],this[pa]=0,this[Ai]=0,this[th]=de=>fR(this,de),this[Bye]=de=>a$(this,de)}get pipelining(){return this[Ly]}set pipelining(e){this[Ly]=e,this[th](!0)}get[sh](){return this[di].length-this[Ai]}get[nh](){return this[Ai]-this[pa]}get[rh](){return this[di].length-this[pa]}get[oye](){return!!this[Ot]&&!this[Hd]&&!this[Ot].destroyed}get[dR](){return!!(this[Ot]?.busy(null)||this[rh]>=(o$(this)||1)||this[sh]>0)}[iye](e){c$(this),this.once("connect",e)}[Cye](e,r){let n=e.origin||this[Vi].origin,s=new ZEe(n,e,r);return this[di].push(s),this[Pl]||(_l.bodyLength(s.body)==null&&_l.isIterable(s.body)?(this[Pl]=1,queueMicrotask(()=>fR(this))):this[th](!0)),this[Pl]&&this[Ac]!==2&&this[dR]&&(this[Ac]=2),this[Ac]<2}async[Eye](){return new Promise(e=>{this[rh]?this[dc]=e:e(null)})}async[yye](e){return new Promise(r=>{let n=this[di].splice(this[Ai]);for(let i=0;i<n.length;i++){let a=n[i];_l.errorRequest(this,a,e)}let s=o(()=>{this[dc]&&(this[dc](),this[dc]=null),r(null)},"callback");this[Ot]?(this[Ot].destroy(e,s),this[Ot]=null):queueMicrotask(s),this[th]()})}},Nye=My();function a$(t,e){if(t[nh]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){Aa(t[Ai]===t[pa]);let r=t[di].splice(t[pa]);for(let n=0;n<r.length;n++){let s=r[n];_l.errorRequest(t,s,e)}Aa(t[rh]===0)}}o(a$,"onError");async function c$(t){Aa(!t[Hd]),Aa(!t[Ot]);let{host:e,hostname:r,protocol:n,port:s}=t[Vi];if(r[0]==="["){let i=r.indexOf("]");Aa(i!==-1);let a=r.substring(1,i);Aa(i$.isIP(a)),r=a}t[Hd]=!0,Gd.beforeConnect.hasSubscribers&&Gd.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[Ot]?.version,servername:t[uc],localAddress:t[eh]},connector:t[Zf]});try{let i=await new Promise((a,c)=>{t[Zf]({host:e,hostname:r,protocol:n,port:s,servername:t[uc],localAddress:t[eh]},(l,u)=>{l?c(l):a(u)})});if(t.destroyed){_l.destroy(i.on("error",n$),new rye);return}Aa(i);try{t[Ot]=i.alpnProtocol==="h2"?await Sye(t,i):await wye(t,i)}catch(a){throw i.destroy().on("error",n$),a}t[Hd]=!1,i[gye]=0,i[AR]=t[AR],i[sye]=t,i[cye]=null,Gd.connected.hasSubscribers&&Gd.connected.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[Ot]?.version,servername:t[uc],localAddress:t[eh]},connector:t[Zf],socket:i}),t.emit("connect",t[Vi],[t])}catch(i){if(t.destroyed)return;if(t[Hd]=!1,Gd.connectError.hasSubscribers&&Gd.connectError.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[Ot]?.version,servername:t[uc],localAddress:t[eh]},connector:t[Zf],error:i}),i.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(Aa(t[nh]===0);t[sh]>0&&t[di][t[Ai]].servername===t[uc];){let a=t[di][t[Ai]++];_l.errorRequest(t,a,i)}else a$(t,i);t.emit("connectionError",t[Vi],[t],i)}t[th]()}o(c$,"connect");function s$(t){t[Ac]=0,t.emit("drain",t[Vi],[t])}o(s$,"emitDrain");function fR(t,e){t[Pl]!==2&&(t[Pl]=2,xye(t,e),t[Pl]=0,t[pa]>256&&(t[di].splice(0,t[pa]),t[Ai]-=t[pa],t[pa]=0))}o(fR,"resume");function xye(t,e){for(;;){if(t.destroyed){Aa(t[sh]===0);return}if(t[dc]&&!t[rh]){t[dc](),t[dc]=null;return}if(t[Ot]&&t[Ot].resume(),t[dR])t[Ac]=2;else if(t[Ac]===2){e?(t[Ac]=1,queueMicrotask(()=>s$(t))):s$(t);continue}if(t[sh]===0||t[nh]>=(o$(t)||1))return;let r=t[di][t[Ai]];if(t[Vi].protocol==="https:"&&t[uc]!==r.servername){if(t[nh]>0)return;t[uc]=r.servername,t[Ot]?.destroy(new tye("servername changed"),()=>{t[Ot]=null,fR(t)})}if(t[Hd])return;if(!t[Ot]){c$(t);return}if(t[Ot].destroyed||t[Ot].busy(r))return;!r.aborted&&t[Ot].write(r)?t[Ai]++:t[di].splice(t[Ai],1)}}o(xye,"_resume");l$.exports=pR});var hR=m((AZe,u$)=>{"use strict";var Fy=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)}};u$.exports=class{static{o(this,"FixedQueue")}constructor(){this.head=this.tail=new Fy}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new Fy),this.head.push(e)}shift(){let e=this.tail,r=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next),r}}});var A$=m((fZe,d$)=>{var{kFree:Qye,kConnected:Rye,kPending:Tye,kQueued:vye,kRunning:_ye,kSize:Pye}=At(),kl=Symbol("pool"),mR=class{static{o(this,"PoolStats")}constructor(e){this[kl]=e}get connected(){return this[kl][Rye]}get free(){return this[kl][Qye]}get pending(){return this[kl][Tye]}get queued(){return this[kl][vye]}get running(){return this[kl][_ye]}get size(){return this[kl][Pye]}};d$.exports=mR});var BR=m((mZe,B$)=>{"use strict";var kye=Qd(),Dye=hR(),{kConnected:gR,kSize:p$,kRunning:f$,kPending:h$,kQueued:ih,kBusy:Oye,kFree:Mye,kUrl:Lye,kClose:Fye,kDestroy:Uye,kDispatch:qye}=At(),Gye=A$(),fn=Symbol("cl
Line truncated
|
||||
`,"latin1"),r!==null&&s!==r){if(n[sR])throw new _l;process.emitWarning(new _l)}e[st].timeout&&e[st].timeoutType===$d&&e[st].timeout.refresh&&e[st].timeout.refresh(),n[Aa]()}}destroy(e){let{socket:r,client:n,abort:s}=this;r[cc]=!1,e&&(X(n[zt]<=1,"pipeline should only contain this request"),s(e))}};Wz.exports=xEe});var s$=g((l7e,n$)=>{"use strict";var Es=require("node:assert"),{pipeline:kEe}=require("node:stream"),Se=Ce(),{RequestContentLengthMismatchError:lR,RequestAbortedError:Kz,SocketError:oh,InformationalError:uR}=_e(),{kUrl:Oy,kReset:Ly,kClient:Jd,kRunning:Fy,kPending:DEe,kQueue:lc,kPendingIdx:dR,kRunningIdx:li,kError:di,kSocket:dr,kStrictContentLength:OEe,kOnError:AR,kMaxConcurrentStreams:r$,kHTTP2Session:ui,kResume:uc,kSize:MEe,kHTTPContext:LEe}=dt(),pa=Symbol("open streams"),Xz,Zz=!1,My;try{My=require("node:http2")}catch{My={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:FEe,HTTP2_HEADER_METHOD:UEe,HTTP2_HEADER_PATH:qEe,HTTP2_HEADER_SCHEME:GEe,HTTP2_HEADER_CONTENT_LENGTH:HEe,HTTP2_HEADER_EXPECT:VEe,HTTP2_HEADER_STATUS:zEe}}=My;function $Ee(t){let e=[];for(let[r,n]of Object.entries(t))if(Array.isArray(n))for(let s of n)e.push(Buffer.from(r),Buffer.from(s));else e.push(Buffer.from(r),Buffer.from(n));return e}o($Ee,"parseH2Headers");async function JEe(t,e){t[dr]=e,Zz||(Zz=!0,process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"}));let r=My.connect(t[Oy],{createConnection:o(()=>e,"createConnection"),peerMaxConcurrentStreams:t[r$]});r[pa]=0,r[Jd]=t,r[dr]=e,Se.addListener(r,"error",WEe),Se.addListener(r,"frameError",jEe),Se.addListener(r,"end",KEe),Se.addListener(r,"goaway",XEe),Se.addListener(r,"close",function(){let{[Jd]:s}=this,{[dr]:i}=s,a=this[dr][di]||this[di]||new oh("closed",Se.getSocketInfo(i));if(s[ui]=null,s.destroyed){Es(s[DEe]===0);let c=s[lc].splice(s[li]);for(let l=0;l<c.length;l++){let u=c[l];Se.errorRequest(s,u,a)}}}),r.unref(),t[ui]=r,e[ui]=r,Se.addListener(e,"error",function(s){Es(s.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[di]=s,this[Jd][AR](s)}),Se.addListener(e,"end",function(){Se.destroy(this,new oh("other side closed",Se.getSocketInfo(this)))}),Se.addListener(e,"close",function(){let s=this[di]||new oh("closed",Se.getSocketInfo(this));t[dr]=null,this[ui]!=null&&this[ui].destroy(s),t[dR]=t[li],Es(t[Fy]===0),t.emit("disconnect",t[Oy],[t],s),t[uc]()});let n=!1;return e.on("close",()=>{n=!0}),{version:"h2",defaultPipelining:1/0,write(...s){return eye(t,...s)},resume(){YEe(t)},destroy(s,i){n?queueMicrotask(i):e.destroy(s).on("close",i)},get destroyed(){return e.destroyed},busy(){return!1}}}o(JEe,"connectH2");function YEe(t){let e=t[dr];e?.destroyed===!1&&(t[MEe]===0&&t[r$]===0?(e.unref(),t[ui].unref()):(e.ref(),t[ui].ref()))}o(YEe,"resumeH2");function WEe(t){Es(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[dr][di]=t,this[Jd][AR](t)}o(WEe,"onHttp2SessionError");function jEe(t,e,r){if(r===0){let n=new uR(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[dr][di]=n,this[Jd][AR](n)}}o(jEe,"onHttp2FrameError");function KEe(){let t=new oh("other side closed",Se.getSocketInfo(this[dr]));this.destroy(t),Se.destroy(this[dr],t)}o(KEe,"onHttp2SessionEnd");function XEe(t){let e=this[di]||new oh(`HTTP/2: "GOAWAY" frame received with code ${t}`,Se.getSocketInfo(this)),r=this[Jd];if(r[dr]=null,r[LEe]=null,this[ui]!=null&&(this[ui].destroy(e),this[ui]=null),Se.destroy(this[dr],e),r[li]<r[lc].length){let n=r[lc][r[li]];r[lc][r[li]++]=null,Se.errorRequest(r,n,e),r[dR]=r[li]}Es(r[Fy]===0),r.emit("disconnect",r[Oy],[r],e),r[uc]()}o(XEe,"onHTTP2GoAway");function ZEe(t){return t!=="GET"&&t!=="HEAD"&&t!=="OPTIONS"&&t!=="TRACE"&&t!=="CONNECT"}o(ZEe,"shouldSendContentLength");function eye(t,e){let r=t[ui],{method:n,path:s,host:i,upgrade:a,expectContinue:c,signal:l,headers:u}=e,{body:d}=e;if(a)return Se.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],R=u[b+1];if(Array.isArray(R))for(let D=0;D<R.length;D++)A[N]?A[N]+=`,${R[D]}`:A[N]=R[D];else A[N]=R}let p,{hostname:f,port:h}=t[Oy];A[FEe]=i||`${f}${h?`:${h}`:""}`,A[UEe]=n;let m=o(b=>{e.aborted||e.completed||(b=b||new Kz,Se.errorRequest(t,e,b),p!=null&&Se.destroy(p,b),Se.destroy(d,b),t[lc][t[li]++]=null,t[uc]())},"abort");try{e.onConnect(m)}catch(b){Se.errorRequest(t,e,b)}if(e.aborted)return!1;if(n==="CONNECT")return r.ref(),p=r.request(A,{endStream:!1,signal:l}),p.id&&!p.pending?(e.onUpgrade(null,null,p),++r[pa],t[lc][t[li]++]=null):p.once("ready",()=>{e.onUpgrade(null,null,p),++r[pa],t[lc][t[li]++]=null}),p.once("close",()=>{r[pa]-=1,r[pa]===0&&r.unref()}),!0;A[qEe]=s,A[GEe]="https";let y=n==="PUT"||n==="POST"||n==="PATCH";d&&typeof d.read=="function"&&d.read(0);let E=Se.bodyLength(d);if(Se.isFormDataLike(d)){Xz??=Hd().extractBody;let[b,N]=Xz(d);A["content-type"]=N,d=b.stream,E=b.length}if(E==null&&(E=e.contentLength),(E===0||!y)&&(E=null),ZEe(n)&&E>0&&e.contentLength!=null&&e.contentLength!==E){if(t[OEe])return Se.errorRequest(t,e,n
Line truncated
|
||||
`,this[Nye]=l??3e5,this[Sye]=s??3e5,this[xye]=C??!0,this[Qye]=b,this[mR]=R,this[Ac]=null,this[Pye]=xe>-1?xe:-1,this[Dye]=Ze??100,this[kt]=null,this[Ai]=[],this[ha]=0,this[pi]=0,this[uh]=me=>ER(this,me),this[kye]=me=>m$(this,me)}get pipelining(){return this[Hy]}set pipelining(e){this[Hy]=e,this[uh](!0)}get[ph](){return this[Ai].length-this[pi]}get[Ah](){return this[pi]-this[ha]}get[dh](){return this[Ai].length-this[ha]}get[Eye](){return!!this[kt]&&!this[Wd]&&!this[kt].destroyed}get[hR](){return!!(this[kt]?.busy(null)||this[dh]>=(h$(this)||1)||this[ph]>0)}[gye](e){g$(this),this.once("connect",e)}[_ye](e,r){let n=e.origin||this[Vi].origin,s=new dye(n,e,r);return this[Ai].push(s),this[Ml]||(Ol.bodyLength(s.body)==null&&Ol.isIterable(s.body)?(this[Ml]=1,queueMicrotask(()=>ER(this))):this[uh](!0)),this[Ml]&&this[pc]!==2&&this[hR]&&(this[pc]=2),this[pc]<2}async[Tye](){return new Promise(e=>{this[dh]?this[Ac]=e:e(null)})}async[vye](e){return new Promise(r=>{let n=this[Ai].splice(this[pi]);for(let i=0;i<n.length;i++){let a=n[i];Ol.errorRequest(this,a,e)}let s=o(()=>{this[Ac]&&(this[Ac](),this[Ac]=null),r(null)},"callback");this[kt]?(this[kt].destroy(e,s),this[kt]=null):queueMicrotask(s),this[uh]()})}},Lye=Gy();function m$(t,e){if(t[Ah]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){fa(t[pi]===t[ha]);let r=t[Ai].splice(t[ha]);for(let n=0;n<r.length;n++){let s=r[n];Ol.errorRequest(t,s,e)}fa(t[dh]===0)}}o(m$,"onError");async function g$(t){fa(!t[Wd]),fa(!t[kt]);let{host:e,hostname:r,protocol:n,port:s}=t[Vi];if(r[0]==="["){let i=r.indexOf("]");fa(i!==-1);let a=r.substring(1,i);fa(f$.isIP(a)),r=a}t[Wd]=!0,Yd.beforeConnect.hasSubscribers&&Yd.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[kt]?.version,servername:t[dc],localAddress:t[lh]},connector:t[ch]});try{let i=await new Promise((a,c)=>{t[ch]({host:e,hostname:r,protocol:n,port:s,servername:t[dc],localAddress:t[lh]},(l,u)=>{l?c(l):a(u)})});if(t.destroyed){Ol.destroy(i.on("error",A$),new fye);return}fa(i);try{t[kt]=i.alpnProtocol==="h2"?await Mye(t,i):await Oye(t,i)}catch(a){throw i.destroy().on("error",A$),a}t[Wd]=!1,i[Rye]=0,i[mR]=t[mR],i[mye]=t,i[Cye]=null,Yd.connected.hasSubscribers&&Yd.connected.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[kt]?.version,servername:t[dc],localAddress:t[lh]},connector:t[ch],socket:i}),t.emit("connect",t[Vi],[t])}catch(i){if(t.destroyed)return;if(t[Wd]=!1,Yd.connectError.hasSubscribers&&Yd.connectError.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[kt]?.version,servername:t[dc],localAddress:t[lh]},connector:t[ch],error:i}),i.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(fa(t[Ah]===0);t[ph]>0&&t[Ai][t[pi]].servername===t[dc];){let a=t[Ai][t[pi]++];Ol.errorRequest(t,a,i)}else m$(t,i);t.emit("connectionError",t[Vi],[t],i)}t[uh]()}o(g$,"connect");function p$(t){t[pc]=0,t.emit("drain",t[Vi],[t])}o(p$,"emitDrain");function ER(t,e){t[Ml]!==2&&(t[Ml]=2,Fye(t,e),t[Ml]=0,t[ha]>256&&(t[Ai].splice(0,t[ha]),t[pi]-=t[ha],t[ha]=0))}o(ER,"resume");function Fye(t,e){for(;;){if(t.destroyed){fa(t[ph]===0);return}if(t[Ac]&&!t[dh]){t[Ac](),t[Ac]=null;return}if(t[kt]&&t[kt].resume(),t[hR])t[pc]=2;else if(t[pc]===2){e?(t[pc]=1,queueMicrotask(()=>p$(t))):p$(t);continue}if(t[ph]===0||t[Ah]>=(h$(t)||1))return;let r=t[Ai][t[pi]];if(t[Vi].protocol==="https:"&&t[dc]!==r.servername){if(t[Ah]>0)return;t[dc]=r.servername,t[kt]?.destroy(new pye("servername changed"),()=>{t[kt]=null,ER(t)})}if(t[Wd])return;if(!t[kt]){g$(t);return}if(t[kt].destroyed||t[kt].busy(r))return;!r.aborted&&t[kt].write(r)?t[pi]++:t[Ai].splice(t[pi],1)}}o(Fye,"_resume");E$.exports=gR});var yR=g((E7e,y$)=>{"use strict";var Vy=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)}};y$.exports=class{static{o(this,"FixedQueue")}constructor(){this.head=this.tail=new Vy}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new Vy),this.head.push(e)}shift(){let e=this.tail,r=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next),r}}});var I$=g((C7e,C$)=>{var{kFree:Uye,kConnected:qye,kPending:Gye,kQueued:Hye,kRunning:Vye,kSize:zye}=dt(),Ll=Symbol("pool"),CR=class{static{o(this,"PoolStats")}constructor(e){this[Ll]=e}get connected(){return this[Ll][qye]}get free(){return this[Ll][Uye]}get pending(){return this[Ll][Gye]}get queued(){return this[Ll][Hye]}get running(){return this[Ll][Vye]}get size(){return this[Ll][zye]}};C$.exports=CR});var NR=g((B7e,v$)=>{"use strict";var $ye=kd(),Jye=yR(),{kConnected:IR,kSize:B$,kRunning:b$,kPending:w$,kQueued:fh,kBusy:Yye,kFree:Wye,kUrl:jye,kClose:Kye,kDestroy:Xye,kDispatch:Zye}=dt(),eCe=I$(),fn=Symbol("cl
Line truncated
|
||||
${n.count} ${n.noun} ${n.is} pending:
|
||||
|
||||
${e.format(r)}
|
||||
`.trim())}};RY.exports=BT});var nC=m((f7e,kY)=>{"use strict";var vY=Symbol.for("undici.globalDispatcher.1"),{InvalidArgumentError:fBe}=_e(),hBe=$d();PY()===void 0&&_Y(new hBe);function _Y(t){if(!t||typeof t.dispatch!="function")throw new fBe("Argument agent must implement Agent");Object.defineProperty(globalThis,vY,{value:t,writable:!0,enumerable:!1,configurable:!1})}o(_Y,"setGlobalDispatcher");function PY(){return globalThis[vY]}o(PY,"getGlobalDispatcher");kY.exports={setGlobalDispatcher:_Y,getGlobalDispatcher:PY}});var sC=m((g7e,DY)=>{"use strict";DY.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 MY=m((y7e,OY)=>{"use strict";var mBe=Oy();OY.exports=t=>{let e=t?.maxRedirections;return r=>o(function(s,i){let{maxRedirections:a=e,...c}=s;if(!a)return r(s,i);let l=new mBe(r,a,s,i);return r(c,l)},"redirectInterceptor")}});var FY=m((I7e,LY)=>{"use strict";var gBe=Jy();LY.exports=t=>e=>o(function(n,s){return e(n,new gBe({...n,retryOptions:{...t,...n.retryOptions}},{handler:s,dispatch:e}))},"retryInterceptor")});var qY=m((b7e,UY)=>{"use strict";var EBe=Be(),{InvalidArgumentError:yBe,RequestAbortedError:CBe}=_e(),IBe=sC(),bT=class extends IBe{static{o(this,"DumpHandler")}#e=1024*1024;#t=null;#n=!1;#r=!1;#s=0;#i=null;#a=null;constructor({maxSize:e},r){if(super(r),e!=null&&(!Number.isFinite(e)||e<1))throw new yBe("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,n,s){let a=EBe.parseHeaders(r)["content-length"];if(a!=null&&a>this.#e)throw new CBe(`Response size (${a}) larger than maxSize (${this.#e})`);return this.#r?!0:this.#a.onHeaders(e,r,n,s)}onError(e){this.#n||(e=this.#i??e,this.#a.onError(e))}onData(e){return this.#s=this.#s+e.length,this.#s>=this.#e&&(this.#n=!0,this.#r?this.#a.onError(this.#i):this.#a.onComplete([])),!0}onComplete(e){if(!this.#n){if(this.#r){this.#a.onError(this.reason);return}this.#a.onComplete(e)}}};function BBe({maxSize:t}={maxSize:1024*1024}){return e=>o(function(n,s){let{dumpMaxSize:i=t}=n,a=new bT({maxSize:i},s);return e(n,a)},"Intercept")}o(BBe,"createDumpInterceptor");UY.exports=BBe});var VY=m((S7e,HY)=>{"use strict";var{isIP:bBe}=require("node:net"),{lookup:wBe}=require("node:dns"),SBe=sC(),{InvalidArgumentError:nA,InformationalError:NBe}=_e(),GY=Math.pow(2,31)-1,wT=class{static{o(this,"DNSInstance")}#e=0;#t=0;#n=new Map;dualStack=!0;affinity=null;lookup=null;pick=null;constructor(e){this.#e=e.maxTTL,this.#t=e.maxItems,this.dualStack=e.dualStack,this.affinity=e.affinity,this.lookup=e.lookup??this.#r,this.pick=e.pick??this.#s}get full(){return this.#n.size===this.#t}runLookup(e,r,n){let s=this.#n.get(e.hostname);if(s==null&&this.full){n(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(s==null)this.lookup(e,i,(a,c)=>{if(a||c==null||c.length===0){n(a??new NBe("No DNS entries found"));return}this.setRecords(e,c);let l=this.#n.get(e.hostname),u=this.pick(e,l,i.affinity),d;typeof u.port=="number"?d=`:${u.port}`:e.port!==""?d=`:${e.port}`:d="",n(null,`${e.protocol}//${u.family===6?`[${u.address}]`:u.address}${d}`)});else{let a=this.pick(e,s,i.affinity);if(a==null){this.#n.delete(e.hostname),this.runLookup(e,r,n);return}let c;typeof a.port=="number"?c=`:${a.port}`:e.port!==""?c=`:${e.port}`:c="",n(null,`${e.protocol}//${a.family===6?`[${a.address}]`:a.address}${c}`)}}#r(e,r,n){wBe(e.hostname,{all:!0,family:this.dualStack===!1?this.affinity:0,order:"ipv4first"},(s,i)=>{if(s)return n(s);let a=new Map;for(let c of i)a.set(`${c.address}:${c.family}`,c);n(null,a.values())})}#s(e,r,n){let s=null,{records:i,offset:a}=r,c;if(this.dualStack?(n==null&&(a==null||a===GY?(r.offset=0,n=4):(r.offset++,n=(r.offset&1)===1?6:4)),i[n]!=null&&i[n].ips.length>0?c=i[n]:c=i[n===4?6:4]):c=i[n],c==null||c.ips.length===0)return s;c.offset==null||c.offset===GY?c.offset=0:c.offset++;let l=c.offset%c.ips.length;return s=c.ips[l]??null,s==null?s:Date.now()-s.timestamp>s.ttl?(c.ips.splice(l,1),this.pick(e,r,n)):s}setRecords(e,r){let n=Date.now(),s={records:{4:null,6:null}};for(let i of r){i.timestamp=n,typeof i.ttl=="number"?i.ttl=Math.min(i.ttl,this.#e):i.ttl=this.#e;let a=s.records[i.family]??{ips:[]};a.ips.push(i),s.records[i.family]=a}this.#n.set(e.hostname,s)}getHandler(e,r){return new ST(this,e,r)}},ST=class extends SBe{static{o(this,"DNSDispatchHandler")}#e=null;#t=null;#n=null
Line truncated
|
||||
${i}`;break;case"retry":Bj(i)&&(r[s]=i);break;case"id":bj(i)&&(r[s]=i);break;case"event":i.length>0&&(r[s]=i);break}}processEvent(e){e.retry&&Bj(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id&&bj(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}}};wj.exports={EventSourceStream:fv}});var Pj=m((Tet,_j)=>{"use strict";var{pipeline:kSe}=require("node:stream"),{fetching:DSe}=Eh(),{makeRequest:OSe}=oA(),{webidl:Ea}=Ir(),{EventSourceStream:MSe}=Sj(),{parseMIMEType:LSe}=An(),{createFastMessageEvent:FSe}=AA(),{isNetworkError:Nj}=mh(),{delay:USe}=Av(),{kEnumerableProperty:Wl}=Be(),{environmentSettingsObject:xj}=qn(),Qj=!1,Rj=3e3,_h=0,Tj=1,Ph=2,qSe="anonymous",GSe="use-credentials",gA=class t extends EventTarget{static{o(this,"EventSource")}#e={open:null,error:null,message:null};#t=null;#n=!1;#r=_h;#s=null;#i=null;#a;#o;constructor(e,r={}){super(),Ea.util.markAsUncloneable(this);let n="EventSource constructor";Ea.argumentLengthCheck(arguments,1,n),Qj||(Qj=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=Ea.converters.USVString(e,n,"url"),r=Ea.converters.EventSourceInitDict(r,n,"eventSourceInitDict"),this.#a=r.dispatcher,this.#o={lastEventId:"",reconnectionTime:Rj};let s=xj,i;try{i=new URL(e,s.settingsObject.baseUrl),this.#o.origin=i.origin}catch(l){throw new DOMException(l,"SyntaxError")}this.#t=i.href;let a=qSe;r.withCredentials&&(a=GSe,this.#n=!0);let c={redirect:"follow",keepalive:!0,mode:"cors",credentials:a==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};c.client=xj.settingsObject,c.headersList=[["accept",{name:"accept",value:"text/event-stream"}]],c.cache="no-store",c.initiator="other",c.urlList=[new URL(this.#t)],this.#s=OSe(c),this.#l()}get readyState(){return this.#r}get url(){return this.#t}get withCredentials(){return this.#n}#l(){if(this.#r===Ph)return;this.#r=_h;let e={request:this.#s,dispatcher:this.#a},r=o(n=>{Nj(n)&&(this.dispatchEvent(new Event("error")),this.close()),this.#c()},"processEventSourceEndOfBody");e.processResponseEndOfBody=r,e.processResponse=n=>{if(Nj(n))if(n.aborted){this.close(),this.dispatchEvent(new Event("error"));return}else{this.#c();return}let s=n.headersList.get("content-type",!0),i=s!==null?LSe(s):"failure",a=i!=="failure"&&i.essence==="text/event-stream";if(n.status!==200||a===!1){this.close(),this.dispatchEvent(new Event("error"));return}this.#r=Tj,this.dispatchEvent(new Event("open")),this.#o.origin=n.urlList[n.urlList.length-1].origin;let c=new MSe({eventSourceSettings:this.#o,push:o(l=>{this.dispatchEvent(FSe(l.type,l.options))},"push")});kSe(n.body.stream,c,l=>{l?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#i=DSe(e)}async#c(){this.#r!==Ph&&(this.#r=_h,this.dispatchEvent(new Event("error")),await USe(this.#o.reconnectionTime),this.#r===_h&&(this.#o.lastEventId.length&&this.#s.headersList.set("last-event-id",this.#o.lastEventId,!0),this.#l()))}close(){Ea.brandCheck(this,t),this.#r!==Ph&&(this.#r=Ph,this.#i.abort(),this.#s=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}},vj={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:_h,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:Tj,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:Ph,writable:!1}};Object.defineProperties(gA,vj);Object.defineProperties(gA.prototype,vj);Object.defineProperties(gA.prototype,{close:Wl,onerror:Wl,onmessage:Wl,onopen:Wl,readyState:Wl,url:Wl,withCredentials:Wl});Ea.converters.EventSourceInitDict=Ea.dictionaryConverter([{key:"withCredentials",converter:Ea.converters.boolean,defaultValue:o(()=>!1,"defaultValue")},{key:"dispatcher",converter:Ea.converters.any}]);_j.exports={EventSource:gA,defaultReconnectionTime:Rj}});var yA=m((_et,ne)=>{"use strict";var HSe=Vd(),kj=Mf(),VSe=zd(),zSe=v$(),$Se=$d(),JSe=DR(),YSe=tJ(),WSe=cJ(),Dj=_e(),zC=Be(),{InvalidArgumentError:VC}=Dj,EA=YJ(),jSe=Ff(),KSe=mT(),XSe=TY(),ZSe=yT(),eNe=nT(),tNe=Jy(),{getGlobalDispatcher:Oj,setGlobalDispatcher:rNe}=nC(),nNe=sC(),sNe=Oy(),iNe=My();Object.assign(kj.prototype,EA);ne.exports.Dispatcher=kj;ne.exports.Client=HSe;ne.exports.Pool=VSe;ne.exports.BalancedPool=zSe;ne.exports.Agent=$Se;ne.exports.
Line truncated
|
||||
%s`,N,N,C,n);var Q=C.type==="*"?E_:C.type==="?"?g_:"\\"+C.type;s=!0,n=n.slice(0,C.reStart)+Q+"\\("+N}h(),i&&(n+="\\\\");var D=!1;switch(n.charAt(0)){case"[":case".":case"(":D=!0}for(var ce=c.length-1;ce>-1;ce--){var Me=c[ce],qe=n.slice(0,Me.reStart),Ye=n.slice(Me.reStart,Me.reEnd-8),Ce=n.slice(Me.reEnd-8,Me.reEnd),tt=n.slice(Me.reEnd);Ce+=tt;var de=qe.split("(").length-1,Gr=tt;for(g=0;g<de;g++)Gr=Gr.replace(/\)[+*?]?/,"");tt=Gr;var $="";tt===""&&e!==fI&&($="$");var Ge=qe+Ye+tt+$+Ce;n=Ge}if(n!==""&&s&&(n="(?=.)"+n),D&&(n=p+n),e===fI)return[n,s];if(!s)return STe(t);var Oi=r.nocase?"i":"";try{var nc=new RegExp("^"+n+"$",Oi)}catch{return new RegExp("$.")}return nc._glob=t,nc._src=n,nc}o(bTe,"parse");Zn.makeRe=function(t,e){return new Wt(t,e||{}).makeRe()};Wt.prototype.makeRe=wTe;function wTe(){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?E_:e.dot?mTe:gTe,n=e.nocase?"i":"",s=t.map(function(i){return i.map(function(a){return a===tu?r:typeof a=="string"?NTe(a):a._src}).join("\\/")}).join("|");s="^(?:"+s+")$",this.negate&&(s="^(?!"+s+").*$");try{this.regexp=new RegExp(s,n)}catch{this.regexp=!1}return this.regexp}o(wTe,"makeRe");Zn.match=function(t,e,r){r=r||{};var n=new Wt(e,r);return t=t.filter(function(s){return n.match(s)}),n.options.nonull&&!t.length&&t.push(e),t};Wt.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 n=this.options;nm.sep!=="/"&&(e=e.split(nm.sep).join("/")),e=e.split(U8),this.debug(this.pattern,"split",e);var s=this.set;this.debug(this.pattern,"set",s);var i,a;for(a=e.length-1;a>=0&&(i=e[a],!i);a--);for(a=0;a<s.length;a++){var c=s[a],l=e;n.matchBase&&c.length===1&&(l=[i]);var u=this.matchOne(l,c,r);if(u)return n.flipNegate?!0:!this.negate}return n.flipNegate?!1:this.negate},"match");Wt.prototype.matchOne=function(t,e,r){return e.indexOf(tu)!==-1?this._matchGlobstar(t,e,r,0,0):this._matchOne(t,e,r,0,0)};Wt.prototype._matchGlobstar=function(t,e,r,n,s){var i,a=-1;for(i=s;i<e.length;i++)if(e[i]===tu){a=i;break}var c=-1;for(i=e.length-1;i>=0;i--)if(e[i]===tu){c=i;break}var l=e.slice(s,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(n,n+l.length);if(!this._matchOne(A,l,r,0,0))return!1;n+=l.length}var p=0;if(d.length){if(d.length+n>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]!==""||n+d.length===t.length||(f--,!this._matchOne(t,d,r,f,0)))return!1;p=d.length+1}}if(!u.length){var h=!!p;for(i=n;i<t.length-p;i++){var g=String(t[i]);if(h=!0,g==="."||g===".."||!this.options.dot&&g.charAt(0)===".")return!1}return r||h}for(var y=[[[],0]],E=y[0],C=0,I=[0],b=0;b<u.length;b++){var N=u[b];N===tu?(I.push(C),E=[[],0],y.push(E)):(E[0].push(N),C++)}for(var Q=y.length-1,D=t.length-p,ce=0;ce<y.length;ce++)y[ce][1]=D-(I[Q--]+y[ce][0].length);return!!this._matchGlobStarBodySections(t,y,n,0,r,0,!!p)};Wt.prototype._matchGlobStarBodySections=function(t,e,r,n,s,i,a){var c=e[n];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,s,r,0);if(p&&i<this.maxGlobstarRecursion){var f=this._matchGlobStarBodySections(t,e,r+d.length,n+1,s,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 s||null};Wt.prototype._matchOne=function(t,e,r,n,s){var i,a,c,l;for(i=n,a=s,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===tu)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 STe(t){return t.replace(/\\(.)/g,"$1")}o(STe,"globUnescape");function NTe(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}o(NTe,"regExpEscape")});var RA=m((lit,J8)=>{"use strict";var kTe="2.0.0",DTe=Number.MAX_SAFE_INTEGER||9007199254740991,OTe=16,MTe=250,LTe=["major","premajor","minor","preminor","patch","prepatch","prerelease"];J8.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:OTe,MAX_SAFE_BUILD_LENGTH:MTe,MAX_SAFE_INTEGER:DTe,RELEASE_TYPES:LTe,SEMVER_SPEC_VERSION:kTe,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var om=m((uit,Y8)=>{"use strict";var FTe=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};Y8.exports=FTe});var TA=m((Zi,W8)=>{"use strict";var{MAX_SAFE_COMPONENT_LENGTH:C_,MAX_SAFE_BUILD_LENGTH:UTe,MAX_LENGTH:qTe}=RA(),GTe=om();Zi=W8.exports={};var HTe=Zi.re=[],VTe=Zi.safeRe=[],L=Zi.src=[],zTe=Zi.safeSrc=[],F=Zi.t={},$Te=0,I_="[a-zA-Z0-9-]",JTe=[["\\s",1],["\\d",
Line truncated
|
||||
`.trim())}};LY.exports=NT});var cC=g((Iet,HY)=>{"use strict";var UY=Symbol.for("undici.globalDispatcher.1"),{InvalidArgumentError:NBe}=_e(),xBe=Xd();GY()===void 0&&qY(new xBe);function qY(t){if(!t||typeof t.dispatch!="function")throw new NBe("Argument agent must implement Agent");Object.defineProperty(globalThis,UY,{value:t,writable:!0,enumerable:!1,configurable:!1})}o(qY,"setGlobalDispatcher");function GY(){return globalThis[UY]}o(GY,"getGlobalDispatcher");HY.exports={setGlobalDispatcher:qY,getGlobalDispatcher:GY}});var lC=g((wet,VY)=>{"use strict";VY.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 $Y=g((xet,zY)=>{"use strict";var QBe=qy();zY.exports=t=>{let e=t?.maxRedirections;return r=>o(function(s,i){let{maxRedirections:a=e,...c}=s;if(!a)return r(s,i);let l=new QBe(r,a,s,i);return r(c,l)},"redirectInterceptor")}});var YY=g((Ret,JY)=>{"use strict";var RBe=Xy();JY.exports=t=>e=>o(function(n,s){return e(n,new RBe({...n,retryOptions:{...t,...n.retryOptions}},{handler:s,dispatch:e}))},"retryInterceptor")});var jY=g((vet,WY)=>{"use strict";var TBe=Ce(),{InvalidArgumentError:vBe,RequestAbortedError:_Be}=_e(),PBe=lC(),xT=class extends PBe{static{o(this,"DumpHandler")}#e=1024*1024;#r=null;#s=!1;#t=!1;#n=0;#i=null;#a=null;constructor({maxSize:e},r){if(super(r),e!=null&&(!Number.isFinite(e)||e<1))throw new vBe("maxSize must be a number greater than 0");this.#e=e??this.#e,this.#a=r}onConnect(e){this.#r=e,this.#a.onConnect(this.#o.bind(this))}#o(e){this.#t=!0,this.#i=e}onHeaders(e,r,n,s){let a=TBe.parseHeaders(r)["content-length"];if(a!=null&&a>this.#e)throw new _Be(`Response size (${a}) larger than maxSize (${this.#e})`);return this.#t?!0:this.#a.onHeaders(e,r,n,s)}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.#t?this.#a.onError(this.#i):this.#a.onComplete([])),!0}onComplete(e){if(!this.#s){if(this.#t){this.#a.onError(this.reason);return}this.#a.onComplete(e)}}};function kBe({maxSize:t}={maxSize:1024*1024}){return e=>o(function(n,s){let{dumpMaxSize:i=t}=n,a=new xT({maxSize:i},s);return e(n,a)},"Intercept")}o(kBe,"createDumpInterceptor");WY.exports=kBe});var ZY=g((Pet,XY)=>{"use strict";var{isIP:DBe}=require("node:net"),{lookup:OBe}=require("node:dns"),MBe=lC(),{InvalidArgumentError:lA,InformationalError:LBe}=_e(),KY=Math.pow(2,31)-1,QT=class{static{o(this,"DNSInstance")}#e=0;#r=0;#s=new Map;dualStack=!0;affinity=null;lookup=null;pick=null;constructor(e){this.#e=e.maxTTL,this.#r=e.maxItems,this.dualStack=e.dualStack,this.affinity=e.affinity,this.lookup=e.lookup??this.#t,this.pick=e.pick??this.#n}get full(){return this.#s.size===this.#r}runLookup(e,r,n){let s=this.#s.get(e.hostname);if(s==null&&this.full){n(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.#r};if(s==null)this.lookup(e,i,(a,c)=>{if(a||c==null||c.length===0){n(a??new LBe("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="",n(null,`${e.protocol}//${u.family===6?`[${u.address}]`:u.address}${d}`)});else{let a=this.pick(e,s,i.affinity);if(a==null){this.#s.delete(e.hostname),this.runLookup(e,r,n);return}let c;typeof a.port=="number"?c=`:${a.port}`:e.port!==""?c=`:${e.port}`:c="",n(null,`${e.protocol}//${a.family===6?`[${a.address}]`:a.address}${c}`)}}#t(e,r,n){OBe(e.hostname,{all:!0,family:this.dualStack===!1?this.affinity:0,order:"ipv4first"},(s,i)=>{if(s)return n(s);let a=new Map;for(let c of i)a.set(`${c.address}:${c.family}`,c);n(null,a.values())})}#n(e,r,n){let s=null,{records:i,offset:a}=r,c;if(this.dualStack?(n==null&&(a==null||a===KY?(r.offset=0,n=4):(r.offset++,n=(r.offset&1)===1?6:4)),i[n]!=null&&i[n].ips.length>0?c=i[n]:c=i[n===4?6:4]):c=i[n],c==null||c.ips.length===0)return s;c.offset==null||c.offset===KY?c.offset=0:c.offset++;let l=c.offset%c.ips.length;return s=c.ips[l]??null,s==null?s:Date.now()-s.timestamp>s.ttl?(c.ips.splice(l,1),this.pick(e,r,n)):s}setRecords(e,r){let n=Date.now(),s={records:{4:null,6:null}};for(let i of r){i.timestamp=n,typeof i.ttl=="number"?i.ttl=Math.min(i.ttl,this.#e):i.ttl=this.#e;let a=s.records[i.family]??{ips:[]};a.ips.push(i),s.records[i.family]=a}this.#s.set(e.hostname,s)}getHandler(e,r){return new RT(this,e,r)}},RT=class extends MBe{static{o(this,"DNSDispatchHandler")}#e=null;#r=null;#s=null
Line truncated
|
||||
${i}`;break;case"retry":vj(i)&&(r[s]=i);break;case"id":_j(i)&&(r[s]=i);break;case"event":i.length>0&&(r[s]=i);break}}processEvent(e){e.retry&&vj(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id&&_j(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}}};Pj.exports={EventSourceStream:Ev}});var Gj=g((Ott,qj)=>{"use strict";var{pipeline:$Se}=require("node:stream"),{fetching:JSe}=xh(),{makeRequest:YSe}=AA(),{webidl:Ca}=Ir(),{EventSourceStream:WSe}=kj(),{parseMIMEType:jSe}=An(),{createFastMessageEvent:KSe}=EA(),{isNetworkError:Dj}=Sh(),{delay:XSe}=mv(),{kEnumerableProperty:Zl}=Ce(),{environmentSettingsObject:Oj}=Gn(),Mj=!1,Lj=3e3,qh=0,Fj=1,Gh=2,ZSe="anonymous",eNe="use-credentials",bA=class t extends EventTarget{static{o(this,"EventSource")}#e={open:null,error:null,message:null};#r=null;#s=!1;#t=qh;#n=null;#i=null;#a;#o;constructor(e,r={}){super(),Ca.util.markAsUncloneable(this);let n="EventSource constructor";Ca.argumentLengthCheck(arguments,1,n),Mj||(Mj=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=Ca.converters.USVString(e,n,"url"),r=Ca.converters.EventSourceInitDict(r,n,"eventSourceInitDict"),this.#a=r.dispatcher,this.#o={lastEventId:"",reconnectionTime:Lj};let s=Oj,i;try{i=new URL(e,s.settingsObject.baseUrl),this.#o.origin=i.origin}catch(l){throw new DOMException(l,"SyntaxError")}this.#r=i.href;let a=ZSe;r.withCredentials&&(a=eNe,this.#s=!0);let c={redirect:"follow",keepalive:!0,mode:"cors",credentials:a==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};c.client=Oj.settingsObject,c.headersList=[["accept",{name:"accept",value:"text/event-stream"}]],c.cache="no-store",c.initiator="other",c.urlList=[new URL(this.#r)],this.#n=YSe(c),this.#l()}get readyState(){return this.#t}get url(){return this.#r}get withCredentials(){return this.#s}#l(){if(this.#t===Gh)return;this.#t=qh;let e={request:this.#n,dispatcher:this.#a},r=o(n=>{Dj(n)&&(this.dispatchEvent(new Event("error")),this.close()),this.#c()},"processEventSourceEndOfBody");e.processResponseEndOfBody=r,e.processResponse=n=>{if(Dj(n))if(n.aborted){this.close(),this.dispatchEvent(new Event("error"));return}else{this.#c();return}let s=n.headersList.get("content-type",!0),i=s!==null?jSe(s):"failure",a=i!=="failure"&&i.essence==="text/event-stream";if(n.status!==200||a===!1){this.close(),this.dispatchEvent(new Event("error"));return}this.#t=Fj,this.dispatchEvent(new Event("open")),this.#o.origin=n.urlList[n.urlList.length-1].origin;let c=new WSe({eventSourceSettings:this.#o,push:o(l=>{this.dispatchEvent(KSe(l.type,l.options))},"push")});$Se(n.body.stream,c,l=>{l?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#i=JSe(e)}async#c(){this.#t!==Gh&&(this.#t=qh,this.dispatchEvent(new Event("error")),await XSe(this.#o.reconnectionTime),this.#t===qh&&(this.#o.lastEventId.length&&this.#n.headersList.set("last-event-id",this.#o.lastEventId,!0),this.#l()))}close(){Ca.brandCheck(this,t),this.#t!==Gh&&(this.#t=Gh,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}},Uj={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:qh,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:Fj,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:Gh,writable:!1}};Object.defineProperties(bA,Uj);Object.defineProperties(bA.prototype,Uj);Object.defineProperties(bA.prototype,{close:Zl,onerror:Zl,onmessage:Zl,onopen:Zl,readyState:Zl,url:Zl,withCredentials:Zl});Ca.converters.EventSourceInitDict=Ca.dictionaryConverter([{key:"withCredentials",converter:Ca.converters.boolean,defaultValue:o(()=>!1,"defaultValue")},{key:"dispatcher",converter:Ca.converters.any}]);qj.exports={EventSource:bA,defaultReconnectionTime:Lj}});var SA=g((Ltt,ne)=>{"use strict";var tNe=jd(),Hj=$f(),rNe=Kd(),nNe=U$(),sNe=Xd(),iNe=FR(),oNe=uJ(),aNe=gJ(),Vj=_e(),jC=Ce(),{InvalidArgumentError:WC}=Vj,wA=nY(),cNe=Yf(),lNe=CT(),uNe=FY(),dNe=bT(),ANe=aT(),pNe=Xy(),{getGlobalDispatcher:zj,setGlobalDispatcher:fNe}=cC(),hNe=lC(),mNe=qy(),gNe=Gy();Object.assign(Hj.prototype,wA);ne.exports.Dispatcher=Hj;ne.exports.Client=tNe;ne.exports.Pool=rNe;ne.exports.BalancedPool=nNe;ne.exports.Agent=sNe;ne.exports.
Line truncated
|
||||
`).join(`
|
||||
`+i),t.push(s+"m+"+sB.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=Mke()+e+" "+t[0]}o(Oke,"formatArgs");function Mke(){return Sr.inspectOpts.hideDate?"":new Date().toISOString()+" "}o(Mke,"getDate");function Lke(...t){return process.stderr.write(nB.format(...t)+`
|
||||
`)}o(Lke,"log");function Fke(t){t?process.env.DEBUG=t:delete process.env.DEBUG}o(Fke,"save");function Uke(){return process.env.DEBUG}o(Uke,"load");function qke(t){t.inspectOpts={};let e=Object.keys(Sr.inspectOpts);for(let r=0;r<e.length;r++)t.inspectOpts[e[r]]=Sr.inspectOpts[e[r]]}o(qke,"init");sB.exports=uP()(Sr);var{formatters:_K}=sB.exports;_K.o=function(t){return this.inspectOpts.colors=this.useColors,nB.inspect(t,this.inspectOpts).split(`
|
||||
`).map(e=>e.trim()).join(" ")};_K.O=function(t){return this.inspectOpts.colors=this.useColors,nB.inspect(t,this.inspectOpts)}});var iB=m((tlt,fP)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?fP.exports=xK():fP.exports=PK()});var OK=m(Cn=>{"use strict";var Gke=Cn&&Cn.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),Hke=Cn&&Cn.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),kK=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)&&Gke(e,t,r);return Hke(e,t),e};Object.defineProperty(Cn,"__esModule",{value:!0});Cn.req=Cn.json=Cn.toBuffer=void 0;var Vke=kK(require("http")),zke=kK(require("https"));async function DK(t){let e=0,r=[];for await(let n of t)e+=n.length,r.push(n);return Buffer.concat(r,e)}o(DK,"toBuffer");Cn.toBuffer=DK;async function $ke(t){let r=(await DK(t)).toString("utf8");try{return JSON.parse(r)}catch(n){let s=n;throw s.message+=` (input: ${r})`,s}}o($ke,"json");Cn.json=$ke;function Jke(t,e={}){let n=((typeof t=="string"?t:t.href).startsWith("https:")?zke:Vke).request(t,e),s=new Promise((i,a)=>{n.once("response",i).once("error",a).end()});return n.then=s.then.bind(s),n}o(Jke,"req");Cn.req=Jke});var UK=m(ns=>{"use strict";var LK=ns&&ns.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),Yke=ns&&ns.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),FK=ns&&ns.__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)&&LK(e,t,r);return Yke(e,t),e},Wke=ns&&ns.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&LK(e,t,r)};Object.defineProperty(ns,"__esModule",{value:!0});ns.Agent=void 0;var jke=FK(require("net")),MK=FK(require("http")),Kke=require("https");Wke(OK(),ns);var no=Symbol("AgentBaseInternalState"),hP=class extends MK.Agent{static{o(this,"Agent")}constructor(e){super(e),this[no]={}}isSecureEndpoint(e){if(e){if(typeof e.secureEndpoint=="boolean")return e.secureEndpoint;if(typeof e.protocol=="string")return e.protocol==="https:"}let{stack:r}=new Error;return typeof r!="string"?!1:r.split(`
|
||||
`).some(n=>n.indexOf("(https.js:")!==-1||n.indexOf("node:https:")!==-1)}incrementSockets(e){if(this.maxSockets===1/0&&this.maxTotalSockets===1/0)return null;this.sockets[e]||(this.sockets[e]=[]);let r=new jke.Socket({writable:!1});return this.sockets[e].push(r),this.totalSocketCount++,r}decrementSockets(e,r){if(!this.sockets[e]||r===null)return;let n=this.sockets[e],s=n.indexOf(r);s!==-1&&(n.splice(s,1),this.totalSocketCount--,n.length===0&&delete this.sockets[e])}getName(e){return this.isSecureEndpoint(e)?Kke.Agent.prototype.getName.call(this,e):super.getName(e)}createSocket(e,r,n){let s={...r,secureEndpoint:this.isSecureEndpoint(r)},i=this.getName(s),a=this.incrementSockets(i);Promise.resolve().then(()=>this.connect(e,s)).then(c=>{if(this.decrementSockets(i,a),c instanceof MK.Agent)try{return c.addRequest(e,s)}catch(l){return n(l)}this[no].currentSocket=c,super.createSocket(e,r,n)},c=>{this.decrementSockets(i,a),n(c)})}createConnection(){let e=this[no].currentSocket;if(this[no].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[no].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[no]&&(this[no].defaultPort=e)}get protocol(){return this[no].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[no]&&(this[no].protocol=e)}};ns.Agent=hP});var qK=m(UA=>{"use strict";var Xke=UA&&UA.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(UA,"__esModule",{value:!0});UA.parseProxyResponse=void 0;var Zke=Xke(iB()),oB=(0,Zke.default)("https-proxy-agent:parse-proxy-response");function eDe(t){return new Promise((e,r)=>{let n=0,s=[];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(),oB("onend"),r(new Error("Proxy connection ended before receiving CONNECT response"))}o(c,"onend");function l(d){a(),oB("onerror %o",d),r(d)}o(l,"onerror");function u(d){s.push(d),n+=d.length;let A=Buffer.concat(s,n),p=A.indexOf(`\r
|
||||
`+i),t.push(s+"m+"+aB.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=ODe()+e+" "+t[0]}o(DDe,"formatArgs");function ODe(){return Sr.inspectOpts.hideDate?"":new Date().toISOString()+" "}o(ODe,"getDate");function MDe(...t){return process.stderr.write(oB.format(...t)+`
|
||||
`)}o(MDe,"log");function LDe(t){t?process.env.DEBUG=t:delete process.env.DEBUG}o(LDe,"save");function FDe(){return process.env.DEBUG}o(FDe,"load");function UDe(t){t.inspectOpts={};let e=Object.keys(Sr.inspectOpts);for(let r=0;r<e.length;r++)t.inspectOpts[e[r]]=Sr.inspectOpts[e[r]]}o(UDe,"init");aB.exports=gP()(Sr);var{formatters:MK}=aB.exports;MK.o=function(t){return this.inspectOpts.colors=this.useColors,oB.inspect(t,this.inspectOpts).split(`
|
||||
`).map(e=>e.trim()).join(" ")};MK.O=function(t){return this.inspectOpts.colors=this.useColors,oB.inspect(t,this.inspectOpts)}});var cB=g((Rut,IP)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?IP.exports=_K():IP.exports=LK()});var qK=g(In=>{"use strict";var qDe=In&&In.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),GDe=In&&In.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),FK=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)&&qDe(e,t,r);return GDe(e,t),e};Object.defineProperty(In,"__esModule",{value:!0});In.req=In.json=In.toBuffer=void 0;var HDe=FK(require("http")),VDe=FK(require("https"));async function UK(t){let e=0,r=[];for await(let n of t)e+=n.length,r.push(n);return Buffer.concat(r,e)}o(UK,"toBuffer");In.toBuffer=UK;async function zDe(t){let r=(await UK(t)).toString("utf8");try{return JSON.parse(r)}catch(n){let s=n;throw s.message+=` (input: ${r})`,s}}o(zDe,"json");In.json=zDe;function $De(t,e={}){let n=((typeof t=="string"?t:t.href).startsWith("https:")?VDe:HDe).request(t,e),s=new Promise((i,a)=>{n.once("response",i).once("error",a).end()});return n.then=s.then.bind(s),n}o($De,"req");In.req=$De});var zK=g(ns=>{"use strict";var HK=ns&&ns.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),JDe=ns&&ns.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),VK=ns&&ns.__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)&&HK(e,t,r);return JDe(e,t),e},YDe=ns&&ns.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&HK(e,t,r)};Object.defineProperty(ns,"__esModule",{value:!0});ns.Agent=void 0;var WDe=VK(require("net")),GK=VK(require("http")),jDe=require("https");YDe(qK(),ns);var no=Symbol("AgentBaseInternalState"),BP=class extends GK.Agent{static{o(this,"Agent")}constructor(e){super(e),this[no]={}}isSecureEndpoint(e){if(e){if(typeof e.secureEndpoint=="boolean")return e.secureEndpoint;if(typeof e.protocol=="string")return e.protocol==="https:"}let{stack:r}=new Error;return typeof r!="string"?!1:r.split(`
|
||||
`).some(n=>n.indexOf("(https.js:")!==-1||n.indexOf("node:https:")!==-1)}incrementSockets(e){if(this.maxSockets===1/0&&this.maxTotalSockets===1/0)return null;this.sockets[e]||(this.sockets[e]=[]);let r=new WDe.Socket({writable:!1});return this.sockets[e].push(r),this.totalSocketCount++,r}decrementSockets(e,r){if(!this.sockets[e]||r===null)return;let n=this.sockets[e],s=n.indexOf(r);s!==-1&&(n.splice(s,1),this.totalSocketCount--,n.length===0&&delete this.sockets[e])}getName(e){return this.isSecureEndpoint(e)?jDe.Agent.prototype.getName.call(this,e):super.getName(e)}createSocket(e,r,n){let s={...r,secureEndpoint:this.isSecureEndpoint(r)},i=this.getName(s),a=this.incrementSockets(i);Promise.resolve().then(()=>this.connect(e,s)).then(c=>{if(this.decrementSockets(i,a),c instanceof GK.Agent)try{return c.addRequest(e,s)}catch(l){return n(l)}this[no].currentSocket=c,super.createSocket(e,r,n)},c=>{this.decrementSockets(i,a),n(c)})}createConnection(){let e=this[no].currentSocket;if(this[no].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[no].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[no]&&(this[no].defaultPort=e)}get protocol(){return this[no].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[no]&&(this[no].protocol=e)}};ns.Agent=BP});var $K=g(JA=>{"use strict";var KDe=JA&&JA.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(JA,"__esModule",{value:!0});JA.parseProxyResponse=void 0;var XDe=KDe(cB()),lB=(0,XDe.default)("https-proxy-agent:parse-proxy-response");function ZDe(t){return new Promise((e,r)=>{let n=0,s=[];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(),lB("onend"),r(new Error("Proxy connection ended before receiving CONNECT response"))}o(c,"onend");function l(d){a(),lB("onerror %o",d),r(d)}o(l,"onerror");function u(d){s.push(d),n+=d.length;let A=Buffer.concat(s,n),p=A.indexOf(`\r
|
||||
\r
|
||||
`);if(p===-1){oB("have not received end of HTTP headers yet..."),i();return}let f=A.slice(0,p).toString("ascii").split(`\r
|
||||
`),h=f.shift();if(!h)return t.destroy(),r(new Error("No header received from proxy CONNECT response"));let g=h.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}oB("got proxy server response: %o %o",h,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(eDe,"parseProxyResponse");UA.parseProxyResponse=eDe});var JK=m(ks=>{"use strict";var tDe=ks&&ks.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),rDe=ks&&ks.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),zK=ks&&ks.__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)&&tDe(e,t,r);return rDe(e,t),e},$K=ks&&ks.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(ks,"__esModule",{value:!0});ks.HttpsProxyAgent=void 0;var aB=zK(require("net")),GK=zK(require("tls")),nDe=$K(require("assert")),sDe=$K(iB()),iDe=UK(),oDe=require("url"),aDe=qK(),Im=(0,sDe.default)("https-proxy-agent"),HK=o(t=>t.servername===void 0&&t.host&&!aB.isIP(t.host)?{...t,servername:t.host}:t,"setServernameFromNonIpHost"),cB=class extends iDe.Agent{static{o(this,"HttpsProxyAgent")}constructor(e,r){super(r),this.options={path:void 0},this.proxy=typeof e=="string"?new oDe.URL(e):e,this.proxyHeaders=r?.headers??{},Im("Creating new HttpsProxyAgent instance: %o",this.proxy.href);let n=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),s=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={ALPNProtocols:["http/1.1"],...r?VK(r,"headers"):null,host:n,port:s}}async connect(e,r){let{proxy:n}=this;if(!r.host)throw new TypeError('No "host" provided');let s;n.protocol==="https:"?(Im("Creating `tls.Socket`: %o",this.connectOpts),s=GK.connect(HK(this.connectOpts))):(Im("Creating `net.Socket`: %o",this.connectOpts),s=aB.connect(this.connectOpts));let i=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders},a=aB.isIPv6(r.host)?`[${r.host}]`:r.host,c=`CONNECT ${a}:${r.port} HTTP/1.1\r
|
||||
`);if(p===-1){lB("have not received end of HTTP headers yet..."),i();return}let f=A.slice(0,p).toString("ascii").split(`\r
|
||||
`),h=f.shift();if(!h)return t.destroy(),r(new Error("No header received from proxy CONNECT response"));let m=h.split(" "),y=+m[1],E=m.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(),R=I.slice(b+1).trimStart(),D=C[N];typeof D=="string"?C[N]=[D,R]:Array.isArray(D)?D.push(R):C[N]=R}lB("got proxy server response: %o %o",h,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(ZDe,"parseProxyResponse");JA.parseProxyResponse=ZDe});var XK=g(Ps=>{"use strict";var eOe=Ps&&Ps.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),tOe=Ps&&Ps.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),jK=Ps&&Ps.__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)&&eOe(e,t,r);return tOe(e,t),e},KK=Ps&&Ps.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Ps,"__esModule",{value:!0});Ps.HttpsProxyAgent=void 0;var uB=jK(require("net")),JK=jK(require("tls")),rOe=KK(require("assert")),nOe=KK(cB()),sOe=zK(),iOe=require("url"),oOe=$K(),Tm=(0,nOe.default)("https-proxy-agent"),YK=o(t=>t.servername===void 0&&t.host&&!uB.isIP(t.host)?{...t,servername:t.host}:t,"setServernameFromNonIpHost"),dB=class extends sOe.Agent{static{o(this,"HttpsProxyAgent")}constructor(e,r){super(r),this.options={path:void 0},this.proxy=typeof e=="string"?new iOe.URL(e):e,this.proxyHeaders=r?.headers??{},Tm("Creating new HttpsProxyAgent instance: %o",this.proxy.href);let n=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),s=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={ALPNProtocols:["http/1.1"],...r?WK(r,"headers"):null,host:n,port:s}}async connect(e,r){let{proxy:n}=this;if(!r.host)throw new TypeError('No "host" provided');let s;n.protocol==="https:"?(Tm("Creating `tls.Socket`: %o",this.connectOpts),s=JK.connect(YK(this.connectOpts))):(Tm("Creating `net.Socket`: %o",this.connectOpts),s=uB.connect(this.connectOpts));let i=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders},a=uB.isIPv6(r.host)?`[${r.host}]`:r.host,c=`CONNECT ${a}:${r.port} HTTP/1.1\r
|
||||
`;if(n.username||n.password){let p=`${decodeURIComponent(n.username)}:${decodeURIComponent(n.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,aDe.parseProxyResponse)(s);s.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",cDe),r.secureEndpoint?(Im("Upgrading socket connection to TLS"),GK.connect({...VK(HK(r),"host","path","port"),socket:s})):s;s.destroy();let A=new aB.Socket({writable:!1});return A.readable=!0,e.once("socket",p=>{Im("Replaying proxy buffer for failed request"),(0,nDe.default)(p.listenerCount("data")>0),p.push(d),p.push(null)}),A}};cB.protocols=["http","https"];ks.HttpsProxyAgent=cB;function cDe(t){t.resume()}o(cDe,"resume");function VK(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}o(VK,"omit")});var jK=m(In=>{"use strict";var lDe=In&&In.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),uDe=In&&In.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),YK=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)&&lDe(e,t,r);return uDe(e,t),e};Object.defineProperty(In,"__esModule",{value:!0});In.req=In.json=In.toBuffer=void 0;var dDe=YK(require("http")),ADe=YK(require("https"));async function WK(t){let e=0,r=[];for await(let n of t)e+=n.length,r.push(n);return Buffer.concat(r,e)}o(WK,"toBuffer");In.toBuffer=WK;async function pDe(t){let r=(await WK(t)).toString("utf8");try{return JSON.parse(r)}catch(n){let s=n;throw s.message+=` (input: ${r})`,s}}o(pDe,"json");In.json=pDe;function fDe(t,e={}){let n=((typeof t=="string"?t:t.href).startsWith("https:")?ADe:dDe).request(t,e),s=new Promise((i,a)=>{n.once("response",i).once("error",a).end()});return n.then=s.then.bind(s),n}o(fDe,"req");In.req=fDe});var eX=m(ss=>{"use strict";var XK=ss&&ss.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),hDe=ss&&ss.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),ZK=ss&&ss.__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)&&XK(e,t,r);return hDe(e,t),e},mDe=ss&&ss.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&XK(e,t,r)};Object.defineProperty(ss,"__esModule",{value:!0});ss.Agent=void 0;var gDe=ZK(require("net")),KK=ZK(require("http")),EDe=require("https");mDe(jK(),ss);var so=Symbol("AgentBaseInternalState"),mP=class extends KK.Agent{static{o(this,"Agent")}constructor(e){super(e),this[so]={}}isSecureEndpoint(e){if(e){if(typeof e.secureEndpoint=="boolean")return e.secureEndpoint;if(typeof e.protocol=="string")return e.protocol==="https:"}let{stack:r}=new Error;return typeof r!="string"?!1:r.split(`
|
||||
`).some(n=>n.indexOf("(https.js:")!==-1||n.indexOf("node:https:")!==-1)}incrementSockets(e){if(this.maxSockets===1/0&&this.maxTotalSockets===1/0)return null;this.sockets[e]||(this.sockets[e]=[]);let r=new gDe.Socket({writable:!1});return this.sockets[e].push(r),this.totalSocketCount++,r}decrementSockets(e,r){if(!this.sockets[e]||r===null)return;let n=this.sockets[e],s=n.indexOf(r);s!==-1&&(n.splice(s,1),this.totalSocketCount--,n.length===0&&delete this.sockets[e])}getName(e){return(typeof e.secureEndpoint=="boolean"?e.secureEndpoint:this.isSecureEndpoint(e))?EDe.Agent.prototype.getName.call(this,e):super.getName(e)}createSocket(e,r,n){let s={...r,secureEndpoint:this.isSecureEndpoint(r)},i=this.getName(s),a=this.incrementSockets(i);Promise.resolve().then(()=>this.connect(e,s)).then(c=>{if(this.decrementSockets(i,a),c instanceof KK.Agent)return c.addRequest(e,s);this[so].currentSocket=c,super.createSocket(e,r,n)},c=>{this.decrementSockets(i,a),n(c)})}createConnection(){let e=this[so].currentSocket;if(this[so].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[so].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[so]&&(this[so].defaultPort=e)}get protocol(){return this[so].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[so]&&(this[so].protocol=e)}};ss.Agent=mP});var nX=m(Ds=>{"use strict";var yDe=Ds&&Ds.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),CDe=Ds&&Ds.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),rX=Ds&&Ds.__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)&&yDe(e,t,r);return CDe(e,t),e},IDe=Ds&&Ds.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Ds,"__esModule",{value:!0});Ds.HttpProxyAgent=void 0;var BDe=rX(require("net")),bDe=rX(require("tls")),wDe=IDe(iB()),SDe=require("events"),NDe=eX(),tX=require("url"),qA=(0,wDe.default)("http-proxy-agent"),lB=class extends NDe.Agent{static{o(this,"HttpProxyAgent")}constructor(e,r){super(r),this.proxy=typeof e=="string"?new tX.URL(e):e,this.proxyHeaders=r?.headers??{},qA("Creating new HttpProxyAgent instance: %o",this.proxy.href);let n=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),s=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={...r?xDe(r,"headers"):null,host:n,port:s}}addRequest(e,r){e._header=null,this.setRequestProps(e,r),super.addRequest(e,r)}setRequestProps(e,r){let{proxy:n}=this,s=r.secureEndpoint?"https:":"http:",i=e.getHeader("host")||"localhost",a=`${s}//${i}`,c=new tX.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(n.username||n.password){let u=`${decodeURIComponent(n.username)}:${decodeURIComponent(n.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 n,s;qA("Regenerating stored HTTP header string for request"),e._implicitHeader(),e.outputData&&e.outputData.length>0&&(qA("Patching connection write() output buffer with updated header"),n=e.outputData[0].data,s=n.indexOf(`\r
|
||||
`;let l=(0,oOe.parseProxyResponse)(s);s.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",aOe),r.secureEndpoint?(Tm("Upgrading socket connection to TLS"),JK.connect({...WK(YK(r),"host","path","port"),socket:s})):s;s.destroy();let A=new uB.Socket({writable:!1});return A.readable=!0,e.once("socket",p=>{Tm("Replaying proxy buffer for failed request"),(0,rOe.default)(p.listenerCount("data")>0),p.push(d),p.push(null)}),A}};dB.protocols=["http","https"];Ps.HttpsProxyAgent=dB;function aOe(t){t.resume()}o(aOe,"resume");function WK(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}o(WK,"omit")});var tX=g(Bn=>{"use strict";var cOe=Bn&&Bn.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),lOe=Bn&&Bn.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),ZK=Bn&&Bn.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&cOe(e,t,r);return lOe(e,t),e};Object.defineProperty(Bn,"__esModule",{value:!0});Bn.req=Bn.json=Bn.toBuffer=void 0;var uOe=ZK(require("http")),dOe=ZK(require("https"));async function eX(t){let e=0,r=[];for await(let n of t)e+=n.length,r.push(n);return Buffer.concat(r,e)}o(eX,"toBuffer");Bn.toBuffer=eX;async function AOe(t){let r=(await eX(t)).toString("utf8");try{return JSON.parse(r)}catch(n){let s=n;throw s.message+=` (input: ${r})`,s}}o(AOe,"json");Bn.json=AOe;function pOe(t,e={}){let n=((typeof t=="string"?t:t.href).startsWith("https:")?dOe:uOe).request(t,e),s=new Promise((i,a)=>{n.once("response",i).once("error",a).end()});return n.then=s.then.bind(s),n}o(pOe,"req");Bn.req=pOe});var iX=g(ss=>{"use strict";var nX=ss&&ss.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),fOe=ss&&ss.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),sX=ss&&ss.__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)&&nX(e,t,r);return fOe(e,t),e},hOe=ss&&ss.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&nX(e,t,r)};Object.defineProperty(ss,"__esModule",{value:!0});ss.Agent=void 0;var mOe=sX(require("net")),rX=sX(require("http")),gOe=require("https");hOe(tX(),ss);var so=Symbol("AgentBaseInternalState"),bP=class extends rX.Agent{static{o(this,"Agent")}constructor(e){super(e),this[so]={}}isSecureEndpoint(e){if(e){if(typeof e.secureEndpoint=="boolean")return e.secureEndpoint;if(typeof e.protocol=="string")return e.protocol==="https:"}let{stack:r}=new Error;return typeof r!="string"?!1:r.split(`
|
||||
`).some(n=>n.indexOf("(https.js:")!==-1||n.indexOf("node:https:")!==-1)}incrementSockets(e){if(this.maxSockets===1/0&&this.maxTotalSockets===1/0)return null;this.sockets[e]||(this.sockets[e]=[]);let r=new mOe.Socket({writable:!1});return this.sockets[e].push(r),this.totalSocketCount++,r}decrementSockets(e,r){if(!this.sockets[e]||r===null)return;let n=this.sockets[e],s=n.indexOf(r);s!==-1&&(n.splice(s,1),this.totalSocketCount--,n.length===0&&delete this.sockets[e])}getName(e){return(typeof e.secureEndpoint=="boolean"?e.secureEndpoint:this.isSecureEndpoint(e))?gOe.Agent.prototype.getName.call(this,e):super.getName(e)}createSocket(e,r,n){let s={...r,secureEndpoint:this.isSecureEndpoint(r)},i=this.getName(s),a=this.incrementSockets(i);Promise.resolve().then(()=>this.connect(e,s)).then(c=>{if(this.decrementSockets(i,a),c instanceof rX.Agent)return c.addRequest(e,s);this[so].currentSocket=c,super.createSocket(e,r,n)},c=>{this.decrementSockets(i,a),n(c)})}createConnection(){let e=this[so].currentSocket;if(this[so].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[so].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[so]&&(this[so].defaultPort=e)}get protocol(){return this[so].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[so]&&(this[so].protocol=e)}};ss.Agent=bP});var cX=g(ks=>{"use strict";var EOe=ks&&ks.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),yOe=ks&&ks.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),aX=ks&&ks.__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)&&EOe(e,t,r);return yOe(e,t),e},COe=ks&&ks.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(ks,"__esModule",{value:!0});ks.HttpProxyAgent=void 0;var IOe=aX(require("net")),BOe=aX(require("tls")),bOe=COe(cB()),wOe=require("events"),SOe=iX(),oX=require("url"),YA=(0,bOe.default)("http-proxy-agent"),AB=class extends SOe.Agent{static{o(this,"HttpProxyAgent")}constructor(e,r){super(r),this.proxy=typeof e=="string"?new oX.URL(e):e,this.proxyHeaders=r?.headers??{},YA("Creating new HttpProxyAgent instance: %o",this.proxy.href);let n=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),s=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={...r?NOe(r,"headers"):null,host:n,port:s}}addRequest(e,r){e._header=null,this.setRequestProps(e,r),super.addRequest(e,r)}setRequestProps(e,r){let{proxy:n}=this,s=r.secureEndpoint?"https:":"http:",i=e.getHeader("host")||"localhost",a=`${s}//${i}`,c=new oX.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(n.username||n.password){let u=`${decodeURIComponent(n.username)}:${decodeURIComponent(n.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 n,s;YA("Regenerating stored HTTP header string for request"),e._implicitHeader(),e.outputData&&e.outputData.length>0&&(YA("Patching connection write() output buffer with updated header"),n=e.outputData[0].data,s=n.indexOf(`\r
|
||||
\r
|
||||
`)+4,e.outputData[0].data=e._header+n.substring(s),qA("Output buffer: %o",e.outputData[0].data));let i;return this.proxy.protocol==="https:"?(qA("Creating `tls.Socket`: %o",this.connectOpts),i=bDe.connect(this.connectOpts)):(qA("Creating `net.Socket`: %o",this.connectOpts),i=BDe.connect(this.connectOpts)),await(0,SDe.once)(i,"connect"),i}};lB.protocols=["http","https"];Ds.HttpProxyAgent=lB;function xDe(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}o(xDe,"omit")});var SX=m(bB=>{"use strict";Object.defineProperty(bB,"__esModule",{value:!0});bB.state=void 0;bB.state={instrumenterImplementation:void 0}});var GX=m(QB=>{"use strict";Object.defineProperty(QB,"__esModule",{value:!0});QB.state=void 0;QB.state={operationRequestMap:new WeakMap}});var Cee=m(ip=>{"use strict";Object.defineProperty(ip,"__esModule",{value:!0});var JFe=require("os"),YFe=require("util");function WFe(t){return t&&typeof t=="object"&&"default"in t?t:{default:t}}o(WFe,"_interopDefaultLegacy");var jFe=WFe(YFe);function KFe(t,...e){process.stderr.write(`${jFe.default.format(t,...e)}${JFe.EOL}`)}o(KFe,"log");var uee=typeof process<"u"&&process.env&&process.env.DEBUG||void 0,Aee,YM=[],WM=[],Jb=[];uee&&jM(uee);var pee=Object.assign(t=>fee(t),{enable:jM,enabled:KM,disable:XFe,log:KFe});function jM(t){Aee=t,YM=[],WM=[];let e=/\*/g,r=t.split(",").map(n=>n.trim().replace(e,".*?"));for(let n of r)n.startsWith("-")?WM.push(new RegExp(`^${n.substr(1)}$`)):YM.push(new RegExp(`^${n}$`));for(let n of Jb)n.enabled=KM(n.namespace)}o(jM,"enable");function KM(t){if(t.endsWith("*"))return!0;for(let e of WM)if(e.test(t))return!1;for(let e of YM)if(e.test(t))return!0;return!1}o(KM,"enabled");function XFe(){let t=Aee||"";return jM(""),t}o(XFe,"disable");function fee(t){let e=Object.assign(r,{enabled:KM(t),destroy:ZFe,log:pee.log,namespace:t,extend:eUe});function r(...n){e.enabled&&(n.length>0&&(n[0]=`${t} ${n[0]}`),e.log(...n))}return o(r,"debug"),Jb.push(e),e}o(fee,"createDebugger");function ZFe(){let t=Jb.indexOf(this);return t>=0?(Jb.splice(t,1),!0):!1}o(ZFe,"destroy");function eUe(t){let e=fee(`${this.namespace}:${t}`);return e.log=this.log,e}o(eUe,"extend");var cg=pee,hee=new Set,zb=typeof process<"u"&&process.env&&process.env.AZURE_LOG_LEVEL||void 0,Yb,Wb=cg("azure");Wb.log=(...t)=>{cg.log(...t)};var XM=["verbose","info","warning","error"];zb&&(yee(zb)?mee(zb):console.error(`AZURE_LOG_LEVEL set to unknown log level '${zb}'; logging is not enabled. Acceptable values: ${XM.join(", ")}.`));function mee(t){if(t&&!yee(t))throw new Error(`Unknown log level '${t}'. Acceptable values: ${XM.join(",")}`);Yb=t;let e=[];for(let r of hee)Eee(r)&&e.push(r.namespace);cg.enable(e.join(","))}o(mee,"setLogLevel");function tUe(){return Yb}o(tUe,"getLogLevel");var dee={verbose:400,info:300,warning:200,error:100};function rUe(t){let e=Wb.extend(t);return gee(Wb,e),{error:$b(e,"error"),warning:$b(e,"warning"),info:$b(e,"info"),verbose:$b(e,"verbose")}}o(rUe,"createClientLogger");function gee(t,e){e.log=(...r)=>{t.log(...r)}}o(gee,"patchLogMethod");function $b(t,e){let r=Object.assign(t.extend(e),{level:e});if(gee(t,r),Eee(r)){let n=cg.disable();cg.enable(n+","+r.namespace)}return hee.add(r),r}o($b,"createLogger");function Eee(t){return!!(Yb&&dee[t.level]<=dee[Yb])}o(Eee,"shouldEnable");function yee(t){return XM.includes(t)}o(yee,"isAzureLogLevel");ip.AzureLogger=Wb;ip.createClientLogger=rUe;ip.getLogLevel=tUe;ip.setLogLevel=mee});var tL=m(ug=>{"use strict";Object.defineProperty(ug,"__esModule",{value:!0});var op=new WeakMap,jb=new WeakMap,lg=class t{static{o(this,"AbortSignal")}constructor(){this.onabort=null,op.set(this,[]),jb.set(this,!1)}get aborted(){if(!jb.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");return jb.get(this)}static get none(){return new t}addEventListener(e,r){if(!op.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");op.get(this).push(r)}removeEventListener(e,r){if(!op.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");let n=op.get(this),s=n.indexOf(r);s>-1&&n.splice(s,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 Iee(t){if(t.aborted)return;t.onabort&&t.onabort.call(t);let e=op.get(t);e&&e.slice().forEach(r=>{r.call(t,{type:"abort"})}),jb.set(t,!0)}o(Iee,"abortSignal");var ZM=class extends Error{static{o(this,"AbortError")}constructor(e){super(e),this.name="AbortError"}},eL=class{static{o(this,"AbortController")}constructor(e){if(this._signal=new lg,!!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(){Iee(this._signal)}static timeout(e){let r=new lg,n=setTimeout(Iee,e,r);return typeof n.unref=="function"&&n.unref(),r}};ug.AbortController=eL;ug.AbortError=ZM;ug.AbortSignal=lg});var Nee=m(nn=>{"use strict";Object.definePro
Line truncated
|
||||
`)+4,e.outputData[0].data=e._header+n.substring(s),YA("Output buffer: %o",e.outputData[0].data));let i;return this.proxy.protocol==="https:"?(YA("Creating `tls.Socket`: %o",this.connectOpts),i=BOe.connect(this.connectOpts)):(YA("Creating `net.Socket`: %o",this.connectOpts),i=IOe.connect(this.connectOpts)),await(0,wOe.once)(i,"connect"),i}};AB.protocols=["http","https"];ks.HttpProxyAgent=AB;function NOe(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}o(NOe,"omit")});var TX=g(NB=>{"use strict";Object.defineProperty(NB,"__esModule",{value:!0});NB.state=void 0;NB.state={instrumenterImplementation:void 0}});var JX=g(vB=>{"use strict";Object.defineProperty(vB,"__esModule",{value:!0});vB.state=void 0;vB.state={operationRequestMap:new WeakMap}});var See=g(Ap=>{"use strict";Object.defineProperty(Ap,"__esModule",{value:!0});var $Ue=require("os"),JUe=require("util");function YUe(t){return t&&typeof t=="object"&&"default"in t?t:{default:t}}o(YUe,"_interopDefaultLegacy");var WUe=YUe(JUe);function jUe(t,...e){process.stderr.write(`${WUe.default.format(t,...e)}${$Ue.EOL}`)}o(jUe,"log");var hee=typeof process<"u"&&process.env&&process.env.DEBUG||void 0,gee,tL=[],rL=[],jb=[];hee&&nL(hee);var Eee=Object.assign(t=>yee(t),{enable:nL,enabled:sL,disable:KUe,log:jUe});function nL(t){gee=t,tL=[],rL=[];let e=/\*/g,r=t.split(",").map(n=>n.trim().replace(e,".*?"));for(let n of r)n.startsWith("-")?rL.push(new RegExp(`^${n.substr(1)}$`)):tL.push(new RegExp(`^${n}$`));for(let n of jb)n.enabled=sL(n.namespace)}o(nL,"enable");function sL(t){if(t.endsWith("*"))return!0;for(let e of rL)if(e.test(t))return!1;for(let e of tL)if(e.test(t))return!0;return!1}o(sL,"enabled");function KUe(){let t=gee||"";return nL(""),t}o(KUe,"disable");function yee(t){let e=Object.assign(r,{enabled:sL(t),destroy:XUe,log:Eee.log,namespace:t,extend:ZUe});function r(...n){e.enabled&&(n.length>0&&(n[0]=`${t} ${n[0]}`),e.log(...n))}return o(r,"debug"),jb.push(e),e}o(yee,"createDebugger");function XUe(){let t=jb.indexOf(this);return t>=0?(jb.splice(t,1),!0):!1}o(XUe,"destroy");function ZUe(t){let e=yee(`${this.namespace}:${t}`);return e.log=this.log,e}o(ZUe,"extend");var gg=Eee,Cee=new Set,Yb=typeof process<"u"&&process.env&&process.env.AZURE_LOG_LEVEL||void 0,Kb,Xb=gg("azure");Xb.log=(...t)=>{gg.log(...t)};var iL=["verbose","info","warning","error"];Yb&&(wee(Yb)?Iee(Yb):console.error(`AZURE_LOG_LEVEL set to unknown log level '${Yb}'; logging is not enabled. Acceptable values: ${iL.join(", ")}.`));function Iee(t){if(t&&!wee(t))throw new Error(`Unknown log level '${t}'. Acceptable values: ${iL.join(",")}`);Kb=t;let e=[];for(let r of Cee)bee(r)&&e.push(r.namespace);gg.enable(e.join(","))}o(Iee,"setLogLevel");function e2e(){return Kb}o(e2e,"getLogLevel");var mee={verbose:400,info:300,warning:200,error:100};function t2e(t){let e=Xb.extend(t);return Bee(Xb,e),{error:Wb(e,"error"),warning:Wb(e,"warning"),info:Wb(e,"info"),verbose:Wb(e,"verbose")}}o(t2e,"createClientLogger");function Bee(t,e){e.log=(...r)=>{t.log(...r)}}o(Bee,"patchLogMethod");function Wb(t,e){let r=Object.assign(t.extend(e),{level:e});if(Bee(t,r),bee(r)){let n=gg.disable();gg.enable(n+","+r.namespace)}return Cee.add(r),r}o(Wb,"createLogger");function bee(t){return!!(Kb&&mee[t.level]<=mee[Kb])}o(bee,"shouldEnable");function wee(t){return iL.includes(t)}o(wee,"isAzureLogLevel");Ap.AzureLogger=Xb;Ap.createClientLogger=t2e;Ap.getLogLevel=e2e;Ap.setLogLevel=Iee});var cL=g(yg=>{"use strict";Object.defineProperty(yg,"__esModule",{value:!0});var pp=new WeakMap,Zb=new WeakMap,Eg=class t{static{o(this,"AbortSignal")}constructor(){this.onabort=null,pp.set(this,[]),Zb.set(this,!1)}get aborted(){if(!Zb.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");return Zb.get(this)}static get none(){return new t}addEventListener(e,r){if(!pp.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");pp.get(this).push(r)}removeEventListener(e,r){if(!pp.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");let n=pp.get(this),s=n.indexOf(r);s>-1&&n.splice(s,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 Nee(t){if(t.aborted)return;t.onabort&&t.onabort.call(t);let e=pp.get(t);e&&e.slice().forEach(r=>{r.call(t,{type:"abort"})}),Zb.set(t,!0)}o(Nee,"abortSignal");var oL=class extends Error{static{o(this,"AbortError")}constructor(e){super(e),this.name="AbortError"}},aL=class{static{o(this,"AbortController")}constructor(e){if(this._signal=new Eg,!!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(){Nee(this._signal)}static timeout(e){let r=new Eg,n=setTimeout(Nee,e,r);return typeof n.unref=="function"&&n.unref(),r}};yg.AbortController=aL;yg.AbortError=oL;yg.AbortSignal=Eg});var vee=g(sn=>{"use strict";Object.definePro
Line truncated
|
||||
Polling from: ${r.config.operationLocation}
|
||||
Operation status: ${d}
|
||||
Polling status: ${Tee.includes(d)?"Stopped":"Running"}`),d==="succeeded"){let A=a(u,r);if(A!==void 0)return{response:await e(A).catch(Qee({state:r,stateProxy:n,isOperationError:c})),status:d}}return{response:u,status:d}}o(yUe,"pollOperationHelper");async function kee(t){let{poll:e,state:r,stateProxy:n,options:s,getOperationStatus:i,getResourceLocation:a,getOperationLocation:c,isOperationError:l,withOperationLocation:u,getPollingInterval:d,processResult:A,getError:p,updateState:f,setDelay:h,isDone:g,setErrorAsResult:y}=t,{operationLocation:E}=r.config;if(E!==void 0){let{response:C,status:I}=await yUe({poll:e,getOperationStatus:i,state:r,stateProxy:n,operationLocation:E,getResourceLocation:a,isOperationError:l,options:s});if(_ee({status:I,response:C,state:r,stateProxy:n,isDone:g,processResult:A,getError:p,setErrorAsResult:y}),!Tee.includes(I)){let b=d?.(C);b&&h(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(kee,"pollOperation");function Dee(t){let{azureAsyncOperation:e,operationLocation:r}=t;return r??e}o(Dee,"getOperationLocationPollingUrl");function Oee(t){return t.headers.location}o(Oee,"getLocationHeader");function Mee(t){return t.headers["operation-location"]}o(Mee,"getOperationLocationHeader");function Lee(t){return t.headers["azure-asyncoperation"]}o(Lee,"getAzureAsyncOperationHeader");function CUe(t){let{location:e,requestMethod:r,requestPath:n,resourceLocationConfig:s}=t;switch(r){case"PUT":return n;case"DELETE":return;default:switch(s){case"azure-async-operation":return;case"original-uri":return n;default:return e}}}o(CUe,"findResourceLocation");function Fee(t){let{rawResponse:e,requestMethod:r,requestPath:n,resourceLocationConfig:s}=t,i=Mee(e),a=Lee(e),c=Dee({operationLocation:i,azureAsyncOperation:a}),l=Oee(e),u=r?.toLocaleUpperCase();return c!==void 0?{mode:"OperationLocation",operationLocation:c,resourceLocation:CUe({requestMethod:u,location:l,requestPath:n,resourceLocationConfig:s})}:l!==void 0?{mode:"ResourceLocation",operationLocation:l}:u==="PUT"&&n?{mode:"Body",operationLocation:n}:void 0}o(Fee,"inferLroMode");function Uee(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 lL(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 Qu.verbose(`LRO: unrecognized operation status: ${e}`),e}}o(Uee,"transformStatus");function IUe(t){var e;let{status:r}=(e=t.body)!==null&&e!==void 0?e:{};return Uee({status:r,statusCode:t.statusCode})}o(IUe,"getStatus");function BUe(t){var e,r;let{properties:n,provisioningState:s}=(e=t.body)!==null&&e!==void 0?e:{},i=(r=n?.provisioningState)!==null&&r!==void 0?r:s;return Uee({status:i,statusCode:t.statusCode})}o(BUe,"getProvisioningState");function lL(t){return t===202?"running":t<300?"succeeded":"failed"}o(lL,"toOperationStatus");function qee({rawResponse:t}){let e=t.headers["retry-after"];if(e!==void 0){let r=parseInt(e);return isNaN(r)?bUe(new Date(e)):r*1e3}}o(qee,"parseRetryAfter");function Gee(t){let e=t.flatResponse.error;if(!e){Qu.warning("The long-running operation failed but there is no error property in the response's body");return}if(!e.code||!e.message){Qu.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(Gee,"getErrorFromResponse");function bUe(t){let e=Math.floor(new Date().getTime()),r=t.getTime();if(e<r)return r-e}o(bUe,"calculatePollingIntervalFromDate");function Hee(t){let{response:e,state:r,operationLocation:n}=t;function s(){var a;switch((a=r.config.metadata)===null||a===void 0?void 0:a.mode){case void 0:return lL(e.rawResponse.statusCode);case"Body":return uL(e,r);default:return"running"}}o(s,"helper");let i=s();return i==="running"&&n===void 0?"succeeded":i}o(Hee,"getStatusFromInitialResponse");async function wUe(t){let{stateProxy:e,resourceLocationConfig:r,processResult:n,lro:s,setErrorAsResult:i}=t;return Pee({init:o(async()=>{let a=await s.sendInitialRequest(),c=Fee({rawResponse:a.rawResponse,requestPath:s.requestPath,requestMethod:s.requestMethod,resourceLocationConfig:r});return Object.assign({response:a,operationLocation:c?.operationLocation,resourceLocation:c?.resourceLocation},c?.mode?{metadata:{mode:c.mode}}:{})},"init"),stateProxy:e,processResult:n?({flatResponse:a},c)=>n(a,c):({flatResponse:a})=>a,getOperationStatus:Hee,setErrorAsResult:i})}o(wUe,"initHttpOperation");function Vee({rawResponse:t},e){var r;switch((r=e.config.metadata)===null||r===void 0?void 0:r.mode){case"OperationLocation":return Dee({opeLine truncated
|
||||
`:case"\r":case" ":case" ":continue;default:throw Error("invalid base64 string.")}switch(s){case 0:a=i,s=1;break;case 1:r[n++]=a<<2|(i&48)>>4,a=i,s=2;break;case 2:r[n++]=(a&15)<<4|(i&60)>>2,a=i,s=3;break;case 3:r[n++]=(a&3)<<6|i,s=0;break}}if(s==1)throw Error("invalid base64 string.");return r.subarray(0,n)}o(a2e,"base64decode");Ap.base64decode=a2e;function c2e(t){let e="",r=0,n,s=0;for(let i=0;i<t.length;i++)switch(n=t[i],r){case 0:e+=Ua[n>>2],s=(n&3)<<4,r=1;break;case 1:e+=Ua[s|n>>4],s=(n&15)<<2,r=2;break;case 2:e+=Ua[s|n>>6],e+=Ua[n&63],r=0;break}return r&&(e+=Ua[s],e+="=",r==1&&(e+="=")),e}o(c2e,"base64encode");Ap.base64encode=c2e});var bte=m(hw=>{"use strict";Object.defineProperty(hw,"__esModule",{value:!0});hw.utf8read=void 0;var IL=o(t=>String.fromCharCode.apply(String,t),"fromCharCodes");function l2e(t){if(t.length<1)return"";let e=0,r=[],n=[],s=0,i,a=t.length;for(;e<a;)i=t[e++],i<128?n[s++]=i:i>191&&i<224?n[s++]=(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,n[s++]=55296+(i>>10),n[s++]=56320+(i&1023)):n[s++]=(i&15)<<12|(t[e++]&63)<<6|t[e++]&63,s>8191&&(r.push(IL(n)),s=0);return r.length?(s&&r.push(IL(n.slice(0,s))),r.join("")):IL(n.slice(0,s))}o(l2e,"utf8read");hw.utf8read=l2e});var Eg=m(vo=>{"use strict";Object.defineProperty(vo,"__esModule",{value:!0});vo.WireType=vo.mergeBinaryOptions=vo.UnknownFieldHandler=void 0;var u2e;(function(t){t.symbol=Symbol.for("protobuf-ts/unknown"),t.onRead=(r,n,s,i,a)=>{(e(n)?n[t.symbol]:n[t.symbol]=[]).push({no:s,wireType:i,data:a})},t.onWrite=(r,n,s)=>{for(let{no:i,wireType:a,data:c}of t.list(n))s.tag(i,a).raw(c)},t.list=(r,n)=>{if(e(r)){let s=r[t.symbol];return n?s.filter(i=>i.no==n):s}return[]},t.last=(r,n)=>t.list(r,n).slice(-1)[0];let e=o(r=>r&&Array.isArray(r[t.symbol]),"is")})(u2e=vo.UnknownFieldHandler||(vo.UnknownFieldHandler={}));function d2e(t,e){return Object.assign(Object.assign({},t),e)}o(d2e,"mergeBinaryOptions");vo.mergeBinaryOptions=d2e;var A2e;(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"})(A2e=vo.WireType||(vo.WireType={}))});var gw=m(Qn=>{"use strict";Object.defineProperty(Qn,"__esModule",{value:!0});Qn.varint32read=Qn.varint32write=Qn.int64toString=Qn.int64fromString=Qn.varint64write=Qn.varint64read=void 0;function p2e(){let t=0,e=0;for(let n=0;n<28;n+=7){let s=this.buf[this.pos++];if(t|=(s&127)<<n,(s&128)==0)return this.assertBounds(),[t,e]}let r=this.buf[this.pos++];if(t|=(r&15)<<28,e=(r&112)>>4,(r&128)==0)return this.assertBounds(),[t,e];for(let n=3;n<=31;n+=7){let s=this.buf[this.pos++];if(e|=(s&127)<<n,(s&128)==0)return this.assertBounds(),[t,e]}throw new Error("invalid varint")}o(p2e,"varint64read");Qn.varint64read=p2e;function f2e(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 n=t>>>28&15|(e&7)<<4,s=e>>3!=0;if(r.push((s?n|128:n)&255),!!s){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(f2e,"varint64write");Qn.varint64write=f2e;var mw=65536*65536;function h2e(t){let e=t[0]=="-";e&&(t=t.slice(1));let r=1e6,n=0,s=0;function i(a,c){let l=Number(t.slice(a,c));s*=r,n=n*r+l,n>=mw&&(s=s+(n/mw|0),n=n%mw)}return o(i,"add1e6digit"),i(-24,-18),i(-18,-12),i(-12,-6),i(-6),[e,n,s]}o(h2e,"int64fromString");Qn.int64fromString=h2e;function m2e(t,e){if(e>>>0<=2097151)return""+(mw*e+(t>>>0));let r=t&16777215,n=(t>>>24|e<<8)>>>0&16777215,s=e>>16&65535,i=r+n*6777216+s*6710656,a=n+s*8147497,c=s*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(m2e,"int64toString");Qn.int64toString=m2e;function g2e(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(g2e,"varint32write");Qn.varint32write=g2e;function E2e(){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(E2e,"varint32read");Qn.varint32read=E2e});var $c=m(zc=>{"use strict";Object.defineProperty(zc,"__esModule",{value:!0});zc.PbLong=zc.PbULong=zc.detectBi=void 0;var yg=gw(),Ze;function wte(){let t=new DataView(new ArrayBuffer(8));Ze=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
|
||||
`)}};Vw.RpcError=YL});var jL=m($w=>{"use strict";Object.defineProperty($w,"__esModule",{value:!0});$w.mergeRpcOptions=void 0;var rre=Gt();function Uqe(t,e){if(!e)return t;let r={};zw(t,r),zw(e,r);for(let n of Object.keys(e)){let s=e[n];switch(n){case"jsonOptions":r.jsonOptions=rre.mergeJsonOptions(t.jsonOptions,r.jsonOptions);break;case"binaryOptions":r.binaryOptions=rre.mergeBinaryOptions(t.binaryOptions,r.binaryOptions);break;case"meta":r.meta={},zw(t.meta,r.meta),zw(e.meta,r.meta);break;case"interceptors":r.interceptors=t.interceptors?t.interceptors.concat(s):s.concat();break}}return r}o(Uqe,"mergeRpcOptions");$w.mergeRpcOptions=Uqe;function zw(t,e){if(!t)return;let r=e;for(let[n,s]of Object.entries(t))s instanceof Date?r[n]=new Date(s.getTime()):Array.isArray(s)?r[n]=s.concat():r[n]=s}o(zw,"copy")});var XL=m(Pu=>{"use strict";Object.defineProperty(Pu,"__esModule",{value:!0});Pu.Deferred=Pu.DeferredState=void 0;var ko;(function(t){t[t.PENDING=0]="PENDING",t[t.REJECTED=1]="REJECTED",t[t.RESOLVED=2]="RESOLVED"})(ko=Pu.DeferredState||(Pu.DeferredState={}));var KL=class{static{o(this,"Deferred")}constructor(e=!0){this._state=ko.PENDING,this._promise=new Promise((r,n)=>{this._resolve=r,this._reject=n}),e&&this._promise.catch(r=>{})}get state(){return this._state}get promise(){return this._promise}resolve(e){if(this.state!==ko.PENDING)throw new Error(`cannot resolve ${ko[this.state].toLowerCase()}`);this._resolve(e),this._state=ko.RESOLVED}reject(e){if(this.state!==ko.PENDING)throw new Error(`cannot reject ${ko[this.state].toLowerCase()}`);this._reject(e),this._state=ko.REJECTED}resolvePending(e){this._state===ko.PENDING&&this.resolve(e)}rejectPending(e){this._state===ko.PENDING&&this.reject(e)}};Pu.Deferred=KL});var e1=m(Jw=>{"use strict";Object.defineProperty(Jw,"__esModule",{value:!0});Jw.RpcOutputStreamController=void 0;var nre=XL(),ku=Gt(),ZL=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 n=r.indexOf(e);n>=0&&r.splice(n,1)}}clearLis(){for(let e of Object.values(this._lis))e.splice(0,e.length)}get closed(){return this._closed!==!1}notifyNext(e,r,n){ku.assert((e?1:0)+(r?1:0)+(n?1:0)<=1,"only one emission at a time"),e&&this.notifyMessage(e),r&&this.notifyError(r),n&&this.notifyComplete()}notifyMessage(e){ku.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){ku.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(){ku.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;ku.assert(e,"bad state"),ku.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 nre.Deferred,e.p.promise)},"next")}}pushIt(e){let r=this._itState;if(r.p){let n=r.p;ku.assert(n.state==nre.DeferredState.PENDING,"iterator contract broken"),"value"in e?n.resolve(e):n.reject(e),delete r.p}else r.q.push(e)}};Jw.RpcOutputStreamController=ZL});var r1=m(yp=>{"use strict";var qqe=yp&&yp.__awaiter||function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(a){a(i)})}return o(s,"adopt"),new(r||(r=Promise))(function(i,a){function c(d){try{u(n.next(d))}catch(A){a(A)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(A){a(A)}}o(l,"rejected");function u(d){d.done?i(d.value):s(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})};Object.defineProperty(yp,"__esModule",{value:!0});yp.UnaryCall=void 0;var t1=class{static{o(this,"UnaryCall")}constructor(e,r,n,s,i,a,c){this.method=e,this.requestHeaders=r,this.request=n,this.headers=s,this.response=i,this.status=a,this.trailers=c}then(e,r){return this.promiseFinished().then(n=>e?Promise.resolve(e(n)):n,n=>r?Promise.resolve(r(n)):Promise.reject(n))}promiseFinished(){return qqe(this,void 0,void 0,function*(){let[e,r,n,s]=yield Promise.all([this.headers,this.response,this.status,this.trailers]);return{method:this.method,requestHeaders:this.requestHeaders,request:this.request,headers:e,response:r,status:n,trailers:s}})}};yp.UnaryCall=t1});var s1=m(Cp=>{"use strict";var Gqe=Cp&&Cp.__awaiter||function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(a){a(i)})}return o(s,"adopt"),new(r||(r=Promise))(function(i,a){function c(d){try{u(n.next(d))}catch(A){a(A)}}o(c,"fulfilled");function
Line truncated
|
||||
Polling status: ${Dee.includes(d)?"Stopped":"Running"}`),d==="succeeded"){let A=a(u,r);if(A!==void 0)return{response:await e(A).catch(Pee({state:r,stateProxy:n,isOperationError:c})),status:d}}return{response:u,status:d}}o(E2e,"pollOperationHelper");async function Fee(t){let{poll:e,state:r,stateProxy:n,options:s,getOperationStatus:i,getResourceLocation:a,getOperationLocation:c,isOperationError:l,withOperationLocation:u,getPollingInterval:d,processResult:A,getError:p,updateState:f,setDelay:h,isDone:m,setErrorAsResult:y}=t,{operationLocation:E}=r.config;if(E!==void 0){let{response:C,status:I}=await E2e({poll:e,getOperationStatus:i,state:r,stateProxy:n,operationLocation:E,getResourceLocation:a,isOperationError:l,options:s});if(Mee({status:I,response:C,state:r,stateProxy:n,isDone:m,processResult:A,getError:p,setErrorAsResult:y}),!Dee.includes(I)){let b=d?.(C);b&&h(b);let N=c?.(C,r);if(N!==void 0){let R=E!==N;r.config.operationLocation=N,u?.(N,R)}else u?.(E,!1)}f?.(r,C)}}o(Fee,"pollOperation");function Uee(t){let{azureAsyncOperation:e,operationLocation:r}=t;return r??e}o(Uee,"getOperationLocationPollingUrl");function qee(t){return t.headers.location}o(qee,"getLocationHeader");function Gee(t){return t.headers["operation-location"]}o(Gee,"getOperationLocationHeader");function Hee(t){return t.headers["azure-asyncoperation"]}o(Hee,"getAzureAsyncOperationHeader");function y2e(t){let{location:e,requestMethod:r,requestPath:n,resourceLocationConfig:s}=t;switch(r){case"PUT":return n;case"DELETE":return;default:switch(s){case"azure-async-operation":return;case"original-uri":return n;default:return e}}}o(y2e,"findResourceLocation");function Vee(t){let{rawResponse:e,requestMethod:r,requestPath:n,resourceLocationConfig:s}=t,i=Gee(e),a=Hee(e),c=Uee({operationLocation:i,azureAsyncOperation:a}),l=qee(e),u=r?.toLocaleUpperCase();return c!==void 0?{mode:"OperationLocation",operationLocation:c,resourceLocation:y2e({requestMethod:u,location:l,requestPath:n,resourceLocationConfig:s})}:l!==void 0?{mode:"ResourceLocation",operationLocation:l}:u==="PUT"&&n?{mode:"Body",operationLocation:n}:void 0}o(Vee,"inferLroMode");function zee(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 mL(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 Pu.verbose(`LRO: unrecognized operation status: ${e}`),e}}o(zee,"transformStatus");function C2e(t){var e;let{status:r}=(e=t.body)!==null&&e!==void 0?e:{};return zee({status:r,statusCode:t.statusCode})}o(C2e,"getStatus");function I2e(t){var e,r;let{properties:n,provisioningState:s}=(e=t.body)!==null&&e!==void 0?e:{},i=(r=n?.provisioningState)!==null&&r!==void 0?r:s;return zee({status:i,statusCode:t.statusCode})}o(I2e,"getProvisioningState");function mL(t){return t===202?"running":t<300?"succeeded":"failed"}o(mL,"toOperationStatus");function $ee({rawResponse:t}){let e=t.headers["retry-after"];if(e!==void 0){let r=parseInt(e);return isNaN(r)?B2e(new Date(e)):r*1e3}}o($ee,"parseRetryAfter");function Jee(t){let e=t.flatResponse.error;if(!e){Pu.warning("The long-running operation failed but there is no error property in the response's body");return}if(!e.code||!e.message){Pu.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(Jee,"getErrorFromResponse");function B2e(t){let e=Math.floor(new Date().getTime()),r=t.getTime();if(e<r)return r-e}o(B2e,"calculatePollingIntervalFromDate");function Yee(t){let{response:e,state:r,operationLocation:n}=t;function s(){var a;switch((a=r.config.metadata)===null||a===void 0?void 0:a.mode){case void 0:return mL(e.rawResponse.statusCode);case"Body":return gL(e,r);default:return"running"}}o(s,"helper");let i=s();return i==="running"&&n===void 0?"succeeded":i}o(Yee,"getStatusFromInitialResponse");async function b2e(t){let{stateProxy:e,resourceLocationConfig:r,processResult:n,lro:s,setErrorAsResult:i}=t;return Lee({init:o(async()=>{let a=await s.sendInitialRequest(),c=Vee({rawResponse:a.rawResponse,requestPath:s.requestPath,requestMethod:s.requestMethod,resourceLocationConfig:r});return Object.assign({response:a,operationLocation:c?.operationLocation,resourceLocation:c?.resourceLocation},c?.mode?{metadata:{mode:c.mode}}:{})},"init"),stateProxy:e,processResult:n?({flatResponse:a},c)=>n(a,c):({flatResponse:a})=>a,getOperationStatus:Yee,setErrorAsResult:i})}o(b2e,"initHttpOperation");function Wee({rawResponse:t},e){var r;switch((r=e.config.metadata)===null||r===void 0?void 0:r.mode){case"OperationLocation":return Uee({opeLine truncated
|
||||
`:case"\r":case" ":case" ":continue;default:throw Error("invalid base64 string.")}switch(s){case 0:a=i,s=1;break;case 1:r[n++]=a<<2|(i&48)>>4,a=i,s=2;break;case 2:r[n++]=(a&15)<<4|(i&60)>>2,a=i,s=3;break;case 3:r[n++]=(a&3)<<6|i,s=0;break}}if(s==1)throw Error("invalid base64 string.");return r.subarray(0,n)}o(oqe,"base64decode");yp.base64decode=oqe;function aqe(t){let e="",r=0,n,s=0;for(let i=0;i<t.length;i++)switch(n=t[i],r){case 0:e+=Ga[n>>2],s=(n&3)<<4,r=1;break;case 1:e+=Ga[s|n>>4],s=(n&15)<<2,r=2;break;case 2:e+=Ga[s|n>>6],e+=Ga[n&63],r=0;break}return r&&(e+=Ga[s],e+="=",r==1&&(e+="=")),e}o(aqe,"base64encode");yp.base64encode=aqe});var Qte=g(Ew=>{"use strict";Object.defineProperty(Ew,"__esModule",{value:!0});Ew.utf8read=void 0;var QL=o(t=>String.fromCharCode.apply(String,t),"fromCharCodes");function cqe(t){if(t.length<1)return"";let e=0,r=[],n=[],s=0,i,a=t.length;for(;e<a;)i=t[e++],i<128?n[s++]=i:i>191&&i<224?n[s++]=(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,n[s++]=55296+(i>>10),n[s++]=56320+(i&1023)):n[s++]=(i&15)<<12|(t[e++]&63)<<6|t[e++]&63,s>8191&&(r.push(QL(n)),s=0);return r.length?(s&&r.push(QL(n.slice(0,s))),r.join("")):QL(n.slice(0,s))}o(cqe,"utf8read");Ew.utf8read=cqe});var xg=g(vo=>{"use strict";Object.defineProperty(vo,"__esModule",{value:!0});vo.WireType=vo.mergeBinaryOptions=vo.UnknownFieldHandler=void 0;var lqe;(function(t){t.symbol=Symbol.for("protobuf-ts/unknown"),t.onRead=(r,n,s,i,a)=>{(e(n)?n[t.symbol]:n[t.symbol]=[]).push({no:s,wireType:i,data:a})},t.onWrite=(r,n,s)=>{for(let{no:i,wireType:a,data:c}of t.list(n))s.tag(i,a).raw(c)},t.list=(r,n)=>{if(e(r)){let s=r[t.symbol];return n?s.filter(i=>i.no==n):s}return[]},t.last=(r,n)=>t.list(r,n).slice(-1)[0];let e=o(r=>r&&Array.isArray(r[t.symbol]),"is")})(lqe=vo.UnknownFieldHandler||(vo.UnknownFieldHandler={}));function uqe(t,e){return Object.assign(Object.assign({},t),e)}o(uqe,"mergeBinaryOptions");vo.mergeBinaryOptions=uqe;var dqe;(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"})(dqe=vo.WireType||(vo.WireType={}))});var Cw=g(Rn=>{"use strict";Object.defineProperty(Rn,"__esModule",{value:!0});Rn.varint32read=Rn.varint32write=Rn.int64toString=Rn.int64fromString=Rn.varint64write=Rn.varint64read=void 0;function Aqe(){let t=0,e=0;for(let n=0;n<28;n+=7){let s=this.buf[this.pos++];if(t|=(s&127)<<n,(s&128)==0)return this.assertBounds(),[t,e]}let r=this.buf[this.pos++];if(t|=(r&15)<<28,e=(r&112)>>4,(r&128)==0)return this.assertBounds(),[t,e];for(let n=3;n<=31;n+=7){let s=this.buf[this.pos++];if(e|=(s&127)<<n,(s&128)==0)return this.assertBounds(),[t,e]}throw new Error("invalid varint")}o(Aqe,"varint64read");Rn.varint64read=Aqe;function pqe(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 n=t>>>28&15|(e&7)<<4,s=e>>3!=0;if(r.push((s?n|128:n)&255),!!s){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(pqe,"varint64write");Rn.varint64write=pqe;var yw=65536*65536;function fqe(t){let e=t[0]=="-";e&&(t=t.slice(1));let r=1e6,n=0,s=0;function i(a,c){let l=Number(t.slice(a,c));s*=r,n=n*r+l,n>=yw&&(s=s+(n/yw|0),n=n%yw)}return o(i,"add1e6digit"),i(-24,-18),i(-18,-12),i(-12,-6),i(-6),[e,n,s]}o(fqe,"int64fromString");Rn.int64fromString=fqe;function hqe(t,e){if(e>>>0<=2097151)return""+(yw*e+(t>>>0));let r=t&16777215,n=(t>>>24|e<<8)>>>0&16777215,s=e>>16&65535,i=r+n*6777216+s*6710656,a=n+s*8147497,c=s*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(hqe,"int64toString");Rn.int64toString=hqe;function mqe(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(mqe,"varint32write");Rn.varint32write=mqe;function gqe(){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(gqe,"varint32read");Rn.varint32read=gqe});var Yc=g(Jc=>{"use strict";Object.defineProperty(Jc,"__esModule",{value:!0});Jc.PbLong=Jc.PbULong=Jc.detectBi=void 0;var Qg=Cw(),Ke;function Rte(){let t=new DataView(new ArrayBuffer(8));Ke=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
|
||||
`)}};Jw.RpcError=t1});var n1=g(Ww=>{"use strict";Object.defineProperty(Ww,"__esModule",{value:!0});Ww.mergeRpcOptions=void 0;var are=Ut();function FGe(t,e){if(!e)return t;let r={};Yw(t,r),Yw(e,r);for(let n of Object.keys(e)){let s=e[n];switch(n){case"jsonOptions":r.jsonOptions=are.mergeJsonOptions(t.jsonOptions,r.jsonOptions);break;case"binaryOptions":r.binaryOptions=are.mergeBinaryOptions(t.binaryOptions,r.binaryOptions);break;case"meta":r.meta={},Yw(t.meta,r.meta),Yw(e.meta,r.meta);break;case"interceptors":r.interceptors=t.interceptors?t.interceptors.concat(s):s.concat();break}}return r}o(FGe,"mergeRpcOptions");Ww.mergeRpcOptions=FGe;function Yw(t,e){if(!t)return;let r=e;for(let[n,s]of Object.entries(t))s instanceof Date?r[n]=new Date(s.getTime()):Array.isArray(s)?r[n]=s.concat():r[n]=s}o(Yw,"copy")});var i1=g(Lu=>{"use strict";Object.defineProperty(Lu,"__esModule",{value:!0});Lu.Deferred=Lu.DeferredState=void 0;var ko;(function(t){t[t.PENDING=0]="PENDING",t[t.REJECTED=1]="REJECTED",t[t.RESOLVED=2]="RESOLVED"})(ko=Lu.DeferredState||(Lu.DeferredState={}));var s1=class{static{o(this,"Deferred")}constructor(e=!0){this._state=ko.PENDING,this._promise=new Promise((r,n)=>{this._resolve=r,this._reject=n}),e&&this._promise.catch(r=>{})}get state(){return this._state}get promise(){return this._promise}resolve(e){if(this.state!==ko.PENDING)throw new Error(`cannot resolve ${ko[this.state].toLowerCase()}`);this._resolve(e),this._state=ko.RESOLVED}reject(e){if(this.state!==ko.PENDING)throw new Error(`cannot reject ${ko[this.state].toLowerCase()}`);this._reject(e),this._state=ko.REJECTED}resolvePending(e){this._state===ko.PENDING&&this.resolve(e)}rejectPending(e){this._state===ko.PENDING&&this.reject(e)}};Lu.Deferred=s1});var a1=g(jw=>{"use strict";Object.defineProperty(jw,"__esModule",{value:!0});jw.RpcOutputStreamController=void 0;var cre=i1(),Fu=Ut(),o1=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 n=r.indexOf(e);n>=0&&r.splice(n,1)}}clearLis(){for(let e of Object.values(this._lis))e.splice(0,e.length)}get closed(){return this._closed!==!1}notifyNext(e,r,n){Fu.assert((e?1:0)+(r?1:0)+(n?1:0)<=1,"only one emission at a time"),e&&this.notifyMessage(e),r&&this.notifyError(r),n&&this.notifyComplete()}notifyMessage(e){Fu.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){Fu.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(){Fu.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;Fu.assert(e,"bad state"),Fu.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 cre.Deferred,e.p.promise)},"next")}}pushIt(e){let r=this._itState;if(r.p){let n=r.p;Fu.assert(n.state==cre.DeferredState.PENDING,"iterator contract broken"),"value"in e?n.resolve(e):n.reject(e),delete r.p}else r.q.push(e)}};jw.RpcOutputStreamController=o1});var l1=g(Np=>{"use strict";var UGe=Np&&Np.__awaiter||function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(a){a(i)})}return o(s,"adopt"),new(r||(r=Promise))(function(i,a){function c(d){try{u(n.next(d))}catch(A){a(A)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(A){a(A)}}o(l,"rejected");function u(d){d.done?i(d.value):s(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})};Object.defineProperty(Np,"__esModule",{value:!0});Np.UnaryCall=void 0;var c1=class{static{o(this,"UnaryCall")}constructor(e,r,n,s,i,a,c){this.method=e,this.requestHeaders=r,this.request=n,this.headers=s,this.response=i,this.status=a,this.trailers=c}then(e,r){return this.promiseFinished().then(n=>e?Promise.resolve(e(n)):n,n=>r?Promise.resolve(r(n)):Promise.reject(n))}promiseFinished(){return UGe(this,void 0,void 0,function*(){let[e,r,n,s]=yield Promise.all([this.headers,this.response,this.status,this.trailers]);return{method:this.method,requestHeaders:this.requestHeaders,request:this.request,headers:e,response:r,status:n,trailers:s}})}};Np.UnaryCall=c1});var d1=g(xp=>{"use strict";var qGe=xp&&xp.__awaiter||function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(a){a(i)})}return o(s,"adopt"),new(r||(r=Promise))(function(i,a){function c(d){try{u(n.next(d))}catch(A){a(A)}}o(c,"fulfilled");function
Line truncated
|
||||
You can add a runtime option to disable the check or this warning:
|
||||
See https://handlebarsjs.com/api-reference/runtime-options.html#options-to-control-prototype-access for details`))}o(J$e,"logUnexpecedPropertyAccessOnce");function Y$e(){Object.keys(R0).forEach(function(t){delete R0[t]})}o(Y$e,"resetLoggedProperties")});var v0=m(Lo=>{"use strict";Lo.__esModule=!0;Lo.HandlebarsEnvironment=wF;function hie(t){return t&&t.__esModule?t:{default:t}}o(hie,"_interopRequireDefault");var qu=an(),W$e=fs(),BF=hie(W$e),j$e=EF(),K$e=die(),X$e=CF(),T0=hie(X$e),Z$e=IF(),eJe="4.7.9";Lo.VERSION=eJe;var tJe=8;Lo.COMPILER_REVISION=tJe;var rJe=7;Lo.LAST_COMPATIBLE_COMPILER_REVISION=rJe;var nJe={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"};Lo.REVISION_CHANGES=nJe;var bF="[object Object]";function wF(t,e,r){this.helpers=t||{},this.partials=e||{},this.decorators=r||{},j$e.registerDefaultHelpers(this),K$e.registerDefaultDecorators(this)}o(wF,"HandlebarsEnvironment");wF.prototype={constructor:wF,logger:T0.default,log:T0.default.log,registerHelper:o(function(e,r){if(qu.toString.call(e)===bF){if(r)throw new BF.default("Arg not supported with multiple helpers");qu.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(qu.toString.call(e)===bF)qu.extend(this.partials,e);else{if(typeof r>"u")throw new BF.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(qu.toString.call(e)===bF){if(r)throw new BF.default("Arg not supported with multiple decorators");qu.extend(this.decorators,e)}else this.decorators[e]=r},"registerDecorator"),unregisterDecorator:o(function(e){delete this.decorators[e]},"unregisterDecorator"),resetLoggedPropertyAccesses:o(function(){Z$e.resetLoggedProperties()},"resetLoggedPropertyAccesses")};var sJe=T0.default.log;Lo.log=sJe;Lo.createFrame=qu.createFrame;Lo.logger=T0.default});var gie=m((_0,mie)=>{"use strict";_0.__esModule=!0;function SF(t){this.string=t}o(SF,"SafeString");SF.prototype.toString=SF.prototype.toHTML=function(){return""+this.string};_0.default=SF;mie.exports=_0.default});var Eie=m(NF=>{"use strict";NF.__esModule=!0;NF.wrapHelper=iJe;function iJe(t,e){if(typeof t!="function")return t;var r=o(function(){var s=arguments[arguments.length-1];return arguments[arguments.length-1]=e(s),t.apply(this,arguments)},"wrapper");return r}o(iJe,"wrapHelper")});var wie=m(jc=>{"use strict";jc.__esModule=!0;jc.checkRevision=dJe;jc.template=AJe;jc.wrapProgram=P0;jc.resolvePartial=pJe;jc.invokePartial=fJe;jc.noop=Bie;function oJe(t){return t&&t.__esModule?t:{default:t}}o(oJe,"_interopRequireDefault");function aJe(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(aJe,"_interopRequireWildcard");var cJe=an(),_p=aJe(cJe),lJe=fs(),Ha=oJe(lJe),Va=v0(),yie=EF(),uJe=Eie(),Cie=IF();function dJe(t){var e=t&&t[0]||1,r=Va.COMPILER_REVISION;if(!(e>=Va.LAST_COMPATIBLE_COMPILER_REVISION&&e<=Va.COMPILER_REVISION))if(e<Va.LAST_COMPATIBLE_COMPILER_REVISION){var n=Va.REVISION_CHANGES[r],s=Va.REVISION_CHANGES[e];throw new Ha.default("Template was precompiled with an older version of Handlebars than the current runtime. Please update your precompiler to a newer version ("+n+") or downgrade your runtime to an older version ("+s+").")}else throw new Ha.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(dJe,"checkRevision");function AJe(t,e){if(!e)throw new Ha.default("No environment passed to template");if(!t||!t.main)throw new Ha.default("Unknown template object: "+typeof t);t.main.decorator=t.main_d,e.VM.checkRevision(t.compiler);var r=t.compiler&&t.compiler[0]===7;function n(a,c,l){l.hash&&(c=_p.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(`
|
||||
See https://handlebarsjs.com/api-reference/runtime-options.html#options-to-control-prototype-access for details`))}o(YJe,"logUnexpecedPropertyAccessOnce");function WJe(){Object.keys(_0).forEach(function(t){delete _0[t]})}o(WJe,"resetLoggedProperties")});var k0=g(Fo=>{"use strict";Fo.__esModule=!0;Fo.HandlebarsEnvironment=TF;function bie(t){return t&&t.__esModule?t:{default:t}}o(bie,"_interopRequireDefault");var $u=Fr(),jJe=Js(),QF=bie(jJe),KJe=wF(),XJe=yie(),ZJe=NF(),P0=bie(ZJe),eYe=xF(),tYe="4.7.10";Fo.VERSION=tYe;var rYe=8;Fo.COMPILER_REVISION=rYe;var nYe=7;Fo.LAST_COMPATIBLE_COMPILER_REVISION=nYe;var sYe={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"};Fo.REVISION_CHANGES=sYe;var RF="[object Object]";function TF(t,e,r){this.helpers=t||{},this.partials=e||{},this.decorators=r||{},KJe.registerDefaultHelpers(this),XJe.registerDefaultDecorators(this)}o(TF,"HandlebarsEnvironment");TF.prototype={constructor:TF,logger:P0.default,log:P0.default.log,registerHelper:o(function(e,r){if($u.toString.call(e)===RF){if(r)throw new QF.default("Arg not supported with multiple helpers");$u.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($u.toString.call(e)===RF)$u.extend(this.partials,e);else{if(typeof r>"u")throw new QF.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($u.toString.call(e)===RF){if(r)throw new QF.default("Arg not supported with multiple decorators");$u.extend(this.decorators,e)}else this.decorators[e]=r},"registerDecorator"),unregisterDecorator:o(function(e){delete this.decorators[e]},"unregisterDecorator"),resetLoggedPropertyAccesses:o(function(){eYe.resetLoggedProperties()},"resetLoggedPropertyAccesses")};var iYe=P0.default.log;Fo.log=iYe;Fo.createFrame=$u.createFrame;Fo.logger=P0.default});var Sie=g((D0,wie)=>{"use strict";D0.__esModule=!0;function vF(t){this.string=t}o(vF,"SafeString");vF.prototype.toString=vF.prototype.toHTML=function(){return""+this.string};D0.default=vF;wie.exports=D0.default});var Nie=g(_F=>{"use strict";_F.__esModule=!0;_F.wrapHelper=oYe;function oYe(t,e){if(typeof t!="function")return t;var r=o(function(){var s=arguments[arguments.length-1];return arguments[arguments.length-1]=e(s),t.apply(this,arguments)},"wrapper");return r}o(oYe,"wrapHelper")});var vie=g(Xc=>{"use strict";Xc.__esModule=!0;Xc.checkRevision=AYe;Xc.template=pYe;Xc.wrapProgram=O0;Xc.resolvePartial=fYe;Xc.invokePartial=hYe;Xc.noop=Rie;function aYe(t){return t&&t.__esModule?t:{default:t}}o(aYe,"_interopRequireDefault");function cYe(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(cYe,"_interopRequireWildcard");var lYe=Fr(),Ju=cYe(lYe),uYe=Js(),_i=aYe(uYe),Va=k0(),xie=wF(),dYe=Nie(),PF=xF();function AYe(t){var e=t&&t[0]||1,r=Va.COMPILER_REVISION;if(!(e>=Va.LAST_COMPATIBLE_COMPILER_REVISION&&e<=Va.COMPILER_REVISION))if(e<Va.LAST_COMPATIBLE_COMPILER_REVISION){var n=Va.REVISION_CHANGES[r],s=Va.REVISION_CHANGES[e];throw new _i.default("Template was precompiled with an older version of Handlebars than the current runtime. Please update your precompiler to a newer version ("+n+") or downgrade your runtime to an older version ("+s+").")}else throw new _i.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(AYe,"checkRevision");function pYe(t,e){if(!e)throw new _i.default("No environment passed to template");if(!t||!t.main)throw new _i.default("Unknown template object: "+typeof t);t.main.decorator=t.main_d,e.VM.checkRevision(t.compiler);var r=t.compiler&&t.compiler[0]===7;function n(a,c,l){l.hash&&(c=Ju.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&&Ju.isFunction(a))throw new _i.default("The partial "+l.name+" returned no output: partials must return a string");if(u==null&&e.compile){if(typeof a!="string")throw new _i.default("The partial "+l.name+" could not be compiled: partials must be strings or functions returning strings");l.partials[l.name]=e.compile(a,t.compilerOptions,e),u=l.partials[l.name](c,l)}if(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 Ha.default("The partial "+l.name+" could not be compiled when running in runtime-only mode")}o(n,"invokePartialWrapper");var s={strict:o(function(c,l,u){if(!c||!(l in c))throw new Ha.default('"'+l+'" not defined in '+c,{loc:u});return s.lookupProperty(c,l)},"strict"),lookupProperty:o(function(c,l){var u=c[l];if(u==null||Object.prototype.hasOwnProperty.call(c,l)||Cie.resultIsAllowed(u,s.protoAccessControl,l))return u},"lookupProperty"),lookup:o(function(c,l){for(var u=c.length,d=0;d<u;d++){var A=c[d]&&s.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:_p.escapeExpression,invokePartial:n,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=P0(this,c,f,l,u,d,A):p||(p=this.programs[c]=P0(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=_p.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=hJe(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(s,p,s.helpers,s.partials,l,d,u)}return o(A,"main"),A=bie(t.main,A,s,c.depths||[],l,d),A(a,c)}return o(i,"ret"),i.isTop=!0,i._setup=function(a){if(a.partial)s.protoAccessControl=a.protoAccessControl,s.helpers=a.helpers,s.partials=a.partials,s.decorators=a.decorators,s.hooks=a.hooks;else{var c={};Iie(c,e.helpers,s),Iie(c,a.helpers,s),s.helpers=c,t.usePartial&&(s.partials=s.mergeIfNeeded(a.partials,e.partials)),(t.usePartial||t.useDecorators)&&(s.decorators=_p.extend({},e.decorators,a.decorators)),s.hooks={},s.protoAccessControl=Cie.createProtoAccessControl(a);var l=a.allowCallsToHelperMissing||r;yie.moveHelperToHooks(s,"helperMissing",l),yie.moveHelperToHooks(s,"blockHelperMissing",l)}},i._child=function(a,c,l,u){if(t.useBlockParams&&!l)throw new Ha.default("must pass block params");if(t.useDepths&&!u)throw new Ha.default("must pass parent depths");return P0(s,a,t[a],c,0,l,u)},i}o(AJe,"template");function P0(t,e,r,n,s,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||n,i&&[u.blockParams].concat(i),d)}return o(c,"prog"),c=bie(r,c,t,a,n,i),c.program=e,c.depth=a?a.length:0,c.blockParams=s||0,c}o(P0,"wrapProgram");function pJe(t,e,r){return t?!t.call&&!r.name&&(r.name=t,t=k0(r.partials,t)):r.name==="@partial-block"?t=k0(r.data,"partial-block"):t=k0(r.partials,r.name),t}o(pJe,"resolvePartial");function fJe(t,e,r){var n=k0(r.data,"partial-block");r.partial=!0,r.ids&&(r.data.contextPath=r.ids[0]||r.data.contextPath);var s=void 0;if(r.fn&&r.fn!==Bie&&(function(){r.data=Va.createFrame(r.data);var i=r.fn;s=r.data["partial-block"]=o(function(c){var l=arguments.length<=1||arguments[1]===void 0?{}:arguments[1];return l.data=Va.createFrame(l.data),l.data["partial-block"]=n,i(c,l)},"partialBlockWrapper"),i.partials&&(r.partials=_p.extend({},r.partials,i.partials))})(),t===void 0&&s&&(t=s),t===void 0)throw new Ha.default("The partial "+r.name+" could not be found");if(t instanceof Function)return t(e,r)}o(fJe,"invokePartial");function Bie(){return""}o(Bie,"noop");function k0(t,e){if(t&&Object.prototype.hasOwnProperty.call(t,e))return t[e]}o(k0,"lookupOwnProperty");function hJe(t,e){return(!e||!("root"in e))&&(e=e?Va.createFrame(e):{},e.root=t),e}o(hJe,"initData");function bie(t,e,r,n,s,i){if(t.decorator){var a={};e=t.decorator(e,a,r,n&&n[0],s,i,n),_p.extend(e,a)}return e}o(bie,"executeDecorators");function Iie(t,e,r){e&&Object.keys(e).forEach(function(n){var s=e[n];t[n]=mJe(s,r)})}o(Iie,"addHelpers");function mJe(t,e){var r=e.lookupProperty;return uJe.wrapHelper(t,function(n){return n.lookupProperty=r,n})}o(mJe,"passLookupPropertyOption")});var xF=m((D0,Sie)=>{"use strict";D0.__esModule=!0;D0.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}};Sie.exports=D0.default});var Tie=m((O0,Rie)=>{"use strict";O0.__esModule=!0;function RF(t){return t&&t.__esModule?t:{default:t}}o(RF,"_interopRequireDefault");function TF(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(TF,"_interopRequireWildcard");var gJe=v0(),Nie=TF(gJe),EJe=gie(),yJe=RF(EJe),CJe=fs(),IJe=RF(CJe),BJe=an(),QF=TF(BJe),bJe=wie
Line truncated
|
||||
`)}return u}else throw new _i.default("The partial "+l.name+" could not be compiled when running in runtime-only mode")}o(n,"invokePartialWrapper");var s={strict:o(function(c,l,u){if(!c||!(l in c))throw new _i.default('"'+l+'" not defined in '+c,{loc:u});return s.lookupProperty(c,l)},"strict"),lookupProperty:o(function(c,l){var u=c[l];if(u==null||Object.prototype.hasOwnProperty.call(c,l)&&!PF.isPrototypeConstructor(c,l,u)||PF.resultIsAllowed(u,s.protoAccessControl,l))return u},"lookupProperty"),lookup:o(function(c,l){for(var u=c.length,d=0;d<u;d++){var A=c[d]&&s.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:Ju.escapeExpression,invokePartial:n,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=O0(this,c,f,l,u,d,A):p||(p=this.programs[c]=O0(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=Ju.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=mYe(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(s,p,s.helpers,s.partials,l,d,u)}return o(A,"main"),A=Tie(t.main,A,s,c.depths||[],l,d),A(a,c)}return o(i,"ret"),i.isTop=!0,i._setup=function(a){if(a.partial)s.protoAccessControl=a.protoAccessControl,s.helpers=a.helpers,s.partials=a.partials,s.decorators=a.decorators,s.hooks=a.hooks;else{var c={};Qie(c,e.helpers,s),Qie(c,a.helpers,s),s.helpers=c,t.usePartial&&(s.partials=s.mergeIfNeeded(a.partials,e.partials)),(t.usePartial||t.useDecorators)&&(s.decorators=Ju.extend({},e.decorators,a.decorators)),s.hooks={},s.protoAccessControl=PF.createProtoAccessControl(a);var l=a.allowCallsToHelperMissing||r;xie.moveHelperToHooks(s,"helperMissing",l),xie.moveHelperToHooks(s,"blockHelperMissing",l)}},i._child=function(a,c,l,u){if(t.useBlockParams&&!l)throw new _i.default("must pass block params");if(t.useDepths&&!u)throw new _i.default("must pass parent depths");return O0(s,a,t[a],c,0,l,u)},i}o(pYe,"template");function O0(t,e,r,n,s,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||n,i&&[u.blockParams].concat(i),d)}return o(c,"prog"),c=Tie(r,c,t,a,n,i),c.program=e,c.depth=a?a.length:0,c.blockParams=s||0,c}o(O0,"wrapProgram");function fYe(t,e,r){return t?typeof t!="function"&&!r.name&&(r.name=t,t=M0(r.partials,t)):r.name==="@partial-block"?t=M0(r.data,"partial-block"):t=M0(r.partials,r.name),t}o(fYe,"resolvePartial");function hYe(t,e,r){var n=M0(r.data,"partial-block");r.partial=!0,r.ids&&(r.data.contextPath=r.ids[0]||r.data.contextPath);var s=void 0;if(r.fn&&r.fn!==Rie&&(function(){r.data=Va.createFrame(r.data);var i=r.fn;s=r.data["partial-block"]=o(function(c){var l=arguments.length<=1||arguments[1]===void 0?{}:arguments[1];return l.data=Va.createFrame(l.data),l.data["partial-block"]=n,i(c,l)},"partialBlockWrapper"),i.partials&&(r.partials=Ju.extend({},r.partials,i.partials))})(),t===void 0&&s&&(t=s),t===void 0)throw new _i.default("The partial "+r.name+" could not be found");if(t instanceof Function)return t(e,r)}o(hYe,"invokePartial");function Rie(){return""}o(Rie,"noop");function M0(t,e){if(t&&Object.prototype.hasOwnProperty.call(t,e))return t[e]}o(M0,"lookupOwnProperty");function mYe(t,e){return(!e||!("root"in e))&&(e=e?Va.createFrame(e):{},e.root=t),e}o(mYe,"initData");function Tie(t,e,r,n,s,i){if(t.decorator){var a={};e=t.decorator(e,a,r,n&&n[0],s,i,n),Ju.extend(e,a)}return e}o(Tie,"executeDecorators");function Qie(t,e,r){e&&Object.keys(e).forEach(function(n){var s=e[n];t[n]=gYe(s,r)})}o(Qie,"addHelpers");function gYe(t,e){var r=e.lookupProperty;return dYe.wrapHelper(t,function(n){return n.lookupProperty=r,n})}o(gYe,"passLookupPropertyOption")});var kF=g((L0,_ie)=>{"use strict";L0.__esModule=!0;L0.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}};_ie.exports=L0.default});var Mie=g((F0,Oie)=>{"use strict";F0.__esModule=!0;function OF(t){return t&&t.__esModule?t:{default:t}}o(OF,"_interopRequireDefault");function MF(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(MF,"_interopRequireWildcard");var EYe=k0(),Pie=MF(EYe),yYe=Sie(),CYe=OF(yYe),IY
Line truncated
|
||||
`+this.lexer.showPosition()+`
|
||||
Expecting `+de.join(", ")+", got '"+(this.terminals_[b]||b)+"'":Gr="Parse error on line "+(A+1)+": Unexpected "+(b==1?"end of input":"'"+(this.terminals_[b]||b)+"'"),this.parseError(Gr,{text:this.lexer.match,token:this.terminals_[b]||b,line:this.lexer.yylineno,loc:y,expected:de})}}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(Ce=this.productions_[D[1]][1],qe.$=c[c.length-Ce],qe._$={first_line:l[l.length-(Ce||1)].first_line,last_line:l[l.length-1].last_line,first_column:l[l.length-(Ce||1)].first_column,last_column:l[l.length-1].last_column},E&&(qe._$.range=[l[l.length-(Ce||1)].range[0],l[l.length-1].range[1]]),Me=this.performAction.call(qe,d,p,A,this.yy,D[1],c,l),typeof Me<"u")return Me;Ce&&(a=a.slice(0,-1*Ce*2),c=c.slice(0,-1*Ce),l=l.slice(0,-1*Ce)),a.push(this.productions_[D[1]][0]),c.push(qe.$),l.push(qe._$),tt=u[a[a.length-2]][a[a.length-1]],a.push(tt);break;case 3:return!0}}return!0},"parse")},e=(function(){var n={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()+`
|
||||
Expecting `+me.join(", ")+", got '"+(this.terminals_[b]||b)+"'":oi="Parse error on line "+(A+1)+": Unexpected "+(b==1?"end of input":"'"+(this.terminals_[b]||b)+"'"),this.parseError(oi,{text:this.lexer.match,token:this.terminals_[b]||b,line:this.lexer.yylineno,loc:y,expected:me})}}if(D[0]instanceof Array&&D.length>1)throw new Error("Parse Error: multiple actions possible at state: "+R+", 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(Ie=this.productions_[D[1]][1],je.$=c[c.length-Ie],je._$={first_line:l[l.length-(Ie||1)].first_line,last_line:l[l.length-1].last_line,first_column:l[l.length-(Ie||1)].first_column,last_column:l[l.length-1].last_column},E&&(je._$.range=[l[l.length-(Ie||1)].range[0],l[l.length-1].range[1]]),ut=this.performAction.call(je,d,p,A,this.yy,D[1],c,l),typeof ut<"u")return ut;Ie&&(a=a.slice(0,-1*Ie*2),c=c.slice(0,-1*Ie),l=l.slice(0,-1*Ie)),a.push(this.productions_[D[1]][0]),c.push(je.$),l.push(je._$),Vt=u[a[a.length-2]][a[a.length-1]],a.push(Vt);break;case 3:return!0}}return!0},"parse")},e=(function(){var n={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 n.options={},n.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"),n.rules=[/^(?:[^\x00]*?(?=(\{\{)))/,/^(?:[^\x00]+)/,/^(?:[^\x00]{2,}?(?=(\{\{|\\\{\{|\\\\\{\{|$)))/,/^(?:\{\{\{\{(?=[^\/]))/,/^(?:\{\{\{\{\/[^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=[=}\s\/.])\}\}\}\})/,/^(?:[^\x00]+?(?=(\{\{\{\{)))/,/^(?:[\s\S]*?--(~)?\}\})/,/^(?:\()/,/^(?:\))/,/^(?:\{\{\{\{)/,/^(?:\}\}\}\})/,/^(?:\{\{(~)?>)/,/^(?:\{\{(~)?#>)/,/^(?:\{\{(~)?#\*?)/,/^(?:\{\{(~)?\/)/,/^(?:\{\{(~)?\^\s*(~)?\}\})/,/^(?:\{\{(~)?\s*else\s*(~)?\}\})/,/^(?:\{\{(~)?\^)/,/^(?:\{\{(~)?\s*else\b)/,/^(?:\{\{(~)?\{)/,/^(?:\{\{(~)?&)/,/^(?:\{\{(~)?!--)/,/^(?:\{\{(~)?![\s\S]*?\}\})/,/^(?:\{\{(~)?\*?)/,/^(?:=)/,/^(?:\.\.)/,/^(?:\.(?=([=~}\s\/.)|])))/,/^(?:[\/.])/,/^(?:\s+)/,/^(?:\}(~)?\}\})/,/^(?:(~)?\}\})/,/^(?:"(\\["]|[^"])*")/,/^(?:'(\\[']|[^'])*')/,/^(?:@)/,/^(?:true(?=([~}\s)])))/,/^(?:false(?=([~}\s)])))/,/^(?:undefined(?=([~}\s)])))/,/^(?:null(?=([~}\s)])))/,/^(?:-?[0-9]+(?:\.[0-9]+)?(?=([~}\s)])))/,/^(?:as\s+\|)/,/^(?:\|)/,/^(?:([^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=([=~}\s\/.)|]))))/,/^(?:\[(\\\]|[^\]])*\])/,/^(?:.)/,/^(?:$)/],n.conditions={mu:{rules:[7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44],inclusive:!1},emu:{rules:[2],inclusive:!1},com:{rules:[6],inclusive:!1},raw:{rules:[3,4,5],inclusive:!1},INITIAL:{rules:[0,1,44],inclusive:!0}},n})();t.lexer=e;function r(){this.yy={}}return o(r,"Parser"),r.prototype=t,t.Parser=r,new r})();L0.default=NJe;Pie.exports=L0.default});var G0=m((q0,Mie)=>{"use strict";q0.__esModule=!0;function xJe(t){return t&&t.__esModule?t:{default:t}}o(xJe,"_interopRequireDefault");var QJe=fs(),_F=xJe(QJe);function F0(){this.parents=[]}o(F0,"Visitor");F0.prototype={constructor:F0,mutating:!1,acceptKey:o(function(e,r){var n=this.accept(e[r]);if(this.mutating){if(n&&!F0.prototype[n.type])throw new _F.default('Unexpected node type "'+n.type+'" found when accepting '+r+" on "+e.type);e[r]=n}},"acceptKey"),acceptRequired:o(function(e,r){if(this.acceptKey(e,r),!e[r])throw new _F.default(e.type+" requires "+r)},"acceptRequired"),acceptArray:o(function(e){for(var r=0,n=e.length;r<n;r++)this.acceptKey(e,r),e[r]||(e.splice(r,1),r--,n--)},"acceptArray"),accept:o(function(e){if(e){if(!this[e.type])throw new _F.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:U0,Decorator:U0,BlockStatement:Die,DecoratorBlock:Die,PartialStatement:Oie,PartialBlockStatement:o(function(e){Oie.call(this,e),this.acceptKey(e,"program")},"PartialBlockStatement"),ContentStatement:o(function(){},"ContentStatement"),CommentStatement:o(function(){},"CommentStatement"),SubExpression:U0,PathExpression:o(function(){},"PathExpressionLine truncated
|
||||
`])}),e},"merge"),each:o(function(e){for(var r=0,n=this.source.length;r<n;r++)e(this.source[r])},"each"),empty:o(function(){var e=this.currentLocation||{start:{}};return new zu(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 zu?e:(e=eU(e,this,r),new zu(r.start.line,r.start.column,this.srcFile,e))},"wrap"),functionCall:o(function(e,r,n){return n=this.generateList(n),this.wrap([e,r?"."+r+"(":"(",n,")"])},"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,n=[];Object.keys(e).forEach(function(i){var a=eU(e[i],r);a!=="undefined"&&n.push([r.quotedString(i),":",a])});var s=this.generateList(n);return s.prepend("{"),s.add("}"),s},"objectLiteral"),generateList:o(function(e){for(var r=this.empty(),n=0,s=e.length;n<s;n++)n&&r.add(","),r.add(eU(e[n],this));return r},"generateList"),generateArray:o(function(e){var r=this.generateList(e);return r.prepend("["),r.add("]"),r},"generateArray")};j0.default=Eoe;yoe.exports=j0.default});var Soe=m((K0,woe)=>{"use strict";K0.__esModule=!0;function boe(t){return t&&t.__esModule?t:{default:t}}o(boe,"_interopRequireDefault");var Ioe=v0(),SYe=fs(),rU=boe(SYe),NYe=an(),xYe=Coe(),Boe=boe(xYe);function Lp(t){this.value=t}o(Lp,"Literal");function Fp(){}o(Fp,"JavaScriptCompiler");Fp.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=Ioe.COMPILER_REVISION,r=Ioe.REVISION_CHANGES[e];return[e,r]},"compilerInfo"),appendToBuffer:o(function(e,r,n){return NYe.isArray(e)||(e=[e]),e=this.source.wrap(e,r),this.environment.isSimple?["return ",e,";"]:n?["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,n,s){this.environment=e,this.options=r,this.stringParams=this.options.stringParams,this.trackIds=this.options.trackIds,this.precompile=!s,this.name=this.environment.name,this.isChild=!!n,this.context=n||{decorators:[],programs:[],environments:[]},this.preamble(),this.stackSlot=0,this.stackVars=[],this.aliases={},this.registers={list:[]},this.hashes=[],this.compileStack=[],this.inlineStack=[],this.blockParams=[],this.compileChildren(e,r),this.useDepths=this.useDepths||e.useDepths||e.useDecorators||this.options.compat,this.useBlockParams=this.useBlockParams||e.useBlockParams;var 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 rU.default("Compile completed with content left on stack");this.decorators.isEmpty()?this.decorators=void 0:(this.useDecorators=!0,this.decorators.prepend(["var decorators = container.decorators, ",this.lookupPropertyFunctionVarDeclaration(),`;
|
||||
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex: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 n.options={},n.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"),n.rules=[/^(?:[^\x00]*?(?=(\{\{)))/,/^(?:[^\x00]+)/,/^(?:[^\x00]{2,}?(?=(\{\{|\\\{\{|\\\\\{\{|$)))/,/^(?:\{\{\{\{(?=[^\/]))/,/^(?:\{\{\{\{\/[^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=[=}\s\/.])\}\}\}\})/,/^(?:[^\x00]+?(?=(\{\{\{\{)))/,/^(?:[\s\S]*?--(~)?\}\})/,/^(?:\()/,/^(?:\))/,/^(?:\{\{\{\{)/,/^(?:\}\}\}\})/,/^(?:\{\{(~)?>)/,/^(?:\{\{(~)?#>)/,/^(?:\{\{(~)?#\*?)/,/^(?:\{\{(~)?\/)/,/^(?:\{\{(~)?\^\s*(~)?\}\})/,/^(?:\{\{(~)?\s*else\s*(~)?\}\})/,/^(?:\{\{(~)?\^)/,/^(?:\{\{(~)?\s*else\b)/,/^(?:\{\{(~)?\{)/,/^(?:\{\{(~)?&)/,/^(?:\{\{(~)?!--)/,/^(?:\{\{(~)?![\s\S]*?\}\})/,/^(?:\{\{(~)?\*?)/,/^(?:=)/,/^(?:\.\.)/,/^(?:\.(?=([=~}\s\/.)|])))/,/^(?:[\/.])/,/^(?:\s+)/,/^(?:\}(~)?\}\})/,/^(?:(~)?\}\})/,/^(?:"(\\["]|[^"])*")/,/^(?:'(\\[']|[^'])*')/,/^(?:@)/,/^(?:true(?=([~}\s)])))/,/^(?:false(?=([~}\s)])))/,/^(?:undefined(?=([~}\s)])))/,/^(?:null(?=([~}\s)])))/,/^(?:-?[0-9]+(?:\.[0-9]+)?(?=([~}\s)])))/,/^(?:as\s+\|)/,/^(?:\|)/,/^(?:([^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=([=~}\s\/.)|]))))/,/^(?:\[(\\\]|[^\]])*\])/,/^(?:.)/,/^(?:$)/],n.conditions={mu:{rules:[7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44],inclusive:!1},emu:{rules:[2],inclusive:!1},com:{rules:[6],inclusive:!1},raw:{rules:[3,4,5],inclusive:!1},INITIAL:{rules:[0,1,44],inclusive:!0}},n})();t.lexer=e;function r(){this.yy={}}return o(r,"Parser"),r.prototype=t,t.Parser=r,new r})();q0.default=xYe;Uie.exports=q0.default});var UF=g(FF=>{"use strict";FF.__esModule=!0;var QYe=["Program","BlockStatement","DecoratorBlock","PartialStatement","PartialBlockStatement","Decorator","MustacheStatement","ContentStatement","CommentStatement","SubExpression","PathExpression","StringLiteral","NumberLiteral","BooleanLiteral","UndefinedLiteral","NullLiteral","Hash","HashPair"];FF.NODE_TYPES=QYe});var z0=g((V0,zie)=>{"use strict";V0.__esModule=!0;function RYe(t){return t&&t.__esModule?t:{default:t}}o(RYe,"_interopRequireDefault");var TYe=Js(),qF=RYe(TYe),vYe=Fr(),_Ye=UF();function H0(){this.parents=[]}o(H0,"Visitor");function Gie(t,e){return vYe.indexOf(_Ye.NODE_TYPES,e)!==-1||!(e in H0.prototype)&&typeof t[e]=="function"}o(Gie,"isDispatchable");H0.prototype={constructor:H0,mutating:!1,acceptKey:o(function(e,r){var n=this.accept(e[r]);if(this.mutating){if(n&&!Gie(this,n.type))throw new qF.default('Unexpected node type "'+n.type+'" found when accepting '+r+" on "+e.type);e[r]=n}},"acceptKey"),acceptRequired:o(function(e,r){if(this.acceptKey(e,r),!e[r])throw new qF.default(e.type+" requires "+r)},"acceptRequired"),acceptArray:o(function(e){for(var r=0,n=e.length;r<n;r++)this.acceptKey(e,r),e[r]||(e.splice(r,1),r--,n--)},"acceptArray"),accept:o(function(e){if(e){if(!Gie(this,e.type)||!this[e.type])throw new qF.default("Unknown type: "+e.type,e);this.current&&this.parents.unshift(this.current),this.current=e;var r=this[e.tLine truncated
|
||||
`])}),e},"merge"),each:o(function(e){for(var r=0,n=this.source.length;r<n;r++)e(this.source[r])},"each"),empty:o(function(){var e=this.currentLocation||{start:{}};return new Ku(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 Ku?e:(e=lU(e,this,r),new Ku(r.start.line,r.start.column,this.srcFile,e))},"wrap"),functionCall:o(function(e,r,n){return n=this.generateList(n),this.wrap([e,r?"."+r+"(":"(",n,")"])},"functionCall"),quotedString:o(function(e){return e=e+"",Q3e.test(e)?Qoe(e):'"'+e+'"'},"quotedString"),objectLiteral:o(function(e){var r=this,n=[];Object.keys(e).forEach(function(i){var a=lU(e[i],r);a!=="undefined"&&n.push([r.quotedString(i),":",a])});var s=this.generateList(n);return s.prepend("{"),s.add("}"),s},"objectLiteral"),generateList:o(function(e){for(var r=this.empty(),n=0,s=e.length;n<s;n++)n&&r.add(","),r.add(lU(e[n],this));return r},"generateList"),generateArray:o(function(e){var r=this.generateList(e);return r.prepend("["),r.add("]"),r},"generateArray")};eS.default=Roe});var Moe=g((tS,Ooe)=>{"use strict";tS.__esModule=!0;function Poe(t){return t&&t.__esModule?t:{default:t}}o(Poe,"_interopRequireDefault");var voe=k0(),_3e=Js(),dU=Poe(_3e),P3e=Fr(),koe=Toe(),_oe=Poe(koe);function Jp(t){this.value=t}o(Jp,"Literal");function Yp(){}o(Yp,"JavaScriptCompiler");Yp.prototype={nameLookup:o(function(e,r){return this.internalNameLookup(e,r)},"nameLookup"),depthedLookup:o(function(e){return[this.aliasable("container.lookup"),"(depths, ",this.quotedString(e),")"]},"depthedLookup"),compilerInfo:o(function(){var e=voe.COMPILER_REVISION,r=voe.REVISION_CHANGES[e];return[e,r]},"compilerInfo"),appendToBuffer:o(function(e,r,n){return P3e.isArray(e)||(e=[e]),e=this.source.wrap(e,r),this.environment.isSimple?["return ",e,";"]:n?["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,",",this.quotedString(r),")"]},"internalNameLookup"),lookupPropertyFunctionIsUsed:!1,compile:o(function(e,r,n,s){this.environment=e,this.options=r,this.stringParams=this.options.stringParams,this.trackIds=this.options.trackIds,this.precompile=!s,this.name=this.environment.name,this.isChild=!!n,this.context=n||{decorators:[],programs:[],environments:[]},this.preamble(),this.stackSlot=0,this.stackVars=[],this.aliases={},this.registers={list:[]},this.hashes=[],this.compileStack=[],this.inlineStack=[],this.blockParams=[],this.compileChildren(e,r),this.useDepths=this.useDepths||e.useDepths||e.useDecorators||this.options.compat,this.useBlockParams=this.useBlockParams||e.useBlockParams;var 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 dU.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;"),s?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 d=this.createFunctionContext(s);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,h=p.decorators;for(l=0,u=f.length;l<u;l++)A[l]=f[l],h[l]&&(A[l+"_d"]=h[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),s?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 Boe.default(this.options.srcName),this.decorators=new Boe.default(this.options.srcName)},"preamble"),createFunctionContext:o(function(e){var r=this,n="",s=this.stackVars.concat(this.registers.list);s.length>0&&(n+=", "+s.join(", "));var i=0;Object.keys(this.aliases).forEach(function(l){var u=r.aliases[l];u.children&&u.referenceCount>1&&(n+=", alias"+ ++i+"="+l,u.children[0]="alias"+i)}),this.lookupPropertyFunctionIsUsed&&(n+=", "+this.lookupPropertyFunctionVarDeclaration());var a=["container","depth0","helpers","partials","data"];(this.useBlockParams||this.useDepths)&&a.push("blockParams"),this.useDepths&&a.push("depths");var c=this.mergeSource(n);return e?(a.push(c),Function.apply(this,a)):this.source.wrap(["function(",a.join(","),`) {
|
||||
`),this.decorators=this.decorators.merge()));var d=this.createFunctionContext(s);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,h=p.decorators;for(l=0,u=f.length;l<u;l++)A[l]=f[l],h[l]&&(A[l+"_d"]=h[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),s?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 _oe.default(this.options.srcName),this.decorators=new _oe.default(this.options.srcName)},"preamble"),createFunctionContext:o(function(e){var r=this,n="",s=this.stackVars.concat(this.registers.list);s.length>0&&(n+=", "+s.join(", "));var i=0;Object.keys(this.aliases).forEach(function(l){var u=r.aliases[l];u.children&&u.referenceCount>1&&(n+=", alias"+ ++i+"="+l,u.children[0]="alias"+i)}),this.lookupPropertyFunctionIsUsed&&(n+=", "+this.lookupPropertyFunctionVarDeclaration());var a=["container","depth0","helpers","partials","data"];(this.useBlockParams||this.useDepths)&&a.push("blockParams"),this.useDepths&&a.push("depths");var c=this.mergeSource(n);return e?(a.push(c),Function.apply(this,a)):this.source.wrap(["function(",a.join(","),`) {
|
||||
`,c,"}"])},"createFunctionContext"),mergeSource:o(function(e){var r=this.environment.isSimple,n=!this.forceBuffer,s=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 += "):s=!0,c.add(";"),a=c=void 0),i=!0,r||(n=!1))}),n?a?(a.prepend("return "),c.add(";")):i||this.source.push('return "";'):(e+=", buffer = "+(s?"":this.initializeBuffer()),a?(a.prepend("return buffer + "),c.add(";")):this.source.push("return buffer;")),e&&this.source.prepend("var "+e.substring(2)+(s?"":`;
|
||||
`)),this.source.merge()},"mergeSource"),lookupPropertyFunctionVarDeclaration:o(function(){return`
|
||||
lookupProperty = container.lookupProperty || function(parent, propertyName) {
|
||||
@@ -84,98 +83,98 @@ Expecting `+de.join(", ")+", got '"+(this.terminals_[b]||b)+"'":Gr="Parse error
|
||||
}
|
||||
return undefined
|
||||
}
|
||||
`.trim()},"lookupPropertyFunctionVarDeclaration"),blockValue:o(function(e){var r=this.aliasable("container.hooks.blockHelperMissing"),n=[this.contextName(0)];this.setupHelperArgs(e,0,n);var s=this.popStack();n.splice(1,0,s),this.push(this.source.functionCall(r,"call",n))},"blockValue"),ambiguousBlockValue:o(function(){var e=this.aliasable("container.hooks.blockHelperMissing"),r=[this.contextName(0)];this.setupHelperArgs("",0,r,!0),this.flushInline();var n=this.topStack();r.splice(1,0,n),this.pushSource(["if (!",this.lastHelper,") { ",n," = ",this.source.functionCall(e,"call",r),"}"])},"ambiguousBlockValue"),appendContent: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,n,s){var i=0;!s&&this.options.compat&&!this.lastContext?this.push(this.depthedLookup(e[i++])):this.pushContext(),this.resolvePath("context",e,i,r,n)},"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,n){e?this.pushStackLiteral("container.data(data, "+e+")"):this.pushStackLiteral("data"),this.resolvePath("data",r,0,!0,n)},"lookupData"),resolvePath:o(function(e,r,n,s,i){var a=this;if(this.options.strict||this.options.assumeObjects){this.push(QYe(this.options.strict&&i,this,r,n,e));return}for(var c=r.length,l=o(function(d){a.replaceStack(function(A){var p=a.nameLookup(A,r[d],e);return s?[" && ",p]:[" != null ? ",p," : ",A]})},"_loop"),u=n;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 n=this.nameLookup("decorators",r,"decorator"),s=this.setupHelperArgs(r,e);this.decorators.push(["var decorator = ",n,";"]),this.decorators.push(['if (typeof decorator !== "function") { throw new Error(',this.quotedString('Missing decorator: "'+r+'"'),"); }"]),this.decorators.push(["fn = ",this.decorators.functionCall("decorator","",["fn","props","container",s])," || fn;"])},"registerDecorator"),invokeHelper:o(function(e,r,n){var s=this.popStack(),i=this.setupHelper(e,r),a=[];n&&a.push(i.name),a.push(s),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 n=[];n.push(e[0]);for(var s=1;s<e.length;s++)n.push(r,e[s]);return n},"itemsSeparatedBy"),invokeKnownHelper:o(function(e,r){var n=this.setupHelper(e,r);this.push(this.source.functionCall(n.name,"call",n.callParams))},"invokeKnownHelper"),invokeAmbiguous:o(function(e,r){this.useRegister("helper");var n=this.popStack();this.emptyHash();var s=this.setupHelper(0,e,r),i=this.lastHelper=this.nameLookup("helpers",e,"helper"),a=["(","(helper = ",i," || ",n,")"];this.options.strict||(a[0]="(helper = ",a.push(" != null ? helper : ",this.aliasable("container.hooks.helperMissing"))),this.push(["(",a,s.paramsInit?["),(",s.paramsInit]:[],"),","(typeof helper === ",this.aliasable('"function"')," ? ",this.source.functionCall("h
Line truncated
|
||||
`,e};Pt.prototype.Program=function(t){var e="",r=t.body,n=void 0,s=void 0;if(t.blockParams){var i="BLOCK PARAMS: [";for(n=0,s=t.blockParams.length;n<s;n++)i+=" "+t.blockParams[n];i+=" ]",e+=this.pad(i)}for(n=0,s=r.length;n<s;n++)e+=this.accept(r[n]);return this.padding--,e};Pt.prototype.MustacheStatement=function(t){return this.pad("{{ "+this.SubExpression(t)+" }}")};Pt.prototype.Decorator=function(t){return this.pad("{{ DIRECTIVE "+this.SubExpression(t)+" }}")};Pt.prototype.BlockStatement=Pt.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};Pt.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+" }}")};Pt.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+" }}")};Pt.prototype.ContentStatement=function(t){return this.pad("CONTENT[ '"+t.value+"' ]")};Pt.prototype.CommentStatement=function(t){return this.pad("{{! '"+t.value+"' }}")};Pt.prototype.SubExpression=function(t){for(var e=t.params,r=[],n=void 0,s=0,i=e.length;s<i;s++)r.push(this.accept(e[s]));return e="["+r.join(", ")+"]",n=t.hash?" "+this.accept(t.hash):"",this.accept(t.path)+" "+e+n};Pt.prototype.PathExpression=function(t){var e=t.parts.join("/");return(t.data?"@":"")+"PATH:"+e};Pt.prototype.StringLiteral=function(t){return'"'+t.value+'"'};Pt.prototype.NumberLiteral=function(t){return"NUMBER{"+t.value+"}"};Pt.prototype.BooleanLiteral=function(t){return"BOOLEAN{"+t.value+"}"};Pt.prototype.UndefinedLiteral=function(){return"UNDEFINED"};Pt.prototype.NullLiteral=function(){return"NULL"};Pt.prototype.Hash=function(t){for(var e=t.pairs,r=[],n=0,s=e.length;n<s;n++)r.push(this.accept(e[n]));return"HASH{"+r.join(", ")+"}"};Pt.prototype.HashPair=function(t){return t.key+"="+this.accept(t.value)}});var Poe=m((O_t,_oe)=>{var eS=Qoe().default,voe=Roe();eS.PrintVisitor=voe.PrintVisitor;eS.print=voe.print;_oe.exports=eS;function Toe(t,e){var r=require("fs"),n=r.readFileSync(e,"utf8");t.exports=eS.compile(n)}o(Toe,"extension");typeof require<"u"&&require.extensions&&(require.extensions[".handlebars"]=Toe,require.extensions[".hbs"]=Toe)});var $oe=m(iS=>{"use strict";Object.defineProperty(iS,"__esModule",{value:!0});iS.getProxyUrl=JYe;iS.checkBypass=zoe;function JYe(t){let e=t.protocol==="https:";if(zoe(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 sS(r)}catch{if(!r.startsWith("http://")&&!r.startsWith("https://"))return new sS(`http://${r}`)}else return}o(JYe,"getProxyUrl");function zoe(t){if(!t.hostname)return!1;let e=t.hostname;if(YYe(e))return!0;let r=process.env.no_proxy||process.env.NO_PROXY||"";if(!r)return!1;let n;t.port?n=Number(t.port):t.protocol==="http:"?n=80:t.protocol==="https:"&&(n=443);let s=[t.hostname.toUpperCase()];typeof n=="number"&&s.push(`${s[0]}:${n}`);for(let i of r.split(",").map(a=>a.trim().toUpperCase()).filter(a=>a))if(i==="*"||s.some(a=>a===i||a.endsWith(`.${i}`)||i.startsWith(".")&&a.endsWith(`${i}`)))return!0;return!1}o(zoe,"checkBypass");function YYe(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(YYe,"isLoopbackAddress");var sS=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 Yoe=m(Et=>{"use strict";var WYe=Et&&Et.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),jYe=Et&&Et.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),lS=Et&&Et.__importStar||(function(){var t=o(function(e){return t=Object.getOwnPropertyNames||function(r){var n=[];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(n[n.length]=s);return n},t(e)},"ownKeys");return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n=t(e),s=0;s<n.length;s++)n[s]!=="default"&&WYe(r,e,n[s]);return jYe(r,e),
Line truncated
|
||||
`.trim()},"lookupPropertyFunctionVarDeclaration"),blockValue:o(function(e){var r=this.aliasable("container.hooks.blockHelperMissing"),n=[this.contextName(0)];this.setupHelperArgs(e,0,n);var s=this.popStack();n.splice(1,0,s),this.push(this.source.functionCall(r,"call",n))},"blockValue"),ambiguousBlockValue:o(function(){var e=this.aliasable("container.hooks.blockHelperMissing"),r=[this.contextName(0)];this.setupHelperArgs("",0,r,!0),this.flushInline();var n=this.topStack();r.splice(1,0,n),this.pushSource(["if (!",this.lastHelper,") { ",n," = ",this.source.functionCall(e,"call",r),"}"])},"ambiguousBlockValue"),appendContent: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,n,s){var i=0;!s&&this.options.compat&&!this.lastContext?this.push(this.depthedLookup(e[i++])):this.pushContext(),this.resolvePath("context",e,i,r,n)},"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,n){e?this.pushStackLiteral("container.data(data, "+e+")"):this.pushStackLiteral("data"),this.resolvePath("data",r,0,!0,n)},"lookupData"),resolvePath:o(function(e,r,n,s,i){var a=this;if(this.options.strict||this.options.assumeObjects){this.push(k3e(this.options.strict&&i,this,r,n,e));return}for(var c=r.length,l=o(function(d){a.replaceStack(function(A){var p=a.nameLookup(A,r[d],e);return s?[" && ",p]:[" != null ? ",p," : ",A]})},"_loop"),u=n;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 n=this.nameLookup("decorators",r,"decorator"),s=this.setupHelperArgs(r,e);this.decorators.push(["var decorator = ",n,";"]),this.decorators.push(['if (typeof decorator !== "function") { throw new Error(',this.quotedString('Missing decorator: "'+r+'"'),"); }"]),this.decorators.push(["fn = ",this.decorators.functionCall("decorator","",["fn","props","container",s])," || fn;"])},"registerDecorator"),invokeHelper:o(function(e,r,n){var s=this.popStack(),i=this.setupHelper(e,r),a=[];n&&a.push(i.name),a.push(s),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 n=[];n.push(e[0]);for(var s=1;s<e.length;s++)n.push(r,e[s]);return n},"itemsSeparatedBy"),invokeKnownHelper:o(function(e,r){var n=this.setupHelper(e,r);this.push(this.source.functionCall(n.name,"call",n.callParams))},"invokeKnownHelper"),invokeAmbiguous:o(function(e,r){this.useRegister("helper");var n=this.popStack();this.emptyHash();var s=this.setupHelper(0,e,r),i=this.lastHelper=this.nameLookup("helpers",e,"helper"),a=["(","(helper = ",i," || ",n,")"];this.options.strict||(a[0]="(helper = ",a.push(" != null ? helper : ",this.aliasable("container.hooks.helperMissing"))),this.push(["(",a,s.paramsInit?["),(",s.paramsInit]:[],"),","(typeof helper === ",this.aliasable('"function"')," ? ",this.source.functionCall("h
Line truncated
|
||||
`,e};vt.prototype.Program=function(t){var e="",r=t.body,n=void 0,s=void 0;if(t.blockParams){var i="BLOCK PARAMS: [";for(n=0,s=t.blockParams.length;n<s;n++)i+=" "+t.blockParams[n];i+=" ]",e+=this.pad(i)}for(n=0,s=r.length;n<s;n++)e+=this.accept(r[n]);return this.padding--,e};vt.prototype.MustacheStatement=function(t){return this.pad("{{ "+this.SubExpression(t)+" }}")};vt.prototype.Decorator=function(t){return this.pad("{{ DIRECTIVE "+this.SubExpression(t)+" }}")};vt.prototype.BlockStatement=vt.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};vt.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+" }}")};vt.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+" }}")};vt.prototype.ContentStatement=function(t){return this.pad("CONTENT[ '"+t.value+"' ]")};vt.prototype.CommentStatement=function(t){return this.pad("{{! '"+t.value+"' }}")};vt.prototype.SubExpression=function(t){for(var e=t.params,r=[],n=void 0,s=0,i=e.length;s<i;s++)r.push(this.accept(e[s]));return e="["+r.join(", ")+"]",n=t.hash?" "+this.accept(t.hash):"",this.accept(t.path)+" "+e+n};vt.prototype.PathExpression=function(t){var e=t.parts.join("/");return(t.data?"@":"")+"PATH:"+e};vt.prototype.StringLiteral=function(t){return'"'+t.value+'"'};vt.prototype.NumberLiteral=function(t){return"NUMBER{"+t.value+"}"};vt.prototype.BooleanLiteral=function(t){return"BOOLEAN{"+t.value+"}"};vt.prototype.UndefinedLiteral=function(){return"UNDEFINED"};vt.prototype.NullLiteral=function(){return"NULL"};vt.prototype.Hash=function(t){for(var e=t.pairs,r=[],n=0,s=e.length;n<s;n++)r.push(this.accept(e[n]));return"HASH{"+r.join(", ")+"}"};vt.prototype.HashPair=function(t){return t.key+"="+this.accept(t.value)}});var zoe=g((Akt,Voe)=>{var sS=Uoe().default,Hoe=qoe();sS.PrintVisitor=Hoe.PrintVisitor;sS.print=Hoe.print;Voe.exports=sS;function Goe(t,e){var r=require("fs"),n=r.readFileSync(e,"utf8");t.exports=sS.compile(n)}o(Goe,"extension");typeof require<"u"&&require.extensions&&(require.extensions[".handlebars"]=Goe,require.extensions[".hbs"]=Goe)});var sae=g(lS=>{"use strict";Object.defineProperty(lS,"__esModule",{value:!0});lS.getProxyUrl=Z3e;lS.checkBypass=nae;function Z3e(t){let e=t.protocol==="https:";if(nae(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 cS(r)}catch{if(!r.startsWith("http://")&&!r.startsWith("https://"))return new cS(`http://${r}`)}else return}o(Z3e,"getProxyUrl");function nae(t){if(!t.hostname)return!1;let e=t.hostname;if(eWe(e))return!0;let r=process.env.no_proxy||process.env.NO_PROXY||"";if(!r)return!1;let n;t.port?n=Number(t.port):t.protocol==="http:"?n=80:t.protocol==="https:"&&(n=443);let s=[t.hostname.toUpperCase()];typeof n=="number"&&s.push(`${s[0]}:${n}`);for(let i of r.split(",").map(a=>a.trim().toUpperCase()).filter(a=>a))if(i==="*"||s.some(a=>a===i||a.endsWith(`.${i}`)||i.startsWith(".")&&a.endsWith(`${i}`)))return!0;return!1}o(nae,"checkBypass");function eWe(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(eWe,"isLoopbackAddress");var cS=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 oae=g(gt=>{"use strict";var tWe=gt&>.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),rWe=gt&>.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),pS=gt&>.__importStar||(function(){var t=o(function(e){return t=Object.getOwnPropertyNames||function(r){var n=[];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(n[n.length]=s);return n},t(e)},"ownKeys");return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n=t(e),s=0;s<n.length;s++)n[s]!=="default"&&tWe(r,e,n[s]);return rWe(r,e),
Line truncated
|
||||
`).join(`
|
||||
`+i),t.push(s+"m+"+cN.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=q5e()+e+" "+t[0]}o(U5e,"formatArgs");function q5e(){return yr.inspectOpts.hideDate?"":new Date().toISOString()+" "}o(q5e,"getDate");function G5e(...t){return process.stderr.write(aN.formatWithOptions(yr.inspectOpts,...t)+`
|
||||
`)}o(G5e,"log");function H5e(t){t?process.env.DEBUG=t:delete process.env.DEBUG}o(H5e,"save");function V5e(){return process.env.DEBUG}o(V5e,"load");function z5e(t){t.inspectOpts={};let e=Object.keys(yr.inspectOpts);for(let r=0;r<e.length;r++)t.inspectOpts[e[r]]=yr.inspectOpts[e[r]]}o(z5e,"init");cN.exports=_2()(yr);var{formatters:Ble}=cN.exports;Ble.o=function(t){return this.inspectOpts.colors=this.useColors,aN.inspect(t,this.inspectOpts).split(`
|
||||
`).map(e=>e.trim()).join(" ")};Ble.O=function(t){return this.inspectOpts.colors=this.useColors,aN.inspect(t,this.inspectOpts)}});var k2=m((hMt,P2)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?P2.exports=Ile():P2.exports=ble()});var uN=m(kt=>{"use strict";Object.defineProperty(kt,"__esModule",{value:!0});kt.DownloadHTTPError=kt.DownloadLengthMismatchError=kt.DownloadError=kt.ExpiredMetadataError=kt.EqualVersionError=kt.BadVersionError=kt.RepositoryError=kt.PersistError=kt.RuntimeError=kt.ValueError=void 0;var D2=class extends Error{static{o(this,"ValueError")}};kt.ValueError=D2;var O2=class extends Error{static{o(this,"RuntimeError")}};kt.RuntimeError=O2;var M2=class extends Error{static{o(this,"PersistError")}};kt.PersistError=M2;var IE=class extends Error{static{o(this,"RepositoryError")}};kt.RepositoryError=IE;var lN=class extends IE{static{o(this,"BadVersionError")}};kt.BadVersionError=lN;var L2=class extends lN{static{o(this,"EqualVersionError")}};kt.EqualVersionError=L2;var F2=class extends IE{static{o(this,"ExpiredMetadataError")}};kt.ExpiredMetadataError=F2;var BE=class extends Error{static{o(this,"DownloadError")}};kt.DownloadError=BE;var U2=class extends BE{static{o(this,"DownloadLengthMismatchError")}};kt.DownloadLengthMismatchError=U2;var q2=class extends BE{static{o(this,"DownloadHTTPError")}statusCode;constructor(e,r){super(e),this.statusCode=r}};kt.DownloadHTTPError=q2});var Sle=m(uf=>{"use strict";var H2=uf&&uf.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(uf,"__esModule",{value:!0});uf.withTempFile=void 0;var G2=H2(require("fs/promises")),$5e=H2(require("os")),wle=H2(require("path")),J5e=o(async t=>Y5e(async e=>t(wle.default.join(e,"tempfile"))),"withTempFile");uf.withTempFile=J5e;var Y5e=o(async t=>{let e=await G2.default.realpath($5e.default.tmpdir()),r=await G2.default.mkdtemp(e+wle.default.sep);try{return await t(r)}finally{await G2.default.rm(r,{force:!0,recursive:!0,maxRetries:3})}},"withTempDir")});var xle=m((CMt,Nle)=>{var V2=class{static{o(this,"RetryOperation")}#e=1;#t=null;#n=[];#r=null;#s;#i=null;#a;#o;#l=null;#c;constructor(e,r={}){this.#a=[...e],this.#o=[...e],this.#c=r.unref,this.#s=r.maxRetryTime||1/0,r.forever&&(this.#t=[...this.#o])}get timeouts(){return[...this.#o]}get errors(){return[...this.#n]}get attempts(){return this.#e}get mainError(){let e=null;if(this.#n.length){let r=0,n={};for(let s=0;s<this.#n.length;s++){let i=this.#n[s],{message:a}=i;n[a]||(n[a]=0),n[a]++,n[a]>=r&&(e=i,r=n[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.#n.push(e),new Date().getTime()-this.#i>=this.#s)return this.#n.unshift(new Error("RetryOperation timeout occurred")),!1;let r=this.#o.shift();if(r===void 0)if(this.#t)this.#n.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)}};Nle.exports={RetryOperation:V2}});var Tle=m((BMt,Rle)=>{var{RetryOperation:W5e}=xle(),Qle=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"),j5e=o(t=>t?.code==="EPROMISERETRY"&&Object.hasOwn(t,"retried"),"isRetryError"),K5e=o(async(t,e={})=>{let r=[];if(e instanceof Array)r=[...e];else{e.retries===1/0&&(e.forever=!0,delete e.retries);let s={retries:10,factor:2,minTimeout:1*1e3,maxTimeout:1/0,randomize:!1,...e};if(s.minTimeout>s.maxTimeout)throw new Error("minTimeout is greater than maxTimeout");if(s.retries){for(let i=0;i<s.retries;i++)r.push(Qle(i,s));r.sort((i,a)=>i-a)}else e.forever&&r.push(Qle(0,s))}let n=new W5e(r,{forever:e.forever,unref:e.unref,maxRetryTime:e.maxRetryTime});return new Promise(function(s,i){n.attempt(async a=>{try{let c=await t(l=>{throw Object.assign(new Error("Retrying"),{code:"EPROMISERETRY",retried:l})},a,n);return s(c)}catch(c){if(!j5e(c))return i(c);if(!n.retry(c.retried||new Error))return i(c.retried)}})})},"promiseRetry");Rle.exports={promiseRetry:K5e}});var J2=m(cl=>{"use strict";var $2=cl&&cl.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(cl,"__esModule",{value:!0});cl.DefaultFetcher=cl.BaseFetcher=void 0;var X5e=$2(k2()),vle=$2(require("fs")),Z5e=$2(require("util")),_le=uN(),e8e=Sle(),t8e=Tle(),r8e=(0,X5e.default)("tuf:fetch"),n8e="User-Agent",dN=class{static{o(this,"BaseFetcher")}async downloadFile(e,r,n){return(0,e8e.withTempFile)(async s=>{let i=await this.fetch(e),a=0,c=vle.default.createWriteStream(s),l=i.getReader();try{for(;;){let{done:u,value:d}=await l.read();if(u)break;if(a+=d.length,a>r)throw new _le.DownloadLengthMismatchError("Max length reached");await s8e(c,Buffer.from(d))}}finally{l.releaseLock(),await Z5e.default.promisify(c.close).bind(c)()}return n(s)})}async downloadBytes(e,r){return this.downloadFile(e,r,async n=>{let s=vle.defau
Line truncated
|
||||
`).forEach(r=>{r.match(l9e)||r.match(u9e)||(e+=r)}),Buffer.from(e,"base64")}o(d9e,"toDER");function A9e(t,e="CERTIFICATE"){let n=t.toString("base64").match(/.{1,64}/g)||"";return[`-----BEGIN ${e}-----`,...n,`-----END ${e}-----`].join(`
|
||||
`+i),t.push(s+"m+"+AN.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=J8e()+e+" "+t[0]}o($8e,"formatArgs");function J8e(){return yr.inspectOpts.hideDate?"":new Date().toISOString()+" "}o(J8e,"getDate");function Y8e(...t){return process.stderr.write(dN.formatWithOptions(yr.inspectOpts,...t)+`
|
||||
`)}o(Y8e,"log");function W8e(t){t?process.env.DEBUG=t:delete process.env.DEBUG}o(W8e,"save");function j8e(){return process.env.DEBUG}o(j8e,"load");function K8e(t){t.inspectOpts={};let e=Object.keys(yr.inspectOpts);for(let r=0;r<e.length;r++)t.inspectOpts[e[r]]=yr.inspectOpts[e[r]]}o(K8e,"init");AN.exports=q2()(yr);var{formatters:kle}=AN.exports;kle.o=function(t){return this.inspectOpts.colors=this.useColors,dN.inspect(t,this.inspectOpts).split(`
|
||||
`).map(e=>e.trim()).join(" ")};kle.O=function(t){return this.inspectOpts.colors=this.useColors,dN.inspect(t,this.inspectOpts)}});var H2=g((zLt,G2)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?G2.exports=Ple():G2.exports=Dle()});var fN=g(_t=>{"use strict";Object.defineProperty(_t,"__esModule",{value:!0});_t.DownloadHTTPError=_t.DownloadLengthMismatchError=_t.DownloadError=_t.ExpiredMetadataError=_t.EqualVersionError=_t.BadVersionError=_t.RepositoryError=_t.PersistError=_t.RuntimeError=_t.ValueError=void 0;var V2=class extends Error{static{o(this,"ValueError")}};_t.ValueError=V2;var z2=class extends Error{static{o(this,"RuntimeError")}};_t.RuntimeError=z2;var $2=class extends Error{static{o(this,"PersistError")}};_t.PersistError=$2;var SE=class extends Error{static{o(this,"RepositoryError")}};_t.RepositoryError=SE;var pN=class extends SE{static{o(this,"BadVersionError")}};_t.BadVersionError=pN;var J2=class extends pN{static{o(this,"EqualVersionError")}};_t.EqualVersionError=J2;var Y2=class extends SE{static{o(this,"ExpiredMetadataError")}};_t.ExpiredMetadataError=Y2;var NE=class extends Error{static{o(this,"DownloadError")}};_t.DownloadError=NE;var W2=class extends NE{static{o(this,"DownloadLengthMismatchError")}};_t.DownloadLengthMismatchError=W2;var j2=class extends NE{static{o(this,"DownloadHTTPError")}statusCode;constructor(e,r){super(e),this.statusCode=r}};_t.DownloadHTTPError=j2});var Mle=g(yf=>{"use strict";var X2=yf&&yf.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(yf,"__esModule",{value:!0});yf.withTempFile=void 0;var K2=X2(require("fs/promises")),X8e=X2(require("os")),Ole=X2(require("path")),Z8e=o(async t=>e9e(async e=>t(Ole.default.join(e,"tempfile"))),"withTempFile");yf.withTempFile=Z8e;var e9e=o(async t=>{let e=await K2.default.realpath(X8e.default.tmpdir()),r=await K2.default.mkdtemp(e+Ole.default.sep);try{return await t(r)}finally{await K2.default.rm(r,{force:!0,recursive:!0,maxRetries:3})}},"withTempDir")});var Fle=g((jLt,Lle)=>{var Z2=class{static{o(this,"RetryOperation")}#e=1;#r=null;#s=[];#t=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.#r=[...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,n={};for(let s=0;s<this.#s.length;s++){let i=this.#s[s],{message:a}=i;n[a]||(n[a]=0),n[a]++,n[a]>=r&&(e=i,r=n[a])}}return e}reset(){this.#e=1,this.#o=[...this.#a]}stop(){this.#l&&clearTimeout(this.#l),this.#o=[],this.#r=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.#r)this.#s.pop(),r=this.#r.at(-1);else return!1;return this.#l=setTimeout(()=>{this.#e++,this.#t(this.#e)},r),this.#c&&this.#l.unref(),!0}attempt(e){this.#t=e,this.#i=new Date().getTime(),this.#t(this.#e)}};Lle.exports={RetryOperation:Z2}});var Gle=g((XLt,qle)=>{var{RetryOperation:t9e}=Fle(),Ule=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"),r9e=o(t=>t?.code==="EPROMISERETRY"&&Object.hasOwn(t,"retried"),"isRetryError"),n9e=o(async(t,e={})=>{let r=[];if(e instanceof Array)r=[...e];else{e.retries===1/0&&(e.forever=!0,delete e.retries);let s={retries:10,factor:2,minTimeout:1*1e3,maxTimeout:1/0,randomize:!1,...e};if(s.minTimeout>s.maxTimeout)throw new Error("minTimeout is greater than maxTimeout");if(s.retries){for(let i=0;i<s.retries;i++)r.push(Ule(i,s));r.sort((i,a)=>i-a)}else e.forever&&r.push(Ule(0,s))}let n=new t9e(r,{forever:e.forever,unref:e.unref,maxRetryTime:e.maxRetryTime});return new Promise(function(s,i){n.attempt(async a=>{try{let c=await t(l=>{throw Object.assign(new Error("Retrying"),{code:"EPROMISERETRY",retried:l})},a,n);return s(c)}catch(c){if(!r9e(c))return i(c);if(!n.retry(c.retried||new Error))return i(c.retried)}})})},"promiseRetry");qle.exports={promiseRetry:n9e}});var rq=g(dl=>{"use strict";var tq=dl&&dl.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(dl,"__esModule",{value:!0});dl.DefaultFetcher=dl.BaseFetcher=void 0;var s9e=tq(H2()),Hle=tq(require("fs")),i9e=tq(require("util")),Vle=fN(),o9e=Mle(),a9e=Gle(),c9e=(0,s9e.default)("tuf:fetch"),l9e="User-Agent",hN=class{static{o(this,"BaseFetcher")}async downloadFile(e,r,n){return(0,o9e.withTempFile)(async s=>{let i=await this.fetch(e),a=0,c=Hle.default.createWriteStream(s),l=i.getReader();try{for(;;){let{done:u,value:d}=await l.read();if(u)break;if(a+=d.length,a>r)throw new Vle.DownloadLengthMismatchError("Max length reached");await u9e(c,Buffer.from(d))}}finally{l.releaseLock(),await i9e.default.promisify(c.close).bind(c)()}return n(s)})}async downloadBytes(e,r){return this.downloadFile(e,r,async n=>{let s=Hle.defau
Line truncated
|
||||
`).forEach(r=>{r.match(h6e)||r.match(m6e)||(e+=r)}),Buffer.from(e,"base64")}o(g6e,"toDER");function E6e(t,e="CERTIFICATE"){let n=t.toString("base64").match(/.{1,64}/g)||"";return[`-----BEGIN ${e}-----`,...n,`-----END ${e}-----`].join(`
|
||||
`).concat(`
|
||||
`)}o(A9e,"fromDER")});var xN=m(pl=>{"use strict";Object.defineProperty(pl,"__esModule",{value:!0});pl.SHA2_HASH_ALGOS=pl.RSA_SIGNATURE_ALGOS=pl.ECDSA_SIGNATURE_ALGOS=void 0;pl.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"};pl.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"};pl.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 gq=m(QN=>{"use strict";Object.defineProperty(QN,"__esModule",{value:!0});QN.RFC3161TimestampVerificationError=void 0;var mq=class extends Error{static{o(this,"RFC3161TimestampVerificationError")}};QN.RFC3161TimestampVerificationError=mq});var cue=m($o=>{"use strict";var p9e=$o&&$o.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),f9e=$o&&$o.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),h9e=$o&&$o.__importStar||(function(){var t=o(function(e){return t=Object.getOwnPropertyNames||function(r){var n=[];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(n[n.length]=s);return n},t(e)},"ownKeys");return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n=t(e),s=0;s<n.length;s++)n[s]!=="default"&&p9e(r,e,n[s]);return f9e(r,e),r}})();Object.defineProperty($o,"__esModule",{value:!0});$o.TSTInfo=void 0;var aue=h9e(mf()),m9e=xN(),g9e=gq(),Eq=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 m9e.SHA2_HASH_ALGOS[e]}get messageImprintHashedMessage(){return this.messageImprintObj.subs[1].value}get raw(){return this.root.toDER()}verify(e){let r=aue.digest(this.messageImprintHashAlgorithm,e);if(!aue.bufferEqual(r,this.messageImprintHashedMessage))throw new g9e.RFC3161TimestampVerificationError("message imprint does not match artifact")}get messageImprintObj(){return this.root.subs[2]}};$o.TSTInfo=Eq});var uue=m(Jo=>{"use strict";var E9e=Jo&&Jo.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),y9e=Jo&&Jo.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),C9e=Jo&&Jo.__importStar||(function(){var t=o(function(e){return t=Object.getOwnPropertyNames||function(r){var n=[];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(n[n.length]=s);return n},t(e)},"ownKeys");return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n=t(e),s=0;s<n.length;s++)n[s]!=="default"&&E9e(r,e,n[s]);return y9e(r,e),r}})();Object.defineProperty(Jo,"__esModule",{value:!0});Jo.RFC3161Timestamp=void 0;var I9e=wN(),yq=C9e(mf()),lue=xN(),QE=gq(),B9e=cue(),b9e="1.2.840.113549.1.7.2",w9e="1.2.840.113549.1.9.16.1.4",S9e="1.2.840.113549.1.9.4",Cq=class t{static{o(this,"RFC3161Timestamp")}root;constructor(e){this.root=e}static parse(e){let r=I9e.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 lue.SHA2_HASH_ALGOS[e]}get signatureAlgorithm(){let e=this.signatureAlgorithmObj.subs[0].toOID();return lue.ECDSA_SIGNATURE_ALGOS[e]}get signatureValue(){return this.signatureValueObj.value}get tstInfo(){return new B9e.TSTInfo(this.eContentObj.subs[0].subs[0])}verify(e,r){if(!this.timeStampTokenObj)throw new QE.RFC3161TimestampVerificationError("timeStampToken is missing");if(this.contentType!==b9e)throw new QE.RFC3161TimestampVerificationError(`incorrect content type: ${this.contentType}`);if(this.eContentType!==w9e)throw new QE.RFC3161TimestampVerificationError(`incorrect encapsulated content type: ${this.eContentType}`);this.tstInfo.verify(e),this.verifyMessageDigest(),this.verifySignature(r)}verifyMessageDigest(){let e=yq.digest(this.signerDigestAlgorithm,this.tstInfo.raw),r=this.messageDigestAttributeObj.subs[1].subs[0].valu
Line truncated
|
||||
`)}o(E6e,"fromDER")});var vN=g(ml=>{"use strict";Object.defineProperty(ml,"__esModule",{value:!0});ml.SHA2_HASH_ALGOS=ml.RSA_SIGNATURE_ALGOS=ml.ECDSA_SIGNATURE_ALGOS=void 0;ml.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"};ml.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"};ml.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 Nq=g(_N=>{"use strict";Object.defineProperty(_N,"__esModule",{value:!0});_N.RFC3161TimestampVerificationError=void 0;var Sq=class extends Error{static{o(this,"RFC3161TimestampVerificationError")}};_N.RFC3161TimestampVerificationError=Sq});var Cue=g(Jo=>{"use strict";var y6e=Jo&&Jo.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),C6e=Jo&&Jo.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),I6e=Jo&&Jo.__importStar||(function(){var t=o(function(e){return t=Object.getOwnPropertyNames||function(r){var n=[];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(n[n.length]=s);return n},t(e)},"ownKeys");return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n=t(e),s=0;s<n.length;s++)n[s]!=="default"&&y6e(r,e,n[s]);return C6e(r,e),r}})();Object.defineProperty(Jo,"__esModule",{value:!0});Jo.TSTInfo=void 0;var yue=I6e(Sf()),B6e=vN(),b6e=Nq(),xq=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 B6e.SHA2_HASH_ALGOS[e]}get messageImprintHashedMessage(){return this.messageImprintObj.subs[1].value}get raw(){return this.root.toDER()}verify(e){let r=yue.digest(this.messageImprintHashAlgorithm,e);if(!yue.bufferEqual(r,this.messageImprintHashedMessage))throw new b6e.RFC3161TimestampVerificationError("message imprint does not match artifact")}get messageImprintObj(){return this.root.subs[2]}};Jo.TSTInfo=xq});var Bue=g(Yo=>{"use strict";var w6e=Yo&&Yo.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),S6e=Yo&&Yo.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),N6e=Yo&&Yo.__importStar||(function(){var t=o(function(e){return t=Object.getOwnPropertyNames||function(r){var n=[];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(n[n.length]=s);return n},t(e)},"ownKeys");return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n=t(e),s=0;s<n.length;s++)n[s]!=="default"&&w6e(r,e,n[s]);return S6e(r,e),r}})();Object.defineProperty(Yo,"__esModule",{value:!0});Yo.RFC3161Timestamp=void 0;var x6e=QN(),Qq=N6e(Sf()),Iue=vN(),_E=Nq(),Q6e=Cue(),R6e="1.2.840.113549.1.7.2",T6e="1.2.840.113549.1.9.16.1.4",v6e="1.2.840.113549.1.9.4",Rq=class t{static{o(this,"RFC3161Timestamp")}root;constructor(e){this.root=e}static parse(e){let r=x6e.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 Iue.SHA2_HASH_ALGOS[e]}get signatureAlgorithm(){let e=this.signatureAlgorithmObj.subs[0].toOID();return Iue.ECDSA_SIGNATURE_ALGOS[e]}get signatureValue(){return this.signatureValueObj.value}get tstInfo(){return new Q6e.TSTInfo(this.eContentObj.subs[0].subs[0])}verify(e,r){if(!this.timeStampTokenObj)throw new _E.RFC3161TimestampVerificationError("timeStampToken is missing");if(this.contentType!==R6e)throw new _E.RFC3161TimestampVerificationError(`incorrect content type: ${this.contentType}`);if(this.eContentType!==T6e)throw new _E.RFC3161TimestampVerificationError(`incorrect encapsulated content type: ${this.eContentType}`);this.tstInfo.verify(e),this.verifyMessageDigest(),this.verifySignature(r)}verifyMessageDigest(){let e=Qq.digest(this.signerDigestAlgorithm,this.tstInfo.raw),r=this.messageDigestAttributeObj.subs[1].subs[0].valu
Line truncated
|
||||
|
||||
`,z6e=/\u2014 (\S+) (\S+)\n/g;function $6e(t,e){let r=t.inclusionProof,n=jq.fromString(r.checkpoint.envelope),s=YN.fromString(n.note);if(!J6e(n,e))throw new bf.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"invalid checkpoint signature"});return s}o($6e,"verifyCheckpoint");function J6e(t,e){let r=Buffer.from(t.note,"utf-8");return t.signatures.some(n=>{let s=e.find(i=>Vue.crypto.bufferEqual(i.logID.subarray(0,4),n.keyHint)&&i.baseURL.includes(n.name));return s?Vue.crypto.verify(r,s.publicKey,n.signature):!1})}o(J6e,"verifySignedNote");var jq=class t{static{o(this,"SignedNote")}note;signatures;constructor(e,r){this.note=e,this.signatures=r}static fromString(e){if(!e.includes(Wq))throw new bf.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"missing checkpoint separator"});let r=e.indexOf(Wq),n=e.slice(0,r+1),i=e.slice(r+Wq.length).matchAll(z6e),a=Array.from(i,c=>{let[,l,u]=c,d=Buffer.from(u,"base64");if(d.length<5)throw new bf.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 bf.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"no signatures found in checkpoint"});return new t(n,a)}},YN=class t{static{o(this,"LogCheckpoint")}origin;logSize;logHash;rest;constructor(e,r,n,s){this.origin=e,this.logSize=r,this.logHash=n,this.rest=s}static fromString(e){let r=e.trimEnd().split(`
|
||||
`);if(r.length<3)throw new bf.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"too few lines in checkpoint header"});let n=r[0],s;try{s=BigInt(r[1])}catch{throw new bf.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"invalid checkpoint log size"})}let i=Buffer.from(r[2],"base64"),a=r.slice(3);return new t(n,s,i,a)}};PE.LogCheckpoint=YN});var $ue=m(Zq=>{"use strict";Object.defineProperty(Zq,"__esModule",{value:!0});Zq.verifyMerkleInclusion=j6e;var Xq=Pi(),WN=qr(),Y6e=Buffer.from([0]),W6e=Buffer.from([1]);function j6e(t,e){let r=t.inclusionProof,n;try{n=BigInt(r.logIndex)}catch{throw new WN.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"invalid inclusion proof log index"})}let s=BigInt(e.logSize);if(n<0n||n>=s)throw new WN.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:`invalid index: ${n}`});let{inner:i,border:a}=K6e(n,s);if(r.hashes.length!==i+a)throw new WN.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"invalid hash count"});let c=r.hashes.slice(0,i),l=r.hashes.slice(i),u=nKe(t.canonicalizedBody),d=Z6e(X6e(u,c,n),l);if(!Xq.crypto.bufferEqual(d,e.logHash))throw new WN.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"calculated root hash does not match inclusion proof"})}o(j6e,"verifyMerkleInclusion");function K6e(t,e){let r=eKe(t,e),n=tKe(t>>BigInt(r));return{inner:r,border:n}}o(K6e,"decompInclProof");function X6e(t,e,r){return e.reduce((n,s,i)=>r>>BigInt(i)&BigInt(1)?Kq(s,n):Kq(n,s),t)}o(X6e,"chainInner");function Z6e(t,e){return e.reduce((r,n)=>Kq(n,r),t)}o(Z6e,"chainBorderRight");function eKe(t,e){return rKe(t^e-BigInt(1))}o(eKe,"innerProofSize");function tKe(t){return t.toString(2).split("1").length-1}o(tKe,"onesCount");function rKe(t){return t===0n?0:t.toString(2).length}o(rKe,"bitLength");function Kq(t,e){return Xq.crypto.digest("sha256",W6e,t,e)}o(Kq,"hashChildren");function nKe(t){return Xq.crypto.digest("sha256",Y6e,t)}o(nKe,"hashLeaf")});var Yue=m(eG=>{"use strict";Object.defineProperty(eG,"__esModule",{value:!0});eG.verifyTLogSET=oKe;var Jue=Pi(),sKe=qr(),iKe=yf();function oKe(t,e){if(!(0,iKe.filterTLogAuthorities)(e,{logID:t.logId.keyId,targetDate:new Date(Number(t.integratedTime)*1e3)}).some(s=>{let i=aKe(t),a=Buffer.from(Jue.json.canonicalize(i),"utf8"),c=t.inclusionPromise.signedEntryTimestamp;return Jue.crypto.verify(a,s.publicKey,c)}))throw new sKe.VerificationError({code:"TLOG_INCLUSION_PROMISE_ERROR",message:"inclusion promise could not be verified"})}o(oKe,"verifyTLogSET");function aKe(t){let{integratedTime:e,logIndex:r,logId:n,canonicalizedBody:s}=t;return{body:s.toString("base64"),integratedTime:Number(e),logIndex:Number(r),logID:n.keyId.toString("hex")}}o(aKe,"toVerificationPayload")});var jue=m(KN=>{"use strict";Object.defineProperty(KN,"__esModule",{value:!0});KN.verifyTLogBody=AKe;KN.verifyTLogInclusion=pKe;var Wue=Uue(),jN=qr(),tG=que(),rG=Gue(),cKe=Hue(),lKe=zue(),uKe=$ue(),dKe=Yue();function AKe(t,e){let{kind:r,version:n}=t.kindVersion,s;try{s=JSON.parse(t.canonicalizedBody.toString("utf8"))}catch{throw new jN.VerificationError({code:"TLOG_BODY_ERROR",message:"invalid canonicalized body"})}if(r!==s.kind||n!==s.apiVersion)throw new jN.VerificationError({code:"TLOG_BODY_ERROR",message:`kind/version mismatch - expected: ${r}/${n}, received: ${s.kind}/${s.apiVersion}`});switch(r){case"dsse":if(n==tG.DSSE_API_VERSION_V1)return(0,tG.verifyDSSETLogBody)(s,e);{let i=Wue.Entry.fromJSON(s);return(0,tG.verifyDSSETLogBodyV2)(i,e)}case"intoto":return(0,cKe.verifyIntotoTLogBody)(s,e);case"hashedrekord":if(n==rG.HASHEDREKORD_API_VERSION_V1)return(0,rG.verifyHashedRekordTLogBody)(s,e);{let i=Wue.Entry.fromJSON(s);return(0,rG.verifyHashedRekordTLogBodyV2)(i,e)}default:throw new jN.VerificationError({code:"TLOG_BODY_ERROR",message:`unsupported kind: ${r}`})}}o(AKe,"verifyTLogBody");function pKe(t,e){let r=!1;if(fKe(t)&&((0,dKe.verifyTLogSET)(t,e),r=!0),hKe(t)){let n=(0,lKe.verifyCheckpoint)(t,e);(0,uKe.verifyMerkleInclusion)(t,n),r=!0}if(!r)throw new jN.VerificationError({code:"TLOG_MISSING_INCLUSION_ERROR",message:"inclusion could not be verified"})}o(pKe,"verifyTLogInclusion");function fKe(t){return t.inclusionPromise!==void 0}o(fKe,"isTLogEntryWithInclusionPromise");function hKe(t){return t.inclusionProof!==void 0}o(hKe,"isTLogEntryWithInclusionProof")});var ede=m(XN=>{"use strict";Object.defineProperty(XN,"__esModule",{value:!0});XN.Verifier=void 0;var mKe=require("util"),fd=qr(),Kue=Que(),nG=Rue(),Xue=_ue(),Zue=jue(),iG=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 n=this.verifyTimestamps(e),s=this.verifySigningKey(e,n);return this.verifyTLogs(e),this.verifySignature(e,s),r&&this.verifyPolicy(r,s.identity||{}),s}verifyTimestamps(e){let r=[];for(let n of e.timestamps)switch(n.$case){case"time
Line truncated
|
||||
${l}`}let A=Ex(t.buffer,s[c],i[c],t.position,d);l+=`${" ".repeat(r.indent)}${yx((t.line+1).toString(),u)} | ${A.str}
|
||||
`,KKe=/\u2014 (\S+) (\S+)\n/g;function XKe(t,e){let r=t.inclusionProof,n=iG.fromString(r.checkpoint.envelope),s=XN.fromString(n.note);if(!ZKe(n,e))throw new _f.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"invalid checkpoint signature"});return s}o(XKe,"verifyCheckpoint");function ZKe(t,e){let r=Buffer.from(t.note,"utf-8");return t.signatures.some(n=>{let s=e.find(i=>rde.crypto.bufferEqual(i.logID.subarray(0,4),n.keyHint)&&i.baseURL.includes(n.name));return s?rde.crypto.verify(r,s.publicKey,n.signature):!1})}o(ZKe,"verifySignedNote");var iG=class t{static{o(this,"SignedNote")}note;signatures;constructor(e,r){this.note=e,this.signatures=r}static fromString(e){if(!e.includes(sG))throw new _f.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"missing checkpoint separator"});let r=e.indexOf(sG),n=e.slice(0,r+1),i=e.slice(r+sG.length).matchAll(KKe),a=Array.from(i,c=>{let[,l,u]=c,d=Buffer.from(u,"base64");if(d.length<5)throw new _f.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 _f.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"no signatures found in checkpoint"});return new t(n,a)}},XN=class t{static{o(this,"LogCheckpoint")}origin;logSize;logHash;rest;constructor(e,r,n,s){this.origin=e,this.logSize=r,this.logHash=n,this.rest=s}static fromString(e){let r=e.trimEnd().split(`
|
||||
`);if(r.length<3)throw new _f.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"too few lines in checkpoint header"});let n=r[0],s;try{s=BigInt(r[1])}catch{throw new _f.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"invalid checkpoint log size"})}let i=Buffer.from(r[2],"base64"),a=r.slice(3);return new t(n,s,i,a)}};ME.LogCheckpoint=XN});var sde=g(cG=>{"use strict";Object.defineProperty(cG,"__esModule",{value:!0});cG.verifyMerkleInclusion=rXe;var aG=Di(),ZN=Hr(),eXe=Buffer.from([0]),tXe=Buffer.from([1]);function rXe(t,e){let r=t.inclusionProof,n;try{n=BigInt(r.logIndex)}catch{throw new ZN.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"invalid inclusion proof log index"})}let s=BigInt(e.logSize);if(n<0n||n>=s)throw new ZN.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:`invalid index: ${n}`});let{inner:i,border:a}=nXe(n,s);if(r.hashes.length!==i+a)throw new ZN.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"invalid hash count"});let c=r.hashes.slice(0,i),l=r.hashes.slice(i),u=lXe(t.canonicalizedBody),d=iXe(sXe(u,c,n),l);if(!aG.crypto.bufferEqual(d,e.logHash))throw new ZN.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"calculated root hash does not match inclusion proof"})}o(rXe,"verifyMerkleInclusion");function nXe(t,e){let r=oXe(t,e),n=aXe(t>>BigInt(r));return{inner:r,border:n}}o(nXe,"decompInclProof");function sXe(t,e,r){return e.reduce((n,s,i)=>r>>BigInt(i)&BigInt(1)?oG(s,n):oG(n,s),t)}o(sXe,"chainInner");function iXe(t,e){return e.reduce((r,n)=>oG(n,r),t)}o(iXe,"chainBorderRight");function oXe(t,e){return cXe(t^e-BigInt(1))}o(oXe,"innerProofSize");function aXe(t){return t.toString(2).split("1").length-1}o(aXe,"onesCount");function cXe(t){return t===0n?0:t.toString(2).length}o(cXe,"bitLength");function oG(t,e){return aG.crypto.digest("sha256",tXe,t,e)}o(oG,"hashChildren");function lXe(t){return aG.crypto.digest("sha256",eXe,t)}o(lXe,"hashLeaf")});var ode=g(lG=>{"use strict";Object.defineProperty(lG,"__esModule",{value:!0});lG.verifyTLogSET=AXe;var ide=Di(),uXe=Hr(),dXe=Qf();function AXe(t,e){if(!(0,dXe.filterTLogAuthorities)(e,{logID:t.logId.keyId,targetDate:new Date(Number(t.integratedTime)*1e3)}).some(s=>{let i=pXe(t),a=Buffer.from(ide.json.canonicalize(i),"utf8"),c=t.inclusionPromise.signedEntryTimestamp;return ide.crypto.verify(a,s.publicKey,c)}))throw new uXe.VerificationError({code:"TLOG_INCLUSION_PROMISE_ERROR",message:"inclusion promise could not be verified"})}o(AXe,"verifyTLogSET");function pXe(t){let{integratedTime:e,logIndex:r,logId:n,canonicalizedBody:s}=t;return{body:s.toString("base64"),integratedTime:Number(e),logIndex:Number(r),logID:n.keyId.toString("hex")}}o(pXe,"toVerificationPayload")});var cde=g(tx=>{"use strict";Object.defineProperty(tx,"__esModule",{value:!0});tx.verifyTLogBody=EXe;tx.verifyTLogInclusion=yXe;var ade=Xue(),ex=Hr(),uG=Zue(),dG=ede(),fXe=tde(),hXe=nde(),mXe=sde(),gXe=ode();function EXe(t,e){let{kind:r,version:n}=t.kindVersion,s;try{s=JSON.parse(t.canonicalizedBody.toString("utf8"))}catch{throw new ex.VerificationError({code:"TLOG_BODY_ERROR",message:"invalid canonicalized body"})}if(r!==s.kind||n!==s.apiVersion)throw new ex.VerificationError({code:"TLOG_BODY_ERROR",message:`kind/version mismatch - expected: ${r}/${n}, received: ${s.kind}/${s.apiVersion}`});switch(r){case"dsse":if(n==uG.DSSE_API_VERSION_V1)return(0,uG.verifyDSSETLogBody)(s,e);{let i=ade.Entry.fromJSON(s);return(0,uG.verifyDSSETLogBodyV2)(i,e)}case"intoto":return(0,fXe.verifyIntotoTLogBody)(s,e);case"hashedrekord":if(n==dG.HASHEDREKORD_API_VERSION_V1)return(0,dG.verifyHashedRekordTLogBody)(s,e);{let i=ade.Entry.fromJSON(s);return(0,dG.verifyHashedRekordTLogBodyV2)(i,e)}default:throw new ex.VerificationError({code:"TLOG_BODY_ERROR",message:`unsupported kind: ${r}`})}}o(EXe,"verifyTLogBody");function yXe(t,e){let r=!1;if(CXe(t)&&((0,gXe.verifyTLogSET)(t,e),r=!0),IXe(t)){let n=(0,hXe.verifyCheckpoint)(t,e);(0,mXe.verifyMerkleInclusion)(t,n),r=!0}if(!r)throw new ex.VerificationError({code:"TLOG_MISSING_INCLUSION_ERROR",message:"inclusion could not be verified"})}o(yXe,"verifyTLogInclusion");function CXe(t){return t.inclusionPromise!==void 0}o(CXe,"isTLogEntryWithInclusionPromise");function IXe(t){return t.inclusionProof!==void 0}o(IXe,"isTLogEntryWithInclusionProof")});var Ade=g(rx=>{"use strict";Object.defineProperty(rx,"__esModule",{value:!0});rx.Verifier=void 0;var BXe=require("util"),Cd=Hr(),lde=Uue(),AG=que(),ude=Vue(),dde=cde(),fG=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 n=this.verifyTimestamps(e),s=this.verifySigningKey(e,n);return this.verifyTLogs(e),this.verifySignature(e,s),r&&this.verifyPolicy(r,s.identity||{}),s}verifyTimestamps(e){let r=[];for(let n of e.timestamps)switch(n.$case){case"time
Line truncated
|
||||
${l}`}let A=Bx(t.buffer,s[c],i[c],t.position,d);l+=`${" ".repeat(r.indent)}${bx((t.line+1).toString(),u)} | ${A.str}
|
||||
`,l+=`${"-".repeat(r.indent+u+3+A.pos)}^
|
||||
`;for(let p=1;p<=r.linesAfter&&!(c+p>=i.length);p++){let f=Ex(t.buffer,s[c+p],i[c+p],t.position-(s[c]-s[c+p]),d);l+=`${" ".repeat(r.indent)}${yx((t.line+p+1).toString(),u)} | ${f.str}
|
||||
`}return l.replace(/\n$/,"")}o(WAe,"makeSnippet");function yG(t,e){let r="";return t.mark?(t.mark.name&&(r+=`in "${t.mark.name}" `),r+=`(${t.mark.line+1}:${t.mark.column+1})`,!e&&t.mark.snippet&&(r+=`
|
||||
`;for(let p=1;p<=r.linesAfter&&!(c+p>=i.length);p++){let f=Bx(t.buffer,s[c+p],i[c+p],t.position-(s[c]-s[c+p]),d);l+=`${" ".repeat(r.indent)}${bx((t.line+p+1).toString(),u)} | ${f.str}
|
||||
`}return l.replace(/\n$/,"")}o(ape,"makeSnippet");function QG(t,e){let r="";return t.mark?(t.mark.name&&(r+=`in "${t.mark.name}" `),r+=`(${t.mark.line+1}:${t.mark.column+1})`,!e&&t.mark.snippet&&(r+=`
|
||||
|
||||
${t.mark.snippet}`),`${t.reason} ${r}`):t.reason}o(yG,"formatError");var Il=class PG extends Error{static{o(this,"YAMLException")}reason;mark;constructor(e,r){super(),this.name="YAMLException",this.reason=e,this.mark=r,this.message=yG(this,!1),Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}toString(e){return`${this.name}: ${yG(this,e)}`}static throwAt(e,r,n,s=""){let i=0,a=0;for(let l=0;l<r;l++){let u=e.charCodeAt(l);u===10?(i++,a=l+1):u===13&&(i++,e.charCodeAt(l+1)===10&&l++,a=l+1)}let c={name:s,buffer:e,position:r,line:i,column:r-a};throw c.snippet=WAe(c),new PG(n,c)}},wt={DOCUMENT:1,SEQUENCE:2,MAPPING:3,SCALAR:4,ALIAS:5,POP:6},be={PLAIN:1,SINGLE_QUOTED:2,DOUBLE_QUOTED:3,LITERAL_BLOCK:4,FOLDED_BLOCK:5},sc={BLOCK:1,FLOW:2},Un={CLIP:1,STRIP:2,KEEP:3},jAe=-1;function CG(t){switch(t){case 48:return"\0";case 97:return"\x07";case 98:return"\b";case 116:return" ";case 9:return" ";case 110:return`
|
||||
`;case 118:return"\v";case 102:return"\f";case 114:return"\r";case 101:return"\x1B";case 32:return" ";case 34:return'"';case 47:return"/";case 92:return"\\";case 78:return"\x85";case 95:return"\xA0";case 76:return"\u2028";case 80:return"\u2029";default:return""}}o(CG,"simpleEscapeSequence");var kG=new Array(256),DG=new Array(256);for(let t=0;t<256;t++)kG[t]=CG(t)?1:0,DG[t]=CG(t);function KAe(t){return t<=65535?String.fromCharCode(t):String.fromCharCode((t-65536>>10)+55296,(t-65536&1023)+56320)}o(KAe,"charFromCodepoint");function XAe(t){return t>=48&&t<=57?t-48:(t|32)-97+10}o(XAe,"fromHexCode$1");function ZAe(t){return t===120?2:t===117?4:8}o(ZAe,"escapedHexLen$1");function UE(t,e,r){let n=0;for(;e<r;){let s=t.charCodeAt(e);if(s===10)n++,e++;else if(s===13)n++,e++,t.charCodeAt(e)===10&&e++;else if(s===32||s===9)e++;else break}return{position:e,breaks:n}}o(UE,"skipFoldedBreaks");function Px(t){return t===1?" ":`
|
||||
`.repeat(t-1)}o(Px,"foldedBreaks");function epe(t,e,r){let n="",s=e,i=e,a=e;for(;s<r;){let c=t.charCodeAt(s);if(c===10||c===13){n+=t.slice(i,a);let l=UE(t,s,r);n+=Px(l.breaks),s=i=a=l.position}else s++,c!==32&&c!==9&&(a=s)}return n+t.slice(i,a)}o(epe,"getPlainValue");function tpe(t,e,r){let n="",s=e,i=e,a=e;for(;s<r;){let c=t.charCodeAt(s);if(c===39)n+=t.slice(i,s)+"'",s+=2,i=a=s;else if(c===10||c===13){n+=t.slice(i,a);let l=UE(t,s,r);n+=Px(l.breaks),s=i=a=l.position}else s++,c!==32&&c!==9&&(a=s)}return n+t.slice(i,r)}o(tpe,"getSingleQuotedValue");function rpe(t,e,r){let n="",s=e,i=e,a=e;for(;s<r;){let c=t.charCodeAt(s);if(c===92){n+=t.slice(i,s),s++;let l=t.charCodeAt(s);if(l===10||l===13)s=UE(t,s,r).position;else if(l<256&&kG[l])n+=DG[l],s++;else{let u=ZAe(l),d=0;for(;u>0;u--){s++;let A=XAe(t.charCodeAt(s));d=(d<<4)+A}n+=KAe(d),s++}i=a=s}else if(c===10||c===13){n+=t.slice(i,a);let l=UE(t,s,r);n+=Px(l.breaks),s=i=a=l.position}else s++,c!==32&&c!==9&&(a=s)}return n+t.slice(i,r)}o(rpe,"getDoubleQuotedValue");function IG(t,e,r,n,s,i){let a=n<0?0:n,c=t.slice(e,r).replace(/\r\n?/g,`
|
||||
${t.mark.snippet}`),`${t.reason} ${r}`):t.reason}o(QG,"formatError");var Sl=class GG extends Error{static{o(this,"YAMLException")}reason;mark;constructor(e,r){super(),this.name="YAMLException",this.reason=e,this.mark=r,this.message=QG(this,!1),Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}toString(e){return`${this.name}: ${QG(this,e)}`}static throwAt(e,r,n,s=""){let i=0,a=0;for(let l=0;l<r;l++){let u=e.charCodeAt(l);u===10?(i++,a=l+1):u===13&&(i++,e.charCodeAt(l+1)===10&&l++,a=l+1)}let c={name:s,buffer:e,position:r,line:i,column:r-a};throw c.snippet=ape(c),new GG(n,c)}},Bt={DOCUMENT:1,SEQUENCE:2,MAPPING:3,SCALAR:4,ALIAS:5,POP:6},Be={PLAIN:1,SINGLE_QUOTED:2,DOUBLE_QUOTED:3,LITERAL_BLOCK:4,FOLDED_BLOCK:5},ic={BLOCK:1,FLOW:2},qn={CLIP:1,STRIP:2,KEEP:3},cpe=-1;function RG(t){switch(t){case 48:return"\0";case 97:return"\x07";case 98:return"\b";case 116:return" ";case 9:return" ";case 110:return`
|
||||
`;case 118:return"\v";case 102:return"\f";case 114:return"\r";case 101:return"\x1B";case 32:return" ";case 34:return'"';case 47:return"/";case 92:return"\\";case 78:return"\x85";case 95:return"\xA0";case 76:return"\u2028";case 80:return"\u2029";default:return""}}o(RG,"simpleEscapeSequence");var HG=new Array(256),VG=new Array(256);for(let t=0;t<256;t++)HG[t]=RG(t)?1:0,VG[t]=RG(t);function lpe(t){return t<=65535?String.fromCharCode(t):String.fromCharCode((t-65536>>10)+55296,(t-65536&1023)+56320)}o(lpe,"charFromCodepoint");function upe(t){return t>=48&&t<=57?t-48:(t|32)-97+10}o(upe,"fromHexCode$1");function dpe(t){return t===120?2:t===117?4:8}o(dpe,"escapedHexLen$1");function zE(t,e,r){let n=0;for(;e<r;){let s=t.charCodeAt(e);if(s===10)n++,e++;else if(s===13)n++,e++,t.charCodeAt(e)===10&&e++;else if(s===32||s===9)e++;else break}return{position:e,breaks:n}}o(zE,"skipFoldedBreaks");function Mx(t){return t===1?" ":`
|
||||
`.repeat(t-1)}o(Mx,"foldedBreaks");function Ape(t,e,r){let n="",s=e,i=e,a=e;for(;s<r;){let c=t.charCodeAt(s);if(c===10||c===13){n+=t.slice(i,a);let l=zE(t,s,r);n+=Mx(l.breaks),s=i=a=l.position}else s++,c!==32&&c!==9&&(a=s)}return n+t.slice(i,a)}o(Ape,"getPlainValue");function ppe(t,e,r){let n="",s=e,i=e,a=e;for(;s<r;){let c=t.charCodeAt(s);if(c===39)n+=t.slice(i,s)+"'",s+=2,i=a=s;else if(c===10||c===13){n+=t.slice(i,a);let l=zE(t,s,r);n+=Mx(l.breaks),s=i=a=l.position}else s++,c!==32&&c!==9&&(a=s)}return n+t.slice(i,r)}o(ppe,"getSingleQuotedValue");function fpe(t,e,r){let n="",s=e,i=e,a=e;for(;s<r;){let c=t.charCodeAt(s);if(c===92){n+=t.slice(i,s),s++;let l=t.charCodeAt(s);if(l===10||l===13)s=zE(t,s,r).position;else if(l<256&&HG[l])n+=VG[l],s++;else{let u=dpe(l),d=0;for(;u>0;u--){s++;let A=upe(t.charCodeAt(s));d=(d<<4)+A}n+=lpe(d),s++}i=a=s}else if(c===10||c===13){n+=t.slice(i,a);let l=zE(t,s,r);n+=Mx(l.breaks),s=i=a=l.position}else s++,c!==32&&c!==9&&(a=s)}return n+t.slice(i,r)}o(fpe,"getDoubleQuotedValue");function TG(t,e,r,n,s,i){let a=n<0?0:n,c=t.slice(e,r).replace(/\r\n?/g,`
|
||||
`),l=c===""?[]:(c.endsWith(`
|
||||
`)?c.slice(0,-1):c).split(`
|
||||
`),u="",d=!1,A=0,p=!1;for(let f of l){let h=0;for(;h<a&&f.charCodeAt(h)===32;)h++;if(n<0||h>=f.length){A++;continue}let g=f.slice(a),y=g.charCodeAt(0);i?y===32||y===9?(p=!0,u+=`
|
||||
`),u="",d=!1,A=0,p=!1;for(let f of l){let h=0;for(;h<a&&f.charCodeAt(h)===32;)h++;if(n<0||h>=f.length){A++;continue}let m=f.slice(a),y=m.charCodeAt(0);i?y===32||y===9?(p=!0,u+=`
|
||||
`.repeat(d?1+A:A)):p?(p=!1,u+=`
|
||||
`.repeat(A+1)):A===0?d&&(u+=" "):u+=`
|
||||
`.repeat(A):u+=`
|
||||
`.repeat(d?1+A:A),u+=g,d=!0,A=0}return s===Un.KEEP?u+=`
|
||||
`.repeat(d?1+A:A):s!==Un.STRIP&&d&&(u+=`
|
||||
`),u}o(IG,"getBlockValue");function npe(t,e){if(e.valueStart===jAe)return"";let{valueStart:r,valueEnd:n}=e;if(e.fast)return t.slice(r,n);switch(e.style){case be.SINGLE_QUOTED:return tpe(t,r,n);case be.DOUBLE_QUOTED:return rpe(t,r,n);case be.LITERAL_BLOCK:return IG(t,r,n,e.indent,e.chomping,!1);case be.FOLDED_BLOCK:return IG(t,r,n,e.indent,e.chomping,!0);default:return epe(t,r,n)}}o(npe,"getScalarValue");var spe=Object.assign(Object.create(null),{"!":"!","!!":"tag:yaml.org,2002:"});function OG(t,e){if(t.startsWith("!<")&&t.endsWith(">"))return decodeURIComponent(t.slice(2,-1));let r=t.indexOf("!",1),n=r===-1?"!":t.slice(0,r+1),s=e?.[n]??spe[n]??n;return decodeURIComponent(s)+decodeURIComponent(t.slice(n.length))}o(OG,"tagNameFull");var md=-1,ipe="tag:yaml.org,2002:merge",kx={filename:"",schema:zAe,json:!1,maxTotalMergeKeys:1e4,maxAliases:-1};function ope(t){return"tagStart"in t&&t.tagStart!==md?t.tagStart:"anchorStart"in t&&t.anchorStart!==md?t.anchorStart:"valueStart"in t&&t.valueStart!==md?t.valueStart:"start"in t?t.start:0}o(ope,"eventPosition$1");function Cr(t,e){Il.throwAt(t.source,t.position,e,t.filename)}o(Cr,"throwError$1");function MG(t,e,r,n){try{return r.finalize(n)}catch(s){if(s instanceof Il)throw s;Il.throwAt(t.source,e,s instanceof Error?s.message:String(s),t.filename)}}o(MG,"finalizeCollection");function ape(t,e){let r=npe(t.source,e),n=e.tagStart===md?"":t.source.slice(e.tagStart,e.tagEnd),s=t.schema.defaultScalarTag;if(n!==""){if(n==="!")return{value:r,tag:s};let i=OG(n,t.tagHandlers),a=t.schema.lookupScalarTag(i);if(a){let l=a.resolve(r,!0,i);return l===ve&&Cr(t,`cannot resolve a node with !<${i}> explicit tag`),{value:l,tag:a}}let c=t.schema.lookupMappingTag(i)??t.schema.lookupSequenceTag(i);if(c){r!==""&&Cr(t,`cannot resolve a node with !<${i}> explicit tag`);let l=c.create(i);return{value:c.carrierIsResult?l:MG(t,t.position,c,l),tag:c}}Cr(t,`unknown scalar tag !<${i}>`)}return e.style===be.PLAIN?t.schema.resolveImplicitScalarTag(r):{value:s.resolve(r,!1,s.tagName),tag:s}}o(ape,"constructScalar");function BG(t,e,r){let n=e.tagStart===md?"":t.source.slice(e.tagStart,e.tagEnd);return n===""||n==="!"?r:OG(n,t.tagHandlers)}o(BG,"collectionTagName");function LG(t){return t.nodeKind==="mapping"}o(LG,"isMappingTag");function bG(t){t.totalMergeKeys++,t.maxTotalMergeKeys!==-1&&t.totalMergeKeys>t.maxTotalMergeKeys&&Cr(t,`merge keys exceeded maxTotalMergeKeys (${t.maxTotalMergeKeys})`)}o(bG,"chargeMergeWork");function wG(t,e,r,n){bG(t);for(let s of n.keys(r)){if(bG(t),e.tag.has(e.value,s))continue;let i=e.tag.addPair(e.value,s,n.get(r,s));i&&Cr(t,i),e.overridable??=new Set,e.overridable.add(s)}}o(wG,"mergeKeys");function cpe(t,e,r,n){if(t.position=e.keyPosition,LG(n))wG(t,e,r,n);else if(n.nodeKind==="sequence"&&Array.isArray(r)){r.length>100&&Cr(t,"abnormal merge sequence size");for(let s of r){let i=t.nodeTags.get(s);i||Cr(t,"cannot merge mappings; the provided source object is unacceptable"),wG(t,e,s,i)}}else Cr(t,"cannot merge mappings; the provided source object is unacceptable")}o(cpe,"mergeSource");function lpe(t,e,r,n,s){if(t.position=e.keyPosition,e.keyIsMerge){cpe(t,e,n,s);return}!t.json&&e.tag.has(e.value,r)&&!e.overridable?.has(r)&&Cr(t,"duplicated mapping key");let i=e.tag.addPair(e.value,r,n);i&&Cr(t,i),e.overridable?.delete(r)}o(lpe,"addMappingValue");function Cx(t,e,r){let n=t.frames[t.frames.length-1];if(n.kind==="document")n.value=e,n.hasValue=!0;else if(n.kind==="sequence"){LG(r)&&t.nodeTags.set(e,r);let s=n.tag.addItem(n.value,e,n.index++);s&&Cr(t,s)}else if(n.hasKey){let s=n.key;n.key=void 0,n.hasKey=!1,lpe(t,n,s,e,r)}else n.key=e,n.keyPosition=t.position,n.hasKey=!0,n.keyIsMerge=r.tagName===ipe}o(Cx,"addValue");function Ix(t,e,r,n,s){if(e.anchorStart!==md){let i={value:r,tag:n,isValueFinal:s};return t.anchors.set(t.source.slice(e.anchorStart,e.anchorEnd),i),i}return null}o(Ix,"storeAnchor");function upe(t,e){let r={...kx,...e,events:t,documents:[],eventIndex:0,position:0,frames:[],anchors:new Map,nodeTags:new Map,tagHandlers:Object.create(null),totalMergeKeys:0,aliasCount:0};for(;r.eventIndex<r.events.length;){let n=r.events[r.eventIndex++];switch(r.position=ope(n),n.type){case wt.DOCUMENT:r.anchors=new Map,r.nodeTags=new Map,r.aliasCount=0,r.tagHandlers=Object.create(null);for(let s of n.directives)s.kind==="tag"&&(r.tagHandlers[s.handle]=s.prefix);r.frames.push({kind:"document",position:r.position,value:void 0,hasValue:!1});break;case wt.SCALAR:{let{value:s,tag:i}=ape(r,n);Ix(r,n,s,i,!0),Cx(r,s,i);break}case wt.SEQUENCE:{let s=BG(r,n,"tag:yaml.org,2002:seq"),i=r.schema.lookupSequenceTag(s);i||Cr(r,`unknown sequence tag !<${s}>`);let a=i.create(s),c=Ix(r,n,a,i,i.carrierIsResult);r.frames.push({kind:"sequence",position:r.position,value:a,tag:i,anchor:c,index:0});break}case wt.MAPPING:{let s=BG(r,n,"tag:yaml.org,2002:map"),i=r.schema.lookupMappingTag(s);i||Cr(r,`unknown mapping tag !<${s}>`);let a=i.create(s),c=Ix(r,n,a,i,i.carrierIsResult);r.frames.push({kind:"mapping",positio
Line truncated
|
||||
`)?be.DOUBLE_QUOTED:JG(t)))}o(Fpe,"applyForceQuotesOption");function Upe(t){if(t.style!==be.PLAIN||t.isKey)return;let e=t.node.value,r=e.indexOf(`
|
||||
`)!==-1;if(!$E(t.allowedStylesMask,be.LITERAL_BLOCK)){r&&(t.style=be.DOUBLE_QUOTED);return}let n=t.presenterOptions.lineWidth;if(n===-1){r&&(t.style=be.LITERAL_BLOCK);return}let s=Math.max(Math.min(n,40),n-t.shiftOfContent),i=0,a=!1;for(;i<=e.length;){let c=e.length,l=e.indexOf(`
|
||||
`,i);l!==-1&&(c=l);let u=e.slice(i,c);if(u.length>s&&u[0]!==" "&&/ [^ \t]/.test(u)&&(a=!0),l===-1)break;i=l+1}a?t.style=be.FOLDED_BLOCK:r&&(t.style=be.LITERAL_BLOCK)}o(Upe,"tryLongOrMultilineAsBlock");function qpe(t){t.style===be.PLAIN&&!$E(t.allowedStylesMask,be.PLAIN)&&(t.style=JG(t))}o(qpe,"quoteInvalidPlain");function Gpe(t){$E(t.allowedStylesMask,t.style)||(t.style=be.DOUBLE_QUOTED)}o(Gpe,"fallbackToDoubleQuoted");var Hpe="[\\x09\\x0A\\x0D\\x20-\\x7E\\x85\\xA0-\\uD7FF\\uE000-\\uFFFD\\u{10000}-\\u{10FFFF}]",Vpe="[\\n\\r]",zpe="\\uFEFF",Mx="[ \\t]",YG=`(?:(?!(?:${Vpe}|${zpe}))${Hpe})`,JE=`(?:(?!${Mx})${YG})`,WG="[\\x09\\x20-\\uD7FF\\uE000-\\uFFFF\\u{10000}-\\u{10FFFF}]",jG="[-?:,\\[\\]{}#&*!|>'\"%@`]",$pe="[,\\[\\]{}]",Rx=JE,Tx=`(?:(?!${$pe})${JE})`,Jpe=`(?:(?:(?!${jG})${JE})|[?:-](?=${Rx}))`,Ype=`(?:(?:(?!${jG})${JE})|[?:-](?=${Tx}))`,KG=`(?:(?:(?![:#])${Rx})|:(?=${Rx}))#*`,XG=`(?:(?:(?![:#])${Tx})|:(?=${Tx}))#*`,ZG=`(?:${Mx}*${KG})*`,eH=`(?:${Mx}*${XG})*`,tH=`${Jpe}#*${ZG}`,rH=`${Ype}#*${eH}`,Wpe=tH,jpe=rH,Kpe=`\\n+${KG}${ZG}`,Xpe=`\\n+${XG}${eH}`,Zpe=`${tH}(?:${Kpe})*`,efe=`${rH}(?:${Xpe})*`,xKe=new RegExp(`^(?:${Zpe})$`,"u"),QKe=new RegExp(`^(?:${efe})$`,"u"),RKe=new RegExp(`^(?:${Wpe})$`,"u"),TKe=new RegExp(`^(?:${jpe})$`,"u"),vKe=new RegExp(`^(?:${WG})*$`,"u"),_Ke=new RegExp(`^(?:${WG}|\\n)*$`,"u"),PKe=new RegExp(`^(?:${YG}|\\n)*$`,"u");var tfe={indent:2,seqNoIndent:!1,seqInlineFirst:!0,lineWidth:80,flowBracketPadding:!1,flowSkipCommaSpace:!1,flowSkipColonSpace:!1,quoteFlowKeys:!1,quoteStyle:"single",forceQuotes:!1,scalarStyleRules:Object.keys(RG).map(t=>Reflect.get(RG,t)),tagBeforeAnchor:!1};var kKe={...tfe,schema:JAe,skipInvalid:!1,noRefs:!1,flowLevel:-1,sortKeys:!1,transform:o(()=>{},"transform")};var DKe=wt.DOCUMENT,OKe=wt.SEQUENCE,MKe=wt.MAPPING,LKe=wt.SCALAR,FKe=wt.ALIAS,UKe=wt.POP,qKe=be.PLAIN,GKe=be.SINGLE_QUOTED,HKe=be.DOUBLE_QUOTED,VKe=be.LITERAL_BLOCK,zKe=be.FOLDED_BLOCK,$Ke=sc.BLOCK,JKe=sc.FLOW,YKe=Un.CLIP,WKe=Un.STRIP,jKe=Un.KEEP;var sH=w(require("os"),1);function ra(t){return t==null?"":typeof t=="string"||t instanceof String?t:JSON.stringify(t)}o(ra,"toCommandValue");function Lx(t){return Object.keys(t).length?{title:t.title,file:t.file,line:t.startLine,endLine:t.endLine,col:t.startColumn,endColumn:t.endColumn}:{}}o(Lx,"toCommandProperties");function na(t,e,r){let n=new Fx(t,e,r);process.stdout.write(n.toString()+sH.EOL)}o(na,"issueCommand");function Ux(t,e=""){na(t,{},e)}o(Ux,"issue");var nH="::",Fx=class{static{o(this,"Command")}constructor(e,r,n){e||(e="missing.command"),this.command=e,this.properties=r,this.message=n}toString(){let e=nH+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let r=!0;for(let n in this.properties)if(this.properties.hasOwnProperty(n)){let s=this.properties[n];s&&(r?r=!1:e+=",",e+=`${n}=${sfe(s)}`)}}return e+=`${nH}${nfe(this.message)}`,e}};function nfe(t){return ra(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}o(nfe,"escapeData");function sfe(t){return ra(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}o(sfe,"escapeProperty");var iH=w(require("crypto"),1),WE=w(require("fs"),1),YE=w(require("os"),1);function jE(t,e){let r=process.env[`GITHUB_${t}`];if(!r)throw new Error(`Unable to find environment variable for file command ${t}`);if(!WE.existsSync(r))throw new Error(`Missing file at path: ${r}`);WE.appendFileSync(r,`${ra(e)}${YE.EOL}`,{encoding:"utf8"})}o(jE,"issueFileCommand");function qx(t,e){let r=`ghadelimiter_${iH.randomUUID()}`,n=ra(e);if(t.includes(r))throw new Error(`Unexpected input: name should not contain the delimiter "${r}"`);if(n.includes(r))throw new Error(`Unexpected input: value should not contain the delimiter "${r}"`);return`${t}<<${r}${YE.EOL}${n}${YE.EOL}${r}`}o(qx,"prepareKeyValueMessage");var Tv=w(require("os"),1),s4=w(require("path"),1);var Oh=w(require("http"),1),gv=w(require("https"),1);function Gx(t){let e=t.protocol==="https:";if(ife(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 KE(r)}catch{if(!r.startsWith("http://")&&!r.startsWith("https://"))return new KE(`http://${r}`)}else return}o(Gx,"getProxyUrl");function ife(t){if(!t.hostname)return!1;let e=t.hostname;if(ofe(e))return!0;let r=process.env.no_proxy||process.env.NO_PROXY||"";if(!r)return!1;let n;t.port?n=Number(t.port):t.protocol==="http:"?n=80:t.protocol==="https:"&&(n=443);let s=[t.hostname.toUpperCase()];typeof n=="number"&&s.push(`${s[0]}:${n}`);for(let i of r.split(",").map(a=>a.trim().toUpperCase()).filter(a=>a))if(i==="*"||s.some(a=>a===i||a.endsWith(`.${i}`)||i.startsWith(".")&&a.endsWith(`${i}`)))return!0;return!1}o(ife,"checkBypass");function ofe(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(ofe,"isLoopbackAddress");var KE=class extends URL{static{o(this,"DecodedURL")}constructor(e,r){supe
Line truncated
|
||||
Support boolean input list: \`true | True | TRUE | false | False | FALSE\``)}o(Zl,"getBooleanInput");function Gh(t,e){if(process.env.GITHUB_OUTPUT||"")return jE("OUTPUT",qx(t,e));process.stdout.write(Tv.EOL),na("set-output",{name:t},ra(e))}o(Gh,"setOutput");function i4(t){process.exitCode=Rv.Failure,BA(t)}o(i4,"setFailed");function Ia(){return process.env.RUNNER_DEBUG==="1"}o(Ia,"isDebug");function B(t){na("debug",{},t)}o(B,"debug");function BA(t,e={}){na("error",Lx(e),t instanceof Error?t.toString():t)}o(BA,"error");function Je(t,e={}){na("warning",Lx(e),t instanceof Error?t.toString():t)}o(Je,"warning");function S(t){process.stdout.write(t+Tv.EOL)}o(S,"info");function MNe(t){Ux("group",t)}o(MNe,"startGroup");function LNe(){Ux("endgroup")}o(LNe,"endGroup");function nt(t,e){return ONe(this,void 0,void 0,function*(){MNe(t);let r;try{r=yield e()}finally{LNe()}return r})}o(nt,"group");function En(t,e){if(process.env.GITHUB_STATE||"")return jE("STATE",qx(t,e));na("save-state",{name:t},ra(e))}o(En,"saveState");function o4(t){return process.env[`STATE_${t}`]||""}o(o4,"getState");var kg=w(require("fs"),1),F1=w(require("os"),1),U1=w(require("path"),1);var c4=w(require("os"),1);function Hh(t){return t==null?"":typeof t=="string"||t instanceof String?t:JSON.stringify(t)}o(Hh,"toCommandValue");function l4(t,e,r){let n=new vv(t,e,r);process.stdout.write(n.toString()+c4.EOL)}o(l4,"issueCommand");var a4="::",vv=class{static{o(this,"Command")}constructor(e,r,n){e||(e="missing.command"),this.command=e,this.properties=r,this.message=n}toString(){let e=a4+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let r=!0;for(let n in this.properties)if(this.properties.hasOwnProperty(n)){let s=this.properties[n];s&&(r?r=!1:e+=",",e+=`${n}=${UNe(s)}`)}}return e+=`${a4}${FNe(this.message)}`,e}};function FNe(t){return Hh(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}o(FNe,"escapeData");function UNe(t){return Hh(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}o(UNe,"escapeProperty");var p4=w(require("os"),1);var d4=require("os"),Vh=require("fs");var _v=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(a){a(i)})}return o(s,"adopt"),new(r||(r=Promise))(function(i,a){function c(d){try{u(n.next(d))}catch(A){a(A)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(A){a(A)}}o(l,"rejected");function u(d){d.done?i(d.value):s(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})},{access:qNe,appendFile:GNe,writeFile:HNe}=Vh.promises,u4="GITHUB_STEP_SUMMARY";var Pv=class{static{o(this,"Summary")}constructor(){this._buffer=""}filePath(){return _v(this,void 0,void 0,function*(){if(this._filePath)return this._filePath;let e=process.env[u4];if(!e)throw new Error(`Unable to find environment variable for $${u4}. Check if your runtime environment supports job summaries.`);try{yield qNe(e,Vh.constants.R_OK|Vh.constants.W_OK)}catch{throw new Error(`Unable to access summary file: '${e}'. Check if the file has correct read/write permissions.`)}return this._filePath=e,this._filePath})}wrap(e,r,n={}){let s=Object.entries(n).map(([i,a])=>` ${i}="${a}"`).join("");return r?`<${e}${s}>${r}</${e}>`:`<${e}${s}>`}write(e){return _v(this,void 0,void 0,function*(){let r=!!e?.overwrite,n=yield this.filePath();return yield(r?HNe:GNe)(n,this._buffer,{encoding:"utf8"}),this.emptyBuffer()})}clear(){return _v(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(d4.EOL)}addCodeBlock(e,r){let n=Object.assign({},r&&{lang:r}),s=this.wrap("pre",this.wrap("code",e),n);return this.addRaw(s).addEOL()}addList(e,r=!1){let n=r?"ol":"ul",s=e.map(a=>this.wrap("li",a)).join(""),i=this.wrap(n,s);return this.addRaw(i).addEOL()}addTable(e){let r=e.map(s=>{let i=s.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(""),n=this.wrap("table",r);return this.addRaw(n).addEOL()}addDetails(e,r){let n=this.wrap("details",this.wrap("summary",e)+r);return this.addRaw(n).addEOL()}addImage(e,r,n){let{width:s,height:i}=n||{},a=Object.assign(Object.assign({},s&&{width:s}),i&&{height:i}),c=this.wrap("img",null,Object.assign({src:e,alt:r},a));return this.addRaw(c).addEOL()}addHeading(e,r){let n=`h${r}`,s=["h1","h2","h3","h4","h5","h6"].includes(n)?n:"h1",i=this.wrap(s,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 n=Object.assign({},r&&{cite:r}),s=this.wrap("blockquote",e,n);return this.addRaw(s).addEOL()}Line truncated
|
||||
`.repeat(d?1+A:A),u+=m,d=!0,A=0}return s===qn.KEEP?u+=`
|
||||
`.repeat(d?1+A:A):s!==qn.STRIP&&d&&(u+=`
|
||||
`),u}o(TG,"getBlockValue");function hpe(t,e){if(e.valueStart===cpe)return"";let{valueStart:r,valueEnd:n}=e;if(e.fast)return t.slice(r,n);switch(e.style){case Be.SINGLE_QUOTED:return ppe(t,r,n);case Be.DOUBLE_QUOTED:return fpe(t,r,n);case Be.LITERAL_BLOCK:return TG(t,r,n,e.indent,e.chomping,!1);case Be.FOLDED_BLOCK:return TG(t,r,n,e.indent,e.chomping,!0);default:return Ape(t,r,n)}}o(hpe,"getScalarValue");var mpe=Object.assign(Object.create(null),{"!":"!","!!":"tag:yaml.org,2002:"});function zG(t,e){if(t.startsWith("!<")&&t.endsWith(">"))return decodeURIComponent(t.slice(2,-1));let r=t.indexOf("!",1),n=r===-1?"!":t.slice(0,r+1),s=e?.[n]??mpe[n]??n;return decodeURIComponent(s)+decodeURIComponent(t.slice(n.length))}o(zG,"tagNameFull");var Bd=-1,gpe="tag:yaml.org,2002:merge",Lx={filename:"",schema:npe,json:!1,maxTotalMergeKeys:1e4,maxAliases:-1};function Epe(t){return"tagStart"in t&&t.tagStart!==Bd?t.tagStart:"anchorStart"in t&&t.anchorStart!==Bd?t.anchorStart:"valueStart"in t&&t.valueStart!==Bd?t.valueStart:"start"in t?t.start:0}o(Epe,"eventPosition$1");function Cr(t,e){Sl.throwAt(t.source,t.position,e,t.filename)}o(Cr,"throwError$1");function $G(t,e,r,n){try{return r.finalize(n)}catch(s){if(s instanceof Sl)throw s;Sl.throwAt(t.source,e,s instanceof Error?s.message:String(s),t.filename)}}o($G,"finalizeCollection");function ype(t,e){let r=hpe(t.source,e),n=e.tagStart===Bd?"":t.source.slice(e.tagStart,e.tagEnd),s=t.schema.defaultScalarTag;if(n!==""){if(n==="!")return{value:r,tag:s};let i=zG(n,t.tagHandlers),a=t.schema.lookupScalarTag(i);if(a){let l=a.resolve(r,!0,i);return l===ve&&Cr(t,`cannot resolve a node with !<${i}> explicit tag`),{value:l,tag:a}}let c=t.schema.lookupMappingTag(i)??t.schema.lookupSequenceTag(i);if(c){r!==""&&Cr(t,`cannot resolve a node with !<${i}> explicit tag`);let l=c.create(i);return{value:c.carrierIsResult?l:$G(t,t.position,c,l),tag:c}}Cr(t,`unknown scalar tag !<${i}>`)}return e.style===Be.PLAIN?t.schema.resolveImplicitScalarTag(r):{value:s.resolve(r,!1,s.tagName),tag:s}}o(ype,"constructScalar");function vG(t,e,r){let n=e.tagStart===Bd?"":t.source.slice(e.tagStart,e.tagEnd);return n===""||n==="!"?r:zG(n,t.tagHandlers)}o(vG,"collectionTagName");function JG(t){return t.nodeKind==="mapping"}o(JG,"isMappingTag");function _G(t){t.totalMergeKeys++,t.maxTotalMergeKeys!==-1&&t.totalMergeKeys>t.maxTotalMergeKeys&&Cr(t,`merge keys exceeded maxTotalMergeKeys (${t.maxTotalMergeKeys})`)}o(_G,"chargeMergeWork");function PG(t,e,r,n){_G(t);for(let s of n.keys(r)){if(_G(t),e.tag.has(e.value,s))continue;let i=e.tag.addPair(e.value,s,n.get(r,s));i&&Cr(t,i),e.overridable??=new Set,e.overridable.add(s)}}o(PG,"mergeKeys");function Cpe(t,e,r,n){if(t.position=e.keyPosition,JG(n))PG(t,e,r,n);else if(n.nodeKind==="sequence"&&Array.isArray(r)){r.length>100&&Cr(t,"abnormal merge sequence size");for(let s of r){let i=t.nodeTags.get(s);i||Cr(t,"cannot merge mappings; the provided source object is unacceptable"),PG(t,e,s,i)}}else Cr(t,"cannot merge mappings; the provided source object is unacceptable")}o(Cpe,"mergeSource");function Ipe(t,e,r,n,s){if(t.position=e.keyPosition,e.keyIsMerge){Cpe(t,e,n,s);return}!t.json&&e.tag.has(e.value,r)&&!e.overridable?.has(r)&&Cr(t,"duplicated mapping key");let i=e.tag.addPair(e.value,r,n);i&&Cr(t,i),e.overridable?.delete(r)}o(Ipe,"addMappingValue");function wx(t,e,r){let n=t.frames[t.frames.length-1];if(n.kind==="document")n.value=e,n.hasValue=!0;else if(n.kind==="sequence"){JG(r)&&t.nodeTags.set(e,r);let s=n.tag.addItem(n.value,e,n.index++);s&&Cr(t,s)}else if(n.hasKey){let s=n.key;n.key=void 0,n.hasKey=!1,Ipe(t,n,s,e,r)}else n.key=e,n.keyPosition=t.position,n.hasKey=!0,n.keyIsMerge=r.tagName===gpe}o(wx,"addValue");function Sx(t,e,r,n,s){if(e.anchorStart!==Bd){let i={value:r,tag:n,isValueFinal:s};return t.anchors.set(t.source.slice(e.anchorStart,e.anchorEnd),i),i}return null}o(Sx,"storeAnchor");function Bpe(t,e){let r={...Lx,...e,events:t,documents:[],eventIndex:0,position:0,frames:[],anchors:new Map,nodeTags:new Map,tagHandlers:Object.create(null),totalMergeKeys:0,aliasCount:0};for(;r.eventIndex<r.events.length;){let n=r.events[r.eventIndex++];switch(r.position=Epe(n),n.type){case Bt.DOCUMENT:r.anchors=new Map,r.nodeTags=new Map,r.aliasCount=0,r.tagHandlers=Object.create(null);for(let s of n.directives)s.kind==="tag"&&(r.tagHandlers[s.handle]=s.prefix);r.frames.push({kind:"document",position:r.position,value:void 0,hasValue:!1});break;case Bt.SCALAR:{let{value:s,tag:i}=ype(r,n);Sx(r,n,s,i,!0),wx(r,s,i);break}case Bt.SEQUENCE:{let s=vG(r,n,"tag:yaml.org,2002:seq"),i=r.schema.lookupSequenceTag(s);i||Cr(r,`unknown sequence tag !<${s}>`);let a=i.create(s),c=Sx(r,n,a,i,i.carrierIsResult);r.frames.push({kind:"sequence",position:r.position,value:a,tag:i,anchor:c,index:0});break}case Bt.MAPPING:{let s=vG(r,n,"tag:yaml.org,2002:map"),i=r.schema.lookupMappingTag(s);i||Cr(r,`unknown mapping tag !<${s}>`);let a=i.create(s),c=Sx(r,n,a,i,i.carrierIsResult);r.frames.push({kind:"mapping",positio
Line truncated
|
||||
`)?Be.DOUBLE_QUOTED:rH(t)))}o(Kpe,"applyForceQuotesOption");function Xpe(t){if(t.style!==Be.PLAIN||t.isKey)return;let e=t.node.value,r=e.indexOf(`
|
||||
`)!==-1;if(!KE(t.allowedStylesMask,Be.LITERAL_BLOCK)){r&&(t.style=Be.DOUBLE_QUOTED);return}let n=t.presenterOptions.lineWidth;if(n===-1){r&&(t.style=Be.LITERAL_BLOCK);return}let s=Math.max(Math.min(n,40),n-t.shiftOfContent),i=0,a=!1;for(;i<=e.length;){let c=e.length,l=e.indexOf(`
|
||||
`,i);l!==-1&&(c=l);let u=e.slice(i,c);if(u.length>s&&u[0]!==" "&&/ [^ \t]/.test(u)&&(a=!0),l===-1)break;i=l+1}a?t.style=Be.FOLDED_BLOCK:r&&(t.style=Be.LITERAL_BLOCK)}o(Xpe,"tryLongOrMultilineAsBlock");function Zpe(t){t.style===Be.PLAIN&&!KE(t.allowedStylesMask,Be.PLAIN)&&(t.style=rH(t))}o(Zpe,"quoteInvalidPlain");function efe(t){KE(t.allowedStylesMask,t.style)||(t.style=Be.DOUBLE_QUOTED)}o(efe,"fallbackToDoubleQuoted");var tfe="[\\x09\\x0A\\x0D\\x20-\\x7E\\x85\\xA0-\\uD7FF\\uE000-\\uFFFD\\u{10000}-\\u{10FFFF}]",rfe="[\\n\\r]",nfe="\\uFEFF",qx="[ \\t]",nH=`(?:(?!(?:${rfe}|${nfe}))${tfe})`,XE=`(?:(?!${qx})${nH})`,sH="[\\x09\\x20-\\uD7FF\\uE000-\\uFFFF\\u{10000}-\\u{10FFFF}]",iH="[-?:,\\[\\]{}#&*!|>'\"%@`]",sfe="[,\\[\\]{}]",Px=XE,kx=`(?:(?!${sfe})${XE})`,ife=`(?:(?:(?!${iH})${XE})|[?:-](?=${Px}))`,ofe=`(?:(?:(?!${iH})${XE})|[?:-](?=${kx}))`,oH=`(?:(?:(?![:#])${Px})|:(?=${Px}))#*`,aH=`(?:(?:(?![:#])${kx})|:(?=${kx}))#*`,cH=`(?:${qx}*${oH})*`,lH=`(?:${qx}*${aH})*`,uH=`${ife}#*${cH}`,dH=`${ofe}#*${lH}`,afe=uH,cfe=dH,lfe=`\\n+${oH}${cH}`,ufe=`\\n+${aH}${lH}`,dfe=`${uH}(?:${lfe})*`,Afe=`${dH}(?:${ufe})*`,PXe=new RegExp(`^(?:${dfe})$`,"u"),kXe=new RegExp(`^(?:${Afe})$`,"u"),DXe=new RegExp(`^(?:${afe})$`,"u"),OXe=new RegExp(`^(?:${cfe})$`,"u"),MXe=new RegExp(`^(?:${sH})*$`,"u"),LXe=new RegExp(`^(?:${sH}|\\n)*$`,"u"),FXe=new RegExp(`^(?:${nH}|\\n)*$`,"u");var pfe={indent:2,seqNoIndent:!1,seqInlineFirst:!0,lineWidth:80,flowBracketPadding:!1,flowSkipCommaSpace:!1,flowSkipColonSpace:!1,quoteFlowKeys:!1,quoteStyle:"single",forceQuotes:!1,scalarStyleRules:Object.keys(LG).map(t=>Reflect.get(LG,t)),tagBeforeAnchor:!1};var UXe={...pfe,schema:ipe,skipInvalid:!1,noRefs:!1,flowLevel:-1,sortKeys:!1,transform:o(()=>{},"transform")};var qXe=Bt.DOCUMENT,GXe=Bt.SEQUENCE,HXe=Bt.MAPPING,VXe=Bt.SCALAR,zXe=Bt.ALIAS,$Xe=Bt.POP,JXe=Be.PLAIN,YXe=Be.SINGLE_QUOTED,WXe=Be.DOUBLE_QUOTED,jXe=Be.LITERAL_BLOCK,KXe=Be.FOLDED_BLOCK,XXe=ic.BLOCK,ZXe=ic.FLOW,eZe=qn.CLIP,tZe=qn.STRIP,rZe=qn.KEEP;var pH=w(require("os"),1);function sa(t){return t==null?"":typeof t=="string"||t instanceof String?t:JSON.stringify(t)}o(sa,"toCommandValue");function Gx(t){return Object.keys(t).length?{title:t.title,file:t.file,line:t.startLine,endLine:t.endLine,col:t.startColumn,endColumn:t.endColumn}:{}}o(Gx,"toCommandProperties");function ia(t,e,r){let n=new Hx(t,e,r);process.stdout.write(n.toString()+pH.EOL)}o(ia,"issueCommand");function Vx(t,e=""){ia(t,{},e)}o(Vx,"issue");var AH="::",Hx=class{static{o(this,"Command")}constructor(e,r,n){e||(e="missing.command"),this.command=e,this.properties=r,this.message=n}toString(){let e=AH+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let r=!0;for(let n in this.properties)if(this.properties.hasOwnProperty(n)){let s=this.properties[n];s&&(r?r=!1:e+=",",e+=`${n}=${mfe(s)}`)}}return e+=`${AH}${hfe(this.message)}`,e}};function hfe(t){return sa(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}o(hfe,"escapeData");function mfe(t){return sa(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}o(mfe,"escapeProperty");var fH=w(require("crypto"),1),ey=w(require("fs"),1),ZE=w(require("os"),1);function ty(t,e){let r=process.env[`GITHUB_${t}`];if(!r)throw new Error(`Unable to find environment variable for file command ${t}`);if(!ey.existsSync(r))throw new Error(`Missing file at path: ${r}`);ey.appendFileSync(r,`${sa(e)}${ZE.EOL}`,{encoding:"utf8"})}o(ty,"issueFileCommand");function zx(t,e){let r=`ghadelimiter_${fH.randomUUID()}`,n=sa(e);if(t.includes(r))throw new Error(`Unexpected input: name should not contain the delimiter "${r}"`);if(n.includes(r))throw new Error(`Unexpected input: value should not contain the delimiter "${r}"`);return`${t}<<${r}${ZE.EOL}${n}${ZE.EOL}${r}`}o(zx,"prepareKeyValueMessage");var kv=w(require("os"),1),p4=w(require("path"),1);var zh=w(require("http"),1),Iv=w(require("https"),1);function $x(t){let e=t.protocol==="https:";if(gfe(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 ry(r)}catch{if(!r.startsWith("http://")&&!r.startsWith("https://"))return new ry(`http://${r}`)}else return}o($x,"getProxyUrl");function gfe(t){if(!t.hostname)return!1;let e=t.hostname;if(Efe(e))return!0;let r=process.env.no_proxy||process.env.NO_PROXY||"";if(!r)return!1;let n;t.port?n=Number(t.port):t.protocol==="http:"?n=80:t.protocol==="https:"&&(n=443);let s=[t.hostname.toUpperCase()];typeof n=="number"&&s.push(`${s[0]}:${n}`);for(let i of r.split(",").map(a=>a.trim().toUpperCase()).filter(a=>a))if(i==="*"||s.some(a=>a===i||a.endsWith(`.${i}`)||i.startsWith(".")&&a.endsWith(`${i}`)))return!0;return!1}o(gfe,"checkBypass");function Efe(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(Efe,"isLoopbackAddress");var ry=class extends URL{static{o(this,"DecodedURL")}constructor(e,r){supe
Line truncated
|
||||
Support boolean input list: \`true | True | TRUE | false | False | FALSE\``)}o(nu,"getBooleanInput");function Kh(t,e){if(process.env.GITHUB_OUTPUT||"")return ty("OUTPUT",zx(t,e));process.stdout.write(kv.EOL),ia("set-output",{name:t},sa(e))}o(Kh,"setOutput");function f4(t){process.exitCode=Pv.Failure,RA(t)}o(f4,"setFailed");function ba(){return process.env.RUNNER_DEBUG==="1"}o(ba,"isDebug");function B(t){ia("debug",{},t)}o(B,"debug");function RA(t,e={}){ia("error",Gx(e),t instanceof Error?t.toString():t)}o(RA,"error");function Ve(t,e={}){ia("warning",Gx(e),t instanceof Error?t.toString():t)}o(Ve,"warning");function S(t){process.stdout.write(t+kv.EOL)}o(S,"info");function WNe(t){Vx("group",t)}o(WNe,"startGroup");function jNe(){Vx("endgroup")}o(jNe,"endGroup");function tt(t,e){return YNe(this,void 0,void 0,function*(){WNe(t);let r;try{r=yield e()}finally{jNe()}return r})}o(tt,"group");function En(t,e){if(process.env.GITHUB_STATE||"")return ty("STATE",zx(t,e));ia("save-state",{name:t},sa(e))}o(En,"saveState");function h4(t){return process.env[`STATE_${t}`]||""}o(h4,"getState");var Hg=w(require("fs"),1),z1=w(require("os"),1),$1=w(require("path"),1);var g4=w(require("os"),1);function Xh(t){return t==null?"":typeof t=="string"||t instanceof String?t:JSON.stringify(t)}o(Xh,"toCommandValue");function E4(t,e,r){let n=new Dv(t,e,r);process.stdout.write(n.toString()+g4.EOL)}o(E4,"issueCommand");var m4="::",Dv=class{static{o(this,"Command")}constructor(e,r,n){e||(e="missing.command"),this.command=e,this.properties=r,this.message=n}toString(){let e=m4+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let r=!0;for(let n in this.properties)if(this.properties.hasOwnProperty(n)){let s=this.properties[n];s&&(r?r=!1:e+=",",e+=`${n}=${XNe(s)}`)}}return e+=`${m4}${KNe(this.message)}`,e}};function KNe(t){return Xh(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}o(KNe,"escapeData");function XNe(t){return Xh(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}o(XNe,"escapeProperty");var B4=w(require("os"),1);var C4=require("os"),Zh=require("fs");var Ov=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(a){a(i)})}return o(s,"adopt"),new(r||(r=Promise))(function(i,a){function c(d){try{u(n.next(d))}catch(A){a(A)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(A){a(A)}}o(l,"rejected");function u(d){d.done?i(d.value):s(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})},{access:ZNe,appendFile:exe,writeFile:txe}=Zh.promises,y4="GITHUB_STEP_SUMMARY";var Mv=class{static{o(this,"Summary")}constructor(){this._buffer=""}filePath(){return Ov(this,void 0,void 0,function*(){if(this._filePath)return this._filePath;let e=process.env[y4];if(!e)throw new Error(`Unable to find environment variable for $${y4}. Check if your runtime environment supports job summaries.`);try{yield ZNe(e,Zh.constants.R_OK|Zh.constants.W_OK)}catch{throw new Error(`Unable to access summary file: '${e}'. Check if the file has correct read/write permissions.`)}return this._filePath=e,this._filePath})}wrap(e,r,n={}){let s=Object.entries(n).map(([i,a])=>` ${i}="${a}"`).join("");return r?`<${e}${s}>${r}</${e}>`:`<${e}${s}>`}write(e){return Ov(this,void 0,void 0,function*(){let r=!!e?.overwrite,n=yield this.filePath();return yield(r?txe:exe)(n,this._buffer,{encoding:"utf8"}),this.emptyBuffer()})}clear(){return Ov(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(C4.EOL)}addCodeBlock(e,r){let n=Object.assign({},r&&{lang:r}),s=this.wrap("pre",this.wrap("code",e),n);return this.addRaw(s).addEOL()}addList(e,r=!1){let n=r?"ol":"ul",s=e.map(a=>this.wrap("li",a)).join(""),i=this.wrap(n,s);return this.addRaw(i).addEOL()}addTable(e){let r=e.map(s=>{let i=s.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(""),n=this.wrap("table",r);return this.addRaw(n).addEOL()}addDetails(e,r){let n=this.wrap("details",this.wrap("summary",e)+r);return this.addRaw(n).addEOL()}addImage(e,r,n){let{width:s,height:i}=n||{},a=Object.assign(Object.assign({},s&&{width:s}),i&&{height:i}),c=this.wrap("img",null,Object.assign({src:e,alt:r},a));return this.addRaw(c).addEOL()}addHeading(e,r){let n=`h${r}`,s=["h1","h2","h3","h4","h5","h6"].includes(n)?n:"h1",i=this.wrap(s,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 n=Object.assign({},r&&{cite:r}),s=this.wrap("blockquote",e,n);return this.addRaw(s).addEOL()}Line truncated
|
||||
`),e=e.replace(/\r/g,`
|
||||
`));let s=e.split(`
|
||||
`).map(i=>i.trim());for(let i of s)!i||i.startsWith("#")||n.patterns.push(new sm(i));return n.searchPaths.push(...p_(n.patterns)),n})}static stat(e,r,n){return y_(this,void 0,void 0,function*(){let s;if(r.followSymbolicLinks)try{s=yield QA.promises.stat(e.path)}catch(i){if(i.code==="ENOENT"){if(r.omitBrokenSymbolicLinks){Rs(`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 s=yield QA.promises.lstat(e.path);if(s.isDirectory()&&r.followSymbolicLinks){let i=yield QA.promises.realpath(e.path);for(;n.length>=e.level;)n.pop();if(n.some(a=>a===i)){Rs(`Symlink cycle detected for path '${e.path}' and realpath '${i}'`);return}n.push(i)}return s})}};var _Te=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(a){a(i)})}return o(s,"adopt"),new(r||(r=Promise))(function(i,a){function c(d){try{u(n.next(d))}catch(A){a(A)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(A){a(A)}}o(l,"rejected");function u(d){d.done?i(d.value):s(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})};function $8(t,e){return _Te(this,void 0,void 0,function*(){return yield mI.create(t,e)})}o($8,"create");var PI=w(require("crypto"),1),_A=w(require("fs"),1),su=w(require("path"),1),F6=w(M6(),1),U6=w(require("util"),1);var dm;(function(t){t.Gzip="cache.tgz",t.Zstd="cache.tzst"})(dm||(dm={}));var Xr;(function(t){t.Gzip="gzip",t.ZstdWithoutLong="zstd-without-long",t.Zstd="zstd"})(Xr||(Xr={}));var es;(function(t){t.GNU="gnu",t.BSD="bsd"})(es||(es={}));var TI=2,vI=5e3,U_=5e3,q_=`${process.env.PROGRAMFILES}\\Git\\usr\\bin\\tar.exe`,L6=`${process.env.SYSTEMDRIVE}\\Windows\\System32\\tar.exe`,Am="cache.tar",G_="manifest.txt",Got=10*Math.pow(1024,3),_I="cache read denied:";var vA=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(a){a(i)})}return o(s,"adopt"),new(r||(r=Promise))(function(i,a){function c(d){try{u(n.next(d))}catch(A){a(A)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(A){a(A)}}o(l,"rejected");function u(d){d.done?i(d.value):s(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})},FPe=function(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],r;return e?e.call(t):(t=typeof __values=="function"?__values(t):t[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(i){r[i]=t[i]&&function(a){return new Promise(function(c,l){a=t[i](a),s(c,l,a.done,a.value)})}}function s(i,a,c,l){Promise.resolve(l).then(function(u){i({value:u,done:c})},a)}},UPe="1.0";function pm(){return vA(this,void 0,void 0,function*(){let t=process.platform==="win32",e=process.env.RUNNER_TEMP||"";if(!e){let n;t?n=process.env.USERPROFILE||"C:\\":process.platform==="darwin"?n="/Users":n="/home",e=su.join(n,"actions","temp")}let r=su.join(e,PI.randomUUID());return yield Ca(r),r})}o(pm,"createTempDirectory");function eo(t){return _A.statSync(t).size}o(eo,"getArchiveFileSizeInBytes");function H_(t){return vA(this,void 0,void 0,function*(){var e,r,n,s,i;let a=[],c=(i=process.env.GITHUB_WORKSPACE)!==null&&i!==void 0?i:process.cwd(),l=yield $8(t.join(`
|
||||
`),{implicitDescendants:!1});try{for(var u=!0,d=FPe(l.globGenerator()),A;A=yield d.next(),e=A.done,!e;u=!0){s=A.value,u=!1;let f=su.relative(c,s).replace(new RegExp(`\\${su.sep}`,"g"),"/");B(`Matched: ${f}`),f===""?a.push("."):a.push(`${f}`)}}catch(p){r={error:p}}finally{try{!u&&!e&&(n=d.return)&&(yield n.call(d))}finally{if(r)throw r.error}}return a})}o(H_,"resolvePaths");function fm(t){return vA(this,void 0,void 0,function*(){return U6.promisify(_A.unlink)(t)})}o(fm,"unlinkFile");function q6(t){return vA(this,arguments,void 0,function*(e,r=[]){let n="";r.push("--version"),B(`Checking ${e} ${r.join(" ")}`);try{yield Xn(`${e}`,r,{ignoreReturnCode:!0,silent:!0,listeners:{stdout:o(s=>n+=s.toString(),"stdout"),stderr:o(s=>n+=s.toString(),"stderr")}})}catch(s){B(s.message)}return n=n.trim(),B(n),n})}o(q6,"getVersion");function hm(){return vA(this,void 0,void 0,function*(){let t=yield q6("zstd",["--quiet"]),e=F6.clean(t);return B(`zstd version: ${e}`),t===""?Xr.Gzip:Xr.ZstdWithoutLong})}o(hm,"getCompressionMethod");function vc(t){return t===Xr.Gzip?dm.Gzip:dm.Zstd}o(vc,"getCacheFileName");function G6(){return vA(this,void 0,void 0,function*(){return _A.existsSync(q_)?q_:(yield q6("tar")).toLowerCase().includes("gnu tar")?Br("tar"):""})}o(G6,"getGnuTarPathOnWindows");function V_(t,e){if(e===void 0)throw Error(`Expected ${t} but value was undefiend`);return e}o(V_,"assertDefined");function PA(t,e,r=!1){let n=t.slice();return e&&n.push(e),process.platform==="win32"&&!r&&n.push("windows-only"),n.push(UPe),PI.createHash("sha256").update(n.join("|")).digest("hex")}o(PA,"getCacheVersion");function H6(){let t=process.env.ACTIONS_RUNTIME_TOKEN;if(!t)throw new Error("Unable to get the ACTIONS_RUNTIME_TOKEN env variable");return t}o(H6,"getRuntimeToken");var gm=w(require("http"),1),J_=w(require("https"),1);function z_(t){let e=t.protocol==="https:";if(qPe(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 DI(r)}catch{if(!r.startsWith("http://")&&!r.startsWith("https://"))return new DI(`http://${r}`)}else return}o(z_,"getProxyUrl");function qPe(t){if(!t.hostname)return!1;let e=t.hostname;if(GPe(e))return!0;let r=process.env.no_proxy||process.env.NO_PROXY||"";if(!r)return!1;let n;t.port?n=Number(t.port):t.protocol==="http:"?n=80:t.protocol==="https:"&&(n=443);let s=[t.hostname.toUpperCase()];typeof n=="number"&&s.push(`${s[0]}:${n}`);for(let i of r.split(",").map(a=>a.trim().toUpperCase()).filter(a=>a))if(i==="*"||s.some(a=>a===i||a.endsWith(`.${i}`)||i.startsWith(".")&&a.endsWith(`${i}`)))return!0;return!1}o(qPe,"checkBypass");function GPe(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(GPe,"isLoopbackAddress");var DI=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 _c=w(kf(),1),V6=w(yA(),1);var Lt=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(a){a(i)})}return o(s,"adopt"),new(r||(r=Promise))(function(i,a){function c(d){try{u(n.next(d))}catch(A){a(A)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(A){a(A)}}o(l,"rejected");function u(d){d.done?i(d.value):s(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})},Nt;(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"})(Nt||(Nt={}));var Zr;(function(t){t.Accept="accept",t.ContentType="content-type"})(Zr||(Zr={}));var Sa;(function(t){t.ApplicationJson="application/json"})(Sa||(Sa={}));var VPe=[Nt.MovedPermanently,Nt.ResourceMoved,Nt.SeeOther,Nt.TemporaryRedirect,Nt.PermanentRedirect],zPe=[Nt.BadGateway,Nt.ServiceUnavailable,Nt.GatewayTimeout],$Pe=["OPTIONS","GET","DELETE","HEAD"],JPe=10,YPe=5,to=class t extends Error{static{o(this,"HttpClientError")}constructor(e,r)
Line truncated
|
||||
${nke.sanitize({...this,request:{...this.request,agent:n},response:this.response})}`,"value"),enumerable:!1}),Object.setPrototypeOf(this,t.prototype)}};function qI(t){return t instanceof en?!0:ou(t)&&t.name==="RestError"}o(qI,"isRestError");function yn(t,e){return Buffer.from(t,e)}o(yn,"stringToUint8Array");var GI=w(require("node:http"),1),HI=w(require("node:https"),1),nP=w(require("node:zlib"),1),cK=require("node:stream");var _s=Em("ts-http-runtime");var ske={};function ym(t){return t&&typeof t.pipe=="function"}o(ym,"isReadableStream");function aK(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(aK,"isStreamComplete");function lK(t){return t&&typeof t.byteLength=="number"}o(lK,"isArrayBuffer");var VI=class extends cK.Transform{static{o(this,"ReportTransform")}loadedBytes=0;progressCallback;_transform(e,r,n){this.push(e),this.loadedBytes+=e.length;try{this.progressCallback({loadedBytes:this.loadedBytes}),n()}catch(s){n(s)}}constructor(e){super(),this.progressCallback=e}},sP=class{static{o(this,"NodeHttpClient")}cachedHttpAgent;cachedHttpsAgents=new WeakMap;async sendRequest(e){let r=new AbortController,n;if(e.abortSignal){if(e.abortSignal.aborted)throw new ro("The operation was aborted. Request has already been canceled.");n=o(u=>{u.type==="abort"&&r.abort()},"abortListener"),e.abortSignal.addEventListener("abort",n)}let s;e.timeout>0&&(s=setTimeout(()=>{let u=new Ci;_s.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=cke(c);u!==null&&e.headers.set("Content-Length",u)}let l;try{if(c&&e.onUploadProgress){let h=e.onUploadProgress,g=new VI(h);g.on("error",y=>{_s.error("Error in upload progress",y)}),ym(c)?c.pipe(g):g.end(c),c=g}let u=await this.makeRequest(e,r,c);s!==void 0&&clearTimeout(s);let d=ike(u),p={status:u.statusCode??0,headers:d,request:e};if(e.method==="HEAD")return u.resume(),p;l=a?oke(u,d):u;let f=e.onDownloadProgress;if(f){let h=new VI(f);h.on("error",g=>{_s.error("Error in download progress",g)}),l.pipe(h),l=h}return e.streamResponseStatusCodes?.has(Number.POSITIVE_INFINITY)||e.streamResponseStatusCodes?.has(p.status)?p.readableStreamBody=l:p.bodyAsText=await ake(l),p}finally{if(e.abortSignal&&n){let u=Promise.resolve();ym(c)&&(u=aK(c));let d=Promise.resolve();ym(l)&&(d=aK(l)),Promise.all([u,d]).then(()=>{n&&e.abortSignal?.removeEventListener("abort",n)}).catch(A=>{_s.warning("Error when cleaning up abortListener on httpRequest",A)})}}}makeRequest(e,r,n){let s=new URL(e.url),i=s.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:s.hostname,path:`${s.pathname}${s.search}`,port:s.port,method:e.method,headers:e.headers.toJSON({preserveCase:!0}),...e.requestOverrides};return new Promise((l,u)=>{let d=i?GI.default.request(c,l):HI.default.request(c,l);d.once("error",A=>{u(new en(A.message,{code:A.code??en.REQUEST_SEND_ERROR,request:e}))}),r.signal.addEventListener("abort",()=>{let A=new ro("The operation was aborted. Rejecting from abort signal callback while making request.");d.destroy(A),u(A)}),n&&ym(n)?n.pipe(d):n?typeof n=="string"||Buffer.isBuffer(n)?d.end(n):lK(n)?d.end(ArrayBuffer.isView(n)?Buffer.from(n.buffer):Buffer.from(n)):(_s.error("Unrecognized body type",n),u(new en("Unrecognized body type"))):d.end()})}getOrCreateAgent(e,r){let n=e.disableKeepAlive;if(r)return n?GI.default.globalAgent:(this.cachedHttpAgent||(this.cachedHttpAgent=new GI.default.Agent({keepAlive:!0})),this.cachedHttpAgent);{if(n&&!e.tlsSettings)return HI.default.globalAgent;let s=e.tlsSettings??ske,i=this.cachedHttpsAgents.get(s);return i&&i.options.keepAlive===!n||(_s.info("No cached TLS Agent exist, creating a new Agent"),i=new HI.default.Agent({keepAlive:!n,...s}),this.cachedHttpsAgents.set(s,i)),i}}};function ike(t){let e=ts();for(let r of Object.keys(t.headers)){let n=t.headers[r];Array.isArray(n)?n.length>0&&e.set(r,n[0]):n&&e.set(r,n)}return e}o(ike,"getResponseHeaders");function oke(t,e){let r=e.get("Content-Encoding");if(r==="gzip"){let n=nP.default.createGunzip();return t.pipe(n),n}else if(r==="deflate"){let n=nP.default.createInflate();return t.pipe(n),n}return t}o(oke,"getDecodedResponseStream");function ake(t){return new Promise((e,r)=>{let n=[];t.on("data",s=>{Buffer.isBuffer(s)?n.push(s):n.push(Buffer.from(s))}),t.on("end",()=>{e(Buffer.concat(n).toString("utf8"))}),t.on("error",s=>{s&&s?.name==="AbortError"?r(s):r(new en(`Error reading response as text: ${s.message}`,{code:en.PARSE_ERROR}))})})}o(ake,"streamToText");function cke(t){return t?Buffer.isBuffer(t)?t.length:ym(t)?nul
Line truncated
|
||||
`;return e}o(FDe,"encodeHeaders");function UDe(t){return t instanceof Uint8Array?t.byteLength:fB(t)?t.size===-1?void 0:t.size:void 0}o(UDe,"getLength");function qDe(t){let e=0;for(let r of t){let n=UDe(r);if(n===void 0)return;e+=n}return e}o(qDe,"getTotalLength");async function GDe(t,e,r){let n=[yn(`--${r}`,"utf-8"),...e.flatMap(i=>[yn(`\r
|
||||
`,"utf-8"),yn(FDe(i.headers),"utf-8"),yn(`\r
|
||||
`,"utf-8"),i.body,yn(`\r
|
||||
--${r}`,"utf-8")]),yn(`--\r
|
||||
`).map(i=>i.trim());for(let i of s)!i||i.startsWith("#")||n.patterns.push(new fm(i));return n.searchPaths.push(...g_(n.patterns)),n})}static stat(e,r,n){return N_(this,void 0,void 0,function*(){let s;if(r.followSymbolicLinks)try{s=yield DA.promises.stat(e.path)}catch(i){if(i.code==="ENOENT"){if(r.omitBrokenSymbolicLinks){xs(`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 s=yield DA.promises.lstat(e.path);if(s.isDirectory()&&r.followSymbolicLinks){let i=yield DA.promises.realpath(e.path);for(;n.length>=e.level;)n.pop();if(n.some(a=>a===i)){xs(`Symlink cycle detected for path '${e.path}' and realpath '${i}'`);return}n.push(i)}return s})}};var Rve=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(a){a(i)})}return o(s,"adopt"),new(r||(r=Promise))(function(i,a){function c(d){try{u(n.next(d))}catch(A){a(A)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(A){a(A)}}o(l,"rejected");function u(d){d.done?i(d.value):s(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})};function K8(t,e){return Rve(this,void 0,void 0,function*(){return yield yI.create(t,e)})}o(K8,"create");var OI=w(require("crypto"),1),FA=w(require("fs"),1),cu=w(require("path"),1),V6=w(G6(),1),z6=w(require("util"),1);var Im;(function(t){t.Gzip="cache.tgz",t.Zstd="cache.tzst"})(Im||(Im={}));var Zr;(function(t){t.Gzip="gzip",t.ZstdWithoutLong="zstd-without-long",t.Zstd="zstd"})(Zr||(Zr={}));var es;(function(t){t.GNU="gnu",t.BSD="bsd"})(es||(es={}));var PI=2,kI=5e3,J_=5e3,Y_=`${process.env.PROGRAMFILES}\\Git\\usr\\bin\\tar.exe`,H6=`${process.env.SYSTEMDRIVE}\\Windows\\System32\\tar.exe`,Bm="cache.tar",W_="manifest.txt",mct=10*Math.pow(1024,3),DI="cache read denied:";var LA=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(a){a(i)})}return o(s,"adopt"),new(r||(r=Promise))(function(i,a){function c(d){try{u(n.next(d))}catch(A){a(A)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(A){a(A)}}o(l,"rejected");function u(d){d.done?i(d.value):s(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})},Lke=function(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],r;return e?e.call(t):(t=typeof __values=="function"?__values(t):t[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(i){r[i]=t[i]&&function(a){return new Promise(function(c,l){a=t[i](a),s(c,l,a.done,a.value)})}}function s(i,a,c,l){Promise.resolve(l).then(function(u){i({value:u,done:c})},a)}},Fke="1.0";function lu(){return LA(this,void 0,void 0,function*(){let t=process.platform==="win32",e=process.env.RUNNER_TEMP||"";if(!e){let n;t?n=process.env.USERPROFILE||"C:\\":process.platform==="darwin"?n="/Users":n="/home",e=cu.join(n,"actions","temp")}let r=cu.join(e,OI.randomUUID());return yield Ba(r),r})}o(lu,"createTempDirectory");function eo(t){return FA.statSync(t).size}o(eo,"getArchiveFileSizeInBytes");function j_(t){return LA(this,void 0,void 0,function*(){var e,r,n,s,i;let a=[],c=(i=process.env.GITHUB_WORKSPACE)!==null&&i!==void 0?i:process.cwd(),l=yield K8(t.join(`
|
||||
`),{implicitDescendants:!1});try{for(var u=!0,d=Lke(l.globGenerator()),A;A=yield d.next(),e=A.done,!e;u=!0){s=A.value,u=!1;let f=cu.relative(c,s).replace(new RegExp(`\\${cu.sep}`,"g"),"/");B(`Matched: ${f}`),f===""?a.push("."):a.push(`${f}`)}}catch(p){r={error:p}}finally{try{!u&&!e&&(n=d.return)&&(yield n.call(d))}finally{if(r)throw r.error}}return a})}o(j_,"resolvePaths");function bm(t){return LA(this,void 0,void 0,function*(){return z6.promisify(FA.unlink)(t)})}o(bm,"unlinkFile");function $6(t){return LA(this,arguments,void 0,function*(e,r=[]){let n="";r.push("--version"),B(`Checking ${e} ${r.join(" ")}`);try{yield Zn(`${e}`,r,{ignoreReturnCode:!0,silent:!0,listeners:{stdout:o(s=>n+=s.toString(),"stdout"),stderr:o(s=>n+=s.toString(),"stderr")}})}catch(s){B(s.message)}return n=n.trim(),B(n),n})}o($6,"getVersion");function wm(){return LA(this,void 0,void 0,function*(){let t=yield $6("zstd",["--quiet"]),e=V6.clean(t);return B(`zstd version: ${e}`),t===""?Zr.Gzip:Zr.ZstdWithoutLong})}o(wm,"getCompressionMethod");function Pc(t){return t===Zr.Gzip?Im.Gzip:Im.Zstd}o(Pc,"getCacheFileName");function J6(){return LA(this,void 0,void 0,function*(){return FA.existsSync(Y_)?Y_:(yield $6("tar")).toLowerCase().includes("gnu tar")?Br("tar"):""})}o(J6,"getGnuTarPathOnWindows");function K_(t,e){if(e===void 0)throw Error(`Expected ${t} but value was undefiend`);return e}o(K_,"assertDefined");function UA(t,e,r=!1){let n=t.slice();return e&&n.push(e),process.platform==="win32"&&!r&&n.push("windows-only"),n.push(Fke),OI.createHash("sha256").update(n.join("|")).digest("hex")}o(UA,"getCacheVersion");function Y6(){let t=process.env.ACTIONS_RUNTIME_TOKEN;if(!t)throw new Error("Unable to get the ACTIONS_RUNTIME_TOKEN env variable");return t}o(Y6,"getRuntimeToken");var Nm=w(require("http"),1),eP=w(require("https"),1);function X_(t){let e=t.protocol==="https:";if(Uke(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 LI(r)}catch{if(!r.startsWith("http://")&&!r.startsWith("https://"))return new LI(`http://${r}`)}else return}o(X_,"getProxyUrl");function Uke(t){if(!t.hostname)return!1;let e=t.hostname;if(qke(e))return!0;let r=process.env.no_proxy||process.env.NO_PROXY||"";if(!r)return!1;let n;t.port?n=Number(t.port):t.protocol==="http:"?n=80:t.protocol==="https:"&&(n=443);let s=[t.hostname.toUpperCase()];typeof n=="number"&&s.push(`${s[0]}:${n}`);for(let i of r.split(",").map(a=>a.trim().toUpperCase()).filter(a=>a))if(i==="*"||s.some(a=>a===i||a.endsWith(`.${i}`)||i.startsWith(".")&&a.endsWith(`${i}`)))return!0;return!1}o(Uke,"checkBypass");function qke(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(qke,"isLoopbackAddress");var LI=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 kc=w(Hf(),1),W6=w(SA(),1);var Ot=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(a){a(i)})}return o(s,"adopt"),new(r||(r=Promise))(function(i,a){function c(d){try{u(n.next(d))}catch(A){a(A)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(A){a(A)}}o(l,"rejected");function u(d){d.done?i(d.value):s(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})},wt;(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"})(wt||(wt={}));var en;(function(t){t.Accept="accept",t.ContentType="content-type"})(en||(en={}));var xa;(function(t){t.ApplicationJson="application/json"})(xa||(xa={}));var Hke=[wt.MovedPermanently,wt.ResourceMoved,wt.SeeOther,wt.TemporaryRedirect,wt.PermanentRedirect],Vke=[wt.BadGateway,wt.ServiceUnavailable,wt.GatewayTimeout],zke=["OPTIONS","GET","DELETE","HEAD"],$ke=10,Jke=5,to=class t extends Error{static{o(this,"HttpClientError")}constructor(e,r)
Line truncated
|
||||
${rDe.sanitize({...this,request:{...this.request,agent:n},response:this.response})}`,"value"),enumerable:!1}),Object.setPrototypeOf(this,t.prototype)}};function VI(t){return t instanceof tn?!0:du(t)&&t.name==="RestError"}o(VI,"isRestError");function Cn(t,e){return Buffer.from(t,e)}o(Cn,"stringToUint8Array");var zI=w(require("node:http"),1),$I=w(require("node:https"),1),uP=w(require("node:zlib"),1),pK=require("node:stream");var vs=xm("ts-http-runtime");var nDe={};function Qm(t){return t&&typeof t.pipe=="function"}o(Qm,"isReadableStream");function AK(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(AK,"isStreamComplete");function fK(t){return t&&typeof t.byteLength=="number"}o(fK,"isArrayBuffer");var JI=class extends pK.Transform{static{o(this,"ReportTransform")}loadedBytes=0;progressCallback;_transform(e,r,n){this.push(e),this.loadedBytes+=e.length;try{this.progressCallback({loadedBytes:this.loadedBytes}),n()}catch(s){n(s)}}constructor(e){super(),this.progressCallback=e}},dP=class{static{o(this,"NodeHttpClient")}cachedHttpAgent;cachedHttpsAgents=new WeakMap;async sendRequest(e){let r=new AbortController,n;if(e.abortSignal){if(e.abortSignal.aborted)throw new ro("The operation was aborted. Request has already been canceled.");n=o(u=>{u.type==="abort"&&r.abort()},"abortListener"),e.abortSignal.addEventListener("abort",n)}let s;e.timeout>0&&(s=setTimeout(()=>{let u=new Ii;vs.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=aDe(c);u!==null&&e.headers.set("Content-Length",u)}let l;try{if(c&&e.onUploadProgress){let h=e.onUploadProgress,m=new JI(h);m.on("error",y=>{vs.error("Error in upload progress",y)}),Qm(c)?c.pipe(m):m.end(c),c=m}let u=await this.makeRequest(e,r,c);s!==void 0&&clearTimeout(s);let d=sDe(u),p={status:u.statusCode??0,headers:d,request:e};if(e.method==="HEAD")return u.resume(),p;l=a?iDe(u,d):u;let f=e.onDownloadProgress;if(f){let h=new JI(f);h.on("error",m=>{vs.error("Error in download progress",m)}),l.pipe(h),l=h}return e.streamResponseStatusCodes?.has(Number.POSITIVE_INFINITY)||e.streamResponseStatusCodes?.has(p.status)?p.readableStreamBody=l:p.bodyAsText=await oDe(l),p}finally{if(e.abortSignal&&n){let u=Promise.resolve();Qm(c)&&(u=AK(c));let d=Promise.resolve();Qm(l)&&(d=AK(l)),Promise.all([u,d]).then(()=>{n&&e.abortSignal?.removeEventListener("abort",n)}).catch(A=>{vs.warning("Error when cleaning up abortListener on httpRequest",A)})}}}makeRequest(e,r,n){let s=new URL(e.url),i=s.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:s.hostname,path:`${s.pathname}${s.search}`,port:s.port,method:e.method,headers:e.headers.toJSON({preserveCase:!0}),...e.requestOverrides};return new Promise((l,u)=>{let d=i?zI.default.request(c,l):$I.default.request(c,l);d.once("error",A=>{u(new tn(A.message,{code:A.code??tn.REQUEST_SEND_ERROR,request:e}))}),r.signal.addEventListener("abort",()=>{let A=new ro("The operation was aborted. Rejecting from abort signal callback while making request.");d.destroy(A),u(A)}),n&&Qm(n)?n.pipe(d):n?typeof n=="string"||Buffer.isBuffer(n)?d.end(n):fK(n)?d.end(ArrayBuffer.isView(n)?Buffer.from(n.buffer):Buffer.from(n)):(vs.error("Unrecognized body type",n),u(new tn("Unrecognized body type"))):d.end()})}getOrCreateAgent(e,r){let n=e.disableKeepAlive;if(r)return n?zI.default.globalAgent:(this.cachedHttpAgent||(this.cachedHttpAgent=new zI.default.Agent({keepAlive:!0})),this.cachedHttpAgent);{if(n&&!e.tlsSettings)return $I.default.globalAgent;let s=e.tlsSettings??nDe,i=this.cachedHttpsAgents.get(s);return i&&i.options.keepAlive===!n||(vs.info("No cached TLS Agent exist, creating a new Agent"),i=new $I.default.Agent({keepAlive:!n,...s}),this.cachedHttpsAgents.set(s,i)),i}}};function sDe(t){let e=ts();for(let r of Object.keys(t.headers)){let n=t.headers[r];Array.isArray(n)?n.length>0&&e.set(r,n[0]):n&&e.set(r,n)}return e}o(sDe,"getResponseHeaders");function iDe(t,e){let r=e.get("Content-Encoding");if(r==="gzip"){let n=uP.default.createGunzip();return t.pipe(n),n}else if(r==="deflate"){let n=uP.default.createInflate();return t.pipe(n),n}return t}o(iDe,"getDecodedResponseStream");function oDe(t){return new Promise((e,r)=>{let n=[];t.on("data",s=>{Buffer.isBuffer(s)?n.push(s):n.push(Buffer.from(s))}),t.on("end",()=>{e(Buffer.concat(n).toString("utf8"))}),t.on("error",s=>{s&&s?.name==="AbortError"?r(s):r(new tn(`Error reading response as text: ${s.message}`,{code:tn.PARSE_ERROR}))})})}o(oDe,"streamToText");function aDe(t){return t?Buffer.isBuffer(t)?t.length:Qm(t)?nul
Line truncated
|
||||
`;return e}o(LOe,"encodeHeaders");function FOe(t){return t instanceof Uint8Array?t.byteLength:gB(t)?t.size===-1?void 0:t.size:void 0}o(FOe,"getLength");function UOe(t){let e=0;for(let r of t){let n=FOe(r);if(n===void 0)return;e+=n}return e}o(UOe,"getTotalLength");async function qOe(t,e,r){let n=[Cn(`--${r}`,"utf-8"),...e.flatMap(i=>[Cn(`\r
|
||||
`,"utf-8"),Cn(LOe(i.headers),"utf-8"),Cn(`\r
|
||||
`,"utf-8"),i.body,Cn(`\r
|
||||
--${r}`,"utf-8")]),Cn(`--\r
|
||||
\r
|
||||
`,"utf-8")],s=qDe(n);s&&t.headers.set("Content-Length",s),t.body=await pX(n)}o(GDe,"buildRequestBody");var Bm="multipartPolicy",HDe=70,VDe=new Set("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'()+,-./:=?");function zDe(t){if(t.length>HDe)throw new Error(`Multipart boundary "${t}" exceeds maximum length of 70 characters`);if(Array.from(t).some(e=>!VDe.has(e)))throw new Error(`Multipart boundary "${t}" contains invalid characters`)}o(zDe,"assertValidBoundary");function mB(){return{name:Bm,async sendRequest(t,e){if(!t.multipartBody)return e(t);if(t.body)throw new Error("multipartBody and regular body cannot be set at the same time");let r=t.multipartBody.boundary,n=t.headers.get("Content-Type")??"multipart/mixed",s=n.match(/^(multipart\/[^ ;]+)(?:; *boundary=(.+))?$/);if(!s)throw new Error(`Got multipart request body, but content-type header was not multipart: ${n}`);let[,i,a]=s;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?zDe(r):r=LDe(),t.headers.set("Content-Type",`${i}; boundary=${r}`),await GDe(t,t.multipartBody.parts,r),t.multipartBody=void 0,e(t)}}}o(mB,"multipartPolicy");function gB(){return UI()}o(gB,"createEmptyPipeline");var fX=MI({logLevelEnvVarName:"AZURE_LOG_LEVEL",namespace:"azure"}),Udt=fX.logger;function io(t){return fX.createClientLogger(t)}o(io,"createClientLogger");var oo=io("core-rest-pipeline");function bP(t={}){return $I({logger:oo.info,...t})}o(bP,"logPolicy");var wP=JI;function SP(t={}){return YI(t)}o(SP,"redirectPolicy");var EB=w(require("node:os"),1),yB=w(require("node:process"),1);function hX(){return"User-Agent"}o(hX,"getHeaderName");async function mX(t){if(yB.default&&yB.default.versions){let e=`${EB.default.type()} ${EB.default.release()}; ${EB.default.arch()}`,r=yB.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(mX,"setPlatformSpecificData");var CB="1.22.2";function ZDe(t){let e=[];for(let[r,n]of t){let s=n?`${r}/${n}`:r;e.push(s)}return e.join(" ")}o(ZDe,"getUserAgentString");function gX(){return hX()}o(gX,"getUserAgentHeaderName");async function IB(t){let e=new Map;e.set("core-rest-pipeline",CB),await mX(e);let r=ZDe(e);return t?`${t} ${r}`:r}o(IB,"getUserAgentValue");var EX=gX(),yX="userAgentPolicy";function NP(t={}){let e=IB(t.userAgentPrefix);return{name:yX,async sendRequest(r,n){return r.headers.has(EX)||r.headers.set(EX,await e),n(r)}}}o(NP,"userAgentPolicy");var is=class extends Error{static{o(this,"AbortError")}constructor(e){super(e),this.name="AbortError"}};function xP(t,e){let{cleanupBeforeAbort:r,abortSignal:n,abortErrorMsg:s}=e??{};return new Promise((i,a)=>{function c(){a(new is(s??"The operation was aborted."))}o(c,"rejectOnAbort");function l(){n?.removeEventListener("abort",u)}o(l,"removeListeners");function u(){r?.(),l(),c()}if(o(u,"onAbort"),n?.aborted)return c();try{t(d=>{l(),i(d)},d=>{l(),a(d)})}catch(d){a(d)}n?.addEventListener("abort",u)})}o(xP,"createAbortablePromise");var sOe="The delay was aborted.";function bm(t,e){let r,{abortSignal:n,abortErrorMsg:s}=e??{};return xP(i=>{r=setTimeout(i,t)},{cleanupBeforeAbort:o(()=>clearTimeout(r),"cleanupBeforeAbort"),abortSignal:n,abortErrorMsg:s??sOe})}o(bm,"delay");function kc(t){if(ou(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(kc,"getErrorMessage");function CX(t){return ou(t)}o(CX,"isError");function GA(){return iu()}o(GA,"randomUUID");var Fe=lu;var IX=Symbol("rawContent");function RP(t){return typeof t[IX]=="function"}o(RP,"hasRawContent");function BX(t){return RP(t)?t[IX]():t}o(BX,"getRawContent");var BB=Bm;function TP(){let t=mB();return{name:BB,sendRequest:o(async(e,r)=>{if(e.multipartBody)for(let n of e.multipartBody.parts)RP(n.body)&&(n.body=BX(n.body));return t.sendRequest(e,r)},"sendRequest")}}o(TP,"multipartPolicy");var vP=WI;function _P(){return jI()}o(_P,"decompressResponsePolicy");function PP(t={}){return ZI(t)}o(PP,"defaultRetryPolicy");function kP(){return eB()}o(kP,"formDataPolicy");function Dc(t){return EP(t)}o(Dc,"getDefaultProxySettings");function DP(t,e){return dB(t,e)}o(DP,"proxyPolicy");var bX="setClientRequestIdPolicy";function OP(t="x-ms-client-request-id"){return{name:bX,async sendRequest(e,r){return e.headers.has(t)||e.headers.set(t,e.requestId),r(e)}}}o(OP,"setClientRequestIdPolicy");function MP(t){return AB(t)}o(MP,"agentPolicy");function LP(t){return pB(t)}o(LP,"tlsPolicy");var HA={span:Symbol.for("@azure/core-tracing span"),namespace:Symbol.for("@azure/core-tracing namespace")};function wX(t={}){let e=new FP(t.parentContext);return t.span&&(e=e.setValue(HA.span,t.span)),t.namespace&&(e=e.setValue(HA.namespace,t.namespace)),e}o(wX,"createTracingContext");var FP=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--),!QMe(l)){let A;return l.trim().length===0?A="Invalid space after '<'.":A="Tag '"+l+"' is an invalid name.",Ft("InvalidTag",A,tn(t,i))}let u=bMe(t,i);if(u===!1)return Ft("InvalidAttr","Attributes for '"+l+"' have open quote.",tn(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=aZ(d,e);if(p===!0)n=!0;else return Ft(p.err.code,p.err.msg,tn(t,A+p.err.line))}else if(c)if(u.tagClosed){if(d.trim().length>0)return Ft("InvalidTag","Closing tag '"+l+"' can't have attributes or invalid starting.",tn(t,a));if(r.length===0)return Ft("InvalidTag","Closing tag '"+l+"' has not been opened.",tn(t,a));{let A=r.pop();if(l!==A.tagName){let p=tn(t,A.tagStartPos);return Ft("InvalidTag","Expected closing tag '"+A.tagName+"' (opened in line "+p.line+", col "+p.col+") instead of closing tag '"+l+"'.",tn(t,a))}r.length==0&&(s=!0)}}else return Ft("InvalidTag","Closing tag '"+l+"' doesn't have proper closing.",tn(t,i));else{let A=aZ(d,e);if(A!==!0)return Ft(A.err.code,A.err.msg,tn(t,i-d.length+A.err.line));if(s===!0)return Ft("InvalidXml","Multiple possible root nodes found.",tn(t,i));e.unpairedTags.indexOf(l)!==-1||r.push({tagName:l,tagStartPos:a}),n=!0}for(i++;i<t.length;i++)if(t[i]==="<")if(t[i+1]==="!"){i++,i=oZ(t,i);continue}else if(t[i+1]==="?"){if(i=iZ(t,++i),i.err)return i}else break;else if(t[i]==="&"){let A=NMe(t,i);if(A==-1)return Ft("InvalidChar","char '&' is not expected.",tn(t,i));i=A}else if(s===!0&&!sZ(t[i]))return Ft("InvalidXml","Extra text at the end",tn(t,i));t[i]==="<"&&i--}}else{if(sZ(t[i]))continue;return Ft("InvalidChar","char '"+t[i]+"' is not expected.",tn(t,i))}if(n){if(r.length==1)return Ft("InvalidTag","Unclosed tag '"+r[0].tagName+"'.",tn(t,r[0].tagStartPos));if(r.length>0)return Ft("InvalidXml","Invalid '"+JSON.stringify(r.map(i=>i.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}else return Ft("InvalidXml","Start tag expected.",1);return!0}o(DB,"validate");function sZ(t){return t===" "||t===" "||t===`
|
||||
`||t==="\r"}o(sZ,"isWhiteSpace");function iZ(t,e){let r=e;for(;e<t.length;e++)if(t[e]=="?"||t[e]==" "){let n=t.substr(r,e-r);if(e>5&&n==="xml")return Ft("InvalidXml","XML declaration allowed only at the start of the document.",tn(t,e));if(t[e]=="?"&&t[e+1]==">"){e++;break}else continue}return e}o(iZ,"readPI");function oZ(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(oZ,"readCommentAndCDATA");var IMe='"',BMe="'";function bMe(t,e){let r="",n="",s=!1;for(;e<t.length;e++){if(t[e]===IMe||t[e]===BMe)n===""?n=t[e]:n!==t[e]||(n="");else if(t[e]===">"&&n===""){s=!0;break}r+=t[e]}return n!==""?!1:{value:r,index:e,tagClosed:s}}o(bMe,"readAttributeStr");var wMe=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function aZ(t,e){let r=PB(t,wMe),n={};for(let s=0;s<r.length;s++){if(r[s][1].length===0)return Ft("InvalidAttr","Attribute '"+r[s][2]+"' has no space in starting.",Dm(r[s]));if(r[s][3]!==void 0&&r[s][4]===void 0)return Ft("InvalidAttr","Attribute '"+r[s][2]+"' is without value.",Dm(r[s]));if(r[s][3]===void 0&&!e.allowBooleanAttributes)return Ft("InvalidAttr","boolean attribute '"+r[s][2]+"' is not allowed.",Dm(r[s]));let i=r[s][2];if(!xMe(i))return Ft("InvalidAttr","Attribute '"+i+"' is an invalid name.",Dm(r[s]));if(!Object.prototype.hasOwnProperty.call(n,i))n[i]=1;else return Ft("InvalidAttr","Attribute '"+i+"' is repeated.",Dm(r[s]))}return!0}o(aZ,"validateAttributeString");function SMe(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(SMe,"validateNumberAmpersand");function NMe(t,e){if(e++,t[e]===";")return-1;if(t[e]==="#")return e++,SMe(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(NMe,"validateAmpersand");function Ft(t,e,r){return{err:{code:t,msg:e,line:r.line||r,col:r.col}}}o(Ft,"getErrorObject");function xMe(t){return nk(t)}o(xMe,"validateAttrName");function QMe(t){return nk(t)}o(QMe,"validateTagName");function tn(t,e){let r=t.substring(0,e).split(/\r?\n/);return{line:r.length,col:r[r.length-1].length+1}}o(tn,"getLineNumberForPosition");function Dm(t){return t.startIndex+t[1].length}o(Dm,"getPositionFromMatch");var cZ={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"},lZ={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"},uZ={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 bn("!xml"),r=e,n="";this.matcher.reset(),this.entityDecoder.reset(),this.entityExpansionCount=0,this.currentExpandedLength=0;let s=this.options,i=new Lm(s.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=YA(t,">",c,"Closing Tag is not closed."),A=t.substring(c+2,d).trim();if(s.removeNSPrefix){let f=A.indexOf(":");f!==-1&&(A=A.substr(f+1))}A=dk(s.transformTagName,A,"",s).tagName,r&&(n=this.saveTextToParentTag(n,r,this.readonlyMatcher));let p=this.matcher.getCurrentTag();if(A&&s.unpairedTagsSet.has(A))throw new Error(`Unpaired tag can not be used as closing tag: </${A}>`);p&&s.unpairedTagsSet.has(p)&&(this.matcher.pop(),this.tagsNodeStack.pop()),this.matcher.pop(),this.isCurrentNodeStopNode=!1,r=this.tagsNodeStack.pop(),n="",c=d}else if(u===63){let d=Ak(t,c,!1,"?>");if(!d)throw new Error("Pi Tag is not closed.");n=this.saveTextToParentTag(n,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(!(s.ignoreDeclaration&&d.tagName==="?xml"||s.ignorePiTags)){let p=new bn(d.tagName);p.add(s.textNodeName,""),d.tagName!==d.tagExp&&d.attrExpPresent&&s.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=YA(t,"-->",c+4,"Comment is not closed.");if(s.commentPropName){let A=t.substring(c+4,d-2);n=this.saveTextToParentTag(n,r,this.readonlyMatcher),r.add(s.commentPropName,[{[s.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=YA(t,"]]>",c,"CDATA is not closed.")-2,A=t.substring(c+9,d);n=this.saveTextToParentTag(n,r,this.readonlyMatcher);let p=this.parseTextData(A,r.tagname,this.readonlyMatcher,!0,!1,!0,!0);p==null&&(p=""),s.cdataPropName?r.add(s.cdataPropName,[{[s.textNodeName]:A}]):r.add(s.textNodeName,p),c=d+2}else{let d=Ak(t,c,s.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,h=d.attrExpPresent,g=d.closeIndex;if({tagName:A,tagExp:f}=dk(s.transformTagName,A,f,s),s.strictReservedNames&&(A===s.commentPropName||A===s.cdataPropName||A===s.textNodeName||A===s.attributesGroupName))throw new Error(`Invalid tag name: ${A}`);r&&n&&r.tagname!=="!xml"&&(n=this.saveTextToParentTag(n,r,this.readonlyMatcher,!1));let y=r;y&&s.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),h=A!==f);let C=null,I={},b;b=KMe(p),A!==e.tagname&&this.matcher.push(A,{},b),A!==f&&h&&(C=this.buildAttributesMap(f,this.matcher,A),C&&(I=jMe(C,s))),A!==e.tagname&&(this.isCurrentNodeStopNode=this.isItStopNode());let N=c;if(this.isCurrentNodeStopNode){let Q="";if(E)c=d.closeIndex;else if(s.unpairedTagsSet.has(A))c=d.closeIndex;else{let ce=this.readStopNodeData(t,p,g+1);if(!ce)throw new Error(`Unexpected end of ${p}`);c=ce.i,Q=ce.tagContent}let D=new bn(A);C&&(D[":@"]=C),D.add(s.textNodeName,Q),this.matcher.pop(),this.isCurrentNodeStopNode=!1,this.addChild(r,D,this.readonlyMatcher,N)}else{if(E){({tagName:A,tagExp:f}=dk(s.transformTagName,A,f,s));let Q=new bn(A);C&&(Q[":@"]=C),this.addChild(r,Q,this.readonlyMatcher,N),this.matcher.pop(),this.isCurrentNodeStopNode=!1}else if(s.unpairedTagsSet.has(A)){let Q=new bn(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 bn(A);if(this.tagsNodeStack.length>s.maxNestedTags)throw new Error("Maximum nested tags exceeded");this.tagsNodeStack.push(r),C&&(Q[":@"]=C),this.addChild(r,Q,this.readonlyMatcher,N),r=Q}n="",c=g}}}else n+=t[c];return e.child},"parseXml");function nLe(t,e,r,n){this.options.captureMetaData||(n=void 0);let s=this.options.jPath?r.toString():r,i=this.options.updateTag(e.tagname,s,e[":@"]);i===!1||(typeof i=="string"&&(e.tagname=i),t.addChild(e,n))}o(nLe,"addChild");function sLe(t,e,r){let n=this.options.processEntities;if(!n||!n.enabled)return t;if(n.allowedTags){let s=this.options.jPath?r.toString():r;if(!(Array.isArray(n.allowedTags)?n.allowedTags.includes(e):n.allowedTags(e,s)))return t}if(n.tagFilter){let s=this.options.jPath?r.toString():r;if(!n.tagFilter(e,s))return t}return this.entityDecoder.decode(t)}o(sLe,"replaceEntitiesValue");function iLe(t,e,r,n){return t&&(n===void 0&&(n=e.child.length===0),t=this.parseTextData(t,e.tagname,r,!1,e[":@"]?Object.keys(e[":@"]).length!==0:!1,n),t!==void 0&&t!==""&&e.add(this.options.textNodeName,t),t=""),t}o(iLe,"saveTextToParentTag");function oLe(){return this.stopNodeExpressionsLine truncated
|
||||
`;function hLe(t,e){if(!Array.isArray(t)||t.length===0)return"1.0";let r=t[0];if(Ek(r)==="?xml"){let s=r[":@"];if(s){let i=e.attributeNamePrefix+"version";if(s[i])return s[i]}}return"1.0"}o(hLe,"detectXmlVersionFromArray");function TZ(t,e,r,n,s){return!r.sanitizeName||fu(t,{xmlVersion:s})?t:r.sanitizeName(t,{isAttribute:e,matcher:n.readOnly()})}o(TZ,"resolveTagName");function gk(t,e){let r="";e.format&&(r=fLe);let n=[];if(e.stopNodes&&Array.isArray(e.stopNodes))for(let a=0;a<e.stopNodes.length;a++){let c=e.stopNodes[a];typeof c=="string"?n.push(new cs(c)):c instanceof cs&&n.push(c)}let s=hLe(t,e),i=new lo;return vZ(t,e,r,i,n,s)}o(gk,"toXml");function vZ(t,e,r,n,s,i){let a="",c=!1;if(e.maxNestedTags&&n.getDepth()>e.maxNestedTags)throw new Error("Maximum nested tags exceeded");if(!Array.isArray(t)){if(t!=null){let l=t.toString();return l=mk(l,e),l}return""}for(let l=0;l<t.length;l++){let u=t[l],d=Ek(u);if(d===void 0)continue;let p=d===e.textNodeName||d===e.cdataPropName||d===e.commentPropName||d[0]==="?"?d:TZ(d,!1,e,n,i),f=mLe(u[":@"],e);n.push(p,f);let h=ELe(n,s);if(p===e.textNodeName){let I=u[d];h||(I=e.tagValueProcessor(p,I),I=mk(I,e)),c&&(a+=r),a+=I,c=!1,n.pop();continue}else if(p===e.cdataPropName){c&&(a+=r);let I=u[d][0][e.textNodeName],b=UB(I);a+=`<![CDATA[${b}]]>`,c=!1,n.pop();continue}else if(p===e.commentPropName){let I=u[d][0][e.textNodeName],b=FB(I);a+=r+`<!--${b}-->`,c=!0,n.pop();continue}else if(p[0]==="?"){let I=RZ(u[":@"],e,h,n,i);a+=(p==="?xml"?"":r)+`<${p}${I}?>`,c=!0,n.pop();continue}let g=r;g!==""&&(g+=e.indentBy);let y=RZ(u[":@"],e,h,n,i),E=r+`<${p}${y}`,C;h?C=_Z(u[d],e):C=vZ(u[d],e,g,n,s,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,n.pop()}return a}o(vZ,"arrToStr");function mLe(t,e){if(!t||e.ignoreAttributes)return null;let r={},n=!1;for(let s in t){if(!Object.prototype.hasOwnProperty.call(t,s))continue;let i=s.startsWith(e.attributeNamePrefix)?s.substr(e.attributeNamePrefix.length):s;r[i]=Lc(t[s]),n=!0}return n?r:null}o(mLe,"extractAttributeValues");function _Z(t,e){if(!Array.isArray(t))return t!=null?t.toString():"";let r="";for(let n=0;n<t.length;n++){let s=t[n],i=Ek(s);if(i===e.textNodeName)r+=s[i];else if(i===e.cdataPropName)r+=s[i][0][e.textNodeName];else if(i===e.commentPropName)r+=s[i][0][e.textNodeName];else{if(i&&i[0]==="?")continue;if(i){let a=gLe(s[":@"],e),c=_Z(s[i],e);!c||c.length===0?r+=`<${i}${a}/>`:r+=`<${i}${a}>${c}</${i}>`}}}return r}o(_Z,"getRawContent");function gLe(t,e){let r="";if(t&&!e.ignoreAttributes)for(let n in t){if(!Object.prototype.hasOwnProperty.call(t,n))continue;let s=t[n];s===!0&&e.suppressBooleanAttributes?r+=` ${n.substr(e.attributeNamePrefix.length)}`:r+=` ${n.substr(e.attributeNamePrefix.length)}="${Lc(s)}"`}return r}o(gLe,"attr_to_str_raw");function Ek(t){let e=Object.keys(t);for(let r=0;r<e.length;r++){let n=e[r];if(Object.prototype.hasOwnProperty.call(t,n)&&n!==":@")return n}}o(Ek,"propName");function RZ(t,e,r,n,s){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:TZ(c,!0,e,n,s),u;r?u=t[a]:(u=e.attributeValueProcessor(a,t[a]),u=mk(u,e)),u===!0&&e.suppressBooleanAttributes?i+=` ${l}`:i+=` ${l}="${Lc(u)}"`}return i}o(RZ,"attr_to_str");function ELe(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(ELe,"checkStopNode");function mk(t,e){if(t&&t.length>0&&e.processEntities)for(let r=0;r<e.entities.length;r++){let n=e.entities[r];t=t.replace(n.regex,n.val)}return t}o(mk,"replaceEntitiesValue");function yk(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(yk,"getIgnoreAttributesFn");var yLe={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 Sn(t){if(this.options=Object.assign({},yLe,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
|
||||
`,"utf-8")],s=UOe(n);s&&t.headers.set("Content-Length",s),t.body=await EX(n)}o(qOe,"buildRequestBody");var vm="multipartPolicy",GOe=70,HOe=new Set("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'()+,-./:=?");function VOe(t){if(t.length>GOe)throw new Error(`Multipart boundary "${t}" exceeds maximum length of 70 characters`);if(Array.from(t).some(e=>!HOe.has(e)))throw new Error(`Multipart boundary "${t}" contains invalid characters`)}o(VOe,"assertValidBoundary");function yB(){return{name:vm,async sendRequest(t,e){if(!t.multipartBody)return e(t);if(t.body)throw new Error("multipartBody and regular body cannot be set at the same time");let r=t.multipartBody.boundary,n=t.headers.get("Content-Type")??"multipart/mixed",s=n.match(/^(multipart\/[^ ;]+)(?:; *boundary=(.+))?$/);if(!s)throw new Error(`Got multipart request body, but content-type header was not multipart: ${n}`);let[,i,a]=s;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?VOe(r):r=MOe(),t.headers.set("Content-Type",`${i}; boundary=${r}`),await qOe(t,t.multipartBody.parts,r),t.multipartBody=void 0,e(t)}}}o(yB,"multipartPolicy");function CB(){return HI()}o(CB,"createEmptyPipeline");var yX=UI({logLevelEnvVarName:"AZURE_LOG_LEVEL",namespace:"azure"}),fpt=yX.logger;function io(t){return yX.createClientLogger(t)}o(io,"createClientLogger");var oo=io("core-rest-pipeline");function TP(t={}){return WI({logger:oo.info,...t})}o(TP,"logPolicy");var vP=jI;function _P(t={}){return KI(t)}o(_P,"redirectPolicy");var IB=w(require("node:os"),1),BB=w(require("node:process"),1);function CX(){return"User-Agent"}o(CX,"getHeaderName");async function IX(t){if(BB.default&&BB.default.versions){let e=`${IB.default.type()} ${IB.default.release()}; ${IB.default.arch()}`,r=BB.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(IX,"setPlatformSpecificData");var bB="1.22.2";function XOe(t){let e=[];for(let[r,n]of t){let s=n?`${r}/${n}`:r;e.push(s)}return e.join(" ")}o(XOe,"getUserAgentString");function BX(){return CX()}o(BX,"getUserAgentHeaderName");async function wB(t){let e=new Map;e.set("core-rest-pipeline",bB),await IX(e);let r=XOe(e);return t?`${t} ${r}`:r}o(wB,"getUserAgentValue");var bX=BX(),wX="userAgentPolicy";function PP(t={}){let e=wB(t.userAgentPrefix);return{name:wX,async sendRequest(r,n){return r.headers.has(bX)||r.headers.set(bX,await e),n(r)}}}o(PP,"userAgentPolicy");var is=class extends Error{static{o(this,"AbortError")}constructor(e){super(e),this.name="AbortError"}};function kP(t,e){let{cleanupBeforeAbort:r,abortSignal:n,abortErrorMsg:s}=e??{};return new Promise((i,a)=>{function c(){a(new is(s??"The operation was aborted."))}o(c,"rejectOnAbort");function l(){n?.removeEventListener("abort",u)}o(l,"removeListeners");function u(){r?.(),l(),c()}if(o(u,"onAbort"),n?.aborted)return c();try{t(d=>{l(),i(d)},d=>{l(),a(d)})}catch(d){a(d)}n?.addEventListener("abort",u)})}o(kP,"createAbortablePromise");var nMe="The delay was aborted.";function _m(t,e){let r,{abortSignal:n,abortErrorMsg:s}=e??{};return kP(i=>{r=setTimeout(i,t)},{cleanupBeforeAbort:o(()=>clearTimeout(r),"cleanupBeforeAbort"),abortSignal:n,abortErrorMsg:s??nMe})}o(_m,"delay");function Oc(t){if(du(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(Oc,"getErrorMessage");function SX(t){return du(t)}o(SX,"isError");function WA(){return uu()}o(WA,"randomUUID");var Le=fu;var NX=Symbol("rawContent");function OP(t){return typeof t[NX]=="function"}o(OP,"hasRawContent");function xX(t){return OP(t)?t[NX]():t}o(xX,"getRawContent");var SB=vm;function MP(){let t=yB();return{name:SB,sendRequest:o(async(e,r)=>{if(e.multipartBody)for(let n of e.multipartBody.parts)OP(n.body)&&(n.body=xX(n.body));return t.sendRequest(e,r)},"sendRequest")}}o(MP,"multipartPolicy");var LP=XI;function FP(){return ZI()}o(FP,"decompressResponsePolicy");function UP(t={}){return rB(t)}o(UP,"defaultRetryPolicy");function qP(){return nB()}o(qP,"formDataPolicy");function Mc(t){return SP(t)}o(Mc,"getDefaultProxySettings");function GP(t,e){return fB(t,e)}o(GP,"proxyPolicy");var QX="setClientRequestIdPolicy";function HP(t="x-ms-client-request-id"){return{name:QX,async sendRequest(e,r){return e.headers.has(t)||e.headers.set(t,e.requestId),r(e)}}}o(HP,"setClientRequestIdPolicy");function VP(t){return hB(t)}o(VP,"agentPolicy");function zP(t){return mB(t)}o(zP,"tlsPolicy");var jA={span:Symbol.for("@azure/core-tracing span"),namespace:Symbol.for("@azure/core-tracing namespace")};function RX(t={}){let e=new $P(t.parentContext);return t.span&&(e=e.setValue(jA.span,t.span)),t.namespace&&(e=e.setValue(jA.namespace,t.namespace)),e}o(RX,"createTracingContext");var $P=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--),!xLe(l)){let A;return l.trim().length===0?A="Invalid space after '<'.":A="Tag '"+l+"' is an invalid name.",Mt("InvalidTag",A,rn(t,i))}let u=BLe(t,i);if(u===!1)return Mt("InvalidAttr","Attributes for '"+l+"' have open quote.",rn(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=AZ(d,e);if(p===!0)n=!0;else return Mt(p.err.code,p.err.msg,rn(t,A+p.err.line))}else if(c)if(u.tagClosed){if(d.trim().length>0)return Mt("InvalidTag","Closing tag '"+l+"' can't have attributes or invalid starting.",rn(t,a));if(r.length===0)return Mt("InvalidTag","Closing tag '"+l+"' has not been opened.",rn(t,a));{let A=r.pop();if(l!==A.tagName){let p=rn(t,A.tagStartPos);return Mt("InvalidTag","Expected closing tag '"+A.tagName+"' (opened in line "+p.line+", col "+p.col+") instead of closing tag '"+l+"'.",rn(t,a))}r.length==0&&(s=!0)}}else return Mt("InvalidTag","Closing tag '"+l+"' doesn't have proper closing.",rn(t,i));else{let A=AZ(d,e);if(A!==!0)return Mt(A.err.code,A.err.msg,rn(t,i-d.length+A.err.line));if(s===!0)return Mt("InvalidXml","Multiple possible root nodes found.",rn(t,i));e.unpairedTags.indexOf(l)!==-1||r.push({tagName:l,tagStartPos:a}),n=!0}for(i++;i<t.length;i++)if(t[i]==="<")if(t[i+1]==="!"){i++,i=dZ(t,i);continue}else if(t[i+1]==="?"){if(i=uZ(t,++i),i.err)return i}else break;else if(t[i]==="&"){let A=SLe(t,i);if(A==-1)return Mt("InvalidChar","char '&' is not expected.",rn(t,i));i=A}else if(s===!0&&!lZ(t[i]))return Mt("InvalidXml","Extra text at the end",rn(t,i));t[i]==="<"&&i--}}else{if(lZ(t[i]))continue;return Mt("InvalidChar","char '"+t[i]+"' is not expected.",rn(t,i))}if(n){if(r.length==1)return Mt("InvalidTag","Unclosed tag '"+r[0].tagName+"'.",rn(t,r[0].tagStartPos));if(r.length>0)return Mt("InvalidXml","Invalid '"+JSON.stringify(r.map(i=>i.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}else return Mt("InvalidXml","Start tag expected.",1);return!0}o(LB,"validate");function lZ(t){return t===" "||t===" "||t===`
|
||||
`||t==="\r"}o(lZ,"isWhiteSpace");function uZ(t,e){let r=e;for(;e<t.length;e++)if(t[e]=="?"||t[e]==" "){let n=t.substr(r,e-r);if(e>5&&n==="xml")return Mt("InvalidXml","XML declaration allowed only at the start of the document.",rn(t,e));if(t[e]=="?"&&t[e+1]==">"){e++;break}else continue}return e}o(uZ,"readPI");function dZ(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(dZ,"readCommentAndCDATA");var CLe='"',ILe="'";function BLe(t,e){let r="",n="",s=!1;for(;e<t.length;e++){if(t[e]===CLe||t[e]===ILe)n===""?n=t[e]:n!==t[e]||(n="");else if(t[e]===">"&&n===""){s=!0;break}r+=t[e]}return n!==""?!1:{value:r,index:e,tagClosed:s}}o(BLe,"readAttributeStr");var bLe=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function AZ(t,e){let r=OB(t,bLe),n={};for(let s=0;s<r.length;s++){if(r[s][1].length===0)return Mt("InvalidAttr","Attribute '"+r[s][2]+"' has no space in starting.",Vm(r[s]));if(r[s][3]!==void 0&&r[s][4]===void 0)return Mt("InvalidAttr","Attribute '"+r[s][2]+"' is without value.",Vm(r[s]));if(r[s][3]===void 0&&!e.allowBooleanAttributes)return Mt("InvalidAttr","boolean attribute '"+r[s][2]+"' is not allowed.",Vm(r[s]));let i=r[s][2];if(!NLe(i))return Mt("InvalidAttr","Attribute '"+i+"' is an invalid name.",Vm(r[s]));if(!Object.prototype.hasOwnProperty.call(n,i))n[i]=1;else return Mt("InvalidAttr","Attribute '"+i+"' is repeated.",Vm(r[s]))}return!0}o(AZ,"validateAttributeString");function wLe(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(wLe,"validateNumberAmpersand");function SLe(t,e){if(e++,t[e]===";")return-1;if(t[e]==="#")return e++,wLe(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(SLe,"validateAmpersand");function Mt(t,e,r){return{err:{code:t,msg:e,line:r.line||r,col:r.col}}}o(Mt,"getErrorObject");function NLe(t){return uk(t)}o(NLe,"validateAttrName");function xLe(t){return uk(t)}o(xLe,"validateTagName");function rn(t,e){let r=t.substring(0,e).split(/\r?\n/);return{line:r.length,col:r[r.length-1].length+1}}o(rn,"getLineNumberForPosition");function Vm(t){return t.startIndex+t[1].length}o(Vm,"getPositionFromMatch");var pZ={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"},fZ={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"},hZ={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 wn("!xml"),r=e,n="";this.matcher.reset(),this.entityDecoder.reset(),this.entityExpansionCount=0,this.currentExpandedLength=0;let s=this.options,i=new Jm(s.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=tp(t,">",c,"Closing Tag is not closed."),A=t.substring(c+2,d).trim();if(s.removeNSPrefix){let f=A.indexOf(":");f!==-1&&(A=A.substr(f+1))}A=Ek(s.transformTagName,A,"",s).tagName,r&&(n=this.saveTextToParentTag(n,r,this.readonlyMatcher));let p=this.matcher.getCurrentTag();if(A&&s.unpairedTagsSet.has(A))throw new Error(`Unpaired tag can not be used as closing tag: </${A}>`);p&&s.unpairedTagsSet.has(p)&&(this.matcher.pop(),this.tagsNodeStack.pop()),this.matcher.pop(),this.isCurrentNodeStopNode=!1,r=this.tagsNodeStack.pop(),n="",c=d}else if(u===63){let d=yk(t,c,!1,"?>");if(!d)throw new Error("Pi Tag is not closed.");n=this.saveTextToParentTag(n,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(!(s.ignoreDeclaration&&d.tagName==="?xml"||s.ignorePiTags)){let p=new wn(d.tagName);p.add(s.textNodeName,""),d.tagName!==d.tagExp&&d.attrExpPresent&&s.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=tp(t,"-->",c+4,"Comment is not closed.");if(s.commentPropName){let A=t.substring(c+4,d-2);n=this.saveTextToParentTag(n,r,this.readonlyMatcher),r.add(s.commentPropName,[{[s.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=tp(t,"]]>",c,"CDATA is not closed.")-2,A=t.substring(c+9,d);n=this.saveTextToParentTag(n,r,this.readonlyMatcher);let p=this.parseTextData(A,r.tagname,this.readonlyMatcher,!0,!1,!0,!0);p==null&&(p=""),s.cdataPropName?r.add(s.cdataPropName,[{[s.textNodeName]:A}]):r.add(s.textNodeName,p),c=d+2}else{let d=yk(t,c,s.removeNSPrefix);if(!d){let R=t.substring(Math.max(0,c-50),Math.min(a,c+50));throw new Error(`readTagExp returned undefined at position ${c}. Context: "${R}"`)}let A=d.tagName,p=d.rawTagName,f=d.tagExp,h=d.attrExpPresent,m=d.closeIndex;if({tagName:A,tagExp:f}=Ek(s.transformTagName,A,f,s),s.strictReservedNames&&(A===s.commentPropName||A===s.cdataPropName||A===s.textNodeName||A===s.attributesGroupName))throw new Error(`Invalid tag name: ${A}`);r&&n&&r.tagname!=="!xml"&&(n=this.saveTextToParentTag(n,r,this.readonlyMatcher,!1));let y=r;y&&s.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),h=A!==f);let C=null,I={},b;b=jLe(p),A!==e.tagname&&this.matcher.push(A,{},b),A!==f&&h&&(C=this.buildAttributesMap(f,this.matcher,A),C&&(I=WLe(C,s))),A!==e.tagname&&(this.isCurrentNodeStopNode=this.isItStopNode());let N=c;if(this.isCurrentNodeStopNode){let R="";if(E)c=d.closeIndex;else if(s.unpairedTagsSet.has(A))c=d.closeIndex;else{let xe=this.readStopNodeData(t,p,m+1);if(!xe)throw new Error(`Unexpected end of ${p}`);c=xe.i,R=xe.tagContent}let D=new wn(A);C&&(D[":@"]=C),D.add(s.textNodeName,R),this.matcher.pop(),this.isCurrentNodeStopNode=!1,this.addChild(r,D,this.readonlyMatcher,N)}else{if(E){({tagName:A,tagExp:f}=Ek(s.transformTagName,A,f,s));let R=new wn(A);C&&(R[":@"]=C),this.addChild(r,R,this.readonlyMatcher,N),this.matcher.pop(),this.isCurrentNodeStopNode=!1}else if(s.unpairedTagsSet.has(A)){let R=new wn(A);C&&(R[":@"]=C),this.addChild(r,R,this.readonlyMatcher,N),this.matcher.pop(),this.isCurrentNodeStopNode=!1,c=d.closeIndex;continue}else{let R=new wn(A);if(this.tagsNodeStack.length>s.maxNestedTags)throw new Error("Maximum nested tags exceeded");this.tagsNodeStack.push(r),C&&(R[":@"]=C),this.addChild(r,R,this.readonlyMatcher,N),r=R}n="",c=m}}}else n+=t[c];return e.child},"parseXml");function r1e(t,e,r,n){this.options.captureMetaData||(n=void 0);let s=this.options.jPath?r.toString():r,i=this.options.updateTag(e.tagname,s,e[":@"]);i===!1||(typeof i=="string"&&(e.tagname=i),t.addChild(e,n))}o(r1e,"addChild");function n1e(t,e,r){let n=this.options.processEntities;if(!n||!n.enabled)return t;if(n.allowedTags){let s=this.options.jPath?r.toString():r;if(!(Array.isArray(n.allowedTags)?n.allowedTags.includes(e):n.allowedTags(e,s)))return t}if(n.tagFilter){let s=this.options.jPath?r.toString():r;if(!n.tagFilter(e,s))return t}return this.entityDecoder.decode(t)}o(n1e,"replaceEntitiesValue");function s1e(t,e,r,n){return t&&(n===void 0&&(n=e.child.length===0),t=this.parseTextData(t,e.tagname,r,!1,e[":@"]?Object.keys(e[":@"]).length!==0:!1,n),t!==void 0&&t!==""&&e.add(this.options.textNodeName,t),t=""),t}o(s1e,"saveTextToParentTag");function i1e(){return this.stopNodeExpressionsLine truncated
|
||||
`;function f1e(t,e){if(!Array.isArray(t)||t.length===0)return"1.0";let r=t[0];if(Sk(r)==="?xml"){let s=r[":@"];if(s){let i=e.attributeNamePrefix+"version";if(s[i])return s[i]}}return"1.0"}o(f1e,"detectXmlVersionFromArray");function DZ(t,e,r,n,s){return!r.sanitizeName||yu(t,{xmlVersion:s})?t:r.sanitizeName(t,{isAttribute:e,matcher:n.readOnly()})}o(DZ,"resolveTagName");function wk(t,e){let r="";e.format&&(r=p1e);let n=[];if(e.stopNodes&&Array.isArray(e.stopNodes))for(let a=0;a<e.stopNodes.length;a++){let c=e.stopNodes[a];typeof c=="string"?n.push(new cs(c)):c instanceof cs&&n.push(c)}let s=f1e(t,e),i=new lo;return OZ(t,e,r,i,n,s)}o(wk,"toXml");function OZ(t,e,r,n,s,i){let a="",c=!1;if(e.maxNestedTags&&n.getDepth()>e.maxNestedTags)throw new Error("Maximum nested tags exceeded");if(!Array.isArray(t)){if(t!=null){let l=t.toString();return l=bk(l,e),l}return""}for(let l=0;l<t.length;l++){let u=t[l],d=Sk(u);if(d===void 0)continue;let p=d===e.textNodeName||d===e.cdataPropName||d===e.commentPropName||d[0]==="?"?d:DZ(d,!1,e,n,i),f=h1e(u[":@"],e);n.push(p,f);let h=g1e(n,s);if(p===e.textNodeName){let I=u[d];h||(I=e.tagValueProcessor(p,I),I=bk(I,e)),c&&(a+=r),a+=I,c=!1,n.pop();continue}else if(p===e.cdataPropName){c&&(a+=r);let I=u[d][0][e.textNodeName],b=HB(I);a+=`<![CDATA[${b}]]>`,c=!1,n.pop();continue}else if(p===e.commentPropName){let I=u[d][0][e.textNodeName],b=GB(I);a+=r+`<!--${b}-->`,c=!0,n.pop();continue}else if(p[0]==="?"){let I=kZ(u[":@"],e,h,n,i);a+=(p==="?xml"?"":r)+`<${p}${I}?>`,c=!0,n.pop();continue}let m=r;m!==""&&(m+=e.indentBy);let y=kZ(u[":@"],e,h,n,i),E=r+`<${p}${y}`,C;h?C=MZ(u[d],e):C=OZ(u[d],e,m,n,s,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,n.pop()}return a}o(OZ,"arrToStr");function h1e(t,e){if(!t||e.ignoreAttributes)return null;let r={},n=!1;for(let s in t){if(!Object.prototype.hasOwnProperty.call(t,s))continue;let i=s.startsWith(e.attributeNamePrefix)?s.substr(e.attributeNamePrefix.length):s;r[i]=Uc(t[s]),n=!0}return n?r:null}o(h1e,"extractAttributeValues");function MZ(t,e){if(!Array.isArray(t))return t!=null?t.toString():"";let r="";for(let n=0;n<t.length;n++){let s=t[n],i=Sk(s);if(i===e.textNodeName)r+=s[i];else if(i===e.cdataPropName)r+=s[i][0][e.textNodeName];else if(i===e.commentPropName)r+=s[i][0][e.textNodeName];else{if(i&&i[0]==="?")continue;if(i){let a=m1e(s[":@"],e),c=MZ(s[i],e);!c||c.length===0?r+=`<${i}${a}/>`:r+=`<${i}${a}>${c}</${i}>`}}}return r}o(MZ,"getRawContent");function m1e(t,e){let r="";if(t&&!e.ignoreAttributes)for(let n in t){if(!Object.prototype.hasOwnProperty.call(t,n))continue;let s=t[n];s===!0&&e.suppressBooleanAttributes?r+=` ${n.substr(e.attributeNamePrefix.length)}`:r+=` ${n.substr(e.attributeNamePrefix.length)}="${Uc(s)}"`}return r}o(m1e,"attr_to_str_raw");function Sk(t){let e=Object.keys(t);for(let r=0;r<e.length;r++){let n=e[r];if(Object.prototype.hasOwnProperty.call(t,n)&&n!==":@")return n}}o(Sk,"propName");function kZ(t,e,r,n,s){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:DZ(c,!0,e,n,s),u;r?u=t[a]:(u=e.attributeValueProcessor(a,t[a]),u=bk(u,e)),u===!0&&e.suppressBooleanAttributes?i+=` ${l}`:i+=` ${l}="${Uc(u)}"`}return i}o(kZ,"attr_to_str");function g1e(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(g1e,"checkStopNode");function bk(t,e){if(t&&t.length>0&&e.processEntities)for(let r=0;r<e.entities.length;r++){let n=e.entities[r];t=t.replace(n.regex,n.val)}return t}o(bk,"replaceEntitiesValue");function Nk(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(Nk,"getIgnoreAttributesFn");var E1e={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 Nn(t){if(this.options=Object.assign({},E1e,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(Sn,"Builder");function CLe(t,e){let r=t["?xml"];if(r&&typeof r=="object"){if(e.attributesGroupName&&r[e.attributesGroupName]){let s=r[e.attributesGroupName][e.attributeNamePrefix+"version"];if(s)return s}let n=r[e.attributeNamePrefix+"version"];if(n)return n}return"1.0"}o(CLe,"detectXmlVersionFromObj");function Ck(t,e,r,n,s){return!r.sanitizeName||fu(t,{xmlVersion:s})?t:r.sanitizeName(t,{isAttribute:e,matcher:n.readOnly()})}o(Ck,"resolveTagName");Sn.prototype.build=function(t){if(this.options.preserveOrder)return gk(t,this.options);{Array.isArray(t)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(t={[this.options.arrayNodeName]:t});let e=new lo,r=CLe(t,this.options);return this.j2x(t,0,e,r).val}};Sn.prototype.j2x=function(t,e,r,n){let s="",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:Ck(l,!1,this.options,r,n);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=Ck(A,!0,this.options,r,n);s+=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 h=0;h<A;h++){let g=t[l][h];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,n);r.pop(),p+=y.val,this.options.attributesGroupName&&g.hasOwnProperty(this.options.attributesGroupName)&&(f+=y.attrStr)}else p+=this.processTextOrObjNode(g,d,e,r,n);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 h=Ck(A[f],!0,this.options,r,n);s+=this.buildAttrPairStr(h,""+t[l][A[f]],c)}}else i+=this.processTextOrObjNode(t[l],d,e,r,n)}return{attrStr:s,val:i}};Sn.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+'="'+Lc(e)+'"'};function ILe(t,e,r,n,s){let i=this.extractAttributes(t);if(n.push(e,i),this.checkStopNode(n)){let l=this.buildRawContent(t),u=this.buildAttributesForStopNode(t);return n.pop(),this.buildObjectNode(l,e,u,r)}let c=this.j2x(t,r+1,n,s);return n.pop(),e[0]==="?"?this.buildTextValNode("",e,c.attrStr,r,n):t[this.options.textNodeName]!==void 0&&Object.keys(t).length===1?this.buildTextValNode(t[this.options.textNodeName],e,c.attrStr,r,n):this.buildObjectNode(c.val,e,c.attrStr,r)}o(ILe,"processTextOrObjNode");Sn.prototype.extractAttributes=function(t){if(!t||typeof t!="object")return null;let e={},r=!1;if(this.options.attributesGroupName&&t[this.options.attributesGroupName]){let n=t[this.options.attributesGroupName];for(let s in n){if(!Object.prototype.hasOwnProperty.call(n,s))continue;let i=s.startsWith(this.options.attributeNamePrefix)?s.substring(this.options.attributeNamePrefix.length):s;e[i]=Lc(n[s]),r=!0}}else for(let n in t){if(!Object.prototype.hasOwnProperty.call(t,n))continue;let s=this.isAttribute(n);s&&(e[s]=Lc(t[n]),r=!0)}return r?e:null};Sn.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(Nn,"Builder");function y1e(t,e){let r=t["?xml"];if(r&&typeof r=="object"){if(e.attributesGroupName&&r[e.attributesGroupName]){let s=r[e.attributesGroupName][e.attributeNamePrefix+"version"];if(s)return s}let n=r[e.attributeNamePrefix+"version"];if(n)return n}return"1.0"}o(y1e,"detectXmlVersionFromObj");function xk(t,e,r,n,s){return!r.sanitizeName||yu(t,{xmlVersion:s})?t:r.sanitizeName(t,{isAttribute:e,matcher:n.readOnly()})}o(xk,"resolveTagName");Nn.prototype.build=function(t){if(this.options.preserveOrder)return wk(t,this.options);{Array.isArray(t)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(t={[this.options.arrayNodeName]:t});let e=new lo,r=y1e(t,this.options);return this.j2x(t,0,e,r).val}};Nn.prototype.j2x=function(t,e,r,n){let s="",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:xk(l,!1,this.options,r,n);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=xk(A,!0,this.options,r,n);s+=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 h=0;h<A;h++){let m=t[l][h];if(!(typeof m>"u"))if(m===null)d[0]==="?"?i+=this.indentate(e)+"<"+d+"?"+this.tagEndChar:i+=this.indentate(e)+"<"+d+"/"+this.tagEndChar;else if(typeof m=="object")if(this.options.oneListGroup){r.push(d);let y=this.j2x(m,e+1,r,n);r.pop(),p+=y.val,this.options.attributesGroupName&&m.hasOwnProperty(this.options.attributesGroupName)&&(f+=y.attrStr)}else p+=this.processTextOrObjNode(m,d,e,r,n);else if(this.options.oneListGroup){let y=this.options.tagValueProcessor(d,m);y=this.replaceEntitiesValue(y),p+=y}else{r.push(d);let y=this.checkStopNode(r);if(r.pop(),y){let E=""+m;E===""?p+=this.indentate(e)+"<"+d+this.closeTag(d)+this.tagEndChar:p+=this.indentate(e)+"<"+d+">"+E+"</"+d+this.tagEndChar}else p+=this.buildTextValNode(m,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 h=xk(A[f],!0,this.options,r,n);s+=this.buildAttrPairStr(h,""+t[l][A[f]],c)}}else i+=this.processTextOrObjNode(t[l],d,e,r,n)}return{attrStr:s,val:i}};Nn.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+'="'+Uc(e)+'"'};function C1e(t,e,r,n,s){let i=this.extractAttributes(t);if(n.push(e,i),this.checkStopNode(n)){let l=this.buildRawContent(t),u=this.buildAttributesForStopNode(t);return n.pop(),this.buildObjectNode(l,e,u,r)}let c=this.j2x(t,r+1,n,s);return n.pop(),e[0]==="?"?this.buildTextValNode("",e,c.attrStr,r,n):t[this.options.textNodeName]!==void 0&&Object.keys(t).length===1?this.buildTextValNode(t[this.options.textNodeName],e,c.attrStr,r,n):this.buildObjectNode(c.val,e,c.attrStr,r)}o(C1e,"processTextOrObjNode");Nn.prototype.extractAttributes=function(t){if(!t||typeof t!="object")return null;let e={},r=!1;if(this.options.attributesGroupName&&t[this.options.attributesGroupName]){let n=t[this.options.attributesGroupName];for(let s in n){if(!Object.prototype.hasOwnProperty.call(n,s))continue;let i=s.startsWith(this.options.attributeNamePrefix)?s.substring(this.options.attributeNamePrefix.length):s;e[i]=Uc(n[s]),r=!0}}else for(let n in t){if(!Object.prototype.hasOwnProperty.call(t,n))continue;let s=this.isAttribute(n);s&&(e[s]=Uc(t[n]),r=!0)}return r?e:null};Nn.prototype.buildRawContent=function(t){if(typeof t=="string")return t;if(typeof t!="object"||t===null)return String(t);if(t[this.options.textNodeName]!==void 0)return t[this.options.textNodeName];let e="";for(let r in t){if(!Object.prototype.hasOwnProperty.call(t,r)||this.isAttribute(r)||this.options.attributesGroupName&&r===this.o
Line truncated
|
||||
`)+`
|
||||
`+this.getCanonicalizedHeadersString(e)+this.getCanonicalizedResourceString(e),n=this.factory.computeHMACSHA256(r);return e.headers.set(ae.AUTHORIZATION,`SharedKey ${this.factory.accountName}:${n}`),e}getHeaderValueToSign(e,r){let n=e.headers.get(r);return!n||r===ae.CONTENT_LENGTH&&n==="0"?"":n}getCanonicalizedHeadersString(e){let r=e.headers.headersArray().filter(s=>s.name.toLowerCase().startsWith(ae.PREFIX_FOR_STORAGE));r.sort((s,i)=>KB(s.name.toLowerCase(),i.name.toLowerCase())),r=r.filter((s,i,a)=>!(i>0&&s.name.toLowerCase()===a[i-1].name.toLowerCase()));let n="";return r.forEach(s=>{n+=`${s.name.toLowerCase().trimRight()}:${s.value.trimLeft()}
|
||||
`}),n}getCanonicalizedResourceString(e){let r=YB(e.url)||"/",n="";n+=`/${this.factory.accountName}${r}`;let s=WB(e.url),i={};if(s){let a=[];for(let c in s)if(Object.prototype.hasOwnProperty.call(s,c)){let l=c.toLowerCase();i[l]=s[c],a.push(l)}a.sort();for(let c of a)n+=`
|
||||
${c}:${decodeURIComponent(i[c])}`}return n}};var xt=class extends gu{static{o(this,"StorageSharedKeyCredential")}accountName;accountKey;constructor(e,r){super(),this.accountName=e,this.accountKey=Buffer.from(r,"base64")}create(e,r){return new Hm(e,r,this)}computeHMACSHA256(e){return(0,UZ.createHmac)("sha256",this.accountKey).update(e,"utf8").digest("base64")}};var rr=io("storage-common");var Os;(function(t){t[t.EXPONENTIAL=0]="EXPONENTIAL",t[t.FIXED=1]="FIXED"})(Os||(Os={}));var Uc={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:Os.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},TLe=new is("The operation was aborted."),Vm=class extends uo{static{o(this,"StorageRetryPolicy")}retryOptions;constructor(e,r,n=Uc){super(e,r),this.retryOptions={retryPolicyType:n.retryPolicyType?n.retryPolicyType:Uc.retryPolicyType,maxTries:n.maxTries&&n.maxTries>=1?Math.floor(n.maxTries):Uc.maxTries,tryTimeoutInMs:n.tryTimeoutInMs&&n.tryTimeoutInMs>=0?n.tryTimeoutInMs:Uc.tryTimeoutInMs,retryDelayInMs:n.retryDelayInMs&&n.retryDelayInMs>=0?Math.min(n.retryDelayInMs,n.maxRetryDelayInMs?n.maxRetryDelayInMs:Uc.maxRetryDelayInMs):Uc.retryDelayInMs,maxRetryDelayInMs:n.maxRetryDelayInMs&&n.maxRetryDelayInMs>=0?n.maxRetryDelayInMs:Uc.maxRetryDelayInMs,secondaryHost:n.secondaryHost?n.secondaryHost:Uc.secondaryHost}}async sendRequest(e){return this.attemptSendRequest(e,!1,1)}async attemptSendRequest(e,r,n){let s=e.clone(),i=r||!this.retryOptions.secondaryHost||!(e.method==="GET"||e.method==="HEAD"||e.method==="OPTIONS")||n%2===1;i||(s.url=JB(s.url,this.retryOptions.secondaryHost)),this.retryOptions.tryTimeoutInMs&&(s.url=Fc(s.url,Ta.Parameters.TIMEOUT,Math.floor(this.retryOptions.tryTimeoutInMs/1e3).toString()));let a;try{if(rr.info(`RetryPolicy: =====> Try=${n} ${i?"Primary":"Secondary"}`),a=await this._nextPolicy.sendRequest(s),!this.shouldRetry(i,n,a))return a;r=r||!i&&a.status===404}catch(c){if(rr.error(`RetryPolicy: Caught error, message: ${c.message}, code: ${c.code}`),!this.shouldRetry(i,n,a,c))throw c}return await this.delay(i,n,e.abortSignal),this.attemptSendRequest(e,r,++n)}shouldRetry(e,r,n,s){if(r>=this.retryOptions.maxTries)return rr.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(s){for(let a of i)if(s.name.toUpperCase().includes(a)||s.message.toUpperCase().includes(a)||s.code&&s.code.toString().toUpperCase()===a)return rr.info(`RetryPolicy: Network error ${a} found, will retry.`),!0}if(n||s){let a=n?n.status:s?s.statusCode:0;if(!e&&a===404)return rr.info("RetryPolicy: Secondary access with 404, will retry."),!0;if(a===503||a===500)return rr.info(`RetryPolicy: Will retry for status code ${a}.`),!0}if(n&&n?.status>=400){let a=n.headers.get(ae.X_MS_CopySourceErrorCode);if(a!==void 0)switch(a){case"InternalError":case"OperationTimedOut":case"ServerBusy":return!0}}return s?.code==="PARSE_ERROR"&&s?.message.startsWith('Error "Error: Unclosed root tag')?(rr.info("RetryPolicy: Incomplete XML response likely due to service timeout, will retry."),!0):!1}async delay(e,r,n){let s=0;if(e)switch(this.retryOptions.retryPolicyType){case Os.EXPONENTIAL:s=Math.min((Math.pow(2,r-1)-1)*this.retryOptions.retryDelayInMs,this.retryOptions.maxRetryDelayInMs);break;case Os.FIXED:s=this.retryOptions.retryDelayInMs;break}else s=Math.random()*1e3;return rr.info(`RetryPolicy: Delay for ${s}ms`),jB(s,n,TLe)}};var zm=class{static{o(this,"StorageRetryPolicyFactory")}retryOptions;constructor(e){this.retryOptions=e}create(e,r){return new Vm(e,r,this.retryOptions)}};var vLe="storageBrowserPolicy";function qZ(){return{name:vLe,async sendRequest(t,e){return Fe||((t.method==="GET"||t.method==="HEAD")&&(t.url=Fc(t.url,Ta.Parameters.FORCE_BROWSER_NO_CACHE,new Date().getTime().toString())),t.headers.delete(ae.COOKIE),t.headers.delete(ae.CONTENT_LENGTH)),e(t)}}}o(qZ,"storageBrowserPolicy");var _Le="StorageCorrectContentLengthPolicy";function GZ(){function t(e){e.body&&(typeof e.body=="string"||Buffer.isBuffer(e.body))&&e.body.length>0&&e.headers.set(ae.CONTENT_LENGTH,Buffer.byteLength(e.body))}return o(t,"correctContentLength"),{name:_Le,async sendRequest(e,r){return t(e),r(e)}}}o(GZ,"storageCorrectContentLengthPolicy");var PLe="storageRetryPolicy",jA={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:Os.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},kLe=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"],DLe=new is("The operation was aborted.");function HZ(t={}){let e=t.retryPolicyType??jA.retryPolicyType,r=t.maxTries??jA.maxTries,n=t.retryDelayInMs??jA.retryDelayInMs,s=t.maxRetryDelayInMs??jA.maxRetryDelayInMs,i=t.secondaryHost??jA.secondaryHost,a=t.tryTimeoutInMs??jA.tryTimeoutInMs;function c({isPrimaryRetry:u,attempt:d,response:A,error:p}){if(d>=r)return rr.inf
Line truncated
|
||||
`+this.getCanonicalizedHeadersString(e)+this.getCanonicalizedResourceString(e),n=this.factory.computeHMACSHA256(r);return e.headers.set(ae.AUTHORIZATION,`SharedKey ${this.factory.accountName}:${n}`),e}getHeaderValueToSign(e,r){let n=e.headers.get(r);return!n||r===ae.CONTENT_LENGTH&&n==="0"?"":n}getCanonicalizedHeadersString(e){let r=e.headers.headersArray().filter(s=>s.name.toLowerCase().startsWith(ae.PREFIX_FOR_STORAGE));r.sort((s,i)=>eb(s.name.toLowerCase(),i.name.toLowerCase())),r=r.filter((s,i,a)=>!(i>0&&s.name.toLowerCase()===a[i-1].name.toLowerCase()));let n="";return r.forEach(s=>{n+=`${s.name.toLowerCase().trimRight()}:${s.value.trimLeft()}
|
||||
`}),n}getCanonicalizedResourceString(e){let r=KB(e.url)||"/",n="";n+=`/${this.factory.accountName}${r}`;let s=XB(e.url),i={};if(s){let a=[];for(let c in s)if(Object.prototype.hasOwnProperty.call(s,c)){let l=c.toLowerCase();i[l]=s[c],a.push(l)}a.sort();for(let c of a)n+=`
|
||||
${c}:${decodeURIComponent(i[c])}`}return n}};var St=class extends Bu{static{o(this,"StorageSharedKeyCredential")}accountName;accountKey;constructor(e,r){super(),this.accountName=e,this.accountKey=Buffer.from(r,"base64")}create(e,r){return new Xm(e,r,this)}computeHMACSHA256(e){return(0,zZ.createHmac)("sha256",this.accountKey).update(e,"utf8").digest("base64")}};var rr=io("storage-common");var Ds;(function(t){t[t.EXPONENTIAL=0]="EXPONENTIAL",t[t.FIXED=1]="FIXED"})(Ds||(Ds={}));var Gc={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:Ds.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},R1e=new is("The operation was aborted."),Zm=class extends uo{static{o(this,"StorageRetryPolicy")}retryOptions;constructor(e,r,n=Gc){super(e,r),this.retryOptions={retryPolicyType:n.retryPolicyType?n.retryPolicyType:Gc.retryPolicyType,maxTries:n.maxTries&&n.maxTries>=1?Math.floor(n.maxTries):Gc.maxTries,tryTimeoutInMs:n.tryTimeoutInMs&&n.tryTimeoutInMs>=0?n.tryTimeoutInMs:Gc.tryTimeoutInMs,retryDelayInMs:n.retryDelayInMs&&n.retryDelayInMs>=0?Math.min(n.retryDelayInMs,n.maxRetryDelayInMs?n.maxRetryDelayInMs:Gc.maxRetryDelayInMs):Gc.retryDelayInMs,maxRetryDelayInMs:n.maxRetryDelayInMs&&n.maxRetryDelayInMs>=0?n.maxRetryDelayInMs:Gc.maxRetryDelayInMs,secondaryHost:n.secondaryHost?n.secondaryHost:Gc.secondaryHost}}async sendRequest(e){return this.attemptSendRequest(e,!1,1)}async attemptSendRequest(e,r,n){let s=e.clone(),i=r||!this.retryOptions.secondaryHost||!(e.method==="GET"||e.method==="HEAD"||e.method==="OPTIONS")||n%2===1;i||(s.url=jB(s.url,this.retryOptions.secondaryHost)),this.retryOptions.tryTimeoutInMs&&(s.url=qc(s.url,_a.Parameters.TIMEOUT,Math.floor(this.retryOptions.tryTimeoutInMs/1e3).toString()));let a;try{if(rr.info(`RetryPolicy: =====> Try=${n} ${i?"Primary":"Secondary"}`),a=await this._nextPolicy.sendRequest(s),!this.shouldRetry(i,n,a))return a;r=r||!i&&a.status===404}catch(c){if(rr.error(`RetryPolicy: Caught error, message: ${c.message}, code: ${c.code}`),!this.shouldRetry(i,n,a,c))throw c}return await this.delay(i,n,e.abortSignal),this.attemptSendRequest(e,r,++n)}shouldRetry(e,r,n,s){if(r>=this.retryOptions.maxTries)return rr.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(s){for(let a of i)if(s.name.toUpperCase().includes(a)||s.message.toUpperCase().includes(a)||s.code&&s.code.toString().toUpperCase()===a)return rr.info(`RetryPolicy: Network error ${a} found, will retry.`),!0}if(n||s){let a=n?n.status:s?s.statusCode:0;if(!e&&a===404)return rr.info("RetryPolicy: Secondary access with 404, will retry."),!0;if(a===503||a===500)return rr.info(`RetryPolicy: Will retry for status code ${a}.`),!0}if(n&&n?.status>=400){let a=n.headers.get(ae.X_MS_CopySourceErrorCode);if(a!==void 0)switch(a){case"InternalError":case"OperationTimedOut":case"ServerBusy":return!0}}return s?.code==="PARSE_ERROR"&&s?.message.startsWith('Error "Error: Unclosed root tag')?(rr.info("RetryPolicy: Incomplete XML response likely due to service timeout, will retry."),!0):!1}async delay(e,r,n){let s=0;if(e)switch(this.retryOptions.retryPolicyType){case Ds.EXPONENTIAL:s=Math.min((Math.pow(2,r-1)-1)*this.retryOptions.retryDelayInMs,this.retryOptions.maxRetryDelayInMs);break;case Ds.FIXED:s=this.retryOptions.retryDelayInMs;break}else s=Math.random()*1e3;return rr.info(`RetryPolicy: Delay for ${s}ms`),ZB(s,n,R1e)}};var eg=class{static{o(this,"StorageRetryPolicyFactory")}retryOptions;constructor(e){this.retryOptions=e}create(e,r){return new Zm(e,r,this.retryOptions)}};var T1e="storageBrowserPolicy";function $Z(){return{name:T1e,async sendRequest(t,e){return Le||((t.method==="GET"||t.method==="HEAD")&&(t.url=qc(t.url,_a.Parameters.FORCE_BROWSER_NO_CACHE,new Date().getTime().toString())),t.headers.delete(ae.COOKIE),t.headers.delete(ae.CONTENT_LENGTH)),e(t)}}}o($Z,"storageBrowserPolicy");var v1e="StorageCorrectContentLengthPolicy";function JZ(){function t(e){e.body&&(typeof e.body=="string"||Buffer.isBuffer(e.body))&&e.body.length>0&&e.headers.set(ae.CONTENT_LENGTH,Buffer.byteLength(e.body))}return o(t,"correctContentLength"),{name:v1e,async sendRequest(e,r){return t(e),r(e)}}}o(JZ,"storageCorrectContentLengthPolicy");var _1e="storageRetryPolicy",np={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:Ds.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},P1e=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"],k1e=new is("The operation was aborted.");function YZ(t={}){let e=t.retryPolicyType??np.retryPolicyType,r=t.maxTries??np.maxTries,n=t.retryDelayInMs??np.retryDelayInMs,s=t.maxRetryDelayInMs??np.maxRetryDelayInMs,i=t.secondaryHost??np.secondaryHost,a=t.tryTimeoutInMs??np.tryTimeoutInMs;function c({isPrimaryRetry:u,attempt:d,response:A,error:p}){if(d>=r)return rr.inf
Line truncated
|
||||
`)+`
|
||||
`+n(i)+s(i),c=(0,VZ.createHmac)("sha256",t.accountKey).update(a,"utf8").digest("base64");i.headers.set(ae.AUTHORIZATION,`SharedKey ${t.accountName}:${c}`)}o(e,"signRequest");function r(i,a){let c=i.headers.get(a);return!c||a===ae.CONTENT_LENGTH&&c==="0"?"":c}o(r,"getHeaderValueToSign");function n(i){let a=[];for(let[l,u]of i.headers)l.toLowerCase().startsWith(ae.PREFIX_FOR_STORAGE)&&a.push({name:l,value:u});a.sort((l,u)=>KB(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(n,"getCanonicalizedHeadersString");function s(i){let a=YB(i.url)||"/",c="";c+=`/${t.accountName}${a}`;let l=WB(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(s,"getCanonicalizedResourceString"),{name:OLe,async sendRequest(i,a){return e(i),a(i)}}}o(Sk,"storageSharedKeyCredentialPolicy");var MLe="storageRequestFailureDetailsParserPolicy";function zZ(){return{name:MLe,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(zZ,"storageRequestFailureDetailsParserPolicy");var $Z=require("node:crypto");var XB=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,$Z.createHmac)("sha256",this.key).update(e,"utf8").digest("base64")}};var ZB="12.31.0",eb="2026-02-06";var tb="https://storage.azure.com/.default",va={Parameters:{FORCE_BROWSER_NO_CACHE:"_",SIGNATURE:"sig",SNAPSHOT:"snapshot",VERSIONID:"versionid",TIMEOUT:"timeout"}};var Ii="",Nk="*",LLe=1*1024*1024;var FLe=4*LLe;var JZ="AES256",YZ="DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;",WZ=["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"],jZ=["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"],KZ="BlobUsesCustomerSpecifiedEncryption",XZ="BlobDoesNotUseCustomerSpecifiedEncryption",ZZ=["10000","10001","10002","10003","10004","10100","10101","10102","10103","10104","11000","11001","11002","11003","11004","11100","11101","11102","11103","11104"];function _a(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(_a,"isPipelineLike");var $m=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 Ut(t,e={}){t||(t=new ht);let r=new $m([],e);return r._credential=t,r}o(Ut,"newPipeline");function ULe(t){let e=[qLe,e7,GLe,HLe,VLe,zLe,JLe];if(t.factories.length){let r=t.factories.filter(n=>!e.some(s=>s(n)));if(r.length){let n=r.some(s=>$Le(s));return{wrappedPolicies:tk(r),afterRetry:n}}}}o(ULe,"processDownlevelPipeline");function xk(t){let{httpClient:e,...r}=t.options,n=t._coreHttpClient;n||(n=e?rk(e):wk(),t._coreHttpClient=n);let s=t._corePipeline;if(!s){let i=`azsdk-js-azure-storage-blob/${ZB}`,a=r.userAgentOptions&&r.userAgentOptions.userAgentPrefix?`${r.userAgentOptions.userAgentPrefix} ${i}`:`${i}`;s=Qm({...r,loggingOptions:{additionalAllowedHeaderNames:WZ,additionalAllowedQueryParameters:jZ,logger:GB.info},userAgentOptions:{userAgentPrefix:a},serializationOptions:{stringifyXML:qB,serializerOptions:{xml:{xmlCharKey:"#"}}},deserializationOptions:{parseXML:Bk,serializerOptions:{xml:{xmlCharKey:"#"}}}}),s.removePolicy({phase:"Retry"}),s.removePolicy({name:vP}),s.addPolicy(GZ()),s.addPolicy(HZ(r.retryOptions),{phase:"Retry"}),s.addPo
Line truncated
|
||||
`),i=e.computeHMACSHA256(s);return{sasQueryParameters:new Ni(t.version,i,n,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType),stringToSign:s}}o(UFe,"generateBlobSASQueryParameters20150405");function qFe(t,e){if(t=Nu(t),!t.identifier&&!(t.permissions&&t.expiresOn))throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let s;t.permissions&&(t.blobName?s=Qo.parse(t.permissions.toString()).toString():s=Ro.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Ue(t.startsOn,!1):"",t.expiresOn?Ue(t.expiresOn,!1):"",Su(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?Si(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.cacheControl?t.cacheControl:"",t.contentDisposition?t.contentDisposition:"",t.contentEncoding?t.contentEncoding:"",t.contentLanguage?t.contentLanguage:"",t.contentType?t.contentType:""].join(`
|
||||
`),a=e.computeHMACSHA256(i);return{sasQueryParameters:new Ni(t.version,a,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(qFe,"generateBlobSASQueryParameters20181109");function GFe(t,e){if(t=Nu(t),!t.identifier&&!(t.permissions&&t.expiresOn))throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let s;t.permissions&&(t.blobName?s=Qo.parse(t.permissions.toString()).toString():s=Ro.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Ue(t.startsOn,!1):"",t.expiresOn?Ue(t.expiresOn,!1):"",Su(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?Si(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.encryptionScope,t.cacheControl?t.cacheControl:"",t.contentDisposition?t.contentDisposition:"",t.contentEncoding?t.contentEncoding:"",t.contentLanguage?t.contentLanguage:"",t.contentType?t.contentType:""].join(`
|
||||
`),a=e.computeHMACSHA256(i);return{sasQueryParameters:new Ni(t.version,a,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,void 0,void 0,void 0,t.encryptionScope),stringToSign:i}}o(GFe,"generateBlobSASQueryParameters20201206");function HFe(t,e){if(t=Nu(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let s;t.permissions&&(t.blobName?s=Qo.parse(t.permissions.toString()).toString():s=Ro.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Ue(t.startsOn,!1):"",t.expiresOn?Ue(t.expiresOn,!1):"",Su(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Ue(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Ue(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.ipRange?Si(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
|
||||
`),a=e.computeHMACSHA256(i);return{sasQueryParameters:new Ni(t.version,a,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,e.userDelegationKey),stringToSign:i}}o(HFe,"generateBlobSASQueryParametersUDK20181109");function VFe(t,e){if(t=Nu(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let s;t.permissions&&(t.blobName?s=Qo.parse(t.permissions.toString()).toString():s=Ro.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Ue(t.startsOn,!1):"",t.expiresOn?Ue(t.expiresOn,!1):"",Su(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Ue(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Ue(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?Si(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
|
||||
`),a=e.computeHMACSHA256(i);return{sasQueryParameters:new Ni(t.version,a,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,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId),stringToSign:i}}o(VFe,"generateBlobSASQueryParametersUDK20200210");function zFe(t,e){if(t=Nu(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let s;t.permissions&&(t.blobName?s=Qo.parse(t.permissions.toString()).toString():s=Ro.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Ue(t.startsOn,!1):"",t.expiresOn?Ue(t.expiresOn,!1):"",Su(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Ue(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Ue(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?Si(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
|
||||
`),a=e.computeHMACSHA256(i);return{sasQueryParameters:new Ni(t.version,a,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,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId,t.encryptionScope),stringToSign:i}}o(zFe,"generateBlobSASQueryParametersUDK20201206");function $Fe(t,e){if(t=Nu(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let s;t.permissions&&(t.blobName?s=Qo.parse(t.permissions.toString()).toString():s=Ro.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Ue(t.startsOn,!1):"",t.expiresOn?Ue(t.expiresOn,!1):"",Su(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Ue(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Ue(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,void 0,t.delegatedUserObjectId,t.ipRange?Si(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
|
||||
`),a=e.computeHMACSHA256(i);return{sasQueryParameters:new Ni(t.version,a,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,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId,t.encryptionScope,t.delegatedUserObjectId),stringToSign:i}}o($Fe,"generateBlobSASQueryParametersUDK20250705");function Su(t,e,r){let n=[`/blob/${t}/${e}`];return r&&n.push(`/${r}`),n.join("")}o(Su,"getCanonicalName");function Nu(t){let e=t.version?t.version:eb;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(Nu,"SASSignatureValuesSanityCheckAndAutofill");var sg=class{static{o(this,"BlobLeaseClient")}_leaseId;_url;_containerOrBlobOperation;_isContainer;get leaseId(){return this._leaseId}get url(){return this._url}constructor(e,r){let n=e.storageClientContext;this._url=e.url,e.name===void 0?(this._isContainer=!0,this._containerOrBlobOperation=n.container):(this._isContainer=!1,this._containerOrBlobOperation=n.blob),r||(r=GA()),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 n=>K(await this._containerOrBlobOperation.acquireLease({abortSignal:r.abortSignal,duration:e,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},proposedLeaseId:this._leaseId,tracingOptions:n.tracingOptions})))}async changeLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==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 n=>{let s=K(await this._containerOrBlobOperation.changeLease(this._leaseId,e,{abortSignal:r.abortSignal,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},tracingOptions:n.tracingOptions}));return this._leaseId=e,s})}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=>K(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"}};cp.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var Tu=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"}};Tu.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var fg=class extends Error{static{o(this,"RateLimitError")}constructor(e){super(e),this.name="RateLimitError"}};var HUe=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(a){a(i)})}return o(s,"adopt"),new(r||(r=Promise))(function(i,a){function c(d){try{u(n.next(d))}catch(A){a(A)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(A){a(A)}}o(l,"rejected");function u(d){d.done?i(d.value):s(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})},fL=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),n=Date.now()-this.startTime,s=(e/(1024*1024)/(n/1e3)).toFixed(1);S(`Sent ${e} of ${this.contentLength} (${r}%), ${s} 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 nte(t,e,r){return HUe(this,void 0,void 0,function*(){var n;let s=new Fa(t),i=s.getBlockBlobClient(),a=new fL((n=r?.archiveSizeBytes)!==null&&n!==void 0?n:0),c={blockSize:r?.uploadChunkSize,concurrency:r?.uploadConcurrency,maxSingleShotSize:128*1024*1024,onProgress:a.onProgress()};try{a.startDisplayTimer(),B(`BlobClient: ${s.name}:${s.accountName}:${s.containerName}`);let l=yield i.uploadFile(e,c);if(l._response.status>=400)throw new iw(`uploadCacheArchiveSDK: upload failed with status code ${l._response.status}`);return l}catch(l){throw Je(`uploadCacheArchiveSDK: internal error uploading cache archive: ${l.message}`),l}finally{a.stopDisplayTimer()}})}o(nte,"uploadCacheArchiveSDK");var ite=w(require("buffer"),1),To=w(require("fs"),1),ote=w(require("stream"),1),ate=w(require("util"),1);var ow=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(a){a(i)})}return o(s,"adopt"),new(r||(r=Promise))(function(i,a){function c(d){try{u(n.next(d))}catch(A){a(A)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(A){a(A)}}o(l,"rejected");function u(d){d.done?i(d.value):s(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})};function aw(t){return t?t>=200&&t<300:!1}o(aw,"isSuccessStatusCode");function VUe(t){return t?t>=500:!0}o(VUe,"isServerErrorStatusCode");function zUe(t){return t?[Nt.BadGateway,Nt.ServiceUnavailable,Nt.GatewayTimeout].includes(t):!1}o(zUe,"isRetryableStatusCode");function $Ue(t){return ow(this,void 0,void 0,function*(){return new Promise(e=>setTimeout(e,t))})}o($Ue,"sleep");function ste(t,e,r){return ow(this,arguments,void 0,function*(n,s,i,a=TI,c=vI,l=void 0){let u="",d=1;for(;d<=a;){let A,p,f=!1;try{A=yield s()}catch(h){l&&(A=l(h)),f=!0,u=h.message}if(A&&(p=i(A),!VUe(p)))return A;if(p&&(f=zUe(p),u=`Cache service responded with ${p}`),B(`${n} - Attempt ${d} of ${a} failed with error: ${u}`),!f){B(`${n} - Error is not retryable`);break}yield $Ue(c),d++}throw Error(`${n} failed: ${u}`)})}o(ste,"retry");function hg(t,e){return ow(this,arguments,void 0,function*(r,n,s=TI,i=vI){return yield ste(r,n,a=>a.statusCode,s,i,a=>{if(a instanceof to)return{statusCode:a.statusCode,result:null,headers:{},error:a}})})}o(hg,"retryTypedResponse");function lp(t,e){return ow(this,arguments,void 0,function*(r,n,s=TI,i=vI){return yield ste(r,n,a=>a.message.statusCode,s,i)})}o(lp,"retryHttpClientResponse");var qs=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(a){a(i)})}return o(s,"adopt"),new(r||(r=Promise))(function(i,a){function c(d){try{u(n.next(d))}catch(A){a(A)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(A){a(A)}}o(l,"rejected");function u(d){d.done?i(d.value):s(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})};function JUe(t,e){return qs(this,void 0,void 0,function*(){yield ate.promisify(ote.pipeline)(t.message,e)})}o(JUe,"pipeResponseToStream");var cw=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){th
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(e2e,"printCachesListForDiagnostics");function yL(t,e,r){return xn(this,void 0,void 0,function*(){let n=new Cte.URL(t),s=dte(r);n.hostname.endsWith(".blob.core.windows.net")?s.useAzureSdk?yield lte(t,e,s):s.concurrentBlobDownloads?yield cte(t,e,s):yield lw(t,e):yield lw(t,e)})}o(yL,"downloadCache");function Bte(t,e,r){return xn(this,void 0,void 0,function*(){let n=EL(),s=PA(e,r?.compressionMethod,r?.enableCrossOsArchive),i={key:t,version:s,cacheSize:r?.cacheSize};return yield hg("reserveCache",()=>xn(this,void 0,void 0,function*(){return n.postJson(gg("caches"),i)}))})}o(Bte,"reserveCache");function yte(t,e){return`bytes ${t}-${e}/*`}o(yte,"getContentRange");function t2e(t,e,r,n,s){return xn(this,void 0,void 0,function*(){B(`Uploading chunk of size ${s-n+1} bytes at offset ${n} with content range: ${yte(n,s)}`);let i={"Content-Type":"application/octet-stream","Content-Range":yte(n,s)},a=yield lp(`uploadChunk (start: ${n}, end: ${s})`,()=>xn(this,void 0,void 0,function*(){return t.sendStream("PATCH",e,r(),i)}));if(!aw(a.message.statusCode))throw new Error(`Cache service responded with ${a.message.statusCode} during upload chunk.`)})}o(t2e,"uploadChunk");function r2e(t,e,r,n){return xn(this,void 0,void 0,function*(){let s=eo(r),i=gg(`caches/${e.toString()}`),a=up.openSync(r,"r"),c=hL(n),l=V_("uploadConcurrency",c.uploadConcurrency),u=V_("uploadChunkSize",c.uploadChunkSize),d=[...new Array(l).keys()];B("Awaiting all uploads");let A=0;try{yield Promise.all(d.map(()=>xn(this,void 0,void 0,function*(){for(;A<s;){let p=Math.min(s-A,u),f=A,h=A+p-1;A+=u,yield t2e(t,i,()=>up.createReadStream(r,{fd:a,start:f,end:h,autoClose:!1}).on("error",g=>{throw new Error(`Cache upload failed because file read failed with ${g.message}`)}),f,h)}})))}finally{up.closeSync(a)}})}o(r2e,"uploadFile");function n2e(t,e,r){return xn(this,void 0,void 0,function*(){let n={size:r};return yield hg("commitCache",()=>xn(this,void 0,void 0,function*(){return t.postJson(gg(`caches/${e.toString()}`),n)}))})}o(n2e,"commitCache");function CL(t,e,r,n){return xn(this,void 0,void 0,function*(){if(hL(n).useAzureSdk){if(!r)throw new Error("Azure Storage SDK can only be used when a signed URL is provided.");yield nte(r,e,n)}else{let i=EL();B("Upload cache"),yield r2e(i,t,e,n),B("Commiting cache");let a=eo(e);S(`Cache Size: ~${Math.round(a/(1024*1024))} MB (${a} B)`);let c=yield n2e(i,t,a);if(!aw(c.statusCode))throw new Error(`Cache service responded with ${c.statusCode} during commit cache.`);S("Cache saved successfully")}})}o(CL,"saveCache");var mre=w(lre(),1),Ht=w(Gt(),1),ds=w(Gt(),1),Du=w(Gt(),1),Ou=w(Gt(),1),Mu=w(Gt(),1);var f1=w(Gt(),1),h1=w(Gt(),1),pre=w(Gt(),1),fre=w(Gt(),1),hre=w(Gt(),1);var d1=w(Gt(),1),A1=w(Gt(),1),ure=w(Gt(),1),dre=w(Gt(),1),Are=w(Gt(),1);var p1=class extends Are.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,dre.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,ure.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,n,s){let i=s??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=n.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?A1.UnknownFieldHandler.onRead:u)(this.typeName,i,c,l,d)}}return i}internalBinaryWrite(e,r,n){e.scope!==""&&r.tag(1,d1.WireType.LengthDelimited).string(e.scope),e.permission!=="0"&&r.tag(2,d1.WireType.Varint).int64(e.permission);let s=n.writeUnknownFields;return s!==!1&&(s==!0?A1.UnknownFieldHandler.onWrite:s)(this.typeName,e,r),r}},jw=new p1;var m1=class extends hre.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(()=>jw,"T")}])}create(e){let r={repositoryId:"0",scope:[]};return globalThis.Object.defineProperty(r,fre.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,pre.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,n,s){let i=s??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(jw.internalBinaryRead(e,e.uint32(),n));break;default:let u=n.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?h1.UnknownFieldHandler.onRead:u)(this.typeName,i,c,l,d)}}return i}internalBinaryWrite(e,r,n){e.repositoryId!==
Line truncated
|
||||
`));let n=yield v1(r,"create");yield _1(n,t)})}o(k1,"createTar");var Np=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(a){a(i)})}return o(s,"adopt"),new(r||(r=Promise))(function(i,a){function c(d){try{u(n.next(d))}catch(A){a(A)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(A){a(A)}}o(l,"rejected");function u(d){d.done?i(d.value):s(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})},Ri=class t extends Error{static{o(this,"ValidationError")}constructor(e){super(e),this.name="ValidationError",Object.setPrototypeOf(this,t.prototype)}},Lu=class t extends Error{static{o(this,"ReserveCacheError")}constructor(e){super(e),this.name="ReserveCacheError",Object.setPrototypeOf(this,t.prototype)}},D1="cache write denied:",e0=class t extends Lu{static{o(this,"CacheWriteDeniedError")}constructor(e){super(e),this.name="CacheWriteDeniedError",Object.setPrototypeOf(this,t.prototype)}},Cre=_I,t0=class t extends Error{static{o(this,"CacheReadDeniedError")}constructor(e){super(e),this.name="CacheReadDeniedError",Object.setPrototypeOf(this,t.prototype)}},r0=class t extends Error{static{o(this,"FinalizeCacheError")}constructor(e){super(e),this.name="FinalizeCacheError",Object.setPrototypeOf(this,t.prototype)}};function Ire(t){if(!t||t.length===0)throw new Ri("Path Validation Error: At least one directory or file path is required")}o(Ire,"checkPaths");function O1(t){if(t.length>512)throw new Ri(`Key Validation Error: ${t} cannot be larger than 512 characters.`);if(!/^[^,]*$/.test(t))throw new Ri(`Key Validation Error: ${t} cannot contain commas.`)}o(O1,"checkKey");function M1(){return mg()==="v2"?!!process.env.ACTIONS_RESULTS_URL:!!process.env.ACTIONS_CACHE_URL}o(M1,"isFeatureAvailable");function Bre(t,e,r,n){return Np(this,arguments,void 0,function*(s,i,a,c,l=!1){let u=mg();B(`Cache service version: ${u}`),Ire(s);let d=gL();if(!pte(d)){S(`Cache restore skipped: the effective cache-mode '${d}' does not permit reads.`),B(`Skipped restore for paths [${s.join(", ")}] with primary key '${i}'.`);return}return u==="v2"?yield EGe(s,i,a,c,l):yield gGe(s,i,a,c,l)})}o(Bre,"restoreCache");function gGe(t,e,r,n){return Np(this,arguments,void 0,function*(s,i,a,c,l=!1){var u;a=a||[];let d=[i,...a];if(B("Resolved Keys:"),B(JSON.stringify(d)),d.length>10)throw new Ri("Key Validation Error: Keys are limited to a maximum of 10.");for(let f of d)O1(f);let A=yield hm(),p="";try{let f;try{f=yield Ite(d,s,{compressionMethod:A,enableCrossOsArchive:l})}catch(g){let y=(u=g?.message)!==null&&u!==void 0?u:"";throw y.includes(Cre)?new t0(y):g}if(!f?.archiveLocation)return;if(c?.lookupOnly)return S("Lookup only - skipping download"),f.cacheKey;p=Pg.join(yield pm(),vc(A)),B(`Archive Path: ${p}`),yield yL(f.archiveLocation,p,c),Ia()&&(yield _g(p,A));let h=eo(p);return S(`Cache Size: ~${Math.round(h/(1024*1024))} MB (${h} B)`),yield P1(p,A),S("Cache restored successfully"),f.cacheKey}catch(f){let h=f;if(h.name===Ri.name)throw f;h instanceof to&&typeof h.statusCode=="number"&&h.statusCode>=500?BA(`Failed to restore: ${f.message}`):Je(`Failed to restore: ${f.message}`)}finally{try{yield fm(p)}catch(f){B(`Failed to delete archive: ${f}`)}}})}o(gGe,"restoreCacheV1");function EGe(t,e,r,n){return Np(this,arguments,void 0,function*(s,i,a,c,l=!1){var u;c=Object.assign(Object.assign({},c),{useAzureSdk:!0}),a=a||[];let d=[i,...a];if(B("Resolved Keys:"),B(JSON.stringify(d)),d.length>10)throw new Ri("Key Validation Error: Keys are limited to a maximum of 10.");for(let p of d)O1(p);let A="";try{let p=T1(),f=yield hm(),h={key:i,restoreKeys:a,version:PA(s,f,l)},g;try{g=yield p.GetCacheEntryDownloadURL(h)}catch(C){let I=(u=C?.message)!==null&&u!==void 0?u:"";throw I.includes(Cre)?new t0(I):C}if(!g.ok){B(`Cache not found for version ${h.version} of keys: ${d.join(", ")}`);return}if(h.key!==g.matchedKey?S(`Cache hit for restore-key: ${g.matchedKey}`):S(`Cache hit for: ${g.matchedKey}`),c?.lookupOnly)return S("Lookup only - skipping download"),g.matchedKey;A=Pg.join(yield pm(),vc(f)),B(`Archive path: ${A}`),B(`Starting download of archive to: ${A}`),yield yL(g.signedDownloadUrl,A,c);let E=eo(A);return S(`Cache Size: ~${Math.round(E/(1024*1024))} MB (${E} B)`),Ia()&&(yield _g(A,f)),yield P1(A,f),S("Cache restored successfully"),g.matchedKey}catch(p){let f=p;if(f.name===Ri.name)throw p;f instanceof to&&typeof f.statusCode=="number"&&f.statusCode>=500?BA(`Failed to restore: ${p.message}`):Je(`Failed to restore: ${p.message}`)}finally{try{A&&(yield fm(A))}catch(p){B(`Failed to delete archive: ${p}`)}}})}o(EGe,"restoreCacheV2");function L1(t,e,r){return Np(this,arguments,void 0,function*(n,s,i,a=!1){let c=mg();B(`Cache service version: ${c}`),Ire(n),O1(s);let l=gL();return fte(l)?c==="v2"?yield CGe(n,s,i,a):yield yGe(n,s,i,a):(S(`Cache save skipped: the effective cache-mode '${l}' does not permit writes.`),B(`Skipped save for paths [${n.join(", ")}] with key '${s}'.`),-1)})}o(L1,"saveCache");function yGe(t,e,r){return Np(this,arguments,void
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(n,s,i,a){let{bom:c,comment_no_infix:l,delimiter_auto:u,encoding:d,from_line:A,ltrim:p,max_record_size:f,raw:h,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:ce,delimiterDiscovered:Me,delimiterBufPrevious:qe,rawBuffer:Ye,escapeIsQuote:Ce}=this.state;if(!Me&&u){let Ge;if(qe===void 0?Ge=n:qe!==void 0&&n===void 0?Ge=qe:Ge=Buffer.concat([qe,n]),n=void 0,s||Ge.length>u.size)this.options.delimiter=[Buffer.from(Ooe(Ge,this.options.delimiter_auto))],this.state.previousBuf=Ge,this.state.delimiterBufPrevious=void 0,this.state.delimiterDiscovered=!0;else{this.state.delimiterBufPrevious=Ge;return}}let{previousBuf:tt}=this.state,de;if(tt===void 0)if(n===void 0){a();return}else de=n;else tt!==void 0&&n===void 0?de=tt:de=Buffer.concat([tt,n]);if(ce===!1)if(c===!1)this.state.bomSkipped=!0;else if(de.length<3){if(s===!1){this.state.previousBuf=de;return}}else{for(let Ge in Gp)if(Gp[Ge].compare(de,0,Gp[Ge].length)===0){let Oi=Gp[Ge].length;this.state.bufBytesStart+=Oi,de=de.slice(Oi);let nc=qp({...this.original_options,encoding:Ge});for(let bt in nc)this.options[bt]=nc[bt];({comment:b,escape:N,quote:Q}=this.options);break}this.state.bomSkipped=!0}let Gr=de.length,$;for($=0;$<Gr&&!this.__needMoreData($,Gr,s);$++){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(de,$)&&(D=this.options.record_delimiter);let Ge=de[$];if(h===!0&&Ye.append(Ge),(Ge===zYe||Ge===$Ye)&&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(de,$,Ge)&&$+N.length<Gr)if(Ce){if(this.__isQuote(de,$+N.length)){this.state.escaping=!0,$+=N.length-1;continue}}else{this.state.escaping=!0,$+=N.length-1;continue}if(this.state.commenting===!1&&this.__isQuote(de,$))if(this.state.quoting===!0){let bt=de[$+Q.length],Mi=y&&this.__isCharTrimable(de,$+Q.length),Fn=b!==null&&this.__compareBytes(b,de,$+Q.length,bt),El=this.__isDelimiter(de,$+Q.length,bt),LE=D.length===0?this.__autoDiscoverRecordDelimiter(de,$+Q.length):this.__isRecordDelimiter(bt,de,$+Q.length);if(N!==null&&this.__isEscape(de,$,Ge)&&this.__isQuote(de,$+N.length))$+=N.length-1;else if(!bt||El||LE||Fn||Mi){this.state.quoting=!1,this.state.wasQuoting=!0,$+=Q.length-1;continue}else if(g===!1){let hG=this.__error(new Se("CSV_INVALID_CLOSING_QUOTE",["Invalid Closing Quote:",`got "${String.fromCharCode(bt)}"`,`at line ${this.info.lines}`,"instead of delimiter, record delimiter, trimable character","(if activated) or comment"],this.options,this.__infoField()));if(hG!==void 0)return hG}else this.state.quoting=!1,this.state.wasQuoting=!0,this.state.field.prepend(Q),$+=Q.length-1}else if(this.state.field.length!==0){if(g===!1){let bt=this.__infoField(),Mi=Object.keys(Gp).map(El=>Gp[El].equals(this.state.field.toString())?El:!1).filter(Boolean)[0],Fn=this.__error(new Se("INVALID_OPENING_QUOTE",["Invalid Opening Quote:",`a quote is found on field ${JSON.stringify(bt.column)} at line ${bt.lines}, value is ${JSON.stringify(this.state.field.toString(d))}`,Mi?`(${Mi} bom)`:void 0],this.options,bt,{field:this.state.field}));if(Fn!==void 0)return Fn}}else{this.state.quoting=!0,$+=Q.length-1;continue}if(this.state.quoting===!1){let bt=this.__isRecordDelimiter(Ge,de,$);if(bt!==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(),$+=bt-1;continue}if(E===!0&&this.state.wasQuoting===!1&&this.state.record.length===0&&this.state.field.length===0){this.info.empty_lines++,$+=bt-1;continue}this.info.bytes=this.state.bufBytesStart+$;let El=this.__onField();if(El!==void 0)return El;this.info.bytes=this.state.bufBytesStart+$+bt;let LE=this.__onRecord(i);if(LE!==void 0)return LE;if(C!==-1&&this.info.records>=C){this.state.stop=!0,a();return}}this.state.commenting=!1,$+=bt-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,de,$,Ge)!==0){this.state.commenting=!0;continue}let Mi=this.__isDelimiter(de,$,Ge);if(Mi!==0){this.info.bytes=this.state.bufBytesStart+$;let Fn=this.__onField();if(Fn!==void 0)return Fn;$+=Mi-1;continue}}}if(this.state.commenting===!1&&f!==0&&this.state.record_length+this.state.field.length>f)return this.__error(new Se("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 Oi=p===!1||th
Line truncated
|
||||
`+n(i)+s(i),c=(0,WZ.createHmac)("sha256",t.accountKey).update(a,"utf8").digest("base64");i.headers.set(ae.AUTHORIZATION,`SharedKey ${t.accountName}:${c}`)}o(e,"signRequest");function r(i,a){let c=i.headers.get(a);return!c||a===ae.CONTENT_LENGTH&&c==="0"?"":c}o(r,"getHeaderValueToSign");function n(i){let a=[];for(let[l,u]of i.headers)l.toLowerCase().startsWith(ae.PREFIX_FOR_STORAGE)&&a.push({name:l,value:u});a.sort((l,u)=>eb(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(n,"getCanonicalizedHeadersString");function s(i){let a=KB(i.url)||"/",c="";c+=`/${t.accountName}${a}`;let l=XB(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(s,"getCanonicalizedResourceString"),{name:D1e,async sendRequest(i,a){return e(i),a(i)}}}o(_k,"storageSharedKeyCredentialPolicy");var O1e="storageRequestFailureDetailsParserPolicy";function jZ(){return{name:O1e,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(jZ,"storageRequestFailureDetailsParserPolicy");var KZ=require("node:crypto");var tb=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,KZ.createHmac)("sha256",this.key).update(e,"utf8").digest("base64")}};var rb="12.31.0",nb="2026-02-06";var sb="https://storage.azure.com/.default",Pa={Parameters:{FORCE_BROWSER_NO_CACHE:"_",SIGNATURE:"sig",SNAPSHOT:"snapshot",VERSIONID:"versionid",TIMEOUT:"timeout"}};var Bi="",Pk="*",M1e=1*1024*1024;var L1e=4*M1e;var XZ="AES256",ZZ="DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;",e7=["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"],t7=["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"],r7="BlobUsesCustomerSpecifiedEncryption",n7="BlobDoesNotUseCustomerSpecifiedEncryption",s7=["10000","10001","10002","10003","10004","10100","10101","10102","10103","10104","11000","11001","11002","11003","11004","11100","11101","11102","11103","11104"];function ka(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(ka,"isPipelineLike");var tg=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 Lt(t,e={}){t||(t=new ft);let r=new tg([],e);return r._credential=t,r}o(Lt,"newPipeline");function F1e(t){let e=[U1e,i7,q1e,G1e,H1e,V1e,$1e];if(t.factories.length){let r=t.factories.filter(n=>!e.some(s=>s(n)));if(r.length){let n=r.some(s=>z1e(s));return{wrappedPolicies:ck(r),afterRetry:n}}}}o(F1e,"processDownlevelPipeline");function kk(t){let{httpClient:e,...r}=t.options,n=t._coreHttpClient;n||(n=e?lk(e):vk(),t._coreHttpClient=n);let s=t._corePipeline;if(!s){let i=`azsdk-js-azure-storage-blob/${rb}`,a=r.userAgentOptions&&r.userAgentOptions.userAgentPrefix?`${r.userAgentOptions.userAgentPrefix} ${i}`:`${i}`;s=Mm({...r,loggingOptions:{additionalAllowedHeaderNames:e7,additionalAllowedQueryParameters:t7,logger:zB.info},userAgentOptions:{userAgentPrefix:a},serializationOptions:{stringifyXML:VB,serializerOptions:{xml:{xmlCharKey:"#"}}},deserializationOptions:{parseXML:Rk,serializerOptions:{xml:{xmlCharKey:"#"}}}}),s.removePolicy({phase:"Retry"}),s.removePolicy({name:LP}),s.addPolicy(JZ()),s.addPolicy(YZ(r.retryOptions),{phase:"Retry"}),s.addPo
Line truncated
|
||||
`),i=e.computeHMACSHA256(s);return{sasQueryParameters:new xi(t.version,i,n,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType),stringToSign:s}}o(FUe,"generateBlobSASQueryParameters20150405");function UUe(t,e){if(t=vu(t),!t.identifier&&!(t.permissions&&t.expiresOn))throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let s;t.permissions&&(t.blobName?s=Qo.parse(t.permissions.toString()).toString():s=Ro.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Fe(t.startsOn,!1):"",t.expiresOn?Fe(t.expiresOn,!1):"",Tu(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?Ni(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.cacheControl?t.cacheControl:"",t.contentDisposition?t.contentDisposition:"",t.contentEncoding?t.contentEncoding:"",t.contentLanguage?t.contentLanguage:"",t.contentType?t.contentType:""].join(`
|
||||
`),a=e.computeHMACSHA256(i);return{sasQueryParameters:new xi(t.version,a,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(UUe,"generateBlobSASQueryParameters20181109");function qUe(t,e){if(t=vu(t),!t.identifier&&!(t.permissions&&t.expiresOn))throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let s;t.permissions&&(t.blobName?s=Qo.parse(t.permissions.toString()).toString():s=Ro.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Fe(t.startsOn,!1):"",t.expiresOn?Fe(t.expiresOn,!1):"",Tu(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?Ni(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.encryptionScope,t.cacheControl?t.cacheControl:"",t.contentDisposition?t.contentDisposition:"",t.contentEncoding?t.contentEncoding:"",t.contentLanguage?t.contentLanguage:"",t.contentType?t.contentType:""].join(`
|
||||
`),a=e.computeHMACSHA256(i);return{sasQueryParameters:new xi(t.version,a,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,void 0,void 0,void 0,t.encryptionScope),stringToSign:i}}o(qUe,"generateBlobSASQueryParameters20201206");function GUe(t,e){if(t=vu(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let s;t.permissions&&(t.blobName?s=Qo.parse(t.permissions.toString()).toString():s=Ro.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Fe(t.startsOn,!1):"",t.expiresOn?Fe(t.expiresOn,!1):"",Tu(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Fe(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Fe(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.ipRange?Ni(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
|
||||
`),a=e.computeHMACSHA256(i);return{sasQueryParameters:new xi(t.version,a,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,e.userDelegationKey),stringToSign:i}}o(GUe,"generateBlobSASQueryParametersUDK20181109");function HUe(t,e){if(t=vu(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let s;t.permissions&&(t.blobName?s=Qo.parse(t.permissions.toString()).toString():s=Ro.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Fe(t.startsOn,!1):"",t.expiresOn?Fe(t.expiresOn,!1):"",Tu(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Fe(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Fe(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?Ni(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
|
||||
`),a=e.computeHMACSHA256(i);return{sasQueryParameters:new xi(t.version,a,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,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId),stringToSign:i}}o(HUe,"generateBlobSASQueryParametersUDK20200210");function VUe(t,e){if(t=vu(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let s;t.permissions&&(t.blobName?s=Qo.parse(t.permissions.toString()).toString():s=Ro.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Fe(t.startsOn,!1):"",t.expiresOn?Fe(t.expiresOn,!1):"",Tu(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Fe(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Fe(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?Ni(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
|
||||
`),a=e.computeHMACSHA256(i);return{sasQueryParameters:new xi(t.version,a,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,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId,t.encryptionScope),stringToSign:i}}o(VUe,"generateBlobSASQueryParametersUDK20201206");function zUe(t,e){if(t=vu(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let s;t.permissions&&(t.blobName?s=Qo.parse(t.permissions.toString()).toString():s=Ro.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Fe(t.startsOn,!1):"",t.expiresOn?Fe(t.expiresOn,!1):"",Tu(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Fe(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Fe(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,void 0,t.delegatedUserObjectId,t.ipRange?Ni(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
|
||||
`),a=e.computeHMACSHA256(i);return{sasQueryParameters:new xi(t.version,a,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,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId,t.encryptionScope,t.delegatedUserObjectId),stringToSign:i}}o(zUe,"generateBlobSASQueryParametersUDK20250705");function Tu(t,e,r){let n=[`/blob/${t}/${e}`];return r&&n.push(`/${r}`),n.join("")}o(Tu,"getCanonicalName");function vu(t){let e=t.version?t.version:nb;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(vu,"SASSignatureValuesSanityCheckAndAutofill");var pg=class{static{o(this,"BlobLeaseClient")}_leaseId;_url;_containerOrBlobOperation;_isContainer;get leaseId(){return this._leaseId}get url(){return this._url}constructor(e,r){let n=e.storageClientContext;this._url=e.url,e.name===void 0?(this._isContainer=!0,this._containerOrBlobOperation=n.container):(this._isContainer=!1,this._containerOrBlobOperation=n.blob),r||(r=WA()),this._leaseId=r}async acquireLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==Bi||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==Bi||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 n=>K(await this._containerOrBlobOperation.acquireLease({abortSignal:r.abortSignal,duration:e,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},proposedLeaseId:this._leaseId,tracingOptions:n.tracingOptions})))}async changeLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==Bi||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==Bi||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 n=>{let s=K(await this._containerOrBlobOperation.changeLease(this._leaseId,e,{abortSignal:r.abortSignal,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},tracingOptions:n.tracingOptions}));return this._leaseId=e,s})}async releaseLease(e={}){if(this._isContainer&&(e.conditions?.ifMatch&&e.conditions?.ifMatch!==Bi||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==Bi||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=>K(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!==Bi||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==Bi||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"}};hp.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var Du=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"}};Du.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var bg=class extends Error{static{o(this,"RateLimitError")}constructor(e){super(e),this.name="RateLimitError"}};var G2e=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(a){a(i)})}return o(s,"adopt"),new(r||(r=Promise))(function(i,a){function c(d){try{u(n.next(d))}catch(A){a(A)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(A){a(A)}}o(l,"rejected");function u(d){d.done?i(d.value):s(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})},IL=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),n=Date.now()-this.startTime,s=(e/(1024*1024)/(n/1e3)).toFixed(1);S(`Sent ${e} of ${this.contentLength} (${r}%), ${s} 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 cte(t,e,r){return G2e(this,void 0,void 0,function*(){var n;let s=new qa(t),i=s.getBlockBlobClient(),a=new IL((n=r?.archiveSizeBytes)!==null&&n!==void 0?n:0),c={blockSize:r?.uploadChunkSize,concurrency:r?.uploadConcurrency,maxSingleShotSize:128*1024*1024,onProgress:a.onProgress()};try{a.startDisplayTimer(),B(`BlobClient: ${s.name}:${s.accountName}:${s.containerName}`);let l=yield i.uploadFile(e,c);if(l._response.status>=400)throw new cw(`uploadCacheArchiveSDK: upload failed with status code ${l._response.status}`);return l}catch(l){throw Ve(`uploadCacheArchiveSDK: internal error uploading cache archive: ${l.message}`),l}finally{a.stopDisplayTimer()}})}o(cte,"uploadCacheArchiveSDK");var ute=w(require("buffer"),1),To=w(require("fs"),1),dte=w(require("stream"),1),Ate=w(require("util"),1);var lw=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(a){a(i)})}return o(s,"adopt"),new(r||(r=Promise))(function(i,a){function c(d){try{u(n.next(d))}catch(A){a(A)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(A){a(A)}}o(l,"rejected");function u(d){d.done?i(d.value):s(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})};function uw(t){return t?t>=200&&t<300:!1}o(uw,"isSuccessStatusCode");function H2e(t){return t?t>=500:!0}o(H2e,"isServerErrorStatusCode");function V2e(t){return t?[wt.BadGateway,wt.ServiceUnavailable,wt.GatewayTimeout].includes(t):!1}o(V2e,"isRetryableStatusCode");function z2e(t){return lw(this,void 0,void 0,function*(){return new Promise(e=>setTimeout(e,t))})}o(z2e,"sleep");function lte(t,e,r){return lw(this,arguments,void 0,function*(n,s,i,a=PI,c=kI,l=void 0){let u="",d=1;for(;d<=a;){let A,p,f=!1;try{A=yield s()}catch(h){l&&(A=l(h)),f=!0,u=h.message}if(A&&(p=i(A),!H2e(p)))return A;if(p&&(f=V2e(p),u=`Cache service responded with ${p}`),B(`${n} - Attempt ${d} of ${a} failed with error: ${u}`),!f){B(`${n} - Error is not retryable`);break}yield z2e(c),d++}throw Error(`${n} failed: ${u}`)})}o(lte,"retry");function wg(t,e){return lw(this,arguments,void 0,function*(r,n,s=PI,i=kI){return yield lte(r,n,a=>a.statusCode,s,i,a=>{if(a instanceof to)return{statusCode:a.statusCode,result:null,headers:{},error:a}})})}o(wg,"retryTypedResponse");function mp(t,e){return lw(this,arguments,void 0,function*(r,n,s=PI,i=kI){return yield lte(r,n,a=>a.message.statusCode,s,i)})}o(mp,"retryHttpClientResponse");var Us=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(a){a(i)})}return o(s,"adopt"),new(r||(r=Promise))(function(i,a){function c(d){try{u(n.next(d))}catch(A){a(A)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(A){a(A)}}o(l,"rejected");function u(d){d.done?i(d.value):s(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})};function $2e(t,e){return Us(this,void 0,void 0,function*(){yield Ate.promisify(dte.pipeline)(t.message,e)})}o($2e,"pipeResponseToStream");var dw=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){th
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(Z2e,"printCachesListForDiagnostics");function NL(t,e,r){return Qn(this,void 0,void 0,function*(){let n=new Ste.URL(t),s=mte(r);n.hostname.endsWith(".blob.core.windows.net")?s.useAzureSdk?yield fte(t,e,s):s.concurrentBlobDownloads?yield pte(t,e,s):yield Aw(t,e):yield Aw(t,e)})}o(NL,"downloadCache");function xte(t,e,r){return Qn(this,void 0,void 0,function*(){let n=SL(),s=UA(e,r?.compressionMethod,r?.enableCrossOsArchive),i={key:t,version:s,cacheSize:r?.cacheSize};return yield wg("reserveCache",()=>Qn(this,void 0,void 0,function*(){return n.postJson(Ng("caches"),i)}))})}o(xte,"reserveCache");function wte(t,e){return`bytes ${t}-${e}/*`}o(wte,"getContentRange");function eqe(t,e,r,n,s){return Qn(this,void 0,void 0,function*(){B(`Uploading chunk of size ${s-n+1} bytes at offset ${n} with content range: ${wte(n,s)}`);let i={"Content-Type":"application/octet-stream","Content-Range":wte(n,s)},a=yield mp(`uploadChunk (start: ${n}, end: ${s})`,()=>Qn(this,void 0,void 0,function*(){return t.sendStream("PATCH",e,r(),i)}));if(!uw(a.message.statusCode))throw new Error(`Cache service responded with ${a.message.statusCode} during upload chunk.`)})}o(eqe,"uploadChunk");function tqe(t,e,r,n){return Qn(this,void 0,void 0,function*(){let s=eo(r),i=Ng(`caches/${e.toString()}`),a=gp.openSync(r,"r"),c=BL(n),l=K_("uploadConcurrency",c.uploadConcurrency),u=K_("uploadChunkSize",c.uploadChunkSize),d=[...new Array(l).keys()];B("Awaiting all uploads");let A=0;try{yield Promise.all(d.map(()=>Qn(this,void 0,void 0,function*(){for(;A<s;){let p=Math.min(s-A,u),f=A,h=A+p-1;A+=u,yield eqe(t,i,()=>gp.createReadStream(r,{fd:a,start:f,end:h,autoClose:!1}).on("error",m=>{throw new Error(`Cache upload failed because file read failed with ${m.message}`)}),f,h)}})))}finally{gp.closeSync(a)}})}o(tqe,"uploadFile");function rqe(t,e,r){return Qn(this,void 0,void 0,function*(){let n={size:r};return yield wg("commitCache",()=>Qn(this,void 0,void 0,function*(){return t.postJson(Ng(`caches/${e.toString()}`),n)}))})}o(rqe,"commitCache");function xL(t,e,r,n){return Qn(this,void 0,void 0,function*(){if(BL(n).useAzureSdk){if(!r)throw new Error("Azure Storage SDK can only be used when a signed URL is provided.");yield cte(r,e,n)}else{let i=SL();B("Upload cache"),yield tqe(i,t,e,n),B("Commiting cache");let a=eo(e);S(`Cache Size: ~${Math.round(a/(1024*1024))} MB (${a} B)`);let c=yield rqe(i,t,a);if(!uw(c.statusCode))throw new Error(`Cache service responded with ${c.statusCode} during commit cache.`);S("Cache saved successfully")}})}o(xL,"saveCache");var Ire=w(fre(),1),qt=w(Ut(),1),ds=w(Ut(),1),Uu=w(Ut(),1),qu=w(Ut(),1),Gu=w(Ut(),1);var I1=w(Ut(),1),B1=w(Ut(),1),Ere=w(Ut(),1),yre=w(Ut(),1),Cre=w(Ut(),1);var E1=w(Ut(),1),y1=w(Ut(),1),hre=w(Ut(),1),mre=w(Ut(),1),gre=w(Ut(),1);var C1=class extends gre.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,mre.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,hre.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,n,s){let i=s??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=n.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?y1.UnknownFieldHandler.onRead:u)(this.typeName,i,c,l,d)}}return i}internalBinaryWrite(e,r,n){e.scope!==""&&r.tag(1,E1.WireType.LengthDelimited).string(e.scope),e.permission!=="0"&&r.tag(2,E1.WireType.Varint).int64(e.permission);let s=n.writeUnknownFields;return s!==!1&&(s==!0?y1.UnknownFieldHandler.onWrite:s)(this.typeName,e,r),r}},Zw=new C1;var b1=class extends Cre.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(()=>Zw,"T")}])}create(e){let r={repositoryId:"0",scope:[]};return globalThis.Object.defineProperty(r,yre.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,Ere.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,n,s){let i=s??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(Zw.internalBinaryRead(e,e.uint32(),n));break;default:let u=n.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?B1.UnknownFieldHandler.onRead:u)(this.typeName,i,c,l,d)}}return i}internalBinaryWrite(e,r,n){e.repositoryId!==
Line truncated
|
||||
`));let{commands:n}=yield wre(r,"create");yield Nre(n,t)})}o(U1,"createTar");var Pp=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(a){a(i)})}return o(s,"adopt"),new(r||(r=Promise))(function(i,a){function c(d){try{u(n.next(d))}catch(A){a(A)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(A){a(A)}}o(l,"rejected");function u(d){d.done?i(d.value):s(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})},Ti=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)}},q1="cache write denied:",n0=class t extends Hu{static{o(this,"CacheWriteDeniedError")}constructor(e){super(e),this.name="CacheWriteDeniedError",Object.setPrototypeOf(this,t.prototype)}},Qre=DI,s0=class t extends Error{static{o(this,"CacheReadDeniedError")}constructor(e){super(e),this.name="CacheReadDeniedError",Object.setPrototypeOf(this,t.prototype)}},i0=class t extends Error{static{o(this,"FinalizeCacheError")}constructor(e){super(e),this.name="FinalizeCacheError",Object.setPrototypeOf(this,t.prototype)}};function Rre(t){if(!t||t.length===0)throw new Ti("Path Validation Error: At least one directory or file path is required")}o(Rre,"checkPaths");function G1(t){if(t.length>512)throw new Ti(`Key Validation Error: ${t} cannot be larger than 512 characters.`);if(!/^[^,]*$/.test(t))throw new Ti(`Key Validation Error: ${t} cannot contain commas.`)}o(G1,"checkKey");function H1(){return Sg()==="v2"?!!process.env.ACTIONS_RESULTS_URL:!!process.env.ACTIONS_CACHE_URL}o(H1,"isFeatureAvailable");function Tre(t,e,r,n){return Pp(this,arguments,void 0,function*(s,i,a,c,l=!1){let u=Sg();B(`Cache service version: ${u}`),Rre(s);let d=wL();if(!Ete(d)){S(`Cache restore skipped: the effective cache-mode '${d}' does not permit reads.`),B(`Skipped restore for paths [${s.join(", ")}] with primary key '${i}'.`);return}return u==="v2"?yield gHe(s,i,a,c,l):yield mHe(s,i,a,c,l)})}o(Tre,"restoreCache");function mHe(t,e,r,n){return Pp(this,arguments,void 0,function*(s,i,a,c,l=!1){var u;a=a||[];let d=[i,...a];if(B("Resolved Keys:"),B(JSON.stringify(d)),d.length>10)throw new Ti("Key Validation Error: Keys are limited to a maximum of 10.");for(let f of d)G1(f);let A=yield wm(),p="";try{let f;try{f=yield Nte(d,s,{compressionMethod:A,enableCrossOsArchive:l})}catch(m){let y=(u=m?.message)!==null&&u!==void 0?u:"";throw y.includes(Qre)?new s0(y):m}if(!f?.archiveLocation)return;if(c?.lookupOnly)return S("Lookup only - skipping download"),f.cacheKey;p=Gg.join(yield lu(),Pc(A)),B(`Archive Path: ${p}`),yield NL(f.archiveLocation,p,c),ba()&&(yield qg(p,A));let h=eo(p);return S(`Cache Size: ~${Math.round(h/(1024*1024))} MB (${h} B)`),yield F1(p,A),S("Cache restored successfully"),f.cacheKey}catch(f){let h=f;if(h.name===Ti.name)throw f;h instanceof to&&typeof h.statusCode=="number"&&h.statusCode>=500?RA(`Failed to restore: ${f.message}`):Ve(`Failed to restore: ${f.message}`)}finally{try{yield bm(p)}catch(f){B(`Failed to delete archive: ${f}`)}}})}o(mHe,"restoreCacheV1");function gHe(t,e,r,n){return Pp(this,arguments,void 0,function*(s,i,a,c,l=!1){var u;c=Object.assign(Object.assign({},c),{useAzureSdk:!0}),a=a||[];let d=[i,...a];if(B("Resolved Keys:"),B(JSON.stringify(d)),d.length>10)throw new Ti("Key Validation Error: Keys are limited to a maximum of 10.");for(let p of d)G1(p);let A="";try{let p=M1(),f=yield wm(),h={key:i,restoreKeys:a,version:UA(s,f,l)},m;try{m=yield p.GetCacheEntryDownloadURL(h)}catch(C){let I=(u=C?.message)!==null&&u!==void 0?u:"";throw I.includes(Qre)?new s0(I):C}if(!m.ok){B(`Cache not found for version ${h.version} of keys: ${d.join(", ")}`);return}if(h.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;A=Gg.join(yield lu(),Pc(f)),B(`Archive path: ${A}`),B(`Starting download of archive to: ${A}`),yield NL(m.signedDownloadUrl,A,c);let E=eo(A);return S(`Cache Size: ~${Math.round(E/(1024*1024))} MB (${E} B)`),ba()&&(yield qg(A,f)),yield F1(A,f),S("Cache restored successfully"),m.matchedKey}catch(p){let f=p;if(f.name===Ti.name)throw p;f instanceof to&&typeof f.statusCode=="number"&&f.statusCode>=500?RA(`Failed to restore: ${p.message}`):Ve(`Failed to restore: ${p.message}`)}finally{try{A&&(yield bm(A))}catch(p){B(`Failed to delete archive: ${p}`)}}})}o(gHe,"restoreCacheV2");function V1(t,e,r){return Pp(this,arguments,void 0,function*(n,s,i,a=!1){let c=Sg();B(`Cache service version: ${c}`),Rre(n),G1(s);let l=wL();return yte(l)?c==="v2"?yield yHe(n,s,i,a):yield EHe(n,s,i,a):(S(`Cache save skipped: the effective cache-mode '${l}' does not permit writes.`),B(`Skipped save for paths [${n.join(", ")}] with key '${s}'.`),-1)})}o(V1,"saveCache");function EHe(t,e,r){return Pp(this,ar
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(n,s,i,a){let{bom:c,comment_no_infix:l,delimiter_auto:u,encoding:d,from_line:A,ltrim:p,max_record_size:f,raw:h,relax_quotes:m,rtrim:y,skip_empty_lines:E,to:C,to_line:I}=this.options,{comment:b,escape:N,quote:R,record_delimiter:D}=this.options,{bomSkipped:xe,delimiterDiscovered:ut,delimiterBufPrevious:je,rawBuffer:Ze,escapeIsQuote:Ie}=this.state;if(!ut&&u){let ze;if(je===void 0?ze=n:je!==void 0&&n===void 0?ze=je:ze=Buffer.concat([je,n]),n=void 0,s||ze.length>u.size)this.options.delimiter=[Buffer.from(Yoe(ze,this.options.delimiter_auto))],this.state.previousBuf=ze,this.state.delimiterBufPrevious=void 0,this.state.delimiterDiscovered=!0;else{this.state.delimiterBufPrevious=ze;return}}let{previousBuf:Vt}=this.state,me;if(Vt===void 0)if(n===void 0){a();return}else me=n;else Vt!==void 0&&n===void 0?me=Vt:me=Buffer.concat([Vt,n]);if(xe===!1)if(c===!1)this.state.bomSkipped=!0;else if(me.length<3){if(s===!1){this.state.previousBuf=me;return}}else{for(let ze in Kp)if(Kp[ze].compare(me,0,Kp[ze].length)===0){let sc=Kp[ze].length;this.state.bufBytesStart+=sc,me=me.slice(sc);let GE=jp({...this.original_options,encoding:ze});for(let Zt in GE)this.options[Zt]=GE[Zt];({comment:b,escape:N,quote:R}=this.options);break}this.state.bomSkipped=!0}let oi=me.length,$;for($=0;$<oi&&!this.__needMoreData($,oi,s);$++){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(me,$)&&(D=this.options.record_delimiter);let ze=me[$];if(h===!0&&Ze.append(ze),(ze===K3e||ze===X3e)&&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(me,$,ze)&&$+N.length<oi)if(Ie){if(this.__isQuote(me,$+N.length)){this.state.escaping=!0,$+=N.length-1;continue}}else{this.state.escaping=!0,$+=N.length-1;continue}if(this.state.commenting===!1&&this.__isQuote(me,$))if(this.state.quoting===!0){let Zt=me[$+R.length],Il=y&&this.__isCharTrimable(me,$+R.length),ra=b!==null&&this.__compareBytes(b,me,$+R.length,Zt),Bl=this.__isDelimiter(me,$+R.length,Zt),HE=D.length===0?this.__autoDiscoverRecordDelimiter(me,$+R.length):this.__isRecordDelimiter(Zt,me,$+R.length);if(N!==null&&this.__isEscape(me,$,ze)&&this.__isQuote(me,$+N.length))$+=N.length-1;else if(!Zt||Bl||HE||ra||Il){this.state.quoting=!1,this.state.wasQuoting=!0,$+=R.length-1;continue}else if(m===!1){let wG=this.__error(new we("CSV_INVALID_CLOSING_QUOTE",["Invalid Closing Quote:",`got "${String.fromCharCode(Zt)}"`,`at line ${this.info.lines}`,"instead of delimiter, record delimiter, trimable character","(if activated) or comment"],this.options,this.__infoField()));if(wG!==void 0)return wG}else this.state.quoting=!1,this.state.wasQuoting=!0,this.state.field.prepend(R),$+=R.length-1}else if(this.state.field.length!==0){if(m===!1){let Zt=this.__infoField(),Il=Object.keys(Kp).map(Bl=>Kp[Bl].equals(this.state.field.toString())?Bl:!1).filter(Boolean)[0],ra=this.__error(new we("INVALID_OPENING_QUOTE",["Invalid Opening Quote:",`a quote is found on field ${JSON.stringify(Zt.column)} at line ${Zt.lines}, value is ${JSON.stringify(this.state.field.toString(d))}`,Il?`(${Il} bom)`:void 0],this.options,Zt,{field:this.state.field}));if(ra!==void 0)return ra}}else{this.state.quoting=!0,$+=R.length-1;continue}if(this.state.quoting===!1){let Zt=this.__isRecordDelimiter(ze,me,$);if(Zt!==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(),$+=Zt-1;continue}if(E===!0&&this.state.wasQuoting===!1&&this.state.record.length===0&&this.state.field.length===0){this.info.empty_lines++,$+=Zt-1;continue}this.info.bytes=this.state.bufBytesStart+$;let Bl=this.__onField();if(Bl!==void 0)return Bl;this.info.bytes=this.state.bufBytesStart+$+Zt;let HE=this.__onRecord(i);if(HE!==void 0)return HE;if(C!==-1&&this.info.records>=C){this.state.stop=!0,a();return}}this.state.commenting=!1,$+=Zt-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,me,$,ze)!==0){this.state.commenting=!0;continue}let Il=this.__isDelimiter(me,$,ze);if(Il!==0){this.info.bytes=this.state.bufBytesStart+$;let ra=this.__onField();if(ra!==void 0)return ra;$+=Il-1;continue}}}if(this.state.commenting===!1&&f!==0&&this.state.record_length+this.state.field.length>f)return this.__error(new we("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 sc=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]!==n[s+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(n){let{encoding:s,raw:i,skip_records_with_error:a}=this.options,c=typeof n=="string"?new Error(n):n;if(a){if(this.state.recordHasError=!0,this.options.on_skip!==void 0)try{this.options.on_skip(c,i?this.state.rawBuffer.toString(s):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:n,raw:s,encoding:i}=this.options;return{...this.__infoDataSet(),bytes_records:this.info.bytes,error:this.state.error,header:n===!0,index:this.state.record.length,raw:s?this.state.rawBuffer.toString(i):void 0}},"__infoRecord"),__infoField:o(function(){let{columns:n}=this.options,s=Array.isArray(n),i=this.info.bytes_records;return{...this.__infoRecord(),bytes_records:i,column:s===!0?n.length>this.state.record.length?n[this.state.record.length].name:null:this.state.record.length,quoting:this.state.wasQuoting}},"__infoField")}},"transform");var ms=o(function(t,e={}){typeof t=="string"&&(t=Buffer.from(t));let r=e&&e.objname?Object.create(null):[],n=rS(e),s=o(c=>{n.options.objname===void 0?r.push(c):r[c[0]]=c[1]},"push"),i=o(()=>{},"close"),a=n.parse(t,!0,s,i);if(a!==void 0)throw a;return r},"parse");var Oe=class t{static{o(this,"Util")}static getInputList(e,r){return this.getList(Pr(e,{trimWhitespace:r?.trimWhitespace!==!1}),r)}static getList(e,r){let n=[];if(e=="")return n;let s=ms(e,{columns:!1,relaxQuotes:!0,comment:r?.comment,comment_no_infix:r?.commentNoInfix,relaxColumnCount:!0,skipEmptyLines:!0,quote:r?.quote});for(let i of s)i.length==1?r?.ignoreComma?n.push(i[0]):n.push(...i[0].split(",")):r?.ignoreComma?n.push(i.join(",")):n.push(...i);return n.filter(i=>i).map(i=>r?.trimWhitespace===!1?i:i.trim())}static getInputNumber(e){let r=Pr(e);if(r)return parseInt(r)}static async asyncForEach(e,r){for(let n=0;n<e.length;n++)await r(e[n],n,e)}static isValidURL(e){let r;try{r=new URL(e)}catch{return!1}return r.protocol==="http:"||r.protocol==="https:"}static isValidRef(e){if(t.isValidURL(e))return!0;for(let r of["git://","github.com/","git@"])if(e.startsWith(r))return!0;return!1}static async powershellCommand(e,r){let n=await Br("powershell",!0),s=e.replace(/'/g,"''"),i=[];if(r)for(let a in r)i.push(`-${a} '${r[a].replace(/'/g,"''")}'`);return{command:`"${n}"`,args:["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-EncodedCommand",Buffer.from(`& '${s}' ${i.join(" ")}`,"utf16le").toString("base64")]}}static isDirectory(e){try{return Loe.default.lstatSync(e).isDirectory()}catch{}return!1}static trimPrefix(e,r){return!e||!r||e.indexOf(r)!==0?e:e.substring(r.length)}static trimSuffix(e,r){if(!e||!r)return e;let n=e.lastIndexOf(r);return n===-1||n+r.length!==e.length?e:e.substring(0,n)}static sleep(e){return new Promise(r=>setTimeout(r,e*1e3))}static hash(e){return aU.default.createHash("sha256").update(e).digest("hex")}static parseBool(e){if(e===void 0)return!1;switch(e){case"1":case"t":case"T":case"true":case"TRUE":case"True":return!0;case"0":case"f":case"F":case"false":case"FALSE":case"False":return!1;default:throw new Error(`parseBool syntax error: ${e}`)}}static parseBoolOrDefault(e,r=!1){try{return this.parseBool(e)}catch{return r}}static formatFileSize(e){if(e===0)return"0 Bytes";let r=1024,n=["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"],s=Math.floor(Math.log(e)/Math.log(r));return parseFloat((e/Math.pow(r,s)).toFixed(2))+" "+n[s]}static generateRandomString(e=10){return aU.default.randomBytes(Math.ceil(e/2)).toString("hex").slice(0,e)}static compileHandlebars(e,r,n){return Foe.default.compile(e,r)(n)}static stringToUnicodeEntities(e){return Array.from(e).map(r=>`&#x${r.charCodeAt(0).toString(16)};`).join("")}static countLines(e){return e.split(/\r\n|\r|\n/).length}static isPathRelativeTo(e,r){let n=tE.default.resolve(e);return tE.default.resolve(r).startsWith(n.endsWith(tE.default.sep)?n:`${n}${tE.default.sep}`)}static formatDuration(e){if(e===0)return"0s";let r=Math.floor(e/1e9),n=Math.floor(r/3600),s=Math.floor(r%3600/60),i=r%60,a=[];return n&&a.push(`${n}h`),s&&a.push(`${s}m`),(i||a.length===0)&&a.push(`${i}s`),a.join("")}};var Ve=class t{static{o(this,"Docker")}static get configDir(){return process.env.DOCKER_CONFIG||rE.default.join(Uoe.default.homedir(),".docker")}static configFile(){let e=rE.default.join(t.configDir,"config.json");if(cU.default.existsSync(e))return JSON.parse(cU.default.readFileSync(e,{encoding:"utf-8"}))}static async isAvailable(){return await Br("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
Line truncated
|
||||
${n}`)},"onRetry")})}static isPullTransientError(e){return/Client\.Timeout exceeded|TLS handshake timeout|i\/o timeout|context deadline exceeded|request canceled|connection reset by peer|connection refused|connection timed out|temporary failure|unexpected EOF|\bEOF\b|server misbehaving/i.test(e)||/\b(500|502|503|504)\b/.test(e)||/\b(service unavailable|bad gateway|gateway timeout|internal server error)\b/i.test(e)}};var qae=w(require("crypto"),1);var nS=require("fs"),Hoe=require("os");var Hp=class{static{o(this,"Context")}constructor(){var e,r,n;if(this.payload={},process.env.GITHUB_EVENT_PATH)if((0,nS.existsSync)(process.env.GITHUB_EVENT_PATH))this.payload=JSON.parse((0,nS.readFileSync)(process.env.GITHUB_EVENT_PATH,{encoding:"utf8"}));else{let s=process.env.GITHUB_EVENT_PATH;process.stdout.write(`GITHUB_EVENT_PATH ${s} does not exist${Hoe.EOL}`)}this.eventName=process.env.GITHUB_EVENT_NAME,this.sha=process.env.GITHUB_SHA,this.ref=process.env.GITHUB_REF,this.workflow=process.env.GITHUB_WORKFLOW,this.action=process.env.GITHUB_ACTION,this.actor=process.env.GITHUB_ACTOR,this.job=process.env.GITHUB_JOB,this.runAttempt=parseInt(process.env.GITHUB_RUN_ATTEMPT,10),this.runNumber=parseInt(process.env.GITHUB_RUN_NUMBER,10),this.runId=parseInt(process.env.GITHUB_RUN_ID,10),this.apiUrl=(e=process.env.GITHUB_API_URL)!==null&&e!==void 0?e:"https://api.github.com",this.serverUrl=(r=process.env.GITHUB_SERVER_URL)!==null&&r!==void 0?r:"https://github.com",this.graphqlUrl=(n=process.env.GITHUB_GRAPHQL_URL)!==null&&n!==void 0?n:"https://api.github.com/graphql"}get issue(){let e=this.payload;return Object.assign(Object.assign({},this.repo),{number:(e.issue||e.pull_request||e).number})}get repo(){if(process.env.GITHUB_REPOSITORY){let[e,r]=process.env.GITHUB_REPOSITORY.split("/");return{owner:e,repo:r}}if(this.payload.repository)return{owner:this.payload.repository.owner.login,repo:this.payload.repository.name};throw new Error("context.repo requires a GITHUB_REPOSITORY environment variable like 'owner/repo'")}};var AU=w(Yoe(),1),Woe=w(yA(),1);var i3e=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(a){a(i)})}return o(s,"adopt"),new(r||(r=Promise))(function(i,a){function c(d){try{u(n.next(d))}catch(A){a(A)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(A){a(A)}}o(l,"rejected");function u(d){d.done?i(d.value):s(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})};function joe(t,e){if(!t&&!e.auth)throw new Error("Parameter token or opts.auth is required");if(t&&e.auth)throw new Error("Parameters token and opts.auth may not both be specified");return typeof e.auth=="string"?e.auth:`token ${t}`}o(joe,"getAuthString");function Koe(t){return new AU.HttpClient().getAgent(t)}o(Koe,"getProxyAgent");function o3e(t){return new AU.HttpClient().getAgentDispatcher(t)}o(o3e,"getProxyAgentDispatcher");function Xoe(t){let e=o3e(t);return o((n,s)=>i3e(this,void 0,void 0,function*(){return(0,Woe.fetch)(n,Object.assign(Object.assign({},s),{dispatcher:e}))}),"proxyFetch")}o(Xoe,"getProxyFetch");function Zoe(){return process.env.GITHUB_API_URL||"https://api.github.com"}o(Zoe,"getApiBaseUrl");function pU(t){var e;let r=(e=process.env.ACTIONS_ORCHESTRATION_ID)===null||e===void 0?void 0:e.trim();if(r){let s=`actions_orchestration_id/${r.replace(/[^a-z0-9_.-]/gi,"_")}`;return t?.includes(s)?t:`${t?`${t} `:""}${s}`}return t}o(pU,"getUserAgentWithOrchestrationId");function Xc(){return typeof navigator=="object"&&"userAgent"in navigator?navigator.userAgent:typeof process=="object"&&process.version!==void 0?`Node.js/${process.version.substr(1)} (${process.platform}; ${process.arch})`:"<environment undetectable>"}o(Xc,"getUserAgent");function uS(t,e,r,n){if(typeof r!="function")throw new Error("method for before hook must be a function");return n||(n={}),Array.isArray(e)?e.reverse().reduce((s,i)=>uS.bind(null,t,i,s,n),r)():Promise.resolve().then(()=>t.registry[e]?t.registry[e].reduce((s,i)=>i.hook.bind(null,s,n),r)():r(n))}o(uS,"register");function eae(t,e,r,n){let s=n;t.registry[r]||(t.registry[r]=[]),e==="before"&&(n=o((i,a)=>Promise.resolve().then(s.bind(null,a)).then(i.bind(null,a)),"hook")),e==="after"&&(n=o((i,a)=>{let c;return Promise.resolve().then(i.bind(null,a)).then(l=>(c=l,s(c,a))).then(()=>c)},"hook")),e==="error"&&(n=o((i,a)=>Promise.resolve().then(i.bind(null,a)).catch(c=>s(c,a)),"hook")),t.registry[r].push({hook:n,orig:s})}o(eae,"addHook");function tae(t,e,r){if(!t.registry[e])return;let n=t.registry[e].map(s=>s.orig).indexOf(r);n!==-1&&t.registry[e].splice(n,1)}o(tae,"removeHook");var rae=Function.bind,nae=rae.bind(rae);function sae(t,e,r){let n=nae(tae,null).apply(null,r?[e,r]:[e]);t.api={remove:n},t.remove=n,["before","error","after","wrap"].forEach(s=>{let i=r?[e,s,r]:[e,s];t[s]=t.api[s]=nae(eae,null).apply(null,i)})}o(sae,"bindApi");function c3e(){let t=Symbol("Singular"),e={registry:{}},r=uS.bind(null,e,t);return sae(r,e,t),r}o(c3e,"Singular");function l3e(){let t={registry:{}},e=uS.bind(null,
Line truncated
|
||||
`,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]!==n[s+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(n){let{encoding:s,raw:i,skip_records_with_error:a}=this.options,c=typeof n=="string"?new Error(n):n;if(a){if(this.state.recordHasError=!0,this.options.on_skip!==void 0)try{this.options.on_skip(c,i?this.state.rawBuffer.toString(s):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:n,raw:s,encoding:i}=this.options;return{...this.__infoDataSet(),bytes_records:this.info.bytes,error:this.state.error,header:n===!0,index:this.state.record.length,raw:s?this.state.rawBuffer.toString(i):void 0}},"__infoRecord"),__infoField:o(function(){let{columns:n}=this.options,s=Array.isArray(n),i=this.info.bytes_records;return{...this.__infoRecord(),bytes_records:i,column:s===!0?n.length>this.state.record.length?n[this.state.record.length].name:null:this.state.record.length,quoting:this.state.wasQuoting}},"__infoField")}},"transform");var fs=o(function(t,e={}){typeof t=="string"&&(t=Buffer.from(t));let r=e&&e.objname?Object.create(null):[],n=oS(e),s=o(c=>{n.options.objname===void 0?r.push(c):r[c[0]]=c[1]},"push"),i=o(()=>{},"close"),a=n.parse(t,!0,s,i);if(a!==void 0)throw a;return r},"parse");var Oe=class t{static{o(this,"Util")}static getInputList(e,r){return this.getList(Pr(e,{trimWhitespace:r?.trimWhitespace!==!1}),r)}static getList(e,r){let n=[];if(e=="")return n;let s=fs(e,{columns:!1,relaxQuotes:!0,comment:r?.comment,comment_no_infix:r?.commentNoInfix,relaxColumnCount:!0,skipEmptyLines:!0,quote:r?.quote});for(let i of s)i.length==1?r?.ignoreComma?n.push(i[0]):n.push(...i[0].split(",")):r?.ignoreComma?n.push(i.join(",")):n.push(...i);return n.filter(i=>i).map(i=>r?.trimWhitespace===!1?i:i.trim())}static getInputNumber(e){let r=Pr(e);if(r)return parseInt(r)}static async asyncForEach(e,r){for(let n=0;n<e.length;n++)await r(e[n],n,e)}static isValidURL(e){let r;try{r=new URL(e)}catch{return!1}return r.protocol==="http:"||r.protocol==="https:"}static isValidRef(e){if(t.isValidURL(e))return!0;for(let r of["git://","github.com/","git@"])if(e.startsWith(r))return!0;return!1}static async powershellCommand(e,r){let n=await Br("powershell",!0),s=e.replace(/'/g,"''"),i=[];if(r)for(let a in r)i.push(`-${a} '${r[a].replace(/'/g,"''")}'`);return{command:`"${n}"`,args:["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-EncodedCommand",Buffer.from(`& '${s}' ${i.join(" ")}`,"utf16le").toString("base64")]}}static isDirectory(e){try{return joe.default.lstatSync(e).isDirectory()}catch{}return!1}static trimPrefix(e,r){return!e||!r||e.indexOf(r)!==0?e:e.substring(r.length)}static trimSuffix(e,r){if(!e||!r)return e;let n=e.lastIndexOf(r);return n===-1||n+r.length!==e.length?e:e.substring(0,n)}static sleep(e){return new Promise(r=>setTimeout(r,e*1e3))}static hash(e){return mU.default.createHash("sha256").update(e).digest("hex")}static parseBool(e){if(e===void 0)return!1;switch(e){case"1":case"t":case"T":case"true":case"TRUE":case"True":return!0;case"0":case"f":case"F":case"false":case"FALSE":case"False":return!1;default:throw new Error(`parseBool syntax error: ${e}`)}}static parseBoolOrDefault(e,r=!1){try{return this.parseBool(e)}catch{return r}}static formatFileSize(e){if(e===0)return"0 Bytes";let r=1024,n=["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"],s=Math.floor(Math.log(e)/Math.log(r));return parseFloat((e/Math.pow(r,s)).toFixed(2))+" "+n[s]}static generateRandomString(e=10){return mU.default.randomBytes(Math.ceil(e/2)).toString("hex").slice(0,e)}static compileHandlebars(e,r,n){return Koe.default.compile(e,r)(n)}static stringToUnicodeEntities(e){return Array.from(e).map(r=>`&#x${r.charCodeAt(0).toString(16)};`).join("")}static countLines(e){return e.split(/\r\n|\r|\n/).length}static isPathRelativeTo(e,r){let n=iE.default.resolve(e);return iE.default.resolve(r).startsWith(n.endsWith(iE.default.sep)?n:`${n}${iE.default.sep}`)}static formatDuration(e){if(e===0)return"0s";let r=Math.floor(e/1e9),n=Math.floor(r/3600),s=Math.floor(r%3600/60),i=r%60,a=[];return n&&a.push(`${n}h`),s&&a.push(`${s}m`),(i||a.length===0)&&a.push(`${i}s`),a.join("")}};var qe=class t{static{o(this,"Docker")}static get configDir(){return process.env.DOCKER_CONFIG||oE.default.join(Xoe.default.homedir(),".docker")}static configFile(){let e=oE.default.join(t.configDir,"config.json");if(gU.default.existsSync(e))return JSON.parse(gU.default.readFileSync(e,{encoding:"utf-8"}))}static async isAvailable(){return await Br("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
Line truncated
|
||||
${s}`)},"onRetry")})}static isPullTransientError(e){return/Client\.Timeout exceeded|TLS handshake timeout|i\/o timeout|context deadline exceeded|request canceled|connection reset by peer|connection refused|connection timed out|temporary failure|unexpected EOF|\bEOF\b|server misbehaving/i.test(e)||/\b(500|502|503|504)\b/.test(e)||/\b(service unavailable|bad gateway|gateway timeout|internal server error)\b/i.test(e)}};var Zae=w(require("crypto"),1);var aS=require("fs"),tae=require("os");var Xp=class{static{o(this,"Context")}constructor(){var e,r,n;if(this.payload={},process.env.GITHUB_EVENT_PATH)if((0,aS.existsSync)(process.env.GITHUB_EVENT_PATH))this.payload=JSON.parse((0,aS.readFileSync)(process.env.GITHUB_EVENT_PATH,{encoding:"utf8"}));else{let s=process.env.GITHUB_EVENT_PATH;process.stdout.write(`GITHUB_EVENT_PATH ${s} does not exist${tae.EOL}`)}this.eventName=process.env.GITHUB_EVENT_NAME,this.sha=process.env.GITHUB_SHA,this.ref=process.env.GITHUB_REF,this.workflow=process.env.GITHUB_WORKFLOW,this.action=process.env.GITHUB_ACTION,this.actor=process.env.GITHUB_ACTOR,this.job=process.env.GITHUB_JOB,this.runAttempt=parseInt(process.env.GITHUB_RUN_ATTEMPT,10),this.runNumber=parseInt(process.env.GITHUB_RUN_NUMBER,10),this.runId=parseInt(process.env.GITHUB_RUN_ID,10),this.apiUrl=(e=process.env.GITHUB_API_URL)!==null&&e!==void 0?e:"https://api.github.com",this.serverUrl=(r=process.env.GITHUB_SERVER_URL)!==null&&r!==void 0?r:"https://github.com",this.graphqlUrl=(n=process.env.GITHUB_GRAPHQL_URL)!==null&&n!==void 0?n:"https://api.github.com/graphql"}get issue(){let e=this.payload;return Object.assign(Object.assign({},this.repo),{number:(e.issue||e.pull_request||e).number})}get repo(){if(process.env.GITHUB_REPOSITORY){let[e,r]=process.env.GITHUB_REPOSITORY.split("/");return{owner:e,repo:r}}if(this.payload.repository)return{owner:this.payload.repository.owner.login,repo:this.payload.repository.name};throw new Error("context.repo requires a GITHUB_REPOSITORY environment variable like 'owner/repo'")}};var IU=w(oae(),1),aae=w(SA(),1);var dWe=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(a){a(i)})}return o(s,"adopt"),new(r||(r=Promise))(function(i,a){function c(d){try{u(n.next(d))}catch(A){a(A)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(A){a(A)}}o(l,"rejected");function u(d){d.done?i(d.value):s(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})};function cae(t,e){if(!t&&!e.auth)throw new Error("Parameter token or opts.auth is required");if(t&&e.auth)throw new Error("Parameters token and opts.auth may not both be specified");return typeof e.auth=="string"?e.auth:`token ${t}`}o(cae,"getAuthString");function lae(t){return new IU.HttpClient().getAgent(t)}o(lae,"getProxyAgent");function AWe(t){return new IU.HttpClient().getAgentDispatcher(t)}o(AWe,"getProxyAgentDispatcher");function uae(t){let e=AWe(t);return o((n,s)=>dWe(this,void 0,void 0,function*(){return(0,aae.fetch)(n,Object.assign(Object.assign({},s),{dispatcher:e}))}),"proxyFetch")}o(uae,"getProxyFetch");function dae(){return process.env.GITHUB_API_URL||"https://api.github.com"}o(dae,"getApiBaseUrl");function BU(t){var e;let r=(e=process.env.ACTIONS_ORCHESTRATION_ID)===null||e===void 0?void 0:e.trim();if(r){let s=`actions_orchestration_id/${r.replace(/[^a-z0-9_.-]/gi,"_")}`;return t?.includes(s)?t:`${t?`${t} `:""}${s}`}return t}o(BU,"getUserAgentWithOrchestrationId");function tl(){return typeof navigator=="object"&&"userAgent"in navigator?navigator.userAgent:typeof process=="object"&&process.version!==void 0?`Node.js/${process.version.substr(1)} (${process.platform}; ${process.arch})`:"<environment undetectable>"}o(tl,"getUserAgent");function fS(t,e,r,n){if(typeof r!="function")throw new Error("method for before hook must be a function");return n||(n={}),Array.isArray(e)?e.reverse().reduce((s,i)=>fS.bind(null,t,i,s,n),r)():Promise.resolve().then(()=>t.registry[e]?t.registry[e].reduce((s,i)=>i.hook.bind(null,s,n),r)():r(n))}o(fS,"register");function Aae(t,e,r,n){let s=n;t.registry[r]||(t.registry[r]=[]),e==="before"&&(n=o((i,a)=>Promise.resolve().then(s.bind(null,a)).then(i.bind(null,a)),"hook")),e==="after"&&(n=o((i,a)=>{let c;return Promise.resolve().then(i.bind(null,a)).then(l=>(c=l,s(c,a))).then(()=>c)},"hook")),e==="error"&&(n=o((i,a)=>Promise.resolve().then(i.bind(null,a)).catch(c=>s(c,a)),"hook")),t.registry[r].push({hook:n,orig:s})}o(Aae,"addHook");function pae(t,e,r){if(!t.registry[e])return;let n=t.registry[e].map(s=>s.orig).indexOf(r);n!==-1&&t.registry[e].splice(n,1)}o(pae,"removeHook");var fae=Function.bind,hae=fae.bind(fae);function mae(t,e,r){let n=hae(pae,null).apply(null,r?[e,r]:[e]);t.api={remove:n},t.remove=n,["before","error","after","wrap"].forEach(s=>{let i=r?[e,s,r]:[e,s];t[s]=t.api[s]=hae(Aae,null).apply(null,i)})}o(mae,"bindApi");function fWe(){let t=Symbol("Singular"),e={registry:{}},r=fS.bind(null,e,t);return mae(r,e,t),r}o(fWe,"Singular");function hWe(){let t={registry:{}},e=fS.bind(null,
Line truncated
|
||||
`+t.errors.map(e=>` - ${e.message}`).join(`
|
||||
`)}o(L3e,"_buildMessageForResponseErrors");var F3e=class extends Error{static{o(this,"GraphqlResponseError")}constructor(t,e,r){super(L3e(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},U3e=["method","baseUrl","url","headers","request","query","mediaType","operationName"],q3e=["query","method","url"],Nae=/\/api\/v3\/?$/;function G3e(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(q3e.includes(a))return Promise.reject(new Error(`[@octokit/graphql] "${a}" cannot be used as variable name`))}let n=typeof e=="string"?Object.assign({query:e},r):e,s=Object.keys(n).reduce((a,c)=>U3e.includes(c)?(a[c]=n[c],a):(a.variables||(a.variables={}),a.variables[c]=n[c],a),{}),i=n.baseUrl||t.endpoint.DEFAULTS.baseUrl;return Nae.test(i)&&(s.url=i.replace(Nae,"/api/graphql")),t(s).then(a=>{if(a.data.errors){let c={};for(let l of Object.keys(a.headers))c[l]=a.headers[l];throw new F3e(s,c,a.data)}return a.data.data})}o(G3e,"graphql");function yU(t,e){let r=t.defaults(e);return Object.assign(o((s,i)=>G3e(r,s,i),"newApi"),{defaults:yU.bind(null,r),endpoint:r.endpoint})}o(yU,"withDefaults");var dkt=yU(oE,{headers:{"user-agent":`octokit-graphql.js/${M3e} ${Xc()}`},method:"POST",url:"/graphql"});function xae(t){return yU(t,{method:"POST",url:"/graphql"})}o(xae,"withCustomRequest");var CU="(?:[a-zA-Z0-9_-]+)",Qae="\\.",Rae=new RegExp(`^${CU}${Qae}${CU}${Qae}${CU}$`),H3e=Rae.test.bind(Rae);async function V3e(t){let e=H3e(t),r=t.startsWith("v1.")||t.startsWith("ghs_"),n=t.startsWith("ghu_");return{type:"token",token:t,tokenType:e?"app":r?"installation":n?"user-to-server":"oauth"}}o(V3e,"auth");function z3e(t){return t.split(/\./).length===3?`bearer ${t}`:`token ${t}`}o(z3e,"withAuthorizationPrefix");async function $3e(t,e,r,n){let s=e.endpoint.merge(r,n);return s.headers.authorization=z3e(t),e(s)}o($3e,"hook");var Tae=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(V3e.bind(null,e),{hook:$3e.bind(null,e)})},"createTokenAuth2");var IU="7.0.6";var vae=o(()=>{},"noop"),J3e=console.warn.bind(console),Y3e=console.error.bind(console);function W3e(t={}){return typeof t.debug!="function"&&(t.debug=vae),typeof t.info!="function"&&(t.info=vae),typeof t.warn!="function"&&(t.warn=J3e),typeof t.error!="function"&&(t.error=Y3e),t}o(W3e,"createLogger");var _ae=`octokit-core.js/${IU} ${Xc()}`,fS=class{static{o(this,"Octokit")}static VERSION=IU;static defaults(e){return class extends this{static{o(this,"OctokitWithDefaults")}constructor(...n){let s=n[0]||{};if(typeof e=="function"){super(e(s));return}super(Object.assign({},e,s,s.userAgent&&e.userAgent?{userAgent:`${s.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(s=>!r.includes(s)))}}constructor(e={}){let r=new iae.Collection,n={baseUrl:oE.endpoint.DEFAULTS.baseUrl,headers:{},request:Object.assign({},e.request,{hook:r.bind(null,"request")}),mediaType:{previews:[],format:""}};if(n.headers["user-agent"]=e.userAgent?`${e.userAgent} ${_ae}`:_ae,e.baseUrl&&(n.baseUrl=e.baseUrl),e.previews&&(n.mediaType.previews=e.previews),e.timeZone&&(n.headers["time-zone"]=e.timeZone),this.request=oE.defaults(n),this.graphql=xae(this.request).defaults(n),this.log=W3e(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=Tae(e.auth);r.wrap("request",i.hook),this.auth=i}let s=this.constructor;for(let i=0;i<s.plugins.length;++i)Object.assign(this,s.plugins[i](this,e))}request;graphql;log;hook;auth};var BU="17.0.0";var j3e={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,h=!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}),h=!0;break}h||B(`Buildx.convertWarningsToGitHubAnnotations: skipping warning without matching Dockerfile ${u}: ${A}`)}return c}};var el=class t{static{o(this,"Builder")}buildx;constructor(e){this.buildx=e?.buildx||new Ie}async exists(e){let r=await this.buildx.getCommand(["inspect",e]),n=await Y.getExecOutput(r.command,r.args,{ignoreReturnCode:!0,silent:!0}).then(s=>s.stderr.length>0&&s.exitCode!=0?(B(`Builder.exists cmd err: ${s.stderr.trim()}`),!1):s.exitCode==0).catch(s=>(B(`Builder.exists error: ${s}`),!1));return B(`Builder.exists: ${n}`),n}async inspect(e){let r=Object.assign({},process.env,{DEBUG:"1"}),n=["inspect"];e&&n.push(e);let s=await this.buildx.getCommand(n);return await Y.getExecOutput(s.command,s.args,{ignoreReturnCode:!0,silent:!0,env:r}).then(i=>{if(i.stderr.length>0&&i.exitCode!=0)throw new Error(i.stderr.trim());return t.parseInspect(i.stdout)})}static parseInspect(e){let r={nodes:[]},n,s={},i,a,c;for(let l of e.trim().split(`
|
||||
`)}o(VWe,"_buildMessageForResponseErrors");var zWe=class extends Error{static{o(this,"GraphqlResponseError")}constructor(t,e,r){super(VWe(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},$We=["method","baseUrl","url","headers","request","query","mediaType","operationName"],JWe=["query","method","url"],Lae=/\/api\/v3\/?$/;function YWe(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(JWe.includes(a))return Promise.reject(new Error(`[@octokit/graphql] "${a}" cannot be used as variable name`))}let n=typeof e=="string"?Object.assign({query:e},r):e,s=Object.keys(n).reduce((a,c)=>$We.includes(c)?(a[c]=n[c],a):(a.variables||(a.variables={}),a.variables[c]=n[c],a),{}),i=n.baseUrl||t.endpoint.DEFAULTS.baseUrl;return Lae.test(i)&&(s.url=i.replace(Lae,"/api/graphql")),t(s).then(a=>{if(a.data.errors){let c={};for(let l of Object.keys(a.headers))c[l]=a.headers[l];throw new zWe(s,c,a.data)}return a.data.data})}o(YWe,"graphql");function QU(t,e){let r=t.defaults(e);return Object.assign(o((s,i)=>YWe(r,s,i),"newApi"),{defaults:QU.bind(null,r),endpoint:r.endpoint})}o(QU,"withDefaults");var qDt=QU(uE,{headers:{"user-agent":`octokit-graphql.js/${HWe} ${tl()}`},method:"POST",url:"/graphql"});function Fae(t){return QU(t,{method:"POST",url:"/graphql"})}o(Fae,"withCustomRequest");var RU="(?:[a-zA-Z0-9_-]+)",Uae="\\.",qae=new RegExp(`^${RU}${Uae}${RU}${Uae}${RU}$`),WWe=qae.test.bind(qae);async function jWe(t){let e=WWe(t),r=t.startsWith("v1.")||t.startsWith("ghs_"),n=t.startsWith("ghu_");return{type:"token",token:t,tokenType:e?"app":r?"installation":n?"user-to-server":"oauth"}}o(jWe,"auth");function KWe(t){return t.split(/\./).length===3?`bearer ${t}`:`token ${t}`}o(KWe,"withAuthorizationPrefix");async function XWe(t,e,r,n){let s=e.endpoint.merge(r,n);return s.headers.authorization=KWe(t),e(s)}o(XWe,"hook");var Gae=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(jWe.bind(null,e),{hook:XWe.bind(null,e)})},"createTokenAuth2");var TU="7.0.6";var Hae=o(()=>{},"noop"),ZWe=console.warn.bind(console),eje=console.error.bind(console);function tje(t={}){return typeof t.debug!="function"&&(t.debug=Hae),typeof t.info!="function"&&(t.info=Hae),typeof t.warn!="function"&&(t.warn=ZWe),typeof t.error!="function"&&(t.error=eje),t}o(tje,"createLogger");var Vae=`octokit-core.js/${TU} ${tl()}`,ES=class{static{o(this,"Octokit")}static VERSION=TU;static defaults(e){return class extends this{static{o(this,"OctokitWithDefaults")}constructor(...n){let s=n[0]||{};if(typeof e=="function"){super(e(s));return}super(Object.assign({},e,s,s.userAgent&&e.userAgent?{userAgent:`${s.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(s=>!r.includes(s)))}}constructor(e={}){let r=new gae.Collection,n={baseUrl:uE.endpoint.DEFAULTS.baseUrl,headers:{},request:Object.assign({},e.request,{hook:r.bind(null,"request")}),mediaType:{previews:[],format:""}};if(n.headers["user-agent"]=e.userAgent?`${e.userAgent} ${Vae}`:Vae,e.baseUrl&&(n.baseUrl=e.baseUrl),e.previews&&(n.mediaType.previews=e.previews),e.timeZone&&(n.headers["time-zone"]=e.timeZone),this.request=uE.defaults(n),this.graphql=Fae(this.request).defaults(n),this.log=tje(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=Gae(e.auth);r.wrap("request",i.hook),this.auth=i}let s=this.constructor;for(let i=0;i<s.plugins.length;++i)Object.assign(this,s.plugins[i](this,e))}request;graphql;log;hook;auth};var vU="17.0.0";var rje={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,h=!1;for(let m of a)if(m.remote||m.path.endsWith(u)&&m.content===d){c.push({title:A,message:p,file:m.path,startLine:f}),h=!0;break}h||B(`Buildx.convertWarningsToGitHubAnnotations: skipping warning without matching Dockerfile ${u}: ${A}`)}return c}};var nl=class t{static{o(this,"Builder")}buildx;constructor(e){this.buildx=e?.buildx||new ye}async exists(e){let r=await this.buildx.getCommand(["inspect",e]),n=await Y.getExecOutput(r.command,r.args,{ignoreReturnCode:!0,silent:!0}).then(s=>s.stderr.length>0&&s.exitCode!=0?(B(`Builder.exists cmd err: ${s.stderr.trim()}`),!1):s.exitCode==0).catch(s=>(B(`Builder.exists error: ${s}`),!1));return B(`Builder.exists: ${n}`),n}async inspect(e){let r=Object.assign({},process.env,{DEBUG:"1"}),n=["inspect"];e&&n.push(e);let s=await this.buildx.getCommand(n);return await Y.getExecOutput(s.command,s.args,{ignoreReturnCode:!0,silent:!0,env:r}).then(i=>{if(i.stderr.length>0&&i.exitCode!=0)throw new Error(i.stderr.trim());return t.parseInspect(i.stdout)})}static parseInspect(e){let r={nodes:[]},n,s={},i,a,c;for(let l of e.trim().split(`
|
||||
`)){let[u,...d]=l.split(":"),A=u.toLowerCase(),p=d.map(f=>f.trim()).join(":");if(u.length!=0)switch(!0){case A=="name":n=void 0,r.name==null?r.name=p:(i&&s.gcPolicy&&(s.gcPolicy.push(i),i=void 0),s.name&&r.nodes.push(s),s={name:p});break;case A=="driver":n=void 0,r.driver=p;break;case A=="last activity":n=void 0,r.lastActivity=new Date(p);break;case A=="endpoint":n=void 0,s.endpoint=p;break;case A=="driver options":n=void 0,s["driver-opts"]=(p.match(/([a-zA-Z0-9_.]+)="([^"]*)"/g)||[]).map(f=>f.replace(/^(.*)="(.*)"$/g,"$1=$2"));break;case A=="status":n=void 0,s.status=p;break;case A=="buildkit daemon flags":case A=="flags":n=void 0,s["buildkitd-flags"]=p;break;case A=="buildkit version":case A=="buildkit":n=void 0,s.buildkit=p;break;case A=="platforms":{if(n=void 0,!p)break;let f=[];if(p.includes("*"))for(let h of p.split(", "))h.includes("*")&&f.push(h.replace(/\*/g,""));else f=p.split(", ");s.platforms=f.join(",");break}case A=="features":n="features",s.features={};break;case A=="labels":n="label",s.labels={};break;case A=="devices":n="devices",s.devices=s.devices||[];break;case A.startsWith("gc policy rule#"):n="gcpolicy",s.gcPolicy&&i&&(s.gcPolicy.push(i),i=void 0);break;case A.startsWith("file#"):n="file",c=u.split("#")[1],s.files=s.files||{},s.files[c]="";break;default:switch(n&&n!=="devices"&&s.devices&&a&&(s.devices.push(a),a=void 0),n||""){case"features":{s.features=s.features||{},s.features[u.trim()]=!!p;break}case"label":{s.labels=s.labels||{},s.labels[u.trim()]=p;break}case"devices":{switch(A.trim()){case"name":{s.devices&&a&&s.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(s.gcPolicy=s.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&&s.files&&(s.files[c].length>0&&(s.files[c]+=`
|
||||
`),s.files[c]+=l.replace(/^\s>\s?/,""));break}}}}return a&&s.devices&&s.devices.push(a),i&&s.gcPolicy&&s.gcPolicy.push(i),s.name&&r.nodes.push(s),r}};var ju=w(require("fs"),1),PU=w(require("path"),1);var yS=class t{static{o(this,"Build")}buildx;iidFilename;metadataFilename;constructor(e){this.buildx=e?.buildx||new Ie,this.iidFilename=`build-iidfile-${Oe.generateRandomString()}.txt`,this.metadataFilename=`build-metadata-${Oe.generateRandomString()}.json`}async gitContext(e){let r=new Set(["ref","checksum","subdir"]),n=e?.attrs||{},s=Object.entries(n).filter(([f])=>!r.has(f)),i=Oe.parseBoolOrDefault(n["fetch-by-commit"]),a=e?.ref||n.ref||ln.ref;a.startsWith("refs/")?a.startsWith("refs/pull/")&&Oe.parseBoolOrDefault(process.env.DOCKER_DEFAULT_GIT_CONTEXT_PR_HEAD_REF)&&(a=a.replace(/\/merge$/g,"/head")):a=`refs/heads/${a}`;let c=`${Xe.serverURL}/${ln.repo.owner}/${ln.repo.repo}.git`,l=e?.checksum||n.checksum,u=e?.subdir||n.subdir,d=e?.format;if(!d){if(d="fragment",s.length>0)d="query";else if(Oe.parseBoolOrDefault(process.env.BUILDX_SEND_GIT_QUERY_AS_INPUT))try{await this.buildx.versionSatisfies(">=0.29.0")&&(d="query")}catch{}}let A=ln.sha||a;a.startsWith("refs/pull/")&&a.endsWith("/head")&&(A=typeof ln.payload.pull_request?.head?.sha=="string"?ln.payload.pull_request.head.sha:a);let p=l||A;if(d==="query"){let f=[`ref=${i||l?a:p}`],h=i?p:l;h&&f.push(`checksum=${h}`),u&&u!=="."&&f.push(`subdir=${u}`);for(let[g,y]of s)f.push(`${g}=${y}`);return`${c}?${f.join("&")}`}return`${c}#${p}${u&&u!=="."?`:${u}`:""}`}getImageIDFilePath(){return PU.default.join(De.tmpDir(),this.iidFilename)}resolveImageID(){let e=this.getImageIDFilePath();if(ju.default.existsSync(e))return ju.default.readFileSync(e,{encoding:"utf-8"}).trim()}getMetadataFilePath(){return PU.default.join(De.tmpDir(),this.metadataFilename)}resolveMetadata(){let e=this.getMetadataFilePath();if(!ju.default.existsSync(e))return;let r=ju.default.readFileSync(e,{encoding:"utf-8"}).trim();if(r!=="null")return JSON.parse(r)}resolveRef(e){if(!(!e&&(e=this.resolveMetadata(),!e))&&"buildx.build.ref"in e)return e["buildx.build.ref"]}resolveProvenance(e){if(!(!e&&(e=this.resolveMetadata(),!e))&&"buildx.build.provenance"in e)return e["buildx.build.provenance"]}resolveWarnings(e){if(!(!e&&(e=this.resolveMetadata(),!e))&&"buildx.build.warnings"in e)return e["buildx.build.warnings"]}resolveDigest(e){if(!(!e&&(e=this.resolveMetadata(),!e))&&"containerimage.digest"in e)return e["containerimage.digest"]}static resolveSecretString(e){let[r,n]=t.resolveSecret(e,{redact:!0});return`id=${r},src=${n}`}static resolveSecretFile(e){let[r,n]=t.resolveSecret(e,{asFile:!0});return`id=${r},src=${n}`}static resolveSecretEnv(e){let[r,n]=t.parseSecretKvp(e);return`id=${r},env=${n}`}static resolveSecret(e,r){let[n,s]=t.parseSecretKvp(e,r?.redact);if(r?.asFile){if(!ju.default.existsSync(s))throw new Error(`secret file ${s} not found`);return[n,s]}let i=De.tmpName({tmpdir:De.tmpDir()});return ju.default.writeFileSync(i,s),[n,i]}static getProvenanceInput(e){let r=Pr(e);if(!r)return r;try{return Zl(e)?`builder-id=${Xe.workflowRunURL(!0)}`:"false"}catch{return t.resolveProvenanceAttrs(r)}}static resolveProvenanceAttrs(e){if(!e)return`builder-id=${Xe.workflowRunURL(!0)}`;let r=ms(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0];for(let n of r)if(n.toString().split(/(?<=^[^=]+?)=/).map(i=>i.trim())[0]=="builder-id")return e;return`${e},builder-id=${Xe.workflowRunURL(!0)}`}static resolveCacheToAttrs(e,r){if(!e)return e;let n="registry",s="",i="",a=ms(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0];for(let c of a){let l=c.toString().split(/(?<=^[^=]+?)=/).map(u=>u.trim());l[0]==="type"?n=l[1]:l[0]==="repository"?s=l[1]:l[0]==="ghtoken"&&(i=l[1])}return n==="gha"&&(s||(e=`${e},repository=${Xe.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 n=ms(r.join(`
|
||||
`),{delimiter:",",trim:!0,columns:!1,relaxColumnCount:!0});for(let s of n){if(s.length==1&&!s[0].startsWith("type="))return e=="local";for(let[i,a]of s.map(c=>c.split("=").map(l=>l.trim())))if(i=="type"&&a==e)return!0}return!1}static hasAttestationType(e,r){let n=ms(r,{delimiter:",",trim:!0,columns:!1,relaxColumnCount:!0});for(let s of n)for(let[i,a]of s.map(c=>c.split("=").map(l=>l.trim())))if(i=="type"&&a==e)return!0;return!1}static resolveAttestationAttrs(e){let r=ms(e,{delimiter:",",trim:!0,columns:!1,relaxColumnCount:!0}),n=[];for(let s of r)for(let i of s)try{let a=Oe.parseBool(i);n.push(`disabled=${!a}`)}catch{n.push(i)}return n.join(",")}static hasGitAuthTokenSecret(e,r){for(let n of e){if(r&&n.startsWith(`GIT_AUTH_TOKEN.${r}=`))return!0;if(n.startsWith("GIT_AUTH_TOKEN="))return!0}return!1}static parseSecretKvp(e,r){let n=e.indexOf("="),s=e.substring(0,n),i=e.substring(n+1);if(s.length==0||i.length==0)throw new Error(`${e} is not a valid secret`);return r&&Yi(i),[s,i]}};var kU=w(require("fs"),1),zae=w(require("path"),1);var CS=class t{static{o(this,"Bake")}buildx;metadataFilename;constructor(e){this.buildx=e?.buildx||new Ie,this.metadataFilename=`bake-metadata-${Oe.generateRandomString()}.json`}getMetadataFilePath(){return zae.default.join(De.tmpDir(),this.metadataFilename)}resolveMetadata(){let e=this.getMetadataFilePath();if(!kU.default.existsSync(e))return;let r=kU.default.readFileSync(e,{encoding:"utf-8"}).trim();if(r!=="null")return JSON.parse(r)}resolveRefs(e){if(!e&&(e=this.resolveMetadata(),!e))return;let r=new Array;for(let n in e)"buildx.build.ref"in e[n]&&r.push(e[n]["buildx.build.ref"]);return r.length>0?r:void 0}resolveWarnings(e){if(!(!e&&(e=this.resolveMetadata(),!e))&&"buildx.build.warnings"in e)return e["buildx.build.warnings"]}async getDefinition(e,r){r=r||{ignoreReturnCode:!0},r.ignoreReturnCode=!0,r.env=Object.assign({},process.env,r.env||{},e.githubToken?{BUILDX_BAKE_GIT_AUTH_TOKEN:e.githubToken}:{});let n=["bake"],s,i=[],a=[...e.files||[],e.source];if(a){for(let l of a.map(u=>u?u.trim():""))if(l.length!=0){if(!Oe.isValidRef(l)){i.push(l);continue}if(s)throw new Error("Only one remote bake definition can be defined");s=l}}s&&n.push(s);for(let l of i)n.push("--file",l);if(e.overrides)for(let l of e.overrides)n.push("--set",l);if(e.vars)for(let l of e.vars)n.push("--var",l);if(e.allow)for(let l of e.allow)n.push("--allow",l);e.call&&n.push("--call",e.call),e.load&&n.push("--load"),e.noCache&&n.push("--no-cache"),e.provenance&&n.push("--provenance",e.provenance),e.push&&n.push("--push"),e.sbom&&n.push("--sbom",e.sbom);let c=await this.buildx.getCommand([...n,"--print",...e.targets||[]]);return await Y.getExecOutput(c.command,c.args,r).then(l=>{if(l.stderr.length>0&&l.exitCode!=0)throw new Error(`cannot parse bake definitions: ${Ie.getErrorMessage(l.stderr)}`);return t.parseDefinition(l.stdout.trim())})}static parseDefinition(e){let r=JSON.parse(e);for(let n in r.target){let s=r.target[n];s.attest&&Array.isArray(s.attest)&&(s.attest=s.attest.map(i=>t.parseAttestEntry(i))),s["cache-from"]&&Array.isArray(s["cache-from"])&&(s["cache-from"]=s["cache-from"].map(i=>t.parseCacheEntry(i))),s["cache-to"]&&Array.isArray(s["cache-to"])&&(s["cache-to"]=s["cache-to"].map(i=>t.parseCacheEntry(i))),s.output&&Array.isArray(s.output)&&(s.output=s.output.map(i=>t.parseExportEntry(i))),s.secret&&Array.isArray(s.secret)&&(s.secret=s.secret.map(i=>t.parseSecretEntry(i))),s.ssh&&Array.isArray(s.ssh)&&(s.ssh=s.ssh.map(i=>t.parseSSHEntry(i)))}return r}static parseAttestEntry(e){if(typeof e!="string")return e;let r={type:""},n=ms(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0];for(let s of n){let[i,a]=s.toString().split(/(?<=^[^=]+?)=/).map(c=>c.trim());switch(i){case"type":r.type=a;break;case"disabled":r.disabled=Oe.parseBool(a);break;default:r[i]=a}}return r}static parseCacheEntry(e){if(typeof e!="string")return e;let r={type:""},n=ms(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0];if(n.length===1&&!n[0].includes("="))return r.type="registry",r.ref=n[0],r;for(let s of n){let[i,a]=s.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:""},n=ms(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0];if(n.length===1&&n[0]===e&&!e.startsWith("type="))return e!=="-"?(r.type="local",r.dest=e,r):(r.type="tar",r.dest=e,r);for(let s of n){let[i,a]=s.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={},n=ms(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0],s="";for(let i of n){let[a,c]=i.toString().split(/(?<=^[^=]+?)=/).map(l=>l.trim());switch(a){case"type":s=c;break;case"id":r.id=c;break;case"source":case"src":r.src=c;break;case"env":r.env=c;break}}return s==="env"&&!r.env&&(r.env=r.src,r.src=void 0),r}static parseSSHEntry(e){if(typeof e!="string")return e;let r={},[n,s]=e.split("=",2);return r.id=n,s&&(r.paths=s.split(",")),r}s
Line truncated
|
||||
`),s.files[c]+=l.replace(/^\s>\s?/,""));break}}}}return a&&s.devices&&s.devices.push(a),i&&s.gcPolicy&&s.gcPolicy.push(i),s.name&&r.nodes.push(s),r}};var rd=w(require("fs"),1),GU=w(require("path"),1);var bS=class t{static{o(this,"Build")}buildx;iidFilename;metadataFilename;constructor(e){this.buildx=e?.buildx||new ye,this.iidFilename=`build-iidfile-${Oe.generateRandomString()}.txt`,this.metadataFilename=`build-metadata-${Oe.generateRandomString()}.json`}async gitContext(e){let r=new Set(["ref","checksum","subdir"]),n=e?.attrs||{},s=Object.entries(n).filter(([f])=>!r.has(f)),i=Oe.parseBoolOrDefault(n["fetch-by-commit"]),a=e?.ref||n.ref||ln.ref;a.startsWith("refs/")?a.startsWith("refs/pull/")&&Oe.parseBoolOrDefault(process.env.DOCKER_DEFAULT_GIT_CONTEXT_PR_HEAD_REF)&&(a=a.replace(/\/merge$/g,"/head")):a=`refs/heads/${a}`;let c=`${We.serverURL}/${ln.repo.owner}/${ln.repo.repo}.git`,l=e?.checksum||n.checksum,u=e?.subdir||n.subdir,d=e?.format;if(!d){if(d="fragment",s.length>0)d="query";else if(Oe.parseBoolOrDefault(process.env.BUILDX_SEND_GIT_QUERY_AS_INPUT))try{await this.buildx.versionSatisfies(">=0.29.0")&&(d="query")}catch{}}let A=ln.sha||a;a.startsWith("refs/pull/")&&a.endsWith("/head")&&(A=typeof ln.payload.pull_request?.head?.sha=="string"?ln.payload.pull_request.head.sha:a);let p=l||A;if(d==="query"){let f=[`ref=${i||l?a:p}`],h=i?p:l;h&&f.push(`checksum=${h}`),u&&u!=="."&&f.push(`subdir=${u}`);for(let[m,y]of s)f.push(`${m}=${y}`);return`${c}?${f.join("&")}`}return`${c}#${p}${u&&u!=="."?`:${u}`:""}`}getImageIDFilePath(){return GU.default.join(De.tmpDir(),this.iidFilename)}resolveImageID(){let e=this.getImageIDFilePath();if(rd.default.existsSync(e))return rd.default.readFileSync(e,{encoding:"utf-8"}).trim()}getMetadataFilePath(){return GU.default.join(De.tmpDir(),this.metadataFilename)}resolveMetadata(){let e=this.getMetadataFilePath();if(!rd.default.existsSync(e))return;let r=rd.default.readFileSync(e,{encoding:"utf-8"}).trim();if(r!=="null")return JSON.parse(r)}resolveRef(e){if(!(!e&&(e=this.resolveMetadata(),!e))&&"buildx.build.ref"in e)return e["buildx.build.ref"]}resolveProvenance(e){if(!(!e&&(e=this.resolveMetadata(),!e))&&"buildx.build.provenance"in e)return e["buildx.build.provenance"]}resolveWarnings(e){if(!(!e&&(e=this.resolveMetadata(),!e))&&"buildx.build.warnings"in e)return e["buildx.build.warnings"]}resolveDigest(e){if(!(!e&&(e=this.resolveMetadata(),!e))&&"containerimage.digest"in e)return e["containerimage.digest"]}static resolveSecretString(e){let[r,n]=t.resolveSecret(e,{redact:!0});return`id=${r},src=${n}`}static resolveSecretFile(e){let[r,n]=t.resolveSecret(e,{asFile:!0});return`id=${r},src=${n}`}static resolveSecretEnv(e){let[r,n]=t.parseSecretKvp(e);return`id=${r},env=${n}`}static resolveSecret(e,r){let[n,s]=t.parseSecretKvp(e,r?.redact);if(r?.asFile){if(!rd.default.existsSync(s))throw new Error(`secret file ${s} not found`);return[n,s]}let i=De.tmpName({tmpdir:De.tmpDir()});return rd.default.writeFileSync(i,s),[n,i]}static getProvenanceInput(e){let r=Pr(e);if(!r)return r;try{return nu(e)?`builder-id=${We.workflowRunURL(!0)}`:"false"}catch{return t.resolveProvenanceAttrs(r)}}static resolveProvenanceAttrs(e){if(!e)return`builder-id=${We.workflowRunURL(!0)}`;let r=fs(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0];for(let n of r)if(n.toString().split(/(?<=^[^=]+?)=/).map(i=>i.trim())[0]=="builder-id")return e;return`${e},builder-id=${We.workflowRunURL(!0)}`}static resolveCacheToAttrs(e,r){if(!e)return e;let n="registry",s="",i="",a=fs(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0];for(let c of a){let l=c.toString().split(/(?<=^[^=]+?)=/).map(u=>u.trim());l[0]==="type"?n=l[1]:l[0]==="repository"?s=l[1]:l[0]==="ghtoken"&&(i=l[1])}return n==="gha"&&(s||(e=`${e},repository=${We.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 n=fs(r.join(`
|
||||
`),{delimiter:",",trim:!0,columns:!1,relaxColumnCount:!0});for(let s of n){if(s.length==1&&!s[0].startsWith("type="))return e=="local";for(let[i,a]of s.map(c=>c.split("=").map(l=>l.trim())))if(i=="type"&&a==e)return!0}return!1}static hasAttestationType(e,r){let n=fs(r,{delimiter:",",trim:!0,columns:!1,relaxColumnCount:!0});for(let s of n)for(let[i,a]of s.map(c=>c.split("=").map(l=>l.trim())))if(i=="type"&&a==e)return!0;return!1}static resolveAttestationAttrs(e){let r=fs(e,{delimiter:",",trim:!0,columns:!1,relaxColumnCount:!0}),n=[];for(let s of r)for(let i of s)try{let a=Oe.parseBool(i);n.push(`disabled=${!a}`)}catch{n.push(i)}return n.join(",")}static hasGitAuthTokenSecret(e,r){for(let n of e){if(r&&n.startsWith(`GIT_AUTH_TOKEN.${r}=`))return!0;if(n.startsWith("GIT_AUTH_TOKEN="))return!0}return!1}static parseSecretKvp(e,r){let n=e.indexOf("="),s=e.substring(0,n),i=e.substring(n+1);if(s.length==0||i.length==0)throw new Error(`${e} is not a valid secret`);return r&&Yi(i),[s,i]}};var HU=w(require("fs"),1),nce=w(require("path"),1);var wS=class t{static{o(this,"Bake")}buildx;metadataFilename;constructor(e){this.buildx=e?.buildx||new ye,this.metadataFilename=`bake-metadata-${Oe.generateRandomString()}.json`}getMetadataFilePath(){return nce.default.join(De.tmpDir(),this.metadataFilename)}static resolveContextTargets(e,r){let n=e.target||{},s=Object.keys(n);if(s.length===0)throw new Error("Bake definition does not contain any targets");if(!Object.prototype.hasOwnProperty.call(n,r))throw new Error(`Unable to resolve ${r} target, found: ${s.join(", ")}`);let i=new Set([r]),a=[r];for(;a.length>0;){let c=a.pop();for(let l of Object.values(n[c].contexts||{})){let u=l.match(/^target:(.+)$/)?.[1];if(!(!u||i.has(u))){if(!Object.prototype.hasOwnProperty.call(n,u))throw new Error(`Target ${c} uses unknown named context target ${u}`);i.add(u),a.push(u)}}}return[...i]}resolveMetadata(){let e=this.getMetadataFilePath();if(!HU.default.existsSync(e))return;let r=HU.default.readFileSync(e,{encoding:"utf-8"}).trim();if(r!=="null")return JSON.parse(r)}resolveRefs(e){if(!e&&(e=this.resolveMetadata(),!e))return;let r=new Array;for(let n in e)"buildx.build.ref"in e[n]&&r.push(e[n]["buildx.build.ref"]);return r.length>0?r:void 0}resolveWarnings(e){if(!(!e&&(e=this.resolveMetadata(),!e))&&"buildx.build.warnings"in e)return e["buildx.build.warnings"]}async getDefinition(e,r){r=r||{ignoreReturnCode:!0},r.ignoreReturnCode=!0,r.env=Object.assign({},process.env,r.env||{},e.githubToken?{BUILDX_BAKE_GIT_AUTH_TOKEN:e.githubToken}:{});let n=["bake"],s,i=[],a=[...e.files||[],e.source];if(a){for(let l of a.map(u=>u?u.trim():""))if(l.length!=0){if(!Oe.isValidRef(l)){i.push(l);continue}if(s)throw new Error("Only one remote bake definition can be defined");s=l}}s&&n.push(s);for(let l of i)n.push("--file",l);if(e.overrides)for(let l of e.overrides)n.push("--set",l);if(e.vars)for(let l of e.vars)n.push("--var",l);if(e.allow)for(let l of e.allow)n.push("--allow",l);e.call&&n.push("--call",e.call),e.load&&n.push("--load"),e.noCache&&n.push("--no-cache"),e.provenance&&n.push("--provenance",e.provenance),e.push&&n.push("--push"),e.sbom&&n.push("--sbom",e.sbom);let c=await this.buildx.getCommand([...n,"--print",...e.targets||[]]);return await Y.getExecOutput(c.command,c.args,r).then(l=>{if(l.stderr.length>0&&l.exitCode!=0)throw new Error(`cannot parse bake definitions: ${ye.getErrorMessage(l.stderr)}`);return t.parseDefinition(l.stdout.trim())})}static parseDefinition(e){let r=JSON.parse(e);for(let n in r.target){let s=r.target[n];s.attest&&Array.isArray(s.attest)&&(s.attest=s.attest.map(i=>t.parseAttestEntry(i))),s["cache-from"]&&Array.isArray(s["cache-from"])&&(s["cache-from"]=s["cache-from"].map(i=>t.parseCacheEntry(i))),s["cache-to"]&&Array.isArray(s["cache-to"])&&(s["cache-to"]=s["cache-to"].map(i=>t.parseCacheEntry(i))),s.output&&Array.isArray(s.output)&&(s.output=s.output.map(i=>t.parseExportEntry(i))),s.secret&&Array.isArray(s.secret)&&(s.secret=s.secret.map(i=>t.parseSecretEntry(i))),s.ssh&&Array.isArray(s.ssh)&&(s.ssh=s.ssh.map(i=>t.parseSSHEntry(i)))}return r}static parseAttestEntry(e){if(typeof e!="string")return e;let r={type:""},n=fs(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0];for(let s of n){let[i,a]=s.toString().split(/(?<=^[^=]+?)=/).map(c=>c.trim());switch(i){case"type":r.type=a;break;case"disabled":r.disabled=Oe.parseBool(a);break;default:r[i]=a}}return r}static parseCacheEntry(e){if(typeof e!="string")return e;let r={type:""},n=fs(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0];if(n.length===1&&!n[0].includes("="))return r.type="registry",r.ref=n[0],r;for(let s of n){let[i,a]=s.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:""},n=fs(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0];if(n.length===1&&n[0]===e&&!e.startsWith("type="))return e!=="-"?(r.type="local",r.dest=e,r):(r.type="tar",r.dest=e,r);for(let s of n){let[i,a]=s.toStrin
Line truncated
|
||||
`)[0])}static async isHeadDetached(e){return await t.exec(["branch","--show-current"],e).then(r=>r.length==0)}static async getDetachedRef(e){let r=await t.exec(["show","-s","--pretty=%D"],e);B(`detached HEAD ref: ${r}`);let n=r.replace(/^grafted, /,"").trim();if(n==="HEAD")return await t.inferRefFromHead(e);let s=n.match(/^HEAD, (.*)$/);if(!s||!s[1])throw new Error(`Cannot find detached HEAD ref in "${r}"`);let i=s[1].trim();if(i.startsWith("tag: "))return await t.findDetachedTagRef(i,r,e);if(i.match(/^pull\/\d+\/(head|merge)$/))return`refs/${i}`;let c=i.match(/^[^/]+\/[^/]+, (.+)$/);if(c)return`refs/heads/${c[1].trim()}`;let l=i.match(/^[^/]+\/(.+)$/);if(l)return`refs/heads/${l[1].trim()}`;throw new Error(`Unsupported detached HEAD ref in "${r}"`)}static async exec(e=[],r){return await Y.getExecOutput("git",e,{cwd:r,ignoreReturnCode:!0,silent:!0}).then(n=>{if(n.stderr.length>0&&n.exitCode!=0)throw new Error(n.stderr);return n.stdout.trim()})}static async inferRefFromHead(e){let r=await t.findContainingRef("refs/heads/",e);if(r)return r;let n=await t.findContainingRef("refs/remotes/",e);if(n){let a=n.match(/^refs\/remotes\/[^/]+\/(.+)$/);return a?`refs/heads/${a[1]}`:n}let s=await t.exec(["tag","--contains","HEAD"],e),[i]=s.split(`
|
||||
`).map(a=>a.trim()).filter(a=>a.length>0);return i?`refs/tags/${i}`:""}static async findDetachedTagRef(e,r,n){let i=(await t.exec(["for-each-ref","--format=%(refname)","--points-at","HEAD","refs/tags/"],n)).split(`
|
||||
`).map(a=>a.trim()).filter(a=>a.length>0).sort((a,c)=>c.length-a.length);for(let a of i){let c=`tag: ${a.slice(10)}`;if(e===c||e.startsWith(`${c}, `))return a}if(i.length===1)return i[0];throw new Error(`Cannot find detached tag ref in "${r}"`)}static async findContainingRef(e,r){let n=await t.exec(["for-each-ref","--format=%(refname)","--contains","HEAD","--sort=-committerdate",e],r),[s]=n.split(`
|
||||
`).map(i=>i.trim()).filter(i=>i.length>0);return s}static async commitDate(e,r){return new Date(await t.exec(["show","-s",'--format="%ci"',e],r))}};var ade=require("crypto"),Ko=w(require("fs"),1),Xo=w(require("path"),1);var Sf=w(GU(),1),cde=w(nq(),1),Nf=w(rde(),1);var sde=require("util");var oG=w(GU(),1);var ide=w(Ti(),1);var nde="application/vnd.oci.empty.v1+json";var Ln=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 Y.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 Y.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 Y.exec(this.binPath,["version","--json"],{failOnStdErr:!1})}static getErrorMessage(e){let r=(0,sde.stripVTControlCharacters)(e).split(/[\r\n]/);for(let n=r.length-1;n>=0;n--){let s=r[n].trim();if(s)return s}return"unknown error"}async versionSatisfies(e,r){let n=r??await this.version();if(!n)return B("Cosign.versionSatisfies false: undefined version"),!1;let s=ide.satisfies(n,e)||/^[0-9a-f]{7}$/.exec(n)!==null;return B(`Cosign.versionSatisfies ${n} statisfies ${e}: ${s}`),s}static parseCommandOutput(e){let r,n,s,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===oG.BUNDLE_V03_MEDIA_TYPE&&typeof u.digest=="string"?r=u.digest:u?.artifactType===nde&&typeof u.digest=="string"&&(n=u.digest)}if(!s&&l&&l.mediaType===oG.BUNDLE_V03_MEDIA_TYPE&&(s=l),s&&(r||n)){i=void 0;break}}return{bundle:s,signatureManifestDigest:r||n,errors:i}}};var aG=w(require("fs"),1);var ZN=class t{static{o(this,"ImageTools")}buildx;constructor(e){this.buildx=e?.buildx||new Ie}async getCommand(e){return await this.buildx.getCommand(["imagetools",...e])}async getInspectCommand(e){return await this.getCommand(["inspect",...e])}async getCreateCommand(e){return await this.getCommand(["create",...e])}async inspectImage(e){return await this.inspect(e,"{{json .Image}}",r=>{if(typeof r=="object"&&!Array.isArray(r)&&r!==null)return Object.prototype.hasOwnProperty.call(r,"config"),r;throw new Error("Unexpected output format")})}async inspectManifest(e){return await this.inspect(e,"{{json .Manifest}}",r=>{if(typeof r=="object"&&!Array.isArray(r)&&r!==null)return Object.prototype.hasOwnProperty.call(r,"manifests"),r;throw new Error("Unexpected output format")})}async attestationDescriptors(e){let r=await this.inspectManifest(e);if(typeof r!="object"||r===null||!("manifests"in r)||!Array.isArray(r.manifests))throw new Error(`No descriptor found for ${e.name}`);let n=r.manifests.filter(a=>a.annotations?.["vnd.docker.reference.type"]==="attestation-manifest");if(!e.platform)return n;let s=e.platform,i=new Map;for(let a of r.manifests)a.digest&&i.set(a.digest,a);return n.filter(a=>{let c=a.annotations?.["vnd.docker.reference.digest"];if(!c)return!1;let l=i.get(c);return l?l.platform?.os===s.os&&l.platform?.architecture===s.architecture&&(l.platform?.variant??"")===(s.variant??""):!1})}async attestationDigests(e){return(await this.attestationDescriptors(e)).map(r=>r.digest)}async create(e){let r=[],n=De.tmpName({tmpdir:De.tmpDir(),template:"imagetools-metadata-XXXXXX"}),s=[],i=[];for(let c of e.sources){if(c.startsWith("cwd://")){let l=c.substring(6);l.length>0&&s.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",n);for(let c of s)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 Y.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(!aG.default.existsSync(n))return;let l=aG.default.readFileSync(n,{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,n){let s=await this.getInspectCommand([e.nam
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,n){return await Y.getExecOutput(e,r,{ignoreReturnCode:!0,silent:!0}).then(s=>{if(s.stderr.length>0&&s.exitCode!=0)throw new Error(s.stderr.trim());return n(JSON.parse(s.stdout))})}static isManifestUnknownError(e){return/(MANIFEST_UNKNOWN|manifest unknown)/i.test(e)||/:\s*not found$/i.test(e)}};var wf="https://search.sigstore.dev";var ode="slsaprovenance1",ml=class t{static{o(this,"Sigstore")}cosign;imageTools;constructor(e){this.cosign=e?.cosign||new Ln,this.imageTools=e?.imageTools||new ZN}async signAttestationManifests(e){if(!await this.cosign.isAvailable())throw new Error("Cosign is required to sign attestation manifests");let r={};try{if(!process.env.ACTIONS_ID_TOKEN_REQUEST_URL)throw new Error('missing "id-token" permission. Please add "permissions: id-token: write" to your workflow.');let n={noTransparencyLog:e.noTransparencyLog,rekorV2:e.rekorV2},s=await this.cosignSigningConfigArgs(n);for(let i of e.imageNames){let a=await this.imageTools.attestationDigests({name:`${i}@${e.imageDigest}`,retryOnManifestUnknown:e.retryOnManifestUnknown,retryLimit:e.retryLimit});for(let c of a){let l=`${i}@${c}`;await nt(`Signing attestation manifest ${l}`,async()=>{let u=["sign","--yes","--oidc-provider","github-actions","--registry-referrers-mode","oci-1-1",...await this.bundleFormatArgs(),...s];S(`[command]${this.cosign.binPath} ${[...u,l].join(" ")}`);let d=await Y.getExecOutput(this.cosign.binPath,["--verbose",...u,l],{ignoreReturnCode:!0,silent:!0,env:Object.assign({},process.env,{COSIGN_EXPERIMENTAL:"1"})}),A=Ln.parseCommandOutput(d.stderr.trim());if(d.exitCode!=0)if(A.errors&&A.errors.length>0){let f=A.errors.map(h=>`- [${h.code}] ${h.message} : ${h.detail}`).join(`
|
||||
`).map(i=>i.trim()).filter(i=>i.length>0);return s}static async commitDate(e,r){return new Date(await t.exec(["show","-s",'--format="%ci"',e],r))}};var yde=require("crypto"),Xo=w(require("fs"),1),Zo=w(require("path"),1);var kf=w(KU(),1),Cde=w(Aq(),1),Df=w(fde(),1);var mde=require("util");var hG=w(KU(),1);var gde=w(vi(),1);var hde="application/vnd.oci.empty.v1+json";var Un=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 Y.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 Y.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 Y.exec(this.binPath,["version","--json"],{failOnStdErr:!1})}static getErrorMessage(e){let r=(0,mde.stripVTControlCharacters)(e).split(/[\r\n]/);for(let n=r.length-1;n>=0;n--){let s=r[n].trim();if(s)return s}return"unknown error"}async versionSatisfies(e,r){let n=r??await this.version();if(!n)return B("Cosign.versionSatisfies false: undefined version"),!1;let s=gde.satisfies(n,e)||/^[0-9a-f]{7}$/.exec(n)!==null;return B(`Cosign.versionSatisfies ${n} statisfies ${e}: ${s}`),s}static parseCommandOutput(e){let r,n,s,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===hG.BUNDLE_V03_MEDIA_TYPE&&typeof u.digest=="string"?r=u.digest:u?.artifactType===hde&&typeof u.digest=="string"&&(n=u.digest)}if(!s&&l&&l.mediaType===hG.BUNDLE_V03_MEDIA_TYPE&&(s=l),s&&(r||n)){i=void 0;break}}return{bundle:s,signatureManifestDigest:r||n,errors:i}}};var mG=w(require("fs"),1);var nx=class t{static{o(this,"ImageTools")}buildx;constructor(e){this.buildx=e?.buildx||new ye}async getCommand(e){return await this.buildx.getCommand(["imagetools",...e])}async getInspectCommand(e){return await this.getCommand(["inspect",...e])}async getCreateCommand(e){return await this.getCommand(["create",...e])}async inspectImage(e){return await this.inspect(e,"{{json .Image}}",r=>{if(typeof r=="object"&&!Array.isArray(r)&&r!==null)return Object.prototype.hasOwnProperty.call(r,"config"),r;throw new Error("Unexpected output format")})}async inspectManifest(e){return await this.inspect(e,"{{json .Manifest}}",r=>{if(typeof r=="object"&&!Array.isArray(r)&&r!==null)return Object.prototype.hasOwnProperty.call(r,"manifests"),r;throw new Error("Unexpected output format")})}async attestationDescriptors(e){let r=await this.inspectManifest(e);if(typeof r!="object"||r===null||!("manifests"in r)||!Array.isArray(r.manifests))throw new Error(`No descriptor found for ${e.name}`);let n=r.manifests.filter(a=>a.annotations?.["vnd.docker.reference.type"]==="attestation-manifest");if(!e.platform)return n;let s=e.platform,i=new Map;for(let a of r.manifests)a.digest&&i.set(a.digest,a);return n.filter(a=>{let c=a.annotations?.["vnd.docker.reference.digest"];if(!c)return!1;let l=i.get(c);return l?l.platform?.os===s.os&&l.platform?.architecture===s.architecture&&(l.platform?.variant??"")===(s.variant??""):!1})}async attestationDigests(e){return(await this.attestationDescriptors(e)).map(r=>r.digest)}static toIndexAnnotation(e){let r=e.indexOf("="),n=r===-1?e:e.substring(0,r),s=r===-1?"":e.substring(r),i=n.indexOf(":");if(i!==-1){let a=n.substring(0,i),c=n.substring(i+1);if(a.split(",").map(u=>u.replace(/\[.*\]$/,"")).some(u=>["manifest","index","manifest-descriptor","index-descriptor"].includes(u)))return`index:${c}${s}`}return`index:${e}`}async create(e){let r=[],n=De.tmpName({tmpdir:De.tmpDir(),template:"imagetools-metadata-XXXXXX"}),s=[],i=[];for(let c of e.sources){if(c.startsWith("cwd://")){let l=c.substring(6);l.length>0&&s.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",n);for(let c of s)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 Y.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(!mG.default.existsSync(n))return;let l=mG
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,n){return await Y.getExecOutput(e,r,{ignoreReturnCode:!0,silent:!0}).then(s=>{if(s.stderr.length>0&&s.exitCode!=0)throw new Error(s.stderr.trim());return n(JSON.parse(s.stdout))})}static isManifestUnknownError(e){return/(MANIFEST_UNKNOWN|manifest unknown)/i.test(e)||/:\s*not found$/i.test(e)}};var Pf="https://search.sigstore.dev";var Ede="slsaprovenance1",yl=class t{static{o(this,"Sigstore")}cosign;imageTools;constructor(e){this.cosign=e?.cosign||new Un,this.imageTools=e?.imageTools||new nx}async signAttestationManifests(e){if(!await this.cosign.isAvailable())throw new Error("Cosign is required to sign attestation manifests");let r={};try{if(!process.env.ACTIONS_ID_TOKEN_REQUEST_URL)throw new Error('missing "id-token" permission. Please add "permissions: id-token: write" to your workflow.');let n={noTransparencyLog:e.noTransparencyLog,rekorV2:e.rekorV2},s=await this.cosignSigningConfigArgs(n);for(let i of e.imageNames){let a=await this.imageTools.attestationDigests({name:`${i}@${e.imageDigest}`,retryOnManifestUnknown:e.retryOnManifestUnknown,retryLimit:e.retryLimit});for(let c of a){let l=`${i}@${c}`;await tt(`Signing attestation manifest ${l}`,async()=>{let u=["sign","--yes","--oidc-provider","github-actions","--registry-referrers-mode","oci-1-1",...await this.bundleFormatArgs(),...s];S(`[command]${this.cosign.binPath} ${[...u,l].join(" ")}`);let d=await Y.getExecOutput(this.cosign.binPath,["--verbose",...u,l],{ignoreReturnCode:!0,silent:!0,env:Object.assign({},process.env,{COSIGN_EXPERIMENTAL:"1"})}),A=Un.parseCommandOutput(d.stderr.trim());if(d.exitCode!=0)if(A.errors&&A.errors.length>0){let f=A.errors.map(h=>`- [${h.code}] ${h.message} : ${h.detail}`).join(`
|
||||
`);throw new Error(`Cosign sign command failed with errors:
|
||||
${f}`)}else throw new Error(`Cosign sign command failed with: ${Ln.getErrorMessage(d.stderr)}`);let p=t.parseBundle((0,Sf.bundleFromJSON)(A.bundle));p.tlogID&&await this.logTransparencyUpload(p.tlogID,n),S(`Signature manifest pushed: https://oci.dag.dev/?referrers=${l}`),r[l]={...p,imageName:i}})}}}catch(n){throw new Error(`Signing BuildKit attestation manifests failed: ${n.message}`)}return r}async verifySignedManifests(e,r){let n={};for(let[s,i]of Object.entries(e))await nt(`Verifying signature of ${s}`,async()=>{let a=await this.verifyImageAttestation(s,{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}`),n[s]=a});return n}async verifyImageAttestations(e,r){let n={},s=await this.imageTools.attestationDigests({name:e,platform:r.platform,retryOnManifestUnknown:r.retryOnManifestUnknown,retryLimit:r.retryLimit});if(s.length===0)throw new Error(`No attestation manifests found for ${e}`);let i=e.split(":",1)[0];for(let a of s){let c=`${i}@${a}`,l=await this.verifyImageAttestation(c,r);S(`Signature manifest verified: https://oci.dag.dev/?image=${i}@${l.signatureManifestDigest}`),n[c]=l}return n}async verifyImageAttestation(e,r){if(!await this.cosign.isAvailable())throw new Error("Cosign is required to verify signed manifests");let n=["verify","--experimental-oci11",...await this.bundleFormatArgs(),"--certificate-oidc-issuer","https://token.actions.githubusercontent.com","--certificate-identity-regexp",r.certificateIdentityRegexp];if(r.noTransparencyLog&&n.push("--use-signed-timestamps","--insecure-ignore-tlog"),!r.retryOnManifestUnknown){S(`[command]${this.cosign.binPath} ${[...n,e].join(" ")}`);let a=await Y.getExecOutput(this.cosign.binPath,["--verbose",...n,e],{ignoreReturnCode:!0,silent:!0,env:Object.assign({},process.env,{COSIGN_EXPERIMENTAL:"1"})});if(a.exitCode!==0)throw new Error(`Cosign verify command failed with: ${Ln.getErrorMessage(a.stderr)}`);let c=Ln.parseCommandOutput(a.stderr.trim());return{cosignArgs:n,signatureManifestDigest:c.signatureManifestDigest}}let s=r.retryLimit??15,i;S(`[command]${this.cosign.binPath} ${[...n,e].join(" ")}`);for(let a=0;a<s;a++){let c=await Y.getExecOutput(this.cosign.binPath,["--verbose",...n,e],{ignoreReturnCode:!0,silent:!0,env:Object.assign({},process.env,{COSIGN_EXPERIMENTAL:"1"})}),l=Ln.parseCommandOutput(c.stderr.trim());if(c.exitCode===0)return{cosignArgs:n,signatureManifestDigest:l.signatureManifestDigest};if(l.errors&&l.errors.length>0){let u=l.errors.map(d=>`- [${d.code}] ${d.message} : ${d.detail}`).join(`
|
||||
${f}`)}else throw new Error(`Cosign sign command failed with: ${Un.getErrorMessage(d.stderr)}`);let p=t.parseBundle((0,kf.bundleFromJSON)(A.bundle));p.tlogID&&await this.logTransparencyUpload(p.tlogID,n),S(`Signature manifest pushed: https://oci.dag.dev/?referrers=${l}`),r[l]={...p,imageName:i}})}}}catch(n){throw new Error(`Signing BuildKit attestation manifests failed: ${n.message}`)}return r}async verifySignedManifests(e,r){let n={};for(let[s,i]of Object.entries(e))await tt(`Verifying signature of ${s}`,async()=>{let a=await this.verifyImageAttestation(s,{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}`),n[s]=a});return n}async verifyImageAttestations(e,r){let n={},s=await this.imageTools.attestationDigests({name:e,platform:r.platform,retryOnManifestUnknown:r.retryOnManifestUnknown,retryLimit:r.retryLimit});if(s.length===0)throw new Error(`No attestation manifests found for ${e}`);let i=e.split(":",1)[0];for(let a of s){let c=`${i}@${a}`,l=await this.verifyImageAttestation(c,r);S(`Signature manifest verified: https://oci.dag.dev/?image=${i}@${l.signatureManifestDigest}`),n[c]=l}return n}async verifyImageAttestation(e,r){if(!await this.cosign.isAvailable())throw new Error("Cosign is required to verify signed manifests");let n=["verify","--experimental-oci11",...await this.bundleFormatArgs(),"--certificate-oidc-issuer","https://token.actions.githubusercontent.com","--certificate-identity-regexp",r.certificateIdentityRegexp];if(r.noTransparencyLog&&n.push("--use-signed-timestamps","--insecure-ignore-tlog"),!r.retryOnManifestUnknown){S(`[command]${this.cosign.binPath} ${[...n,e].join(" ")}`);let a=await Y.getExecOutput(this.cosign.binPath,["--verbose",...n,e],{ignoreReturnCode:!0,silent:!0,env:Object.assign({},process.env,{COSIGN_EXPERIMENTAL:"1"})});if(a.exitCode!==0)throw new Error(`Cosign verify command failed with: ${Un.getErrorMessage(a.stderr)}`);let c=Un.parseCommandOutput(a.stderr.trim());return{cosignArgs:n,signatureManifestDigest:c.signatureManifestDigest}}let s=r.retryLimit??15,i;S(`[command]${this.cosign.binPath} ${[...n,e].join(" ")}`);for(let a=0;a<s;a++){let c=await Y.getExecOutput(this.cosign.binPath,["--verbose",...n,e],{ignoreReturnCode:!0,silent:!0,env:Object.assign({},process.env,{COSIGN_EXPERIMENTAL:"1"})}),l=Un.parseCommandOutput(c.stderr.trim());if(c.exitCode===0)return{cosignArgs:n,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}/${s}...
|
||||
${u}`),await new Promise(d=>setTimeout(d,Math.pow(2,a)*100));else throw i}else throw new Error(`Cosign verify command failed with: ${Ln.getErrorMessage(c.stderr)}`)}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 n={noTransparencyLog:e.noTransparencyLog,rekorV2:e.rekorV2},s=await this.cosignSigningConfigArgs(n),i=t.getProvenanceBlobs(e);for(let a of Object.keys(i))await nt(`Signing ${a}`,async()=>{let c=i[a],l=Xo.default.join(Xo.default.dirname(a),`${e.name??"provenance"}.sigstore.json`),u=t.getProvenanceSubjects(c);if(u.length===0){Je(`No subjects found in provenance ${a}, skip signing.`);return}let d=Xo.default.join(Xo.default.dirname(a),u[0].name),A=["attest-blob","--yes","--oidc-provider","github-actions",...await this.bundleFormatArgs(),"--statement",a,"--type",ode,"--bundle",l,...s];S(`[command]${this.cosign.binPath} ${[...A,d].join(" ")}`);let p=await Y.getExecOutput(this.cosign.binPath,["--verbose",...A,d],{ignoreReturnCode:!0,silent:!0,env:Object.assign({},process.env,{COSIGN_EXPERIMENTAL:"1"})}),f=Ln.parseCommandOutput(p.stderr.trim());if(p.exitCode!=0)if(f.errors&&f.errors.length>0){let g=f.errors.map(y=>`- [${y.code}] ${y.message} : ${y.detail}`).join(`
|
||||
${u}`),await new Promise(d=>setTimeout(d,Math.pow(2,a)*100));else throw i}else throw new Error(`Cosign verify command failed with: ${Un.getErrorMessage(c.stderr)}`)}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 n={noTransparencyLog:e.noTransparencyLog,rekorV2:e.rekorV2},s=await this.cosignSigningConfigArgs(n),i=t.getProvenanceBlobs(e);for(let a of Object.keys(i))await tt(`Signing ${a}`,async()=>{let c=i[a],l=Zo.default.join(Zo.default.dirname(a),`${e.name??"provenance"}.sigstore.json`),u=t.getProvenanceSubjects(c);if(u.length===0){Ve(`No subjects found in provenance ${a}, skip signing.`);return}let d=Zo.default.join(Zo.default.dirname(a),u[0].name),A=["attest-blob","--yes","--oidc-provider","github-actions",...await this.bundleFormatArgs(),"--statement",a,"--type",Ede,"--bundle",l,...s];S(`[command]${this.cosign.binPath} ${[...A,d].join(" ")}`);let p=await Y.getExecOutput(this.cosign.binPath,["--verbose",...A,d],{ignoreReturnCode:!0,silent:!0,env:Object.assign({},process.env,{COSIGN_EXPERIMENTAL:"1"})}),f=Un.parseCommandOutput(p.stderr.trim());if(p.exitCode!=0)if(f.errors&&f.errors.length>0){let m=f.errors.map(y=>`- [${y.code}] ${y.message} : ${y.detail}`).join(`
|
||||
`);throw new Error(`Cosign attest-blob command failed with errors:
|
||||
${g}`)}else throw new Error(`Cosign attest-blob command failed with: ${Ln.getErrorMessage(p.stderr)}`);let h=t.parseBundle((0,Sf.bundleFromJSON)(JSON.parse(Ko.default.readFileSync(l,{encoding:"utf-8"}))));S("Provenance blob signed for:");for(let g of u){let[y,E]=Object.entries(g.digest)[0]||[];S(` - ${g.name} (${y}:${E})`)}h.tlogID&&await this.logTransparencyUpload(h.tlogID,n),S(`Sigstore bundle written to: ${l}`),r[a]={...h,bundlePath:l,subjects:u}})}catch(n){throw new Error(`Signing BuildKit provenance blobs failed: ${n.message}`)}return r}async verifySignedArtifacts(e,r){let n={};if(!await this.cosign.isAvailable())throw new Error("Cosign is required to verify signed artifacts");for(let[s,i]of Object.entries(e)){let a=Xo.default.dirname(s);await nt(`Verifying signature bundle ${i.bundlePath}`,async()=>{for(let c of i.subjects){let l=Xo.default.join(a,c.name);S(`Verifying signed artifact ${l}`);let u=["verify-blob-attestation",...await this.bundleFormatArgs(),"--certificate-oidc-issuer","https://token.actions.githubusercontent.com","--certificate-identity-regexp",r.certificateIdentityRegexp,"--type",r.predicateType??ode];(r.noTransparencyLog||!i.tlogID)&&u.push("--use-signed-timestamps","--insecure-ignore-tlog");let d=await Y.getExecOutput(this.cosign.binPath,[...u,"--bundle",i.bundlePath,l],{ignoreReturnCode:!0});if(d.stderr.length>0&&d.exitCode!=0)throw new Error(d.stderr);n[l]={bundlePath:i.bundlePath,cosignArgs:u}}})}return n}async verifyArtifact(e,r,n){S("Verifying keyless verification bundle signature");let s=JSON.parse(Ko.default.readFileSync(r,"utf-8")),i=(0,Sf.bundleFromJSON)(s);S("Fetching Sigstore TUF trusted root metadata");let a=await cde.getTrustedRoot({retry:{retries:5}}),c=(0,Nf.toTrustMaterial)(a);try{S("Verifying artifact signature");let l=(0,Nf.toSignedEntity)(i,Ko.default.readFileSync(e)),u=t.parseCertificate(i),d=i.verificationMaterial.tlogEntries,A=d.length>0?d[0].logIndex:void 0,f=new Nf.Verifier(c).verify(l,{subjectAlternativeName:n?.subjectAlternativeName,extensions:n?.issuer?{issuer:n.issuer}:void 0});return B(`Sigstore.verifyArtifact signer: ${JSON.stringify(f)}`),{payload:s,certificate:u.toString(),tlogID:A}}catch(l){throw new Error(`Failed to verify artifact signature: ${l}`)}}static noTransparencyLog(e){return e??Xe.context.payload.repository?.private??!1}async cosignSigningConfigArgs(e){let r=[],n=t.noTransparencyLog(e.noTransparencyLog);if(S(`Upload to transparency log: ${n?"disabled":"enabled"}`),await this.cosign.versionSatisfies(">=3.0.4")){let s=await this.useRekorV2(e);await nt("Creating Sigstore protobuf signing config",async()=>{let i=De.tmpName({template:"signing-config-XXXXXX.json",tmpdir:De.tmpDir()}),a=["signing-config","create",s?"--with-default-rekor-v2=true":"--with-default-services=true",`--out=${i}`];n&&a.push("--no-default-rekor=true"),await Y.exec(this.cosign.binPath,a,{env:Object.assign({},process.env,{COSIGN_EXPERIMENTAL:"1"})}),S(JSON.stringify(JSON.parse(Ko.default.readFileSync(i,{encoding:"utf-8"})),null,2)),r.push(`--signing-config=${i}`)})}else r.push("--use-signing-config"),n&&r.push("--tlog-upload=false");return r}async logTransparencyUpload(e,r){if(await this.useRekorV2(r)){S(`Attestation signature uploaded to Rekor v2 transparency log with index ${e}`);return}S(`Attestation signature uploaded to Rekor transparency log: ${wf}?logIndex=${e}`)}async useRekorV2(e){return e.rekorV2===!0&&!t.noTransparencyLog(e.noTransparencyLog)&&await this.cosign.versionSatisfies(">=3.1.1")}static getProvenanceBlobs(e){let r=Xo.default.join(e.localExportDir,"provenance.json");if(Ko.default.existsSync(r))return{[r]:Ko.default.readFileSync(r)};let n=Ko.default.readdirSync(e.localExportDir,{withFileTypes:!0}),s=n.filter(i=>i.isDirectory());if(s.length>0&&s.length===n.length&&s.every(i=>Ko.default.existsSync(Xo.default.join(e.localExportDir,i.name,"provenance.json")))){let i={};for(let a of s){let c=Xo.default.join(e.localExportDir,a.name,"provenance.json");i[c]=Ko.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(n=>({name:n.name,digest:n.digest}))}static parseBundle(e){let r=t.parseCertificate(e),n=e.verificationMaterial.tlogEntries,s=n.length>0?n[0].logIndex:void 0;return{payload:(0,Sf.bundleToJSON)(e),certificate:r.toString(),tlogID:s}}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 ade.X509Certificate(r)}async bundleFormatArgs(){return await this.cosign.versionSatisfies(">=3.1.1")?[]:["--new-bundle-format"]}};var ex=class t{static{o(this,"Install")}standalone;githubToken;sigstore;constructor(e){this.standalone=e?.standalone,this.githubToken=
Line truncated
|
||||
${m}`)}else throw new Error(`Cosign attest-blob command failed with: ${Un.getErrorMessage(p.stderr)}`);let h=t.parseBundle((0,kf.bundleFromJSON)(JSON.parse(Xo.default.readFileSync(l,{encoding:"utf-8"}))));S("Provenance blob signed for:");for(let m of u){let[y,E]=Object.entries(m.digest)[0]||[];S(` - ${m.name} (${y}:${E})`)}h.tlogID&&await this.logTransparencyUpload(h.tlogID,n),S(`Sigstore bundle written to: ${l}`),r[a]={...h,bundlePath:l,subjects:u}})}catch(n){throw new Error(`Signing BuildKit provenance blobs failed: ${n.message}`)}return r}async verifySignedArtifacts(e,r){let n={};if(!await this.cosign.isAvailable())throw new Error("Cosign is required to verify signed artifacts");for(let[s,i]of Object.entries(e)){let a=Zo.default.dirname(s);await tt(`Verifying signature bundle ${i.bundlePath}`,async()=>{for(let c of i.subjects){let l=Zo.default.join(a,c.name);S(`Verifying signed artifact ${l}`);let u=["verify-blob-attestation",...await this.bundleFormatArgs(),"--certificate-oidc-issuer","https://token.actions.githubusercontent.com","--certificate-identity-regexp",r.certificateIdentityRegexp,"--type",r.predicateType??Ede];(r.noTransparencyLog||!i.tlogID)&&u.push("--use-signed-timestamps","--insecure-ignore-tlog");let d=await Y.getExecOutput(this.cosign.binPath,[...u,"--bundle",i.bundlePath,l],{ignoreReturnCode:!0});if(d.stderr.length>0&&d.exitCode!=0)throw new Error(d.stderr);n[l]={bundlePath:i.bundlePath,cosignArgs:u}}})}return n}async verifyArtifact(e,r,n){S("Verifying keyless verification bundle signature");let s=JSON.parse(Xo.default.readFileSync(r,"utf-8")),i=(0,kf.bundleFromJSON)(s);S("Fetching Sigstore TUF trusted root metadata");let a=await Cde.getTrustedRoot({retry:{retries:5}}),c=(0,Df.toTrustMaterial)(a);try{S("Verifying artifact signature");let l=(0,Df.toSignedEntity)(i,Xo.default.readFileSync(e)),u=t.parseCertificate(i),d=i.verificationMaterial.tlogEntries,A=d.length>0?d[0].logIndex:void 0,f=new Df.Verifier(c).verify(l,{subjectAlternativeName:n?.subjectAlternativeName,extensions:n?.issuer?{issuer:n.issuer}:void 0});return B(`Sigstore.verifyArtifact signer: ${JSON.stringify(f)}`),{payload:s,certificate:u.toString(),tlogID:A}}catch(l){throw new Error(`Failed to verify artifact signature: ${l}`)}}static noTransparencyLog(e){return e??We.context.payload.repository?.private??!1}async cosignSigningConfigArgs(e){let r=[],n=t.noTransparencyLog(e.noTransparencyLog);if(S(`Upload to transparency log: ${n?"disabled":"enabled"}`),await this.cosign.versionSatisfies(">=3.0.4")){let s=await this.useRekorV2(e);await tt("Creating Sigstore protobuf signing config",async()=>{let i=De.tmpName({template:"signing-config-XXXXXX.json",tmpdir:De.tmpDir()}),a=["signing-config","create",s?"--with-default-rekor-v2=true":"--with-default-services=true",`--out=${i}`];n&&a.push("--no-default-rekor=true"),await Y.exec(this.cosign.binPath,a,{env:Object.assign({},process.env,{COSIGN_EXPERIMENTAL:"1"})}),S(JSON.stringify(JSON.parse(Xo.default.readFileSync(i,{encoding:"utf-8"})),null,2)),r.push(`--signing-config=${i}`)})}else r.push("--use-signing-config"),n&&r.push("--tlog-upload=false");return r}async logTransparencyUpload(e,r){if(await this.useRekorV2(r)){S(`Attestation signature uploaded to Rekor v2 transparency log with index ${e}`);return}S(`Attestation signature uploaded to Rekor transparency log: ${Pf}?logIndex=${e}`)}async useRekorV2(e){return e.rekorV2===!0&&!t.noTransparencyLog(e.noTransparencyLog)&&await this.cosign.versionSatisfies(">=3.1.1")}static getProvenanceBlobs(e){let r=Zo.default.join(e.localExportDir,"provenance.json");if(Xo.default.existsSync(r))return{[r]:Xo.default.readFileSync(r)};let n=Xo.default.readdirSync(e.localExportDir,{withFileTypes:!0}),s=n.filter(i=>i.isDirectory());if(s.length>0&&s.length===n.length&&s.every(i=>Xo.default.existsSync(Zo.default.join(e.localExportDir,i.name,"provenance.json")))){let i={};for(let a of s){let c=Zo.default.join(e.localExportDir,a.name,"provenance.json");i[c]=Xo.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(n=>({name:n.name,digest:n.digest}))}static parseBundle(e){let r=t.parseCertificate(e),n=e.verificationMaterial.tlogEntries,s=n.length>0?n[0].logIndex:void 0;return{payload:(0,kf.bundleToJSON)(e),certificate:r.toString(),tlogID:s}}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 yde.X509Certificate(r)}async bundleFormatArgs(){return await this.cosign.versionSatisfies(">=3.1.1")?[]:["--new-bundle-format"]}};var sx=class t{static{o(this,"Install")}standalone;githubToken;sigstore;constructor(e){this.standalone=e?.standalone,this.githubToken=
Line truncated
|
||||
# syntax=docker/dockerfile:1
|
||||
|
||||
ARG GO_VERSION="1.24"
|
||||
@@ -219,7 +218,7 @@ EOT
|
||||
|
||||
FROM scratch
|
||||
COPY --from=builder /out /
|
||||
`;var ax=class t{static{o(this,"Install")}githubToken;buildx;sigstore;constructor(e){this.githubToken=e?.githubToken||process.env.GITHUB_TOKEN,this.buildx=e?.buildx||new Ie,this.sigstore=e?.sigstore||new ml}async download(e){let r=await t.getDownloadVersion(e.version);B(`Install.download version: ${r.version}`);let n=await t.getRelease(r,this.githubToken);B(`Install.download release tag name: ${n.tag_name}`);let s=await this.vspec(n.tag_name);B(`Install.download vspec: ${s}`);let i=Tf.clean(s)||"";if(!Tf.valid(i))throw new Error(`Invalid Cosign version "${s}".`);let a=new Er({htcName:"cosign-dl-bin",htcVersion:s,baseCacheDir:Rf.default.join(ki.default.homedir(),".bin"),cacheFile:ki.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=uG.format(r.downloadURL,s,this.filename());S(`Downloading ${l}`);let u=await Qs(l,void 0,this.githubToken);B(`Install.download htcDownloadPath: ${u}`),e.verifySignature&&Tf.satisfies(s,">=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,n){let s=await this.vspec(e);B(`Install.build vspec: ${s}`);let i=new Er({htcName:"cosign-build-bin",htcVersion:s,baseCacheDir:Rf.default.join(ki.default.homedir(),".bin"),cacheFile:ki.default.platform()=="win32"?"cosign.exe":"cosign",ghaNoCache:r}),a=await i.find();if(a)return S(`Cosign binary found in ${a}`),a;let c=Rf.default.join(De.tmpDir(),"cosign-build-cache"),l=await this.buildCommand(e,c),u=await Y.getExecOutput(l.command,l.args,{ignoreReturnCode:!0,input:Buffer.from(ude)}).then(A=>{if(A.stderr.length>0&&A.exitCode!=0)throw new Error(`build failed with: ${Ie.getErrorMessage(A.stderr)}`);return`${c}/cosign`}),d=await i.save(u,n);return S(`Cached to ${d}`),d}async install(e,r){r=r||De.tmpDir();let n=Rf.default.join(r,"cosign-bin");kE.default.existsSync(n)||kE.default.mkdirSync(n,{recursive:!0});let s=ki.default.platform()=="win32"?"cosign.exe":"cosign",i=Rf.default.join(n,s);return kE.default.copyFileSync(e,i),S("Fixing perms"),kE.default.chmodSync(i,"0755"),ji(n),S("Added Cosign to PATH"),S(`Binary path: ${i}`),i}async buildCommand(e,r){let n=await new Ie({standalone:!0}).isAvailable(),s=await new Ie({standalone:!1}).isAvailable(),i=!1;if(await this.buildx.isStandalone()&&n)B("Install.buildCommand: Buildx standalone found, build with it"),i=!0;else if(!await this.buildx.isStandalone()&&s)B("Install.buildCommand: Buildx plugin found, build with it"),i=!1;else if(n)B("Install.buildCommand: Buildx plugin not found, but standalone found so trying to build with it"),i=!0;else if(s)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 Ie({standalone:i}).getCommand(a)}async verifySignature(e,r){let n=`${r}.sigstore.json`;S(`Downloading keyless verification bundle at ${n}`);let s=await Qs(n,void 0,this.githubToken);B(`Install.verifySignature bundlePath: ${s}`);let i=await this.sigstore.verifyArtifact(e,s,{subjectAlternativeName:"keyless@projectsigstore.iam.gserviceaccount.com",issuer:"https://accounts.google.com"});S(`Cosign binary signature verified! ${i.tlogID?`${wf}?logIndex=${i.tlogID}`:""}`)}filename(){let e;switch(ki.default.arch()){case"x64":{e="amd64";break}case"ppc64":{e="ppc64le";break}default:{e=ki.default.arch();break}}let r=ki.default.platform()=="win32"?"windows":ki.default.platform(),n=ki.default.platform()=="win32"?".exe":"";return uG.format("cosign-%s-%s%s",r,e,n)}async vspec(e){if(!Oe.isValidRef(e)){let u=e.replace(/^v+|v+$/g,"");return S(`Use ${u} version spec cache key for ${e}`),u}let[r,n]=e.split("#");n.length==0&&(n="master");let s;n.match(/^[0-9a-fA-F]{40}$/)?s=n:s=await $p.remoteSha(r,n,process.env.GIT_AUTH_TOKEN);let[i,a]=r.substring(19).split("/"),c=`${i}/${Oe.trimSuffix(a,".git")}/${s}`,l=Oe.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 s=await new Xe({token:r}).releases("Cosign",e.contentOpts);if(!s[e.version])throw new Error(`Cannot find Cosign release ${e.version} in releases JSON`);return s[e.version]}};var dde=w(Ti(),1);var cx=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 Y.getExecOutput(this.binPath,["blob","get",e.repository,e.digest],{ignoreReturnCode:!0,silent:!0}).then(r=>{if(r.stderr.
Line truncated
|
||||
`;var dx=class t{static{o(this,"Install")}githubToken;buildx;sigstore;constructor(e){this.githubToken=e?.githubToken||process.env.GITHUB_TOKEN,this.buildx=e?.buildx||new ye,this.sigstore=e?.sigstore||new yl}async download(e){let r=await t.getDownloadVersion(e.version);B(`Install.download version: ${r.version}`);let n=await t.getRelease(r,this.githubToken);B(`Install.download release tag name: ${n.tag_name}`);let s=await this.vspec(n.tag_name);B(`Install.download vspec: ${s}`);let i=Ff.clean(s)||"";if(!Ff.valid(i))throw new Error(`Invalid Cosign version "${s}".`);let a=new Er({htcName:"cosign-dl-bin",htcVersion:s,baseCacheDir:Lf.default.join(Oi.default.homedir(),".bin"),cacheFile:Oi.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=yG.format(r.downloadURL,s,this.filename());S(`Downloading ${l}`);let u=await Ns(l,void 0,this.githubToken);B(`Install.download htcDownloadPath: ${u}`),e.verifySignature&&Ff.satisfies(s,">=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,n){let s=await this.vspec(e);B(`Install.build vspec: ${s}`);let i=new Er({htcName:"cosign-build-bin",htcVersion:s,baseCacheDir:Lf.default.join(Oi.default.homedir(),".bin"),cacheFile:Oi.default.platform()=="win32"?"cosign.exe":"cosign",ghaNoCache:r}),a=await i.find();if(a)return S(`Cosign binary found in ${a}`),a;let c=Lf.default.join(De.tmpDir(),"cosign-build-cache"),l=await this.buildCommand(e,c),u=await Y.getExecOutput(l.command,l.args,{ignoreReturnCode:!0,input:Buffer.from(Bde)}).then(A=>{if(A.stderr.length>0&&A.exitCode!=0)throw new Error(`build failed with: ${ye.getErrorMessage(A.stderr)}`);return`${c}/cosign`}),d=await i.save(u,n);return S(`Cached to ${d}`),d}async install(e,r){r=r||De.tmpDir();let n=Lf.default.join(r,"cosign-bin");LE.default.existsSync(n)||LE.default.mkdirSync(n,{recursive:!0});let s=Oi.default.platform()=="win32"?"cosign.exe":"cosign",i=Lf.default.join(n,s);return LE.default.copyFileSync(e,i),S("Fixing perms"),LE.default.chmodSync(i,"0755"),ji(n),S("Added Cosign to PATH"),S(`Binary path: ${i}`),i}async buildCommand(e,r){let n=await new ye({standalone:!0}).isAvailable(),s=await new ye({standalone:!1}).isAvailable(),i=!1;if(await this.buildx.isStandalone()&&n)B("Install.buildCommand: Buildx standalone found, build with it"),i=!0;else if(!await this.buildx.isStandalone()&&s)B("Install.buildCommand: Buildx plugin found, build with it"),i=!1;else if(n)B("Install.buildCommand: Buildx plugin not found, but standalone found so trying to build with it"),i=!0;else if(s)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 ye({standalone:i}).getCommand(a)}async verifySignature(e,r){let n=`${r}.sigstore.json`;S(`Downloading keyless verification bundle at ${n}`);let s=await Ns(n,void 0,this.githubToken);B(`Install.verifySignature bundlePath: ${s}`);let i=await this.sigstore.verifyArtifact(e,s,{subjectAlternativeName:"keyless@projectsigstore.iam.gserviceaccount.com",issuer:"https://accounts.google.com"});S(`Cosign binary signature verified! ${i.tlogID?`${Pf}?logIndex=${i.tlogID}`:""}`)}filename(){let e;switch(Oi.default.arch()){case"x64":{e="amd64";break}case"ppc64":{e="ppc64le";break}default:{e=Oi.default.arch();break}}let r=Oi.default.platform()=="win32"?"windows":Oi.default.platform(),n=Oi.default.platform()=="win32"?".exe":"";return yG.format("cosign-%s-%s%s",r,e,n)}async vspec(e){if(!Oe.isValidRef(e)){let u=e.replace(/^v+|v+$/g,"");return S(`Use ${u} version spec cache key for ${e}`),u}let[r,n]=e.split("#");n.length==0&&(n="master");let s;n.match(/^[0-9a-fA-F]{40}$/)?s=n:s=await tf.remoteSha(r,n,process.env.GIT_AUTH_TOKEN);let[i,a]=r.substring(19).split("/"),c=`${i}/${Oe.trimSuffix(a,".git")}/${s}`,l=Oe.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 s=await new We({token:r}).releases("Cosign",e.contentOpts);if(!s[e.version])throw new Error(`Cannot find Cosign release ${e.version} in releases JSON`);return s[e.version]}};var bde=w(vi(),1);var Ax=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 Y.getExecOutput(this.binPath,["blob","get",e.repository,e.digest],{ignoreReturnCode:!0,silent:!0}).then(r=>{if(r.stderr.
Line truncated
|
||||
/*! Bundled license information:
|
||||
|
||||
undici/lib/web/fetch/body.js:
|
||||
|
||||
+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": "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
|
||||
"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
|
||||
}
|
||||
+64
-95
@@ -216,7 +216,7 @@ Apache License
|
||||
|
||||
The following npm package may be included in this product:
|
||||
|
||||
- @docker/actions-toolkit@0.100.0
|
||||
- @docker/actions-toolkit@0.105.0
|
||||
|
||||
This package contains the following license:
|
||||
|
||||
@@ -453,9 +453,10 @@ The following npm packages may be included in this product:
|
||||
|
||||
- @pkgjs/parseargs@0.11.0
|
||||
- b4a@1.6.6
|
||||
- b4a@1.9.0
|
||||
- bare-events@2.2.2
|
||||
- bare-events@2.8.3
|
||||
- bare-fs@4.7.1
|
||||
- bare-fs@4.8.4
|
||||
- bare-os@3.9.1
|
||||
- bare-stream@2.13.1
|
||||
- bare-url@2.4.3
|
||||
@@ -1541,13 +1542,8 @@ Apache License
|
||||
|
||||
The following npm packages may be included in this product:
|
||||
|
||||
- @protobuf-ts/plugin-framework@2.9.4
|
||||
- @protobuf-ts/plugin@2.9.4
|
||||
- @protobuf-ts/protoc@2.9.4
|
||||
- @protobuf-ts/runtime-rpc@2.11.1
|
||||
- @protobuf-ts/runtime-rpc@2.9.4
|
||||
- @protobuf-ts/runtime@2.11.1
|
||||
- @protobuf-ts/runtime@2.9.4
|
||||
|
||||
These packages each contain the following license:
|
||||
|
||||
@@ -1792,8 +1788,8 @@ SOFTWARE.
|
||||
|
||||
The following npm packages may be included in this product:
|
||||
|
||||
- js-yaml@5.4.1
|
||||
- js-yaml@5.4.2
|
||||
- js-yaml@5.4.3
|
||||
|
||||
These packages each contain the following license:
|
||||
|
||||
@@ -2008,6 +2004,37 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
|
||||
-----------
|
||||
|
||||
The following npm package may be included in this product:
|
||||
|
||||
- content-type@3.1.1
|
||||
|
||||
This package contains the following license:
|
||||
|
||||
(The MIT License)
|
||||
|
||||
Copyright (c) 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 package may be included in this product:
|
||||
|
||||
- universal-user-agent@7.0.3
|
||||
@@ -2089,11 +2116,12 @@ software or this license, under any kind of legal claim.***
|
||||
|
||||
-----------
|
||||
|
||||
The following npm package may be included in this product:
|
||||
The following npm packages may be included in this product:
|
||||
|
||||
- minimatch@10.2.5
|
||||
- minimatch@10.2.6
|
||||
|
||||
This package contains the following license:
|
||||
These packages each contain the following license:
|
||||
|
||||
# Blue Oak Model License
|
||||
|
||||
@@ -2494,70 +2522,6 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
|
||||
-----------
|
||||
|
||||
The following npm package may be included in this product:
|
||||
|
||||
- typescript@3.9.10
|
||||
|
||||
This package contains the following license:
|
||||
|
||||
Apache License
|
||||
|
||||
Version 2.0, January 2004
|
||||
|
||||
http://www.apache.org/licenses/
|
||||
|
||||
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
||||
|
||||
1. Definitions.
|
||||
|
||||
"License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document.
|
||||
|
||||
"Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License.
|
||||
|
||||
"Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity.
|
||||
|
||||
"You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License.
|
||||
|
||||
"Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files.
|
||||
|
||||
"Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types.
|
||||
|
||||
"Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below).
|
||||
|
||||
"Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof.
|
||||
|
||||
"Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution."
|
||||
|
||||
"Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work.
|
||||
|
||||
2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form.
|
||||
|
||||
3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed.
|
||||
|
||||
4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions:
|
||||
|
||||
You must give any other recipients of the Work or Derivative Works a copy of this License; and
|
||||
|
||||
You must cause any modified files to carry prominent notices stating that You changed the files; and
|
||||
|
||||
You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and
|
||||
|
||||
If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License. You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License.
|
||||
|
||||
5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions.
|
||||
|
||||
6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file.
|
||||
|
||||
7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License.
|
||||
|
||||
8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages.
|
||||
|
||||
9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability.
|
||||
|
||||
END OF TERMS AND CONDITIONS
|
||||
|
||||
-----------
|
||||
|
||||
The following npm package may be included in this product:
|
||||
|
||||
- @sigstore/verify@4.1.2
|
||||
@@ -2656,7 +2620,7 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
|
||||
The following npm package may be included in this product:
|
||||
|
||||
- handlebars@4.7.9
|
||||
- handlebars@4.7.10
|
||||
|
||||
This package contains the following license:
|
||||
|
||||
@@ -2891,11 +2855,13 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
|
||||
-----------
|
||||
|
||||
The following npm package may be included in this product:
|
||||
The following npm packages may be included in this product:
|
||||
|
||||
- @octokit/openapi-types@27.0.0
|
||||
- @octokit/openapi-types@28.0.0
|
||||
- @octokit/openapi-types@29.0.1
|
||||
|
||||
This package contains the following license:
|
||||
These packages each contain the following license:
|
||||
|
||||
Copyright (c) GitHub 2025 - Licensed as MIT.
|
||||
|
||||
@@ -3057,7 +3023,7 @@ The following npm packages may be included in this product:
|
||||
|
||||
- emoji-regex@8.0.0
|
||||
- emoji-regex@9.2.2
|
||||
- he@1.2.0
|
||||
- he@2.0.0
|
||||
|
||||
These packages each contain the following license:
|
||||
|
||||
@@ -3215,12 +3181,11 @@ 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:
|
||||
|
||||
- brace-expansion@1.1.18
|
||||
- brace-expansion@2.0.1
|
||||
|
||||
These packages each contain the following license:
|
||||
This package contains the following license:
|
||||
|
||||
MIT License
|
||||
|
||||
@@ -3369,7 +3334,7 @@ SOFTWARE.
|
||||
|
||||
The following npm package may be included in this product:
|
||||
|
||||
- @octokit/plugin-retry@8.1.0
|
||||
- @octokit/plugin-retry@8.1.1
|
||||
|
||||
This package contains the following license:
|
||||
|
||||
@@ -3459,11 +3424,12 @@ SOFTWARE.
|
||||
|
||||
-----------
|
||||
|
||||
The following npm package may be included in this product:
|
||||
The following npm packages may be included in this product:
|
||||
|
||||
- json-with-bigint@3.5.12
|
||||
- json-with-bigint@3.5.7
|
||||
|
||||
This package contains the following license:
|
||||
These packages each contain the following license:
|
||||
|
||||
MIT License
|
||||
|
||||
@@ -3679,11 +3645,12 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
|
||||
|
||||
-----------
|
||||
|
||||
The following npm package may be included in this product:
|
||||
The following npm packages may be included in this product:
|
||||
|
||||
- brace-expansion@5.0.12
|
||||
- brace-expansion@5.0.6
|
||||
|
||||
This package contains the following license:
|
||||
These packages each contain the following license:
|
||||
|
||||
MIT License
|
||||
|
||||
@@ -3716,6 +3683,8 @@ The following npm packages may be included in this product:
|
||||
- @octokit/plugin-paginate-rest@14.0.0
|
||||
- @octokit/plugin-rest-endpoint-methods@17.0.0
|
||||
- @octokit/types@16.0.0
|
||||
- @octokit/types@17.0.0
|
||||
- @octokit/types@18.0.0
|
||||
|
||||
These packages each contain the following license:
|
||||
|
||||
@@ -4066,10 +4035,8 @@ PERFORMANCE OF THIS SOFTWARE.
|
||||
The following npm packages may be included in this product:
|
||||
|
||||
- isexe@2.0.0
|
||||
- minimatch@3.1.5
|
||||
- once@1.4.0
|
||||
- semver@7.7.3
|
||||
- semver@7.8.1
|
||||
- semver@7.8.5
|
||||
- which@2.0.2
|
||||
- wrappy@1.0.2
|
||||
@@ -4125,7 +4092,9 @@ ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEAL
|
||||
The following npm packages may be included in this product:
|
||||
|
||||
- @octokit/endpoint@11.0.3
|
||||
- @octokit/endpoint@11.0.5
|
||||
- @octokit/graphql@9.0.3
|
||||
- @octokit/request@10.0.16
|
||||
- @octokit/request@10.0.8
|
||||
|
||||
These packages each contain the following license:
|
||||
@@ -4159,6 +4128,7 @@ The following npm packages may be included in this product:
|
||||
- @octokit/auth-token@6.0.0
|
||||
- @octokit/core@7.0.6
|
||||
- @octokit/request-error@7.1.0
|
||||
- @octokit/request-error@7.1.2
|
||||
|
||||
These packages each contain the following license:
|
||||
|
||||
@@ -4188,7 +4158,7 @@ THE SOFTWARE.
|
||||
|
||||
The following npm package may be included in this product:
|
||||
|
||||
- csv-parse@7.0.2
|
||||
- csv-parse@7.0.3
|
||||
|
||||
This package contains the following license:
|
||||
|
||||
@@ -4314,7 +4284,7 @@ The following npm packages may be included in this product:
|
||||
- pump@2.0.1
|
||||
- pumpify@1.5.1
|
||||
- tar-stream@3.1.7
|
||||
- tar-stream@3.2.1
|
||||
- tar-stream@3.2.2
|
||||
|
||||
These packages each contain the following license:
|
||||
|
||||
@@ -4587,6 +4557,7 @@ The following npm packages may be included in this product:
|
||||
- fast-fifo@1.3.2
|
||||
- streamx@2.16.1
|
||||
- streamx@2.25.0
|
||||
- streamx@2.28.1
|
||||
|
||||
These packages each contain the following license:
|
||||
|
||||
@@ -4832,14 +4803,13 @@ THE SOFTWARE.
|
||||
|
||||
The following npm packages may be included in this product:
|
||||
|
||||
- @actions/artifact@6.2.1
|
||||
- @actions/cache@6.2.0
|
||||
- @actions/artifact@6.3.1
|
||||
- @actions/cache@6.3.0
|
||||
- @actions/core@3.0.0
|
||||
- @actions/core@3.0.1
|
||||
- @actions/exec@3.0.0
|
||||
- @actions/github@9.0.0
|
||||
- @actions/github@9.1.1
|
||||
- @actions/glob@0.6.1
|
||||
- @actions/glob@0.7.0
|
||||
- @actions/io@3.0.2
|
||||
- @actions/tool-cache@4.0.0
|
||||
|
||||
@@ -4935,7 +4905,6 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
|
||||
|
||||
The following npm packages may be included in this product:
|
||||
|
||||
- concat-map@0.0.1
|
||||
- minimist@1.2.8
|
||||
- wordwrap@1.0.0
|
||||
|
||||
|
||||
Reference in new issue
Block a user