[autofix.ci] apply automated fixes
This commit is contained in:
1 parent
53e6487b6e
commit
237a6a77d8
2 files changed
+411
-109
No files matched your search
+243
-61
@@ -1,75 +1,251 @@
|
||||
var X_=Object.create;var ao=Object.defineProperty;var K_=Object.getOwnPropertyDescriptor;var Q_=Object.getOwnPropertyNames;var Y_=Object.getPrototypeOf,J_=Object.prototype.hasOwnProperty;var o=(t,e)=>ao(t,"name",{value:e,configurable:!0});var qt=(t,e)=>()=>(t&&(e=t(t=0)),e);var E=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),S6=(t,e)=>{for(var a in e)ao(t,a,{get:e[a],enumerable:!0})},C6=(t,e,a,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of Q_(e))!J_.call(t,r)&&r!==a&&ao(t,r,{get:()=>e[r],enumerable:!(i=K_(e,r))||i.enumerable});return t};var ya=(t,e,a)=>(a=t!=null?X_(Y_(t)):{},C6(e||!t||!t.__esModule?ao(a,"default",{value:t,enumerable:!0}):a,t)),Up=t=>C6(ao({},"__esModule",{value:!0}),t);var Fp=E(vn=>{"use strict";Object.defineProperty(vn,"__esModule",{value:!0});vn.toCommandProperties=vn.toCommandValue=void 0;function Z_(t){return t==null?"":typeof t=="string"||t instanceof String?t:JSON.stringify(t)}o(Z_,"toCommandValue");vn.toCommandValue=Z_;function eS(t){return Object.keys(t).length?{title:t.title,file:t.file,line:t.startLine,endLine:t.endLine,col:t.startColumn,endColumn:t.endColumn}:{}}o(eS,"toCommandProperties");vn.toCommandProperties=eS});var R6=E(va=>{"use strict";var tS=va&&va.__createBinding||(Object.create?function(t,e,a,i){i===void 0&&(i=a);var r=Object.getOwnPropertyDescriptor(e,a);(!r||("get"in r?!e.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:function(){return e[a]}}),Object.defineProperty(t,i,r)}:function(t,e,a,i){i===void 0&&(i=a),t[i]=e[a]}),aS=va&&va.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),iS=va&&va.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var a in t)a!=="default"&&Object.prototype.hasOwnProperty.call(t,a)&&tS(e,t,a);return aS(e,t),e};Object.defineProperty(va,"__esModule",{value:!0});va.issue=va.issueCommand=void 0;var rS=iS(require("os")),T6=Fp();function O6(t,e,a){let i=new Uu(t,e,a);process.stdout.write(i.toString()+rS.EOL)}o(O6,"issueCommand");va.issueCommand=O6;function nS(t,e=""){O6(t,{},e)}o(nS,"issue");va.issue=nS;var E6="::",Uu=class{static{o(this,"Command")}constructor(e,a,i){e||(e="missing.command"),this.command=e,this.properties=a,this.message=i}toString(){let e=E6+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let a=!0;for(let i in this.properties)if(this.properties.hasOwnProperty(i)){let r=this.properties[i];r&&(a?a=!1:e+=",",e+=`${i}=${oS(r)}`)}}return e+=`${E6}${sS(this.message)}`,e}};function sS(t){return(0,T6.toCommandValue)(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}o(sS,"escapeData");function oS(t){return(0,T6.toCommandValue)(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}o(oS,"escapeProperty")});var D6=E(xa=>{"use strict";var pS=xa&&xa.__createBinding||(Object.create?function(t,e,a,i){i===void 0&&(i=a);var r=Object.getOwnPropertyDescriptor(e,a);(!r||("get"in r?!e.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:function(){return e[a]}}),Object.defineProperty(t,i,r)}:function(t,e,a,i){i===void 0&&(i=a),t[i]=e[a]}),lS=xa&&xa.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),Vu=xa&&xa.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var a in t)a!=="default"&&Object.prototype.hasOwnProperty.call(t,a)&&pS(e,t,a);return lS(e,t),e};Object.defineProperty(xa,"__esModule",{value:!0});xa.prepareKeyValueMessage=xa.issueFileCommand=void 0;var dS=Vu(require("crypto")),P6=Vu(require("fs")),Fu=Vu(require("os")),I6=Fp();function cS(t,e){let a=process.env[`GITHUB_${t}`];if(!a)throw new Error(`Unable to find environment variable for file command ${t}`);if(!P6.existsSync(a))throw new Error(`Missing file at path: ${a}`);P6.appendFileSync(a,`${(0,I6.toCommandValue)(e)}${Fu.EOL}`,{encoding:"utf8"})}o(cS,"issueFileCommand");xa.issueFileCommand=cS;function uS(t,e){let a=`ghadelimiter_${dS.randomUUID()}`,i=(0,I6.toCommandValue)(e);if(t.includes(a))throw new Error(`Unexpected input: name should not contain the delimiter "${a}"`);if(i.includes(a))throw new Error(`Unexpected input: value should not contain the delimiter "${a}"`);return`${t}<<${a}${Fu.EOL}${i}${Fu.EOL}${a}`}o(uS,"prepareKeyValueMessage");xa.prepareKeyValueMessage=uS});var B6=E(xn=>{"use strict";Object.defineProperty(xn,"__esModule",{value:!0});xn.checkBypass=xn.getProxyUrl=void 0;function mS(t){let e=t.protocol==="https:";if(A6(t))return;let a=(()=>e?process.env.https_proxy||process.env.HTTPS_PROXY:process.env.http_proxy||process.env.HTTP_PROXY)();if(a)try{return new URL(a)}catch{if(!a.startsWith("http://")&&!a.startsWith("https://"))return new URL(`http://${a}`)}else return}o(mS,"getProxyUrl");xn.getProxyUrl=mS;function A6(t){if(!t.hostname)return!1;let e=t.hostname;if(fS(e))return!0;let a=process.env.no_proxy||proLine truncated
|
||||
`,u.message,u.stack);var m=new Error("tunneling socket could not be established, cause="+u.message);m.code="ECONNRESET",e.request.emit("error",m),i.removeSocket(r)}o(c,"onError")},"createSocket");Ni.prototype.removeSocket=o(function(e){var a=this.sockets.indexOf(e);if(a!==-1){this.sockets.splice(a,1);var i=this.requests.shift();i&&this.createSocket(i,function(r){i.request.onSocket(r)})}},"removeSocket");function L6(t,e){var a=this;Ni.prototype.createSocket.call(a,t,function(i){var r=t.request.getHeader("host"),n=Gu({},a.options,{socket:i,servername:r?r.replace(/:.*$/,""):t.host}),s=hS.connect(0,n);a.sockets[a.sockets.indexOf(i)]=s,e(s)})}o(L6,"createSecureSocket");function q6(t,e,a){return typeof t=="string"?{host:t,port:e,localAddress:a}:t}o(q6,"toOptions");function Gu(t){for(var e=1,a=arguments.length;e<a;++e){var i=arguments[e];if(typeof i=="object")for(var r=Object.keys(i),n=0,s=r.length;n<s;++n){var p=r[n];i[p]!==void 0&&(t[p]=i[p])}}return t}o(Gu,"mergeOptions");var Wi;process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)?Wi=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"):Wi=o(function(){},"debug");bn.debug=Wi});var Wu=E((FF,k6)=>{k6.exports=z6()});var Ir=E(Re=>{"use strict";var NS=Re&&Re.__createBinding||(Object.create?function(t,e,a,i){i===void 0&&(i=a),Object.defineProperty(t,i,{enumerable:!0,get:function(){return e[a]}})}:function(t,e,a,i){i===void 0&&(i=a),t[i]=e[a]}),_S=Re&&Re.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),Kp=Re&&Re.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var a in t)a!=="default"&&Object.hasOwnProperty.call(t,a)&&NS(e,t,a);return _S(e,t),e},it=Re&&Re.__awaiter||function(t,e,a,i){function r(n){return n instanceof a?n:new a(function(s){s(n)})}return o(r,"adopt"),new(a||(a=Promise))(function(n,s){function p(c){try{d(i.next(c))}catch(u){s(u)}}o(p,"fulfilled");function l(c){try{d(i.throw(c))}catch(u){s(u)}}o(l,"rejected");function d(c){c.done?n(c.value):r(c.value).then(p,l)}o(d,"step"),d((i=i.apply(t,e||[])).next())})};Object.defineProperty(Re,"__esModule",{value:!0});Re.HttpClient=Re.isHttps=Re.HttpClientResponse=Re.HttpClientError=Re.getProxyUrl=Re.MediaTypes=Re.Headers=Re.HttpCodes=void 0;var Vp=Kp(require("http")),Xu=Kp(require("https")),j6=Kp(B6()),$p=Kp(Wu()),ka;(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"})(ka=Re.HttpCodes||(Re.HttpCodes={}));var Ht;(function(t){t.Accept="accept",t.ContentType="content-type"})(Ht=Re.Headers||(Re.Headers={}));var Xi;(function(t){t.ApplicationJson="application/json"})(Xi=Re.MediaTypes||(Re.MediaTypes={}));function SS(t){let e=j6.getProxyUrl(new URL(t));return e?e.href:""}o(SS,"getProxyUrl");Re.getProxyUrl=SS;var CS=[ka.MovedPermanently,ka.ResourceMoved,ka.SeeOther,ka.TemporaryRedirect,ka.PermanentRedirect],ES=[ka.BadGateway,ka.ServiceUnavailable,ka.GatewayTimeout],TS=["OPTIONS","GET","DELETE","HEAD"],OS=10,RS=5,Wp=class t extends Error{static{o(this,"HttpClientError")}constructor(e,a){super(e),this.name="HttpClientError",this.statusCode=a,Object.setPrototypeOf(this,t.prototype)}};Re.HttpClientError=Wp;var Xp=class{static{o(this,"HttpClientResponse")}constructor(e){this.message=e}readBody(){return it(this,void 0,void 0,function*(){return new Promise(e=>it(this,void 0,void 0,function*(){let a=Buffer.alloc(0);this.message.on("data",i=>{a=Buffer.concat([a,i])}),this.message.on("end",()=>{e(a.toString())})}))})}readBodyBuffer(){return it(this,void 0,void 0,function*(){return new Promise(e=>it(this,void 0,void 0,function*(){let a=[];this.message.on("data",i=>{a.push(i)}),this.message.on("end",()=>{e(Buffer.concat(a))})}))})}};Re.HttpClientResponse=Xp;function PS(t){return new URL(t).protocol==="https:"}o(PS,"isHttps");Re.isHttps=PS;var Ku=class{static{o(this,"HttpClient")}constructor(e,a,i){this._ignoreSslError=!1
Line truncated
|
||||
var MQe=Object.create;var $m=Object.defineProperty;var _Qe=Object.getOwnPropertyDescriptor;var OQe=Object.getOwnPropertyNames;var PQe=Object.getPrototypeOf,qQe=Object.prototype.hasOwnProperty;var a=(t,e)=>$m(t,"name",{value:e,configurable:!0});var Le=(t,e)=>()=>(t&&(e=t(t=0)),e);var E=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),lI=(t,e)=>{for(var A in e)$m(t,A,{get:e[A],enumerable:!0})},f_=(t,e,A,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of OQe(e))!qQe.call(t,i)&&i!==A&&$m(t,i,{get:()=>e[i],enumerable:!(r=_Qe(e,i))||r.enumerable});return t};var Nr=(t,e,A)=>(A=t!=null?MQe(PQe(t)):{},f_(e||!t||!t.__esModule?$m(A,"default",{value:t,enumerable:!0}):A,t)),Zo=t=>f_($m({},"__esModule",{value:!0}),t);var dI=E(vp=>{"use strict";Object.defineProperty(vp,"__esModule",{value:!0});vp.toCommandProperties=vp.toCommandValue=void 0;function HQe(t){return t==null?"":typeof t=="string"||t instanceof String?t:JSON.stringify(t)}a(HQe,"toCommandValue");vp.toCommandValue=HQe;function YQe(t){return Object.keys(t).length?{title:t.title,file:t.file,line:t.startLine,endLine:t.endLine,col:t.startColumn,endColumn:t.endColumn}:{}}a(YQe,"toCommandProperties");vp.toCommandProperties=YQe});var y_=E(ws=>{"use strict";var GQe=ws&&ws.__createBinding||(Object.create?function(t,e,A,r){r===void 0&&(r=A);var i=Object.getOwnPropertyDescriptor(e,A);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[A]}}),Object.defineProperty(t,r,i)}:function(t,e,A,r){r===void 0&&(r=A),t[r]=e[A]}),JQe=ws&&ws.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),VQe=ws&&ws.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var A in t)A!=="default"&&Object.prototype.hasOwnProperty.call(t,A)&&GQe(e,t,A);return JQe(e,t),e};Object.defineProperty(ws,"__esModule",{value:!0});ws.issue=ws.issueCommand=void 0;var WQe=VQe(require("os")),B_=dI();function I_(t,e,A){let r=new i4(t,e,A);process.stdout.write(r.toString()+WQe.EOL)}a(I_,"issueCommand");ws.issueCommand=I_;function zQe(t,e=""){I_(t,{},e)}a(zQe,"issue");ws.issue=zQe;var Q_="::",i4=class{static{a(this,"Command")}constructor(e,A,r){e||(e="missing.command"),this.command=e,this.properties=A,this.message=r}toString(){let e=Q_+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let A=!0;for(let r in this.properties)if(this.properties.hasOwnProperty(r)){let i=this.properties[r];i&&(A?A=!1:e+=",",e+=`${r}=${XQe(i)}`)}}return e+=`${Q_}${jQe(this.message)}`,e}};function jQe(t){return(0,B_.toCommandValue)(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}a(jQe,"escapeData");function XQe(t){return(0,B_.toCommandValue)(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}a(XQe,"escapeProperty")});var N_=E(bs=>{"use strict";var ZQe=bs&&bs.__createBinding||(Object.create?function(t,e,A,r){r===void 0&&(r=A);var i=Object.getOwnPropertyDescriptor(e,A);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[A]}}),Object.defineProperty(t,r,i)}:function(t,e,A,r){r===void 0&&(r=A),t[r]=e[A]}),KQe=bs&&bs.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),s4=bs&&bs.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var A in t)A!=="default"&&Object.prototype.hasOwnProperty.call(t,A)&&ZQe(e,t,A);return KQe(e,t),e};Object.defineProperty(bs,"__esModule",{value:!0});bs.prepareKeyValueMessage=bs.issueFileCommand=void 0;var $Qe=s4(require("crypto")),w_=s4(require("fs")),n4=s4(require("os")),b_=dI();function eBe(t,e){let A=process.env[`GITHUB_${t}`];if(!A)throw new Error(`Unable to find environment variable for file command ${t}`);if(!w_.existsSync(A))throw new Error(`Missing file at path: ${A}`);w_.appendFileSync(A,`${(0,b_.toCommandValue)(e)}${n4.EOL}`,{encoding:"utf8"})}a(eBe,"issueFileCommand");bs.issueFileCommand=eBe;function tBe(t,e){let A=`ghadelimiter_${$Qe.randomUUID()}`,r=(0,b_.toCommandValue)(e);if(t.includes(A))throw new Error(`Unexpected input: name should not contain the delimiter "${A}"`);if(r.includes(A))throw new Error(`Unexpected input: value should not contain the delimiter "${A}"`);return`${t}<<${A}${n4.EOL}${r}${n4.EOL}${A}`}a(tBe,"prepareKeyValueMessage");bs.prepareKeyValueMessage=tBe});var D_=E(kp=>{"use strict";Object.defineProperty(kp,"__esModule",{value:!0});kp.checkBypass=kp.getProxyUrl=void 0;function ABe(t){let e=t.protocol==="https:";if(R_(t))return;let A=e?process.env.https_proxy||process.env.HTTPS_PROXY:process.env.http_proxy||process.env.HTTP_PROXY;if(A)try{return new URL(A)}catch{if(!A.startsWith("http://")&&!A.startsWith("https://"))return new URL(`http://${A}`)}else return}a(ABe,"getProxyUrl");kp.getProxyUrl=ABe;function R_(t){if(!t.hostname)return!1;let e=t.hostname;if(rBe(e)Line truncated
|
||||
`,u.message,u.stack);var p=new Error("tunneling socket could not be established, cause="+u.message);p.code="ECONNRESET",e.request.emit("error",p),r.removeSocket(i)}a(d,"onError")},"createSocket");Ko.prototype.removeSocket=a(function(e){var A=this.sockets.indexOf(e);if(A!==-1){this.sockets.splice(A,1);var r=this.requests.shift();r&&this.createSocket(r,function(i){r.request.onSocket(i)})}},"removeSocket");function x_(t,e){var A=this;Ko.prototype.createSocket.call(A,t,function(r){var i=t.request.getHeader("host"),n=o4({},A.options,{socket:r,servername:i?i.replace(/:.*$/,""):t.host}),s=iBe.connect(0,n);A.sockets[A.sockets.indexOf(r)]=s,e(s)})}a(x_,"createSecureSocket");function v_(t,e,A){return typeof t=="string"?{host:t,port:e,localAddress:A}:t}a(v_,"toOptions");function o4(t){for(var e=1,A=arguments.length;e<A;++e){var r=arguments[e];if(typeof r=="object")for(var i=Object.keys(r),n=0,s=i.length;n<s;++n){var o=i[n];r[o]!==void 0&&(t[o]=r[o])}}return t}a(o4,"mergeOptions");var al;process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)?al=a(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"):al=a(function(){},"debug");Fp.debug=al});var eC=E((Nut,F_)=>{F_.exports=k_()});var Wt=E((Rut,L_)=>{L_.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"),kHeadersList:Symbol("headers list"),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"),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"),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"),kHTTP2BuildRequest:Symbol("http2 build request"),kHTTP1BuildRequest:Symbol("http1 build request"),kHTTP2CopyHeaders:Symbol("http2 copy headers"),kHTTPConnVersion:Symbol("http connection version"),kRetryHandlerDefaultRetry:Symbol("retry agent default retry"),kConstruct:Symbol("constructable")}});var Pt=E((Dut,U_)=>{"use strict";var WA=class extends Error{static{a(this,"UndiciError")}constructor(e){super(e),this.name="UndiciError",this.code="UND_ERR"}},c4=class t extends WA{static{a(this,"ConnectTimeoutError")}constructor(e){super(e),Error.captureStackTrace(this,t),this.name="ConnectTimeoutError",this.message=e||"Connect Timeout Error",this.code="UND_ERR_CONNECT_TIMEOUT"}},l4=class t extends WA{static{a(this,"HeadersTimeoutError")}constructor(e){super(e),Error.captureStackTrace(this,t),this.name="HeadersTimeoutError",this.message=e||"Headers Timeout Error",this.code="UND_ERR_HEADERS_TIMEOUT"}},d4=class t extends WA{static{a(this,"HeadersOverflowError")}constructor(e){super(e),Error.captureStackTrace(this,t),this.name="HeadersOverflowError",this.message=e||"Headers Overflow Error",this.code="UND_ERR_HEADERS_OVERFLOW"}},u4=class t extends WA{static{a(this,"BodyTimeoutError")}constructor(e){super(e),Error.captureStackTrace(this,t),this.name="BodyTimeoutError",this.message=e||"Body Timeout Error",this.code="UND_ERR_BODY_TIMEOUT"}},p4=class t extends WA{static{a(this,"ResponseStatusCodeError")}constructor(e,A,r,i){super(e),Error.captureStackTrace(this,t),this.name="ResponseStatusCodeError",this.message=e||"Response Status Code Error",this.code="UND_ERR_RESPONSE_STATUS_CODE",this.body=i,this.status=A,this.statusCode=A,this.headers=r}},g4=class t extends WA{static{a(this,"InvalidArgumentError")}constructor(e){super(e),Error.captureStackTrace(this,t),this.name="InvalidArgumentError
Line truncated
|
||||
\r
|
||||
`),zBe=/\r\n/g,jBe=/^([^:]+):[ \t]?([\x00-\xFF]+)?$/;function Up(t){AO.call(this),t=t||{};let e=this;this.nread=0,this.maxed=!1,this.npairs=0,this.maxHeaderPairs=tO(t,"maxHeaderPairs",2e3),this.maxHeaderSize=tO(t,"maxHeaderSize",80*1024),this.buffer="",this.header={},this.finished=!1,this.ss=new VBe(WBe),this.ss.on("info",function(A,r,i,n){r&&!e.maxed&&(e.nread+n-i>=e.maxHeaderSize?(n=e.maxHeaderSize-e.nread+i,e.nread=e.maxHeaderSize,e.maxed=!0):e.nread+=n-i,e.buffer+=r.toString("binary",i,n)),A&&e._finish()})}a(Up,"HeaderParser");JBe(Up,AO);Up.prototype.push=function(t){let e=this.ss.push(t);if(this.finished)return e};Up.prototype.reset=function(){this.finished=!1,this.buffer="",this.header={},this.ss.reset()};Up.prototype._finish=function(){this.buffer&&this._parseHeader(),this.ss.matches=this.ss.maxMatches;let t=this.header;this.header={},this.buffer="",this.finished=!0,this.nread=this.npairs=0,this.maxed=!1,this.emit("header",t)};Up.prototype._parseHeader=function(){if(this.npairs===this.maxHeaderPairs)return;let t=this.buffer.split(zBe),e=t.length,A,r;for(var i=0;i<e;++i){if(t[i].length===0)continue;if((t[i][0]===" "||t[i][0]===" ")&&r){this.header[r][this.header[r].length-1]+=t[i];continue}let n=t[i].indexOf(":");if(n===-1||n===0)return;if(A=jBe.exec(t[i]),r=A[1].toLowerCase(),this.header[r]=this.header[r]||[],this.header[r].push(A[2]||""),++this.npairs===this.maxHeaderPairs)break}};rO.exports=Up});var L4=E((Hut,sO)=>{"use strict";var F4=require("node:stream").Writable,XBe=require("node:util").inherits,ZBe=v4(),nO=$_(),KBe=iO(),$Be=45,eIe=Buffer.from("-"),tIe=Buffer.from(`\r
|
||||
`),AIe=a(function(){},"EMPTY_FN");function ma(t){if(!(this instanceof ma))return new ma(t);if(F4.call(this,t),!t||!t.headerFirst&&typeof t.boundary!="string")throw new TypeError("Boundary required");typeof t.boundary=="string"?this.setBoundary(t.boundary):this._bparser=void 0,this._headerFirst=t.headerFirst,this._dashes=0,this._parts=0,this._finished=!1,this._realFinish=!1,this._isPreamble=!0,this._justMatched=!1,this._firstWrite=!0,this._inHeader=!0,this._part=void 0,this._cb=void 0,this._ignoreData=!1,this._partOpts={highWaterMark:t.partHwm},this._pause=!1;let e=this;this._hparser=new KBe(t),this._hparser.on("header",function(A){e._inHeader=!1,e._part.emit("header",A)})}a(ma,"Dicer");XBe(ma,F4);ma.prototype.emit=function(t){if(t==="finish"&&!this._realFinish){if(!this._finished){let e=this;process.nextTick(function(){if(e.emit("error",new Error("Unexpected end of multipart data")),e._part&&!e._ignoreData){let A=e._isPreamble?"Preamble":"Part";e._part.emit("error",new Error(A+" terminated early due to unexpected end of multipart data")),e._part.push(null),process.nextTick(function(){e._realFinish=!0,e.emit("finish"),e._realFinish=!1});return}e._realFinish=!0,e.emit("finish"),e._realFinish=!1})}}else F4.prototype.emit.apply(this,arguments)};ma.prototype._write=function(t,e,A){if(!this._hparser&&!this._bparser)return A();if(this._headerFirst&&this._isPreamble){this._part||(this._part=new nO(this._partOpts),this.listenerCount("preamble")!==0?this.emit("preamble",this._part):this._ignore());let r=this._hparser.push(t);if(!this._inHeader&&r!==void 0&&r<t.length)t=t.slice(r);else return A()}this._firstWrite&&(this._bparser.push(tIe),this._firstWrite=!1),this._bparser.push(t),this._pause?this._cb=A:A()};ma.prototype.reset=function(){this._part=void 0,this._bparser=void 0,this._hparser=void 0};ma.prototype.setBoundary=function(t){let e=this;this._bparser=new ZBe(`\r
|
||||
--`+t),this._bparser.on("info",function(A,r,i,n){e._oninfo(A,r,i,n)})};ma.prototype._ignore=function(){this._part&&!this._ignoreData&&(this._ignoreData=!0,this._part.on("error",AIe),this._part.resume())};ma.prototype._oninfo=function(t,e,A,r){let i,n=this,s=0,o,c=!0;if(!this._part&&this._justMatched&&e){for(;this._dashes<2&&A+s<r;)if(e[A+s]===$Be)++s,++this._dashes;else{this._dashes&&(i=eIe),this._dashes=0;break}if(this._dashes===2&&(A+s<r&&this.listenerCount("trailer")!==0&&this.emit("trailer",e.slice(A+s,r)),this.reset(),this._finished=!0,n._parts===0&&(n._realFinish=!0,n.emit("finish"),n._realFinish=!1)),this._dashes)return}this._justMatched&&(this._justMatched=!1),this._part||(this._part=new nO(this._partOpts),this._part._read=function(l){n._unpause()},this._isPreamble&&this.listenerCount("preamble")!==0?this.emit("preamble",this._part):this._isPreamble!==!0&&this.listenerCount("part")!==0?this.emit("part",this._part):this._ignore(),this._isPreamble||(this._inHeader=!0)),e&&A<r&&!this._ignoreData&&(this._isPreamble||!this._inHeader?(i&&(c=this._part.push(i)),c=this._part.push(e.slice(A,r)),c||(this._pause=!0)):!this._isPreamble&&this._inHeader&&(i&&this._hparser.push(i),o=this._hparser.push(e.slice(A,r)),!this._inHeader&&o!==void 0&&o<r&&this._oninfo(!1,e,A+o,r))),t&&(this._hparser.reset(),this._isPreamble?this._isPreamble=!1:A!==r&&(++this._parts,this._part.on("end",function(){--n._parts===0&&(n._finished?(n._realFinish=!0,n.emit("finish"),n._realFinish=!1):n._unpause())})),this._part.push(null),this._part=void 0,this._ignoreData=!1,this._justMatched=!0,this._dashes=0)};ma.prototype._unpause=function(){if(this._pause&&(this._pause=!1,this._cb)){let t=this._cb;this._cb=void 0,t()}};sO.exports=ma});var EI=E((U4,cO)=>{"use strict";var aO=new TextDecoder("utf-8"),oO=new Map([["utf-8",aO],["utf8",aO]]);function rIe(t){let e;for(;;)switch(t){case"utf-8":case"utf8":return AC.utf8;case"latin1":case"ascii":case"us-ascii":case"iso-8859-1":case"iso8859-1":case"iso88591":case"iso_8859-1":case"windows-1252":case"iso_8859-1:1987":case"cp1252":case"x-cp1252":return AC.latin1;case"utf16le":case"utf-16le":case"ucs2":case"ucs-2":return AC.utf16le;case"base64":return AC.base64;default:if(e===void 0){e=!0,t=t.toLowerCase();continue}return AC.other.bind(t)}}a(rIe,"getDecoder");var AC={utf8:(t,e)=>t.length===0?"":(typeof t=="string"&&(t=Buffer.from(t,e)),t.utf8Slice(0,t.length)),latin1:(t,e)=>t.length===0?"":typeof t=="string"?t:t.latin1Slice(0,t.length),utf16le:(t,e)=>t.length===0?"":(typeof t=="string"&&(t=Buffer.from(t,e)),t.ucs2Slice(0,t.length)),base64:(t,e)=>t.length===0?"":(typeof t=="string"&&(t=Buffer.from(t,e)),t.base64Slice(0,t.length)),other:(t,e)=>{if(t.length===0)return"";if(typeof t=="string"&&(t=Buffer.from(t,e)),oO.has(U4.toString()))try{return oO.get(U4).decode(t)}catch{}return typeof t=="string"?t:t.toString()}};function iIe(t,e,A){return t&&rIe(A)(t,e)}a(iIe,"decodeText");cO.exports=iIe});var M4=E((Jut,gO)=>{"use strict";var mI=EI(),lO=/%[a-fA-F0-9][a-fA-F0-9]/g,nIe={"%00":"\0","%01":"","%02":"","%03":"","%04":"","%05":"","%06":"","%07":"\x07","%08":"\b","%09":" ","%0a":`
|
||||
`,"%0A":`
|
||||
`,"%0b":"\v","%0B":"\v","%0c":"\f","%0C":"\f","%0d":"\r","%0D":"\r","%0e":"","%0E":"","%0f":"","%0F":"","%10":"","%11":"","%12":"","%13":"","%14":"","%15":"","%16":"","%17":"","%18":"","%19":"","%1a":"","%1A":"","%1b":"\x1B","%1B":"\x1B","%1c":"","%1C":"","%1d":"","%1D":"","%1e":"","%1E":"","%1f":"","%1F":"","%20":" ","%21":"!","%22":'"',"%23":"#","%24":"$","%25":"%","%26":"&","%27":"'","%28":"(","%29":")","%2a":"*","%2A":"*","%2b":"+","%2B":"+","%2c":",","%2C":",","%2d":"-","%2D":"-","%2e":".","%2E":".","%2f":"/","%2F":"/","%30":"0","%31":"1","%32":"2","%33":"3","%34":"4","%35":"5","%36":"6","%37":"7","%38":"8","%39":"9","%3a":":","%3A":":","%3b":";","%3B":";","%3c":"<","%3C":"<","%3d":"=","%3D":"=","%3e":">","%3E":">","%3f":"?","%3F":"?","%40":"@","%41":"A","%42":"B","%43":"C","%44":"D","%45":"E","%46":"F","%47":"G","%48":"H","%49":"I","%4a":"J","%4A":"J","%4b":"K","%4B":"K","%4c":"L","%4C":"L","%4d":"M","%4D":"M","%4e":"N","%4E":"N","%4f":"O","%4F":"O","%50":"P","%51":"Q","%52":"R","%53":"S","%54":"T","%55":"U","%56":"V","%57":"W","%58":"X","%59":"Y","%5a":"Z","%5A":"Z","%5b":"[","%5B":"[","%5c":"\\","%5C":"\\","%5d":"]","%5D":"]","%5e":"^","%5E":"^","%5f":"_","%5F":"_","%60":"`","%61":"a","%62":"b","%63":"c","%64":"d","%65":"e","%66":"f","%67":"g","%68":"h","%69":"i","%6a":"j","%6A":"j","%6b":"k","%6B":"k","%6c":"l","%6C":"l","%6d":"m","%6D":"m","%6e":"n","%6E":"n","%6f":"o","%6F":"o","%70":"p","%71":"q","%72":"r","%73":"s","%74":"t","%75":"u","%76":"v","%77":"w","%78":"x","%79":"y","%7a":"z","%7A":"z","%7b":"{","%7B":"{","%7c":"|","%7C":"|","%7d":"}","%7D":"}","%7e":"~","%7E":"~","%7f":"\x7F","%7F":"\x7F","%80":"\x80","%81":"\x81","%82":"\x82","%83":"\x83","%84":"\x84","%85":"\x85","%86":"\x86","%87":"\x87","%88":"\x88","%89":"\x89","%8a":"\x8A","%8A":"\x8A","%8b":"\x8B","%8B":"\x8B","%8c":"\x8C","%8C":"\x8C","%8d":"\x8D","%8D":"\x8D","%8e":"\x8E","%8E":"\x8E","%8f":"\x8F","%8F":"\x8F","%90":"\x90","%91":"\x91","%92":"\x92","%93":"\x93","%94":"\x94","%95":"\x95","%96":"\x96","%97":"\x97","%98":"\x98","%99":"\x99","%9a":"\x9A","%9A":"\x9A","%9b":"\x9B","%9B":"\x9B","%9c":"\x9C","%9C":"\x9C","%9d":"\x9D","%9D":"\x9D","%9e":"\x9E","%9E":"\x9E","%9f":"\x9F","%9F":"\x9F","%a0":"\xA0","%A0":"\xA0","%a1":"\xA1","%A1":"\xA1","%a2":"\xA2","%A2":"\xA2","%a3":"\xA3","%A3":"\xA3","%a4":"\xA4","%A4":"\xA4","%a5":"\xA5","%A5":"\xA5","%a6":"\xA6","%A6":"\xA6","%a7":"\xA7","%A7":"\xA7","%a8":"\xA8","%A8":"\xA8","%a9":"\xA9","%A9":"\xA9","%aa":"\xAA","%Aa":"\xAA","%aA":"\xAA","%AA":"\xAA","%ab":"\xAB","%Ab":"\xAB","%aB":"\xAB","%AB":"\xAB","%ac":"\xAC","%Ac":"\xAC","%aC":"\xAC","%AC":"\xAC","%ad":"\xAD","%Ad":"\xAD","%aD":"\xAD","%AD":"\xAD","%ae":"\xAE","%Ae":"\xAE","%aE":"\xAE","%AE":"\xAE","%af":"\xAF","%Af":"\xAF","%aF":"\xAF","%AF":"\xAF","%b0":"\xB0","%B0":"\xB0","%b1":"\xB1","%B1":"\xB1","%b2":"\xB2","%B2":"\xB2","%b3":"\xB3","%B3":"\xB3","%b4":"\xB4","%B4":"\xB4","%b5":"\xB5","%B5":"\xB5","%b6":"\xB6","%B6":"\xB6","%b7":"\xB7","%B7":"\xB7","%b8":"\xB8","%B8":"\xB8","%b9":"\xB9","%B9":"\xB9","%ba":"\xBA","%Ba":"\xBA","%bA":"\xBA","%BA":"\xBA","%bb":"\xBB","%Bb":"\xBB","%bB":"\xBB","%BB":"\xBB","%bc":"\xBC","%Bc":"\xBC","%bC":"\xBC","%BC":"\xBC","%bd":"\xBD","%Bd":"\xBD","%bD":"\xBD","%BD":"\xBD","%be":"\xBE","%Be":"\xBE","%bE":"\xBE","%BE":"\xBE","%bf":"\xBF","%Bf":"\xBF","%bF":"\xBF","%BF":"\xBF","%c0":"\xC0","%C0":"\xC0","%c1":"\xC1","%C1":"\xC1","%c2":"\xC2","%C2":"\xC2","%c3":"\xC3","%C3":"\xC3","%c4":"\xC4","%C4":"\xC4","%c5":"\xC5","%C5":"\xC5","%c6":"\xC6","%C6":"\xC6","%c7":"\xC7","%C7":"\xC7","%c8":"\xC8","%C8":"\xC8","%c9":"\xC9","%C9":"\xC9","%ca":"\xCA","%Ca":"\xCA","%cA":"\xCA","%CA":"\xCA","%cb":"\xCB","%Cb":"\xCB","%cB":"\xCB","%CB":"\xCB","%cc":"\xCC","%Cc":"\xCC","%cC":"\xCC","%CC":"\xCC","%cd":"\xCD","%Cd":"\xCD","%cD":"\xCD","%CD":"\xCD","%ce":"\xCE","%Ce":"\xCE","%cE":"\xCE","%CE":"\xCE","%cf":"\xCF","%Cf":"\xCF","%cF":"\xCF","%CF":"\xCF","%d0":"\xD0","%D0":"\xD0","%d1":"\xD1","%D1":"\xD1","%d2":"\xD2","%D2":"\xD2","%d3":"\xD3","%D3":"\xD3","%d4":"\xD4","%D4":"\xD4","%d5":"\xD5","%D5":"\xD5","%d6":"\xD6","%D6":"\xD6","%d7":"\xD7","%D7":"\xD7","%d8":"\xD8","%D8":"\xD8","%d9":"\xD9","%D9":"\xD9","%da":"\xDA","%Da":"\xDA","%dA":"\xDA","%DA":"\xDA","%db":"\xDB","%Db":"\xDB","%dB":"\xDB","%DB":"\xDB","%dc":"\xDC","%Dc":"\xDC","%dC":"\xDC","%DC":"\xDC","%dd":"\xDD","%Dd":"\xDD","%dD":"\xDD","%DD":"\xDD","%de":"\xDE","%De":"\xDE","%dE":"\xDE","%DE":"\xDE","%df":"\xDF","%Df":"\xDF","%dF":"\xDF","%DF":"\xDF","%e0":"\xE0","%E0":"\xE0","%e1":"\xE1","%E1":"\xE1","%e2":"\xE2","%E2":"\xE2","%e3":"\xE3","%E3":"\xE3","%e4":"\xE4","%E4":"\xE4","%e5":"\xE5","%E5":"\xE5","%e6":"\xE6","%E6":"\xE6","%e7":"\xE7","%E7":"\xE7","%e8":"\xE8","%E8":"\xE8","%e9":"\xE9","%E9":"\xE9","%ea":"\xEA","%Ea":"\xEA","%eA":"\xEA","%EA":"\xEA","%eb":"\xEB","%Eb":"\xEB","%eB":"\xEB","%EB":"\xEB","%ec":"\xEC","%Ec":"\xEC","%eC":"\xEC","%EC":"\xEC","%ed":"\xED","%Ed":"\xED","%eD":"\xED","%ED":"\xED","%ee":"\xLine truncated
|
||||
`))}a(OO,"isValidHeaderValue");function i1e(t,e){let{headersList:A}=e,r=(A.get("referrer-policy")??"").split(","),i="";if(r.length>0)for(let n=r.length;n!==0;n--){let s=r[n-1].trim();if(GIe.has(s)){i=s;break}}i!==""&&(t.referrerPolicy=i)}a(i1e,"setRequestReferrerPolicyOnRedirect");function n1e(){return"allowed"}a(n1e,"crossOriginResourcePolicyCheck");function s1e(){return"success"}a(s1e,"corsCheck");function a1e(){return"success"}a(a1e,"TAOCheck");function o1e(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e)}a(o1e,"appendFetchMetadata");function c1e(t){let e=t.origin;if(t.responseTainting==="cors"||t.mode==="websocket")e&&t.headersList.append("origin",e);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&&J4(t.origin)&&!J4(sC(t))&&(e=null);break;case"same-origin":BI(t,sC(t))||(e=null);break;default:}e&&t.headersList.append("origin",e)}}a(c1e,"appendRequestOriginHeader");function l1e(t){return WIe.now()}a(l1e,"coarsenedSharedCurrentTime");function d1e(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}}a(d1e,"createOpaqueTimingInfo");function u1e(){return{referrerPolicy:"strict-origin-when-cross-origin"}}a(u1e,"makePolicyContainer");function p1e(t){return{referrerPolicy:t.referrerPolicy}}a(p1e,"clonePolicyContainer");function g1e(t){let e=t.referrerPolicy;Pp(e);let A=null;if(t.referrer==="client"){let o=VIe();if(!o||o.origin==="null")return"no-referrer";A=new URL(o)}else t.referrer instanceof URL&&(A=t.referrer);let r=Y4(A),i=Y4(A,!0);r.toString().length>4096&&(r=i);let n=BI(t,r),s=iC(r)&&!iC(t.url);switch(e){case"origin":return i??Y4(A,!0);case"unsafe-url":return r;case"same-origin":return n?i:"no-referrer";case"origin-when-cross-origin":return n?r:i;case"strict-origin-when-cross-origin":{let o=sC(t);return BI(r,o)?r:iC(r)&&!iC(o)?"no-referrer":i}case"strict-origin":case"no-referrer-when-downgrade":default:return s?"no-referrer":i}}a(g1e,"determineRequestsReferrer");function Y4(t,e){return Pp(t instanceof URL),t.protocol==="file:"||t.protocol==="about:"||t.protocol==="blank:"?"no-referrer":(t.username="",t.password="",t.hash="",e&&(t.pathname="",t.search=""),t)}a(Y4,"stripURLForReferrer");function iC(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(A){if(A==null||A==="null")return!1;let r=new URL(A);return!!(r.protocol==="https:"||r.protocol==="wss:"||/^127(?:\.[0-9]+){0,2}\.[0-9]+$|^\[(?:0*:)*?:?0*1\]$/.test(r.hostname)||r.hostname==="localhost"||r.hostname.includes("localhost.")||r.hostname.endsWith(".localhost"))}}a(iC,"isURLPotentiallyTrustworthy");function h1e(t,e){if(nC===void 0)return!0;let A=m1e(e);if(A==="no metadata"||A.length===0)return!0;let r=A.sort((s,o)=>o.algo.localeCompare(s.algo)),i=r[0].algo,n=r.filter(s=>s.algo===i);for(let s of n){let o=s.algo,c=s.hash;c.endsWith("==")&&(c=c.slice(0,-2));let l=nC.createHash(o).update(t).digest("base64");if(l.endsWith("==")&&(l=l.slice(0,-2)),l===c)return!0;let d=nC.createHash(o).update(t).digest("base64url");if(d.endsWith("==")&&(d=d.slice(0,-2)),d===c)return!0}return!1}a(h1e,"bytesMatch");var E1e=/((?<algo>sha256|sha384|sha512)-(?<hash>[A-z0-9+/]{1}.*={0,2}))( +[\x21-\x7e]?)?/i;function m1e(t){let e=[],A=!0,r=nC.getHashes();for(let i of t.split(" ")){A=!1;let n=E1e.exec(i);if(n===null||n.groups===void 0)continue;let s=n.groups.algo;r.includes(s.toLowerCase())&&e.push(n.groups)}return A===!0?"no metadata":e}a(m1e,"parseMetadata");function C1e(t){}a(C1e,"tryUpgradeRequestToAPotentiallyTrustworthyURL");function BI(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}a(BI,"sameOrigin");function f1e(){let t,e;return{promise:new Promise((r,i)=>{t=r,e=i}),resolve:t,reject:e}}a(f1e,"createDeferredPromise");function Q1e(t){return t.controller.state==="aborted"}a(Q1e,"isAborted");function B1e(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}a(B1e,"isCancelled");var V4={delete:"DELETE",DELETE:"DELETE",get:"GET",GET:"GET",head:"HEAD",HEAD:"HEAD",options:"OPTIONS",OPTIONS:"OPTIONS",post:"POST",POST:"POST",put:"PUT",PUT:"PUT"};Object.setPrototypeOf(V4,null);function I1e(t){return V4[t.toLowerCase()]??t}a(I1e,"normalizeMethod");function y1e(t){let e=JSON.stringify(t);if(e===void 0)throw new TypeError("Value is not JSON serializable");return Pp(typeof e=="string"),e}a(y1e,"serializeJavascriptValueToJSONString");var w1e=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function b1e(t,e,A){let r={index:0,kind:A,target:t},i={next(){if(Object.getPrototypeOf(this
Line truncated
|
||||
`||t===" "||t===" "}a(VO,"isHTTPWhiteSpace");function W4(t,e=!0,A=!0){let r=0,i=t.length-1;if(e)for(;r<t.length&&VO(t[r]);r++);if(A)for(;i>0&&VO(t[i]);i--);return t.slice(r,i+1)}a(W4,"removeHTTPWhitespace");function WO(t){return t==="\r"||t===`
|
||||
`||t===" "||t==="\f"||t===" "}a(WO,"isASCIIWhitespace");function J1e(t,e=!0,A=!0){let r=0,i=t.length-1;if(e)for(;r<t.length&&WO(t[r]);r++);if(A)for(;i>0&&WO(t[i]);i--);return t.slice(r,i+1)}a(J1e,"removeASCIIWhitespace");ZO.exports={dataURLProcessor:q1e,URLSerializer:zO,collectASequenceOfCodePoints:wI,collectASequenceOfCodePointsFast:qp,stringPercentDecode:jO,parseMIMEType:z4,collectAnHTTPQuotedString:XO,serializeAMimeType:G1e}});var bI=E((ppt,AP)=>{"use strict";var{Blob:eP,File:KO}=require("buffer"),{types:j4}=require("util"),{kState:Un}=ec(),{isBlobLike:tP}=Ns(),{webidl:It}=Di(),{parseMIMEType:V1e,serializeAMimeType:W1e}=Ca(),{kEnumerableProperty:$O}=ct(),z1e=new TextEncoder,aC=class t extends eP{static{a(this,"File")}constructor(e,A,r={}){It.argumentLengthCheck(arguments,2,{header:"File constructor"}),e=It.converters["sequence<BlobPart>"](e),A=It.converters.USVString(A),r=It.converters.FilePropertyBag(r);let i=A,n=r.type,s;e:{if(n){if(n=V1e(n),n==="failure"){n="";break e}n=W1e(n).toLowerCase()}s=r.lastModified}super(j1e(e,r),{type:n}),this[Un]={name:i,lastModified:s,type:n}}get name(){return It.brandCheck(this,t),this[Un].name}get lastModified(){return It.brandCheck(this,t),this[Un].lastModified}get type(){return It.brandCheck(this,t),this[Un].type}},X4=class t{static{a(this,"FileLike")}constructor(e,A,r={}){let i=A,n=r.type,s=r.lastModified??Date.now();this[Un]={blobLike:e,name:i,type:n,lastModified:s}}stream(...e){return It.brandCheck(this,t),this[Un].blobLike.stream(...e)}arrayBuffer(...e){return It.brandCheck(this,t),this[Un].blobLike.arrayBuffer(...e)}slice(...e){return It.brandCheck(this,t),this[Un].blobLike.slice(...e)}text(...e){return It.brandCheck(this,t),this[Un].blobLike.text(...e)}get size(){return It.brandCheck(this,t),this[Un].blobLike.size}get type(){return It.brandCheck(this,t),this[Un].blobLike.type}get name(){return It.brandCheck(this,t),this[Un].name}get lastModified(){return It.brandCheck(this,t),this[Un].lastModified}get[Symbol.toStringTag](){return"File"}};Object.defineProperties(aC.prototype,{[Symbol.toStringTag]:{value:"File",configurable:!0},name:$O,lastModified:$O});It.converters.Blob=It.interfaceConverter(eP);It.converters.BlobPart=function(t,e){if(It.util.Type(t)==="Object"){if(tP(t))return It.converters.Blob(t,{strict:!1});if(ArrayBuffer.isView(t)||j4.isAnyArrayBuffer(t))return It.converters.BufferSource(t,e)}return It.converters.USVString(t,e)};It.converters["sequence<BlobPart>"]=It.sequenceConverter(It.converters.BlobPart);It.converters.FilePropertyBag=It.dictionaryConverter([{key:"lastModified",converter:It.converters["long long"],get defaultValue(){return Date.now()}},{key:"type",converter:It.converters.DOMString,defaultValue:""},{key:"endings",converter:t=>(t=It.converters.DOMString(t),t=t.toLowerCase(),t!=="native"&&(t="transparent"),t),defaultValue:"transparent"}]);function j1e(t,e){let A=[];for(let r of t)if(typeof r=="string"){let i=r;e.endings==="native"&&(i=X1e(i)),A.push(z1e.encode(i))}else j4.isAnyArrayBuffer(r)||j4.isTypedArray(r)?r.buffer?A.push(new Uint8Array(r.buffer,r.byteOffset,r.byteLength)):A.push(new Uint8Array(r)):tP(r)&&A.push(r);return A}a(j1e,"processBlobParts");function X1e(t){let e=`
|
||||
`;return process.platform==="win32"&&(e=`\r
|
||||
`),t.replace(/\r?\n/g,e)}a(X1e,"convertLineEndingsNative");function Z1e(t){return KO&&t instanceof KO||t instanceof aC||t&&(typeof t.stream=="function"||typeof t.arrayBuffer=="function")&&t[Symbol.toStringTag]==="File"}a(Z1e,"isFileLike");AP.exports={File:aC,FileLike:X4,isFileLike:Z1e}});var RI=E((hpt,aP)=>{"use strict";var{isBlobLike:NI,toUSVString:K1e,makeIterator:Z4}=Ns(),{kState:di}=ec(),{File:sP,FileLike:rP,isFileLike:$1e}=bI(),{webidl:Ft}=Di(),{Blob:e0e,File:K4}=require("buffer"),iP=K4??sP,Hp=class t{static{a(this,"FormData")}constructor(e){if(e!==void 0)throw Ft.errors.conversionFailed({prefix:"FormData constructor",argument:"Argument 1",types:["undefined"]});this[di]=[]}append(e,A,r=void 0){if(Ft.brandCheck(this,t),Ft.argumentLengthCheck(arguments,2,{header:"FormData.append"}),arguments.length===3&&!NI(A))throw new TypeError("Failed to execute 'append' on 'FormData': parameter 2 is not of type 'Blob'");e=Ft.converters.USVString(e),A=NI(A)?Ft.converters.Blob(A,{strict:!1}):Ft.converters.USVString(A),r=arguments.length===3?Ft.converters.USVString(r):void 0;let i=nP(e,A,r);this[di].push(i)}delete(e){Ft.brandCheck(this,t),Ft.argumentLengthCheck(arguments,1,{header:"FormData.delete"}),e=Ft.converters.USVString(e),this[di]=this[di].filter(A=>A.name!==e)}get(e){Ft.brandCheck(this,t),Ft.argumentLengthCheck(arguments,1,{header:"FormData.get"}),e=Ft.converters.USVString(e);let A=this[di].findIndex(r=>r.name===e);return A===-1?null:this[di][A].value}getAll(e){return Ft.brandCheck(this,t),Ft.argumentLengthCheck(arguments,1,{header:"FormData.getAll"}),e=Ft.converters.USVString(e),this[di].filter(A=>A.name===e).map(A=>A.value)}has(e){return Ft.brandCheck(this,t),Ft.argumentLengthCheck(arguments,1,{header:"FormData.has"}),e=Ft.converters.USVString(e),this[di].findIndex(A=>A.name===e)!==-1}set(e,A,r=void 0){if(Ft.brandCheck(this,t),Ft.argumentLengthCheck(arguments,2,{header:"FormData.set"}),arguments.length===3&&!NI(A))throw new TypeError("Failed to execute 'set' on 'FormData': parameter 2 is not of type 'Blob'");e=Ft.converters.USVString(e),A=NI(A)?Ft.converters.Blob(A,{strict:!1}):Ft.converters.USVString(A),r=arguments.length===3?K1e(r):void 0;let i=nP(e,A,r),n=this[di].findIndex(s=>s.name===e);n!==-1?this[di]=[...this[di].slice(0,n),i,...this[di].slice(n+1).filter(s=>s.name!==e)]:this[di].push(i)}entries(){return Ft.brandCheck(this,t),Z4(()=>this[di].map(e=>[e.name,e.value]),"FormData","key+value")}keys(){return Ft.brandCheck(this,t),Z4(()=>this[di].map(e=>[e.name,e.value]),"FormData","key")}values(){return Ft.brandCheck(this,t),Z4(()=>this[di].map(e=>[e.name,e.value]),"FormData","value")}forEach(e,A=globalThis){if(Ft.brandCheck(this,t),Ft.argumentLengthCheck(arguments,1,{header:"FormData.forEach"}),typeof e!="function")throw new TypeError("Failed to execute 'forEach' on 'FormData': parameter 1 is not of type 'Function'.");for(let[r,i]of this)e.apply(A,[i,r,this])}};Hp.prototype[Symbol.iterator]=Hp.prototype.entries;Object.defineProperties(Hp.prototype,{[Symbol.toStringTag]:{value:"FormData",configurable:!0}});function nP(t,e,A){if(t=Buffer.from(t).toString("utf8"),typeof e=="string")e=Buffer.from(e).toString("utf8");else if($1e(e)||(e=e instanceof e0e?new iP([e],"blob",{type:e.type}):new rP(e,"blob",{type:e.type})),A!==void 0){let r={type:e.type,lastModified:e.lastModified};e=K4&&e instanceof K4||e instanceof sP?new iP([e],A,r):new rP(e,A,r)}return{name:t,value:e}}a(nP,"makeEntry");aP.exports={FormData:Hp}});var oC=E((mpt,EP)=>{"use strict";var t0e=RO(),Yp=ct(),{ReadableStreamFrom:A0e,isBlobLike:oP,isReadableStreamLike:r0e,readableStreamClose:i0e,createDeferredPromise:n0e,fullyReadBody:s0e}=Ns(),{FormData:cP}=RI(),{kState:Ac}=ec(),{webidl:$4}=Di(),{DOMException:uP,structuredClone:a0e}=ll(),{Blob:o0e,File:c0e}=require("buffer"),{kBodyUsed:l0e}=Wt(),e6=require("assert"),{isErrored:d0e}=ct(),{isUint8Array:pP,isArrayBuffer:u0e}=require("util/types"),{File:p0e}=bI(),{parseMIMEType:g0e,serializeAMimeType:h0e}=Ca(),tc=globalThis.ReadableStream,lP=c0e??p0e,DI=new TextEncoder,E0e=new TextDecoder;function gP(t,e=!1){tc||(tc=require("stream/web").ReadableStream);let A=null;t instanceof tc?A=t:oP(t)?A=t.stream():A=new tc({async pull(c){c.enqueue(typeof i=="string"?DI.encode(i):i),queueMicrotask(()=>i0e(c))},start(){},type:void 0}),e6(r0e(A));let r=null,i=null,n=null,s=null;if(typeof t=="string")i=t,s="text/plain;charset=UTF-8";else if(t instanceof URLSearchParams)i=t.toString(),s="application/x-www-form-urlencoded;charset=UTF-8";else if(u0e(t))i=new Uint8Array(t.slice());else if(ArrayBuffer.isView(t))i=new Uint8Array(t.buffer.slice(t.byteOffset,t.byteOffset+t.byteLength));else if(Yp.isFormDataLike(t)){let c=`----formdata-undici-0${`${Math.floor(Math.random()*1e11)}`.padStart(11,"0")}`,l=`--${c}\r
|
||||
Content-Disposition: form-data`;let d=a(f=>f.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22"),"escape"),u=a(f=>f.replace(/\r?\n|\r/g,`\r
|
||||
`),"normalizeLinefeeds"),p=[],g=new Uint8Array([13,10]);n=0;let h=!1;for(let[f,B]of t)if(typeof B=="string"){let b=DI.encode(l+`; name="${d(u(f))}"\r
|
||||
\r
|
||||
${u(B)}\r
|
||||
`);p.push(b),n+=b.byteLength}else{let b=DI.encode(`${l}; name="${d(u(f))}"`+(B.name?`; filename="${d(B.name)}"`:"")+`\r
|
||||
Content-Type: ${B.type||"application/octet-stream"}\r
|
||||
\r
|
||||
`);p.push(b,B,g),typeof B.size=="number"?n+=b.byteLength+B.size+g.byteLength:h=!0}let m=DI.encode(`--${c}--`);p.push(m),n+=m.byteLength,h&&(n=null),i=t,r=a(async function*(){for(let f of p)f.stream?yield*f.stream():yield f},"action"),s="multipart/form-data; boundary="+c}else if(oP(t))i=t,n=t.size,t.type&&(s=t.type);else if(typeof t[Symbol.asyncIterator]=="function"){if(e)throw new TypeError("keepalive");if(Yp.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");A=t instanceof tc?t:A0e(t)}if((typeof i=="string"||Yp.isBuffer(i))&&(n=Buffer.byteLength(i)),r!=null){let c;A=new tc({async start(){c=r(t)[Symbol.asyncIterator]()},async pull(l){let{value:d,done:u}=await c.next();return u?queueMicrotask(()=>{l.close()}):d0e(A)||l.enqueue(new Uint8Array(d)),l.desiredSize>0},async cancel(l){await c.return()},type:void 0})}return[{stream:A,source:i,length:n},s]}a(gP,"extractBody");function m0e(t,e=!1){return tc||(tc=require("stream/web").ReadableStream),t instanceof tc&&(e6(!Yp.isDisturbed(t),"The body has already been consumed."),e6(!t.locked,"The stream is locked.")),gP(t,e)}a(m0e,"safelyExtractBody");function C0e(t){let[e,A]=t.stream.tee(),r=a0e(A,{transfer:[A]}),[,i]=r.tee();return t.stream=e,{stream:i,length:t.length,source:t.source}}a(C0e,"cloneBody");async function*dP(t){if(t)if(pP(t))yield t;else{let e=t.stream;if(Yp.isDisturbed(e))throw new TypeError("The body has already been consumed.");if(e.locked)throw new TypeError("The stream is locked.");e[l0e]=!0,yield*e}}a(dP,"consumeBody");function t6(t){if(t.aborted)throw new uP("The operation was aborted.","AbortError")}a(t6,"throwIfAborted");function f0e(t){return{blob(){return SI(this,A=>{let r=y0e(this);return r==="failure"?r="":r&&(r=h0e(r)),new o0e([A],{type:r})},t)},arrayBuffer(){return SI(this,A=>new Uint8Array(A).buffer,t)},text(){return SI(this,hP,t)},json(){return SI(this,I0e,t)},async formData(){$4.brandCheck(this,t),t6(this[Ac]);let A=this.headers.get("Content-Type");if(/multipart\/form-data/.test(A)){let r={};for(let[o,c]of this.headers)r[o.toLowerCase()]=c;let i=new cP,n;try{n=new t0e({headers:r,preservePath:!0})}catch(o){throw new uP(`${o}`,"AbortError")}n.on("field",(o,c)=>{i.append(o,c)}),n.on("file",(o,c,l,d,u)=>{let p=[];if(d==="base64"||d.toLowerCase()==="base64"){let g="";c.on("data",h=>{g+=h.toString().replace(/[\r\n]/gm,"");let m=g.length-g.length%4;p.push(Buffer.from(g.slice(0,m),"base64")),g=g.slice(m)}),c.on("end",()=>{p.push(Buffer.from(g,"base64")),i.append(o,new lP(p,l,{type:u}))})}else c.on("data",g=>{p.push(g)}),c.on("end",()=>{i.append(o,new lP(p,l,{type:u}))})});let s=new Promise((o,c)=>{n.on("finish",o),n.on("error",l=>c(new TypeError(l)))});if(this.body!==null)for await(let o of dP(this[Ac].body))n.write(o);return n.end(),await s,i}else if(/application\/x-www-form-urlencoded/.test(A)){let r;try{let n="",s=new TextDecoder("utf-8",{ignoreBOM:!0});for await(let o of dP(this[Ac].body)){if(!pP(o))throw new TypeError("Expected Uint8Array chunk");n+=s.decode(o,{stream:!0})}n+=s.decode(),r=new URLSearchParams(n)}catch(n){throw Object.assign(new TypeError,{cause:n})}let i=new cP;for(let[n,s]of r)i.append(n,s);return i}else throw await Promise.resolve(),t6(this[Ac]),$4.errors.exception({header:`${t.name}.formData`,message:"Could not parse content as FormData."})}}}a(f0e,"bodyMixinMethods");function Q0e(t){Object.assign(t.prototype,f0e(t))}a(Q0e,"mixinBody");async function SI(t,e,A){if($4.brandCheck(t,A),t6(t[Ac]),B0e(t[Ac].body))throw new TypeError("Body is unusable");let r=n0e(),i=a(s=>r.reject(s),"errorSteps"),n=a(s=>{try{r.resolve(e(s))}catch(o){i(o)}},"successSteps");return t[Ac].body==null?(n(new Uint8Array),r.promise):(await s0e(t[Ac].body,n,i),r.promise)}a(SI,"specConsumeBody");function B0e(t){return t!=null&&(t.stream.locked||Yp.isDisturbed(t.stream))}a(B0e,"bodyUnusable");function hP(t){return t.length===0?"":(t[0]===239&&t[1]===187&&t[2]===191&&(t=t.subarray(3)),E0e.decode(t))}a(hP,"utf8DecodeBytes");function I0e(t){return JSON.parse(hP(t))}a(I0e,"parseJSONFromBytes");function y0e(t){let{headersList:e}=t[Ac],A=e.get("content-type");return A===null?"failure":g0e(A)}a(y0e,"bodyMimeType");EP.exports={extractBody:gP,safelyExtractBody:m0e,cloneBody:C0e,mixinBody:Q0e}});var QP=E((fpt,fP)=>{"use strict";var{InvalidArgumentError:zt,NotSupportedError:w0e}=Pt(),rc=require("assert"),{kHTTP2BuildRequest:b0e,kHTTP2CopyHeaders:N0e,kHTTP1BuildRequest:R0e}=Wt(),Zi=ct(),mP=/^[\^_`a-zA-Z\-0-9!#$%&'*+.|~]+$/,CP=/[^\t\x20-\x7e\x80-\xff]/,D0e=/[^\u0021-\u00ff]/,fa=Symbol("handler"),ir={},A6;try{let t=require("diagnostics_channel");ir.create=t.channel("undici:request:create"),ir.bodySent=t.channel("undici:request:bodySent"),ir.headers=t.channel("undici:request:headers"),ir.trailers=t.channel("undici:request:trailers"),ir.error=t.channel("undici:request:error")}catch{ir.create={hasSubscribers:!1},ir.bodySent={hasSubscribers:!1},ir.headers={hasSubscribers:!1},ir.trailers={hasSubscribers:!1},ir.error={hasSLine truncated
|
||||
`),this.body=f.stream,this.contentLength=f.length}else Zi.isBlobLike(i)&&this.contentType==null&&i.type&&(this.contentType=i.type,this.headers+=`content-type: ${i.type}\r
|
||||
`);Zi.validateHandler(m,r,l),this.servername=Zi.getServerName(this.host),this[fa]=m,ir.create.hasSubscribers&&ir.create.publish({request:this})}onBodySent(e){if(this[fa].onBodySent)try{return this[fa].onBodySent(e)}catch(A){this.abort(A)}}onRequestSent(){if(ir.bodySent.hasSubscribers&&ir.bodySent.publish({request:this}),this[fa].onRequestSent)try{return this[fa].onRequestSent()}catch(e){this.abort(e)}}onConnect(e){if(rc(!this.aborted),rc(!this.completed),this.error)e(this.error);else return this.abort=e,this[fa].onConnect(e)}onHeaders(e,A,r,i){rc(!this.aborted),rc(!this.completed),ir.headers.hasSubscribers&&ir.headers.publish({request:this,response:{statusCode:e,headers:A,statusText:i}});try{return this[fa].onHeaders(e,A,r,i)}catch(n){this.abort(n)}}onData(e){rc(!this.aborted),rc(!this.completed);try{return this[fa].onData(e)}catch(A){return this.abort(A),!1}}onUpgrade(e,A,r){return rc(!this.aborted),rc(!this.completed),this[fa].onUpgrade(e,A,r)}onComplete(e){this.onFinally(),rc(!this.aborted),this.completed=!0,ir.trailers.hasSubscribers&&ir.trailers.publish({request:this,trailers:e});try{return this[fa].onComplete(e)}catch(A){this.onError(A)}}onError(e){if(this.onFinally(),ir.error.hasSubscribers&&ir.error.publish({request:this,error:e}),!this.aborted)return this.aborted=!0,this[fa].onError(e)}onFinally(){this.errorHandler&&(this.body.off("error",this.errorHandler),this.errorHandler=null),this.endHandler&&(this.body.off("end",this.endHandler),this.endHandler=null)}addHeader(e,A){return cC(this,e,A),this}static[R0e](e,A,r){return new t(e,A,r)}static[b0e](e,A,r){let i=A.headers;A={...A,headers:null};let n=new t(e,A,r);if(n.headers={},Array.isArray(i)){if(i.length%2!==0)throw new zt("headers array must be even");for(let s=0;s<i.length;s+=2)cC(n,i[s],i[s+1],!0)}else if(i&&typeof i=="object"){let s=Object.keys(i);for(let o=0;o<s.length;o++){let c=s[o];cC(n,c,i[c],!0)}}else if(i!=null)throw new zt("headers must be an object or an array");return n}static[N0e](e){let A=e.split(`\r
|
||||
`),r={};for(let i of A){let[n,s]=i.split(": ");s==null||s.length===0||(r[n]?r[n]+=`,${s}`:r[n]=s)}return r}};function Od(t,e,A){if(e&&typeof e=="object")throw new zt(`invalid ${t} header`);if(e=e!=null?`${e}`:"",CP.exec(e)!==null)throw new zt(`invalid ${t} header`);return A?e:`${t}: ${e}\r
|
||||
`}a(Od,"processHeaderValue");function cC(t,e,A,r=!1){if(A&&typeof A=="object"&&!Array.isArray(A))throw new zt(`invalid ${e} header`);if(A===void 0)return;if(t.host===null&&e.length===4&&e.toLowerCase()==="host"){if(CP.exec(A)!==null)throw new zt(`invalid ${e} header`);t.host=A}else if(t.contentLength===null&&e.length===14&&e.toLowerCase()==="content-length"){if(t.contentLength=parseInt(A,10),!Number.isFinite(t.contentLength))throw new zt("invalid content-length header")}else if(t.contentType===null&&e.length===12&&e.toLowerCase()==="content-type")t.contentType=A,r?t.headers[e]=Od(e,A,r):t.headers+=Od(e,A);else{if(e.length===17&&e.toLowerCase()==="transfer-encoding")throw new zt("invalid transfer-encoding header");if(e.length===10&&e.toLowerCase()==="connection"){let i=typeof A=="string"?A.toLowerCase():null;if(i!=="close"&&i!=="keep-alive")throw new zt("invalid connection header");i==="close"&&(t.reset=!0)}else{if(e.length===10&&e.toLowerCase()==="keep-alive")throw new zt("invalid keep-alive header");if(e.length===7&&e.toLowerCase()==="upgrade")throw new zt("invalid upgrade header");if(e.length===6&&e.toLowerCase()==="expect")throw new w0e("expect header not supported");if(mP.exec(e)===null)throw new zt("invalid header key");if(Array.isArray(A))for(let i=0;i<A.length;i++)r?t.headers[e]?t.headers[e]+=`,${Od(e,A[i],r)}`:t.headers[e]=Od(e,A[i],r):t.headers+=Od(e,A[i]);else r?t.headers[e]=Od(e,A,r):t.headers+=Od(e,A)}}}a(cC,"processHeader");fP.exports=r6});var xI=E((Bpt,BP)=>{"use strict";var S0e=require("events"),i6=class extends S0e{static{a(this,"Dispatcher")}dispatch(){throw new Error("not implemented")}close(){throw new Error("not implemented")}destroy(){throw new Error("not implemented")}};BP.exports=i6});var dC=E((ypt,IP)=>{"use strict";var x0e=xI(),{ClientDestroyedError:n6,ClientClosedError:v0e,InvalidArgumentError:Gp}=Pt(),{kDestroy:k0e,kClose:F0e,kDispatch:s6,kInterceptors:Pd}=Wt(),Jp=Symbol("destroyed"),lC=Symbol("closed"),ic=Symbol("onDestroyed"),Vp=Symbol("onClosed"),vI=Symbol("Intercepted Dispatch"),a6=class extends x0e{static{a(this,"DispatcherBase")}constructor(){super(),this[Jp]=!1,this[ic]=null,this[lC]=!1,this[Vp]=[]}get destroyed(){return this[Jp]}get closed(){return this[lC]}get interceptors(){return this[Pd]}set interceptors(e){if(e){for(let A=e.length-1;A>=0;A--)if(typeof this[Pd][A]!="function")throw new Gp("interceptor must be an function")}this[Pd]=e}close(e){if(e===void 0)return new Promise((r,i)=>{this.close((n,s)=>n?i(n):r(s))});if(typeof e!="function")throw new Gp("invalid callback");if(this[Jp]){queueMicrotask(()=>e(new n6,null));return}if(this[lC]){this[Vp]?this[Vp].push(e):queueMicrotask(()=>e(null,null));return}this[lC]=!0,this[Vp].push(e);let A=a(()=>{let r=this[Vp];this[Vp]=null;for(let i=0;i<r.length;i++)r[i](null,null)},"onClosed");this[F0e]().then(()=>this.destroy()).then(()=>{queueMicrotask(A)})}destroy(e,A){if(typeof e=="function"&&(A=e,e=null),A===void 0)return new Promise((i,n)=>{this.destroy(e,(s,o)=>s?n(s):i(o))});if(typeof A!="function")throw new Gp("invalid callback");if(this[Jp]){this[ic]?this[ic].push(A):queueMicrotask(()=>A(null,null));return}e||(e=new n6),this[Jp]=!0,this[ic]=this[ic]||[],this[ic].push(A);let r=a(()=>{let i=this[ic];this[ic]=null;for(let n=0;n<i.length;n++)i[n](null,null)},"onDestroyed");this[k0e](e).then(()=>{queueMicrotask(r)})}[vI](e,A){if(!this[Pd]||this[Pd].length===0)return this[vI]=this[s6],this[s6](e,A);let r=this[s6].bind(this);for(let i=this[Pd].length-1;i>=0;i--)r=this[Pd][i](r);return this[vI]=r,r(e,A)}dispatch(e,A){if(!A||typeof A!="object")throw new Gp("handler must be an object");try{if(!e||typeof e!="object")throw new Gp("opts must be an object.");if(this[Jp]||this[ic])throw new n6;if(this[lC])throw new v0e;return this[vI](e,A)}catch(r){if(typeof A.onError!="function")throw new Gp("invalid onError method");return A.onError(r),!1}}};IP.exports=a6});var uC=E((Rpt,bP)=>{"use strict";var L0e=require("net"),yP=require("assert"),wP=ct(),{InvalidArgumentError:U0e,ConnectTimeoutError:T0e}=Pt(),o6,c6;global.FinalizationRegistry&&!process.env.NODE_V8_COVERAGE?c6=class{static{a(this,"WeakSessionCache")}constructor(e){this._maxCachedSessions=e,this._sessionCache=new Map,this._sessionRegistry=new global.FinalizationRegistry(A=>{if(this._sessionCache.size<this._maxCachedSessions)return;let r=this._sessionCache.get(A);r!==void 0&&r.deref()===void 0&&this._sessionCache.delete(A)})}get(e){let A=this._sessionCache.get(e);return A?A.deref():null}set(e,A){this._maxCachedSessions!==0&&(this._sessionCache.set(e,new WeakRef(A)),this._sessionRegistry.register(A,e))}}:c6=class{static{a(this,"SimpleSessionCache")}constructor(e){this._maxCachedSessions=e,this._sessionCache=new Map}get(e){return this._sessionCache.get(e)}set(e,A){if(this._maxCachedSessions!==0){if(this._sessionCache.size>=this._maxCachedSessions){let{value:r}=this._sessionCache.keys().next();this._sessionCache.delete(r)}this._sessionCache.set(e,A)}}};function M0e({allowH2:t,maxCachedSessi
Line truncated
|
||||
`,this[HP]=c??3e5,this[qP]=i??3e5,this[CC]=b??!0,this[pye]=C,this[fC]=N,this[ul]=null,this[GP]=w>-1?w:-1,this[Ka]="h1",this[Mn]=null,this[OI]=v?{openStreams:0,maxConcurrentStreams:x??100}:null,this[JP]=`${this[Vr].hostname}${this[Vr].port?`:${this[Vr].port}`:""}`,this[iA]=[],this[nA]=0,this[Tn]=0}get pipelining(){return this[gl]}set pipelining(e){this[gl]=e,_n(this,!0)}get[Yd](){return this[iA].length-this[Tn]}get[yA](){return this[Tn]-this[nA]}get[Hd](){return this[iA].length-this[nA]}get[uye](){return!!this[SA]&&!this[jp]&&!this[SA].destroyed}get[m6](){let e=this[SA];return e&&(e[Si]||e[sc]||e[Zp])||this[Hd]>=(this[gl]||1)||this[Yd]>0}[dye](e){jP(this),this.once("connect",e)}[Eye](e,A){let r=e.origin||this[Vr].origin,i=this[Ka]==="h2"?E6[Cye](r,e,A):E6[Qye](r,e,A);return this[iA].push(i),this[qd]||(Ce.bodyLength(i.body)==null&&Ce.isIterable(i.body)?(this[qd]=1,process.nextTick(_n,this)):_n(this,!0)),this[qd]&&this[pl]!==2&&this[m6]&&(this[pl]=2),this[pl]<2}async[gye](){return new Promise(e=>{this[Hd]?this[ul]=e:e(null)})}async[hye](e){return new Promise(A=>{let r=this[iA].splice(this[Tn]);for(let n=0;n<r.length;n++){let s=r[n];xi(this,s,e)}let i=a(()=>{this[ul]&&(this[ul](),this[ul]=null),A()},"callback");this[Mn]!=null&&(Ce.destroy(this[Mn],e),this[Mn]=null,this[OI]=null),this[SA]?Ce.destroy(this[SA].on("close",i),e):queueMicrotask(i),_n(this)})}};function Dye(t){re(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[SA][Wr]=t,YI(this[Za],t)}a(Dye,"onHttp2SessionError");function Sye(t,e,A){let r=new Xa(`HTTP/2: "frameError" received - type ${t}, code ${e}`);A===0&&(this[SA][Wr]=r,YI(this[Za],r))}a(Sye,"onHttp2FrameError");function xye(){Ce.destroy(this,new Xp("other side closed")),Ce.destroy(this[SA],new Xp("other side closed"))}a(xye,"onHttp2SessionEnd");function vye(t){let e=this[Za],A=new Xa(`HTTP/2: "GOAWAY" frame received with code ${t}`);if(e[SA]=null,e[Mn]=null,e.destroyed){re(this[Yd]===0);let r=e[iA].splice(e[nA]);for(let i=0;i<r.length;i++){let n=r[i];xi(this,n,A)}}else if(e[yA]>0){let r=e[iA][e[nA]];e[iA][e[nA]++]=null,xi(e,r,A)}e[Tn]=e[nA],re(e[yA]===0),e.emit("disconnect",e[Vr],[e],A),_n(e)}a(vye,"onHTTP2GoAway");var Wa=RP(),kye=LI(),Fye=Buffer.alloc(0);async function Lye(){let t=process.env.JEST_WORKER_ID?p6():void 0,e;try{e=await WebAssembly.compile(Buffer.from(LP(),"base64"))}catch{e=await WebAssembly.compile(Buffer.from(t||p6(),"base64"))}return await WebAssembly.instantiate(e,{env:{wasm_on_url:(A,r,i)=>0,wasm_on_status:(A,r,i)=>{re.strictEqual(hr.ptr,A);let n=r-ja+za.byteOffset;return hr.onStatus(new UI(za.buffer,n,i))||0},wasm_on_message_begin:A=>(re.strictEqual(hr.ptr,A),hr.onMessageBegin()||0),wasm_on_header_field:(A,r,i)=>{re.strictEqual(hr.ptr,A);let n=r-ja+za.byteOffset;return hr.onHeaderField(new UI(za.buffer,n,i))||0},wasm_on_header_value:(A,r,i)=>{re.strictEqual(hr.ptr,A);let n=r-ja+za.byteOffset;return hr.onHeaderValue(new UI(za.buffer,n,i))||0},wasm_on_headers_complete:(A,r,i,n)=>(re.strictEqual(hr.ptr,A),hr.onHeadersComplete(r,!!i,!!n)||0),wasm_on_body:(A,r,i)=>{re.strictEqual(hr.ptr,A);let n=r-ja+za.byteOffset;return hr.onBody(new UI(za.buffer,n,i))||0},wasm_on_message_complete:A=>(re.strictEqual(hr.ptr,A),hr.onMessageComplete()||0)}})}a(Lye,"lazyllhttp");var h6=null,Q6=Lye();Q6.catch();var hr=null,za=null,TI=0,ja=null,Kp=1,_I=2,B6=3,I6=class{static{a(this,"Parser")}constructor(e,A,{exports:r}){re(Number.isFinite(e[MI])&&e[MI]>0),this.llhttp=r,this.ptr=this.llhttp.llhttp_alloc(Wa.TYPE.RESPONSE),this.client=e,this.socket=A,this.timeout=null,this.timeoutValue=null,this.timeoutType=null,this.statusCode=null,this.statusText="",this.upgrade=!1,this.headers=[],this.headersSize=0,this.headersMaxSize=e[MI],this.shouldKeepAlive=!1,this.paused=!1,this.resume=this.resume.bind(this),this.bytesRead=0,this.keepAlive="",this.contentLength="",this.connection="",this.maxResponseSize=e[GP]}setTimeout(e,A){this.timeoutType=A,e!==this.timeoutValue?(g6.clearTimeout(this.timeout),e?(this.timeout=g6.setTimeout(Uye,e,this),this.timeout.unref&&this.timeout.unref()):this.timeout=null,this.timeoutValue=e):this.timeout&&this.timeout.refresh&&this.timeout.refresh()}resume(){this.socket.destroyed||!this.paused||(re(this.ptr!=null),re(hr==null),this.llhttp.llhttp_resume(this.ptr),re(this.timeoutType===_I),this.timeout&&this.timeout.refresh&&this.timeout.refresh(),this.paused=!1,this.execute(this.socket.read()||Fye),this.readMore())}readMore(){for(;!this.paused&&this.ptr;){let e=this.socket.read();if(e===null)break;this.execute(e)}}execute(e){re(this.ptr!=null),re(hr==null),re(!this.paused);let{socket:A,llhttp:r}=this;e.length>TI&&(ja&&r.free(ja),TI=Math.ceil(e.length/4096)*4096,ja=r.malloc(TI)),new Uint8Array(r.memory.buffer,ja,TI).set(e);try{let i;try{za=e,hr=this,i=r.llhttp_execute(this.ptr,ja,e.length)}catch(s){throw s}finally{hr=null,za=null}let n=r.llhttp_get_error_pos(this.ptr)-ja;if(i===Wa.ERROR.PAUSED_UPGRADE)this.onUpgrade(e.slice(n));else if(i===Wa.ERROR.PAUSED)this.paused=!0,A.unshift(e.slice(n));e
Line truncated
|
||||
`;return typeof n=="string"?h+=`host: ${n}\r
|
||||
`:h+=t[_P],s?h+=`connection: upgrade\r
|
||||
upgrade: ${s}\r
|
||||
`:t[gl]&&!g[Si]?h+=`connection: keep-alive\r
|
||||
`:h+=`connection: close\r
|
||||
`,o&&(h+=o),ui.sendHeaders.hasSubscribers&&ui.sendHeaders.publish({request:e,headers:h,socket:g}),!A||u===0?(p===0?g.write(`${h}content-length: 0\r
|
||||
\r
|
||||
`,"latin1"):(re(p===null,"no body must not have content length"),g.write(`${h}\r
|
||||
`,"latin1")),e.onRequestSent()):Ce.isBuffer(A)?(re(p===A.byteLength,"buffer body must have content length"),g.cork(),g.write(`${h}content-length: ${p}\r
|
||||
\r
|
||||
`,"latin1"),g.write(A),g.uncork(),e.onBodySent(A),e.onRequestSent(),d||(g[Si]=!0)):Ce.isBlobLike(A)?typeof A.stream=="function"?qI({body:A.stream(),client:t,request:e,socket:g,contentLength:p,header:h,expectsPayload:d}):KP({body:A,client:t,request:e,socket:g,contentLength:p,header:h,expectsPayload:d}):Ce.isStream(A)?ZP({body:A,client:t,request:e,socket:g,contentLength:p,header:h,expectsPayload:d}):Ce.isIterable(A)?qI({body:A,client:t,request:e,socket:g,contentLength:p,header:h,expectsPayload:d}):re(!1),!0}a(Mye,"write");function _ye(t,e,A){let{body:r,method:i,path:n,host:s,upgrade:o,expectContinue:c,signal:l,headers:d}=A,u;if(typeof d=="string"?u=E6[fye](d.trim()):u=d,o)return xi(t,A,new Error("Upgrade not supported for H2")),!1;try{A.onConnect(b=>{A.aborted||A.completed||xi(t,A,b||new w6)})}catch(b){xi(t,A,b)}if(A.aborted)return!1;let p,g=t[OI];if(u[Bye]=s||t[JP],u[Iye]=i,i==="CONNECT")return e.ref(),p=e.request(u,{endStream:!1,signal:l}),p.id&&!p.pending?(A.onUpgrade(null,null,p),++g.openStreams):p.once("ready",()=>{A.onUpgrade(null,null,p),++g.openStreams}),p.once("close",()=>{g.openStreams-=1,g.openStreams===0&&e.unref()}),!0;u[yye]=n,u[wye]="https";let h=i==="PUT"||i==="POST"||i==="PATCH";r&&typeof r.read=="function"&&r.read(0);let m=Ce.bodyLength(r);if(m==null&&(m=A.contentLength),(m===0||!h)&&(m=null),XP(i)&&m>0&&A.contentLength!=null&&A.contentLength!==m){if(t[CC])return xi(t,A,new nc),!1;process.emitWarning(new nc)}m!=null&&(re(r,"no body must not have content length"),u[bye]=`${m}`),e.ref();let f=i==="GET"||i==="HEAD";return c?(u[Nye]="100-continue",p=e.request(u,{endStream:f,signal:l}),p.once("continue",B)):(p=e.request(u,{endStream:f,signal:l}),B()),++g.openStreams,p.once("response",b=>{let{[Rye]:I,...C}=b;A.onHeaders(Number(I),C,p.resume.bind(p),"")===!1&&p.pause()}),p.once("end",()=>{A.onComplete([])}),p.on("data",b=>{A.onData(b)===!1&&p.pause()}),p.once("close",()=>{g.openStreams-=1,g.openStreams===0&&e.unref()}),p.once("error",function(b){t[Mn]&&!t[Mn].destroyed&&!this.closed&&!this.destroyed&&(g.streams-=1,Ce.destroy(p,b))}),p.once("frameError",(b,I)=>{let C=new Xa(`HTTP/2: "frameError" received - type ${b}, code ${I}`);xi(t,A,C),t[Mn]&&!t[Mn].destroyed&&!this.closed&&!this.destroyed&&(g.streams-=1,Ce.destroy(p,C))}),!0;function B(){r?Ce.isBuffer(r)?(re(m===r.byteLength,"buffer body must have content length"),p.cork(),p.write(r),p.uncork(),p.end(),A.onBodySent(r),A.onRequestSent()):Ce.isBlobLike(r)?typeof r.stream=="function"?qI({client:t,request:A,contentLength:m,h2stream:p,expectsPayload:h,body:r.stream(),socket:t[SA],header:""}):KP({body:r,client:t,request:A,contentLength:m,expectsPayload:h,h2stream:p,header:"",socket:t[SA]}):Ce.isStream(r)?ZP({body:r,client:t,request:A,contentLength:m,expectsPayload:h,socket:t[SA],h2stream:p,header:""}):Ce.isIterable(r)?qI({body:r,client:t,request:A,contentLength:m,expectsPayload:h,header:"",h2stream:p,socket:t[SA]}):re(!1):A.onRequestSent()}a(B,"writeBodyH2")}a(_ye,"writeH2");function ZP({h2stream:t,body:e,client:A,request:r,socket:i,contentLength:n,header:s,expectsPayload:o}){if(re(n!==0||A[yA]===0,"stream body cannot be pipelined"),A[Ka]==="h2"){let m=function(f){r.onBodySent(f)};a(m,"onPipeData");let h=tye(e,t,f=>{f?(Ce.destroy(e,f),Ce.destroy(t,f)):r.onRequestSent()});h.on("data",m),h.once("end",()=>{h.removeListener("data",m),Ce.destroy(h)});return}let c=!1,l=new HI({socket:i,request:r,contentLength:n,client:A,expectsPayload:o,header:s}),d=a(function(h){if(!c)try{!l.write(h)&&this.pause&&this.pause()}catch(m){Ce.destroy(this,m)}},"onData"),u=a(function(){c||e.resume&&e.resume()},"onDrain"),p=a(function(){if(c)return;let h=new w6;queueMicrotask(()=>g(h))},"onAbort"),g=a(function(h){if(!c){if(c=!0,re(i.destroyed||i[sc]&&A[yA]<=1),i.off("drain",u).off("error",g),e.removeListener("data",d).removeListener("end",g).removeListener("error",g).removeListener("close",p),!h)try{l.end()}catch(m){h=m}l.destroy(h),h&&(h.code!=="UND_ERR_INFO"||h.message!=="reset")?Ce.destroy(e,h):Ce.destroy(e)}},"onFinished");e.on("data",d).on("end",g).on("error",g).on("close",p),e.resume&&e.resume(),i.on("drain",u).on("error",g)}a(ZP,"writeStream");async function KP({h2stream:t,body:e,client:A,request:r,socket:i,contentLength:n,header:s,expectsPayload:o}){re(n===e.size,"blob body must have content length");let c=A[Ka]==="h2";try{if(n!=null&&n!==e.size)throw new nc;let l=Buffer.from(await e.arrayBuffer());c?(t.cork(),t.write(l),t.uncork()):(i.cork(),i.write(`${s}content-length: ${n}\r
|
||||
\r
|
||||
`,"latin1"),i.write(l),i.uncork()),r.onBodySent(l),r.onRequestSent(),o||(i[Si]=!0),_n(A)}catch(l){Ce.destroy(c?t:i,l)}}a(KP,"writeBlob");async function qI({h2stream:t,body:e,client:A,request:r,socket:i,contentLength:n,header:s,expectsPayload:o}){re(n!==0||A[yA]===0,"iterator body cannot be pipelined");let c=null;function l(){if(c){let p=c;c=null,p()}}a(l,"onDrain");let d=a(()=>new Promise((p,g)=>{re(c===null),i[Wr]?g(i[Wr]):c=p}),"waitForDrain");if(A[Ka]==="h2"){t.on("close",l).on("drain",l);try{for await(let p of e){if(i[Wr])throw i[Wr];let g=t.write(p);r.onBodySent(p),g||await d()}}catch(p){t.destroy(p)}finally{r.onRequestSent(),t.end(),t.off("close",l).off("drain",l)}return}i.on("close",l).on("drain",l);let u=new HI({socket:i,request:r,contentLength:n,client:A,expectsPayload:o,header:s});try{for await(let p of e){if(i[Wr])throw i[Wr];u.write(p)||await d()}u.end()}catch(p){u.destroy(p)}finally{i.off("close",l).off("drain",l)}}a(qI,"writeIterable");var HI=class{static{a(this,"AsyncWriter")}constructor({socket:e,request:A,contentLength:r,client:i,expectsPayload:n,header:s}){this.socket=e,this.request=A,this.contentLength=r,this.client=i,this.bytesWritten=0,this.expectsPayload=n,this.header=s,e[sc]=!0}write(e){let{socket:A,request:r,contentLength:i,client:n,bytesWritten:s,expectsPayload:o,header:c}=this;if(A[Wr])throw A[Wr];if(A.destroyed)return!1;let l=Buffer.byteLength(e);if(!l)return!0;if(i!==null&&s+l>i){if(n[CC])throw new nc;process.emitWarning(new nc)}A.cork(),s===0&&(o||(A[Si]=!0),i===null?A.write(`${c}transfer-encoding: chunked\r
|
||||
`,"latin1"):A.write(`${c}content-length: ${i}\r
|
||||
\r
|
||||
`,"latin1")),i===null&&A.write(`\r
|
||||
${l.toString(16)}\r
|
||||
`,"latin1"),this.bytesWritten+=l;let d=A.write(e);return A.uncork(),r.onBodySent(e),d||A[DA].timeout&&A[DA].timeoutType===Kp&&A[DA].timeout.refresh&&A[DA].timeout.refresh(),d}end(){let{socket:e,contentLength:A,client:r,bytesWritten:i,expectsPayload:n,header:s,request:o}=this;if(o.onRequestSent(),e[sc]=!1,e[Wr])throw e[Wr];if(!e.destroyed){if(i===0?n?e.write(`${s}content-length: 0\r
|
||||
\r
|
||||
`,"latin1"):e.write(`${s}\r
|
||||
`,"latin1"):A===null&&e.write(`\r
|
||||
0\r
|
||||
\r
|
||||
`,"latin1"),A!==null&&i!==A){if(r[CC])throw new nc;process.emitWarning(new nc)}e[DA].timeout&&e[DA].timeoutType===Kp&&e[DA].timeout.refresh&&e[DA].timeout.refresh(),_n(r)}}destroy(e){let{socket:A,client:r}=this;A[sc]=!1,e&&(re(r[yA]<=1,"pipeline should only contain this request"),Ce.destroy(A,e))}};function xi(t,e,A){try{e.onError(A),re(e.aborted)}catch(r){t.emit("error",r)}}a(xi,"errorRequest");$P.exports=f6});var tq=E((qpt,eq)=>{"use strict";var GI=class{static{a(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)}};eq.exports=class{static{a(this,"FixedQueue")}constructor(){this.head=this.tail=new GI}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new GI),this.head.push(e)}shift(){let e=this.tail,A=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next),A}}});var rq=E((Ypt,Aq)=>{var{kFree:Oye,kConnected:Pye,kPending:qye,kQueued:Hye,kRunning:Yye,kSize:Gye}=Wt(),Gd=Symbol("pool"),b6=class{static{a(this,"PoolStats")}constructor(e){this[Gd]=e}get connected(){return this[Gd][Pye]}get free(){return this[Gd][Oye]}get pending(){return this[Gd][qye]}get queued(){return this[Gd][Hye]}get running(){return this[Gd][Yye]}get size(){return this[Gd][Gye]}};Aq.exports=b6});var v6=E((Jpt,pq)=>{"use strict";var Jye=dC(),Vye=tq(),{kConnected:N6,kSize:iq,kRunning:nq,kPending:sq,kQueued:BC,kBusy:Wye,kFree:zye,kUrl:jye,kClose:Xye,kDestroy:Zye,kDispatch:Kye}=Wt(),$ye=rq(),Ki=Symbol("clients"),vi=Symbol("needDrain"),IC=Symbol("queue"),R6=Symbol("closed resolve"),D6=Symbol("onDrain"),aq=Symbol("onConnect"),oq=Symbol("onDisconnect"),cq=Symbol("onConnectionError"),S6=Symbol("get dispatcher"),dq=Symbol("add client"),uq=Symbol("remove client"),lq=Symbol("stats"),x6=class extends Jye{static{a(this,"PoolBase")}constructor(){super(),this[IC]=new Vye,this[Ki]=[],this[BC]=0;let e=this;this[D6]=a(function(r,i){let n=e[IC],s=!1;for(;!s;){let o=n.shift();if(!o)break;e[BC]--,s=!this.dispatch(o.opts,o.handler)}this[vi]=s,!this[vi]&&e[vi]&&(e[vi]=!1,e.emit("drain",r,[e,...i])),e[R6]&&n.isEmpty()&&Promise.all(e[Ki].map(o=>o.close())).then(e[R6])},"onDrain"),this[aq]=(A,r)=>{e.emit("connect",A,[e,...r])},this[oq]=(A,r,i)=>{e.emit("disconnect",A,[e,...r],i)},this[cq]=(A,r,i)=>{e.emit("connectionError",A,[e,...r],i)},this[lq]=new $ye(this)}get[Wye](){return this[vi]}get[N6](){return this[Ki].filter(e=>e[N6]).length}get[zye](){return this[Ki].filter(e=>e[N6]&&!e[vi]).length}get[sq](){let e=this[BC];for(let{[sq]:A}of this[Ki])e+=A;return e}get[nq](){let e=0;for(let{[nq]:A}of this[Ki])e+=A;return e}get[iq](){let e=this[BC];for(let{[iq]:A}of this[Ki])e+=A;return e}get stats(){return this[lq]}async[Xye](){return this[IC].isEmpty()?Promise.all(this[Ki].map(e=>e.close())):new Promise(e=>{this[R6]=e})}async[Zye](e){for(;;){let A=this[IC].shift();if(!A)break;A.handler.onError(e)}return Promise.all(this[Ki].map(A=>A.destroy(e)))}[Kye](e,A){let r=this[S6]();return r?r.dispatch(e,A)||(r[vi]=!0,this[vi]=!this[S6]()):(this[vi]=!0,this[IC].push({opts:e,handler:A}),this[BC]++),!this[vi]}[dq](e){return e.on("drain",this[D6]).on("connect",this[aq]).on("disconnect",this[oq]).on("connectionError",this[cq]),this[Ki].push(e),this[vi]&&process.nextTick(()=>{this[vi]&&this[D6](e[jye],[this,e])}),this}[uq](e){e.close(()=>{let A=this[Ki].indexOf(e);A!==-1&&this[Ki].splice(A,1)}),this[vi]=this[Ki].some(A=>!A[vi]&&A.closed!==!0&&A.destroyed!==!0)}};pq.exports={PoolBase:x6,kClients:Ki,kNeedDrain:vi,kAddClient:dq,kRemoveClient:uq,kGetDispatcher:S6}});var $p=E((Wpt,mq)=>{"use strict";var{PoolBase:e2e,kClients:gq,kNeedDrain:t2e,kAddClient:A2e,kGetDispatcher:r2e}=v6(),i2e=QC(),{InvalidArgumentError:k6}=Pt(),F6=ct(),{kUrl:hq,kInterceptors:n2e}=Wt(),s2e=uC(),L6=Symbol("options"),U6=Symbol("connections"),Eq=Symbol("factory");function a2e(t,e){return new i2e(t,e)}a(a2e,"defaultFactory");var T6=class extends e2e{static{a(this,"Pool")}constructor(e,{connections:A,factory:r=a2e,connect:i,connectTimeout:n,tls:s,maxCachedSessions:o,socketPath:c,autoSelectFamily:l,autoSelectFamilyAttemptTimeout:d,allowH2:u,...p}={}){if(super(),A!=null&&(!Number.isFinite(A)||A<0))throw new k6("invalid connections");if(typeof r!="function")throw new k6("factory must be a function.");if(i!=null&&typeof i!="function"&&typeof i!="object")throw new k6("connect must be a function or an object");typeof i!="function"&&(i=s2e({...s,maxCachedSessions:o,allowH2:u,socketPath:c,timeout:n,...F6.nodeHasAutoSelectFamily&&l?{autoSelectFamily:l,autoSelectFamilyAttemptTimeout:d}:void 0,...i})),this[n2e]=p.interceptors&&p.interceptors.Pool&&Array.isArray(p.interceptors.Pool)?p.interceptors.Pool:[],this[U6]=A||null,this[hq]=F6.parseOrigin(e),this[L6]={...F6.dee
Line truncated
|
||||
${r.count} ${r.noun} ${r.is} pending:
|
||||
|
||||
${e.format(A)}
|
||||
`.trim())}};jH.exports=QS});var AY=E((_gt,tY)=>{"use strict";var{kProxy:obe,kClose:cbe,kDestroy:lbe,kInterceptors:dbe}=Wt(),{URL:ZH}=require("url"),KH=wC(),ube=$p(),pbe=dC(),{InvalidArgumentError:SC,RequestAbortedError:gbe}=Pt(),$H=uC(),RC=Symbol("proxy agent"),d1=Symbol("proxy client"),DC=Symbol("proxy headers"),BS=Symbol("request tls settings"),hbe=Symbol("proxy tls settings"),eY=Symbol("connect endpoint function");function Ebe(t){return t==="https:"?443:80}a(Ebe,"defaultProtocolPort");function mbe(t){if(typeof t=="string"&&(t={uri:t}),!t||!t.uri)throw new SC("Proxy opts.uri is mandatory");return{uri:t.uri,protocol:t.protocol||"https"}}a(mbe,"buildProxyOptions");function Cbe(t,e){return new ube(t,e)}a(Cbe,"defaultFactory");var IS=class extends pbe{static{a(this,"ProxyAgent")}constructor(e){if(super(e),this[obe]=mbe(e),this[RC]=new KH(e),this[dbe]=e.interceptors&&e.interceptors.ProxyAgent&&Array.isArray(e.interceptors.ProxyAgent)?e.interceptors.ProxyAgent:[],typeof e=="string"&&(e={uri:e}),!e||!e.uri)throw new SC("Proxy opts.uri is mandatory");let{clientFactory:A=Cbe}=e;if(typeof A!="function")throw new SC("Proxy opts.clientFactory must be a function.");this[BS]=e.requestTls,this[hbe]=e.proxyTls,this[DC]=e.headers||{};let r=new ZH(e.uri),{origin:i,port:n,host:s,username:o,password:c}=r;if(e.auth&&e.token)throw new SC("opts.auth cannot be used in combination with opts.token");e.auth?this[DC]["proxy-authorization"]=`Basic ${e.auth}`:e.token?this[DC]["proxy-authorization"]=e.token:o&&c&&(this[DC]["proxy-authorization"]=`Basic ${Buffer.from(`${decodeURIComponent(o)}:${decodeURIComponent(c)}`).toString("base64")}`);let l=$H({...e.proxyTls});this[eY]=$H({...e.requestTls}),this[d1]=A(r,{connect:l}),this[RC]=new KH({...e,connect:async(d,u)=>{let p=d.host;d.port||(p+=`:${Ebe(d.protocol)}`);try{let{socket:g,statusCode:h}=await this[d1].connect({origin:i,port:n,path:p,signal:d.signal,headers:{...this[DC],host:s}});if(h!==200&&(g.on("error",()=>{}).destroy(),u(new gbe(`Proxy response (${h}) !== 200 when HTTP Tunneling`))),d.protocol!=="https:"){u(null,g);return}let m;this[BS]?m=this[BS].servername:m=d.servername,this[eY]({...d,servername:m,httpSocket:g},u)}catch(g){u(g)}}})}dispatch(e,A){let{host:r}=new ZH(e.origin),i=fbe(e.headers);return Qbe(i),this[RC].dispatch({...e,headers:{...i,host:r}},A)}async[cbe](){await this[RC].close(),await this[d1].close()}async[lbe](){await this[RC].destroy(),await this[d1].destroy()}};function fbe(t){if(Array.isArray(t)){let e={};for(let A=0;A<t.length;A+=2)e[t[A]]=t[A+1];return e}return t}a(fbe,"buildHeaders");function Qbe(t){if(t&&Object.keys(t).find(A=>A.toLowerCase()==="proxy-authorization"))throw new SC("Proxy-Authorization should be sent in ProxyAgent constructor")}a(Qbe,"throwIfProxyAuthIsSent");tY.exports=IS});var aY=E((Pgt,sY)=>{var Xd=require("assert"),{kRetryHandlerDefaultRetry:rY}=Wt(),{RequestRetryError:u1}=Pt(),{isDisturbed:iY,parseHeaders:Bbe,parseRangeHeader:nY}=ct();function Ibe(t){let e=Date.now();return new Date(t).getTime()-e}a(Ibe,"calculateRetryAfterHeader");var yS=class t{static{a(this,"RetryHandler")}constructor(e,A){let{retryOptions:r,...i}=e,{retry:n,maxRetries:s,maxTimeout:o,minTimeout:c,timeoutFactor:l,methods:d,errorCodes:u,retryAfter:p,statusCodes:g}=r??{};this.dispatch=A.dispatch,this.handler=A.handler,this.opts=i,this.abort=null,this.aborted=!1,this.retryOpts={retry:n??t[rY],retryAfter:p??!0,maxTimeout:o??30*1e3,timeout:c??500,timeoutFactor:l??2,maxRetries:s??5,methods:d??["GET","HEAD","OPTIONS","PUT","DELETE","TRACE"],statusCodes:g??[500,502,503,504,429],errorCodes:u??["ECONNRESET","ECONNREFUSED","ENOTFOUND","ENETDOWN","ENETUNREACH","EHOSTDOWN","EHOSTUNREACH","EPIPE"]},this.retryCount=0,this.start=0,this.end=null,this.etag=null,this.resume=null,this.handler.onConnect(h=>{this.aborted=!0,this.abort?this.abort(h):this.reason=h})}onRequestSent(){this.handler.onRequestSent&&this.handler.onRequestSent()}onUpgrade(e,A,r){this.handler.onUpgrade&&this.handler.onUpgrade(e,A,r)}onConnect(e){this.aborted?e(this.reason):this.abort=e}onBodySent(e){if(this.handler.onBodySent)return this.handler.onBodySent(e)}static[rY](e,{state:A,opts:r},i){let{statusCode:n,code:s,headers:o}=e,{method:c,retryOptions:l}=r,{maxRetries:d,timeout:u,maxTimeout:p,timeoutFactor:g,statusCodes:h,errorCodes:m,methods:f}=l,{counter:B,currentTimeout:b}=A;if(b=b!=null&&b>0?b:u,s&&s!=="UND_ERR_REQ_RETRY"&&s!=="UND_ERR_SOCKET"&&!m.includes(s)){i(e);return}if(Array.isArray(f)&&!f.includes(c)){i(e);return}if(n!=null&&Array.isArray(h)&&!h.includes(n)){i(e);return}if(B>d){i(e);return}let I=o!=null&&o["retry-after"];I&&(I=Number(I),I=isNaN(I)?Ibe(I):I*1e3);let C=I>0?Math.min(I,p):Math.min(b*g**B,p);A.currentTimeout=C,setTimeout(()=>i(null),C)}onHeaders(e,A,r,i){let n=Bbe(A);if(this.retryCount+=1,e>=300)return this.abort(new u1("Request failed",e,{headers:n,count:this.retryCount})),!1;if(this.resume!=null){if(this.resume=null,e!==206)return!0;let o=nY(n["content-range"]);if(!o)return this.abort(new u1("
Line truncated
|
||||
|
||||
Error Code : ${s.statusCode}
|
||||
|
||||
Error Message: ${s.message}`)})).result)===null||a===void 0?void 0:a.value;if(!n)throw new Error("Response json body do not have ID Token field");return n})}static getIDToken(e){return H6(this,void 0,void 0,function*(){try{let a=t.getIDTokenUrl();if(e){let r=encodeURIComponent(e);a=`${a}&audience=${r}`}(0,U6.debug)(`ID token url is ${a}`);let i=yield t.getCall(a);return(0,U6.setSecret)(i),i}catch(a){throw new Error(`Error message: ${a.message}`)}})}};wn.OidcClient=em});var rm=E(Wt=>{"use strict";var tm=Wt&&Wt.__awaiter||function(t,e,a,i){function r(n){return n instanceof a?n:new a(function(s){s(n)})}return o(r,"adopt"),new(a||(a=Promise))(function(n,s){function p(c){try{d(i.next(c))}catch(u){s(u)}}o(p,"fulfilled");function l(c){try{d(i.throw(c))}catch(u){s(u)}}o(l,"rejected");function d(c){c.done?n(c.value):r(c.value).then(p,l)}o(d,"step"),d((i=i.apply(t,e||[])).next())})};Object.defineProperty(Wt,"__esModule",{value:!0});Wt.summary=Wt.markdownSummary=Wt.SUMMARY_DOCS_URL=Wt.SUMMARY_ENV_VAR=void 0;var AS=require("os"),am=require("fs"),{access:BS,appendFile:MS,writeFile:LS}=am.promises;Wt.SUMMARY_ENV_VAR="GITHUB_STEP_SUMMARY";Wt.SUMMARY_DOCS_URL="https://docs.github.com/actions/using-workflows/workflow-commands-for-github-actions#adding-a-job-summary";var im=class{static{o(this,"Summary")}constructor(){this._buffer=""}filePath(){return tm(this,void 0,void 0,function*(){if(this._filePath)return this._filePath;let e=process.env[Wt.SUMMARY_ENV_VAR];if(!e)throw new Error(`Unable to find environment variable for $${Wt.SUMMARY_ENV_VAR}. Check if your runtime environment supports job summaries.`);try{yield BS(e,am.constants.R_OK|am.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,a,i={}){let r=Object.entries(i).map(([n,s])=>` ${n}="${s}"`).join("");return a?`<${e}${r}>${a}</${e}>`:`<${e}${r}>`}write(e){return tm(this,void 0,void 0,function*(){let a=!!e?.overwrite,i=yield this.filePath();return yield(a?LS:MS)(i,this._buffer,{encoding:"utf8"}),this.emptyBuffer()})}clear(){return tm(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,a=!1){return this._buffer+=e,a?this.addEOL():this}addEOL(){return this.addRaw(AS.EOL)}addCodeBlock(e,a){let i=Object.assign({},a&&{lang:a}),r=this.wrap("pre",this.wrap("code",e),i);return this.addRaw(r).addEOL()}addList(e,a=!1){let i=a?"ol":"ul",r=e.map(s=>this.wrap("li",s)).join(""),n=this.wrap(i,r);return this.addRaw(n).addEOL()}addTable(e){let a=e.map(r=>{let n=r.map(s=>{if(typeof s=="string")return this.wrap("td",s);let{header:p,data:l,colspan:d,rowspan:c}=s,u=p?"th":"td",m=Object.assign(Object.assign({},d&&{colspan:d}),c&&{rowspan:c});return this.wrap(u,l,m)}).join("");return this.wrap("tr",n)}).join(""),i=this.wrap("table",a);return this.addRaw(i).addEOL()}addDetails(e,a){let i=this.wrap("details",this.wrap("summary",e)+a);return this.addRaw(i).addEOL()}addImage(e,a,i){let{width:r,height:n}=i||{},s=Object.assign(Object.assign({},r&&{width:r}),n&&{height:n}),p=this.wrap("img",null,Object.assign({src:e,alt:a},s));return this.addRaw(p).addEOL()}addHeading(e,a){let i=`h${a}`,r=["h1","h2","h3","h4","h5","h6"].includes(i)?i:"h1",n=this.wrap(r,e);return this.addRaw(n).addEOL()}addSeparator(){let e=this.wrap("hr",null);return this.addRaw(e).addEOL()}addBreak(){let e=this.wrap("br",null);return this.addRaw(e).addEOL()}addQuote(e,a){let i=Object.assign({},a&&{cite:a}),r=this.wrap("blockquote",e,i);return this.addRaw(r).addEOL()}addLink(e,a){let i=this.wrap("a",e,{href:a});return this.addRaw(i).addEOL()}},V6=new im;Wt.markdownSummary=V6;Wt.summary=V6});var $6=E(Xt=>{"use strict";var qS=Xt&&Xt.__createBinding||(Object.create?function(t,e,a,i){i===void 0&&(i=a);var r=Object.getOwnPropertyDescriptor(e,a);(!r||("get"in r?!e.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:function(){return e[a]}}),Object.defineProperty(t,i,r)}:function(t,e,a,i){i===void 0&&(i=a),t[i]=e[a]}),zS=Xt&&Xt.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),kS=Xt&&Xt.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var a in t)a!=="default"&&Object.prototype.hasOwnProperty.call(t,a)&&qS(e,t,a);return zS(e,t),e};Object.defineProperty(Xt,"__esModule",{value:!0});Xt.toPlatformPath=Xt.toWin32Path=Xt.toPosixPath=void 0;var jS=kS(require("path"));function HS(t){return t.replace(/[\\]/g,"/")}o(HS,"toPosixPath");Xt.toPosixPath=HS;function US(t){return t.replace(/[/]/g,"\\")}o(US,"toWin32Path");Xt.toWin32Path=US;function FS(t){return t.replace(/[/\\]/g,jS.sep)}o(FS,"toPlatformPath");Xt.toPlatformPath=FS});var sm=E(J=>{"use strict";var VS=J&&J.__createBinding||(Object.create?function(t,e,a,i){i===void 0&&(i=a),Line truncated
|
||||
`);return{name:e,version:a}}),"getLinuxInfo");he.platform=l4.default.platform();he.arch=l4.default.arch();he.isWindows=he.platform==="win32";he.isMacOS=he.platform==="darwin";he.isLinux=he.platform==="linux";function NC(){return tl(this,void 0,void 0,function*(){return Object.assign(Object.assign({},yield he.isWindows?xC():he.isMacOS?bC():wC()),{platform:he.platform,arch:he.arch,isWindows:he.isWindows,isMacOS:he.isMacOS,isLinux:he.isLinux})})}o(NC,"getDetails");he.getDetails=NC});var rt=E(W=>{"use strict";var _C=W&&W.__createBinding||(Object.create?function(t,e,a,i){i===void 0&&(i=a);var r=Object.getOwnPropertyDescriptor(e,a);(!r||("get"in r?!e.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:function(){return e[a]}}),Object.defineProperty(t,i,r)}:function(t,e,a,i){i===void 0&&(i=a),t[i]=e[a]}),SC=W&&W.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),cm=W&&W.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var a in t)a!=="default"&&Object.prototype.hasOwnProperty.call(t,a)&&_C(e,t,a);return SC(e,t),e},c4=W&&W.__awaiter||function(t,e,a,i){function r(n){return n instanceof a?n:new a(function(s){s(n)})}return o(r,"adopt"),new(a||(a=Promise))(function(n,s){function p(c){try{d(i.next(c))}catch(u){s(u)}}o(p,"fulfilled");function l(c){try{d(i.throw(c))}catch(u){s(u)}}o(l,"rejected");function d(c){c.done?n(c.value):r(c.value).then(p,l)}o(d,"step"),d((i=i.apply(t,e||[])).next())})};Object.defineProperty(W,"__esModule",{value:!0});W.platform=W.toPlatformPath=W.toWin32Path=W.toPosixPath=W.markdownSummary=W.summary=W.getIDToken=W.getState=W.saveState=W.group=W.endGroup=W.startGroup=W.info=W.notice=W.warning=W.error=W.debug=W.isDebug=W.setFailed=W.setCommandEcho=W.setOutput=W.getBooleanInput=W.getMultilineInput=W.getInput=W.addPath=W.setSecret=W.exportVariable=W.ExitCode=void 0;var ba=R6(),Dr=D6(),Sn=Fp(),u4=cm(require("os")),CC=cm(require("path")),EC=F6(),dm;(function(t){t[t.Success=0]="Success",t[t.Failure=1]="Failure"})(dm||(W.ExitCode=dm={}));function TC(t,e){let a=(0,Sn.toCommandValue)(e);if(process.env[t]=a,process.env.GITHUB_ENV||"")return(0,Dr.issueFileCommand)("ENV",(0,Dr.prepareKeyValueMessage)(t,e));(0,ba.issueCommand)("set-env",{name:t},a)}o(TC,"exportVariable");W.exportVariable=TC;function OC(t){(0,ba.issueCommand)("add-mask",{},t)}o(OC,"setSecret");W.setSecret=OC;function RC(t){process.env.GITHUB_PATH||""?(0,Dr.issueFileCommand)("PATH",t):(0,ba.issueCommand)("add-path",{},t),process.env.PATH=`${t}${CC.delimiter}${process.env.PATH}`}o(RC,"addPath");W.addPath=RC;function um(t,e){let a=process.env[`INPUT_${t.replace(/ /g,"_").toUpperCase()}`]||"";if(e&&e.required&&!a)throw new Error(`Input required and not supplied: ${t}`);return e&&e.trimWhitespace===!1?a:a.trim()}o(um,"getInput");W.getInput=um;function PC(t,e){let a=um(t,e).split(`
|
||||
`).filter(i=>i!=="");return e&&e.trimWhitespace===!1?a:a.map(i=>i.trim())}o(PC,"getMultilineInput");W.getMultilineInput=PC;function IC(t,e){let a=["true","True","TRUE"],i=["false","False","FALSE"],r=um(t,e);if(a.includes(r))return!0;if(i.includes(r))return!1;throw new TypeError(`Input does not meet YAML 1.2 "Core Schema" specification: ${t}
|
||||
Support boolean input list: \`true | True | TRUE | false | False | FALSE\``)}o(IC,"getBooleanInput");W.getBooleanInput=IC;function DC(t,e){if(process.env.GITHUB_OUTPUT||"")return(0,Dr.issueFileCommand)("OUTPUT",(0,Dr.prepareKeyValueMessage)(t,e));process.stdout.write(u4.EOL),(0,ba.issueCommand)("set-output",{name:t},(0,Sn.toCommandValue)(e))}o(DC,"setOutput");W.setOutput=DC;function AC(t){(0,ba.issue)("echo",t?"on":"off")}o(AC,"setCommandEcho");W.setCommandEcho=AC;function BC(t){process.exitCode=dm.Failure,m4(t)}o(BC,"setFailed");W.setFailed=BC;function MC(){return process.env.RUNNER_DEBUG==="1"}o(MC,"isDebug");W.isDebug=MC;function LC(t){(0,ba.issueCommand)("debug",{},t)}o(LC,"debug");W.debug=LC;function m4(t,e={}){(0,ba.issueCommand)("error",(0,Sn.toCommandProperties)(e),t instanceof Error?t.toString():t)}o(m4,"error");W.error=m4;function qC(t,e={}){(0,ba.issueCommand)("warning",(0,Sn.toCommandProperties)(e),t instanceof Error?t.toString():t)}o(qC,"warning");W.warning=qC;function zC(t,e={}){(0,ba.issueCommand)("notice",(0,Sn.toCommandProperties)(e),t instanceof Error?t.toString():t)}o(zC,"notice");W.notice=zC;function kC(t){process.stdout.write(t+u4.EOL)}o(kC,"info");W.info=kC;function f4(t){(0,ba.issue)("group",t)}o(f4,"startGroup");W.startGroup=f4;function h4(){(0,ba.issue)("endgroup")}o(h4,"endGroup");W.endGroup=h4;function jC(t,e){return c4(this,void 0,void 0,function*(){f4(t);let a;try{a=yield e()}finally{h4()}return a})}o(jC,"group");W.group=jC;function HC(t,e){if(process.env.GITHUB_STATE||"")return(0,Dr.issueFileCommand)("STATE",(0,Dr.prepareKeyValueMessage)(t,e));(0,ba.issueCommand)("save-state",{name:t},(0,Sn.toCommandValue)(e))}o(HC,"saveState");W.saveState=HC;function UC(t){return process.env[`STATE_${t}`]||""}o(UC,"getState");W.getState=UC;function FC(t){return c4(this,void 0,void 0,function*(){return yield EC.OidcClient.getIDToken(t)})}o(FC,"getIDToken");W.getIDToken=FC;var VC=rm();Object.defineProperty(W,"summary",{enumerable:!0,get:function(){return VC.summary}});var $C=rm();Object.defineProperty(W,"markdownSummary",{enumerable:!0,get:function(){return $C.markdownSummary}});var mm=$6();Object.defineProperty(W,"toPosixPath",{enumerable:!0,get:function(){return mm.toPosixPath}});Object.defineProperty(W,"toWin32Path",{enumerable:!0,get:function(){return mm.toWin32Path}});Object.defineProperty(W,"toPlatformPath",{enumerable:!0,get:function(){return mm.toPlatformPath}});W.platform=cm(d4())});var g4=E(ai=>{"use strict";var GC=ai&&ai.__createBinding||(Object.create?function(t,e,a,i){i===void 0&&(i=a),Object.defineProperty(t,i,{enumerable:!0,get:function(){return e[a]}})}:function(t,e,a,i){i===void 0&&(i=a),t[i]=e[a]}),WC=ai&&ai.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),XC=ai&&ai.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var a in t)a!=="default"&&Object.hasOwnProperty.call(t,a)&&GC(e,t,a);return WC(e,t),e};Object.defineProperty(ai,"__esModule",{value:!0});ai.getOptions=void 0;var fm=XC(rt());function KC(t){let e={followSymbolicLinks:!0,implicitDescendants:!0,omitBrokenSymbolicLinks:!0};return t&&(typeof t.followSymbolicLinks=="boolean"&&(e.followSymbolicLinks=t.followSymbolicLinks,fm.debug(`followSymbolicLinks '${e.followSymbolicLinks}'`)),typeof t.implicitDescendants=="boolean"&&(e.implicitDescendants=t.implicitDescendants,fm.debug(`implicitDescendants '${e.implicitDescendants}'`)),typeof t.omitBrokenSymbolicLinks=="boolean"&&(e.omitBrokenSymbolicLinks=t.omitBrokenSymbolicLinks,fm.debug(`omitBrokenSymbolicLinks '${e.omitBrokenSymbolicLinks}'`))),e}o(KC,"getOptions");ai.getOptions=KC});var il=E(Ve=>{"use strict";var QC=Ve&&Ve.__createBinding||(Object.create?function(t,e,a,i){i===void 0&&(i=a),Object.defineProperty(t,i,{enumerable:!0,get:function(){return e[a]}})}:function(t,e,a,i){i===void 0&&(i=a),t[i]=e[a]}),YC=Ve&&Ve.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),JC=Ve&&Ve.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var a in t)a!=="default"&&Object.hasOwnProperty.call(t,a)&&QC(e,t,a);return YC(e,t),e},ZC=Ve&&Ve.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Ve,"__esModule",{value:!0});Ve.safeTrimTrailingSeparator=Ve.normalizeSeparators=Ve.hasRoot=Ve.hasAbsoluteRoot=Ve.ensureAbsoluteRoot=Ve.dirname=void 0;var al=JC(require("path")),Ar=ZC(require("assert")),Qi=process.platform==="win32";function eE(t){if(t=gm(t),Qi&&/^\\\\[^\\]+(\\[^\\]+)?$/.test(t))return t;let e=al.dirname(t);return Qi&&/^\\\\[^\\]+\\[^\\]+\\$/.test(e)&&(e=gm(e)),e}o(eE,"dirname");Ve.dirname=eE;function tE(t,e){if(Ar.default(t,"ensureAbsoluteRoot parameter 'root' must not be empty"),Ar.default(e,"ensureAbsoluteRoot parameter 'itemPath' must not be empty"),hm(e))return e;if(Qi){if(e.match(/^[A-Z]:[^\\/]|^[A-Z]:$/i)){let a=process.cwd();rLine truncated
|
||||
%s`,g,g,I,i);var _=I.type==="*"?bm:I.type==="?"?xm:"\\"+I.type;r=!0,i=i.slice(0,I.reStart)+_+"\\("+g}h(),n&&(i+="\\\\");var O=!1;switch(i.charAt(0)){case"[":case".":case"(":O=!0}for(var N=p.length-1;N>-1;N--){var D=p[N],C=i.slice(0,D.reStart),P=i.slice(D.reStart,D.reEnd-8),B=i.slice(D.reEnd-8,D.reEnd),j=i.slice(D.reEnd);B+=j;var pe=C.split("(").length-1,ge=j;for(x=0;x<pe;x++)ge=ge.replace(/\)[+*?]?/,"");j=ge;var Y="";j===""&&e!==nl&&(Y="$");var at=C+P+j+Y+B;i=at}if(i!==""&&r&&(i="(?=.)"+i),O&&(i=m+i),e===nl)return[i,r];if(!r)return PE(t);var fe=a.nocase?"i":"";try{var za=new RegExp("^"+i+"$",fe)}catch{return new RegExp("$.")}return za._glob=t,za._src=i,za}o(OE,"parse");pa.makeRe=function(t,e){return new It(t,e||{}).makeRe()};It.prototype.makeRe=RE;function RE(){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,a=e.noglobstar?bm:e.dot?wE:NE,i=e.nocase?"i":"",r=t.map(function(n){return n.map(function(s){return s===wm?a:typeof s=="string"?IE(s):s._src}).join("\\/")}).join("|");r="^(?:"+r+")$",this.negate&&(r="^(?!"+r+").*$");try{this.regexp=new RegExp(r,i)}catch{this.regexp=!1}return this.regexp}o(RE,"makeRe");pa.match=function(t,e,a){a=a||{};var i=new It(e,a);return t=t.filter(function(r){return i.match(r)}),i.options.nonull&&!t.length&&t.push(e),t};It.prototype.match=o(function(e,a){if(typeof a>"u"&&(a=this.partial),this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return e==="";if(e==="/"&&a)return!0;var i=this.options;so.sep!=="/"&&(e=e.split(so.sep).join("/")),e=e.split(q4),this.debug(this.pattern,"split",e);var r=this.set;this.debug(this.pattern,"set",r);var n,s;for(s=e.length-1;s>=0&&(n=e[s],!n);s--);for(s=0;s<r.length;s++){var p=r[s],l=e;i.matchBase&&p.length===1&&(l=[n]);var d=this.matchOne(l,p,a);if(d)return i.flipNegate?!0:!this.negate}return i.flipNegate?!1:this.negate},"match");It.prototype.matchOne=function(t,e,a){var i=this.options;this.debug("matchOne",{this:this,file:t,pattern:e}),this.debug("matchOne",t.length,e.length);for(var r=0,n=0,s=t.length,p=e.length;r<s&&n<p;r++,n++){this.debug("matchOne loop");var l=e[n],d=t[r];if(this.debug(e,l,d),l===!1)return!1;if(l===wm){this.debug("GLOBSTAR",[e,l,d]);var c=r,u=n+1;if(u===p){for(this.debug("** at the end");r<s;r++)if(t[r]==="."||t[r]===".."||!i.dot&&t[r].charAt(0)===".")return!1;return!0}for(;c<s;){var m=t[c];if(this.debug(`
|
||||
globstar while`,t,c,e,u,m),this.matchOne(t.slice(c),e.slice(u),a))return this.debug("globstar found match!",c,s,m),!0;if(m==="."||m===".."||!i.dot&&m.charAt(0)==="."){this.debug("dot detected!",t,c,e,u);break}this.debug("globstar swallow a segment, and continue"),c++}return!!(a&&(this.debug(`
|
||||
>>> no match, partial?`,t,c,e,u),c===s))}var f;if(typeof l=="string"?(f=d===l,this.debug("string match",l,d,f)):(f=d.match(l),this.debug("pattern match",l,d,f)),!f)return!1}if(r===s&&n===p)return!0;if(r===s)return a;if(n===p)return r===s-1&&t[r]==="";throw new Error("wtf?")};function PE(t){return t.replace(/\\(.)/g,"$1")}o(PE,"globUnescape");function IE(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}o(IE,"regExpEscape")});var U4=E(wa=>{"use strict";var DE=wa&&wa.__createBinding||(Object.create?function(t,e,a,i){i===void 0&&(i=a),Object.defineProperty(t,i,{enumerable:!0,get:function(){return e[a]}})}:function(t,e,a,i){i===void 0&&(i=a),t[i]=e[a]}),AE=wa&&wa.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),H4=wa&&wa.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var a in t)a!=="default"&&Object.hasOwnProperty.call(t,a)&&DE(e,t,a);return AE(e,t),e},BE=wa&&wa.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(wa,"__esModule",{value:!0});wa.Path=void 0;var oo=H4(require("path")),Ji=H4(il()),po=BE(require("assert")),ME=process.platform==="win32",Nm=class{static{o(this,"Path")}constructor(e){if(this.segments=[],typeof e=="string")if(po.default(e,"Parameter 'itemPath' must not be empty"),e=Ji.safeTrimTrailingSeparator(e),!Ji.hasRoot(e))this.segments=e.split(oo.sep);else{let a=e,i=Ji.dirname(a);for(;i!==a;){let r=oo.basename(a);this.segments.unshift(r),a=i,i=Ji.dirname(a)}this.segments.unshift(a)}else{po.default(e.length>0,"Parameter 'itemPath' must not be an empty array");for(let a=0;a<e.length;a++){let i=e[a];po.default(i,"Parameter 'itemPath' must not contain any empty segments"),i=Ji.normalizeSeparators(e[a]),a===0&&Ji.hasRoot(i)?(i=Ji.safeTrimTrailingSeparator(i),po.default(i===Ji.dirname(i),"Parameter 'itemPath' root segment contains information for multiple segments"),this.segments.push(i)):(po.default(!i.includes(oo.sep),"Parameter 'itemPath' contains unexpected path separators"),this.segments.push(i))}}}toString(){let e=this.segments[0],a=e.endsWith(oo.sep)||ME&&/^[A-Z]:$/i.test(e);for(let i=1;i<this.segments.length;i++)a?a=!1:e+=oo.sep,e+=this.segments[i];return e}};wa.Path=Nm});var F4=E(Na=>{"use strict";var LE=Na&&Na.__createBinding||(Object.create?function(t,e,a,i){i===void 0&&(i=a),Object.defineProperty(t,i,{enumerable:!0,get:function(){return e[a]}})}:function(t,e,a,i){i===void 0&&(i=a),t[i]=e[a]}),qE=Na&&Na.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),Cm=Na&&Na.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var a in t)a!=="default"&&Object.hasOwnProperty.call(t,a)&&LE(e,t,a);return qE(e,t),e},zE=Na&&Na.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Na,"__esModule",{value:!0});Na.Pattern=void 0;var kE=Cm(require("os")),lo=Cm(require("path")),Zt=Cm(il()),Br=zE(require("assert")),jE=j4(),_m=rl(),ol=U4(),_i=process.platform==="win32",Sm=class t{static{o(this,"Pattern")}constructor(e,a=!1,i,r){this.negate=!1;let n;if(typeof e=="string")n=e.trim();else{i=i||[],Br.default(i.length,"Parameter 'segments' must not empty");let d=t.getLiteral(i[0]);Br.default(d&&Zt.hasAbsoluteRoot(d),"Parameter 'segments' first element must be a root path"),n=new ol.Path(i).toString().trim(),e&&(n=`!${n}`)}for(;n.startsWith("!");)this.negate=!this.negate,n=n.substr(1).trim();n=t.fixupPattern(n,r),this.segments=new ol.Path(n).segments,this.trailingSeparator=Zt.normalizeSeparators(n).endsWith(lo.sep),n=Zt.safeTrimTrailingSeparator(n);let s=!1,p=this.segments.map(d=>t.getLiteral(d)).filter(d=>!s&&!(s=d===""));this.searchPath=new ol.Path(p).toString(),this.rootRegExp=new RegExp(t.regExpEscape(p[0]),_i?"i":""),this.isImplicitPattern=a;let l={dot:!0,nobrace:!0,nocase:_i,nocomment:!0,noext:!0,nonegate:!0};n=_i?n.replace(/\\/g,"/"):n,this.minimatch=new jE.Minimatch(n,l)}match(e){return this.segments[this.segments.length-1]==="**"?(e=Zt.normalizeSeparators(e),!e.endsWith(lo.sep)&&this.isImplicitPattern===!1&&(e=`${e}${lo.sep}`)):e=Zt.safeTrimTrailingSeparator(e),this.minimatch.match(e)?this.trailingSeparator?_m.MatchKind.Directory:_m.MatchKind.All:_m.MatchKind.None}partialMatch(e){return e=Zt.safeTrimTrailingSeparator(e),Zt.dirname(e)===e?this.rootRegExp.test(e):this.minimatch.matchOne(e.split(_i?/\\+/:/\/+/),this.minimatch.set[0],!0)}static globEscape(e){return(_i?e:e.replace(/\\/g,"\\\\")).replace(/(\[)(?=[^/]+\])/g,"[[]").replace(/\?/g,"[?]").replace(/\*/g,"[*]")}static fixupPattern(e,a){Br.default(e,"pattern cannot be empty");let i=new ol.Path(e).segments.map(r=>t.getLiteral(r));if(Br.default(i.every((r,n)=>(r!=="."||n===0)&&r!==".."),`Invalid pattern '${e}'. Relative pathing '.' and '..' is not allowed.`),Br.default(!Zt.hasRoot(e)||i[0],`Invalid pattern '${e}'. Root segment must not contain globs.`),e=Zt.nor
Line truncated
|
||||
Error Message: ${s.message}`)})).result)===null||A===void 0?void 0:A.value;if(!n)throw new Error("Response json body do not have ID Token field");return n})}static getIDToken(e){return gJ(this,void 0,void 0,function*(){try{let A=t.getIDTokenUrl();if(e){let i=encodeURIComponent(e);A=`${A}&audience=${i}`}(0,hJ.debug)(`ID token url is ${A}`);let r=yield t.getCall(A);return(0,hJ.setSecret)(r),r}catch(A){throw new Error(`Error message: ${A.message}`)}})}};bg.OidcClient=u9});var E9=E(rn=>{"use strict";var p9=rn&&rn.__awaiter||function(t,e,A,r){function i(n){return n instanceof A?n:new A(function(s){s(n)})}return a(i,"adopt"),new(A||(A=Promise))(function(n,s){function o(d){try{l(r.next(d))}catch(u){s(u)}}a(o,"fulfilled");function c(d){try{l(r.throw(d))}catch(u){s(u)}}a(c,"rejected");function l(d){d.done?n(d.value):i(d.value).then(o,c)}a(l,"step"),l((r=r.apply(t,e||[])).next())})};Object.defineProperty(rn,"__esModule",{value:!0});rn.summary=rn.markdownSummary=rn.SUMMARY_DOCS_URL=rn.SUMMARY_ENV_VAR=void 0;var m4e=require("os"),g9=require("fs"),{access:C4e,appendFile:f4e,writeFile:Q4e}=g9.promises;rn.SUMMARY_ENV_VAR="GITHUB_STEP_SUMMARY";rn.SUMMARY_DOCS_URL="https://docs.github.com/actions/using-workflows/workflow-commands-for-github-actions#adding-a-job-summary";var h9=class{static{a(this,"Summary")}constructor(){this._buffer=""}filePath(){return p9(this,void 0,void 0,function*(){if(this._filePath)return this._filePath;let e=process.env[rn.SUMMARY_ENV_VAR];if(!e)throw new Error(`Unable to find environment variable for $${rn.SUMMARY_ENV_VAR}. Check if your runtime environment supports job summaries.`);try{yield C4e(e,g9.constants.R_OK|g9.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,A,r={}){let i=Object.entries(r).map(([n,s])=>` ${n}="${s}"`).join("");return A?`<${e}${i}>${A}</${e}>`:`<${e}${i}>`}write(e){return p9(this,void 0,void 0,function*(){let A=!!e?.overwrite,r=yield this.filePath();return yield(A?Q4e:f4e)(r,this._buffer,{encoding:"utf8"}),this.emptyBuffer()})}clear(){return p9(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,A=!1){return this._buffer+=e,A?this.addEOL():this}addEOL(){return this.addRaw(m4e.EOL)}addCodeBlock(e,A){let r=Object.assign({},A&&{lang:A}),i=this.wrap("pre",this.wrap("code",e),r);return this.addRaw(i).addEOL()}addList(e,A=!1){let r=A?"ol":"ul",i=e.map(s=>this.wrap("li",s)).join(""),n=this.wrap(r,i);return this.addRaw(n).addEOL()}addTable(e){let A=e.map(i=>{let n=i.map(s=>{if(typeof s=="string")return this.wrap("td",s);let{header:o,data:c,colspan:l,rowspan:d}=s,u=o?"th":"td",p=Object.assign(Object.assign({},l&&{colspan:l}),d&&{rowspan:d});return this.wrap(u,c,p)}).join("");return this.wrap("tr",n)}).join(""),r=this.wrap("table",A);return this.addRaw(r).addEOL()}addDetails(e,A){let r=this.wrap("details",this.wrap("summary",e)+A);return this.addRaw(r).addEOL()}addImage(e,A,r){let{width:i,height:n}=r||{},s=Object.assign(Object.assign({},i&&{width:i}),n&&{height:n}),o=this.wrap("img",null,Object.assign({src:e,alt:A},s));return this.addRaw(o).addEOL()}addHeading(e,A){let r=`h${A}`,i=["h1","h2","h3","h4","h5","h6"].includes(r)?r:"h1",n=this.wrap(i,e);return this.addRaw(n).addEOL()}addSeparator(){let e=this.wrap("hr",null);return this.addRaw(e).addEOL()}addBreak(){let e=this.wrap("br",null);return this.addRaw(e).addEOL()}addQuote(e,A){let r=Object.assign({},A&&{cite:A}),i=this.wrap("blockquote",e,r);return this.addRaw(i).addEOL()}addLink(e,A){let r=this.wrap("a",e,{href:A});return this.addRaw(r).addEOL()}},mJ=new h9;rn.markdownSummary=mJ;rn.summary=mJ});var CJ=E(nn=>{"use strict";var B4e=nn&&nn.__createBinding||(Object.create?function(t,e,A,r){r===void 0&&(r=A);var i=Object.getOwnPropertyDescriptor(e,A);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[A]}}),Object.defineProperty(t,r,i)}:function(t,e,A,r){r===void 0&&(r=A),t[r]=e[A]}),I4e=nn&&nn.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),y4e=nn&&nn.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var A in t)A!=="default"&&Object.prototype.hasOwnProperty.call(t,A)&&B4e(e,t,A);return I4e(e,t),e};Object.defineProperty(nn,"__esModule",{value:!0});nn.toPlatformPath=nn.toWin32Path=nn.toPosixPath=void 0;var w4e=y4e(require("path"));function b4e(t){return t.replace(/[\\]/g,"/")}a(b4e,"toPosixPath");nn.toPosixPath=b4e;function N4e(t){return t.replace(/[/]/g,"\\")}a(N4e,"toWin32Path");nn.toWin32Path=N4e;function R4e(t){return t.replace(/[/\\]/g,w4e.sep)}a(R4e,"toPlatformPath");nn.toPlatformPath=R4e});var C9=E(oe=>{"use strict";var D4e=oe&&oe.__createBinding||(Object.create?functioLine truncated
|
||||
`);return{name:e,version:A}}),"getLinuxInfo");lt.platform=TJ.default.platform();lt.arch=TJ.default.arch();lt.isWindows=lt.platform==="win32";lt.isMacOS=lt.platform==="darwin";lt.isLinux=lt.platform==="linux";function s6e(){return a0(this,void 0,void 0,function*(){return Object.assign(Object.assign({},yield lt.isWindows?r6e():lt.isMacOS?i6e():n6e()),{platform:lt.platform,arch:lt.arch,isWindows:lt.isWindows,isMacOS:lt.isMacOS,isLinux:lt.isLinux})})}a(s6e,"getDetails");lt.getDetails=s6e});var hi=E(ie=>{"use strict";var a6e=ie&&ie.__createBinding||(Object.create?function(t,e,A,r){r===void 0&&(r=A);var i=Object.getOwnPropertyDescriptor(e,A);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[A]}}),Object.defineProperty(t,r,i)}:function(t,e,A,r){r===void 0&&(r=A),t[r]=e[A]}),o6e=ie&&ie.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),y9=ie&&ie.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var A in t)A!=="default"&&Object.prototype.hasOwnProperty.call(t,A)&&a6e(e,t,A);return o6e(e,t),e},_J=ie&&ie.__awaiter||function(t,e,A,r){function i(n){return n instanceof A?n:new A(function(s){s(n)})}return a(i,"adopt"),new(A||(A=Promise))(function(n,s){function o(d){try{l(r.next(d))}catch(u){s(u)}}a(o,"fulfilled");function c(d){try{l(r.throw(d))}catch(u){s(u)}}a(c,"rejected");function l(d){d.done?n(d.value):i(d.value).then(o,c)}a(l,"step"),l((r=r.apply(t,e||[])).next())})};Object.defineProperty(ie,"__esModule",{value:!0});ie.platform=ie.toPlatformPath=ie.toWin32Path=ie.toPosixPath=ie.markdownSummary=ie.summary=ie.getIDToken=ie.getState=ie.saveState=ie.group=ie.endGroup=ie.startGroup=ie.info=ie.notice=ie.warning=ie.error=ie.debug=ie.isDebug=ie.setFailed=ie.setCommandEcho=ie.setOutput=ie.getBooleanInput=ie.getMultilineInput=ie.getInput=ie.addPath=ie.setSecret=ie.exportVariable=ie.ExitCode=void 0;var Fs=y_(),ru=N_(),Dg=dI(),OJ=y9(require("os")),c6e=y9(require("path")),l6e=EJ(),I9;(function(t){t[t.Success=0]="Success",t[t.Failure=1]="Failure"})(I9||(ie.ExitCode=I9={}));function d6e(t,e){let A=(0,Dg.toCommandValue)(e);if(process.env[t]=A,process.env.GITHUB_ENV||"")return(0,ru.issueFileCommand)("ENV",(0,ru.prepareKeyValueMessage)(t,e));(0,Fs.issueCommand)("set-env",{name:t},A)}a(d6e,"exportVariable");ie.exportVariable=d6e;function u6e(t){(0,Fs.issueCommand)("add-mask",{},t)}a(u6e,"setSecret");ie.setSecret=u6e;function p6e(t){process.env.GITHUB_PATH||""?(0,ru.issueFileCommand)("PATH",t):(0,Fs.issueCommand)("add-path",{},t),process.env.PATH=`${t}${c6e.delimiter}${process.env.PATH}`}a(p6e,"addPath");ie.addPath=p6e;function w9(t,e){let A=process.env[`INPUT_${t.replace(/ /g,"_").toUpperCase()}`]||"";if(e&&e.required&&!A)throw new Error(`Input required and not supplied: ${t}`);return e&&e.trimWhitespace===!1?A:A.trim()}a(w9,"getInput");ie.getInput=w9;function g6e(t,e){let A=w9(t,e).split(`
|
||||
`).filter(r=>r!=="");return e&&e.trimWhitespace===!1?A:A.map(r=>r.trim())}a(g6e,"getMultilineInput");ie.getMultilineInput=g6e;function h6e(t,e){let A=["true","True","TRUE"],r=["false","False","FALSE"],i=w9(t,e);if(A.includes(i))return!0;if(r.includes(i))return!1;throw new TypeError(`Input does not meet YAML 1.2 "Core Schema" specification: ${t}
|
||||
Support boolean input list: \`true | True | TRUE | false | False | FALSE\``)}a(h6e,"getBooleanInput");ie.getBooleanInput=h6e;function E6e(t,e){if(process.env.GITHUB_OUTPUT||"")return(0,ru.issueFileCommand)("OUTPUT",(0,ru.prepareKeyValueMessage)(t,e));process.stdout.write(OJ.EOL),(0,Fs.issueCommand)("set-output",{name:t},(0,Dg.toCommandValue)(e))}a(E6e,"setOutput");ie.setOutput=E6e;function m6e(t){(0,Fs.issue)("echo",t?"on":"off")}a(m6e,"setCommandEcho");ie.setCommandEcho=m6e;function C6e(t){process.exitCode=I9.Failure,PJ(t)}a(C6e,"setFailed");ie.setFailed=C6e;function f6e(){return process.env.RUNNER_DEBUG==="1"}a(f6e,"isDebug");ie.isDebug=f6e;function Q6e(t){(0,Fs.issueCommand)("debug",{},t)}a(Q6e,"debug");ie.debug=Q6e;function PJ(t,e={}){(0,Fs.issueCommand)("error",(0,Dg.toCommandProperties)(e),t instanceof Error?t.toString():t)}a(PJ,"error");ie.error=PJ;function B6e(t,e={}){(0,Fs.issueCommand)("warning",(0,Dg.toCommandProperties)(e),t instanceof Error?t.toString():t)}a(B6e,"warning");ie.warning=B6e;function I6e(t,e={}){(0,Fs.issueCommand)("notice",(0,Dg.toCommandProperties)(e),t instanceof Error?t.toString():t)}a(I6e,"notice");ie.notice=I6e;function y6e(t){process.stdout.write(t+OJ.EOL)}a(y6e,"info");ie.info=y6e;function qJ(t){(0,Fs.issue)("group",t)}a(qJ,"startGroup");ie.startGroup=qJ;function HJ(){(0,Fs.issue)("endgroup")}a(HJ,"endGroup");ie.endGroup=HJ;function w6e(t,e){return _J(this,void 0,void 0,function*(){qJ(t);let A;try{A=yield e()}finally{HJ()}return A})}a(w6e,"group");ie.group=w6e;function b6e(t,e){if(process.env.GITHUB_STATE||"")return(0,ru.issueFileCommand)("STATE",(0,ru.prepareKeyValueMessage)(t,e));(0,Fs.issueCommand)("save-state",{name:t},(0,Dg.toCommandValue)(e))}a(b6e,"saveState");ie.saveState=b6e;function N6e(t){return process.env[`STATE_${t}`]||""}a(N6e,"getState");ie.getState=N6e;function R6e(t){return _J(this,void 0,void 0,function*(){return yield l6e.OidcClient.getIDToken(t)})}a(R6e,"getIDToken");ie.getIDToken=R6e;var D6e=E9();Object.defineProperty(ie,"summary",{enumerable:!0,get:function(){return D6e.summary}});var S6e=E9();Object.defineProperty(ie,"markdownSummary",{enumerable:!0,get:function(){return S6e.markdownSummary}});var b9=CJ();Object.defineProperty(ie,"toPosixPath",{enumerable:!0,get:function(){return b9.toPosixPath}});Object.defineProperty(ie,"toWin32Path",{enumerable:!0,get:function(){return b9.toWin32Path}});Object.defineProperty(ie,"toPlatformPath",{enumerable:!0,get:function(){return b9.toPlatformPath}});ie.platform=y9(MJ())});var o0=E(Sg=>{"use strict";Object.defineProperty(Sg,"__esModule",{value:!0});Sg.toCommandProperties=Sg.toCommandValue=void 0;function x6e(t){return t==null?"":typeof t=="string"||t instanceof String?t:JSON.stringify(t)}a(x6e,"toCommandValue");Sg.toCommandValue=x6e;function v6e(t){return Object.keys(t).length?{title:t.title,file:t.file,line:t.startLine,endLine:t.endLine,col:t.startColumn,endColumn:t.endColumn}:{}}a(v6e,"toCommandProperties");Sg.toCommandProperties=v6e});var VJ=E(Ls=>{"use strict";var k6e=Ls&&Ls.__createBinding||(Object.create?function(t,e,A,r){r===void 0&&(r=A),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[A]}})}:function(t,e,A,r){r===void 0&&(r=A),t[r]=e[A]}),F6e=Ls&&Ls.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),L6e=Ls&&Ls.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var A in t)A!=="default"&&Object.hasOwnProperty.call(t,A)&&k6e(e,t,A);return F6e(e,t),e};Object.defineProperty(Ls,"__esModule",{value:!0});Ls.issue=Ls.issueCommand=void 0;var U6e=L6e(require("os")),GJ=o0();function JJ(t,e,A){let r=new N9(t,e,A);process.stdout.write(r.toString()+U6e.EOL)}a(JJ,"issueCommand");Ls.issueCommand=JJ;function T6e(t,e=""){JJ(t,{},e)}a(T6e,"issue");Ls.issue=T6e;var YJ="::",N9=class{static{a(this,"Command")}constructor(e,A,r){e||(e="missing.command"),this.command=e,this.properties=A,this.message=r}toString(){let e=YJ+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let A=!0;for(let r in this.properties)if(this.properties.hasOwnProperty(r)){let i=this.properties[r];i&&(A?A=!1:e+=",",e+=`${r}=${_6e(i)}`)}}return e+=`${YJ}${M6e(this.message)}`,e}};function M6e(t){return GJ.toCommandValue(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}a(M6e,"escapeData");function _6e(t){return GJ.toCommandValue(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}a(_6e,"escapeProperty")});function GC(){return c0>l0.length-16&&(WJ.default.randomFillSync(l0),c0=0),l0.slice(c0,c0+=16)}var WJ,l0,c0,R9=Le(()=>{WJ=Nr(require("crypto")),l0=new Uint8Array(256),c0=l0.length;a(GC,"rng")});var zJ,jJ=Le(()=>{zJ=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i});function O6e(t){return typeof t=="string"&&zJ.test(t)}var Il,JC=Le(()=>{jJ();a(O6e,"validate");Il=O6e});fLine truncated
|
||||
\r
|
||||
`),qSe=/\r\n/g,HSe=/^([^:]+):[ \t]?([\x00-\xFF]+)?$/;function kg(t){JV.call(this),t=t||{};let e=this;this.nread=0,this.maxed=!1,this.npairs=0,this.maxHeaderPairs=GV(t,"maxHeaderPairs",2e3),this.maxHeaderSize=GV(t,"maxHeaderSize",80*1024),this.buffer="",this.header={},this.finished=!1,this.ss=new OSe(PSe),this.ss.on("info",function(A,r,i,n){r&&!e.maxed&&(e.nread+n-i>=e.maxHeaderSize?(n=e.maxHeaderSize-e.nread+i,e.nread=e.maxHeaderSize,e.maxed=!0):e.nread+=n-i,e.buffer+=r.toString("binary",i,n)),A&&e._finish()})}a(kg,"HeaderParser");_Se(kg,JV);kg.prototype.push=function(t){let e=this.ss.push(t);if(this.finished)return e};kg.prototype.reset=function(){this.finished=!1,this.buffer="",this.header={},this.ss.reset()};kg.prototype._finish=function(){this.buffer&&this._parseHeader(),this.ss.matches=this.ss.maxMatches;let t=this.header;this.header={},this.buffer="",this.finished=!0,this.nread=this.npairs=0,this.maxed=!1,this.emit("header",t)};kg.prototype._parseHeader=function(){if(this.npairs===this.maxHeaderPairs)return;let t=this.buffer.split(qSe),e=t.length,A,r;for(var i=0;i<e;++i){if(t[i].length===0)continue;if((t[i][0]===" "||t[i][0]===" ")&&r){this.header[r][this.header[r].length-1]+=t[i];continue}let n=t[i].indexOf(":");if(n===-1||n===0)return;if(A=HSe.exec(t[i]),r=A[1].toLowerCase(),this.header[r]=this.header[r]||[],this.header[r].push(A[2]||""),++this.npairs===this.maxHeaderPairs)break}};VV.exports=kg});var ix=E((wmt,jV)=>{"use strict";var rx=require("node:stream").Writable,YSe=require("node:util").inherits,GSe=tx(),zV=HV(),JSe=WV(),VSe=45,WSe=Buffer.from("-"),zSe=Buffer.from(`\r
|
||||
`),jSe=a(function(){},"EMPTY_FN");function ya(t){if(!(this instanceof ya))return new ya(t);if(rx.call(this,t),!t||!t.headerFirst&&typeof t.boundary!="string")throw new TypeError("Boundary required");typeof t.boundary=="string"?this.setBoundary(t.boundary):this._bparser=void 0,this._headerFirst=t.headerFirst,this._dashes=0,this._parts=0,this._finished=!1,this._realFinish=!1,this._isPreamble=!0,this._justMatched=!1,this._firstWrite=!0,this._inHeader=!0,this._part=void 0,this._cb=void 0,this._ignoreData=!1,this._partOpts={highWaterMark:t.partHwm},this._pause=!1;let e=this;this._hparser=new JSe(t),this._hparser.on("header",function(A){e._inHeader=!1,e._part.emit("header",A)})}a(ya,"Dicer");YSe(ya,rx);ya.prototype.emit=function(t){if(t==="finish"&&!this._realFinish){if(!this._finished){let e=this;process.nextTick(function(){if(e.emit("error",new Error("Unexpected end of multipart data")),e._part&&!e._ignoreData){let A=e._isPreamble?"Preamble":"Part";e._part.emit("error",new Error(A+" terminated early due to unexpected end of multipart data")),e._part.push(null),process.nextTick(function(){e._realFinish=!0,e.emit("finish"),e._realFinish=!1});return}e._realFinish=!0,e.emit("finish"),e._realFinish=!1})}}else rx.prototype.emit.apply(this,arguments)};ya.prototype._write=function(t,e,A){if(!this._hparser&&!this._bparser)return A();if(this._headerFirst&&this._isPreamble){this._part||(this._part=new zV(this._partOpts),this._events.preamble?this.emit("preamble",this._part):this._ignore());let r=this._hparser.push(t);if(!this._inHeader&&r!==void 0&&r<t.length)t=t.slice(r);else return A()}this._firstWrite&&(this._bparser.push(zSe),this._firstWrite=!1),this._bparser.push(t),this._pause?this._cb=A:A()};ya.prototype.reset=function(){this._part=void 0,this._bparser=void 0,this._hparser=void 0};ya.prototype.setBoundary=function(t){let e=this;this._bparser=new GSe(`\r
|
||||
--`+t),this._bparser.on("info",function(A,r,i,n){e._oninfo(A,r,i,n)})};ya.prototype._ignore=function(){this._part&&!this._ignoreData&&(this._ignoreData=!0,this._part.on("error",jSe),this._part.resume())};ya.prototype._oninfo=function(t,e,A,r){let i,n=this,s=0,o,c=!0;if(!this._part&&this._justMatched&&e){for(;this._dashes<2&&A+s<r;)if(e[A+s]===VSe)++s,++this._dashes;else{this._dashes&&(i=WSe),this._dashes=0;break}if(this._dashes===2&&(A+s<r&&this._events.trailer&&this.emit("trailer",e.slice(A+s,r)),this.reset(),this._finished=!0,n._parts===0&&(n._realFinish=!0,n.emit("finish"),n._realFinish=!1)),this._dashes)return}this._justMatched&&(this._justMatched=!1),this._part||(this._part=new zV(this._partOpts),this._part._read=function(l){n._unpause()},this._isPreamble&&this._events.preamble?this.emit("preamble",this._part):this._isPreamble!==!0&&this._events.part?this.emit("part",this._part):this._ignore(),this._isPreamble||(this._inHeader=!0)),e&&A<r&&!this._ignoreData&&(this._isPreamble||!this._inHeader?(i&&(c=this._part.push(i)),c=this._part.push(e.slice(A,r)),c||(this._pause=!0)):!this._isPreamble&&this._inHeader&&(i&&this._hparser.push(i),o=this._hparser.push(e.slice(A,r)),!this._inHeader&&o!==void 0&&o<r&&this._oninfo(!1,e,A+o,r))),t&&(this._hparser.reset(),this._isPreamble?this._isPreamble=!1:A!==r&&(++this._parts,this._part.on("end",function(){--n._parts===0&&(n._finished?(n._realFinish=!0,n.emit("finish"),n._realFinish=!1):n._unpause())})),this._part.push(null),this._part=void 0,this._ignoreData=!1,this._justMatched=!0,this._dashes=0)};ya.prototype._unpause=function(){if(this._pause&&(this._pause=!1,this._cb)){let t=this._cb;this._cb=void 0,t()}};jV.exports=ya});var C0=E((Nmt,ZV)=>{"use strict";var XV=new TextDecoder("utf-8"),m0=new Map([["utf-8",XV],["utf8",XV]]);function XSe(t,e,A){if(t)if(m0.has(A))try{return m0.get(A).decode(Buffer.from(t,e))}catch{}else try{return m0.set(A,new TextDecoder(A)),m0.get(A).decode(Buffer.from(t,e))}catch{}return t}a(XSe,"decodeText");ZV.exports=XSe});var nx=E((Dmt,eW)=>{"use strict";var f0=C0(),KV=/%([a-fA-F0-9]{2})/g;function $V(t,e){return String.fromCharCode(parseInt(e,16))}a($V,"encodedReplacer");function ZSe(t){let e=[],A="key",r="",i=!1,n=!1,s=0,o="";for(var c=0,l=t.length;c<l;++c){let d=t[c];if(d==="\\"&&i)if(n)n=!1;else{n=!0;continue}else if(d==='"')if(n)n=!1;else{i?(i=!1,A="key"):i=!0;continue}else if(n&&i&&(o+="\\"),n=!1,(A==="charset"||A==="lang")&&d==="'"){A==="charset"?(A="lang",r=o.substring(1)):A="value",o="";continue}else if(A==="key"&&(d==="*"||d==="=")&&e.length){d==="*"?A="charset":A="value",e[s]=[o,void 0],o="";continue}else if(!i&&d===";"){A="key",r?(o.length&&(o=f0(o.replace(KV,$V),"binary",r)),r=""):o.length&&(o=f0(o,"binary","utf8")),e[s]===void 0?e[s]=o:e[s][1]=o,o="",++s;continue}else if(!i&&(d===" "||d===" "))continue;o+=d}return r&&o.length?o=f0(o.replace(KV,$V),"binary",r):o&&(o=f0(o,"binary","utf8")),e[s]===void 0?o&&(e[s]=o):e[s][1]=o,e}a(ZSe,"parseParams");eW.exports=ZSe});var AW=E((xmt,tW)=>{"use strict";tW.exports=a(function(e){if(typeof e!="string")return"";for(var A=e.length-1;A>=0;--A)switch(e.charCodeAt(A)){case 47:case 92:return e=e.slice(A+1),e===".."||e==="."?"":e}return e===".."||e==="."?"":e},"basename")});var sW=E((kmt,nW)=>{"use strict";var{Readable:iW}=require("node:stream"),{inherits:KSe}=require("node:util"),$Se=ix(),rW=nx(),e9e=C0(),t9e=AW(),nu=E0(),A9e=/^boundary$/i,r9e=/^form-data$/i,i9e=/^charset$/i,n9e=/^filename$/i,s9e=/^name$/i;Q0.detect=/^multipart\/form-data/i;function Q0(t,e){let A,r,i=this,n,s=e.limits,o=e.isPartAFile||((v,x,L)=>x==="application/octet-stream"||L!==void 0),c=e.parsedConType||[],l=e.defCharset||"utf8",d=e.preservePath,u={highWaterMark:e.fileHwm};for(A=0,r=c.length;A<r;++A)if(Array.isArray(c[A])&&A9e.test(c[A][0])){n=c[A][1];break}function p(){N===0&&k&&!t._done&&(k=!1,i.end())}if(a(p,"checkFinished"),typeof n!="string")throw new Error("Multipart: Boundary not found");let g=nu(s,"fieldSize",1*1024*1024),h=nu(s,"fileSize",1/0),m=nu(s,"files",1/0),f=nu(s,"fields",1/0),B=nu(s,"parts",1/0),b=nu(s,"headerPairs",2e3),I=nu(s,"headerSize",80*1024),C=0,Q=0,N=0,S,w,k=!1;this._needDrain=!1,this._pause=!1,this._cb=void 0,this._nparts=0,this._boy=t;let D={boundary:n,maxHeaderPairs:b,maxHeaderSize:I,partHwm:u.highWaterMark,highWaterMark:e.highWaterMark};this.parser=new $Se(D),this.parser.on("drain",function(){if(i._needDrain=!1,i._cb&&!i._pause){let v=i._cb;i._cb=void 0,v()}}).on("part",a(function v(x){if(++i._nparts>B)return i.parser.removeListener("part",v),i.parser.on("part",Fg),t.hitPartsLimit=!0,t.emit("partsLimit"),Fg(x);if(w){let L=w;L.emit("end"),L.removeAllListeners("end")}x.on("header",function(L){let q,le,_,rt,Se,vt,ht=0;if(L["content-type"]&&(_=rW(L["content-type"][0]),_[0])){for(q=_[0].toLowerCase(),A=0,r=_.length;A<r;++A)if(i9e.test(_[A][0])){rt=_[A][1].toLowerCase();break}}if(q===void 0&&(q="text/plain"),rt===void 0&&(rt=l),L["content-disposition"]){if(_=rW(L["content-disposition"][0]),!r9e.test(_[0
Line truncated
|
||||
`))}a(CW,"isValidHeaderValue");function j9e(t,e){let{headersList:A}=e,r=(A.get("referrer-policy")??"").split(","),i="";if(r.length>0)for(let n=r.length;n!==0;n--){let s=r[n-1].trim();if(T9e.includes(s)){i=s;break}}i!==""&&(t.referrerPolicy=i)}a(j9e,"setRequestReferrerPolicyOnRedirect");function X9e(){return"allowed"}a(X9e,"crossOriginResourcePolicyCheck");function Z9e(){return"success"}a(Z9e,"corsCheck");function K9e(){return"success"}a(K9e,"TAOCheck");function $9e(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e)}a($9e,"appendFetchMetadata");function exe(t){let e=t.origin;if(t.responseTainting==="cors"||t.mode==="websocket")e&&t.headersList.append("origin",e);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&&px(t.origin)&&!px(KC(t))&&(e=null);break;case"same-origin":I0(t,KC(t))||(e=null);break;default:}e&&t.headersList.append("origin",e)}}a(exe,"appendRequestOriginHeader");function txe(t){return _9e.now()}a(txe,"coarsenedSharedCurrentTime");function Axe(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}}a(Axe,"createOpaqueTimingInfo");function rxe(){return{referrerPolicy:"strict-origin-when-cross-origin"}}a(rxe,"makePolicyContainer");function ixe(t){return{referrerPolicy:t.referrerPolicy}}a(ixe,"clonePolicyContainer");function nxe(t){let e=t.referrerPolicy;Mg(e);let A=null;if(t.referrer==="client"){let o=M9e();if(!o||o.origin==="null")return"no-referrer";A=new URL(o)}else t.referrer instanceof URL&&(A=t.referrer);let r=dx(A),i=dx(A,!0);r.toString().length>4096&&(r=i);let n=I0(t,r),s=XC(r)&&!XC(t.url);switch(e){case"origin":return i??dx(A,!0);case"unsafe-url":return r;case"same-origin":return n?i:"no-referrer";case"origin-when-cross-origin":return n?r:i;case"strict-origin-when-cross-origin":{let o=KC(t);return I0(r,o)?r:XC(r)&&!XC(o)?"no-referrer":i}case"strict-origin":case"no-referrer-when-downgrade":default:return s?"no-referrer":i}}a(nxe,"determineRequestsReferrer");function dx(t,e){return Mg(t instanceof URL),t.protocol==="file:"||t.protocol==="about:"||t.protocol==="blank:"?"no-referrer":(t.username="",t.password="",t.hash="",e&&(t.pathname="",t.search=""),t)}a(dx,"stripURLForReferrer");function XC(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(A){if(A==null||A==="null")return!1;let r=new URL(A);return!!(r.protocol==="https:"||r.protocol==="wss:"||/^127(?:\.[0-9]+){0,2}\.[0-9]+$|^\[(?:0*:)*?:?0*1\]$/.test(r.hostname)||r.hostname==="localhost"||r.hostname.includes("localhost.")||r.hostname.endsWith(".localhost"))}}a(XC,"isURLPotentiallyTrustworthy");function sxe(t,e){if(ZC===void 0)return!0;let A=oxe(e);if(A==="no metadata"||A.length===0)return!0;let r=A.sort((s,o)=>o.algo.localeCompare(s.algo)),i=r[0].algo,n=r.filter(s=>s.algo===i);for(let s of n){let o=s.algo,c=s.hash;c.endsWith("==")&&(c=c.slice(0,-2));let l=ZC.createHash(o).update(t).digest("base64");if(l.endsWith("==")&&(l=l.slice(0,-2)),l===c)return!0;let d=ZC.createHash(o).update(t).digest("base64url");if(d.endsWith("==")&&(d=d.slice(0,-2)),d===c)return!0}return!1}a(sxe,"bytesMatch");var axe=/((?<algo>sha256|sha384|sha512)-(?<hash>[A-z0-9+/]{1}.*={0,2}))( +[\x21-\x7e]?)?/i;function oxe(t){let e=[],A=!0,r=ZC.getHashes();for(let i of t.split(" ")){A=!1;let n=axe.exec(i);if(n===null||n.groups===void 0)continue;let s=n.groups.algo;r.includes(s.toLowerCase())&&e.push(n.groups)}return A===!0?"no metadata":e}a(oxe,"parseMetadata");function cxe(t){}a(cxe,"tryUpgradeRequestToAPotentiallyTrustworthyURL");function I0(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}a(I0,"sameOrigin");function lxe(){let t,e;return{promise:new Promise((r,i)=>{t=r,e=i}),resolve:t,reject:e}}a(lxe,"createDeferredPromise");function dxe(t){return t.controller.state==="aborted"}a(dxe,"isAborted");function uxe(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}a(uxe,"isCancelled");function pxe(t){return/^(DELETE|GET|HEAD|OPTIONS|POST|PUT)$/i.test(t)?t.toUpperCase():t}a(pxe,"normalizeMethod");function gxe(t){let e=JSON.stringify(t);if(e===void 0)throw new TypeError("Value is not JSON serializable");return Mg(typeof e=="string"),e}a(gxe,"serializeJavascriptValueToJSONString");var hxe=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function Exe(t,e,A){let r={index:0,kind:A,target:t},i={next(){if(Object.getPrototypeOf(this)!==i)throw new TypeError(`'next' called on an object that does not implement interface ${e} Iterator.`);let{index:n,kind:s,target:o}=r,c=o(),l=c.len
Line truncated
|
||||
`||t===" "||t===" "}a(bW,"isHTTPWhiteSpace");function gx(t,e=!0,A=!0){let r=0,i=t.length-1;if(e)for(;r<t.length&&bW(t[r]);r++);if(A)for(;i>0&&bW(t[i]);i--);return t.slice(r,i+1)}a(gx,"removeHTTPWhitespace");function NW(t){return t==="\r"||t===`
|
||||
`||t===" "||t==="\f"||t===" "}a(NW,"isASCIIWhitespace");function Txe(t,e=!0,A=!0){let r=0,i=t.length-1;if(e)for(;r<t.length&&NW(t[r]);r++);if(A)for(;i>0&&NW(t[i]);i--);return t.slice(r,i+1)}a(Txe,"removeASCIIWhitespace");xW.exports={dataURLProcessor:kxe,URLSerializer:RW,collectASequenceOfCodePoints:b0,collectASequenceOfCodePointsFast:_g,stringPercentDecode:DW,parseMIMEType:hx,collectAnHTTPQuotedString:SW,serializeAMimeType:Uxe}});var N0=E((Xmt,UW)=>{"use strict";var{Blob:FW,File:vW}=require("buffer"),{types:Ex}=require("util"),{kState:Jn}=uc(),{isBlobLike:LW}=Ts(),{webidl:wt}=Ui(),{parseMIMEType:Mxe,serializeAMimeType:_xe}=wa(),{kEnumerableProperty:kW}=dt(),$C=class t extends FW{static{a(this,"File")}constructor(e,A,r={}){wt.argumentLengthCheck(arguments,2,{header:"File constructor"}),e=wt.converters["sequence<BlobPart>"](e),A=wt.converters.USVString(A),r=wt.converters.FilePropertyBag(r);let i=A,n=r.type,s;e:{if(n){if(n=Mxe(n),n==="failure"){n="";break e}n=_xe(n).toLowerCase()}s=r.lastModified}super(Oxe(e,r),{type:n}),this[Jn]={name:i,lastModified:s,type:n}}get name(){return wt.brandCheck(this,t),this[Jn].name}get lastModified(){return wt.brandCheck(this,t),this[Jn].lastModified}get type(){return wt.brandCheck(this,t),this[Jn].type}},mx=class t{static{a(this,"FileLike")}constructor(e,A,r={}){let i=A,n=r.type,s=r.lastModified??Date.now();this[Jn]={blobLike:e,name:i,type:n,lastModified:s}}stream(...e){return wt.brandCheck(this,t),this[Jn].blobLike.stream(...e)}arrayBuffer(...e){return wt.brandCheck(this,t),this[Jn].blobLike.arrayBuffer(...e)}slice(...e){return wt.brandCheck(this,t),this[Jn].blobLike.slice(...e)}text(...e){return wt.brandCheck(this,t),this[Jn].blobLike.text(...e)}get size(){return wt.brandCheck(this,t),this[Jn].blobLike.size}get type(){return wt.brandCheck(this,t),this[Jn].blobLike.type}get name(){return wt.brandCheck(this,t),this[Jn].name}get lastModified(){return wt.brandCheck(this,t),this[Jn].lastModified}get[Symbol.toStringTag](){return"File"}};Object.defineProperties($C.prototype,{[Symbol.toStringTag]:{value:"File",configurable:!0},name:kW,lastModified:kW});wt.converters.Blob=wt.interfaceConverter(FW);wt.converters.BlobPart=function(t,e){if(wt.util.Type(t)==="Object"){if(LW(t))return wt.converters.Blob(t,{strict:!1});if(ArrayBuffer.isView(t)||Ex.isAnyArrayBuffer(t))return wt.converters.BufferSource(t,e)}return wt.converters.USVString(t,e)};wt.converters["sequence<BlobPart>"]=wt.sequenceConverter(wt.converters.BlobPart);wt.converters.FilePropertyBag=wt.dictionaryConverter([{key:"lastModified",converter:wt.converters["long long"],get defaultValue(){return Date.now()}},{key:"type",converter:wt.converters.DOMString,defaultValue:""},{key:"endings",converter:t=>(t=wt.converters.DOMString(t),t=t.toLowerCase(),t!=="native"&&(t="transparent"),t),defaultValue:"transparent"}]);function Oxe(t,e){let A=[];for(let r of t)if(typeof r=="string"){let i=r;e.endings==="native"&&(i=Pxe(i)),A.push(new TextEncoder().encode(i))}else Ex.isAnyArrayBuffer(r)||Ex.isTypedArray(r)?r.buffer?A.push(new Uint8Array(r.buffer,r.byteOffset,r.byteLength)):A.push(new Uint8Array(r)):LW(r)&&A.push(r);return A}a(Oxe,"processBlobParts");function Pxe(t){let e=`
|
||||
`;return process.platform==="win32"&&(e=`\r
|
||||
`),t.replace(/\r?\n/g,e)}a(Pxe,"convertLineEndingsNative");function qxe(t){return vW&&t instanceof vW||t instanceof $C||t&&(typeof t.stream=="function"||typeof t.arrayBuffer=="function")&&t[Symbol.toStringTag]==="File"}a(qxe,"isFileLike");UW.exports={File:$C,FileLike:mx,isFileLike:qxe}});var D0=E((Kmt,PW)=>{"use strict";var{isBlobLike:R0,toUSVString:Hxe,makeIterator:Cx}=Ts(),{kState:Ei}=uc(),{File:OW,FileLike:TW,isFileLike:Yxe}=N0(),{webidl:Lt}=Ui(),{Blob:Gxe,File:fx}=require("buffer"),MW=fx??OW,Og=class t{static{a(this,"FormData")}constructor(e){if(e!==void 0)throw Lt.errors.conversionFailed({prefix:"FormData constructor",argument:"Argument 1",types:["undefined"]});this[Ei]=[]}append(e,A,r=void 0){if(Lt.brandCheck(this,t),Lt.argumentLengthCheck(arguments,2,{header:"FormData.append"}),arguments.length===3&&!R0(A))throw new TypeError("Failed to execute 'append' on 'FormData': parameter 2 is not of type 'Blob'");e=Lt.converters.USVString(e),A=R0(A)?Lt.converters.Blob(A,{strict:!1}):Lt.converters.USVString(A),r=arguments.length===3?Lt.converters.USVString(r):void 0;let i=_W(e,A,r);this[Ei].push(i)}delete(e){Lt.brandCheck(this,t),Lt.argumentLengthCheck(arguments,1,{header:"FormData.delete"}),e=Lt.converters.USVString(e),this[Ei]=this[Ei].filter(A=>A.name!==e)}get(e){Lt.brandCheck(this,t),Lt.argumentLengthCheck(arguments,1,{header:"FormData.get"}),e=Lt.converters.USVString(e);let A=this[Ei].findIndex(r=>r.name===e);return A===-1?null:this[Ei][A].value}getAll(e){return Lt.brandCheck(this,t),Lt.argumentLengthCheck(arguments,1,{header:"FormData.getAll"}),e=Lt.converters.USVString(e),this[Ei].filter(A=>A.name===e).map(A=>A.value)}has(e){return Lt.brandCheck(this,t),Lt.argumentLengthCheck(arguments,1,{header:"FormData.has"}),e=Lt.converters.USVString(e),this[Ei].findIndex(A=>A.name===e)!==-1}set(e,A,r=void 0){if(Lt.brandCheck(this,t),Lt.argumentLengthCheck(arguments,2,{header:"FormData.set"}),arguments.length===3&&!R0(A))throw new TypeError("Failed to execute 'set' on 'FormData': parameter 2 is not of type 'Blob'");e=Lt.converters.USVString(e),A=R0(A)?Lt.converters.Blob(A,{strict:!1}):Lt.converters.USVString(A),r=arguments.length===3?Hxe(r):void 0;let i=_W(e,A,r),n=this[Ei].findIndex(s=>s.name===e);n!==-1?this[Ei]=[...this[Ei].slice(0,n),i,...this[Ei].slice(n+1).filter(s=>s.name!==e)]:this[Ei].push(i)}entries(){return Lt.brandCheck(this,t),Cx(()=>this[Ei].map(e=>[e.name,e.value]),"FormData","key+value")}keys(){return Lt.brandCheck(this,t),Cx(()=>this[Ei].map(e=>[e.name,e.value]),"FormData","key")}values(){return Lt.brandCheck(this,t),Cx(()=>this[Ei].map(e=>[e.name,e.value]),"FormData","value")}forEach(e,A=globalThis){if(Lt.brandCheck(this,t),Lt.argumentLengthCheck(arguments,1,{header:"FormData.forEach"}),typeof e!="function")throw new TypeError("Failed to execute 'forEach' on 'FormData': parameter 1 is not of type 'Function'.");for(let[r,i]of this)e.apply(A,[i,r,this])}};Og.prototype[Symbol.iterator]=Og.prototype.entries;Object.defineProperties(Og.prototype,{[Symbol.toStringTag]:{value:"FormData",configurable:!0}});function _W(t,e,A){if(t=Buffer.from(t).toString("utf8"),typeof e=="string")e=Buffer.from(e).toString("utf8");else if(Yxe(e)||(e=e instanceof Gxe?new MW([e],"blob",{type:e.type}):new TW(e,"blob",{type:e.type})),A!==void 0){let r={type:e.type,lastModified:e.lastModified};e=fx&&e instanceof fx||e instanceof OW?new MW([e],A,r):new TW(e,A,r)}return{name:t,value:e}}a(_W,"makeEntry");PW.exports={FormData:Og}});var ef=E((eCt,jW)=>{"use strict";var Jxe=pW(),Pg=dt(),{ReadableStreamFrom:Vxe,isBlobLike:qW,isReadableStreamLike:Wxe,readableStreamClose:zxe,createDeferredPromise:jxe,fullyReadBody:Xxe}=Ts(),{FormData:HW}=D0(),{kState:gc}=uc(),{webidl:Qx}=Ui(),{DOMException:JW,structuredClone:Zxe}=Nl(),{Blob:Kxe,File:$xe}=require("buffer"),{kBodyUsed:eve}=hA(),Bx=require("assert"),{isErrored:tve}=dt(),{isUint8Array:VW,isArrayBuffer:Ave}=require("util/types"),{File:rve}=N0(),{parseMIMEType:ive,serializeAMimeType:nve}=wa(),pc=globalThis.ReadableStream,YW=$xe??rve;function WW(t,e=!1){pc||(pc=require("stream/web").ReadableStream);let A=null;t instanceof pc?A=t:qW(t)?A=t.stream():A=new pc({async pull(c){c.enqueue(typeof i=="string"?new TextEncoder().encode(i):i),queueMicrotask(()=>zxe(c))},start(){},type:void 0}),Bx(Wxe(A));let r=null,i=null,n=null,s=null;if(typeof t=="string")i=t,s="text/plain;charset=UTF-8";else if(t instanceof URLSearchParams)i=t.toString(),s="application/x-www-form-urlencoded;charset=UTF-8";else if(Ave(t))i=new Uint8Array(t.slice());else if(ArrayBuffer.isView(t))i=new Uint8Array(t.buffer.slice(t.byteOffset,t.byteOffset+t.byteLength));else if(Pg.isFormDataLike(t)){let c=`----formdata-undici-0${`${Math.floor(Math.random()*1e11)}`.padStart(11,"0")}`,l=`--${c}\r
|
||||
Content-Disposition: form-data`;let d=a(B=>B.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22"),"escape"),u=a(B=>B.replace(/\r?\n|\r/g,`\r
|
||||
`),"normalizeLinefeeds"),p=new TextEncoder,g=[],h=new Uint8Array([13,10]);n=0;let m=!1;for(let[B,b]of t)if(typeof b=="string"){let I=p.encode(l+`; name="${d(u(B))}"\r
|
||||
\r
|
||||
${u(b)}\r
|
||||
`);g.push(I),n+=I.byteLength}else{let I=p.encode(`${l}; name="${d(u(B))}"`+(b.name?`; filename="${d(b.name)}"`:"")+`\r
|
||||
Content-Type: ${b.type||"application/octet-stream"}\r
|
||||
\r
|
||||
`);g.push(I,b,h),typeof b.size=="number"?n+=I.byteLength+b.size+h.byteLength:m=!0}let f=p.encode(`--${c}--`);g.push(f),n+=f.byteLength,m&&(n=null),i=t,r=a(async function*(){for(let B of g)B.stream?yield*B.stream():yield B},"action"),s="multipart/form-data; boundary="+c}else if(qW(t))i=t,n=t.size,t.type&&(s=t.type);else if(typeof t[Symbol.asyncIterator]=="function"){if(e)throw new TypeError("keepalive");if(Pg.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");A=t instanceof pc?t:Vxe(t)}if((typeof i=="string"||Pg.isBuffer(i))&&(n=Buffer.byteLength(i)),r!=null){let c;A=new pc({async start(){c=r(t)[Symbol.asyncIterator]()},async pull(l){let{value:d,done:u}=await c.next();return u?queueMicrotask(()=>{l.close()}):tve(A)||l.enqueue(new Uint8Array(d)),l.desiredSize>0},async cancel(l){await c.return()},type:void 0})}return[{stream:A,source:i,length:n},s]}a(WW,"extractBody");function sve(t,e=!1){return pc||(pc=require("stream/web").ReadableStream),t instanceof pc&&(Bx(!Pg.isDisturbed(t),"The body has already been consumed."),Bx(!t.locked,"The stream is locked.")),WW(t,e)}a(sve,"safelyExtractBody");function ave(t){let[e,A]=t.stream.tee(),r=Zxe(A,{transfer:[A]}),[,i]=r.tee();return t.stream=e,{stream:i,length:t.length,source:t.source}}a(ave,"cloneBody");async function*GW(t){if(t)if(VW(t))yield t;else{let e=t.stream;if(Pg.isDisturbed(e))throw new TypeError("The body has already been consumed.");if(e.locked)throw new TypeError("The stream is locked.");e[eve]=!0,yield*e}}a(GW,"consumeBody");function Ix(t){if(t.aborted)throw new JW("The operation was aborted.","AbortError")}a(Ix,"throwIfAborted");function ove(t){return{blob(){return S0(this,A=>{let r=uve(this);return r==="failure"?r="":r&&(r=nve(r)),new Kxe([A],{type:r})},t)},arrayBuffer(){return S0(this,A=>new Uint8Array(A).buffer,t)},text(){return S0(this,zW,t)},json(){return S0(this,dve,t)},async formData(){Qx.brandCheck(this,t),Ix(this[gc]);let A=this.headers.get("Content-Type");if(/multipart\/form-data/.test(A)){let r={};for(let[o,c]of this.headers)r[o.toLowerCase()]=c;let i=new HW,n;try{n=new Jxe({headers:r,preservePath:!0})}catch(o){throw new JW(`${o}`,"AbortError")}n.on("field",(o,c)=>{i.append(o,c)}),n.on("file",(o,c,l,d,u)=>{let p=[];if(d==="base64"||d.toLowerCase()==="base64"){let g="";c.on("data",h=>{g+=h.toString().replace(/[\r\n]/gm,"");let m=g.length-g.length%4;p.push(Buffer.from(g.slice(0,m),"base64")),g=g.slice(m)}),c.on("end",()=>{p.push(Buffer.from(g,"base64")),i.append(o,new YW(p,l,{type:u}))})}else c.on("data",g=>{p.push(g)}),c.on("end",()=>{i.append(o,new YW(p,l,{type:u}))})});let s=new Promise((o,c)=>{n.on("finish",o),n.on("error",l=>c(new TypeError(l)))});if(this.body!==null)for await(let o of GW(this[gc].body))n.write(o);return n.end(),await s,i}else if(/application\/x-www-form-urlencoded/.test(A)){let r;try{let n="",s=new TextDecoder("utf-8",{ignoreBOM:!0});for await(let o of GW(this[gc].body)){if(!VW(o))throw new TypeError("Expected Uint8Array chunk");n+=s.decode(o,{stream:!0})}n+=s.decode(),r=new URLSearchParams(n)}catch(n){throw Object.assign(new TypeError,{cause:n})}let i=new HW;for(let[n,s]of r)i.append(n,s);return i}else throw await Promise.resolve(),Ix(this[gc]),Qx.errors.exception({header:`${t.name}.formData`,message:"Could not parse content as FormData."})}}}a(ove,"bodyMixinMethods");function cve(t){Object.assign(t.prototype,ove(t))}a(cve,"mixinBody");async function S0(t,e,A){if(Qx.brandCheck(t,A),Ix(t[gc]),lve(t[gc].body))throw new TypeError("Body is unusable");let r=jxe(),i=a(s=>r.reject(s),"errorSteps"),n=a(s=>{try{r.resolve(e(s))}catch(o){i(o)}},"successSteps");return t[gc].body==null?(n(new Uint8Array),r.promise):(await Xxe(t[gc].body,n,i),r.promise)}a(S0,"specConsumeBody");function lve(t){return t!=null&&(t.stream.locked||Pg.isDisturbed(t.stream))}a(lve,"bodyUnusable");function zW(t){return t.length===0?"":(t[0]===239&&t[1]===187&&t[2]===191&&(t=t.subarray(3)),new TextDecoder().decode(t))}a(zW,"utf8DecodeBytes");function dve(t){return JSON.parse(zW(t))}a(dve,"parseJSONFromBytes");function uve(t){let{headersList:e}=t[gc],A=e.get("content-type");return A===null?"failure":ive(A)}a(uve,"bodyMimeType");jW.exports={extractBody:WW,safelyExtractBody:sve,cloneBody:ave,mixinBody:cve}});var $W=E((ACt,KW)=>{"use strict";var{InvalidArgumentError:Zt,NotSupportedError:pve}=Xt(),hc=require("assert"),{kHTTP2BuildRequest:gve,kHTTP2CopyHeaders:hve,kHTTP1BuildRequest:Eve}=hA(),Vn=dt(),XW=/^[\^_`a-zA-Z\-0-9!#$%&'*+.|~]+$/,ZW=/[^\t\x20-\x7e\x80-\xff]/,mve=/[^\u0021-\u00ff]/,Ec=Symbol("handler"),ar={},yx;try{let t=require("diagnostics_channel");ar.create=t.channel("undici:request:create"),ar.bodySent=t.channel("undici:request:bodySent"),ar.headers=t.channel("undici:request:headers"),ar.trailers=t.channel("undici:request:trailers"),ar.error=t.channel("undici:request:error")}catch{ar.create={hasSubscribers:!1},ar.bodySent={hasSubscribers:!1},ar.headers={hasSubscribers:!1},ar.trailers={hasSubscribers:!1},aLine truncated
|
||||
`),this.body=f.stream,this.contentLength=f.length}else Vn.isBlobLike(i)&&this.contentType==null&&i.type&&(this.contentType=i.type,this.headers+=`content-type: ${i.type}\r
|
||||
`);Vn.validateHandler(m,r,l),this.servername=Vn.getServerName(this.host),this[Ec]=m,ar.create.hasSubscribers&&ar.create.publish({request:this})}onBodySent(e){if(this[Ec].onBodySent)try{this[Ec].onBodySent(e)}catch(A){this.onError(A)}}onRequestSent(){ar.bodySent.hasSubscribers&&ar.bodySent.publish({request:this})}onConnect(e){return hc(!this.aborted),hc(!this.completed),this[Ec].onConnect(e)}onHeaders(e,A,r,i){return hc(!this.aborted),hc(!this.completed),ar.headers.hasSubscribers&&ar.headers.publish({request:this,response:{statusCode:e,headers:A,statusText:i}}),this[Ec].onHeaders(e,A,r,i)}onData(e){return hc(!this.aborted),hc(!this.completed),this[Ec].onData(e)}onUpgrade(e,A,r){return hc(!this.aborted),hc(!this.completed),this[Ec].onUpgrade(e,A,r)}onComplete(e){return hc(!this.aborted),this.completed=!0,ar.trailers.hasSubscribers&&ar.trailers.publish({request:this,trailers:e}),this[Ec].onComplete(e)}onError(e){if(ar.error.hasSubscribers&&ar.error.publish({request:this,error:e}),!this.aborted)return this.aborted=!0,this[Ec].onError(e)}addHeader(e,A){return tf(this,e,A),this}static[Eve](e,A,r){return new t(e,A,r)}static[gve](e,A,r){let i=A.headers;A={...A,headers:null};let n=new t(e,A,r);if(n.headers={},Array.isArray(i)){if(i.length%2!==0)throw new Zt("headers array must be even");for(let s=0;s<i.length;s+=2)tf(n,i[s],i[s+1],!0)}else if(i&&typeof i=="object"){let s=Object.keys(i);for(let o=0;o<s.length;o++){let c=s[o];tf(n,c,i[c],!0)}}else if(i!=null)throw new Zt("headers must be an object or an array");return n}static[hve](e){let A=e.split(`\r
|
||||
`),r={};for(let i of A){let[n,s]=i.split(": ");s==null||s.length===0||(r[n]?r[n]+=`,${s}`:r[n]=s)}return r}};function su(t,e,A){if(e&&typeof e=="object")throw new Zt(`invalid ${t} header`);if(e=e!=null?`${e}`:"",ZW.exec(e)!==null)throw new Zt(`invalid ${t} header`);return A?e:`${t}: ${e}\r
|
||||
`}a(su,"processHeaderValue");function tf(t,e,A,r=!1){if(A&&typeof A=="object"&&!Array.isArray(A))throw new Zt(`invalid ${e} header`);if(A===void 0)return;if(t.host===null&&e.length===4&&e.toLowerCase()==="host"){if(ZW.exec(A)!==null)throw new Zt(`invalid ${e} header`);t.host=A}else if(t.contentLength===null&&e.length===14&&e.toLowerCase()==="content-length"){if(t.contentLength=parseInt(A,10),!Number.isFinite(t.contentLength))throw new Zt("invalid content-length header")}else if(t.contentType===null&&e.length===12&&e.toLowerCase()==="content-type")t.contentType=A,r?t.headers[e]=su(e,A,r):t.headers+=su(e,A);else{if(e.length===17&&e.toLowerCase()==="transfer-encoding")throw new Zt("invalid transfer-encoding header");if(e.length===10&&e.toLowerCase()==="connection"){let i=typeof A=="string"?A.toLowerCase():null;if(i!=="close"&&i!=="keep-alive")throw new Zt("invalid connection header");i==="close"&&(t.reset=!0)}else{if(e.length===10&&e.toLowerCase()==="keep-alive")throw new Zt("invalid keep-alive header");if(e.length===7&&e.toLowerCase()==="upgrade")throw new Zt("invalid upgrade header");if(e.length===6&&e.toLowerCase()==="expect")throw new pve("expect header not supported");if(XW.exec(e)===null)throw new Zt("invalid header key");if(Array.isArray(A))for(let i=0;i<A.length;i++)r?t.headers[e]?t.headers[e]+=`,${su(e,A[i],r)}`:t.headers[e]=su(e,A[i],r):t.headers+=su(e,A[i]);else r?t.headers[e]=su(e,A,r):t.headers+=su(e,A)}}}a(tf,"processHeader");KW.exports=wx});var x0=E((iCt,ez)=>{"use strict";var Cve=require("events"),bx=class extends Cve{static{a(this,"Dispatcher")}dispatch(){throw new Error("not implemented")}close(){throw new Error("not implemented")}destroy(){throw new Error("not implemented")}};ez.exports=bx});var rf=E((sCt,tz)=>{"use strict";var fve=x0(),{ClientDestroyedError:Nx,ClientClosedError:Qve,InvalidArgumentError:qg}=Xt(),{kDestroy:Bve,kClose:Ive,kDispatch:Rx,kInterceptors:au}=hA(),Hg=Symbol("destroyed"),Af=Symbol("closed"),mc=Symbol("onDestroyed"),Yg=Symbol("onClosed"),v0=Symbol("Intercepted Dispatch"),Dx=class extends fve{static{a(this,"DispatcherBase")}constructor(){super(),this[Hg]=!1,this[mc]=null,this[Af]=!1,this[Yg]=[]}get destroyed(){return this[Hg]}get closed(){return this[Af]}get interceptors(){return this[au]}set interceptors(e){if(e){for(let A=e.length-1;A>=0;A--)if(typeof this[au][A]!="function")throw new qg("interceptor must be an function")}this[au]=e}close(e){if(e===void 0)return new Promise((r,i)=>{this.close((n,s)=>n?i(n):r(s))});if(typeof e!="function")throw new qg("invalid callback");if(this[Hg]){queueMicrotask(()=>e(new Nx,null));return}if(this[Af]){this[Yg]?this[Yg].push(e):queueMicrotask(()=>e(null,null));return}this[Af]=!0,this[Yg].push(e);let A=a(()=>{let r=this[Yg];this[Yg]=null;for(let i=0;i<r.length;i++)r[i](null,null)},"onClosed");this[Ive]().then(()=>this.destroy()).then(()=>{queueMicrotask(A)})}destroy(e,A){if(typeof e=="function"&&(A=e,e=null),A===void 0)return new Promise((i,n)=>{this.destroy(e,(s,o)=>s?n(s):i(o))});if(typeof A!="function")throw new qg("invalid callback");if(this[Hg]){this[mc]?this[mc].push(A):queueMicrotask(()=>A(null,null));return}e||(e=new Nx),this[Hg]=!0,this[mc]=this[mc]||[],this[mc].push(A);let r=a(()=>{let i=this[mc];this[mc]=null;for(let n=0;n<i.length;n++)i[n](null,null)},"onDestroyed");this[Bve](e).then(()=>{queueMicrotask(r)})}[v0](e,A){if(!this[au]||this[au].length===0)return this[v0]=this[Rx],this[Rx](e,A);let r=this[Rx].bind(this);for(let i=this[au].length-1;i>=0;i--)r=this[au][i](r);return this[v0]=r,r(e,A)}dispatch(e,A){if(!A||typeof A!="object")throw new qg("handler must be an object");try{if(!e||typeof e!="object")throw new qg("opts must be an object.");if(this[Hg]||this[mc])throw new Nx;if(this[Af])throw new Qve;return this[v0](e,A)}catch(r){if(typeof A.onError!="function")throw new qg("invalid onError method");return A.onError(r),!1}}};tz.exports=Dx});var nf=E((lCt,iz)=>{"use strict";var yve=require("net"),Az=require("assert"),rz=dt(),{InvalidArgumentError:wve,ConnectTimeoutError:bve}=Xt(),Sx,xx;global.FinalizationRegistry&&!process.env.NODE_V8_COVERAGE?xx=class{static{a(this,"WeakSessionCache")}constructor(e){this._maxCachedSessions=e,this._sessionCache=new Map,this._sessionRegistry=new global.FinalizationRegistry(A=>{if(this._sessionCache.size<this._maxCachedSessions)return;let r=this._sessionCache.get(A);r!==void 0&&r.deref()===void 0&&this._sessionCache.delete(A)})}get(e){let A=this._sessionCache.get(e);return A?A.deref():null}set(e,A){this._maxCachedSessions!==0&&(this._sessionCache.set(e,new WeakRef(A)),this._sessionRegistry.register(A,e))}}:xx=class{static{a(this,"SimpleSessionCache")}constructor(e){this._maxCachedSessions=e,this._sessionCache=new Map}get(e){return this._sessionCache.get(e)}set(e,A){if(this._maxCachedSessions!==0){if(this._sessionCache.size>=this._maxCachedSessions){let{value:r}=this._sessionCache.keys().next();this._sessionCache.delete(r)}this._sessionCache.set(e,A)}}};function Nve({allowH2:t,maxCachedSessi
Line truncated
|
||||
`,this[Bz]=c??3e5,this[Qz]=i??3e5,this[df]=b??!0,this[A3e]=C,this[uf]=N,this[Dl]=null,this[yz]=w>-1?w:-1,this[po]="h1",this[zn]=null,this[O0]=v?{openStreams:0,maxConcurrentStreams:x??100}:null,this[wz]=`${this[Zr].hostname}${this[Zr].port?`:${this[Zr].port}`:""}`,this[aA]=[],this[oA]=0,this[Wn]=0}get pipelining(){return this[xl]}set pipelining(e){this[xl]=e,jn(this,!0)}get[lu](){return this[aA].length-this[Wn]}get[wA](){return this[Wn]-this[oA]}get[cu](){return this[aA].length-this[oA]}get[t3e](){return!!this[kA]&&!this[Vg]&&!this[kA].destroyed}get[_x](){let e=this[kA];return e&&(e[Ti]||e[fc]||e[zg])||this[cu]>=(this[xl]||1)||this[lu]>0}[e3e](e){Dz(this),this.once("connect",e)}[n3e](e,A){let r=e.origin||this[Zr].origin,i=this[po]==="h2"?Mx[a3e](r,e,A):Mx[c3e](r,e,A);return this[aA].push(i),this[ou]||(ge.bodyLength(i.body)==null&&ge.isIterable(i.body)?(this[ou]=1,process.nextTick(jn,this)):jn(this,!0)),this[ou]&&this[Sl]!==2&&this[_x]&&(this[Sl]=2),this[Sl]<2}async[r3e](){return new Promise(e=>{this[cu]?this[Dl]=e:e(null)})}async[i3e](e){return new Promise(A=>{let r=this[aA].splice(this[Wn]);for(let n=0;n<r.length;n++){let s=r[n];$r(this,s,e)}let i=a(()=>{this[Dl]&&(this[Dl](),this[Dl]=null),A()},"callback");this[zn]!=null&&(ge.destroy(this[zn],e),this[zn]=null,this[O0]=null),this[kA]?ge.destroy(this[kA].on("close",i),e):queueMicrotask(i),jn(this)})}};function m3e(t){te(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[kA][Kr]=t,Y0(this[uo],t)}a(m3e,"onHttp2SessionError");function C3e(t,e,A){let r=new lo(`HTTP/2: "frameError" received - type ${t}, code ${e}`);A===0&&(this[kA][Kr]=r,Y0(this[uo],r))}a(C3e,"onHttp2FrameError");function f3e(){ge.destroy(this,new Wg("other side closed")),ge.destroy(this[kA],new Wg("other side closed"))}a(f3e,"onHttp2SessionEnd");function Q3e(t){let e=this[uo],A=new lo(`HTTP/2: "GOAWAY" frame received with code ${t}`);if(e[kA]=null,e[zn]=null,e.destroyed){te(this[lu]===0);let r=e[aA].splice(e[oA]);for(let i=0;i<r.length;i++){let n=r[i];$r(this,n,A)}}else if(e[wA]>0){let r=e[aA][e[oA]];e[aA][e[oA]++]=null,$r(e,r,A)}e[Wn]=e[oA],te(e[wA]===0),e.emit("disconnect",e[Zr],[e],A),jn(e)}a(Q3e,"onHTTP2GoAway");var ao=sz(),B3e=L0(),I3e=Buffer.alloc(0);async function y3e(){let t=process.env.JEST_WORKER_ID?Lx():void 0,e;try{e=await WebAssembly.compile(Buffer.from(pz(),"base64"))}catch{e=await WebAssembly.compile(Buffer.from(t||Lx(),"base64"))}return await WebAssembly.instantiate(e,{env:{wasm_on_url:(A,r,i)=>0,wasm_on_status:(A,r,i)=>{te.strictEqual(Er.ptr,A);let n=r-co+oo.byteOffset;return Er.onStatus(new U0(oo.buffer,n,i))||0},wasm_on_message_begin:A=>(te.strictEqual(Er.ptr,A),Er.onMessageBegin()||0),wasm_on_header_field:(A,r,i)=>{te.strictEqual(Er.ptr,A);let n=r-co+oo.byteOffset;return Er.onHeaderField(new U0(oo.buffer,n,i))||0},wasm_on_header_value:(A,r,i)=>{te.strictEqual(Er.ptr,A);let n=r-co+oo.byteOffset;return Er.onHeaderValue(new U0(oo.buffer,n,i))||0},wasm_on_headers_complete:(A,r,i,n)=>(te.strictEqual(Er.ptr,A),Er.onHeadersComplete(r,!!i,!!n)||0),wasm_on_body:(A,r,i)=>{te.strictEqual(Er.ptr,A);let n=r-co+oo.byteOffset;return Er.onBody(new U0(oo.buffer,n,i))||0},wasm_on_message_complete:A=>(te.strictEqual(Er.ptr,A),Er.onMessageComplete()||0)}})}a(y3e,"lazyllhttp");var Tx=null,qx=y3e();qx.catch();var Er=null,oo=null,T0=0,co=null,jg=1,_0=2,Hx=3,Yx=class{static{a(this,"Parser")}constructor(e,A,{exports:r}){te(Number.isFinite(e[M0])&&e[M0]>0),this.llhttp=r,this.ptr=this.llhttp.llhttp_alloc(ao.TYPE.RESPONSE),this.client=e,this.socket=A,this.timeout=null,this.timeoutValue=null,this.timeoutType=null,this.statusCode=null,this.statusText="",this.upgrade=!1,this.headers=[],this.headersSize=0,this.headersMaxSize=e[M0],this.shouldKeepAlive=!1,this.paused=!1,this.resume=this.resume.bind(this),this.bytesRead=0,this.keepAlive="",this.contentLength="",this.connection="",this.maxResponseSize=e[yz]}setTimeout(e,A){this.timeoutType=A,e!==this.timeoutValue?(Ux.clearTimeout(this.timeout),e?(this.timeout=Ux.setTimeout(w3e,e,this),this.timeout.unref&&this.timeout.unref()):this.timeout=null,this.timeoutValue=e):this.timeout&&this.timeout.refresh&&this.timeout.refresh()}resume(){this.socket.destroyed||!this.paused||(te(this.ptr!=null),te(Er==null),this.llhttp.llhttp_resume(this.ptr),te(this.timeoutType===_0),this.timeout&&this.timeout.refresh&&this.timeout.refresh(),this.paused=!1,this.execute(this.socket.read()||I3e),this.readMore())}readMore(){for(;!this.paused&&this.ptr;){let e=this.socket.read();if(e===null)break;this.execute(e)}}execute(e){te(this.ptr!=null),te(Er==null),te(!this.paused);let{socket:A,llhttp:r}=this;e.length>T0&&(co&&r.free(co),T0=Math.ceil(e.length/4096)*4096,co=r.malloc(T0)),new Uint8Array(r.memory.buffer,co,T0).set(e);try{let i;try{oo=e,Er=this,i=r.llhttp_execute(this.ptr,co,e.length)}catch(s){throw s}finally{Er=null,oo=null}let n=r.llhttp_get_error_pos(this.ptr)-co;if(i===ao.ERROR.PAUSED_UPGRADE)this.onUpgrade(e.slice(n));else if(i===ao.ERROR.PAUSED)this.paused=!0,A.unshift(e.slice(n));e
Line truncated
|
||||
`;return typeof n=="string"?g+=`host: ${n}\r
|
||||
`:g+=t[mz],s?g+=`connection: upgrade\r
|
||||
upgrade: ${s}\r
|
||||
`:t[xl]&&!p[Ti]?g+=`connection: keep-alive\r
|
||||
`:g+=`connection: close\r
|
||||
`,o&&(g+=o),mi.sendHeaders.hasSubscribers&&mi.sendHeaders.publish({request:e,headers:g,socket:p}),A?ge.isBuffer(A)?(te(u===A.byteLength,"buffer body must have content length"),p.cork(),p.write(`${g}content-length: ${u}\r
|
||||
\r
|
||||
`,"latin1"),p.write(A),p.uncork(),e.onBodySent(A),e.onRequestSent(),d||(p[Ti]=!0)):ge.isBlobLike(A)?typeof A.stream=="function"?q0({body:A.stream(),client:t,request:e,socket:p,contentLength:u,header:g,expectsPayload:d}):xz({body:A,client:t,request:e,socket:p,contentLength:u,header:g,expectsPayload:d}):ge.isStream(A)?Sz({body:A,client:t,request:e,socket:p,contentLength:u,header:g,expectsPayload:d}):ge.isIterable(A)?q0({body:A,client:t,request:e,socket:p,contentLength:u,header:g,expectsPayload:d}):te(!1):(u===0?p.write(`${g}content-length: 0\r
|
||||
\r
|
||||
`,"latin1"):(te(u===null,"no body must not have content length"),p.write(`${g}\r
|
||||
`,"latin1")),e.onRequestSent()),!0}a(N3e,"write");function R3e(t,e,A){let{body:r,method:i,path:n,host:s,upgrade:o,expectContinue:c,signal:l,headers:d}=A,u;if(typeof d=="string"?u=Mx[o3e](d.trim()):u=d,o)return $r(t,A,new Error("Upgrade not supported for H2")),!1;try{A.onConnect(b=>{A.aborted||A.completed||$r(t,A,b||new Jx)})}catch(b){$r(t,A,b)}if(A.aborted)return!1;let p,g=t[O0];if(u[l3e]=s||t[wz],u[d3e]=i,i==="CONNECT")return e.ref(),p=e.request(u,{endStream:!1,signal:l}),p.id&&!p.pending?(A.onUpgrade(null,null,p),++g.openStreams):p.once("ready",()=>{A.onUpgrade(null,null,p),++g.openStreams}),p.once("close",()=>{g.openStreams-=1,g.openStreams===0&&e.unref()}),!0;u[u3e]=n,u[p3e]="https";let h=i==="PUT"||i==="POST"||i==="PATCH";r&&typeof r.read=="function"&&r.read(0);let m=ge.bodyLength(r);if(m==null&&(m=A.contentLength),(m===0||!h)&&(m=null),A.contentLength!=null&&A.contentLength!==m){if(t[df])return $r(t,A,new Cc),!1;process.emitWarning(new Cc)}m!=null&&(te(r,"no body must not have content length"),u[g3e]=`${m}`),e.ref();let f=i==="GET"||i==="HEAD";return c?(u[h3e]="100-continue",p=e.request(u,{endStream:f,signal:l}),p.once("continue",B)):(p=e.request(u,{endStream:f,signal:l}),B()),++g.openStreams,p.once("response",b=>{A.onHeaders(Number(b[E3e]),b,p.resume.bind(p),"")===!1&&p.pause()}),p.once("end",()=>{A.onComplete([])}),p.on("data",b=>{A.onData(b)===!1&&p.pause()}),p.once("close",()=>{g.openStreams-=1,g.openStreams===0&&e.unref()}),p.once("error",function(b){t[zn]&&!t[zn].destroyed&&!this.closed&&!this.destroyed&&(g.streams-=1,ge.destroy(p,b))}),p.once("frameError",(b,I)=>{let C=new lo(`HTTP/2: "frameError" received - type ${b}, code ${I}`);$r(t,A,C),t[zn]&&!t[zn].destroyed&&!this.closed&&!this.destroyed&&(g.streams-=1,ge.destroy(p,C))}),!0;function B(){r?ge.isBuffer(r)?(te(m===r.byteLength,"buffer body must have content length"),p.cork(),p.write(r),p.uncork(),p.end(),A.onBodySent(r),A.onRequestSent()):ge.isBlobLike(r)?typeof r.stream=="function"?q0({client:t,request:A,contentLength:m,h2stream:p,expectsPayload:h,body:r.stream(),socket:t[kA],header:""}):xz({body:r,client:t,request:A,contentLength:m,expectsPayload:h,h2stream:p,header:"",socket:t[kA]}):ge.isStream(r)?Sz({body:r,client:t,request:A,contentLength:m,expectsPayload:h,socket:t[kA],h2stream:p,header:""}):ge.isIterable(r)?q0({body:r,client:t,request:A,contentLength:m,expectsPayload:h,header:"",h2stream:p,socket:t[kA]}):te(!1):A.onRequestSent()}a(B,"writeBodyH2")}a(R3e,"writeH2");function Sz({h2stream:t,body:e,client:A,request:r,socket:i,contentLength:n,header:s,expectsPayload:o}){if(te(n!==0||A[wA]===0,"stream body cannot be pipelined"),A[po]==="h2"){let m=function(f){r.onBodySent(f)};a(m,"onPipeData");let h=Gve(e,t,f=>{f?(ge.destroy(e,f),ge.destroy(t,f)):r.onRequestSent()});h.on("data",m),h.once("end",()=>{h.removeListener("data",m),ge.destroy(h)});return}let c=!1,l=new H0({socket:i,request:r,contentLength:n,client:A,expectsPayload:o,header:s}),d=a(function(h){if(!c)try{!l.write(h)&&this.pause&&this.pause()}catch(m){ge.destroy(this,m)}},"onData"),u=a(function(){c||e.resume&&e.resume()},"onDrain"),p=a(function(){g(new Jx)},"onAbort"),g=a(function(h){if(!c){if(c=!0,te(i.destroyed||i[fc]&&A[wA]<=1),i.off("drain",u).off("error",g),e.removeListener("data",d).removeListener("end",g).removeListener("error",g).removeListener("close",p),!h)try{l.end()}catch(m){h=m}l.destroy(h),h&&(h.code!=="UND_ERR_INFO"||h.message!=="reset")?ge.destroy(e,h):ge.destroy(e)}},"onFinished");e.on("data",d).on("end",g).on("error",g).on("close",p),e.resume&&e.resume(),i.on("drain",u).on("error",g)}a(Sz,"writeStream");async function xz({h2stream:t,body:e,client:A,request:r,socket:i,contentLength:n,header:s,expectsPayload:o}){te(n===e.size,"blob body must have content length");let c=A[po]==="h2";try{if(n!=null&&n!==e.size)throw new Cc;let l=Buffer.from(await e.arrayBuffer());c?(t.cork(),t.write(l),t.uncork()):(i.cork(),i.write(`${s}content-length: ${n}\r
|
||||
\r
|
||||
`,"latin1"),i.write(l),i.uncork()),r.onBodySent(l),r.onRequestSent(),o||(i[Ti]=!0),jn(A)}catch(l){ge.destroy(c?t:i,l)}}a(xz,"writeBlob");async function q0({h2stream:t,body:e,client:A,request:r,socket:i,contentLength:n,header:s,expectsPayload:o}){te(n!==0||A[wA]===0,"iterator body cannot be pipelined");let c=null;function l(){if(c){let p=c;c=null,p()}}a(l,"onDrain");let d=a(()=>new Promise((p,g)=>{te(c===null),i[Kr]?g(i[Kr]):c=p}),"waitForDrain");if(A[po]==="h2"){t.on("close",l).on("drain",l);try{for await(let p of e){if(i[Kr])throw i[Kr];let g=t.write(p);r.onBodySent(p),g||await d()}}catch(p){t.destroy(p)}finally{r.onRequestSent(),t.end(),t.off("close",l).off("drain",l)}return}i.on("close",l).on("drain",l);let u=new H0({socket:i,request:r,contentLength:n,client:A,expectsPayload:o,header:s});try{for await(let p of e){if(i[Kr])throw i[Kr];u.write(p)||await d()}u.end()}catch(p){u.destroy(p)}finally{i.off("close",l).off("drain",l)}}a(q0,"writeIterable");var H0=class{static{a(this,"AsyncWriter")}constructor({socket:e,request:A,contentLength:r,client:i,expectsPayload:n,header:s}){this.socket=e,this.request=A,this.contentLength=r,this.client=i,this.bytesWritten=0,this.expectsPayload=n,this.header=s,e[fc]=!0}write(e){let{socket:A,request:r,contentLength:i,client:n,bytesWritten:s,expectsPayload:o,header:c}=this;if(A[Kr])throw A[Kr];if(A.destroyed)return!1;let l=Buffer.byteLength(e);if(!l)return!0;if(i!==null&&s+l>i){if(n[df])throw new Cc;process.emitWarning(new Cc)}A.cork(),s===0&&(o||(A[Ti]=!0),i===null?A.write(`${c}transfer-encoding: chunked\r
|
||||
`,"latin1"):A.write(`${c}content-length: ${i}\r
|
||||
\r
|
||||
`,"latin1")),i===null&&A.write(`\r
|
||||
${l.toString(16)}\r
|
||||
`,"latin1"),this.bytesWritten+=l;let d=A.write(e);return A.uncork(),r.onBodySent(e),d||A[vA].timeout&&A[vA].timeoutType===jg&&A[vA].timeout.refresh&&A[vA].timeout.refresh(),d}end(){let{socket:e,contentLength:A,client:r,bytesWritten:i,expectsPayload:n,header:s,request:o}=this;if(o.onRequestSent(),e[fc]=!1,e[Kr])throw e[Kr];if(!e.destroyed){if(i===0?n?e.write(`${s}content-length: 0\r
|
||||
\r
|
||||
`,"latin1"):e.write(`${s}\r
|
||||
`,"latin1"):A===null&&e.write(`\r
|
||||
0\r
|
||||
\r
|
||||
`,"latin1"),A!==null&&i!==A){if(r[df])throw new Cc;process.emitWarning(new Cc)}e[vA].timeout&&e[vA].timeoutType===jg&&e[vA].timeout.refresh&&e[vA].timeout.refresh(),jn(r)}}destroy(e){let{socket:A,client:r}=this;A[fc]=!1,e&&(te(r[wA]<=1,"pipeline should only contain this request"),ge.destroy(A,e))}};function $r(t,e,A){try{e.onError(A),te(e.aborted)}catch(r){t.emit("error",r)}}a($r,"errorRequest");vz.exports=Px});var Fz=E((wCt,kz)=>{"use strict";var G0=class{static{a(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)}};kz.exports=class{static{a(this,"FixedQueue")}constructor(){this.head=this.tail=new G0}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new G0),this.head.push(e)}shift(){let e=this.tail,A=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next),A}}});var Uz=E((NCt,Lz)=>{var{kFree:D3e,kConnected:S3e,kPending:x3e,kQueued:v3e,kRunning:k3e,kSize:F3e}=hA(),du=Symbol("pool"),Vx=class{static{a(this,"PoolStats")}constructor(e){this[du]=e}get connected(){return this[du][S3e]}get free(){return this[du][D3e]}get pending(){return this[du][x3e]}get queued(){return this[du][v3e]}get running(){return this[du][k3e]}get size(){return this[du][F3e]}};Lz.exports=Vx});var Kx=E((DCt,Jz)=>{"use strict";var L3e=rf(),U3e=Fz(),{kConnected:Wx,kSize:Tz,kRunning:Mz,kPending:_z,kQueued:gf,kBusy:T3e,kFree:M3e,kUrl:_3e,kClose:O3e,kDestroy:P3e,kDispatch:q3e}=hA(),H3e=Uz(),cn=Symbol("clients"),Mi=Symbol("needDrain"),hf=Symbol("queue"),zx=Symbol("closed resolve"),jx=Symbol("onDrain"),Oz=Symbol("onConnect"),Pz=Symbol("onDisconnect"),qz=Symbol("onConnectionError"),Xx=Symbol("get dispatcher"),Yz=Symbol("add client"),Gz=Symbol("remove client"),Hz=Symbol("stats"),Zx=class extends L3e{static{a(this,"PoolBase")}constructor(){super(),this[hf]=new U3e,this[cn]=[],this[gf]=0;let e=this;this[jx]=a(function(r,i){let n=e[hf],s=!1;for(;!s;){let o=n.shift();if(!o)break;e[gf]--,s=!this.dispatch(o.opts,o.handler)}this[Mi]=s,!this[Mi]&&e[Mi]&&(e[Mi]=!1,e.emit("drain",r,[e,...i])),e[zx]&&n.isEmpty()&&Promise.all(e[cn].map(o=>o.close())).then(e[zx])},"onDrain"),this[Oz]=(A,r)=>{e.emit("connect",A,[e,...r])},this[Pz]=(A,r,i)=>{e.emit("disconnect",A,[e,...r],i)},this[qz]=(A,r,i)=>{e.emit("connectionError",A,[e,...r],i)},this[Hz]=new H3e(this)}get[T3e](){return this[Mi]}get[Wx](){return this[cn].filter(e=>e[Wx]).length}get[M3e](){return this[cn].filter(e=>e[Wx]&&!e[Mi]).length}get[_z](){let e=this[gf];for(let{[_z]:A}of this[cn])e+=A;return e}get[Mz](){let e=0;for(let{[Mz]:A}of this[cn])e+=A;return e}get[Tz](){let e=this[gf];for(let{[Tz]:A}of this[cn])e+=A;return e}get stats(){return this[Hz]}async[O3e](){return this[hf].isEmpty()?Promise.all(this[cn].map(e=>e.close())):new Promise(e=>{this[zx]=e})}async[P3e](e){for(;;){let A=this[hf].shift();if(!A)break;A.handler.onError(e)}return Promise.all(this[cn].map(A=>A.destroy(e)))}[q3e](e,A){let r=this[Xx]();return r?r.dispatch(e,A)||(r[Mi]=!0,this[Mi]=!this[Xx]()):(this[Mi]=!0,this[hf].push({opts:e,handler:A}),this[gf]++),!this[Mi]}[Yz](e){return e.on("drain",this[jx]).on("connect",this[Oz]).on("disconnect",this[Pz]).on("connectionError",this[qz]),this[cn].push(e),this[Mi]&&process.nextTick(()=>{this[Mi]&&this[jx](e[_3e],[this,e])}),this}[Gz](e){e.close(()=>{let A=this[cn].indexOf(e);A!==-1&&this[cn].splice(A,1)}),this[Mi]=this[cn].some(A=>!A[Mi]&&A.closed!==!0&&A.destroyed!==!0)}};Jz.exports={PoolBase:Zx,kClients:cn,kNeedDrain:Mi,kAddClient:Yz,kRemoveClient:Gz,kGetDispatcher:Xx}});var Xg=E((xCt,jz)=>{"use strict";var{PoolBase:Y3e,kClients:Vz,kNeedDrain:G3e,kAddClient:J3e,kGetDispatcher:V3e}=Kx(),W3e=pf(),{InvalidArgumentError:$x}=Xt(),ev=dt(),{kUrl:Wz,kInterceptors:z3e}=hA(),j3e=nf(),tv=Symbol("options"),Av=Symbol("connections"),zz=Symbol("factory");function X3e(t,e){return new W3e(t,e)}a(X3e,"defaultFactory");var rv=class extends Y3e{static{a(this,"Pool")}constructor(e,{connections:A,factory:r=X3e,connect:i,connectTimeout:n,tls:s,maxCachedSessions:o,socketPath:c,autoSelectFamily:l,autoSelectFamilyAttemptTimeout:d,allowH2:u,...p}={}){if(super(),A!=null&&(!Number.isFinite(A)||A<0))throw new $x("invalid connections");if(typeof r!="function")throw new $x("factory must be a function.");if(i!=null&&typeof i!="function"&&typeof i!="object")throw new $x("connect must be a function or an object");typeof i!="function"&&(i=j3e({...s,maxCachedSessions:o,allowH2:u,socketPath:c,timeout:n??1e4,...ev.nodeHasAutoSelectFamily&&l?{autoSelectFamily:l,autoSelectFamilyAttemptTimeout:d}:void 0,...i})),this[z3e]=p.interceptors&&p.interceptors.Pool&&Array.isArray(p.interceptors.Pool)?p.interceptors.Pool:[],this[Av]=A||null,this[Wz]=ev.parseOrigin(e),this[tv]={...e
Line truncated
|
||||
${r.count} ${r.noun} ${r.is} pending:
|
||||
|
||||
${e.format(A)}
|
||||
`.trim())}};RX.exports=qv});var LX=E((Bft,FX)=>{"use strict";var{kProxy:Z5e,kClose:K5e,kDestroy:$5e,kInterceptors:eke}=hA(),{URL:SX}=require("url"),xX=mf(),tke=Xg(),Ake=rf(),{InvalidArgumentError:Bf,RequestAbortedError:rke}=Xt(),vX=nf(),Qf=Symbol("proxy agent"),cy=Symbol("proxy client"),ly=Symbol("proxy headers"),Hv=Symbol("request tls settings"),ike=Symbol("proxy tls settings"),kX=Symbol("connect endpoint function");function nke(t){return t==="https:"?443:80}a(nke,"defaultProtocolPort");function ske(t){if(typeof t=="string"&&(t={uri:t}),!t||!t.uri)throw new Bf("Proxy opts.uri is mandatory");return{uri:t.uri,protocol:t.protocol||"https"}}a(ske,"buildProxyOptions");function ake(t,e){return new tke(t,e)}a(ake,"defaultFactory");var Yv=class extends Ake{static{a(this,"ProxyAgent")}constructor(e){if(super(e),this[Z5e]=ske(e),this[Qf]=new xX(e),this[eke]=e.interceptors&&e.interceptors.ProxyAgent&&Array.isArray(e.interceptors.ProxyAgent)?e.interceptors.ProxyAgent:[],typeof e=="string"&&(e={uri:e}),!e||!e.uri)throw new Bf("Proxy opts.uri is mandatory");let{clientFactory:A=ake}=e;if(typeof A!="function")throw new Bf("Proxy opts.clientFactory must be a function.");if(this[Hv]=e.requestTls,this[ike]=e.proxyTls,this[ly]=e.headers||{},e.auth&&e.token)throw new Bf("opts.auth cannot be used in combination with opts.token");e.auth?this[ly]["proxy-authorization"]=`Basic ${e.auth}`:e.token&&(this[ly]["proxy-authorization"]=e.token);let r=new SX(e.uri),{origin:i,port:n,host:s}=r,o=vX({...e.proxyTls});this[kX]=vX({...e.requestTls}),this[cy]=A(r,{connect:o}),this[Qf]=new xX({...e,connect:async(c,l)=>{let d=c.host;c.port||(d+=`:${nke(c.protocol)}`);try{let{socket:u,statusCode:p}=await this[cy].connect({origin:i,port:n,path:d,signal:c.signal,headers:{...this[ly],host:s}});if(p!==200&&(u.on("error",()=>{}).destroy(),l(new rke("Proxy response !== 200 when HTTP Tunneling"))),c.protocol!=="https:"){l(null,u);return}let g;this[Hv]?g=this[Hv].servername:g=c.servername,this[kX]({...c,servername:g,httpSocket:u},l)}catch(u){l(u)}}})}dispatch(e,A){let{host:r}=new SX(e.origin),i=oke(e.headers);return cke(i),this[Qf].dispatch({...e,headers:{...i,host:r}},A)}async[K5e](){await this[Qf].close(),await this[cy].close()}async[$5e](){await this[Qf].destroy(),await this[cy].destroy()}};function oke(t){if(Array.isArray(t)){let e={};for(let A=0;A<t.length;A+=2)e[t[A]]=t[A+1];return e}return t}a(oke,"buildHeaders");function cke(t){if(t&&Object.keys(t).find(A=>A.toLowerCase()==="proxy-authorization"))throw new Bf("Proxy-Authorization should be sent in ProxyAgent constructor")}a(cke,"throwIfProxyAuthIsSent");FX.exports=Yv});var sh=E((yft,_X)=>{"use strict";var UX=Symbol.for("undici.globalDispatcher.1"),{InvalidArgumentError:lke}=Xt(),dke=mf();MX()===void 0&&TX(new dke);function TX(t){if(!t||typeof t.dispatch!="function")throw new lke("Argument agent must implement Agent");Object.defineProperty(globalThis,UX,{value:t,writable:!0,enumerable:!1,configurable:!1})}a(TX,"setGlobalDispatcher");function MX(){return globalThis[UX]}a(MX,"getGlobalDispatcher");_X.exports={setGlobalDispatcher:TX,getGlobalDispatcher:MX}});var PX=E((Nft,OX)=>{"use strict";OX.exports=class{static{a(this,"DecoratorHandler")}constructor(e){this.handler=e}onConnect(...e){return this.handler.onConnect(...e)}onError(...e){return this.handler.onError(...e)}onUpgrade(...e){return this.handler.onUpgrade(...e)}onHeaders(...e){return this.handler.onHeaders(...e)}onData(...e){return this.handler.onData(...e)}onComplete(...e){return this.handler.onComplete(...e)}onBodySent(...e){return this.handler.onBodySent(...e)}}});var Cu=E((Dft,GX)=>{"use strict";var{kHeadersList:ln}=hA(),{kGuard:mu}=uc(),{kEnumerableProperty:ho}=dt(),{makeIterator:Gv,isValidHeaderName:If,isValidHeaderValue:qX}=Ts(),{webidl:Ze}=Ui(),uke=require("assert"),dn=Symbol("headers map"),un=Symbol("headers map sorted");function HX(t){let e=t.length;for(;/[\r\n\t ]/.test(t.charAt(--e)););return t.slice(0,e+1).replace(/^[\r\n\t ]+/,"")}a(HX,"headerValueNormalize");function YX(t,e){if(Array.isArray(e))for(let A of e){if(A.length!==2)throw Ze.errors.exception({header:"Headers constructor",message:`expected name/value pair to be length 2, found ${A.length}.`});t.append(A[0],A[1])}else if(typeof e=="object"&&e!==null)for(let[A,r]of Object.entries(e))t.append(A,r);else throw Ze.errors.conversionFailed({prefix:"Headers constructor",argument:"Argument 1",types:["sequence<sequence<ByteString>>","record<ByteString, ByteString>"]})}a(YX,"fill");var dy=class t{static{a(this,"HeadersList")}cookies=null;constructor(e){e instanceof t?(this[dn]=new Map(e[dn]),this[un]=e[un],this.cookies=e.cookies):(this[dn]=new Map(e),this[un]=null)}contains(e){return e=e.toLowerCase(),this[dn].has(e)}clear(){this[dn].clear(),this[un]=null,this.cookies=null}append(e,A){this[un]=null;let r=e.toLowerCase(),i=this[dn].get(r);if(i){let n=r==="cookie"?"; ":", ";this[dn].set(r,{name:i.name,value:`${i.value}${n}${A}`})}else this[dn].set(r,{name:e,value:A});r==="set-cookie"
Line truncated
|
||||
|
||||
Error Code : ${s.statusCode}
|
||||
|
||||
Error Message: ${s.message}`)})).result)===null||A===void 0?void 0:A.value;if(!n)throw new Error("Response json body do not have ID Token field");return n})}static getIDToken(e){return HK(this,void 0,void 0,function*(){try{let A=t.getIDTokenUrl();if(e){let i=encodeURIComponent(e);A=`${A}&audience=${i}`}YK.debug(`ID token url is ${A}`);let r=yield t.getCall(A);return YK.setSecret(r),r}catch(A){throw new Error(`Error message: ${A.message}`)}})}};Qh.OidcClient=L3});var _3=E(hn=>{"use strict";var U3=hn&&hn.__awaiter||function(t,e,A,r){function i(n){return n instanceof A?n:new A(function(s){s(n)})}return a(i,"adopt"),new(A||(A=Promise))(function(n,s){function o(d){try{l(r.next(d))}catch(u){s(u)}}a(o,"fulfilled");function c(d){try{l(r.throw(d))}catch(u){s(u)}}a(c,"rejected");function l(d){d.done?n(d.value):i(d.value).then(o,c)}a(l,"step"),l((r=r.apply(t,e||[])).next())})};Object.defineProperty(hn,"__esModule",{value:!0});hn.summary=hn.markdownSummary=hn.SUMMARY_DOCS_URL=hn.SUMMARY_ENV_VAR=void 0;var KUe=require("os"),T3=require("fs"),{access:$Ue,appendFile:eTe,writeFile:tTe}=T3.promises;hn.SUMMARY_ENV_VAR="GITHUB_STEP_SUMMARY";hn.SUMMARY_DOCS_URL="https://docs.github.com/actions/using-workflows/workflow-commands-for-github-actions#adding-a-job-summary";var M3=class{static{a(this,"Summary")}constructor(){this._buffer=""}filePath(){return U3(this,void 0,void 0,function*(){if(this._filePath)return this._filePath;let e=process.env[hn.SUMMARY_ENV_VAR];if(!e)throw new Error(`Unable to find environment variable for $${hn.SUMMARY_ENV_VAR}. Check if your runtime environment supports job summaries.`);try{yield $Ue(e,T3.constants.R_OK|T3.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,A,r={}){let i=Object.entries(r).map(([n,s])=>` ${n}="${s}"`).join("");return A?`<${e}${i}>${A}</${e}>`:`<${e}${i}>`}write(e){return U3(this,void 0,void 0,function*(){let A=!!e?.overwrite,r=yield this.filePath();return yield(A?tTe:eTe)(r,this._buffer,{encoding:"utf8"}),this.emptyBuffer()})}clear(){return U3(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,A=!1){return this._buffer+=e,A?this.addEOL():this}addEOL(){return this.addRaw(KUe.EOL)}addCodeBlock(e,A){let r=Object.assign({},A&&{lang:A}),i=this.wrap("pre",this.wrap("code",e),r);return this.addRaw(i).addEOL()}addList(e,A=!1){let r=A?"ol":"ul",i=e.map(s=>this.wrap("li",s)).join(""),n=this.wrap(r,i);return this.addRaw(n).addEOL()}addTable(e){let A=e.map(i=>{let n=i.map(s=>{if(typeof s=="string")return this.wrap("td",s);let{header:o,data:c,colspan:l,rowspan:d}=s,u=o?"th":"td",p=Object.assign(Object.assign({},l&&{colspan:l}),d&&{rowspan:d});return this.wrap(u,c,p)}).join("");return this.wrap("tr",n)}).join(""),r=this.wrap("table",A);return this.addRaw(r).addEOL()}addDetails(e,A){let r=this.wrap("details",this.wrap("summary",e)+A);return this.addRaw(r).addEOL()}addImage(e,A,r){let{width:i,height:n}=r||{},s=Object.assign(Object.assign({},i&&{width:i}),n&&{height:n}),o=this.wrap("img",null,Object.assign({src:e,alt:A},s));return this.addRaw(o).addEOL()}addHeading(e,A){let r=`h${A}`,i=["h1","h2","h3","h4","h5","h6"].includes(r)?r:"h1",n=this.wrap(i,e);return this.addRaw(n).addEOL()}addSeparator(){let e=this.wrap("hr",null);return this.addRaw(e).addEOL()}addBreak(){let e=this.wrap("br",null);return this.addRaw(e).addEOL()}addQuote(e,A){let r=Object.assign({},A&&{cite:A}),i=this.wrap("blockquote",e,r);return this.addRaw(i).addEOL()}addLink(e,A){let r=this.wrap("a",e,{href:A});return this.addRaw(r).addEOL()}},JK=new M3;hn.markdownSummary=JK;hn.summary=JK});var VK=E(En=>{"use strict";var ATe=En&&En.__createBinding||(Object.create?function(t,e,A,r){r===void 0&&(r=A),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[A]}})}:function(t,e,A,r){r===void 0&&(r=A),t[r]=e[A]}),rTe=En&&En.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),iTe=En&&En.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var A in t)A!=="default"&&Object.hasOwnProperty.call(t,A)&&ATe(e,t,A);return rTe(e,t),e};Object.defineProperty(En,"__esModule",{value:!0});En.toPlatformPath=En.toWin32Path=En.toPosixPath=void 0;var nTe=iTe(require("path"));function sTe(t){return t.replace(/[\\]/g,"/")}a(sTe,"toPosixPath");En.toPosixPath=sTe;function aTe(t){return t.replace(/[/]/g,"\\")}a(aTe,"toWin32Path");En.toWin32Path=aTe;function oTe(t){return t.replace(/[/\\]/g,nTe.sep)}a(oTe,"toPlatformPath");En.toPlatformPath=oTe});var $y=E(de=>{"use strict";var cTe=de&&de.__createBinding||(Object.create?function(t,e,A,r){r===void 0&&(r=A),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[A]}})}:function(t,e,A,r){r===voiLine truncated
|
||||
`).filter(r=>r!=="");return e&&e.trimWhitespace===!1?A:A.map(r=>r.trim())}a(ETe,"getMultilineInput");de.getMultilineInput=ETe;function mTe(t,e){let A=["true","True","TRUE"],r=["false","False","FALSE"],i=O3(t,e);if(A.includes(i))return!0;if(r.includes(i))return!1;throw new TypeError(`Input does not meet YAML 1.2 "Core Schema" specification: ${t}
|
||||
Support boolean input list: \`true | True | TRUE | false | False | FALSE\``)}a(mTe,"getBooleanInput");de.getBooleanInput=mTe;function CTe(t,e){if(process.env.GITHUB_OUTPUT||"")return wu.issueFileCommand("OUTPUT",wu.prepareKeyValueMessage(t,e));process.stdout.write(jK.EOL),Ys.issueCommand("set-output",{name:t},Bh.toCommandValue(e))}a(CTe,"setOutput");de.setOutput=CTe;function fTe(t){Ys.issue("echo",t?"on":"off")}a(fTe,"setCommandEcho");de.setCommandEcho=fTe;function QTe(t){process.exitCode=XK.Failure,ZK(t)}a(QTe,"setFailed");de.setFailed=QTe;function BTe(){return process.env.RUNNER_DEBUG==="1"}a(BTe,"isDebug");de.isDebug=BTe;function ITe(t){Ys.issueCommand("debug",{},t)}a(ITe,"debug");de.debug=ITe;function ZK(t,e={}){Ys.issueCommand("error",Bh.toCommandProperties(e),t instanceof Error?t.toString():t)}a(ZK,"error");de.error=ZK;function yTe(t,e={}){Ys.issueCommand("warning",Bh.toCommandProperties(e),t instanceof Error?t.toString():t)}a(yTe,"warning");de.warning=yTe;function wTe(t,e={}){Ys.issueCommand("notice",Bh.toCommandProperties(e),t instanceof Error?t.toString():t)}a(wTe,"notice");de.notice=wTe;function bTe(t){process.stdout.write(t+jK.EOL)}a(bTe,"info");de.info=bTe;function KK(t){Ys.issue("group",t)}a(KK,"startGroup");de.startGroup=KK;function $K(){Ys.issue("endgroup")}a($K,"endGroup");de.endGroup=$K;function NTe(t,e){return zK(this,void 0,void 0,function*(){KK(t);let A;try{A=yield e()}finally{$K()}return A})}a(NTe,"group");de.group=NTe;function RTe(t,e){if(process.env.GITHUB_STATE||"")return wu.issueFileCommand("STATE",wu.prepareKeyValueMessage(t,e));Ys.issueCommand("save-state",{name:t},Bh.toCommandValue(e))}a(RTe,"saveState");de.saveState=RTe;function DTe(t){return process.env[`STATE_${t}`]||""}a(DTe,"getState");de.getState=DTe;function STe(t){return zK(this,void 0,void 0,function*(){return yield uTe.OidcClient.getIDToken(t)})}a(STe,"getIDToken");de.getIDToken=STe;var xTe=_3();Object.defineProperty(de,"summary",{enumerable:!0,get:function(){return xTe.summary}});var vTe=_3();Object.defineProperty(de,"markdownSummary",{enumerable:!0,get:function(){return vTe.markdownSummary}});var P3=VK();Object.defineProperty(de,"toPosixPath",{enumerable:!0,get:function(){return P3.toPosixPath}});Object.defineProperty(de,"toWin32Path",{enumerable:!0,get:function(){return P3.toWin32Path}});Object.defineProperty(de,"toPlatformPath",{enumerable:!0,get:function(){return P3.toPlatformPath}})});var e$=E(fo=>{"use strict";var kTe=fo&&fo.__createBinding||(Object.create?function(t,e,A,r){r===void 0&&(r=A),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[A]}})}:function(t,e,A,r){r===void 0&&(r=A),t[r]=e[A]}),FTe=fo&&fo.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),LTe=fo&&fo.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var A in t)A!=="default"&&Object.hasOwnProperty.call(t,A)&&kTe(e,t,A);return FTe(e,t),e};Object.defineProperty(fo,"__esModule",{value:!0});fo.getOptions=void 0;var q3=LTe($y());function UTe(t){let e={followSymbolicLinks:!0,implicitDescendants:!0,omitBrokenSymbolicLinks:!0};return t&&(typeof t.followSymbolicLinks=="boolean"&&(e.followSymbolicLinks=t.followSymbolicLinks,q3.debug(`followSymbolicLinks '${e.followSymbolicLinks}'`)),typeof t.implicitDescendants=="boolean"&&(e.implicitDescendants=t.implicitDescendants,q3.debug(`implicitDescendants '${e.implicitDescendants}'`)),typeof t.omitBrokenSymbolicLinks=="boolean"&&(e.omitBrokenSymbolicLinks=t.omitBrokenSymbolicLinks,q3.debug(`omitBrokenSymbolicLinks '${e.omitBrokenSymbolicLinks}'`))),e}a(UTe,"getOptions");fo.getOptions=UTe});var t2=E(FA=>{"use strict";var TTe=FA&&FA.__createBinding||(Object.create?function(t,e,A,r){r===void 0&&(r=A),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[A]}})}:function(t,e,A,r){r===void 0&&(r=A),t[r]=e[A]}),MTe=FA&&FA.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),_Te=FA&&FA.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var A in t)A!=="default"&&Object.hasOwnProperty.call(t,A)&&TTe(e,t,A);return MTe(e,t),e},OTe=FA&&FA.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(FA,"__esModule",{value:!0});FA.safeTrimTrailingSeparator=FA.normalizeSeparators=FA.hasRoot=FA.hasAbsoluteRoot=FA.ensureAbsoluteRoot=FA.dirname=void 0;var e2=_Te(require("path")),bu=OTe(require("assert")),Ml=process.platform==="win32";function PTe(t){if(t=Y3(t),Ml&&/^\\\\[^\\]+(\\[^\\]+)?$/.test(t))return t;let e=e2.dirname(t);return Ml&&/^\\\\[^\\]+\\[^\\]+\\$/.test(e)&&(e=Y3(e)),e}a(PTe,"dirname");FA.dirname=PTe;function qTe(t,e){if(bu.default(t,"ensureAbsoluteRoot parameter 'root' must not be empty"),bu.default(e,"ensureAbsoluteRoot parameter 'itemPath' must not be empty"),H3(e))return e;if(Ml){if(e.match(/^[A-Z]:[^\\/]|^[A-Z]:$/i)){let A=process.cwd();returnLine truncated
|
||||
%s`,Q,Q,b,r);var N=b.type==="*"?W3:b.type==="?"?V3:"\\"+b.type;i=!0,r=r.slice(0,b.reStart)+N+"\\("+Q}h(),n&&(r+="\\\\");var S=!1;switch(r.charAt(0)){case"[":case".":case"(":S=!0}for(var w=o.length-1;w>-1;w--){var k=o[w],D=r.slice(0,k.reStart),v=r.slice(k.reStart,k.reEnd-8),x=r.slice(k.reEnd-8,k.reEnd),L=r.slice(k.reEnd);x+=L;var q=D.split("(").length-1,le=L;for(m=0;m<q;m++)le=le.replace(/\)[+*?]?/,"");L=le;var _="";L===""&&e!==r2&&(_="$");var rt=D+v+L+_+x;r=rt}if(r!==""&&i&&(r="(?=.)"+r),S&&(r=p+r),e===r2)return[r,i];if(!i)return E7e(t);var Se=A.nocase?"i":"";try{var vt=new RegExp("^"+r+"$",Se)}catch{return new RegExp("$.")}return vt._glob=t,vt._src=r,vt}a(g7e,"parse");As.makeRe=function(t,e){return new ei(t,e||{}).makeRe()};ei.prototype.makeRe=h7e;function h7e(){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,A=e.noglobstar?W3:e.dot?a7e:o7e,r=e.nocase?"i":"",i=t.map(function(n){return n.map(function(s){return s===z3?A:typeof s=="string"?m7e(s):s._src}).join("\\/")}).join("|");i="^(?:"+i+")$",this.negate&&(i="^(?!"+i+").*$");try{this.regexp=new RegExp(i,r)}catch{this.regexp=!1}return this.regexp}a(h7e,"makeRe");As.match=function(t,e,A){A=A||{};var r=new ei(e,A);return t=t.filter(function(i){return r.match(i)}),r.options.nonull&&!t.length&&t.push(e),t};ei.prototype.match=a(function(e,A){if(typeof A>"u"&&(A=this.partial),this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return e==="";if(e==="/"&&A)return!0;var r=this.options;Mf.sep!=="/"&&(e=e.split(Mf.sep).join("/")),e=e.split(B$),this.debug(this.pattern,"split",e);var i=this.set;this.debug(this.pattern,"set",i);var n,s;for(s=e.length-1;s>=0&&(n=e[s],!n);s--);for(s=0;s<i.length;s++){var o=i[s],c=e;r.matchBase&&o.length===1&&(c=[n]);var l=this.matchOne(c,o,A);if(l)return r.flipNegate?!0:!this.negate}return r.flipNegate?!1:this.negate},"match");ei.prototype.matchOne=function(t,e,A){var r=this.options;this.debug("matchOne",{this:this,file:t,pattern:e}),this.debug("matchOne",t.length,e.length);for(var i=0,n=0,s=t.length,o=e.length;i<s&&n<o;i++,n++){this.debug("matchOne loop");var c=e[n],l=t[i];if(this.debug(e,c,l),c===!1)return!1;if(c===z3){this.debug("GLOBSTAR",[e,c,l]);var d=i,u=n+1;if(u===o){for(this.debug("** at the end");i<s;i++)if(t[i]==="."||t[i]===".."||!r.dot&&t[i].charAt(0)===".")return!1;return!0}for(;d<s;){var p=t[d];if(this.debug(`
|
||||
globstar while`,t,d,e,u,p),this.matchOne(t.slice(d),e.slice(u),A))return this.debug("globstar found match!",d,s,p),!0;if(p==="."||p===".."||!r.dot&&p.charAt(0)==="."){this.debug("dot detected!",t,d,e,u);break}this.debug("globstar swallow a segment, and continue"),d++}return!!(A&&(this.debug(`
|
||||
>>> no match, partial?`,t,d,e,u),d===s))}var g;if(typeof c=="string"?(g=l===c,this.debug("string match",c,l,g)):(g=l.match(c),this.debug("pattern match",c,l,g)),!g)return!1}if(i===s&&n===o)return!0;if(i===s)return A;if(n===o)return i===s-1&&t[i]==="";throw new Error("wtf?")};function E7e(t){return t.replace(/\\(.)/g,"$1")}a(E7e,"globUnescape");function m7e(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}a(m7e,"regExpEscape")});var N$=E(Gs=>{"use strict";var C7e=Gs&&Gs.__createBinding||(Object.create?function(t,e,A,r){r===void 0&&(r=A),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[A]}})}:function(t,e,A,r){r===void 0&&(r=A),t[r]=e[A]}),f7e=Gs&&Gs.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),b$=Gs&&Gs.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var A in t)A!=="default"&&Object.hasOwnProperty.call(t,A)&&C7e(e,t,A);return f7e(e,t),e},Q7e=Gs&&Gs.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Gs,"__esModule",{value:!0});Gs.Path=void 0;var _f=b$(require("path")),Ol=b$(t2()),Of=Q7e(require("assert")),B7e=process.platform==="win32",j3=class{static{a(this,"Path")}constructor(e){if(this.segments=[],typeof e=="string")if(Of.default(e,"Parameter 'itemPath' must not be empty"),e=Ol.safeTrimTrailingSeparator(e),!Ol.hasRoot(e))this.segments=e.split(_f.sep);else{let A=e,r=Ol.dirname(A);for(;r!==A;){let i=_f.basename(A);this.segments.unshift(i),A=r,r=Ol.dirname(A)}this.segments.unshift(A)}else{Of.default(e.length>0,"Parameter 'itemPath' must not be an empty array");for(let A=0;A<e.length;A++){let r=e[A];Of.default(r,"Parameter 'itemPath' must not contain any empty segments"),r=Ol.normalizeSeparators(e[A]),A===0&&Ol.hasRoot(r)?(r=Ol.safeTrimTrailingSeparator(r),Of.default(r===Ol.dirname(r),"Parameter 'itemPath' root segment contains information for multiple segments"),this.segments.push(r)):(Of.default(!r.includes(_f.sep),"Parameter 'itemPath' contains unexpected path separators"),this.segments.push(r))}}}toString(){let e=this.segments[0],A=e.endsWith(_f.sep)||B7e&&/^[A-Z]:$/i.test(e);for(let r=1;r<this.segments.length;r++)A?A=!1:e+=_f.sep,e+=this.segments[r];return e}};Gs.Path=j3});var R$=E(Js=>{"use strict";var I7e=Js&&Js.__createBinding||(Object.create?function(t,e,A,r){r===void 0&&(r=A),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[A]}})}:function(t,e,A,r){r===void 0&&(r=A),t[r]=e[A]}),y7e=Js&&Js.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),K3=Js&&Js.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var A in t)A!=="default"&&Object.hasOwnProperty.call(t,A)&&I7e(e,t,A);return y7e(e,t),e},w7e=Js&&Js.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Js,"__esModule",{value:!0});Js.Pattern=void 0;var b7e=K3(require("os")),Pf=K3(require("path")),Cn=K3(t2()),Nu=w7e(require("assert")),N7e=w$(),X3=A2(),n2=N$(),wc=process.platform==="win32",Z3=class t{static{a(this,"Pattern")}constructor(e,A=!1,r,i){this.negate=!1;let n;if(typeof e=="string")n=e.trim();else{r=r||[],Nu.default(r.length,"Parameter 'segments' must not empty");let l=t.getLiteral(r[0]);Nu.default(l&&Cn.hasAbsoluteRoot(l),"Parameter 'segments' first element must be a root path"),n=new n2.Path(r).toString().trim(),e&&(n=`!${n}`)}for(;n.startsWith("!");)this.negate=!this.negate,n=n.substr(1).trim();n=t.fixupPattern(n,i),this.segments=new n2.Path(n).segments,this.trailingSeparator=Cn.normalizeSeparators(n).endsWith(Pf.sep),n=Cn.safeTrimTrailingSeparator(n);let s=!1,o=this.segments.map(l=>t.getLiteral(l)).filter(l=>!s&&!(s=l===""));this.searchPath=new n2.Path(o).toString(),this.rootRegExp=new RegExp(t.regExpEscape(o[0]),wc?"i":""),this.isImplicitPattern=A;let c={dot:!0,nobrace:!0,nocase:wc,nocomment:!0,noext:!0,nonegate:!0};n=wc?n.replace(/\\/g,"/"):n,this.minimatch=new N7e.Minimatch(n,c)}match(e){return this.segments[this.segments.length-1]==="**"?(e=Cn.normalizeSeparators(e),!e.endsWith(Pf.sep)&&this.isImplicitPattern===!1&&(e=`${e}${Pf.sep}`)):e=Cn.safeTrimTrailingSeparator(e),this.minimatch.match(e)?this.trailingSeparator?X3.MatchKind.Directory:X3.MatchKind.All:X3.MatchKind.None}partialMatch(e){return e=Cn.safeTrimTrailingSeparator(e),Cn.dirname(e)===e?this.rootRegExp.test(e):this.minimatch.matchOne(e.split(wc?/\\+/:/\/+/),this.minimatch.set[0],!0)}static globEscape(e){return(wc?e:e.replace(/\\/g,"\\\\")).replace(/(\[)(?=[^/]+\])/g,"[[]").replace(/\?/g,"[?]").replace(/\*/g,"[*]")}static fixupPattern(e,A){Nu.default(e,"pattern cannot be empty");let r=new n2.Path(e).segments.map(i=>t.getLiteral(i));if(Nu.default(r.every((i,n)=>(i!=="."||n===0)&&i!==".."),`Invalid pattern '${e}'. Relative pathing '.' and '..' is not allowed.`),Nu.default(!Cn.hasRoot(e)||r[0],`Invalid pattern '${e}'. Root segment must not contLine truncated
|
||||
`),e=e.replace(/\r/g,`
|
||||
`));let r=e.split(`
|
||||
`).map(n=>n.trim());for(let n of r)!n||n.startsWith("#")||i.patterns.push(new W4.Pattern(n));return i.searchPaths.push(...ll.getSearchPaths(i.patterns)),i})}static stat(e,a,i){return Tm(this,void 0,void 0,function*(){let r;if(a.followSymbolicLinks)try{r=yield co.promises.stat(e.path)}catch(n){if(n.code==="ENOENT"){if(a.omitBrokenSymbolicLinks){Om.debug(`Broken symlink '${e.path}'`);return}throw new Error(`No information found for the path '${e.path}'. This may indicate a broken symbolic link.`)}throw n}else r=yield co.promises.lstat(e.path);if(r.isDirectory()&&a.followSymbolicLinks){let n=yield co.promises.realpath(e.path);for(;i.length>=e.level;)i.pop();if(i.some(s=>s===n)){Om.debug(`Symlink cycle detected for path '${e.path}' and realpath '${n}'`);return}i.push(n)}return r})}};vt.DefaultGlobber=Rm});var Q4=E(En=>{"use strict";var WE=En&&En.__awaiter||function(t,e,a,i){function r(n){return n instanceof a?n:new a(function(s){s(n)})}return o(r,"adopt"),new(a||(a=Promise))(function(n,s){function p(c){try{d(i.next(c))}catch(u){s(u)}}o(p,"fulfilled");function l(c){try{d(i.throw(c))}catch(u){s(u)}}o(l,"rejected");function d(c){c.done?n(c.value):r(c.value).then(p,l)}o(d,"step"),d((i=i.apply(t,e||[])).next())})};Object.defineProperty(En,"__esModule",{value:!0});En.create=void 0;var XE=K4();function KE(t,e){return WE(this,void 0,void 0,function*(){return yield XE.DefaultGlobber.create(t,e)})}o(KE,"create");En.create=KE});var fl=E((ie,t3)=>{ie=t3.exports=se;var Se;typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?Se=o(function(){var t=Array.prototype.slice.call(arguments,0);t.unshift("SEMVER"),console.log.apply(console,t)},"debug"):Se=o(function(){},"debug");ie.SEMVER_SPEC_VERSION="2.0.0";var mo=256,dl=Number.MAX_SAFE_INTEGER||9007199254740991,Pm=16,QE=mo-6,Tn=ie.re=[],_e=ie.safeRe=[],M=ie.src=[],A=ie.tokens={},Z4=0;function le(t){A[t]=Z4++}o(le,"tok");var Dm="[a-zA-Z0-9-]",Im=[["\\s",1],["\\d",mo],[Dm,QE]];function ho(t){for(var e=0;e<Im.length;e++){var a=Im[e][0],i=Im[e][1];t=t.split(a+"*").join(a+"{0,"+i+"}").split(a+"+").join(a+"{1,"+i+"}")}return t}o(ho,"makeSafeRe");le("NUMERICIDENTIFIER");M[A.NUMERICIDENTIFIER]="0|[1-9]\\d*";le("NUMERICIDENTIFIERLOOSE");M[A.NUMERICIDENTIFIERLOOSE]="\\d+";le("NONNUMERICIDENTIFIER");M[A.NONNUMERICIDENTIFIER]="\\d*[a-zA-Z-]"+Dm+"*";le("MAINVERSION");M[A.MAINVERSION]="("+M[A.NUMERICIDENTIFIER]+")\\.("+M[A.NUMERICIDENTIFIER]+")\\.("+M[A.NUMERICIDENTIFIER]+")";le("MAINVERSIONLOOSE");M[A.MAINVERSIONLOOSE]="("+M[A.NUMERICIDENTIFIERLOOSE]+")\\.("+M[A.NUMERICIDENTIFIERLOOSE]+")\\.("+M[A.NUMERICIDENTIFIERLOOSE]+")";le("PRERELEASEIDENTIFIER");M[A.PRERELEASEIDENTIFIER]="(?:"+M[A.NUMERICIDENTIFIER]+"|"+M[A.NONNUMERICIDENTIFIER]+")";le("PRERELEASEIDENTIFIERLOOSE");M[A.PRERELEASEIDENTIFIERLOOSE]="(?:"+M[A.NUMERICIDENTIFIERLOOSE]+"|"+M[A.NONNUMERICIDENTIFIER]+")";le("PRERELEASE");M[A.PRERELEASE]="(?:-("+M[A.PRERELEASEIDENTIFIER]+"(?:\\."+M[A.PRERELEASEIDENTIFIER]+")*))";le("PRERELEASELOOSE");M[A.PRERELEASELOOSE]="(?:-?("+M[A.PRERELEASEIDENTIFIERLOOSE]+"(?:\\."+M[A.PRERELEASEIDENTIFIERLOOSE]+")*))";le("BUILDIDENTIFIER");M[A.BUILDIDENTIFIER]=Dm+"+";le("BUILD");M[A.BUILD]="(?:\\+("+M[A.BUILDIDENTIFIER]+"(?:\\."+M[A.BUILDIDENTIFIER]+")*))";le("FULL");le("FULLPLAIN");M[A.FULLPLAIN]="v?"+M[A.MAINVERSION]+M[A.PRERELEASE]+"?"+M[A.BUILD]+"?";M[A.FULL]="^"+M[A.FULLPLAIN]+"$";le("LOOSEPLAIN");M[A.LOOSEPLAIN]="[v=\\s]*"+M[A.MAINVERSIONLOOSE]+M[A.PRERELEASELOOSE]+"?"+M[A.BUILD]+"?";le("LOOSE");M[A.LOOSE]="^"+M[A.LOOSEPLAIN]+"$";le("GTLT");M[A.GTLT]="((?:<|>)?=?)";le("XRANGEIDENTIFIERLOOSE");M[A.XRANGEIDENTIFIERLOOSE]=M[A.NUMERICIDENTIFIERLOOSE]+"|x|X|\\*";le("XRANGEIDENTIFIER");M[A.XRANGEIDENTIFIER]=M[A.NUMERICIDENTIFIER]+"|x|X|\\*";le("XRANGEPLAIN");M[A.XRANGEPLAIN]="[v=\\s]*("+M[A.XRANGEIDENTIFIER]+")(?:\\.("+M[A.XRANGEIDENTIFIER]+")(?:\\.("+M[A.XRANGEIDENTIFIER]+")(?:"+M[A.PRERELEASE]+")?"+M[A.BUILD]+"?)?)?";le("XRANGEPLAINLOOSE");M[A.XRANGEPLAINLOOSE]="[v=\\s]*("+M[A.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+M[A.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+M[A.XRANGEIDENTIFIERLOOSE]+")(?:"+M[A.PRERELEASELOOSE]+")?"+M[A.BUILD]+"?)?)?";le("XRANGE");M[A.XRANGE]="^"+M[A.GTLT]+"\\s*"+M[A.XRANGEPLAIN]+"$";le("XRANGELOOSE");M[A.XRANGELOOSE]="^"+M[A.GTLT]+"\\s*"+M[A.XRANGEPLAINLOOSE]+"$";le("COERCE");M[A.COERCE]="(^|[^\\d])(\\d{1,"+Pm+"})(?:\\.(\\d{1,"+Pm+"}))?(?:\\.(\\d{1,"+Pm+"}))?(?:$|[^\\d])";le("COERCERTL");Tn[A.COERCERTL]=new RegExp(M[A.COERCE],"g");_e[A.COERCERTL]=new RegExp(ho(M[A.COERCE]),"g");le("LONETILDE");M[A.LONETILDE]="(?:~>?)";le("TILDETRIM");M[A.TILDETRIM]="(\\s*)"+M[A.LONETILDE]+"\\s+";Tn[A.TILDETRIM]=new RegExp(M[A.TILDETRIM],"g");_e[A.TILDETRIM]=new RegExp(ho(M[A.TILDETRIM]),"g");var YE="$1~";le("TILDE");M[A.TILDE]="^"+M[A.LONETILDE]+M[A.XRANGEPLAIN]+"$";le("TILDELOOSE");M[A.TILDELOOSE]="^"+M[A.LONETILDE]+M[A.XRANGEPLAINLOOSE]+"$";le("LONECARET");M[A.LONECARET]="(?:\\^)";le("CARETTRIM");M[A.CARETTRIM]="(\\s*)"+M[A.LONECARET]+"\\s+";Tn[A.CARETTRIM]=new
Line truncated
|
||||
`),{implicitDescendants:!1});try{for(var d=!0,c=MT(l.globGenerator()),u;u=yield c.next(),e=u.done,!e;d=!0){r=u.value,d=!1;let m=r,f=hl.relative(p,m).replace(new RegExp(`\\${hl.sep}`,"g"),"/");go.debug(`Matched: ${f}`),f===""?s.push("."):s.push(`${f}`)}}catch(m){a={error:m}}finally{try{!d&&!e&&(i=c.return)&&(yield i.call(c))}finally{if(a)throw a.error}}return s})}o(FT,"resolvePaths");xe.resolvePaths=FT;function VT(t){return Pn(this,void 0,void 0,function*(){return kT.promisify(qm.unlink)(t)})}o(VT,"unlinkFile");xe.unlinkFile=VT;function o3(t,e=[]){return Pn(this,void 0,void 0,function*(){let a="";e.push("--version"),go.debug(`Checking ${t} ${e.join(" ")}`);try{yield LT.exec(`${t}`,e,{ignoreReturnCode:!0,silent:!0,listeners:{stdout:i=>a+=i.toString(),stderr:i=>a+=i.toString()}})}catch(i){go.debug(i.message)}return a=a.trim(),go.debug(a),a})}o(o3,"getVersion");function $T(){return Pn(this,void 0,void 0,function*(){let t=yield o3("zstd",["--quiet"]),e=zT.clean(t);return go.debug(`zstd version: ${e}`),t===""?qr.CompressionMethod.Gzip:qr.CompressionMethod.ZstdWithoutLong})}o($T,"getCompressionMethod");xe.getCompressionMethod=$T;function GT(t){return t===qr.CompressionMethod.Gzip?qr.CacheFilename.Gzip:qr.CacheFilename.Zstd}o(GT,"getCacheFileName");xe.getCacheFileName=GT;function WT(){return Pn(this,void 0,void 0,function*(){return qm.existsSync(qr.GnuTarPathOnWindows)?qr.GnuTarPathOnWindows:(yield o3("tar")).toLowerCase().includes("gnu tar")?n3.which("tar"):""})}o(WT,"getGnuTarPathOnWindows");xe.getGnuTarPathOnWindows=WT;function XT(t,e){if(e===void 0)throw Error(`Expected ${t} but value was undefiend`);return e}o(XT,"assertDefined");xe.assertDefined=XT;function KT(t,e,a=!1){let i=t.slice();return e&&i.push(e),process.platform==="win32"&&!a&&i.push("windows-only"),i.push(jT),s3.createHash("sha256").update(i.join("|")).digest("hex")}o(KT,"getCacheVersion");xe.getCacheVersion=KT;function QT(){let t=process.env.ACTIONS_RUNTIME_TOKEN;if(!t)throw new Error("Unable to get the ACTIONS_RUNTIME_TOKEN env variable");return t}o(QT,"getRuntimeToken");xe.getRuntimeToken=QT});function yo(){return gl>yl.length-16&&(p3.default.randomFillSync(yl),gl=0),yl.slice(gl,gl+=16)}var p3,yl,gl,zm=qt(()=>{p3=ya(require("crypto")),yl=new Uint8Array(256),gl=yl.length;o(yo,"rng")});var l3,d3=qt(()=>{l3=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i});function YT(t){return typeof t=="string"&&l3.test(t)}var er,vo=qt(()=>{d3();o(YT,"validate");er=YT});function JT(t,e=0){let a=(Dt[t[e+0]]+Dt[t[e+1]]+Dt[t[e+2]]+Dt[t[e+3]]+"-"+Dt[t[e+4]]+Dt[t[e+5]]+"-"+Dt[t[e+6]]+Dt[t[e+7]]+"-"+Dt[t[e+8]]+Dt[t[e+9]]+"-"+Dt[t[e+10]]+Dt[t[e+11]]+Dt[t[e+12]]+Dt[t[e+13]]+Dt[t[e+14]]+Dt[t[e+15]]).toLowerCase();if(!er(a))throw TypeError("Stringified UUID is invalid");return a}var Dt,tr,xo=qt(()=>{vo();Dt=[];for(let t=0;t<256;++t)Dt.push((t+256).toString(16).substr(1));o(JT,"stringify");tr=JT});function ZT(t,e,a){let i=e&&a||0,r=e||new Array(16);t=t||{};let n=t.node||c3,s=t.clockseq!==void 0?t.clockseq:km;if(n==null||s==null){let m=t.random||(t.rng||yo)();n==null&&(n=c3=[m[0]|1,m[1],m[2],m[3],m[4],m[5]]),s==null&&(s=km=(m[6]<<8|m[7])&16383)}let p=t.msecs!==void 0?t.msecs:Date.now(),l=t.nsecs!==void 0?t.nsecs:Hm+1,d=p-jm+(l-Hm)/1e4;if(d<0&&t.clockseq===void 0&&(s=s+1&16383),(d<0||p>jm)&&t.nsecs===void 0&&(l=0),l>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");jm=p,Hm=l,km=s,p+=122192928e5;let c=((p&268435455)*1e4+l)%4294967296;r[i++]=c>>>24&255,r[i++]=c>>>16&255,r[i++]=c>>>8&255,r[i++]=c&255;let u=p/4294967296*1e4&268435455;r[i++]=u>>>8&255,r[i++]=u&255,r[i++]=u>>>24&15|16,r[i++]=u>>>16&255,r[i++]=s>>>8|128,r[i++]=s&255;for(let m=0;m<6;++m)r[i+m]=n[m];return e||tr(r)}var c3,km,jm,Hm,u3,m3=qt(()=>{zm();xo();jm=0,Hm=0;o(ZT,"v1");u3=ZT});function eO(t){if(!er(t))throw TypeError("Invalid UUID");let e,a=new Uint8Array(16);return a[0]=(e=parseInt(t.slice(0,8),16))>>>24,a[1]=e>>>16&255,a[2]=e>>>8&255,a[3]=e&255,a[4]=(e=parseInt(t.slice(9,13),16))>>>8,a[5]=e&255,a[6]=(e=parseInt(t.slice(14,18),16))>>>8,a[7]=e&255,a[8]=(e=parseInt(t.slice(19,23),16))>>>8,a[9]=e&255,a[10]=(e=parseInt(t.slice(24,36),16))/1099511627776&255,a[11]=e/4294967296&255,a[12]=e>>>24&255,a[13]=e>>>16&255,a[14]=e>>>8&255,a[15]=e&255,a}var vl,Um=qt(()=>{vo();o(eO,"parse");vl=eO});function tO(t){t=unescape(encodeURIComponent(t));let e=[];for(let a=0;a<t.length;++a)e.push(t.charCodeAt(a));return e}function bo(t,e,a){function i(r,n,s,p){if(typeof r=="string"&&(r=tO(r)),typeof n=="string"&&(n=vl(n)),n.length!==16)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let l=new Uint8Array(16+r.length);if(l.set(n),l.set(r,n.length),l=a(l),l[6]=l[6]&15|e,l[8]=l[8]&63|128,s){p=p||0;for(let d=0;d<16;++d)s[p+d]=l[d];return s}return tr(l)}o(i,"generateUUID");try{i.name=t}catch{}return i.DNS=aO,i.URL=iO,i}var aO,iO,Fm=qt(()=>{xo();Um();o(tO,"stringToBytes");aO="6ba7b810-9dad-11d1-80b4-00c04fd430c8",iO
Line truncated
|
||||
`},headless:!1,chunkSize:1e4,emptyTag:"",cdata:!1}}}).call(Gm)});var ri=E((eg,ar)=>{(function(){var t,e,a,i,r,n,s,p=[].slice,l={}.hasOwnProperty;t=o(function(){var d,c,u,m,f,h;if(h=arguments[0],f=2<=arguments.length?p.call(arguments,1):[],r(Object.assign))Object.assign.apply(null,arguments);else for(d=0,u=f.length;d<u;d++)if(m=f[d],m!=null)for(c in m)l.call(m,c)&&(h[c]=m[c]);return h},"assign"),r=o(function(d){return!!d&&Object.prototype.toString.call(d)==="[object Function]"},"isFunction"),n=o(function(d){var c;return!!d&&((c=typeof d)=="function"||c==="object")},"isObject"),a=o(function(d){return r(Array.isArray)?Array.isArray(d):Object.prototype.toString.call(d)==="[object Array]"},"isArray"),i=o(function(d){var c;if(a(d))return!d.length;for(c in d)if(l.call(d,c))return!1;return!0},"isEmpty"),s=o(function(d){var c,u;return n(d)&&(u=Object.getPrototypeOf(d))&&(c=u.constructor)&&typeof c=="function"&&c instanceof c&&Function.prototype.toString.call(c)===Function.prototype.toString.call(Object)},"isPlainObject"),e=o(function(d){return r(d.valueOf)?d.valueOf():d},"getValue"),ar.exports.assign=t,ar.exports.isFunction=r,ar.exports.isObject=n,ar.exports.isArray=a,ar.exports.isEmpty=i,ar.exports.isPlainObject=s,ar.exports.getValue=e}).call(eg)});var Wm=E((tg,ag)=>{(function(){var t;ag.exports=t=function(){function e(){}return o(e,"XMLDOMImplementation"),e.prototype.hasFeature=function(a,i){return!0},e.prototype.createDocumentType=function(a,i,r){throw new Error("This DOM method is not implemented.")},e.prototype.createDocument=function(a,i,r){throw new Error("This DOM method is not implemented.")},e.prototype.createHTMLDocument=function(a){throw new Error("This DOM method is not implemented.")},e.prototype.getFeature=function(a,i){throw new Error("This DOM method is not implemented.")},e}()}).call(tg)});var ng=E((ig,rg)=>{(function(){var t;rg.exports=t=function(){function e(){}return o(e,"XMLDOMErrorHandler"),e.prototype.handleError=function(a){throw new Error(a)},e}()}).call(ig)});var pg=E((sg,og)=>{(function(){var t;og.exports=t=function(){function e(a){this.arr=a||[]}return o(e,"XMLDOMStringList"),Object.defineProperty(e.prototype,"length",{get:function(){return this.arr.length}}),e.prototype.item=function(a){return this.arr[a]||null},e.prototype.contains=function(a){return this.arr.indexOf(a)!==-1},e}()}).call(sg)});var cg=E((lg,dg)=>{(function(){var t,e,a;e=ng(),a=pg(),dg.exports=t=function(){function i(){var r;this.defaultParams={"canonical-form":!1,"cdata-sections":!1,comments:!1,"datatype-normalization":!1,"element-content-whitespace":!0,entities:!0,"error-handler":new e,infoset:!0,"validate-if-schema":!1,namespaces:!0,"namespace-declarations":!0,"normalize-characters":!1,"schema-location":"","schema-type":"","split-cdata-sections":!0,validate:!1,"well-formed":!0},this.params=r=Object.create(this.defaultParams)}return o(i,"XMLDOMConfiguration"),Object.defineProperty(i.prototype,"parameterNames",{get:function(){return new a(Object.keys(this.defaultParams))}}),i.prototype.getParameter=function(r){return this.params.hasOwnProperty(r)?this.params[r]:null},i.prototype.canSetParameter=function(r,n){return!0},i.prototype.setParameter=function(r,n){return n!=null?this.params[r]=n:delete this.params[r]},i}()}).call(lg)});var nt=E((ug,mg)=>{(function(){mg.exports={Element:1,Attribute:2,Text:3,CData:4,EntityReference:5,EntityDeclaration:6,ProcessingInstruction:7,Comment:8,Document:9,DocType:10,DocumentFragment:11,NotationDeclaration:12,Declaration:201,Raw:202,AttributeDeclaration:203,ElementDeclaration:204,Dummy:205}}).call(ug)});var Xm=E((fg,hg)=>{(function(){var t,e,a;t=nt(),a=la(),hg.exports=e=function(){function i(r,n,s){if(this.parent=r,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),n==null)throw new Error("Missing attribute name. "+this.debugInfo(n));this.name=this.stringify.name(n),this.value=this.stringify.attValue(s),this.type=t.Attribute,this.isId=!1,this.schemaTypeInfo=null}return o(i,"XMLAttribute"),Object.defineProperty(i.prototype,"nodeType",{get:function(){return this.type}}),Object.defineProperty(i.prototype,"ownerElement",{get:function(){return this.parent}}),Object.defineProperty(i.prototype,"textContent",{get:function(){return this.value},set:function(r){return this.value=r||""}}),Object.defineProperty(i.prototype,"namespaceURI",{get:function(){return""}}),Object.defineProperty(i.prototype,"prefix",{get:function(){return""}}),Object.defineProperty(i.prototype,"localName",{get:function(){return this.name}}),Object.defineProperty(i.prototype,"specified",{get:function(){return!0}}),i.prototype.clone=function(){return Object.create(this)},i.prototype.toString=function(r){return this.options.writer.attribute(this,this.options.writer.filterOptions(r))},i.prototype.debugInfo=function(r){return r=r||this.name,r==null?"parent: <"+this.parent.name+">":"attribute: {"+r+"}, parent: <"+this.parent.name+">"},i.prototype.isEqualNode=function(r){return!(r.namespaceURI!==thi
Line truncated
|
||||
`,y.offset=(O=w.offset)!=null?O:0,y.dontPrettyTextNodes=(N=(D=w.dontPrettyTextNodes)!=null?D:w.dontprettytextnodes)!=null?N:0,y.spaceBeforeSlash=(C=(P=w.spaceBeforeSlash)!=null?P:w.spacebeforeslash)!=null?C:"",y.spaceBeforeSlash===!0&&(y.spaceBeforeSlash=" "),y.suppressPrettyCount=0,y.user={},y.state=e.None,y},I.prototype.indent=function(w,y,g){var _;return!y.pretty||y.suppressPrettyCount?"":y.pretty&&(_=(g||0)+y.offset+1,_>0)?new Array(_).join(y.indent):""},I.prototype.endline=function(w,y,g){return!y.pretty||y.suppressPrettyCount?"":y.newline},I.prototype.attribute=function(w,y,g){var _;return this.openAttribute(w,y,g),_=" "+w.name+'="'+w.value+'"',this.closeAttribute(w,y,g),_},I.prototype.cdata=function(w,y,g){var _;return this.openNode(w,y,g),y.state=e.OpenTag,_=this.indent(w,y,g)+"<![CDATA[",y.state=e.InsideTag,_+=w.value,y.state=e.CloseTag,_+="]]>"+this.endline(w,y,g),y.state=e.None,this.closeNode(w,y,g),_},I.prototype.comment=function(w,y,g){var _;return this.openNode(w,y,g),y.state=e.OpenTag,_=this.indent(w,y,g)+"<!-- ",y.state=e.InsideTag,_+=w.value,y.state=e.CloseTag,_+=" -->"+this.endline(w,y,g),y.state=e.None,this.closeNode(w,y,g),_},I.prototype.declaration=function(w,y,g){var _;return this.openNode(w,y,g),y.state=e.OpenTag,_=this.indent(w,y,g)+"<?xml",y.state=e.InsideTag,_+=' version="'+w.version+'"',w.encoding!=null&&(_+=' encoding="'+w.encoding+'"'),w.standalone!=null&&(_+=' standalone="'+w.standalone+'"'),y.state=e.CloseTag,_+=y.spaceBeforeSlash+"?>",_+=this.endline(w,y,g),y.state=e.None,this.closeNode(w,y,g),_},I.prototype.docType=function(w,y,g){var _,O,N,D,C;if(g||(g=0),this.openNode(w,y,g),y.state=e.OpenTag,D=this.indent(w,y,g),D+="<!DOCTYPE "+w.root().name,w.pubID&&w.sysID?D+=' PUBLIC "'+w.pubID+'" "'+w.sysID+'"':w.sysID&&(D+=' SYSTEM "'+w.sysID+'"'),w.children.length>0){for(D+=" [",D+=this.endline(w,y,g),y.state=e.InsideTag,C=w.children,O=0,N=C.length;O<N;O++)_=C[O],D+=this.writeChildNode(_,y,g+1);y.state=e.CloseTag,D+="]"}return y.state=e.CloseTag,D+=y.spaceBeforeSlash+">",D+=this.endline(w,y,g),y.state=e.None,this.closeNode(w,y,g),D},I.prototype.element=function(w,y,g){var _,O,N,D,C,P,B,j,pe,ge,Y,at,fe,za;g||(g=0),ge=!1,Y="",this.openNode(w,y,g),y.state=e.OpenTag,Y+=this.indent(w,y,g)+"<"+w.name,at=w.attribs;for(pe in at)S.call(at,pe)&&(_=at[pe],Y+=this.attribute(_,y,g));if(N=w.children.length,D=N===0?null:w.children[0],N===0||w.children.every(function($t){return($t.type===t.Text||$t.type===t.Raw)&&$t.value===""}))y.allowEmpty?(Y+=">",y.state=e.CloseTag,Y+="</"+w.name+">"+this.endline(w,y,g)):(y.state=e.CloseTag,Y+=y.spaceBeforeSlash+"/>"+this.endline(w,y,g));else if(y.pretty&&N===1&&(D.type===t.Text||D.type===t.Raw)&&D.value!=null)Y+=">",y.state=e.InsideTag,y.suppressPrettyCount++,ge=!0,Y+=this.writeChildNode(D,y,g+1),y.suppressPrettyCount--,ge=!1,y.state=e.CloseTag,Y+="</"+w.name+">"+this.endline(w,y,g);else{if(y.dontPrettyTextNodes){for(fe=w.children,C=0,B=fe.length;C<B;C++)if(O=fe[C],(O.type===t.Text||O.type===t.Raw)&&O.value!=null){y.suppressPrettyCount++,ge=!0;break}}for(Y+=">"+this.endline(w,y,g),y.state=e.InsideTag,za=w.children,P=0,j=za.length;P<j;P++)O=za[P],Y+=this.writeChildNode(O,y,g+1);y.state=e.CloseTag,Y+=this.indent(w,y,g)+"</"+w.name+">",ge&&y.suppressPrettyCount--,Y+=this.endline(w,y,g),y.state=e.None}return this.closeNode(w,y,g),Y},I.prototype.writeChildNode=function(w,y,g){switch(w.type){case t.CData:return this.cdata(w,y,g);case t.Comment:return this.comment(w,y,g);case t.Element:return this.element(w,y,g);case t.Raw:return this.raw(w,y,g);case t.Text:return this.text(w,y,g);case t.ProcessingInstruction:return this.processingInstruction(w,y,g);case t.Dummy:return"";case t.Declaration:return this.declaration(w,y,g);case t.DocType:return this.docType(w,y,g);case t.AttributeDeclaration:return this.dtdAttList(w,y,g);case t.ElementDeclaration:return this.dtdElement(w,y,g);case t.EntityDeclaration:return this.dtdEntity(w,y,g);case t.NotationDeclaration:return this.dtdNotation(w,y,g);default:throw new Error("Unknown XML node type: "+w.constructor.name)}},I.prototype.processingInstruction=function(w,y,g){var _;return this.openNode(w,y,g),y.state=e.OpenTag,_=this.indent(w,y,g)+"<?",y.state=e.InsideTag,_+=w.target,w.value&&(_+=" "+w.value),y.state=e.CloseTag,_+=y.spaceBeforeSlash+"?>",_+=this.endline(w,y,g),y.state=e.None,this.closeNode(w,y,g),_},I.prototype.raw=function(w,y,g){var _;return this.openNode(w,y,g),y.state=e.OpenTag,_=this.indent(w,y,g),y.state=e.InsideTag,_+=w.value,y.state=e.CloseTag,_+=this.endline(w,y,g),y.state=e.None,this.closeNode(w,y,g),_},I.prototype.text=function(w,y,g){var _;return this.openNode(w,y,g),y.state=e.OpenTag,_=this.indent(w,y,g),y.state=e.InsideTag,_+=w.value,y.state=e.CloseTag,_+=this.endline(w,y,g),y.state=e.None,this.closeNode(w,y,g),_},I.prototype.dtdAttList=function(w,y,g){var _;return this.openNode(w,y,g),y.state=e.OpenTag,_=this.indent(w,y,g)+"<!ATTLIST",y.state=e.InsideTag,_+=" "+w.elementName+" "+w.attributeName+" "+w.attribut
Line truncated
|
||||
`||b==="\r"||b===" "}o(w,"isWhitespace");function y(b){return b==='"'||b==="'"}o(y,"isQuote");function g(b){return b===">"||w(b)}o(g,"isAttribEnd");function _(b,v){return b.test(v)}o(_,"isMatch");function O(b,v){return!_(b,v)}o(O,"notMatch");var N=0;t.STATE={BEGIN:N++,BEGIN_WHITESPACE:N++,TEXT:N++,TEXT_ENTITY:N++,OPEN_WAKA:N++,SGML_DECL:N++,SGML_DECL_QUOTED:N++,DOCTYPE:N++,DOCTYPE_QUOTED:N++,DOCTYPE_DTD:N++,DOCTYPE_DTD_QUOTED:N++,COMMENT_STARTING:N++,COMMENT:N++,COMMENT_ENDING:N++,COMMENT_ENDED:N++,CDATA:N++,CDATA_ENDING:N++,CDATA_ENDING_2:N++,PROC_INST:N++,PROC_INST_BODY:N++,PROC_INST_ENDING:N++,OPEN_TAG:N++,OPEN_TAG_SLASH:N++,ATTRIB:N++,ATTRIB_NAME:N++,ATTRIB_NAME_SAW_WHITE:N++,ATTRIB_VALUE:N++,ATTRIB_VALUE_QUOTED:N++,ATTRIB_VALUE_CLOSED:N++,ATTRIB_VALUE_UNQUOTED:N++,ATTRIB_VALUE_ENTITY_Q:N++,ATTRIB_VALUE_ENTITY_U:N++,CLOSE_TAG:N++,CLOSE_TAG_SAW_WHITE:N++,SCRIPT:N++,SCRIPT_ENDING:N++},t.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},t.ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:174,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830},Object.keys(t.ENTITIES).forEach(function(b){var v=t.ENTITIES[b],L=typeof v=="number"?String.fromCharCode(v):v;t.ENTITIES[b]=L});for(var D in t.STATE)t.STATE[t.STATE[D]]=D;N=t.STATE;function C(b,v,L){b[v]&&b[v](L)}o(C,"emit");function P(b,v,L){b.textNode&&B(b),C(b,v,L)}o(P,"emitNode");function B(b){b.textNode=j(b.opt,b.textNode),b.textNode&&C(b,"ontext",b.textNode),b.textNode=""}o(B,"closeText");function j(b,v){return b.trim&&(v=v.trim()),b.normalize&&(v=v.replace(/\s+/g," ")),v}o(j,"textopts");function pe(b,v){return B(b),b.trackPosition&&(v+=`
|
||||
Line: `+b.line+`
|
||||
Column: `+b.column+`
|
||||
Char: `+b.c),v=new Error(v),b.error=v,C(b,"onerror",v),b}o(pe,"error");function ge(b){return b.sawRoot&&!b.closedRoot&&Y(b,"Unclosed root tag"),b.state!==N.BEGIN&&b.state!==N.BEGIN_WHITESPACE&&b.state!==N.TEXT&&pe(b,"Unexpected end"),B(b),b.c="",b.closed=!0,C(b,"onend"),a.call(b,b.strict,b.opt),b}o(ge,"end");function Y(b,v){if(typeof b!="object"||!(b instanceof a))throw new Error("bad call to strictFail");b.strict&&pe(b,v)}o(Y,"strictFail");function at(b){b.strict||(b.tagName=b.tagName[b.looseCase]());var v=b.tags[b.tags.length-1]||b,L=b.tag={name:b.tagName,attributes:{}};b.opt.xmlns&&(L.ns=v.ns),b.attribList.length=0,P(b,"onopentagstart",L)}o(at,"newTag");function fe(b,v){var L=b.indexOf(":"),R=L<0?["",b]:b.split(":"),Oe=R[0],dt=R[1];return v&&b==="xmlns"&&(Oe="xmlns",dt=""),{prefix:Oe,local:dt}}o(fe,"qname");function za(b){if(b.strict||(b.attribName=b.attribName[b.looseCase]()),b.attribList.indexOf(b.attribName)!==-1||b.tag.attributes.hasOwnProperty(b.attribName)){b.attribName=b.attribValue="";return}if(b.opt.xmlns){var v=fe(b.attribName,!0),L=v.prefix,R=v.local;if(L==="xmlns")if(R==="xml"&&b.attribValue!==m)Y(b,"xml: prefix must be bound to "+m+`
|
||||
Actual: `+b.attribValue);else if(R==="xmlns"&&b.attribValue!==f)Y(b,"xmlns: prefix must be bound to "+f+`
|
||||
Actual: `+b.attribValue);else{var Oe=b.tag,dt=b.tags[b.tags.length-1]||b;Oe.ns===dt.ns&&(Oe.ns=Object.create(dt.ns)),Oe.ns[R]=b.attribValue}b.attribList.push([b.attribName,b.attribValue])}else b.tag.attributes[b.attribName]=b.attribValue,P(b,"onattribute",{name:b.attribName,value:b.attribValue});b.attribName=b.attribValue=""}o(za,"attrib");function $t(b,v){if(b.opt.xmlns){var L=b.tag,R=fe(b.tagName);L.prefix=R.prefix,L.local=R.local,L.uri=L.ns[R.prefix]||"",L.prefix&&!L.uri&&(Y(b,"Unbound namespace prefix: "+JSON.stringify(b.tagName)),L.uri=R.prefix);var Oe=b.tags[b.tags.length-1]||b;L.ns&&Oe.ns!==L.ns&&Object.keys(L.ns).forEach(function(_6){P(b,"onopennamespace",{prefix:_6,uri:L.ns[_6]})});for(var dt=0,yt=b.attribList.length;dt<yt;dt++){var Gt=b.attribList[dt],Za=Gt[0],yn=Gt[1],Pt=fe(Za,!0),wi=Pt.prefix,W_=Pt.local,N6=wi===""?"":L.ns[wi]||"",Hu={name:Za,value:yn,prefix:wi,local:W_,uri:N6};wi&&wi!=="xmlns"&&!N6&&(Y(b,"Unbound namespace prefix: "+JSON.stringify(wi)),Hu.uri=wi),b.tag.attributes[Za]=Hu,P(b,"onattribute",Hu)}b.attribList.length=0}b.tag.isSelfClosing=!!v,b.sawRoot=!0,b.tags.push(b.tag),P(b,"onopentag",b.tag),v||(!b.noscript&&b.tagName.toLowerCase()==="script"?b.state=N.SCRIPT:b.state=N.TEXT,b.tag=null,b.tagName=""),b.attribName=b.attribValue="",b.attribList.length=0}o($t,"openTag");function gn(b){if(!b.tagName){Y(b,"Weird empty close tag."),b.textNode+="</>",b.state=N.TEXT;return}if(b.script){if(b.tagName!=="script"){b.script+="</"+b.tagName+">",b.tagName="",b.state=N.SCRIPT;return}P(b,"onscript",b.script),b.script=""}var v=b.tags.length,L=b.tagName;b.strict||(L=L[b.looseCase]());for(var R=L;v--;){var Oe=b.tags[v];if(Oe.name!==R)Y(b,"Unexpected close tag");else break}if(v<0){Y(b,"Unmatched closing tag: "+b.tagName),b.textNode+="</"+b.tagName+">",b.state=N.TEXT;return}b.tagName=L;for(var dt=b.tags.length;dt-- >v;){var yt=b.tag=b.tags.pop();b.tagName=b.tag.name,P(b,"onclosetag",b.tagName);var Gt={};for(var Za in yt.ns)Gt[Za]=yt.ns[Za];var yn=b.tags[b.tags.length-1]||b;b.opt.xmlns&&yt.ns!==yn.ns&&Object.keys(yt.ns).forEach(function(Pt){var wi=yt.ns[Pt];P(b,"onclosenamespace",{prefix:Pt,uri:wi})})}v===0&&(b.closedRoot=!0),b.tagName=b.attribValue=b.attribName="",b.attribList.length=0,b.state=N.TEXT}o(gn,"closeTag");function to(b){var v=b.entity,L=v.toLowerCase(),R,Oe="";return b.ENTITIES[v]?b.ENTITIES[v]:b.ENTITIES[L]?b.ENTITIES[L]:(v=L,v.charAt(0)==="#"&&(v.charAt(1)==="x"?(v=v.slice(2),R=parseInt(v,16),Oe=R.toString(16)):(v=v.slice(1),R=parseInt(v,10),Oe=R.toString(10))),v=v.replace(/^0+/,""),isNaN(R)||Oe.toLowerCase()!==v?(Y(b,"Invalid character entity"),"&"+b.entity+";"):String.fromCodePoint(R))}o(to,"parseEntity");function b6(b,v){v==="<"?(b.state=N.OPEN_WAKA,b.startTagPosition=b.position):w(v)||(Y(b,"Non-whitespace before first tag."),b.textNode=v,b.state=N.TEXT)}o(b6,"beginWhiteSpace");function w6(b,v){var L="";return v<b.length&&(L=b.charAt(v)),L}o(w6,"charAt");function G_(b){var v=this;if(this.error)throw this.error;if(v.closed)return pe(v,"Cannot write after close. Assign an onready handler.");if(b===null)return ge(v);typeof b=="object"&&(b=b.toString());for(var L=0,R="";R=w6(b,L++),v.c=R,!!R;)switch(v.trackPosition&&(v.position++,R===`
|
||||
`?(v.line++,v.column=0):v.column++),v.state){case N.BEGIN:if(v.state=N.BEGIN_WHITESPACE,R==="\uFEFF")continue;b6(v,R);continue;case N.BEGIN_WHITESPACE:b6(v,R);continue;case N.TEXT:if(v.sawRoot&&!v.closedRoot){for(var Oe=L-1;R&&R!=="<"&&R!=="&";)R=w6(b,L++),R&&v.trackPosition&&(v.position++,R===`
|
||||
`?(v.line++,v.column=0):v.column++);v.textNode+=b.substring(Oe,L-1)}R==="<"&&!(v.sawRoot&&v.closedRoot&&!v.strict)?(v.state=N.OPEN_WAKA,v.startTagPosition=v.position):(!w(R)&&(!v.sawRoot||v.closedRoot)&&Y(v,"Text data outside of root node."),R==="&"?v.state=N.TEXT_ENTITY:v.textNode+=R);continue;case N.SCRIPT:R==="<"?v.state=N.SCRIPT_ENDING:v.script+=R;continue;case N.SCRIPT_ENDING:R==="/"?v.state=N.CLOSE_TAG:(v.script+="<"+R,v.state=N.SCRIPT);continue;case N.OPEN_WAKA:if(R==="!")v.state=N.SGML_DECL,v.sgmlDecl="";else if(!w(R))if(_(x,R))v.state=N.OPEN_TAG,v.tagName=R;else if(R==="/")v.state=N.CLOSE_TAG,v.tagName="";else if(R==="?")v.state=N.PROC_INST,v.procInstName=v.procInstBody="";else{if(Y(v,"Unencoded <"),v.startTagPosition+1<v.position){var dt=v.position-v.startTagPosition;R=new Array(dt).join(" ")+R}v.textNode+="<"+R,v.state=N.TEXT}continue;case N.SGML_DECL:(v.sgmlDecl+R).toUpperCase()===c?(P(v,"onopencdata"),v.state=N.CDATA,v.sgmlDecl="",v.cdata=""):v.sgmlDecl+R==="--"?(v.state=N.COMMENT,v.comment="",v.sgmlDecl=""):(v.sgmlDecl+R).toUpperCase()===u?(v.state=N.DOCTYPE,(v.doctype||v.sawRoot)&&Y(v,"Inappropriately located doctype declaration"),v.doctype="",v.sgmlDecl=""):R===">"?(P(v,"onsgmldeclaration",v.sgmlDecl),v.sgmlDecl="",v.state=N.TEXT):(y(R)&&(v.state=N.SGML_DECL_QUOTED),v.sgmlDecl+=R);continue;case N.SGML_DECL_QUOTED:R===v.q&&(v.state=N.SGML_DECL,v.q=""),v.sgmlDecl+=R;continue;case N.DOCTYPE:R===">"?(v.state=N.TEXT,P(v,"ondoctype",v.doctype),v.doctype=!0):(v.doctype+=R,R==="["?v.state=N.DOCTYPE_DTD:y(R)&&(v.state=N.DOCTYPE_QUOTED,v.q=R));continue;case N.DOCTYPE_QUOTED:v.doctype+=R,R===v.q&&(v.q="",v.state=N.DOCTYPE);continue;case N.DOCTYPE_DTD:v.doctype+=R,R==="]"?v.state=N.DOCTYPE:y(R)&&(v.state=N.DOCTYPE_DTD_QUOTED,v.q=R);continue;case N.DOCTYPE_DTD_QUOTED:v.doctype+=R,R===v.q&&(v.state=N.DOCTYPE_DTD,v.q="");continue;case N.COMMENT:R==="-"?v.state=N.COMMENT_ENDING:v.comment+=R;continue;case N.COMMENT_ENDING:R==="-"?(v.state=N.COMMENT_ENDED,v.comment=j(v.opt,v.comment),v.comment&&P(v,"oncomment",v.comment),v.comment=""):(v.comment+="-"+R,v.state=N.COMMENT);continue;case N.COMMENT_ENDED:R!==">"?(Y(v,"Malformed comment"),v.comment+="--"+R,v.state=N.COMMENT):v.state=N.TEXT;continue;case N.CDATA:R==="]"?v.state=N.CDATA_ENDING:v.cdata+=R;continue;case N.CDATA_ENDING:R==="]"?v.state=N.CDATA_ENDING_2:(v.cdata+="]"+R,v.state=N.CDATA);continue;case N.CDATA_ENDING_2:R===">"?(v.cdata&&P(v,"oncdata",v.cdata),P(v,"onclosecdata"),v.cdata="",v.state=N.TEXT):R==="]"?v.cdata+="]":(v.cdata+="]]"+R,v.state=N.CDATA);continue;case N.PROC_INST:R==="?"?v.state=N.PROC_INST_ENDING:w(R)?v.state=N.PROC_INST_BODY:v.procInstName+=R;continue;case N.PROC_INST_BODY:if(!v.procInstBody&&w(R))continue;R==="?"?v.state=N.PROC_INST_ENDING:v.procInstBody+=R;continue;case N.PROC_INST_ENDING:R===">"?(P(v,"onprocessinginstruction",{name:v.procInstName,body:v.procInstBody}),v.procInstName=v.procInstBody="",v.state=N.TEXT):(v.procInstBody+="?"+R,v.state=N.PROC_INST_BODY);continue;case N.OPEN_TAG:_(T,R)?v.tagName+=R:(at(v),R===">"?$t(v):R==="/"?v.state=N.OPEN_TAG_SLASH:(w(R)||Y(v,"Invalid character in tag name"),v.state=N.ATTRIB));continue;case N.OPEN_TAG_SLASH:R===">"?($t(v,!0),gn(v)):(Y(v,"Forward-slash in opening tag not followed by >"),v.state=N.ATTRIB);continue;case N.ATTRIB:if(w(R))continue;R===">"?$t(v):R==="/"?v.state=N.OPEN_TAG_SLASH:_(x,R)?(v.attribName=R,v.attribValue="",v.state=N.ATTRIB_NAME):Y(v,"Invalid attribute name");continue;case N.ATTRIB_NAME:R==="="?v.state=N.ATTRIB_VALUE:R===">"?(Y(v,"Attribute without value"),v.attribValue=v.attribName,za(v),$t(v)):w(R)?v.state=N.ATTRIB_NAME_SAW_WHITE:_(T,R)?v.attribName+=R:Y(v,"Invalid attribute name");continue;case N.ATTRIB_NAME_SAW_WHITE:if(R==="=")v.state=N.ATTRIB_VALUE;else{if(w(R))continue;Y(v,"Attribute without value"),v.tag.attributes[v.attribName]="",v.attribValue="",P(v,"onattribute",{name:v.attribName,value:""}),v.attribName="",R===">"?$t(v):_(x,R)?(v.attribName=R,v.state=N.ATTRIB_NAME):(Y(v,"Invalid attribute name"),v.state=N.ATTRIB)}continue;case N.ATTRIB_VALUE:if(w(R))continue;y(R)?(v.q=R,v.state=N.ATTRIB_VALUE_QUOTED):(Y(v,"Unquoted attribute value"),v.state=N.ATTRIB_VALUE_UNQUOTED,v.attribValue=R);continue;case N.ATTRIB_VALUE_QUOTED:if(R!==v.q){R==="&"?v.state=N.ATTRIB_VALUE_ENTITY_Q:v.attribValue+=R;continue}za(v),v.q="",v.state=N.ATTRIB_VALUE_CLOSED;continue;case N.ATTRIB_VALUE_CLOSED:w(R)?v.state=N.ATTRIB:R===">"?$t(v):R==="/"?v.state=N.OPEN_TAG_SLASH:_(x,R)?(Y(v,"No whitespace between attributes"),v.attribName=R,v.attribValue="",v.state=N.ATTRIB_NAME):Y(v,"Invalid attribute name");continue;case N.ATTRIB_VALUE_UNQUOTED:if(!g(R)){R==="&"?v.state=N.ATTRIB_VALUE_ENTITY_U:v.attribValue+=R;continue}za(v),R===">"?$t(v):v.state=N.ATTRIB;continue;case N.CLOSE_TAG:if(v.tagName)R===">"?gn(v):_(T,R)?v.tagName+=R:v.script?(v.script+="</"+v.tagName,v.tagName="",v.state=N.SCRIPT):(w(R)||Y(v,"Invalid tagname in closing tag"),v.state=N.CLOSE_TAG_SAW_WHITE);else{if(w(R))continue;O
Line truncated
|
||||
`;ye.DEFAULT_CONTENT_TYPE="application/octet-stream";ye.prototype.append=function(t,e,a){a=a||{},typeof a=="string"&&(a={filename:a});var i=R1.prototype.append.bind(this);if(typeof e=="number"&&(e=""+e),v5.isArray(e)){this._error(new Error("Arrays are not supported."));return}var r=this._multiPartHeader(t,e,a),n=this._multiPartFooter();i(r),i(e),i(n),this._trackLength(r,e,a)};ye.prototype._trackLength=function(t,e,a){var i=0;a.knownLength!=null?i+=+a.knownLength:Buffer.isBuffer(e)?i=e.length:typeof e=="string"&&(i=Buffer.byteLength(e)),this._valueLength+=i,this._overheadLength+=Buffer.byteLength(t)+ye.LINE_BREAK.length,!(!e||!e.path&&!(e.readable&&e.hasOwnProperty("httpVersion"))&&!(e instanceof BR))&&(a.knownLength||this._valuesToMeasure.push(e))};ye.prototype._lengthRetriever=function(t,e){t.hasOwnProperty("fd")?t.end!=null&&t.end!=1/0&&t.start!=null?e(null,t.end+1-(t.start?t.start:0)):AR.stat(t.path,function(a,i){var r;if(a){e(a);return}r=i.size-(t.start?t.start:0),e(null,r)}):t.hasOwnProperty("httpVersion")?e(null,+t.headers["content-length"]):t.hasOwnProperty("httpModule")?(t.on("response",function(a){t.pause(),e(null,+a.headers["content-length"])}),t.resume()):e("Unknown stream")};ye.prototype._multiPartHeader=function(t,e,a){if(typeof a.header=="string")return a.header;var i=this._getContentDisposition(e,a),r=this._getContentType(e,a),n="",s={"Content-Disposition":["form-data",'name="'+t+'"'].concat(i||[]),"Content-Type":[].concat(r||[])};typeof a.header=="object"&&O1(s,a.header);var p;for(var l in s)s.hasOwnProperty(l)&&(p=s[l],p!=null&&(Array.isArray(p)||(p=[p]),p.length&&(n+=l+": "+p.join("; ")+ye.LINE_BREAK)));return"--"+this.getBoundary()+ye.LINE_BREAK+n+ye.LINE_BREAK};ye.prototype._getContentDisposition=function(t,e){var a,i;return typeof e.filepath=="string"?a=E1.normalize(e.filepath).replace(/\\/g,"/"):e.filename||t.name||t.path?a=E1.basename(e.filename||t.name||t.path):t.readable&&t.hasOwnProperty("httpVersion")&&(a=E1.basename(t.client._httpMessage.path||"")),a&&(i='filename="'+a+'"'),i};ye.prototype._getContentType=function(t,e){var a=e.contentType;return!a&&t.name&&(a=T1.lookup(t.name)),!a&&t.path&&(a=T1.lookup(t.path)),!a&&t.readable&&t.hasOwnProperty("httpVersion")&&(a=t.headers["content-type"]),!a&&(e.filepath||e.filename)&&(a=T1.lookup(e.filepath||e.filename)),!a&&typeof t=="object"&&(a=ye.DEFAULT_CONTENT_TYPE),a};ye.prototype._multiPartFooter=function(){return function(t){var e=ye.LINE_BREAK,a=this._streams.length===0;a&&(e+=this._lastBoundary()),t(e)}.bind(this)};ye.prototype._lastBoundary=function(){return"--"+this.getBoundary()+"--"+ye.LINE_BREAK};ye.prototype.getHeaders=function(t){var e,a={"content-type":"multipart/form-data; boundary="+this.getBoundary()};for(e in t)t.hasOwnProperty(e)&&(a[e.toLowerCase()]=t[e]);return a};ye.prototype.setBoundary=function(t){this._boundary=t};ye.prototype.getBoundary=function(){return this._boundary||this._generateBoundary(),this._boundary};ye.prototype.getBuffer=function(){for(var t=new Buffer.alloc(0),e=this.getBoundary(),a=0,i=this._streams.length;a<i;a++)typeof this._streams[a]!="function"&&(Buffer.isBuffer(this._streams[a])?t=Buffer.concat([t,this._streams[a]]):t=Buffer.concat([t,Buffer.from(this._streams[a])]),(typeof this._streams[a]!="string"||this._streams[a].substring(2,e.length+2)!==e)&&(t=Buffer.concat([t,Buffer.from(ye.LINE_BREAK)])));return Buffer.concat([t,Buffer.from(this._lastBoundary())])};ye.prototype._generateBoundary=function(){for(var t="--------------------------",e=0;e<24;e++)t+=Math.floor(Math.random()*10).toString(16);this._boundary=t};ye.prototype.getLengthSync=function(){var t=this._overheadLength+this._valueLength;return this._streams.length&&(t+=this._lastBoundary().length),this.hasKnownLength()||this._error(new Error("Cannot calculate proper length in synchronous way.")),t};ye.prototype.hasKnownLength=function(){var t=!0;return this._valuesToMeasure.length&&(t=!1),t};ye.prototype.getLength=function(t){var e=this._overheadLength+this._valueLength;if(this._streams.length&&(e+=this._lastBoundary().length),!this._valuesToMeasure.length){process.nextTick(t.bind(this,null,e));return}MR.parallel(this._valuesToMeasure,this._lengthRetriever,function(a,i){if(a){t(a);return}i.forEach(function(r){e+=r}),t(null,e)})};ye.prototype.submit=function(t,e){var a,i,r={method:"post"};return typeof t=="string"?(t=DR(t),i=O1({port:t.port,path:t.pathname,host:t.hostname,protocol:t.protocol},r)):(i=O1(t,r),i.port||(i.port=i.protocol=="https:"?443:80)),i.headers=this.getHeaders(t.headers),i.protocol=="https:"?a=IR.request(i):a=PR.request(i),this.getLength(function(n,s){if(n&&n!=="Unknown stream"){this._error(n);return}if(s&&a.setHeader("Content-Length",s),this.pipe(a),e){var p,l=o(function(d,c){return a.removeListener("error",l),a.removeListener("response",p),e.call(this,d,c)},"callback");p=l.bind(this,null),a.on("error",l),a.on("response",p)}}.bind(this)),a};ye.prototype._error=function(t){this.error||(this.error=t,this.pause(),this.emit
Line truncated
|
||||
${OA.sanitize(this)}`}};ca.REQUEST_SEND_ERROR="REQUEST_SEND_ERROR";ca.PARSE_ERROR="PARSE_ERROR";var $a=ED.createClientLogger("core-http");function xy(t,e){return t?e.httpsAgent:e.httpAgent}o(xy,"getCachedAgent");var Kd=class extends ID.Transform{static{o(this,"ReportTransform")}constructor(e){super(),this.progressCallback=e,this.loadedBytes=0}_transform(e,a,i){this.push(e),this.loadedBytes+=e.length,this.progressCallback({loadedBytes:this.loadedBytes}),i(void 0)}};function Ud(t){return t&&typeof t.pipe=="function"}o(Ud,"isReadableStream");function by(t,e){return new Promise(a=>{t.once("close",()=>{e?.abort(),a()}),t.once("end",a),t.once("error",a)})}o(by,"isStreamComplete");function RA(t){let e=new cr;return t.forEach((a,i)=>{e.set(i,a)}),e}o(RA,"parseHeaders");var Qd=class{static{o(this,"NodeFetchHttpClient")}constructor(){this.proxyAgentMap=new Map,this.keepAliveAgents={}}async sendRequest(e){var a;if(!e&&typeof e!="object")throw new Error("'httpRequest' (WebResourceLike) cannot be null or undefined and must be of type object.");let i=new Fd.AbortController,r;if(e.abortSignal){if(e.abortSignal.aborted)throw new Fd.AbortError("The operation was aborted.");r=o(d=>{d.type==="abort"&&i.abort()},"abortListener"),e.abortSignal.addEventListener("abort",r)}if(e.timeout&&setTimeout(()=>{i.abort()},e.timeout),e.formData){let d=e.formData,c=new BD.default,u=o((f,h)=>{typeof h=="function"&&(h=h()),h&&Object.prototype.hasOwnProperty.call(h,"value")&&Object.prototype.hasOwnProperty.call(h,"options")?c.append(f,h.value,h.options):c.append(f,h)},"appendFormValue");for(let f of Object.keys(d)){let h=d[f];if(Array.isArray(h))for(let x=0;x<h.length;x++)u(f,h[x]);else u(f,h)}e.body=c,e.formData=void 0;let m=e.headers.get("Content-Type");m&&m.indexOf("multipart/form-data")!==-1&&(typeof c.getBoundary=="function"?e.headers.set("Content-Type",`multipart/form-data; boundary=${c.getBoundary()}`):e.headers.remove("Content-Type"))}let n=e.body?typeof e.body=="function"?e.body():e.body:void 0;if(e.onUploadProgress&&e.body){let d=e.onUploadProgress,c=new Kd(d);Ud(n)?n.pipe(c):c.end(n),n=c}let s=await this.prepareRequest(e),p=Object.assign({body:n,headers:e.headers.rawHeaders(),method:e.method,signal:i.signal,redirect:"manual"},s),l;try{let d=await this.fetch(e.url,p),c=RA(d.headers),u=((a=e.streamResponseStatusCodes)===null||a===void 0?void 0:a.has(d.status))||e.streamResponseBody;l={headers:c,request:e,status:d.status,readableStreamBody:u?d.body:void 0,bodyAsText:u?void 0:await d.text()};let m=e.onDownloadProgress;if(m){let f=d.body||void 0;if(Ud(f)){let h=new Kd(m);f.pipe(h),l.readableStreamBody=h}else{let h=parseInt(c.get("Content-Length"))||void 0;h&&m({loadedBytes:h})}}return await this.processRequest(l),l}catch(d){let c=d;throw c.code==="ENOTFOUND"?new ca(c.message,ca.REQUEST_SEND_ERROR,void 0,e):c.type==="aborted"?new Fd.AbortError("The operation was aborted."):c}finally{if(e.abortSignal&&r){let d=Promise.resolve();Ud(n)&&(d=by(n));let c=Promise.resolve();Ud(l?.readableStreamBody)&&(c=by(l.readableStreamBody,i)),Promise.all([d,c]).then(()=>{var u;(u=e.abortSignal)===null||u===void 0||u.removeEventListener("abort",r)}).catch(u=>{$a.warning("Error when cleaning up abortListener on httpRequest",u)})}}}getOrCreateAgent(e){var a;let i=kf(e.url);if(e.proxySettings){let{host:r,port:n,username:s,password:p}=e.proxySettings,l=`${r}:${n}:${s}:${p}`,d=(a=this.proxyAgentMap.get(l))!==null&&a!==void 0?a:{},c=xy(i,d);if(c)return c;let u=SA(e.url,e.proxySettings,e.headers);return c=u.agent,u.isHttps?d.httpsAgent=u.agent:d.httpAgent=u.agent,this.proxyAgentMap.set(l,d),c}else if(e.keepAlive){let r=xy(i,this.keepAliveAgents);if(r)return r;let n={keepAlive:e.keepAlive};return i?r=this.keepAliveAgents.httpsAgent=new fy.Agent(n):r=this.keepAliveAgents.httpAgent=new my.Agent(n),r}else return i?fy.globalAgent:my.globalAgent}async fetch(e,a){return MD.default(e,a)}async prepareRequest(e){let a={};return a.agent=this.getOrCreateAgent(e),a.compress=e.decompressResponse,a}async processRequest(e){}};F.HttpPipelineLogLevel=void 0;(function(t){t[t.OFF=0]="OFF",t[t.ERROR=1]="ERROR",t[t.WARNING=2]="WARNING",t[t.INFO=3]="INFO"})(F.HttpPipelineLogLevel||(F.HttpPipelineLogLevel={}));function PA(t){let{requestOptions:e,tracingOptions:a}=t,r=SD.__rest(t,["requestOptions","tracingOptions"]);return e&&(r=Object.assign(Object.assign({},r),e)),a&&(r.tracingContext=a.tracingContext,r.spanOptions=a?.spanOptions),r}o(PA,"operationOptionsToRequestOptionsBase");var mt=class{static{o(this,"BaseRequestPolicy")}constructor(e,a){this._nextPolicy=e,this._options=a}shouldLog(e){return this._options.shouldLog(e)}log(e,a){this._options.log(e,a)}},Yd=class{static{o(this,"RequestPolicyOptions")}constructor(e){this._logger=e}shouldLog(e){return!!this._logger&&e!==F.HttpPipelineLogLevel.OFF&&e<=this._logger.minimumLogLevel}log(e,a){this._logger&&this.shouldLog(e)&&this._logger.log(e,a)}},jy={explicitCharkey:!1,trim:!1,normalize:!1,normalizeTags:!1,attrkey:ut,explicitArray:!0,ignore
Line truncated
|
||||
`},headless:!1,chunkSize:1e4,emptyTag:"",cdata:!1},$d=Object.assign({},jy);$d.explicitArray=!1;var Go=Object.assign({},jy);Go.explicitArray=!1;Go.renderOpts={pretty:!1};function jf(t,e={}){var a;return Go.rootName=e.rootName,Go.charkey=(a=e.xmlCharKey)!==null&&a!==void 0?a:Bi,new Ry.Builder(Go).buildObject(t)}o(jf,"stringifyXML");function Hy(t,e={}){var a;$d.explicitRoot=!!e.includeRoot,$d.charkey=(a=e.xmlCharKey)!==null&&a!==void 0?a:Bi;let i=new Ry.Parser($d);return new Promise((r,n)=>{t?i.parseString(t,(s,p)=>{s?n(s):r(p)}):n(new Error("Document is empty"))})}o(Hy,"parseXML");function dh(t,e){return{create:(a,i)=>new Hf(a,i,t,e)}}o(dh,"deserializationPolicy");var Uy=["application/json","text/json"],Fy=["application/xml","application/atom+xml"],IA={expectedContentTypes:{json:Uy,xml:Fy}},Hf=class extends mt{static{o(this,"DeserializationPolicy")}constructor(e,a,i,r={}){var n;super(e,a),this.jsonContentTypes=i&&i.json||Uy,this.xmlContentTypes=i&&i.xml||Fy,this.xmlCharKey=(n=r.xmlCharKey)!==null&&n!==void 0?n:Bi}async sendRequest(e){return this._nextPolicy.sendRequest(e).then(a=>Vy(this.jsonContentTypes,this.xmlContentTypes,a,{xmlCharKey:this.xmlCharKey}))}};function DA(t){let e,a=t.request,i=a.operationSpec;if(i){let r=a.operationResponseGetter;r?e=r(i,t):e=i.responses[t.status]}return e}o(DA,"getOperationResponse");function AA(t){let e=t.request.shouldDeserialize,a;return e===void 0?a=!0:typeof e=="boolean"?a=e:a=e(t),a}o(AA,"shouldDeserializeResponse");function Vy(t,e,a,i={}){var r,n,s;let p={rootName:(r=i.rootName)!==null&&r!==void 0?r:"",includeRoot:(n=i.includeRoot)!==null&&n!==void 0?n:!1,xmlCharKey:(s=i.xmlCharKey)!==null&&s!==void 0?s:Bi};return LA(t,e,a,p).then(l=>{if(!AA(l))return l;let d=l.request.operationSpec;if(!d||!d.responses)return l;let c=DA(l),{error:u,shouldReturnResponse:m}=MA(l,d,c);if(u)throw u;if(m)return l;if(c){if(c.bodyMapper){let f=l.parsedBody;d.isXML&&c.bodyMapper.type.name===Wr.Sequence&&(f=typeof f=="object"?f[c.bodyMapper.xmlElementName]:[]);try{l.parsedBody=d.serializer.deserialize(c.bodyMapper,f,"operationRes.parsedBody",i)}catch(h){throw new ca(`Error ${h} occurred in deserializing the responseBody - ${l.bodyAsText}`,void 0,l.status,l.request,l)}}else d.httpMethod==="HEAD"&&(l.parsedBody=a.status>=200&&a.status<300);c.headersMapper&&(l.parsedHeaders=d.serializer.deserialize(c.headersMapper,l.headers.toJson(),"operationRes.parsedHeaders",i))}return l})}o(Vy,"deserializeResponseBody");function BA(t){let e=Object.keys(t.responses);return e.length===0||e.length===1&&e[0]==="default"}o(BA,"isOperationSpecEmpty");function MA(t,e,a){var i;let r=200<=t.status&&t.status<300;if(BA(e)?r:!!a)if(a){if(!a.isError)return{error:null,shouldReturnResponse:!1}}else return{error:null,shouldReturnResponse:!1};let s=a??e.responses.default,l=((i=t.request.streamResponseStatusCodes)===null||i===void 0?void 0:i.has(t.status))||t.request.streamResponseBody?`Unexpected status code: ${t.status}`:t.bodyAsText,d=new ca(l,void 0,t.status,t.request,t);if(!s)throw d;let c=s.bodyMapper,u=s.headersMapper;try{if(t.parsedBody){let m=t.parsedBody,f;if(c){let x=m;e.isXML&&c.type.name===Wr.Sequence&&(x=typeof m=="object"?m[c.xmlElementName]:[]),f=e.serializer.deserialize(c,x,"error.response.parsedBody")}let h=m.error||f||m;d.code=h.code,h.message&&(d.message=h.message),c&&(d.response.parsedBody=f)}t.headers&&u&&(d.response.parsedHeaders=e.serializer.deserialize(u,t.headers.toJson(),"operationRes.parsedHeaders"))}catch(m){d.message=`Error "${m.message}" occurred in deserializing the responseBody - "${t.bodyAsText}" for the default response.`}return{error:d,shouldReturnResponse:!1}}o(MA,"handleErrorResponse");function LA(t,e,a,i){var r;let n=o(p=>{let l=`Error "${p}" occurred while parsing the response body - ${a.bodyAsText}.`,d=p.code||ca.PARSE_ERROR,c=new ca(l,d,a.status,a.request,a);return Promise.reject(c)},"errorHandler");if(!(((r=a.request.streamResponseStatusCodes)===null||r===void 0?void 0:r.has(a.status))||a.request.streamResponseBody)&&a.bodyAsText){let p=a.bodyAsText,l=a.headers.get("Content-Type")||"",d=l?l.split(";").map(c=>c.toLowerCase()):[];if(d.length===0||d.some(c=>t.indexOf(c)!==-1))return new Promise(c=>{a.parsedBody=JSON.parse(p),c(a)}).catch(n);if(d.some(c=>e.indexOf(c)!==-1))return Hy(p,i).then(c=>(a.parsedBody=c,a)).catch(n)}return Promise.resolve(a)}o(LA,"parse");var $y={enable:!0};function Gy(t){return{create:(e,a)=>new Uf(e,a,t||$y)}}o(Gy,"keepAlivePolicy");var Uf=class extends mt{static{o(this,"KeepAlivePolicy")}constructor(e,a,i){super(e,a),this.keepAliveOptions=i}async sendRequest(e){return e.keepAlive=this.keepAliveOptions.enable,this._nextPolicy.sendRequest(e)}},wy=["GET","HEAD"],qA={handleRedirects:!0,maxRetries:20};function ch(t=20){return{create:(e,a)=>new Ff(e,a,t)}}o(ch,"redirectPolicy");var Ff=class extends mt{static{o(this,"RedirectPolicy")}constructor(e,a,i=20){super(e,a),this.maxRetries=i}sendRequest(e){return this._nextPolicy.sendRequest(e).then(a=>Wy(this,a,0))}};functi
Line truncated
|
||||
`).join(""))}return this._nextPolicy.sendRequest(e)}},Zy=[],e7=!1,QA=new Map;function YA(){if(!process)return;let t=Vd(Ta.HTTPS_PROXY),e=Vd(Ta.ALL_PROXY),a=Vd(Ta.HTTP_PROXY);return t||e||a}o(YA,"loadEnvironmentProxyValue");function JA(t,e,a){if(e.length===0)return!1;let i=ci.parse(t).getHost();if(a?.has(i))return a.get(i);let r=!1;for(let n of e)n[0]==="."?(i.endsWith(n)||i.length===n.length-1&&i===n.slice(1))&&(r=!0):i===n&&(r=!0);return a?.set(i,r),r}o(JA,"isBypassed");function ZA(){let t=Vd(Ta.NO_PROXY);return e7=!0,t?t.split(",").map(e=>e.trim()).filter(e=>e.length):[]}o(ZA,"loadNoProxy");function t7(t){if(!t&&(t=YA(),!t))return;let{username:e,password:a,urlWithoutAuth:i}=eB(t),r=ci.parse(i);return{host:(r.getScheme()?r.getScheme()+"://":"")+r.getHost(),port:Number.parseInt(r.getPort()||"80"),username:e,password:a}}o(t7,"getDefaultProxySettings");function xh(t,e){return t||(t=t7()),e7||Zy.push(...ZA()),{create:(a,i)=>new Yf(a,i,t,e?.customNoProxyList)}}o(xh,"proxyPolicy");function eB(t){let e=t.indexOf("@");if(e===-1)return{urlWithoutAuth:t};let a=t.indexOf("://"),i=a!==-1?a+3:0,r=t.substring(i,e),n=r.indexOf(":"),s=n!==-1,p=s?r.substring(0,n):r,l=s?r.substring(n+1):void 0,d=t.substring(0,i)+t.substring(e+1);return{username:p,password:l,urlWithoutAuth:d}}o(eB,"extractAuthFromUrl");var Yf=class extends mt{static{o(this,"ProxyPolicy")}constructor(e,a,i,r){super(e,a),this.proxySettings=i,this.customNoProxyList=r}sendRequest(e){var a;return!e.proxySettings&&!JA(e.url,(a=this.customNoProxyList)!==null&&a!==void 0?a:Zy,this.customNoProxyList?void 0:QA)&&(e.proxySettings=this.proxySettings),this._nextPolicy.sendRequest(e)}};function tB(t=30){return{create:(e,a)=>new Jf(e,a,t)}}o(tB,"rpRegistrationPolicy");var Jf=class extends mt{static{o(this,"RPRegistrationPolicy")}constructor(e,a,i=30){super(e,a),this._retryTimeout=i}sendRequest(e){return this._nextPolicy.sendRequest(e.clone()).then(a=>aB(this,e,a))}};function aB(t,e,a){if(a.status===409){let i=iB(a.bodyAsText);if(i){let r=rB(e.url);return nB(t,r,i,e).catch(()=>!1).then(n=>n?(e.headers.set("x-ms-client-request-id",ec()),t._nextPolicy.sendRequest(e.clone())):a)}}return Promise.resolve(a)}o(aB,"registerIfNeeded");function a7(t,e=!1){let a=t.clone();return e&&(a.url=t.url),a.headers.set("x-ms-client-request-id",ec()),a.headers.set("Content-Type","application/json; charset=utf-8"),a}o(a7,"getRequestEssentials");function iB(t){let e,a;if(t){try{a=JSON.parse(t)}catch{}if(a&&a.error&&a.error.message&&a.error.code&&a.error.code==="MissingSubscriptionRegistration"){let i=a.error.message.match(/.*'(.*)'/i);i&&(e=i.pop())}}return e}o(iB,"checkRPNotRegisteredError");function rB(t){let e,a=t.match(/.*\/subscriptions\/[a-f0-9-]+\//gi);if(a&&a[0])e=a[0];else throw new Error(`Unable to extract subscriptionId from the given url - ${t}.`);return e}o(rB,"extractSubscriptionUrl");async function nB(t,e,a,i){let r=`${e}providers/${a}/register?api-version=2016-02-01`,n=`${e}providers/${a}?api-version=2016-02-01`,s=a7(i);if(s.method="POST",s.url=r,(await t._nextPolicy.sendRequest(s)).status!==200)throw new Error(`Autoregistration of ${a} failed. Please try registering manually.`);return i7(t,n,i)}o(nB,"registerRP");async function i7(t,e,a){let i=a7(a);i.url=e,i.method="GET";let r=await t._nextPolicy.sendRequest(i),n=r.parsedBody;return r.parsedBody&&n.registrationState&&n.registrationState==="Registered"?!0:(await di.delay(t._retryTimeout*1e3),i7(t,e,a))}o(i7,"getRegistrationStatus");function r7(t){return{create:(e,a)=>new Zf(e,a,t)}}o(r7,"signingPolicy");var Zf=class extends mt{static{o(this,"SigningPolicy")}constructor(e,a,i){super(e,a),this.authenticationProvider=i}signRequest(e){return this.authenticationProvider.signRequest(e)}sendRequest(e){return this.signRequest(e).then(a=>this._nextPolicy.sendRequest(a))}};function bh(t,e,a,i){return{create:(r,n)=>new eh(r,n,t,e,a,i)}}o(bh,"systemErrorRetryPolicy");var eh=class extends mt{static{o(this,"SystemErrorRetryPolicy")}constructor(e,a,i,r,n,s){super(e,a),this.retryCount=Gr(i)?i:uh,this.retryInterval=Gr(r)?r:mh,this.minRetryInterval=Gr(n)?n:zA,this.maxRetryInterval=Gr(s)?s:fh}sendRequest(e){return this._nextPolicy.sendRequest(e.clone()).catch(a=>n7(this,e,a.response,a))}};async function n7(t,e,a,i,r){r=Ky(t,r,i);function n(s,p){return!!(p&&p.code&&(p.code==="ETIMEDOUT"||p.code==="ESOCKETTIMEDOUT"||p.code==="ECONNREFUSED"||p.code==="ECONNRESET"||p.code==="ENOENT"))}if(o(n,"shouldPolicyRetry"),Xy(t.retryCount,n,r,a,i))try{return await di.delay(r.retryInterval),t._nextPolicy.sendRequest(e.clone())}catch(s){return n7(t,e,a,s,r)}else return i?Promise.reject(r.error):a}o(n7,"retry");var sB=3,Ny=Ta.HttpConstants.StatusCodes;function wh(){return{create:(t,e)=>new th(t,e)}}o(wh,"throttlingRetryPolicy");var _y="The operation was aborted.",th=class t extends mt{static{o(this,"ThrottlingRetryPolicy")}constructor(e,a,i){super(e,a),this.numberOfRetries=0,this._handleResponse=i||this._defaultResponseHandler}async sendRequest(e){let a=await this.
Line truncated
|
||||
Polling from: ${a.config.operationLocation}
|
||||
Operation status: ${c}
|
||||
Polling status: ${f7.includes(c)?"Stopped":"Running"}`),c==="succeeded"){let u=s(d,a);if(u!==void 0)return{response:await e(u).catch(u7({state:a,stateProxy:i,isOperationError:p})),status:c}}return{response:d,status:c}}o(_B,"pollOperationHelper");async function v7(t){let{poll:e,state:a,stateProxy:i,options:r,getOperationStatus:n,getResourceLocation:s,getOperationLocation:p,isOperationError:l,withOperationLocation:d,getPollingInterval:c,processResult:u,getError:m,updateState:f,setDelay:h,isDone:x,setErrorAsResult:T}=t,{operationLocation:S}=a.config;if(S!==void 0){let{response:I,status:w}=await _B({poll:e,getOperationStatus:n,state:a,stateProxy:i,operationLocation:S,getResourceLocation:s,isOperationError:l,options:r});if(g7({status:w,response:I,state:a,stateProxy:i,isDone:x,processResult:u,getError:m,setErrorAsResult:T}),!f7.includes(w)){let y=c?.(I);y&&h(y);let g=p?.(I,a);if(g!==void 0){let _=S!==g;a.config.operationLocation=g,d?.(g,_)}else d?.(S,!1)}f?.(a,I)}}o(v7,"pollOperation");function x7(t){let{azureAsyncOperation:e,operationLocation:a}=t;return a??e}o(x7,"getOperationLocationPollingUrl");function b7(t){return t.headers.location}o(b7,"getLocationHeader");function w7(t){return t.headers["operation-location"]}o(w7,"getOperationLocationHeader");function N7(t){return t.headers["azure-asyncoperation"]}o(N7,"getAzureAsyncOperationHeader");function SB(t){var e;let{location:a,requestMethod:i,requestPath:r,resourceLocationConfig:n}=t;switch(i){case"PUT":return r;case"DELETE":return;case"PATCH":return(e=s())!==null&&e!==void 0?e:r;default:return s()}function s(){switch(n){case"azure-async-operation":return;case"original-uri":return r;case"location":default:return a}}o(s,"getDefault")}o(SB,"findResourceLocation");function _7(t){let{rawResponse:e,requestMethod:a,requestPath:i,resourceLocationConfig:r}=t,n=w7(e),s=N7(e),p=x7({operationLocation:n,azureAsyncOperation:s}),l=b7(e),d=a?.toLocaleUpperCase();return p!==void 0?{mode:"OperationLocation",operationLocation:p,resourceLocation:SB({requestMethod:d,location:l,requestPath:i,resourceLocationConfig:r})}:l!==void 0?{mode:"ResourceLocation",operationLocation:l}:d==="PUT"&&i?{mode:"Body",operationLocation:i}:void 0}o(_7,"inferLroMode");function S7(t){let{status:e,statusCode:a}=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 Ch(a);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 Kr.verbose(`LRO: unrecognized operation status: ${e}`),e}}o(S7,"transformStatus");function CB(t){var e;let{status:a}=(e=t.body)!==null&&e!==void 0?e:{};return S7({status:a,statusCode:t.statusCode})}o(CB,"getStatus");function EB(t){var e,a;let{properties:i,provisioningState:r}=(e=t.body)!==null&&e!==void 0?e:{},n=(a=i?.provisioningState)!==null&&a!==void 0?a:r;return S7({status:n,statusCode:t.statusCode})}o(EB,"getProvisioningState");function Ch(t){return t===202?"running":t<300?"succeeded":"failed"}o(Ch,"toOperationStatus");function C7({rawResponse:t}){let e=t.headers["retry-after"];if(e!==void 0){let a=parseInt(e);return isNaN(a)?TB(new Date(e)):a*1e3}}o(C7,"parseRetryAfter");function E7(t){let e=t.flatResponse.error;if(!e){Kr.warning("The long-running operation failed but there is no error property in the response's body");return}if(!e.code||!e.message){Kr.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(E7,"getErrorFromResponse");function TB(t){let e=Math.floor(new Date().getTime()),a=t.getTime();if(e<a)return a-e}o(TB,"calculatePollingIntervalFromDate");function T7(t){let{response:e,state:a,operationLocation:i}=t;function r(){var s;switch((s=a.config.metadata)===null||s===void 0?void 0:s.mode){case void 0:return Ch(e.rawResponse.statusCode);case"Body":return Eh(e,a);default:return"running"}}o(r,"helper");let n=r();return n==="running"&&i===void 0?"succeeded":n}o(T7,"getStatusFromInitialResponse");async function OB(t){let{stateProxy:e,resourceLocationConfig:a,processResult:i,lro:r,setErrorAsResult:n}=t;return y7({init:async()=>{let s=await r.sendInitialRequest(),p=_7({rawResponse:s.rawResponse,requestPath:r.requestPath,requestMethod:r.requestMethod,resourceLocationConfig:a});return Object.assign({response:s,operationLocation:p?.operationLocation,resourceLocation:p?.resourceLocation},p?.mode?{metadata:{mode:p.mode}}:{})},stateProxy:e,processResult:i?({flatResponse:s},p)=>i(s,p):({flatResponse:s})=>s,getOperationStatus:T7,setErrorAsResult:n})}o(OB,"initHttpOperation");function O7({rawResponse:t},e){var a;switch((a=e.config.metadata)===null||a===void 0?vLine truncated
|
||||
`,uw="HTTP/1.1",Pq="AES256",Iq="DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;",Dq=["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-if-tags","x-ms-source-if-tags"],Aq=["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"],Bq="BlobUsesCustomerSpecifiedEncryption",Mq="BlobDoesNotUseCustomerSpecifiedEncryption",Lq=["10000","10001","10002","10003","10004","10100","10101","10102","10103","10104","11000","11001","11002","11003","11004","11100","11101","11102","11103","11104"];function qq(t){let e=q.URLBuilder.parse(t),a=e.getPath();return a=a||"/",a=kq(a),e.setPath(a),e.toString()}o(qq,"escapeURLPath");function zq(t){let e="";if(t.search("DevelopmentStorageProxyUri=")!==-1){let a=t.split(";");for(let i of a)i.trim().startsWith("DevelopmentStorageProxyUri=")&&(e=i.trim().match("DevelopmentStorageProxyUri=(.*)")[1])}return e}o(zq,"getProxyUriFromDevConnString");function Jn(t,e){let a=t.split(";");for(let i of a)if(i.trim().startsWith(e))return i.trim().match(e+"=(.*)")[1];return""}o(Jn,"getValueInConnString");function vs(t){let e="";t.startsWith("UseDevelopmentStorage=true")&&(e=zq(t),t=Iq);let a=Jn(t,"BlobEndpoint");if(a=a.endsWith("/")?a.slice(0,-1):a,t.search("DefaultEndpointsProtocol=")!==-1&&t.search("AccountKey=")!==-1){let i="",r="",n=Buffer.from("accountKey","base64"),s="";if(r=Jn(t,"AccountName"),n=Buffer.from(Jn(t,"AccountKey"),"base64"),!a){i=Jn(t,"DefaultEndpointsProtocol");let p=i.toLowerCase();if(p!=="https"&&p!=="http")throw new Error("Invalid DefaultEndpointsProtocol in the provided Connection String. Expecting 'https' or 'http'");if(s=Jn(t,"EndpointSuffix"),!s)throw new Error("Invalid EndpointSuffix in the provided Connection String");a=`${i}://${r}.blob.${s}`}if(r){if(n.length===0)throw new Error("Invalid AccountKey in the provided Connection String")}else throw new Error("Invalid AccountName in the provided Connection String");return{kind:"AccountConnString",url:a,accountName:r,accountKey:n,proxyUri:e}}else{let i=Jn(t,"SharedAccessSignature"),r=fw(a);if(a){if(!i)throw new Error("Invalid SharedAccessSignature in the provided SAS Connection String")}else throw new Error("Invalid BlobEndpoint in the provided SAS Connection String");return{kind:"SASConnString",url:a,accountName:r,accountSas:i}}}o(vs,"extractConnectionStringParts");function kq(t){return encodeURIComponent(t).replace(/%2F/g,"/").replace(/'/g,"%27").replace(/\+/g,"%20").replace(/%25/g,"%")}o(kq,"escape");function Ue(t,e){let a=q.URLBuilder.parse(t),i=a.getPath();return i=i?i.endsWith("/")?`${i}${e}`:`${i}/${e}`:e,a.setPath(i),new URL(a.toString()).toString()}o(Ue,"appendToURLPath");function tn(t,e
Line truncated
|
||||
`));let i=e.split(`
|
||||
`).map(n=>n.trim());for(let n of i)!n||n.startsWith("#")||r.patterns.push(new v$.Pattern(n));return r.searchPaths.push(...a2.getSearchPaths(r.patterns)),r})}static stat(e,A,r){return e8(this,void 0,void 0,function*(){let i;if(A.followSymbolicLinks)try{i=yield qf.promises.stat(e.path)}catch(n){if(n.code==="ENOENT"){if(A.omitBrokenSymbolicLinks){t8.debug(`Broken symlink '${e.path}'`);return}throw new Error(`No information found for the path '${e.path}'. This may indicate a broken symbolic link.`)}throw n}else i=yield qf.promises.lstat(e.path);if(i.isDirectory()&&A.followSymbolicLinks){let n=yield qf.promises.realpath(e.path);for(;r.length>=e.level;)r.pop();if(r.some(s=>s===n)){t8.debug(`Symlink cycle detected for path '${e.path}' and realpath '${n}'`);return}r.push(n)}return i})}};xr.DefaultGlobber=A8});var L$=E(yh=>{"use strict";var F7e=yh&&yh.__awaiter||function(t,e,A,r){function i(n){return n instanceof A?n:new A(function(s){s(n)})}return a(i,"adopt"),new(A||(A=Promise))(function(n,s){function o(d){try{l(r.next(d))}catch(u){s(u)}}a(o,"fulfilled");function c(d){try{l(r.throw(d))}catch(u){s(u)}}a(c,"rejected");function l(d){d.done?n(d.value):i(d.value).then(o,c)}a(l,"step"),l((r=r.apply(t,e||[])).next())})};Object.defineProperty(yh,"__esModule",{value:!0});yh.create=void 0;var L7e=F$();function U7e(t,e){return F7e(this,void 0,void 0,function*(){return yield L7e.DefaultGlobber.create(t,e)})}a(U7e,"create");yh.create=U7e});var u2=E((Fe,O$)=>{Fe=O$.exports=Ve;var Nt;typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?Nt=a(function(){var t=Array.prototype.slice.call(arguments,0);t.unshift("SEMVER"),console.log.apply(console,t)},"debug"):Nt=a(function(){},"debug");Fe.SEMVER_SPEC_VERSION="2.0.0";var Yf=256,o2=Number.MAX_SAFE_INTEGER||9007199254740991,r8=16,T7e=Yf-6,wh=Fe.re=[],bt=Fe.safeRe=[],T=Fe.src=[],U=Fe.tokens={},M$=0;function $e(t){U[t]=M$++}a($e,"tok");var n8="[a-zA-Z0-9-]",i8=[["\\s",1],["\\d",Yf],[n8,T7e]];function Jf(t){for(var e=0;e<i8.length;e++){var A=i8[e][0],r=i8[e][1];t=t.split(A+"*").join(A+"{0,"+r+"}").split(A+"+").join(A+"{1,"+r+"}")}return t}a(Jf,"makeSafeRe");$e("NUMERICIDENTIFIER");T[U.NUMERICIDENTIFIER]="0|[1-9]\\d*";$e("NUMERICIDENTIFIERLOOSE");T[U.NUMERICIDENTIFIERLOOSE]="\\d+";$e("NONNUMERICIDENTIFIER");T[U.NONNUMERICIDENTIFIER]="\\d*[a-zA-Z-]"+n8+"*";$e("MAINVERSION");T[U.MAINVERSION]="("+T[U.NUMERICIDENTIFIER]+")\\.("+T[U.NUMERICIDENTIFIER]+")\\.("+T[U.NUMERICIDENTIFIER]+")";$e("MAINVERSIONLOOSE");T[U.MAINVERSIONLOOSE]="("+T[U.NUMERICIDENTIFIERLOOSE]+")\\.("+T[U.NUMERICIDENTIFIERLOOSE]+")\\.("+T[U.NUMERICIDENTIFIERLOOSE]+")";$e("PRERELEASEIDENTIFIER");T[U.PRERELEASEIDENTIFIER]="(?:"+T[U.NUMERICIDENTIFIER]+"|"+T[U.NONNUMERICIDENTIFIER]+")";$e("PRERELEASEIDENTIFIERLOOSE");T[U.PRERELEASEIDENTIFIERLOOSE]="(?:"+T[U.NUMERICIDENTIFIERLOOSE]+"|"+T[U.NONNUMERICIDENTIFIER]+")";$e("PRERELEASE");T[U.PRERELEASE]="(?:-("+T[U.PRERELEASEIDENTIFIER]+"(?:\\."+T[U.PRERELEASEIDENTIFIER]+")*))";$e("PRERELEASELOOSE");T[U.PRERELEASELOOSE]="(?:-?("+T[U.PRERELEASEIDENTIFIERLOOSE]+"(?:\\."+T[U.PRERELEASEIDENTIFIERLOOSE]+")*))";$e("BUILDIDENTIFIER");T[U.BUILDIDENTIFIER]=n8+"+";$e("BUILD");T[U.BUILD]="(?:\\+("+T[U.BUILDIDENTIFIER]+"(?:\\."+T[U.BUILDIDENTIFIER]+")*))";$e("FULL");$e("FULLPLAIN");T[U.FULLPLAIN]="v?"+T[U.MAINVERSION]+T[U.PRERELEASE]+"?"+T[U.BUILD]+"?";T[U.FULL]="^"+T[U.FULLPLAIN]+"$";$e("LOOSEPLAIN");T[U.LOOSEPLAIN]="[v=\\s]*"+T[U.MAINVERSIONLOOSE]+T[U.PRERELEASELOOSE]+"?"+T[U.BUILD]+"?";$e("LOOSE");T[U.LOOSE]="^"+T[U.LOOSEPLAIN]+"$";$e("GTLT");T[U.GTLT]="((?:<|>)?=?)";$e("XRANGEIDENTIFIERLOOSE");T[U.XRANGEIDENTIFIERLOOSE]=T[U.NUMERICIDENTIFIERLOOSE]+"|x|X|\\*";$e("XRANGEIDENTIFIER");T[U.XRANGEIDENTIFIER]=T[U.NUMERICIDENTIFIER]+"|x|X|\\*";$e("XRANGEPLAIN");T[U.XRANGEPLAIN]="[v=\\s]*("+T[U.XRANGEIDENTIFIER]+")(?:\\.("+T[U.XRANGEIDENTIFIER]+")(?:\\.("+T[U.XRANGEIDENTIFIER]+")(?:"+T[U.PRERELEASE]+")?"+T[U.BUILD]+"?)?)?";$e("XRANGEPLAINLOOSE");T[U.XRANGEPLAINLOOSE]="[v=\\s]*("+T[U.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+T[U.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+T[U.XRANGEIDENTIFIERLOOSE]+")(?:"+T[U.PRERELEASELOOSE]+")?"+T[U.BUILD]+"?)?)?";$e("XRANGE");T[U.XRANGE]="^"+T[U.GTLT]+"\\s*"+T[U.XRANGEPLAIN]+"$";$e("XRANGELOOSE");T[U.XRANGELOOSE]="^"+T[U.GTLT]+"\\s*"+T[U.XRANGEPLAINLOOSE]+"$";$e("COERCE");T[U.COERCE]="(^|[^\\d])(\\d{1,"+r8+"})(?:\\.(\\d{1,"+r8+"}))?(?:\\.(\\d{1,"+r8+"}))?(?:$|[^\\d])";$e("COERCERTL");wh[U.COERCERTL]=new RegExp(T[U.COERCE],"g");bt[U.COERCERTL]=new RegExp(Jf(T[U.COERCE]),"g");$e("LONETILDE");T[U.LONETILDE]="(?:~>?)";$e("TILDETRIM");T[U.TILDETRIM]="(\\s*)"+T[U.LONETILDE]+"\\s+";wh[U.TILDETRIM]=new RegExp(T[U.TILDETRIM],"g");bt[U.TILDETRIM]=new RegExp(Jf(T[U.TILDETRIM]),"g");var M7e="$1~";$e("TILDE");T[U.TILDE]="^"+T[U.LONETILDE]+T[U.XRANGEPLAIN]+"$";$e("TILDELOOSE");T[U.TILDELOOSE]="^"+T[U.LONETILDE]+T[U.XRANGEPLAINLOOSE]+"$";$e("LONECARET");T[U.LONECARET]="(?:\\^)";$e("CARETTRIM");T[U.CARETTRIM]="(\\s*)"+T[U.LONECARET]+"\\s+";wh[U.CARET
Line truncated
|
||||
`),{implicitDescendants:!1});try{for(var l=!0,d=BMe(c.globGenerator()),u;u=yield d.next(),e=u.done,!e;l=!0){i=u.value,l=!1;let p=i,g=p2.relative(o,p).replace(new RegExp(`\\${p2.sep}`,"g"),"/");Vf.debug(`Matched: ${g}`),g===""?s.push("."):s.push(`${g}`)}}catch(p){A={error:p}}finally{try{!l&&!e&&(r=d.return)&&(yield r.call(d))}finally{if(A)throw A.error}}return s})}a(SMe,"resolvePaths");Et.resolvePaths=SMe;function xMe(t){return Rh(this,void 0,void 0,function*(){return bMe.promisify(l8.unlink)(t)})}a(xMe,"unlinkFile");Et.unlinkFile=xMe;function J$(t,e=[]){return Rh(this,void 0,void 0,function*(){let A="";e.push("--version"),Vf.debug(`Checking ${t} ${e.join(" ")}`);try{yield IMe.exec(`${t}`,e,{ignoreReturnCode:!0,silent:!0,listeners:{stdout:r=>A+=r.toString(),stderr:r=>A+=r.toString()}})}catch(r){Vf.debug(r.message)}return A=A.trim(),Vf.debug(A),A})}a(J$,"getVersion");function vMe(){return Rh(this,void 0,void 0,function*(){let t=yield J$("zstd",["--quiet"]),e=wMe.clean(t);return Vf.debug(`zstd version: ${e}`),t===""?Su.CompressionMethod.Gzip:Su.CompressionMethod.ZstdWithoutLong})}a(vMe,"getCompressionMethod");Et.getCompressionMethod=vMe;function kMe(t){return t===Su.CompressionMethod.Gzip?Su.CacheFilename.Gzip:Su.CacheFilename.Zstd}a(kMe,"getCacheFileName");Et.getCacheFileName=kMe;function FMe(){return Rh(this,void 0,void 0,function*(){return l8.existsSync(Su.GnuTarPathOnWindows)?Su.GnuTarPathOnWindows:(yield J$("tar")).toLowerCase().includes("gnu tar")?Y$.which("tar"):""})}a(FMe,"getGnuTarPathOnWindows");Et.getGnuTarPathOnWindows=FMe;function LMe(t,e){if(e===void 0)throw Error(`Expected ${t} but value was undefiend`);return e}a(LMe,"assertDefined");Et.assertDefined=LMe;function UMe(t,e,A=!1){let r=t.slice();return e&&r.push(e),process.platform==="win32"&&!A&&r.push("windows-only"),r.push(NMe),G$.createHash("sha256").update(r.join("|")).digest("hex")}a(UMe,"getCacheVersion");Et.getCacheVersion=UMe;function TMe(){let t=process.env.ACTIONS_RUNTIME_TOKEN;if(!t)throw new Error("Unable to get the ACTIONS_RUNTIME_TOKEN env variable");return t}a(TMe,"getRuntimeToken");Et.getRuntimeToken=TMe});function Wf(){return g2>h2.length-16&&(V$.default.randomFillSync(h2),g2=0),h2.slice(g2,g2+=16)}var V$,h2,g2,d8=Le(()=>{V$=Nr(require("crypto")),h2=new Uint8Array(256),g2=h2.length;a(Wf,"rng")});var W$,z$=Le(()=>{W$=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i});function MMe(t){return typeof t=="string"&&W$.test(t)}var ql,zf=Le(()=>{z$();a(MMe,"validate");ql=MMe});function _Me(t,e=0){let A=(ti[t[e+0]]+ti[t[e+1]]+ti[t[e+2]]+ti[t[e+3]]+"-"+ti[t[e+4]]+ti[t[e+5]]+"-"+ti[t[e+6]]+ti[t[e+7]]+"-"+ti[t[e+8]]+ti[t[e+9]]+"-"+ti[t[e+10]]+ti[t[e+11]]+ti[t[e+12]]+ti[t[e+13]]+ti[t[e+14]]+ti[t[e+15]]).toLowerCase();if(!ql(A))throw TypeError("Stringified UUID is invalid");return A}var ti,Hl,jf=Le(()=>{zf();ti=[];for(let t=0;t<256;++t)ti.push((t+256).toString(16).substr(1));a(_Me,"stringify");Hl=_Me});function OMe(t,e,A){let r=e&&A||0,i=e||new Array(16);t=t||{};let n=t.node||j$,s=t.clockseq!==void 0?t.clockseq:u8;if(n==null||s==null){let p=t.random||(t.rng||Wf)();n==null&&(n=j$=[p[0]|1,p[1],p[2],p[3],p[4],p[5]]),s==null&&(s=u8=(p[6]<<8|p[7])&16383)}let o=t.msecs!==void 0?t.msecs:Date.now(),c=t.nsecs!==void 0?t.nsecs:g8+1,l=o-p8+(c-g8)/1e4;if(l<0&&t.clockseq===void 0&&(s=s+1&16383),(l<0||o>p8)&&t.nsecs===void 0&&(c=0),c>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");p8=o,g8=c,u8=s,o+=122192928e5;let d=((o&268435455)*1e4+c)%4294967296;i[r++]=d>>>24&255,i[r++]=d>>>16&255,i[r++]=d>>>8&255,i[r++]=d&255;let u=o/4294967296*1e4&268435455;i[r++]=u>>>8&255,i[r++]=u&255,i[r++]=u>>>24&15|16,i[r++]=u>>>16&255,i[r++]=s>>>8|128,i[r++]=s&255;for(let p=0;p<6;++p)i[r+p]=n[p];return e||Hl(i)}var j$,u8,p8,g8,X$,Z$=Le(()=>{d8();jf();p8=0,g8=0;a(OMe,"v1");X$=OMe});function PMe(t){if(!ql(t))throw TypeError("Invalid UUID");let e,A=new Uint8Array(16);return A[0]=(e=parseInt(t.slice(0,8),16))>>>24,A[1]=e>>>16&255,A[2]=e>>>8&255,A[3]=e&255,A[4]=(e=parseInt(t.slice(9,13),16))>>>8,A[5]=e&255,A[6]=(e=parseInt(t.slice(14,18),16))>>>8,A[7]=e&255,A[8]=(e=parseInt(t.slice(19,23),16))>>>8,A[9]=e&255,A[10]=(e=parseInt(t.slice(24,36),16))/1099511627776&255,A[11]=e/4294967296&255,A[12]=e>>>24&255,A[13]=e>>>16&255,A[14]=e>>>8&255,A[15]=e&255,A}var E2,h8=Le(()=>{zf();a(PMe,"parse");E2=PMe});function qMe(t){t=unescape(encodeURIComponent(t));let e=[];for(let A=0;A<t.length;++A)e.push(t.charCodeAt(A));return e}function Xf(t,e,A){function r(i,n,s,o){if(typeof i=="string"&&(i=qMe(i)),typeof n=="string"&&(n=E2(n)),n.length!==16)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let c=new Uint8Array(16+i.length);if(c.set(n),c.set(i,n.length),c=A(c),c[6]=c[6]&15|e,c[8]=c[8]&63|128,s){o=o||0;for(let l=0;l<16;++l)s[o+l]=c[l];return s}return Hl(c)}a(r,"generateUUID");try{r.name=t}catch{}return r.DNS=HMe,r.URL=YMe,r}var HMe,YMe,E8=Le(()=>{jf();h8();a(qMe,"stringToBytes
Line truncated
|
||||
`},headless:!1,chunkSize:1e4,emptyTag:"",cdata:!1}}}).call(f8)});var Bo=E((_ee,Yl)=>{(function(){var t,e,A,r,i,n,s,o=[].slice,c={}.hasOwnProperty;t=a(function(){var l,d,u,p,g,h;if(h=arguments[0],g=2<=arguments.length?o.call(arguments,1):[],i(Object.assign))Object.assign.apply(null,arguments);else for(l=0,u=g.length;l<u;l++)if(p=g[l],p!=null)for(d in p)c.call(p,d)&&(h[d]=p[d]);return h},"assign"),i=a(function(l){return!!l&&Object.prototype.toString.call(l)==="[object Function]"},"isFunction"),n=a(function(l){var d;return!!l&&((d=typeof l)=="function"||d==="object")},"isObject"),A=a(function(l){return i(Array.isArray)?Array.isArray(l):Object.prototype.toString.call(l)==="[object Array]"},"isArray"),r=a(function(l){var d;if(A(l))return!l.length;for(d in l)if(c.call(l,d))return!1;return!0},"isEmpty"),s=a(function(l){var d,u;return n(l)&&(u=Object.getPrototypeOf(l))&&(d=u.constructor)&&typeof d=="function"&&d instanceof d&&Function.prototype.toString.call(d)===Function.prototype.toString.call(Object)},"isPlainObject"),e=a(function(l){return i(l.valueOf)?l.valueOf():l},"getValue"),Yl.exports.assign=t,Yl.exports.isFunction=i,Yl.exports.isObject=n,Yl.exports.isArray=A,Yl.exports.isEmpty=r,Yl.exports.isPlainObject=s,Yl.exports.getValue=e}).call(_ee)});var Q8=E((Oee,Pee)=>{(function(){var t;Pee.exports=t=function(){function e(){}return a(e,"XMLDOMImplementation"),e.prototype.hasFeature=function(A,r){return!0},e.prototype.createDocumentType=function(A,r,i){throw new Error("This DOM method is not implemented.")},e.prototype.createDocument=function(A,r,i){throw new Error("This DOM method is not implemented.")},e.prototype.createHTMLDocument=function(A){throw new Error("This DOM method is not implemented.")},e.prototype.getFeature=function(A,r){throw new Error("This DOM method is not implemented.")},e}()}).call(Oee)});var Yee=E((qee,Hee)=>{(function(){var t;Hee.exports=t=function(){function e(){}return a(e,"XMLDOMErrorHandler"),e.prototype.handleError=function(A){throw new Error(A)},e}()}).call(qee)});var Vee=E((Gee,Jee)=>{(function(){var t;Jee.exports=t=function(){function e(A){this.arr=A||[]}return a(e,"XMLDOMStringList"),Object.defineProperty(e.prototype,"length",{get:function(){return this.arr.length}}),e.prototype.item=function(A){return this.arr[A]||null},e.prototype.contains=function(A){return this.arr.indexOf(A)!==-1},e}()}).call(Gee)});var jee=E((Wee,zee)=>{(function(){var t,e,A;e=Yee(),A=Vee(),zee.exports=t=function(){function r(){var i;this.defaultParams={"canonical-form":!1,"cdata-sections":!1,comments:!1,"datatype-normalization":!1,"element-content-whitespace":!0,entities:!0,"error-handler":new e,infoset:!0,"validate-if-schema":!1,namespaces:!0,"namespace-declarations":!0,"normalize-characters":!1,"schema-location":"","schema-type":"","split-cdata-sections":!0,validate:!1,"well-formed":!0},this.params=i=Object.create(this.defaultParams)}return a(r,"XMLDOMConfiguration"),Object.defineProperty(r.prototype,"parameterNames",{get:function(){return new A(Object.keys(this.defaultParams))}}),r.prototype.getParameter=function(i){return this.params.hasOwnProperty(i)?this.params[i]:null},r.prototype.canSetParameter=function(i,n){return!0},r.prototype.setParameter=function(i,n){return n!=null?this.params[i]=n:delete this.params[i]},r}()}).call(Wee)});var KA=E((Xee,Zee)=>{(function(){Zee.exports={Element:1,Attribute:2,Text:3,CData:4,EntityReference:5,EntityDeclaration:6,ProcessingInstruction:7,Comment:8,Document:9,DocType:10,DocumentFragment:11,NotationDeclaration:12,Declaration:201,Raw:202,AttributeDeclaration:203,ElementDeclaration:204,Dummy:205}}).call(Xee)});var B8=E((Kee,$ee)=>{(function(){var t,e,A;t=KA(),A=rs(),$ee.exports=e=function(){function r(i,n,s){if(this.parent=i,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),n==null)throw new Error("Missing attribute name. "+this.debugInfo(n));this.name=this.stringify.name(n),this.value=this.stringify.attValue(s),this.type=t.Attribute,this.isId=!1,this.schemaTypeInfo=null}return a(r,"XMLAttribute"),Object.defineProperty(r.prototype,"nodeType",{get:function(){return this.type}}),Object.defineProperty(r.prototype,"ownerElement",{get:function(){return this.parent}}),Object.defineProperty(r.prototype,"textContent",{get:function(){return this.value},set:function(i){return this.value=i||""}}),Object.defineProperty(r.prototype,"namespaceURI",{get:function(){return""}}),Object.defineProperty(r.prototype,"prefix",{get:function(){return""}}),Object.defineProperty(r.prototype,"localName",{get:function(){return this.name}}),Object.defineProperty(r.prototype,"specified",{get:function(){return!0}}),r.prototype.clone=function(){return Object.create(this)},r.prototype.toString=function(i){return this.options.writer.attribute(this,this.options.writer.filterOptions(i))},r.prototype.debugInfo=function(i){return i=i||this.name,i==null?"parent: <"+this.parent.name+">":"attribute: {"+i+"}, parent: <"+this.parent.name+">"},r.prototype.isEqualNode=function(i
Line truncated
|
||||
`,C.offset=(S=I.offset)!=null?S:0,C.dontPrettyTextNodes=(w=(k=I.dontPrettyTextNodes)!=null?k:I.dontprettytextnodes)!=null?w:0,C.spaceBeforeSlash=(D=(v=I.spaceBeforeSlash)!=null?v:I.spacebeforeslash)!=null?D:"",C.spaceBeforeSlash===!0&&(C.spaceBeforeSlash=" "),C.suppressPrettyCount=0,C.user={},C.state=e.None,C},b.prototype.indent=function(I,C,Q){var N;return!C.pretty||C.suppressPrettyCount?"":C.pretty&&(N=(Q||0)+C.offset+1,N>0)?new Array(N).join(C.indent):""},b.prototype.endline=function(I,C,Q){return!C.pretty||C.suppressPrettyCount?"":C.newline},b.prototype.attribute=function(I,C,Q){var N;return this.openAttribute(I,C,Q),N=" "+I.name+'="'+I.value+'"',this.closeAttribute(I,C,Q),N},b.prototype.cdata=function(I,C,Q){var N;return this.openNode(I,C,Q),C.state=e.OpenTag,N=this.indent(I,C,Q)+"<![CDATA[",C.state=e.InsideTag,N+=I.value,C.state=e.CloseTag,N+="]]>"+this.endline(I,C,Q),C.state=e.None,this.closeNode(I,C,Q),N},b.prototype.comment=function(I,C,Q){var N;return this.openNode(I,C,Q),C.state=e.OpenTag,N=this.indent(I,C,Q)+"<!-- ",C.state=e.InsideTag,N+=I.value,C.state=e.CloseTag,N+=" -->"+this.endline(I,C,Q),C.state=e.None,this.closeNode(I,C,Q),N},b.prototype.declaration=function(I,C,Q){var N;return this.openNode(I,C,Q),C.state=e.OpenTag,N=this.indent(I,C,Q)+"<?xml",C.state=e.InsideTag,N+=' version="'+I.version+'"',I.encoding!=null&&(N+=' encoding="'+I.encoding+'"'),I.standalone!=null&&(N+=' standalone="'+I.standalone+'"'),C.state=e.CloseTag,N+=C.spaceBeforeSlash+"?>",N+=this.endline(I,C,Q),C.state=e.None,this.closeNode(I,C,Q),N},b.prototype.docType=function(I,C,Q){var N,S,w,k,D;if(Q||(Q=0),this.openNode(I,C,Q),C.state=e.OpenTag,k=this.indent(I,C,Q),k+="<!DOCTYPE "+I.root().name,I.pubID&&I.sysID?k+=' PUBLIC "'+I.pubID+'" "'+I.sysID+'"':I.sysID&&(k+=' SYSTEM "'+I.sysID+'"'),I.children.length>0){for(k+=" [",k+=this.endline(I,C,Q),C.state=e.InsideTag,D=I.children,S=0,w=D.length;S<w;S++)N=D[S],k+=this.writeChildNode(N,C,Q+1);C.state=e.CloseTag,k+="]"}return C.state=e.CloseTag,k+=C.spaceBeforeSlash+">",k+=this.endline(I,C,Q),C.state=e.None,this.closeNode(I,C,Q),k},b.prototype.element=function(I,C,Q){var N,S,w,k,D,v,x,L,q,le,_,rt,Se,vt;Q||(Q=0),le=!1,_="",this.openNode(I,C,Q),C.state=e.OpenTag,_+=this.indent(I,C,Q)+"<"+I.name,rt=I.attribs;for(q in rt)B.call(rt,q)&&(N=rt[q],_+=this.attribute(N,C,Q));if(w=I.children.length,k=w===0?null:I.children[0],w===0||I.children.every(function(ht){return(ht.type===t.Text||ht.type===t.Raw)&&ht.value===""}))C.allowEmpty?(_+=">",C.state=e.CloseTag,_+="</"+I.name+">"+this.endline(I,C,Q)):(C.state=e.CloseTag,_+=C.spaceBeforeSlash+"/>"+this.endline(I,C,Q));else if(C.pretty&&w===1&&(k.type===t.Text||k.type===t.Raw)&&k.value!=null)_+=">",C.state=e.InsideTag,C.suppressPrettyCount++,le=!0,_+=this.writeChildNode(k,C,Q+1),C.suppressPrettyCount--,le=!1,C.state=e.CloseTag,_+="</"+I.name+">"+this.endline(I,C,Q);else{if(C.dontPrettyTextNodes){for(Se=I.children,D=0,x=Se.length;D<x;D++)if(S=Se[D],(S.type===t.Text||S.type===t.Raw)&&S.value!=null){C.suppressPrettyCount++,le=!0;break}}for(_+=">"+this.endline(I,C,Q),C.state=e.InsideTag,vt=I.children,v=0,L=vt.length;v<L;v++)S=vt[v],_+=this.writeChildNode(S,C,Q+1);C.state=e.CloseTag,_+=this.indent(I,C,Q)+"</"+I.name+">",le&&C.suppressPrettyCount--,_+=this.endline(I,C,Q),C.state=e.None}return this.closeNode(I,C,Q),_},b.prototype.writeChildNode=function(I,C,Q){switch(I.type){case t.CData:return this.cdata(I,C,Q);case t.Comment:return this.comment(I,C,Q);case t.Element:return this.element(I,C,Q);case t.Raw:return this.raw(I,C,Q);case t.Text:return this.text(I,C,Q);case t.ProcessingInstruction:return this.processingInstruction(I,C,Q);case t.Dummy:return"";case t.Declaration:return this.declaration(I,C,Q);case t.DocType:return this.docType(I,C,Q);case t.AttributeDeclaration:return this.dtdAttList(I,C,Q);case t.ElementDeclaration:return this.dtdElement(I,C,Q);case t.EntityDeclaration:return this.dtdEntity(I,C,Q);case t.NotationDeclaration:return this.dtdNotation(I,C,Q);default:throw new Error("Unknown XML node type: "+I.constructor.name)}},b.prototype.processingInstruction=function(I,C,Q){var N;return this.openNode(I,C,Q),C.state=e.OpenTag,N=this.indent(I,C,Q)+"<?",C.state=e.InsideTag,N+=I.target,I.value&&(N+=" "+I.value),C.state=e.CloseTag,N+=C.spaceBeforeSlash+"?>",N+=this.endline(I,C,Q),C.state=e.None,this.closeNode(I,C,Q),N},b.prototype.raw=function(I,C,Q){var N;return this.openNode(I,C,Q),C.state=e.OpenTag,N=this.indent(I,C,Q),C.state=e.InsideTag,N+=I.value,C.state=e.CloseTag,N+=this.endline(I,C,Q),C.state=e.None,this.closeNode(I,C,Q),N},b.prototype.text=function(I,C,Q){var N;return this.openNode(I,C,Q),C.state=e.OpenTag,N=this.indent(I,C,Q),C.state=e.InsideTag,N+=I.value,C.state=e.CloseTag,N+=this.endline(I,C,Q),C.state=e.None,this.closeNode(I,C,Q),N},b.prototype.dtdAttList=function(I,C,Q){var N;return this.openNode(I,C,Q),C.state=e.OpenTag,N=this.indent(I,C,Q)+"<!ATTLIST",C.state=e.InsideTag,N+=" "+I.elementName+" "+I.attributeName+" "+I.attributeTyp
Line truncated
|
||||
`||R==="\r"||R===" "}a(I,"isWhitespace");function C(R){return R==='"'||R==="'"}a(C,"isQuote");function Q(R){return R===">"||I(R)}a(Q,"isAttribEnd");function N(R,y){return R.test(y)}a(N,"isMatch");function S(R,y){return!N(R,y)}a(S,"notMatch");var w=0;t.STATE={BEGIN:w++,BEGIN_WHITESPACE:w++,TEXT:w++,TEXT_ENTITY:w++,OPEN_WAKA:w++,SGML_DECL:w++,SGML_DECL_QUOTED:w++,DOCTYPE:w++,DOCTYPE_QUOTED:w++,DOCTYPE_DTD:w++,DOCTYPE_DTD_QUOTED:w++,COMMENT_STARTING:w++,COMMENT:w++,COMMENT_ENDING:w++,COMMENT_ENDED:w++,CDATA:w++,CDATA_ENDING:w++,CDATA_ENDING_2:w++,PROC_INST:w++,PROC_INST_BODY:w++,PROC_INST_ENDING:w++,OPEN_TAG:w++,OPEN_TAG_SLASH:w++,ATTRIB:w++,ATTRIB_NAME:w++,ATTRIB_NAME_SAW_WHITE:w++,ATTRIB_VALUE:w++,ATTRIB_VALUE_QUOTED:w++,ATTRIB_VALUE_CLOSED:w++,ATTRIB_VALUE_UNQUOTED:w++,ATTRIB_VALUE_ENTITY_Q:w++,ATTRIB_VALUE_ENTITY_U:w++,CLOSE_TAG:w++,CLOSE_TAG_SAW_WHITE:w++,SCRIPT:w++,SCRIPT_ENDING:w++},t.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},t.ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:174,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830},Object.keys(t.ENTITIES).forEach(function(R){var y=t.ENTITIES[R],M=typeof y=="number"?String.fromCharCode(y):y;t.ENTITIES[R]=M});for(var k in t.STATE)t.STATE[t.STATE[k]]=k;w=t.STATE;function D(R,y,M){R[y]&&R[y](M)}a(D,"emit");function v(R,y,M){R.textNode&&x(R),D(R,y,M)}a(v,"emitNode");function x(R){R.textNode=L(R.opt,R.textNode),R.textNode&&D(R,"ontext",R.textNode),R.textNode=""}a(x,"closeText");function L(R,y){return R.trim&&(y=y.trim()),R.normalize&&(y=y.replace(/\s+/g," ")),y}a(L,"textopts");function q(R,y){return x(R),R.trackPosition&&(y+=`
|
||||
Line: `+R.line+`
|
||||
Column: `+R.column+`
|
||||
Char: `+R.c),y=new Error(y),R.error=y,D(R,"onerror",y),R}a(q,"error");function le(R){return R.sawRoot&&!R.closedRoot&&_(R,"Unclosed root tag"),R.state!==w.BEGIN&&R.state!==w.BEGIN_WHITESPACE&&R.state!==w.TEXT&&q(R,"Unexpected end"),x(R),R.c="",R.closed=!0,D(R,"onend"),A.call(R,R.strict,R.opt),R}a(le,"end");function _(R,y){if(typeof R!="object"||!(R instanceof A))throw new Error("bad call to strictFail");R.strict&&q(R,y)}a(_,"strictFail");function rt(R){R.strict||(R.tagName=R.tagName[R.looseCase]());var y=R.tags[R.tags.length-1]||R,M=R.tag={name:R.tagName,attributes:{}};R.opt.xmlns&&(M.ns=y.ns),R.attribList.length=0,v(R,"onopentagstart",M)}a(rt,"newTag");function Se(R,y){var M=R.indexOf(":"),F=M<0?["",R]:R.split(":"),kt=F[0],pr=F[1];return y&&R==="xmlns"&&(kt="xmlns",pr=""),{prefix:kt,local:pr}}a(Se,"qname");function vt(R){if(R.strict||(R.attribName=R.attribName[R.looseCase]()),R.attribList.indexOf(R.attribName)!==-1||R.tag.attributes.hasOwnProperty(R.attribName)){R.attribName=R.attribValue="";return}if(R.opt.xmlns){var y=Se(R.attribName,!0),M=y.prefix,F=y.local;if(M==="xmlns")if(F==="xml"&&R.attribValue!==p)_(R,"xml: prefix must be bound to "+p+`
|
||||
Actual: `+R.attribValue);else if(F==="xmlns"&&R.attribValue!==g)_(R,"xmlns: prefix must be bound to "+g+`
|
||||
Actual: `+R.attribValue);else{var kt=R.tag,pr=R.tags[R.tags.length-1]||R;kt.ns===pr.ns&&(kt.ns=Object.create(pr.ns)),kt.ns[F]=R.attribValue}R.attribList.push([R.attribName,R.attribValue])}else R.tag.attributes[R.attribName]=R.attribValue,v(R,"onattribute",{name:R.attribName,value:R.attribValue});R.attribName=R.attribValue=""}a(vt,"attrib");function ht(R,y){if(R.opt.xmlns){var M=R.tag,F=Se(R.tagName);M.prefix=F.prefix,M.local=F.local,M.uri=M.ns[F.prefix]||"",M.prefix&&!M.uri&&(_(R,"Unbound namespace prefix: "+JSON.stringify(R.tagName)),M.uri=F.prefix);var kt=R.tags[R.tags.length-1]||R;M.ns&&kt.ns!==M.ns&&Object.keys(M.ns).forEach(function(C_){v(R,"onopennamespace",{prefix:C_,uri:M.ns[C_]})});for(var pr=0,gr=R.attribList.length;pr<gr;pr++){var Xi=R.attribList[pr],ys=Xi[0],xp=Xi[1],Gr=Se(ys,!0),Xo=Gr.prefix,TQe=Gr.local,m_=Xo===""?"":M.ns[Xo]||"",r4={name:ys,value:xp,prefix:Xo,local:TQe,uri:m_};Xo&&Xo!=="xmlns"&&!m_&&(_(R,"Unbound namespace prefix: "+JSON.stringify(Xo)),r4.uri=Xo),R.tag.attributes[ys]=r4,v(R,"onattribute",r4)}R.attribList.length=0}R.tag.isSelfClosing=!!y,R.sawRoot=!0,R.tags.push(R.tag),v(R,"onopentag",R.tag),y||(!R.noscript&&R.tagName.toLowerCase()==="script"?R.state=w.SCRIPT:R.state=w.TEXT,R.tag=null,R.tagName=""),R.attribName=R.attribValue="",R.attribList.length=0}a(ht,"openTag");function wr(R){if(!R.tagName){_(R,"Weird empty close tag."),R.textNode+="</>",R.state=w.TEXT;return}if(R.script){if(R.tagName!=="script"){R.script+="</"+R.tagName+">",R.tagName="",R.state=w.SCRIPT;return}v(R,"onscript",R.script),R.script=""}var y=R.tags.length,M=R.tagName;R.strict||(M=M[R.looseCase]());for(var F=M;y--;){var kt=R.tags[y];if(kt.name!==F)_(R,"Unexpected close tag");else break}if(y<0){_(R,"Unmatched closing tag: "+R.tagName),R.textNode+="</"+R.tagName+">",R.state=w.TEXT;return}R.tagName=M;for(var pr=R.tags.length;pr-- >y;){var gr=R.tag=R.tags.pop();R.tagName=R.tag.name,v(R,"onclosetag",R.tagName);var Xi={};for(var ys in gr.ns)Xi[ys]=gr.ns[ys];var xp=R.tags[R.tags.length-1]||R;R.opt.xmlns&&gr.ns!==xp.ns&&Object.keys(gr.ns).forEach(function(Gr){var Xo=gr.ns[Gr];v(R,"onclosenamespace",{prefix:Gr,uri:Xo})})}y===0&&(R.closedRoot=!0),R.tagName=R.attribValue=R.attribName="",R.attribList.length=0,R.state=w.TEXT}a(wr,"closeTag");function br(R){var y=R.entity,M=y.toLowerCase(),F,kt="";return R.ENTITIES[y]?R.ENTITIES[y]:R.ENTITIES[M]?R.ENTITIES[M]:(y=M,y.charAt(0)==="#"&&(y.charAt(1)==="x"?(y=y.slice(2),F=parseInt(y,16),kt=F.toString(16)):(y=y.slice(1),F=parseInt(y,10),kt=F.toString(10))),y=y.replace(/^0+/,""),isNaN(F)||kt.toLowerCase()!==y?(_(R,"Invalid character entity"),"&"+R.entity+";"):String.fromCodePoint(F))}a(br,"parseEntity");function pe(R,y){y==="<"?(R.state=w.OPEN_WAKA,R.startTagPosition=R.position):I(y)||(_(R,"Non-whitespace before first tag."),R.textNode=y,R.state=w.TEXT)}a(pe,"beginWhiteSpace");function ot(R,y){var M="";return y<R.length&&(M=R.charAt(y)),M}a(ot,"charAt");function Ct(R){var y=this;if(this.error)throw this.error;if(y.closed)return q(y,"Cannot write after close. Assign an onready handler.");if(R===null)return le(y);typeof R=="object"&&(R=R.toString());for(var M=0,F="";F=ot(R,M++),y.c=F,!!F;)switch(y.trackPosition&&(y.position++,F===`
|
||||
`?(y.line++,y.column=0):y.column++),y.state){case w.BEGIN:if(y.state=w.BEGIN_WHITESPACE,F==="\uFEFF")continue;pe(y,F);continue;case w.BEGIN_WHITESPACE:pe(y,F);continue;case w.TEXT:if(y.sawRoot&&!y.closedRoot){for(var kt=M-1;F&&F!=="<"&&F!=="&";)F=ot(R,M++),F&&y.trackPosition&&(y.position++,F===`
|
||||
`?(y.line++,y.column=0):y.column++);y.textNode+=R.substring(kt,M-1)}F==="<"&&!(y.sawRoot&&y.closedRoot&&!y.strict)?(y.state=w.OPEN_WAKA,y.startTagPosition=y.position):(!I(F)&&(!y.sawRoot||y.closedRoot)&&_(y,"Text data outside of root node."),F==="&"?y.state=w.TEXT_ENTITY:y.textNode+=F);continue;case w.SCRIPT:F==="<"?y.state=w.SCRIPT_ENDING:y.script+=F;continue;case w.SCRIPT_ENDING:F==="/"?y.state=w.CLOSE_TAG:(y.script+="<"+F,y.state=w.SCRIPT);continue;case w.OPEN_WAKA:if(F==="!")y.state=w.SGML_DECL,y.sgmlDecl="";else if(!I(F))if(N(m,F))y.state=w.OPEN_TAG,y.tagName=F;else if(F==="/")y.state=w.CLOSE_TAG,y.tagName="";else if(F==="?")y.state=w.PROC_INST,y.procInstName=y.procInstBody="";else{if(_(y,"Unencoded <"),y.startTagPosition+1<y.position){var pr=y.position-y.startTagPosition;F=new Array(pr).join(" ")+F}y.textNode+="<"+F,y.state=w.TEXT}continue;case w.SGML_DECL:(y.sgmlDecl+F).toUpperCase()===d?(v(y,"onopencdata"),y.state=w.CDATA,y.sgmlDecl="",y.cdata=""):y.sgmlDecl+F==="--"?(y.state=w.COMMENT,y.comment="",y.sgmlDecl=""):(y.sgmlDecl+F).toUpperCase()===u?(y.state=w.DOCTYPE,(y.doctype||y.sawRoot)&&_(y,"Inappropriately located doctype declaration"),y.doctype="",y.sgmlDecl=""):F===">"?(v(y,"onsgmldeclaration",y.sgmlDecl),y.sgmlDecl="",y.state=w.TEXT):(C(F)&&(y.state=w.SGML_DECL_QUOTED),y.sgmlDecl+=F);continue;case w.SGML_DECL_QUOTED:F===y.q&&(y.state=w.SGML_DECL,y.q=""),y.sgmlDecl+=F;continue;case w.DOCTYPE:F===">"?(y.state=w.TEXT,v(y,"ondoctype",y.doctype),y.doctype=!0):(y.doctype+=F,F==="["?y.state=w.DOCTYPE_DTD:C(F)&&(y.state=w.DOCTYPE_QUOTED,y.q=F));continue;case w.DOCTYPE_QUOTED:y.doctype+=F,F===y.q&&(y.q="",y.state=w.DOCTYPE);continue;case w.DOCTYPE_DTD:y.doctype+=F,F==="]"?y.state=w.DOCTYPE:C(F)&&(y.state=w.DOCTYPE_DTD_QUOTED,y.q=F);continue;case w.DOCTYPE_DTD_QUOTED:y.doctype+=F,F===y.q&&(y.state=w.DOCTYPE_DTD,y.q="");continue;case w.COMMENT:F==="-"?y.state=w.COMMENT_ENDING:y.comment+=F;continue;case w.COMMENT_ENDING:F==="-"?(y.state=w.COMMENT_ENDED,y.comment=L(y.opt,y.comment),y.comment&&v(y,"oncomment",y.comment),y.comment=""):(y.comment+="-"+F,y.state=w.COMMENT);continue;case w.COMMENT_ENDED:F!==">"?(_(y,"Malformed comment"),y.comment+="--"+F,y.state=w.COMMENT):y.state=w.TEXT;continue;case w.CDATA:F==="]"?y.state=w.CDATA_ENDING:y.cdata+=F;continue;case w.CDATA_ENDING:F==="]"?y.state=w.CDATA_ENDING_2:(y.cdata+="]"+F,y.state=w.CDATA);continue;case w.CDATA_ENDING_2:F===">"?(y.cdata&&v(y,"oncdata",y.cdata),v(y,"onclosecdata"),y.cdata="",y.state=w.TEXT):F==="]"?y.cdata+="]":(y.cdata+="]]"+F,y.state=w.CDATA);continue;case w.PROC_INST:F==="?"?y.state=w.PROC_INST_ENDING:I(F)?y.state=w.PROC_INST_BODY:y.procInstName+=F;continue;case w.PROC_INST_BODY:if(!y.procInstBody&&I(F))continue;F==="?"?y.state=w.PROC_INST_ENDING:y.procInstBody+=F;continue;case w.PROC_INST_ENDING:F===">"?(v(y,"onprocessinginstruction",{name:y.procInstName,body:y.procInstBody}),y.procInstName=y.procInstBody="",y.state=w.TEXT):(y.procInstBody+="?"+F,y.state=w.PROC_INST_BODY);continue;case w.OPEN_TAG:N(f,F)?y.tagName+=F:(rt(y),F===">"?ht(y):F==="/"?y.state=w.OPEN_TAG_SLASH:(I(F)||_(y,"Invalid character in tag name"),y.state=w.ATTRIB));continue;case w.OPEN_TAG_SLASH:F===">"?(ht(y,!0),wr(y)):(_(y,"Forward-slash in opening tag not followed by >"),y.state=w.ATTRIB);continue;case w.ATTRIB:if(I(F))continue;F===">"?ht(y):F==="/"?y.state=w.OPEN_TAG_SLASH:N(m,F)?(y.attribName=F,y.attribValue="",y.state=w.ATTRIB_NAME):_(y,"Invalid attribute name");continue;case w.ATTRIB_NAME:F==="="?y.state=w.ATTRIB_VALUE:F===">"?(_(y,"Attribute without value"),y.attribValue=y.attribName,vt(y),ht(y)):I(F)?y.state=w.ATTRIB_NAME_SAW_WHITE:N(f,F)?y.attribName+=F:_(y,"Invalid attribute name");continue;case w.ATTRIB_NAME_SAW_WHITE:if(F==="=")y.state=w.ATTRIB_VALUE;else{if(I(F))continue;_(y,"Attribute without value"),y.tag.attributes[y.attribName]="",y.attribValue="",v(y,"onattribute",{name:y.attribName,value:""}),y.attribName="",F===">"?ht(y):N(m,F)?(y.attribName=F,y.state=w.ATTRIB_NAME):(_(y,"Invalid attribute name"),y.state=w.ATTRIB)}continue;case w.ATTRIB_VALUE:if(I(F))continue;C(F)?(y.q=F,y.state=w.ATTRIB_VALUE_QUOTED):(_(y,"Unquoted attribute value"),y.state=w.ATTRIB_VALUE_UNQUOTED,y.attribValue=F);continue;case w.ATTRIB_VALUE_QUOTED:if(F!==y.q){F==="&"?y.state=w.ATTRIB_VALUE_ENTITY_Q:y.attribValue+=F;continue}vt(y),y.q="",y.state=w.ATTRIB_VALUE_CLOSED;continue;case w.ATTRIB_VALUE_CLOSED:I(F)?y.state=w.ATTRIB:F===">"?ht(y):F==="/"?y.state=w.OPEN_TAG_SLASH:N(m,F)?(_(y,"No whitespace between attributes"),y.attribName=F,y.attribValue="",y.state=w.ATTRIB_NAME):_(y,"Invalid attribute name");continue;case w.ATTRIB_VALUE_UNQUOTED:if(!Q(F)){F==="&"?y.state=w.ATTRIB_VALUE_ENTITY_U:y.attribValue+=F;continue}vt(y),F===">"?ht(y):y.state=w.ATTRIB;continue;case w.CLOSE_TAG:if(y.tagName)F===">"?wr(y):N(f,F)?y.tagName+=F:y.script?(y.script+="</"+y.tagName,y.tagName="",y.state=w.SCRIPT):(I(F)||_(y,"Invalid tagname in closing tag"),y.state=w.CLOSE_TAG_SAW_WHITE);else{if(I(F))continue;S
Line truncated
|
||||
`;ut.DEFAULT_CONTENT_TYPE="application/octet-stream";ut.prototype.append=function(t,e,A){A=A||{},typeof A=="string"&&(A={filename:A});var r=e5.prototype.append.bind(this);if(typeof e=="number"&&(e=""+e),wre.isArray(e)){this._error(new Error("Arrays are not supported."));return}var i=this._multiPartHeader(t,e,A),n=this._multiPartFooter();r(i),r(e),r(n),this._trackLength(i,e,A)};ut.prototype._trackLength=function(t,e,A){var r=0;A.knownLength!=null?r+=+A.knownLength:Buffer.isBuffer(e)?r=e.length:typeof e=="string"&&(r=Buffer.byteLength(e)),this._valueLength+=r,this._overheadLength+=Buffer.byteLength(t)+ut.LINE_BREAK.length,!(!e||!e.path&&!(e.readable&&e.hasOwnProperty("httpVersion"))&&!(e instanceof SOe))&&(A.knownLength||this._valuesToMeasure.push(e))};ut.prototype._lengthRetriever=function(t,e){t.hasOwnProperty("fd")?t.end!=null&&t.end!=1/0&&t.start!=null?e(null,t.end+1-(t.start?t.start:0)):DOe.stat(t.path,function(A,r){var i;if(A){e(A);return}i=r.size-(t.start?t.start:0),e(null,i)}):t.hasOwnProperty("httpVersion")?e(null,+t.headers["content-length"]):t.hasOwnProperty("httpModule")?(t.on("response",function(A){t.pause(),e(null,+A.headers["content-length"])}),t.resume()):e("Unknown stream")};ut.prototype._multiPartHeader=function(t,e,A){if(typeof A.header=="string")return A.header;var r=this._getContentDisposition(e,A),i=this._getContentType(e,A),n="",s={"Content-Disposition":["form-data",'name="'+t+'"'].concat(r||[]),"Content-Type":[].concat(i||[])};typeof A.header=="object"&&$8(s,A.header);var o;for(var c in s)s.hasOwnProperty(c)&&(o=s[c],o!=null&&(Array.isArray(o)||(o=[o]),o.length&&(n+=c+": "+o.join("; ")+ut.LINE_BREAK)));return"--"+this.getBoundary()+ut.LINE_BREAK+n+ut.LINE_BREAK};ut.prototype._getContentDisposition=function(t,e){var A,r;return typeof e.filepath=="string"?A=Z8.normalize(e.filepath).replace(/\\/g,"/"):e.filename||t.name||t.path?A=Z8.basename(e.filename||t.name||t.path):t.readable&&t.hasOwnProperty("httpVersion")&&(A=Z8.basename(t.client._httpMessage.path||"")),A&&(r='filename="'+A+'"'),r};ut.prototype._getContentType=function(t,e){var A=e.contentType;return!A&&t.name&&(A=K8.lookup(t.name)),!A&&t.path&&(A=K8.lookup(t.path)),!A&&t.readable&&t.hasOwnProperty("httpVersion")&&(A=t.headers["content-type"]),!A&&(e.filepath||e.filename)&&(A=K8.lookup(e.filepath||e.filename)),!A&&typeof t=="object"&&(A=ut.DEFAULT_CONTENT_TYPE),A};ut.prototype._multiPartFooter=function(){return function(t){var e=ut.LINE_BREAK,A=this._streams.length===0;A&&(e+=this._lastBoundary()),t(e)}.bind(this)};ut.prototype._lastBoundary=function(){return"--"+this.getBoundary()+"--"+ut.LINE_BREAK};ut.prototype.getHeaders=function(t){var e,A={"content-type":"multipart/form-data; boundary="+this.getBoundary()};for(e in t)t.hasOwnProperty(e)&&(A[e.toLowerCase()]=t[e]);return A};ut.prototype.setBoundary=function(t){this._boundary=t};ut.prototype.getBoundary=function(){return this._boundary||this._generateBoundary(),this._boundary};ut.prototype.getBuffer=function(){for(var t=new Buffer.alloc(0),e=this.getBoundary(),A=0,r=this._streams.length;A<r;A++)typeof this._streams[A]!="function"&&(Buffer.isBuffer(this._streams[A])?t=Buffer.concat([t,this._streams[A]]):t=Buffer.concat([t,Buffer.from(this._streams[A])]),(typeof this._streams[A]!="string"||this._streams[A].substring(2,e.length+2)!==e)&&(t=Buffer.concat([t,Buffer.from(ut.LINE_BREAK)])));return Buffer.concat([t,Buffer.from(this._lastBoundary())])};ut.prototype._generateBoundary=function(){for(var t="--------------------------",e=0;e<24;e++)t+=Math.floor(Math.random()*10).toString(16);this._boundary=t};ut.prototype.getLengthSync=function(){var t=this._overheadLength+this._valueLength;return this._streams.length&&(t+=this._lastBoundary().length),this.hasKnownLength()||this._error(new Error("Cannot calculate proper length in synchronous way.")),t};ut.prototype.hasKnownLength=function(){var t=!0;return this._valuesToMeasure.length&&(t=!1),t};ut.prototype.getLength=function(t){var e=this._overheadLength+this._valueLength;if(this._streams.length&&(e+=this._lastBoundary().length),!this._valuesToMeasure.length){process.nextTick(t.bind(this,null,e));return}xOe.parallel(this._valuesToMeasure,this._lengthRetriever,function(A,r){if(A){t(A);return}r.forEach(function(i){e+=i}),t(null,e)})};ut.prototype.submit=function(t,e){var A,r,i={method:"post"};return typeof t=="string"?(t=ROe(t),r=$8({port:t.port,path:t.pathname,host:t.hostname,protocol:t.protocol},i)):(r=$8(t,i),r.port||(r.port=r.protocol=="https:"?443:80)),r.headers=this.getHeaders(t.headers),r.protocol=="https:"?A=NOe.request(r):A=bOe.request(r),this.getLength(function(n,s){if(n&&n!=="Unknown stream"){this._error(n);return}if(s&&A.setHeader("Content-Length",s),this.pipe(A),e){var o,c=a(function(l,d){return A.removeListener("error",c),A.removeListener("response",o),e.call(this,l,d)},"callback");o=c.bind(this,null),A.on("error",c),A.on("response",o)}}.bind(this)),A};ut.prototype._error=function(t){this.error||(this.error=t,this.pause(),th
Line truncated
|
||||
${yYe.sanitize(this)}`}};ss.REQUEST_SEND_ERROR="REQUEST_SEND_ERROR";ss.PARSE_ERROR="PARSE_ERROR";var Fa=BHe.createClientLogger("core-http");function bne(t,e){return t?e.httpsAgent:e.httpAgent}a(bne,"getCachedAgent");var Ab=class extends NHe.Transform{static{a(this,"ReportTransform")}constructor(e){super(),this.progressCallback=e,this.loadedBytes=0}_transform(e,A,r){this.push(e),this.loadedBytes+=e.length,this.progressCallback({loadedBytes:this.loadedBytes}),r(void 0)}};function jw(t){return t&&typeof t.pipe=="function"}a(jw,"isReadableStream");function Nne(t,e){return new Promise(A=>{t.once("close",()=>{e?.abort(),A()}),t.once("end",A),t.once("error",A)})}a(Nne,"isStreamComplete");function wYe(t){let e=new Kl;return t.forEach((A,r)=>{e.set(r,A)}),e}a(wYe,"parseHeaders");var rb=class{static{a(this,"NodeFetchHttpClient")}constructor(){this.proxyAgentMap=new Map,this.keepAliveAgents={}}async sendRequest(e){var A;if(!e&&typeof e!="object")throw new Error("'httpRequest' (WebResourceLike) cannot be null or undefined and must be of type object.");let r=new Xw.AbortController,i;if(e.abortSignal){if(e.abortSignal.aborted)throw new Xw.AbortError("The operation was aborted.");i=a(l=>{l.type==="abort"&&r.abort()},"abortListener"),e.abortSignal.addEventListener("abort",i)}if(e.timeout&&setTimeout(()=>{r.abort()},e.timeout),e.formData){let l=e.formData,d=new SHe.default,u=a((g,h)=>{typeof h=="function"&&(h=h()),h&&Object.prototype.hasOwnProperty.call(h,"value")&&Object.prototype.hasOwnProperty.call(h,"options")?d.append(g,h.value,h.options):d.append(g,h)},"appendFormValue");for(let g of Object.keys(l)){let h=l[g];if(Array.isArray(h))for(let m=0;m<h.length;m++)u(g,h[m]);else u(g,h)}e.body=d,e.formData=void 0;let p=e.headers.get("Content-Type");p&&p.indexOf("multipart/form-data")!==-1&&(typeof d.getBoundary=="function"?e.headers.set("Content-Type",`multipart/form-data; boundary=${d.getBoundary()}`):e.headers.remove("Content-Type"))}let n=e.body?typeof e.body=="function"?e.body():e.body:void 0;if(e.onUploadProgress&&e.body){let l=e.onUploadProgress,d=new Ab(l);jw(n)?n.pipe(d):d.end(n),n=d}let s=await this.prepareRequest(e),o=Object.assign({body:n,headers:e.headers.rawHeaders(),method:e.method,signal:r.signal,redirect:"manual"},s),c;try{let l=await this.fetch(e.url,o),d=wYe(l.headers),u=((A=e.streamResponseStatusCodes)===null||A===void 0?void 0:A.has(l.status))||e.streamResponseBody;c={headers:d,request:e,status:l.status,readableStreamBody:u?l.body:void 0,bodyAsText:u?void 0:await l.text()};let p=e.onDownloadProgress;if(p){let g=l.body||void 0;if(jw(g)){let h=new Ab(p);g.pipe(h),c.readableStreamBody=h}else{let h=parseInt(d.get("Content-Length"))||void 0;h&&p({loadedBytes:h})}}return await this.processRequest(c),c}catch(l){let d=l;throw d.code==="ENOTFOUND"?new ss(d.message,ss.REQUEST_SEND_ERROR,void 0,e):d.type==="aborted"?new Xw.AbortError("The operation was aborted."):d}finally{if(e.abortSignal&&i){let l=Promise.resolve();jw(n)&&(l=Nne(n));let d=Promise.resolve();jw(c?.readableStreamBody)&&(d=Nne(c.readableStreamBody,r)),Promise.all([l,d]).then(()=>{var u;(u=e.abortSignal)===null||u===void 0||u.removeEventListener("abort",i)}).catch(u=>{Fa.warning("Error when cleaning up abortListener on httpRequest",u)})}}}getOrCreateAgent(e){var A;let r=ck(e.url);if(e.proxySettings){let{host:i,port:n,username:s,password:o}=e.proxySettings,c=`${i}:${n}:${s}:${o}`,l=(A=this.proxyAgentMap.get(c))!==null&&A!==void 0?A:{},d=bne(r,l);if(d)return d;let u=fYe(e.url,e.proxySettings,e.headers);return d=u.agent,u.isHttps?l.httpsAgent=u.agent:l.httpAgent=u.agent,this.proxyAgentMap.set(c,l),d}else if(e.keepAlive){let i=bne(r,this.keepAliveAgents);if(i)return i;let n={keepAlive:e.keepAlive};return r?i=this.keepAliveAgents.httpsAgent=new Qne.Agent(n):i=this.keepAliveAgents.httpAgent=new fne.Agent(n),i}else return r?Qne.globalAgent:fne.globalAgent}async fetch(e,A){return xHe.default(e,A)}async prepareRequest(e){let A={};return A.agent=this.getOrCreateAgent(e),A.compress=e.decompressResponse,A}async processRequest(e){}};Z.HttpPipelineLogLevel=void 0;(function(t){t[t.OFF=0]="OFF",t[t.ERROR=1]="ERROR",t[t.WARNING=2]="WARNING",t[t.INFO=3]="INFO"})(Z.HttpPipelineLogLevel||(Z.HttpPipelineLogLevel={}));function bYe(t){let{requestOptions:e,tracingOptions:A}=t,i=fHe.__rest(t,["requestOptions","tracingOptions"]);return e&&(i=Object.assign(Object.assign({},i),e)),A&&(i.tracingContext=A.tracingContext,i.spanOptions=A?.spanOptions),i}a(bYe,"operationOptionsToRequestOptionsBase");var fr=class{static{a(this,"BaseRequestPolicy")}constructor(e,A){this._nextPolicy=e,this._options=A}shouldLog(e){return this._options.shouldLog(e)}log(e,A){this._options.log(e,A)}},ib=class{static{a(this,"RequestPolicyOptions")}constructor(e){this._logger=e}shouldLog(e){return!!this._logger&&e!==Z.HttpPipelineLogLevel.OFF&&e<=this._logger.minimumLogLevel}log(e,A){this._logger&&this.shouldLog(e)&&this._logger.log(e,A)}},Vne={explicitCharkey:!1,trim:!1,normalize:!1,normalizeTags:!1,attrkey:C
Line truncated
|
||||
`},headless:!1,chunkSize:1e4,emptyTag:"",cdata:!1},Kw=Object.assign({},Vne);Kw.explicitArray=!1;var yQ=Object.assign({},Vne);yQ.explicitArray=!1;yQ.renderOpts={pretty:!1};function lk(t,e={}){var A;return yQ.rootName=e.rootName,yQ.charkey=(A=e.xmlCharKey)!==null&&A!==void 0?A:Uc,new Une.Builder(yQ).buildObject(t)}a(lk,"stringifyXML");function Wne(t,e={}){var A;Kw.explicitRoot=!!e.includeRoot,Kw.charkey=(A=e.xmlCharKey)!==null&&A!==void 0?A:Uc;let r=new Une.Parser(Kw);return new Promise((i,n)=>{t?r.parseString(t,(s,o)=>{s?n(s):i(o)}):n(new Error("Document is empty"))})}a(Wne,"parseXML");function Lk(t,e){return{create:(A,r)=>new dk(A,r,t,e)}}a(Lk,"deserializationPolicy");var zne=["application/json","text/json"],jne=["application/xml","application/atom+xml"],NYe={expectedContentTypes:{json:zne,xml:jne}},dk=class extends fr{static{a(this,"DeserializationPolicy")}constructor(e,A,r,i={}){var n;super(e,A),this.jsonContentTypes=r&&r.json||zne,this.xmlContentTypes=r&&r.xml||jne,this.xmlCharKey=(n=i.xmlCharKey)!==null&&n!==void 0?n:Uc}async sendRequest(e){return this._nextPolicy.sendRequest(e).then(A=>Xne(this.jsonContentTypes,this.xmlContentTypes,A,{xmlCharKey:this.xmlCharKey}))}};function RYe(t){let e,A=t.request,r=A.operationSpec;if(r){let i=A.operationResponseGetter;i?e=i(r,t):e=r.responses[t.status]}return e}a(RYe,"getOperationResponse");function DYe(t){let e=t.request.shouldDeserialize,A;return e===void 0?A=!0:typeof e=="boolean"?A=e:A=e(t),A}a(DYe,"shouldDeserializeResponse");function Xne(t,e,A,r={}){var i,n,s;let o={rootName:(i=r.rootName)!==null&&i!==void 0?i:"",includeRoot:(n=r.includeRoot)!==null&&n!==void 0?n:!1,xmlCharKey:(s=r.xmlCharKey)!==null&&s!==void 0?s:Uc};return vYe(t,e,A,o).then(c=>{if(!DYe(c))return c;let l=c.request.operationSpec;if(!l||!l.responses)return c;let d=RYe(c),{error:u,shouldReturnResponse:p}=xYe(c,l,d);if(u)throw u;if(p)return c;if(d){if(d.bodyMapper){let g=c.parsedBody;l.isXML&&d.bodyMapper.type.name===qu.Sequence&&(g=typeof g=="object"?g[d.bodyMapper.xmlElementName]:[]);try{c.parsedBody=l.serializer.deserialize(d.bodyMapper,g,"operationRes.parsedBody",r)}catch(h){throw new ss(`Error ${h} occurred in deserializing the responseBody - ${c.bodyAsText}`,void 0,c.status,c.request,c)}}else l.httpMethod==="HEAD"&&(c.parsedBody=A.status>=200&&A.status<300);d.headersMapper&&(c.parsedHeaders=l.serializer.deserialize(d.headersMapper,c.headers.toJson(),"operationRes.parsedHeaders",r))}return c})}a(Xne,"deserializeResponseBody");function SYe(t){let e=Object.keys(t.responses);return e.length===0||e.length===1&&e[0]==="default"}a(SYe,"isOperationSpecEmpty");function xYe(t,e,A){var r;let i=200<=t.status&&t.status<300;if(SYe(e)?i:!!A)if(A){if(!A.isError)return{error:null,shouldReturnResponse:!1}}else return{error:null,shouldReturnResponse:!1};let s=A??e.responses.default,c=((r=t.request.streamResponseStatusCodes)===null||r===void 0?void 0:r.has(t.status))||t.request.streamResponseBody?`Unexpected status code: ${t.status}`:t.bodyAsText,l=new ss(c,void 0,t.status,t.request,t);if(!s)throw l;let d=s.bodyMapper,u=s.headersMapper;try{if(t.parsedBody){let p=t.parsedBody,g;if(d){let m=p;e.isXML&&d.type.name===qu.Sequence&&(m=typeof p=="object"?p[d.xmlElementName]:[]),g=e.serializer.deserialize(d,m,"error.response.parsedBody")}let h=p.error||g||p;l.code=h.code,h.message&&(l.message=h.message),d&&(l.response.parsedBody=g)}t.headers&&u&&(l.response.parsedHeaders=e.serializer.deserialize(u,t.headers.toJson(),"operationRes.parsedHeaders"))}catch(p){l.message=`Error "${p.message}" occurred in deserializing the responseBody - "${t.bodyAsText}" for the default response.`}return{error:l,shouldReturnResponse:!1}}a(xYe,"handleErrorResponse");function vYe(t,e,A,r){var i;let n=a(o=>{let c=`Error "${o}" occurred while parsing the response body - ${A.bodyAsText}.`,l=o.code||ss.PARSE_ERROR,d=new ss(c,l,A.status,A.request,A);return Promise.reject(d)},"errorHandler");if(!(((i=A.request.streamResponseStatusCodes)===null||i===void 0?void 0:i.has(A.status))||A.request.streamResponseBody)&&A.bodyAsText){let o=A.bodyAsText,c=A.headers.get("Content-Type")||"",l=c?c.split(";").map(d=>d.toLowerCase()):[];if(l.length===0||l.some(d=>t.indexOf(d)!==-1))return new Promise(d=>{A.parsedBody=JSON.parse(o),d(A)}).catch(n);if(l.some(d=>e.indexOf(d)!==-1))return Wne(o,r).then(d=>(A.parsedBody=d,A)).catch(n)}return Promise.resolve(A)}a(vYe,"parse");var Zne={enable:!0};function Kne(t){return{create:(e,A)=>new uk(e,A,t||Zne)}}a(Kne,"keepAlivePolicy");var uk=class extends fr{static{a(this,"KeepAlivePolicy")}constructor(e,A,r){super(e,A),this.keepAliveOptions=r}async sendRequest(e){return e.keepAlive=this.keepAliveOptions.enable,this._nextPolicy.sendRequest(e)}},Rne=["GET","HEAD"],kYe={handleRedirects:!0,maxRetries:20};function Uk(t=20){return{create:(e,A)=>new pk(e,A,t)}}a(Uk,"redirectPolicy");var pk=class extends fr{static{a(this,"RedirectPolicy")}constructor(e,A,r=20){super(e,A),this.maxRetries=r}sendRequest(e){return this._nextPolicy.sendReq
Line truncated
|
||||
`).join(""))}return this._nextPolicy.sendRequest(e)}},nse=[],sse=!1,JYe=new Map;function VYe(){if(!process)return;let t=Zw(Xs.HTTPS_PROXY),e=Zw(Xs.ALL_PROXY),A=Zw(Xs.HTTP_PROXY);return t||e||A}a(VYe,"loadEnvironmentProxyValue");function WYe(t,e,A){if(e.length===0)return!1;let r=Do.parse(t).getHost();if(A?.has(r))return A.get(r);let i=!1;for(let n of e)n[0]==="."?(r.endsWith(n)||r.length===n.length-1&&r===n.slice(1))&&(i=!0):r===n&&(i=!0);return A?.set(r,i),i}a(WYe,"isBypassed");function zYe(){let t=Zw(Xs.NO_PROXY);return sse=!0,t?t.split(",").map(e=>e.trim()).filter(e=>e.length):[]}a(zYe,"loadNoProxy");function ase(t){if(!t&&(t=VYe(),!t))return;let{username:e,password:A,urlWithoutAuth:r}=jYe(t),i=Do.parse(r);return{host:(i.getScheme()?i.getScheme()+"://":"")+i.getHost(),port:Number.parseInt(i.getPort()||"80"),username:e,password:A}}a(ase,"getDefaultProxySettings");function Yk(t,e){return t||(t=ase()),sse||nse.push(...zYe()),{create:(A,r)=>new Bk(A,r,t,e?.customNoProxyList)}}a(Yk,"proxyPolicy");function jYe(t){let e=t.indexOf("@");if(e===-1)return{urlWithoutAuth:t};let A=t.indexOf("://"),r=A!==-1?A+3:0,i=t.substring(r,e),n=i.indexOf(":"),s=n!==-1,o=s?i.substring(0,n):i,c=s?i.substring(n+1):void 0,l=t.substring(0,r)+t.substring(e+1);return{username:o,password:c,urlWithoutAuth:l}}a(jYe,"extractAuthFromUrl");var Bk=class extends fr{static{a(this,"ProxyPolicy")}constructor(e,A,r,i){super(e,A),this.proxySettings=r,this.customNoProxyList=i}sendRequest(e){var A;return!e.proxySettings&&!WYe(e.url,(A=this.customNoProxyList)!==null&&A!==void 0?A:nse,this.customNoProxyList?void 0:JYe)&&(e.proxySettings=this.proxySettings),this._nextPolicy.sendRequest(e)}};function XYe(t=30){return{create:(e,A)=>new Ik(e,A,t)}}a(XYe,"rpRegistrationPolicy");var Ik=class extends fr{static{a(this,"RPRegistrationPolicy")}constructor(e,A,r=30){super(e,A),this._retryTimeout=r}sendRequest(e){return this._nextPolicy.sendRequest(e.clone()).then(A=>ZYe(this,e,A))}};function ZYe(t,e,A){if(A.status===409){let r=KYe(A.bodyAsText);if(r){let i=$Ye(e.url);return eGe(t,i,r,e).catch(()=>!1).then(n=>n?(e.headers.set("x-ms-client-request-id",ab()),t._nextPolicy.sendRequest(e.clone())):A)}}return Promise.resolve(A)}a(ZYe,"registerIfNeeded");function ose(t,e=!1){let A=t.clone();return e&&(A.url=t.url),A.headers.set("x-ms-client-request-id",ab()),A.headers.set("Content-Type","application/json; charset=utf-8"),A}a(ose,"getRequestEssentials");function KYe(t){let e,A;if(t){try{A=JSON.parse(t)}catch{}if(A&&A.error&&A.error.message&&A.error.code&&A.error.code==="MissingSubscriptionRegistration"){let r=A.error.message.match(/.*'(.*)'/i);r&&(e=r.pop())}}return e}a(KYe,"checkRPNotRegisteredError");function $Ye(t){let e,A=t.match(/.*\/subscriptions\/[a-f0-9-]+\//gi);if(A&&A[0])e=A[0];else throw new Error(`Unable to extract subscriptionId from the given url - ${t}.`);return e}a($Ye,"extractSubscriptionUrl");async function eGe(t,e,A,r){let i=`${e}providers/${A}/register?api-version=2016-02-01`,n=`${e}providers/${A}?api-version=2016-02-01`,s=ose(r);if(s.method="POST",s.url=i,(await t._nextPolicy.sendRequest(s)).status!==200)throw new Error(`Autoregistration of ${A} failed. Please try registering manually.`);return cse(t,n,r)}a(eGe,"registerRP");async function cse(t,e,A){let r=ose(A);r.url=e,r.method="GET";let i=await t._nextPolicy.sendRequest(r),n=i.parsedBody;return i.parsedBody&&n.registrationState&&n.registrationState==="Registered"?!0:(await Ro.delay(t._retryTimeout*1e3),cse(t,e,A))}a(cse,"getRegistrationStatus");function lse(t){return{create:(e,A)=>new yk(e,A,t)}}a(lse,"signingPolicy");var yk=class extends fr{static{a(this,"SigningPolicy")}constructor(e,A,r){super(e,A),this.authenticationProvider=r}signRequest(e){return this.authenticationProvider.signRequest(e)}sendRequest(e){return this.signRequest(e).then(A=>this._nextPolicy.sendRequest(A))}};function Gk(t,e,A,r){return{create:(i,n)=>new wk(i,n,t,e,A,r)}}a(Gk,"systemErrorRetryPolicy");var wk=class extends fr{static{a(this,"SystemErrorRetryPolicy")}constructor(e,A,r,i,n,s){super(e,A),this.retryCount=Pu(r)?r:Tk,this.retryInterval=Pu(i)?i:Mk,this.minRetryInterval=Pu(n)?n:FYe,this.maxRetryInterval=Pu(s)?s:_k}sendRequest(e){return this._nextPolicy.sendRequest(e.clone()).catch(A=>dse(this,e,A.response,A))}};async function dse(t,e,A,r,i){i=tse(t,i,r);function n(s,o){return!!(o&&o.code&&(o.code==="ETIMEDOUT"||o.code==="ESOCKETTIMEDOUT"||o.code==="ECONNREFUSED"||o.code==="ECONNRESET"||o.code==="ENOENT"))}if(a(n,"shouldPolicyRetry"),ese(t.retryCount,n,i,A,r))try{return await Ro.delay(i.retryInterval),t._nextPolicy.sendRequest(e.clone())}catch(s){return dse(t,e,A,s,i)}else return r?Promise.reject(i.error):A}a(dse,"retry");var tGe=3,Dne=Xs.HttpConstants.StatusCodes;function Jk(){return{create:(t,e)=>new bk(t,e)}}a(Jk,"throttlingRetryPolicy");var Sne="The operation was aborted.",bk=class t extends fr{static{a(this,"ThrottlingRetryPolicy")}constructor(e,A,r){super(e,A),this.numberOfRetries=0,this._handleResponse=r||this._defa
Line truncated
|
||||
Polling from: ${A.config.operationLocation}
|
||||
Operation status: ${d}
|
||||
Polling status: ${Ise.terminalStates.includes(d)?"Stopped":"Running"}`),d==="succeeded"){let u=s(l,A);if(u!==void 0)return{response:await e(u).catch(Bse({state:A,stateProxy:r,isOperationError:o})),status:d}}return{response:l,status:d}}a(fGe,"pollOperationHelper");async function QGe(t){let{poll:e,state:A,stateProxy:r,options:i,getOperationStatus:n,getResourceLocation:s,getOperationLocation:o,isOperationError:c,withOperationLocation:l,getPollingInterval:d,processResult:u,getError:p,updateState:g,setDelay:h,isDone:m,setErrorAsResult:f}=t,{operationLocation:B}=A.config;if(B!==void 0){let{response:b,status:I}=await fGe({poll:e,getOperationStatus:n,state:A,stateProxy:r,operationLocation:B,getResourceLocation:s,isOperationError:c,options:i});if(yse({status:I,response:b,state:A,stateProxy:r,isDone:m,processResult:u,getError:p,setErrorAsResult:f}),!Ise.terminalStates.includes(I)){let C=d?.(b);C&&h(C);let Q=o?.(b,A);if(Q!==void 0){let N=B!==Q;A.config.operationLocation=Q,l?.(Q,N)}else l?.(B,!1)}g?.(A,b)}}a(QGe,"pollOperation");td.pollOperation=QGe});var Xk=E(_A=>{"use strict";Object.defineProperty(_A,"__esModule",{value:!0});_A.pollHttpOperation=_A.isOperationError=_A.getResourceLocation=_A.getOperationStatus=_A.getOperationLocation=_A.initHttpOperation=_A.getStatusFromInitialResponse=_A.getErrorFromResponse=_A.parseRetryAfter=_A.inferLroMode=void 0;var wse=Eb(),Wk=gb();function bse(t){let{azureAsyncOperation:e,operationLocation:A}=t;return A??e}a(bse,"getOperationLocationPollingUrl");function Nse(t){return t.headers.location}a(Nse,"getLocationHeader");function Rse(t){return t.headers["operation-location"]}a(Rse,"getOperationLocationHeader");function Dse(t){return t.headers["azure-asyncoperation"]}a(Dse,"getAzureAsyncOperationHeader");function BGe(t){let{location:e,requestMethod:A,requestPath:r,resourceLocationConfig:i}=t;switch(A){case"PUT":return r;case"DELETE":return;case"PATCH":return n()??r;default:return n()}function n(){switch(i){case"azure-async-operation":return;case"original-uri":return r;case"location":default:return e}}a(n,"getDefault")}a(BGe,"findResourceLocation");function Sse(t){let{rawResponse:e,requestMethod:A,requestPath:r,resourceLocationConfig:i}=t,n=Rse(e),s=Dse(e),o=bse({operationLocation:n,azureAsyncOperation:s}),c=Nse(e),l=A?.toLocaleUpperCase();return o!==void 0?{mode:"OperationLocation",operationLocation:o,resourceLocation:BGe({requestMethod:l,location:c,requestPath:r,resourceLocationConfig:i})}:c!==void 0?{mode:"ResourceLocation",operationLocation:c}:l==="PUT"&&r?{mode:"Body",operationLocation:r}:void 0}a(Sse,"inferLroMode");_A.inferLroMode=Sse;function xse(t){let{status:e,statusCode:A}=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 zk(A);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 Wk.logger.verbose(`LRO: unrecognized operation status: ${e}`),e}}a(xse,"transformStatus");function IGe(t){let{status:e}=t.body??{};return xse({status:e,statusCode:t.statusCode})}a(IGe,"getStatus");function yGe(t){let{properties:e,provisioningState:A}=t.body??{},r=e?.provisioningState??A;return xse({status:r,statusCode:t.statusCode})}a(yGe,"getProvisioningState");function zk(t){return t===202?"running":t<300?"succeeded":"failed"}a(zk,"toOperationStatus");function vse({rawResponse:t}){let e=t.headers["retry-after"];if(e!==void 0){let A=parseInt(e);return isNaN(A)?wGe(new Date(e)):A*1e3}}a(vse,"parseRetryAfter");_A.parseRetryAfter=vse;function kse(t){let e=Use(t,"error");if(!e){Wk.logger.warning("The long-running operation failed but there is no error property in the response's body");return}if(!e.code||!e.message){Wk.logger.warning("The long-running operation failed but the error property in the response's body doesn't contain code or message");return}return e}a(kse,"getErrorFromResponse");_A.getErrorFromResponse=kse;function wGe(t){let e=Math.floor(new Date().getTime()),A=t.getTime();if(e<A)return A-e}a(wGe,"calculatePollingIntervalFromDate");function Fse(t){let{response:e,state:A,operationLocation:r}=t;function i(){switch(A.config.metadata?.mode){case void 0:return zk(e.rawResponse.statusCode);case"Body":return jk(e,A);default:return"running"}}a(i,"helper");let n=i();return n==="running"&&r===void 0?"succeeded":n}a(Fse,"getStatusFromInitialResponse");_A.getStatusFromInitialResponse=Fse;async function bGe(t){let{stateProxy:e,resourceLocationConfig:A,processResult:r,lro:i,setErrorAsResult:n}=t;return(0,wse.initOperation)({init:async()=>{let s=await i.sendInitialRequest(),o=Sse({rawResponse:s.rawResponse,requestPath:i.requestPath,requestMethod:i.requestMethoLine truncated
|
||||
`,Jle="HTTP/1.1",oze="AES256",cze="DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;",lze=["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-if-tags","x-ms-source-if-tags"],dze=["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"],uze="BlobUsesCustomerSpecifiedEncryption",pze="BlobDoesNotUseCustomerSpecifiedEncryption",gze=["10000","10001","10002","10003","10004","10100","10101","10102","10103","10104","11000","11001","11002","11003","11004","11100","11101","11102","11103","11104"];function hze(t){let e=O.URLBuilder.parse(t),A=e.getPath();return A=A||"/",A=mze(A),e.setPath(A),e.toString()}a(hze,"escapeURLPath");function Eze(t){let e="";if(t.search("DevelopmentStorageProxyUri=")!==-1){let A=t.split(";");for(let r of A)r.trim().startsWith("DevelopmentStorageProxyUri=")&&(e=r.trim().match("DevelopmentStorageProxyUri=(.*)")[1])}return e}a(Eze,"getProxyUriFromDevConnString");function Gu(t,e){let A=t.split(";");for(let r of A)if(r.trim().startsWith(e))return r.trim().match(e+"=(.*)")[1];return""}a(Gu,"getValueInConnString");function yE(t){let e="";t.startsWith("UseDevelopmentStorage=true")&&(e=Eze(t),t=cze);let A=Gu(t,"BlobEndpoint");if(A=A.endsWith("/")?A.slice(0,-1):A,t.search("DefaultEndpointsProtocol=")!==-1&&t.search("AccountKey=")!==-1){let r="",i="",n=Buffer.from("accountKey","base64"),s="";if(i=Gu(t,"AccountName"),n=Buffer.from(Gu(t,"AccountKey"),"base64"),!A){r=Gu(t,"DefaultEndpointsProtocol");let o=r.toLowerCase();if(o!=="https"&&o!=="http")throw new Error("Invalid DefaultEndpointsProtocol in the provided Connection String. Expecting 'https' or 'http'");if(s=Gu(t,"EndpointSuffix"),!s)throw new Error("Invalid EndpointSuffix in the provided Connection String");A=`${r}://${i}.blob.${s}`}if(i){if(n.length===0)throw new Error("Invalid AccountKey in the provided Connection String")}else throw new Error("Invalid AccountName in the provided Connection String");return{kind:"AccountConnString",url:A,accountName:i,accountKey:n,proxyUri:e}}else{let r=Gu(t,"SharedAccessSignature"),i=Gu(t,"AccountName");if(i||(i=Wle(A)),A){if(!r)throw new Error("Invalid SharedAccessSignature in the provided SAS Connection String")}else throw new Error("Invalid BlobEndpoint in the provided SAS Connection String");return{kind:"SASConnString",url:A,accountName:i,accountSas:r}}}a(yE,"extractConnectionStringParts");function mze(t){return encodeURIComponent(t).replace(/%2F/g,"/").replace(/'/g,"%27").replace(/\+/g,"%20").replace(/%25/g,"%")}a(mze,"escape");function NA(t,e){let A=O.URLBuilder.parse(t),r=A.getPath();return r=r?r.endsWith("/")?`${r}${e}`:`${r}/${e}`:e,A.setPath(r),new URL(A.toString()).toStr
Line truncated
|
||||
`)+`
|
||||
`+this.getCanonicalizedHeadersString(e)+this.getCanonicalizedResourceString(e),i=this.factory.computeHMACSHA256(a);return e.headers.set(Be.AUTHORIZATION,`SharedKey ${this.factory.accountName}:${i}`),e}getHeaderValueToSign(e,a){let i=e.headers.get(a);return!i||a===Be.CONTENT_LENGTH&&i==="0"?"":i}getCanonicalizedHeadersString(e){let a=e.headers.headersArray().filter(r=>r.name.toLowerCase().startsWith(Be.PREFIX_FOR_STORAGE));a.sort((r,n)=>r.name.toLowerCase().localeCompare(n.name.toLowerCase())),a=a.filter((r,n,s)=>!(n>0&&r.name.toLowerCase()===s[n-1].name.toLowerCase()));let i="";return a.forEach(r=>{i+=`${r.name.toLowerCase().trimRight()}:${r.value.trimLeft()}
|
||||
`}),i}getCanonicalizedResourceString(e){let a=P0(e.url)||"/",i="";i+=`/${this.factory.accountName}${a}`;let r=Fq(e.url),n={};if(r){let s=[];for(let p in r)if(Object.prototype.hasOwnProperty.call(r,p)){let l=p.toLowerCase();n[l]=r[p],s.push(l)}s.sort();for(let p of s)i+=`
|
||||
${p}:${decodeURIComponent(n[p])}`}return i}},Ye=class extends ap{static{o(this,"StorageSharedKeyCredential")}constructor(e,a){super(),this.accountName=e,this.accountKey=Buffer.from(a,"base64")}create(e,a){return new vc(e,a,this)}computeHMACSHA256(e){return $7.createHmac("sha256",this.accountKey).update(e,"utf8").digest("base64")}},rz="azure-storage-blob",nz="12.15.0",rp=class extends U.ServiceClient{static{o(this,"StorageClientContext")}constructor(e,a){if(e===void 0)throw new Error("'url' cannot be null");if(a||(a={}),!a.userAgent){let i=U.getDefaultUserAgentValue();a.userAgent=`${rz}/${nz} ${i}`}super(void 0,a),this.requestContentType="application/json; charset=utf-8",this.baseUri=a.endpoint||"{url}",this.url=e,this.version=a.version||"2023-01-03"}},np=class{static{o(this,"StorageClient")}constructor(e,a){this.url=qq(e),this.accountName=fw(e),this.pipeline=a,this.storageClientContext=new rp(this.url,a.toServiceClientOptions()),this.isHttps=mw(Hq(this.url)||"","https"),this.credential=new Pe;for(let r of this.pipeline.factories)q.isNode&&r instanceof Ye||r instanceof Pe?this.credential=r:q.isTokenCredential(r.credential)&&(this.credential=r.credential);let i=this.storageClientContext;i.requestContentType=void 0}},k=z.createSpanFunction({packagePrefix:"Azure.Storage.Blob",namespace:"Microsoft.Storage"});function X(t){var e,a;return{spanOptions:(e=t?.tracingOptions)===null||e===void 0?void 0:e.spanOptions,tracingContext:(a=t?.tracingOptions)===null||a===void 0?void 0:a.tracingContext}}o(X,"convertTracingToRequestOptionsBase");var qi=class t{static{o(this,"BlobSASPermissions")}constructor(){this.read=!1,this.add=!1,this.create=!1,this.write=!1,this.delete=!1,this.deleteVersion=!1,this.tag=!1,this.move=!1,this.execute=!1,this.setImmutabilityPolicy=!1,this.permanentDelete=!1}static parse(e){let a=new t;for(let i of e)switch(i){case"r":a.read=!0;break;case"a":a.add=!0;break;case"c":a.create=!0;break;case"w":a.write=!0;break;case"d":a.delete=!0;break;case"x":a.deleteVersion=!0;break;case"t":a.tag=!0;break;case"m":a.move=!0;break;case"e":a.execute=!0;break;case"i":a.setImmutabilityPolicy=!0;break;case"y":a.permanentDelete=!0;break;default:throw new RangeError(`Invalid permission: ${i}`)}return a}static from(e){let a=new t;return e.read&&(a.read=!0),e.add&&(a.add=!0),e.create&&(a.create=!0),e.write&&(a.write=!0),e.delete&&(a.delete=!0),e.deleteVersion&&(a.deleteVersion=!0),e.tag&&(a.tag=!0),e.move&&(a.move=!0),e.execute&&(a.execute=!0),e.setImmutabilityPolicy&&(a.setImmutabilityPolicy=!0),e.permanentDelete&&(a.permanentDelete=!0),a}toString(){let e=[];return this.read&&e.push("r"),this.add&&e.push("a"),this.create&&e.push("c"),this.write&&e.push("w"),this.delete&&e.push("d"),this.deleteVersion&&e.push("x"),this.tag&&e.push("t"),this.move&&e.push("m"),this.execute&&e.push("e"),this.setImmutabilityPolicy&&e.push("i"),this.permanentDelete&&e.push("y"),e.join("")}},zi=class t{static{o(this,"ContainerSASPermissions")}constructor(){this.read=!1,this.add=!1,this.create=!1,this.write=!1,this.delete=!1,this.deleteVersion=!1,this.list=!1,this.tag=!1,this.move=!1,this.execute=!1,this.setImmutabilityPolicy=!1,this.permanentDelete=!1,this.filterByTags=!1}static parse(e){let a=new t;for(let i of e)switch(i){case"r":a.read=!0;break;case"a":a.add=!0;break;case"c":a.create=!0;break;case"w":a.write=!0;break;case"d":a.delete=!0;break;case"l":a.list=!0;break;case"t":a.tag=!0;break;case"x":a.deleteVersion=!0;break;case"m":a.move=!0;break;case"e":a.execute=!0;break;case"i":a.setImmutabilityPolicy=!0;break;case"y":a.permanentDelete=!0;break;case"f":a.filterByTags=!0;break;default:throw new RangeError(`Invalid permission ${i}`)}return a}static from(e){let a=new t;return e.read&&(a.read=!0),e.add&&(a.add=!0),e.create&&(a.create=!0),e.write&&(a.write=!0),e.delete&&(a.delete=!0),e.list&&(a.list=!0),e.deleteVersion&&(a.deleteVersion=!0),e.tag&&(a.tag=!0),e.move&&(a.move=!0),e.execute&&(a.execute=!0),e.setImmutabilityPolicy&&(a.setImmutabilityPolicy=!0),e.permanentDelete&&(a.permanentDelete=!0),e.filterByTags&&(a.filterByTags=!0),a}toString(){let e=[];return this.read&&e.push("r"),this.add&&e.push("a"),this.create&&e.push("c"),this.write&&e.push("w"),this.delete&&e.push("d"),this.deleteVersion&&e.push("x"),this.list&&e.push("l"),this.tag&&e.push("t"),this.move&&e.push("m"),this.execute&&e.push("e"),this.setImmutabilityPolicy&&e.push("i"),this.permanentDelete&&e.push("y"),this.filterByTags&&e.push("f"),e.join("")}},Hh=class{static{o(this,"UserDelegationKeyCredential")}constructor(e,a){this.accountName=e,this.userDelegationKey=a,this.key=Buffer.from(a.value,"base64")}computeHMACSHA256(e){return $7.createHmac("sha256",this.key).update(e,"utf8").digest("base64")}};function ki(t){return t.end?`${t.start}-${t.end}`:t.start}o(ki,"ipRangeToString");Z.SASProtocol=void 0;(function(t){t.Https="https",t.HttpsAndHttp="https,http"})(Z.SASProtocol||(Z.SASProtocol={}));var mi=class{static{o(this,"SASQueryParameters")}constructor(e,a,i,r,n,s,p,l,d,c,u,m,f,h,x
Line truncated
|
||||
`),n=e.computeHMACSHA256(r);return new mi(t.version,n,i,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,a,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType)}o(sz,"generateBlobSASQueryParameters20150405");function oz(t,e){if(t=bs(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 a="c",i=t.snapshotTime;t.blobName&&(a="b",t.snapshotTime?a="bs":t.versionId&&(a="bv",i=t.versionId));let r;t.permissions&&(t.blobName?r=qi.parse(t.permissions.toString()).toString():r=zi.parse(t.permissions.toString()).toString());let n=[r||"",t.startsOn?Ce(t.startsOn,!1):"",t.expiresOn?Ce(t.expiresOn,!1):"",xs(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?ki(t.ipRange):"",t.protocol?t.protocol:"",t.version,a,i,t.cacheControl?t.cacheControl:"",t.contentDisposition?t.contentDisposition:"",t.contentEncoding?t.contentEncoding:"",t.contentLanguage?t.contentLanguage:"",t.contentType?t.contentType:""].join(`
|
||||
`),s=e.computeHMACSHA256(n);return new mi(t.version,s,r,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,a,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType)}o(oz,"generateBlobSASQueryParameters20181109");function pz(t,e){if(t=bs(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 a="c",i=t.snapshotTime;t.blobName&&(a="b",t.snapshotTime?a="bs":t.versionId&&(a="bv",i=t.versionId));let r;t.permissions&&(t.blobName?r=qi.parse(t.permissions.toString()).toString():r=zi.parse(t.permissions.toString()).toString());let n=[r||"",t.startsOn?Ce(t.startsOn,!1):"",t.expiresOn?Ce(t.expiresOn,!1):"",xs(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?ki(t.ipRange):"",t.protocol?t.protocol:"",t.version,a,i,t.encryptionScope,t.cacheControl?t.cacheControl:"",t.contentDisposition?t.contentDisposition:"",t.contentEncoding?t.contentEncoding:"",t.contentLanguage?t.contentLanguage:"",t.contentType?t.contentType:""].join(`
|
||||
`),s=e.computeHMACSHA256(n);return new mi(t.version,s,r,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,a,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,void 0,void 0,void 0,t.encryptionScope)}o(pz,"generateBlobSASQueryParameters20201206");function lz(t,e){if(t=bs(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let a="c",i=t.snapshotTime;t.blobName&&(a="b",t.snapshotTime?a="bs":t.versionId&&(a="bv",i=t.versionId));let r;t.permissions&&(t.blobName?r=qi.parse(t.permissions.toString()).toString():r=zi.parse(t.permissions.toString()).toString());let n=[r||"",t.startsOn?Ce(t.startsOn,!1):"",t.expiresOn?Ce(t.expiresOn,!1):"",xs(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Ce(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Ce(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.ipRange?ki(t.ipRange):"",t.protocol?t.protocol:"",t.version,a,i,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
|
||||
`),s=e.computeHMACSHA256(n);return new mi(t.version,s,r,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,a,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey)}o(lz,"generateBlobSASQueryParametersUDK20181109");function dz(t,e){if(t=bs(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let a="c",i=t.snapshotTime;t.blobName&&(a="b",t.snapshotTime?a="bs":t.versionId&&(a="bv",i=t.versionId));let r;t.permissions&&(t.blobName?r=qi.parse(t.permissions.toString()).toString():r=zi.parse(t.permissions.toString()).toString());let n=[r||"",t.startsOn?Ce(t.startsOn,!1):"",t.expiresOn?Ce(t.expiresOn,!1):"",xs(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Ce(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Ce(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?ki(t.ipRange):"",t.protocol?t.protocol:"",t.version,a,i,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
|
||||
`),s=e.computeHMACSHA256(n);return new mi(t.version,s,r,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,a,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId)}o(dz,"generateBlobSASQueryParametersUDK20200210");function cz(t,e){if(t=bs(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let a="c",i=t.snapshotTime;t.blobName&&(a="b",t.snapshotTime?a="bs":t.versionId&&(a="bv",i=t.versionId));let r;t.permissions&&(t.blobName?r=qi.parse(t.permissions.toString()).toString():r=zi.parse(t.permissions.toString()).toString());let n=[r||"",t.startsOn?Ce(t.startsOn,!1):"",t.expiresOn?Ce(t.expiresOn,!1):"",xs(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Ce(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Ce(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?ki(t.ipRange):"",t.protocol?t.protocol:"",t.version,a,i,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
|
||||
`),s=e.computeHMACSHA256(n);return new mi(t.version,s,r,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,a,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId,t.encryptionScope)}o(cz,"generateBlobSASQueryParametersUDK20201206");function xs(t,e,a){let i=[`/blob/${t}/${e}`];return a&&i.push(`/${a}`),i.join("")}o(xs,"getCanonicalName");function bs(t){let e=t.version?t.version:O0;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(bs,"SASSignatureValuesSanityCheckAndAutofill");var sp=class{static{o(this,"BlobLeaseClient")}constructor(e,a){let i=new rp(e.url,e.pipeline.toServiceClientOptions());this._url=e.url,e.name===void 0?(this._isContainer=!0,this._containerOrBlobOperation=new en(i)):(this._isContainer=!1,this._containerOrBlobOperation=new Zo(i)),a||(a=q.generateUuid()),this._leaseId=a}get leaseId(){return this._leaseId}get url(){return this._url}async acquireLease(e,a={}){var i,r,n,s,p,l;let{span:d,updatedOptions:c}=k("BlobLeaseClient-acquireLease",a);if(this._isContainer&&(!((i=a.conditions)===null||i===void 0)&&i.ifMatch&&((r=a.conditions)===null||r===void 0?void 0:r.ifMatch)!==ui||!((n=a.conditions)===null||n===void 0)&&n.ifNoneMatch&&((s=a.conditions)===null||s===void 0?void 0:s.ifNoneMatch)!==ui||!((p=a.conditions)===null||p===void 0)&&p.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.");try{return await this._containerOrBlobOperation.acquireLease(Object.assign({abortSignal:a.abortSignal,duration:e,modifiedAccessConditions:Object.assign(Object.assign({},a.conditions),{ifTags:(l=a.conditions)===null||l===void 0?void 0:l.tagConditions}),proposedLeaseId:this._leaseId},X(c)))}catch(u){throw d.setStatus({code:z.SpanStatusCode.ERROR,message:u.message}),u}finally{d.end()}}async changeLease(e,a={}){var i,r,n,s,p,l;let{span:d,updatedOptions:c}=k("BlobLeaseClient-changeLease",a);if(this._isContainer&&(!((i=a.conditions)===null||i===void 0)&&i.ifMatch&&((r=a.conditions)===null||r===void 0?void 0:r.ifMatch)!==ui||!((n=a.conditions)===null||n===void 0)&&n.ifNoneMatch&&((s=a.conditions)===null||s===void 0?void 0:s.ifNoneMatch)!==ui||!((p=a.conditions)===null||p===void 0)&&p.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.");try{let u=await this._containerOrBlobOperation.changeLease(this._leaseId,e,Object.assign({abortSignal:a.abortSignal,modifiedAccessConditions:Object.assign(Object.assign({},a.conditions),{ifTags:(l=a.conditions)===null||l===void 0?void 0:l.tagConditions})},X(c)));return this._leaseId=e,u}catch(u){throw d.setStatus({code:z.SpanStatusCode.ERROR,message:u.message}),u}finally{d.end()}}async releaseLease(e={}){var a,i,r,n,s,p;let{span:l,updatedOptions:d}=k("BlobLeaseClient-releaseLease",e);if(this._isContainer&&(!((a=e.conditions)===null||a===void 0)&&a.ifMatch&&((i=e.conditions)===null||i===void 0?void 0:i.ifMatch)!==ui||!((r=e.conditions)===null||r===void 0)&&r.ifNoneMatch&&((n=e.conditions)===null||n===void 0?void 0:n.ifNoneMatch)!==ui||!((s=e.conditions)===null||s===void 0)&&s.tagCon
Line truncated
|
||||
`):s=[e.accountName,i,r,n,t.startsOn?Ce(t.startsOn,!1):"",Ce(t.expiresOn,!1),t.ipRange?ki(t.ipRange):"",t.protocol?t.protocol:"",a,""].join(`
|
||||
`);let p=e.computeHMACSHA256(s);return new mi(a,p,i.toString(),r,n,t.protocol,t.startsOn,t.expiresOn,t.ipRange,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,t.encryptionScope)}o(gw,"generateAccountSASQueryParameters");var d0=class t extends np{static{o(this,"BlobServiceClient")}constructor(e,a,i){let r;Nr(a)?r=a:q.isNode&&a instanceof Ye||a instanceof Pe||q.isTokenCredential(a)?r=De(a,i):r=De(new Pe,i),super(e,r),this.serviceContext=new cc(this.storageClientContext)}static fromConnectionString(e,a){a=a||{};let i=vs(e);if(i.kind==="AccountConnString")if(q.isNode){let r=new Ye(i.accountName,i.accountKey);a.proxyOptions||(a.proxyOptions=q.getDefaultProxySettings(i.proxyUri));let n=De(r,a);return new t(i.url,n)}else throw new Error("Account connection string is only supported in Node.js environment");else if(i.kind==="SASConnString"){let r=De(new Pe,a);return new t(i.url+"?"+i.accountSas,r)}else throw new Error("Connection string must be either an Account connection string or a SAS connection string")}getContainerClient(e){return new bc(Ue(this.url,encodeURIComponent(e)),this.pipeline)}async createContainer(e,a={}){let{span:i,updatedOptions:r}=k("BlobServiceClient-createContainer",a);try{let n=this.getContainerClient(e),s=await n.create(r);return{containerClient:n,containerCreateResponse:s}}catch(n){throw i.setStatus({code:z.SpanStatusCode.ERROR,message:n.message}),n}finally{i.end()}}async deleteContainer(e,a={}){let{span:i,updatedOptions:r}=k("BlobServiceClient-deleteContainer",a);try{return await this.getContainerClient(e).delete(r)}catch(n){throw i.setStatus({code:z.SpanStatusCode.ERROR,message:n.message}),n}finally{i.end()}}async undeleteContainer(e,a,i={}){let{span:r,updatedOptions:n}=k("BlobServiceClient-undeleteContainer",i);try{let s=this.getContainerClient(i.destinationContainerName||e),l=await new en(s.storageClientContext).restore(Object.assign({deletedContainerName:e,deletedContainerVersion:a},n));return{containerClient:s,containerUndeleteResponse:l}}catch(s){throw r.setStatus({code:z.SpanStatusCode.ERROR,message:s.message}),s}finally{r.end()}}async renameContainer(e,a,i={}){var r;let{span:n,updatedOptions:s}=k("BlobServiceClient-renameContainer",i);try{let p=this.getContainerClient(a),d=await new en(p.storageClientContext).rename(e,Object.assign(Object.assign({},s),{sourceLeaseId:(r=i.sourceCondition)===null||r===void 0?void 0:r.leaseId}));return{containerClient:p,containerRenameResponse:d}}catch(p){throw n.setStatus({code:z.SpanStatusCode.ERROR,message:p.message}),p}finally{n.end()}}async getProperties(e={}){let{span:a,updatedOptions:i}=k("BlobServiceClient-getProperties",e);try{return await this.serviceContext.getProperties(Object.assign({abortSignal:e.abortSignal},X(i)))}catch(r){throw a.setStatus({code:z.SpanStatusCode.ERROR,message:r.message}),r}finally{a.end()}}async setProperties(e,a={}){let{span:i,updatedOptions:r}=k("BlobServiceClient-setProperties",a);try{return await this.serviceContext.setProperties(e,Object.assign({abortSignal:a.abortSignal},X(r)))}catch(n){throw i.setStatus({code:z.SpanStatusCode.ERROR,message:n.message}),n}finally{i.end()}}async getStatistics(e={}){let{span:a,updatedOptions:i}=k("BlobServiceClient-getStatistics",e);try{return await this.serviceContext.getStatistics(Object.assign({abortSignal:e.abortSignal},X(i)))}catch(r){throw a.setStatus({code:z.SpanStatusCode.ERROR,message:r.message}),r}finally{a.end()}}async getAccountInfo(e={}){let{span:a,updatedOptions:i}=k("BlobServiceClient-getAccountInfo",e);try{return await this.serviceContext.getAccountInfo(Object.assign({abortSignal:e.abortSignal},X(i)))}catch(r){throw a.setStatus({code:z.SpanStatusCode.ERROR,message:r.message}),r}finally{a.end()}}async listContainersSegment(e,a={}){let{span:i,updatedOptions:r}=k("BlobServiceClient-listContainersSegment",a);try{return await this.serviceContext.listContainersSegment(Object.assign(Object.assign(Object.assign({abortSignal:a.abortSignal,marker:e},a),{include:typeof a.include=="string"?[a.include]:a.include}),X(r)))}catch(n){throw i.setStatus({code:z.SpanStatusCode.ERROR,message:n.message}),n}finally{i.end()}}async findBlobsByTagsSegment(e,a,i={}){let{span:r,updatedOptions:n}=k("BlobServiceClient-findBlobsByTagsSegment",i);try{let s=await this.serviceContext.filterBlobs(Object.assign({abortSignal:i.abortSignal,where:e,marker:a,maxPageSize:i.maxPageSize},X(n)));return Object.assign(Object.assign({},s),{_response:s._response,blobs:s.blobs.map(l=>{var d;let c="";return((d=l.tags)===null||d===void 0?void 0:d.blobTagSet.length)===1&&(c=l.tags.blobTagSet[0].value),Object.assign(Object.assign({},l),{tags:Qo(l.tags),tagValue:c})})})}catch(s){throw r.setStatus({code:z.SpanStatusCode.ERROR,message:s.message}),s}finally{r.end()}}findBlobsByTagsSegments(e,a,i={}){return H.__asyncGenerator(this,arguments,o(function*(){let n;if(a||a===void 0)do n=yield H.__await(this.findBlobsByTagsSegment(e,a,i)),n.blobs=n.blobs||[],a=n.continuationToken,yield yield H.__await(n);wh
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(a),this.code=e,this.name="NetworkError"}};aa.NetworkError=Rc;Rc.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var Pc=class extends Error{static{o(this,"UsageError")}constructor(){let e=`Cache storage quota has been hit. Unable to upload any new cache entries. Usage is recalculated every 6-12 hours.
|
||||
More info on storage limits: https://docs.github.com/en/billing/managing-billing-for-github-actions/about-billing-for-github-actions#calculating-minute-and-storage-spending`;super(e),this.name="UsageError"}};aa.UsageError=Pc;Pc.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1});var yw=E(ia=>{"use strict";var Sz=ia&&ia.__createBinding||(Object.create?function(t,e,a,i){i===void 0&&(i=a);var r=Object.getOwnPropertyDescriptor(e,a);(!r||("get"in r?!e.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:function(){return e[a]}}),Object.defineProperty(t,i,r)}:function(t,e,a,i){i===void 0&&(i=a),t[i]=e[a]}),Cz=ia&&ia.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),Ez=ia&&ia.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var a in t)a!=="default"&&Object.prototype.hasOwnProperty.call(t,a)&&Sz(e,t,a);return Cz(e,t),e},Tz=ia&&ia.__awaiter||function(t,e,a,i){function r(n){return n instanceof a?n:new a(function(s){s(n)})}return o(r,"adopt"),new(a||(a=Promise))(function(n,s){function p(c){try{d(i.next(c))}catch(u){s(u)}}o(p,"fulfilled");function l(c){try{d(i.throw(c))}catch(u){s(u)}}o(l,"rejected");function d(c){c.done?n(c.value):r(c.value).then(p,l)}o(d,"step"),d((i=i.apply(t,e||[])).next())})};Object.defineProperty(ia,"__esModule",{value:!0});ia.uploadCacheArchiveSDK=ia.UploadProgress=void 0;var j0=Ez(rt()),Oz=B0(),Rz=k0(),Ic=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,a=(100*(e/this.contentLength)).toFixed(1),i=Date.now()-this.startTime,r=(e/(1024*1024)/(i/1e3)).toFixed(1);j0.info(`Sent ${e} of ${this.contentLength} (${a}%), ${r} MBs/sec`),this.isDone()&&(this.displayedComplete=!0)}onProgress(){return e=>{this.setSentBytes(e.loadedBytes)}}startDisplayTimer(e=1e3){let a=o(()=>{this.display(),this.isDone()||(this.timeoutHandle=setTimeout(a,e))},"displayCallback");this.timeoutHandle=setTimeout(a,e)}stopDisplayTimer(){this.timeoutHandle&&(clearTimeout(this.timeoutHandle),this.timeoutHandle=void 0),this.display()}};ia.UploadProgress=Ic;function Pz(t,e,a){var i;return Tz(this,void 0,void 0,function*(){let r=new Oz.BlobClient(t),n=r.getBlockBlobClient(),s=new Ic((i=a?.archiveSizeBytes)!==null&&i!==void 0?i:0),p={blockSize:a?.uploadChunkSize,concurrency:a?.uploadConcurrency,maxSingleShotSize:128*1024*1024,onProgress:s.onProgress()};try{s.startDisplayTimer(),j0.debug(`BlobClient: ${r.name}:${r.accountName}:${r.containerName}`);let l=yield n.uploadFile(e,p);if(l._response.status>=400)throw new Rz.InvalidResponseError(`uploadCacheArchiveSDK: upload failed with status code ${l._response.status}`);return l}catch(l){throw j0.warning(`uploadCacheArchiveSDK: internal error uploading cache archive: ${l.message}`),l}finally{s.stopDisplayTimer()}})}o(Pz,"uploadCacheArchiveSDK");ia.uploadCacheArchiveSDK=Pz});var U0=E(Je=>{"use strict";var Iz=Je&&Je.__createBinding||(Object.create?function(t,e,a,i){i===void 0&&(i=a);var r=Object.getOwnPropertyDescriptor(e,a);(!r||("get"in r?!e.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:function(){return e[a]}}),Object.defineProperty(t,i,r)}:function(t,e,a,i){i===void 0&&(i=a),t[i]=e[a]}),Dz=Je&&Je.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),Az=Je&&Je.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var a in t)a!=="default"&&Object.prototype.hasOwnProperty.call(t,a)&&Iz(e,t,a);return Dz(e,t),e},Ac=Je&&Je.__awaiter||function(t,e,a,i){function r(n){return n instanceof a?n:new a(function(s){s(n)})}return o(r,"adopt"),new(a||(a=Promise))(function(n,s){function p(c){try{d(i.next(c))}catch(u){s(u)}}o(p,"fulfilled");function l(c){try{d(i.throw(c))}catch(u){s(u)}}o(l,"rejected");function d(c){c.done?n(c.value):r(c.value).then(p,l)}o(d,"step"),d((i=i.apply(t,e||[])).next())})};Object.defineProperty(Je,"__esModule",{value:!0});Je.retryHttpClientResponse=Je.retryTypedResponse=Je.retry=Je.isRetryableStatusCode=Je.isServerErrorStatusCode=Je.isSuccessStatusCode=void 0;var vw=Az(rt()),Dc=Ir(),ws=Rn();function Bz(t){return t?t>=200&&t<300:!1}o(Bz,"isSuccessStatusCode");Je.isSuccessStatusCode=Bz;function xw(t){return t?t>=500:!0}o(xw,"isServerErrorStatusCode");Je.isServerErrorStatusCode=xw;function bw(t){return t?[Dc.HttpCodes.BadGateway,Dc.HttpCodes.ServiceUnavailable,Dc.HttpCodes.GatewayTimeout].includes(t):!1}o(bw,"isRetryableStatusCode");Je.isRetryableStatusCode=bw;function Mz(t){return Ac(this,void 0,void 0,function*(){return new Promise(e=>setTimeout(e,t))})}o(Mz,"sleep");function H0(t,e,a,i=ws.DefaultRetryAttempts,r=ws.DefaultRetryDelay,n=
Line truncated
|
||||
Other caches with similar key:`);for(let p of n?.artifactCaches||[])fa.debug(`Cache Key: ${p?.cacheKey}, Cache Version: ${p?.cacheVersion}, Cache Scope: ${p?.scope}, Cache Created: ${p?.creationTime}`)}}})}o(yk,"printCachesListForDiagnostics");function vk(t,e,a){return ra(this,void 0,void 0,function*(){let i=new dk.URL(t),r=(0,W0.getDownloadOptions)(a);i.hostname.endsWith(".blob.core.windows.net")?r.useAzureSdk?yield(0,Lc.downloadCacheStorageSDK)(t,e,r):r.concurrentBlobDownloads?yield(0,Lc.downloadCacheHttpClientConcurrent)(t,e,r):yield(0,Lc.downloadCacheHttpClient)(t,e):yield(0,Lc.downloadCacheHttpClient)(t,e)})}o(vk,"downloadCache");Tt.downloadCache=vk;function xk(t,e,a){return ra(this,void 0,void 0,function*(){let i=X0(),r=_s.getCacheVersion(e,a?.compressionMethod,a?.enableCrossOsArchive),n={key:t,version:r,cacheSize:a?.cacheSize};return yield(0,Sr.retryTypedResponse)("reserveCache",()=>ra(this,void 0,void 0,function*(){return i.postJson(xp("caches"),n)}))})}o(xk,"reserveCache");Tt.reserveCache=xk;function Pw(t,e){return`bytes ${t}-${e}/*`}o(Pw,"getContentRange");function bk(t,e,a,i,r){return ra(this,void 0,void 0,function*(){fa.debug(`Uploading chunk of size ${r-i+1} bytes at offset ${i} with content range: ${Pw(i,r)}`);let n={"Content-Type":"application/octet-stream","Content-Range":Pw(i,r)},s=yield(0,Sr.retryHttpClientResponse)(`uploadChunk (start: ${i}, end: ${r})`,()=>ra(this,void 0,void 0,function*(){return t.sendStream("PATCH",e,a(),n)}));if(!(0,Sr.isSuccessStatusCode)(s.message.statusCode))throw new Error(`Cache service responded with ${s.message.statusCode} during upload chunk.`)})}o(bk,"uploadChunk");function wk(t,e,a,i){return ra(this,void 0,void 0,function*(){let r=_s.getArchiveFileSizeInBytes(a),n=xp(`caches/${e.toString()}`),s=$0.openSync(a,"r"),p=(0,W0.getUploadOptions)(i),l=_s.assertDefined("uploadConcurrency",p.uploadConcurrency),d=_s.assertDefined("uploadChunkSize",p.uploadChunkSize),c=[...new Array(l).keys()];fa.debug("Awaiting all uploads");let u=0;try{yield Promise.all(c.map(()=>ra(this,void 0,void 0,function*(){for(;u<r;){let m=Math.min(r-u,d),f=u,h=u+m-1;u+=d,yield bk(t,n,()=>$0.createReadStream(a,{fd:s,start:f,end:h,autoClose:!1}).on("error",x=>{throw new Error(`Cache upload failed because file read failed with ${x.message}`)}),f,h)}})))}finally{$0.closeSync(s)}})}o(wk,"uploadFile");function Nk(t,e,a){return ra(this,void 0,void 0,function*(){let i={size:a};return yield(0,Sr.retryTypedResponse)("commitCache",()=>ra(this,void 0,void 0,function*(){return t.postJson(xp(`caches/${e.toString()}`),i)}))})}o(Nk,"commitCache");function _k(t,e,a,i){return ra(this,void 0,void 0,function*(){if((0,W0.getUploadOptions)(i).useAzureSdk){if(!a)throw new Error("Azure Storage SDK can only be used when a signed URL is provided.");yield(0,ck.uploadCacheArchiveSDK)(a,e,i)}else{let n=X0();fa.debug("Upload cache"),yield wk(n,t,e,i),fa.debug("Commiting cache");let s=_s.getArchiveFileSizeInBytes(e);fa.info(`Cache Size: ~${Math.round(s/(1024*1024))} MB (${s} B)`);let p=yield Nk(n,t,s);if(!(0,Sr.isSuccessStatusCode)(p.statusCode))throw new Error(`Cache service responded with ${p.statusCode} during commit cache.`);fa.info("Cache saved successfully")}})}o(_k,"saveCache");Tt.saveCache=_k});var qc=E(Ss=>{"use strict";Object.defineProperty(Ss,"__esModule",{value:!0});Ss.isJsonObject=Ss.typeofJsonValue=void 0;function Sk(t){let e=typeof t;if(e=="object"){if(Array.isArray(t))return"array";if(t===null)return"null"}return e}o(Sk,"typeofJsonValue");Ss.typeofJsonValue=Sk;function Ck(t){return t!==null&&typeof t=="object"&&!Array.isArray(t)}o(Ck,"isJsonObject");Ss.isJsonObject=Ck});var kc=E(Cs=>{"use strict";Object.defineProperty(Cs,"__esModule",{value:!0});Cs.base64encode=Cs.base64decode=void 0;var Fi="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),zc=[];for(let t=0;t<Fi.length;t++)zc[Fi[t].charCodeAt(0)]=t;zc["-".charCodeAt(0)]=Fi.indexOf("+");zc["_".charCodeAt(0)]=Fi.indexOf("/");function Ek(t){let e=t.length*3/4;t[t.length-2]=="="?e-=2:t[t.length-1]=="="&&(e-=1);let a=new Uint8Array(e),i=0,r=0,n,s=0;for(let p=0;p<t.length;p++){if(n=zc[t.charCodeAt(p)],n===void 0)switch(t[p]){case"=":r=0;case`
|
||||
`:case"\r":case" ":case" ":continue;default:throw Error("invalid base64 string.")}switch(r){case 0:s=n,r=1;break;case 1:a[i++]=s<<2|(n&48)>>4,s=n,r=2;break;case 2:a[i++]=(s&15)<<4|(n&60)>>2,s=n,r=3;break;case 3:a[i++]=(s&3)<<6|n,r=0;break}}if(r==1)throw Error("invalid base64 string.");return a.subarray(0,i)}o(Ek,"base64decode");Cs.base64decode=Ek;function Tk(t){let e="",a=0,i,r=0;for(let n=0;n<t.length;n++)switch(i=t[n],a){case 0:e+=Fi[i>>2],r=(i&3)<<4,a=1;break;case 1:e+=Fi[r|i>>4],r=(i&15)<<2,a=2;break;case 2:e+=Fi[r|i>>6],e+=Fi[i&63],a=0;break}return a&&(e+=Fi[r],e+="=",a==1&&(e+="=")),e}o(Tk,"base64encode");Cs.base64encode=Tk});var Dw=E(jc=>{"use strict";Object.defineProperty(jc,"__esModule",{value:!0});jc.utf8read=void 0;var K0=o(t=>String.fromCharCode.apply(String,t),"fromCharCodes");function Ok(t){if(t.length<1)return"";let e=0,a=[],i=[],r=0,n,s=t.length;for(;e<s;)n=t[e++],n<128?i[r++]=n:n>191&&n<224?i[r++]=(n&31)<<6|t[e++]&63:n>239&&n<365?(n=((n&7)<<18|(t[e++]&63)<<12|(t[e++]&63)<<6|t[e++]&63)-65536,i[r++]=55296+(n>>10),i[r++]=56320+(n&1023)):i[r++]=(n&15)<<12|(t[e++]&63)<<6|t[e++]&63,r>8191&&(a.push(K0(i)),r=0);return a.length?(r&&a.push(K0(i.slice(0,r))),a.join("")):K0(i.slice(0,r))}o(Ok,"utf8read");jc.utf8read=Ok});var bp=E(hi=>{"use strict";Object.defineProperty(hi,"__esModule",{value:!0});hi.WireType=hi.mergeBinaryOptions=hi.UnknownFieldHandler=void 0;var Rk;(function(t){t.symbol=Symbol.for("protobuf-ts/unknown"),t.onRead=(a,i,r,n,s)=>{(e(i)?i[t.symbol]:i[t.symbol]=[]).push({no:r,wireType:n,data:s})},t.onWrite=(a,i,r)=>{for(let{no:n,wireType:s,data:p}of t.list(i))r.tag(n,s).raw(p)},t.list=(a,i)=>{if(e(a)){let r=a[t.symbol];return i?r.filter(n=>n.no==i):r}return[]},t.last=(a,i)=>t.list(a,i).slice(-1)[0];let e=o(a=>a&&Array.isArray(a[t.symbol]),"is")})(Rk=hi.UnknownFieldHandler||(hi.UnknownFieldHandler={}));function Pk(t,e){return Object.assign(Object.assign({},t),e)}o(Pk,"mergeBinaryOptions");hi.mergeBinaryOptions=Pk;var Ik;(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"})(Ik=hi.WireType||(hi.WireType={}))});var Uc=E(na=>{"use strict";Object.defineProperty(na,"__esModule",{value:!0});na.varint32read=na.varint32write=na.int64toString=na.int64fromString=na.varint64write=na.varint64read=void 0;function Dk(){let t=0,e=0;for(let i=0;i<28;i+=7){let r=this.buf[this.pos++];if(t|=(r&127)<<i,!(r&128))return this.assertBounds(),[t,e]}let a=this.buf[this.pos++];if(t|=(a&15)<<28,e=(a&112)>>4,!(a&128))return this.assertBounds(),[t,e];for(let i=3;i<=31;i+=7){let r=this.buf[this.pos++];if(e|=(r&127)<<i,!(r&128))return this.assertBounds(),[t,e]}throw new Error("invalid varint")}o(Dk,"varint64read");na.varint64read=Dk;function Ak(t,e,a){for(let n=0;n<28;n=n+7){let s=t>>>n,p=!(!(s>>>7)&&e==0),l=(p?s|128:s)&255;if(a.push(l),!p)return}let i=t>>>28&15|(e&7)<<4,r=!!(e>>3);if(a.push((r?i|128:i)&255),!!r){for(let n=3;n<31;n=n+7){let s=e>>>n,p=!!(s>>>7),l=(p?s|128:s)&255;if(a.push(l),!p)return}a.push(e>>>31&1)}}o(Ak,"varint64write");na.varint64write=Ak;var Hc=65536*65536;function Bk(t){let e=t[0]=="-";e&&(t=t.slice(1));let a=1e6,i=0,r=0;function n(s,p){let l=Number(t.slice(s,p));r*=a,i=i*a+l,i>=Hc&&(r=r+(i/Hc|0),i=i%Hc)}return o(n,"add1e6digit"),n(-24,-18),n(-18,-12),n(-12,-6),n(-6),[e,i,r]}o(Bk,"int64fromString");na.int64fromString=Bk;function Mk(t,e){if(e>>>0<=2097151)return""+(Hc*e+(t>>>0));let a=t&16777215,i=(t>>>24|e<<8)>>>0&16777215,r=e>>16&65535,n=a+i*6777216+r*6710656,s=i+r*8147497,p=r*2,l=1e7;n>=l&&(s+=Math.floor(n/l),n%=l),s>=l&&(p+=Math.floor(s/l),s%=l);function d(c,u){let m=c?String(c):"";return u?"0000000".slice(m.length)+m:m}return o(d,"decimalFrom1e7"),d(p,0)+d(s,p)+d(n,1)}o(Mk,"int64toString");na.int64toString=Mk;function Lk(t,e){if(t>=0){for(;t>127;)e.push(t&127|128),t=t>>>7;e.push(t)}else{for(let a=0;a<9;a++)e.push(t&127|128),t=t>>7;e.push(1)}}o(Lk,"varint32write");na.varint32write=Lk;function qk(){let t=this.buf[this.pos++],e=t&127;if(!(t&128))return this.assertBounds(),e;if(t=this.buf[this.pos++],e|=(t&127)<<7,!(t&128))return this.assertBounds(),e;if(t=this.buf[this.pos++],e|=(t&127)<<14,!(t&128))return this.assertBounds(),e;if(t=this.buf[this.pos++],e|=(t&127)<<21,!(t&128))return this.assertBounds(),e;t=this.buf[this.pos++],e|=(t&15)<<28;for(let a=5;t&128&&a<10;a++)t=this.buf[this.pos++];if(t&128)throw new Error("invalid varint");return this.assertBounds(),e>>>0}o(qk,"varint32read");na.varint32read=qk});var Er=E(Cr=>{"use strict";Object.defineProperty(Cr,"__esModule",{value:!0});Cr.PbLong=Cr.PbULong=Cr.detectBi=void 0;var wp=Uc(),Ae;function Aw(){let t=new DataView(new ArrayBuffer(8));Ae=globalThis.BigInt!==void 0&&typeof t.getBigInt64=="function"&&typeof t.getBigUint64=="function"&&typeof t.setBigInt64=="function"&&typeof t.setBigUint64=="function"?{MIN:BigInt("-9223372036854775808"),MAX:BigInt("9223372036854775807"),UMIN:BigInt("0"),UMAX:BigInt("18446744073709551615"),C:
Line truncated
|
||||
`)}};hu.RpcError=N2});var S2=E(yu=>{"use strict";Object.defineProperty(yu,"__esModule",{value:!0});yu.mergeRpcOptions=void 0;var dN=pt();function nH(t,e){if(!e)return t;let a={};gu(t,a),gu(e,a);for(let i of Object.keys(e)){let r=e[i];switch(i){case"jsonOptions":a.jsonOptions=dN.mergeJsonOptions(t.jsonOptions,a.jsonOptions);break;case"binaryOptions":a.binaryOptions=dN.mergeBinaryOptions(t.binaryOptions,a.binaryOptions);break;case"meta":a.meta={},gu(t.meta,a.meta),gu(e.meta,a.meta);break;case"interceptors":a.interceptors=t.interceptors?t.interceptors.concat(r):r.concat();break}}return a}o(nH,"mergeRpcOptions");yu.mergeRpcOptions=nH;function gu(t,e){if(!t)return;let a=e;for(let[i,r]of Object.entries(t))r instanceof Date?a[i]=new Date(r.getTime()):Array.isArray(r)?a[i]=r.concat():a[i]=r}o(gu,"copy")});var E2=E(dn=>{"use strict";Object.defineProperty(dn,"__esModule",{value:!0});dn.Deferred=dn.DeferredState=void 0;var vi;(function(t){t[t.PENDING=0]="PENDING",t[t.REJECTED=1]="REJECTED",t[t.RESOLVED=2]="RESOLVED"})(vi=dn.DeferredState||(dn.DeferredState={}));var C2=class{static{o(this,"Deferred")}constructor(e=!0){this._state=vi.PENDING,this._promise=new Promise((a,i)=>{this._resolve=a,this._reject=i}),e&&this._promise.catch(a=>{})}get state(){return this._state}get promise(){return this._promise}resolve(e){if(this.state!==vi.PENDING)throw new Error(`cannot resolve ${vi[this.state].toLowerCase()}`);this._resolve(e),this._state=vi.RESOLVED}reject(e){if(this.state!==vi.PENDING)throw new Error(`cannot reject ${vi[this.state].toLowerCase()}`);this._reject(e),this._state=vi.REJECTED}resolvePending(e){this._state===vi.PENDING&&this.resolve(e)}rejectPending(e){this._state===vi.PENDING&&this.reject(e)}};dn.Deferred=C2});var O2=E(vu=>{"use strict";Object.defineProperty(vu,"__esModule",{value:!0});vu.RpcOutputStreamController=void 0;var cN=E2(),cn=pt(),T2=class{static{o(this,"RpcOutputStreamController")}constructor(){this._lis={nxt:[],msg:[],err:[],cmp:[]},this._closed=!1}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,a){return a.push(e),()=>{let i=a.indexOf(e);i>=0&&a.splice(i,1)}}clearLis(){for(let e of Object.values(this._lis))e.splice(0,e.length)}get closed(){return this._closed!==!1}notifyNext(e,a,i){cn.assert((e?1:0)+(a?1:0)+(i?1:0)<=1,"only one emission at a time"),e&&this.notifyMessage(e),a&&this.notifyError(a),i&&this.notifyComplete()}notifyMessage(e){cn.assert(!this.closed,"stream is closed"),this.pushIt({value:e,done:!1}),this._lis.msg.forEach(a=>a(e)),this._lis.nxt.forEach(a=>a(e,void 0,!1))}notifyError(e){cn.assert(!this.closed,"stream is closed"),this._closed=e,this.pushIt(e),this._lis.err.forEach(a=>a(e)),this._lis.nxt.forEach(a=>a(void 0,e,!1)),this.clearLis()}notifyComplete(){cn.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._itState||(this._itState={q:[]}),this._closed===!0?this.pushIt({value:null,done:!0}):this._closed!==!1&&this.pushIt(this._closed),{next:()=>{let e=this._itState;cn.assert(e,"bad state"),cn.assert(!e.p,"iterator contract broken");let a=e.q.shift();return a?"value"in a?Promise.resolve(a):Promise.reject(a):(e.p=new cN.Deferred,e.p.promise)}}}pushIt(e){let a=this._itState;if(a)if(a.p){let i=a.p;cn.assert(i.state==cN.DeferredState.PENDING,"iterator contract broken"),"value"in e?i.resolve(e):i.reject(e),delete a.p}else a.q.push(e)}};vu.RpcOutputStreamController=T2});var P2=E(Ds=>{"use strict";var sH=Ds&&Ds.__awaiter||function(t,e,a,i){function r(n){return n instanceof a?n:new a(function(s){s(n)})}return o(r,"adopt"),new(a||(a=Promise))(function(n,s){function p(c){try{d(i.next(c))}catch(u){s(u)}}o(p,"fulfilled");function l(c){try{d(i.throw(c))}catch(u){s(u)}}o(l,"rejected");function d(c){c.done?n(c.value):r(c.value).then(p,l)}o(d,"step"),d((i=i.apply(t,e||[])).next())})};Object.defineProperty(Ds,"__esModule",{value:!0});Ds.UnaryCall=void 0;var R2=class{static{o(this,"UnaryCall")}constructor(e,a,i,r,n,s,p){this.method=e,this.requestHeaders=a,this.request=i,this.headers=r,this.response=n,this.status=s,this.trailers=p}then(e,a){return this.promiseFinished().then(i=>e?Promise.resolve(e(i)):i,i=>a?Promise.resolve(a(i)):Promise.reject(i))}promiseFinished(){return sH(this,void 0,void 0,function*(){let[e,a,i,r]=yield Promise.all([this.headers,this.response,this.status,this.trailers]);return{method:this.method,requestHeaders:this.requestHeaders,request:this.request,headers:e,response:a,status:i,trailers:r}})}};Ds.UnaryCall=R2});var D2=E(As=>{"use strict";var oH=As&&As.__awaiter||function(t,e,a,i){function r(n){return n instanceof a?n:new a(function(s){s(n)})}return o(r,"adopt"),new(a||(a=Promise))(function(n,s){function p(c){try{d(i.next(c))}catch(u){s(u)}}o(p,"fulfilled");function
Line truncated
|
||||
`));let i=yield e6(a,"create");yield t6(i,t)})}o(tU,"createTar");kt.createTar=tU});var AN=E(lt=>{"use strict";var aU=lt&<.__createBinding||(Object.create?function(t,e,a,i){i===void 0&&(i=a);var r=Object.getOwnPropertyDescriptor(e,a);(!r||("get"in r?!e.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:function(){return e[a]}}),Object.defineProperty(t,i,r)}:function(t,e,a,i){i===void 0&&(i=a),t[i]=e[a]}),iU=lt&<.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),Mp=lt&<.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var a in t)a!=="default"&&Object.prototype.hasOwnProperty.call(t,a)&&aU(e,t,a);return iU(e,t),e},Xs=lt&<.__awaiter||function(t,e,a,i){function r(n){return n instanceof a?n:new a(function(s){s(n)})}return o(r,"adopt"),new(a||(a=Promise))(function(n,s){function p(c){try{d(i.next(c))}catch(u){s(u)}}o(p,"fulfilled");function l(c){try{d(i.throw(c))}catch(u){s(u)}}o(l,"rejected");function d(c){c.done?n(c.value):r(c.value).then(p,l)}o(d,"step"),d((i=i.apply(t,e||[])).next())})};Object.defineProperty(lt,"__esModule",{value:!0});lt.saveCache=lt.restoreCache=lt.isFeatureAvailable=lt.ReserveCacheError=lt.ValidationError=void 0;var re=Mp(rt()),Eu=Mp(require("path")),je=Mp(In()),Ws=Mp(Iw()),IN=Mp(TN()),Tu=Bc(),Rr=PN(),rU=Rn(),Ma=class t extends Error{static{o(this,"ValidationError")}constructor(e){super(e),this.name="ValidationError",Object.setPrototypeOf(this,t.prototype)}};lt.ValidationError=Ma;var un=class t extends Error{static{o(this,"ReserveCacheError")}constructor(e){super(e),this.name="ReserveCacheError",Object.setPrototypeOf(this,t.prototype)}};lt.ReserveCacheError=un;function DN(t){if(!t||t.length===0)throw new Ma("Path Validation Error: At least one directory or file path is required")}o(DN,"checkPaths");function a6(t){if(t.length>512)throw new Ma(`Key Validation Error: ${t} cannot be larger than 512 characters.`);if(!/^[^,]*$/.test(t))throw new Ma(`Key Validation Error: ${t} cannot contain commas.`)}o(a6,"checkKey");function nU(){return!!process.env.ACTIONS_CACHE_URL}o(nU,"isFeatureAvailable");lt.isFeatureAvailable=nU;function sU(t,e,a,i,r=!1){return Xs(this,void 0,void 0,function*(){let n=(0,Tu.getCacheServiceVersion)();switch(re.debug(`Cache service version: ${n}`),DN(t),n){case"v2":return yield pU(t,e,a,i,r);case"v1":default:return yield oU(t,e,a,i,r)}})}o(sU,"restoreCache");lt.restoreCache=sU;function oU(t,e,a,i,r=!1){return Xs(this,void 0,void 0,function*(){a=a||[];let n=[e,...a];if(re.debug("Resolved Keys:"),re.debug(JSON.stringify(n)),n.length>10)throw new Ma("Key Validation Error: Keys are limited to a maximum of 10.");for(let l of n)a6(l);let s=yield je.getCompressionMethod(),p="";try{let l=yield Ws.getCacheEntry(n,t,{compressionMethod:s,enableCrossOsArchive:r});if(!l?.archiveLocation)return;if(i?.lookupOnly)return re.info("Lookup only - skipping download"),l.cacheKey;p=Eu.join(yield je.createTempDirectory(),je.getCacheFileName(s)),re.debug(`Archive Path: ${p}`),yield Ws.downloadCache(l.archiveLocation,p,i),re.isDebug()&&(yield(0,Rr.listTar)(p,s));let d=je.getArchiveFileSizeInBytes(p);return re.info(`Cache Size: ~${Math.round(d/(1024*1024))} MB (${d} B)`),yield(0,Rr.extractTar)(p,s),re.info("Cache restored successfully"),l.cacheKey}catch(l){if(l.name===Ma.name)throw l;re.warning(`Failed to restore: ${l.message}`)}finally{try{yield je.unlinkFile(p)}catch(l){re.debug(`Failed to delete archive: ${l}`)}}})}o(oU,"restoreCacheV1");function pU(t,e,a,i,r=!1){return Xs(this,void 0,void 0,function*(){i=Object.assign(Object.assign({},i),{useAzureSdk:!0}),a=a||[];let n=[e,...a];if(re.debug("Resolved Keys:"),re.debug(JSON.stringify(n)),n.length>10)throw new Ma("Key Validation Error: Keys are limited to a maximum of 10.");for(let p of n)a6(p);let s="";try{let p=IN.internalCacheTwirpClient(),l=yield je.getCompressionMethod(),d={key:e,restoreKeys:a,version:je.getCacheVersion(t,l,r)},c=yield p.GetCacheEntryDownloadURL(d);if(!c.ok){re.debug(`Cache not found for version ${d.version} of keys: ${n.join(", ")}`);return}if(re.info(`Cache hit for: ${d.key}`),i?.lookupOnly)return re.info("Lookup only - skipping download"),c.matchedKey;s=Eu.join(yield je.createTempDirectory(),je.getCacheFileName(l)),re.debug(`Archive path: ${s}`),re.debug(`Starting download of archive to: ${s}`),yield Ws.downloadCache(c.signedDownloadUrl,s,i);let u=je.getArchiveFileSizeInBytes(s);return re.info(`Cache Size: ~${Math.round(u/(1024*1024))} MB (${u} B)`),re.isDebug()&&(yield(0,Rr.listTar)(s,l)),yield(0,Rr.extractTar)(s,l),re.info("Cache restored successfully"),c.matchedKey}catch(p){if(p.name===Ma.name)throw p;re.warning(`Failed to restore: ${p.message}`)}finally{try{s&&(yield je.unlinkFile(s))}catch(p){re.debug(`Failed to delete archive: ${p}`)}}})}o(pU,"restoreCacheV2");function lU(t,e,a,i=!1){return Xs(this,void 0,void 0,function*(){let r=(0,Tu.getCacheServiceVersion)();switch(re.debug(`Cache servLine truncated
|
||||
`);for(let r of i){let n=r.split("=");if(n.length===2&&(n[0].trim()==="VERSION_ID"||n[0].trim()==="DISTRIB_RELEASE")){e=n[1].trim().replace(/^"/,"").replace(/"$/,"");break}}}}return e}o(vU,"_getOsVersion");jt._getOsVersion=vU;function xU(){let t="/etc/lsb-release",e="/etc/os-release",a="";return Ou.existsSync(t)?a=Ou.readFileSync(t).toString():Ou.existsSync(e)&&(a=Ou.readFileSync(e).toString()),a}o(xU,"_readLinuxVersionFile");jt._readLinuxVersionFile=xU});var zN=E((rY,qN)=>{var bU=require("crypto");qN.exports=o(function(){return bU.randomBytes(16)},"nodeRNG")});var HN=E((sY,jN)=>{var kN=[];for(Lp=0;Lp<256;++Lp)kN[Lp]=(Lp+256).toString(16).substr(1);var Lp;function wU(t,e){var a=e||0,i=kN;return[i[t[a++]],i[t[a++]],i[t[a++]],i[t[a++]],"-",i[t[a++]],i[t[a++]],"-",i[t[a++]],i[t[a++]],"-",i[t[a++]],i[t[a++]],"-",i[t[a++]],i[t[a++]],i[t[a++]],i[t[a++]],i[t[a++]],i[t[a++]]].join("")}o(wU,"bytesToUuid");jN.exports=wU});var FN=E((pY,UN)=>{var NU=zN(),_U=HN();function SU(t,e,a){var i=e&&a||0;typeof t=="string"&&(e=t==="binary"?new Array(16):null,t=null),t=t||{};var r=t.random||(t.rng||NU)();if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,e)for(var n=0;n<16;++n)e[i+n]=r[n];return e||_U(r)}o(SU,"v4");UN.exports=SU});var GN=E(La=>{"use strict";var CU=La&&La.__createBinding||(Object.create?function(t,e,a,i){i===void 0&&(i=a),Object.defineProperty(t,i,{enumerable:!0,get:function(){return e[a]}})}:function(t,e,a,i){i===void 0&&(i=a),t[i]=e[a]}),EU=La&&La.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),TU=La&&La.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var a in t)a!=="default"&&Object.hasOwnProperty.call(t,a)&&CU(e,t,a);return EU(e,t),e},VN=La&&La.__awaiter||function(t,e,a,i){function r(n){return n instanceof a?n:new a(function(s){s(n)})}return o(r,"adopt"),new(a||(a=Promise))(function(n,s){function p(c){try{d(i.next(c))}catch(u){s(u)}}o(p,"fulfilled");function l(c){try{d(i.throw(c))}catch(u){s(u)}}o(l,"rejected");function d(c){c.done?n(c.value):r(c.value).then(p,l)}o(d,"step"),d((i=i.apply(t,e||[])).next())})};Object.defineProperty(La,"__esModule",{value:!0});La.RetryHelper=void 0;var $N=TU(rt()),n6=class{static{o(this,"RetryHelper")}constructor(e,a,i){if(e<1)throw new Error("max attempts should be greater than or equal to 1");if(this.maxAttempts=e,this.minSeconds=Math.floor(a),this.maxSeconds=Math.floor(i),this.minSeconds>this.maxSeconds)throw new Error("min seconds should be less than or equal to max seconds")}execute(e,a){return VN(this,void 0,void 0,function*(){let i=1;for(;i<this.maxAttempts;){try{return yield e()}catch(n){if(a&&!a(n))throw n;$N.info(n.message)}let r=this.getSleepAmount();$N.info(`Waiting ${r} seconds before trying again`),yield this.sleep(r),i++}return yield e()})}getSleepAmount(){return Math.floor(Math.random()*(this.maxSeconds-this.minSeconds+1))+this.minSeconds}sleep(e){return VN(this,void 0,void 0,function*(){return new Promise(a=>setTimeout(a,e*1e3))})}};La.RetryHelper=n6});var e_=E(oe=>{"use strict";var OU=oe&&oe.__createBinding||(Object.create?function(t,e,a,i){i===void 0&&(i=a),Object.defineProperty(t,i,{enumerable:!0,get:function(){return e[a]}})}:function(t,e,a,i){i===void 0&&(i=a),t[i]=e[a]}),RU=oe&&oe.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),xi=oe&&oe.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var a in t)a!=="default"&&Object.hasOwnProperty.call(t,a)&&OU(e,t,a);return RU(e,t),e},Vt=oe&&oe.__awaiter||function(t,e,a,i){function r(n){return n instanceof a?n:new a(function(s){s(n)})}return o(r,"adopt"),new(a||(a=Promise))(function(n,s){function p(c){try{d(i.next(c))}catch(u){s(u)}}o(p,"fulfilled");function l(c){try{d(i.throw(c))}catch(u){s(u)}}o(l,"rejected");function d(c){c.done?n(c.value):r(c.value).then(p,l)}o(d,"step"),d((i=i.apply(t,e||[])).next())})},PU=oe&&oe.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(oe,"__esModule",{value:!0});oe.evaluateVersions=oe.isExplicitVersion=oe.findFromManifest=oe.getManifestFromRepo=oe.findAllVersions=oe.find=oe.cacheFile=oe.cacheDir=oe.extractZip=oe.extractXar=oe.extractTar=oe.extract7z=oe.downloadTool=oe.HTTPError=void 0;var be=xi(rt()),ga=xi(io()),qa=xi(require("fs")),IU=xi(LN()),zp=xi(require("os")),Ja=xi(require("path")),WN=xi(Ir()),Gi=xi(fl()),DU=xi(require("stream")),AU=xi(require("util")),Ks=require("assert"),XN=PU(FN()),Pr=_n(),BU=GN(),qp=class extends Error{static{o(this,"HTTPError")}constructor(e){super(`Unexpected HTTP response: ${e}`),this.httpStatusCode=e,Object.setPrototypeOf(this,new.target.prototype)}};oe.HTTPError=qp;var o6=process.platform==="win32",MU=process.platform==="darwin",LU="actions/tool-cache";function qU(t,e,a,i){return Vt(this,void 0,void 0,function*(){e=e||Ja.join(ZN(),XN.default()),yield ga.mkdirP(Ja.dirname(e)),be.debug(`Downloading ${tLine truncated
|
||||
`,[CHAR_f]:"\f",[CHAR_r]:"\r",[CHAR_QUOT]:'"',[CHAR_BSOL]:"\\"};function isDigit(t){return t>=CHAR_0&&t<=CHAR_9}o(isDigit,"isDigit");function isHexit(t){return t>=CHAR_A&&t<=CHAR_F||t>=CHAR_a&&t<=CHAR_f||t>=CHAR_0&&t<=CHAR_9}o(isHexit,"isHexit");function isBit(t){return t===CHAR_1||t===CHAR_0}o(isBit,"isBit");function isOctit(t){return t>=CHAR_0&&t<=CHAR_7}o(isOctit,"isOctit");function isAlphaNumQuoteHyphen(t){return t>=CHAR_A&&t<=CHAR_Z||t>=CHAR_a&&t<=CHAR_z||t>=CHAR_0&&t<=CHAR_9||t===CHAR_APOS||t===CHAR_QUOT||t===CHAR_LOWBAR||t===CHAR_HYPHEN}o(isAlphaNumQuoteHyphen,"isAlphaNumQuoteHyphen");function isAlphaNumHyphen(t){return t>=CHAR_A&&t<=CHAR_Z||t>=CHAR_a&&t<=CHAR_z||t>=CHAR_0&&t<=CHAR_9||t===CHAR_LOWBAR||t===CHAR_HYPHEN}o(isAlphaNumHyphen,"isAlphaNumHyphen");var _type=Symbol("type"),_declared=Symbol("declared"),hasOwnProperty=Object.prototype.hasOwnProperty,defineProperty=Object.defineProperty,descriptor={configurable:!0,enumerable:!0,writable:!0,value:void 0};function hasKey(t,e){return hasOwnProperty.call(t,e)?!0:(e==="__proto__"&&defineProperty(t,"__proto__",descriptor),!1)}o(hasKey,"hasKey");var INLINE_TABLE=Symbol("inline-table");function InlineTable(){return Object.defineProperties({},{[_type]:{value:INLINE_TABLE}})}o(InlineTable,"InlineTable");function isInlineTable(t){return t===null||typeof t!="object"?!1:t[_type]===INLINE_TABLE}o(isInlineTable,"isInlineTable");var TABLE=Symbol("table");function Table(){return Object.defineProperties({},{[_type]:{value:TABLE},[_declared]:{value:!1,writable:!0}})}o(Table,"Table");function isTable(t){return t===null||typeof t!="object"?!1:t[_type]===TABLE}o(isTable,"isTable");var _contentType=Symbol("content-type"),INLINE_LIST=Symbol("inline-list");function InlineList(t){return Object.defineProperties([],{[_type]:{value:INLINE_LIST},[_contentType]:{value:t}})}o(InlineList,"InlineList");function isInlineList(t){return t===null||typeof t!="object"?!1:t[_type]===INLINE_LIST}o(isInlineList,"isInlineList");var LIST=Symbol("list");function List(){return Object.defineProperties([],{[_type]:{value:LIST}})}o(List,"List");function isList(t){return t===null||typeof t!="object"?!1:t[_type]===LIST}o(isList,"isList");var _custom;try{let utilInspect=eval("require('util').inspect");_custom=utilInspect.custom}catch(t){}var _inspect=_custom||"inspect",BoxedBigInt=class{static{o(this,"BoxedBigInt")}constructor(e){try{this.value=global.BigInt.asIntN(64,e)}catch{this.value=null}Object.defineProperty(this,_type,{value:INTEGER})}isNaN(){return this.value===null}toString(){return String(this.value)}[_inspect](){return`[BigInt: ${this.toString()}]}`}valueOf(){return this.value}},INTEGER=Symbol("integer");function Integer(t){let e=Number(t);return Object.is(e,-0)&&(e=0),global.BigInt&&!Number.isSafeInteger(e)?new BoxedBigInt(t):Object.defineProperties(new Number(e),{isNaN:{value:function(){return isNaN(this)}},[_type]:{value:INTEGER},[_inspect]:{value:()=>`[Integer: ${t}]`}})}o(Integer,"Integer");function isInteger(t){return t===null||typeof t!="object"?!1:t[_type]===INTEGER}o(isInteger,"isInteger");var FLOAT=Symbol("float");function Float(t){return Object.defineProperties(new Number(t),{[_type]:{value:FLOAT},[_inspect]:{value:()=>`[Float: ${t}]`}})}o(Float,"Float");function isFloat(t){return t===null||typeof t!="object"?!1:t[_type]===FLOAT}o(isFloat,"isFloat");function tomlType(t){let e=typeof t;if(e==="object"){if(t===null)return"null";if(t instanceof Date)return"datetime";if(_type in t)switch(t[_type]){case INLINE_TABLE:return"inline-table";case INLINE_LIST:return"inline-list";case TABLE:return"table";case LIST:return"list";case FLOAT:return"float";case INTEGER:return"integer"}}return e}o(tomlType,"tomlType");function makeParserClass(t){class e extends t{static{o(this,"TOMLParser")}constructor(){super(),this.ctx=this.obj=Table()}atEndOfWord(){return this.char===CHAR_NUM||this.char===CTRL_I||this.char===CHAR_SP||this.atEndOfLine()}atEndOfLine(){return this.char===t.END||this.char===CTRL_J||this.char===CTRL_M}parseStart(){if(this.char===t.END)return null;if(this.char===CHAR_LSQB)return this.call(this.parseTableOrList);if(this.char===CHAR_NUM)return this.call(this.parseComment);if(this.char===CTRL_J||this.char===CHAR_SP||this.char===CTRL_I||this.char===CTRL_M)return null;if(isAlphaNumQuoteHyphen(this.char))return this.callNow(this.parseAssignStatement);throw this.error(new TomlError(`Unknown character "${this.char}"`))}parseWhitespaceToEOL(){if(this.char===CHAR_SP||this.char===CTRL_I||this.char===CTRL_M)return null;if(this.char===CHAR_NUM)return this.goto(this.parseComment);if(this.char===t.END||this.char===CTRL_J)return this.return();throw this.error(new TomlError("Unexpected character, expected only whitespace or comments till end of line"))}parseAssignStatement(){return this.callNow(this.parseAssign,this.recordAssignStatement)}recordAssignStatement(i){let r=this.ctx,n=i.key.pop();for(let s of i.key){if(hasKey(r,s)&&(!isTable(r[s])||r[s][_declared]))throw this.error(new TomlError("Can'
Line truncated
|
||||
`,e&&e.split){let i=e.split(/\n/),r=String(Math.min(i.length,t.line+3)).length,n=" ";for(;n.length<r;)n+=" ";for(let s=Math.max(0,t.line-1);s<Math.min(i.length,t.line+2);++s){let p=String(s+1);if(p.length<r&&(p=" "+p),t.line===s){a+=p+"> "+i[s]+`
|
||||
`,a+=n+" ";for(let l=0;l<t.col;++l)a+=" ";a+=`^
|
||||
`}else a+=p+": "+i[s]+`
|
||||
`}}return t.message=a+`
|
||||
`,t}o(JU,"prettyError")});var h_=E((TY,f_)=>{"use strict";f_.exports=tF;var ZU=Bu(),eF=Mu();function tF(t){global.Buffer&&global.Buffer.isBuffer(t)&&(t=t.toString("utf8"));let e=new ZU;try{return e.parse(t),e.finish()}catch(a){throw eF(a,t)}}o(tF,"parseString")});var v_=E((RY,y_)=>{"use strict";y_.exports=iF;var aF=Bu(),g_=Mu();function iF(t,e){e||(e={});let a=0,i=e.blocksize||40960,r=new aF;return new Promise((s,p)=>{setImmediate(n,a,i,s,p)});function n(s,p,l,d){if(s>=t.length)try{return l(r.finish())}catch(c){return d(g_(c,t))}try{r.parse(t.slice(s,s+p)),setImmediate(n,s+p,p,l,d)}catch(c){d(g_(c,t))}}}o(iF,"parseAsync")});var w_=E((IY,b_)=>{"use strict";b_.exports=nF;var rF=require("stream"),x_=Bu();function nF(t){return t?sF(t):oF(t)}o(nF,"parseStream");function sF(t){let e=new x_;return t.setEncoding("utf8"),new Promise((a,i)=>{let r,n=!1,s=!1;function p(){if(n=!0,!r)try{a(e.finish())}catch(c){i(c)}}o(p,"finish");function l(c){s=!0,i(c)}o(l,"error"),t.once("end",p),t.once("error",l),d();function d(){r=!0;let c;for(;(c=t.read())!==null;)try{e.parse(c)}catch(u){return l(u)}if(r=!1,n)return p();s||t.once("readable",d)}o(d,"readNext")})}o(sF,"parseReadable");function oF(){let t=new x_;return new rF.Transform({objectMode:!0,transform(e,a,i){try{t.parse(e.toString(a))}catch(r){this.emit("error",r)}i()},flush(e){try{this.push(t.finish())}catch(a){this.emit("error",a)}e()}})}o(oF,"parseTransform")});var N_=E((AY,jp)=>{"use strict";jp.exports=h_();jp.exports.async=v_();jp.exports.stream=w_();jp.exports.prettyError=Mu()});var P_=E((BY,f6)=>{"use strict";f6.exports=pF;f6.exports.value=m6;function pF(t){if(t===null)throw fn("null");if(t===void 0)throw fn("undefined");if(typeof t!="object")throw fn(typeof t);if(typeof t.toJSON=="function"&&(t=t.toJSON()),t==null)return null;let e=oa(t);if(e!=="table")throw fn(e);return u6("","",t)}o(pF,"stringify");function fn(t){return new Error("Can only stringify objects, not "+t)}o(fn,"typeError");function lF(){return new Error("Array values can't have mixed types")}o(lF,"arrayOneTypeError");function __(t){return Object.keys(t).filter(e=>S_(t[e]))}o(__,"getInlineKeys");function dF(t){return Object.keys(t).filter(e=>!S_(t[e]))}o(dF,"getComplexKeys");function Lu(t){let e=Array.isArray(t)?[]:Object.prototype.hasOwnProperty.call(t,"__proto__")?{["__proto__"]:void 0}:{};for(let a of Object.keys(t))t[a]&&typeof t[a].toJSON=="function"&&!("toISOString"in t[a])?e[a]=t[a].toJSON():e[a]=t[a];return e}o(Lu,"toJSON");function u6(t,e,a){a=Lu(a);var i,r;i=__(a),r=dF(a);var n=[],s=e||"";i.forEach(l=>{var d=oa(a[l]);d!=="undefined"&&d!=="null"&&n.push(s+qu(l)+" = "+T_(a[l],!0))}),n.length>0&&n.push("");var p=t&&i.length>0?e+" ":"";return r.forEach(l=>{n.push(wF(t,p,l,a[l]))}),n.join(`
|
||||
`)}o(u6,"stringifyObject");function S_(t){switch(oa(t)){case"undefined":case"null":case"integer":case"nan":case"float":case"boolean":case"string":case"datetime":return!0;case"array":return t.length===0||oa(t[0])!=="table";case"table":return Object.keys(t).length===0;default:return!1}}o(S_,"isInline");function oa(t){return t===void 0?"undefined":t===null?"null":typeof t=="bigint"||Number.isInteger(t)&&!Object.is(t,-0)?"integer":typeof t=="number"?"float":typeof t=="boolean"?"boolean":typeof t=="string"?"string":"toISOString"in t?isNaN(t)?"undefined":"datetime":Array.isArray(t)?"array":"table"}o(oa,"tomlType");function qu(t){var e=String(t);return/^[-A-Za-z0-9_]+$/.test(e)?e:C_(e)}o(qu,"stringifyKey");function C_(t){return'"'+E_(t).replace(/"/g,'\\"')+'"'}o(C_,"stringifyBasicString");function cF(t){return"'"+t+"'"}o(cF,"stringifyLiteralString");function uF(t,e){for(;e.length<t;)e="0"+e;return e}o(uF,"numpad");function E_(t){return t.replace(/\\/g,"\\\\").replace(/[\b]/g,"\\b").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\f/g,"\\f").replace(/\r/g,"\\r").replace(/([\u0000-\u001f\u007f])/,e=>"\\u"+uF(4,e.codePointAt(0).toString(16)))}o(E_,"escapeString");function mF(t){let e=t.split(/\n/).map(a=>E_(a).replace(/"(?="")/g,'\\"')).join(`
|
||||
`+this.getCanonicalizedHeadersString(e)+this.getCanonicalizedResourceString(e),r=this.factory.computeHMACSHA256(A);return e.headers.set($t.AUTHORIZATION,`SharedKey ${this.factory.accountName}:${r}`),e}getHeaderValueToSign(e,A){let r=e.headers.get(A);return!r||A===$t.CONTENT_LENGTH&&r==="0"?"":r}getCanonicalizedHeadersString(e){let A=e.headers.headersArray().filter(i=>i.name.toLowerCase().startsWith($t.PREFIX_FOR_STORAGE));A.sort((i,n)=>i.name.toLowerCase().localeCompare(n.name.toLowerCase())),A=A.filter((i,n,s)=>!(n>0&&i.name.toLowerCase()===s[n-1].name.toLowerCase()));let r="";return A.forEach(i=>{r+=`${i.name.toLowerCase().trimRight()}:${i.value.trimLeft()}
|
||||
`}),r}getCanonicalizedResourceString(e){let A=dL(e.url)||"/",r="";r+=`/${this.factory.accountName}${A}`;let i=Bze(e.url),n={};if(i){let s=[];for(let o in i)if(Object.prototype.hasOwnProperty.call(i,o)){let c=o.toLowerCase();n[c]=i[o],s.push(c)}s.sort();for(let o of s)r+=`
|
||||
${o}:${decodeURIComponent(n[o])}`}return r}},PA=class extends FQ{static{a(this,"StorageSharedKeyCredential")}constructor(e,A){super(),this.accountName=e,this.accountKey=Buffer.from(A,"base64")}create(e,A){return new Yb(e,A,this)}computeHMACSHA256(e){return wae.createHmac("sha256",this.accountKey).update(e,"utf8").digest("base64")}},Tze="azure-storage-blob",Mze="12.17.0",UQ=class extends W.ServiceClient{static{a(this,"StorageClientContext")}constructor(e,A){if(e===void 0)throw new Error("'url' cannot be null");if(A||(A={}),!A.userAgent){let r=W.getDefaultUserAgentValue();A.userAgent=`${Tze}/${Mze} ${r}`}super(void 0,A),this.requestContentType="application/json; charset=utf-8",this.baseUri=A.endpoint||"{url}",this.url=e,this.version=A.version||"2023-11-03"}},TQ=class{static{a(this,"StorageClient")}constructor(e,A){this.url=hze(e),this.accountName=Wle(e),this.pipeline=A,this.storageClientContext=new UQ(this.url,A.toServiceClientOptions()),this.isHttps=Vle(fze(this.url)||"","https"),this.credential=new _t;for(let i of this.pipeline.factories)O.isNode&&i instanceof PA||i instanceof _t?this.credential=i:O.isTokenCredential(i.credential)&&(this.credential=i.credential);let r=this.storageClientContext;r.requestContentType=void 0}},J=P.createSpanFunction({packagePrefix:"Azure.Storage.Blob",namespace:"Microsoft.Storage"});function ne(t){var e,A;return{spanOptions:(e=t?.tracingOptions)===null||e===void 0?void 0:e.spanOptions,tracingContext:(A=t?.tracingOptions)===null||A===void 0?void 0:A.tracingContext}}a(ne,"convertTracingToRequestOptionsBase");var _c=class t{static{a(this,"BlobSASPermissions")}constructor(){this.read=!1,this.add=!1,this.create=!1,this.write=!1,this.delete=!1,this.deleteVersion=!1,this.tag=!1,this.move=!1,this.execute=!1,this.setImmutabilityPolicy=!1,this.permanentDelete=!1}static parse(e){let A=new t;for(let r of e)switch(r){case"r":A.read=!0;break;case"a":A.add=!0;break;case"c":A.create=!0;break;case"w":A.write=!0;break;case"d":A.delete=!0;break;case"x":A.deleteVersion=!0;break;case"t":A.tag=!0;break;case"m":A.move=!0;break;case"e":A.execute=!0;break;case"i":A.setImmutabilityPolicy=!0;break;case"y":A.permanentDelete=!0;break;default:throw new RangeError(`Invalid permission: ${r}`)}return A}static from(e){let A=new t;return e.read&&(A.read=!0),e.add&&(A.add=!0),e.create&&(A.create=!0),e.write&&(A.write=!0),e.delete&&(A.delete=!0),e.deleteVersion&&(A.deleteVersion=!0),e.tag&&(A.tag=!0),e.move&&(A.move=!0),e.execute&&(A.execute=!0),e.setImmutabilityPolicy&&(A.setImmutabilityPolicy=!0),e.permanentDelete&&(A.permanentDelete=!0),A}toString(){let e=[];return this.read&&e.push("r"),this.add&&e.push("a"),this.create&&e.push("c"),this.write&&e.push("w"),this.delete&&e.push("d"),this.deleteVersion&&e.push("x"),this.tag&&e.push("t"),this.move&&e.push("m"),this.execute&&e.push("e"),this.setImmutabilityPolicy&&e.push("i"),this.permanentDelete&&e.push("y"),e.join("")}},Oc=class t{static{a(this,"ContainerSASPermissions")}constructor(){this.read=!1,this.add=!1,this.create=!1,this.write=!1,this.delete=!1,this.deleteVersion=!1,this.list=!1,this.tag=!1,this.move=!1,this.execute=!1,this.setImmutabilityPolicy=!1,this.permanentDelete=!1,this.filterByTags=!1}static parse(e){let A=new t;for(let r of e)switch(r){case"r":A.read=!0;break;case"a":A.add=!0;break;case"c":A.create=!0;break;case"w":A.write=!0;break;case"d":A.delete=!0;break;case"l":A.list=!0;break;case"t":A.tag=!0;break;case"x":A.deleteVersion=!0;break;case"m":A.move=!0;break;case"e":A.execute=!0;break;case"i":A.setImmutabilityPolicy=!0;break;case"y":A.permanentDelete=!0;break;case"f":A.filterByTags=!0;break;default:throw new RangeError(`Invalid permission ${r}`)}return A}static from(e){let A=new t;return e.read&&(A.read=!0),e.add&&(A.add=!0),e.create&&(A.create=!0),e.write&&(A.write=!0),e.delete&&(A.delete=!0),e.list&&(A.list=!0),e.deleteVersion&&(A.deleteVersion=!0),e.tag&&(A.tag=!0),e.move&&(A.move=!0),e.execute&&(A.execute=!0),e.setImmutabilityPolicy&&(A.setImmutabilityPolicy=!0),e.permanentDelete&&(A.permanentDelete=!0),e.filterByTags&&(A.filterByTags=!0),A}toString(){let e=[];return this.read&&e.push("r"),this.add&&e.push("a"),this.create&&e.push("c"),this.write&&e.push("w"),this.delete&&e.push("d"),this.deleteVersion&&e.push("x"),this.list&&e.push("l"),this.tag&&e.push("t"),this.move&&e.push("m"),this.execute&&e.push("e"),this.setImmutabilityPolicy&&e.push("i"),this.permanentDelete&&e.push("y"),this.filterByTags&&e.push("f"),e.join("")}},IF=class{static{a(this,"UserDelegationKeyCredential")}constructor(e,A){this.accountName=e,this.userDelegationKey=A,this.key=Buffer.from(A.value,"base64")}computeHMACSHA256(e){return wae.createHmac("sha256",this.key).update(e,"utf8").digest("base64")}};function Pc(t){return t.end?`${t.start}-${t.end}`:t.start}a(Pc,"ipRangeToString");ce.SASProtocol=void 0;(function(t){t.Https="https",t.HttpsAndHttp="https,http"})(ce.SASProtocol||(ce.SASProtocol={}));var xo=class{static{a(this,"SASQueryParameters")}constructor(e,A,r,i,n,s,o,
Line truncated
|
||||
`),n=e.computeHMACSHA256(i);return new xo(t.version,n,r,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,A,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType)}a(_ze,"generateBlobSASQueryParameters20150405");function Oze(t,e){if(t=bE(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 A="c",r=t.snapshotTime;t.blobName&&(A="b",t.snapshotTime?A="bs":t.versionId&&(A="bv",r=t.versionId));let i;t.permissions&&(t.blobName?i=_c.parse(t.permissions.toString()).toString():i=Oc.parse(t.permissions.toString()).toString());let n=[i||"",t.startsOn?Rt(t.startsOn,!1):"",t.expiresOn?Rt(t.expiresOn,!1):"",wE(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?Pc(t.ipRange):"",t.protocol?t.protocol:"",t.version,A,r,t.cacheControl?t.cacheControl:"",t.contentDisposition?t.contentDisposition:"",t.contentEncoding?t.contentEncoding:"",t.contentLanguage?t.contentLanguage:"",t.contentType?t.contentType:""].join(`
|
||||
`),s=e.computeHMACSHA256(n);return new xo(t.version,s,i,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,A,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType)}a(Oze,"generateBlobSASQueryParameters20181109");function Pze(t,e){if(t=bE(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 A="c",r=t.snapshotTime;t.blobName&&(A="b",t.snapshotTime?A="bs":t.versionId&&(A="bv",r=t.versionId));let i;t.permissions&&(t.blobName?i=_c.parse(t.permissions.toString()).toString():i=Oc.parse(t.permissions.toString()).toString());let n=[i||"",t.startsOn?Rt(t.startsOn,!1):"",t.expiresOn?Rt(t.expiresOn,!1):"",wE(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?Pc(t.ipRange):"",t.protocol?t.protocol:"",t.version,A,r,t.encryptionScope,t.cacheControl?t.cacheControl:"",t.contentDisposition?t.contentDisposition:"",t.contentEncoding?t.contentEncoding:"",t.contentLanguage?t.contentLanguage:"",t.contentType?t.contentType:""].join(`
|
||||
`),s=e.computeHMACSHA256(n);return new xo(t.version,s,i,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,A,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,void 0,void 0,void 0,t.encryptionScope)}a(Pze,"generateBlobSASQueryParameters20201206");function qze(t,e){if(t=bE(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let A="c",r=t.snapshotTime;t.blobName&&(A="b",t.snapshotTime?A="bs":t.versionId&&(A="bv",r=t.versionId));let i;t.permissions&&(t.blobName?i=_c.parse(t.permissions.toString()).toString():i=Oc.parse(t.permissions.toString()).toString());let n=[i||"",t.startsOn?Rt(t.startsOn,!1):"",t.expiresOn?Rt(t.expiresOn,!1):"",wE(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Rt(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Rt(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.ipRange?Pc(t.ipRange):"",t.protocol?t.protocol:"",t.version,A,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
|
||||
`),s=e.computeHMACSHA256(n);return new xo(t.version,s,i,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,A,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey)}a(qze,"generateBlobSASQueryParametersUDK20181109");function Hze(t,e){if(t=bE(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let A="c",r=t.snapshotTime;t.blobName&&(A="b",t.snapshotTime?A="bs":t.versionId&&(A="bv",r=t.versionId));let i;t.permissions&&(t.blobName?i=_c.parse(t.permissions.toString()).toString():i=Oc.parse(t.permissions.toString()).toString());let n=[i||"",t.startsOn?Rt(t.startsOn,!1):"",t.expiresOn?Rt(t.expiresOn,!1):"",wE(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Rt(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Rt(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?Pc(t.ipRange):"",t.protocol?t.protocol:"",t.version,A,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
|
||||
`),s=e.computeHMACSHA256(n);return new xo(t.version,s,i,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,A,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId)}a(Hze,"generateBlobSASQueryParametersUDK20200210");function Yze(t,e){if(t=bE(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let A="c",r=t.snapshotTime;t.blobName&&(A="b",t.snapshotTime?A="bs":t.versionId&&(A="bv",r=t.versionId));let i;t.permissions&&(t.blobName?i=_c.parse(t.permissions.toString()).toString():i=Oc.parse(t.permissions.toString()).toString());let n=[i||"",t.startsOn?Rt(t.startsOn,!1):"",t.expiresOn?Rt(t.expiresOn,!1):"",wE(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Rt(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Rt(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?Pc(t.ipRange):"",t.protocol?t.protocol:"",t.version,A,r,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
|
||||
`),s=e.computeHMACSHA256(n);return new xo(t.version,s,i,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,A,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId,t.encryptionScope)}a(Yze,"generateBlobSASQueryParametersUDK20201206");function wE(t,e,A){let r=[`/blob/${t}/${e}`];return A&&r.push(`/${A}`),r.join("")}a(wE,"getCanonicalName");function bE(t){let e=t.version?t.version:cL;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}a(bE,"SASSignatureValuesSanityCheckAndAutofill");var MQ=class{static{a(this,"BlobLeaseClient")}constructor(e,A){let r=new UQ(e.url,e.pipeline.toServiceClientOptions());this._url=e.url,e.name===void 0?(this._isContainer=!0,this._containerOrBlobOperation=new zu(r)):(this._isContainer=!1,this._containerOrBlobOperation=new xQ(r)),A||(A=O.generateUuid()),this._leaseId=A}get leaseId(){return this._leaseId}get url(){return this._url}async acquireLease(e,A={}){var r,i,n,s,o,c;let{span:l,updatedOptions:d}=J("BlobLeaseClient-acquireLease",A);if(this._isContainer&&(!((r=A.conditions)===null||r===void 0)&&r.ifMatch&&((i=A.conditions)===null||i===void 0?void 0:i.ifMatch)!==So||!((n=A.conditions)===null||n===void 0)&&n.ifNoneMatch&&((s=A.conditions)===null||s===void 0?void 0:s.ifNoneMatch)!==So||!((o=A.conditions)===null||o===void 0)&&o.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.");try{return await this._containerOrBlobOperation.acquireLease(Object.assign({abortSignal:A.abortSignal,duration:e,modifiedAccessConditions:Object.assign(Object.assign({},A.conditions),{ifTags:(c=A.conditions)===null||c===void 0?void 0:c.tagConditions}),proposedLeaseId:this._leaseId},ne(d)))}catch(u){throw l.setStatus({code:P.SpanStatusCode.ERROR,message:u.message}),u}finally{l.end()}}async changeLease(e,A={}){var r,i,n,s,o,c;let{span:l,updatedOptions:d}=J("BlobLeaseClient-changeLease",A);if(this._isContainer&&(!((r=A.conditions)===null||r===void 0)&&r.ifMatch&&((i=A.conditions)===null||i===void 0?void 0:i.ifMatch)!==So||!((n=A.conditions)===null||n===void 0)&&n.ifNoneMatch&&((s=A.conditions)===null||s===void 0?void 0:s.ifNoneMatch)!==So||!((o=A.conditions)===null||o===void 0)&&o.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.");try{let u=await this._containerOrBlobOperation.changeLease(this._leaseId,e,Object.assign({abortSignal:A.abortSignal,modifiedAccessConditions:Object.assign(Object.assign({},A.conditions),{ifTags:(c=A.conditions)===null||c===void 0?void 0:c.tagConditions})},ne(d)));return this._leaseId=e,u}catch(u){throw l.setStatus({code:P.SpanStatusCode.ERROR,message:u.message}),u}finally{l.end()}}async releaseLease(e={}){var A,r,i,n,s,o;let{span:c,updatedOptions:l}=J("BlobLeaseClient-releaseLease",e);if(this._isContainer&&(!((A=e.conditions)===null||A===void 0)&&A.ifMatch&&((r=e.conditions)===null||r===void 0?void 0:r.ifMatch)!==So||!((i=e.conditions)===null||i===void 0)&&i.ifNoneMatch&&((n=e.conditions)===null||n===void 0?void 0:n.ifNoneMatch)!==So||!((s=e.conditions)===null||s===void 0)&&s.tag
Line truncated
|
||||
`):s=[e.accountName,r,i,n,t.startsOn?Rt(t.startsOn,!1):"",Rt(t.expiresOn,!1),t.ipRange?Pc(t.ipRange):"",t.protocol?t.protocol:"",A,""].join(`
|
||||
`);let o=e.computeHMACSHA256(s);return new xo(A,o,r.toString(),i,n,t.protocol,t.startsOn,t.expiresOn,t.ipRange,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,t.encryptionScope)}a(jle,"generateAccountSASQueryParameters");var JF=class t extends TQ{static{a(this,"BlobServiceClient")}constructor(e,A,r){let i;pd(A)?i=A:O.isNode&&A instanceof PA||A instanceof _t||O.isTokenCredential(A)?i=Gt(A,r):i=Gt(new _t,r),super(e,i),this.serviceContext=new Tb(this.storageClientContext)}static fromConnectionString(e,A){A=A||{};let r=yE(e);if(r.kind==="AccountConnString")if(O.isNode){let i=new PA(r.accountName,r.accountKey);A.proxyOptions||(A.proxyOptions=O.getDefaultProxySettings(r.proxyUri));let n=Gt(i,A);return new t(r.url,n)}else throw new Error("Account connection string is only supported in Node.js environment");else if(r.kind==="SASConnString"){let i=Gt(new _t,A);return new t(r.url+"?"+r.accountSas,i)}else throw new Error("Connection string must be either an Account connection string or a SAS connection string")}getContainerClient(e){return new Jb(NA(this.url,encodeURIComponent(e)),this.pipeline)}async createContainer(e,A={}){let{span:r,updatedOptions:i}=J("BlobServiceClient-createContainer",A);try{let n=this.getContainerClient(e),s=await n.create(i);return{containerClient:n,containerCreateResponse:s}}catch(n){throw r.setStatus({code:P.SpanStatusCode.ERROR,message:n.message}),n}finally{r.end()}}async deleteContainer(e,A={}){let{span:r,updatedOptions:i}=J("BlobServiceClient-deleteContainer",A);try{return await this.getContainerClient(e).delete(i)}catch(n){throw r.setStatus({code:P.SpanStatusCode.ERROR,message:n.message}),n}finally{r.end()}}async undeleteContainer(e,A,r={}){let{span:i,updatedOptions:n}=J("BlobServiceClient-undeleteContainer",r);try{let s=this.getContainerClient(r.destinationContainerName||e),c=await new zu(s.storageClientContext).restore(Object.assign({deletedContainerName:e,deletedContainerVersion:A},n));return{containerClient:s,containerUndeleteResponse:c}}catch(s){throw i.setStatus({code:P.SpanStatusCode.ERROR,message:s.message}),s}finally{i.end()}}async renameContainer(e,A,r={}){var i;let{span:n,updatedOptions:s}=J("BlobServiceClient-renameContainer",r);try{let o=this.getContainerClient(A),l=await new zu(o.storageClientContext).rename(e,Object.assign(Object.assign({},s),{sourceLeaseId:(i=r.sourceCondition)===null||i===void 0?void 0:i.leaseId}));return{containerClient:o,containerRenameResponse:l}}catch(o){throw n.setStatus({code:P.SpanStatusCode.ERROR,message:o.message}),o}finally{n.end()}}async getProperties(e={}){let{span:A,updatedOptions:r}=J("BlobServiceClient-getProperties",e);try{return await this.serviceContext.getProperties(Object.assign({abortSignal:e.abortSignal},ne(r)))}catch(i){throw A.setStatus({code:P.SpanStatusCode.ERROR,message:i.message}),i}finally{A.end()}}async setProperties(e,A={}){let{span:r,updatedOptions:i}=J("BlobServiceClient-setProperties",A);try{return await this.serviceContext.setProperties(e,Object.assign({abortSignal:A.abortSignal},ne(i)))}catch(n){throw r.setStatus({code:P.SpanStatusCode.ERROR,message:n.message}),n}finally{r.end()}}async getStatistics(e={}){let{span:A,updatedOptions:r}=J("BlobServiceClient-getStatistics",e);try{return await this.serviceContext.getStatistics(Object.assign({abortSignal:e.abortSignal},ne(r)))}catch(i){throw A.setStatus({code:P.SpanStatusCode.ERROR,message:i.message}),i}finally{A.end()}}async getAccountInfo(e={}){let{span:A,updatedOptions:r}=J("BlobServiceClient-getAccountInfo",e);try{return await this.serviceContext.getAccountInfo(Object.assign({abortSignal:e.abortSignal},ne(r)))}catch(i){throw A.setStatus({code:P.SpanStatusCode.ERROR,message:i.message}),i}finally{A.end()}}async listContainersSegment(e,A={}){let{span:r,updatedOptions:i}=J("BlobServiceClient-listContainersSegment",A);try{return await this.serviceContext.listContainersSegment(Object.assign(Object.assign(Object.assign({abortSignal:A.abortSignal,marker:e},A),{include:typeof A.include=="string"?[A.include]:A.include}),ne(i)))}catch(n){throw r.setStatus({code:P.SpanStatusCode.ERROR,message:n.message}),n}finally{r.end()}}async findBlobsByTagsSegment(e,A,r={}){let{span:i,updatedOptions:n}=J("BlobServiceClient-findBlobsByTagsSegment",r);try{let s=await this.serviceContext.filterBlobs(Object.assign({abortSignal:r.abortSignal,where:e,marker:A,maxPageSize:r.maxPageSize},ne(n)));return Object.assign(Object.assign({},s),{_response:s._response,blobs:s.blobs.map(c=>{var l;let d="";return((l=c.tags)===null||l===void 0?void 0:l.blobTagSet.length)===1&&(d=c.tags.blobTagSet[0].value),Object.assign(Object.assign({},c),{tags:RQ(c.tags),tagValue:d})})})}catch(s){throw i.setStatus({code:P.SpanStatusCode.ERROR,message:s.message}),s}finally{i.end()}}findBlobsByTagsSegments(e,A,r={}){return V.__asyncGenerator(this,arguments,a(function*(){let n;if(A||A===void 0)do n=yield V.__await(this.findBlobsByTagsSegment(e,A,r)),n.blobs=n.blobs||[],A=n.continuationToken,yield yield V.__awai
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(A),this.code=e,this.name="NetworkError"}};Bn.NetworkError=eN;eN.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var tN=class extends Error{static{a(this,"UsageError")}constructor(){super(`Cache storage quota has been hit. Unable to upload any new cache entries. Usage is recalculated every 6-12 hours.
|
||||
More info on storage limits: https://docs.github.com/en/billing/managing-billing-for-github-actions/about-billing-for-github-actions#calculating-minute-and-storage-spending`),this.name="UsageError"}};Bn.UsageError=tN;tN.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1});var Xle=E(In=>{"use strict";var rje=In&&In.__createBinding||(Object.create?function(t,e,A,r){r===void 0&&(r=A);var i=Object.getOwnPropertyDescriptor(e,A);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[A]}}),Object.defineProperty(t,r,i)}:function(t,e,A,r){r===void 0&&(r=A),t[r]=e[A]}),ije=In&&In.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),nje=In&&In.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var A in t)A!=="default"&&Object.prototype.hasOwnProperty.call(t,A)&&rje(e,t,A);return ije(e,t),e},sje=In&&In.__awaiter||function(t,e,A,r){function i(n){return n instanceof A?n:new A(function(s){s(n)})}return a(i,"adopt"),new(A||(A=Promise))(function(n,s){function o(d){try{l(r.next(d))}catch(u){s(u)}}a(o,"fulfilled");function c(d){try{l(r.throw(d))}catch(u){s(u)}}a(c,"rejected");function l(d){d.done?n(d.value):i(d.value).then(o,c)}a(l,"step"),l((r=r.apply(t,e||[])).next())})};Object.defineProperty(In,"__esModule",{value:!0});In.uploadCacheArchiveSDK=In.UploadProgress=void 0;var BL=nje(hi()),aje=hL(),oje=QL(),AN=class{static{a(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,A=(100*(e/this.contentLength)).toFixed(1),r=Date.now()-this.startTime,i=(e/(1024*1024)/(r/1e3)).toFixed(1);BL.info(`Sent ${e} of ${this.contentLength} (${A}%), ${i} MBs/sec`),this.isDone()&&(this.displayedComplete=!0)}onProgress(){return e=>{this.setSentBytes(e.loadedBytes)}}startDisplayTimer(e=1e3){let A=a(()=>{this.display(),this.isDone()||(this.timeoutHandle=setTimeout(A,e))},"displayCallback");this.timeoutHandle=setTimeout(A,e)}stopDisplayTimer(){this.timeoutHandle&&(clearTimeout(this.timeoutHandle),this.timeoutHandle=void 0),this.display()}};In.UploadProgress=AN;function cje(t,e,A){var r;return sje(this,void 0,void 0,function*(){let i=new aje.BlobClient(t),n=i.getBlockBlobClient(),s=new AN((r=A?.archiveSizeBytes)!==null&&r!==void 0?r:0),o={blockSize:A?.uploadChunkSize,concurrency:A?.uploadConcurrency,maxSingleShotSize:128*1024*1024,onProgress:s.onProgress()};try{s.startDisplayTimer(),BL.debug(`BlobClient: ${i.name}:${i.accountName}:${i.containerName}`);let c=yield n.uploadFile(e,o);if(c._response.status>=400)throw new oje.InvalidResponseError(`uploadCacheArchiveSDK: upload failed with status code ${c._response.status}`);return c}catch(c){throw BL.warning(`uploadCacheArchiveSDK: internal error uploading cache archive: ${c.message}`),c}finally{s.stopDisplayTimer()}})}a(cje,"uploadCacheArchiveSDK");In.uploadCacheArchiveSDK=cje});var yL=E(qA=>{"use strict";var lje=qA&&qA.__createBinding||(Object.create?function(t,e,A,r){r===void 0&&(r=A);var i=Object.getOwnPropertyDescriptor(e,A);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[A]}}),Object.defineProperty(t,r,i)}:function(t,e,A,r){r===void 0&&(r=A),t[r]=e[A]}),dje=qA&&qA.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),uje=qA&&qA.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var A in t)A!=="default"&&Object.prototype.hasOwnProperty.call(t,A)&&lje(e,t,A);return dje(e,t),e},iN=qA&&qA.__awaiter||function(t,e,A,r){function i(n){return n instanceof A?n:new A(function(s){s(n)})}return a(i,"adopt"),new(A||(A=Promise))(function(n,s){function o(d){try{l(r.next(d))}catch(u){s(u)}}a(o,"fulfilled");function c(d){try{l(r.throw(d))}catch(u){s(u)}}a(c,"rejected");function l(d){d.done?n(d.value):i(d.value).then(o,c)}a(l,"step"),l((r=r.apply(t,e||[])).next())})};Object.defineProperty(qA,"__esModule",{value:!0});qA.retryHttpClientResponse=qA.retryTypedResponse=qA.retry=qA.isRetryableStatusCode=qA.isServerErrorStatusCode=qA.isSuccessStatusCode=void 0;var Zle=uje(hi()),rN=wg(),NE=Nh();function pje(t){return t?t>=200&&t<300:!1}a(pje,"isSuccessStatusCode");qA.isSuccessStatusCode=pje;function Kle(t){return t?t>=500:!0}a(Kle,"isServerErrorStatusCode");qA.isServerErrorStatusCode=Kle;function $le(t){return t?[rN.HttpCodes.BadGateway,rN.HttpCodes.ServiceUnavailable,rN.HttpCodes.GatewayTimeout].includes(t):!1}a($le,"isRetryableStatusCode");qA.isRetryableStatusCode=$le;function gje(t){return iN(this,void 0,void 0,function*(){return new Promise(e=>setTimeout(e,t))})}a(gje,"sleep");function IL(t,e,A,r=NE.DefaultRetryAttempts
Line truncated
|
||||
Other caches with similar key:`);for(let o of n?.artifactCaches||[])cs.debug(`Cache Key: ${o?.cacheKey}, Cache Version: ${o?.cacheVersion}, Cache Scope: ${o?.scope}, Cache Created: ${o?.creationTime}`)}}})}a(Xje,"printCachesListForDiagnostics");function Zje(t,e,A){return yn(this,void 0,void 0,function*(){let r=new Yje.URL(t),i=(0,DL.getDownloadOptions)(A);r.hostname.endsWith(".blob.core.windows.net")?i.useAzureSdk?yield(0,aN.downloadCacheStorageSDK)(t,e,i):i.concurrentBlobDownloads?yield(0,aN.downloadCacheHttpClientConcurrent)(t,e,i):yield(0,aN.downloadCacheHttpClient)(t,e):yield(0,aN.downloadCacheHttpClient)(t,e)})}a(Zje,"downloadCache");Or.downloadCache=Zje;function Kje(t,e,A){return yn(this,void 0,void 0,function*(){let r=SL(),i=DE.getCacheVersion(e,A?.compressionMethod,A?.enableCrossOsArchive),n={key:t,version:i,cacheSize:A?.cacheSize};return yield(0,hd.retryTypedResponse)("reserveCache",()=>yn(this,void 0,void 0,function*(){return r.postJson(XQ("caches"),n)}))})}a(Kje,"reserveCache");Or.reserveCache=Kje;function cde(t,e){return`bytes ${t}-${e}/*`}a(cde,"getContentRange");function $je(t,e,A,r,i){return yn(this,void 0,void 0,function*(){cs.debug(`Uploading chunk of size ${i-r+1} bytes at offset ${r} with content range: ${cde(r,i)}`);let n={"Content-Type":"application/octet-stream","Content-Range":cde(r,i)},s=yield(0,hd.retryHttpClientResponse)(`uploadChunk (start: ${r}, end: ${i})`,()=>yn(this,void 0,void 0,function*(){return t.sendStream("PATCH",e,A(),n)}));if(!(0,hd.isSuccessStatusCode)(s.message.statusCode))throw new Error(`Cache service responded with ${s.message.statusCode} during upload chunk.`)})}a($je,"uploadChunk");function eXe(t,e,A,r){return yn(this,void 0,void 0,function*(){let i=DE.getArchiveFileSizeInBytes(A),n=XQ(`caches/${e.toString()}`),s=NL.openSync(A,"r"),o=(0,DL.getUploadOptions)(r),c=DE.assertDefined("uploadConcurrency",o.uploadConcurrency),l=DE.assertDefined("uploadChunkSize",o.uploadChunkSize),d=[...new Array(c).keys()];cs.debug("Awaiting all uploads");let u=0;try{yield Promise.all(d.map(()=>yn(this,void 0,void 0,function*(){for(;u<i;){let p=Math.min(i-u,l),g=u,h=u+p-1;u+=l,yield $je(t,n,()=>NL.createReadStream(A,{fd:s,start:g,end:h,autoClose:!1}).on("error",m=>{throw new Error(`Cache upload failed because file read failed with ${m.message}`)}),g,h)}})))}finally{NL.closeSync(s)}})}a(eXe,"uploadFile");function tXe(t,e,A){return yn(this,void 0,void 0,function*(){let r={size:A};return yield(0,hd.retryTypedResponse)("commitCache",()=>yn(this,void 0,void 0,function*(){return t.postJson(XQ(`caches/${e.toString()}`),r)}))})}a(tXe,"commitCache");function AXe(t,e,A,r){return yn(this,void 0,void 0,function*(){if((0,DL.getUploadOptions)(r).useAzureSdk){if(!A)throw new Error("Azure Storage SDK can only be used when a signed URL is provided.");yield(0,Gje.uploadCacheArchiveSDK)(A,e,r)}else{let n=SL();cs.debug("Upload cache"),yield eXe(n,t,e,r),cs.debug("Commiting cache");let s=DE.getArchiveFileSizeInBytes(e);cs.info(`Cache Size: ~${Math.round(s/(1024*1024))} MB (${s} B)`);let o=yield tXe(n,t,s);if(!(0,hd.isSuccessStatusCode)(o.statusCode))throw new Error(`Cache service responded with ${o.statusCode} during commit cache.`);cs.info("Cache saved successfully")}})}a(AXe,"saveCache");Or.saveCache=AXe});var oN=E(SE=>{"use strict";Object.defineProperty(SE,"__esModule",{value:!0});SE.isJsonObject=SE.typeofJsonValue=void 0;function rXe(t){let e=typeof t;if(e=="object"){if(Array.isArray(t))return"array";if(t===null)return"null"}return e}a(rXe,"typeofJsonValue");SE.typeofJsonValue=rXe;function iXe(t){return t!==null&&typeof t=="object"&&!Array.isArray(t)}a(iXe,"isJsonObject");SE.isJsonObject=iXe});var lN=E(xE=>{"use strict";Object.defineProperty(xE,"__esModule",{value:!0});xE.base64encode=xE.base64decode=void 0;var Gc="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),cN=[];for(let t=0;t<Gc.length;t++)cN[Gc[t].charCodeAt(0)]=t;cN[45]=Gc.indexOf("+");cN[95]=Gc.indexOf("/");function nXe(t){let e=t.length*3/4;t[t.length-2]=="="?e-=2:t[t.length-1]=="="&&(e-=1);let A=new Uint8Array(e),r=0,i=0,n,s=0;for(let o=0;o<t.length;o++){if(n=cN[t.charCodeAt(o)],n===void 0)switch(t[o]){case"=":i=0;case`
|
||||
`:case"\r":case" ":case" ":continue;default:throw Error("invalid base64 string.")}switch(i){case 0:s=n,i=1;break;case 1:A[r++]=s<<2|(n&48)>>4,s=n,i=2;break;case 2:A[r++]=(s&15)<<4|(n&60)>>2,s=n,i=3;break;case 3:A[r++]=(s&3)<<6|n,i=0;break}}if(i==1)throw Error("invalid base64 string.");return A.subarray(0,r)}a(nXe,"base64decode");xE.base64decode=nXe;function sXe(t){let e="",A=0,r,i=0;for(let n=0;n<t.length;n++)switch(r=t[n],A){case 0:e+=Gc[r>>2],i=(r&3)<<4,A=1;break;case 1:e+=Gc[i|r>>4],i=(r&15)<<2,A=2;break;case 2:e+=Gc[i|r>>6],e+=Gc[r&63],A=0;break}return A&&(e+=Gc[i],e+="=",A==1&&(e+="=")),e}a(sXe,"base64encode");xE.base64encode=sXe});var dde=E(dN=>{"use strict";Object.defineProperty(dN,"__esModule",{value:!0});dN.utf8read=void 0;var xL=a(t=>String.fromCharCode.apply(String,t),"fromCharCodes");function aXe(t){if(t.length<1)return"";let e=0,A=[],r=[],i=0,n,s=t.length;for(;e<s;)n=t[e++],n<128?r[i++]=n:n>191&&n<224?r[i++]=(n&31)<<6|t[e++]&63:n>239&&n<365?(n=((n&7)<<18|(t[e++]&63)<<12|(t[e++]&63)<<6|t[e++]&63)-65536,r[i++]=55296+(n>>10),r[i++]=56320+(n&1023)):r[i++]=(n&15)<<12|(t[e++]&63)<<6|t[e++]&63,i>8191&&(A.push(xL(r)),i=0);return A.length?(i&&A.push(xL(r.slice(0,i))),A.join("")):xL(r.slice(0,i))}a(aXe,"utf8read");dN.utf8read=aXe});var ZQ=E(ko=>{"use strict";Object.defineProperty(ko,"__esModule",{value:!0});ko.WireType=ko.mergeBinaryOptions=ko.UnknownFieldHandler=void 0;var oXe;(function(t){t.symbol=Symbol.for("protobuf-ts/unknown"),t.onRead=(A,r,i,n,s)=>{(e(r)?r[t.symbol]:r[t.symbol]=[]).push({no:i,wireType:n,data:s})},t.onWrite=(A,r,i)=>{for(let{no:n,wireType:s,data:o}of t.list(r))i.tag(n,s).raw(o)},t.list=(A,r)=>{if(e(A)){let i=A[t.symbol];return r?i.filter(n=>n.no==r):i}return[]},t.last=(A,r)=>t.list(A,r).slice(-1)[0];let e=a(A=>A&&Array.isArray(A[t.symbol]),"is")})(oXe=ko.UnknownFieldHandler||(ko.UnknownFieldHandler={}));function cXe(t,e){return Object.assign(Object.assign({},t),e)}a(cXe,"mergeBinaryOptions");ko.mergeBinaryOptions=cXe;var lXe;(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"})(lXe=ko.WireType||(ko.WireType={}))});var pN=E(wn=>{"use strict";Object.defineProperty(wn,"__esModule",{value:!0});wn.varint32read=wn.varint32write=wn.int64toString=wn.int64fromString=wn.varint64write=wn.varint64read=void 0;function dXe(){let t=0,e=0;for(let r=0;r<28;r+=7){let i=this.buf[this.pos++];if(t|=(i&127)<<r,!(i&128))return this.assertBounds(),[t,e]}let A=this.buf[this.pos++];if(t|=(A&15)<<28,e=(A&112)>>4,!(A&128))return this.assertBounds(),[t,e];for(let r=3;r<=31;r+=7){let i=this.buf[this.pos++];if(e|=(i&127)<<r,!(i&128))return this.assertBounds(),[t,e]}throw new Error("invalid varint")}a(dXe,"varint64read");wn.varint64read=dXe;function uXe(t,e,A){for(let n=0;n<28;n=n+7){let s=t>>>n,o=!(!(s>>>7)&&e==0),c=(o?s|128:s)&255;if(A.push(c),!o)return}let r=t>>>28&15|(e&7)<<4,i=!!(e>>3);if(A.push((i?r|128:r)&255),!!i){for(let n=3;n<31;n=n+7){let s=e>>>n,o=!!(s>>>7),c=(o?s|128:s)&255;if(A.push(c),!o)return}A.push(e>>>31&1)}}a(uXe,"varint64write");wn.varint64write=uXe;var uN=65536*65536;function pXe(t){let e=t[0]=="-";e&&(t=t.slice(1));let A=1e6,r=0,i=0;function n(s,o){let c=Number(t.slice(s,o));i*=A,r=r*A+c,r>=uN&&(i=i+(r/uN|0),r=r%uN)}return a(n,"add1e6digit"),n(-24,-18),n(-18,-12),n(-12,-6),n(-6),[e,r,i]}a(pXe,"int64fromString");wn.int64fromString=pXe;function gXe(t,e){if(e>>>0<=2097151)return""+(uN*e+(t>>>0));let A=t&16777215,r=(t>>>24|e<<8)>>>0&16777215,i=e>>16&65535,n=A+r*6777216+i*6710656,s=r+i*8147497,o=i*2,c=1e7;n>=c&&(s+=Math.floor(n/c),n%=c),s>=c&&(o+=Math.floor(s/c),s%=c);function l(d,u){let p=d?String(d):"";return u?"0000000".slice(p.length)+p:p}return a(l,"decimalFrom1e7"),l(o,0)+l(s,o)+l(n,1)}a(gXe,"int64toString");wn.int64toString=gXe;function hXe(t,e){if(t>=0){for(;t>127;)e.push(t&127|128),t=t>>>7;e.push(t)}else{for(let A=0;A<9;A++)e.push(t&127|128),t=t>>7;e.push(1)}}a(hXe,"varint32write");wn.varint32write=hXe;function EXe(){let t=this.buf[this.pos++],e=t&127;if(!(t&128))return this.assertBounds(),e;if(t=this.buf[this.pos++],e|=(t&127)<<7,!(t&128))return this.assertBounds(),e;if(t=this.buf[this.pos++],e|=(t&127)<<14,!(t&128))return this.assertBounds(),e;if(t=this.buf[this.pos++],e|=(t&127)<<21,!(t&128))return this.assertBounds(),e;t=this.buf[this.pos++],e|=(t&15)<<28;for(let A=5;t&128&&A<10;A++)t=this.buf[this.pos++];if(t&128)throw new Error("invalid varint");return this.assertBounds(),e>>>0}a(EXe,"varint32read");wn.varint32read=EXe});var md=E(Ed=>{"use strict";Object.defineProperty(Ed,"__esModule",{value:!0});Ed.PbLong=Ed.PbULong=Ed.detectBi=void 0;var KQ=pN(),Jt;function ude(){let t=new DataView(new ArrayBuffer(8));Jt=globalThis.BigInt!==void 0&&typeof t.getBigInt64=="function"&&typeof t.getBigUint64=="function"&&typeof t.setBigInt64=="function"&&typeof t.setBigUint64=="function"?{MIN:BigInt("-9223372036854775808"),MAX:BigInt("9223372036854775807"),UMIN:BigInt("0"),UMA
Line truncated
|
||||
`)}};PN.RpcError=rU});var nU=E(HN=>{"use strict";Object.defineProperty(HN,"__esModule",{value:!0});HN.mergeRpcOptions=void 0;var Gde=tr();function _Ze(t,e){if(!e)return t;let A={};qN(t,A),qN(e,A);for(let r of Object.keys(e)){let i=e[r];switch(r){case"jsonOptions":A.jsonOptions=Gde.mergeJsonOptions(t.jsonOptions,A.jsonOptions);break;case"binaryOptions":A.binaryOptions=Gde.mergeBinaryOptions(t.binaryOptions,A.binaryOptions);break;case"meta":A.meta={},qN(t.meta,A.meta),qN(e.meta,A.meta);break;case"interceptors":A.interceptors=t.interceptors?t.interceptors.concat(i):i.concat();break}}return A}a(_Ze,"mergeRpcOptions");HN.mergeRpcOptions=_Ze;function qN(t,e){if(!t)return;let A=e;for(let[r,i]of Object.entries(t))i instanceof Date?A[r]=new Date(i.getTime()):Array.isArray(i)?A[r]=i.concat():A[r]=i}a(qN,"copy")});var aU=E(rp=>{"use strict";Object.defineProperty(rp,"__esModule",{value:!0});rp.Deferred=rp.DeferredState=void 0;var Uo;(function(t){t[t.PENDING=0]="PENDING",t[t.REJECTED=1]="REJECTED",t[t.RESOLVED=2]="RESOLVED"})(Uo=rp.DeferredState||(rp.DeferredState={}));var sU=class{static{a(this,"Deferred")}constructor(e=!0){this._state=Uo.PENDING,this._promise=new Promise((A,r)=>{this._resolve=A,this._reject=r}),e&&this._promise.catch(A=>{})}get state(){return this._state}get promise(){return this._promise}resolve(e){if(this.state!==Uo.PENDING)throw new Error(`cannot resolve ${Uo[this.state].toLowerCase()}`);this._resolve(e),this._state=Uo.RESOLVED}reject(e){if(this.state!==Uo.PENDING)throw new Error(`cannot reject ${Uo[this.state].toLowerCase()}`);this._reject(e),this._state=Uo.REJECTED}resolvePending(e){this._state===Uo.PENDING&&this.resolve(e)}rejectPending(e){this._state===Uo.PENDING&&this.reject(e)}};rp.Deferred=sU});var cU=E(YN=>{"use strict";Object.defineProperty(YN,"__esModule",{value:!0});YN.RpcOutputStreamController=void 0;var Jde=aU(),ip=tr(),oU=class{static{a(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,A){return A.push(e),()=>{let r=A.indexOf(e);r>=0&&A.splice(r,1)}}clearLis(){for(let e of Object.values(this._lis))e.splice(0,e.length)}get closed(){return this._closed!==!1}notifyNext(e,A,r){ip.assert((e?1:0)+(A?1:0)+(r?1:0)<=1,"only one emission at a time"),e&&this.notifyMessage(e),A&&this.notifyError(A),r&&this.notifyComplete()}notifyMessage(e){ip.assert(!this.closed,"stream is closed"),this.pushIt({value:e,done:!1}),this._lis.msg.forEach(A=>A(e)),this._lis.nxt.forEach(A=>A(e,void 0,!1))}notifyError(e){ip.assert(!this.closed,"stream is closed"),this._closed=e,this.pushIt(e),this._lis.err.forEach(A=>A(e)),this._lis.nxt.forEach(A=>A(void 0,e,!1)),this.clearLis()}notifyComplete(){ip.assert(!this.closed,"stream is closed"),this._closed=!0,this.pushIt({value:null,done:!0}),this._lis.cmp.forEach(e=>e()),this._lis.nxt.forEach(e=>e(void 0,void 0,!0)),this.clearLis()}[Symbol.asyncIterator](){return this._closed===!0?this.pushIt({value:null,done:!0}):this._closed!==!1&&this.pushIt(this._closed),{next:()=>{let e=this._itState;ip.assert(e,"bad state"),ip.assert(!e.p,"iterator contract broken");let A=e.q.shift();return A?"value"in A?Promise.resolve(A):Promise.reject(A):(e.p=new Jde.Deferred,e.p.promise)}}}pushIt(e){let A=this._itState;if(A.p){let r=A.p;ip.assert(r.state==Jde.DeferredState.PENDING,"iterator contract broken"),"value"in e?r.resolve(e):r.reject(e),delete A.p}else A.q.push(e)}};YN.RpcOutputStreamController=oU});var dU=E(ME=>{"use strict";var OZe=ME&&ME.__awaiter||function(t,e,A,r){function i(n){return n instanceof A?n:new A(function(s){s(n)})}return a(i,"adopt"),new(A||(A=Promise))(function(n,s){function o(d){try{l(r.next(d))}catch(u){s(u)}}a(o,"fulfilled");function c(d){try{l(r.throw(d))}catch(u){s(u)}}a(c,"rejected");function l(d){d.done?n(d.value):i(d.value).then(o,c)}a(l,"step"),l((r=r.apply(t,e||[])).next())})};Object.defineProperty(ME,"__esModule",{value:!0});ME.UnaryCall=void 0;var lU=class{static{a(this,"UnaryCall")}constructor(e,A,r,i,n,s,o){this.method=e,this.requestHeaders=A,this.request=r,this.headers=i,this.response=n,this.status=s,this.trailers=o}then(e,A){return this.promiseFinished().then(r=>e?Promise.resolve(e(r)):r,r=>A?Promise.resolve(A(r)):Promise.reject(r))}promiseFinished(){return OZe(this,void 0,void 0,function*(){let[e,A,r,i]=yield Promise.all([this.headers,this.response,this.status,this.trailers]);return{method:this.method,requestHeaders:this.requestHeaders,request:this.request,headers:e,response:A,status:r,trailers:i}})}};ME.UnaryCall=lU});var pU=E(_E=>{"use strict";var PZe=_E&&_E.__awaiter||function(t,e,A,r){function i(n){return n instanceof A?n:new A(function(s){s(n)})}return a(i,"adopt"),new(A||(A=Promise))(function(n,s){function o(d){try{l(r.next(d))}catch(u){s(u)}}a(o,"fulfilled");function c(d){try{l
Line truncated
|
||||
`));let r=yield UU(A,"create");yield TU(r,t)})}a(LKe,"createTar");yi.createTar=LKe});var pue=E(cr=>{"use strict";var UKe=cr&&cr.__createBinding||(Object.create?function(t,e,A,r){r===void 0&&(r=A);var i=Object.getOwnPropertyDescriptor(e,A);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[A]}}),Object.defineProperty(t,r,i)}:function(t,e,A,r){r===void 0&&(r=A),t[r]=e[A]}),TKe=cr&&cr.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),uB=cr&&cr.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var A in t)A!=="default"&&Object.prototype.hasOwnProperty.call(t,A)&&UKe(e,t,A);return TKe(e,t),e},$E=cr&&cr.__awaiter||function(t,e,A,r){function i(n){return n instanceof A?n:new A(function(s){s(n)})}return a(i,"adopt"),new(A||(A=Promise))(function(n,s){function o(d){try{l(r.next(d))}catch(u){s(u)}}a(o,"fulfilled");function c(d){try{l(r.throw(d))}catch(u){s(u)}}a(c,"rejected");function l(d){d.done?n(d.value):i(d.value).then(o,c)}a(l,"step"),l((r=r.apply(t,e||[])).next())})};Object.defineProperty(cr,"__esModule",{value:!0});cr.saveCache=cr.restoreCache=cr.isFeatureAvailable=cr.ReserveCacheError=cr.ValidationError=void 0;var Me=uB(hi()),ZN=uB(require("path")),QA=uB(Dh()),KE=uB(lde()),due=uB(aue()),KN=nN(),Qd=lue(),MKe=Nh(),ia=class t extends Error{static{a(this,"ValidationError")}constructor(e){super(e),this.name="ValidationError",Object.setPrototypeOf(this,t.prototype)}};cr.ValidationError=ia;var np=class t extends Error{static{a(this,"ReserveCacheError")}constructor(e){super(e),this.name="ReserveCacheError",Object.setPrototypeOf(this,t.prototype)}};cr.ReserveCacheError=np;function uue(t){if(!t||t.length===0)throw new ia("Path Validation Error: At least one directory or file path is required")}a(uue,"checkPaths");function MU(t){if(t.length>512)throw new ia(`Key Validation Error: ${t} cannot be larger than 512 characters.`);if(!/^[^,]*$/.test(t))throw new ia(`Key Validation Error: ${t} cannot contain commas.`)}a(MU,"checkKey");function _Ke(){return!!process.env.ACTIONS_CACHE_URL}a(_Ke,"isFeatureAvailable");cr.isFeatureAvailable=_Ke;function OKe(t,e,A,r,i=!1){return $E(this,void 0,void 0,function*(){let n=(0,KN.getCacheServiceVersion)();switch(Me.debug(`Cache service version: ${n}`),uue(t),n){case"v2":return yield qKe(t,e,A,r,i);case"v1":default:return yield PKe(t,e,A,r,i)}})}a(OKe,"restoreCache");cr.restoreCache=OKe;function PKe(t,e,A,r,i=!1){return $E(this,void 0,void 0,function*(){A=A||[];let n=[e,...A];if(Me.debug("Resolved Keys:"),Me.debug(JSON.stringify(n)),n.length>10)throw new ia("Key Validation Error: Keys are limited to a maximum of 10.");for(let c of n)MU(c);let s=yield QA.getCompressionMethod(),o="";try{let c=yield KE.getCacheEntry(n,t,{compressionMethod:s,enableCrossOsArchive:i});if(!c?.archiveLocation)return;if(r?.lookupOnly)return Me.info("Lookup only - skipping download"),c.cacheKey;o=ZN.join(yield QA.createTempDirectory(),QA.getCacheFileName(s)),Me.debug(`Archive Path: ${o}`),yield KE.downloadCache(c.archiveLocation,o,r),Me.isDebug()&&(yield(0,Qd.listTar)(o,s));let l=QA.getArchiveFileSizeInBytes(o);return Me.info(`Cache Size: ~${Math.round(l/(1024*1024))} MB (${l} B)`),yield(0,Qd.extractTar)(o,s),Me.info("Cache restored successfully"),c.cacheKey}catch(c){if(c.name===ia.name)throw c;Me.warning(`Failed to restore: ${c.message}`)}finally{try{yield QA.unlinkFile(o)}catch(c){Me.debug(`Failed to delete archive: ${c}`)}}})}a(PKe,"restoreCacheV1");function qKe(t,e,A,r,i=!1){return $E(this,void 0,void 0,function*(){r=Object.assign(Object.assign({},r),{useAzureSdk:!0}),A=A||[];let n=[e,...A];if(Me.debug("Resolved Keys:"),Me.debug(JSON.stringify(n)),n.length>10)throw new ia("Key Validation Error: Keys are limited to a maximum of 10.");for(let o of n)MU(o);let s="";try{let o=due.internalCacheTwirpClient(),c=yield QA.getCompressionMethod(),l={key:e,restoreKeys:A,version:QA.getCacheVersion(t,c,i)},d=yield o.GetCacheEntryDownloadURL(l);if(!d.ok){Me.debug(`Cache not found for version ${l.version} of keys: ${n.join(", ")}`);return}if(Me.info(`Cache hit for: ${l.key}`),r?.lookupOnly)return Me.info("Lookup only - skipping download"),d.matchedKey;s=ZN.join(yield QA.createTempDirectory(),QA.getCacheFileName(c)),Me.debug(`Archive path: ${s}`),Me.debug(`Starting download of archive to: ${s}`),yield KE.downloadCache(d.signedDownloadUrl,s,r);let u=QA.getArchiveFileSizeInBytes(s);return Me.info(`Cache Size: ~${Math.round(u/(1024*1024))} MB (${u} B)`),Me.isDebug()&&(yield(0,Qd.listTar)(s,c)),yield(0,Qd.extractTar)(s,c),Me.info("Cache restored successfully"),d.matchedKey}catch(o){if(o.name===ia.name)throw o;Me.warning(`Failed to restore: ${o.message}`)}finally{try{s&&(yield QA.unlinkFile(s))}catch(o){Me.debug(`Failed to delete archive: ${o}`)}}})}a(qKe,"restoreCacheV2");function HKe(t,e,A,r=!1){return $E(this,void 0,void 0,function*(){let i=(0,KN.getCacheServiceVersion)(
Line truncated
|
||||
\r
|
||||
`),Aet=/\r\n/g,ret=/^([^:]+):[ \t]?([\x00-\xFF]+)?$/;function rm(t){Epe.call(this),t=t||{};let e=this;this.nread=0,this.maxed=!1,this.npairs=0,this.maxHeaderPairs=hpe(t,"maxHeaderPairs",2e3),this.maxHeaderSize=hpe(t,"maxHeaderSize",80*1024),this.buffer="",this.header={},this.finished=!1,this.ss=new eet(tet),this.ss.on("info",function(A,r,i,n){r&&!e.maxed&&(e.nread+n-i>=e.maxHeaderSize?(n=e.maxHeaderSize-e.nread+i,e.nread=e.maxHeaderSize,e.maxed=!0):e.nread+=n-i,e.buffer+=r.toString("binary",i,n)),A&&e._finish()})}a(rm,"HeaderParser");$$e(rm,Epe);rm.prototype.push=function(t){let e=this.ss.push(t);if(this.finished)return e};rm.prototype.reset=function(){this.finished=!1,this.buffer="",this.header={},this.ss.reset()};rm.prototype._finish=function(){this.buffer&&this._parseHeader(),this.ss.matches=this.ss.maxMatches;let t=this.header;this.header={},this.buffer="",this.finished=!0,this.nread=this.npairs=0,this.maxed=!1,this.emit("header",t)};rm.prototype._parseHeader=function(){if(this.npairs===this.maxHeaderPairs)return;let t=this.buffer.split(Aet),e=t.length,A,r;for(var i=0;i<e;++i){if(t[i].length===0)continue;if((t[i][0]===" "||t[i][0]===" ")&&r){this.header[r][this.header[r].length-1]+=t[i];continue}let n=t[i].indexOf(":");if(n===-1||n===0)return;if(A=ret.exec(t[i]),r=A[1].toLowerCase(),this.header[r]=this.header[r]||[],this.header[r].push(A[2]||""),++this.npairs===this.maxHeaderPairs)break}};mpe.exports=rm});var ET=E((uRt,Qpe)=>{"use strict";var hT=require("node:stream").Writable,iet=require("node:util").inherits,net=pT(),fpe=ppe(),set=Cpe(),aet=45,oet=Buffer.from("-"),cet=Buffer.from(`\r
|
||||
`),det=a(function(){},"EMPTY_FN");function Pa(t){if(!(this instanceof Pa))return new Pa(t);if(hT.call(this,t),!t||!t.headerFirst&&typeof t.boundary!="string")throw new TypeError("Boundary required");typeof t.boundary=="string"?this.setBoundary(t.boundary):this._bparser=void 0,this._headerFirst=t.headerFirst,this._dashes=0,this._parts=0,this._finished=!1,this._realFinish=!1,this._isPreamble=!0,this._justMatched=!1,this._firstWrite=!0,this._inHeader=!0,this._part=void 0,this._cb=void 0,this._ignoreData=!1,this._partOpts={highWaterMark:t.partHwm},this._pause=!1;let e=this;this._hparser=new set(t),this._hparser.on("header",function(A){e._inHeader=!1,e._part.emit("header",A)})}a(Pa,"Dicer");iet(Pa,hT);Pa.prototype.emit=function(t){if(t==="finish"&&!this._realFinish){if(!this._finished){let e=this;process.nextTick(function(){if(e.emit("error",new Error("Unexpected end of multipart data")),e._part&&!e._ignoreData){let A=e._isPreamble?"Preamble":"Part";e._part.emit("error",new Error(A+" terminated early due to unexpected end of multipart data")),e._part.push(null),process.nextTick(function(){e._realFinish=!0,e.emit("finish"),e._realFinish=!1});return}e._realFinish=!0,e.emit("finish"),e._realFinish=!1})}}else hT.prototype.emit.apply(this,arguments)};Pa.prototype._write=function(t,e,A){if(!this._hparser&&!this._bparser)return A();if(this._headerFirst&&this._isPreamble){this._part||(this._part=new fpe(this._partOpts),this._events.preamble?this.emit("preamble",this._part):this._ignore());let r=this._hparser.push(t);if(!this._inHeader&&r!==void 0&&r<t.length)t=t.slice(r);else return A()}this._firstWrite&&(this._bparser.push(cet),this._firstWrite=!1),this._bparser.push(t),this._pause?this._cb=A:A()};Pa.prototype.reset=function(){this._part=void 0,this._bparser=void 0,this._hparser=void 0};Pa.prototype.setBoundary=function(t){let e=this;this._bparser=new net(`\r
|
||||
--`+t),this._bparser.on("info",function(A,r,i,n){e._oninfo(A,r,i,n)})};Pa.prototype._ignore=function(){this._part&&!this._ignoreData&&(this._ignoreData=!0,this._part.on("error",det),this._part.resume())};Pa.prototype._oninfo=function(t,e,A,r){let i,n=this,s=0,o,c=!0;if(!this._part&&this._justMatched&&e){for(;this._dashes<2&&A+s<r;)if(e[A+s]===aet)++s,++this._dashes;else{this._dashes&&(i=oet),this._dashes=0;break}if(this._dashes===2&&(A+s<r&&this._events.trailer&&this.emit("trailer",e.slice(A+s,r)),this.reset(),this._finished=!0,n._parts===0&&(n._realFinish=!0,n.emit("finish"),n._realFinish=!1)),this._dashes)return}this._justMatched&&(this._justMatched=!1),this._part||(this._part=new fpe(this._partOpts),this._part._read=function(l){n._unpause()},this._isPreamble&&this._events.preamble?this.emit("preamble",this._part):this._isPreamble!==!0&&this._events.part?this.emit("part",this._part):this._ignore(),this._isPreamble||(this._inHeader=!0)),e&&A<r&&!this._ignoreData&&(this._isPreamble||!this._inHeader?(i&&(c=this._part.push(i)),c=this._part.push(e.slice(A,r)),c||(this._pause=!0)):!this._isPreamble&&this._inHeader&&(i&&this._hparser.push(i),o=this._hparser.push(e.slice(A,r)),!this._inHeader&&o!==void 0&&o<r&&this._oninfo(!1,e,A+o,r))),t&&(this._hparser.reset(),this._isPreamble?this._isPreamble=!1:A!==r&&(++this._parts,this._part.on("end",function(){--n._parts===0&&(n._finished?(n._realFinish=!0,n.emit("finish"),n._realFinish=!1):n._unpause())})),this._part.push(null),this._part=void 0,this._ignoreData=!1,this._justMatched=!0,this._dashes=0)};Pa.prototype._unpause=function(){if(this._pause&&(this._pause=!1,this._cb)){let t=this._cb;this._cb=void 0,t()}};Qpe.exports=Pa});var cR=E((gRt,Ipe)=>{"use strict";var Bpe=new TextDecoder("utf-8"),oR=new Map([["utf-8",Bpe],["utf8",Bpe]]);function uet(t,e,A){if(t)if(oR.has(A))try{return oR.get(A).decode(Buffer.from(t,e))}catch{}else try{return oR.set(A,new TextDecoder(A)),oR.get(A).decode(Buffer.from(t,e))}catch{}return t}a(uet,"decodeText");Ipe.exports=uet});var mT=E((ERt,bpe)=>{"use strict";var lR=cR(),ype=/%([a-fA-F0-9]{2})/g;function wpe(t,e){return String.fromCharCode(parseInt(e,16))}a(wpe,"encodedReplacer");function pet(t){let e=[],A="key",r="",i=!1,n=!1,s=0,o="";for(var c=0,l=t.length;c<l;++c){let d=t[c];if(d==="\\"&&i)if(n)n=!1;else{n=!0;continue}else if(d==='"')if(n)n=!1;else{i?(i=!1,A="key"):i=!0;continue}else if(n&&i&&(o+="\\"),n=!1,(A==="charset"||A==="lang")&&d==="'"){A==="charset"?(A="lang",r=o.substring(1)):A="value",o="";continue}else if(A==="key"&&(d==="*"||d==="=")&&e.length){d==="*"?A="charset":A="value",e[s]=[o,void 0],o="";continue}else if(!i&&d===";"){A="key",r?(o.length&&(o=lR(o.replace(ype,wpe),"binary",r)),r=""):o.length&&(o=lR(o,"binary","utf8")),e[s]===void 0?e[s]=o:e[s][1]=o,o="",++s;continue}else if(!i&&(d===" "||d===" "))continue;o+=d}return r&&o.length?o=lR(o.replace(ype,wpe),"binary",r):o&&(o=lR(o,"binary","utf8")),e[s]===void 0?o&&(e[s]=o):e[s][1]=o,e}a(pet,"parseParams");bpe.exports=pet});var Rpe=E((CRt,Npe)=>{"use strict";Npe.exports=a(function(e){if(typeof e!="string")return"";for(var A=e.length-1;A>=0;--A)switch(e.charCodeAt(A)){case 47:case 92:return e=e.slice(A+1),e===".."||e==="."?"":e}return e===".."||e==="."?"":e},"basename")});var vpe=E((QRt,xpe)=>{"use strict";var{Readable:Spe}=require("node:stream"),{inherits:get}=require("node:util"),het=ET(),Dpe=mT(),Eet=cR(),met=Rpe(),ap=aR(),Cet=/^boundary$/i,fet=/^form-data$/i,Qet=/^charset$/i,Bet=/^filename$/i,Iet=/^name$/i;dR.detect=/^multipart\/form-data/i;function dR(t,e){let A,r,i=this,n,s=e.limits,o=e.isPartAFile||((v,x,L)=>x==="application/octet-stream"||L!==void 0),c=e.parsedConType||[],l=e.defCharset||"utf8",d=e.preservePath,u={highWaterMark:e.fileHwm};for(A=0,r=c.length;A<r;++A)if(Array.isArray(c[A])&&Cet.test(c[A][0])){n=c[A][1];break}function p(){N===0&&k&&!t._done&&(k=!1,i.end())}if(a(p,"checkFinished"),typeof n!="string")throw new Error("Multipart: Boundary not found");let g=ap(s,"fieldSize",1*1024*1024),h=ap(s,"fileSize",1/0),m=ap(s,"files",1/0),f=ap(s,"fields",1/0),B=ap(s,"parts",1/0),b=ap(s,"headerPairs",2e3),I=ap(s,"headerSize",80*1024),C=0,Q=0,N=0,S,w,k=!1;this._needDrain=!1,this._pause=!1,this._cb=void 0,this._nparts=0,this._boy=t;let D={boundary:n,maxHeaderPairs:b,maxHeaderSize:I,partHwm:u.highWaterMark,highWaterMark:e.highWaterMark};this.parser=new het(D),this.parser.on("drain",function(){if(i._needDrain=!1,i._cb&&!i._pause){let v=i._cb;i._cb=void 0,v()}}).on("part",a(function v(x){if(++i._nparts>B)return i.parser.removeListener("part",v),i.parser.on("part",im),t.hitPartsLimit=!0,t.emit("partsLimit"),im(x);if(w){let L=w;L.emit("end"),L.removeAllListeners("end")}x.on("header",function(L){let q,le,_,rt,Se,vt,ht=0;if(L["content-type"]&&(_=Dpe(L["content-type"][0]),_[0])){for(q=_[0].toLowerCase(),A=0,r=_.length;A<r;++A)if(Qet.test(_[A][0])){rt=_[A][1].toLowerCase();break}}if(q===void 0&&(q="text/plain"),rt===void 0&&(rt=l),L["content-disposition"]){if(_=Dpe(L["content-dispo
Line truncated
|
||||
`))}a(Ype,"isValidHeaderValue");function utt(t,e){let{headersList:A}=e,r=(A.get("referrer-policy")??"").split(","),i="";if(r.length>0)for(let n=r.length;n!==0;n--){let s=r[n-1].trim();if($et.includes(s)){i=s;break}}i!==""&&(t.referrerPolicy=i)}a(utt,"setRequestReferrerPolicyOnRedirect");function ptt(){return"allowed"}a(ptt,"crossOriginResourcePolicyCheck");function gtt(){return"success"}a(gtt,"corsCheck");function htt(){return"success"}a(htt,"TAOCheck");function Ett(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e)}a(Ett,"appendFetchMetadata");function mtt(t){let e=t.origin;if(t.responseTainting==="cors"||t.mode==="websocket")e&&t.headersList.append("origin",e);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&&bT(t.origin)&&!bT(BB(t))&&(e=null);break;case"same-origin":pR(t,BB(t))||(e=null);break;default:}e&&t.headersList.append("origin",e)}}a(mtt,"appendRequestOriginHeader");function Ctt(t){return ttt.now()}a(Ctt,"coarsenedSharedCurrentTime");function ftt(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}}a(ftt,"createOpaqueTimingInfo");function Qtt(){return{referrerPolicy:"strict-origin-when-cross-origin"}}a(Qtt,"makePolicyContainer");function Btt(t){return{referrerPolicy:t.referrerPolicy}}a(Btt,"clonePolicyContainer");function Itt(t){let e=t.referrerPolicy;om(e);let A=null;if(t.referrer==="client"){let o=ett();if(!o||o.origin==="null")return"no-referrer";A=new URL(o)}else t.referrer instanceof URL&&(A=t.referrer);let r=yT(A),i=yT(A,!0);r.toString().length>4096&&(r=i);let n=pR(t,r),s=fB(r)&&!fB(t.url);switch(e){case"origin":return i??yT(A,!0);case"unsafe-url":return r;case"same-origin":return n?i:"no-referrer";case"origin-when-cross-origin":return n?r:i;case"strict-origin-when-cross-origin":{let o=BB(t);return pR(r,o)?r:fB(r)&&!fB(o)?"no-referrer":i}case"strict-origin":case"no-referrer-when-downgrade":default:return s?"no-referrer":i}}a(Itt,"determineRequestsReferrer");function yT(t,e){return om(t instanceof URL),t.protocol==="file:"||t.protocol==="about:"||t.protocol==="blank:"?"no-referrer":(t.username="",t.password="",t.hash="",e&&(t.pathname="",t.search=""),t)}a(yT,"stripURLForReferrer");function fB(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(A){if(A==null||A==="null")return!1;let r=new URL(A);return!!(r.protocol==="https:"||r.protocol==="wss:"||/^127(?:\.[0-9]+){0,2}\.[0-9]+$|^\[(?:0*:)*?:?0*1\]$/.test(r.hostname)||r.hostname==="localhost"||r.hostname.includes("localhost.")||r.hostname.endsWith(".localhost"))}}a(fB,"isURLPotentiallyTrustworthy");function ytt(t,e){if(QB===void 0)return!0;let A=btt(e);if(A==="no metadata"||A.length===0)return!0;let r=A.sort((s,o)=>o.algo.localeCompare(s.algo)),i=r[0].algo,n=r.filter(s=>s.algo===i);for(let s of n){let o=s.algo,c=s.hash;c.endsWith("==")&&(c=c.slice(0,-2));let l=QB.createHash(o).update(t).digest("base64");if(l.endsWith("==")&&(l=l.slice(0,-2)),l===c)return!0;let d=QB.createHash(o).update(t).digest("base64url");if(d.endsWith("==")&&(d=d.slice(0,-2)),d===c)return!0}return!1}a(ytt,"bytesMatch");var wtt=/((?<algo>sha256|sha384|sha512)-(?<hash>[A-z0-9+/]{1}.*={0,2}))( +[\x21-\x7e]?)?/i;function btt(t){let e=[],A=!0,r=QB.getHashes();for(let i of t.split(" ")){A=!1;let n=wtt.exec(i);if(n===null||n.groups===void 0)continue;let s=n.groups.algo;r.includes(s.toLowerCase())&&e.push(n.groups)}return A===!0?"no metadata":e}a(btt,"parseMetadata");function Ntt(t){}a(Ntt,"tryUpgradeRequestToAPotentiallyTrustworthyURL");function pR(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}a(pR,"sameOrigin");function Rtt(){let t,e;return{promise:new Promise((r,i)=>{t=r,e=i}),resolve:t,reject:e}}a(Rtt,"createDeferredPromise");function Dtt(t){return t.controller.state==="aborted"}a(Dtt,"isAborted");function Stt(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}a(Stt,"isCancelled");function xtt(t){return/^(DELETE|GET|HEAD|OPTIONS|POST|PUT)$/i.test(t)?t.toUpperCase():t}a(xtt,"normalizeMethod");function vtt(t){let e=JSON.stringify(t);if(e===void 0)throw new TypeError("Value is not JSON serializable");return om(typeof e=="string"),e}a(vtt,"serializeJavascriptValueToJSONString");var ktt=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function Ftt(t,e,A){let r={index:0,kind:A,target:t},i={next(){if(Object.getPrototypeOf(this)!==i)throw new TypeError(`'next' called on an object that does not implement interface ${e} Iterator.`);let{index:n,kind:s,target:o}=r,c=o(),l=c.le
Line truncated
|
||||
`||t===" "||t===" "}a(Xpe,"isHTTPWhiteSpace");function NT(t,e=!0,A=!0){let r=0,i=t.length-1;if(e)for(;r<t.length&&Xpe(t[r]);r++);if(A)for(;i>0&&Xpe(t[i]);i--);return t.slice(r,i+1)}a(NT,"removeHTTPWhitespace");function Zpe(t){return t==="\r"||t===`
|
||||
`||t===" "||t==="\f"||t===" "}a(Zpe,"isASCIIWhitespace");function $tt(t,e=!0,A=!0){let r=0,i=t.length-1;if(e)for(;r<t.length&&Zpe(t[r]);r++);if(A)for(;i>0&&Zpe(t[i]);i--);return t.slice(r,i+1)}a($tt,"removeASCIIWhitespace");tge.exports={dataURLProcessor:jtt,URLSerializer:Kpe,collectASequenceOfCodePoints:ER,collectASequenceOfCodePointsFast:cm,stringPercentDecode:$pe,parseMIMEType:RT,collectAnHTTPQuotedString:ege,serializeAMimeType:Ktt}});var mR=E((_Rt,sge)=>{"use strict";var{Blob:ige,File:Age}=require("buffer"),{types:DT}=require("util"),{kState:ds}=zc(),{isBlobLike:nge}=aa(),{webidl:xt}=Yi(),{parseMIMEType:eAt,serializeAMimeType:tAt}=qa(),{kEnumerableProperty:rge}=gt(),IB=class t extends ige{static{a(this,"File")}constructor(e,A,r={}){xt.argumentLengthCheck(arguments,2,{header:"File constructor"}),e=xt.converters["sequence<BlobPart>"](e),A=xt.converters.USVString(A),r=xt.converters.FilePropertyBag(r);let i=A,n=r.type,s;e:{if(n){if(n=eAt(n),n==="failure"){n="";break e}n=tAt(n).toLowerCase()}s=r.lastModified}super(AAt(e,r),{type:n}),this[ds]={name:i,lastModified:s,type:n}}get name(){return xt.brandCheck(this,t),this[ds].name}get lastModified(){return xt.brandCheck(this,t),this[ds].lastModified}get type(){return xt.brandCheck(this,t),this[ds].type}},ST=class t{static{a(this,"FileLike")}constructor(e,A,r={}){let i=A,n=r.type,s=r.lastModified??Date.now();this[ds]={blobLike:e,name:i,type:n,lastModified:s}}stream(...e){return xt.brandCheck(this,t),this[ds].blobLike.stream(...e)}arrayBuffer(...e){return xt.brandCheck(this,t),this[ds].blobLike.arrayBuffer(...e)}slice(...e){return xt.brandCheck(this,t),this[ds].blobLike.slice(...e)}text(...e){return xt.brandCheck(this,t),this[ds].blobLike.text(...e)}get size(){return xt.brandCheck(this,t),this[ds].blobLike.size}get type(){return xt.brandCheck(this,t),this[ds].blobLike.type}get name(){return xt.brandCheck(this,t),this[ds].name}get lastModified(){return xt.brandCheck(this,t),this[ds].lastModified}get[Symbol.toStringTag](){return"File"}};Object.defineProperties(IB.prototype,{[Symbol.toStringTag]:{value:"File",configurable:!0},name:rge,lastModified:rge});xt.converters.Blob=xt.interfaceConverter(ige);xt.converters.BlobPart=function(t,e){if(xt.util.Type(t)==="Object"){if(nge(t))return xt.converters.Blob(t,{strict:!1});if(ArrayBuffer.isView(t)||DT.isAnyArrayBuffer(t))return xt.converters.BufferSource(t,e)}return xt.converters.USVString(t,e)};xt.converters["sequence<BlobPart>"]=xt.sequenceConverter(xt.converters.BlobPart);xt.converters.FilePropertyBag=xt.dictionaryConverter([{key:"lastModified",converter:xt.converters["long long"],get defaultValue(){return Date.now()}},{key:"type",converter:xt.converters.DOMString,defaultValue:""},{key:"endings",converter:t=>(t=xt.converters.DOMString(t),t=t.toLowerCase(),t!=="native"&&(t="transparent"),t),defaultValue:"transparent"}]);function AAt(t,e){let A=[];for(let r of t)if(typeof r=="string"){let i=r;e.endings==="native"&&(i=rAt(i)),A.push(new TextEncoder().encode(i))}else DT.isAnyArrayBuffer(r)||DT.isTypedArray(r)?r.buffer?A.push(new Uint8Array(r.buffer,r.byteOffset,r.byteLength)):A.push(new Uint8Array(r)):nge(r)&&A.push(r);return A}a(AAt,"processBlobParts");function rAt(t){let e=`
|
||||
`;return process.platform==="win32"&&(e=`\r
|
||||
`),t.replace(/\r?\n/g,e)}a(rAt,"convertLineEndingsNative");function iAt(t){return Age&&t instanceof Age||t instanceof IB||t&&(typeof t.stream=="function"||typeof t.arrayBuffer=="function")&&t[Symbol.toStringTag]==="File"}a(iAt,"isFileLike");sge.exports={File:IB,FileLike:ST,isFileLike:iAt}});var fR=E((PRt,dge)=>{"use strict";var{isBlobLike:CR,toUSVString:nAt,makeIterator:xT}=aa(),{kState:wi}=zc(),{File:lge,FileLike:age,isFileLike:sAt}=mR(),{webidl:Ut}=Yi(),{Blob:aAt,File:vT}=require("buffer"),oge=vT??lge,lm=class t{static{a(this,"FormData")}constructor(e){if(e!==void 0)throw Ut.errors.conversionFailed({prefix:"FormData constructor",argument:"Argument 1",types:["undefined"]});this[wi]=[]}append(e,A,r=void 0){if(Ut.brandCheck(this,t),Ut.argumentLengthCheck(arguments,2,{header:"FormData.append"}),arguments.length===3&&!CR(A))throw new TypeError("Failed to execute 'append' on 'FormData': parameter 2 is not of type 'Blob'");e=Ut.converters.USVString(e),A=CR(A)?Ut.converters.Blob(A,{strict:!1}):Ut.converters.USVString(A),r=arguments.length===3?Ut.converters.USVString(r):void 0;let i=cge(e,A,r);this[wi].push(i)}delete(e){Ut.brandCheck(this,t),Ut.argumentLengthCheck(arguments,1,{header:"FormData.delete"}),e=Ut.converters.USVString(e),this[wi]=this[wi].filter(A=>A.name!==e)}get(e){Ut.brandCheck(this,t),Ut.argumentLengthCheck(arguments,1,{header:"FormData.get"}),e=Ut.converters.USVString(e);let A=this[wi].findIndex(r=>r.name===e);return A===-1?null:this[wi][A].value}getAll(e){return Ut.brandCheck(this,t),Ut.argumentLengthCheck(arguments,1,{header:"FormData.getAll"}),e=Ut.converters.USVString(e),this[wi].filter(A=>A.name===e).map(A=>A.value)}has(e){return Ut.brandCheck(this,t),Ut.argumentLengthCheck(arguments,1,{header:"FormData.has"}),e=Ut.converters.USVString(e),this[wi].findIndex(A=>A.name===e)!==-1}set(e,A,r=void 0){if(Ut.brandCheck(this,t),Ut.argumentLengthCheck(arguments,2,{header:"FormData.set"}),arguments.length===3&&!CR(A))throw new TypeError("Failed to execute 'set' on 'FormData': parameter 2 is not of type 'Blob'");e=Ut.converters.USVString(e),A=CR(A)?Ut.converters.Blob(A,{strict:!1}):Ut.converters.USVString(A),r=arguments.length===3?nAt(r):void 0;let i=cge(e,A,r),n=this[wi].findIndex(s=>s.name===e);n!==-1?this[wi]=[...this[wi].slice(0,n),i,...this[wi].slice(n+1).filter(s=>s.name!==e)]:this[wi].push(i)}entries(){return Ut.brandCheck(this,t),xT(()=>this[wi].map(e=>[e.name,e.value]),"FormData","key+value")}keys(){return Ut.brandCheck(this,t),xT(()=>this[wi].map(e=>[e.name,e.value]),"FormData","key")}values(){return Ut.brandCheck(this,t),xT(()=>this[wi].map(e=>[e.name,e.value]),"FormData","value")}forEach(e,A=globalThis){if(Ut.brandCheck(this,t),Ut.argumentLengthCheck(arguments,1,{header:"FormData.forEach"}),typeof e!="function")throw new TypeError("Failed to execute 'forEach' on 'FormData': parameter 1 is not of type 'Function'.");for(let[r,i]of this)e.apply(A,[i,r,this])}};lm.prototype[Symbol.iterator]=lm.prototype.entries;Object.defineProperties(lm.prototype,{[Symbol.toStringTag]:{value:"FormData",configurable:!0}});function cge(t,e,A){if(t=Buffer.from(t).toString("utf8"),typeof e=="string")e=Buffer.from(e).toString("utf8");else if(sAt(e)||(e=e instanceof aAt?new oge([e],"blob",{type:e.type}):new age(e,"blob",{type:e.type})),A!==void 0){let r={type:e.type,lastModified:e.lastModified};e=vT&&e instanceof vT||e instanceof lge?new oge([e],A,r):new age(e,A,r)}return{name:t,value:e}}a(cge,"makeEntry");dge.exports={FormData:lm}});var yB=E((HRt,Qge)=>{"use strict";var oAt=_pe(),dm=gt(),{ReadableStreamFrom:cAt,isBlobLike:uge,isReadableStreamLike:lAt,readableStreamClose:dAt,createDeferredPromise:uAt,fullyReadBody:pAt}=aa(),{FormData:pge}=fR(),{kState:Xc}=zc(),{webidl:kT}=Yi(),{DOMException:Ege,structuredClone:gAt}=bd(),{Blob:hAt,File:EAt}=require("buffer"),{kBodyUsed:mAt}=BA(),FT=require("assert"),{isErrored:CAt}=gt(),{isUint8Array:mge,isArrayBuffer:fAt}=require("util/types"),{File:QAt}=mR(),{parseMIMEType:BAt,serializeAMimeType:IAt}=qa(),jc=globalThis.ReadableStream,gge=EAt??QAt;function Cge(t,e=!1){jc||(jc=require("stream/web").ReadableStream);let A=null;t instanceof jc?A=t:uge(t)?A=t.stream():A=new jc({async pull(c){c.enqueue(typeof i=="string"?new TextEncoder().encode(i):i),queueMicrotask(()=>dAt(c))},start(){},type:void 0}),FT(lAt(A));let r=null,i=null,n=null,s=null;if(typeof t=="string")i=t,s="text/plain;charset=UTF-8";else if(t instanceof URLSearchParams)i=t.toString(),s="application/x-www-form-urlencoded;charset=UTF-8";else if(fAt(t))i=new Uint8Array(t.slice());else if(ArrayBuffer.isView(t))i=new Uint8Array(t.buffer.slice(t.byteOffset,t.byteOffset+t.byteLength));else if(dm.isFormDataLike(t)){let c=`----formdata-undici-0${`${Math.floor(Math.random()*1e11)}`.padStart(11,"0")}`,l=`--${c}\r
|
||||
Content-Disposition: form-data`;let d=a(B=>B.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22"),"escape"),u=a(B=>B.replace(/\r?\n|\r/g,`\r
|
||||
`),"normalizeLinefeeds"),p=new TextEncoder,g=[],h=new Uint8Array([13,10]);n=0;let m=!1;for(let[B,b]of t)if(typeof b=="string"){let I=p.encode(l+`; name="${d(u(B))}"\r
|
||||
\r
|
||||
${u(b)}\r
|
||||
`);g.push(I),n+=I.byteLength}else{let I=p.encode(`${l}; name="${d(u(B))}"`+(b.name?`; filename="${d(b.name)}"`:"")+`\r
|
||||
Content-Type: ${b.type||"application/octet-stream"}\r
|
||||
\r
|
||||
`);g.push(I,b,h),typeof b.size=="number"?n+=I.byteLength+b.size+h.byteLength:m=!0}let f=p.encode(`--${c}--`);g.push(f),n+=f.byteLength,m&&(n=null),i=t,r=a(async function*(){for(let B of g)B.stream?yield*B.stream():yield B},"action"),s="multipart/form-data; boundary="+c}else if(uge(t))i=t,n=t.size,t.type&&(s=t.type);else if(typeof t[Symbol.asyncIterator]=="function"){if(e)throw new TypeError("keepalive");if(dm.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");A=t instanceof jc?t:cAt(t)}if((typeof i=="string"||dm.isBuffer(i))&&(n=Buffer.byteLength(i)),r!=null){let c;A=new jc({async start(){c=r(t)[Symbol.asyncIterator]()},async pull(l){let{value:d,done:u}=await c.next();return u?queueMicrotask(()=>{l.close()}):CAt(A)||l.enqueue(new Uint8Array(d)),l.desiredSize>0},async cancel(l){await c.return()},type:void 0})}return[{stream:A,source:i,length:n},s]}a(Cge,"extractBody");function yAt(t,e=!1){return jc||(jc=require("stream/web").ReadableStream),t instanceof jc&&(FT(!dm.isDisturbed(t),"The body has already been consumed."),FT(!t.locked,"The stream is locked.")),Cge(t,e)}a(yAt,"safelyExtractBody");function wAt(t){let[e,A]=t.stream.tee(),r=gAt(A,{transfer:[A]}),[,i]=r.tee();return t.stream=e,{stream:i,length:t.length,source:t.source}}a(wAt,"cloneBody");async function*hge(t){if(t)if(mge(t))yield t;else{let e=t.stream;if(dm.isDisturbed(e))throw new TypeError("The body has already been consumed.");if(e.locked)throw new TypeError("The stream is locked.");e[mAt]=!0,yield*e}}a(hge,"consumeBody");function LT(t){if(t.aborted)throw new Ege("The operation was aborted.","AbortError")}a(LT,"throwIfAborted");function bAt(t){return{blob(){return QR(this,A=>{let r=SAt(this);return r==="failure"?r="":r&&(r=IAt(r)),new hAt([A],{type:r})},t)},arrayBuffer(){return QR(this,A=>new Uint8Array(A).buffer,t)},text(){return QR(this,fge,t)},json(){return QR(this,DAt,t)},async formData(){kT.brandCheck(this,t),LT(this[Xc]);let A=this.headers.get("Content-Type");if(/multipart\/form-data/.test(A)){let r={};for(let[o,c]of this.headers)r[o.toLowerCase()]=c;let i=new pge,n;try{n=new oAt({headers:r,preservePath:!0})}catch(o){throw new Ege(`${o}`,"AbortError")}n.on("field",(o,c)=>{i.append(o,c)}),n.on("file",(o,c,l,d,u)=>{let p=[];if(d==="base64"||d.toLowerCase()==="base64"){let g="";c.on("data",h=>{g+=h.toString().replace(/[\r\n]/gm,"");let m=g.length-g.length%4;p.push(Buffer.from(g.slice(0,m),"base64")),g=g.slice(m)}),c.on("end",()=>{p.push(Buffer.from(g,"base64")),i.append(o,new gge(p,l,{type:u}))})}else c.on("data",g=>{p.push(g)}),c.on("end",()=>{i.append(o,new gge(p,l,{type:u}))})});let s=new Promise((o,c)=>{n.on("finish",o),n.on("error",l=>c(new TypeError(l)))});if(this.body!==null)for await(let o of hge(this[Xc].body))n.write(o);return n.end(),await s,i}else if(/application\/x-www-form-urlencoded/.test(A)){let r;try{let n="",s=new TextDecoder("utf-8",{ignoreBOM:!0});for await(let o of hge(this[Xc].body)){if(!mge(o))throw new TypeError("Expected Uint8Array chunk");n+=s.decode(o,{stream:!0})}n+=s.decode(),r=new URLSearchParams(n)}catch(n){throw Object.assign(new TypeError,{cause:n})}let i=new pge;for(let[n,s]of r)i.append(n,s);return i}else throw await Promise.resolve(),LT(this[Xc]),kT.errors.exception({header:`${t.name}.formData`,message:"Could not parse content as FormData."})}}}a(bAt,"bodyMixinMethods");function NAt(t){Object.assign(t.prototype,bAt(t))}a(NAt,"mixinBody");async function QR(t,e,A){if(kT.brandCheck(t,A),LT(t[Xc]),RAt(t[Xc].body))throw new TypeError("Body is unusable");let r=uAt(),i=a(s=>r.reject(s),"errorSteps"),n=a(s=>{try{r.resolve(e(s))}catch(o){i(o)}},"successSteps");return t[Xc].body==null?(n(new Uint8Array),r.promise):(await pAt(t[Xc].body,n,i),r.promise)}a(QR,"specConsumeBody");function RAt(t){return t!=null&&(t.stream.locked||dm.isDisturbed(t.stream))}a(RAt,"bodyUnusable");function fge(t){return t.length===0?"":(t[0]===239&&t[1]===187&&t[2]===191&&(t=t.subarray(3)),new TextDecoder().decode(t))}a(fge,"utf8DecodeBytes");function DAt(t){return JSON.parse(fge(t))}a(DAt,"parseJSONFromBytes");function SAt(t){let{headersList:e}=t[Xc],A=e.get("content-type");return A===null?"failure":BAt(A)}a(SAt,"bodyMimeType");Qge.exports={extractBody:Cge,safelyExtractBody:yAt,cloneBody:wAt,mixinBody:NAt}});var wge=E((GRt,yge)=>{"use strict";var{InvalidArgumentError:AA,NotSupportedError:xAt}=tA(),Zc=require("assert"),{kHTTP2BuildRequest:vAt,kHTTP2CopyHeaders:kAt,kHTTP1BuildRequest:FAt}=BA(),us=gt(),Bge=/^[\^_`a-zA-Z\-0-9!#$%&'*+.|~]+$/,Ige=/[^\t\x20-\x7e\x80-\xff]/,LAt=/[^\u0021-\u00ff]/,Kc=Symbol("handler"),dr={},UT;try{let t=require("diagnostics_channel");dr.create=t.channel("undici:request:create"),dr.bodySent=t.channel("undici:request:bodySent"),dr.headers=t.channel("undici:request:headers"),dr.trailers=t.channel("undici:request:trailers"),dr.error=t.channel("undici:request:error")}catch{dr.create={hasSubscribers:!1},dr.bodySent={hasSubscribers:!1},dr.headers={hasSubscribers:!1},dr.trailLine truncated
|
||||
`),this.body=f.stream,this.contentLength=f.length}else us.isBlobLike(i)&&this.contentType==null&&i.type&&(this.contentType=i.type,this.headers+=`content-type: ${i.type}\r
|
||||
`);us.validateHandler(m,r,l),this.servername=us.getServerName(this.host),this[Kc]=m,dr.create.hasSubscribers&&dr.create.publish({request:this})}onBodySent(e){if(this[Kc].onBodySent)try{this[Kc].onBodySent(e)}catch(A){this.onError(A)}}onRequestSent(){dr.bodySent.hasSubscribers&&dr.bodySent.publish({request:this})}onConnect(e){return Zc(!this.aborted),Zc(!this.completed),this[Kc].onConnect(e)}onHeaders(e,A,r,i){return Zc(!this.aborted),Zc(!this.completed),dr.headers.hasSubscribers&&dr.headers.publish({request:this,response:{statusCode:e,headers:A,statusText:i}}),this[Kc].onHeaders(e,A,r,i)}onData(e){return Zc(!this.aborted),Zc(!this.completed),this[Kc].onData(e)}onUpgrade(e,A,r){return Zc(!this.aborted),Zc(!this.completed),this[Kc].onUpgrade(e,A,r)}onComplete(e){return Zc(!this.aborted),this.completed=!0,dr.trailers.hasSubscribers&&dr.trailers.publish({request:this,trailers:e}),this[Kc].onComplete(e)}onError(e){if(dr.error.hasSubscribers&&dr.error.publish({request:this,error:e}),!this.aborted)return this.aborted=!0,this[Kc].onError(e)}addHeader(e,A){return wB(this,e,A),this}static[FAt](e,A,r){return new t(e,A,r)}static[vAt](e,A,r){let i=A.headers;A={...A,headers:null};let n=new t(e,A,r);if(n.headers={},Array.isArray(i)){if(i.length%2!==0)throw new AA("headers array must be even");for(let s=0;s<i.length;s+=2)wB(n,i[s],i[s+1],!0)}else if(i&&typeof i=="object"){let s=Object.keys(i);for(let o=0;o<s.length;o++){let c=s[o];wB(n,c,i[c],!0)}}else if(i!=null)throw new AA("headers must be an object or an array");return n}static[kAt](e){let A=e.split(`\r
|
||||
`),r={};for(let i of A){let[n,s]=i.split(": ");s==null||s.length===0||(r[n]?r[n]+=`,${s}`:r[n]=s)}return r}};function op(t,e,A){if(e&&typeof e=="object")throw new AA(`invalid ${t} header`);if(e=e!=null?`${e}`:"",Ige.exec(e)!==null)throw new AA(`invalid ${t} header`);return A?e:`${t}: ${e}\r
|
||||
`}a(op,"processHeaderValue");function wB(t,e,A,r=!1){if(A&&typeof A=="object"&&!Array.isArray(A))throw new AA(`invalid ${e} header`);if(A===void 0)return;if(t.host===null&&e.length===4&&e.toLowerCase()==="host"){if(Ige.exec(A)!==null)throw new AA(`invalid ${e} header`);t.host=A}else if(t.contentLength===null&&e.length===14&&e.toLowerCase()==="content-length"){if(t.contentLength=parseInt(A,10),!Number.isFinite(t.contentLength))throw new AA("invalid content-length header")}else if(t.contentType===null&&e.length===12&&e.toLowerCase()==="content-type")t.contentType=A,r?t.headers[e]=op(e,A,r):t.headers+=op(e,A);else{if(e.length===17&&e.toLowerCase()==="transfer-encoding")throw new AA("invalid transfer-encoding header");if(e.length===10&&e.toLowerCase()==="connection"){let i=typeof A=="string"?A.toLowerCase():null;if(i!=="close"&&i!=="keep-alive")throw new AA("invalid connection header");i==="close"&&(t.reset=!0)}else{if(e.length===10&&e.toLowerCase()==="keep-alive")throw new AA("invalid keep-alive header");if(e.length===7&&e.toLowerCase()==="upgrade")throw new AA("invalid upgrade header");if(e.length===6&&e.toLowerCase()==="expect")throw new xAt("expect header not supported");if(Bge.exec(e)===null)throw new AA("invalid header key");if(Array.isArray(A))for(let i=0;i<A.length;i++)r?t.headers[e]?t.headers[e]+=`,${op(e,A[i],r)}`:t.headers[e]=op(e,A[i],r):t.headers+=op(e,A[i]);else r?t.headers[e]=op(e,A,r):t.headers+=op(e,A)}}}a(wB,"processHeader");yge.exports=TT});var BR=E((VRt,bge)=>{"use strict";var UAt=require("events"),MT=class extends UAt{static{a(this,"Dispatcher")}dispatch(){throw new Error("not implemented")}close(){throw new Error("not implemented")}destroy(){throw new Error("not implemented")}};bge.exports=MT});var NB=E((zRt,Nge)=>{"use strict";var TAt=BR(),{ClientDestroyedError:_T,ClientClosedError:MAt,InvalidArgumentError:um}=tA(),{kDestroy:_At,kClose:OAt,kDispatch:OT,kInterceptors:cp}=BA(),pm=Symbol("destroyed"),bB=Symbol("closed"),$c=Symbol("onDestroyed"),gm=Symbol("onClosed"),IR=Symbol("Intercepted Dispatch"),PT=class extends TAt{static{a(this,"DispatcherBase")}constructor(){super(),this[pm]=!1,this[$c]=null,this[bB]=!1,this[gm]=[]}get destroyed(){return this[pm]}get closed(){return this[bB]}get interceptors(){return this[cp]}set interceptors(e){if(e){for(let A=e.length-1;A>=0;A--)if(typeof this[cp][A]!="function")throw new um("interceptor must be an function")}this[cp]=e}close(e){if(e===void 0)return new Promise((r,i)=>{this.close((n,s)=>n?i(n):r(s))});if(typeof e!="function")throw new um("invalid callback");if(this[pm]){queueMicrotask(()=>e(new _T,null));return}if(this[bB]){this[gm]?this[gm].push(e):queueMicrotask(()=>e(null,null));return}this[bB]=!0,this[gm].push(e);let A=a(()=>{let r=this[gm];this[gm]=null;for(let i=0;i<r.length;i++)r[i](null,null)},"onClosed");this[OAt]().then(()=>this.destroy()).then(()=>{queueMicrotask(A)})}destroy(e,A){if(typeof e=="function"&&(A=e,e=null),A===void 0)return new Promise((i,n)=>{this.destroy(e,(s,o)=>s?n(s):i(o))});if(typeof A!="function")throw new um("invalid callback");if(this[pm]){this[$c]?this[$c].push(A):queueMicrotask(()=>A(null,null));return}e||(e=new _T),this[pm]=!0,this[$c]=this[$c]||[],this[$c].push(A);let r=a(()=>{let i=this[$c];this[$c]=null;for(let n=0;n<i.length;n++)i[n](null,null)},"onDestroyed");this[_At](e).then(()=>{queueMicrotask(r)})}[IR](e,A){if(!this[cp]||this[cp].length===0)return this[IR]=this[OT],this[OT](e,A);let r=this[OT].bind(this);for(let i=this[cp].length-1;i>=0;i--)r=this[cp][i](r);return this[IR]=r,r(e,A)}dispatch(e,A){if(!A||typeof A!="object")throw new um("handler must be an object");try{if(!e||typeof e!="object")throw new um("opts must be an object.");if(this[pm]||this[$c])throw new _T;if(this[bB])throw new MAt;return this[IR](e,A)}catch(r){if(typeof A.onError!="function")throw new um("invalid onError method");return A.onError(r),!1}}};Nge.exports=PT});var RB=E((KRt,Sge)=>{"use strict";var PAt=require("net"),Rge=require("assert"),Dge=gt(),{InvalidArgumentError:qAt,ConnectTimeoutError:HAt}=tA(),qT,HT;global.FinalizationRegistry&&!process.env.NODE_V8_COVERAGE?HT=class{static{a(this,"WeakSessionCache")}constructor(e){this._maxCachedSessions=e,this._sessionCache=new Map,this._sessionRegistry=new global.FinalizationRegistry(A=>{if(this._sessionCache.size<this._maxCachedSessions)return;let r=this._sessionCache.get(A);r!==void 0&&r.deref()===void 0&&this._sessionCache.delete(A)})}get(e){let A=this._sessionCache.get(e);return A?A.deref():null}set(e,A){this._maxCachedSessions!==0&&(this._sessionCache.set(e,new WeakRef(A)),this._sessionRegistry.register(A,e))}}:HT=class{static{a(this,"SimpleSessionCache")}constructor(e){this._maxCachedSessions=e,this._sessionCache=new Map}get(e){return this._sessionCache.get(e)}set(e,A){if(this._maxCachedSessions!==0){if(this._sessionCache.size>=this._maxCachedSessions){let{value:r}=this._sessionCache.keys().next();this._sessionCache.delete(r)}this._sessionCache.set(e,A)}}};function YAt({allowH2:t,maxC
Line truncated
|
||||
`,this[Vge]=c??3e5,this[Jge]=i??3e5,this[FB]=b??!0,this[frt]=C,this[LB]=N,this[Rd]=null,this[zge]=w>-1?w:-1,this[Ho]="h1",this[gs]=null,this[xR]=v?{openStreams:0,maxConcurrentStreams:x??100}:null,this[jge]=`${this[ai].hostname}${this[ai].port?`:${this[ai].port}`:""}`,this[dA]=[],this[uA]=0,this[ps]=0}get pipelining(){return this[Sd]}set pipelining(e){this[Sd]=e,hs(this,!0)}get[up](){return this[dA].length-this[ps]}get[RA](){return this[ps]-this[uA]}get[dp](){return this[dA].length-this[uA]}get[Crt](){return!!this[VA]&&!this[mm]&&!this[VA].destroyed}get[XT](){let e=this[VA];return e&&(e[Gi]||e[tl]||e[fm])||this[dp]>=(this[Sd]||1)||this[up]>0}[mrt](e){$ge(this),this.once("connect",e)}[Irt](e,A){let r=e.origin||this[ai].origin,i=this[Ho]==="h2"?jT[wrt](r,e,A):jT[Nrt](r,e,A);return this[dA].push(i),this[lp]||(me.bodyLength(i.body)==null&&me.isIterable(i.body)?(this[lp]=1,process.nextTick(hs,this)):hs(this,!0)),this[lp]&&this[Dd]!==2&&this[XT]&&(this[Dd]=2),this[Dd]<2}async[Qrt](){return new Promise(e=>{this[dp]?this[Rd]=e:e(null)})}async[Brt](e){return new Promise(A=>{let r=this[dA].splice(this[ps]);for(let n=0;n<r.length;n++){let s=r[n];ci(this,s,e)}let i=a(()=>{this[Rd]&&(this[Rd](),this[Rd]=null),A()},"callback");this[gs]!=null&&(me.destroy(this[gs],e),this[gs]=null,this[xR]=null),this[VA]?me.destroy(this[VA].on("close",i),e):queueMicrotask(i),hs(this)})}};function Lrt(t){Ae(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[VA][oi]=t,LR(this[qo],t)}a(Lrt,"onHttp2SessionError");function Urt(t,e,A){let r=new Po(`HTTP/2: "frameError" received - type ${t}, code ${e}`);A===0&&(this[VA][oi]=r,LR(this[qo],r))}a(Urt,"onHttp2FrameError");function Trt(){me.destroy(this,new Cm("other side closed")),me.destroy(this[VA],new Cm("other side closed"))}a(Trt,"onHttp2SessionEnd");function Mrt(t){let e=this[qo],A=new Po(`HTTP/2: "GOAWAY" frame received with code ${t}`);if(e[VA]=null,e[gs]=null,e.destroyed){Ae(this[up]===0);let r=e[dA].splice(e[uA]);for(let i=0;i<r.length;i++){let n=r[i];ci(this,n,A)}}else if(e[RA]>0){let r=e[dA][e[uA]];e[dA][e[uA]++]=null,ci(e,r,A)}e[ps]=e[uA],Ae(e[RA]===0),e.emit("disconnect",e[ai],[e],A),hs(e)}a(Mrt,"onHTTP2GoAway");var Mo=vge(),_rt=bR(),Ort=Buffer.alloc(0);async function Prt(){let t=process.env.JEST_WORKER_ID?VT():void 0,e;try{e=await WebAssembly.compile(Buffer.from(_ge(),"base64"))}catch{e=await WebAssembly.compile(Buffer.from(t||VT(),"base64"))}return await WebAssembly.instantiate(e,{env:{wasm_on_url:(A,r,i)=>0,wasm_on_status:(A,r,i)=>{Ae.strictEqual(yr.ptr,A);let n=r-Oo+_o.byteOffset;return yr.onStatus(new NR(_o.buffer,n,i))||0},wasm_on_message_begin:A=>(Ae.strictEqual(yr.ptr,A),yr.onMessageBegin()||0),wasm_on_header_field:(A,r,i)=>{Ae.strictEqual(yr.ptr,A);let n=r-Oo+_o.byteOffset;return yr.onHeaderField(new NR(_o.buffer,n,i))||0},wasm_on_header_value:(A,r,i)=>{Ae.strictEqual(yr.ptr,A);let n=r-Oo+_o.byteOffset;return yr.onHeaderValue(new NR(_o.buffer,n,i))||0},wasm_on_headers_complete:(A,r,i,n)=>(Ae.strictEqual(yr.ptr,A),yr.onHeadersComplete(r,!!i,!!n)||0),wasm_on_body:(A,r,i)=>{Ae.strictEqual(yr.ptr,A);let n=r-Oo+_o.byteOffset;return yr.onBody(new NR(_o.buffer,n,i))||0},wasm_on_message_complete:A=>(Ae.strictEqual(yr.ptr,A),yr.onMessageComplete()||0)}})}a(Prt,"lazyllhttp");var zT=null,$T=Prt();$T.catch();var yr=null,_o=null,RR=0,Oo=null,Qm=1,SR=2,e7=3,t7=class{static{a(this,"Parser")}constructor(e,A,{exports:r}){Ae(Number.isFinite(e[DR])&&e[DR]>0),this.llhttp=r,this.ptr=this.llhttp.llhttp_alloc(Mo.TYPE.RESPONSE),this.client=e,this.socket=A,this.timeout=null,this.timeoutValue=null,this.timeoutType=null,this.statusCode=null,this.statusText="",this.upgrade=!1,this.headers=[],this.headersSize=0,this.headersMaxSize=e[DR],this.shouldKeepAlive=!1,this.paused=!1,this.resume=this.resume.bind(this),this.bytesRead=0,this.keepAlive="",this.contentLength="",this.connection="",this.maxResponseSize=e[zge]}setTimeout(e,A){this.timeoutType=A,e!==this.timeoutValue?(WT.clearTimeout(this.timeout),e?(this.timeout=WT.setTimeout(qrt,e,this),this.timeout.unref&&this.timeout.unref()):this.timeout=null,this.timeoutValue=e):this.timeout&&this.timeout.refresh&&this.timeout.refresh()}resume(){this.socket.destroyed||!this.paused||(Ae(this.ptr!=null),Ae(yr==null),this.llhttp.llhttp_resume(this.ptr),Ae(this.timeoutType===SR),this.timeout&&this.timeout.refresh&&this.timeout.refresh(),this.paused=!1,this.execute(this.socket.read()||Ort),this.readMore())}readMore(){for(;!this.paused&&this.ptr;){let e=this.socket.read();if(e===null)break;this.execute(e)}}execute(e){Ae(this.ptr!=null),Ae(yr==null),Ae(!this.paused);let{socket:A,llhttp:r}=this;e.length>RR&&(Oo&&r.free(Oo),RR=Math.ceil(e.length/4096)*4096,Oo=r.malloc(RR)),new Uint8Array(r.memory.buffer,Oo,RR).set(e);try{let i;try{_o=e,yr=this,i=r.llhttp_execute(this.ptr,Oo,e.length)}catch(s){throw s}finally{yr=null,_o=null}let n=r.llhttp_get_error_pos(this.ptr)-Oo;if(i===Mo.ERROR.PAUSED_UPGRADE)this.onUpgrade(e.slice(n));else if(i===Mo.ERROR.PAUSED)this.paused=!0,A.unshift(e.sli
Line truncated
|
||||
`;return typeof n=="string"?g+=`host: ${n}\r
|
||||
`:g+=t[Hge],s?g+=`connection: upgrade\r
|
||||
upgrade: ${s}\r
|
||||
`:t[Sd]&&!p[Gi]?g+=`connection: keep-alive\r
|
||||
`:g+=`connection: close\r
|
||||
`,o&&(g+=o),bi.sendHeaders.hasSubscribers&&bi.sendHeaders.publish({request:e,headers:g,socket:p}),A?me.isBuffer(A)?(Ae(u===A.byteLength,"buffer body must have content length"),p.cork(),p.write(`${g}content-length: ${u}\r
|
||||
\r
|
||||
`,"latin1"),p.write(A),p.uncork(),e.onBodySent(A),e.onRequestSent(),d||(p[Gi]=!0)):me.isBlobLike(A)?typeof A.stream=="function"?kR({body:A.stream(),client:t,request:e,socket:p,contentLength:u,header:g,expectsPayload:d}):the({body:A,client:t,request:e,socket:p,contentLength:u,header:g,expectsPayload:d}):me.isStream(A)?ehe({body:A,client:t,request:e,socket:p,contentLength:u,header:g,expectsPayload:d}):me.isIterable(A)?kR({body:A,client:t,request:e,socket:p,contentLength:u,header:g,expectsPayload:d}):Ae(!1):(u===0?p.write(`${g}content-length: 0\r
|
||||
\r
|
||||
`,"latin1"):(Ae(u===null,"no body must not have content length"),p.write(`${g}\r
|
||||
`,"latin1")),e.onRequestSent()),!0}a(Yrt,"write");function Grt(t,e,A){let{body:r,method:i,path:n,host:s,upgrade:o,expectContinue:c,signal:l,headers:d}=A,u;if(typeof d=="string"?u=jT[brt](d.trim()):u=d,o)return ci(t,A,new Error("Upgrade not supported for H2")),!1;try{A.onConnect(b=>{A.aborted||A.completed||ci(t,A,b||new r7)})}catch(b){ci(t,A,b)}if(A.aborted)return!1;let p,g=t[xR];if(u[Rrt]=s||t[jge],u[Drt]=i,i==="CONNECT")return e.ref(),p=e.request(u,{endStream:!1,signal:l}),p.id&&!p.pending?(A.onUpgrade(null,null,p),++g.openStreams):p.once("ready",()=>{A.onUpgrade(null,null,p),++g.openStreams}),p.once("close",()=>{g.openStreams-=1,g.openStreams===0&&e.unref()}),!0;u[Srt]=n,u[xrt]="https";let h=i==="PUT"||i==="POST"||i==="PATCH";r&&typeof r.read=="function"&&r.read(0);let m=me.bodyLength(r);if(m==null&&(m=A.contentLength),(m===0||!h)&&(m=null),A.contentLength!=null&&A.contentLength!==m){if(t[FB])return ci(t,A,new el),!1;process.emitWarning(new el)}m!=null&&(Ae(r,"no body must not have content length"),u[vrt]=`${m}`),e.ref();let f=i==="GET"||i==="HEAD";return c?(u[krt]="100-continue",p=e.request(u,{endStream:f,signal:l}),p.once("continue",B)):(p=e.request(u,{endStream:f,signal:l}),B()),++g.openStreams,p.once("response",b=>{A.onHeaders(Number(b[Frt]),b,p.resume.bind(p),"")===!1&&p.pause()}),p.once("end",()=>{A.onComplete([])}),p.on("data",b=>{A.onData(b)===!1&&p.pause()}),p.once("close",()=>{g.openStreams-=1,g.openStreams===0&&e.unref()}),p.once("error",function(b){t[gs]&&!t[gs].destroyed&&!this.closed&&!this.destroyed&&(g.streams-=1,me.destroy(p,b))}),p.once("frameError",(b,I)=>{let C=new Po(`HTTP/2: "frameError" received - type ${b}, code ${I}`);ci(t,A,C),t[gs]&&!t[gs].destroyed&&!this.closed&&!this.destroyed&&(g.streams-=1,me.destroy(p,C))}),!0;function B(){r?me.isBuffer(r)?(Ae(m===r.byteLength,"buffer body must have content length"),p.cork(),p.write(r),p.uncork(),p.end(),A.onBodySent(r),A.onRequestSent()):me.isBlobLike(r)?typeof r.stream=="function"?kR({client:t,request:A,contentLength:m,h2stream:p,expectsPayload:h,body:r.stream(),socket:t[VA],header:""}):the({body:r,client:t,request:A,contentLength:m,expectsPayload:h,h2stream:p,header:"",socket:t[VA]}):me.isStream(r)?ehe({body:r,client:t,request:A,contentLength:m,expectsPayload:h,socket:t[VA],h2stream:p,header:""}):me.isIterable(r)?kR({body:r,client:t,request:A,contentLength:m,expectsPayload:h,header:"",h2stream:p,socket:t[VA]}):Ae(!1):A.onRequestSent()}a(B,"writeBodyH2")}a(Grt,"writeH2");function ehe({h2stream:t,body:e,client:A,request:r,socket:i,contentLength:n,header:s,expectsPayload:o}){if(Ae(n!==0||A[RA]===0,"stream body cannot be pipelined"),A[Ho]==="h2"){let m=function(f){r.onBodySent(f)};a(m,"onPipeData");let h=art(e,t,f=>{f?(me.destroy(e,f),me.destroy(t,f)):r.onRequestSent()});h.on("data",m),h.once("end",()=>{h.removeListener("data",m),me.destroy(h)});return}let c=!1,l=new FR({socket:i,request:r,contentLength:n,client:A,expectsPayload:o,header:s}),d=a(function(h){if(!c)try{!l.write(h)&&this.pause&&this.pause()}catch(m){me.destroy(this,m)}},"onData"),u=a(function(){c||e.resume&&e.resume()},"onDrain"),p=a(function(){g(new r7)},"onAbort"),g=a(function(h){if(!c){if(c=!0,Ae(i.destroyed||i[tl]&&A[RA]<=1),i.off("drain",u).off("error",g),e.removeListener("data",d).removeListener("end",g).removeListener("error",g).removeListener("close",p),!h)try{l.end()}catch(m){h=m}l.destroy(h),h&&(h.code!=="UND_ERR_INFO"||h.message!=="reset")?me.destroy(e,h):me.destroy(e)}},"onFinished");e.on("data",d).on("end",g).on("error",g).on("close",p),e.resume&&e.resume(),i.on("drain",u).on("error",g)}a(ehe,"writeStream");async function the({h2stream:t,body:e,client:A,request:r,socket:i,contentLength:n,header:s,expectsPayload:o}){Ae(n===e.size,"blob body must have content length");let c=A[Ho]==="h2";try{if(n!=null&&n!==e.size)throw new el;let l=Buffer.from(await e.arrayBuffer());c?(t.cork(),t.write(l),t.uncork()):(i.cork(),i.write(`${s}content-length: ${n}\r
|
||||
\r
|
||||
`,"latin1"),i.write(l),i.uncork()),r.onBodySent(l),r.onRequestSent(),o||(i[Gi]=!0),hs(A)}catch(l){me.destroy(c?t:i,l)}}a(the,"writeBlob");async function kR({h2stream:t,body:e,client:A,request:r,socket:i,contentLength:n,header:s,expectsPayload:o}){Ae(n!==0||A[RA]===0,"iterator body cannot be pipelined");let c=null;function l(){if(c){let p=c;c=null,p()}}a(l,"onDrain");let d=a(()=>new Promise((p,g)=>{Ae(c===null),i[oi]?g(i[oi]):c=p}),"waitForDrain");if(A[Ho]==="h2"){t.on("close",l).on("drain",l);try{for await(let p of e){if(i[oi])throw i[oi];let g=t.write(p);r.onBodySent(p),g||await d()}}catch(p){t.destroy(p)}finally{r.onRequestSent(),t.end(),t.off("close",l).off("drain",l)}return}i.on("close",l).on("drain",l);let u=new FR({socket:i,request:r,contentLength:n,client:A,expectsPayload:o,header:s});try{for await(let p of e){if(i[oi])throw i[oi];u.write(p)||await d()}u.end()}catch(p){u.destroy(p)}finally{i.off("close",l).off("drain",l)}}a(kR,"writeIterable");var FR=class{static{a(this,"AsyncWriter")}constructor({socket:e,request:A,contentLength:r,client:i,expectsPayload:n,header:s}){this.socket=e,this.request=A,this.contentLength=r,this.client=i,this.bytesWritten=0,this.expectsPayload=n,this.header=s,e[tl]=!0}write(e){let{socket:A,request:r,contentLength:i,client:n,bytesWritten:s,expectsPayload:o,header:c}=this;if(A[oi])throw A[oi];if(A.destroyed)return!1;let l=Buffer.byteLength(e);if(!l)return!0;if(i!==null&&s+l>i){if(n[FB])throw new el;process.emitWarning(new el)}A.cork(),s===0&&(o||(A[Gi]=!0),i===null?A.write(`${c}transfer-encoding: chunked\r
|
||||
`,"latin1"):A.write(`${c}content-length: ${i}\r
|
||||
\r
|
||||
`,"latin1")),i===null&&A.write(`\r
|
||||
${l.toString(16)}\r
|
||||
`,"latin1"),this.bytesWritten+=l;let d=A.write(e);return A.uncork(),r.onBodySent(e),d||A[JA].timeout&&A[JA].timeoutType===Qm&&A[JA].timeout.refresh&&A[JA].timeout.refresh(),d}end(){let{socket:e,contentLength:A,client:r,bytesWritten:i,expectsPayload:n,header:s,request:o}=this;if(o.onRequestSent(),e[tl]=!1,e[oi])throw e[oi];if(!e.destroyed){if(i===0?n?e.write(`${s}content-length: 0\r
|
||||
\r
|
||||
`,"latin1"):e.write(`${s}\r
|
||||
`,"latin1"):A===null&&e.write(`\r
|
||||
0\r
|
||||
\r
|
||||
`,"latin1"),A!==null&&i!==A){if(r[FB])throw new el;process.emitWarning(new el)}e[JA].timeout&&e[JA].timeoutType===Qm&&e[JA].timeout.refresh&&e[JA].timeout.refresh(),hs(r)}}destroy(e){let{socket:A,client:r}=this;A[tl]=!1,e&&(Ae(r[RA]<=1,"pipeline should only contain this request"),me.destroy(A,e))}};function ci(t,e,A){try{e.onError(A),Ae(e.aborted)}catch(r){t.emit("error",r)}}a(ci,"errorRequest");Ahe.exports=KT});var ihe=E((uDt,rhe)=>{"use strict";var UR=class{static{a(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)}};rhe.exports=class{static{a(this,"FixedQueue")}constructor(){this.head=this.tail=new UR}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new UR),this.head.push(e)}shift(){let e=this.tail,A=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next),A}}});var she=E((gDt,nhe)=>{var{kFree:Jrt,kConnected:Vrt,kPending:Wrt,kQueued:zrt,kRunning:jrt,kSize:Xrt}=BA(),pp=Symbol("pool"),i7=class{static{a(this,"PoolStats")}constructor(e){this[pp]=e}get connected(){return this[pp][Vrt]}get free(){return this[pp][Jrt]}get pending(){return this[pp][Wrt]}get queued(){return this[pp][zrt]}get running(){return this[pp][jrt]}get size(){return this[pp][Xrt]}};nhe.exports=i7});var l7=E((EDt,Ehe)=>{"use strict";var Zrt=NB(),Krt=ihe(),{kConnected:n7,kSize:ahe,kRunning:ohe,kPending:che,kQueued:TB,kBusy:$rt,kFree:eit,kUrl:tit,kClose:Ait,kDestroy:rit,kDispatch:iit}=BA(),nit=she(),Nn=Symbol("clients"),Ji=Symbol("needDrain"),MB=Symbol("queue"),s7=Symbol("closed resolve"),a7=Symbol("onDrain"),lhe=Symbol("onConnect"),dhe=Symbol("onDisconnect"),uhe=Symbol("onConnectionError"),o7=Symbol("get dispatcher"),ghe=Symbol("add client"),hhe=Symbol("remove client"),phe=Symbol("stats"),c7=class extends Zrt{static{a(this,"PoolBase")}constructor(){super(),this[MB]=new Krt,this[Nn]=[],this[TB]=0;let e=this;this[a7]=a(function(r,i){let n=e[MB],s=!1;for(;!s;){let o=n.shift();if(!o)break;e[TB]--,s=!this.dispatch(o.opts,o.handler)}this[Ji]=s,!this[Ji]&&e[Ji]&&(e[Ji]=!1,e.emit("drain",r,[e,...i])),e[s7]&&n.isEmpty()&&Promise.all(e[Nn].map(o=>o.close())).then(e[s7])},"onDrain"),this[lhe]=(A,r)=>{e.emit("connect",A,[e,...r])},this[dhe]=(A,r,i)=>{e.emit("disconnect",A,[e,...r],i)},this[uhe]=(A,r,i)=>{e.emit("connectionError",A,[e,...r],i)},this[phe]=new nit(this)}get[$rt](){return this[Ji]}get[n7](){return this[Nn].filter(e=>e[n7]).length}get[eit](){return this[Nn].filter(e=>e[n7]&&!e[Ji]).length}get[che](){let e=this[TB];for(let{[che]:A}of this[Nn])e+=A;return e}get[ohe](){let e=0;for(let{[ohe]:A}of this[Nn])e+=A;return e}get[ahe](){let e=this[TB];for(let{[ahe]:A}of this[Nn])e+=A;return e}get stats(){return this[phe]}async[Ait](){return this[MB].isEmpty()?Promise.all(this[Nn].map(e=>e.close())):new Promise(e=>{this[s7]=e})}async[rit](e){for(;;){let A=this[MB].shift();if(!A)break;A.handler.onError(e)}return Promise.all(this[Nn].map(A=>A.destroy(e)))}[iit](e,A){let r=this[o7]();return r?r.dispatch(e,A)||(r[Ji]=!0,this[Ji]=!this[o7]()):(this[Ji]=!0,this[MB].push({opts:e,handler:A}),this[TB]++),!this[Ji]}[ghe](e){return e.on("drain",this[a7]).on("connect",this[lhe]).on("disconnect",this[dhe]).on("connectionError",this[uhe]),this[Nn].push(e),this[Ji]&&process.nextTick(()=>{this[Ji]&&this[a7](e[tit],[this,e])}),this}[hhe](e){e.close(()=>{let A=this[Nn].indexOf(e);A!==-1&&this[Nn].splice(A,1)}),this[Ji]=this[Nn].some(A=>!A[Ji]&&A.closed!==!0&&A.destroyed!==!0)}};Ehe.exports={PoolBase:c7,kClients:Nn,kNeedDrain:Ji,kAddClient:ghe,kRemoveClient:hhe,kGetDispatcher:o7}});var Bm=E((CDt,Qhe)=>{"use strict";var{PoolBase:sit,kClients:mhe,kNeedDrain:ait,kAddClient:oit,kGetDispatcher:cit}=l7(),lit=UB(),{InvalidArgumentError:d7}=tA(),u7=gt(),{kUrl:Che,kInterceptors:dit}=BA(),uit=RB(),p7=Symbol("options"),g7=Symbol("connections"),fhe=Symbol("factory");function pit(t,e){return new lit(t,e)}a(pit,"defaultFactory");var h7=class extends sit{static{a(this,"Pool")}constructor(e,{connections:A,factory:r=pit,connect:i,connectTimeout:n,tls:s,maxCachedSessions:o,socketPath:c,autoSelectFamily:l,autoSelectFamilyAttemptTimeout:d,allowH2:u,...p}={}){if(super(),A!=null&&(!Number.isFinite(A)||A<0))throw new d7("invalid connections");if(typeof r!="function")throw new d7("factory must be a function.");if(i!=null&&typeof i!="function"&&typeof i!="object")throw new d7("connect must be a function or an object");typeof i!="function"&&(i=uit({...s,maxCachedSessions:o,allowH2:u,socketPath:c,timeout:n??1e4,...u7.nodeHasAutoSelectFamily&&l?{autoSelectFamily:l,autoSelectFamilyAttemptTimeout:d}:void 0,...i})),this[dit]=p.interceptors&&p.interceptors.Pool&&Array.isArray(p.interceptors.Pool)?p.interceptors.Pool:[],this[g7]=A||null
Line truncated
|
||||
${r.count} ${r.noun} ${r.is} pending:
|
||||
|
||||
${e.format(A)}
|
||||
`.trim())}};KEe.exports=$7});var nme=E((c4t,ime)=>{"use strict";var{kProxy:gst,kClose:hst,kDestroy:Est,kInterceptors:mst}=BA(),{URL:eme}=require("url"),tme=OB(),Cst=Bm(),fst=NB(),{InvalidArgumentError:YB,RequestAbortedError:Qst}=tA(),Ame=RB(),HB=Symbol("proxy agent"),eD=Symbol("proxy client"),tD=Symbol("proxy headers"),eM=Symbol("request tls settings"),Bst=Symbol("proxy tls settings"),rme=Symbol("connect endpoint function");function Ist(t){return t==="https:"?443:80}a(Ist,"defaultProtocolPort");function yst(t){if(typeof t=="string"&&(t={uri:t}),!t||!t.uri)throw new YB("Proxy opts.uri is mandatory");return{uri:t.uri,protocol:t.protocol||"https"}}a(yst,"buildProxyOptions");function wst(t,e){return new Cst(t,e)}a(wst,"defaultFactory");var tM=class extends fst{static{a(this,"ProxyAgent")}constructor(e){if(super(e),this[gst]=yst(e),this[HB]=new tme(e),this[mst]=e.interceptors&&e.interceptors.ProxyAgent&&Array.isArray(e.interceptors.ProxyAgent)?e.interceptors.ProxyAgent:[],typeof e=="string"&&(e={uri:e}),!e||!e.uri)throw new YB("Proxy opts.uri is mandatory");let{clientFactory:A=wst}=e;if(typeof A!="function")throw new YB("Proxy opts.clientFactory must be a function.");if(this[eM]=e.requestTls,this[Bst]=e.proxyTls,this[tD]=e.headers||{},e.auth&&e.token)throw new YB("opts.auth cannot be used in combination with opts.token");e.auth?this[tD]["proxy-authorization"]=`Basic ${e.auth}`:e.token&&(this[tD]["proxy-authorization"]=e.token);let r=new eme(e.uri),{origin:i,port:n,host:s}=r,o=Ame({...e.proxyTls});this[rme]=Ame({...e.requestTls}),this[eD]=A(r,{connect:o}),this[HB]=new tme({...e,connect:async(c,l)=>{let d=c.host;c.port||(d+=`:${Ist(c.protocol)}`);try{let{socket:u,statusCode:p}=await this[eD].connect({origin:i,port:n,path:d,signal:c.signal,headers:{...this[tD],host:s}});if(p!==200&&(u.on("error",()=>{}).destroy(),l(new Qst("Proxy response !== 200 when HTTP Tunneling"))),c.protocol!=="https:"){l(null,u);return}let g;this[eM]?g=this[eM].servername:g=c.servername,this[rme]({...c,servername:g,httpSocket:u},l)}catch(u){l(u)}}})}dispatch(e,A){let{host:r}=new eme(e.origin),i=bst(e.headers);return Nst(i),this[HB].dispatch({...e,headers:{...i,host:r}},A)}async[hst](){await this[HB].close(),await this[eD].close()}async[Est](){await this[HB].destroy(),await this[eD].destroy()}};function bst(t){if(Array.isArray(t)){let e={};for(let A=0;A<t.length;A+=2)e[t[A]]=t[A+1];return e}return t}a(bst,"buildHeaders");function Nst(t){if(t&&Object.keys(t).find(A=>A.toLowerCase()==="proxy-authorization"))throw new YB("Proxy-Authorization should be sent in ProxyAgent constructor")}a(Nst,"throwIfProxyAuthIsSent");ime.exports=tM});var vm=E((d4t,cme)=>{"use strict";var sme=Symbol.for("undici.globalDispatcher.1"),{InvalidArgumentError:Rst}=tA(),Dst=OB();ome()===void 0&&ame(new Dst);function ame(t){if(!t||typeof t.dispatch!="function")throw new Rst("Argument agent must implement Agent");Object.defineProperty(globalThis,sme,{value:t,writable:!0,enumerable:!1,configurable:!1})}a(ame,"setGlobalDispatcher");function ome(){return globalThis[sme]}a(ome,"getGlobalDispatcher");cme.exports={setGlobalDispatcher:ame,getGlobalDispatcher:ome}});var dme=E((g4t,lme)=>{"use strict";lme.exports=class{static{a(this,"DecoratorHandler")}constructor(e){this.handler=e}onConnect(...e){return this.handler.onConnect(...e)}onError(...e){return this.handler.onError(...e)}onUpgrade(...e){return this.handler.onUpgrade(...e)}onHeaders(...e){return this.handler.onHeaders(...e)}onData(...e){return this.handler.onData(...e)}onComplete(...e){return this.handler.onComplete(...e)}onBodySent(...e){return this.handler.onBodySent(...e)}}});var Qp=E((E4t,hme)=>{"use strict";var{kHeadersList:Rn}=BA(),{kGuard:fp}=zc(),{kEnumerableProperty:Go}=gt(),{makeIterator:AM,isValidHeaderName:GB,isValidHeaderValue:ume}=aa(),{webidl:Ke}=Yi(),Sst=require("assert"),Dn=Symbol("headers map"),Sn=Symbol("headers map sorted");function pme(t){let e=t.length;for(;/[\r\n\t ]/.test(t.charAt(--e)););return t.slice(0,e+1).replace(/^[\r\n\t ]+/,"")}a(pme,"headerValueNormalize");function gme(t,e){if(Array.isArray(e))for(let A of e){if(A.length!==2)throw Ke.errors.exception({header:"Headers constructor",message:`expected name/value pair to be length 2, found ${A.length}.`});t.append(A[0],A[1])}else if(typeof e=="object"&&e!==null)for(let[A,r]of Object.entries(e))t.append(A,r);else throw Ke.errors.conversionFailed({prefix:"Headers constructor",argument:"Argument 1",types:["sequence<sequence<ByteString>>","record<ByteString, ByteString>"]})}a(gme,"fill");var AD=class t{static{a(this,"HeadersList")}cookies=null;constructor(e){e instanceof t?(this[Dn]=new Map(e[Dn]),this[Sn]=e[Sn],this.cookies=e.cookies):(this[Dn]=new Map(e),this[Sn]=null)}contains(e){return e=e.toLowerCase(),this[Dn].has(e)}clear(){this[Dn].clear(),this[Sn]=null,this.cookies=null}append(e,A){this[Sn]=null;let r=e.toLowerCase(),i=this[Dn].get(r);if(i){let n=r==="cookie"?"; ":", ";this[Dn].set(r,{name:i.name,value:`${i.value}${n}${A}`})}else this[Dn].se
Line truncated
|
||||
|
||||
Error Code : ${s.statusCode}
|
||||
|
||||
Error Message: ${s.message}`)})).result)===null||A===void 0?void 0:A.value;if(!n)throw new Error("Response json body do not have ID Token field");return n})}static getIDToken(e){return ufe(this,void 0,void 0,function*(){try{let A=t.getIDTokenUrl();if(e){let i=encodeURIComponent(e);A=`${A}&audience=${i}`}pfe.debug(`ID token url is ${A}`);let r=yield t.getCall(A);return pfe.setSecret(r),r}catch(A){throw new Error(`Error message: ${A.message}`)}})}};Jm.OidcClient=WM});var ZM=E(kn=>{"use strict";var zM=kn&&kn.__awaiter||function(t,e,A,r){function i(n){return n instanceof A?n:new A(function(s){s(n)})}return a(i,"adopt"),new(A||(A=Promise))(function(n,s){function o(d){try{l(r.next(d))}catch(u){s(u)}}a(o,"fulfilled");function c(d){try{l(r.throw(d))}catch(u){s(u)}}a(c,"rejected");function l(d){d.done?n(d.value):i(d.value).then(o,c)}a(l,"step"),l((r=r.apply(t,e||[])).next())})};Object.defineProperty(kn,"__esModule",{value:!0});kn.summary=kn.markdownSummary=kn.SUMMARY_DOCS_URL=kn.SUMMARY_ENV_VAR=void 0;var hlt=require("os"),jM=require("fs"),{access:Elt,appendFile:mlt,writeFile:Clt}=jM.promises;kn.SUMMARY_ENV_VAR="GITHUB_STEP_SUMMARY";kn.SUMMARY_DOCS_URL="https://docs.github.com/actions/using-workflows/workflow-commands-for-github-actions#adding-a-job-summary";var XM=class{static{a(this,"Summary")}constructor(){this._buffer=""}filePath(){return zM(this,void 0,void 0,function*(){if(this._filePath)return this._filePath;let e=process.env[kn.SUMMARY_ENV_VAR];if(!e)throw new Error(`Unable to find environment variable for $${kn.SUMMARY_ENV_VAR}. Check if your runtime environment supports job summaries.`);try{yield Elt(e,jM.constants.R_OK|jM.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,A,r={}){let i=Object.entries(r).map(([n,s])=>` ${n}="${s}"`).join("");return A?`<${e}${i}>${A}</${e}>`:`<${e}${i}>`}write(e){return zM(this,void 0,void 0,function*(){let A=!!e?.overwrite,r=yield this.filePath();return yield(A?Clt:mlt)(r,this._buffer,{encoding:"utf8"}),this.emptyBuffer()})}clear(){return zM(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,A=!1){return this._buffer+=e,A?this.addEOL():this}addEOL(){return this.addRaw(hlt.EOL)}addCodeBlock(e,A){let r=Object.assign({},A&&{lang:A}),i=this.wrap("pre",this.wrap("code",e),r);return this.addRaw(i).addEOL()}addList(e,A=!1){let r=A?"ol":"ul",i=e.map(s=>this.wrap("li",s)).join(""),n=this.wrap(r,i);return this.addRaw(n).addEOL()}addTable(e){let A=e.map(i=>{let n=i.map(s=>{if(typeof s=="string")return this.wrap("td",s);let{header:o,data:c,colspan:l,rowspan:d}=s,u=o?"th":"td",p=Object.assign(Object.assign({},l&&{colspan:l}),d&&{rowspan:d});return this.wrap(u,c,p)}).join("");return this.wrap("tr",n)}).join(""),r=this.wrap("table",A);return this.addRaw(r).addEOL()}addDetails(e,A){let r=this.wrap("details",this.wrap("summary",e)+A);return this.addRaw(r).addEOL()}addImage(e,A,r){let{width:i,height:n}=r||{},s=Object.assign(Object.assign({},i&&{width:i}),n&&{height:n}),o=this.wrap("img",null,Object.assign({src:e,alt:A},s));return this.addRaw(o).addEOL()}addHeading(e,A){let r=`h${A}`,i=["h1","h2","h3","h4","h5","h6"].includes(r)?r:"h1",n=this.wrap(i,e);return this.addRaw(n).addEOL()}addSeparator(){let e=this.wrap("hr",null);return this.addRaw(e).addEOL()}addBreak(){let e=this.wrap("br",null);return this.addRaw(e).addEOL()}addQuote(e,A){let r=Object.assign({},A&&{cite:A}),i=this.wrap("blockquote",e,r);return this.addRaw(i).addEOL()}addLink(e,A){let r=this.wrap("a",e,{href:A});return this.addRaw(r).addEOL()}},hfe=new XM;kn.markdownSummary=hfe;kn.summary=hfe});var Efe=E(Fn=>{"use strict";var flt=Fn&&Fn.__createBinding||(Object.create?function(t,e,A,r){r===void 0&&(r=A),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[A]}})}:function(t,e,A,r){r===void 0&&(r=A),t[r]=e[A]}),Qlt=Fn&&Fn.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),Blt=Fn&&Fn.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var A in t)A!=="default"&&Object.hasOwnProperty.call(t,A)&&flt(e,t,A);return Qlt(e,t),e};Object.defineProperty(Fn,"__esModule",{value:!0});Fn.toPlatformPath=Fn.toWin32Path=Fn.toPosixPath=void 0;var Ilt=Blt(require("path"));function ylt(t){return t.replace(/[\\]/g,"/")}a(ylt,"toPosixPath");Fn.toPosixPath=ylt;function wlt(t){return t.replace(/[/]/g,"\\")}a(wlt,"toWin32Path");Fn.toWin32Path=wlt;function blt(t){return t.replace(/[/\\]/g,Ilt.sep)}a(blt,"toPlatformPath");Fn.toPlatformPath=blt});var rI=E(ue=>{"use strict";var Nlt=ue&&ue.__createBinding||(Object.create?function(t,e,A,r){r===void 0&&(r=A),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[A]}})}:function(t,e,A,r){Line truncated
|
||||
`).filter(r=>r!=="");return e&&e.trimWhitespace===!1?A:A.map(r=>r.trim())}a(Flt,"getMultilineInput");ue.getMultilineInput=Flt;function Llt(t,e){let A=["true","True","TRUE"],r=["false","False","FALSE"],i=KM(t,e);if(A.includes(i))return!0;if(r.includes(i))return!1;throw new TypeError(`Input does not meet YAML 1.2 "Core Schema" specification: ${t}
|
||||
Support boolean input list: \`true | True | TRUE | false | False | FALSE\``)}a(Llt,"getBooleanInput");ue.getBooleanInput=Llt;function Ult(t,e){if(process.env.GITHUB_OUTPUT||"")return Np.issueFileCommand("OUTPUT",Np.prepareKeyValueMessage(t,e));process.stdout.write(ffe.EOL),ga.issueCommand("set-output",{name:t},Vm.toCommandValue(e))}a(Ult,"setOutput");ue.setOutput=Ult;function Tlt(t){ga.issue("echo",t?"on":"off")}a(Tlt,"setCommandEcho");ue.setCommandEcho=Tlt;function Mlt(t){process.exitCode=Qfe.Failure,Bfe(t)}a(Mlt,"setFailed");ue.setFailed=Mlt;function _lt(){return process.env.RUNNER_DEBUG==="1"}a(_lt,"isDebug");ue.isDebug=_lt;function Olt(t){ga.issueCommand("debug",{},t)}a(Olt,"debug");ue.debug=Olt;function Bfe(t,e={}){ga.issueCommand("error",Vm.toCommandProperties(e),t instanceof Error?t.toString():t)}a(Bfe,"error");ue.error=Bfe;function Plt(t,e={}){ga.issueCommand("warning",Vm.toCommandProperties(e),t instanceof Error?t.toString():t)}a(Plt,"warning");ue.warning=Plt;function qlt(t,e={}){ga.issueCommand("notice",Vm.toCommandProperties(e),t instanceof Error?t.toString():t)}a(qlt,"notice");ue.notice=qlt;function Hlt(t){process.stdout.write(t+ffe.EOL)}a(Hlt,"info");ue.info=Hlt;function Ife(t){ga.issue("group",t)}a(Ife,"startGroup");ue.startGroup=Ife;function yfe(){ga.issue("endgroup")}a(yfe,"endGroup");ue.endGroup=yfe;function Ylt(t,e){return Cfe(this,void 0,void 0,function*(){Ife(t);let A;try{A=yield e()}finally{yfe()}return A})}a(Ylt,"group");ue.group=Ylt;function Glt(t,e){if(process.env.GITHUB_STATE||"")return Np.issueFileCommand("STATE",Np.prepareKeyValueMessage(t,e));ga.issueCommand("save-state",{name:t},Vm.toCommandValue(e))}a(Glt,"saveState");ue.saveState=Glt;function Jlt(t){return process.env[`STATE_${t}`]||""}a(Jlt,"getState");ue.getState=Jlt;function Vlt(t){return Cfe(this,void 0,void 0,function*(){return yield Slt.OidcClient.getIDToken(t)})}a(Vlt,"getIDToken");ue.getIDToken=Vlt;var Wlt=ZM();Object.defineProperty(ue,"summary",{enumerable:!0,get:function(){return Wlt.summary}});var zlt=ZM();Object.defineProperty(ue,"markdownSummary",{enumerable:!0,get:function(){return zlt.markdownSummary}});var $M=Efe();Object.defineProperty(ue,"toPosixPath",{enumerable:!0,get:function(){return $M.toPosixPath}});Object.defineProperty(ue,"toWin32Path",{enumerable:!0,get:function(){return $M.toWin32Path}});Object.defineProperty(ue,"toPlatformPath",{enumerable:!0,get:function(){return $M.toPlatformPath}})});var Nfe=E((Ri,t_)=>{"use strict";var jlt=Ri&&Ri.__createBinding||(Object.create?function(t,e,A,r){r===void 0&&(r=A),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[A]}})}:function(t,e,A,r){r===void 0&&(r=A),t[r]=e[A]}),Xlt=Ri&&Ri.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),Zlt=Ri&&Ri.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var A in t)A!=="default"&&Object.hasOwnProperty.call(t,A)&&jlt(e,t,A);return Xlt(e,t),e},Klt=Ri&&Ri.__awaiter||function(t,e,A,r){function i(n){return n instanceof A?n:new A(function(s){s(n)})}return a(i,"adopt"),new(A||(A=Promise))(function(n,s){function o(d){try{l(r.next(d))}catch(u){s(u)}}a(o,"fulfilled");function c(d){try{l(r.throw(d))}catch(u){s(u)}}a(c,"rejected");function l(d){d.done?n(d.value):i(d.value).then(o,c)}a(l,"step"),l((r=r.apply(t,e||[])).next())})};Object.defineProperty(Ri,"__esModule",{value:!0});Ri._readLinuxVersionFile=Ri._getOsVersion=Ri._findMatch=void 0;var wfe=Zlt(u2()),e_=rI(),bfe=require("os"),$lt=require("child_process"),GD=require("fs");function edt(t,e,A,r){return Klt(this,void 0,void 0,function*(){let i=bfe.platform(),n,s,o;for(let c of A){let l=c.version;if(e_.debug(`check ${l} satisfies ${t}`),wfe.satisfies(l,t)&&(!e||c.stable===e)&&(o=c.files.find(d=>{e_.debug(`${d.arch}===${r} && ${d.platform}===${i}`);let u=d.arch===r&&d.platform===i;if(u&&d.platform_version){let p=t_.exports._getOsVersion();p===d.platform_version?u=!0:u=wfe.satisfies(p,d.platform_version)}return u}),o)){e_.debug(`matched ${c.version}`),s=c;break}}return s&&o&&(n=Object.assign({},s),n.files=[o]),n})}a(edt,"_findMatch");Ri._findMatch=edt;function tdt(){let t=bfe.platform(),e="";if(t==="darwin")e=$lt.execSync("sw_vers -productVersion").toString();else if(t==="linux"){let A=t_.exports._readLinuxVersionFile();if(A){let r=A.split(`
|
||||
`);for(let i of r){let n=i.split("=");if(n.length===2&&(n[0].trim()==="VERSION_ID"||n[0].trim()==="DISTRIB_RELEASE")){e=n[1].trim().replace(/^"/,"").replace(/"$/,"");break}}}}return e}a(tdt,"_getOsVersion");Ri._getOsVersion=tdt;function Adt(){let t="/etc/lsb-release",e="/etc/os-release",A="";return GD.existsSync(t)?A=GD.readFileSync(t).toString():GD.existsSync(e)&&(A=GD.readFileSync(e).toString()),A}a(Adt,"_readLinuxVersionFile");Ri._readLinuxVersionFile=Adt});var Dfe=E((I6t,Rfe)=>{var rdt=require("crypto");Rfe.exports=a(function(){return rdt.randomBytes(16)},"nodeRNG")});var vfe=E((w6t,xfe)=>{var Sfe=[];for(iI=0;iI<256;++iI)Sfe[iI]=(iI+256).toString(16).substr(1);var iI;function idt(t,e){var A=e||0,r=Sfe;return[r[t[A++]],r[t[A++]],r[t[A++]],r[t[A++]],"-",r[t[A++]],r[t[A++]],"-",r[t[A++]],r[t[A++]],"-",r[t[A++]],r[t[A++]],"-",r[t[A++]],r[t[A++]],r[t[A++]],r[t[A++]],r[t[A++]],r[t[A++]]].join("")}a(idt,"bytesToUuid");xfe.exports=idt});var Ffe=E((N6t,kfe)=>{var ndt=Dfe(),sdt=vfe();function adt(t,e,A){var r=e&&A||0;typeof t=="string"&&(e=t==="binary"?new Array(16):null,t=null),t=t||{};var i=t.random||(t.rng||ndt)();if(i[6]=i[6]&15|64,i[8]=i[8]&63|128,e)for(var n=0;n<16;++n)e[r+n]=i[n];return e||sdt(i)}a(adt,"v4");kfe.exports=adt});var Tfe=E(ha=>{"use strict";var odt=ha&&ha.__createBinding||(Object.create?function(t,e,A,r){r===void 0&&(r=A),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[A]}})}:function(t,e,A,r){r===void 0&&(r=A),t[r]=e[A]}),cdt=ha&&ha.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),ldt=ha&&ha.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var A in t)A!=="default"&&Object.hasOwnProperty.call(t,A)&&odt(e,t,A);return cdt(e,t),e},Lfe=ha&&ha.__awaiter||function(t,e,A,r){function i(n){return n instanceof A?n:new A(function(s){s(n)})}return a(i,"adopt"),new(A||(A=Promise))(function(n,s){function o(d){try{l(r.next(d))}catch(u){s(u)}}a(o,"fulfilled");function c(d){try{l(r.throw(d))}catch(u){s(u)}}a(c,"rejected");function l(d){d.done?n(d.value):i(d.value).then(o,c)}a(l,"step"),l((r=r.apply(t,e||[])).next())})};Object.defineProperty(ha,"__esModule",{value:!0});ha.RetryHelper=void 0;var Ufe=ldt(rI()),A_=class{static{a(this,"RetryHelper")}constructor(e,A,r){if(e<1)throw new Error("max attempts should be greater than or equal to 1");if(this.maxAttempts=e,this.minSeconds=Math.floor(A),this.maxSeconds=Math.floor(r),this.minSeconds>this.maxSeconds)throw new Error("min seconds should be less than or equal to max seconds")}execute(e,A){return Lfe(this,void 0,void 0,function*(){let r=1;for(;r<this.maxAttempts;){try{return yield e()}catch(n){if(A&&!A(n))throw n;Ufe.info(n.message)}let i=this.getSleepAmount();Ufe.info(`Waiting ${i} seconds before trying again`),yield this.sleep(i),r++}return yield e()})}getSleepAmount(){return Math.floor(Math.random()*(this.maxSeconds-this.minSeconds+1))+this.minSeconds}sleep(e){return Lfe(this,void 0,void 0,function*(){return new Promise(A=>setTimeout(A,e*1e3))})}};ha.RetryHelper=A_});var Gfe=E(je=>{"use strict";var ddt=je&&je.__createBinding||(Object.create?function(t,e,A,r){r===void 0&&(r=A),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[A]}})}:function(t,e,A,r){r===void 0&&(r=A),t[r]=e[A]}),udt=je&&je.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),zo=je&&je.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var A in t)A!=="default"&&Object.hasOwnProperty.call(t,A)&&ddt(e,t,A);return udt(e,t),e},ji=je&&je.__awaiter||function(t,e,A,r){function i(n){return n instanceof A?n:new A(function(s){s(n)})}return a(i,"adopt"),new(A||(A=Promise))(function(n,s){function o(d){try{l(r.next(d))}catch(u){s(u)}}a(o,"fulfilled");function c(d){try{l(r.throw(d))}catch(u){s(u)}}a(c,"rejected");function l(d){d.done?n(d.value):i(d.value).then(o,c)}a(l,"step"),l((r=r.apply(t,e||[])).next())})},pdt=je&&je.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(je,"__esModule",{value:!0});je.evaluateVersions=je.isExplicitVersion=je.findFromManifest=je.getManifestFromRepo=je.findAllVersions=je.find=je.cacheFile=je.cacheDir=je.extractZip=je.extractXar=je.extractTar=je.extract7z=je.downloadTool=je.HTTPError=void 0;var mt=zo(rI()),Is=zo(YC()),Ea=zo(require("fs")),gdt=zo(Nfe()),sI=zo(require("os")),Ja=zo(require("path")),Mfe=zo(HM()),sl=zo(u2()),hdt=zo(require("stream")),Edt=zo(require("util")),Wm=require("assert"),_fe=pdt(Ffe()),Td=Rg(),mdt=Tfe(),nI=class extends Error{static{a(this,"HTTPError")}constructor(e){super(`Unexpected HTTP response: ${e}`),this.httpStatusCode=e,Object.setPrototypeOf(this,new.target.prototype)}};je.HTTPError=nI;var i_=process.platform==="win32",Cdt=process.platform==="darwin",fdt="actions/tool-cache";function Qdt(t,e,A,r){return ji(this,void 0,void 0,function*(){e=e||Ja.join(Yfe(),_fe
Line truncated
|
||||
`,[CHAR_f]:"\f",[CHAR_r]:"\r",[CHAR_QUOT]:'"',[CHAR_BSOL]:"\\"};function isDigit(t){return t>=CHAR_0&&t<=CHAR_9}a(isDigit,"isDigit");function isHexit(t){return t>=CHAR_A&&t<=CHAR_F||t>=CHAR_a&&t<=CHAR_f||t>=CHAR_0&&t<=CHAR_9}a(isHexit,"isHexit");function isBit(t){return t===CHAR_1||t===CHAR_0}a(isBit,"isBit");function isOctit(t){return t>=CHAR_0&&t<=CHAR_7}a(isOctit,"isOctit");function isAlphaNumQuoteHyphen(t){return t>=CHAR_A&&t<=CHAR_Z||t>=CHAR_a&&t<=CHAR_z||t>=CHAR_0&&t<=CHAR_9||t===CHAR_APOS||t===CHAR_QUOT||t===CHAR_LOWBAR||t===CHAR_HYPHEN}a(isAlphaNumQuoteHyphen,"isAlphaNumQuoteHyphen");function isAlphaNumHyphen(t){return t>=CHAR_A&&t<=CHAR_Z||t>=CHAR_a&&t<=CHAR_z||t>=CHAR_0&&t<=CHAR_9||t===CHAR_LOWBAR||t===CHAR_HYPHEN}a(isAlphaNumHyphen,"isAlphaNumHyphen");var _type=Symbol("type"),_declared=Symbol("declared"),hasOwnProperty=Object.prototype.hasOwnProperty,defineProperty=Object.defineProperty,descriptor={configurable:!0,enumerable:!0,writable:!0,value:void 0};function hasKey(t,e){return hasOwnProperty.call(t,e)?!0:(e==="__proto__"&&defineProperty(t,"__proto__",descriptor),!1)}a(hasKey,"hasKey");var INLINE_TABLE=Symbol("inline-table");function InlineTable(){return Object.defineProperties({},{[_type]:{value:INLINE_TABLE}})}a(InlineTable,"InlineTable");function isInlineTable(t){return t===null||typeof t!="object"?!1:t[_type]===INLINE_TABLE}a(isInlineTable,"isInlineTable");var TABLE=Symbol("table");function Table(){return Object.defineProperties({},{[_type]:{value:TABLE},[_declared]:{value:!1,writable:!0}})}a(Table,"Table");function isTable(t){return t===null||typeof t!="object"?!1:t[_type]===TABLE}a(isTable,"isTable");var _contentType=Symbol("content-type"),INLINE_LIST=Symbol("inline-list");function InlineList(t){return Object.defineProperties([],{[_type]:{value:INLINE_LIST},[_contentType]:{value:t}})}a(InlineList,"InlineList");function isInlineList(t){return t===null||typeof t!="object"?!1:t[_type]===INLINE_LIST}a(isInlineList,"isInlineList");var LIST=Symbol("list");function List(){return Object.defineProperties([],{[_type]:{value:LIST}})}a(List,"List");function isList(t){return t===null||typeof t!="object"?!1:t[_type]===LIST}a(isList,"isList");var _custom;try{let utilInspect=eval("require('util').inspect");_custom=utilInspect.custom}catch(t){}var _inspect=_custom||"inspect",BoxedBigInt=class{static{a(this,"BoxedBigInt")}constructor(e){try{this.value=global.BigInt.asIntN(64,e)}catch{this.value=null}Object.defineProperty(this,_type,{value:INTEGER})}isNaN(){return this.value===null}toString(){return String(this.value)}[_inspect](){return`[BigInt: ${this.toString()}]}`}valueOf(){return this.value}},INTEGER=Symbol("integer");function Integer(t){let e=Number(t);return Object.is(e,-0)&&(e=0),global.BigInt&&!Number.isSafeInteger(e)?new BoxedBigInt(t):Object.defineProperties(new Number(e),{isNaN:{value:function(){return isNaN(this)}},[_type]:{value:INTEGER},[_inspect]:{value:()=>`[Integer: ${t}]`}})}a(Integer,"Integer");function isInteger(t){return t===null||typeof t!="object"?!1:t[_type]===INTEGER}a(isInteger,"isInteger");var FLOAT=Symbol("float");function Float(t){return Object.defineProperties(new Number(t),{[_type]:{value:FLOAT},[_inspect]:{value:()=>`[Float: ${t}]`}})}a(Float,"Float");function isFloat(t){return t===null||typeof t!="object"?!1:t[_type]===FLOAT}a(isFloat,"isFloat");function tomlType(t){let e=typeof t;if(e==="object"){if(t===null)return"null";if(t instanceof Date)return"datetime";if(_type in t)switch(t[_type]){case INLINE_TABLE:return"inline-table";case INLINE_LIST:return"inline-list";case TABLE:return"table";case LIST:return"list";case FLOAT:return"float";case INTEGER:return"integer"}}return e}a(tomlType,"tomlType");function makeParserClass(t){class e extends t{static{a(this,"TOMLParser")}constructor(){super(),this.ctx=this.obj=Table()}atEndOfWord(){return this.char===CHAR_NUM||this.char===CTRL_I||this.char===CHAR_SP||this.atEndOfLine()}atEndOfLine(){return this.char===t.END||this.char===CTRL_J||this.char===CTRL_M}parseStart(){if(this.char===t.END)return null;if(this.char===CHAR_LSQB)return this.call(this.parseTableOrList);if(this.char===CHAR_NUM)return this.call(this.parseComment);if(this.char===CTRL_J||this.char===CHAR_SP||this.char===CTRL_I||this.char===CTRL_M)return null;if(isAlphaNumQuoteHyphen(this.char))return this.callNow(this.parseAssignStatement);throw this.error(new TomlError(`Unknown character "${this.char}"`))}parseWhitespaceToEOL(){if(this.char===CHAR_SP||this.char===CTRL_I||this.char===CTRL_M)return null;if(this.char===CHAR_NUM)return this.goto(this.parseComment);if(this.char===t.END||this.char===CTRL_J)return this.return();throw this.error(new TomlError("Unexpected character, expected only whitespace or comments till end of line"))}parseAssignStatement(){return this.callNow(this.parseAssign,this.recordAssignStatement)}recordAssignStatement(r){let i=this.ctx,n=r.key.pop();for(let s of r.key){if(hasKey(i,s)&&(!isTable(i[s])||i[s][_declared]))throw this.error(new TomlError("Can'
Line truncated
|
||||
`,e&&e.split){let r=e.split(/\n/),i=String(Math.min(r.length,t.line+3)).length,n=" ";for(;n.length<i;)n+=" ";for(let s=Math.max(0,t.line-1);s<Math.min(r.length,t.line+2);++s){let o=String(s+1);if(o.length<i&&(o=" "+o),t.line===s){A+=o+"> "+r[s]+`
|
||||
`,A+=n+" ";for(let c=0;c<t.col;++c)A+=" ";A+=`^
|
||||
`}else A+=o+": "+r[s]+`
|
||||
`}}return t.message=A+`
|
||||
`,t}a(Udt,"prettyError")});var nQe=E((J6t,iQe)=>{"use strict";iQe.exports=_dt;var Tdt=XD(),Mdt=ZD();function _dt(t){global.Buffer&&global.Buffer.isBuffer(t)&&(t=t.toString("utf8"));let e=new Tdt;try{return e.parse(t),e.finish()}catch(A){throw Mdt(A,t)}}a(_dt,"parseString")});var oQe=E((W6t,aQe)=>{"use strict";aQe.exports=Pdt;var Odt=XD(),sQe=ZD();function Pdt(t,e){e||(e={});let A=0,r=e.blocksize||40960,i=new Odt;return new Promise((s,o)=>{setImmediate(n,A,r,s,o)});function n(s,o,c,l){if(s>=t.length)try{return c(i.finish())}catch(d){return l(sQe(d,t))}try{i.parse(t.slice(s,s+o)),setImmediate(n,s+o,o,c,l)}catch(d){l(sQe(d,t))}}}a(Pdt,"parseAsync")});var dQe=E((j6t,lQe)=>{"use strict";lQe.exports=Hdt;var qdt=require("stream"),cQe=XD();function Hdt(t){return t?Ydt(t):Gdt(t)}a(Hdt,"parseStream");function Ydt(t){let e=new cQe;return t.setEncoding("utf8"),new Promise((A,r)=>{let i,n=!1,s=!1;function o(){if(n=!0,!i)try{A(e.finish())}catch(d){r(d)}}a(o,"finish");function c(d){s=!0,r(d)}a(c,"error"),t.once("end",o),t.once("error",c),l();function l(){i=!0;let d;for(;(d=t.read())!==null;)try{e.parse(d)}catch(u){return c(u)}if(i=!1,n)return o();s||t.once("readable",l)}a(l,"readNext")})}a(Ydt,"parseReadable");function Gdt(){let t=new cQe;return new qdt.Transform({objectMode:!0,transform(e,A,r){try{t.parse(e.toString(A))}catch(i){this.emit("error",i)}r()},flush(e){try{this.push(t.finish())}catch(A){this.emit("error",A)}e()}})}a(Gdt,"parseTransform")});var uQe=E((Z6t,oI)=>{"use strict";oI.exports=nQe();oI.exports.async=oQe();oI.exports.stream=dQe();oI.exports.prettyError=ZD()});var QQe=E((K6t,d_)=>{"use strict";d_.exports=Jdt;d_.exports.value=l_;function Jdt(t){if(t===null)throw Dp("null");if(t===void 0)throw Dp("undefined");if(typeof t!="object")throw Dp(typeof t);if(typeof t.toJSON=="function"&&(t=t.toJSON()),t==null)return null;let e=Ln(t);if(e!=="table")throw Dp(e);return c_("","",t)}a(Jdt,"stringify");function Dp(t){return new Error("Can only stringify objects, not "+t)}a(Dp,"typeError");function Vdt(){return new Error("Array values can't have mixed types")}a(Vdt,"arrayOneTypeError");function pQe(t){return Object.keys(t).filter(e=>gQe(t[e]))}a(pQe,"getInlineKeys");function Wdt(t){return Object.keys(t).filter(e=>!gQe(t[e]))}a(Wdt,"getComplexKeys");function KD(t){let e=Array.isArray(t)?[]:Object.prototype.hasOwnProperty.call(t,"__proto__")?{["__proto__"]:void 0}:{};for(let A of Object.keys(t))t[A]&&typeof t[A].toJSON=="function"&&!("toISOString"in t[A])?e[A]=t[A].toJSON():e[A]=t[A];return e}a(KD,"toJSON");function c_(t,e,A){A=KD(A);var r,i;r=pQe(A),i=Wdt(A);var n=[],s=e||"";r.forEach(c=>{var l=Ln(A[c]);l!=="undefined"&&l!=="null"&&n.push(s+$D(c)+" = "+mQe(A[c],!0))}),n.length>0&&n.push("");var o=t&&r.length>0?e+" ":"";return i.forEach(c=>{n.push(iut(t,o,c,A[c]))}),n.join(`
|
||||
`)}a(c_,"stringifyObject");function gQe(t){switch(Ln(t)){case"undefined":case"null":case"integer":case"nan":case"float":case"boolean":case"string":case"datetime":return!0;case"array":return t.length===0||Ln(t[0])!=="table";case"table":return Object.keys(t).length===0;default:return!1}}a(gQe,"isInline");function Ln(t){return t===void 0?"undefined":t===null?"null":typeof t=="bigint"||Number.isInteger(t)&&!Object.is(t,-0)?"integer":typeof t=="number"?"float":typeof t=="boolean"?"boolean":typeof t=="string"?"string":"toISOString"in t?isNaN(t)?"undefined":"datetime":Array.isArray(t)?"array":"table"}a(Ln,"tomlType");function $D(t){var e=String(t);return/^[-A-Za-z0-9_]+$/.test(e)?e:hQe(e)}a($D,"stringifyKey");function hQe(t){return'"'+EQe(t).replace(/"/g,'\\"')+'"'}a(hQe,"stringifyBasicString");function zdt(t){return"'"+t+"'"}a(zdt,"stringifyLiteralString");function jdt(t,e){for(;e.length<t;)e="0"+e;return e}a(jdt,"numpad");function EQe(t){return t.replace(/\\/g,"\\\\").replace(/[\b]/g,"\\b").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\f/g,"\\f").replace(/\r/g,"\\r").replace(/([\u0000-\u001f\u007f])/,e=>"\\u"+jdt(4,e.codePointAt(0).toString(16)))}a(EQe,"escapeString");function Xdt(t){let e=t.split(/\n/).map(A=>EQe(A).replace(/"(?="")/g,'\\"')).join(`
|
||||
`);return e.slice(-1)==='"'&&(e+=`\\
|
||||
`),`"""
|
||||
`+e+'"""'}o(mF,"stringifyMultilineString");function T_(t,e){let a=oa(t);return a==="string"&&(e&&/\n/.test(t)?a="string-multiline":!/[\b\t\n\f\r']/.test(t)&&/"/.test(t)&&(a="string-literal")),m6(t,a)}o(T_,"stringifyAnyInline");function m6(t,e){switch(e||(e=oa(t)),e){case"string-multiline":return mF(t);case"string":return C_(t);case"string-literal":return cF(t);case"integer":return O_(t);case"float":return fF(t);case"boolean":return hF(t);case"datetime":return gF(t);case"array":return xF(t.filter(a=>oa(a)!=="null"&&oa(a)!=="undefined"&&oa(a)!=="nan"));case"table":return bF(t);default:throw fn(e)}}o(m6,"stringifyInline");function O_(t){return String(t).replace(/\B(?=(\d{3})+(?!\d))/g,"_")}o(O_,"stringifyInteger");function fF(t){if(t===1/0)return"inf";if(t===-1/0)return"-inf";if(Object.is(t,NaN))return"nan";if(Object.is(t,-0))return"-0.0";var e=String(t).split("."),a=e[0],i=e[1]||0;return O_(a)+"."+i}o(fF,"stringifyFloat");function hF(t){return String(t)}o(hF,"stringifyBoolean");function gF(t){return t.toISOString()}o(gF,"stringifyDatetime");function yF(t){return t==="float"||t==="integer"}o(yF,"isNumber");function vF(t){var e=oa(t[0]);return t.every(a=>oa(a)===e)?e:t.every(a=>yF(oa(a)))?"float":"mixed"}o(vF,"arrayType");function R_(t){let e=vF(t);if(e==="mixed")throw lF();return e}o(R_,"validateArray");function xF(t){t=Lu(t);let e=R_(t);var a="[",i=t.map(r=>m6(r,e));return i.join(", ").length>60||/\n/.test(i)?a+=`
|
||||
`+i.join(`,
|
||||
`+e+'"""'}a(Xdt,"stringifyMultilineString");function mQe(t,e){let A=Ln(t);return A==="string"&&(e&&/\n/.test(t)?A="string-multiline":!/[\b\t\n\f\r']/.test(t)&&/"/.test(t)&&(A="string-literal")),l_(t,A)}a(mQe,"stringifyAnyInline");function l_(t,e){switch(e||(e=Ln(t)),e){case"string-multiline":return Xdt(t);case"string":return hQe(t);case"string-literal":return zdt(t);case"integer":return CQe(t);case"float":return Zdt(t);case"boolean":return Kdt(t);case"datetime":return $dt(t);case"array":return Aut(t.filter(A=>Ln(A)!=="null"&&Ln(A)!=="undefined"&&Ln(A)!=="nan"));case"table":return rut(t);default:throw Dp(e)}}a(l_,"stringifyInline");function CQe(t){return String(t).replace(/\B(?=(\d{3})+(?!\d))/g,"_")}a(CQe,"stringifyInteger");function Zdt(t){if(t===1/0)return"inf";if(t===-1/0)return"-inf";if(Object.is(t,NaN))return"nan";if(Object.is(t,-0))return"-0.0";var e=String(t).split("."),A=e[0],r=e[1]||0;return CQe(A)+"."+r}a(Zdt,"stringifyFloat");function Kdt(t){return String(t)}a(Kdt,"stringifyBoolean");function $dt(t){return t.toISOString()}a($dt,"stringifyDatetime");function eut(t){return t==="float"||t==="integer"}a(eut,"isNumber");function tut(t){var e=Ln(t[0]);return t.every(A=>Ln(A)===e)?e:t.every(A=>eut(Ln(A)))?"float":"mixed"}a(tut,"arrayType");function fQe(t){let e=tut(t);if(e==="mixed")throw Vdt();return e}a(fQe,"validateArray");function Aut(t){t=KD(t);let e=fQe(t);var A="[",r=t.map(i=>l_(i,e));return r.join(", ").length>60||/\n/.test(r)?A+=`
|
||||
`+r.join(`,
|
||||
`)+`
|
||||
`:a+=" "+i.join(", ")+(i.length>0?" ":""),a+"]"}o(xF,"stringifyInlineArray");function bF(t){t=Lu(t);var e=[];return Object.keys(t).forEach(a=>{e.push(qu(a)+" = "+T_(t[a],!1))}),"{ "+e.join(", ")+(e.length>0?" ":"")+"}"}o(bF,"stringifyInlineTable");function wF(t,e,a,i){var r=oa(i);if(r==="array")return NF(t,e,a,i);if(r==="table")return _F(t,e,a,i);throw fn(r)}o(wF,"stringifyComplex");function NF(t,e,a,i){i=Lu(i),R_(i);var r=oa(i[0]);if(r!=="table")throw fn(r);var n=t+qu(a),s="";return i.forEach(p=>{s.length>0&&(s+=`
|
||||
`:A+=" "+r.join(", ")+(r.length>0?" ":""),A+"]"}a(Aut,"stringifyInlineArray");function rut(t){t=KD(t);var e=[];return Object.keys(t).forEach(A=>{e.push($D(A)+" = "+mQe(t[A],!1))}),"{ "+e.join(", ")+(e.length>0?" ":"")+"}"}a(rut,"stringifyInlineTable");function iut(t,e,A,r){var i=Ln(r);if(i==="array")return nut(t,e,A,r);if(i==="table")return sut(t,e,A,r);throw Dp(i)}a(iut,"stringifyComplex");function nut(t,e,A,r){r=KD(r),fQe(r);var i=Ln(r[0]);if(i!=="table")throw Dp(i);var n=t+$D(A),s="";return r.forEach(o=>{s.length>0&&(s+=`
|
||||
`),s+=e+"[["+n+`]]
|
||||
`,s+=u6(n+".",e,p)}),s}o(NF,"stringifyArrayOfTables");function _F(t,e,a,i){var r=t+qu(a),n="";return __(i).length>0&&(n+=e+"["+r+`]
|
||||
`),n+u6(r+".",e,i)}o(_F,"stringifyComplexTable")});var I_=E(h6=>{"use strict";h6.parse=N_();h6.stringify=P_()});var V_=require("node:os"),Lt=ya(rt());var L_=require("node:crypto"),q_=require("node:os"),eo=require("node:path"),bi=require("node:fs"),hn=ya(rt()),ju=ya(AN()),Hp=ya(e_()),v6=ya(_n());var Ys=require("node:fs"),g6=ya(rt()),zu=ya(I_());function D_(t,e){if(!e.length)return;let a=0;if(e.forEach(n=>{try{new URL(n.url)}catch{throw new Error(`Invalid registry URL: ${n.url}`)}n.scope||a++}),a>1)throw new Error("You can't have more than one global registry.");(0,g6.info)(`Writing bunfig.toml to '${t}'.`);let i={};if((0,Ys.existsSync)(t))try{let n=(0,Ys.readFileSync)(t,{encoding:"utf-8"});i=(0,zu.parse)(n)}catch(n){(0,g6.info)(`Error reading existing bunfig: ${n.message}`),i={}}i.install=i?.install||{},i.install.scopes=i?.install.scopes||{};let r=e.find(n=>!n.scope);r&&(i.install.registry={url:r.url,...r.token?{token:r.token}:{}});for(let n of e)if(n.scope){let s=n.scope.startsWith("@")?n.scope.toLowerCase():`@${n.scope.toLowerCase()}`;i.install.scopes[s]={url:n.url,...n.token?{token:n.token}:{}}}Object.keys(i.install.scopes).length===0&&delete i.install.scopes,(0,Ys.writeFileSync)(t,(0,zu.stringify)(i),{encoding:"utf8"})}o(D_,"writeBunfig");var z_=ya(rt());var Js=ya(rt()),A_=require("node:console"),Zs=require("node:fs"),ku=require("node:path");function y6(t,e,a=1e4){return t().catch(i=>{if(e<=0)throw i;return new Promise(r=>setTimeout(r,a)).then(()=>y6(t,e-1,a))})}o(y6,"retry");function B_(t,e){return t.endsWith(e)?t:((0,Zs.renameSync)(t,t+e),t+e)}o(B_,"addExtension");var SF={"package.json":t=>{let e=JSON.parse(t);return e.packageManager?.split("bun@")?.[1]??e.engines?.bun},".tool-versions":t=>t.match(/^bun\s*(?<version>.*?)$/m)?.groups?.version,".bumrc":t=>t,".bun-version":t=>t};function M_(t){let e=process.env.GITHUB_WORKSPACE;if(!e||!t)return;(0,Js.debug)(`Reading version from ${t}`);let a=(0,ku.resolve)(e,t),i=(0,ku.basename)(t);if(!(0,Zs.existsSync)(a)){(0,Js.warning)(`File ${a} not found`);return}let r=SF[i]??(()=>{}),n;try{if(n=r((0,Zs.readFileSync)(a,"utf8"))?.trim(),!n){(0,Js.warning)(`Failed to read version from ${t}`);return}}catch(s){let{message:p}=s;(0,Js.warning)(`Failed to read ${t}: ${p}`)}finally{if(n)return(0,A_.info)(`Obtained version ${n} from ${t}`),n}}o(M_,"readVersionFromFile");var k_=require("node:process");var j_=o(async t=>{let e=(0,eo.join)((0,k_.cwd)(),"bunfig.toml");D_(e,t.registries);let a=TF(t),i=EF(t),r=(0,eo.join)((0,q_.homedir)(),".bun","bin");try{(0,bi.mkdirSync)(r,{recursive:!0})}catch(u){if(u.code!=="EEXIST")throw u}(0,hn.addPath)(r);let n=o(u=>process.platform==="win32"?`${u}.exe`:u,"exe"),s=(0,eo.join)(r,n("bun"));try{(0,bi.symlinkSync)(s,(0,eo.join)(r,n("bunx")))}catch(u){if(u.code!=="EEXIST")throw u}let p,l=!1;if(i){let u=(0,L_.createHash)("sha1").update(a).digest("base64");await(0,ju.restoreCache)([s],u)&&(p=await H_(s),p?(l=!0,(0,hn.info)(`Using a cached version of Bun: ${p}`)):(0,hn.warning)(`Found a cached version of Bun: ${p} (but it appears to be corrupted?)`))}if(l||((0,hn.info)(`Downloading a new version of Bun: ${a}`),p=await y6(async()=>await CF(a,s),3)),!p)throw new Error("Downloaded a new version of Bun, but failed to check its version? Try again.");let[d]=p.split("+");return(0,z_.saveState)("cache",JSON.stringify({cacheEnabled:i,cacheHit:l,bunPath:s,url:a})),{version:d,revision:p,bunPath:s,url:a,cacheHit:l}},"default");async function CF(t,e){let a=B_(await(0,Hp.downloadTool)(t),".zip"),i=await(0,Hp.extractZip)(a),r=await x6(i);try{(0,bi.renameSync)(r,e)}catch{(0,bi.copyFileSync)(r,e)}return await H_(e)}o(CF,"downloadBun");function EF(t){let{customUrl:e,version:a,noCache:i}=t;return i||e||!a||/latest|canary|action/i.test(a)?!1:(0,ju.isFeatureAvailable)()}o(EF,"isCacheEnabled");function TF(t){let{customUrl:e}=t;if(e)return e;let{version:a,os:i,arch:r,avx2:n,profile:s}=t,p=encodeURIComponent(a??"latest"),l=encodeURIComponent(i??process.platform),d=encodeURIComponent(r??process.arch),c=encodeURIComponent(n??!0),u=encodeURIComponent(s??!1),{href:m}=new URL(`${p}/${l}/${d}?avx2=${c}&profile=${u}`,"https://bun.sh/download/");return m}o(TF,"getDownloadUrl");async function x6(t){for(let e of(0,bi.readdirSync)(t,{withFileTypes:!0})){let{name:a}=e,i=(0,eo.join)(t,a);if(e.isFile()){if(a==="bun"||a==="bun.exe")return i;if(/^bun.*\.zip/.test(a)){let r=await(0,Hp.extractZip)(i);return x6(r)}}if(/^bun/.test(a)&&e.isDirectory())return x6(i)}throw new Error("Could not find executable: bun")}o(x6,"extractBun");async function H_(t){let e=await(0,v6.getExecOutput)(t,["--revision"],{ignoreReturnCode:!0});if(e.exitCode===0&&/^\d+\.\d+\.\d+/.test(e.stdout))return e.stdout.trim();let a=await(0,v6.getExecOutput)(t,["--version"],{ignoreReturnCode:!0});if(a.exitCode===0&&/^\d+\.\d+\.\d+/.test(a.stdout))return a.stdout.trim()}o(H_,"getRevision");function U_(t){return t?.trim()?t.split(`
|
||||
`).map(e=>e.trim()).filter(Boolean).map(OF).filter(Boolean):[]}o(U_,"parseRegistries");function OF(t){let e=t.match(/^(@[a-z0-9-_.]+|[a-z0-9-_.]+(?=:[a-z]+:\/\/)):(.+)$/i);if(e){let a=e[1],i=e[2].trim(),[r,n]=i.split("|",2).map(s=>s?.trim());try{return new URL(r),{url:r,scope:a,...n&&{token:n}}}catch{throw new Error(`Invalid URL in registry configuration: ${r}`)}}else{let[a,i]=t.split("|",2).map(r=>r?.trim());try{return new URL(a),{url:a,scope:"",...i&&{token:i}}}catch{throw new Error(`Invalid URL in registry configuration: ${a}`)}}}o(OF,"parseLine");process.env.RUNNER_TEMP||(process.env.RUNNER_TEMP=(0,V_.tmpdir)());var $_=U_((0,Lt.getInput)("registries")),F_=(0,Lt.getInput)("registry-url"),RF=(0,Lt.getInput)("scope");F_&&$_.push({url:F_,scope:RF,token:"$BUN_AUTH_TOKEN"});j_({version:(0,Lt.getInput)("bun-version")||M_((0,Lt.getInput)("bun-version-file"))||void 0,customUrl:(0,Lt.getInput)("bun-download-url")||void 0,registries:$_,noCache:(0,Lt.getBooleanInput)("no-cache")||!1}).then(({version:t,revision:e,bunPath:a,url:i,cacheHit:r})=>{(0,Lt.setOutput)("bun-version",t),(0,Lt.setOutput)("bun-revision",e),(0,Lt.setOutput)("bun-path",a),(0,Lt.setOutput)("bun-download-url",i),(0,Lt.setOutput)("cache-hit",r),process.exit(0)}).catch(t=>{(0,Lt.setFailed)(t),process.exit(1)});
|
||||
`,s+=c_(n+".",e,o)}),s}a(nut,"stringifyArrayOfTables");function sut(t,e,A,r){var i=t+$D(A),n="";return pQe(r).length>0&&(n+=e+"["+i+`]
|
||||
`),n+c_(i+".",e,r)}a(sut,"stringifyComplexTable")});var BQe=E(u_=>{"use strict";u_.parse=uQe();u_.stringify=QQe()});var LQe=require("node:os"),li=Nr(hi());var NQe=require("node:crypto"),RQe=require("node:os"),Km=require("node:path"),jo=require("node:fs"),Sp=Nr(hi()),A4=Nr(pue()),cI=Nr(Gfe()),h_=Nr(Rg());var jm=require("node:fs"),p_=Nr(hi()),e4=Nr(BQe());function IQe(t,e){if(!e.length)return;let A=0;if(e.forEach(n=>{try{new URL(n.url)}catch{throw new Error(`Invalid registry URL: ${n.url}`)}n.scope||A++}),A>1)throw new Error("You can't have more than one global registry.");(0,p_.info)(`Writing bunfig.toml to '${t}'.`);let r={};if((0,jm.existsSync)(t))try{let n=(0,jm.readFileSync)(t,{encoding:"utf-8"});r=(0,e4.parse)(n)}catch(n){(0,p_.info)(`Error reading existing bunfig: ${n.message}`),r={}}r.install=r?.install||{},r.install.scopes=r?.install.scopes||{};let i=e.find(n=>!n.scope);i&&(r.install.registry={url:i.url,...i.token?{token:i.token}:{}});for(let n of e)if(n.scope){let s=n.scope.startsWith("@")?n.scope.toLowerCase():`@${n.scope.toLowerCase()}`;r.install.scopes[s]={url:n.url,...n.token?{token:n.token}:{}}}Object.keys(r.install.scopes).length===0&&delete r.install.scopes,(0,jm.writeFileSync)(t,(0,e4.stringify)(r),{encoding:"utf8"})}a(IQe,"writeBunfig");var DQe=Nr(hi());var Xm=Nr(hi()),yQe=require("node:console"),Zm=require("node:fs"),t4=require("node:path");function g_(t,e,A=1e4){return t().catch(r=>{if(e<=0)throw r;return new Promise(i=>setTimeout(i,A)).then(()=>g_(t,e-1,A))})}a(g_,"retry");function wQe(t,e){return t.endsWith(e)?t:((0,Zm.renameSync)(t,t+e),t+e)}a(wQe,"addExtension");var aut={"package.json":t=>{let e=JSON.parse(t);return e.packageManager?.split("bun@")?.[1]??e.engines?.bun},".tool-versions":t=>t.match(/^bun\s*(?<version>.*?)$/m)?.groups?.version,".bumrc":t=>t,".bun-version":t=>t};function bQe(t){let e=process.env.GITHUB_WORKSPACE;if(!e||!t)return;(0,Xm.debug)(`Reading version from ${t}`);let A=(0,t4.resolve)(e,t),r=(0,t4.basename)(t);if(!(0,Zm.existsSync)(A)){(0,Xm.warning)(`File ${A} not found`);return}let i=aut[r]??(()=>{}),n;try{if(n=i((0,Zm.readFileSync)(A,"utf8"))?.trim(),!n){(0,Xm.warning)(`Failed to read version from ${t}`);return}}catch(s){let{message:o}=s;(0,Xm.warning)(`Failed to read ${t}: ${o}`)}finally{if(n)return(0,yQe.info)(`Obtained version ${n} from ${t}`),n}}a(bQe,"readVersionFromFile");var SQe=require("node:process");var xQe=a(async t=>{let e=(0,Km.join)((0,SQe.cwd)(),"bunfig.toml");IQe(e,t.registries);let A=lut(t),r=cut(t),i=(0,Km.join)((0,RQe.homedir)(),".bun","bin");try{(0,jo.mkdirSync)(i,{recursive:!0})}catch(u){if(u.code!=="EEXIST")throw u}(0,Sp.addPath)(i);let n=a(u=>process.platform==="win32"?`${u}.exe`:u,"exe"),s=(0,Km.join)(i,n("bun"));try{(0,jo.symlinkSync)(s,(0,Km.join)(i,n("bunx")))}catch(u){if(u.code!=="EEXIST")throw u}let o,c=!1;if(r){let u=(0,NQe.createHash)("sha1").update(A).digest("base64");await(0,A4.restoreCache)([s],u)&&(o=await vQe(s),o?(c=!0,(0,Sp.info)(`Using a cached version of Bun: ${o}`)):(0,Sp.warning)(`Found a cached version of Bun: ${o} (but it appears to be corrupted?)`))}if(c||((0,Sp.info)(`Downloading a new version of Bun: ${A}`),o=await g_(async()=>await out(A,s),3)),!o)throw new Error("Downloaded a new version of Bun, but failed to check its version? Try again.");let[l]=o.split("+");return(0,DQe.saveState)("cache",JSON.stringify({cacheEnabled:r,cacheHit:c,bunPath:s,url:A})),{version:l,revision:o,bunPath:s,url:A,cacheHit:c}},"default");async function out(t,e){let A=wQe(await(0,cI.downloadTool)(t),".zip"),r=await(0,cI.extractZip)(A),i=await E_(r);try{(0,jo.renameSync)(i,e)}catch{(0,jo.copyFileSync)(i,e)}return await vQe(e)}a(out,"downloadBun");function cut(t){let{customUrl:e,version:A,noCache:r}=t;return r||e||!A||/latest|canary|action/i.test(A)?!1:(0,A4.isFeatureAvailable)()}a(cut,"isCacheEnabled");function lut(t){let{customUrl:e}=t;if(e)return e;let{version:A,os:r,arch:i,avx2:n,profile:s}=t,o=encodeURIComponent(A??"latest"),c=encodeURIComponent(r??process.platform),l=encodeURIComponent(i??process.arch),d=encodeURIComponent(n??!0),u=encodeURIComponent(s??!1),{href:p}=new URL(`${o}/${c}/${l}?avx2=${d}&profile=${u}`,"https://bun.sh/download/");return p}a(lut,"getDownloadUrl");async function E_(t){for(let e of(0,jo.readdirSync)(t,{withFileTypes:!0})){let{name:A}=e,r=(0,Km.join)(t,A);if(e.isFile()){if(A==="bun"||A==="bun.exe")return r;if(/^bun.*\.zip/.test(A)){let i=await(0,cI.extractZip)(r);return E_(i)}}if(/^bun/.test(A)&&e.isDirectory())return E_(r)}throw new Error("Could not find executable: bun")}a(E_,"extractBun");async function vQe(t){let e=await(0,h_.getExecOutput)(t,["--revision"],{ignoreReturnCode:!0});if(e.exitCode===0&&/^\d+\.\d+\.\d+/.test(e.stdout))return e.stdout.trim();let A=await(0,h_.getExecOutput)(t,["--version"],{ignoreReturnCode:!0});if(A.exitCode===0&&/^\d+\.\d+\.\d+/.test(A.stdout))return A.stdout.trim()}a(vQe,"getRevision");function kQe(t){return t?.trim()?t.split(`
|
||||
`).map(e=>e.trim()).filter(Boolean).map(dut).filter(Boolean):[]}a(kQe,"parseRegistries");function dut(t){let e=t.match(/^(@[a-z0-9-_.]+|[a-z0-9-_.]+(?=:[a-z]+:\/\/)):(.+)$/i);if(e){let A=e[1],r=e[2].trim(),[i,n]=r.split("|",2).map(s=>s?.trim());try{return new URL(i),{url:i,scope:A,...n&&{token:n}}}catch{throw new Error(`Invalid URL in registry configuration: ${i}`)}}else{let[A,r]=t.split("|",2).map(i=>i?.trim());try{return new URL(A),{url:A,scope:"",...r&&{token:r}}}catch{throw new Error(`Invalid URL in registry configuration: ${A}`)}}}a(dut,"parseLine");process.env.RUNNER_TEMP||(process.env.RUNNER_TEMP=(0,LQe.tmpdir)());var UQe=kQe((0,li.getInput)("registries")),FQe=(0,li.getInput)("registry-url"),uut=(0,li.getInput)("scope");FQe&&UQe.push({url:FQe,scope:uut,token:"$BUN_AUTH_TOKEN"});xQe({version:(0,li.getInput)("bun-version")||bQe((0,li.getInput)("bun-version-file"))||void 0,customUrl:(0,li.getInput)("bun-download-url")||void 0,registries:UQe,noCache:(0,li.getBooleanInput)("no-cache")||!1}).then(({version:t,revision:e,bunPath:A,url:r,cacheHit:i})=>{(0,li.setOutput)("bun-version",t),(0,li.setOutput)("bun-revision",e),(0,li.setOutput)("bun-path",A),(0,li.setOutput)("bun-download-url",r),(0,li.setOutput)("cache-hit",i),process.exit(0)}).catch(t=>{(0,li.setFailed)(t),process.exit(1)});
|
||||
/*! Bundled license information:
|
||||
|
||||
undici/lib/fetch/body.js:
|
||||
(*! formdata-polyfill. MIT License. Jimmy Wärting <https://jimmy.warting.se/opensource> *)
|
||||
|
||||
undici/lib/websocket/frame.js:
|
||||
(*! ws. MIT License. Einar Otto Stangvik <einaros@gmail.com> *)
|
||||
|
||||
undici/lib/fetch/body.js:
|
||||
(*! formdata-polyfill. MIT License. Jimmy Wärting <https://jimmy.warting.se/opensource> *)
|
||||
|
||||
undici/lib/websocket/frame.js:
|
||||
(*! ws. MIT License. Einar Otto Stangvik <einaros@gmail.com> *)
|
||||
|
||||
sax/lib/sax.js:
|
||||
(*! http://mths.be/fromcodepoint v0.1.0 by @mathias *)
|
||||
|
||||
@@ -88,4 +264,10 @@ mime-types/index.js:
|
||||
* Copyright(c) 2015 Douglas Christopher Wilson
|
||||
* MIT Licensed
|
||||
*)
|
||||
|
||||
undici/lib/fetch/body.js:
|
||||
(*! formdata-polyfill. MIT License. Jimmy Wärting <https://jimmy.warting.se/opensource> *)
|
||||
|
||||
undici/lib/websocket/frame.js:
|
||||
(*! ws. MIT License. Einar Otto Stangvik <einaros@gmail.com> *)
|
||||
*/
|
||||
Reference in new issue
Block a user