mirror of
https://github.com/docker/setup-docker-action.git
synced 2026-10-20 16:26:22 +02:00
[dependabot skip] chore: update generated content
This commit is contained in:
1 parent
fdb834de31
commit
d79fe8d950
3 files changed
+87
-87
No files matched your search
+83
-83
@@ -1,82 +1,82 @@
|
||||
var ZX=Object.create;var jm=Object.defineProperty;var eZ=Object.getOwnPropertyDescriptor;var tZ=Object.getOwnPropertyNames;var rZ=Object.getPrototypeOf,sZ=Object.prototype.hasOwnProperty;var o=(t,e)=>jm(t,"name",{value:e,configurable:!0});var f=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),nZ=(t,e)=>{for(var r in e)jm(t,r,{get:e[r],enumerable:!0})},iZ=(t,e,r,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of tZ(e))!sZ.call(t,n)&&n!==r&&jm(t,n,{get:()=>e[n],enumerable:!(s=eZ(e,n))||s.enumerable});return t};var w=(t,e,r)=>(r=t!=null?ZX(rZ(t)):{},iZ(e||!t||!t.__esModule?jm(r,"default",{value:t,enumerable:!0}):r,t));var v_=f(zc=>{"use strict";var wLe=require("net"),AZ=require("tls"),kB=require("http"),S_=require("https"),dZ=require("events"),bLe=require("assert"),pZ=require("util");zc.httpOverHttp=mZ;zc.httpsOverHttp=hZ;zc.httpOverHttps=fZ;zc.httpsOverHttps=gZ;function mZ(t){var e=new Di(t);return e.request=kB.request,e}o(mZ,"httpOverHttp");function hZ(t){var e=new Di(t);return e.request=kB.request,e.createSocket=R_,e.defaultPort=443,e}o(hZ,"httpsOverHttp");function fZ(t){var e=new Di(t);return e.request=S_.request,e}o(fZ,"httpOverHttps");function gZ(t){var e=new Di(t);return e.request=S_.request,e.createSocket=R_,e.defaultPort=443,e}o(gZ,"httpsOverHttps");function Di(t){var e=this;e.options=t||{},e.proxyOptions=e.options.proxy||{},e.maxSockets=e.options.maxSockets||kB.Agent.defaultMaxSockets,e.requests=[],e.sockets=[],e.on("free",o(function(s,n,i,a){for(var c=T_(n,i,a),l=0,u=e.requests.length;l<u;++l){var A=e.requests[l];if(A.host===c.host&&A.port===c.port){e.requests.splice(l,1),A.request.onSocket(s);return}}s.destroy(),e.removeSocket(s)},"onFree"))}o(Di,"TunnelingAgent");pZ.inherits(Di,dZ.EventEmitter);Di.prototype.addRequest=o(function(e,r,s,n){var i=this,a=DB({request:e},i.options,T_(r,s,n));if(i.sockets.length>=this.maxSockets){i.requests.push(a);return}i.createSocket(a,function(c){c.on("free",l),c.on("close",u),c.on("agentRemove",u),e.onSocket(c);function l(){i.emit("free",c,a)}o(l,"onFree");function u(A){i.removeSocket(c),c.removeListener("free",l),c.removeListener("close",u),c.removeListener("agentRemove",u)}o(u,"onCloseOrRemove")})},"addRequest");Di.prototype.createSocket=o(function(e,r){var s=this,n={};s.sockets.push(n);var i=DB({},s.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:!1,headers:{host:e.host+":"+e.port}});e.localAddress&&(i.localAddress=e.localAddress),i.proxyAuth&&(i.headers=i.headers||{},i.headers["Proxy-Authorization"]="Basic "+new Buffer(i.proxyAuth).toString("base64")),wo("making CONNECT request");var a=s.request(i);a.useChunkedEncodingByDefault=!1,a.once("response",c),a.once("upgrade",l),a.once("connect",u),a.once("error",A),a.end();function c(d){d.upgrade=!0}o(c,"onResponse");function l(d,p,m){process.nextTick(function(){u(d,p,m)})}o(l,"onUpgrade");function u(d,p,m){if(a.removeAllListeners(),p.removeAllListeners(),d.statusCode!==200){wo("tunneling socket could not be established, statusCode=%d",d.statusCode),p.destroy();var h=new Error("tunneling socket could not be established, statusCode="+d.statusCode);h.code="ECONNRESET",e.request.emit("error",h),s.removeSocket(n);return}if(m.length>0){wo("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),s.removeSocket(n);return}return wo("tunneling connection has established"),s.sockets[s.sockets.indexOf(n)]=p,r(p)}o(u,"onConnect");function A(d){a.removeAllListeners(),wo(`tunneling socket could not be established, cause=%s
|
||||
`,d.message,d.stack);var p=new Error("tunneling socket could not be established, cause="+d.message);p.code="ECONNRESET",e.request.emit("error",p),s.removeSocket(n)}o(A,"onError")},"createSocket");Di.prototype.removeSocket=o(function(e){var r=this.sockets.indexOf(e);if(r!==-1){this.sockets.splice(r,1);var s=this.requests.shift();s&&this.createSocket(s,function(n){s.request.onSocket(n)})}},"removeSocket");function R_(t,e){var r=this;Di.prototype.createSocket.call(r,t,function(s){var n=t.request.getHeader("host"),i=DB({},r.options,{socket:s,servername:n?n.replace(/:.*$/,""):t.host}),a=AZ.connect(0,i);r.sockets[r.sockets.indexOf(s)]=a,e(a)})}o(R_,"createSecureSocket");function T_(t,e,r){return typeof t=="string"?{host:t,port:e,localAddress:r}:t}o(T_,"toOptions");function DB(t){for(var e=1,r=arguments.length;e<r;++e){var s=arguments[e];if(typeof s=="object")for(var n=Object.keys(s),i=0,a=n.length;i<a;++i){var c=n[i];s[c]!==void 0&&(t[c]=s[c])}}return t}o(DB,"mergeOptions");var wo;process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)?wo=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"):wo=o(function(){},"debug");zc.debug=wo});var gA=f((NLe,P_)=>{P_.exports=v_()});var ze=f((SLe,k_)=>{k_.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 Qe=f((RLe,nL)=>{"use strict";var D_=Symbol.for("undici.error.UND_ERR"),$e=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[D_]===!0}[D_]=!0},__=Symbol.for("undici.error.UND_ERR_CONNECT_TIMEOUT"),_B=class extends $e{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[__]===!0}[__]=!0},L_=Symbol.for("undici.error.UND_ERR_HEADERS_TIMEOUT"),LB=class extends $e{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[L_]===!0}[L_]=!0},M_=Symbol.for("undici.error.UND_ERR_HEADERS_OVERFLOW"),MB=class extends $e{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[M_]===!0}[M_]=!0},O_=Symbol.for("undici.error.UND_ERR_BODY_TIMEOUT"),OB=class extends $e{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(EM,"isValidHeaderValue");function kee(t,e){let{headersList:r}=e,s=(r.get("referrer-policy",!0)??"").split(","),n="";if(s.length>0)for(let i=s.length;i!==0;i--){let a=s[i-1].trim();if(gee.has(a)){n=a;break}}n!==""&&(t.referrerPolicy=n)}o(kee,"setRequestReferrerPolicyOnRedirect");function Dee(){return"allowed"}o(Dee,"crossOriginResourcePolicyCheck");function _ee(){return"success"}o(_ee,"corsCheck");function Lee(){return"success"}o(Lee,"TAOCheck");function Mee(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}o(Mee,"appendFetchMetadata");function Oee(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&&Tw(t.origin)&&!Tw(xA(t))&&(e=null);break;case"same-origin":Ih(t,xA(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}o(Oee,"appendRequestOriginHeader");function el(t,e){return t}o(el,"coarsenTime");function Fee(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:el(t.domainLookupStartTime,r),domainLookupEndTime:el(t.domainLookupEndTime,r),connectionStartTime:el(t.connectionStartTime,r),connectionEndTime:el(t.connectionEndTime,r),secureConnectionStartTime:el(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}o(Fee,"clampAndCoarsenConnectionTimingInfo");function Uee(t){return el(Bee.now(),t)}o(Uee,"coarsenedSharedCurrentTime");function qee(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(qee,"createOpaqueTimingInfo");function yM(){return{referrerPolicy:"strict-origin-when-cross-origin"}}o(yM,"makePolicyContainer");function Gee(t){return{referrerPolicy:t.referrerPolicy}}o(Gee,"clonePolicyContainer");function Hee(t){let e=t.referrerPolicy;wa(e);let r=null;if(t.referrer==="client"){let c=pM();if(!c||c.origin==="null")return"no-referrer";r=new URL(c)}else t.referrer instanceof URL&&(r=t.referrer);let s=Rw(r),n=Rw(r,!0);s.toString().length>4096&&(s=n);let i=Ih(t,s),a=QA(s)&&!QA(t.url);switch(e){case"origin":return n??Rw(r,!0);case"unsafe-url":return s;case"same-origin":return i?n:"no-referrer";case"origin-when-cross-origin":return i?s:n;case"strict-origin-when-cross-origin":{let c=xA(t);return Ih(s,c)?s:QA(s)&&!QA(c)?"no-referrer":n}default:return a?"no-referrer":n}}o(Hee,"determineRequestsReferrer");function Rw(t,e){return wa(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(Rw,"stripURLForReferrer");function QA(t){if(!(t instanceof URL))return!1;if(t.href==="about:blank"||t.href==="about:srcdoc"||t.protocol==="data:"||t.protocol==="file:")return!0;return e(t.origin);function e(r){if(r==null||r==="null")return!1;let s=new URL(r);return!!(s.protocol==="https:"||s.protocol==="wss:"||/^127(?:\.[0-9]+){0,2}\.[0-9]+$|^\[(?:0*:)*?:?0*1\]$/.test(s.hostname)||s.hostname==="localhost"||s.hostname.includes("localhost.")||s.hostname.endsWith(".localhost"))}}o(QA,"isURLPotentiallyTrustworthy");function zee(t,e){if(Ch===void 0)return!0;let r=CM(e);if(r==="no metadata"||r.length===0)return!0;let s=Vee(r),n=Yee(r,s);for(let i of n){let a=i.algo,c=i.hash,l=Ch.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)),Jee(l,c))return!0}return!1}o(zee,"bytesMatch");var $ee=/(?<algo>sha256|sha384|sha512)-((?<hash>[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;function CM(t){let e=[],r=!0;for(let s of t.split(" ")){r=!1;let n=$ee.exec(s);if(n===null||n.groups===void 0||n.groups.algo===void 0)continue;let i=n.groups.algo.toLowerCase();hM.includes(i)&&e.push(n.groups)}return r===!0?"no metadata":e}o(CM,"parseMetadata");function Vee(t){let e=t[0].algo;if(e[3]==="5")return e;for(let r=1;r<t.length;++r){let s=t[r];if(s.algo[3]==="5"){e="sha512";break}else{if(e[3]==="3")continue;s.algo[3]==="3"&&(e="sha384")}}return e}o(Vee,"getStrongestMetadata");function Yee(t,e){if(t.length===1)return t;let r=0;for(let s=0;s<t.length;++s)t[s].algo===e&&(t[r++]=t[s]);return t.length=r,t}o(Yee,"filterMetadataListByAlgorithm");function Jee(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(Jee,"compareBase64Mixed");function Wee(t){}o(Wee,"tryUpgradeReque
Line truncated
|
||||
`);function vte(t){for(let e=0;e<t.length;++e)if((t.charCodeAt(e)&-128)!==0)return!1;return!0}o(vte,"isAsciiString");function Pte(t){let e=t.length;if(e<27||e>70)return!1;for(let r=0;r<e;++r){let s=t.charCodeAt(r);if(!(s>=48&&s<=57||s>=65&&s<=90||s>=97&&s<=122||s===39||s===45||s===95))return!1}return!0}o(Pte,"validateBoundary");function kte(t,e){wh(e!=="failure"&&e.essence==="multipart/form-data");let r=e.parameters.get("boundary");if(r===void 0)return"failure";let s=Buffer.from(`--${r}`,"utf8"),n=[],i={position:0};for(;t[i.position]===13&&t[i.position+1]===10;)i.position+=2;let a=t.length;for(;t[a-1]===10&&t[a-2]===13;)a-=2;for(a!==t.length&&(t=t.subarray(0,a));;){if(t.subarray(i.position,i.position+s.length).equals(s))i.position+=s.length;else return"failure";if(i.position===t.length-2&&bh(t,Rte,i)||i.position===t.length-4&&bh(t,Tte,i))return n;if(t[i.position]!==13||t[i.position+1]!==10)return"failure";i.position+=2;let c=Dte(t,i);if(c==="failure")return"failure";let{name:l,filename:u,contentType:A,encoding:d}=c;i.position+=2;let p;{let h=t.indexOf(s.subarray(2),i.position);if(h===-1)return"failure";p=t.subarray(i.position,h-4),i.position+=p.length,d==="base64"&&(p=Buffer.from(p.toString(),"base64"))}if(t[i.position]!==13||t[i.position+1]!==10)return"failure";i.position+=2;let m;u!==null?(A??="text/plain",vte(A)||(A=""),m=new Nte([p],u,{type:A})):m=Bte(Buffer.from(p)),wh(kM(l)),wh(typeof m=="string"&&kM(m)||bte(m)),n.push(Qte(l,m,u))}}o(kte,"multipartFormDataParser");function Dte(t,e){let r=null,s=null,n=null,i=null;for(;;){if(t[e.position]===13&&t[e.position+1]===10)return r===null?"failure":{name:r,filename:s,contentType:n,encoding:i};let a=rl(c=>c!==10&&c!==13&&c!==58,t,e);if(a=Mw(a,!0,!0,c=>c===9||c===32),!wte.test(a.toString())||t[e.position]!==58)return"failure";switch(e.position++,rl(c=>c===32||c===9,t,e),Ite(a)){case"content-disposition":{if(r=s=null,!bh(t,Ste,e)||(e.position+=17,r=LM(t,e),r===null))return"failure";if(bh(t,_M,e)){let c=e.position+_M.length;if(t[c]===42&&(e.position+=1,c+=1),t[c]!==61||t[c+1]!==34||(e.position+=12,s=LM(t,e),s===null))return"failure"}break}case"content-type":{let c=rl(l=>l!==10&&l!==13,t,e);c=Mw(c,!1,!0,l=>l===9||l===32),n=DM(c);break}case"content-transfer-encoding":{let c=rl(l=>l!==10&&l!==13,t,e);c=Mw(c,!1,!0,l=>l===9||l===32),i=DM(c);break}default:rl(c=>c!==10&&c!==13,t,e)}if(t[e.position]!==13&&t[e.position+1]!==10)return"failure";e.position+=2}}o(Dte,"parseMultipartFormDataHeaders");function LM(t,e){wh(t[e.position-1]===34);let r=rl(s=>s!==10&&s!==13&&s!==34,t,e);return t[e.position]!==34?null:(e.position++,r=new TextDecoder().decode(r).replace(/%0A/ig,`
|
||||
`).replace(/%0D/ig,"\r").replace(/%22/g,'"'),r)}o(LM,"parseMultipartFormDataName");function rl(t,e,r){let s=r.position;for(;s<e.length&&t(e[s]);)++s;return e.subarray(r.position,r.position=s)}o(rl,"collectASequenceOfBytes");function Mw(t,e,r,s){let n=0,i=t.length-1;if(e)for(;n<t.length&&s(t[n]);)n++;if(r)for(;i>0&&s(t[i]);)i--;return n===0&&i===t.length-1?t:t.subarray(n,i+1)}o(Mw,"removeChars");function bh(t,e,r){if(t.length<e.length)return!1;for(let s=0;s<e.length;s++)if(e[s]!==t[r.position+s])return!1;return!0}o(bh,"bufferStartsWith");MM.exports={multipartFormDataParser:kte,validateBoundary:Pte}});var il=f((hMe,JM)=>{"use strict";var RA=me(),{ReadableStreamFrom:_te,isBlobLike:FM,isReadableStreamLike:Lte,readableStreamClose:Mte,createDeferredPromise:Ote,fullyReadBody:Fte,extractMimeType:Ute,utf8DecodeBytes:GM}=jr(),{FormData:UM}=SA(),{kState:nl}=bo(),{webidl:qte}=Yt(),{Blob:Gte}=require("node:buffer"),Ow=require("node:assert"),{isErrored:HM,isDisturbed:Hte}=require("node:stream"),{isArrayBuffer:zte}=require("node:util/types"),{serializeAMimeType:$te}=Tr(),{multipartFormDataParser:Vte}=OM(),Fw;try{let t=require("node:crypto");Fw=o(e=>t.randomInt(0,e),"random")}catch{Fw=o(t=>Math.floor(Math.random(t)),"random")}var Qh=new TextEncoder;function Yte(){}o(Yte,"noop");var zM=globalThis.FinalizationRegistry&&process.version.indexOf("v18")!==0,$M;zM&&($M=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!Hte(e)&&!HM(e)&&e.cancel("Response object has been garbage collected").catch(Yte)}));function VM(t,e=!1){let r=null;t instanceof ReadableStream?r=t:FM(t)?r=t.stream():r=new ReadableStream({async pull(l){let u=typeof n=="string"?Qh.encode(n):n;u.byteLength&&l.enqueue(u),queueMicrotask(()=>Mte(l))},start(){},type:"bytes"}),Ow(Lte(r));let s=null,n=null,i=null,a=null;if(typeof t=="string")n=t,a="text/plain;charset=UTF-8";else if(t instanceof URLSearchParams)n=t.toString(),a="application/x-www-form-urlencoded;charset=UTF-8";else if(zte(t))n=new Uint8Array(t.slice());else if(ArrayBuffer.isView(t))n=new Uint8Array(t.buffer.slice(t.byteOffset,t.byteOffset+t.byteLength));else if(RA.isFormDataLike(t)){let l=`----formdata-undici-0${`${Fw(1e11)}`.padStart(11,"0")}`,u=`--${l}\r
|
||||
var lZ=Object.create;var eh=Object.defineProperty;var uZ=Object.getOwnPropertyDescriptor;var AZ=Object.getOwnPropertyNames;var dZ=Object.getPrototypeOf,pZ=Object.prototype.hasOwnProperty;var o=(t,e)=>eh(t,"name",{value:e,configurable:!0});var f=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),mZ=(t,e)=>{for(var r in e)eh(t,r,{get:e[r],enumerable:!0})},hZ=(t,e,r,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of AZ(e))!pZ.call(t,n)&&n!==r&&eh(t,n,{get:()=>e[n],enumerable:!(s=uZ(e,n))||s.enumerable});return t};var w=(t,e,r)=>(r=t!=null?lZ(dZ(t)):{},hZ(e||!t||!t.__esModule?eh(r,"default",{value:t,enumerable:!0}):r,t));var M_=f(Yc=>{"use strict";var RLe=require("net"),IZ=require("tls"),MB=require("http"),D_=require("https"),BZ=require("events"),TLe=require("assert"),wZ=require("util");Yc.httpOverHttp=bZ;Yc.httpsOverHttp=QZ;Yc.httpOverHttps=xZ;Yc.httpsOverHttps=NZ;function bZ(t){var e=new Di(t);return e.request=MB.request,e}o(bZ,"httpOverHttp");function QZ(t){var e=new Di(t);return e.request=MB.request,e.createSocket=__,e.defaultPort=443,e}o(QZ,"httpsOverHttp");function xZ(t){var e=new Di(t);return e.request=D_.request,e}o(xZ,"httpOverHttps");function NZ(t){var e=new Di(t);return e.request=D_.request,e.createSocket=__,e.defaultPort=443,e}o(NZ,"httpsOverHttps");function Di(t){var e=this;e.options=t||{},e.proxyOptions=e.options.proxy||{},e.maxSockets=e.options.maxSockets||MB.Agent.defaultMaxSockets,e.requests=[],e.sockets=[],e.on("free",o(function(s,n,i,a){for(var c=L_(n,i,a),l=0,u=e.requests.length;l<u;++l){var A=e.requests[l];if(A.host===c.host&&A.port===c.port){e.requests.splice(l,1),A.request.onSocket(s);return}}s.destroy(),e.removeSocket(s)},"onFree"))}o(Di,"TunnelingAgent");wZ.inherits(Di,BZ.EventEmitter);Di.prototype.addRequest=o(function(e,r,s,n){var i=this,a=OB({request:e},i.options,L_(r,s,n));if(i.sockets.length>=this.maxSockets){i.requests.push(a);return}i.createSocket(a,function(c){c.on("free",l),c.on("close",u),c.on("agentRemove",u),e.onSocket(c);function l(){i.emit("free",c,a)}o(l,"onFree");function u(A){i.removeSocket(c),c.removeListener("free",l),c.removeListener("close",u),c.removeListener("agentRemove",u)}o(u,"onCloseOrRemove")})},"addRequest");Di.prototype.createSocket=o(function(e,r){var s=this,n={};s.sockets.push(n);var i=OB({},s.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:!1,headers:{host:e.host+":"+e.port}});e.localAddress&&(i.localAddress=e.localAddress),i.proxyAuth&&(i.headers=i.headers||{},i.headers["Proxy-Authorization"]="Basic "+new Buffer(i.proxyAuth).toString("base64")),bo("making CONNECT request");var a=s.request(i);a.useChunkedEncodingByDefault=!1,a.once("response",c),a.once("upgrade",l),a.once("connect",u),a.once("error",A),a.end();function c(d){d.upgrade=!0}o(c,"onResponse");function l(d,p,m){process.nextTick(function(){u(d,p,m)})}o(l,"onUpgrade");function u(d,p,m){if(a.removeAllListeners(),p.removeAllListeners(),d.statusCode!==200){bo("tunneling socket could not be established, statusCode=%d",d.statusCode),p.destroy();var h=new Error("tunneling socket could not be established, statusCode="+d.statusCode);h.code="ECONNRESET",e.request.emit("error",h),s.removeSocket(n);return}if(m.length>0){bo("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),s.removeSocket(n);return}return bo("tunneling connection has established"),s.sockets[s.sockets.indexOf(n)]=p,r(p)}o(u,"onConnect");function A(d){a.removeAllListeners(),bo(`tunneling socket could not be established, cause=%s
|
||||
`,d.message,d.stack);var p=new Error("tunneling socket could not be established, cause="+d.message);p.code="ECONNRESET",e.request.emit("error",p),s.removeSocket(n)}o(A,"onError")},"createSocket");Di.prototype.removeSocket=o(function(e){var r=this.sockets.indexOf(e);if(r!==-1){this.sockets.splice(r,1);var s=this.requests.shift();s&&this.createSocket(s,function(n){s.request.onSocket(n)})}},"removeSocket");function __(t,e){var r=this;Di.prototype.createSocket.call(r,t,function(s){var n=t.request.getHeader("host"),i=OB({},r.options,{socket:s,servername:n?n.replace(/:.*$/,""):t.host}),a=IZ.connect(0,i);r.sockets[r.sockets.indexOf(s)]=a,e(a)})}o(__,"createSecureSocket");function L_(t,e,r){return typeof t=="string"?{host:t,port:e,localAddress:r}:t}o(L_,"toOptions");function OB(t){for(var e=1,r=arguments.length;e<r;++e){var s=arguments[e];if(typeof s=="object")for(var n=Object.keys(s),i=0,a=n.length;i<a;++i){var c=n[i];s[c]!==void 0&&(t[c]=s[c])}}return t}o(OB,"mergeOptions");var bo;process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)?bo=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"):bo=o(function(){},"debug");Yc.debug=bo});var CA=f((kLe,O_)=>{O_.exports=M_()});var Ve=f((DLe,F_)=>{F_.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 Qe=f((_Le,uL)=>{"use strict";var U_=Symbol.for("undici.error.UND_ERR"),$e=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[U_]===!0}[U_]=!0},q_=Symbol.for("undici.error.UND_ERR_CONNECT_TIMEOUT"),FB=class extends $e{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[q_]===!0}[q_]=!0},G_=Symbol.for("undici.error.UND_ERR_HEADERS_TIMEOUT"),UB=class extends $e{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[G_]===!0}[G_]=!0},H_=Symbol.for("undici.error.UND_ERR_HEADERS_OVERFLOW"),qB=class extends $e{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[H_]===!0}[H_]=!0},z_=Symbol.for("undici.error.UND_ERR_BODY_TIMEOUT"),GB=class extends $e{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(wM,"isValidHeaderValue");function Hee(t,e){let{headersList:r}=e,s=(r.get("referrer-policy",!0)??"").split(","),n="";if(s.length>0)for(let i=s.length;i!==0;i--){let a=s[i-1].trim();if(Nee.has(a)){n=a;break}}n!==""&&(t.referrerPolicy=n)}o(Hee,"setRequestReferrerPolicyOnRedirect");function zee(){return"allowed"}o(zee,"crossOriginResourcePolicyCheck");function Vee(){return"success"}o(Vee,"corsCheck");function $ee(){return"success"}o($ee,"TAOCheck");function Yee(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}o(Yee,"appendFetchMetadata");function Jee(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&&_w(t.origin)&&!_w(RA(t))&&(e=null);break;case"same-origin":Qh(t,RA(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}o(Jee,"appendRequestOriginHeader");function sl(t,e){return t}o(sl,"coarsenTime");function Wee(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:sl(t.domainLookupStartTime,r),domainLookupEndTime:sl(t.domainLookupEndTime,r),connectionStartTime:sl(t.connectionStartTime,r),connectionEndTime:sl(t.connectionEndTime,r),secureConnectionStartTime:sl(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}o(Wee,"clampAndCoarsenConnectionTimingInfo");function jee(t){return sl(Pee.now(),t)}o(jee,"coarsenedSharedCurrentTime");function Kee(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(Kee,"createOpaqueTimingInfo");function bM(){return{referrerPolicy:"strict-origin-when-cross-origin"}}o(bM,"makePolicyContainer");function Xee(t){return{referrerPolicy:t.referrerPolicy}}o(Xee,"clonePolicyContainer");function Zee(t){let e=t.referrerPolicy;wa(e);let r=null;if(t.referrer==="client"){let c=EM();if(!c||c.origin==="null")return"no-referrer";r=new URL(c)}else t.referrer instanceof URL&&(r=t.referrer);let s=Dw(r),n=Dw(r,!0);s.toString().length>4096&&(s=n);let i=Qh(t,s),a=SA(s)&&!SA(t.url);switch(e){case"origin":return n??Dw(r,!0);case"unsafe-url":return s;case"same-origin":return i?n:"no-referrer";case"origin-when-cross-origin":return i?s:n;case"strict-origin-when-cross-origin":{let c=RA(t);return Qh(s,c)?s:SA(s)&&!SA(c)?"no-referrer":n}default:return a?"no-referrer":n}}o(Zee,"determineRequestsReferrer");function Dw(t,e){return wa(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(Dw,"stripURLForReferrer");function SA(t){if(!(t instanceof URL))return!1;if(t.href==="about:blank"||t.href==="about:srcdoc"||t.protocol==="data:"||t.protocol==="file:")return!0;return e(t.origin);function e(r){if(r==null||r==="null")return!1;let s=new URL(r);return!!(s.protocol==="https:"||s.protocol==="wss:"||/^127(?:\.[0-9]+){0,2}\.[0-9]+$|^\[(?:0*:)*?:?0*1\]$/.test(s.hostname)||s.hostname==="localhost"||s.hostname.includes("localhost.")||s.hostname.endsWith(".localhost"))}}o(SA,"isURLPotentiallyTrustworthy");function ete(t,e){if(bh===void 0)return!0;let r=QM(e);if(r==="no metadata"||r.length===0)return!0;let s=rte(r),n=ste(r,s);for(let i of n){let a=i.algo,c=i.hash,l=bh.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)),nte(l,c))return!0}return!1}o(ete,"bytesMatch");var tte=/(?<algo>sha256|sha384|sha512)-((?<hash>[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;function QM(t){let e=[],r=!0;for(let s of t.split(" ")){r=!1;let n=tte.exec(s);if(n===null||n.groups===void 0||n.groups.algo===void 0)continue;let i=n.groups.algo.toLowerCase();CM.includes(i)&&e.push(n.groups)}return r===!0?"no metadata":e}o(QM,"parseMetadata");function rte(t){let e=t[0].algo;if(e[3]==="5")return e;for(let r=1;r<t.length;++r){let s=t[r];if(s.algo[3]==="5"){e="sha512";break}else{if(e[3]==="3")continue;s.algo[3]==="3"&&(e="sha384")}}return e}o(rte,"getStrongestMetadata");function ste(t,e){if(t.length===1)return t;let r=0;for(let s=0;s<t.length;++s)t[s].algo===e&&(t[r++]=t[s]);return t.length=r,t}o(ste,"filterMetadataListByAlgorithm");function nte(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(nte,"compareBase64Mixed");function ite(t){}o(ite,"tryUpgradeReque
Line truncated
|
||||
`);function qte(t){for(let e=0;e<t.length;++e)if((t.charCodeAt(e)&-128)!==0)return!1;return!0}o(qte,"isAsciiString");function Gte(t){let e=t.length;if(e<27||e>70)return!1;for(let r=0;r<e;++r){let s=t.charCodeAt(r);if(!(s>=48&&s<=57||s>=65&&s<=90||s>=97&&s<=122||s===39||s===45||s===95))return!1}return!0}o(Gte,"validateBoundary");function Hte(t,e){Nh(e!=="failure"&&e.essence==="multipart/form-data");let r=e.parameters.get("boundary");if(r===void 0)return"failure";let s=Buffer.from(`--${r}`,"utf8"),n=[],i={position:0};for(;t[i.position]===13&&t[i.position+1]===10;)i.position+=2;let a=t.length;for(;t[a-1]===10&&t[a-2]===13;)a-=2;for(a!==t.length&&(t=t.subarray(0,a));;){if(t.subarray(i.position,i.position+s.length).equals(s))i.position+=s.length;else return"failure";if(i.position===t.length-2&&Sh(t,Fte,i)||i.position===t.length-4&&Sh(t,Ute,i))return n;if(t[i.position]!==13||t[i.position+1]!==10)return"failure";i.position+=2;let c=zte(t,i);if(c==="failure")return"failure";let{name:l,filename:u,contentType:A,encoding:d}=c;i.position+=2;let p;{let h=t.indexOf(s.subarray(2),i.position);if(h===-1)return"failure";p=t.subarray(i.position,h-4),i.position+=p.length,d==="base64"&&(p=Buffer.from(p.toString(),"base64"))}if(t[i.position]!==13||t[i.position+1]!==10)return"failure";i.position+=2;let m;u!==null?(A??="text/plain",qte(A)||(A=""),m=new Mte([p],u,{type:A})):m=Pte(Buffer.from(p)),Nh(OM(l)),Nh(typeof m=="string"&&OM(m)||Dte(m)),n.push(_te(l,m,u))}}o(Hte,"multipartFormDataParser");function zte(t,e){let r=null,s=null,n=null,i=null;for(;;){if(t[e.position]===13&&t[e.position+1]===10)return r===null?"failure":{name:r,filename:s,contentType:n,encoding:i};let a=il(c=>c!==10&&c!==13&&c!==58,t,e);if(a=Gw(a,!0,!0,c=>c===9||c===32),!kte.test(a.toString())||t[e.position]!==58)return"failure";switch(e.position++,il(c=>c===32||c===9,t,e),vte(a)){case"content-disposition":{if(r=s=null,!Sh(t,Ote,e)||(e.position+=17,r=qM(t,e),r===null))return"failure";if(Sh(t,UM,e)){let c=e.position+UM.length;if(t[c]===42&&(e.position+=1,c+=1),t[c]!==61||t[c+1]!==34||(e.position+=12,s=qM(t,e),s===null))return"failure"}break}case"content-type":{let c=il(l=>l!==10&&l!==13,t,e);c=Gw(c,!1,!0,l=>l===9||l===32),n=FM(c);break}case"content-transfer-encoding":{let c=il(l=>l!==10&&l!==13,t,e);c=Gw(c,!1,!0,l=>l===9||l===32),i=FM(c);break}default:il(c=>c!==10&&c!==13,t,e)}if(t[e.position]!==13&&t[e.position+1]!==10)return"failure";e.position+=2}}o(zte,"parseMultipartFormDataHeaders");function qM(t,e){Nh(t[e.position-1]===34);let r=il(s=>s!==10&&s!==13&&s!==34,t,e);return t[e.position]!==34?null:(e.position++,r=new TextDecoder().decode(r).replace(/%0A/ig,`
|
||||
`).replace(/%0D/ig,"\r").replace(/%22/g,'"'),r)}o(qM,"parseMultipartFormDataName");function il(t,e,r){let s=r.position;for(;s<e.length&&t(e[s]);)++s;return e.subarray(r.position,r.position=s)}o(il,"collectASequenceOfBytes");function Gw(t,e,r,s){let n=0,i=t.length-1;if(e)for(;n<t.length&&s(t[n]);)n++;if(r)for(;i>0&&s(t[i]);)i--;return n===0&&i===t.length-1?t:t.subarray(n,i+1)}o(Gw,"removeChars");function Sh(t,e,r){if(t.length<e.length)return!1;for(let s=0;s<e.length;s++)if(e[s]!==t[r.position+s])return!1;return!0}o(Sh,"bufferStartsWith");GM.exports={multipartFormDataParser:Hte,validateBoundary:Gte}});var cl=f((IMe,ZM)=>{"use strict";var PA=me(),{ReadableStreamFrom:Vte,isBlobLike:zM,isReadableStreamLike:$te,readableStreamClose:Yte,createDeferredPromise:Jte,fullyReadBody:Wte,extractMimeType:jte,utf8DecodeBytes:YM}=jr(),{FormData:VM}=vA(),{kState:al}=Qo(),{webidl:Kte}=Jt(),{Blob:Xte}=require("node:buffer"),Hw=require("node:assert"),{isErrored:JM,isDisturbed:Zte}=require("node:stream"),{isArrayBuffer:ere}=require("node:util/types"),{serializeAMimeType:tre}=Tr(),{multipartFormDataParser:rre}=HM(),zw;try{let t=require("node:crypto");zw=o(e=>t.randomInt(0,e),"random")}catch{zw=o(t=>Math.floor(Math.random(t)),"random")}var Rh=new TextEncoder;function sre(){}o(sre,"noop");var WM=globalThis.FinalizationRegistry&&process.version.indexOf("v18")!==0,jM;WM&&(jM=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!Zte(e)&&!JM(e)&&e.cancel("Response object has been garbage collected").catch(sre)}));function KM(t,e=!1){let r=null;t instanceof ReadableStream?r=t:zM(t)?r=t.stream():r=new ReadableStream({async pull(l){let u=typeof n=="string"?Rh.encode(n):n;u.byteLength&&l.enqueue(u),queueMicrotask(()=>Yte(l))},start(){},type:"bytes"}),Hw($te(r));let s=null,n=null,i=null,a=null;if(typeof t=="string")n=t,a="text/plain;charset=UTF-8";else if(t instanceof URLSearchParams)n=t.toString(),a="application/x-www-form-urlencoded;charset=UTF-8";else if(ere(t))n=new Uint8Array(t.slice());else if(ArrayBuffer.isView(t))n=new Uint8Array(t.buffer.slice(t.byteOffset,t.byteOffset+t.byteLength));else if(PA.isFormDataLike(t)){let l=`----formdata-undici-0${`${zw(1e11)}`.padStart(11,"0")}`,u=`--${l}\r
|
||||
Content-Disposition: form-data`;let A=o(C=>C.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22"),"escape"),d=o(C=>C.replace(/\r?\n|\r/g,`\r
|
||||
`),"normalizeLinefeeds"),p=[],m=new Uint8Array([13,10]);i=0;let h=!1;for(let[C,E]of t)if(typeof E=="string"){let y=Qh.encode(u+`; name="${A(d(C))}"\r
|
||||
`),"normalizeLinefeeds"),p=[],m=new Uint8Array([13,10]);i=0;let h=!1;for(let[C,E]of t)if(typeof E=="string"){let y=Rh.encode(u+`; name="${A(d(C))}"\r
|
||||
\r
|
||||
${d(E)}\r
|
||||
`);p.push(y),i+=y.byteLength}else{let y=Qh.encode(`${u}; name="${A(d(C))}"`+(E.name?`; filename="${A(E.name)}"`:"")+`\r
|
||||
`);p.push(y),i+=y.byteLength}else{let y=Rh.encode(`${u}; name="${A(d(C))}"`+(E.name?`; filename="${A(E.name)}"`:"")+`\r
|
||||
Content-Type: ${E.type||"application/octet-stream"}\r
|
||||
\r
|
||||
`);p.push(y,E,m),typeof E.size=="number"?i+=y.byteLength+E.size+m.byteLength:h=!0}let g=Qh.encode(`--${l}--\r
|
||||
`);p.push(g),i+=g.byteLength,h&&(i=null),n=t,s=o(async function*(){for(let C of p)C.stream?yield*C.stream():yield C},"action"),a=`multipart/form-data; boundary=${l}`}else if(FM(t))n=t,i=t.size,t.type&&(a=t.type);else if(typeof t[Symbol.asyncIterator]=="function"){if(e)throw new TypeError("keepalive");if(RA.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=t instanceof ReadableStream?t:_te(t)}if((typeof n=="string"||RA.isBuffer(n))&&(i=Buffer.byteLength(n)),s!=null){let l;r=new ReadableStream({async start(){l=s(t)[Symbol.asyncIterator]()},async pull(u){let{value:A,done:d}=await l.next();if(d)queueMicrotask(()=>{u.close(),u.byobRequest?.respond(0)});else if(!HM(r)){let p=new Uint8Array(A);p.byteLength&&u.enqueue(p)}return u.desiredSize>0},async cancel(u){await l.return()},type:"bytes"})}return[{stream:r,source:n,length:i},a]}o(VM,"extractBody");function Jte(t,e=!1){return t instanceof ReadableStream&&(Ow(!RA.isDisturbed(t),"The body has already been consumed."),Ow(!t.locked,"The stream is locked.")),VM(t,e)}o(Jte,"safelyExtractBody");function Wte(t,e){let[r,s]=e.stream.tee();return e.stream=r,{stream:s,length:e.length,source:e.source}}o(Wte,"cloneBody");function jte(t){if(t.aborted)throw new DOMException("The operation was aborted.","AbortError")}o(jte,"throwIfAborted");function Kte(t){return{blob(){return sl(this,r=>{let s=qM(this);return s===null?s="":s&&(s=$te(s)),new Gte([r],{type:s})},t)},arrayBuffer(){return sl(this,r=>new Uint8Array(r).buffer,t)},text(){return sl(this,GM,t)},json(){return sl(this,Zte,t)},formData(){return sl(this,r=>{let s=qM(this);if(s!==null)switch(s.essence){case"multipart/form-data":{let n=Vte(r,s);if(n==="failure")throw new TypeError("Failed to parse body as FormData.");let i=new UM;return i[nl]=n,i}case"application/x-www-form-urlencoded":{let n=new URLSearchParams(r.toString()),i=new UM;for(let[a,c]of n)i.append(a,c);return i}}throw new TypeError('Content-Type was not one of "multipart/form-data" or "application/x-www-form-urlencoded".')},t)},bytes(){return sl(this,r=>new Uint8Array(r),t)}}}o(Kte,"bodyMixinMethods");function Xte(t){Object.assign(t.prototype,Kte(t))}o(Xte,"mixinBody");async function sl(t,e,r){if(qte.brandCheck(t,r),YM(t))throw new TypeError("Body is unusable: Body has already been read");jte(t[nl]);let s=Ote(),n=o(a=>s.reject(a),"errorSteps"),i=o(a=>{try{s.resolve(e(a))}catch(c){n(c)}},"successSteps");return t[nl].body==null?(i(Buffer.allocUnsafe(0)),s.promise):(await Fte(t[nl].body,i,n),s.promise)}o(sl,"consumeBody");function YM(t){let e=t[nl].body;return e!=null&&(e.stream.locked||RA.isDisturbed(e.stream))}o(YM,"bodyUnusable");function Zte(t){return JSON.parse(GM(t))}o(Zte,"parseJSONFromBytes");function qM(t){let e=t[nl].headersList,r=Ute(e);return r==="failure"?null:r}o(qM,"bodyMimeType");JM.exports={extractBody:VM,safelyExtractBody:Jte,cloneBody:Wte,mixinBody:Xte,streamRegistry:$M,hasFinalizationRegistry:zM,bodyUnusable:YM}});var iO=f((gMe,nO)=>{"use strict";var X=require("node:assert"),se=me(),{channels:WM}=Vc(),Uw=Iw(),{RequestContentLengthMismatchError:ba,ResponseContentLengthMismatchError:ere,RequestAbortedError:tO,HeadersTimeoutError:tre,HeadersOverflowError:rre,SocketError:vh,InformationalError:ol,BodyTimeoutError:sre,HTTPParserError:nre,ResponseExceededMaxSizeError:ire}=Qe(),{kUrl:rO,kReset:vr,kClient:zw,kParser:Ze,kBlocking:PA,kRunning:Zt,kPending:ore,kSize:jM,kWriting:xo,kQueue:sn,kNoRef:TA,kKeepAliveDefaultTimeout:are,kHostHeader:cre,kPendingIdx:lre,kRunningIdx:ws,kError:bs,kPipelining:Rh,kSocket:al,kKeepAliveTimeoutValue:Ph,kMaxHeadersSize:qw,kKeepAliveMaxTimeout:ure,kKeepAliveTimeoutThreshold:Are,kHeadersTimeout:dre,kBodyTimeout:pre,kStrictContentLength:$w,kMaxRequests:KM,kCounter:mre,kMaxResponseSize:hre,kOnError:fre,kResume:Qo,kHTTPContext:sO}=ze(),Ln=$L(),gre=Buffer.alloc(0),xh=Buffer[Symbol.species],Nh=se.addListener,Ere=se.removeAllListeners,Gw;async function yre(){let t=process.env.JEST_WORKER_ID?bw():void 0,e;try{e=await WebAssembly.compile(JL())}catch{e=await WebAssembly.compile(t||bw())}return await WebAssembly.instantiate(e,{env:{wasm_on_url:o((r,s,n)=>0,"wasm_on_url"),wasm_on_status:o((r,s,n)=>{X(Tt.ptr===r);let i=s-On+Mn.byteOffset;return Tt.onStatus(new xh(Mn.buffer,i,n))||0},"wasm_on_status"),wasm_on_message_begin:o(r=>(X(Tt.ptr===r),Tt.onMessageBegin()||0),"wasm_on_message_begin"),wasm_on_header_field:o((r,s,n)=>{X(Tt.ptr===r);let i=s-On+Mn.byteOffset;return Tt.onHeaderField(new xh(Mn.buffer,i,n))||0},"wasm_on_header_field"),wasm_on_header_value:o((r,s,n)=>{X(Tt.ptr===r);let i=s-On+Mn.byteOffset;return Tt.onHeaderValue(new xh(Mn.buffer,i,n))||0},"wasm_on_header_value"),wasm_on_headers_complete:o((r,s,n,i)=>(X(Tt.ptr===r),Tt.onHeadersComplete(s,!!n,!!i)||0),"wasm_on_headers_complete"),wasm_on_body:o((r,s,n)=>{X(Tt.ptr===r);let i=s-On+Mn.byteOffset;return Tt.onBody(new xh(Mn.buffer,i,n))||0},"wasm_on_body"),wasm_on_message_complete:o(r=>(X(Tt.ptr===r),Tt.onMessageComplete()||0),"w
Line truncated
|
||||
`);p.push(y,E,m),typeof E.size=="number"?i+=y.byteLength+E.size+m.byteLength:h=!0}let g=Rh.encode(`--${l}--\r
|
||||
`);p.push(g),i+=g.byteLength,h&&(i=null),n=t,s=o(async function*(){for(let C of p)C.stream?yield*C.stream():yield C},"action"),a=`multipart/form-data; boundary=${l}`}else if(zM(t))n=t,i=t.size,t.type&&(a=t.type);else if(typeof t[Symbol.asyncIterator]=="function"){if(e)throw new TypeError("keepalive");if(PA.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=t instanceof ReadableStream?t:Vte(t)}if((typeof n=="string"||PA.isBuffer(n))&&(i=Buffer.byteLength(n)),s!=null){let l;r=new ReadableStream({async start(){l=s(t)[Symbol.asyncIterator]()},async pull(u){let{value:A,done:d}=await l.next();if(d)queueMicrotask(()=>{u.close(),u.byobRequest?.respond(0)});else if(!JM(r)){let p=new Uint8Array(A);p.byteLength&&u.enqueue(p)}return u.desiredSize>0},async cancel(u){await l.return()},type:"bytes"})}return[{stream:r,source:n,length:i},a]}o(KM,"extractBody");function nre(t,e=!1){return t instanceof ReadableStream&&(Hw(!PA.isDisturbed(t),"The body has already been consumed."),Hw(!t.locked,"The stream is locked.")),KM(t,e)}o(nre,"safelyExtractBody");function ire(t,e){let[r,s]=e.stream.tee();return e.stream=r,{stream:s,length:e.length,source:e.source}}o(ire,"cloneBody");function ore(t){if(t.aborted)throw new DOMException("The operation was aborted.","AbortError")}o(ore,"throwIfAborted");function are(t){return{blob(){return ol(this,r=>{let s=$M(this);return s===null?s="":s&&(s=tre(s)),new Xte([r],{type:s})},t)},arrayBuffer(){return ol(this,r=>new Uint8Array(r).buffer,t)},text(){return ol(this,YM,t)},json(){return ol(this,lre,t)},formData(){return ol(this,r=>{let s=$M(this);if(s!==null)switch(s.essence){case"multipart/form-data":{let n=rre(r,s);if(n==="failure")throw new TypeError("Failed to parse body as FormData.");let i=new VM;return i[al]=n,i}case"application/x-www-form-urlencoded":{let n=new URLSearchParams(r.toString()),i=new VM;for(let[a,c]of n)i.append(a,c);return i}}throw new TypeError('Content-Type was not one of "multipart/form-data" or "application/x-www-form-urlencoded".')},t)},bytes(){return ol(this,r=>new Uint8Array(r),t)}}}o(are,"bodyMixinMethods");function cre(t){Object.assign(t.prototype,are(t))}o(cre,"mixinBody");async function ol(t,e,r){if(Kte.brandCheck(t,r),XM(t))throw new TypeError("Body is unusable: Body has already been read");ore(t[al]);let s=Jte(),n=o(a=>s.reject(a),"errorSteps"),i=o(a=>{try{s.resolve(e(a))}catch(c){n(c)}},"successSteps");return t[al].body==null?(i(Buffer.allocUnsafe(0)),s.promise):(await Wte(t[al].body,i,n),s.promise)}o(ol,"consumeBody");function XM(t){let e=t[al].body;return e!=null&&(e.stream.locked||PA.isDisturbed(e.stream))}o(XM,"bodyUnusable");function lre(t){return JSON.parse(YM(t))}o(lre,"parseJSONFromBytes");function $M(t){let e=t[al].headersList,r=jte(e);return r==="failure"?null:r}o($M,"bodyMimeType");ZM.exports={extractBody:KM,safelyExtractBody:nre,cloneBody:ire,mixinBody:cre,streamRegistry:jM,hasFinalizationRegistry:WM,bodyUnusable:XM}});var hO=f((wMe,mO)=>{"use strict";var j=require("node:assert"),Z=me(),{channels:eO}=Wc(),Vw=xw(),{RequestContentLengthMismatchError:ba,ResponseContentLengthMismatchError:tO,RequestAbortedError:lO,HeadersTimeoutError:ure,HeadersOverflowError:Are,SocketError:ll,InformationalError:ul,BodyTimeoutError:dre,HTTPParserError:pre,ResponseExceededMaxSizeError:mre}=Qe(),{kUrl:uO,kReset:vr,kClient:kh,kParser:Fe,kBlocking:_A,kRunning:xt,kPending:AO,kSize:rO,kWriting:xo,kQueue:nn,kNoRef:kA,kKeepAliveDefaultTimeout:hre,kHostHeader:fre,kPendingIdx:gre,kRunningIdx:Qs,kError:Ar,kPipelining:Dh,kSocket:xa,kKeepAliveTimeoutValue:Lh,kMaxHeadersSize:$w,kKeepAliveMaxTimeout:Ere,kKeepAliveTimeoutThreshold:yre,kHeadersTimeout:Cre,kBodyTimeout:Ire,kStrictContentLength:Ww,kMaxRequests:sO,kCounter:Bre,kMaxResponseSize:wre,kOnError:nO,kResume:Ui,kHTTPContext:dO}=Ve(),Kr=jL(),iO=Buffer.alloc(0),Th=Buffer[Symbol.species],vh=Z.addListener,bre=Z.removeAllListeners,Na=Symbol("kIdleSocketValidation"),Qa=Symbol("kIdleSocketValidationTimeout"),Zw=Symbol("kSocketUsed"),Yw;async function Qre(){let t=process.env.JEST_WORKER_ID?Rw():void 0,e;try{e=await WebAssembly.compile(ZL())}catch{e=await WebAssembly.compile(t||Rw())}return await WebAssembly.instantiate(e,{env:{wasm_on_url:o((r,s,n)=>0,"wasm_on_url"),wasm_on_status:o((r,s,n)=>{j(et.ptr===r);let i=s-On+Mn.byteOffset;return et.onStatus(new Th(Mn.buffer,i,n))||0},"wasm_on_status"),wasm_on_message_begin:o(r=>(j(et.ptr===r),et.onMessageBegin()||0),"wasm_on_message_begin"),wasm_on_header_field:o((r,s,n)=>{j(et.ptr===r);let i=s-On+Mn.byteOffset;return et.onHeaderField(new Th(Mn.buffer,i,n))||0},"wasm_on_header_field"),wasm_on_header_value:o((r,s,n)=>{j(et.ptr===r);let i=s-On+Mn.byteOffset;return et.onHeaderValue(new Th(Mn.buffer,i,n))||0},"wasm_on_header_value"),wasm_on_headers_complete:o((r,s,n,i)=>(j(et.ptr===r),et.onHeadersComplete(s,!!n,!!i)||0),"wasm_on_headers_complete"),wasm_on_body:o((r,s,n)=>{j(et.ptr===r);let i=s-On+Mn.byteOffset;return et.onBody(new Th(Mn.buffer,i,n))
Line truncated
|
||||
`;if(typeof n=="string"?g+=`host: ${n}\r
|
||||
`:g+=t[cre],i?g+=`connection: upgrade\r
|
||||
`:g+=t[fre],i?g+=`connection: upgrade\r
|
||||
upgrade: ${i}\r
|
||||
`:t[Rh]&&!m[vr]?g+=`connection: keep-alive\r
|
||||
`:t[Dh]&&!m[vr]?g+=`connection: keep-alive\r
|
||||
`:g+=`connection: close\r
|
||||
`,Array.isArray(u))for(let C=0;C<u.length;C+=2){let E=u[C+0],y=u[C+1];if(Array.isArray(y))for(let I=0;I<y.length;I++)g+=`${E}: ${y[I]}\r
|
||||
`;else g+=`${E}: ${y}\r
|
||||
`}return WM.sendHeaders.hasSubscribers&&WM.sendHeaders.publish({request:e,headers:g,socket:m}),!l||p===0?ZM(h,null,t,e,m,A,g,d):se.isBuffer(l)?ZM(h,l,t,e,m,A,g,d):se.isBlobLike(l)?typeof l.stream=="function"?eO(h,l.stream(),t,e,m,A,g,d):xre(h,l,t,e,m,A,g,d):se.isStream(l)?Qre(h,l,t,e,m,A,g,d):se.isIterable(l)?eO(h,l,t,e,m,A,g,d):X(!1),!0}o(bre,"writeH1");function Qre(t,e,r,s,n,i,a,c){X(i!==0||r[Zt]===0,"stream body cannot be pipelined");let l=!1,u=new kh({abort:t,socket:n,request:s,contentLength:i,client:r,expectsPayload:c,header:a}),A=o(function(h){if(!l)try{!u.write(h)&&this.pause&&this.pause()}catch(g){se.destroy(this,g)}},"onData"),d=o(function(){l||e.resume&&e.resume()},"onDrain"),p=o(function(){if(queueMicrotask(()=>{e.removeListener("error",m)}),!l){let h=new tO;queueMicrotask(()=>m(h))}},"onClose"),m=o(function(h){if(!l){if(l=!0,X(n.destroyed||n[xo]&&r[Zt]<=1),n.off("drain",d).off("error",m),e.removeListener("data",A).removeListener("end",m).removeListener("close",p),!h)try{u.end()}catch(g){h=g}u.destroy(h),h&&(h.code!=="UND_ERR_INFO"||h.message!=="reset")?se.destroy(e,h):se.destroy(e)}},"onFinished");e.on("data",A).on("end",m).on("error",m).on("close",p),e.resume&&e.resume(),n.on("drain",d).on("error",m),e.errorEmitted??e.errored?setImmediate(()=>m(e.errored)):(e.endEmitted??e.readableEnded)&&setImmediate(()=>m(null)),(e.closeEmitted??e.closed)&&setImmediate(p)}o(Qre,"writeStream");function ZM(t,e,r,s,n,i,a,c){try{e?se.isBuffer(e)&&(X(i===e.byteLength,"buffer body must have content length"),n.cork(),n.write(`${a}content-length: ${i}\r
|
||||
`}return eO.sendHeaders.hasSubscribers&&eO.sendHeaders.publish({request:e,headers:g,socket:m}),!l||p===0?aO(h,null,t,e,m,A,g,d):Z.isBuffer(l)?aO(h,l,t,e,m,A,g,d):Z.isBlobLike(l)?typeof l.stream=="function"?cO(h,l.stream(),t,e,m,A,g,d):kre(h,l,t,e,m,A,g,d):Z.isStream(l)?Pre(h,l,t,e,m,A,g,d):Z.isIterable(l)?cO(h,l,t,e,m,A,g,d):j(!1),!0}o(vre,"writeH1");function Pre(t,e,r,s,n,i,a,c){j(i!==0||r[xt]===0,"stream body cannot be pipelined");let l=!1,u=new Mh({abort:t,socket:n,request:s,contentLength:i,client:r,expectsPayload:c,header:a}),A=o(function(h){if(!l)try{!u.write(h)&&this.pause&&this.pause()}catch(g){Z.destroy(this,g)}},"onData"),d=o(function(){l||e.resume&&e.resume()},"onDrain"),p=o(function(){if(queueMicrotask(()=>{e.removeListener("error",m)}),!l){let h=new lO;queueMicrotask(()=>m(h))}},"onClose"),m=o(function(h){if(!l){if(l=!0,j(n.destroyed||n[xo]&&r[xt]<=1),n.off("drain",d).off("error",m),e.removeListener("data",A).removeListener("end",m).removeListener("close",p),!h)try{u.end()}catch(g){h=g}u.destroy(h),h&&(h.code!=="UND_ERR_INFO"||h.message!=="reset")?Z.destroy(e,h):Z.destroy(e)}},"onFinished");e.on("data",A).on("end",m).on("error",m).on("close",p),e.resume&&e.resume(),n.on("drain",d).on("error",m),e.errorEmitted??e.errored?setImmediate(()=>m(e.errored)):(e.endEmitted??e.readableEnded)&&setImmediate(()=>m(null)),(e.closeEmitted??e.closed)&&setImmediate(p)}o(Pre,"writeStream");function aO(t,e,r,s,n,i,a,c){try{e?Z.isBuffer(e)&&(j(i===e.byteLength,"buffer body must have content length"),n.cork(),n.write(`${a}content-length: ${i}\r
|
||||
\r
|
||||
`,"latin1"),n.write(e),n.uncork(),s.onBodySent(e),!c&&s.reset!==!1&&(n[vr]=!0)):i===0?n.write(`${a}content-length: 0\r
|
||||
\r
|
||||
`,"latin1"):(X(i===null,"no body must not have content length"),n.write(`${a}\r
|
||||
`,"latin1")),s.onRequestSent(),r[Qo]()}catch(l){t(l)}}o(ZM,"writeBuffer");async function xre(t,e,r,s,n,i,a,c){X(i===e.size,"blob body must have content length");try{if(i!=null&&i!==e.size)throw new ba;let l=Buffer.from(await e.arrayBuffer());n.cork(),n.write(`${a}content-length: ${i}\r
|
||||
`,"latin1"):(j(i===null,"no body must not have content length"),n.write(`${a}\r
|
||||
`,"latin1")),s.onRequestSent(),r[Ui]()}catch(l){t(l)}}o(aO,"writeBuffer");async function kre(t,e,r,s,n,i,a,c){j(i===e.size,"blob body must have content length");try{if(i!=null&&i!==e.size)throw new ba;let l=Buffer.from(await e.arrayBuffer());n.cork(),n.write(`${a}content-length: ${i}\r
|
||||
\r
|
||||
`,"latin1"),n.write(l),n.uncork(),s.onBodySent(l),s.onRequestSent(),!c&&s.reset!==!1&&(n[vr]=!0),r[Qo]()}catch(l){t(l)}}o(xre,"writeBlob");async function eO(t,e,r,s,n,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 A=o(()=>new Promise((p,m)=>{X(l===null),n[bs]?m(n[bs]):l=p}),"waitForDrain");n.on("close",u).on("drain",u);let d=new kh({abort:t,socket:n,request:s,contentLength:i,client:r,expectsPayload:c,header:a});try{for await(let p of e){if(n[bs])throw n[bs];d.write(p)||await A()}d.end()}catch(p){d.destroy(p)}finally{n.off("close",u).off("drain",u)}}o(eO,"writeIterable");var kh=class{static{o(this,"AsyncWriter")}constructor({abort:e,socket:r,request:s,contentLength:n,client:i,expectsPayload:a,header:c}){this.socket=r,this.request=s,this.contentLength=n,this.client=i,this.bytesWritten=0,this.expectsPayload=a,this.header=c,this.abort=e,r[xo]=!0}write(e){let{socket:r,request:s,contentLength:n,client:i,bytesWritten:a,expectsPayload:c,header:l}=this;if(r[bs])throw r[bs];if(r.destroyed)return!1;let u=Buffer.byteLength(e);if(!u)return!0;if(n!==null&&a+u>n){if(i[$w])throw new ba;process.emitWarning(new ba)}r.cork(),a===0&&(!c&&s.reset!==!1&&(r[vr]=!0),n===null?r.write(`${l}transfer-encoding: chunked\r
|
||||
`,"latin1"),n.write(l),n.uncork(),s.onBodySent(l),s.onRequestSent(),!c&&s.reset!==!1&&(n[vr]=!0),r[Ui]()}catch(l){t(l)}}o(kre,"writeBlob");async function cO(t,e,r,s,n,i,a,c){j(i!==0||r[xt]===0,"iterator body cannot be pipelined");let l=null;function u(){if(l){let p=l;l=null,p()}}o(u,"onDrain");let A=o(()=>new Promise((p,m)=>{j(l===null),n[Ar]?m(n[Ar]):l=p}),"waitForDrain");n.on("close",u).on("drain",u);let d=new Mh({abort:t,socket:n,request:s,contentLength:i,client:r,expectsPayload:c,header:a});try{for await(let p of e){if(n[Ar])throw n[Ar];d.write(p)||await A()}d.end()}catch(p){d.destroy(p)}finally{n.off("close",u).off("drain",u)}}o(cO,"writeIterable");var Mh=class{static{o(this,"AsyncWriter")}constructor({abort:e,socket:r,request:s,contentLength:n,client:i,expectsPayload:a,header:c}){this.socket=r,this.request=s,this.contentLength=n,this.client=i,this.bytesWritten=0,this.expectsPayload=a,this.header=c,this.abort=e,r[xo]=!0}write(e){let{socket:r,request:s,contentLength:n,client:i,bytesWritten:a,expectsPayload:c,header:l}=this;if(r[Ar])throw r[Ar];if(r.destroyed)return!1;let u=Buffer.byteLength(e);if(!u)return!0;if(n!==null&&a+u>n){if(i[Ww])throw new ba;process.emitWarning(new ba)}r.cork(),a===0&&(!c&&s.reset!==!1&&(r[vr]=!0),n===null?r.write(`${l}transfer-encoding: chunked\r
|
||||
`,"latin1"):r.write(`${l}content-length: ${n}\r
|
||||
\r
|
||||
`,"latin1")),n===null&&r.write(`\r
|
||||
${u.toString(16)}\r
|
||||
`,"latin1"),this.bytesWritten+=u;let A=r.write(e);return r.uncork(),s.onBodySent(e),A||r[Ze].timeout&&r[Ze].timeoutType===cl&&r[Ze].timeout.refresh&&r[Ze].timeout.refresh(),A}end(){let{socket:e,contentLength:r,client:s,bytesWritten:n,expectsPayload:i,header:a,request:c}=this;if(c.onRequestSent(),e[xo]=!1,e[bs])throw e[bs];if(!e.destroyed){if(n===0?i?e.write(`${a}content-length: 0\r
|
||||
`,"latin1"),this.bytesWritten+=u;let A=r.write(e);return r.uncork(),s.onBodySent(e),A||r[Fe].timeout&&r[Fe].timeoutType===Al&&r[Fe].timeout.refresh&&r[Fe].timeout.refresh(),A}end(){let{socket:e,contentLength:r,client:s,bytesWritten:n,expectsPayload:i,header:a,request:c}=this;if(c.onRequestSent(),e[xo]=!1,e[Ar])throw e[Ar];if(!e.destroyed){if(n===0?i?e.write(`${a}content-length: 0\r
|
||||
\r
|
||||
`,"latin1"):e.write(`${a}\r
|
||||
`,"latin1"):r===null&&e.write(`\r
|
||||
0\r
|
||||
\r
|
||||
`,"latin1"),r!==null&&n!==r){if(s[$w])throw new ba;process.emitWarning(new ba)}e[Ze].timeout&&e[Ze].timeoutType===cl&&e[Ze].timeout.refresh&&e[Ze].timeout.refresh(),s[Qo]()}}destroy(e){let{socket:r,client:s,abort:n}=this;r[xo]=!1,e&&(X(s[Zt]<=1,"pipeline should only contain this request"),n(e))}};nO.exports=Ire});var pO=f((yMe,dO)=>{"use strict";var Qs=require("node:assert"),{pipeline:Nre}=require("node:stream"),ge=me(),{RequestContentLengthMismatchError:Ww,RequestAbortedError:oO,SocketError:kA,InformationalError:jw}=Qe(),{kUrl:Dh,kReset:Lh,kClient:ll,kRunning:Mh,kPending:Sre,kQueue:No,kPendingIdx:Kw,kRunningIdx:nn,kError:an,kSocket:Ut,kStrictContentLength:Rre,kOnError:Xw,kMaxConcurrentStreams:AO,kHTTP2Session:on,kResume:So,kSize:Tre,kHTTPContext:vre}=ze(),Ui=Symbol("open streams"),aO,cO=!1,_h;try{_h=require("node:http2")}catch{_h={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:Pre,HTTP2_HEADER_METHOD:kre,HTTP2_HEADER_PATH:Dre,HTTP2_HEADER_SCHEME:_re,HTTP2_HEADER_CONTENT_LENGTH:Lre,HTTP2_HEADER_EXPECT:Mre,HTTP2_HEADER_STATUS:Ore}}=_h;function Fre(t){let e=[];for(let[r,s]of Object.entries(t))if(Array.isArray(s))for(let n of s)e.push(Buffer.from(r),Buffer.from(n));else e.push(Buffer.from(r),Buffer.from(s));return e}o(Fre,"parseH2Headers");async function Ure(t,e){t[Ut]=e,cO||(cO=!0,process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"}));let r=_h.connect(t[Dh],{createConnection:o(()=>e,"createConnection"),peerMaxConcurrentStreams:t[AO]});r[Ui]=0,r[ll]=t,r[Ut]=e,ge.addListener(r,"error",Gre),ge.addListener(r,"frameError",Hre),ge.addListener(r,"end",zre),ge.addListener(r,"goaway",$re),ge.addListener(r,"close",function(){let{[ll]:n}=this,{[Ut]:i}=n,a=this[Ut][an]||this[an]||new kA("closed",ge.getSocketInfo(i));if(n[on]=null,n.destroyed){Qs(n[Sre]===0);let c=n[No].splice(n[nn]);for(let l=0;l<c.length;l++){let u=c[l];ge.errorRequest(n,u,a)}}}),r.unref(),t[on]=r,e[on]=r,ge.addListener(e,"error",function(n){Qs(n.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[an]=n,this[ll][Xw](n)}),ge.addListener(e,"end",function(){ge.destroy(this,new kA("other side closed",ge.getSocketInfo(this)))}),ge.addListener(e,"close",function(){let n=this[an]||new kA("closed",ge.getSocketInfo(this));t[Ut]=null,this[on]!=null&&this[on].destroy(n),t[Kw]=t[nn],Qs(t[Mh]===0),t.emit("disconnect",t[Dh],[t],n),t[So]()});let s=!1;return e.on("close",()=>{s=!0}),{version:"h2",defaultPipelining:1/0,write(...n){return Yre(t,...n)},resume(){qre(t)},destroy(n,i){s?queueMicrotask(i):e.destroy(n).on("close",i)},get destroyed(){return e.destroyed},busy(){return!1}}}o(Ure,"connectH2");function qre(t){let e=t[Ut];e?.destroyed===!1&&(t[Tre]===0&&t[AO]===0?(e.unref(),t[on].unref()):(e.ref(),t[on].ref()))}o(qre,"resumeH2");function Gre(t){Qs(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[Ut][an]=t,this[ll][Xw](t)}o(Gre,"onHttp2SessionError");function Hre(t,e,r){if(r===0){let s=new jw(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[Ut][an]=s,this[ll][Xw](s)}}o(Hre,"onHttp2FrameError");function zre(){let t=new kA("other side closed",ge.getSocketInfo(this[Ut]));this.destroy(t),ge.destroy(this[Ut],t)}o(zre,"onHttp2SessionEnd");function $re(t){let e=this[an]||new kA(`HTTP/2: "GOAWAY" frame received with code ${t}`,ge.getSocketInfo(this)),r=this[ll];if(r[Ut]=null,r[vre]=null,this[on]!=null&&(this[on].destroy(e),this[on]=null),ge.destroy(this[Ut],e),r[nn]<r[No].length){let s=r[No][r[nn]];r[No][r[nn]++]=null,ge.errorRequest(r,s,e),r[Kw]=r[nn]}Qs(r[Mh]===0),r.emit("disconnect",r[Dh],[r],e),r[So]()}o($re,"onHTTP2GoAway");function Vre(t){return t!=="GET"&&t!=="HEAD"&&t!=="OPTIONS"&&t!=="TRACE"&&t!=="CONNECT"}o(Vre,"shouldSendContentLength");function Yre(t,e){let r=t[on],{method:s,path:n,host:i,upgrade:a,expectContinue:c,signal:l,headers:u}=e,{body:A}=e;if(a)return ge.errorRequest(t,e,new Error("Upgrade not supported for H2")),!1;let d={};for(let B=0;B<u.length;B+=2){let N=u[B+0],D=u[B+1];if(Array.isArray(D))for(let q=0;q<D.length;q++)d[N]?d[N]+=`,${D[q]}`:d[N]=D[q];else d[N]=D}let p,{hostname:m,port:h}=t[Dh];d[Pre]=i||`${m}${h?`:${h}`:""}`,d[kre]=s;let g=o(B=>{e.aborted||e.completed||(B=B||new oO,ge.errorRequest(t,e,B),p!=null&&ge.destroy(p,B),ge.destroy(A,B),t[No][t[nn]++]=null,t[So]())},"abort");try{e.onConnect(g)}catch(B){ge.errorRequest(t,e,B)}if(e.aborted)return!1;if(s==="CONNECT")return r.ref(),p=r.request(d,{endStream:!1,signal:l}),p.id&&!p.pending?(e.onUpgrade(null,null,p),++r[Ui],t[No][t[nn]++]=null):p.once("ready",()=>{e.onUpgrade(null,null,p),++r[Ui],t[No][t[nn]++]=null}),p.once("close",()=>{r[Ui]-=1,r[Ui]===0&&r.unref()}),!0;d[Dre]=n,d[_re]="https";let C=s==="PUT"||s==="POST"||s==="PATCH";A&&typeof A.read=="function"&&A.read(0);let E=ge.bodyLength(A);if(ge.isFormDataLike(A)){aO??=il().extractBody;let[B,N]=aO(A);d["content-type"]=N,A=B.stream,E=B.length}if(E==null&&(E=e.contentLength),(E===0||!C)&&(E=null),Vre(s)&&E>0&&e.contentLength!=null&&e.contentLength!==E){if(t[Rre])return ge.errorRequest(t,e,n
Line truncated
|
||||
`,this[yse]=l??3e5,this[Ese]=n??3e5,this[Cse]=y??!0,this[Ise]=B,this[rb]=D,this[To]=null,this[xse]=pe>-1?pe:-1,this[Sse]=V??100,this[dt]=null,this[cn]=[],this[Gi]=0,this[ln]=0,this[MA]=ye=>nb(this,ye),this[Nse]=ye=>QO(this,ye)}get pipelining(){return this[qh]}set pipelining(e){this[qh]=e,this[MA](!0)}get[UA](){return this[cn].length-this[ln]}get[FA](){return this[ln]-this[Gi]}get[OA](){return this[cn].length-this[Gi]}get[Ase](){return!!this[dt]&&!this[Al]&&!this[dt].destroyed}get[tb](){return!!(this[dt]?.busy(null)||this[OA]>=(bO(this)||1)||this[UA]>0)}[use](e){xO(this),this.once("connect",e)}[Qse](e,r){let s=e.origin||this[Un].origin,n=new nse(s,e,r);return this[cn].push(n),this[xa]||(Qa.bodyLength(n.body)==null&&Qa.isIterable(n.body)?(this[xa]=1,queueMicrotask(()=>nb(this))):this[MA](!0)),this[xa]&&this[vo]!==2&&this[tb]&&(this[vo]=2),this[vo]<2}async[wse](){return new Promise(e=>{this[OA]?this[To]=e:e(null)})}async[bse](e){return new Promise(r=>{let s=this[cn].splice(this[ln]);for(let i=0;i<s.length;i++){let a=s[i];Qa.errorRequest(this,a,e)}let n=o(()=>{this[To]&&(this[To](),this[To]=null),r(null)},"callback");this[dt]?(this[dt].destroy(e,n),this[dt]=null):queueMicrotask(n),this[MA]()})}},vse=Uh();function QO(t,e){if(t[FA]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){qi(t[ln]===t[Gi]);let r=t[cn].splice(t[Gi]);for(let s=0;s<r.length;s++){let n=r[s];Qa.errorRequest(t,n,e)}qi(t[OA]===0)}}o(QO,"onError");async function xO(t){qi(!t[Al]),qi(!t[dt]);let{host:e,hostname:r,protocol:s,port:n}=t[Un];if(r[0]==="["){let i=r.indexOf("]");qi(i!==-1);let a=r.substring(1,i);qi(wO.isIP(a)),r=a}t[Al]=!0,ul.beforeConnect.hasSubscribers&&ul.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:s,port:n,version:t[dt]?.version,servername:t[Ro],localAddress:t[LA]},connector:t[_A]});try{let i=await new Promise((a,c)=>{t[_A]({host:e,hostname:r,protocol:s,port:n,servername:t[Ro],localAddress:t[LA]},(l,u)=>{l?c(l):a(u)})});if(t.destroyed){Qa.destroy(i.on("error",IO),new ase);return}qi(i);try{t[dt]=i.alpnProtocol==="h2"?await Tse(t,i):await Rse(t,i)}catch(a){throw i.destroy().on("error",IO),a}t[Al]=!1,i[Bse]=0,i[rb]=t[rb],i[lse]=t,i[pse]=null,ul.connected.hasSubscribers&&ul.connected.publish({connectParams:{host:e,hostname:r,protocol:s,port:n,version:t[dt]?.version,servername:t[Ro],localAddress:t[LA]},connector:t[_A],socket:i}),t.emit("connect",t[Un],[t])}catch(i){if(t.destroyed)return;if(t[Al]=!1,ul.connectError.hasSubscribers&&ul.connectError.publish({connectParams:{host:e,hostname:r,protocol:s,port:n,version:t[dt]?.version,servername:t[Ro],localAddress:t[LA]},connector:t[_A],error:i}),i.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(qi(t[FA]===0);t[UA]>0&&t[cn][t[ln]].servername===t[Ro];){let a=t[cn][t[ln]++];Qa.errorRequest(t,a,i)}else QO(t,i);t.emit("connectionError",t[Un],[t],i)}t[MA]()}o(xO,"connect");function BO(t){t[vo]=0,t.emit("drain",t[Un],[t])}o(BO,"emitDrain");function nb(t,e){t[xa]!==2&&(t[xa]=2,Pse(t,e),t[xa]=0,t[Gi]>256&&(t[cn].splice(0,t[Gi]),t[ln]-=t[Gi],t[Gi]=0))}o(nb,"resume");function Pse(t,e){for(;;){if(t.destroyed){qi(t[UA]===0);return}if(t[To]&&!t[OA]){t[To](),t[To]=null;return}if(t[dt]&&t[dt].resume(),t[tb])t[vo]=2;else if(t[vo]===2){e?(t[vo]=1,queueMicrotask(()=>BO(t))):BO(t);continue}if(t[UA]===0||t[FA]>=(bO(t)||1))return;let r=t[cn][t[ln]];if(t[Un].protocol==="https:"&&t[Ro]!==r.servername){if(t[FA]>0)return;t[Ro]=r.servername,t[dt]?.destroy(new ose("servername changed"),()=>{t[dt]=null,nb(t)})}if(t[Al])return;if(!t[dt]){xO(t);return}if(t[dt].destroyed||t[dt].busy(r))return;!r.aborted&&t[dt].write(r)?t[ln]++:t[cn].splice(t[ln],1)}}o(Pse,"_resume");NO.exports=sb});var ib=f((SMe,SO)=>{"use strict";var Gh=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)}};SO.exports=class{static{o(this,"FixedQueue")}constructor(){this.head=this.tail=new Gh}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new Gh),this.head.push(e)}shift(){let e=this.tail,r=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next),r}}});var TO=f((TMe,RO)=>{var{kFree:kse,kConnected:Dse,kPending:_se,kQueued:Lse,kRunning:Mse,kSize:Ose}=ze(),Na=Symbol("pool"),ob=class{static{o(this,"PoolStats")}constructor(e){this[Na]=e}get connected(){return this[Na][Dse]}get free(){return this[Na][kse]}get pending(){return this[Na][_se]}get queued(){return this[Na][Lse]}get running(){return this[Na][Mse]}get size(){return this[Na][Ose]}};RO.exports=ob});var db=f((PMe,UO)=>{"use strict";var Fse=jc(),Use=ib(),{kConnected:ab,kSize:vO,kRunning:PO,kPending:kO,kQueued:qA,kBusy:qse,kFree:Gse,kUrl:Hse,kClose:zse,kDestroy:$se,kDispatch:Vse}=ze(),Yse=TO(),Pr=Symbol("cli
Line truncated
|
||||
`,"latin1"),r!==null&&n!==r){if(s[Ww])throw new ba;process.emitWarning(new ba)}e[Fe].timeout&&e[Fe].timeoutType===Al&&e[Fe].timeout.refresh&&e[Fe].timeout.refresh(),s[Ui]()}}destroy(e){let{socket:r,client:s,abort:n}=this;r[xo]=!1,e&&(j(s[xt]<=1,"pipeline should only contain this request"),n(e))}};mO.exports=Nre});var wO=f((QMe,BO)=>{"use strict";var xs=require("node:assert"),{pipeline:Dre}=require("node:stream"),ge=me(),{RequestContentLengthMismatchError:eb,RequestAbortedError:fO,SocketError:LA,InformationalError:tb}=Qe(),{kUrl:Oh,kReset:Uh,kClient:dl,kRunning:qh,kPending:_re,kQueue:No,kPendingIdx:rb,kRunningIdx:on,kError:cn,kSocket:qt,kStrictContentLength:Lre,kOnError:sb,kMaxConcurrentStreams:IO,kHTTP2Session:an,kResume:So,kSize:Mre,kHTTPContext:Ore}=Ve(),qi=Symbol("open streams"),gO,EO=!1,Fh;try{Fh=require("node:http2")}catch{Fh={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:Fre,HTTP2_HEADER_METHOD:Ure,HTTP2_HEADER_PATH:qre,HTTP2_HEADER_SCHEME:Gre,HTTP2_HEADER_CONTENT_LENGTH:Hre,HTTP2_HEADER_EXPECT:zre,HTTP2_HEADER_STATUS:Vre}}=Fh;function $re(t){let e=[];for(let[r,s]of Object.entries(t))if(Array.isArray(s))for(let n of s)e.push(Buffer.from(r),Buffer.from(n));else e.push(Buffer.from(r),Buffer.from(s));return e}o($re,"parseH2Headers");async function Yre(t,e){t[qt]=e,EO||(EO=!0,process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"}));let r=Fh.connect(t[Oh],{createConnection:o(()=>e,"createConnection"),peerMaxConcurrentStreams:t[IO]});r[qi]=0,r[dl]=t,r[qt]=e,ge.addListener(r,"error",Wre),ge.addListener(r,"frameError",jre),ge.addListener(r,"end",Kre),ge.addListener(r,"goaway",Xre),ge.addListener(r,"close",function(){let{[dl]:n}=this,{[qt]:i}=n,a=this[qt][cn]||this[cn]||new LA("closed",ge.getSocketInfo(i));if(n[an]=null,n.destroyed){xs(n[_re]===0);let c=n[No].splice(n[on]);for(let l=0;l<c.length;l++){let u=c[l];ge.errorRequest(n,u,a)}}}),r.unref(),t[an]=r,e[an]=r,ge.addListener(e,"error",function(n){xs(n.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[cn]=n,this[dl][sb](n)}),ge.addListener(e,"end",function(){ge.destroy(this,new LA("other side closed",ge.getSocketInfo(this)))}),ge.addListener(e,"close",function(){let n=this[cn]||new LA("closed",ge.getSocketInfo(this));t[qt]=null,this[an]!=null&&this[an].destroy(n),t[rb]=t[on],xs(t[qh]===0),t.emit("disconnect",t[Oh],[t],n),t[So]()});let s=!1;return e.on("close",()=>{s=!0}),{version:"h2",defaultPipelining:1/0,write(...n){return ese(t,...n)},resume(){Jre(t)},destroy(n,i){s?queueMicrotask(i):e.destroy(n).on("close",i)},get destroyed(){return e.destroyed},busy(){return!1}}}o(Yre,"connectH2");function Jre(t){let e=t[qt];e?.destroyed===!1&&(t[Mre]===0&&t[IO]===0?(e.unref(),t[an].unref()):(e.ref(),t[an].ref()))}o(Jre,"resumeH2");function Wre(t){xs(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[qt][cn]=t,this[dl][sb](t)}o(Wre,"onHttp2SessionError");function jre(t,e,r){if(r===0){let s=new tb(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[qt][cn]=s,this[dl][sb](s)}}o(jre,"onHttp2FrameError");function Kre(){let t=new LA("other side closed",ge.getSocketInfo(this[qt]));this.destroy(t),ge.destroy(this[qt],t)}o(Kre,"onHttp2SessionEnd");function Xre(t){let e=this[cn]||new LA(`HTTP/2: "GOAWAY" frame received with code ${t}`,ge.getSocketInfo(this)),r=this[dl];if(r[qt]=null,r[Ore]=null,this[an]!=null&&(this[an].destroy(e),this[an]=null),ge.destroy(this[qt],e),r[on]<r[No].length){let s=r[No][r[on]];r[No][r[on]++]=null,ge.errorRequest(r,s,e),r[rb]=r[on]}xs(r[qh]===0),r.emit("disconnect",r[Oh],[r],e),r[So]()}o(Xre,"onHTTP2GoAway");function Zre(t){return t!=="GET"&&t!=="HEAD"&&t!=="OPTIONS"&&t!=="TRACE"&&t!=="CONNECT"}o(Zre,"shouldSendContentLength");function ese(t,e){let r=t[an],{method:s,path:n,host:i,upgrade:a,expectContinue:c,signal:l,headers:u}=e,{body:A}=e;if(a)return ge.errorRequest(t,e,new Error("Upgrade not supported for H2")),!1;let d={};for(let B=0;B<u.length;B+=2){let N=u[B+0],D=u[B+1];if(Array.isArray(D))for(let q=0;q<D.length;q++)d[N]?d[N]+=`,${D[q]}`:d[N]=D[q];else d[N]=D}let p,{hostname:m,port:h}=t[Oh];d[Fre]=i||`${m}${h?`:${h}`:""}`,d[Ure]=s;let g=o(B=>{e.aborted||e.completed||(B=B||new fO,ge.errorRequest(t,e,B),p!=null&&ge.destroy(p,B),ge.destroy(A,B),t[No][t[on]++]=null,t[So]())},"abort");try{e.onConnect(g)}catch(B){ge.errorRequest(t,e,B)}if(e.aborted)return!1;if(s==="CONNECT")return r.ref(),p=r.request(d,{endStream:!1,signal:l}),p.id&&!p.pending?(e.onUpgrade(null,null,p),++r[qi],t[No][t[on]++]=null):p.once("ready",()=>{e.onUpgrade(null,null,p),++r[qi],t[No][t[on]++]=null}),p.once("close",()=>{r[qi]-=1,r[qi]===0&&r.unref()}),!0;d[qre]=n,d[Gre]="https";let C=s==="PUT"||s==="POST"||s==="PATCH";A&&typeof A.read=="function"&&A.read(0);let E=ge.bodyLength(A);if(ge.isFormDataLike(A)){gO??=cl().extractBody;let[B,N]=gO(A);d["content-type"]=N,A=B.stream,E=B.length}if(E==null&&(E=e.contentLength),(E===0||!C)&&(E=null),Zre(s)&&E>0&&e.contentLength!=null&&e.contentLength!==E){if(t[Lre])return ge.errorRequest(t,e,n
Line truncated
|
||||
`,this[xse]=l??3e5,this[Qse]=n??3e5,this[Nse]=y??!0,this[Sse]=B,this[ab]=D,this[To]=null,this[kse]=pe>-1?pe:-1,this[_se]=$??100,this[pt]=null,this[ln]=[],this[Hi]=0,this[un]=0,this[UA]=ye=>lb(this,ye),this[Dse]=ye=>_O(this,ye)}get pipelining(){return this[Vh]}set pipelining(e){this[Vh]=e,this[UA](!0)}get[HA](){return this[ln].length-this[un]}get[GA](){return this[un]-this[Hi]}get[qA](){return this[ln].length-this[Hi]}get[Ese](){return!!this[pt]&&!this[ml]&&!this[pt].destroyed}get[ob](){return!!(this[pt]?.busy(null)||this[qA]>=(DO(this)||1)||this[HA]>0)}[gse](e){LO(this),this.once("connect",e)}[Pse](e,r){let s=e.origin||this[Un].origin,n=new Ase(s,e,r);return this[ln].push(n),this[Ra]||(Sa.bodyLength(n.body)==null&&Sa.isIterable(n.body)?(this[Ra]=1,queueMicrotask(()=>lb(this))):this[UA](!0)),this[Ra]&&this[vo]!==2&&this[ob]&&(this[vo]=2),this[vo]<2}async[Tse](){return new Promise(e=>{this[qA]?this[To]=e:e(null)})}async[vse](e){return new Promise(r=>{let s=this[ln].splice(this[un]);for(let i=0;i<s.length;i++){let a=s[i];Sa.errorRequest(this,a,e)}let n=o(()=>{this[To]&&(this[To](),this[To]=null),r(null)},"callback");this[pt]?(this[pt].destroy(e,n),this[pt]=null):queueMicrotask(n),this[UA]()})}},Ose=zh();function _O(t,e){if(t[GA]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){Gi(t[un]===t[Hi]);let r=t[ln].splice(t[Hi]);for(let s=0;s<r.length;s++){let n=r[s];Sa.errorRequest(t,n,e)}Gi(t[qA]===0)}}o(_O,"onError");async function LO(t){Gi(!t[ml]),Gi(!t[pt]);let{host:e,hostname:r,protocol:s,port:n}=t[Un];if(r[0]==="["){let i=r.indexOf("]");Gi(i!==-1);let a=r.substring(1,i);Gi(kO.isIP(a)),r=a}t[ml]=!0,pl.beforeConnect.hasSubscribers&&pl.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:s,port:n,version:t[pt]?.version,servername:t[Ro],localAddress:t[FA]},connector:t[OA]});try{let i=await new Promise((a,c)=>{t[OA]({host:e,hostname:r,protocol:s,port:n,servername:t[Ro],localAddress:t[FA]},(l,u)=>{l?c(l):a(u)})});if(t.destroyed){Sa.destroy(i.on("error",vO),new mse);return}Gi(i);try{t[pt]=i.alpnProtocol==="h2"?await Mse(t,i):await Lse(t,i)}catch(a){throw i.destroy().on("error",vO),a}t[ml]=!1,i[Rse]=0,i[ab]=t[ab],i[fse]=t,i[Cse]=null,pl.connected.hasSubscribers&&pl.connected.publish({connectParams:{host:e,hostname:r,protocol:s,port:n,version:t[pt]?.version,servername:t[Ro],localAddress:t[FA]},connector:t[OA],socket:i}),t.emit("connect",t[Un],[t])}catch(i){if(t.destroyed)return;if(t[ml]=!1,pl.connectError.hasSubscribers&&pl.connectError.publish({connectParams:{host:e,hostname:r,protocol:s,port:n,version:t[pt]?.version,servername:t[Ro],localAddress:t[FA]},connector:t[OA],error:i}),i.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(Gi(t[GA]===0);t[HA]>0&&t[ln][t[un]].servername===t[Ro];){let a=t[ln][t[un]++];Sa.errorRequest(t,a,i)}else _O(t,i);t.emit("connectionError",t[Un],[t],i)}t[UA]()}o(LO,"connect");function PO(t){t[vo]=0,t.emit("drain",t[Un],[t])}o(PO,"emitDrain");function lb(t,e){t[Ra]!==2&&(t[Ra]=2,Fse(t,e),t[Ra]=0,t[Hi]>256&&(t[ln].splice(0,t[Hi]),t[un]-=t[Hi],t[Hi]=0))}o(lb,"resume");function Fse(t,e){for(;;){if(t.destroyed){Gi(t[HA]===0);return}if(t[To]&&!t[qA]){t[To](),t[To]=null;return}if(t[pt]&&t[pt].resume(),t[ob])t[vo]=2;else if(t[vo]===2){e?(t[vo]=1,queueMicrotask(()=>PO(t))):PO(t);continue}if(t[HA]===0||t[GA]>=(DO(t)||1))return;let r=t[ln][t[un]];if(t[Un].protocol==="https:"&&t[Ro]!==r.servername){if(t[GA]>0)return;t[Ro]=r.servername,t[pt]?.destroy(new pse("servername changed"),()=>{t[pt]=null,lb(t)})}if(t[ml])return;if(!t[pt]){LO(t);return}if(t[pt].destroyed||t[pt].busy(r))return;!r.aborted&&t[pt].write(r)?t[un]++:t[ln].splice(t[un],1)}}o(Fse,"_resume");MO.exports=cb});var ub=f((DMe,OO)=>{"use strict";var $h=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)}};OO.exports=class{static{o(this,"FixedQueue")}constructor(){this.head=this.tail=new $h}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new $h),this.head.push(e)}shift(){let e=this.tail,r=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next),r}}});var UO=f((LMe,FO)=>{var{kFree:Use,kConnected:qse,kPending:Gse,kQueued:Hse,kRunning:zse,kSize:Vse}=Ve(),Ta=Symbol("pool"),Ab=class{static{o(this,"PoolStats")}constructor(e){this[Ta]=e}get connected(){return this[Ta][qse]}get free(){return this[Ta][Use]}get pending(){return this[Ta][Gse]}get queued(){return this[Ta][Hse]}get running(){return this[Ta][zse]}get size(){return this[Ta][Vse]}};FO.exports=Ab});var gb=f((OMe,jO)=>{"use strict";var $se=Zc(),Yse=ub(),{kConnected:db,kSize:qO,kRunning:GO,kPending:HO,kQueued:zA,kBusy:Jse,kFree:Wse,kUrl:jse,kClose:Kse,kDestroy:Xse,kDispatch:Zse}=Ve(),ene=UO(),Pr=Symbol("cli
Line truncated
|
||||
${s.count} ${s.noun} ${s.is} pending:
|
||||
|
||||
${e.format(r)}
|
||||
`.trim())}};VU.exports=dQ});var af=f((TOe,KU)=>{"use strict";var JU=Symbol.for("undici.globalDispatcher.1"),{InvalidArgumentError:yoe}=Qe(),Coe=ml();jU()===void 0&&WU(new Coe);function WU(t){if(!t||typeof t.dispatch!="function")throw new yoe("Argument agent must implement Agent");Object.defineProperty(globalThis,JU,{value:t,writable:!0,enumerable:!1,configurable:!1})}o(WU,"setGlobalDispatcher");function jU(){return globalThis[JU]}o(jU,"getGlobalDispatcher");KU.exports={setGlobalDispatcher:WU,getGlobalDispatcher:jU}});var cf=f((kOe,XU)=>{"use strict";XU.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 e2=f((_Oe,ZU)=>{"use strict";var Ioe=Fh();ZU.exports=t=>{let e=t?.maxRedirections;return r=>o(function(n,i){let{maxRedirections:a=e,...c}=n;if(!a)return r(n,i);let l=new Ioe(r,a,n,i);return r(c,l)},"redirectInterceptor")}});var r2=f((MOe,t2)=>{"use strict";var Boe=jh();t2.exports=t=>e=>o(function(s,n){return e(s,new Boe({...s,retryOptions:{...t,...s.retryOptions}},{handler:n,dispatch:e}))},"retryInterceptor")});var n2=f((FOe,s2)=>{"use strict";var woe=me(),{InvalidArgumentError:boe,RequestAbortedError:Qoe}=Qe(),xoe=cf(),pQ=class extends xoe{static{o(this,"DumpHandler")}#e=1024*1024;#t=null;#r=!1;#i=!1;#n=0;#s=null;#o=null;constructor({maxSize:e},r){if(super(r),e!=null&&(!Number.isFinite(e)||e<1))throw new boe("maxSize must be a number greater than 0");this.#e=e??this.#e,this.#o=r}onConnect(e){this.#t=e,this.#o.onConnect(this.#a.bind(this))}#a(e){this.#i=!0,this.#s=e}onHeaders(e,r,s,n){let a=woe.parseHeaders(r)["content-length"];if(a!=null&&a>this.#e)throw new Qoe(`Response size (${a}) larger than maxSize (${this.#e})`);return this.#i?!0:this.#o.onHeaders(e,r,s,n)}onError(e){this.#r||(e=this.#s??e,this.#o.onError(e))}onData(e){return this.#n=this.#n+e.length,this.#n>=this.#e&&(this.#r=!0,this.#i?this.#o.onError(this.#s):this.#o.onComplete([])),!0}onComplete(e){if(!this.#r){if(this.#i){this.#o.onError(this.reason);return}this.#o.onComplete(e)}}};function Noe({maxSize:t}={maxSize:1024*1024}){return e=>o(function(s,n){let{dumpMaxSize:i=t}=s,a=new pQ({maxSize:i},n);return e(s,a)},"Intercept")}o(Noe,"createDumpInterceptor");s2.exports=Noe});var a2=f((qOe,o2)=>{"use strict";var{isIP:Soe}=require("node:net"),{lookup:Roe}=require("node:dns"),Toe=cf(),{InvalidArgumentError:bl,InformationalError:voe}=Qe(),i2=Math.pow(2,31)-1,mQ=class{static{o(this,"DNSInstance")}#e=0;#t=0;#r=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.#i,this.pick=e.pick??this.#n}get full(){return this.#r.size===this.#t}runLookup(e,r,s){let n=this.#r.get(e.hostname);if(n==null&&this.full){s(null,e.origin);return}let i={affinity:this.affinity,dualStack:this.dualStack,lookup:this.lookup,pick:this.pick,...r.dns,maxTTL:this.#e,maxItems:this.#t};if(n==null)this.lookup(e,i,(a,c)=>{if(a||c==null||c.length===0){s(a??new voe("No DNS entries found"));return}this.setRecords(e,c);let l=this.#r.get(e.hostname),u=this.pick(e,l,i.affinity),A;typeof u.port=="number"?A=`:${u.port}`:e.port!==""?A=`:${e.port}`:A="",s(null,`${e.protocol}//${u.family===6?`[${u.address}]`:u.address}${A}`)});else{let a=this.pick(e,n,i.affinity);if(a==null){this.#r.delete(e.hostname),this.runLookup(e,r,s);return}let c;typeof a.port=="number"?c=`:${a.port}`:e.port!==""?c=`:${e.port}`:c="",s(null,`${e.protocol}//${a.family===6?`[${a.address}]`:a.address}${c}`)}}#i(e,r,s){Roe(e.hostname,{all:!0,family:this.dualStack===!1?this.affinity:0,order:"ipv4first"},(n,i)=>{if(n)return s(n);let a=new Map;for(let c of i)a.set(`${c.address}:${c.family}`,c);s(null,a.values())})}#n(e,r,s){let n=null,{records:i,offset:a}=r,c;if(this.dualStack?(s==null&&(a==null||a===i2?(r.offset=0,s=4):(r.offset++,s=(r.offset&1)===1?6:4)),i[s]!=null&&i[s].ips.length>0?c=i[s]:c=i[s===4?6:4]):c=i[s],c==null||c.ips.length===0)return n;c.offset==null||c.offset===i2?c.offset=0:c.offset++;let l=c.offset%c.ips.length;return n=c.ips[l]??null,n==null?n:Date.now()-n.timestamp>n.ttl?(c.ips.splice(l,1),this.pick(e,r,s)):n}setRecords(e,r){let s=Date.now(),n={records:{4:null,6:null}};for(let i of r){i.timestamp=s,typeof i.ttl=="number"?i.ttl=Math.min(i.ttl,this.#e):i.ttl=this.#e;let a=n.records[i.family]??{ips:[]};a.ips.push(i),n.records[i.family]=a}this.#r.set(e.hostname,n)}getHandler(e,r){return new hQ(this,e,r)}},hQ=class extends Toe{static{o(this,"DNSDispatchHandler")}#e=null;#t=null;#r=null
Line truncated
|
||||
${i}`;break;case"retry":Uq(i)&&(r[n]=i);break;case"id":qq(i)&&(r[n]=i);break;case"event":i.length>0&&(r[n]=i);break}}processEvent(e){e.retry&&Uq(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id&&qq(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}}};Gq.exports={EventSourceStream:tx}});var Kq=f((zFe,jq)=>{"use strict";var{pipeline:Uue}=require("node:stream"),{fetching:que}=td(),{makeRequest:Gue}=Nl(),{webidl:Yi}=Yt(),{EventSourceStream:Hue}=Hq(),{parseMIMEType:zue}=Tr(),{createFastMessageEvent:$ue}=kl(),{isNetworkError:zq}=ZA(),{delay:Vue}=ZQ(),{kEnumerableProperty:Ga}=me(),{environmentSettingsObject:$q}=jr(),Vq=!1,Yq=3e3,md=0,Jq=1,hd=2,Yue="anonymous",Jue="use-credentials",Ol=class t extends EventTarget{static{o(this,"EventSource")}#e={open:null,error:null,message:null};#t=null;#r=!1;#i=md;#n=null;#s=null;#o;#a;constructor(e,r={}){super(),Yi.util.markAsUncloneable(this);let s="EventSource constructor";Yi.argumentLengthCheck(arguments,1,s),Vq||(Vq=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=Yi.converters.USVString(e,s,"url"),r=Yi.converters.EventSourceInitDict(r,s,"eventSourceInitDict"),this.#o=r.dispatcher,this.#a={lastEventId:"",reconnectionTime:Yq};let n=$q,i;try{i=new URL(e,n.settingsObject.baseUrl),this.#a.origin=i.origin}catch(l){throw new DOMException(l,"SyntaxError")}this.#t=i.href;let a=Yue;r.withCredentials&&(a=Jue,this.#r=!0);let c={redirect:"follow",keepalive:!0,mode:"cors",credentials:a==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};c.client=$q.settingsObject,c.headersList=[["accept",{name:"accept",value:"text/event-stream"}]],c.cache="no-store",c.initiator="other",c.urlList=[new URL(this.#t)],this.#n=Gue(c),this.#c()}get readyState(){return this.#i}get url(){return this.#t}get withCredentials(){return this.#r}#c(){if(this.#i===hd)return;this.#i=md;let e={request:this.#n,dispatcher:this.#o},r=o(s=>{zq(s)&&(this.dispatchEvent(new Event("error")),this.close()),this.#l()},"processEventSourceEndOfBody");e.processResponseEndOfBody=r,e.processResponse=s=>{if(zq(s))if(s.aborted){this.close(),this.dispatchEvent(new Event("error"));return}else{this.#l();return}let n=s.headersList.get("content-type",!0),i=n!==null?zue(n):"failure",a=i!=="failure"&&i.essence==="text/event-stream";if(s.status!==200||a===!1){this.close(),this.dispatchEvent(new Event("error"));return}this.#i=Jq,this.dispatchEvent(new Event("open")),this.#a.origin=s.urlList[s.urlList.length-1].origin;let c=new Hue({eventSourceSettings:this.#a,push:o(l=>{this.dispatchEvent($ue(l.type,l.options))},"push")});Uue(s.body.stream,c,l=>{l?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#s=que(e)}async#l(){this.#i!==hd&&(this.#i=md,this.dispatchEvent(new Event("error")),await Vue(this.#a.reconnectionTime),this.#i===md&&(this.#a.lastEventId.length&&this.#n.headersList.set("last-event-id",this.#a.lastEventId,!0),this.#c()))}close(){Yi.brandCheck(this,t),this.#i!==hd&&(this.#i=hd,this.#s.abort(),this.#n=null)}get onopen(){return this.#e.open}set onopen(e){this.#e.open&&this.removeEventListener("open",this.#e.open),typeof e=="function"?(this.#e.open=e,this.addEventListener("open",e)):this.#e.open=null}get onmessage(){return this.#e.message}set onmessage(e){this.#e.message&&this.removeEventListener("message",this.#e.message),typeof e=="function"?(this.#e.message=e,this.addEventListener("message",e)):this.#e.message=null}get onerror(){return this.#e.error}set onerror(e){this.#e.error&&this.removeEventListener("error",this.#e.error),typeof e=="function"?(this.#e.error=e,this.addEventListener("error",e)):this.#e.error=null}},Wq={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:md,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:Jq,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:hd,writable:!1}};Object.defineProperties(Ol,Wq);Object.defineProperties(Ol.prototype,Wq);Object.defineProperties(Ol.prototype,{close:Ga,onerror:Ga,onmessage:Ga,onopen:Ga,readyState:Ga,url:Ga,withCredentials:Ga});Yi.converters.EventSourceInitDict=Yi.dictionaryConverter([{key:"withCredentials",converter:Yi.converters.boolean,defaultValue:o(()=>!1,"defaultValue")},{key:"dispatcher",converter:Yi.converters.any}]);jq.exports={EventSource:Ol,defaultReconnectionTime:Yq}});var Ul=f((VFe,ee)=>{"use strict";var Wue=dl(),Xq=yA(),jue=pl(),Kue=WO(),Xue=ml(),Zue=Qb(),eAe=yF(),tAe=QF(),Zq=Qe(),Wf=me(),{InvalidArgumentError:Jf}=Zq,Fl=AU(),rAe=IA(),sAe=oQ(),nAe=YU(),iAe=lQ(),oAe=Yb(),aAe=jh(),{getGlobalDispatcher:eG,setGlobalDispatcher:cAe}=af(),lAe=cf(),uAe=Fh(),AAe=Uh();Object.assign(Xq.prototype,Fl);ee.exports.Dispatcher=Xq;ee.exports.Client=Wue;ee.exports.Pool=jue;ee.exports.BalancedPool=Kue;ee.exports.Agent=Xue;ee.exports.
Line truncated
|
||||
%s`,N,N,y,s);var D=y.type==="*"?o0:y.type==="?"?i0:"\\"+y.type;n=!0,s=s.slice(0,y.reStart)+D+"\\("+N}h(),i&&(s+="\\\\");var q=!1;switch(s.charAt(0)){case"[":case".":case"(":q=!0}for(var pe=c.length-1;pe>-1;pe--){var be=c[pe],Re=s.slice(0,be.reStart),V=s.slice(be.reStart,be.reEnd-8),ne=s.slice(be.reEnd-8,be.reEnd),G=s.slice(be.reEnd);ne+=G;var ye=Re.split("(").length-1,bt=G;for(g=0;g<ye;g++)bt=bt.replace(/\)[+*?]?/,"");G=bt;var Ke="";G===""&&e!==Ig&&(Ke="$");var ut=Re+V+G+Ke+ne;s=ut}if(s!==""&&n&&(s="(?=.)"+s),q&&(s=p+s),e===Ig)return[s,n];if(!n)return Rhe(t);var ki=r.nocase?"i":"";try{var Wr=new RegExp("^"+s+"$",ki)}catch{return new RegExp("$.")}return Wr._glob=t,Wr._src=s,Wr}o(Nhe,"parse");os.makeRe=function(t,e){return new Jt(t,e||{}).makeRe()};Jt.prototype.makeRe=She;function She(){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?o0:e.dot?Che:Ihe,s=e.nocase?"i":"",n=t.map(function(i){return i.map(function(a){return a===a0?r:typeof a=="string"?The(a):a._src}).join("\\/")}).join("|");n="^(?:"+n+")$",this.negate&&(n="^(?!"+n+").*$");try{this.regexp=new RegExp(n,s)}catch{this.regexp=!1}return this.regexp}o(She,"makeRe");os.match=function(t,e,r){r=r||{};var s=new Jt(e,r);return t=t.filter(function(n){return s.match(n)}),s.options.nonull&&!t.length&&t.push(e),t};Jt.prototype.match=o(function(e,r){if(typeof r>"u"&&(r=this.partial),this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return e==="";if(e==="/"&&r)return!0;var s=this.options;Od.sep!=="/"&&(e=e.split(Od.sep).join("/")),e=e.split(r$),this.debug(this.pattern,"split",e);var n=this.set;this.debug(this.pattern,"set",n);var i,a;for(a=e.length-1;a>=0&&(i=e[a],!i);a--);for(a=0;a<n.length;a++){var c=n[a],l=e;s.matchBase&&c.length===1&&(l=[i]);var u=this.matchOne(l,c,r);if(u)return s.flipNegate?!0:!this.negate}return s.flipNegate?!1:this.negate},"match");Jt.prototype.matchOne=function(t,e,r){var s=this.options;this.debug("matchOne",{this:this,file:t,pattern:e}),this.debug("matchOne",t.length,e.length);for(var n=0,i=0,a=t.length,c=e.length;n<a&&i<c;n++,i++){this.debug("matchOne loop");var l=e[i],u=t[n];if(this.debug(e,l,u),l===!1)return!1;if(l===a0){this.debug("GLOBSTAR",[e,l,u]);var A=n,d=i+1;if(d===c){for(this.debug("** at the end");n<a;n++)if(t[n]==="."||t[n]===".."||!s.dot&&t[n].charAt(0)===".")return!1;return!0}for(;A<a;){var p=t[A];if(this.debug(`
|
||||
`.trim())}};r2.exports=gQ});var Af=f((LOe,a2)=>{"use strict";var n2=Symbol.for("undici.globalDispatcher.1"),{InvalidArgumentError:xoe}=Qe(),Noe=gl();o2()===void 0&&i2(new Noe);function i2(t){if(!t||typeof t.dispatch!="function")throw new xoe("Argument agent must implement Agent");Object.defineProperty(globalThis,n2,{value:t,writable:!0,enumerable:!1,configurable:!1})}o(i2,"setGlobalDispatcher");function o2(){return globalThis[n2]}o(o2,"getGlobalDispatcher");a2.exports={setGlobalDispatcher:i2,getGlobalDispatcher:o2}});var df=f((FOe,c2)=>{"use strict";c2.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 u2=f((qOe,l2)=>{"use strict";var Soe=Hh();l2.exports=t=>{let e=t?.maxRedirections;return r=>o(function(n,i){let{maxRedirections:a=e,...c}=n;if(!a)return r(n,i);let l=new Soe(r,a,n,i);return r(c,l)},"redirectInterceptor")}});var d2=f((HOe,A2)=>{"use strict";var Roe=ef();A2.exports=t=>e=>o(function(s,n){return e(s,new Roe({...s,retryOptions:{...t,...s.retryOptions}},{handler:n,dispatch:e}))},"retryInterceptor")});var m2=f((VOe,p2)=>{"use strict";var Toe=me(),{InvalidArgumentError:voe,RequestAbortedError:Poe}=Qe(),koe=df(),EQ=class extends koe{static{o(this,"DumpHandler")}#e=1024*1024;#t=null;#r=!1;#i=!1;#n=0;#s=null;#o=null;constructor({maxSize:e},r){if(super(r),e!=null&&(!Number.isFinite(e)||e<1))throw new voe("maxSize must be a number greater than 0");this.#e=e??this.#e,this.#o=r}onConnect(e){this.#t=e,this.#o.onConnect(this.#a.bind(this))}#a(e){this.#i=!0,this.#s=e}onHeaders(e,r,s,n){let a=Toe.parseHeaders(r)["content-length"];if(a!=null&&a>this.#e)throw new Poe(`Response size (${a}) larger than maxSize (${this.#e})`);return this.#i?!0:this.#o.onHeaders(e,r,s,n)}onError(e){this.#r||(e=this.#s??e,this.#o.onError(e))}onData(e){return this.#n=this.#n+e.length,this.#n>=this.#e&&(this.#r=!0,this.#i?this.#o.onError(this.#s):this.#o.onComplete([])),!0}onComplete(e){if(!this.#r){if(this.#i){this.#o.onError(this.reason);return}this.#o.onComplete(e)}}};function Doe({maxSize:t}={maxSize:1024*1024}){return e=>o(function(s,n){let{dumpMaxSize:i=t}=s,a=new EQ({maxSize:i},n);return e(s,a)},"Intercept")}o(Doe,"createDumpInterceptor");p2.exports=Doe});var g2=f((YOe,f2)=>{"use strict";var{isIP:_oe}=require("node:net"),{lookup:Loe}=require("node:dns"),Moe=df(),{InvalidArgumentError:Nl,InformationalError:Ooe}=Qe(),h2=Math.pow(2,31)-1,yQ=class{static{o(this,"DNSInstance")}#e=0;#t=0;#r=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.#i,this.pick=e.pick??this.#n}get full(){return this.#r.size===this.#t}runLookup(e,r,s){let n=this.#r.get(e.hostname);if(n==null&&this.full){s(null,e.origin);return}let i={affinity:this.affinity,dualStack:this.dualStack,lookup:this.lookup,pick:this.pick,...r.dns,maxTTL:this.#e,maxItems:this.#t};if(n==null)this.lookup(e,i,(a,c)=>{if(a||c==null||c.length===0){s(a??new Ooe("No DNS entries found"));return}this.setRecords(e,c);let l=this.#r.get(e.hostname),u=this.pick(e,l,i.affinity),A;typeof u.port=="number"?A=`:${u.port}`:e.port!==""?A=`:${e.port}`:A="",s(null,`${e.protocol}//${u.family===6?`[${u.address}]`:u.address}${A}`)});else{let a=this.pick(e,n,i.affinity);if(a==null){this.#r.delete(e.hostname),this.runLookup(e,r,s);return}let c;typeof a.port=="number"?c=`:${a.port}`:e.port!==""?c=`:${e.port}`:c="",s(null,`${e.protocol}//${a.family===6?`[${a.address}]`:a.address}${c}`)}}#i(e,r,s){Loe(e.hostname,{all:!0,family:this.dualStack===!1?this.affinity:0,order:"ipv4first"},(n,i)=>{if(n)return s(n);let a=new Map;for(let c of i)a.set(`${c.address}:${c.family}`,c);s(null,a.values())})}#n(e,r,s){let n=null,{records:i,offset:a}=r,c;if(this.dualStack?(s==null&&(a==null||a===h2?(r.offset=0,s=4):(r.offset++,s=(r.offset&1)===1?6:4)),i[s]!=null&&i[s].ips.length>0?c=i[s]:c=i[s===4?6:4]):c=i[s],c==null||c.ips.length===0)return n;c.offset==null||c.offset===h2?c.offset=0:c.offset++;let l=c.offset%c.ips.length;return n=c.ips[l]??null,n==null?n:Date.now()-n.timestamp>n.ttl?(c.ips.splice(l,1),this.pick(e,r,s)):n}setRecords(e,r){let s=Date.now(),n={records:{4:null,6:null}};for(let i of r){i.timestamp=s,typeof i.ttl=="number"?i.ttl=Math.min(i.ttl,this.#e):i.ttl=this.#e;let a=n.records[i.family]??{ips:[]};a.ips.push(i),n.records[i.family]=a}this.#r.set(e.hostname,n)}getHandler(e,r){return new CQ(this,e,r)}},CQ=class extends Moe{static{o(this,"DNSDispatchHandler")}#e=null;#t=null;#r=null
Line truncated
|
||||
${i}`;break;case"retry":jq(i)&&(r[n]=i);break;case"id":Kq(i)&&(r[n]=i);break;case"event":i.length>0&&(r[n]=i);break}}processEvent(e){e.retry&&jq(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id&&Kq(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}}};Xq.exports={EventSourceStream:ax}});var aG=f((jFe,oG)=>{"use strict";var{pipeline:$ue}=require("node:stream"),{fetching:Yue}=nd(),{makeRequest:Jue}=Tl(),{webidl:Ji}=Jt(),{EventSourceStream:Wue}=Zq(),{parseMIMEType:jue}=Tr(),{createFastMessageEvent:Kue}=Ll(),{isNetworkError:eG}=rd(),{delay:Xue}=ix(),{kEnumerableProperty:Va}=me(),{environmentSettingsObject:tG}=jr(),rG=!1,sG=3e3,Ed=0,nG=1,yd=2,Zue="anonymous",eAe="use-credentials",ql=class t extends EventTarget{static{o(this,"EventSource")}#e={open:null,error:null,message:null};#t=null;#r=!1;#i=Ed;#n=null;#s=null;#o;#a;constructor(e,r={}){super(),Ji.util.markAsUncloneable(this);let s="EventSource constructor";Ji.argumentLengthCheck(arguments,1,s),rG||(rG=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=Ji.converters.USVString(e,s,"url"),r=Ji.converters.EventSourceInitDict(r,s,"eventSourceInitDict"),this.#o=r.dispatcher,this.#a={lastEventId:"",reconnectionTime:sG};let n=tG,i;try{i=new URL(e,n.settingsObject.baseUrl),this.#a.origin=i.origin}catch(l){throw new DOMException(l,"SyntaxError")}this.#t=i.href;let a=Zue;r.withCredentials&&(a=eAe,this.#r=!0);let c={redirect:"follow",keepalive:!0,mode:"cors",credentials:a==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};c.client=tG.settingsObject,c.headersList=[["accept",{name:"accept",value:"text/event-stream"}]],c.cache="no-store",c.initiator="other",c.urlList=[new URL(this.#t)],this.#n=Jue(c),this.#l()}get readyState(){return this.#i}get url(){return this.#t}get withCredentials(){return this.#r}#l(){if(this.#i===yd)return;this.#i=Ed;let e={request:this.#n,dispatcher:this.#o},r=o(s=>{eG(s)&&(this.dispatchEvent(new Event("error")),this.close()),this.#c()},"processEventSourceEndOfBody");e.processResponseEndOfBody=r,e.processResponse=s=>{if(eG(s))if(s.aborted){this.close(),this.dispatchEvent(new Event("error"));return}else{this.#c();return}let n=s.headersList.get("content-type",!0),i=n!==null?jue(n):"failure",a=i!=="failure"&&i.essence==="text/event-stream";if(s.status!==200||a===!1){this.close(),this.dispatchEvent(new Event("error"));return}this.#i=nG,this.dispatchEvent(new Event("open")),this.#a.origin=s.urlList[s.urlList.length-1].origin;let c=new Wue({eventSourceSettings:this.#a,push:o(l=>{this.dispatchEvent(Kue(l.type,l.options))},"push")});$ue(s.body.stream,c,l=>{l?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#s=Yue(e)}async#c(){this.#i!==yd&&(this.#i=Ed,this.dispatchEvent(new Event("error")),await Xue(this.#a.reconnectionTime),this.#i===Ed&&(this.#a.lastEventId.length&&this.#n.headersList.set("last-event-id",this.#a.lastEventId,!0),this.#l()))}close(){Ji.brandCheck(this,t),this.#i!==yd&&(this.#i=yd,this.#s.abort(),this.#n=null)}get onopen(){return this.#e.open}set onopen(e){this.#e.open&&this.removeEventListener("open",this.#e.open),typeof e=="function"?(this.#e.open=e,this.addEventListener("open",e)):this.#e.open=null}get onmessage(){return this.#e.message}set onmessage(e){this.#e.message&&this.removeEventListener("message",this.#e.message),typeof e=="function"?(this.#e.message=e,this.addEventListener("message",e)):this.#e.message=null}get onerror(){return this.#e.error}set onerror(e){this.#e.error&&this.removeEventListener("error",this.#e.error),typeof e=="function"?(this.#e.error=e,this.addEventListener("error",e)):this.#e.error=null}},iG={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:Ed,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:nG,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:yd,writable:!1}};Object.defineProperties(ql,iG);Object.defineProperties(ql.prototype,iG);Object.defineProperties(ql.prototype,{close:Va,onerror:Va,onmessage:Va,onopen:Va,readyState:Va,url:Va,withCredentials:Va});Ji.converters.EventSourceInitDict=Ji.dictionaryConverter([{key:"withCredentials",converter:Ji.converters.boolean,defaultValue:o(()=>!1,"defaultValue")},{key:"dispatcher",converter:Ji.converters.any}]);oG.exports={EventSource:ql,defaultReconnectionTime:sG}});var Hl=f((XFe,te)=>{"use strict";var tAe=hl(),cG=BA(),rAe=fl(),sAe=iF(),nAe=gl(),iAe=Tb(),oAe=RF(),aAe=_F(),lG=Qe(),Zf=me(),{InvalidArgumentError:Xf}=lG,Gl=IU(),cAe=bA(),lAe=AQ(),uAe=s2(),AAe=mQ(),dAe=Xb(),pAe=ef(),{getGlobalDispatcher:uG,setGlobalDispatcher:mAe}=Af(),hAe=df(),fAe=Hh(),gAe=zh();Object.assign(cG.prototype,Gl);te.exports.Dispatcher=cG;te.exports.Client=tAe;te.exports.Pool=rAe;te.exports.BalancedPool=sAe;te.exports.Agent=nAe;te.exports.
Line truncated
|
||||
%s`,N,N,y,s);var D=y.type==="*"?d0:y.type==="?"?A0:"\\"+y.type;n=!0,s=s.slice(0,y.reStart)+D+"\\("+N}h(),i&&(s+="\\\\");var q=!1;switch(s.charAt(0)){case"[":case".":case"(":q=!0}for(var pe=c.length-1;pe>-1;pe--){var be=c[pe],Re=s.slice(0,be.reStart),$=s.slice(be.reStart,be.reEnd-8),ne=s.slice(be.reEnd-8,be.reEnd),G=s.slice(be.reEnd);ne+=G;var ye=Re.split("(").length-1,Qt=G;for(g=0;g<ye;g++)Qt=Qt.replace(/\)[+*?]?/,"");G=Qt;var Xe="";G===""&&e!==Qg&&(Xe="$");var At=Re+$+G+Xe+ne;s=At}if(s!==""&&n&&(s="(?=.)"+s),q&&(s=p+s),e===Qg)return[s,n];if(!n)return _he(t);var ki=r.nocase?"i":"";try{var Wr=new RegExp("^"+s+"$",ki)}catch{return new RegExp("$.")}return Wr._glob=t,Wr._src=s,Wr}o(khe,"parse");cs.makeRe=function(t,e){return new Wt(t,e||{}).makeRe()};Wt.prototype.makeRe=Dhe;function Dhe(){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?d0:e.dot?xhe:Nhe,s=e.nocase?"i":"",n=t.map(function(i){return i.map(function(a){return a===p0?r:typeof a=="string"?Lhe(a):a._src}).join("\\/")}).join("|");n="^(?:"+n+")$",this.negate&&(n="^(?!"+n+").*$");try{this.regexp=new RegExp(n,s)}catch{this.regexp=!1}return this.regexp}o(Dhe,"makeRe");cs.match=function(t,e,r){r=r||{};var s=new Wt(e,r);return t=t.filter(function(n){return s.match(n)}),s.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 s=this.options;Gd.sep!=="/"&&(e=e.split(Gd.sep).join("/")),e=e.split(dV),this.debug(this.pattern,"split",e);var n=this.set;this.debug(this.pattern,"set",n);var i,a;for(a=e.length-1;a>=0&&(i=e[a],!i);a--);for(a=0;a<n.length;a++){var c=n[a],l=e;s.matchBase&&c.length===1&&(l=[i]);var u=this.matchOne(l,c,r);if(u)return s.flipNegate?!0:!this.negate}return s.flipNegate?!1:this.negate},"match");Wt.prototype.matchOne=function(t,e,r){var s=this.options;this.debug("matchOne",{this:this,file:t,pattern:e}),this.debug("matchOne",t.length,e.length);for(var n=0,i=0,a=t.length,c=e.length;n<a&&i<c;n++,i++){this.debug("matchOne loop");var l=e[i],u=t[n];if(this.debug(e,l,u),l===!1)return!1;if(l===p0){this.debug("GLOBSTAR",[e,l,u]);var A=n,d=i+1;if(d===c){for(this.debug("** at the end");n<a;n++)if(t[n]==="."||t[n]===".."||!s.dot&&t[n].charAt(0)===".")return!1;return!0}for(;A<a;){var p=t[A];if(this.debug(`
|
||||
globstar while`,t,A,e,d,p),this.matchOne(t.slice(A),e.slice(d),r))return this.debug("globstar found match!",A,a,p),!0;if(p==="."||p===".."||!s.dot&&p.charAt(0)==="."){this.debug("dot detected!",t,A,e,d);break}this.debug("globstar swallow a segment, and continue"),A++}return!!(r&&(this.debug(`
|
||||
>>> no match, partial?`,t,A,e,d),A===a))}var m;if(typeof l=="string"?(m=u===l,this.debug("string match",l,u,m)):(m=u.match(l),this.debug("pattern match",l,u,m)),!m)return!1}if(n===a&&i===c)return!0;if(n===a)return r;if(i===c)return n===a-1&&t[n]==="";throw new Error("wtf?")};function Rhe(t){return t.replace(/\\(.)/g,"$1")}o(Rhe,"globUnescape");function The(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}o(The,"regExpEscape")});var qd=f((BGe,l$)=>{"use strict";var Ohe="2.0.0",Fhe=Number.MAX_SAFE_INTEGER||9007199254740991,Uhe=16,qhe=250,Ghe=["major","premajor","minor","preminor","patch","prepatch","prerelease"];l$.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:Uhe,MAX_SAFE_BUILD_LENGTH:qhe,MAX_SAFE_INTEGER:Fhe,RELEASE_TYPES:Ghe,SEMVER_SPEC_VERSION:Ohe,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var Gd=f((wGe,u$)=>{"use strict";var Hhe=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};u$.exports=Hhe});var Xl=f((Yn,A$)=>{"use strict";var{MAX_SAFE_COMPONENT_LENGTH:l0,MAX_SAFE_BUILD_LENGTH:zhe,MAX_LENGTH:$he}=qd(),Vhe=Gd();Yn=A$.exports={};var Yhe=Yn.re=[],Jhe=Yn.safeRe=[],M=Yn.src=[],Whe=Yn.safeSrc=[],O=Yn.t={},jhe=0,u0="[a-zA-Z0-9-]",Khe=[["\\s",1],["\\d",$he],[u0,zhe]],Xhe=o(t=>{for(let[e,r]of Khe)t=t.split(`${e}*`).join(`${e}{0,${r}}`).split(`${e}+`).join(`${e}{1,${r}}`);return t},"makeSafeRegex"),oe=o((t,e,r)=>{let s=Xhe(e),n=jhe++;Vhe(t,n,e),O[t]=n,M[n]=e,Whe[n]=s,Yhe[n]=new RegExp(e,r?"g":void 0),Jhe[n]=new RegExp(s,r?"g":void 0)},"createToken");oe("NUMERICIDENTIFIER","0|[1-9]\\d*");oe("NUMERICIDENTIFIERLOOSE","\\d+");oe("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${u0}*`);oe("MAINVERSION",`(${M[O.NUMERICIDENTIFIER]})\\.(${M[O.NUMERICIDENTIFIER]})\\.(${M[O.NUMERICIDENTIFIER]})`);oe("MAINVERSIONLOOSE",`(${M[O.NUMERICIDENTIFIERLOOSE]})\\.(${M[O.NUMERICIDENTIFIERLOOSE]})\\.(${M[O.NUMERICIDENTIFIERLOOSE]})`);oe("PRERELEASEIDENTIFIER",`(?:${M[O.NONNUMERICIDENTIFIER]}|${M[O.NUMERICIDENTIFIER]})`);oe("PRERELEASEIDENTIFIERLOOSE",`(?:${M[O.NONNUMERICIDENTIFIER]}|${M[O.NUMERICIDENTIFIERLOOSE]})`);oe("PRERELEASE",`(?:-(${M[O.PRERELEASEIDENTIFIER]}(?:\\.${M[O.PRERELEASEIDENTIFIER]})*))`);oe("PRERELEASELOOSE",`(?:-?(${M[O.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${M[O.PRERELEASEIDENTIFIERLOOSE]})*))`);oe("BUILDIDENTIFIER",`${u0}+`);oe("BUILD",`(?:\\+(${M[O.BUILDIDENTIFIER]}(?:\\.${M[O.BUILDIDENTIFIER]})*))`);oe("FULLPLAIN",`v?${M[O.MAINVERSION]}${M[O.PRERELEASE]}?${M[O.BUILD]}?`);oe("FULL",`^${M[O.FULLPLAIN]}$`);oe("LOOSEPLAIN",`[v=\\s]*${M[O.MAINVERSIONLOOSE]}${M[O.PRERELEASELOOSE]}?${M[O.BUILD]}?`);oe("LOOSE",`^${M[O.LOOSEPLAIN]}$`);oe("GTLT","((?:<|>)?=?)");oe("XRANGEIDENTIFIERLOOSE",`${M[O.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);oe("XRANGEIDENTIFIER",`${M[O.NUMERICIDENTIFIER]}|x|X|\\*`);oe("XRANGEPLAIN",`[v=\\s]*(${M[O.XRANGEIDENTIFIER]})(?:\\.(${M[O.XRANGEIDENTIFIER]})(?:\\.(${M[O.XRANGEIDENTIFIER]})(?:${M[O.PRERELEASE]})?${M[O.BUILD]}?)?)?`);oe("XRANGEPLAINLOOSE",`[v=\\s]*(${M[O.XRANGEIDENTIFIERLOOSE]})(?:\\.(${M[O.XRANGEIDENTIFIERLOOSE]})(?:\\.(${M[O.XRANGEIDENTIFIERLOOSE]})(?:${M[O.PRERELEASELOOSE]})?${M[O.BUILD]}?)?)?`);oe("XRANGE",`^${M[O.GTLT]}\\s*${M[O.XRANGEPLAIN]}$`);oe("XRANGELOOSE",`^${M[O.GTLT]}\\s*${M[O.XRANGEPLAINLOOSE]}$`);oe("COERCEPLAIN",`(^|[^\\d])(\\d{1,${l0}})(?:\\.(\\d{1,${l0}}))?(?:\\.(\\d{1,${l0}}))?`);oe("COERCE",`${M[O.COERCEPLAIN]}(?:$|[^\\d])`);oe("COERCEFULL",M[O.COERCEPLAIN]+`(?:${M[O.PRERELEASE]})?(?:${M[O.BUILD]})?(?:$|[^\\d])`);oe("COERCERTL",M[O.COERCE],!0);oe("COERCERTLFULL",M[O.COERCEFULL],!0);oe("LONETILDE","(?:~>?)");oe("TILDETRIM",`(\\s*)${M[O.LONETILDE]}\\s+`,!0);Yn.tildeTrimReplace="$1~";oe("TILDE",`^${M[O.LONETILDE]}${M[O.XRANGEPLAIN]}$`);oe("TILDELOOSE",`^${M[O.LONETILDE]}${M[O.XRANGEPLAINLOOSE]}$`);oe("LONECARET","(?:\\^)");oe("CARETTRIM",`(\\s*)${M[O.LONECARET]}\\s+`,!0);Yn.caretTrimReplace="$1^";oe("CARET",`^${M[O.LONECARET]}${M[O.XRANGEPLAIN]}$`);oe("CARETLOOSE",`^${M[O.LONECARET]}${M[O.XRANGEPLAINLOOSE]}$`);oe("COMPARATORLOOSE",`^${M[O.GTLT]}\\s*(${M[O.LOOSEPLAIN]})$|^$`);oe("COMPARATOR",`^${M[O.GTLT]}\\s*(${M[O.FULLPLAIN]})$|^$`);oe("COMPARATORTRIM",`(\\s*)${M[O.GTLT]}\\s*(${M[O.LOOSEPLAIN]}|${M[O.XRANGEPLAIN]})`,!0);Yn.comparatorTrimReplace="$1$2$3";oe("HYPHENRANGE",`^\\s*(${M[O.XRANGEPLAIN]})\\s+-\\s+(${M[O.XRANGEPLAIN]})\\s*$`);oe("HYPHENRANGELOOSE",`^\\s*(${M[O.XRANGEPLAINLOOSE]})\\s+-\\s+(${M[O.XRANGEPLAINLOOSE]})\\s*$`);oe("STAR","(<|>)?=?\\s*\\*");oe("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");oe("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")});var Qg=f((QGe,d$)=>{"use strict";var Zhe=Object.freeze({loose:!0}),efe=Object.freeze({}),tfe=o(t=>t?typeof t!="object"?Zhe:t:efe,"parseOptions");d$.exports=tfe});var A0=f((NGe,h$)=>{"use strict";var p$=/^[0-9]+$/,m$=o((t,e)=>{if(typeof t=="number"&&typeof e=="number")return t===e?0:t<e?-1:1;let r=p$.test(t),s=p$.test(e);return r&&s&&(t=+t,e=+e),t===e?0:r&&!s?-1:s&&!r?1:t<e?-1:1},"compareIdentifiers"),rfe=o((t,e)=>m$(e,t),"rcompareIdentifiers");h$Line truncated
|
||||
>>> no match, partial?`,t,A,e,d),A===a))}var m;if(typeof l=="string"?(m=u===l,this.debug("string match",l,u,m)):(m=u.match(l),this.debug("pattern match",l,u,m)),!m)return!1}if(n===a&&i===c)return!0;if(n===a)return r;if(i===c)return n===a-1&&t[n]==="";throw new Error("wtf?")};function _he(t){return t.replace(/\\(.)/g,"$1")}o(_he,"globUnescape");function Lhe(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}o(Lhe,"regExpEscape")});var Vd=f((SGe,yV)=>{"use strict";var zhe="2.0.0",Vhe=Number.MAX_SAFE_INTEGER||9007199254740991,$he=16,Yhe=250,Jhe=["major","premajor","minor","preminor","patch","prepatch","prerelease"];yV.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:$he,MAX_SAFE_BUILD_LENGTH:Yhe,MAX_SAFE_INTEGER:Vhe,RELEASE_TYPES:Jhe,SEMVER_SPEC_VERSION:zhe,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var $d=f((RGe,CV)=>{"use strict";var Whe=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};CV.exports=Whe});var tu=f((Yn,IV)=>{"use strict";var{MAX_SAFE_COMPONENT_LENGTH:h0,MAX_SAFE_BUILD_LENGTH:jhe,MAX_LENGTH:Khe}=Vd(),Xhe=$d();Yn=IV.exports={};var Zhe=Yn.re=[],efe=Yn.safeRe=[],M=Yn.src=[],tfe=Yn.safeSrc=[],O=Yn.t={},rfe=0,f0="[a-zA-Z0-9-]",sfe=[["\\s",1],["\\d",Khe],[f0,jhe]],nfe=o(t=>{for(let[e,r]of sfe)t=t.split(`${e}*`).join(`${e}{0,${r}}`).split(`${e}+`).join(`${e}{1,${r}}`);return t},"makeSafeRegex"),oe=o((t,e,r)=>{let s=nfe(e),n=rfe++;Xhe(t,n,e),O[t]=n,M[n]=e,tfe[n]=s,Zhe[n]=new RegExp(e,r?"g":void 0),efe[n]=new RegExp(s,r?"g":void 0)},"createToken");oe("NUMERICIDENTIFIER","0|[1-9]\\d*");oe("NUMERICIDENTIFIERLOOSE","\\d+");oe("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${f0}*`);oe("MAINVERSION",`(${M[O.NUMERICIDENTIFIER]})\\.(${M[O.NUMERICIDENTIFIER]})\\.(${M[O.NUMERICIDENTIFIER]})`);oe("MAINVERSIONLOOSE",`(${M[O.NUMERICIDENTIFIERLOOSE]})\\.(${M[O.NUMERICIDENTIFIERLOOSE]})\\.(${M[O.NUMERICIDENTIFIERLOOSE]})`);oe("PRERELEASEIDENTIFIER",`(?:${M[O.NONNUMERICIDENTIFIER]}|${M[O.NUMERICIDENTIFIER]})`);oe("PRERELEASEIDENTIFIERLOOSE",`(?:${M[O.NONNUMERICIDENTIFIER]}|${M[O.NUMERICIDENTIFIERLOOSE]})`);oe("PRERELEASE",`(?:-(${M[O.PRERELEASEIDENTIFIER]}(?:\\.${M[O.PRERELEASEIDENTIFIER]})*))`);oe("PRERELEASELOOSE",`(?:-?(${M[O.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${M[O.PRERELEASEIDENTIFIERLOOSE]})*))`);oe("BUILDIDENTIFIER",`${f0}+`);oe("BUILD",`(?:\\+(${M[O.BUILDIDENTIFIER]}(?:\\.${M[O.BUILDIDENTIFIER]})*))`);oe("FULLPLAIN",`v?${M[O.MAINVERSION]}${M[O.PRERELEASE]}?${M[O.BUILD]}?`);oe("FULL",`^${M[O.FULLPLAIN]}$`);oe("LOOSEPLAIN",`[v=\\s]*${M[O.MAINVERSIONLOOSE]}${M[O.PRERELEASELOOSE]}?${M[O.BUILD]}?`);oe("LOOSE",`^${M[O.LOOSEPLAIN]}$`);oe("GTLT","((?:<|>)?=?)");oe("XRANGEIDENTIFIERLOOSE",`${M[O.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);oe("XRANGEIDENTIFIER",`${M[O.NUMERICIDENTIFIER]}|x|X|\\*`);oe("XRANGEPLAIN",`[v=\\s]*(${M[O.XRANGEIDENTIFIER]})(?:\\.(${M[O.XRANGEIDENTIFIER]})(?:\\.(${M[O.XRANGEIDENTIFIER]})(?:${M[O.PRERELEASE]})?${M[O.BUILD]}?)?)?`);oe("XRANGEPLAINLOOSE",`[v=\\s]*(${M[O.XRANGEIDENTIFIERLOOSE]})(?:\\.(${M[O.XRANGEIDENTIFIERLOOSE]})(?:\\.(${M[O.XRANGEIDENTIFIERLOOSE]})(?:${M[O.PRERELEASELOOSE]})?${M[O.BUILD]}?)?)?`);oe("XRANGE",`^${M[O.GTLT]}\\s*${M[O.XRANGEPLAIN]}$`);oe("XRANGELOOSE",`^${M[O.GTLT]}\\s*${M[O.XRANGEPLAINLOOSE]}$`);oe("COERCEPLAIN",`(^|[^\\d])(\\d{1,${h0}})(?:\\.(\\d{1,${h0}}))?(?:\\.(\\d{1,${h0}}))?`);oe("COERCE",`${M[O.COERCEPLAIN]}(?:$|[^\\d])`);oe("COERCEFULL",M[O.COERCEPLAIN]+`(?:${M[O.PRERELEASE]})?(?:${M[O.BUILD]})?(?:$|[^\\d])`);oe("COERCERTL",M[O.COERCE],!0);oe("COERCERTLFULL",M[O.COERCEFULL],!0);oe("LONETILDE","(?:~>?)");oe("TILDETRIM",`(\\s*)${M[O.LONETILDE]}\\s+`,!0);Yn.tildeTrimReplace="$1~";oe("TILDE",`^${M[O.LONETILDE]}${M[O.XRANGEPLAIN]}$`);oe("TILDELOOSE",`^${M[O.LONETILDE]}${M[O.XRANGEPLAINLOOSE]}$`);oe("LONECARET","(?:\\^)");oe("CARETTRIM",`(\\s*)${M[O.LONECARET]}\\s+`,!0);Yn.caretTrimReplace="$1^";oe("CARET",`^${M[O.LONECARET]}${M[O.XRANGEPLAIN]}$`);oe("CARETLOOSE",`^${M[O.LONECARET]}${M[O.XRANGEPLAINLOOSE]}$`);oe("COMPARATORLOOSE",`^${M[O.GTLT]}\\s*(${M[O.LOOSEPLAIN]})$|^$`);oe("COMPARATOR",`^${M[O.GTLT]}\\s*(${M[O.FULLPLAIN]})$|^$`);oe("COMPARATORTRIM",`(\\s*)${M[O.GTLT]}\\s*(${M[O.LOOSEPLAIN]}|${M[O.XRANGEPLAIN]})`,!0);Yn.comparatorTrimReplace="$1$2$3";oe("HYPHENRANGE",`^\\s*(${M[O.XRANGEPLAIN]})\\s+-\\s+(${M[O.XRANGEPLAIN]})\\s*$`);oe("HYPHENRANGELOOSE",`^\\s*(${M[O.XRANGEPLAINLOOSE]})\\s+-\\s+(${M[O.XRANGEPLAINLOOSE]})\\s*$`);oe("STAR","(<|>)?=?\\s*\\*");oe("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");oe("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")});var Rg=f((vGe,BV)=>{"use strict";var ife=Object.freeze({loose:!0}),ofe=Object.freeze({}),afe=o(t=>t?typeof t!="object"?ife:t:ofe,"parseOptions");BV.exports=afe});var g0=f((kGe,QV)=>{"use strict";var wV=/^[0-9]+$/,bV=o((t,e)=>{if(typeof t=="number"&&typeof e=="number")return t===e?0:t<e?-1:1;let r=wV.test(t),s=wV.test(e);return r&&s&&(t=+t,e=+e),t===e?0:r&&!s?-1:s&&!r?1:t<e?-1:1},"compareIdentifiers"),cfe=o((t,e)=>bV(e,t),"rcompareIdentifiers");QV
Line truncated
|
||||
`).join(`
|
||||
`+i),t.push(n+"m+"+uE.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=vye()+e+" "+t[0]}o(Tye,"formatArgs");function vye(){return Wt.inspectOpts.hideDate?"":new Date().toISOString()+" "}o(vye,"getDate");function Pye(...t){return process.stderr.write(lE.format(...t)+`
|
||||
`)}o(Pye,"log");function kye(t){t?process.env.DEBUG=t:delete process.env.DEBUG}o(kye,"save");function Dye(){return process.env.DEBUG}o(Dye,"load");function _ye(t){t.inspectOpts={};let e=Object.keys(Wt.inspectOpts);for(let r=0;r<e.length;r++)t.inspectOpts[e[r]]=Wt.inspectOpts[e[r]]}o(_ye,"init");uE.exports=X0()(Wt);var{formatters:YY}=uE.exports;YY.o=function(t){return this.inspectOpts.colors=this.useColors,lE.inspect(t,this.inspectOpts).split(`
|
||||
`).map(e=>e.trim()).join(" ")};YY.O=function(t){return this.inspectOpts.colors=this.useColors,lE.inspect(t,this.inspectOpts)}});var AE=f((dVe,tN)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?tN.exports=qY():tN.exports=JY()});var KY=f(Mr=>{"use strict";var Lye=Mr&&Mr.__createBinding||(Object.create?(function(t,e,r,s){s===void 0&&(s=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,s,n)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),Mye=Mr&&Mr.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),WY=Mr&&Mr.__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)&&Lye(e,t,r);return Mye(e,t),e};Object.defineProperty(Mr,"__esModule",{value:!0});Mr.req=Mr.json=Mr.toBuffer=void 0;var Oye=WY(require("http")),Fye=WY(require("https"));async function jY(t){let e=0,r=[];for await(let s of t)e+=s.length,r.push(s);return Buffer.concat(r,e)}o(jY,"toBuffer");Mr.toBuffer=jY;async function Uye(t){let r=(await jY(t)).toString("utf8");try{return JSON.parse(r)}catch(s){let n=s;throw n.message+=` (input: ${r})`,n}}o(Uye,"json");Mr.json=Uye;function qye(t,e={}){let s=((typeof t=="string"?t:t.href).startsWith("https:")?Fye:Oye).request(t,e),n=new Promise((i,a)=>{s.once("response",i).once("error",a).end()});return s.then=n.then.bind(n),s}o(qye,"req");Mr.req=qye});var sN=f(us=>{"use strict";var ZY=us&&us.__createBinding||(Object.create?(function(t,e,r,s){s===void 0&&(s=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,s,n)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),Gye=us&&us.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),eJ=us&&us.__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)&&ZY(e,t,r);return Gye(e,t),e},Hye=us&&us.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&ZY(e,t,r)};Object.defineProperty(us,"__esModule",{value:!0});us.Agent=void 0;var zye=eJ(require("net")),XY=eJ(require("http")),$ye=require("https");Hye(KY(),us);var Kn=Symbol("AgentBaseInternalState"),rN=class extends XY.Agent{static{o(this,"Agent")}constructor(e){super(e),this[Kn]={}}isSecureEndpoint(e){if(e){if(typeof e.secureEndpoint=="boolean")return e.secureEndpoint;if(typeof e.protocol=="string")return e.protocol==="https:"}let{stack:r}=new Error;return typeof r!="string"?!1:r.split(`
|
||||
`).some(s=>s.indexOf("(https.js:")!==-1||s.indexOf("node:https:")!==-1)}incrementSockets(e){if(this.maxSockets===1/0&&this.maxTotalSockets===1/0)return null;this.sockets[e]||(this.sockets[e]=[]);let r=new zye.Socket({writable:!1});return this.sockets[e].push(r),this.totalSocketCount++,r}decrementSockets(e,r){if(!this.sockets[e]||r===null)return;let s=this.sockets[e],n=s.indexOf(r);n!==-1&&(s.splice(n,1),this.totalSocketCount--,s.length===0&&delete this.sockets[e])}getName(e){return(typeof e.secureEndpoint=="boolean"?e.secureEndpoint:this.isSecureEndpoint(e))?$ye.Agent.prototype.getName.call(this,e):super.getName(e)}createSocket(e,r,s){let n={...r,secureEndpoint:this.isSecureEndpoint(r)},i=this.getName(n),a=this.incrementSockets(i);Promise.resolve().then(()=>this.connect(e,n)).then(c=>{if(this.decrementSockets(i,a),c instanceof XY.Agent)return c.addRequest(e,n);this[Kn].currentSocket=c,super.createSocket(e,r,s)},c=>{this.decrementSockets(i,a),s(c)})}createConnection(){let e=this[Kn].currentSocket;if(this[Kn].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[Kn].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[Kn]&&(this[Kn].defaultPort=e)}get protocol(){return this[Kn].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[Kn]&&(this[Kn].protocol=e)}};us.Agent=rN});var tJ=f(cu=>{"use strict";var Vye=cu&&cu.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(cu,"__esModule",{value:!0});cu.parseProxyResponse=void 0;var Yye=Vye(AE()),dE=(0,Yye.default)("https-proxy-agent:parse-proxy-response");function Jye(t){return new Promise((e,r)=>{let s=0,n=[];function i(){let A=t.read();A?u(A):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(),dE("onend"),r(new Error("Proxy connection ended before receiving CONNECT response"))}o(c,"onend");function l(A){a(),dE("onerror %o",A),r(A)}o(l,"onerror");function u(A){n.push(A),s+=A.length;let d=Buffer.concat(n,s),p=d.indexOf(`\r
|
||||
`+i),t.push(n+"m+"+mE.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=Mye()+e+" "+t[0]}o(Lye,"formatArgs");function Mye(){return jt.inspectOpts.hideDate?"":new Date().toISOString()+" "}o(Mye,"getDate");function Oye(...t){return process.stderr.write(pE.format(...t)+`
|
||||
`)}o(Oye,"log");function Fye(t){t?process.env.DEBUG=t:delete process.env.DEBUG}o(Fye,"save");function Uye(){return process.env.DEBUG}o(Uye,"load");function qye(t){t.inspectOpts={};let e=Object.keys(jt.inspectOpts);for(let r=0;r<e.length;r++)t.inspectOpts[e[r]]=jt.inspectOpts[e[r]]}o(qye,"init");mE.exports=nN()(jt);var{formatters:sJ}=mE.exports;sJ.o=function(t){return this.inspectOpts.colors=this.useColors,pE.inspect(t,this.inspectOpts).split(`
|
||||
`).map(e=>e.trim()).join(" ")};sJ.O=function(t){return this.inspectOpts.colors=this.useColors,pE.inspect(t,this.inspectOpts)}});var hE=f((E$e,aN)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?aN.exports=KY():aN.exports=nJ()});var aJ=f(Mr=>{"use strict";var Gye=Mr&&Mr.__createBinding||(Object.create?(function(t,e,r,s){s===void 0&&(s=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,s,n)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),Hye=Mr&&Mr.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),iJ=Mr&&Mr.__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)&&Gye(e,t,r);return Hye(e,t),e};Object.defineProperty(Mr,"__esModule",{value:!0});Mr.req=Mr.json=Mr.toBuffer=void 0;var zye=iJ(require("http")),Vye=iJ(require("https"));async function oJ(t){let e=0,r=[];for await(let s of t)e+=s.length,r.push(s);return Buffer.concat(r,e)}o(oJ,"toBuffer");Mr.toBuffer=oJ;async function $ye(t){let r=(await oJ(t)).toString("utf8");try{return JSON.parse(r)}catch(s){let n=s;throw n.message+=` (input: ${r})`,n}}o($ye,"json");Mr.json=$ye;function Yye(t,e={}){let s=((typeof t=="string"?t:t.href).startsWith("https:")?Vye:zye).request(t,e),n=new Promise((i,a)=>{s.once("response",i).once("error",a).end()});return s.then=n.then.bind(n),s}o(Yye,"req");Mr.req=Yye});var lN=f(ds=>{"use strict";var lJ=ds&&ds.__createBinding||(Object.create?(function(t,e,r,s){s===void 0&&(s=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,s,n)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),Jye=ds&&ds.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),uJ=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)&&lJ(e,t,r);return Jye(e,t),e},Wye=ds&&ds.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&lJ(e,t,r)};Object.defineProperty(ds,"__esModule",{value:!0});ds.Agent=void 0;var jye=uJ(require("net")),cJ=uJ(require("http")),Kye=require("https");Wye(aJ(),ds);var Kn=Symbol("AgentBaseInternalState"),cN=class extends cJ.Agent{static{o(this,"Agent")}constructor(e){super(e),this[Kn]={}}isSecureEndpoint(e){if(e){if(typeof e.secureEndpoint=="boolean")return e.secureEndpoint;if(typeof e.protocol=="string")return e.protocol==="https:"}let{stack:r}=new Error;return typeof r!="string"?!1:r.split(`
|
||||
`).some(s=>s.indexOf("(https.js:")!==-1||s.indexOf("node:https:")!==-1)}incrementSockets(e){if(this.maxSockets===1/0&&this.maxTotalSockets===1/0)return null;this.sockets[e]||(this.sockets[e]=[]);let r=new jye.Socket({writable:!1});return this.sockets[e].push(r),this.totalSocketCount++,r}decrementSockets(e,r){if(!this.sockets[e]||r===null)return;let s=this.sockets[e],n=s.indexOf(r);n!==-1&&(s.splice(n,1),this.totalSocketCount--,s.length===0&&delete this.sockets[e])}getName(e){return(typeof e.secureEndpoint=="boolean"?e.secureEndpoint:this.isSecureEndpoint(e))?Kye.Agent.prototype.getName.call(this,e):super.getName(e)}createSocket(e,r,s){let n={...r,secureEndpoint:this.isSecureEndpoint(r)},i=this.getName(n),a=this.incrementSockets(i);Promise.resolve().then(()=>this.connect(e,n)).then(c=>{if(this.decrementSockets(i,a),c instanceof cJ.Agent)return c.addRequest(e,n);this[Kn].currentSocket=c,super.createSocket(e,r,s)},c=>{this.decrementSockets(i,a),s(c)})}createConnection(){let e=this[Kn].currentSocket;if(this[Kn].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[Kn].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[Kn]&&(this[Kn].defaultPort=e)}get protocol(){return this[Kn].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[Kn]&&(this[Kn].protocol=e)}};ds.Agent=cN});var AJ=f(Au=>{"use strict";var Xye=Au&&Au.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Au,"__esModule",{value:!0});Au.parseProxyResponse=void 0;var Zye=Xye(hE()),fE=(0,Zye.default)("https-proxy-agent:parse-proxy-response");function eCe(t){return new Promise((e,r)=>{let s=0,n=[];function i(){let A=t.read();A?u(A):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(),fE("onend"),r(new Error("Proxy connection ended before receiving CONNECT response"))}o(c,"onend");function l(A){a(),fE("onerror %o",A),r(A)}o(l,"onerror");function u(A){n.push(A),s+=A.length;let d=Buffer.concat(n,s),p=d.indexOf(`\r
|
||||
\r
|
||||
`);if(p===-1){dE("have not received end of HTTP headers yet..."),i();return}let m=d.slice(0,p).toString("ascii").split(`\r
|
||||
`),h=m.shift();if(!h)return t.destroy(),r(new Error("No header received from proxy CONNECT response"));let g=h.split(" "),C=+g[1],E=g.slice(2).join(" "),y={};for(let I of m){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(),D=I.slice(B+1).trimStart(),q=y[N];typeof q=="string"?y[N]=[q,D]:Array.isArray(q)?q.push(D):y[N]=D}dE("got proxy server response: %o %o",h,y),a(),e({connect:{statusCode:C,statusText:E,headers:y},buffered:d})}o(u,"ondata"),t.on("error",l),t.on("end",c),i()})}o(Jye,"parseProxyResponse");cu.parseProxyResponse=Jye});var oJ=f(Fs=>{"use strict";var Wye=Fs&&Fs.__createBinding||(Object.create?(function(t,e,r,s){s===void 0&&(s=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,s,n)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),jye=Fs&&Fs.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),nJ=Fs&&Fs.__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)&&Wye(e,t,r);return jye(e,t),e},iJ=Fs&&Fs.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Fs,"__esModule",{value:!0});Fs.HttpsProxyAgent=void 0;var np=nJ(require("net")),rJ=nJ(require("tls")),Kye=iJ(require("assert")),Xye=iJ(AE()),Zye=sN(),eCe=require("url"),tCe=tJ(),ip=(0,Xye.default)("https-proxy-agent"),pE=class extends Zye.Agent{static{o(this,"HttpsProxyAgent")}constructor(e,r){super(r),this.options={path:void 0},this.proxy=typeof e=="string"?new eCe.URL(e):e,this.proxyHeaders=r?.headers??{},ip("Creating new HttpsProxyAgent instance: %o",this.proxy.href);let s=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),n=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={ALPNProtocols:["http/1.1"],...r?sJ(r,"headers"):null,host:s,port:n}}async connect(e,r){let{proxy:s}=this;if(!r.host)throw new TypeError('No "host" provided');let n;if(s.protocol==="https:"){ip("Creating `tls.Socket`: %o",this.connectOpts);let p=this.connectOpts.servername||this.connectOpts.host;n=rJ.connect({...this.connectOpts,servername:p&&np.isIP(p)?void 0:p})}else ip("Creating `net.Socket`: %o",this.connectOpts),n=np.connect(this.connectOpts);let i=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders},a=np.isIPv6(r.host)?`[${r.host}]`:r.host,c=`CONNECT ${a}:${r.port} HTTP/1.1\r
|
||||
`);if(p===-1){fE("have not received end of HTTP headers yet..."),i();return}let m=d.slice(0,p).toString("ascii").split(`\r
|
||||
`),h=m.shift();if(!h)return t.destroy(),r(new Error("No header received from proxy CONNECT response"));let g=h.split(" "),C=+g[1],E=g.slice(2).join(" "),y={};for(let I of m){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(),D=I.slice(B+1).trimStart(),q=y[N];typeof q=="string"?y[N]=[q,D]:Array.isArray(q)?q.push(D):y[N]=D}fE("got proxy server response: %o %o",h,y),a(),e({connect:{statusCode:C,statusText:E,headers:y},buffered:d})}o(u,"ondata"),t.on("error",l),t.on("end",c),i()})}o(eCe,"parseProxyResponse");Au.parseProxyResponse=eCe});var fJ=f(Us=>{"use strict";var tCe=Us&&Us.__createBinding||(Object.create?(function(t,e,r,s){s===void 0&&(s=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,s,n)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),rCe=Us&&Us.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),mJ=Us&&Us.__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)&&tCe(e,t,r);return rCe(e,t),e},hJ=Us&&Us.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Us,"__esModule",{value:!0});Us.HttpsProxyAgent=void 0;var cp=mJ(require("net")),dJ=mJ(require("tls")),sCe=hJ(require("assert")),nCe=hJ(hE()),iCe=lN(),oCe=require("url"),aCe=AJ(),lp=(0,nCe.default)("https-proxy-agent"),gE=class extends iCe.Agent{static{o(this,"HttpsProxyAgent")}constructor(e,r){super(r),this.options={path:void 0},this.proxy=typeof e=="string"?new oCe.URL(e):e,this.proxyHeaders=r?.headers??{},lp("Creating new HttpsProxyAgent instance: %o",this.proxy.href);let s=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),n=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={ALPNProtocols:["http/1.1"],...r?pJ(r,"headers"):null,host:s,port:n}}async connect(e,r){let{proxy:s}=this;if(!r.host)throw new TypeError('No "host" provided');let n;if(s.protocol==="https:"){lp("Creating `tls.Socket`: %o",this.connectOpts);let p=this.connectOpts.servername||this.connectOpts.host;n=dJ.connect({...this.connectOpts,servername:p&&cp.isIP(p)?void 0:p})}else lp("Creating `net.Socket`: %o",this.connectOpts),n=cp.connect(this.connectOpts);let i=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders},a=cp.isIPv6(r.host)?`[${r.host}]`:r.host,c=`CONNECT ${a}:${r.port} HTTP/1.1\r
|
||||
`;if(s.username||s.password){let p=`${decodeURIComponent(s.username)}:${decodeURIComponent(s.password)}`;i["Proxy-Authorization"]=`Basic ${Buffer.from(p).toString("base64")}`}i.Host=`${a}:${r.port}`,i["Proxy-Connection"]||(i["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let p of Object.keys(i))c+=`${p}: ${i[p]}\r
|
||||
`;let l=(0,tCe.parseProxyResponse)(n);n.write(`${c}\r
|
||||
`);let{connect:u,buffered:A}=await l;if(e.emit("proxyConnect",u),this.emit("proxyConnect",u,e),u.statusCode===200){if(e.once("socket",rCe),r.secureEndpoint){ip("Upgrading socket connection to TLS");let p=r.servername||r.host;return rJ.connect({...sJ(r,"host","path","port"),socket:n,servername:np.isIP(p)?void 0:p})}return n}n.destroy();let d=new np.Socket({writable:!1});return d.readable=!0,e.once("socket",p=>{ip("Replaying proxy buffer for failed request"),(0,Kye.default)(p.listenerCount("data")>0),p.push(A),p.push(null)}),d}};pE.protocols=["http","https"];Fs.HttpsProxyAgent=pE;function rCe(t){t.resume()}o(rCe,"resume");function sJ(t,...e){let r={},s;for(s in t)e.includes(s)||(r[s]=t[s]);return r}o(sJ,"omit")});var lJ=f(Us=>{"use strict";var sCe=Us&&Us.__createBinding||(Object.create?(function(t,e,r,s){s===void 0&&(s=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,s,n)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),nCe=Us&&Us.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),cJ=Us&&Us.__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)&&sCe(e,t,r);return nCe(e,t),e},iCe=Us&&Us.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Us,"__esModule",{value:!0});Us.HttpProxyAgent=void 0;var oCe=cJ(require("net")),aCe=cJ(require("tls")),cCe=iCe(AE()),lCe=require("events"),uCe=sN(),aJ=require("url"),lu=(0,cCe.default)("http-proxy-agent"),mE=class extends uCe.Agent{static{o(this,"HttpProxyAgent")}constructor(e,r){super(r),this.proxy=typeof e=="string"?new aJ.URL(e):e,this.proxyHeaders=r?.headers??{},lu("Creating new HttpProxyAgent instance: %o",this.proxy.href);let s=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),n=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={...r?ACe(r,"headers"):null,host:s,port:n}}addRequest(e,r){e._header=null,this.setRequestProps(e,r),super.addRequest(e,r)}setRequestProps(e,r){let{proxy:s}=this,n=r.secureEndpoint?"https:":"http:",i=e.getHeader("host")||"localhost",a=`${n}//${i}`,c=new aJ.URL(e.path,a);r.port!==80&&(c.port=String(r.port)),e.path=String(c);let l=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders};if(s.username||s.password){let u=`${decodeURIComponent(s.username)}:${decodeURIComponent(s.password)}`;l["Proxy-Authorization"]=`Basic ${Buffer.from(u).toString("base64")}`}l["Proxy-Connection"]||(l["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let u of Object.keys(l)){let A=l[u];A&&e.setHeader(u,A)}}async connect(e,r){e._header=null,e.path.includes("://")||this.setRequestProps(e,r);let s,n;lu("Regenerating stored HTTP header string for request"),e._implicitHeader(),e.outputData&&e.outputData.length>0&&(lu("Patching connection write() output buffer with updated header"),s=e.outputData[0].data,n=s.indexOf(`\r
|
||||
`;let l=(0,aCe.parseProxyResponse)(n);n.write(`${c}\r
|
||||
`);let{connect:u,buffered:A}=await l;if(e.emit("proxyConnect",u),this.emit("proxyConnect",u,e),u.statusCode===200){if(e.once("socket",cCe),r.secureEndpoint){lp("Upgrading socket connection to TLS");let p=r.servername||r.host;return dJ.connect({...pJ(r,"host","path","port"),socket:n,servername:cp.isIP(p)?void 0:p})}return n}n.destroy();let d=new cp.Socket({writable:!1});return d.readable=!0,e.once("socket",p=>{lp("Replaying proxy buffer for failed request"),(0,sCe.default)(p.listenerCount("data")>0),p.push(A),p.push(null)}),d}};gE.protocols=["http","https"];Us.HttpsProxyAgent=gE;function cCe(t){t.resume()}o(cCe,"resume");function pJ(t,...e){let r={},s;for(s in t)e.includes(s)||(r[s]=t[s]);return r}o(pJ,"omit")});var yJ=f(qs=>{"use strict";var lCe=qs&&qs.__createBinding||(Object.create?(function(t,e,r,s){s===void 0&&(s=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,s,n)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),uCe=qs&&qs.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),EJ=qs&&qs.__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)&&lCe(e,t,r);return uCe(e,t),e},ACe=qs&&qs.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(qs,"__esModule",{value:!0});qs.HttpProxyAgent=void 0;var dCe=EJ(require("net")),pCe=EJ(require("tls")),mCe=ACe(hE()),hCe=require("events"),fCe=lN(),gJ=require("url"),du=(0,mCe.default)("http-proxy-agent"),EE=class extends fCe.Agent{static{o(this,"HttpProxyAgent")}constructor(e,r){super(r),this.proxy=typeof e=="string"?new gJ.URL(e):e,this.proxyHeaders=r?.headers??{},du("Creating new HttpProxyAgent instance: %o",this.proxy.href);let s=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),n=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={...r?gCe(r,"headers"):null,host:s,port:n}}addRequest(e,r){e._header=null,this.setRequestProps(e,r),super.addRequest(e,r)}setRequestProps(e,r){let{proxy:s}=this,n=r.secureEndpoint?"https:":"http:",i=e.getHeader("host")||"localhost",a=`${n}//${i}`,c=new gJ.URL(e.path,a);r.port!==80&&(c.port=String(r.port)),e.path=String(c);let l=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders};if(s.username||s.password){let u=`${decodeURIComponent(s.username)}:${decodeURIComponent(s.password)}`;l["Proxy-Authorization"]=`Basic ${Buffer.from(u).toString("base64")}`}l["Proxy-Connection"]||(l["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let u of Object.keys(l)){let A=l[u];A&&e.setHeader(u,A)}}async connect(e,r){e._header=null,e.path.includes("://")||this.setRequestProps(e,r);let s,n;du("Regenerating stored HTTP header string for request"),e._implicitHeader(),e.outputData&&e.outputData.length>0&&(du("Patching connection write() output buffer with updated header"),s=e.outputData[0].data,n=s.indexOf(`\r
|
||||
\r
|
||||
`)+4,e.outputData[0].data=e._header+s.substring(n),lu("Output buffer: %o",e.outputData[0].data));let i;return this.proxy.protocol==="https:"?(lu("Creating `tls.Socket`: %o",this.connectOpts),i=aCe.connect(this.connectOpts)):(lu("Creating `net.Socket`: %o",this.connectOpts),i=oCe.connect(this.connectOpts)),await(0,lCe.once)(i,"connect"),i}};mE.protocols=["http","https"];Us.HttpProxyAgent=mE;function ACe(t,...e){let r={},s;for(s in t)e.includes(s)||(r[s]=t[s]);return r}o(ACe,"omit")});var vJ=f(SE=>{"use strict";Object.defineProperty(SE,"__esModule",{value:!0});SE.state=void 0;SE.state={instrumenterImplementation:void 0}});var JJ=f(kE=>{"use strict";Object.defineProperty(kE,"__esModule",{value:!0});kE.state=void 0;kE.state={operationRequestMap:new WeakMap}});var xW=f(Su=>{"use strict";Object.defineProperty(Su,"__esModule",{value:!0});var TQe=require("os"),vQe=require("util");function PQe(t){return t&&typeof t=="object"&&"default"in t?t:{default:t}}o(PQe,"_interopDefaultLegacy");var kQe=PQe(vQe);function DQe(t,...e){process.stderr.write(`${kQe.default.format(t,...e)}${TQe.EOL}`)}o(DQe,"log");var fW=typeof process<"u"&&process.env&&process.env.DEBUG||void 0,EW,kv=[],Dv=[],Zy=[];fW&&_v(fW);var yW=Object.assign(t=>CW(t),{enable:_v,enabled:Lv,disable:_Qe,log:DQe});function _v(t){EW=t,kv=[],Dv=[];let e=/\*/g,r=t.split(",").map(s=>s.trim().replace(e,".*?"));for(let s of r)s.startsWith("-")?Dv.push(new RegExp(`^${s.substr(1)}$`)):kv.push(new RegExp(`^${s}$`));for(let s of Zy)s.enabled=Lv(s.namespace)}o(_v,"enable");function Lv(t){if(t.endsWith("*"))return!0;for(let e of Dv)if(e.test(t))return!1;for(let e of kv)if(e.test(t))return!0;return!1}o(Lv,"enabled");function _Qe(){let t=EW||"";return _v(""),t}o(_Qe,"disable");function CW(t){let e=Object.assign(r,{enabled:Lv(t),destroy:LQe,log:yW.log,namespace:t,extend:MQe});function r(...s){e.enabled&&(s.length>0&&(s[0]=`${t} ${s[0]}`),e.log(...s))}return o(r,"debug"),Zy.push(e),e}o(CW,"createDebugger");function LQe(){let t=Zy.indexOf(this);return t>=0?(Zy.splice(t,1),!0):!1}o(LQe,"destroy");function MQe(t){let e=CW(`${this.namespace}:${t}`);return e.log=this.log,e}o(MQe,"extend");var Vp=yW,IW=new Set,Ky=typeof process<"u"&&process.env&&process.env.AZURE_LOG_LEVEL||void 0,eC,tC=Vp("azure");tC.log=(...t)=>{Vp.log(...t)};var Mv=["verbose","info","warning","error"];Ky&&(QW(Ky)?BW(Ky):console.error(`AZURE_LOG_LEVEL set to unknown log level '${Ky}'; logging is not enabled. Acceptable values: ${Mv.join(", ")}.`));function BW(t){if(t&&!QW(t))throw new Error(`Unknown log level '${t}'. Acceptable values: ${Mv.join(",")}`);eC=t;let e=[];for(let r of IW)bW(r)&&e.push(r.namespace);Vp.enable(e.join(","))}o(BW,"setLogLevel");function OQe(){return eC}o(OQe,"getLogLevel");var gW={verbose:400,info:300,warning:200,error:100};function FQe(t){let e=tC.extend(t);return wW(tC,e),{error:Xy(e,"error"),warning:Xy(e,"warning"),info:Xy(e,"info"),verbose:Xy(e,"verbose")}}o(FQe,"createClientLogger");function wW(t,e){e.log=(...r)=>{t.log(...r)}}o(wW,"patchLogMethod");function Xy(t,e){let r=Object.assign(t.extend(e),{level:e});if(wW(t,r),bW(r)){let s=Vp.disable();Vp.enable(s+","+r.namespace)}return IW.add(r),r}o(Xy,"createLogger");function bW(t){return!!(eC&&gW[t.level]<=gW[eC])}o(bW,"shouldEnable");function QW(t){return Mv.includes(t)}o(QW,"isAzureLogLevel");Su.AzureLogger=tC;Su.createClientLogger=FQe;Su.getLogLevel=OQe;Su.setLogLevel=BW});var Uv=f(Jp=>{"use strict";Object.defineProperty(Jp,"__esModule",{value:!0});var Ru=new WeakMap,rC=new WeakMap,Yp=class t{static{o(this,"AbortSignal")}constructor(){this.onabort=null,Ru.set(this,[]),rC.set(this,!1)}get aborted(){if(!rC.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");return rC.get(this)}static get none(){return new t}addEventListener(e,r){if(!Ru.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");Ru.get(this).push(r)}removeEventListener(e,r){if(!Ru.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");let s=Ru.get(this),n=s.indexOf(r);n>-1&&s.splice(n,1)}dispatchEvent(e){throw new Error("This is a stub dispatchEvent implementation that should not be used. It only exists for type-checking purposes.")}};function NW(t){if(t.aborted)return;t.onabort&&t.onabort.call(t);let e=Ru.get(t);e&&e.slice().forEach(r=>{r.call(t,{type:"abort"})}),rC.set(t,!0)}o(NW,"abortSignal");var Ov=class extends Error{static{o(this,"AbortError")}constructor(e){super(e),this.name="AbortError"}},Fv=class{static{o(this,"AbortController")}constructor(e){if(this._signal=new Yp,!!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(){NW(this._signal)}static timeout(e){let r=new Yp,s=setTimeout(NW,e,r);return typeof s.unref=="function"&&s.unref(),r}};Jp.AbortController=Fv;Jp.AbortError=Ov;Jp.AbortSignal=Yp});var PW=f(ot=>{"use strict";Object.defineProperty(ot,"__esModule",{value:!0});var UQe
Line truncated
|
||||
`)+4,e.outputData[0].data=e._header+s.substring(n),du("Output buffer: %o",e.outputData[0].data));let i;return this.proxy.protocol==="https:"?(du("Creating `tls.Socket`: %o",this.connectOpts),i=pCe.connect(this.connectOpts)):(du("Creating `net.Socket`: %o",this.connectOpts),i=dCe.connect(this.connectOpts)),await(0,hCe.once)(i,"connect"),i}};EE.protocols=["http","https"];qs.HttpProxyAgent=EE;function gCe(t,...e){let r={},s;for(s in t)e.includes(s)||(r[s]=t[s]);return r}o(gCe,"omit")});var qJ=f(PE=>{"use strict";Object.defineProperty(PE,"__esModule",{value:!0});PE.state=void 0;PE.state={instrumenterImplementation:void 0}});var n3=f(ME=>{"use strict";Object.defineProperty(ME,"__esModule",{value:!0});ME.state=void 0;ME.state={operationRequestMap:new WeakMap}});var LW=f(vu=>{"use strict";Object.defineProperty(vu,"__esModule",{value:!0});var LQe=require("os"),MQe=require("util");function OQe(t){return t&&typeof t=="object"&&"default"in t?t:{default:t}}o(OQe,"_interopDefaultLegacy");var FQe=OQe(MQe);function UQe(t,...e){process.stderr.write(`${FQe.default.format(t,...e)}${LQe.EOL}`)}o(UQe,"log");var xW=typeof process<"u"&&process.env&&process.env.DEBUG||void 0,SW,Fv=[],Uv=[],sC=[];xW&&qv(xW);var RW=Object.assign(t=>TW(t),{enable:qv,enabled:Gv,disable:qQe,log:UQe});function qv(t){SW=t,Fv=[],Uv=[];let e=/\*/g,r=t.split(",").map(s=>s.trim().replace(e,".*?"));for(let s of r)s.startsWith("-")?Uv.push(new RegExp(`^${s.substr(1)}$`)):Fv.push(new RegExp(`^${s}$`));for(let s of sC)s.enabled=Gv(s.namespace)}o(qv,"enable");function Gv(t){if(t.endsWith("*"))return!0;for(let e of Uv)if(e.test(t))return!1;for(let e of Fv)if(e.test(t))return!0;return!1}o(Gv,"enabled");function qQe(){let t=SW||"";return qv(""),t}o(qQe,"disable");function TW(t){let e=Object.assign(r,{enabled:Gv(t),destroy:GQe,log:RW.log,namespace:t,extend:HQe});function r(...s){e.enabled&&(s.length>0&&(s[0]=`${t} ${s[0]}`),e.log(...s))}return o(r,"debug"),sC.push(e),e}o(TW,"createDebugger");function GQe(){let t=sC.indexOf(this);return t>=0?(sC.splice(t,1),!0):!1}o(GQe,"destroy");function HQe(t){let e=TW(`${this.namespace}:${t}`);return e.log=this.log,e}o(HQe,"extend");var jp=RW,vW=new Set,tC=typeof process<"u"&&process.env&&process.env.AZURE_LOG_LEVEL||void 0,nC,iC=jp("azure");iC.log=(...t)=>{jp.log(...t)};var Hv=["verbose","info","warning","error"];tC&&(_W(tC)?PW(tC):console.error(`AZURE_LOG_LEVEL set to unknown log level '${tC}'; logging is not enabled. Acceptable values: ${Hv.join(", ")}.`));function PW(t){if(t&&!_W(t))throw new Error(`Unknown log level '${t}'. Acceptable values: ${Hv.join(",")}`);nC=t;let e=[];for(let r of vW)DW(r)&&e.push(r.namespace);jp.enable(e.join(","))}o(PW,"setLogLevel");function zQe(){return nC}o(zQe,"getLogLevel");var NW={verbose:400,info:300,warning:200,error:100};function VQe(t){let e=iC.extend(t);return kW(iC,e),{error:rC(e,"error"),warning:rC(e,"warning"),info:rC(e,"info"),verbose:rC(e,"verbose")}}o(VQe,"createClientLogger");function kW(t,e){e.log=(...r)=>{t.log(...r)}}o(kW,"patchLogMethod");function rC(t,e){let r=Object.assign(t.extend(e),{level:e});if(kW(t,r),DW(r)){let s=jp.disable();jp.enable(s+","+r.namespace)}return vW.add(r),r}o(rC,"createLogger");function DW(t){return!!(nC&&NW[t.level]<=NW[nC])}o(DW,"shouldEnable");function _W(t){return Hv.includes(t)}o(_W,"isAzureLogLevel");vu.AzureLogger=iC;vu.createClientLogger=VQe;vu.getLogLevel=zQe;vu.setLogLevel=PW});var $v=f(Xp=>{"use strict";Object.defineProperty(Xp,"__esModule",{value:!0});var Pu=new WeakMap,oC=new WeakMap,Kp=class t{static{o(this,"AbortSignal")}constructor(){this.onabort=null,Pu.set(this,[]),oC.set(this,!1)}get aborted(){if(!oC.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");return oC.get(this)}static get none(){return new t}addEventListener(e,r){if(!Pu.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");Pu.get(this).push(r)}removeEventListener(e,r){if(!Pu.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");let s=Pu.get(this),n=s.indexOf(r);n>-1&&s.splice(n,1)}dispatchEvent(e){throw new Error("This is a stub dispatchEvent implementation that should not be used. It only exists for type-checking purposes.")}};function MW(t){if(t.aborted)return;t.onabort&&t.onabort.call(t);let e=Pu.get(t);e&&e.slice().forEach(r=>{r.call(t,{type:"abort"})}),oC.set(t,!0)}o(MW,"abortSignal");var zv=class extends Error{static{o(this,"AbortError")}constructor(e){super(e),this.name="AbortError"}},Vv=class{static{o(this,"AbortController")}constructor(e){if(this._signal=new Kp,!!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(){MW(this._signal)}static timeout(e){let r=new Kp,s=setTimeout(MW,e,r);return typeof s.unref=="function"&&s.unref(),r}};Xp.AbortController=Vv;Xp.AbortError=zv;Xp.AbortSignal=Kp});var GW=f(at=>{"use strict";Object.defineProperty(at,"__esModule",{value:!0});var $Qe
Line truncated
|
||||
Polling from: ${r.config.operationLocation}
|
||||
Operation status: ${A}
|
||||
Polling status: ${LW.includes(A)?"Stopped":"Running"}`),A==="succeeded"){let d=a(u,r);if(d!==void 0)return{response:await e(d).catch(DW({state:r,stateProxy:s,isOperationError:c})),status:A}}return{response:u,status:A}}o(hxe,"pollOperationHelper");async function UW(t){let{poll:e,state:r,stateProxy:s,options:n,getOperationStatus:i,getResourceLocation:a,getOperationLocation:c,isOperationError:l,withOperationLocation:u,getPollingInterval:A,processResult:d,getError:p,updateState:m,setDelay:h,isDone:g,setErrorAsResult:C}=t,{operationLocation:E}=r.config;if(E!==void 0){let{response:y,status:I}=await hxe({poll:e,getOperationStatus:i,state:r,stateProxy:s,operationLocation:E,getResourceLocation:a,isOperationError:l,options:n});if(OW({status:I,response:y,state:r,stateProxy:s,isDone:g,processResult:d,getError:p,setErrorAsResult:C}),!LW.includes(I)){let B=A?.(y);B&&h(B);let N=c?.(y,r);if(N!==void 0){let D=E!==N;r.config.operationLocation=N,u?.(N,D)}else u?.(E,!1)}m?.(r,y)}}o(UW,"pollOperation");function qW(t){let{azureAsyncOperation:e,operationLocation:r}=t;return r??e}o(qW,"getOperationLocationPollingUrl");function GW(t){return t.headers.location}o(GW,"getLocationHeader");function HW(t){return t.headers["operation-location"]}o(HW,"getOperationLocationHeader");function zW(t){return t.headers["azure-asyncoperation"]}o(zW,"getAzureAsyncOperationHeader");function fxe(t){var e;let{location:r,requestMethod:s,requestPath:n,resourceLocationConfig:i}=t;switch(s){case"PUT":return n;case"DELETE":return;case"PATCH":return(e=a())!==null&&e!==void 0?e:n;default:return a()}function a(){switch(i){case"azure-async-operation":return;case"original-uri":return n;default:return r}}o(a,"getDefault")}o(fxe,"findResourceLocation");function $W(t){let{rawResponse:e,requestMethod:r,requestPath:s,resourceLocationConfig:n}=t,i=HW(e),a=zW(e),c=qW({operationLocation:i,azureAsyncOperation:a}),l=GW(e),u=r?.toLocaleUpperCase();return c!==void 0?{mode:"OperationLocation",operationLocation:c,resourceLocation:fxe({requestMethod:u,location:l,requestPath:s,resourceLocationConfig:n})}:l!==void 0?{mode:"ResourceLocation",operationLocation:l}:u==="PUT"&&s?{mode:"Body",operationLocation:s}:void 0}o($W,"inferLroMode");function VW(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 Kv(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 Bc.verbose(`LRO: unrecognized operation status: ${e}`),e}}o(VW,"transformStatus");function gxe(t){var e;let{status:r}=(e=t.body)!==null&&e!==void 0?e:{};return VW({status:r,statusCode:t.statusCode})}o(gxe,"getStatus");function Exe(t){var e,r;let{properties:s,provisioningState:n}=(e=t.body)!==null&&e!==void 0?e:{},i=(r=s?.provisioningState)!==null&&r!==void 0?r:n;return VW({status:i,statusCode:t.statusCode})}o(Exe,"getProvisioningState");function Kv(t){return t===202?"running":t<300?"succeeded":"failed"}o(Kv,"toOperationStatus");function YW({rawResponse:t}){let e=t.headers["retry-after"];if(e!==void 0){let r=parseInt(e);return isNaN(r)?yxe(new Date(e)):r*1e3}}o(YW,"parseRetryAfter");function JW(t){let e=t.flatResponse.error;if(!e){Bc.warning("The long-running operation failed but there is no error property in the response's body");return}if(!e.code||!e.message){Bc.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(JW,"getErrorFromResponse");function yxe(t){let e=Math.floor(new Date().getTime()),r=t.getTime();if(e<r)return r-e}o(yxe,"calculatePollingIntervalFromDate");function WW(t){let{response:e,state:r,operationLocation:s}=t;function n(){var a;switch((a=r.config.metadata)===null||a===void 0?void 0:a.mode){case void 0:return Kv(e.rawResponse.statusCode);case"Body":return Xv(e,r);default:return"running"}}o(n,"helper");let i=n();return i==="running"&&s===void 0?"succeeded":i}o(WW,"getStatusFromInitialResponse");async function Cxe(t){let{stateProxy:e,resourceLocationConfig:r,processResult:s,lro:n,setErrorAsResult:i}=t;return FW({init:o(async()=>{let a=await n.sendInitialRequest(),c=$W({rawResponse:a.rawResponse,requestPath:n.requestPath,requestMethod:n.requestMethod,resourceLocationConfig:r});return Object.assign({response:a,operationLocation:c?.operationLocation,resourceLocation:c?.resourceLocation},c?.mode?{metadata:{mode:c.mode}}:{})},"init"),stateProxy:e,processResult:s?({flatResponse:a},c)=>s(a,c):({flatResponse:a})=>a,getOperationStatus:WW,setErrorAsResult:i})}o(Cxe,"initHttpOperation");function jW({rawResponse:t},e){var r;switch((r=e.config.metadata)===null||r==Line truncated
|
||||
`:case"\r":case" ":case" ":continue;default:throw Error("invalid base64 string.")}switch(n){case 0:a=i,n=1;break;case 1:r[s++]=a<<2|(i&48)>>4,a=i,n=2;break;case 2:r[s++]=(a&15)<<4|(i&60)>>2,a=i,n=3;break;case 3:r[s++]=(a&3)<<6|i,n=0;break}}if(n==1)throw Error("invalid base64 string.");return r.subarray(0,s)}o(s0e,"base64decode");_u.base64decode=s0e;function n0e(t){let e="",r=0,s,n=0;for(let i=0;i<t.length;i++)switch(s=t[i],r){case 0:e+=mo[s>>2],n=(s&3)<<4,r=1;break;case 1:e+=mo[n|s>>4],n=(s&15)<<2,r=2;break;case 2:e+=mo[n|s>>6],e+=mo[s&63],r=0;break}return r&&(e+=mo[n],e+="=",r==1&&(e+="=")),e}o(n0e,"base64encode");_u.base64encode=n0e});var x8=f(IC=>{"use strict";Object.defineProperty(IC,"__esModule",{value:!0});IC.utf8read=void 0;var cP=o(t=>String.fromCharCode.apply(String,t),"fromCharCodes");function i0e(t){if(t.length<1)return"";let e=0,r=[],s=[],n=0,i,a=t.length;for(;e<a;)i=t[e++],i<128?s[n++]=i:i>191&&i<224?s[n++]=(i&31)<<6|t[e++]&63:i>239&&i<365?(i=((i&7)<<18|(t[e++]&63)<<12|(t[e++]&63)<<6|t[e++]&63)-65536,s[n++]=55296+(i>>10),s[n++]=56320+(i&1023)):s[n++]=(i&15)<<12|(t[e++]&63)<<6|t[e++]&63,n>8191&&(r.push(cP(s)),n=0);return r.length?(n&&r.push(cP(s.slice(0,n))),r.join("")):cP(s.slice(0,n))}o(i0e,"utf8read");IC.utf8read=i0e});var rm=f(wi=>{"use strict";Object.defineProperty(wi,"__esModule",{value:!0});wi.WireType=wi.mergeBinaryOptions=wi.UnknownFieldHandler=void 0;var o0e;(function(t){t.symbol=Symbol.for("protobuf-ts/unknown"),t.onRead=(r,s,n,i,a)=>{(e(s)?s[t.symbol]:s[t.symbol]=[]).push({no:n,wireType:i,data:a})},t.onWrite=(r,s,n)=>{for(let{no:i,wireType:a,data:c}of t.list(s))n.tag(i,a).raw(c)},t.list=(r,s)=>{if(e(r)){let n=r[t.symbol];return s?n.filter(i=>i.no==s):n}return[]},t.last=(r,s)=>t.list(r,s).slice(-1)[0];let e=o(r=>r&&Array.isArray(r[t.symbol]),"is")})(o0e=wi.UnknownFieldHandler||(wi.UnknownFieldHandler={}));function a0e(t,e){return Object.assign(Object.assign({},t),e)}o(a0e,"mergeBinaryOptions");wi.mergeBinaryOptions=a0e;var c0e;(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"})(c0e=wi.WireType||(wi.WireType={}))});var wC=f(zr=>{"use strict";Object.defineProperty(zr,"__esModule",{value:!0});zr.varint32read=zr.varint32write=zr.int64toString=zr.int64fromString=zr.varint64write=zr.varint64read=void 0;function l0e(){let t=0,e=0;for(let s=0;s<28;s+=7){let n=this.buf[this.pos++];if(t|=(n&127)<<s,(n&128)==0)return this.assertBounds(),[t,e]}let r=this.buf[this.pos++];if(t|=(r&15)<<28,e=(r&112)>>4,(r&128)==0)return this.assertBounds(),[t,e];for(let s=3;s<=31;s+=7){let n=this.buf[this.pos++];if(e|=(n&127)<<s,(n&128)==0)return this.assertBounds(),[t,e]}throw new Error("invalid varint")}o(l0e,"varint64read");zr.varint64read=l0e;function u0e(t,e,r){for(let i=0;i<28;i=i+7){let a=t>>>i,c=!(!(a>>>7)&&e==0),l=(c?a|128:a)&255;if(r.push(l),!c)return}let s=t>>>28&15|(e&7)<<4,n=e>>3!=0;if(r.push((n?s|128:s)&255),!!n){for(let i=3;i<31;i=i+7){let a=e>>>i,c=!!(a>>>7),l=(c?a|128:a)&255;if(r.push(l),!c)return}r.push(e>>>31&1)}}o(u0e,"varint64write");zr.varint64write=u0e;var BC=65536*65536;function A0e(t){let e=t[0]=="-";e&&(t=t.slice(1));let r=1e6,s=0,n=0;function i(a,c){let l=Number(t.slice(a,c));n*=r,s=s*r+l,s>=BC&&(n=n+(s/BC|0),s=s%BC)}return o(i,"add1e6digit"),i(-24,-18),i(-18,-12),i(-12,-6),i(-6),[e,s,n]}o(A0e,"int64fromString");zr.int64fromString=A0e;function d0e(t,e){if(e>>>0<=2097151)return""+(BC*e+(t>>>0));let r=t&16777215,s=(t>>>24|e<<8)>>>0&16777215,n=e>>16&65535,i=r+s*6777216+n*6710656,a=s+n*8147497,c=n*2,l=1e7;i>=l&&(a+=Math.floor(i/l),i%=l),a>=l&&(c+=Math.floor(a/l),a%=l);function u(A,d){let p=A?String(A):"";return d?"0000000".slice(p.length)+p:p}return o(u,"decimalFrom1e7"),u(c,0)+u(a,c)+u(i,1)}o(d0e,"int64toString");zr.int64toString=d0e;function p0e(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(p0e,"varint32write");zr.varint32write=p0e;function m0e(){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(m0e,"varint32read");zr.varint32read=m0e});var ua=f(la=>{"use strict";Object.defineProperty(la,"__esModule",{value:!0});la.PbLong=la.PbULong=la.detectBi=void 0;var sm=wC(),De;function N8(){let t=new DataView(new ArrayBuffer(8));De=globalThis.BigInt!==void 0&&typeof t.getBigInt64=="function"&&typeof t.getBigUint64=="function"&&typeof t.setBigInt64=="function"&&typeof t.setBigUint64=="function"?{MIN:BigInt("-9223372036854775808"),MAX:BigInt("9223372036854775807"
Line truncated
|
||||
`)}};jC.RpcError=_P});var MP=f(XC=>{"use strict";Object.defineProperty(XC,"__esModule",{value:!0});XC.mergeRpcOptions=void 0;var i5=Ct();function LNe(t,e){if(!e)return t;let r={};KC(t,r),KC(e,r);for(let s of Object.keys(e)){let n=e[s];switch(s){case"jsonOptions":r.jsonOptions=i5.mergeJsonOptions(t.jsonOptions,r.jsonOptions);break;case"binaryOptions":r.binaryOptions=i5.mergeBinaryOptions(t.binaryOptions,r.binaryOptions);break;case"meta":r.meta={},KC(t.meta,r.meta),KC(e.meta,r.meta);break;case"interceptors":r.interceptors=t.interceptors?t.interceptors.concat(n):n.concat();break}}return r}o(LNe,"mergeRpcOptions");XC.mergeRpcOptions=LNe;function KC(t,e){if(!t)return;let r=e;for(let[s,n]of Object.entries(t))n instanceof Date?r[s]=new Date(n.getTime()):Array.isArray(n)?r[s]=n.concat():r[s]=n}o(KC,"copy")});var FP=f(Nc=>{"use strict";Object.defineProperty(Nc,"__esModule",{value:!0});Nc.Deferred=Nc.DeferredState=void 0;var xi;(function(t){t[t.PENDING=0]="PENDING",t[t.REJECTED=1]="REJECTED",t[t.RESOLVED=2]="RESOLVED"})(xi=Nc.DeferredState||(Nc.DeferredState={}));var OP=class{static{o(this,"Deferred")}constructor(e=!0){this._state=xi.PENDING,this._promise=new Promise((r,s)=>{this._resolve=r,this._reject=s}),e&&this._promise.catch(r=>{})}get state(){return this._state}get promise(){return this._promise}resolve(e){if(this.state!==xi.PENDING)throw new Error(`cannot resolve ${xi[this.state].toLowerCase()}`);this._resolve(e),this._state=xi.RESOLVED}reject(e){if(this.state!==xi.PENDING)throw new Error(`cannot reject ${xi[this.state].toLowerCase()}`);this._reject(e),this._state=xi.REJECTED}resolvePending(e){this._state===xi.PENDING&&this.resolve(e)}rejectPending(e){this._state===xi.PENDING&&this.reject(e)}};Nc.Deferred=OP});var qP=f(ZC=>{"use strict";Object.defineProperty(ZC,"__esModule",{value:!0});ZC.RpcOutputStreamController=void 0;var o5=FP(),Sc=Ct(),UP=class{static{o(this,"RpcOutputStreamController")}constructor(){this._lis={nxt:[],msg:[],err:[],cmp:[]},this._closed=!1,this._itState={q:[]}}onNext(e){return this.addLis(e,this._lis.nxt)}onMessage(e){return this.addLis(e,this._lis.msg)}onError(e){return this.addLis(e,this._lis.err)}onComplete(e){return this.addLis(e,this._lis.cmp)}addLis(e,r){return r.push(e),()=>{let s=r.indexOf(e);s>=0&&r.splice(s,1)}}clearLis(){for(let e of Object.values(this._lis))e.splice(0,e.length)}get closed(){return this._closed!==!1}notifyNext(e,r,s){Sc.assert((e?1:0)+(r?1:0)+(s?1:0)<=1,"only one emission at a time"),e&&this.notifyMessage(e),r&&this.notifyError(r),s&&this.notifyComplete()}notifyMessage(e){Sc.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){Sc.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(){Sc.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;Sc.assert(e,"bad state"),Sc.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 o5.Deferred,e.p.promise)},"next")}}pushIt(e){let r=this._itState;if(r.p){let s=r.p;Sc.assert(s.state==o5.DeferredState.PENDING,"iterator contract broken"),"value"in e?s.resolve(e):s.reject(e),delete r.p}else r.q.push(e)}};ZC.RpcOutputStreamController=UP});var HP=f(Gu=>{"use strict";var MNe=Gu&&Gu.__awaiter||function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(a){a(i)})}return o(n,"adopt"),new(r||(r=Promise))(function(i,a){function c(A){try{u(s.next(A))}catch(d){a(d)}}o(c,"fulfilled");function l(A){try{u(s.throw(A))}catch(d){a(d)}}o(l,"rejected");function u(A){A.done?i(A.value):n(A.value).then(c,l)}o(u,"step"),u((s=s.apply(t,e||[])).next())})};Object.defineProperty(Gu,"__esModule",{value:!0});Gu.UnaryCall=void 0;var GP=class{static{o(this,"UnaryCall")}constructor(e,r,s,n,i,a,c){this.method=e,this.requestHeaders=r,this.request=s,this.headers=n,this.response=i,this.status=a,this.trailers=c}then(e,r){return this.promiseFinished().then(s=>e?Promise.resolve(e(s)):s,s=>r?Promise.resolve(r(s)):Promise.reject(s))}promiseFinished(){return MNe(this,void 0,void 0,function*(){let[e,r,s,n]=yield Promise.all([this.headers,this.response,this.status,this.trailers]);return{method:this.method,requestHeaders:this.requestHeaders,request:this.request,headers:e,response:r,status:s,trailers:n}})}};Gu.UnaryCall=GP});var $P=f(Hu=>{"use strict";var ONe=Hu&&Hu.__awaiter||function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(a){a(i)})}return o(n,"adopt"),new(r||(r=Promise))(function(i,a){function c(A){try{u(s.next(A))}catch(d){a(d)}}o(c,"fulfilled");function l(A){t
Line truncated
|
||||
Polling status: ${$W.includes(A)?"Stopped":"Running"}`),A==="succeeded"){let d=a(u,r);if(d!==void 0)return{response:await e(d).catch(zW({state:r,stateProxy:s,isOperationError:c})),status:A}}return{response:u,status:A}}o(Ixe,"pollOperationHelper");async function jW(t){let{poll:e,state:r,stateProxy:s,options:n,getOperationStatus:i,getResourceLocation:a,getOperationLocation:c,isOperationError:l,withOperationLocation:u,getPollingInterval:A,processResult:d,getError:p,updateState:m,setDelay:h,isDone:g,setErrorAsResult:C}=t,{operationLocation:E}=r.config;if(E!==void 0){let{response:y,status:I}=await Ixe({poll:e,getOperationStatus:i,state:r,stateProxy:s,operationLocation:E,getResourceLocation:a,isOperationError:l,options:n});if(JW({status:I,response:y,state:r,stateProxy:s,isDone:g,processResult:d,getError:p,setErrorAsResult:C}),!$W.includes(I)){let B=A?.(y);B&&h(B);let N=c?.(y,r);if(N!==void 0){let D=E!==N;r.config.operationLocation=N,u?.(N,D)}else u?.(E,!1)}m?.(r,y)}}o(jW,"pollOperation");function KW(t){let{azureAsyncOperation:e,operationLocation:r}=t;return r??e}o(KW,"getOperationLocationPollingUrl");function XW(t){return t.headers.location}o(XW,"getLocationHeader");function ZW(t){return t.headers["operation-location"]}o(ZW,"getOperationLocationHeader");function e8(t){return t.headers["azure-asyncoperation"]}o(e8,"getAzureAsyncOperationHeader");function Bxe(t){var e;let{location:r,requestMethod:s,requestPath:n,resourceLocationConfig:i}=t;switch(s){case"PUT":return n;case"DELETE":return;case"PATCH":return(e=a())!==null&&e!==void 0?e:n;default:return a()}function a(){switch(i){case"azure-async-operation":return;case"original-uri":return n;default:return r}}o(a,"getDefault")}o(Bxe,"findResourceLocation");function t8(t){let{rawResponse:e,requestMethod:r,requestPath:s,resourceLocationConfig:n}=t,i=ZW(e),a=e8(e),c=KW({operationLocation:i,azureAsyncOperation:a}),l=XW(e),u=r?.toLocaleUpperCase();return c!==void 0?{mode:"OperationLocation",operationLocation:c,resourceLocation:Bxe({requestMethod:u,location:l,requestPath:s,resourceLocationConfig:n})}:l!==void 0?{mode:"ResourceLocation",operationLocation:l}:u==="PUT"&&s?{mode:"Body",operationLocation:s}:void 0}o(t8,"inferLroMode");function r8(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 sP(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 Qc.verbose(`LRO: unrecognized operation status: ${e}`),e}}o(r8,"transformStatus");function wxe(t){var e;let{status:r}=(e=t.body)!==null&&e!==void 0?e:{};return r8({status:r,statusCode:t.statusCode})}o(wxe,"getStatus");function bxe(t){var e,r;let{properties:s,provisioningState:n}=(e=t.body)!==null&&e!==void 0?e:{},i=(r=s?.provisioningState)!==null&&r!==void 0?r:n;return r8({status:i,statusCode:t.statusCode})}o(bxe,"getProvisioningState");function sP(t){return t===202?"running":t<300?"succeeded":"failed"}o(sP,"toOperationStatus");function s8({rawResponse:t}){let e=t.headers["retry-after"];if(e!==void 0){let r=parseInt(e);return isNaN(r)?Qxe(new Date(e)):r*1e3}}o(s8,"parseRetryAfter");function n8(t){let e=t.flatResponse.error;if(!e){Qc.warning("The long-running operation failed but there is no error property in the response's body");return}if(!e.code||!e.message){Qc.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(n8,"getErrorFromResponse");function Qxe(t){let e=Math.floor(new Date().getTime()),r=t.getTime();if(e<r)return r-e}o(Qxe,"calculatePollingIntervalFromDate");function i8(t){let{response:e,state:r,operationLocation:s}=t;function n(){var a;switch((a=r.config.metadata)===null||a===void 0?void 0:a.mode){case void 0:return sP(e.rawResponse.statusCode);case"Body":return nP(e,r);default:return"running"}}o(n,"helper");let i=n();return i==="running"&&s===void 0?"succeeded":i}o(i8,"getStatusFromInitialResponse");async function xxe(t){let{stateProxy:e,resourceLocationConfig:r,processResult:s,lro:n,setErrorAsResult:i}=t;return WW({init:o(async()=>{let a=await n.sendInitialRequest(),c=t8({rawResponse:a.rawResponse,requestPath:n.requestPath,requestMethod:n.requestMethod,resourceLocationConfig:r});return Object.assign({response:a,operationLocation:c?.operationLocation,resourceLocation:c?.resourceLocation},c?.mode?{metadata:{mode:c.mode}}:{})},"init"),stateProxy:e,processResult:s?({flatResponse:a},c)=>s(a,c):({flatResponse:a})=>a,getOperationStatus:i8,setErrorAsResult:i})}o(xxe,"initHttpOperation");function o8({rawResponse:t},e){var r;switch((r=e.config.metadata)===null||r==Line truncated
|
||||
`:case"\r":case" ":case" ":continue;default:throw Error("invalid base64 string.")}switch(n){case 0:a=i,n=1;break;case 1:r[s++]=a<<2|(i&48)>>4,a=i,n=2;break;case 2:r[s++]=(a&15)<<4|(i&60)>>2,a=i,n=3;break;case 3:r[s++]=(a&3)<<6|i,n=0;break}}if(n==1)throw Error("invalid base64 string.");return r.subarray(0,s)}o(l0e,"base64decode");Ou.base64decode=l0e;function u0e(t){let e="",r=0,s,n=0;for(let i=0;i<t.length;i++)switch(s=t[i],r){case 0:e+=ho[s>>2],n=(s&3)<<4,r=1;break;case 1:e+=ho[n|s>>4],n=(s&15)<<2,r=2;break;case 2:e+=ho[n|s>>6],e+=ho[s&63],r=0;break}return r&&(e+=ho[n],e+="=",r==1&&(e+="=")),e}o(u0e,"base64encode");Ou.base64encode=u0e});var L8=f(QC=>{"use strict";Object.defineProperty(QC,"__esModule",{value:!0});QC.utf8read=void 0;var mP=o(t=>String.fromCharCode.apply(String,t),"fromCharCodes");function A0e(t){if(t.length<1)return"";let e=0,r=[],s=[],n=0,i,a=t.length;for(;e<a;)i=t[e++],i<128?s[n++]=i:i>191&&i<224?s[n++]=(i&31)<<6|t[e++]&63:i>239&&i<365?(i=((i&7)<<18|(t[e++]&63)<<12|(t[e++]&63)<<6|t[e++]&63)-65536,s[n++]=55296+(i>>10),s[n++]=56320+(i&1023)):s[n++]=(i&15)<<12|(t[e++]&63)<<6|t[e++]&63,n>8191&&(r.push(mP(s)),n=0);return r.length?(n&&r.push(mP(s.slice(0,n))),r.join("")):mP(s.slice(0,n))}o(A0e,"utf8read");QC.utf8read=A0e});var om=f(wi=>{"use strict";Object.defineProperty(wi,"__esModule",{value:!0});wi.WireType=wi.mergeBinaryOptions=wi.UnknownFieldHandler=void 0;var d0e;(function(t){t.symbol=Symbol.for("protobuf-ts/unknown"),t.onRead=(r,s,n,i,a)=>{(e(s)?s[t.symbol]:s[t.symbol]=[]).push({no:n,wireType:i,data:a})},t.onWrite=(r,s,n)=>{for(let{no:i,wireType:a,data:c}of t.list(s))n.tag(i,a).raw(c)},t.list=(r,s)=>{if(e(r)){let n=r[t.symbol];return s?n.filter(i=>i.no==s):n}return[]},t.last=(r,s)=>t.list(r,s).slice(-1)[0];let e=o(r=>r&&Array.isArray(r[t.symbol]),"is")})(d0e=wi.UnknownFieldHandler||(wi.UnknownFieldHandler={}));function p0e(t,e){return Object.assign(Object.assign({},t),e)}o(p0e,"mergeBinaryOptions");wi.mergeBinaryOptions=p0e;var m0e;(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"})(m0e=wi.WireType||(wi.WireType={}))});var NC=f(zr=>{"use strict";Object.defineProperty(zr,"__esModule",{value:!0});zr.varint32read=zr.varint32write=zr.int64toString=zr.int64fromString=zr.varint64write=zr.varint64read=void 0;function h0e(){let t=0,e=0;for(let s=0;s<28;s+=7){let n=this.buf[this.pos++];if(t|=(n&127)<<s,(n&128)==0)return this.assertBounds(),[t,e]}let r=this.buf[this.pos++];if(t|=(r&15)<<28,e=(r&112)>>4,(r&128)==0)return this.assertBounds(),[t,e];for(let s=3;s<=31;s+=7){let n=this.buf[this.pos++];if(e|=(n&127)<<s,(n&128)==0)return this.assertBounds(),[t,e]}throw new Error("invalid varint")}o(h0e,"varint64read");zr.varint64read=h0e;function f0e(t,e,r){for(let i=0;i<28;i=i+7){let a=t>>>i,c=!(!(a>>>7)&&e==0),l=(c?a|128:a)&255;if(r.push(l),!c)return}let s=t>>>28&15|(e&7)<<4,n=e>>3!=0;if(r.push((n?s|128:s)&255),!!n){for(let i=3;i<31;i=i+7){let a=e>>>i,c=!!(a>>>7),l=(c?a|128:a)&255;if(r.push(l),!c)return}r.push(e>>>31&1)}}o(f0e,"varint64write");zr.varint64write=f0e;var xC=65536*65536;function g0e(t){let e=t[0]=="-";e&&(t=t.slice(1));let r=1e6,s=0,n=0;function i(a,c){let l=Number(t.slice(a,c));n*=r,s=s*r+l,s>=xC&&(n=n+(s/xC|0),s=s%xC)}return o(i,"add1e6digit"),i(-24,-18),i(-18,-12),i(-12,-6),i(-6),[e,s,n]}o(g0e,"int64fromString");zr.int64fromString=g0e;function E0e(t,e){if(e>>>0<=2097151)return""+(xC*e+(t>>>0));let r=t&16777215,s=(t>>>24|e<<8)>>>0&16777215,n=e>>16&65535,i=r+s*6777216+n*6710656,a=s+n*8147497,c=n*2,l=1e7;i>=l&&(a+=Math.floor(i/l),i%=l),a>=l&&(c+=Math.floor(a/l),a%=l);function u(A,d){let p=A?String(A):"";return d?"0000000".slice(p.length)+p:p}return o(u,"decimalFrom1e7"),u(c,0)+u(a,c)+u(i,1)}o(E0e,"int64toString");zr.int64toString=E0e;function y0e(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(y0e,"varint32write");zr.varint32write=y0e;function C0e(){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(C0e,"varint32read");zr.varint32read=C0e});var ua=f(la=>{"use strict";Object.defineProperty(la,"__esModule",{value:!0});la.PbLong=la.PbULong=la.detectBi=void 0;var am=NC(),De;function M8(){let t=new DataView(new ArrayBuffer(8));De=globalThis.BigInt!==void 0&&typeof t.getBigInt64=="function"&&typeof t.getBigUint64=="function"&&typeof t.setBigInt64=="function"&&typeof t.setBigUint64=="function"?{MIN:BigInt("-9223372036854775808"),MAX:BigInt("9223372036854775807"
Line truncated
|
||||
`)}};eI.RpcError=qP});var HP=f(rI=>{"use strict";Object.defineProperty(rI,"__esModule",{value:!0});rI.mergeRpcOptions=void 0;var h5=It();function GNe(t,e){if(!e)return t;let r={};tI(t,r),tI(e,r);for(let s of Object.keys(e)){let n=e[s];switch(s){case"jsonOptions":r.jsonOptions=h5.mergeJsonOptions(t.jsonOptions,r.jsonOptions);break;case"binaryOptions":r.binaryOptions=h5.mergeBinaryOptions(t.binaryOptions,r.binaryOptions);break;case"meta":r.meta={},tI(t.meta,r.meta),tI(e.meta,r.meta);break;case"interceptors":r.interceptors=t.interceptors?t.interceptors.concat(n):n.concat();break}}return r}o(GNe,"mergeRpcOptions");rI.mergeRpcOptions=GNe;function tI(t,e){if(!t)return;let r=e;for(let[s,n]of Object.entries(t))n instanceof Date?r[s]=new Date(n.getTime()):Array.isArray(n)?r[s]=n.concat():r[s]=n}o(tI,"copy")});var VP=f(Tc=>{"use strict";Object.defineProperty(Tc,"__esModule",{value:!0});Tc.Deferred=Tc.DeferredState=void 0;var xi;(function(t){t[t.PENDING=0]="PENDING",t[t.REJECTED=1]="REJECTED",t[t.RESOLVED=2]="RESOLVED"})(xi=Tc.DeferredState||(Tc.DeferredState={}));var zP=class{static{o(this,"Deferred")}constructor(e=!0){this._state=xi.PENDING,this._promise=new Promise((r,s)=>{this._resolve=r,this._reject=s}),e&&this._promise.catch(r=>{})}get state(){return this._state}get promise(){return this._promise}resolve(e){if(this.state!==xi.PENDING)throw new Error(`cannot resolve ${xi[this.state].toLowerCase()}`);this._resolve(e),this._state=xi.RESOLVED}reject(e){if(this.state!==xi.PENDING)throw new Error(`cannot reject ${xi[this.state].toLowerCase()}`);this._reject(e),this._state=xi.REJECTED}resolvePending(e){this._state===xi.PENDING&&this.resolve(e)}rejectPending(e){this._state===xi.PENDING&&this.reject(e)}};Tc.Deferred=zP});var YP=f(sI=>{"use strict";Object.defineProperty(sI,"__esModule",{value:!0});sI.RpcOutputStreamController=void 0;var f5=VP(),vc=It(),$P=class{static{o(this,"RpcOutputStreamController")}constructor(){this._lis={nxt:[],msg:[],err:[],cmp:[]},this._closed=!1,this._itState={q:[]}}onNext(e){return this.addLis(e,this._lis.nxt)}onMessage(e){return this.addLis(e,this._lis.msg)}onError(e){return this.addLis(e,this._lis.err)}onComplete(e){return this.addLis(e,this._lis.cmp)}addLis(e,r){return r.push(e),()=>{let s=r.indexOf(e);s>=0&&r.splice(s,1)}}clearLis(){for(let e of Object.values(this._lis))e.splice(0,e.length)}get closed(){return this._closed!==!1}notifyNext(e,r,s){vc.assert((e?1:0)+(r?1:0)+(s?1:0)<=1,"only one emission at a time"),e&&this.notifyMessage(e),r&&this.notifyError(r),s&&this.notifyComplete()}notifyMessage(e){vc.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){vc.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(){vc.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;vc.assert(e,"bad state"),vc.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 f5.Deferred,e.p.promise)},"next")}}pushIt(e){let r=this._itState;if(r.p){let s=r.p;vc.assert(s.state==f5.DeferredState.PENDING,"iterator contract broken"),"value"in e?s.resolve(e):s.reject(e),delete r.p}else r.q.push(e)}};sI.RpcOutputStreamController=$P});var WP=f(Vu=>{"use strict";var HNe=Vu&&Vu.__awaiter||function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(a){a(i)})}return o(n,"adopt"),new(r||(r=Promise))(function(i,a){function c(A){try{u(s.next(A))}catch(d){a(d)}}o(c,"fulfilled");function l(A){try{u(s.throw(A))}catch(d){a(d)}}o(l,"rejected");function u(A){A.done?i(A.value):n(A.value).then(c,l)}o(u,"step"),u((s=s.apply(t,e||[])).next())})};Object.defineProperty(Vu,"__esModule",{value:!0});Vu.UnaryCall=void 0;var JP=class{static{o(this,"UnaryCall")}constructor(e,r,s,n,i,a,c){this.method=e,this.requestHeaders=r,this.request=s,this.headers=n,this.response=i,this.status=a,this.trailers=c}then(e,r){return this.promiseFinished().then(s=>e?Promise.resolve(e(s)):s,s=>r?Promise.resolve(r(s)):Promise.reject(s))}promiseFinished(){return HNe(this,void 0,void 0,function*(){let[e,r,s,n]=yield Promise.all([this.headers,this.response,this.status,this.trailers]);return{method:this.method,requestHeaders:this.requestHeaders,request:this.request,headers:e,response:r,status:s,trailers:n}})}};Vu.UnaryCall=JP});var KP=f($u=>{"use strict";var zNe=$u&&$u.__awaiter||function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(a){a(i)})}return o(n,"adopt"),new(r||(r=Promise))(function(i,a){function c(A){try{u(s.next(A))}catch(d){a(d)}}o(c,"fulfilled");function l(A){t
Line truncated
|
||||
You can add a runtime option to disable the check or this warning:
|
||||
See https://handlebarsjs.com/api-reference/runtime-options.html#options-to-control-prototype-access for details`))}o(fRe,"logUnexpecedPropertyAccessOnce");function gRe(){Object.keys(yI).forEach(function(t){delete yI[t]})}o(gRe,"resetLoggedProperties")});var II=f(Ri=>{"use strict";Ri.__esModule=!0;Ri.HandlebarsEnvironment=Ok;function oj(t){return t&&t.__esModule?t:{default:t}}o(oj,"_interopRequireDefault");var Dc=br(),ERe=Cs(),Lk=oj(ERe),yRe=Pk(),CRe=rj(),IRe=Dk(),CI=oj(IRe),BRe=_k(),wRe="4.7.9";Ri.VERSION=wRe;var bRe=8;Ri.COMPILER_REVISION=bRe;var QRe=7;Ri.LAST_COMPATIBLE_COMPILER_REVISION=QRe;var xRe={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"};Ri.REVISION_CHANGES=xRe;var Mk="[object Object]";function Ok(t,e,r){this.helpers=t||{},this.partials=e||{},this.decorators=r||{},yRe.registerDefaultHelpers(this),CRe.registerDefaultDecorators(this)}o(Ok,"HandlebarsEnvironment");Ok.prototype={constructor:Ok,logger:CI.default,log:CI.default.log,registerHelper:o(function(e,r){if(Dc.toString.call(e)===Mk){if(r)throw new Lk.default("Arg not supported with multiple helpers");Dc.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(Dc.toString.call(e)===Mk)Dc.extend(this.partials,e);else{if(typeof r>"u")throw new Lk.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(Dc.toString.call(e)===Mk){if(r)throw new Lk.default("Arg not supported with multiple decorators");Dc.extend(this.decorators,e)}else this.decorators[e]=r},"registerDecorator"),unregisterDecorator:o(function(e){delete this.decorators[e]},"unregisterDecorator"),resetLoggedPropertyAccesses:o(function(){BRe.resetLoggedProperties()},"resetLoggedPropertyAccesses")};var NRe=CI.default.log;Ri.log=NRe;Ri.createFrame=Dc.createFrame;Ri.logger=CI.default});var cj=f((BI,aj)=>{"use strict";BI.__esModule=!0;function Fk(t){this.string=t}o(Fk,"SafeString");Fk.prototype.toString=Fk.prototype.toHTML=function(){return""+this.string};BI.default=Fk;aj.exports=BI.default});var lj=f(Uk=>{"use strict";Uk.__esModule=!0;Uk.wrapHelper=SRe;function SRe(t,e){if(typeof t!="function")return t;var r=o(function(){var n=arguments[arguments.length-1];return arguments[arguments.length-1]=e(n),t.apply(this,arguments)},"wrapper");return r}o(SRe,"wrapHelper")});var hj=f(pa=>{"use strict";pa.__esModule=!0;pa.checkRevision=DRe;pa.template=_Re;pa.wrapProgram=wI;pa.resolvePartial=LRe;pa.invokePartial=MRe;pa.noop=pj;function RRe(t){return t&&t.__esModule?t:{default:t}}o(RRe,"_interopRequireDefault");function TRe(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(TRe,"_interopRequireWildcard");var vRe=br(),Xu=TRe(vRe),PRe=Cs(),fo=RRe(PRe),go=II(),uj=Pk(),kRe=lj(),Aj=_k();function DRe(t){var e=t&&t[0]||1,r=go.COMPILER_REVISION;if(!(e>=go.LAST_COMPATIBLE_COMPILER_REVISION&&e<=go.COMPILER_REVISION))if(e<go.LAST_COMPATIBLE_COMPILER_REVISION){var s=go.REVISION_CHANGES[r],n=go.REVISION_CHANGES[e];throw new fo.default("Template was precompiled with an older version of Handlebars than the current runtime. Please update your precompiler to a newer version ("+s+") or downgrade your runtime to an older version ("+n+").")}else throw new fo.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(DRe,"checkRevision");function _Re(t,e){if(!e)throw new fo.default("No environment passed to template");if(!t||!t.main)throw new fo.default("Unknown template object: "+typeof t);t.main.decorator=t.main_d,e.VM.checkRevision(t.compiler);var r=t.compiler&&t.compiler[0]===7;function s(a,c,l){l.hash&&(c=Xu.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 A=u.split(`
|
||||
See https://handlebarsjs.com/api-reference/runtime-options.html#options-to-control-prototype-access for details`))}o(BRe,"logUnexpecedPropertyAccessOnce");function wRe(){Object.keys(wI).forEach(function(t){delete wI[t]})}o(wRe,"resetLoggedProperties")});var QI=f(Ri=>{"use strict";Ri.__esModule=!0;Ri.HandlebarsEnvironment=zk;function fj(t){return t&&t.__esModule?t:{default:t}}o(fj,"_interopRequireDefault");var Mc=br(),bRe=Bs(),Gk=fj(bRe),QRe=Ok(),xRe=dj(),NRe=Uk(),bI=fj(NRe),SRe=qk(),RRe="4.7.9";Ri.VERSION=RRe;var TRe=8;Ri.COMPILER_REVISION=TRe;var vRe=7;Ri.LAST_COMPATIBLE_COMPILER_REVISION=vRe;var PRe={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"};Ri.REVISION_CHANGES=PRe;var Hk="[object Object]";function zk(t,e,r){this.helpers=t||{},this.partials=e||{},this.decorators=r||{},QRe.registerDefaultHelpers(this),xRe.registerDefaultDecorators(this)}o(zk,"HandlebarsEnvironment");zk.prototype={constructor:zk,logger:bI.default,log:bI.default.log,registerHelper:o(function(e,r){if(Mc.toString.call(e)===Hk){if(r)throw new Gk.default("Arg not supported with multiple helpers");Mc.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(Mc.toString.call(e)===Hk)Mc.extend(this.partials,e);else{if(typeof r>"u")throw new Gk.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(Mc.toString.call(e)===Hk){if(r)throw new Gk.default("Arg not supported with multiple decorators");Mc.extend(this.decorators,e)}else this.decorators[e]=r},"registerDecorator"),unregisterDecorator:o(function(e){delete this.decorators[e]},"unregisterDecorator"),resetLoggedPropertyAccesses:o(function(){SRe.resetLoggedProperties()},"resetLoggedPropertyAccesses")};var kRe=bI.default.log;Ri.log=kRe;Ri.createFrame=Mc.createFrame;Ri.logger=bI.default});var Ej=f((xI,gj)=>{"use strict";xI.__esModule=!0;function Vk(t){this.string=t}o(Vk,"SafeString");Vk.prototype.toString=Vk.prototype.toHTML=function(){return""+this.string};xI.default=Vk;gj.exports=xI.default});var yj=f($k=>{"use strict";$k.__esModule=!0;$k.wrapHelper=DRe;function DRe(t,e){if(typeof t!="function")return t;var r=o(function(){var n=arguments[arguments.length-1];return arguments[arguments.length-1]=e(n),t.apply(this,arguments)},"wrapper");return r}o(DRe,"wrapHelper")});var Qj=f(pa=>{"use strict";pa.__esModule=!0;pa.checkRevision=URe;pa.template=qRe;pa.wrapProgram=NI;pa.resolvePartial=GRe;pa.invokePartial=HRe;pa.noop=wj;function _Re(t){return t&&t.__esModule?t:{default:t}}o(_Re,"_interopRequireDefault");function LRe(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(LRe,"_interopRequireWildcard");var MRe=br(),tA=LRe(MRe),ORe=Bs(),go=_Re(ORe),Eo=QI(),Cj=Ok(),FRe=yj(),Ij=qk();function URe(t){var e=t&&t[0]||1,r=Eo.COMPILER_REVISION;if(!(e>=Eo.LAST_COMPATIBLE_COMPILER_REVISION&&e<=Eo.COMPILER_REVISION))if(e<Eo.LAST_COMPATIBLE_COMPILER_REVISION){var s=Eo.REVISION_CHANGES[r],n=Eo.REVISION_CHANGES[e];throw new go.default("Template was precompiled with an older version of Handlebars than the current runtime. Please update your precompiler to a newer version ("+s+") or downgrade your runtime to an older version ("+n+").")}else throw new go.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(URe,"checkRevision");function qRe(t,e){if(!e)throw new go.default("No environment passed to template");if(!t||!t.main)throw new go.default("Unknown template object: "+typeof t);t.main.decorator=t.main_d,e.VM.checkRevision(t.compiler);var r=t.compiler&&t.compiler[0]===7;function s(a,c,l){l.hash&&(c=tA.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 A=u.split(`
|
||||
`),d=0,p=A.length;d<p&&!(!A[d]&&d+1===p);d++)A[d]=l.indent+A[d];u=A.join(`
|
||||
`)}return u}else throw new fo.default("The partial "+l.name+" could not be compiled when running in runtime-only mode")}o(s,"invokePartialWrapper");var n={strict:o(function(c,l,u){if(!c||!(l in c))throw new fo.default('"'+l+'" not defined in '+c,{loc:u});return n.lookupProperty(c,l)},"strict"),lookupProperty:o(function(c,l){var u=c[l];if(u==null||Object.prototype.hasOwnProperty.call(c,l)||Aj.resultIsAllowed(u,n.protoAccessControl,l))return u},"lookupProperty"),lookup:o(function(c,l){for(var u=c.length,A=0;A<u;A++){var d=c[A]&&n.lookupProperty(c[A],l);if(d!=null)return d}},"lookup"),lambda:o(function(c,l){return typeof c=="function"?c.call(l):c},"lambda"),escapeExpression:Xu.escapeExpression,invokePartial:s,fn:o(function(c){var l=t[c];return l.decorator=t[c+"_d"],l},"fn"),programs:[],program:o(function(c,l,u,A,d){var p=this.programs[c],m=this.fn(c);return l||d||A||u?p=wI(this,c,m,l,u,A,d):p||(p=this.programs[c]=wI(this,c,m)),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=Xu.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=ORe(a,l));var u=void 0,A=t.useBlockParams?[]:void 0;t.useDepths&&(c.depths?u=a!=c.depths[0]?[a].concat(c.depths):c.depths:u=[a]);function d(p){return""+t.main(n,p,n.helpers,n.partials,l,A,u)}return o(d,"main"),d=mj(t.main,d,n,c.depths||[],l,A),d(a,c)}return o(i,"ret"),i.isTop=!0,i._setup=function(a){if(a.partial)n.protoAccessControl=a.protoAccessControl,n.helpers=a.helpers,n.partials=a.partials,n.decorators=a.decorators,n.hooks=a.hooks;else{var c={};dj(c,e.helpers,n),dj(c,a.helpers,n),n.helpers=c,t.usePartial&&(n.partials=n.mergeIfNeeded(a.partials,e.partials)),(t.usePartial||t.useDecorators)&&(n.decorators=Xu.extend({},e.decorators,a.decorators)),n.hooks={},n.protoAccessControl=Aj.createProtoAccessControl(a);var l=a.allowCallsToHelperMissing||r;uj.moveHelperToHooks(n,"helperMissing",l),uj.moveHelperToHooks(n,"blockHelperMissing",l)}},i._child=function(a,c,l,u){if(t.useBlockParams&&!l)throw new fo.default("must pass block params");if(t.useDepths&&!u)throw new fo.default("must pass parent depths");return wI(n,a,t[a],c,0,l,u)},i}o(_Re,"template");function wI(t,e,r,s,n,i,a){function c(l){var u=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],A=a;return a&&l!=a[0]&&!(l===t.nullContext&&a[0]===null)&&(A=[l].concat(a)),r(t,l,t.helpers,t.partials,u.data||s,i&&[u.blockParams].concat(i),A)}return o(c,"prog"),c=mj(r,c,t,a,s,i),c.program=e,c.depth=a?a.length:0,c.blockParams=n||0,c}o(wI,"wrapProgram");function LRe(t,e,r){return t?!t.call&&!r.name&&(r.name=t,t=bI(r.partials,t)):r.name==="@partial-block"?t=bI(r.data,"partial-block"):t=bI(r.partials,r.name),t}o(LRe,"resolvePartial");function MRe(t,e,r){var s=bI(r.data,"partial-block");r.partial=!0,r.ids&&(r.data.contextPath=r.ids[0]||r.data.contextPath);var n=void 0;if(r.fn&&r.fn!==pj&&(function(){r.data=go.createFrame(r.data);var i=r.fn;n=r.data["partial-block"]=o(function(c){var l=arguments.length<=1||arguments[1]===void 0?{}:arguments[1];return l.data=go.createFrame(l.data),l.data["partial-block"]=s,i(c,l)},"partialBlockWrapper"),i.partials&&(r.partials=Xu.extend({},r.partials,i.partials))})(),t===void 0&&n&&(t=n),t===void 0)throw new fo.default("The partial "+r.name+" could not be found");if(t instanceof Function)return t(e,r)}o(MRe,"invokePartial");function pj(){return""}o(pj,"noop");function bI(t,e){if(t&&Object.prototype.hasOwnProperty.call(t,e))return t[e]}o(bI,"lookupOwnProperty");function ORe(t,e){return(!e||!("root"in e))&&(e=e?go.createFrame(e):{},e.root=t),e}o(ORe,"initData");function mj(t,e,r,s,n,i){if(t.decorator){var a={};e=t.decorator(e,a,r,s&&s[0],n,i,s),Xu.extend(e,a)}return e}o(mj,"executeDecorators");function dj(t,e,r){e&&Object.keys(e).forEach(function(s){var n=e[s];t[s]=FRe(n,r)})}o(dj,"addHelpers");function FRe(t,e){var r=e.lookupProperty;return kRe.wrapHelper(t,function(s){return s.lookupProperty=r,s})}o(FRe,"passLookupPropertyOption")});var qk=f((QI,fj)=>{"use strict";QI.__esModule=!0;QI.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}};fj.exports=QI.default});var Ij=f((xI,Cj)=>{"use strict";xI.__esModule=!0;function Hk(t){return t&&t.__esModule?t:{default:t}}o(Hk,"_interopRequireDefault");function zk(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(zk,"_interopRequireWildcard");var URe=II(),gj=zk(URe),qRe=cj(),GRe=Hk(qRe),HRe=Cs(),zRe=Hk(HRe),$Re=br(),Gk=zk($Re),VRe=hj(),Ej=zk(VRe),YRe=qk()
Line truncated
|
||||
`)}return u}else throw new go.default("The partial "+l.name+" could not be compiled when running in runtime-only mode")}o(s,"invokePartialWrapper");var n={strict:o(function(c,l,u){if(!c||!(l in c))throw new go.default('"'+l+'" not defined in '+c,{loc:u});return n.lookupProperty(c,l)},"strict"),lookupProperty:o(function(c,l){var u=c[l];if(u==null||Object.prototype.hasOwnProperty.call(c,l)||Ij.resultIsAllowed(u,n.protoAccessControl,l))return u},"lookupProperty"),lookup:o(function(c,l){for(var u=c.length,A=0;A<u;A++){var d=c[A]&&n.lookupProperty(c[A],l);if(d!=null)return d}},"lookup"),lambda:o(function(c,l){return typeof c=="function"?c.call(l):c},"lambda"),escapeExpression:tA.escapeExpression,invokePartial:s,fn:o(function(c){var l=t[c];return l.decorator=t[c+"_d"],l},"fn"),programs:[],program:o(function(c,l,u,A,d){var p=this.programs[c],m=this.fn(c);return l||d||A||u?p=NI(this,c,m,l,u,A,d):p||(p=this.programs[c]=NI(this,c,m)),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=tA.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=zRe(a,l));var u=void 0,A=t.useBlockParams?[]:void 0;t.useDepths&&(c.depths?u=a!=c.depths[0]?[a].concat(c.depths):c.depths:u=[a]);function d(p){return""+t.main(n,p,n.helpers,n.partials,l,A,u)}return o(d,"main"),d=bj(t.main,d,n,c.depths||[],l,A),d(a,c)}return o(i,"ret"),i.isTop=!0,i._setup=function(a){if(a.partial)n.protoAccessControl=a.protoAccessControl,n.helpers=a.helpers,n.partials=a.partials,n.decorators=a.decorators,n.hooks=a.hooks;else{var c={};Bj(c,e.helpers,n),Bj(c,a.helpers,n),n.helpers=c,t.usePartial&&(n.partials=n.mergeIfNeeded(a.partials,e.partials)),(t.usePartial||t.useDecorators)&&(n.decorators=tA.extend({},e.decorators,a.decorators)),n.hooks={},n.protoAccessControl=Ij.createProtoAccessControl(a);var l=a.allowCallsToHelperMissing||r;Cj.moveHelperToHooks(n,"helperMissing",l),Cj.moveHelperToHooks(n,"blockHelperMissing",l)}},i._child=function(a,c,l,u){if(t.useBlockParams&&!l)throw new go.default("must pass block params");if(t.useDepths&&!u)throw new go.default("must pass parent depths");return NI(n,a,t[a],c,0,l,u)},i}o(qRe,"template");function NI(t,e,r,s,n,i,a){function c(l){var u=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],A=a;return a&&l!=a[0]&&!(l===t.nullContext&&a[0]===null)&&(A=[l].concat(a)),r(t,l,t.helpers,t.partials,u.data||s,i&&[u.blockParams].concat(i),A)}return o(c,"prog"),c=bj(r,c,t,a,s,i),c.program=e,c.depth=a?a.length:0,c.blockParams=n||0,c}o(NI,"wrapProgram");function GRe(t,e,r){return t?!t.call&&!r.name&&(r.name=t,t=SI(r.partials,t)):r.name==="@partial-block"?t=SI(r.data,"partial-block"):t=SI(r.partials,r.name),t}o(GRe,"resolvePartial");function HRe(t,e,r){var s=SI(r.data,"partial-block");r.partial=!0,r.ids&&(r.data.contextPath=r.ids[0]||r.data.contextPath);var n=void 0;if(r.fn&&r.fn!==wj&&(function(){r.data=Eo.createFrame(r.data);var i=r.fn;n=r.data["partial-block"]=o(function(c){var l=arguments.length<=1||arguments[1]===void 0?{}:arguments[1];return l.data=Eo.createFrame(l.data),l.data["partial-block"]=s,i(c,l)},"partialBlockWrapper"),i.partials&&(r.partials=tA.extend({},r.partials,i.partials))})(),t===void 0&&n&&(t=n),t===void 0)throw new go.default("The partial "+r.name+" could not be found");if(t instanceof Function)return t(e,r)}o(HRe,"invokePartial");function wj(){return""}o(wj,"noop");function SI(t,e){if(t&&Object.prototype.hasOwnProperty.call(t,e))return t[e]}o(SI,"lookupOwnProperty");function zRe(t,e){return(!e||!("root"in e))&&(e=e?Eo.createFrame(e):{},e.root=t),e}o(zRe,"initData");function bj(t,e,r,s,n,i){if(t.decorator){var a={};e=t.decorator(e,a,r,s&&s[0],n,i,s),tA.extend(e,a)}return e}o(bj,"executeDecorators");function Bj(t,e,r){e&&Object.keys(e).forEach(function(s){var n=e[s];t[s]=VRe(n,r)})}o(Bj,"addHelpers");function VRe(t,e){var r=e.lookupProperty;return FRe.wrapHelper(t,function(s){return s.lookupProperty=r,s})}o(VRe,"passLookupPropertyOption")});var Yk=f((RI,xj)=>{"use strict";RI.__esModule=!0;RI.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}};xj.exports=RI.default});var vj=f((TI,Tj)=>{"use strict";TI.__esModule=!0;function Wk(t){return t&&t.__esModule?t:{default:t}}o(Wk,"_interopRequireDefault");function jk(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(jk,"_interopRequireWildcard");var $Re=QI(),Nj=jk($Re),YRe=Ej(),JRe=Wk(YRe),WRe=Bs(),jRe=Wk(WRe),KRe=br(),Jk=jk(KRe),XRe=Qj(),Sj=jk(XRe),ZRe=Yk()
Line truncated
|
||||
`+this.lexer.showPosition()+`
|
||||
Expecting `+ye.join(", ")+", got '"+(this.terminals_[B]||B)+"'":bt="Parse error on line "+(d+1)+": Unexpected "+(B==1?"end of input":"'"+(this.terminals_[B]||B)+"'"),this.parseError(bt,{text:this.lexer.match,token:this.terminals_[B]||B,line:this.lexer.yylineno,loc:C,expected:ye})}}if(q[0]instanceof Array&&q.length>1)throw new Error("Parse Error: multiple actions possible at state: "+D+", token: "+B);switch(q[0]){case 1:a.push(B),c.push(this.lexer.yytext),l.push(this.lexer.yylloc),a.push(q[1]),B=null,N?(B=N,N=null):(p=this.lexer.yyleng,A=this.lexer.yytext,d=this.lexer.yylineno,C=this.lexer.yylloc,m>0&&m--);break;case 2:if(ne=this.productions_[q[1]][1],Re.$=c[c.length-ne],Re._$={first_line:l[l.length-(ne||1)].first_line,last_line:l[l.length-1].last_line,first_column:l[l.length-(ne||1)].first_column,last_column:l[l.length-1].last_column},E&&(Re._$.range=[l[l.length-(ne||1)].range[0],l[l.length-1].range[1]]),be=this.performAction.call(Re,A,p,d,this.yy,q[1],c,l),typeof be<"u")return be;ne&&(a=a.slice(0,-1*ne*2),c=c.slice(0,-1*ne),l=l.slice(0,-1*ne)),a.push(this.productions_[q[1]][0]),c.push(Re.$),l.push(Re._$),G=u[a[a.length-2]][a[a.length-1]],a.push(G);break;case 3:return!0}}return!0},"parse")},e=(function(){var s={EOF:1,parseError:o(function(i,a){if(this.yy.parser)this.yy.parser.parseError(i,a);else throw new Error(i)},"parseError"),setInput:o(function(i){return this._input=i,this._more=this._less=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:o(function(){var i=this._input[0];this.yytext+=i,this.yyleng++,this.offset++,this.match+=i,this.matched+=i;var a=i.match(/(?:\r\n?|\n).*/g);return a?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),i},"input"),unput:o(function(i){var a=i.length,c=i.split(/(?:\r\n?|\n)/g);this._input=i+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-a-1),this.offset-=a;var l=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),c.length-1&&(this.yylineno-=c.length-1);var u=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:c?(c.length===l.length?this.yylloc.first_column:0)+l[l.length-c.length].length-c[0].length:this.yylloc.first_column-a},this.options.ranges&&(this.yylloc.range=[u[0],u[0]+this.yyleng-a]),this},"unput"),more:o(function(){return this._more=!0,this},"more"),less:o(function(i){this.unput(this.match.slice(i))},"less"),pastInput:o(function(){var i=this.matched.substr(0,this.matched.length-this.match.length);return(i.length>20?"...":"")+i.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:o(function(){var i=this.match;return i.length<20&&(i+=this._input.substr(0,20-i.length)),(i.substr(0,20)+(i.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:o(function(){var i=this.pastInput(),a=new Array(i.length+1).join("-");return i+this.upcomingInput()+`
|
||||
Expecting `+ye.join(", ")+", got '"+(this.terminals_[B]||B)+"'":Qt="Parse error on line "+(d+1)+": Unexpected "+(B==1?"end of input":"'"+(this.terminals_[B]||B)+"'"),this.parseError(Qt,{text:this.lexer.match,token:this.terminals_[B]||B,line:this.lexer.yylineno,loc:C,expected:ye})}}if(q[0]instanceof Array&&q.length>1)throw new Error("Parse Error: multiple actions possible at state: "+D+", token: "+B);switch(q[0]){case 1:a.push(B),c.push(this.lexer.yytext),l.push(this.lexer.yylloc),a.push(q[1]),B=null,N?(B=N,N=null):(p=this.lexer.yyleng,A=this.lexer.yytext,d=this.lexer.yylineno,C=this.lexer.yylloc,m>0&&m--);break;case 2:if(ne=this.productions_[q[1]][1],Re.$=c[c.length-ne],Re._$={first_line:l[l.length-(ne||1)].first_line,last_line:l[l.length-1].last_line,first_column:l[l.length-(ne||1)].first_column,last_column:l[l.length-1].last_column},E&&(Re._$.range=[l[l.length-(ne||1)].range[0],l[l.length-1].range[1]]),be=this.performAction.call(Re,A,p,d,this.yy,q[1],c,l),typeof be<"u")return be;ne&&(a=a.slice(0,-1*ne*2),c=c.slice(0,-1*ne),l=l.slice(0,-1*ne)),a.push(this.productions_[q[1]][0]),c.push(Re.$),l.push(Re._$),G=u[a[a.length-2]][a[a.length-1]],a.push(G);break;case 3:return!0}}return!0},"parse")},e=(function(){var s={EOF:1,parseError:o(function(i,a){if(this.yy.parser)this.yy.parser.parseError(i,a);else throw new Error(i)},"parseError"),setInput:o(function(i){return this._input=i,this._more=this._less=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:o(function(){var i=this._input[0];this.yytext+=i,this.yyleng++,this.offset++,this.match+=i,this.matched+=i;var a=i.match(/(?:\r\n?|\n).*/g);return a?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),i},"input"),unput:o(function(i){var a=i.length,c=i.split(/(?:\r\n?|\n)/g);this._input=i+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-a-1),this.offset-=a;var l=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),c.length-1&&(this.yylineno-=c.length-1);var u=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:c?(c.length===l.length?this.yylloc.first_column:0)+l[l.length-c.length].length-c[0].length:this.yylloc.first_column-a},this.options.ranges&&(this.yylloc.range=[u[0],u[0]+this.yyleng-a]),this},"unput"),more:o(function(){return this._more=!0,this},"more"),less:o(function(i){this.unput(this.match.slice(i))},"less"),pastInput:o(function(){var i=this.matched.substr(0,this.matched.length-this.match.length);return(i.length>20?"...":"")+i.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:o(function(){var i=this.match;return i.length<20&&(i+=this._input.substr(0,20-i.length)),(i.substr(0,20)+(i.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:o(function(){var i=this.pastInput(),a=new Array(i.length+1).join("-");return i+this.upcomingInput()+`
|
||||
`+a+"^"},"showPosition"),next:o(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var i,a,c,l,u,A;this._more||(this.yytext="",this.match="");for(var d=this._currentRules(),p=0;p<d.length&&(c=this._input.match(this.rules[d[p]]),!(c&&(!a||c[0].length>a[0].length)&&(a=c,l=p,!this.options.flex)));p++);return a?(A=a[0].match(/(?:\r\n?|\n).*/g),A&&(this.yylineno+=A.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:A?A[A.length-1].length-A[A.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+a[0].length},this.yytext+=a[0],this.match+=a[0],this.matches=a,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._input=this._input.slice(a[0].length),this.matched+=a[0],i=this.performAction.call(this,this.yy,this,d[l],this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),i||void 0):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
||||
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:o(function(){var i=this.next();return typeof i<"u"?i:this.lex()},"lex"),begin:o(function(i){this.conditionStack.push(i)},"begin"),popState:o(function(){return this.conditionStack.pop()},"popState"),_currentRules:o(function(){return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules},"_currentRules"),topState:o(function(){return this.conditionStack[this.conditionStack.length-2]},"topState"),pushState:o(function(i){this.begin(i)},"begin")};return s.options={},s.performAction=o(function(i,a,c,l){function u(d,p){return a.yytext=a.yytext.substring(d,a.yyleng-p+d)}o(u,"strip");var A=l;switch(c){case 0:if(a.yytext.slice(-2)==="\\\\"?(u(0,1),this.begin("mu")):a.yytext.slice(-1)==="\\"?(u(0,1),this.begin("emu")):this.begin("mu"),a.yytext)return 15;break;case 1:return 15;case 2:return this.popState(),15;break;case 3:return this.begin("raw"),15;break;case 4:return this.popState(),this.conditionStack[this.conditionStack.length-1]==="raw"?15:(u(5,9),"END_RAW_BLOCK");case 5:return 15;case 6:return this.popState(),14;break;case 7:return 65;case 8:return 68;case 9:return 19;case 10:return this.popState(),this.begin("raw"),23;break;case 11:return 55;case 12:return 60;case 13:return 29;case 14:return 47;case 15:return this.popState(),44;break;case 16:return this.popState(),44;break;case 17:return 34;case 18:return 39;case 19:return 51;case 20:return 48;case 21:this.unput(a.yytext),this.popState(),this.begin("com");break;case 22:return this.popState(),14;break;case 23:return 48;case 24:return 73;case 25:return 72;case 26:return 72;case 27:return 87;case 28:break;case 29:return this.popState(),54;break;case 30:return this.popState(),33;break;case 31:return a.yytext=u(1,2).replace(/\\"/g,'"'),80;break;case 32:return a.yytext=u(1,2).replace(/\\'/g,"'"),80;break;case 33:return 85;case 34:return 82;case 35:return 82;case 36:return 83;case 37:return 84;case 38:return 81;case 39:return 75;case 40:return 77;case 41:return 72;case 42:return a.yytext=a.yytext.replace(/\\([\\\]])/g,"$1"),72;break;case 43:return"INVALID";case 44:return 5}},"anonymous"),s.rules=[/^(?:[^\x00]*?(?=(\{\{)))/,/^(?:[^\x00]+)/,/^(?:[^\x00]{2,}?(?=(\{\{|\\\{\{|\\\\\{\{|$)))/,/^(?:\{\{\{\{(?=[^\/]))/,/^(?:\{\{\{\{\/[^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=[=}\s\/.])\}\}\}\})/,/^(?:[^\x00]+?(?=(\{\{\{\{)))/,/^(?:[\s\S]*?--(~)?\}\})/,/^(?:\()/,/^(?:\))/,/^(?:\{\{\{\{)/,/^(?:\}\}\}\})/,/^(?:\{\{(~)?>)/,/^(?:\{\{(~)?#>)/,/^(?:\{\{(~)?#\*?)/,/^(?:\{\{(~)?\/)/,/^(?:\{\{(~)?\^\s*(~)?\}\})/,/^(?:\{\{(~)?\s*else\s*(~)?\}\})/,/^(?:\{\{(~)?\^)/,/^(?:\{\{(~)?\s*else\b)/,/^(?:\{\{(~)?\{)/,/^(?:\{\{(~)?&)/,/^(?:\{\{(~)?!--)/,/^(?:\{\{(~)?![\s\S]*?\}\})/,/^(?:\{\{(~)?\*?)/,/^(?:=)/,/^(?:\.\.)/,/^(?:\.(?=([=~}\s\/.)|])))/,/^(?:[\/.])/,/^(?:\s+)/,/^(?:\}(~)?\}\})/,/^(?:(~)?\}\})/,/^(?:"(\\["]|[^"])*")/,/^(?:'(\\[']|[^'])*')/,/^(?:@)/,/^(?:true(?=([~}\s)])))/,/^(?:false(?=([~}\s)])))/,/^(?:undefined(?=([~}\s)])))/,/^(?:null(?=([~}\s)])))/,/^(?:-?[0-9]+(?:\.[0-9]+)?(?=([~}\s)])))/,/^(?:as\s+\|)/,/^(?:\|)/,/^(?:([^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=([=~}\s\/.)|]))))/,/^(?:\[(\\\]|[^\]])*\])/,/^(?:.)/,/^(?:$)/],s.conditions={mu:{rules:[7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44],inclusive:!1},emu:{rules:[2],inclusive:!1},com:{rules:[6],inclusive:!1},raw:{rules:[3,4,5],inclusive:!1},INITIAL:{rules:[0,1,44],inclusive:!0}},s})();t.lexer=e;function r(){this.yy={}}return o(r,"Parser"),r.prototype=t,t.Parser=r,new r})();SI.default=WRe;bj.exports=SI.default});var PI=f((vI,Sj)=>{"use strict";vI.__esModule=!0;function jRe(t){return t&&t.__esModule?t:{default:t}}o(jRe,"_interopRequireDefault");var KRe=Cs(),Vk=jRe(KRe);function RI(){this.parents=[]}o(RI,"Visitor");RI.prototype={constructor:RI,mutating:!1,acceptKey:o(function(e,r){var s=this.accept(e[r]);if(this.mutating){if(s&&!RI.prototype[s.type])throw new Vk.default('Unexpected node type "'+s.type+'" found when accepting '+r+" on "+e.type);e[r]=s}},"acceptKey"),acceptRequired:o(function(e,r){if(this.acceptKey(e,r),!e[r])throw new Vk.default(e.type+" requires "+r)},"acceptRequired"),acceptArray:o(function(e){for(var r=0,s=e.length;r<s;r++)this.acceptKey(e,r),e[r]||(e.splice(r,1),r--,s--)},"acceptArray"),accept:o(function(e){if(e){if(!this[e.type])throw new Vk.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:TI,Decorator:TI,BlockStatement:xj,DecoratorBlock:xj,PartialStatement:Nj,PartialBlockStatement:o(function(e){Nj.call(this,e),this.acceptKey(e,"program")},"PartialBlockStatement"),ContentStatement:o(function(){},"ContentStatement"),CommentStatement:o(function(){},"CommentStatement"),SubExpression:TI,PathExpression:o(function(){},"PathExpression"),StrLine truncated
|
||||
`])}),e},"merge"),each:o(function(e){for(var r=0,s=this.source.length;r<s;r++)e(this.source[r])},"each"),empty:o(function(){var e=this.currentLocation||{start:{}};return new Oc(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 Oc?e:(e=mD(e,this,r),new Oc(r.start.line,r.start.column,this.srcFile,e))},"wrap"),functionCall:o(function(e,r,s){return s=this.generateList(s),this.wrap([e,r?"."+r+"(":"(",s,")"])},"functionCall"),quotedString:o(function(e){return'"'+(e+"").replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")+'"'},"quotedString"),objectLiteral:o(function(e){var r=this,s=[];Object.keys(e).forEach(function(i){var a=mD(e[i],r);a!=="undefined"&&s.push([r.quotedString(i),":",a])});var n=this.generateList(s);return n.prepend("{"),n.add("}"),n},"objectLiteral"),generateList:o(function(e){for(var r=this.empty(),s=0,n=e.length;s<n;s++)s&&r.add(","),r.add(mD(e[s],this));return r},"generateList"),generateArray:o(function(e){var r=this.generateList(e);return r.prepend("["),r.add("]"),r},"generateArray")};UI.default=l9;u9.exports=UI.default});var f9=f((qI,h9)=>{"use strict";qI.__esModule=!0;function m9(t){return t&&t.__esModule?t:{default:t}}o(m9,"_interopRequireDefault");var d9=II(),JTe=Cs(),fD=m9(JTe),WTe=br(),jTe=A9(),p9=m9(jTe);function nA(t){this.value=t}o(nA,"Literal");function iA(){}o(iA,"JavaScriptCompiler");iA.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=d9.COMPILER_REVISION,r=d9.REVISION_CHANGES[e];return[e,r]},"compilerInfo"),appendToBuffer:o(function(e,r,s){return WTe.isArray(e)||(e=[e]),e=this.source.wrap(e,r),this.environment.isSimple?["return ",e,";"]:s?["buffer += ",e,";"]:(e.appendToBuffer=!0,e)},"appendToBuffer"),initializeBuffer:o(function(){return this.quotedString("")},"initializeBuffer"),internalNameLookup:o(function(e,r){return this.lookupPropertyFunctionIsUsed=!0,["lookupProperty(",e,",",JSON.stringify(r),")"]},"internalNameLookup"),lookupPropertyFunctionIsUsed:!1,compile:o(function(e,r,s,n){this.environment=e,this.options=r,this.stringParams=this.options.stringParams,this.trackIds=this.options.trackIds,this.precompile=!n,this.name=this.environment.name,this.isChild=!!s,this.context=s||{decorators:[],programs:[],environments:[]},this.preamble(),this.stackSlot=0,this.stackVars=[],this.aliases={},this.registers={list:[]},this.hashes=[],this.compileStack=[],this.inlineStack=[],this.blockParams=[],this.compileChildren(e,r),this.useDepths=this.useDepths||e.useDepths||e.useDecorators||this.options.compat,this.useBlockParams=this.useBlockParams||e.useBlockParams;var i=e.opcodes,a=void 0,c=void 0,l=void 0,u=void 0;for(l=0,u=i.length;l<u;l++)a=i[l],this.source.currentLocation=a.loc,c=c||a.loc,this[a.opcode].apply(this,a.args);if(this.source.currentLocation=c,this.pushSource(""),this.stackSlot||this.inlineStack.length||this.compileStack.length)throw new fD.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 s.options={},s.performAction=o(function(i,a,c,l){function u(d,p){return a.yytext=a.yytext.substring(d,a.yyleng-p+d)}o(u,"strip");var A=l;switch(c){case 0:if(a.yytext.slice(-2)==="\\\\"?(u(0,1),this.begin("mu")):a.yytext.slice(-1)==="\\"?(u(0,1),this.begin("emu")):this.begin("mu"),a.yytext)return 15;break;case 1:return 15;case 2:return this.popState(),15;break;case 3:return this.begin("raw"),15;break;case 4:return this.popState(),this.conditionStack[this.conditionStack.length-1]==="raw"?15:(u(5,9),"END_RAW_BLOCK");case 5:return 15;case 6:return this.popState(),14;break;case 7:return 65;case 8:return 68;case 9:return 19;case 10:return this.popState(),this.begin("raw"),23;break;case 11:return 55;case 12:return 60;case 13:return 29;case 14:return 47;case 15:return this.popState(),44;break;case 16:return this.popState(),44;break;case 17:return 34;case 18:return 39;case 19:return 51;case 20:return 48;case 21:this.unput(a.yytext),this.popState(),this.begin("com");break;case 22:return this.popState(),14;break;case 23:return 48;case 24:return 73;case 25:return 72;case 26:return 72;case 27:return 87;case 28:break;case 29:return this.popState(),54;break;case 30:return this.popState(),33;break;case 31:return a.yytext=u(1,2).replace(/\\"/g,'"'),80;break;case 32:return a.yytext=u(1,2).replace(/\\'/g,"'"),80;break;case 33:return 85;case 34:return 82;case 35:return 82;case 36:return 83;case 37:return 84;case 38:return 81;case 39:return 75;case 40:return 77;case 41:return 72;case 42:return a.yytext=a.yytext.replace(/\\([\\\]])/g,"$1"),72;break;case 43:return"INVALID";case 44:return 5}},"anonymous"),s.rules=[/^(?:[^\x00]*?(?=(\{\{)))/,/^(?:[^\x00]+)/,/^(?:[^\x00]{2,}?(?=(\{\{|\\\{\{|\\\\\{\{|$)))/,/^(?:\{\{\{\{(?=[^\/]))/,/^(?:\{\{\{\{\/[^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=[=}\s\/.])\}\}\}\})/,/^(?:[^\x00]+?(?=(\{\{\{\{)))/,/^(?:[\s\S]*?--(~)?\}\})/,/^(?:\()/,/^(?:\))/,/^(?:\{\{\{\{)/,/^(?:\}\}\}\})/,/^(?:\{\{(~)?>)/,/^(?:\{\{(~)?#>)/,/^(?:\{\{(~)?#\*?)/,/^(?:\{\{(~)?\/)/,/^(?:\{\{(~)?\^\s*(~)?\}\})/,/^(?:\{\{(~)?\s*else\s*(~)?\}\})/,/^(?:\{\{(~)?\^)/,/^(?:\{\{(~)?\s*else\b)/,/^(?:\{\{(~)?\{)/,/^(?:\{\{(~)?&)/,/^(?:\{\{(~)?!--)/,/^(?:\{\{(~)?![\s\S]*?\}\})/,/^(?:\{\{(~)?\*?)/,/^(?:=)/,/^(?:\.\.)/,/^(?:\.(?=([=~}\s\/.)|])))/,/^(?:[\/.])/,/^(?:\s+)/,/^(?:\}(~)?\}\})/,/^(?:(~)?\}\})/,/^(?:"(\\["]|[^"])*")/,/^(?:'(\\[']|[^'])*')/,/^(?:@)/,/^(?:true(?=([~}\s)])))/,/^(?:false(?=([~}\s)])))/,/^(?:undefined(?=([~}\s)])))/,/^(?:null(?=([~}\s)])))/,/^(?:-?[0-9]+(?:\.[0-9]+)?(?=([~}\s)])))/,/^(?:as\s+\|)/,/^(?:\|)/,/^(?:([^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=([=~}\s\/.)|]))))/,/^(?:\[(\\\]|[^\]])*\])/,/^(?:.)/,/^(?:$)/],s.conditions={mu:{rules:[7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44],inclusive:!1},emu:{rules:[2],inclusive:!1},com:{rules:[6],inclusive:!1},raw:{rules:[3,4,5],inclusive:!1},INITIAL:{rules:[0,1,44],inclusive:!0}},s})();t.lexer=e;function r(){this.yy={}}return o(r,"Parser"),r.prototype=t,t.Parser=r,new r})();PI.default=tTe;Dj.exports=PI.default});var LI=f((_I,Oj)=>{"use strict";_I.__esModule=!0;function rTe(t){return t&&t.__esModule?t:{default:t}}o(rTe,"_interopRequireDefault");var sTe=Bs(),Xk=rTe(sTe);function kI(){this.parents=[]}o(kI,"Visitor");kI.prototype={constructor:kI,mutating:!1,acceptKey:o(function(e,r){var s=this.accept(e[r]);if(this.mutating){if(s&&!kI.prototype[s.type])throw new Xk.default('Unexpected node type "'+s.type+'" found when accepting '+r+" on "+e.type);e[r]=s}},"acceptKey"),acceptRequired:o(function(e,r){if(this.acceptKey(e,r),!e[r])throw new Xk.default(e.type+" requires "+r)},"acceptRequired"),acceptArray:o(function(e){for(var r=0,s=e.length;r<s;r++)this.acceptKey(e,r),e[r]||(e.splice(r,1),r--,s--)},"acceptArray"),accept:o(function(e){if(e){if(!this[e.type])throw new Xk.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:DI,Decorator:DI,BlockStatement:Lj,DecoratorBlock:Lj,PartialStatement:Mj,PartialBlockStatement:o(function(e){Mj.call(this,e),this.acceptKey(e,"program")},"PartialBlockStatement"),ContentStatement:o(function(){},"ContentStatement"),CommentStatement:o(function(){},"CommentStatement"),SubExpression:DI,PathExpression:o(function(){},"PathExpression"),StrLine truncated
|
||||
`])}),e},"merge"),each:o(function(e){for(var r=0,s=this.source.length;r<s;r++)e(this.source[r])},"each"),empty:o(function(){var e=this.currentLocation||{start:{}};return new qc(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 qc?e:(e=CD(e,this,r),new qc(r.start.line,r.start.column,this.srcFile,e))},"wrap"),functionCall:o(function(e,r,s){return s=this.generateList(s),this.wrap([e,r?"."+r+"(":"(",s,")"])},"functionCall"),quotedString:o(function(e){return'"'+(e+"").replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")+'"'},"quotedString"),objectLiteral:o(function(e){var r=this,s=[];Object.keys(e).forEach(function(i){var a=CD(e[i],r);a!=="undefined"&&s.push([r.quotedString(i),":",a])});var n=this.generateList(s);return n.prepend("{"),n.add("}"),n},"objectLiteral"),generateList:o(function(e){for(var r=this.empty(),s=0,n=e.length;s<n;s++)s&&r.add(","),r.add(CD(e[s],this));return r},"generateList"),generateArray:o(function(e){var r=this.generateList(e);return r.prepend("["),r.add("]"),r},"generateArray")};zI.default=y9;C9.exports=zI.default});var x9=f((VI,Q9)=>{"use strict";VI.__esModule=!0;function b9(t){return t&&t.__esModule?t:{default:t}}o(b9,"_interopRequireDefault");var B9=QI(),eve=Bs(),BD=b9(eve),tve=br(),rve=I9(),w9=b9(rve);function aA(t){this.value=t}o(aA,"Literal");function cA(){}o(cA,"JavaScriptCompiler");cA.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=B9.COMPILER_REVISION,r=B9.REVISION_CHANGES[e];return[e,r]},"compilerInfo"),appendToBuffer:o(function(e,r,s){return tve.isArray(e)||(e=[e]),e=this.source.wrap(e,r),this.environment.isSimple?["return ",e,";"]:s?["buffer += ",e,";"]:(e.appendToBuffer=!0,e)},"appendToBuffer"),initializeBuffer:o(function(){return this.quotedString("")},"initializeBuffer"),internalNameLookup:o(function(e,r){return this.lookupPropertyFunctionIsUsed=!0,["lookupProperty(",e,",",JSON.stringify(r),")"]},"internalNameLookup"),lookupPropertyFunctionIsUsed:!1,compile:o(function(e,r,s,n){this.environment=e,this.options=r,this.stringParams=this.options.stringParams,this.trackIds=this.options.trackIds,this.precompile=!n,this.name=this.environment.name,this.isChild=!!s,this.context=s||{decorators:[],programs:[],environments:[]},this.preamble(),this.stackSlot=0,this.stackVars=[],this.aliases={},this.registers={list:[]},this.hashes=[],this.compileStack=[],this.inlineStack=[],this.blockParams=[],this.compileChildren(e,r),this.useDepths=this.useDepths||e.useDepths||e.useDecorators||this.options.compat,this.useBlockParams=this.useBlockParams||e.useBlockParams;var i=e.opcodes,a=void 0,c=void 0,l=void 0,u=void 0;for(l=0,u=i.length;l<u;l++)a=i[l],this.source.currentLocation=a.loc,c=c||a.loc,this[a.opcode].apply(this,a.args);if(this.source.currentLocation=c,this.pushSource(""),this.stackSlot||this.inlineStack.length||this.compileStack.length)throw new BD.default("Compile completed with content left on stack");this.decorators.isEmpty()?this.decorators=void 0:(this.useDecorators=!0,this.decorators.prepend(["var decorators = container.decorators, ",this.lookupPropertyFunctionVarDeclaration(),`;
|
||||
`]),this.decorators.push("return fn;"),n?this.decorators=Function.apply(this,["fn","props","container","depth0","data","blockParams","depths",this.decorators.merge()]):(this.decorators.prepend(`function(fn, props, container, depth0, data, blockParams, depths) {
|
||||
`),this.decorators.push(`}
|
||||
`),this.decorators=this.decorators.merge()));var A=this.createFunctionContext(n);if(this.isChild)return A;var d={compiler:this.compilerInfo(),main:A};this.decorators&&(d.main_d=this.decorators,d.useDecorators=!0);var p=this.context,m=p.programs,h=p.decorators;for(l=0,u=m.length;l<u;l++)d[l]=m[l],h[l]&&(d[l+"_d"]=h[l],d.useDecorators=!0);return this.environment.usePartial&&(d.usePartial=!0),this.options.data&&(d.useData=!0),this.useDepths&&(d.useDepths=!0),this.useBlockParams&&(d.useBlockParams=!0),this.options.compat&&(d.compat=!0),n?d.compilerOptions=this.options:(d.compiler=JSON.stringify(d.compiler),this.source.currentLocation={start:{line:1,column:0}},d=this.objectLiteral(d),r.srcName?(d=d.toStringWithSourceMap({file:r.destName}),d.map=d.map&&d.map.toString()):d=d.toString()),d},"compile"),preamble:o(function(){this.lastContext=0,this.source=new p9.default(this.options.srcName),this.decorators=new p9.default(this.options.srcName)},"preamble"),createFunctionContext:o(function(e){var r=this,s="",n=this.stackVars.concat(this.registers.list);n.length>0&&(s+=", "+n.join(", "));var i=0;Object.keys(this.aliases).forEach(function(l){var u=r.aliases[l];u.children&&u.referenceCount>1&&(s+=", alias"+ ++i+"="+l,u.children[0]="alias"+i)}),this.lookupPropertyFunctionIsUsed&&(s+=", "+this.lookupPropertyFunctionVarDeclaration());var a=["container","depth0","helpers","partials","data"];(this.useBlockParams||this.useDepths)&&a.push("blockParams"),this.useDepths&&a.push("depths");var c=this.mergeSource(s);return e?(a.push(c),Function.apply(this,a)):this.source.wrap(["function(",a.join(","),`) {
|
||||
`),this.decorators=this.decorators.merge()));var A=this.createFunctionContext(n);if(this.isChild)return A;var d={compiler:this.compilerInfo(),main:A};this.decorators&&(d.main_d=this.decorators,d.useDecorators=!0);var p=this.context,m=p.programs,h=p.decorators;for(l=0,u=m.length;l<u;l++)d[l]=m[l],h[l]&&(d[l+"_d"]=h[l],d.useDecorators=!0);return this.environment.usePartial&&(d.usePartial=!0),this.options.data&&(d.useData=!0),this.useDepths&&(d.useDepths=!0),this.useBlockParams&&(d.useBlockParams=!0),this.options.compat&&(d.compat=!0),n?d.compilerOptions=this.options:(d.compiler=JSON.stringify(d.compiler),this.source.currentLocation={start:{line:1,column:0}},d=this.objectLiteral(d),r.srcName?(d=d.toStringWithSourceMap({file:r.destName}),d.map=d.map&&d.map.toString()):d=d.toString()),d},"compile"),preamble:o(function(){this.lastContext=0,this.source=new w9.default(this.options.srcName),this.decorators=new w9.default(this.options.srcName)},"preamble"),createFunctionContext:o(function(e){var r=this,s="",n=this.stackVars.concat(this.registers.list);n.length>0&&(s+=", "+n.join(", "));var i=0;Object.keys(this.aliases).forEach(function(l){var u=r.aliases[l];u.children&&u.referenceCount>1&&(s+=", alias"+ ++i+"="+l,u.children[0]="alias"+i)}),this.lookupPropertyFunctionIsUsed&&(s+=", "+this.lookupPropertyFunctionVarDeclaration());var a=["container","depth0","helpers","partials","data"];(this.useBlockParams||this.useDepths)&&a.push("blockParams"),this.useDepths&&a.push("depths");var c=this.mergeSource(s);return e?(a.push(c),Function.apply(this,a)):this.source.wrap(["function(",a.join(","),`) {
|
||||
`,c,"}"])},"createFunctionContext"),mergeSource:o(function(e){var r=this.environment.isSimple,s=!this.forceBuffer,n=void 0,i=void 0,a=void 0,c=void 0;return this.source.each(function(l){l.appendToBuffer?(a?l.prepend(" + "):a=l,c=l):(a&&(i?a.prepend("buffer += "):n=!0,c.add(";"),a=c=void 0),i=!0,r||(s=!1))}),s?a?(a.prepend("return "),c.add(";")):i||this.source.push('return "";'):(e+=", buffer = "+(n?"":this.initializeBuffer()),a?(a.prepend("return buffer + "),c.add(";")):this.source.push("return buffer;")),e&&this.source.prepend("var "+e.substring(2)+(n?"":`;
|
||||
`)),this.source.merge()},"mergeSource"),lookupPropertyFunctionVarDeclaration:o(function(){return`
|
||||
lookupProperty = container.lookupProperty || function(parent, propertyName) {
|
||||
@@ -85,51 +85,51 @@ Expecting `+ye.join(", ")+", got '"+(this.terminals_[B]||B)+"'":bt="Parse error
|
||||
}
|
||||
return undefined
|
||||
}
|
||||
`.trim()},"lookupPropertyFunctionVarDeclaration"),blockValue:o(function(e){var r=this.aliasable("container.hooks.blockHelperMissing"),s=[this.contextName(0)];this.setupHelperArgs(e,0,s);var n=this.popStack();s.splice(1,0,n),this.push(this.source.functionCall(r,"call",s))},"blockValue"),ambiguousBlockValue:o(function(){var e=this.aliasable("container.hooks.blockHelperMissing"),r=[this.contextName(0)];this.setupHelperArgs("",0,r,!0),this.flushInline();var s=this.topStack();r.splice(1,0,s),this.pushSource(["if (!",this.lastHelper,") { ",s," = ",this.source.functionCall(e,"call",r),"}"])},"ambiguousBlockValue"),appendContent:o(function(e){this.pendingContent?e=this.pendingContent+e:this.pendingLocation=this.source.currentLocation,this.pendingContent=e},"appendContent"),append:o(function(){if(this.isInline())this.replaceStack(function(r){return[" != null ? ",r,' : ""']}),this.pushSource(this.appendToBuffer(this.popStack()));else{var e=this.popStack();this.pushSource(["if (",e," != null) { ",this.appendToBuffer(e,void 0,!0)," }"]),this.environment.isSimple&&this.pushSource(["else { ",this.appendToBuffer("''",void 0,!0)," }"])}},"append"),appendEscaped:o(function(){this.pushSource(this.appendToBuffer([this.aliasable("container.escapeExpression"),"(",this.popStack(),")"]))},"appendEscaped"),getContext:o(function(e){this.lastContext=e},"getContext"),pushContext:o(function(){this.pushStackLiteral(this.contextName(this.lastContext))},"pushContext"),lookupOnContext:o(function(e,r,s,n){var i=0;!n&&this.options.compat&&!this.lastContext?this.push(this.depthedLookup(e[i++])):this.pushContext(),this.resolvePath("context",e,i,r,s)},"lookupOnContext"),lookupBlockParam:o(function(e,r){this.useBlockParams=!0,this.push(["blockParams[",e[0],"][",e[1],"]"]),this.resolvePath("context",r,1)},"lookupBlockParam"),lookupData:o(function(e,r,s){e?this.pushStackLiteral("container.data(data, "+e+")"):this.pushStackLiteral("data"),this.resolvePath("data",r,0,!0,s)},"lookupData"),resolvePath:o(function(e,r,s,n,i){var a=this;if(this.options.strict||this.options.assumeObjects){this.push(KTe(this.options.strict&&i,this,r,s,e));return}for(var c=r.length,l=o(function(A){a.replaceStack(function(d){var p=a.nameLookup(d,r[A],e);return n?[" && ",p]:[" != null ? ",p," : ",d]})},"_loop"),u=s;u<c;u++)l(u)},"resolvePath"),resolvePossibleLambda:o(function(){this.push([this.aliasable("container.lambda"),"(",this.popStack(),", ",this.contextName(0),")"])},"resolvePossibleLambda"),pushStringParam:o(function(e,r){this.pushContext(),this.pushString(r),r!=="SubExpression"&&(typeof e=="string"?this.pushString(e):this.pushStackLiteral(e))},"pushStringParam"),emptyHash:o(function(e){this.trackIds&&this.push("{}"),this.stringParams&&(this.push("{}"),this.push("{}")),this.pushStackLiteral(e?"undefined":"{}")},"emptyHash"),pushHash:o(function(){this.hash&&this.hashes.push(this.hash),this.hash={values:{},types:[],contexts:[],ids:[]}},"pushHash"),popHash:o(function(){var e=this.hash;this.hash=this.hashes.pop(),this.trackIds&&this.push(this.objectLiteral(e.ids)),this.stringParams&&(this.push(this.objectLiteral(e.contexts)),this.push(this.objectLiteral(e.types))),this.push(this.objectLiteral(e.values))},"popHash"),pushString:o(function(e){this.pushStackLiteral(this.quotedString(e))},"pushString"),pushLiteral:o(function(e){this.pushStackLiteral(e)},"pushLiteral"),pushProgram:o(function(e){e!=null?this.pushStackLiteral(this.programExpression(e)):this.pushStackLiteral(null)},"pushProgram"),registerDecorator:o(function(e,r){var s=this.nameLookup("decorators",r,"decorator"),n=this.setupHelperArgs(r,e);this.decorators.push(["var decorator = ",s,";"]),this.decorators.push(['if (typeof decorator !== "function") { throw new Error(',this.quotedString('Missing decorator: "'+r+'"'),"); }"]),this.decorators.push(["fn = ",this.decorators.functionCall("decorator","",["fn","props","container",n])," || fn;"])},"registerDecorator"),invokeHelper:o(function(e,r,s){var n=this.popStack(),i=this.setupHelper(e,r),a=[];s&&a.push(i.name),a.push(n),this.options.strict||a.push(this.aliasable("container.hooks.helperMissing"));var c=["(",this.itemsSeparatedBy(a,"||"),")"],l=this.source.functionCall(c,"call",i.callParams);this.push(l)},"invokeHelper"),itemsSeparatedBy:o(function(e,r){var s=[];s.push(e[0]);for(var n=1;n<e.length;n++)s.push(r,e[n]);return s},"itemsSeparatedBy"),invokeKnownHelper:o(function(e,r){var s=this.setupHelper(e,r);this.push(this.source.functionCall(s.name,"call",s.callParams))},"invokeKnownHelper"),invokeAmbiguous:o(function(e,r){this.useRegister("helper");var s=this.popStack();this.emptyHash();var n=this.setupHelper(0,e,r),i=this.lastHelper=this.nameLookup("helpers",e,"helper"),a=["(","(helper = ",i," || ",s,")"];this.options.strict||(a[0]="(helper = ",a.push(" != null ? helper : ",this.aliasable("container.hooks.helperMissing"))),this.push(["(",a,n.paramsInit?["),(",n.paramsInit]:[],"),","(typeof helper === ",this.aliasable('"function"')," ? ",this.source.functionCall("h
Line truncated
|
||||
`,e};lt.prototype.Program=function(t){var e="",r=t.body,s=void 0,n=void 0;if(t.blockParams){var i="BLOCK PARAMS: [";for(s=0,n=t.blockParams.length;s<n;s++)i+=" "+t.blockParams[s];i+=" ]",e+=this.pad(i)}for(s=0,n=r.length;s<n;s++)e+=this.accept(r[s]);return this.padding--,e};lt.prototype.MustacheStatement=function(t){return this.pad("{{ "+this.SubExpression(t)+" }}")};lt.prototype.Decorator=function(t){return this.pad("{{ DIRECTIVE "+this.SubExpression(t)+" }}")};lt.prototype.BlockStatement=lt.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};lt.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+" }}")};lt.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+" }}")};lt.prototype.ContentStatement=function(t){return this.pad("CONTENT[ '"+t.value+"' ]")};lt.prototype.CommentStatement=function(t){return this.pad("{{! '"+t.value+"' }}")};lt.prototype.SubExpression=function(t){for(var e=t.params,r=[],s=void 0,n=0,i=e.length;n<i;n++)r.push(this.accept(e[n]));return e="["+r.join(", ")+"]",s=t.hash?" "+this.accept(t.hash):"",this.accept(t.path)+" "+e+s};lt.prototype.PathExpression=function(t){var e=t.parts.join("/");return(t.data?"@":"")+"PATH:"+e};lt.prototype.StringLiteral=function(t){return'"'+t.value+'"'};lt.prototype.NumberLiteral=function(t){return"NUMBER{"+t.value+"}"};lt.prototype.BooleanLiteral=function(t){return"BOOLEAN{"+t.value+"}"};lt.prototype.UndefinedLiteral=function(){return"UNDEFINED"};lt.prototype.NullLiteral=function(){return"NULL"};lt.prototype.Hash=function(t){for(var e=t.pairs,r=[],s=0,n=e.length;s<n;s++)r.push(this.accept(e[s]));return"HASH{"+r.join(", ")+"}"};lt.prototype.HashPair=function(t){return t.key+"="+this.accept(t.value)}});var yD=f((rct,w9)=>{var zI=y9().default,B9=C9();zI.PrintVisitor=B9.PrintVisitor;zI.print=B9.print;w9.exports=zI;function I9(t,e){var r=require("fs"),s=r.readFileSync(e,"utf8");t.exports=zI.compile(s)}o(I9,"extension");typeof require<"u"&&require.extensions&&(require.extensions[".handlebars"]=I9,require.extensions[".hbs"]=I9)});var q9=f((nct,yo)=>{var ke=require("fs"),VI=require("os"),Mt=require("path"),b9=require("crypto"),vi={fs:ke.constants,os:VI.constants},Q9="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",R9=/XXXXXX/,pve=3,T9=(vi.O_CREAT||vi.fs.O_CREAT)|(vi.O_EXCL||vi.fs.O_EXCL)|(vi.O_RDWR||vi.fs.O_RDWR),mve=VI.platform()==="win32",hve=vi.EBADF||vi.os.errno.EBADF,fve=vi.ENOENT||vi.os.errno.ENOENT,v9=448,P9=384,gve="exit",aA=[],k9=ke.rmdirSync.bind(ke),D9=!1;function Eve(t,e){return ke.rm(t,{recursive:!0},e)}o(Eve,"rimraf");function _9(t){return ke.rmSync(t,{recursive:!0})}o(_9,"FN_RIMRAF_SYNC");function wD(t,e){let r=cA(t,e),s=r[0],n=r[1];Sve(s,function(i,a){if(i)return n(i);let c=a.tries;o((function l(){try{let u=M9(a);ke.stat(u,function(A){if(!A)return c-- >0?l():n(new Error("Could not get a unique tmp filename, max tries reached "+u));n(null,u)})}catch(u){n(u)}}),"_getUniqueName")()})}o(wD,"tmpName");function bD(t){let e=cA(t),r=e[0],s=Rve(r),n=s.tries;do{let i=M9(s);try{ke.statSync(i)}catch{return i}}while(n-- >0);throw new Error("Could not get a unique tmp filename, max tries reached")}o(bD,"tmpNameSync");function yve(t,e){let r=cA(t,e),s=r[0],n=r[1];wD(s,o(function(a,c){if(a)return n(a);ke.open(c,T9,s.mode||P9,o(function(u,A){if(u)return n(u);if(s.discardDescriptor)return ke.close(A,o(function(p){return n(p,c,void 0,ID(c,-1,s,!1))},"_discardCallback"));{let d=s.discardDescriptor||s.detachDescriptor;n(null,c,A,ID(c,d?-1:A,s,!1))}},"_fileCreated"))},"_tmpNameCreated"))}o(yve,"file");function Cve(t){let e=cA(t),r=e[0],s=r.discardDescriptor||r.detachDescriptor,n=bD(r),i=ke.openSync(n,T9,r.mode||P9);return r.discardDescriptor&&(ke.closeSync(i),i=void 0),{name:n,fd:i,removeCallback:ID(n,s?-1:i,r,!0)}}o(Cve,"fileSync");function Ive(t,e){let r=cA(t,e),s=r[0],n=r[1];wD(s,o(function(a,c){if(a)return n(a);ke.mkdir(c,s.mode||v9,o(function(u){if(u)return n(u);n(null,c,L9(c,s,!1))},"_dirCreated"))},"_tmpNameCreated"))}o(Ive,"dir");function Bve(t){let e=cA(t),r=e[0],s=bD(r);return ke.mkdirSync(s,r.mode||v9),{name:s,removeCallback:L9(s,r,!0)}}o(Bve,"dirSync");function wve(t,e){let r=o(function(s){if(s&&!BD(s))return e(s);e()},"_handler");0<=t[0]?ke.close(t[0],function(){ke.unlink(t[1],r)}):ke.unlink(t[1],r)}o(wve,"_removeFileAsync");function
Line truncated
|
||||
Support boolean input list: \`true | True | TRUE | false | False | FALSE\``)}o(Ex,"getBooleanInput");function yx(t,e){if(process.env.GITHUB_OUTPUT||"")return fA("OUTPUT",Zm(t,e));process.stdout.write(gx.EOL),Pn("set-output",{name:t},vn(e))}o(yx,"setOutput");function bG(t){process.exitCode=fx.Failure,zl(t)}o(bG,"setFailed");function Ya(){return process.env.RUNNER_DEBUG==="1"}o(Ya,"isDebug");function b(t){Pn("debug",{},t)}o(b,"debug");function zl(t,e={}){Pn("error",RB(e),t instanceof Error?t.toString():t)}o(zl,"error");function et(t,e={}){Pn("warning",RB(e),t instanceof Error?t.toString():t)}o(et,"warning");function S(t){process.stdout.write(t+gx.EOL)}o(S,"info");function HAe(t){vB("group",t)}o(HAe,"startGroup");function zAe(){vB("endgroup")}o(zAe,"endGroup");function he(t,e){return GAe(this,void 0,void 0,function*(){HAe(t);let r;try{r=yield e()}finally{zAe()}return r})}o(he,"group");function $l(t,e){if(process.env.GITHUB_STATE||"")return fA("STATE",Zm(t,e));Pn("save-state",{name:t},vn(e))}o($l,"saveState");function QG(t){return process.env[`STATE_${t}`]||""}o(QG,"getState");var aI=w(require("fs"),1),Qk=w(require("os"),1),xk=w(require("path"),1);var NG=w(require("os"),1);function bd(t){return t==null?"":typeof t=="string"||t instanceof String?t:JSON.stringify(t)}o(bd,"toCommandValue");function SG(t,e,r){let s=new Cx(t,e,r);process.stdout.write(s.toString()+NG.EOL)}o(SG,"issueCommand");var xG="::",Cx=class{static{o(this,"Command")}constructor(e,r,s){e||(e="missing.command"),this.command=e,this.properties=r,this.message=s}toString(){let e=xG+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let r=!0;for(let s in this.properties)if(this.properties.hasOwnProperty(s)){let n=this.properties[s];n&&(r?r=!1:e+=",",e+=`${s}=${VAe(n)}`)}}return e+=`${xG}${$Ae(this.message)}`,e}};function $Ae(t){return bd(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}o($Ae,"escapeData");function VAe(t){return bd(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}o(VAe,"escapeProperty");var PG=w(require("os"),1);var TG=require("os"),Qd=require("fs");var Ix=function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(a){a(i)})}return o(n,"adopt"),new(r||(r=Promise))(function(i,a){function c(A){try{u(s.next(A))}catch(d){a(d)}}o(c,"fulfilled");function l(A){try{u(s.throw(A))}catch(d){a(d)}}o(l,"rejected");function u(A){A.done?i(A.value):n(A.value).then(c,l)}o(u,"step"),u((s=s.apply(t,e||[])).next())})},{access:YAe,appendFile:JAe,writeFile:WAe}=Qd.promises,RG="GITHUB_STEP_SUMMARY";var Bx=class{static{o(this,"Summary")}constructor(){this._buffer=""}filePath(){return Ix(this,void 0,void 0,function*(){if(this._filePath)return this._filePath;let e=process.env[RG];if(!e)throw new Error(`Unable to find environment variable for $${RG}. Check if your runtime environment supports job summaries.`);try{yield YAe(e,Qd.constants.R_OK|Qd.constants.W_OK)}catch{throw new Error(`Unable to access summary file: '${e}'. Check if the file has correct read/write permissions.`)}return this._filePath=e,this._filePath})}wrap(e,r,s={}){let n=Object.entries(s).map(([i,a])=>` ${i}="${a}"`).join("");return r?`<${e}${n}>${r}</${e}>`:`<${e}${n}>`}write(e){return Ix(this,void 0,void 0,function*(){let r=!!e?.overwrite,s=yield this.filePath();return yield(r?WAe:JAe)(s,this._buffer,{encoding:"utf8"}),this.emptyBuffer()})}clear(){return Ix(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(TG.EOL)}addCodeBlock(e,r){let s=Object.assign({},r&&{lang:r}),n=this.wrap("pre",this.wrap("code",e),s);return this.addRaw(n).addEOL()}addList(e,r=!1){let s=r?"ol":"ul",n=e.map(a=>this.wrap("li",a)).join(""),i=this.wrap(s,n);return this.addRaw(i).addEOL()}addTable(e){let r=e.map(n=>{let i=n.map(a=>{if(typeof a=="string")return this.wrap("td",a);let{header:c,data:l,colspan:u,rowspan:A}=a,d=c?"th":"td",p=Object.assign(Object.assign({},u&&{colspan:u}),A&&{rowspan:A});return this.wrap(d,l,p)}).join("");return this.wrap("tr",i)}).join(""),s=this.wrap("table",r);return this.addRaw(s).addEOL()}addDetails(e,r){let s=this.wrap("details",this.wrap("summary",e)+r);return this.addRaw(s).addEOL()}addImage(e,r,s){let{width:n,height:i}=s||{},a=Object.assign(Object.assign({},n&&{width:n}),i&&{height:i}),c=this.wrap("img",null,Object.assign({src:e,alt:r},a));return this.addRaw(c).addEOL()}addHeading(e,r){let s=`h${r}`,n=["h1","h2","h3","h4","h5","h6"].includes(s)?s:"h1",i=this.wrap(n,e);return this.addRaw(i).addEOL()}addSeparator(){let e=this.wrap("hr",null);return this.addRaw(e).addEOL()}addBreak(){let e=this.wrap("br",null);return this.addRaw(e).addEOL()}addQuote(e,r){let s=Object.assign({},r&&{cite:r}),n=this.wrap("blockquote",e,s);return this.addRaw(n).addEOL()}Line truncated
|
||||
`.trim()},"lookupPropertyFunctionVarDeclaration"),blockValue:o(function(e){var r=this.aliasable("container.hooks.blockHelperMissing"),s=[this.contextName(0)];this.setupHelperArgs(e,0,s);var n=this.popStack();s.splice(1,0,n),this.push(this.source.functionCall(r,"call",s))},"blockValue"),ambiguousBlockValue:o(function(){var e=this.aliasable("container.hooks.blockHelperMissing"),r=[this.contextName(0)];this.setupHelperArgs("",0,r,!0),this.flushInline();var s=this.topStack();r.splice(1,0,s),this.pushSource(["if (!",this.lastHelper,") { ",s," = ",this.source.functionCall(e,"call",r),"}"])},"ambiguousBlockValue"),appendContent:o(function(e){this.pendingContent?e=this.pendingContent+e:this.pendingLocation=this.source.currentLocation,this.pendingContent=e},"appendContent"),append:o(function(){if(this.isInline())this.replaceStack(function(r){return[" != null ? ",r,' : ""']}),this.pushSource(this.appendToBuffer(this.popStack()));else{var e=this.popStack();this.pushSource(["if (",e," != null) { ",this.appendToBuffer(e,void 0,!0)," }"]),this.environment.isSimple&&this.pushSource(["else { ",this.appendToBuffer("''",void 0,!0)," }"])}},"append"),appendEscaped:o(function(){this.pushSource(this.appendToBuffer([this.aliasable("container.escapeExpression"),"(",this.popStack(),")"]))},"appendEscaped"),getContext:o(function(e){this.lastContext=e},"getContext"),pushContext:o(function(){this.pushStackLiteral(this.contextName(this.lastContext))},"pushContext"),lookupOnContext:o(function(e,r,s,n){var i=0;!n&&this.options.compat&&!this.lastContext?this.push(this.depthedLookup(e[i++])):this.pushContext(),this.resolvePath("context",e,i,r,s)},"lookupOnContext"),lookupBlockParam:o(function(e,r){this.useBlockParams=!0,this.push(["blockParams[",e[0],"][",e[1],"]"]),this.resolvePath("context",r,1)},"lookupBlockParam"),lookupData:o(function(e,r,s){e?this.pushStackLiteral("container.data(data, "+e+")"):this.pushStackLiteral("data"),this.resolvePath("data",r,0,!0,s)},"lookupData"),resolvePath:o(function(e,r,s,n,i){var a=this;if(this.options.strict||this.options.assumeObjects){this.push(sve(this.options.strict&&i,this,r,s,e));return}for(var c=r.length,l=o(function(A){a.replaceStack(function(d){var p=a.nameLookup(d,r[A],e);return n?[" && ",p]:[" != null ? ",p," : ",d]})},"_loop"),u=s;u<c;u++)l(u)},"resolvePath"),resolvePossibleLambda:o(function(){this.push([this.aliasable("container.lambda"),"(",this.popStack(),", ",this.contextName(0),")"])},"resolvePossibleLambda"),pushStringParam:o(function(e,r){this.pushContext(),this.pushString(r),r!=="SubExpression"&&(typeof e=="string"?this.pushString(e):this.pushStackLiteral(e))},"pushStringParam"),emptyHash:o(function(e){this.trackIds&&this.push("{}"),this.stringParams&&(this.push("{}"),this.push("{}")),this.pushStackLiteral(e?"undefined":"{}")},"emptyHash"),pushHash:o(function(){this.hash&&this.hashes.push(this.hash),this.hash={values:{},types:[],contexts:[],ids:[]}},"pushHash"),popHash:o(function(){var e=this.hash;this.hash=this.hashes.pop(),this.trackIds&&this.push(this.objectLiteral(e.ids)),this.stringParams&&(this.push(this.objectLiteral(e.contexts)),this.push(this.objectLiteral(e.types))),this.push(this.objectLiteral(e.values))},"popHash"),pushString:o(function(e){this.pushStackLiteral(this.quotedString(e))},"pushString"),pushLiteral:o(function(e){this.pushStackLiteral(e)},"pushLiteral"),pushProgram:o(function(e){e!=null?this.pushStackLiteral(this.programExpression(e)):this.pushStackLiteral(null)},"pushProgram"),registerDecorator:o(function(e,r){var s=this.nameLookup("decorators",r,"decorator"),n=this.setupHelperArgs(r,e);this.decorators.push(["var decorator = ",s,";"]),this.decorators.push(['if (typeof decorator !== "function") { throw new Error(',this.quotedString('Missing decorator: "'+r+'"'),"); }"]),this.decorators.push(["fn = ",this.decorators.functionCall("decorator","",["fn","props","container",n])," || fn;"])},"registerDecorator"),invokeHelper:o(function(e,r,s){var n=this.popStack(),i=this.setupHelper(e,r),a=[];s&&a.push(i.name),a.push(n),this.options.strict||a.push(this.aliasable("container.hooks.helperMissing"));var c=["(",this.itemsSeparatedBy(a,"||"),")"],l=this.source.functionCall(c,"call",i.callParams);this.push(l)},"invokeHelper"),itemsSeparatedBy:o(function(e,r){var s=[];s.push(e[0]);for(var n=1;n<e.length;n++)s.push(r,e[n]);return s},"itemsSeparatedBy"),invokeKnownHelper:o(function(e,r){var s=this.setupHelper(e,r);this.push(this.source.functionCall(s.name,"call",s.callParams))},"invokeKnownHelper"),invokeAmbiguous:o(function(e,r){this.useRegister("helper");var s=this.popStack();this.emptyHash();var n=this.setupHelper(0,e,r),i=this.lastHelper=this.nameLookup("helpers",e,"helper"),a=["(","(helper = ",i," || ",s,")"];this.options.strict||(a[0]="(helper = ",a.push(" != null ? helper : ",this.aliasable("container.hooks.helperMissing"))),this.push(["(",a,n.paramsInit?["),(",n.paramsInit]:[],"),","(typeof helper === ",this.aliasable('"function"')," ? ",this.source.functionCall("h
Line truncated
|
||||
`,e};ut.prototype.Program=function(t){var e="",r=t.body,s=void 0,n=void 0;if(t.blockParams){var i="BLOCK PARAMS: [";for(s=0,n=t.blockParams.length;s<n;s++)i+=" "+t.blockParams[s];i+=" ]",e+=this.pad(i)}for(s=0,n=r.length;s<n;s++)e+=this.accept(r[s]);return this.padding--,e};ut.prototype.MustacheStatement=function(t){return this.pad("{{ "+this.SubExpression(t)+" }}")};ut.prototype.Decorator=function(t){return this.pad("{{ DIRECTIVE "+this.SubExpression(t)+" }}")};ut.prototype.BlockStatement=ut.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};ut.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+" }}")};ut.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+" }}")};ut.prototype.ContentStatement=function(t){return this.pad("CONTENT[ '"+t.value+"' ]")};ut.prototype.CommentStatement=function(t){return this.pad("{{! '"+t.value+"' }}")};ut.prototype.SubExpression=function(t){for(var e=t.params,r=[],s=void 0,n=0,i=e.length;n<i;n++)r.push(this.accept(e[n]));return e="["+r.join(", ")+"]",s=t.hash?" "+this.accept(t.hash):"",this.accept(t.path)+" "+e+s};ut.prototype.PathExpression=function(t){var e=t.parts.join("/");return(t.data?"@":"")+"PATH:"+e};ut.prototype.StringLiteral=function(t){return'"'+t.value+'"'};ut.prototype.NumberLiteral=function(t){return"NUMBER{"+t.value+"}"};ut.prototype.BooleanLiteral=function(t){return"BOOLEAN{"+t.value+"}"};ut.prototype.UndefinedLiteral=function(){return"UNDEFINED"};ut.prototype.NullLiteral=function(){return"NULL"};ut.prototype.Hash=function(t){for(var e=t.pairs,r=[],s=0,n=e.length;s<n;s++)r.push(this.accept(e[s]));return"HASH{"+r.join(", ")+"}"};ut.prototype.HashPair=function(t){return t.key+"="+this.accept(t.value)}});var QD=f((cct,k9)=>{var JI=R9().default,P9=T9();JI.PrintVisitor=P9.PrintVisitor;JI.print=P9.print;k9.exports=JI;function v9(t,e){var r=require("fs"),s=r.readFileSync(e,"utf8");t.exports=JI.compile(s)}o(v9,"extension");typeof require<"u"&&require.extensions&&(require.extensions[".handlebars"]=v9,require.extensions[".hbs"]=v9)});var K9=f((uct,Co)=>{var ke=require("fs"),jI=require("os"),Ot=require("path"),D9=require("crypto"),vi={fs:ke.constants,os:jI.constants},_9="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",F9=/XXXXXX/,yve=3,U9=(vi.O_CREAT||vi.fs.O_CREAT)|(vi.O_EXCL||vi.fs.O_EXCL)|(vi.O_RDWR||vi.fs.O_RDWR),Cve=jI.platform()==="win32",Ive=vi.EBADF||vi.os.errno.EBADF,Bve=vi.ENOENT||vi.os.errno.ENOENT,q9=448,G9=384,wve="exit",uA=[],H9=ke.rmdirSync.bind(ke),z9=!1;function bve(t,e){return ke.rm(t,{recursive:!0},e)}o(bve,"rimraf");function V9(t){return ke.rmSync(t,{recursive:!0})}o(V9,"FN_RIMRAF_SYNC");function RD(t,e){let r=AA(t,e),s=r[0],n=r[1];Dve(s,function(i,a){if(i)return n(i);let c=a.tries;o((function l(){try{let u=Y9(a);ke.stat(u,function(A){if(!A)return c-- >0?l():n(new Error("Could not get a unique tmp filename, max tries reached "+u));n(null,u)})}catch(u){n(u)}}),"_getUniqueName")()})}o(RD,"tmpName");function TD(t){let e=AA(t),r=e[0],s=_ve(r),n=s.tries;do{let i=Y9(s);try{ke.statSync(i)}catch{return i}}while(n-- >0);throw new Error("Could not get a unique tmp filename, max tries reached")}o(TD,"tmpNameSync");function Qve(t,e){let r=AA(t,e),s=r[0],n=r[1];RD(s,o(function(a,c){if(a)return n(a);ke.open(c,U9,s.mode||G9,o(function(u,A){if(u)return n(u);if(s.discardDescriptor)return ke.close(A,o(function(p){return n(p,c,void 0,ND(c,-1,s,!1))},"_discardCallback"));{let d=s.discardDescriptor||s.detachDescriptor;n(null,c,A,ND(c,d?-1:A,s,!1))}},"_fileCreated"))},"_tmpNameCreated"))}o(Qve,"file");function xve(t){let e=AA(t),r=e[0],s=r.discardDescriptor||r.detachDescriptor,n=TD(r),i=ke.openSync(n,U9,r.mode||G9);return r.discardDescriptor&&(ke.closeSync(i),i=void 0),{name:n,fd:i,removeCallback:ND(n,s?-1:i,r,!0)}}o(xve,"fileSync");function Nve(t,e){let r=AA(t,e),s=r[0],n=r[1];RD(s,o(function(a,c){if(a)return n(a);ke.mkdir(c,s.mode||q9,o(function(u){if(u)return n(u);n(null,c,$9(c,s,!1))},"_dirCreated"))},"_tmpNameCreated"))}o(Nve,"dir");function Sve(t){let e=AA(t),r=e[0],s=TD(r);return ke.mkdirSync(s,r.mode||q9),{name:s,removeCallback:$9(s,r,!0)}}o(Sve,"dirSync");function Rve(t,e){let r=o(function(s){if(s&&!SD(s))return e(s);e()},"_handler");0<=t[0]?ke.close(t[0],function(){ke.unlink(t[1],r)}):ke.unlink(t[1],r)}o(Rve,"_removeFileAsync");function
Line truncated
|
||||
Support boolean input list: \`true | True | TRUE | false | False | FALSE\``)}o(bx,"getBooleanInput");function Qx(t,e){if(process.env.GITHUB_OUTPUT||"")return yA("OUTPUT",sh(t,e));process.stdout.write(wx.EOL),kn("set-output",{name:t},Pn(e))}o(Qx,"setOutput");function DG(t){process.exitCode=Bx.Failure,Yl(t)}o(DG,"setFailed");function ja(){return process.env.RUNNER_DEBUG==="1"}o(ja,"isDebug");function b(t){kn("debug",{},t)}o(b,"debug");function Yl(t,e={}){kn("error",kB(e),t instanceof Error?t.toString():t)}o(Yl,"error");function tt(t,e={}){kn("warning",kB(e),t instanceof Error?t.toString():t)}o(tt,"warning");function S(t){process.stdout.write(t+wx.EOL)}o(S,"info");function WAe(t){_B("group",t)}o(WAe,"startGroup");function jAe(){_B("endgroup")}o(jAe,"endGroup");function he(t,e){return JAe(this,void 0,void 0,function*(){WAe(t);let r;try{r=yield e()}finally{jAe()}return r})}o(he,"group");function Jl(t,e){if(process.env.GITHUB_STATE||"")return yA("STATE",sh(t,e));kn("save-state",{name:t},Pn(e))}o(Jl,"saveState");function _G(t){return process.env[`STATE_${t}`]||""}o(_G,"getState");var AI=w(require("fs"),1),vk=w(require("os"),1),Pk=w(require("path"),1);var MG=w(require("os"),1);function Sd(t){return t==null?"":typeof t=="string"||t instanceof String?t:JSON.stringify(t)}o(Sd,"toCommandValue");function OG(t,e,r){let s=new xx(t,e,r);process.stdout.write(s.toString()+MG.EOL)}o(OG,"issueCommand");var LG="::",xx=class{static{o(this,"Command")}constructor(e,r,s){e||(e="missing.command"),this.command=e,this.properties=r,this.message=s}toString(){let e=LG+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let r=!0;for(let s in this.properties)if(this.properties.hasOwnProperty(s)){let n=this.properties[s];n&&(r?r=!1:e+=",",e+=`${s}=${XAe(n)}`)}}return e+=`${LG}${KAe(this.message)}`,e}};function KAe(t){return Sd(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}o(KAe,"escapeData");function XAe(t){return Sd(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}o(XAe,"escapeProperty");var GG=w(require("os"),1);var UG=require("os"),Rd=require("fs");var Nx=function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(a){a(i)})}return o(n,"adopt"),new(r||(r=Promise))(function(i,a){function c(A){try{u(s.next(A))}catch(d){a(d)}}o(c,"fulfilled");function l(A){try{u(s.throw(A))}catch(d){a(d)}}o(l,"rejected");function u(A){A.done?i(A.value):n(A.value).then(c,l)}o(u,"step"),u((s=s.apply(t,e||[])).next())})},{access:ZAe,appendFile:ede,writeFile:tde}=Rd.promises,FG="GITHUB_STEP_SUMMARY";var Sx=class{static{o(this,"Summary")}constructor(){this._buffer=""}filePath(){return Nx(this,void 0,void 0,function*(){if(this._filePath)return this._filePath;let e=process.env[FG];if(!e)throw new Error(`Unable to find environment variable for $${FG}. Check if your runtime environment supports job summaries.`);try{yield ZAe(e,Rd.constants.R_OK|Rd.constants.W_OK)}catch{throw new Error(`Unable to access summary file: '${e}'. Check if the file has correct read/write permissions.`)}return this._filePath=e,this._filePath})}wrap(e,r,s={}){let n=Object.entries(s).map(([i,a])=>` ${i}="${a}"`).join("");return r?`<${e}${n}>${r}</${e}>`:`<${e}${n}>`}write(e){return Nx(this,void 0,void 0,function*(){let r=!!e?.overwrite,s=yield this.filePath();return yield(r?tde:ede)(s,this._buffer,{encoding:"utf8"}),this.emptyBuffer()})}clear(){return Nx(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(UG.EOL)}addCodeBlock(e,r){let s=Object.assign({},r&&{lang:r}),n=this.wrap("pre",this.wrap("code",e),s);return this.addRaw(n).addEOL()}addList(e,r=!1){let s=r?"ol":"ul",n=e.map(a=>this.wrap("li",a)).join(""),i=this.wrap(s,n);return this.addRaw(i).addEOL()}addTable(e){let r=e.map(n=>{let i=n.map(a=>{if(typeof a=="string")return this.wrap("td",a);let{header:c,data:l,colspan:u,rowspan:A}=a,d=c?"th":"td",p=Object.assign(Object.assign({},u&&{colspan:u}),A&&{rowspan:A});return this.wrap(d,l,p)}).join("");return this.wrap("tr",i)}).join(""),s=this.wrap("table",r);return this.addRaw(s).addEOL()}addDetails(e,r){let s=this.wrap("details",this.wrap("summary",e)+r);return this.addRaw(s).addEOL()}addImage(e,r,s){let{width:n,height:i}=s||{},a=Object.assign(Object.assign({},n&&{width:n}),i&&{height:i}),c=this.wrap("img",null,Object.assign({src:e,alt:r},a));return this.addRaw(c).addEOL()}addHeading(e,r){let s=`h${r}`,n=["h1","h2","h3","h4","h5","h6"].includes(s)?s:"h1",i=this.wrap(n,e);return this.addRaw(i).addEOL()}addSeparator(){let e=this.wrap("hr",null);return this.addRaw(e).addEOL()}addBreak(){let e=this.wrap("br",null);return this.addRaw(e).addEOL()}addQuote(e,r){let s=Object.assign({},r&&{cite:r}),n=this.wrap("blockquote",e,s);return this.addRaw(n).addEOL()}Line truncated
|
||||
`),e=e.replace(/\r/g,`
|
||||
`));let n=e.split(`
|
||||
`).map(i=>i.trim());for(let i of n)!i||i.startsWith("#")||s.patterns.push(new Fd(i));return s.searchPaths.push(...r0(s.patterns)),s})}static stat(e,r,s){return c0(this,void 0,void 0,function*(){let n;if(r.followSymbolicLinks)try{n=yield Kl.promises.stat(e.path)}catch(i){if(i.code==="ENOENT"){if(r.omitBrokenSymbolicLinks){Ds(`Broken symlink '${e.path}'`);return}throw new Error(`No information found for the path '${e.path}'. This may indicate a broken symbolic link.`)}throw i}else n=yield Kl.promises.lstat(e.path);if(n.isDirectory()&&r.followSymbolicLinks){let i=yield Kl.promises.realpath(e.path);for(;s.length>=e.level;)s.pop();if(s.some(a=>a===i)){Ds(`Symlink cycle detected for path '${e.path}' and realpath '${i}'`);return}s.push(i)}return n})}};var Lhe=function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(a){a(i)})}return o(n,"adopt"),new(r||(r=Promise))(function(i,a){function c(A){try{u(s.next(A))}catch(d){a(d)}}o(c,"fulfilled");function l(A){try{u(s.throw(A))}catch(d){a(d)}}o(l,"rejected");function u(A){A.done?i(A.value):n(A.value).then(c,l)}o(u,"step"),u((s=s.apply(t,e||[])).next())})};function c$(t,e){return Lhe(this,void 0,void 0,function*(){return yield wg.create(t,e)})}o(c$,"create");var Fg=w(require("crypto"),1),eu=w(require("fs"),1),Za=w(require("path"),1),ZV=w(KV(),1),eY=w(require("util"),1);var Jd;(function(t){t.Gzip="cache.tgz",t.Zstd="cache.tzst"})(Jd||(Jd={}));var Er;(function(t){t.Gzip="gzip",t.ZstdWithoutLong="zstd-without-long",t.Zstd="zstd"})(Er||(Er={}));var as;(function(t){t.GNU="gnu",t.BSD="bsd"})(as||(as={}));var Mg=2,Og=5e3,S0=5e3,R0=`${process.env.PROGRAMFILES}\\Git\\usr\\bin\\tar.exe`,XV=`${process.env.SYSTEMDRIVE}\\Windows\\System32\\tar.exe`,Wd="cache.tar",T0="manifest.txt",ZHe=10*Math.pow(1024,3);var Zl=function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(a){a(i)})}return o(n,"adopt"),new(r||(r=Promise))(function(i,a){function c(A){try{u(s.next(A))}catch(d){a(d)}}o(c,"fulfilled");function l(A){try{u(s.throw(A))}catch(d){a(d)}}o(l,"rejected");function u(A){A.done?i(A.value):n(A.value).then(c,l)}o(u,"step"),u((s=s.apply(t,e||[])).next())})},kEe=function(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],r;return e?e.call(t):(t=typeof __values=="function"?__values(t):t[Symbol.iterator](),r={},s("next"),s("throw"),s("return"),r[Symbol.asyncIterator]=function(){return this},r);function s(i){r[i]=t[i]&&function(a){return new Promise(function(c,l){a=t[i](a),n(c,l,a.done,a.value)})}}function n(i,a,c,l){Promise.resolve(l).then(function(u){i({value:u,done:c})},a)}},DEe="1.0";function jd(){return Zl(this,void 0,void 0,function*(){let t=process.platform==="win32",e=process.env.RUNNER_TEMP||"";if(!e){let s;t?s=process.env.USERPROFILE||"C:\\":process.platform==="darwin"?s="/Users":s="/home",e=Za.join(s,"actions","temp")}let r=Za.join(e,Fg.randomUUID());return yield Ts(r),r})}o(jd,"createTempDirectory");function Jn(t){return eu.statSync(t).size}o(Jn,"getArchiveFileSizeInBytes");function v0(t){return Zl(this,void 0,void 0,function*(){var e,r,s,n,i;let a=[],c=(i=process.env.GITHUB_WORKSPACE)!==null&&i!==void 0?i:process.cwd(),l=yield c$(t.join(`
|
||||
`),{implicitDescendants:!1});try{for(var u=!0,A=kEe(l.globGenerator()),d;d=yield A.next(),e=d.done,!e;u=!0){n=d.value,u=!1;let m=Za.relative(c,n).replace(new RegExp(`\\${Za.sep}`,"g"),"/");b(`Matched: ${m}`),m===""?a.push("."):a.push(`${m}`)}}catch(p){r={error:p}}finally{try{!u&&!e&&(s=A.return)&&(yield s.call(A))}finally{if(r)throw r.error}}return a})}o(v0,"resolvePaths");function Kd(t){return Zl(this,void 0,void 0,function*(){return eY.promisify(eu.unlink)(t)})}o(Kd,"unlinkFile");function tY(t){return Zl(this,arguments,void 0,function*(e,r=[]){let s="";r.push("--version"),b(`Checking ${e} ${r.join(" ")}`);try{yield is(`${e}`,r,{ignoreReturnCode:!0,silent:!0,listeners:{stdout:o(n=>s+=n.toString(),"stdout"),stderr:o(n=>s+=n.toString(),"stderr")}})}catch(n){b(n.message)}return s=s.trim(),b(s),s})}o(tY,"getVersion");function Xd(){return Zl(this,void 0,void 0,function*(){let t=yield tY("zstd",["--quiet"]),e=ZV.clean(t);return b(`zstd version: ${e}`),t===""?Er.Gzip:Er.ZstdWithoutLong})}o(Xd,"getCompressionMethod");function Wo(t){return t===Er.Gzip?Jd.Gzip:Jd.Zstd}o(Wo,"getCacheFileName");function rY(){return Zl(this,void 0,void 0,function*(){return eu.existsSync(R0)?R0:(yield tY("tar")).toLowerCase().includes("gnu tar")?mt("tar"):""})}o(rY,"getGnuTarPathOnWindows");function P0(t,e){if(e===void 0)throw Error(`Expected ${t} but value was undefiend`);return e}o(P0,"assertDefined");function tu(t,e,r=!1){let s=t.slice();return e&&s.push(e),process.platform==="win32"&&!r&&s.push("windows-only"),s.push(DEe),Fg.createHash("sha256").update(s.join("|")).digest("hex")}o(tu,"getCacheVersion");function sY(){let t=process.env.ACTIONS_RUNTIME_TOKEN;if(!t)throw new Error("Unable to get the ACTIONS_RUNTIME_TOKEN env variable");return t}o(sY,"getRuntimeToken");var ep=w(require("http"),1),_0=w(require("https"),1);function k0(t){let e=t.protocol==="https:";if(_Ee(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 qg(r)}catch{if(!r.startsWith("http://")&&!r.startsWith("https://"))return new qg(`http://${r}`)}else return}o(k0,"getProxyUrl");function _Ee(t){if(!t.hostname)return!1;let e=t.hostname;if(LEe(e))return!0;let r=process.env.no_proxy||process.env.NO_PROXY||"";if(!r)return!1;let s;t.port?s=Number(t.port):t.protocol==="http:"?s=80:t.protocol==="https:"&&(s=443);let n=[t.hostname.toUpperCase()];typeof s=="number"&&n.push(`${n[0]}:${s}`);for(let i of r.split(",").map(a=>a.trim().toUpperCase()).filter(a=>a))if(i==="*"||n.some(a=>a===i||a.endsWith(`.${i}`)||i.startsWith(".")&&a.endsWith(`${i}`)))return!0;return!1}o(_Ee,"checkBypass");function LEe(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(LEe,"isLoopbackAddress");var qg=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 jo=w(gA(),1),nY=w(Ul(),1);var ft=function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(a){a(i)})}return o(n,"adopt"),new(r||(r=Promise))(function(i,a){function c(A){try{u(s.next(A))}catch(d){a(d)}}o(c,"fulfilled");function l(A){try{u(s.throw(A))}catch(d){a(d)}}o(l,"rejected");function u(A){A.done?i(A.value):n(A.value).then(c,l)}o(u,"step"),u((s=s.apply(t,e||[])).next())})},tt;(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"})(tt||(tt={}));var yr;(function(t){t.Accept="accept",t.ContentType="content-type"})(yr||(yr={}));var Xi;(function(t){t.ApplicationJson="application/json"})(Xi||(Xi={}));var OEe=[tt.MovedPermanently,tt.ResourceMoved,tt.SeeOther,tt.TemporaryRedirect,tt.PermanentRedirect],FEe=[tt.BadGateway,tt.ServiceUnavailable,tt.GatewayTimeout],UEe=["OPTIONS","GET","DELETE","HEAD"],qEe=10,GEe=5,Wn=class t extends Error{static{o(this,"HttpClientError")}constructor(e,r)
Line truncated
|
||||
${KEe.sanitize({...this,request:{...this.request,agent:s},response:this.response})}`,"value"),enumerable:!1}),Object.setPrototypeOf(this,t.prototype)}};function Yg(t){return t instanceof Cr?!0:tc(t)&&t.name==="RestError"}o(Yg,"isRestError");function Lr(t,e){return Buffer.from(t,e)}o(Lr,"stringToUint8Array");var Jg=w(require("node:http"),1),Wg=w(require("node:https"),1),$0=w(require("node:zlib"),1),BY=require("node:stream");var Ms=tp("ts-http-runtime");var XEe={};function rp(t){return t&&typeof t.pipe=="function"}o(rp,"isReadableStream");function IY(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(IY,"isStreamComplete");function wY(t){return t&&typeof t.byteLength=="number"}o(wY,"isArrayBuffer");var jg=class extends BY.Transform{static{o(this,"ReportTransform")}loadedBytes=0;progressCallback;_transform(e,r,s){this.push(e),this.loadedBytes+=e.length;try{this.progressCallback({loadedBytes:this.loadedBytes}),s()}catch(n){s(n)}}constructor(e){super(),this.progressCallback=e}},V0=class{static{o(this,"NodeHttpClient")}cachedHttpAgent;cachedHttpsAgents=new WeakMap;async sendRequest(e){let r=new AbortController,s;if(e.abortSignal){if(e.abortSignal.aborted)throw new jn("The operation was aborted. Request has already been canceled.");s=o(u=>{u.type==="abort"&&r.abort()},"abortListener"),e.abortSignal.addEventListener("abort",s)}let n;e.timeout>0&&(n=setTimeout(()=>{let u=new En;Ms.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=rye(c);u!==null&&e.headers.set("Content-Length",u)}let l;try{if(c&&e.onUploadProgress){let h=e.onUploadProgress,g=new jg(h);g.on("error",C=>{Ms.error("Error in upload progress",C)}),rp(c)?c.pipe(g):g.end(c),c=g}let u=await this.makeRequest(e,r,c);n!==void 0&&clearTimeout(n);let A=ZEe(u),p={status:u.statusCode??0,headers:A,request:e};if(e.method==="HEAD")return u.resume(),p;l=a?eye(u,A):u;let m=e.onDownloadProgress;if(m){let h=new jg(m);h.on("error",g=>{Ms.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 tye(l),p}finally{if(e.abortSignal&&s){let u=Promise.resolve();rp(c)&&(u=IY(c));let A=Promise.resolve();rp(l)&&(A=IY(l)),Promise.all([u,A]).then(()=>{s&&e.abortSignal?.removeEventListener("abort",s)}).catch(d=>{Ms.warning("Error when cleaning up abortListener on httpRequest",d)})}}}makeRequest(e,r,s){let n=new URL(e.url),i=n.protocol!=="https:";if(i&&!e.allowInsecureConnection)throw new Error(`Cannot connect to ${e.url} while allowInsecureConnection is false.`);let c={agent:e.agent??this.getOrCreateAgent(e,i),hostname:n.hostname,path:`${n.pathname}${n.search}`,port:n.port,method:e.method,headers:e.headers.toJSON({preserveCase:!0}),...e.requestOverrides};return new Promise((l,u)=>{let A=i?Jg.default.request(c,l):Wg.default.request(c,l);A.once("error",d=>{u(new Cr(d.message,{code:d.code??Cr.REQUEST_SEND_ERROR,request:e}))}),r.signal.addEventListener("abort",()=>{let d=new jn("The operation was aborted. Rejecting from abort signal callback while making request.");A.destroy(d),u(d)}),s&&rp(s)?s.pipe(A):s?typeof s=="string"||Buffer.isBuffer(s)?A.end(s):wY(s)?A.end(ArrayBuffer.isView(s)?Buffer.from(s.buffer):Buffer.from(s)):(Ms.error("Unrecognized body type",s),u(new Cr("Unrecognized body type"))):A.end()})}getOrCreateAgent(e,r){let s=e.disableKeepAlive;if(r)return s?Jg.default.globalAgent:(this.cachedHttpAgent||(this.cachedHttpAgent=new Jg.default.Agent({keepAlive:!0})),this.cachedHttpAgent);{if(s&&!e.tlsSettings)return Wg.default.globalAgent;let n=e.tlsSettings??XEe,i=this.cachedHttpsAgents.get(n);return i&&i.options.keepAlive===!s||(Ms.info("No cached TLS Agent exist, creating a new Agent"),i=new Wg.default.Agent({keepAlive:!s,...n}),this.cachedHttpsAgents.set(n,i)),i}}};function ZEe(t){let e=cs();for(let r of Object.keys(t.headers)){let s=t.headers[r];Array.isArray(s)?s.length>0&&e.set(r,s[0]):s&&e.set(r,s)}return e}o(ZEe,"getResponseHeaders");function eye(t,e){let r=e.get("Content-Encoding");if(r==="gzip"){let s=$0.default.createGunzip();return t.pipe(s),s}else if(r==="deflate"){let s=$0.default.createInflate();return t.pipe(s),s}return t}o(eye,"getDecodedResponseStream");function tye(t){return new Promise((e,r)=>{let s=[];t.on("data",n=>{Buffer.isBuffer(n)?s.push(n):s.push(Buffer.from(n))}),t.on("end",()=>{e(Buffer.concat(s).toString("utf8"))}),t.on("error",n=>{n&&n?.name==="AbortError"?r(n):r(new Cr(`Error reading response as text: ${n.message}`,{code:Cr.PARSE_ERROR}))})})}o(tye,"streamToText");function rye(t){return t?Buffer.isBuffer(t)?t.length:rp(t)?nul
Line truncated
|
||||
`;return e}o(wCe,"encodeHeaders");function bCe(t){return t instanceof Uint8Array?t.byteLength:yE(t)?t.size===-1?void 0:t.size:void 0}o(bCe,"getLength");function QCe(t){let e=0;for(let r of t){let s=bCe(r);if(s===void 0)return;e+=s}return e}o(QCe,"getTotalLength");async function xCe(t,e,r){let s=[Lr(`--${r}`,"utf-8"),...e.flatMap(i=>[Lr(`\r
|
||||
`,"utf-8"),Lr(wCe(i.headers),"utf-8"),Lr(`\r
|
||||
`).map(i=>i.trim());for(let i of n)!i||i.startsWith("#")||s.patterns.push(new Hd(i));return s.searchPaths.push(...c0(s.patterns)),s})}static stat(e,r,s){return m0(this,void 0,void 0,function*(){let n;if(r.followSymbolicLinks)try{n=yield eu.promises.stat(e.path)}catch(i){if(i.code==="ENOENT"){if(r.omitBrokenSymbolicLinks){_s(`Broken symlink '${e.path}'`);return}throw new Error(`No information found for the path '${e.path}'. This may indicate a broken symbolic link.`)}throw i}else n=yield eu.promises.lstat(e.path);if(n.isDirectory()&&r.followSymbolicLinks){let i=yield eu.promises.realpath(e.path);for(;s.length>=e.level;)s.pop();if(s.some(a=>a===i)){_s(`Symlink cycle detected for path '${e.path}' and realpath '${i}'`);return}s.push(i)}return n})}};var Ghe=function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(a){a(i)})}return o(n,"adopt"),new(r||(r=Promise))(function(i,a){function c(A){try{u(s.next(A))}catch(d){a(d)}}o(c,"fulfilled");function l(A){try{u(s.throw(A))}catch(d){a(d)}}o(l,"rejected");function u(A){A.done?i(A.value):n(A.value).then(c,l)}o(u,"step"),u((s=s.apply(t,e||[])).next())})};function EV(t,e){return Ghe(this,void 0,void 0,function*(){return yield Ng.create(t,e)})}o(EV,"create");var Hg=w(require("crypto"),1),su=w(require("fs"),1),rc=w(require("path"),1),lY=w(aY(),1),uY=w(require("util"),1);var Xd;(function(t){t.Gzip="cache.tgz",t.Zstd="cache.tzst"})(Xd||(Xd={}));var Er;(function(t){t.Gzip="gzip",t.ZstdWithoutLong="zstd-without-long",t.Zstd="zstd"})(Er||(Er={}));var ls;(function(t){t.GNU="gnu",t.BSD="bsd"})(ls||(ls={}));var qg=2,Gg=5e3,D0=5e3,_0=`${process.env.PROGRAMFILES}\\Git\\usr\\bin\\tar.exe`,cY=`${process.env.SYSTEMDRIVE}\\Windows\\System32\\tar.exe`,Zd="cache.tar",L0="manifest.txt",ize=10*Math.pow(1024,3);var ru=function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(a){a(i)})}return o(n,"adopt"),new(r||(r=Promise))(function(i,a){function c(A){try{u(s.next(A))}catch(d){a(d)}}o(c,"fulfilled");function l(A){try{u(s.throw(A))}catch(d){a(d)}}o(l,"rejected");function u(A){A.done?i(A.value):n(A.value).then(c,l)}o(u,"step"),u((s=s.apply(t,e||[])).next())})},FEe=function(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],r;return e?e.call(t):(t=typeof __values=="function"?__values(t):t[Symbol.iterator](),r={},s("next"),s("throw"),s("return"),r[Symbol.asyncIterator]=function(){return this},r);function s(i){r[i]=t[i]&&function(a){return new Promise(function(c,l){a=t[i](a),n(c,l,a.done,a.value)})}}function n(i,a,c,l){Promise.resolve(l).then(function(u){i({value:u,done:c})},a)}},UEe="1.0";function ep(){return ru(this,void 0,void 0,function*(){let t=process.platform==="win32",e=process.env.RUNNER_TEMP||"";if(!e){let s;t?s=process.env.USERPROFILE||"C:\\":process.platform==="darwin"?s="/Users":s="/home",e=rc.join(s,"actions","temp")}let r=rc.join(e,Hg.randomUUID());return yield vs(r),r})}o(ep,"createTempDirectory");function Jn(t){return su.statSync(t).size}o(Jn,"getArchiveFileSizeInBytes");function M0(t){return ru(this,void 0,void 0,function*(){var e,r,s,n,i;let a=[],c=(i=process.env.GITHUB_WORKSPACE)!==null&&i!==void 0?i:process.cwd(),l=yield EV(t.join(`
|
||||
`),{implicitDescendants:!1});try{for(var u=!0,A=FEe(l.globGenerator()),d;d=yield A.next(),e=d.done,!e;u=!0){n=d.value,u=!1;let m=rc.relative(c,n).replace(new RegExp(`\\${rc.sep}`,"g"),"/");b(`Matched: ${m}`),m===""?a.push("."):a.push(`${m}`)}}catch(p){r={error:p}}finally{try{!u&&!e&&(s=A.return)&&(yield s.call(A))}finally{if(r)throw r.error}}return a})}o(M0,"resolvePaths");function tp(t){return ru(this,void 0,void 0,function*(){return uY.promisify(su.unlink)(t)})}o(tp,"unlinkFile");function AY(t){return ru(this,arguments,void 0,function*(e,r=[]){let s="";r.push("--version"),b(`Checking ${e} ${r.join(" ")}`);try{yield as(`${e}`,r,{ignoreReturnCode:!0,silent:!0,listeners:{stdout:o(n=>s+=n.toString(),"stdout"),stderr:o(n=>s+=n.toString(),"stderr")}})}catch(n){b(n.message)}return s=s.trim(),b(s),s})}o(AY,"getVersion");function rp(){return ru(this,void 0,void 0,function*(){let t=yield AY("zstd",["--quiet"]),e=lY.clean(t);return b(`zstd version: ${e}`),t===""?Er.Gzip:Er.ZstdWithoutLong})}o(rp,"getCompressionMethod");function Wo(t){return t===Er.Gzip?Xd.Gzip:Xd.Zstd}o(Wo,"getCacheFileName");function dY(){return ru(this,void 0,void 0,function*(){return su.existsSync(_0)?_0:(yield AY("tar")).toLowerCase().includes("gnu tar")?ht("tar"):""})}o(dY,"getGnuTarPathOnWindows");function O0(t,e){if(e===void 0)throw Error(`Expected ${t} but value was undefiend`);return e}o(O0,"assertDefined");function nu(t,e,r=!1){let s=t.slice();return e&&s.push(e),process.platform==="win32"&&!r&&s.push("windows-only"),s.push(UEe),Hg.createHash("sha256").update(s.join("|")).digest("hex")}o(nu,"getCacheVersion");function pY(){let t=process.env.ACTIONS_RUNTIME_TOKEN;if(!t)throw new Error("Unable to get the ACTIONS_RUNTIME_TOKEN env variable");return t}o(pY,"getRuntimeToken");var np=w(require("http"),1),q0=w(require("https"),1);function F0(t){let e=t.protocol==="https:";if(qEe(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 Vg(r)}catch{if(!r.startsWith("http://")&&!r.startsWith("https://"))return new Vg(`http://${r}`)}else return}o(F0,"getProxyUrl");function qEe(t){if(!t.hostname)return!1;let e=t.hostname;if(GEe(e))return!0;let r=process.env.no_proxy||process.env.NO_PROXY||"";if(!r)return!1;let s;t.port?s=Number(t.port):t.protocol==="http:"?s=80:t.protocol==="https:"&&(s=443);let n=[t.hostname.toUpperCase()];typeof s=="number"&&n.push(`${n[0]}:${s}`);for(let i of r.split(",").map(a=>a.trim().toUpperCase()).filter(a=>a))if(i==="*"||n.some(a=>a===i||a.endsWith(`.${i}`)||i.startsWith(".")&&a.endsWith(`${i}`)))return!0;return!1}o(qEe,"checkBypass");function GEe(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(GEe,"isLoopbackAddress");var Vg=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 jo=w(CA(),1),mY=w(Hl(),1);var gt=function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(a){a(i)})}return o(n,"adopt"),new(r||(r=Promise))(function(i,a){function c(A){try{u(s.next(A))}catch(d){a(d)}}o(c,"fulfilled");function l(A){try{u(s.throw(A))}catch(d){a(d)}}o(l,"rejected");function u(A){A.done?i(A.value):n(A.value).then(c,l)}o(u,"step"),u((s=s.apply(t,e||[])).next())})},rt;(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"})(rt||(rt={}));var yr;(function(t){t.Accept="accept",t.ContentType="content-type"})(yr||(yr={}));var Zi;(function(t){t.ApplicationJson="application/json"})(Zi||(Zi={}));var zEe=[rt.MovedPermanently,rt.ResourceMoved,rt.SeeOther,rt.TemporaryRedirect,rt.PermanentRedirect],VEe=[rt.BadGateway,rt.ServiceUnavailable,rt.GatewayTimeout],$Ee=["OPTIONS","GET","DELETE","HEAD"],YEe=10,JEe=5,Wn=class t extends Error{static{o(this,"HttpClientError")}constructor(e,r)
Line truncated
|
||||
${sye.sanitize({...this,request:{...this.request,agent:s},response:this.response})}`,"value"),enumerable:!1}),Object.setPrototypeOf(this,t.prototype)}};function Kg(t){return t instanceof Cr?!0:nc(t)&&t.name==="RestError"}o(Kg,"isRestError");function Lr(t,e){return Buffer.from(t,e)}o(Lr,"stringToUint8Array");var Xg=w(require("node:http"),1),Zg=w(require("node:https"),1),K0=w(require("node:zlib"),1),PY=require("node:stream");var Os=ip("ts-http-runtime");var nye={};function op(t){return t&&typeof t.pipe=="function"}o(op,"isReadableStream");function vY(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(vY,"isStreamComplete");function kY(t){return t&&typeof t.byteLength=="number"}o(kY,"isArrayBuffer");var eE=class extends PY.Transform{static{o(this,"ReportTransform")}loadedBytes=0;progressCallback;_transform(e,r,s){this.push(e),this.loadedBytes+=e.length;try{this.progressCallback({loadedBytes:this.loadedBytes}),s()}catch(n){s(n)}}constructor(e){super(),this.progressCallback=e}},X0=class{static{o(this,"NodeHttpClient")}cachedHttpAgent;cachedHttpsAgents=new WeakMap;async sendRequest(e){let r=new AbortController,s;if(e.abortSignal){if(e.abortSignal.aborted)throw new jn("The operation was aborted. Request has already been canceled.");s=o(u=>{u.type==="abort"&&r.abort()},"abortListener"),e.abortSignal.addEventListener("abort",s)}let n;e.timeout>0&&(n=setTimeout(()=>{let u=new yn;Os.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=cye(c);u!==null&&e.headers.set("Content-Length",u)}let l;try{if(c&&e.onUploadProgress){let h=e.onUploadProgress,g=new eE(h);g.on("error",C=>{Os.error("Error in upload progress",C)}),op(c)?c.pipe(g):g.end(c),c=g}let u=await this.makeRequest(e,r,c);n!==void 0&&clearTimeout(n);let A=iye(u),p={status:u.statusCode??0,headers:A,request:e};if(e.method==="HEAD")return u.resume(),p;l=a?oye(u,A):u;let m=e.onDownloadProgress;if(m){let h=new eE(m);h.on("error",g=>{Os.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 aye(l),p}finally{if(e.abortSignal&&s){let u=Promise.resolve();op(c)&&(u=vY(c));let A=Promise.resolve();op(l)&&(A=vY(l)),Promise.all([u,A]).then(()=>{s&&e.abortSignal?.removeEventListener("abort",s)}).catch(d=>{Os.warning("Error when cleaning up abortListener on httpRequest",d)})}}}makeRequest(e,r,s){let n=new URL(e.url),i=n.protocol!=="https:";if(i&&!e.allowInsecureConnection)throw new Error(`Cannot connect to ${e.url} while allowInsecureConnection is false.`);let c={agent:e.agent??this.getOrCreateAgent(e,i),hostname:n.hostname,path:`${n.pathname}${n.search}`,port:n.port,method:e.method,headers:e.headers.toJSON({preserveCase:!0}),...e.requestOverrides};return new Promise((l,u)=>{let A=i?Xg.default.request(c,l):Zg.default.request(c,l);A.once("error",d=>{u(new Cr(d.message,{code:d.code??Cr.REQUEST_SEND_ERROR,request:e}))}),r.signal.addEventListener("abort",()=>{let d=new jn("The operation was aborted. Rejecting from abort signal callback while making request.");A.destroy(d),u(d)}),s&&op(s)?s.pipe(A):s?typeof s=="string"||Buffer.isBuffer(s)?A.end(s):kY(s)?A.end(ArrayBuffer.isView(s)?Buffer.from(s.buffer):Buffer.from(s)):(Os.error("Unrecognized body type",s),u(new Cr("Unrecognized body type"))):A.end()})}getOrCreateAgent(e,r){let s=e.disableKeepAlive;if(r)return s?Xg.default.globalAgent:(this.cachedHttpAgent||(this.cachedHttpAgent=new Xg.default.Agent({keepAlive:!0})),this.cachedHttpAgent);{if(s&&!e.tlsSettings)return Zg.default.globalAgent;let n=e.tlsSettings??nye,i=this.cachedHttpsAgents.get(n);return i&&i.options.keepAlive===!s||(Os.info("No cached TLS Agent exist, creating a new Agent"),i=new Zg.default.Agent({keepAlive:!s,...n}),this.cachedHttpsAgents.set(n,i)),i}}};function iye(t){let e=us();for(let r of Object.keys(t.headers)){let s=t.headers[r];Array.isArray(s)?s.length>0&&e.set(r,s[0]):s&&e.set(r,s)}return e}o(iye,"getResponseHeaders");function oye(t,e){let r=e.get("Content-Encoding");if(r==="gzip"){let s=K0.default.createGunzip();return t.pipe(s),s}else if(r==="deflate"){let s=K0.default.createInflate();return t.pipe(s),s}return t}o(oye,"getDecodedResponseStream");function aye(t){return new Promise((e,r)=>{let s=[];t.on("data",n=>{Buffer.isBuffer(n)?s.push(n):s.push(Buffer.from(n))}),t.on("end",()=>{e(Buffer.concat(s).toString("utf8"))}),t.on("error",n=>{n&&n?.name==="AbortError"?r(n):r(new Cr(`Error reading response as text: ${n.message}`,{code:Cr.PARSE_ERROR}))})})}o(aye,"streamToText");function cye(t){return t?Buffer.isBuffer(t)?t.length:op(t)?nul
Line truncated
|
||||
`;return e}o(RCe,"encodeHeaders");function TCe(t){return t instanceof Uint8Array?t.byteLength:wE(t)?t.size===-1?void 0:t.size:void 0}o(TCe,"getLength");function vCe(t){let e=0;for(let r of t){let s=TCe(r);if(s===void 0)return;e+=s}return e}o(vCe,"getTotalLength");async function PCe(t,e,r){let s=[Lr(`--${r}`,"utf-8"),...e.flatMap(i=>[Lr(`\r
|
||||
`,"utf-8"),Lr(RCe(i.headers),"utf-8"),Lr(`\r
|
||||
`,"utf-8"),i.body,Lr(`\r
|
||||
--${r}`,"utf-8")]),Lr(`--\r
|
||||
\r
|
||||
`,"utf-8")],n=QCe(s);n&&t.headers.set("Content-Length",n),t.body=await yJ(s)}o(xCe,"buildRequestBody");var op="multipartPolicy",NCe=70,SCe=new Set("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'()+,-./:=?");function RCe(t){if(t.length>NCe)throw new Error(`Multipart boundary "${t}" exceeds maximum length of 70 characters`);if(Array.from(t).some(e=>!SCe.has(e)))throw new Error(`Multipart boundary "${t}" contains invalid characters`)}o(RCe,"assertValidBoundary");function IE(){return{name:op,async sendRequest(t,e){if(!t.multipartBody)return e(t);if(t.body)throw new Error("multipartBody and regular body cannot be set at the same time");let r=t.multipartBody.boundary,s=t.headers.get("Content-Type")??"multipart/mixed",n=s.match(/^(multipart\/[^ ;]+)(?:; *boundary=(.+))?$/);if(!n)throw new Error(`Got multipart request body, but content-type header was not multipart: ${s}`);let[,i,a]=n;if(a&&r&&a!==r)throw new Error(`Multipart boundary was specified as ${a} in the header, but got ${r} in the request body`);return r??=a,r?RCe(r):r=BCe(),t.headers.set("Content-Type",`${i}; boundary=${r}`),await xCe(t,t.multipartBody.parts,r),t.multipartBody=void 0,e(t)}}}o(IE,"multipartPolicy");function BE(){return Vg()}o(BE,"createEmptyPipeline");var CJ=Hg({logLevelEnvVarName:"AZURE_LOG_LEVEL",namespace:"azure"}),YJe=CJ.logger;function Xn(t){return CJ.createClientLogger(t)}o(Xn,"createClientLogger");var Zn=Xn("core-rest-pipeline");function uN(t={}){return Xg({logger:Zn.info,...t})}o(uN,"logPolicy");var AN=Zg;function dN(t={}){return eE(t)}o(dN,"redirectPolicy");var wE=w(require("node:os"),1),bE=w(require("node:process"),1);function IJ(){return"User-Agent"}o(IJ,"getHeaderName");async function BJ(t){if(bE.default&&bE.default.versions){let e=`${wE.default.type()} ${wE.default.release()}; ${wE.default.arch()}`,r=bE.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(BJ,"setPlatformSpecificData");var QE="1.22.2";function MCe(t){let e=[];for(let[r,s]of t){let n=s?`${r}/${s}`:r;e.push(n)}return e.join(" ")}o(MCe,"getUserAgentString");function wJ(){return IJ()}o(wJ,"getUserAgentHeaderName");async function xE(t){let e=new Map;e.set("core-rest-pipeline",QE),await BJ(e);let r=MCe(e);return t?`${t} ${r}`:r}o(xE,"getUserAgentValue");var bJ=wJ(),QJ="userAgentPolicy";function pN(t={}){let e=xE(t.userAgentPrefix);return{name:QJ,async sendRequest(r,s){return r.headers.has(bJ)||r.headers.set(bJ,await e),s(r)}}}o(pN,"userAgentPolicy");var As=class extends Error{static{o(this,"AbortError")}constructor(e){super(e),this.name="AbortError"}};function mN(t,e){let{cleanupBeforeAbort:r,abortSignal:s,abortErrorMsg:n}=e??{};return new Promise((i,a)=>{function c(){a(new As(n??"The operation was aborted."))}o(c,"rejectOnAbort");function l(){s?.removeEventListener("abort",u)}o(l,"removeListeners");function u(){r?.(),l(),c()}if(o(u,"onAbort"),s?.aborted)return c();try{t(A=>{l(),i(A)},A=>{l(),a(A)})}catch(A){a(A)}s?.addEventListener("abort",u)})}o(mN,"createAbortablePromise");var GCe="The delay was aborted.";function ap(t,e){let r,{abortSignal:s,abortErrorMsg:n}=e??{};return mN(i=>{r=setTimeout(i,t)},{cleanupBeforeAbort:o(()=>clearTimeout(r),"cleanupBeforeAbort"),abortSignal:s,abortErrorMsg:n??GCe})}o(ap,"delay");function Xo(t){if(tc(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(Xo,"getErrorMessage");function xJ(t){return tc(t)}o(xJ,"isError");function uu(){return ec()}o(uu,"randomUUID");var Ne=nc;var NJ=Symbol("rawContent");function fN(t){return typeof t[NJ]=="function"}o(fN,"hasRawContent");function SJ(t){return fN(t)?t[NJ]():t}o(SJ,"getRawContent");var NE=op;function gN(){let t=IE();return{name:NE,sendRequest:o(async(e,r)=>{if(e.multipartBody)for(let s of e.multipartBody.parts)fN(s.body)&&(s.body=SJ(s.body));return t.sendRequest(e,r)},"sendRequest")}}o(gN,"multipartPolicy");var EN=tE;function yN(){return rE()}o(yN,"decompressResponsePolicy");function CN(t={}){return iE(t)}o(CN,"defaultRetryPolicy");function IN(){return oE()}o(IN,"formDataPolicy");function Zo(t){return iN(t)}o(Zo,"getDefaultProxySettings");function BN(t,e){return fE(t,e)}o(BN,"proxyPolicy");var RJ="setClientRequestIdPolicy";function wN(t="x-ms-client-request-id"){return{name:RJ,async sendRequest(e,r){return e.headers.has(t)||e.headers.set(t,e.requestId),r(e)}}}o(wN,"setClientRequestIdPolicy");function bN(t){return gE(t)}o(bN,"agentPolicy");function QN(t){return EE(t)}o(QN,"tlsPolicy");var Au={span:Symbol.for("@azure/core-tracing span"),namespace:Symbol.for("@azure/core-tracing namespace")};function TJ(t={}){let e=new xN(t.parentContext);return t.span&&(e=e.setValue(Au.span,t.span)),t.namespace&&(e=e.setValue(Au.namespace,t.namespace)),e}o(TJ,"createTracingContext");var xN=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--),!dBe(l)){let d;return l.trim().length===0?d="Invalid space after '<'.":d="Tag '"+l+"' is an invalid name.",gt("InvalidTag",d,Ir(t,i))}let u=aBe(t,i);if(u===!1)return gt("InvalidAttr","Attributes for '"+l+"' have open quote.",Ir(t,i));let A=u.value;if(i=u.index,A[A.length-1]==="/"){let d=i-A.length;A=A.substring(0,A.length-1);let p=p3(A,e);if(p===!0)s=!0;else return gt(p.err.code,p.err.msg,Ir(t,d+p.err.line))}else if(c)if(u.tagClosed){if(A.trim().length>0)return gt("InvalidTag","Closing tag '"+l+"' can't have attributes or invalid starting.",Ir(t,a));if(r.length===0)return gt("InvalidTag","Closing tag '"+l+"' has not been opened.",Ir(t,a));{let d=r.pop();if(l!==d.tagName){let p=Ir(t,d.tagStartPos);return gt("InvalidTag","Expected closing tag '"+d.tagName+"' (opened in line "+p.line+", col "+p.col+") instead of closing tag '"+l+"'.",Ir(t,a))}r.length==0&&(n=!0)}}else return gt("InvalidTag","Closing tag '"+l+"' doesn't have proper closing.",Ir(t,i));else{let d=p3(A,e);if(d!==!0)return gt(d.err.code,d.err.msg,Ir(t,i-A.length+d.err.line));if(n===!0)return gt("InvalidXml","Multiple possible root nodes found.",Ir(t,i));e.unpairedTags.indexOf(l)!==-1||r.push({tagName:l,tagStartPos:a}),s=!0}for(i++;i<t.length;i++)if(t[i]==="<")if(t[i+1]==="!"){i++,i=d3(t,i);continue}else if(t[i+1]==="?"){if(i=A3(t,++i),i.err)return i}else break;else if(t[i]==="&"){let d=uBe(t,i);if(d==-1)return gt("InvalidChar","char '&' is not expected.",Ir(t,i));i=d}else if(n===!0&&!u3(t[i]))return gt("InvalidXml","Extra text at the end",Ir(t,i));t[i]==="<"&&i--}}else{if(u3(t[i]))continue;return gt("InvalidChar","char '"+t[i]+"' is not expected.",Ir(t,i))}if(s){if(r.length==1)return gt("InvalidTag","Unclosed tag '"+r[0].tagName+"'.",Ir(t,r[0].tagStartPos));if(r.length>0)return gt("InvalidXml","Invalid '"+JSON.stringify(r.map(i=>i.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}else return gt("InvalidXml","Start tag expected.",1);return!0}o(UE,"validate");function u3(t){return t===" "||t===" "||t===`
|
||||
`||t==="\r"}o(u3,"isWhiteSpace");function A3(t,e){let r=e;for(;e<t.length;e++)if(t[e]=="?"||t[e]==" "){let s=t.substr(r,e-r);if(e>5&&s==="xml")return gt("InvalidXml","XML declaration allowed only at the start of the document.",Ir(t,e));if(t[e]=="?"&&t[e+1]==">"){e++;break}else continue}return e}o(A3,"readPI");function d3(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(d3,"readCommentAndCDATA");var iBe='"',oBe="'";function aBe(t,e){let r="",s="",n=!1;for(;e<t.length;e++){if(t[e]===iBe||t[e]===oBe)s===""?s=t[e]:s!==t[e]||(s="");else if(t[e]===">"&&s===""){n=!0;break}r+=t[e]}return s!==""?!1:{value:r,index:e,tagClosed:n}}o(aBe,"readAttributeStr");var cBe=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function p3(t,e){let r=OE(t,cBe),s={};for(let n=0;n<r.length;n++){if(r[n][1].length===0)return gt("InvalidAttr","Attribute '"+r[n][2]+"' has no space in starting.",yp(r[n]));if(r[n][3]!==void 0&&r[n][4]===void 0)return gt("InvalidAttr","Attribute '"+r[n][2]+"' is without value.",yp(r[n]));if(r[n][3]===void 0&&!e.allowBooleanAttributes)return gt("InvalidAttr","boolean attribute '"+r[n][2]+"' is not allowed.",yp(r[n]));let i=r[n][2];if(!ABe(i))return gt("InvalidAttr","Attribute '"+i+"' is an invalid name.",yp(r[n]));if(!Object.prototype.hasOwnProperty.call(s,i))s[i]=1;else return gt("InvalidAttr","Attribute '"+i+"' is repeated.",yp(r[n]))}return!0}o(p3,"validateAttributeString");function lBe(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(lBe,"validateNumberAmpersand");function uBe(t,e){if(e++,t[e]===";")return-1;if(t[e]==="#")return e++,lBe(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(uBe,"validateAmpersand");function gt(t,e,r){return{err:{code:t,msg:e,line:r.line||r,col:r.col}}}o(gt,"getErrorObject");function ABe(t){return mu(t)}o(ABe,"validateAttrName");function dBe(t){return mu(t)}o(dBe,"validateTagName");function Ir(t,e){let r=t.substring(0,e).split(/\r?\n/);return{line:r.length,col:r[r.length-1].length+1}}o(Ir,"getLineNumberForPosition");function yp(t){return t.startIndex+t[1].length}o(yp,"getPositionFromMatch");var m3={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"},h3={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"},f3={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 Fr("!xml"),r=e,s="";this.matcher.reset(),this.entityDecoder.reset(),this.entityExpansionCount=0,this.currentExpandedLength=0;let n=this.options,i=new Bp(n.processEntities),a=t.length;for(let c=0;c<a;c++)if(t[c]==="<"){let u=t.charCodeAt(c+1);if(u===47){let A=gu(t,">",c,"Closing Tag is not closed."),d=t.substring(c+2,A).trim();if(n.removeNSPrefix){let m=d.indexOf(":");m!==-1&&(d=d.substr(m+1))}d=jN(n.transformTagName,d,"",n).tagName,r&&(s=this.saveTextToParentTag(s,r,this.readonlyMatcher));let p=this.matcher.getCurrentTag();if(d&&n.unpairedTagsSet.has(d))throw new Error(`Unpaired tag can not be used as closing tag: </${d}>`);p&&n.unpairedTagsSet.has(p)&&(this.matcher.pop(),this.tagsNodeStack.pop()),this.matcher.pop(),this.isCurrentNodeStopNode=!1,r=this.tagsNodeStack.pop(),s="",c=A}else if(u===63){let A=KN(t,c,!1,"?>");if(!A)throw new Error("Pi Tag is not closed.");s=this.saveTextToParentTag(s,r,this.readonlyMatcher);let d=this.buildAttributesMap(A.tagExp,this.matcher,A.tagName,!0);if(d){let p=d[this.options.attributeNamePrefix+"version"];this.entityDecoder.setXmlVersion(Number(p)||1)}if(!(n.ignoreDeclaration&&A.tagName==="?xml"||n.ignorePiTags)){let p=new Fr(A.tagName);p.add(n.textNodeName,""),A.tagName!==A.tagExp&&A.attrExpPresent&&n.ignoreAttributes!==!0&&(p[":@"]=d),this.addChild(r,p,this.readonlyMatcher,c)}c=A.closeIndex+1}else if(u===33&&t.charCodeAt(c+2)===45&&t.charCodeAt(c+3)===45){let A=gu(t,"-->",c+4,"Comment is not closed.");if(n.commentPropName){let d=t.substring(c+4,A-2);s=this.saveTextToParentTag(s,r,this.readonlyMatcher),r.add(n.commentPropName,[{[n.textNodeName]:d}])}c=A}else if(u===33&&t.charCodeAt(c+2)===68){let A=i.readDocType(t,c);this.entityDecoder.addInputEntities(A.entities),c=A.i}else if(u===33&&t.charCodeAt(c+2)===91){let A=gu(t,"]]>",c,"CDATA is not closed.")-2,d=t.substring(c+9,A);s=this.saveTextToParentTag(s,r,this.readonlyMatcher);let p=this.parseTextData(d,r.tagname,this.readonlyMatcher,!0,!1,!0,!0);p==null&&(p=""),n.cdataPropName?r.add(n.cdataPropName,[{[n.textNodeName]:d}]):r.add(n.textNodeName,p),c=A+2}else{let A=KN(t,c,n.removeNSPrefix);if(!A){let D=t.substring(Math.max(0,c-50),Math.min(a,c+50));throw new Error(`readTagExp returned undefined at position ${c}. Context: "${D}"`)}let d=A.tagName,p=A.rawTagName,m=A.tagExp,h=A.attrExpPresent,g=A.closeIndex;if({tagName:d,tagExp:m}=jN(n.transformTagName,d,m,n),n.strictReservedNames&&(d===n.commentPropName||d===n.cdataPropName||d===n.textNodeName||d===n.attributesGroupName))throw new Error(`Invalid tag name: ${d}`);r&&s&&r.tagname!=="!xml"&&(s=this.saveTextToParentTag(s,r,this.readonlyMatcher,!1));let C=r;C&&n.unpairedTagsSet.has(C.tagname)&&(r=this.tagsNodeStack.pop(),this.matcher.pop());let E=!1;m.length>0&&m.lastIndexOf("/")===m.length-1&&(E=!0,d[d.length-1]==="/"?(d=d.substr(0,d.length-1),m=d):m=m.substr(0,m.length-1),h=d!==m);let y=null,I={},B;B=RBe(p),d!==e.tagname&&this.matcher.push(d,{},B),d!==m&&h&&(y=this.buildAttributesMap(m,this.matcher,d),y&&(I=SBe(y,n))),d!==e.tagname&&(this.isCurrentNodeStopNode=this.isItStopNode());let N=c;if(this.isCurrentNodeStopNode){let D="";if(E)c=A.closeIndex;else if(n.unpairedTagsSet.has(d))c=A.closeIndex;else{let pe=this.readStopNodeData(t,p,g+1);if(!pe)throw new Error(`Unexpected end of ${p}`);c=pe.i,D=pe.tagContent}let q=new Fr(d);y&&(q[":@"]=y),q.add(n.textNodeName,D),this.matcher.pop(),this.isCurrentNodeStopNode=!1,this.addChild(r,q,this.readonlyMatcher,N)}else{if(E){({tagName:d,tagExp:m}=jN(n.transformTagName,d,m,n));let D=new Fr(d);y&&(D[":@"]=y),this.addChild(r,D,this.readonlyMatcher,N),this.matcher.pop(),this.isCurrentNodeStopNode=!1}else if(n.unpairedTagsSet.has(d)){let D=new Fr(d);y&&(D[":@"]=y),this.addChild(r,D,this.readonlyMatcher,N),this.matcher.pop(),this.isCurrentNodeStopNode=!1,c=A.closeIndex;continue}else{let D=new Fr(d);if(this.tagsNodeStack.length>n.maxNestedTags)throw new Error("Maximum nested tags exceeded");this.tagsNodeStack.push(r),y&&(D[":@"]=y),this.addChild(r,D,this.readonlyMatcher,N),r=D}s="",c=g}}}else s+=t[c];return e.child},"parseXml");function _Be(t,e,r,s){this.options.captureMetaData||(s=void 0);let n=this.options.jPath?r.toString():r,i=this.options.updateTag(e.tagname,n,e[":@"]);i===!1||(typeof i=="string"&&(e.tagname=i),t.addChild(e,s))}o(_Be,"addChild");function LBe(t,e,r){let s=this.options.processEntities;if(!s||!s.enabled)return t;if(s.allowedTags){let n=this.options.jPath?r.toString():r;if(!(Array.isArray(s.allowedTags)?s.allowedTags.includes(e):s.allowedTags(e,n)))return t}if(s.tagFilter){let n=this.options.jPath?r.toString():r;if(!s.tagFilter(e,n))return t}return this.entityDecoder.decode(t)}o(LBe,"replaceEntitiesValue");function MBe(t,e,r,s){return t&&(s===void 0&&(s=e.child.length===0),t=this.parseTextData(t,e.tagname,r,!1,e[":@"]?Object.keys(e[":@"]).length!==0:!1,s),t!==void 0&&t!==""&&e.add(this.options.textNodeName,t),t=""),t}o(MBe,"saveTextToParentTag");function OBe(){return this.stopNodeExpressionsSet.size===0?!1:this.matcher.mLine truncated
|
||||
`;function XBe(t,e){if(!Array.isArray(t)||t.length===0)return"1.0";let r=t[0];if(sS(r)==="?xml"){let n=r[":@"];if(n){let i=e.attributeNamePrefix+"version";if(n[i])return n[i]}}return"1.0"}o(XBe,"detectXmlVersionFromArray");function L3(t,e,r,s,n){return!r.sanitizeName||VE(t,{xmlVersion:n})?t:r.sanitizeName(t,{isAttribute:e,matcher:s.readOnly()})}o(L3,"resolveTagName");function rS(t,e){let r="";e.format&&(r=KBe);let s=[];if(e.stopNodes&&Array.isArray(e.stopNodes))for(let a=0;a<e.stopNodes.length;a++){let c=e.stopNodes[a];typeof c=="string"?s.push(new ms(c)):c instanceof ms&&s.push(c)}let n=XBe(t,e),i=new ri;return M3(t,e,r,i,s,n)}o(rS,"toXml");function M3(t,e,r,s,n,i){let a="",c=!1;if(e.maxNestedTags&&s.getDepth()>e.maxNestedTags)throw new Error("Maximum nested tags exceeded");if(!Array.isArray(t)){if(t!=null){let l=t.toString();return l=tS(l,e),l}return""}for(let l=0;l<t.length;l++){let u=t[l],A=sS(u);if(A===void 0)continue;let p=A===e.textNodeName||A===e.cdataPropName||A===e.commentPropName||A[0]==="?"?A:L3(A,!1,e,s,i),m=ZBe(u[":@"],e);s.push(p,m);let h=twe(s,n);if(p===e.textNodeName){let I=u[A];h||(I=e.tagValueProcessor(p,I),I=tS(I,e)),c&&(a+=r),a+=I,c=!1,s.pop();continue}else if(p===e.cdataPropName){c&&(a+=r);let I=u[A][0][e.textNodeName],B=$E(I);a+=`<![CDATA[${B}]]>`,c=!1,s.pop();continue}else if(p===e.commentPropName){let I=u[A][0][e.textNodeName],B=zE(I);a+=r+`<!--${B}-->`,c=!0,s.pop();continue}else if(p[0]==="?"){let I=_3(u[":@"],e,h,s,i);a+=(p==="?xml"?"":r)+`<${p}${I}?>`,c=!0,s.pop();continue}let g=r;g!==""&&(g+=e.indentBy);let C=_3(u[":@"],e,h,s,i),E=r+`<${p}${C}`,y;h?y=O3(u[A],e):y=M3(u[A],e,g,s,n,i),e.unpairedTags.indexOf(p)!==-1?e.suppressUnpairedNode?a+=E+">":a+=E+"/>":(!y||y.length===0)&&e.suppressEmptyNode?a+=E+"/>":y&&y.endsWith(">")?a+=E+`>${y}${r}</${p}>`:(a+=E+">",y&&r!==""&&(y.includes("/>")||y.includes("</"))?a+=r+e.indentBy+y+r:a+=y,a+=`</${p}>`),c=!0,s.pop()}return a}o(M3,"arrToStr");function ZBe(t,e){if(!t||e.ignoreAttributes)return null;let r={},s=!1;for(let n in t){if(!Object.prototype.hasOwnProperty.call(t,n))continue;let i=n.startsWith(e.attributeNamePrefix)?n.substr(e.attributeNamePrefix.length):n;r[i]=ra(t[n]),s=!0}return s?r:null}o(ZBe,"extractAttributeValues");function O3(t,e){if(!Array.isArray(t))return t!=null?t.toString():"";let r="";for(let s=0;s<t.length;s++){let n=t[s],i=sS(n);if(i===e.textNodeName)r+=n[i];else if(i===e.cdataPropName)r+=n[i][0][e.textNodeName];else if(i===e.commentPropName)r+=n[i][0][e.textNodeName];else{if(i&&i[0]==="?")continue;if(i){let a=ewe(n[":@"],e),c=O3(n[i],e);!c||c.length===0?r+=`<${i}${a}/>`:r+=`<${i}${a}>${c}</${i}>`}}}return r}o(O3,"getRawContent");function ewe(t,e){let r="";if(t&&!e.ignoreAttributes)for(let s in t){if(!Object.prototype.hasOwnProperty.call(t,s))continue;let n=t[s];n===!0&&e.suppressBooleanAttributes?r+=` ${s.substr(e.attributeNamePrefix.length)}`:r+=` ${s.substr(e.attributeNamePrefix.length)}="${ra(n)}"`}return r}o(ewe,"attr_to_str_raw");function sS(t){let e=Object.keys(t);for(let r=0;r<e.length;r++){let s=e[r];if(Object.prototype.hasOwnProperty.call(t,s)&&s!==":@")return s}}o(sS,"propName");function _3(t,e,r,s,n){let i="";if(t&&!e.ignoreAttributes)for(let a in t){if(!Object.prototype.hasOwnProperty.call(t,a))continue;let c=a.substr(e.attributeNamePrefix.length),l=r?c:L3(c,!0,e,s,n),u;r?u=t[a]:(u=e.attributeValueProcessor(a,t[a]),u=tS(u,e)),u===!0&&e.suppressBooleanAttributes?i+=` ${l}`:i+=` ${l}="${ra(u)}"`}return i}o(_3,"attr_to_str");function twe(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(twe,"checkStopNode");function tS(t,e){if(t&&t.length>0&&e.processEntities)for(let r=0;r<e.entities.length;r++){let s=e.entities[r];t=t.replace(s.regex,s.val)}return t}o(tS,"replaceEntitiesValue");function nS(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(nS,"getIgnoreAttributesFn");var rwe={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 qr(t){if(this.options=Object.assign({},rwe,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")],n=vCe(s);n&&t.headers.set("Content-Length",n),t.body=await RJ(s)}o(PCe,"buildRequestBody");var up="multipartPolicy",kCe=70,DCe=new Set("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'()+,-./:=?");function _Ce(t){if(t.length>kCe)throw new Error(`Multipart boundary "${t}" exceeds maximum length of 70 characters`);if(Array.from(t).some(e=>!DCe.has(e)))throw new Error(`Multipart boundary "${t}" contains invalid characters`)}o(_Ce,"assertValidBoundary");function QE(){return{name:up,async sendRequest(t,e){if(!t.multipartBody)return e(t);if(t.body)throw new Error("multipartBody and regular body cannot be set at the same time");let r=t.multipartBody.boundary,s=t.headers.get("Content-Type")??"multipart/mixed",n=s.match(/^(multipart\/[^ ;]+)(?:; *boundary=(.+))?$/);if(!n)throw new Error(`Got multipart request body, but content-type header was not multipart: ${s}`);let[,i,a]=n;if(a&&r&&a!==r)throw new Error(`Multipart boundary was specified as ${a} in the header, but got ${r} in the request body`);return r??=a,r?_Ce(r):r=SCe(),t.headers.set("Content-Type",`${i}; boundary=${r}`),await PCe(t,t.multipartBody.parts,r),t.multipartBody=void 0,e(t)}}}o(QE,"multipartPolicy");function xE(){return jg()}o(xE,"createEmptyPipeline");var TJ=Yg({logLevelEnvVarName:"AZURE_LOG_LEVEL",namespace:"azure"}),ZJe=TJ.logger;function Xn(t){return TJ.createClientLogger(t)}o(Xn,"createClientLogger");var Zn=Xn("core-rest-pipeline");function fN(t={}){return rE({logger:Zn.info,...t})}o(fN,"logPolicy");var gN=sE;function EN(t={}){return nE(t)}o(EN,"redirectPolicy");var NE=w(require("node:os"),1),SE=w(require("node:process"),1);function vJ(){return"User-Agent"}o(vJ,"getHeaderName");async function PJ(t){if(SE.default&&SE.default.versions){let e=`${NE.default.type()} ${NE.default.release()}; ${NE.default.arch()}`,r=SE.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(PJ,"setPlatformSpecificData");var RE="1.22.2";function HCe(t){let e=[];for(let[r,s]of t){let n=s?`${r}/${s}`:r;e.push(n)}return e.join(" ")}o(HCe,"getUserAgentString");function kJ(){return vJ()}o(kJ,"getUserAgentHeaderName");async function TE(t){let e=new Map;e.set("core-rest-pipeline",RE),await PJ(e);let r=HCe(e);return t?`${t} ${r}`:r}o(TE,"getUserAgentValue");var DJ=kJ(),_J="userAgentPolicy";function yN(t={}){let e=TE(t.userAgentPrefix);return{name:_J,async sendRequest(r,s){return r.headers.has(DJ)||r.headers.set(DJ,await e),s(r)}}}o(yN,"userAgentPolicy");var ps=class extends Error{static{o(this,"AbortError")}constructor(e){super(e),this.name="AbortError"}};function CN(t,e){let{cleanupBeforeAbort:r,abortSignal:s,abortErrorMsg:n}=e??{};return new Promise((i,a)=>{function c(){a(new ps(n??"The operation was aborted."))}o(c,"rejectOnAbort");function l(){s?.removeEventListener("abort",u)}o(l,"removeListeners");function u(){r?.(),l(),c()}if(o(u,"onAbort"),s?.aborted)return c();try{t(A=>{l(),i(A)},A=>{l(),a(A)})}catch(A){a(A)}s?.addEventListener("abort",u)})}o(CN,"createAbortablePromise");var JCe="The delay was aborted.";function Ap(t,e){let r,{abortSignal:s,abortErrorMsg:n}=e??{};return CN(i=>{r=setTimeout(i,t)},{cleanupBeforeAbort:o(()=>clearTimeout(r),"cleanupBeforeAbort"),abortSignal:s,abortErrorMsg:n??JCe})}o(Ap,"delay");function Xo(t){if(nc(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(Xo,"getErrorMessage");function LJ(t){return nc(t)}o(LJ,"isError");function pu(){return sc()}o(pu,"randomUUID");var Ne=ac;var MJ=Symbol("rawContent");function BN(t){return typeof t[MJ]=="function"}o(BN,"hasRawContent");function OJ(t){return BN(t)?t[MJ]():t}o(OJ,"getRawContent");var vE=up;function wN(){let t=QE();return{name:vE,sendRequest:o(async(e,r)=>{if(e.multipartBody)for(let s of e.multipartBody.parts)BN(s.body)&&(s.body=OJ(s.body));return t.sendRequest(e,r)},"sendRequest")}}o(wN,"multipartPolicy");var bN=iE;function QN(){return oE()}o(QN,"decompressResponsePolicy");function xN(t={}){return lE(t)}o(xN,"defaultRetryPolicy");function NN(){return uE()}o(NN,"formDataPolicy");function Zo(t){return AN(t)}o(Zo,"getDefaultProxySettings");function SN(t,e){return CE(t,e)}o(SN,"proxyPolicy");var FJ="setClientRequestIdPolicy";function RN(t="x-ms-client-request-id"){return{name:FJ,async sendRequest(e,r){return e.headers.has(t)||e.headers.set(t,e.requestId),r(e)}}}o(RN,"setClientRequestIdPolicy");function TN(t){return IE(t)}o(TN,"agentPolicy");function vN(t){return BE(t)}o(vN,"tlsPolicy");var mu={span:Symbol.for("@azure/core-tracing span"),namespace:Symbol.for("@azure/core-tracing namespace")};function UJ(t={}){let e=new PN(t.parentContext);return t.span&&(e=e.setValue(mu.span,t.span)),t.namespace&&(e=e.setValue(mu.namespace,t.namespace)),e}o(UJ,"createTracingContext");var PN=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--),!EBe(l)){let d;return l.trim().length===0?d="Invalid space after '<'.":d="Tag '"+l+"' is an invalid name.",Et("InvalidTag",d,Ir(t,i))}let u=pBe(t,i);if(u===!1)return Et("InvalidAttr","Attributes for '"+l+"' have open quote.",Ir(t,i));let A=u.value;if(i=u.index,A[A.length-1]==="/"){let d=i-A.length;A=A.substring(0,A.length-1);let p=w3(A,e);if(p===!0)s=!0;else return Et(p.err.code,p.err.msg,Ir(t,d+p.err.line))}else if(c)if(u.tagClosed){if(A.trim().length>0)return Et("InvalidTag","Closing tag '"+l+"' can't have attributes or invalid starting.",Ir(t,a));if(r.length===0)return Et("InvalidTag","Closing tag '"+l+"' has not been opened.",Ir(t,a));{let d=r.pop();if(l!==d.tagName){let p=Ir(t,d.tagStartPos);return Et("InvalidTag","Expected closing tag '"+d.tagName+"' (opened in line "+p.line+", col "+p.col+") instead of closing tag '"+l+"'.",Ir(t,a))}r.length==0&&(n=!0)}}else return Et("InvalidTag","Closing tag '"+l+"' doesn't have proper closing.",Ir(t,i));else{let d=w3(A,e);if(d!==!0)return Et(d.err.code,d.err.msg,Ir(t,i-A.length+d.err.line));if(n===!0)return Et("InvalidXml","Multiple possible root nodes found.",Ir(t,i));e.unpairedTags.indexOf(l)!==-1||r.push({tagName:l,tagStartPos:a}),s=!0}for(i++;i<t.length;i++)if(t[i]==="<")if(t[i+1]==="!"){i++,i=B3(t,i);continue}else if(t[i+1]==="?"){if(i=I3(t,++i),i.err)return i}else break;else if(t[i]==="&"){let d=fBe(t,i);if(d==-1)return Et("InvalidChar","char '&' is not expected.",Ir(t,i));i=d}else if(n===!0&&!C3(t[i]))return Et("InvalidXml","Extra text at the end",Ir(t,i));t[i]==="<"&&i--}}else{if(C3(t[i]))continue;return Et("InvalidChar","char '"+t[i]+"' is not expected.",Ir(t,i))}if(s){if(r.length==1)return Et("InvalidTag","Unclosed tag '"+r[0].tagName+"'.",Ir(t,r[0].tagStartPos));if(r.length>0)return Et("InvalidXml","Invalid '"+JSON.stringify(r.map(i=>i.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}else return Et("InvalidXml","Start tag expected.",1);return!0}o(zE,"validate");function C3(t){return t===" "||t===" "||t===`
|
||||
`||t==="\r"}o(C3,"isWhiteSpace");function I3(t,e){let r=e;for(;e<t.length;e++)if(t[e]=="?"||t[e]==" "){let s=t.substr(r,e-r);if(e>5&&s==="xml")return Et("InvalidXml","XML declaration allowed only at the start of the document.",Ir(t,e));if(t[e]=="?"&&t[e+1]==">"){e++;break}else continue}return e}o(I3,"readPI");function B3(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(B3,"readCommentAndCDATA");var ABe='"',dBe="'";function pBe(t,e){let r="",s="",n=!1;for(;e<t.length;e++){if(t[e]===ABe||t[e]===dBe)s===""?s=t[e]:s!==t[e]||(s="");else if(t[e]===">"&&s===""){n=!0;break}r+=t[e]}return s!==""?!1:{value:r,index:e,tagClosed:n}}o(pBe,"readAttributeStr");var mBe=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function w3(t,e){let r=GE(t,mBe),s={};for(let n=0;n<r.length;n++){if(r[n][1].length===0)return Et("InvalidAttr","Attribute '"+r[n][2]+"' has no space in starting.",wp(r[n]));if(r[n][3]!==void 0&&r[n][4]===void 0)return Et("InvalidAttr","Attribute '"+r[n][2]+"' is without value.",wp(r[n]));if(r[n][3]===void 0&&!e.allowBooleanAttributes)return Et("InvalidAttr","boolean attribute '"+r[n][2]+"' is not allowed.",wp(r[n]));let i=r[n][2];if(!gBe(i))return Et("InvalidAttr","Attribute '"+i+"' is an invalid name.",wp(r[n]));if(!Object.prototype.hasOwnProperty.call(s,i))s[i]=1;else return Et("InvalidAttr","Attribute '"+i+"' is repeated.",wp(r[n]))}return!0}o(w3,"validateAttributeString");function hBe(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(hBe,"validateNumberAmpersand");function fBe(t,e){if(e++,t[e]===";")return-1;if(t[e]==="#")return e++,hBe(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(fBe,"validateAmpersand");function Et(t,e,r){return{err:{code:t,msg:e,line:r.line||r,col:r.col}}}o(Et,"getErrorObject");function gBe(t){return gu(t)}o(gBe,"validateAttrName");function EBe(t){return gu(t)}o(EBe,"validateTagName");function Ir(t,e){let r=t.substring(0,e).split(/\r?\n/);return{line:r.length,col:r[r.length-1].length+1}}o(Ir,"getLineNumberForPosition");function wp(t){return t.startIndex+t[1].length}o(wp,"getPositionFromMatch");var b3={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"},Q3={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"},x3={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 Fr("!xml"),r=e,s="";this.matcher.reset(),this.entityDecoder.reset(),this.entityExpansionCount=0,this.currentExpandedLength=0;let n=this.options,i=new xp(n.processEntities),a=t.length;for(let c=0;c<a;c++)if(t[c]==="<"){let u=t.charCodeAt(c+1);if(u===47){let A=Cu(t,">",c,"Closing Tag is not closed."),d=t.substring(c+2,A).trim();if(n.removeNSPrefix){let m=d.indexOf(":");m!==-1&&(d=d.substr(m+1))}d=rS(n.transformTagName,d,"",n).tagName,r&&(s=this.saveTextToParentTag(s,r,this.readonlyMatcher));let p=this.matcher.getCurrentTag();if(d&&n.unpairedTagsSet.has(d))throw new Error(`Unpaired tag can not be used as closing tag: </${d}>`);p&&n.unpairedTagsSet.has(p)&&(this.matcher.pop(),this.tagsNodeStack.pop()),this.matcher.pop(),this.isCurrentNodeStopNode=!1,r=this.tagsNodeStack.pop(),s="",c=A}else if(u===63){let A=sS(t,c,!1,"?>");if(!A)throw new Error("Pi Tag is not closed.");s=this.saveTextToParentTag(s,r,this.readonlyMatcher);let d=this.buildAttributesMap(A.tagExp,this.matcher,A.tagName,!0);if(d){let p=d[this.options.attributeNamePrefix+"version"];this.entityDecoder.setXmlVersion(Number(p)||1)}if(!(n.ignoreDeclaration&&A.tagName==="?xml"||n.ignorePiTags)){let p=new Fr(A.tagName);p.add(n.textNodeName,""),A.tagName!==A.tagExp&&A.attrExpPresent&&n.ignoreAttributes!==!0&&(p[":@"]=d),this.addChild(r,p,this.readonlyMatcher,c)}c=A.closeIndex+1}else if(u===33&&t.charCodeAt(c+2)===45&&t.charCodeAt(c+3)===45){let A=Cu(t,"-->",c+4,"Comment is not closed.");if(n.commentPropName){let d=t.substring(c+4,A-2);s=this.saveTextToParentTag(s,r,this.readonlyMatcher),r.add(n.commentPropName,[{[n.textNodeName]:d}])}c=A}else if(u===33&&t.charCodeAt(c+2)===68){let A=i.readDocType(t,c);this.entityDecoder.addInputEntities(A.entities),c=A.i}else if(u===33&&t.charCodeAt(c+2)===91){let A=Cu(t,"]]>",c,"CDATA is not closed.")-2,d=t.substring(c+9,A);s=this.saveTextToParentTag(s,r,this.readonlyMatcher);let p=this.parseTextData(d,r.tagname,this.readonlyMatcher,!0,!1,!0,!0);p==null&&(p=""),n.cdataPropName?r.add(n.cdataPropName,[{[n.textNodeName]:d}]):r.add(n.textNodeName,p),c=A+2}else{let A=sS(t,c,n.removeNSPrefix);if(!A){let D=t.substring(Math.max(0,c-50),Math.min(a,c+50));throw new Error(`readTagExp returned undefined at position ${c}. Context: "${D}"`)}let d=A.tagName,p=A.rawTagName,m=A.tagExp,h=A.attrExpPresent,g=A.closeIndex;if({tagName:d,tagExp:m}=rS(n.transformTagName,d,m,n),n.strictReservedNames&&(d===n.commentPropName||d===n.cdataPropName||d===n.textNodeName||d===n.attributesGroupName))throw new Error(`Invalid tag name: ${d}`);r&&s&&r.tagname!=="!xml"&&(s=this.saveTextToParentTag(s,r,this.readonlyMatcher,!1));let C=r;C&&n.unpairedTagsSet.has(C.tagname)&&(r=this.tagsNodeStack.pop(),this.matcher.pop());let E=!1;m.length>0&&m.lastIndexOf("/")===m.length-1&&(E=!0,d[d.length-1]==="/"?(d=d.substr(0,d.length-1),m=d):m=m.substr(0,m.length-1),h=d!==m);let y=null,I={},B;B=_Be(p),d!==e.tagname&&this.matcher.push(d,{},B),d!==m&&h&&(y=this.buildAttributesMap(m,this.matcher,d),y&&(I=DBe(y,n))),d!==e.tagname&&(this.isCurrentNodeStopNode=this.isItStopNode());let N=c;if(this.isCurrentNodeStopNode){let D="";if(E)c=A.closeIndex;else if(n.unpairedTagsSet.has(d))c=A.closeIndex;else{let pe=this.readStopNodeData(t,p,g+1);if(!pe)throw new Error(`Unexpected end of ${p}`);c=pe.i,D=pe.tagContent}let q=new Fr(d);y&&(q[":@"]=y),q.add(n.textNodeName,D),this.matcher.pop(),this.isCurrentNodeStopNode=!1,this.addChild(r,q,this.readonlyMatcher,N)}else{if(E){({tagName:d,tagExp:m}=rS(n.transformTagName,d,m,n));let D=new Fr(d);y&&(D[":@"]=y),this.addChild(r,D,this.readonlyMatcher,N),this.matcher.pop(),this.isCurrentNodeStopNode=!1}else if(n.unpairedTagsSet.has(d)){let D=new Fr(d);y&&(D[":@"]=y),this.addChild(r,D,this.readonlyMatcher,N),this.matcher.pop(),this.isCurrentNodeStopNode=!1,c=A.closeIndex;continue}else{let D=new Fr(d);if(this.tagsNodeStack.length>n.maxNestedTags)throw new Error("Maximum nested tags exceeded");this.tagsNodeStack.push(r),y&&(D[":@"]=y),this.addChild(r,D,this.readonlyMatcher,N),r=D}s="",c=g}}}else s+=t[c];return e.child},"parseXml");function qBe(t,e,r,s){this.options.captureMetaData||(s=void 0);let n=this.options.jPath?r.toString():r,i=this.options.updateTag(e.tagname,n,e[":@"]);i===!1||(typeof i=="string"&&(e.tagname=i),t.addChild(e,s))}o(qBe,"addChild");function GBe(t,e,r){let s=this.options.processEntities;if(!s||!s.enabled)return t;if(s.allowedTags){let n=this.options.jPath?r.toString():r;if(!(Array.isArray(s.allowedTags)?s.allowedTags.includes(e):s.allowedTags(e,n)))return t}if(s.tagFilter){let n=this.options.jPath?r.toString():r;if(!s.tagFilter(e,n))return t}return this.entityDecoder.decode(t)}o(GBe,"replaceEntitiesValue");function HBe(t,e,r,s){return t&&(s===void 0&&(s=e.child.length===0),t=this.parseTextData(t,e.tagname,r,!1,e[":@"]?Object.keys(e[":@"]).length!==0:!1,s),t!==void 0&&t!==""&&e.add(this.options.textNodeName,t),t=""),t}o(HBe,"saveTextToParentTag");function zBe(){return this.stopNodeExpressionsSet.size===0?!1:this.matcher.mLine truncated
|
||||
`;function nwe(t,e){if(!Array.isArray(t)||t.length===0)return"1.0";let r=t[0];if(lS(r)==="?xml"){let n=r[":@"];if(n){let i=e.attributeNamePrefix+"version";if(n[i])return n[i]}}return"1.0"}o(nwe,"detectXmlVersionFromArray");function $3(t,e,r,s,n){return!r.sanitizeName||jE(t,{xmlVersion:n})?t:r.sanitizeName(t,{isAttribute:e,matcher:s.readOnly()})}o($3,"resolveTagName");function cS(t,e){let r="";e.format&&(r=swe);let s=[];if(e.stopNodes&&Array.isArray(e.stopNodes))for(let a=0;a<e.stopNodes.length;a++){let c=e.stopNodes[a];typeof c=="string"?s.push(new fs(c)):c instanceof fs&&s.push(c)}let n=nwe(t,e),i=new ri;return Y3(t,e,r,i,s,n)}o(cS,"toXml");function Y3(t,e,r,s,n,i){let a="",c=!1;if(e.maxNestedTags&&s.getDepth()>e.maxNestedTags)throw new Error("Maximum nested tags exceeded");if(!Array.isArray(t)){if(t!=null){let l=t.toString();return l=aS(l,e),l}return""}for(let l=0;l<t.length;l++){let u=t[l],A=lS(u);if(A===void 0)continue;let p=A===e.textNodeName||A===e.cdataPropName||A===e.commentPropName||A[0]==="?"?A:$3(A,!1,e,s,i),m=iwe(u[":@"],e);s.push(p,m);let h=awe(s,n);if(p===e.textNodeName){let I=u[A];h||(I=e.tagValueProcessor(p,I),I=aS(I,e)),c&&(a+=r),a+=I,c=!1,s.pop();continue}else if(p===e.cdataPropName){c&&(a+=r);let I=u[A][0][e.textNodeName],B=WE(I);a+=`<![CDATA[${B}]]>`,c=!1,s.pop();continue}else if(p===e.commentPropName){let I=u[A][0][e.textNodeName],B=JE(I);a+=r+`<!--${B}-->`,c=!0,s.pop();continue}else if(p[0]==="?"){let I=V3(u[":@"],e,h,s,i);a+=(p==="?xml"?"":r)+`<${p}${I}?>`,c=!0,s.pop();continue}let g=r;g!==""&&(g+=e.indentBy);let C=V3(u[":@"],e,h,s,i),E=r+`<${p}${C}`,y;h?y=J3(u[A],e):y=Y3(u[A],e,g,s,n,i),e.unpairedTags.indexOf(p)!==-1?e.suppressUnpairedNode?a+=E+">":a+=E+"/>":(!y||y.length===0)&&e.suppressEmptyNode?a+=E+"/>":y&&y.endsWith(">")?a+=E+`>${y}${r}</${p}>`:(a+=E+">",y&&r!==""&&(y.includes("/>")||y.includes("</"))?a+=r+e.indentBy+y+r:a+=y,a+=`</${p}>`),c=!0,s.pop()}return a}o(Y3,"arrToStr");function iwe(t,e){if(!t||e.ignoreAttributes)return null;let r={},s=!1;for(let n in t){if(!Object.prototype.hasOwnProperty.call(t,n))continue;let i=n.startsWith(e.attributeNamePrefix)?n.substr(e.attributeNamePrefix.length):n;r[i]=ra(t[n]),s=!0}return s?r:null}o(iwe,"extractAttributeValues");function J3(t,e){if(!Array.isArray(t))return t!=null?t.toString():"";let r="";for(let s=0;s<t.length;s++){let n=t[s],i=lS(n);if(i===e.textNodeName)r+=n[i];else if(i===e.cdataPropName)r+=n[i][0][e.textNodeName];else if(i===e.commentPropName)r+=n[i][0][e.textNodeName];else{if(i&&i[0]==="?")continue;if(i){let a=owe(n[":@"],e),c=J3(n[i],e);!c||c.length===0?r+=`<${i}${a}/>`:r+=`<${i}${a}>${c}</${i}>`}}}return r}o(J3,"getRawContent");function owe(t,e){let r="";if(t&&!e.ignoreAttributes)for(let s in t){if(!Object.prototype.hasOwnProperty.call(t,s))continue;let n=t[s];n===!0&&e.suppressBooleanAttributes?r+=` ${s.substr(e.attributeNamePrefix.length)}`:r+=` ${s.substr(e.attributeNamePrefix.length)}="${ra(n)}"`}return r}o(owe,"attr_to_str_raw");function lS(t){let e=Object.keys(t);for(let r=0;r<e.length;r++){let s=e[r];if(Object.prototype.hasOwnProperty.call(t,s)&&s!==":@")return s}}o(lS,"propName");function V3(t,e,r,s,n){let i="";if(t&&!e.ignoreAttributes)for(let a in t){if(!Object.prototype.hasOwnProperty.call(t,a))continue;let c=a.substr(e.attributeNamePrefix.length),l=r?c:$3(c,!0,e,s,n),u;r?u=t[a]:(u=e.attributeValueProcessor(a,t[a]),u=aS(u,e)),u===!0&&e.suppressBooleanAttributes?i+=` ${l}`:i+=` ${l}="${ra(u)}"`}return i}o(V3,"attr_to_str");function awe(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(awe,"checkStopNode");function aS(t,e){if(t&&t.length>0&&e.processEntities)for(let r=0;r<e.entities.length;r++){let s=e.entities[r];t=t.replace(s.regex,s.val)}return t}o(aS,"replaceEntitiesValue");function uS(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(uS,"getIgnoreAttributesFn");var cwe={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 qr(t){if(this.options=Object.assign({},cwe,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(qr,"Builder");function swe(t,e){let r=t["?xml"];if(r&&typeof r=="object"){if(e.attributesGroupName&&r[e.attributesGroupName]){let n=r[e.attributesGroupName][e.attributeNamePrefix+"version"];if(n)return n}let s=r[e.attributeNamePrefix+"version"];if(s)return s}return"1.0"}o(swe,"detectXmlVersionFromObj");function iS(t,e,r,s,n){return!r.sanitizeName||VE(t,{xmlVersion:n})?t:r.sanitizeName(t,{isAttribute:e,matcher:s.readOnly()})}o(iS,"resolveTagName");qr.prototype.build=function(t){if(this.options.preserveOrder)return rS(t,this.options);{Array.isArray(t)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(t={[this.options.arrayNodeName]:t});let e=new ri,r=swe(t,this.options);return this.j2x(t,0,e,r).val}};qr.prototype.j2x=function(t,e,r,s){let n="",i="";if(this.options.maxNestedTags&&r.getDepth()>=this.options.maxNestedTags)throw new Error("Maximum nested tags exceeded");let a=this.options.jPath?r.toString():r,c=this.checkStopNode(r);for(let l in t){if(!Object.prototype.hasOwnProperty.call(t,l))continue;let A=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:iS(l,!1,this.options,r,s);if(typeof t[l]>"u")this.isAttribute(l)&&(i+="");else if(t[l]===null)this.isAttribute(l)||A===this.options.cdataPropName||A===this.options.commentPropName?i+="":A[0]==="?"?i+=this.indentate(e)+"<"+A+"?"+this.tagEndChar:i+=this.indentate(e)+"<"+A+"/"+this.tagEndChar;else if(t[l]instanceof Date)i+=this.buildTextValNode(t[l],A,"",e,r);else if(typeof t[l]!="object"){let d=this.isAttribute(l);if(d&&!this.ignoreAttributesFn(d,a)){let p=iS(d,!0,this.options,r,s);n+=this.buildAttrPairStr(p,""+t[l],c)}else if(!d)if(l===this.options.textNodeName){let p=this.options.tagValueProcessor(l,""+t[l]);i+=this.replaceEntitiesValue(p)}else{r.push(A);let p=this.checkStopNode(r);if(r.pop(),p){let m=""+t[l];m===""?i+=this.indentate(e)+"<"+A+this.closeTag(A)+this.tagEndChar:i+=this.indentate(e)+"<"+A+">"+m+"</"+A+this.tagEndChar}else i+=this.buildTextValNode(t[l],A,"",e,r)}}else if(Array.isArray(t[l])){let d=t[l].length,p="",m="";for(let h=0;h<d;h++){let g=t[l][h];if(!(typeof g>"u"))if(g===null)A[0]==="?"?i+=this.indentate(e)+"<"+A+"?"+this.tagEndChar:i+=this.indentate(e)+"<"+A+"/"+this.tagEndChar;else if(typeof g=="object")if(this.options.oneListGroup){r.push(A);let C=this.j2x(g,e+1,r,s);r.pop(),p+=C.val,this.options.attributesGroupName&&g.hasOwnProperty(this.options.attributesGroupName)&&(m+=C.attrStr)}else p+=this.processTextOrObjNode(g,A,e,r,s);else if(this.options.oneListGroup){let C=this.options.tagValueProcessor(A,g);C=this.replaceEntitiesValue(C),p+=C}else{r.push(A);let C=this.checkStopNode(r);if(r.pop(),C){let E=""+g;E===""?p+=this.indentate(e)+"<"+A+this.closeTag(A)+this.tagEndChar:p+=this.indentate(e)+"<"+A+">"+E+"</"+A+this.tagEndChar}else p+=this.buildTextValNode(g,A,"",e,r)}}this.options.oneListGroup&&(p=this.buildObjectNode(p,A,m,e)),i+=p}else if(this.options.attributesGroupName&&l===this.options.attributesGroupName){let d=Object.keys(t[l]),p=d.length;for(let m=0;m<p;m++){let h=iS(d[m],!0,this.options,r,s);n+=this.buildAttrPairStr(h,""+t[l][d[m]],c)}}else i+=this.processTextOrObjNode(t[l],A,e,r,s)}return{attrStr:n,val:i}};qr.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+'="'+ra(e)+'"'};function nwe(t,e,r,s,n){let i=this.extractAttributes(t);if(s.push(e,i),this.checkStopNode(s)){let l=this.buildRawContent(t),u=this.buildAttributesForStopNode(t);return s.pop(),this.buildObjectNode(l,e,u,r)}let c=this.j2x(t,r+1,s,n);return s.pop(),e[0]==="?"?this.buildTextValNode("",e,c.attrStr,r,s):t[this.options.textNodeName]!==void 0&&Object.keys(t).length===1?this.buildTextValNode(t[this.options.textNodeName],e,c.attrStr,r,s):this.buildObjectNode(c.val,e,c.attrStr,r)}o(nwe,"processTextOrObjNode");qr.prototype.extractAttributes=function(t){if(!t||typeof t!="object")return null;let e={},r=!1;if(this.options.attributesGroupName&&t[this.options.attributesGroupName]){let s=t[this.options.attributesGroupName];for(let n in s){if(!Object.prototype.hasOwnProperty.call(s,n))continue;let i=n.startsWith(this.options.attributeNamePrefix)?n.substring(this.options.attributeNamePrefix.length):n;e[i]=ra(s[n]),r=!0}}else for(let s in t){if(!Object.prototype.hasOwnProperty.call(t,s))continue;let n=this.isAttribute(s);n&&(e[n]=ra(t[s]),r=!0)}return r?e:null};qr.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(qr,"Builder");function lwe(t,e){let r=t["?xml"];if(r&&typeof r=="object"){if(e.attributesGroupName&&r[e.attributesGroupName]){let n=r[e.attributesGroupName][e.attributeNamePrefix+"version"];if(n)return n}let s=r[e.attributeNamePrefix+"version"];if(s)return s}return"1.0"}o(lwe,"detectXmlVersionFromObj");function AS(t,e,r,s,n){return!r.sanitizeName||jE(t,{xmlVersion:n})?t:r.sanitizeName(t,{isAttribute:e,matcher:s.readOnly()})}o(AS,"resolveTagName");qr.prototype.build=function(t){if(this.options.preserveOrder)return cS(t,this.options);{Array.isArray(t)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(t={[this.options.arrayNodeName]:t});let e=new ri,r=lwe(t,this.options);return this.j2x(t,0,e,r).val}};qr.prototype.j2x=function(t,e,r,s){let n="",i="";if(this.options.maxNestedTags&&r.getDepth()>=this.options.maxNestedTags)throw new Error("Maximum nested tags exceeded");let a=this.options.jPath?r.toString():r,c=this.checkStopNode(r);for(let l in t){if(!Object.prototype.hasOwnProperty.call(t,l))continue;let A=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:AS(l,!1,this.options,r,s);if(typeof t[l]>"u")this.isAttribute(l)&&(i+="");else if(t[l]===null)this.isAttribute(l)||A===this.options.cdataPropName||A===this.options.commentPropName?i+="":A[0]==="?"?i+=this.indentate(e)+"<"+A+"?"+this.tagEndChar:i+=this.indentate(e)+"<"+A+"/"+this.tagEndChar;else if(t[l]instanceof Date)i+=this.buildTextValNode(t[l],A,"",e,r);else if(typeof t[l]!="object"){let d=this.isAttribute(l);if(d&&!this.ignoreAttributesFn(d,a)){let p=AS(d,!0,this.options,r,s);n+=this.buildAttrPairStr(p,""+t[l],c)}else if(!d)if(l===this.options.textNodeName){let p=this.options.tagValueProcessor(l,""+t[l]);i+=this.replaceEntitiesValue(p)}else{r.push(A);let p=this.checkStopNode(r);if(r.pop(),p){let m=""+t[l];m===""?i+=this.indentate(e)+"<"+A+this.closeTag(A)+this.tagEndChar:i+=this.indentate(e)+"<"+A+">"+m+"</"+A+this.tagEndChar}else i+=this.buildTextValNode(t[l],A,"",e,r)}}else if(Array.isArray(t[l])){let d=t[l].length,p="",m="";for(let h=0;h<d;h++){let g=t[l][h];if(!(typeof g>"u"))if(g===null)A[0]==="?"?i+=this.indentate(e)+"<"+A+"?"+this.tagEndChar:i+=this.indentate(e)+"<"+A+"/"+this.tagEndChar;else if(typeof g=="object")if(this.options.oneListGroup){r.push(A);let C=this.j2x(g,e+1,r,s);r.pop(),p+=C.val,this.options.attributesGroupName&&g.hasOwnProperty(this.options.attributesGroupName)&&(m+=C.attrStr)}else p+=this.processTextOrObjNode(g,A,e,r,s);else if(this.options.oneListGroup){let C=this.options.tagValueProcessor(A,g);C=this.replaceEntitiesValue(C),p+=C}else{r.push(A);let C=this.checkStopNode(r);if(r.pop(),C){let E=""+g;E===""?p+=this.indentate(e)+"<"+A+this.closeTag(A)+this.tagEndChar:p+=this.indentate(e)+"<"+A+">"+E+"</"+A+this.tagEndChar}else p+=this.buildTextValNode(g,A,"",e,r)}}this.options.oneListGroup&&(p=this.buildObjectNode(p,A,m,e)),i+=p}else if(this.options.attributesGroupName&&l===this.options.attributesGroupName){let d=Object.keys(t[l]),p=d.length;for(let m=0;m<p;m++){let h=AS(d[m],!0,this.options,r,s);n+=this.buildAttrPairStr(h,""+t[l][d[m]],c)}}else i+=this.processTextOrObjNode(t[l],A,e,r,s)}return{attrStr:n,val:i}};qr.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+'="'+ra(e)+'"'};function uwe(t,e,r,s,n){let i=this.extractAttributes(t);if(s.push(e,i),this.checkStopNode(s)){let l=this.buildRawContent(t),u=this.buildAttributesForStopNode(t);return s.pop(),this.buildObjectNode(l,e,u,r)}let c=this.j2x(t,r+1,s,n);return s.pop(),e[0]==="?"?this.buildTextValNode("",e,c.attrStr,r,s):t[this.options.textNodeName]!==void 0&&Object.keys(t).length===1?this.buildTextValNode(t[this.options.textNodeName],e,c.attrStr,r,s):this.buildObjectNode(c.val,e,c.attrStr,r)}o(uwe,"processTextOrObjNode");qr.prototype.extractAttributes=function(t){if(!t||typeof t!="object")return null;let e={},r=!1;if(this.options.attributesGroupName&&t[this.options.attributesGroupName]){let s=t[this.options.attributesGroupName];for(let n in s){if(!Object.prototype.hasOwnProperty.call(s,n))continue;let i=n.startsWith(this.options.attributeNamePrefix)?n.substring(this.options.attributeNamePrefix.length):n;e[i]=ra(s[n]),r=!0}}else for(let s in t){if(!Object.prototype.hasOwnProperty.call(t,s))continue;let n=this.isAttribute(s);n&&(e[n]=ra(t[s]),r=!0)}return r?e:null};qr.prototype.buildRawContent=function(t){if(typeof t=="string")return t;if(typeof t!="object"||t===null)return String(t);if(t[this.options.textNodeName]!==void 0)return t[this.options.textNodeName];let e="";for(let r in t){if(!Object.prototype.hasOwnProperty.call(t,r)||this.isAttribute(r)||this.options.attributesGroupName&&r===this.o
Line truncated
|
||||
`)+`
|
||||
`+this.getCanonicalizedHeadersString(e)+this.getCanonicalizedResourceString(e),s=this.factory.computeHMACSHA256(r);return e.headers.set(re.AUTHORIZATION,`SharedKey ${this.factory.accountName}:${s}`),e}getHeaderValueToSign(e,r){let s=e.headers.get(r);return!s||r===re.CONTENT_LENGTH&&s==="0"?"":s}getCanonicalizedHeadersString(e){let r=e.headers.headersArray().filter(n=>n.name.toLowerCase().startsWith(re.PREFIX_FOR_STORAGE));r.sort((n,i)=>sy(n.name.toLowerCase(),i.name.toLowerCase())),r=r.filter((n,i,a)=>!(i>0&&n.name.toLowerCase()===a[i-1].name.toLowerCase()));let s="";return r.forEach(n=>{s+=`${n.name.toLowerCase().trimRight()}:${n.value.trimLeft()}
|
||||
`}),s}getCanonicalizedResourceString(e){let r=ey(e.url)||"/",s="";s+=`/${this.factory.accountName}${r}`;let n=ty(e.url),i={};if(n){let a=[];for(let c in n)if(Object.prototype.hasOwnProperty.call(n,c)){let l=c.toLowerCase();i[l]=n[c],a.push(l)}a.sort();for(let c of a)s+=`
|
||||
${c}:${decodeURIComponent(i[c])}`}return s}};var rt=class extends Ac{static{o(this,"StorageSharedKeyCredential")}accountName;accountKey;constructor(e,r){super(),this.accountName=e,this.accountKey=Buffer.from(r,"base64")}create(e,r){return new Np(e,r,this)}computeHMACSHA256(e){return(0,V3.createHmac)("sha256",this.accountKey).update(e,"utf8").digest("base64")}};var Pt=Xn("storage-common");var qs;(function(t){t[t.EXPONENTIAL=0]="EXPONENTIAL",t[t.FIXED=1]="FIXED"})(qs||(qs={}));var na={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:qs.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},pwe=new As("The operation was aborted."),Sp=class extends si{static{o(this,"StorageRetryPolicy")}retryOptions;constructor(e,r,s=na){super(e,r),this.retryOptions={retryPolicyType:s.retryPolicyType?s.retryPolicyType:na.retryPolicyType,maxTries:s.maxTries&&s.maxTries>=1?Math.floor(s.maxTries):na.maxTries,tryTimeoutInMs:s.tryTimeoutInMs&&s.tryTimeoutInMs>=0?s.tryTimeoutInMs:na.tryTimeoutInMs,retryDelayInMs:s.retryDelayInMs&&s.retryDelayInMs>=0?Math.min(s.retryDelayInMs,s.maxRetryDelayInMs?s.maxRetryDelayInMs:na.maxRetryDelayInMs):na.retryDelayInMs,maxRetryDelayInMs:s.maxRetryDelayInMs&&s.maxRetryDelayInMs>=0?s.maxRetryDelayInMs:na.maxRetryDelayInMs,secondaryHost:s.secondaryHost?s.secondaryHost:na.secondaryHost}}async sendRequest(e){return this.attemptSendRequest(e,!1,1)}async attemptSendRequest(e,r,s){let n=e.clone(),i=r||!this.retryOptions.secondaryHost||!(e.method==="GET"||e.method==="HEAD"||e.method==="OPTIONS")||s%2===1;i||(n.url=ZE(n.url,this.retryOptions.secondaryHost)),this.retryOptions.tryTimeoutInMs&&(n.url=sa(n.url,so.Parameters.TIMEOUT,Math.floor(this.retryOptions.tryTimeoutInMs/1e3).toString()));let a;try{if(Pt.info(`RetryPolicy: =====> Try=${s} ${i?"Primary":"Secondary"}`),a=await this._nextPolicy.sendRequest(n),!this.shouldRetry(i,s,a))return a;r=r||!i&&a.status===404}catch(c){if(Pt.error(`RetryPolicy: Caught error, message: ${c.message}, code: ${c.code}`),!this.shouldRetry(i,s,a,c))throw c}return await this.delay(i,s,e.abortSignal),this.attemptSendRequest(e,r,++s)}shouldRetry(e,r,s,n){if(r>=this.retryOptions.maxTries)return Pt.info(`RetryPolicy: Attempt(s) ${r} >= maxTries ${this.retryOptions.maxTries}, no further try.`),!1;let i=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"];if(n){for(let a of i)if(n.name.toUpperCase().includes(a)||n.message.toUpperCase().includes(a)||n.code&&n.code.toString().toUpperCase()===a)return Pt.info(`RetryPolicy: Network error ${a} found, will retry.`),!0}if(s||n){let a=s?s.status:n?n.statusCode:0;if(!e&&a===404)return Pt.info("RetryPolicy: Secondary access with 404, will retry."),!0;if(a===503||a===500)return Pt.info(`RetryPolicy: Will retry for status code ${a}.`),!0}if(s&&s?.status>=400){let a=s.headers.get(re.X_MS_CopySourceErrorCode);if(a!==void 0)switch(a){case"InternalError":case"OperationTimedOut":case"ServerBusy":return!0}}return n?.code==="PARSE_ERROR"&&n?.message.startsWith('Error "Error: Unclosed root tag')?(Pt.info("RetryPolicy: Incomplete XML response likely due to service timeout, will retry."),!0):!1}async delay(e,r,s){let n=0;if(e)switch(this.retryOptions.retryPolicyType){case qs.EXPONENTIAL:n=Math.min((Math.pow(2,r-1)-1)*this.retryOptions.retryDelayInMs,this.retryOptions.maxRetryDelayInMs);break;case qs.FIXED:n=this.retryOptions.retryDelayInMs;break}else n=Math.random()*1e3;return Pt.info(`RetryPolicy: Delay for ${n}ms`),ry(n,s,pwe)}};var Rp=class{static{o(this,"StorageRetryPolicyFactory")}retryOptions;constructor(e){this.retryOptions=e}create(e,r){return new Sp(e,r,this.retryOptions)}};var mwe="storageBrowserPolicy";function Y3(){return{name:mwe,async sendRequest(t,e){return Ne||((t.method==="GET"||t.method==="HEAD")&&(t.url=sa(t.url,so.Parameters.FORCE_BROWSER_NO_CACHE,new Date().getTime().toString())),t.headers.delete(re.COOKIE),t.headers.delete(re.CONTENT_LENGTH)),e(t)}}}o(Y3,"storageBrowserPolicy");var hwe="StorageCorrectContentLengthPolicy";function J3(){function t(e){e.body&&(typeof e.body=="string"||Buffer.isBuffer(e.body))&&e.body.length>0&&e.headers.set(re.CONTENT_LENGTH,Buffer.byteLength(e.body))}return o(t,"correctContentLength"),{name:hwe,async sendRequest(e,r){return t(e),r(e)}}}o(J3,"storageCorrectContentLengthPolicy");var fwe="storageRetryPolicy",yu={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:qs.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},gwe=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"],Ewe=new As("The operation was aborted.");function W3(t={}){let e=t.retryPolicyType??yu.retryPolicyType,r=t.maxTries??yu.maxTries,s=t.retryDelayInMs??yu.retryDelayInMs,n=t.maxRetryDelayInMs??yu.maxRetryDelayInMs,i=t.secondaryHost??yu.secondaryHost,a=t.tryTimeoutInMs??yu.tryTimeoutInMs;function c({isPrimaryRetry:u,attempt:A,response:d,error:p}){if(A>=r)return Pt.inf
Line truncated
|
||||
`+this.getCanonicalizedHeadersString(e)+this.getCanonicalizedResourceString(e),s=this.factory.computeHMACSHA256(r);return e.headers.set(se.AUTHORIZATION,`SharedKey ${this.factory.accountName}:${s}`),e}getHeaderValueToSign(e,r){let s=e.headers.get(r);return!s||r===se.CONTENT_LENGTH&&s==="0"?"":s}getCanonicalizedHeadersString(e){let r=e.headers.headersArray().filter(n=>n.name.toLowerCase().startsWith(se.PREFIX_FOR_STORAGE));r.sort((n,i)=>ay(n.name.toLowerCase(),i.name.toLowerCase())),r=r.filter((n,i,a)=>!(i>0&&n.name.toLowerCase()===a[i-1].name.toLowerCase()));let s="";return r.forEach(n=>{s+=`${n.name.toLowerCase().trimRight()}:${n.value.trimLeft()}
|
||||
`}),s}getCanonicalizedResourceString(e){let r=ny(e.url)||"/",s="";s+=`/${this.factory.accountName}${r}`;let n=iy(e.url),i={};if(n){let a=[];for(let c in n)if(Object.prototype.hasOwnProperty.call(n,c)){let l=c.toLowerCase();i[l]=n[c],a.push(l)}a.sort();for(let c of a)s+=`
|
||||
${c}:${decodeURIComponent(i[c])}`}return s}};var st=class extends mc{static{o(this,"StorageSharedKeyCredential")}accountName;accountKey;constructor(e,r){super(),this.accountName=e,this.accountKey=Buffer.from(r,"base64")}create(e,r){return new vp(e,r,this)}computeHMACSHA256(e){return(0,r4.createHmac)("sha256",this.accountKey).update(e,"utf8").digest("base64")}};var kt=Xn("storage-common");var Gs;(function(t){t[t.EXPONENTIAL=0]="EXPONENTIAL",t[t.FIXED=1]="FIXED"})(Gs||(Gs={}));var na={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:Gs.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},ywe=new ps("The operation was aborted."),Pp=class extends si{static{o(this,"StorageRetryPolicy")}retryOptions;constructor(e,r,s=na){super(e,r),this.retryOptions={retryPolicyType:s.retryPolicyType?s.retryPolicyType:na.retryPolicyType,maxTries:s.maxTries&&s.maxTries>=1?Math.floor(s.maxTries):na.maxTries,tryTimeoutInMs:s.tryTimeoutInMs&&s.tryTimeoutInMs>=0?s.tryTimeoutInMs:na.tryTimeoutInMs,retryDelayInMs:s.retryDelayInMs&&s.retryDelayInMs>=0?Math.min(s.retryDelayInMs,s.maxRetryDelayInMs?s.maxRetryDelayInMs:na.maxRetryDelayInMs):na.retryDelayInMs,maxRetryDelayInMs:s.maxRetryDelayInMs&&s.maxRetryDelayInMs>=0?s.maxRetryDelayInMs:na.maxRetryDelayInMs,secondaryHost:s.secondaryHost?s.secondaryHost:na.secondaryHost}}async sendRequest(e){return this.attemptSendRequest(e,!1,1)}async attemptSendRequest(e,r,s){let n=e.clone(),i=r||!this.retryOptions.secondaryHost||!(e.method==="GET"||e.method==="HEAD"||e.method==="OPTIONS")||s%2===1;i||(n.url=sy(n.url,this.retryOptions.secondaryHost)),this.retryOptions.tryTimeoutInMs&&(n.url=sa(n.url,no.Parameters.TIMEOUT,Math.floor(this.retryOptions.tryTimeoutInMs/1e3).toString()));let a;try{if(kt.info(`RetryPolicy: =====> Try=${s} ${i?"Primary":"Secondary"}`),a=await this._nextPolicy.sendRequest(n),!this.shouldRetry(i,s,a))return a;r=r||!i&&a.status===404}catch(c){if(kt.error(`RetryPolicy: Caught error, message: ${c.message}, code: ${c.code}`),!this.shouldRetry(i,s,a,c))throw c}return await this.delay(i,s,e.abortSignal),this.attemptSendRequest(e,r,++s)}shouldRetry(e,r,s,n){if(r>=this.retryOptions.maxTries)return kt.info(`RetryPolicy: Attempt(s) ${r} >= maxTries ${this.retryOptions.maxTries}, no further try.`),!1;let i=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"];if(n){for(let a of i)if(n.name.toUpperCase().includes(a)||n.message.toUpperCase().includes(a)||n.code&&n.code.toString().toUpperCase()===a)return kt.info(`RetryPolicy: Network error ${a} found, will retry.`),!0}if(s||n){let a=s?s.status:n?n.statusCode:0;if(!e&&a===404)return kt.info("RetryPolicy: Secondary access with 404, will retry."),!0;if(a===503||a===500)return kt.info(`RetryPolicy: Will retry for status code ${a}.`),!0}if(s&&s?.status>=400){let a=s.headers.get(se.X_MS_CopySourceErrorCode);if(a!==void 0)switch(a){case"InternalError":case"OperationTimedOut":case"ServerBusy":return!0}}return n?.code==="PARSE_ERROR"&&n?.message.startsWith('Error "Error: Unclosed root tag')?(kt.info("RetryPolicy: Incomplete XML response likely due to service timeout, will retry."),!0):!1}async delay(e,r,s){let n=0;if(e)switch(this.retryOptions.retryPolicyType){case Gs.EXPONENTIAL:n=Math.min((Math.pow(2,r-1)-1)*this.retryOptions.retryDelayInMs,this.retryOptions.maxRetryDelayInMs);break;case Gs.FIXED:n=this.retryOptions.retryDelayInMs;break}else n=Math.random()*1e3;return kt.info(`RetryPolicy: Delay for ${n}ms`),oy(n,s,ywe)}};var kp=class{static{o(this,"StorageRetryPolicyFactory")}retryOptions;constructor(e){this.retryOptions=e}create(e,r){return new Pp(e,r,this.retryOptions)}};var Cwe="storageBrowserPolicy";function s4(){return{name:Cwe,async sendRequest(t,e){return Ne||((t.method==="GET"||t.method==="HEAD")&&(t.url=sa(t.url,no.Parameters.FORCE_BROWSER_NO_CACHE,new Date().getTime().toString())),t.headers.delete(se.COOKIE),t.headers.delete(se.CONTENT_LENGTH)),e(t)}}}o(s4,"storageBrowserPolicy");var Iwe="StorageCorrectContentLengthPolicy";function n4(){function t(e){e.body&&(typeof e.body=="string"||Buffer.isBuffer(e.body))&&e.body.length>0&&e.headers.set(se.CONTENT_LENGTH,Buffer.byteLength(e.body))}return o(t,"correctContentLength"),{name:Iwe,async sendRequest(e,r){return t(e),r(e)}}}o(n4,"storageCorrectContentLengthPolicy");var Bwe="storageRetryPolicy",Bu={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:Gs.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},wwe=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"],bwe=new ps("The operation was aborted.");function i4(t={}){let e=t.retryPolicyType??Bu.retryPolicyType,r=t.maxTries??Bu.maxTries,s=t.retryDelayInMs??Bu.retryDelayInMs,n=t.maxRetryDelayInMs??Bu.maxRetryDelayInMs,i=t.secondaryHost??Bu.secondaryHost,a=t.tryTimeoutInMs??Bu.tryTimeoutInMs;function c({isPrimaryRetry:u,attempt:A,response:d,error:p}){if(A>=r)return kt.inf
Line truncated
|
||||
`)+`
|
||||
`+s(i)+n(i),c=(0,j3.createHmac)("sha256",t.accountKey).update(a,"utf8").digest("base64");i.headers.set(re.AUTHORIZATION,`SharedKey ${t.accountName}:${c}`)}o(e,"signRequest");function r(i,a){let c=i.headers.get(a);return!c||a===re.CONTENT_LENGTH&&c==="0"?"":c}o(r,"getHeaderValueToSign");function s(i){let a=[];for(let[l,u]of i.headers)l.toLowerCase().startsWith(re.PREFIX_FOR_STORAGE)&&a.push({name:l,value:u});a.sort((l,u)=>sy(l.name.toLowerCase(),u.name.toLowerCase())),a=a.filter((l,u,A)=>!(u>0&&l.name.toLowerCase()===A[u-1].name.toLowerCase()));let c="";return a.forEach(l=>{c+=`${l.name.toLowerCase().trimRight()}:${l.value.trimLeft()}
|
||||
`}),c}o(s,"getCanonicalizedHeadersString");function n(i){let a=ey(i.url)||"/",c="";c+=`/${t.accountName}${a}`;let l=ty(i.url),u={};if(l){let A=[];for(let d in l)if(Object.prototype.hasOwnProperty.call(l,d)){let p=d.toLowerCase();u[p]=l[d],A.push(p)}A.sort();for(let d of A)c+=`
|
||||
${d}:${decodeURIComponent(u[d])}`}return c}return o(n,"getCanonicalizedResourceString"),{name:ywe,async sendRequest(i,a){return e(i),a(i)}}}o(uS,"storageSharedKeyCredentialPolicy");var Cwe="storageRequestFailureDetailsParserPolicy";function K3(){return{name:Cwe,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(K3,"storageRequestFailureDetailsParserPolicy");var X3=require("node:crypto");var ny=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,X3.createHmac)("sha256",this.key).update(e,"utf8").digest("base64")}};var iy="12.31.0",oy="2026-02-06";var ay="https://storage.azure.com/.default",no={Parameters:{FORCE_BROWSER_NO_CACHE:"_",SIGNATURE:"sig",SNAPSHOT:"snapshot",VERSIONID:"versionid",TIMEOUT:"timeout"}};var yn="",AS="*",Iwe=1*1024*1024;var Bwe=4*Iwe;var Z3="AES256",e4="DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;",t4=["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"],r4=["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"],s4="BlobUsesCustomerSpecifiedEncryption",n4="BlobDoesNotUseCustomerSpecifiedEncryption",i4=["10000","10001","10002","10003","10004","10100","10101","10102","10103","10104","11000","11001","11002","11003","11004","11100","11101","11102","11103","11104"];function io(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(io,"isPipelineLike");var Tp=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 Et(t,e={}){t||(t=new Ye);let r=new Tp([],e);return r._credential=t,r}o(Et,"newPipeline");function wwe(t){let e=[bwe,o4,Qwe,xwe,Nwe,Swe,Twe];if(t.factories.length){let r=t.factories.filter(s=>!e.some(n=>n(s)));if(r.length){let s=r.some(n=>Rwe(n));return{wrappedPolicies:GN(r),afterRetry:s}}}}o(wwe,"processDownlevelPipeline");function dS(t){let{httpClient:e,...r}=t.options,s=t._coreHttpClient;s||(s=e?HN(e):lS(),t._coreHttpClient=s);let n=t._corePipeline;if(!n){let i=`azsdk-js-azure-storage-blob/${iy}`,a=r.userAgentOptions&&r.userAgentOptions.userAgentPrefix?`${r.userAgentOptions.userAgentPrefix} ${i}`:`${i}`;n=dp({...r,loggingOptions:{additionalAllowedHeaderNames:t4,additionalAllowedQueryParameters:r4,logger:JE.info},userAgentOptions:{userAgentPrefix:a},serializationOptions:{stringifyXML:YE,serializerOptions:{xml:{xmlCharKey:"#"}}},deserializationOptions:{parseXML:aS,serializerOptions:{xml:{xmlCharKey:"#"}}}}),n.removePolicy({phase:"Retry"}),n.removePolicy({name:EN}),n.addPolicy(J3()),n.addPolicy(W3(r.retryOptions),{phase:"Retry"}),n.addPo
Line truncated
|
||||
`),i=e.computeHMACSHA256(n);return{sasQueryParameters:new bn(t.version,i,s,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType),stringToSign:n}}o(wQe,"generateBlobSASQueryParameters20150405");function bQe(t,e){if(t=Cc(t),!t.identifier&&!(t.permissions&&t.expiresOn))throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.");let r="c",s=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",s=t.versionId));let n;t.permissions&&(t.blobName?n=Ci.parse(t.permissions.toString()).toString():n=Ii.parse(t.permissions.toString()).toString());let i=[n||"",t.startsOn?Se(t.startsOn,!1):"",t.expiresOn?Se(t.expiresOn,!1):"",yc(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?wn(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,s,t.cacheControl?t.cacheControl:"",t.contentDisposition?t.contentDisposition:"",t.contentEncoding?t.contentEncoding:"",t.contentLanguage?t.contentLanguage:"",t.contentType?t.contentType:""].join(`
|
||||
`),a=e.computeHMACSHA256(i);return{sasQueryParameters:new bn(t.version,a,n,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType),stringToSign:i}}o(bQe,"generateBlobSASQueryParameters20181109");function QQe(t,e){if(t=Cc(t),!t.identifier&&!(t.permissions&&t.expiresOn))throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.");let r="c",s=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",s=t.versionId));let n;t.permissions&&(t.blobName?n=Ci.parse(t.permissions.toString()).toString():n=Ii.parse(t.permissions.toString()).toString());let i=[n||"",t.startsOn?Se(t.startsOn,!1):"",t.expiresOn?Se(t.expiresOn,!1):"",yc(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?wn(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,s,t.encryptionScope,t.cacheControl?t.cacheControl:"",t.contentDisposition?t.contentDisposition:"",t.contentEncoding?t.contentEncoding:"",t.contentLanguage?t.contentLanguage:"",t.contentType?t.contentType:""].join(`
|
||||
`),a=e.computeHMACSHA256(i);return{sasQueryParameters:new bn(t.version,a,n,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,void 0,void 0,void 0,t.encryptionScope),stringToSign:i}}o(QQe,"generateBlobSASQueryParameters20201206");function xQe(t,e){if(t=Cc(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",s=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",s=t.versionId));let n;t.permissions&&(t.blobName?n=Ci.parse(t.permissions.toString()).toString():n=Ii.parse(t.permissions.toString()).toString());let i=[n||"",t.startsOn?Se(t.startsOn,!1):"",t.expiresOn?Se(t.expiresOn,!1):"",yc(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Se(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Se(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.ipRange?wn(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,s,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
|
||||
`),a=e.computeHMACSHA256(i);return{sasQueryParameters:new bn(t.version,a,n,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey),stringToSign:i}}o(xQe,"generateBlobSASQueryParametersUDK20181109");function NQe(t,e){if(t=Cc(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",s=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",s=t.versionId));let n;t.permissions&&(t.blobName?n=Ci.parse(t.permissions.toString()).toString():n=Ii.parse(t.permissions.toString()).toString());let i=[n||"",t.startsOn?Se(t.startsOn,!1):"",t.expiresOn?Se(t.expiresOn,!1):"",yc(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Se(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Se(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?wn(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,s,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
|
||||
`),a=e.computeHMACSHA256(i);return{sasQueryParameters:new bn(t.version,a,n,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId),stringToSign:i}}o(NQe,"generateBlobSASQueryParametersUDK20200210");function SQe(t,e){if(t=Cc(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",s=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",s=t.versionId));let n;t.permissions&&(t.blobName?n=Ci.parse(t.permissions.toString()).toString():n=Ii.parse(t.permissions.toString()).toString());let i=[n||"",t.startsOn?Se(t.startsOn,!1):"",t.expiresOn?Se(t.expiresOn,!1):"",yc(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Se(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Se(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?wn(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,s,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
|
||||
`),a=e.computeHMACSHA256(i);return{sasQueryParameters:new bn(t.version,a,n,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId,t.encryptionScope),stringToSign:i}}o(SQe,"generateBlobSASQueryParametersUDK20201206");function RQe(t,e){if(t=Cc(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",s=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",s=t.versionId));let n;t.permissions&&(t.blobName?n=Ci.parse(t.permissions.toString()).toString():n=Ii.parse(t.permissions.toString()).toString());let i=[n||"",t.startsOn?Se(t.startsOn,!1):"",t.expiresOn?Se(t.expiresOn,!1):"",yc(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Se(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Se(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,void 0,t.delegatedUserObjectId,t.ipRange?wn(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,s,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
|
||||
`),a=e.computeHMACSHA256(i);return{sasQueryParameters:new bn(t.version,a,n,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId,t.encryptionScope,t.delegatedUserObjectId),stringToSign:i}}o(RQe,"generateBlobSASQueryParametersUDK20250705");function yc(t,e,r){let s=[`/blob/${t}/${e}`];return r&&s.push(`/${r}`),s.join("")}o(yc,"getCanonicalName");function Cc(t){let e=t.version?t.version:oy;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(Cc,"SASSignatureValuesSanityCheckAndAutofill");var Gp=class{static{o(this,"BlobLeaseClient")}_leaseId;_url;_containerOrBlobOperation;_isContainer;get leaseId(){return this._leaseId}get url(){return this._url}constructor(e,r){let s=e.storageClientContext;this._url=e.url,e.name===void 0?(this._isContainer=!0,this._containerOrBlobOperation=s.container):(this._isContainer=!1,this._containerOrBlobOperation=s.blob),r||(r=uu()),this._leaseId=r}async acquireLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==yn||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==yn||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 $.withSpan("BlobLeaseClient-acquireLease",r,async s=>W(await this._containerOrBlobOperation.acquireLease({abortSignal:r.abortSignal,duration:e,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},proposedLeaseId:this._leaseId,tracingOptions:s.tracingOptions})))}async changeLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==yn||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==yn||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 $.withSpan("BlobLeaseClient-changeLease",r,async s=>{let n=W(await this._containerOrBlobOperation.changeLease(this._leaseId,e,{abortSignal:r.abortSignal,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},tracingOptions:s.tracingOptions}));return this._leaseId=e,n})}async releaseLease(e={}){if(this._isContainer&&(e.conditions?.ifMatch&&e.conditions?.ifMatch!==yn||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==yn||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 $.withSpan("BlobLeaseClient-releaseLease",e,async r=>W(await this._containerOrBlobOperation.releaseLease(this._leaseId,{abortSignal:e.abortSignal,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},tracingOptions:r.tracingOptions})))}async renewLease(e={}){if(this._isContainer&&(e.conditions?.ifMatch&&e.conditions?.ifMatch!==yn||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==yn||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"}};vu.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var bc=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"}};bc.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var Xp=class extends Error{static{o(this,"RateLimitError")}constructor(e){super(e),this.name="RateLimitError"}};var Fxe=function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(a){a(i)})}return o(n,"adopt"),new(r||(r=Promise))(function(i,a){function c(A){try{u(s.next(A))}catch(d){a(d)}}o(c,"fulfilled");function l(A){try{u(s.throw(A))}catch(d){a(d)}}o(l,"rejected");function u(A){A.done?i(A.value):n(A.value).then(c,l)}o(u,"step"),u((s=s.apply(t,e||[])).next())})},rP=class{static{o(this,"UploadProgress")}constructor(e){this.contentLength=e,this.sentBytes=0,this.displayedComplete=!1,this.startTime=Date.now()}setSentBytes(e){this.sentBytes=e}getTransferredBytes(){return this.sentBytes}isDone(){return this.getTransferredBytes()===this.contentLength}display(){if(this.displayedComplete)return;let e=this.sentBytes,r=(100*(e/this.contentLength)).toFixed(1),s=Date.now()-this.startTime,n=(e/(1024*1024)/(s/1e3)).toFixed(1);S(`Sent ${e} of ${this.contentLength} (${r}%), ${n} MBs/sec`),this.isDone()&&(this.displayedComplete=!0)}onProgress(){return e=>{this.setSentBytes(e.loadedBytes)}}startDisplayTimer(e=1e3){let r=o(()=>{this.display(),this.isDone()||(this.timeoutHandle=setTimeout(r,e))},"displayCallback");this.timeoutHandle=setTimeout(r,e)}stopDisplayTimer(){this.timeoutHandle&&(clearTimeout(this.timeoutHandle),this.timeoutHandle=void 0),this.display()}};function l8(t,e,r){return Fxe(this,void 0,void 0,function*(){var s;let n=new po(t),i=n.getBlockBlobClient(),a=new rP((s=r?.archiveSizeBytes)!==null&&s!==void 0?s:0),c={blockSize:r?.uploadChunkSize,concurrency:r?.uploadConcurrency,maxSingleShotSize:128*1024*1024,onProgress:a.onProgress()};try{a.startDisplayTimer(),b(`BlobClient: ${n.name}:${n.accountName}:${n.containerName}`);let l=yield i.uploadFile(e,c);if(l._response.status>=400)throw new AC(`uploadCacheArchiveSDK: upload failed with status code ${l._response.status}`);return l}catch(l){throw et(`uploadCacheArchiveSDK: internal error uploading cache archive: ${l.message}`),l}finally{a.stopDisplayTimer()}})}o(l8,"uploadCacheArchiveSDK");var A8=w(require("buffer"),1),Bi=w(require("fs"),1),d8=w(require("stream"),1),p8=w(require("util"),1);var dC=function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(a){a(i)})}return o(n,"adopt"),new(r||(r=Promise))(function(i,a){function c(A){try{u(s.next(A))}catch(d){a(d)}}o(c,"fulfilled");function l(A){try{u(s.throw(A))}catch(d){a(d)}}o(l,"rejected");function u(A){A.done?i(A.value):n(A.value).then(c,l)}o(u,"step"),u((s=s.apply(t,e||[])).next())})};function pC(t){return t?t>=200&&t<300:!1}o(pC,"isSuccessStatusCode");function Uxe(t){return t?t>=500:!0}o(Uxe,"isServerErrorStatusCode");function qxe(t){return t?[tt.BadGateway,tt.ServiceUnavailable,tt.GatewayTimeout].includes(t):!1}o(qxe,"isRetryableStatusCode");function Gxe(t){return dC(this,void 0,void 0,function*(){return new Promise(e=>setTimeout(e,t))})}o(Gxe,"sleep");function u8(t,e,r){return dC(this,arguments,void 0,function*(s,n,i,a=Mg,c=Og,l=void 0){let u="",A=1;for(;A<=a;){let d,p,m=!1;try{d=yield n()}catch(h){l&&(d=l(h)),m=!0,u=h.message}if(d&&(p=i(d),!Uxe(p)))return d;if(p&&(m=qxe(p),u=`Cache service responded with ${p}`),b(`${s} - Attempt ${A} of ${a} failed with error: ${u}`),!m){b(`${s} - Error is not retryable`);break}yield Gxe(c),A++}throw Error(`${s} failed: ${u}`)})}o(u8,"retry");function Zp(t,e){return dC(this,arguments,void 0,function*(r,s,n=Mg,i=Og){return yield u8(r,s,a=>a.statusCode,n,i,a=>{if(a instanceof Wn)return{statusCode:a.statusCode,result:null,headers:{},error:a}})})}o(Zp,"retryTypedResponse");function Pu(t,e){return dC(this,arguments,void 0,function*(r,s,n=Mg,i=Og){return yield u8(r,s,a=>a.message.statusCode,n,i)})}o(Pu,"retryHttpClientResponse");var Vs=function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(a){a(i)})}return o(n,"adopt"),new(r||(r=Promise))(function(i,a){function c(A){try{u(s.next(A))}catch(d){a(d)}}o(c,"fulfilled");function l(A){try{u(s.throw(A))}catch(d){a(d)}}o(l,"rejected");function u(A){A.done?i(A.value):n(A.value).then(c,l)}o(u,"step"),u((s=s.apply(t,e||[])).next())})};function Hxe(t,e){return Vs(this,void 0,void 0,function*(){yield p8.promisify(d8.pipeline)(t.message,e)})}o(Hxe,"pipeResponseToStream");var mC=class{static{o(this,"DownloadProgress")}constructor(e){this.contentLength=e,this.segmentIndex=0,this.segmentSize=0,this.segmentOffset=0,this.receivedBytes=0,this.displayedComplete=!1,this.startTime=Date.now()}nextSegment(e){this.segmentOffset=this.segmentOffset+this.segmentSize,this.segmentIndex=this.segmentIndex+1,this.segmentSize=e,this.receivedBytes=0,b(`Downloading segment at offset ${this.segmentOffset} with length ${this.segmentSize}...`)}setReceivedBytes(e){this.received
Line truncated
|
||||
Other caches with similar key:`);for(let c of i?.artifactCaches||[])b(`Cache Key: ${c?.cacheKey}, Cache Version: ${c?.cacheVersion}, Cache Scope: ${c?.scope}, Cache Created: ${c?.creationTime}`)}}})}o(jxe,"printCachesListForDiagnostics");function oP(t,e,r){return Hr(this,void 0,void 0,function*(){let s=new w8.URL(t),n=g8(r);s.hostname.endsWith(".blob.core.windows.net")?n.useAzureSdk?yield h8(t,e,n):n.concurrentBlobDownloads?yield m8(t,e,n):yield hC(t,e):yield hC(t,e)})}o(oP,"downloadCache");function Q8(t,e,r){return Hr(this,void 0,void 0,function*(){let s=iP(),n=tu(e,r?.compressionMethod,r?.enableCrossOsArchive),i={key:t,version:n,cacheSize:r?.cacheSize};return yield Zp("reserveCache",()=>Hr(this,void 0,void 0,function*(){return s.postJson(tm("caches"),i)}))})}o(Q8,"reserveCache");function B8(t,e){return`bytes ${t}-${e}/*`}o(B8,"getContentRange");function Kxe(t,e,r,s,n){return Hr(this,void 0,void 0,function*(){b(`Uploading chunk of size ${n-s+1} bytes at offset ${s} with content range: ${B8(s,n)}`);let i={"Content-Type":"application/octet-stream","Content-Range":B8(s,n)},a=yield Pu(`uploadChunk (start: ${s}, end: ${n})`,()=>Hr(this,void 0,void 0,function*(){return t.sendStream("PATCH",e,r(),i)}));if(!pC(a.message.statusCode))throw new Error(`Cache service responded with ${a.message.statusCode} during upload chunk.`)})}o(Kxe,"uploadChunk");function Xxe(t,e,r,s){return Hr(this,void 0,void 0,function*(){let n=Jn(r),i=tm(`caches/${e.toString()}`),a=ku.openSync(r,"r"),c=sP(s),l=P0("uploadConcurrency",c.uploadConcurrency),u=P0("uploadChunkSize",c.uploadChunkSize),A=[...new Array(l).keys()];b("Awaiting all uploads");let d=0;try{yield Promise.all(A.map(()=>Hr(this,void 0,void 0,function*(){for(;d<n;){let p=Math.min(n-d,u),m=d,h=d+p-1;d+=u,yield Kxe(t,i,()=>ku.createReadStream(r,{fd:a,start:m,end:h,autoClose:!1}).on("error",g=>{throw new Error(`Cache upload failed because file read failed with ${g.message}`)}),m,h)}})))}finally{ku.closeSync(a)}})}o(Xxe,"uploadFile");function Zxe(t,e,r){return Hr(this,void 0,void 0,function*(){let s={size:r};return yield Zp("commitCache",()=>Hr(this,void 0,void 0,function*(){return t.postJson(tm(`caches/${e.toString()}`),s)}))})}o(Zxe,"commitCache");function aP(t,e,r,s){return Hr(this,void 0,void 0,function*(){if(sP(s).useAzureSdk){if(!r)throw new Error("Azure Storage SDK can only be used when a signed URL is provided.");yield l8(r,e,s)}else{let i=iP();b("Upload cache"),yield Xxe(i,t,e,s),b("Commiting cache");let a=Jn(e);S(`Cache Size: ~${Math.round(a/(1024*1024))} MB (${a} B)`);let c=yield Zxe(i,t,a);if(!pC(c.statusCode))throw new Error(`Cache service responded with ${c.statusCode} during commit cache.`);S("Cache saved successfully")}})}o(aP,"saveCache");var y5=w(d5(),1),It=w(Ct(),1),gs=w(Ct(),1),Rc=w(Ct(),1),Tc=w(Ct(),1),vc=w(Ct(),1);var tk=w(Ct(),1),rk=w(Ct(),1),f5=w(Ct(),1),g5=w(Ct(),1),E5=w(Ct(),1);var XP=w(Ct(),1),ZP=w(Ct(),1),p5=w(Ct(),1),m5=w(Ct(),1),h5=w(Ct(),1);var ek=class extends h5.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,m5.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,p5.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,s,n){let i=n??this.create(),a=e.pos+r;for(;e.pos<a;){let[c,l]=e.tag();switch(c){case 1:i.scope=e.string();break;case 2:i.permission=e.int64().toString();break;default:let u=s.readUnknownField;if(u==="throw")throw new globalThis.Error(`Unknown field ${c} (wire type ${l}) for ${this.typeName}`);let A=e.skip(l);u!==!1&&(u===!0?ZP.UnknownFieldHandler.onRead:u)(this.typeName,i,c,l,A)}}return i}internalBinaryWrite(e,r,s){e.scope!==""&&r.tag(1,XP.WireType.LengthDelimited).string(e.scope),e.permission!=="0"&&r.tag(2,XP.WireType.Varint).int64(e.permission);let n=s.writeUnknownFields;return n!==!1&&(n==!0?ZP.UnknownFieldHandler.onWrite:n)(this.typeName,e,r),r}},rI=new ek;var sk=class extends E5.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(()=>rI,"T")}])}create(e){let r={repositoryId:"0",scope:[]};return globalThis.Object.defineProperty(r,g5.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,f5.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,s,n){let i=n??this.create(),a=e.pos+r;for(;e.pos<a;){let[c,l]=e.tag();switch(c){case 1:i.repositoryId=e.int64().toString();break;case 2:i.scope.push(rI.internalBinaryRead(e,e.uint32(),s));break;default:let u=s.readUnknownField;if(u==="throw")throw new globalThis.Error(`Unknown field ${c} (wire type ${l}) for ${this.typeName}`);let A=e.skip(l);u!==!1&&(u===!0?rk.UnknownFieldHandler.onRead:u)(this.typeName,i,c,l,A)}}return i}internalBinaryWrite(e,r,s){e.repositoryId!=="0"&&r.tag(1,tk.WireType.
Line truncated
|
||||
`));let s=yield Ek(r,"create");yield yk(s,t)})}o(Ik,"createTar");var ju=function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(a){a(i)})}return o(n,"adopt"),new(r||(r=Promise))(function(i,a){function c(A){try{u(s.next(A))}catch(d){a(d)}}o(c,"fulfilled");function l(A){try{u(s.throw(A))}catch(d){a(d)}}o(l,"rejected");function u(A){A.done?i(A.value):n(A.value).then(c,l)}o(u,"step"),u((s=s.apply(t,e||[])).next())})},Nn=class t extends Error{static{o(this,"ValidationError")}constructor(e){super(e),this.name="ValidationError",Object.setPrototypeOf(this,t.prototype)}},Wu=class t extends Error{static{o(this,"ReserveCacheError")}constructor(e){super(e),this.name="ReserveCacheError",Object.setPrototypeOf(this,t.prototype)}},oI=class t extends Error{static{o(this,"FinalizeCacheError")}constructor(e){super(e),this.name="FinalizeCacheError",Object.setPrototypeOf(this,t.prototype)}};function w5(t){if(!t||t.length===0)throw new Nn("Path Validation Error: At least one directory or file path is required")}o(w5,"checkPaths");function Bk(t){if(t.length>512)throw new Nn(`Key Validation Error: ${t} cannot be larger than 512 characters.`);if(!/^[^,]*$/.test(t))throw new Nn(`Key Validation Error: ${t} cannot contain commas.`)}o(Bk,"checkKey");function wk(){return em()==="v2"?!!process.env.ACTIONS_RESULTS_URL:!!process.env.ACTIONS_CACHE_URL}o(wk,"isFeatureAvailable");function b5(t,e,r,s){return ju(this,arguments,void 0,function*(n,i,a,c,l=!1){let u=em();return b(`Cache service version: ${u}`),w5(n),u==="v2"?yield mSe(n,i,a,c,l):yield pSe(n,i,a,c,l)})}o(b5,"restoreCache");function pSe(t,e,r,s){return ju(this,arguments,void 0,function*(n,i,a,c,l=!1){a=a||[];let u=[i,...a];if(b("Resolved Keys:"),b(JSON.stringify(u)),u.length>10)throw new Nn("Key Validation Error: Keys are limited to a maximum of 10.");for(let p of u)Bk(p);let A=yield Xd(),d="";try{let p=yield b8(u,n,{compressionMethod:A,enableCrossOsArchive:l});if(!p?.archiveLocation)return;if(c?.lookupOnly)return S("Lookup only - skipping download"),p.cacheKey;d=gm.join(yield jd(),Wo(A)),b(`Archive Path: ${d}`),yield oP(p.archiveLocation,d,c),Ya()&&(yield fm(d,A));let m=Jn(d);return S(`Cache Size: ~${Math.round(m/(1024*1024))} MB (${m} B)`),yield Ck(d,A),S("Cache restored successfully"),p.cacheKey}catch(p){let m=p;if(m.name===Nn.name)throw p;m instanceof Wn&&typeof m.statusCode=="number"&&m.statusCode>=500?zl(`Failed to restore: ${p.message}`):et(`Failed to restore: ${p.message}`)}finally{try{yield Kd(d)}catch(p){b(`Failed to delete archive: ${p}`)}}})}o(pSe,"restoreCacheV1");function mSe(t,e,r,s){return ju(this,arguments,void 0,function*(n,i,a,c,l=!1){c=Object.assign(Object.assign({},c),{useAzureSdk:!0}),a=a||[];let u=[i,...a];if(b("Resolved Keys:"),b(JSON.stringify(u)),u.length>10)throw new Nn("Key Validation Error: Keys are limited to a maximum of 10.");for(let d of u)Bk(d);let A="";try{let d=gk(),p=yield Xd(),m={key:i,restoreKeys:a,version:tu(n,p,l)},h=yield d.GetCacheEntryDownloadURL(m);if(!h.ok){b(`Cache not found for version ${m.version} of keys: ${u.join(", ")}`);return}if(m.key!==h.matchedKey?S(`Cache hit for restore-key: ${h.matchedKey}`):S(`Cache hit for: ${h.matchedKey}`),c?.lookupOnly)return S("Lookup only - skipping download"),h.matchedKey;A=gm.join(yield jd(),Wo(p)),b(`Archive path: ${A}`),b(`Starting download of archive to: ${A}`),yield oP(h.signedDownloadUrl,A,c);let C=Jn(A);return S(`Cache Size: ~${Math.round(C/(1024*1024))} MB (${C} B)`),Ya()&&(yield fm(A,p)),yield Ck(A,p),S("Cache restored successfully"),h.matchedKey}catch(d){let p=d;if(p.name===Nn.name)throw d;p instanceof Wn&&typeof p.statusCode=="number"&&p.statusCode>=500?zl(`Failed to restore: ${d.message}`):et(`Failed to restore: ${d.message}`)}finally{try{A&&(yield Kd(A))}catch(d){b(`Failed to delete archive: ${d}`)}}})}o(mSe,"restoreCacheV2");function bk(t,e,r){return ju(this,arguments,void 0,function*(s,n,i,a=!1){let c=em();return b(`Cache service version: ${c}`),w5(s),Bk(n),c==="v2"?yield fSe(s,n,i,a):yield hSe(s,n,i,a)})}o(bk,"saveCache");function hSe(t,e,r){return ju(this,arguments,void 0,function*(s,n,i,a=!1){var c,l,u,A,d;let p=yield Xd(),m=-1,h=yield v0(s);if(b("Cache Paths:"),b(`${JSON.stringify(h)}`),h.length===0)throw new Error("Path Validation Error: Path(s) specified in the action for caching do(es) not exist, hence no cache is being saved.");let g=yield jd(),C=gm.join(g,Wo(p));b(`Archive Path: ${C}`);try{yield Ik(g,h,p),Ya()&&(yield fm(C,p));let E=10*1024*1024*1024,y=Jn(C);if(b(`File Size: ${y}`),y>E&&!nP())throw new Error(`Cache size of ~${Math.round(y/(1024*1024))} MB (${y} B) is over the 10GB limit, not saving cache.`);b("Reserving Cache");let I=yield Q8(n,s,{compressionMethod:p,enableCrossOsArchive:a,cacheSize:y});if(!((c=I?.result)===null||c===void 0)&&c.cacheId)m=(l=I?.result)===null||l===void 0?void 0:l.cacheId;else throw I?.statusCode===400?new Error((A=(u=I?.error)===null||u===void 0?void 0:u.message)!==null&&A!==void 0?A:`Cache size of ~${Math.round(y/(1024*1024))}
Line truncated
|
||||
`,a).length:d,u?(c===null?0:c.length)+l.length:0,u?l.length+d:0);return p<m},"__needMoreData"),parse:o(function(s,n,i,a){let{bom:c,comment_no_infix:l,encoding:u,from_line:A,ltrim:d,max_record_size:p,raw:m,relax_quotes:h,rtrim:g,skip_empty_lines:C,to:E,to_line:y}=this.options,{comment:I,escape:B,quote:N,record_delimiter:D}=this.options,{bomSkipped:q,previousBuf:pe,rawBuffer:be,escapeIsQuote:Re}=this.state,V;if(pe===void 0)if(s===void 0){a();return}else V=s;else pe!==void 0&&s===void 0?V=pe:V=Buffer.concat([pe,s]);if(q===!1)if(c===!1)this.state.bomSkipped=!0;else if(V.length<3){if(n===!1){this.state.previousBuf=V;return}}else{for(let ye in lA)if(lA[ye].compare(V,0,lA[ye].length)===0){let bt=lA[ye].length;this.state.bufBytesStart+=bt,V=V.slice(bt);let Ke=SD({...this.original_options,encoding:ye});for(let ut in Ke)this.options[ut]=Ke[ut];({comment:I,escape:B,quote:N}=this.options);break}this.state.bomSkipped=!0}let ne=V.length,G;for(G=0;G<ne&&!this.__needMoreData(G,ne,n);G++){if(this.state.wasRowDelimiter===!0&&(this.info.lines++,this.state.wasRowDelimiter=!1),y!==-1&&this.info.lines>y){this.state.stop=!0,a();return}this.state.quoting===!1&&D.length===0&&this.__autoDiscoverRecordDelimiter(V,G)&&(D=this.options.record_delimiter);let ye=V[G];if(m===!0&&be.append(ye),(ye===Ove||ye===Fve)&&this.state.wasRowDelimiter===!1&&(this.state.wasRowDelimiter=!0),this.state.escaping===!0)this.state.escaping=!1;else{if(B!==null&&this.state.quoting===!0&&this.__isEscape(V,G,ye)&&G+B.length<ne)if(Re){if(this.__isQuote(V,G+B.length)){this.state.escaping=!0,G+=B.length-1;continue}}else{this.state.escaping=!0,G+=B.length-1;continue}if(this.state.commenting===!1&&this.__isQuote(V,G))if(this.state.quoting===!0){let ut=V[G+N.length],ki=g&&this.__isCharTrimable(V,G+N.length),Wr=I!==null&&this.__compareBytes(I,V,G+N.length,ut),Tn=this.__isDelimiter(V,G+N.length,ut),ya=D.length===0?this.__autoDiscoverRecordDelimiter(V,G+N.length):this.__isRecordDelimiter(ut,V,G+N.length);if(B!==null&&this.__isEscape(V,G,ye)&&this.__isQuote(V,G+B.length))G+=B.length-1;else if(!ut||Tn||ya||Wr||ki){this.state.quoting=!1,this.state.wasQuoting=!0,G+=N.length-1;continue}else if(h===!1){let Hc=this.__error(new we("CSV_INVALID_CLOSING_QUOTE",["Invalid Closing Quote:",`got "${String.fromCharCode(ut)}"`,`at line ${this.info.lines}`,"instead of delimiter, record delimiter, trimable character","(if activated) or comment"],this.options,this.__infoField()));if(Hc!==void 0)return Hc}else this.state.quoting=!1,this.state.wasQuoting=!0,this.state.field.prepend(N),G+=N.length-1}else if(this.state.field.length!==0){if(h===!1){let ut=this.__infoField(),ki=Object.keys(lA).map(Tn=>lA[Tn].equals(this.state.field.toString())?Tn:!1).filter(Boolean)[0],Wr=this.__error(new we("INVALID_OPENING_QUOTE",["Invalid Opening Quote:",`a quote is found on field ${JSON.stringify(ut.column)} at line ${ut.lines}, value is ${JSON.stringify(this.state.field.toString(u))}`,ki?`(${ki} bom)`:void 0],this.options,ut,{field:this.state.field}));if(Wr!==void 0)return Wr}}else{this.state.quoting=!0,G+=N.length-1;continue}if(this.state.quoting===!1){let ut=this.__isRecordDelimiter(ye,V,G);if(ut!==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(),G+=ut-1;continue}if(C===!0&&this.state.wasQuoting===!1&&this.state.record.length===0&&this.state.field.length===0){this.info.empty_lines++,G+=ut-1;continue}this.info.bytes=this.state.bufBytesStart+G;let Tn=this.__onField();if(Tn!==void 0)return Tn;this.info.bytes=this.state.bufBytesStart+G+ut;let ya=this.__onRecord(i);if(ya!==void 0)return ya;if(E!==-1&&this.info.records>=E){this.state.stop=!0,a();return}}this.state.commenting=!1,G+=ut-1;continue}if(this.state.commenting)continue;if(I!==null&&(l===!1||this.state.record.length===0&&this.state.field.length===0)&&this.__compareBytes(I,V,G,ye)!==0){this.state.commenting=!0;continue}let ki=this.__isDelimiter(V,G,ye);if(ki!==0){this.info.bytes=this.state.bufBytesStart+G;let Wr=this.__onField();if(Wr!==void 0)return Wr;G+=ki-1;continue}}}if(this.state.commenting===!1&&p!==0&&this.state.record_length+this.state.field.length>p)return this.__error(new we("CSV_MAX_RECORD_SIZE",["Max Record Size:","record exceed the maximum number of tolerated bytes",`of ${p}`,`at line ${this.info.lines}`],this.options,this.__infoField()));let bt=d===!1||this.state.quoting===!0||this.state.field.length!==0||!this.__isCharTrimable(V,G),Ke=g===!1||this.state.wasQuoting===!1;if(bt===!0&&Ke===!0)this.state.field.append(ye);else{if(g===!0&&!this.__isCharTrimable(V,G))return this.__error(new we("CSV_NON_TRIMABLE_CHAR_AFTER_CLOSING_QUOTE",["Invalid Closing Quote:","found non trimable byte after quote",`at line ${this.info.lines}`],this.options,this.__infoField()));bt===!1&&(G+=this.__isCharTrimable(V,G)-1)
Line truncated
|
||||
`+s(i)+n(i),c=(0,o4.createHmac)("sha256",t.accountKey).update(a,"utf8").digest("base64");i.headers.set(se.AUTHORIZATION,`SharedKey ${t.accountName}:${c}`)}o(e,"signRequest");function r(i,a){let c=i.headers.get(a);return!c||a===se.CONTENT_LENGTH&&c==="0"?"":c}o(r,"getHeaderValueToSign");function s(i){let a=[];for(let[l,u]of i.headers)l.toLowerCase().startsWith(se.PREFIX_FOR_STORAGE)&&a.push({name:l,value:u});a.sort((l,u)=>ay(l.name.toLowerCase(),u.name.toLowerCase())),a=a.filter((l,u,A)=>!(u>0&&l.name.toLowerCase()===A[u-1].name.toLowerCase()));let c="";return a.forEach(l=>{c+=`${l.name.toLowerCase().trimRight()}:${l.value.trimLeft()}
|
||||
`}),c}o(s,"getCanonicalizedHeadersString");function n(i){let a=ny(i.url)||"/",c="";c+=`/${t.accountName}${a}`;let l=iy(i.url),u={};if(l){let A=[];for(let d in l)if(Object.prototype.hasOwnProperty.call(l,d)){let p=d.toLowerCase();u[p]=l[d],A.push(p)}A.sort();for(let d of A)c+=`
|
||||
${d}:${decodeURIComponent(u[d])}`}return c}return o(n,"getCanonicalizedResourceString"),{name:Qwe,async sendRequest(i,a){return e(i),a(i)}}}o(fS,"storageSharedKeyCredentialPolicy");var xwe="storageRequestFailureDetailsParserPolicy";function a4(){return{name:xwe,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(a4,"storageRequestFailureDetailsParserPolicy");var c4=require("node:crypto");var cy=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,c4.createHmac)("sha256",this.key).update(e,"utf8").digest("base64")}};var ly="12.31.0",uy="2026-02-06";var Ay="https://storage.azure.com/.default",io={Parameters:{FORCE_BROWSER_NO_CACHE:"_",SIGNATURE:"sig",SNAPSHOT:"snapshot",VERSIONID:"versionid",TIMEOUT:"timeout"}};var Cn="",gS="*",Nwe=1*1024*1024;var Swe=4*Nwe;var l4="AES256",u4="DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;",A4=["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"],d4=["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"],p4="BlobUsesCustomerSpecifiedEncryption",m4="BlobDoesNotUseCustomerSpecifiedEncryption",h4=["10000","10001","10002","10003","10004","10100","10101","10102","10103","10104","11000","11001","11002","11003","11004","11100","11101","11102","11103","11104"];function oo(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(oo,"isPipelineLike");var Dp=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 yt(t,e={}){t||(t=new Je);let r=new Dp([],e);return r._credential=t,r}o(yt,"newPipeline");function Rwe(t){let e=[Twe,f4,vwe,Pwe,kwe,Dwe,Lwe];if(t.factories.length){let r=t.factories.filter(s=>!e.some(n=>n(s)));if(r.length){let s=r.some(n=>_we(n));return{wrappedPolicies:JN(r),afterRetry:s}}}}o(Rwe,"processDownlevelPipeline");function ES(t){let{httpClient:e,...r}=t.options,s=t._coreHttpClient;s||(s=e?WN(e):hS(),t._coreHttpClient=s);let n=t._corePipeline;if(!n){let i=`azsdk-js-azure-storage-blob/${ly}`,a=r.userAgentOptions&&r.userAgentOptions.userAgentPrefix?`${r.userAgentOptions.userAgentPrefix} ${i}`:`${i}`;n=fp({...r,loggingOptions:{additionalAllowedHeaderNames:A4,additionalAllowedQueryParameters:d4,logger:XE.info},userAgentOptions:{userAgentPrefix:a},serializationOptions:{stringifyXML:KE,serializerOptions:{xml:{xmlCharKey:"#"}}},deserializationOptions:{parseXML:pS,serializerOptions:{xml:{xmlCharKey:"#"}}}}),n.removePolicy({phase:"Retry"}),n.removePolicy({name:bN}),n.addPolicy(n4()),n.addPolicy(i4(r.retryOptions),{phase:"Retry"}),n.addPo
Line truncated
|
||||
`),i=e.computeHMACSHA256(n);return{sasQueryParameters:new Qn(t.version,i,s,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType),stringToSign:n}}o(RQe,"generateBlobSASQueryParameters20150405");function TQe(t,e){if(t=wc(t),!t.identifier&&!(t.permissions&&t.expiresOn))throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.");let r="c",s=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",s=t.versionId));let n;t.permissions&&(t.blobName?n=Ci.parse(t.permissions.toString()).toString():n=Ii.parse(t.permissions.toString()).toString());let i=[n||"",t.startsOn?Se(t.startsOn,!1):"",t.expiresOn?Se(t.expiresOn,!1):"",Bc(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?bn(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,s,t.cacheControl?t.cacheControl:"",t.contentDisposition?t.contentDisposition:"",t.contentEncoding?t.contentEncoding:"",t.contentLanguage?t.contentLanguage:"",t.contentType?t.contentType:""].join(`
|
||||
`),a=e.computeHMACSHA256(i);return{sasQueryParameters:new Qn(t.version,a,n,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType),stringToSign:i}}o(TQe,"generateBlobSASQueryParameters20181109");function vQe(t,e){if(t=wc(t),!t.identifier&&!(t.permissions&&t.expiresOn))throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.");let r="c",s=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",s=t.versionId));let n;t.permissions&&(t.blobName?n=Ci.parse(t.permissions.toString()).toString():n=Ii.parse(t.permissions.toString()).toString());let i=[n||"",t.startsOn?Se(t.startsOn,!1):"",t.expiresOn?Se(t.expiresOn,!1):"",Bc(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?bn(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,s,t.encryptionScope,t.cacheControl?t.cacheControl:"",t.contentDisposition?t.contentDisposition:"",t.contentEncoding?t.contentEncoding:"",t.contentLanguage?t.contentLanguage:"",t.contentType?t.contentType:""].join(`
|
||||
`),a=e.computeHMACSHA256(i);return{sasQueryParameters:new Qn(t.version,a,n,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,void 0,void 0,void 0,t.encryptionScope),stringToSign:i}}o(vQe,"generateBlobSASQueryParameters20201206");function PQe(t,e){if(t=wc(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",s=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",s=t.versionId));let n;t.permissions&&(t.blobName?n=Ci.parse(t.permissions.toString()).toString():n=Ii.parse(t.permissions.toString()).toString());let i=[n||"",t.startsOn?Se(t.startsOn,!1):"",t.expiresOn?Se(t.expiresOn,!1):"",Bc(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Se(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Se(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.ipRange?bn(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,s,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
|
||||
`),a=e.computeHMACSHA256(i);return{sasQueryParameters:new Qn(t.version,a,n,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey),stringToSign:i}}o(PQe,"generateBlobSASQueryParametersUDK20181109");function kQe(t,e){if(t=wc(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",s=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",s=t.versionId));let n;t.permissions&&(t.blobName?n=Ci.parse(t.permissions.toString()).toString():n=Ii.parse(t.permissions.toString()).toString());let i=[n||"",t.startsOn?Se(t.startsOn,!1):"",t.expiresOn?Se(t.expiresOn,!1):"",Bc(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Se(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Se(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?bn(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,s,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
|
||||
`),a=e.computeHMACSHA256(i);return{sasQueryParameters:new Qn(t.version,a,n,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId),stringToSign:i}}o(kQe,"generateBlobSASQueryParametersUDK20200210");function DQe(t,e){if(t=wc(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",s=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",s=t.versionId));let n;t.permissions&&(t.blobName?n=Ci.parse(t.permissions.toString()).toString():n=Ii.parse(t.permissions.toString()).toString());let i=[n||"",t.startsOn?Se(t.startsOn,!1):"",t.expiresOn?Se(t.expiresOn,!1):"",Bc(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Se(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Se(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?bn(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,s,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
|
||||
`),a=e.computeHMACSHA256(i);return{sasQueryParameters:new Qn(t.version,a,n,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId,t.encryptionScope),stringToSign:i}}o(DQe,"generateBlobSASQueryParametersUDK20201206");function _Qe(t,e){if(t=wc(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",s=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",s=t.versionId));let n;t.permissions&&(t.blobName?n=Ci.parse(t.permissions.toString()).toString():n=Ii.parse(t.permissions.toString()).toString());let i=[n||"",t.startsOn?Se(t.startsOn,!1):"",t.expiresOn?Se(t.expiresOn,!1):"",Bc(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Se(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Se(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,void 0,t.delegatedUserObjectId,t.ipRange?bn(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,s,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
|
||||
`),a=e.computeHMACSHA256(i);return{sasQueryParameters:new Qn(t.version,a,n,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId,t.encryptionScope,t.delegatedUserObjectId),stringToSign:i}}o(_Qe,"generateBlobSASQueryParametersUDK20250705");function Bc(t,e,r){let s=[`/blob/${t}/${e}`];return r&&s.push(`/${r}`),s.join("")}o(Bc,"getCanonicalName");function wc(t){let e=t.version?t.version:uy;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(wc,"SASSignatureValuesSanityCheckAndAutofill");var $p=class{static{o(this,"BlobLeaseClient")}_leaseId;_url;_containerOrBlobOperation;_isContainer;get leaseId(){return this._leaseId}get url(){return this._url}constructor(e,r){let s=e.storageClientContext;this._url=e.url,e.name===void 0?(this._isContainer=!0,this._containerOrBlobOperation=s.container):(this._isContainer=!1,this._containerOrBlobOperation=s.blob),r||(r=pu()),this._leaseId=r}async acquireLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==Cn||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==Cn||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 V.withSpan("BlobLeaseClient-acquireLease",r,async s=>W(await this._containerOrBlobOperation.acquireLease({abortSignal:r.abortSignal,duration:e,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},proposedLeaseId:this._leaseId,tracingOptions:s.tracingOptions})))}async changeLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==Cn||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==Cn||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 V.withSpan("BlobLeaseClient-changeLease",r,async s=>{let n=W(await this._containerOrBlobOperation.changeLease(this._leaseId,e,{abortSignal:r.abortSignal,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},tracingOptions:s.tracingOptions}));return this._leaseId=e,n})}async releaseLease(e={}){if(this._isContainer&&(e.conditions?.ifMatch&&e.conditions?.ifMatch!==Cn||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==Cn||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 V.withSpan("BlobLeaseClient-releaseLease",e,async r=>W(await this._containerOrBlobOperation.releaseLease(this._leaseId,{abortSignal:e.abortSignal,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},tracingOptions:r.tracingOptions})))}async renewLease(e={}){if(this._isContainer&&(e.conditions?.ifMatch&&e.conditions?.ifMatch!==Cn||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==Cn||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"}};Du.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var Nc=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"}};Nc.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var rm=class extends Error{static{o(this,"RateLimitError")}constructor(e){super(e),this.name="RateLimitError"}};var Vxe=function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(a){a(i)})}return o(n,"adopt"),new(r||(r=Promise))(function(i,a){function c(A){try{u(s.next(A))}catch(d){a(d)}}o(c,"fulfilled");function l(A){try{u(s.throw(A))}catch(d){a(d)}}o(l,"rejected");function u(A){A.done?i(A.value):n(A.value).then(c,l)}o(u,"step"),u((s=s.apply(t,e||[])).next())})},cP=class{static{o(this,"UploadProgress")}constructor(e){this.contentLength=e,this.sentBytes=0,this.displayedComplete=!1,this.startTime=Date.now()}setSentBytes(e){this.sentBytes=e}getTransferredBytes(){return this.sentBytes}isDone(){return this.getTransferredBytes()===this.contentLength}display(){if(this.displayedComplete)return;let e=this.sentBytes,r=(100*(e/this.contentLength)).toFixed(1),s=Date.now()-this.startTime,n=(e/(1024*1024)/(s/1e3)).toFixed(1);S(`Sent ${e} of ${this.contentLength} (${r}%), ${n} MBs/sec`),this.isDone()&&(this.displayedComplete=!0)}onProgress(){return e=>{this.setSentBytes(e.loadedBytes)}}startDisplayTimer(e=1e3){let r=o(()=>{this.display(),this.isDone()||(this.timeoutHandle=setTimeout(r,e))},"displayCallback");this.timeoutHandle=setTimeout(r,e)}stopDisplayTimer(){this.timeoutHandle&&(clearTimeout(this.timeoutHandle),this.timeoutHandle=void 0),this.display()}};function y8(t,e,r){return Vxe(this,void 0,void 0,function*(){var s;let n=new mo(t),i=n.getBlockBlobClient(),a=new cP((s=r?.archiveSizeBytes)!==null&&s!==void 0?s:0),c={blockSize:r?.uploadChunkSize,concurrency:r?.uploadConcurrency,maxSingleShotSize:128*1024*1024,onProgress:a.onProgress()};try{a.startDisplayTimer(),b(`BlobClient: ${n.name}:${n.accountName}:${n.containerName}`);let l=yield i.uploadFile(e,c);if(l._response.status>=400)throw new hC(`uploadCacheArchiveSDK: upload failed with status code ${l._response.status}`);return l}catch(l){throw tt(`uploadCacheArchiveSDK: internal error uploading cache archive: ${l.message}`),l}finally{a.stopDisplayTimer()}})}o(y8,"uploadCacheArchiveSDK");var I8=w(require("buffer"),1),Bi=w(require("fs"),1),B8=w(require("stream"),1),w8=w(require("util"),1);var fC=function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(a){a(i)})}return o(n,"adopt"),new(r||(r=Promise))(function(i,a){function c(A){try{u(s.next(A))}catch(d){a(d)}}o(c,"fulfilled");function l(A){try{u(s.throw(A))}catch(d){a(d)}}o(l,"rejected");function u(A){A.done?i(A.value):n(A.value).then(c,l)}o(u,"step"),u((s=s.apply(t,e||[])).next())})};function gC(t){return t?t>=200&&t<300:!1}o(gC,"isSuccessStatusCode");function $xe(t){return t?t>=500:!0}o($xe,"isServerErrorStatusCode");function Yxe(t){return t?[rt.BadGateway,rt.ServiceUnavailable,rt.GatewayTimeout].includes(t):!1}o(Yxe,"isRetryableStatusCode");function Jxe(t){return fC(this,void 0,void 0,function*(){return new Promise(e=>setTimeout(e,t))})}o(Jxe,"sleep");function C8(t,e,r){return fC(this,arguments,void 0,function*(s,n,i,a=qg,c=Gg,l=void 0){let u="",A=1;for(;A<=a;){let d,p,m=!1;try{d=yield n()}catch(h){l&&(d=l(h)),m=!0,u=h.message}if(d&&(p=i(d),!$xe(p)))return d;if(p&&(m=Yxe(p),u=`Cache service responded with ${p}`),b(`${s} - Attempt ${A} of ${a} failed with error: ${u}`),!m){b(`${s} - Error is not retryable`);break}yield Jxe(c),A++}throw Error(`${s} failed: ${u}`)})}o(C8,"retry");function sm(t,e){return fC(this,arguments,void 0,function*(r,s,n=qg,i=Gg){return yield C8(r,s,a=>a.statusCode,n,i,a=>{if(a instanceof Wn)return{statusCode:a.statusCode,result:null,headers:{},error:a}})})}o(sm,"retryTypedResponse");function _u(t,e){return fC(this,arguments,void 0,function*(r,s,n=qg,i=Gg){return yield C8(r,s,a=>a.message.statusCode,n,i)})}o(_u,"retryHttpClientResponse");var Ys=function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(a){a(i)})}return o(n,"adopt"),new(r||(r=Promise))(function(i,a){function c(A){try{u(s.next(A))}catch(d){a(d)}}o(c,"fulfilled");function l(A){try{u(s.throw(A))}catch(d){a(d)}}o(l,"rejected");function u(A){A.done?i(A.value):n(A.value).then(c,l)}o(u,"step"),u((s=s.apply(t,e||[])).next())})};function Wxe(t,e){return Ys(this,void 0,void 0,function*(){yield w8.promisify(B8.pipeline)(t.message,e)})}o(Wxe,"pipeResponseToStream");var EC=class{static{o(this,"DownloadProgress")}constructor(e){this.contentLength=e,this.segmentIndex=0,this.segmentSize=0,this.segmentOffset=0,this.receivedBytes=0,this.displayedComplete=!1,this.startTime=Date.now()}nextSegment(e){this.segmentOffset=this.segmentOffset+this.segmentSize,this.segmentIndex=this.segmentIndex+1,this.segmentSize=e,this.receivedBytes=0,b(`Downloading segment at offset ${this.segmentOffset} with length ${this.segmentSize}...`)}setReceivedBytes(e){this.received
Line truncated
|
||||
Other caches with similar key:`);for(let c of i?.artifactCaches||[])b(`Cache Key: ${c?.cacheKey}, Cache Version: ${c?.cacheVersion}, Cache Scope: ${c?.scope}, Cache Created: ${c?.creationTime}`)}}})}o(r0e,"printCachesListForDiagnostics");function dP(t,e,r){return Hr(this,void 0,void 0,function*(){let s=new k8.URL(t),n=N8(r);s.hostname.endsWith(".blob.core.windows.net")?n.useAzureSdk?yield Q8(t,e,n):n.concurrentBlobDownloads?yield b8(t,e,n):yield yC(t,e):yield yC(t,e)})}o(dP,"downloadCache");function _8(t,e,r){return Hr(this,void 0,void 0,function*(){let s=AP(),n=nu(e,r?.compressionMethod,r?.enableCrossOsArchive),i={key:t,version:n,cacheSize:r?.cacheSize};return yield sm("reserveCache",()=>Hr(this,void 0,void 0,function*(){return s.postJson(im("caches"),i)}))})}o(_8,"reserveCache");function P8(t,e){return`bytes ${t}-${e}/*`}o(P8,"getContentRange");function s0e(t,e,r,s,n){return Hr(this,void 0,void 0,function*(){b(`Uploading chunk of size ${n-s+1} bytes at offset ${s} with content range: ${P8(s,n)}`);let i={"Content-Type":"application/octet-stream","Content-Range":P8(s,n)},a=yield _u(`uploadChunk (start: ${s}, end: ${n})`,()=>Hr(this,void 0,void 0,function*(){return t.sendStream("PATCH",e,r(),i)}));if(!gC(a.message.statusCode))throw new Error(`Cache service responded with ${a.message.statusCode} during upload chunk.`)})}o(s0e,"uploadChunk");function n0e(t,e,r,s){return Hr(this,void 0,void 0,function*(){let n=Jn(r),i=im(`caches/${e.toString()}`),a=Lu.openSync(r,"r"),c=lP(s),l=O0("uploadConcurrency",c.uploadConcurrency),u=O0("uploadChunkSize",c.uploadChunkSize),A=[...new Array(l).keys()];b("Awaiting all uploads");let d=0;try{yield Promise.all(A.map(()=>Hr(this,void 0,void 0,function*(){for(;d<n;){let p=Math.min(n-d,u),m=d,h=d+p-1;d+=u,yield s0e(t,i,()=>Lu.createReadStream(r,{fd:a,start:m,end:h,autoClose:!1}).on("error",g=>{throw new Error(`Cache upload failed because file read failed with ${g.message}`)}),m,h)}})))}finally{Lu.closeSync(a)}})}o(n0e,"uploadFile");function i0e(t,e,r){return Hr(this,void 0,void 0,function*(){let s={size:r};return yield sm("commitCache",()=>Hr(this,void 0,void 0,function*(){return t.postJson(im(`caches/${e.toString()}`),s)}))})}o(i0e,"commitCache");function pP(t,e,r,s){return Hr(this,void 0,void 0,function*(){if(lP(s).useAzureSdk){if(!r)throw new Error("Azure Storage SDK can only be used when a signed URL is provided.");yield y8(r,e,s)}else{let i=AP();b("Upload cache"),yield n0e(i,t,e,s),b("Commiting cache");let a=Jn(e);S(`Cache Size: ~${Math.round(a/(1024*1024))} MB (${a} B)`);let c=yield i0e(i,t,a);if(!gC(c.statusCode))throw new Error(`Cache service responded with ${c.statusCode} during commit cache.`);S("Cache saved successfully")}})}o(pP,"saveCache");var R5=w(B5(),1),Bt=w(It(),1),ys=w(It(),1),Pc=w(It(),1),kc=w(It(),1),Dc=w(It(),1);var ak=w(It(),1),ck=w(It(),1),x5=w(It(),1),N5=w(It(),1),S5=w(It(),1);var nk=w(It(),1),ik=w(It(),1),w5=w(It(),1),b5=w(It(),1),Q5=w(It(),1);var ok=class extends Q5.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,b5.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,w5.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,s,n){let i=n??this.create(),a=e.pos+r;for(;e.pos<a;){let[c,l]=e.tag();switch(c){case 1:i.scope=e.string();break;case 2:i.permission=e.int64().toString();break;default:let u=s.readUnknownField;if(u==="throw")throw new globalThis.Error(`Unknown field ${c} (wire type ${l}) for ${this.typeName}`);let A=e.skip(l);u!==!1&&(u===!0?ik.UnknownFieldHandler.onRead:u)(this.typeName,i,c,l,A)}}return i}internalBinaryWrite(e,r,s){e.scope!==""&&r.tag(1,nk.WireType.LengthDelimited).string(e.scope),e.permission!=="0"&&r.tag(2,nk.WireType.Varint).int64(e.permission);let n=s.writeUnknownFields;return n!==!1&&(n==!0?ik.UnknownFieldHandler.onWrite:n)(this.typeName,e,r),r}},oI=new ok;var lk=class extends S5.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(()=>oI,"T")}])}create(e){let r={repositoryId:"0",scope:[]};return globalThis.Object.defineProperty(r,N5.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,x5.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,s,n){let i=n??this.create(),a=e.pos+r;for(;e.pos<a;){let[c,l]=e.tag();switch(c){case 1:i.repositoryId=e.int64().toString();break;case 2:i.scope.push(oI.internalBinaryRead(e,e.uint32(),s));break;default:let u=s.readUnknownField;if(u==="throw")throw new globalThis.Error(`Unknown field ${c} (wire type ${l}) for ${this.typeName}`);let A=e.skip(l);u!==!1&&(u===!0?ck.UnknownFieldHandler.onRead:u)(this.typeName,i,c,l,A)}}return i}internalBinaryWrite(e,r,s){e.repositoryId!=="0"&&r.tag(1,ak.WireType.
Line truncated
|
||||
`));let s=yield bk(r,"create");yield Qk(s,t)})}o(Nk,"createTar");var Zu=function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(a){a(i)})}return o(n,"adopt"),new(r||(r=Promise))(function(i,a){function c(A){try{u(s.next(A))}catch(d){a(d)}}o(c,"fulfilled");function l(A){try{u(s.throw(A))}catch(d){a(d)}}o(l,"rejected");function u(A){A.done?i(A.value):n(A.value).then(c,l)}o(u,"step"),u((s=s.apply(t,e||[])).next())})},Sn=class t extends Error{static{o(this,"ValidationError")}constructor(e){super(e),this.name="ValidationError",Object.setPrototypeOf(this,t.prototype)}},Xu=class t extends Error{static{o(this,"ReserveCacheError")}constructor(e){super(e),this.name="ReserveCacheError",Object.setPrototypeOf(this,t.prototype)}},uI=class t extends Error{static{o(this,"FinalizeCacheError")}constructor(e){super(e),this.name="FinalizeCacheError",Object.setPrototypeOf(this,t.prototype)}};function k5(t){if(!t||t.length===0)throw new Sn("Path Validation Error: At least one directory or file path is required")}o(k5,"checkPaths");function Sk(t){if(t.length>512)throw new Sn(`Key Validation Error: ${t} cannot be larger than 512 characters.`);if(!/^[^,]*$/.test(t))throw new Sn(`Key Validation Error: ${t} cannot contain commas.`)}o(Sk,"checkKey");function Rk(){return nm()==="v2"?!!process.env.ACTIONS_RESULTS_URL:!!process.env.ACTIONS_CACHE_URL}o(Rk,"isFeatureAvailable");function D5(t,e,r,s){return Zu(this,arguments,void 0,function*(n,i,a,c,l=!1){let u=nm();return b(`Cache service version: ${u}`),k5(n),u==="v2"?yield CSe(n,i,a,c,l):yield ySe(n,i,a,c,l)})}o(D5,"restoreCache");function ySe(t,e,r,s){return Zu(this,arguments,void 0,function*(n,i,a,c,l=!1){a=a||[];let u=[i,...a];if(b("Resolved Keys:"),b(JSON.stringify(u)),u.length>10)throw new Sn("Key Validation Error: Keys are limited to a maximum of 10.");for(let p of u)Sk(p);let A=yield rp(),d="";try{let p=yield D8(u,n,{compressionMethod:A,enableCrossOsArchive:l});if(!p?.archiveLocation)return;if(c?.lookupOnly)return S("Lookup only - skipping download"),p.cacheKey;d=Im.join(yield ep(),Wo(A)),b(`Archive Path: ${d}`),yield dP(p.archiveLocation,d,c),ja()&&(yield Cm(d,A));let m=Jn(d);return S(`Cache Size: ~${Math.round(m/(1024*1024))} MB (${m} B)`),yield xk(d,A),S("Cache restored successfully"),p.cacheKey}catch(p){let m=p;if(m.name===Sn.name)throw p;m instanceof Wn&&typeof m.statusCode=="number"&&m.statusCode>=500?Yl(`Failed to restore: ${p.message}`):tt(`Failed to restore: ${p.message}`)}finally{try{yield tp(d)}catch(p){b(`Failed to delete archive: ${p}`)}}})}o(ySe,"restoreCacheV1");function CSe(t,e,r,s){return Zu(this,arguments,void 0,function*(n,i,a,c,l=!1){c=Object.assign(Object.assign({},c),{useAzureSdk:!0}),a=a||[];let u=[i,...a];if(b("Resolved Keys:"),b(JSON.stringify(u)),u.length>10)throw new Sn("Key Validation Error: Keys are limited to a maximum of 10.");for(let d of u)Sk(d);let A="";try{let d=wk(),p=yield rp(),m={key:i,restoreKeys:a,version:nu(n,p,l)},h=yield d.GetCacheEntryDownloadURL(m);if(!h.ok){b(`Cache not found for version ${m.version} of keys: ${u.join(", ")}`);return}if(m.key!==h.matchedKey?S(`Cache hit for restore-key: ${h.matchedKey}`):S(`Cache hit for: ${h.matchedKey}`),c?.lookupOnly)return S("Lookup only - skipping download"),h.matchedKey;A=Im.join(yield ep(),Wo(p)),b(`Archive path: ${A}`),b(`Starting download of archive to: ${A}`),yield dP(h.signedDownloadUrl,A,c);let C=Jn(A);return S(`Cache Size: ~${Math.round(C/(1024*1024))} MB (${C} B)`),ja()&&(yield Cm(A,p)),yield xk(A,p),S("Cache restored successfully"),h.matchedKey}catch(d){let p=d;if(p.name===Sn.name)throw d;p instanceof Wn&&typeof p.statusCode=="number"&&p.statusCode>=500?Yl(`Failed to restore: ${d.message}`):tt(`Failed to restore: ${d.message}`)}finally{try{A&&(yield tp(A))}catch(d){b(`Failed to delete archive: ${d}`)}}})}o(CSe,"restoreCacheV2");function Tk(t,e,r){return Zu(this,arguments,void 0,function*(s,n,i,a=!1){let c=nm();return b(`Cache service version: ${c}`),k5(s),Sk(n),c==="v2"?yield BSe(s,n,i,a):yield ISe(s,n,i,a)})}o(Tk,"saveCache");function ISe(t,e,r){return Zu(this,arguments,void 0,function*(s,n,i,a=!1){var c,l,u,A,d;let p=yield rp(),m=-1,h=yield M0(s);if(b("Cache Paths:"),b(`${JSON.stringify(h)}`),h.length===0)throw new Error("Path Validation Error: Path(s) specified in the action for caching do(es) not exist, hence no cache is being saved.");let g=yield ep(),C=Im.join(g,Wo(p));b(`Archive Path: ${C}`);try{yield Nk(g,h,p),ja()&&(yield Cm(C,p));let E=10*1024*1024*1024,y=Jn(C);if(b(`File Size: ${y}`),y>E&&!uP())throw new Error(`Cache size of ~${Math.round(y/(1024*1024))} MB (${y} B) is over the 10GB limit, not saving cache.`);b("Reserving Cache");let I=yield _8(n,s,{compressionMethod:p,enableCrossOsArchive:a,cacheSize:y});if(!((c=I?.result)===null||c===void 0)&&c.cacheId)m=(l=I?.result)===null||l===void 0?void 0:l.cacheId;else throw I?.statusCode===400?new Error((A=(u=I?.error)===null||u===void 0?void 0:u.message)!==null&&A!==void 0?A:`Cache size of ~${Math.round(y/(1024*1024))}
Line truncated
|
||||
`,a).length:d,u?(c===null?0:c.length)+l.length:0,u?l.length+d:0);return p<m},"__needMoreData"),parse:o(function(s,n,i,a){let{bom:c,comment_no_infix:l,encoding:u,from_line:A,ltrim:d,max_record_size:p,raw:m,relax_quotes:h,rtrim:g,skip_empty_lines:C,to:E,to_line:y}=this.options,{comment:I,escape:B,quote:N,record_delimiter:D}=this.options,{bomSkipped:q,previousBuf:pe,rawBuffer:be,escapeIsQuote:Re}=this.state,$;if(pe===void 0)if(s===void 0){a();return}else $=s;else pe!==void 0&&s===void 0?$=pe:$=Buffer.concat([pe,s]);if(q===!1)if(c===!1)this.state.bomSkipped=!0;else if($.length<3){if(n===!1){this.state.previousBuf=$;return}}else{for(let ye in dA)if(dA[ye].compare($,0,dA[ye].length)===0){let Qt=dA[ye].length;this.state.bufBytesStart+=Qt,$=$.slice(Qt);let Xe=DD({...this.original_options,encoding:ye});for(let At in Xe)this.options[At]=Xe[At];({comment:I,escape:B,quote:N}=this.options);break}this.state.bomSkipped=!0}let ne=$.length,G;for(G=0;G<ne&&!this.__needMoreData(G,ne,n);G++){if(this.state.wasRowDelimiter===!0&&(this.info.lines++,this.state.wasRowDelimiter=!1),y!==-1&&this.info.lines>y){this.state.stop=!0,a();return}this.state.quoting===!1&&D.length===0&&this.__autoDiscoverRecordDelimiter($,G)&&(D=this.options.record_delimiter);let ye=$[G];if(m===!0&&be.append(ye),(ye===zve||ye===Vve)&&this.state.wasRowDelimiter===!1&&(this.state.wasRowDelimiter=!0),this.state.escaping===!0)this.state.escaping=!1;else{if(B!==null&&this.state.quoting===!0&&this.__isEscape($,G,ye)&&G+B.length<ne)if(Re){if(this.__isQuote($,G+B.length)){this.state.escaping=!0,G+=B.length-1;continue}}else{this.state.escaping=!0,G+=B.length-1;continue}if(this.state.commenting===!1&&this.__isQuote($,G))if(this.state.quoting===!0){let At=$[G+N.length],ki=g&&this.__isCharTrimable($,G+N.length),Wr=I!==null&&this.__compareBytes(I,$,G+N.length,At),vn=this.__isDelimiter($,G+N.length,At),ya=D.length===0?this.__autoDiscoverRecordDelimiter($,G+N.length):this.__isRecordDelimiter(At,$,G+N.length);if(B!==null&&this.__isEscape($,G,ye)&&this.__isQuote($,G+B.length))G+=B.length-1;else if(!At||vn||ya||Wr||ki){this.state.quoting=!1,this.state.wasQuoting=!0,G+=N.length-1;continue}else if(h===!1){let $c=this.__error(new we("CSV_INVALID_CLOSING_QUOTE",["Invalid Closing Quote:",`got "${String.fromCharCode(At)}"`,`at line ${this.info.lines}`,"instead of delimiter, record delimiter, trimable character","(if activated) or comment"],this.options,this.__infoField()));if($c!==void 0)return $c}else this.state.quoting=!1,this.state.wasQuoting=!0,this.state.field.prepend(N),G+=N.length-1}else if(this.state.field.length!==0){if(h===!1){let At=this.__infoField(),ki=Object.keys(dA).map(vn=>dA[vn].equals(this.state.field.toString())?vn:!1).filter(Boolean)[0],Wr=this.__error(new we("INVALID_OPENING_QUOTE",["Invalid Opening Quote:",`a quote is found on field ${JSON.stringify(At.column)} at line ${At.lines}, value is ${JSON.stringify(this.state.field.toString(u))}`,ki?`(${ki} bom)`:void 0],this.options,At,{field:this.state.field}));if(Wr!==void 0)return Wr}}else{this.state.quoting=!0,G+=N.length-1;continue}if(this.state.quoting===!1){let At=this.__isRecordDelimiter(ye,$,G);if(At!==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(),G+=At-1;continue}if(C===!0&&this.state.wasQuoting===!1&&this.state.record.length===0&&this.state.field.length===0){this.info.empty_lines++,G+=At-1;continue}this.info.bytes=this.state.bufBytesStart+G;let vn=this.__onField();if(vn!==void 0)return vn;this.info.bytes=this.state.bufBytesStart+G+At;let ya=this.__onRecord(i);if(ya!==void 0)return ya;if(E!==-1&&this.info.records>=E){this.state.stop=!0,a();return}}this.state.commenting=!1,G+=At-1;continue}if(this.state.commenting)continue;if(I!==null&&(l===!1||this.state.record.length===0&&this.state.field.length===0)&&this.__compareBytes(I,$,G,ye)!==0){this.state.commenting=!0;continue}let ki=this.__isDelimiter($,G,ye);if(ki!==0){this.info.bytes=this.state.bufBytesStart+G;let Wr=this.__onField();if(Wr!==void 0)return Wr;G+=ki-1;continue}}}if(this.state.commenting===!1&&p!==0&&this.state.record_length+this.state.field.length>p)return this.__error(new we("CSV_MAX_RECORD_SIZE",["Max Record Size:","record exceed the maximum number of tolerated bytes",`of ${p}`,`at line ${this.info.lines}`],this.options,this.__infoField()));let Qt=d===!1||this.state.quoting===!0||this.state.field.length!==0||!this.__isCharTrimable($,G),Xe=g===!1||this.state.wasQuoting===!1;if(Qt===!0&&Xe===!0)this.state.field.append(ye);else{if(g===!0&&!this.__isCharTrimable($,G))return this.__error(new we("CSV_NON_TRIMABLE_CHAR_AFTER_CLOSING_QUOTE",["Invalid Closing Quote:","found non trimable byte after quote",`at line ${this.info.lines}`],this.options,this.__infoField()));Qt===!1&&(G+=this.__isCharTrimable($,G)-1)
Line truncated
|
||||
`,i),Buffer.from(`
|
||||
`,i),Buffer.from("\r",i)];e:for(let c=0;c<a.length;c++){let l=a[c].length;for(let u=0;u<l;u++)if(a[c][u]!==s[n+u])continue e;return this.options.record_delimiter.push(a[c]),this.state.recordDelimiterMaxLength=a[c].length,a[c].length}return 0},"__autoDiscoverRecordDelimiter"),__error:o(function(s){let{encoding:n,raw:i,skip_records_with_error:a}=this.options,c=typeof s=="string"?new Error(s):s;if(a){if(this.state.recordHasError=!0,this.options.on_skip!==void 0)try{this.options.on_skip(c,i?this.state.rawBuffer.toString(n):void 0)}catch(l){return l}return}else return c},"__error"),__infoDataSet:o(function(){return{...this.info,columns:this.options.columns}},"__infoDataSet"),__infoRecord:o(function(){let{columns:s,raw:n,encoding:i}=this.options;return{...this.__infoDataSet(),bytes_records:this.info.bytes,error:this.state.error,header:s===!0,index:this.state.record.length,raw:n?this.state.rawBuffer.toString(i):void 0}},"__infoRecord"),__infoField:o(function(){let{columns:s}=this.options,n=Array.isArray(s),i=this.info.bytes_records;return{...this.__infoRecord(),bytes_records:i,column:n===!0?s.length>this.state.record.length?s[this.state.record.length].name:null:this.state.record.length,quoting:this.state.wasQuoting}},"__infoField")}},"transform");var JI=o(function(t,e={}){typeof t=="string"&&(t=Buffer.from(t));let r=e&&e.objname?{}:[],s=W9(e),n=o(c=>{s.options.objname===void 0?r.push(c):r[c[0]]=c[1]},"push"),i=o(()=>{},"close"),a=s.parse(t,!0,n,i);if(a!==void 0)throw a;return r},"parse");var Qr=class t{static{o(this,"Util")}static getInputList(e,r){return this.getList(mn(e,{trimWhitespace:r?.trimWhitespace!==!1}),r)}static getList(e,r){let s=[];if(e=="")return s;let n=JI(e,{columns:!1,relaxQuotes:!0,comment:r?.comment,comment_no_infix:r?.commentNoInfix,relaxColumnCount:!0,skipEmptyLines:!0,quote:r?.quote});for(let i of n)i.length==1?r?.ignoreComma?s.push(i[0]):s.push(...i[0].split(",")):r?.ignoreComma?s.push(i.join(",")):s.push(...i);return s.filter(i=>i).map(i=>r?.trimWhitespace===!1?i:i.trim())}static getInputNumber(e){let r=mn(e);if(r)return parseInt(r)}static async asyncForEach(e,r){for(let s=0;s<e.length;s++)await r(e[s],s,e)}static isValidURL(e){let r;try{r=new URL(e)}catch{return!1}return r.protocol==="http:"||r.protocol==="https:"}static isValidRef(e){if(t.isValidURL(e))return!0;for(let r of["git://","github.com/","git@"])if(e.startsWith(r))return!0;return!1}static async powershellCommand(e,r){let s=await mt("powershell",!0),n=e.replace(/'/g,"''").replace(/"|\n|\r/g,""),i=[];if(r)for(let a in r)i.push(`-${a} '${r[a].replace(/'/g,"''").replace(/"|\n|\r/g,"")}'`);return{command:`"${s}"`,args:["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",`& '${n}' ${i.join(" ")}`]}}static isDirectory(e){try{return j9.default.lstatSync(e).isDirectory()}catch{}return!1}static trimPrefix(e,r){return!e||!r||e.indexOf(r)!==0?e:e.substring(r.length)}static trimSuffix(e,r){if(!e||!r)return e;let s=e.lastIndexOf(r);return s===-1||s+r.length!==e.length?e:e.substring(0,s)}static sleep(e){return new Promise(r=>setTimeout(r,e*1e3))}static hash(e){return RD.default.createHash("sha256").update(e).digest("hex")}static parseBool(e){if(e===void 0)return!1;switch(e){case"1":case"t":case"T":case"true":case"TRUE":case"True":return!0;case"0":case"f":case"F":case"false":case"FALSE":case"False":return!1;default:throw new Error(`parseBool syntax error: ${e}`)}}static parseBoolOrDefault(e,r=!1){try{return this.parseBool(e)}catch{return r}}static formatFileSize(e){if(e===0)return"0 Bytes";let r=1024,s=["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"],n=Math.floor(Math.log(e)/Math.log(r));return parseFloat((e/Math.pow(r,n)).toFixed(2))+" "+s[n]}static generateRandomString(e=10){return RD.default.randomBytes(Math.ceil(e/2)).toString("hex").slice(0,e)}static compileHandlebars(e,r,s){return K9.default.compile(e,r)(s)}static stringToUnicodeEntities(e){return Array.from(e).map(r=>`&#x${r.charCodeAt(0).toString(16)};`).join("")}static countLines(e){return e.split(/\r\n|\r|\n/).length}static isPathRelativeTo(e,r){let s=Pm.default.resolve(e);return Pm.default.resolve(r).startsWith(s.endsWith(Pm.default.sep)?s:`${s}${Pm.default.sep}`)}static formatDuration(e){if(e===0)return"0s";let r=Math.floor(e/1e9),s=Math.floor(r/3600),n=Math.floor(r%3600/60),i=r%60,a=[];return s&&a.push(`${s}h`),n&&a.push(`${n}m`),(i||a.length===0)&&a.push(`${i}s`),a.join("")}};var ur=class t{static{o(this,"Docker")}static get configDir(){return process.env.DOCKER_CONFIG||km.default.join(X9.default.homedir(),".docker")}static configFile(){let e=km.default.join(t.configDir,"config.json");if(TD.default.existsSync(e))return JSON.parse(TD.default.readFileSync(e,{encoding:"utf-8"}))}static async isAvailable(){return await mt("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}catch{return!1}}static
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]!==s[n+u])continue e;return this.options.record_delimiter.push(a[c]),this.state.recordDelimiterMaxLength=a[c].length,a[c].length}return 0},"__autoDiscoverRecordDelimiter"),__error:o(function(s){let{encoding:n,raw:i,skip_records_with_error:a}=this.options,c=typeof s=="string"?new Error(s):s;if(a){if(this.state.recordHasError=!0,this.options.on_skip!==void 0)try{this.options.on_skip(c,i?this.state.rawBuffer.toString(n):void 0)}catch(l){return l}return}else return c},"__error"),__infoDataSet:o(function(){return{...this.info,columns:this.options.columns}},"__infoDataSet"),__infoRecord:o(function(){let{columns:s,raw:n,encoding:i}=this.options;return{...this.__infoDataSet(),bytes_records:this.info.bytes,error:this.state.error,header:s===!0,index:this.state.record.length,raw:n?this.state.rawBuffer.toString(i):void 0}},"__infoRecord"),__infoField:o(function(){let{columns:s}=this.options,n=Array.isArray(s),i=this.info.bytes_records;return{...this.__infoRecord(),bytes_records:i,column:n===!0?s.length>this.state.record.length?s[this.state.record.length].name:null:this.state.record.length,quoting:this.state.wasQuoting}},"__infoField")}},"transform");var XI=o(function(t,e={}){typeof t=="string"&&(t=Buffer.from(t));let r=e&&e.objname?{}:[],s=i6(e),n=o(c=>{s.options.objname===void 0?r.push(c):r[c[0]]=c[1]},"push"),i=o(()=>{},"close"),a=s.parse(t,!0,n,i);if(a!==void 0)throw a;return r},"parse");var Qr=class t{static{o(this,"Util")}static getInputList(e,r){return this.getList(hn(e,{trimWhitespace:r?.trimWhitespace!==!1}),r)}static getList(e,r){let s=[];if(e=="")return s;let n=XI(e,{columns:!1,relaxQuotes:!0,comment:r?.comment,comment_no_infix:r?.commentNoInfix,relaxColumnCount:!0,skipEmptyLines:!0,quote:r?.quote});for(let i of n)i.length==1?r?.ignoreComma?s.push(i[0]):s.push(...i[0].split(",")):r?.ignoreComma?s.push(i.join(",")):s.push(...i);return s.filter(i=>i).map(i=>r?.trimWhitespace===!1?i:i.trim())}static getInputNumber(e){let r=hn(e);if(r)return parseInt(r)}static async asyncForEach(e,r){for(let s=0;s<e.length;s++)await r(e[s],s,e)}static isValidURL(e){let r;try{r=new URL(e)}catch{return!1}return r.protocol==="http:"||r.protocol==="https:"}static isValidRef(e){if(t.isValidURL(e))return!0;for(let r of["git://","github.com/","git@"])if(e.startsWith(r))return!0;return!1}static async powershellCommand(e,r){let s=await ht("powershell",!0),n=e.replace(/'/g,"''").replace(/"|\n|\r/g,""),i=[];if(r)for(let a in r)i.push(`-${a} '${r[a].replace(/'/g,"''").replace(/"|\n|\r/g,"")}'`);return{command:`"${s}"`,args:["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",`& '${n}' ${i.join(" ")}`]}}static isDirectory(e){try{return o6.default.lstatSync(e).isDirectory()}catch{}return!1}static trimPrefix(e,r){return!e||!r||e.indexOf(r)!==0?e:e.substring(r.length)}static trimSuffix(e,r){if(!e||!r)return e;let s=e.lastIndexOf(r);return s===-1||s+r.length!==e.length?e:e.substring(0,s)}static sleep(e){return new Promise(r=>setTimeout(r,e*1e3))}static hash(e){return _D.default.createHash("sha256").update(e).digest("hex")}static parseBool(e){if(e===void 0)return!1;switch(e){case"1":case"t":case"T":case"true":case"TRUE":case"True":return!0;case"0":case"f":case"F":case"false":case"FALSE":case"False":return!1;default:throw new Error(`parseBool syntax error: ${e}`)}}static parseBoolOrDefault(e,r=!1){try{return this.parseBool(e)}catch{return r}}static formatFileSize(e){if(e===0)return"0 Bytes";let r=1024,s=["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"],n=Math.floor(Math.log(e)/Math.log(r));return parseFloat((e/Math.pow(r,n)).toFixed(2))+" "+s[n]}static generateRandomString(e=10){return _D.default.randomBytes(Math.ceil(e/2)).toString("hex").slice(0,e)}static compileHandlebars(e,r,s){return a6.default.compile(e,r)(s)}static stringToUnicodeEntities(e){return Array.from(e).map(r=>`&#x${r.charCodeAt(0).toString(16)};`).join("")}static countLines(e){return e.split(/\r\n|\r|\n/).length}static isPathRelativeTo(e,r){let s=Lm.default.resolve(e);return Lm.default.resolve(r).startsWith(s.endsWith(Lm.default.sep)?s:`${s}${Lm.default.sep}`)}static formatDuration(e){if(e===0)return"0s";let r=Math.floor(e/1e9),s=Math.floor(r/3600),n=Math.floor(r%3600/60),i=r%60,a=[];return s&&a.push(`${s}h`),n&&a.push(`${n}m`),(i||a.length===0)&&a.push(`${i}s`),a.join("")}};var lr=class t{static{o(this,"Docker")}static get configDir(){return process.env.DOCKER_CONFIG||Mm.default.join(c6.default.homedir(),".docker")}static configFile(){let e=Mm.default.join(t.configDir,"config.json");if(LD.default.existsSync(e))return JSON.parse(LD.default.readFileSync(e,{encoding:"utf-8"}))}static async isAvailable(){return await ht("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}catch{return!1}}static
Line truncated
|
||||
`+t.errors.map(e=>` - ${e.message}`).join(`
|
||||
`)}o(bPe,"_buildMessageForResponseErrors");var QPe=class extends Error{static{o(this,"GraphqlResponseError")}constructor(t,e,r){super(bPe(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},xPe=["method","baseUrl","url","headers","request","query","mediaType","operationName"],NPe=["query","method","url"],D6=/\/api\/v3\/?$/;function SPe(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(NPe.includes(a))return Promise.reject(new Error(`[@octokit/graphql] "${a}" cannot be used as variable name`))}let s=typeof e=="string"?Object.assign({query:e},r):e,n=Object.keys(s).reduce((a,c)=>xPe.includes(c)?(a[c]=s[c],a):(a.variables||(a.variables={}),a.variables[c]=s[c],a),{}),i=s.baseUrl||t.endpoint.DEFAULTS.baseUrl;return D6.test(i)&&(n.url=i.replace(D6,"/api/graphql")),t(n).then(a=>{if(a.data.errors){let c={};for(let l of Object.keys(a.headers))c[l]=a.headers[l];throw new QPe(n,c,a.data)}return a.data.data})}o(SPe,"graphql");function qD(t,e){let r=t.defaults(e);return Object.assign(o((n,i)=>SPe(r,n,i),"newApi"),{defaults:qD.bind(null,r),endpoint:r.endpoint})}o(qD,"withDefaults");var Tlt=qD(Mm,{headers:{"user-agent":`octokit-graphql.js/${wPe} ${ha()}`},method:"POST",url:"/graphql"});function _6(t){return qD(t,{method:"POST",url:"/graphql"})}o(_6,"withCustomRequest");var GD="(?:[a-zA-Z0-9_-]+)",L6="\\.",M6=new RegExp(`^${GD}${L6}${GD}${L6}${GD}$`),RPe=M6.test.bind(M6);async function TPe(t){let e=RPe(t),r=t.startsWith("v1.")||t.startsWith("ghs_"),s=t.startsWith("ghu_");return{type:"token",token:t,tokenType:e?"app":r?"installation":s?"user-to-server":"oauth"}}o(TPe,"auth");function vPe(t){return t.split(/\./).length===3?`bearer ${t}`:`token ${t}`}o(vPe,"withAuthorizationPrefix");async function PPe(t,e,r,s){let n=e.endpoint.merge(r,s);return n.headers.authorization=vPe(t),e(n)}o(PPe,"hook");var O6=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(TPe.bind(null,e),{hook:PPe.bind(null,e)})},"createTokenAuth2");var HD="7.0.6";var F6=o(()=>{},"noop"),kPe=console.warn.bind(console),DPe=console.error.bind(console);function _Pe(t={}){return typeof t.debug!="function"&&(t.debug=F6),typeof t.info!="function"&&(t.info=F6),typeof t.warn!="function"&&(t.warn=kPe),typeof t.error!="function"&&(t.error=DPe),t}o(_Pe,"createLogger");var U6=`octokit-core.js/${HD} ${ha()}`,oB=class{static{o(this,"Octokit")}static VERSION=HD;static defaults(e){return class extends this{static{o(this,"OctokitWithDefaults")}constructor(...s){let n=s[0]||{};if(typeof e=="function"){super(e(n));return}super(Object.assign({},e,n,n.userAgent&&e.userAgent?{userAgent:`${n.userAgent} ${e.userAgent}`}:null))}}}static plugins=[];static plugin(...e){let r=this.plugins;return class extends this{static{o(this,"NewOctokit")}static plugins=r.concat(e.filter(n=>!r.includes(n)))}}constructor(e={}){let r=new h6.Collection,s={baseUrl:Mm.endpoint.DEFAULTS.baseUrl,headers:{},request:Object.assign({},e.request,{hook:r.bind(null,"request")}),mediaType:{previews:[],format:""}};if(s.headers["user-agent"]=e.userAgent?`${e.userAgent} ${U6}`:U6,e.baseUrl&&(s.baseUrl=e.baseUrl),e.previews&&(s.mediaType.previews=e.previews),e.timeZone&&(s.headers["time-zone"]=e.timeZone),this.request=Mm.defaults(s),this.graphql=_6(this.request).defaults(s),this.log=_Pe(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=O6(e.auth);r.wrap("request",i.hook),this.auth=i}let n=this.constructor;for(let i=0;i<n.plugins.length;++i)Object.assign(this,n.plugins[i](this,e))}request;graphql;log;hook;auth};var zD="17.0.0";var LPe={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"],createHostedRunnerF
Line truncated
|
||||
`)}o(TPe,"_buildMessageForResponseErrors");var vPe=class extends Error{static{o(this,"GraphqlResponseError")}constructor(t,e,r){super(TPe(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},PPe=["method","baseUrl","url","headers","request","query","mediaType","operationName"],kPe=["query","method","url"],z6=/\/api\/v3\/?$/;function DPe(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(kPe.includes(a))return Promise.reject(new Error(`[@octokit/graphql] "${a}" cannot be used as variable name`))}let s=typeof e=="string"?Object.assign({query:e},r):e,n=Object.keys(s).reduce((a,c)=>PPe.includes(c)?(a[c]=s[c],a):(a.variables||(a.variables={}),a.variables[c]=s[c],a),{}),i=s.baseUrl||t.endpoint.DEFAULTS.baseUrl;return z6.test(i)&&(n.url=i.replace(z6,"/api/graphql")),t(n).then(a=>{if(a.data.errors){let c={};for(let l of Object.keys(a.headers))c[l]=a.headers[l];throw new vPe(n,c,a.data)}return a.data.data})}o(DPe,"graphql");function YD(t,e){let r=t.defaults(e);return Object.assign(o((n,i)=>DPe(r,n,i),"newApi"),{defaults:YD.bind(null,r),endpoint:r.endpoint})}o(YD,"withDefaults");var Llt=YD(qm,{headers:{"user-agent":`octokit-graphql.js/${RPe} ${ha()}`},method:"POST",url:"/graphql"});function V6(t){return YD(t,{method:"POST",url:"/graphql"})}o(V6,"withCustomRequest");var JD="(?:[a-zA-Z0-9_-]+)",$6="\\.",Y6=new RegExp(`^${JD}${$6}${JD}${$6}${JD}$`),_Pe=Y6.test.bind(Y6);async function LPe(t){let e=_Pe(t),r=t.startsWith("v1.")||t.startsWith("ghs_"),s=t.startsWith("ghu_");return{type:"token",token:t,tokenType:e?"app":r?"installation":s?"user-to-server":"oauth"}}o(LPe,"auth");function MPe(t){return t.split(/\./).length===3?`bearer ${t}`:`token ${t}`}o(MPe,"withAuthorizationPrefix");async function OPe(t,e,r,s){let n=e.endpoint.merge(r,s);return n.headers.authorization=MPe(t),e(n)}o(OPe,"hook");var J6=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(LPe.bind(null,e),{hook:OPe.bind(null,e)})},"createTokenAuth2");var WD="7.0.6";var W6=o(()=>{},"noop"),FPe=console.warn.bind(console),UPe=console.error.bind(console);function qPe(t={}){return typeof t.debug!="function"&&(t.debug=W6),typeof t.info!="function"&&(t.info=W6),typeof t.warn!="function"&&(t.warn=FPe),typeof t.error!="function"&&(t.error=UPe),t}o(qPe,"createLogger");var j6=`octokit-core.js/${WD} ${ha()}`,uB=class{static{o(this,"Octokit")}static VERSION=WD;static defaults(e){return class extends this{static{o(this,"OctokitWithDefaults")}constructor(...s){let n=s[0]||{};if(typeof e=="function"){super(e(n));return}super(Object.assign({},e,n,n.userAgent&&e.userAgent?{userAgent:`${n.userAgent} ${e.userAgent}`}:null))}}}static plugins=[];static plugin(...e){let r=this.plugins;return class extends this{static{o(this,"NewOctokit")}static plugins=r.concat(e.filter(n=>!r.includes(n)))}}constructor(e={}){let r=new Q6.Collection,s={baseUrl:qm.endpoint.DEFAULTS.baseUrl,headers:{},request:Object.assign({},e.request,{hook:r.bind(null,"request")}),mediaType:{previews:[],format:""}};if(s.headers["user-agent"]=e.userAgent?`${e.userAgent} ${j6}`:j6,e.baseUrl&&(s.baseUrl=e.baseUrl),e.previews&&(s.mediaType.previews=e.previews),e.timeZone&&(s.headers["time-zone"]=e.timeZone),this.request=qm.defaults(s),this.graphql=V6(this.request).defaults(s),this.log=qPe(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=J6(e.auth);r.wrap("request",i.hook),this.auth=i}let n=this.constructor;for(let i=0;i<n.plugins.length;++i)Object.assign(this,n.plugins[i](this,e))}request;graphql;log;hook;auth};var jD="17.0.0";var GPe={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"],createHostedRunnerF
Line truncated
|
||||
[CmdletBinding()]
|
||||
param(
|
||||
[Parameter(Mandatory = $true)]
|
||||
@@ -218,12 +218,12 @@ While ($true) {
|
||||
Start-Sleep -Seconds 1
|
||||
}
|
||||
Write-Host "Docker daemon started successfully!"
|
||||
`,aLe=`
|
||||
`,pLe=`
|
||||
Get-WinEvent -ea SilentlyContinue \`
|
||||
-FilterHashtable @{ProviderName= "docker"; LogName = "application"} |
|
||||
Sort-Object @{Expression="TimeCreated";Descending=$false} |
|
||||
ForEach-Object {"$($_.TimeCreated.ToUniversalTime().ToString("o")) [$($_.LevelDisplayName)] $($_.Message)"}
|
||||
`,HX=`
|
||||
`,ZX=`
|
||||
# Source:
|
||||
# - https://github.com/lima-vm/lima/blob/master/templates/docker-rootful.yaml
|
||||
# - https://github.com/lima-vm/lima/blob/master/templates/_images/ubuntu-lts.yaml
|
||||
@@ -432,13 +432,13 @@ audio:
|
||||
# Choosing "none" will mute the audio output, and not play any sound.
|
||||
# Builtin default: ""
|
||||
device: none
|
||||
`;var Vm=class t{static{o(this,"Install")}runDir;source;contextName;daemonConfig;rootless;localTCPPort;regctl;undock;githubToken;_version;_toolDir;gitCommit;limaInstanceName="docker-actions-toolkit";constructor(e){this.runDir=e.runDir,this.source=e.source||{type:"archive",version:"latest",channel:"stable"},this.contextName=e.contextName||"setup-docker-action",this.daemonConfig=e.daemonConfig,this.rootless=e.rootless||!1,this.localTCPPort=e.localTCPPort,this.regctl=e.regctl||new IB,this.undock=e.undock||new BB,this.githubToken=e.githubToken||process.env.GITHUB_TOKEN}get toolDir(){return this._toolDir||Yr.tmpDir()}async download(){let e,r,s=Jr.default.platform();switch(this.source.type){case"image":{this._version=this.source.tag,r="docker-image",e=await this.downloadSourceImage(s);break}case"archive":{let i=this.source.version;if(r=`docker-archive-${this.source.channel}`,this._version=i,S(`Downloading Docker ${i} from ${this.source.channel} at download.docker.com`),e=await this.downloadSourceArchive("docker",this.source),this.rootless){S(`Downloading Docker rootless extras ${i} from ${this.source.channel} at download.docker.com`);let c=await this.downloadSourceArchive("docker-rootless-extras",this.source);Ot.default.readdirSync(c).forEach(l=>{let u=Rt.default.join(c,l),A=Rt.default.join(e,l);Ot.default.copyFileSync(u,A)})}break}}S("Fixing perms"),Ot.default.readdir(Rt.default.join(e),function(i,a){if(i)throw i;a.forEach(function(c,l){Qr.isDirectory(Rt.default.join(e,c))||Ot.default.chmodSync(Rt.default.join(e,c),"0755")})});let n=await kd(e,r,this._version.replace(/(0+)([1-9]+)/,"$2"));return Hl(n),S("Added Docker to PATH"),this._toolDir=n,n}async downloadSourceImage(e){let r=Rt.default.join(Yr.tmpDir(),"docker-install-image"),s=`dockereng/cli-bin:${this._version}`,n=`moby/moby-bin:${this._version}`;if(S(`Downloading Docker CLI from ${s}`),await this.undock.run({source:s,dist:r}),["win32","linux"].includes(e))S(`Downloading Docker engine from ${n}`),await this.undock.run({source:n,dist:r});else if(e=="darwin"){try{let i=await this.imageConfig(n,"linux/arm64");if(b(`docker.Install.downloadSourceImage engineImageConfig: ${JSON.stringify(i)}`),this.gitCommit=i.config?.Labels?.["org.opencontainers.image.revision"],!this.gitCommit)throw new Error("No git revision can be determined from the image")}catch(i){et(i),this.gitCommit="master"}b(`docker.Install.downloadSourceImage gitCommit: ${this.gitCommit}`)}else et(`Docker engine not supported on ${e}, only the Docker cli will be available`);return r}async downloadSourceArchive(e,r){let s=await t.getRelease(r.version,this.githubToken);this._version=s.tag_name.replace(/^(docker-)?v+/,""),b(`docker.Install.downloadSourceArchive version: ${this._version}`);let n=this.downloadURL(e,this._version,r.channel);S(`Downloading ${n}`);let i=await Wa(n);b(`docker.Install.downloadSourceArchive downloadPath: ${i}`);let a;return Jr.default.platform()=="win32"?a=await gg(i,a):a=await fg(i,a),Qr.isDirectory(Rt.default.join(a,e))&&(a=Rt.default.join(a,e)),b(`docker.Install.downloadSourceArchive extractFolder: ${a}`),a}async install(){if(!this.toolDir)throw new Error("toolDir must be set. Run download first.");if(!this.runDir)throw new Error("runDir must be set");let e=Jr.default.platform();if(this.rootless&&e!="linux")throw new Error("rootless is only supported on linux");switch(e){case"darwin":return await this.installDarwin();case"linux":return await this.installLinux();case"win32":return await this.installWindows();default:throw new Error(`Unsupported platform: ${Jr.default.platform()}`)}}async installDarwin(){if(this.source.type=="image"&&!this.gitCommit)throw new Error("gitCommit must be set. Run download first.");let e=this.source,r=Rt.default.join(Jr.default.homedir(),".lima",this.limaInstanceName);await Ts(r);let s=`unix://${r}/docker.sock`;await t.limaInstalled()||await this.brewInstall("lima"),await he("Lima version",async()=>{await de.exec("lima",["--version"])}),await he("Creating lima config",async()=>{let a={};this.daemonConfig&&(a=JSON.parse(this.daemonConfig)),wB.default.registerHelper("stringify",function(u){return new wB.default.SafeString(JSON.stringify(u))});let c=e,l=wB.default.compile(HX)({customImages:t.limaCustomImages(),daemonConfig:a,dockerSock:`${r}/docker.sock`,localTCPPort:this.localTCPPort,gitCommit:this.gitCommit,srcType:e.type,srcArchiveVersion:this._version,srcArchiveChannel:c.channel,srcImageTag:e.tag});S(`Writing lima config to ${Rt.default.join(r,"lima.yaml")}`),Ot.default.writeFileSync(Rt.default.join(r,"lima.yaml"),l),S(l)}),await t.qemuInstalled()||await this.brewInstall("qemu");let n=await t.qemuBin();await he("QEMU version",async()=>{await de.exec(n,["--version"])});let i=Object.assign({},process.env,{PATH:`${this.toolDir}:${process.env.PATH}`});return await he("Starting lima instance",async()=>{let a=["start",`--name=${this.limaInstanceName}`,`--timeout=${process.env.LIMA_START_TIMEOUT??"15m"}`];process.env.LIMA_START_ARGS&&a.push(process.env.
Line truncated
|
||||
${d}`)})}).catch(()=>{}),c}}),await he("Create Docker context",async()=>{await ur.exec(["context","create",this.contextName,"--docker",`host=${s}`]),await ur.exec(["context","use",this.contextName])}),s}async installLinux(){let e=`unix://${Rt.default.join(this.runDir,"docker.sock")}`;await Ts(this.runDir);let r=Rt.default.join(this.runDir,"daemon.json");await Ot.default.writeFileSync(r,"{}");let s,n="/etc/docker/daemon.json";if(Ot.default.existsSync(n)&&(await he("Default Docker daemon config found",async()=>{S(JSON.stringify(JSON.parse(Ot.default.readFileSync(n,{encoding:"utf8"})),null,2))}),s=JSON.parse(Ot.default.readFileSync(n,{encoding:"utf8"}))),this.daemonConfig&&(s=Object.assign(s||{},JSON.parse(this.daemonConfig))),s){let a=JSON.stringify(s,null,2);await he("Writing Docker daemon config",async()=>{Ot.default.writeFileSync(r,a),S(a)})}let i=Object.assign({},process.env,{PATH:`${this.toolDir}:${process.env.PATH}`,XDG_RUNTIME_DIR:this.rootless&&this.runDir||void 0});return await he("Start Docker daemon",async()=>{let a=await mt("bash",!0),c=`${this.toolDir}/dockerd`;this.rootless&&(c=`${this.toolDir}/dockerd-rootless.sh`,Ot.default.existsSync("/proc/sys/kernel/apparmor_restrict_unprivileged_userns")&&await de.exec("sudo",["sh","-c","echo 0 > /proc/sys/kernel/apparmor_restrict_unprivileged_userns"]));let l=`${c} --host="${e}" --config-file="${r}" --exec-root="${this.runDir}/execroot" --data-root="${this.runDir}/data" --pidfile="${this.runDir}/docker.pid"`;this.localTCPPort&&(l+=` --host="tcp://127.0.0.1:${this.localTCPPort}"`),S(`[command] ${l}`);let u="sudo";this.rootless&&(u+=" -u \\#1001"),(await zX.spawn(`${u} env "PATH=$PATH" "XDG_RUNTIME_DIR=$XDG_RUNTIME_DIR" ${a} << EOF
|
||||
`;var jm=class t{static{o(this,"Install")}runDir;source;contextName;daemonConfig;rootless;localTCPPort;regctl;undock;githubToken;_version;_toolDir;gitCommit;limaInstanceName="docker-actions-toolkit";constructor(e){this.runDir=e.runDir,this.source=e.source||{type:"archive",version:"latest",channel:"stable"},this.contextName=e.contextName||"setup-docker-action",this.daemonConfig=e.daemonConfig,this.rootless=e.rootless||!1,this.localTCPPort=e.localTCPPort,this.regctl=e.regctl||new QB,this.undock=e.undock||new xB,this.githubToken=e.githubToken||process.env.GITHUB_TOKEN}get toolDir(){return this._toolDir||Yr.tmpDir()}async download(){let e,r,s=Jr.default.platform();switch(this.source.type){case"image":{this._version=this.source.tag,r="docker-image",e=await this.downloadSourceImage(s);break}case"archive":{let i=this.source.version;if(r=`docker-archive-${this.source.channel}`,this._version=i,S(`Downloading Docker ${i} from ${this.source.channel} at download.docker.com`),e=await this.downloadSourceArchive("docker",this.source),this.rootless){S(`Downloading Docker rootless extras ${i} from ${this.source.channel} at download.docker.com`);let c=await this.downloadSourceArchive("docker-rootless-extras",this.source);Ft.default.readdirSync(c).forEach(l=>{let u=vt.default.join(c,l),A=vt.default.join(e,l);Ft.default.copyFileSync(u,A)})}break}}S("Fixing perms"),Ft.default.readdir(vt.default.join(e),function(i,a){if(i)throw i;a.forEach(function(c,l){Qr.isDirectory(vt.default.join(e,c))||Ft.default.chmodSync(vt.default.join(e,c),"0755")})});let n=await Md(e,r,this._version.replace(/(0+)([1-9]+)/,"$2"));return $l(n),S("Added Docker to PATH"),this._toolDir=n,n}async downloadSourceImage(e){let r=vt.default.join(Yr.tmpDir(),"docker-install-image"),s=`dockereng/cli-bin:${this._version}`,n=`moby/moby-bin:${this._version}`;if(S(`Downloading Docker CLI from ${s}`),await this.undock.run({source:s,dist:r}),["win32","linux"].includes(e))S(`Downloading Docker engine from ${n}`),await this.undock.run({source:n,dist:r});else if(e=="darwin"){try{let i=await this.imageConfig(n,"linux/arm64");if(b(`docker.Install.downloadSourceImage engineImageConfig: ${JSON.stringify(i)}`),this.gitCommit=i.config?.Labels?.["org.opencontainers.image.revision"],!this.gitCommit)throw new Error("No git revision can be determined from the image")}catch(i){tt(i),this.gitCommit="master"}b(`docker.Install.downloadSourceImage gitCommit: ${this.gitCommit}`)}else tt(`Docker engine not supported on ${e}, only the Docker cli will be available`);return r}async downloadSourceArchive(e,r){let s=await t.getRelease(r.version,this.githubToken);this._version=s.tag_name.replace(/^(docker-)?v+/,""),b(`docker.Install.downloadSourceArchive version: ${this._version}`);let n=this.downloadURL(e,this._version,r.channel);S(`Downloading ${n}`);let i=await Xa(n);b(`docker.Install.downloadSourceArchive downloadPath: ${i}`);let a;return Jr.default.platform()=="win32"?a=await Ig(i,a):a=await Cg(i,a),Qr.isDirectory(vt.default.join(a,e))&&(a=vt.default.join(a,e)),b(`docker.Install.downloadSourceArchive extractFolder: ${a}`),a}async install(){if(!this.toolDir)throw new Error("toolDir must be set. Run download first.");if(!this.runDir)throw new Error("runDir must be set");let e=Jr.default.platform();if(this.rootless&&e!="linux")throw new Error("rootless is only supported on linux");switch(e){case"darwin":return await this.installDarwin();case"linux":return await this.installLinux();case"win32":return await this.installWindows();default:throw new Error(`Unsupported platform: ${Jr.default.platform()}`)}}async installDarwin(){if(this.source.type=="image"&&!this.gitCommit)throw new Error("gitCommit must be set. Run download first.");let e=this.source,r=vt.default.join(Jr.default.homedir(),".lima",this.limaInstanceName);await vs(r);let s=`unix://${r}/docker.sock`;await t.limaInstalled()||await this.brewInstall("lima"),await he("Lima version",async()=>{await de.exec("lima",["--version"])}),await he("Creating lima config",async()=>{let a={};this.daemonConfig&&(a=JSON.parse(this.daemonConfig)),NB.default.registerHelper("stringify",function(u){return new NB.default.SafeString(JSON.stringify(u))});let c=e,l=NB.default.compile(ZX)({customImages:t.limaCustomImages(),daemonConfig:a,dockerSock:`${r}/docker.sock`,localTCPPort:this.localTCPPort,gitCommit:this.gitCommit,srcType:e.type,srcArchiveVersion:this._version,srcArchiveChannel:c.channel,srcImageTag:e.tag});S(`Writing lima config to ${vt.default.join(r,"lima.yaml")}`),Ft.default.writeFileSync(vt.default.join(r,"lima.yaml"),l),S(l)}),await t.qemuInstalled()||await this.brewInstall("qemu");let n=await t.qemuBin();await he("QEMU version",async()=>{await de.exec(n,["--version"])});let i=Object.assign({},process.env,{PATH:`${this.toolDir}:${process.env.PATH}`});return await he("Starting lima instance",async()=>{let a=["start",`--name=${this.limaInstanceName}`,`--timeout=${process.env.LIMA_START_TIMEOUT??"15m"}`];process.env.LIMA_START_ARGS&&a.push(process.env.
Line truncated
|
||||
${d}`)})}).catch(()=>{}),c}}),await he("Create Docker context",async()=>{await lr.exec(["context","create",this.contextName,"--docker",`host=${s}`]),await lr.exec(["context","use",this.contextName])}),s}async installLinux(){let e=`unix://${vt.default.join(this.runDir,"docker.sock")}`;await vs(this.runDir);let r=vt.default.join(this.runDir,"daemon.json");await Ft.default.writeFileSync(r,"{}");let s,n="/etc/docker/daemon.json";if(Ft.default.existsSync(n)&&(await he("Default Docker daemon config found",async()=>{S(JSON.stringify(JSON.parse(Ft.default.readFileSync(n,{encoding:"utf8"})),null,2))}),s=JSON.parse(Ft.default.readFileSync(n,{encoding:"utf8"}))),this.daemonConfig&&(s=Object.assign(s||{},JSON.parse(this.daemonConfig))),s){let a=JSON.stringify(s,null,2);await he("Writing Docker daemon config",async()=>{Ft.default.writeFileSync(r,a),S(a)})}let i=Object.assign({},process.env,{PATH:`${this.toolDir}:${process.env.PATH}`,XDG_RUNTIME_DIR:this.rootless&&this.runDir||void 0});return await he("Start Docker daemon",async()=>{let a=await ht("bash",!0),c=`${this.toolDir}/dockerd`;this.rootless&&(c=`${this.toolDir}/dockerd-rootless.sh`,Ft.default.existsSync("/proc/sys/kernel/apparmor_restrict_unprivileged_userns")&&await de.exec("sudo",["sh","-c","echo 0 > /proc/sys/kernel/apparmor_restrict_unprivileged_userns"]));let l=`${c} --host="${e}" --config-file="${r}" --exec-root="${this.runDir}/execroot" --data-root="${this.runDir}/data" --pidfile="${this.runDir}/docker.pid"`;this.localTCPPort&&(l+=` --host="tcp://127.0.0.1:${this.localTCPPort}"`),S(`[command] ${l}`);let u="sudo";this.rootless&&(u+=" -u \\#1001"),(await eZ.spawn(`${u} env "PATH=$PATH" "XDG_RUNTIME_DIR=$XDG_RUNTIME_DIR" ${a} << EOF
|
||||
( ${l} 2>&1 | tee "${this.runDir}/dockerd.log" ) &
|
||||
EOF`,[],{env:i,detached:!0,shell:!0,stdio:["ignore",process.stdout,process.stderr]})).unref(),await Qr.sleep(3);let d=10;await(0,VX.default)(async p=>{try{await de.getExecOutput("docker version",void 0,{silent:!0,env:Object.assign({},i,{DOCKER_HOST:e,DOCKER_CONTENT_TRUST:"false"})})}catch(m){p(m)}},{retries:d,minTimeout:1e3,onRetry:o((p,m)=>{S(`${p}. Retrying (${m}/${d})...`)},"onRetry")}),S("Docker daemon started started successfully")}),await he("Create Docker context",async()=>{await ur.exec(["context","create",this.contextName,"--docker",`host=${e}`]),await ur.exec(["context","use",this.contextName])}),e}async installWindows(){let e="npipe:////./pipe/setup_docker_action",r,s=Rt.default.join(this.runDir,"daemon.json");Ot.default.existsSync(s)&&(await he("Default Docker daemon config found",async()=>{S(JSON.stringify(JSON.parse(Ot.default.readFileSync(s,{encoding:"utf8"})),null,2))}),r=JSON.parse(Ot.default.readFileSync(s,{encoding:"utf8"}))),this.daemonConfig&&(r=Object.assign(r||{},JSON.parse(this.daemonConfig)));let n="{}";r&&(n=JSON.stringify(r,null,2),await he("Docker daemon config",async()=>{S(n)}));let i={ToolDir:this.toolDir,RunDir:this.runDir,DockerHostSocket:e,DaemonConfig:n};return this.localTCPPort&&(i.DockerHostTCP=`tcp://127.0.0.1:${this.localTCPPort}`),await he("Install Docker daemon service",async()=>{let a=await Qr.powershellCommand(qX(),i);await de.exec(a.command,a.args);let c=await Qr.powershellCommand(I_());await de.exec(c.command,c.args)}),await he("Create Docker context",async()=>{await ur.exec(["context","create",this.contextName,"--docker",`host=${e}`]),await ur.exec(["context","use",this.contextName])}),e}async tearDown(){if(!this.runDir)throw new Error("runDir must be set");switch(Jr.default.platform()){case"darwin":{await this.tearDownDarwin();break}case"linux":{await this.tearDownLinux();break}case"win32":{await this.tearDownWindows();break}default:throw new Error(`Unsupported platform: ${Jr.default.platform()}`)}await he("Cleaning up toolDir",async()=>{this._toolDir&&Ot.default.rmSync(this._toolDir,{recursive:!0,force:!0})})}async tearDownDarwin(){await this.printDarwinDiagnostics(),await he("Stopping lima instance",async()=>{await de.exec("limactl",["stop","--tty=false",this.limaInstanceName,"--force"])}),await he("Removing lima instance",async()=>{await de.exec("limactl",["delete","--tty=false",this.limaInstanceName,"--force"])}),await he("Removing Docker context",async()=>{await ur.exec(["context","rm","-f",this.contextName])}),await he("Cleaning up runDir",async()=>{await de.exec("sudo",["rm","-rf",this.runDir])})}async printDarwinDiagnostics(){await this.printDarwinGuestCommandOutput("Cloud-init output log",["sudo","cat","/var/log/cloud-init-output.log"]),await this.printDarwinGuestCommandOutput("Cloud-init status",["sudo","timeout","300s","cloud-init","status","--wait"]),await this.printDarwinGuestCommandOutput("Docker unit file",["sudo","systemctl","cat","docker.service"]),await this.printDarwinGuestCommandOutput("Docker service status",["sudo","systemctl","status","docker.service","docker.socket","-l","--no-pager"]),await this.printDarwinGuestCommandOutput("Archive install script log",["sudo","cat","/var/log/docker-actions-toolkit-archive-install.log"]),await this.printDarwinGuestCommandOutput("Docker daemon logs",["sudo","journalctl","-u","docker.service","-l","--no-pager"])}async printDarwinGuestCommandOutput(e,r){await he(e,async()=>{let s=await de.getExecOutput("limactl",["shell","--tty=false",this.limaInstanceName,...r],{ignoreReturnCode:!0,silent:!0}).catch(i=>{S(`Failed to get ${e}: ${i}`)});if(!s)return;let n=[s.stdout.trim(),s.stderr.trim()].filter(Boolean).join(`
|
||||
`);n.length>0?S(n):s.exitCode!==0&&S(`${e} exited with code ${s.exitCode}`)})}async tearDownLinux(){await he("Docker daemon logs",async()=>{S(Ot.default.readFileSync(Rt.default.join(this.runDir,"dockerd.log"),{encoding:"utf8"}))}),await he("Stopping Docker daemon",async()=>{await de.exec("sudo",["kill","-s","SIGTERM",Ot.default.readFileSync(Rt.default.join(this.runDir,"docker.pid")).toString().trim()]),await Qr.sleep(5)}),await he("Removing Docker context",async()=>{await ur.exec(["context","rm","-f",this.contextName])}),await he("Cleaning up runDir",async()=>{await de.exec("sudo",["rm","-rf",this.runDir],{ignoreReturnCode:!0,failOnStdErr:!1})})}async tearDownWindows(){await he("Docker daemon logs",async()=>{let e=await Qr.powershellCommand(I_());await de.exec(e.command,e.args)}),await he("Removing Docker context",async()=>{await ur.exec(["context","rm","-f",this.contextName])}),await he("Stopping Docker daemon service",async()=>{await de.exec("powershell",["-Command","Stop-Service -Name docker -Force"])})}downloadURL(e,r,s){let n=t.platformOS(),i=t.platformArch();return`https://download.docker.com/${n}/static/${s}/${i}/${e}-${r}${n==="win"?".zip":".tgz"}`}static platformOS(){switch(Jr.default.platform()){case"darwin":return"mac";case"linux":return"linux";case"win32":return"win";default:return Jr.default.platform()}}static platformArch(){switch(Jr.default.arch()){case"x64":return"x86_64";case"ppc64":return"ppc64le";case"arm64":return"aarch64";case"arm":{let e=process.config.variables.arm_version;switch(e){case 6:return"armel";case 7:return"armhf";default:return`v${e}`}}default:return Jr.default.arch()}}static async limaInstalled(){return await mt("lima",!0).then(e=>(b(`docker.Install.limaInstalled ok: ${e}`),!0)).catch(e=>(b(`docker.Install.limaInstalled error: ${e}`),!1))}static async qemuBin(){switch(Jr.default.arch()){case"x64":return"qemu-system-x86_64";case"arm64":return"qemu-system-aarch64";default:return`qemu-system-${Jr.default.arch()}`}}static async qemuInstalled(){return await mt(await t.qemuBin(),!0).then(e=>(b(`docker.Install.qemuInstalled ok: ${e}`),!0)).catch(e=>(b(`docker.Install.qemuInstalled error: ${e}`),!1))}static async getRelease(e,r){let n=await new ga({token:r}).releases("Docker",{owner:"docker",repo:"actions-toolkit",ref:"main",path:".github/docker-releases.json"});if(!n[e]){if(!n["v"+e])throw new Error(`Cannot find Docker release ${e} in releases JSON`);return n["v"+e]}return n[e]}static limaCustomImages(){let e=[],r=process.env.LIMA_IMAGES;if(!r)return e;for(let s of Qr.getList(r,{ignoreComma:!0,comment:"#"})){let n=s.indexOf(":"),i=s.substring(0,n).trim(),a=s.indexOf("@"),c=s.substring(n+1,a!==-1?a:void 0).trim(),l=a!==-1?s.substring(a+1).trim():"";e.push({location:c,arch:i,digest:l})}return e}async imageConfig(e,r){let n=(await this.regctl.manifestGet({image:e,platform:r}))?.config?.digest;if(!n)throw new Error(`No config digest found for image ${e}`);let i=await this.regctl.blobGet({repository:e,digest:n});return JSON.parse(i)}async brewInstall(e,r){let s=Object.assign({},process.env,{HOMEBREW_NO_AUTO_UPDATE:"1",HOMEBREW_NO_INSTALL_UPGRADE:"1",HOMEBREW_NO_INSTALL_CLEANUP:"1"});await he(`Installing ${e}`,async()=>{if(!r)await de.exec("brew",["install",e]);else{let n="docker-actions-toolkit/tap";await de.getExecOutput("brew",["tap"],{ignoreReturnCode:!0,silent:!0,env:s}).then(u=>{if(u.stderr.length>0&&u.exitCode!=0)throw new Error(u.stderr);for(let A of u.stdout.trim().split(`
|
||||
`))if(A.includes(n))return!0;return!1})||await de.exec("brew",["tap-new",n],{env:s});let a=await de.getExecOutput("brew",["--repo",n],{ignoreReturnCode:!0,silent:!0,env:s}).then(u=>{if(u.stderr.length>0&&u.exitCode!=0)throw new Error(u.stderr);return u.stdout.trim()}),c=`https://raw.githubusercontent.com/Homebrew/homebrew-core/${r}/Formula/${e.charAt(0)}/${e}.rb`;await Wa(c,Rt.default.join(a,"Formula",`${e}.rb`)),await de.getExecOutput("brew",["ls","-1"],{ignoreReturnCode:!0,silent:!0,env:s}).then(u=>{if(u.stderr.length>0&&u.exitCode!=0)throw new Error(u.stderr);for(let A of u.stdout.trim().split(`
|
||||
`))if(A.trim()==e)return!0;return!1})&&await de.exec("brew",["uninstall",e,"--ignore-dependencies"],{env:s}),await de.exec("brew",["install",`${n}/${e}`],{env:s})}})}};var Ym=w(require("fs"),1),Bo=w(require("os"),1),bB=w(require("path"),1);var xB=w($m(),1),B_=w(require("util"),1);var QB=class t{static{o(this,"Install")}githubToken;constructor(e){this.githubToken=e?.githubToken||process.env.GITHUB_TOKEN}async download(e,r){let s=await t.getDownloadVersion(e);b(`Install.download version: ${s.version}`);let n=await t.getRelease(s,this.githubToken);b(`Install.download release tag name: ${n.tag_name}`);let i=await this.vspec(n.tag_name);b(`Install.download vspec: ${i}`);let a=xB.clean(i)||"";if(!xB.valid(a))throw new Error(`Invalid regclient version "${i}".`);let c=new Si({htcName:"regctl-dl-bin",htcVersion:i,baseCacheDir:bB.default.join(Bo.default.homedir(),".bin"),cacheFile:Bo.default.platform()=="win32"?"regctl.exe":"regctl",ghaNoCache:r}),l=await c.find();if(l)return S(`regctl binary found in ${l}`),l;let u=B_.format(s.downloadURL,i,this.filename());S(`Downloading ${u}`);let A=await Wa(u,void 0,this.githubToken);b(`Install.download htcDownloadPath: ${A}`);let d=await c.save(A);return S(`Cached to ${d}`),d}async install(e,r){r=r||Yr.tmpDir();let s=bB.default.join(r,"regctl-bin");Ym.default.existsSync(s)||Ym.default.mkdirSync(s,{recursive:!0});let n=Bo.default.platform()=="win32"?"regctl.exe":"regctl",i=bB.default.join(s,n);return Ym.default.copyFileSync(e,i),S("Fixing perms"),Ym.default.chmodSync(i,"0755"),Hl(s),S("Added regctl to PATH"),S(`Binary path: ${i}`),i}filename(){let e;switch(Bo.default.arch()){case"x64":{e="amd64";break}case"ppc64":{e="ppc64le";break}case"arm":{let n=process.config.variables.arm_version;e=n?"armv"+n:"arm";break}default:{e=Bo.default.arch();break}}let r=Bo.default.platform()=="win32"?"windows":Bo.default.platform(),s=Bo.default.platform()=="win32"?".exe":"";return B_.format("regctl-%s-%s%s",r,e,s)}async vspec(e){let r=e.replace(/^v+|v+$/g,"");return S(`Use ${r} version spec cache key for ${e}`),r}static async getDownloadVersion(e){return{version:e,downloadURL:"https://github.com/regclient/regclient/releases/download/v%s/%s",contentOpts:{owner:"docker",repo:"actions-toolkit",ref:"main",path:".github/regclient-releases.json"}}}static async getRelease(e,r){let n=await new ga({token:r}).releases("regclient",e.contentOpts);if(!n[e.version])throw new Error(`Cannot find regclient release ${e.version} in releases JSON`);return n[e.version]}};var Jm=w(require("fs"),1),Rn=w(require("os"),1),Wm=w(require("path"),1);var SB=w($m(),1),w_=w(require("util"),1);var NB=class t{static{o(this,"Install")}githubToken;constructor(e){this.githubToken=e?.githubToken||process.env.GITHUB_TOKEN}async download(e,r){let s=await t.getDownloadVersion(e);b(`Install.download version: ${s.version}`);let n=await t.getRelease(s,this.githubToken);b(`Install.download release tag name: ${n.tag_name}`);let i=await this.vspec(n.tag_name);b(`Install.download vspec: ${i}`);let a=SB.clean(i)||"";if(!SB.valid(a))throw new Error(`Invalid Undock version "${i}".`);let c=new Si({htcName:"undock-dl-bin",htcVersion:i,baseCacheDir:Wm.default.join(Rn.default.homedir(),".bin"),cacheFile:Rn.default.platform()=="win32"?"undock.exe":"undock",ghaNoCache:r}),l=await c.find();if(l)return S(`Undock binary found in ${l}`),l;let u=w_.format(s.downloadURL,i,this.filename(i));S(`Downloading ${u}`);let A=await Wa(u,void 0,this.githubToken);b(`Install.download htcDownloadPath: ${A}`);let d;Rn.default.platform()=="win32"?d=await gg(A):d=await fg(A),S(`Extracted to ${d}`);let p=Wm.default.join(d,Rn.default.platform()=="win32"?"undock.exe":"undock");b(`Install.download exePath: ${p}`);let m=await c.save(p);return S(`Cached to ${m}`),m}async install(e,r){r=r||Yr.tmpDir();let s=Wm.default.join(r,"undock-bin");Jm.default.existsSync(s)||Jm.default.mkdirSync(s,{recursive:!0});let n=Rn.default.platform()=="win32"?"undock.exe":"undock",i=Wm.default.join(s,n);return Jm.default.copyFileSync(e,i),S("Fixing perms"),Jm.default.chmodSync(i,"0755"),Hl(s),S("Added Undock to PATH"),S(`Binary path: ${i}`),i}filename(e){let r;switch(Rn.default.arch()){case"x64":{r="amd64";break}case"ppc64":{r="ppc64le";break}case"arm":{let i=process.config.variables.arm_version;r=i?"armv"+i:"arm";break}default:{r=Rn.default.arch();break}}let s=Rn.default.platform()=="win32"?"windows":Rn.default.platform(),n=Rn.default.platform()=="win32"?".zip":".tar.gz";return w_.format("undock_%s_%s_%s%s",e,s,r,n)}async vspec(e){let r=e.replace(/^v+|v+$/g,"");return S(`Use ${r} version spec cache key for ${e}`),r}static async getDownloadVersion(e){return{version:e,downloadURL:"https://github.com/crazy-max/undock/releases/download/v%s/%s",contentOpts:{owner:"docker",repo:"actions-toolkit",ref:"main",path:".github/undock-releases.json"}}}static async getRelease(e,r){let n=await new ga({token:r}).releases("Undock",e.contentOpts);if(!n[e.version])throw new Error(`Cannot find Undock release ${e.version} iLine truncated
|
||||
EOF`,[],{env:i,detached:!0,shell:!0,stdio:["ignore",process.stdout,process.stderr]})).unref(),await Qr.sleep(3);let d=10;await(0,rZ.default)(async p=>{try{await de.getExecOutput("docker version",void 0,{silent:!0,env:Object.assign({},i,{DOCKER_HOST:e,DOCKER_CONTENT_TRUST:"false"})})}catch(m){p(m)}},{retries:d,minTimeout:1e3,onRetry:o((p,m)=>{S(`${p}. Retrying (${m}/${d})...`)},"onRetry")}),S("Docker daemon started started successfully")}),await he("Create Docker context",async()=>{await lr.exec(["context","create",this.contextName,"--docker",`host=${e}`]),await lr.exec(["context","use",this.contextName])}),e}async installWindows(){let e="npipe:////./pipe/setup_docker_action",r,s=vt.default.join(this.runDir,"daemon.json");Ft.default.existsSync(s)&&(await he("Default Docker daemon config found",async()=>{S(JSON.stringify(JSON.parse(Ft.default.readFileSync(s,{encoding:"utf8"})),null,2))}),r=JSON.parse(Ft.default.readFileSync(s,{encoding:"utf8"}))),this.daemonConfig&&(r=Object.assign(r||{},JSON.parse(this.daemonConfig)));let n="{}";r&&(n=JSON.stringify(r,null,2),await he("Docker daemon config",async()=>{S(n)}));let i={ToolDir:this.toolDir,RunDir:this.runDir,DockerHostSocket:e,DaemonConfig:n};return this.localTCPPort&&(i.DockerHostTCP=`tcp://127.0.0.1:${this.localTCPPort}`),await he("Install Docker daemon service",async()=>{let a=await Qr.powershellCommand(KX(),i);await de.exec(a.command,a.args);let c=await Qr.powershellCommand(N_());await de.exec(c.command,c.args)}),await he("Create Docker context",async()=>{await lr.exec(["context","create",this.contextName,"--docker",`host=${e}`]),await lr.exec(["context","use",this.contextName])}),e}async tearDown(){if(!this.runDir)throw new Error("runDir must be set");switch(Jr.default.platform()){case"darwin":{await this.tearDownDarwin();break}case"linux":{await this.tearDownLinux();break}case"win32":{await this.tearDownWindows();break}default:throw new Error(`Unsupported platform: ${Jr.default.platform()}`)}await he("Cleaning up toolDir",async()=>{this._toolDir&&Ft.default.rmSync(this._toolDir,{recursive:!0,force:!0})})}async tearDownDarwin(){await this.printDarwinDiagnostics(),await he("Stopping lima instance",async()=>{await de.exec("limactl",["stop","--tty=false",this.limaInstanceName,"--force"])}),await he("Removing lima instance",async()=>{await de.exec("limactl",["delete","--tty=false",this.limaInstanceName,"--force"])}),await he("Removing Docker context",async()=>{await lr.exec(["context","rm","-f",this.contextName])}),await he("Cleaning up runDir",async()=>{await de.exec("sudo",["rm","-rf",this.runDir])})}async printDarwinDiagnostics(){await this.printDarwinGuestCommandOutput("Cloud-init output log",["sudo","cat","/var/log/cloud-init-output.log"]),await this.printDarwinGuestCommandOutput("Cloud-init status",["sudo","timeout","300s","cloud-init","status","--wait"]),await this.printDarwinGuestCommandOutput("Docker unit file",["sudo","systemctl","cat","docker.service"]),await this.printDarwinGuestCommandOutput("Docker service status",["sudo","systemctl","status","docker.service","docker.socket","-l","--no-pager"]),await this.printDarwinGuestCommandOutput("Archive install script log",["sudo","cat","/var/log/docker-actions-toolkit-archive-install.log"]),await this.printDarwinGuestCommandOutput("Docker daemon logs",["sudo","journalctl","-u","docker.service","-l","--no-pager"])}async printDarwinGuestCommandOutput(e,r){await he(e,async()=>{let s=await de.getExecOutput("limactl",["shell","--tty=false",this.limaInstanceName,...r],{ignoreReturnCode:!0,silent:!0}).catch(i=>{S(`Failed to get ${e}: ${i}`)});if(!s)return;let n=[s.stdout.trim(),s.stderr.trim()].filter(Boolean).join(`
|
||||
`);n.length>0?S(n):s.exitCode!==0&&S(`${e} exited with code ${s.exitCode}`)})}async tearDownLinux(){await he("Docker daemon logs",async()=>{S(Ft.default.readFileSync(vt.default.join(this.runDir,"dockerd.log"),{encoding:"utf8"}))}),await he("Stopping Docker daemon",async()=>{await de.exec("sudo",["kill","-s","SIGTERM",Ft.default.readFileSync(vt.default.join(this.runDir,"docker.pid")).toString().trim()]),await Qr.sleep(5)}),await he("Removing Docker context",async()=>{await lr.exec(["context","rm","-f",this.contextName])}),await he("Cleaning up runDir",async()=>{await de.exec("sudo",["rm","-rf",this.runDir],{ignoreReturnCode:!0,failOnStdErr:!1})})}async tearDownWindows(){await he("Docker daemon logs",async()=>{let e=await Qr.powershellCommand(N_());await de.exec(e.command,e.args)}),await he("Removing Docker context",async()=>{await lr.exec(["context","rm","-f",this.contextName])}),await he("Stopping Docker daemon service",async()=>{await de.exec("powershell",["-Command","Stop-Service -Name docker -Force"])})}downloadURL(e,r,s){let n=t.platformOS(),i=t.platformArch();return`https://download.docker.com/${n}/static/${s}/${i}/${e}-${r}${n==="win"?".zip":".tgz"}`}static platformOS(){switch(Jr.default.platform()){case"darwin":return"mac";case"linux":return"linux";case"win32":return"win";default:return Jr.default.platform()}}static platformArch(){switch(Jr.default.arch()){case"x64":return"x86_64";case"ppc64":return"ppc64le";case"arm64":return"aarch64";case"arm":{let e=process.config.variables.arm_version;switch(e){case 6:return"armel";case 7:return"armhf";default:return`v${e}`}}default:return Jr.default.arch()}}static async limaInstalled(){return await ht("lima",!0).then(e=>(b(`docker.Install.limaInstalled ok: ${e}`),!0)).catch(e=>(b(`docker.Install.limaInstalled error: ${e}`),!1))}static async qemuBin(){switch(Jr.default.arch()){case"x64":return"qemu-system-x86_64";case"arm64":return"qemu-system-aarch64";default:return`qemu-system-${Jr.default.arch()}`}}static async qemuInstalled(){return await ht(await t.qemuBin(),!0).then(e=>(b(`docker.Install.qemuInstalled ok: ${e}`),!0)).catch(e=>(b(`docker.Install.qemuInstalled error: ${e}`),!1))}static async getRelease(e,r){let n=await new ga({token:r}).releases("Docker",{owner:"docker",repo:"actions-toolkit",ref:"main",path:".github/docker-releases.json"});if(!n[e]){if(!n["v"+e])throw new Error(`Cannot find Docker release ${e} in releases JSON`);return n["v"+e]}return n[e]}static limaCustomImages(){let e=[],r=process.env.LIMA_IMAGES;if(!r)return e;for(let s of Qr.getList(r,{ignoreComma:!0,comment:"#"})){let n=s.indexOf(":"),i=s.substring(0,n).trim(),a=s.indexOf("@"),c=s.substring(n+1,a!==-1?a:void 0).trim(),l=a!==-1?s.substring(a+1).trim():"";e.push({location:c,arch:i,digest:l})}return e}async imageConfig(e,r){let n=(await this.regctl.manifestGet({image:e,platform:r}))?.config?.digest;if(!n)throw new Error(`No config digest found for image ${e}`);let i=await this.regctl.blobGet({repository:e,digest:n});return JSON.parse(i)}async brewInstall(e,r){let s=Object.assign({},process.env,{HOMEBREW_NO_AUTO_UPDATE:"1",HOMEBREW_NO_INSTALL_UPGRADE:"1",HOMEBREW_NO_INSTALL_CLEANUP:"1"});await he(`Installing ${e}`,async()=>{if(!r)await de.exec("brew",["install",e]);else{let n="docker-actions-toolkit/tap";await de.getExecOutput("brew",["tap"],{ignoreReturnCode:!0,silent:!0,env:s}).then(u=>{if(u.stderr.length>0&&u.exitCode!=0)throw new Error(u.stderr);for(let A of u.stdout.trim().split(`
|
||||
`))if(A.includes(n))return!0;return!1})||await de.exec("brew",["tap-new",n],{env:s});let a=await de.getExecOutput("brew",["--repo",n],{ignoreReturnCode:!0,silent:!0,env:s}).then(u=>{if(u.stderr.length>0&&u.exitCode!=0)throw new Error(u.stderr);return u.stdout.trim()}),c=`https://raw.githubusercontent.com/Homebrew/homebrew-core/${r}/Formula/${e.charAt(0)}/${e}.rb`;await Xa(c,vt.default.join(a,"Formula",`${e}.rb`)),await de.getExecOutput("brew",["ls","-1"],{ignoreReturnCode:!0,silent:!0,env:s}).then(u=>{if(u.stderr.length>0&&u.exitCode!=0)throw new Error(u.stderr);for(let A of u.stdout.trim().split(`
|
||||
`))if(A.trim()==e)return!0;return!1})&&await de.exec("brew",["uninstall",e,"--ignore-dependencies"],{env:s}),await de.exec("brew",["install",`${n}/${e}`],{env:s})}})}};var Km=w(require("fs"),1),wo=w(require("os"),1),SB=w(require("path"),1);var TB=w(Wm(),1),S_=w(require("util"),1);var RB=class t{static{o(this,"Install")}githubToken;constructor(e){this.githubToken=e?.githubToken||process.env.GITHUB_TOKEN}async download(e,r){let s=await t.getDownloadVersion(e);b(`Install.download version: ${s.version}`);let n=await t.getRelease(s,this.githubToken);b(`Install.download release tag name: ${n.tag_name}`);let i=await this.vspec(n.tag_name);b(`Install.download vspec: ${i}`);let a=TB.clean(i)||"";if(!TB.valid(a))throw new Error(`Invalid regclient version "${i}".`);let c=new Si({htcName:"regctl-dl-bin",htcVersion:i,baseCacheDir:SB.default.join(wo.default.homedir(),".bin"),cacheFile:wo.default.platform()=="win32"?"regctl.exe":"regctl",ghaNoCache:r}),l=await c.find();if(l)return S(`regctl binary found in ${l}`),l;let u=S_.format(s.downloadURL,i,this.filename());S(`Downloading ${u}`);let A=await Xa(u,void 0,this.githubToken);b(`Install.download htcDownloadPath: ${A}`);let d=await c.save(A);return S(`Cached to ${d}`),d}async install(e,r){r=r||Yr.tmpDir();let s=SB.default.join(r,"regctl-bin");Km.default.existsSync(s)||Km.default.mkdirSync(s,{recursive:!0});let n=wo.default.platform()=="win32"?"regctl.exe":"regctl",i=SB.default.join(s,n);return Km.default.copyFileSync(e,i),S("Fixing perms"),Km.default.chmodSync(i,"0755"),$l(s),S("Added regctl to PATH"),S(`Binary path: ${i}`),i}filename(){let e;switch(wo.default.arch()){case"x64":{e="amd64";break}case"ppc64":{e="ppc64le";break}case"arm":{let n=process.config.variables.arm_version;e=n?"armv"+n:"arm";break}default:{e=wo.default.arch();break}}let r=wo.default.platform()=="win32"?"windows":wo.default.platform(),s=wo.default.platform()=="win32"?".exe":"";return S_.format("regctl-%s-%s%s",r,e,s)}async vspec(e){let r=e.replace(/^v+|v+$/g,"");return S(`Use ${r} version spec cache key for ${e}`),r}static async getDownloadVersion(e){return{version:e,downloadURL:"https://github.com/regclient/regclient/releases/download/v%s/%s",contentOpts:{owner:"docker",repo:"actions-toolkit",ref:"main",path:".github/regclient-releases.json"}}}static async getRelease(e,r){let n=await new ga({token:r}).releases("regclient",e.contentOpts);if(!n[e.version])throw new Error(`Cannot find regclient release ${e.version} in releases JSON`);return n[e.version]}};var Xm=w(require("fs"),1),Tn=w(require("os"),1),Zm=w(require("path"),1);var PB=w(Wm(),1),R_=w(require("util"),1);var vB=class t{static{o(this,"Install")}githubToken;constructor(e){this.githubToken=e?.githubToken||process.env.GITHUB_TOKEN}async download(e,r){let s=await t.getDownloadVersion(e);b(`Install.download version: ${s.version}`);let n=await t.getRelease(s,this.githubToken);b(`Install.download release tag name: ${n.tag_name}`);let i=await this.vspec(n.tag_name);b(`Install.download vspec: ${i}`);let a=PB.clean(i)||"";if(!PB.valid(a))throw new Error(`Invalid Undock version "${i}".`);let c=new Si({htcName:"undock-dl-bin",htcVersion:i,baseCacheDir:Zm.default.join(Tn.default.homedir(),".bin"),cacheFile:Tn.default.platform()=="win32"?"undock.exe":"undock",ghaNoCache:r}),l=await c.find();if(l)return S(`Undock binary found in ${l}`),l;let u=R_.format(s.downloadURL,i,this.filename(i));S(`Downloading ${u}`);let A=await Xa(u,void 0,this.githubToken);b(`Install.download htcDownloadPath: ${A}`);let d;Tn.default.platform()=="win32"?d=await Ig(A):d=await Cg(A),S(`Extracted to ${d}`);let p=Zm.default.join(d,Tn.default.platform()=="win32"?"undock.exe":"undock");b(`Install.download exePath: ${p}`);let m=await c.save(p);return S(`Cached to ${m}`),m}async install(e,r){r=r||Yr.tmpDir();let s=Zm.default.join(r,"undock-bin");Xm.default.existsSync(s)||Xm.default.mkdirSync(s,{recursive:!0});let n=Tn.default.platform()=="win32"?"undock.exe":"undock",i=Zm.default.join(s,n);return Xm.default.copyFileSync(e,i),S("Fixing perms"),Xm.default.chmodSync(i,"0755"),$l(s),S("Added Undock to PATH"),S(`Binary path: ${i}`),i}filename(e){let r;switch(Tn.default.arch()){case"x64":{r="amd64";break}case"ppc64":{r="ppc64le";break}case"arm":{let i=process.config.variables.arm_version;r=i?"armv"+i:"arm";break}default:{r=Tn.default.arch();break}}let s=Tn.default.platform()=="win32"?"windows":Tn.default.platform(),n=Tn.default.platform()=="win32"?".zip":".tar.gz";return R_.format("undock_%s_%s_%s%s",e,s,r,n)}async vspec(e){let r=e.replace(/^v+|v+$/g,"");return S(`Use ${r} version spec cache key for ${e}`),r}static async getDownloadVersion(e){return{version:e,downloadURL:"https://github.com/crazy-max/undock/releases/download/v%s/%s",contentOpts:{owner:"docker",repo:"actions-toolkit",ref:"main",path:".github/undock-releases.json"}}}static async getRelease(e,r){let n=await new ga({token:r}).releases("Undock",e.contentOpts);if(!n[e.version])throw new Error(`Cannot find Undock release ${e.version} iLine truncated
|
||||
/*! Bundled license information:
|
||||
|
||||
undici/lib/web/fetch/body.js:
|
||||
|
||||
+3
-3
@@ -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": "ooBAAA,IAAAA,GAAAC,EAAAC,IAAA,cAEA,IAAIC,IAAM,QAAQ,KAAK,EACnBC,GAAM,QAAQ,KAAK,EACnBC,GAAO,QAAQ,MAAM,EACrBC,GAAQ,QAAQ,OAAO,EACvBC,GAAS,QAAQ,QAAQ,EACzBC,IAAS,QAAQ,QAAQ,EACzBC,GAAO,QAAQ,MAAM,EAGzBP,GAAQ,aAAeQ,GACvBR,GAAQ,cAAgBS,GACxBT,GAAQ,cAAgBU,GACxBV,GAAQ,eAAiBW,GAGzB,SAASH,GAAaI,EAAS,CAC7B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUV,GAAK,QACdU,CACT,CAJSE,EAAAP,GAAA,gBAMT,SAASC,GAAcG,EAAS,CAC9B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUV,GAAK,QACrBU,EAAM,aAAeG,GACrBH,EAAM,YAAc,IACbA,CACT,CANSE,EAAAN,GAAA,iBAQT,SAASC,GAAcE,EAAS,CAC9B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUT,GAAM,QACfS,CACT,CAJSE,EAAAL,GAAA,iBAMT,SAASC,GAAeC,EAAS,CAC/B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUT,GAAM,QACtBS,EAAM,aAAeG,GACrBH,EAAM,YAAc,IACbA,CACT,CANSE,EAAAJ,GAAA,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,GAAK,SAASO,GAAgBT,GAAO,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,GAAI,QAAQ,EAAG4C,CAAU,EAC5C7B,EAAK,QAAQA,EAAK,QAAQ,QAAQC,CAAM,CAAC,EAAI6B,EAC7ChB,EAAGgB,CAAY,CACjB,CAAC,CACH,CAdShC,EAAAC,GAAA,sBAiBT,SAASM,GAAUH,EAAMC,EAAMC,EAAc,CAC3C,OAAI,OAAOF,GAAS,SACX,CACL,KAAMA,EACN,KAAMC,EACN,aAAcC,CAChB,EAEKF,CACT,CATSJ,EAAAO,GAAA,aAWT,SAASK,GAAaqB,EAAQ,CAC5B,QAASzB,EAAI,EAAGC,EAAM,UAAU,OAAQD,EAAIC,EAAK,EAAED,EAAG,CACpD,IAAI0B,EAAY,UAAU1B,CAAC,EAC3B,GAAI,OAAO0B,GAAc,SAEvB,QADIC,EAAO,OAAO,KAAKD,CAAS,EACvBE,EAAI,EAAGC,EAASF,EAAK,OAAQC,EAAIC,EAAQ,EAAED,EAAG,CACrD,IAAIE,EAAIH,EAAKC,CAAC,EACVF,EAAUI,CAAC,IAAM,SACnBL,EAAOK,CAAC,EAAIJ,EAAUI,CAAC,EAE3B,CAEJ,CACA,OAAOL,CACT,CAdSjC,EAAAY,GAAA,gBAiBT,IAAIO,GACA,QAAQ,IAAI,YAAc,aAAa,KAAK,QAAQ,IAAI,UAAU,EACpEA,GAAQnB,EAAA,UAAW,CACjB,IAAIuC,EAAO,MAAM,UAAU,MAAM,KAAK,SAAS,EAC3C,OAAOA,EAAK,CAAC,GAAM,SACrBA,EAAK,CAAC,EAAI,WALine truncated
|
||||
"names": ["require_tunnel", "__commonJSMin", "exports", "net", "tls", "http", "https", "events", "assert", "util", "httpOverHttp", "httpsOverHttp", "httpOverHttps", "httpsOverHttps", "options", "agent", "TunnelingAgent", "__name", "createSecureSocket", "self", "socket", "host", "port", "localAddress", "toOptions", "i", "len", "pending", "req", "mergeOptions", "onFree", "onCloseOrRemove", "err", "cb", "placeholder", "connectOptions", "debug", "connectReq", "onResponse", "onUpgrade", "onConnect", "onError", "res", "head", "error", "cause", "pos", "hostHeader", "tlsOptions", "secureSocket", "target", "overrides", "keys", "j", "keyLen", "k", "args", "require_tunnel", "__commonJSMin", "exports", "module", "require_symbols", "__commonJSMin", "exports", "module", "require_errors", "__commonJSMin", "exports", "module", "kUndiciError", "UndiciError", "__name", "message", "instance", "kConnectTimeoutError", "ConnectTimeoutError", "kHeadersTimeoutError", "HeadersTimeoutError", "kHeadersOverflowError", "HeadersOverflowError", "kBodyTimeoutError", "BodyTimeoutError", "kResponseStatusCodeError", "ResponseStatusCodeError", "statusCode", "headers", "body", "kInvalidArgumentError", "InvalidArgumentError", "kInvalidReturnValueError", "InvalidReturnValueError", "kAbortError", "AbortError", "kRequestAbortedError", "RequestAbortedError", "kInformationalError", "InformationalError", "kRequestContentLengthMismatchError", "RequestContentLengthMismatchError", "kResponseContentLengthMismatchError", "ResponseContentLengthMismatchError", "kClientDestroyedError", "ClientDestroyedError", "kClientClosedError", "ClientClosedError", "kSocketError", "SocketError", "socket", "kNotSupportedError", "NotSupportedError", "kBalancedPoolMissingUpstreamError", "BalancedPoolMissingUpstreamError", "kHTTPParserError", "HTTPParserError", "code", "data", "kResponseExceededMaxSizeError", "ResponseExceededMaxSizeError", "kRequestRetryError", "RequestRetryError", "kResponseError", "ResponseError", "kSecureProxyConnectionError", "SecureProxyConnectionError", "cause", "options", "kMessageSizeExceededError", "MessageSizeExceededError", "require_constants", "__commonJSMin", "exports", "module", "headerNameLowerCasedRecord", "wellknownHeaderNames", "i", "key", "lowerCasedKey", "require_tree", "__commonJSMin", "exports", "module", "wellknownHeaderNames", "headerNameLowerCasedRecord", "TstNode", "_TstNode", "__name", "key", "value", "index", "length", "node", "code", "keylength", "TernarySearchTree", "tree", "i", "require_util", "__commonJSMin", "exports", "module", "assert", "kDestroyed", "kBodyUsed", "kListeners", "kBody", "IncomingMessage", "stream", "net", "Blob", "nodeUtil", "stringify", "EE", "InvalidArgumentError", "headerNameLowerCasedRecord", "tree", "nodeMajor", "nodeMinor", "v", "BodyAsyncIterable", "__name", "body", "wrapRequestBody", "isStream", "bodyLength", "isIterable", "nop", "obj", "isBlobLike", "object", "sTag", "buildURL", "url", "queryParams", "stringified", "isValidPort", "port", "value", "isHttpOrHttpsPrefixed", "parseURL", "origin", "path", "parseOrigin", "getHostname", "host", "idx", "getServerName", "servername", "deepClone", "isAsyncIterable", "state", "isBuffer", "isDestroyed", "destroy", "err", "KEEPALIVE_TIMEOUT_EXPR", "parseKeepAliveTimeout", "val", "m", "headerNameToString", "bufferToLowerCasedHeaderName", "parseHeaders", "headers", "i", "key", "headersValue", "x", "parseRawHeaders", "len", "ret", "hasContentLength", "contentDispositionIdx", "kLen", "n", "buffer", "validateHandler", "handler", "method", "upgrade", "isDisturbed", "isErrored", "isReadable", "getSocketInfo", "socket", "ReadableStreamFrom", "iterable", "iterator", "controller", "done", "buf", "reason", "isFormDataLike", "addAbortListener", "signal", "listener", "hasToWellFormed", "hasIsWellFormed", "toUSVString", "isUSVString", "isTokenCharCode", "c", "isValidHTTPToken", "characters", "headerCharRegex", "isValidHeaderValue", "parseRangeHeader", "range", "addListener", "name", "removeAllListeners", "errorRequest", "client", "request", "kEnumerableProperty", "normalizedMethodRecordsBase", "normalizedMethodRecords", "require_diagnostics", "__commonJSMin", "exports", "module", "diagnosticsChannel", "util", "undiciDebugLog", "fetchDebuglog", "websocketDebuglog", "isClientSet", "channels", "debuglog", "evt", "version", "protocol", "port", "host", "error", "method", "path", "origin", "statusCode", "address", "websocket", "code", "reason", "err", "require_request", "__commonJSMin", "exports", "module", "InvalidArgumentError", "NotSupportedError", "assert", "isValidHTTPToken", "isValidHeaderValue", "isStream", "destroy", "isBuffer", "isFormDataLike", "isIterable", "isBlobLike", "buildURL", "validateHandler", "getServerName", "normalizedMethodRecords", "channels", "headerNameLowerCasedRecord", "invalidPathRegex", "kHandler", "Request", "__name", "origin", "path", "method", "body", "headers", "query", "idempotent", "blocking", "upgrade", "headersTimeout", "bodyTimeout", "resetLine truncated
|
||||
"sourcesContent": ["'use strict';\n\nvar net = require('net');\nvar tls = require('tls');\nvar http = require('http');\nvar https = require('https');\nvar events = require('events');\nvar assert = require('assert');\nvar util = require('util');\n\n\nexports.httpOverHttp = httpOverHttp;\nexports.httpsOverHttp = httpsOverHttp;\nexports.httpOverHttps = httpOverHttps;\nexports.httpsOverHttps = httpsOverHttps;\n\n\nfunction httpOverHttp(options) {\n var agent = new TunnelingAgent(options);\n agent.request = http.request;\n return agent;\n}\n\nfunction httpsOverHttp(options) {\n var agent = new TunnelingAgent(options);\n agent.request = http.request;\n agent.createSocket = createSecureSocket;\n agent.defaultPort = 443;\n return agent;\n}\n\nfunction httpOverHttps(options) {\n var agent = new TunnelingAgent(options);\n agent.request = https.request;\n return agent;\n}\n\nfunction httpsOverHttps(options) {\n var agent = new TunnelingAgent(options);\n agent.request = https.request;\n agent.createSocket = createSecureSocket;\n agent.defaultPort = 443;\n return agent;\n}\n\n\nfunction TunnelingAgent(options) {\n var self = this;\n self.options = options || {};\n self.proxyOptions = self.options.proxy || {};\n self.maxSockets = self.options.maxSockets || http.Agent.defaultMaxSockets;\n self.requests = [];\n self.sockets = [];\n\n self.on('free', function onFree(socket, host, port, localAddress) {\n var options = toOptions(host, port, localAddress);\n for (var i = 0, len = self.requests.length; i < len; ++i) {\n var pending = self.requests[i];\n if (pending.host === options.host && pending.port === options.port) {\n // Detect the request to connect same origin server,\n // reuse the connection.\n self.requests.splice(i, 1);\n pending.request.onSocket(socket);\n return;\n }\n }\n socket.destroy();\n self.removeSocket(socket);\n });\n}\nutil.inherits(TunnelingAgent, events.EventEmitter);\n\nTunnelingAgent.prototype.addRequest = function addRequest(req, host, port, localAddress) {\n var self = this;\n var options = mergeOptions({request: req}, self.options, toOptions(host, port, localAddress));\n\n if (self.sockets.length >= this.maxSockets) {\n // We are over limit so we'll add it to the queue.\n self.requests.push(options);\n return;\n }\n\n // If we are under maxSockets create a new one.\n self.createSocket(options, function(socket) {\n socket.on('free', onFree);\n socket.on('close', onCloseOrRemove);\n socket.on('agentRemove', onCloseOrRemove);\n req.onSocket(socket);\n\n function onFree() {\n self.emit('free', socket, options);\n }\n\n function onCloseOrRemove(err) {\n self.removeSocket(socket);\n socket.removeListener('free', onFree);\n socket.removeListener('close', onCloseOrRemove);\n socket.removeListener('agentRemove', onCloseOrRemove);\n }\n });\n};\n\nTunnelingAgent.prototype.createSocket = function createSocket(options, cb) {\n var self = this;\n var placeholder = {};\n self.sockets.push(placeholder);\n\n var connectOptions = mergeOptions({}, self.proxyOptions, {\n method: 'CONNECT',\n path: options.host + ':' + options.port,\n agent: false,\n headers: {\n host: options.host + ':' + options.port\n }\n });\n if (options.localAddress) {\n connectOptions.localAddress = options.localAddress;\n }\n if (connectOptions.proxyAuth) {\n connectOptions.headers = connectOptions.headers || {};\n connectOptions.headers['Proxy-Authorization'] = 'Basic ' +\n new Buffer(connectOptions.proxyAuth).toString('base64');\n }\n\n debug('making CONNECT request');\n var connectReq = self.request(connectOptions);\n connectReq.useChunkedEncodingByDefault = false; // for v0.6\n connectReq.once('response', onResponse); // for v0.6\n connectReq.once('upgrade', onUpgrade); // for v0.6\n connectReq.once('connect', onConnect); // for v0.7 or later\n connectReq.once('error', onError);\n connectReq.end();\n\n function onResponse(res) {\n // Very hacky. This is necessary to avoid http-parser leaks.\n res.upgrade = true;\n }\n\n function onUpgrade(res, socket, head) {\n // Hacky.\n process.nextTick(function() {\n onConnect(res, socket, head);\n });\n }\n\n function onConnect(res, socket, head) {\n connectReq.removeAllListeners();\n socket.removeAllListeners();\n\n if (res.statusCode !== 200) {\n debug('tunneling socket could not be established, statusCode=%d',\n res.statusCode);\n socket.destroy();\n var error = new Error('tunneling socket could not be established, ' +\n 'statusCode=' + res.statusCode);\n error.code = 'ECONNRESET';\n options.request.emit('error', error);\n self.removeSocket(placeholder);\n return;\n }\n if (head.length > 0) {\n debug('got illegal response body from proxy');\n socket.destroy();\n var error = new Error('Line truncated
|
||||
"mappings": "ooBAAA,IAAAA,GAAAC,EAAAC,IAAA,cAEA,IAAIC,IAAM,QAAQ,KAAK,EACnBC,GAAM,QAAQ,KAAK,EACnBC,GAAO,QAAQ,MAAM,EACrBC,GAAQ,QAAQ,OAAO,EACvBC,GAAS,QAAQ,QAAQ,EACzBC,IAAS,QAAQ,QAAQ,EACzBC,GAAO,QAAQ,MAAM,EAGzBP,GAAQ,aAAeQ,GACvBR,GAAQ,cAAgBS,GACxBT,GAAQ,cAAgBU,GACxBV,GAAQ,eAAiBW,GAGzB,SAASH,GAAaI,EAAS,CAC7B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUV,GAAK,QACdU,CACT,CAJSE,EAAAP,GAAA,gBAMT,SAASC,GAAcG,EAAS,CAC9B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUV,GAAK,QACrBU,EAAM,aAAeG,GACrBH,EAAM,YAAc,IACbA,CACT,CANSE,EAAAN,GAAA,iBAQT,SAASC,GAAcE,EAAS,CAC9B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUT,GAAM,QACfS,CACT,CAJSE,EAAAL,GAAA,iBAMT,SAASC,GAAeC,EAAS,CAC/B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUT,GAAM,QACtBS,EAAM,aAAeG,GACrBH,EAAM,YAAc,IACbA,CACT,CANSE,EAAAJ,GAAA,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,GAAK,SAASO,GAAgBT,GAAO,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,GAAI,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
|
||||
}
|
||||
+1
-1
@@ -4067,7 +4067,7 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
|
||||
|
||||
The following npm package may be included in this product:
|
||||
|
||||
- undici@6.25.0
|
||||
- undici@6.27.0
|
||||
|
||||
This package contains the following license:
|
||||
|
||||
|
||||
Reference in new issue
Block a user