mirror of
https://github.com/docker/bake-action.git
synced 2026-11-30 05:27:47 +01:00
Merge pull request #436 from docker/dependabot/npm_and_yarn/fast-xml-builder-1.2.0
chore(deps): Bump fast-xml-builder from 1.1.4 to 1.2.0
This commit is contained in:
4 files changed
+185
-168
No files matched your search
+156
-156
@@ -1,135 +1,135 @@
|
||||
var Sst=Object.create;var PH=Object.defineProperty;var Bst=Object.getOwnPropertyDescriptor;var vst=Object.getOwnPropertyNames;var xst=Object.getPrototypeOf,_st=Object.prototype.hasOwnProperty;var Rst=(t,e)=>()=>(t&&(e=t(t=0)),e);var p=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),qpe=(t,e)=>{for(var r in e)PH(t,r,{get:e[r],enumerable:!0})},Tst=(t,e,r,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of vst(e))!_st.call(t,s)&&s!==r&&PH(t,s,{get:()=>e[s],enumerable:!(i=Bst(e,s))||i.enumerable});return t};var k=(t,e,r)=>(r=t!=null?Sst(xst(t)):{},Tst(e||!t||!t.__esModule?PH(r,"default",{value:t,enumerable:!0}):r,t));var Wpe=p(eb=>{"use strict";var iBr=require("net"),kst=require("tls"),UH=require("http"),zpe=require("https"),Lst=require("events"),sBr=require("assert"),Mst=require("util");eb.httpOverHttp=Fst;eb.httpsOverHttp=Ust;eb.httpOverHttps=qst;eb.httpsOverHttps=Gst;function Fst(t){var e=new td(t);return e.request=UH.request,e}function Ust(t){var e=new td(t);return e.request=UH.request,e.createSocket=Vpe,e.defaultPort=443,e}function qst(t){var e=new td(t);return e.request=zpe.request,e}function Gst(t){var e=new td(t);return e.request=zpe.request,e.createSocket=Vpe,e.defaultPort=443,e}function td(t){var e=this;e.options=t||{},e.proxyOptions=e.options.proxy||{},e.maxSockets=e.options.maxSockets||UH.Agent.defaultMaxSockets,e.requests=[],e.sockets=[],e.on("free",function(i,s,n,o){for(var a=$pe(s,n,o),c=0,u=e.requests.length;c<u;++c){var l=e.requests[c];if(l.host===a.host&&l.port===a.port){e.requests.splice(c,1),l.request.onSocket(i);return}}i.destroy(),e.removeSocket(i)})}Mst.inherits(td,Lst.EventEmitter);td.prototype.addRequest=function(e,r,i,s){var n=this,o=qH({request:e},n.options,$pe(r,i,s));if(n.sockets.length>=this.maxSockets){n.requests.push(o);return}n.createSocket(o,function(a){a.on("free",c),a.on("close",u),a.on("agentRemove",u),e.onSocket(a);function c(){n.emit("free",a,o)}function u(l){n.removeSocket(a),a.removeListener("free",c),a.removeListener("close",u),a.removeListener("agentRemove",u)}})};td.prototype.createSocket=function(e,r){var i=this,s={};i.sockets.push(s);var n=qH({},i.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:!1,headers:{host:e.host+":"+e.port}});e.localAddress&&(n.localAddress=e.localAddress),n.proxyAuth&&(n.headers=n.headers||{},n.headers["Proxy-Authorization"]="Basic "+new Buffer(n.proxyAuth).toString("base64")),sm("making CONNECT request");var o=i.request(n);o.useChunkedEncodingByDefault=!1,o.once("response",a),o.once("upgrade",c),o.once("connect",u),o.once("error",l),o.end();function a(f){f.upgrade=!0}function c(f,h,d){process.nextTick(function(){u(f,h,d)})}function u(f,h,d){if(o.removeAllListeners(),h.removeAllListeners(),f.statusCode!==200){sm("tunneling socket could not be established, statusCode=%d",f.statusCode),h.destroy();var m=new Error("tunneling socket could not be established, statusCode="+f.statusCode);m.code="ECONNRESET",e.request.emit("error",m),i.removeSocket(s);return}if(d.length>0){sm("got illegal response body from proxy"),h.destroy();var m=new Error("got illegal response body from proxy");m.code="ECONNRESET",e.request.emit("error",m),i.removeSocket(s);return}return sm("tunneling connection has established"),i.sockets[i.sockets.indexOf(s)]=h,r(h)}function l(f){o.removeAllListeners(),sm(`tunneling socket could not be established, cause=%s
|
||||
`,f.message,f.stack);var h=new Error("tunneling socket could not be established, cause="+f.message);h.code="ECONNRESET",e.request.emit("error",h),i.removeSocket(s)}};td.prototype.removeSocket=function(e){var r=this.sockets.indexOf(e);if(r!==-1){this.sockets.splice(r,1);var i=this.requests.shift();i&&this.createSocket(i,function(s){i.request.onSocket(s)})}};function Vpe(t,e){var r=this;td.prototype.createSocket.call(r,t,function(i){var s=t.request.getHeader("host"),n=qH({},r.options,{socket:i,servername:s?s.replace(/:.*$/,""):t.host}),o=kst.connect(0,n);r.sockets[r.sockets.indexOf(i)]=o,e(o)})}function $pe(t,e,r){return typeof t=="string"?{host:t,port:e,localAddress:r}:t}function qH(t){for(var e=1,r=arguments.length;e<r;++e){var i=arguments[e];if(typeof i=="object")for(var s=Object.keys(i),n=0,o=s.length;n<o;++n){var a=s[n];i[a]!==void 0&&(t[a]=i[a])}}return t}var sm;process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)?sm=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)}:sm=function(){};eb.debug=sm});var GH=p((oBr,Jpe)=>{Jpe.exports=Wpe()});var Qr=p((aBr,Ype)=>{Ype.exports={kClose:Symbol("close"),kDestroy:Symbol("destroy"),kDispatch:Symbol("dispatch"),kUrl:Symbol("url"),kWriting:Symbol("writing"),kResuming:Symbol("resuming"),kQueue:Symbol("queue"),kConnect:Symbol("connect"),kConnecting:Symbol("connecting"),kKeepAliveDefaultTimeout:Symbol("default keep alive timeout"),kKeepAliveMaxTimeout:Symbol("max keep alive timeout"),kKeepAliveTimeoutThreshold:Symbol("keep alive timeout threshold"),kKeepAliveTimeoutValue:Symbol("keep alive timeout"),kKeepAlive:Symbol("keep alive"),kHeadersTimeout:Symbol("headers timeout"),kBodyTimeout:Symbol("body timeout"),kServerName:Symbol("server name"),kLocalAddress:Symbol("local address"),kHost:Symbol("host"),kNoRef:Symbol("no ref"),kBodyUsed:Symbol("used"),kBody:Symbol("abstracted request body"),kRunning:Symbol("running"),kBlocking:Symbol("blocking"),kPending:Symbol("pending"),kSize:Symbol("size"),kBusy:Symbol("busy"),kQueued:Symbol("queued"),kFree:Symbol("free"),kConnected:Symbol("connected"),kClosed:Symbol("closed"),kNeedDrain:Symbol("need drain"),kReset:Symbol("reset"),kDestroyed:Symbol.for("nodejs.stream.destroyed"),kResume:Symbol("resume"),kOnError:Symbol("on error"),kMaxHeadersSize:Symbol("max headers size"),kRunningIdx:Symbol("running index"),kPendingIdx:Symbol("pending index"),kError:Symbol("error"),kClients:Symbol("clients"),kClient:Symbol("client"),kParser:Symbol("parser"),kOnDestroyed:Symbol("destroy callbacks"),kPipelining:Symbol("pipelining"),kSocket:Symbol("socket"),kHostHeader:Symbol("host header"),kConnector:Symbol("connector"),kStrictContentLength:Symbol("strict content length"),kMaxRedirections:Symbol("maxRedirections"),kMaxRequests:Symbol("maxRequestsPerClient"),kProxy:Symbol("proxy agent options"),kCounter:Symbol("socket request counter"),kInterceptors:Symbol("dispatch interceptors"),kMaxResponseSize:Symbol("max response size"),kHTTP2Session:Symbol("http2Session"),kHTTP2SessionState:Symbol("http2Session state"),kRetryHandlerDefaultRetry:Symbol("retry agent default retry"),kConstruct:Symbol("constructable"),kListeners:Symbol("listeners"),kHTTPContext:Symbol("http context"),kMaxConcurrentStreams:Symbol("max concurrent streams"),kNoProxyAgent:Symbol("no proxy agent"),kHttpProxyAgent:Symbol("http proxy agent"),kHttpsProxyAgent:Symbol("https proxy agent")}});var Vt=p((cBr,wme)=>{"use strict";var Kpe=Symbol.for("undici.error.UND_ERR"),kr=class extends Error{constructor(e){super(e),this.name="UndiciError",this.code="UND_ERR"}static[Symbol.hasInstance](e){return e&&e[Kpe]===!0}[Kpe]=!0},Xpe=Symbol.for("undici.error.UND_ERR_CONNECT_TIMEOUT"),HH=class extends kr{constructor(e){super(e),this.name="ConnectTimeoutError",this.message=e||"Connect Timeout Error",this.code="UND_ERR_CONNECT_TIMEOUT"}static[Symbol.hasInstance](e){return e&&e[Xpe]===!0}[Xpe]=!0},Zpe=Symbol.for("undici.error.UND_ERR_HEADERS_TIMEOUT"),jH=class extends kr{constructor(e){super(e),this.name="HeadersTimeoutError",this.message=e||"Headers Timeout Error",this.code="UND_ERR_HEADERS_TIMEOUT"}static[Symbol.hasInstance](e){return e&&e[Zpe]===!0}[Zpe]=!0},eme=Symbol.for("undici.error.UND_ERR_HEADERS_OVERFLOW"),zH=class extends kr{constructor(e){super(e),this.name="HeadersOverflowError",this.message=e||"Headers Overflow Error",this.code="UND_ERR_HEADERS_OVERFLOW"}static[Symbol.hasInstance](e){return e&&e[eme]===!0}[eme]=!0},tme=Symbol.for("undici.error.UND_ERR_BODY_TIMEOUT"),VH=class extends kr{constructor(e){super(e),this.name="BodyTimeoutError",this.message=e||"Body Timeout Error",this.code="UND_ERR_BODY_TIMEOUT"}static[Symbol.hasInstance](e){return e&&e[tme]===!0}[tme]=!0},rme=Symbol.for("undici.error.UND_ERR_RESPONSE_STATUS_CODE"),$H=class extends kr{constructor(e,r,i,s){super(e),this.name="ResponseStatusCodeError",this.message=e||"Response Status Code Error",this.code="UND_ERR_RESPONSE_STATUS_C
Line truncated
|
||||
`)||t.includes("\r")||t.includes("\0"))===!1}function sat(t,e){let{headersList:r}=e,i=(r.get("referrer-policy",!0)??"").split(","),s="";if(i.length>0)for(let n=i.length;n!==0;n--){let o=i[n-1].trim();if(Got.has(o)){s=o;break}}s!==""&&(t.referrerPolicy=s)}function nat(){return"allowed"}function oat(){return"success"}function aat(){return"success"}function cat(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}function uat(t){let e=t.origin;if(!(e==="client"||e===void 0)){if(t.responseTainting==="cors"||t.mode==="websocket")t.headersList.append("origin",e,!0);else if(t.method!=="GET"&&t.method!=="HEAD"){switch(t.referrerPolicy){case"no-referrer":e=null;break;case"no-referrer-when-downgrade":case"strict-origin":case"strict-origin-when-cross-origin":t.origin&&M6(t.origin)&&!M6(WB(t))&&(e=null);break;case"same-origin":V1(t,WB(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}function lb(t,e){return t}function lat(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:lb(t.domainLookupStartTime,r),domainLookupEndTime:lb(t.domainLookupEndTime,r),connectionStartTime:lb(t.connectionStartTime,r),connectionEndTime:lb(t.connectionEndTime,r),secureConnectionStartTime:lb(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}function fat(t){return lb($ot.now(),t)}function hat(t){return{startTime:t.startTime??0,redirectStartTime:0,redirectEndTime:0,postRedirectStartTime:t.startTime??0,finalServiceWorkerStartTime:0,finalNetworkResponseStartTime:0,finalNetworkRequestStartTime:0,endTime:0,encodedBodySize:0,decodedBodySize:0,finalConnectionTimingInfo:null}}function QAe(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function dat(t){return{referrerPolicy:t.referrerPolicy}}function pat(t){let e=t.referrerPolicy;Tg(e);let r=null;if(t.referrer==="client"){let a=RAe();if(!a||a.origin==="null")return"no-referrer";r=new URL(a)}else t.referrer instanceof URL&&(r=t.referrer);let i=L6(r),s=L6(r,!0);i.toString().length>4096&&(i=s);let n=V1(t,i),o=$B(i)&&!$B(t.url);switch(e){case"origin":return s??L6(r,!0);case"unsafe-url":return i;case"same-origin":return n?s:"no-referrer";case"origin-when-cross-origin":return n?i:s;case"strict-origin-when-cross-origin":{let a=WB(t);return V1(i,a)?i:$B(i)&&!$B(a)?"no-referrer":s}default:return o?"no-referrer":s}}function L6(t,e){return Tg(t instanceof URL),t=new URL(t),t.protocol==="file:"||t.protocol==="about:"||t.protocol==="blank:"?"no-referrer":(t.username="",t.password="",t.hash="",e&&(t.pathname="",t.search=""),t)}function $B(t){if(!(t instanceof URL))return!1;if(t.href==="about:blank"||t.href==="about:srcdoc"||t.protocol==="data:"||t.protocol==="file:")return!0;return e(t.origin);function e(r){if(r==null||r==="null")return!1;let i=new URL(r);return!!(i.protocol==="https:"||i.protocol==="wss:"||/^127(?:\.[0-9]+){0,2}\.[0-9]+$|^\[(?:0*:)*?:?0*1\]$/.test(i.hostname)||i.hostname==="localhost"||i.hostname.includes("localhost.")||i.hostname.endsWith(".localhost"))}}function mat(t,e){if(z1===void 0)return!0;let r=kAe(e);if(r==="no metadata"||r.length===0)return!0;let i=gat(r),s=yat(r,i);for(let n of s){let o=n.algo,a=n.hash,c=z1.createHash(o).update(t).digest("base64");if(c[c.length-1]==="="&&(c[c.length-2]==="="?c=c.slice(0,-2):c=c.slice(0,-1)),Eat(c,a))return!0}return!1}var Aat=/(?<algo>sha256|sha384|sha512)-((?<hash>[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;function kAe(t){let e=[],r=!0;for(let i of t.split(" ")){r=!1;let s=Aat.exec(i);if(s===null||s.groups===void 0||s.groups.algo===void 0)continue;let n=s.groups.algo.toLowerCase();NAe.includes(n)&&e.push(s.groups)}return r===!0?"no metadata":e}function gat(t){let e=t[0].algo;if(e[3]==="5")return e;for(let r=1;r<t.length;++r){let i=t[r];if(i.algo[3]==="5"){e="sha512";break}else{if(e[3]==="3")continue;i.algo[3]==="3"&&(e="sha384")}}return e}function yat(t,e){if(t.length===1)return t;let r=0;for(let i=0;i<t.length;++i)t[i].algo===e&&(t[r++]=t[i]);return t.length=r,t}function Eat(t,e){if(t.length!==e.length)return!1;for(let r=0;r<t.length;++r)if(t[r]!==e[r]){if(t[r]==="+"&&e[r]==="-"||t[r]==="/"&&e[r]==="_")continue;return!1}return!0}function bat(t){}function V1(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}function wat(){let t,e;return{promise:new Promise((i,s)=>{t=i,e=s}),resolve:t,reject:e}}function Cat(t){return t.controller.state==="aborted"}function Iat(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}function Sat(t){return Yot[t.toLowerCase()]??t}function Bat(t){let e=JSON.stringify(t);if(e===void 0)throw new TypeError("Value is not JSON serializable");return Tg(typeof e=="string"),e}var vat=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function LAe(t,e,r=0,i=1){class s{
Line truncated
|
||||
`);function rct(t){for(let e=0;e<t.length;++e)if((t.charCodeAt(e)&-128)!==0)return!1;return!0}function ict(t){let e=t.length;if(e<27||e>70)return!1;for(let r=0;r<e;++r){let i=t.charCodeAt(r);if(!(i>=48&&i<=57||i>=65&&i<=90||i>=97&&i<=122||i===39||i===45||i===95))return!1}return!0}function sct(t,e){W1(e!=="failure"&&e.essence==="multipart/form-data");let r=e.parameters.get("boundary");if(r===void 0)return"failure";let i=Buffer.from(`--${r}`,"utf8"),s=[],n={position:0};for(;t[n.position]===13&&t[n.position+1]===10;)n.position+=2;let o=t.length;for(;t[o-1]===10&&t[o-2]===13;)o-=2;for(o!==t.length&&(t=t.subarray(0,o));;){if(t.subarray(n.position,n.position+i.length).equals(i))n.position+=i.length;else return"failure";if(n.position===t.length-2&&J1(t,ect,n)||n.position===t.length-4&&J1(t,tct,n))return s;if(t[n.position]!==13||t[n.position+1]!==10)return"failure";n.position+=2;let a=nct(t,n);if(a==="failure")return"failure";let{name:c,filename:u,contentType:l,encoding:f}=a;n.position+=2;let h;{let m=t.indexOf(i.subarray(2),n.position);if(m===-1)return"failure";h=t.subarray(n.position,m-4),n.position+=h.length,f==="base64"&&(h=Buffer.from(h.toString(),"base64"))}if(t[n.position]!==13||t[n.position+1]!==10)return"failure";n.position+=2;let d;u!==null?(l??="text/plain",rct(l)||(l=""),d=new Xat([h],u,{type:l})):d=$at(Buffer.from(h)),W1(JAe(c)),W1(typeof d=="string"&&JAe(d)||Jat(d)),s.push(Yat(c,d,u))}}function nct(t,e){let r=null,i=null,s=null,n=null;for(;;){if(t[e.position]===13&&t[e.position+1]===10)return r===null?"failure":{name:r,filename:i,contentType:s,encoding:n};let o=hb(a=>a!==10&&a!==13&&a!==58,t,e);if(o=z6(o,!0,!0,a=>a===9||a===32),!Wat.test(o.toString())||t[e.position]!==58)return"failure";switch(e.position++,hb(a=>a===32||a===9,t,e),Vat(o)){case"content-disposition":{if(r=i=null,!J1(t,Zat,e)||(e.position+=17,r=XAe(t,e),r===null))return"failure";if(J1(t,KAe,e)){let a=e.position+KAe.length;if(t[a]===42&&(e.position+=1,a+=1),t[a]!==61||t[a+1]!==34||(e.position+=12,i=XAe(t,e),i===null))return"failure"}break}case"content-type":{let a=hb(c=>c!==10&&c!==13,t,e);a=z6(a,!1,!0,c=>c===9||c===32),s=YAe(a);break}case"content-transfer-encoding":{let a=hb(c=>c!==10&&c!==13,t,e);a=z6(a,!1,!0,c=>c===9||c===32),n=YAe(a);break}default:hb(a=>a!==10&&a!==13,t,e)}if(t[e.position]!==13&&t[e.position+1]!==10)return"failure";e.position+=2}}function XAe(t,e){W1(t[e.position-1]===34);let r=hb(i=>i!==10&&i!==13&&i!==34,t,e);return t[e.position]!==34?null:(e.position++,r=new TextDecoder().decode(r).replace(/%0A/ig,`
|
||||
`).replace(/%0D/ig,"\r").replace(/%22/g,'"'),r)}function hb(t,e,r){let i=r.position;for(;i<e.length&&t(e[i]);)++i;return e.subarray(r.position,r.position=i)}function z6(t,e,r,i){let s=0,n=t.length-1;if(e)for(;s<t.length&&i(t[s]);)s++;if(r)for(;n>0&&i(t[n]);)n--;return s===0&&n===t.length-1?t:t.subarray(s,n+1)}function J1(t,e,r){if(t.length<e.length)return!1;for(let i=0;i<e.length;i++)if(e[i]!==t[r.position+i])return!1;return!0}ZAe.exports={multipartFormDataParser:sct,validateBoundary:ict}});var mb=p((OBr,lge)=>{"use strict";var KB=wt(),{ReadableStreamFrom:oct,isBlobLike:tge,isReadableStreamLike:act,readableStreamClose:cct,createDeferredPromise:uct,fullyReadBody:lct,extractMimeType:fct,utf8DecodeBytes:sge}=Sa(),{FormData:rge}=YB(),{kState:pb}=nm(),{webidl:hct}=Ws(),{Blob:dct}=require("node:buffer"),V6=require("node:assert"),{isErrored:nge,isDisturbed:pct}=require("node:stream"),{isArrayBuffer:mct}=require("node:util/types"),{serializeAMimeType:Act}=Go(),{multipartFormDataParser:gct}=ege(),$6;try{let t=require("node:crypto");$6=e=>t.randomInt(0,e)}catch{$6=t=>Math.floor(Math.random(t))}var Y1=new TextEncoder;function yct(){}var oge=globalThis.FinalizationRegistry&&process.version.indexOf("v18")!==0,age;oge&&(age=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!pct(e)&&!nge(e)&&e.cancel("Response object has been garbage collected").catch(yct)}));function cge(t,e=!1){let r=null;t instanceof ReadableStream?r=t:tge(t)?r=t.stream():r=new ReadableStream({async pull(c){let u=typeof s=="string"?Y1.encode(s):s;u.byteLength&&c.enqueue(u),queueMicrotask(()=>cct(c))},start(){},type:"bytes"}),V6(act(r));let i=null,s=null,n=null,o=null;if(typeof t=="string")s=t,o="text/plain;charset=UTF-8";else if(t instanceof URLSearchParams)s=t.toString(),o="application/x-www-form-urlencoded;charset=UTF-8";else if(mct(t))s=new Uint8Array(t.slice());else if(ArrayBuffer.isView(t))s=new Uint8Array(t.buffer.slice(t.byteOffset,t.byteOffset+t.byteLength));else if(KB.isFormDataLike(t)){let c=`----formdata-undici-0${`${$6(1e11)}`.padStart(11,"0")}`,u=`--${c}\r
|
||||
var kst=Object.create;var UH=Object.defineProperty;var Lst=Object.getOwnPropertyDescriptor;var Fst=Object.getOwnPropertyNames;var Mst=Object.getPrototypeOf,Ust=Object.prototype.hasOwnProperty;var qst=(t,e)=>()=>(t&&(e=t(t=0)),e);var p=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),Ype=(t,e)=>{for(var r in e)UH(t,r,{get:e[r],enumerable:!0})},Gst=(t,e,r,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of Fst(e))!Ust.call(t,s)&&s!==r&&UH(t,s,{get:()=>e[s],enumerable:!(i=Lst(e,s))||i.enumerable});return t};var k=(t,e,r)=>(r=t!=null?kst(Mst(t)):{},Gst(e||!t||!t.__esModule?UH(r,"default",{value:t,enumerable:!0}):r,t));var ime=p(rb=>{"use strict";var CBr=require("net"),Wst=require("tls"),VH=require("http"),eme=require("https"),Jst=require("events"),IBr=require("assert"),Yst=require("util");rb.httpOverHttp=Kst;rb.httpsOverHttp=Xst;rb.httpOverHttps=Zst;rb.httpsOverHttps=ent;function Kst(t){var e=new ed(t);return e.request=VH.request,e}function Xst(t){var e=new ed(t);return e.request=VH.request,e.createSocket=tme,e.defaultPort=443,e}function Zst(t){var e=new ed(t);return e.request=eme.request,e}function ent(t){var e=new ed(t);return e.request=eme.request,e.createSocket=tme,e.defaultPort=443,e}function ed(t){var e=this;e.options=t||{},e.proxyOptions=e.options.proxy||{},e.maxSockets=e.options.maxSockets||VH.Agent.defaultMaxSockets,e.requests=[],e.sockets=[],e.on("free",function(i,s,n,o){for(var a=rme(s,n,o),c=0,u=e.requests.length;c<u;++c){var l=e.requests[c];if(l.host===a.host&&l.port===a.port){e.requests.splice(c,1),l.request.onSocket(i);return}}i.destroy(),e.removeSocket(i)})}Yst.inherits(ed,Jst.EventEmitter);ed.prototype.addRequest=function(e,r,i,s){var n=this,o=$H({request:e},n.options,rme(r,i,s));if(n.sockets.length>=this.maxSockets){n.requests.push(o);return}n.createSocket(o,function(a){a.on("free",c),a.on("close",u),a.on("agentRemove",u),e.onSocket(a);function c(){n.emit("free",a,o)}function u(l){n.removeSocket(a),a.removeListener("free",c),a.removeListener("close",u),a.removeListener("agentRemove",u)}})};ed.prototype.createSocket=function(e,r){var i=this,s={};i.sockets.push(s);var n=$H({},i.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:!1,headers:{host:e.host+":"+e.port}});e.localAddress&&(n.localAddress=e.localAddress),n.proxyAuth&&(n.headers=n.headers||{},n.headers["Proxy-Authorization"]="Basic "+new Buffer(n.proxyAuth).toString("base64")),im("making CONNECT request");var o=i.request(n);o.useChunkedEncodingByDefault=!1,o.once("response",a),o.once("upgrade",c),o.once("connect",u),o.once("error",l),o.end();function a(f){f.upgrade=!0}function c(f,h,d){process.nextTick(function(){u(f,h,d)})}function u(f,h,d){if(o.removeAllListeners(),h.removeAllListeners(),f.statusCode!==200){im("tunneling socket could not be established, statusCode=%d",f.statusCode),h.destroy();var m=new Error("tunneling socket could not be established, statusCode="+f.statusCode);m.code="ECONNRESET",e.request.emit("error",m),i.removeSocket(s);return}if(d.length>0){im("got illegal response body from proxy"),h.destroy();var m=new Error("got illegal response body from proxy");m.code="ECONNRESET",e.request.emit("error",m),i.removeSocket(s);return}return im("tunneling connection has established"),i.sockets[i.sockets.indexOf(s)]=h,r(h)}function l(f){o.removeAllListeners(),im(`tunneling socket could not be established, cause=%s
|
||||
`,f.message,f.stack);var h=new Error("tunneling socket could not be established, cause="+f.message);h.code="ECONNRESET",e.request.emit("error",h),i.removeSocket(s)}};ed.prototype.removeSocket=function(e){var r=this.sockets.indexOf(e);if(r!==-1){this.sockets.splice(r,1);var i=this.requests.shift();i&&this.createSocket(i,function(s){i.request.onSocket(s)})}};function tme(t,e){var r=this;ed.prototype.createSocket.call(r,t,function(i){var s=t.request.getHeader("host"),n=$H({},r.options,{socket:i,servername:s?s.replace(/:.*$/,""):t.host}),o=Wst.connect(0,n);r.sockets[r.sockets.indexOf(i)]=o,e(o)})}function rme(t,e,r){return typeof t=="string"?{host:t,port:e,localAddress:r}:t}function $H(t){for(var e=1,r=arguments.length;e<r;++e){var i=arguments[e];if(typeof i=="object")for(var s=Object.keys(i),n=0,o=s.length;n<o;++n){var a=s[n];i[a]!==void 0&&(t[a]=i[a])}}return t}var im;process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)?im=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)}:im=function(){};rb.debug=im});var WH=p((BBr,sme)=>{sme.exports=ime()});var Qr=p((vBr,nme)=>{nme.exports={kClose:Symbol("close"),kDestroy:Symbol("destroy"),kDispatch:Symbol("dispatch"),kUrl:Symbol("url"),kWriting:Symbol("writing"),kResuming:Symbol("resuming"),kQueue:Symbol("queue"),kConnect:Symbol("connect"),kConnecting:Symbol("connecting"),kKeepAliveDefaultTimeout:Symbol("default keep alive timeout"),kKeepAliveMaxTimeout:Symbol("max keep alive timeout"),kKeepAliveTimeoutThreshold:Symbol("keep alive timeout threshold"),kKeepAliveTimeoutValue:Symbol("keep alive timeout"),kKeepAlive:Symbol("keep alive"),kHeadersTimeout:Symbol("headers timeout"),kBodyTimeout:Symbol("body timeout"),kServerName:Symbol("server name"),kLocalAddress:Symbol("local address"),kHost:Symbol("host"),kNoRef:Symbol("no ref"),kBodyUsed:Symbol("used"),kBody:Symbol("abstracted request body"),kRunning:Symbol("running"),kBlocking:Symbol("blocking"),kPending:Symbol("pending"),kSize:Symbol("size"),kBusy:Symbol("busy"),kQueued:Symbol("queued"),kFree:Symbol("free"),kConnected:Symbol("connected"),kClosed:Symbol("closed"),kNeedDrain:Symbol("need drain"),kReset:Symbol("reset"),kDestroyed:Symbol.for("nodejs.stream.destroyed"),kResume:Symbol("resume"),kOnError:Symbol("on error"),kMaxHeadersSize:Symbol("max headers size"),kRunningIdx:Symbol("running index"),kPendingIdx:Symbol("pending index"),kError:Symbol("error"),kClients:Symbol("clients"),kClient:Symbol("client"),kParser:Symbol("parser"),kOnDestroyed:Symbol("destroy callbacks"),kPipelining:Symbol("pipelining"),kSocket:Symbol("socket"),kHostHeader:Symbol("host header"),kConnector:Symbol("connector"),kStrictContentLength:Symbol("strict content length"),kMaxRedirections:Symbol("maxRedirections"),kMaxRequests:Symbol("maxRequestsPerClient"),kProxy:Symbol("proxy agent options"),kCounter:Symbol("socket request counter"),kInterceptors:Symbol("dispatch interceptors"),kMaxResponseSize:Symbol("max response size"),kHTTP2Session:Symbol("http2Session"),kHTTP2SessionState:Symbol("http2Session state"),kRetryHandlerDefaultRetry:Symbol("retry agent default retry"),kConstruct:Symbol("constructable"),kListeners:Symbol("listeners"),kHTTPContext:Symbol("http context"),kMaxConcurrentStreams:Symbol("max concurrent streams"),kNoProxyAgent:Symbol("no proxy agent"),kHttpProxyAgent:Symbol("http proxy agent"),kHttpsProxyAgent:Symbol("https proxy agent")}});var Vt=p((xBr,Nme)=>{"use strict";var ome=Symbol.for("undici.error.UND_ERR"),kr=class extends Error{constructor(e){super(e),this.name="UndiciError",this.code="UND_ERR"}static[Symbol.hasInstance](e){return e&&e[ome]===!0}[ome]=!0},ame=Symbol.for("undici.error.UND_ERR_CONNECT_TIMEOUT"),JH=class extends kr{constructor(e){super(e),this.name="ConnectTimeoutError",this.message=e||"Connect Timeout Error",this.code="UND_ERR_CONNECT_TIMEOUT"}static[Symbol.hasInstance](e){return e&&e[ame]===!0}[ame]=!0},cme=Symbol.for("undici.error.UND_ERR_HEADERS_TIMEOUT"),YH=class extends kr{constructor(e){super(e),this.name="HeadersTimeoutError",this.message=e||"Headers Timeout Error",this.code="UND_ERR_HEADERS_TIMEOUT"}static[Symbol.hasInstance](e){return e&&e[cme]===!0}[cme]=!0},ume=Symbol.for("undici.error.UND_ERR_HEADERS_OVERFLOW"),KH=class extends kr{constructor(e){super(e),this.name="HeadersOverflowError",this.message=e||"Headers Overflow Error",this.code="UND_ERR_HEADERS_OVERFLOW"}static[Symbol.hasInstance](e){return e&&e[ume]===!0}[ume]=!0},lme=Symbol.for("undici.error.UND_ERR_BODY_TIMEOUT"),XH=class extends kr{constructor(e){super(e),this.name="BodyTimeoutError",this.message=e||"Body Timeout Error",this.code="UND_ERR_BODY_TIMEOUT"}static[Symbol.hasInstance](e){return e&&e[lme]===!0}[lme]=!0},fme=Symbol.for("undici.error.UND_ERR_RESPONSE_STATUS_CODE"),ZH=class extends kr{constructor(e,r,i,s){super(e),this.name="ResponseStatusCodeError",this.message=e||"Response Status Code Error",this.code="UND_ERR_RESPONSE_STATUS_C
Line truncated
|
||||
`)||t.includes("\r")||t.includes("\0"))===!1}function Aat(t,e){let{headersList:r}=e,i=(r.get("referrer-policy",!0)??"").split(","),s="";if(i.length>0)for(let n=i.length;n!==0;n--){let o=i[n-1].trim();if(eat.has(o)){s=o;break}}s!==""&&(t.referrerPolicy=s)}function gat(){return"allowed"}function yat(){return"success"}function Eat(){return"success"}function bat(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}function wat(t){let e=t.origin;if(!(e==="client"||e===void 0)){if(t.responseTainting==="cors"||t.mode==="websocket")t.headersList.append("origin",e,!0);else if(t.method!=="GET"&&t.method!=="HEAD"){switch(t.referrerPolicy){case"no-referrer":e=null;break;case"no-referrer-when-downgrade":case"strict-origin":case"strict-origin-when-cross-origin":t.origin&&j6(t.origin)&&!j6(KB(t))&&(e=null);break;case"same-origin":J2(t,KB(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}function hb(t,e){return t}function Cat(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:hb(t.domainLookupStartTime,r),domainLookupEndTime:hb(t.domainLookupEndTime,r),connectionStartTime:hb(t.connectionStartTime,r),connectionEndTime:hb(t.connectionEndTime,r),secureConnectionStartTime:hb(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}function Iat(t){return hb(nat.now(),t)}function Sat(t){return{startTime:t.startTime??0,redirectStartTime:0,redirectEndTime:0,postRedirectStartTime:t.startTime??0,finalServiceWorkerStartTime:0,finalNetworkResponseStartTime:0,finalNetworkRequestStartTime:0,endTime:0,encodedBodySize:0,decodedBodySize:0,finalConnectionTimingInfo:null}}function jAe(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function Bat(t){return{referrerPolicy:t.referrerPolicy}}function vat(t){let e=t.referrerPolicy;Tg(e);let r=null;if(t.referrer==="client"){let a=FAe();if(!a||a.origin==="null")return"no-referrer";r=new URL(a)}else t.referrer instanceof URL&&(r=t.referrer);let i=H6(r),s=H6(r,!0);i.toString().length>4096&&(i=s);let n=J2(t,i),o=YB(i)&&!YB(t.url);switch(e){case"origin":return s??H6(r,!0);case"unsafe-url":return i;case"same-origin":return n?s:"no-referrer";case"origin-when-cross-origin":return n?i:s;case"strict-origin-when-cross-origin":{let a=KB(t);return J2(i,a)?i:YB(i)&&!YB(a)?"no-referrer":s}default:return o?"no-referrer":s}}function H6(t,e){return Tg(t instanceof URL),t=new URL(t),t.protocol==="file:"||t.protocol==="about:"||t.protocol==="blank:"?"no-referrer":(t.username="",t.password="",t.hash="",e&&(t.pathname="",t.search=""),t)}function YB(t){if(!(t instanceof URL))return!1;if(t.href==="about:blank"||t.href==="about:srcdoc"||t.protocol==="data:"||t.protocol==="file:")return!0;return e(t.origin);function e(r){if(r==null||r==="null")return!1;let i=new URL(r);return!!(i.protocol==="https:"||i.protocol==="wss:"||/^127(?:\.[0-9]+){0,2}\.[0-9]+$|^\[(?:0*:)*?:?0*1\]$/.test(i.hostname)||i.hostname==="localhost"||i.hostname.includes("localhost.")||i.hostname.endsWith(".localhost"))}}function xat(t,e){if(W2===void 0)return!0;let r=zAe(e);if(r==="no metadata"||r.length===0)return!0;let i=Rat(r),s=Nat(r,i);for(let n of s){let o=n.algo,a=n.hash,c=W2.createHash(o).update(t).digest("base64");if(c[c.length-1]==="="&&(c[c.length-2]==="="?c=c.slice(0,-2):c=c.slice(0,-1)),Tat(c,a))return!0}return!1}var _at=/(?<algo>sha256|sha384|sha512)-((?<hash>[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;function zAe(t){let e=[],r=!0;for(let i of t.split(" ")){r=!1;let s=_at.exec(i);if(s===null||s.groups===void 0||s.groups.algo===void 0)continue;let n=s.groups.algo.toLowerCase();UAe.includes(n)&&e.push(s.groups)}return r===!0?"no metadata":e}function Rat(t){let e=t[0].algo;if(e[3]==="5")return e;for(let r=1;r<t.length;++r){let i=t[r];if(i.algo[3]==="5"){e="sha512";break}else{if(e[3]==="3")continue;i.algo[3]==="3"&&(e="sha384")}}return e}function Nat(t,e){if(t.length===1)return t;let r=0;for(let i=0;i<t.length;++i)t[i].algo===e&&(t[r++]=t[i]);return t.length=r,t}function Tat(t,e){if(t.length!==e.length)return!1;for(let r=0;r<t.length;++r)if(t[r]!==e[r]){if(t[r]==="+"&&e[r]==="-"||t[r]==="/"&&e[r]==="_")continue;return!1}return!0}function Dat(t){}function J2(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}function Oat(){let t,e;return{promise:new Promise((i,s)=>{t=i,e=s}),resolve:t,reject:e}}function Pat(t){return t.controller.state==="aborted"}function Qat(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}function kat(t){return cat[t.toLowerCase()]??t}function Lat(t){let e=JSON.stringify(t);if(e===void 0)throw new TypeError("Value is not JSON serializable");return Tg(typeof e=="string"),e}var Fat=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function VAe(t,e,r=0,i=1){class s{
Line truncated
|
||||
`);function pct(t){for(let e=0;e<t.length;++e)if((t.charCodeAt(e)&-128)!==0)return!1;return!0}function mct(t){let e=t.length;if(e<27||e>70)return!1;for(let r=0;r<e;++r){let i=t.charCodeAt(r);if(!(i>=48&&i<=57||i>=65&&i<=90||i>=97&&i<=122||i===39||i===45||i===95))return!1}return!0}function Act(t,e){K2(e!=="failure"&&e.essence==="multipart/form-data");let r=e.parameters.get("boundary");if(r===void 0)return"failure";let i=Buffer.from(`--${r}`,"utf8"),s=[],n={position:0};for(;t[n.position]===13&&t[n.position+1]===10;)n.position+=2;let o=t.length;for(;t[o-1]===10&&t[o-2]===13;)o-=2;for(o!==t.length&&(t=t.subarray(0,o));;){if(t.subarray(n.position,n.position+i.length).equals(i))n.position+=i.length;else return"failure";if(n.position===t.length-2&&X2(t,hct,n)||n.position===t.length-4&&X2(t,dct,n))return s;if(t[n.position]!==13||t[n.position+1]!==10)return"failure";n.position+=2;let a=gct(t,n);if(a==="failure")return"failure";let{name:c,filename:u,contentType:l,encoding:f}=a;n.position+=2;let h;{let m=t.indexOf(i.subarray(2),n.position);if(m===-1)return"failure";h=t.subarray(n.position,m-4),n.position+=h.length,f==="base64"&&(h=Buffer.from(h.toString(),"base64"))}if(t[n.position]!==13||t[n.position+1]!==10)return"failure";n.position+=2;let d;u!==null?(l??="text/plain",pct(l)||(l=""),d=new lct([h],u,{type:l})):d=nct(Buffer.from(h)),K2(sge(c)),K2(typeof d=="string"&&sge(d)||act(d)),s.push(cct(c,d,u))}}function gct(t,e){let r=null,i=null,s=null,n=null;for(;;){if(t[e.position]===13&&t[e.position+1]===10)return r===null?"failure":{name:r,filename:i,contentType:s,encoding:n};let o=pb(a=>a!==10&&a!==13&&a!==58,t,e);if(o=K6(o,!0,!0,a=>a===9||a===32),!oct.test(o.toString())||t[e.position]!==58)return"failure";switch(e.position++,pb(a=>a===32||a===9,t,e),sct(o)){case"content-disposition":{if(r=i=null,!X2(t,fct,e)||(e.position+=17,r=age(t,e),r===null))return"failure";if(X2(t,oge,e)){let a=e.position+oge.length;if(t[a]===42&&(e.position+=1,a+=1),t[a]!==61||t[a+1]!==34||(e.position+=12,i=age(t,e),i===null))return"failure"}break}case"content-type":{let a=pb(c=>c!==10&&c!==13,t,e);a=K6(a,!1,!0,c=>c===9||c===32),s=nge(a);break}case"content-transfer-encoding":{let a=pb(c=>c!==10&&c!==13,t,e);a=K6(a,!1,!0,c=>c===9||c===32),n=nge(a);break}default:pb(a=>a!==10&&a!==13,t,e)}if(t[e.position]!==13&&t[e.position+1]!==10)return"failure";e.position+=2}}function age(t,e){K2(t[e.position-1]===34);let r=pb(i=>i!==10&&i!==13&&i!==34,t,e);return t[e.position]!==34?null:(e.position++,r=new TextDecoder().decode(r).replace(/%0A/ig,`
|
||||
`).replace(/%0D/ig,"\r").replace(/%22/g,'"'),r)}function pb(t,e,r){let i=r.position;for(;i<e.length&&t(e[i]);)++i;return e.subarray(r.position,r.position=i)}function K6(t,e,r,i){let s=0,n=t.length-1;if(e)for(;s<t.length&&i(t[s]);)s++;if(r)for(;n>0&&i(t[n]);)n--;return s===0&&n===t.length-1?t:t.subarray(s,n+1)}function X2(t,e,r){if(t.length<e.length)return!1;for(let i=0;i<e.length;i++)if(e[i]!==t[r.position+i])return!1;return!0}cge.exports={multipartFormDataParser:Act,validateBoundary:mct}});var gb=p((XBr,Ege)=>{"use strict";var ev=wt(),{ReadableStreamFrom:yct,isBlobLike:lge,isReadableStreamLike:Ect,readableStreamClose:bct,createDeferredPromise:wct,fullyReadBody:Cct,extractMimeType:Ict,utf8DecodeBytes:dge}=Sa(),{FormData:fge}=ZB(),{kState:Ab}=sm(),{webidl:Sct}=Ws(),{Blob:Bct}=require("node:buffer"),X6=require("node:assert"),{isErrored:pge,isDisturbed:vct}=require("node:stream"),{isArrayBuffer:xct}=require("node:util/types"),{serializeAMimeType:_ct}=Go(),{multipartFormDataParser:Rct}=uge(),Z6;try{let t=require("node:crypto");Z6=e=>t.randomInt(0,e)}catch{Z6=t=>Math.floor(Math.random(t))}var Z2=new TextEncoder;function Nct(){}var mge=globalThis.FinalizationRegistry&&process.version.indexOf("v18")!==0,Age;mge&&(Age=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!vct(e)&&!pge(e)&&e.cancel("Response object has been garbage collected").catch(Nct)}));function gge(t,e=!1){let r=null;t instanceof ReadableStream?r=t:lge(t)?r=t.stream():r=new ReadableStream({async pull(c){let u=typeof s=="string"?Z2.encode(s):s;u.byteLength&&c.enqueue(u),queueMicrotask(()=>bct(c))},start(){},type:"bytes"}),X6(Ect(r));let i=null,s=null,n=null,o=null;if(typeof t=="string")s=t,o="text/plain;charset=UTF-8";else if(t instanceof URLSearchParams)s=t.toString(),o="application/x-www-form-urlencoded;charset=UTF-8";else if(xct(t))s=new Uint8Array(t.slice());else if(ArrayBuffer.isView(t))s=new Uint8Array(t.buffer.slice(t.byteOffset,t.byteOffset+t.byteLength));else if(ev.isFormDataLike(t)){let c=`----formdata-undici-0${`${Z6(1e11)}`.padStart(11,"0")}`,u=`--${c}\r
|
||||
Content-Disposition: form-data`;let l=y=>y.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22"),f=y=>y.replace(/\r?\n|\r/g,`\r
|
||||
`),h=[],d=new Uint8Array([13,10]);n=0;let m=!1;for(let[y,g]of t)if(typeof g=="string"){let E=Y1.encode(u+`; name="${l(f(y))}"\r
|
||||
`),h=[],d=new Uint8Array([13,10]);n=0;let m=!1;for(let[y,g]of t)if(typeof g=="string"){let E=Z2.encode(u+`; name="${l(f(y))}"\r
|
||||
\r
|
||||
${f(g)}\r
|
||||
`);h.push(E),n+=E.byteLength}else{let E=Y1.encode(`${u}; name="${l(f(y))}"`+(g.name?`; filename="${l(g.name)}"`:"")+`\r
|
||||
`);h.push(E),n+=E.byteLength}else{let E=Z2.encode(`${u}; name="${l(f(y))}"`+(g.name?`; filename="${l(g.name)}"`:"")+`\r
|
||||
Content-Type: ${g.type||"application/octet-stream"}\r
|
||||
\r
|
||||
`);h.push(E,g,d),typeof g.size=="number"?n+=E.byteLength+g.size+d.byteLength:m=!0}let A=Y1.encode(`--${c}--\r
|
||||
`);h.push(A),n+=A.byteLength,m&&(n=null),s=t,i=async function*(){for(let y of h)y.stream?yield*y.stream():yield y},o=`multipart/form-data; boundary=${c}`}else if(tge(t))s=t,n=t.size,t.type&&(o=t.type);else if(typeof t[Symbol.asyncIterator]=="function"){if(e)throw new TypeError("keepalive");if(KB.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=t instanceof ReadableStream?t:oct(t)}if((typeof s=="string"||KB.isBuffer(s))&&(n=Buffer.byteLength(s)),i!=null){let c;r=new ReadableStream({async start(){c=i(t)[Symbol.asyncIterator]()},async pull(u){let{value:l,done:f}=await c.next();if(f)queueMicrotask(()=>{u.close(),u.byobRequest?.respond(0)});else if(!nge(r)){let h=new Uint8Array(l);h.byteLength&&u.enqueue(h)}return u.desiredSize>0},async cancel(u){await c.return()},type:"bytes"})}return[{stream:r,source:s,length:n},o]}function Ect(t,e=!1){return t instanceof ReadableStream&&(V6(!KB.isDisturbed(t),"The body has already been consumed."),V6(!t.locked,"The stream is locked.")),cge(t,e)}function bct(t,e){let[r,i]=e.stream.tee();return e.stream=r,{stream:i,length:e.length,source:e.source}}function wct(t){if(t.aborted)throw new DOMException("The operation was aborted.","AbortError")}function Cct(t){return{blob(){return db(this,r=>{let i=ige(this);return i===null?i="":i&&(i=Act(i)),new dct([r],{type:i})},t)},arrayBuffer(){return db(this,r=>new Uint8Array(r).buffer,t)},text(){return db(this,sge,t)},json(){return db(this,Sct,t)},formData(){return db(this,r=>{let i=ige(this);if(i!==null)switch(i.essence){case"multipart/form-data":{let s=gct(r,i);if(s==="failure")throw new TypeError("Failed to parse body as FormData.");let n=new rge;return n[pb]=s,n}case"application/x-www-form-urlencoded":{let s=new URLSearchParams(r.toString()),n=new rge;for(let[o,a]of s)n.append(o,a);return n}}throw new TypeError('Content-Type was not one of "multipart/form-data" or "application/x-www-form-urlencoded".')},t)},bytes(){return db(this,r=>new Uint8Array(r),t)}}}function Ict(t){Object.assign(t.prototype,Cct(t))}async function db(t,e,r){if(hct.brandCheck(t,r),uge(t))throw new TypeError("Body is unusable: Body has already been read");wct(t[pb]);let i=uct(),s=o=>i.reject(o),n=o=>{try{i.resolve(e(o))}catch(a){s(a)}};return t[pb].body==null?(n(Buffer.allocUnsafe(0)),i.promise):(await lct(t[pb].body,n,s),i.promise)}function uge(t){let e=t[pb].body;return e!=null&&(e.stream.locked||KB.isDisturbed(e.stream))}function Sct(t){return JSON.parse(sge(t))}function ige(t){let e=t[pb].headersList,r=fct(e);return r==="failure"?null:r}lge.exports={extractBody:cge,safelyExtractBody:Ect,cloneBody:bct,mixinBody:Ict,streamRegistry:age,hasFinalizationRegistry:oge,bodyUnusable:uge}});var wge=p((PBr,bge)=>{"use strict";var We=require("node:assert"),it=wt(),{channels:fge}=rb(),W6=R6(),{RequestContentLengthMismatchError:Ng,ResponseContentLengthMismatchError:Bct,RequestAbortedError:gge,HeadersTimeoutError:vct,HeadersOverflowError:xct,SocketError:rD,InformationalError:Ab,BodyTimeoutError:_ct,HTTPParserError:Rct,ResponseExceededMaxSizeError:Tct}=Vt(),{kUrl:yge,kReset:Ho,kClient:X6,kParser:ei,kBlocking:ev,kRunning:dn,kPending:Nct,kSize:hge,kWriting:am,kQueue:Fu,kNoRef:XB,kKeepAliveDefaultTimeout:Dct,kHostHeader:Oct,kPendingIdx:Pct,kRunningIdx:Sc,kError:Bc,kPipelining:eD,kSocket:gb,kKeepAliveTimeoutValue:iD,kMaxHeadersSize:J6,kKeepAliveMaxTimeout:Qct,kKeepAliveTimeoutThreshold:kct,kHeadersTimeout:Lct,kBodyTimeout:Mct,kStrictContentLength:Z6,kMaxRequests:dge,kCounter:Fct,kMaxResponseSize:Uct,kOnError:qct,kResume:om,kHTTPContext:Ege}=Qr(),ql=aAe(),Gct=Buffer.alloc(0),K1=Buffer[Symbol.species],X1=it.addListener,Hct=it.removeAllListeners,Y6;async function jct(){let t=process.env.JEST_WORKER_ID?D6():void 0,e;try{e=await WebAssembly.compile(lAe())}catch{e=await WebAssembly.compile(t||D6())}return await WebAssembly.instantiate(e,{env:{wasm_on_url:(r,i,s)=>0,wasm_on_status:(r,i,s)=>{We(Yi.ptr===r);let n=i-Hl+Gl.byteOffset;return Yi.onStatus(new K1(Gl.buffer,n,s))||0},wasm_on_message_begin:r=>(We(Yi.ptr===r),Yi.onMessageBegin()||0),wasm_on_header_field:(r,i,s)=>{We(Yi.ptr===r);let n=i-Hl+Gl.byteOffset;return Yi.onHeaderField(new K1(Gl.buffer,n,s))||0},wasm_on_header_value:(r,i,s)=>{We(Yi.ptr===r);let n=i-Hl+Gl.byteOffset;return Yi.onHeaderValue(new K1(Gl.buffer,n,s))||0},wasm_on_headers_complete:(r,i,s,n)=>(We(Yi.ptr===r),Yi.onHeadersComplete(i,!!s,!!n)||0),wasm_on_body:(r,i,s)=>{We(Yi.ptr===r);let n=i-Hl+Gl.byteOffset;return Yi.onBody(new K1(Gl.buffer,n,s))||0},wasm_on_message_complete:r=>(We(Yi.ptr===r),Yi.onMessageComplete()||0)}})}var K6=null,ej=jct();ej.catch();var Yi=null,Gl=null,Z1=0,Hl=null,zct=0,ZB=1,yb=2|ZB,tD=4|ZB,tj=8|zct,rj=class{constructor(e,r,{exports:i}){We(Number.isFinite(e[J6])&&e[J6]>0),this.llhttp=i,this.ptr=this.llhttp.llhttp_alloc(ql.TYPE.RESPONSE),this.client=e,this.socket=r,this.timeout=null,this.timeoutValue=null,this.timeoutType=null,this.statusCode=null,this.statusText="",this.upgrade=!1,this.headers=
Line truncated
|
||||
`);h.push(E,g,d),typeof g.size=="number"?n+=E.byteLength+g.size+d.byteLength:m=!0}let A=Z2.encode(`--${c}--\r
|
||||
`);h.push(A),n+=A.byteLength,m&&(n=null),s=t,i=async function*(){for(let y of h)y.stream?yield*y.stream():yield y},o=`multipart/form-data; boundary=${c}`}else if(lge(t))s=t,n=t.size,t.type&&(o=t.type);else if(typeof t[Symbol.asyncIterator]=="function"){if(e)throw new TypeError("keepalive");if(ev.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=t instanceof ReadableStream?t:yct(t)}if((typeof s=="string"||ev.isBuffer(s))&&(n=Buffer.byteLength(s)),i!=null){let c;r=new ReadableStream({async start(){c=i(t)[Symbol.asyncIterator]()},async pull(u){let{value:l,done:f}=await c.next();if(f)queueMicrotask(()=>{u.close(),u.byobRequest?.respond(0)});else if(!pge(r)){let h=new Uint8Array(l);h.byteLength&&u.enqueue(h)}return u.desiredSize>0},async cancel(u){await c.return()},type:"bytes"})}return[{stream:r,source:s,length:n},o]}function Tct(t,e=!1){return t instanceof ReadableStream&&(X6(!ev.isDisturbed(t),"The body has already been consumed."),X6(!t.locked,"The stream is locked.")),gge(t,e)}function Dct(t,e){let[r,i]=e.stream.tee();return e.stream=r,{stream:i,length:e.length,source:e.source}}function Oct(t){if(t.aborted)throw new DOMException("The operation was aborted.","AbortError")}function Pct(t){return{blob(){return mb(this,r=>{let i=hge(this);return i===null?i="":i&&(i=_ct(i)),new Bct([r],{type:i})},t)},arrayBuffer(){return mb(this,r=>new Uint8Array(r).buffer,t)},text(){return mb(this,dge,t)},json(){return mb(this,kct,t)},formData(){return mb(this,r=>{let i=hge(this);if(i!==null)switch(i.essence){case"multipart/form-data":{let s=Rct(r,i);if(s==="failure")throw new TypeError("Failed to parse body as FormData.");let n=new fge;return n[Ab]=s,n}case"application/x-www-form-urlencoded":{let s=new URLSearchParams(r.toString()),n=new fge;for(let[o,a]of s)n.append(o,a);return n}}throw new TypeError('Content-Type was not one of "multipart/form-data" or "application/x-www-form-urlencoded".')},t)},bytes(){return mb(this,r=>new Uint8Array(r),t)}}}function Qct(t){Object.assign(t.prototype,Pct(t))}async function mb(t,e,r){if(Sct.brandCheck(t,r),yge(t))throw new TypeError("Body is unusable: Body has already been read");Oct(t[Ab]);let i=wct(),s=o=>i.reject(o),n=o=>{try{i.resolve(e(o))}catch(a){s(a)}};return t[Ab].body==null?(n(Buffer.allocUnsafe(0)),i.promise):(await Cct(t[Ab].body,n,s),i.promise)}function yge(t){let e=t[Ab].body;return e!=null&&(e.stream.locked||ev.isDisturbed(e.stream))}function kct(t){return JSON.parse(dge(t))}function hge(t){let e=t[Ab].headersList,r=Ict(e);return r==="failure"?null:r}Ege.exports={extractBody:gge,safelyExtractBody:Tct,cloneBody:Dct,mixinBody:Qct,streamRegistry:Age,hasFinalizationRegistry:mge,bodyUnusable:yge}});var Nge=p((ZBr,Rge)=>{"use strict";var We=require("node:assert"),it=wt(),{channels:bge}=sb(),ej=Q6(),{RequestContentLengthMismatchError:Dg,ResponseContentLengthMismatchError:Lct,RequestAbortedError:vge,HeadersTimeoutError:Fct,HeadersOverflowError:Mct,SocketError:nD,InformationalError:yb,BodyTimeoutError:Uct,HTTPParserError:qct,ResponseExceededMaxSizeError:Gct}=Vt(),{kUrl:xge,kReset:Ho,kClient:sj,kParser:ei,kBlocking:iv,kRunning:dn,kPending:Hct,kSize:wge,kWriting:om,kQueue:Fu,kNoRef:tv,kKeepAliveDefaultTimeout:jct,kHostHeader:zct,kPendingIdx:Vct,kRunningIdx:Ic,kError:Sc,kPipelining:iD,kSocket:Eb,kKeepAliveTimeoutValue:oD,kMaxHeadersSize:tj,kKeepAliveMaxTimeout:$ct,kKeepAliveTimeoutThreshold:Wct,kHeadersTimeout:Jct,kBodyTimeout:Yct,kStrictContentLength:nj,kMaxRequests:Cge,kCounter:Kct,kMaxResponseSize:Xct,kOnError:Zct,kResume:nm,kHTTPContext:_ge}=Qr(),Ul=AAe(),eut=Buffer.alloc(0),eD=Buffer[Symbol.species],tD=it.addListener,tut=it.removeAllListeners,rj;async function rut(){let t=process.env.JEST_WORKER_ID?F6():void 0,e;try{e=await WebAssembly.compile(EAe())}catch{e=await WebAssembly.compile(t||F6())}return await WebAssembly.instantiate(e,{env:{wasm_on_url:(r,i,s)=>0,wasm_on_status:(r,i,s)=>{We(Yi.ptr===r);let n=i-Gl+ql.byteOffset;return Yi.onStatus(new eD(ql.buffer,n,s))||0},wasm_on_message_begin:r=>(We(Yi.ptr===r),Yi.onMessageBegin()||0),wasm_on_header_field:(r,i,s)=>{We(Yi.ptr===r);let n=i-Gl+ql.byteOffset;return Yi.onHeaderField(new eD(ql.buffer,n,s))||0},wasm_on_header_value:(r,i,s)=>{We(Yi.ptr===r);let n=i-Gl+ql.byteOffset;return Yi.onHeaderValue(new eD(ql.buffer,n,s))||0},wasm_on_headers_complete:(r,i,s,n)=>(We(Yi.ptr===r),Yi.onHeadersComplete(i,!!s,!!n)||0),wasm_on_body:(r,i,s)=>{We(Yi.ptr===r);let n=i-Gl+ql.byteOffset;return Yi.onBody(new eD(ql.buffer,n,s))||0},wasm_on_message_complete:r=>(We(Yi.ptr===r),Yi.onMessageComplete()||0)}})}var ij=null,oj=rut();oj.catch();var Yi=null,ql=null,rD=0,Gl=null,iut=0,rv=1,bb=2|rv,sD=4|rv,aj=8|iut,cj=class{constructor(e,r,{exports:i}){We(Number.isFinite(e[tj])&&e[tj]>0),this.llhttp=i,this.ptr=this.llhttp.llhttp_alloc(Ul.TYPE.RESPONSE),this.client=e,this.socket=r,this.timeout=null,this.timeoutValue=null,this.timeoutType=null,this.statusCode=null,this.statusText="",this.upgrade=!1,this.headers=
Line truncated
|
||||
`;if(typeof s=="string"?A+=`host: ${s}\r
|
||||
`:A+=t[Oct],n?A+=`connection: upgrade\r
|
||||
`:A+=t[zct],n?A+=`connection: upgrade\r
|
||||
upgrade: ${n}\r
|
||||
`:t[eD]&&!d[Ho]?A+=`connection: keep-alive\r
|
||||
`:t[iD]&&!d[Ho]?A+=`connection: keep-alive\r
|
||||
`:A+=`connection: close\r
|
||||
`,Array.isArray(u))for(let y=0;y<u.length;y+=2){let g=u[y+0],E=u[y+1];if(Array.isArray(E))for(let C=0;C<E.length;C++)A+=`${g}: ${E[C]}\r
|
||||
`,Array.isArray(u))for(let y=0;y<u.length;y+=2){let g=u[y+0],E=u[y+1];if(Array.isArray(E))for(let w=0;w<E.length;w++)A+=`${g}: ${E[w]}\r
|
||||
`;else A+=`${g}: ${E}\r
|
||||
`}return fge.sendHeaders.hasSubscribers&&fge.sendHeaders.publish({request:e,headers:A,socket:d}),!c||h===0?mge(m,null,t,e,d,l,A,f):it.isBuffer(c)?mge(m,c,t,e,d,l,A,f):it.isBlobLike(c)?typeof c.stream=="function"?Age(m,c.stream(),t,e,d,l,A,f):Kct(m,c,t,e,d,l,A,f):it.isStream(c)?Yct(m,c,t,e,d,l,A,f):it.isIterable(c)?Age(m,c,t,e,d,l,A,f):We(!1),!0}function Yct(t,e,r,i,s,n,o,a){We(n!==0||r[dn]===0,"stream body cannot be pipelined");let c=!1,u=new sD({abort:t,socket:s,request:i,contentLength:n,client:r,expectsPayload:a,header:o}),l=function(m){if(!c)try{!u.write(m)&&this.pause&&this.pause()}catch(A){it.destroy(this,A)}},f=function(){c||e.resume&&e.resume()},h=function(){if(queueMicrotask(()=>{e.removeListener("error",d)}),!c){let m=new gge;queueMicrotask(()=>d(m))}},d=function(m){if(!c){if(c=!0,We(s.destroyed||s[am]&&r[dn]<=1),s.off("drain",f).off("error",d),e.removeListener("data",l).removeListener("end",d).removeListener("close",h),!m)try{u.end()}catch(A){m=A}u.destroy(m),m&&(m.code!=="UND_ERR_INFO"||m.message!=="reset")?it.destroy(e,m):it.destroy(e)}};e.on("data",l).on("end",d).on("error",d).on("close",h),e.resume&&e.resume(),s.on("drain",f).on("error",d),e.errorEmitted??e.errored?setImmediate(()=>d(e.errored)):(e.endEmitted??e.readableEnded)&&setImmediate(()=>d(null)),(e.closeEmitted??e.closed)&&setImmediate(h)}function mge(t,e,r,i,s,n,o,a){try{e?it.isBuffer(e)&&(We(n===e.byteLength,"buffer body must have content length"),s.cork(),s.write(`${o}content-length: ${n}\r
|
||||
`}return bge.sendHeaders.hasSubscribers&&bge.sendHeaders.publish({request:e,headers:A,socket:d}),!c||h===0?Sge(m,null,t,e,d,l,A,f):it.isBuffer(c)?Sge(m,c,t,e,d,l,A,f):it.isBlobLike(c)?typeof c.stream=="function"?Bge(m,c.stream(),t,e,d,l,A,f):uut(m,c,t,e,d,l,A,f):it.isStream(c)?cut(m,c,t,e,d,l,A,f):it.isIterable(c)?Bge(m,c,t,e,d,l,A,f):We(!1),!0}function cut(t,e,r,i,s,n,o,a){We(n!==0||r[dn]===0,"stream body cannot be pipelined");let c=!1,u=new aD({abort:t,socket:s,request:i,contentLength:n,client:r,expectsPayload:a,header:o}),l=function(m){if(!c)try{!u.write(m)&&this.pause&&this.pause()}catch(A){it.destroy(this,A)}},f=function(){c||e.resume&&e.resume()},h=function(){if(queueMicrotask(()=>{e.removeListener("error",d)}),!c){let m=new vge;queueMicrotask(()=>d(m))}},d=function(m){if(!c){if(c=!0,We(s.destroyed||s[om]&&r[dn]<=1),s.off("drain",f).off("error",d),e.removeListener("data",l).removeListener("end",d).removeListener("close",h),!m)try{u.end()}catch(A){m=A}u.destroy(m),m&&(m.code!=="UND_ERR_INFO"||m.message!=="reset")?it.destroy(e,m):it.destroy(e)}};e.on("data",l).on("end",d).on("error",d).on("close",h),e.resume&&e.resume(),s.on("drain",f).on("error",d),e.errorEmitted??e.errored?setImmediate(()=>d(e.errored)):(e.endEmitted??e.readableEnded)&&setImmediate(()=>d(null)),(e.closeEmitted??e.closed)&&setImmediate(h)}function Sge(t,e,r,i,s,n,o,a){try{e?it.isBuffer(e)&&(We(n===e.byteLength,"buffer body must have content length"),s.cork(),s.write(`${o}content-length: ${n}\r
|
||||
\r
|
||||
`,"latin1"),s.write(e),s.uncork(),i.onBodySent(e),!a&&i.reset!==!1&&(s[Ho]=!0)):n===0?s.write(`${o}content-length: 0\r
|
||||
\r
|
||||
`,"latin1"):(We(n===null,"no body must not have content length"),s.write(`${o}\r
|
||||
`,"latin1")),i.onRequestSent(),r[om]()}catch(c){t(c)}}async function Kct(t,e,r,i,s,n,o,a){We(n===e.size,"blob body must have content length");try{if(n!=null&&n!==e.size)throw new Ng;let c=Buffer.from(await e.arrayBuffer());s.cork(),s.write(`${o}content-length: ${n}\r
|
||||
`,"latin1")),i.onRequestSent(),r[nm]()}catch(c){t(c)}}async function uut(t,e,r,i,s,n,o,a){We(n===e.size,"blob body must have content length");try{if(n!=null&&n!==e.size)throw new Dg;let c=Buffer.from(await e.arrayBuffer());s.cork(),s.write(`${o}content-length: ${n}\r
|
||||
\r
|
||||
`,"latin1"),s.write(c),s.uncork(),i.onBodySent(c),i.onRequestSent(),!a&&i.reset!==!1&&(s[Ho]=!0),r[om]()}catch(c){t(c)}}async function Age(t,e,r,i,s,n,o,a){We(n!==0||r[dn]===0,"iterator body cannot be pipelined");let c=null;function u(){if(c){let h=c;c=null,h()}}let l=()=>new Promise((h,d)=>{We(c===null),s[Bc]?d(s[Bc]):c=h});s.on("close",u).on("drain",u);let f=new sD({abort:t,socket:s,request:i,contentLength:n,client:r,expectsPayload:a,header:o});try{for await(let h of e){if(s[Bc])throw s[Bc];f.write(h)||await l()}f.end()}catch(h){f.destroy(h)}finally{s.off("close",u).off("drain",u)}}var sD=class{constructor({abort:e,socket:r,request:i,contentLength:s,client:n,expectsPayload:o,header:a}){this.socket=r,this.request=i,this.contentLength=s,this.client=n,this.bytesWritten=0,this.expectsPayload=o,this.header=a,this.abort=e,r[am]=!0}write(e){let{socket:r,request:i,contentLength:s,client:n,bytesWritten:o,expectsPayload:a,header:c}=this;if(r[Bc])throw r[Bc];if(r.destroyed)return!1;let u=Buffer.byteLength(e);if(!u)return!0;if(s!==null&&o+u>s){if(n[Z6])throw new Ng;process.emitWarning(new Ng)}r.cork(),o===0&&(!a&&i.reset!==!1&&(r[Ho]=!0),s===null?r.write(`${c}transfer-encoding: chunked\r
|
||||
`,"latin1"),s.write(c),s.uncork(),i.onBodySent(c),i.onRequestSent(),!a&&i.reset!==!1&&(s[Ho]=!0),r[nm]()}catch(c){t(c)}}async function Bge(t,e,r,i,s,n,o,a){We(n!==0||r[dn]===0,"iterator body cannot be pipelined");let c=null;function u(){if(c){let h=c;c=null,h()}}let l=()=>new Promise((h,d)=>{We(c===null),s[Sc]?d(s[Sc]):c=h});s.on("close",u).on("drain",u);let f=new aD({abort:t,socket:s,request:i,contentLength:n,client:r,expectsPayload:a,header:o});try{for await(let h of e){if(s[Sc])throw s[Sc];f.write(h)||await l()}f.end()}catch(h){f.destroy(h)}finally{s.off("close",u).off("drain",u)}}var aD=class{constructor({abort:e,socket:r,request:i,contentLength:s,client:n,expectsPayload:o,header:a}){this.socket=r,this.request=i,this.contentLength=s,this.client=n,this.bytesWritten=0,this.expectsPayload=o,this.header=a,this.abort=e,r[om]=!0}write(e){let{socket:r,request:i,contentLength:s,client:n,bytesWritten:o,expectsPayload:a,header:c}=this;if(r[Sc])throw r[Sc];if(r.destroyed)return!1;let u=Buffer.byteLength(e);if(!u)return!0;if(s!==null&&o+u>s){if(n[nj])throw new Dg;process.emitWarning(new Dg)}r.cork(),o===0&&(!a&&i.reset!==!1&&(r[Ho]=!0),s===null?r.write(`${c}transfer-encoding: chunked\r
|
||||
`,"latin1"):r.write(`${c}content-length: ${s}\r
|
||||
\r
|
||||
`,"latin1")),s===null&&r.write(`\r
|
||||
${u.toString(16)}\r
|
||||
`,"latin1"),this.bytesWritten+=u;let l=r.write(e);return r.uncork(),i.onBodySent(e),l||r[ei].timeout&&r[ei].timeoutType===yb&&r[ei].timeout.refresh&&r[ei].timeout.refresh(),l}end(){let{socket:e,contentLength:r,client:i,bytesWritten:s,expectsPayload:n,header:o,request:a}=this;if(a.onRequestSent(),e[am]=!1,e[Bc])throw e[Bc];if(!e.destroyed){if(s===0?n?e.write(`${o}content-length: 0\r
|
||||
`,"latin1"),this.bytesWritten+=u;let l=r.write(e);return r.uncork(),i.onBodySent(e),l||r[ei].timeout&&r[ei].timeoutType===bb&&r[ei].timeout.refresh&&r[ei].timeout.refresh(),l}end(){let{socket:e,contentLength:r,client:i,bytesWritten:s,expectsPayload:n,header:o,request:a}=this;if(a.onRequestSent(),e[om]=!1,e[Sc])throw e[Sc];if(!e.destroyed){if(s===0?n?e.write(`${o}content-length: 0\r
|
||||
\r
|
||||
`,"latin1"):e.write(`${o}\r
|
||||
`,"latin1"):r===null&&e.write(`\r
|
||||
0\r
|
||||
\r
|
||||
`,"latin1"),r!==null&&s!==r){if(i[Z6])throw new Ng;process.emitWarning(new Ng)}e[ei].timeout&&e[ei].timeoutType===yb&&e[ei].timeout.refresh&&e[ei].timeout.refresh(),i[om]()}}destroy(e){let{socket:r,client:i,abort:s}=this;r[am]=!1,e&&(We(i[dn]<=1,"pipeline should only contain this request"),s(e))}};bge.exports=Vct});var Rge=p((QBr,_ge)=>{"use strict";var vc=require("node:assert"),{pipeline:Xct}=require("node:stream"),Rt=wt(),{RequestContentLengthMismatchError:ij,RequestAbortedError:Cge,SocketError:tv,InformationalError:sj}=Vt(),{kUrl:nD,kReset:aD,kClient:Eb,kRunning:cD,kPending:Zct,kQueue:cm,kPendingIdx:nj,kRunningIdx:Uu,kError:Gu,kSocket:hs,kStrictContentLength:eut,kOnError:oj,kMaxConcurrentStreams:xge,kHTTP2Session:qu,kResume:um,kSize:tut,kHTTPContext:rut}=Qr(),ad=Symbol("open streams"),Ige,Sge=!1,oD;try{oD=require("node:http2")}catch{oD={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:iut,HTTP2_HEADER_METHOD:sut,HTTP2_HEADER_PATH:nut,HTTP2_HEADER_SCHEME:out,HTTP2_HEADER_CONTENT_LENGTH:aut,HTTP2_HEADER_EXPECT:cut,HTTP2_HEADER_STATUS:uut}}=oD;function lut(t){let e=[];for(let[r,i]of Object.entries(t))if(Array.isArray(i))for(let s of i)e.push(Buffer.from(r),Buffer.from(s));else e.push(Buffer.from(r),Buffer.from(i));return e}async function fut(t,e){t[hs]=e,Sge||(Sge=!0,process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"}));let r=oD.connect(t[nD],{createConnection:()=>e,peerMaxConcurrentStreams:t[xge]});r[ad]=0,r[Eb]=t,r[hs]=e,Rt.addListener(r,"error",dut),Rt.addListener(r,"frameError",put),Rt.addListener(r,"end",mut),Rt.addListener(r,"goaway",Aut),Rt.addListener(r,"close",function(){let{[Eb]:s}=this,{[hs]:n}=s,o=this[hs][Gu]||this[Gu]||new tv("closed",Rt.getSocketInfo(n));if(s[qu]=null,s.destroyed){vc(s[Zct]===0);let a=s[cm].splice(s[Uu]);for(let c=0;c<a.length;c++){let u=a[c];Rt.errorRequest(s,u,o)}}}),r.unref(),t[qu]=r,e[qu]=r,Rt.addListener(e,"error",function(s){vc(s.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[Gu]=s,this[Eb][oj](s)}),Rt.addListener(e,"end",function(){Rt.destroy(this,new tv("other side closed",Rt.getSocketInfo(this)))}),Rt.addListener(e,"close",function(){let s=this[Gu]||new tv("closed",Rt.getSocketInfo(this));t[hs]=null,this[qu]!=null&&this[qu].destroy(s),t[nj]=t[Uu],vc(t[cD]===0),t.emit("disconnect",t[nD],[t],s),t[um]()});let i=!1;return e.on("close",()=>{i=!0}),{version:"h2",defaultPipelining:1/0,write(...s){return yut(t,...s)},resume(){hut(t)},destroy(s,n){i?queueMicrotask(n):e.destroy(s).on("close",n)},get destroyed(){return e.destroyed},busy(){return!1}}}function hut(t){let e=t[hs];e?.destroyed===!1&&(t[tut]===0&&t[xge]===0?(e.unref(),t[qu].unref()):(e.ref(),t[qu].ref()))}function dut(t){vc(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[hs][Gu]=t,this[Eb][oj](t)}function put(t,e,r){if(r===0){let i=new sj(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[hs][Gu]=i,this[Eb][oj](i)}}function mut(){let t=new tv("other side closed",Rt.getSocketInfo(this[hs]));this.destroy(t),Rt.destroy(this[hs],t)}function Aut(t){let e=this[Gu]||new tv(`HTTP/2: "GOAWAY" frame received with code ${t}`,Rt.getSocketInfo(this)),r=this[Eb];if(r[hs]=null,r[rut]=null,this[qu]!=null&&(this[qu].destroy(e),this[qu]=null),Rt.destroy(this[hs],e),r[Uu]<r[cm].length){let i=r[cm][r[Uu]];r[cm][r[Uu]++]=null,Rt.errorRequest(r,i,e),r[nj]=r[Uu]}vc(r[cD]===0),r.emit("disconnect",r[nD],[r],e),r[um]()}function gut(t){return t!=="GET"&&t!=="HEAD"&&t!=="OPTIONS"&&t!=="TRACE"&&t!=="CONNECT"}function yut(t,e){let r=t[qu],{method:i,path:s,host:n,upgrade:o,expectContinue:a,signal:c,headers:u}=e,{body:l}=e;if(o)return Rt.errorRequest(t,e,new Error("Upgrade not supported for H2")),!1;let f={};for(let S=0;S<u.length;S+=2){let D=u[S+0],q=u[S+1];if(Array.isArray(q))for(let N=0;N<q.length;N++)f[D]?f[D]+=`,${q[N]}`:f[D]=q[N];else f[D]=q}let h,{hostname:d,port:m}=t[nD];f[iut]=n||`${d}${m?`:${m}`:""}`,f[sut]=i;let A=S=>{e.aborted||e.completed||(S=S||new Cge,Rt.errorRequest(t,e,S),h!=null&&Rt.destroy(h,S),Rt.destroy(l,S),t[cm][t[Uu]++]=null,t[um]())};try{e.onConnect(A)}catch(S){Rt.errorRequest(t,e,S)}if(e.aborted)return!1;if(i==="CONNECT")return r.ref(),h=r.request(f,{endStream:!1,signal:c}),h.id&&!h.pending?(e.onUpgrade(null,null,h),++r[ad],t[cm][t[Uu]++]=null):h.once("ready",()=>{e.onUpgrade(null,null,h),++r[ad],t[cm][t[Uu]++]=null}),h.once("close",()=>{r[ad]-=1,r[ad]===0&&r.unref()}),!0;f[nut]=s,f[out]="https";let y=i==="PUT"||i==="POST"||i==="PATCH";l&&typeof l.read=="function"&&l.read(0);let g=Rt.bodyLength(l);if(Rt.isFormDataLike(l)){Ige??=mb().extractBody;let[S,D]=Ige(l);f["content-type"]=D,l=S.stream,g=S.length}if(g==null&&(g=e.contentLength),(g===0||!y)&&(g=null),gut(i)&&g>0&&e.contentLength!=null&&e.contentLength!==g){if(t[eut])return Rt.errorRequest(t,e,new ij),!1;process.emitWarning(new ij)}g!=null&&(vc(l,"no body must not have content length"),f[aut]=`${g}`),r.ref();let E=i==="GET"||i==="HEAD"||l===null;return a?(f[cut]="100-continue",h=r.request(f,{endStream:E,signa
Line truncated
|
||||
`,this[jut]=c??3e5,this[Hut]=s??3e5,this[zut]=E??!0,this[Vut]=S,this[lj]=q,this[fm]=null,this[Kut]=$>-1?$:-1,this[Zut]=M??100,this[bi]=null,this[Hu]=[],this[ud]=0,this[ju]=0,this[nv]=J=>hj(this,J),this[Xut]=J=>qge(this,J)}get pipelining(){return this[hD]}set pipelining(e){this[hD]=e,this[nv](!0)}get[cv](){return this[Hu].length-this[ju]}get[av](){return this[ju]-this[ud]}get[ov](){return this[Hu].length-this[ud]}get[kut](){return!!this[bi]&&!this[wb]&&!this[bi].destroyed}get[uj](){return!!(this[bi]?.busy(null)||this[ov]>=(Uge(this)||1)||this[cv]>0)}[Qut](e){Gge(this),this.once("connect",e)}[Yut](e,r){let i=e.origin||this[zl].origin,s=new Rut(i,e,r);return this[Hu].push(s),this[Og]||(Dg.bodyLength(s.body)==null&&Dg.isIterable(s.body)?(this[Og]=1,queueMicrotask(()=>hj(this))):this[nv](!0)),this[Og]&&this[hm]!==2&&this[uj]&&(this[hm]=2),this[hm]<2}async[Wut](){return new Promise(e=>{this[ov]?this[fm]=e:e(null)})}async[Jut](e){return new Promise(r=>{let i=this[Hu].splice(this[ju]);for(let n=0;n<i.length;n++){let o=i[n];Dg.errorRequest(this,o,e)}let s=()=>{this[fm]&&(this[fm](),this[fm]=null),r(null)};this[bi]?(this[bi].destroy(e,s),this[bi]=null):queueMicrotask(s),this[nv]()})}},rlt=fD();function qge(t,e){if(t[av]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){cd(t[ju]===t[ud]);let r=t[Hu].splice(t[ud]);for(let i=0;i<r.length;i++){let s=r[i];Dg.errorRequest(t,s,e)}cd(t[ov]===0)}}async function Gge(t){cd(!t[wb]),cd(!t[bi]);let{host:e,hostname:r,protocol:i,port:s}=t[zl];if(r[0]==="["){let n=r.indexOf("]");cd(n!==-1);let o=r.substring(1,n);cd(Fge.isIP(o)),r=o}t[wb]=!0,bb.beforeConnect.hasSubscribers&&bb.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:i,port:s,version:t[bi]?.version,servername:t[lm],localAddress:t[sv]},connector:t[iv]});try{let n=await new Promise((o,a)=>{t[iv]({host:e,hostname:r,protocol:i,port:s,servername:t[lm],localAddress:t[sv]},(c,u)=>{c?a(c):o(u)})});if(t.destroyed){Dg.destroy(n.on("error",Lge),new Dut);return}cd(n);try{t[bi]=n.alpnProtocol==="h2"?await tlt(t,n):await elt(t,n)}catch(o){throw n.destroy().on("error",Lge),o}t[wb]=!1,n[$ut]=0,n[lj]=t[lj],n[Put]=t,n[Mut]=null,bb.connected.hasSubscribers&&bb.connected.publish({connectParams:{host:e,hostname:r,protocol:i,port:s,version:t[bi]?.version,servername:t[lm],localAddress:t[sv]},connector:t[iv],socket:n}),t.emit("connect",t[zl],[t])}catch(n){if(t.destroyed)return;if(t[wb]=!1,bb.connectError.hasSubscribers&&bb.connectError.publish({connectParams:{host:e,hostname:r,protocol:i,port:s,version:t[bi]?.version,servername:t[lm],localAddress:t[sv]},connector:t[iv],error:n}),n.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(cd(t[av]===0);t[cv]>0&&t[Hu][t[ju]].servername===t[lm];){let o=t[Hu][t[ju]++];Dg.errorRequest(t,o,n)}else qge(t,n);t.emit("connectionError",t[zl],[t],n)}t[nv]()}function Mge(t){t[hm]=0,t.emit("drain",t[zl],[t])}function hj(t,e){t[Og]!==2&&(t[Og]=2,ilt(t,e),t[Og]=0,t[ud]>256&&(t[Hu].splice(0,t[ud]),t[ju]-=t[ud],t[ud]=0))}function ilt(t,e){for(;;){if(t.destroyed){cd(t[cv]===0);return}if(t[fm]&&!t[ov]){t[fm](),t[fm]=null;return}if(t[bi]&&t[bi].resume(),t[uj])t[hm]=2;else if(t[hm]===2){e?(t[hm]=1,queueMicrotask(()=>Mge(t))):Mge(t);continue}if(t[cv]===0||t[av]>=(Uge(t)||1))return;let r=t[Hu][t[ju]];if(t[zl].protocol==="https:"&&t[lm]!==r.servername){if(t[av]>0)return;t[lm]=r.servername,t[bi]?.destroy(new Nut("servername changed"),()=>{t[bi]=null,hj(t)})}if(t[wb])return;if(!t[bi]){Gge(t);return}if(t[bi].destroyed||t[bi].busy(r))return;!r.aborted&&t[bi].write(r)?t[ju]++:t[Hu].splice(t[ju],1)}}Hge.exports=fj});var dj=p((UBr,jge)=>{"use strict";var dD=class{constructor(){this.bottom=0,this.top=0,this.list=new Array(2048),this.next=null}isEmpty(){return this.top===this.bottom}isFull(){return(this.top+1&2047)===this.bottom}push(e){this.list[this.top]=e,this.top=this.top+1&2047}shift(){let e=this.list[this.bottom];return e===void 0?null:(this.list[this.bottom]=void 0,this.bottom=this.bottom+1&2047,e)}};jge.exports=class{constructor(){this.head=this.tail=new dD}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new dD),this.head.push(e)}shift(){let e=this.tail,r=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next),r}}});var Vge=p((qBr,zge)=>{var{kFree:slt,kConnected:nlt,kPending:olt,kQueued:alt,kRunning:clt,kSize:ult}=Qr(),Pg=Symbol("pool"),pj=class{constructor(e){this[Pg]=e}get connected(){return this[Pg][nlt]}get free(){return this[Pg][slt]}get pending(){return this[Pg][olt]}get queued(){return this[Pg][alt]}get running(){return this[Pg][clt]}get size(){return this[Pg][ult]}};zge.exports=pj});var bj=p((GBr,rye)=>{"use strict";var llt=ob(),flt=dj(),{kConnected:mj,kSize:$ge,kRunning:Wge,kPending:Jge,kQueued:uv,kBusy:hlt,kFree:dlt,kUrl:plt,kClose:mlt,kDestroy:Alt,kDispatch:glt}=Qr(),ylt=Vge(),jo=Symbol("clients"),Zn=Symbol("needDrain"),lv=Symbol("queue"),Aj=Symbol("closed resolve"),gj=Symbol("onDrain"),Yge=Symbol("onConnect"),Kge=Symbol("onDisconnect"),Xge=Symbol("onConnec
Line truncated
|
||||
`,"latin1"),r!==null&&s!==r){if(i[nj])throw new Dg;process.emitWarning(new Dg)}e[ei].timeout&&e[ei].timeoutType===bb&&e[ei].timeout.refresh&&e[ei].timeout.refresh(),i[nm]()}}destroy(e){let{socket:r,client:i,abort:s}=this;r[om]=!1,e&&(We(i[dn]<=1,"pipeline should only contain this request"),s(e))}};Rge.exports=sut});var Fge=p((evr,Lge)=>{"use strict";var Bc=require("node:assert"),{pipeline:lut}=require("node:stream"),Rt=wt(),{RequestContentLengthMismatchError:uj,RequestAbortedError:Tge,SocketError:sv,InformationalError:lj}=Vt(),{kUrl:cD,kReset:lD,kClient:wb,kRunning:fD,kPending:fut,kQueue:am,kPendingIdx:fj,kRunningIdx:Mu,kError:qu,kSocket:hs,kStrictContentLength:hut,kOnError:hj,kMaxConcurrentStreams:kge,kHTTP2Session:Uu,kResume:cm,kSize:dut,kHTTPContext:put}=Qr(),od=Symbol("open streams"),Dge,Oge=!1,uD;try{uD=require("node:http2")}catch{uD={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:mut,HTTP2_HEADER_METHOD:Aut,HTTP2_HEADER_PATH:gut,HTTP2_HEADER_SCHEME:yut,HTTP2_HEADER_CONTENT_LENGTH:Eut,HTTP2_HEADER_EXPECT:but,HTTP2_HEADER_STATUS:wut}}=uD;function Cut(t){let e=[];for(let[r,i]of Object.entries(t))if(Array.isArray(i))for(let s of i)e.push(Buffer.from(r),Buffer.from(s));else e.push(Buffer.from(r),Buffer.from(i));return e}async function Iut(t,e){t[hs]=e,Oge||(Oge=!0,process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"}));let r=uD.connect(t[cD],{createConnection:()=>e,peerMaxConcurrentStreams:t[kge]});r[od]=0,r[wb]=t,r[hs]=e,Rt.addListener(r,"error",But),Rt.addListener(r,"frameError",vut),Rt.addListener(r,"end",xut),Rt.addListener(r,"goaway",_ut),Rt.addListener(r,"close",function(){let{[wb]:s}=this,{[hs]:n}=s,o=this[hs][qu]||this[qu]||new sv("closed",Rt.getSocketInfo(n));if(s[Uu]=null,s.destroyed){Bc(s[fut]===0);let a=s[am].splice(s[Mu]);for(let c=0;c<a.length;c++){let u=a[c];Rt.errorRequest(s,u,o)}}}),r.unref(),t[Uu]=r,e[Uu]=r,Rt.addListener(e,"error",function(s){Bc(s.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[qu]=s,this[wb][hj](s)}),Rt.addListener(e,"end",function(){Rt.destroy(this,new sv("other side closed",Rt.getSocketInfo(this)))}),Rt.addListener(e,"close",function(){let s=this[qu]||new sv("closed",Rt.getSocketInfo(this));t[hs]=null,this[Uu]!=null&&this[Uu].destroy(s),t[fj]=t[Mu],Bc(t[fD]===0),t.emit("disconnect",t[cD],[t],s),t[cm]()});let i=!1;return e.on("close",()=>{i=!0}),{version:"h2",defaultPipelining:1/0,write(...s){return Nut(t,...s)},resume(){Sut(t)},destroy(s,n){i?queueMicrotask(n):e.destroy(s).on("close",n)},get destroyed(){return e.destroyed},busy(){return!1}}}function Sut(t){let e=t[hs];e?.destroyed===!1&&(t[dut]===0&&t[kge]===0?(e.unref(),t[Uu].unref()):(e.ref(),t[Uu].ref()))}function But(t){Bc(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[hs][qu]=t,this[wb][hj](t)}function vut(t,e,r){if(r===0){let i=new lj(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[hs][qu]=i,this[wb][hj](i)}}function xut(){let t=new sv("other side closed",Rt.getSocketInfo(this[hs]));this.destroy(t),Rt.destroy(this[hs],t)}function _ut(t){let e=this[qu]||new sv(`HTTP/2: "GOAWAY" frame received with code ${t}`,Rt.getSocketInfo(this)),r=this[wb];if(r[hs]=null,r[put]=null,this[Uu]!=null&&(this[Uu].destroy(e),this[Uu]=null),Rt.destroy(this[hs],e),r[Mu]<r[am].length){let i=r[am][r[Mu]];r[am][r[Mu]++]=null,Rt.errorRequest(r,i,e),r[fj]=r[Mu]}Bc(r[fD]===0),r.emit("disconnect",r[cD],[r],e),r[cm]()}function Rut(t){return t!=="GET"&&t!=="HEAD"&&t!=="OPTIONS"&&t!=="TRACE"&&t!=="CONNECT"}function Nut(t,e){let r=t[Uu],{method:i,path:s,host:n,upgrade:o,expectContinue:a,signal:c,headers:u}=e,{body:l}=e;if(o)return Rt.errorRequest(t,e,new Error("Upgrade not supported for H2")),!1;let f={};for(let S=0;S<u.length;S+=2){let D=u[S+0],q=u[S+1];if(Array.isArray(q))for(let T=0;T<q.length;T++)f[D]?f[D]+=`,${q[T]}`:f[D]=q[T];else f[D]=q}let h,{hostname:d,port:m}=t[cD];f[mut]=n||`${d}${m?`:${m}`:""}`,f[Aut]=i;let A=S=>{e.aborted||e.completed||(S=S||new Tge,Rt.errorRequest(t,e,S),h!=null&&Rt.destroy(h,S),Rt.destroy(l,S),t[am][t[Mu]++]=null,t[cm]())};try{e.onConnect(A)}catch(S){Rt.errorRequest(t,e,S)}if(e.aborted)return!1;if(i==="CONNECT")return r.ref(),h=r.request(f,{endStream:!1,signal:c}),h.id&&!h.pending?(e.onUpgrade(null,null,h),++r[od],t[am][t[Mu]++]=null):h.once("ready",()=>{e.onUpgrade(null,null,h),++r[od],t[am][t[Mu]++]=null}),h.once("close",()=>{r[od]-=1,r[od]===0&&r.unref()}),!0;f[gut]=s,f[yut]="https";let y=i==="PUT"||i==="POST"||i==="PATCH";l&&typeof l.read=="function"&&l.read(0);let g=Rt.bodyLength(l);if(Rt.isFormDataLike(l)){Dge??=gb().extractBody;let[S,D]=Dge(l);f["content-type"]=D,l=S.stream,g=S.length}if(g==null&&(g=e.contentLength),(g===0||!y)&&(g=null),Rut(i)&&g>0&&e.contentLength!=null&&e.contentLength!==g){if(t[hut])return Rt.errorRequest(t,e,new uj),!1;process.emitWarning(new uj)}g!=null&&(Bc(l,"no body must not have content length"),f[Eut]=`${g}`),r.ref();let E=i==="GET"||i==="HEAD"||l===null;return a?(f[but]="100-continue",h=r.request(f,{endStream:E,signa
Line truncated
|
||||
`,this[rlt]=c??3e5,this[tlt]=s??3e5,this[ilt]=E??!0,this[slt]=S,this[Aj]=q,this[lm]=null,this[ult]=$>-1?$:-1,this[flt]=F??100,this[bi]=null,this[Gu]=[],this[cd]=0,this[Hu]=0,this[cv]=J=>yj(this,J),this[llt]=J=>Yge(this,J)}get pipelining(){return this[mD]}set pipelining(e){this[mD]=e,this[cv](!0)}get[fv](){return this[Gu].length-this[Hu]}get[lv](){return this[Hu]-this[cd]}get[uv](){return this[Gu].length-this[cd]}get[Wut](){return!!this[bi]&&!this[Ib]&&!this[bi].destroyed}get[mj](){return!!(this[bi]?.busy(null)||this[uv]>=(Jge(this)||1)||this[fv]>0)}[$ut](e){Kge(this),this.once("connect",e)}[clt](e,r){let i=e.origin||this[jl].origin,s=new qut(i,e,r);return this[Gu].push(s),this[Pg]||(Og.bodyLength(s.body)==null&&Og.isIterable(s.body)?(this[Pg]=1,queueMicrotask(()=>yj(this))):this[cv](!0)),this[Pg]&&this[fm]!==2&&this[mj]&&(this[fm]=2),this[fm]<2}async[olt](){return new Promise(e=>{this[uv]?this[lm]=e:e(null)})}async[alt](e){return new Promise(r=>{let i=this[Gu].splice(this[Hu]);for(let n=0;n<i.length;n++){let o=i[n];Og.errorRequest(this,o,e)}let s=()=>{this[lm]&&(this[lm](),this[lm]=null),r(null)};this[bi]?(this[bi].destroy(e,s),this[bi]=null):queueMicrotask(s),this[cv]()})}},plt=pD();function Yge(t,e){if(t[lv]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){ad(t[Hu]===t[cd]);let r=t[Gu].splice(t[cd]);for(let i=0;i<r.length;i++){let s=r[i];Og.errorRequest(t,s,e)}ad(t[uv]===0)}}async function Kge(t){ad(!t[Ib]),ad(!t[bi]);let{host:e,hostname:r,protocol:i,port:s}=t[jl];if(r[0]==="["){let n=r.indexOf("]");ad(n!==-1);let o=r.substring(1,n);ad(Wge.isIP(o)),r=o}t[Ib]=!0,Cb.beforeConnect.hasSubscribers&&Cb.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:i,port:s,version:t[bi]?.version,servername:t[um],localAddress:t[av]},connector:t[ov]});try{let n=await new Promise((o,a)=>{t[ov]({host:e,hostname:r,protocol:i,port:s,servername:t[um],localAddress:t[av]},(c,u)=>{c?a(c):o(u)})});if(t.destroyed){Og.destroy(n.on("error",Vge),new jut);return}ad(n);try{t[bi]=n.alpnProtocol==="h2"?await dlt(t,n):await hlt(t,n)}catch(o){throw n.destroy().on("error",Vge),o}t[Ib]=!1,n[nlt]=0,n[Aj]=t[Aj],n[Vut]=t,n[Yut]=null,Cb.connected.hasSubscribers&&Cb.connected.publish({connectParams:{host:e,hostname:r,protocol:i,port:s,version:t[bi]?.version,servername:t[um],localAddress:t[av]},connector:t[ov],socket:n}),t.emit("connect",t[jl],[t])}catch(n){if(t.destroyed)return;if(t[Ib]=!1,Cb.connectError.hasSubscribers&&Cb.connectError.publish({connectParams:{host:e,hostname:r,protocol:i,port:s,version:t[bi]?.version,servername:t[um],localAddress:t[av]},connector:t[ov],error:n}),n.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(ad(t[lv]===0);t[fv]>0&&t[Gu][t[Hu]].servername===t[um];){let o=t[Gu][t[Hu]++];Og.errorRequest(t,o,n)}else Yge(t,n);t.emit("connectionError",t[jl],[t],n)}t[cv]()}function $ge(t){t[fm]=0,t.emit("drain",t[jl],[t])}function yj(t,e){t[Pg]!==2&&(t[Pg]=2,mlt(t,e),t[Pg]=0,t[cd]>256&&(t[Gu].splice(0,t[cd]),t[Hu]-=t[cd],t[cd]=0))}function mlt(t,e){for(;;){if(t.destroyed){ad(t[fv]===0);return}if(t[lm]&&!t[uv]){t[lm](),t[lm]=null;return}if(t[bi]&&t[bi].resume(),t[mj])t[fm]=2;else if(t[fm]===2){e?(t[fm]=1,queueMicrotask(()=>$ge(t))):$ge(t);continue}if(t[fv]===0||t[lv]>=(Jge(t)||1))return;let r=t[Gu][t[Hu]];if(t[jl].protocol==="https:"&&t[um]!==r.servername){if(t[lv]>0)return;t[um]=r.servername,t[bi]?.destroy(new Hut("servername changed"),()=>{t[bi]=null,yj(t)})}if(t[Ib])return;if(!t[bi]){Kge(t);return}if(t[bi].destroyed||t[bi].busy(r))return;!r.aborted&&t[bi].write(r)?t[Hu]++:t[Gu].splice(t[Hu],1)}}Xge.exports=gj});var Ej=p((nvr,Zge)=>{"use strict";var AD=class{constructor(){this.bottom=0,this.top=0,this.list=new Array(2048),this.next=null}isEmpty(){return this.top===this.bottom}isFull(){return(this.top+1&2047)===this.bottom}push(e){this.list[this.top]=e,this.top=this.top+1&2047}shift(){let e=this.list[this.bottom];return e===void 0?null:(this.list[this.bottom]=void 0,this.bottom=this.bottom+1&2047,e)}};Zge.exports=class{constructor(){this.head=this.tail=new AD}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new AD),this.head.push(e)}shift(){let e=this.tail,r=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next),r}}});var tye=p((ovr,eye)=>{var{kFree:Alt,kConnected:glt,kPending:ylt,kQueued:Elt,kRunning:blt,kSize:wlt}=Qr(),Qg=Symbol("pool"),bj=class{constructor(e){this[Qg]=e}get connected(){return this[Qg][glt]}get free(){return this[Qg][Alt]}get pending(){return this[Qg][ylt]}get queued(){return this[Qg][Elt]}get running(){return this[Qg][blt]}get size(){return this[Qg][wlt]}};eye.exports=bj});var vj=p((avr,fye)=>{"use strict";var Clt=cb(),Ilt=Ej(),{kConnected:wj,kSize:rye,kRunning:iye,kPending:sye,kQueued:hv,kBusy:Slt,kFree:Blt,kUrl:vlt,kClose:xlt,kDestroy:_lt,kDispatch:Rlt}=Qr(),Nlt=tye(),jo=Symbol("clients"),Zn=Symbol("needDrain"),dv=Symbol("queue"),Cj=Symbol("closed resolve"),Ij=Symbol("onDrain"),nye=Symbol("onConnect"),oye=Symbol("onDisconnect"),aye=Symbol("onConnec
Line truncated
|
||||
${i.count} ${i.noun} ${i.is} pending:
|
||||
|
||||
${e.format(r)}
|
||||
`.trim())}};c0e.exports=bz});var ND=p((Avr,d0e)=>{"use strict";var l0e=Symbol.for("undici.globalDispatcher.1"),{InvalidArgumentError:jht}=Vt(),zht=Sb();h0e()===void 0&&f0e(new zht);function f0e(t){if(!t||typeof t.dispatch!="function")throw new jht("Argument agent must implement Agent");Object.defineProperty(globalThis,l0e,{value:t,writable:!0,enumerable:!1,configurable:!1})}function h0e(){return globalThis[l0e]}d0e.exports={setGlobalDispatcher:f0e,getGlobalDispatcher:h0e}});var DD=p((yvr,p0e)=>{"use strict";p0e.exports=class{#e;constructor(e){if(typeof e!="object"||e===null)throw new TypeError("handler must be an object");this.#e=e}onConnect(...e){return this.#e.onConnect?.(...e)}onError(...e){return this.#e.onError?.(...e)}onUpgrade(...e){return this.#e.onUpgrade?.(...e)}onResponseStarted(...e){return this.#e.onResponseStarted?.(...e)}onHeaders(...e){return this.#e.onHeaders?.(...e)}onData(...e){return this.#e.onData?.(...e)}onComplete(...e){return this.#e.onComplete?.(...e)}onBodySent(...e){return this.#e.onBodySent?.(...e)}}});var A0e=p((Evr,m0e)=>{"use strict";var Vht=lD();m0e.exports=t=>{let e=t?.maxRedirections;return r=>function(s,n){let{maxRedirections:o=e,...a}=s;if(!o)return r(s,n);let c=new Vht(r,o,s,n);return r(a,c)}}});var y0e=p((bvr,g0e)=>{"use strict";var $ht=wD();g0e.exports=t=>e=>function(i,s){return e(i,new $ht({...i,retryOptions:{...t,...i.retryOptions}},{handler:s,dispatch:e}))}});var b0e=p((wvr,E0e)=>{"use strict";var Wht=wt(),{InvalidArgumentError:Jht,RequestAbortedError:Yht}=Vt(),Kht=DD(),wz=class extends Kht{#e=1024*1024;#t=null;#i=!1;#r=!1;#s=0;#n=null;#l=null;constructor({maxSize:e},r){if(super(r),e!=null&&(!Number.isFinite(e)||e<1))throw new Jht("maxSize must be a number greater than 0");this.#e=e??this.#e,this.#l=r}onConnect(e){this.#t=e,this.#l.onConnect(this.#u.bind(this))}#u(e){this.#r=!0,this.#n=e}onHeaders(e,r,i,s){let o=Wht.parseHeaders(r)["content-length"];if(o!=null&&o>this.#e)throw new Yht(`Response size (${o}) larger than maxSize (${this.#e})`);return this.#r?!0:this.#l.onHeaders(e,r,i,s)}onError(e){this.#i||(e=this.#n??e,this.#l.onError(e))}onData(e){return this.#s=this.#s+e.length,this.#s>=this.#e&&(this.#i=!0,this.#r?this.#l.onError(this.#n):this.#l.onComplete([])),!0}onComplete(e){if(!this.#i){if(this.#r){this.#l.onError(this.reason);return}this.#l.onComplete(e)}}};function Xht({maxSize:t}={maxSize:1024*1024}){return e=>function(i,s){let{dumpMaxSize:n=t}=i,o=new wz({maxSize:n},s);return e(i,o)}}E0e.exports=Xht});var I0e=p((Cvr,C0e)=>{"use strict";var{isIP:Zht}=require("node:net"),{lookup:edt}=require("node:dns"),tdt=DD(),{InvalidArgumentError:Pb,InformationalError:rdt}=Vt(),w0e=Math.pow(2,31)-1,Cz=class{#e=0;#t=0;#i=new Map;dualStack=!0;affinity=null;lookup=null;pick=null;constructor(e){this.#e=e.maxTTL,this.#t=e.maxItems,this.dualStack=e.dualStack,this.affinity=e.affinity,this.lookup=e.lookup??this.#r,this.pick=e.pick??this.#s}get full(){return this.#i.size===this.#t}runLookup(e,r,i){let s=this.#i.get(e.hostname);if(s==null&&this.full){i(null,e.origin);return}let n={affinity:this.affinity,dualStack:this.dualStack,lookup:this.lookup,pick:this.pick,...r.dns,maxTTL:this.#e,maxItems:this.#t};if(s==null)this.lookup(e,n,(o,a)=>{if(o||a==null||a.length===0){i(o??new rdt("No DNS entries found"));return}this.setRecords(e,a);let c=this.#i.get(e.hostname),u=this.pick(e,c,n.affinity),l;typeof u.port=="number"?l=`:${u.port}`:e.port!==""?l=`:${e.port}`:l="",i(null,`${e.protocol}//${u.family===6?`[${u.address}]`:u.address}${l}`)});else{let o=this.pick(e,s,n.affinity);if(o==null){this.#i.delete(e.hostname),this.runLookup(e,r,i);return}let a;typeof o.port=="number"?a=`:${o.port}`:e.port!==""?a=`:${e.port}`:a="",i(null,`${e.protocol}//${o.family===6?`[${o.address}]`:o.address}${a}`)}}#r(e,r,i){edt(e.hostname,{all:!0,family:this.dualStack===!1?this.affinity:0,order:"ipv4first"},(s,n)=>{if(s)return i(s);let o=new Map;for(let a of n)o.set(`${a.address}:${a.family}`,a);i(null,o.values())})}#s(e,r,i){let s=null,{records:n,offset:o}=r,a;if(this.dualStack?(i==null&&(o==null||o===w0e?(r.offset=0,i=4):(r.offset++,i=(r.offset&1)===1?6:4)),n[i]!=null&&n[i].ips.length>0?a=n[i]:a=n[i===4?6:4]):a=n[i],a==null||a.ips.length===0)return s;a.offset==null||a.offset===w0e?a.offset=0:a.offset++;let c=a.offset%a.ips.length;return s=a.ips[c]??null,s==null?s:Date.now()-s.timestamp>s.ttl?(a.ips.splice(c,1),this.pick(e,r,i)):s}setRecords(e,r){let i=Date.now(),s={records:{4:null,6:null}};for(let n of r){n.timestamp=i,typeof n.ttl=="number"?n.ttl=Math.min(n.ttl,this.#e):n.ttl=this.#e;let o=s.records[n.family]??{ips:[]};o.ips.push(n),s.records[n.family]=o}this.#i.set(e.hostname,s)}getHandler(e,r){return new Iz(this,e,r)}},Iz=class extends tdt{#e=null;#t=null;#i=null;#r=null;#s=null;constructor(e,{origin:r,handler:i,dispatch:s},n){super(i),this.#s=r,this.#r=i,this.#t={...n},this.#e=e,this.#i=s}onError(e){switch(e.code){case"ETIMEDOUT":case"ECONNREFUSED":{if(this.#e.dualStack){this.#e.runLookup(this.#s,this.#t,(
Line truncated
|
||||
${n}`;break;case"retry":rCe(n)&&(r[s]=n);break;case"id":iCe(n)&&(r[s]=n);break;case"event":n.length>0&&(r[s]=n);break}}processEvent(e){e.retry&&rCe(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id&&iCe(e.id)&&(this.state.lastEventId=e.id),e.data!==void 0&&this.push({type:e.event||"message",options:{data:e.data,lastEventId:this.state.lastEventId,origin:this.state.origin}})}clearEvent(){this.event={data:void 0,event:void 0,id:void 0,retry:void 0}}};sCe.exports={EventSourceStream:c9}});var dCe=p((Zvr,hCe)=>{"use strict";var{pipeline:hgt}=require("node:stream"),{fetching:dgt}=Iv(),{makeRequest:pgt}=Lb(),{webidl:pd}=Ws(),{EventSourceStream:mgt}=nCe(),{parseMIMEType:Agt}=Go(),{createFastMessageEvent:ggt}=Hb(),{isNetworkError:oCe}=wv(),{delay:ygt}=o9(),{kEnumerableProperty:Jg}=wt(),{environmentSettingsObject:aCe}=Sa(),cCe=!1,uCe=3e3,kv=0,lCe=1,Lv=2,Egt="anonymous",bgt="use-credentials",Wb=class t extends EventTarget{#e={open:null,error:null,message:null};#t=null;#i=!1;#r=kv;#s=null;#n=null;#l;#u;constructor(e,r={}){super(),pd.util.markAsUncloneable(this);let i="EventSource constructor";pd.argumentLengthCheck(arguments,1,i),cCe||(cCe=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=pd.converters.USVString(e,i,"url"),r=pd.converters.EventSourceInitDict(r,i,"eventSourceInitDict"),this.#l=r.dispatcher,this.#u={lastEventId:"",reconnectionTime:uCe};let s=aCe,n;try{n=new URL(e,s.settingsObject.baseUrl),this.#u.origin=n.origin}catch(c){throw new DOMException(c,"SyntaxError")}this.#t=n.href;let o=Egt;r.withCredentials&&(o=bgt,this.#i=!0);let a={redirect:"follow",keepalive:!0,mode:"cors",credentials:o==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};a.client=aCe.settingsObject,a.headersList=[["accept",{name:"accept",value:"text/event-stream"}]],a.cache="no-store",a.initiator="other",a.urlList=[new URL(this.#t)],this.#s=pgt(a),this.#a()}get readyState(){return this.#r}get url(){return this.#t}get withCredentials(){return this.#i}#a(){if(this.#r===Lv)return;this.#r=kv;let e={request:this.#s,dispatcher:this.#l},r=i=>{oCe(i)&&(this.dispatchEvent(new Event("error")),this.close()),this.#c()};e.processResponseEndOfBody=r,e.processResponse=i=>{if(oCe(i))if(i.aborted){this.close(),this.dispatchEvent(new Event("error"));return}else{this.#c();return}let s=i.headersList.get("content-type",!0),n=s!==null?Agt(s):"failure",o=n!=="failure"&&n.essence==="text/event-stream";if(i.status!==200||o===!1){this.close(),this.dispatchEvent(new Event("error"));return}this.#r=lCe,this.dispatchEvent(new Event("open")),this.#u.origin=i.urlList[i.urlList.length-1].origin;let a=new mgt({eventSourceSettings:this.#u,push:c=>{this.dispatchEvent(ggt(c.type,c.options))}});hgt(i.body.stream,a,c=>{c?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#n=dgt(e)}async#c(){this.#r!==Lv&&(this.#r=kv,this.dispatchEvent(new Event("error")),await ygt(this.#u.reconnectionTime),this.#r===kv&&(this.#u.lastEventId.length&&this.#s.headersList.set("last-event-id",this.#u.lastEventId,!0),this.#a()))}close(){pd.brandCheck(this,t),this.#r!==Lv&&(this.#r=Lv,this.#n.abort(),this.#s=null)}get onopen(){return this.#e.open}set onopen(e){this.#e.open&&this.removeEventListener("open",this.#e.open),typeof e=="function"?(this.#e.open=e,this.addEventListener("open",e)):this.#e.open=null}get onmessage(){return this.#e.message}set onmessage(e){this.#e.message&&this.removeEventListener("message",this.#e.message),typeof e=="function"?(this.#e.message=e,this.addEventListener("message",e)):this.#e.message=null}get onerror(){return this.#e.error}set onerror(e){this.#e.error&&this.removeEventListener("error",this.#e.error),typeof e=="function"?(this.#e.error=e,this.addEventListener("error",e)):this.#e.error=null}},fCe={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:kv,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:lCe,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:Lv,writable:!1}};Object.defineProperties(Wb,fCe);Object.defineProperties(Wb.prototype,fCe);Object.defineProperties(Wb.prototype,{close:Jg,onerror:Jg,onmessage:Jg,onopen:Jg,readyState:Jg,url:Jg,withCredentials:Jg});pd.converters.EventSourceInitDict=pd.dictionaryConverter([{key:"withCredentials",converter:pd.converters.boolean,defaultValue:()=>!1},{key:"dispatcher",converter:pd.converters.any}]);hCe.exports={EventSource:Wb,defaultReconnectionTime:uCe}});var bO=p((exr,Ye)=>{"use strict";var wgt=Cb(),pCe=qB(),Cgt=Ib(),Igt=fye(),Sgt=Sb(),Bgt=Oj(),vgt=Qye(),xgt=qye(),mCe=Vt(),EO=wt(),{InvalidArgumentError:yO}=mCe,Jb=xEe(),_gt=HB(),Rgt=pz(),Tgt=u0e(),Ngt=gz(),Dgt=tz(),Ogt=wD(),{getGlobalDispatcher:ACe,setGlobalDispatcher:Pgt}=ND(),Qgt=DD(),kgt=lD(),Lgt=fD();Object.assign(pCe.prototype,Jb);Ye.exports.Dispatcher=pCe;Ye.exports.Client=wgt;Ye.exports.Pool=Cgt;Ye.exports.BalancedPool=Igt;Ye.exports.Agent=Sgt;Ye.exports.ProxyAgent=Bgt;Ye.exports.EnvHttpProxyAgent=vgt;Ye.e
Line truncated
|
||||
%s`,D,D,E,i);var q=E.type==="*"?sV:E.type==="?"?iV:"\\"+E.type;s=!0,i=i.slice(0,E.reStart)+q+"\\("+D}m(),n&&(i+="\\\\");var N=!1;switch(i.charAt(0)){case"[":case".":case"(":N=!0}for(var $=a.length-1;$>-1;$--){var O=a[$],j=i.slice(0,O.reStart),M=i.slice(O.reStart,O.reEnd-8),Z=i.slice(O.reEnd-8,O.reEnd),J=i.slice(O.reEnd);Z+=J;var Ne=j.split("(").length-1,he=J;for(A=0;A<Ne;A++)he=he.replace(/\)[+*?]?/,"");J=he;var Qe="";J===""&&e!==zO&&(Qe="$");var X=j+M+J+Qe+Z;i=X}if(i!==""&&s&&(i="(?=.)"+i),N&&(i=h+i),e===zO)return[i,s];if(!s)return jbt(t);var Re=r.nocase?"i":"";try{var Ce=new RegExp("^"+i+"$",Re)}catch{return new RegExp("$.")}return Ce._glob=t,Ce._src=i,Ce}ka.makeRe=function(t,e){return new Ys(t,e||{}).makeRe()};Ys.prototype.makeRe=Hbt;function Hbt(){if(this.regexp||this.regexp===!1)return this.regexp;var t=this.set;if(!t.length)return this.regexp=!1,this.regexp;var e=this.options,r=e.noglobstar?sV:e.dot?Qbt:kbt,i=e.nocase?"i":"",s=t.map(function(n){return n.map(function(o){return o===nV?r:typeof o=="string"?zbt(o):o._src}).join("\\/")}).join("|");s="^(?:"+s+")$",this.negate&&(s="^(?!"+s+").*$");try{this.regexp=new RegExp(s,i)}catch{this.regexp=!1}return this.regexp}ka.match=function(t,e,r){r=r||{};var i=new Ys(e,r);return t=t.filter(function(s){return i.match(s)}),i.options.nonull&&!t.length&&t.push(e),t};Ys.prototype.match=function(e,r){if(typeof r>"u"&&(r=this.partial),this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return e==="";if(e==="/"&&r)return!0;var i=this.options;Zv.sep!=="/"&&(e=e.split(Zv.sep).join("/")),e=e.split(iBe),this.debug(this.pattern,"split",e);var s=this.set;this.debug(this.pattern,"set",s);var n,o;for(o=e.length-1;o>=0&&(n=e[o],!n);o--);for(o=0;o<s.length;o++){var a=s[o],c=e;i.matchBase&&a.length===1&&(c=[n]);var u=this.matchOne(c,a,r);if(u)return i.flipNegate?!0:!this.negate}return i.flipNegate?!1:this.negate};Ys.prototype.matchOne=function(t,e,r){var i=this.options;this.debug("matchOne",{this:this,file:t,pattern:e}),this.debug("matchOne",t.length,e.length);for(var s=0,n=0,o=t.length,a=e.length;s<o&&n<a;s++,n++){this.debug("matchOne loop");var c=e[n],u=t[s];if(this.debug(e,c,u),c===!1)return!1;if(c===nV){this.debug("GLOBSTAR",[e,c,u]);var l=s,f=n+1;if(f===a){for(this.debug("** at the end");s<o;s++)if(t[s]==="."||t[s]===".."||!i.dot&&t[s].charAt(0)===".")return!1;return!0}for(;l<o;){var h=t[l];if(this.debug(`
|
||||
`.trim())}};g0e.exports=vz});var PD=p((Qvr,C0e)=>{"use strict";var E0e=Symbol.for("undici.globalDispatcher.1"),{InvalidArgumentError:rdt}=Vt(),idt=vb();w0e()===void 0&&b0e(new idt);function b0e(t){if(!t||typeof t.dispatch!="function")throw new rdt("Argument agent must implement Agent");Object.defineProperty(globalThis,E0e,{value:t,writable:!0,enumerable:!1,configurable:!1})}function w0e(){return globalThis[E0e]}C0e.exports={setGlobalDispatcher:b0e,getGlobalDispatcher:w0e}});var QD=p((Lvr,I0e)=>{"use strict";I0e.exports=class{#e;constructor(e){if(typeof e!="object"||e===null)throw new TypeError("handler must be an object");this.#e=e}onConnect(...e){return this.#e.onConnect?.(...e)}onError(...e){return this.#e.onError?.(...e)}onUpgrade(...e){return this.#e.onUpgrade?.(...e)}onResponseStarted(...e){return this.#e.onResponseStarted?.(...e)}onHeaders(...e){return this.#e.onHeaders?.(...e)}onData(...e){return this.#e.onData?.(...e)}onComplete(...e){return this.#e.onComplete?.(...e)}onBodySent(...e){return this.#e.onBodySent?.(...e)}}});var B0e=p((Fvr,S0e)=>{"use strict";var sdt=dD();S0e.exports=t=>{let e=t?.maxRedirections;return r=>function(s,n){let{maxRedirections:o=e,...a}=s;if(!o)return r(s,n);let c=new sdt(r,o,s,n);return r(a,c)}}});var x0e=p((Mvr,v0e)=>{"use strict";var ndt=SD();v0e.exports=t=>e=>function(i,s){return e(i,new ndt({...i,retryOptions:{...t,...i.retryOptions}},{handler:s,dispatch:e}))}});var R0e=p((Uvr,_0e)=>{"use strict";var odt=wt(),{InvalidArgumentError:adt,RequestAbortedError:cdt}=Vt(),udt=QD(),xz=class extends udt{#e=1024*1024;#t=null;#i=!1;#r=!1;#s=0;#n=null;#l=null;constructor({maxSize:e},r){if(super(r),e!=null&&(!Number.isFinite(e)||e<1))throw new adt("maxSize must be a number greater than 0");this.#e=e??this.#e,this.#l=r}onConnect(e){this.#t=e,this.#l.onConnect(this.#u.bind(this))}#u(e){this.#r=!0,this.#n=e}onHeaders(e,r,i,s){let o=odt.parseHeaders(r)["content-length"];if(o!=null&&o>this.#e)throw new cdt(`Response size (${o}) larger than maxSize (${this.#e})`);return this.#r?!0:this.#l.onHeaders(e,r,i,s)}onError(e){this.#i||(e=this.#n??e,this.#l.onError(e))}onData(e){return this.#s=this.#s+e.length,this.#s>=this.#e&&(this.#i=!0,this.#r?this.#l.onError(this.#n):this.#l.onComplete([])),!0}onComplete(e){if(!this.#i){if(this.#r){this.#l.onError(this.reason);return}this.#l.onComplete(e)}}};function ldt({maxSize:t}={maxSize:1024*1024}){return e=>function(i,s){let{dumpMaxSize:n=t}=i,o=new xz({maxSize:n},s);return e(i,o)}}_0e.exports=ldt});var D0e=p((qvr,T0e)=>{"use strict";var{isIP:fdt}=require("node:net"),{lookup:hdt}=require("node:dns"),ddt=QD(),{InvalidArgumentError:kb,InformationalError:pdt}=Vt(),N0e=Math.pow(2,31)-1,_z=class{#e=0;#t=0;#i=new Map;dualStack=!0;affinity=null;lookup=null;pick=null;constructor(e){this.#e=e.maxTTL,this.#t=e.maxItems,this.dualStack=e.dualStack,this.affinity=e.affinity,this.lookup=e.lookup??this.#r,this.pick=e.pick??this.#s}get full(){return this.#i.size===this.#t}runLookup(e,r,i){let s=this.#i.get(e.hostname);if(s==null&&this.full){i(null,e.origin);return}let n={affinity:this.affinity,dualStack:this.dualStack,lookup:this.lookup,pick:this.pick,...r.dns,maxTTL:this.#e,maxItems:this.#t};if(s==null)this.lookup(e,n,(o,a)=>{if(o||a==null||a.length===0){i(o??new pdt("No DNS entries found"));return}this.setRecords(e,a);let c=this.#i.get(e.hostname),u=this.pick(e,c,n.affinity),l;typeof u.port=="number"?l=`:${u.port}`:e.port!==""?l=`:${e.port}`:l="",i(null,`${e.protocol}//${u.family===6?`[${u.address}]`:u.address}${l}`)});else{let o=this.pick(e,s,n.affinity);if(o==null){this.#i.delete(e.hostname),this.runLookup(e,r,i);return}let a;typeof o.port=="number"?a=`:${o.port}`:e.port!==""?a=`:${e.port}`:a="",i(null,`${e.protocol}//${o.family===6?`[${o.address}]`:o.address}${a}`)}}#r(e,r,i){hdt(e.hostname,{all:!0,family:this.dualStack===!1?this.affinity:0,order:"ipv4first"},(s,n)=>{if(s)return i(s);let o=new Map;for(let a of n)o.set(`${a.address}:${a.family}`,a);i(null,o.values())})}#s(e,r,i){let s=null,{records:n,offset:o}=r,a;if(this.dualStack?(i==null&&(o==null||o===N0e?(r.offset=0,i=4):(r.offset++,i=(r.offset&1)===1?6:4)),n[i]!=null&&n[i].ips.length>0?a=n[i]:a=n[i===4?6:4]):a=n[i],a==null||a.ips.length===0)return s;a.offset==null||a.offset===N0e?a.offset=0:a.offset++;let c=a.offset%a.ips.length;return s=a.ips[c]??null,s==null?s:Date.now()-s.timestamp>s.ttl?(a.ips.splice(c,1),this.pick(e,r,i)):s}setRecords(e,r){let i=Date.now(),s={records:{4:null,6:null}};for(let n of r){n.timestamp=i,typeof n.ttl=="number"?n.ttl=Math.min(n.ttl,this.#e):n.ttl=this.#e;let o=s.records[n.family]??{ips:[]};o.ips.push(n),s.records[n.family]=o}this.#i.set(e.hostname,s)}getHandler(e,r){return new Rz(this,e,r)}},Rz=class extends ddt{#e=null;#t=null;#i=null;#r=null;#s=null;constructor(e,{origin:r,handler:i,dispatch:s},n){super(i),this.#s=r,this.#r=i,this.#t={...n},this.#e=e,this.#i=s}onError(e){switch(e.code){case"ETIMEDOUT":case"ECONNREFUSED":{if(this.#e.dualStack){this.#e.runLookup(this.#s,this.#t,(
Line truncated
|
||||
${n}`;break;case"retry":fCe(n)&&(r[s]=n);break;case"id":hCe(n)&&(r[s]=n);break;case"event":n.length>0&&(r[s]=n);break}}processEvent(e){e.retry&&fCe(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id&&hCe(e.id)&&(this.state.lastEventId=e.id),e.data!==void 0&&this.push({type:e.event||"message",options:{data:e.data,lastEventId:this.state.lastEventId,origin:this.state.origin}})}clearEvent(){this.event={data:void 0,event:void 0,id:void 0,retry:void 0}}};dCe.exports={EventSourceStream:p9}});var CCe=p((yxr,wCe)=>{"use strict";var{pipeline:Sgt}=require("node:stream"),{fetching:Bgt}=vv(),{makeRequest:vgt}=Mb(),{webidl:dd}=Ws(),{EventSourceStream:xgt}=pCe(),{parseMIMEType:_gt}=Go(),{createFastMessageEvent:Rgt}=zb(),{isNetworkError:mCe}=Sv(),{delay:Ngt}=h9(),{kEnumerableProperty:Yg}=wt(),{environmentSettingsObject:ACe}=Sa(),gCe=!1,yCe=3e3,Mv=0,ECe=1,Uv=2,Tgt="anonymous",Dgt="use-credentials",Yb=class t extends EventTarget{#e={open:null,error:null,message:null};#t=null;#i=!1;#r=Mv;#s=null;#n=null;#l;#u;constructor(e,r={}){super(),dd.util.markAsUncloneable(this);let i="EventSource constructor";dd.argumentLengthCheck(arguments,1,i),gCe||(gCe=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=dd.converters.USVString(e,i,"url"),r=dd.converters.EventSourceInitDict(r,i,"eventSourceInitDict"),this.#l=r.dispatcher,this.#u={lastEventId:"",reconnectionTime:yCe};let s=ACe,n;try{n=new URL(e,s.settingsObject.baseUrl),this.#u.origin=n.origin}catch(c){throw new DOMException(c,"SyntaxError")}this.#t=n.href;let o=Tgt;r.withCredentials&&(o=Dgt,this.#i=!0);let a={redirect:"follow",keepalive:!0,mode:"cors",credentials:o==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};a.client=ACe.settingsObject,a.headersList=[["accept",{name:"accept",value:"text/event-stream"}]],a.cache="no-store",a.initiator="other",a.urlList=[new URL(this.#t)],this.#s=vgt(a),this.#a()}get readyState(){return this.#r}get url(){return this.#t}get withCredentials(){return this.#i}#a(){if(this.#r===Uv)return;this.#r=Mv;let e={request:this.#s,dispatcher:this.#l},r=i=>{mCe(i)&&(this.dispatchEvent(new Event("error")),this.close()),this.#c()};e.processResponseEndOfBody=r,e.processResponse=i=>{if(mCe(i))if(i.aborted){this.close(),this.dispatchEvent(new Event("error"));return}else{this.#c();return}let s=i.headersList.get("content-type",!0),n=s!==null?_gt(s):"failure",o=n!=="failure"&&n.essence==="text/event-stream";if(i.status!==200||o===!1){this.close(),this.dispatchEvent(new Event("error"));return}this.#r=ECe,this.dispatchEvent(new Event("open")),this.#u.origin=i.urlList[i.urlList.length-1].origin;let a=new xgt({eventSourceSettings:this.#u,push:c=>{this.dispatchEvent(Rgt(c.type,c.options))}});Sgt(i.body.stream,a,c=>{c?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#n=Bgt(e)}async#c(){this.#r!==Uv&&(this.#r=Mv,this.dispatchEvent(new Event("error")),await Ngt(this.#u.reconnectionTime),this.#r===Mv&&(this.#u.lastEventId.length&&this.#s.headersList.set("last-event-id",this.#u.lastEventId,!0),this.#a()))}close(){dd.brandCheck(this,t),this.#r!==Uv&&(this.#r=Uv,this.#n.abort(),this.#s=null)}get onopen(){return this.#e.open}set onopen(e){this.#e.open&&this.removeEventListener("open",this.#e.open),typeof e=="function"?(this.#e.open=e,this.addEventListener("open",e)):this.#e.open=null}get onmessage(){return this.#e.message}set onmessage(e){this.#e.message&&this.removeEventListener("message",this.#e.message),typeof e=="function"?(this.#e.message=e,this.addEventListener("message",e)):this.#e.message=null}get onerror(){return this.#e.error}set onerror(e){this.#e.error&&this.removeEventListener("error",this.#e.error),typeof e=="function"?(this.#e.error=e,this.addEventListener("error",e)):this.#e.error=null}},bCe={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:Mv,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:ECe,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:Uv,writable:!1}};Object.defineProperties(Yb,bCe);Object.defineProperties(Yb.prototype,bCe);Object.defineProperties(Yb.prototype,{close:Yg,onerror:Yg,onmessage:Yg,onopen:Yg,readyState:Yg,url:Yg,withCredentials:Yg});dd.converters.EventSourceInitDict=dd.dictionaryConverter([{key:"withCredentials",converter:dd.converters.boolean,defaultValue:()=>!1},{key:"dispatcher",converter:dd.converters.any}]);wCe.exports={EventSource:Yb,defaultReconnectionTime:yCe}});var IO=p((Exr,Ye)=>{"use strict";var Ogt=Sb(),ICe=jB(),Pgt=Bb(),Qgt=bye(),kgt=vb(),Lgt=Mj(),Fgt=jye(),Mgt=Yye(),SCe=Vt(),CO=wt(),{InvalidArgumentError:wO}=SCe,Kb=kEe(),Ugt=VB(),qgt=bz(),Ggt=y0e(),Hgt=Iz(),jgt=az(),zgt=SD(),{getGlobalDispatcher:BCe,setGlobalDispatcher:Vgt}=PD(),$gt=QD(),Wgt=dD(),Jgt=pD();Object.assign(ICe.prototype,Kb);Ye.exports.Dispatcher=ICe;Ye.exports.Client=Ogt;Ye.exports.Pool=Pgt;Ye.exports.BalancedPool=Qgt;Ye.exports.Agent=kgt;Ye.exports.ProxyAgent=Lgt;Ye.exports.EnvHttpProxyAgent=Fgt;Ye.e
Line truncated
|
||||
%s`,D,D,E,i);var q=E.type==="*"?lV:E.type==="?"?uV:"\\"+E.type;s=!0,i=i.slice(0,E.reStart)+q+"\\("+D}m(),n&&(i+="\\\\");var T=!1;switch(i.charAt(0)){case"[":case".":case"(":T=!0}for(var $=a.length-1;$>-1;$--){var O=a[$],j=i.slice(0,O.reStart),F=i.slice(O.reStart,O.reEnd-8),Z=i.slice(O.reEnd-8,O.reEnd),J=i.slice(O.reEnd);Z+=J;var Te=j.split("(").length-1,he=J;for(A=0;A<Te;A++)he=he.replace(/\)[+*?]?/,"");J=he;var Qe="";J===""&&e!==WO&&(Qe="$");var X=j+F+J+Qe+Z;i=X}if(i!==""&&s&&(i="(?=.)"+i),T&&(i=h+i),e===WO)return[i,s];if(!s)return rwt(t);var Re=r.nocase?"i":"";try{var Ce=new RegExp("^"+i+"$",Re)}catch{return new RegExp("$.")}return Ce._glob=t,Ce._src=i,Ce}ka.makeRe=function(t,e){return new Ys(t,e||{}).makeRe()};Ys.prototype.makeRe=twt;function twt(){if(this.regexp||this.regexp===!1)return this.regexp;var t=this.set;if(!t.length)return this.regexp=!1,this.regexp;var e=this.options,r=e.noglobstar?lV:e.dot?$bt:Wbt,i=e.nocase?"i":"",s=t.map(function(n){return n.map(function(o){return o===fV?r:typeof o=="string"?iwt(o):o._src}).join("\\/")}).join("|");s="^(?:"+s+")$",this.negate&&(s="^(?!"+s+").*$");try{this.regexp=new RegExp(s,i)}catch{this.regexp=!1}return this.regexp}ka.match=function(t,e,r){r=r||{};var i=new Ys(e,r);return t=t.filter(function(s){return i.match(s)}),i.options.nonull&&!t.length&&t.push(e),t};Ys.prototype.match=function(e,r){if(typeof r>"u"&&(r=this.partial),this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return e==="";if(e==="/"&&r)return!0;var i=this.options;rx.sep!=="/"&&(e=e.split(rx.sep).join("/")),e=e.split(hBe),this.debug(this.pattern,"split",e);var s=this.set;this.debug(this.pattern,"set",s);var n,o;for(o=e.length-1;o>=0&&(n=e[o],!n);o--);for(o=0;o<s.length;o++){var a=s[o],c=e;i.matchBase&&a.length===1&&(c=[n]);var u=this.matchOne(c,a,r);if(u)return i.flipNegate?!0:!this.negate}return i.flipNegate?!1:this.negate};Ys.prototype.matchOne=function(t,e,r){var i=this.options;this.debug("matchOne",{this:this,file:t,pattern:e}),this.debug("matchOne",t.length,e.length);for(var s=0,n=0,o=t.length,a=e.length;s<o&&n<a;s++,n++){this.debug("matchOne loop");var c=e[n],u=t[s];if(this.debug(e,c,u),c===!1)return!1;if(c===fV){this.debug("GLOBSTAR",[e,c,u]);var l=s,f=n+1;if(f===a){for(this.debug("** at the end");s<o;s++)if(t[s]==="."||t[s]===".."||!i.dot&&t[s].charAt(0)===".")return!1;return!0}for(;l<o;){var h=t[l];if(this.debug(`
|
||||
globstar while`,t,l,e,f,h),this.matchOne(t.slice(l),e.slice(f),r))return this.debug("globstar found match!",l,o,h),!0;if(h==="."||h===".."||!i.dot&&h.charAt(0)==="."){this.debug("dot detected!",t,l,e,f);break}this.debug("globstar swallow a segment, and continue"),l++}return!!(r&&(this.debug(`
|
||||
>>> no match, partial?`,t,l,e,f),l===o))}var d;if(typeof c=="string"?(d=u===c,this.debug("string match",c,u,d)):(d=u.match(c),this.debug("pattern match",c,u,d)),!d)return!1}if(s===o&&n===a)return!0;if(s===o)return r;if(n===a)return s===o-1&&t[s]==="";throw new Error("wtf?")};function jbt(t){return t.replace(/\\(.)/g,"$1")}function zbt(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}});var rx=p((q_r,lBe)=>{"use strict";var Zbt="2.0.0",ewt=Number.MAX_SAFE_INTEGER||9007199254740991,twt=16,rwt=250,iwt=["major","premajor","minor","preminor","patch","prepatch","prerelease"];lBe.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:twt,MAX_SAFE_BUILD_LENGTH:rwt,MAX_SAFE_INTEGER:ewt,RELEASE_TYPES:iwt,SEMVER_SPEC_VERSION:Zbt,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var ix=p((G_r,fBe)=>{"use strict";var swt=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};fBe.exports=swt});var nw=p((tf,hBe)=>{"use strict";var{MAX_SAFE_COMPONENT_LENGTH:aV,MAX_SAFE_BUILD_LENGTH:nwt,MAX_LENGTH:owt}=rx(),awt=ix();tf=hBe.exports={};var cwt=tf.re=[],uwt=tf.safeRe=[],Ae=tf.src=[],lwt=tf.safeSrc=[],ge=tf.t={},fwt=0,cV="[a-zA-Z0-9-]",hwt=[["\\s",1],["\\d",owt],[cV,nwt]],dwt=t=>{for(let[e,r]of hwt)t=t.split(`${e}*`).join(`${e}{0,${r}}`).split(`${e}+`).join(`${e}{1,${r}}`);return t},ct=(t,e,r)=>{let i=dwt(e),s=fwt++;awt(t,s,e),ge[t]=s,Ae[s]=e,lwt[s]=i,cwt[s]=new RegExp(e,r?"g":void 0),uwt[s]=new RegExp(i,r?"g":void 0)};ct("NUMERICIDENTIFIER","0|[1-9]\\d*");ct("NUMERICIDENTIFIERLOOSE","\\d+");ct("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${cV}*`);ct("MAINVERSION",`(${Ae[ge.NUMERICIDENTIFIER]})\\.(${Ae[ge.NUMERICIDENTIFIER]})\\.(${Ae[ge.NUMERICIDENTIFIER]})`);ct("MAINVERSIONLOOSE",`(${Ae[ge.NUMERICIDENTIFIERLOOSE]})\\.(${Ae[ge.NUMERICIDENTIFIERLOOSE]})\\.(${Ae[ge.NUMERICIDENTIFIERLOOSE]})`);ct("PRERELEASEIDENTIFIER",`(?:${Ae[ge.NONNUMERICIDENTIFIER]}|${Ae[ge.NUMERICIDENTIFIER]})`);ct("PRERELEASEIDENTIFIERLOOSE",`(?:${Ae[ge.NONNUMERICIDENTIFIER]}|${Ae[ge.NUMERICIDENTIFIERLOOSE]})`);ct("PRERELEASE",`(?:-(${Ae[ge.PRERELEASEIDENTIFIER]}(?:\\.${Ae[ge.PRERELEASEIDENTIFIER]})*))`);ct("PRERELEASELOOSE",`(?:-?(${Ae[ge.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${Ae[ge.PRERELEASEIDENTIFIERLOOSE]})*))`);ct("BUILDIDENTIFIER",`${cV}+`);ct("BUILD",`(?:\\+(${Ae[ge.BUILDIDENTIFIER]}(?:\\.${Ae[ge.BUILDIDENTIFIER]})*))`);ct("FULLPLAIN",`v?${Ae[ge.MAINVERSION]}${Ae[ge.PRERELEASE]}?${Ae[ge.BUILD]}?`);ct("FULL",`^${Ae[ge.FULLPLAIN]}$`);ct("LOOSEPLAIN",`[v=\\s]*${Ae[ge.MAINVERSIONLOOSE]}${Ae[ge.PRERELEASELOOSE]}?${Ae[ge.BUILD]}?`);ct("LOOSE",`^${Ae[ge.LOOSEPLAIN]}$`);ct("GTLT","((?:<|>)?=?)");ct("XRANGEIDENTIFIERLOOSE",`${Ae[ge.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);ct("XRANGEIDENTIFIER",`${Ae[ge.NUMERICIDENTIFIER]}|x|X|\\*`);ct("XRANGEPLAIN",`[v=\\s]*(${Ae[ge.XRANGEIDENTIFIER]})(?:\\.(${Ae[ge.XRANGEIDENTIFIER]})(?:\\.(${Ae[ge.XRANGEIDENTIFIER]})(?:${Ae[ge.PRERELEASE]})?${Ae[ge.BUILD]}?)?)?`);ct("XRANGEPLAINLOOSE",`[v=\\s]*(${Ae[ge.XRANGEIDENTIFIERLOOSE]})(?:\\.(${Ae[ge.XRANGEIDENTIFIERLOOSE]})(?:\\.(${Ae[ge.XRANGEIDENTIFIERLOOSE]})(?:${Ae[ge.PRERELEASELOOSE]})?${Ae[ge.BUILD]}?)?)?`);ct("XRANGE",`^${Ae[ge.GTLT]}\\s*${Ae[ge.XRANGEPLAIN]}$`);ct("XRANGELOOSE",`^${Ae[ge.GTLT]}\\s*${Ae[ge.XRANGEPLAINLOOSE]}$`);ct("COERCEPLAIN",`(^|[^\\d])(\\d{1,${aV}})(?:\\.(\\d{1,${aV}}))?(?:\\.(\\d{1,${aV}}))?`);ct("COERCE",`${Ae[ge.COERCEPLAIN]}(?:$|[^\\d])`);ct("COERCEFULL",Ae[ge.COERCEPLAIN]+`(?:${Ae[ge.PRERELEASE]})?(?:${Ae[ge.BUILD]})?(?:$|[^\\d])`);ct("COERCERTL",Ae[ge.COERCE],!0);ct("COERCERTLFULL",Ae[ge.COERCEFULL],!0);ct("LONETILDE","(?:~>?)");ct("TILDETRIM",`(\\s*)${Ae[ge.LONETILDE]}\\s+`,!0);tf.tildeTrimReplace="$1~";ct("TILDE",`^${Ae[ge.LONETILDE]}${Ae[ge.XRANGEPLAIN]}$`);ct("TILDELOOSE",`^${Ae[ge.LONETILDE]}${Ae[ge.XRANGEPLAINLOOSE]}$`);ct("LONECARET","(?:\\^)");ct("CARETTRIM",`(\\s*)${Ae[ge.LONECARET]}\\s+`,!0);tf.caretTrimReplace="$1^";ct("CARET",`^${Ae[ge.LONECARET]}${Ae[ge.XRANGEPLAIN]}$`);ct("CARETLOOSE",`^${Ae[ge.LONECARET]}${Ae[ge.XRANGEPLAINLOOSE]}$`);ct("COMPARATORLOOSE",`^${Ae[ge.GTLT]}\\s*(${Ae[ge.LOOSEPLAIN]})$|^$`);ct("COMPARATOR",`^${Ae[ge.GTLT]}\\s*(${Ae[ge.FULLPLAIN]})$|^$`);ct("COMPARATORTRIM",`(\\s*)${Ae[ge.GTLT]}\\s*(${Ae[ge.LOOSEPLAIN]}|${Ae[ge.XRANGEPLAIN]})`,!0);tf.comparatorTrimReplace="$1$2$3";ct("HYPHENRANGE",`^\\s*(${Ae[ge.XRANGEPLAIN]})\\s+-\\s+(${Ae[ge.XRANGEPLAIN]})\\s*$`);ct("HYPHENRANGELOOSE",`^\\s*(${Ae[ge.XRANGEPLAINLOOSE]})\\s+-\\s+(${Ae[ge.XRANGEPLAINLOOSE]})\\s*$`);ct("STAR","(<|>)?=?\\s*\\*");ct("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");ct("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")});var JO=p((H_r,dBe)=>{"use strict";var pwt=Object.freeze({loose:!0}),mwt=Object.freeze({}),Awt=t=>t?typeof t!="object"?pwt:t:mwt;dBe.exports=Awt});var uV=p((j_r,ABe)=>{"use strict";var pBe=/^[0-9]+$/,mBe=(t,e)=>{if(typeof t=="number"&&typeof e=="number")return t===e?0:t<e?-1:1;let r=pBe.test(t),i=pBe.test(e);return r&&i&&(t=+t,e=+e),t===e?0:r&&!i?-1:i&&!r?1:t<e?-1:1},gwt=(t,e)=>mBe(e
Line truncated
|
||||
>>> no match, partial?`,t,l,e,f),l===o))}var d;if(typeof c=="string"?(d=u===c,this.debug("string match",c,u,d)):(d=u.match(c),this.debug("pattern match",c,u,d)),!d)return!1}if(s===o&&n===a)return!0;if(s===o)return r;if(n===a)return s===o-1&&t[s]==="";throw new Error("wtf?")};function rwt(t){return t.replace(/\\(.)/g,"$1")}function iwt(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}});var nx=p((oRr,EBe)=>{"use strict";var fwt="2.0.0",hwt=Number.MAX_SAFE_INTEGER||9007199254740991,dwt=16,pwt=250,mwt=["major","premajor","minor","preminor","patch","prepatch","prerelease"];EBe.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:dwt,MAX_SAFE_BUILD_LENGTH:pwt,MAX_SAFE_INTEGER:hwt,RELEASE_TYPES:mwt,SEMVER_SPEC_VERSION:fwt,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var ox=p((aRr,bBe)=>{"use strict";var Awt=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};bBe.exports=Awt});var aw=p((ef,wBe)=>{"use strict";var{MAX_SAFE_COMPONENT_LENGTH:dV,MAX_SAFE_BUILD_LENGTH:gwt,MAX_LENGTH:ywt}=nx(),Ewt=ox();ef=wBe.exports={};var bwt=ef.re=[],wwt=ef.safeRe=[],Ae=ef.src=[],Cwt=ef.safeSrc=[],ge=ef.t={},Iwt=0,pV="[a-zA-Z0-9-]",Swt=[["\\s",1],["\\d",ywt],[pV,gwt]],Bwt=t=>{for(let[e,r]of Swt)t=t.split(`${e}*`).join(`${e}{0,${r}}`).split(`${e}+`).join(`${e}{1,${r}}`);return t},ct=(t,e,r)=>{let i=Bwt(e),s=Iwt++;Ewt(t,s,e),ge[t]=s,Ae[s]=e,Cwt[s]=i,bwt[s]=new RegExp(e,r?"g":void 0),wwt[s]=new RegExp(i,r?"g":void 0)};ct("NUMERICIDENTIFIER","0|[1-9]\\d*");ct("NUMERICIDENTIFIERLOOSE","\\d+");ct("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${pV}*`);ct("MAINVERSION",`(${Ae[ge.NUMERICIDENTIFIER]})\\.(${Ae[ge.NUMERICIDENTIFIER]})\\.(${Ae[ge.NUMERICIDENTIFIER]})`);ct("MAINVERSIONLOOSE",`(${Ae[ge.NUMERICIDENTIFIERLOOSE]})\\.(${Ae[ge.NUMERICIDENTIFIERLOOSE]})\\.(${Ae[ge.NUMERICIDENTIFIERLOOSE]})`);ct("PRERELEASEIDENTIFIER",`(?:${Ae[ge.NONNUMERICIDENTIFIER]}|${Ae[ge.NUMERICIDENTIFIER]})`);ct("PRERELEASEIDENTIFIERLOOSE",`(?:${Ae[ge.NONNUMERICIDENTIFIER]}|${Ae[ge.NUMERICIDENTIFIERLOOSE]})`);ct("PRERELEASE",`(?:-(${Ae[ge.PRERELEASEIDENTIFIER]}(?:\\.${Ae[ge.PRERELEASEIDENTIFIER]})*))`);ct("PRERELEASELOOSE",`(?:-?(${Ae[ge.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${Ae[ge.PRERELEASEIDENTIFIERLOOSE]})*))`);ct("BUILDIDENTIFIER",`${pV}+`);ct("BUILD",`(?:\\+(${Ae[ge.BUILDIDENTIFIER]}(?:\\.${Ae[ge.BUILDIDENTIFIER]})*))`);ct("FULLPLAIN",`v?${Ae[ge.MAINVERSION]}${Ae[ge.PRERELEASE]}?${Ae[ge.BUILD]}?`);ct("FULL",`^${Ae[ge.FULLPLAIN]}$`);ct("LOOSEPLAIN",`[v=\\s]*${Ae[ge.MAINVERSIONLOOSE]}${Ae[ge.PRERELEASELOOSE]}?${Ae[ge.BUILD]}?`);ct("LOOSE",`^${Ae[ge.LOOSEPLAIN]}$`);ct("GTLT","((?:<|>)?=?)");ct("XRANGEIDENTIFIERLOOSE",`${Ae[ge.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);ct("XRANGEIDENTIFIER",`${Ae[ge.NUMERICIDENTIFIER]}|x|X|\\*`);ct("XRANGEPLAIN",`[v=\\s]*(${Ae[ge.XRANGEIDENTIFIER]})(?:\\.(${Ae[ge.XRANGEIDENTIFIER]})(?:\\.(${Ae[ge.XRANGEIDENTIFIER]})(?:${Ae[ge.PRERELEASE]})?${Ae[ge.BUILD]}?)?)?`);ct("XRANGEPLAINLOOSE",`[v=\\s]*(${Ae[ge.XRANGEIDENTIFIERLOOSE]})(?:\\.(${Ae[ge.XRANGEIDENTIFIERLOOSE]})(?:\\.(${Ae[ge.XRANGEIDENTIFIERLOOSE]})(?:${Ae[ge.PRERELEASELOOSE]})?${Ae[ge.BUILD]}?)?)?`);ct("XRANGE",`^${Ae[ge.GTLT]}\\s*${Ae[ge.XRANGEPLAIN]}$`);ct("XRANGELOOSE",`^${Ae[ge.GTLT]}\\s*${Ae[ge.XRANGEPLAINLOOSE]}$`);ct("COERCEPLAIN",`(^|[^\\d])(\\d{1,${dV}})(?:\\.(\\d{1,${dV}}))?(?:\\.(\\d{1,${dV}}))?`);ct("COERCE",`${Ae[ge.COERCEPLAIN]}(?:$|[^\\d])`);ct("COERCEFULL",Ae[ge.COERCEPLAIN]+`(?:${Ae[ge.PRERELEASE]})?(?:${Ae[ge.BUILD]})?(?:$|[^\\d])`);ct("COERCERTL",Ae[ge.COERCE],!0);ct("COERCERTLFULL",Ae[ge.COERCEFULL],!0);ct("LONETILDE","(?:~>?)");ct("TILDETRIM",`(\\s*)${Ae[ge.LONETILDE]}\\s+`,!0);ef.tildeTrimReplace="$1~";ct("TILDE",`^${Ae[ge.LONETILDE]}${Ae[ge.XRANGEPLAIN]}$`);ct("TILDELOOSE",`^${Ae[ge.LONETILDE]}${Ae[ge.XRANGEPLAINLOOSE]}$`);ct("LONECARET","(?:\\^)");ct("CARETTRIM",`(\\s*)${Ae[ge.LONECARET]}\\s+`,!0);ef.caretTrimReplace="$1^";ct("CARET",`^${Ae[ge.LONECARET]}${Ae[ge.XRANGEPLAIN]}$`);ct("CARETLOOSE",`^${Ae[ge.LONECARET]}${Ae[ge.XRANGEPLAINLOOSE]}$`);ct("COMPARATORLOOSE",`^${Ae[ge.GTLT]}\\s*(${Ae[ge.LOOSEPLAIN]})$|^$`);ct("COMPARATOR",`^${Ae[ge.GTLT]}\\s*(${Ae[ge.FULLPLAIN]})$|^$`);ct("COMPARATORTRIM",`(\\s*)${Ae[ge.GTLT]}\\s*(${Ae[ge.LOOSEPLAIN]}|${Ae[ge.XRANGEPLAIN]})`,!0);ef.comparatorTrimReplace="$1$2$3";ct("HYPHENRANGE",`^\\s*(${Ae[ge.XRANGEPLAIN]})\\s+-\\s+(${Ae[ge.XRANGEPLAIN]})\\s*$`);ct("HYPHENRANGELOOSE",`^\\s*(${Ae[ge.XRANGEPLAINLOOSE]})\\s+-\\s+(${Ae[ge.XRANGEPLAINLOOSE]})\\s*$`);ct("STAR","(<|>)?=?\\s*\\*");ct("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");ct("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")});var XO=p((cRr,CBe)=>{"use strict";var vwt=Object.freeze({loose:!0}),xwt=Object.freeze({}),_wt=t=>t?typeof t!="object"?vwt:t:xwt;CBe.exports=_wt});var mV=p((uRr,BBe)=>{"use strict";var IBe=/^[0-9]+$/,SBe=(t,e)=>{if(typeof t=="number"&&typeof e=="number")return t===e?0:t<e?-1:1;let r=IBe.test(t),i=IBe.test(e);return r&&i&&(t=+t,e=+e),t===e?0:r&&!i?-1:i&&!r?1:t<e?-1:1},Rwt=(t,e)=>SBe(e
Line truncated
|
||||
`).join(`
|
||||
`+n),t.push(s+"m+"+OP.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=LSt()+e+" "+t[0]}function LSt(){return Ks.inspectOpts.hideDate?"":new Date().toISOString()+" "}function MSt(...t){return process.stderr.write(DP.format(...t)+`
|
||||
`)}function FSt(t){t?process.env.DEBUG=t:delete process.env.DEBUG}function USt(){return process.env.DEBUG}function qSt(t){t.inspectOpts={};let e=Object.keys(Ks.inspectOpts);for(let r=0;r<e.length;r++)t.inspectOpts[e[r]]=Ks.inspectOpts[e[r]]}OP.exports=$V()(Ks);var{formatters:Vxe}=OP.exports;Vxe.o=function(t){return this.inspectOpts.colors=this.useColors,DP.inspect(t,this.inspectOpts).split(`
|
||||
`).map(e=>e.trim()).join(" ")};Vxe.O=function(t){return this.inspectOpts.colors=this.useColors,DP.inspect(t,this.inspectOpts)}});var ly=p((sNr,KV)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?KV.exports=qxe():KV.exports=$xe()});var Yxe=p(Jo=>{"use strict";var GSt=Jo&&Jo.__createBinding||(Object.create?(function(t,e,r,i){i===void 0&&(i=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,i,s)}):(function(t,e,r,i){i===void 0&&(i=r),t[i]=e[r]})),HSt=Jo&&Jo.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Wxe=Jo&&Jo.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&GSt(e,t,r);return HSt(e,t),e};Object.defineProperty(Jo,"__esModule",{value:!0});Jo.req=Jo.json=Jo.toBuffer=void 0;var jSt=Wxe(require("http")),zSt=Wxe(require("https"));async function Jxe(t){let e=0,r=[];for await(let i of t)e+=i.length,r.push(i);return Buffer.concat(r,e)}Jo.toBuffer=Jxe;async function VSt(t){let r=(await Jxe(t)).toString("utf8");try{return JSON.parse(r)}catch(i){let s=i;throw s.message+=` (input: ${r})`,s}}Jo.json=VSt;function $St(t,e={}){let i=((typeof t=="string"?t:t.href).startsWith("https:")?zSt:jSt).request(t,e),s=new Promise((n,o)=>{i.once("response",n).once("error",o).end()});return i.then=s.then.bind(s),i}Jo.req=$St});var e_e=p(Ua=>{"use strict";var Xxe=Ua&&Ua.__createBinding||(Object.create?(function(t,e,r,i){i===void 0&&(i=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,i,s)}):(function(t,e,r,i){i===void 0&&(i=r),t[i]=e[r]})),WSt=Ua&&Ua.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Zxe=Ua&&Ua.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&Xxe(e,t,r);return WSt(e,t),e},JSt=Ua&&Ua.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&Xxe(e,t,r)};Object.defineProperty(Ua,"__esModule",{value:!0});Ua.Agent=void 0;var YSt=Zxe(require("net")),Kxe=Zxe(require("http")),KSt=require("https");JSt(Yxe(),Ua);var nf=Symbol("AgentBaseInternalState"),XV=class extends Kxe.Agent{constructor(e){super(e),this[nf]={}}isSecureEndpoint(e){if(e){if(typeof e.secureEndpoint=="boolean")return e.secureEndpoint;if(typeof e.protocol=="string")return e.protocol==="https:"}let{stack:r}=new Error;return typeof r!="string"?!1:r.split(`
|
||||
`).some(i=>i.indexOf("(https.js:")!==-1||i.indexOf("node:https:")!==-1)}incrementSockets(e){if(this.maxSockets===1/0&&this.maxTotalSockets===1/0)return null;this.sockets[e]||(this.sockets[e]=[]);let r=new YSt.Socket({writable:!1});return this.sockets[e].push(r),this.totalSocketCount++,r}decrementSockets(e,r){if(!this.sockets[e]||r===null)return;let i=this.sockets[e],s=i.indexOf(r);s!==-1&&(i.splice(s,1),this.totalSocketCount--,i.length===0&&delete this.sockets[e])}getName(e){return this.isSecureEndpoint(e)?KSt.Agent.prototype.getName.call(this,e):super.getName(e)}createSocket(e,r,i){let s={...r,secureEndpoint:this.isSecureEndpoint(r)},n=this.getName(s),o=this.incrementSockets(n);Promise.resolve().then(()=>this.connect(e,s)).then(a=>{if(this.decrementSockets(n,o),a instanceof Kxe.Agent)try{return a.addRequest(e,s)}catch(c){return i(c)}this[nf].currentSocket=a,super.createSocket(e,r,i)},a=>{this.decrementSockets(n,o),i(a)})}createConnection(){let e=this[nf].currentSocket;if(this[nf].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[nf].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[nf]&&(this[nf].defaultPort=e)}get protocol(){return this[nf].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[nf]&&(this[nf].protocol=e)}};Ua.Agent=XV});var t_e=p(pw=>{"use strict";var XSt=pw&&pw.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(pw,"__esModule",{value:!0});pw.parseProxyResponse=void 0;var ZSt=XSt(ly()),PP=(0,ZSt.default)("https-proxy-agent:parse-proxy-response");function eBt(t){return new Promise((e,r)=>{let i=0,s=[];function n(){let l=t.read();l?u(l):t.once("readable",n)}function o(){t.removeListener("end",a),t.removeListener("error",c),t.removeListener("readable",n)}function a(){o(),PP("onend"),r(new Error("Proxy connection ended before receiving CONNECT response"))}function c(l){o(),PP("onerror %o",l),r(l)}function u(l){s.push(l),i+=l.length;let f=Buffer.concat(s,i),h=f.indexOf(`\r
|
||||
`+n),t.push(s+"m+"+kP.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=JSt()+e+" "+t[0]}function JSt(){return Ks.inspectOpts.hideDate?"":new Date().toISOString()+" "}function YSt(...t){return process.stderr.write(QP.format(...t)+`
|
||||
`)}function KSt(t){t?process.env.DEBUG=t:delete process.env.DEBUG}function XSt(){return process.env.DEBUG}function ZSt(t){t.inspectOpts={};let e=Object.keys(Ks.inspectOpts);for(let r=0;r<e.length;r++)t.inspectOpts[e[r]]=Ks.inspectOpts[e[r]]}kP.exports=ZV()(Ks);var{formatters:t_e}=kP.exports;t_e.o=function(t){return this.inspectOpts.colors=this.useColors,QP.inspect(t,this.inspectOpts).split(`
|
||||
`).map(e=>e.trim()).join(" ")};t_e.O=function(t){return this.inspectOpts.colors=this.useColors,QP.inspect(t,this.inspectOpts)}});var fy=p((ITr,i$)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?i$.exports=Yxe():i$.exports=r_e()});var n_e=p(Jo=>{"use strict";var eBt=Jo&&Jo.__createBinding||(Object.create?(function(t,e,r,i){i===void 0&&(i=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,i,s)}):(function(t,e,r,i){i===void 0&&(i=r),t[i]=e[r]})),tBt=Jo&&Jo.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),i_e=Jo&&Jo.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&eBt(e,t,r);return tBt(e,t),e};Object.defineProperty(Jo,"__esModule",{value:!0});Jo.req=Jo.json=Jo.toBuffer=void 0;var rBt=i_e(require("http")),iBt=i_e(require("https"));async function s_e(t){let e=0,r=[];for await(let i of t)e+=i.length,r.push(i);return Buffer.concat(r,e)}Jo.toBuffer=s_e;async function sBt(t){let r=(await s_e(t)).toString("utf8");try{return JSON.parse(r)}catch(i){let s=i;throw s.message+=` (input: ${r})`,s}}Jo.json=sBt;function nBt(t,e={}){let i=((typeof t=="string"?t:t.href).startsWith("https:")?iBt:rBt).request(t,e),s=new Promise((n,o)=>{i.once("response",n).once("error",o).end()});return i.then=s.then.bind(s),i}Jo.req=nBt});var u_e=p(Ua=>{"use strict";var a_e=Ua&&Ua.__createBinding||(Object.create?(function(t,e,r,i){i===void 0&&(i=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,i,s)}):(function(t,e,r,i){i===void 0&&(i=r),t[i]=e[r]})),oBt=Ua&&Ua.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),c_e=Ua&&Ua.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&a_e(e,t,r);return oBt(e,t),e},aBt=Ua&&Ua.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&a_e(e,t,r)};Object.defineProperty(Ua,"__esModule",{value:!0});Ua.Agent=void 0;var cBt=c_e(require("net")),o_e=c_e(require("http")),uBt=require("https");aBt(n_e(),Ua);var sf=Symbol("AgentBaseInternalState"),s$=class extends o_e.Agent{constructor(e){super(e),this[sf]={}}isSecureEndpoint(e){if(e){if(typeof e.secureEndpoint=="boolean")return e.secureEndpoint;if(typeof e.protocol=="string")return e.protocol==="https:"}let{stack:r}=new Error;return typeof r!="string"?!1:r.split(`
|
||||
`).some(i=>i.indexOf("(https.js:")!==-1||i.indexOf("node:https:")!==-1)}incrementSockets(e){if(this.maxSockets===1/0&&this.maxTotalSockets===1/0)return null;this.sockets[e]||(this.sockets[e]=[]);let r=new cBt.Socket({writable:!1});return this.sockets[e].push(r),this.totalSocketCount++,r}decrementSockets(e,r){if(!this.sockets[e]||r===null)return;let i=this.sockets[e],s=i.indexOf(r);s!==-1&&(i.splice(s,1),this.totalSocketCount--,i.length===0&&delete this.sockets[e])}getName(e){return this.isSecureEndpoint(e)?uBt.Agent.prototype.getName.call(this,e):super.getName(e)}createSocket(e,r,i){let s={...r,secureEndpoint:this.isSecureEndpoint(r)},n=this.getName(s),o=this.incrementSockets(n);Promise.resolve().then(()=>this.connect(e,s)).then(a=>{if(this.decrementSockets(n,o),a instanceof o_e.Agent)try{return a.addRequest(e,s)}catch(c){return i(c)}this[sf].currentSocket=a,super.createSocket(e,r,i)},a=>{this.decrementSockets(n,o),i(a)})}createConnection(){let e=this[sf].currentSocket;if(this[sf].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[sf].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[sf]&&(this[sf].defaultPort=e)}get protocol(){return this[sf].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[sf]&&(this[sf].protocol=e)}};Ua.Agent=s$});var l_e=p(Aw=>{"use strict";var lBt=Aw&&Aw.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Aw,"__esModule",{value:!0});Aw.parseProxyResponse=void 0;var fBt=lBt(fy()),LP=(0,fBt.default)("https-proxy-agent:parse-proxy-response");function hBt(t){return new Promise((e,r)=>{let i=0,s=[];function n(){let l=t.read();l?u(l):t.once("readable",n)}function o(){t.removeListener("end",a),t.removeListener("error",c),t.removeListener("readable",n)}function a(){o(),LP("onend"),r(new Error("Proxy connection ended before receiving CONNECT response"))}function c(l){o(),LP("onerror %o",l),r(l)}function u(l){s.push(l),i+=l.length;let f=Buffer.concat(s,i),h=f.indexOf(`\r
|
||||
\r
|
||||
`);if(h===-1){PP("have not received end of HTTP headers yet..."),n();return}let d=f.slice(0,h).toString("ascii").split(`\r
|
||||
`),m=d.shift();if(!m)return t.destroy(),r(new Error("No header received from proxy CONNECT response"));let A=m.split(" "),y=+A[1],g=A.slice(2).join(" "),E={};for(let C of d){if(!C)continue;let S=C.indexOf(":");if(S===-1)return t.destroy(),r(new Error(`Invalid header from proxy CONNECT response: "${C}"`));let D=C.slice(0,S).toLowerCase(),q=C.slice(S+1).trimStart(),N=E[D];typeof N=="string"?E[D]=[N,q]:Array.isArray(N)?N.push(q):E[D]=q}PP("got proxy server response: %o %o",m,E),o(),e({connect:{statusCode:y,statusText:g,headers:E},buffered:f})}t.on("error",c),t.on("end",a),n()})}pw.parseProxyResponse=eBt});var a_e=p(Uc=>{"use strict";var tBt=Uc&&Uc.__createBinding||(Object.create?(function(t,e,r,i){i===void 0&&(i=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,i,s)}):(function(t,e,r,i){i===void 0&&(i=r),t[i]=e[r]})),rBt=Uc&&Uc.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),n_e=Uc&&Uc.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&tBt(e,t,r);return rBt(e,t),e},o_e=Uc&&Uc.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Uc,"__esModule",{value:!0});Uc.HttpsProxyAgent=void 0;var QP=n_e(require("net")),r_e=n_e(require("tls")),iBt=o_e(require("assert")),sBt=o_e(ly()),nBt=e_e(),oBt=require("url"),aBt=t_e(),gx=(0,sBt.default)("https-proxy-agent"),i_e=t=>t.servername===void 0&&t.host&&!QP.isIP(t.host)?{...t,servername:t.host}:t,kP=class extends nBt.Agent{constructor(e,r){super(r),this.options={path:void 0},this.proxy=typeof e=="string"?new oBt.URL(e):e,this.proxyHeaders=r?.headers??{},gx("Creating new HttpsProxyAgent instance: %o",this.proxy.href);let i=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),s=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={ALPNProtocols:["http/1.1"],...r?s_e(r,"headers"):null,host:i,port:s}}async connect(e,r){let{proxy:i}=this;if(!r.host)throw new TypeError('No "host" provided');let s;i.protocol==="https:"?(gx("Creating `tls.Socket`: %o",this.connectOpts),s=r_e.connect(i_e(this.connectOpts))):(gx("Creating `net.Socket`: %o",this.connectOpts),s=QP.connect(this.connectOpts));let n=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders},o=QP.isIPv6(r.host)?`[${r.host}]`:r.host,a=`CONNECT ${o}:${r.port} HTTP/1.1\r
|
||||
`);if(h===-1){LP("have not received end of HTTP headers yet..."),n();return}let d=f.slice(0,h).toString("ascii").split(`\r
|
||||
`),m=d.shift();if(!m)return t.destroy(),r(new Error("No header received from proxy CONNECT response"));let A=m.split(" "),y=+A[1],g=A.slice(2).join(" "),E={};for(let w of d){if(!w)continue;let S=w.indexOf(":");if(S===-1)return t.destroy(),r(new Error(`Invalid header from proxy CONNECT response: "${w}"`));let D=w.slice(0,S).toLowerCase(),q=w.slice(S+1).trimStart(),T=E[D];typeof T=="string"?E[D]=[T,q]:Array.isArray(T)?T.push(q):E[D]=q}LP("got proxy server response: %o %o",m,E),o(),e({connect:{statusCode:y,statusText:g,headers:E},buffered:f})}t.on("error",c),t.on("end",a),n()})}Aw.parseProxyResponse=hBt});var A_e=p(Mc=>{"use strict";var dBt=Mc&&Mc.__createBinding||(Object.create?(function(t,e,r,i){i===void 0&&(i=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,i,s)}):(function(t,e,r,i){i===void 0&&(i=r),t[i]=e[r]})),pBt=Mc&&Mc.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),p_e=Mc&&Mc.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&dBt(e,t,r);return pBt(e,t),e},m_e=Mc&&Mc.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Mc,"__esModule",{value:!0});Mc.HttpsProxyAgent=void 0;var FP=p_e(require("net")),f_e=p_e(require("tls")),mBt=m_e(require("assert")),ABt=m_e(fy()),gBt=u_e(),yBt=require("url"),EBt=l_e(),bx=(0,ABt.default)("https-proxy-agent"),h_e=t=>t.servername===void 0&&t.host&&!FP.isIP(t.host)?{...t,servername:t.host}:t,MP=class extends gBt.Agent{constructor(e,r){super(r),this.options={path:void 0},this.proxy=typeof e=="string"?new yBt.URL(e):e,this.proxyHeaders=r?.headers??{},bx("Creating new HttpsProxyAgent instance: %o",this.proxy.href);let i=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),s=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={ALPNProtocols:["http/1.1"],...r?d_e(r,"headers"):null,host:i,port:s}}async connect(e,r){let{proxy:i}=this;if(!r.host)throw new TypeError('No "host" provided');let s;i.protocol==="https:"?(bx("Creating `tls.Socket`: %o",this.connectOpts),s=f_e.connect(h_e(this.connectOpts))):(bx("Creating `net.Socket`: %o",this.connectOpts),s=FP.connect(this.connectOpts));let n=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders},o=FP.isIPv6(r.host)?`[${r.host}]`:r.host,a=`CONNECT ${o}:${r.port} HTTP/1.1\r
|
||||
`;if(i.username||i.password){let h=`${decodeURIComponent(i.username)}:${decodeURIComponent(i.password)}`;n["Proxy-Authorization"]=`Basic ${Buffer.from(h).toString("base64")}`}n.Host=`${o}:${r.port}`,n["Proxy-Connection"]||(n["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let h of Object.keys(n))a+=`${h}: ${n[h]}\r
|
||||
`;let c=(0,aBt.parseProxyResponse)(s);s.write(`${a}\r
|
||||
`);let{connect:u,buffered:l}=await c;if(e.emit("proxyConnect",u),this.emit("proxyConnect",u,e),u.statusCode===200)return e.once("socket",cBt),r.secureEndpoint?(gx("Upgrading socket connection to TLS"),r_e.connect({...s_e(i_e(r),"host","path","port"),socket:s})):s;s.destroy();let f=new QP.Socket({writable:!1});return f.readable=!0,e.once("socket",h=>{gx("Replaying proxy buffer for failed request"),(0,iBt.default)(h.listenerCount("data")>0),h.push(l),h.push(null)}),f}};kP.protocols=["http","https"];Uc.HttpsProxyAgent=kP;function cBt(t){t.resume()}function s_e(t,...e){let r={},i;for(i in t)e.includes(i)||(r[i]=t[i]);return r}});var l_e=p(Yo=>{"use strict";var uBt=Yo&&Yo.__createBinding||(Object.create?(function(t,e,r,i){i===void 0&&(i=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,i,s)}):(function(t,e,r,i){i===void 0&&(i=r),t[i]=e[r]})),lBt=Yo&&Yo.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),c_e=Yo&&Yo.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&uBt(e,t,r);return lBt(e,t),e};Object.defineProperty(Yo,"__esModule",{value:!0});Yo.req=Yo.json=Yo.toBuffer=void 0;var fBt=c_e(require("http")),hBt=c_e(require("https"));async function u_e(t){let e=0,r=[];for await(let i of t)e+=i.length,r.push(i);return Buffer.concat(r,e)}Yo.toBuffer=u_e;async function dBt(t){let r=(await u_e(t)).toString("utf8");try{return JSON.parse(r)}catch(i){let s=i;throw s.message+=` (input: ${r})`,s}}Yo.json=dBt;function pBt(t,e={}){let i=((typeof t=="string"?t:t.href).startsWith("https:")?hBt:fBt).request(t,e),s=new Promise((n,o)=>{i.once("response",n).once("error",o).end()});return i.then=s.then.bind(s),i}Yo.req=pBt});var yx=p(qa=>{"use strict";var h_e=qa&&qa.__createBinding||(Object.create?(function(t,e,r,i){i===void 0&&(i=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,i,s)}):(function(t,e,r,i){i===void 0&&(i=r),t[i]=e[r]})),mBt=qa&&qa.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),d_e=qa&&qa.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&h_e(e,t,r);return mBt(e,t),e},ABt=qa&&qa.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&h_e(e,t,r)};Object.defineProperty(qa,"__esModule",{value:!0});qa.Agent=void 0;var gBt=d_e(require("net")),f_e=d_e(require("http")),yBt=require("https");ABt(l_e(),qa);var of=Symbol("AgentBaseInternalState"),ZV=class extends f_e.Agent{constructor(e){super(e),this[of]={}}isSecureEndpoint(e){if(e){if(typeof e.secureEndpoint=="boolean")return e.secureEndpoint;if(typeof e.protocol=="string")return e.protocol==="https:"}let{stack:r}=new Error;return typeof r!="string"?!1:r.split(`
|
||||
`).some(i=>i.indexOf("(https.js:")!==-1||i.indexOf("node:https:")!==-1)}incrementSockets(e){if(this.maxSockets===1/0&&this.maxTotalSockets===1/0)return null;this.sockets[e]||(this.sockets[e]=[]);let r=new gBt.Socket({writable:!1});return this.sockets[e].push(r),this.totalSocketCount++,r}decrementSockets(e,r){if(!this.sockets[e]||r===null)return;let i=this.sockets[e],s=i.indexOf(r);s!==-1&&(i.splice(s,1),this.totalSocketCount--,i.length===0&&delete this.sockets[e])}getName(e){return(typeof e.secureEndpoint=="boolean"?e.secureEndpoint:this.isSecureEndpoint(e))?yBt.Agent.prototype.getName.call(this,e):super.getName(e)}createSocket(e,r,i){let s={...r,secureEndpoint:this.isSecureEndpoint(r)},n=this.getName(s),o=this.incrementSockets(n);Promise.resolve().then(()=>this.connect(e,s)).then(a=>{if(this.decrementSockets(n,o),a instanceof f_e.Agent)return a.addRequest(e,s);this[of].currentSocket=a,super.createSocket(e,r,i)},a=>{this.decrementSockets(n,o),i(a)})}createConnection(){let e=this[of].currentSocket;if(this[of].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[of].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[of]&&(this[of].defaultPort=e)}get protocol(){return this[of].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[of]&&(this[of].protocol=e)}};qa.Agent=ZV});var e$=p(qc=>{"use strict";var EBt=qc&&qc.__createBinding||(Object.create?(function(t,e,r,i){i===void 0&&(i=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,i,s)}):(function(t,e,r,i){i===void 0&&(i=r),t[i]=e[r]})),bBt=qc&&qc.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),m_e=qc&&qc.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&EBt(e,t,r);return bBt(e,t),e},wBt=qc&&qc.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(qc,"__esModule",{value:!0});qc.HttpProxyAgent=void 0;var CBt=m_e(require("net")),IBt=m_e(require("tls")),SBt=wBt(ly()),BBt=require("events"),vBt=yx(),p_e=require("url"),mw=(0,SBt.default)("http-proxy-agent"),LP=class extends vBt.Agent{constructor(e,r){super(r),this.proxy=typeof e=="string"?new p_e.URL(e):e,this.proxyHeaders=r?.headers??{},mw("Creating new HttpProxyAgent instance: %o",this.proxy.href);let i=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),s=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={...r?xBt(r,"headers"):null,host:i,port:s}}addRequest(e,r){e._header=null,this.setRequestProps(e,r),super.addRequest(e,r)}setRequestProps(e,r){let{proxy:i}=this,s=r.secureEndpoint?"https:":"http:",n=e.getHeader("host")||"localhost",o=`${s}//${n}`,a=new p_e.URL(e.path,o);r.port!==80&&(a.port=String(r.port)),e.path=String(a);let c=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders};if(i.username||i.password){let u=`${decodeURIComponent(i.username)}:${decodeURIComponent(i.password)}`;c["Proxy-Authorization"]=`Basic ${Buffer.from(u).toString("base64")}`}c["Proxy-Connection"]||(c["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let u of Object.keys(c)){let l=c[u];l&&e.setHeader(u,l)}}async connect(e,r){e._header=null,e.path.includes("://")||this.setRequestProps(e,r);let i,s;mw("Regenerating stored HTTP header string for request"),e._implicitHeader(),e.outputData&&e.outputData.length>0&&(mw("Patching connection write() output buffer with updated header"),i=e.outputData[0].data,s=i.indexOf(`\r
|
||||
`;let c=(0,EBt.parseProxyResponse)(s);s.write(`${a}\r
|
||||
`);let{connect:u,buffered:l}=await c;if(e.emit("proxyConnect",u),this.emit("proxyConnect",u,e),u.statusCode===200)return e.once("socket",bBt),r.secureEndpoint?(bx("Upgrading socket connection to TLS"),f_e.connect({...d_e(h_e(r),"host","path","port"),socket:s})):s;s.destroy();let f=new FP.Socket({writable:!1});return f.readable=!0,e.once("socket",h=>{bx("Replaying proxy buffer for failed request"),(0,mBt.default)(h.listenerCount("data")>0),h.push(l),h.push(null)}),f}};MP.protocols=["http","https"];Mc.HttpsProxyAgent=MP;function bBt(t){t.resume()}function d_e(t,...e){let r={},i;for(i in t)e.includes(i)||(r[i]=t[i]);return r}});var E_e=p(Yo=>{"use strict";var wBt=Yo&&Yo.__createBinding||(Object.create?(function(t,e,r,i){i===void 0&&(i=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,i,s)}):(function(t,e,r,i){i===void 0&&(i=r),t[i]=e[r]})),CBt=Yo&&Yo.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),g_e=Yo&&Yo.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&wBt(e,t,r);return CBt(e,t),e};Object.defineProperty(Yo,"__esModule",{value:!0});Yo.req=Yo.json=Yo.toBuffer=void 0;var IBt=g_e(require("http")),SBt=g_e(require("https"));async function y_e(t){let e=0,r=[];for await(let i of t)e+=i.length,r.push(i);return Buffer.concat(r,e)}Yo.toBuffer=y_e;async function BBt(t){let r=(await y_e(t)).toString("utf8");try{return JSON.parse(r)}catch(i){let s=i;throw s.message+=` (input: ${r})`,s}}Yo.json=BBt;function vBt(t,e={}){let i=((typeof t=="string"?t:t.href).startsWith("https:")?SBt:IBt).request(t,e),s=new Promise((n,o)=>{i.once("response",n).once("error",o).end()});return i.then=s.then.bind(s),i}Yo.req=vBt});var wx=p(qa=>{"use strict";var w_e=qa&&qa.__createBinding||(Object.create?(function(t,e,r,i){i===void 0&&(i=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,i,s)}):(function(t,e,r,i){i===void 0&&(i=r),t[i]=e[r]})),xBt=qa&&qa.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),C_e=qa&&qa.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&w_e(e,t,r);return xBt(e,t),e},_Bt=qa&&qa.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&w_e(e,t,r)};Object.defineProperty(qa,"__esModule",{value:!0});qa.Agent=void 0;var RBt=C_e(require("net")),b_e=C_e(require("http")),NBt=require("https");_Bt(E_e(),qa);var nf=Symbol("AgentBaseInternalState"),n$=class extends b_e.Agent{constructor(e){super(e),this[nf]={}}isSecureEndpoint(e){if(e){if(typeof e.secureEndpoint=="boolean")return e.secureEndpoint;if(typeof e.protocol=="string")return e.protocol==="https:"}let{stack:r}=new Error;return typeof r!="string"?!1:r.split(`
|
||||
`).some(i=>i.indexOf("(https.js:")!==-1||i.indexOf("node:https:")!==-1)}incrementSockets(e){if(this.maxSockets===1/0&&this.maxTotalSockets===1/0)return null;this.sockets[e]||(this.sockets[e]=[]);let r=new RBt.Socket({writable:!1});return this.sockets[e].push(r),this.totalSocketCount++,r}decrementSockets(e,r){if(!this.sockets[e]||r===null)return;let i=this.sockets[e],s=i.indexOf(r);s!==-1&&(i.splice(s,1),this.totalSocketCount--,i.length===0&&delete this.sockets[e])}getName(e){return(typeof e.secureEndpoint=="boolean"?e.secureEndpoint:this.isSecureEndpoint(e))?NBt.Agent.prototype.getName.call(this,e):super.getName(e)}createSocket(e,r,i){let s={...r,secureEndpoint:this.isSecureEndpoint(r)},n=this.getName(s),o=this.incrementSockets(n);Promise.resolve().then(()=>this.connect(e,s)).then(a=>{if(this.decrementSockets(n,o),a instanceof b_e.Agent)return a.addRequest(e,s);this[nf].currentSocket=a,super.createSocket(e,r,i)},a=>{this.decrementSockets(n,o),i(a)})}createConnection(){let e=this[nf].currentSocket;if(this[nf].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[nf].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[nf]&&(this[nf].defaultPort=e)}get protocol(){return this[nf].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[nf]&&(this[nf].protocol=e)}};qa.Agent=n$});var o$=p(Uc=>{"use strict";var TBt=Uc&&Uc.__createBinding||(Object.create?(function(t,e,r,i){i===void 0&&(i=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,i,s)}):(function(t,e,r,i){i===void 0&&(i=r),t[i]=e[r]})),DBt=Uc&&Uc.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),S_e=Uc&&Uc.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&TBt(e,t,r);return DBt(e,t),e},OBt=Uc&&Uc.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Uc,"__esModule",{value:!0});Uc.HttpProxyAgent=void 0;var PBt=S_e(require("net")),QBt=S_e(require("tls")),kBt=OBt(fy()),LBt=require("events"),FBt=wx(),I_e=require("url"),gw=(0,kBt.default)("http-proxy-agent"),UP=class extends FBt.Agent{constructor(e,r){super(r),this.proxy=typeof e=="string"?new I_e.URL(e):e,this.proxyHeaders=r?.headers??{},gw("Creating new HttpProxyAgent instance: %o",this.proxy.href);let i=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),s=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={...r?MBt(r,"headers"):null,host:i,port:s}}addRequest(e,r){e._header=null,this.setRequestProps(e,r),super.addRequest(e,r)}setRequestProps(e,r){let{proxy:i}=this,s=r.secureEndpoint?"https:":"http:",n=e.getHeader("host")||"localhost",o=`${s}//${n}`,a=new I_e.URL(e.path,o);r.port!==80&&(a.port=String(r.port)),e.path=String(a);let c=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders};if(i.username||i.password){let u=`${decodeURIComponent(i.username)}:${decodeURIComponent(i.password)}`;c["Proxy-Authorization"]=`Basic ${Buffer.from(u).toString("base64")}`}c["Proxy-Connection"]||(c["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let u of Object.keys(c)){let l=c[u];l&&e.setHeader(u,l)}}async connect(e,r){e._header=null,e.path.includes("://")||this.setRequestProps(e,r);let i,s;gw("Regenerating stored HTTP header string for request"),e._implicitHeader(),e.outputData&&e.outputData.length>0&&(gw("Patching connection write() output buffer with updated header"),i=e.outputData[0].data,s=i.indexOf(`\r
|
||||
\r
|
||||
`)+4,e.outputData[0].data=e._header+i.substring(s),mw("Output buffer: %o",e.outputData[0].data));let n;return this.proxy.protocol==="https:"?(mw("Creating `tls.Socket`: %o",this.connectOpts),n=IBt.connect(this.connectOpts)):(mw("Creating `net.Socket`: %o",this.connectOpts),n=CBt.connect(this.connectOpts)),await(0,BBt.once)(n,"connect"),n}};LP.protocols=["http","https"];qc.HttpProxyAgent=LP;function xBt(t,...e){let r={},i;for(i in t)e.includes(i)||(r[i]=t[i]);return r}});var L_e=p(KP=>{"use strict";Object.defineProperty(KP,"__esModule",{value:!0});KP.state=void 0;KP.state={instrumenterImplementation:void 0}});var eRe=p(rQ=>{"use strict";Object.defineProperty(rQ,"__esModule",{value:!0});rQ.state=void 0;rQ.state={operationRequestMap:new WeakMap}});var gNe=p(Nw=>{"use strict";Object.defineProperty(Nw,"__esModule",{value:!0});var QTt=require("os"),kTt=require("util");function LTt(t){return t&&typeof t=="object"&&"default"in t?t:{default:t}}var MTt=LTt(kTt);function FTt(t,...e){process.stderr.write(`${MTt.default.format(t,...e)}${QTt.EOL}`)}var aNe=typeof process<"u"&&process.env&&process.env.DEBUG||void 0,uNe,S7=[],B7=[],gk=[];aNe&&v7(aNe);var lNe=Object.assign(t=>fNe(t),{enable:v7,enabled:x7,disable:UTt,log:FTt});function v7(t){uNe=t,S7=[],B7=[];let e=/\*/g,r=t.split(",").map(i=>i.trim().replace(e,".*?"));for(let i of r)i.startsWith("-")?B7.push(new RegExp(`^${i.substr(1)}$`)):S7.push(new RegExp(`^${i}$`));for(let i of gk)i.enabled=x7(i.namespace)}function x7(t){if(t.endsWith("*"))return!0;for(let e of B7)if(e.test(t))return!1;for(let e of S7)if(e.test(t))return!0;return!1}function UTt(){let t=uNe||"";return v7(""),t}function fNe(t){let e=Object.assign(r,{enabled:x7(t),destroy:qTt,log:lNe.log,namespace:t,extend:GTt});function r(...i){e.enabled&&(i.length>0&&(i[0]=`${t} ${i[0]}`),e.log(...i))}return gk.push(e),e}function qTt(){let t=gk.indexOf(this);return t>=0?(gk.splice(t,1),!0):!1}function GTt(t){let e=fNe(`${this.namespace}:${t}`);return e.log=this.log,e}var s_=lNe,hNe=new Set,mk=typeof process<"u"&&process.env&&process.env.AZURE_LOG_LEVEL||void 0,yk,Ek=s_("azure");Ek.log=(...t)=>{s_.log(...t)};var _7=["verbose","info","warning","error"];mk&&(ANe(mk)?dNe(mk):console.error(`AZURE_LOG_LEVEL set to unknown log level '${mk}'; logging is not enabled. Acceptable values: ${_7.join(", ")}.`));function dNe(t){if(t&&!ANe(t))throw new Error(`Unknown log level '${t}'. Acceptable values: ${_7.join(",")}`);yk=t;let e=[];for(let r of hNe)mNe(r)&&e.push(r.namespace);s_.enable(e.join(","))}function HTt(){return yk}var cNe={verbose:400,info:300,warning:200,error:100};function jTt(t){let e=Ek.extend(t);return pNe(Ek,e),{error:Ak(e,"error"),warning:Ak(e,"warning"),info:Ak(e,"info"),verbose:Ak(e,"verbose")}}function pNe(t,e){e.log=(...r)=>{t.log(...r)}}function Ak(t,e){let r=Object.assign(t.extend(e),{level:e});if(pNe(t,r),mNe(r)){let i=s_.disable();s_.enable(i+","+r.namespace)}return hNe.add(r),r}function mNe(t){return!!(yk&&cNe[t.level]<=cNe[yk])}function ANe(t){return _7.includes(t)}Nw.AzureLogger=Ek;Nw.createClientLogger=jTt;Nw.getLogLevel=HTt;Nw.setLogLevel=dNe});var N7=p(o_=>{"use strict";Object.defineProperty(o_,"__esModule",{value:!0});var Dw=new WeakMap,bk=new WeakMap,n_=class t{constructor(){this.onabort=null,Dw.set(this,[]),bk.set(this,!1)}get aborted(){if(!bk.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");return bk.get(this)}static get none(){return new t}addEventListener(e,r){if(!Dw.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");Dw.get(this).push(r)}removeEventListener(e,r){if(!Dw.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");let i=Dw.get(this),s=i.indexOf(r);s>-1&&i.splice(s,1)}dispatchEvent(e){throw new Error("This is a stub dispatchEvent implementation that should not be used. It only exists for type-checking purposes.")}};function yNe(t){if(t.aborted)return;t.onabort&&t.onabort.call(t);let e=Dw.get(t);e&&e.slice().forEach(r=>{r.call(t,{type:"abort"})}),bk.set(t,!0)}var R7=class extends Error{constructor(e){super(e),this.name="AbortError"}},T7=class{constructor(e){if(this._signal=new n_,!!e){Array.isArray(e)||(e=arguments);for(let r of e)r.aborted?this.abort():r.addEventListener("abort",()=>{this.abort()})}}get signal(){return this._signal}abort(){yNe(this._signal)}static timeout(e){let r=new n_,i=setTimeout(yNe,e,r);return typeof i.unref=="function"&&i.unref(),r}};o_.AbortController=T7;o_.AbortError=R7;o_.AbortSignal=n_});var INe=p(oi=>{"use strict";Object.defineProperty(oi,"__esModule",{value:!0});var zTt=N7(),M7=require("crypto");function ENe(t,e){let{cleanupBeforeAbort:r,abortSignal:i,abortErrorMsg:s}=e??{};return new Promise((n,o)=>{function a(){o(new zTt.AbortError(s??"The operation was aborted."))}function c(){i?.removeEventListener("abort",u)}function u(){r?.(),c(),a()}if(i?.aborted)return a();try{t(l=>{c(),n(l)},l=>{c(),o(l)})}catch(l){o(l)}i?.addEventListener("abort",u)})}var VTt="The delay was
Line truncated
|
||||
`)+4,e.outputData[0].data=e._header+i.substring(s),gw("Output buffer: %o",e.outputData[0].data));let n;return this.proxy.protocol==="https:"?(gw("Creating `tls.Socket`: %o",this.connectOpts),n=QBt.connect(this.connectOpts)):(gw("Creating `net.Socket`: %o",this.connectOpts),n=PBt.connect(this.connectOpts)),await(0,LBt.once)(n,"connect"),n}};UP.protocols=["http","https"];Uc.HttpProxyAgent=UP;function MBt(t,...e){let r={},i;for(i in t)e.includes(i)||(r[i]=t[i]);return r}});var V_e=p(eQ=>{"use strict";Object.defineProperty(eQ,"__esModule",{value:!0});eQ.state=void 0;eQ.state={instrumenterImplementation:void 0}});var uRe=p(nQ=>{"use strict";Object.defineProperty(nQ,"__esModule",{value:!0});nQ.state=void 0;nQ.state={operationRequestMap:new WeakMap}});var RTe=p(Pw=>{"use strict";Object.defineProperty(Pw,"__esModule",{value:!0});var eTt=require("os"),tTt=require("util");function rTt(t){return t&&typeof t=="object"&&"default"in t?t:{default:t}}var iTt=rTt(tTt);function sTt(t,...e){process.stderr.write(`${iTt.default.format(t,...e)}${eTt.EOL}`)}var ETe=typeof process<"u"&&process.env&&process.env.DEBUG||void 0,wTe,O7=[],P7=[],Ik=[];ETe&&Q7(ETe);var CTe=Object.assign(t=>ITe(t),{enable:Q7,enabled:k7,disable:nTt,log:sTt});function Q7(t){wTe=t,O7=[],P7=[];let e=/\*/g,r=t.split(",").map(i=>i.trim().replace(e,".*?"));for(let i of r)i.startsWith("-")?P7.push(new RegExp(`^${i.substr(1)}$`)):O7.push(new RegExp(`^${i}$`));for(let i of Ik)i.enabled=k7(i.namespace)}function k7(t){if(t.endsWith("*"))return!0;for(let e of P7)if(e.test(t))return!1;for(let e of O7)if(e.test(t))return!0;return!1}function nTt(){let t=wTe||"";return Q7(""),t}function ITe(t){let e=Object.assign(r,{enabled:k7(t),destroy:oTt,log:CTe.log,namespace:t,extend:aTt});function r(...i){e.enabled&&(i.length>0&&(i[0]=`${t} ${i[0]}`),e.log(...i))}return Ik.push(e),e}function oTt(){let t=Ik.indexOf(this);return t>=0?(Ik.splice(t,1),!0):!1}function aTt(t){let e=ITe(`${this.namespace}:${t}`);return e.log=this.log,e}var a_=CTe,STe=new Set,wk=typeof process<"u"&&process.env&&process.env.AZURE_LOG_LEVEL||void 0,Sk,Bk=a_("azure");Bk.log=(...t)=>{a_.log(...t)};var L7=["verbose","info","warning","error"];wk&&(_Te(wk)?BTe(wk):console.error(`AZURE_LOG_LEVEL set to unknown log level '${wk}'; logging is not enabled. Acceptable values: ${L7.join(", ")}.`));function BTe(t){if(t&&!_Te(t))throw new Error(`Unknown log level '${t}'. Acceptable values: ${L7.join(",")}`);Sk=t;let e=[];for(let r of STe)xTe(r)&&e.push(r.namespace);a_.enable(e.join(","))}function cTt(){return Sk}var bTe={verbose:400,info:300,warning:200,error:100};function uTt(t){let e=Bk.extend(t);return vTe(Bk,e),{error:Ck(e,"error"),warning:Ck(e,"warning"),info:Ck(e,"info"),verbose:Ck(e,"verbose")}}function vTe(t,e){e.log=(...r)=>{t.log(...r)}}function Ck(t,e){let r=Object.assign(t.extend(e),{level:e});if(vTe(t,r),xTe(r)){let i=a_.disable();a_.enable(i+","+r.namespace)}return STe.add(r),r}function xTe(t){return!!(Sk&&bTe[t.level]<=bTe[Sk])}function _Te(t){return L7.includes(t)}Pw.AzureLogger=Bk;Pw.createClientLogger=uTt;Pw.getLogLevel=cTt;Pw.setLogLevel=BTe});var U7=p(u_=>{"use strict";Object.defineProperty(u_,"__esModule",{value:!0});var Qw=new WeakMap,vk=new WeakMap,c_=class t{constructor(){this.onabort=null,Qw.set(this,[]),vk.set(this,!1)}get aborted(){if(!vk.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");return vk.get(this)}static get none(){return new t}addEventListener(e,r){if(!Qw.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");Qw.get(this).push(r)}removeEventListener(e,r){if(!Qw.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");let i=Qw.get(this),s=i.indexOf(r);s>-1&&i.splice(s,1)}dispatchEvent(e){throw new Error("This is a stub dispatchEvent implementation that should not be used. It only exists for type-checking purposes.")}};function NTe(t){if(t.aborted)return;t.onabort&&t.onabort.call(t);let e=Qw.get(t);e&&e.slice().forEach(r=>{r.call(t,{type:"abort"})}),vk.set(t,!0)}var F7=class extends Error{constructor(e){super(e),this.name="AbortError"}},M7=class{constructor(e){if(this._signal=new c_,!!e){Array.isArray(e)||(e=arguments);for(let r of e)r.aborted?this.abort():r.addEventListener("abort",()=>{this.abort()})}}get signal(){return this._signal}abort(){NTe(this._signal)}static timeout(e){let r=new c_,i=setTimeout(NTe,e,r);return typeof i.unref=="function"&&i.unref(),r}};u_.AbortController=M7;u_.AbortError=F7;u_.AbortSignal=c_});var QTe=p(oi=>{"use strict";Object.defineProperty(oi,"__esModule",{value:!0});var lTt=U7(),$7=require("crypto");function TTe(t,e){let{cleanupBeforeAbort:r,abortSignal:i,abortErrorMsg:s}=e??{};return new Promise((n,o)=>{function a(){o(new lTt.AbortError(s??"The operation was aborted."))}function c(){i?.removeEventListener("abort",u)}function u(){r?.(),c(),a()}if(i?.aborted)return a();try{t(l=>{c(),n(l)},l=>{c(),o(l)})}catch(l){o(l)}i?.addEventListener("abort",u)})}var fTt="The delay was
Line truncated
|
||||
Polling from: ${r.config.operationLocation}
|
||||
Operation status: ${l}
|
||||
Polling status: ${xNe.includes(l)?"Stopped":"Running"}`),l==="succeeded"){let f=o(u,r);if(f!==void 0)return{response:await e(f).catch(BNe({state:r,stateProxy:i,isOperationError:a})),status:l}}return{response:u,status:l}}async function NNe(t){let{poll:e,state:r,stateProxy:i,options:s,getOperationStatus:n,getResourceLocation:o,getOperationLocation:a,isOperationError:c,withOperationLocation:u,getPollingInterval:l,processResult:f,getError:h,updateState:d,setDelay:m,isDone:A,setErrorAsResult:y}=t,{operationLocation:g}=r.config;if(g!==void 0){let{response:E,status:C}=await bNt({poll:e,getOperationStatus:n,state:r,stateProxy:i,operationLocation:g,getResourceLocation:o,isOperationError:c,options:s});if(RNe({status:C,response:E,state:r,stateProxy:i,isDone:A,processResult:f,getError:h,setErrorAsResult:y}),!xNe.includes(C)){let S=l?.(E);S&&m(S);let D=a?.(E,r);if(D!==void 0){let q=g!==D;r.config.operationLocation=D,u?.(D,q)}else u?.(g,!1)}d?.(r,E)}}function DNe(t){let{azureAsyncOperation:e,operationLocation:r}=t;return r??e}function ONe(t){return t.headers.location}function PNe(t){return t.headers["operation-location"]}function QNe(t){return t.headers["azure-asyncoperation"]}function wNt(t){var e;let{location:r,requestMethod:i,requestPath:s,resourceLocationConfig:n}=t;switch(i){case"PUT":return s;case"DELETE":return;case"PATCH":return(e=o())!==null&&e!==void 0?e:s;default:return o()}function o(){switch(n){case"azure-async-operation":return;case"original-uri":return s;default:return r}}}function kNe(t){let{rawResponse:e,requestMethod:r,requestPath:i,resourceLocationConfig:s}=t,n=PNe(e),o=QNe(e),a=DNe({operationLocation:n,azureAsyncOperation:o}),c=ONe(e),u=r?.toLocaleUpperCase();return a!==void 0?{mode:"OperationLocation",operationLocation:a,resourceLocation:wNt({requestMethod:u,location:c,requestPath:i,resourceLocationConfig:s})}:c!==void 0?{mode:"ResourceLocation",operationLocation:c}:u==="PUT"&&i?{mode:"Body",operationLocation:i}:void 0}function LNe(t){let{status:e,statusCode:r}=t;if(typeof e!="string"&&e!==void 0)throw new Error(`Polling was unsuccessful. Expected status to have a string value or no value but it has instead: ${e}. This doesn't necessarily indicate the operation has failed. Check your Azure subscription or resource status for more information.`);switch(e?.toLocaleLowerCase()){case void 0:return G7(r);case"succeeded":return"succeeded";case"failed":return"failed";case"running":case"accepted":case"started":case"canceling":case"cancelling":return"running";case"canceled":case"cancelled":return"canceled";default:return xy.verbose(`LRO: unrecognized operation status: ${e}`),e}}function CNt(t){var e;let{status:r}=(e=t.body)!==null&&e!==void 0?e:{};return LNe({status:r,statusCode:t.statusCode})}function INt(t){var e,r;let{properties:i,provisioningState:s}=(e=t.body)!==null&&e!==void 0?e:{},n=(r=i?.provisioningState)!==null&&r!==void 0?r:s;return LNe({status:n,statusCode:t.statusCode})}function G7(t){return t===202?"running":t<300?"succeeded":"failed"}function MNe({rawResponse:t}){let e=t.headers["retry-after"];if(e!==void 0){let r=parseInt(e);return isNaN(r)?SNt(new Date(e)):r*1e3}}function FNe(t){let e=t.flatResponse.error;if(!e){xy.warning("The long-running operation failed but there is no error property in the response's body");return}if(!e.code||!e.message){xy.warning("The long-running operation failed but the error property in the response's body doesn't contain code or message");return}return e}function SNt(t){let e=Math.floor(new Date().getTime()),r=t.getTime();if(e<r)return r-e}function UNe(t){let{response:e,state:r,operationLocation:i}=t;function s(){var o;switch((o=r.config.metadata)===null||o===void 0?void 0:o.mode){case void 0:return G7(e.rawResponse.statusCode);case"Body":return H7(e,r);default:return"running"}}let n=s();return n==="running"&&i===void 0?"succeeded":n}async function BNt(t){let{stateProxy:e,resourceLocationConfig:r,processResult:i,lro:s,setErrorAsResult:n}=t;return TNe({init:async()=>{let o=await s.sendInitialRequest(),a=kNe({rawResponse:o.rawResponse,requestPath:s.requestPath,requestMethod:s.requestMethod,resourceLocationConfig:r});return Object.assign({response:o,operationLocation:a?.operationLocation,resourceLocation:a?.resourceLocation},a?.mode?{metadata:{mode:a.mode}}:{})},stateProxy:e,processResult:i?({flatResponse:o},a)=>i(o,a):({flatResponse:o})=>o,getOperationStatus:UNe,setErrorAsResult:n})}function qNe({rawResponse:t},e){var r;switch((r=e.config.metadata)===null||r===void 0?void 0:r.mode){case"OperationLocation":return DNe({operationLocation:PNe(t),azureAsyncOperation:QNe(t)});case"ResourceLocation":return ONe(t);default:return}}function H7({rawResponse:t},e){var r;let i=(r=e.config.metadata)===null||r===void 0?void 0:r.mode;switch(i){case"OperationLocation":return CNt(t);case"ResourceLocation":return G7(t.statusCode);case"Body":return INt(t);default:throw new Error(`Internal error: Unexpected operation mode: ${i}`)}}function GNe({flatResponse:t},e){if(typeof t=="object"Line truncated
|
||||
`:case"\r":case" ":case" ":continue;default:throw Error("invalid base64 string.")}switch(s){case 0:o=n,s=1;break;case 1:r[i++]=o<<2|(n&48)>>4,o=n,s=2;break;case 2:r[i++]=(o&15)<<4|(n&60)>>2,o=n,s=3;break;case 3:r[i++]=(o&3)<<6|n,s=0;break}}if(s==1)throw Error("invalid base64 string.");return r.subarray(0,i)}Mw.base64decode=c2t;function u2t(t){let e="",r=0,i,s=0;for(let n=0;n<t.length;n++)switch(i=t[n],r){case 0:e+=Od[i>>2],s=(i&3)<<4,r=1;break;case 1:e+=Od[s|i>>4],s=(i&15)<<2,r=2;break;case 2:e+=Od[s|i>>6],e+=Od[i&63],r=0;break}return r&&(e+=Od[s],e+="=",r==1&&(e+="=")),e}Mw.base64encode=u2t});var g2e=p(Fk=>{"use strict";Object.defineProperty(Fk,"__esModule",{value:!0});Fk.utf8read=void 0;var Z7=t=>String.fromCharCode.apply(String,t);function l2t(t){if(t.length<1)return"";let e=0,r=[],i=[],s=0,n,o=t.length;for(;e<o;)n=t[e++],n<128?i[s++]=n:n>191&&n<224?i[s++]=(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[s++]=55296+(n>>10),i[s++]=56320+(n&1023)):i[s++]=(n&15)<<12|(t[e++]&63)<<6|t[e++]&63,s>8191&&(r.push(Z7(i)),s=0);return r.length?(s&&r.push(Z7(i.slice(0,s))),r.join("")):Z7(i.slice(0,s))}Fk.utf8read=l2t});var p_=p(Df=>{"use strict";Object.defineProperty(Df,"__esModule",{value:!0});Df.WireType=Df.mergeBinaryOptions=Df.UnknownFieldHandler=void 0;var f2t;(function(t){t.symbol=Symbol.for("protobuf-ts/unknown"),t.onRead=(r,i,s,n,o)=>{(e(i)?i[t.symbol]:i[t.symbol]=[]).push({no:s,wireType:n,data:o})},t.onWrite=(r,i,s)=>{for(let{no:n,wireType:o,data:a}of t.list(i))s.tag(n,o).raw(a)},t.list=(r,i)=>{if(e(r)){let s=r[t.symbol];return i?s.filter(n=>n.no==i):s}return[]},t.last=(r,i)=>t.list(r,i).slice(-1)[0];let e=r=>r&&Array.isArray(r[t.symbol])})(f2t=Df.UnknownFieldHandler||(Df.UnknownFieldHandler={}));function h2t(t,e){return Object.assign(Object.assign({},t),e)}Df.mergeBinaryOptions=h2t;var d2t;(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"})(d2t=Df.WireType||(Df.WireType={}))});var qk=p(ra=>{"use strict";Object.defineProperty(ra,"__esModule",{value:!0});ra.varint32read=ra.varint32write=ra.int64toString=ra.int64fromString=ra.varint64write=ra.varint64read=void 0;function p2t(){let t=0,e=0;for(let i=0;i<28;i+=7){let s=this.buf[this.pos++];if(t|=(s&127)<<i,(s&128)==0)return this.assertBounds(),[t,e]}let r=this.buf[this.pos++];if(t|=(r&15)<<28,e=(r&112)>>4,(r&128)==0)return this.assertBounds(),[t,e];for(let i=3;i<=31;i+=7){let s=this.buf[this.pos++];if(e|=(s&127)<<i,(s&128)==0)return this.assertBounds(),[t,e]}throw new Error("invalid varint")}ra.varint64read=p2t;function m2t(t,e,r){for(let n=0;n<28;n=n+7){let o=t>>>n,a=!(!(o>>>7)&&e==0),c=(a?o|128:o)&255;if(r.push(c),!a)return}let i=t>>>28&15|(e&7)<<4,s=e>>3!=0;if(r.push((s?i|128:i)&255),!!s){for(let n=3;n<31;n=n+7){let o=e>>>n,a=!!(o>>>7),c=(a?o|128:o)&255;if(r.push(c),!a)return}r.push(e>>>31&1)}}ra.varint64write=m2t;var Uk=65536*65536;function A2t(t){let e=t[0]=="-";e&&(t=t.slice(1));let r=1e6,i=0,s=0;function n(o,a){let c=Number(t.slice(o,a));s*=r,i=i*r+c,i>=Uk&&(s=s+(i/Uk|0),i=i%Uk)}return n(-24,-18),n(-18,-12),n(-12,-6),n(-6),[e,i,s]}ra.int64fromString=A2t;function g2t(t,e){if(e>>>0<=2097151)return""+(Uk*e+(t>>>0));let r=t&16777215,i=(t>>>24|e<<8)>>>0&16777215,s=e>>16&65535,n=r+i*6777216+s*6710656,o=i+s*8147497,a=s*2,c=1e7;n>=c&&(o+=Math.floor(n/c),n%=c),o>=c&&(a+=Math.floor(o/c),o%=c);function u(l,f){let h=l?String(l):"";return f?"0000000".slice(h.length)+h:h}return u(a,0)+u(o,a)+u(n,1)}ra.int64toString=g2t;function y2t(t,e){if(t>=0){for(;t>127;)e.push(t&127|128),t=t>>>7;e.push(t)}else{for(let r=0;r<9;r++)e.push(t&127|128),t=t>>7;e.push(1)}}ra.varint32write=y2t;function E2t(){let t=this.buf[this.pos++],e=t&127;if((t&128)==0)return this.assertBounds(),e;if(t=this.buf[this.pos++],e|=(t&127)<<7,(t&128)==0)return this.assertBounds(),e;if(t=this.buf[this.pos++],e|=(t&127)<<14,(t&128)==0)return this.assertBounds(),e;if(t=this.buf[this.pos++],e|=(t&127)<<21,(t&128)==0)return this.assertBounds(),e;t=this.buf[this.pos++],e|=(t&15)<<28;for(let r=5;(t&128)!==0&&r<10;r++)t=this.buf[this.pos++];if((t&128)!=0)throw new Error("invalid varint");return this.assertBounds(),e>>>0}ra.varint32read=E2t});var Hm=p(Gm=>{"use strict";Object.defineProperty(Gm,"__esModule",{value:!0});Gm.PbLong=Gm.PbULong=Gm.detectBi=void 0;var m_=qk(),dr;function y2e(){let t=new DataView(new ArrayBuffer(8));dr=globalThis.BigInt!==void 0&&typeof t.getBigInt64=="function"&&typeof t.getBigUint64=="function"&&typeof t.setBigInt64=="function"&&typeof t.setBigUint64=="function"?{MIN:BigInt("-9223372036854775808"),MAX:BigInt("9223372036854775807"),UMIN:BigInt("0"),UMAX:BigInt("18446744073709551615"),C:BigInt,V:t}:void 0}Gm.detectBi=y2e;y2e();function E2e(t){if(!t)throw new Error("BigInt unavailable, see https://github.com/timostamm/protobuf-ts/blob/v1.0.8/MANUAL.md#bigint-support")}var b2e=/^-?[0-9]+$/,Hk=4294967296,Gk=2147483648,jk=c
Line truncated
|
||||
`)}};pL.RpcError=vK});var _K=p(AL=>{"use strict";Object.defineProperty(AL,"__esModule",{value:!0});AL.mergeRpcOptions=void 0;var Y2e=Bi();function q1t(t,e){if(!e)return t;let r={};mL(t,r),mL(e,r);for(let i of Object.keys(e)){let s=e[i];switch(i){case"jsonOptions":r.jsonOptions=Y2e.mergeJsonOptions(t.jsonOptions,r.jsonOptions);break;case"binaryOptions":r.binaryOptions=Y2e.mergeBinaryOptions(t.binaryOptions,r.binaryOptions);break;case"meta":r.meta={},mL(t.meta,r.meta),mL(e.meta,r.meta);break;case"interceptors":r.interceptors=t.interceptors?t.interceptors.concat(s):s.concat();break}}return r}AL.mergeRpcOptions=q1t;function mL(t,e){if(!t)return;let r=e;for(let[i,s]of Object.entries(t))s instanceof Date?r[i]=new Date(s.getTime()):Array.isArray(s)?r[i]=s.concat():r[i]=s}});var TK=p(Dy=>{"use strict";Object.defineProperty(Dy,"__esModule",{value:!0});Dy.Deferred=Dy.DeferredState=void 0;var Qf;(function(t){t[t.PENDING=0]="PENDING",t[t.REJECTED=1]="REJECTED",t[t.RESOLVED=2]="RESOLVED"})(Qf=Dy.DeferredState||(Dy.DeferredState={}));var RK=class{constructor(e=!0){this._state=Qf.PENDING,this._promise=new Promise((r,i)=>{this._resolve=r,this._reject=i}),e&&this._promise.catch(r=>{})}get state(){return this._state}get promise(){return this._promise}resolve(e){if(this.state!==Qf.PENDING)throw new Error(`cannot resolve ${Qf[this.state].toLowerCase()}`);this._resolve(e),this._state=Qf.RESOLVED}reject(e){if(this.state!==Qf.PENDING)throw new Error(`cannot reject ${Qf[this.state].toLowerCase()}`);this._reject(e),this._state=Qf.REJECTED}resolvePending(e){this._state===Qf.PENDING&&this.resolve(e)}rejectPending(e){this._state===Qf.PENDING&&this.reject(e)}};Dy.Deferred=RK});var DK=p(gL=>{"use strict";Object.defineProperty(gL,"__esModule",{value:!0});gL.RpcOutputStreamController=void 0;var K2e=TK(),Oy=Bi(),NK=class{constructor(){this._lis={nxt:[],msg:[],err:[],cmp:[]},this._closed=!1,this._itState={q:[]}}onNext(e){return this.addLis(e,this._lis.nxt)}onMessage(e){return this.addLis(e,this._lis.msg)}onError(e){return this.addLis(e,this._lis.err)}onComplete(e){return this.addLis(e,this._lis.cmp)}addLis(e,r){return r.push(e),()=>{let i=r.indexOf(e);i>=0&&r.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,r,i){Oy.assert((e?1:0)+(r?1:0)+(i?1:0)<=1,"only one emission at a time"),e&&this.notifyMessage(e),r&&this.notifyError(r),i&&this.notifyComplete()}notifyMessage(e){Oy.assert(!this.closed,"stream is closed"),this.pushIt({value:e,done:!1}),this._lis.msg.forEach(r=>r(e)),this._lis.nxt.forEach(r=>r(e,void 0,!1))}notifyError(e){Oy.assert(!this.closed,"stream is closed"),this._closed=e,this.pushIt(e),this._lis.err.forEach(r=>r(e)),this._lis.nxt.forEach(r=>r(void 0,e,!1)),this.clearLis()}notifyComplete(){Oy.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;Oy.assert(e,"bad state"),Oy.assert(!e.p,"iterator contract broken");let r=e.q.shift();return r?"value"in r?Promise.resolve(r):Promise.reject(r):(e.p=new K2e.Deferred,e.p.promise)}}}pushIt(e){let r=this._itState;if(r.p){let i=r.p;Oy.assert(i.state==K2e.DeferredState.PENDING,"iterator contract broken"),"value"in e?i.resolve(e):i.reject(e),delete r.p}else r.q.push(e)}};gL.RpcOutputStreamController=NK});var PK=p(zw=>{"use strict";var G1t=zw&&zw.__awaiter||function(t,e,r,i){function s(n){return n instanceof r?n:new r(function(o){o(n)})}return new(r||(r=Promise))(function(n,o){function a(l){try{u(i.next(l))}catch(f){o(f)}}function c(l){try{u(i.throw(l))}catch(f){o(f)}}function u(l){l.done?n(l.value):s(l.value).then(a,c)}u((i=i.apply(t,e||[])).next())})};Object.defineProperty(zw,"__esModule",{value:!0});zw.UnaryCall=void 0;var OK=class{constructor(e,r,i,s,n,o,a){this.method=e,this.requestHeaders=r,this.request=i,this.headers=s,this.response=n,this.status=o,this.trailers=a}then(e,r){return this.promiseFinished().then(i=>e?Promise.resolve(e(i)):i,i=>r?Promise.resolve(r(i)):Promise.reject(i))}promiseFinished(){return G1t(this,void 0,void 0,function*(){let[e,r,i,s]=yield Promise.all([this.headers,this.response,this.status,this.trailers]);return{method:this.method,requestHeaders:this.requestHeaders,request:this.request,headers:e,response:r,status:i,trailers:s}})}};zw.UnaryCall=OK});var kK=p(Vw=>{"use strict";var H1t=Vw&&Vw.__awaiter||function(t,e,r,i){function s(n){return n instanceof r?n:new r(function(o){o(n)})}return new(r||(r=Promise))(function(n,o){function a(l){try{u(i.next(l))}catch(f){o(f)}}function c(l){try{u(i.throw(l))}catch(f){o(f)}}function u(l){l.done?n(l.value):s(l.value).then(a,c)}u((i=i.apply(t,e||[])).next())})};Object.defineProperty(Vw,"__esModule",{value:!0});Vw.ServerStreamingCall=void 0;var QK=class{constructor(e
Line truncated
|
||||
`:case"\r":case" ":case" ":continue;default:throw Error("invalid base64 string.")}switch(s){case 0:o=n,s=1;break;case 1:r[i++]=o<<2|(n&48)>>4,o=n,s=2;break;case 2:r[i++]=(o&15)<<4|(n&60)>>2,o=n,s=3;break;case 3:r[i++]=(o&3)<<6|n,s=0;break}}if(s==1)throw Error("invalid base64 string.");return r.subarray(0,i)}uC.base64decode=nLt;function oLt(t){let e="",r=0,i,s=0;for(let n=0;n<t.length;n++)switch(i=t[n],r){case 0:e+=Md[i>>2],s=(i&3)<<4,r=1;break;case 1:e+=Md[s|i>>4],s=(i&15)<<2,r=2;break;case 2:e+=Md[s|i>>6],e+=Md[i&63],r=0;break}return r&&(e+=Md[s],e+="=",r==1&&(e+="=")),e}uC.base64encode=oLt});var LPe=p(aM=>{"use strict";Object.defineProperty(aM,"__esModule",{value:!0});aM.utf8read=void 0;var dZ=t=>String.fromCharCode.apply(String,t);function aLt(t){if(t.length<1)return"";let e=0,r=[],i=[],s=0,n,o=t.length;for(;e<o;)n=t[e++],n<128?i[s++]=n:n>191&&n<224?i[s++]=(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[s++]=55296+(n>>10),i[s++]=56320+(n&1023)):i[s++]=(n&15)<<12|(t[e++]&63)<<6|t[e++]&63,s>8191&&(r.push(dZ(i)),s=0);return r.length?(s&&r.push(dZ(i.slice(0,s))),r.join("")):dZ(i.slice(0,s))}aM.utf8read=aLt});var H_=p(Ff=>{"use strict";Object.defineProperty(Ff,"__esModule",{value:!0});Ff.WireType=Ff.mergeBinaryOptions=Ff.UnknownFieldHandler=void 0;var cLt;(function(t){t.symbol=Symbol.for("protobuf-ts/unknown"),t.onRead=(r,i,s,n,o)=>{(e(i)?i[t.symbol]:i[t.symbol]=[]).push({no:s,wireType:n,data:o})},t.onWrite=(r,i,s)=>{for(let{no:n,wireType:o,data:a}of t.list(i))s.tag(n,o).raw(a)},t.list=(r,i)=>{if(e(r)){let s=r[t.symbol];return i?s.filter(n=>n.no==i):s}return[]},t.last=(r,i)=>t.list(r,i).slice(-1)[0];let e=r=>r&&Array.isArray(r[t.symbol])})(cLt=Ff.UnknownFieldHandler||(Ff.UnknownFieldHandler={}));function uLt(t,e){return Object.assign(Object.assign({},t),e)}Ff.mergeBinaryOptions=uLt;var lLt;(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"})(lLt=Ff.WireType||(Ff.WireType={}))});var uM=p(na=>{"use strict";Object.defineProperty(na,"__esModule",{value:!0});na.varint32read=na.varint32write=na.int64toString=na.int64fromString=na.varint64write=na.varint64read=void 0;function fLt(){let t=0,e=0;for(let i=0;i<28;i+=7){let s=this.buf[this.pos++];if(t|=(s&127)<<i,(s&128)==0)return this.assertBounds(),[t,e]}let r=this.buf[this.pos++];if(t|=(r&15)<<28,e=(r&112)>>4,(r&128)==0)return this.assertBounds(),[t,e];for(let i=3;i<=31;i+=7){let s=this.buf[this.pos++];if(e|=(s&127)<<i,(s&128)==0)return this.assertBounds(),[t,e]}throw new Error("invalid varint")}na.varint64read=fLt;function hLt(t,e,r){for(let n=0;n<28;n=n+7){let o=t>>>n,a=!(!(o>>>7)&&e==0),c=(a?o|128:o)&255;if(r.push(c),!a)return}let i=t>>>28&15|(e&7)<<4,s=e>>3!=0;if(r.push((s?i|128:i)&255),!!s){for(let n=3;n<31;n=n+7){let o=e>>>n,a=!!(o>>>7),c=(a?o|128:o)&255;if(r.push(c),!a)return}r.push(e>>>31&1)}}na.varint64write=hLt;var cM=65536*65536;function dLt(t){let e=t[0]=="-";e&&(t=t.slice(1));let r=1e6,i=0,s=0;function n(o,a){let c=Number(t.slice(o,a));s*=r,i=i*r+c,i>=cM&&(s=s+(i/cM|0),i=i%cM)}return n(-24,-18),n(-18,-12),n(-12,-6),n(-6),[e,i,s]}na.int64fromString=dLt;function pLt(t,e){if(e>>>0<=2097151)return""+(cM*e+(t>>>0));let r=t&16777215,i=(t>>>24|e<<8)>>>0&16777215,s=e>>16&65535,n=r+i*6777216+s*6710656,o=i+s*8147497,a=s*2,c=1e7;n>=c&&(o+=Math.floor(n/c),n%=c),o>=c&&(a+=Math.floor(o/c),o%=c);function u(l,f){let h=l?String(l):"";return f?"0000000".slice(h.length)+h:h}return u(a,0)+u(o,a)+u(n,1)}na.int64toString=pLt;function mLt(t,e){if(t>=0){for(;t>127;)e.push(t&127|128),t=t>>>7;e.push(t)}else{for(let r=0;r<9;r++)e.push(t&127|128),t=t>>7;e.push(1)}}na.varint32write=mLt;function ALt(){let t=this.buf[this.pos++],e=t&127;if((t&128)==0)return this.assertBounds(),e;if(t=this.buf[this.pos++],e|=(t&127)<<7,(t&128)==0)return this.assertBounds(),e;if(t=this.buf[this.pos++],e|=(t&127)<<14,(t&128)==0)return this.assertBounds(),e;if(t=this.buf[this.pos++],e|=(t&127)<<21,(t&128)==0)return this.assertBounds(),e;t=this.buf[this.pos++],e|=(t&15)<<28;for(let r=5;(t&128)!==0&&r<10;r++)t=this.buf[this.pos++];if((t&128)!=0)throw new Error("invalid varint");return this.assertBounds(),e>>>0}na.varint32read=ALt});var Wm=p($m=>{"use strict";Object.defineProperty($m,"__esModule",{value:!0});$m.PbLong=$m.PbULong=$m.detectBi=void 0;var j_=uM(),pr;function MPe(){let t=new DataView(new ArrayBuffer(8));pr=globalThis.BigInt!==void 0&&typeof t.getBigInt64=="function"&&typeof t.getBigUint64=="function"&&typeof t.setBigInt64=="function"&&typeof t.setBigUint64=="function"?{MIN:BigInt("-9223372036854775808"),MAX:BigInt("9223372036854775807"),UMIN:BigInt("0"),UMAX:BigInt("18446744073709551615"),C:BigInt,V:t}:void 0}$m.detectBi=MPe;MPe();function FPe(t){if(!t)throw new Error("BigInt unavailable, see https://github.com/timostamm/protobuf-ts/blob/v1.0.8/MANUAL.md#bigint-support")}var UPe=/^-?[0-9]+$/,fM=4294967296,lM=2147483648,hM=c
Line truncated
|
||||
`)}};kM.RpcError=ZZ});var tee=p(MM=>{"use strict";Object.defineProperty(MM,"__esModule",{value:!0});MM.mergeRpcOptions=void 0;var EQe=xr();function MMt(t,e){if(!e)return t;let r={};LM(t,r),LM(e,r);for(let i of Object.keys(e)){let s=e[i];switch(i){case"jsonOptions":r.jsonOptions=EQe.mergeJsonOptions(t.jsonOptions,r.jsonOptions);break;case"binaryOptions":r.binaryOptions=EQe.mergeBinaryOptions(t.binaryOptions,r.binaryOptions);break;case"meta":r.meta={},LM(t.meta,r.meta),LM(e.meta,r.meta);break;case"interceptors":r.interceptors=t.interceptors?t.interceptors.concat(s):s.concat();break}}return r}MM.mergeRpcOptions=MMt;function LM(t,e){if(!t)return;let r=e;for(let[i,s]of Object.entries(t))s instanceof Date?r[i]=new Date(s.getTime()):Array.isArray(s)?r[i]=s.concat():r[i]=s}});var iee=p(zy=>{"use strict";Object.defineProperty(zy,"__esModule",{value:!0});zy.Deferred=zy.DeferredState=void 0;var Vf;(function(t){t[t.PENDING=0]="PENDING",t[t.REJECTED=1]="REJECTED",t[t.RESOLVED=2]="RESOLVED"})(Vf=zy.DeferredState||(zy.DeferredState={}));var ree=class{constructor(e=!0){this._state=Vf.PENDING,this._promise=new Promise((r,i)=>{this._resolve=r,this._reject=i}),e&&this._promise.catch(r=>{})}get state(){return this._state}get promise(){return this._promise}resolve(e){if(this.state!==Vf.PENDING)throw new Error(`cannot resolve ${Vf[this.state].toLowerCase()}`);this._resolve(e),this._state=Vf.RESOLVED}reject(e){if(this.state!==Vf.PENDING)throw new Error(`cannot reject ${Vf[this.state].toLowerCase()}`);this._reject(e),this._state=Vf.REJECTED}resolvePending(e){this._state===Vf.PENDING&&this.resolve(e)}rejectPending(e){this._state===Vf.PENDING&&this.reject(e)}};zy.Deferred=ree});var nee=p(FM=>{"use strict";Object.defineProperty(FM,"__esModule",{value:!0});FM.RpcOutputStreamController=void 0;var bQe=iee(),Vy=xr(),see=class{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,r){return r.push(e),()=>{let i=r.indexOf(e);i>=0&&r.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,r,i){Vy.assert((e?1:0)+(r?1:0)+(i?1:0)<=1,"only one emission at a time"),e&&this.notifyMessage(e),r&&this.notifyError(r),i&&this.notifyComplete()}notifyMessage(e){Vy.assert(!this.closed,"stream is closed"),this.pushIt({value:e,done:!1}),this._lis.msg.forEach(r=>r(e)),this._lis.nxt.forEach(r=>r(e,void 0,!1))}notifyError(e){Vy.assert(!this.closed,"stream is closed"),this._closed=e,this.pushIt(e),this._lis.err.forEach(r=>r(e)),this._lis.nxt.forEach(r=>r(void 0,e,!1)),this.clearLis()}notifyComplete(){Vy.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;Vy.assert(e,"bad state"),Vy.assert(!e.p,"iterator contract broken");let r=e.q.shift();return r?"value"in r?Promise.resolve(r):Promise.reject(r):(e.p=new bQe.Deferred,e.p.promise)}}}pushIt(e){let r=this._itState;if(r)if(r.p){let i=r.p;Vy.assert(i.state==bQe.DeferredState.PENDING,"iterator contract broken"),"value"in e?i.resolve(e):i.reject(e),delete r.p}else r.q.push(e)}};FM.RpcOutputStreamController=see});var aee=p(yC=>{"use strict";var FMt=yC&&yC.__awaiter||function(t,e,r,i){function s(n){return n instanceof r?n:new r(function(o){o(n)})}return new(r||(r=Promise))(function(n,o){function a(l){try{u(i.next(l))}catch(f){o(f)}}function c(l){try{u(i.throw(l))}catch(f){o(f)}}function u(l){l.done?n(l.value):s(l.value).then(a,c)}u((i=i.apply(t,e||[])).next())})};Object.defineProperty(yC,"__esModule",{value:!0});yC.UnaryCall=void 0;var oee=class{constructor(e,r,i,s,n,o,a){this.method=e,this.requestHeaders=r,this.request=i,this.headers=s,this.response=n,this.status=o,this.trailers=a}then(e,r){return this.promiseFinished().then(i=>e?Promise.resolve(e(i)):i,i=>r?Promise.resolve(r(i)):Promise.reject(i))}promiseFinished(){return FMt(this,void 0,void 0,function*(){let[e,r,i,s]=yield Promise.all([this.headers,this.response,this.status,this.trailers]);return{method:this.method,requestHeaders:this.requestHeaders,request:this.request,headers:e,response:r,status:i,trailers:s}})}};yC.UnaryCall=oee});var uee=p(EC=>{"use strict";var UMt=EC&&EC.__awaiter||function(t,e,r,i){function s(n){return n instanceof r?n:new r(function(o){o(n)})}return new(r||(r=Promise))(function(n,o){function a(l){try{u(i.next(l))}catch(f){o(f)}}function c(l){try{u(i.throw(l))}catch(f){o(f)}}function u(l){l.done?n(l.value):s(l.value).then(a,c)}u((i=i.apply(t,e||[])).next())})};Object.defineProperty(EC,"__esModule",{value:!0});EC.ServerStreamingCall
Line truncated
|
||||
Polling status: ${MTe.includes(l)?"Stopped":"Running"}`),l==="succeeded"){let f=o(u,r);if(f!==void 0)return{response:await e(f).catch(LTe({state:r,stateProxy:i,isOperationError:a})),status:l}}return{response:u,status:l}}async function HTe(t){let{poll:e,state:r,stateProxy:i,options:s,getOperationStatus:n,getResourceLocation:o,getOperationLocation:a,isOperationError:c,withOperationLocation:u,getPollingInterval:l,processResult:f,getError:h,updateState:d,setDelay:m,isDone:A,setErrorAsResult:y}=t,{operationLocation:g}=r.config;if(g!==void 0){let{response:E,status:w}=await MTt({poll:e,getOperationStatus:n,state:r,stateProxy:i,operationLocation:g,getResourceLocation:o,isOperationError:c,options:s});if(qTe({status:w,response:E,state:r,stateProxy:i,isDone:A,processResult:f,getError:h,setErrorAsResult:y}),!MTe.includes(w)){let S=l?.(E);S&&m(S);let D=a?.(E,r);if(D!==void 0){let q=g!==D;r.config.operationLocation=D,u?.(D,q)}else u?.(g,!1)}d?.(r,E)}}function jTe(t){let{azureAsyncOperation:e,operationLocation:r}=t;return r??e}function zTe(t){return t.headers.location}function VTe(t){return t.headers["operation-location"]}function $Te(t){return t.headers["azure-asyncoperation"]}function UTt(t){var e;let{location:r,requestMethod:i,requestPath:s,resourceLocationConfig:n}=t;switch(i){case"PUT":return s;case"DELETE":return;case"PATCH":return(e=o())!==null&&e!==void 0?e:s;default:return o()}function o(){switch(n){case"azure-async-operation":return;case"original-uri":return s;default:return r}}}function WTe(t){let{rawResponse:e,requestMethod:r,requestPath:i,resourceLocationConfig:s}=t,n=VTe(e),o=$Te(e),a=jTe({operationLocation:n,azureAsyncOperation:o}),c=zTe(e),u=r?.toLocaleUpperCase();return a!==void 0?{mode:"OperationLocation",operationLocation:a,resourceLocation:UTt({requestMethod:u,location:c,requestPath:i,resourceLocationConfig:s})}:c!==void 0?{mode:"ResourceLocation",operationLocation:c}:u==="PUT"&&i?{mode:"Body",operationLocation:i}:void 0}function JTe(t){let{status:e,statusCode:r}=t;if(typeof e!="string"&&e!==void 0)throw new Error(`Polling was unsuccessful. Expected status to have a string value or no value but it has instead: ${e}. This doesn't necessarily indicate the operation has failed. Check your Azure subscription or resource status for more information.`);switch(e?.toLocaleLowerCase()){case void 0:return K7(r);case"succeeded":return"succeeded";case"failed":return"failed";case"running":case"accepted":case"started":case"canceling":case"cancelling":return"running";case"canceled":case"cancelled":return"canceled";default:return Ry.verbose(`LRO: unrecognized operation status: ${e}`),e}}function qTt(t){var e;let{status:r}=(e=t.body)!==null&&e!==void 0?e:{};return JTe({status:r,statusCode:t.statusCode})}function GTt(t){var e,r;let{properties:i,provisioningState:s}=(e=t.body)!==null&&e!==void 0?e:{},n=(r=i?.provisioningState)!==null&&r!==void 0?r:s;return JTe({status:n,statusCode:t.statusCode})}function K7(t){return t===202?"running":t<300?"succeeded":"failed"}function YTe({rawResponse:t}){let e=t.headers["retry-after"];if(e!==void 0){let r=parseInt(e);return isNaN(r)?HTt(new Date(e)):r*1e3}}function KTe(t){let e=t.flatResponse.error;if(!e){Ry.warning("The long-running operation failed but there is no error property in the response's body");return}if(!e.code||!e.message){Ry.warning("The long-running operation failed but the error property in the response's body doesn't contain code or message");return}return e}function HTt(t){let e=Math.floor(new Date().getTime()),r=t.getTime();if(e<r)return r-e}function XTe(t){let{response:e,state:r,operationLocation:i}=t;function s(){var o;switch((o=r.config.metadata)===null||o===void 0?void 0:o.mode){case void 0:return K7(e.rawResponse.statusCode);case"Body":return X7(e,r);default:return"running"}}let n=s();return n==="running"&&i===void 0?"succeeded":n}async function jTt(t){let{stateProxy:e,resourceLocationConfig:r,processResult:i,lro:s,setErrorAsResult:n}=t;return GTe({init:async()=>{let o=await s.sendInitialRequest(),a=WTe({rawResponse:o.rawResponse,requestPath:s.requestPath,requestMethod:s.requestMethod,resourceLocationConfig:r});return Object.assign({response:o,operationLocation:a?.operationLocation,resourceLocation:a?.resourceLocation},a?.mode?{metadata:{mode:a.mode}}:{})},stateProxy:e,processResult:i?({flatResponse:o},a)=>i(o,a):({flatResponse:o})=>o,getOperationStatus:XTe,setErrorAsResult:n})}function ZTe({rawResponse:t},e){var r;switch((r=e.config.metadata)===null||r===void 0?void 0:r.mode){case"OperationLocation":return jTe({operationLocation:VTe(t),azureAsyncOperation:$Te(t)});case"ResourceLocation":return zTe(t);default:return}}function X7({rawResponse:t},e){var r;let i=(r=e.config.metadata)===null||r===void 0?void 0:r.mode;switch(i){case"OperationLocation":return qTt(t);case"ResourceLocation":return K7(t.statusCode);case"Body":return GTt(t);default:throw new Error(`Internal error: Unexpected operation mode: ${i}`)}}function e1e({flatResponse:t},e){if(typeof t=="object"Line truncated
|
||||
`:case"\r":case" ":case" ":continue;default:throw Error("invalid base64 string.")}switch(s){case 0:o=n,s=1;break;case 1:r[i++]=o<<2|(n&48)>>4,o=n,s=2;break;case 2:r[i++]=(o&15)<<4|(n&60)>>2,o=n,s=3;break;case 3:r[i++]=(o&3)<<6|n,s=0;break}}if(s==1)throw Error("invalid base64 string.");return r.subarray(0,i)}qw.base64decode=x1t;function _1t(t){let e="",r=0,i,s=0;for(let n=0;n<t.length;n++)switch(i=t[n],r){case 0:e+=Dd[i>>2],s=(i&3)<<4,r=1;break;case 1:e+=Dd[s|i>>4],s=(i&15)<<2,r=2;break;case 2:e+=Dd[s|i>>6],e+=Dd[i&63],r=0;break}return r&&(e+=Dd[s],e+="=",r==1&&(e+="=")),e}qw.base64encode=_1t});var R1e=p(zk=>{"use strict";Object.defineProperty(zk,"__esModule",{value:!0});zk.utf8read=void 0;var cK=t=>String.fromCharCode.apply(String,t);function R1t(t){if(t.length<1)return"";let e=0,r=[],i=[],s=0,n,o=t.length;for(;e<o;)n=t[e++],n<128?i[s++]=n:n>191&&n<224?i[s++]=(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[s++]=55296+(n>>10),i[s++]=56320+(n&1023)):i[s++]=(n&15)<<12|(t[e++]&63)<<6|t[e++]&63,s>8191&&(r.push(cK(i)),s=0);return r.length?(s&&r.push(cK(i.slice(0,s))),r.join("")):cK(i.slice(0,s))}zk.utf8read=R1t});var g_=p(Tf=>{"use strict";Object.defineProperty(Tf,"__esModule",{value:!0});Tf.WireType=Tf.mergeBinaryOptions=Tf.UnknownFieldHandler=void 0;var N1t;(function(t){t.symbol=Symbol.for("protobuf-ts/unknown"),t.onRead=(r,i,s,n,o)=>{(e(i)?i[t.symbol]:i[t.symbol]=[]).push({no:s,wireType:n,data:o})},t.onWrite=(r,i,s)=>{for(let{no:n,wireType:o,data:a}of t.list(i))s.tag(n,o).raw(a)},t.list=(r,i)=>{if(e(r)){let s=r[t.symbol];return i?s.filter(n=>n.no==i):s}return[]},t.last=(r,i)=>t.list(r,i).slice(-1)[0];let e=r=>r&&Array.isArray(r[t.symbol])})(N1t=Tf.UnknownFieldHandler||(Tf.UnknownFieldHandler={}));function T1t(t,e){return Object.assign(Object.assign({},t),e)}Tf.mergeBinaryOptions=T1t;var D1t;(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"})(D1t=Tf.WireType||(Tf.WireType={}))});var $k=p(ra=>{"use strict";Object.defineProperty(ra,"__esModule",{value:!0});ra.varint32read=ra.varint32write=ra.int64toString=ra.int64fromString=ra.varint64write=ra.varint64read=void 0;function O1t(){let t=0,e=0;for(let i=0;i<28;i+=7){let s=this.buf[this.pos++];if(t|=(s&127)<<i,(s&128)==0)return this.assertBounds(),[t,e]}let r=this.buf[this.pos++];if(t|=(r&15)<<28,e=(r&112)>>4,(r&128)==0)return this.assertBounds(),[t,e];for(let i=3;i<=31;i+=7){let s=this.buf[this.pos++];if(e|=(s&127)<<i,(s&128)==0)return this.assertBounds(),[t,e]}throw new Error("invalid varint")}ra.varint64read=O1t;function P1t(t,e,r){for(let n=0;n<28;n=n+7){let o=t>>>n,a=!(!(o>>>7)&&e==0),c=(a?o|128:o)&255;if(r.push(c),!a)return}let i=t>>>28&15|(e&7)<<4,s=e>>3!=0;if(r.push((s?i|128:i)&255),!!s){for(let n=3;n<31;n=n+7){let o=e>>>n,a=!!(o>>>7),c=(a?o|128:o)&255;if(r.push(c),!a)return}r.push(e>>>31&1)}}ra.varint64write=P1t;var Vk=65536*65536;function Q1t(t){let e=t[0]=="-";e&&(t=t.slice(1));let r=1e6,i=0,s=0;function n(o,a){let c=Number(t.slice(o,a));s*=r,i=i*r+c,i>=Vk&&(s=s+(i/Vk|0),i=i%Vk)}return n(-24,-18),n(-18,-12),n(-12,-6),n(-6),[e,i,s]}ra.int64fromString=Q1t;function k1t(t,e){if(e>>>0<=2097151)return""+(Vk*e+(t>>>0));let r=t&16777215,i=(t>>>24|e<<8)>>>0&16777215,s=e>>16&65535,n=r+i*6777216+s*6710656,o=i+s*8147497,a=s*2,c=1e7;n>=c&&(o+=Math.floor(n/c),n%=c),o>=c&&(a+=Math.floor(o/c),o%=c);function u(l,f){let h=l?String(l):"";return f?"0000000".slice(h.length)+h:h}return u(a,0)+u(o,a)+u(n,1)}ra.int64toString=k1t;function L1t(t,e){if(t>=0){for(;t>127;)e.push(t&127|128),t=t>>>7;e.push(t)}else{for(let r=0;r<9;r++)e.push(t&127|128),t=t>>7;e.push(1)}}ra.varint32write=L1t;function F1t(){let t=this.buf[this.pos++],e=t&127;if((t&128)==0)return this.assertBounds(),e;if(t=this.buf[this.pos++],e|=(t&127)<<7,(t&128)==0)return this.assertBounds(),e;if(t=this.buf[this.pos++],e|=(t&127)<<14,(t&128)==0)return this.assertBounds(),e;if(t=this.buf[this.pos++],e|=(t&127)<<21,(t&128)==0)return this.assertBounds(),e;t=this.buf[this.pos++],e|=(t&15)<<28;for(let r=5;(t&128)!==0&&r<10;r++)t=this.buf[this.pos++];if((t&128)!=0)throw new Error("invalid varint");return this.assertBounds(),e>>>0}ra.varint32read=F1t});var jm=p(Hm=>{"use strict";Object.defineProperty(Hm,"__esModule",{value:!0});Hm.PbLong=Hm.PbULong=Hm.detectBi=void 0;var y_=$k(),dr;function N1e(){let t=new DataView(new ArrayBuffer(8));dr=globalThis.BigInt!==void 0&&typeof t.getBigInt64=="function"&&typeof t.getBigUint64=="function"&&typeof t.setBigInt64=="function"&&typeof t.setBigUint64=="function"?{MIN:BigInt("-9223372036854775808"),MAX:BigInt("9223372036854775807"),UMIN:BigInt("0"),UMAX:BigInt("18446744073709551615"),C:BigInt,V:t}:void 0}Hm.detectBi=N1e;N1e();function T1e(t){if(!t)throw new Error("BigInt unavailable, see https://github.com/timostamm/protobuf-ts/blob/v1.0.8/MANUAL.md#bigint-support")}var D1e=/^-?[0-9]+$/,Jk=4294967296,Wk=2147483648,Yk=c
Line truncated
|
||||
`)}};bL.RpcError=QK});var LK=p(CL=>{"use strict";Object.defineProperty(CL,"__esModule",{value:!0});CL.mergeRpcOptions=void 0;var c2e=Bi();function oDt(t,e){if(!e)return t;let r={};wL(t,r),wL(e,r);for(let i of Object.keys(e)){let s=e[i];switch(i){case"jsonOptions":r.jsonOptions=c2e.mergeJsonOptions(t.jsonOptions,r.jsonOptions);break;case"binaryOptions":r.binaryOptions=c2e.mergeBinaryOptions(t.binaryOptions,r.binaryOptions);break;case"meta":r.meta={},wL(t.meta,r.meta),wL(e.meta,r.meta);break;case"interceptors":r.interceptors=t.interceptors?t.interceptors.concat(s):s.concat();break}}return r}CL.mergeRpcOptions=oDt;function wL(t,e){if(!t)return;let r=e;for(let[i,s]of Object.entries(t))s instanceof Date?r[i]=new Date(s.getTime()):Array.isArray(s)?r[i]=s.concat():r[i]=s}});var MK=p(Py=>{"use strict";Object.defineProperty(Py,"__esModule",{value:!0});Py.Deferred=Py.DeferredState=void 0;var Pf;(function(t){t[t.PENDING=0]="PENDING",t[t.REJECTED=1]="REJECTED",t[t.RESOLVED=2]="RESOLVED"})(Pf=Py.DeferredState||(Py.DeferredState={}));var FK=class{constructor(e=!0){this._state=Pf.PENDING,this._promise=new Promise((r,i)=>{this._resolve=r,this._reject=i}),e&&this._promise.catch(r=>{})}get state(){return this._state}get promise(){return this._promise}resolve(e){if(this.state!==Pf.PENDING)throw new Error(`cannot resolve ${Pf[this.state].toLowerCase()}`);this._resolve(e),this._state=Pf.RESOLVED}reject(e){if(this.state!==Pf.PENDING)throw new Error(`cannot reject ${Pf[this.state].toLowerCase()}`);this._reject(e),this._state=Pf.REJECTED}resolvePending(e){this._state===Pf.PENDING&&this.resolve(e)}rejectPending(e){this._state===Pf.PENDING&&this.reject(e)}};Py.Deferred=FK});var qK=p(IL=>{"use strict";Object.defineProperty(IL,"__esModule",{value:!0});IL.RpcOutputStreamController=void 0;var u2e=MK(),Qy=Bi(),UK=class{constructor(){this._lis={nxt:[],msg:[],err:[],cmp:[]},this._closed=!1,this._itState={q:[]}}onNext(e){return this.addLis(e,this._lis.nxt)}onMessage(e){return this.addLis(e,this._lis.msg)}onError(e){return this.addLis(e,this._lis.err)}onComplete(e){return this.addLis(e,this._lis.cmp)}addLis(e,r){return r.push(e),()=>{let i=r.indexOf(e);i>=0&&r.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,r,i){Qy.assert((e?1:0)+(r?1:0)+(i?1:0)<=1,"only one emission at a time"),e&&this.notifyMessage(e),r&&this.notifyError(r),i&&this.notifyComplete()}notifyMessage(e){Qy.assert(!this.closed,"stream is closed"),this.pushIt({value:e,done:!1}),this._lis.msg.forEach(r=>r(e)),this._lis.nxt.forEach(r=>r(e,void 0,!1))}notifyError(e){Qy.assert(!this.closed,"stream is closed"),this._closed=e,this.pushIt(e),this._lis.err.forEach(r=>r(e)),this._lis.nxt.forEach(r=>r(void 0,e,!1)),this.clearLis()}notifyComplete(){Qy.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;Qy.assert(e,"bad state"),Qy.assert(!e.p,"iterator contract broken");let r=e.q.shift();return r?"value"in r?Promise.resolve(r):Promise.reject(r):(e.p=new u2e.Deferred,e.p.promise)}}}pushIt(e){let r=this._itState;if(r.p){let i=r.p;Qy.assert(i.state==u2e.DeferredState.PENDING,"iterator contract broken"),"value"in e?i.resolve(e):i.reject(e),delete r.p}else r.q.push(e)}};IL.RpcOutputStreamController=UK});var HK=p(Ww=>{"use strict";var aDt=Ww&&Ww.__awaiter||function(t,e,r,i){function s(n){return n instanceof r?n:new r(function(o){o(n)})}return new(r||(r=Promise))(function(n,o){function a(l){try{u(i.next(l))}catch(f){o(f)}}function c(l){try{u(i.throw(l))}catch(f){o(f)}}function u(l){l.done?n(l.value):s(l.value).then(a,c)}u((i=i.apply(t,e||[])).next())})};Object.defineProperty(Ww,"__esModule",{value:!0});Ww.UnaryCall=void 0;var GK=class{constructor(e,r,i,s,n,o,a){this.method=e,this.requestHeaders=r,this.request=i,this.headers=s,this.response=n,this.status=o,this.trailers=a}then(e,r){return this.promiseFinished().then(i=>e?Promise.resolve(e(i)):i,i=>r?Promise.resolve(r(i)):Promise.reject(i))}promiseFinished(){return aDt(this,void 0,void 0,function*(){let[e,r,i,s]=yield Promise.all([this.headers,this.response,this.status,this.trailers]);return{method:this.method,requestHeaders:this.requestHeaders,request:this.request,headers:e,response:r,status:i,trailers:s}})}};Ww.UnaryCall=GK});var zK=p(Jw=>{"use strict";var cDt=Jw&&Jw.__awaiter||function(t,e,r,i){function s(n){return n instanceof r?n:new r(function(o){o(n)})}return new(r||(r=Promise))(function(n,o){function a(l){try{u(i.next(l))}catch(f){o(f)}}function c(l){try{u(i.throw(l))}catch(f){o(f)}}function u(l){l.done?n(l.value):s(l.value).then(a,c)}u((i=i.apply(t,e||[])).next())})};Object.defineProperty(Jw,"__esModule",{value:!0});Jw.ServerStreamingCall=void 0;var jK=class{constructor(e
Line truncated
|
||||
`:case"\r":case" ":case" ":continue;default:throw Error("invalid base64 string.")}switch(s){case 0:o=n,s=1;break;case 1:r[i++]=o<<2|(n&48)>>4,o=n,s=2;break;case 2:r[i++]=(o&15)<<4|(n&60)>>2,o=n,s=3;break;case 3:r[i++]=(o&3)<<6|n,s=0;break}}if(s==1)throw Error("invalid base64 string.");return r.subarray(0,i)}hC.base64decode=SLt;function BLt(t){let e="",r=0,i,s=0;for(let n=0;n<t.length;n++)switch(i=t[n],r){case 0:e+=Ld[i>>2],s=(i&3)<<4,r=1;break;case 1:e+=Ld[s|i>>4],s=(i&15)<<2,r=2;break;case 2:e+=Ld[s|i>>6],e+=Ld[i&63],r=0;break}return r&&(e+=Ld[s],e+="=",r==1&&(e+="=")),e}hC.base64encode=BLt});var JPe=p(dF=>{"use strict";Object.defineProperty(dF,"__esModule",{value:!0});dF.utf8read=void 0;var CZ=t=>String.fromCharCode.apply(String,t);function vLt(t){if(t.length<1)return"";let e=0,r=[],i=[],s=0,n,o=t.length;for(;e<o;)n=t[e++],n<128?i[s++]=n:n>191&&n<224?i[s++]=(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[s++]=55296+(n>>10),i[s++]=56320+(n&1023)):i[s++]=(n&15)<<12|(t[e++]&63)<<6|t[e++]&63,s>8191&&(r.push(CZ(i)),s=0);return r.length?(s&&r.push(CZ(i.slice(0,s))),r.join("")):CZ(i.slice(0,s))}dF.utf8read=vLt});var V_=p(Ff=>{"use strict";Object.defineProperty(Ff,"__esModule",{value:!0});Ff.WireType=Ff.mergeBinaryOptions=Ff.UnknownFieldHandler=void 0;var xLt;(function(t){t.symbol=Symbol.for("protobuf-ts/unknown"),t.onRead=(r,i,s,n,o)=>{(e(i)?i[t.symbol]:i[t.symbol]=[]).push({no:s,wireType:n,data:o})},t.onWrite=(r,i,s)=>{for(let{no:n,wireType:o,data:a}of t.list(i))s.tag(n,o).raw(a)},t.list=(r,i)=>{if(e(r)){let s=r[t.symbol];return i?s.filter(n=>n.no==i):s}return[]},t.last=(r,i)=>t.list(r,i).slice(-1)[0];let e=r=>r&&Array.isArray(r[t.symbol])})(xLt=Ff.UnknownFieldHandler||(Ff.UnknownFieldHandler={}));function _Lt(t,e){return Object.assign(Object.assign({},t),e)}Ff.mergeBinaryOptions=_Lt;var RLt;(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"})(RLt=Ff.WireType||(Ff.WireType={}))});var mF=p(na=>{"use strict";Object.defineProperty(na,"__esModule",{value:!0});na.varint32read=na.varint32write=na.int64toString=na.int64fromString=na.varint64write=na.varint64read=void 0;function NLt(){let t=0,e=0;for(let i=0;i<28;i+=7){let s=this.buf[this.pos++];if(t|=(s&127)<<i,(s&128)==0)return this.assertBounds(),[t,e]}let r=this.buf[this.pos++];if(t|=(r&15)<<28,e=(r&112)>>4,(r&128)==0)return this.assertBounds(),[t,e];for(let i=3;i<=31;i+=7){let s=this.buf[this.pos++];if(e|=(s&127)<<i,(s&128)==0)return this.assertBounds(),[t,e]}throw new Error("invalid varint")}na.varint64read=NLt;function TLt(t,e,r){for(let n=0;n<28;n=n+7){let o=t>>>n,a=!(!(o>>>7)&&e==0),c=(a?o|128:o)&255;if(r.push(c),!a)return}let i=t>>>28&15|(e&7)<<4,s=e>>3!=0;if(r.push((s?i|128:i)&255),!!s){for(let n=3;n<31;n=n+7){let o=e>>>n,a=!!(o>>>7),c=(a?o|128:o)&255;if(r.push(c),!a)return}r.push(e>>>31&1)}}na.varint64write=TLt;var pF=65536*65536;function DLt(t){let e=t[0]=="-";e&&(t=t.slice(1));let r=1e6,i=0,s=0;function n(o,a){let c=Number(t.slice(o,a));s*=r,i=i*r+c,i>=pF&&(s=s+(i/pF|0),i=i%pF)}return n(-24,-18),n(-18,-12),n(-12,-6),n(-6),[e,i,s]}na.int64fromString=DLt;function OLt(t,e){if(e>>>0<=2097151)return""+(pF*e+(t>>>0));let r=t&16777215,i=(t>>>24|e<<8)>>>0&16777215,s=e>>16&65535,n=r+i*6777216+s*6710656,o=i+s*8147497,a=s*2,c=1e7;n>=c&&(o+=Math.floor(n/c),n%=c),o>=c&&(a+=Math.floor(o/c),o%=c);function u(l,f){let h=l?String(l):"";return f?"0000000".slice(h.length)+h:h}return u(a,0)+u(o,a)+u(n,1)}na.int64toString=OLt;function PLt(t,e){if(t>=0){for(;t>127;)e.push(t&127|128),t=t>>>7;e.push(t)}else{for(let r=0;r<9;r++)e.push(t&127|128),t=t>>7;e.push(1)}}na.varint32write=PLt;function QLt(){let t=this.buf[this.pos++],e=t&127;if((t&128)==0)return this.assertBounds(),e;if(t=this.buf[this.pos++],e|=(t&127)<<7,(t&128)==0)return this.assertBounds(),e;if(t=this.buf[this.pos++],e|=(t&127)<<14,(t&128)==0)return this.assertBounds(),e;if(t=this.buf[this.pos++],e|=(t&127)<<21,(t&128)==0)return this.assertBounds(),e;t=this.buf[this.pos++],e|=(t&15)<<28;for(let r=5;(t&128)!==0&&r<10;r++)t=this.buf[this.pos++];if((t&128)!=0)throw new Error("invalid varint");return this.assertBounds(),e>>>0}na.varint32read=QLt});var Jm=p(Wm=>{"use strict";Object.defineProperty(Wm,"__esModule",{value:!0});Wm.PbLong=Wm.PbULong=Wm.detectBi=void 0;var $_=mF(),pr;function YPe(){let t=new DataView(new ArrayBuffer(8));pr=globalThis.BigInt!==void 0&&typeof t.getBigInt64=="function"&&typeof t.getBigUint64=="function"&&typeof t.setBigInt64=="function"&&typeof t.setBigUint64=="function"?{MIN:BigInt("-9223372036854775808"),MAX:BigInt("9223372036854775807"),UMIN:BigInt("0"),UMAX:BigInt("18446744073709551615"),C:BigInt,V:t}:void 0}Wm.detectBi=YPe;YPe();function KPe(t){if(!t)throw new Error("BigInt unavailable, see https://github.com/timostamm/protobuf-ts/blob/v1.0.8/MANUAL.md#bigint-support")}var XPe=/^-?[0-9]+$/,gF=4294967296,AF=2147483648,yF=c
Line truncated
|
||||
`)}};GF.RpcError=cee});var lee=p(jF=>{"use strict";Object.defineProperty(jF,"__esModule",{value:!0});jF.mergeRpcOptions=void 0;var TQe=xr();function iMt(t,e){if(!e)return t;let r={};HF(t,r),HF(e,r);for(let i of Object.keys(e)){let s=e[i];switch(i){case"jsonOptions":r.jsonOptions=TQe.mergeJsonOptions(t.jsonOptions,r.jsonOptions);break;case"binaryOptions":r.binaryOptions=TQe.mergeBinaryOptions(t.binaryOptions,r.binaryOptions);break;case"meta":r.meta={},HF(t.meta,r.meta),HF(e.meta,r.meta);break;case"interceptors":r.interceptors=t.interceptors?t.interceptors.concat(s):s.concat();break}}return r}jF.mergeRpcOptions=iMt;function HF(t,e){if(!t)return;let r=e;for(let[i,s]of Object.entries(t))s instanceof Date?r[i]=new Date(s.getTime()):Array.isArray(s)?r[i]=s.concat():r[i]=s}});var hee=p($y=>{"use strict";Object.defineProperty($y,"__esModule",{value:!0});$y.Deferred=$y.DeferredState=void 0;var zf;(function(t){t[t.PENDING=0]="PENDING",t[t.REJECTED=1]="REJECTED",t[t.RESOLVED=2]="RESOLVED"})(zf=$y.DeferredState||($y.DeferredState={}));var fee=class{constructor(e=!0){this._state=zf.PENDING,this._promise=new Promise((r,i)=>{this._resolve=r,this._reject=i}),e&&this._promise.catch(r=>{})}get state(){return this._state}get promise(){return this._promise}resolve(e){if(this.state!==zf.PENDING)throw new Error(`cannot resolve ${zf[this.state].toLowerCase()}`);this._resolve(e),this._state=zf.RESOLVED}reject(e){if(this.state!==zf.PENDING)throw new Error(`cannot reject ${zf[this.state].toLowerCase()}`);this._reject(e),this._state=zf.REJECTED}resolvePending(e){this._state===zf.PENDING&&this.resolve(e)}rejectPending(e){this._state===zf.PENDING&&this.reject(e)}};$y.Deferred=fee});var pee=p(zF=>{"use strict";Object.defineProperty(zF,"__esModule",{value:!0});zF.RpcOutputStreamController=void 0;var DQe=hee(),Wy=xr(),dee=class{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,r){return r.push(e),()=>{let i=r.indexOf(e);i>=0&&r.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,r,i){Wy.assert((e?1:0)+(r?1:0)+(i?1:0)<=1,"only one emission at a time"),e&&this.notifyMessage(e),r&&this.notifyError(r),i&&this.notifyComplete()}notifyMessage(e){Wy.assert(!this.closed,"stream is closed"),this.pushIt({value:e,done:!1}),this._lis.msg.forEach(r=>r(e)),this._lis.nxt.forEach(r=>r(e,void 0,!1))}notifyError(e){Wy.assert(!this.closed,"stream is closed"),this._closed=e,this.pushIt(e),this._lis.err.forEach(r=>r(e)),this._lis.nxt.forEach(r=>r(void 0,e,!1)),this.clearLis()}notifyComplete(){Wy.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;Wy.assert(e,"bad state"),Wy.assert(!e.p,"iterator contract broken");let r=e.q.shift();return r?"value"in r?Promise.resolve(r):Promise.reject(r):(e.p=new DQe.Deferred,e.p.promise)}}}pushIt(e){let r=this._itState;if(r)if(r.p){let i=r.p;Wy.assert(i.state==DQe.DeferredState.PENDING,"iterator contract broken"),"value"in e?i.resolve(e):i.reject(e),delete r.p}else r.q.push(e)}};zF.RpcOutputStreamController=dee});var Aee=p(wC=>{"use strict";var sMt=wC&&wC.__awaiter||function(t,e,r,i){function s(n){return n instanceof r?n:new r(function(o){o(n)})}return new(r||(r=Promise))(function(n,o){function a(l){try{u(i.next(l))}catch(f){o(f)}}function c(l){try{u(i.throw(l))}catch(f){o(f)}}function u(l){l.done?n(l.value):s(l.value).then(a,c)}u((i=i.apply(t,e||[])).next())})};Object.defineProperty(wC,"__esModule",{value:!0});wC.UnaryCall=void 0;var mee=class{constructor(e,r,i,s,n,o,a){this.method=e,this.requestHeaders=r,this.request=i,this.headers=s,this.response=n,this.status=o,this.trailers=a}then(e,r){return this.promiseFinished().then(i=>e?Promise.resolve(e(i)):i,i=>r?Promise.resolve(r(i)):Promise.reject(i))}promiseFinished(){return sMt(this,void 0,void 0,function*(){let[e,r,i,s]=yield Promise.all([this.headers,this.response,this.status,this.trailers]);return{method:this.method,requestHeaders:this.requestHeaders,request:this.request,headers:e,response:r,status:i,trailers:s}})}};wC.UnaryCall=mee});var yee=p(CC=>{"use strict";var nMt=CC&&CC.__awaiter||function(t,e,r,i){function s(n){return n instanceof r?n:new r(function(o){o(n)})}return new(r||(r=Promise))(function(n,o){function a(l){try{u(i.next(l))}catch(f){o(f)}}function c(l){try{u(i.throw(l))}catch(f){o(f)}}function u(l){l.done?n(l.value):s(l.value).then(a,c)}u((i=i.apply(t,e||[])).next())})};Object.defineProperty(CC,"__esModule",{value:!0});CC.ServerStreamingCal
Line truncated
|
||||
globstar while`,e,f,r,h,d),this.matchOne(e.slice(f),r.slice(h),i))return this.debug("globstar found match!",f,a,d),!0;if(d==="."||d===".."||!s.dot&&d.charAt(0)==="."){this.debug("dot detected!",e,f,r,h);break}this.debug("globstar swallow a segment, and continue"),f++}return!!(i&&(this.debug(`
|
||||
>>> no match, partial?`,e,f,r,h),f===a))}var m;if(typeof u=="string"?(m=l===u,this.debug("string match",u,l,m)):(m=l.match(u),this.debug("pattern match",u,l,m)),!m)return!1}if(n===a&&o===c)return!0;if(n===a)return i;if(o===c)return n===a-1&&e[n]==="";throw new Error("wtf?")}braceExpand(){return rke(this.pattern,this.options)}parse(e,r){zM(e);let i=this.options;if(e==="**")if(i.noglobstar)e="*";else return pl;if(e==="")return"";let s="",n=!1,o=!1,a=[],c=[],u,l=!1,f=-1,h=-1,d,m,A,y=e.charAt(0)===".",g=i.dot||y,E=()=>y?"":g?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",C=N=>N.charAt(0)==="."?"":i.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",S=()=>{if(u){switch(u){case"*":s+=jee,n=!0;break;case"?":s+=$ee,n=!0;break;default:s+="\\"+u;break}this.debug("clearStateChar %j %j",u,s),u=!1}};for(let N=0,$;N<e.length&&($=e.charAt(N));N++){if(this.debug("%s %s %s %j",e,N,s,$),o){if($==="/")return!1;ZQe[$]&&(s+="\\"),s+=$,o=!1;continue}switch($){case"/":return!1;case"\\":if(l&&e.charAt(N+1)==="-"){s+=$;continue}S(),o=!0;continue;case"?":case"*":case"+":case"@":case"!":if(this.debug("%s %s %s %j <-- stateChar",e,N,s,$),l){this.debug(" in class"),$==="!"&&N===h+1&&($="^"),s+=$;continue}this.debug("call clearStateChar %j",u),S(),u=$,i.noext&&S();continue;case"(":{if(l){s+="(";continue}if(!u){s+="\\(";continue}let O={type:u,start:N-1,reStart:s.length,open:XQe[u].open,close:XQe[u].close};this.debug(this.pattern," ",O),a.push(O),s+=O.open,O.start===0&&O.type!=="!"&&(y=!0,s+=C(e.slice(N+1))),this.debug("plType %j %j",u,s),u=!1;continue}case")":{let O=a[a.length-1];if(l||!O){s+="\\)";continue}a.pop(),S(),n=!0,m=O,s+=m.close,m.type==="!"&&c.push(Object.assign(m,{reEnd:s.length}));continue}case"|":{let O=a[a.length-1];if(l||!O){s+="\\|";continue}S(),s+="|",O.start===0&&O.type!=="!"&&(y=!0,s+=C(e.slice(N+1)));continue}case"[":if(S(),l){s+="\\"+$;continue}l=!0,h=N,f=s.length,s+=$;continue;case"]":if(N===h+1||!l){s+="\\"+$;continue}d=e.substring(h+1,N);try{RegExp("["+RFt(xFt(d))+"]"),s+=$}catch{s=s.substring(0,f)+"(?:$.)"}n=!0,l=!1;continue;default:S(),ZQe[$]&&!($==="^"&&l)&&(s+="\\"),s+=$;break}}for(l&&(d=e.slice(h+1),A=this.parse(d,zee),s=s.substring(0,f)+"\\["+A[0],n=n||A[1]),m=a.pop();m;m=a.pop()){let N;N=s.slice(m.reStart+m.open.length),this.debug("setting tail",s,m),N=N.replace(/((?:\\{2}){0,64})(\\?)\|/g,(O,j,M)=>(M||(M="\\"),j+j+M+"|")),this.debug(`tail=%j
|
||||
%s`,N,N,m,s);let $=m.type==="*"?jee:m.type==="?"?$ee:"\\"+m.type;n=!0,s=s.slice(0,m.reStart)+$+"\\("+N}S(),o&&(s+="\\\\");let D=SFt[s.charAt(0)];for(let N=c.length-1;N>-1;N--){let $=c[N],O=s.slice(0,$.reStart),j=s.slice($.reStart,$.reEnd-8),M=s.slice($.reEnd),Z=s.slice($.reEnd-8,$.reEnd)+M,J=O.split(")").length,Ne=O.split("(").length-J,he=M;for(let X=0;X<Ne;X++)he=he.replace(/\)[+*?]?/,"");M=he;let Qe=M===""&&r!==zee?"(?:$|\\/)":"";s=O+j+M+Qe+Z}if(s!==""&&n&&(s="(?=.)"+s),D&&(s=E()+s),r===zee)return[s,n];if(i.nocase&&!n&&(n=e.toUpperCase()!==e.toLowerCase()),!n)return vFt(e);let q=i.nocase?"i":"";try{return Object.assign(new RegExp("^"+s+"$",q),{_glob:e,_src:s})}catch{return new RegExp("$.")}}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;let e=this.set;if(!e.length)return this.regexp=!1,this.regexp;let r=this.options,i=r.noglobstar?jee:r.dot?CFt:IFt,s=r.nocase?"i":"",n=e.map(o=>(o=o.map(a=>typeof a=="string"?_Ft(a):a===pl?pl:a._src).reduce((a,c)=>(a[a.length-1]===pl&&c===pl||a.push(c),a),[]),o.forEach((a,c)=>{a!==pl||o[c-1]===pl||(c===0?o.length>1?o[c+1]="(?:\\/|"+i+"\\/)?"+o[c+1]:o[c]=i:c===o.length-1?o[c-1]+="(?:\\/|"+i+")?":(o[c-1]+="(?:\\/|\\/"+i+"\\/)"+o[c+1],o[c+1]=pl))}),o.filter(a=>a!==pl).join("/"))).join("|");n="^(?:"+n+")$",this.negate&&(n="^(?!"+n+").*$");try{this.regexp=new RegExp(n,s)}catch{this.regexp=!1}return this.regexp}match(e,r=this.partial){if(this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return e==="";if(e==="/"&&r)return!0;let i=this.options;Vee.sep!=="/"&&(e=e.split(Vee.sep).join("/")),e=e.split(eke),this.debug(this.pattern,"split",e);let s=this.set;this.debug(this.pattern,"set",s);let n;for(let o=e.length-1;o>=0&&(n=e[o],!n);o--);for(let o=0;o<s.length;o++){let a=s[o],c=e;if(i.matchBase&&a.length===1&&(c=[n]),this.matchOne(c,a,r))return i.flipNegate?!0:!this.negate}return i.flipNegate?!1:this.negate}static defaults(e){return tc.defaults(e).Minimatch}};tc.Minimatch=_C});var cke=p((dzr,ake)=>{ake.exports=oke;var Yee=require("fs"),{EventEmitter:TFt}=require("events"),{Minimatch:Jee}=ike(),{resolve:NFt}=require("path");function DFt(t,e){return new Promise((r,i)=>{Yee.readdir(t,{withFileTypes:!0},(s,n)=>{if(s)switch(s.code){case"ENOTDIR":e?i(s):r([]);break;case"ENOTSUP":case"ENOENT":case"ENAMETOOLONG":case"UNKNOWN":r([]);break;default:i(s);break}else r(n)})})}function ske(t,e){return new Promise((r,i)=>{(e?Yee.stat:Yee.lstat)(t,(n,o)=>{n?n.code==="ENOENT"?r(e?ske(t,!1):null):r(null):r(o)})})}async function*nke(t,e,r,i,s,n){let o=await DFt(e+t,n);for(let a of o){let c=a.name;c===void 0&&(c=a,i=!0);let u=t+"/"+c,l=u.slice(1),f=e+"/"+l,h=null;(i||r)&&(h=await ske(f,r)),!h&&a.name!==void 0&&(h=a),h===null&&(h={isDirectory:()=>!1}),h.isDirectory()?s(l)||(yield{relative:l,absolute:f,stats:h},yield*nke(u,e,r,i,s,!1)):yield{relative:l,absolute:f,stats:h}}}async function*OFt(t,e,r,i){yield*nke("",t,e,r,i,!0)}function PFt(t){return{pattern:t.pattern,dot:!!t.dot,noglobstar:!!t.noglobstar,matchBase:!!t.matchBase,nocase:!!t.nocase,ignore:t.ignore,skip:t.skip,follow:!!t.follow,stat:!!t.stat,nodir:!!t.nodir,mark:!!t.mark,silent:!!t.silent,absolute:!!t.absolute}}var VM=class extends TFt{constructor(e,r,i){if(super(),typeof r=="function"&&(i=r,r=null),this.options=PFt(r||{}),this.matchers=[],this.options.pattern){let s=Array.isArray(this.options.pattern)?this.options.pattern:[this.options.pattern];this.matchers=s.map(n=>new Jee(n,{dot:this.options.dot,noglobstar:this.options.noglobstar,matchBase:this.options.matchBase,nocase:this.options.nocase}))}if(this.ignoreMatchers=[],this.options.ignore){let s=Array.isArray(this.options.ignore)?this.options.ignore:[this.options.ignore];this.ignoreMatchers=s.map(n=>new Jee(n,{dot:!0}))}if(this.skipMatchers=[],this.options.skip){let s=Array.isArray(this.options.skip)?this.options.skip:[this.options.skip];this.skipMatchers=s.map(n=>new Jee(n,{dot:!0}))}this.iterator=OFt(NFt(e||"."),this.options.follow,this.options.stat,this._shouldSkipDirectory.bind(this)),this.paused=!1,this.inactive=!1,this.aborted=!1,i&&(this._matches=[],this.on("match",s=>this._matches.push(this.options.absolute?s.absolute:s.relative)),this.on("error",s=>i(s)),this.on("end",()=>i(null,this._matches))),setTimeout(()=>this._next(),0)}_shouldSkipDirectory(e){return this.skipMatchers.some(r=>r.match(e))}_fileMatches(e,r){let i=e+(r?"/":"");return(this.matchers.length===0||this.matchers.some(s=>s.match(i)))&&!this.ignoreMatchers.some(s=>s.match(i))&&(!this.options.nodir||!r)}_next(){!this.paused&&!this.aborted?this.iterator.next().then(e=>{if(e.done)this.emit("end");else{let r=e.value.stats.isDirectory();if(this._fileMatches(e.value.relative,r)){let i=e.value.relative,s=e.value.absolute;this.options.mark&&r&&(i+="/",s+="/"),this.options.stat?this.emit("match",{relative:i,absolute:s,stat:e.value.stats}):this.emit("match",{relative:i,absolute:s})}this._next(this.iterator)}}).catch(e=>{this.abort(),this.emit("error",e),!e.code&&!this.options.silent&&console.erro
Line truncated
|
||||
`,x);x=F===-1?v.length:F}else if(P!==-1&&v[x]==="/"&&v[x+1]==="*"){let F=v.indexOf("*/",x);F!==-1?(x=F+2,P=v.indexOf("*/",x)):(I+=v[x],x++)}else I+=v[x],x++;return I}function L0(v){let I=pg(v.toString()),x=I.match(Ll);if(x||(x=I.match(Lu)),!x)throw new Error(`could not parse args in autoInject
|
||||
>>> no match, partial?`,e,f,r,h),f===a))}var m;if(typeof u=="string"?(m=l===u,this.debug("string match",u,l,m)):(m=l.match(u),this.debug("pattern match",u,l,m)),!m)return!1}if(n===a&&o===c)return!0;if(n===a)return i;if(o===c)return n===a-1&&e[n]==="";throw new Error("wtf?")}braceExpand(){return pke(this.pattern,this.options)}parse(e,r){KF(e);let i=this.options;if(e==="**")if(i.noglobstar)e="*";else return dl;if(e==="")return"";let s="",n=!1,o=!1,a=[],c=[],u,l=!1,f=-1,h=-1,d,m,A,y=e.charAt(0)===".",g=i.dot||y,E=()=>y?"":g?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",w=T=>T.charAt(0)==="."?"":i.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",S=()=>{if(u){switch(u){case"*":s+=Zee,n=!0;break;case"?":s+=rte,n=!0;break;default:s+="\\"+u;break}this.debug("clearStateChar %j %j",u,s),u=!1}};for(let T=0,$;T<e.length&&($=e.charAt(T));T++){if(this.debug("%s %s %s %j",e,T,s,$),o){if($==="/")return!1;fke[$]&&(s+="\\"),s+=$,o=!1;continue}switch($){case"/":return!1;case"\\":if(l&&e.charAt(T+1)==="-"){s+=$;continue}S(),o=!0;continue;case"?":case"*":case"+":case"@":case"!":if(this.debug("%s %s %s %j <-- stateChar",e,T,s,$),l){this.debug(" in class"),$==="!"&&T===h+1&&($="^"),s+=$;continue}this.debug("call clearStateChar %j",u),S(),u=$,i.noext&&S();continue;case"(":{if(l){s+="(";continue}if(!u){s+="\\(";continue}let O={type:u,start:T-1,reStart:s.length,open:lke[u].open,close:lke[u].close};this.debug(this.pattern," ",O),a.push(O),s+=O.open,O.start===0&&O.type!=="!"&&(y=!0,s+=w(e.slice(T+1))),this.debug("plType %j %j",u,s),u=!1;continue}case")":{let O=a[a.length-1];if(l||!O){s+="\\)";continue}a.pop(),S(),n=!0,m=O,s+=m.close,m.type==="!"&&c.push(Object.assign(m,{reEnd:s.length}));continue}case"|":{let O=a[a.length-1];if(l||!O){s+="\\|";continue}S(),s+="|",O.start===0&&O.type!=="!"&&(y=!0,s+=w(e.slice(T+1)));continue}case"[":if(S(),l){s+="\\"+$;continue}l=!0,h=T,f=s.length,s+=$;continue;case"]":if(T===h+1||!l){s+="\\"+$;continue}d=e.substring(h+1,T);try{RegExp("["+WMt(VMt(d))+"]"),s+=$}catch{s=s.substring(0,f)+"(?:$.)"}n=!0,l=!1;continue;default:S(),fke[$]&&!($==="^"&&l)&&(s+="\\"),s+=$;break}}for(l&&(d=e.slice(h+1),A=this.parse(d,ete),s=s.substring(0,f)+"\\["+A[0],n=n||A[1]),m=a.pop();m;m=a.pop()){let T;T=s.slice(m.reStart+m.open.length),this.debug("setting tail",s,m),T=T.replace(/((?:\\{2}){0,64})(\\?)\|/g,(O,j,F)=>(F||(F="\\"),j+j+F+"|")),this.debug(`tail=%j
|
||||
%s`,T,T,m,s);let $=m.type==="*"?Zee:m.type==="?"?rte:"\\"+m.type;n=!0,s=s.slice(0,m.reStart)+$+"\\("+T}S(),o&&(s+="\\\\");let D=HMt[s.charAt(0)];for(let T=c.length-1;T>-1;T--){let $=c[T],O=s.slice(0,$.reStart),j=s.slice($.reStart,$.reEnd-8),F=s.slice($.reEnd),Z=s.slice($.reEnd-8,$.reEnd)+F,J=O.split(")").length,Te=O.split("(").length-J,he=F;for(let X=0;X<Te;X++)he=he.replace(/\)[+*?]?/,"");F=he;let Qe=F===""&&r!==ete?"(?:$|\\/)":"";s=O+j+F+Qe+Z}if(s!==""&&n&&(s="(?=.)"+s),D&&(s=E()+s),r===ete)return[s,n];if(i.nocase&&!n&&(n=e.toUpperCase()!==e.toLowerCase()),!n)return zMt(e);let q=i.nocase?"i":"";try{return Object.assign(new RegExp("^"+s+"$",q),{_glob:e,_src:s})}catch{return new RegExp("$.")}}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;let e=this.set;if(!e.length)return this.regexp=!1,this.regexp;let r=this.options,i=r.noglobstar?Zee:r.dot?qMt:GMt,s=r.nocase?"i":"",n=e.map(o=>(o=o.map(a=>typeof a=="string"?$Mt(a):a===dl?dl:a._src).reduce((a,c)=>(a[a.length-1]===dl&&c===dl||a.push(c),a),[]),o.forEach((a,c)=>{a!==dl||o[c-1]===dl||(c===0?o.length>1?o[c+1]="(?:\\/|"+i+"\\/)?"+o[c+1]:o[c]=i:c===o.length-1?o[c-1]+="(?:\\/|"+i+")?":(o[c-1]+="(?:\\/|\\/"+i+"\\/)"+o[c+1],o[c+1]=dl))}),o.filter(a=>a!==dl).join("/"))).join("|");n="^(?:"+n+")$",this.negate&&(n="^(?!"+n+").*$");try{this.regexp=new RegExp(n,s)}catch{this.regexp=!1}return this.regexp}match(e,r=this.partial){if(this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return e==="";if(e==="/"&&r)return!0;let i=this.options;tte.sep!=="/"&&(e=e.split(tte.sep).join("/")),e=e.split(hke),this.debug(this.pattern,"split",e);let s=this.set;this.debug(this.pattern,"set",s);let n;for(let o=e.length-1;o>=0&&(n=e[o],!n);o--);for(let o=0;o<s.length;o++){let a=s[o],c=e;if(i.matchBase&&a.length===1&&(c=[n]),this.matchOne(c,a,r))return i.flipNegate?!0:!this.negate}return i.flipNegate?!1:this.negate}static defaults(e){return ec.defaults(e).Minimatch}};ec.Minimatch=TC});var bke=p((Hzr,Eke)=>{Eke.exports=yke;var nte=require("fs"),{EventEmitter:JMt}=require("events"),{Minimatch:ste}=mke(),{resolve:YMt}=require("path");function KMt(t,e){return new Promise((r,i)=>{nte.readdir(t,{withFileTypes:!0},(s,n)=>{if(s)switch(s.code){case"ENOTDIR":e?i(s):r([]);break;case"ENOTSUP":case"ENOENT":case"ENAMETOOLONG":case"UNKNOWN":r([]);break;default:i(s);break}else r(n)})})}function Ake(t,e){return new Promise((r,i)=>{(e?nte.stat:nte.lstat)(t,(n,o)=>{n?n.code==="ENOENT"?r(e?Ake(t,!1):null):r(null):r(o)})})}async function*gke(t,e,r,i,s,n){let o=await KMt(e+t,n);for(let a of o){let c=a.name;c===void 0&&(c=a,i=!0);let u=t+"/"+c,l=u.slice(1),f=e+"/"+l,h=null;(i||r)&&(h=await Ake(f,r)),!h&&a.name!==void 0&&(h=a),h===null&&(h={isDirectory:()=>!1}),h.isDirectory()?s(l)||(yield{relative:l,absolute:f,stats:h},yield*gke(u,e,r,i,s,!1)):yield{relative:l,absolute:f,stats:h}}}async function*XMt(t,e,r,i){yield*gke("",t,e,r,i,!0)}function ZMt(t){return{pattern:t.pattern,dot:!!t.dot,noglobstar:!!t.noglobstar,matchBase:!!t.matchBase,nocase:!!t.nocase,ignore:t.ignore,skip:t.skip,follow:!!t.follow,stat:!!t.stat,nodir:!!t.nodir,mark:!!t.mark,silent:!!t.silent,absolute:!!t.absolute}}var XF=class extends JMt{constructor(e,r,i){if(super(),typeof r=="function"&&(i=r,r=null),this.options=ZMt(r||{}),this.matchers=[],this.options.pattern){let s=Array.isArray(this.options.pattern)?this.options.pattern:[this.options.pattern];this.matchers=s.map(n=>new ste(n,{dot:this.options.dot,noglobstar:this.options.noglobstar,matchBase:this.options.matchBase,nocase:this.options.nocase}))}if(this.ignoreMatchers=[],this.options.ignore){let s=Array.isArray(this.options.ignore)?this.options.ignore:[this.options.ignore];this.ignoreMatchers=s.map(n=>new ste(n,{dot:!0}))}if(this.skipMatchers=[],this.options.skip){let s=Array.isArray(this.options.skip)?this.options.skip:[this.options.skip];this.skipMatchers=s.map(n=>new ste(n,{dot:!0}))}this.iterator=XMt(YMt(e||"."),this.options.follow,this.options.stat,this._shouldSkipDirectory.bind(this)),this.paused=!1,this.inactive=!1,this.aborted=!1,i&&(this._matches=[],this.on("match",s=>this._matches.push(this.options.absolute?s.absolute:s.relative)),this.on("error",s=>i(s)),this.on("end",()=>i(null,this._matches))),setTimeout(()=>this._next(),0)}_shouldSkipDirectory(e){return this.skipMatchers.some(r=>r.match(e))}_fileMatches(e,r){let i=e+(r?"/":"");return(this.matchers.length===0||this.matchers.some(s=>s.match(i)))&&!this.ignoreMatchers.some(s=>s.match(i))&&(!this.options.nodir||!r)}_next(){!this.paused&&!this.aborted?this.iterator.next().then(e=>{if(e.done)this.emit("end");else{let r=e.value.stats.isDirectory();if(this._fileMatches(e.value.relative,r)){let i=e.value.relative,s=e.value.absolute;this.options.mark&&r&&(i+="/",s+="/"),this.options.stat?this.emit("match",{relative:i,absolute:s,stat:e.value.stats}):this.emit("match",{relative:i,absolute:s})}this._next(this.iterator)}}).catch(e=>{this.abort(),this.emit("error",e),!e.code&&!this.options.silent&&console.erro
Line truncated
|
||||
`,x);x=M===-1?v.length:M}else if(P!==-1&&v[x]==="/"&&v[x+1]==="*"){let M=v.indexOf("*/",x);M!==-1?(x=M+2,P=v.indexOf("*/",x)):(I+=v[x],x++)}else I+=v[x],x++;return I}function M0(v){let I=mg(v.toString()),x=I.match(kl);if(x||(x=I.match(ku)),!x)throw new Error(`could not parse args in autoInject
|
||||
Source:
|
||||
`+I);let[,P]=x;return P.replace(/\s/g,"").split(k0).map(F=>F.replace(dg,"").trim())}function em(v,I){var x={};return Object.keys(v).forEach(P=>{var F=v[P],G,V=d(F),W=!V&&F.length===1||V&&F.length===0;if(Array.isArray(F))G=[...F],F=G.pop(),x[P]=G.concat(G.length>0?ee:F);else if(W)x[P]=F;else{if(G=L0(F),F.length===0&&!V&&G.length===0)throw new Error("autoInject task functions require explicit parameters.");V||G.pop(),x[P]=G.concat(ee)}function ee(De,Qt){var jt=G.map(Lt=>De[Lt]);jt.push(Qt),y(F)(...jt)}}),kl(x,I)}class M0{constructor(){this.head=this.tail=null,this.length=0}removeLink(I){return I.prev?I.prev.next=I.next:this.head=I.next,I.next?I.next.prev=I.prev:this.tail=I.prev,I.prev=I.next=null,this.length-=1,I}empty(){for(;this.head;)this.shift();return this}insertAfter(I,x){x.prev=I,x.next=I.next,I.next?I.next.prev=x:this.tail=x,I.next=x,this.length+=1}insertBefore(I,x){x.prev=I.prev,x.next=I,I.prev?I.prev.next=x:this.head=x,I.prev=x,this.length+=1}unshift(I){this.head?this.insertBefore(this.head,I):mg(this,I)}push(I){this.tail?this.insertAfter(this.tail,I):mg(this,I)}shift(){return this.head&&this.removeLink(this.head)}pop(){return this.tail&&this.removeLink(this.tail)}toArray(){return[...this]}*[Symbol.iterator](){for(var I=this.head;I;)yield I.data,I=I.next}remove(I){for(var x=this.head;x;){var{next:P}=x;I(x)&&this.removeLink(x),x=P}return this}}function mg(v,I){v.length=1,v.head=v.tail=I}function tm(v,I,x){if(I==null)I=1;else if(I===0)throw new RangeError("Concurrency must not be zero");var P=y(v),F=0,G=[];let V={error:[],drain:[],saturated:[],unsaturated:[],empty:[]};function W(je,Te){V[je].push(Te)}function ee(je,Te){let ze=(...Mt)=>{De(je,ze),Te(...Mt)};V[je].push(ze)}function De(je,Te){if(!je)return Object.keys(V).forEach(ze=>V[ze]=[]);if(!Te)return V[je]=[];V[je]=V[je].filter(ze=>ze!==Te)}function Qt(je,...Te){V[je].forEach(ze=>ze(...Te))}var jt=!1;function Lt(je,Te,ze,Mt){if(Mt!=null&&typeof Mt!="function")throw new Error("task callback must be a function");zt.started=!0;var Pr,ls;function Cc(vg,...FB){if(vg)return ze?ls(vg):Pr();if(FB.length<=1)return Pr(FB[0]);Pr(FB)}var Z0=zt._createTaskItem(je,ze?Cc:Mt||Cc);if(Te?zt._tasks.unshift(Z0):zt._tasks.push(Z0),jt||(jt=!0,u(()=>{jt=!1,zt.process()})),ze||!Mt)return new Promise((vg,FB)=>{Pr=vg,ls=FB})}function wc(je){return function(Te,...ze){F-=1;for(var Mt=0,Pr=je.length;Mt<Pr;Mt++){var ls=je[Mt],Cc=G.indexOf(ls);Cc===0?G.shift():Cc>0&&G.splice(Cc,1),ls.callback(Te,...ze),Te!=null&&Qt("error",Te,ls.data)}F<=zt.concurrency-zt.buffer&&Qt("unsaturated"),zt.idle()&&Qt("drain"),zt.process()}}function X0(je){return je.length===0&&zt.idle()?(u(()=>Qt("drain")),!0):!1}let Bg=je=>Te=>{if(!Te)return new Promise((ze,Mt)=>{ee(je,(Pr,ls)=>{if(Pr)return Mt(Pr);ze(ls)})});De(je),W(je,Te)};var MB=!1,zt={_tasks:new M0,_createTaskItem(je,Te){return{data:je,callback:Te}},*[Symbol.iterator](){yield*zt._tasks[Symbol.iterator]()},concurrency:I,payload:x,buffer:I/4,started:!1,paused:!1,push(je,Te){return Array.isArray(je)?X0(je)?void 0:je.map(ze=>Lt(ze,!1,!1,Te)):Lt(je,!1,!1,Te)},pushAsync(je,Te){return Array.isArray(je)?X0(je)?void 0:je.map(ze=>Lt(ze,!1,!0,Te)):Lt(je,!1,!0,Te)},kill(){De(),zt._tasks.empty()},unshift(je,Te){return Array.isArray(je)?X0(je)?void 0:je.map(ze=>Lt(ze,!0,!1,Te)):Lt(je,!0,!1,Te)},unshiftAsync(je,Te){return Array.isArray(je)?X0(je)?void 0:je.map(ze=>Lt(ze,!0,!0,Te)):Lt(je,!0,!0,Te)},remove(je){zt._tasks.remove(je)},process(){if(!MB){for(MB=!0;!zt.paused&&F<zt.concurrency&&zt._tasks.length;){var je=[],Te=[],ze=zt._tasks.length;zt.payload&&(ze=Math.min(ze,zt.payload));for(var Mt=0;Mt<ze;Mt++){var Pr=zt._tasks.shift();je.push(Pr),G.push(Pr),Te.push(Pr.data)}F+=1,zt._tasks.length===0&&Qt("empty"),F===zt.concurrency&&Qt("saturated");var ls=J(wc(je));P(Te,ls)}MB=!1}},length(){return zt._tasks.length},running(){return F},workersList(){return G},idle(){return zt._tasks.length+F===0},pause(){zt.paused=!0},resume(){zt.paused!==!1&&(zt.paused=!1,u(zt.process))}};return Object.defineProperties(zt,{saturated:{writable:!1,value:Bg("saturated")},unsaturated:{writable:!1,value:Bg("unsaturated")},empty:{writable:!1,value:Bg("empty")},drain:{writable:!1,value:Bg("drain")},error:{writable:!1,value:Bg("error")}}),zt}function rm(v,I){return tm(v,1,I)}function Yn(v,I,x){return tm(v,I,x)}function F0(v,I,x,P){P=N(P);var F=y(x);return Vr(v,(G,V,W)=>{F(I,G,(ee,De)=>{I=De,W(ee)})},G=>P(G,I))}var wa=g(F0,4);function Ag(...v){var I=v.map(y);return function(...x){var P=this,F=x[x.length-1];return typeof F=="function"?x.pop():F=ba(),wa(I,x,(G,V,W)=>{V.apply(P,G.concat((ee,...De)=>{W(ee,De)}))},(G,V)=>F(G,...V)),F[un]}}function Be(...v){return Ag(...v.reverse())}function U(v,I,x,P){return C(he(I),v,x,P)}var R=g(U,4);function H(v,I,x,P){var F=y(x);return R(v,I,(G,V)=>{F(G,(W,...ee)=>W?V(W):V(W,ee))},(G,V)=>{for(var W=[],ee=0;ee<V.length;ee++)V[ee]&&(W=W.concat(...V[ee]));return P(G,W)})}var z=g(H,4);function K(v,I,x){return z(v,1/0,I,x)}var re=g(K,3);function Se(v,I,x){return
Line truncated
|
||||
GFS4: `),console.error(t)});Jr[Zs]||(yke=global[Zs]||[],bke(Jr,yke),Jr.close=(function(t){function e(r,i){return t.call(Jr,r,function(s){s||Eke(),typeof i=="function"&&i.apply(this,arguments)})}return Object.defineProperty(e,KM,{value:t}),e})(Jr.close),Jr.closeSync=(function(t){function e(r){t.apply(Jr,arguments),Eke()}return Object.defineProperty(e,KM,{value:t}),e})(Jr.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){Wy(Jr[Zs]),require("assert").equal(Jr[Zs].length,0)}));var yke;global[Zs]||bke(global,Jr[Zs]);ete.exports=Xee(HFt(Jr));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!Jr.__patched&&(ete.exports=Xee(Jr),Jr.__patched=!0);function Xee(t){qFt(t),t.gracefulify=Xee,t.createReadStream=D,t.createWriteStream=q;var e=t.readFile;t.readFile=r;function r(O,j,M){return typeof j=="function"&&(M=j,j=null),Z(O,j,M);function Z(J,Ne,he,Qe){return e(J,Ne,function(X){X&&(X.code==="EMFILE"||X.code==="ENFILE")?RC([Z,[J,Ne,he],X,Qe||Date.now(),Date.now()]):typeof he=="function"&&he.apply(this,arguments)})}}var i=t.writeFile;t.writeFile=s;function s(O,j,M,Z){return typeof M=="function"&&(Z=M,M=null),J(O,j,M,Z);function J(Ne,he,Qe,X,Re){return i(Ne,he,Qe,function(Ce){Ce&&(Ce.code==="EMFILE"||Ce.code==="ENFILE")?RC([J,[Ne,he,Qe,X],Ce,Re||Date.now(),Date.now()]):typeof X=="function"&&X.apply(this,arguments)})}}var n=t.appendFile;n&&(t.appendFile=o);function o(O,j,M,Z){return typeof M=="function"&&(Z=M,M=null),J(O,j,M,Z);function J(Ne,he,Qe,X,Re){return n(Ne,he,Qe,function(Ce){Ce&&(Ce.code==="EMFILE"||Ce.code==="ENFILE")?RC([J,[Ne,he,Qe,X],Ce,Re||Date.now(),Date.now()]):typeof X=="function"&&X.apply(this,arguments)})}}var a=t.copyFile;a&&(t.copyFile=c);function c(O,j,M,Z){return typeof M=="function"&&(Z=M,M=0),J(O,j,M,Z);function J(Ne,he,Qe,X,Re){return a(Ne,he,Qe,function(Ce){Ce&&(Ce.code==="EMFILE"||Ce.code==="ENFILE")?RC([J,[Ne,he,Qe,X],Ce,Re||Date.now(),Date.now()]):typeof X=="function"&&X.apply(this,arguments)})}}var u=t.readdir;t.readdir=f;var l=/^v[0-5]\./;function f(O,j,M){typeof j=="function"&&(M=j,j=null);var Z=l.test(process.version)?function(he,Qe,X,Re){return u(he,J(he,Qe,X,Re))}:function(he,Qe,X,Re){return u(he,Qe,J(he,Qe,X,Re))};return Z(O,j,M);function J(Ne,he,Qe,X){return function(Re,Ce){Re&&(Re.code==="EMFILE"||Re.code==="ENFILE")?RC([Z,[Ne,he,Qe],Re,X||Date.now(),Date.now()]):(Ce&&Ce.sort&&Ce.sort(),typeof Qe=="function"&&Qe.call(this,Re,Ce))}}}if(process.version.substr(0,4)==="v0.8"){var h=GFt(t);g=h.ReadStream,C=h.WriteStream}var d=t.ReadStream;d&&(g.prototype=Object.create(d.prototype),g.prototype.open=E);var m=t.WriteStream;m&&(C.prototype=Object.create(m.prototype),C.prototype.open=S),Object.defineProperty(t,"ReadStream",{get:function(){return g},set:function(O){g=O},enumerable:!0,configurable:!0}),Object.defineProperty(t,"WriteStream",{get:function(){return C},set:function(O){C=O},enumerable:!0,configurable:!0});var A=g;Object.defineProperty(t,"FileReadStream",{get:function(){return A},set:function(O){A=O},enumerable:!0,configurable:!0});var y=C;Object.defineProperty(t,"FileWriteStream",{get:function(){return y},set:function(O){y=O},enumerable:!0,configurable:!0});function g(O,j){return this instanceof g?(d.apply(this,arguments),this):g.apply(Object.create(g.prototype),arguments)}function E(){var O=this;$(O.path,O.flags,O.mode,function(j,M){j?(O.autoClose&&O.destroy(),O.emit("error",j)):(O.fd=M,O.emit("open",M),O.read())})}function C(O,j){return this instanceof C?(m.apply(this,arguments),this):C.apply(Object.create(C.prototype),arguments)}function S(){var O=this;$(O.path,O.flags,O.mode,function(j,M){j?(O.destroy(),O.emit("error",j)):(O.fd=M,O.emit("open",M))})}function D(O,j){return new t.ReadStream(O,j)}function q(O,j){return new t.WriteStream(O,j)}var N=t.open;t.open=$;function $(O,j,M,Z){return typeof M=="function"&&(Z=M,M=null),J(O,j,M,Z);function J(Ne,he,Qe,X,Re){return N(Ne,he,Qe,function(Ce,_t){Ce&&(Ce.code==="EMFILE"||Ce.code==="ENFILE")?RC([J,[Ne,he,Qe,X],Ce,Re||Date.now(),Date.now()]):typeof X=="function"&&X.apply(this,arguments)})}}return t}function RC(t){Wy("ENQUEUE",t[0].name,t[1]),Jr[Zs].push(t),Zee()}var YM;function Eke(){for(var t=Date.now(),e=0;e<Jr[Zs].length;++e)Jr[Zs][e].length>2&&(Jr[Zs][e][3]=t,Jr[Zs][e][4]=t);Zee()}function Zee(){if(clearTimeout(YM),YM=void 0,Jr[Zs].length!==0){var t=Jr[Zs].shift(),e=t[0],r=t[1],i=t[2],s=t[3],n=t[4];if(s===void 0)Wy("RETRY",e.name,r),e.apply(null,r);else if(Date.now()-s>=6e4){Wy("TIMEOUT",e.name,r);var o=r.pop();typeof o=="function"&&o.call(null,i)}else{var a=Date.now()-n,c=Math.max(n-s,1),u=Math.min(c*1.2,100);a>=u?(Wy("RETRY",e.name,r),e.apply(null,r.concat([s]))):Jr[Zs].push(t)}YM===void 0&&(YM=setTimeout(Zee,0))}}});var XM=p((yzr,wke)=>{"use strict";var Yf=t=>t!==null&&typeof t=="object"&&typeof t.pipe=="function";Yf.writable=t=>Yf(t)&&t.writable!==!1&&typeof t._write=="function"&&typeof t._writableState=="object";Yf.readable=t=>Yf(t)&&t.readable!==!1&&typeof t._read=="function"&&typeof t._readableState=
Line truncated
|
||||
`;super(r),this.name="AggregateError",this.errors=e}};Ute.exports={AggregateError:Fte,kEmptyObject:Object.freeze({}),once(t){let e=!1;return function(...r){e||(e=!0,t.apply(this,r))}},createDeferredPromise:function(){let t,e;return{promise:new Promise((i,s)=>{t=i,e=s}),resolve:t,reject:e}},promisify(t){return new Promise((e,r)=>{t((i,...s)=>i?r(i):e(...s))})},debuglog(){return function(){}},format(t,...e){return t.replace(/%([sdifj])/g,function(...[r,i]){let s=e.shift();return i==="f"?s.toFixed(6):i==="j"?JSON.stringify(s):i==="s"&&typeof s=="object"?`${s.constructor!==Object?s.constructor.name:""} {}`.trim():s.toString()})},inspect(t){switch(typeof t){case"string":if(t.includes("'"))if(t.includes('"')){if(!t.includes("`")&&!t.includes("${"))return`\`${t}\``}else return`"${t}"`;return`'${t}'`;case"number":return isNaN(t)?"NaN":Object.is(t,-0)?String(t):t;case"bigint":return`${String(t)}n`;case"boolean":case"undefined":return String(t);case"object":return"{}"}},types:{isAsyncFunction(t){return t instanceof v5t},isArrayBufferView(t){return ArrayBuffer.isView(t)}},isBlob:x5t,deprecate(t,e){return t},addAbortListener:require("events").addAbortListener||function(e,r){if(e===void 0)throw new ERR_INVALID_ARG_TYPE("signal","AbortSignal",e);dFe(e,"signal"),_5t(r,"listener");let i;return e.aborted?queueMicrotask(()=>r()):(e.addEventListener("abort",r,{__proto__:null,once:!0,[C5t]:!0}),i=()=>{e.removeEventListener("abort",r)}),{__proto__:null,[I5t](){var s;(s=i)===null||s===void 0||s()}}},AbortSignalAny:S5t.any||function(e){if(e.length===1)return e[0];let r=new B5t,i=()=>r.abort();return e.forEach(s=>{dFe(s,"signals"),s.addEventListener("abort",i,{once:!0})}),r.signal.addEventListener("abort",()=>{e.forEach(s=>s.removeEventListener("abort",i))},{once:!0}),r.signal}};Ute.exports.promisify.custom=Symbol.for("nodejs.util.promisify.custom")});var mo=p((R9r,AFe)=>{"use strict";var{format:R5t,inspect:bF,AggregateError:T5t}=Bn(),N5t=globalThis.AggregateError||T5t,D5t=Symbol("kIsNodeError"),O5t=["string","function","number","object","Function","Object","boolean","bigint","symbol"],P5t=/^([A-Z][a-z0-9]*)+$/,Q5t="__node_internal_",wF={};function Ky(t,e){if(!t)throw new wF.ERR_INTERNAL_ASSERTION(e)}function pFe(t){let e="",r=t.length,i=t[0]==="-"?1:0;for(;r>=i+4;r-=3)e=`_${t.slice(r-3,r)}${e}`;return`${t.slice(0,r)}${e}`}function k5t(t,e,r){if(typeof e=="function")return Ky(e.length<=r.length,`Code: ${t}; The provided arguments length (${r.length}) does not match the required ones (${e.length}).`),e(...r);let i=(e.match(/%[dfijoOs]/g)||[]).length;return Ky(i===r.length,`Code: ${t}; The provided arguments length (${r.length}) does not match the required ones (${i}).`),r.length===0?e:R5t(e,...r)}function tn(t,e,r){r||(r=Error);class i extends r{constructor(...n){super(k5t(t,e,n))}toString(){return`${this.name} [${t}]: ${this.message}`}}Object.defineProperties(i.prototype,{name:{value:r.name,writable:!0,enumerable:!1,configurable:!0},toString:{value(){return`${this.name} [${t}]: ${this.message}`},writable:!0,enumerable:!1,configurable:!0}}),i.prototype.code=t,i.prototype[D5t]=!0,wF[t]=i}function mFe(t){let e=Q5t+t.name;return Object.defineProperty(t,"name",{value:e}),t}function L5t(t,e){if(t&&e&&t!==e){if(Array.isArray(e.errors))return e.errors.push(t),e;let r=new N5t([e,t],e.message);return r.code=e.code,r}return t||e}var qte=class extends Error{constructor(e="The operation was aborted",r=void 0){if(r!==void 0&&typeof r!="object")throw new wF.ERR_INVALID_ARG_TYPE("options","Object",r);super(e,r),this.code="ABORT_ERR",this.name="AbortError"}};tn("ERR_ASSERTION","%s",Error);tn("ERR_INVALID_ARG_TYPE",(t,e,r)=>{Ky(typeof t=="string","'name' must be a string"),Array.isArray(e)||(e=[e]);let i="The ";t.endsWith(" argument")?i+=`${t} `:i+=`"${t}" ${t.includes(".")?"property":"argument"} `,i+="must be ";let s=[],n=[],o=[];for(let c of e)Ky(typeof c=="string","All expected entries have to be of type string"),O5t.includes(c)?s.push(c.toLowerCase()):P5t.test(c)?n.push(c):(Ky(c!=="object",'The value "object" should be written as "Object"'),o.push(c));if(n.length>0){let c=s.indexOf("object");c!==-1&&(s.splice(s,c,1),n.push("Object"))}if(s.length>0){switch(s.length){case 1:i+=`of type ${s[0]}`;break;case 2:i+=`one of type ${s[0]} or ${s[1]}`;break;default:{let c=s.pop();i+=`one of type ${s.join(", ")}, or ${c}`}}(n.length>0||o.length>0)&&(i+=" or ")}if(n.length>0){switch(n.length){case 1:i+=`an instance of ${n[0]}`;break;case 2:i+=`an instance of ${n[0]} or ${n[1]}`;break;default:{let c=n.pop();i+=`an instance of ${n.join(", ")}, or ${c}`}}o.length>0&&(i+=" or ")}switch(o.length){case 0:break;case 1:o[0].toLowerCase()!==o[0]&&(i+="an "),i+=`${o[0]}`;break;case 2:i+=`one of ${o[0]} or ${o[1]}`;break;default:{let c=o.pop();i+=`one of ${o.join(", ")}, or ${c}`}}if(r==null)i+=`. Received ${r}`;else if(typeof r=="function"&&r.name)i+=`. Received function ${r.name}`;else if(typeof r=="object"){var a;if((a=r.constructor)!==null&&a!==void 0&&a.name)i+=Line truncated
|
||||
`)),e.linkname&&(r+=gse(" linkpath="+e.linkname+`
|
||||
`));let i=e.pax;if(i)for(let s in i)r+=gse(" "+s+"="+i[s]+`
|
||||
`);return Ht.from(r)};yI.decodePax=function(e){let r={};for(;e.length;){let i=0;for(;i<e.length&&e[i]!==32;)i++;let s=parseInt(Ht.toString(e.subarray(0,i)),10);if(!s)return r;let n=Ht.toString(e.subarray(i+1,s-1)),o=n.indexOf("=");if(o===-1)return r;r[n.slice(0,o)]=n.slice(o+1),e=e.subarray(s)}return r};yI.encode=function(e){let r=Ht.alloc(512),i=e.name,s="";if(e.typeflag===5&&i[i.length-1]!=="/"&&(i+="/"),Ht.byteLength(i)!==i.length)return null;for(;Ht.byteLength(i)>100;){let n=i.indexOf("/");if(n===-1)return null;s+=s?"/"+i.slice(0,n):i.slice(0,n),i=i.slice(n+1)}return Ht.byteLength(i)>100||Ht.byteLength(s)>155||e.linkname&&Ht.byteLength(e.linkname)>100?null:(Ht.write(r,i),Ht.write(r,pA(e.mode&ZJt,6),100),Ht.write(r,pA(e.uid,6),108),Ht.write(r,pA(e.gid,6),116),oYt(e.size,r,124),Ht.write(r,pA(e.mtime.getTime()/1e3|0,11),136),r[156]=KU+sYt(e.type),e.linkname&&Ht.write(r,e.linkname,157),Ht.copy(mGe,r,ET),Ht.copy(YJt,r,yse),e.uname&&Ht.write(r,e.uname,265),e.gname&&Ht.write(r,e.gname,297),Ht.write(r,pA(e.devmajor||0,6),329),Ht.write(r,pA(e.devminor||0,6),337),s&&Ht.write(r,s,345),Ht.write(r,pA(gGe(r),6),148),r)};yI.decode=function(e,r,i){let s=e[156]===0?0:e[156]-KU,n=gI(e,0,100,r),o=dA(e,100,8),a=dA(e,108,8),c=dA(e,116,8),u=dA(e,124,12),l=dA(e,136,12),f=iYt(s),h=e[157]===0?null:gI(e,157,100,r),d=gI(e,265,32),m=gI(e,297,32),A=dA(e,329,8),y=dA(e,337,8),g=gGe(e);if(g===256)return null;if(g!==dA(e,148,8))throw new Error("Invalid tar header. Maybe the tar is corrupted or it needs to be gunzipped?");if(eYt(e))e[345]&&(n=gI(e,345,155,r)+"/"+n);else if(!tYt(e)){if(!i)throw new Error("Invalid tar header: unknown format.")}return s===0&&n&&n[n.length-1]==="/"&&(s=5),{name:n,mode:o,uid:a,gid:c,size:u,mtime:new Date(1e3*l),type:f,linkname:h,uname:d,gname:m,devmajor:A,devminor:y,pax:null}};function eYt(t){return Ht.equals(mGe,t.subarray(ET,ET+6))}function tYt(t){return Ht.equals(KJt,t.subarray(ET,ET+6))&&Ht.equals(XJt,t.subarray(yse,yse+2))}function rYt(t,e,r){return typeof t!="number"?r:(t=~~t,t>=e?e:t>=0||(t+=e,t>=0)?t:0)}function iYt(t){switch(t){case 0:return"file";case 1:return"link";case 2:return"symlink";case 3:return"character-device";case 4:return"block-device";case 5:return"directory";case 6:return"fifo";case 7:return"contiguous-file";case 72:return"pax-header";case 55:return"pax-global-header";case 27:return"gnu-long-link-path";case 28:case 30:return"gnu-long-path"}return null}function sYt(t){switch(t){case"file":return 0;case"link":return 1;case"symlink":return 2;case"character-device":return 3;case"block-device":return 4;case"directory":return 5;case"fifo":return 6;case"contiguous-file":return 7;case"pax-header":return 72}return 0}function AGe(t,e,r,i){for(;r<i;r++)if(t[r]===e)return r;return i}function gGe(t){let e=256;for(let r=0;r<148;r++)e+=t[r];for(let r=156;r<512;r++)e+=t[r];return e}function pA(t,e){return t=t.toString(8),t.length>e?JJt.slice(0,e)+" ":WJt.slice(0,e-t.length)+t+" "}function nYt(t,e,r){e[r]=128;for(let i=11;i>0;i--)e[r+i]=t&255,t=Math.floor(t/256)}function oYt(t,e,r){t.toString(8).length>11?nYt(t,e,r):Ht.write(e,pA(t,11),r)}function aYt(t){let e;if(t[0]===128)e=!0;else if(t[0]===255)e=!1;else return null;let r=[],i;for(i=t.length-1;i>0;i--){let o=t[i];e?r.push(o):r.push(255-o)}let s=0,n=r.length;for(i=0;i<n;i++)s+=r[i]*Math.pow(256,i);return e?s:-1*s}function dA(t,e,r){if(t=t.subarray(e,e+r),e=0,t[e]&128)return aYt(t);{for(;e<t.length&&t[e]===32;)e++;let i=rYt(AGe(t,32,e,t.length),t.length,t.length);for(;e<i&&t[e]===0;)e++;return i===e?0:parseInt(Ht.toString(t.subarray(e,i)),8)}}function gI(t,e,r,i){return Ht.toString(t.subarray(e,AGe(t,0,e,e+r)),i)}function gse(t){let e=Ht.byteLength(t),r=Math.floor(Math.log(e)/Math.log(10))+1;return e+r>=Math.pow(10,r)&&r++,e+r+t}});var CGe=p((J$r,wGe)=>{var{Writable:cYt,Readable:uYt,getStreamError:yGe}=Ase(),lYt=ese(),EGe=YU(),EI=Ese(),fYt=EGe.alloc(0),wse=class{constructor(){this.buffered=0,this.shifted=0,this.queue=new lYt,this._offset=0}push(e){this.buffered+=e.byteLength,this.queue.push(e)}shiftFirst(e){return this._buffered===0?null:this._next(e)}shift(e){if(e>this.buffered)return null;if(e===0)return fYt;let r=this._next(e);if(e===r.byteLength)return r;let i=[r];for(;(e-=r.byteLength)>0;)r=this._next(e),i.push(r);return EGe.concat(i)}_next(e){let r=this.queue.peek(),i=r.byteLength-this._offset;if(e>=i){let s=this._offset?r.subarray(this._offset,r.byteLength):r;return this.queue.shift(),this._offset=0,this.buffered-=i,this.shifted+=i,s}return this.buffered-=e,this.shifted+=e,r.subarray(this._offset,this._offset+=e)}},Cse=class extends uYt{constructor(e,r,i){super(),this.header=r,this.offset=i,this._parent=e}_read(e){this.header.size===0&&this.push(null),this._parent._stream===this&&this._parent._update(),e(null)}_predestroy(){this._parent.destroy(yGe(this))}_detach(){this._parent._stream===this&&(this._parent._stream=null,this._parent._missing=bGe(this.header.size),this._parent._update())}_destroy(e){this._detach(),e(null)}},Ise=class extends c
Line truncated
|
||||
`,nexist:"\u2204",nexists:"\u2204",nfr:"\u{1D52B}",Nfr:"\u{1D511}",nge:"\u2271",ngE:"\u2267\u0338",ngeq:"\u2271",ngeqq:"\u2267\u0338",ngeqslant:"\u2A7E\u0338",nges:"\u2A7E\u0338",nGg:"\u22D9\u0338",ngsim:"\u2275",ngt:"\u226F",nGt:"\u226B\u20D2",ngtr:"\u226F",nGtv:"\u226B\u0338",nharr:"\u21AE",nhArr:"\u21CE",nhpar:"\u2AF2",ni:"\u220B",nis:"\u22FC",nisd:"\u22FA",niv:"\u220B",njcy:"\u045A",NJcy:"\u040A",nlarr:"\u219A",nlArr:"\u21CD",nldr:"\u2025",nle:"\u2270",nlE:"\u2266\u0338",nleftarrow:"\u219A",nLeftarrow:"\u21CD",nleftrightarrow:"\u21AE",nLeftrightarrow:"\u21CE",nleq:"\u2270",nleqq:"\u2266\u0338",nleqslant:"\u2A7D\u0338",nles:"\u2A7D\u0338",nless:"\u226E",nLl:"\u22D8\u0338",nlsim:"\u2274",nlt:"\u226E",nLt:"\u226A\u20D2",nltri:"\u22EA",nltrie:"\u22EC",nLtv:"\u226A\u0338",nmid:"\u2224",NoBreak:"\u2060",NonBreakingSpace:"\xA0",nopf:"\u{1D55F}",Nopf:"\u2115",not:"\xAC",Not:"\u2AEC",NotCongruent:"\u2262",NotCupCap:"\u226D",NotDoubleVerticalBar:"\u2226",NotElement:"\u2209",NotEqual:"\u2260",NotEqualTilde:"\u2242\u0338",NotExists:"\u2204",NotGreater:"\u226F",NotGreaterEqual:"\u2271",NotGreaterFullEqual:"\u2267\u0338",NotGreaterGreater:"\u226B\u0338",NotGreaterLess:"\u2279",NotGreaterSlantEqual:"\u2A7E\u0338",NotGreaterTilde:"\u2275",NotHumpDownHump:"\u224E\u0338",NotHumpEqual:"\u224F\u0338",notin:"\u2209",notindot:"\u22F5\u0338",notinE:"\u22F9\u0338",notinva:"\u2209",notinvb:"\u22F7",notinvc:"\u22F6",NotLeftTriangle:"\u22EA",NotLeftTriangleBar:"\u29CF\u0338",NotLeftTriangleEqual:"\u22EC",NotLess:"\u226E",NotLessEqual:"\u2270",NotLessGreater:"\u2278",NotLessLess:"\u226A\u0338",NotLessSlantEqual:"\u2A7D\u0338",NotLessTilde:"\u2274",NotNestedGreaterGreater:"\u2AA2\u0338",NotNestedLessLess:"\u2AA1\u0338",notni:"\u220C",notniva:"\u220C",notnivb:"\u22FE",notnivc:"\u22FD",NotPrecedes:"\u2280",NotPrecedesEqual:"\u2AAF\u0338",NotPrecedesSlantEqual:"\u22E0",NotReverseElement:"\u220C",NotRightTriangle:"\u22EB",NotRightTriangleBar:"\u29D0\u0338",NotRightTriangleEqual:"\u22ED",NotSquareSubset:"\u228F\u0338",NotSquareSubsetEqual:"\u22E2",NotSquareSuperset:"\u2290\u0338",NotSquareSupersetEqual:"\u22E3",NotSubset:"\u2282\u20D2",NotSubsetEqual:"\u2288",NotSucceeds:"\u2281",NotSucceedsEqual:"\u2AB0\u0338",NotSucceedsSlantEqual:"\u22E1",NotSucceedsTilde:"\u227F\u0338",NotSuperset:"\u2283\u20D2",NotSupersetEqual:"\u2289",NotTilde:"\u2241",NotTildeEqual:"\u2244",NotTildeFullEqual:"\u2247",NotTildeTilde:"\u2249",NotVerticalBar:"\u2224",npar:"\u2226",nparallel:"\u2226",nparsl:"\u2AFD\u20E5",npart:"\u2202\u0338",npolint:"\u2A14",npr:"\u2280",nprcue:"\u22E0",npre:"\u2AAF\u0338",nprec:"\u2280",npreceq:"\u2AAF\u0338",nrarr:"\u219B",nrArr:"\u21CF",nrarrc:"\u2933\u0338",nrarrw:"\u219D\u0338",nrightarrow:"\u219B",nRightarrow:"\u21CF",nrtri:"\u22EB",nrtrie:"\u22ED",nsc:"\u2281",nsccue:"\u22E1",nsce:"\u2AB0\u0338",nscr:"\u{1D4C3}",Nscr:"\u{1D4A9}",nshortmid:"\u2224",nshortparallel:"\u2226",nsim:"\u2241",nsime:"\u2244",nsimeq:"\u2244",nsmid:"\u2224",nspar:"\u2226",nsqsube:"\u22E2",nsqsupe:"\u22E3",nsub:"\u2284",nsube:"\u2288",nsubE:"\u2AC5\u0338",nsubset:"\u2282\u20D2",nsubseteq:"\u2288",nsubseteqq:"\u2AC5\u0338",nsucc:"\u2281",nsucceq:"\u2AB0\u0338",nsup:"\u2285",nsupe:"\u2289",nsupE:"\u2AC6\u0338",nsupset:"\u2283\u20D2",nsupseteq:"\u2289",nsupseteqq:"\u2AC6\u0338",ntgl:"\u2279",ntilde:"\xF1",Ntilde:"\xD1",ntlg:"\u2278",ntriangleleft:"\u22EA",ntrianglelefteq:"\u22EC",ntriangleright:"\u22EB",ntrianglerighteq:"\u22ED",nu:"\u03BD",Nu:"\u039D",num:"#",numero:"\u2116",numsp:"\u2007",nvap:"\u224D\u20D2",nvdash:"\u22AC",nvDash:"\u22AD",nVdash:"\u22AE",nVDash:"\u22AF",nvge:"\u2265\u20D2",nvgt:">\u20D2",nvHarr:"\u2904",nvinfin:"\u29DE",nvlArr:"\u2902",nvle:"\u2264\u20D2",nvlt:"<\u20D2",nvltrie:"\u22B4\u20D2",nvrArr:"\u2903",nvrtrie:"\u22B5\u20D2",nvsim:"\u223C\u20D2",nwarhk:"\u2923",nwarr:"\u2196",nwArr:"\u21D6",nwarrow:"\u2196",nwnear:"\u2927",oacute:"\xF3",Oacute:"\xD3",oast:"\u229B",ocir:"\u229A",ocirc:"\xF4",Ocirc:"\xD4",ocy:"\u043E",Ocy:"\u041E",odash:"\u229D",odblac:"\u0151",Odblac:"\u0150",odiv:"\u2A38",odot:"\u2299",odsold:"\u29BC",oelig:"\u0153",OElig:"\u0152",ofcir:"\u29BF",ofr:"\u{1D52C}",Ofr:"\u{1D512}",ogon:"\u02DB",ograve:"\xF2",Ograve:"\xD2",ogt:"\u29C1",ohbar:"\u29B5",ohm:"\u03A9",oint:"\u222E",olarr:"\u21BA",olcir:"\u29BE",olcross:"\u29BB",oline:"\u203E",olt:"\u29C0",omacr:"\u014D",Omacr:"\u014C",omega:"\u03C9",Omega:"\u03A9",omicron:"\u03BF",Omicron:"\u039F",omid:"\u29B6",ominus:"\u2296",oopf:"\u{1D560}",Oopf:"\u{1D546}",opar:"\u29B7",OpenCurlyDoubleQuote:"\u201C",OpenCurlyQuote:"\u2018",operp:"\u29B9",oplus:"\u2295",or:"\u2228",Or:"\u2A54",orarr:"\u21BB",ord:"\u2A5D",order:"\u2134",orderof:"\u2134",ordf:"\xAA",ordm:"\xBA",origof:"\u22B6",oror:"\u2A56",orslope:"\u2A57",orv:"\u2A5B",oS:"\u24C8",oscr:"\u2134",Oscr:"\u{1D4AA}",oslash:"\xF8",Oslash:"\xD8",osol:"\u2298",otilde:"\xF5",Otilde:"\xD5",otimes:"\u2297",Otimes:"\u2A37",otimesas:"\u2A36",ouml:"\xF6",Ouml:"\xD6",ovbar:"\u233D",OverBar:"\u203E",OverBrace:"\u23DE",OverBracket:"\u23B4
Line truncated
|
||||
`).forEach(r=>{r.match(OZt)||r.match(PZt)||(e+=r)}),Buffer.from(e,"base64")}function kZt(t,e="CERTIFICATE"){let i=t.toString("base64").match(/.{1,64}/g)||"";return[`-----BEGIN ${e}-----`,...i,`-----END ${e}-----`].join(`
|
||||
`+I);let[,P]=x;return P.replace(/\s/g,"").split(F0).map(M=>M.replace(pg,"").trim())}function Zp(v,I){var x={};return Object.keys(v).forEach(P=>{var M=v[P],G,V=d(M),W=!V&&M.length===1||V&&M.length===0;if(Array.isArray(M))G=[...M],M=G.pop(),x[P]=G.concat(G.length>0?ee:M);else if(W)x[P]=M;else{if(G=M0(M),M.length===0&&!V&&G.length===0)throw new Error("autoInject task functions require explicit parameters.");V||G.pop(),x[P]=G.concat(ee)}function ee(De,Qt){var jt=G.map(Lt=>De[Lt]);jt.push(Qt),y(M)(...jt)}}),Ql(x,I)}class U0{constructor(){this.head=this.tail=null,this.length=0}removeLink(I){return I.prev?I.prev.next=I.next:this.head=I.next,I.next?I.next.prev=I.prev:this.tail=I.prev,I.prev=I.next=null,this.length-=1,I}empty(){for(;this.head;)this.shift();return this}insertAfter(I,x){x.prev=I,x.next=I.next,I.next?I.next.prev=x:this.tail=x,I.next=x,this.length+=1}insertBefore(I,x){x.prev=I.prev,x.next=I,I.prev?I.prev.next=x:this.head=x,I.prev=x,this.length+=1}unshift(I){this.head?this.insertBefore(this.head,I):Ag(this,I)}push(I){this.tail?this.insertAfter(this.tail,I):Ag(this,I)}shift(){return this.head&&this.removeLink(this.head)}pop(){return this.tail&&this.removeLink(this.tail)}toArray(){return[...this]}*[Symbol.iterator](){for(var I=this.head;I;)yield I.data,I=I.next}remove(I){for(var x=this.head;x;){var{next:P}=x;I(x)&&this.removeLink(x),x=P}return this}}function Ag(v,I){v.length=1,v.head=v.tail=I}function em(v,I,x){if(I==null)I=1;else if(I===0)throw new RangeError("Concurrency must not be zero");var P=y(v),M=0,G=[];let V={error:[],drain:[],saturated:[],unsaturated:[],empty:[]};function W(je,Ne){V[je].push(Ne)}function ee(je,Ne){let ze=(...Ft)=>{De(je,ze),Ne(...Ft)};V[je].push(ze)}function De(je,Ne){if(!je)return Object.keys(V).forEach(ze=>V[ze]=[]);if(!Ne)return V[je]=[];V[je]=V[je].filter(ze=>ze!==Ne)}function Qt(je,...Ne){V[je].forEach(ze=>ze(...Ne))}var jt=!1;function Lt(je,Ne,ze,Ft){if(Ft!=null&&typeof Ft!="function")throw new Error("task callback must be a function");zt.started=!0;var Pr,ls;function wc(xg,...GB){if(xg)return ze?ls(xg):Pr();if(GB.length<=1)return Pr(GB[0]);Pr(GB)}var tb=zt._createTaskItem(je,ze?wc:Ft||wc);if(Ne?zt._tasks.unshift(tb):zt._tasks.push(tb),jt||(jt=!0,u(()=>{jt=!1,zt.process()})),ze||!Ft)return new Promise((xg,GB)=>{Pr=xg,ls=GB})}function bc(je){return function(Ne,...ze){M-=1;for(var Ft=0,Pr=je.length;Ft<Pr;Ft++){var ls=je[Ft],wc=G.indexOf(ls);wc===0?G.shift():wc>0&&G.splice(wc,1),ls.callback(Ne,...ze),Ne!=null&&Qt("error",Ne,ls.data)}M<=zt.concurrency-zt.buffer&&Qt("unsaturated"),zt.idle()&&Qt("drain"),zt.process()}}function eb(je){return je.length===0&&zt.idle()?(u(()=>Qt("drain")),!0):!1}let vg=je=>Ne=>{if(!Ne)return new Promise((ze,Ft)=>{ee(je,(Pr,ls)=>{if(Pr)return Ft(Pr);ze(ls)})});De(je),W(je,Ne)};var qB=!1,zt={_tasks:new U0,_createTaskItem(je,Ne){return{data:je,callback:Ne}},*[Symbol.iterator](){yield*zt._tasks[Symbol.iterator]()},concurrency:I,payload:x,buffer:I/4,started:!1,paused:!1,push(je,Ne){return Array.isArray(je)?eb(je)?void 0:je.map(ze=>Lt(ze,!1,!1,Ne)):Lt(je,!1,!1,Ne)},pushAsync(je,Ne){return Array.isArray(je)?eb(je)?void 0:je.map(ze=>Lt(ze,!1,!0,Ne)):Lt(je,!1,!0,Ne)},kill(){De(),zt._tasks.empty()},unshift(je,Ne){return Array.isArray(je)?eb(je)?void 0:je.map(ze=>Lt(ze,!0,!1,Ne)):Lt(je,!0,!1,Ne)},unshiftAsync(je,Ne){return Array.isArray(je)?eb(je)?void 0:je.map(ze=>Lt(ze,!0,!0,Ne)):Lt(je,!0,!0,Ne)},remove(je){zt._tasks.remove(je)},process(){if(!qB){for(qB=!0;!zt.paused&&M<zt.concurrency&&zt._tasks.length;){var je=[],Ne=[],ze=zt._tasks.length;zt.payload&&(ze=Math.min(ze,zt.payload));for(var Ft=0;Ft<ze;Ft++){var Pr=zt._tasks.shift();je.push(Pr),G.push(Pr),Ne.push(Pr.data)}M+=1,zt._tasks.length===0&&Qt("empty"),M===zt.concurrency&&Qt("saturated");var ls=J(bc(je));P(Ne,ls)}qB=!1}},length(){return zt._tasks.length},running(){return M},workersList(){return G},idle(){return zt._tasks.length+M===0},pause(){zt.paused=!0},resume(){zt.paused!==!1&&(zt.paused=!1,u(zt.process))}};return Object.defineProperties(zt,{saturated:{writable:!1,value:vg("saturated")},unsaturated:{writable:!1,value:vg("unsaturated")},empty:{writable:!1,value:vg("empty")},drain:{writable:!1,value:vg("drain")},error:{writable:!1,value:vg("error")}}),zt}function tm(v,I){return em(v,1,I)}function Yn(v,I,x){return em(v,I,x)}function q0(v,I,x,P){P=T(P);var M=y(x);return Vr(v,(G,V,W)=>{M(I,G,(ee,De)=>{I=De,W(ee)})},G=>P(G,I))}var wa=g(q0,4);function gg(...v){var I=v.map(y);return function(...x){var P=this,M=x[x.length-1];return typeof M=="function"?x.pop():M=ba(),wa(I,x,(G,V,W)=>{V.apply(P,G.concat((ee,...De)=>{W(ee,De)}))},(G,V)=>M(G,...V)),M[un]}}function Be(...v){return gg(...v.reverse())}function U(v,I,x,P){return w(he(I),v,x,P)}var R=g(U,4);function H(v,I,x,P){var M=y(x);return R(v,I,(G,V)=>{M(G,(W,...ee)=>W?V(W):V(W,ee))},(G,V)=>{for(var W=[],ee=0;ee<V.length;ee++)V[ee]&&(W=W.concat(...V[ee]));return P(G,W)})}var z=g(H,4);function K(v,I,x){return z(v,1/0,I,x)}var re=g(K,3);function Se(v,I,x){return
Line truncated
|
||||
GFS4: `),console.error(t)});Jr[Zs]||(Nke=global[Zs]||[],Dke(Jr,Nke),Jr.close=(function(t){function e(r,i){return t.call(Jr,r,function(s){s||Tke(),typeof i=="function"&&i.apply(this,arguments)})}return Object.defineProperty(e,iM,{value:t}),e})(Jr.close),Jr.closeSync=(function(t){function e(r){t.apply(Jr,arguments),Tke()}return Object.defineProperty(e,iM,{value:t}),e})(Jr.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){Yy(Jr[Zs]),require("assert").equal(Jr[Zs].length,0)}));var Nke;global[Zs]||Dke(global,Jr[Zs]);ute.exports=ate(cUt(Jr));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!Jr.__patched&&(ute.exports=ate(Jr),Jr.__patched=!0);function ate(t){oUt(t),t.gracefulify=ate,t.createReadStream=D,t.createWriteStream=q;var e=t.readFile;t.readFile=r;function r(O,j,F){return typeof j=="function"&&(F=j,j=null),Z(O,j,F);function Z(J,Te,he,Qe){return e(J,Te,function(X){X&&(X.code==="EMFILE"||X.code==="ENFILE")?DC([Z,[J,Te,he],X,Qe||Date.now(),Date.now()]):typeof he=="function"&&he.apply(this,arguments)})}}var i=t.writeFile;t.writeFile=s;function s(O,j,F,Z){return typeof F=="function"&&(Z=F,F=null),J(O,j,F,Z);function J(Te,he,Qe,X,Re){return i(Te,he,Qe,function(Ce){Ce&&(Ce.code==="EMFILE"||Ce.code==="ENFILE")?DC([J,[Te,he,Qe,X],Ce,Re||Date.now(),Date.now()]):typeof X=="function"&&X.apply(this,arguments)})}}var n=t.appendFile;n&&(t.appendFile=o);function o(O,j,F,Z){return typeof F=="function"&&(Z=F,F=null),J(O,j,F,Z);function J(Te,he,Qe,X,Re){return n(Te,he,Qe,function(Ce){Ce&&(Ce.code==="EMFILE"||Ce.code==="ENFILE")?DC([J,[Te,he,Qe,X],Ce,Re||Date.now(),Date.now()]):typeof X=="function"&&X.apply(this,arguments)})}}var a=t.copyFile;a&&(t.copyFile=c);function c(O,j,F,Z){return typeof F=="function"&&(Z=F,F=0),J(O,j,F,Z);function J(Te,he,Qe,X,Re){return a(Te,he,Qe,function(Ce){Ce&&(Ce.code==="EMFILE"||Ce.code==="ENFILE")?DC([J,[Te,he,Qe,X],Ce,Re||Date.now(),Date.now()]):typeof X=="function"&&X.apply(this,arguments)})}}var u=t.readdir;t.readdir=f;var l=/^v[0-5]\./;function f(O,j,F){typeof j=="function"&&(F=j,j=null);var Z=l.test(process.version)?function(he,Qe,X,Re){return u(he,J(he,Qe,X,Re))}:function(he,Qe,X,Re){return u(he,Qe,J(he,Qe,X,Re))};return Z(O,j,F);function J(Te,he,Qe,X){return function(Re,Ce){Re&&(Re.code==="EMFILE"||Re.code==="ENFILE")?DC([Z,[Te,he,Qe],Re,X||Date.now(),Date.now()]):(Ce&&Ce.sort&&Ce.sort(),typeof Qe=="function"&&Qe.call(this,Re,Ce))}}}if(process.version.substr(0,4)==="v0.8"){var h=aUt(t);g=h.ReadStream,w=h.WriteStream}var d=t.ReadStream;d&&(g.prototype=Object.create(d.prototype),g.prototype.open=E);var m=t.WriteStream;m&&(w.prototype=Object.create(m.prototype),w.prototype.open=S),Object.defineProperty(t,"ReadStream",{get:function(){return g},set:function(O){g=O},enumerable:!0,configurable:!0}),Object.defineProperty(t,"WriteStream",{get:function(){return w},set:function(O){w=O},enumerable:!0,configurable:!0});var A=g;Object.defineProperty(t,"FileReadStream",{get:function(){return A},set:function(O){A=O},enumerable:!0,configurable:!0});var y=w;Object.defineProperty(t,"FileWriteStream",{get:function(){return y},set:function(O){y=O},enumerable:!0,configurable:!0});function g(O,j){return this instanceof g?(d.apply(this,arguments),this):g.apply(Object.create(g.prototype),arguments)}function E(){var O=this;$(O.path,O.flags,O.mode,function(j,F){j?(O.autoClose&&O.destroy(),O.emit("error",j)):(O.fd=F,O.emit("open",F),O.read())})}function w(O,j){return this instanceof w?(m.apply(this,arguments),this):w.apply(Object.create(w.prototype),arguments)}function S(){var O=this;$(O.path,O.flags,O.mode,function(j,F){j?(O.destroy(),O.emit("error",j)):(O.fd=F,O.emit("open",F))})}function D(O,j){return new t.ReadStream(O,j)}function q(O,j){return new t.WriteStream(O,j)}var T=t.open;t.open=$;function $(O,j,F,Z){return typeof F=="function"&&(Z=F,F=null),J(O,j,F,Z);function J(Te,he,Qe,X,Re){return T(Te,he,Qe,function(Ce,_t){Ce&&(Ce.code==="EMFILE"||Ce.code==="ENFILE")?DC([J,[Te,he,Qe,X],Ce,Re||Date.now(),Date.now()]):typeof X=="function"&&X.apply(this,arguments)})}}return t}function DC(t){Yy("ENQUEUE",t[0].name,t[1]),Jr[Zs].push(t),cte()}var rM;function Tke(){for(var t=Date.now(),e=0;e<Jr[Zs].length;++e)Jr[Zs][e].length>2&&(Jr[Zs][e][3]=t,Jr[Zs][e][4]=t);cte()}function cte(){if(clearTimeout(rM),rM=void 0,Jr[Zs].length!==0){var t=Jr[Zs].shift(),e=t[0],r=t[1],i=t[2],s=t[3],n=t[4];if(s===void 0)Yy("RETRY",e.name,r),e.apply(null,r);else if(Date.now()-s>=6e4){Yy("TIMEOUT",e.name,r);var o=r.pop();typeof o=="function"&&o.call(null,i)}else{var a=Date.now()-n,c=Math.max(n-s,1),u=Math.min(c*1.2,100);a>=u?(Yy("RETRY",e.name,r),e.apply(null,r.concat([s]))):Jr[Zs].push(t)}rM===void 0&&(rM=setTimeout(cte,0))}}});var sM=p((Wzr,Oke)=>{"use strict";var Jf=t=>t!==null&&typeof t=="object"&&typeof t.pipe=="function";Jf.writable=t=>Jf(t)&&t.writable!==!1&&typeof t._write=="function"&&typeof t._writableState=="object";Jf.readable=t=>Jf(t)&&t.readable!==!1&&typeof t._read=="function"&&typeof t._readableState=
Line truncated
|
||||
`;super(r),this.name="AggregateError",this.errors=e}};Jte.exports={AggregateError:Wte,kEmptyObject:Object.freeze({}),once(t){let e=!1;return function(...r){e||(e=!0,t.apply(this,r))}},createDeferredPromise:function(){let t,e;return{promise:new Promise((i,s)=>{t=i,e=s}),resolve:t,reject:e}},promisify(t){return new Promise((e,r)=>{t((i,...s)=>i?r(i):e(...s))})},debuglog(){return function(){}},format(t,...e){return t.replace(/%([sdifj])/g,function(...[r,i]){let s=e.shift();return i==="f"?s.toFixed(6):i==="j"?JSON.stringify(s):i==="s"&&typeof s=="object"?`${s.constructor!==Object?s.constructor.name:""} {}`.trim():s.toString()})},inspect(t){switch(typeof t){case"string":if(t.includes("'"))if(t.includes('"')){if(!t.includes("`")&&!t.includes("${"))return`\`${t}\``}else return`"${t}"`;return`'${t}'`;case"number":return isNaN(t)?"NaN":Object.is(t,-0)?String(t):t;case"bigint":return`${String(t)}n`;case"boolean":case"undefined":return String(t);case"object":return"{}"}},types:{isAsyncFunction(t){return t instanceof z5t},isArrayBufferView(t){return ArrayBuffer.isView(t)}},isBlob:V5t,deprecate(t,e){return t},addAbortListener:require("events").addAbortListener||function(e,r){if(e===void 0)throw new ERR_INVALID_ARG_TYPE("signal","AbortSignal",e);BMe(e,"signal"),$5t(r,"listener");let i;return e.aborted?queueMicrotask(()=>r()):(e.addEventListener("abort",r,{__proto__:null,once:!0,[q5t]:!0}),i=()=>{e.removeEventListener("abort",r)}),{__proto__:null,[G5t](){var s;(s=i)===null||s===void 0||s()}}},AbortSignalAny:H5t.any||function(e){if(e.length===1)return e[0];let r=new j5t,i=()=>r.abort();return e.forEach(s=>{BMe(s,"signals"),s.addEventListener("abort",i,{once:!0})}),r.signal.addEventListener("abort",()=>{e.forEach(s=>s.removeEventListener("abort",i))},{once:!0}),r.signal}};Jte.exports.promisify.custom=Symbol.for("nodejs.util.promisify.custom")});var mo=p((nVr,_Me)=>{"use strict";var{format:W5t,inspect:vM,AggregateError:J5t}=Bn(),Y5t=globalThis.AggregateError||J5t,K5t=Symbol("kIsNodeError"),X5t=["string","function","number","object","Function","Object","boolean","bigint","symbol"],Z5t=/^([A-Z][a-z0-9]*)+$/,e8t="__node_internal_",xM={};function Zy(t,e){if(!t)throw new xM.ERR_INTERNAL_ASSERTION(e)}function vMe(t){let e="",r=t.length,i=t[0]==="-"?1:0;for(;r>=i+4;r-=3)e=`_${t.slice(r-3,r)}${e}`;return`${t.slice(0,r)}${e}`}function t8t(t,e,r){if(typeof e=="function")return Zy(e.length<=r.length,`Code: ${t}; The provided arguments length (${r.length}) does not match the required ones (${e.length}).`),e(...r);let i=(e.match(/%[dfijoOs]/g)||[]).length;return Zy(i===r.length,`Code: ${t}; The provided arguments length (${r.length}) does not match the required ones (${i}).`),r.length===0?e:W5t(e,...r)}function tn(t,e,r){r||(r=Error);class i extends r{constructor(...n){super(t8t(t,e,n))}toString(){return`${this.name} [${t}]: ${this.message}`}}Object.defineProperties(i.prototype,{name:{value:r.name,writable:!0,enumerable:!1,configurable:!0},toString:{value(){return`${this.name} [${t}]: ${this.message}`},writable:!0,enumerable:!1,configurable:!0}}),i.prototype.code=t,i.prototype[K5t]=!0,xM[t]=i}function xMe(t){let e=e8t+t.name;return Object.defineProperty(t,"name",{value:e}),t}function r8t(t,e){if(t&&e&&t!==e){if(Array.isArray(e.errors))return e.errors.push(t),e;let r=new Y5t([e,t],e.message);return r.code=e.code,r}return t||e}var Yte=class extends Error{constructor(e="The operation was aborted",r=void 0){if(r!==void 0&&typeof r!="object")throw new xM.ERR_INVALID_ARG_TYPE("options","Object",r);super(e,r),this.code="ABORT_ERR",this.name="AbortError"}};tn("ERR_ASSERTION","%s",Error);tn("ERR_INVALID_ARG_TYPE",(t,e,r)=>{Zy(typeof t=="string","'name' must be a string"),Array.isArray(e)||(e=[e]);let i="The ";t.endsWith(" argument")?i+=`${t} `:i+=`"${t}" ${t.includes(".")?"property":"argument"} `,i+="must be ";let s=[],n=[],o=[];for(let c of e)Zy(typeof c=="string","All expected entries have to be of type string"),X5t.includes(c)?s.push(c.toLowerCase()):Z5t.test(c)?n.push(c):(Zy(c!=="object",'The value "object" should be written as "Object"'),o.push(c));if(n.length>0){let c=s.indexOf("object");c!==-1&&(s.splice(s,c,1),n.push("Object"))}if(s.length>0){switch(s.length){case 1:i+=`of type ${s[0]}`;break;case 2:i+=`one of type ${s[0]} or ${s[1]}`;break;default:{let c=s.pop();i+=`one of type ${s.join(", ")}, or ${c}`}}(n.length>0||o.length>0)&&(i+=" or ")}if(n.length>0){switch(n.length){case 1:i+=`an instance of ${n[0]}`;break;case 2:i+=`an instance of ${n[0]} or ${n[1]}`;break;default:{let c=n.pop();i+=`an instance of ${n.join(", ")}, or ${c}`}}o.length>0&&(i+=" or ")}switch(o.length){case 0:break;case 1:o[0].toLowerCase()!==o[0]&&(i+="an "),i+=`${o[0]}`;break;case 2:i+=`one of ${o[0]} or ${o[1]}`;break;default:{let c=o.pop();i+=`one of ${o.join(", ")}, or ${c}`}}if(r==null)i+=`. Received ${r}`;else if(typeof r=="function"&&r.name)i+=`. Received function ${r.name}`;else if(typeof r=="object"){var a;if((a=r.constructor)!==null&&a!==void 0&&a.name)i+=Line truncated
|
||||
`)),e.linkname&&(r+=vse(" linkpath="+e.linkname+`
|
||||
`));let i=e.pax;if(i)for(let s in i)r+=vse(" "+s+"="+i[s]+`
|
||||
`);return Ht.from(r)};wI.decodePax=function(e){let r={};for(;e.length;){let i=0;for(;i<e.length&&e[i]!==32;)i++;let s=parseInt(Ht.toString(e.subarray(0,i)),10);if(!s)return r;let n=Ht.toString(e.subarray(i+1,s-1)),o=n.indexOf("=");if(o===-1)return r;r[n.slice(0,o)]=n.slice(o+1),e=e.subarray(s)}return r};wI.encode=function(e){let r=Ht.alloc(512),i=e.name,s="";if(e.typeflag===5&&i[i.length-1]!=="/"&&(i+="/"),Ht.byteLength(i)!==i.length)return null;for(;Ht.byteLength(i)>100;){let n=i.indexOf("/");if(n===-1)return null;s+=s?"/"+i.slice(0,n):i.slice(0,n),i=i.slice(n+1)}return Ht.byteLength(i)>100||Ht.byteLength(s)>155||e.linkname&&Ht.byteLength(e.linkname)>100?null:(Ht.write(r,i),Ht.write(r,mA(e.mode&yYt,6),100),Ht.write(r,mA(e.uid,6),108),Ht.write(r,mA(e.gid,6),116),BYt(e.size,r,124),Ht.write(r,mA(e.mtime.getTime()/1e3|0,11),136),r[156]=iq+IYt(e.type),e.linkname&&Ht.write(r,e.linkname,157),Ht.copy(xGe,r,CN),Ht.copy(mYt,r,xse),e.uname&&Ht.write(r,e.uname,265),e.gname&&Ht.write(r,e.gname,297),Ht.write(r,mA(e.devmajor||0,6),329),Ht.write(r,mA(e.devminor||0,6),337),s&&Ht.write(r,s,345),Ht.write(r,mA(RGe(r),6),148),r)};wI.decode=function(e,r,i){let s=e[156]===0?0:e[156]-iq,n=bI(e,0,100,r),o=pA(e,100,8),a=pA(e,108,8),c=pA(e,116,8),u=pA(e,124,12),l=pA(e,136,12),f=CYt(s),h=e[157]===0?null:bI(e,157,100,r),d=bI(e,265,32),m=bI(e,297,32),A=pA(e,329,8),y=pA(e,337,8),g=RGe(e);if(g===256)return null;if(g!==pA(e,148,8))throw new Error("Invalid tar header. Maybe the tar is corrupted or it needs to be gunzipped?");if(EYt(e))e[345]&&(n=bI(e,345,155,r)+"/"+n);else if(!bYt(e)){if(!i)throw new Error("Invalid tar header: unknown format.")}return s===0&&n&&n[n.length-1]==="/"&&(s=5),{name:n,mode:o,uid:a,gid:c,size:u,mtime:new Date(1e3*l),type:f,linkname:h,uname:d,gname:m,devmajor:A,devminor:y,pax:null}};function EYt(t){return Ht.equals(xGe,t.subarray(CN,CN+6))}function bYt(t){return Ht.equals(AYt,t.subarray(CN,CN+6))&&Ht.equals(gYt,t.subarray(xse,xse+2))}function wYt(t,e,r){return typeof t!="number"?r:(t=~~t,t>=e?e:t>=0||(t+=e,t>=0)?t:0)}function CYt(t){switch(t){case 0:return"file";case 1:return"link";case 2:return"symlink";case 3:return"character-device";case 4:return"block-device";case 5:return"directory";case 6:return"fifo";case 7:return"contiguous-file";case 72:return"pax-header";case 55:return"pax-global-header";case 27:return"gnu-long-link-path";case 28:case 30:return"gnu-long-path"}return null}function IYt(t){switch(t){case"file":return 0;case"link":return 1;case"symlink":return 2;case"character-device":return 3;case"block-device":return 4;case"directory":return 5;case"fifo":return 6;case"contiguous-file":return 7;case"pax-header":return 72}return 0}function _Ge(t,e,r,i){for(;r<i;r++)if(t[r]===e)return r;return i}function RGe(t){let e=256;for(let r=0;r<148;r++)e+=t[r];for(let r=156;r<512;r++)e+=t[r];return e}function mA(t,e){return t=t.toString(8),t.length>e?pYt.slice(0,e)+" ":dYt.slice(0,e-t.length)+t+" "}function SYt(t,e,r){e[r]=128;for(let i=11;i>0;i--)e[r+i]=t&255,t=Math.floor(t/256)}function BYt(t,e,r){t.toString(8).length>11?SYt(t,e,r):Ht.write(e,mA(t,11),r)}function vYt(t){let e;if(t[0]===128)e=!0;else if(t[0]===255)e=!1;else return null;let r=[],i;for(i=t.length-1;i>0;i--){let o=t[i];e?r.push(o):r.push(255-o)}let s=0,n=r.length;for(i=0;i<n;i++)s+=r[i]*Math.pow(256,i);return e?s:-1*s}function pA(t,e,r){if(t=t.subarray(e,e+r),e=0,t[e]&128)return vYt(t);{for(;e<t.length&&t[e]===32;)e++;let i=wYt(_Ge(t,32,e,t.length),t.length,t.length);for(;e<i&&t[e]===0;)e++;return i===e?0:parseInt(Ht.toString(t.subarray(e,i)),8)}}function bI(t,e,r,i){return Ht.toString(t.subarray(e,_Ge(t,0,e,e+r)),i)}function vse(t){let e=Ht.byteLength(t),r=Math.floor(Math.log(e)/Math.log(10))+1;return e+r>=Math.pow(10,r)&&r++,e+r+t}});var PGe=p((BWr,OGe)=>{var{Writable:xYt,Readable:_Yt,getStreamError:NGe}=Bse(),RYt=use(),TGe=rq(),CI=_se(),NYt=TGe.alloc(0),Nse=class{constructor(){this.buffered=0,this.shifted=0,this.queue=new RYt,this._offset=0}push(e){this.buffered+=e.byteLength,this.queue.push(e)}shiftFirst(e){return this._buffered===0?null:this._next(e)}shift(e){if(e>this.buffered)return null;if(e===0)return NYt;let r=this._next(e);if(e===r.byteLength)return r;let i=[r];for(;(e-=r.byteLength)>0;)r=this._next(e),i.push(r);return TGe.concat(i)}_next(e){let r=this.queue.peek(),i=r.byteLength-this._offset;if(e>=i){let s=this._offset?r.subarray(this._offset,r.byteLength):r;return this.queue.shift(),this._offset=0,this.buffered-=i,this.shifted+=i,s}return this.buffered-=e,this.shifted+=e,r.subarray(this._offset,this._offset+=e)}},Tse=class extends _Yt{constructor(e,r,i){super(),this.header=r,this.offset=i,this._parent=e}_read(e){this.header.size===0&&this.push(null),this._parent._stream===this&&this._parent._update(),e(null)}_predestroy(){this._parent.destroy(NGe(this))}_detach(){this._parent._stream===this&&(this._parent._stream=null,this._parent._missing=DGe(this.header.size),this._parent._update())}_destroy(e){this._detach(),e(null)}},Dse=class extends x
Line truncated
|
||||
`,nexist:"\u2204",nexists:"\u2204",nfr:"\u{1D52B}",Nfr:"\u{1D511}",nge:"\u2271",ngE:"\u2267\u0338",ngeq:"\u2271",ngeqq:"\u2267\u0338",ngeqslant:"\u2A7E\u0338",nges:"\u2A7E\u0338",nGg:"\u22D9\u0338",ngsim:"\u2275",ngt:"\u226F",nGt:"\u226B\u20D2",ngtr:"\u226F",nGtv:"\u226B\u0338",nharr:"\u21AE",nhArr:"\u21CE",nhpar:"\u2AF2",ni:"\u220B",nis:"\u22FC",nisd:"\u22FA",niv:"\u220B",njcy:"\u045A",NJcy:"\u040A",nlarr:"\u219A",nlArr:"\u21CD",nldr:"\u2025",nle:"\u2270",nlE:"\u2266\u0338",nleftarrow:"\u219A",nLeftarrow:"\u21CD",nleftrightarrow:"\u21AE",nLeftrightarrow:"\u21CE",nleq:"\u2270",nleqq:"\u2266\u0338",nleqslant:"\u2A7D\u0338",nles:"\u2A7D\u0338",nless:"\u226E",nLl:"\u22D8\u0338",nlsim:"\u2274",nlt:"\u226E",nLt:"\u226A\u20D2",nltri:"\u22EA",nltrie:"\u22EC",nLtv:"\u226A\u0338",nmid:"\u2224",NoBreak:"\u2060",NonBreakingSpace:"\xA0",nopf:"\u{1D55F}",Nopf:"\u2115",not:"\xAC",Not:"\u2AEC",NotCongruent:"\u2262",NotCupCap:"\u226D",NotDoubleVerticalBar:"\u2226",NotElement:"\u2209",NotEqual:"\u2260",NotEqualTilde:"\u2242\u0338",NotExists:"\u2204",NotGreater:"\u226F",NotGreaterEqual:"\u2271",NotGreaterFullEqual:"\u2267\u0338",NotGreaterGreater:"\u226B\u0338",NotGreaterLess:"\u2279",NotGreaterSlantEqual:"\u2A7E\u0338",NotGreaterTilde:"\u2275",NotHumpDownHump:"\u224E\u0338",NotHumpEqual:"\u224F\u0338",notin:"\u2209",notindot:"\u22F5\u0338",notinE:"\u22F9\u0338",notinva:"\u2209",notinvb:"\u22F7",notinvc:"\u22F6",NotLeftTriangle:"\u22EA",NotLeftTriangleBar:"\u29CF\u0338",NotLeftTriangleEqual:"\u22EC",NotLess:"\u226E",NotLessEqual:"\u2270",NotLessGreater:"\u2278",NotLessLess:"\u226A\u0338",NotLessSlantEqual:"\u2A7D\u0338",NotLessTilde:"\u2274",NotNestedGreaterGreater:"\u2AA2\u0338",NotNestedLessLess:"\u2AA1\u0338",notni:"\u220C",notniva:"\u220C",notnivb:"\u22FE",notnivc:"\u22FD",NotPrecedes:"\u2280",NotPrecedesEqual:"\u2AAF\u0338",NotPrecedesSlantEqual:"\u22E0",NotReverseElement:"\u220C",NotRightTriangle:"\u22EB",NotRightTriangleBar:"\u29D0\u0338",NotRightTriangleEqual:"\u22ED",NotSquareSubset:"\u228F\u0338",NotSquareSubsetEqual:"\u22E2",NotSquareSuperset:"\u2290\u0338",NotSquareSupersetEqual:"\u22E3",NotSubset:"\u2282\u20D2",NotSubsetEqual:"\u2288",NotSucceeds:"\u2281",NotSucceedsEqual:"\u2AB0\u0338",NotSucceedsSlantEqual:"\u22E1",NotSucceedsTilde:"\u227F\u0338",NotSuperset:"\u2283\u20D2",NotSupersetEqual:"\u2289",NotTilde:"\u2241",NotTildeEqual:"\u2244",NotTildeFullEqual:"\u2247",NotTildeTilde:"\u2249",NotVerticalBar:"\u2224",npar:"\u2226",nparallel:"\u2226",nparsl:"\u2AFD\u20E5",npart:"\u2202\u0338",npolint:"\u2A14",npr:"\u2280",nprcue:"\u22E0",npre:"\u2AAF\u0338",nprec:"\u2280",npreceq:"\u2AAF\u0338",nrarr:"\u219B",nrArr:"\u21CF",nrarrc:"\u2933\u0338",nrarrw:"\u219D\u0338",nrightarrow:"\u219B",nRightarrow:"\u21CF",nrtri:"\u22EB",nrtrie:"\u22ED",nsc:"\u2281",nsccue:"\u22E1",nsce:"\u2AB0\u0338",nscr:"\u{1D4C3}",Nscr:"\u{1D4A9}",nshortmid:"\u2224",nshortparallel:"\u2226",nsim:"\u2241",nsime:"\u2244",nsimeq:"\u2244",nsmid:"\u2224",nspar:"\u2226",nsqsube:"\u22E2",nsqsupe:"\u22E3",nsub:"\u2284",nsube:"\u2288",nsubE:"\u2AC5\u0338",nsubset:"\u2282\u20D2",nsubseteq:"\u2288",nsubseteqq:"\u2AC5\u0338",nsucc:"\u2281",nsucceq:"\u2AB0\u0338",nsup:"\u2285",nsupe:"\u2289",nsupE:"\u2AC6\u0338",nsupset:"\u2283\u20D2",nsupseteq:"\u2289",nsupseteqq:"\u2AC6\u0338",ntgl:"\u2279",ntilde:"\xF1",Ntilde:"\xD1",ntlg:"\u2278",ntriangleleft:"\u22EA",ntrianglelefteq:"\u22EC",ntriangleright:"\u22EB",ntrianglerighteq:"\u22ED",nu:"\u03BD",Nu:"\u039D",num:"#",numero:"\u2116",numsp:"\u2007",nvap:"\u224D\u20D2",nvdash:"\u22AC",nvDash:"\u22AD",nVdash:"\u22AE",nVDash:"\u22AF",nvge:"\u2265\u20D2",nvgt:">\u20D2",nvHarr:"\u2904",nvinfin:"\u29DE",nvlArr:"\u2902",nvle:"\u2264\u20D2",nvlt:"<\u20D2",nvltrie:"\u22B4\u20D2",nvrArr:"\u2903",nvrtrie:"\u22B5\u20D2",nvsim:"\u223C\u20D2",nwarhk:"\u2923",nwarr:"\u2196",nwArr:"\u21D6",nwarrow:"\u2196",nwnear:"\u2927",oacute:"\xF3",Oacute:"\xD3",oast:"\u229B",ocir:"\u229A",ocirc:"\xF4",Ocirc:"\xD4",ocy:"\u043E",Ocy:"\u041E",odash:"\u229D",odblac:"\u0151",Odblac:"\u0150",odiv:"\u2A38",odot:"\u2299",odsold:"\u29BC",oelig:"\u0153",OElig:"\u0152",ofcir:"\u29BF",ofr:"\u{1D52C}",Ofr:"\u{1D512}",ogon:"\u02DB",ograve:"\xF2",Ograve:"\xD2",ogt:"\u29C1",ohbar:"\u29B5",ohm:"\u03A9",oint:"\u222E",olarr:"\u21BA",olcir:"\u29BE",olcross:"\u29BB",oline:"\u203E",olt:"\u29C0",omacr:"\u014D",Omacr:"\u014C",omega:"\u03C9",Omega:"\u03A9",omicron:"\u03BF",Omicron:"\u039F",omid:"\u29B6",ominus:"\u2296",oopf:"\u{1D560}",Oopf:"\u{1D546}",opar:"\u29B7",OpenCurlyDoubleQuote:"\u201C",OpenCurlyQuote:"\u2018",operp:"\u29B9",oplus:"\u2295",or:"\u2228",Or:"\u2A54",orarr:"\u21BB",ord:"\u2A5D",order:"\u2134",orderof:"\u2134",ordf:"\xAA",ordm:"\xBA",origof:"\u22B6",oror:"\u2A56",orslope:"\u2A57",orv:"\u2A5B",oS:"\u24C8",oscr:"\u2134",Oscr:"\u{1D4AA}",oslash:"\xF8",Oslash:"\xD8",osol:"\u2298",otilde:"\xF5",Otilde:"\xD5",otimes:"\u2297",Otimes:"\u2A37",otimesas:"\u2A36",ouml:"\xF6",Ouml:"\xD6",ovbar:"\u233D",OverBar:"\u203E",OverBrace:"\u23DE",OverBracket:"\u23B4
Line truncated
|
||||
`).forEach(r=>{r.match(XZt)||r.match(ZZt)||(e+=r)}),Buffer.from(e,"base64")}function ter(t,e="CERTIFICATE"){let i=t.toString("base64").match(/.{1,64}/g)||"";return[`-----BEGIN ${e}-----`,...i,`-----END ${e}-----`].join(`
|
||||
`).concat(`
|
||||
`)}});var Lq=p(_A=>{"use strict";Object.defineProperty(_A,"__esModule",{value:!0});_A.SHA2_HASH_ALGOS=_A.RSA_SIGNATURE_ALGOS=_A.ECDSA_SIGNATURE_ALGOS=void 0;_A.ECDSA_SIGNATURE_ALGOS={"1.2.840.10045.4.3.1":"sha224","1.2.840.10045.4.3.2":"sha256","1.2.840.10045.4.3.3":"sha384","1.2.840.10045.4.3.4":"sha512"};_A.RSA_SIGNATURE_ALGOS={"1.2.840.113549.1.1.14":"sha224","1.2.840.113549.1.1.11":"sha256","1.2.840.113549.1.1.12":"sha384","1.2.840.113549.1.1.13":"sha512"};_A.SHA2_HASH_ALGOS={"2.16.840.1.101.3.4.2.1":"sha256","2.16.840.1.101.3.4.2.2":"sha384","2.16.840.1.101.3.4.2.3":"sha512"}});var bne=p(Mq=>{"use strict";Object.defineProperty(Mq,"__esModule",{value:!0});Mq.RFC3161TimestampVerificationError=void 0;var Ene=class extends Error{};Mq.RFC3161TimestampVerificationError=Ene});var kje=p(dh=>{"use strict";var LZt=dh&&dh.__createBinding||(Object.create?(function(t,e,r,i){i===void 0&&(i=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,i,s)}):(function(t,e,r,i){i===void 0&&(i=r),t[i]=e[r]})),MZt=dh&&dh.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),FZt=dh&&dh.__importStar||(function(){var t=function(e){return t=Object.getOwnPropertyNames||function(r){var i=[];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(i[i.length]=s);return i},t(e)};return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var i=t(e),s=0;s<i.length;s++)i[s]!=="default"&&LZt(r,e,i[s]);return MZt(r,e),r}})();Object.defineProperty(dh,"__esModule",{value:!0});dh.TSTInfo=void 0;var Qje=FZt(kI()),UZt=Lq(),qZt=bne(),wne=class{root;constructor(e){this.root=e}get version(){return this.root.subs[0].toInteger()}get genTime(){return this.root.subs[4].toDate()}get messageImprintHashAlgorithm(){let e=this.messageImprintObj.subs[0].subs[0].toOID();return UZt.SHA2_HASH_ALGOS[e]}get messageImprintHashedMessage(){return this.messageImprintObj.subs[1].value}get raw(){return this.root.toDER()}verify(e){let r=Qje.digest(this.messageImprintHashAlgorithm,e);if(!Qje.bufferEqual(r,this.messageImprintHashedMessage))throw new qZt.RFC3161TimestampVerificationError("message imprint does not match artifact")}get messageImprintObj(){return this.root.subs[2]}};dh.TSTInfo=wne});var Mje=p(ph=>{"use strict";var GZt=ph&&ph.__createBinding||(Object.create?(function(t,e,r,i){i===void 0&&(i=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,i,s)}):(function(t,e,r,i){i===void 0&&(i=r),t[i]=e[r]})),HZt=ph&&ph.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),jZt=ph&&ph.__importStar||(function(){var t=function(e){return t=Object.getOwnPropertyNames||function(r){var i=[];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(i[i.length]=s);return i},t(e)};return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var i=t(e),s=0;s<i.length;s++)i[s]!=="default"&&GZt(r,e,i[s]);return HZt(r,e),r}})();Object.defineProperty(ph,"__esModule",{value:!0});ph.RFC3161Timestamp=void 0;var zZt=Pq(),Cne=jZt(kI()),Lje=Lq(),kT=bne(),VZt=kje(),$Zt="1.2.840.113549.1.7.2",WZt="1.2.840.113549.1.9.16.1.4",JZt="1.2.840.113549.1.9.4",Ine=class t{root;constructor(e){this.root=e}static parse(e){let r=zZt.ASN1Obj.parseBuffer(e);return new t(r)}get status(){return this.pkiStatusInfoObj.subs[0].toInteger()}get contentType(){return this.contentTypeObj.toOID()}get eContentType(){return this.eContentTypeObj.toOID()}get signingTime(){return this.tstInfo.genTime}get signerIssuer(){return this.signerSidObj.subs[0].value}get signerSerialNumber(){return this.signerSidObj.subs[1].value}get signerDigestAlgorithm(){let e=this.signerDigestAlgorithmObj.subs[0].toOID();return Lje.SHA2_HASH_ALGOS[e]}get signatureAlgorithm(){let e=this.signatureAlgorithmObj.subs[0].toOID();return Lje.ECDSA_SIGNATURE_ALGOS[e]}get signatureValue(){return this.signatureValueObj.value}get tstInfo(){return new VZt.TSTInfo(this.eContentObj.subs[0].subs[0])}verify(e,r){if(!this.timeStampTokenObj)throw new kT.RFC3161TimestampVerificationError("timeStampToken is missing");if(this.contentType!==$Zt)throw new kT.RFC3161TimestampVerificationError(`incorrect content type: ${this.contentType}`);if(this.eContentType!==WZt)throw new kT.RFC3161TimestampVerificationError(`incorrect encapsulated content type: ${this.eContentType}`);this.tstInfo.verify(e),this.verifyMessageDigest(),this.verifySignature(r)}verifyMessageDigest(){let e=Cne.digest(this.signerDigestAlgorithm,this.tstInfo.raw),r=this.messageDigestAttributeObj.subs[1].subs[0].value;if(!Cne.bufferEqual(e,r))throw new kT.RFC3161TimestampVerificationError("signed data does not match tstInfo")}verifySignature(e){let r=this.signedAttrsObj.toD
Line truncated
|
||||
`)}});var Hq=p(RA=>{"use strict";Object.defineProperty(RA,"__esModule",{value:!0});RA.SHA2_HASH_ALGOS=RA.RSA_SIGNATURE_ALGOS=RA.ECDSA_SIGNATURE_ALGOS=void 0;RA.ECDSA_SIGNATURE_ALGOS={"1.2.840.10045.4.3.1":"sha224","1.2.840.10045.4.3.2":"sha256","1.2.840.10045.4.3.3":"sha384","1.2.840.10045.4.3.4":"sha512"};RA.RSA_SIGNATURE_ALGOS={"1.2.840.113549.1.1.14":"sha224","1.2.840.113549.1.1.11":"sha256","1.2.840.113549.1.1.12":"sha384","1.2.840.113549.1.1.13":"sha512"};RA.SHA2_HASH_ALGOS={"2.16.840.1.101.3.4.2.1":"sha256","2.16.840.1.101.3.4.2.2":"sha384","2.16.840.1.101.3.4.2.3":"sha512"}});var Rne=p(jq=>{"use strict";Object.defineProperty(jq,"__esModule",{value:!0});jq.RFC3161TimestampVerificationError=void 0;var _ne=class extends Error{};jq.RFC3161TimestampVerificationError=_ne});var Wje=p(hh=>{"use strict";var rer=hh&&hh.__createBinding||(Object.create?(function(t,e,r,i){i===void 0&&(i=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,i,s)}):(function(t,e,r,i){i===void 0&&(i=r),t[i]=e[r]})),ier=hh&&hh.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),ser=hh&&hh.__importStar||(function(){var t=function(e){return t=Object.getOwnPropertyNames||function(r){var i=[];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(i[i.length]=s);return i},t(e)};return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var i=t(e),s=0;s<i.length;s++)i[s]!=="default"&&rer(r,e,i[s]);return ier(r,e),r}})();Object.defineProperty(hh,"__esModule",{value:!0});hh.TSTInfo=void 0;var $je=ser(MI()),ner=Hq(),oer=Rne(),Nne=class{root;constructor(e){this.root=e}get version(){return this.root.subs[0].toInteger()}get genTime(){return this.root.subs[4].toDate()}get messageImprintHashAlgorithm(){let e=this.messageImprintObj.subs[0].subs[0].toOID();return ner.SHA2_HASH_ALGOS[e]}get messageImprintHashedMessage(){return this.messageImprintObj.subs[1].value}get raw(){return this.root.toDER()}verify(e){let r=$je.digest(this.messageImprintHashAlgorithm,e);if(!$je.bufferEqual(r,this.messageImprintHashedMessage))throw new oer.RFC3161TimestampVerificationError("message imprint does not match artifact")}get messageImprintObj(){return this.root.subs[2]}};hh.TSTInfo=Nne});var Yje=p(dh=>{"use strict";var aer=dh&&dh.__createBinding||(Object.create?(function(t,e,r,i){i===void 0&&(i=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,i,s)}):(function(t,e,r,i){i===void 0&&(i=r),t[i]=e[r]})),cer=dh&&dh.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),uer=dh&&dh.__importStar||(function(){var t=function(e){return t=Object.getOwnPropertyNames||function(r){var i=[];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(i[i.length]=s);return i},t(e)};return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var i=t(e),s=0;s<i.length;s++)i[s]!=="default"&&aer(r,e,i[s]);return cer(r,e),r}})();Object.defineProperty(dh,"__esModule",{value:!0});dh.RFC3161Timestamp=void 0;var ler=Uq(),Tne=uer(MI()),Jje=Hq(),MN=Rne(),fer=Wje(),her="1.2.840.113549.1.7.2",der="1.2.840.113549.1.9.16.1.4",per="1.2.840.113549.1.9.4",Dne=class t{root;constructor(e){this.root=e}static parse(e){let r=ler.ASN1Obj.parseBuffer(e);return new t(r)}get status(){return this.pkiStatusInfoObj.subs[0].toInteger()}get contentType(){return this.contentTypeObj.toOID()}get eContentType(){return this.eContentTypeObj.toOID()}get signingTime(){return this.tstInfo.genTime}get signerIssuer(){return this.signerSidObj.subs[0].value}get signerSerialNumber(){return this.signerSidObj.subs[1].value}get signerDigestAlgorithm(){let e=this.signerDigestAlgorithmObj.subs[0].toOID();return Jje.SHA2_HASH_ALGOS[e]}get signatureAlgorithm(){let e=this.signatureAlgorithmObj.subs[0].toOID();return Jje.ECDSA_SIGNATURE_ALGOS[e]}get signatureValue(){return this.signatureValueObj.value}get tstInfo(){return new fer.TSTInfo(this.eContentObj.subs[0].subs[0])}verify(e,r){if(!this.timeStampTokenObj)throw new MN.RFC3161TimestampVerificationError("timeStampToken is missing");if(this.contentType!==her)throw new MN.RFC3161TimestampVerificationError(`incorrect content type: ${this.contentType}`);if(this.eContentType!==der)throw new MN.RFC3161TimestampVerificationError(`incorrect encapsulated content type: ${this.eContentType}`);this.tstInfo.verify(e),this.verifyMessageDigest(),this.verifySignature(r)}verifyMessageDigest(){let e=Tne.digest(this.signerDigestAlgorithm,this.tstInfo.raw),r=this.messageDigestAttributeObj.subs[1].subs[0].value;if(!Tne.bufferEqual(e,r))throw new MN.RFC3161TimestampVerificationError("signed data does not match tstInfo")}verifySignature(e){let r=this.signedAttrsObj.toD
Line truncated
|
||||
\v\f\r\x1B !"#$\u066A&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~\x7F\xB0\xB7\u2219\u221A\u2592\u2500\u2502\u253C\u2524\u252C\u251C\u2534\u2510\u250C\u2514\u2518\u03B2\u221E\u03C6\xB1\xBD\xBC\u2248\xAB\xBB\uFEF7\uFEF8\uFFFD\uFFFD\uFEFB\uFEFC\uFFFD\xA0\xAD\uFE82\xA3\xA4\uFE84\uFFFD\uFFFD\uFE8E\uFE8F\uFE95\uFE99\u060C\uFE9D\uFEA1\uFEA5\u0660\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\uFED1\u061B\uFEB1\uFEB5\uFEB9\u061F\xA2\uFE80\uFE81\uFE83\uFE85\uFECA\uFE8B\uFE8D\uFE91\uFE93\uFE97\uFE9B\uFE9F\uFEA3\uFEA7\uFEA9\uFEAB\uFEAD\uFEAF\uFEB3\uFEB7\uFEBB\uFEBF\uFEC1\uFEC5\uFECB\uFECF\xA6\xAC\xF7\xD7\uFEC9\u0640\uFED3\uFED7\uFEDB\uFEDF\uFEE3\uFEE7\uFEEB\uFEED\uFEEF\uFEF3\uFEBD\uFECC\uFECE\uFECD\uFEE1\uFE7D\u0651\uFEE5\uFEE9\uFEEC\uFEF0\uFEF2\uFED0\uFED5\uFEF5\uFEF6\uFEDD\uFED9\uFEF1\u25A0\uFFFD`},ibm864:"cp864",csibm864:"cp864",cp865:{type:"_sbcs",chars:"\xC7\xFC\xE9\xE2\xE4\xE0\xE5\xE7\xEA\xEB\xE8\xEF\xEE\xEC\xC4\xC5\xC9\xE6\xC6\xF4\xF6\xF2\xFB\xF9\xFF\xD6\xDC\xF8\xA3\xD8\u20A7\u0192\xE1\xED\xF3\xFA\xF1\xD1\xAA\xBA\xBF\u2310\xAC\xBD\xBC\xA1\xAB\xA4\u2591\u2592\u2593\u2502\u2524\u2561\u2562\u2556\u2555\u2563\u2551\u2557\u255D\u255C\u255B\u2510\u2514\u2534\u252C\u251C\u2500\u253C\u255E\u255F\u255A\u2554\u2569\u2566\u2560\u2550\u256C\u2567\u2568\u2564\u2565\u2559\u2558\u2552\u2553\u256B\u256A\u2518\u250C\u2588\u2584\u258C\u2590\u2580\u03B1\xDF\u0393\u03C0\u03A3\u03C3\xB5\u03C4\u03A6\u0398\u03A9\u03B4\u221E\u03C6\u03B5\u2229\u2261\xB1\u2265\u2264\u2320\u2321\xF7\u2248\xB0\u2219\xB7\u221A\u207F\xB2\u25A0\xA0"},ibm865:"cp865",csibm865:"cp865",cp866:{type:"_sbcs",chars:"\u0410\u0411\u0412\u0413\u0414\u0415\u0416\u0417\u0418\u0419\u041A\u041B\u041C\u041D\u041E\u041F\u0420\u0421\u0422\u0423\u0424\u0425\u0426\u0427\u0428\u0429\u042A\u042B\u042C\u042D\u042E\u042F\u0430\u0431\u0432\u0433\u0434\u0435\u0436\u0437\u0438\u0439\u043A\u043B\u043C\u043D\u043E\u043F\u2591\u2592\u2593\u2502\u2524\u2561\u2562\u2556\u2555\u2563\u2551\u2557\u255D\u255C\u255B\u2510\u2514\u2534\u252C\u251C\u2500\u253C\u255E\u255F\u255A\u2554\u2569\u2566\u2560\u2550\u256C\u2567\u2568\u2564\u2565\u2559\u2558\u2552\u2553\u256B\u256A\u2518\u250C\u2588\u2584\u258C\u2590\u2580\u0440\u0441\u0442\u0443\u0444\u0445\u0446\u0447\u0448\u0449\u044A\u044B\u044C\u044D\u044E\u044F\u0401\u0451\u0404\u0454\u0407\u0457\u040E\u045E\xB0\u2219\xB7\u221A\u2116\xA4\u25A0\xA0"},ibm866:"cp866",csibm866:"cp866",cp869:{type:"_sbcs",chars:"\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\u0386\uFFFD\xB7\xAC\xA6\u2018\u2019\u0388\u2015\u0389\u038A\u03AA\u038C\uFFFD\uFFFD\u038E\u03AB\xA9\u038F\xB2\xB3\u03AC\xA3\u03AD\u03AE\u03AF\u03CA\u0390\u03CC\u03CD\u0391\u0392\u0393\u0394\u0395\u0396\u0397\xBD\u0398\u0399\xAB\xBB\u2591\u2592\u2593\u2502\u2524\u039A\u039B\u039C\u039D\u2563\u2551\u2557\u255D\u039E\u039F\u2510\u2514\u2534\u252C\u251C\u2500\u253C\u03A0\u03A1\u255A\u2554\u2569\u2566\u2560\u2550\u256C\u03A3\u03A4\u03A5\u03A6\u03A7\u03A8\u03A9\u03B1\u03B2\u03B3\u2518\u250C\u2588\u2584\u03B4\u03B5\u2580\u03B6\u03B7\u03B8\u03B9\u03BA\u03BB\u03BC\u03BD\u03BE\u03BF\u03C0\u03C1\u03C3\u03C2\u03C4\u0384\xAD\xB1\u03C5\u03C6\u03C7\xA7\u03C8\u0385\xB0\xA8\u03C9\u03CB\u03B0\u03CE\u25A0\xA0"},ibm869:"cp869",csibm869:"cp869",cp922:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\xA1\xA2\xA3\xA4\xA5\xA6\xA7\xA8\xA9\xAA\xAB\xAC\xAD\xAE\u203E\xB0\xB1\xB2\xB3\xB4\xB5\xB6\xB7\xB8\xB9\xBA\xBB\xBC\xBD\xBE\xBF\xC0\xC1\xC2\xC3\xC4\xC5\xC6\xC7\xC8\xC9\xCA\xCB\xCC\xCD\xCE\xCF\u0160\xD1\xD2\xD3\xD4\xD5\xD6\xD7\xD8\xD9\xDA\xDB\xDC\xDD\u017D\xDF\xE0\xE1\xE2\xE3\xE4\xE5\xE6\xE7\xE8\xE9\xEA\xEB\xEC\xED\xEE\xEF\u0161\xF1\xF2\xF3\xF4\xF5\xF6\xF7\xF8\xF9\xFA\xFB\xFC\xFD\u017E\xFF"},ibm922:"cp922",csibm922:"cp922",cp1046:{type:"_sbcs",chars:"\uFE88\xD7\xF7\uF8F6\uF8F5\uF8F4\uF8F7\uFE71\x88\u25A0\u2502\u2500\u2510\u250C\u2514\u2518\uFE79\uFE7B\uFE7D\uFE7F\uFE77\uFE8A\uFEF0\uFEF3\uFEF2\uFECE\uFECF\uFED0\uFEF6\uFEF8\uFEFA\uFEFC\xA0\uF8FA\uF8F9\uF8F8\xA4\uF8FB\uFE8B\uFE91\uFE97\uFE9B\uFE9F\uFEA3\u060C\xAD\uFEA7\uFEB3\u0660\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\uFEB7\u061B\uFEBB\uFEBF\uFECA\u061F\uFECB\u0621\u0622\u0623\u0624\u0625\u0626\u0627\u0628\u0629\u062A\u062B\u062C\u062D\u062E\u062F\u0630\u0631\u0632\u0633\u0634\u0635\u0636\u0637\uFEC7\u0639\u063A\uFECC\uFE82\uFE84\uFE8E\uFED3\u0640\u0641\u0642\u0643\u0644\u0645\u0646\u0647\u0648\u0649\u064A\u064B\u064C\u064D\u064E\u064F\u0650\u0651\u0652\uFED7\uFEDB\uFEDF\uF8FC\uFEF5\uFEF7\uFEF9\uFEFB\uFEE3\uFEE7\uFEEC\uFEE9\uFFFD"},ibm1046:"cp1046",csibm1046:"cp1046",cp1124:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\u0401\u0402\u0490\u0404\u0405\u0406\u0407\u0408\u0409\u040A\u040B\u040C\xAD\u040E\u040F\u0410\u0411\u0412\u0413\u0414\u0415\u0416\u0417\u0418\u0419\u041A\u041B\u041C\u041D\u041E\u041FLine truncated
|
||||
\v\f\r\u1EE8\u1EF0\u1EF2\u1EF6\u1EF8\xDD\u1EF4\x1B !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~\x7F\xC0\u1EA2\xC3\xC1\u1EA0\u1EB6\u1EAC\xC8\u1EBA\u1EBC\xC9\u1EB8\u1EC6\xCC\u1EC8\u0128\xCD\u1ECA\xD2\u1ECE\xD5\xD3\u1ECC\u1ED8\u1EDC\u1EDE\u1EE0\u1EDA\u1EE2\xD9\u1EE6\u0168\xA0\u0102\xC2\xCA\xD4\u01A0\u01AF\u0110\u0103\xE2\xEA\xF4\u01A1\u01B0\u0111\u1EB0\u0300\u0309\u0303\u0301\u0323\xE0\u1EA3\xE3\xE1\u1EA1\u1EB2\u1EB1\u1EB3\u1EB5\u1EAF\u1EB4\u1EAE\u1EA6\u1EA8\u1EAA\u1EA4\u1EC0\u1EB7\u1EA7\u1EA9\u1EAB\u1EA5\u1EAD\xE8\u1EC2\u1EBB\u1EBD\xE9\u1EB9\u1EC1\u1EC3\u1EC5\u1EBF\u1EC7\xEC\u1EC9\u1EC4\u1EBE\u1ED2\u0129\xED\u1ECB\xF2\u1ED4\u1ECF\xF5\xF3\u1ECD\u1ED3\u1ED5\u1ED7\u1ED1\u1ED9\u1EDD\u1EDF\u1EE1\u1EDB\u1EE3\xF9\u1ED6\u1EE7\u0169\xFA\u1EE5\u1EEB\u1EED\u1EEF\u1EE9\u1EF1\u1EF3\u1EF7\u1EF9\xFD\u1EF5\u1ED0`},georgianacademy:{type:"_sbcs",chars:"\x80\x81\u201A\u0192\u201E\u2026\u2020\u2021\u02C6\u2030\u0160\u2039\u0152\x8D\x8E\x8F\x90\u2018\u2019\u201C\u201D\u2022\u2013\u2014\u02DC\u2122\u0161\u203A\u0153\x9D\x9E\u0178\xA0\xA1\xA2\xA3\xA4\xA5\xA6\xA7\xA8\xA9\xAA\xAB\xAC\xAD\xAE\xAF\xB0\xB1\xB2\xB3\xB4\xB5\xB6\xB7\xB8\xB9\xBA\xBB\xBC\xBD\xBE\xBF\u10D0\u10D1\u10D2\u10D3\u10D4\u10D5\u10D6\u10D7\u10D8\u10D9\u10DA\u10DB\u10DC\u10DD\u10DE\u10DF\u10E0\u10E1\u10E2\u10E3\u10E4\u10E5\u10E6\u10E7\u10E8\u10E9\u10EA\u10EB\u10EC\u10ED\u10EE\u10EF\u10F0\u10F1\u10F2\u10F3\u10F4\u10F5\u10F6\xE7\xE8\xE9\xEA\xEB\xEC\xED\xEE\xEF\xF0\xF1\xF2\xF3\xF4\xF5\xF6\xF7\xF8\xF9\xFA\xFB\xFC\xFD\xFE\xFF"},georgianps:{type:"_sbcs",chars:"\x80\x81\u201A\u0192\u201E\u2026\u2020\u2021\u02C6\u2030\u0160\u2039\u0152\x8D\x8E\x8F\x90\u2018\u2019\u201C\u201D\u2022\u2013\u2014\u02DC\u2122\u0161\u203A\u0153\x9D\x9E\u0178\xA0\xA1\xA2\xA3\xA4\xA5\xA6\xA7\xA8\xA9\xAA\xAB\xAC\xAD\xAE\xAF\xB0\xB1\xB2\xB3\xB4\xB5\xB6\xB7\xB8\xB9\xBA\xBB\xBC\xBD\xBE\xBF\u10D0\u10D1\u10D2\u10D3\u10D4\u10D5\u10D6\u10F1\u10D7\u10D8\u10D9\u10DA\u10DB\u10DC\u10F2\u10DD\u10DE\u10DF\u10E0\u10E1\u10E2\u10F3\u10E3\u10E4\u10E5\u10E6\u10E7\u10E8\u10E9\u10EA\u10EB\u10EC\u10ED\u10EE\u10F4\u10EF\u10F0\u10F5\xE6\xE7\xE8\xE9\xEA\xEB\xEC\xED\xEE\xEF\xF0\xF1\xF2\xF3\xF4\xF5\xF6\xF7\xF8\xF9\xFA\xFB\xFC\xFD\xFE\xFF"},pt154:{type:"_sbcs",chars:"\u0496\u0492\u04EE\u0493\u201E\u2026\u04B6\u04AE\u04B2\u04AF\u04A0\u04E2\u04A2\u049A\u04BA\u04B8\u0497\u2018\u2019\u201C\u201D\u2022\u2013\u2014\u04B3\u04B7\u04A1\u04E3\u04A3\u049B\u04BB\u04B9\xA0\u040E\u045E\u0408\u04E8\u0498\u04B0\xA7\u0401\xA9\u04D8\xAB\xAC\u04EF\xAE\u049C\xB0\u04B1\u0406\u0456\u0499\u04E9\xB6\xB7\u0451\u2116\u04D9\xBB\u0458\u04AA\u04AB\u049D\u0410\u0411\u0412\u0413\u0414\u0415\u0416\u0417\u0418\u0419\u041A\u041B\u041C\u041D\u041E\u041F\u0420\u0421\u0422\u0423\u0424\u0425\u0426\u0427\u0428\u0429\u042A\u042B\u042C\u042D\u042E\u042F\u0430\u0431\u0432\u0433\u0434\u0435\u0436\u0437\u0438\u0439\u043A\u043B\u043C\u043D\u043E\u043F\u0440\u0441\u0442\u0443\u0444\u0445\u0446\u0447\u0448\u0449\u044A\u044B\u044C\u044D\u044E\u044F"},viscii:{type:"_sbcs",chars:`\0\u1EB2\u1EB4\u1EAA\x07\b
|
||||
\v\f\r\u1EF6\u1EF8\x1B\u1EF4 !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~\x7F\u1EA0\u1EAE\u1EB0\u1EB6\u1EA4\u1EA6\u1EA8\u1EAC\u1EBC\u1EB8\u1EBE\u1EC0\u1EC2\u1EC4\u1EC6\u1ED0\u1ED2\u1ED4\u1ED6\u1ED8\u1EE2\u1EDA\u1EDC\u1EDE\u1ECA\u1ECE\u1ECC\u1EC8\u1EE6\u0168\u1EE4\u1EF2\xD5\u1EAF\u1EB1\u1EB7\u1EA5\u1EA7\u1EA9\u1EAD\u1EBD\u1EB9\u1EBF\u1EC1\u1EC3\u1EC5\u1EC7\u1ED1\u1ED3\u1ED5\u1ED7\u1EE0\u01A0\u1ED9\u1EDD\u1EDF\u1ECB\u1EF0\u1EE8\u1EEA\u1EEC\u01A1\u1EDB\u01AF\xC0\xC1\xC2\xC3\u1EA2\u0102\u1EB3\u1EB5\xC8\xC9\xCA\u1EBA\xCC\xCD\u0128\u1EF3\u0110\u1EE9\xD2\xD3\xD4\u1EA1\u1EF7\u1EEB\u1EED\xD9\xDA\u1EF9\u1EF5\xDD\u1EE1\u01B0\xE0\xE1\xE2\xE3\u1EA3\u0103\u1EEF\u1EAB\xE8\xE9\xEA\u1EBB\xEC\xED\u0129\u1EC9\u0111\u1EF1\xF2\xF3\xF4\xF5\u1ECF\u1ECD\u1EE5\xF9\xFA\u0169\u1EE7\xFD\u1EE3\u1EEE`},iso646cn:{type:"_sbcs",chars:`\0\x07\b
|
||||
\v\f\r\x1B !"#\xA5%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}\u203E\x7F\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD`},iso646jp:{type:"_sbcs",chars:`\0\x07\b
|
||||
\v\f\r\x1B !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\xA5]^_\`abcdefghijklmnopqrstuvwxyz{|}\u203E\x7F\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD`},hproman8:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\xC0\xC2\xC8\xCA\xCB\xCE\xCF\xB4\u02CB\u02C6\xA8\u02DC\xD9\xDB\u20A4\xAF\xDD\xFD\xB0\xC7\xE7\xD1\xF1\xA1\xBF\xA4\xA3\xA5\xA7\u0192\xA2\xE2\xEA\xF4\xFB\xE1\xE9\xF3\xFA\xE0\xE8\xF2\xF9\xE4\xEB\xF6\xFC\xC5\xEE\xD8\xC6\xE5\xED\xF8\xE6\xC4\xEC\xD6\xDC\xC9\xEF\xDF\xD4\xC1\xC3\xE3\xD0\xF0\xCD\xCC\xD3\xD2\xD5\xF5\u0160\u0161\xDA\u0178\xFF\xDE\xFE\xB7\xB5\xB6\xBE\u2014\xBC\xBD\xAA\xBA\xAB\u25A0\xBB\xB1\uFFFD"},macintosh:{type:"_sbcs",chars:"\xC4\xC5\xC7\xC9\xD1\xD6\xDC\xE1\xE0\xE2\xE4\xE3\xE5\xE7\xE9\xE8\xEA\xEB\xED\xEC\xEE\xEF\xF1\xF3\xF2\xF4\xF6\xF5\xFA\xF9\xFB\xFC\u2020\xB0\xA2\xA3\xA7\u2022\xB6\xDF\xAE\xA9\u2122\xB4\xA8\u2260\xC6\xD8\u221E\xB1\u2264\u2265\xA5\xB5\u2202\u2211\u220F\u03C0\u222B\xAA\xBA\u2126\xE6\xF8\xBF\xA1\xAC\u221A\u0192\u2248\u2206\xAB\xBB\u2026\xA0\xC0\xC3\xD5\u0152\u0153\u2013\u2014\u201C\u201D\u2018\u2019\xF7\u25CA\xFF\u0178\u2044\xA4\u2039\u203A\uFB01\uFB02\u2021\xB7\u201A\u201E\u2030\xC2\xCA\xC1\xCB\xC8\xCD\xCE\xCF\xCC\xD3\xD4\uFFFD\xD2\xDA\xDB\xD9\u0131\u02C6\u02DC\xAF\u02D8\u02D9\u02DA\xB8\u02DD\u02DB\u02C7"},ascii:{type:"_sbcs",chars:"\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD"},tis620:{type:"_sbcs",chars:"\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\u0E01\u0E02\u0E03\u0E04\u0E05\u0E06\u0E07\u0E08\u0E09\u0E0A\u0E0B\u0E0C\u0E0D\u0E0E\u0E0F\u0E10\u0E11\u0E12\u0E13\u0E14\u0E15\u0E16\u0E17\u0E18\u0E19\u0E1A\u0E1B\u0E1C\u0E1D\u0E1E\u0E1F\u0E20\u0E21\u0E22\u0E23\u0E24\u0E25\u0E26\u0E27\u0E28\u0E29\u0E2A\u0E2B\u0E2C\u0E2D\u0E2E\u0E2F\u0E30\u0E31\u0E32\u0E33\u0E34\u0E35\u0E36\u0E37\u0E38\u0E39\u0E3A\uFFFD\uFFFD\uFFFD\uFFFD\u0E3F\u0E40\u0E41\u0E42\u0E43\u0E44\u0E45\u0E46\u0E47\u0E48\u0E49\u0E4A\u0E4B\u0E4C\u0E4D\u0E4E\u0E4F\u0E50\u0E51\u0E52\u0E53\u0E54\u0E55\u0E56\u0E57\u0E58\u0E59\u0E5A\u0E5B\uFFFD\uFFFD\uFFFD\uFFFD"}}});var r9e=p(t9e=>{"use strict";var aae=pp().Buffer;t9e._dbcs=mp;var on=-1,e9e=-2,yu=-10,_o=-1e3,WI=new Array(256),eN=-1;for(C3=0;C3<256;C3++)WI[C3]=on;var C3;function mp(t,e){if(this.encodingName=t.encodingName,!t)throw new Error("DBCS codec is called without the data.");if(!t.table)throw new Error("Encoding '"+this.encodingName+"' has no data.");var r=t.table();this.decodeTables=[],this.decodeTables[0]=WI.slice(0),this.decodeTableSeq=[];for(var i=0;i<r.length;i++)this._addDecodeChunk(r[i]);if(typeof t.gb18030=="function"){this.gb18030=t.gb18030();var s=this.decodeTables.length;this.decodeTables.push(WI.slice(0));var n=this.decodeTables.length;this.decodeTables.push(WI.slice(0));for(var o=this.decodeTables[0],i=129;i<=254;i++)for(var a=this.decodeTables[_o-o[i]],c=48;c<=57;c++){if(a[c]===on)a[c]=_o-s;else if(a[c]>_o)throw new Error("gb18030 decode tables conflict at byte 2");for(var u=this.decodeTables[_o-a[c]],l=129;l<=254;l++){if(u[l]===on)u[l]=_o-n;else{if(u[l]===_o-n)continue;if(u[l]>_o)throw new Error("gb18030 decode tables conflict at byte 3")}for(var f=this.decodeTables[_o-u[l]],h=48;h<=57;h++)f[h]===on&&(f[h]=e9e)}}}this.defaultCharUnicode=e.defaultCharUnicode,this.encodeTable=[],this.encodeTableSeq=[];var d={};if(t.encodeSkipVals)for(var i=0;i<t.encodeSkipValLine truncated
|
||||
\v\f\r\x1B !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\xA5]^_\`abcdefghijklmnopqrstuvwxyz{|}\u203E\x7F\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD`},hproman8:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\xC0\xC2\xC8\xCA\xCB\xCE\xCF\xB4\u02CB\u02C6\xA8\u02DC\xD9\xDB\u20A4\xAF\xDD\xFD\xB0\xC7\xE7\xD1\xF1\xA1\xBF\xA4\xA3\xA5\xA7\u0192\xA2\xE2\xEA\xF4\xFB\xE1\xE9\xF3\xFA\xE0\xE8\xF2\xF9\xE4\xEB\xF6\xFC\xC5\xEE\xD8\xC6\xE5\xED\xF8\xE6\xC4\xEC\xD6\xDC\xC9\xEF\xDF\xD4\xC1\xC3\xE3\xD0\xF0\xCD\xCC\xD3\xD2\xD5\xF5\u0160\u0161\xDA\u0178\xFF\xDE\xFE\xB7\xB5\xB6\xBE\u2014\xBC\xBD\xAA\xBA\xAB\u25A0\xBB\xB1\uFFFD"},macintosh:{type:"_sbcs",chars:"\xC4\xC5\xC7\xC9\xD1\xD6\xDC\xE1\xE0\xE2\xE4\xE3\xE5\xE7\xE9\xE8\xEA\xEB\xED\xEC\xEE\xEF\xF1\xF3\xF2\xF4\xF6\xF5\xFA\xF9\xFB\xFC\u2020\xB0\xA2\xA3\xA7\u2022\xB6\xDF\xAE\xA9\u2122\xB4\xA8\u2260\xC6\xD8\u221E\xB1\u2264\u2265\xA5\xB5\u2202\u2211\u220F\u03C0\u222B\xAA\xBA\u2126\xE6\xF8\xBF\xA1\xAC\u221A\u0192\u2248\u2206\xAB\xBB\u2026\xA0\xC0\xC3\xD5\u0152\u0153\u2013\u2014\u201C\u201D\u2018\u2019\xF7\u25CA\xFF\u0178\u2044\xA4\u2039\u203A\uFB01\uFB02\u2021\xB7\u201A\u201E\u2030\xC2\xCA\xC1\xCB\xC8\xCD\xCE\xCF\xCC\xD3\xD4\uFFFD\xD2\xDA\xDB\xD9\u0131\u02C6\u02DC\xAF\u02D8\u02D9\u02DA\xB8\u02DD\u02DB\u02C7"},ascii:{type:"_sbcs",chars:"\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD"},tis620:{type:"_sbcs",chars:"\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\u0E01\u0E02\u0E03\u0E04\u0E05\u0E06\u0E07\u0E08\u0E09\u0E0A\u0E0B\u0E0C\u0E0D\u0E0E\u0E0F\u0E10\u0E11\u0E12\u0E13\u0E14\u0E15\u0E16\u0E17\u0E18\u0E19\u0E1A\u0E1B\u0E1C\u0E1D\u0E1E\u0E1F\u0E20\u0E21\u0E22\u0E23\u0E24\u0E25\u0E26\u0E27\u0E28\u0E29\u0E2A\u0E2B\u0E2C\u0E2D\u0E2E\u0E2F\u0E30\u0E31\u0E32\u0E33\u0E34\u0E35\u0E36\u0E37\u0E38\u0E39\u0E3A\uFFFD\uFFFD\uFFFD\uFFFD\u0E3F\u0E40\u0E41\u0E42\u0E43\u0E44\u0E45\u0E46\u0E47\u0E48\u0E49\u0E4A\u0E4B\u0E4C\u0E4D\u0E4E\u0E4F\u0E50\u0E51\u0E52\u0E53\u0E54\u0E55\u0E56\u0E57\u0E58\u0E59\u0E5A\u0E5B\uFFFD\uFFFD\uFFFD\uFFFD"}}});var p9e=p(d9e=>{"use strict";var Aae=dp().Buffer;d9e._dbcs=pp;var on=-1,h9e=-2,gu=-10,_o=-1e3,KI=new Array(256),iT=-1;for(_3=0;_3<256;_3++)KI[_3]=on;var _3;function pp(t,e){if(this.encodingName=t.encodingName,!t)throw new Error("DBCS codec is called without the data.");if(!t.table)throw new Error("Encoding '"+this.encodingName+"' has no data.");var r=t.table();this.decodeTables=[],this.decodeTables[0]=KI.slice(0),this.decodeTableSeq=[];for(var i=0;i<r.length;i++)this._addDecodeChunk(r[i]);if(typeof t.gb18030=="function"){this.gb18030=t.gb18030();var s=this.decodeTables.length;this.decodeTables.push(KI.slice(0));var n=this.decodeTables.length;this.decodeTables.push(KI.slice(0));for(var o=this.decodeTables[0],i=129;i<=254;i++)for(var a=this.decodeTables[_o-o[i]],c=48;c<=57;c++){if(a[c]===on)a[c]=_o-s;else if(a[c]>_o)throw new Error("gb18030 decode tables conflict at byte 2");for(var u=this.decodeTables[_o-a[c]],l=129;l<=254;l++){if(u[l]===on)u[l]=_o-n;else{if(u[l]===_o-n)continue;if(u[l]>_o)throw new Error("gb18030 decode tables conflict at byte 3")}for(var f=this.decodeTables[_o-u[l]],h=48;h<=57;h++)f[h]===on&&(f[h]=h9e)}}}this.defaultCharUnicode=e.defaultCharUnicode,this.encodeTable=[],this.encodeTableSeq=[];var d={};if(t.encodeSkipVals)for(var i=0;i<t.encodeSkipValLine truncated
|
||||
Wanted: ${this.expectedSize}
|
||||
Found: ${this.size}`);i.code="EBADSIZE",i.found=this.size,i.expected=this.expectedSize,i.sri=this.sri,this.emit("error",i)}else if(this.sri&&!r){let i=new Error(`${this.sri} integrity checksum failed when using ${this.algorithm}: wanted ${this.digests} but got ${e}. (${this.size} bytes)`);i.code="EINTEGRITY",i.found=e,i.expected=this.digests,i.algorithm=this.algorithm,i.sri=this.sri,this.emit("error",i)}else this.#t=this.size,this.emit("size",this.size),this.#e=e,this.emit("integrity",e),r&&(this.#i=r,this.emit("verified",r))}},bp=class{get isHash(){return!0}constructor(e,r){let i=r?.strict;this.source=e.trim(),this.digest="",this.algorithm="",this.options=[];let s=this.source.match(i?Xrr:Krr);if(!s||i&&!Nae.includes(s[1]))return;this.algorithm=s[1],this.digest=s[2];let n=s[3];n&&(this.options=n.slice(1).split("?"))}hexDigest(){return this.digest&&Buffer.from(this.digest,"base64").toString("hex")}toJSON(){return this.toString()}match(e,r){let i=lc(e,r);if(!i)return!1;if(i.isIntegrity){let s=i.pickAlgorithm(r,[this.algorithm]);if(!s)return!1;let n=i[s].find(o=>o.digest===this.digest);return n||!1}return i.digest===this.digest?i:!1}toString(e){return e?.strict&&!(Nae.includes(this.algorithm)&&this.digest.match(Yrr)&&this.options.every(r=>r.match(Zrr)))?"":`${this.algorithm}-${this.digest}${cN(this.options)}`}};function lVe(t,e,r,i){let s=t!=="",n=!1,o="",a=i.length-1;for(let u=0;u<a;u++){let l=bp.prototype.toString.call(i[u],r);l&&(n=!0,o+=l,o+=e)}let c=bp.prototype.toString.call(i[a],r);return c&&(n=!0,o+=c),s&&n?t+e+o:t+o}var zE=class{get isIntegrity(){return!0}toJSON(){return this.toString()}isEmpty(){return Object.keys(this).length===0}toString(e){let r=e?.sep||" ",i="";if(e?.strict){r=r.replace(/\S+/g," ");for(let s of Nae)this[s]&&(i=lVe(i,r,e,this[s]))}else for(let s of Object.keys(this))i=lVe(i,r,e,this[s]);return i}concat(e,r){let i=typeof e=="string"?e:oN(e,r);return lc(`${this.toString(r)} ${i}`,r)}hexDigest(){return lc(this,{single:!0}).hexDigest()}merge(e,r){let i=lc(e,r);for(let s in i)if(this[s]){if(!this[s].find(n=>i[s].find(o=>n.digest===o.digest)))throw new Error("hashes do not match, cannot update integrity")}else this[s]=i[s]}match(e,r){let i=lc(e,r);if(!i)return!1;let s=i.pickAlgorithm(r,Object.keys(this));return!!s&&this[s]&&i[s]&&this[s].find(n=>i[s].find(o=>n.digest===o.digest))||!1}pickAlgorithm(e,r){let i=e?.pickAlgorithm||air,s=Object.keys(this).filter(n=>r?.length?r.includes(n):!0);return s.length?s.reduce((n,o)=>i(n,o)||n):null}};Ih.exports.parse=lc;function lc(t,e){if(!t)return null;if(typeof t=="string")return Tae(t,e);if(t.algorithm&&t.digest){let r=new zE;return r[t.algorithm]=[t],Tae(oN(r,e),e)}else return Tae(oN(t,e),e)}function Tae(t,e){if(e?.single)return new bp(t,e);let r=t.trim().split(/\s+/).reduce((i,s)=>{let n=new bp(s,e);if(n.algorithm&&n.digest){let o=n.algorithm;i[o]||(i[o]=[]),i[o].push(n)}return i},new zE);return r.isEmpty()?null:r}Ih.exports.stringify=oN;function oN(t,e){return t.algorithm&&t.digest?bp.prototype.toString.call(t,e):typeof t=="string"?oN(lc(t,e),e):zE.prototype.toString.call(t,e)}Ih.exports.fromHex=eir;function eir(t,e,r){let i=cN(r?.options);return lc(`${e}-${Buffer.from(t,"hex").toString("base64")}${i}`,r)}Ih.exports.fromData=tir;function tir(t,e){let r=e?.algorithms||[...Oae],i=cN(e?.options);return r.reduce((s,n)=>{let o=aN.createHash(n).update(t).digest("base64"),a=new bp(`${n}-${o}${i}`,e);if(a.algorithm&&a.digest){let c=a.algorithm;s[c]||(s[c]=[]),s[c].push(a)}return s},new zE)}Ih.exports.fromStream=rir;function rir(t,e){let r=Pae(e);return new Promise((i,s)=>{t.pipe(r),t.on("error",s),r.on("error",s);let n;r.on("integrity",o=>{n=o}),r.on("end",()=>i(n)),r.resume()})}Ih.exports.checkData=iir;function iir(t,e,r){if(e=lc(e,r),!e||!Object.keys(e).length){if(r?.error)throw Object.assign(new Error("No valid integrity hashes to check against"),{code:"EINTEGRITY"});return!1}let i=e.pickAlgorithm(r),s=aN.createHash(i).update(t).digest("base64"),n=lc({algorithm:i,digest:s}),o=n.match(e,r);if(r=r||{},o||!r.error)return o;if(typeof r.size=="number"&&t.length!==r.size){let a=new Error(`data size mismatch when checking ${e}.
|
||||
Found: ${this.size}`);i.code="EBADSIZE",i.found=this.size,i.expected=this.expectedSize,i.sri=this.sri,this.emit("error",i)}else if(this.sri&&!r){let i=new Error(`${this.sri} integrity checksum failed when using ${this.algorithm}: wanted ${this.digests} but got ${e}. (${this.size} bytes)`);i.code="EINTEGRITY",i.found=e,i.expected=this.digests,i.algorithm=this.algorithm,i.sri=this.sri,this.emit("error",i)}else this.#t=this.size,this.emit("size",this.size),this.#e=e,this.emit("integrity",e),r&&(this.#i=r,this.emit("verified",r))}},Ep=class{get isHash(){return!0}constructor(e,r){let i=r?.strict;this.source=e.trim(),this.digest="",this.algorithm="",this.options=[];let s=this.source.match(i?gir:Air);if(!s||i&&!Uae.includes(s[1]))return;this.algorithm=s[1],this.digest=s[2];let n=s[3];n&&(this.options=n.slice(1).split("?"))}hexDigest(){return this.digest&&Buffer.from(this.digest,"base64").toString("hex")}toJSON(){return this.toString()}match(e,r){let i=uc(e,r);if(!i)return!1;if(i.isIntegrity){let s=i.pickAlgorithm(r,[this.algorithm]);if(!s)return!1;let n=i[s].find(o=>o.digest===this.digest);return n||!1}return i.digest===this.digest?i:!1}toString(e){return e?.strict&&!(Uae.includes(this.algorithm)&&this.digest.match(mir)&&this.options.every(r=>r.match(yir)))?"":`${this.algorithm}-${this.digest}${fT(this.options)}`}};function CVe(t,e,r,i){let s=t!=="",n=!1,o="",a=i.length-1;for(let u=0;u<a;u++){let l=Ep.prototype.toString.call(i[u],r);l&&(n=!0,o+=l,o+=e)}let c=Ep.prototype.toString.call(i[a],r);return c&&(n=!0,o+=c),s&&n?t+e+o:t+o}var $E=class{get isIntegrity(){return!0}toJSON(){return this.toString()}isEmpty(){return Object.keys(this).length===0}toString(e){let r=e?.sep||" ",i="";if(e?.strict){r=r.replace(/\S+/g," ");for(let s of Uae)this[s]&&(i=CVe(i,r,e,this[s]))}else for(let s of Object.keys(this))i=CVe(i,r,e,this[s]);return i}concat(e,r){let i=typeof e=="string"?e:uT(e,r);return uc(`${this.toString(r)} ${i}`,r)}hexDigest(){return uc(this,{single:!0}).hexDigest()}merge(e,r){let i=uc(e,r);for(let s in i)if(this[s]){if(!this[s].find(n=>i[s].find(o=>n.digest===o.digest)))throw new Error("hashes do not match, cannot update integrity")}else this[s]=i[s]}match(e,r){let i=uc(e,r);if(!i)return!1;let s=i.pickAlgorithm(r,Object.keys(this));return!!s&&this[s]&&i[s]&&this[s].find(n=>i[s].find(o=>n.digest===o.digest))||!1}pickAlgorithm(e,r){let i=e?.pickAlgorithm||vir,s=Object.keys(this).filter(n=>r?.length?r.includes(n):!0);return s.length?s.reduce((n,o)=>i(n,o)||n):null}};Ch.exports.parse=uc;function uc(t,e){if(!t)return null;if(typeof t=="string")return Mae(t,e);if(t.algorithm&&t.digest){let r=new $E;return r[t.algorithm]=[t],Mae(uT(r,e),e)}else return Mae(uT(t,e),e)}function Mae(t,e){if(e?.single)return new Ep(t,e);let r=t.trim().split(/\s+/).reduce((i,s)=>{let n=new Ep(s,e);if(n.algorithm&&n.digest){let o=n.algorithm;i[o]||(i[o]=[]),i[o].push(n)}return i},new $E);return r.isEmpty()?null:r}Ch.exports.stringify=uT;function uT(t,e){return t.algorithm&&t.digest?Ep.prototype.toString.call(t,e):typeof t=="string"?uT(uc(t,e),e):$E.prototype.toString.call(t,e)}Ch.exports.fromHex=Eir;function Eir(t,e,r){let i=fT(r?.options);return uc(`${e}-${Buffer.from(t,"hex").toString("base64")}${i}`,r)}Ch.exports.fromData=bir;function bir(t,e){let r=e?.algorithms||[...Gae],i=fT(e?.options);return r.reduce((s,n)=>{let o=lT.createHash(n).update(t).digest("base64"),a=new Ep(`${n}-${o}${i}`,e);if(a.algorithm&&a.digest){let c=a.algorithm;s[c]||(s[c]=[]),s[c].push(a)}return s},new $E)}Ch.exports.fromStream=wir;function wir(t,e){let r=Hae(e);return new Promise((i,s)=>{t.pipe(r),t.on("error",s),r.on("error",s);let n;r.on("integrity",o=>{n=o}),r.on("end",()=>i(n)),r.resume()})}Ch.exports.checkData=Cir;function Cir(t,e,r){if(e=uc(e,r),!e||!Object.keys(e).length){if(r?.error)throw Object.assign(new Error("No valid integrity hashes to check against"),{code:"EINTEGRITY"});return!1}let i=e.pickAlgorithm(r),s=lT.createHash(i).update(t).digest("base64"),n=uc({algorithm:i,digest:s}),o=n.match(e,r);if(r=r||{},o||!r.error)return o;if(typeof r.size=="number"&&t.length!==r.size){let a=new Error(`data size mismatch when checking ${e}.
|
||||
Wanted: ${r.size}
|
||||
Found: ${t.length}`);throw a.code="EBADSIZE",a.found=t.length,a.expected=r.size,a.sri=e,a}else{let a=new Error(`Integrity checksum failed when using ${i}: Wanted ${e}, but got ${n}. (${t.length} bytes)`);throw a.code="EINTEGRITY",a.found=n,a.expected=e,a.algorithm=i,a.sri=e,a}}Ih.exports.checkStream=sir;function sir(t,e,r){if(r=r||Object.create(null),r.integrity=e,e=lc(e,r),!e||!Object.keys(e).length)return Promise.reject(Object.assign(new Error("No valid integrity hashes to check against"),{code:"EINTEGRITY"}));let i=Pae(r);return new Promise((s,n)=>{t.pipe(i),t.on("error",n),i.on("error",n);let o;i.on("verified",a=>{o=a}),i.on("end",()=>s(o)),i.resume()})}Ih.exports.integrityStream=Pae;function Pae(t=Object.create(null)){return new Dae(t)}Ih.exports.create=nir;function nir(t){let e=t?.algorithms||[...Oae],r=cN(t?.options),i=e.map(aN.createHash);return{update:function(s,n){return i.forEach(o=>o.update(s,n)),this},digest:function(){return e.reduce((n,o)=>{let a=i.shift().digest("base64"),c=new bp(`${o}-${a}${r}`,t);if(c.algorithm&&c.digest){let u=c.algorithm;n[u]||(n[u]=[]),n[u].push(c)}return n},new zE)}}}var oir=aN.getHashes(),fVe=["md5","whirlpool","sha1","sha224","sha256","sha384","sha512","sha3","sha3-256","sha3-384","sha3-512","sha3_256","sha3_384","sha3_512"].filter(t=>oir.includes(t));function air(t,e){return fVe.indexOf(t.toLowerCase())>=fVe.indexOf(e.toLowerCase())?t:e}});var kae=p((fKr,AVe)=>{var hVe=Iae(),dVe=Rae(),cir=Sh(),pVe={shared:!1,ignoreCargoCult:!0},uir={status:200,headers:{}},XI=t=>{let e={method:t.method,url:t.url,headers:{},compress:t.compress};return t.headers.forEach((r,i)=>{e.headers[i]=r}),e},mVe=t=>{let e={status:t.status,headers:{}};return t.headers.forEach((r,i)=>{e.headers[i]=r}),e},Qae=class{constructor({entry:e,request:r,response:i,options:s}){this.entry=e,this.request=XI(r),this.response=mVe(i),this.options=s,this.policy=new hVe(this.request,this.response,pVe),this.entry&&(this.policy._responseTime=this.entry.metadata.time)}static storable(e,r){return!r.cachePath||r.cache==="no-store"||!["GET","HEAD"].includes(e.method)?!1:new hVe(XI(e),uir,pVe).storable()}satisfies(e){let r=XI(e);if(this.request.headers.host!==r.headers.host||this.request.compress!==r.compress)return!1;let i=new dVe(this.request),s=new dVe(r);return JSON.stringify(i.mediaTypes())!==JSON.stringify(s.mediaTypes())||JSON.stringify(i.languages())!==JSON.stringify(s.languages())||JSON.stringify(i.encodings())!==JSON.stringify(s.encodings())?!1:this.options.integrity?cir.parse(this.options.integrity).match(this.entry.integrity):!0}storable(){return this.policy.storable()}get mustRevalidate(){return!!this.policy._rescc["must-revalidate"]}needsRevalidation(e){let r=XI(e);return r.method="GET",!this.policy.satisfiesWithoutRevalidation(r)}responseHeaders(){return this.policy.responseHeaders()}revalidationHeaders(e){let r=XI(e);return this.policy.revalidationHeaders(r)}revalidated(e,r){let i=XI(e),s=mVe(r);return!this.policy.revalidatedPolicy(i,s).modified}};AVe.exports=Qae});var yVe=p((hKr,gVe)=>{var Lae=class extends Error{constructor(e){super(`request to ${e} failed: cache mode is 'only-if-cached' but no cached response is available.`),this.code="ENOTCACHED"}};gVe.exports={NotCachedError:Lae}});var _Ve=p((dKr,xVe)=>{"use strict";var EVe=typeof process=="object"&&process?process:{stdout:null,stderr:null},lir=require("events"),bVe=require("stream"),wVe=require("string_decoder").StringDecoder,wp=Symbol("EOF"),Cp=Symbol("maybeEmitEnd"),kA=Symbol("emittedEnd"),k3=Symbol("emittingEnd"),uN=Symbol("emittedError"),L3=Symbol("closed"),CVe=Symbol("read"),M3=Symbol("flush"),IVe=Symbol("flushChunk"),da=Symbol("encoding"),Ip=Symbol("decoder"),F3=Symbol("flowing"),lN=Symbol("paused"),ZI=Symbol("resume"),ks=Symbol("bufferLength"),Mae=Symbol("bufferPush"),Fae=Symbol("bufferShift"),Mn=Symbol("objectMode"),Fn=Symbol("destroyed"),Uae=Symbol("emitData"),SVe=Symbol("emitEnd"),qae=Symbol("emitEnd2"),Sp=Symbol("async"),fN=t=>Promise.resolve().then(t),BVe=global._MP_NO_ITERATOR_SYMBOLS_!=="1",fir=BVe&&Symbol.asyncIterator||Symbol("asyncIterator not implemented"),hir=BVe&&Symbol.iterator||Symbol("iterator not implemented"),dir=t=>t==="end"||t==="finish"||t==="prefinish",pir=t=>t instanceof ArrayBuffer||typeof t=="object"&&t.constructor&&t.constructor.name==="ArrayBuffer"&&t.byteLength>=0,mir=t=>!Buffer.isBuffer(t)&&ArrayBuffer.isView(t),U3=class{constructor(e,r,i){this.src=e,this.dest=r,this.opts=i,this.ondrain=()=>e[ZI](),r.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},Gae=class extends U3{unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(e,r,i){super(e,r,i),this.proxyErrors=s=>r.emit("error",s),e.on("error",this.proxyErrors)}};xVe.exports=class vVe extends bVe{constructor(e){super(),this[F3]=!1,this[lN]=!1,this.pipes=[],this.buffer=[],this[Mn]=e&&e.objectMode||!1,this[Mn]?this[da]=null:this[da]=e&
Line truncated
|
||||
`+o.map(h=>{let d=JSON.stringify(h);return`${f4(d)} ${d}`}).join(`
|
||||
`),c=async()=>{let h=War(vh.join(t,"tmp"),i.tmpPrefix);return await Lce(vh.dirname(h),{recursive:!0}),{target:h,moved:!1}},u=async h=>{if(!h.moved)return MJe(h.target,{recursive:!0,force:!0})},l=async h=>{await zar(h.target,a,{flag:"wx"}),await Lce(vh.dirname(s),{recursive:!0}),await Xar(h.target,s),h.moved=!0},f=await c();try{await l(f)}finally{await u(f)}return o.reverse().map(h=>h4(t,h,!0))}hc.exports.insert=FJe;async function FJe(t,e,r,i={}){let{metadata:s,size:n,time:o}=i,a=_N(t,e),c={key:e,integrity:r&&$ar.stringify(r),time:o||Date.now(),size:n,metadata:s};try{await Lce(vh.dirname(a),{recursive:!0});let u=JSON.stringify(c);await Gar(a,`
|
||||
${f4(u)} ${u}`)}catch(u){if(u.code==="ENOENT")return;throw u}return h4(t,c)}hc.exports.find=ecr;async function ecr(t,e){let r=_N(t,e);try{return(await l4(r)).reduce((s,n)=>n&&n.key===e?h4(t,n):s,null)}catch(i){if(i.code==="ENOENT")return null;throw i}}hc.exports.delete=tcr;function tcr(t,e,r={}){if(!r.removeFully)return FJe(t,e,null,r);let i=_N(t,e);return MJe(i,{recursive:!0,force:!0})}hc.exports.lsStream=UJe;function UJe(t){let e=Mce(t),r=new Var({objectMode:!0});return Promise.resolve().then(async()=>{let{default:i}=await Promise.resolve().then(()=>(u4(),c4)),s=await kce(e);return await i(s,async n=>{let o=vh.join(e,n),a=await kce(o);await i(a,async c=>{let u=vh.join(o,c),l=await kce(u);await i(l,async f=>{let h=vh.join(u,f);try{let m=(await l4(h)).reduce((A,y)=>(A.set(y.key,y),A),new Map);for(let A of m.values()){let y=h4(t,A);y&&r.write(y)}}catch(d){if(d.code==="ENOENT")return;throw d}},{concurrency:Qce})},{concurrency:Qce})},{concurrency:Qce}),r.end(),r}).catch(i=>r.emit("error",i)),r}hc.exports.ls=rcr;async function rcr(t){return(await UJe(t).collect()).reduce((r,i)=>(r[i.key]=i,r),{})}hc.exports.bucketEntries=l4;async function l4(t,e){let r=await Har(t,"utf8");return icr(r,e)}function icr(t){let e=[];return t.split(`
|
||||
`).forEach(r=>{if(!r)return;let i=r.split(" ");if(!i[1]||f4(i[1])!==i[0])return;let s;try{s=JSON.parse(i[1])}catch{}s&&e.push(s)}),e}hc.exports.bucketDir=Mce;function Mce(t){return vh.join(t,`index-v${Kar}`)}hc.exports.bucketPath=_N;function _N(t,e){let r=qJe(e);return vh.join.apply(vh,[Mce(t)].concat(Yar(r)))}hc.exports.hashKey=qJe;function qJe(t){return GJe(t,"sha256")}hc.exports.hashEntry=f4;function f4(t){return GJe(t,"sha1")}function GJe(t,e){return qar.createHash(e).update(t).digest("hex")}function h4(t,e,r){return!e.integrity&&!r?null:{key:e.key,integrity:e.integrity,path:e.integrity?Jar(t,e.integrity):void 0,size:e.size,time:e.time,metadata:e.metadata}}function kce(t){return jar(t).catch(e=>{if(e.code==="ENOENT"||e.code==="ENOTDIR")return[];throw e})}});var fS=p(p4=>{"use strict";Object.defineProperty(p4,"__esModule",{value:!0});p4.LRUCache=void 0;var scr=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,jJe=new Set,Fce=typeof process=="object"&&process?process:{},zJe=(t,e,r,i)=>{typeof Fce.emitWarning=="function"?Fce.emitWarning(t,e,r,i):console.error(`[${r}] ${e}: ${t}`)},d4=globalThis.AbortController,HJe=globalThis.AbortSignal;if(typeof d4>"u"){HJe=class{onabort;_onabort=[];reason;aborted=!1;addEventListener(i,s){this._onabort.push(s)}},d4=class{constructor(){e()}signal=new HJe;abort(i){if(!this.signal.aborted){this.signal.reason=i,this.signal.aborted=!0;for(let s of this.signal._onabort)s(i);this.signal.onabort?.(i)}}};let t=Fce.env?.LRU_CACHE_IGNORE_AC_WARNING!=="1",e=()=>{t&&(t=!1,zJe("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.","NO_ABORT_CONTROLLER","ENOTSUP",e))}}var ncr=t=>!jJe.has(t),MA=t=>t&&t===Math.floor(t)&&t>0&&isFinite(t),VJe=t=>MA(t)?t<=Math.pow(2,8)?Uint8Array:t<=Math.pow(2,16)?Uint16Array:t<=Math.pow(2,32)?Uint32Array:t<=Number.MAX_SAFE_INTEGER?lS:null:null,lS=class extends Array{constructor(e){super(e),this.fill(0)}},Uce=class t{heap;length;static#e=!1;static create(e){let r=VJe(e);if(!r)return[];t.#e=!0;let i=new t(e,r);return t.#e=!1,i}constructor(e,r){if(!t.#e)throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new r(e),this.length=0}push(e){this.heap[this.length++]=e}pop(){return this.heap[--this.length]}},qce=class t{#e;#t;#i;#r;#s;#n;#l;#u;get perf(){return this.#u}ttl;ttlResolution;ttlAutopurge;updateAgeOnGet;updateAgeOnHas;allowStale;noDisposeOnSet;noUpdateTTL;maxEntrySize;sizeCalculation;noDeleteOnFetchRejection;noDeleteOnStaleGet;allowStaleOnFetchAbort;allowStaleOnFetchRejection;ignoreFetchAbort;#a;#c;#h;#d;#f;#m;#b;#A;#w;#v;#y;#C;#x;#p;#I;#_;#E;#o;static unsafeExposeInternals(e){return{starts:e.#x,ttls:e.#p,sizes:e.#C,keyMap:e.#h,keyList:e.#d,valList:e.#f,next:e.#m,prev:e.#b,get head(){return e.#A},get tail(){return e.#w},free:e.#v,isBackgroundFetch:r=>e.#S(r),backgroundFetch:(r,i,s,n)=>e.#j(r,i,s,n),moveToTail:r=>e.#q(r),indexes:r=>e.#O(r),rindexes:r=>e.#g(r),isStale:r=>e.#T(r)}}get max(){return this.#e}get maxSize(){return this.#t}get calculatedSize(){return this.#c}get size(){return this.#a}get fetchMethod(){return this.#n}get memoMethod(){return this.#l}get dispose(){return this.#i}get onInsert(){return this.#r}get disposeAfter(){return this.#s}constructor(e){let{max:r=0,ttl:i,ttlResolution:s=1,ttlAutopurge:n,updateAgeOnGet:o,updateAgeOnHas:a,allowStale:c,dispose:u,onInsert:l,disposeAfter:f,noDisposeOnSet:h,noUpdateTTL:d,maxSize:m=0,maxEntrySize:A=0,sizeCalculation:y,fetchMethod:g,memoMethod:E,noDeleteOnFetchRejection:C,noDeleteOnStaleGet:S,allowStaleOnFetchRejection:D,allowStaleOnFetchAbort:q,ignoreFetchAbort:N,perf:$}=e;if($!==void 0&&typeof $?.now!="function")throw new TypeError("perf option must have a now() method if specified");if(this.#u=$??scr,r!==0&&!MA(r))throw new TypeError("max option must be a nonnegative integer");let O=r?VJe(r):Array;if(!O)throw new Error("invalid max value: "+r);if(this.#e=r,this.#t=m,this.maxEntrySize=A||this.#t,this.sizeCalculation=y,this.sizeCalculation){if(!this.#t&&!this.maxEntrySize)throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if(typeof this.sizeCalculation!="function")throw new TypeError("sizeCalculation set to non-function")}if(E!==void 0&&typeof E!="function")throw new TypeError("memoMethod must be a function if defined");if(this.#l=E,g!==void 0&&typeof g!="function")throw new TypeError("fetchMethod must be a function if specified");if(this.#n=g,this.#_=!!g,this.#h=new Map,this.#d=new Array(r).fill(void 0),this.#f=new Array(r).fill(void 0),this.#m=new O(r),this.#b=new O(r),this.#A=0,this.#w=0,this.#v=Uce.create(r),this.#a=0,this.#c=0,typeof u=="fu
Line truncated
|
||||
Found: ${t.length}`);throw a.code="EBADSIZE",a.found=t.length,a.expected=r.size,a.sri=e,a}else{let a=new Error(`Integrity checksum failed when using ${i}: Wanted ${e}, but got ${n}. (${t.length} bytes)`);throw a.code="EINTEGRITY",a.found=n,a.expected=e,a.algorithm=i,a.sri=e,a}}Ch.exports.checkStream=Iir;function Iir(t,e,r){if(r=r||Object.create(null),r.integrity=e,e=uc(e,r),!e||!Object.keys(e).length)return Promise.reject(Object.assign(new Error("No valid integrity hashes to check against"),{code:"EINTEGRITY"}));let i=Hae(r);return new Promise((s,n)=>{t.pipe(i),t.on("error",n),i.on("error",n);let o;i.on("verified",a=>{o=a}),i.on("end",()=>s(o)),i.resume()})}Ch.exports.integrityStream=Hae;function Hae(t=Object.create(null)){return new qae(t)}Ch.exports.create=Sir;function Sir(t){let e=t?.algorithms||[...Gae],r=fT(t?.options),i=e.map(lT.createHash);return{update:function(s,n){return i.forEach(o=>o.update(s,n)),this},digest:function(){return e.reduce((n,o)=>{let a=i.shift().digest("base64"),c=new Ep(`${o}-${a}${r}`,t);if(c.algorithm&&c.digest){let u=c.algorithm;n[u]||(n[u]=[]),n[u].push(c)}return n},new $E)}}}var Bir=lT.getHashes(),IVe=["md5","whirlpool","sha1","sha224","sha256","sha384","sha512","sha3","sha3-256","sha3-384","sha3-512","sha3_256","sha3_384","sha3_512"].filter(t=>Bir.includes(t));function vir(t,e){return IVe.indexOf(t.toLowerCase())>=IVe.indexOf(e.toLowerCase())?t:e}});var zae=p((qKr,_Ve)=>{var SVe=Dae(),BVe=Fae(),xir=Ih(),vVe={shared:!1,ignoreCargoCult:!0},_ir={status:200,headers:{}},tS=t=>{let e={method:t.method,url:t.url,headers:{},compress:t.compress};return t.headers.forEach((r,i)=>{e.headers[i]=r}),e},xVe=t=>{let e={status:t.status,headers:{}};return t.headers.forEach((r,i)=>{e.headers[i]=r}),e},jae=class{constructor({entry:e,request:r,response:i,options:s}){this.entry=e,this.request=tS(r),this.response=xVe(i),this.options=s,this.policy=new SVe(this.request,this.response,vVe),this.entry&&(this.policy._responseTime=this.entry.metadata.time)}static storable(e,r){return!r.cachePath||r.cache==="no-store"||!["GET","HEAD"].includes(e.method)?!1:new SVe(tS(e),_ir,vVe).storable()}satisfies(e){let r=tS(e);if(this.request.headers.host!==r.headers.host||this.request.compress!==r.compress)return!1;let i=new BVe(this.request),s=new BVe(r);return JSON.stringify(i.mediaTypes())!==JSON.stringify(s.mediaTypes())||JSON.stringify(i.languages())!==JSON.stringify(s.languages())||JSON.stringify(i.encodings())!==JSON.stringify(s.encodings())?!1:this.options.integrity?xir.parse(this.options.integrity).match(this.entry.integrity):!0}storable(){return this.policy.storable()}get mustRevalidate(){return!!this.policy._rescc["must-revalidate"]}needsRevalidation(e){let r=tS(e);return r.method="GET",!this.policy.satisfiesWithoutRevalidation(r)}responseHeaders(){return this.policy.responseHeaders()}revalidationHeaders(e){let r=tS(e);return this.policy.revalidationHeaders(r)}revalidated(e,r){let i=tS(e),s=xVe(r);return!this.policy.revalidatedPolicy(i,s).modified}};_Ve.exports=jae});var NVe=p((GKr,RVe)=>{var Vae=class extends Error{constructor(e){super(`request to ${e} failed: cache mode is 'only-if-cached' but no cached response is available.`),this.code="ENOTCACHED"}};RVe.exports={NotCachedError:Vae}});var UVe=p((HKr,MVe)=>{"use strict";var TVe=typeof process=="object"&&process?process:{stdout:null,stderr:null},Rir=require("events"),DVe=require("stream"),OVe=require("string_decoder").StringDecoder,bp=Symbol("EOF"),wp=Symbol("maybeEmitEnd"),LA=Symbol("emittedEnd"),G3=Symbol("emittingEnd"),hT=Symbol("emittedError"),H3=Symbol("closed"),PVe=Symbol("read"),j3=Symbol("flush"),QVe=Symbol("flushChunk"),da=Symbol("encoding"),Cp=Symbol("decoder"),z3=Symbol("flowing"),dT=Symbol("paused"),rS=Symbol("resume"),ks=Symbol("bufferLength"),$ae=Symbol("bufferPush"),Wae=Symbol("bufferShift"),Fn=Symbol("objectMode"),Mn=Symbol("destroyed"),Jae=Symbol("emitData"),kVe=Symbol("emitEnd"),Yae=Symbol("emitEnd2"),Ip=Symbol("async"),pT=t=>Promise.resolve().then(t),LVe=global._MP_NO_ITERATOR_SYMBOLS_!=="1",Nir=LVe&&Symbol.asyncIterator||Symbol("asyncIterator not implemented"),Tir=LVe&&Symbol.iterator||Symbol("iterator not implemented"),Dir=t=>t==="end"||t==="finish"||t==="prefinish",Oir=t=>t instanceof ArrayBuffer||typeof t=="object"&&t.constructor&&t.constructor.name==="ArrayBuffer"&&t.byteLength>=0,Pir=t=>!Buffer.isBuffer(t)&&ArrayBuffer.isView(t),V3=class{constructor(e,r,i){this.src=e,this.dest=r,this.opts=i,this.ondrain=()=>e[rS](),r.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},Kae=class extends V3{unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(e,r,i){super(e,r,i),this.proxyErrors=s=>r.emit("error",s),e.on("error",this.proxyErrors)}};MVe.exports=class FVe extends DVe{constructor(e){super(),this[z3]=!1,this[dT]=!1,this.pipes=[],this.buffer=[],this[Fn]=e&&e.objectMode||!1,this[Fn]?this[da]=null:this[da]=e&
Line truncated
|
||||
`+o.map(h=>{let d=JSON.stringify(h);return`${g4(d)} ${d}`}).join(`
|
||||
`),c=async()=>{let h=dcr(Bh.join(t,"tmp"),i.tmpPrefix);return await Vce(Bh.dirname(h),{recursive:!0}),{target:h,moved:!1}},u=async h=>{if(!h.moved)return YJe(h.target,{recursive:!0,force:!0})},l=async h=>{await lcr(h.target,a,{flag:"wx"}),await Vce(Bh.dirname(s),{recursive:!0}),await gcr(h.target,s),h.moved=!0},f=await c();try{await l(f)}finally{await u(f)}return o.reverse().map(h=>y4(t,h,!0))}fc.exports.insert=KJe;async function KJe(t,e,r,i={}){let{metadata:s,size:n,time:o}=i,a=TT(t,e),c={key:e,integrity:r&&hcr.stringify(r),time:o||Date.now(),size:n,metadata:s};try{await Vce(Bh.dirname(a),{recursive:!0});let u=JSON.stringify(c);await acr(a,`
|
||||
${g4(u)} ${u}`)}catch(u){if(u.code==="ENOENT")return;throw u}return y4(t,c)}fc.exports.find=Ecr;async function Ecr(t,e){let r=TT(t,e);try{return(await A4(r)).reduce((s,n)=>n&&n.key===e?y4(t,n):s,null)}catch(i){if(i.code==="ENOENT")return null;throw i}}fc.exports.delete=bcr;function bcr(t,e,r={}){if(!r.removeFully)return KJe(t,e,null,r);let i=TT(t,e);return YJe(i,{recursive:!0,force:!0})}fc.exports.lsStream=XJe;function XJe(t){let e=$ce(t),r=new fcr({objectMode:!0});return Promise.resolve().then(async()=>{let{default:i}=await Promise.resolve().then(()=>(m4(),p4)),s=await zce(e);return await i(s,async n=>{let o=Bh.join(e,n),a=await zce(o);await i(a,async c=>{let u=Bh.join(o,c),l=await zce(u);await i(l,async f=>{let h=Bh.join(u,f);try{let m=(await A4(h)).reduce((A,y)=>(A.set(y.key,y),A),new Map);for(let A of m.values()){let y=y4(t,A);y&&r.write(y)}}catch(d){if(d.code==="ENOENT")return;throw d}},{concurrency:jce})},{concurrency:jce})},{concurrency:jce}),r.end(),r}).catch(i=>r.emit("error",i)),r}fc.exports.ls=wcr;async function wcr(t){return(await XJe(t).collect()).reduce((r,i)=>(r[i.key]=i,r),{})}fc.exports.bucketEntries=A4;async function A4(t,e){let r=await ccr(t,"utf8");return Ccr(r,e)}function Ccr(t){let e=[];return t.split(`
|
||||
`).forEach(r=>{if(!r)return;let i=r.split(" ");if(!i[1]||g4(i[1])!==i[0])return;let s;try{s=JSON.parse(i[1])}catch{}s&&e.push(s)}),e}fc.exports.bucketDir=$ce;function $ce(t){return Bh.join(t,`index-v${Acr}`)}fc.exports.bucketPath=TT;function TT(t,e){let r=ZJe(e);return Bh.join.apply(Bh,[$ce(t)].concat(mcr(r)))}fc.exports.hashKey=ZJe;function ZJe(t){return eYe(t,"sha256")}fc.exports.hashEntry=g4;function g4(t){return eYe(t,"sha1")}function eYe(t,e){return ocr.createHash(e).update(t).digest("hex")}function y4(t,e,r){return!e.integrity&&!r?null:{key:e.key,integrity:e.integrity,path:e.integrity?pcr(t,e.integrity):void 0,size:e.size,time:e.time,metadata:e.metadata}}function zce(t){return ucr(t).catch(e=>{if(e.code==="ENOENT"||e.code==="ENOTDIR")return[];throw e})}});var pS=p(b4=>{"use strict";Object.defineProperty(b4,"__esModule",{value:!0});b4.LRUCache=void 0;var Icr=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,rYe=new Set,Wce=typeof process=="object"&&process?process:{},iYe=(t,e,r,i)=>{typeof Wce.emitWarning=="function"?Wce.emitWarning(t,e,r,i):console.error(`[${r}] ${e}: ${t}`)},E4=globalThis.AbortController,tYe=globalThis.AbortSignal;if(typeof E4>"u"){tYe=class{onabort;_onabort=[];reason;aborted=!1;addEventListener(i,s){this._onabort.push(s)}},E4=class{constructor(){e()}signal=new tYe;abort(i){if(!this.signal.aborted){this.signal.reason=i,this.signal.aborted=!0;for(let s of this.signal._onabort)s(i);this.signal.onabort?.(i)}}};let t=Wce.env?.LRU_CACHE_IGNORE_AC_WARNING!=="1",e=()=>{t&&(t=!1,iYe("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.","NO_ABORT_CONTROLLER","ENOTSUP",e))}}var Scr=t=>!rYe.has(t),MA=t=>t&&t===Math.floor(t)&&t>0&&isFinite(t),sYe=t=>MA(t)?t<=Math.pow(2,8)?Uint8Array:t<=Math.pow(2,16)?Uint16Array:t<=Math.pow(2,32)?Uint32Array:t<=Number.MAX_SAFE_INTEGER?dS:null:null,dS=class extends Array{constructor(e){super(e),this.fill(0)}},Jce=class t{heap;length;static#e=!1;static create(e){let r=sYe(e);if(!r)return[];t.#e=!0;let i=new t(e,r);return t.#e=!1,i}constructor(e,r){if(!t.#e)throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new r(e),this.length=0}push(e){this.heap[this.length++]=e}pop(){return this.heap[--this.length]}},Yce=class t{#e;#t;#i;#r;#s;#n;#l;#u;get perf(){return this.#u}ttl;ttlResolution;ttlAutopurge;updateAgeOnGet;updateAgeOnHas;allowStale;noDisposeOnSet;noUpdateTTL;maxEntrySize;sizeCalculation;noDeleteOnFetchRejection;noDeleteOnStaleGet;allowStaleOnFetchAbort;allowStaleOnFetchRejection;ignoreFetchAbort;#a;#c;#h;#d;#f;#m;#b;#A;#w;#v;#y;#C;#x;#p;#I;#_;#E;#o;static unsafeExposeInternals(e){return{starts:e.#x,ttls:e.#p,sizes:e.#C,keyMap:e.#h,keyList:e.#d,valList:e.#f,next:e.#m,prev:e.#b,get head(){return e.#A},get tail(){return e.#w},free:e.#v,isBackgroundFetch:r=>e.#S(r),backgroundFetch:(r,i,s,n)=>e.#j(r,i,s,n),moveToTail:r=>e.#q(r),indexes:r=>e.#O(r),rindexes:r=>e.#g(r),isStale:r=>e.#N(r)}}get max(){return this.#e}get maxSize(){return this.#t}get calculatedSize(){return this.#c}get size(){return this.#a}get fetchMethod(){return this.#n}get memoMethod(){return this.#l}get dispose(){return this.#i}get onInsert(){return this.#r}get disposeAfter(){return this.#s}constructor(e){let{max:r=0,ttl:i,ttlResolution:s=1,ttlAutopurge:n,updateAgeOnGet:o,updateAgeOnHas:a,allowStale:c,dispose:u,onInsert:l,disposeAfter:f,noDisposeOnSet:h,noUpdateTTL:d,maxSize:m=0,maxEntrySize:A=0,sizeCalculation:y,fetchMethod:g,memoMethod:E,noDeleteOnFetchRejection:w,noDeleteOnStaleGet:S,allowStaleOnFetchRejection:D,allowStaleOnFetchAbort:q,ignoreFetchAbort:T,perf:$}=e;if($!==void 0&&typeof $?.now!="function")throw new TypeError("perf option must have a now() method if specified");if(this.#u=$??Icr,r!==0&&!MA(r))throw new TypeError("max option must be a nonnegative integer");let O=r?sYe(r):Array;if(!O)throw new Error("invalid max value: "+r);if(this.#e=r,this.#t=m,this.maxEntrySize=A||this.#t,this.sizeCalculation=y,this.sizeCalculation){if(!this.#t&&!this.maxEntrySize)throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if(typeof this.sizeCalculation!="function")throw new TypeError("sizeCalculation set to non-function")}if(E!==void 0&&typeof E!="function")throw new TypeError("memoMethod must be a function if defined");if(this.#l=E,g!==void 0&&typeof g!="function")throw new TypeError("fetchMethod must be a function if specified");if(this.#n=g,this.#_=!!g,this.#h=new Map,this.#d=new Array(r).fill(void 0),this.#f=new Array(r).fill(void 0),this.#m=new O(r),this.#b=new O(r),this.#A=0,this.#w=0,this.#v=Jce.create(r),this.#a=0,this.#c=0,typeof u=="fu
Line truncated
|
||||
Wanted: ${t}
|
||||
Found: ${e}`);return r.code="EINTEGRITY",r.expected=t,r.found=e,r}});var pYe=p((LXr,tue)=>{"use strict";var lYe=uS(),fYe=RN(),hYe=uYe(),qcr=hN(),{PassThrough:Gcr}=$ae(),Hcr=$E(),dYe=t=>({algorithms:["sha512"],...t});tue.exports=jcr;async function jcr(t,e,r,i={}){let{memoize:s}=i;i=dYe(i);let n=await hYe(t,r,i),o=await lYe.insert(t,e,n.integrity,{...i,size:n.size});return s&&fYe.put(t,o,r,i),n.integrity}tue.exports.stream=zcr;function zcr(t,e,r={}){let{memoize:i}=r;r=dYe(r);let s,n,o,a,c=new Hcr;if(i){let l=new Gcr().on("collect",f=>{a=f});c.push(l)}let u=hYe.stream(t,r).on("integrity",l=>{s=l}).on("size",l=>{n=l}).on("error",l=>{o=l});return c.push(u),c.push(new qcr({async flush(){if(!o){let l=await lYe.insert(t,e,s,{...r,size:n});i&&a&&fYe.put(t,l,a,r),c.emit("integrity",s),c.emit("size",n)}}})),c}});var AYe=p(r0=>{"use strict";Object.defineProperty(r0,"__esModule",{value:!0});r0.range=r0.balanced=void 0;var Vcr=(t,e,r)=>{let i=t instanceof RegExp?mYe(t,r):t,s=e instanceof RegExp?mYe(e,r):e,n=i!==null&&s!=null&&(0,r0.range)(i,s,r);return n&&{start:n[0],end:n[1],pre:r.slice(0,n[0]),body:r.slice(n[0]+i.length,n[1]),post:r.slice(n[1]+s.length)}};r0.balanced=Vcr;var mYe=(t,e)=>{let r=e.match(t);return r?r[0]:null},$cr=(t,e,r)=>{let i,s,n,o,a,c=r.indexOf(t),u=r.indexOf(e,c+1),l=c;if(c>=0&&u>0){if(t===e)return[c,u];for(i=[],n=r.length;l>=0&&!a;){if(l===c)i.push(l),c=r.indexOf(t,l+1);else if(i.length===1){let f=i.pop();f!==void 0&&(a=[f,u])}else s=i.pop(),s!==void 0&&s<n&&(n=s,o=u),u=r.indexOf(e,l+1);l=c<u&&c>=0?c:u}i.length&&o!==void 0&&(a=[n,o])}return a};r0.range=$cr});var sue=p(bS=>{"use strict";Object.defineProperty(bS,"__esModule",{value:!0});bS.EXPANSION_MAX=void 0;bS.expand=our;var gYe=AYe(),yYe="\0SLASH"+Math.random()+"\0",EYe="\0OPEN"+Math.random()+"\0",iue="\0CLOSE"+Math.random()+"\0",bYe="\0COMMA"+Math.random()+"\0",wYe="\0PERIOD"+Math.random()+"\0",Wcr=new RegExp(yYe,"g"),Jcr=new RegExp(EYe,"g"),Ycr=new RegExp(iue,"g"),Kcr=new RegExp(bYe,"g"),Xcr=new RegExp(wYe,"g"),Zcr=/\\\\/g,eur=/\\{/g,tur=/\\}/g,rur=/\\,/g,iur=/\\./g;bS.EXPANSION_MAX=1e5;function rue(t){return isNaN(t)?t.charCodeAt(0):parseInt(t,10)}function sur(t){return t.replace(Zcr,yYe).replace(eur,EYe).replace(tur,iue).replace(rur,bYe).replace(iur,wYe)}function nur(t){return t.replace(Wcr,"\\").replace(Jcr,"{").replace(Ycr,"}").replace(Kcr,",").replace(Xcr,".")}function CYe(t){if(!t)return[""];let e=[],r=(0,gYe.balanced)("{","}",t);if(!r)return t.split(",");let{pre:i,body:s,post:n}=r,o=i.split(",");o[o.length-1]+="{"+s+"}";let a=CYe(n);return n.length&&(o[o.length-1]+=a.shift(),o.push.apply(o,a)),e.push.apply(e,o),e}function our(t,e={}){if(!t)return[];let{max:r=bS.EXPANSION_MAX}=e;return t.slice(0,2)==="{}"&&(t="\\{\\}"+t.slice(2)),kN(sur(t),r,!0).map(nur)}function aur(t){return"{"+t+"}"}function cur(t){return/^-?0\d/.test(t)}function uur(t,e){return t<=e}function lur(t,e){return t>=e}function kN(t,e,r){let i=[],s=(0,gYe.balanced)("{","}",t);if(!s)return[t];let n=s.pre,o=s.post.length?kN(s.post,e,!1):[""];if(/\$$/.test(s.pre))for(let a=0;a<o.length&&a<e;a++){let c=n+"{"+s.body+"}"+o[a];i.push(c)}else{let a=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(s.body),c=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(s.body),u=a||c,l=s.body.indexOf(",")>=0;if(!u&&!l)return s.post.match(/,(?!,).*\}/)?(t=s.pre+"{"+s.body+iue+s.post,kN(t,e,!0)):[t];let f;if(u)f=s.body.split(/\.\./);else if(f=CYe(s.body),f.length===1&&f[0]!==void 0&&(f=kN(f[0],e,!1).map(aur),f.length===1))return o.map(d=>s.pre+f[0]+d);let h;if(u&&f[0]!==void 0&&f[1]!==void 0){let d=rue(f[0]),m=rue(f[1]),A=Math.max(f[0].length,f[1].length),y=f.length===3&&f[2]!==void 0?Math.abs(rue(f[2])):1,g=uur;m<d&&(y*=-1,g=lur);let C=f.some(cur);h=[];for(let S=d;g(S,m);S+=y){let D;if(c)D=String.fromCharCode(S),D==="\\"&&(D="");else if(D=String(S),C){let q=A-D.length;if(q>0){let N=new Array(q+1).join("0");S<0?D="-"+N+D.slice(1):D=N+D}}h.push(D)}}else{h=[];for(let d=0;d<f.length;d++)h.push.apply(h,kN(f[d],e,!1))}for(let d=0;d<h.length;d++)for(let m=0;m<o.length&&i.length<e;m++){let A=n+h[d]+o[m];(!r||u||A)&&i.push(A)}}return i}});var IYe=p(B4=>{"use strict";Object.defineProperty(B4,"__esModule",{value:!0});B4.assertValidPattern=void 0;var fur=1024*64,hur=t=>{if(typeof t!="string")throw new TypeError("invalid pattern");if(t.length>fur)throw new TypeError("pattern is too long")};B4.assertValidPattern=hur});var BYe=p(v4=>{"use strict";Object.defineProperty(v4,"__esModule",{value:!0});v4.parseClass=void 0;var dur={"[:alnum:]":["\\p{L}\\p{Nl}\\p{Nd}",!0],"[:alpha:]":["\\p{L}\\p{Nl}",!0],"[:ascii:]":["\\x00-\\x7f",!1],"[:blank:]":["\\p{Zs}\\t",!0],"[:cntrl:]":["\\p{Cc}",!0],"[:digit:]":["\\p{Nd}",!0],"[:graph:]":["\\p{Z}\\p{C}",!0,!0],"[:lower:]":["\\p{Ll}",!0],"[:print:]":["\\p{C}",!0],"[:punct:]":["\\p{P}",!0],"[:space:]":["\\p{Z}\\t\\r\\n\\v\\f",!0],"[:upper:]":["\\p{Lu}",!0],"[:word:]":["\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}",!0],"[:xdigit:]":["A-Fa-f0-9",!1]},LN=t=>t.replace(/[[\]\\-]/g,"\\$&"),pur=t=>t.replace(/[-[\]{}()
Line truncated
|
||||
Found: ${e}`);return r.code="EINTEGRITY",r.expected=t,r.found=e,r}});var vYe=p((dZr,lue)=>{"use strict";var CYe=hS(),IYe=DT(),SYe=wYe(),our=mT(),{PassThrough:aur}=rce(),cur=JE(),BYe=t=>({algorithms:["sha512"],...t});lue.exports=uur;async function uur(t,e,r,i={}){let{memoize:s}=i;i=BYe(i);let n=await SYe(t,r,i),o=await CYe.insert(t,e,n.integrity,{...i,size:n.size});return s&&IYe.put(t,o,r,i),n.integrity}lue.exports.stream=lur;function lur(t,e,r={}){let{memoize:i}=r;r=BYe(r);let s,n,o,a,c=new cur;if(i){let l=new aur().on("collect",f=>{a=f});c.push(l)}let u=SYe.stream(t,r).on("integrity",l=>{s=l}).on("size",l=>{n=l}).on("error",l=>{o=l});return c.push(u),c.push(new our({async flush(){if(!o){let l=await CYe.insert(t,e,s,{...r,size:n});i&&a&&IYe.put(t,l,a,r),c.emit("integrity",s),c.emit("size",n)}}})),c}});var _Ye=p(s0=>{"use strict";Object.defineProperty(s0,"__esModule",{value:!0});s0.range=s0.balanced=void 0;var fur=(t,e,r)=>{let i=t instanceof RegExp?xYe(t,r):t,s=e instanceof RegExp?xYe(e,r):e,n=i!==null&&s!=null&&(0,s0.range)(i,s,r);return n&&{start:n[0],end:n[1],pre:r.slice(0,n[0]),body:r.slice(n[0]+i.length,n[1]),post:r.slice(n[1]+s.length)}};s0.balanced=fur;var xYe=(t,e)=>{let r=e.match(t);return r?r[0]:null},hur=(t,e,r)=>{let i,s,n,o,a,c=r.indexOf(t),u=r.indexOf(e,c+1),l=c;if(c>=0&&u>0){if(t===e)return[c,u];for(i=[],n=r.length;l>=0&&!a;){if(l===c)i.push(l),c=r.indexOf(t,l+1);else if(i.length===1){let f=i.pop();f!==void 0&&(a=[f,u])}else s=i.pop(),s!==void 0&&s<n&&(n=s,o=u),u=r.indexOf(e,l+1);l=c<u&&c>=0?c:u}i.length&&o!==void 0&&(a=[n,o])}return a};s0.range=hur});var due=p(IS=>{"use strict";Object.defineProperty(IS,"__esModule",{value:!0});IS.EXPANSION_MAX=void 0;IS.expand=Bur;var RYe=_Ye(),NYe="\0SLASH"+Math.random()+"\0",TYe="\0OPEN"+Math.random()+"\0",hue="\0CLOSE"+Math.random()+"\0",DYe="\0COMMA"+Math.random()+"\0",OYe="\0PERIOD"+Math.random()+"\0",dur=new RegExp(NYe,"g"),pur=new RegExp(TYe,"g"),mur=new RegExp(hue,"g"),Aur=new RegExp(DYe,"g"),gur=new RegExp(OYe,"g"),yur=/\\\\/g,Eur=/\\{/g,bur=/\\}/g,wur=/\\,/g,Cur=/\\./g;IS.EXPANSION_MAX=1e5;function fue(t){return isNaN(t)?t.charCodeAt(0):parseInt(t,10)}function Iur(t){return t.replace(yur,NYe).replace(Eur,TYe).replace(bur,hue).replace(wur,DYe).replace(Cur,OYe)}function Sur(t){return t.replace(dur,"\\").replace(pur,"{").replace(mur,"}").replace(Aur,",").replace(gur,".")}function PYe(t){if(!t)return[""];let e=[],r=(0,RYe.balanced)("{","}",t);if(!r)return t.split(",");let{pre:i,body:s,post:n}=r,o=i.split(",");o[o.length-1]+="{"+s+"}";let a=PYe(n);return n.length&&(o[o.length-1]+=a.shift(),o.push.apply(o,a)),e.push.apply(e,o),e}function Bur(t,e={}){if(!t)return[];let{max:r=IS.EXPANSION_MAX}=e;return t.slice(0,2)==="{}"&&(t="\\{\\}"+t.slice(2)),MT(Iur(t),r,!0).map(Sur)}function vur(t){return"{"+t+"}"}function xur(t){return/^-?0\d/.test(t)}function _ur(t,e){return t<=e}function Rur(t,e){return t>=e}function MT(t,e,r){let i=[],s=(0,RYe.balanced)("{","}",t);if(!s)return[t];let n=s.pre,o=s.post.length?MT(s.post,e,!1):[""];if(/\$$/.test(s.pre))for(let a=0;a<o.length&&a<e;a++){let c=n+"{"+s.body+"}"+o[a];i.push(c)}else{let a=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(s.body),c=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(s.body),u=a||c,l=s.body.indexOf(",")>=0;if(!u&&!l)return s.post.match(/,(?!,).*\}/)?(t=s.pre+"{"+s.body+hue+s.post,MT(t,e,!0)):[t];let f;if(u)f=s.body.split(/\.\./);else if(f=PYe(s.body),f.length===1&&f[0]!==void 0&&(f=MT(f[0],e,!1).map(vur),f.length===1))return o.map(d=>s.pre+f[0]+d);let h;if(u&&f[0]!==void 0&&f[1]!==void 0){let d=fue(f[0]),m=fue(f[1]),A=Math.max(f[0].length,f[1].length),y=f.length===3&&f[2]!==void 0?Math.abs(fue(f[2])):1,g=_ur;m<d&&(y*=-1,g=Rur);let w=f.some(xur);h=[];for(let S=d;g(S,m);S+=y){let D;if(c)D=String.fromCharCode(S),D==="\\"&&(D="");else if(D=String(S),w){let q=A-D.length;if(q>0){let T=new Array(q+1).join("0");S<0?D="-"+T+D.slice(1):D=T+D}}h.push(D)}}else{h=[];for(let d=0;d<f.length;d++)h.push.apply(h,MT(f[d],e,!1))}for(let d=0;d<h.length;d++)for(let m=0;m<o.length&&i.length<e;m++){let A=n+h[d]+o[m];(!r||u||A)&&i.push(A)}}return i}});var QYe=p(T4=>{"use strict";Object.defineProperty(T4,"__esModule",{value:!0});T4.assertValidPattern=void 0;var Nur=1024*64,Tur=t=>{if(typeof t!="string")throw new TypeError("invalid pattern");if(t.length>Nur)throw new TypeError("pattern is too long")};T4.assertValidPattern=Tur});var LYe=p(D4=>{"use strict";Object.defineProperty(D4,"__esModule",{value:!0});D4.parseClass=void 0;var Dur={"[:alnum:]":["\\p{L}\\p{Nl}\\p{Nd}",!0],"[:alpha:]":["\\p{L}\\p{Nl}",!0],"[:ascii:]":["\\x00-\\x7f",!1],"[:blank:]":["\\p{Zs}\\t",!0],"[:cntrl:]":["\\p{Cc}",!0],"[:digit:]":["\\p{Nd}",!0],"[:graph:]":["\\p{Z}\\p{C}",!0,!0],"[:lower:]":["\\p{Ll}",!0],"[:print:]":["\\p{C}",!0],"[:punct:]":["\\p{P}",!0],"[:space:]":["\\p{Z}\\t\\r\\n\\v\\f",!0],"[:upper:]":["\\p{Lu}",!0],"[:word:]":["\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}",!0],"[:xdigit:]":["A-Fa-f0-9",!1]},UT=t=>t.replace(/[[\]\\-]/g,"\\$&"),Our=t=>t.replace(/[-[\]{}()
Line truncated
|
||||
globstar while`,e,h,r,d,m),this.matchOne(e.slice(h),r.slice(d),i))return this.debug("globstar found match!",h,c,m),!0;if(m==="."||m===".."||!s.dot&&m.charAt(0)==="."){this.debug("dot detected!",e,h,r,d);break}this.debug("globstar swallow a segment, and continue"),h++}return!!(i&&(this.debug(`
|
||||
>>> no match, partial?`,e,h,r,d),h===c))}let A;if(typeof l=="string"?(A=f===l,this.debug("string match",l,f,A)):(A=l.test(f),this.debug("pattern match",l,f,A)),!A)return!1}if(o===c&&a===u)return!0;if(o===c)return i;if(a===u)return o===c-1&&e[o]==="";throw new Error("wtf?")}braceExpand(){return(0,Oe.braceExpand)(this.pattern,this.options)}parse(e){(0,O4.assertValidPattern)(e);let r=this.options;if(e==="**")return Oe.GLOBSTAR;if(e==="")return"";let i,s=null;(i=e.match(Fur))?s=r.dot?qur:Uur:(i=e.match(Rur))?s=(r.nocase?r.dot?Our:Dur:r.dot?Nur:Tur)(i[1]):(i=e.match(Gur))?s=(r.nocase?r.dot?jur:Hur:r.dot?zur:Vur)(i):(i=e.match(Pur))?s=r.dot?kur:Qur:(i=e.match(Lur))&&(s=Mur);let n=NYe.AST.fromGlob(e,this.options).toMMPattern();return s&&typeof n=="object"&&Reflect.defineProperty(n,"test",{value:s}),n}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;let e=this.set;if(!e.length)return this.regexp=!1,this.regexp;let r=this.options,i=r.noglobstar?Wur:r.dot?Jur:Yur,s=new Set(r.nocase?["i"]:[]),n=e.map(c=>{let u=c.map(f=>{if(f instanceof RegExp)for(let h of f.flags.split(""))s.add(h);return typeof f=="string"?rlr(f):f===Oe.GLOBSTAR?Oe.GLOBSTAR:f._src});u.forEach((f,h)=>{let d=u[h+1],m=u[h-1];f!==Oe.GLOBSTAR||m===Oe.GLOBSTAR||(m===void 0?d!==void 0&&d!==Oe.GLOBSTAR?u[h+1]="(?:\\/|"+i+"\\/)?"+d:u[h]=i:d===void 0?u[h-1]=m+"(?:\\/|\\/"+i+")?":d!==Oe.GLOBSTAR&&(u[h-1]=m+"(?:\\/|\\/"+i+"\\/)"+d,u[h+1]=Oe.GLOBSTAR))});let l=u.filter(f=>f!==Oe.GLOBSTAR);if(this.partial&&l.length>=1){let f=[];for(let h=1;h<=l.length;h++)f.push(l.slice(0,h).join("/"));return"(?:"+f.join("|")+")"}return l.join("/")}).join("|"),[o,a]=e.length>1?["(?:",")"]:["",""];n="^"+o+n+a+"$",this.partial&&(n="^(?:\\/|"+o+n.slice(1,-1)+a+")$"),this.negate&&(n="^(?!"+n+").+$");try{this.regexp=new RegExp(n,[...s].join(""))}catch{this.regexp=!1}return this.regexp}slashSplit(e){return this.preserveMultipleSlashes?e.split("/"):this.isWindows&&/^\/\/[^\/]+/.test(e)?["",...e.split(/\/+/)]:e.split(/\/+/)}match(e,r=this.partial){if(this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return e==="";if(e==="/"&&r)return!0;let i=this.options;this.isWindows&&(e=e.split("\\").join("/"));let s=this.slashSplit(e);this.debug(this.pattern,"split",s);let n=this.set;this.debug(this.pattern,"set",n);let o=s[s.length-1];if(!o)for(let a=s.length-2;!o&&a>=0;a--)o=s[a];for(let a=0;a<n.length;a++){let c=n[a],u=s;if(i.matchBase&&c.length===1&&(u=[o]),this.matchOne(u,c,r))return i.flipNegate?!0:!this.negate}return i.flipNegate?!1:this.negate}static defaults(e){return Oe.minimatch.defaults(e).Minimatch}};Oe.Minimatch=i0;var ilr=aue();Object.defineProperty(Oe,"AST",{enumerable:!0,get:function(){return ilr.AST}});var slr=cue();Object.defineProperty(Oe,"escape",{enumerable:!0,get:function(){return slr.escape}});var nlr=_4();Object.defineProperty(Oe,"unescape",{enumerable:!0,get:function(){return nlr.unescape}});Oe.minimatch.AST=NYe.AST;Oe.minimatch.Minimatch=i0;Oe.minimatch.escape=vur.escape;Oe.minimatch.unescape=xur.unescape});var UYe=p(Do=>{"use strict";var olr=Do&&Do.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Do,"__esModule",{value:!0});Do.Minipass=Do.isWritable=Do.isReadable=Do.isStream=void 0;var QYe=typeof process=="object"&&process?process:{stdout:null,stderr:null},mue=require("node:events"),FYe=olr(require("node:stream")),alr=require("node:string_decoder"),clr=t=>!!t&&typeof t=="object"&&(t instanceof U4||t instanceof FYe.default||(0,Do.isReadable)(t)||(0,Do.isWritable)(t));Do.isStream=clr;var ulr=t=>!!t&&typeof t=="object"&&t instanceof mue.EventEmitter&&typeof t.pipe=="function"&&t.pipe!==FYe.default.Writable.prototype.pipe;Do.isReadable=ulr;var llr=t=>!!t&&typeof t=="object"&&t instanceof mue.EventEmitter&&typeof t.write=="function"&&typeof t.end=="function";Do.isWritable=llr;var Lp=Symbol("EOF"),Mp=Symbol("maybeEmitEnd"),HA=Symbol("emittedEnd"),P4=Symbol("emittingEnd"),MN=Symbol("emittedError"),Q4=Symbol("closed"),kYe=Symbol("read"),k4=Symbol("flush"),LYe=Symbol("flushChunk"),xl=Symbol("encoding"),wS=Symbol("decoder"),Fs=Symbol("flowing"),FN=Symbol("paused"),CS=Symbol("resume"),Us=Symbol("buffer"),No=Symbol("pipes"),qs=Symbol("bufferLength"),uue=Symbol("bufferPush"),L4=Symbol("bufferShift"),Hn=Symbol("objectMode"),Qi=Symbol("destroyed"),lue=Symbol("error"),fue=Symbol("emitData"),MYe=Symbol("emitEnd"),hue=Symbol("emitEnd2"),_h=Symbol("async"),due=Symbol("abort"),M4=Symbol("aborted"),UN=Symbol("signal"),s0=Symbol("dataListeners"),dc=Symbol("discarded"),qN=t=>Promise.resolve().then(t),flr=t=>t(),hlr=t=>t==="end"||t==="finish"||t==="prefinish",dlr=t=>t instanceof ArrayBuffer||!!t&&typeof t=="object"&&t.constructor&&t.constructor.name==="ArrayBuffer"&&t.byteLength>=0,plr=t=>!Buffer.isBuffer(t)&&ArrayBuffer.isView(t),F4=class{src;dest;opts;ondrain;constructor(e,r,i){this.src=e,this.dest=r,this.opts=i,this.ondrain=()=>e[CS](),this.dest.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondra
Line truncated
|
||||
>>> no match, partial?`,e,h,r,d),h===c))}let A;if(typeof l=="string"?(A=f===l,this.debug("string match",l,f,A)):(A=l.test(f),this.debug("pattern match",l,f,A)),!A)return!1}if(o===c&&a===u)return!0;if(o===c)return i;if(a===u)return o===c-1&&e[o]==="";throw new Error("wtf?")}braceExpand(){return(0,Oe.braceExpand)(this.pattern,this.options)}parse(e){(0,M4.assertValidPattern)(e);let r=this.options;if(e==="**")return Oe.GLOBSTAR;if(e==="")return"";let i,s=null;(i=e.match(slr))?s=r.dot?olr:nlr:(i=e.match(Wur))?s=(r.nocase?r.dot?Xur:Kur:r.dot?Yur:Jur)(i[1]):(i=e.match(alr))?s=(r.nocase?r.dot?ulr:clr:r.dot?llr:flr)(i):(i=e.match(Zur))?s=r.dot?tlr:elr:(i=e.match(rlr))&&(s=ilr);let n=HYe.AST.fromGlob(e,this.options).toMMPattern();return s&&typeof n=="object"&&Reflect.defineProperty(n,"test",{value:s}),n}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;let e=this.set;if(!e.length)return this.regexp=!1,this.regexp;let r=this.options,i=r.noglobstar?dlr:r.dot?plr:mlr,s=new Set(r.nocase?["i"]:[]),n=e.map(c=>{let u=c.map(f=>{if(f instanceof RegExp)for(let h of f.flags.split(""))s.add(h);return typeof f=="string"?wlr(f):f===Oe.GLOBSTAR?Oe.GLOBSTAR:f._src});u.forEach((f,h)=>{let d=u[h+1],m=u[h-1];f!==Oe.GLOBSTAR||m===Oe.GLOBSTAR||(m===void 0?d!==void 0&&d!==Oe.GLOBSTAR?u[h+1]="(?:\\/|"+i+"\\/)?"+d:u[h]=i:d===void 0?u[h-1]=m+"(?:\\/|\\/"+i+")?":d!==Oe.GLOBSTAR&&(u[h-1]=m+"(?:\\/|\\/"+i+"\\/)"+d,u[h+1]=Oe.GLOBSTAR))});let l=u.filter(f=>f!==Oe.GLOBSTAR);if(this.partial&&l.length>=1){let f=[];for(let h=1;h<=l.length;h++)f.push(l.slice(0,h).join("/"));return"(?:"+f.join("|")+")"}return l.join("/")}).join("|"),[o,a]=e.length>1?["(?:",")"]:["",""];n="^"+o+n+a+"$",this.partial&&(n="^(?:\\/|"+o+n.slice(1,-1)+a+")$"),this.negate&&(n="^(?!"+n+").+$");try{this.regexp=new RegExp(n,[...s].join(""))}catch{this.regexp=!1}return this.regexp}slashSplit(e){return this.preserveMultipleSlashes?e.split("/"):this.isWindows&&/^\/\/[^\/]+/.test(e)?["",...e.split(/\/+/)]:e.split(/\/+/)}match(e,r=this.partial){if(this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return e==="";if(e==="/"&&r)return!0;let i=this.options;this.isWindows&&(e=e.split("\\").join("/"));let s=this.slashSplit(e);this.debug(this.pattern,"split",s);let n=this.set;this.debug(this.pattern,"set",n);let o=s[s.length-1];if(!o)for(let a=s.length-2;!o&&a>=0;a--)o=s[a];for(let a=0;a<n.length;a++){let c=n[a],u=s;if(i.matchBase&&c.length===1&&(u=[o]),this.matchOne(u,c,r))return i.flipNegate?!0:!this.negate}return i.flipNegate?!1:this.negate}static defaults(e){return Oe.minimatch.defaults(e).Minimatch}};Oe.Minimatch=n0;var Clr=Aue();Object.defineProperty(Oe,"AST",{enumerable:!0,get:function(){return Clr.AST}});var Ilr=gue();Object.defineProperty(Oe,"escape",{enumerable:!0,get:function(){return Ilr.escape}});var Slr=P4();Object.defineProperty(Oe,"unescape",{enumerable:!0,get:function(){return Slr.unescape}});Oe.minimatch.AST=HYe.AST;Oe.minimatch.Minimatch=n0;Oe.minimatch.escape=zur.escape;Oe.minimatch.unescape=Vur.unescape});var XYe=p(Do=>{"use strict";var Blr=Do&&Do.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Do,"__esModule",{value:!0});Do.Minipass=Do.isWritable=Do.isReadable=Do.isStream=void 0;var $Ye=typeof process=="object"&&process?process:{stdout:null,stderr:null},Sue=require("node:events"),KYe=Blr(require("node:stream")),vlr=require("node:string_decoder"),xlr=t=>!!t&&typeof t=="object"&&(t instanceof V4||t instanceof KYe.default||(0,Do.isReadable)(t)||(0,Do.isWritable)(t));Do.isStream=xlr;var _lr=t=>!!t&&typeof t=="object"&&t instanceof Sue.EventEmitter&&typeof t.pipe=="function"&&t.pipe!==KYe.default.Writable.prototype.pipe;Do.isReadable=_lr;var Rlr=t=>!!t&&typeof t=="object"&&t instanceof Sue.EventEmitter&&typeof t.write=="function"&&typeof t.end=="function";Do.isWritable=Rlr;var kp=Symbol("EOF"),Lp=Symbol("maybeEmitEnd"),jA=Symbol("emittedEnd"),U4=Symbol("emittingEnd"),qT=Symbol("emittedError"),q4=Symbol("closed"),WYe=Symbol("read"),G4=Symbol("flush"),JYe=Symbol("flushChunk"),vl=Symbol("encoding"),SS=Symbol("decoder"),Ms=Symbol("flowing"),GT=Symbol("paused"),BS=Symbol("resume"),Us=Symbol("buffer"),To=Symbol("pipes"),qs=Symbol("bufferLength"),yue=Symbol("bufferPush"),H4=Symbol("bufferShift"),Hn=Symbol("objectMode"),Qi=Symbol("destroyed"),Eue=Symbol("error"),bue=Symbol("emitData"),YYe=Symbol("emitEnd"),wue=Symbol("emitEnd2"),xh=Symbol("async"),Cue=Symbol("abort"),j4=Symbol("aborted"),HT=Symbol("signal"),o0=Symbol("dataListeners"),hc=Symbol("discarded"),jT=t=>Promise.resolve().then(t),Nlr=t=>t(),Tlr=t=>t==="end"||t==="finish"||t==="prefinish",Dlr=t=>t instanceof ArrayBuffer||!!t&&typeof t=="object"&&t.constructor&&t.constructor.name==="ArrayBuffer"&&t.byteLength>=0,Olr=t=>!Buffer.isBuffer(t)&&ArrayBuffer.isView(t),z4=class{src;dest;opts;ondrain;constructor(e,r,i){this.src=e,this.dest=r,this.opts=i,this.ondrain=()=>e[BS](),this.dest.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondra
Line truncated
|
||||
\r
|
||||
`);if(h===-1){g5("have not received end of HTTP headers yet..."),n();return}let d=f.slice(0,h).toString("ascii").split(`\r
|
||||
`),m=d.shift();if(!m)return t.destroy(),r(new Error("No header received from proxy CONNECT response"));let A=m.split(" "),y=+A[1],g=A.slice(2).join(" "),E={};for(let C of d){if(!C)continue;let S=C.indexOf(":");if(S===-1)return t.destroy(),r(new Error(`Invalid header from proxy CONNECT response: "${C}"`));let D=C.slice(0,S).toLowerCase(),q=C.slice(S+1).trimStart(),N=E[D];typeof N=="string"?E[D]=[N,q]:Array.isArray(N)?N.push(q):E[D]=q}g5("got proxy server response: %o %o",m,E),o(),e({connect:{statusCode:y,statusText:g,headers:E},buffered:f})}t.on("error",c),t.on("end",a),n()})}_S.parseProxyResponse=Chr});var oKe=p(Bu=>{"use strict";var Ihr=Bu&&Bu.__createBinding||(Object.create?(function(t,e,r,i){i===void 0&&(i=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,i,s)}):(function(t,e,r,i){i===void 0&&(i=r),t[i]=e[r]})),Shr=Bu&&Bu.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),sKe=Bu&&Bu.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&Ihr(e,t,r);return Shr(e,t),e},nKe=Bu&&Bu.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Bu,"__esModule",{value:!0});Bu.HttpsProxyAgent=void 0;var a2=sKe(require("net")),rKe=sKe(require("tls")),Bhr=nKe(require("assert")),vhr=nKe(ly()),xhr=yx(),_hr=require("url"),Rhr=tKe(),c2=(0,vhr.default)("https-proxy-agent"),y5=class extends xhr.Agent{constructor(e,r){super(r),this.options={path:void 0},this.proxy=typeof e=="string"?new _hr.URL(e):e,this.proxyHeaders=r?.headers??{},c2("Creating new HttpsProxyAgent instance: %o",this.proxy.href);let i=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),s=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={ALPNProtocols:["http/1.1"],...r?iKe(r,"headers"):null,host:i,port:s}}async connect(e,r){let{proxy:i}=this;if(!r.host)throw new TypeError('No "host" provided');let s;if(i.protocol==="https:"){c2("Creating `tls.Socket`: %o",this.connectOpts);let h=this.connectOpts.servername||this.connectOpts.host;s=rKe.connect({...this.connectOpts,servername:h&&a2.isIP(h)?void 0:h})}else c2("Creating `net.Socket`: %o",this.connectOpts),s=a2.connect(this.connectOpts);let n=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders},o=a2.isIPv6(r.host)?`[${r.host}]`:r.host,a=`CONNECT ${o}:${r.port} HTTP/1.1\r
|
||||
`);if(h===-1){I5("have not received end of HTTP headers yet..."),n();return}let d=f.slice(0,h).toString("ascii").split(`\r
|
||||
`),m=d.shift();if(!m)return t.destroy(),r(new Error("No header received from proxy CONNECT response"));let A=m.split(" "),y=+A[1],g=A.slice(2).join(" "),E={};for(let w of d){if(!w)continue;let S=w.indexOf(":");if(S===-1)return t.destroy(),r(new Error(`Invalid header from proxy CONNECT response: "${w}"`));let D=w.slice(0,S).toLowerCase(),q=w.slice(S+1).trimStart(),T=E[D];typeof T=="string"?E[D]=[T,q]:Array.isArray(T)?T.push(q):E[D]=q}I5("got proxy server response: %o %o",m,E),o(),e({connect:{statusCode:y,statusText:g,headers:E},buffered:f})}t.on("error",c),t.on("end",a),n()})}TS.parseProxyResponse=qhr});var yKe=p(Su=>{"use strict";var Ghr=Su&&Su.__createBinding||(Object.create?(function(t,e,r,i){i===void 0&&(i=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,i,s)}):(function(t,e,r,i){i===void 0&&(i=r),t[i]=e[r]})),Hhr=Su&&Su.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),AKe=Su&&Su.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&Ghr(e,t,r);return Hhr(e,t),e},gKe=Su&&Su.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Su,"__esModule",{value:!0});Su.HttpsProxyAgent=void 0;var l1=AKe(require("net")),pKe=AKe(require("tls")),jhr=gKe(require("assert")),zhr=gKe(fy()),Vhr=wx(),$hr=require("url"),Whr=dKe(),f1=(0,zhr.default)("https-proxy-agent"),S5=class extends Vhr.Agent{constructor(e,r){super(r),this.options={path:void 0},this.proxy=typeof e=="string"?new $hr.URL(e):e,this.proxyHeaders=r?.headers??{},f1("Creating new HttpsProxyAgent instance: %o",this.proxy.href);let i=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),s=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={ALPNProtocols:["http/1.1"],...r?mKe(r,"headers"):null,host:i,port:s}}async connect(e,r){let{proxy:i}=this;if(!r.host)throw new TypeError('No "host" provided');let s;if(i.protocol==="https:"){f1("Creating `tls.Socket`: %o",this.connectOpts);let h=this.connectOpts.servername||this.connectOpts.host;s=pKe.connect({...this.connectOpts,servername:h&&l1.isIP(h)?void 0:h})}else f1("Creating `net.Socket`: %o",this.connectOpts),s=l1.connect(this.connectOpts);let n=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders},o=l1.isIPv6(r.host)?`[${r.host}]`:r.host,a=`CONNECT ${o}:${r.port} HTTP/1.1\r
|
||||
`;if(i.username||i.password){let h=`${decodeURIComponent(i.username)}:${decodeURIComponent(i.password)}`;n["Proxy-Authorization"]=`Basic ${Buffer.from(h).toString("base64")}`}n.Host=`${o}:${r.port}`,n["Proxy-Connection"]||(n["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let h of Object.keys(n))a+=`${h}: ${n[h]}\r
|
||||
`;let c=(0,Rhr.parseProxyResponse)(s);s.write(`${a}\r
|
||||
`);let{connect:u,buffered:l}=await c;if(e.emit("proxyConnect",u),this.emit("proxyConnect",u,e),u.statusCode===200){if(e.once("socket",Thr),r.secureEndpoint){c2("Upgrading socket connection to TLS");let h=r.servername||r.host;return rKe.connect({...iKe(r,"host","path","port"),socket:s,servername:a2.isIP(h)?void 0:h})}return s}s.destroy();let f=new a2.Socket({writable:!1});return f.readable=!0,e.once("socket",h=>{c2("Replaying proxy buffer for failed request"),(0,Bhr.default)(h.listenerCount("data")>0),h.push(l),h.push(null)}),f}};y5.protocols=["http","https"];Bu.HttpsProxyAgent=y5;function Thr(t){t.resume()}function iKe(t,...e){let r={},i;for(i in t)e.includes(i)||(r[i]=t[i]);return r}});var lKe=p(qp=>{"use strict";Object.defineProperty(qp,"__esModule",{value:!0});var aKe=require("buffer"),u0={INVALID_ENCODING:"Invalid encoding provided. Please specify a valid encoding the internal Node.js Buffer supports.",INVALID_SMARTBUFFER_SIZE:"Invalid size provided. Size must be a valid integer greater than zero.",INVALID_SMARTBUFFER_BUFFER:"Invalid Buffer provided in SmartBufferOptions.",INVALID_SMARTBUFFER_OBJECT:"Invalid SmartBufferOptions object supplied to SmartBuffer constructor or factory methods.",INVALID_OFFSET:"An invalid offset value was provided.",INVALID_OFFSET_NON_NUMBER:"An invalid offset value was provided. A numeric value is required.",INVALID_LENGTH:"An invalid length value was provided.",INVALID_LENGTH_NON_NUMBER:"An invalid length value was provived. A numeric value is required.",INVALID_TARGET_OFFSET:"Target offset is beyond the bounds of the internal SmartBuffer data.",INVALID_TARGET_LENGTH:"Specified length value moves cursor beyong the bounds of the internal SmartBuffer data.",INVALID_READ_BEYOND_BOUNDS:"Attempted to read beyond the bounds of the managed data.",INVALID_WRITE_BEYOND_BOUNDS:"Attempted to write beyond the bounds of the managed data."};qp.ERRORS=u0;function Nhr(t){if(!aKe.Buffer.isEncoding(t))throw new Error(u0.INVALID_ENCODING)}qp.checkEncoding=Nhr;function cKe(t){return typeof t=="number"&&isFinite(t)&&Qhr(t)}qp.isFiniteInteger=cKe;function uKe(t,e){if(typeof t=="number"){if(!cKe(t)||t<0)throw new Error(e?u0.INVALID_OFFSET:u0.INVALID_LENGTH)}else throw new Error(e?u0.INVALID_OFFSET_NON_NUMBER:u0.INVALID_LENGTH_NON_NUMBER)}function Dhr(t){uKe(t,!1)}qp.checkLengthValue=Dhr;function Ohr(t){uKe(t,!0)}qp.checkOffsetValue=Ohr;function Phr(t,e){if(t<0||t>e.length)throw new Error(u0.INVALID_TARGET_OFFSET)}qp.checkTargetOffset=Phr;function Qhr(t){return typeof t=="number"&&isFinite(t)&&Math.floor(t)===t}function khr(t){if(typeof BigInt>"u")throw new Error("Platform does not support JS BigInt type.");if(typeof aKe.Buffer.prototype[t]>"u")throw new Error(`Platform does not support Buffer.prototype.${t}.`)}qp.bigIntAndBufferInt64Check=khr});var hKe=p(sle=>{"use strict";Object.defineProperty(sle,"__esModule",{value:!0});var bt=lKe(),fKe=4096,Lhr="utf8",ile=class t{constructor(e){if(this.length=0,this._encoding=Lhr,this._writeOffset=0,this._readOffset=0,t.isSmartBufferOptions(e))if(e.encoding&&(bt.checkEncoding(e.encoding),this._encoding=e.encoding),e.size)if(bt.isFiniteInteger(e.size)&&e.size>0)this._buff=Buffer.allocUnsafe(e.size);else throw new Error(bt.ERRORS.INVALID_SMARTBUFFER_SIZE);else if(e.buff)if(Buffer.isBuffer(e.buff))this._buff=e.buff,this.length=e.buff.length;else throw new Error(bt.ERRORS.INVALID_SMARTBUFFER_BUFFER);else this._buff=Buffer.allocUnsafe(fKe);else{if(typeof e<"u")throw new Error(bt.ERRORS.INVALID_SMARTBUFFER_OBJECT);this._buff=Buffer.allocUnsafe(fKe)}}static fromSize(e,r){return new this({size:e,encoding:r})}static fromBuffer(e,r){return new this({buff:e,encoding:r})}static fromOptions(e){return new this(e)}static isSmartBufferOptions(e){let r=e;return r&&(r.encoding!==void 0||r.size!==void 0||r.buff!==void 0)}readInt8(e){return this._readNumberValue(Buffer.prototype.readInt8,1,e)}readInt16BE(e){return this._readNumberValue(Buffer.prototype.readInt16BE,2,e)}readInt16LE(e){return this._readNumberValue(Buffer.prototype.readInt16LE,2,e)}readInt32BE(e){return this._readNumberValue(Buffer.prototype.readInt32BE,4,e)}readInt32LE(e){return this._readNumberValue(Buffer.prototype.readInt32LE,4,e)}readBigInt64BE(e){return bt.bigIntAndBufferInt64Check("readBigInt64BE"),this._readNumberValue(Buffer.prototype.readBigInt64BE,8,e)}readBigInt64LE(e){return bt.bigIntAndBufferInt64Check("readBigInt64LE"),this._readNumberValue(Buffer.prototype.readBigInt64LE,8,e)}writeInt8(e,r){return this._writeNumberValue(Buffer.prototype.writeInt8,1,e,r),this}insertInt8(e,r){return this._insertNumberValue(Buffer.prototype.writeInt8,1,e,r)}writeInt16BE(e,r){return this._writeNumberValue(Buffer.prototype.writeInt16BE,2,e,r)}insertInt16BE(e,r){return this._insertNumberValue(Buffer.prototype.writeInt16BE,2,e,r)}writeInt16LE(e,r){return this._writeNumberValue(Buffer.prototype.writeInt16LE,2,e,r)}insertInt16LE(e,r){return this._insertNumberValue(Buffer.prototype.writeInt16LE,2,e,r)}writeInt32BE(e,r){retur
Line truncated
|
||||
`;let c=(0,Whr.parseProxyResponse)(s);s.write(`${a}\r
|
||||
`);let{connect:u,buffered:l}=await c;if(e.emit("proxyConnect",u),this.emit("proxyConnect",u,e),u.statusCode===200){if(e.once("socket",Jhr),r.secureEndpoint){f1("Upgrading socket connection to TLS");let h=r.servername||r.host;return pKe.connect({...mKe(r,"host","path","port"),socket:s,servername:l1.isIP(h)?void 0:h})}return s}s.destroy();let f=new l1.Socket({writable:!1});return f.readable=!0,e.once("socket",h=>{f1("Replaying proxy buffer for failed request"),(0,jhr.default)(h.listenerCount("data")>0),h.push(l),h.push(null)}),f}};S5.protocols=["http","https"];Su.HttpsProxyAgent=S5;function Jhr(t){t.resume()}function mKe(t,...e){let r={},i;for(i in t)e.includes(i)||(r[i]=t[i]);return r}});var CKe=p(Up=>{"use strict";Object.defineProperty(Up,"__esModule",{value:!0});var EKe=require("buffer"),f0={INVALID_ENCODING:"Invalid encoding provided. Please specify a valid encoding the internal Node.js Buffer supports.",INVALID_SMARTBUFFER_SIZE:"Invalid size provided. Size must be a valid integer greater than zero.",INVALID_SMARTBUFFER_BUFFER:"Invalid Buffer provided in SmartBufferOptions.",INVALID_SMARTBUFFER_OBJECT:"Invalid SmartBufferOptions object supplied to SmartBuffer constructor or factory methods.",INVALID_OFFSET:"An invalid offset value was provided.",INVALID_OFFSET_NON_NUMBER:"An invalid offset value was provided. A numeric value is required.",INVALID_LENGTH:"An invalid length value was provided.",INVALID_LENGTH_NON_NUMBER:"An invalid length value was provived. A numeric value is required.",INVALID_TARGET_OFFSET:"Target offset is beyond the bounds of the internal SmartBuffer data.",INVALID_TARGET_LENGTH:"Specified length value moves cursor beyong the bounds of the internal SmartBuffer data.",INVALID_READ_BEYOND_BOUNDS:"Attempted to read beyond the bounds of the managed data.",INVALID_WRITE_BEYOND_BOUNDS:"Attempted to write beyond the bounds of the managed data."};Up.ERRORS=f0;function Yhr(t){if(!EKe.Buffer.isEncoding(t))throw new Error(f0.INVALID_ENCODING)}Up.checkEncoding=Yhr;function bKe(t){return typeof t=="number"&&isFinite(t)&&edr(t)}Up.isFiniteInteger=bKe;function wKe(t,e){if(typeof t=="number"){if(!bKe(t)||t<0)throw new Error(e?f0.INVALID_OFFSET:f0.INVALID_LENGTH)}else throw new Error(e?f0.INVALID_OFFSET_NON_NUMBER:f0.INVALID_LENGTH_NON_NUMBER)}function Khr(t){wKe(t,!1)}Up.checkLengthValue=Khr;function Xhr(t){wKe(t,!0)}Up.checkOffsetValue=Xhr;function Zhr(t,e){if(t<0||t>e.length)throw new Error(f0.INVALID_TARGET_OFFSET)}Up.checkTargetOffset=Zhr;function edr(t){return typeof t=="number"&&isFinite(t)&&Math.floor(t)===t}function tdr(t){if(typeof BigInt>"u")throw new Error("Platform does not support JS BigInt type.");if(typeof EKe.Buffer.prototype[t]>"u")throw new Error(`Platform does not support Buffer.prototype.${t}.`)}Up.bigIntAndBufferInt64Check=tdr});var SKe=p(dle=>{"use strict";Object.defineProperty(dle,"__esModule",{value:!0});var bt=CKe(),IKe=4096,rdr="utf8",hle=class t{constructor(e){if(this.length=0,this._encoding=rdr,this._writeOffset=0,this._readOffset=0,t.isSmartBufferOptions(e))if(e.encoding&&(bt.checkEncoding(e.encoding),this._encoding=e.encoding),e.size)if(bt.isFiniteInteger(e.size)&&e.size>0)this._buff=Buffer.allocUnsafe(e.size);else throw new Error(bt.ERRORS.INVALID_SMARTBUFFER_SIZE);else if(e.buff)if(Buffer.isBuffer(e.buff))this._buff=e.buff,this.length=e.buff.length;else throw new Error(bt.ERRORS.INVALID_SMARTBUFFER_BUFFER);else this._buff=Buffer.allocUnsafe(IKe);else{if(typeof e<"u")throw new Error(bt.ERRORS.INVALID_SMARTBUFFER_OBJECT);this._buff=Buffer.allocUnsafe(IKe)}}static fromSize(e,r){return new this({size:e,encoding:r})}static fromBuffer(e,r){return new this({buff:e,encoding:r})}static fromOptions(e){return new this(e)}static isSmartBufferOptions(e){let r=e;return r&&(r.encoding!==void 0||r.size!==void 0||r.buff!==void 0)}readInt8(e){return this._readNumberValue(Buffer.prototype.readInt8,1,e)}readInt16BE(e){return this._readNumberValue(Buffer.prototype.readInt16BE,2,e)}readInt16LE(e){return this._readNumberValue(Buffer.prototype.readInt16LE,2,e)}readInt32BE(e){return this._readNumberValue(Buffer.prototype.readInt32BE,4,e)}readInt32LE(e){return this._readNumberValue(Buffer.prototype.readInt32LE,4,e)}readBigInt64BE(e){return bt.bigIntAndBufferInt64Check("readBigInt64BE"),this._readNumberValue(Buffer.prototype.readBigInt64BE,8,e)}readBigInt64LE(e){return bt.bigIntAndBufferInt64Check("readBigInt64LE"),this._readNumberValue(Buffer.prototype.readBigInt64LE,8,e)}writeInt8(e,r){return this._writeNumberValue(Buffer.prototype.writeInt8,1,e,r),this}insertInt8(e,r){return this._insertNumberValue(Buffer.prototype.writeInt8,1,e,r)}writeInt16BE(e,r){return this._writeNumberValue(Buffer.prototype.writeInt16BE,2,e,r)}insertInt16BE(e,r){return this._insertNumberValue(Buffer.prototype.writeInt16BE,2,e,r)}writeInt16LE(e,r){return this._writeNumberValue(Buffer.prototype.writeInt16LE,2,e,r)}insertInt16LE(e,r){return this._insertNumberValue(Buffer.prototype.writeInt16LE,2,e,r)}writeInt32BE(e,r){retur
Line truncated
|
||||
globstar while`,e,h,r,d,m),this.matchOne(e.slice(h),r.slice(d),i))return this.debug("globstar found match!",h,c,m),!0;if(m==="."||m===".."||!s.dot&&m.charAt(0)==="."){this.debug("dot detected!",e,h,r,d);break}this.debug("globstar swallow a segment, and continue"),h++}return!!(i&&(this.debug(`
|
||||
>>> no match, partial?`,e,h,r,d),h===c))}let A;if(typeof l=="string"?(A=f===l,this.debug("string match",l,f,A)):(A=l.test(f),this.debug("pattern match",l,f,A)),!A)return!1}if(o===c&&a===u)return!0;if(o===c)return i;if(a===u)return o===c-1&&e[o]==="";throw new Error("wtf?")}braceExpand(){return(0,Pe.braceExpand)(this.pattern,this.options)}parse(e){(0,A8.assertValidPattern)(e);let r=this.options;if(e==="**")return Pe.GLOBSTAR;if(e==="")return"";let i,s=null;(i=e.match(dgr))?s=r.dot?mgr:pgr:(i=e.match(igr))?s=(r.nocase?r.dot?agr:ogr:r.dot?ngr:sgr)(i[1]):(i=e.match(Agr))?s=(r.nocase?r.dot?ygr:ggr:r.dot?Egr:bgr)(i):(i=e.match(cgr))?s=r.dot?lgr:ugr:(i=e.match(fgr))&&(s=hgr);let n=SZe.AST.fromGlob(e,this.options).toMMPattern();return s&&typeof n=="object"&&Reflect.defineProperty(n,"test",{value:s}),n}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;let e=this.set;if(!e.length)return this.regexp=!1,this.regexp;let r=this.options,i=r.noglobstar?Cgr:r.dot?Igr:Sgr,s=new Set(r.nocase?["i"]:[]),n=e.map(c=>{let u=c.map(f=>{if(f instanceof RegExp)for(let h of f.flags.split(""))s.add(h);return typeof f=="string"?Tgr(f):f===Pe.GLOBSTAR?Pe.GLOBSTAR:f._src});u.forEach((f,h)=>{let d=u[h+1],m=u[h-1];f!==Pe.GLOBSTAR||m===Pe.GLOBSTAR||(m===void 0?d!==void 0&&d!==Pe.GLOBSTAR?u[h+1]="(?:\\/|"+i+"\\/)?"+d:u[h]=i:d===void 0?u[h-1]=m+"(?:\\/|\\/"+i+")?":d!==Pe.GLOBSTAR&&(u[h-1]=m+"(?:\\/|\\/"+i+"\\/)"+d,u[h+1]=Pe.GLOBSTAR))});let l=u.filter(f=>f!==Pe.GLOBSTAR);if(this.partial&&l.length>=1){let f=[];for(let h=1;h<=l.length;h++)f.push(l.slice(0,h).join("/"));return"(?:"+f.join("|")+")"}return l.join("/")}).join("|"),[o,a]=e.length>1?["(?:",")"]:["",""];n="^"+o+n+a+"$",this.partial&&(n="^(?:\\/|"+o+n.slice(1,-1)+a+")$"),this.negate&&(n="^(?!"+n+").+$");try{this.regexp=new RegExp(n,[...s].join(""))}catch{this.regexp=!1}return this.regexp}slashSplit(e){return this.preserveMultipleSlashes?e.split("/"):this.isWindows&&/^\/\/[^\/]+/.test(e)?["",...e.split(/\/+/)]:e.split(/\/+/)}match(e,r=this.partial){if(this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return e==="";if(e==="/"&&r)return!0;let i=this.options;this.isWindows&&(e=e.split("\\").join("/"));let s=this.slashSplit(e);this.debug(this.pattern,"split",s);let n=this.set;this.debug(this.pattern,"set",n);let o=s[s.length-1];if(!o)for(let a=s.length-2;!o&&a>=0;a--)o=s[a];for(let a=0;a<n.length;a++){let c=n[a],u=s;if(i.matchBase&&c.length===1&&(u=[o]),this.matchOne(u,c,r))return i.flipNegate?!0:!this.negate}return i.flipNegate?!1:this.negate}static defaults(e){return Pe.minimatch.defaults(e).Minimatch}};Pe.Minimatch=g0;var Ngr=Rfe();Object.defineProperty(Pe,"AST",{enumerable:!0,get:function(){return Ngr.AST}});var Dgr=Tfe();Object.defineProperty(Pe,"escape",{enumerable:!0,get:function(){return Dgr.escape}});var Ogr=f8();Object.defineProperty(Pe,"unescape",{enumerable:!0,get:function(){return Ogr.unescape}});Pe.minimatch.AST=SZe.AST;Pe.minimatch.Minimatch=g0;Pe.minimatch.escape=egr.escape;Pe.minimatch.unescape=tgr.unescape});var Ofe=p(Nu=>{"use strict";var RZe=Nu&&Nu.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Nu,"__esModule",{value:!0});Nu.SuccinctRoles=Nu.DelegatedRole=Nu.Role=Nu.TOP_LEVEL_ROLE_NAMES=void 0;var TZe=RZe(require("crypto")),Pgr=_Ze(),g8=RZe(require("util")),y8=Fh(),y0=Nl();Nu.TOP_LEVEL_ROLE_NAMES=["root","targets","snapshot","timestamp"];var B2=class t{keyIDs;threshold;unrecognizedFields;constructor(e){let{keyIDs:r,threshold:i,unrecognizedFields:s}=e;if(Qgr(r))throw new y8.ValueError("duplicate key IDs found");if(i<1)throw new y8.ValueError("threshold must be at least 1");this.keyIDs=r,this.threshold=i,this.unrecognizedFields=s||{}}equals(e){return e instanceof t?this.threshold===e.threshold&&g8.default.isDeepStrictEqual(this.keyIDs,e.keyIDs)&&g8.default.isDeepStrictEqual(this.unrecognizedFields,e.unrecognizedFields):!1}toJSON(){return{keyids:this.keyIDs,threshold:this.threshold,...this.unrecognizedFields}}static fromJSON(e){let{keyids:r,threshold:i,...s}=e;if(!y0.guard.isStringArray(r))throw new TypeError("keyids must be an array");if(typeof i!="number")throw new TypeError("threshold must be a number");return new t({keyIDs:r,threshold:i,unrecognizedFields:s})}};Nu.Role=B2;function Qgr(t){return new Set(t).size!==t.length}var Nfe=class t extends B2{name;terminating;paths;pathHashPrefixes;constructor(e){super(e);let{name:r,terminating:i,paths:s,pathHashPrefixes:n}=e;if(this.name=r,this.terminating=i,e.paths&&e.pathHashPrefixes)throw new y8.ValueError("paths and pathHashPrefixes are mutually exclusive");this.paths=s,this.pathHashPrefixes=n}equals(e){return e instanceof t?super.equals(e)&&this.name===e.name&&this.terminating===e.terminating&&g8.default.isDeepStrictEqual(this.paths,e.paths)&&g8.default.isDeepStrictEqual(this.pathHashPrefixes,e.pathHashPrefixes):!1}isDelegatedPath(e){if(this.paths)return this.paths.some(r=>Lgr(e,r));if(this.pathHashPrefixes){let i=TZe.default.createHash("sha256").update(
Line truncated
|
||||
>>> no match, partial?`,e,h,r,d),h===c))}let A;if(typeof l=="string"?(A=f===l,this.debug("string match",l,f,A)):(A=l.test(f),this.debug("pattern match",l,f,A)),!A)return!1}if(o===c&&a===u)return!0;if(o===c)return i;if(a===u)return o===c-1&&e[o]==="";throw new Error("wtf?")}braceExpand(){return(0,Pe.braceExpand)(this.pattern,this.options)}parse(e){(0,C8.assertValidPattern)(e);let r=this.options;if(e==="**")return Pe.GLOBSTAR;if(e==="")return"";let i,s=null;(i=e.match(Dgr))?s=r.dot?Pgr:Ogr:(i=e.match(Cgr))?s=(r.nocase?r.dot?vgr:Bgr:r.dot?Sgr:Igr)(i[1]):(i=e.match(Qgr))?s=(r.nocase?r.dot?Lgr:kgr:r.dot?Fgr:Mgr)(i):(i=e.match(xgr))?s=r.dot?Rgr:_gr:(i=e.match(Ngr))&&(s=Tgr);let n=kZe.AST.fromGlob(e,this.options).toMMPattern();return s&&typeof n=="object"&&Reflect.defineProperty(n,"test",{value:s}),n}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;let e=this.set;if(!e.length)return this.regexp=!1,this.regexp;let r=this.options,i=r.noglobstar?qgr:r.dot?Ggr:Hgr,s=new Set(r.nocase?["i"]:[]),n=e.map(c=>{let u=c.map(f=>{if(f instanceof RegExp)for(let h of f.flags.split(""))s.add(h);return typeof f=="string"?Jgr(f):f===Pe.GLOBSTAR?Pe.GLOBSTAR:f._src});u.forEach((f,h)=>{let d=u[h+1],m=u[h-1];f!==Pe.GLOBSTAR||m===Pe.GLOBSTAR||(m===void 0?d!==void 0&&d!==Pe.GLOBSTAR?u[h+1]="(?:\\/|"+i+"\\/)?"+d:u[h]=i:d===void 0?u[h-1]=m+"(?:\\/|\\/"+i+")?":d!==Pe.GLOBSTAR&&(u[h-1]=m+"(?:\\/|\\/"+i+"\\/)"+d,u[h+1]=Pe.GLOBSTAR))});let l=u.filter(f=>f!==Pe.GLOBSTAR);if(this.partial&&l.length>=1){let f=[];for(let h=1;h<=l.length;h++)f.push(l.slice(0,h).join("/"));return"(?:"+f.join("|")+")"}return l.join("/")}).join("|"),[o,a]=e.length>1?["(?:",")"]:["",""];n="^"+o+n+a+"$",this.partial&&(n="^(?:\\/|"+o+n.slice(1,-1)+a+")$"),this.negate&&(n="^(?!"+n+").+$");try{this.regexp=new RegExp(n,[...s].join(""))}catch{this.regexp=!1}return this.regexp}slashSplit(e){return this.preserveMultipleSlashes?e.split("/"):this.isWindows&&/^\/\/[^\/]+/.test(e)?["",...e.split(/\/+/)]:e.split(/\/+/)}match(e,r=this.partial){if(this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return e==="";if(e==="/"&&r)return!0;let i=this.options;this.isWindows&&(e=e.split("\\").join("/"));let s=this.slashSplit(e);this.debug(this.pattern,"split",s);let n=this.set;this.debug(this.pattern,"set",n);let o=s[s.length-1];if(!o)for(let a=s.length-2;!o&&a>=0;a--)o=s[a];for(let a=0;a<n.length;a++){let c=n[a],u=s;if(i.matchBase&&c.length===1&&(u=[o]),this.matchOne(u,c,r))return i.flipNegate?!0:!this.negate}return i.flipNegate?!1:this.negate}static defaults(e){return Pe.minimatch.defaults(e).Minimatch}};Pe.Minimatch=E0;var Ygr=Ffe();Object.defineProperty(Pe,"AST",{enumerable:!0,get:function(){return Ygr.AST}});var Kgr=Mfe();Object.defineProperty(Pe,"escape",{enumerable:!0,get:function(){return Kgr.escape}});var Xgr=g8();Object.defineProperty(Pe,"unescape",{enumerable:!0,get:function(){return Xgr.unescape}});Pe.minimatch.AST=kZe.AST;Pe.minimatch.Minimatch=E0;Pe.minimatch.escape=Egr.escape;Pe.minimatch.unescape=bgr.unescape});var Gfe=p(Nu=>{"use strict";var qZe=Nu&&Nu.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Nu,"__esModule",{value:!0});Nu.SuccinctRoles=Nu.DelegatedRole=Nu.Role=Nu.TOP_LEVEL_ROLE_NAMES=void 0;var GZe=qZe(require("crypto")),Zgr=UZe(),I8=qZe(require("util")),S8=Fh(),b0=Nl();Nu.TOP_LEVEL_ROLE_NAMES=["root","targets","snapshot","timestamp"];var _1=class t{keyIDs;threshold;unrecognizedFields;constructor(e){let{keyIDs:r,threshold:i,unrecognizedFields:s}=e;if(eyr(r))throw new S8.ValueError("duplicate key IDs found");if(i<1)throw new S8.ValueError("threshold must be at least 1");this.keyIDs=r,this.threshold=i,this.unrecognizedFields=s||{}}equals(e){return e instanceof t?this.threshold===e.threshold&&I8.default.isDeepStrictEqual(this.keyIDs,e.keyIDs)&&I8.default.isDeepStrictEqual(this.unrecognizedFields,e.unrecognizedFields):!1}toJSON(){return{keyids:this.keyIDs,threshold:this.threshold,...this.unrecognizedFields}}static fromJSON(e){let{keyids:r,threshold:i,...s}=e;if(!b0.guard.isStringArray(r))throw new TypeError("keyids must be an array");if(typeof i!="number")throw new TypeError("threshold must be a number");return new t({keyIDs:r,threshold:i,unrecognizedFields:s})}};Nu.Role=_1;function eyr(t){return new Set(t).size!==t.length}var Ufe=class t extends _1{name;terminating;paths;pathHashPrefixes;constructor(e){super(e);let{name:r,terminating:i,paths:s,pathHashPrefixes:n}=e;if(this.name=r,this.terminating=i,e.paths&&e.pathHashPrefixes)throw new S8.ValueError("paths and pathHashPrefixes are mutually exclusive");this.paths=s,this.pathHashPrefixes=n}equals(e){return e instanceof t?super.equals(e)&&this.name===e.name&&this.terminating===e.terminating&&I8.default.isDeepStrictEqual(this.paths,e.paths)&&I8.default.isDeepStrictEqual(this.pathHashPrefixes,e.pathHashPrefixes):!1}isDelegatedPath(e){if(this.paths)return this.paths.some(r=>ryr(e,r));if(this.pathHashPrefixes){let i=GZe.default.createHash("sha256").update(
Line truncated
|
||||
`).join(`
|
||||
`+n),t.push(s+"m+"+T8.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=Fyr()+e+" "+t[0]}function Fyr(){return $s.inspectOpts.hideDate?"":new Date().toISOString()+" "}function Uyr(...t){return process.stderr.write(R8.formatWithOptions($s.inspectOpts,...t)+`
|
||||
`)}function qyr(t){t?process.env.DEBUG=t:delete process.env.DEBUG}function Gyr(){return process.env.DEBUG}function Hyr(t){t.inspectOpts={};let e=Object.keys($s.inspectOpts);for(let r=0;r<e.length;r++)t.inspectOpts[e[r]]=$s.inspectOpts[e[r]]}T8.exports=Zfe()($s);var{formatters:zZe}=T8.exports;zZe.o=function(t){return this.inspectOpts.colors=this.useColors,R8.inspect(t,this.inspectOpts).split(`
|
||||
`).map(e=>e.trim()).join(" ")};zZe.O=function(t){return this.inspectOpts.colors=this.useColors,R8.inspect(t,this.inspectOpts)}});var the=p((eti,ehe)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?ehe.exports=jZe():ehe.exports=VZe()});var WZe=p((tti,$Ze)=>{var jyr=require("dns"),zyr=["if-modified-since","if-none-match","if-unmodified-since","if-match","if-range"],Vyr=t=>{let{strictSSL:e,...r}={...t};if(r.method=r.method?r.method.toUpperCase():"GET",e==null?r.rejectUnauthorized=process.env.NODE_TLS_REJECT_UNAUTHORIZED!=="0":r.rejectUnauthorized=e!==!1,!r.retry)r.retry={retries:0};else if(typeof r.retry=="string"){let i=parseInt(r.retry,10);isFinite(i)?r.retry={retries:i}:r.retry={retries:0}}else typeof r.retry=="number"?r.retry={retries:r.retry}:r.retry={retries:0,...r.retry};return r.dns={ttl:300*1e3,lookup:jyr.lookup,...r.dns},r.cache=r.cache||"default",r.cache==="default"&&Object.keys(r.headers||{}).some(s=>zyr.includes(s.toLowerCase()))&&(r.cache="no-store"),r.cacheAdditionalHeaders=r.cacheAdditionalHeaders||[],r.cacheManager&&!r.cachePath&&(r.cachePath=r.cacheManager),r};$Ze.exports=Vyr});var ihe=p((rti,ZZe)=>{var JZe=Iae(),YZe=Rae(),$yr=Sh(),KZe={shared:!1,ignoreCargoCult:!0},Wyr={status:200,headers:{}},tB=t=>{let e={method:t.method,url:t.url,headers:{},compress:t.compress};return t.headers.forEach((r,i)=>{e.headers[i]=r}),e},XZe=t=>{let e={status:t.status,headers:{}};return t.headers.forEach((r,i)=>{e.headers[i]=r}),e},rhe=class{constructor({entry:e,request:r,response:i,options:s}){this.entry=e,this.request=tB(r),this.response=XZe(i),this.options=s,this.policy=new JZe(this.request,this.response,KZe),this.entry&&(this.policy._responseTime=this.entry.metadata.time)}static storable(e,r){return!r.cachePath||r.cache==="no-store"||!["GET","HEAD"].includes(e.method)?!1:new JZe(tB(e),Wyr,KZe).storable()}satisfies(e){let r=tB(e);if(this.request.headers.host!==r.headers.host||this.request.compress!==r.compress)return!1;let i=new YZe(this.request),s=new YZe(r);return JSON.stringify(i.mediaTypes())!==JSON.stringify(s.mediaTypes())||JSON.stringify(i.languages())!==JSON.stringify(s.languages())||JSON.stringify(i.encodings())!==JSON.stringify(s.encodings())?!1:this.options.integrity?$yr.parse(this.options.integrity).match(this.entry.integrity):!0}storable(){return this.policy.storable()}get mustRevalidate(){return!!this.policy._rescc["must-revalidate"]}needsRevalidation(e){let r=tB(e);return r.method="GET",!this.policy.satisfiesWithoutRevalidation(r)}responseHeaders(){return this.policy.responseHeaders()}revalidationHeaders(e){let r=tB(e);return this.policy.revalidationHeaders(r)}revalidated(e,r){let i=tB(e),s=XZe(r);return!this.policy.revalidatedPolicy(i,s).modified}};ZZe.exports=rhe});var tet=p((iti,eet)=>{var she=class extends Error{constructor(e){super(`request to ${e} failed: cache mode is 'only-if-cached' but no cached response is available.`),this.code="ENOTCACHED"}};eet.exports={NotCachedError:she}});var ohe=p((sti,ret)=>{"use strict";var Jyr=$E(),nhe=class extends Jyr{#e=[];#t=new Map;constructor(e,...r){super(),this.#e=e.events,r.length&&this.push(...r)}on(e,r){return this.#e.includes(e)&&this.#t.has(e)?r(...this.#t.get(e)):super.on(e,r)}emit(e,...r){return this.#e.includes(e)&&this.#t.set(e,r),super.emit(e,...r)}};ret.exports=nhe});var set=p((nti,iet)=>{var{URL:Yyr,format:Kyr}=require("url"),Xyr={auth:!1,fragment:!1,search:!0,unicode:!1},Zyr=t=>{let e=new Yyr(t.url);return`make-fetch-happen:request-cache:${Kyr(e,Xyr)}`};iet.exports=Zyr});var net=p((oti,eEr)=>{eEr.exports={name:"make-fetch-happen",version:"15.0.4",description:"Opinionated, caching, retrying fetch client",main:"lib/index.js",files:["bin/","lib/"],scripts:{test:"tap",posttest:"npm run lint",eslint:'eslint "**/*.{js,cjs,ts,mjs,jsx,tsx}"',lint:"npm run eslint",lintfix:"npm run eslint -- --fix",postlint:"template-oss-check",snap:"tap","template-oss-apply":"template-oss-apply --force"},repository:{type:"git",url:"git+https://github.com/npm/make-fetch-happen.git"},keywords:["http","request","fetch","mean girls","caching","cache","subresource integrity"],author:"GitHub Inc.",license:"ISC",dependencies:{"@gar/promise-retry":"^1.0.0","@npmcli/agent":"^4.0.0",cacache:"^20.0.1","http-cache-semantics":"^4.1.1",minipass:"^7.0.2","minipass-fetch":"^5.0.0","minipass-flush":"^1.0.5","minipass-pipeline":"^1.2.4",negotiator:"^1.0.0","proc-log":"^6.0.0",ssri:"^13.0.0"},devDependencies:{"@npmcli/eslint-config":"^5.0.0","@npmcli/template-oss":"4.25.0",nock:"^13.2.4","safe-buffer":"^5.2.1","standard-version":"^9.3.2",tap:"^16.0.0"},engines:{node:"^20.17.0 || >=22.9.0"},tap:{color:1,files:"test/*.js","check-coverage":!0,timeout:60,"nyc-arg":["--exclude","tap-snapshots/**"]},templateOSS:{"//@npmcli/template-oss":"This file is partially managed by @npmcli/template-oss. Edits may be overwritten.",version:"4.25.0",publish:"true"}}});var D8=p((ati,aet)=>{var{Minipass:tEr}=xo(),N8=Ep(),{promiseRetry:rEr}=Yue(),iEr=Sh(),{log:oet}=d
Line truncated
|
||||
`).forEach(r=>{r.match(G0r)||r.match(H0r)||(e+=r)}),Buffer.from(e,"base64")}function z0r(t,e="CERTIFICATE"){let i=t.toString("base64").match(/.{1,64}/g)||"";return[`-----BEGIN ${e}-----`,...i,`-----END ${e}-----`].join(`
|
||||
`+n),t.push(s+"m+"+k8.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=sEr()+e+" "+t[0]}function sEr(){return $s.inspectOpts.hideDate?"":new Date().toISOString()+" "}function nEr(...t){return process.stderr.write(Q8.formatWithOptions($s.inspectOpts,...t)+`
|
||||
`)}function oEr(t){t?process.env.DEBUG=t:delete process.env.DEBUG}function aEr(){return process.env.DEBUG}function cEr(t){t.inspectOpts={};let e=Object.keys($s.inspectOpts);for(let r=0;r<e.length;r++)t.inspectOpts[e[r]]=$s.inspectOpts[e[r]]}k8.exports=che()($s);var{formatters:iet}=k8.exports;iet.o=function(t){return this.inspectOpts.colors=this.useColors,Q8.inspect(t,this.inspectOpts).split(`
|
||||
`).map(e=>e.trim()).join(" ")};iet.O=function(t){return this.inspectOpts.colors=this.useColors,Q8.inspect(t,this.inspectOpts)}});var lhe=p((Nti,uhe)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?uhe.exports=ret():uhe.exports=set()});var oet=p((Tti,net)=>{var uEr=require("dns"),lEr=["if-modified-since","if-none-match","if-unmodified-since","if-match","if-range"],fEr=t=>{let{strictSSL:e,...r}={...t};if(r.method=r.method?r.method.toUpperCase():"GET",e==null?r.rejectUnauthorized=process.env.NODE_TLS_REJECT_UNAUTHORIZED!=="0":r.rejectUnauthorized=e!==!1,!r.retry)r.retry={retries:0};else if(typeof r.retry=="string"){let i=parseInt(r.retry,10);isFinite(i)?r.retry={retries:i}:r.retry={retries:0}}else typeof r.retry=="number"?r.retry={retries:r.retry}:r.retry={retries:0,...r.retry};return r.dns={ttl:300*1e3,lookup:uEr.lookup,...r.dns},r.cache=r.cache||"default",r.cache==="default"&&Object.keys(r.headers||{}).some(s=>lEr.includes(s.toLowerCase()))&&(r.cache="no-store"),r.cacheAdditionalHeaders=r.cacheAdditionalHeaders||[],r.cacheManager&&!r.cachePath&&(r.cachePath=r.cacheManager),r};net.exports=fEr});var hhe=p((Dti,het)=>{var aet=Dae(),cet=Fae(),hEr=Ih(),uet={shared:!1,ignoreCargoCult:!0},dEr={status:200,headers:{}},sB=t=>{let e={method:t.method,url:t.url,headers:{},compress:t.compress};return t.headers.forEach((r,i)=>{e.headers[i]=r}),e},fet=t=>{let e={status:t.status,headers:{}};return t.headers.forEach((r,i)=>{e.headers[i]=r}),e},fhe=class{constructor({entry:e,request:r,response:i,options:s}){this.entry=e,this.request=sB(r),this.response=fet(i),this.options=s,this.policy=new aet(this.request,this.response,uet),this.entry&&(this.policy._responseTime=this.entry.metadata.time)}static storable(e,r){return!r.cachePath||r.cache==="no-store"||!["GET","HEAD"].includes(e.method)?!1:new aet(sB(e),dEr,uet).storable()}satisfies(e){let r=sB(e);if(this.request.headers.host!==r.headers.host||this.request.compress!==r.compress)return!1;let i=new cet(this.request),s=new cet(r);return JSON.stringify(i.mediaTypes())!==JSON.stringify(s.mediaTypes())||JSON.stringify(i.languages())!==JSON.stringify(s.languages())||JSON.stringify(i.encodings())!==JSON.stringify(s.encodings())?!1:this.options.integrity?hEr.parse(this.options.integrity).match(this.entry.integrity):!0}storable(){return this.policy.storable()}get mustRevalidate(){return!!this.policy._rescc["must-revalidate"]}needsRevalidation(e){let r=sB(e);return r.method="GET",!this.policy.satisfiesWithoutRevalidation(r)}responseHeaders(){return this.policy.responseHeaders()}revalidationHeaders(e){let r=sB(e);return this.policy.revalidationHeaders(r)}revalidated(e,r){let i=sB(e),s=fet(r);return!this.policy.revalidatedPolicy(i,s).modified}};het.exports=fhe});var pet=p((Oti,det)=>{var dhe=class extends Error{constructor(e){super(`request to ${e} failed: cache mode is 'only-if-cached' but no cached response is available.`),this.code="ENOTCACHED"}};det.exports={NotCachedError:dhe}});var mhe=p((Pti,met)=>{"use strict";var pEr=JE(),phe=class extends pEr{#e=[];#t=new Map;constructor(e,...r){super(),this.#e=e.events,r.length&&this.push(...r)}on(e,r){return this.#e.includes(e)&&this.#t.has(e)?r(...this.#t.get(e)):super.on(e,r)}emit(e,...r){return this.#e.includes(e)&&this.#t.set(e,r),super.emit(e,...r)}};met.exports=phe});var get=p((Qti,Aet)=>{var{URL:mEr,format:AEr}=require("url"),gEr={auth:!1,fragment:!1,search:!0,unicode:!1},yEr=t=>{let e=new mEr(t.url);return`make-fetch-happen:request-cache:${AEr(e,gEr)}`};Aet.exports=yEr});var yet=p((kti,EEr)=>{EEr.exports={name:"make-fetch-happen",version:"15.0.4",description:"Opinionated, caching, retrying fetch client",main:"lib/index.js",files:["bin/","lib/"],scripts:{test:"tap",posttest:"npm run lint",eslint:'eslint "**/*.{js,cjs,ts,mjs,jsx,tsx}"',lint:"npm run eslint",lintfix:"npm run eslint -- --fix",postlint:"template-oss-check",snap:"tap","template-oss-apply":"template-oss-apply --force"},repository:{type:"git",url:"git+https://github.com/npm/make-fetch-happen.git"},keywords:["http","request","fetch","mean girls","caching","cache","subresource integrity"],author:"GitHub Inc.",license:"ISC",dependencies:{"@gar/promise-retry":"^1.0.0","@npmcli/agent":"^4.0.0",cacache:"^20.0.1","http-cache-semantics":"^4.1.1",minipass:"^7.0.2","minipass-fetch":"^5.0.0","minipass-flush":"^1.0.5","minipass-pipeline":"^1.2.4",negotiator:"^1.0.0","proc-log":"^6.0.0",ssri:"^13.0.0"},devDependencies:{"@npmcli/eslint-config":"^5.0.0","@npmcli/template-oss":"4.25.0",nock:"^13.2.4","safe-buffer":"^5.2.1","standard-version":"^9.3.2",tap:"^16.0.0"},engines:{node:"^20.17.0 || >=22.9.0"},tap:{color:1,files:"test/*.js","check-coverage":!0,timeout:60,"nyc-arg":["--exclude","tap-snapshots/**"]},templateOSS:{"//@npmcli/template-oss":"This file is partially managed by @npmcli/template-oss. Edits may be overwritten.",version:"4.25.0",publish:"true"}}});var F8=p((Lti,bet)=>{var{Minipass:bEr}=xo(),L8=yp(),{promiseRetry:wEr}=nle(),CEr=Ih(),{log:Eet}=E
Line truncated
|
||||
`).forEach(r=>{r.match(abr)||r.match(cbr)||(e+=r)}),Buffer.from(e,"base64")}function lbr(t,e="CERTIFICATE"){let i=t.toString("base64").match(/.{1,64}/g)||"";return[`-----BEGIN ${e}-----`,...i,`-----END ${e}-----`].join(`
|
||||
`).concat(`
|
||||
`)}});var rG=p(ng=>{"use strict";Object.defineProperty(ng,"__esModule",{value:!0});ng.SHA2_HASH_ALGOS=ng.RSA_SIGNATURE_ALGOS=ng.ECDSA_SIGNATURE_ALGOS=void 0;ng.ECDSA_SIGNATURE_ALGOS={"1.2.840.10045.4.3.1":"sha224","1.2.840.10045.4.3.2":"sha256","1.2.840.10045.4.3.3":"sha384","1.2.840.10045.4.3.4":"sha512"};ng.RSA_SIGNATURE_ALGOS={"1.2.840.113549.1.1.14":"sha224","1.2.840.113549.1.1.11":"sha256","1.2.840.113549.1.1.12":"sha384","1.2.840.113549.1.1.13":"sha512"};ng.SHA2_HASH_ALGOS={"2.16.840.1.101.3.4.2.1":"sha256","2.16.840.1.101.3.4.2.2":"sha384","2.16.840.1.101.3.4.2.3":"sha512"}});var $he=p(iG=>{"use strict";Object.defineProperty(iG,"__esModule",{value:!0});iG.RFC3161TimestampVerificationError=void 0;var Vhe=class extends Error{};iG.RFC3161TimestampVerificationError=Vhe});var ntt=p(qh=>{"use strict";var V0r=qh&&qh.__createBinding||(Object.create?(function(t,e,r,i){i===void 0&&(i=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,i,s)}):(function(t,e,r,i){i===void 0&&(i=r),t[i]=e[r]})),$0r=qh&&qh.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),W0r=qh&&qh.__importStar||(function(){var t=function(e){return t=Object.getOwnPropertyNames||function(r){var i=[];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(i[i.length]=s);return i},t(e)};return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var i=t(e),s=0;s<i.length;s++)i[s]!=="default"&&V0r(r,e,i[s]);return $0r(r,e),r}})();Object.defineProperty(qh,"__esModule",{value:!0});qh.TSTInfo=void 0;var stt=W0r(cB()),J0r=rG(),Y0r=$he(),Whe=class{root;constructor(e){this.root=e}get version(){return this.root.subs[0].toInteger()}get genTime(){return this.root.subs[4].toDate()}get messageImprintHashAlgorithm(){let e=this.messageImprintObj.subs[0].subs[0].toOID();return J0r.SHA2_HASH_ALGOS[e]}get messageImprintHashedMessage(){return this.messageImprintObj.subs[1].value}get raw(){return this.root.toDER()}verify(e){let r=stt.digest(this.messageImprintHashAlgorithm,e);if(!stt.bufferEqual(r,this.messageImprintHashedMessage))throw new Y0r.RFC3161TimestampVerificationError("message imprint does not match artifact")}get messageImprintObj(){return this.root.subs[2]}};qh.TSTInfo=Whe});var att=p(Gh=>{"use strict";var K0r=Gh&&Gh.__createBinding||(Object.create?(function(t,e,r,i){i===void 0&&(i=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,i,s)}):(function(t,e,r,i){i===void 0&&(i=r),t[i]=e[r]})),X0r=Gh&&Gh.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Z0r=Gh&&Gh.__importStar||(function(){var t=function(e){return t=Object.getOwnPropertyNames||function(r){var i=[];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(i[i.length]=s);return i},t(e)};return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var i=t(e),s=0;s<i.length;s++)i[s]!=="default"&&K0r(r,e,i[s]);return X0r(r,e),r}})();Object.defineProperty(Gh,"__esModule",{value:!0});Gh.RFC3161Timestamp=void 0;var ebr=Z8(),Jhe=Z0r(cB()),ott=rG(),Q2=$he(),tbr=ntt(),rbr="1.2.840.113549.1.7.2",ibr="1.2.840.113549.1.9.16.1.4",sbr="1.2.840.113549.1.9.4",Yhe=class t{root;constructor(e){this.root=e}static parse(e){let r=ebr.ASN1Obj.parseBuffer(e);return new t(r)}get status(){return this.pkiStatusInfoObj.subs[0].toInteger()}get contentType(){return this.contentTypeObj.toOID()}get eContentType(){return this.eContentTypeObj.toOID()}get signingTime(){return this.tstInfo.genTime}get signerIssuer(){return this.signerSidObj.subs[0].value}get signerSerialNumber(){return this.signerSidObj.subs[1].value}get signerDigestAlgorithm(){let e=this.signerDigestAlgorithmObj.subs[0].toOID();return ott.SHA2_HASH_ALGOS[e]}get signatureAlgorithm(){let e=this.signatureAlgorithmObj.subs[0].toOID();return ott.ECDSA_SIGNATURE_ALGOS[e]}get signatureValue(){return this.signatureValueObj.value}get tstInfo(){return new tbr.TSTInfo(this.eContentObj.subs[0].subs[0])}verify(e,r){if(!this.timeStampTokenObj)throw new Q2.RFC3161TimestampVerificationError("timeStampToken is missing");if(this.contentType!==rbr)throw new Q2.RFC3161TimestampVerificationError(`incorrect content type: ${this.contentType}`);if(this.eContentType!==ibr)throw new Q2.RFC3161TimestampVerificationError(`incorrect encapsulated content type: ${this.eContentType}`);this.tstInfo.verify(e),this.verifyMessageDigest(),this.verifySignature(r)}verifyMessageDigest(){let e=Jhe.digest(this.signerDigestAlgorithm,this.tstInfo.raw),r=this.messageDigestAttributeObj.subs[1].subs[0].value;if(!Jhe.bufferEqual(e,r))throw new Q2.RFC3161TimestampVerificationError("signed data does not match tstInfo")}verifySignature(e){let r=this.signedAttrsObj.toD
Line truncated
|
||||
`)}});var cG=p(og=>{"use strict";Object.defineProperty(og,"__esModule",{value:!0});og.SHA2_HASH_ALGOS=og.RSA_SIGNATURE_ALGOS=og.ECDSA_SIGNATURE_ALGOS=void 0;og.ECDSA_SIGNATURE_ALGOS={"1.2.840.10045.4.3.1":"sha224","1.2.840.10045.4.3.2":"sha256","1.2.840.10045.4.3.3":"sha384","1.2.840.10045.4.3.4":"sha512"};og.RSA_SIGNATURE_ALGOS={"1.2.840.113549.1.1.14":"sha224","1.2.840.113549.1.1.11":"sha256","1.2.840.113549.1.1.12":"sha384","1.2.840.113549.1.1.13":"sha512"};og.SHA2_HASH_ALGOS={"2.16.840.1.101.3.4.2.1":"sha256","2.16.840.1.101.3.4.2.2":"sha384","2.16.840.1.101.3.4.2.3":"sha512"}});var rde=p(uG=>{"use strict";Object.defineProperty(uG,"__esModule",{value:!0});uG.RFC3161TimestampVerificationError=void 0;var tde=class extends Error{};uG.RFC3161TimestampVerificationError=tde});var gtt=p(Uh=>{"use strict";var fbr=Uh&&Uh.__createBinding||(Object.create?(function(t,e,r,i){i===void 0&&(i=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,i,s)}):(function(t,e,r,i){i===void 0&&(i=r),t[i]=e[r]})),hbr=Uh&&Uh.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),dbr=Uh&&Uh.__importStar||(function(){var t=function(e){return t=Object.getOwnPropertyNames||function(r){var i=[];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(i[i.length]=s);return i},t(e)};return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var i=t(e),s=0;s<i.length;s++)i[s]!=="default"&&fbr(r,e,i[s]);return hbr(r,e),r}})();Object.defineProperty(Uh,"__esModule",{value:!0});Uh.TSTInfo=void 0;var Att=dbr(fB()),pbr=cG(),mbr=rde(),ide=class{root;constructor(e){this.root=e}get version(){return this.root.subs[0].toInteger()}get genTime(){return this.root.subs[4].toDate()}get messageImprintHashAlgorithm(){let e=this.messageImprintObj.subs[0].subs[0].toOID();return pbr.SHA2_HASH_ALGOS[e]}get messageImprintHashedMessage(){return this.messageImprintObj.subs[1].value}get raw(){return this.root.toDER()}verify(e){let r=Att.digest(this.messageImprintHashAlgorithm,e);if(!Att.bufferEqual(r,this.messageImprintHashedMessage))throw new mbr.RFC3161TimestampVerificationError("message imprint does not match artifact")}get messageImprintObj(){return this.root.subs[2]}};Uh.TSTInfo=ide});var Ett=p(qh=>{"use strict";var Abr=qh&&qh.__createBinding||(Object.create?(function(t,e,r,i){i===void 0&&(i=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,i,s)}):(function(t,e,r,i){i===void 0&&(i=r),t[i]=e[r]})),gbr=qh&&qh.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),ybr=qh&&qh.__importStar||(function(){var t=function(e){return t=Object.getOwnPropertyNames||function(r){var i=[];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(i[i.length]=s);return i},t(e)};return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var i=t(e),s=0;s<i.length;s++)i[s]!=="default"&&Abr(r,e,i[s]);return gbr(r,e),r}})();Object.defineProperty(qh,"__esModule",{value:!0});qh.RFC3161Timestamp=void 0;var Ebr=nG(),sde=ybr(fB()),ytt=cG(),F1=rde(),bbr=gtt(),wbr="1.2.840.113549.1.7.2",Cbr="1.2.840.113549.1.9.16.1.4",Ibr="1.2.840.113549.1.9.4",nde=class t{root;constructor(e){this.root=e}static parse(e){let r=Ebr.ASN1Obj.parseBuffer(e);return new t(r)}get status(){return this.pkiStatusInfoObj.subs[0].toInteger()}get contentType(){return this.contentTypeObj.toOID()}get eContentType(){return this.eContentTypeObj.toOID()}get signingTime(){return this.tstInfo.genTime}get signerIssuer(){return this.signerSidObj.subs[0].value}get signerSerialNumber(){return this.signerSidObj.subs[1].value}get signerDigestAlgorithm(){let e=this.signerDigestAlgorithmObj.subs[0].toOID();return ytt.SHA2_HASH_ALGOS[e]}get signatureAlgorithm(){let e=this.signatureAlgorithmObj.subs[0].toOID();return ytt.ECDSA_SIGNATURE_ALGOS[e]}get signatureValue(){return this.signatureValueObj.value}get tstInfo(){return new bbr.TSTInfo(this.eContentObj.subs[0].subs[0])}verify(e,r){if(!this.timeStampTokenObj)throw new F1.RFC3161TimestampVerificationError("timeStampToken is missing");if(this.contentType!==wbr)throw new F1.RFC3161TimestampVerificationError(`incorrect content type: ${this.contentType}`);if(this.eContentType!==Cbr)throw new F1.RFC3161TimestampVerificationError(`incorrect encapsulated content type: ${this.eContentType}`);this.tstInfo.verify(e),this.verifyMessageDigest(),this.verifySignature(r)}verifyMessageDigest(){let e=sde.digest(this.signerDigestAlgorithm,this.tstInfo.raw),r=this.messageDigestAttributeObj.subs[1].subs[0].value;if(!sde.bufferEqual(e,r))throw new F1.RFC3161TimestampVerificationError("signed data does not match tstInfo")}verifySignature(e){let r=this.signedAttrsObj.toD
Line truncated
|
||||
|
||||
`,Ewr=/\u2014 (\S+) (\S+)\n/g;function bwr(t,e){let r=t.inclusionProof,i=Ide.fromString(r.checkpoint.envelope),s=AG.fromString(i.note);if(!wwr(i,e))throw new U2.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"invalid checkpoint signature"});return s}function wwr(t,e){let r=Buffer.from(t.note,"utf-8");return t.signatures.some(i=>{let s=e.find(n=>Ptt.crypto.bufferEqual(n.logID.subarray(0,4),i.keyHint)&&n.baseURL.match(i.name));return s?Ptt.crypto.verify(r,s.publicKey,i.signature):!1})}var Ide=class t{note;signatures;constructor(e,r){this.note=e,this.signatures=r}static fromString(e){if(!e.includes(Cde))throw new U2.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"missing checkpoint separator"});let r=e.indexOf(Cde),i=e.slice(0,r+1),n=e.slice(r+Cde.length).matchAll(Ewr),o=Array.from(n,a=>{let[,c,u]=a,l=Buffer.from(u,"base64");if(l.length<5)throw new U2.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"malformed checkpoint signature"});return{name:c,keyHint:l.subarray(0,4),signature:l.subarray(4)}});if(o.length===0)throw new U2.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"no signatures found in checkpoint"});return new t(i,o)}},AG=class t{origin;logSize;logHash;rest;constructor(e,r,i,s){this.origin=e,this.logSize=r,this.logHash=i,this.rest=s}static fromString(e){let r=e.trimEnd().split(`
|
||||
`);if(r.length<3)throw new U2.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"too few lines in checkpoint header"});let i=r[0],s=BigInt(r[1]),n=Buffer.from(r[2],"base64"),o=r.slice(3);return new t(i,s,n,o)}};q2.LogCheckpoint=AG});var ktt=p(xde=>{"use strict";Object.defineProperty(xde,"__esModule",{value:!0});xde.verifyMerkleInclusion=Swr;var vde=Dl(),Sde=$n(),Cwr=Buffer.from([0]),Iwr=Buffer.from([1]);function Swr(t,e){let r=t.inclusionProof,i=BigInt(r.logIndex),s=BigInt(e.logSize);if(i<0n||i>=s)throw new Sde.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:`invalid index: ${i}`});let{inner:n,border:o}=Bwr(i,s);if(r.hashes.length!==n+o)throw new Sde.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"invalid hash count"});let a=r.hashes.slice(0,n),c=r.hashes.slice(n),u=Nwr(t.canonicalizedBody),l=xwr(vwr(u,a,i),c);if(!vde.crypto.bufferEqual(l,e.logHash))throw new Sde.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"calculated root hash does not match inclusion proof"})}function Bwr(t,e){let r=_wr(t,e),i=Rwr(t>>BigInt(r));return{inner:r,border:i}}function vwr(t,e,r){return e.reduce((i,s,n)=>r>>BigInt(n)&BigInt(1)?Bde(s,i):Bde(i,s),t)}function xwr(t,e){return e.reduce((r,i)=>Bde(i,r),t)}function _wr(t,e){return Twr(t^e-BigInt(1))}function Rwr(t){return t.toString(2).split("1").length-1}function Twr(t){return t===0n?0:t.toString(2).length}function Bde(t,e){return vde.crypto.digest("sha256",Iwr,t,e)}function Nwr(t){return vde.crypto.digest("sha256",Cwr,t)}});var Mtt=p(_de=>{"use strict";Object.defineProperty(_de,"__esModule",{value:!0});_de.verifyTLogSET=Pwr;var Ltt=Dl(),Dwr=$n(),Owr=fB();function Pwr(t,e){if(!(0,Owr.filterTLogAuthorities)(e,{logID:t.logId.keyId,targetDate:new Date(Number(t.integratedTime)*1e3)}).some(s=>{let n=Qwr(t),o=Buffer.from(Ltt.json.canonicalize(n),"utf8"),a=t.inclusionPromise.signedEntryTimestamp;return Ltt.crypto.verify(o,s.publicKey,a)}))throw new Dwr.VerificationError({code:"TLOG_INCLUSION_PROMISE_ERROR",message:"inclusion promise could not be verified"})}function Qwr(t){let{integratedTime:e,logIndex:r,logId:i,canonicalizedBody:s}=t;return{body:s.toString("base64"),integratedTime:Number(e),logIndex:Number(r),logID:i.keyId.toString("hex")}}});var Utt=p(gG=>{"use strict";Object.defineProperty(gG,"__esModule",{value:!0});gG.verifyTLogBody=Uwr;gG.verifyTLogInclusion=qwr;var Ftt=Xle(),Nde=$n(),Rde=Ntt(),Tde=Dtt(),kwr=Ott(),Lwr=Qtt(),Mwr=ktt(),Fwr=Mtt();function Uwr(t,e){let{kind:r,version:i}=t.kindVersion,s=JSON.parse(t.canonicalizedBody.toString("utf8"));if(r!==s.kind||i!==s.apiVersion)throw new Nde.VerificationError({code:"TLOG_BODY_ERROR",message:`kind/version mismatch - expected: ${r}/${i}, received: ${s.kind}/${s.apiVersion}`});switch(r){case"dsse":if(i==Rde.DSSE_API_VERSION_V1)return(0,Rde.verifyDSSETLogBody)(s,e);{let n=Ftt.Entry.fromJSON(s);return(0,Rde.verifyDSSETLogBodyV2)(n,e)}case"intoto":return(0,kwr.verifyIntotoTLogBody)(s,e);case"hashedrekord":if(i==Tde.HASHEDREKORD_API_VERSION_V1)return(0,Tde.verifyHashedRekordTLogBody)(s,e);{let n=Ftt.Entry.fromJSON(s);return(0,Tde.verifyHashedRekordTLogBodyV2)(n,e)}default:throw new Nde.VerificationError({code:"TLOG_BODY_ERROR",message:`unsupported kind: ${r}`})}}function qwr(t,e){let r=!1;if(Gwr(t)&&((0,Fwr.verifyTLogSET)(t,e),r=!0),Hwr(t)){let i=(0,Lwr.verifyCheckpoint)(t,e);(0,Mwr.verifyMerkleInclusion)(t,i),r=!0}if(!r)throw new Nde.VerificationError({code:"TLOG_MISSING_INCLUSION_ERROR",message:"inclusion could not be verified"})}function Gwr(t){return t.inclusionPromise!==void 0}function Hwr(t){return t.inclusionProof!==void 0}});var Vtt=p(yG=>{"use strict";Object.defineProperty(yG,"__esModule",{value:!0});yG.Verifier=void 0;var jwr=require("util"),hB=$n(),qtt=Btt(),Gtt=xtt(),Htt=Ttt(),jtt=Utt(),Dde=class{trustMaterial;options;constructor(e,r={}){this.trustMaterial=e,this.options={ctlogThreshold:r.ctlogThreshold??1,tlogThreshold:r.tlogThreshold??1,timestampThreshold:r.timestampThreshold??r.tsaThreshold??1,tsaThreshold:0}}verify(e,r){let i=this.verifyTimestamps(e),s=this.verifySigningKey(e,i);return this.verifyTLogs(e),this.verifySignature(e,s),r&&this.verifyPolicy(r,s.identity||{}),s}verifyTimestamps(e){let r=0,i=e.timestamps.map(s=>{switch(s.$case){case"timestamp-authority":return r++,(0,Htt.getTSATimestamp)(s.timestamp,e.signature.signature,this.trustMaterial.timestampAuthorities);case"transparency-log":return r++,(0,Htt.getTLogTimestamp)(s.tlogEntry)}});if(ztt(i))throw new hB.VerificationError({code:"TIMESTAMP_ERROR",message:"duplicate timestamp"});if(r<this.options.timestampThreshold)throw new hB.VerificationError({code:"TIMESTAMP_ERROR",message:`expected ${this.options.timestampThreshold} timestamps, got ${r}`});return i.map(s=>s.timestamp)}verifySigningKey({key:e},r){switch(e.$case){case"public-key":return(0,qtt.verifyPublicKey)(e.hint,r,this.trustMaterial);case"certificate":{let i=(0,qtt.verifyCertificate)(e.certificate,r,this.trustMaterial);if(ztt(i.scts))throw new hB.Verificat
Line truncated
|
||||
`,Fwr=/\u2014 (\S+) (\S+)\n/g;function Mwr(t,e){let r=t.inclusionProof,i=Dde.fromString(r.checkpoint.envelope),s=CG.fromString(i.note);if(!Uwr(i,e))throw new H1.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"invalid checkpoint signature"});return s}function Uwr(t,e){let r=Buffer.from(t.note,"utf-8");return t.signatures.some(i=>{let s=e.find(n=>Vtt.crypto.bufferEqual(n.logID.subarray(0,4),i.keyHint)&&n.baseURL.match(i.name));return s?Vtt.crypto.verify(r,s.publicKey,i.signature):!1})}var Dde=class t{note;signatures;constructor(e,r){this.note=e,this.signatures=r}static fromString(e){if(!e.includes(Tde))throw new H1.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"missing checkpoint separator"});let r=e.indexOf(Tde),i=e.slice(0,r+1),n=e.slice(r+Tde.length).matchAll(Fwr),o=Array.from(n,a=>{let[,c,u]=a,l=Buffer.from(u,"base64");if(l.length<5)throw new H1.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"malformed checkpoint signature"});return{name:c,keyHint:l.subarray(0,4),signature:l.subarray(4)}});if(o.length===0)throw new H1.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"no signatures found in checkpoint"});return new t(i,o)}},CG=class t{origin;logSize;logHash;rest;constructor(e,r,i,s){this.origin=e,this.logSize=r,this.logHash=i,this.rest=s}static fromString(e){let r=e.trimEnd().split(`
|
||||
`);if(r.length<3)throw new H1.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"too few lines in checkpoint header"});let i=r[0],s=BigInt(r[1]),n=Buffer.from(r[2],"base64"),o=r.slice(3);return new t(i,s,n,o)}};j1.LogCheckpoint=CG});var Wtt=p(kde=>{"use strict";Object.defineProperty(kde,"__esModule",{value:!0});kde.verifyMerkleInclusion=Hwr;var Qde=Tl(),Ode=$n(),qwr=Buffer.from([0]),Gwr=Buffer.from([1]);function Hwr(t,e){let r=t.inclusionProof,i=BigInt(r.logIndex),s=BigInt(e.logSize);if(i<0n||i>=s)throw new Ode.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:`invalid index: ${i}`});let{inner:n,border:o}=jwr(i,s);if(r.hashes.length!==n+o)throw new Ode.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"invalid hash count"});let a=r.hashes.slice(0,n),c=r.hashes.slice(n),u=Ywr(t.canonicalizedBody),l=Vwr(zwr(u,a,i),c);if(!Qde.crypto.bufferEqual(l,e.logHash))throw new Ode.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"calculated root hash does not match inclusion proof"})}function jwr(t,e){let r=$wr(t,e),i=Wwr(t>>BigInt(r));return{inner:r,border:i}}function zwr(t,e,r){return e.reduce((i,s,n)=>r>>BigInt(n)&BigInt(1)?Pde(s,i):Pde(i,s),t)}function Vwr(t,e){return e.reduce((r,i)=>Pde(i,r),t)}function $wr(t,e){return Jwr(t^e-BigInt(1))}function Wwr(t){return t.toString(2).split("1").length-1}function Jwr(t){return t===0n?0:t.toString(2).length}function Pde(t,e){return Qde.crypto.digest("sha256",Gwr,t,e)}function Ywr(t){return Qde.crypto.digest("sha256",qwr,t)}});var Ytt=p(Lde=>{"use strict";Object.defineProperty(Lde,"__esModule",{value:!0});Lde.verifyTLogSET=Zwr;var Jtt=Tl(),Kwr=$n(),Xwr=pB();function Zwr(t,e){if(!(0,Xwr.filterTLogAuthorities)(e,{logID:t.logId.keyId,targetDate:new Date(Number(t.integratedTime)*1e3)}).some(s=>{let n=eCr(t),o=Buffer.from(Jtt.json.canonicalize(n),"utf8"),a=t.inclusionPromise.signedEntryTimestamp;return Jtt.crypto.verify(o,s.publicKey,a)}))throw new Kwr.VerificationError({code:"TLOG_INCLUSION_PROMISE_ERROR",message:"inclusion promise could not be verified"})}function eCr(t){let{integratedTime:e,logIndex:r,logId:i,canonicalizedBody:s}=t;return{body:s.toString("base64"),integratedTime:Number(e),logIndex:Number(r),logID:i.keyId.toString("hex")}}});var Xtt=p(IG=>{"use strict";Object.defineProperty(IG,"__esModule",{value:!0});IG.verifyTLogBody=nCr;IG.verifyTLogInclusion=oCr;var Ktt=afe(),Ude=$n(),Fde=Htt(),Mde=jtt(),tCr=ztt(),rCr=$tt(),iCr=Wtt(),sCr=Ytt();function nCr(t,e){let{kind:r,version:i}=t.kindVersion,s=JSON.parse(t.canonicalizedBody.toString("utf8"));if(r!==s.kind||i!==s.apiVersion)throw new Ude.VerificationError({code:"TLOG_BODY_ERROR",message:`kind/version mismatch - expected: ${r}/${i}, received: ${s.kind}/${s.apiVersion}`});switch(r){case"dsse":if(i==Fde.DSSE_API_VERSION_V1)return(0,Fde.verifyDSSETLogBody)(s,e);{let n=Ktt.Entry.fromJSON(s);return(0,Fde.verifyDSSETLogBodyV2)(n,e)}case"intoto":return(0,tCr.verifyIntotoTLogBody)(s,e);case"hashedrekord":if(i==Mde.HASHEDREKORD_API_VERSION_V1)return(0,Mde.verifyHashedRekordTLogBody)(s,e);{let n=Ktt.Entry.fromJSON(s);return(0,Mde.verifyHashedRekordTLogBodyV2)(n,e)}default:throw new Ude.VerificationError({code:"TLOG_BODY_ERROR",message:`unsupported kind: ${r}`})}}function oCr(t,e){let r=!1;if(aCr(t)&&((0,sCr.verifyTLogSET)(t,e),r=!0),cCr(t)){let i=(0,rCr.verifyCheckpoint)(t,e);(0,iCr.verifyMerkleInclusion)(t,i),r=!0}if(!r)throw new Ude.VerificationError({code:"TLOG_MISSING_INCLUSION_ERROR",message:"inclusion could not be verified"})}function aCr(t){return t.inclusionPromise!==void 0}function cCr(t){return t.inclusionProof!==void 0}});var srt=p(SG=>{"use strict";Object.defineProperty(SG,"__esModule",{value:!0});SG.Verifier=void 0;var uCr=require("util"),mB=$n(),Ztt=Ltt(),ert=Mtt(),trt=Gtt(),rrt=Xtt(),qde=class{trustMaterial;options;constructor(e,r={}){this.trustMaterial=e,this.options={ctlogThreshold:r.ctlogThreshold??1,tlogThreshold:r.tlogThreshold??1,timestampThreshold:r.timestampThreshold??r.tsaThreshold??1,tsaThreshold:0}}verify(e,r){let i=this.verifyTimestamps(e),s=this.verifySigningKey(e,i);return this.verifyTLogs(e),this.verifySignature(e,s),r&&this.verifyPolicy(r,s.identity||{}),s}verifyTimestamps(e){let r=0,i=e.timestamps.map(s=>{switch(s.$case){case"timestamp-authority":return r++,(0,trt.getTSATimestamp)(s.timestamp,e.signature.signature,this.trustMaterial.timestampAuthorities);case"transparency-log":return r++,(0,trt.getTLogTimestamp)(s.tlogEntry)}});if(irt(i))throw new mB.VerificationError({code:"TIMESTAMP_ERROR",message:"duplicate timestamp"});if(r<this.options.timestampThreshold)throw new mB.VerificationError({code:"TIMESTAMP_ERROR",message:`expected ${this.options.timestampThreshold} timestamps, got ${r}`});return i.map(s=>s.timestamp)}verifySigningKey({key:e},r){switch(e.$case){case"public-key":return(0,Ztt.verifyPublicKey)(e.hint,r,this.trustMaterial);case"certificate":{let i=(0,Ztt.verifyCertificate)(e.certificate,r,this.trustMaterial);if(irt(i.scts))throw new mB.Verificat
Line truncated
|
||||
You can add a runtime option to disable the check or this warning:
|
||||
See https://handlebarsjs.com/api-reference/runtime-options.html#options-to-control-prototype-access for details`))}function jCr(){Object.keys($G).forEach(function(t){delete $G[t]})}});var JG=p(Wh=>{"use strict";Wh.__esModule=!0;Wh.HandlebarsEnvironment=Kde;function Drt(t){return t&&t.__esModule?t:{default:t}}var N0=Mo(),zCr=yc(),Jde=Drt(zCr),VCr=zde(),$Cr=_rt(),WCr=$de(),WG=Drt(WCr),JCr=Wde(),YCr="4.7.9";Wh.VERSION=YCr;var KCr=8;Wh.COMPILER_REVISION=KCr;var XCr=7;Wh.LAST_COMPATIBLE_COMPILER_REVISION=XCr;var ZCr={1:"<= 1.0.rc.2",2:"== 1.0.0-rc.3",3:"== 1.0.0-rc.4",4:"== 1.x.x",5:"== 2.0.0-alpha.x",6:">= 2.0.0-beta.1",7:">= 4.0.0 <4.3.0",8:">= 4.3.0"};Wh.REVISION_CHANGES=ZCr;var Yde="[object Object]";function Kde(t,e,r){this.helpers=t||{},this.partials=e||{},this.decorators=r||{},VCr.registerDefaultHelpers(this),$Cr.registerDefaultDecorators(this)}Kde.prototype={constructor:Kde,logger:WG.default,log:WG.default.log,registerHelper:function(e,r){if(N0.toString.call(e)===Yde){if(r)throw new Jde.default("Arg not supported with multiple helpers");N0.extend(this.helpers,e)}else this.helpers[e]=r},unregisterHelper:function(e){delete this.helpers[e]},registerPartial:function(e,r){if(N0.toString.call(e)===Yde)N0.extend(this.partials,e);else{if(typeof r>"u")throw new Jde.default('Attempting to register a partial called "'+e+'" as undefined');this.partials[e]=r}},unregisterPartial:function(e){delete this.partials[e]},registerDecorator:function(e,r){if(N0.toString.call(e)===Yde){if(r)throw new Jde.default("Arg not supported with multiple decorators");N0.extend(this.decorators,e)}else this.decorators[e]=r},unregisterDecorator:function(e){delete this.decorators[e]},resetLoggedPropertyAccesses:function(){JCr.resetLoggedProperties()}};var eIr=WG.default.log;Wh.log=eIr;Wh.createFrame=N0.createFrame;Wh.logger=WG.default});var Prt=p((YG,Ort)=>{"use strict";YG.__esModule=!0;function Xde(t){this.string=t}Xde.prototype.toString=Xde.prototype.toHTML=function(){return""+this.string};YG.default=Xde;Ort.exports=YG.default});var Qrt=p(Zde=>{"use strict";Zde.__esModule=!0;Zde.wrapHelper=tIr;function tIr(t,e){if(typeof t!="function")return t;var r=function(){var s=arguments[arguments.length-1];return arguments[arguments.length-1]=e(s),t.apply(this,arguments)};return r}});var qrt=p(fg=>{"use strict";fg.__esModule=!0;fg.checkRevision=aIr;fg.template=cIr;fg.wrapProgram=KG;fg.resolvePartial=uIr;fg.invokePartial=lIr;fg.noop=Frt;function rIr(t){return t&&t.__esModule?t:{default:t}}function iIr(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e.default=t,e}var sIr=Mo(),bB=iIr(sIr),nIr=yc(),Kp=rIr(nIr),Xp=JG(),krt=zde(),oIr=Qrt(),Lrt=Wde();function aIr(t){var e=t&&t[0]||1,r=Xp.COMPILER_REVISION;if(!(e>=Xp.LAST_COMPATIBLE_COMPILER_REVISION&&e<=Xp.COMPILER_REVISION))if(e<Xp.LAST_COMPATIBLE_COMPILER_REVISION){var i=Xp.REVISION_CHANGES[r],s=Xp.REVISION_CHANGES[e];throw new Kp.default("Template was precompiled with an older version of Handlebars than the current runtime. Please update your precompiler to a newer version ("+i+") or downgrade your runtime to an older version ("+s+").")}else throw new Kp.default("Template was precompiled with a newer version of Handlebars than the current runtime. Please update your runtime to a newer version ("+t[1]+").")}function cIr(t,e){if(!e)throw new Kp.default("No environment passed to template");if(!t||!t.main)throw new Kp.default("Unknown template object: "+typeof t);t.main.decorator=t.main_d,e.VM.checkRevision(t.compiler);var r=t.compiler&&t.compiler[0]===7;function i(o,a,c){c.hash&&(a=bB.extend({},a,c.hash),c.ids&&(c.ids[0]=!0)),o=e.VM.resolvePartial.call(this,o,a,c),c.hooks=this.hooks,c.protoAccessControl=this.protoAccessControl;var u=e.VM.invokePartial.call(this,o,a,c);if(u==null&&e.compile&&(c.partials[c.name]=e.compile(o,t.compilerOptions,e),u=c.partials[c.name](a,c)),u!=null){if(c.indent){for(var l=u.split(`
|
||||
See https://handlebarsjs.com/api-reference/runtime-options.html#options-to-control-prototype-access for details`))}function uIr(){Object.keys(ZG).forEach(function(t){delete ZG[t]})}});var tH=p($h=>{"use strict";$h.__esModule=!0;$h.HandlebarsEnvironment=ope;function jrt(t){return t&&t.__esModule?t:{default:t}}var O0=Fo(),lIr=gc(),spe=jrt(lIr),fIr=epe(),hIr=Urt(),dIr=rpe(),eH=jrt(dIr),pIr=ipe(),mIr="4.7.9";$h.VERSION=mIr;var AIr=8;$h.COMPILER_REVISION=AIr;var gIr=7;$h.LAST_COMPATIBLE_COMPILER_REVISION=gIr;var yIr={1:"<= 1.0.rc.2",2:"== 1.0.0-rc.3",3:"== 1.0.0-rc.4",4:"== 1.x.x",5:"== 2.0.0-alpha.x",6:">= 2.0.0-beta.1",7:">= 4.0.0 <4.3.0",8:">= 4.3.0"};$h.REVISION_CHANGES=yIr;var npe="[object Object]";function ope(t,e,r){this.helpers=t||{},this.partials=e||{},this.decorators=r||{},fIr.registerDefaultHelpers(this),hIr.registerDefaultDecorators(this)}ope.prototype={constructor:ope,logger:eH.default,log:eH.default.log,registerHelper:function(e,r){if(O0.toString.call(e)===npe){if(r)throw new spe.default("Arg not supported with multiple helpers");O0.extend(this.helpers,e)}else this.helpers[e]=r},unregisterHelper:function(e){delete this.helpers[e]},registerPartial:function(e,r){if(O0.toString.call(e)===npe)O0.extend(this.partials,e);else{if(typeof r>"u")throw new spe.default('Attempting to register a partial called "'+e+'" as undefined');this.partials[e]=r}},unregisterPartial:function(e){delete this.partials[e]},registerDecorator:function(e,r){if(O0.toString.call(e)===npe){if(r)throw new spe.default("Arg not supported with multiple decorators");O0.extend(this.decorators,e)}else this.decorators[e]=r},unregisterDecorator:function(e){delete this.decorators[e]},resetLoggedPropertyAccesses:function(){pIr.resetLoggedProperties()}};var EIr=eH.default.log;$h.log=EIr;$h.createFrame=O0.createFrame;$h.logger=eH.default});var Vrt=p((rH,zrt)=>{"use strict";rH.__esModule=!0;function ape(t){this.string=t}ape.prototype.toString=ape.prototype.toHTML=function(){return""+this.string};rH.default=ape;zrt.exports=rH.default});var $rt=p(cpe=>{"use strict";cpe.__esModule=!0;cpe.wrapHelper=bIr;function bIr(t,e){if(typeof t!="function")return t;var r=function(){var s=arguments[arguments.length-1];return arguments[arguments.length-1]=e(s),t.apply(this,arguments)};return r}});var Zrt=p(hg=>{"use strict";hg.__esModule=!0;hg.checkRevision=vIr;hg.template=xIr;hg.wrapProgram=iH;hg.resolvePartial=_Ir;hg.invokePartial=RIr;hg.noop=Krt;function wIr(t){return t&&t.__esModule?t:{default:t}}function CIr(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e.default=t,e}var IIr=Fo(),IB=CIr(IIr),SIr=gc(),Yp=wIr(SIr),Kp=tH(),Wrt=epe(),BIr=$rt(),Jrt=ipe();function vIr(t){var e=t&&t[0]||1,r=Kp.COMPILER_REVISION;if(!(e>=Kp.LAST_COMPATIBLE_COMPILER_REVISION&&e<=Kp.COMPILER_REVISION))if(e<Kp.LAST_COMPATIBLE_COMPILER_REVISION){var i=Kp.REVISION_CHANGES[r],s=Kp.REVISION_CHANGES[e];throw new Yp.default("Template was precompiled with an older version of Handlebars than the current runtime. Please update your precompiler to a newer version ("+i+") or downgrade your runtime to an older version ("+s+").")}else throw new Yp.default("Template was precompiled with a newer version of Handlebars than the current runtime. Please update your runtime to a newer version ("+t[1]+").")}function xIr(t,e){if(!e)throw new Yp.default("No environment passed to template");if(!t||!t.main)throw new Yp.default("Unknown template object: "+typeof t);t.main.decorator=t.main_d,e.VM.checkRevision(t.compiler);var r=t.compiler&&t.compiler[0]===7;function i(o,a,c){c.hash&&(a=IB.extend({},a,c.hash),c.ids&&(c.ids[0]=!0)),o=e.VM.resolvePartial.call(this,o,a,c),c.hooks=this.hooks,c.protoAccessControl=this.protoAccessControl;var u=e.VM.invokePartial.call(this,o,a,c);if(u==null&&e.compile&&(c.partials[c.name]=e.compile(o,t.compilerOptions,e),u=c.partials[c.name](a,c)),u!=null){if(c.indent){for(var l=u.split(`
|
||||
`),f=0,h=l.length;f<h&&!(!l[f]&&f+1===h);f++)l[f]=c.indent+l[f];u=l.join(`
|
||||
`)}return u}else throw new Kp.default("The partial "+c.name+" could not be compiled when running in runtime-only mode")}var s={strict:function(a,c,u){if(!a||!(c in a))throw new Kp.default('"'+c+'" not defined in '+a,{loc:u});return s.lookupProperty(a,c)},lookupProperty:function(a,c){var u=a[c];if(u==null||Object.prototype.hasOwnProperty.call(a,c)||Lrt.resultIsAllowed(u,s.protoAccessControl,c))return u},lookup:function(a,c){for(var u=a.length,l=0;l<u;l++){var f=a[l]&&s.lookupProperty(a[l],c);if(f!=null)return f}},lambda:function(a,c){return typeof a=="function"?a.call(c):a},escapeExpression:bB.escapeExpression,invokePartial:i,fn:function(a){var c=t[a];return c.decorator=t[a+"_d"],c},programs:[],program:function(a,c,u,l,f){var h=this.programs[a],d=this.fn(a);return c||f||l||u?h=KG(this,a,d,c,u,l,f):h||(h=this.programs[a]=KG(this,a,d)),h},data:function(a,c){for(;a&&c--;)a=a._parent;return a},mergeIfNeeded:function(a,c){var u=a||c;return a&&c&&a!==c&&(u=bB.extend({},c,a)),u},nullContext:Object.seal({}),noop:e.VM.noop,compilerInfo:t.compiler};function n(o){var a=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],c=a.data;n._setup(a),!a.partial&&t.useData&&(c=fIr(o,c));var u=void 0,l=t.useBlockParams?[]:void 0;t.useDepths&&(a.depths?u=o!=a.depths[0]?[o].concat(a.depths):a.depths:u=[o]);function f(h){return""+t.main(s,h,s.helpers,s.partials,c,l,u)}return f=Urt(t.main,f,s,a.depths||[],c,l),f(o,a)}return n.isTop=!0,n._setup=function(o){if(o.partial)s.protoAccessControl=o.protoAccessControl,s.helpers=o.helpers,s.partials=o.partials,s.decorators=o.decorators,s.hooks=o.hooks;else{var a={};Mrt(a,e.helpers,s),Mrt(a,o.helpers,s),s.helpers=a,t.usePartial&&(s.partials=s.mergeIfNeeded(o.partials,e.partials)),(t.usePartial||t.useDecorators)&&(s.decorators=bB.extend({},e.decorators,o.decorators)),s.hooks={},s.protoAccessControl=Lrt.createProtoAccessControl(o);var c=o.allowCallsToHelperMissing||r;krt.moveHelperToHooks(s,"helperMissing",c),krt.moveHelperToHooks(s,"blockHelperMissing",c)}},n._child=function(o,a,c,u){if(t.useBlockParams&&!c)throw new Kp.default("must pass block params");if(t.useDepths&&!u)throw new Kp.default("must pass parent depths");return KG(s,o,t[o],a,0,c,u)},n}function KG(t,e,r,i,s,n,o){function a(c){var u=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],l=o;return o&&c!=o[0]&&!(c===t.nullContext&&o[0]===null)&&(l=[c].concat(o)),r(t,c,t.helpers,t.partials,u.data||i,n&&[u.blockParams].concat(n),l)}return a=Urt(r,a,t,o,i,n),a.program=e,a.depth=o?o.length:0,a.blockParams=s||0,a}function uIr(t,e,r){return t?!t.call&&!r.name&&(r.name=t,t=XG(r.partials,t)):r.name==="@partial-block"?t=XG(r.data,"partial-block"):t=XG(r.partials,r.name),t}function lIr(t,e,r){var i=XG(r.data,"partial-block");r.partial=!0,r.ids&&(r.data.contextPath=r.ids[0]||r.data.contextPath);var s=void 0;if(r.fn&&r.fn!==Frt&&(function(){r.data=Xp.createFrame(r.data);var n=r.fn;s=r.data["partial-block"]=function(a){var c=arguments.length<=1||arguments[1]===void 0?{}:arguments[1];return c.data=Xp.createFrame(c.data),c.data["partial-block"]=i,n(a,c)},n.partials&&(r.partials=bB.extend({},r.partials,n.partials))})(),t===void 0&&s&&(t=s),t===void 0)throw new Kp.default("The partial "+r.name+" could not be found");if(t instanceof Function)return t(e,r)}function Frt(){return""}function XG(t,e){if(t&&Object.prototype.hasOwnProperty.call(t,e))return t[e]}function fIr(t,e){return(!e||!("root"in e))&&(e=e?Xp.createFrame(e):{},e.root=t),e}function Urt(t,e,r,i,s,n){if(t.decorator){var o={};e=t.decorator(e,o,r,i&&i[0],s,n,i),bB.extend(e,o)}return e}function Mrt(t,e,r){e&&Object.keys(e).forEach(function(i){var s=e[i];t[i]=hIr(s,r)})}function hIr(t,e){var r=e.lookupProperty;return oIr.wrapHelper(t,function(i){return i.lookupProperty=r,i})}});var epe=p((ZG,Grt)=>{"use strict";ZG.__esModule=!0;ZG.default=function(t){(function(){typeof globalThis!="object"&&(Object.prototype.__defineGetter__("__magic__",function(){return this}),__magic__.globalThis=__magic__,delete Object.prototype.__magic__)})();var e=globalThis.Handlebars;t.noConflict=function(){return globalThis.Handlebars===t&&(globalThis.Handlebars=e),t}};Grt.exports=ZG.default});var $rt=p((eH,Vrt)=>{"use strict";eH.__esModule=!0;function rpe(t){return t&&t.__esModule?t:{default:t}}function ipe(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e.default=t,e}var dIr=JG(),Hrt=ipe(dIr),pIr=Prt(),mIr=rpe(pIr),AIr=yc(),gIr=rpe(AIr),yIr=Mo(),tpe=ipe(yIr),EIr=qrt(),jrt=ipe(EIr),bIr=epe(),wIr=rpe(bIr);function zrt(){var t=new Hrt.HandlebarsEnvironment;return tpe.extend(t,Hrt),t.SafeString=mIr.default,t.Exception=gIr.default,t.Utils=tpe,t.escapeExpression=tpe.escapeExpression,t.VM=jrt,t.template=function(e){return jrt.template(e,t)},t}var Y2=zrt();Y2.create=zrt;wIr.default(Y2);Y2.default=Y2;eH.default=Y2;Vrt.exports=eH.default});var spe=p((tH,Jrt)=>{"use strict";tH.__esModule=!0;var Wrt={helpers:{helperExpression:function(e){re
Line truncated
|
||||
`)}return u}else throw new Yp.default("The partial "+c.name+" could not be compiled when running in runtime-only mode")}var s={strict:function(a,c,u){if(!a||!(c in a))throw new Yp.default('"'+c+'" not defined in '+a,{loc:u});return s.lookupProperty(a,c)},lookupProperty:function(a,c){var u=a[c];if(u==null||Object.prototype.hasOwnProperty.call(a,c)||Jrt.resultIsAllowed(u,s.protoAccessControl,c))return u},lookup:function(a,c){for(var u=a.length,l=0;l<u;l++){var f=a[l]&&s.lookupProperty(a[l],c);if(f!=null)return f}},lambda:function(a,c){return typeof a=="function"?a.call(c):a},escapeExpression:IB.escapeExpression,invokePartial:i,fn:function(a){var c=t[a];return c.decorator=t[a+"_d"],c},programs:[],program:function(a,c,u,l,f){var h=this.programs[a],d=this.fn(a);return c||f||l||u?h=iH(this,a,d,c,u,l,f):h||(h=this.programs[a]=iH(this,a,d)),h},data:function(a,c){for(;a&&c--;)a=a._parent;return a},mergeIfNeeded:function(a,c){var u=a||c;return a&&c&&a!==c&&(u=IB.extend({},c,a)),u},nullContext:Object.seal({}),noop:e.VM.noop,compilerInfo:t.compiler};function n(o){var a=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],c=a.data;n._setup(a),!a.partial&&t.useData&&(c=NIr(o,c));var u=void 0,l=t.useBlockParams?[]:void 0;t.useDepths&&(a.depths?u=o!=a.depths[0]?[o].concat(a.depths):a.depths:u=[o]);function f(h){return""+t.main(s,h,s.helpers,s.partials,c,l,u)}return f=Xrt(t.main,f,s,a.depths||[],c,l),f(o,a)}return n.isTop=!0,n._setup=function(o){if(o.partial)s.protoAccessControl=o.protoAccessControl,s.helpers=o.helpers,s.partials=o.partials,s.decorators=o.decorators,s.hooks=o.hooks;else{var a={};Yrt(a,e.helpers,s),Yrt(a,o.helpers,s),s.helpers=a,t.usePartial&&(s.partials=s.mergeIfNeeded(o.partials,e.partials)),(t.usePartial||t.useDecorators)&&(s.decorators=IB.extend({},e.decorators,o.decorators)),s.hooks={},s.protoAccessControl=Jrt.createProtoAccessControl(o);var c=o.allowCallsToHelperMissing||r;Wrt.moveHelperToHooks(s,"helperMissing",c),Wrt.moveHelperToHooks(s,"blockHelperMissing",c)}},n._child=function(o,a,c,u){if(t.useBlockParams&&!c)throw new Yp.default("must pass block params");if(t.useDepths&&!u)throw new Yp.default("must pass parent depths");return iH(s,o,t[o],a,0,c,u)},n}function iH(t,e,r,i,s,n,o){function a(c){var u=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],l=o;return o&&c!=o[0]&&!(c===t.nullContext&&o[0]===null)&&(l=[c].concat(o)),r(t,c,t.helpers,t.partials,u.data||i,n&&[u.blockParams].concat(n),l)}return a=Xrt(r,a,t,o,i,n),a.program=e,a.depth=o?o.length:0,a.blockParams=s||0,a}function _Ir(t,e,r){return t?!t.call&&!r.name&&(r.name=t,t=sH(r.partials,t)):r.name==="@partial-block"?t=sH(r.data,"partial-block"):t=sH(r.partials,r.name),t}function RIr(t,e,r){var i=sH(r.data,"partial-block");r.partial=!0,r.ids&&(r.data.contextPath=r.ids[0]||r.data.contextPath);var s=void 0;if(r.fn&&r.fn!==Krt&&(function(){r.data=Kp.createFrame(r.data);var n=r.fn;s=r.data["partial-block"]=function(a){var c=arguments.length<=1||arguments[1]===void 0?{}:arguments[1];return c.data=Kp.createFrame(c.data),c.data["partial-block"]=i,n(a,c)},n.partials&&(r.partials=IB.extend({},r.partials,n.partials))})(),t===void 0&&s&&(t=s),t===void 0)throw new Yp.default("The partial "+r.name+" could not be found");if(t instanceof Function)return t(e,r)}function Krt(){return""}function sH(t,e){if(t&&Object.prototype.hasOwnProperty.call(t,e))return t[e]}function NIr(t,e){return(!e||!("root"in e))&&(e=e?Kp.createFrame(e):{},e.root=t),e}function Xrt(t,e,r,i,s,n){if(t.decorator){var o={};e=t.decorator(e,o,r,i&&i[0],s,n,i),IB.extend(e,o)}return e}function Yrt(t,e,r){e&&Object.keys(e).forEach(function(i){var s=e[i];t[i]=TIr(s,r)})}function TIr(t,e){var r=e.lookupProperty;return BIr.wrapHelper(t,function(i){return i.lookupProperty=r,i})}});var upe=p((nH,eit)=>{"use strict";nH.__esModule=!0;nH.default=function(t){(function(){typeof globalThis!="object"&&(Object.prototype.__defineGetter__("__magic__",function(){return this}),__magic__.globalThis=__magic__,delete Object.prototype.__magic__)})();var e=globalThis.Handlebars;t.noConflict=function(){return globalThis.Handlebars===t&&(globalThis.Handlebars=e),t}};eit.exports=nH.default});var nit=p((oH,sit)=>{"use strict";oH.__esModule=!0;function fpe(t){return t&&t.__esModule?t:{default:t}}function hpe(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e.default=t,e}var DIr=tH(),tit=hpe(DIr),OIr=Vrt(),PIr=fpe(OIr),QIr=gc(),kIr=fpe(QIr),LIr=Fo(),lpe=hpe(LIr),FIr=Zrt(),rit=hpe(FIr),MIr=upe(),UIr=fpe(MIr);function iit(){var t=new tit.HandlebarsEnvironment;return lpe.extend(t,tit),t.SafeString=PIr.default,t.Exception=kIr.default,t.Utils=lpe,t.escapeExpression=lpe.escapeExpression,t.VM=rit,t.template=function(e){return rit.template(e,t)},t}var Z1=iit();Z1.create=iit;UIr.default(Z1);Z1.default=Z1;oH.default=Z1;sit.exports=oH.default});var dpe=p((aH,ait)=>{"use strict";aH.__esModule=!0;var oit={helpers:{helperExpression:function(e){re
Line truncated
|
||||
`+this.lexer.showPosition()+`
|
||||
Expecting `+Ne.join(", ")+", got '"+(this.terminals_[S]||S)+"'":he="Parse error on line "+(f+1)+": Unexpected "+(S==1?"end of input":"'"+(this.terminals_[S]||S)+"'"),this.parseError(he,{text:this.lexer.match,token:this.terminals_[S]||S,line:this.lexer.yylineno,loc:y,expected:Ne})}}if(N[0]instanceof Array&&N.length>1)throw new Error("Parse Error: multiple actions possible at state: "+q+", token: "+S);switch(N[0]){case 1:o.push(S),a.push(this.lexer.yytext),c.push(this.lexer.yylloc),o.push(N[1]),S=null,D?(S=D,D=null):(h=this.lexer.yyleng,l=this.lexer.yytext,f=this.lexer.yylineno,y=this.lexer.yylloc,d>0&&d--);break;case 2:if(Z=this.productions_[N[1]][1],j.$=a[a.length-Z],j._$={first_line:c[c.length-(Z||1)].first_line,last_line:c[c.length-1].last_line,first_column:c[c.length-(Z||1)].first_column,last_column:c[c.length-1].last_column},g&&(j._$.range=[c[c.length-(Z||1)].range[0],c[c.length-1].range[1]]),O=this.performAction.call(j,l,h,f,this.yy,N[1],a,c),typeof O<"u")return O;Z&&(o=o.slice(0,-1*Z*2),a=a.slice(0,-1*Z),c=c.slice(0,-1*Z)),o.push(this.productions_[N[1]][0]),a.push(j.$),c.push(j._$),J=u[o[o.length-2]][o[o.length-1]],o.push(J);break;case 3:return!0}}return!0}},e=(function(){var i={EOF:1,parseError:function(n,o){if(this.yy.parser)this.yy.parser.parseError(n,o);else throw new Error(n)},setInput:function(n){return this._input=n,this._more=this._less=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var n=this._input[0];this.yytext+=n,this.yyleng++,this.offset++,this.match+=n,this.matched+=n;var o=n.match(/(?:\r\n?|\n).*/g);return o?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),n},unput:function(n){var o=n.length,a=n.split(/(?:\r\n?|\n)/g);this._input=n+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-o-1),this.offset-=o;var c=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),a.length-1&&(this.yylineno-=a.length-1);var u=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:a?(a.length===c.length?this.yylloc.first_column:0)+c[c.length-a.length].length-a[0].length:this.yylloc.first_column-o},this.options.ranges&&(this.yylloc.range=[u[0],u[0]+this.yyleng-o]),this},more:function(){return this._more=!0,this},less:function(n){this.unput(this.match.slice(n))},pastInput:function(){var n=this.matched.substr(0,this.matched.length-this.match.length);return(n.length>20?"...":"")+n.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var n=this.match;return n.length<20&&(n+=this._input.substr(0,20-n.length)),(n.substr(0,20)+(n.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var n=this.pastInput(),o=new Array(n.length+1).join("-");return n+this.upcomingInput()+`
|
||||
Expecting `+Te.join(", ")+", got '"+(this.terminals_[S]||S)+"'":he="Parse error on line "+(f+1)+": Unexpected "+(S==1?"end of input":"'"+(this.terminals_[S]||S)+"'"),this.parseError(he,{text:this.lexer.match,token:this.terminals_[S]||S,line:this.lexer.yylineno,loc:y,expected:Te})}}if(T[0]instanceof Array&&T.length>1)throw new Error("Parse Error: multiple actions possible at state: "+q+", token: "+S);switch(T[0]){case 1:o.push(S),a.push(this.lexer.yytext),c.push(this.lexer.yylloc),o.push(T[1]),S=null,D?(S=D,D=null):(h=this.lexer.yyleng,l=this.lexer.yytext,f=this.lexer.yylineno,y=this.lexer.yylloc,d>0&&d--);break;case 2:if(Z=this.productions_[T[1]][1],j.$=a[a.length-Z],j._$={first_line:c[c.length-(Z||1)].first_line,last_line:c[c.length-1].last_line,first_column:c[c.length-(Z||1)].first_column,last_column:c[c.length-1].last_column},g&&(j._$.range=[c[c.length-(Z||1)].range[0],c[c.length-1].range[1]]),O=this.performAction.call(j,l,h,f,this.yy,T[1],a,c),typeof O<"u")return O;Z&&(o=o.slice(0,-1*Z*2),a=a.slice(0,-1*Z),c=c.slice(0,-1*Z)),o.push(this.productions_[T[1]][0]),a.push(j.$),c.push(j._$),J=u[o[o.length-2]][o[o.length-1]],o.push(J);break;case 3:return!0}}return!0}},e=(function(){var i={EOF:1,parseError:function(n,o){if(this.yy.parser)this.yy.parser.parseError(n,o);else throw new Error(n)},setInput:function(n){return this._input=n,this._more=this._less=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var n=this._input[0];this.yytext+=n,this.yyleng++,this.offset++,this.match+=n,this.matched+=n;var o=n.match(/(?:\r\n?|\n).*/g);return o?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),n},unput:function(n){var o=n.length,a=n.split(/(?:\r\n?|\n)/g);this._input=n+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-o-1),this.offset-=o;var c=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),a.length-1&&(this.yylineno-=a.length-1);var u=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:a?(a.length===c.length?this.yylloc.first_column:0)+c[c.length-a.length].length-a[0].length:this.yylloc.first_column-o},this.options.ranges&&(this.yylloc.range=[u[0],u[0]+this.yyleng-o]),this},more:function(){return this._more=!0,this},less:function(n){this.unput(this.match.slice(n))},pastInput:function(){var n=this.matched.substr(0,this.matched.length-this.match.length);return(n.length>20?"...":"")+n.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var n=this.match;return n.length<20&&(n+=this._input.substr(0,20-n.length)),(n.substr(0,20)+(n.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var n=this.pastInput(),o=new Array(n.length+1).join("-");return n+this.upcomingInput()+`
|
||||
`+o+"^"},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var n,o,a,c,u,l;this._more||(this.yytext="",this.match="");for(var f=this._currentRules(),h=0;h<f.length&&(a=this._input.match(this.rules[f[h]]),!(a&&(!o||a[0].length>o[0].length)&&(o=a,c=h,!this.options.flex)));h++);return o?(l=o[0].match(/(?:\r\n?|\n).*/g),l&&(this.yylineno+=l.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:l?l[l.length-1].length-l[l.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+o[0].length},this.yytext+=o[0],this.match+=o[0],this.matches=o,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._input=this._input.slice(o[0].length),this.matched+=o[0],n=this.performAction.call(this,this.yy,this,f[c],this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n||void 0):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
||||
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var n=this.next();return typeof n<"u"?n:this.lex()},begin:function(n){this.conditionStack.push(n)},popState:function(){return this.conditionStack.pop()},_currentRules:function(){return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules},topState:function(){return this.conditionStack[this.conditionStack.length-2]},pushState:function(n){this.begin(n)}};return i.options={},i.performAction=function(n,o,a,c){function u(f,h){return o.yytext=o.yytext.substring(f,o.yyleng-h+f)}var l=c;switch(a){case 0:if(o.yytext.slice(-2)==="\\\\"?(u(0,1),this.begin("mu")):o.yytext.slice(-1)==="\\"?(u(0,1),this.begin("emu")):this.begin("mu"),o.yytext)return 15;break;case 1:return 15;case 2:return this.popState(),15;break;case 3:return this.begin("raw"),15;break;case 4:return this.popState(),this.conditionStack[this.conditionStack.length-1]==="raw"?15:(u(5,9),"END_RAW_BLOCK");case 5:return 15;case 6:return this.popState(),14;break;case 7:return 65;case 8:return 68;case 9:return 19;case 10:return this.popState(),this.begin("raw"),23;break;case 11:return 55;case 12:return 60;case 13:return 29;case 14:return 47;case 15:return this.popState(),44;break;case 16:return this.popState(),44;break;case 17:return 34;case 18:return 39;case 19:return 51;case 20:return 48;case 21:this.unput(o.yytext),this.popState(),this.begin("com");break;case 22:return this.popState(),14;break;case 23:return 48;case 24:return 73;case 25:return 72;case 26:return 72;case 27:return 87;case 28:break;case 29:return this.popState(),54;break;case 30:return this.popState(),33;break;case 31:return o.yytext=u(1,2).replace(/\\"/g,'"'),80;break;case 32:return o.yytext=u(1,2).replace(/\\'/g,"'"),80;break;case 33:return 85;case 34:return 82;case 35:return 82;case 36:return 83;case 37:return 84;case 38:return 81;case 39:return 75;case 40:return 77;case 41:return 72;case 42:return o.yytext=o.yytext.replace(/\\([\\\]])/g,"$1"),72;break;case 43:return"INVALID";case 44:return 5}},i.rules=[/^(?:[^\x00]*?(?=(\{\{)))/,/^(?:[^\x00]+)/,/^(?:[^\x00]{2,}?(?=(\{\{|\\\{\{|\\\\\{\{|$)))/,/^(?:\{\{\{\{(?=[^\/]))/,/^(?:\{\{\{\{\/[^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=[=}\s\/.])\}\}\}\})/,/^(?:[^\x00]+?(?=(\{\{\{\{)))/,/^(?:[\s\S]*?--(~)?\}\})/,/^(?:\()/,/^(?:\))/,/^(?:\{\{\{\{)/,/^(?:\}\}\}\})/,/^(?:\{\{(~)?>)/,/^(?:\{\{(~)?#>)/,/^(?:\{\{(~)?#\*?)/,/^(?:\{\{(~)?\/)/,/^(?:\{\{(~)?\^\s*(~)?\}\})/,/^(?:\{\{(~)?\s*else\s*(~)?\}\})/,/^(?:\{\{(~)?\^)/,/^(?:\{\{(~)?\s*else\b)/,/^(?:\{\{(~)?\{)/,/^(?:\{\{(~)?&)/,/^(?:\{\{(~)?!--)/,/^(?:\{\{(~)?![\s\S]*?\}\})/,/^(?:\{\{(~)?\*?)/,/^(?:=)/,/^(?:\.\.)/,/^(?:\.(?=([=~}\s\/.)|])))/,/^(?:[\/.])/,/^(?:\s+)/,/^(?:\}(~)?\}\})/,/^(?:(~)?\}\})/,/^(?:"(\\["]|[^"])*")/,/^(?:'(\\[']|[^'])*')/,/^(?:@)/,/^(?:true(?=([~}\s)])))/,/^(?:false(?=([~}\s)])))/,/^(?:undefined(?=([~}\s)])))/,/^(?:null(?=([~}\s)])))/,/^(?:-?[0-9]+(?:\.[0-9]+)?(?=([~}\s)])))/,/^(?:as\s+\|)/,/^(?:\|)/,/^(?:([^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=([=~}\s\/.)|]))))/,/^(?:\[(\\\]|[^\]])*\])/,/^(?:.)/,/^(?:$)/],i.conditions={mu:{rules:[7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44],inclusive:!1},emu:{rules:[2],inclusive:!1},com:{rules:[6],inclusive:!1},raw:{rules:[3,4,5],inclusive:!1},INITIAL:{rules:[0,1,44],inclusive:!0}},i})();t.lexer=e;function r(){this.yy={}}return r.prototype=t,t.Parser=r,new r})();rH.default=CIr;Yrt.exports=rH.default});var oH=p((nH,eit)=>{"use strict";nH.__esModule=!0;function IIr(t){return t&&t.__esModule?t:{default:t}}var SIr=yc(),npe=IIr(SIr);function iH(){this.parents=[]}iH.prototype={constructor:iH,mutating:!1,acceptKey:function(e,r){var i=this.accept(e[r]);if(this.mutating){if(i&&!iH.prototype[i.type])throw new npe.default('Unexpected node type "'+i.type+'" found when accepting '+r+" on "+e.type);e[r]=i}},acceptRequired:function(e,r){if(this.acceptKey(e,r),!e[r])throw new npe.default(e.type+" requires "+r)},acceptArray:function(e){for(var r=0,i=e.length;r<i;r++)this.acceptKey(e,r),e[r]||(e.splice(r,1),r--,i--)},accept:function(e){if(e){if(!this[e.type])throw new npe.default("Unknown type: "+e.type,e);this.current&&this.parents.unshift(this.current),this.current=e;var r=this[e.type](e);if(this.current=this.parents.shift(),!this.mutating||r)return r;if(r!==!1)return e}},Program:function(e){this.acceptArray(e.body)},MustacheStatement:sH,Decorator:sH,BlockStatement:Xrt,DecoratorBlock:Xrt,PartialStatement:Zrt,PartialBlockStatement:function(e){Zrt.call(this,e),this.acceptKey(e,"program")},ContentStatement:function(){},CommentStatement:function(){},SubExpression:sH,PathExpression:function(){},StringLiteral:function(){},NumberLiteral:function(){},BooleanLiteral:function(){},UndefinedLiteral:function(){},NullLiteral:function(){},Hash:function(e){this.acceptArray(e.pairs)},HashPair:function(e){this.acceptRequired(e,"value")}};function sH(t){this.acceptRequired(t,"path"),this.acceptArray(t.params),this.acceptKey(t,"hash")}functLine truncated
|
||||
`])}),e},each:function(e){for(var r=0,i=this.source.length;r<i;r++)e(this.source[r])},empty:function(){var e=this.currentLocation||{start:{}};return new Q0(e.start.line,e.start.column,this.srcFile)},wrap:function(e){var r=arguments.length<=1||arguments[1]===void 0?this.currentLocation||{start:{}}:arguments[1];return e instanceof Q0?e:(e=xpe(e,this,r),new Q0(r.start.line,r.start.column,this.srcFile,e))},functionCall:function(e,r,i){return i=this.generateList(i),this.wrap([e,r?"."+r+"(":"(",i,")"])},quotedString:function(e){return'"'+(e+"").replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")+'"'},objectLiteral:function(e){var r=this,i=[];Object.keys(e).forEach(function(n){var o=xpe(e[n],r);o!=="undefined"&&i.push([r.quotedString(n),":",o])});var s=this.generateList(i);return s.prepend("{"),s.add("}"),s},generateList:function(e){for(var r=this.empty(),i=0,s=e.length;i<s;i++)i&&r.add(","),r.add(xpe(e[i],this));return r},generateArray:function(e){var r=this.generateList(e);return r.prepend("["),r.add("]"),r}};pH.default=Qit;kit.exports=pH.default});var Git=p((mH,qit)=>{"use strict";mH.__esModule=!0;function Uit(t){return t&&t.__esModule?t:{default:t}}var Mit=JG(),wSr=yc(),Rpe=Uit(wSr),CSr=Mo(),ISr=Lit(),Fit=Uit(ISr);function vB(t){this.value=t}function xB(){}xB.prototype={nameLookup:function(e,r){return this.internalNameLookup(e,r)},depthedLookup:function(e){return[this.aliasable("container.lookup"),"(depths, ",JSON.stringify(e),")"]},compilerInfo:function(){var e=Mit.COMPILER_REVISION,r=Mit.REVISION_CHANGES[e];return[e,r]},appendToBuffer:function(e,r,i){return CSr.isArray(e)||(e=[e]),e=this.source.wrap(e,r),this.environment.isSimple?["return ",e,";"]:i?["buffer += ",e,";"]:(e.appendToBuffer=!0,e)},initializeBuffer:function(){return this.quotedString("")},internalNameLookup:function(e,r){return this.lookupPropertyFunctionIsUsed=!0,["lookupProperty(",e,",",JSON.stringify(r),")"]},lookupPropertyFunctionIsUsed:!1,compile:function(e,r,i,s){this.environment=e,this.options=r,this.stringParams=this.options.stringParams,this.trackIds=this.options.trackIds,this.precompile=!s,this.name=this.environment.name,this.isChild=!!i,this.context=i||{decorators:[],programs:[],environments:[]},this.preamble(),this.stackSlot=0,this.stackVars=[],this.aliases={},this.registers={list:[]},this.hashes=[],this.compileStack=[],this.inlineStack=[],this.blockParams=[],this.compileChildren(e,r),this.useDepths=this.useDepths||e.useDepths||e.useDecorators||this.options.compat,this.useBlockParams=this.useBlockParams||e.useBlockParams;var n=e.opcodes,o=void 0,a=void 0,c=void 0,u=void 0;for(c=0,u=n.length;c<u;c++)o=n[c],this.source.currentLocation=o.loc,a=a||o.loc,this[o.opcode].apply(this,o.args);if(this.source.currentLocation=a,this.pushSource(""),this.stackSlot||this.inlineStack.length||this.compileStack.length)throw new Rpe.default("Compile completed with content left on stack");this.decorators.isEmpty()?this.decorators=void 0:(this.useDecorators=!0,this.decorators.prepend(["var decorators = container.decorators, ",this.lookupPropertyFunctionVarDeclaration(),`;
|
||||
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var n=this.next();return typeof n<"u"?n:this.lex()},begin:function(n){this.conditionStack.push(n)},popState:function(){return this.conditionStack.pop()},_currentRules:function(){return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules},topState:function(){return this.conditionStack[this.conditionStack.length-2]},pushState:function(n){this.begin(n)}};return i.options={},i.performAction=function(n,o,a,c){function u(f,h){return o.yytext=o.yytext.substring(f,o.yyleng-h+f)}var l=c;switch(a){case 0:if(o.yytext.slice(-2)==="\\\\"?(u(0,1),this.begin("mu")):o.yytext.slice(-1)==="\\"?(u(0,1),this.begin("emu")):this.begin("mu"),o.yytext)return 15;break;case 1:return 15;case 2:return this.popState(),15;break;case 3:return this.begin("raw"),15;break;case 4:return this.popState(),this.conditionStack[this.conditionStack.length-1]==="raw"?15:(u(5,9),"END_RAW_BLOCK");case 5:return 15;case 6:return this.popState(),14;break;case 7:return 65;case 8:return 68;case 9:return 19;case 10:return this.popState(),this.begin("raw"),23;break;case 11:return 55;case 12:return 60;case 13:return 29;case 14:return 47;case 15:return this.popState(),44;break;case 16:return this.popState(),44;break;case 17:return 34;case 18:return 39;case 19:return 51;case 20:return 48;case 21:this.unput(o.yytext),this.popState(),this.begin("com");break;case 22:return this.popState(),14;break;case 23:return 48;case 24:return 73;case 25:return 72;case 26:return 72;case 27:return 87;case 28:break;case 29:return this.popState(),54;break;case 30:return this.popState(),33;break;case 31:return o.yytext=u(1,2).replace(/\\"/g,'"'),80;break;case 32:return o.yytext=u(1,2).replace(/\\'/g,"'"),80;break;case 33:return 85;case 34:return 82;case 35:return 82;case 36:return 83;case 37:return 84;case 38:return 81;case 39:return 75;case 40:return 77;case 41:return 72;case 42:return o.yytext=o.yytext.replace(/\\([\\\]])/g,"$1"),72;break;case 43:return"INVALID";case 44:return 5}},i.rules=[/^(?:[^\x00]*?(?=(\{\{)))/,/^(?:[^\x00]+)/,/^(?:[^\x00]{2,}?(?=(\{\{|\\\{\{|\\\\\{\{|$)))/,/^(?:\{\{\{\{(?=[^\/]))/,/^(?:\{\{\{\{\/[^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=[=}\s\/.])\}\}\}\})/,/^(?:[^\x00]+?(?=(\{\{\{\{)))/,/^(?:[\s\S]*?--(~)?\}\})/,/^(?:\()/,/^(?:\))/,/^(?:\{\{\{\{)/,/^(?:\}\}\}\})/,/^(?:\{\{(~)?>)/,/^(?:\{\{(~)?#>)/,/^(?:\{\{(~)?#\*?)/,/^(?:\{\{(~)?\/)/,/^(?:\{\{(~)?\^\s*(~)?\}\})/,/^(?:\{\{(~)?\s*else\s*(~)?\}\})/,/^(?:\{\{(~)?\^)/,/^(?:\{\{(~)?\s*else\b)/,/^(?:\{\{(~)?\{)/,/^(?:\{\{(~)?&)/,/^(?:\{\{(~)?!--)/,/^(?:\{\{(~)?![\s\S]*?\}\})/,/^(?:\{\{(~)?\*?)/,/^(?:=)/,/^(?:\.\.)/,/^(?:\.(?=([=~}\s\/.)|])))/,/^(?:[\/.])/,/^(?:\s+)/,/^(?:\}(~)?\}\})/,/^(?:(~)?\}\})/,/^(?:"(\\["]|[^"])*")/,/^(?:'(\\[']|[^'])*')/,/^(?:@)/,/^(?:true(?=([~}\s)])))/,/^(?:false(?=([~}\s)])))/,/^(?:undefined(?=([~}\s)])))/,/^(?:null(?=([~}\s)])))/,/^(?:-?[0-9]+(?:\.[0-9]+)?(?=([~}\s)])))/,/^(?:as\s+\|)/,/^(?:\|)/,/^(?:([^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=([=~}\s\/.)|]))))/,/^(?:\[(\\\]|[^\]])*\])/,/^(?:.)/,/^(?:$)/],i.conditions={mu:{rules:[7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44],inclusive:!1},emu:{rules:[2],inclusive:!1},com:{rules:[6],inclusive:!1},raw:{rules:[3,4,5],inclusive:!1},INITIAL:{rules:[0,1,44],inclusive:!0}},i})();t.lexer=e;function r(){this.yy={}}return r.prototype=t,t.Parser=r,new r})();cH.default=qIr;cit.exports=cH.default});var hH=p((fH,hit)=>{"use strict";fH.__esModule=!0;function GIr(t){return t&&t.__esModule?t:{default:t}}var HIr=gc(),ppe=GIr(HIr);function uH(){this.parents=[]}uH.prototype={constructor:uH,mutating:!1,acceptKey:function(e,r){var i=this.accept(e[r]);if(this.mutating){if(i&&!uH.prototype[i.type])throw new ppe.default('Unexpected node type "'+i.type+'" found when accepting '+r+" on "+e.type);e[r]=i}},acceptRequired:function(e,r){if(this.acceptKey(e,r),!e[r])throw new ppe.default(e.type+" requires "+r)},acceptArray:function(e){for(var r=0,i=e.length;r<i;r++)this.acceptKey(e,r),e[r]||(e.splice(r,1),r--,i--)},accept:function(e){if(e){if(!this[e.type])throw new ppe.default("Unknown type: "+e.type,e);this.current&&this.parents.unshift(this.current),this.current=e;var r=this[e.type](e);if(this.current=this.parents.shift(),!this.mutating||r)return r;if(r!==!1)return e}},Program:function(e){this.acceptArray(e.body)},MustacheStatement:lH,Decorator:lH,BlockStatement:lit,DecoratorBlock:lit,PartialStatement:fit,PartialBlockStatement:function(e){fit.call(this,e),this.acceptKey(e,"program")},ContentStatement:function(){},CommentStatement:function(){},SubExpression:lH,PathExpression:function(){},StringLiteral:function(){},NumberLiteral:function(){},BooleanLiteral:function(){},UndefinedLiteral:function(){},NullLiteral:function(){},Hash:function(e){this.acceptArray(e.pairs)},HashPair:function(e){this.acceptRequired(e,"value")}};function lH(t){this.acceptRequired(t,"path"),this.acceptArray(t.params),this.acceptKey(t,"hash")}functLine truncated
|
||||
`])}),e},each:function(e){for(var r=0,i=this.source.length;r<i;r++)e(this.source[r])},empty:function(){var e=this.currentLocation||{start:{}};return new L0(e.start.line,e.start.column,this.srcFile)},wrap:function(e){var r=arguments.length<=1||arguments[1]===void 0?this.currentLocation||{start:{}}:arguments[1];return e instanceof L0?e:(e=kpe(e,this,r),new L0(r.start.line,r.start.column,this.srcFile,e))},functionCall:function(e,r,i){return i=this.generateList(i),this.wrap([e,r?"."+r+"(":"(",i,")"])},quotedString:function(e){return'"'+(e+"").replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")+'"'},objectLiteral:function(e){var r=this,i=[];Object.keys(e).forEach(function(n){var o=kpe(e[n],r);o!=="undefined"&&i.push([r.quotedString(n),":",o])});var s=this.generateList(i);return s.prepend("{"),s.add("}"),s},generateList:function(e){for(var r=this.empty(),i=0,s=e.length;i<s;i++)i&&r.add(","),r.add(kpe(e[i],this));return r},generateArray:function(e){var r=this.generateList(e);return r.prepend("["),r.add("]"),r}};bH.default=$it;Wit.exports=bH.default});var est=p((wH,Zit)=>{"use strict";wH.__esModule=!0;function Xit(t){return t&&t.__esModule?t:{default:t}}var Yit=tH(),USr=gc(),Fpe=Xit(USr),qSr=Fo(),GSr=Jit(),Kit=Xit(GSr);function RB(t){this.value=t}function NB(){}NB.prototype={nameLookup:function(e,r){return this.internalNameLookup(e,r)},depthedLookup:function(e){return[this.aliasable("container.lookup"),"(depths, ",JSON.stringify(e),")"]},compilerInfo:function(){var e=Yit.COMPILER_REVISION,r=Yit.REVISION_CHANGES[e];return[e,r]},appendToBuffer:function(e,r,i){return qSr.isArray(e)||(e=[e]),e=this.source.wrap(e,r),this.environment.isSimple?["return ",e,";"]:i?["buffer += ",e,";"]:(e.appendToBuffer=!0,e)},initializeBuffer:function(){return this.quotedString("")},internalNameLookup:function(e,r){return this.lookupPropertyFunctionIsUsed=!0,["lookupProperty(",e,",",JSON.stringify(r),")"]},lookupPropertyFunctionIsUsed:!1,compile:function(e,r,i,s){this.environment=e,this.options=r,this.stringParams=this.options.stringParams,this.trackIds=this.options.trackIds,this.precompile=!s,this.name=this.environment.name,this.isChild=!!i,this.context=i||{decorators:[],programs:[],environments:[]},this.preamble(),this.stackSlot=0,this.stackVars=[],this.aliases={},this.registers={list:[]},this.hashes=[],this.compileStack=[],this.inlineStack=[],this.blockParams=[],this.compileChildren(e,r),this.useDepths=this.useDepths||e.useDepths||e.useDecorators||this.options.compat,this.useBlockParams=this.useBlockParams||e.useBlockParams;var n=e.opcodes,o=void 0,a=void 0,c=void 0,u=void 0;for(c=0,u=n.length;c<u;c++)o=n[c],this.source.currentLocation=o.loc,a=a||o.loc,this[o.opcode].apply(this,o.args);if(this.source.currentLocation=a,this.pushSource(""),this.stackSlot||this.inlineStack.length||this.compileStack.length)throw new Fpe.default("Compile completed with content left on stack");this.decorators.isEmpty()?this.decorators=void 0:(this.useDecorators=!0,this.decorators.prepend(["var decorators = container.decorators, ",this.lookupPropertyFunctionVarDeclaration(),`;
|
||||
`]),this.decorators.push("return fn;"),s?this.decorators=Function.apply(this,["fn","props","container","depth0","data","blockParams","depths",this.decorators.merge()]):(this.decorators.prepend(`function(fn, props, container, depth0, data, blockParams, depths) {
|
||||
`),this.decorators.push(`}
|
||||
`),this.decorators=this.decorators.merge()));var l=this.createFunctionContext(s);if(this.isChild)return l;var f={compiler:this.compilerInfo(),main:l};this.decorators&&(f.main_d=this.decorators,f.useDecorators=!0);var h=this.context,d=h.programs,m=h.decorators;for(c=0,u=d.length;c<u;c++)f[c]=d[c],m[c]&&(f[c+"_d"]=m[c],f.useDecorators=!0);return this.environment.usePartial&&(f.usePartial=!0),this.options.data&&(f.useData=!0),this.useDepths&&(f.useDepths=!0),this.useBlockParams&&(f.useBlockParams=!0),this.options.compat&&(f.compat=!0),s?f.compilerOptions=this.options:(f.compiler=JSON.stringify(f.compiler),this.source.currentLocation={start:{line:1,column:0}},f=this.objectLiteral(f),r.srcName?(f=f.toStringWithSourceMap({file:r.destName}),f.map=f.map&&f.map.toString()):f=f.toString()),f},preamble:function(){this.lastContext=0,this.source=new Fit.default(this.options.srcName),this.decorators=new Fit.default(this.options.srcName)},createFunctionContext:function(e){var r=this,i="",s=this.stackVars.concat(this.registers.list);s.length>0&&(i+=", "+s.join(", "));var n=0;Object.keys(this.aliases).forEach(function(c){var u=r.aliases[c];u.children&&u.referenceCount>1&&(i+=", alias"+ ++n+"="+c,u.children[0]="alias"+n)}),this.lookupPropertyFunctionIsUsed&&(i+=", "+this.lookupPropertyFunctionVarDeclaration());var o=["container","depth0","helpers","partials","data"];(this.useBlockParams||this.useDepths)&&o.push("blockParams"),this.useDepths&&o.push("depths");var a=this.mergeSource(i);return e?(o.push(a),Function.apply(this,o)):this.source.wrap(["function(",o.join(","),`) {
|
||||
`),this.decorators=this.decorators.merge()));var l=this.createFunctionContext(s);if(this.isChild)return l;var f={compiler:this.compilerInfo(),main:l};this.decorators&&(f.main_d=this.decorators,f.useDecorators=!0);var h=this.context,d=h.programs,m=h.decorators;for(c=0,u=d.length;c<u;c++)f[c]=d[c],m[c]&&(f[c+"_d"]=m[c],f.useDecorators=!0);return this.environment.usePartial&&(f.usePartial=!0),this.options.data&&(f.useData=!0),this.useDepths&&(f.useDepths=!0),this.useBlockParams&&(f.useBlockParams=!0),this.options.compat&&(f.compat=!0),s?f.compilerOptions=this.options:(f.compiler=JSON.stringify(f.compiler),this.source.currentLocation={start:{line:1,column:0}},f=this.objectLiteral(f),r.srcName?(f=f.toStringWithSourceMap({file:r.destName}),f.map=f.map&&f.map.toString()):f=f.toString()),f},preamble:function(){this.lastContext=0,this.source=new Kit.default(this.options.srcName),this.decorators=new Kit.default(this.options.srcName)},createFunctionContext:function(e){var r=this,i="",s=this.stackVars.concat(this.registers.list);s.length>0&&(i+=", "+s.join(", "));var n=0;Object.keys(this.aliases).forEach(function(c){var u=r.aliases[c];u.children&&u.referenceCount>1&&(i+=", alias"+ ++n+"="+c,u.children[0]="alias"+n)}),this.lookupPropertyFunctionIsUsed&&(i+=", "+this.lookupPropertyFunctionVarDeclaration());var o=["container","depth0","helpers","partials","data"];(this.useBlockParams||this.useDepths)&&o.push("blockParams"),this.useDepths&&o.push("depths");var a=this.mergeSource(i);return e?(o.push(a),Function.apply(this,o)):this.source.wrap(["function(",o.join(","),`) {
|
||||
`,a,"}"])},mergeSource:function(e){var r=this.environment.isSimple,i=!this.forceBuffer,s=void 0,n=void 0,o=void 0,a=void 0;return this.source.each(function(c){c.appendToBuffer?(o?c.prepend(" + "):o=c,a=c):(o&&(n?o.prepend("buffer += "):s=!0,a.add(";"),o=a=void 0),n=!0,r||(i=!1))}),i?o?(o.prepend("return "),a.add(";")):n||this.source.push('return "";'):(e+=", buffer = "+(s?"":this.initializeBuffer()),o?(o.prepend("return buffer + "),a.add(";")):this.source.push("return buffer;")),e&&this.source.prepend("var "+e.substring(2)+(s?"":`;
|
||||
`)),this.source.merge()},lookupPropertyFunctionVarDeclaration:function(){return`
|
||||
lookupProperty = container.lookupProperty || function(parent, propertyName) {
|
||||
@@ -138,133 +138,133 @@ Expecting `+Ne.join(", ")+", got '"+(this.terminals_[S]||S)+"'":he="Parse error
|
||||
}
|
||||
return undefined
|
||||
}
|
||||
`.trim()},blockValue:function(e){var r=this.aliasable("container.hooks.blockHelperMissing"),i=[this.contextName(0)];this.setupHelperArgs(e,0,i);var s=this.popStack();i.splice(1,0,s),this.push(this.source.functionCall(r,"call",i))},ambiguousBlockValue:function(){var e=this.aliasable("container.hooks.blockHelperMissing"),r=[this.contextName(0)];this.setupHelperArgs("",0,r,!0),this.flushInline();var i=this.topStack();r.splice(1,0,i),this.pushSource(["if (!",this.lastHelper,") { ",i," = ",this.source.functionCall(e,"call",r),"}"])},appendContent:function(e){this.pendingContent?e=this.pendingContent+e:this.pendingLocation=this.source.currentLocation,this.pendingContent=e},append:function(){if(this.isInline())this.replaceStack(function(r){return[" != null ? ",r,' : ""']}),this.pushSource(this.appendToBuffer(this.popStack()));else{var e=this.popStack();this.pushSource(["if (",e," != null) { ",this.appendToBuffer(e,void 0,!0)," }"]),this.environment.isSimple&&this.pushSource(["else { ",this.appendToBuffer("''",void 0,!0)," }"])}},appendEscaped:function(){this.pushSource(this.appendToBuffer([this.aliasable("container.escapeExpression"),"(",this.popStack(),")"]))},getContext:function(e){this.lastContext=e},pushContext:function(){this.pushStackLiteral(this.contextName(this.lastContext))},lookupOnContext:function(e,r,i,s){var n=0;!s&&this.options.compat&&!this.lastContext?this.push(this.depthedLookup(e[n++])):this.pushContext(),this.resolvePath("context",e,n,r,i)},lookupBlockParam:function(e,r){this.useBlockParams=!0,this.push(["blockParams[",e[0],"][",e[1],"]"]),this.resolvePath("context",r,1)},lookupData:function(e,r,i){e?this.pushStackLiteral("container.data(data, "+e+")"):this.pushStackLiteral("data"),this.resolvePath("data",r,0,!0,i)},resolvePath:function(e,r,i,s,n){var o=this;if(this.options.strict||this.options.assumeObjects){this.push(SSr(this.options.strict&&n,this,r,i,e));return}for(var a=r.length,c=function(l){o.replaceStack(function(f){var h=o.nameLookup(f,r[l],e);return s?[" && ",h]:[" != null ? ",h," : ",f]})},u=i;u<a;u++)c(u)},resolvePossibleLambda:function(){this.push([this.aliasable("container.lambda"),"(",this.popStack(),", ",this.contextName(0),")"])},pushStringParam:function(e,r){this.pushContext(),this.pushString(r),r!=="SubExpression"&&(typeof e=="string"?this.pushString(e):this.pushStackLiteral(e))},emptyHash:function(e){this.trackIds&&this.push("{}"),this.stringParams&&(this.push("{}"),this.push("{}")),this.pushStackLiteral(e?"undefined":"{}")},pushHash:function(){this.hash&&this.hashes.push(this.hash),this.hash={values:{},types:[],contexts:[],ids:[]}},popHash:function(){var e=this.hash;this.hash=this.hashes.pop(),this.trackIds&&this.push(this.objectLiteral(e.ids)),this.stringParams&&(this.push(this.objectLiteral(e.contexts)),this.push(this.objectLiteral(e.types))),this.push(this.objectLiteral(e.values))},pushString:function(e){this.pushStackLiteral(this.quotedString(e))},pushLiteral:function(e){this.pushStackLiteral(e)},pushProgram:function(e){e!=null?this.pushStackLiteral(this.programExpression(e)):this.pushStackLiteral(null)},registerDecorator:function(e,r){var i=this.nameLookup("decorators",r,"decorator"),s=this.setupHelperArgs(r,e);this.decorators.push(["var decorator = ",i,";"]),this.decorators.push(['if (typeof decorator !== "function") { throw new Error(',this.quotedString('Missing decorator: "'+r+'"'),"); }"]),this.decorators.push(["fn = ",this.decorators.functionCall("decorator","",["fn","props","container",s])," || fn;"])},invokeHelper:function(e,r,i){var s=this.popStack(),n=this.setupHelper(e,r),o=[];i&&o.push(n.name),o.push(s),this.options.strict||o.push(this.aliasable("container.hooks.helperMissing"));var a=["(",this.itemsSeparatedBy(o,"||"),")"],c=this.source.functionCall(a,"call",n.callParams);this.push(c)},itemsSeparatedBy:function(e,r){var i=[];i.push(e[0]);for(var s=1;s<e.length;s++)i.push(r,e[s]);return i},invokeKnownHelper:function(e,r){var i=this.setupHelper(e,r);this.push(this.source.functionCall(i.name,"call",i.callParams))},invokeAmbiguous:function(e,r){this.useRegister("helper");var i=this.popStack();this.emptyHash();var s=this.setupHelper(0,e,r),n=this.lastHelper=this.nameLookup("helpers",e,"helper"),o=["(","(helper = ",n," || ",i,")"];this.options.strict||(o[0]="(helper = ",o.push(" != null ? helper : ",this.aliasable("container.hooks.helperMissing"))),this.push(["(",o,s.paramsInit?["),(",s.paramsInit]:[],"),","(typeof helper === ",this.aliasable('"function"')," ? ",this.source.functionCall("helper","call",s.callParams)," : helper))"])},invokePartial:function(e,r,i){var s=[],n=this.setupParams(r,1,s);e&&(r=this.popStack(),delete n.name),i&&(n.indent=JSON.stringify(i)),n.helpers="helpers",n.partials="partials",n.decorators="container.decorators",e?s.unshift(r):s.unshift(this.nameLookup("partials",r,"partial")),this.options.compat&&(n.depths="depths"),n=this.objectLiteral(n),s.push(n),this.push(this.source.functionCall("container.invokePartial","",s))},assignToHash
Line truncated
|
||||
`,e};gi.prototype.Program=function(t){var e="",r=t.body,i=void 0,s=void 0;if(t.blockParams){var n="BLOCK PARAMS: [";for(i=0,s=t.blockParams.length;i<s;i++)n+=" "+t.blockParams[i];n+=" ]",e+=this.pad(n)}for(i=0,s=r.length;i<s;i++)e+=this.accept(r[i]);return this.padding--,e};gi.prototype.MustacheStatement=function(t){return this.pad("{{ "+this.SubExpression(t)+" }}")};gi.prototype.Decorator=function(t){return this.pad("{{ DIRECTIVE "+this.SubExpression(t)+" }}")};gi.prototype.BlockStatement=gi.prototype.DecoratorBlock=function(t){var e="";return e+=this.pad((t.type==="DecoratorBlock"?"DIRECTIVE ":"")+"BLOCK:"),this.padding++,e+=this.pad(this.SubExpression(t)),t.program&&(e+=this.pad("PROGRAM:"),this.padding++,e+=this.accept(t.program),this.padding--),t.inverse&&(t.program&&this.padding++,e+=this.pad("{{^}}"),this.padding++,e+=this.accept(t.inverse),this.padding--,t.program&&this.padding--),this.padding--,e};gi.prototype.PartialStatement=function(t){var e="PARTIAL:"+t.name.original;return t.params[0]&&(e+=" "+this.accept(t.params[0])),t.hash&&(e+=" "+this.accept(t.hash)),this.pad("{{> "+e+" }}")};gi.prototype.PartialBlockStatement=function(t){var e="PARTIAL BLOCK:"+t.name.original;return t.params[0]&&(e+=" "+this.accept(t.params[0])),t.hash&&(e+=" "+this.accept(t.hash)),e+=" "+this.pad("PROGRAM:"),this.padding++,e+=this.accept(t.program),this.padding--,this.pad("{{> "+e+" }}")};gi.prototype.ContentStatement=function(t){return this.pad("CONTENT[ '"+t.value+"' ]")};gi.prototype.CommentStatement=function(t){return this.pad("{{! '"+t.value+"' }}")};gi.prototype.SubExpression=function(t){for(var e=t.params,r=[],i=void 0,s=0,n=e.length;s<n;s++)r.push(this.accept(e[s]));return e="["+r.join(", ")+"]",i=t.hash?" "+this.accept(t.hash):"",this.accept(t.path)+" "+e+i};gi.prototype.PathExpression=function(t){var e=t.parts.join("/");return(t.data?"@":"")+"PATH:"+e};gi.prototype.StringLiteral=function(t){return'"'+t.value+'"'};gi.prototype.NumberLiteral=function(t){return"NUMBER{"+t.value+"}"};gi.prototype.BooleanLiteral=function(t){return"BOOLEAN{"+t.value+"}"};gi.prototype.UndefinedLiteral=function(){return"UNDEFINED"};gi.prototype.NullLiteral=function(){return"NULL"};gi.prototype.Hash=function(t){for(var e=t.pairs,r=[],i=0,s=e.length;i<s;i++)r.push(this.accept(e[i]));return"HASH{"+r.join(", ")+"}"};gi.prototype.HashPair=function(t){return t.key+"="+this.accept(t.value)}});var Yit=p((ysi,Jit)=>{var yH=zit().default,Wit=Vit();yH.PrintVisitor=Wit.PrintVisitor;yH.print=Wit.print;Jit.exports=yH;function $it(t,e){var r=require("fs"),i=r.readFileSync(e,"utf8");t.exports=yH.compile(i)}typeof require<"u"&&require.extensions&&(require.extensions[".handlebars"]=$it,require.extensions[".hbs"]=$it)});var pst=k(require("fs"),1),mst=k(require("path"),1);var Hpe=k(require("os"),1);function Zh(t){return t==null?"":typeof t=="string"||t instanceof String?t:JSON.stringify(t)}function QH(t){return Object.keys(t).length?{title:t.title,file:t.file,line:t.startLine,endLine:t.endLine,col:t.startColumn,endColumn:t.endColumn}:{}}function ed(t,e,r){let i=new kH(t,e,r);process.stdout.write(i.toString()+Hpe.EOL)}function LH(t,e=""){ed(t,{},e)}var Gpe="::",kH=class{constructor(e,r,i){e||(e="missing.command"),this.command=e,this.properties=r,this.message=i}toString(){let e=Gpe+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let r=!0;for(let i in this.properties)if(this.properties.hasOwnProperty(i)){let s=this.properties[i];s&&(r?r=!1:e+=",",e+=`${i}=${Dst(s)}`)}}return e+=`${Gpe}${Nst(this.message)}`,e}};function Nst(t){return Zh(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}function Dst(t){return Zh(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}var jpe=k(require("crypto"),1),I1=k(require("fs"),1),C1=k(require("os"),1);function S1(t,e){let r=process.env[`GITHUB_${t}`];if(!r)throw new Error(`Unable to find environment variable for file command ${t}`);if(!I1.existsSync(r))throw new Error(`Missing file at path: ${r}`);I1.appendFileSync(r,`${Zh(e)}${C1.EOL}`,{encoding:"utf8"})}function MH(t,e){let r=`ghadelimiter_${jpe.randomUUID()}`,i=Zh(e);if(t.includes(r))throw new Error(`Unexpected input: name should not contain the delimiter "${r}"`);if(i.includes(r))throw new Error(`Unexpected input: value should not contain the delimiter "${r}"`);return`${t}<<${r}${C1.EOL}${i}${C1.EOL}${r}`}var v9=k(require("os"),1),LCe=k(require("path"),1);var Uv=k(require("http"),1),l9=k(require("https"),1);function FH(t){let e=t.protocol==="https:";if(Ost(t))return;let r=e?process.env.https_proxy||process.env.HTTPS_PROXY:process.env.http_proxy||process.env.HTTP_PROXY;if(r)try{return new B1(r)}catch{if(!r.startsWith("http://")&&!r.startsWith("https://"))return new B1(`http://${r}`)}else return}function Ost(t){if(!t.hostname)return!1;let e=t.hostname;if(Pst(e))return!0;let r=process.env.no_proxy||process.env.NO_PROXY||"";if(!r)return!1;let i;t.port?i=Number(t.port):t.proto
Line truncated
|
||||
Support boolean input list: \`true | True | TRUE | false | False | FALSE\``)}function MCe(t,e){if(process.env.GITHUB_OUTPUT||"")return S1("OUTPUT",MH(t,e));process.stdout.write(v9.EOL),ed("set-output",{name:t},Zh(e))}function xO(t){process.exitCode=B9.Failure,Ju(t)}function Xl(){return process.env.RUNNER_DEBUG==="1"}function T(t){ed("debug",{},t)}function Ju(t,e={}){ed("error",QH(e),t instanceof Error?t.toString():t)}function st(t,e={}){ed("warning",QH(e),t instanceof Error?t.toString():t)}function L(t){process.stdout.write(t+v9.EOL)}function Ayt(t){LH("group",t)}function gyt(){LH("endgroup")}function ti(t,e){return myt(this,void 0,void 0,function*(){Ayt(t);let r;try{r=yield e()}finally{gyt()}return r})}function Nc(t,e){if(process.env.GITHUB_STATE||"")return S1("STATE",MH(t,e));ed("save-state",{name:t},Zh(e))}function FCe(t){return process.env[`STATE_${t}`]||""}var BL=k(require("fs"),1),AX=k(require("os"),1),gX=k(require("path"),1);var W9=k(require("crypto"),1),yn=k(require("fs"),1);var dbt=k(V9(),1);var GO=k(require("os"),1),Yu=k(require("path"),1);var Pc=k(V9(),1),RSe=k(require("stream"),1),TSe=k(require("util"),1),J9=require("assert");var _Se=function(t,e,r,i){function s(n){return n instanceof r?n:new r(function(o){o(n)})}return new(r||(r=Promise))(function(n,o){function a(l){try{u(i.next(l))}catch(f){o(f)}}function c(l){try{u(i.throw(l))}catch(f){o(f)}}function u(l){l.done?n(l.value):s(l.value).then(a,c)}u((i=i.apply(t,e||[])).next())})},UO=class{constructor(e,r,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(r),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,r){return _Se(this,void 0,void 0,function*(){let i=1;for(;i<this.maxAttempts;){try{return yield e()}catch(n){if(r&&!r(n))throw n;L(n.message)}let s=this.getSleepAmount();L(`Waiting ${s} seconds before trying again`),yield this.sleep(s),i++}return yield e()})}getSleepAmount(){return Math.floor(Math.random()*(this.maxSeconds-this.minSeconds+1))+this.minSeconds}sleep(e){return _Se(this,void 0,void 0,function*(){return new Promise(r=>setTimeout(r,e*1e3))})}};var ef=function(t,e,r,i){function s(n){return n instanceof r?n:new r(function(o){o(n)})}return new(r||(r=Promise))(function(n,o){function a(l){try{u(i.next(l))}catch(f){o(f)}}function c(l){try{u(i.throw(l))}catch(f){o(f)}}function u(l){l.done?n(l.value):s(l.value).then(a,c)}u((i=i.apply(t,e||[])).next())})},qO=class extends Error{constructor(e){super(`Unexpected HTTP response: ${e}`),this.httpStatusCode=e,Object.setPrototypeOf(this,new.target.prototype)}},NSe=process.platform==="win32",w_r=process.platform==="darwin",mbt="actions/tool-cache";function Qc(t,e,r,i){return ef(this,void 0,void 0,function*(){e=e||Yu.join(LSe(),W9.randomUUID()),yield gd(Yu.dirname(e)),T(`Downloading ${t}`),T(`Destination ${e}`);let s=3,n=$9("TEST_DOWNLOAD_TOOL_RETRY_MIN_SECONDS",10),o=$9("TEST_DOWNLOAD_TOOL_RETRY_MAX_SECONDS",20);return yield new UO(s,n,o).execute(()=>ef(this,void 0,void 0,function*(){return yield Abt(t,e||"",r,i)}),c=>!(c instanceof qO&&c.httpStatusCode&&c.httpStatusCode<500&&c.httpStatusCode!==408&&c.httpStatusCode!==429))})}function Abt(t,e,r,i){return ef(this,void 0,void 0,function*(){if(yn.existsSync(e))throw new Error(`Destination file path ${e} already exists`);let s=new ds(mbt,[],{allowRetries:!1});r&&(T("set auth"),i===void 0&&(i={}),i.authorization=r);let n=yield s.get(t,i);if(n.message.statusCode!==200){let l=new qO(n.message.statusCode);throw T(`Failed to download from "${t}". Code(${n.message.statusCode}) Message(${n.message.statusMessage})`),l}let o=TSe.promisify(RSe.pipeline),c=$9("TEST_DOWNLOAD_TOOL_RESPONSE_MESSAGE_FACTORY",()=>n.message)(),u=!1;try{return yield o(c,yn.createWriteStream(e)),T("download complete"),u=!0,e}finally{if(!u){T("download failed");try{yield SO(e)}catch(l){T(`Failed to delete '${e}'. ${l.message}`)}}}})}function DSe(t,e){return ef(this,arguments,void 0,function*(r,i,s="xz"){if(!r)throw new Error("parameter 'file' is required");i=yield QSe(i),T("Checking tar --version");let n="";yield Qa("tar --version",[],{ignoreReturnCode:!0,silent:!0,listeners:{stdout:l=>n+=l.toString(),stderr:l=>n+=l.toString()}}),T(n.trim());let o=n.toUpperCase().includes("GNU TAR"),a;s instanceof Array?a=s:a=[s],Xl()&&!s.includes("v")&&a.push("-v");let c=i,u=r;return NSe&&o&&(a.push("--force-local"),c=i.replace(/\\/g,"/"),u=r.replace(/\\/g,"/")),o&&(a.push("--warning=no-unknown-keyword"),a.push("--overwrite")),a.push("-C",c,"-f",u),yield Qa("tar",a),i})}function OSe(t,e){return ef(this,void 0,void 0,function*(){if(!t)throw new Error("parameter 'file' is required");return e=yield QSe(e),NSe?yield gbt(t,e):yield ybt(t,e),e})}function gbt(t,e){return ef(this,void 0,void 0,function*(){let r=t.replace(/'/g,"''").replace(/"|\n|\r/g,""),i=e.replace(/'/g,"''").replace(/"|\n|\r/g,""),s=yield Js("pwsh",!1);if(s){let o=["-NoLogLine truncated
|
||||
`.trim()},blockValue:function(e){var r=this.aliasable("container.hooks.blockHelperMissing"),i=[this.contextName(0)];this.setupHelperArgs(e,0,i);var s=this.popStack();i.splice(1,0,s),this.push(this.source.functionCall(r,"call",i))},ambiguousBlockValue:function(){var e=this.aliasable("container.hooks.blockHelperMissing"),r=[this.contextName(0)];this.setupHelperArgs("",0,r,!0),this.flushInline();var i=this.topStack();r.splice(1,0,i),this.pushSource(["if (!",this.lastHelper,") { ",i," = ",this.source.functionCall(e,"call",r),"}"])},appendContent:function(e){this.pendingContent?e=this.pendingContent+e:this.pendingLocation=this.source.currentLocation,this.pendingContent=e},append:function(){if(this.isInline())this.replaceStack(function(r){return[" != null ? ",r,' : ""']}),this.pushSource(this.appendToBuffer(this.popStack()));else{var e=this.popStack();this.pushSource(["if (",e," != null) { ",this.appendToBuffer(e,void 0,!0)," }"]),this.environment.isSimple&&this.pushSource(["else { ",this.appendToBuffer("''",void 0,!0)," }"])}},appendEscaped:function(){this.pushSource(this.appendToBuffer([this.aliasable("container.escapeExpression"),"(",this.popStack(),")"]))},getContext:function(e){this.lastContext=e},pushContext:function(){this.pushStackLiteral(this.contextName(this.lastContext))},lookupOnContext:function(e,r,i,s){var n=0;!s&&this.options.compat&&!this.lastContext?this.push(this.depthedLookup(e[n++])):this.pushContext(),this.resolvePath("context",e,n,r,i)},lookupBlockParam:function(e,r){this.useBlockParams=!0,this.push(["blockParams[",e[0],"][",e[1],"]"]),this.resolvePath("context",r,1)},lookupData:function(e,r,i){e?this.pushStackLiteral("container.data(data, "+e+")"):this.pushStackLiteral("data"),this.resolvePath("data",r,0,!0,i)},resolvePath:function(e,r,i,s,n){var o=this;if(this.options.strict||this.options.assumeObjects){this.push(HSr(this.options.strict&&n,this,r,i,e));return}for(var a=r.length,c=function(l){o.replaceStack(function(f){var h=o.nameLookup(f,r[l],e);return s?[" && ",h]:[" != null ? ",h," : ",f]})},u=i;u<a;u++)c(u)},resolvePossibleLambda:function(){this.push([this.aliasable("container.lambda"),"(",this.popStack(),", ",this.contextName(0),")"])},pushStringParam:function(e,r){this.pushContext(),this.pushString(r),r!=="SubExpression"&&(typeof e=="string"?this.pushString(e):this.pushStackLiteral(e))},emptyHash:function(e){this.trackIds&&this.push("{}"),this.stringParams&&(this.push("{}"),this.push("{}")),this.pushStackLiteral(e?"undefined":"{}")},pushHash:function(){this.hash&&this.hashes.push(this.hash),this.hash={values:{},types:[],contexts:[],ids:[]}},popHash:function(){var e=this.hash;this.hash=this.hashes.pop(),this.trackIds&&this.push(this.objectLiteral(e.ids)),this.stringParams&&(this.push(this.objectLiteral(e.contexts)),this.push(this.objectLiteral(e.types))),this.push(this.objectLiteral(e.values))},pushString:function(e){this.pushStackLiteral(this.quotedString(e))},pushLiteral:function(e){this.pushStackLiteral(e)},pushProgram:function(e){e!=null?this.pushStackLiteral(this.programExpression(e)):this.pushStackLiteral(null)},registerDecorator:function(e,r){var i=this.nameLookup("decorators",r,"decorator"),s=this.setupHelperArgs(r,e);this.decorators.push(["var decorator = ",i,";"]),this.decorators.push(['if (typeof decorator !== "function") { throw new Error(',this.quotedString('Missing decorator: "'+r+'"'),"); }"]),this.decorators.push(["fn = ",this.decorators.functionCall("decorator","",["fn","props","container",s])," || fn;"])},invokeHelper:function(e,r,i){var s=this.popStack(),n=this.setupHelper(e,r),o=[];i&&o.push(n.name),o.push(s),this.options.strict||o.push(this.aliasable("container.hooks.helperMissing"));var a=["(",this.itemsSeparatedBy(o,"||"),")"],c=this.source.functionCall(a,"call",n.callParams);this.push(c)},itemsSeparatedBy:function(e,r){var i=[];i.push(e[0]);for(var s=1;s<e.length;s++)i.push(r,e[s]);return i},invokeKnownHelper:function(e,r){var i=this.setupHelper(e,r);this.push(this.source.functionCall(i.name,"call",i.callParams))},invokeAmbiguous:function(e,r){this.useRegister("helper");var i=this.popStack();this.emptyHash();var s=this.setupHelper(0,e,r),n=this.lastHelper=this.nameLookup("helpers",e,"helper"),o=["(","(helper = ",n," || ",i,")"];this.options.strict||(o[0]="(helper = ",o.push(" != null ? helper : ",this.aliasable("container.hooks.helperMissing"))),this.push(["(",o,s.paramsInit?["),(",s.paramsInit]:[],"),","(typeof helper === ",this.aliasable('"function"')," ? ",this.source.functionCall("helper","call",s.callParams)," : helper))"])},invokePartial:function(e,r,i){var s=[],n=this.setupParams(r,1,s);e&&(r=this.popStack(),delete n.name),i&&(n.indent=JSON.stringify(i)),n.helpers="helpers",n.partials="partials",n.decorators="container.decorators",e?s.unshift(r):s.unshift(this.nameLookup("partials",r,"partial")),this.options.compat&&(n.depths="depths"),n=this.objectLiteral(n),s.push(n),this.push(this.source.functionCall("container.invokePartial","",s))},assignToHash
Line truncated
|
||||
`,e};gi.prototype.Program=function(t){var e="",r=t.body,i=void 0,s=void 0;if(t.blockParams){var n="BLOCK PARAMS: [";for(i=0,s=t.blockParams.length;i<s;i++)n+=" "+t.blockParams[i];n+=" ]",e+=this.pad(n)}for(i=0,s=r.length;i<s;i++)e+=this.accept(r[i]);return this.padding--,e};gi.prototype.MustacheStatement=function(t){return this.pad("{{ "+this.SubExpression(t)+" }}")};gi.prototype.Decorator=function(t){return this.pad("{{ DIRECTIVE "+this.SubExpression(t)+" }}")};gi.prototype.BlockStatement=gi.prototype.DecoratorBlock=function(t){var e="";return e+=this.pad((t.type==="DecoratorBlock"?"DIRECTIVE ":"")+"BLOCK:"),this.padding++,e+=this.pad(this.SubExpression(t)),t.program&&(e+=this.pad("PROGRAM:"),this.padding++,e+=this.accept(t.program),this.padding--),t.inverse&&(t.program&&this.padding++,e+=this.pad("{{^}}"),this.padding++,e+=this.accept(t.inverse),this.padding--,t.program&&this.padding--),this.padding--,e};gi.prototype.PartialStatement=function(t){var e="PARTIAL:"+t.name.original;return t.params[0]&&(e+=" "+this.accept(t.params[0])),t.hash&&(e+=" "+this.accept(t.hash)),this.pad("{{> "+e+" }}")};gi.prototype.PartialBlockStatement=function(t){var e="PARTIAL BLOCK:"+t.name.original;return t.params[0]&&(e+=" "+this.accept(t.params[0])),t.hash&&(e+=" "+this.accept(t.hash)),e+=" "+this.pad("PROGRAM:"),this.padding++,e+=this.accept(t.program),this.padding--,this.pad("{{> "+e+" }}")};gi.prototype.ContentStatement=function(t){return this.pad("CONTENT[ '"+t.value+"' ]")};gi.prototype.CommentStatement=function(t){return this.pad("{{! '"+t.value+"' }}")};gi.prototype.SubExpression=function(t){for(var e=t.params,r=[],i=void 0,s=0,n=e.length;s<n;s++)r.push(this.accept(e[s]));return e="["+r.join(", ")+"]",i=t.hash?" "+this.accept(t.hash):"",this.accept(t.path)+" "+e+i};gi.prototype.PathExpression=function(t){var e=t.parts.join("/");return(t.data?"@":"")+"PATH:"+e};gi.prototype.StringLiteral=function(t){return'"'+t.value+'"'};gi.prototype.NumberLiteral=function(t){return"NUMBER{"+t.value+"}"};gi.prototype.BooleanLiteral=function(t){return"BOOLEAN{"+t.value+"}"};gi.prototype.UndefinedLiteral=function(){return"UNDEFINED"};gi.prototype.NullLiteral=function(){return"NULL"};gi.prototype.Hash=function(t){for(var e=t.pairs,r=[],i=0,s=e.length;i<s;i++)r.push(this.accept(e[i]));return"HASH{"+r.join(", ")+"}"};gi.prototype.HashPair=function(t){return t.key+"="+this.accept(t.value)}});var cst=p((Wsi,ast)=>{var SH=ist().default,ost=sst();SH.PrintVisitor=ost.PrintVisitor;SH.print=ost.print;ast.exports=SH;function nst(t,e){var r=require("fs"),i=r.readFileSync(e,"utf8");t.exports=SH.compile(i)}typeof require<"u"&&require.extensions&&(require.extensions[".handlebars"]=nst,require.extensions[".hbs"]=nst)});var vst=k(require("fs"),1),xst=k(require("path"),1);var Xpe=k(require("os"),1);function Xh(t){return t==null?"":typeof t=="string"||t instanceof String?t:JSON.stringify(t)}function qH(t){return Object.keys(t).length?{title:t.title,file:t.file,line:t.startLine,endLine:t.endLine,col:t.startColumn,endColumn:t.endColumn}:{}}function Zh(t,e,r){let i=new GH(t,e,r);process.stdout.write(i.toString()+Xpe.EOL)}function HH(t,e=""){Zh(t,{},e)}var Kpe="::",GH=class{constructor(e,r,i){e||(e="missing.command"),this.command=e,this.properties=r,this.message=i}toString(){let e=Kpe+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let r=!0;for(let i in this.properties)if(this.properties.hasOwnProperty(i)){let s=this.properties[i];s&&(r?r=!1:e+=",",e+=`${i}=${jst(s)}`)}}return e+=`${Kpe}${Hst(this.message)}`,e}};function Hst(t){return Xh(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}function jst(t){return Xh(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}var Zpe=k(require("crypto"),1),v2=k(require("fs"),1),B2=k(require("os"),1);function x2(t,e){let r=process.env[`GITHUB_${t}`];if(!r)throw new Error(`Unable to find environment variable for file command ${t}`);if(!v2.existsSync(r))throw new Error(`Missing file at path: ${r}`);v2.appendFileSync(r,`${Xh(e)}${B2.EOL}`,{encoding:"utf8"})}function jH(t,e){let r=`ghadelimiter_${Zpe.randomUUID()}`,i=Xh(e);if(t.includes(r))throw new Error(`Unexpected input: name should not contain the delimiter "${r}"`);if(i.includes(r))throw new Error(`Unexpected input: value should not contain the delimiter "${r}"`);return`${t}<<${r}${B2.EOL}${i}${B2.EOL}${r}`}var D9=k(require("os"),1),VCe=k(require("path"),1);var Hv=k(require("http"),1),A9=k(require("https"),1);function zH(t){let e=t.protocol==="https:";if(zst(t))return;let r=e?process.env.https_proxy||process.env.HTTPS_PROXY:process.env.http_proxy||process.env.HTTP_PROXY;if(r)try{return new _2(r)}catch{if(!r.startsWith("http://")&&!r.startsWith("https://"))return new _2(`http://${r}`)}else return}function zst(t){if(!t.hostname)return!1;let e=t.hostname;if(Vst(e))return!0;let r=process.env.no_proxy||process.env.NO_PROXY||"";if(!r)return!1;let i;t.port?i=Number(t.port):t.proto
Line truncated
|
||||
Support boolean input list: \`true | True | TRUE | false | False | FALSE\``)}function $Ce(t,e){if(process.env.GITHUB_OUTPUT||"")return x2("OUTPUT",jH(t,e));process.stdout.write(D9.EOL),Zh("set-output",{name:t},Xh(e))}function NO(t){process.exitCode=T9.Failure,Wu(t)}function Kl(){return process.env.RUNNER_DEBUG==="1"}function N(t){Zh("debug",{},t)}function Wu(t,e={}){Zh("error",qH(e),t instanceof Error?t.toString():t)}function st(t,e={}){Zh("warning",qH(e),t instanceof Error?t.toString():t)}function L(t){process.stdout.write(t+D9.EOL)}function _yt(t){HH("group",t)}function Ryt(){HH("endgroup")}function ti(t,e){return xyt(this,void 0,void 0,function*(){_yt(t);let r;try{r=yield e()}finally{Ryt()}return r})}function Nc(t,e){if(process.env.GITHUB_STATE||"")return x2("STATE",jH(t,e));Zh("save-state",{name:t},Xh(e))}function WCe(t){return process.env[`STATE_${t}`]||""}var TL=k(require("fs"),1),BX=k(require("os"),1),vX=k(require("path"),1);var eV=k(require("crypto"),1),yn=k(require("fs"),1);var Bbt=k(X9(),1);var zO=k(require("os"),1),Ju=k(require("path"),1);var Oc=k(X9(),1),FSe=k(require("stream"),1),MSe=k(require("util"),1),tV=require("assert");var LSe=function(t,e,r,i){function s(n){return n instanceof r?n:new r(function(o){o(n)})}return new(r||(r=Promise))(function(n,o){function a(l){try{u(i.next(l))}catch(f){o(f)}}function c(l){try{u(i.throw(l))}catch(f){o(f)}}function u(l){l.done?n(l.value):s(l.value).then(a,c)}u((i=i.apply(t,e||[])).next())})},HO=class{constructor(e,r,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(r),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,r){return LSe(this,void 0,void 0,function*(){let i=1;for(;i<this.maxAttempts;){try{return yield e()}catch(n){if(r&&!r(n))throw n;L(n.message)}let s=this.getSleepAmount();L(`Waiting ${s} seconds before trying again`),yield this.sleep(s),i++}return yield e()})}getSleepAmount(){return Math.floor(Math.random()*(this.maxSeconds-this.minSeconds+1))+this.minSeconds}sleep(e){return LSe(this,void 0,void 0,function*(){return new Promise(r=>setTimeout(r,e*1e3))})}};var Zl=function(t,e,r,i){function s(n){return n instanceof r?n:new r(function(o){o(n)})}return new(r||(r=Promise))(function(n,o){function a(l){try{u(i.next(l))}catch(f){o(f)}}function c(l){try{u(i.throw(l))}catch(f){o(f)}}function u(l){l.done?n(l.value):s(l.value).then(a,c)}u((i=i.apply(t,e||[])).next())})},jO=class extends Error{constructor(e){super(`Unexpected HTTP response: ${e}`),this.httpStatusCode=e,Object.setPrototypeOf(this,new.target.prototype)}},USe=process.platform==="win32",U_r=process.platform==="darwin",xbt="actions/tool-cache";function Pc(t,e,r,i){return Zl(this,void 0,void 0,function*(){e=e||Ju.join(VSe(),eV.randomUUID()),yield Ad(Ju.dirname(e)),N(`Downloading ${t}`),N(`Destination ${e}`);let s=3,n=Z9("TEST_DOWNLOAD_TOOL_RETRY_MIN_SECONDS",10),o=Z9("TEST_DOWNLOAD_TOOL_RETRY_MAX_SECONDS",20);return yield new HO(s,n,o).execute(()=>Zl(this,void 0,void 0,function*(){return yield _bt(t,e||"",r,i)}),c=>!(c instanceof jO&&c.httpStatusCode&&c.httpStatusCode<500&&c.httpStatusCode!==408&&c.httpStatusCode!==429))})}function _bt(t,e,r,i){return Zl(this,void 0,void 0,function*(){if(yn.existsSync(e))throw new Error(`Destination file path ${e} already exists`);let s=new ds(xbt,[],{allowRetries:!1});r&&(N("set auth"),i===void 0&&(i={}),i.authorization=r);let n=yield s.get(t,i);if(n.message.statusCode!==200){let l=new jO(n.message.statusCode);throw N(`Failed to download from "${t}". Code(${n.message.statusCode}) Message(${n.message.statusMessage})`),l}let o=MSe.promisify(FSe.pipeline),c=Z9("TEST_DOWNLOAD_TOOL_RESPONSE_MESSAGE_FACTORY",()=>n.message)(),u=!1;try{return yield o(c,yn.createWriteStream(e)),N("download complete"),u=!0,e}finally{if(!u){N("download failed");try{yield xO(e)}catch(l){N(`Failed to delete '${e}'. ${l.message}`)}}}})}function qSe(t,e){return Zl(this,arguments,void 0,function*(r,i,s="xz"){if(!r)throw new Error("parameter 'file' is required");i=yield jSe(i),N("Checking tar --version");let n="";yield Qa("tar --version",[],{ignoreReturnCode:!0,silent:!0,listeners:{stdout:l=>n+=l.toString(),stderr:l=>n+=l.toString()}}),N(n.trim());let o=n.toUpperCase().includes("GNU TAR"),a;s instanceof Array?a=s:a=[s],Kl()&&!s.includes("v")&&a.push("-v");let c=i,u=r;return USe&&o&&(a.push("--force-local"),c=i.replace(/\\/g,"/"),u=r.replace(/\\/g,"/")),o&&(a.push("--warning=no-unknown-keyword"),a.push("--overwrite")),a.push("-C",c,"-f",u),yield Qa("tar",a),i})}function GSe(t,e){return Zl(this,void 0,void 0,function*(){if(!t)throw new Error("parameter 'file' is required");return e=yield jSe(e),USe?yield Rbt(t,e):yield Nbt(t,e),e})}function Rbt(t,e){return Zl(this,void 0,void 0,function*(){let r=t.replace(/'/g,"''").replace(/"|\n|\r/g,""),i=e.replace(/'/g,"''").replace(/"|\n|\r/g,""),s=yield Js("pwsh",!1);if(s){let o=["-NoLogLine truncated
|
||||
`),e=e.replace(/\r/g,`
|
||||
`));let s=e.split(`
|
||||
`).map(n=>n.trim());for(let n of s)!n||n.startsWith("#")||i.patterns.push(new ex(n));return i.searchPaths.push(...Z9(i.patterns)),i})}static stat(e,r,i){return oV(this,void 0,void 0,function*(){let s;if(r.followSymbolicLinks)try{s=yield sw.promises.stat(e.path)}catch(n){if(n.code==="ENOENT"){if(r.omitBrokenSymbolicLinks){T(`Broken symlink '${e.path}'`);return}throw new Error(`No information found for the path '${e.path}'. This may indicate a broken symbolic link.`)}throw n}else s=yield sw.promises.lstat(e.path);if(s.isDirectory()&&r.followSymbolicLinks){let n=yield sw.promises.realpath(e.path);for(;i.length>=e.level;)i.pop();if(i.some(o=>o===n)){T(`Symlink cycle detected for path '${e.path}' and realpath '${n}'`);return}i.push(n)}return s})}};var Kbt=function(t,e,r,i){function s(n){return n instanceof r?n:new r(function(o){o(n)})}return new(r||(r=Promise))(function(n,o){function a(l){try{u(i.next(l))}catch(f){o(f)}}function c(l){try{u(i.throw(l))}catch(f){o(f)}}function u(l){l.done?n(l.value):s(l.value).then(a,c)}u((i=i.apply(t,e||[])).next())})};function uBe(t,e){return Kbt(this,void 0,void 0,function*(){return yield $O.create(t,e)})}var uP=k(require("crypto"),1),aw=k(require("fs"),1),iy=k(require("path"),1),exe=k(Xve(),1),txe=k(require("util"),1);var ux;(function(t){t.Gzip="cache.tgz",t.Zstd="cache.tzst"})(ux||(ux={}));var no;(function(t){t.Gzip="gzip",t.ZstdWithoutLong="zstd-without-long",t.Zstd="zstd"})(no||(no={}));var La;(function(t){t.GNU="gnu",t.BSD="bsd"})(La||(La={}));var aP=2,cP=5e3,vV=5e3,xV=`${process.env.PROGRAMFILES}\\Git\\usr\\bin\\tar.exe`,Zve=`${process.env.SYSTEMDRIVE}\\Windows\\System32\\tar.exe`,lx="cache.tar",_V="manifest.txt",NRr=10*Math.pow(1024,3);var ow=function(t,e,r,i){function s(n){return n instanceof r?n:new r(function(o){o(n)})}return new(r||(r=Promise))(function(n,o){function a(l){try{u(i.next(l))}catch(f){o(f)}}function c(l){try{u(i.throw(l))}catch(f){o(f)}}function u(l){l.done?n(l.value):s(l.value).then(a,c)}u((i=i.apply(t,e||[])).next())})},WIt=function(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],r;return e?e.call(t):(t=typeof __values=="function"?__values(t):t[Symbol.iterator](),r={},i("next"),i("throw"),i("return"),r[Symbol.asyncIterator]=function(){return this},r);function i(n){r[n]=t[n]&&function(o){return new Promise(function(a,c){o=t[n](o),s(a,c,o.done,o.value)})}}function s(n,o,a,c){Promise.resolve(c).then(function(u){n({value:u,done:a})},o)}},JIt="1.0";function fx(){return ow(this,void 0,void 0,function*(){let t=process.platform==="win32",e=process.env.RUNNER_TEMP||"";if(!e){let i;t?i=process.env.USERPROFILE||"C:\\":process.platform==="darwin"?i="/Users":i="/home",e=iy.join(i,"actions","temp")}let r=iy.join(e,uP.randomUUID());return yield gd(r),r})}function rf(t){return aw.statSync(t).size}function RV(t){return ow(this,void 0,void 0,function*(){var e,r,i,s,n;let o=[],a=(n=process.env.GITHUB_WORKSPACE)!==null&&n!==void 0?n:process.cwd(),c=yield uBe(t.join(`
|
||||
`),{implicitDescendants:!1});try{for(var u=!0,l=WIt(c.globGenerator()),f;f=yield l.next(),e=f.done,!e;u=!0){s=f.value,u=!1;let d=iy.relative(a,s).replace(new RegExp(`\\${iy.sep}`,"g"),"/");T(`Matched: ${d}`),d===""?o.push("."):o.push(`${d}`)}}catch(h){r={error:h}}finally{try{!u&&!e&&(i=l.return)&&(yield i.call(l))}finally{if(r)throw r.error}}return o})}function hx(t){return ow(this,void 0,void 0,function*(){return txe.promisify(aw.unlink)(t)})}function rxe(t){return ow(this,arguments,void 0,function*(e,r=[]){let i="";r.push("--version"),T(`Checking ${e} ${r.join(" ")}`);try{yield Qa(`${e}`,r,{ignoreReturnCode:!0,silent:!0,listeners:{stdout:s=>i+=s.toString(),stderr:s=>i+=s.toString()}})}catch(s){T(s.message)}return i=i.trim(),T(i),i})}function dx(){return ow(this,void 0,void 0,function*(){let t=yield rxe("zstd",["--quiet"]),e=exe.clean(t);return T(`zstd version: ${e}`),t===""?no.Gzip:no.ZstdWithoutLong})}function Tm(t){return t===no.Gzip?ux.Gzip:ux.Zstd}function ixe(){return ow(this,void 0,void 0,function*(){return aw.existsSync(xV)?xV:(yield rxe("tar")).toLowerCase().includes("gnu tar")?Js("tar"):""})}function TV(t,e){if(e===void 0)throw Error(`Expected ${t} but value was undefiend`);return e}function cw(t,e,r=!1){let i=t.slice();return e&&i.push(e),process.platform==="win32"&&!r&&i.push("windows-only"),i.push(JIt),uP.createHash("sha256").update(i.join("|")).digest("hex")}function sxe(){let t=process.env.ACTIONS_RUNTIME_TOKEN;if(!t)throw new Error("Unable to get the ACTIONS_RUNTIME_TOKEN env variable");return t}var kw=k(require("fs"),1),p2e=require("url");var sf=class extends Error{constructor(e){super(e),this.name="AbortError"}};var nxe=require("node:os"),oxe=k(require("node:util"),1),axe=k(require("node:process"),1);function cxe(t,...e){axe.default.stderr.write(`${oxe.default.format(t,...e)}${nxe.EOL}`)}var uxe=typeof process<"u"&&process.env&&process.env.DEBUG||void 0,fxe,NV=[],DV=[],fP=[];uxe&&OV(uxe);var hxe=Object.assign(t=>dxe(t),{enable:OV,enabled:PV,disable:YIt,log:cxe});function OV(t){fxe=t,NV=[],DV=[];let e=t.split(",").map(r=>r.trim());for(let r of e)r.startsWith("-")?DV.push(r.substring(1)):NV.push(r);for(let r of fP)r.enabled=PV(r.namespace)}function PV(t){if(t.endsWith("*"))return!0;for(let e of DV)if(lxe(t,e))return!1;for(let e of NV)if(lxe(t,e))return!0;return!1}function lxe(t,e){if(e.indexOf("*")===-1)return t===e;let r=e;if(e.indexOf("**")!==-1){let h=[],d="";for(let m of e)m==="*"&&d==="*"||(d=m,h.push(m));r=h.join("")}let i=0,s=0,n=r.length,o=t.length,a=-1,c=-1;for(;i<o&&s<n;)if(r[s]==="*"){if(a=s,s++,s===n)return!0;for(;t[i]!==r[s];)if(i++,i===o)return!1;c=i,i++,s++;continue}else if(r[s]===t[i])s++,i++;else if(a>=0){if(s=a+1,i=c+1,i===o)return!1;for(;t[i]!==r[s];)if(i++,i===o)return!1;c=i,i++,s++;continue}else return!1;let u=i===t.length,l=s===r.length,f=s===r.length-1&&r[s]==="*";return u&&(l||f)}function YIt(){let t=fxe||"";return OV(""),t}function dxe(t){let e=Object.assign(r,{enabled:PV(t),destroy:KIt,log:hxe.log,namespace:t,extend:XIt});function r(...i){e.enabled&&(i.length>0&&(i[0]=`${t} ${i[0]}`),e.log(...i))}return fP.push(e),e}function KIt(){let t=fP.indexOf(this);return t>=0?(fP.splice(t,1),!0):!1}function XIt(t){let e=dxe(`${this.namespace}:${t}`);return e.log=this.log,e}var uw=hxe;var QV=["verbose","info","warning","error"],pxe={verbose:400,info:300,warning:200,error:100};function mxe(t,e){e.log=(...r)=>{t.log(...r)}}function Axe(t){return QV.includes(t)}function hP(t){let e=new Set,r=typeof process<"u"&&process.env&&process.env[t.logLevelEnvVarName]||void 0,i,s=uw(t.namespace);s.log=(...l)=>{uw.log(...l)};function n(l){if(l&&!Axe(l))throw new Error(`Unknown log level '${l}'. Acceptable values: ${QV.join(",")}`);i=l;let f=[];for(let h of e)o(h)&&f.push(h.namespace);uw.enable(f.join(","))}r&&(Axe(r)?n(r):console.error(`${t.logLevelEnvVarName} set to unknown log level '${r}'; logging is not enabled. Acceptable values: ${QV.join(", ")}.`));function o(l){return!!(i&&pxe[l.level]<=pxe[i])}function a(l,f){let h=Object.assign(l.extend(f),{level:f});if(mxe(l,h),o(h)){let d=uw.disable();uw.enable(d+","+h.namespace)}return e.add(h),h}function c(){return i}function u(l){let f=s.extend(l);return mxe(s,f),{error:a(f,"error"),warning:a(f,"warning"),info:a(f,"info"),verbose:a(f,"verbose")}}return{setLogLevel:n,getLogLevel:c,createClientLogger:u,logger:s}}var gxe=hP({logLevelEnvVarName:"TYPESPEC_RUNTIME_LOG_LEVEL",namespace:"typeSpecRuntime"}),ZIt=gxe.logger;function px(t){return gxe.createClientLogger(t)}function dP(t){return t.toLowerCase()}function*eSt(t){for(let e of t.values())yield[e.name,e.value]}var kV=class{_headersMap;constructor(e){if(this._headersMap=new Map,e)for(let r of Object.keys(e))this.set(r,e[r])}set(e,r){this._headersMap.set(dP(e),{name:e,value:String(r).trim()})}get(e){return this._headersMap.get(dP(e))?.value}has(e){return this._headersMap.has(dP(e))}delete(e){this._headersMap.delete(dP(e))}toJSON(e={}){let r={};if(e.preserveCase)for(let i of this._headersMap.value
Line truncated
|
||||
${iSt.sanitize({...this,request:{...this.request,agent:i},response:this.response})}`,enumerable:!1}),Object.setPrototypeOf(this,t.prototype)}};function AP(t){return t instanceof oo?!0:ny(t)&&t.name==="RestError"}function Wo(t,e){return Buffer.from(t,e)}var gP=k(require("node:http"),1),yP=k(require("node:https"),1),UV=k(require("node:zlib"),1),Cxe=require("node:stream");var Mc=px("ts-http-runtime");var sSt={};function mx(t){return t&&typeof t.pipe=="function"}function wxe(t){return t.readable===!1?Promise.resolve():new Promise(e=>{let r=()=>{e(),t.removeListener("close",r),t.removeListener("end",r),t.removeListener("error",r)};t.on("close",r),t.on("end",r),t.on("error",r)})}function Ixe(t){return t&&typeof t.byteLength=="number"}var EP=class extends Cxe.Transform{loadedBytes=0;progressCallback;_transform(e,r,i){this.push(e),this.loadedBytes+=e.length;try{this.progressCallback({loadedBytes:this.loadedBytes}),i()}catch(s){i(s)}}constructor(e){super(),this.progressCallback=e}},qV=class{cachedHttpAgent;cachedHttpsAgents=new WeakMap;async sendRequest(e){let r=new AbortController,i;if(e.abortSignal){if(e.abortSignal.aborted)throw new sf("The operation was aborted. Request has already been canceled.");i=u=>{u.type==="abort"&&r.abort()},e.abortSignal.addEventListener("abort",i)}let s;e.timeout>0&&(s=setTimeout(()=>{let u=new Zu;Mc.info(`request to '${u.sanitizeUrl(e.url)}' timed out. canceling...`),r.abort()},e.timeout));let n=e.headers.get("Accept-Encoding"),o=n?.includes("gzip")||n?.includes("deflate"),a=typeof e.body=="function"?e.body():e.body;if(a&&!e.headers.has("Content-Length")){let u=cSt(a);u!==null&&e.headers.set("Content-Length",u)}let c;try{if(a&&e.onUploadProgress){let m=e.onUploadProgress,A=new EP(m);A.on("error",y=>{Mc.error("Error in upload progress",y)}),mx(a)?a.pipe(A):A.end(a),a=A}let u=await this.makeRequest(e,r,a);s!==void 0&&clearTimeout(s);let l=nSt(u),h={status:u.statusCode??0,headers:l,request:e};if(e.method==="HEAD")return u.resume(),h;c=o?oSt(u,l):u;let d=e.onDownloadProgress;if(d){let m=new EP(d);m.on("error",A=>{Mc.error("Error in download progress",A)}),c.pipe(m),c=m}return e.streamResponseStatusCodes?.has(Number.POSITIVE_INFINITY)||e.streamResponseStatusCodes?.has(h.status)?h.readableStreamBody=c:h.bodyAsText=await aSt(c),h}finally{if(e.abortSignal&&i){let u=Promise.resolve();mx(a)&&(u=wxe(a));let l=Promise.resolve();mx(c)&&(l=wxe(c)),Promise.all([u,l]).then(()=>{i&&e.abortSignal?.removeEventListener("abort",i)}).catch(f=>{Mc.warning("Error when cleaning up abortListener on httpRequest",f)})}}}makeRequest(e,r,i){let s=new URL(e.url),n=s.protocol!=="https:";if(n&&!e.allowInsecureConnection)throw new Error(`Cannot connect to ${e.url} while allowInsecureConnection is false.`);let a={agent:e.agent??this.getOrCreateAgent(e,n),hostname:s.hostname,path:`${s.pathname}${s.search}`,port:s.port,method:e.method,headers:e.headers.toJSON({preserveCase:!0}),...e.requestOverrides};return new Promise((c,u)=>{let l=n?gP.default.request(a,c):yP.default.request(a,c);l.once("error",f=>{u(new oo(f.message,{code:f.code??oo.REQUEST_SEND_ERROR,request:e}))}),r.signal.addEventListener("abort",()=>{let f=new sf("The operation was aborted. Rejecting from abort signal callback while making request.");l.destroy(f),u(f)}),i&&mx(i)?i.pipe(l):i?typeof i=="string"||Buffer.isBuffer(i)?l.end(i):Ixe(i)?l.end(ArrayBuffer.isView(i)?Buffer.from(i.buffer):Buffer.from(i)):(Mc.error("Unrecognized body type",i),u(new oo("Unrecognized body type"))):l.end()})}getOrCreateAgent(e,r){let i=e.disableKeepAlive;if(r)return i?gP.default.globalAgent:(this.cachedHttpAgent||(this.cachedHttpAgent=new gP.default.Agent({keepAlive:!0})),this.cachedHttpAgent);{if(i&&!e.tlsSettings)return yP.default.globalAgent;let s=e.tlsSettings??sSt,n=this.cachedHttpsAgents.get(s);return n&&n.options.keepAlive===!i||(Mc.info("No cached TLS Agent exist, creating a new Agent"),n=new yP.default.Agent({keepAlive:!i,...s}),this.cachedHttpsAgents.set(s,n)),n}}};function nSt(t){let e=Ma();for(let r of Object.keys(t.headers)){let i=t.headers[r];Array.isArray(i)?i.length>0&&e.set(r,i[0]):i&&e.set(r,i)}return e}function oSt(t,e){let r=e.get("Content-Encoding");if(r==="gzip"){let i=UV.default.createGunzip();return t.pipe(i),i}else if(r==="deflate"){let i=UV.default.createInflate();return t.pipe(i),i}return t}function aSt(t){return new Promise((e,r)=>{let i=[];t.on("data",s=>{Buffer.isBuffer(s)?i.push(s):i.push(Buffer.from(s))}),t.on("end",()=>{e(Buffer.concat(i).toString("utf8"))}),t.on("error",s=>{s&&s?.name==="AbortError"?r(s):r(new oo(`Error reading response as text: ${s.message}`,{code:oo.PARSE_ERROR}))})})}function cSt(t){return t?Buffer.isBuffer(t)?t.length:mx(t)?null:Ixe(t)?t.byteLength:typeof t=="string"?Buffer.from(t).length:null:0}function Sxe(){return new qV}function bP(){return Sxe()}var GV="logPolicy";function wP(t={}){let e=t.logger??Mc.info,r=new Zu({additionalAllowedHeaderNames:t.additionalAllowedHeaderNames,additionalAllowedQueryParameters:t.additional
Line truncated
|
||||
`;return e}function UBt(t){return t instanceof Uint8Array?t.byteLength:GP(t)?t.size===-1?void 0:t.size:void 0}function qBt(t){let e=0;for(let r of t){let i=UBt(r);if(i===void 0)return;e+=i}return e}async function GBt(t,e,r){let i=[Wo(`--${r}`,"utf-8"),...e.flatMap(n=>[Wo(`\r
|
||||
`,"utf-8"),Wo(FBt(n.headers),"utf-8"),Wo(`\r
|
||||
`).map(n=>n.trim());for(let n of s)!n||n.startsWith("#")||i.patterns.push(new ix(n));return i.searchPaths.push(...nV(i.patterns)),i})}static stat(e,r,i){return hV(this,void 0,void 0,function*(){let s;if(r.followSymbolicLinks)try{s=yield ow.promises.stat(e.path)}catch(n){if(n.code==="ENOENT"){if(r.omitBrokenSymbolicLinks){N(`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 s=yield ow.promises.lstat(e.path);if(s.isDirectory()&&r.followSymbolicLinks){let n=yield ow.promises.realpath(e.path);for(;i.length>=e.level;)i.pop();if(i.some(o=>o===n)){N(`Symlink cycle detected for path '${e.path}' and realpath '${n}'`);return}i.push(n)}return s})}};var uwt=function(t,e,r,i){function s(n){return n instanceof r?n:new r(function(o){o(n)})}return new(r||(r=Promise))(function(n,o){function a(l){try{u(i.next(l))}catch(f){o(f)}}function c(l){try{u(i.throw(l))}catch(f){o(f)}}function u(l){l.done?n(l.value):s(l.value).then(a,c)}u((i=i.apply(t,e||[])).next())})};function yBe(t,e){return uwt(this,void 0,void 0,function*(){return yield YO.create(t,e)})}var hP=k(require("crypto"),1),uw=k(require("fs"),1),sy=k(require("path"),1),uxe=k(axe(),1),lxe=k(require("util"),1);var hx;(function(t){t.Gzip="cache.tgz",t.Zstd="cache.tzst"})(hx||(hx={}));var no;(function(t){t.Gzip="gzip",t.ZstdWithoutLong="zstd-without-long",t.Zstd="zstd"})(no||(no={}));var La;(function(t){t.GNU="gnu",t.BSD="bsd"})(La||(La={}));var lP=2,fP=5e3,DV=5e3,OV=`${process.env.PROGRAMFILES}\\Git\\usr\\bin\\tar.exe`,cxe=`${process.env.SYSTEMDRIVE}\\Windows\\System32\\tar.exe`,dx="cache.tar",PV="manifest.txt",YRr=10*Math.pow(1024,3);var cw=function(t,e,r,i){function s(n){return n instanceof r?n:new r(function(o){o(n)})}return new(r||(r=Promise))(function(n,o){function a(l){try{u(i.next(l))}catch(f){o(f)}}function c(l){try{u(i.throw(l))}catch(f){o(f)}}function u(l){l.done?n(l.value):s(l.value).then(a,c)}u((i=i.apply(t,e||[])).next())})},oSt=function(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],r;return e?e.call(t):(t=typeof __values=="function"?__values(t):t[Symbol.iterator](),r={},i("next"),i("throw"),i("return"),r[Symbol.asyncIterator]=function(){return this},r);function i(n){r[n]=t[n]&&function(o){return new Promise(function(a,c){o=t[n](o),s(a,c,o.done,o.value)})}}function s(n,o,a,c){Promise.resolve(c).then(function(u){n({value:u,done:a})},o)}},aSt="1.0";function px(){return cw(this,void 0,void 0,function*(){let t=process.platform==="win32",e=process.env.RUNNER_TEMP||"";if(!e){let i;t?i=process.env.USERPROFILE||"C:\\":process.platform==="darwin"?i="/Users":i="/home",e=sy.join(i,"actions","temp")}let r=sy.join(e,hP.randomUUID());return yield Ad(r),r})}function tf(t){return uw.statSync(t).size}function QV(t){return cw(this,void 0,void 0,function*(){var e,r,i,s,n;let o=[],a=(n=process.env.GITHUB_WORKSPACE)!==null&&n!==void 0?n:process.cwd(),c=yield yBe(t.join(`
|
||||
`),{implicitDescendants:!1});try{for(var u=!0,l=oSt(c.globGenerator()),f;f=yield l.next(),e=f.done,!e;u=!0){s=f.value,u=!1;let d=sy.relative(a,s).replace(new RegExp(`\\${sy.sep}`,"g"),"/");N(`Matched: ${d}`),d===""?o.push("."):o.push(`${d}`)}}catch(h){r={error:h}}finally{try{!u&&!e&&(i=l.return)&&(yield i.call(l))}finally{if(r)throw r.error}}return o})}function mx(t){return cw(this,void 0,void 0,function*(){return lxe.promisify(uw.unlink)(t)})}function fxe(t){return cw(this,arguments,void 0,function*(e,r=[]){let i="";r.push("--version"),N(`Checking ${e} ${r.join(" ")}`);try{yield Qa(`${e}`,r,{ignoreReturnCode:!0,silent:!0,listeners:{stdout:s=>i+=s.toString(),stderr:s=>i+=s.toString()}})}catch(s){N(s.message)}return i=i.trim(),N(i),i})}function Ax(){return cw(this,void 0,void 0,function*(){let t=yield fxe("zstd",["--quiet"]),e=uxe.clean(t);return N(`zstd version: ${e}`),t===""?no.Gzip:no.ZstdWithoutLong})}function Rm(t){return t===no.Gzip?hx.Gzip:hx.Zstd}function hxe(){return cw(this,void 0,void 0,function*(){return uw.existsSync(OV)?OV:(yield fxe("tar")).toLowerCase().includes("gnu tar")?Js("tar"):""})}function kV(t,e){if(e===void 0)throw Error(`Expected ${t} but value was undefiend`);return e}function lw(t,e,r=!1){let i=t.slice();return e&&i.push(e),process.platform==="win32"&&!r&&i.push("windows-only"),i.push(aSt),hP.createHash("sha256").update(i.join("|")).digest("hex")}function dxe(){let t=process.env.ACTIONS_RUNTIME_TOKEN;if(!t)throw new Error("Unable to get the ACTIONS_RUNTIME_TOKEN env variable");return t}var Mw=k(require("fs"),1),v1e=require("url");var rf=class extends Error{constructor(e){super(e),this.name="AbortError"}};var pxe=require("node:os"),mxe=k(require("node:util"),1),Axe=k(require("node:process"),1);function gxe(t,...e){Axe.default.stderr.write(`${mxe.default.format(t,...e)}${pxe.EOL}`)}var yxe=typeof process<"u"&&process.env&&process.env.DEBUG||void 0,bxe,LV=[],FV=[],pP=[];yxe&&MV(yxe);var wxe=Object.assign(t=>Cxe(t),{enable:MV,enabled:UV,disable:cSt,log:gxe});function MV(t){bxe=t,LV=[],FV=[];let e=t.split(",").map(r=>r.trim());for(let r of e)r.startsWith("-")?FV.push(r.substring(1)):LV.push(r);for(let r of pP)r.enabled=UV(r.namespace)}function UV(t){if(t.endsWith("*"))return!0;for(let e of FV)if(Exe(t,e))return!1;for(let e of LV)if(Exe(t,e))return!0;return!1}function Exe(t,e){if(e.indexOf("*")===-1)return t===e;let r=e;if(e.indexOf("**")!==-1){let h=[],d="";for(let m of e)m==="*"&&d==="*"||(d=m,h.push(m));r=h.join("")}let i=0,s=0,n=r.length,o=t.length,a=-1,c=-1;for(;i<o&&s<n;)if(r[s]==="*"){if(a=s,s++,s===n)return!0;for(;t[i]!==r[s];)if(i++,i===o)return!1;c=i,i++,s++;continue}else if(r[s]===t[i])s++,i++;else if(a>=0){if(s=a+1,i=c+1,i===o)return!1;for(;t[i]!==r[s];)if(i++,i===o)return!1;c=i,i++,s++;continue}else return!1;let u=i===t.length,l=s===r.length,f=s===r.length-1&&r[s]==="*";return u&&(l||f)}function cSt(){let t=bxe||"";return MV(""),t}function Cxe(t){let e=Object.assign(r,{enabled:UV(t),destroy:uSt,log:wxe.log,namespace:t,extend:lSt});function r(...i){e.enabled&&(i.length>0&&(i[0]=`${t} ${i[0]}`),e.log(...i))}return pP.push(e),e}function uSt(){let t=pP.indexOf(this);return t>=0?(pP.splice(t,1),!0):!1}function lSt(t){let e=Cxe(`${this.namespace}:${t}`);return e.log=this.log,e}var fw=wxe;var qV=["verbose","info","warning","error"],Ixe={verbose:400,info:300,warning:200,error:100};function Sxe(t,e){e.log=(...r)=>{t.log(...r)}}function Bxe(t){return qV.includes(t)}function mP(t){let e=new Set,r=typeof process<"u"&&process.env&&process.env[t.logLevelEnvVarName]||void 0,i,s=fw(t.namespace);s.log=(...l)=>{fw.log(...l)};function n(l){if(l&&!Bxe(l))throw new Error(`Unknown log level '${l}'. Acceptable values: ${qV.join(",")}`);i=l;let f=[];for(let h of e)o(h)&&f.push(h.namespace);fw.enable(f.join(","))}r&&(Bxe(r)?n(r):console.error(`${t.logLevelEnvVarName} set to unknown log level '${r}'; logging is not enabled. Acceptable values: ${qV.join(", ")}.`));function o(l){return!!(i&&Ixe[l.level]<=Ixe[i])}function a(l,f){let h=Object.assign(l.extend(f),{level:f});if(Sxe(l,h),o(h)){let d=fw.disable();fw.enable(d+","+h.namespace)}return e.add(h),h}function c(){return i}function u(l){let f=s.extend(l);return Sxe(s,f),{error:a(f,"error"),warning:a(f,"warning"),info:a(f,"info"),verbose:a(f,"verbose")}}return{setLogLevel:n,getLogLevel:c,createClientLogger:u,logger:s}}var vxe=mP({logLevelEnvVarName:"TYPESPEC_RUNTIME_LOG_LEVEL",namespace:"typeSpecRuntime"}),fSt=vxe.logger;function gx(t){return vxe.createClientLogger(t)}function AP(t){return t.toLowerCase()}function*hSt(t){for(let e of t.values())yield[e.name,e.value]}var GV=class{_headersMap;constructor(e){if(this._headersMap=new Map,e)for(let r of Object.keys(e))this.set(r,e[r])}set(e,r){this._headersMap.set(AP(e),{name:e,value:String(r).trim()})}get(e){return this._headersMap.get(AP(e))?.value}has(e){return this._headersMap.has(AP(e))}delete(e){this._headersMap.delete(AP(e))}toJSON(e={}){let r={};if(e.preserveCase)for(let i of this._headersMap.value
Line truncated
|
||||
${mSt.sanitize({...this,request:{...this.request,agent:i},response:this.response})}`,enumerable:!1}),Object.setPrototypeOf(this,t.prototype)}};function EP(t){return t instanceof oo?!0:oy(t)&&t.name==="RestError"}function Wo(t,e){return Buffer.from(t,e)}var bP=k(require("node:http"),1),wP=k(require("node:https"),1),VV=k(require("node:zlib"),1),Txe=require("node:stream");var Lc=gx("ts-http-runtime");var ASt={};function yx(t){return t&&typeof t.pipe=="function"}function Nxe(t){return t.readable===!1?Promise.resolve():new Promise(e=>{let r=()=>{e(),t.removeListener("close",r),t.removeListener("end",r),t.removeListener("error",r)};t.on("close",r),t.on("end",r),t.on("error",r)})}function Dxe(t){return t&&typeof t.byteLength=="number"}var CP=class extends Txe.Transform{loadedBytes=0;progressCallback;_transform(e,r,i){this.push(e),this.loadedBytes+=e.length;try{this.progressCallback({loadedBytes:this.loadedBytes}),i()}catch(s){i(s)}}constructor(e){super(),this.progressCallback=e}},$V=class{cachedHttpAgent;cachedHttpsAgents=new WeakMap;async sendRequest(e){let r=new AbortController,i;if(e.abortSignal){if(e.abortSignal.aborted)throw new rf("The operation was aborted. Request has already been canceled.");i=u=>{u.type==="abort"&&r.abort()},e.abortSignal.addEventListener("abort",i)}let s;e.timeout>0&&(s=setTimeout(()=>{let u=new Xu;Lc.info(`request to '${u.sanitizeUrl(e.url)}' timed out. canceling...`),r.abort()},e.timeout));let n=e.headers.get("Accept-Encoding"),o=n?.includes("gzip")||n?.includes("deflate"),a=typeof e.body=="function"?e.body():e.body;if(a&&!e.headers.has("Content-Length")){let u=bSt(a);u!==null&&e.headers.set("Content-Length",u)}let c;try{if(a&&e.onUploadProgress){let m=e.onUploadProgress,A=new CP(m);A.on("error",y=>{Lc.error("Error in upload progress",y)}),yx(a)?a.pipe(A):A.end(a),a=A}let u=await this.makeRequest(e,r,a);s!==void 0&&clearTimeout(s);let l=gSt(u),h={status:u.statusCode??0,headers:l,request:e};if(e.method==="HEAD")return u.resume(),h;c=o?ySt(u,l):u;let d=e.onDownloadProgress;if(d){let m=new CP(d);m.on("error",A=>{Lc.error("Error in download progress",A)}),c.pipe(m),c=m}return e.streamResponseStatusCodes?.has(Number.POSITIVE_INFINITY)||e.streamResponseStatusCodes?.has(h.status)?h.readableStreamBody=c:h.bodyAsText=await ESt(c),h}finally{if(e.abortSignal&&i){let u=Promise.resolve();yx(a)&&(u=Nxe(a));let l=Promise.resolve();yx(c)&&(l=Nxe(c)),Promise.all([u,l]).then(()=>{i&&e.abortSignal?.removeEventListener("abort",i)}).catch(f=>{Lc.warning("Error when cleaning up abortListener on httpRequest",f)})}}}makeRequest(e,r,i){let s=new URL(e.url),n=s.protocol!=="https:";if(n&&!e.allowInsecureConnection)throw new Error(`Cannot connect to ${e.url} while allowInsecureConnection is false.`);let a={agent:e.agent??this.getOrCreateAgent(e,n),hostname:s.hostname,path:`${s.pathname}${s.search}`,port:s.port,method:e.method,headers:e.headers.toJSON({preserveCase:!0}),...e.requestOverrides};return new Promise((c,u)=>{let l=n?bP.default.request(a,c):wP.default.request(a,c);l.once("error",f=>{u(new oo(f.message,{code:f.code??oo.REQUEST_SEND_ERROR,request:e}))}),r.signal.addEventListener("abort",()=>{let f=new rf("The operation was aborted. Rejecting from abort signal callback while making request.");l.destroy(f),u(f)}),i&&yx(i)?i.pipe(l):i?typeof i=="string"||Buffer.isBuffer(i)?l.end(i):Dxe(i)?l.end(ArrayBuffer.isView(i)?Buffer.from(i.buffer):Buffer.from(i)):(Lc.error("Unrecognized body type",i),u(new oo("Unrecognized body type"))):l.end()})}getOrCreateAgent(e,r){let i=e.disableKeepAlive;if(r)return i?bP.default.globalAgent:(this.cachedHttpAgent||(this.cachedHttpAgent=new bP.default.Agent({keepAlive:!0})),this.cachedHttpAgent);{if(i&&!e.tlsSettings)return wP.default.globalAgent;let s=e.tlsSettings??ASt,n=this.cachedHttpsAgents.get(s);return n&&n.options.keepAlive===!i||(Lc.info("No cached TLS Agent exist, creating a new Agent"),n=new wP.default.Agent({keepAlive:!i,...s}),this.cachedHttpsAgents.set(s,n)),n}}};function gSt(t){let e=Fa();for(let r of Object.keys(t.headers)){let i=t.headers[r];Array.isArray(i)?i.length>0&&e.set(r,i[0]):i&&e.set(r,i)}return e}function ySt(t,e){let r=e.get("Content-Encoding");if(r==="gzip"){let i=VV.default.createGunzip();return t.pipe(i),i}else if(r==="deflate"){let i=VV.default.createInflate();return t.pipe(i),i}return t}function ESt(t){return new Promise((e,r)=>{let i=[];t.on("data",s=>{Buffer.isBuffer(s)?i.push(s):i.push(Buffer.from(s))}),t.on("end",()=>{e(Buffer.concat(i).toString("utf8"))}),t.on("error",s=>{s&&s?.name==="AbortError"?r(s):r(new oo(`Error reading response as text: ${s.message}`,{code:oo.PARSE_ERROR}))})})}function bSt(t){return t?Buffer.isBuffer(t)?t.length:yx(t)?null:Dxe(t)?t.byteLength:typeof t=="string"?Buffer.from(t).length:null:0}function Oxe(){return new $V}function IP(){return Oxe()}var WV="logPolicy";function SP(t={}){let e=t.logger??Lc.info,r=new Xu({additionalAllowedHeaderNames:t.additionalAllowedHeaderNames,additionalAllowedQueryParameters:t.additional
Line truncated
|
||||
`;return e}function XBt(t){return t instanceof Uint8Array?t.byteLength:zP(t)?t.size===-1?void 0:t.size:void 0}function ZBt(t){let e=0;for(let r of t){let i=XBt(r);if(i===void 0)return;e+=i}return e}async function evt(t,e,r){let i=[Wo(`--${r}`,"utf-8"),...e.flatMap(n=>[Wo(`\r
|
||||
`,"utf-8"),Wo(KBt(n.headers),"utf-8"),Wo(`\r
|
||||
`,"utf-8"),n.body,Wo(`\r
|
||||
--${r}`,"utf-8")]),Wo(`--\r
|
||||
\r
|
||||
`,"utf-8")],s=qBt(i);s&&t.headers.set("Content-Length",s),t.body=await B_e(i)}var Ex="multipartPolicy",HBt=70,jBt=new Set("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'()+,-./:=?");function zBt(t){if(t.length>HBt)throw new Error(`Multipart boundary "${t}" exceeds maximum length of 70 characters`);if(Array.from(t).some(e=>!jBt.has(e)))throw new Error(`Multipart boundary "${t}" contains invalid characters`)}function jP(){return{name:Ex,async sendRequest(t,e){if(!t.multipartBody)return e(t);if(t.body)throw new Error("multipartBody and regular body cannot be set at the same time");let r=t.multipartBody.boundary,i=t.headers.get("Content-Type")??"multipart/mixed",s=i.match(/^(multipart\/[^ ;]+)(?:; *boundary=(.+))?$/);if(!s)throw new Error(`Got multipart request body, but content-type header was not multipart: ${i}`);let[,n,o]=s;if(o&&r&&o!==r)throw new Error(`Multipart boundary was specified as ${o} in the header, but got ${r} in the request body`);return r??=o,r?zBt(r):r=MBt(),t.headers.set("Content-Type",`${n}; boundary=${r}`),await GBt(t,t.multipartBody.parts,r),t.multipartBody=void 0,e(t)}}}function zP(){return mP()}var v_e=hP({logLevelEnvVarName:"AZURE_LOG_LEVEL",namespace:"azure"}),p1r=v_e.logger;function af(t){return v_e.createClientLogger(t)}var cf=af("core-rest-pipeline");function a$(t={}){return wP({logger:cf.info,...t})}var c$=CP;function u$(t={}){return IP(t)}var VP=k(require("node:os"),1),$P=k(require("node:process"),1);function x_e(){return"User-Agent"}async function __e(t){if($P.default&&$P.default.versions){let e=`${VP.default.type()} ${VP.default.release()}; ${VP.default.arch()}`,r=$P.default.versions;r.bun?t.set("Bun",`${r.bun} (${e})`):r.deno?t.set("Deno",`${r.deno} (${e})`):r.node&&t.set("Node",`${r.node} (${e})`)}}var WP="1.22.2";function ZBt(t){let e=[];for(let[r,i]of t){let s=i?`${r}/${i}`:r;e.push(s)}return e.join(" ")}function R_e(){return x_e()}async function JP(t){let e=new Map;e.set("core-rest-pipeline",WP),await __e(e);let r=ZBt(e);return t?`${t} ${r}`:r}var T_e=R_e(),N_e="userAgentPolicy";function l$(t={}){let e=JP(t.userAgentPrefix);return{name:N_e,async sendRequest(r,i){return r.headers.has(T_e)||r.headers.set(T_e,await e),i(r)}}}var Ga=class extends Error{constructor(e){super(e),this.name="AbortError"}};function f$(t,e){let{cleanupBeforeAbort:r,abortSignal:i,abortErrorMsg:s}=e??{};return new Promise((n,o)=>{function a(){o(new Ga(s??"The operation was aborted."))}function c(){i?.removeEventListener("abort",u)}function u(){r?.(),c(),a()}if(i?.aborted)return a();try{t(l=>{c(),n(l)},l=>{c(),o(l)})}catch(l){o(l)}i?.addEventListener("abort",u)})}var svt="The delay was aborted.";function bx(t,e){let r,{abortSignal:i,abortErrorMsg:s}=e??{};return f$(n=>{r=setTimeout(n,t)},{cleanupBeforeAbort:()=>clearTimeout(r),abortSignal:i,abortErrorMsg:s??svt})}function Dm(t){if(ny(t))return t.message;{let e;try{typeof t=="object"&&t?e=JSON.stringify(t):e=String(t)}catch{e="[unable to stringify input]"}return`Unknown error ${e}`}}function D_e(t){return ny(t)}function Aw(){return sy()}var Kt=cy;var O_e=Symbol("rawContent");function d$(t){return typeof t[O_e]=="function"}function P_e(t){return d$(t)?t[O_e]():t}var YP=Ex;function p$(){let t=jP();return{name:YP,sendRequest:async(e,r)=>{if(e.multipartBody)for(let i of e.multipartBody.parts)d$(i.body)&&(i.body=P_e(i.body));return t.sendRequest(e,r)}}}var m$=SP;function A$(){return BP()}function g$(t={}){return _P(t)}function y$(){return RP()}function Om(t){return r$(t)}function E$(t,e){return FP(t,e)}var Q_e="setClientRequestIdPolicy";function b$(t="x-ms-client-request-id"){return{name:Q_e,async sendRequest(e,r){return e.headers.has(t)||e.headers.set(t,e.requestId),r(e)}}}function w$(t){return UP(t)}function C$(t){return qP(t)}var gw={span:Symbol.for("@azure/core-tracing span"),namespace:Symbol.for("@azure/core-tracing namespace")};function k_e(t={}){let e=new I$(t.parentContext);return t.span&&(e=e.setValue(gw.span,t.span)),t.namespace&&(e=e.setValue(gw.namespace,t.namespace)),e}var I$=class t{_contextMap;constructor(e){this._contextMap=e instanceof t?new Map(e._contextMap):new Map}setValue(e,r){let i=new t(this);return i._contextMap.set(e,r),i}getValue(e){return this._contextMap.get(e)}deleteValue(e){let r=new t(this);return r._contextMap.delete(e),r}};var M_e=k(L_e(),1),XP=M_e.state;function nvt(){return{end:()=>{},isRecording:()=>!1,recordException:()=>{},setAttribute:()=>{},setStatus:()=>{},addEvent:()=>{}}}function ovt(){return{createRequestHeaders:()=>({}),parseTraceparentHeader:()=>{},startSpan:(t,e)=>({span:nvt(),tracingContext:k_e({parentContext:e.tracingContext})}),withContext(t,e,...r){return e(...r)}}}function wx(){return XP.instrumenterImplementation||(XP.instrumenterImplementation=ovt()),XP.instrumenterImplementation}function Cx(t){let{namespace:e,packageName:r,packageVersion:i}=t;function s(u,l,f){let h=wx().startSpan(u,{...f,packageName:r,packageVersion:i,tracingContext:l?.tracingOptions?.tracingContext}),d=h.tracingConte
Line truncated
|
||||
`&&t[n]!=="\r";n++)c+=t[n];if(c=c.trim(),c[c.length-1]==="/"&&(c=c.substring(0,c.length-1),n--),!_xt(c)){let f;return c.trim().length===0?f="Invalid space after '<'.":f="Tag '"+c+"' is an invalid name.",Ci("InvalidTag",f,ao(t,n))}let u=Ixt(t,n);if(u===!1)return Ci("InvalidAttr","Attributes for '"+c+"' have open quote.",ao(t,n));let l=u.value;if(n=u.index,l[l.length-1]==="/"){let f=n-l.length;l=l.substring(0,l.length-1);let h=ERe(l,e);if(h===!0)i=!0;else return Ci(h.err.code,h.err.msg,ao(t,f+h.err.line))}else if(a)if(u.tagClosed){if(l.trim().length>0)return Ci("InvalidTag","Closing tag '"+c+"' can't have attributes or invalid starting.",ao(t,o));if(r.length===0)return Ci("InvalidTag","Closing tag '"+c+"' has not been opened.",ao(t,o));{let f=r.pop();if(c!==f.tagName){let h=ao(t,f.tagStartPos);return Ci("InvalidTag","Expected closing tag '"+f.tagName+"' (opened in line "+h.line+", col "+h.col+") instead of closing tag '"+c+"'.",ao(t,o))}r.length==0&&(s=!0)}}else return Ci("InvalidTag","Closing tag '"+c+"' doesn't have proper closing.",ao(t,n));else{let f=ERe(l,e);if(f!==!0)return Ci(f.err.code,f.err.msg,ao(t,n-l.length+f.err.line));if(s===!0)return Ci("InvalidXml","Multiple possible root nodes found.",ao(t,n));e.unpairedTags.indexOf(c)!==-1||r.push({tagName:c,tagStartPos:o}),i=!0}for(n++;n<t.length;n++)if(t[n]==="<")if(t[n+1]==="!"){n++,n=yRe(t,n);continue}else if(t[n+1]==="?"){if(n=gRe(t,++n),n.err)return n}else break;else if(t[n]==="&"){let f=vxt(t,n);if(f==-1)return Ci("InvalidChar","char '&' is not expected.",ao(t,n));n=f}else if(s===!0&&!ARe(t[n]))return Ci("InvalidXml","Extra text at the end",ao(t,n));t[n]==="<"&&n--}}else{if(ARe(t[n]))continue;return Ci("InvalidChar","char '"+t[n]+"' is not expected.",ao(t,n))}if(i){if(r.length==1)return Ci("InvalidTag","Unclosed tag '"+r[0].tagName+"'.",ao(t,r[0].tagStartPos));if(r.length>0)return Ci("InvalidXml","Invalid '"+JSON.stringify(r.map(n=>n.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}else return Ci("InvalidXml","Start tag expected.",1);return!0}function ARe(t){return t===" "||t===" "||t===`
|
||||
`||t==="\r"}function gRe(t,e){let r=e;for(;e<t.length;e++)if(t[e]=="?"||t[e]==" "){let i=t.substr(r,e-r);if(e>5&&i==="xml")return Ci("InvalidXml","XML declaration allowed only at the start of the document.",ao(t,e));if(t[e]=="?"&&t[e+1]==">"){e++;break}else continue}return e}function yRe(t,e){if(t.length>e+5&&t[e+1]==="-"&&t[e+2]==="-"){for(e+=3;e<t.length;e++)if(t[e]==="-"&&t[e+1]==="-"&&t[e+2]===">"){e+=2;break}}else if(t.length>e+8&&t[e+1]==="D"&&t[e+2]==="O"&&t[e+3]==="C"&&t[e+4]==="T"&&t[e+5]==="Y"&&t[e+6]==="P"&&t[e+7]==="E"){let r=1;for(e+=8;e<t.length;e++)if(t[e]==="<")r++;else if(t[e]===">"&&(r--,r===0))break}else if(t.length>e+9&&t[e+1]==="["&&t[e+2]==="C"&&t[e+3]==="D"&&t[e+4]==="A"&&t[e+5]==="T"&&t[e+6]==="A"&&t[e+7]==="["){for(e+=8;e<t.length;e++)if(t[e]==="]"&&t[e+1]==="]"&&t[e+2]===">"){e+=2;break}}return e}var wxt='"',Cxt="'";function Ixt(t,e){let r="",i="",s=!1;for(;e<t.length;e++){if(t[e]===wxt||t[e]===Cxt)i===""?i=t[e]:i!==t[e]||(i="");else if(t[e]===">"&&i===""){s=!0;break}r+=t[e]}return i!==""?!1:{value:r,index:e,tagClosed:s}}var Sxt=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function ERe(t,e){let r=aQ(t,Sxt),i={};for(let s=0;s<r.length;s++){if(r[s][1].length===0)return Ci("InvalidAttr","Attribute '"+r[s][2]+"' has no space in starting.",Dx(r[s]));if(r[s][3]!==void 0&&r[s][4]===void 0)return Ci("InvalidAttr","Attribute '"+r[s][2]+"' is without value.",Dx(r[s]));if(r[s][3]===void 0&&!e.allowBooleanAttributes)return Ci("InvalidAttr","boolean attribute '"+r[s][2]+"' is not allowed.",Dx(r[s]));let n=r[s][2];if(!xxt(n))return Ci("InvalidAttr","Attribute '"+n+"' is an invalid name.",Dx(r[s]));if(!Object.prototype.hasOwnProperty.call(i,n))i[n]=1;else return Ci("InvalidAttr","Attribute '"+n+"' is repeated.",Dx(r[s]))}return!0}function Bxt(t,e){let r=/\d/;for(t[e]==="x"&&(e++,r=/[\da-fA-F]/);e<t.length;e++){if(t[e]===";")return e;if(!t[e].match(r))break}return-1}function vxt(t,e){if(e++,t[e]===";")return-1;if(t[e]==="#")return e++,Bxt(t,e);let r=0;for(;e<t.length;e++,r++)if(!(t[e].match(/\w/)&&r<20)){if(t[e]===";")break;return-1}return e}function Ci(t,e,r){return{err:{code:t,msg:e,line:r.line||r,col:r.col}}}function xxt(t){return bw(t)}function _xt(t){return bw(t)}function ao(t,e){let r=t.substring(0,e).split(/\r?\n/);return{line:r.length,col:r[r.length-1].length+1}}function Dx(t){return t.startIndex+t[1].length}var bRe=t=>Nx.includes(t)?"__"+t:t,Rxt={preserveOrder:!1,attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,removeNSPrefix:!1,allowBooleanAttributes:!1,parseTagValue:!0,parseAttributeValue:!1,trimValues:!0,cdataPropName:!1,numberParseOptions:{hex:!0,leadingZeros:!0,eNotation:!0},tagValueProcessor:function(t,e){return e},attributeValueProcessor:function(t,e){return e},stopNodes:[],alwaysCreateTextNode:!1,isArray:()=>!1,commentPropName:!1,unpairedTags:[],processEntities:!0,htmlEntities:!1,ignoreDeclaration:!1,ignorePiTags:!1,transformTagName:!1,transformAttributeName:!1,updateTag:function(t,e,r){return t},captureMetaData:!1,maxNestedTags:100,strictReservedNames:!0,jPath:!0,onDangerousProperty:bRe};function Txt(t,e){if(typeof t!="string")return;let r=t.toLowerCase();if(Nx.some(i=>r===i.toLowerCase()))throw new Error(`[SECURITY] Invalid ${e}: "${t}" is a reserved JavaScript keyword that could cause prototype pollution`);if(cQ.some(i=>r===i.toLowerCase()))throw new Error(`[SECURITY] Invalid ${e}: "${t}" is a reserved JavaScript keyword that could cause prototype pollution`)}function wRe(t){return typeof t=="boolean"?{enabled:t,maxEntitySize:1e4,maxExpansionDepth:10,maxTotalExpansions:1e3,maxExpandedLength:1e5,maxEntityCount:100,allowedTags:null,tagFilter:null}:typeof t=="object"&&t!==null?{enabled:t.enabled!==!1,maxEntitySize:Math.max(1,t.maxEntitySize??1e4),maxExpansionDepth:Math.max(1,t.maxExpansionDepth??10),maxTotalExpansions:Math.max(1,t.maxTotalExpansions??1e3),maxExpandedLength:Math.max(1,t.maxExpandedLength??1e5),maxEntityCount:Math.max(1,t.maxEntityCount??100),allowedTags:t.allowedTags??null,tagFilter:t.tagFilter??null}:wRe(!0)}var CRe=function(t){let e=Object.assign({},Rxt,t),r=[{value:e.attributeNamePrefix,name:"attributeNamePrefix"},{value:e.attributesGroupName,name:"attributesGroupName"},{value:e.textNodeName,name:"textNodeName"},{value:e.cdataPropName,name:"cdataPropName"},{value:e.commentPropName,name:"commentPropName"}];for(let{value:i,name:s}of r)i&&Txt(i,s);return e.onDangerousProperty===null&&(e.onDangerousProperty=bRe),e.processEntities=wRe(e.processEntities),e.stopNodes&&Array.isArray(e.stopNodes)&&(e.stopNodes=e.stopNodes.map(i=>typeof i=="string"&&i.startsWith("*.")?".."+i.substring(2):i)),e};var lQ;typeof Symbol!="function"?lQ="@@xmlMetadata":lQ=Symbol("XML Node Metadata");var Ko=class{constructor(e){this.tagname=e,this.child=[],this[":@"]=Object.create(null)}add(e,r){e==="__proto__"&&(e="#__proto__"),this.child.push({[e]:r})}addChild(e,r){e.tagname==="__proto__"&&(e.tagname="#__proto__"),e[":@"]&&ObjLine truncated
|
||||
`);let e=new Ko("!xml"),r=e,i="";this.matcher.reset(),this.entityExpansionCount=0,this.currentExpandedLength=0;let s=new Px(this.options.processEntities);for(let n=0;n<t.length;n++)if(t[n]==="<")if(t[n+1]==="/"){let a=py(t,">",n,"Closing Tag is not closed."),c=t.substring(n+2,a).trim();if(this.options.removeNSPrefix){let l=c.indexOf(":");l!==-1&&(c=c.substr(l+1))}c=H$(this.options.transformTagName,c,"",this.options).tagName,r&&(i=this.saveTextToParentTag(i,r,this.readonlyMatcher));let u=this.matcher.getCurrentTag();if(c&&this.options.unpairedTags.indexOf(c)!==-1)throw new Error(`Unpaired tag can not be used as closing tag: </${c}>`);u&&this.options.unpairedTags.indexOf(u)!==-1&&(this.matcher.pop(),this.tagsNodeStack.pop()),this.matcher.pop(),this.isCurrentNodeStopNode=!1,r=this.tagsNodeStack.pop(),i="",n=a}else if(t[n+1]==="?"){let a=j$(t,n,!1,"?>");if(!a)throw new Error("Pi Tag is not closed.");if(i=this.saveTextToParentTag(i,r,this.readonlyMatcher),!(this.options.ignoreDeclaration&&a.tagName==="?xml"||this.options.ignorePiTags)){let c=new Ko(a.tagName);c.add(this.options.textNodeName,""),a.tagName!==a.tagExp&&a.attrExpPresent&&(c[":@"]=this.buildAttributesMap(a.tagExp,this.matcher,a.tagName)),this.addChild(r,c,this.readonlyMatcher,n)}n=a.closeIndex+1}else if(t.substr(n+1,3)==="!--"){let a=py(t,"-->",n+4,"Comment is not closed.");if(this.options.commentPropName){let c=t.substring(n+4,a-2);i=this.saveTextToParentTag(i,r,this.readonlyMatcher),r.add(this.options.commentPropName,[{[this.options.textNodeName]:c}])}n=a}else if(t.substr(n+1,2)==="!D"){let a=s.readDocType(t,n);this.docTypeEntities=a.entities,n=a.i}else if(t.substr(n+1,2)==="!["){let a=py(t,"]]>",n,"CDATA is not closed.")-2,c=t.substring(n+9,a);i=this.saveTextToParentTag(i,r,this.readonlyMatcher);let u=this.parseTextData(c,r.tagname,this.readonlyMatcher,!0,!1,!0,!0);u==null&&(u=""),this.options.cdataPropName?r.add(this.options.cdataPropName,[{[this.options.textNodeName]:c}]):r.add(this.options.textNodeName,u),n=a+2}else{let a=j$(t,n,this.options.removeNSPrefix);if(!a){let C=t.substring(Math.max(0,n-50),Math.min(t.length,n+50));throw new Error(`readTagExp returned undefined at position ${n}. Context: "${C}"`)}let c=a.tagName,u=a.rawTagName,l=a.tagExp,f=a.attrExpPresent,h=a.closeIndex;if({tagName:c,tagExp:l}=H$(this.options.transformTagName,c,l,this.options),this.options.strictReservedNames&&(c===this.options.commentPropName||c===this.options.cdataPropName||c===this.options.textNodeName||c===this.options.attributesGroupName))throw new Error(`Invalid tag name: ${c}`);r&&i&&r.tagname!=="!xml"&&(i=this.saveTextToParentTag(i,r,this.readonlyMatcher,!1));let d=r;d&&this.options.unpairedTags.indexOf(d.tagname)!==-1&&(r=this.tagsNodeStack.pop(),this.matcher.pop());let m=!1;l.length>0&&l.lastIndexOf("/")===l.length-1&&(m=!0,c[c.length-1]==="/"?(c=c.substr(0,c.length-1),l=c):l=l.substr(0,l.length-1),f=c!==l);let A=null,y={},g;g=qxt(u),c!==e.tagname&&this.matcher.push(c,{},g),c!==l&&f&&(A=this.buildAttributesMap(l,this.matcher,c),A&&(y=Uxt(A,this.options))),c!==e.tagname&&(this.isCurrentNodeStopNode=this.isItStopNode(this.stopNodeExpressions,this.matcher));let E=n;if(this.isCurrentNodeStopNode){let C="";if(m)n=a.closeIndex;else if(this.options.unpairedTags.indexOf(c)!==-1)n=a.closeIndex;else{let D=this.readStopNodeData(t,u,h+1);if(!D)throw new Error(`Unexpected end of ${u}`);n=D.i,C=D.tagContent}let S=new Ko(c);A&&(S[":@"]=A),S.add(this.options.textNodeName,C),this.matcher.pop(),this.isCurrentNodeStopNode=!1,this.addChild(r,S,this.readonlyMatcher,E)}else{if(m){({tagName:c,tagExp:l}=H$(this.options.transformTagName,c,l,this.options));let C=new Ko(c);A&&(C[":@"]=A),this.addChild(r,C,this.readonlyMatcher,E),this.matcher.pop(),this.isCurrentNodeStopNode=!1}else if(this.options.unpairedTags.indexOf(c)!==-1){let C=new Ko(c);A&&(C[":@"]=A),this.addChild(r,C,this.readonlyMatcher,E),this.matcher.pop(),this.isCurrentNodeStopNode=!1,n=a.closeIndex;continue}else{let C=new Ko(c);if(this.tagsNodeStack.length>this.options.maxNestedTags)throw new Error("Maximum nested tags exceeded");this.tagsNodeStack.push(r),A&&(C[":@"]=A),this.addChild(r,C,this.readonlyMatcher,E),r=C}i="",n=h}}else i+=t[n];return e.child};function Wxt(t,e,r,i){this.options.captureMetaData||(i=void 0);let s=this.options.jPath?r.toString():r,n=this.options.updateTag(e.tagname,s,e[":@"]);n===!1||(typeof n=="string"&&(e.tagname=n),t.addChild(e,i))}function Jxt(t,e,r){let i=this.options.processEntities;if(!i||!i.enabled)return t;if(i.allowedTags){let s=this.options.jPath?r.toString():r;if(!(Array.isArray(i.allowedTags)?i.allowedTags.includes(e):i.allowedTags(e,s)))return t}if(i.tagFilter){let s=this.options.jPath?r.toString():r;if(!i.tagFilter(e,s))return t}for(let s of Object.keys(this.docTypeEntities)){let n=this.docTypeEntities[s],o=t.match(n.regx);if(o){if(this.entityExpansionCount+=o.length,i.maxTotalExpansions&&this.entityExpansionCount>i.maxTotalExpansions)throw new Error(`Entity expansion limit exceeded
Line truncated
|
||||
`;function J$(t,e){let r="";e.format&&e.indentBy.length>0&&(r=s_t);let i=[];if(e.stopNodes&&Array.isArray(e.stopNodes))for(let n=0;n<e.stopNodes.length;n++){let o=e.stopNodes[n];typeof o=="string"?i.push(new za(o)):o instanceof za&&i.push(o)}let s=new ff;return xRe(t,e,r,s,i)}function xRe(t,e,r,i,s){let n="",o=!1;if(e.maxNestedTags&&i.getDepth()>e.maxNestedTags)throw new Error("Maximum nested tags exceeded");if(!Array.isArray(t)){if(t!=null){let a=t.toString();return a=W$(a,e),a}return""}for(let a=0;a<t.length;a++){let c=t[a],u=RRe(c);if(u===void 0)continue;let l=n_t(c[":@"],e);i.push(u,l);let f=a_t(i,s);if(u===e.textNodeName){let y=c[u];f||(y=e.tagValueProcessor(u,y),y=W$(y,e)),o&&(n+=r),n+=y,o=!1,i.pop();continue}else if(u===e.cdataPropName){o&&(n+=r),n+=`<![CDATA[${c[u][0][e.textNodeName]}]]>`,o=!1,i.pop();continue}else if(u===e.commentPropName){n+=r+`<!--${c[u][0][e.textNodeName]}-->`,o=!0,i.pop();continue}else if(u[0]==="?"){let y=vRe(c[":@"],e,f),g=u==="?xml"?"":r,E=c[u][0][e.textNodeName];E=E.length!==0?" "+E:"",n+=g+`<${u}${E}${y}?>`,o=!0,i.pop();continue}let h=r;h!==""&&(h+=e.indentBy);let d=vRe(c[":@"],e,f),m=r+`<${u}${d}`,A;f?A=_Re(c[u],e):A=xRe(c[u],e,h,i,s),e.unpairedTags.indexOf(u)!==-1?e.suppressUnpairedNode?n+=m+">":n+=m+"/>":(!A||A.length===0)&&e.suppressEmptyNode?n+=m+"/>":A&&A.endsWith(">")?n+=m+`>${A}${r}</${u}>`:(n+=m+">",A&&r!==""&&(A.includes("/>")||A.includes("</"))?n+=r+e.indentBy+A+r:n+=A,n+=`</${u}>`),o=!0,i.pop()}return n}function n_t(t,e){if(!t||e.ignoreAttributes)return null;let r={},i=!1;for(let s in t){if(!Object.prototype.hasOwnProperty.call(t,s))continue;let n=s.startsWith(e.attributeNamePrefix)?s.substr(e.attributeNamePrefix.length):s;r[n]=t[s],i=!0}return i?r:null}function _Re(t,e){if(!Array.isArray(t))return t!=null?t.toString():"";let r="";for(let i=0;i<t.length;i++){let s=t[i],n=RRe(s);if(n===e.textNodeName)r+=s[n];else if(n===e.cdataPropName)r+=s[n][0][e.textNodeName];else if(n===e.commentPropName)r+=s[n][0][e.textNodeName];else{if(n&&n[0]==="?")continue;if(n){let o=o_t(s[":@"],e),a=_Re(s[n],e);!a||a.length===0?r+=`<${n}${o}/>`:r+=`<${n}${o}>${a}</${n}>`}}}return r}function o_t(t,e){let r="";if(t&&!e.ignoreAttributes)for(let i in t){if(!Object.prototype.hasOwnProperty.call(t,i))continue;let s=t[i];s===!0&&e.suppressBooleanAttributes?r+=` ${i.substr(e.attributeNamePrefix.length)}`:r+=` ${i.substr(e.attributeNamePrefix.length)}="${s}"`}return r}function RRe(t){let e=Object.keys(t);for(let r=0;r<e.length;r++){let i=e[r];if(Object.prototype.hasOwnProperty.call(t,i)&&i!==":@")return i}}function vRe(t,e,r){let i="";if(t&&!e.ignoreAttributes)for(let s in t){if(!Object.prototype.hasOwnProperty.call(t,s))continue;let n;r?n=t[s]:(n=e.attributeValueProcessor(s,t[s]),n=W$(n,e)),n===!0&&e.suppressBooleanAttributes?i+=` ${s.substr(e.attributeNamePrefix.length)}`:i+=` ${s.substr(e.attributeNamePrefix.length)}="${n}"`}return i}function a_t(t,e){if(!e||e.length===0)return!1;for(let r=0;r<e.length;r++)if(t.matches(e[r]))return!0;return!1}function W$(t,e){if(t&&t.length>0&&e.processEntities)for(let r=0;r<e.entities.length;r++){let i=e.entities[r];t=t.replace(i.regex,i.val)}return t}function Y$(t){return typeof t=="function"?t:Array.isArray(t)?e=>{for(let r of t)if(typeof r=="string"&&e===r||r instanceof RegExp&&r.test(e))return!0}:()=>!1}var c_t={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:" ",suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:function(t,e){return e},attributeValueProcessor:function(t,e){return e},preserveOrder:!1,commentPropName:!1,unpairedTags:[],entities:[{regex:new RegExp("&","g"),val:"&"},{regex:new RegExp(">","g"),val:">"},{regex:new RegExp("<","g"),val:"<"},{regex:new RegExp("'","g"),val:"'"},{regex:new RegExp('"',"g"),val:"""}],processEntities:!0,stopNodes:[],oneListGroup:!1,maxNestedTags:100,jPath:!0};function Zo(t){if(this.options=Object.assign({},c_t,t),this.options.stopNodes&&Array.isArray(this.options.stopNodes)&&(this.options.stopNodes=this.options.stopNodes.map(e=>typeof e=="string"&&e.startsWith("*.")?".."+e.substring(2):e)),this.stopNodeExpressions=[],this.options.stopNodes&&Array.isArray(this.options.stopNodes))for(let e=0;e<this.options.stopNodes.length;e++){let r=this.options.stopNodes[e];typeof r=="string"?this.stopNodeExpressions.push(new za(r)):r instanceof za&&this.stopNodeExpressions.push(r)}this.options.ignoreAttributes===!0||this.options.attributesGroupName?this.isAttribute=function(){return!1}:(this.ignoreAttributesFn=Y$(this.options.ignoreAttributes),this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=f_t),this.processTextOrObjNode=u_t,this.options.format?(this.indentate=l_t,this.tagEndChar=`>
|
||||
`,"utf-8")],s=ZBt(i);s&&t.headers.set("Content-Length",s),t.body=await P_e(i)}var Cx="multipartPolicy",tvt=70,rvt=new Set("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'()+,-./:=?");function ivt(t){if(t.length>tvt)throw new Error(`Multipart boundary "${t}" exceeds maximum length of 70 characters`);if(Array.from(t).some(e=>!rvt.has(e)))throw new Error(`Multipart boundary "${t}" contains invalid characters`)}function $P(){return{name:Cx,async sendRequest(t,e){if(!t.multipartBody)return e(t);if(t.body)throw new Error("multipartBody and regular body cannot be set at the same time");let r=t.multipartBody.boundary,i=t.headers.get("Content-Type")??"multipart/mixed",s=i.match(/^(multipart\/[^ ;]+)(?:; *boundary=(.+))?$/);if(!s)throw new Error(`Got multipart request body, but content-type header was not multipart: ${i}`);let[,n,o]=s;if(o&&r&&o!==r)throw new Error(`Multipart boundary was specified as ${o} in the header, but got ${r} in the request body`);return r??=o,r?ivt(r):r=YBt(),t.headers.set("Content-Type",`${n}; boundary=${r}`),await evt(t,t.multipartBody.parts,r),t.multipartBody=void 0,e(t)}}}function WP(){return yP()}var Q_e=mP({logLevelEnvVarName:"AZURE_LOG_LEVEL",namespace:"azure"}),O2r=Q_e.logger;function of(t){return Q_e.createClientLogger(t)}var af=of("core-rest-pipeline");function d$(t={}){return SP({logger:af.info,...t})}var p$=BP;function m$(t={}){return vP(t)}var JP=k(require("node:os"),1),YP=k(require("node:process"),1);function k_e(){return"User-Agent"}async function L_e(t){if(YP.default&&YP.default.versions){let e=`${JP.default.type()} ${JP.default.release()}; ${JP.default.arch()}`,r=YP.default.versions;r.bun?t.set("Bun",`${r.bun} (${e})`):r.deno?t.set("Deno",`${r.deno} (${e})`):r.node&&t.set("Node",`${r.node} (${e})`)}}var KP="1.22.2";function fvt(t){let e=[];for(let[r,i]of t){let s=i?`${r}/${i}`:r;e.push(s)}return e.join(" ")}function F_e(){return k_e()}async function XP(t){let e=new Map;e.set("core-rest-pipeline",KP),await L_e(e);let r=fvt(e);return t?`${t} ${r}`:r}var M_e=F_e(),U_e="userAgentPolicy";function A$(t={}){let e=XP(t.userAgentPrefix);return{name:U_e,async sendRequest(r,i){return r.headers.has(M_e)||r.headers.set(M_e,await e),i(r)}}}var Ga=class extends Error{constructor(e){super(e),this.name="AbortError"}};function g$(t,e){let{cleanupBeforeAbort:r,abortSignal:i,abortErrorMsg:s}=e??{};return new Promise((n,o)=>{function a(){o(new Ga(s??"The operation was aborted."))}function c(){i?.removeEventListener("abort",u)}function u(){r?.(),c(),a()}if(i?.aborted)return a();try{t(l=>{c(),n(l)},l=>{c(),o(l)})}catch(l){o(l)}i?.addEventListener("abort",u)})}var Avt="The delay was aborted.";function Ix(t,e){let r,{abortSignal:i,abortErrorMsg:s}=e??{};return g$(n=>{r=setTimeout(n,t)},{cleanupBeforeAbort:()=>clearTimeout(r),abortSignal:i,abortErrorMsg:s??Avt})}function Tm(t){if(oy(t))return t.message;{let e;try{typeof t=="object"&&t?e=JSON.stringify(t):e=String(t)}catch{e="[unable to stringify input]"}return`Unknown error ${e}`}}function q_e(t){return oy(t)}function yw(){return ny()}var Kt=uy;var G_e=Symbol("rawContent");function E$(t){return typeof t[G_e]=="function"}function H_e(t){return E$(t)?t[G_e]():t}var ZP=Cx;function b$(){let t=$P();return{name:ZP,sendRequest:async(e,r)=>{if(e.multipartBody)for(let i of e.multipartBody.parts)E$(i.body)&&(i.body=H_e(i.body));return t.sendRequest(e,r)}}}var w$=xP;function C$(){return _P()}function I$(t={}){return TP(t)}function S$(){return DP()}function Dm(t){return c$(t)}function B$(t,e){return GP(t,e)}var j_e="setClientRequestIdPolicy";function v$(t="x-ms-client-request-id"){return{name:j_e,async sendRequest(e,r){return e.headers.has(t)||e.headers.set(t,e.requestId),r(e)}}}function x$(t){return HP(t)}function _$(t){return jP(t)}var Ew={span:Symbol.for("@azure/core-tracing span"),namespace:Symbol.for("@azure/core-tracing namespace")};function z_e(t={}){let e=new R$(t.parentContext);return t.span&&(e=e.setValue(Ew.span,t.span)),t.namespace&&(e=e.setValue(Ew.namespace,t.namespace)),e}var R$=class t{_contextMap;constructor(e){this._contextMap=e instanceof t?new Map(e._contextMap):new Map}setValue(e,r){let i=new t(this);return i._contextMap.set(e,r),i}getValue(e){return this._contextMap.get(e)}deleteValue(e){let r=new t(this);return r._contextMap.delete(e),r}};var $_e=k(V_e(),1),tQ=$_e.state;function gvt(){return{end:()=>{},isRecording:()=>!1,recordException:()=>{},setAttribute:()=>{},setStatus:()=>{},addEvent:()=>{}}}function yvt(){return{createRequestHeaders:()=>({}),parseTraceparentHeader:()=>{},startSpan:(t,e)=>({span:gvt(),tracingContext:z_e({parentContext:e.tracingContext})}),withContext(t,e,...r){return e(...r)}}}function Sx(){return tQ.instrumenterImplementation||(tQ.instrumenterImplementation=yvt()),tQ.instrumenterImplementation}function Bx(t){let{namespace:e,packageName:r,packageVersion:i}=t;function s(u,l,f){let h=Sx().startSpan(u,{...f,packageName:r,packageVersion:i,tracingContext:l?.tracingOptions?.tracingContext}),d=h.tracingConte
Line truncated
|
||||
`&&t[n]!=="\r";n++)c+=t[n];if(c=c.trim(),c[c.length-1]==="/"&&(c=c.substring(0,c.length-1),n--),!Uxt(c)){let f;return c.trim().length===0?f="Invalid space after '<'.":f="Tag '"+c+"' is an invalid name.",Ci("InvalidTag",f,ao(t,n))}let u=Qxt(t,n);if(u===!1)return Ci("InvalidAttr","Attributes for '"+c+"' have open quote.",ao(t,n));let l=u.value;if(n=u.index,l[l.length-1]==="/"){let f=n-l.length;l=l.substring(0,l.length-1);let h=_Re(l,e);if(h===!0)i=!0;else return Ci(h.err.code,h.err.msg,ao(t,f+h.err.line))}else if(a)if(u.tagClosed){if(l.trim().length>0)return Ci("InvalidTag","Closing tag '"+c+"' can't have attributes or invalid starting.",ao(t,o));if(r.length===0)return Ci("InvalidTag","Closing tag '"+c+"' has not been opened.",ao(t,o));{let f=r.pop();if(c!==f.tagName){let h=ao(t,f.tagStartPos);return Ci("InvalidTag","Expected closing tag '"+f.tagName+"' (opened in line "+h.line+", col "+h.col+") instead of closing tag '"+c+"'.",ao(t,o))}r.length==0&&(s=!0)}}else return Ci("InvalidTag","Closing tag '"+c+"' doesn't have proper closing.",ao(t,n));else{let f=_Re(l,e);if(f!==!0)return Ci(f.err.code,f.err.msg,ao(t,n-l.length+f.err.line));if(s===!0)return Ci("InvalidXml","Multiple possible root nodes found.",ao(t,n));e.unpairedTags.indexOf(c)!==-1||r.push({tagName:c,tagStartPos:o}),i=!0}for(n++;n<t.length;n++)if(t[n]==="<")if(t[n+1]==="!"){n++,n=xRe(t,n);continue}else if(t[n+1]==="?"){if(n=vRe(t,++n),n.err)return n}else break;else if(t[n]==="&"){let f=Fxt(t,n);if(f==-1)return Ci("InvalidChar","char '&' is not expected.",ao(t,n));n=f}else if(s===!0&&!BRe(t[n]))return Ci("InvalidXml","Extra text at the end",ao(t,n));t[n]==="<"&&n--}}else{if(BRe(t[n]))continue;return Ci("InvalidChar","char '"+t[n]+"' is not expected.",ao(t,n))}if(i){if(r.length==1)return Ci("InvalidTag","Unclosed tag '"+r[0].tagName+"'.",ao(t,r[0].tagStartPos));if(r.length>0)return Ci("InvalidXml","Invalid '"+JSON.stringify(r.map(n=>n.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}else return Ci("InvalidXml","Start tag expected.",1);return!0}function BRe(t){return t===" "||t===" "||t===`
|
||||
`||t==="\r"}function vRe(t,e){let r=e;for(;e<t.length;e++)if(t[e]=="?"||t[e]==" "){let i=t.substr(r,e-r);if(e>5&&i==="xml")return Ci("InvalidXml","XML declaration allowed only at the start of the document.",ao(t,e));if(t[e]=="?"&&t[e+1]==">"){e++;break}else continue}return e}function xRe(t,e){if(t.length>e+5&&t[e+1]==="-"&&t[e+2]==="-"){for(e+=3;e<t.length;e++)if(t[e]==="-"&&t[e+1]==="-"&&t[e+2]===">"){e+=2;break}}else if(t.length>e+8&&t[e+1]==="D"&&t[e+2]==="O"&&t[e+3]==="C"&&t[e+4]==="T"&&t[e+5]==="Y"&&t[e+6]==="P"&&t[e+7]==="E"){let r=1;for(e+=8;e<t.length;e++)if(t[e]==="<")r++;else if(t[e]===">"&&(r--,r===0))break}else if(t.length>e+9&&t[e+1]==="["&&t[e+2]==="C"&&t[e+3]==="D"&&t[e+4]==="A"&&t[e+5]==="T"&&t[e+6]==="A"&&t[e+7]==="["){for(e+=8;e<t.length;e++)if(t[e]==="]"&&t[e+1]==="]"&&t[e+2]===">"){e+=2;break}}return e}var Oxt='"',Pxt="'";function Qxt(t,e){let r="",i="",s=!1;for(;e<t.length;e++){if(t[e]===Oxt||t[e]===Pxt)i===""?i=t[e]:i!==t[e]||(i="");else if(t[e]===">"&&i===""){s=!0;break}r+=t[e]}return i!==""?!1:{value:r,index:e,tagClosed:s}}var kxt=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function _Re(t,e){let r=lQ(t,kxt),i={};for(let s=0;s<r.length;s++){if(r[s][1].length===0)return Ci("InvalidAttr","Attribute '"+r[s][2]+"' has no space in starting.",Qx(r[s]));if(r[s][3]!==void 0&&r[s][4]===void 0)return Ci("InvalidAttr","Attribute '"+r[s][2]+"' is without value.",Qx(r[s]));if(r[s][3]===void 0&&!e.allowBooleanAttributes)return Ci("InvalidAttr","boolean attribute '"+r[s][2]+"' is not allowed.",Qx(r[s]));let n=r[s][2];if(!Mxt(n))return Ci("InvalidAttr","Attribute '"+n+"' is an invalid name.",Qx(r[s]));if(!Object.prototype.hasOwnProperty.call(i,n))i[n]=1;else return Ci("InvalidAttr","Attribute '"+n+"' is repeated.",Qx(r[s]))}return!0}function Lxt(t,e){let r=/\d/;for(t[e]==="x"&&(e++,r=/[\da-fA-F]/);e<t.length;e++){if(t[e]===";")return e;if(!t[e].match(r))break}return-1}function Fxt(t,e){if(e++,t[e]===";")return-1;if(t[e]==="#")return e++,Lxt(t,e);let r=0;for(;e<t.length;e++,r++)if(!(t[e].match(/\w/)&&r<20)){if(t[e]===";")break;return-1}return e}function Ci(t,e,r){return{err:{code:t,msg:e,line:r.line||r,col:r.col}}}function Mxt(t){return Cw(t)}function Uxt(t){return Cw(t)}function ao(t,e){let r=t.substring(0,e).split(/\r?\n/);return{line:r.length,col:r[r.length-1].length+1}}function Qx(t){return t.startIndex+t[1].length}var RRe=t=>Px.includes(t)?"__"+t:t,qxt={preserveOrder:!1,attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,removeNSPrefix:!1,allowBooleanAttributes:!1,parseTagValue:!0,parseAttributeValue:!1,trimValues:!0,cdataPropName:!1,numberParseOptions:{hex:!0,leadingZeros:!0,eNotation:!0},tagValueProcessor:function(t,e){return e},attributeValueProcessor:function(t,e){return e},stopNodes:[],alwaysCreateTextNode:!1,isArray:()=>!1,commentPropName:!1,unpairedTags:[],processEntities:!0,htmlEntities:!1,ignoreDeclaration:!1,ignorePiTags:!1,transformTagName:!1,transformAttributeName:!1,updateTag:function(t,e,r){return t},captureMetaData:!1,maxNestedTags:100,strictReservedNames:!0,jPath:!0,onDangerousProperty:RRe};function Gxt(t,e){if(typeof t!="string")return;let r=t.toLowerCase();if(Px.some(i=>r===i.toLowerCase()))throw new Error(`[SECURITY] Invalid ${e}: "${t}" is a reserved JavaScript keyword that could cause prototype pollution`);if(fQ.some(i=>r===i.toLowerCase()))throw new Error(`[SECURITY] Invalid ${e}: "${t}" is a reserved JavaScript keyword that could cause prototype pollution`)}function NRe(t){return typeof t=="boolean"?{enabled:t,maxEntitySize:1e4,maxExpansionDepth:10,maxTotalExpansions:1e3,maxExpandedLength:1e5,maxEntityCount:100,allowedTags:null,tagFilter:null}:typeof t=="object"&&t!==null?{enabled:t.enabled!==!1,maxEntitySize:Math.max(1,t.maxEntitySize??1e4),maxExpansionDepth:Math.max(1,t.maxExpansionDepth??10),maxTotalExpansions:Math.max(1,t.maxTotalExpansions??1e3),maxExpandedLength:Math.max(1,t.maxExpandedLength??1e5),maxEntityCount:Math.max(1,t.maxEntityCount??100),allowedTags:t.allowedTags??null,tagFilter:t.tagFilter??null}:NRe(!0)}var TRe=function(t){let e=Object.assign({},qxt,t),r=[{value:e.attributeNamePrefix,name:"attributeNamePrefix"},{value:e.attributesGroupName,name:"attributesGroupName"},{value:e.textNodeName,name:"textNodeName"},{value:e.cdataPropName,name:"cdataPropName"},{value:e.commentPropName,name:"commentPropName"}];for(let{value:i,name:s}of r)i&&Gxt(i,s);return e.onDangerousProperty===null&&(e.onDangerousProperty=RRe),e.processEntities=NRe(e.processEntities),e.stopNodes&&Array.isArray(e.stopNodes)&&(e.stopNodes=e.stopNodes.map(i=>typeof i=="string"&&i.startsWith("*.")?".."+i.substring(2):i)),e};var dQ;typeof Symbol!="function"?dQ="@@xmlMetadata":dQ=Symbol("XML Node Metadata");var Ko=class{constructor(e){this.tagname=e,this.child=[],this[":@"]=Object.create(null)}add(e,r){e==="__proto__"&&(e="#__proto__"),this.child.push({[e]:r})}addChild(e,r){e.tagname==="__proto__"&&(e.tagname="#__proto__"),e[":@"]&&ObjLine truncated
|
||||
`);let e=new Ko("!xml"),r=e,i="";this.matcher.reset(),this.entityExpansionCount=0,this.currentExpandedLength=0;let s=new Lx(this.options.processEntities);for(let n=0;n<t.length;n++)if(t[n]==="<")if(t[n+1]==="/"){let a=Ay(t,">",n,"Closing Tag is not closed."),c=t.substring(n+2,a).trim();if(this.options.removeNSPrefix){let l=c.indexOf(":");l!==-1&&(c=c.substr(l+1))}c=J$(this.options.transformTagName,c,"",this.options).tagName,r&&(i=this.saveTextToParentTag(i,r,this.readonlyMatcher));let u=this.matcher.getCurrentTag();if(c&&this.options.unpairedTags.indexOf(c)!==-1)throw new Error(`Unpaired tag can not be used as closing tag: </${c}>`);u&&this.options.unpairedTags.indexOf(u)!==-1&&(this.matcher.pop(),this.tagsNodeStack.pop()),this.matcher.pop(),this.isCurrentNodeStopNode=!1,r=this.tagsNodeStack.pop(),i="",n=a}else if(t[n+1]==="?"){let a=Y$(t,n,!1,"?>");if(!a)throw new Error("Pi Tag is not closed.");if(i=this.saveTextToParentTag(i,r,this.readonlyMatcher),!(this.options.ignoreDeclaration&&a.tagName==="?xml"||this.options.ignorePiTags)){let c=new Ko(a.tagName);c.add(this.options.textNodeName,""),a.tagName!==a.tagExp&&a.attrExpPresent&&(c[":@"]=this.buildAttributesMap(a.tagExp,this.matcher,a.tagName)),this.addChild(r,c,this.readonlyMatcher,n)}n=a.closeIndex+1}else if(t.substr(n+1,3)==="!--"){let a=Ay(t,"-->",n+4,"Comment is not closed.");if(this.options.commentPropName){let c=t.substring(n+4,a-2);i=this.saveTextToParentTag(i,r,this.readonlyMatcher),r.add(this.options.commentPropName,[{[this.options.textNodeName]:c}])}n=a}else if(t.substr(n+1,2)==="!D"){let a=s.readDocType(t,n);this.docTypeEntities=a.entities,n=a.i}else if(t.substr(n+1,2)==="!["){let a=Ay(t,"]]>",n,"CDATA is not closed.")-2,c=t.substring(n+9,a);i=this.saveTextToParentTag(i,r,this.readonlyMatcher);let u=this.parseTextData(c,r.tagname,this.readonlyMatcher,!0,!1,!0,!0);u==null&&(u=""),this.options.cdataPropName?r.add(this.options.cdataPropName,[{[this.options.textNodeName]:c}]):r.add(this.options.textNodeName,u),n=a+2}else{let a=Y$(t,n,this.options.removeNSPrefix);if(!a){let w=t.substring(Math.max(0,n-50),Math.min(t.length,n+50));throw new Error(`readTagExp returned undefined at position ${n}. Context: "${w}"`)}let c=a.tagName,u=a.rawTagName,l=a.tagExp,f=a.attrExpPresent,h=a.closeIndex;if({tagName:c,tagExp:l}=J$(this.options.transformTagName,c,l,this.options),this.options.strictReservedNames&&(c===this.options.commentPropName||c===this.options.cdataPropName||c===this.options.textNodeName||c===this.options.attributesGroupName))throw new Error(`Invalid tag name: ${c}`);r&&i&&r.tagname!=="!xml"&&(i=this.saveTextToParentTag(i,r,this.readonlyMatcher,!1));let d=r;d&&this.options.unpairedTags.indexOf(d.tagname)!==-1&&(r=this.tagsNodeStack.pop(),this.matcher.pop());let m=!1;l.length>0&&l.lastIndexOf("/")===l.length-1&&(m=!0,c[c.length-1]==="/"?(c=c.substr(0,c.length-1),l=c):l=l.substr(0,l.length-1),f=c!==l);let A=null,y={},g;g=Zxt(u),c!==e.tagname&&this.matcher.push(c,{},g),c!==l&&f&&(A=this.buildAttributesMap(l,this.matcher,c),A&&(y=Xxt(A,this.options))),c!==e.tagname&&(this.isCurrentNodeStopNode=this.isItStopNode(this.stopNodeExpressions,this.matcher));let E=n;if(this.isCurrentNodeStopNode){let w="";if(m)n=a.closeIndex;else if(this.options.unpairedTags.indexOf(c)!==-1)n=a.closeIndex;else{let D=this.readStopNodeData(t,u,h+1);if(!D)throw new Error(`Unexpected end of ${u}`);n=D.i,w=D.tagContent}let S=new Ko(c);A&&(S[":@"]=A),S.add(this.options.textNodeName,w),this.matcher.pop(),this.isCurrentNodeStopNode=!1,this.addChild(r,S,this.readonlyMatcher,E)}else{if(m){({tagName:c,tagExp:l}=J$(this.options.transformTagName,c,l,this.options));let w=new Ko(c);A&&(w[":@"]=A),this.addChild(r,w,this.readonlyMatcher,E),this.matcher.pop(),this.isCurrentNodeStopNode=!1}else if(this.options.unpairedTags.indexOf(c)!==-1){let w=new Ko(c);A&&(w[":@"]=A),this.addChild(r,w,this.readonlyMatcher,E),this.matcher.pop(),this.isCurrentNodeStopNode=!1,n=a.closeIndex;continue}else{let w=new Ko(c);if(this.tagsNodeStack.length>this.options.maxNestedTags)throw new Error("Maximum nested tags exceeded");this.tagsNodeStack.push(r),A&&(w[":@"]=A),this.addChild(r,w,this.readonlyMatcher,E),r=w}i="",n=h}}else i+=t[n];return e.child};function o_t(t,e,r,i){this.options.captureMetaData||(i=void 0);let s=this.options.jPath?r.toString():r,n=this.options.updateTag(e.tagname,s,e[":@"]);n===!1||(typeof n=="string"&&(e.tagname=n),t.addChild(e,i))}function a_t(t,e,r){let i=this.options.processEntities;if(!i||!i.enabled)return t;if(i.allowedTags){let s=this.options.jPath?r.toString():r;if(!(Array.isArray(i.allowedTags)?i.allowedTags.includes(e):i.allowedTags(e,s)))return t}if(i.tagFilter){let s=this.options.jPath?r.toString():r;if(!i.tagFilter(e,s))return t}for(let s of Object.keys(this.docTypeEntities)){let n=this.docTypeEntities[s],o=t.match(n.regx);if(o){if(this.entityExpansionCount+=o.length,i.maxTotalExpansions&&this.entityExpansionCount>i.maxTotalExpansions)throw new Error(`Entity expansion limit exceeded
Line truncated
|
||||
`;function C_t(t,e){if(!Array.isArray(t)||t.length===0)return"1.0";let r=t[0];if(iW(r)==="?xml"){let s=r[":@"];if(s){let n=e.attributeNamePrefix+"version";if(s[n])return s[n]}}return"1.0"}function MRe(t,e,r,i,s){return!r.sanitizeName||AQ(t,{xmlVersion:s})?t:r.sanitizeName(t,{isAttribute:e,matcher:i.readOnly()})}function rW(t,e){let r="";e.format&&(r=w_t);let i=[];if(e.stopNodes&&Array.isArray(e.stopNodes))for(let o=0;o<e.stopNodes.length;o++){let a=e.stopNodes[o];typeof a=="string"?i.push(new lf(a)):a instanceof lf&&i.push(a)}let s=C_t(t,e),n=new Qm;return URe(t,e,r,n,i,s)}function URe(t,e,r,i,s,n){let o="",a=!1;if(e.maxNestedTags&&i.getDepth()>e.maxNestedTags)throw new Error("Maximum nested tags exceeded");if(!Array.isArray(t)){if(t!=null){let c=t.toString();return c=tW(c,e),c}return""}for(let c=0;c<t.length;c++){let u=t[c],l=iW(u);if(l===void 0)continue;let h=l===e.textNodeName||l===e.cdataPropName||l===e.commentPropName||l[0]==="?"?l:MRe(l,!1,e,i,n),d=I_t(u[":@"],e);i.push(h,d);let m=B_t(i,s);if(h===e.textNodeName){let w=u[l];m||(w=e.tagValueProcessor(h,w),w=tW(w,e)),a&&(o+=r),o+=w,a=!1,i.pop();continue}else if(h===e.cdataPropName){a&&(o+=r);let w=u[l][0][e.textNodeName],S=mQ(w);o+=`<![CDATA[${S}]]>`,a=!1,i.pop();continue}else if(h===e.commentPropName){let w=u[l][0][e.textNodeName],S=pQ(w);o+=r+`<!--${S}-->`,a=!0,i.pop();continue}else if(h[0]==="?"){let w=FRe(u[":@"],e,m,i,n);o+=(h==="?xml"?"":r)+`<${h}${w}?>`,a=!0,i.pop();continue}let A=r;A!==""&&(A+=e.indentBy);let y=FRe(u[":@"],e,m,i,n),g=r+`<${h}${y}`,E;m?E=qRe(u[l],e):E=URe(u[l],e,A,i,s,n),e.unpairedTags.indexOf(h)!==-1?e.suppressUnpairedNode?o+=g+">":o+=g+"/>":(!E||E.length===0)&&e.suppressEmptyNode?o+=g+"/>":E&&E.endsWith(">")?o+=g+`>${E}${r}</${h}>`:(o+=g+">",E&&r!==""&&(E.includes("/>")||E.includes("</"))?o+=r+e.indentBy+E+r:o+=E,o+=`</${h}>`),a=!0,i.pop()}return o}function I_t(t,e){if(!t||e.ignoreAttributes)return null;let r={},i=!1;for(let s in t){if(!Object.prototype.hasOwnProperty.call(t,s))continue;let n=s.startsWith(e.attributeNamePrefix)?s.substr(e.attributeNamePrefix.length):s;r[n]=km(t[s]),i=!0}return i?r:null}function qRe(t,e){if(!Array.isArray(t))return t!=null?t.toString():"";let r="";for(let i=0;i<t.length;i++){let s=t[i],n=iW(s);if(n===e.textNodeName)r+=s[n];else if(n===e.cdataPropName)r+=s[n][0][e.textNodeName];else if(n===e.commentPropName)r+=s[n][0][e.textNodeName];else{if(n&&n[0]==="?")continue;if(n){let o=S_t(s[":@"],e),a=qRe(s[n],e);!a||a.length===0?r+=`<${n}${o}/>`:r+=`<${n}${o}>${a}</${n}>`}}}return r}function S_t(t,e){let r="";if(t&&!e.ignoreAttributes)for(let i in t){if(!Object.prototype.hasOwnProperty.call(t,i))continue;let s=t[i];s===!0&&e.suppressBooleanAttributes?r+=` ${i.substr(e.attributeNamePrefix.length)}`:r+=` ${i.substr(e.attributeNamePrefix.length)}="${km(s)}"`}return r}function iW(t){let e=Object.keys(t);for(let r=0;r<e.length;r++){let i=e[r];if(Object.prototype.hasOwnProperty.call(t,i)&&i!==":@")return i}}function FRe(t,e,r,i,s){let n="";if(t&&!e.ignoreAttributes)for(let o in t){if(!Object.prototype.hasOwnProperty.call(t,o))continue;let a=o.substr(e.attributeNamePrefix.length),c=r?a:MRe(a,!0,e,i,s),u;r?u=t[o]:(u=e.attributeValueProcessor(o,t[o]),u=tW(u,e)),u===!0&&e.suppressBooleanAttributes?n+=` ${c}`:n+=` ${c}="${km(u)}"`}return n}function B_t(t,e){if(!e||e.length===0)return!1;for(let r=0;r<e.length;r++)if(t.matches(e[r]))return!0;return!1}function tW(t,e){if(t&&t.length>0&&e.processEntities)for(let r=0;r<e.entities.length;r++){let i=e.entities[r];t=t.replace(i.regex,i.val)}return t}function sW(t){return typeof t=="function"?t:Array.isArray(t)?e=>{for(let r of t)if(typeof r=="string"&&e===r||r instanceof RegExp&&r.test(e))return!0}:()=>!1}var v_t={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:" ",suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:function(t,e){return e},attributeValueProcessor:function(t,e){return e},preserveOrder:!1,commentPropName:!1,unpairedTags:[],entities:[{regex:new RegExp("&","g"),val:"&"},{regex:new RegExp(">","g"),val:">"},{regex:new RegExp("<","g"),val:"<"},{regex:new RegExp("'","g"),val:"'"},{regex:new RegExp('"',"g"),val:"""}],processEntities:!0,stopNodes:[],oneListGroup:!1,maxNestedTags:100,jPath:!0,sanitizeName:!1};function Zo(t){if(this.options=Object.assign({},v_t,t),this.options.stopNodes&&Array.isArray(this.options.stopNodes)&&(this.options.stopNodes=this.options.stopNodes.map(e=>typeof e=="string"&&e.startsWith("*.")?".."+e.substring(2):e)),this.stopNodeExpressions=[],this.options.stopNodes&&Array.isArray(this.options.stopNodes))for(let e=0;e<this.options.stopNodes.length;e++){let r=this.options.stopNodes[e];typeof r=="string"?this.stopNodeExpressions.push(new lf(r)):r instanceof lf&&this.stopNodeExpressions.push(r)}this.options.ignoreAttributes===!0||this.options.attributesGroupName?this.isAttribute=function(){return!1}:(this.ignorLine truncated
|
||||
`,this.newLine=`
|
||||
`):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}Zo.prototype.build=function(t){if(this.options.preserveOrder)return J$(t,this.options);{Array.isArray(t)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(t={[this.options.arrayNodeName]:t});let e=new ff;return this.j2x(t,0,e).val}};Zo.prototype.j2x=function(t,e,r){let i="",s="";if(this.options.maxNestedTags&&r.getDepth()>=this.options.maxNestedTags)throw new Error("Maximum nested tags exceeded");let n=this.options.jPath?r.toString():r,o=this.checkStopNode(r);for(let a in t)if(Object.prototype.hasOwnProperty.call(t,a))if(typeof t[a]>"u")this.isAttribute(a)&&(s+="");else if(t[a]===null)this.isAttribute(a)||a===this.options.cdataPropName?s+="":a[0]==="?"?s+=this.indentate(e)+"<"+a+"?"+this.tagEndChar:s+=this.indentate(e)+"<"+a+"/"+this.tagEndChar;else if(t[a]instanceof Date)s+=this.buildTextValNode(t[a],a,"",e,r);else if(typeof t[a]!="object"){let c=this.isAttribute(a);if(c&&!this.ignoreAttributesFn(c,n))i+=this.buildAttrPairStr(c,""+t[a],o);else if(!c)if(a===this.options.textNodeName){let u=this.options.tagValueProcessor(a,""+t[a]);s+=this.replaceEntitiesValue(u)}else{r.push(a);let u=this.checkStopNode(r);if(r.pop(),u){let l=""+t[a];l===""?s+=this.indentate(e)+"<"+a+this.closeTag(a)+this.tagEndChar:s+=this.indentate(e)+"<"+a+">"+l+"</"+a+this.tagEndChar}else s+=this.buildTextValNode(t[a],a,"",e,r)}}else if(Array.isArray(t[a])){let c=t[a].length,u="",l="";for(let f=0;f<c;f++){let h=t[a][f];if(!(typeof h>"u"))if(h===null)a[0]==="?"?s+=this.indentate(e)+"<"+a+"?"+this.tagEndChar:s+=this.indentate(e)+"<"+a+"/"+this.tagEndChar;else if(typeof h=="object")if(this.options.oneListGroup){r.push(a);let d=this.j2x(h,e+1,r);r.pop(),u+=d.val,this.options.attributesGroupName&&h.hasOwnProperty(this.options.attributesGroupName)&&(l+=d.attrStr)}else u+=this.processTextOrObjNode(h,a,e,r);else if(this.options.oneListGroup){let d=this.options.tagValueProcessor(a,h);d=this.replaceEntitiesValue(d),u+=d}else{r.push(a);let d=this.checkStopNode(r);if(r.pop(),d){let m=""+h;m===""?u+=this.indentate(e)+"<"+a+this.closeTag(a)+this.tagEndChar:u+=this.indentate(e)+"<"+a+">"+m+"</"+a+this.tagEndChar}else u+=this.buildTextValNode(h,a,"",e,r)}}this.options.oneListGroup&&(u=this.buildObjectNode(u,a,l,e)),s+=u}else if(this.options.attributesGroupName&&a===this.options.attributesGroupName){let c=Object.keys(t[a]),u=c.length;for(let l=0;l<u;l++)i+=this.buildAttrPairStr(c[l],""+t[a][c[l]],o)}else s+=this.processTextOrObjNode(t[a],a,e,r);return{attrStr:i,val:s}};Zo.prototype.buildAttrPairStr=function(t,e,r){return r||(e=this.options.attributeValueProcessor(t,""+e),e=this.replaceEntitiesValue(e)),this.options.suppressBooleanAttributes&&e==="true"?" "+t:" "+t+'="'+e+'"'};function u_t(t,e,r,i){let s=this.extractAttributes(t);if(i.push(e,s),this.checkStopNode(i)){let a=this.buildRawContent(t),c=this.buildAttributesForStopNode(t);return i.pop(),this.buildObjectNode(a,e,c,r)}let o=this.j2x(t,r+1,i);return i.pop(),t[this.options.textNodeName]!==void 0&&Object.keys(t).length===1?this.buildTextValNode(t[this.options.textNodeName],e,o.attrStr,r,i):this.buildObjectNode(o.val,e,o.attrStr,r)}Zo.prototype.extractAttributes=function(t){if(!t||typeof t!="object")return null;let e={},r=!1;if(this.options.attributesGroupName&&t[this.options.attributesGroupName]){let i=t[this.options.attributesGroupName];for(let s in i){if(!Object.prototype.hasOwnProperty.call(i,s))continue;let n=s.startsWith(this.options.attributeNamePrefix)?s.substring(this.options.attributeNamePrefix.length):s;e[n]=i[s],r=!0}}else for(let i in t){if(!Object.prototype.hasOwnProperty.call(t,i))continue;let s=this.isAttribute(i);s&&(e[s]=t[i],r=!0)}return r?e:null};Zo.prototype.buildRawContent=function(t){if(typeof t=="string")return t;if(typeof t!="object"||t===null)return String(t);if(t[this.options.textNodeName]!==void 0)return t[this.options.textNodeName];let e="";for(let r in t){if(!Object.prototype.hasOwnProperty.call(t,r)||this.isAttribute(r)||this.options.attributesGroupName&&r===this.options.attributesGroupName)continue;let i=t[r];if(r===this.options.textNodeName)e+=i;else if(Array.isArray(i)){for(let s of i)if(typeof s=="string"||typeof s=="number")e+=`<${r}>${s}</${r}>`;else if(typeof s=="object"&&s!==null){let n=this.buildRawContent(s),o=this.buildAttributesForStopNode(s);n===""?e+=`<${r}${o}/>`:e+=`<${r}${o}>${n}</${r}>`}}else if(typeof i=="object"&&i!==null){let s=this.buildRawContent(i),n=this.buildAttributesForStopNode(i);s===""?e+=`<${r}${n}/>`:e+=`<${r}${n}>${s}</${r}>`}else e+=`<${r}>${i}</${r}>`}return e};Zo.prototype.buildAttributesForStopNode=function(t){if(!t||typeof t!="object")return"";let e="";if(this.options.attributesGroupName&&t[this.options.attributesGroupName]){let r=t[this.options.attributesGroupName];for(let i in r){if(!Object.prototype.hasOwnProperty.call(r,i))continue;let s=i.startsWith(this.options.attributeNamePrefix)?i.substring(this.options.attributeNamePrefix.length):
Line truncated
|
||||
`):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}function x_t(t,e){let r=t["?xml"];if(r&&typeof r=="object"){if(e.attributesGroupName&&r[e.attributesGroupName]){let s=r[e.attributesGroupName][e.attributeNamePrefix+"version"];if(s)return s}let i=r[e.attributeNamePrefix+"version"];if(i)return i}return"1.0"}function nW(t,e,r,i,s){return!r.sanitizeName||AQ(t,{xmlVersion:s})?t:r.sanitizeName(t,{isAttribute:e,matcher:i.readOnly()})}Zo.prototype.build=function(t){if(this.options.preserveOrder)return rW(t,this.options);{Array.isArray(t)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(t={[this.options.arrayNodeName]:t});let e=new Qm,r=x_t(t,this.options);return this.j2x(t,0,e,r).val}};Zo.prototype.j2x=function(t,e,r,i){let s="",n="";if(this.options.maxNestedTags&&r.getDepth()>=this.options.maxNestedTags)throw new Error("Maximum nested tags exceeded");let o=this.options.jPath?r.toString():r,a=this.checkStopNode(r);for(let c in t){if(!Object.prototype.hasOwnProperty.call(t,c))continue;let l=c===this.options.textNodeName||c===this.options.cdataPropName||c===this.options.commentPropName||this.options.attributesGroupName&&c===this.options.attributesGroupName||this.isAttribute(c)||c[0]==="?"?c:nW(c,!1,this.options,r,i);if(typeof t[c]>"u")this.isAttribute(c)&&(n+="");else if(t[c]===null)this.isAttribute(c)||l===this.options.cdataPropName||l===this.options.commentPropName?n+="":l[0]==="?"?n+=this.indentate(e)+"<"+l+"?"+this.tagEndChar:n+=this.indentate(e)+"<"+l+"/"+this.tagEndChar;else if(t[c]instanceof Date)n+=this.buildTextValNode(t[c],l,"",e,r);else if(typeof t[c]!="object"){let f=this.isAttribute(c);if(f&&!this.ignoreAttributesFn(f,o)){let h=nW(f,!0,this.options,r,i);s+=this.buildAttrPairStr(h,""+t[c],a)}else if(!f)if(c===this.options.textNodeName){let h=this.options.tagValueProcessor(c,""+t[c]);n+=this.replaceEntitiesValue(h)}else{r.push(l);let h=this.checkStopNode(r);if(r.pop(),h){let d=""+t[c];d===""?n+=this.indentate(e)+"<"+l+this.closeTag(l)+this.tagEndChar:n+=this.indentate(e)+"<"+l+">"+d+"</"+l+this.tagEndChar}else n+=this.buildTextValNode(t[c],l,"",e,r)}}else if(Array.isArray(t[c])){let f=t[c].length,h="",d="";for(let m=0;m<f;m++){let A=t[c][m];if(!(typeof A>"u"))if(A===null)l[0]==="?"?n+=this.indentate(e)+"<"+l+"?"+this.tagEndChar:n+=this.indentate(e)+"<"+l+"/"+this.tagEndChar;else if(typeof A=="object")if(this.options.oneListGroup){r.push(l);let y=this.j2x(A,e+1,r,i);r.pop(),h+=y.val,this.options.attributesGroupName&&A.hasOwnProperty(this.options.attributesGroupName)&&(d+=y.attrStr)}else h+=this.processTextOrObjNode(A,l,e,r,i);else if(this.options.oneListGroup){let y=this.options.tagValueProcessor(l,A);y=this.replaceEntitiesValue(y),h+=y}else{r.push(l);let y=this.checkStopNode(r);if(r.pop(),y){let g=""+A;g===""?h+=this.indentate(e)+"<"+l+this.closeTag(l)+this.tagEndChar:h+=this.indentate(e)+"<"+l+">"+g+"</"+l+this.tagEndChar}else h+=this.buildTextValNode(A,l,"",e,r)}}this.options.oneListGroup&&(h=this.buildObjectNode(h,l,d,e)),n+=h}else if(this.options.attributesGroupName&&c===this.options.attributesGroupName){let f=Object.keys(t[c]),h=f.length;for(let d=0;d<h;d++){let m=nW(f[d],!0,this.options,r,i);s+=this.buildAttrPairStr(m,""+t[c][f[d]],a)}}else n+=this.processTextOrObjNode(t[c],l,e,r,i)}return{attrStr:s,val:n}};Zo.prototype.buildAttrPairStr=function(t,e,r){return r||(e=this.options.attributeValueProcessor(t,""+e),e=this.replaceEntitiesValue(e)),this.options.suppressBooleanAttributes&&e==="true"?" "+t:" "+t+'="'+km(e)+'"'};function __t(t,e,r,i,s){let n=this.extractAttributes(t);if(i.push(e,n),this.checkStopNode(i)){let c=this.buildRawContent(t),u=this.buildAttributesForStopNode(t);return i.pop(),this.buildObjectNode(c,e,u,r)}let a=this.j2x(t,r+1,i,s);return i.pop(),e[0]==="?"?this.buildTextValNode("",e,a.attrStr,r,i):t[this.options.textNodeName]!==void 0&&Object.keys(t).length===1?this.buildTextValNode(t[this.options.textNodeName],e,a.attrStr,r,i):this.buildObjectNode(a.val,e,a.attrStr,r)}Zo.prototype.extractAttributes=function(t){if(!t||typeof t!="object")return null;let e={},r=!1;if(this.options.attributesGroupName&&t[this.options.attributesGroupName]){let i=t[this.options.attributesGroupName];for(let s in i){if(!Object.prototype.hasOwnProperty.call(i,s))continue;let n=s.startsWith(this.options.attributeNamePrefix)?s.substring(this.options.attributeNamePrefix.length):s;e[n]=km(i[s]),r=!0}}else for(let i in t){if(!Object.prototype.hasOwnProperty.call(t,i))continue;let s=this.isAttribute(i);s&&(e[s]=km(t[i]),r=!0)}return r?e:null};Zo.prototype.buildRawContent=function(t){if(typeof t=="string")return t;if(typeof t!="object"||t===null)return String(t);if(t[this.options.textNodeName]!==void 0)return t[this.options.textNodeName];let e="";for(let r in t){if(!Object.prototype.hasOwnProperty.call(t,r)||this.isAttribute(r)||this.options.attributesGroupName&&r===this.options.attributesGroupName)continue;let i=t[r];if(r===this.options.textNodeName)e+=i;else if(Array.isA
Line truncated
|
||||
`)+`
|
||||
`+this.getCanonicalizedHeadersString(e)+this.getCanonicalizedResourceString(e),i=this.factory.computeHMACSHA256(r);return e.headers.set(rt.AUTHORIZATION,`SharedKey ${this.factory.accountName}:${i}`),e}getHeaderValueToSign(e,r){let i=e.headers.get(r);return!i||r===rt.CONTENT_LENGTH&&i==="0"?"":i}getCanonicalizedHeadersString(e){let r=e.headers.headersArray().filter(s=>s.name.toLowerCase().startsWith(rt.PREFIX_FOR_STORAGE));r.sort((s,n)=>wQ(s.name.toLowerCase(),n.name.toLowerCase())),r=r.filter((s,n,o)=>!(n>0&&s.name.toLowerCase()===o[n-1].name.toLowerCase()));let i="";return r.forEach(s=>{i+=`${s.name.toLowerCase().trimRight()}:${s.value.trimLeft()}
|
||||
`}),i}getCanonicalizedResourceString(e){let r=yQ(e.url)||"/",i="";i+=`/${this.factory.accountName}${r}`;let s=EQ(e.url),n={};if(s){let o=[];for(let a in s)if(Object.prototype.hasOwnProperty.call(s,a)){let c=a.toLowerCase();n[c]=s[a],o.push(c)}o.sort();for(let a of o)i+=`
|
||||
${a}:${decodeURIComponent(n[a])}`}return i}};var ri=class extends Ay{accountName;accountKey;constructor(e,r){super(),this.accountName=e,this.accountKey=Buffer.from(r,"base64")}create(e,r){return new Fx(e,r,this)}computeHMACSHA256(e){return(0,LRe.createHmac)("sha256",this.accountKey).update(e,"utf8").digest("base64")}};var Xi=af("storage-common");var Gc;(function(t){t[t.EXPONENTIAL=0]="EXPONENTIAL",t[t.FIXED=1]="FIXED"})(Gc||(Gc={}));var Lm={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:Gc.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},y_t=new Ga("The operation was aborted."),Ux=class extends hf{retryOptions;constructor(e,r,i=Lm){super(e,r),this.retryOptions={retryPolicyType:i.retryPolicyType?i.retryPolicyType:Lm.retryPolicyType,maxTries:i.maxTries&&i.maxTries>=1?Math.floor(i.maxTries):Lm.maxTries,tryTimeoutInMs:i.tryTimeoutInMs&&i.tryTimeoutInMs>=0?i.tryTimeoutInMs:Lm.tryTimeoutInMs,retryDelayInMs:i.retryDelayInMs&&i.retryDelayInMs>=0?Math.min(i.retryDelayInMs,i.maxRetryDelayInMs?i.maxRetryDelayInMs:Lm.maxRetryDelayInMs):Lm.retryDelayInMs,maxRetryDelayInMs:i.maxRetryDelayInMs&&i.maxRetryDelayInMs>=0?i.maxRetryDelayInMs:Lm.maxRetryDelayInMs,secondaryHost:i.secondaryHost?i.secondaryHost:Lm.secondaryHost}}async sendRequest(e){return this.attemptSendRequest(e,!1,1)}async attemptSendRequest(e,r,i){let s=e.clone(),n=r||!this.retryOptions.secondaryHost||!(e.method==="GET"||e.method==="HEAD"||e.method==="OPTIONS")||i%2===1;n||(s.url=gQ(s.url,this.retryOptions.secondaryHost)),this.retryOptions.tryTimeoutInMs&&(s.url=km(s.url,Sd.Parameters.TIMEOUT,Math.floor(this.retryOptions.tryTimeoutInMs/1e3).toString()));let o;try{if(Xi.info(`RetryPolicy: =====> Try=${i} ${n?"Primary":"Secondary"}`),o=await this._nextPolicy.sendRequest(s),!this.shouldRetry(n,i,o))return o;r=r||!n&&o.status===404}catch(a){if(Xi.error(`RetryPolicy: Caught error, message: ${a.message}, code: ${a.code}`),!this.shouldRetry(n,i,o,a))throw a}return await this.delay(n,i,e.abortSignal),this.attemptSendRequest(e,r,++i)}shouldRetry(e,r,i,s){if(r>=this.retryOptions.maxTries)return Xi.info(`RetryPolicy: Attempt(s) ${r} >= maxTries ${this.retryOptions.maxTries}, no further try.`),!1;let n=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"];if(s){for(let o of n)if(s.name.toUpperCase().includes(o)||s.message.toUpperCase().includes(o)||s.code&&s.code.toString().toUpperCase()===o)return Xi.info(`RetryPolicy: Network error ${o} found, will retry.`),!0}if(i||s){let o=i?i.status:s?s.statusCode:0;if(!e&&o===404)return Xi.info("RetryPolicy: Secondary access with 404, will retry."),!0;if(o===503||o===500)return Xi.info(`RetryPolicy: Will retry for status code ${o}.`),!0}if(i&&i?.status>=400){let o=i.headers.get(rt.X_MS_CopySourceErrorCode);if(o!==void 0)switch(o){case"InternalError":case"OperationTimedOut":case"ServerBusy":return!0}}return s?.code==="PARSE_ERROR"&&s?.message.startsWith('Error "Error: Unclosed root tag')?(Xi.info("RetryPolicy: Incomplete XML response likely due to service timeout, will retry."),!0):!1}async delay(e,r,i){let s=0;if(e)switch(this.retryOptions.retryPolicyType){case Gc.EXPONENTIAL:s=Math.min((Math.pow(2,r-1)-1)*this.retryOptions.retryDelayInMs,this.retryOptions.maxRetryDelayInMs);break;case Gc.FIXED:s=this.retryOptions.retryDelayInMs;break}else s=Math.random()*1e3;return Xi.info(`RetryPolicy: Delay for ${s}ms`),bQ(s,i,y_t)}};var qx=class{retryOptions;constructor(e){this.retryOptions=e}create(e,r){return new Ux(e,r,this.retryOptions)}};var E_t="storageBrowserPolicy";function MRe(){return{name:E_t,async sendRequest(t,e){return Kt||((t.method==="GET"||t.method==="HEAD")&&(t.url=km(t.url,Sd.Parameters.FORCE_BROWSER_NO_CACHE,new Date().getTime().toString())),t.headers.delete(rt.COOKIE),t.headers.delete(rt.CONTENT_LENGTH)),e(t)}}}var b_t="StorageCorrectContentLengthPolicy";function FRe(){function t(e){e.body&&(typeof e.body=="string"||Buffer.isBuffer(e.body))&&e.body.length>0&&e.headers.set(rt.CONTENT_LENGTH,Buffer.byteLength(e.body))}return{name:b_t,async sendRequest(e,r){return t(e),r(e)}}}var w_t="storageRetryPolicy",Cw={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:Gc.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},C_t=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"],I_t=new Ga("The operation was aborted.");function URe(t={}){let e=t.retryPolicyType??Cw.retryPolicyType,r=t.maxTries??Cw.maxTries,i=t.retryDelayInMs??Cw.retryDelayInMs,s=t.maxRetryDelayInMs??Cw.maxRetryDelayInMs,n=t.secondaryHost??Cw.secondaryHost,o=t.tryTimeoutInMs??Cw.tryTimeoutInMs;function a({isPrimaryRetry:u,attempt:l,response:f,error:h}){if(l>=r)return Xi.info(`RetryPolicy: Attempt(s) ${l} >= maxTries ${r}, no further try.`),!1;if(h){for(let d of C_t)if(h.name.toUpperCase().includes(d)||h.message.toUpperCase().includes(d)||h.code&&h.code.toString().toUpperCase()===d)return
Line truncated
|
||||
`+this.getCanonicalizedHeadersString(e)+this.getCanonicalizedResourceString(e),i=this.factory.computeHMACSHA256(r);return e.headers.set(rt.AUTHORIZATION,`SharedKey ${this.factory.accountName}:${i}`),e}getHeaderValueToSign(e,r){let i=e.headers.get(r);return!i||r===rt.CONTENT_LENGTH&&i==="0"?"":i}getCanonicalizedHeadersString(e){let r=e.headers.headersArray().filter(s=>s.name.toLowerCase().startsWith(rt.PREFIX_FOR_STORAGE));r.sort((s,n)=>xQ(s.name.toLowerCase(),n.name.toLowerCase())),r=r.filter((s,n,o)=>!(n>0&&s.name.toLowerCase()===o[n-1].name.toLowerCase()));let i="";return r.forEach(s=>{i+=`${s.name.toLowerCase().trimRight()}:${s.value.trimLeft()}
|
||||
`}),i}getCanonicalizedResourceString(e){let r=SQ(e.url)||"/",i="";i+=`/${this.factory.accountName}${r}`;let s=BQ(e.url),n={};if(s){let o=[];for(let a in s)if(Object.prototype.hasOwnProperty.call(s,a)){let c=a.toLowerCase();n[c]=s[a],o.push(c)}o.sort();for(let a of o)i+=`
|
||||
${a}:${decodeURIComponent(n[a])}`}return i}};var ri=class extends yy{accountName;accountKey;constructor(e,r){super(),this.accountName=e,this.accountKey=Buffer.from(r,"base64")}create(e,r){return new Gx(e,r,this)}computeHMACSHA256(e){return(0,JRe.createHmac)("sha256",this.accountKey).update(e,"utf8").digest("base64")}};var Xi=of("storage-common");var qc;(function(t){t[t.EXPONENTIAL=0]="EXPONENTIAL",t[t.FIXED=1]="FIXED"})(qc||(qc={}));var Fm={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:qc.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},L_t=new Ga("The operation was aborted."),Hx=class extends ff{retryOptions;constructor(e,r,i=Fm){super(e,r),this.retryOptions={retryPolicyType:i.retryPolicyType?i.retryPolicyType:Fm.retryPolicyType,maxTries:i.maxTries&&i.maxTries>=1?Math.floor(i.maxTries):Fm.maxTries,tryTimeoutInMs:i.tryTimeoutInMs&&i.tryTimeoutInMs>=0?i.tryTimeoutInMs:Fm.tryTimeoutInMs,retryDelayInMs:i.retryDelayInMs&&i.retryDelayInMs>=0?Math.min(i.retryDelayInMs,i.maxRetryDelayInMs?i.maxRetryDelayInMs:Fm.maxRetryDelayInMs):Fm.retryDelayInMs,maxRetryDelayInMs:i.maxRetryDelayInMs&&i.maxRetryDelayInMs>=0?i.maxRetryDelayInMs:Fm.maxRetryDelayInMs,secondaryHost:i.secondaryHost?i.secondaryHost:Fm.secondaryHost}}async sendRequest(e){return this.attemptSendRequest(e,!1,1)}async attemptSendRequest(e,r,i){let s=e.clone(),n=r||!this.retryOptions.secondaryHost||!(e.method==="GET"||e.method==="HEAD"||e.method==="OPTIONS")||i%2===1;n||(s.url=IQ(s.url,this.retryOptions.secondaryHost)),this.retryOptions.tryTimeoutInMs&&(s.url=Lm(s.url,Id.Parameters.TIMEOUT,Math.floor(this.retryOptions.tryTimeoutInMs/1e3).toString()));let o;try{if(Xi.info(`RetryPolicy: =====> Try=${i} ${n?"Primary":"Secondary"}`),o=await this._nextPolicy.sendRequest(s),!this.shouldRetry(n,i,o))return o;r=r||!n&&o.status===404}catch(a){if(Xi.error(`RetryPolicy: Caught error, message: ${a.message}, code: ${a.code}`),!this.shouldRetry(n,i,o,a))throw a}return await this.delay(n,i,e.abortSignal),this.attemptSendRequest(e,r,++i)}shouldRetry(e,r,i,s){if(r>=this.retryOptions.maxTries)return Xi.info(`RetryPolicy: Attempt(s) ${r} >= maxTries ${this.retryOptions.maxTries}, no further try.`),!1;let n=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"];if(s){for(let o of n)if(s.name.toUpperCase().includes(o)||s.message.toUpperCase().includes(o)||s.code&&s.code.toString().toUpperCase()===o)return Xi.info(`RetryPolicy: Network error ${o} found, will retry.`),!0}if(i||s){let o=i?i.status:s?s.statusCode:0;if(!e&&o===404)return Xi.info("RetryPolicy: Secondary access with 404, will retry."),!0;if(o===503||o===500)return Xi.info(`RetryPolicy: Will retry for status code ${o}.`),!0}if(i&&i?.status>=400){let o=i.headers.get(rt.X_MS_CopySourceErrorCode);if(o!==void 0)switch(o){case"InternalError":case"OperationTimedOut":case"ServerBusy":return!0}}return s?.code==="PARSE_ERROR"&&s?.message.startsWith('Error "Error: Unclosed root tag')?(Xi.info("RetryPolicy: Incomplete XML response likely due to service timeout, will retry."),!0):!1}async delay(e,r,i){let s=0;if(e)switch(this.retryOptions.retryPolicyType){case qc.EXPONENTIAL:s=Math.min((Math.pow(2,r-1)-1)*this.retryOptions.retryDelayInMs,this.retryOptions.maxRetryDelayInMs);break;case qc.FIXED:s=this.retryOptions.retryDelayInMs;break}else s=Math.random()*1e3;return Xi.info(`RetryPolicy: Delay for ${s}ms`),vQ(s,i,L_t)}};var jx=class{retryOptions;constructor(e){this.retryOptions=e}create(e,r){return new Hx(e,r,this.retryOptions)}};var F_t="storageBrowserPolicy";function YRe(){return{name:F_t,async sendRequest(t,e){return Kt||((t.method==="GET"||t.method==="HEAD")&&(t.url=Lm(t.url,Id.Parameters.FORCE_BROWSER_NO_CACHE,new Date().getTime().toString())),t.headers.delete(rt.COOKIE),t.headers.delete(rt.CONTENT_LENGTH)),e(t)}}}var M_t="StorageCorrectContentLengthPolicy";function KRe(){function t(e){e.body&&(typeof e.body=="string"||Buffer.isBuffer(e.body))&&e.body.length>0&&e.headers.set(rt.CONTENT_LENGTH,Buffer.byteLength(e.body))}return{name:M_t,async sendRequest(e,r){return t(e),r(e)}}}var U_t="storageRetryPolicy",Bw={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:qc.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},q_t=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"],G_t=new Ga("The operation was aborted.");function XRe(t={}){let e=t.retryPolicyType??Bw.retryPolicyType,r=t.maxTries??Bw.maxTries,i=t.retryDelayInMs??Bw.retryDelayInMs,s=t.maxRetryDelayInMs??Bw.maxRetryDelayInMs,n=t.secondaryHost??Bw.secondaryHost,o=t.tryTimeoutInMs??Bw.tryTimeoutInMs;function a({isPrimaryRetry:u,attempt:l,response:f,error:h}){if(l>=r)return Xi.info(`RetryPolicy: Attempt(s) ${l} >= maxTries ${r}, no further try.`),!1;if(h){for(let d of q_t)if(h.name.toUpperCase().includes(d)||h.message.toUpperCase().includes(d)||h.code&&h.code.toString().toUpperCase()===d)return
Line truncated
|
||||
`)+`
|
||||
`+i(n)+s(n),a=(0,qRe.createHmac)("sha256",t.accountKey).update(o,"utf8").digest("base64");n.headers.set(rt.AUTHORIZATION,`SharedKey ${t.accountName}:${a}`)}function r(n,o){let a=n.headers.get(o);return!a||o===rt.CONTENT_LENGTH&&a==="0"?"":a}function i(n){let o=[];for(let[c,u]of n.headers)c.toLowerCase().startsWith(rt.PREFIX_FOR_STORAGE)&&o.push({name:c,value:u});o.sort((c,u)=>wQ(c.name.toLowerCase(),u.name.toLowerCase())),o=o.filter((c,u,l)=>!(u>0&&c.name.toLowerCase()===l[u-1].name.toLowerCase()));let a="";return o.forEach(c=>{a+=`${c.name.toLowerCase().trimRight()}:${c.value.trimLeft()}
|
||||
`}),a}function s(n){let o=yQ(n.url)||"/",a="";a+=`/${t.accountName}${o}`;let c=EQ(n.url),u={};if(c){let l=[];for(let f in c)if(Object.prototype.hasOwnProperty.call(c,f)){let h=f.toLowerCase();u[h]=c[f],l.push(h)}l.sort();for(let f of l)a+=`
|
||||
${f}:${decodeURIComponent(u[f])}`}return a}return{name:S_t,async sendRequest(n,o){return e(n),o(n)}}}var B_t="storageRequestFailureDetailsParserPolicy";function GRe(){return{name:B_t,async sendRequest(t,e){try{return await e(t)}catch(r){throw typeof r=="object"&&r!==null&&r.response&&r.response.parsedBody&&r.response.parsedBody.code==="InvalidHeaderValue"&&r.response.parsedBody.HeaderName==="x-ms-version"&&(r.message=`The provided service version is not enabled on this storage account. Please see https://learn.microsoft.com/rest/api/storageservices/versioning-for-the-azure-storage-services for additional information.
|
||||
`),r}}}}var HRe=require("node:crypto"),CQ=class{accountName;userDelegationKey;key;constructor(e,r){this.accountName=e,this.userDelegationKey=r,this.key=Buffer.from(r.value,"base64")}computeHMACSHA256(e){return(0,HRe.createHmac)("sha256",this.key).update(e,"utf8").digest("base64")}};var IQ="12.31.0",SQ="2026-02-06";var BQ="https://storage.azure.com/.default",Bd={Parameters:{FORCE_BROWSER_NO_CACHE:"_",SIGNATURE:"sig",SNAPSHOT:"snapshot",VERSIONID:"versionid",TIMEOUT:"timeout"}};var el="",rW="*",v_t=1*1024*1024;var x_t=4*v_t;var jRe="AES256",zRe="DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;",VRe=["Access-Control-Allow-Origin","Cache-Control","Content-Length","Content-Type","Date","Request-Id","traceparent","Transfer-Encoding","User-Agent","x-ms-client-request-id","x-ms-date","x-ms-error-code","x-ms-request-id","x-ms-return-client-request-id","x-ms-version","Accept-Ranges","Content-Disposition","Content-Encoding","Content-Language","Content-MD5","Content-Range","ETag","Last-Modified","Server","Vary","x-ms-content-crc64","x-ms-copy-action","x-ms-copy-completion-time","x-ms-copy-id","x-ms-copy-progress","x-ms-copy-status","x-ms-has-immutability-policy","x-ms-has-legal-hold","x-ms-lease-state","x-ms-lease-status","x-ms-range","x-ms-request-server-encrypted","x-ms-server-encrypted","x-ms-snapshot","x-ms-source-range","If-Match","If-Modified-Since","If-None-Match","If-Unmodified-Since","x-ms-access-tier","x-ms-access-tier-change-time","x-ms-access-tier-inferred","x-ms-account-kind","x-ms-archive-status","x-ms-blob-append-offset","x-ms-blob-cache-control","x-ms-blob-committed-block-count","x-ms-blob-condition-appendpos","x-ms-blob-condition-maxsize","x-ms-blob-content-disposition","x-ms-blob-content-encoding","x-ms-blob-content-language","x-ms-blob-content-length","x-ms-blob-content-md5","x-ms-blob-content-type","x-ms-blob-public-access","x-ms-blob-sequence-number","x-ms-blob-type","x-ms-copy-destination-snapshot","x-ms-creation-time","x-ms-default-encryption-scope","x-ms-delete-snapshots","x-ms-delete-type-permanent","x-ms-deny-encryption-scope-override","x-ms-encryption-algorithm","x-ms-if-sequence-number-eq","x-ms-if-sequence-number-le","x-ms-if-sequence-number-lt","x-ms-incremental-copy","x-ms-lease-action","x-ms-lease-break-period","x-ms-lease-duration","x-ms-lease-id","x-ms-lease-time","x-ms-page-write","x-ms-proposed-lease-id","x-ms-range-get-content-md5","x-ms-rehydrate-priority","x-ms-sequence-number-action","x-ms-sku-name","x-ms-source-content-md5","x-ms-source-if-match","x-ms-source-if-modified-since","x-ms-source-if-none-match","x-ms-source-if-unmodified-since","x-ms-tag-count","x-ms-encryption-key-sha256","x-ms-copy-source-error-code","x-ms-copy-source-status-code","x-ms-if-tags","x-ms-source-if-tags"],$Re=["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"],WRe="BlobUsesCustomerSpecifiedEncryption",JRe="BlobDoesNotUseCustomerSpecifiedEncryption",YRe=["10000","10001","10002","10003","10004","10100","10101","10102","10103","10104","11000","11001","11002","11003","11004","11100","11101","11102","11103","11104"];function vd(t){if(!t||typeof t!="object")return!1;let e=t;return Array.isArray(e.factories)&&typeof e.options=="object"&&typeof e.toServiceClientOptions=="function"}var Gx=class{factories;options;constructor(e,r={}){this.factories=e,this.options=r}toServiceClientOptions(){return{httpClient:this.options.httpClient,requestPolicyFactories:this.factories}}};function Ii(t,e={}){t||(t=new Mr);let r=new Gx([],e);return r._credential=t,r}function __t(t){let e=[R_t,KRe,T_t,N_t,D_t,O_t,Q_t];if(t.factories.length){let r=t.factories.filter(i=>!e.some(s=>s(i)));if(r.length){let i=r.some(s=>P_t(s));return{wrappedPolicies:F$(r),afterRetry:i}}}}function iW(t){let{httpClient:e,...r}=t.options,i=t._coreHttpClient;i||(i=e?U$(e):eW(),t._coreHttpClient=i);let s=t._corePipeline;if(!s){let n=`azsdk-js-azure-storage-blob/${IQ}`,o=r.userAgentOptions&&r.userAgentOptions.userAgentPrefix?`${r.userAgentOptions.userAgentPrefix} ${n}`:`${n}`;s=Bx({...r,loggingOptions:{additionalAllowedHeaderNames:VRe,additionalAllowedQueryParameters:$Re,logger:hQ.info},userAgentOptions:{userAgentPrefix:o},serializationOptions:{stringifyXML:fQ,serializerOptions:{xml:{xmlCharKey:"#"}}},deserializationOptions:{parseXML:X$,serializerOptions:{xml:{xmlCharKey:"#"}}}}),s.removePolicy({phase:"Retry"}),s.removePolicy({name:m$}),s.addPolicy(FRe()),s.addPolicy(URe(r.retryOptions),{phase:"Retry"}),s.addPolicy(GRe()),s.addPolicy(MRe());let a=__t(t);a&&s.addPolicy(a.wrappedPolicies,a.afterRetry?{afterPhase:"Retry"}:void 0);let c=sW(t);Ha(c)?s.addPolicy(yw({credential:c,scopes:r.audience??BQ
Line truncated
|
||||
`),n=e.computeHMACSHA256(s);return{sasQueryParameters:new nl(t.version,n,i,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType),stringToSign:s}}function RTt(t,e){if(t=By(t),!t.identifier&&!(t.permissions&&t.expiresOn))throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.");let r="c",i=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",i=t.versionId));let s;t.permissions&&(t.blobName?s=Rf.parse(t.permissions.toString()).toString():s=Tf.parse(t.permissions.toString()).toString());let n=[s||"",t.startsOn?Xt(t.startsOn,!1):"",t.expiresOn?Xt(t.expiresOn,!1):"",Sy(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?sl(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,i,t.cacheControl?t.cacheControl:"",t.contentDisposition?t.contentDisposition:"",t.contentEncoding?t.contentEncoding:"",t.contentLanguage?t.contentLanguage:"",t.contentType?t.contentType:""].join(`
|
||||
`),o=e.computeHMACSHA256(n);return{sasQueryParameters:new nl(t.version,o,s,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType),stringToSign:n}}function TTt(t,e){if(t=By(t),!t.identifier&&!(t.permissions&&t.expiresOn))throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.");let r="c",i=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",i=t.versionId));let s;t.permissions&&(t.blobName?s=Rf.parse(t.permissions.toString()).toString():s=Tf.parse(t.permissions.toString()).toString());let n=[s||"",t.startsOn?Xt(t.startsOn,!1):"",t.expiresOn?Xt(t.expiresOn,!1):"",Sy(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?sl(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,i,t.encryptionScope,t.cacheControl?t.cacheControl:"",t.contentDisposition?t.contentDisposition:"",t.contentEncoding?t.contentEncoding:"",t.contentLanguage?t.contentLanguage:"",t.contentType?t.contentType:""].join(`
|
||||
`),o=e.computeHMACSHA256(n);return{sasQueryParameters:new nl(t.version,o,s,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,void 0,void 0,void 0,t.encryptionScope),stringToSign:n}}function NTt(t,e){if(t=By(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",i=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",i=t.versionId));let s;t.permissions&&(t.blobName?s=Rf.parse(t.permissions.toString()).toString():s=Tf.parse(t.permissions.toString()).toString());let n=[s||"",t.startsOn?Xt(t.startsOn,!1):"",t.expiresOn?Xt(t.expiresOn,!1):"",Sy(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Xt(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Xt(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.ipRange?sl(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,i,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
|
||||
`),o=e.computeHMACSHA256(n);return{sasQueryParameters:new nl(t.version,o,s,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey),stringToSign:n}}function DTt(t,e){if(t=By(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",i=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",i=t.versionId));let s;t.permissions&&(t.blobName?s=Rf.parse(t.permissions.toString()).toString():s=Tf.parse(t.permissions.toString()).toString());let n=[s||"",t.startsOn?Xt(t.startsOn,!1):"",t.expiresOn?Xt(t.expiresOn,!1):"",Sy(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Xt(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Xt(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?sl(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,i,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
|
||||
`),o=e.computeHMACSHA256(n);return{sasQueryParameters:new nl(t.version,o,s,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId),stringToSign:n}}function OTt(t,e){if(t=By(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",i=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",i=t.versionId));let s;t.permissions&&(t.blobName?s=Rf.parse(t.permissions.toString()).toString():s=Tf.parse(t.permissions.toString()).toString());let n=[s||"",t.startsOn?Xt(t.startsOn,!1):"",t.expiresOn?Xt(t.expiresOn,!1):"",Sy(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Xt(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Xt(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?sl(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,i,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
|
||||
`),o=e.computeHMACSHA256(n);return{sasQueryParameters:new nl(t.version,o,s,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId,t.encryptionScope),stringToSign:n}}function PTt(t,e){if(t=By(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",i=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",i=t.versionId));let s;t.permissions&&(t.blobName?s=Rf.parse(t.permissions.toString()).toString():s=Tf.parse(t.permissions.toString()).toString());let n=[s||"",t.startsOn?Xt(t.startsOn,!1):"",t.expiresOn?Xt(t.expiresOn,!1):"",Sy(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Xt(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Xt(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,void 0,t.delegatedUserObjectId,t.ipRange?sl(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,i,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
|
||||
`),o=e.computeHMACSHA256(n);return{sasQueryParameters:new nl(t.version,o,s,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId,t.encryptionScope,t.delegatedUserObjectId),stringToSign:n}}function Sy(t,e,r){let i=[`/blob/${t}/${e}`];return r&&i.push(`/${r}`),i.join("")}function By(t){let e=t.version?t.version:SQ;if(t.snapshotTime&&e<"2018-11-09")throw RangeError("'version' must be >= '2018-11-09' when providing 'snapshotTime'.");if(t.blobName===void 0&&t.snapshotTime)throw RangeError("Must provide 'blobName' when providing 'snapshotTime'.");if(t.versionId&&e<"2019-10-10")throw RangeError("'version' must be >= '2019-10-10' when providing 'versionId'.");if(t.blobName===void 0&&t.versionId)throw RangeError("Must provide 'blobName' when providing 'versionId'.");if(t.permissions&&t.permissions.setImmutabilityPolicy&&e<"2020-08-04")throw RangeError("'version' must be >= '2020-08-04' when provided 'i' permission.");if(t.permissions&&t.permissions.deleteVersion&&e<"2019-10-10")throw RangeError("'version' must be >= '2019-10-10' when providing 'x' permission.");if(t.permissions&&t.permissions.permanentDelete&&e<"2019-10-10")throw RangeError("'version' must be >= '2019-10-10' when providing 'y' permission.");if(t.permissions&&t.permissions.tag&&e<"2019-12-12")throw RangeError("'version' must be >= '2019-12-12' when providing 't' permission.");if(e<"2020-02-10"&&t.permissions&&(t.permissions.move||t.permissions.execute))throw RangeError("'version' must be >= '2020-02-10' when providing the 'm' or 'e' permission.");if(e<"2021-04-10"&&t.permissions&&t.permissions.filterByTags)throw RangeError("'version' must be >= '2021-04-10' when providing the 'f' permission.");if(e<"2020-02-10"&&(t.preauthorizedAgentObjectId||t.correlationId))throw RangeError("'version' must be >= '2020-02-10' when providing 'preauthorizedAgentObjectId' or 'correlationId'.");if(t.encryptionScope&&e<"2020-12-06")throw RangeError("'version' must be >= '2020-12-06' when provided 'encryptionScope' in SAS.");return t.version=e,t}var e_=class{_leaseId;_url;_containerOrBlobOperation;_isContainer;get leaseId(){return this._leaseId}get url(){return this._url}constructor(e,r){let i=e.storageClientContext;this._url=e.url,e.name===void 0?(this._isContainer=!0,this._containerOrBlobOperation=i.container):(this._isContainer=!1,this._containerOrBlobOperation=i.blob),r||(r=Aw()),this._leaseId=r}async acquireLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==el||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==el||r.conditions?.tagConditions))throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.");return _e.withSpan("BlobLeaseClient-acquireLease",r,async i=>Fe(await this._containerOrBlobOperation.acquireLease({abortSignal:r.abortSignal,duration:e,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},proposedLeaseId:this._leaseId,tracingOptions:i.tracingOptions})))}async changeLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==el||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==el||r.conditions?.tagConditions))throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.");return _e.withSpan("BlobLeaseClient-changeLease",r,async i=>{let s=Fe(await this._containerOrBlobOperation.changeLease(this._leaseId,e,{abortSignal:r.abortSignal,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},tracingOptions:i.tracingOptions}));return this._leaseId=e,s})}async releaseLease(e={}){if(this._isContainer&&(e.conditions?.ifMatch&&e.conditions?.ifMatch!==el||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==el||e.conditions?.tagConditions))throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.");return _e.withSpan("BlobLeaseClient-releaseLease",e,async r=>Fe(await this._containerOrBlobOperation.releaseLease(this._leaseId,{abortSignal:e.abortSignal,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},tracingOptions:r.tracingOptions})))}async renewLease(e={}){if(this._isContainer&&(e.conditions?.ifMatch&&e.conditions?.ifMatch!==el||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==el||e.conditions?.tagConditions))throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.");return _e.withSpan("BlobLeaseClient-renewLease",e,async r=>this._containerOrBlobOperation.renewLease(this._leaseId,{abortSignal:e.ab
Line truncated
|
||||
If you are using self-hosted runners, please make sure your runner has access to all GitHub endpoints: https://docs.github.com/en/actions/hosting-your-own-runners/managing-self-hosted-runners/about-self-hosted-runners#communication-between-self-hosted-runners-and-github`;super(r),this.code=e,this.name="NetworkError"}};Pw.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var Ry=class extends Error{constructor(){super(`Cache storage quota has been hit. Unable to upload any new cache entries. Usage is recalculated every 6-12 hours.
|
||||
More info on storage limits: https://docs.github.com/en/billing/managing-billing-for-github-actions/about-billing-for-github-actions#calculating-minute-and-storage-spending`),this.name="UsageError"}};Ry.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var l_=class extends Error{constructor(e){super(e),this.name="RateLimitError"}};var jNt=function(t,e,r,i){function s(n){return n instanceof r?n:new r(function(o){o(n)})}return new(r||(r=Promise))(function(n,o){function a(l){try{u(i.next(l))}catch(f){o(f)}}function c(l){try{u(i.throw(l))}catch(f){o(f)}}function u(l){l.done?n(l.value):s(l.value).then(a,c)}u((i=i.apply(t,e||[])).next())})},$7=class{constructor(e){this.contentLength=e,this.sentBytes=0,this.displayedComplete=!1,this.startTime=Date.now()}setSentBytes(e){this.sentBytes=e}getTransferredBytes(){return this.sentBytes}isDone(){return this.getTransferredBytes()===this.contentLength}display(){if(this.displayedComplete)return;let e=this.sentBytes,r=(100*(e/this.contentLength)).toFixed(1),i=Date.now()-this.startTime,s=(e/(1024*1024)/(i/1e3)).toFixed(1);L(`Sent ${e} of ${this.contentLength} (${r}%), ${s} MBs/sec`),this.isDone()&&(this.displayedComplete=!0)}onProgress(){return e=>{this.setSentBytes(e.loadedBytes)}}startDisplayTimer(e=1e3){let r=()=>{this.display(),this.isDone()||(this.timeoutHandle=setTimeout(r,e))};this.timeoutHandle=setTimeout(r,e)}stopDisplayTimer(){this.timeoutHandle&&(clearTimeout(this.timeoutHandle),this.timeoutHandle=void 0),this.display()}};function e2e(t,e,r){return jNt(this,void 0,void 0,function*(){var i;let s=new ol(t),n=s.getBlockBlobClient(),o=new $7((i=r?.archiveSizeBytes)!==null&&i!==void 0?i:0),a={blockSize:r?.uploadChunkSize,concurrency:r?.uploadConcurrency,maxSingleShotSize:128*1024*1024,onProgress:o.onProgress()};try{o.startDisplayTimer(),T(`BlobClient: ${s.name}:${s.accountName}:${s.containerName}`);let c=yield n.uploadFile(e,a);if(c._response.status>=400)throw new Rk(`uploadCacheArchiveSDK: upload failed with status code ${c._response.status}`);return c}catch(c){throw st(`uploadCacheArchiveSDK: internal error uploading cache archive: ${c.message}`),c}finally{o.stopDisplayTimer()}})}var r2e=k(require("buffer"),1),Nf=k(require("fs"),1),i2e=k(require("stream"),1),s2e=k(require("util"),1);var Tk=function(t,e,r,i){function s(n){return n instanceof r?n:new r(function(o){o(n)})}return new(r||(r=Promise))(function(n,o){function a(l){try{u(i.next(l))}catch(f){o(f)}}function c(l){try{u(i.throw(l))}catch(f){o(f)}}function u(l){l.done?n(l.value):s(l.value).then(a,c)}u((i=i.apply(t,e||[])).next())})};function Nk(t){return t?t>=200&&t<300:!1}function zNt(t){return t?t>=500:!0}function VNt(t){return t?[tr.BadGateway,tr.ServiceUnavailable,tr.GatewayTimeout].includes(t):!1}function $Nt(t){return Tk(this,void 0,void 0,function*(){return new Promise(e=>setTimeout(e,t))})}function t2e(t,e,r){return Tk(this,arguments,void 0,function*(i,s,n,o=aP,a=cP,c=void 0){let u="",l=1;for(;l<=o;){let f,h,d=!1;try{f=yield s()}catch(m){c&&(f=c(m)),d=!0,u=m.message}if(f&&(h=n(f),!zNt(h)))return f;if(h&&(d=VNt(h),u=`Cache service responded with ${h}`),T(`${i} - Attempt ${l} of ${o} failed with error: ${u}`),!d){T(`${i} - Error is not retryable`);break}yield $Nt(a),l++}throw Error(`${i} failed: ${u}`)})}function f_(t,e){return Tk(this,arguments,void 0,function*(r,i,s=aP,n=cP){return yield t2e(r,i,o=>o.statusCode,s,n,o=>{if(o instanceof Jl)return{statusCode:o.statusCode,result:null,headers:{},error:o}})})}function Qw(t,e){return Tk(this,arguments,void 0,function*(r,i,s=aP,n=cP){return yield t2e(r,i,o=>o.message.statusCode,s,n)})}var $c=function(t,e,r,i){function s(n){return n instanceof r?n:new r(function(o){o(n)})}return new(r||(r=Promise))(function(n,o){function a(l){try{u(i.next(l))}catch(f){o(f)}}function c(l){try{u(i.throw(l))}catch(f){o(f)}}function u(l){l.done?n(l.value):s(l.value).then(a,c)}u((i=i.apply(t,e||[])).next())})};function WNt(t,e){return $c(this,void 0,void 0,function*(){yield s2e.promisify(i2e.pipeline)(t.message,e)})}var Dk=class{constructor(e){this.contentLength=e,this.segmentIndex=0,this.segmentSize=0,this.segmentOffset=0,this.receivedBytes=0,this.displayedComplete=!1,this.startTime=Date.now()}nextSegment(e){this.segmentOffset=this.segmentOffset+this.segmentSize,this.segmentIndex=this.segmentIndex+1,this.segmentSize=e,this.receivedBytes=0,T(`Downloading segment at offset ${this.segmentOffset} with length ${this.segmentSize}...`)}setReceivedBytes(e){this.receivedBytes=e}getTransferredBytes(){return this.segmentOffset+this.receivedBytes}isDone(){return this.getTransferredBytes()===this.contentLength}display(){if(this.displayedComplete)return;let e=this.segmentOffset+this.receivedBytes,r=(100*(e/this.contentLength)).toFixed(1),i=Date.now()-this.startTime,s=(e/(1024*1024)/(i/1e3)).toFixed(1);L(`Received ${e} of ${this.contentLength} (${r}%), ${s} MBs/sec`),this.isDone()&&(this.displayedComplete=!0)}onProgress(){return e=>{this.setReceivedBytes(e.loadedBytes)}}startDisplayTimer(e=
Line truncated
|
||||
Other caches with similar key:`);for(let a of n?.artifactCaches||[])T(`Cache Key: ${a?.cacheKey}, Cache Version: ${a?.cacheVersion}, Cache Scope: ${a?.scope}, Cache Created: ${a?.creationTime}`)}}})}function K7(t,e,r){return ta(this,void 0,void 0,function*(){let i=new p2e.URL(t),s=c2e(r);i.hostname.endsWith(".blob.core.windows.net")?s.useAzureSdk?yield o2e(t,e,s):s.concurrentBlobDownloads?yield n2e(t,e,s):yield Ok(t,e):yield Ok(t,e)})}function A2e(t,e,r){return ta(this,void 0,void 0,function*(){let i=Y7(),s=cw(e,r?.compressionMethod,r?.enableCrossOsArchive),n={key:t,version:s,cacheSize:r?.cacheSize};return yield f_("reserveCache",()=>ta(this,void 0,void 0,function*(){return i.postJson(d_("caches"),n)}))})}function d2e(t,e){return`bytes ${t}-${e}/*`}function r2t(t,e,r,i,s){return ta(this,void 0,void 0,function*(){T(`Uploading chunk of size ${s-i+1} bytes at offset ${i} with content range: ${d2e(i,s)}`);let n={"Content-Type":"application/octet-stream","Content-Range":d2e(i,s)},o=yield Qw(`uploadChunk (start: ${i}, end: ${s})`,()=>ta(this,void 0,void 0,function*(){return t.sendStream("PATCH",e,r(),n)}));if(!Nk(o.message.statusCode))throw new Error(`Cache service responded with ${o.message.statusCode} during upload chunk.`)})}function i2t(t,e,r,i){return ta(this,void 0,void 0,function*(){let s=rf(r),n=d_(`caches/${e.toString()}`),o=kw.openSync(r,"r"),a=W7(i),c=TV("uploadConcurrency",a.uploadConcurrency),u=TV("uploadChunkSize",a.uploadChunkSize),l=[...new Array(c).keys()];T("Awaiting all uploads");let f=0;try{yield Promise.all(l.map(()=>ta(this,void 0,void 0,function*(){for(;f<s;){let h=Math.min(s-f,u),d=f,m=f+h-1;f+=u,yield r2t(t,n,()=>kw.createReadStream(r,{fd:o,start:d,end:m,autoClose:!1}).on("error",A=>{throw new Error(`Cache upload failed because file read failed with ${A.message}`)}),d,m)}})))}finally{kw.closeSync(o)}})}function s2t(t,e,r){return ta(this,void 0,void 0,function*(){let i={size:r};return yield f_("commitCache",()=>ta(this,void 0,void 0,function*(){return t.postJson(d_(`caches/${e.toString()}`),i)}))})}function X7(t,e,r,i){return ta(this,void 0,void 0,function*(){if(W7(i).useAzureSdk){if(!r)throw new Error("Azure Storage SDK can only be used when a signed URL is provided.");yield e2e(r,e,i)}else{let n=Y7();T("Upload cache"),yield i2t(n,t,e,i),T("Commiting cache");let o=rf(e);L(`Cache Size: ~${Math.round(o/(1024*1024))} MB (${o} B)`);let a=yield s2t(n,t,o);if(!Nk(a.statusCode))throw new Error(`Cache service responded with ${a.statusCode} during commit cache.`);L("Cache saved successfully")}})}var l1e=k(i1e(),1),vi=k(Bi(),1),Wa=k(Bi(),1),Py=k(Bi(),1),Qy=k(Bi(),1),ky=k(Bi(),1);var VK=k(Bi(),1),$K=k(Bi(),1),a1e=k(Bi(),1),c1e=k(Bi(),1),u1e=k(Bi(),1);var HK=k(Bi(),1),jK=k(Bi(),1),s1e=k(Bi(),1),n1e=k(Bi(),1),o1e=k(Bi(),1),zK=class extends o1e.MessageType{constructor(){super("github.actions.results.entities.v1.CacheScope",[{no:1,name:"scope",kind:"scalar",T:9},{no:2,name:"permission",kind:"scalar",T:3}])}create(e){let r={scope:"",permission:"0"};return globalThis.Object.defineProperty(r,n1e.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,s1e.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,i,s){let n=s??this.create(),o=e.pos+r;for(;e.pos<o;){let[a,c]=e.tag();switch(a){case 1:n.scope=e.string();break;case 2:n.permission=e.int64().toString();break;default:let u=i.readUnknownField;if(u==="throw")throw new globalThis.Error(`Unknown field ${a} (wire type ${c}) for ${this.typeName}`);let l=e.skip(c);u!==!1&&(u===!0?jK.UnknownFieldHandler.onRead:u)(this.typeName,n,a,c,l)}}return n}internalBinaryWrite(e,r,i){e.scope!==""&&r.tag(1,HK.WireType.LengthDelimited).string(e.scope),e.permission!=="0"&&r.tag(2,HK.WireType.Varint).int64(e.permission);let s=i.writeUnknownFields;return s!==!1&&(s==!0?jK.UnknownFieldHandler.onWrite:s)(this.typeName,e,r),r}},bL=new zK;var WK=class extends u1e.MessageType{constructor(){super("github.actions.results.entities.v1.CacheMetadata",[{no:1,name:"repository_id",kind:"scalar",T:3},{no:2,name:"scope",kind:"message",repeat:1,T:()=>bL}])}create(e){let r={repositoryId:"0",scope:[]};return globalThis.Object.defineProperty(r,c1e.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,a1e.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,i,s){let n=s??this.create(),o=e.pos+r;for(;e.pos<o;){let[a,c]=e.tag();switch(a){case 1:n.repositoryId=e.int64().toString();break;case 2:n.scope.push(bL.internalBinaryRead(e,e.uint32(),i));break;default:let u=i.readUnknownField;if(u==="throw")throw new globalThis.Error(`Unknown field ${a} (wire type ${c}) for ${this.typeName}`);let l=e.skip(c);u!==!1&&(u===!0?$K.UnknownFieldHandler.onRead:u)(this.typeName,n,a,c,l)}}return n}internalBinaryWrite(e,r,i){e.repositoryId!=="0"&&r.tag(1,VK.WireType.Varint).int64(e.repositoryId);for(let n=0;n<e.scope.length;n++)bL.internalBinaryWrite(e.scope[n],r.tag(2,VK.WireType.LengthDelimited).fork(),i).join();let s=i.writeUnknownFields;return s!==!1&&(s==!0?$K.UnknownFieldHandler.onWrite:s)(this.type
Line truncated
|
||||
`));let i=yield uX(r,"create");yield lX(i,t)})}var Zw=function(t,e,r,i){function s(n){return n instanceof r?n:new r(function(o){o(n)})}return new(r||(r=Promise))(function(n,o){function a(l){try{u(i.next(l))}catch(f){o(f)}}function c(l){try{u(i.throw(l))}catch(f){o(f)}}function u(l){l.done?n(l.value):s(l.value).then(a,c)}u((i=i.apply(t,e||[])).next())})},ul=class t extends Error{constructor(e){super(e),this.name="ValidationError",Object.setPrototypeOf(this,t.prototype)}},Xw=class t extends Error{constructor(e){super(e),this.name="ReserveCacheError",Object.setPrototypeOf(this,t.prototype)}},SL=class t extends Error{constructor(e){super(e),this.name="FinalizeCacheError",Object.setPrototypeOf(this,t.prototype)}};function p1e(t){if(!t||t.length===0)throw new ul("Path Validation Error: At least one directory or file path is required")}function dX(t){if(t.length>512)throw new ul(`Key Validation Error: ${t} cannot be larger than 512 characters.`);if(!/^[^,]*$/.test(t))throw new ul(`Key Validation Error: ${t} cannot contain commas.`)}function pX(){return h_()==="v2"?!!process.env.ACTIONS_RESULTS_URL:!!process.env.ACTIONS_CACHE_URL}function m1e(t,e,r,i){return Zw(this,arguments,void 0,function*(s,n,o,a,c=!1){let u=h_();return T(`Cache service version: ${u}`),p1e(s),u==="v2"?yield EDt(s,n,o,a,c):yield yDt(s,n,o,a,c)})}function yDt(t,e,r,i){return Zw(this,arguments,void 0,function*(s,n,o,a,c=!1){o=o||[];let u=[n,...o];if(T("Resolved Keys:"),T(JSON.stringify(u)),u.length>10)throw new ul("Key Validation Error: Keys are limited to a maximum of 10.");for(let h of u)dX(h);let l=yield dx(),f="";try{let h=yield m2e(u,s,{compressionMethod:l,enableCrossOsArchive:c});if(!h?.archiveLocation)return;if(a?.lookupOnly)return L("Lookup only - skipping download"),h.cacheKey;f=R_.join(yield fx(),Tm(l)),T(`Archive Path: ${f}`),yield K7(h.archiveLocation,f,a),Xl()&&(yield __(f,l));let d=rf(f);return L(`Cache Size: ~${Math.round(d/(1024*1024))} MB (${d} B)`),yield fX(f,l),L("Cache restored successfully"),h.cacheKey}catch(h){let d=h;if(d.name===ul.name)throw h;d instanceof Jl&&typeof d.statusCode=="number"&&d.statusCode>=500?Ju(`Failed to restore: ${h.message}`):st(`Failed to restore: ${h.message}`)}finally{try{yield hx(f)}catch(h){T(`Failed to delete archive: ${h}`)}}})}function EDt(t,e,r,i){return Zw(this,arguments,void 0,function*(s,n,o,a,c=!1){a=Object.assign(Object.assign({},a),{useAzureSdk:!0}),o=o||[];let u=[n,...o];if(T("Resolved Keys:"),T(JSON.stringify(u)),u.length>10)throw new ul("Key Validation Error: Keys are limited to a maximum of 10.");for(let f of u)dX(f);let l="";try{let f=cX(),h=yield dx(),d={key:n,restoreKeys:o,version:cw(s,h,c)},m=yield f.GetCacheEntryDownloadURL(d);if(!m.ok){T(`Cache not found for version ${d.version} of keys: ${u.join(", ")}`);return}if(d.key!==m.matchedKey?L(`Cache hit for restore-key: ${m.matchedKey}`):L(`Cache hit for: ${m.matchedKey}`),a?.lookupOnly)return L("Lookup only - skipping download"),m.matchedKey;l=R_.join(yield fx(),Tm(h)),T(`Archive path: ${l}`),T(`Starting download of archive to: ${l}`),yield K7(m.signedDownloadUrl,l,a);let y=rf(l);return L(`Cache Size: ~${Math.round(y/(1024*1024))} MB (${y} B)`),Xl()&&(yield __(l,h)),yield fX(l,h),L("Cache restored successfully"),m.matchedKey}catch(f){let h=f;if(h.name===ul.name)throw f;h instanceof Jl&&typeof h.statusCode=="number"&&h.statusCode>=500?Ju(`Failed to restore: ${f.message}`):st(`Failed to restore: ${f.message}`)}finally{try{l&&(yield hx(l))}catch(f){T(`Failed to delete archive: ${f}`)}}})}function mX(t,e,r){return Zw(this,arguments,void 0,function*(i,s,n,o=!1){let a=h_();return T(`Cache service version: ${a}`),p1e(i),dX(s),a==="v2"?yield wDt(i,s,n,o):yield bDt(i,s,n,o)})}function bDt(t,e,r){return Zw(this,arguments,void 0,function*(i,s,n,o=!1){var a,c,u,l,f;let h=yield dx(),d=-1,m=yield RV(i);if(T("Cache Paths:"),T(`${JSON.stringify(m)}`),m.length===0)throw new Error("Path Validation Error: Path(s) specified in the action for caching do(es) not exist, hence no cache is being saved.");let A=yield fx(),y=R_.join(A,Tm(h));T(`Archive Path: ${y}`);try{yield hX(A,m,h),Xl()&&(yield __(y,h));let g=10*1024*1024*1024,E=rf(y);if(T(`File Size: ${E}`),E>g&&!J7())throw new Error(`Cache size of ~${Math.round(E/(1024*1024))} MB (${E} B) is over the 10GB limit, not saving cache.`);T("Reserving Cache");let C=yield A2e(s,i,{compressionMethod:h,enableCrossOsArchive:o,cacheSize:E});if(!((a=C?.result)===null||a===void 0)&&a.cacheId)d=(c=C?.result)===null||c===void 0?void 0:c.cacheId;else throw C?.statusCode===400?new Error((l=(u=C?.error)===null||u===void 0?void 0:u.message)!==null&&l!==void 0?l:`Cache size of ~${Math.round(E/(1024*1024))} MB (${E} B) is over the data cap limit, not saving cache.`):new Xw(`Unable to reserve cache with key ${s}, another job may be creating this cache. More details: ${(f=C?.error)===null||f===void 0?void 0:f.message}`);T(`Saving Cache (ID: ${d})`),yield X7(d,y,"",n)}catch(g){let E=g;if(E.name===ul.name)throw g;E.name===Xw.name
Line truncated
|
||||
`,o).length:f,u?(a===null?0:a.length)+c.length:0,u?c.length+f:0);return h<d},parse:function(i,s,n,o){let{bom:a,comment_no_infix:c,encoding:u,from_line:l,ltrim:f,max_record_size:h,raw:d,relax_quotes:m,rtrim:A,skip_empty_lines:y,to:g,to_line:E}=this.options,{comment:C,escape:S,quote:D,record_delimiter:q}=this.options,{bomSkipped:N,previousBuf:$,rawBuffer:O,escapeIsQuote:j}=this.state,M;if($===void 0)if(i===void 0){o();return}else M=i;else $!==void 0&&i===void 0?M=$:M=Buffer.concat([$,i]);if(N===!1)if(a===!1)this.state.bomSkipped=!0;else if(M.length<3){if(s===!1){this.state.previousBuf=M;return}}else{for(let Ne in iC)if(iC[Ne].compare(M,0,iC[Ne].length)===0){let he=iC[Ne].length;this.state.bufBytesStart+=he,M=M.slice(he);let Qe=jX({...this.original_options,encoding:Ne});for(let X in Qe)this.options[X]=Qe[X];({comment:C,escape:S,quote:D}=this.options);break}this.state.bomSkipped=!0}let Z=M.length,J;for(J=0;J<Z&&!this.__needMoreData(J,Z,s);J++){if(this.state.wasRowDelimiter===!0&&(this.info.lines++,this.state.wasRowDelimiter=!1),E!==-1&&this.info.lines>E){this.state.stop=!0,o();return}this.state.quoting===!1&&q.length===0&&this.__autoDiscoverRecordDelimiter(M,J)&&(q=this.options.record_delimiter);let Ne=M[J];if(d===!0&&O.append(Ne),(Ne===jQt||Ne===zQt)&&this.state.wasRowDelimiter===!1&&(this.state.wasRowDelimiter=!0),this.state.escaping===!0)this.state.escaping=!1;else{if(S!==null&&this.state.quoting===!0&&this.__isEscape(M,J,Ne)&&J+S.length<Z)if(j){if(this.__isQuote(M,J+S.length)){this.state.escaping=!0,J+=S.length-1;continue}}else{this.state.escaping=!0,J+=S.length-1;continue}if(this.state.commenting===!1&&this.__isQuote(M,J))if(this.state.quoting===!0){let X=M[J+D.length],Re=A&&this.__isCharTrimable(M,J+D.length),Ce=C!==null&&this.__compareBytes(C,M,J+D.length,X),_t=this.__isDelimiter(M,J+D.length,X),kt=q.length===0?this.__autoDiscoverRecordDelimiter(M,J+D.length):this.__isRecordDelimiter(X,M,J+D.length);if(S!==null&&this.__isEscape(M,J,Ne)&&this.__isQuote(M,J+S.length))J+=S.length-1;else if(!X||_t||kt||Ce||Re){this.state.quoting=!1,this.state.wasQuoting=!0,J+=D.length-1;continue}else if(m===!1){let Ji=this.__error(new Gt("CSV_INVALID_CLOSING_QUOTE",["Invalid Closing Quote:",`got "${String.fromCharCode(X)}"`,`at line ${this.info.lines}`,"instead of delimiter, record delimiter, trimable character","(if activated) or comment"],this.options,this.__infoField()));if(Ji!==void 0)return Ji}else this.state.quoting=!1,this.state.wasQuoting=!0,this.state.field.prepend(D),J+=D.length-1}else if(this.state.field.length!==0){if(m===!1){let X=this.__infoField(),Re=Object.keys(iC).map(_t=>iC[_t].equals(this.state.field.toString())?_t:!1).filter(Boolean)[0],Ce=this.__error(new Gt("INVALID_OPENING_QUOTE",["Invalid Opening Quote:",`a quote is found on field ${JSON.stringify(X.column)} at line ${X.lines}, value is ${JSON.stringify(this.state.field.toString(u))}`,Re?`(${Re} bom)`:void 0],this.options,X,{field:this.state.field}));if(Ce!==void 0)return Ce}}else{this.state.quoting=!0,J+=D.length-1;continue}if(this.state.quoting===!1){let X=this.__isRecordDelimiter(Ne,M,J);if(X!==0){if(this.state.commenting&&this.state.wasQuoting===!1&&this.state.record.length===0&&this.state.field.length===0)this.info.comment_lines++;else{if(this.state.enabled===!1&&this.info.lines+(this.state.wasRowDelimiter===!0?1:0)>=l){this.state.enabled=!0,this.__resetField(),this.__resetRecord(),J+=X-1;continue}if(y===!0&&this.state.wasQuoting===!1&&this.state.record.length===0&&this.state.field.length===0){this.info.empty_lines++,J+=X-1;continue}this.info.bytes=this.state.bufBytesStart+J;let _t=this.__onField();if(_t!==void 0)return _t;this.info.bytes=this.state.bufBytesStart+J+X;let kt=this.__onRecord(n);if(kt!==void 0)return kt;if(g!==-1&&this.info.records>=g){this.state.stop=!0,o();return}}this.state.commenting=!1,J+=X-1;continue}if(this.state.commenting)continue;if(C!==null&&(c===!1||this.state.record.length===0&&this.state.field.length===0)&&this.__compareBytes(C,M,J,Ne)!==0){this.state.commenting=!0;continue}let Re=this.__isDelimiter(M,J,Ne);if(Re!==0){this.info.bytes=this.state.bufBytesStart+J;let Ce=this.__onField();if(Ce!==void 0)return Ce;J+=Re-1;continue}}}if(this.state.commenting===!1&&h!==0&&this.state.record_length+this.state.field.length>h)return this.__error(new Gt("CSV_MAX_RECORD_SIZE",["Max Record Size:","record exceed the maximum number of tolerated bytes",`of ${h}`,`at line ${this.info.lines}`],this.options,this.__infoField()));let he=f===!1||this.state.quoting===!0||this.state.field.length!==0||!this.__isCharTrimable(M,J),Qe=A===!1||this.state.wasQuoting===!1;if(he===!0&&Qe===!0)this.state.field.append(Ne);else{if(A===!0&&!this.__isCharTrimable(M,J))return this.__error(new Gt("CSV_NON_TRIMABLE_CHAR_AFTER_CLOSING_QUOTE",["Invalid Closing Quote:","found non trimable byte after quote",`at line ${this.info.lines}`],this.options,this.__infoField()));he===!1&&(J+=this.__isCharTrimable(M,J)-1);continue}}if(s===!0)if(this.state.quoting===!0){let
Line truncated
|
||||
`+i(n)+s(n),a=(0,ZRe.createHmac)("sha256",t.accountKey).update(o,"utf8").digest("base64");n.headers.set(rt.AUTHORIZATION,`SharedKey ${t.accountName}:${a}`)}function r(n,o){let a=n.headers.get(o);return!a||o===rt.CONTENT_LENGTH&&a==="0"?"":a}function i(n){let o=[];for(let[c,u]of n.headers)c.toLowerCase().startsWith(rt.PREFIX_FOR_STORAGE)&&o.push({name:c,value:u});o.sort((c,u)=>xQ(c.name.toLowerCase(),u.name.toLowerCase())),o=o.filter((c,u,l)=>!(u>0&&c.name.toLowerCase()===l[u-1].name.toLowerCase()));let a="";return o.forEach(c=>{a+=`${c.name.toLowerCase().trimRight()}:${c.value.trimLeft()}
|
||||
`}),a}function s(n){let o=SQ(n.url)||"/",a="";a+=`/${t.accountName}${o}`;let c=BQ(n.url),u={};if(c){let l=[];for(let f in c)if(Object.prototype.hasOwnProperty.call(c,f)){let h=f.toLowerCase();u[h]=c[f],l.push(h)}l.sort();for(let f of l)a+=`
|
||||
${f}:${decodeURIComponent(u[f])}`}return a}return{name:H_t,async sendRequest(n,o){return e(n),o(n)}}}var j_t="storageRequestFailureDetailsParserPolicy";function eNe(){return{name:j_t,async sendRequest(t,e){try{return await e(t)}catch(r){throw typeof r=="object"&&r!==null&&r.response&&r.response.parsedBody&&r.response.parsedBody.code==="InvalidHeaderValue"&&r.response.parsedBody.HeaderName==="x-ms-version"&&(r.message=`The provided service version is not enabled on this storage account. Please see https://learn.microsoft.com/rest/api/storageservices/versioning-for-the-azure-storage-services for additional information.
|
||||
`),r}}}}var tNe=require("node:crypto"),_Q=class{accountName;userDelegationKey;key;constructor(e,r){this.accountName=e,this.userDelegationKey=r,this.key=Buffer.from(r.value,"base64")}computeHMACSHA256(e){return(0,tNe.createHmac)("sha256",this.key).update(e,"utf8").digest("base64")}};var RQ="12.31.0",NQ="2026-02-06";var TQ="https://storage.azure.com/.default",Sd={Parameters:{FORCE_BROWSER_NO_CACHE:"_",SIGNATURE:"sig",SNAPSHOT:"snapshot",VERSIONID:"versionid",TIMEOUT:"timeout"}};var Zu="",fW="*",z_t=1*1024*1024;var V_t=4*z_t;var rNe="AES256",iNe="DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;",sNe=["Access-Control-Allow-Origin","Cache-Control","Content-Length","Content-Type","Date","Request-Id","traceparent","Transfer-Encoding","User-Agent","x-ms-client-request-id","x-ms-date","x-ms-error-code","x-ms-request-id","x-ms-return-client-request-id","x-ms-version","Accept-Ranges","Content-Disposition","Content-Encoding","Content-Language","Content-MD5","Content-Range","ETag","Last-Modified","Server","Vary","x-ms-content-crc64","x-ms-copy-action","x-ms-copy-completion-time","x-ms-copy-id","x-ms-copy-progress","x-ms-copy-status","x-ms-has-immutability-policy","x-ms-has-legal-hold","x-ms-lease-state","x-ms-lease-status","x-ms-range","x-ms-request-server-encrypted","x-ms-server-encrypted","x-ms-snapshot","x-ms-source-range","If-Match","If-Modified-Since","If-None-Match","If-Unmodified-Since","x-ms-access-tier","x-ms-access-tier-change-time","x-ms-access-tier-inferred","x-ms-account-kind","x-ms-archive-status","x-ms-blob-append-offset","x-ms-blob-cache-control","x-ms-blob-committed-block-count","x-ms-blob-condition-appendpos","x-ms-blob-condition-maxsize","x-ms-blob-content-disposition","x-ms-blob-content-encoding","x-ms-blob-content-language","x-ms-blob-content-length","x-ms-blob-content-md5","x-ms-blob-content-type","x-ms-blob-public-access","x-ms-blob-sequence-number","x-ms-blob-type","x-ms-copy-destination-snapshot","x-ms-creation-time","x-ms-default-encryption-scope","x-ms-delete-snapshots","x-ms-delete-type-permanent","x-ms-deny-encryption-scope-override","x-ms-encryption-algorithm","x-ms-if-sequence-number-eq","x-ms-if-sequence-number-le","x-ms-if-sequence-number-lt","x-ms-incremental-copy","x-ms-lease-action","x-ms-lease-break-period","x-ms-lease-duration","x-ms-lease-id","x-ms-lease-time","x-ms-page-write","x-ms-proposed-lease-id","x-ms-range-get-content-md5","x-ms-rehydrate-priority","x-ms-sequence-number-action","x-ms-sku-name","x-ms-source-content-md5","x-ms-source-if-match","x-ms-source-if-modified-since","x-ms-source-if-none-match","x-ms-source-if-unmodified-since","x-ms-tag-count","x-ms-encryption-key-sha256","x-ms-copy-source-error-code","x-ms-copy-source-status-code","x-ms-if-tags","x-ms-source-if-tags"],nNe=["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"],oNe="BlobUsesCustomerSpecifiedEncryption",aNe="BlobDoesNotUseCustomerSpecifiedEncryption",cNe=["10000","10001","10002","10003","10004","10100","10101","10102","10103","10104","11000","11001","11002","11003","11004","11100","11101","11102","11103","11104"];function Bd(t){if(!t||typeof t!="object")return!1;let e=t;return Array.isArray(e.factories)&&typeof e.options=="object"&&typeof e.toServiceClientOptions=="function"}var zx=class{factories;options;constructor(e,r={}){this.factories=e,this.options=r}toServiceClientOptions(){return{httpClient:this.options.httpClient,requestPolicyFactories:this.factories}}};function Ii(t,e={}){t||(t=new Fr);let r=new zx([],e);return r._credential=t,r}function $_t(t){let e=[W_t,uNe,J_t,Y_t,K_t,X_t,eRt];if(t.factories.length){let r=t.factories.filter(i=>!e.some(s=>s(i)));if(r.length){let i=r.some(s=>Z_t(s));return{wrappedPolicies:z$(r),afterRetry:i}}}}function hW(t){let{httpClient:e,...r}=t.options,i=t._coreHttpClient;i||(i=e?V$(e):uW(),t._coreHttpClient=i);let s=t._corePipeline;if(!s){let n=`azsdk-js-azure-storage-blob/${RQ}`,o=r.userAgentOptions&&r.userAgentOptions.userAgentPrefix?`${r.userAgentOptions.userAgentPrefix} ${n}`:`${n}`;s=_x({...r,loggingOptions:{additionalAllowedHeaderNames:sNe,additionalAllowedQueryParameters:nNe,logger:yQ.info},userAgentOptions:{userAgentPrefix:o},serializationOptions:{stringifyXML:gQ,serializerOptions:{xml:{xmlCharKey:"#"}}},deserializationOptions:{parseXML:aW,serializerOptions:{xml:{xmlCharKey:"#"}}}}),s.removePolicy({phase:"Retry"}),s.removePolicy({name:w$}),s.addPolicy(KRe()),s.addPolicy(XRe(r.retryOptions),{phase:"Retry"}),s.addPolicy(eNe()),s.addPolicy(YRe());let a=$_t(t);a&&s.addPolicy(a.wrappedPolicies,a.afterRetry?{afterPhase:"Retry"}:void 0);let c=dW(t);Ha(c)?s.addPolicy(bw({credential:c,scopes:r.audience??TQ
Line truncated
|
||||
`),n=e.computeHMACSHA256(s);return{sasQueryParameters:new sl(t.version,n,i,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType),stringToSign:s}}function WNt(t,e){if(t=xy(t),!t.identifier&&!(t.permissions&&t.expiresOn))throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.");let r="c",i=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",i=t.versionId));let s;t.permissions&&(t.blobName?s=_f.parse(t.permissions.toString()).toString():s=Rf.parse(t.permissions.toString()).toString());let n=[s||"",t.startsOn?Xt(t.startsOn,!1):"",t.expiresOn?Xt(t.expiresOn,!1):"",vy(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?il(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,i,t.cacheControl?t.cacheControl:"",t.contentDisposition?t.contentDisposition:"",t.contentEncoding?t.contentEncoding:"",t.contentLanguage?t.contentLanguage:"",t.contentType?t.contentType:""].join(`
|
||||
`),o=e.computeHMACSHA256(n);return{sasQueryParameters:new sl(t.version,o,s,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType),stringToSign:n}}function JNt(t,e){if(t=xy(t),!t.identifier&&!(t.permissions&&t.expiresOn))throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.");let r="c",i=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",i=t.versionId));let s;t.permissions&&(t.blobName?s=_f.parse(t.permissions.toString()).toString():s=Rf.parse(t.permissions.toString()).toString());let n=[s||"",t.startsOn?Xt(t.startsOn,!1):"",t.expiresOn?Xt(t.expiresOn,!1):"",vy(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?il(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,i,t.encryptionScope,t.cacheControl?t.cacheControl:"",t.contentDisposition?t.contentDisposition:"",t.contentEncoding?t.contentEncoding:"",t.contentLanguage?t.contentLanguage:"",t.contentType?t.contentType:""].join(`
|
||||
`),o=e.computeHMACSHA256(n);return{sasQueryParameters:new sl(t.version,o,s,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,void 0,void 0,void 0,t.encryptionScope),stringToSign:n}}function YNt(t,e){if(t=xy(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",i=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",i=t.versionId));let s;t.permissions&&(t.blobName?s=_f.parse(t.permissions.toString()).toString():s=Rf.parse(t.permissions.toString()).toString());let n=[s||"",t.startsOn?Xt(t.startsOn,!1):"",t.expiresOn?Xt(t.expiresOn,!1):"",vy(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Xt(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Xt(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.ipRange?il(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,i,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
|
||||
`),o=e.computeHMACSHA256(n);return{sasQueryParameters:new sl(t.version,o,s,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey),stringToSign:n}}function KNt(t,e){if(t=xy(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",i=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",i=t.versionId));let s;t.permissions&&(t.blobName?s=_f.parse(t.permissions.toString()).toString():s=Rf.parse(t.permissions.toString()).toString());let n=[s||"",t.startsOn?Xt(t.startsOn,!1):"",t.expiresOn?Xt(t.expiresOn,!1):"",vy(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Xt(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Xt(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?il(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,i,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
|
||||
`),o=e.computeHMACSHA256(n);return{sasQueryParameters:new sl(t.version,o,s,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId),stringToSign:n}}function XNt(t,e){if(t=xy(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",i=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",i=t.versionId));let s;t.permissions&&(t.blobName?s=_f.parse(t.permissions.toString()).toString():s=Rf.parse(t.permissions.toString()).toString());let n=[s||"",t.startsOn?Xt(t.startsOn,!1):"",t.expiresOn?Xt(t.expiresOn,!1):"",vy(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Xt(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Xt(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?il(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,i,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
|
||||
`),o=e.computeHMACSHA256(n);return{sasQueryParameters:new sl(t.version,o,s,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId,t.encryptionScope),stringToSign:n}}function ZNt(t,e){if(t=xy(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",i=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",i=t.versionId));let s;t.permissions&&(t.blobName?s=_f.parse(t.permissions.toString()).toString():s=Rf.parse(t.permissions.toString()).toString());let n=[s||"",t.startsOn?Xt(t.startsOn,!1):"",t.expiresOn?Xt(t.expiresOn,!1):"",vy(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Xt(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Xt(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,void 0,t.delegatedUserObjectId,t.ipRange?il(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,i,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
|
||||
`),o=e.computeHMACSHA256(n);return{sasQueryParameters:new sl(t.version,o,s,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId,t.encryptionScope,t.delegatedUserObjectId),stringToSign:n}}function vy(t,e,r){let i=[`/blob/${t}/${e}`];return r&&i.push(`/${r}`),i.join("")}function xy(t){let e=t.version?t.version:NQ;if(t.snapshotTime&&e<"2018-11-09")throw RangeError("'version' must be >= '2018-11-09' when providing 'snapshotTime'.");if(t.blobName===void 0&&t.snapshotTime)throw RangeError("Must provide 'blobName' when providing 'snapshotTime'.");if(t.versionId&&e<"2019-10-10")throw RangeError("'version' must be >= '2019-10-10' when providing 'versionId'.");if(t.blobName===void 0&&t.versionId)throw RangeError("Must provide 'blobName' when providing 'versionId'.");if(t.permissions&&t.permissions.setImmutabilityPolicy&&e<"2020-08-04")throw RangeError("'version' must be >= '2020-08-04' when provided 'i' permission.");if(t.permissions&&t.permissions.deleteVersion&&e<"2019-10-10")throw RangeError("'version' must be >= '2019-10-10' when providing 'x' permission.");if(t.permissions&&t.permissions.permanentDelete&&e<"2019-10-10")throw RangeError("'version' must be >= '2019-10-10' when providing 'y' permission.");if(t.permissions&&t.permissions.tag&&e<"2019-12-12")throw RangeError("'version' must be >= '2019-12-12' when providing 't' permission.");if(e<"2020-02-10"&&t.permissions&&(t.permissions.move||t.permissions.execute))throw RangeError("'version' must be >= '2020-02-10' when providing the 'm' or 'e' permission.");if(e<"2021-04-10"&&t.permissions&&t.permissions.filterByTags)throw RangeError("'version' must be >= '2021-04-10' when providing the 'f' permission.");if(e<"2020-02-10"&&(t.preauthorizedAgentObjectId||t.correlationId))throw RangeError("'version' must be >= '2020-02-10' when providing 'preauthorizedAgentObjectId' or 'correlationId'.");if(t.encryptionScope&&e<"2020-12-06")throw RangeError("'version' must be >= '2020-12-06' when provided 'encryptionScope' in SAS.");return t.version=e,t}var i_=class{_leaseId;_url;_containerOrBlobOperation;_isContainer;get leaseId(){return this._leaseId}get url(){return this._url}constructor(e,r){let i=e.storageClientContext;this._url=e.url,e.name===void 0?(this._isContainer=!0,this._containerOrBlobOperation=i.container):(this._isContainer=!1,this._containerOrBlobOperation=i.blob),r||(r=yw()),this._leaseId=r}async acquireLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==Zu||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==Zu||r.conditions?.tagConditions))throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.");return _e.withSpan("BlobLeaseClient-acquireLease",r,async i=>Me(await this._containerOrBlobOperation.acquireLease({abortSignal:r.abortSignal,duration:e,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},proposedLeaseId:this._leaseId,tracingOptions:i.tracingOptions})))}async changeLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==Zu||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==Zu||r.conditions?.tagConditions))throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.");return _e.withSpan("BlobLeaseClient-changeLease",r,async i=>{let s=Me(await this._containerOrBlobOperation.changeLease(this._leaseId,e,{abortSignal:r.abortSignal,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},tracingOptions:i.tracingOptions}));return this._leaseId=e,s})}async releaseLease(e={}){if(this._isContainer&&(e.conditions?.ifMatch&&e.conditions?.ifMatch!==Zu||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==Zu||e.conditions?.tagConditions))throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.");return _e.withSpan("BlobLeaseClient-releaseLease",e,async r=>Me(await this._containerOrBlobOperation.releaseLease(this._leaseId,{abortSignal:e.abortSignal,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},tracingOptions:r.tracingOptions})))}async renewLease(e={}){if(this._isContainer&&(e.conditions?.ifMatch&&e.conditions?.ifMatch!==Zu||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==Zu||e.conditions?.tagConditions))throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.");return _e.withSpan("BlobLeaseClient-renewLease",e,async r=>this._containerOrBlobOperation.renewLease(this._leaseId,{abortSignal:e.ab
Line truncated
|
||||
If you are using self-hosted runners, please make sure your runner has access to all GitHub endpoints: https://docs.github.com/en/actions/hosting-your-own-runners/managing-self-hosted-runners/about-self-hosted-runners#communication-between-self-hosted-runners-and-github`;super(r),this.code=e,this.name="NetworkError"}};Lw.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var Ty=class extends Error{constructor(){super(`Cache storage quota has been hit. Unable to upload any new cache entries. Usage is recalculated every 6-12 hours.
|
||||
More info on storage limits: https://docs.github.com/en/billing/managing-billing-for-github-actions/about-billing-for-github-actions#calculating-minute-and-storage-spending`),this.name="UsageError"}};Ty.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var d_=class extends Error{constructor(e){super(e),this.name="RateLimitError"}};var u1t=function(t,e,r,i){function s(n){return n instanceof r?n:new r(function(o){o(n)})}return new(r||(r=Promise))(function(n,o){function a(l){try{u(i.next(l))}catch(f){o(f)}}function c(l){try{u(i.throw(l))}catch(f){o(f)}}function u(l){l.done?n(l.value):s(l.value).then(a,c)}u((i=i.apply(t,e||[])).next())})},rK=class{constructor(e){this.contentLength=e,this.sentBytes=0,this.displayedComplete=!1,this.startTime=Date.now()}setSentBytes(e){this.sentBytes=e}getTransferredBytes(){return this.sentBytes}isDone(){return this.getTransferredBytes()===this.contentLength}display(){if(this.displayedComplete)return;let e=this.sentBytes,r=(100*(e/this.contentLength)).toFixed(1),i=Date.now()-this.startTime,s=(e/(1024*1024)/(i/1e3)).toFixed(1);L(`Sent ${e} of ${this.contentLength} (${r}%), ${s} MBs/sec`),this.isDone()&&(this.displayedComplete=!0)}onProgress(){return e=>{this.setSentBytes(e.loadedBytes)}}startDisplayTimer(e=1e3){let r=()=>{this.display(),this.isDone()||(this.timeoutHandle=setTimeout(r,e))};this.timeoutHandle=setTimeout(r,e)}stopDisplayTimer(){this.timeoutHandle&&(clearTimeout(this.timeoutHandle),this.timeoutHandle=void 0),this.display()}};function h1e(t,e,r){return u1t(this,void 0,void 0,function*(){var i;let s=new nl(t),n=s.getBlockBlobClient(),o=new rK((i=r?.archiveSizeBytes)!==null&&i!==void 0?i:0),a={blockSize:r?.uploadChunkSize,concurrency:r?.uploadConcurrency,maxSingleShotSize:128*1024*1024,onProgress:o.onProgress()};try{o.startDisplayTimer(),N(`BlobClient: ${s.name}:${s.accountName}:${s.containerName}`);let c=yield n.uploadFile(e,a);if(c._response.status>=400)throw new Qk(`uploadCacheArchiveSDK: upload failed with status code ${c._response.status}`);return c}catch(c){throw st(`uploadCacheArchiveSDK: internal error uploading cache archive: ${c.message}`),c}finally{o.stopDisplayTimer()}})}var p1e=k(require("buffer"),1),Nf=k(require("fs"),1),m1e=k(require("stream"),1),A1e=k(require("util"),1);var kk=function(t,e,r,i){function s(n){return n instanceof r?n:new r(function(o){o(n)})}return new(r||(r=Promise))(function(n,o){function a(l){try{u(i.next(l))}catch(f){o(f)}}function c(l){try{u(i.throw(l))}catch(f){o(f)}}function u(l){l.done?n(l.value):s(l.value).then(a,c)}u((i=i.apply(t,e||[])).next())})};function Lk(t){return t?t>=200&&t<300:!1}function l1t(t){return t?t>=500:!0}function f1t(t){return t?[tr.BadGateway,tr.ServiceUnavailable,tr.GatewayTimeout].includes(t):!1}function h1t(t){return kk(this,void 0,void 0,function*(){return new Promise(e=>setTimeout(e,t))})}function d1e(t,e,r){return kk(this,arguments,void 0,function*(i,s,n,o=lP,a=fP,c=void 0){let u="",l=1;for(;l<=o;){let f,h,d=!1;try{f=yield s()}catch(m){c&&(f=c(m)),d=!0,u=m.message}if(f&&(h=n(f),!l1t(h)))return f;if(h&&(d=f1t(h),u=`Cache service responded with ${h}`),N(`${i} - Attempt ${l} of ${o} failed with error: ${u}`),!d){N(`${i} - Error is not retryable`);break}yield h1t(a),l++}throw Error(`${i} failed: ${u}`)})}function p_(t,e){return kk(this,arguments,void 0,function*(r,i,s=lP,n=fP){return yield d1e(r,i,o=>o.statusCode,s,n,o=>{if(o instanceof Wl)return{statusCode:o.statusCode,result:null,headers:{},error:o}})})}function Fw(t,e){return kk(this,arguments,void 0,function*(r,i,s=lP,n=fP){return yield d1e(r,i,o=>o.message.statusCode,s,n)})}var Vc=function(t,e,r,i){function s(n){return n instanceof r?n:new r(function(o){o(n)})}return new(r||(r=Promise))(function(n,o){function a(l){try{u(i.next(l))}catch(f){o(f)}}function c(l){try{u(i.throw(l))}catch(f){o(f)}}function u(l){l.done?n(l.value):s(l.value).then(a,c)}u((i=i.apply(t,e||[])).next())})};function d1t(t,e){return Vc(this,void 0,void 0,function*(){yield A1e.promisify(m1e.pipeline)(t.message,e)})}var Fk=class{constructor(e){this.contentLength=e,this.segmentIndex=0,this.segmentSize=0,this.segmentOffset=0,this.receivedBytes=0,this.displayedComplete=!1,this.startTime=Date.now()}nextSegment(e){this.segmentOffset=this.segmentOffset+this.segmentSize,this.segmentIndex=this.segmentIndex+1,this.segmentSize=e,this.receivedBytes=0,N(`Downloading segment at offset ${this.segmentOffset} with length ${this.segmentSize}...`)}setReceivedBytes(e){this.receivedBytes=e}getTransferredBytes(){return this.segmentOffset+this.receivedBytes}isDone(){return this.getTransferredBytes()===this.contentLength}display(){if(this.displayedComplete)return;let e=this.segmentOffset+this.receivedBytes,r=(100*(e/this.contentLength)).toFixed(1),i=Date.now()-this.startTime,s=(e/(1024*1024)/(i/1e3)).toFixed(1);L(`Received ${e} of ${this.contentLength} (${r}%), ${s} MBs/sec`),this.isDone()&&(this.displayedComplete=!0)}onProgress(){return e=>{this.setReceivedBytes(e.loadedBytes)}}startDisplayTimer(e=
Line truncated
|
||||
Other caches with similar key:`);for(let a of n?.artifactCaches||[])N(`Cache Key: ${a?.cacheKey}, Cache Version: ${a?.cacheVersion}, Cache Scope: ${a?.scope}, Cache Created: ${a?.creationTime}`)}}})}function oK(t,e,r){return ta(this,void 0,void 0,function*(){let i=new v1e.URL(t),s=b1e(r);i.hostname.endsWith(".blob.core.windows.net")?s.useAzureSdk?yield y1e(t,e,s):s.concurrentBlobDownloads?yield g1e(t,e,s):yield Mk(t,e):yield Mk(t,e)})}function _1e(t,e,r){return ta(this,void 0,void 0,function*(){let i=nK(),s=lw(e,r?.compressionMethod,r?.enableCrossOsArchive),n={key:t,version:s,cacheSize:r?.cacheSize};return yield p_("reserveCache",()=>ta(this,void 0,void 0,function*(){return i.postJson(A_("caches"),n)}))})}function B1e(t,e){return`bytes ${t}-${e}/*`}function w1t(t,e,r,i,s){return ta(this,void 0,void 0,function*(){N(`Uploading chunk of size ${s-i+1} bytes at offset ${i} with content range: ${B1e(i,s)}`);let n={"Content-Type":"application/octet-stream","Content-Range":B1e(i,s)},o=yield Fw(`uploadChunk (start: ${i}, end: ${s})`,()=>ta(this,void 0,void 0,function*(){return t.sendStream("PATCH",e,r(),n)}));if(!Lk(o.message.statusCode))throw new Error(`Cache service responded with ${o.message.statusCode} during upload chunk.`)})}function C1t(t,e,r,i){return ta(this,void 0,void 0,function*(){let s=tf(r),n=A_(`caches/${e.toString()}`),o=Mw.openSync(r,"r"),a=iK(i),c=kV("uploadConcurrency",a.uploadConcurrency),u=kV("uploadChunkSize",a.uploadChunkSize),l=[...new Array(c).keys()];N("Awaiting all uploads");let f=0;try{yield Promise.all(l.map(()=>ta(this,void 0,void 0,function*(){for(;f<s;){let h=Math.min(s-f,u),d=f,m=f+h-1;f+=u,yield w1t(t,n,()=>Mw.createReadStream(r,{fd:o,start:d,end:m,autoClose:!1}).on("error",A=>{throw new Error(`Cache upload failed because file read failed with ${A.message}`)}),d,m)}})))}finally{Mw.closeSync(o)}})}function I1t(t,e,r){return ta(this,void 0,void 0,function*(){let i={size:r};return yield p_("commitCache",()=>ta(this,void 0,void 0,function*(){return t.postJson(A_(`caches/${e.toString()}`),i)}))})}function aK(t,e,r,i){return ta(this,void 0,void 0,function*(){if(iK(i).useAzureSdk){if(!r)throw new Error("Azure Storage SDK can only be used when a signed URL is provided.");yield h1e(r,e,i)}else{let n=nK();N("Upload cache"),yield C1t(n,t,e,i),N("Commiting cache");let o=tf(e);L(`Cache Size: ~${Math.round(o/(1024*1024))} MB (${o} B)`);let a=yield I1t(n,t,o);if(!Lk(a.statusCode))throw new Error(`Cache service responded with ${a.statusCode} during commit cache.`);L("Cache saved successfully")}})}var C2e=k(m2e(),1),vi=k(Bi(),1),$a=k(Bi(),1),ky=k(Bi(),1),Ly=k(Bi(),1),Fy=k(Bi(),1);var tX=k(Bi(),1),rX=k(Bi(),1),E2e=k(Bi(),1),b2e=k(Bi(),1),w2e=k(Bi(),1);var XK=k(Bi(),1),ZK=k(Bi(),1),A2e=k(Bi(),1),g2e=k(Bi(),1),y2e=k(Bi(),1),eX=class extends y2e.MessageType{constructor(){super("github.actions.results.entities.v1.CacheScope",[{no:1,name:"scope",kind:"scalar",T:9},{no:2,name:"permission",kind:"scalar",T:3}])}create(e){let r={scope:"",permission:"0"};return globalThis.Object.defineProperty(r,g2e.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,A2e.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,i,s){let n=s??this.create(),o=e.pos+r;for(;e.pos<o;){let[a,c]=e.tag();switch(a){case 1:n.scope=e.string();break;case 2:n.permission=e.int64().toString();break;default:let u=i.readUnknownField;if(u==="throw")throw new globalThis.Error(`Unknown field ${a} (wire type ${c}) for ${this.typeName}`);let l=e.skip(c);u!==!1&&(u===!0?ZK.UnknownFieldHandler.onRead:u)(this.typeName,n,a,c,l)}}return n}internalBinaryWrite(e,r,i){e.scope!==""&&r.tag(1,XK.WireType.LengthDelimited).string(e.scope),e.permission!=="0"&&r.tag(2,XK.WireType.Varint).int64(e.permission);let s=i.writeUnknownFields;return s!==!1&&(s==!0?ZK.UnknownFieldHandler.onWrite:s)(this.typeName,e,r),r}},vL=new eX;var iX=class extends w2e.MessageType{constructor(){super("github.actions.results.entities.v1.CacheMetadata",[{no:1,name:"repository_id",kind:"scalar",T:3},{no:2,name:"scope",kind:"message",repeat:1,T:()=>vL}])}create(e){let r={repositoryId:"0",scope:[]};return globalThis.Object.defineProperty(r,b2e.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,E2e.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,i,s){let n=s??this.create(),o=e.pos+r;for(;e.pos<o;){let[a,c]=e.tag();switch(a){case 1:n.repositoryId=e.int64().toString();break;case 2:n.scope.push(vL.internalBinaryRead(e,e.uint32(),i));break;default:let u=i.readUnknownField;if(u==="throw")throw new globalThis.Error(`Unknown field ${a} (wire type ${c}) for ${this.typeName}`);let l=e.skip(c);u!==!1&&(u===!0?rX.UnknownFieldHandler.onRead:u)(this.typeName,n,a,c,l)}}return n}internalBinaryWrite(e,r,i){e.repositoryId!=="0"&&r.tag(1,tX.WireType.Varint).int64(e.repositoryId);for(let n=0;n<e.scope.length;n++)vL.internalBinaryWrite(e.scope[n],r.tag(2,tX.WireType.LengthDelimited).fork(),i).join();let s=i.writeUnknownFields;return s!==!1&&(s==!0?rX.UnknownFieldHandler.onWrite:s)(this.type
Line truncated
|
||||
`));let i=yield yX(r,"create");yield EX(i,t)})}var rC=function(t,e,r,i){function s(n){return n instanceof r?n:new r(function(o){o(n)})}return new(r||(r=Promise))(function(n,o){function a(l){try{u(i.next(l))}catch(f){o(f)}}function c(l){try{u(i.throw(l))}catch(f){o(f)}}function u(l){l.done?n(l.value):s(l.value).then(a,c)}u((i=i.apply(t,e||[])).next())})},cl=class t extends Error{constructor(e){super(e),this.name="ValidationError",Object.setPrototypeOf(this,t.prototype)}},tC=class t extends Error{constructor(e){super(e),this.name="ReserveCacheError",Object.setPrototypeOf(this,t.prototype)}},NL=class t extends Error{constructor(e){super(e),this.name="FinalizeCacheError",Object.setPrototypeOf(this,t.prototype)}};function v2e(t){if(!t||t.length===0)throw new cl("Path Validation Error: At least one directory or file path is required")}function CX(t){if(t.length>512)throw new cl(`Key Validation Error: ${t} cannot be larger than 512 characters.`);if(!/^[^,]*$/.test(t))throw new cl(`Key Validation Error: ${t} cannot contain commas.`)}function IX(){return m_()==="v2"?!!process.env.ACTIONS_RESULTS_URL:!!process.env.ACTIONS_CACHE_URL}function x2e(t,e,r,i){return rC(this,arguments,void 0,function*(s,n,o,a,c=!1){let u=m_();return N(`Cache service version: ${u}`),v2e(s),u==="v2"?yield FDt(s,n,o,a,c):yield LDt(s,n,o,a,c)})}function LDt(t,e,r,i){return rC(this,arguments,void 0,function*(s,n,o,a,c=!1){o=o||[];let u=[n,...o];if(N("Resolved Keys:"),N(JSON.stringify(u)),u.length>10)throw new cl("Key Validation Error: Keys are limited to a maximum of 10.");for(let h of u)CX(h);let l=yield Ax(),f="";try{let h=yield x1e(u,s,{compressionMethod:l,enableCrossOsArchive:c});if(!h?.archiveLocation)return;if(a?.lookupOnly)return L("Lookup only - skipping download"),h.cacheKey;f=D_.join(yield px(),Rm(l)),N(`Archive Path: ${f}`),yield oK(h.archiveLocation,f,a),Kl()&&(yield T_(f,l));let d=tf(f);return L(`Cache Size: ~${Math.round(d/(1024*1024))} MB (${d} B)`),yield bX(f,l),L("Cache restored successfully"),h.cacheKey}catch(h){let d=h;if(d.name===cl.name)throw h;d instanceof Wl&&typeof d.statusCode=="number"&&d.statusCode>=500?Wu(`Failed to restore: ${h.message}`):st(`Failed to restore: ${h.message}`)}finally{try{yield mx(f)}catch(h){N(`Failed to delete archive: ${h}`)}}})}function FDt(t,e,r,i){return rC(this,arguments,void 0,function*(s,n,o,a,c=!1){a=Object.assign(Object.assign({},a),{useAzureSdk:!0}),o=o||[];let u=[n,...o];if(N("Resolved Keys:"),N(JSON.stringify(u)),u.length>10)throw new cl("Key Validation Error: Keys are limited to a maximum of 10.");for(let f of u)CX(f);let l="";try{let f=gX(),h=yield Ax(),d={key:n,restoreKeys:o,version:lw(s,h,c)},m=yield f.GetCacheEntryDownloadURL(d);if(!m.ok){N(`Cache not found for version ${d.version} of keys: ${u.join(", ")}`);return}if(d.key!==m.matchedKey?L(`Cache hit for restore-key: ${m.matchedKey}`):L(`Cache hit for: ${m.matchedKey}`),a?.lookupOnly)return L("Lookup only - skipping download"),m.matchedKey;l=D_.join(yield px(),Rm(h)),N(`Archive path: ${l}`),N(`Starting download of archive to: ${l}`),yield oK(m.signedDownloadUrl,l,a);let y=tf(l);return L(`Cache Size: ~${Math.round(y/(1024*1024))} MB (${y} B)`),Kl()&&(yield T_(l,h)),yield bX(l,h),L("Cache restored successfully"),m.matchedKey}catch(f){let h=f;if(h.name===cl.name)throw f;h instanceof Wl&&typeof h.statusCode=="number"&&h.statusCode>=500?Wu(`Failed to restore: ${f.message}`):st(`Failed to restore: ${f.message}`)}finally{try{l&&(yield mx(l))}catch(f){N(`Failed to delete archive: ${f}`)}}})}function SX(t,e,r){return rC(this,arguments,void 0,function*(i,s,n,o=!1){let a=m_();return N(`Cache service version: ${a}`),v2e(i),CX(s),a==="v2"?yield UDt(i,s,n,o):yield MDt(i,s,n,o)})}function MDt(t,e,r){return rC(this,arguments,void 0,function*(i,s,n,o=!1){var a,c,u,l,f;let h=yield Ax(),d=-1,m=yield QV(i);if(N("Cache Paths:"),N(`${JSON.stringify(m)}`),m.length===0)throw new Error("Path Validation Error: Path(s) specified in the action for caching do(es) not exist, hence no cache is being saved.");let A=yield px(),y=D_.join(A,Rm(h));N(`Archive Path: ${y}`);try{yield wX(A,m,h),Kl()&&(yield T_(y,h));let g=10*1024*1024*1024,E=tf(y);if(N(`File Size: ${E}`),E>g&&!sK())throw new Error(`Cache size of ~${Math.round(E/(1024*1024))} MB (${E} B) is over the 10GB limit, not saving cache.`);N("Reserving Cache");let w=yield _1e(s,i,{compressionMethod:h,enableCrossOsArchive:o,cacheSize:E});if(!((a=w?.result)===null||a===void 0)&&a.cacheId)d=(c=w?.result)===null||c===void 0?void 0:c.cacheId;else throw w?.statusCode===400?new Error((l=(u=w?.error)===null||u===void 0?void 0:u.message)!==null&&l!==void 0?l:`Cache size of ~${Math.round(E/(1024*1024))} MB (${E} B) is over the data cap limit, not saving cache.`):new tC(`Unable to reserve cache with key ${s}, another job may be creating this cache. More details: ${(f=w?.error)===null||f===void 0?void 0:f.message}`);N(`Saving Cache (ID: ${d})`),yield aK(d,y,"",n)}catch(g){let E=g;if(E.name===cl.name)throw g;E.name===tC.name
Line truncated
|
||||
`,o).length:f,u?(a===null?0:a.length)+c.length:0,u?c.length+f:0);return h<d},parse:function(i,s,n,o){let{bom:a,comment_no_infix:c,encoding:u,from_line:l,ltrim:f,max_record_size:h,raw:d,relax_quotes:m,rtrim:A,skip_empty_lines:y,to:g,to_line:E}=this.options,{comment:w,escape:S,quote:D,record_delimiter:q}=this.options,{bomSkipped:T,previousBuf:$,rawBuffer:O,escapeIsQuote:j}=this.state,F;if($===void 0)if(i===void 0){o();return}else F=i;else $!==void 0&&i===void 0?F=$:F=Buffer.concat([$,i]);if(T===!1)if(a===!1)this.state.bomSkipped=!0;else if(F.length<3){if(s===!1){this.state.previousBuf=F;return}}else{for(let Te in oC)if(oC[Te].compare(F,0,oC[Te].length)===0){let he=oC[Te].length;this.state.bufBytesStart+=he,F=F.slice(he);let Qe=ZX({...this.original_options,encoding:Te});for(let X in Qe)this.options[X]=Qe[X];({comment:w,escape:S,quote:D}=this.options);break}this.state.bomSkipped=!0}let Z=F.length,J;for(J=0;J<Z&&!this.__needMoreData(J,Z,s);J++){if(this.state.wasRowDelimiter===!0&&(this.info.lines++,this.state.wasRowDelimiter=!1),E!==-1&&this.info.lines>E){this.state.stop=!0,o();return}this.state.quoting===!1&&q.length===0&&this.__autoDiscoverRecordDelimiter(F,J)&&(q=this.options.record_delimiter);let Te=F[J];if(d===!0&&O.append(Te),(Te===ukt||Te===lkt)&&this.state.wasRowDelimiter===!1&&(this.state.wasRowDelimiter=!0),this.state.escaping===!0)this.state.escaping=!1;else{if(S!==null&&this.state.quoting===!0&&this.__isEscape(F,J,Te)&&J+S.length<Z)if(j){if(this.__isQuote(F,J+S.length)){this.state.escaping=!0,J+=S.length-1;continue}}else{this.state.escaping=!0,J+=S.length-1;continue}if(this.state.commenting===!1&&this.__isQuote(F,J))if(this.state.quoting===!0){let X=F[J+D.length],Re=A&&this.__isCharTrimable(F,J+D.length),Ce=w!==null&&this.__compareBytes(w,F,J+D.length,X),_t=this.__isDelimiter(F,J+D.length,X),kt=q.length===0?this.__autoDiscoverRecordDelimiter(F,J+D.length):this.__isRecordDelimiter(X,F,J+D.length);if(S!==null&&this.__isEscape(F,J,Te)&&this.__isQuote(F,J+S.length))J+=S.length-1;else if(!X||_t||kt||Ce||Re){this.state.quoting=!1,this.state.wasQuoting=!0,J+=D.length-1;continue}else if(m===!1){let Ji=this.__error(new Gt("CSV_INVALID_CLOSING_QUOTE",["Invalid Closing Quote:",`got "${String.fromCharCode(X)}"`,`at line ${this.info.lines}`,"instead of delimiter, record delimiter, trimable character","(if activated) or comment"],this.options,this.__infoField()));if(Ji!==void 0)return Ji}else this.state.quoting=!1,this.state.wasQuoting=!0,this.state.field.prepend(D),J+=D.length-1}else if(this.state.field.length!==0){if(m===!1){let X=this.__infoField(),Re=Object.keys(oC).map(_t=>oC[_t].equals(this.state.field.toString())?_t:!1).filter(Boolean)[0],Ce=this.__error(new Gt("INVALID_OPENING_QUOTE",["Invalid Opening Quote:",`a quote is found on field ${JSON.stringify(X.column)} at line ${X.lines}, value is ${JSON.stringify(this.state.field.toString(u))}`,Re?`(${Re} bom)`:void 0],this.options,X,{field:this.state.field}));if(Ce!==void 0)return Ce}}else{this.state.quoting=!0,J+=D.length-1;continue}if(this.state.quoting===!1){let X=this.__isRecordDelimiter(Te,F,J);if(X!==0){if(this.state.commenting&&this.state.wasQuoting===!1&&this.state.record.length===0&&this.state.field.length===0)this.info.comment_lines++;else{if(this.state.enabled===!1&&this.info.lines+(this.state.wasRowDelimiter===!0?1:0)>=l){this.state.enabled=!0,this.__resetField(),this.__resetRecord(),J+=X-1;continue}if(y===!0&&this.state.wasQuoting===!1&&this.state.record.length===0&&this.state.field.length===0){this.info.empty_lines++,J+=X-1;continue}this.info.bytes=this.state.bufBytesStart+J;let _t=this.__onField();if(_t!==void 0)return _t;this.info.bytes=this.state.bufBytesStart+J+X;let kt=this.__onRecord(n);if(kt!==void 0)return kt;if(g!==-1&&this.info.records>=g){this.state.stop=!0,o();return}}this.state.commenting=!1,J+=X-1;continue}if(this.state.commenting)continue;if(w!==null&&(c===!1||this.state.record.length===0&&this.state.field.length===0)&&this.__compareBytes(w,F,J,Te)!==0){this.state.commenting=!0;continue}let Re=this.__isDelimiter(F,J,Te);if(Re!==0){this.info.bytes=this.state.bufBytesStart+J;let Ce=this.__onField();if(Ce!==void 0)return Ce;J+=Re-1;continue}}}if(this.state.commenting===!1&&h!==0&&this.state.record_length+this.state.field.length>h)return this.__error(new Gt("CSV_MAX_RECORD_SIZE",["Max Record Size:","record exceed the maximum number of tolerated bytes",`of ${h}`,`at line ${this.info.lines}`],this.options,this.__infoField()));let he=f===!1||this.state.quoting===!0||this.state.field.length!==0||!this.__isCharTrimable(F,J),Qe=A===!1||this.state.wasQuoting===!1;if(he===!0&&Qe===!0)this.state.field.append(Te);else{if(A===!0&&!this.__isCharTrimable(F,J))return this.__error(new Gt("CSV_NON_TRIMABLE_CHAR_AFTER_CLOSING_QUOTE",["Invalid Closing Quote:","found non trimable byte after quote",`at line ${this.info.lines}`],this.options,this.__infoField()));he===!1&&(J+=this.__isCharTrimable(F,J)-1);continue}}if(s===!0)if(this.state.quoting===!0){let
Line truncated
|
||||
`,n),Buffer.from(`
|
||||
`,n),Buffer.from("\r",n)];e:for(let a=0;a<o.length;a++){let c=o[a].length;for(let u=0;u<c;u++)if(o[a][u]!==i[s+u])continue e;return this.options.record_delimiter.push(o[a]),this.state.recordDelimiterMaxLength=o[a].length,o[a].length}return 0},__error:function(i){let{encoding:s,raw:n,skip_records_with_error:o}=this.options,a=typeof i=="string"?new Error(i):i;if(o){if(this.state.recordHasError=!0,this.options.on_skip!==void 0)try{this.options.on_skip(a,n?this.state.rawBuffer.toString(s):void 0)}catch(c){return c}return}else return a},__infoDataSet:function(){return{...this.info,columns:this.options.columns}},__infoRecord:function(){let{columns:i,raw:s,encoding:n}=this.options;return{...this.__infoDataSet(),bytes_records:this.info.bytes,error:this.state.error,header:i===!0,index:this.state.record.length,raw:s?this.state.rawBuffer.toString(n):void 0}},__infoField:function(){let{columns:i}=this.options,s=Array.isArray(i),n=this.info.bytes_records;return{...this.__infoRecord(),bytes_records:n,column:s===!0?i.length>this.state.record.length?i[this.state.record.length].name:null:this.state.record.length,quoting:this.state.wasQuoting}}}};var Ka=function(t,e={}){typeof t=="string"&&(t=Buffer.from(t));let r=e&&e.objname?{}:[],i=DOe(e),s=a=>{i.options.objname===void 0?r.push(a):r[a[0]]=a[1]},n=()=>{},o=i.parse(t,!0,s,n);if(o!==void 0)throw o;return r};var Xe=class t{static getInputList(e,r){return this.getList(Tc(e),r)}static getList(e,r){let i=[];if(e=="")return i;let s=Ka(e,{columns:!1,relaxQuotes:!0,comment:r?.comment,comment_no_infix:r?.commentNoInfix,relaxColumnCount:!0,skipEmptyLines:!0,quote:r?.quote});for(let n of s)n.length==1?r?.ignoreComma?i.push(n[0]):i.push(...n[0].split(",")):r?.ignoreComma?i.push(n.join(",")):i.push(...n);return i.filter(n=>n).map(n=>n.trim())}static getInputNumber(e){let r=Tc(e);if(r)return parseInt(r)}static async asyncForEach(e,r){for(let i=0;i<e.length;i++)await r(e[i],i,e)}static isValidURL(e){let r;try{r=new URL(e)}catch{return!1}return r.protocol==="http:"||r.protocol==="https:"}static isValidRef(e){if(t.isValidURL(e))return!0;for(let r of["git://","github.com/","git@"])if(e.startsWith(r))return!0;return!1}static async powershellCommand(e,r){let i=await Js("powershell",!0),s=e.replace(/'/g,"''").replace(/"|\n|\r/g,""),n=[];if(r)for(let o in r)n.push(`-${o} '${r[o].replace(/'/g,"''").replace(/"|\n|\r/g,"")}'`);return{command:`"${i}"`,args:["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",`& '${s}' ${n.join(" ")}`]}}static isDirectory(e){try{return OOe.default.lstatSync(e).isDirectory()}catch{}return!1}static trimPrefix(e,r){return!e||!r||e.indexOf(r)!==0?e:e.substring(r.length)}static trimSuffix(e,r){if(!e||!r)return e;let i=e.lastIndexOf(r);return i===-1||i+r.length!==e.length?e:e.substring(0,i)}static sleep(e){return new Promise(r=>setTimeout(r,e*1e3))}static hash(e){return zX.default.createHash("sha256").update(e).digest("hex")}static parseBool(e){if(e===void 0)return!1;switch(e){case"1":case"t":case"T":case"true":case"TRUE":case"True":return!0;case"0":case"f":case"F":case"false":case"FALSE":case"False":return!1;default:throw new Error(`parseBool syntax error: ${e}`)}}static parseBoolOrDefault(e,r=!1){try{return this.parseBool(e)}catch{return r}}static formatFileSize(e){if(e===0)return"0 Bytes";let r=1024,i=["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"],s=Math.floor(Math.log(e)/Math.log(r));return parseFloat((e/Math.pow(r,s)).toFixed(2))+" "+i[s]}static generateRandomString(e=10){return zX.default.randomBytes(Math.ceil(e/2)).toString("hex").slice(0,e)}static stringToUnicodeEntities(e){return Array.from(e).map(r=>`&#x${r.charCodeAt(0).toString(16)};`).join("")}static countLines(e){return e.split(/\r\n|\r|\n/).length}static isPathRelativeTo(e,r){let i=L_.default.resolve(e);return L_.default.resolve(r).startsWith(i.endsWith(L_.default.sep)?i:`${i}${L_.default.sep}`)}static formatDuration(e){if(e===0)return"0s";let r=Math.floor(e/1e9),i=Math.floor(r/3600),s=Math.floor(r%3600/60),n=r%60,o=[];return i&&o.push(`${i}h`),s&&o.push(`${s}m`),(n||o.length===0)&&o.push(`${n}s`),o.join("")}};var xi=class t{static get configDir(){return process.env.DOCKER_CONFIG||M_.default.join(POe.default.homedir(),".docker")}static configFile(){let e=M_.default.join(t.configDir,"config.json");if(VX.default.existsSync(e))return JSON.parse(VX.default.readFileSync(e,{encoding:"utf-8"}))}static async isAvailable(){return await Js("docker",!0).then(e=>(T(`Docker.isAvailable ok: ${e}`),!0)).catch(e=>(T(`Docker.isAvailable error: ${e}`),!1))}static async isDaemonRunning(){try{return await t.getExecOutput(["version"],{silent:!0}),!0}catch{return!1}}static async exec(e,r){return Ue.exec("docker",e,t.execOptions(r))}static async getExecOutput(e,r){return Ue.getExecOutput("docker",e,t.execOptions(r))}static execOptions(e){return e||(e={}),e.env?e.env.DOCKER_CONTENT_TRUST="false":e.env=Object.assign({},process.env,{DOCKER_CONTENT_TRUST:"false"}),e}static async context(e){
Line truncated
|
||||
`,n),Buffer.from("\r",n)];e:for(let a=0;a<o.length;a++){let c=o[a].length;for(let u=0;u<c;u++)if(o[a][u]!==i[s+u])continue e;return this.options.record_delimiter.push(o[a]),this.state.recordDelimiterMaxLength=o[a].length,o[a].length}return 0},__error:function(i){let{encoding:s,raw:n,skip_records_with_error:o}=this.options,a=typeof i=="string"?new Error(i):i;if(o){if(this.state.recordHasError=!0,this.options.on_skip!==void 0)try{this.options.on_skip(a,n?this.state.rawBuffer.toString(s):void 0)}catch(c){return c}return}else return a},__infoDataSet:function(){return{...this.info,columns:this.options.columns}},__infoRecord:function(){let{columns:i,raw:s,encoding:n}=this.options;return{...this.__infoDataSet(),bytes_records:this.info.bytes,error:this.state.error,header:i===!0,index:this.state.record.length,raw:s?this.state.rawBuffer.toString(n):void 0}},__infoField:function(){let{columns:i}=this.options,s=Array.isArray(i),n=this.info.bytes_records;return{...this.__infoRecord(),bytes_records:n,column:s===!0?i.length>this.state.record.length?i[this.state.record.length].name:null:this.state.record.length,quoting:this.state.wasQuoting}}}};var Ya=function(t,e={}){typeof t=="string"&&(t=Buffer.from(t));let r=e&&e.objname?{}:[],i=jOe(e),s=a=>{i.options.objname===void 0?r.push(a):r[a[0]]=a[1]},n=()=>{},o=i.parse(t,!0,s,n);if(o!==void 0)throw o;return r};var Xe=class t{static getInputList(e,r){return this.getList(Rc(e),r)}static getList(e,r){let i=[];if(e=="")return i;let s=Ya(e,{columns:!1,relaxQuotes:!0,comment:r?.comment,comment_no_infix:r?.commentNoInfix,relaxColumnCount:!0,skipEmptyLines:!0,quote:r?.quote});for(let n of s)n.length==1?r?.ignoreComma?i.push(n[0]):i.push(...n[0].split(",")):r?.ignoreComma?i.push(n.join(",")):i.push(...n);return i.filter(n=>n).map(n=>n.trim())}static getInputNumber(e){let r=Rc(e);if(r)return parseInt(r)}static async asyncForEach(e,r){for(let i=0;i<e.length;i++)await r(e[i],i,e)}static isValidURL(e){let r;try{r=new URL(e)}catch{return!1}return r.protocol==="http:"||r.protocol==="https:"}static isValidRef(e){if(t.isValidURL(e))return!0;for(let r of["git://","github.com/","git@"])if(e.startsWith(r))return!0;return!1}static async powershellCommand(e,r){let i=await Js("powershell",!0),s=e.replace(/'/g,"''").replace(/"|\n|\r/g,""),n=[];if(r)for(let o in r)n.push(`-${o} '${r[o].replace(/'/g,"''").replace(/"|\n|\r/g,"")}'`);return{command:`"${i}"`,args:["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",`& '${s}' ${n.join(" ")}`]}}static isDirectory(e){try{return zOe.default.lstatSync(e).isDirectory()}catch{}return!1}static trimPrefix(e,r){return!e||!r||e.indexOf(r)!==0?e:e.substring(r.length)}static trimSuffix(e,r){if(!e||!r)return e;let i=e.lastIndexOf(r);return i===-1||i+r.length!==e.length?e:e.substring(0,i)}static sleep(e){return new Promise(r=>setTimeout(r,e*1e3))}static hash(e){return eZ.default.createHash("sha256").update(e).digest("hex")}static parseBool(e){if(e===void 0)return!1;switch(e){case"1":case"t":case"T":case"true":case"TRUE":case"True":return!0;case"0":case"f":case"F":case"false":case"FALSE":case"False":return!1;default:throw new Error(`parseBool syntax error: ${e}`)}}static parseBoolOrDefault(e,r=!1){try{return this.parseBool(e)}catch{return r}}static formatFileSize(e){if(e===0)return"0 Bytes";let r=1024,i=["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"],s=Math.floor(Math.log(e)/Math.log(r));return parseFloat((e/Math.pow(r,s)).toFixed(2))+" "+i[s]}static generateRandomString(e=10){return eZ.default.randomBytes(Math.ceil(e/2)).toString("hex").slice(0,e)}static stringToUnicodeEntities(e){return Array.from(e).map(r=>`&#x${r.charCodeAt(0).toString(16)};`).join("")}static countLines(e){return e.split(/\r\n|\r|\n/).length}static isPathRelativeTo(e,r){let i=U_.default.resolve(e);return U_.default.resolve(r).startsWith(i.endsWith(U_.default.sep)?i:`${i}${U_.default.sep}`)}static formatDuration(e){if(e===0)return"0s";let r=Math.floor(e/1e9),i=Math.floor(r/3600),s=Math.floor(r%3600/60),n=r%60,o=[];return i&&o.push(`${i}h`),s&&o.push(`${s}m`),(n||o.length===0)&&o.push(`${n}s`),o.join("")}};var xi=class t{static get configDir(){return process.env.DOCKER_CONFIG||q_.default.join(VOe.default.homedir(),".docker")}static configFile(){let e=q_.default.join(t.configDir,"config.json");if(tZ.default.existsSync(e))return JSON.parse(tZ.default.readFileSync(e,{encoding:"utf-8"}))}static async isAvailable(){return await Js("docker",!0).then(e=>(N(`Docker.isAvailable ok: ${e}`),!0)).catch(e=>(N(`Docker.isAvailable error: ${e}`),!1))}static async isDaemonRunning(){try{return await t.getExecOutput(["version"],{silent:!0}),!0}catch{return!1}}static async exec(e,r){return Ue.exec("docker",e,t.execOptions(r))}static async getExecOutput(e,r){return Ue.getExecOutput("docker",e,t.execOptions(r))}static execOptions(e){return e||(e={}),e.env?e.env.DOCKER_CONTENT_TRUST="false":e.env=Object.assign({},process.env,{DOCKER_CONTENT_TRUST:"false"}),e}static async context(e){
Line truncated
|
||||
`+t.errors.map(e=>` - ${e.message}`).join(`
|
||||
`)}var Mkt=class extends Error{constructor(t,e,r){super(Lkt(r)),this.request=t,this.headers=e,this.response=r,this.errors=r.errors,this.data=r.data,Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}name="GraphqlResponseError";errors;data},Fkt=["method","baseUrl","url","headers","request","query","mediaType","operationName"],Ukt=["query","method","url"],yPe=/\/api\/v3\/?$/;function qkt(t,e,r){if(r){if(typeof e=="string"&&"query"in r)return Promise.reject(new Error('[@octokit/graphql] "query" cannot be used as variable name'));for(let o in r)if(Ukt.includes(o))return Promise.reject(new Error(`[@octokit/graphql] "${o}" cannot be used as variable name`))}let i=typeof e=="string"?Object.assign({query:e},r):e,s=Object.keys(i).reduce((o,a)=>Fkt.includes(a)?(o[a]=i[a],o):(o.variables||(o.variables={}),o.variables[a]=i[a],o),{}),n=i.baseUrl||t.endpoint.DEFAULTS.baseUrl;return yPe.test(n)&&(s.url=n.replace(yPe,"/api/graphql")),t(s).then(o=>{if(o.data.errors){let a={};for(let c of Object.keys(o.headers))a[c]=o.headers[c];throw new Mkt(s,a,o.data)}return o.data.data})}function rZ(t,e){let r=t.defaults(e);return Object.assign((s,n)=>qkt(r,s,n),{defaults:rZ.bind(null,r),endpoint:r.endpoint})}var PHr=rZ(G_,{headers:{"user-agent":`octokit-graphql.js/${kkt} ${Vm()}`},method:"POST",url:"/graphql"});function EPe(t){return rZ(t,{method:"POST",url:"/graphql"})}var iZ="(?:[a-zA-Z0-9_-]+)",bPe="\\.",wPe=new RegExp(`^${iZ}${bPe}${iZ}${bPe}${iZ}$`),Gkt=wPe.test.bind(wPe);async function Hkt(t){let e=Gkt(t),r=t.startsWith("v1.")||t.startsWith("ghs_"),i=t.startsWith("ghu_");return{type:"token",token:t,tokenType:e?"app":r?"installation":i?"user-to-server":"oauth"}}function jkt(t){return t.split(/\./).length===3?`bearer ${t}`:`token ${t}`}async function zkt(t,e,r,i){let s=e.endpoint.merge(r,i);return s.headers.authorization=jkt(t),e(s)}var CPe=function(e){if(!e)throw new Error("[@octokit/auth-token] No token passed to createTokenAuth");if(typeof e!="string")throw new Error("[@octokit/auth-token] Token passed to createTokenAuth is not a string");return e=e.replace(/^(token|bearer) +/i,""),Object.assign(Hkt.bind(null,e),{hook:zkt.bind(null,e)})};var sZ="7.0.6";var IPe=()=>{},Vkt=console.warn.bind(console),$kt=console.error.bind(console);function Wkt(t={}){return typeof t.debug!="function"&&(t.debug=IPe),typeof t.info!="function"&&(t.info=IPe),typeof t.warn!="function"&&(t.warn=Vkt),typeof t.error!="function"&&(t.error=$kt),t}var SPe=`octokit-core.js/${sZ} ${Vm()}`,ZL=class{static VERSION=sZ;static defaults(e){return class extends this{constructor(...i){let s=i[0]||{};if(typeof e=="function"){super(e(s));return}super(Object.assign({},e,s,s.userAgent&&e.userAgent?{userAgent:`${s.userAgent} ${e.userAgent}`}:null))}}}static plugins=[];static plugin(...e){let r=this.plugins;return class extends this{static plugins=r.concat(e.filter(s=>!r.includes(s)))}}constructor(e={}){let r=new KOe.Collection,i={baseUrl:G_.endpoint.DEFAULTS.baseUrl,headers:{},request:Object.assign({},e.request,{hook:r.bind(null,"request")}),mediaType:{previews:[],format:""}};if(i.headers["user-agent"]=e.userAgent?`${e.userAgent} ${SPe}`:SPe,e.baseUrl&&(i.baseUrl=e.baseUrl),e.previews&&(i.mediaType.previews=e.previews),e.timeZone&&(i.headers["time-zone"]=e.timeZone),this.request=G_.defaults(i),this.graphql=EPe(this.request).defaults(i),this.log=Wkt(e.log),this.hook=r,e.authStrategy){let{authStrategy:n,...o}=e,a=n(Object.assign({request:this.request,log:this.log,octokit:this,octokitOptions:o},e.auth));r.wrap("request",a.hook),this.auth=a}else if(!e.auth)this.auth=async()=>({type:"unauthenticated"});else{let n=CPe(e.auth);r.wrap("request",n.hook),this.auth=n}let s=this.constructor;for(let n=0;n<s.plugins.length;++n)Object.assign(this,s.plugins[n](this,e))}request;graphql;log;hook;auth};var nZ="17.0.0";var Jkt={actions:{addCustomLabelsToSelfHostedRunnerForOrg:["POST /orgs/{org}/actions/runners/{runner_id}/labels"],addCustomLabelsToSelfHostedRunnerForRepo:["POST /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],addRepoAccessToSelfHostedRunnerGroupInOrg:["PUT /orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/{repository_id}"],addSelectedRepoToOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}"],addSelectedRepoToOrgVariable:["PUT /orgs/{org}/actions/variables/{name}/repositories/{repository_id}"],approveWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/approve"],cancelWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/cancel"],createEnvironmentVariable:["POST /repos/{owner}/{repo}/environments/{environment_name}/variables"],createHostedRunnerForOrg:["POST /orgs/{org}/actions/hosted-runners"],createOrUpdateEnvironmentSecret:["PUT /repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}"],createOrUpdateOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}"],createOrUpdateRepoSecret:["PUT /repos/{owner}/{repo}/actions/secrets/{secret_name}"],createOrgVaria
Line truncated
|
||||
More info: ${c.url}`);let d=c.range&&c.range.length>0?c.range[0]?.start.line:void 0,m=!1;for(let A of o)if(A.remote||A.path.endsWith(u)&&A.content===l){a.push({title:f,message:h,file:A.path,startLine:d}),m=!0;break}m||T(`Buildx.convertWarningsToGitHubAnnotations: skipping warning without matching Dockerfile ${u}: ${f}`)}return a}};var fZ=k(require("fs"),1),hZ=k(require("path"),1);var rM=class t{buildx;constructor(e){this.buildx=e?.buildx||new $t}async getCommand(e){return await this.buildx.getCommand(["history",...e])}async getInspectCommand(e){return await this.getCommand(["inspect",...e])}async getExportCommand(e){return await this.getCommand(["export",...e])}async inspect(e){let r=["--format","json"];e.builder&&r.push("--builder",e.builder),e.ref&&r.push(e.ref);let i=await this.getInspectCommand(r);return await Ue.getExecOutput(i.command,i.args,{ignoreReturnCode:!0,silent:!0}).then(s=>{if(s.stderr.length>0&&s.exitCode!=0)throw new Error(s.stderr.trim());return JSON.parse(s.stdout)})}async export(e){if(!await this.buildx.versionSatisfies(">=0.23.0"))throw new Error("Buildx >= 0.23.0 is required to export a build record");let r="",i="",s=[];for(let f of e.refs){let h=f.split("/");if(h.length!=3)throw new Error(`Invalid build ref: ${f}`);s.push(h[2]),r||(r=h[0]),i||(i=h[1])}if(s.length===0)throw new Error("No build refs provided");let n=hZ.default.join(Nt.tmpDir(),"export");L(`exporting build record to ${n}`),fZ.default.mkdirSync(n,{recursive:!0}),await this.buildx.versionSatisfies("<0.24.0")&&await Xe.sleep(3);let o={};if(!e.noSummaries)for(let f of s)await this.inspect({ref:f,builder:r}).then(h=>{let d="";h.Error&&h.Status!=="canceled"&&(h.Error.Message?d=h.Error.Message:h.Error.Name&&h.Error.Logs&&(d=`=> ${h.Error.Name}
|
||||
${h.Error.Logs}`)),o[f]={name:h.Name,status:h.Status,duration:Xe.formatDuration(h.Duration),numCachedSteps:h.NumCachedSteps,numTotalSteps:h.NumTotalSteps,numCompletedSteps:h.NumCompletedSteps,defaultPlatform:h.Platform?.[0],error:d}});let a=hZ.default.join(n,`${t.exportFilename(s)}.dockerbuild`),c=["--builder",r,"--output",a,...s];await this.buildx.versionSatisfies(">=0.24.0")&&c.push("--finalize");let u=await this.getExportCommand(c);await Ue.getExecOutput(u.command,u.args);let l=fZ.default.statSync(a);return{dockerbuildFilename:a,dockerbuildSize:l.size,builderName:r,nodeName:i,refs:s,summaries:o}}static exportFilename(e){let r=`${gt.context.repo.owner}~${gt.context.repo.repo}~${e[0].substring(0,6).toUpperCase()}`;return e.length>1&&(r+=`+${e.length-1}`),r}};var r6e=k(require("fs"),1),Mse=k(require("path"),1);var NPe=k(require("os"),1);function Gy(){return 8*1024*1024}function iM(){let t=process.env.ACTIONS_RUNTIME_TOKEN;if(!t)throw new Error("Unable to get the ACTIONS_RUNTIME_TOKEN env variable");return t}function DPe(){let t=process.env.ACTIONS_RESULTS_URL;if(!t)throw new Error("Unable to get the ACTIONS_RESULTS_URL env variable");return new URL(t).origin}function aC(){let e=new URL(process.env.GITHUB_SERVER_URL||"https://github.com").hostname.trimEnd().toUpperCase(),r=e==="GITHUB.COM",i=e.endsWith(".GHE.COM"),s=e.endsWith(".LOCALHOST");return!r&&!i&&!s}function OPe(){let t=process.env.GITHUB_WORKSPACE;if(!t)throw new Error("Unable to get the GITHUB_WORKSPACE env variable");return t}function PPe(){let t=NPe.default.cpus().length,e=32;if(t>4){let i=16*t;e=i>300?300:i}let r=process.env.ACTIONS_ARTIFACT_UPLOAD_CONCURRENCY;if(r){let i=parseInt(r);if(isNaN(i)||i<1)throw new Error("Invalid value set for ACTIONS_ARTIFACT_UPLOAD_CONCURRENCY env variable");return i<e?(L("Set concurrency based on the value set in ACTIONS_ARTIFACT_UPLOAD_CONCURRENCY."),i):(L(`ACTIONS_ARTIFACT_UPLOAD_CONCURRENCY is higher than the cap of ${e} based on the number of cpus. Set it to the maximum value allowed.`),e)}return 5}function QPe(){let t=process.env.ACTIONS_ARTIFACT_UPLOAD_TIMEOUT_MS;if(!t)return 3e5;let e=parseInt(t);if(isNaN(e))throw new Error("Invalid value set for ACTIONS_ARTIFACT_UPLOAD_TIMEOUT_MS env variable");return e}function kPe(){let t=process.env.ACTIONS_ARTIFACT_MAX_ARTIFACT_COUNT||"1000",e=parseInt(t);if(isNaN(e)||e<1)throw new Error("Invalid value set for ACTIONS_ARTIFACT_MAX_ARTIFACT_COUNT env variable");return e}var KGe=k(require("fs"),1),XGe=k(require("path"),1);var MZ=k(xr(),1),FZ=k(xr(),1),pQe=k(xr(),1),mQe=k(xr(),1),AQe=k(xr(),1),AC=k(xr(),1),gQe=k(xr(),1),UZ=class extends gQe.MessageType{constructor(){super("google.protobuf.Timestamp",[{no:1,name:"seconds",kind:"scalar",T:3},{no:2,name:"nanos",kind:"scalar",T:5}])}now(){let e=this.create(),r=Date.now();return e.seconds=AC.PbLong.from(Math.floor(r/1e3)).toString(),e.nanos=r%1e3*1e6,e}toDate(e){return new Date(AC.PbLong.from(e.seconds).toNumber()*1e3+Math.ceil(e.nanos/1e6))}fromDate(e){let r=this.create(),i=e.getTime();return r.seconds=AC.PbLong.from(Math.floor(i/1e3)).toString(),r.nanos=i%1e3*1e6,r}internalJsonWrite(e,r){let i=AC.PbLong.from(e.seconds).toNumber()*1e3;if(i<Date.parse("0001-01-01T00:00:00Z")||i>Date.parse("9999-12-31T23:59:59Z"))throw new Error("Unable to encode Timestamp to JSON. Must be from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z inclusive.");if(e.nanos<0)throw new Error("Unable to encode invalid Timestamp to JSON. Nanos must not be negative.");let s="Z";if(e.nanos>0){let n=(e.nanos+1e9).toString().substring(1);n.substring(3)==="000000"?s="."+n.substring(0,3)+"Z":n.substring(6)==="000"?s="."+n.substring(0,6)+"Z":s="."+n+"Z"}return new Date(i).toISOString().replace(".000Z",s)}internalJsonRead(e,r,i){if(typeof e!="string")throw new Error("Unable to parse Timestamp from JSON "+(0,AQe.typeofJsonValue)(e)+".");let s=e.match(/^([0-9]{4})-([0-9]{2})-([0-9]{2})T([0-9]{2}):([0-9]{2}):([0-9]{2})(?:Z|\.([0-9]{3,9})Z|([+-][0-9][0-9]:[0-9][0-9]))$/);if(!s)throw new Error("Unable to parse Timestamp from JSON. Invalid format.");let n=Date.parse(s[1]+"-"+s[2]+"-"+s[3]+"T"+s[4]+":"+s[5]+":"+s[6]+(s[8]?s[8]:"Z"));if(Number.isNaN(n))throw new Error("Unable to parse Timestamp from JSON. Invalid value.");if(n<Date.parse("0001-01-01T00:00:00Z")||n>Date.parse("9999-12-31T23:59:59Z"))throw new globalThis.Error("Unable to parse Timestamp from JSON. Must be from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z inclusive.");return i||(i=this.create()),i.seconds=AC.PbLong.from(n/1e3).toString(),i.nanos=0,s[7]&&(i.nanos=parseInt("1"+s[7]+"0".repeat(9-s[7].length))-1e9),i}create(e){let r={seconds:"0",nanos:0};return globalThis.Object.defineProperty(r,mQe.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,pQe.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,i,s){let n=s??this.create(),o=e.pos+r;for(;e.pos<o;){let[a,c]=e.tag();switch(a){case 1:n.seconds=e.int64().toString();break;case 2:n.nanos=e.int32();break;default:let u=i.readUnknownField;if(u==="thro
Line truncated
|
||||
`," Line feed \\n"]]),RQe=new Map([...Mee,["\\"," Backslash \\"],["/"," Forward slash /"]]);function TQe(t){if(!t)throw new Error("Provided artifact name input during validation is empty");for(let[e,r]of RQe)if(t.includes(e))throw new Error(`The artifact name is not valid: ${t}. Contains the following character: ${r}
|
||||
`)}var iLt=class extends Error{constructor(t,e,r){super(rLt(r)),this.request=t,this.headers=e,this.response=r,this.errors=r.errors,this.data=r.data,Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}name="GraphqlResponseError";errors;data},sLt=["method","baseUrl","url","headers","request","query","mediaType","operationName"],nLt=["query","method","url"],NPe=/\/api\/v3\/?$/;function oLt(t,e,r){if(r){if(typeof e=="string"&&"query"in r)return Promise.reject(new Error('[@octokit/graphql] "query" cannot be used as variable name'));for(let o in r)if(nLt.includes(o))return Promise.reject(new Error(`[@octokit/graphql] "${o}" cannot be used as variable name`))}let i=typeof e=="string"?Object.assign({query:e},r):e,s=Object.keys(i).reduce((o,a)=>sLt.includes(a)?(o[a]=i[a],o):(o.variables||(o.variables={}),o.variables[a]=i[a],o),{}),n=i.baseUrl||t.endpoint.DEFAULTS.baseUrl;return NPe.test(n)&&(s.url=n.replace(NPe,"/api/graphql")),t(s).then(o=>{if(o.data.errors){let a={};for(let c of Object.keys(o.headers))a[c]=o.headers[c];throw new iLt(s,a,o.data)}return o.data.data})}function fZ(t,e){let r=t.defaults(e);return Object.assign((s,n)=>oLt(r,s,n),{defaults:fZ.bind(null,r),endpoint:r.endpoint})}var l6r=fZ(z_,{headers:{"user-agent":`octokit-graphql.js/${tLt} ${$m()}`},method:"POST",url:"/graphql"});function TPe(t){return fZ(t,{method:"POST",url:"/graphql"})}var hZ="(?:[a-zA-Z0-9_-]+)",DPe="\\.",OPe=new RegExp(`^${hZ}${DPe}${hZ}${DPe}${hZ}$`),aLt=OPe.test.bind(OPe);async function cLt(t){let e=aLt(t),r=t.startsWith("v1.")||t.startsWith("ghs_"),i=t.startsWith("ghu_");return{type:"token",token:t,tokenType:e?"app":r?"installation":i?"user-to-server":"oauth"}}function uLt(t){return t.split(/\./).length===3?`bearer ${t}`:`token ${t}`}async function lLt(t,e,r,i){let s=e.endpoint.merge(r,i);return s.headers.authorization=uLt(t),e(s)}var PPe=function(e){if(!e)throw new Error("[@octokit/auth-token] No token passed to createTokenAuth");if(typeof e!="string")throw new Error("[@octokit/auth-token] Token passed to createTokenAuth is not a string");return e=e.replace(/^(token|bearer) +/i,""),Object.assign(cLt.bind(null,e),{hook:lLt.bind(null,e)})};var dZ="7.0.6";var QPe=()=>{},fLt=console.warn.bind(console),hLt=console.error.bind(console);function dLt(t={}){return typeof t.debug!="function"&&(t.debug=QPe),typeof t.info!="function"&&(t.info=QPe),typeof t.warn!="function"&&(t.warn=fLt),typeof t.error!="function"&&(t.error=hLt),t}var kPe=`octokit-core.js/${dZ} ${$m()}`,nF=class{static VERSION=dZ;static defaults(e){return class extends this{constructor(...i){let s=i[0]||{};if(typeof e=="function"){super(e(s));return}super(Object.assign({},e,s,s.userAgent&&e.userAgent?{userAgent:`${s.userAgent} ${e.userAgent}`}:null))}}}static plugins=[];static plugin(...e){let r=this.plugins;return class extends this{static plugins=r.concat(e.filter(s=>!r.includes(s)))}}constructor(e={}){let r=new uPe.Collection,i={baseUrl:z_.endpoint.DEFAULTS.baseUrl,headers:{},request:Object.assign({},e.request,{hook:r.bind(null,"request")}),mediaType:{previews:[],format:""}};if(i.headers["user-agent"]=e.userAgent?`${e.userAgent} ${kPe}`:kPe,e.baseUrl&&(i.baseUrl=e.baseUrl),e.previews&&(i.mediaType.previews=e.previews),e.timeZone&&(i.headers["time-zone"]=e.timeZone),this.request=z_.defaults(i),this.graphql=TPe(this.request).defaults(i),this.log=dLt(e.log),this.hook=r,e.authStrategy){let{authStrategy:n,...o}=e,a=n(Object.assign({request:this.request,log:this.log,octokit:this,octokitOptions:o},e.auth));r.wrap("request",a.hook),this.auth=a}else if(!e.auth)this.auth=async()=>({type:"unauthenticated"});else{let n=PPe(e.auth);r.wrap("request",n.hook),this.auth=n}let s=this.constructor;for(let n=0;n<s.plugins.length;++n)Object.assign(this,s.plugins[n](this,e))}request;graphql;log;hook;auth};var pZ="17.0.0";var pLt={actions:{addCustomLabelsToSelfHostedRunnerForOrg:["POST /orgs/{org}/actions/runners/{runner_id}/labels"],addCustomLabelsToSelfHostedRunnerForRepo:["POST /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],addRepoAccessToSelfHostedRunnerGroupInOrg:["PUT /orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/{repository_id}"],addSelectedRepoToOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}"],addSelectedRepoToOrgVariable:["PUT /orgs/{org}/actions/variables/{name}/repositories/{repository_id}"],approveWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/approve"],cancelWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/cancel"],createEnvironmentVariable:["POST /repos/{owner}/{repo}/environments/{environment_name}/variables"],createHostedRunnerForOrg:["POST /orgs/{org}/actions/hosted-runners"],createOrUpdateEnvironmentSecret:["PUT /repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}"],createOrUpdateOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}"],createOrUpdateRepoSecret:["PUT /repos/{owner}/{repo}/actions/secrets/{secret_name}"],createOrgVaria
Line truncated
|
||||
More info: ${c.url}`);let d=c.range&&c.range.length>0?c.range[0]?.start.line:void 0,m=!1;for(let A of o)if(A.remote||A.path.endsWith(u)&&A.content===l){a.push({title:f,message:h,file:A.path,startLine:d}),m=!0;break}m||N(`Buildx.convertWarningsToGitHubAnnotations: skipping warning without matching Dockerfile ${u}: ${f}`)}return a}};var bZ=k(require("fs"),1),wZ=k(require("path"),1);var cF=class t{buildx;constructor(e){this.buildx=e?.buildx||new $t}async getCommand(e){return await this.buildx.getCommand(["history",...e])}async getInspectCommand(e){return await this.getCommand(["inspect",...e])}async getExportCommand(e){return await this.getCommand(["export",...e])}async inspect(e){let r=["--format","json"];e.builder&&r.push("--builder",e.builder),e.ref&&r.push(e.ref);let i=await this.getInspectCommand(r);return await Ue.getExecOutput(i.command,i.args,{ignoreReturnCode:!0,silent:!0}).then(s=>{if(s.stderr.length>0&&s.exitCode!=0)throw new Error(s.stderr.trim());return JSON.parse(s.stdout)})}async export(e){if(!await this.buildx.versionSatisfies(">=0.23.0"))throw new Error("Buildx >= 0.23.0 is required to export a build record");let r="",i="",s=[];for(let f of e.refs){let h=f.split("/");if(h.length!=3)throw new Error(`Invalid build ref: ${f}`);s.push(h[2]),r||(r=h[0]),i||(i=h[1])}if(s.length===0)throw new Error("No build refs provided");let n=wZ.default.join(Tt.tmpDir(),"export");L(`exporting build record to ${n}`),bZ.default.mkdirSync(n,{recursive:!0}),await this.buildx.versionSatisfies("<0.24.0")&&await Xe.sleep(3);let o={};if(!e.noSummaries)for(let f of s)await this.inspect({ref:f,builder:r}).then(h=>{let d="";h.Error&&h.Status!=="canceled"&&(h.Error.Message?d=h.Error.Message:h.Error.Name&&h.Error.Logs&&(d=`=> ${h.Error.Name}
|
||||
${h.Error.Logs}`)),o[f]={name:h.Name,status:h.Status,duration:Xe.formatDuration(h.Duration),numCachedSteps:h.NumCachedSteps,numTotalSteps:h.NumTotalSteps,numCompletedSteps:h.NumCompletedSteps,defaultPlatform:h.Platform?.[0],error:d}});let a=wZ.default.join(n,`${t.exportFilename(s)}.dockerbuild`),c=["--builder",r,"--output",a,...s];await this.buildx.versionSatisfies(">=0.24.0")&&c.push("--finalize");let u=await this.getExportCommand(c);await Ue.getExecOutput(u.command,u.args);let l=bZ.default.statSync(a);return{dockerbuildFilename:a,dockerbuildSize:l.size,builderName:r,nodeName:i,refs:s,summaries:o}}static exportFilename(e){let r=`${gt.context.repo.owner}~${gt.context.repo.repo}~${e[0].substring(0,6).toUpperCase()}`;return e.length>1&&(r+=`+${e.length-1}`),r}};var p6e=k(require("fs"),1),$se=k(require("path"),1);var HPe=k(require("os"),1);function jy(){return 8*1024*1024}function uF(){let t=process.env.ACTIONS_RUNTIME_TOKEN;if(!t)throw new Error("Unable to get the ACTIONS_RUNTIME_TOKEN env variable");return t}function jPe(){let t=process.env.ACTIONS_RESULTS_URL;if(!t)throw new Error("Unable to get the ACTIONS_RESULTS_URL env variable");return new URL(t).origin}function lC(){let e=new URL(process.env.GITHUB_SERVER_URL||"https://github.com").hostname.trimEnd().toUpperCase(),r=e==="GITHUB.COM",i=e.endsWith(".GHE.COM"),s=e.endsWith(".LOCALHOST");return!r&&!i&&!s}function zPe(){let t=process.env.GITHUB_WORKSPACE;if(!t)throw new Error("Unable to get the GITHUB_WORKSPACE env variable");return t}function VPe(){let t=HPe.default.cpus().length,e=32;if(t>4){let i=16*t;e=i>300?300:i}let r=process.env.ACTIONS_ARTIFACT_UPLOAD_CONCURRENCY;if(r){let i=parseInt(r);if(isNaN(i)||i<1)throw new Error("Invalid value set for ACTIONS_ARTIFACT_UPLOAD_CONCURRENCY env variable");return i<e?(L("Set concurrency based on the value set in ACTIONS_ARTIFACT_UPLOAD_CONCURRENCY."),i):(L(`ACTIONS_ARTIFACT_UPLOAD_CONCURRENCY is higher than the cap of ${e} based on the number of cpus. Set it to the maximum value allowed.`),e)}return 5}function $Pe(){let t=process.env.ACTIONS_ARTIFACT_UPLOAD_TIMEOUT_MS;if(!t)return 3e5;let e=parseInt(t);if(isNaN(e))throw new Error("Invalid value set for ACTIONS_ARTIFACT_UPLOAD_TIMEOUT_MS env variable");return e}function WPe(){let t=process.env.ACTIONS_ARTIFACT_MAX_ARTIFACT_COUNT||"1000",e=parseInt(t);if(isNaN(e)||e<1)throw new Error("Invalid value set for ACTIONS_ARTIFACT_MAX_ARTIFACT_COUNT env variable");return e}var uHe=k(require("fs"),1),lHe=k(require("path"),1);var $Z=k(xr(),1),WZ=k(xr(),1),vQe=k(xr(),1),xQe=k(xr(),1),_Qe=k(xr(),1),EC=k(xr(),1),RQe=k(xr(),1),JZ=class extends RQe.MessageType{constructor(){super("google.protobuf.Timestamp",[{no:1,name:"seconds",kind:"scalar",T:3},{no:2,name:"nanos",kind:"scalar",T:5}])}now(){let e=this.create(),r=Date.now();return e.seconds=EC.PbLong.from(Math.floor(r/1e3)).toString(),e.nanos=r%1e3*1e6,e}toDate(e){return new Date(EC.PbLong.from(e.seconds).toNumber()*1e3+Math.ceil(e.nanos/1e6))}fromDate(e){let r=this.create(),i=e.getTime();return r.seconds=EC.PbLong.from(Math.floor(i/1e3)).toString(),r.nanos=i%1e3*1e6,r}internalJsonWrite(e,r){let i=EC.PbLong.from(e.seconds).toNumber()*1e3;if(i<Date.parse("0001-01-01T00:00:00Z")||i>Date.parse("9999-12-31T23:59:59Z"))throw new Error("Unable to encode Timestamp to JSON. Must be from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z inclusive.");if(e.nanos<0)throw new Error("Unable to encode invalid Timestamp to JSON. Nanos must not be negative.");let s="Z";if(e.nanos>0){let n=(e.nanos+1e9).toString().substring(1);n.substring(3)==="000000"?s="."+n.substring(0,3)+"Z":n.substring(6)==="000"?s="."+n.substring(0,6)+"Z":s="."+n+"Z"}return new Date(i).toISOString().replace(".000Z",s)}internalJsonRead(e,r,i){if(typeof e!="string")throw new Error("Unable to parse Timestamp from JSON "+(0,_Qe.typeofJsonValue)(e)+".");let s=e.match(/^([0-9]{4})-([0-9]{2})-([0-9]{2})T([0-9]{2}):([0-9]{2}):([0-9]{2})(?:Z|\.([0-9]{3,9})Z|([+-][0-9][0-9]:[0-9][0-9]))$/);if(!s)throw new Error("Unable to parse Timestamp from JSON. Invalid format.");let n=Date.parse(s[1]+"-"+s[2]+"-"+s[3]+"T"+s[4]+":"+s[5]+":"+s[6]+(s[8]?s[8]:"Z"));if(Number.isNaN(n))throw new Error("Unable to parse Timestamp from JSON. Invalid value.");if(n<Date.parse("0001-01-01T00:00:00Z")||n>Date.parse("9999-12-31T23:59:59Z"))throw new globalThis.Error("Unable to parse Timestamp from JSON. Must be from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z inclusive.");return i||(i=this.create()),i.seconds=EC.PbLong.from(n/1e3).toString(),i.nanos=0,s[7]&&(i.nanos=parseInt("1"+s[7]+"0".repeat(9-s[7].length))-1e9),i}create(e){let r={seconds:"0",nanos:0};return globalThis.Object.defineProperty(r,xQe.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,vQe.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,i,s){let n=s??this.create(),o=e.pos+r;for(;e.pos<o;){let[a,c]=e.tag();switch(a){case 1:n.seconds=e.int64().toString();break;case 2:n.nanos=e.int32();break;default:let u=i.readUnknownField;if(u==="thro
Line truncated
|
||||
`," Line feed \\n"]]),qQe=new Map([...$ee,["\\"," Backslash \\"],["/"," Forward slash /"]]);function GQe(t){if(!t)throw new Error("Provided artifact name input during validation is empty");for(let[e,r]of qQe)if(t.includes(e))throw new Error(`The artifact name is not valid: ${t}. Contains the following character: ${r}
|
||||
|
||||
Invalid characters include: ${Array.from(RQe.values()).toString()}
|
||||
Invalid characters include: ${Array.from(qQe.values()).toString()}
|
||||
|
||||
These characters are not allowed in the artifact name due to limitations with certain file systems such as NTFS. To maintain file system agnostic behavior, these characters are intentionally not allowed to prevent potential problems with downloads on different file systems.`);L("Artifact name is valid!")}function Fee(t){if(!t)throw new Error("Provided file path input during validation is empty");for(let[e,r]of Mee)if(t.includes(e))throw new Error(`The path for one of the files in artifact is not valid: ${t}. Contains the following character: ${r}
|
||||
These characters are not allowed in the artifact name due to limitations with certain file systems such as NTFS. To maintain file system agnostic behavior, these characters are intentionally not allowed to prevent potential problems with downloads on different file systems.`);L("Artifact name is valid!")}function Wee(t){if(!t)throw new Error("Provided file path input during validation is empty");for(let[e,r]of $ee)if(t.includes(e))throw new Error(`The path for one of the files in artifact is not valid: ${t}. Contains the following character: ${r}
|
||||
|
||||
Invalid characters include: ${Array.from(Mee.values()).toString()}
|
||||
Invalid characters include: ${Array.from($ee.values()).toString()}
|
||||
|
||||
The following characters are not allowed in files that are uploaded due to limitations with certain file systems such as NTFS. To maintain file system agnostic behavior, these characters are intentionally not allowed to prevent potential problems with downloads on different file systems.
|
||||
`)}var PQe=k(OQe(),1);function $f(){return`@actions/artifact-${PQe.version}`}var BC=class extends Error{constructor(e=[]){let r="No files were found to upload";e.length>0&&(r+=`: ${e.join(", ")}`),super(r),this.files=e,this.name="FilesNotFoundError"}},dl=class extends Error{constructor(e){super(e),this.name="InvalidResponseError"}},Fd=class extends Error{constructor(e="Artifact not found"){super(e),this.name="ArtifactNotFoundError"}},Ym=class extends Error{constructor(e="@actions/artifact v2.0.0+, upload-artifact@v4+ and download-artifact@v4+ are not currently supported on GHES."){super(e),this.name="GHESNotSupportedError"}},Ud=class extends Error{constructor(e){let r=`Unable to make request: ${e}
|
||||
If you are using self-hosted runners, please make sure your runner has access to all GitHub endpoints: https://docs.github.com/en/actions/hosting-your-own-runners/managing-self-hosted-runners/about-self-hosted-runners#communication-between-self-hosted-runners-and-github`;super(r),this.code=e,this.name="NetworkError"}};Ud.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var $y=class extends Error{constructor(){super(`Artifact storage quota has been hit. Unable to upload any new artifacts.
|
||||
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"}};$y.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var HM=new Error("Failed to get backend IDs: The provided JWT token is invalid and/or missing claims");function Wf(){let t=iM(),e=tM(t);if(!e.scp)throw HM;let r=e.scp.split(" ");if(r.length===0)throw HM;for(let i of r){let s=i.split(":");if(s?.[0]!=="Actions.Results")continue;if(s.length!==3)throw HM;let n={workflowRunBackendId:s[1],workflowJobRunBackendId:s[2]};return T(`Workflow Run Backend ID: ${n.workflowRunBackendId}`),T(`Workflow Job Run Backend ID: ${n.workflowJobRunBackendId}`),n}throw HM}function QQe(t){if(t)try{let r=new URL(t).searchParams.get("sig");r&&(Oa(r),Oa(encodeURIComponent(r)))}catch(e){T(`Failed to parse URL: ${t} ${e instanceof Error?e.message:String(e)}`)}}function kQe(t){if(typeof t!="object"||t===null){T("body is not an object or is null");return}"signed_upload_url"in t&&typeof t.signed_upload_url=="string"&&QQe(t.signed_upload_url),"signed_url"in t&&typeof t.signed_url=="string"&&QQe(t.signed_url)}var jM=function(t,e,r,i){function s(n){return n instanceof r?n:new r(function(o){o(n)})}return new(r||(r=Promise))(function(n,o){function a(l){try{u(i.next(l))}catch(f){o(f)}}function c(l){try{u(i.throw(l))}catch(f){o(f)}}function u(l){l.done?n(l.value):s(l.value).then(a,c)}u((i=i.apply(t,e||[])).next())})},Uee=class{constructor(e,r,i,s){this.maxAttempts=5,this.baseRetryIntervalMilliseconds=3e3,this.retryMultiplier=1.5;let n=iM();this.baseUrl=DPe(),r&&(this.maxAttempts=r),i&&(this.baseRetryIntervalMilliseconds=i),s&&(this.retryMultiplier=s),this.httpClient=new ds(e,[new Ad(n)])}request(e,r,i,s){return jM(this,void 0,void 0,function*(){let n=new URL(`/twirp/${e}/${r}`,this.baseUrl).href;T(`[Request] ${r} ${n}`);let o={"Content-Type":i};try{let{body:a}=yield this.retryableRequest(()=>jM(this,void 0,void 0,function*(){return this.httpClient.post(n,JSON.stringify(s),o)}));return a}catch(a){throw new Error(`Failed to ${r}: ${a.message}`)}})}retryableRequest(e){return jM(this,void 0,void 0,function*(){let r=0,i="",s="";for(;r<this.maxAttempts;){let n=!1;try{let a=yield e(),c=a.message.statusCode;s=yield a.readBody(),T(`[Response] - ${a.message.statusCode}`),T(`Headers: ${JSON.stringify(a.message.headers,null,2)}`);let u=JSON.parse(s);if(kQe(u),T(`Body: ${JSON.stringify(u,null,2)}`),this.isSuccessStatusCode(c))return{response:a,body:u};if(n=this.isRetryableHttpStatusCode(c),i=`Failed request: (${c}) ${a.message.statusMessage}`,u.msg){if($y.isUsageErrorMessage(u.msg))throw new $y;i=`${i}: ${u.msg}`}}catch(a){if(a instanceof SyntaxError&&T(`Raw Body: ${s}`),a instanceof $y)throw a;if(Ud.isNetworkErrorCode(a?.code))throw new Ud(a?.code);n=!0,i=a.message}if(!n)throw new Error(`Received non-retryable error: ${i}`);if(r+1===this.maxAttempts)throw new Error(`Failed to make request after ${this.maxAttempts} attempts: ${i}`);let o=this.getExponentialRetryTimeMilliseconds(r);L(`Attempt ${r+1} of ${this.maxAttempts} failed with error: ${i}. Retrying request in ${o} ms...`),yield this.sleep(o),r++}throw new Error("Request failed")})}isSuccessStatusCode(e){return e?e>=200&&e<300:!1}isRetryableHttpStatusCode(e){return e?[tr.BadGateway,tr.GatewayTimeout,tr.InternalServerError,tr.ServiceUnavailable,tr.TooManyRequests].includes(e):!1}sleep(e){return jM(this,void 0,void 0,function*(){return new Promise(r=>setTimeout(r,e))})}getExponentialRetryTimeMilliseconds(e){if(e<0)throw new Error("attempt should be a positive integer");if(e===0)return this.baseRetryIntervalMilliseconds;let r=this.baseRetryIntervalMilliseconds*Math.pow(this.retryMultiplier,e),i=r*this.retryMultiplier;return Math.trunc(Math.random()*(i-r)+r)}};function Jf(t){let e=new Uee($f(),t?.maxAttempts,t?.retryIntervalMs,t?.retryMultiplier);return new GM(e)}var xC=k(require("fs"),1);var vC=require("path");function LQe(t){if(!xC.existsSync(t))throw new Error(`The provided rootDirectory ${t} does not exist`);if(!xC.statSync(t).isDirectory())throw new Error(`The provided rootDirectory ${t} is not a valid directory`);L("Root directory input is valid!")}function MQe(t,e){let r=[];e=(0,vC.normalize)(e),e=(0,vC.resolve)(e);for(let i of t){let s=xC.lstatSync(i,{throwIfNoEntry:!1});if(!s)throw new Error(`File ${i} does not exist`);if(s.isDirectory()){let n=i.replace(e,"");Fee(n),r.push({sourcePath:null,destinationPath:n,stats:s})}else{if(i=(0,vC.normalize)(i),i=(0,vC.resolve)(i),!i.startsWith(e))throw new Error(`The rootDirectory: ${e} is not a parent directory of the file: ${i}`);let n=i.replace(e,"");Fee(n),r.push({sourcePath:i,destinationPath:n,stats:s})}}return r}var UQe=k(require("crypto"),1),qQe=k(require("stream"),1);var FQe=function(t,e,r,i){function s(n){return n instanceof r?n:new r(function(o){o(n)})}return new(r||(r=Promise))(function(n,o){function a(l){try{u(i.next(l))}catch(f){o(f)}}functi
Line truncated
|
||||
Are you trying to download from a different run? Try specifying a github-token with \`actions:read\` scope.`);c.length>1&&st("Multiple artifacts found, defaulting to first.");let u={workflowRunBackendId:c[0].workflowRunBackendId,workflowJobRunBackendId:c[0].workflowJobRunBackendId,name:c[0].name},{signedUrl:l}=yield i.GetSignedArtifactURL(u);L(`Redirecting to blob download url: ${MHe(l)}`);try{L(`Starting download of artifact to: ${r}`);let f=yield FHe(l,r,e?.skipDecompress);L("Artifact download completed successfully."),e?.expectedHash&&e?.expectedHash!==f.sha256Digest&&(s=!0,T(`Computed digest: ${f.sha256Digest}`),T(`Expected digest: ${e.expectedHash}`))}catch(f){throw new Error(`Unable to download and extract artifact: ${f.message}`)}return{downloadPath:r,digestMismatch:s}})}function GHe(){return II(this,arguments,void 0,function*(t=OPe()){return(yield u7t(t))?T(`Artifact destination folder already exists: ${t}`):(T(`Artifact destination folder does not exist, creating: ${t}`),yield Qse.default.mkdir(t,{recursive:!0})),t})}var f7t=5,h7t=[400,401,403,404,422];function SI(t,e=f7t,r=h7t){var i;if(e<=0)return[{enabled:!1},t.request];let s={enabled:!0};r.length>0&&(s.doNotRetry=r);let n=Object.assign(Object.assign({},t.request),{retries:e});return T(`GitHub client configured with: (retries: ${n.retries}, retry-exempt-status-code: ${(i=s.doNotRetry)!==null&&i!==void 0?i:"octokit default: [400, 401, 403, 404, 422]"})`),[s,n]}var HHe="6.0.0";function IE(t){t.hook.wrap("request",(e,r)=>{t.log.debug("request",r);let i=Date.now(),s=t.request.endpoint.parse(r),n=s.url.replace(r.baseUrl,"");return e(r).then(o=>{let a=o.headers["x-github-request-id"];return t.log.info(`${s.method} ${n} - ${o.status} with id ${a} in ${Date.now()-i}ms`),o}).catch(o=>{let a=o.response?.headers["x-github-request-id"]||"UNKNOWN";throw t.log.error(`${s.method} ${n} - ${o.status} with id ${a} in ${Date.now()-i}ms`),o})})}IE.VERSION=HHe;var VHe=k(jHe(),1);var d7t="0.0.0-development";function p7t(t){return t.request!==void 0}async function zHe(t,e,r,i){if(!p7t(r)||!r?.request.request)throw r;if(r.status>=400&&!t.doNotRetry.includes(r.status)){let s=i.request.retries!=null?i.request.retries:t.retries,n=Math.pow((i.request.retryCount||0)+1,2);throw e.retry.retryRequest(r,s,n)}throw r}async function m7t(t,e,r,i){let s=new VHe.default;return s.on("failed",function(n,o){let a=~~n.request.request?.retries,c=~~n.request.request?.retryAfter;if(i.request.retryCount=o.retryCount+1,a>o.retryCount)return c*t.retryAfterBaseValue}),s.schedule(A7t.bind(null,t,e,r),i)}async function A7t(t,e,r,i){let s=await r(i);if(s.data&&s.data.errors&&s.data.errors.length>0&&/Something went wrong while executing your query/.test(s.data.errors[0].message)){let n=new Ld(s.data.errors[0].message,500,{request:i,response:s});return zHe(t,e,n,i)}return s}function SE(t,e){let r=Object.assign({enabled:!0,retryAfterBaseValue:1e3,doNotRetry:[400,401,403,404,410,422,451],retries:3},e.retry),i={retry:{retryRequest:(s,n,o)=>(s.request.request=Object.assign({},s.request.request,{retries:n,retryAfter:o}),s)}};return r.enabled&&(t.hook.error("request",zHe.bind(null,r,i)),t.hook.wrap("request",m7t.bind(null,r,i))),i}SE.VERSION=d7t;var $He=function(t,e,r,i){function s(n){return n instanceof r?n:new r(function(o){o(n)})}return new(r||(r=Promise))(function(n,o){function a(l){try{u(i.next(l))}catch(f){o(f)}}function c(l){try{u(i.throw(l))}catch(f){o(f)}}function u(l){l.done?n(l.value):s(l.value).then(a,c)}u((i=i.apply(t,e||[])).next())})};function rq(t,e,r,i,s){return $He(this,void 0,void 0,function*(){var n;let[o,a]=SI(Uy),c={log:void 0,userAgent:$f(),previews:void 0,retry:o,request:a},l=yield eu(s,c,SE,IE).request("GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts{?name}",{owner:r,repo:i,run_id:e,name:t});if(l.status!==200)throw new dl(`Invalid response from GitHub API: ${l.status} (${(n=l?.headers)===null||n===void 0?void 0:n["x-github-request-id"]})`);if(l.data.artifacts.length===0)throw new Fd(`Artifact not found for name: ${t}
|
||||
`)}var VQe=k(zQe(),1);function Vf(){return`@actions/artifact-${VQe.version}`}var _C=class extends Error{constructor(e=[]){let r="No files were found to upload";e.length>0&&(r+=`: ${e.join(", ")}`),super(r),this.files=e,this.name="FilesNotFoundError"}},hl=class extends Error{constructor(e){super(e),this.name="InvalidResponseError"}},Fd=class extends Error{constructor(e="Artifact not found"){super(e),this.name="ArtifactNotFoundError"}},Km=class extends Error{constructor(e="@actions/artifact v2.0.0+, upload-artifact@v4+ and download-artifact@v4+ are not currently supported on GHES."){super(e),this.name="GHESNotSupportedError"}},Md=class extends Error{constructor(e){let r=`Unable to make request: ${e}
|
||||
If you are using self-hosted runners, please make sure your runner has access to all GitHub endpoints: https://docs.github.com/en/actions/hosting-your-own-runners/managing-self-hosted-runners/about-self-hosted-runners#communication-between-self-hosted-runners-and-github`;super(r),this.code=e,this.name="NetworkError"}};Md.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var Jy=class extends Error{constructor(){super(`Artifact storage quota has been hit. Unable to upload any new artifacts.
|
||||
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"}};Jy.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var JF=new Error("Failed to get backend IDs: The provided JWT token is invalid and/or missing claims");function $f(){let t=uF(),e=aF(t);if(!e.scp)throw JF;let r=e.scp.split(" ");if(r.length===0)throw JF;for(let i of r){let s=i.split(":");if(s?.[0]!=="Actions.Results")continue;if(s.length!==3)throw JF;let n={workflowRunBackendId:s[1],workflowJobRunBackendId:s[2]};return N(`Workflow Run Backend ID: ${n.workflowRunBackendId}`),N(`Workflow Job Run Backend ID: ${n.workflowJobRunBackendId}`),n}throw JF}function $Qe(t){if(t)try{let r=new URL(t).searchParams.get("sig");r&&(Oa(r),Oa(encodeURIComponent(r)))}catch(e){N(`Failed to parse URL: ${t} ${e instanceof Error?e.message:String(e)}`)}}function WQe(t){if(typeof t!="object"||t===null){N("body is not an object or is null");return}"signed_upload_url"in t&&typeof t.signed_upload_url=="string"&&$Qe(t.signed_upload_url),"signed_url"in t&&typeof t.signed_url=="string"&&$Qe(t.signed_url)}var YF=function(t,e,r,i){function s(n){return n instanceof r?n:new r(function(o){o(n)})}return new(r||(r=Promise))(function(n,o){function a(l){try{u(i.next(l))}catch(f){o(f)}}function c(l){try{u(i.throw(l))}catch(f){o(f)}}function u(l){l.done?n(l.value):s(l.value).then(a,c)}u((i=i.apply(t,e||[])).next())})},Jee=class{constructor(e,r,i,s){this.maxAttempts=5,this.baseRetryIntervalMilliseconds=3e3,this.retryMultiplier=1.5;let n=uF();this.baseUrl=jPe(),r&&(this.maxAttempts=r),i&&(this.baseRetryIntervalMilliseconds=i),s&&(this.retryMultiplier=s),this.httpClient=new ds(e,[new md(n)])}request(e,r,i,s){return YF(this,void 0,void 0,function*(){let n=new URL(`/twirp/${e}/${r}`,this.baseUrl).href;N(`[Request] ${r} ${n}`);let o={"Content-Type":i};try{let{body:a}=yield this.retryableRequest(()=>YF(this,void 0,void 0,function*(){return this.httpClient.post(n,JSON.stringify(s),o)}));return a}catch(a){throw new Error(`Failed to ${r}: ${a.message}`)}})}retryableRequest(e){return YF(this,void 0,void 0,function*(){let r=0,i="",s="";for(;r<this.maxAttempts;){let n=!1;try{let a=yield e(),c=a.message.statusCode;s=yield a.readBody(),N(`[Response] - ${a.message.statusCode}`),N(`Headers: ${JSON.stringify(a.message.headers,null,2)}`);let u=JSON.parse(s);if(WQe(u),N(`Body: ${JSON.stringify(u,null,2)}`),this.isSuccessStatusCode(c))return{response:a,body:u};if(n=this.isRetryableHttpStatusCode(c),i=`Failed request: (${c}) ${a.message.statusMessage}`,u.msg){if(Jy.isUsageErrorMessage(u.msg))throw new Jy;i=`${i}: ${u.msg}`}}catch(a){if(a instanceof SyntaxError&&N(`Raw Body: ${s}`),a instanceof Jy)throw a;if(Md.isNetworkErrorCode(a?.code))throw new Md(a?.code);n=!0,i=a.message}if(!n)throw new Error(`Received non-retryable error: ${i}`);if(r+1===this.maxAttempts)throw new Error(`Failed to make request after ${this.maxAttempts} attempts: ${i}`);let o=this.getExponentialRetryTimeMilliseconds(r);L(`Attempt ${r+1} of ${this.maxAttempts} failed with error: ${i}. Retrying request in ${o} ms...`),yield this.sleep(o),r++}throw new Error("Request failed")})}isSuccessStatusCode(e){return e?e>=200&&e<300:!1}isRetryableHttpStatusCode(e){return e?[tr.BadGateway,tr.GatewayTimeout,tr.InternalServerError,tr.ServiceUnavailable,tr.TooManyRequests].includes(e):!1}sleep(e){return YF(this,void 0,void 0,function*(){return new Promise(r=>setTimeout(r,e))})}getExponentialRetryTimeMilliseconds(e){if(e<0)throw new Error("attempt should be a positive integer");if(e===0)return this.baseRetryIntervalMilliseconds;let r=this.baseRetryIntervalMilliseconds*Math.pow(this.retryMultiplier,e),i=r*this.retryMultiplier;return Math.trunc(Math.random()*(i-r)+r)}};function Wf(t){let e=new Jee(Vf(),t?.maxAttempts,t?.retryIntervalMs,t?.retryMultiplier);return new WF(e)}var NC=k(require("fs"),1);var RC=require("path");function JQe(t){if(!NC.existsSync(t))throw new Error(`The provided rootDirectory ${t} does not exist`);if(!NC.statSync(t).isDirectory())throw new Error(`The provided rootDirectory ${t} is not a valid directory`);L("Root directory input is valid!")}function YQe(t,e){let r=[];e=(0,RC.normalize)(e),e=(0,RC.resolve)(e);for(let i of t){let s=NC.lstatSync(i,{throwIfNoEntry:!1});if(!s)throw new Error(`File ${i} does not exist`);if(s.isDirectory()){let n=i.replace(e,"");Wee(n),r.push({sourcePath:null,destinationPath:n,stats:s})}else{if(i=(0,RC.normalize)(i),i=(0,RC.resolve)(i),!i.startsWith(e))throw new Error(`The rootDirectory: ${e} is not a parent directory of the file: ${i}`);let n=i.replace(e,"");Wee(n),r.push({sourcePath:i,destinationPath:n,stats:s})}}return r}var XQe=k(require("crypto"),1),ZQe=k(require("stream"),1);var KQe=function(t,e,r,i){function s(n){return n instanceof r?n:new r(function(o){o(n)})}return new(r||(r=Promise))(function(n,o){function a(l){try{u(i.next(l))}catch(f){o(f)}}functi
Line truncated
|
||||
Are you trying to download from a different run? Try specifying a github-token with \`actions:read\` scope.`);c.length>1&&st("Multiple artifacts found, defaulting to first.");let u={workflowRunBackendId:c[0].workflowRunBackendId,workflowJobRunBackendId:c[0].workflowJobRunBackendId,name:c[0].name},{signedUrl:l}=yield i.GetSignedArtifactURL(u);L(`Redirecting to blob download url: ${YHe(l)}`);try{L(`Starting download of artifact to: ${r}`);let f=yield KHe(l,r,e?.skipDecompress);L("Artifact download completed successfully."),e?.expectedHash&&e?.expectedHash!==f.sha256Digest&&(s=!0,N(`Computed digest: ${f.sha256Digest}`),N(`Expected digest: ${e.expectedHash}`))}catch(f){throw new Error(`Unable to download and extract artifact: ${f.message}`)}return{downloadPath:r,digestMismatch:s}})}function e6e(){return vI(this,arguments,void 0,function*(t=zPe()){return(yield _7t(t))?N(`Artifact destination folder already exists: ${t}`):(N(`Artifact destination folder does not exist, creating: ${t}`),yield jse.default.mkdir(t,{recursive:!0})),t})}var N7t=5,T7t=[400,401,403,404,422];function xI(t,e=N7t,r=T7t){var i;if(e<=0)return[{enabled:!1},t.request];let s={enabled:!0};r.length>0&&(s.doNotRetry=r);let n=Object.assign(Object.assign({},t.request),{retries:e});return N(`GitHub client configured with: (retries: ${n.retries}, retry-exempt-status-code: ${(i=s.doNotRetry)!==null&&i!==void 0?i:"octokit default: [400, 401, 403, 404, 422]"})`),[s,n]}var t6e="6.0.0";function BE(t){t.hook.wrap("request",(e,r)=>{t.log.debug("request",r);let i=Date.now(),s=t.request.endpoint.parse(r),n=s.url.replace(r.baseUrl,"");return e(r).then(o=>{let a=o.headers["x-github-request-id"];return t.log.info(`${s.method} ${n} - ${o.status} with id ${a} in ${Date.now()-i}ms`),o}).catch(o=>{let a=o.response?.headers["x-github-request-id"]||"UNKNOWN";throw t.log.error(`${s.method} ${n} - ${o.status} with id ${a} in ${Date.now()-i}ms`),o})})}BE.VERSION=t6e;var s6e=k(r6e(),1);var D7t="0.0.0-development";function O7t(t){return t.request!==void 0}async function i6e(t,e,r,i){if(!O7t(r)||!r?.request.request)throw r;if(r.status>=400&&!t.doNotRetry.includes(r.status)){let s=i.request.retries!=null?i.request.retries:t.retries,n=Math.pow((i.request.retryCount||0)+1,2);throw e.retry.retryRequest(r,s,n)}throw r}async function P7t(t,e,r,i){let s=new s6e.default;return s.on("failed",function(n,o){let a=~~n.request.request?.retries,c=~~n.request.request?.retryAfter;if(i.request.retryCount=o.retryCount+1,a>o.retryCount)return c*t.retryAfterBaseValue}),s.schedule(Q7t.bind(null,t,e,r),i)}async function Q7t(t,e,r,i){let s=await r(i);if(s.data&&s.data.errors&&s.data.errors.length>0&&/Something went wrong while executing your query/.test(s.data.errors[0].message)){let n=new kd(s.data.errors[0].message,500,{request:i,response:s});return i6e(t,e,n,i)}return s}function vE(t,e){let r=Object.assign({enabled:!0,retryAfterBaseValue:1e3,doNotRetry:[400,401,403,404,410,422,451],retries:3},e.retry),i={retry:{retryRequest:(s,n,o)=>(s.request.request=Object.assign({},s.request.request,{retries:n,retryAfter:o}),s)}};return r.enabled&&(t.hook.error("request",i6e.bind(null,r,i)),t.hook.wrap("request",P7t.bind(null,r,i))),i}vE.VERSION=D7t;var n6e=function(t,e,r,i){function s(n){return n instanceof r?n:new r(function(o){o(n)})}return new(r||(r=Promise))(function(n,o){function a(l){try{u(i.next(l))}catch(f){o(f)}}function c(l){try{u(i.throw(l))}catch(f){o(f)}}function u(l){l.done?n(l.value):s(l.value).then(a,c)}u((i=i.apply(t,e||[])).next())})};function cq(t,e,r,i,s){return n6e(this,void 0,void 0,function*(){var n;let[o,a]=xI(Gy),c={log:void 0,userAgent:Vf(),previews:void 0,retry:o,request:a},l=yield Zc(s,c,vE,BE).request("GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts{?name}",{owner:r,repo:i,run_id:e,name:t});if(l.status!==200)throw new hl(`Invalid response from GitHub API: ${l.status} (${(n=l?.headers)===null||n===void 0?void 0:n["x-github-request-id"]})`);if(l.data.artifacts.length===0)throw new Fd(`Artifact not found for name: ${t}
|
||||
Please ensure that your artifact is not expired and the artifact was uploaded using a compatible version of toolkit/upload-artifact.
|
||||
For more information, visit the GitHub Artifacts FAQ: https://github.com/actions/toolkit/blob/main/packages/artifact/docs/faq.md`);let f=l.data.artifacts[0];return l.data.artifacts.length>1&&(f=l.data.artifacts.sort((h,d)=>d.id-h.id)[0],T(`More than one artifact found for a single name, returning newest (id: ${f.id})`)),{artifact:{name:f.name,id:f.id,size:f.size_in_bytes,createdAt:f.created_at?new Date(f.created_at):void 0,digest:f.digest}}})}function WHe(t){return $He(this,void 0,void 0,function*(){var e;let r=Jf(),{workflowRunBackendId:i,workflowJobRunBackendId:s}=Wf(),n={workflowRunBackendId:i,workflowJobRunBackendId:s,nameFilter:qi.create({value:t})},o=yield r.ListArtifacts(n);if(o.artifacts.length===0)throw new Fd(`Artifact not found for name: ${t}
|
||||
For more information, visit the GitHub Artifacts FAQ: https://github.com/actions/toolkit/blob/main/packages/artifact/docs/faq.md`);let f=l.data.artifacts[0];return l.data.artifacts.length>1&&(f=l.data.artifacts.sort((h,d)=>d.id-h.id)[0],N(`More than one artifact found for a single name, returning newest (id: ${f.id})`)),{artifact:{name:f.name,id:f.id,size:f.size_in_bytes,createdAt:f.created_at?new Date(f.created_at):void 0,digest:f.digest}}})}function o6e(t){return n6e(this,void 0,void 0,function*(){var e;let r=Wf(),{workflowRunBackendId:i,workflowJobRunBackendId:s}=$f(),n={workflowRunBackendId:i,workflowJobRunBackendId:s,nameFilter:qi.create({value:t})},o=yield r.ListArtifacts(n);if(o.artifacts.length===0)throw new Fd(`Artifact not found for name: ${t}
|
||||
Please ensure that your artifact is not expired and the artifact was uploaded using a compatible version of toolkit/upload-artifact.
|
||||
For more information, visit the GitHub Artifacts FAQ: https://github.com/actions/toolkit/blob/main/packages/artifact/docs/faq.md`);let a=o.artifacts[0];return o.artifacts.length>1&&(a=o.artifacts.sort((c,u)=>Number(u.databaseId)-Number(c.databaseId))[0],T(`More than one artifact found for a single name, returning newest (id: ${a.databaseId})`)),{artifact:{name:a.name,id:Number(a.databaseId),size:Number(a.size),createdAt:a.createdAt?ec.toDate(a.createdAt):void 0,digest:(e=a.digest)===null||e===void 0?void 0:e.value}}})}var JHe=function(t,e,r,i){function s(n){return n instanceof r?n:new r(function(o){o(n)})}return new(r||(r=Promise))(function(n,o){function a(l){try{u(i.next(l))}catch(f){o(f)}}function c(l){try{u(i.throw(l))}catch(f){o(f)}}function u(l){l.done?n(l.value):s(l.value).then(a,c)}u((i=i.apply(t,e||[])).next())})};function YHe(t,e,r,i,s){return JHe(this,void 0,void 0,function*(){var n;let[o,a]=SI(Uy),c={log:void 0,userAgent:$f(),previews:void 0,retry:o,request:a},u=eu(s,c,SE,IE),l=yield rq(t,e,r,i,s),f=yield u.rest.actions.deleteArtifact({owner:r,repo:i,artifact_id:l.artifact.id});if(f.status!==204)throw new dl(`Invalid response from GitHub API: ${f.status} (${(n=f?.headers)===null||n===void 0?void 0:n["x-github-request-id"]})`);return{id:l.artifact.id}})}function KHe(t){return JHe(this,void 0,void 0,function*(){let e=Jf(),{workflowRunBackendId:r,workflowJobRunBackendId:i}=Wf(),s={workflowRunBackendId:r,workflowJobRunBackendId:i,nameFilter:qi.create({value:t})},n=yield e.ListArtifacts(s);if(n.artifacts.length===0)throw new Fd(`Artifact not found for name: ${t}`);let o=n.artifacts[0];n.artifacts.length>1&&(o=n.artifacts.sort((u,l)=>Number(l.databaseId)-Number(u.databaseId))[0],T(`More than one artifact found for a single name, returning newest (id: ${o.databaseId})`));let a={workflowRunBackendId:o.workflowRunBackendId,workflowJobRunBackendId:o.workflowJobRunBackendId,name:o.name},c=yield e.DeleteArtifact(a);return L(`Artifact '${t}' (ID: ${c.artifactId}) deleted`),{id:Number(c.artifactId)}})}var XHe=function(t,e,r,i){function s(n){return n instanceof r?n:new r(function(o){o(n)})}return new(r||(r=Promise))(function(n,o){function a(l){try{u(i.next(l))}catch(f){o(f)}}function c(l){try{u(i.throw(l))}catch(f){o(f)}}function u(l){l.done?n(l.value):s(l.value).then(a,c)}u((i=i.apply(t,e||[])).next())})},iq=kPe(),sq=100,g7t=Math.ceil(iq/sq);function ZHe(t,e,r,i){return XHe(this,arguments,void 0,function*(s,n,o,a,c=!1){L(`Fetching artifact list for workflow run ${s} in repository ${n}/${o}`);let u=[],[l,f]=SI(Uy),h={log:void 0,userAgent:$f(),previews:void 0,retry:l,request:f},d=eu(a,h,SE,IE),m=1,{data:A}=yield d.request("GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts",{owner:n,repo:o,run_id:s,per_page:sq,page:m}),y=Math.ceil(A.total_count/sq),g=A.total_count;g>iq&&(st(`Workflow run ${s} has ${g} artifacts, exceeding the limit of ${iq}. Results will be incomplete as only the first ${iq} artifacts will be returned`),y=g7t);for(let E of A.artifacts)u.push({name:E.name,id:E.id,size:E.size_in_bytes,createdAt:E.created_at?new Date(E.created_at):void 0,digest:E.digest});for(m++,m;m<=y;m++){T(`Fetching page ${m} of artifact list`);let{data:E}=yield d.request("GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts",{owner:n,repo:o,run_id:s,per_page:sq,page:m});for(let C of E.artifacts)u.push({name:C.name,id:C.id,size:C.size_in_bytes,createdAt:C.created_at?new Date(C.created_at):void 0,digest:C.digest})}return c&&(u=t6e(u)),L(`Found ${u.length} artifact(s)`),{artifacts:u}})}function e6e(){return XHe(this,arguments,void 0,function*(t=!1){let e=Jf(),{workflowRunBackendId:r,workflowJobRunBackendId:i}=Wf(),s={workflowRunBackendId:r,workflowJobRunBackendId:i},o=(yield e.ListArtifacts(s)).artifacts.map(a=>{var c;return{name:a.name,id:Number(a.databaseId),size:Number(a.size),createdAt:a.createdAt?ec.toDate(a.createdAt):void 0,digest:(c=a.digest)===null||c===void 0?void 0:c.value}});return t&&(o=t6e(o)),L(`Found ${o.length} artifact(s)`),{artifacts:o}})}function t6e(t){t.sort((i,s)=>s.id-i.id);let e=[],r=new Set;for(let i of t)r.has(i.name)||(e.push(i),r.add(i.name));return e}var vT=function(t,e,r,i){function s(n){return n instanceof r?n:new r(function(o){o(n)})}return new(r||(r=Promise))(function(n,o){function a(l){try{u(i.next(l))}catch(f){o(f)}}function c(l){try{u(i.throw(l))}catch(f){o(f)}}function u(l){l.done?n(l.value):s(l.value).then(a,c)}u((i=i.apply(t,e||[])).next())})},y7t=function(t,e){var r={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(r[i]=t[i]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,i=Object.getOwnPropertySymbols(t);s<i.length;s++)e.indexOf(i[s])<0&&Object.prototype.propertyIsEnumerable.call(t,i[s])&&(r[i[s]]=t[i[s]]);return r},BI=class{uploadArtifact(e,r,i,s){return vT(this,void 0,void 0,function*(){try{if(aC())throw new Ym;return ZGe(e,r,i,s)}catch(n){throw st(`Artifact upload failed with error: ${n}.
|
||||
For more information, visit the GitHub Artifacts FAQ: https://github.com/actions/toolkit/blob/main/packages/artifact/docs/faq.md`);let a=o.artifacts[0];return o.artifacts.length>1&&(a=o.artifacts.sort((c,u)=>Number(u.databaseId)-Number(c.databaseId))[0],N(`More than one artifact found for a single name, returning newest (id: ${a.databaseId})`)),{artifact:{name:a.name,id:Number(a.databaseId),size:Number(a.size),createdAt:a.createdAt?Za.toDate(a.createdAt):void 0,digest:(e=a.digest)===null||e===void 0?void 0:e.value}}})}var a6e=function(t,e,r,i){function s(n){return n instanceof r?n:new r(function(o){o(n)})}return new(r||(r=Promise))(function(n,o){function a(l){try{u(i.next(l))}catch(f){o(f)}}function c(l){try{u(i.throw(l))}catch(f){o(f)}}function u(l){l.done?n(l.value):s(l.value).then(a,c)}u((i=i.apply(t,e||[])).next())})};function c6e(t,e,r,i,s){return a6e(this,void 0,void 0,function*(){var n;let[o,a]=xI(Gy),c={log:void 0,userAgent:Vf(),previews:void 0,retry:o,request:a},u=Zc(s,c,vE,BE),l=yield cq(t,e,r,i,s),f=yield u.rest.actions.deleteArtifact({owner:r,repo:i,artifact_id:l.artifact.id});if(f.status!==204)throw new hl(`Invalid response from GitHub API: ${f.status} (${(n=f?.headers)===null||n===void 0?void 0:n["x-github-request-id"]})`);return{id:l.artifact.id}})}function u6e(t){return a6e(this,void 0,void 0,function*(){let e=Wf(),{workflowRunBackendId:r,workflowJobRunBackendId:i}=$f(),s={workflowRunBackendId:r,workflowJobRunBackendId:i,nameFilter:qi.create({value:t})},n=yield e.ListArtifacts(s);if(n.artifacts.length===0)throw new Fd(`Artifact not found for name: ${t}`);let o=n.artifacts[0];n.artifacts.length>1&&(o=n.artifacts.sort((u,l)=>Number(l.databaseId)-Number(u.databaseId))[0],N(`More than one artifact found for a single name, returning newest (id: ${o.databaseId})`));let a={workflowRunBackendId:o.workflowRunBackendId,workflowJobRunBackendId:o.workflowJobRunBackendId,name:o.name},c=yield e.DeleteArtifact(a);return L(`Artifact '${t}' (ID: ${c.artifactId}) deleted`),{id:Number(c.artifactId)}})}var l6e=function(t,e,r,i){function s(n){return n instanceof r?n:new r(function(o){o(n)})}return new(r||(r=Promise))(function(n,o){function a(l){try{u(i.next(l))}catch(f){o(f)}}function c(l){try{u(i.throw(l))}catch(f){o(f)}}function u(l){l.done?n(l.value):s(l.value).then(a,c)}u((i=i.apply(t,e||[])).next())})},uq=WPe(),lq=100,k7t=Math.ceil(uq/lq);function f6e(t,e,r,i){return l6e(this,arguments,void 0,function*(s,n,o,a,c=!1){L(`Fetching artifact list for workflow run ${s} in repository ${n}/${o}`);let u=[],[l,f]=xI(Gy),h={log:void 0,userAgent:Vf(),previews:void 0,retry:l,request:f},d=Zc(a,h,vE,BE),m=1,{data:A}=yield d.request("GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts",{owner:n,repo:o,run_id:s,per_page:lq,page:m}),y=Math.ceil(A.total_count/lq),g=A.total_count;g>uq&&(st(`Workflow run ${s} has ${g} artifacts, exceeding the limit of ${uq}. Results will be incomplete as only the first ${uq} artifacts will be returned`),y=k7t);for(let E of A.artifacts)u.push({name:E.name,id:E.id,size:E.size_in_bytes,createdAt:E.created_at?new Date(E.created_at):void 0,digest:E.digest});for(m++,m;m<=y;m++){N(`Fetching page ${m} of artifact list`);let{data:E}=yield d.request("GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts",{owner:n,repo:o,run_id:s,per_page:lq,page:m});for(let w of E.artifacts)u.push({name:w.name,id:w.id,size:w.size_in_bytes,createdAt:w.created_at?new Date(w.created_at):void 0,digest:w.digest})}return c&&(u=d6e(u)),L(`Found ${u.length} artifact(s)`),{artifacts:u}})}function h6e(){return l6e(this,arguments,void 0,function*(t=!1){let e=Wf(),{workflowRunBackendId:r,workflowJobRunBackendId:i}=$f(),s={workflowRunBackendId:r,workflowJobRunBackendId:i},o=(yield e.ListArtifacts(s)).artifacts.map(a=>{var c;return{name:a.name,id:Number(a.databaseId),size:Number(a.size),createdAt:a.createdAt?Za.toDate(a.createdAt):void 0,digest:(c=a.digest)===null||c===void 0?void 0:c.value}});return t&&(o=d6e(o)),L(`Found ${o.length} artifact(s)`),{artifacts:o}})}function d6e(t){t.sort((i,s)=>s.id-i.id);let e=[],r=new Set;for(let i of t)r.has(i.name)||(e.push(i),r.add(i.name));return e}var RN=function(t,e,r,i){function s(n){return n instanceof r?n:new r(function(o){o(n)})}return new(r||(r=Promise))(function(n,o){function a(l){try{u(i.next(l))}catch(f){o(f)}}function c(l){try{u(i.throw(l))}catch(f){o(f)}}function u(l){l.done?n(l.value):s(l.value).then(a,c)}u((i=i.apply(t,e||[])).next())})},L7t=function(t,e){var r={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(r[i]=t[i]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,i=Object.getOwnPropertySymbols(t);s<i.length;s++)e.indexOf(i[s])<0&&Object.prototype.propertyIsEnumerable.call(t,i[s])&&(r[i[s]]=t[i[s]]);return r},_I=class{uploadArtifact(e,r,i,s){return RN(this,void 0,void 0,function*(){try{if(lC())throw new Km;return fHe(e,r,i,s)}catch(n){throw st(`Artifact upload failed with error: ${n}.
|
||||
|
||||
Errors can be temporary, so please try again and optionally run the action with debug mode enabled for more information.
|
||||
|
||||
If the error persists, please check whether Actions is operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),n}})}downloadArtifact(e,r){return vT(this,void 0,void 0,function*(){try{if(aC())throw new Ym;if(r?.findBy){let{findBy:{repositoryOwner:i,repositoryName:s,token:n}}=r,o=y7t(r,["findBy"]);return UHe(e,i,s,n,o)}return qHe(e,r)}catch(i){throw st(`Download Artifact failed with error: ${i}.
|
||||
If the error persists, please check whether Actions is operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),n}})}downloadArtifact(e,r){return RN(this,void 0,void 0,function*(){try{if(lC())throw new Km;if(r?.findBy){let{findBy:{repositoryOwner:i,repositoryName:s,token:n}}=r,o=L7t(r,["findBy"]);return XHe(e,i,s,n,o)}return ZHe(e,r)}catch(i){throw st(`Download Artifact failed with error: ${i}.
|
||||
|
||||
Errors can be temporary, so please try again and optionally run the action with debug mode enabled for more information.
|
||||
|
||||
If the error persists, please check whether Actions and API requests are operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),i}})}listArtifacts(e){return vT(this,void 0,void 0,function*(){try{if(aC())throw new Ym;if(e?.findBy){let{findBy:{workflowRunId:r,repositoryOwner:i,repositoryName:s,token:n}}=e;return ZHe(r,i,s,n,e?.latest)}return e6e(e?.latest)}catch(r){throw st(`Listing Artifacts failed with error: ${r}.
|
||||
If the error persists, please check whether Actions and API requests are operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),i}})}listArtifacts(e){return RN(this,void 0,void 0,function*(){try{if(lC())throw new Km;if(e?.findBy){let{findBy:{workflowRunId:r,repositoryOwner:i,repositoryName:s,token:n}}=e;return f6e(r,i,s,n,e?.latest)}return h6e(e?.latest)}catch(r){throw st(`Listing Artifacts failed with error: ${r}.
|
||||
|
||||
Errors can be temporary, so please try again and optionally run the action with debug mode enabled for more information.
|
||||
|
||||
If the error persists, please check whether Actions and API requests are operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),r}})}getArtifact(e,r){return vT(this,void 0,void 0,function*(){try{if(aC())throw new Ym;if(r?.findBy){let{findBy:{workflowRunId:i,repositoryOwner:s,repositoryName:n,token:o}}=r;return rq(e,i,s,n,o)}return WHe(e)}catch(i){throw st(`Get Artifact failed with error: ${i}.
|
||||
If the error persists, please check whether Actions and API requests are operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),r}})}getArtifact(e,r){return RN(this,void 0,void 0,function*(){try{if(lC())throw new Km;if(r?.findBy){let{findBy:{workflowRunId:i,repositoryOwner:s,repositoryName:n,token:o}}=r;return cq(e,i,s,n,o)}return o6e(e)}catch(i){throw st(`Get Artifact failed with error: ${i}.
|
||||
|
||||
Errors can be temporary, so please try again and optionally run the action with debug mode enabled for more information.
|
||||
|
||||
If the error persists, please check whether Actions and API requests are operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),i}})}deleteArtifact(e,r){return vT(this,void 0,void 0,function*(){try{if(aC())throw new Ym;if(r?.findBy){let{findBy:{repositoryOwner:i,repositoryName:s,workflowRunId:n,token:o}}=r;return YHe(e,n,i,s,o)}return KHe(e)}catch(i){throw st(`Delete Artifact failed with error: ${i}.
|
||||
If the error persists, please check whether Actions and API requests are operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),i}})}deleteArtifact(e,r){return RN(this,void 0,void 0,function*(){try{if(lC())throw new Km;if(r?.findBy){let{findBy:{repositoryOwner:i,repositoryName:s,workflowRunId:n,token:o}}=r;return c6e(e,n,i,s,o)}return u6e(e)}catch(i){throw st(`Delete Artifact failed with error: ${i}.
|
||||
|
||||
Errors can be temporary, so please try again and optionally run the action with debug mode enabled for more information.
|
||||
|
||||
If the error persists, please check whether Actions and API requests are operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),i}})}};var zJr=new BI;var nq=class{static async upload(e){if(gt.isGHES)throw new Error("@actions/artifact v2.0.0+ is currently not supported on GHES.");let r=Mse.default.basename(e.filename),i=new BI;L(`Uploading ${r} as an artifact`);let s=Mse.default.dirname(e.filename),n=await i.uploadArtifact(r,[e.filename],s,{retentionDays:e.retentionDays,skipArchive:!0});if(!n.id)throw new dl("Cannot upload artifact");let o=n.size??r6e.default.statSync(e.filename).size,a=`${gt.workflowRunURL()}/artifacts/${n.id}`;return L(`Artifact download URL: ${a}`),{id:n.id,filename:r,digest:n.digest||"",size:o,url:a}}};var Xse=k(i6e(),1);function E6e(t){return typeof t>"u"||t===null}function E7t(t){return typeof t=="object"&&t!==null}function b7t(t){return Array.isArray(t)?t:E6e(t)?[]:[t]}function w7t(t,e){var r,i,s,n;if(e)for(n=Object.keys(e),r=0,i=n.length;r<i;r+=1)s=n[r],t[s]=e[s];return t}function C7t(t,e){var r="",i;for(i=0;i<e;i+=1)r+=t;return r}function I7t(t){return t===0&&Number.NEGATIVE_INFINITY===1/t}var S7t=E6e,B7t=E7t,v7t=b7t,x7t=C7t,_7t=I7t,R7t=w7t,cs={isNothing:S7t,isObject:B7t,toArray:v7t,repeat:x7t,isNegativeZero:_7t,extend:R7t};function b6e(t,e){var r="",i=t.reason||"(unknown reason)";return t.mark?(t.mark.name&&(r+='in "'+t.mark.name+'" '),r+="("+(t.mark.line+1)+":"+(t.mark.column+1)+")",!e&&t.mark.snippet&&(r+=`
|
||||
If the error persists, please check whether Actions and API requests are operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),i}})}};var wYr=new _I;var fq=class{static async upload(e){if(gt.isGHES)throw new Error("@actions/artifact v2.0.0+ is currently not supported on GHES.");let r=$se.default.basename(e.filename),i=new _I;L(`Uploading ${r} as an artifact`);let s=$se.default.dirname(e.filename),n=await i.uploadArtifact(r,[e.filename],s,{retentionDays:e.retentionDays,skipArchive:!0});if(!n.id)throw new hl("Cannot upload artifact");let o=n.size??p6e.default.statSync(e.filename).size,a=`${gt.workflowRunURL()}/artifacts/${n.id}`;return L(`Artifact download URL: ${a}`),{id:n.id,filename:r,digest:n.digest||"",size:o,url:a}}};var ane=k(m6e(),1);function T6e(t){return typeof t>"u"||t===null}function F7t(t){return typeof t=="object"&&t!==null}function M7t(t){return Array.isArray(t)?t:T6e(t)?[]:[t]}function U7t(t,e){var r,i,s,n;if(e)for(n=Object.keys(e),r=0,i=n.length;r<i;r+=1)s=n[r],t[s]=e[s];return t}function q7t(t,e){var r="",i;for(i=0;i<e;i+=1)r+=t;return r}function G7t(t){return t===0&&Number.NEGATIVE_INFINITY===1/t}var H7t=T6e,j7t=F7t,z7t=M7t,V7t=q7t,$7t=G7t,W7t=U7t,cs={isNothing:H7t,isObject:j7t,toArray:z7t,repeat:V7t,isNegativeZero:$7t,extend:W7t};function D6e(t,e){var r="",i=t.reason||"(unknown reason)";return t.mark?(t.mark.name&&(r+='in "'+t.mark.name+'" '),r+="("+(t.mark.line+1)+":"+(t.mark.column+1)+")",!e&&t.mark.snippet&&(r+=`
|
||||
|
||||
`+t.mark.snippet),i+" "+r):i}function RT(t,e){Error.call(this),this.name="YAMLException",this.reason=t,this.mark=e,this.message=b6e(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}RT.prototype=Object.create(Error.prototype);RT.prototype.constructor=RT;RT.prototype.toString=function(e){return this.name+": "+b6e(this,e)};var ca=RT;function Fse(t,e,r,i,s){var n="",o="",a=Math.floor(s/2)-1;return i-e>a&&(n=" ... ",e=i-a+n.length),r-i>a&&(o=" ...",r=i+a-o.length),{str:n+t.slice(e,r).replace(/\t/g,"\u2192")+o,pos:i-e+n.length}}function Use(t,e){return cs.repeat(" ",e-t.length)+t}function T7t(t,e){if(e=Object.create(e||null),!t.buffer)return null;e.maxLength||(e.maxLength=79),typeof e.indent!="number"&&(e.indent=1),typeof e.linesBefore!="number"&&(e.linesBefore=3),typeof e.linesAfter!="number"&&(e.linesAfter=2);for(var r=/\r?\n|\r|\0/g,i=[0],s=[],n,o=-1;n=r.exec(t.buffer);)s.push(n.index),i.push(n.index+n[0].length),t.position<=n.index&&o<0&&(o=i.length-2);o<0&&(o=i.length-1);var a="",c,u,l=Math.min(t.line+e.linesAfter,s.length).toString().length,f=e.maxLength-(e.indent+l+3);for(c=1;c<=e.linesBefore&&!(o-c<0);c++)u=Fse(t.buffer,i[o-c],s[o-c],t.position-(i[o]-i[o-c]),f),a=cs.repeat(" ",e.indent)+Use((t.line-c+1).toString(),l)+" | "+u.str+`
|
||||
`+a;for(u=Fse(t.buffer,i[o],s[o],t.position,f),a+=cs.repeat(" ",e.indent)+Use((t.line+1).toString(),l)+" | "+u.str+`
|
||||
`+t.mark.snippet),i+" "+r):i}function DN(t,e){Error.call(this),this.name="YAMLException",this.reason=t,this.mark=e,this.message=D6e(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}DN.prototype=Object.create(Error.prototype);DN.prototype.constructor=DN;DN.prototype.toString=function(e){return this.name+": "+D6e(this,e)};var ca=DN;function Wse(t,e,r,i,s){var n="",o="",a=Math.floor(s/2)-1;return i-e>a&&(n=" ... ",e=i-a+n.length),r-i>a&&(o=" ...",r=i+a-o.length),{str:n+t.slice(e,r).replace(/\t/g,"\u2192")+o,pos:i-e+n.length}}function Jse(t,e){return cs.repeat(" ",e-t.length)+t}function J7t(t,e){if(e=Object.create(e||null),!t.buffer)return null;e.maxLength||(e.maxLength=79),typeof e.indent!="number"&&(e.indent=1),typeof e.linesBefore!="number"&&(e.linesBefore=3),typeof e.linesAfter!="number"&&(e.linesAfter=2);for(var r=/\r?\n|\r|\0/g,i=[0],s=[],n,o=-1;n=r.exec(t.buffer);)s.push(n.index),i.push(n.index+n[0].length),t.position<=n.index&&o<0&&(o=i.length-2);o<0&&(o=i.length-1);var a="",c,u,l=Math.min(t.line+e.linesAfter,s.length).toString().length,f=e.maxLength-(e.indent+l+3);for(c=1;c<=e.linesBefore&&!(o-c<0);c++)u=Wse(t.buffer,i[o-c],s[o-c],t.position-(i[o]-i[o-c]),f),a=cs.repeat(" ",e.indent)+Jse((t.line-c+1).toString(),l)+" | "+u.str+`
|
||||
`+a;for(u=Wse(t.buffer,i[o],s[o],t.position,f),a+=cs.repeat(" ",e.indent)+Jse((t.line+1).toString(),l)+" | "+u.str+`
|
||||
`,a+=cs.repeat("-",e.indent+l+3+u.pos)+`^
|
||||
`,c=1;c<=e.linesAfter&&!(o+c>=s.length);c++)u=Fse(t.buffer,i[o+c],s[o+c],t.position-(i[o]-i[o+c]),f),a+=cs.repeat(" ",e.indent)+Use((t.line+c+1).toString(),l)+" | "+u.str+`
|
||||
`;return a.replace(/\n$/,"")}var N7t=T7t,D7t=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],O7t=["scalar","sequence","mapping"];function P7t(t){var e={};return t!==null&&Object.keys(t).forEach(function(r){t[r].forEach(function(i){e[String(i)]=r})}),e}function Q7t(t,e){if(e=e||{},Object.keys(e).forEach(function(r){if(D7t.indexOf(r)===-1)throw new ca('Unknown option "'+r+'" is met in definition of "'+t+'" YAML type.')}),this.options=e,this.tag=t,this.kind=e.kind||null,this.resolve=e.resolve||function(){return!0},this.construct=e.construct||function(r){return r},this.instanceOf=e.instanceOf||null,this.predicate=e.predicate||null,this.represent=e.represent||null,this.representName=e.representName||null,this.defaultStyle=e.defaultStyle||null,this.multi=e.multi||!1,this.styleAliases=P7t(e.styleAliases||null),O7t.indexOf(this.kind)===-1)throw new ca('Unknown kind "'+this.kind+'" is specified for "'+t+'" YAML type.')}var Tn=Q7t;function s6e(t,e){var r=[];return t[e].forEach(function(i){var s=r.length;r.forEach(function(n,o){n.tag===i.tag&&n.kind===i.kind&&n.multi===i.multi&&(s=o)}),r[s]=i}),r}function k7t(){var t={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},e,r;function i(s){s.multi?(t.multi[s.kind].push(s),t.multi.fallback.push(s)):t[s.kind][s.tag]=t.fallback[s.tag]=s}for(e=0,r=arguments.length;e<r;e+=1)arguments[e].forEach(i);return t}function Gse(t){return this.extend(t)}Gse.prototype.extend=function(e){var r=[],i=[];if(e instanceof Tn)i.push(e);else if(Array.isArray(e))i=i.concat(e);else if(e&&(Array.isArray(e.implicit)||Array.isArray(e.explicit)))e.implicit&&(r=r.concat(e.implicit)),e.explicit&&(i=i.concat(e.explicit));else throw new ca("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");r.forEach(function(n){if(!(n instanceof Tn))throw new ca("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(n.loadKind&&n.loadKind!=="scalar")throw new ca("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(n.multi)throw new ca("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),i.forEach(function(n){if(!(n instanceof Tn))throw new ca("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var s=Object.create(Gse.prototype);return s.implicit=(this.implicit||[]).concat(r),s.explicit=(this.explicit||[]).concat(i),s.compiledImplicit=s6e(s,"implicit"),s.compiledExplicit=s6e(s,"explicit"),s.compiledTypeMap=k7t(s.compiledImplicit,s.compiledExplicit),s};var L7t=Gse,M7t=new Tn("tag:yaml.org,2002:str",{kind:"scalar",construct:function(t){return t!==null?t:""}}),F7t=new Tn("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(t){return t!==null?t:[]}}),U7t=new Tn("tag:yaml.org,2002:map",{kind:"mapping",construct:function(t){return t!==null?t:{}}}),q7t=new L7t({explicit:[M7t,F7t,U7t]});function G7t(t){if(t===null)return!0;var e=t.length;return e===1&&t==="~"||e===4&&(t==="null"||t==="Null"||t==="NULL")}function H7t(){return null}function j7t(t){return t===null}var z7t=new Tn("tag:yaml.org,2002:null",{kind:"scalar",resolve:G7t,construct:H7t,predicate:j7t,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});function V7t(t){if(t===null)return!1;var e=t.length;return e===4&&(t==="true"||t==="True"||t==="TRUE")||e===5&&(t==="false"||t==="False"||t==="FALSE")}function $7t(t){return t==="true"||t==="True"||t==="TRUE"}function W7t(t){return Object.prototype.toString.call(t)==="[object Boolean]"}var J7t=new Tn("tag:yaml.org,2002:bool",{kind:"scalar",resolve:V7t,construct:$7t,predicate:W7t,represent:{lowercase:function(t){return t?"true":"false"},uppercase:function(t){return t?"TRUE":"FALSE"},camelcase:function(t){return t?"True":"False"}},defaultStyle:"lowercase"});function Y7t(t){return 48<=t&&t<=57||65<=t&&t<=70||97<=t&&t<=102}function K7t(t){return 48<=t&&t<=55}function X7t(t){return 48<=t&&t<=57}function Z7t(t){if(t===null)return!1;var e=t.length,r=0,i=!1,s;if(!e)return!1;if(s=t[r],(s==="-"||s==="+")&&(s=t[++r]),s==="0"){if(r+1===e)return!0;if(s=t[++r],s==="b"){for(r++;r<e;r++)if(s=t[r],s!=="_"){if(s!=="0"&&s!=="1")return!1;i=!0}return i&&s!=="_"}if(s==="x"){for(r++;r<e;r++)if(s=t[r],s!=="_"){if(!Y7t(t.charCodeAt(r)))return!1;i=!0}return i&&s!=="_"}if(s==="o"){for(r++;r<e;r++)if(s=t[r],s!=="_"){if(!K7t(t.charCodeAt(r)))return!1;i=!0}return i&&s!=="_"}}if(s==="_")return!1;for(;r<e;r++)if(s=t[r],s!=="_"){if(!X7t(t.charCodeAt(r)))return!1;i=!0}return!(!i||s==="_")}function eKt(t){var e=t,r=1,i;if(e.indexOf("_")!==-1&&(e=e.replace(/_/g,"")),i=e[0],(i==="-"||i==="+")&&(i==="-"&&(r=-1),e=e.slice(1),i=e[0]),e==="0")retur
Line truncated
|
||||
\r`;function yKt(t){if(t===null)return!1;var e,r,i=0,s=t.length,n=$se;for(r=0;r<s;r++)if(e=n.indexOf(t.charAt(r)),!(e>64)){if(e<0)return!1;i+=6}return i%8===0}function EKt(t){var e,r,i=t.replace(/[\r\n=]/g,""),s=i.length,n=$se,o=0,a=[];for(e=0;e<s;e++)e%4===0&&e&&(a.push(o>>16&255),a.push(o>>8&255),a.push(o&255)),o=o<<6|n.indexOf(i.charAt(e));return r=s%4*6,r===0?(a.push(o>>16&255),a.push(o>>8&255),a.push(o&255)):r===18?(a.push(o>>10&255),a.push(o>>2&255)):r===12&&a.push(o>>4&255),new Uint8Array(a)}function bKt(t){var e="",r=0,i,s,n=t.length,o=$se;for(i=0;i<n;i++)i%3===0&&i&&(e+=o[r>>18&63],e+=o[r>>12&63],e+=o[r>>6&63],e+=o[r&63]),r=(r<<8)+t[i];return s=n%3,s===0?(e+=o[r>>18&63],e+=o[r>>12&63],e+=o[r>>6&63],e+=o[r&63]):s===2?(e+=o[r>>10&63],e+=o[r>>4&63],e+=o[r<<2&63],e+=o[64]):s===1&&(e+=o[r>>2&63],e+=o[r<<4&63],e+=o[64],e+=o[64]),e}function wKt(t){return Object.prototype.toString.call(t)==="[object Uint8Array]"}var CKt=new Tn("tag:yaml.org,2002:binary",{kind:"scalar",resolve:yKt,construct:EKt,predicate:wKt,represent:bKt}),IKt=Object.prototype.hasOwnProperty,SKt=Object.prototype.toString;function BKt(t){if(t===null)return!0;var e=[],r,i,s,n,o,a=t;for(r=0,i=a.length;r<i;r+=1){if(s=a[r],o=!1,SKt.call(s)!=="[object Object]")return!1;for(n in s)if(IKt.call(s,n))if(!o)o=!0;else return!1;if(!o)return!1;if(e.indexOf(n)===-1)e.push(n);else return!1}return!0}function vKt(t){return t!==null?t:[]}var xKt=new Tn("tag:yaml.org,2002:omap",{kind:"sequence",resolve:BKt,construct:vKt}),_Kt=Object.prototype.toString;function RKt(t){if(t===null)return!0;var e,r,i,s,n,o=t;for(n=new Array(o.length),e=0,r=o.length;e<r;e+=1){if(i=o[e],_Kt.call(i)!=="[object Object]"||(s=Object.keys(i),s.length!==1))return!1;n[e]=[s[0],i[s[0]]]}return!0}function TKt(t){if(t===null)return[];var e,r,i,s,n,o=t;for(n=new Array(o.length),e=0,r=o.length;e<r;e+=1)i=o[e],s=Object.keys(i),n[e]=[s[0],i[s[0]]];return n}var NKt=new Tn("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:RKt,construct:TKt}),DKt=Object.prototype.hasOwnProperty;function OKt(t){if(t===null)return!0;var e,r=t;for(e in r)if(DKt.call(r,e)&&r[e]!==null)return!1;return!0}function PKt(t){return t!==null?t:{}}var QKt=new Tn("tag:yaml.org,2002:set",{kind:"mapping",resolve:OKt,construct:PKt}),I6e=fKt.extend({implicit:[mKt,gKt],explicit:[CKt,xKt,NKt,QKt]}),wA=Object.prototype.hasOwnProperty,aq=1,S6e=2,B6e=3,cq=4,qse=1,kKt=2,n6e=3,LKt=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,MKt=/[\x85\u2028\u2029]/,FKt=/[,\[\]\{\}]/,v6e=/^(?:!|!!|![a-z\-]+!)$/i,x6e=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function o6e(t){return Object.prototype.toString.call(t)}function ch(t){return t===10||t===13}function vE(t){return t===9||t===32}function ua(t){return t===9||t===32||t===10||t===13}function xI(t){return t===44||t===91||t===93||t===123||t===125}function UKt(t){var e;return 48<=t&&t<=57?t-48:(e=t|32,97<=e&&e<=102?e-97+10:-1)}function qKt(t){return t===120?2:t===117?4:t===85?8:0}function GKt(t){return 48<=t&&t<=57?t-48:-1}function a6e(t){return t===48?"\0":t===97?"\x07":t===98?"\b":t===116||t===9?" ":t===110?`
|
||||
`:t===118?"\v":t===102?"\f":t===114?"\r":t===101?"\x1B":t===32?" ":t===34?'"':t===47?"/":t===92?"\\":t===78?"\x85":t===95?"\xA0":t===76?"\u2028":t===80?"\u2029":""}function HKt(t){return t<=65535?String.fromCharCode(t):String.fromCharCode((t-65536>>10)+55296,(t-65536&1023)+56320)}function _6e(t,e,r){e==="__proto__"?Object.defineProperty(t,e,{configurable:!0,enumerable:!0,writable:!0,value:r}):t[e]=r}var R6e=new Array(256),T6e=new Array(256);for(BE=0;BE<256;BE++)R6e[BE]=a6e(BE)?1:0,T6e[BE]=a6e(BE);var BE;function jKt(t,e){this.input=t,this.filename=e.filename||null,this.schema=e.schema||I6e,this.onWarning=e.onWarning||null,this.legacy=e.legacy||!1,this.json=e.json||!1,this.listener=e.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=t.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function N6e(t,e){var r={name:t.filename,buffer:t.input.slice(0,-1),position:t.position,line:t.line,column:t.position-t.lineStart};return r.snippet=N7t(r),new ca(e,r)}function Le(t,e){throw N6e(t,e)}function uq(t,e){t.onWarning&&t.onWarning.call(null,N6e(t,e))}var c6e={YAML:function(e,r,i){var s,n,o;e.version!==null&&Le(e,"duplication of %YAML directive"),i.length!==1&&Le(e,"YAML directive accepts exactly one argument"),s=/^([0-9]+)\.([0-9]+)$/.exec(i[0]),s===null&&Le(e,"ill-formed argument of the YAML directive"),n=parseInt(s[1],10),o=parseInt(s[2],10),n!==1&&Le(e,"unacceptable YAML version of the document"),e.version=i[0],e.checkLineBreaks=o<2,o!==1&&o!==2&&uq(e,"unsupported YAML version of the document")},TAG:function(e,r,i){var s,n;i.length!==2&&Le(e,"TAG directive accepts exactly two arguments"),s=i[0],n=i[1],v6e.test(s)||Le(e,"ill-formed tag handle (first argument) of the TAG directive"),wA.call(e.tagMap,s)&&Le(e,'there is a previously declared suffix for "'+s+'" tag handle'),x6e.test(n)||Le(e,"ill-formed tag prefix (second argument) of the TAG directive");try{n=decodeURIComponent(n)}catch{Le(e,"tag prefix is malformed: "+n)}e.tagMap[s]=n}};function bA(t,e,r,i){var s,n,o,a;if(e<r){if(a=t.input.slice(e,r),i)for(s=0,n=a.length;s<n;s+=1)o=a.charCodeAt(s),o===9||32<=o&&o<=1114111||Le(t,"expected valid JSON character");else LKt.test(a)&&Le(t,"the stream contains non-printable characters");t.result+=a}}function u6e(t,e,r,i){var s,n,o,a;for(cs.isObject(r)||Le(t,"cannot merge mappings; the provided source object is unacceptable"),s=Object.keys(r),o=0,a=s.length;o<a;o+=1)n=s[o],wA.call(e,n)||(_6e(e,n,r[n]),i[n]=!0)}function _I(t,e,r,i,s,n,o,a,c){var u,l;if(Array.isArray(s))for(s=Array.prototype.slice.call(s),u=0,l=s.length;u<l;u+=1)Array.isArray(s[u])&&Le(t,"nested arrays are not supported inside keys"),typeof s=="object"&&o6e(s[u])==="[object Object]"&&(s[u]="[object Object]");if(typeof s=="object"&&o6e(s)==="[object Object]"&&(s="[object Object]"),s=String(s),e===null&&(e={}),i==="tag:yaml.org,2002:merge")if(Array.isArray(n))for(u=0,l=n.length;u<l;u+=1)u6e(t,e,n[u],r);else u6e(t,e,n,r);else!t.json&&!wA.call(r,s)&&wA.call(e,s)&&(t.line=o||t.line,t.lineStart=a||t.lineStart,t.position=c||t.position,Le(t,"duplicated mapping key")),_6e(e,s,n),delete r[s];return e}function Wse(t){var e;e=t.input.charCodeAt(t.position),e===10?t.position++:e===13?(t.position++,t.input.charCodeAt(t.position)===10&&t.position++):Le(t,"a line break is expected"),t.line+=1,t.lineStart=t.position,t.firstTabInLine=-1}function ji(t,e,r){for(var i=0,s=t.input.charCodeAt(t.position);s!==0;){for(;vE(s);)s===9&&t.firstTabInLine===-1&&(t.firstTabInLine=t.position),s=t.input.charCodeAt(++t.position);if(e&&s===35)do s=t.input.charCodeAt(++t.position);while(s!==10&&s!==13&&s!==0);if(ch(s))for(Wse(t),s=t.input.charCodeAt(t.position),i++,t.lineIndent=0;s===32;)t.lineIndent++,s=t.input.charCodeAt(++t.position);else break}return r!==-1&&i!==0&&t.lineIndent<r&&uq(t,"deficient indentation"),i}function hq(t){var e=t.position,r;return r=t.input.charCodeAt(e),!!((r===45||r===46)&&r===t.input.charCodeAt(e+1)&&r===t.input.charCodeAt(e+2)&&(e+=3,r=t.input.charCodeAt(e),r===0||ua(r)))}function Jse(t,e){e===1?t.result+=" ":e>1&&(t.result+=cs.repeat(`
|
||||
`,e-1))}function zKt(t,e,r){var i,s,n,o,a,c,u,l,f=t.kind,h=t.result,d;if(d=t.input.charCodeAt(t.position),ua(d)||xI(d)||d===35||d===38||d===42||d===33||d===124||d===62||d===39||d===34||d===37||d===64||d===96||(d===63||d===45)&&(s=t.input.charCodeAt(t.position+1),ua(s)||r&&xI(s)))return!1;for(t.kind="scalar",t.result="",n=o=t.position,a=!1;d!==0;){if(d===58){if(s=t.input.charCodeAt(t.position+1),ua(s)||r&&xI(s))break}else if(d===35){if(i=t.input.charCodeAt(t.position-1),ua(i))break}else{if(t.position===t.lineStart&&hq(t)||r&&xI(d))break;if(ch(d))if(c=t.line,u=t.lineStart,l=t.lineIndent,ji(t,!1,-1),t.lineIndent>=e){a=!0,d=t.input.charCodeAt(t.position);continue}else{t.position=o,t.line=c,t.lineStart=u,t.lineIndent=l;break}}a&&(bA(t,n,o,!1),Jse(t,t.line-c),n=o=t.position,a=!1),vE(d)||(o=t.position+1),d=t.input.charCodeAt(++t.position)}return bA(t,n,o,!1),t.result?!0:(t.kind=f,t.result=h,!1)}function VKt(t,e){var r,i,s;if(r=t.input.charCodeAt(t.position),r!==39)return!1;for(t.kind="scalar",t.result="",t.position++,i=s=t.position;(r=t.input.charCodeAt(t.position))!==0;)if(r===39)if(bA(t,i,t.position,!0),r=t.input.charCodeAt(++t.position),r===39)i=t.position,t.position++,s=t.position;else return!0;else ch(r)?(bA(t,i,s,!0),Jse(t,ji(t,!1,e)),i=s=t.position):t.position===t.lineStart&&hq(t)?Le(t,"unexpected end of the document within a single quoted scalar"):(t.position++,s=t.position);Le(t,"unexpected end of the stream within a single quoted scalar")}function $Kt(t,e){var r,i,s,n,o,a;if(a=t.input.charCodeAt(t.position),a!==34)return!1;for(t.kind="scalar",t.result="",t.position++,r=i=t.position;(a=t.input.charCodeAt(t.position))!==0;){if(a===34)return bA(t,r,t.position,!0),t.position++,!0;if(a===92){if(bA(t,r,t.position,!0),a=t.input.charCodeAt(++t.position),ch(a))ji(t,!1,e);else if(a<256&&R6e[a])t.result+=T6e[a],t.position++;else if((o=qKt(a))>0){for(s=o,n=0;s>0;s--)a=t.input.charCodeAt(++t.position),(o=UKt(a))>=0?n=(n<<4)+o:Le(t,"expected hexadecimal character");t.result+=HKt(n),t.position++}else Le(t,"unknown escape sequence");r=i=t.position}else ch(a)?(bA(t,r,i,!0),Jse(t,ji(t,!1,e)),r=i=t.position):t.position===t.lineStart&&hq(t)?Le(t,"unexpected end of the document within a double quoted scalar"):(t.position++,i=t.position)}Le(t,"unexpected end of the stream within a double quoted scalar")}function WKt(t,e){var r=!0,i,s,n,o=t.tag,a,c=t.anchor,u,l,f,h,d,m=Object.create(null),A,y,g,E;if(E=t.input.charCodeAt(t.position),E===91)l=93,d=!1,a=[];else if(E===123)l=125,d=!0,a={};else return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=a),E=t.input.charCodeAt(++t.position);E!==0;){if(ji(t,!0,e),E=t.input.charCodeAt(t.position),E===l)return t.position++,t.tag=o,t.anchor=c,t.kind=d?"mapping":"sequence",t.result=a,!0;r?E===44&&Le(t,"expected the node content, but found ','"):Le(t,"missed comma between flow collection entries"),y=A=g=null,f=h=!1,E===63&&(u=t.input.charCodeAt(t.position+1),ua(u)&&(f=h=!0,t.position++,ji(t,!0,e))),i=t.line,s=t.lineStart,n=t.position,RI(t,e,aq,!1,!0),y=t.tag,A=t.result,ji(t,!0,e),E=t.input.charCodeAt(t.position),(h||t.line===i)&&E===58&&(f=!0,E=t.input.charCodeAt(++t.position),ji(t,!0,e),RI(t,e,aq,!1,!0),g=t.result),d?_I(t,a,m,y,A,g,i,s,n):f?a.push(_I(t,null,m,y,A,g,i,s,n)):a.push(A),ji(t,!0,e),E=t.input.charCodeAt(t.position),E===44?(r=!0,E=t.input.charCodeAt(++t.position)):r=!1}Le(t,"unexpected end of the stream within a flow collection")}function JKt(t,e){var r,i,s=qse,n=!1,o=!1,a=e,c=0,u=!1,l,f;if(f=t.input.charCodeAt(t.position),f===124)i=!1;else if(f===62)i=!0;else return!1;for(t.kind="scalar",t.result="";f!==0;)if(f=t.input.charCodeAt(++t.position),f===43||f===45)qse===s?s=f===43?n6e:kKt:Le(t,"repeat of a chomping mode identifier");else if((l=GKt(f))>=0)l===0?Le(t,"bad explicit indentation width of a block scalar; it cannot be less than one"):o?Le(t,"repeat of an indentation width identifier"):(a=e+l-1,o=!0);else break;if(vE(f)){do f=t.input.charCodeAt(++t.position);while(vE(f));if(f===35)do f=t.input.charCodeAt(++t.position);while(!ch(f)&&f!==0)}for(;f!==0;){for(Wse(t),t.lineIndent=0,f=t.input.charCodeAt(t.position);(!o||t.lineIndent<a)&&f===32;)t.lineIndent++,f=t.input.charCodeAt(++t.position);if(!o&&t.lineIndent>a&&(a=t.lineIndent),ch(f)){c++;continue}if(t.lineIndent<a){s===n6e?t.result+=cs.repeat(`
|
||||
`,n?1+c:c):s===qse&&n&&(t.result+=`
|
||||
`);break}for(i?vE(f)?(u=!0,t.result+=cs.repeat(`
|
||||
`,c=1;c<=e.linesAfter&&!(o+c>=s.length);c++)u=Wse(t.buffer,i[o+c],s[o+c],t.position-(i[o]-i[o+c]),f),a+=cs.repeat(" ",e.indent)+Jse((t.line+c+1).toString(),l)+" | "+u.str+`
|
||||
`;return a.replace(/\n$/,"")}var Y7t=J7t,K7t=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],X7t=["scalar","sequence","mapping"];function Z7t(t){var e={};return t!==null&&Object.keys(t).forEach(function(r){t[r].forEach(function(i){e[String(i)]=r})}),e}function eKt(t,e){if(e=e||{},Object.keys(e).forEach(function(r){if(K7t.indexOf(r)===-1)throw new ca('Unknown option "'+r+'" is met in definition of "'+t+'" YAML type.')}),this.options=e,this.tag=t,this.kind=e.kind||null,this.resolve=e.resolve||function(){return!0},this.construct=e.construct||function(r){return r},this.instanceOf=e.instanceOf||null,this.predicate=e.predicate||null,this.represent=e.represent||null,this.representName=e.representName||null,this.defaultStyle=e.defaultStyle||null,this.multi=e.multi||!1,this.styleAliases=Z7t(e.styleAliases||null),X7t.indexOf(this.kind)===-1)throw new ca('Unknown kind "'+this.kind+'" is specified for "'+t+'" YAML type.')}var Nn=eKt;function A6e(t,e){var r=[];return t[e].forEach(function(i){var s=r.length;r.forEach(function(n,o){n.tag===i.tag&&n.kind===i.kind&&n.multi===i.multi&&(s=o)}),r[s]=i}),r}function tKt(){var t={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},e,r;function i(s){s.multi?(t.multi[s.kind].push(s),t.multi.fallback.push(s)):t[s.kind][s.tag]=t.fallback[s.tag]=s}for(e=0,r=arguments.length;e<r;e+=1)arguments[e].forEach(i);return t}function Kse(t){return this.extend(t)}Kse.prototype.extend=function(e){var r=[],i=[];if(e instanceof Nn)i.push(e);else if(Array.isArray(e))i=i.concat(e);else if(e&&(Array.isArray(e.implicit)||Array.isArray(e.explicit)))e.implicit&&(r=r.concat(e.implicit)),e.explicit&&(i=i.concat(e.explicit));else throw new ca("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");r.forEach(function(n){if(!(n instanceof Nn))throw new ca("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(n.loadKind&&n.loadKind!=="scalar")throw new ca("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(n.multi)throw new ca("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),i.forEach(function(n){if(!(n instanceof Nn))throw new ca("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var s=Object.create(Kse.prototype);return s.implicit=(this.implicit||[]).concat(r),s.explicit=(this.explicit||[]).concat(i),s.compiledImplicit=A6e(s,"implicit"),s.compiledExplicit=A6e(s,"explicit"),s.compiledTypeMap=tKt(s.compiledImplicit,s.compiledExplicit),s};var rKt=Kse,iKt=new Nn("tag:yaml.org,2002:str",{kind:"scalar",construct:function(t){return t!==null?t:""}}),sKt=new Nn("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(t){return t!==null?t:[]}}),nKt=new Nn("tag:yaml.org,2002:map",{kind:"mapping",construct:function(t){return t!==null?t:{}}}),oKt=new rKt({explicit:[iKt,sKt,nKt]});function aKt(t){if(t===null)return!0;var e=t.length;return e===1&&t==="~"||e===4&&(t==="null"||t==="Null"||t==="NULL")}function cKt(){return null}function uKt(t){return t===null}var lKt=new Nn("tag:yaml.org,2002:null",{kind:"scalar",resolve:aKt,construct:cKt,predicate:uKt,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});function fKt(t){if(t===null)return!1;var e=t.length;return e===4&&(t==="true"||t==="True"||t==="TRUE")||e===5&&(t==="false"||t==="False"||t==="FALSE")}function hKt(t){return t==="true"||t==="True"||t==="TRUE"}function dKt(t){return Object.prototype.toString.call(t)==="[object Boolean]"}var pKt=new Nn("tag:yaml.org,2002:bool",{kind:"scalar",resolve:fKt,construct:hKt,predicate:dKt,represent:{lowercase:function(t){return t?"true":"false"},uppercase:function(t){return t?"TRUE":"FALSE"},camelcase:function(t){return t?"True":"False"}},defaultStyle:"lowercase"});function mKt(t){return 48<=t&&t<=57||65<=t&&t<=70||97<=t&&t<=102}function AKt(t){return 48<=t&&t<=55}function gKt(t){return 48<=t&&t<=57}function yKt(t){if(t===null)return!1;var e=t.length,r=0,i=!1,s;if(!e)return!1;if(s=t[r],(s==="-"||s==="+")&&(s=t[++r]),s==="0"){if(r+1===e)return!0;if(s=t[++r],s==="b"){for(r++;r<e;r++)if(s=t[r],s!=="_"){if(s!=="0"&&s!=="1")return!1;i=!0}return i&&s!=="_"}if(s==="x"){for(r++;r<e;r++)if(s=t[r],s!=="_"){if(!mKt(t.charCodeAt(r)))return!1;i=!0}return i&&s!=="_"}if(s==="o"){for(r++;r<e;r++)if(s=t[r],s!=="_"){if(!AKt(t.charCodeAt(r)))return!1;i=!0}return i&&s!=="_"}}if(s==="_")return!1;for(;r<e;r++)if(s=t[r],s!=="_"){if(!gKt(t.charCodeAt(r)))return!1;i=!0}return!(!i||s==="_")}function EKt(t){var e=t,r=1,i;if(e.indexOf("_")!==-1&&(e=e.replace(/_/g,"")),i=e[0],(i==="-"||i==="+")&&(i==="-"&&(r=-1),e=e.slice(1),i=e[0]),e==="0")retur
Line truncated
|
||||
\r`;function LKt(t){if(t===null)return!1;var e,r,i=0,s=t.length,n=rne;for(r=0;r<s;r++)if(e=n.indexOf(t.charAt(r)),!(e>64)){if(e<0)return!1;i+=6}return i%8===0}function FKt(t){var e,r,i=t.replace(/[\r\n=]/g,""),s=i.length,n=rne,o=0,a=[];for(e=0;e<s;e++)e%4===0&&e&&(a.push(o>>16&255),a.push(o>>8&255),a.push(o&255)),o=o<<6|n.indexOf(i.charAt(e));return r=s%4*6,r===0?(a.push(o>>16&255),a.push(o>>8&255),a.push(o&255)):r===18?(a.push(o>>10&255),a.push(o>>2&255)):r===12&&a.push(o>>4&255),new Uint8Array(a)}function MKt(t){var e="",r=0,i,s,n=t.length,o=rne;for(i=0;i<n;i++)i%3===0&&i&&(e+=o[r>>18&63],e+=o[r>>12&63],e+=o[r>>6&63],e+=o[r&63]),r=(r<<8)+t[i];return s=n%3,s===0?(e+=o[r>>18&63],e+=o[r>>12&63],e+=o[r>>6&63],e+=o[r&63]):s===2?(e+=o[r>>10&63],e+=o[r>>4&63],e+=o[r<<2&63],e+=o[64]):s===1&&(e+=o[r>>2&63],e+=o[r<<4&63],e+=o[64],e+=o[64]),e}function UKt(t){return Object.prototype.toString.call(t)==="[object Uint8Array]"}var qKt=new Nn("tag:yaml.org,2002:binary",{kind:"scalar",resolve:LKt,construct:FKt,predicate:UKt,represent:MKt}),GKt=Object.prototype.hasOwnProperty,HKt=Object.prototype.toString;function jKt(t){if(t===null)return!0;var e=[],r,i,s,n,o,a=t;for(r=0,i=a.length;r<i;r+=1){if(s=a[r],o=!1,HKt.call(s)!=="[object Object]")return!1;for(n in s)if(GKt.call(s,n))if(!o)o=!0;else return!1;if(!o)return!1;if(e.indexOf(n)===-1)e.push(n);else return!1}return!0}function zKt(t){return t!==null?t:[]}var VKt=new Nn("tag:yaml.org,2002:omap",{kind:"sequence",resolve:jKt,construct:zKt}),$Kt=Object.prototype.toString;function WKt(t){if(t===null)return!0;var e,r,i,s,n,o=t;for(n=new Array(o.length),e=0,r=o.length;e<r;e+=1){if(i=o[e],$Kt.call(i)!=="[object Object]"||(s=Object.keys(i),s.length!==1))return!1;n[e]=[s[0],i[s[0]]]}return!0}function JKt(t){if(t===null)return[];var e,r,i,s,n,o=t;for(n=new Array(o.length),e=0,r=o.length;e<r;e+=1)i=o[e],s=Object.keys(i),n[e]=[s[0],i[s[0]]];return n}var YKt=new Nn("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:WKt,construct:JKt}),KKt=Object.prototype.hasOwnProperty;function XKt(t){if(t===null)return!0;var e,r=t;for(e in r)if(KKt.call(r,e)&&r[e]!==null)return!1;return!0}function ZKt(t){return t!==null?t:{}}var eXt=new Nn("tag:yaml.org,2002:set",{kind:"mapping",resolve:XKt,construct:ZKt}),Q6e=NKt.extend({implicit:[PKt,kKt],explicit:[qKt,VKt,YKt,eXt]}),CA=Object.prototype.hasOwnProperty,dq=1,k6e=2,L6e=3,pq=4,Yse=1,tXt=2,g6e=3,rXt=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,iXt=/[\x85\u2028\u2029]/,sXt=/[,\[\]\{\}]/,F6e=/^(?:!|!!|![a-z\-]+!)$/i,M6e=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function y6e(t){return Object.prototype.toString.call(t)}function ah(t){return t===10||t===13}function _E(t){return t===9||t===32}function ua(t){return t===9||t===32||t===10||t===13}function NI(t){return t===44||t===91||t===93||t===123||t===125}function nXt(t){var e;return 48<=t&&t<=57?t-48:(e=t|32,97<=e&&e<=102?e-97+10:-1)}function oXt(t){return t===120?2:t===117?4:t===85?8:0}function aXt(t){return 48<=t&&t<=57?t-48:-1}function E6e(t){return t===48?"\0":t===97?"\x07":t===98?"\b":t===116||t===9?" ":t===110?`
|
||||
`:t===118?"\v":t===102?"\f":t===114?"\r":t===101?"\x1B":t===32?" ":t===34?'"':t===47?"/":t===92?"\\":t===78?"\x85":t===95?"\xA0":t===76?"\u2028":t===80?"\u2029":""}function cXt(t){return t<=65535?String.fromCharCode(t):String.fromCharCode((t-65536>>10)+55296,(t-65536&1023)+56320)}function U6e(t,e,r){e==="__proto__"?Object.defineProperty(t,e,{configurable:!0,enumerable:!0,writable:!0,value:r}):t[e]=r}var q6e=new Array(256),G6e=new Array(256);for(xE=0;xE<256;xE++)q6e[xE]=E6e(xE)?1:0,G6e[xE]=E6e(xE);var xE;function uXt(t,e){this.input=t,this.filename=e.filename||null,this.schema=e.schema||Q6e,this.onWarning=e.onWarning||null,this.legacy=e.legacy||!1,this.json=e.json||!1,this.listener=e.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=t.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function H6e(t,e){var r={name:t.filename,buffer:t.input.slice(0,-1),position:t.position,line:t.line,column:t.position-t.lineStart};return r.snippet=Y7t(r),new ca(e,r)}function Le(t,e){throw H6e(t,e)}function mq(t,e){t.onWarning&&t.onWarning.call(null,H6e(t,e))}var b6e={YAML:function(e,r,i){var s,n,o;e.version!==null&&Le(e,"duplication of %YAML directive"),i.length!==1&&Le(e,"YAML directive accepts exactly one argument"),s=/^([0-9]+)\.([0-9]+)$/.exec(i[0]),s===null&&Le(e,"ill-formed argument of the YAML directive"),n=parseInt(s[1],10),o=parseInt(s[2],10),n!==1&&Le(e,"unacceptable YAML version of the document"),e.version=i[0],e.checkLineBreaks=o<2,o!==1&&o!==2&&mq(e,"unsupported YAML version of the document")},TAG:function(e,r,i){var s,n;i.length!==2&&Le(e,"TAG directive accepts exactly two arguments"),s=i[0],n=i[1],F6e.test(s)||Le(e,"ill-formed tag handle (first argument) of the TAG directive"),CA.call(e.tagMap,s)&&Le(e,'there is a previously declared suffix for "'+s+'" tag handle'),M6e.test(n)||Le(e,"ill-formed tag prefix (second argument) of the TAG directive");try{n=decodeURIComponent(n)}catch{Le(e,"tag prefix is malformed: "+n)}e.tagMap[s]=n}};function wA(t,e,r,i){var s,n,o,a;if(e<r){if(a=t.input.slice(e,r),i)for(s=0,n=a.length;s<n;s+=1)o=a.charCodeAt(s),o===9||32<=o&&o<=1114111||Le(t,"expected valid JSON character");else rXt.test(a)&&Le(t,"the stream contains non-printable characters");t.result+=a}}function w6e(t,e,r,i){var s,n,o,a;for(cs.isObject(r)||Le(t,"cannot merge mappings; the provided source object is unacceptable"),s=Object.keys(r),o=0,a=s.length;o<a;o+=1)n=s[o],CA.call(e,n)||(U6e(e,n,r[n]),i[n]=!0)}function TI(t,e,r,i,s,n,o,a,c){var u,l;if(Array.isArray(s))for(s=Array.prototype.slice.call(s),u=0,l=s.length;u<l;u+=1)Array.isArray(s[u])&&Le(t,"nested arrays are not supported inside keys"),typeof s=="object"&&y6e(s[u])==="[object Object]"&&(s[u]="[object Object]");if(typeof s=="object"&&y6e(s)==="[object Object]"&&(s="[object Object]"),s=String(s),e===null&&(e={}),i==="tag:yaml.org,2002:merge")if(Array.isArray(n))for(u=0,l=n.length;u<l;u+=1)w6e(t,e,n[u],r);else w6e(t,e,n,r);else!t.json&&!CA.call(r,s)&&CA.call(e,s)&&(t.line=o||t.line,t.lineStart=a||t.lineStart,t.position=c||t.position,Le(t,"duplicated mapping key")),U6e(e,s,n),delete r[s];return e}function ine(t){var e;e=t.input.charCodeAt(t.position),e===10?t.position++:e===13?(t.position++,t.input.charCodeAt(t.position)===10&&t.position++):Le(t,"a line break is expected"),t.line+=1,t.lineStart=t.position,t.firstTabInLine=-1}function ji(t,e,r){for(var i=0,s=t.input.charCodeAt(t.position);s!==0;){for(;_E(s);)s===9&&t.firstTabInLine===-1&&(t.firstTabInLine=t.position),s=t.input.charCodeAt(++t.position);if(e&&s===35)do s=t.input.charCodeAt(++t.position);while(s!==10&&s!==13&&s!==0);if(ah(s))for(ine(t),s=t.input.charCodeAt(t.position),i++,t.lineIndent=0;s===32;)t.lineIndent++,s=t.input.charCodeAt(++t.position);else break}return r!==-1&&i!==0&&t.lineIndent<r&&mq(t,"deficient indentation"),i}function yq(t){var e=t.position,r;return r=t.input.charCodeAt(e),!!((r===45||r===46)&&r===t.input.charCodeAt(e+1)&&r===t.input.charCodeAt(e+2)&&(e+=3,r=t.input.charCodeAt(e),r===0||ua(r)))}function sne(t,e){e===1?t.result+=" ":e>1&&(t.result+=cs.repeat(`
|
||||
`,e-1))}function lXt(t,e,r){var i,s,n,o,a,c,u,l,f=t.kind,h=t.result,d;if(d=t.input.charCodeAt(t.position),ua(d)||NI(d)||d===35||d===38||d===42||d===33||d===124||d===62||d===39||d===34||d===37||d===64||d===96||(d===63||d===45)&&(s=t.input.charCodeAt(t.position+1),ua(s)||r&&NI(s)))return!1;for(t.kind="scalar",t.result="",n=o=t.position,a=!1;d!==0;){if(d===58){if(s=t.input.charCodeAt(t.position+1),ua(s)||r&&NI(s))break}else if(d===35){if(i=t.input.charCodeAt(t.position-1),ua(i))break}else{if(t.position===t.lineStart&&yq(t)||r&&NI(d))break;if(ah(d))if(c=t.line,u=t.lineStart,l=t.lineIndent,ji(t,!1,-1),t.lineIndent>=e){a=!0,d=t.input.charCodeAt(t.position);continue}else{t.position=o,t.line=c,t.lineStart=u,t.lineIndent=l;break}}a&&(wA(t,n,o,!1),sne(t,t.line-c),n=o=t.position,a=!1),_E(d)||(o=t.position+1),d=t.input.charCodeAt(++t.position)}return wA(t,n,o,!1),t.result?!0:(t.kind=f,t.result=h,!1)}function fXt(t,e){var r,i,s;if(r=t.input.charCodeAt(t.position),r!==39)return!1;for(t.kind="scalar",t.result="",t.position++,i=s=t.position;(r=t.input.charCodeAt(t.position))!==0;)if(r===39)if(wA(t,i,t.position,!0),r=t.input.charCodeAt(++t.position),r===39)i=t.position,t.position++,s=t.position;else return!0;else ah(r)?(wA(t,i,s,!0),sne(t,ji(t,!1,e)),i=s=t.position):t.position===t.lineStart&&yq(t)?Le(t,"unexpected end of the document within a single quoted scalar"):(t.position++,s=t.position);Le(t,"unexpected end of the stream within a single quoted scalar")}function hXt(t,e){var r,i,s,n,o,a;if(a=t.input.charCodeAt(t.position),a!==34)return!1;for(t.kind="scalar",t.result="",t.position++,r=i=t.position;(a=t.input.charCodeAt(t.position))!==0;){if(a===34)return wA(t,r,t.position,!0),t.position++,!0;if(a===92){if(wA(t,r,t.position,!0),a=t.input.charCodeAt(++t.position),ah(a))ji(t,!1,e);else if(a<256&&q6e[a])t.result+=G6e[a],t.position++;else if((o=oXt(a))>0){for(s=o,n=0;s>0;s--)a=t.input.charCodeAt(++t.position),(o=nXt(a))>=0?n=(n<<4)+o:Le(t,"expected hexadecimal character");t.result+=cXt(n),t.position++}else Le(t,"unknown escape sequence");r=i=t.position}else ah(a)?(wA(t,r,i,!0),sne(t,ji(t,!1,e)),r=i=t.position):t.position===t.lineStart&&yq(t)?Le(t,"unexpected end of the document within a double quoted scalar"):(t.position++,i=t.position)}Le(t,"unexpected end of the stream within a double quoted scalar")}function dXt(t,e){var r=!0,i,s,n,o=t.tag,a,c=t.anchor,u,l,f,h,d,m=Object.create(null),A,y,g,E;if(E=t.input.charCodeAt(t.position),E===91)l=93,d=!1,a=[];else if(E===123)l=125,d=!0,a={};else return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=a),E=t.input.charCodeAt(++t.position);E!==0;){if(ji(t,!0,e),E=t.input.charCodeAt(t.position),E===l)return t.position++,t.tag=o,t.anchor=c,t.kind=d?"mapping":"sequence",t.result=a,!0;r?E===44&&Le(t,"expected the node content, but found ','"):Le(t,"missed comma between flow collection entries"),y=A=g=null,f=h=!1,E===63&&(u=t.input.charCodeAt(t.position+1),ua(u)&&(f=h=!0,t.position++,ji(t,!0,e))),i=t.line,s=t.lineStart,n=t.position,DI(t,e,dq,!1,!0),y=t.tag,A=t.result,ji(t,!0,e),E=t.input.charCodeAt(t.position),(h||t.line===i)&&E===58&&(f=!0,E=t.input.charCodeAt(++t.position),ji(t,!0,e),DI(t,e,dq,!1,!0),g=t.result),d?TI(t,a,m,y,A,g,i,s,n):f?a.push(TI(t,null,m,y,A,g,i,s,n)):a.push(A),ji(t,!0,e),E=t.input.charCodeAt(t.position),E===44?(r=!0,E=t.input.charCodeAt(++t.position)):r=!1}Le(t,"unexpected end of the stream within a flow collection")}function pXt(t,e){var r,i,s=Yse,n=!1,o=!1,a=e,c=0,u=!1,l,f;if(f=t.input.charCodeAt(t.position),f===124)i=!1;else if(f===62)i=!0;else return!1;for(t.kind="scalar",t.result="";f!==0;)if(f=t.input.charCodeAt(++t.position),f===43||f===45)Yse===s?s=f===43?g6e:tXt:Le(t,"repeat of a chomping mode identifier");else if((l=aXt(f))>=0)l===0?Le(t,"bad explicit indentation width of a block scalar; it cannot be less than one"):o?Le(t,"repeat of an indentation width identifier"):(a=e+l-1,o=!0);else break;if(_E(f)){do f=t.input.charCodeAt(++t.position);while(_E(f));if(f===35)do f=t.input.charCodeAt(++t.position);while(!ah(f)&&f!==0)}for(;f!==0;){for(ine(t),t.lineIndent=0,f=t.input.charCodeAt(t.position);(!o||t.lineIndent<a)&&f===32;)t.lineIndent++,f=t.input.charCodeAt(++t.position);if(!o&&t.lineIndent>a&&(a=t.lineIndent),ah(f)){c++;continue}if(t.lineIndent<a){s===g6e?t.result+=cs.repeat(`
|
||||
`,n?1+c:c):s===Yse&&n&&(t.result+=`
|
||||
`);break}for(i?_E(f)?(u=!0,t.result+=cs.repeat(`
|
||||
`,n?1+c:c)):u?(u=!1,t.result+=cs.repeat(`
|
||||
`,c+1)):c===0?n&&(t.result+=" "):t.result+=cs.repeat(`
|
||||
`,c):t.result+=cs.repeat(`
|
||||
`,n?1+c:c),n=!0,o=!0,c=0,r=t.position;!ch(f)&&f!==0;)f=t.input.charCodeAt(++t.position);bA(t,r,t.position,!1)}return!0}function l6e(t,e){var r,i=t.tag,s=t.anchor,n=[],o,a=!1,c;if(t.firstTabInLine!==-1)return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=n),c=t.input.charCodeAt(t.position);c!==0&&(t.firstTabInLine!==-1&&(t.position=t.firstTabInLine,Le(t,"tab characters must not be used in indentation")),!(c!==45||(o=t.input.charCodeAt(t.position+1),!ua(o))));){if(a=!0,t.position++,ji(t,!0,-1)&&t.lineIndent<=e){n.push(null),c=t.input.charCodeAt(t.position);continue}if(r=t.line,RI(t,e,B6e,!1,!0),n.push(t.result),ji(t,!0,-1),c=t.input.charCodeAt(t.position),(t.line===r||t.lineIndent>e)&&c!==0)Le(t,"bad indentation of a sequence entry");else if(t.lineIndent<e)break}return a?(t.tag=i,t.anchor=s,t.kind="sequence",t.result=n,!0):!1}function YKt(t,e,r){var i,s,n,o,a,c,u=t.tag,l=t.anchor,f={},h=Object.create(null),d=null,m=null,A=null,y=!1,g=!1,E;if(t.firstTabInLine!==-1)return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=f),E=t.input.charCodeAt(t.position);E!==0;){if(!y&&t.firstTabInLine!==-1&&(t.position=t.firstTabInLine,Le(t,"tab characters must not be used in indentation")),i=t.input.charCodeAt(t.position+1),n=t.line,(E===63||E===58)&&ua(i))E===63?(y&&(_I(t,f,h,d,m,null,o,a,c),d=m=A=null),g=!0,y=!0,s=!0):y?(y=!1,s=!0):Le(t,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),t.position+=1,E=i;else{if(o=t.line,a=t.lineStart,c=t.position,!RI(t,r,S6e,!1,!0))break;if(t.line===n){for(E=t.input.charCodeAt(t.position);vE(E);)E=t.input.charCodeAt(++t.position);if(E===58)E=t.input.charCodeAt(++t.position),ua(E)||Le(t,"a whitespace character is expected after the key-value separator within a block mapping"),y&&(_I(t,f,h,d,m,null,o,a,c),d=m=A=null),g=!0,y=!1,s=!1,d=t.tag,m=t.result;else if(g)Le(t,"can not read an implicit mapping pair; a colon is missed");else return t.tag=u,t.anchor=l,!0}else if(g)Le(t,"can not read a block mapping entry; a multiline key may not be an implicit key");else return t.tag=u,t.anchor=l,!0}if((t.line===n||t.lineIndent>e)&&(y&&(o=t.line,a=t.lineStart,c=t.position),RI(t,e,cq,!0,s)&&(y?m=t.result:A=t.result),y||(_I(t,f,h,d,m,A,o,a,c),d=m=A=null),ji(t,!0,-1),E=t.input.charCodeAt(t.position)),(t.line===n||t.lineIndent>e)&&E!==0)Le(t,"bad indentation of a mapping entry");else if(t.lineIndent<e)break}return y&&_I(t,f,h,d,m,null,o,a,c),g&&(t.tag=u,t.anchor=l,t.kind="mapping",t.result=f),g}function KKt(t){var e,r=!1,i=!1,s,n,o;if(o=t.input.charCodeAt(t.position),o!==33)return!1;if(t.tag!==null&&Le(t,"duplication of a tag property"),o=t.input.charCodeAt(++t.position),o===60?(r=!0,o=t.input.charCodeAt(++t.position)):o===33?(i=!0,s="!!",o=t.input.charCodeAt(++t.position)):s="!",e=t.position,r){do o=t.input.charCodeAt(++t.position);while(o!==0&&o!==62);t.position<t.length?(n=t.input.slice(e,t.position),o=t.input.charCodeAt(++t.position)):Le(t,"unexpected end of the stream within a verbatim tag")}else{for(;o!==0&&!ua(o);)o===33&&(i?Le(t,"tag suffix cannot contain exclamation marks"):(s=t.input.slice(e-1,t.position+1),v6e.test(s)||Le(t,"named tag handle cannot contain such characters"),i=!0,e=t.position+1)),o=t.input.charCodeAt(++t.position);n=t.input.slice(e,t.position),FKt.test(n)&&Le(t,"tag suffix cannot contain flow indicator characters")}n&&!x6e.test(n)&&Le(t,"tag name cannot contain such characters: "+n);try{n=decodeURIComponent(n)}catch{Le(t,"tag name is malformed: "+n)}return r?t.tag=n:wA.call(t.tagMap,s)?t.tag=t.tagMap[s]+n:s==="!"?t.tag="!"+n:s==="!!"?t.tag="tag:yaml.org,2002:"+n:Le(t,'undeclared tag handle "'+s+'"'),!0}function XKt(t){var e,r;if(r=t.input.charCodeAt(t.position),r!==38)return!1;for(t.anchor!==null&&Le(t,"duplication of an anchor property"),r=t.input.charCodeAt(++t.position),e=t.position;r!==0&&!ua(r)&&!xI(r);)r=t.input.charCodeAt(++t.position);return t.position===e&&Le(t,"name of an anchor node must contain at least one character"),t.anchor=t.input.slice(e,t.position),!0}function ZKt(t){var e,r,i;if(i=t.input.charCodeAt(t.position),i!==42)return!1;for(i=t.input.charCodeAt(++t.position),e=t.position;i!==0&&!ua(i)&&!xI(i);)i=t.input.charCodeAt(++t.position);return t.position===e&&Le(t,"name of an alias node must contain at least one character"),r=t.input.slice(e,t.position),wA.call(t.anchorMap,r)||Le(t,'unidentified alias "'+r+'"'),t.result=t.anchorMap[r],ji(t,!0,-1),!0}function RI(t,e,r,i,s){var n,o,a,c=1,u=!1,l=!1,f,h,d,m,A,y;if(t.listener!==null&&t.listener("open",t),t.tag=null,t.anchor=null,t.kind=null,t.result=null,n=o=a=cq===r||B6e===r,i&&ji(t,!0,-1)&&(u=!0,t.lineIndent>e?c=1:t.lineIndent===e?c=0:t.lineIndent<e&&(c=-1)),c===1)for(;KKt(t)||XKt(t);)ji(t,!0,-1)?(u=!0,a=n,t.lineIndent>e?c=1:t.lineIndent===e?c=0:t.lineIndent<e&&(c=-1)):a=!1;if(a&&(a=u||s),(c===1||cq===r)&&(aq===r||S6e===r?A=e:A=e+1,y=t.position-t.lineStart,c===1?a&&(l6e(t,y)||YKt(t,y,A))||WKt(t,A)?l=!0:(o&&JKt(t,A)||VKt(t,A)||$Kt(t,A)?l=!0:ZKt(t)?(l=!0,(t.tag!==null||t.
Line truncated
|
||||
`),t.charCodeAt(0)===65279&&(t=t.slice(1)));var r=new jKt(t,e),i=t.indexOf("\0");for(i!==-1&&(r.position=i,Le(r,"null byte is not allowed in input")),r.input+="\0";r.input.charCodeAt(r.position)===32;)r.lineIndent+=1,r.position+=1;for(;r.position<r.length-1;)eXt(r);return r.documents}function tXt(t,e,r){e!==null&&typeof e=="object"&&typeof r>"u"&&(r=e,e=null);var i=D6e(t,r);if(typeof e!="function")return i;for(var s=0,n=i.length;s<n;s+=1)e(i[s])}function rXt(t,e){var r=D6e(t,e);if(r.length!==0){if(r.length===1)return r[0];throw new ca("expected a single document in the stream, but found more")}}var iXt=tXt,sXt=rXt,O6e={loadAll:iXt,load:sXt},P6e=Object.prototype.toString,Q6e=Object.prototype.hasOwnProperty,Yse=65279,nXt=9,TT=10,oXt=13,aXt=32,cXt=33,uXt=34,Hse=35,lXt=37,fXt=38,hXt=39,dXt=42,k6e=44,pXt=45,lq=58,mXt=61,AXt=62,gXt=63,yXt=64,L6e=91,M6e=93,EXt=96,F6e=123,bXt=124,U6e=125,Nn={};Nn[0]="\\0";Nn[7]="\\a";Nn[8]="\\b";Nn[9]="\\t";Nn[10]="\\n";Nn[11]="\\v";Nn[12]="\\f";Nn[13]="\\r";Nn[27]="\\e";Nn[34]='\\"';Nn[92]="\\\\";Nn[133]="\\N";Nn[160]="\\_";Nn[8232]="\\L";Nn[8233]="\\P";var wXt=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],CXt=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function IXt(t,e){var r,i,s,n,o,a,c;if(e===null)return{};for(r={},i=Object.keys(e),s=0,n=i.length;s<n;s+=1)o=i[s],a=String(e[o]),o.slice(0,2)==="!!"&&(o="tag:yaml.org,2002:"+o.slice(2)),c=t.compiledTypeMap.fallback[o],c&&Q6e.call(c.styleAliases,a)&&(a=c.styleAliases[a]),r[o]=a;return r}function SXt(t){var e,r,i;if(e=t.toString(16).toUpperCase(),t<=255)r="x",i=2;else if(t<=65535)r="u",i=4;else if(t<=4294967295)r="U",i=8;else throw new ca("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+r+cs.repeat("0",i-e.length)+e}var BXt=1,NT=2;function vXt(t){this.schema=t.schema||I6e,this.indent=Math.max(1,t.indent||2),this.noArrayIndent=t.noArrayIndent||!1,this.skipInvalid=t.skipInvalid||!1,this.flowLevel=cs.isNothing(t.flowLevel)?-1:t.flowLevel,this.styleMap=IXt(this.schema,t.styles||null),this.sortKeys=t.sortKeys||!1,this.lineWidth=t.lineWidth||80,this.noRefs=t.noRefs||!1,this.noCompatMode=t.noCompatMode||!1,this.condenseFlow=t.condenseFlow||!1,this.quotingType=t.quotingType==='"'?NT:BXt,this.forceQuotes=t.forceQuotes||!1,this.replacer=typeof t.replacer=="function"?t.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function f6e(t,e){for(var r=cs.repeat(" ",e),i=0,s=-1,n="",o,a=t.length;i<a;)s=t.indexOf(`
|
||||
`,n?1+c:c),n=!0,o=!0,c=0,r=t.position;!ah(f)&&f!==0;)f=t.input.charCodeAt(++t.position);wA(t,r,t.position,!1)}return!0}function C6e(t,e){var r,i=t.tag,s=t.anchor,n=[],o,a=!1,c;if(t.firstTabInLine!==-1)return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=n),c=t.input.charCodeAt(t.position);c!==0&&(t.firstTabInLine!==-1&&(t.position=t.firstTabInLine,Le(t,"tab characters must not be used in indentation")),!(c!==45||(o=t.input.charCodeAt(t.position+1),!ua(o))));){if(a=!0,t.position++,ji(t,!0,-1)&&t.lineIndent<=e){n.push(null),c=t.input.charCodeAt(t.position);continue}if(r=t.line,DI(t,e,L6e,!1,!0),n.push(t.result),ji(t,!0,-1),c=t.input.charCodeAt(t.position),(t.line===r||t.lineIndent>e)&&c!==0)Le(t,"bad indentation of a sequence entry");else if(t.lineIndent<e)break}return a?(t.tag=i,t.anchor=s,t.kind="sequence",t.result=n,!0):!1}function mXt(t,e,r){var i,s,n,o,a,c,u=t.tag,l=t.anchor,f={},h=Object.create(null),d=null,m=null,A=null,y=!1,g=!1,E;if(t.firstTabInLine!==-1)return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=f),E=t.input.charCodeAt(t.position);E!==0;){if(!y&&t.firstTabInLine!==-1&&(t.position=t.firstTabInLine,Le(t,"tab characters must not be used in indentation")),i=t.input.charCodeAt(t.position+1),n=t.line,(E===63||E===58)&&ua(i))E===63?(y&&(TI(t,f,h,d,m,null,o,a,c),d=m=A=null),g=!0,y=!0,s=!0):y?(y=!1,s=!0):Le(t,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),t.position+=1,E=i;else{if(o=t.line,a=t.lineStart,c=t.position,!DI(t,r,k6e,!1,!0))break;if(t.line===n){for(E=t.input.charCodeAt(t.position);_E(E);)E=t.input.charCodeAt(++t.position);if(E===58)E=t.input.charCodeAt(++t.position),ua(E)||Le(t,"a whitespace character is expected after the key-value separator within a block mapping"),y&&(TI(t,f,h,d,m,null,o,a,c),d=m=A=null),g=!0,y=!1,s=!1,d=t.tag,m=t.result;else if(g)Le(t,"can not read an implicit mapping pair; a colon is missed");else return t.tag=u,t.anchor=l,!0}else if(g)Le(t,"can not read a block mapping entry; a multiline key may not be an implicit key");else return t.tag=u,t.anchor=l,!0}if((t.line===n||t.lineIndent>e)&&(y&&(o=t.line,a=t.lineStart,c=t.position),DI(t,e,pq,!0,s)&&(y?m=t.result:A=t.result),y||(TI(t,f,h,d,m,A,o,a,c),d=m=A=null),ji(t,!0,-1),E=t.input.charCodeAt(t.position)),(t.line===n||t.lineIndent>e)&&E!==0)Le(t,"bad indentation of a mapping entry");else if(t.lineIndent<e)break}return y&&TI(t,f,h,d,m,null,o,a,c),g&&(t.tag=u,t.anchor=l,t.kind="mapping",t.result=f),g}function AXt(t){var e,r=!1,i=!1,s,n,o;if(o=t.input.charCodeAt(t.position),o!==33)return!1;if(t.tag!==null&&Le(t,"duplication of a tag property"),o=t.input.charCodeAt(++t.position),o===60?(r=!0,o=t.input.charCodeAt(++t.position)):o===33?(i=!0,s="!!",o=t.input.charCodeAt(++t.position)):s="!",e=t.position,r){do o=t.input.charCodeAt(++t.position);while(o!==0&&o!==62);t.position<t.length?(n=t.input.slice(e,t.position),o=t.input.charCodeAt(++t.position)):Le(t,"unexpected end of the stream within a verbatim tag")}else{for(;o!==0&&!ua(o);)o===33&&(i?Le(t,"tag suffix cannot contain exclamation marks"):(s=t.input.slice(e-1,t.position+1),F6e.test(s)||Le(t,"named tag handle cannot contain such characters"),i=!0,e=t.position+1)),o=t.input.charCodeAt(++t.position);n=t.input.slice(e,t.position),sXt.test(n)&&Le(t,"tag suffix cannot contain flow indicator characters")}n&&!M6e.test(n)&&Le(t,"tag name cannot contain such characters: "+n);try{n=decodeURIComponent(n)}catch{Le(t,"tag name is malformed: "+n)}return r?t.tag=n:CA.call(t.tagMap,s)?t.tag=t.tagMap[s]+n:s==="!"?t.tag="!"+n:s==="!!"?t.tag="tag:yaml.org,2002:"+n:Le(t,'undeclared tag handle "'+s+'"'),!0}function gXt(t){var e,r;if(r=t.input.charCodeAt(t.position),r!==38)return!1;for(t.anchor!==null&&Le(t,"duplication of an anchor property"),r=t.input.charCodeAt(++t.position),e=t.position;r!==0&&!ua(r)&&!NI(r);)r=t.input.charCodeAt(++t.position);return t.position===e&&Le(t,"name of an anchor node must contain at least one character"),t.anchor=t.input.slice(e,t.position),!0}function yXt(t){var e,r,i;if(i=t.input.charCodeAt(t.position),i!==42)return!1;for(i=t.input.charCodeAt(++t.position),e=t.position;i!==0&&!ua(i)&&!NI(i);)i=t.input.charCodeAt(++t.position);return t.position===e&&Le(t,"name of an alias node must contain at least one character"),r=t.input.slice(e,t.position),CA.call(t.anchorMap,r)||Le(t,'unidentified alias "'+r+'"'),t.result=t.anchorMap[r],ji(t,!0,-1),!0}function DI(t,e,r,i,s){var n,o,a,c=1,u=!1,l=!1,f,h,d,m,A,y;if(t.listener!==null&&t.listener("open",t),t.tag=null,t.anchor=null,t.kind=null,t.result=null,n=o=a=pq===r||L6e===r,i&&ji(t,!0,-1)&&(u=!0,t.lineIndent>e?c=1:t.lineIndent===e?c=0:t.lineIndent<e&&(c=-1)),c===1)for(;AXt(t)||gXt(t);)ji(t,!0,-1)?(u=!0,a=n,t.lineIndent>e?c=1:t.lineIndent===e?c=0:t.lineIndent<e&&(c=-1)):a=!1;if(a&&(a=u||s),(c===1||pq===r)&&(dq===r||k6e===r?A=e:A=e+1,y=t.position-t.lineStart,c===1?a&&(C6e(t,y)||mXt(t,y,A))||dXt(t,A)?l=!0:(o&&pXt(t,A)||fXt(t,A)||hXt(t,A)?l=!0:yXt(t)?(l=!0,(t.tag!==null||t.
Line truncated
|
||||
`),t.charCodeAt(0)===65279&&(t=t.slice(1)));var r=new uXt(t,e),i=t.indexOf("\0");for(i!==-1&&(r.position=i,Le(r,"null byte is not allowed in input")),r.input+="\0";r.input.charCodeAt(r.position)===32;)r.lineIndent+=1,r.position+=1;for(;r.position<r.length-1;)EXt(r);return r.documents}function bXt(t,e,r){e!==null&&typeof e=="object"&&typeof r>"u"&&(r=e,e=null);var i=j6e(t,r);if(typeof e!="function")return i;for(var s=0,n=i.length;s<n;s+=1)e(i[s])}function wXt(t,e){var r=j6e(t,e);if(r.length!==0){if(r.length===1)return r[0];throw new ca("expected a single document in the stream, but found more")}}var CXt=bXt,IXt=wXt,z6e={loadAll:CXt,load:IXt},V6e=Object.prototype.toString,$6e=Object.prototype.hasOwnProperty,nne=65279,SXt=9,ON=10,BXt=13,vXt=32,xXt=33,_Xt=34,Xse=35,RXt=37,NXt=38,TXt=39,DXt=42,W6e=44,OXt=45,Aq=58,PXt=61,QXt=62,kXt=63,LXt=64,J6e=91,Y6e=93,FXt=96,K6e=123,MXt=124,X6e=125,Tn={};Tn[0]="\\0";Tn[7]="\\a";Tn[8]="\\b";Tn[9]="\\t";Tn[10]="\\n";Tn[11]="\\v";Tn[12]="\\f";Tn[13]="\\r";Tn[27]="\\e";Tn[34]='\\"';Tn[92]="\\\\";Tn[133]="\\N";Tn[160]="\\_";Tn[8232]="\\L";Tn[8233]="\\P";var UXt=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],qXt=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function GXt(t,e){var r,i,s,n,o,a,c;if(e===null)return{};for(r={},i=Object.keys(e),s=0,n=i.length;s<n;s+=1)o=i[s],a=String(e[o]),o.slice(0,2)==="!!"&&(o="tag:yaml.org,2002:"+o.slice(2)),c=t.compiledTypeMap.fallback[o],c&&$6e.call(c.styleAliases,a)&&(a=c.styleAliases[a]),r[o]=a;return r}function HXt(t){var e,r,i;if(e=t.toString(16).toUpperCase(),t<=255)r="x",i=2;else if(t<=65535)r="u",i=4;else if(t<=4294967295)r="U",i=8;else throw new ca("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+r+cs.repeat("0",i-e.length)+e}var jXt=1,PN=2;function zXt(t){this.schema=t.schema||Q6e,this.indent=Math.max(1,t.indent||2),this.noArrayIndent=t.noArrayIndent||!1,this.skipInvalid=t.skipInvalid||!1,this.flowLevel=cs.isNothing(t.flowLevel)?-1:t.flowLevel,this.styleMap=GXt(this.schema,t.styles||null),this.sortKeys=t.sortKeys||!1,this.lineWidth=t.lineWidth||80,this.noRefs=t.noRefs||!1,this.noCompatMode=t.noCompatMode||!1,this.condenseFlow=t.condenseFlow||!1,this.quotingType=t.quotingType==='"'?PN:jXt,this.forceQuotes=t.forceQuotes||!1,this.replacer=typeof t.replacer=="function"?t.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function I6e(t,e){for(var r=cs.repeat(" ",e),i=0,s=-1,n="",o,a=t.length;i<a;)s=t.indexOf(`
|
||||
`,i),s===-1?(o=t.slice(i),i=a):(o=t.slice(i,s+1),i=s+1),o.length&&o!==`
|
||||
`&&(n+=r),n+=o;return n}function jse(t,e){return`
|
||||
`+cs.repeat(" ",t.indent*e)}function xXt(t,e){var r,i,s;for(r=0,i=t.implicitTypes.length;r<i;r+=1)if(s=t.implicitTypes[r],s.resolve(e))return!0;return!1}function fq(t){return t===aXt||t===nXt}function DT(t){return 32<=t&&t<=126||161<=t&&t<=55295&&t!==8232&&t!==8233||57344<=t&&t<=65533&&t!==Yse||65536<=t&&t<=1114111}function h6e(t){return DT(t)&&t!==Yse&&t!==oXt&&t!==TT}function d6e(t,e,r){var i=h6e(t),s=i&&!fq(t);return(r?i:i&&t!==k6e&&t!==L6e&&t!==M6e&&t!==F6e&&t!==U6e)&&t!==Hse&&!(e===lq&&!s)||h6e(e)&&!fq(e)&&t===Hse||e===lq&&s}function _Xt(t){return DT(t)&&t!==Yse&&!fq(t)&&t!==pXt&&t!==gXt&&t!==lq&&t!==k6e&&t!==L6e&&t!==M6e&&t!==F6e&&t!==U6e&&t!==Hse&&t!==fXt&&t!==dXt&&t!==cXt&&t!==bXt&&t!==mXt&&t!==AXt&&t!==hXt&&t!==uXt&&t!==lXt&&t!==yXt&&t!==EXt}function RXt(t){return!fq(t)&&t!==lq}function _T(t,e){var r=t.charCodeAt(e),i;return r>=55296&&r<=56319&&e+1<t.length&&(i=t.charCodeAt(e+1),i>=56320&&i<=57343)?(r-55296)*1024+i-56320+65536:r}function q6e(t){var e=/^\n* /;return e.test(t)}var G6e=1,zse=2,H6e=3,j6e=4,vI=5;function TXt(t,e,r,i,s,n,o,a){var c,u=0,l=null,f=!1,h=!1,d=i!==-1,m=-1,A=_Xt(_T(t,0))&&RXt(_T(t,t.length-1));if(e||o)for(c=0;c<t.length;u>=65536?c+=2:c++){if(u=_T(t,c),!DT(u))return vI;A=A&&d6e(u,l,a),l=u}else{for(c=0;c<t.length;u>=65536?c+=2:c++){if(u=_T(t,c),u===TT)f=!0,d&&(h=h||c-m-1>i&&t[m+1]!==" ",m=c);else if(!DT(u))return vI;A=A&&d6e(u,l,a),l=u}h=h||d&&c-m-1>i&&t[m+1]!==" "}return!f&&!h?A&&!o&&!s(t)?G6e:n===NT?vI:zse:r>9&&q6e(t)?vI:o?n===NT?vI:zse:h?j6e:H6e}function NXt(t,e,r,i,s){t.dump=(function(){if(e.length===0)return t.quotingType===NT?'""':"''";if(!t.noCompatMode&&(wXt.indexOf(e)!==-1||CXt.test(e)))return t.quotingType===NT?'"'+e+'"':"'"+e+"'";var n=t.indent*Math.max(1,r),o=t.lineWidth===-1?-1:Math.max(Math.min(t.lineWidth,40),t.lineWidth-n),a=i||t.flowLevel>-1&&r>=t.flowLevel;function c(u){return xXt(t,u)}switch(TXt(e,a,t.indent,o,c,t.quotingType,t.forceQuotes&&!i,s)){case G6e:return e;case zse:return"'"+e.replace(/'/g,"''")+"'";case H6e:return"|"+p6e(e,t.indent)+m6e(f6e(e,n));case j6e:return">"+p6e(e,t.indent)+m6e(f6e(DXt(e,o),n));case vI:return'"'+OXt(e)+'"';default:throw new ca("impossible error: invalid scalar style")}})()}function p6e(t,e){var r=q6e(t)?String(e):"",i=t[t.length-1]===`
|
||||
`&&(n+=r),n+=o;return n}function Zse(t,e){return`
|
||||
`+cs.repeat(" ",t.indent*e)}function VXt(t,e){var r,i,s;for(r=0,i=t.implicitTypes.length;r<i;r+=1)if(s=t.implicitTypes[r],s.resolve(e))return!0;return!1}function gq(t){return t===vXt||t===SXt}function QN(t){return 32<=t&&t<=126||161<=t&&t<=55295&&t!==8232&&t!==8233||57344<=t&&t<=65533&&t!==nne||65536<=t&&t<=1114111}function S6e(t){return QN(t)&&t!==nne&&t!==BXt&&t!==ON}function B6e(t,e,r){var i=S6e(t),s=i&&!gq(t);return(r?i:i&&t!==W6e&&t!==J6e&&t!==Y6e&&t!==K6e&&t!==X6e)&&t!==Xse&&!(e===Aq&&!s)||S6e(e)&&!gq(e)&&t===Xse||e===Aq&&s}function $Xt(t){return QN(t)&&t!==nne&&!gq(t)&&t!==OXt&&t!==kXt&&t!==Aq&&t!==W6e&&t!==J6e&&t!==Y6e&&t!==K6e&&t!==X6e&&t!==Xse&&t!==NXt&&t!==DXt&&t!==xXt&&t!==MXt&&t!==PXt&&t!==QXt&&t!==TXt&&t!==_Xt&&t!==RXt&&t!==LXt&&t!==FXt}function WXt(t){return!gq(t)&&t!==Aq}function TN(t,e){var r=t.charCodeAt(e),i;return r>=55296&&r<=56319&&e+1<t.length&&(i=t.charCodeAt(e+1),i>=56320&&i<=57343)?(r-55296)*1024+i-56320+65536:r}function Z6e(t){var e=/^\n* /;return e.test(t)}var eje=1,ene=2,tje=3,rje=4,RI=5;function JXt(t,e,r,i,s,n,o,a){var c,u=0,l=null,f=!1,h=!1,d=i!==-1,m=-1,A=$Xt(TN(t,0))&&WXt(TN(t,t.length-1));if(e||o)for(c=0;c<t.length;u>=65536?c+=2:c++){if(u=TN(t,c),!QN(u))return RI;A=A&&B6e(u,l,a),l=u}else{for(c=0;c<t.length;u>=65536?c+=2:c++){if(u=TN(t,c),u===ON)f=!0,d&&(h=h||c-m-1>i&&t[m+1]!==" ",m=c);else if(!QN(u))return RI;A=A&&B6e(u,l,a),l=u}h=h||d&&c-m-1>i&&t[m+1]!==" "}return!f&&!h?A&&!o&&!s(t)?eje:n===PN?RI:ene:r>9&&Z6e(t)?RI:o?n===PN?RI:ene:h?rje:tje}function YXt(t,e,r,i,s){t.dump=(function(){if(e.length===0)return t.quotingType===PN?'""':"''";if(!t.noCompatMode&&(UXt.indexOf(e)!==-1||qXt.test(e)))return t.quotingType===PN?'"'+e+'"':"'"+e+"'";var n=t.indent*Math.max(1,r),o=t.lineWidth===-1?-1:Math.max(Math.min(t.lineWidth,40),t.lineWidth-n),a=i||t.flowLevel>-1&&r>=t.flowLevel;function c(u){return VXt(t,u)}switch(JXt(e,a,t.indent,o,c,t.quotingType,t.forceQuotes&&!i,s)){case eje:return e;case ene:return"'"+e.replace(/'/g,"''")+"'";case tje:return"|"+v6e(e,t.indent)+x6e(I6e(e,n));case rje:return">"+v6e(e,t.indent)+x6e(I6e(KXt(e,o),n));case RI:return'"'+XXt(e)+'"';default:throw new ca("impossible error: invalid scalar style")}})()}function v6e(t,e){var r=Z6e(t)?String(e):"",i=t[t.length-1]===`
|
||||
`,s=i&&(t[t.length-2]===`
|
||||
`||t===`
|
||||
`),n=s?"+":i?"":"-";return r+n+`
|
||||
`}function m6e(t){return t[t.length-1]===`
|
||||
`?t.slice(0,-1):t}function DXt(t,e){for(var r=/(\n+)([^\n]*)/g,i=(function(){var u=t.indexOf(`
|
||||
`);return u=u!==-1?u:t.length,r.lastIndex=u,A6e(t.slice(0,u),e)})(),s=t[0]===`
|
||||
`}function x6e(t){return t[t.length-1]===`
|
||||
`?t.slice(0,-1):t}function KXt(t,e){for(var r=/(\n+)([^\n]*)/g,i=(function(){var u=t.indexOf(`
|
||||
`);return u=u!==-1?u:t.length,r.lastIndex=u,_6e(t.slice(0,u),e)})(),s=t[0]===`
|
||||
`||t[0]===" ",n,o;o=r.exec(t);){var a=o[1],c=o[2];n=c[0]===" ",i+=a+(!s&&!n&&c!==""?`
|
||||
`:"")+A6e(c,e),s=n}return i}function A6e(t,e){if(t===""||t[0]===" ")return t;for(var r=/ [^ ]/g,i,s=0,n,o=0,a=0,c="";i=r.exec(t);)a=i.index,a-s>e&&(n=o>s?o:a,c+=`
|
||||
`:"")+_6e(c,e),s=n}return i}function _6e(t,e){if(t===""||t[0]===" ")return t;for(var r=/ [^ ]/g,i,s=0,n,o=0,a=0,c="";i=r.exec(t);)a=i.index,a-s>e&&(n=o>s?o:a,c+=`
|
||||
`+t.slice(s,n),s=n+1),o=a;return c+=`
|
||||
`,t.length-s>e&&o>s?c+=t.slice(s,o)+`
|
||||
`+t.slice(o+1):c+=t.slice(s),c.slice(1)}function OXt(t){for(var e="",r=0,i,s=0;s<t.length;r>=65536?s+=2:s++)r=_T(t,s),i=Nn[r],!i&&DT(r)?(e+=t[s],r>=65536&&(e+=t[s+1])):e+=i||SXt(r);return e}function PXt(t,e,r){var i="",s=t.tag,n,o,a;for(n=0,o=r.length;n<o;n+=1)a=r[n],t.replacer&&(a=t.replacer.call(r,String(n),a)),(ep(t,e,a,!1,!1)||typeof a>"u"&&ep(t,e,null,!1,!1))&&(i!==""&&(i+=","+(t.condenseFlow?"":" ")),i+=t.dump);t.tag=s,t.dump="["+i+"]"}function g6e(t,e,r,i){var s="",n=t.tag,o,a,c;for(o=0,a=r.length;o<a;o+=1)c=r[o],t.replacer&&(c=t.replacer.call(r,String(o),c)),(ep(t,e+1,c,!0,!0,!1,!0)||typeof c>"u"&&ep(t,e+1,null,!0,!0,!1,!0))&&((!i||s!=="")&&(s+=jse(t,e)),t.dump&&TT===t.dump.charCodeAt(0)?s+="-":s+="- ",s+=t.dump);t.tag=n,t.dump=s||"[]"}function QXt(t,e,r){var i="",s=t.tag,n=Object.keys(r),o,a,c,u,l;for(o=0,a=n.length;o<a;o+=1)l="",i!==""&&(l+=", "),t.condenseFlow&&(l+='"'),c=n[o],u=r[c],t.replacer&&(u=t.replacer.call(r,c,u)),ep(t,e,c,!1,!1)&&(t.dump.length>1024&&(l+="? "),l+=t.dump+(t.condenseFlow?'"':"")+":"+(t.condenseFlow?"":" "),ep(t,e,u,!1,!1)&&(l+=t.dump,i+=l));t.tag=s,t.dump="{"+i+"}"}function kXt(t,e,r,i){var s="",n=t.tag,o=Object.keys(r),a,c,u,l,f,h;if(t.sortKeys===!0)o.sort();else if(typeof t.sortKeys=="function")o.sort(t.sortKeys);else if(t.sortKeys)throw new ca("sortKeys must be a boolean or a function");for(a=0,c=o.length;a<c;a+=1)h="",(!i||s!=="")&&(h+=jse(t,e)),u=o[a],l=r[u],t.replacer&&(l=t.replacer.call(r,u,l)),ep(t,e+1,u,!0,!0,!0)&&(f=t.tag!==null&&t.tag!=="?"||t.dump&&t.dump.length>1024,f&&(t.dump&&TT===t.dump.charCodeAt(0)?h+="?":h+="? "),h+=t.dump,f&&(h+=jse(t,e)),ep(t,e+1,l,!0,f)&&(t.dump&&TT===t.dump.charCodeAt(0)?h+=":":h+=": ",h+=t.dump,s+=h));t.tag=n,t.dump=s||"{}"}function y6e(t,e,r){var i,s,n,o,a,c;for(s=r?t.explicitTypes:t.implicitTypes,n=0,o=s.length;n<o;n+=1)if(a=s[n],(a.instanceOf||a.predicate)&&(!a.instanceOf||typeof e=="object"&&e instanceof a.instanceOf)&&(!a.predicate||a.predicate(e))){if(r?a.multi&&a.representName?t.tag=a.representName(e):t.tag=a.tag:t.tag="?",a.represent){if(c=t.styleMap[a.tag]||a.defaultStyle,P6e.call(a.represent)==="[object Function]")i=a.represent(e,c);else if(Q6e.call(a.represent,c))i=a.represent[c](e,c);else throw new ca("!<"+a.tag+'> tag resolver accepts not "'+c+'" style');t.dump=i}return!0}return!1}function ep(t,e,r,i,s,n,o){t.tag=null,t.dump=r,y6e(t,r,!1)||y6e(t,r,!0);var a=P6e.call(t.dump),c=i,u;i&&(i=t.flowLevel<0||t.flowLevel>e);var l=a==="[object Object]"||a==="[object Array]",f,h;if(l&&(f=t.duplicates.indexOf(r),h=f!==-1),(t.tag!==null&&t.tag!=="?"||h||t.indent!==2&&e>0)&&(s=!1),h&&t.usedDuplicates[f])t.dump="*ref_"+f;else{if(l&&h&&!t.usedDuplicates[f]&&(t.usedDuplicates[f]=!0),a==="[object Object]")i&&Object.keys(t.dump).length!==0?(kXt(t,e,t.dump,s),h&&(t.dump="&ref_"+f+t.dump)):(QXt(t,e,t.dump),h&&(t.dump="&ref_"+f+" "+t.dump));else if(a==="[object Array]")i&&t.dump.length!==0?(t.noArrayIndent&&!o&&e>0?g6e(t,e-1,t.dump,s):g6e(t,e,t.dump,s),h&&(t.dump="&ref_"+f+t.dump)):(PXt(t,e,t.dump),h&&(t.dump="&ref_"+f+" "+t.dump));else if(a==="[object String]")t.tag!=="?"&&NXt(t,t.dump,e,n,c);else{if(a==="[object Undefined]")return!1;if(t.skipInvalid)return!1;throw new ca("unacceptable kind of an object to dump "+a)}t.tag!==null&&t.tag!=="?"&&(u=encodeURI(t.tag[0]==="!"?t.tag.slice(1):t.tag).replace(/!/g,"%21"),t.tag[0]==="!"?u="!"+u:u.slice(0,18)==="tag:yaml.org,2002:"?u="!!"+u.slice(18):u="!<"+u+">",t.dump=u+" "+t.dump)}return!0}function LXt(t,e){var r=[],i=[],s,n;for(Vse(t,r,i),s=0,n=i.length;s<n;s+=1)e.duplicates.push(r[i[s]]);e.usedDuplicates=new Array(n)}function Vse(t,e,r){var i,s,n;if(t!==null&&typeof t=="object")if(s=e.indexOf(t),s!==-1)r.indexOf(s)===-1&&r.push(s);else if(e.push(t),Array.isArray(t))for(s=0,n=t.length;s<n;s+=1)Vse(t[s],e,r);else for(i=Object.keys(t),s=0,n=i.length;s<n;s+=1)Vse(t[i[s]],e,r)}function MXt(t,e){e=e||{};var r=new vXt(e);r.noRefs||LXt(t,r);var i=t;return r.replacer&&(i=r.replacer.call({"":i},"",i)),ep(r,0,i,!0,!0)?r.dump+`
|
||||
`:""}var FXt=MXt,UXt={dump:FXt};function Kse(t,e){return function(){throw new Error("Function yaml."+t+" is removed in js-yaml 4. Use yaml."+e+" instead, which is now safe by default.")}}var ZJr=O6e.load,eYr=O6e.loadAll,z6e=UXt.dump;var tYr=Kse("safeLoad","load"),rYr=Kse("safeLoadAll","loadAll"),iYr=Kse("safeDump","dump");var V6e=k(require("os"),1);var dq=class t{static async writeBuildSummary(e){let r=function(c,u,l=!1){return`<a href="${u}">${c}</a>`+(l?V6e.default.EOL:"")},i=e.exportRes.refs.length,s=i>0?e.exportRes.refs?.[0]:void 0,n=s?e.exportRes.summaries?.[s]:void 0,o=e.driver==="cloud"&&e.endpoint?e.endpoint?.replace(/^cloud:\/\//,"").split("/")[0]:void 0,a=d9.addHeading("Docker Build summary",2);if(o&&i===1&&s&&n){let c=t.formatDBCBuildURL(o,s,n.defaultPlatform);a.addRaw("<p>").addRaw("For a detailed look at the build, you can check the results at:").addRaw("</p>").addRaw("<p>").addRaw(`:whale: ${r(`<strong>${c}</strong>`,c)}`).addRaw("</p>")}if(e.uploadRes){let c=`./${gt.runId}/${e.uploadRes.url.split("/").slice(-2).join("/")}`;o&&i===1?a.addRaw("<p>").addRaw("You can also download the following build record archive and import it into Docker Desktop's Builds view. ").addBreak().addRaw("Build records include details such as timing, dependencies, results, logs, traces, and other information about a build. ").addRaw(r("Learn more","https://www.docker.com/blog/new-beta-feature-deep-dive-into-github-actions-docker-builds-with-docker-desktop/?utm_source=github&utm_medium=actions")).addRaw("</p>"):a.addRaw("<p>").addRaw("For a detailed look at the build, download the following build record archive and import it into Docker Desktop's Builds view. ").addBreak().addRaw("Build records include details such as timing, dependencies, results, logs, traces, and other information about a build. ").addRaw(r("Learn more","https://www.docker.com/blog/new-beta-feature-deep-dive-into-github-actions-docker-builds-with-docker-desktop/?utm_source=github&utm_medium=actions")).addRaw("</p>"),a.addRaw("<p>").addRaw(`:arrow_down: ${r(`<strong>${Xe.stringToUnicodeEntities(e.uploadRes.filename)}</strong>`,c)} (${Xe.formatFileSize(e.uploadRes.size)} - includes <strong>${i} build record${i>1?"s":""}</strong>)`).addRaw("</p>")}else e.exportRes.summaries&&a.addRaw("<p>").addRaw("The following table provides a brief summary of your build.").addBreak().addRaw("For a detailed look at the build, including timing, dependencies, results, logs, traces, and other information, consider enabling the export of the build record so you can import it into Docker Desktop's Builds view. ").addRaw(r("Learn more","https://www.docker.com/blog/new-beta-feature-deep-dive-into-github-actions-docker-builds-with-docker-desktop/?utm_source=github&utm_medium=actions")).addRaw("</p>");if(a.addRaw("<p>").addRaw("Find this useful? ").addRaw(r("Let us know","https://docs.docker.com/feedback/gha-build-summary")).addRaw("</p>"),e.exportRes.summaries){a.addRaw("<p>");let c=[[{header:!0,data:"ID"},{header:!0,data:"Name"},{header:!0,data:"Status"},{header:!0,data:"Cached"},{header:!0,data:"Duration"},...o&&i>1?[{header:!0,data:"Build result URL"}]:[]]],u;for(let l in e.exportRes.summaries)if(Object.prototype.hasOwnProperty.call(e.exportRes.summaries,l)){let f=e.exportRes.summaries[l];c.push([{data:`<code>${l.substring(0,6).toUpperCase()}</code>`},{data:`<strong>${Xe.stringToUnicodeEntities(f.name)}</strong>`},{data:`${f.status==="completed"?":white_check_mark:":f.status==="canceled"?":no_entry_sign:":":x:"} ${f.status}`},{data:`${f.numCachedSteps>0?Math.round(f.numCachedSteps/f.numTotalSteps*100):0}%`},{data:f.duration},...o&&i>1?[{data:r(":whale: Open",t.formatDBCBuildURL(o,l,f.defaultPlatform))}]:[]]),f.error&&(u=f.error)}a.addTable([...c]),a.addRaw("</p>"),u&&(a.addRaw("<blockquote>"),Xe.countLines(u)>10?a.addRaw("<details><summary><strong>Error</strong></summary>").addCodeBlock(Xse.default.encode(u),"text").addRaw("</details>"):a.addRaw("<strong>Error</strong>").addBreak().addRaw("<p>").addCodeBlock(Xse.default.encode(u),"text").addRaw("</p>"),a.addRaw("</blockquote>"))}e.inputs&&a.addRaw("<details><summary><strong>Build inputs</strong></summary>").addCodeBlock(z6e(e.inputs,{indent:2,lineWidth:-1}),"yaml").addRaw("</details>"),e.bakeDefinition&&a.addRaw("<details><summary><strong>Bake definition</strong></summary>").addCodeBlock(JSON.stringify(e.bakeDefinition,null,2),"json").addRaw("</details>"),L("Writing summary"),await a.addSeparator().write()}static formatDBCBuildURL(e,r,i){return`https://app.docker.com/build/accounts/${e}/builds/${(i??"linux/amd64").replace("/","-")}/${r}`}};var xE=k(require("fs"),1),Zse=k(require("path"),1);var tp=class t{buildx;iidFilename;metadataFilename;constructor(e){this.buildx=e?.buildx||new $t,this.iidFilename=`build-iidfile-${Xe.generateRandomString()}.txt`,this.metadataFilename=`build-metadata-${Xe.generateRandomString()}.json`}async gitContext(e){let r=new Set(["ref","checksum","subdir"]),i=Xe.parseBoolOrDefault(process.env.DO
Line truncated
|
||||
`),{delimiter:",",trim:!0,columns:!1,relaxColumnCount:!0});for(let s of i){if(s.length==1&&!s[0].startsWith("type="))return e=="local";for(let[n,o]of s.map(a=>a.split("=").map(c=>c.trim())))if(n=="type"&&o==e)return!0}return!1}static hasAttestationType(e,r){let i=Ka(r,{delimiter:",",trim:!0,columns:!1,relaxColumnCount:!0});for(let s of i)for(let[n,o]of s.map(a=>a.split("=").map(c=>c.trim())))if(n=="type"&&o==e)return!0;return!1}static resolveAttestationAttrs(e){let r=Ka(e,{delimiter:",",trim:!0,columns:!1,relaxColumnCount:!0}),i=[];for(let s of r)for(let n of s)try{let o=Xe.parseBool(n);i.push(`disabled=${!o}`)}catch{i.push(n)}return i.join(",")}static hasGitAuthTokenSecret(e,r){for(let i of e){if(r&&i.startsWith(`GIT_AUTH_TOKEN.${r}=`))return!0;if(i.startsWith("GIT_AUTH_TOKEN="))return!0}return!1}static parseSecretKvp(e,r){let i=e.indexOf("="),s=e.substring(0,i),n=e.substring(i+1);if(s.length==0||n.length==0)throw new Error(`${e} is not a valid secret`);return r&&Oa(n),[s,n]}};var ene=k(require("fs"),1),$6e=k(require("path"),1);var TI=class t{buildx;metadataFilename;constructor(e){this.buildx=e?.buildx||new $t,this.metadataFilename=`bake-metadata-${Xe.generateRandomString()}.json`}getMetadataFilePath(){return $6e.default.join(Nt.tmpDir(),this.metadataFilename)}resolveMetadata(){let e=this.getMetadataFilePath();if(!ene.default.existsSync(e))return;let r=ene.default.readFileSync(e,{encoding:"utf-8"}).trim();if(r!=="null")return JSON.parse(r)}resolveRefs(e){if(!e&&(e=this.resolveMetadata(),!e))return;let r=new Array;for(let i in e)"buildx.build.ref"in e[i]&&r.push(e[i]["buildx.build.ref"]);return r.length>0?r:void 0}resolveWarnings(e){if(!(!e&&(e=this.resolveMetadata(),!e))&&"buildx.build.warnings"in e)return e["buildx.build.warnings"]}async getDefinition(e,r){r=r||{ignoreReturnCode:!0},r.ignoreReturnCode=!0,r.env=Object.assign({},process.env,r.env||{},e.githubToken?{BUILDX_BAKE_GIT_AUTH_TOKEN:e.githubToken}:{});let i=["bake"],s,n=[],o=[...e.files||[],e.source];if(o){for(let c of o.map(u=>u?u.trim():""))if(c.length!=0){if(!Xe.isValidRef(c)){n.push(c);continue}if(s)throw new Error("Only one remote bake definition can be defined");s=c}}s&&i.push(s);for(let c of n)i.push("--file",c);if(e.overrides)for(let c of e.overrides)i.push("--set",c);if(e.vars)for(let c of e.vars)i.push("--var",c);if(e.allow)for(let c of e.allow)i.push("--allow",c);e.call&&i.push("--call",e.call),e.load&&i.push("--load"),e.noCache&&i.push("--no-cache"),e.provenance&&i.push("--provenance",e.provenance),e.push&&i.push("--push"),e.sbom&&i.push("--sbom",e.sbom);let a=await this.buildx.getCommand([...i,"--print",...e.targets||[]]);return await Ue.getExecOutput(a.command,a.args,r).then(c=>{if(c.stderr.length>0&&c.exitCode!=0)throw new Error(`cannot parse bake definitions: ${c.stderr.match(/(.*)\s*$/)?.[0]?.trim()??"unknown error"}`);return t.parseDefinition(c.stdout.trim())})}static parseDefinition(e){let r=JSON.parse(e);for(let i in r.target){let s=r.target[i];s.attest&&Array.isArray(s.attest)&&(s.attest=s.attest.map(n=>t.parseAttestEntry(n))),s["cache-from"]&&Array.isArray(s["cache-from"])&&(s["cache-from"]=s["cache-from"].map(n=>t.parseCacheEntry(n))),s["cache-to"]&&Array.isArray(s["cache-to"])&&(s["cache-to"]=s["cache-to"].map(n=>t.parseCacheEntry(n))),s.output&&Array.isArray(s.output)&&(s.output=s.output.map(n=>t.parseExportEntry(n))),s.secret&&Array.isArray(s.secret)&&(s.secret=s.secret.map(n=>t.parseSecretEntry(n))),s.ssh&&Array.isArray(s.ssh)&&(s.ssh=s.ssh.map(n=>t.parseSSHEntry(n)))}return r}static parseAttestEntry(e){if(typeof e!="string")return e;let r={type:""},i=Ka(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0];for(let s of i){let[n,o]=s.toString().split(/(?<=^[^=]+?)=/).map(a=>a.trim());switch(n){case"type":r.type=o;break;case"disabled":r.disabled=Xe.parseBool(o);break;default:r[n]=o}}return r}static parseCacheEntry(e){if(typeof e!="string")return e;let r={type:""},i=Ka(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0];if(i.length===1&&!i[0].includes("="))return r.type="registry",r.ref=i[0],r;for(let s of i){let[n,o]=s.toString().split(/(?<=^[^=]+?)=/).map(a=>a.trim());n==="type"?r.type=o:r[n]=o}return r}static parseExportEntry(e){if(typeof e!="string")return e;let r={type:""},i=Ka(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0];if(i.length===1&&i[0]===e&&!e.startsWith("type="))return e!=="-"?(r.type="local",r.dest=e,r):(r.type="tar",r.dest=e,r);for(let s of i){let[n,o]=s.toString().split(/(?<=^[^=]+?)=/).map(a=>a.trim());n==="type"?r.type=o:r[n]=o}return r}static parseSecretEntry(e){if(typeof e!="string")return e;let r={},i=Ka(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0],s="";for(let n of i){let[o,a]=n.toString().split(/(?<=^[^=]+?)=/).map(c=>c.trim());switch(o){case"type":s=a;break;case"id":r.id=a;break;case"source":case"src":r.src=a;break;case"env":r.env=a;break}}return s==="env"&&!r.env&&(r.env=r.src,r.src=void 0),r}static parseSSHEntry(e){if(typeof e!="string")return e;let r={},[i,s]=e.split("=",2);return r.id=i,s&&(r.paths=s.split
Line truncated
|
||||
`)[0])}static async isHeadDetached(){return await t.exec(["branch","--show-current"]).then(e=>e.length==0)}static async getDetachedRef(){let e=await t.exec(["show","-s","--pretty=%D"]);T(`detached HEAD ref: ${e}`);let r=e.replace(/^grafted, /,"").trim();if(r==="HEAD")return await t.inferRefFromHead();let i=r.match(/^HEAD, (.*)$/);if(!i||!i[1])throw new Error(`Cannot find detached HEAD ref in "${e}"`);let s=i[1].trim();if(s.startsWith("tag: "))return`refs/tags/${s.split(":")[1].trim()}`;if(s.match(/^pull\/\d+\/(head|merge)$/))return`refs/${s}`;let o=s.match(/^[^/]+\/[^/]+, (.+)$/);if(o)return`refs/heads/${o[1].trim()}`;let a=s.match(/^[^/]+\/(.+)$/);if(a)return`refs/heads/${a[1].trim()}`;throw new Error(`Unsupported detached HEAD ref in "${e}"`)}static async exec(e=[]){return await Ue.getExecOutput("git",e,{ignoreReturnCode:!0,silent:!0}).then(r=>{if(r.stderr.length>0&&r.exitCode!=0)throw new Error(r.stderr);return r.stdout.trim()})}static async inferRefFromHead(){let e=await t.findContainingRef("refs/heads/");if(e)return e;let r=await t.findContainingRef("refs/remotes/");if(r){let n=r.match(/^refs\/remotes\/[^/]+\/(.+)$/);return n?`refs/heads/${n[1]}`:r}let i=await t.exec(["tag","--contains","HEAD"]),[s]=i.split(`
|
||||
`+t.slice(o+1):c+=t.slice(s),c.slice(1)}function XXt(t){for(var e="",r=0,i,s=0;s<t.length;r>=65536?s+=2:s++)r=TN(t,s),i=Tn[r],!i&&QN(r)?(e+=t[s],r>=65536&&(e+=t[s+1])):e+=i||HXt(r);return e}function ZXt(t,e,r){var i="",s=t.tag,n,o,a;for(n=0,o=r.length;n<o;n+=1)a=r[n],t.replacer&&(a=t.replacer.call(r,String(n),a)),(Zd(t,e,a,!1,!1)||typeof a>"u"&&Zd(t,e,null,!1,!1))&&(i!==""&&(i+=","+(t.condenseFlow?"":" ")),i+=t.dump);t.tag=s,t.dump="["+i+"]"}function R6e(t,e,r,i){var s="",n=t.tag,o,a,c;for(o=0,a=r.length;o<a;o+=1)c=r[o],t.replacer&&(c=t.replacer.call(r,String(o),c)),(Zd(t,e+1,c,!0,!0,!1,!0)||typeof c>"u"&&Zd(t,e+1,null,!0,!0,!1,!0))&&((!i||s!=="")&&(s+=Zse(t,e)),t.dump&&ON===t.dump.charCodeAt(0)?s+="-":s+="- ",s+=t.dump);t.tag=n,t.dump=s||"[]"}function eZt(t,e,r){var i="",s=t.tag,n=Object.keys(r),o,a,c,u,l;for(o=0,a=n.length;o<a;o+=1)l="",i!==""&&(l+=", "),t.condenseFlow&&(l+='"'),c=n[o],u=r[c],t.replacer&&(u=t.replacer.call(r,c,u)),Zd(t,e,c,!1,!1)&&(t.dump.length>1024&&(l+="? "),l+=t.dump+(t.condenseFlow?'"':"")+":"+(t.condenseFlow?"":" "),Zd(t,e,u,!1,!1)&&(l+=t.dump,i+=l));t.tag=s,t.dump="{"+i+"}"}function tZt(t,e,r,i){var s="",n=t.tag,o=Object.keys(r),a,c,u,l,f,h;if(t.sortKeys===!0)o.sort();else if(typeof t.sortKeys=="function")o.sort(t.sortKeys);else if(t.sortKeys)throw new ca("sortKeys must be a boolean or a function");for(a=0,c=o.length;a<c;a+=1)h="",(!i||s!=="")&&(h+=Zse(t,e)),u=o[a],l=r[u],t.replacer&&(l=t.replacer.call(r,u,l)),Zd(t,e+1,u,!0,!0,!0)&&(f=t.tag!==null&&t.tag!=="?"||t.dump&&t.dump.length>1024,f&&(t.dump&&ON===t.dump.charCodeAt(0)?h+="?":h+="? "),h+=t.dump,f&&(h+=Zse(t,e)),Zd(t,e+1,l,!0,f)&&(t.dump&&ON===t.dump.charCodeAt(0)?h+=":":h+=": ",h+=t.dump,s+=h));t.tag=n,t.dump=s||"{}"}function N6e(t,e,r){var i,s,n,o,a,c;for(s=r?t.explicitTypes:t.implicitTypes,n=0,o=s.length;n<o;n+=1)if(a=s[n],(a.instanceOf||a.predicate)&&(!a.instanceOf||typeof e=="object"&&e instanceof a.instanceOf)&&(!a.predicate||a.predicate(e))){if(r?a.multi&&a.representName?t.tag=a.representName(e):t.tag=a.tag:t.tag="?",a.represent){if(c=t.styleMap[a.tag]||a.defaultStyle,V6e.call(a.represent)==="[object Function]")i=a.represent(e,c);else if($6e.call(a.represent,c))i=a.represent[c](e,c);else throw new ca("!<"+a.tag+'> tag resolver accepts not "'+c+'" style');t.dump=i}return!0}return!1}function Zd(t,e,r,i,s,n,o){t.tag=null,t.dump=r,N6e(t,r,!1)||N6e(t,r,!0);var a=V6e.call(t.dump),c=i,u;i&&(i=t.flowLevel<0||t.flowLevel>e);var l=a==="[object Object]"||a==="[object Array]",f,h;if(l&&(f=t.duplicates.indexOf(r),h=f!==-1),(t.tag!==null&&t.tag!=="?"||h||t.indent!==2&&e>0)&&(s=!1),h&&t.usedDuplicates[f])t.dump="*ref_"+f;else{if(l&&h&&!t.usedDuplicates[f]&&(t.usedDuplicates[f]=!0),a==="[object Object]")i&&Object.keys(t.dump).length!==0?(tZt(t,e,t.dump,s),h&&(t.dump="&ref_"+f+t.dump)):(eZt(t,e,t.dump),h&&(t.dump="&ref_"+f+" "+t.dump));else if(a==="[object Array]")i&&t.dump.length!==0?(t.noArrayIndent&&!o&&e>0?R6e(t,e-1,t.dump,s):R6e(t,e,t.dump,s),h&&(t.dump="&ref_"+f+t.dump)):(ZXt(t,e,t.dump),h&&(t.dump="&ref_"+f+" "+t.dump));else if(a==="[object String]")t.tag!=="?"&&YXt(t,t.dump,e,n,c);else{if(a==="[object Undefined]")return!1;if(t.skipInvalid)return!1;throw new ca("unacceptable kind of an object to dump "+a)}t.tag!==null&&t.tag!=="?"&&(u=encodeURI(t.tag[0]==="!"?t.tag.slice(1):t.tag).replace(/!/g,"%21"),t.tag[0]==="!"?u="!"+u:u.slice(0,18)==="tag:yaml.org,2002:"?u="!!"+u.slice(18):u="!<"+u+">",t.dump=u+" "+t.dump)}return!0}function rZt(t,e){var r=[],i=[],s,n;for(tne(t,r,i),s=0,n=i.length;s<n;s+=1)e.duplicates.push(r[i[s]]);e.usedDuplicates=new Array(n)}function tne(t,e,r){var i,s,n;if(t!==null&&typeof t=="object")if(s=e.indexOf(t),s!==-1)r.indexOf(s)===-1&&r.push(s);else if(e.push(t),Array.isArray(t))for(s=0,n=t.length;s<n;s+=1)tne(t[s],e,r);else for(i=Object.keys(t),s=0,n=i.length;s<n;s+=1)tne(t[i[s]],e,r)}function iZt(t,e){e=e||{};var r=new zXt(e);r.noRefs||rZt(t,r);var i=t;return r.replacer&&(i=r.replacer.call({"":i},"",i)),Zd(r,0,i,!0,!0)?r.dump+`
|
||||
`:""}var sZt=iZt,nZt={dump:sZt};function one(t,e){return function(){throw new Error("Function yaml."+t+" is removed in js-yaml 4. Use yaml."+e+" instead, which is now safe by default.")}}var RYr=z6e.load,NYr=z6e.loadAll,ije=nZt.dump;var TYr=one("safeLoad","load"),DYr=one("safeLoadAll","loadAll"),OYr=one("safeDump","dump");var sje=k(require("os"),1);var Eq=class t{static async writeBuildSummary(e){let r=function(c,u,l=!1){return`<a href="${u}">${c}</a>`+(l?sje.default.EOL:"")},i=e.exportRes.refs.length,s=i>0?e.exportRes.refs?.[0]:void 0,n=s?e.exportRes.summaries?.[s]:void 0,o=e.driver==="cloud"&&e.endpoint?e.endpoint?.replace(/^cloud:\/\//,"").split("/")[0]:void 0,a=E9.addHeading("Docker Build summary",2);if(o&&i===1&&s&&n){let c=t.formatDBCBuildURL(o,s,n.defaultPlatform);a.addRaw("<p>").addRaw("For a detailed look at the build, you can check the results at:").addRaw("</p>").addRaw("<p>").addRaw(`:whale: ${r(`<strong>${c}</strong>`,c)}`).addRaw("</p>")}if(e.uploadRes){let c=`./${gt.runId}/${e.uploadRes.url.split("/").slice(-2).join("/")}`;o&&i===1?a.addRaw("<p>").addRaw("You can also download the following build record archive and import it into Docker Desktop's Builds view. ").addBreak().addRaw("Build records include details such as timing, dependencies, results, logs, traces, and other information about a build. ").addRaw(r("Learn more","https://www.docker.com/blog/new-beta-feature-deep-dive-into-github-actions-docker-builds-with-docker-desktop/?utm_source=github&utm_medium=actions")).addRaw("</p>"):a.addRaw("<p>").addRaw("For a detailed look at the build, download the following build record archive and import it into Docker Desktop's Builds view. ").addBreak().addRaw("Build records include details such as timing, dependencies, results, logs, traces, and other information about a build. ").addRaw(r("Learn more","https://www.docker.com/blog/new-beta-feature-deep-dive-into-github-actions-docker-builds-with-docker-desktop/?utm_source=github&utm_medium=actions")).addRaw("</p>"),a.addRaw("<p>").addRaw(`:arrow_down: ${r(`<strong>${Xe.stringToUnicodeEntities(e.uploadRes.filename)}</strong>`,c)} (${Xe.formatFileSize(e.uploadRes.size)} - includes <strong>${i} build record${i>1?"s":""}</strong>)`).addRaw("</p>")}else e.exportRes.summaries&&a.addRaw("<p>").addRaw("The following table provides a brief summary of your build.").addBreak().addRaw("For a detailed look at the build, including timing, dependencies, results, logs, traces, and other information, consider enabling the export of the build record so you can import it into Docker Desktop's Builds view. ").addRaw(r("Learn more","https://www.docker.com/blog/new-beta-feature-deep-dive-into-github-actions-docker-builds-with-docker-desktop/?utm_source=github&utm_medium=actions")).addRaw("</p>");if(a.addRaw("<p>").addRaw("Find this useful? ").addRaw(r("Let us know","https://docs.docker.com/feedback/gha-build-summary")).addRaw("</p>"),e.exportRes.summaries){a.addRaw("<p>");let c=[[{header:!0,data:"ID"},{header:!0,data:"Name"},{header:!0,data:"Status"},{header:!0,data:"Cached"},{header:!0,data:"Duration"},...o&&i>1?[{header:!0,data:"Build result URL"}]:[]]],u;for(let l in e.exportRes.summaries)if(Object.prototype.hasOwnProperty.call(e.exportRes.summaries,l)){let f=e.exportRes.summaries[l];c.push([{data:`<code>${l.substring(0,6).toUpperCase()}</code>`},{data:`<strong>${Xe.stringToUnicodeEntities(f.name)}</strong>`},{data:`${f.status==="completed"?":white_check_mark:":f.status==="canceled"?":no_entry_sign:":":x:"} ${f.status}`},{data:`${f.numCachedSteps>0?Math.round(f.numCachedSteps/f.numTotalSteps*100):0}%`},{data:f.duration},...o&&i>1?[{data:r(":whale: Open",t.formatDBCBuildURL(o,l,f.defaultPlatform))}]:[]]),f.error&&(u=f.error)}a.addTable([...c]),a.addRaw("</p>"),u&&(a.addRaw("<blockquote>"),Xe.countLines(u)>10?a.addRaw("<details><summary><strong>Error</strong></summary>").addCodeBlock(ane.default.encode(u),"text").addRaw("</details>"):a.addRaw("<strong>Error</strong>").addBreak().addRaw("<p>").addCodeBlock(ane.default.encode(u),"text").addRaw("</p>"),a.addRaw("</blockquote>"))}e.inputs&&a.addRaw("<details><summary><strong>Build inputs</strong></summary>").addCodeBlock(ije(e.inputs,{indent:2,lineWidth:-1}),"yaml").addRaw("</details>"),e.bakeDefinition&&a.addRaw("<details><summary><strong>Bake definition</strong></summary>").addCodeBlock(JSON.stringify(e.bakeDefinition,null,2),"json").addRaw("</details>"),L("Writing summary"),await a.addSeparator().write()}static formatDBCBuildURL(e,r,i){return`https://app.docker.com/build/accounts/${e}/builds/${(i??"linux/amd64").replace("/","-")}/${r}`}};var RE=k(require("fs"),1),cne=k(require("path"),1);var ep=class t{buildx;iidFilename;metadataFilename;constructor(e){this.buildx=e?.buildx||new $t,this.iidFilename=`build-iidfile-${Xe.generateRandomString()}.txt`,this.metadataFilename=`build-metadata-${Xe.generateRandomString()}.json`}async gitContext(e){let r=new Set(["ref","checksum","subdir"]),i=Xe.parseBoolOrDefault(process.env.DO
Line truncated
|
||||
`),{delimiter:",",trim:!0,columns:!1,relaxColumnCount:!0});for(let s of i){if(s.length==1&&!s[0].startsWith("type="))return e=="local";for(let[n,o]of s.map(a=>a.split("=").map(c=>c.trim())))if(n=="type"&&o==e)return!0}return!1}static hasAttestationType(e,r){let i=Ya(r,{delimiter:",",trim:!0,columns:!1,relaxColumnCount:!0});for(let s of i)for(let[n,o]of s.map(a=>a.split("=").map(c=>c.trim())))if(n=="type"&&o==e)return!0;return!1}static resolveAttestationAttrs(e){let r=Ya(e,{delimiter:",",trim:!0,columns:!1,relaxColumnCount:!0}),i=[];for(let s of r)for(let n of s)try{let o=Xe.parseBool(n);i.push(`disabled=${!o}`)}catch{i.push(n)}return i.join(",")}static hasGitAuthTokenSecret(e,r){for(let i of e){if(r&&i.startsWith(`GIT_AUTH_TOKEN.${r}=`))return!0;if(i.startsWith("GIT_AUTH_TOKEN="))return!0}return!1}static parseSecretKvp(e,r){let i=e.indexOf("="),s=e.substring(0,i),n=e.substring(i+1);if(s.length==0||n.length==0)throw new Error(`${e} is not a valid secret`);return r&&Oa(n),[s,n]}};var une=k(require("fs"),1),nje=k(require("path"),1);var OI=class t{buildx;metadataFilename;constructor(e){this.buildx=e?.buildx||new $t,this.metadataFilename=`bake-metadata-${Xe.generateRandomString()}.json`}getMetadataFilePath(){return nje.default.join(Tt.tmpDir(),this.metadataFilename)}resolveMetadata(){let e=this.getMetadataFilePath();if(!une.default.existsSync(e))return;let r=une.default.readFileSync(e,{encoding:"utf-8"}).trim();if(r!=="null")return JSON.parse(r)}resolveRefs(e){if(!e&&(e=this.resolveMetadata(),!e))return;let r=new Array;for(let i in e)"buildx.build.ref"in e[i]&&r.push(e[i]["buildx.build.ref"]);return r.length>0?r:void 0}resolveWarnings(e){if(!(!e&&(e=this.resolveMetadata(),!e))&&"buildx.build.warnings"in e)return e["buildx.build.warnings"]}async getDefinition(e,r){r=r||{ignoreReturnCode:!0},r.ignoreReturnCode=!0,r.env=Object.assign({},process.env,r.env||{},e.githubToken?{BUILDX_BAKE_GIT_AUTH_TOKEN:e.githubToken}:{});let i=["bake"],s,n=[],o=[...e.files||[],e.source];if(o){for(let c of o.map(u=>u?u.trim():""))if(c.length!=0){if(!Xe.isValidRef(c)){n.push(c);continue}if(s)throw new Error("Only one remote bake definition can be defined");s=c}}s&&i.push(s);for(let c of n)i.push("--file",c);if(e.overrides)for(let c of e.overrides)i.push("--set",c);if(e.vars)for(let c of e.vars)i.push("--var",c);if(e.allow)for(let c of e.allow)i.push("--allow",c);e.call&&i.push("--call",e.call),e.load&&i.push("--load"),e.noCache&&i.push("--no-cache"),e.provenance&&i.push("--provenance",e.provenance),e.push&&i.push("--push"),e.sbom&&i.push("--sbom",e.sbom);let a=await this.buildx.getCommand([...i,"--print",...e.targets||[]]);return await Ue.getExecOutput(a.command,a.args,r).then(c=>{if(c.stderr.length>0&&c.exitCode!=0)throw new Error(`cannot parse bake definitions: ${c.stderr.match(/(.*)\s*$/)?.[0]?.trim()??"unknown error"}`);return t.parseDefinition(c.stdout.trim())})}static parseDefinition(e){let r=JSON.parse(e);for(let i in r.target){let s=r.target[i];s.attest&&Array.isArray(s.attest)&&(s.attest=s.attest.map(n=>t.parseAttestEntry(n))),s["cache-from"]&&Array.isArray(s["cache-from"])&&(s["cache-from"]=s["cache-from"].map(n=>t.parseCacheEntry(n))),s["cache-to"]&&Array.isArray(s["cache-to"])&&(s["cache-to"]=s["cache-to"].map(n=>t.parseCacheEntry(n))),s.output&&Array.isArray(s.output)&&(s.output=s.output.map(n=>t.parseExportEntry(n))),s.secret&&Array.isArray(s.secret)&&(s.secret=s.secret.map(n=>t.parseSecretEntry(n))),s.ssh&&Array.isArray(s.ssh)&&(s.ssh=s.ssh.map(n=>t.parseSSHEntry(n)))}return r}static parseAttestEntry(e){if(typeof e!="string")return e;let r={type:""},i=Ya(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0];for(let s of i){let[n,o]=s.toString().split(/(?<=^[^=]+?)=/).map(a=>a.trim());switch(n){case"type":r.type=o;break;case"disabled":r.disabled=Xe.parseBool(o);break;default:r[n]=o}}return r}static parseCacheEntry(e){if(typeof e!="string")return e;let r={type:""},i=Ya(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0];if(i.length===1&&!i[0].includes("="))return r.type="registry",r.ref=i[0],r;for(let s of i){let[n,o]=s.toString().split(/(?<=^[^=]+?)=/).map(a=>a.trim());n==="type"?r.type=o:r[n]=o}return r}static parseExportEntry(e){if(typeof e!="string")return e;let r={type:""},i=Ya(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0];if(i.length===1&&i[0]===e&&!e.startsWith("type="))return e!=="-"?(r.type="local",r.dest=e,r):(r.type="tar",r.dest=e,r);for(let s of i){let[n,o]=s.toString().split(/(?<=^[^=]+?)=/).map(a=>a.trim());n==="type"?r.type=o:r[n]=o}return r}static parseSecretEntry(e){if(typeof e!="string")return e;let r={},i=Ya(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0],s="";for(let n of i){let[o,a]=n.toString().split(/(?<=^[^=]+?)=/).map(c=>c.trim());switch(o){case"type":s=a;break;case"id":r.id=a;break;case"source":case"src":r.src=a;break;case"env":r.env=a;break}}return s==="env"&&!r.env&&(r.env=r.src,r.src=void 0),r}static parseSSHEntry(e){if(typeof e!="string")return e;let r={},[i,s]=e.split("=",2);return r.id=i,s&&(r.paths=s.split
Line truncated
|
||||
`)[0])}static async isHeadDetached(){return await t.exec(["branch","--show-current"]).then(e=>e.length==0)}static async getDetachedRef(){let e=await t.exec(["show","-s","--pretty=%D"]);N(`detached HEAD ref: ${e}`);let r=e.replace(/^grafted, /,"").trim();if(r==="HEAD")return await t.inferRefFromHead();let i=r.match(/^HEAD, (.*)$/);if(!i||!i[1])throw new Error(`Cannot find detached HEAD ref in "${e}"`);let s=i[1].trim();if(s.startsWith("tag: "))return`refs/tags/${s.split(":")[1].trim()}`;if(s.match(/^pull\/\d+\/(head|merge)$/))return`refs/${s}`;let o=s.match(/^[^/]+\/[^/]+, (.+)$/);if(o)return`refs/heads/${o[1].trim()}`;let a=s.match(/^[^/]+\/(.+)$/);if(a)return`refs/heads/${a[1].trim()}`;throw new Error(`Unsupported detached HEAD ref in "${e}"`)}static async exec(e=[]){return await Ue.getExecOutput("git",e,{ignoreReturnCode:!0,silent:!0}).then(r=>{if(r.stderr.length>0&&r.exitCode!=0)throw new Error(r.stderr);return r.stdout.trim()})}static async inferRefFromHead(){let e=await t.findContainingRef("refs/heads/");if(e)return e;let r=await t.findContainingRef("refs/remotes/");if(r){let n=r.match(/^refs\/remotes\/[^/]+\/(.+)$/);return n?`refs/heads/${n[1]}`:r}let i=await t.exec(["tag","--contains","HEAD"]),[s]=i.split(`
|
||||
`).map(n=>n.trim()).filter(n=>n.length>0);if(s)return`refs/tags/${s}`;throw new Error("Cannot infer ref from detached HEAD")}static async findContainingRef(e){let r=await t.exec(["for-each-ref","--format=%(refname)","--contains","HEAD","--sort=-committerdate",e]),[i]=r.split(`
|
||||
`).map(s=>s.trim()).filter(s=>s.length>0);return i}static async commitDate(e){return new Date(await t.exec(["show","-s",'--format="%ci"',e]))}};var trt=require("crypto"),jh=k(require("fs"),1),cg=k(require("path"),1);var G2=k(PT(),1),zh=k(YXe(),1),rrt=k(Phe(),1),dB=k(Wtt(),1);var Ode=k(PT(),1);var Ytt=k(ll(),1);var Jtt="application/vnd.oci.empty.v1+json";var $p=class{binPath;_version;_versionOnce;constructor(e){this.binPath=e?.binPath||"cosign",this._version="",this._versionOnce=!1}async isAvailable(){let e=await Ue.getExecOutput(this.binPath,[],{ignoreReturnCode:!0,silent:!0}).then(r=>r.stderr.length>0&&r.exitCode!=0?(T(`Cosign.isAvailable cmd err: ${r.stderr.trim()}`),!1):r.exitCode==0).catch(r=>(T(`Cosign.isAvailable error: ${r}`),!1));return T(`Cosign.isAvailable: ${e}`),e}async version(){return this._versionOnce?this._version:(this._versionOnce=!0,this._version=await Ue.getExecOutput(this.binPath,["version","--json"],{ignoreReturnCode:!0,silent:!0}).then(e=>{if(e.stderr.length>0&&e.exitCode!=0)throw new Error(e.stderr.trim());return JSON.parse(e.stdout.trim()).gitVersion}),this._version)}async printVersion(){await Ue.exec(this.binPath,["version","--json"],{failOnStdErr:!1})}async versionSatisfies(e,r){let i=r??await this.version();if(!i)return T("Cosign.versionSatisfies false: undefined version"),!1;let s=Ytt.satisfies(i,e)||/^[0-9a-f]{7}$/.exec(i)!==null;return T(`Cosign.versionSatisfies ${i} statisfies ${e}: ${s}`),s}static parseCommandOutput(e){let r,i,s,n;for(let o of e.split(/\r?\n/)){let a=o.trim();if(!a.startsWith("{")||!a.endsWith("}"))continue;let c;try{c=JSON.parse(a)}catch{continue}if(c&&Array.isArray(c.errors)&&c.errors.length>0&&(n=c.errors),!r&&c&&Array.isArray(c.manifests)&&c.manifests.length>0){let u=c.manifests[0];u?.artifactType===Ode.BUNDLE_V03_MEDIA_TYPE&&typeof u.digest=="string"?r=u.digest:u?.artifactType===Jtt&&typeof u.digest=="string"&&(i=u.digest)}if(!s&&c&&c.mediaType===Ode.BUNDLE_V03_MEDIA_TYPE&&(s=c),s&&(r||i)){n=void 0;break}}return{bundle:s,signatureManifestDigest:r||i,errors:n}}};var Pde=k(require("fs"),1);var EG=class t{buildx;constructor(e){this.buildx=e?.buildx||new $t}async getCommand(e){return await this.buildx.getCommand(["imagetools",...e])}async getInspectCommand(e){return await this.getCommand(["inspect",...e])}async getCreateCommand(e){return await this.getCommand(["create",...e])}async inspectImage(e){return await this.inspect(e,"{{json .Image}}",r=>{if(typeof r=="object"&&!Array.isArray(r)&&r!==null)return Object.prototype.hasOwnProperty.call(r,"config"),r;throw new Error("Unexpected output format")})}async inspectManifest(e){return await this.inspect(e,"{{json .Manifest}}",r=>{if(typeof r=="object"&&!Array.isArray(r)&&r!==null)return Object.prototype.hasOwnProperty.call(r,"manifests"),r;throw new Error("Unexpected output format")})}async attestationDescriptors(e){let r=await this.inspectManifest(e);if(typeof r!="object"||r===null||!("manifests"in r)||!Array.isArray(r.manifests))throw new Error(`No descriptor found for ${e.name}`);let i=r.manifests.filter(o=>o.annotations?.["vnd.docker.reference.type"]==="attestation-manifest");if(!e.platform)return i;let s=e.platform,n=new Map;for(let o of r.manifests)o.digest&&n.set(o.digest,o);return i.filter(o=>{let a=o.annotations?.["vnd.docker.reference.digest"];if(!a)return!1;let c=n.get(a);return c?c.platform?.os===s.os&&c.platform?.architecture===s.architecture&&(c.platform?.variant??"")===(s.variant??""):!1})}async attestationDigests(e){return(await this.attestationDescriptors(e)).map(r=>r.digest)}async create(e){let r=[],i=Nt.tmpName({tmpdir:Nt.tmpDir(),template:"imagetools-metadata-XXXXXX"}),s=[],n=[];for(let a of e.sources){if(a.startsWith("cwd://")){let c=a.substring(6);c.length>0&&s.push(c);continue}n.push(a)}if(e.tags)for(let a of e.tags)r.push("--tag",a);if(e.platforms)for(let a of e.platforms)r.push("--platform",a);if(e.annotations)for(let a of e.annotations)r.push("--annotation",a);e.dryRun?r.push("--dry-run"):r.push("--metadata-file",i);for(let a of s)r.push("--file",a);for(let a of n)r.push(a);let o=await this.getCreateCommand(r);if(e.skipExec){L(`[command]${o.command} ${o.args.join(" ")}`),L("Skipped create command");return}return await Ue.getExecOutput(o.command,o.args,{ignoreReturnCode:!0,silent:e.silent}).then(a=>{if(a.stderr.length>0&&a.exitCode!=0)throw new Error(a.stderr.trim());if(!e.dryRun){if(!Pde.default.existsSync(i))return;let c=Pde.default.readFileSync(i,{encoding:"utf-8"}).trim();if(c===""||c==="null")return;let u=JSON.parse(c),l=u["containerimage.descriptor"];return l?{digest:u["containerimage.digest"]||l.digest,descriptor:l,imageNames:u["image.name"]?u["image.name"].split(",").map(f=>f.trim()):[]}:void 0}})}async inspect(e,r,i){let s=await this.getInspectCommand([e.name,"--format",r]);if(!e.retryOnManifestUnknown)return await this.execInspect(s.command,s.args,i);let n=e.retryLimit??15,o;for(let a=0;a<n;a++)try{return await this.execInspect(s.command,s.args,i)}catch(c){if(o=c,!t.isManifest
Line truncated
|
||||
${o.message}`),await new Promise(u=>setTimeout(u,Math.pow(2,a)*100))}throw o??new Error(`ImageTools inspect command failed for ${e.name}`)}async execInspect(e,r,i){return await Ue.getExecOutput(e,r,{ignoreReturnCode:!0,silent:!0}).then(s=>{if(s.stderr.length>0&&s.exitCode!=0)throw new Error(s.stderr.trim());return i(JSON.parse(s.stdout))})}static isManifestUnknownError(e){return/(MANIFEST_UNKNOWN|manifest unknown|not found: not found)/i.test(e)}};var Ktt="application/vnd.in-toto+json";var Xtt="https://fulcio.sigstore.dev",Ztt="https://rekor.sigstore.dev",ert="https://timestamp.sigstore.dev",R0="https://search.sigstore.dev";var Wwr="slsaprovenance1",ug=class t{cosign;imageTools;constructor(e){this.cosign=e?.cosign||new $p,this.imageTools=e?.imageTools||new EG}async signAttestationManifests(e){if(!await this.cosign.isAvailable())throw new Error("Cosign is required to sign attestation manifests");let r={};try{if(!process.env.ACTIONS_ID_TOKEN_REQUEST_URL)throw new Error('missing "id-token" permission. Please add "permissions: id-token: write" to your workflow.');let i=this.signingEndpoints(e.noTransparencyLog);L(`Using Sigstore signing endpoint: ${i.fulcioURL}`);let s=t.noTransparencyLog(e.noTransparencyLog),n=[];await this.cosign.versionSatisfies(">=3.0.4")?await ti("Creating Sigstore protobuf signing config",async()=>{let o=Nt.tmpName({template:"signing-config-XXXXXX.json",tmpdir:Nt.tmpDir()}),a=["signing-config","create","--with-default-services=true",`--out=${o}`];s&&a.push("--no-default-rekor=true"),await Ue.exec(this.cosign.binPath,a,{env:Object.assign({},process.env,{COSIGN_EXPERIMENTAL:"1"})}),L(JSON.stringify(JSON.parse(jh.default.readFileSync(o,{encoding:"utf-8"})),null,2)),n.push(`--signing-config=${o}`)}):(n.push("--use-signing-config"),s&&n.push("--tlog-upload=false"));for(let o of e.imageNames){let a=await this.imageTools.attestationDigests({name:`${o}@${e.imageDigest}`,retryOnManifestUnknown:e.retryOnManifestUnknown,retryLimit:e.retryLimit});for(let c of a){let u=`${o}@${c}`;await ti(`Signing attestation manifest ${u}`,async()=>{let l=["sign","--yes","--oidc-provider","github-actions","--registry-referrers-mode","oci-1-1","--new-bundle-format",...n];L(`[command]${this.cosign.binPath} ${[...l,u].join(" ")}`);let f=await Ue.getExecOutput(this.cosign.binPath,["--verbose",...l,u],{ignoreReturnCode:!0,silent:!0,env:Object.assign({},process.env,{COSIGN_EXPERIMENTAL:"1"})}),h=$p.parseCommandOutput(f.stderr.trim());if(f.exitCode!=0)if(h.errors&&h.errors.length>0){let m=h.errors.map(A=>`- [${A.code}] ${A.message} : ${A.detail}`).join(`
|
||||
`).map(s=>s.trim()).filter(s=>s.length>0);return i}static async commitDate(e){return new Date(await t.exec(["show","-s",'--format="%ci"',e]))}};var drt=require("crypto"),Hh=k(require("fs"),1),ug=k(require("path"),1);var z1=k(LN(),1),jh=k(cZe(),1),prt=k(Hhe(),1),AB=k(ort(),1);var Gde=k(LN(),1);var crt=k(ul(),1);var art="application/vnd.oci.empty.v1+json";var Vp=class{binPath;_version;_versionOnce;constructor(e){this.binPath=e?.binPath||"cosign",this._version="",this._versionOnce=!1}async isAvailable(){let e=await Ue.getExecOutput(this.binPath,[],{ignoreReturnCode:!0,silent:!0}).then(r=>r.stderr.length>0&&r.exitCode!=0?(N(`Cosign.isAvailable cmd err: ${r.stderr.trim()}`),!1):r.exitCode==0).catch(r=>(N(`Cosign.isAvailable error: ${r}`),!1));return N(`Cosign.isAvailable: ${e}`),e}async version(){return this._versionOnce?this._version:(this._versionOnce=!0,this._version=await Ue.getExecOutput(this.binPath,["version","--json"],{ignoreReturnCode:!0,silent:!0}).then(e=>{if(e.stderr.length>0&&e.exitCode!=0)throw new Error(e.stderr.trim());return JSON.parse(e.stdout.trim()).gitVersion}),this._version)}async printVersion(){await Ue.exec(this.binPath,["version","--json"],{failOnStdErr:!1})}async versionSatisfies(e,r){let i=r??await this.version();if(!i)return N("Cosign.versionSatisfies false: undefined version"),!1;let s=crt.satisfies(i,e)||/^[0-9a-f]{7}$/.exec(i)!==null;return N(`Cosign.versionSatisfies ${i} statisfies ${e}: ${s}`),s}static parseCommandOutput(e){let r,i,s,n;for(let o of e.split(/\r?\n/)){let a=o.trim();if(!a.startsWith("{")||!a.endsWith("}"))continue;let c;try{c=JSON.parse(a)}catch{continue}if(c&&Array.isArray(c.errors)&&c.errors.length>0&&(n=c.errors),!r&&c&&Array.isArray(c.manifests)&&c.manifests.length>0){let u=c.manifests[0];u?.artifactType===Gde.BUNDLE_V03_MEDIA_TYPE&&typeof u.digest=="string"?r=u.digest:u?.artifactType===art&&typeof u.digest=="string"&&(i=u.digest)}if(!s&&c&&c.mediaType===Gde.BUNDLE_V03_MEDIA_TYPE&&(s=c),s&&(r||i)){n=void 0;break}}return{bundle:s,signatureManifestDigest:r||i,errors:n}}};var Hde=k(require("fs"),1);var BG=class t{buildx;constructor(e){this.buildx=e?.buildx||new $t}async getCommand(e){return await this.buildx.getCommand(["imagetools",...e])}async getInspectCommand(e){return await this.getCommand(["inspect",...e])}async getCreateCommand(e){return await this.getCommand(["create",...e])}async inspectImage(e){return await this.inspect(e,"{{json .Image}}",r=>{if(typeof r=="object"&&!Array.isArray(r)&&r!==null)return Object.prototype.hasOwnProperty.call(r,"config"),r;throw new Error("Unexpected output format")})}async inspectManifest(e){return await this.inspect(e,"{{json .Manifest}}",r=>{if(typeof r=="object"&&!Array.isArray(r)&&r!==null)return Object.prototype.hasOwnProperty.call(r,"manifests"),r;throw new Error("Unexpected output format")})}async attestationDescriptors(e){let r=await this.inspectManifest(e);if(typeof r!="object"||r===null||!("manifests"in r)||!Array.isArray(r.manifests))throw new Error(`No descriptor found for ${e.name}`);let i=r.manifests.filter(o=>o.annotations?.["vnd.docker.reference.type"]==="attestation-manifest");if(!e.platform)return i;let s=e.platform,n=new Map;for(let o of r.manifests)o.digest&&n.set(o.digest,o);return i.filter(o=>{let a=o.annotations?.["vnd.docker.reference.digest"];if(!a)return!1;let c=n.get(a);return c?c.platform?.os===s.os&&c.platform?.architecture===s.architecture&&(c.platform?.variant??"")===(s.variant??""):!1})}async attestationDigests(e){return(await this.attestationDescriptors(e)).map(r=>r.digest)}async create(e){let r=[],i=Tt.tmpName({tmpdir:Tt.tmpDir(),template:"imagetools-metadata-XXXXXX"}),s=[],n=[];for(let a of e.sources){if(a.startsWith("cwd://")){let c=a.substring(6);c.length>0&&s.push(c);continue}n.push(a)}if(e.tags)for(let a of e.tags)r.push("--tag",a);if(e.platforms)for(let a of e.platforms)r.push("--platform",a);if(e.annotations)for(let a of e.annotations)r.push("--annotation",a);e.dryRun?r.push("--dry-run"):r.push("--metadata-file",i);for(let a of s)r.push("--file",a);for(let a of n)r.push(a);let o=await this.getCreateCommand(r);if(e.skipExec){L(`[command]${o.command} ${o.args.join(" ")}`),L("Skipped create command");return}return await Ue.getExecOutput(o.command,o.args,{ignoreReturnCode:!0,silent:e.silent}).then(a=>{if(a.stderr.length>0&&a.exitCode!=0)throw new Error(a.stderr.trim());if(!e.dryRun){if(!Hde.default.existsSync(i))return;let c=Hde.default.readFileSync(i,{encoding:"utf-8"}).trim();if(c===""||c==="null")return;let u=JSON.parse(c),l=u["containerimage.descriptor"];return l?{digest:u["containerimage.digest"]||l.digest,descriptor:l,imageNames:u["image.name"]?u["image.name"].split(",").map(f=>f.trim()):[]}:void 0}})}async inspect(e,r,i){let s=await this.getInspectCommand([e.name,"--format",r]);if(!e.retryOnManifestUnknown)return await this.execInspect(s.command,s.args,i);let n=e.retryLimit??15,o;for(let a=0;a<n;a++)try{return await this.execInspect(s.command,s.args,i)}catch(c){if(o=c,!t.isManifest
Line truncated
|
||||
${o.message}`),await new Promise(u=>setTimeout(u,Math.pow(2,a)*100))}throw o??new Error(`ImageTools inspect command failed for ${e.name}`)}async execInspect(e,r,i){return await Ue.getExecOutput(e,r,{ignoreReturnCode:!0,silent:!0}).then(s=>{if(s.stderr.length>0&&s.exitCode!=0)throw new Error(s.stderr.trim());return i(JSON.parse(s.stdout))})}static isManifestUnknownError(e){return/(MANIFEST_UNKNOWN|manifest unknown|not found: not found)/i.test(e)}};var urt="application/vnd.in-toto+json";var lrt="https://fulcio.sigstore.dev",frt="https://rekor.sigstore.dev",hrt="https://timestamp.sigstore.dev",T0="https://search.sigstore.dev";var dCr="slsaprovenance1",lg=class t{cosign;imageTools;constructor(e){this.cosign=e?.cosign||new Vp,this.imageTools=e?.imageTools||new BG}async signAttestationManifests(e){if(!await this.cosign.isAvailable())throw new Error("Cosign is required to sign attestation manifests");let r={};try{if(!process.env.ACTIONS_ID_TOKEN_REQUEST_URL)throw new Error('missing "id-token" permission. Please add "permissions: id-token: write" to your workflow.');let i=this.signingEndpoints(e.noTransparencyLog);L(`Using Sigstore signing endpoint: ${i.fulcioURL}`);let s=t.noTransparencyLog(e.noTransparencyLog),n=[];await this.cosign.versionSatisfies(">=3.0.4")?await ti("Creating Sigstore protobuf signing config",async()=>{let o=Tt.tmpName({template:"signing-config-XXXXXX.json",tmpdir:Tt.tmpDir()}),a=["signing-config","create","--with-default-services=true",`--out=${o}`];s&&a.push("--no-default-rekor=true"),await Ue.exec(this.cosign.binPath,a,{env:Object.assign({},process.env,{COSIGN_EXPERIMENTAL:"1"})}),L(JSON.stringify(JSON.parse(Hh.default.readFileSync(o,{encoding:"utf-8"})),null,2)),n.push(`--signing-config=${o}`)}):(n.push("--use-signing-config"),s&&n.push("--tlog-upload=false"));for(let o of e.imageNames){let a=await this.imageTools.attestationDigests({name:`${o}@${e.imageDigest}`,retryOnManifestUnknown:e.retryOnManifestUnknown,retryLimit:e.retryLimit});for(let c of a){let u=`${o}@${c}`;await ti(`Signing attestation manifest ${u}`,async()=>{let l=["sign","--yes","--oidc-provider","github-actions","--registry-referrers-mode","oci-1-1","--new-bundle-format",...n];L(`[command]${this.cosign.binPath} ${[...l,u].join(" ")}`);let f=await Ue.getExecOutput(this.cosign.binPath,["--verbose",...l,u],{ignoreReturnCode:!0,silent:!0,env:Object.assign({},process.env,{COSIGN_EXPERIMENTAL:"1"})}),h=Vp.parseCommandOutput(f.stderr.trim());if(f.exitCode!=0)if(h.errors&&h.errors.length>0){let m=h.errors.map(A=>`- [${A.code}] ${A.message} : ${A.detail}`).join(`
|
||||
`);throw new Error(`Cosign sign command failed with errors:
|
||||
${m}`)}else throw new Error(`Cosign sign command failed with: ${f.stderr.trim().split(/\r?\n/).filter(m=>m.length>0).pop()??"unknown error"}`);let d=t.parseBundle((0,G2.bundleFromJSON)(h.bundle));d.tlogID&&L(`Uploaded to Rekor transparency log: ${R0}?logIndex=${d.tlogID}`),L(`Signature manifest pushed: https://oci.dag.dev/?referrers=${u}`),r[u]={...d,imageName:o}})}}}catch(i){throw new Error(`Signing BuildKit attestation manifests failed: ${i.message}`)}return r}async verifySignedManifests(e,r){let i={};for(let[s,n]of Object.entries(e))await ti(`Verifying signature of ${s}`,async()=>{let o=await this.verifyImageAttestation(s,{certificateIdentityRegexp:r.certificateIdentityRegexp,noTransparencyLog:r.noTransparencyLog||!n.tlogID,retryOnManifestUnknown:r.retryOnManifestUnknown});L(`Signature manifest verified: https://oci.dag.dev/?image=${n.imageName}@${o.signatureManifestDigest}`),i[s]=o});return i}async verifyImageAttestations(e,r){let i={},s=await this.imageTools.attestationDigests({name:e,platform:r.platform,retryOnManifestUnknown:r.retryOnManifestUnknown,retryLimit:r.retryLimit});if(s.length===0)throw new Error(`No attestation manifests found for ${e}`);let n=e.split(":",1)[0];for(let o of s){let a=`${n}@${o}`,c=await this.verifyImageAttestation(a,r);L(`Signature manifest verified: https://oci.dag.dev/?image=${n}@${c.signatureManifestDigest}`),i[a]=c}return i}async verifyImageAttestation(e,r){if(!await this.cosign.isAvailable())throw new Error("Cosign is required to verify signed manifests");let i=["verify","--experimental-oci11","--new-bundle-format","--certificate-oidc-issuer","https://token.actions.githubusercontent.com","--certificate-identity-regexp",r.certificateIdentityRegexp];if(r.noTransparencyLog&&i.push("--use-signed-timestamps","--insecure-ignore-tlog"),!r.retryOnManifestUnknown){L(`[command]${this.cosign.binPath} ${[...i,e].join(" ")}`);let o=await Ue.getExecOutput(this.cosign.binPath,["--verbose",...i,e],{ignoreReturnCode:!0,silent:!0,env:Object.assign({},process.env,{COSIGN_EXPERIMENTAL:"1"})});if(o.exitCode!==0)throw new Error(`Cosign verify command failed with: ${o.stderr.trim().split(/\r?\n/).filter(c=>c.length>0).pop()??"unknown error"}`);let a=$p.parseCommandOutput(o.stderr.trim());return{cosignArgs:i,signatureManifestDigest:a.signatureManifestDigest}}let s=r.retryLimit??15,n;L(`[command]${this.cosign.binPath} ${[...i,e].join(" ")}`);for(let o=0;o<s;o++){let a=await Ue.getExecOutput(this.cosign.binPath,["--verbose",...i,e],{ignoreReturnCode:!0,silent:!0,env:Object.assign({},process.env,{COSIGN_EXPERIMENTAL:"1"})}),c=$p.parseCommandOutput(a.stderr.trim());if(a.exitCode===0)return{cosignArgs:i,signatureManifestDigest:c.signatureManifestDigest};if(c.errors&&c.errors.length>0){let u=c.errors.map(l=>`- [${l.code}] ${l.message} : ${l.detail}`).join(`
|
||||
${m}`)}else throw new Error(`Cosign sign command failed with: ${f.stderr.trim().split(/\r?\n/).filter(m=>m.length>0).pop()??"unknown error"}`);let d=t.parseBundle((0,z1.bundleFromJSON)(h.bundle));d.tlogID&&L(`Uploaded to Rekor transparency log: ${T0}?logIndex=${d.tlogID}`),L(`Signature manifest pushed: https://oci.dag.dev/?referrers=${u}`),r[u]={...d,imageName:o}})}}}catch(i){throw new Error(`Signing BuildKit attestation manifests failed: ${i.message}`)}return r}async verifySignedManifests(e,r){let i={};for(let[s,n]of Object.entries(e))await ti(`Verifying signature of ${s}`,async()=>{let o=await this.verifyImageAttestation(s,{certificateIdentityRegexp:r.certificateIdentityRegexp,noTransparencyLog:r.noTransparencyLog||!n.tlogID,retryOnManifestUnknown:r.retryOnManifestUnknown});L(`Signature manifest verified: https://oci.dag.dev/?image=${n.imageName}@${o.signatureManifestDigest}`),i[s]=o});return i}async verifyImageAttestations(e,r){let i={},s=await this.imageTools.attestationDigests({name:e,platform:r.platform,retryOnManifestUnknown:r.retryOnManifestUnknown,retryLimit:r.retryLimit});if(s.length===0)throw new Error(`No attestation manifests found for ${e}`);let n=e.split(":",1)[0];for(let o of s){let a=`${n}@${o}`,c=await this.verifyImageAttestation(a,r);L(`Signature manifest verified: https://oci.dag.dev/?image=${n}@${c.signatureManifestDigest}`),i[a]=c}return i}async verifyImageAttestation(e,r){if(!await this.cosign.isAvailable())throw new Error("Cosign is required to verify signed manifests");let i=["verify","--experimental-oci11","--new-bundle-format","--certificate-oidc-issuer","https://token.actions.githubusercontent.com","--certificate-identity-regexp",r.certificateIdentityRegexp];if(r.noTransparencyLog&&i.push("--use-signed-timestamps","--insecure-ignore-tlog"),!r.retryOnManifestUnknown){L(`[command]${this.cosign.binPath} ${[...i,e].join(" ")}`);let o=await Ue.getExecOutput(this.cosign.binPath,["--verbose",...i,e],{ignoreReturnCode:!0,silent:!0,env:Object.assign({},process.env,{COSIGN_EXPERIMENTAL:"1"})});if(o.exitCode!==0)throw new Error(`Cosign verify command failed with: ${o.stderr.trim().split(/\r?\n/).filter(c=>c.length>0).pop()??"unknown error"}`);let a=Vp.parseCommandOutput(o.stderr.trim());return{cosignArgs:i,signatureManifestDigest:a.signatureManifestDigest}}let s=r.retryLimit??15,n;L(`[command]${this.cosign.binPath} ${[...i,e].join(" ")}`);for(let o=0;o<s;o++){let a=await Ue.getExecOutput(this.cosign.binPath,["--verbose",...i,e],{ignoreReturnCode:!0,silent:!0,env:Object.assign({},process.env,{COSIGN_EXPERIMENTAL:"1"})}),c=Vp.parseCommandOutput(a.stderr.trim());if(a.exitCode===0)return{cosignArgs:i,signatureManifestDigest:c.signatureManifestDigest};if(c.errors&&c.errors.length>0){let u=c.errors.map(l=>`- [${l.code}] ${l.message} : ${l.detail}`).join(`
|
||||
`);if(n=new Error(`Cosign verify command failed with errors:
|
||||
${u}`),c.errors.some(l=>l.code==="MANIFEST_UNKNOWN"))L(`Cosign verify command failed with MANIFEST_UNKNOWN, retrying attempt ${o+1}/${s}...
|
||||
${u}`),await new Promise(l=>setTimeout(l,Math.pow(2,o)*100));else throw n}else throw new Error(`Cosign verify command failed with: ${a.stderr.trim().split(/\r?\n/).filter(u=>u.length>0).pop()??"unknown error"}`)}throw n}async signProvenanceBlobs(e){let r={};try{if(!process.env.ACTIONS_ID_TOKEN_REQUEST_URL)throw new Error('missing "id-token" permission. Please add "permissions: id-token: write" to your workflow.');let i=this.signingEndpoints(e.noTransparencyLog);L(`Using Sigstore signing endpoint: ${i.fulcioURL}`);let s=t.getProvenanceBlobs(e);for(let n of Object.keys(s))await ti(`Signing ${n}`,async()=>{let o=s[n],a=cg.default.join(cg.default.dirname(n),`${e.name??"provenance"}.sigstore.json`),c=t.getProvenanceSubjects(o);if(c.length===0){st(`No subjects found in provenance ${n}, skip signing.`);return}let u=await t.signPayload({data:o,type:Ktt},i),l=t.parseBundle(u);L("Provenance blob signed for:");for(let f of c){let[h,d]=Object.entries(f.digest)[0]||[];L(` - ${f.name} (${h}:${d})`)}l.tlogID&&L(`Attestation signature uploaded to Rekor transparency log: ${R0}?logIndex=${l.tlogID}`),L(`Writing Sigstore bundle to: ${a}`),jh.default.writeFileSync(a,JSON.stringify(l.payload,null,2),{encoding:"utf-8"}),r[n]={...l,bundlePath:a,subjects:c}})}catch(i){throw new Error(`Signing BuildKit provenance blobs failed: ${i.message}`)}return r}async verifySignedArtifacts(e,r){let i={};if(!await this.cosign.isAvailable())throw new Error("Cosign is required to verify signed artifacts");for(let[s,n]of Object.entries(e)){let o=cg.default.dirname(s);await ti(`Verifying signature bundle ${n.bundlePath}`,async()=>{for(let a of n.subjects){let c=cg.default.join(o,a.name);L(`Verifying signed artifact ${c}`);let u=["verify-blob-attestation","--new-bundle-format","--certificate-oidc-issuer","https://token.actions.githubusercontent.com","--certificate-identity-regexp",r.certificateIdentityRegexp,"--type",r.predicateType??Wwr];(r.noTransparencyLog||!n.tlogID)&&u.push("--use-signed-timestamps","--insecure-ignore-tlog");let l=await Ue.getExecOutput(this.cosign.binPath,[...u,"--bundle",n.bundlePath,c],{ignoreReturnCode:!0});if(l.stderr.length>0&&l.exitCode!=0)throw new Error(l.stderr);i[c]={bundlePath:n.bundlePath,cosignArgs:u}}})}return i}async verifyArtifact(e,r,i){L("Verifying keyless verification bundle signature");let s=JSON.parse(jh.default.readFileSync(r,"utf-8")),n=(0,G2.bundleFromJSON)(s);L("Fetching Sigstore TUF trusted root metadata");let o=await rrt.getTrustedRoot(),a=(0,dB.toTrustMaterial)(o);try{L("Verifying artifact signature");let c=(0,dB.toSignedEntity)(n,jh.default.readFileSync(e)),u=t.parseCertificate(n),l=n.verificationMaterial.tlogEntries,f=l.length>0?l[0].logIndex:void 0;if(i?.subjectAlternativeName&&i?.subjectAlternativeName instanceof RegExp){let m=u.subjectAltName?.replace(/^uri:/i,"");if(m){if(!m.match(i.subjectAlternativeName))throw new Error(`Signing certificate subjectAlternativeName "${m}" does not match expected pattern`)}else throw new Error("Signing certificate does not contain subjectAltName")}let d=new dB.Verifier(a).verify(c,{subjectAlternativeName:i?.subjectAlternativeName&&typeof i.subjectAlternativeName=="string"?i.subjectAlternativeName:void 0,extensions:i?.issuer?{issuer:i.issuer}:void 0});return T(`Sigstore.verifyArtifact signer: ${JSON.stringify(d)}`),{payload:s,certificate:u.toString(),tlogID:f}}catch(c){throw new Error(`Failed to verify artifact signature: ${c}`)}}signingEndpoints(e){return e=t.noTransparencyLog(e),L(`Upload to transparency log: ${e?"disabled":"enabled"}`),{fulcioURL:Xtt,rekorURL:e?void 0:Ztt,tsaServerURL:ert}}static noTransparencyLog(e){return e??gt.context.payload.repository?.private}static getProvenanceBlobs(e){let r=cg.default.join(e.localExportDir,"provenance.json");if(jh.default.existsSync(r))return{[r]:jh.default.readFileSync(r)};let i=jh.default.readdirSync(e.localExportDir,{withFileTypes:!0}),s=i.filter(n=>n.isDirectory());if(s.length>0&&s.length===i.length&&s.every(n=>jh.default.existsSync(cg.default.join(e.localExportDir,n.name,"provenance.json")))){let n={};for(let o of s){let a=cg.default.join(e.localExportDir,o.name,"provenance.json");n[a]=jh.default.readFileSync(a)}return n}throw new Error(`No valid provenance.json found in ${e.localExportDir}`)}static getProvenanceSubjects(e){return JSON.parse(e.toString()).subject.map(i=>({name:i.name,digest:i.digest}))}static async signPayload(e,r,i,s){let n=[],o=new zh.FulcioSigner({identityProvider:new zh.CIContextProvider("sigstore"),fulcioBaseURL:r.fulcioURL,timeout:i,retry:s});return r.rekorURL&&n.push(new zh.RekorWitness({rekorBaseURL:r.rekorURL,fetchOnConflict:!0,timeout:i,retry:s})),r.tsaServerURL&&n.push(new zh.TSAWitness({tsaBaseURL:r.tsaServerURL,timeout:i,retry:s})),new zh.DSSEBundleBuilder({signer:o,witnesses:n}).create(e)}static parseBundle(e){let r=t.parseCertificate(e),i=e.verificationMaterial.tlogEntries,s=i.length>0?i[0].logIndex:void 0;return{payload:(0,G2.bundleToJSON)(e),certificate:r.toString(),tlogID:s}}
Line truncated
|
||||
${u}`),await new Promise(l=>setTimeout(l,Math.pow(2,o)*100));else throw n}else throw new Error(`Cosign verify command failed with: ${a.stderr.trim().split(/\r?\n/).filter(u=>u.length>0).pop()??"unknown error"}`)}throw n}async signProvenanceBlobs(e){let r={};try{if(!process.env.ACTIONS_ID_TOKEN_REQUEST_URL)throw new Error('missing "id-token" permission. Please add "permissions: id-token: write" to your workflow.');let i=this.signingEndpoints(e.noTransparencyLog);L(`Using Sigstore signing endpoint: ${i.fulcioURL}`);let s=t.getProvenanceBlobs(e);for(let n of Object.keys(s))await ti(`Signing ${n}`,async()=>{let o=s[n],a=ug.default.join(ug.default.dirname(n),`${e.name??"provenance"}.sigstore.json`),c=t.getProvenanceSubjects(o);if(c.length===0){st(`No subjects found in provenance ${n}, skip signing.`);return}let u=await t.signPayload({data:o,type:urt},i),l=t.parseBundle(u);L("Provenance blob signed for:");for(let f of c){let[h,d]=Object.entries(f.digest)[0]||[];L(` - ${f.name} (${h}:${d})`)}l.tlogID&&L(`Attestation signature uploaded to Rekor transparency log: ${T0}?logIndex=${l.tlogID}`),L(`Writing Sigstore bundle to: ${a}`),Hh.default.writeFileSync(a,JSON.stringify(l.payload,null,2),{encoding:"utf-8"}),r[n]={...l,bundlePath:a,subjects:c}})}catch(i){throw new Error(`Signing BuildKit provenance blobs failed: ${i.message}`)}return r}async verifySignedArtifacts(e,r){let i={};if(!await this.cosign.isAvailable())throw new Error("Cosign is required to verify signed artifacts");for(let[s,n]of Object.entries(e)){let o=ug.default.dirname(s);await ti(`Verifying signature bundle ${n.bundlePath}`,async()=>{for(let a of n.subjects){let c=ug.default.join(o,a.name);L(`Verifying signed artifact ${c}`);let u=["verify-blob-attestation","--new-bundle-format","--certificate-oidc-issuer","https://token.actions.githubusercontent.com","--certificate-identity-regexp",r.certificateIdentityRegexp,"--type",r.predicateType??dCr];(r.noTransparencyLog||!n.tlogID)&&u.push("--use-signed-timestamps","--insecure-ignore-tlog");let l=await Ue.getExecOutput(this.cosign.binPath,[...u,"--bundle",n.bundlePath,c],{ignoreReturnCode:!0});if(l.stderr.length>0&&l.exitCode!=0)throw new Error(l.stderr);i[c]={bundlePath:n.bundlePath,cosignArgs:u}}})}return i}async verifyArtifact(e,r,i){L("Verifying keyless verification bundle signature");let s=JSON.parse(Hh.default.readFileSync(r,"utf-8")),n=(0,z1.bundleFromJSON)(s);L("Fetching Sigstore TUF trusted root metadata");let o=await prt.getTrustedRoot(),a=(0,AB.toTrustMaterial)(o);try{L("Verifying artifact signature");let c=(0,AB.toSignedEntity)(n,Hh.default.readFileSync(e)),u=t.parseCertificate(n),l=n.verificationMaterial.tlogEntries,f=l.length>0?l[0].logIndex:void 0;if(i?.subjectAlternativeName&&i?.subjectAlternativeName instanceof RegExp){let m=u.subjectAltName?.replace(/^uri:/i,"");if(m){if(!m.match(i.subjectAlternativeName))throw new Error(`Signing certificate subjectAlternativeName "${m}" does not match expected pattern`)}else throw new Error("Signing certificate does not contain subjectAltName")}let d=new AB.Verifier(a).verify(c,{subjectAlternativeName:i?.subjectAlternativeName&&typeof i.subjectAlternativeName=="string"?i.subjectAlternativeName:void 0,extensions:i?.issuer?{issuer:i.issuer}:void 0});return N(`Sigstore.verifyArtifact signer: ${JSON.stringify(d)}`),{payload:s,certificate:u.toString(),tlogID:f}}catch(c){throw new Error(`Failed to verify artifact signature: ${c}`)}}signingEndpoints(e){return e=t.noTransparencyLog(e),L(`Upload to transparency log: ${e?"disabled":"enabled"}`),{fulcioURL:lrt,rekorURL:e?void 0:frt,tsaServerURL:hrt}}static noTransparencyLog(e){return e??gt.context.payload.repository?.private}static getProvenanceBlobs(e){let r=ug.default.join(e.localExportDir,"provenance.json");if(Hh.default.existsSync(r))return{[r]:Hh.default.readFileSync(r)};let i=Hh.default.readdirSync(e.localExportDir,{withFileTypes:!0}),s=i.filter(n=>n.isDirectory());if(s.length>0&&s.length===i.length&&s.every(n=>Hh.default.existsSync(ug.default.join(e.localExportDir,n.name,"provenance.json")))){let n={};for(let o of s){let a=ug.default.join(e.localExportDir,o.name,"provenance.json");n[a]=Hh.default.readFileSync(a)}return n}throw new Error(`No valid provenance.json found in ${e.localExportDir}`)}static getProvenanceSubjects(e){return JSON.parse(e.toString()).subject.map(i=>({name:i.name,digest:i.digest}))}static async signPayload(e,r,i,s){let n=[],o=new jh.FulcioSigner({identityProvider:new jh.CIContextProvider("sigstore"),fulcioBaseURL:r.fulcioURL,timeout:i,retry:s});return r.rekorURL&&n.push(new jh.RekorWitness({rekorBaseURL:r.rekorURL,fetchOnConflict:!0,timeout:i,retry:s})),r.tsaServerURL&&n.push(new jh.TSAWitness({tsaBaseURL:r.tsaServerURL,timeout:i,retry:s})),new jh.DSSEBundleBuilder({signer:o,witnesses:n}).create(e)}static parseBundle(e){let r=t.parseCertificate(e),i=e.verificationMaterial.tlogEntries,s=i.length>0?i[0].logIndex:void 0;return{payload:(0,z1.bundleToJSON)(e),certificate:r.toString(),tlogID:s}}
Line truncated
|
||||
`)){let[u,...l]=c.split(":"),f=u.toLowerCase(),h=l.map(d=>d.trim()).join(":");if(u.length!=0)switch(!0){case f=="name":i=void 0,r.name==null?r.name=h:(n&&s.gcPolicy&&(s.gcPolicy.push(n),n=void 0),s.name&&r.nodes.push(s),s={name:h});break;case f=="driver":i=void 0,r.driver=h;break;case f=="last activity":i=void 0,r.lastActivity=new Date(h);break;case f=="endpoint":i=void 0,s.endpoint=h;break;case f=="driver options":i=void 0,s["driver-opts"]=(h.match(/([a-zA-Z0-9_.]+)="([^"]*)"/g)||[]).map(d=>d.replace(/^(.*)="(.*)"$/g,"$1=$2"));break;case f=="status":i=void 0,s.status=h;break;case f=="buildkit daemon flags":case f=="flags":i=void 0,s["buildkitd-flags"]=h;break;case f=="buildkit version":case f=="buildkit":i=void 0,s.buildkit=h;break;case f=="platforms":{if(i=void 0,!h)break;let d=[];if(h.includes("*"))for(let m of h.split(", "))m.includes("*")&&d.push(m.replace(/\*/g,""));else d=h.split(", ");s.platforms=d.join(",");break}case f=="features":i="features",s.features={};break;case f=="labels":i="label",s.labels={};break;case f=="devices":i="devices",s.devices=s.devices||[];break;case f.startsWith("gc policy rule#"):i="gcpolicy",s.gcPolicy&&n&&(s.gcPolicy.push(n),n=void 0);break;case f.startsWith("file#"):i="file",a=u.split("#")[1],s.files=s.files||{},s.files[a]="";break;default:switch(i&&i!=="devices"&&s.devices&&o&&(s.devices.push(o),o=void 0),i||""){case"features":{s.features=s.features||{},s.features[u.trim()]=!!h;break}case"label":{s.labels=s.labels||{},s.labels[u.trim()]=h;break}case"devices":{switch(f.trim()){case"name":{s.devices&&o&&s.devices.push(o),o={},o.name=h;break}case"on-demand":{o&&h&&(o.onDemand=h=="true");break}case"automatically allowed":{o&&h&&(o.autoAllow=h=="true");break}case"annotations":{o&&(o.annotations=o.annotations||{});break}default:o&&o.annotations&&(o.annotations[u.trim()]=h)}break}case"gcpolicy":{switch(s.gcPolicy=s.gcPolicy||[],n=n||{},f.trim()){case"all":{n.all=h=="true";break}case"filters":{h&&(n.filter=h.split(","));break}case"keep duration":{n.keepDuration=h;break}case"keep bytes":{n.keepBytes=h;break}case"reserved space":{n.reservedSpace=h;break}case"max used space":{n.maxUsedSpace=h;break}case"min free space":{n.minFreeSpace=h;break}}break}case"file":{a&&s.files&&(s.files[a].length>0&&(s.files[a]+=`
|
||||
`),s.files[a]+=c.replace(/^\s>\s?/,""));break}}}}return o&&s.devices&&s.devices.push(o),n&&s.gcPolicy&&s.gcPolicy.push(n),s.name&&r.nodes.push(s),r}};var irt=k(ll(),1);var wG=k(require("fs"),1);var CG=class{resolveFromString(e){return this.resolve(e,!1)}resolveFromFile(e){return this.resolve(e,!0)}resolve(e,r){if(r){if(!wG.default.existsSync(e))throw new Error(`config file ${e} not found`);e=wG.default.readFileSync(e,{encoding:"utf-8"})}let i=Nt.tmpName({tmpdir:Nt.tmpDir()});return wG.default.writeFileSync(i,e),i}};var IG=class{buildx;config;constructor(e){this.config=new CG,this.buildx=e?.buildx||new $t}async getVersion(e){if(!e.buildkit&&e.name)try{return await this.getVersionWithinImage(e.name)}catch(r){st(r)}return e.buildkit}async getVersionWithinImage(e){return T(`BuildKit.getVersionWithinImage nodeName: ${e}`),xi.getExecOutput(["inspect","--format","{{.Config.Image}}",`${$t.containerNamePrefix}${e}`],{ignoreReturnCode:!0,silent:!0}).then(r=>{if(r.exitCode==0&&r.stdout.length>0)return T(`BuildKit.getVersionWithinImage image: ${r.stdout.trim()}`),xi.getExecOutput(["run","--rm",r.stdout.trim(),"--version"],{ignoreReturnCode:!0,silent:!0}).then(i=>{if(i.exitCode==0&&i.stdout.length>0)return`${r.stdout.trim()} => ${i.stdout.trim()}`;if(i.stderr.length>0)throw new Error(r.stderr.trim());return i.stdout.trim()});if(r.stderr.length>0)throw new Error(r.stderr.trim());return r.stdout.trim()})}async versionSatisfies(e,r,i){i||(i=await new mB({buildx:this.buildx}).inspect(e));for(let s of i.nodes){let n=s.buildkit;if(T(`BuildKit.versionSatisfies ${n}: ${r}`),!n)try{n=await this.getVersionWithinImage(s.name||"")}catch{return T(`BuildKit.versionSatisfies ${s.name}: can't get version`),!1}if(T(`BuildKit.versionSatisfies ${s.name}: version ${n}`),i.driver=="docker"&&!n.endsWith("-moby")||!irt.satisfies(n.replace(/-moby$/,""),r))return!1}return!0}};var SG=class t{_version;_versionOnce;_standalone;constructor(e){this._standalone=e?.standalone,this._version="",this._versionOnce=!1}async isStandalone(){let e=this._standalone??!await xi.isAvailable();return T(`Compose.isStandalone: ${e}`),e}async getCommand(e){let r=await this.isStandalone();return{command:r?"compose":"docker",args:r?e:["compose",...e]}}async isAvailable(){let e=await this.getCommand([]),r=await Ue.getExecOutput(e.command,e.args,{ignoreReturnCode:!0,silent:!0}).then(i=>i.stderr.length>0&&i.exitCode!=0?(T(`Compose.isAvailable cmd err: ${i.stderr.trim()}`),!1):i.exitCode==0).catch(i=>(T(`Compose.isAvailable error: ${i}`),!1));return T(`Compose.isAvailable: ${r}`),r}async version(){if(this._versionOnce)return this._version;this._versionOnce=!0;let e=await this.getCommand(["version"]);return this._version=await Ue.getExecOutput(e.command,e.args,{ignoreReturnCode:!0,silent:!0}).then(r=>{if(r.stderr.length>0&&r.exitCode!=0)throw new Error(r.stderr.trim());return t.parseVersion(r.stdout.trim())}),this._version}async printVersion(){let e=await this.getCommand(["version"]);await Ue.exec(e.command,e.args,{failOnStdErr:!1})}static parseVersion(e){let r=/\sv?([0-9a-f]{7}|[0-9.]+)/.exec(e);if(!r)throw new Error("Cannot parse compose version");return r[1]}};var Jp=k(require("fs"),1),$h=k(require("os"),1),AB=k(require("path"),1);var vG=k(ll(),1),kde=k(require("util"),1);var BG=class t{standalone;githubToken;constructor(e){this.standalone=e?.standalone,this.githubToken=e?.githubToken||process.env.GITHUB_TOKEN}async download(e,r){let i=await t.getDownloadVersion(e);T(`Install.download version: ${i.version}`);let s=await t.getRelease(i,this.githubToken);T(`Install.download release tag name: ${s.tag_name}`);let n=await this.vspec(s.tag_name);T(`Install.download vspec: ${n}`);let o=vG.clean(n)||"";if(!vG.valid(o))throw new Error(`Invalid Compose version "${n}".`);let a=new bs({htcName:i.key!="official"?`compose-dl-bin-${i.key}`:"compose-dl-bin",htcVersion:n,baseCacheDir:AB.default.join($h.default.homedir(),".bin","docker-compose"),cacheFile:$h.default.platform()=="win32"?"docker-compose.exe":"docker-compose",ghaNoCache:r}),c=await a.find();if(c)return L(`Compose binary found in ${c}`),c;let u=kde.format(i.downloadURL,n,this.filename());L(`Downloading ${u}`);let l=await Qc(u,void 0,this.githubToken);T(`Install.download htcDownloadPath: ${l}`);let f=await a.save(l);return L(`Cached to ${f}`),f}async installStandalone(e,r){L("Standalone mode"),r=r||Nt.tmpDir();let i=AB.default.join(r,"compose-bin-standalone");Jp.default.existsSync(i)||Jp.default.mkdirSync(i,{recursive:!0});let s=$h.default.platform()=="win32"?"compose.exe":"compose",n=AB.default.join(i,s);return Jp.default.copyFileSync(e,n),L("Fixing perms"),Jp.default.chmodSync(n,"0755"),Kl(i),L("Added Compose to PATH"),L(`Binary path: ${n}`),n}async installPlugin(e,r){L("Docker plugin mode"),r=r||xi.configDir;let i=AB.default.join(r,"cli-plugins");Jp.default.existsSync(i)||Jp.default.mkdirSync(i,{recursive:!0});let s=$h.default.platform()=="win32"?"docker-compose.exe":"docker-compose",n=AB.default.join(i,s);return Jp.defaul
Line truncated
|
||||
`),s.files[a]+=c.replace(/^\s>\s?/,""));break}}}}return o&&s.devices&&s.devices.push(o),n&&s.gcPolicy&&s.gcPolicy.push(n),s.name&&r.nodes.push(s),r}};var mrt=k(ul(),1);var xG=k(require("fs"),1);var _G=class{resolveFromString(e){return this.resolve(e,!1)}resolveFromFile(e){return this.resolve(e,!0)}resolve(e,r){if(r){if(!xG.default.existsSync(e))throw new Error(`config file ${e} not found`);e=xG.default.readFileSync(e,{encoding:"utf-8"})}let i=Tt.tmpName({tmpdir:Tt.tmpDir()});return xG.default.writeFileSync(i,e),i}};var RG=class{buildx;config;constructor(e){this.config=new _G,this.buildx=e?.buildx||new $t}async getVersion(e){if(!e.buildkit&&e.name)try{return await this.getVersionWithinImage(e.name)}catch(r){st(r)}return e.buildkit}async getVersionWithinImage(e){return N(`BuildKit.getVersionWithinImage nodeName: ${e}`),xi.getExecOutput(["inspect","--format","{{.Config.Image}}",`${$t.containerNamePrefix}${e}`],{ignoreReturnCode:!0,silent:!0}).then(r=>{if(r.exitCode==0&&r.stdout.length>0)return N(`BuildKit.getVersionWithinImage image: ${r.stdout.trim()}`),xi.getExecOutput(["run","--rm",r.stdout.trim(),"--version"],{ignoreReturnCode:!0,silent:!0}).then(i=>{if(i.exitCode==0&&i.stdout.length>0)return`${r.stdout.trim()} => ${i.stdout.trim()}`;if(i.stderr.length>0)throw new Error(r.stderr.trim());return i.stdout.trim()});if(r.stderr.length>0)throw new Error(r.stderr.trim());return r.stdout.trim()})}async versionSatisfies(e,r,i){i||(i=await new yB({buildx:this.buildx}).inspect(e));for(let s of i.nodes){let n=s.buildkit;if(N(`BuildKit.versionSatisfies ${n}: ${r}`),!n)try{n=await this.getVersionWithinImage(s.name||"")}catch{return N(`BuildKit.versionSatisfies ${s.name}: can't get version`),!1}if(N(`BuildKit.versionSatisfies ${s.name}: version ${n}`),i.driver=="docker"&&!n.endsWith("-moby")||!mrt.satisfies(n.replace(/-moby$/,""),r))return!1}return!0}};var NG=class t{_version;_versionOnce;_standalone;constructor(e){this._standalone=e?.standalone,this._version="",this._versionOnce=!1}async isStandalone(){let e=this._standalone??!await xi.isAvailable();return N(`Compose.isStandalone: ${e}`),e}async getCommand(e){let r=await this.isStandalone();return{command:r?"compose":"docker",args:r?e:["compose",...e]}}async isAvailable(){let e=await this.getCommand([]),r=await Ue.getExecOutput(e.command,e.args,{ignoreReturnCode:!0,silent:!0}).then(i=>i.stderr.length>0&&i.exitCode!=0?(N(`Compose.isAvailable cmd err: ${i.stderr.trim()}`),!1):i.exitCode==0).catch(i=>(N(`Compose.isAvailable error: ${i}`),!1));return N(`Compose.isAvailable: ${r}`),r}async version(){if(this._versionOnce)return this._version;this._versionOnce=!0;let e=await this.getCommand(["version"]);return this._version=await Ue.getExecOutput(e.command,e.args,{ignoreReturnCode:!0,silent:!0}).then(r=>{if(r.stderr.length>0&&r.exitCode!=0)throw new Error(r.stderr.trim());return t.parseVersion(r.stdout.trim())}),this._version}async printVersion(){let e=await this.getCommand(["version"]);await Ue.exec(e.command,e.args,{failOnStdErr:!1})}static parseVersion(e){let r=/\sv?([0-9a-f]{7}|[0-9.]+)/.exec(e);if(!r)throw new Error("Cannot parse compose version");return r[1]}};var Wp=k(require("fs"),1),Vh=k(require("os"),1),EB=k(require("path"),1);var DG=k(ul(),1),zde=k(require("util"),1);var TG=class t{standalone;githubToken;constructor(e){this.standalone=e?.standalone,this.githubToken=e?.githubToken||process.env.GITHUB_TOKEN}async download(e,r){let i=await t.getDownloadVersion(e);N(`Install.download version: ${i.version}`);let s=await t.getRelease(i,this.githubToken);N(`Install.download release tag name: ${s.tag_name}`);let n=await this.vspec(s.tag_name);N(`Install.download vspec: ${n}`);let o=DG.clean(n)||"";if(!DG.valid(o))throw new Error(`Invalid Compose version "${n}".`);let a=new bs({htcName:i.key!="official"?`compose-dl-bin-${i.key}`:"compose-dl-bin",htcVersion:n,baseCacheDir:EB.default.join(Vh.default.homedir(),".bin","docker-compose"),cacheFile:Vh.default.platform()=="win32"?"docker-compose.exe":"docker-compose",ghaNoCache:r}),c=await a.find();if(c)return L(`Compose binary found in ${c}`),c;let u=zde.format(i.downloadURL,n,this.filename());L(`Downloading ${u}`);let l=await Pc(u,void 0,this.githubToken);N(`Install.download htcDownloadPath: ${l}`);let f=await a.save(l);return L(`Cached to ${f}`),f}async installStandalone(e,r){L("Standalone mode"),r=r||Tt.tmpDir();let i=EB.default.join(r,"compose-bin-standalone");Wp.default.existsSync(i)||Wp.default.mkdirSync(i,{recursive:!0});let s=Vh.default.platform()=="win32"?"compose.exe":"compose",n=EB.default.join(i,s);return Wp.default.copyFileSync(e,n),L("Fixing perms"),Wp.default.chmodSync(n,"0755"),Yl(i),L("Added Compose to PATH"),L(`Binary path: ${n}`),n}async installPlugin(e,r){L("Docker plugin mode"),r=r||xi.configDir;let i=EB.default.join(r,"cli-plugins");Wp.default.existsSync(i)||Wp.default.mkdirSync(i,{recursive:!0});let s=Vh.default.platform()=="win32"?"docker-compose.exe":"docker-compose",n=EB.default.join(i,s);return Wp.defaul
Line truncated
|
||||
# syntax=docker/dockerfile:1
|
||||
|
||||
ARG GO_VERSION="1.24"
|
||||
@@ -308,8 +308,8 @@ EOT
|
||||
|
||||
FROM scratch
|
||||
COPY --from=builder /out /
|
||||
`;var xG=class t{githubToken;buildx;sigstore;constructor(e){this.githubToken=e?.githubToken||process.env.GITHUB_TOKEN,this.buildx=e?.buildx||new $t,this.sigstore=e?.sigstore||new ug}async download(e){let r=await t.getDownloadVersion(e.version);T(`Install.download version: ${r.version}`);let i=await t.getRelease(r,this.githubToken);T(`Install.download release tag name: ${i.tag_name}`);let s=await this.vspec(i.tag_name);T(`Install.download vspec: ${s}`);let n=yB.clean(s)||"";if(!yB.valid(n))throw new Error(`Invalid Cosign version "${s}".`);let o=new bs({htcName:"cosign-dl-bin",htcVersion:s,baseCacheDir:gB.default.join(Ol.default.homedir(),".bin"),cacheFile:Ol.default.platform()=="win32"?"cosign.exe":"cosign",ghaNoCache:e.ghaNoCache}),a=await o.find();if(a)return L(`Cosign binary found in ${a}`),a;let c=Lde.format(r.downloadURL,s,this.filename());L(`Downloading ${c}`);let u=await Qc(c,void 0,this.githubToken);T(`Install.download htcDownloadPath: ${u}`),e.verifySignature&&yB.satisfies(s,">=3.0.1")&&await this.verifySignature(u,c);let l=await o.save(u,e.skipState);return L(`Cached to ${l}`),l}async build(e,r,i){let s=await this.vspec(e);T(`Install.build vspec: ${s}`);let n=new bs({htcName:"cosign-build-bin",htcVersion:s,baseCacheDir:gB.default.join(Ol.default.homedir(),".bin"),cacheFile:Ol.default.platform()=="win32"?"cosign.exe":"cosign",ghaNoCache:r}),o=await n.find();if(o)return L(`Cosign binary found in ${o}`),o;let a=gB.default.join(Nt.tmpDir(),"cosign-build-cache"),c=await this.buildCommand(e,a),u=await Ue.getExecOutput(c.command,c.args,{ignoreReturnCode:!0,input:Buffer.from(srt)}).then(f=>{if(f.stderr.length>0&&f.exitCode!=0)throw new Error(`build failed with: ${f.stderr.match(/(.*)\s*$/)?.[0]?.trim()??"unknown error"}`);return`${a}/cosign`}),l=await n.save(u,i);return L(`Cached to ${l}`),l}async install(e,r){r=r||Nt.tmpDir();let i=gB.default.join(r,"cosign-bin");H2.default.existsSync(i)||H2.default.mkdirSync(i,{recursive:!0});let s=Ol.default.platform()=="win32"?"cosign.exe":"cosign",n=gB.default.join(i,s);return H2.default.copyFileSync(e,n),L("Fixing perms"),H2.default.chmodSync(n,"0755"),Kl(i),L("Added Cosign to PATH"),L(`Binary path: ${n}`),n}async buildCommand(e,r){let i=await new $t({standalone:!0}).isAvailable(),s=await new $t({standalone:!1}).isAvailable(),n=!1;if(await this.buildx.isStandalone()&&i)T("Install.buildCommand: Buildx standalone found, build with it"),n=!0;else if(!await this.buildx.isStandalone()&&s)T("Install.buildCommand: Buildx plugin found, build with it"),n=!1;else if(i)T("Install.buildCommand: Buildx plugin not found, but standalone found so trying to build with it"),n=!0;else if(s)T("Install.buildCommand: Buildx standalone not found, but plugin found so trying to build with it"),n=!1;else throw new Error(`Neither buildx standalone or plugin have been found to build from ref ${e}`);let o=["build","--platform","local","--build-arg","BUILDKIT_CONTEXT_KEEP_GIT_DIR=1","--output",`type=local,dest=${r}`];return process.env.GIT_AUTH_TOKEN&&o.push("--secret","id=GIT_AUTH_TOKEN"),o.push("-f-",e),await new $t({standalone:n}).getCommand(o)}async verifySignature(e,r){let i=`${r}.sigstore.json`;L(`Downloading keyless verification bundle at ${i}`);let s=await Qc(i,void 0,this.githubToken);T(`Install.verifySignature bundlePath: ${s}`);let n=await this.sigstore.verifyArtifact(e,s,{subjectAlternativeName:"keyless@projectsigstore.iam.gserviceaccount.com",issuer:"https://accounts.google.com"});L(`Cosign binary signature verified! ${n.tlogID?`${R0}?logIndex=${n.tlogID}`:""}`)}filename(){let e;switch(Ol.default.arch()){case"x64":{e="amd64";break}case"ppc64":{e="ppc64le";break}default:{e=Ol.default.arch();break}}let r=Ol.default.platform()=="win32"?"windows":Ol.default.platform(),i=Ol.default.platform()=="win32"?".exe":"";return Lde.format("cosign-%s-%s%s",r,e,i)}async vspec(e){if(!Xe.isValidRef(e)){let u=e.replace(/^v+|v+$/g,"");return L(`Use ${u} version spec cache key for ${e}`),u}let[r,i]=e.split("#");i.length==0&&(i="master");let s;i.match(/^[0-9a-fA-F]{40}$/)?s=i:s=await NI.remoteSha(r,i,process.env.GIT_AUTH_TOKEN);let[n,o]=r.substring(19).split("/"),a=`${n}/${Xe.trimSuffix(o,".git")}/${s}`,c=Xe.hash(a);return L(`Use ${c} version spec cache key for ${a}`),c}static async getDownloadVersion(e){return{version:e,downloadURL:"https://github.com/sigstore/cosign/releases/download/v%s/%s",contentOpts:{owner:"docker",repo:"actions-toolkit",ref:"main",path:".github/cosign-releases.json"}}}static async getRelease(e,r){let s=await new gt({token:r}).releases("Cosign",e.contentOpts);if(!s[e.version])throw new Error(`Cannot find Cosign release ${e.version} in releases JSON`);return s[e.version]}};var nrt=k(ll(),1);var _G=class{binPath;_version;_versionOnce;constructor(e){this.binPath=e?.binPath||"regctl",this._version="",this._versionOnce=!1}async blobGet(e){return await Ue.getExecOutput(this.binPath,["blob","get",e.repository,e.digest],{ignoreReturnCode:!0,silent:!0}).then(r=>{if(r.stderr.length>0&&r.exitC
Line truncated
|
||||
`)[0]?.trim())}else h.stderr.length>0&&(u=Error(`buildx bake failed with: ${h.stderr.match(/(.*)\s*$/)?.[0]?.trim()??"unknown error"}`))});let l=r.buildxBake.resolveMetadata();l&&await ti("Metadata",async()=>{let h=JSON.stringify(l,null,2);L(h),MCe("metadata",h)});let f=[];if(await ti("Build references",async()=>{if(f=await VSr(r,t,e.builder),f.length>0){for(let h of f)L(h);fst(f)}else L("No build references found")}),$Sr()){let h=r.buildxBake.resolveWarnings(l);if(f.length>0&&h&&h.length>0){let d=await $t.convertWarningsToGitHubAnnotations(h,f);T(`annotations: ${JSON.stringify(d,null,2)}`),d&&d.length>0&&await ti(`Generating GitHub annotations (${d.length} build checks found)`,async()=>{for(let m of d)st(m.message,m)})}}if(await ti("Check build summary support",async()=>{WSr()?e.call&&e.call!=="build"?L(`Build summary skipped for ${e.call} subrequest`):gt.isGHES?L("Build summary is not yet supported on GHES"):await r.buildx.versionSatisfies(">=0.23.0")?f.length==0?L("Build summary requires at least one build reference"):(L("Build summary supported!"),hst()):L("Build summary requires Buildx >= 0.23.0"):L("Build summary disabled")}),u)throw u},async()=>{ost&&await ti("Generating build summary",async()=>{try{let t=JSr(),e;t&&(e=YSr());let i=await new rM().export({refs:nst});L(`Build records written to ${i.dockerbuildFilename} (${Xe.formatFileSize(i.dockerbuildSize)})`);let s;t&&(s=await nq.upload({filename:i.dockerbuildFilename,retentionDays:e})),await dq.writeBuildSummary({exportRes:i,uploadRes:s,inputs:ist,bakeDefinition:sst,driver:tst,endpoint:rst})}catch(t){st(t.message)}}),EH.length>0&&await ti(`Removing temp folder ${EH}`,async()=>{pst.rmSync(EH,{recursive:!0})})});async function VSr(t,e,r){let i=t.buildxBake.resolveRefs();if(i)return i;r||(r=(await t.builder.inspect()).name);let s=$t.refs({dir:$t.refsDir,builderName:r,since:e}),n=[];for(let o in s)Object.prototype.hasOwnProperty.call(s,o)&&n.push(o);return n}function $Sr(){return process.env.DOCKER_BUILD_CHECKS_ANNOTATIONS?Xe.parseBool(process.env.DOCKER_BUILD_CHECKS_ANNOTATIONS):!0}function WSr(){return process.env.DOCKER_BUILD_SUMMARY?Xe.parseBool(process.env.DOCKER_BUILD_SUMMARY):!0}function JSr(){return process.env.DOCKER_BUILD_RECORD_UPLOAD?Xe.parseBool(process.env.DOCKER_BUILD_RECORD_UPLOAD):!0}function YSr(){let t=process.env.DOCKER_BUILD_RECORD_RETENTION_DAYS;if(t){let e=parseInt(t);if(isNaN(e))throw Error(`Invalid build record retention days: ${t}`);return e}}
|
||||
`;var OG=class t{githubToken;buildx;sigstore;constructor(e){this.githubToken=e?.githubToken||process.env.GITHUB_TOKEN,this.buildx=e?.buildx||new $t,this.sigstore=e?.sigstore||new lg}async download(e){let r=await t.getDownloadVersion(e.version);N(`Install.download version: ${r.version}`);let i=await t.getRelease(r,this.githubToken);N(`Install.download release tag name: ${i.tag_name}`);let s=await this.vspec(i.tag_name);N(`Install.download vspec: ${s}`);let n=wB.clean(s)||"";if(!wB.valid(n))throw new Error(`Invalid Cosign version "${s}".`);let o=new bs({htcName:"cosign-dl-bin",htcVersion:s,baseCacheDir:bB.default.join(Dl.default.homedir(),".bin"),cacheFile:Dl.default.platform()=="win32"?"cosign.exe":"cosign",ghaNoCache:e.ghaNoCache}),a=await o.find();if(a)return L(`Cosign binary found in ${a}`),a;let c=Vde.format(r.downloadURL,s,this.filename());L(`Downloading ${c}`);let u=await Pc(c,void 0,this.githubToken);N(`Install.download htcDownloadPath: ${u}`),e.verifySignature&&wB.satisfies(s,">=3.0.1")&&await this.verifySignature(u,c);let l=await o.save(u,e.skipState);return L(`Cached to ${l}`),l}async build(e,r,i){let s=await this.vspec(e);N(`Install.build vspec: ${s}`);let n=new bs({htcName:"cosign-build-bin",htcVersion:s,baseCacheDir:bB.default.join(Dl.default.homedir(),".bin"),cacheFile:Dl.default.platform()=="win32"?"cosign.exe":"cosign",ghaNoCache:r}),o=await n.find();if(o)return L(`Cosign binary found in ${o}`),o;let a=bB.default.join(Tt.tmpDir(),"cosign-build-cache"),c=await this.buildCommand(e,a),u=await Ue.getExecOutput(c.command,c.args,{ignoreReturnCode:!0,input:Buffer.from(Art)}).then(f=>{if(f.stderr.length>0&&f.exitCode!=0)throw new Error(`build failed with: ${f.stderr.match(/(.*)\s*$/)?.[0]?.trim()??"unknown error"}`);return`${a}/cosign`}),l=await n.save(u,i);return L(`Cached to ${l}`),l}async install(e,r){r=r||Tt.tmpDir();let i=bB.default.join(r,"cosign-bin");V1.default.existsSync(i)||V1.default.mkdirSync(i,{recursive:!0});let s=Dl.default.platform()=="win32"?"cosign.exe":"cosign",n=bB.default.join(i,s);return V1.default.copyFileSync(e,n),L("Fixing perms"),V1.default.chmodSync(n,"0755"),Yl(i),L("Added Cosign to PATH"),L(`Binary path: ${n}`),n}async buildCommand(e,r){let i=await new $t({standalone:!0}).isAvailable(),s=await new $t({standalone:!1}).isAvailable(),n=!1;if(await this.buildx.isStandalone()&&i)N("Install.buildCommand: Buildx standalone found, build with it"),n=!0;else if(!await this.buildx.isStandalone()&&s)N("Install.buildCommand: Buildx plugin found, build with it"),n=!1;else if(i)N("Install.buildCommand: Buildx plugin not found, but standalone found so trying to build with it"),n=!0;else if(s)N("Install.buildCommand: Buildx standalone not found, but plugin found so trying to build with it"),n=!1;else throw new Error(`Neither buildx standalone or plugin have been found to build from ref ${e}`);let o=["build","--platform","local","--build-arg","BUILDKIT_CONTEXT_KEEP_GIT_DIR=1","--output",`type=local,dest=${r}`];return process.env.GIT_AUTH_TOKEN&&o.push("--secret","id=GIT_AUTH_TOKEN"),o.push("-f-",e),await new $t({standalone:n}).getCommand(o)}async verifySignature(e,r){let i=`${r}.sigstore.json`;L(`Downloading keyless verification bundle at ${i}`);let s=await Pc(i,void 0,this.githubToken);N(`Install.verifySignature bundlePath: ${s}`);let n=await this.sigstore.verifyArtifact(e,s,{subjectAlternativeName:"keyless@projectsigstore.iam.gserviceaccount.com",issuer:"https://accounts.google.com"});L(`Cosign binary signature verified! ${n.tlogID?`${T0}?logIndex=${n.tlogID}`:""}`)}filename(){let e;switch(Dl.default.arch()){case"x64":{e="amd64";break}case"ppc64":{e="ppc64le";break}default:{e=Dl.default.arch();break}}let r=Dl.default.platform()=="win32"?"windows":Dl.default.platform(),i=Dl.default.platform()=="win32"?".exe":"";return Vde.format("cosign-%s-%s%s",r,e,i)}async vspec(e){if(!Xe.isValidRef(e)){let u=e.replace(/^v+|v+$/g,"");return L(`Use ${u} version spec cache key for ${e}`),u}let[r,i]=e.split("#");i.length==0&&(i="master");let s;i.match(/^[0-9a-fA-F]{40}$/)?s=i:s=await PI.remoteSha(r,i,process.env.GIT_AUTH_TOKEN);let[n,o]=r.substring(19).split("/"),a=`${n}/${Xe.trimSuffix(o,".git")}/${s}`,c=Xe.hash(a);return L(`Use ${c} version spec cache key for ${a}`),c}static async getDownloadVersion(e){return{version:e,downloadURL:"https://github.com/sigstore/cosign/releases/download/v%s/%s",contentOpts:{owner:"docker",repo:"actions-toolkit",ref:"main",path:".github/cosign-releases.json"}}}static async getRelease(e,r){let s=await new gt({token:r}).releases("Cosign",e.contentOpts);if(!s[e.version])throw new Error(`Cannot find Cosign release ${e.version} in releases JSON`);return s[e.version]}};var grt=k(ul(),1);var PG=class{binPath;_version;_versionOnce;constructor(e){this.binPath=e?.binPath||"regctl",this._version="",this._versionOnce=!1}async blobGet(e){return await Ue.getExecOutput(this.binPath,["blob","get",e.repository,e.digest],{ignoreReturnCode:!0,silent:!0}).then(r=>{if(r.stderr.length>0&&r.exitC
Line truncated
|
||||
`)[0]?.trim())}else h.stderr.length>0&&(u=Error(`buildx bake failed with: ${h.stderr.match(/(.*)\s*$/)?.[0]?.trim()??"unknown error"}`))});let l=r.buildxBake.resolveMetadata();l&&await ti("Metadata",async()=>{let h=JSON.stringify(l,null,2);L(h),$Ce("metadata",h)});let f=[];if(await ti("Build references",async()=>{if(f=await fBr(r,t,e.builder),f.length>0){for(let h of f)L(h);Ist(f)}else L("No build references found")}),hBr()){let h=r.buildxBake.resolveWarnings(l);if(f.length>0&&h&&h.length>0){let d=await $t.convertWarningsToGitHubAnnotations(h,f);N(`annotations: ${JSON.stringify(d,null,2)}`),d&&d.length>0&&await ti(`Generating GitHub annotations (${d.length} build checks found)`,async()=>{for(let m of d)st(m.message,m)})}}if(await ti("Check build summary support",async()=>{dBr()?e.call&&e.call!=="build"?L(`Build summary skipped for ${e.call} subrequest`):gt.isGHES?L("Build summary is not yet supported on GHES"):await r.buildx.versionSatisfies(">=0.23.0")?f.length==0?L("Build summary requires at least one build reference"):(L("Build summary supported!"),Sst()):L("Build summary requires Buildx >= 0.23.0"):L("Build summary disabled")}),u)throw u},async()=>{yst&&await ti("Generating build summary",async()=>{try{let t=pBr(),e;t&&(e=mBr());let i=await new cF().export({refs:gst});L(`Build records written to ${i.dockerbuildFilename} (${Xe.formatFileSize(i.dockerbuildSize)})`);let s;t&&(s=await fq.upload({filename:i.dockerbuildFilename,retentionDays:e})),await Eq.writeBuildSummary({exportRes:i,uploadRes:s,inputs:mst,bakeDefinition:Ast,driver:dst,endpoint:pst})}catch(t){st(t.message)}}),BH.length>0&&await ti(`Removing temp folder ${BH}`,async()=>{vst.rmSync(BH,{recursive:!0})})});async function fBr(t,e,r){let i=t.buildxBake.resolveRefs();if(i)return i;r||(r=(await t.builder.inspect()).name);let s=$t.refs({dir:$t.refsDir,builderName:r,since:e}),n=[];for(let o in s)Object.prototype.hasOwnProperty.call(s,o)&&n.push(o);return n}function hBr(){return process.env.DOCKER_BUILD_CHECKS_ANNOTATIONS?Xe.parseBool(process.env.DOCKER_BUILD_CHECKS_ANNOTATIONS):!0}function dBr(){return process.env.DOCKER_BUILD_SUMMARY?Xe.parseBool(process.env.DOCKER_BUILD_SUMMARY):!0}function pBr(){return process.env.DOCKER_BUILD_RECORD_UPLOAD?Xe.parseBool(process.env.DOCKER_BUILD_RECORD_UPLOAD):!0}function mBr(){let t=process.env.DOCKER_BUILD_RECORD_RETENTION_DAYS;if(t){let e=parseInt(t);if(isNaN(e))throw Error(`Invalid build record retention days: ${t}`);return e}}
|
||||
/*! Bundled license information:
|
||||
|
||||
undici/lib/web/fetch/body.js:
|
||||
|
||||
+4
-4
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"version": 3,
|
||||
"sources": ["../node_modules/tunnel/lib/tunnel.js", "../node_modules/tunnel/index.js", "../node_modules/undici/lib/core/symbols.js", "../node_modules/undici/lib/core/errors.js", "../node_modules/undici/lib/core/constants.js", "../node_modules/undici/lib/core/tree.js", "../node_modules/undici/lib/core/util.js", "../node_modules/undici/lib/core/diagnostics.js", "../node_modules/undici/lib/core/request.js", "../node_modules/undici/lib/dispatcher/dispatcher.js", "../node_modules/undici/lib/dispatcher/dispatcher-base.js", "../node_modules/undici/lib/util/timers.js", "../node_modules/undici/lib/core/connect.js", "../node_modules/undici/lib/llhttp/utils.js", "../node_modules/undici/lib/llhttp/constants.js", "../node_modules/undici/lib/llhttp/llhttp-wasm.js", "../node_modules/undici/lib/llhttp/llhttp_simd-wasm.js", "../node_modules/undici/lib/web/fetch/constants.js", "../node_modules/undici/lib/web/fetch/global.js", "../node_modules/undici/lib/web/fetch/data-url.js", "../node_modules/undici/lib/web/fetch/webidl.js", "../node_modules/undici/lib/web/fetch/util.js", "../node_modules/undici/lib/web/fetch/symbols.js", "../node_modules/undici/lib/web/fetch/file.js", "../node_modules/undici/lib/web/fetch/formdata.js", "../node_modules/undici/lib/web/fetch/formdata-parser.js", "../node_modules/undici/lib/web/fetch/body.js", "../node_modules/undici/lib/dispatcher/client-h1.js", "../node_modules/undici/lib/dispatcher/client-h2.js", "../node_modules/undici/lib/handler/redirect-handler.js", "../node_modules/undici/lib/interceptor/redirect-interceptor.js", "../node_modules/undici/lib/dispatcher/client.js", "../node_modules/undici/lib/dispatcher/fixed-queue.js", "../node_modules/undici/lib/dispatcher/pool-stats.js", "../node_modules/undici/lib/dispatcher/pool-base.js", "../node_modules/undici/lib/dispatcher/pool.js", "../node_modules/undici/lib/dispatcher/balanced-pool.js", "../node_modules/undici/lib/dispatcher/agent.js", "../node_modules/undici/lib/dispatcher/proxy-agent.js", "../node_modules/undici/lib/dispatcher/env-http-proxy-agent.js", "../node_modules/undici/lib/handler/retry-handler.js", "../node_modules/undici/lib/dispatcher/retry-agent.js", "../node_modules/undici/lib/api/readable.js", "../node_modules/undici/lib/api/util.js", "../node_modules/undici/lib/api/api-request.js", "../node_modules/undici/lib/api/abort-signal.js", "../node_modules/undici/lib/api/api-stream.js", "../node_modules/undici/lib/api/api-pipeline.js", "../node_modules/undici/lib/api/api-upgrade.js", "../node_modules/undici/lib/api/api-connect.js", "../node_modules/undici/lib/api/index.js", "../node_modules/undici/lib/mock/mock-errors.js", "../node_modules/undici/lib/mock/mock-symbols.js", "../node_modules/undici/lib/mock/mock-utils.js", "../node_modules/undici/lib/mock/mock-interceptor.js", "../node_modules/undici/lib/mock/mock-client.js", "../node_modules/undici/lib/mock/mock-pool.js", "../node_modules/undici/lib/mock/pluralizer.js", "../node_modules/undici/lib/mock/pending-interceptors-formatter.js", "../node_modules/undici/lib/mock/mock-agent.js", "../node_modules/undici/lib/global.js", "../node_modules/undici/lib/handler/decorator-handler.js", "../node_modules/undici/lib/interceptor/redirect.js", "../node_modules/undici/lib/interceptor/retry.js", "../node_modules/undici/lib/interceptor/dump.js", "../node_modules/undici/lib/interceptor/dns.js", "../node_modules/undici/lib/web/fetch/headers.js", "../node_modules/undici/lib/web/fetch/response.js", "../node_modules/undici/lib/web/fetch/dispatcher-weakref.js", "../node_modules/undici/lib/web/fetch/request.js", "../node_modules/undici/lib/web/fetch/index.js", "../node_modules/undici/lib/web/fileapi/symbols.js", "../node_modules/undici/lib/web/fileapi/progressevent.js", "../node_modules/undici/lib/web/fileapi/encoding.js", "../node_modules/undici/lib/web/fileapi/util.js", "../node_modules/undici/lib/web/fileapi/filereader.js", "../node_modules/undici/lib/web/cache/symbols.js", "../node_modules/undici/lib/web/cache/util.js", "../node_modules/undici/lib/web/cache/cache.js", "../node_modules/undici/lib/web/cache/cachestorage.js", "../node_modules/undici/lib/web/cookies/constants.js", "../node_modules/undici/lib/web/cookies/util.js", "../node_modules/undici/lib/web/cookies/parse.js", "../node_modules/undici/lib/web/cookies/index.js", "../node_modules/undici/lib/web/websocket/events.js", "../node_modules/undici/lib/web/websocket/constants.js", "../node_modules/undici/lib/web/websocket/symbols.js", "../node_modules/undici/lib/web/websocket/util.js", "../node_modules/undici/lib/web/websocket/frame.js", "../node_modules/undici/lib/web/websocket/connection.js", "../node_modules/undici/lib/web/websocket/permessage-deflate.js", "../node_modules/undici/lib/web/websocket/receiver.js", "../node_modules/undici/lib/web/websocket/sender.js", "../node_modules/undici/lib/web/websocket/websocket.js", "../node_modules/undici/lib/web/eventsource/util.js", "../node_modules/undici/lib/web/eventsource/eventsource-stream.js",Line truncated
|
||||
"sourcesContent": ["'use strict';\n\nvar net = require('net');\nvar tls = require('tls');\nvar http = require('http');\nvar https = require('https');\nvar events = require('events');\nvar assert = require('assert');\nvar util = require('util');\n\n\nexports.httpOverHttp = httpOverHttp;\nexports.httpsOverHttp = httpsOverHttp;\nexports.httpOverHttps = httpOverHttps;\nexports.httpsOverHttps = httpsOverHttps;\n\n\nfunction httpOverHttp(options) {\n var agent = new TunnelingAgent(options);\n agent.request = http.request;\n return agent;\n}\n\nfunction httpsOverHttp(options) {\n var agent = new TunnelingAgent(options);\n agent.request = http.request;\n agent.createSocket = createSecureSocket;\n agent.defaultPort = 443;\n return agent;\n}\n\nfunction httpOverHttps(options) {\n var agent = new TunnelingAgent(options);\n agent.request = https.request;\n return agent;\n}\n\nfunction httpsOverHttps(options) {\n var agent = new TunnelingAgent(options);\n agent.request = https.request;\n agent.createSocket = createSecureSocket;\n agent.defaultPort = 443;\n return agent;\n}\n\n\nfunction TunnelingAgent(options) {\n var self = this;\n self.options = options || {};\n self.proxyOptions = self.options.proxy || {};\n self.maxSockets = self.options.maxSockets || http.Agent.defaultMaxSockets;\n self.requests = [];\n self.sockets = [];\n\n self.on('free', function onFree(socket, host, port, localAddress) {\n var options = toOptions(host, port, localAddress);\n for (var i = 0, len = self.requests.length; i < len; ++i) {\n var pending = self.requests[i];\n if (pending.host === options.host && pending.port === options.port) {\n // Detect the request to connect same origin server,\n // reuse the connection.\n self.requests.splice(i, 1);\n pending.request.onSocket(socket);\n return;\n }\n }\n socket.destroy();\n self.removeSocket(socket);\n });\n}\nutil.inherits(TunnelingAgent, events.EventEmitter);\n\nTunnelingAgent.prototype.addRequest = function addRequest(req, host, port, localAddress) {\n var self = this;\n var options = mergeOptions({request: req}, self.options, toOptions(host, port, localAddress));\n\n if (self.sockets.length >= this.maxSockets) {\n // We are over limit so we'll add it to the queue.\n self.requests.push(options);\n return;\n }\n\n // If we are under maxSockets create a new one.\n self.createSocket(options, function(socket) {\n socket.on('free', onFree);\n socket.on('close', onCloseOrRemove);\n socket.on('agentRemove', onCloseOrRemove);\n req.onSocket(socket);\n\n function onFree() {\n self.emit('free', socket, options);\n }\n\n function onCloseOrRemove(err) {\n self.removeSocket(socket);\n socket.removeListener('free', onFree);\n socket.removeListener('close', onCloseOrRemove);\n socket.removeListener('agentRemove', onCloseOrRemove);\n }\n });\n};\n\nTunnelingAgent.prototype.createSocket = function createSocket(options, cb) {\n var self = this;\n var placeholder = {};\n self.sockets.push(placeholder);\n\n var connectOptions = mergeOptions({}, self.proxyOptions, {\n method: 'CONNECT',\n path: options.host + ':' + options.port,\n agent: false,\n headers: {\n host: options.host + ':' + options.port\n }\n });\n if (options.localAddress) {\n connectOptions.localAddress = options.localAddress;\n }\n if (connectOptions.proxyAuth) {\n connectOptions.headers = connectOptions.headers || {};\n connectOptions.headers['Proxy-Authorization'] = 'Basic ' +\n new Buffer(connectOptions.proxyAuth).toString('base64');\n }\n\n debug('making CONNECT request');\n var connectReq = self.request(connectOptions);\n connectReq.useChunkedEncodingByDefault = false; // for v0.6\n connectReq.once('response', onResponse); // for v0.6\n connectReq.once('upgrade', onUpgrade); // for v0.6\n connectReq.once('connect', onConnect); // for v0.7 or later\n connectReq.once('error', onError);\n connectReq.end();\n\n function onResponse(res) {\n // Very hacky. This is necessary to avoid http-parser leaks.\n res.upgrade = true;\n }\n\n function onUpgrade(res, socket, head) {\n // Hacky.\n process.nextTick(function() {\n onConnect(res, socket, head);\n });\n }\n\n function onConnect(res, socket, head) {\n connectReq.removeAllListeners();\n socket.removeAllListeners();\n\n if (res.statusCode !== 200) {\n debug('tunneling socket could not be established, statusCode=%d',\n res.statusCode);\n socket.destroy();\n var error = new Error('tunneling socket could not be established, ' +\n 'statusCode=' + res.statusCode);\n error.code = 'ECONNRESET';\n options.request.emit('error', error);\n self.removeSocket(placeholder);\n return;\n }\n if (head.length > 0) {\n debug('got illegal response body from proxy');\n socket.destroy();\n var error = new Error('Line truncated
|
||||
"mappings": "koBAAA,IAAAA,IAAAC,EAAAC,IAAA,cAEA,IAAIC,IAAM,QAAQ,KAAK,EACnBC,IAAM,QAAQ,KAAK,EACnBC,GAAO,QAAQ,MAAM,EACrBC,IAAQ,QAAQ,OAAO,EACvBC,IAAS,QAAQ,QAAQ,EACzBC,IAAS,QAAQ,QAAQ,EACzBC,IAAO,QAAQ,MAAM,EAGzBP,GAAQ,aAAeQ,IACvBR,GAAQ,cAAgBS,IACxBT,GAAQ,cAAgBU,IACxBV,GAAQ,eAAiBW,IAGzB,SAASH,IAAaI,EAAS,CAC7B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUV,GAAK,QACdU,CACT,CAEA,SAASJ,IAAcG,EAAS,CAC9B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUV,GAAK,QACrBU,EAAM,aAAeE,IACrBF,EAAM,YAAc,IACbA,CACT,CAEA,SAASH,IAAcE,EAAS,CAC9B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUT,IAAM,QACfS,CACT,CAEA,SAASF,IAAeC,EAAS,CAC/B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUT,IAAM,QACtBS,EAAM,aAAeE,IACrBF,EAAM,YAAc,IACbA,CACT,CAGA,SAASC,GAAeF,EAAS,CAC/B,IAAII,EAAO,KACXA,EAAK,QAAUJ,GAAW,CAAC,EAC3BI,EAAK,aAAeA,EAAK,QAAQ,OAAS,CAAC,EAC3CA,EAAK,WAAaA,EAAK,QAAQ,YAAcb,GAAK,MAAM,kBACxDa,EAAK,SAAW,CAAC,EACjBA,EAAK,QAAU,CAAC,EAEhBA,EAAK,GAAG,OAAQ,SAAgBC,EAAQC,EAAMC,EAAMC,EAAc,CAEhE,QADIR,EAAUS,IAAUH,EAAMC,EAAMC,CAAY,EACvCE,EAAI,EAAGC,EAAMP,EAAK,SAAS,OAAQM,EAAIC,EAAK,EAAED,EAAG,CACxD,IAAIE,EAAUR,EAAK,SAASM,CAAC,EAC7B,GAAIE,EAAQ,OAASZ,EAAQ,MAAQY,EAAQ,OAASZ,EAAQ,KAAM,CAGlEI,EAAK,SAAS,OAAOM,EAAG,CAAC,EACzBE,EAAQ,QAAQ,SAASP,CAAM,EAC/B,MACF,CACF,CACAA,EAAO,QAAQ,EACfD,EAAK,aAAaC,CAAM,CAC1B,CAAC,CACH,CACAV,IAAK,SAASO,GAAgBT,IAAO,YAAY,EAEjDS,GAAe,UAAU,WAAa,SAAoBW,EAAKP,EAAMC,EAAMC,EAAc,CACvF,IAAIJ,EAAO,KACPJ,EAAUc,GAAa,CAAC,QAASD,CAAG,EAAGT,EAAK,QAASK,IAAUH,EAAMC,EAAMC,CAAY,CAAC,EAE5F,GAAIJ,EAAK,QAAQ,QAAU,KAAK,WAAY,CAE1CA,EAAK,SAAS,KAAKJ,CAAO,EAC1B,MACF,CAGAI,EAAK,aAAaJ,EAAS,SAASK,EAAQ,CAC1CA,EAAO,GAAG,OAAQU,CAAM,EACxBV,EAAO,GAAG,QAASW,CAAe,EAClCX,EAAO,GAAG,cAAeW,CAAe,EACxCH,EAAI,SAASR,CAAM,EAEnB,SAASU,GAAS,CAChBX,EAAK,KAAK,OAAQC,EAAQL,CAAO,CACnC,CAEA,SAASgB,EAAgBC,EAAK,CAC5Bb,EAAK,aAAaC,CAAM,EACxBA,EAAO,eAAe,OAAQU,CAAM,EACpCV,EAAO,eAAe,QAASW,CAAe,EAC9CX,EAAO,eAAe,cAAeW,CAAe,CACtD,CACF,CAAC,CACH,EAEAd,GAAe,UAAU,aAAe,SAAsBF,EAASkB,EAAI,CACzE,IAAId,EAAO,KACPe,EAAc,CAAC,EACnBf,EAAK,QAAQ,KAAKe,CAAW,EAE7B,IAAIC,EAAiBN,GAAa,CAAC,EAAGV,EAAK,aAAc,CACvD,OAAQ,UACR,KAAMJ,EAAQ,KAAO,IAAMA,EAAQ,KACnC,MAAO,GACP,QAAS,CACP,KAAMA,EAAQ,KAAO,IAAMA,EAAQ,IACrC,CACF,CAAC,EACGA,EAAQ,eACVoB,EAAe,aAAepB,EAAQ,cAEpCoB,EAAe,YACjBA,EAAe,QAAUA,EAAe,SAAW,CAAC,EACpDA,EAAe,QAAQ,qBAAqB,EAAI,SAC5C,IAAI,OAAOA,EAAe,SAAS,EAAE,SAAS,QAAQ,GAG5DC,GAAM,wBAAwB,EAC9B,IAAIC,EAAalB,EAAK,QAAQgB,CAAc,EAC5CE,EAAW,4BAA8B,GACzCA,EAAW,KAAK,WAAYC,CAAU,EACtCD,EAAW,KAAK,UAAWE,CAAS,EACpCF,EAAW,KAAK,UAAWG,CAAS,EACpCH,EAAW,KAAK,QAASI,CAAO,EAChCJ,EAAW,IAAI,EAEf,SAASC,EAAWI,EAAK,CAEvBA,EAAI,QAAU,EAChB,CAEA,SAASH,EAAUG,EAAKtB,EAAQuB,EAAM,CAEpC,QAAQ,SAAS,UAAW,CAC1BH,EAAUE,EAAKtB,EAAQuB,CAAI,CAC7B,CAAC,CACH,CAEA,SAASH,EAAUE,EAAKtB,EAAQuB,EAAM,CAIpC,GAHAN,EAAW,mBAAmB,EAC9BjB,EAAO,mBAAmB,EAEtBsB,EAAI,aAAe,IAAK,CAC1BN,GAAM,2DACJM,EAAI,UAAU,EAChBtB,EAAO,QAAQ,EACf,IAAIwB,EAAQ,IAAI,MAAM,yDACJF,EAAI,UAAU,EAChCE,EAAM,KAAO,aACb7B,EAAQ,QAAQ,KAAK,QAAS6B,CAAK,EACnCzB,EAAK,aAAae,CAAW,EAC7B,MACF,CACA,GAAIS,EAAK,OAAS,EAAG,CACnBP,GAAM,sCAAsC,EAC5ChB,EAAO,QAAQ,EACf,IAAIwB,EAAQ,IAAI,MAAM,sCAAsC,EAC5DA,EAAM,KAAO,aACb7B,EAAQ,QAAQ,KAAK,QAAS6B,CAAK,EACnCzB,EAAK,aAAae,CAAW,EAC7B,MACF,CACA,OAAAE,GAAM,sCAAsC,EAC5CjB,EAAK,QAAQA,EAAK,QAAQ,QAAQe,CAAW,CAAC,EAAId,EAC3Ca,EAAGb,CAAM,CAClB,CAEA,SAASqB,EAAQI,EAAO,CACtBR,EAAW,mBAAmB,EAE9BD,GAAM;AAAA,EACAS,EAAM,QAASA,EAAM,KAAK,EAChC,IAAID,EAAQ,IAAI,MAAM,oDACWC,EAAM,OAAO,EAC9CD,EAAM,KAAO,aACb7B,EAAQ,QAAQ,KAAK,QAAS6B,CAAK,EACnCzB,EAAK,aAAae,CAAW,CAC/B,CACF,EAEAjB,GAAe,UAAU,aAAe,SAAsBG,EAAQ,CACpE,IAAI0B,EAAM,KAAK,QAAQ,QAAQ1B,CAAM,EACrC,GAAI0B,IAAQ,GAGZ,MAAK,QAAQ,OAAOA,EAAK,CAAC,EAE1B,IAAInB,EAAU,KAAK,SAAS,MAAM,EAC9BA,GAGF,KAAK,aAAaA,EAAS,SAASP,EAAQ,CAC1CO,EAAQ,QAAQ,SAASP,CAAM,CACjC,CAAC,EAEL,EAEA,SAASF,IAAmBH,EAASkB,EAAI,CACvC,IAAId,EAAO,KACXF,GAAe,UAAU,aAAa,KAAKE,EAAMJ,EAAS,SAASK,EAAQ,CACzE,IAAI2B,EAAahC,EAAQ,QAAQ,UAAU,MAAM,EAC7CiC,EAAanB,GAAa,CAAC,EAAGV,EAAK,QAAS,CAC9C,OAAQC,EACR,WAAY2B,EAAaA,EAAW,QAAQ,OAAQ,EAAE,EAAIhC,EAAQ,IACpE,CAAC,EAGGkC,EAAe5C,IAAI,QAAQ,EAAG2C,CAAU,EAC5C7B,EAAK,QAAQA,EAAK,QAAQ,QAAQC,CAAM,CAAC,EAAI6B,EAC7ChB,EAAGgB,CAAY,CACjB,CAAC,CACH,CAGA,SAASzB,IAAUH,EAAMC,EAAMC,EAAc,CAC3C,OAAI,OAAOF,GAAS,SACX,CACL,KAAMA,EACN,KAAMC,EACN,aAAcC,CAChB,EAEKF,CACT,CAEA,SAASQ,GAAaqB,EAAQ,CAC5B,QAASzB,EAAI,EAAGC,EAAM,UAAU,OAAQD,EAAIC,EAAK,EAAED,EAAG,CACpD,IAAI0B,EAAY,UAAU1B,CAAC,EAC3B,GAAI,OAAO0B,GAAc,SAEvB,QADIC,EAAO,OAAO,KAAKD,CAAS,EACvBE,EAAI,EAAGC,EAASF,EAAK,OAAQC,EAAIC,EAAQ,EAAED,EAAG,CACrD,IAAIE,EAAIH,EAAKC,CAAC,EACVF,EAAUI,CAAC,IAAM,SACnBL,EAAOK,CAAC,EAAIJ,EAAUI,CAAC,EAE3B,CAEJ,CACA,OAAOL,CACT,CAGA,IAAId,GACA,QAAQ,IAAI,YAAc,aAAa,KAAK,QAAQ,IAAI,UAAU,EACpEA,GAAQ,UAAW,CACjB,IAAIoB,EAAO,MAAM,UAAU,MAAM,KAAK,SAAS,EAC3C,OAAOA,EAAK,CAAC,GAAM,SACrBA,EAAK,CAAC,EAAI,WAAaA,EAAK,CAAC,EAE7BA,EAAK,QAAQ,SAAS,EAExB,QAAQ,MAAM,MAAM,QAASA,CAAI,CACnC,EAEApB,GAAQ,UAAW,CAAC,EAEtBjC,GAAQ,MAAQiC,KCvQhB,IAAAqB,GAAAC,EAAA,CAAAC,IAAAC,MAAA,CAAAA,IAAO,QAAU,QCAjB,IAAAC,GAAAC,EAAA,CAAAC,IAAAC,MAAA,CAAAA,IAAO,QAAU,CACf,OAAQ,OAAO,OAAO,EACtB,SAAU,OAAO,SAAS,EAC1B,UAAW,OAAO,UAAU,EAC5B,KAAM,OAAO,KAAK,EAClB,SAAULine truncated
|
||||
"names": ["require_tunnel", "__commonJSMin", "exports", "net", "tls", "http", "https", "events", "assert", "util", "httpOverHttp", "httpsOverHttp", "httpOverHttps", "httpsOverHttps", "options", "agent", "TunnelingAgent", "createSecureSocket", "self", "socket", "host", "port", "localAddress", "toOptions", "i", "len", "pending", "req", "mergeOptions", "onFree", "onCloseOrRemove", "err", "cb", "placeholder", "connectOptions", "debug", "connectReq", "onResponse", "onUpgrade", "onConnect", "onError", "res", "head", "error", "cause", "pos", "hostHeader", "tlsOptions", "secureSocket", "target", "overrides", "keys", "j", "keyLen", "k", "args", "require_tunnel", "__commonJSMin", "exports", "module", "require_symbols", "__commonJSMin", "exports", "module", "require_errors", "__commonJSMin", "exports", "module", "kUndiciError", "UndiciError", "message", "instance", "kConnectTimeoutError", "ConnectTimeoutError", "kHeadersTimeoutError", "HeadersTimeoutError", "kHeadersOverflowError", "HeadersOverflowError", "kBodyTimeoutError", "BodyTimeoutError", "kResponseStatusCodeError", "ResponseStatusCodeError", "statusCode", "headers", "body", "kInvalidArgumentError", "InvalidArgumentError", "kInvalidReturnValueError", "InvalidReturnValueError", "kAbortError", "AbortError", "kRequestAbortedError", "RequestAbortedError", "kInformationalError", "InformationalError", "kRequestContentLengthMismatchError", "RequestContentLengthMismatchError", "kResponseContentLengthMismatchError", "ResponseContentLengthMismatchError", "kClientDestroyedError", "ClientDestroyedError", "kClientClosedError", "ClientClosedError", "kSocketError", "SocketError", "socket", "kNotSupportedError", "NotSupportedError", "kBalancedPoolMissingUpstreamError", "BalancedPoolMissingUpstreamError", "kHTTPParserError", "HTTPParserError", "code", "data", "kResponseExceededMaxSizeError", "ResponseExceededMaxSizeError", "kRequestRetryError", "RequestRetryError", "kResponseError", "ResponseError", "kSecureProxyConnectionError", "SecureProxyConnectionError", "cause", "options", "kMessageSizeExceededError", "MessageSizeExceededError", "require_constants", "__commonJSMin", "exports", "module", "headerNameLowerCasedRecord", "wellknownHeaderNames", "i", "key", "lowerCasedKey", "require_tree", "__commonJSMin", "exports", "module", "wellknownHeaderNames", "headerNameLowerCasedRecord", "TstNode", "_TstNode", "key", "value", "index", "length", "node", "code", "keylength", "TernarySearchTree", "tree", "i", "require_util", "__commonJSMin", "exports", "module", "assert", "kDestroyed", "kBodyUsed", "kListeners", "kBody", "IncomingMessage", "stream", "net", "Blob", "nodeUtil", "stringify", "EE", "InvalidArgumentError", "headerNameLowerCasedRecord", "tree", "nodeMajor", "nodeMinor", "v", "BodyAsyncIterable", "body", "wrapRequestBody", "isStream", "bodyLength", "isIterable", "nop", "obj", "isBlobLike", "object", "sTag", "buildURL", "url", "queryParams", "stringified", "isValidPort", "port", "value", "isHttpOrHttpsPrefixed", "parseURL", "origin", "path", "parseOrigin", "getHostname", "host", "idx", "getServerName", "servername", "deepClone", "isAsyncIterable", "state", "isBuffer", "isDestroyed", "destroy", "err", "KEEPALIVE_TIMEOUT_EXPR", "parseKeepAliveTimeout", "val", "m", "headerNameToString", "bufferToLowerCasedHeaderName", "parseHeaders", "headers", "i", "key", "headersValue", "x", "parseRawHeaders", "len", "ret", "hasContentLength", "contentDispositionIdx", "kLen", "n", "buffer", "validateHandler", "handler", "method", "upgrade", "isDisturbed", "isErrored", "isReadable", "getSocketInfo", "socket", "ReadableStreamFrom", "iterable", "iterator", "controller", "done", "buf", "reason", "isFormDataLike", "addAbortListener", "signal", "listener", "hasToWellFormed", "hasIsWellFormed", "toUSVString", "isUSVString", "isTokenCharCode", "c", "isValidHTTPToken", "characters", "headerCharRegex", "isValidHeaderValue", "parseRangeHeader", "range", "addListener", "name", "removeAllListeners", "errorRequest", "client", "request", "kEnumerableProperty", "normalizedMethodRecordsBase", "normalizedMethodRecords", "require_diagnostics", "__commonJSMin", "exports", "module", "diagnosticsChannel", "util", "undiciDebugLog", "fetchDebuglog", "websocketDebuglog", "isClientSet", "channels", "debuglog", "evt", "version", "protocol", "port", "host", "error", "method", "path", "origin", "statusCode", "address", "websocket", "code", "reason", "err", "require_request", "__commonJSMin", "exports", "module", "InvalidArgumentError", "NotSupportedError", "assert", "isValidHTTPToken", "isValidHeaderValue", "isStream", "destroy", "isBuffer", "isFormDataLike", "isIterable", "isBlobLike", "buildURL", "validateHandler", "getServerName", "normalizedMethodRecords", "channels", "headerNameLowerCasedRecord", "invalidPathRegex", "kHandler", "Request", "origin", "path", "method", "body", "headers", "query", "idempotent", "blocking", "upgrade", "headersTimeout", "bodyTimeout", "reset", "throwOnError", "expectContinue", "servername",Line truncated
|
||||
"sources": ["../node_modules/tunnel/lib/tunnel.js", "../node_modules/tunnel/index.js", "../node_modules/undici/lib/core/symbols.js", "../node_modules/undici/lib/core/errors.js", "../node_modules/undici/lib/core/constants.js", "../node_modules/undici/lib/core/tree.js", "../node_modules/undici/lib/core/util.js", "../node_modules/undici/lib/core/diagnostics.js", "../node_modules/undici/lib/core/request.js", "../node_modules/undici/lib/dispatcher/dispatcher.js", "../node_modules/undici/lib/dispatcher/dispatcher-base.js", "../node_modules/undici/lib/util/timers.js", "../node_modules/undici/lib/core/connect.js", "../node_modules/undici/lib/llhttp/utils.js", "../node_modules/undici/lib/llhttp/constants.js", "../node_modules/undici/lib/llhttp/llhttp-wasm.js", "../node_modules/undici/lib/llhttp/llhttp_simd-wasm.js", "../node_modules/undici/lib/web/fetch/constants.js", "../node_modules/undici/lib/web/fetch/global.js", "../node_modules/undici/lib/web/fetch/data-url.js", "../node_modules/undici/lib/web/fetch/webidl.js", "../node_modules/undici/lib/web/fetch/util.js", "../node_modules/undici/lib/web/fetch/symbols.js", "../node_modules/undici/lib/web/fetch/file.js", "../node_modules/undici/lib/web/fetch/formdata.js", "../node_modules/undici/lib/web/fetch/formdata-parser.js", "../node_modules/undici/lib/web/fetch/body.js", "../node_modules/undici/lib/dispatcher/client-h1.js", "../node_modules/undici/lib/dispatcher/client-h2.js", "../node_modules/undici/lib/handler/redirect-handler.js", "../node_modules/undici/lib/interceptor/redirect-interceptor.js", "../node_modules/undici/lib/dispatcher/client.js", "../node_modules/undici/lib/dispatcher/fixed-queue.js", "../node_modules/undici/lib/dispatcher/pool-stats.js", "../node_modules/undici/lib/dispatcher/pool-base.js", "../node_modules/undici/lib/dispatcher/pool.js", "../node_modules/undici/lib/dispatcher/balanced-pool.js", "../node_modules/undici/lib/dispatcher/agent.js", "../node_modules/undici/lib/dispatcher/proxy-agent.js", "../node_modules/undici/lib/dispatcher/env-http-proxy-agent.js", "../node_modules/undici/lib/handler/retry-handler.js", "../node_modules/undici/lib/dispatcher/retry-agent.js", "../node_modules/undici/lib/api/readable.js", "../node_modules/undici/lib/api/util.js", "../node_modules/undici/lib/api/api-request.js", "../node_modules/undici/lib/api/abort-signal.js", "../node_modules/undici/lib/api/api-stream.js", "../node_modules/undici/lib/api/api-pipeline.js", "../node_modules/undici/lib/api/api-upgrade.js", "../node_modules/undici/lib/api/api-connect.js", "../node_modules/undici/lib/api/index.js", "../node_modules/undici/lib/mock/mock-errors.js", "../node_modules/undici/lib/mock/mock-symbols.js", "../node_modules/undici/lib/mock/mock-utils.js", "../node_modules/undici/lib/mock/mock-interceptor.js", "../node_modules/undici/lib/mock/mock-client.js", "../node_modules/undici/lib/mock/mock-pool.js", "../node_modules/undici/lib/mock/pluralizer.js", "../node_modules/undici/lib/mock/pending-interceptors-formatter.js", "../node_modules/undici/lib/mock/mock-agent.js", "../node_modules/undici/lib/global.js", "../node_modules/undici/lib/handler/decorator-handler.js", "../node_modules/undici/lib/interceptor/redirect.js", "../node_modules/undici/lib/interceptor/retry.js", "../node_modules/undici/lib/interceptor/dump.js", "../node_modules/undici/lib/interceptor/dns.js", "../node_modules/undici/lib/web/fetch/headers.js", "../node_modules/undici/lib/web/fetch/response.js", "../node_modules/undici/lib/web/fetch/dispatcher-weakref.js", "../node_modules/undici/lib/web/fetch/request.js", "../node_modules/undici/lib/web/fetch/index.js", "../node_modules/undici/lib/web/fileapi/symbols.js", "../node_modules/undici/lib/web/fileapi/progressevent.js", "../node_modules/undici/lib/web/fileapi/encoding.js", "../node_modules/undici/lib/web/fileapi/util.js", "../node_modules/undici/lib/web/fileapi/filereader.js", "../node_modules/undici/lib/web/cache/symbols.js", "../node_modules/undici/lib/web/cache/util.js", "../node_modules/undici/lib/web/cache/cache.js", "../node_modules/undici/lib/web/cache/cachestorage.js", "../node_modules/undici/lib/web/cookies/constants.js", "../node_modules/undici/lib/web/cookies/util.js", "../node_modules/undici/lib/web/cookies/parse.js", "../node_modules/undici/lib/web/cookies/index.js", "../node_modules/undici/lib/web/websocket/events.js", "../node_modules/undici/lib/web/websocket/constants.js", "../node_modules/undici/lib/web/websocket/symbols.js", "../node_modules/undici/lib/web/websocket/util.js", "../node_modules/undici/lib/web/websocket/frame.js", "../node_modules/undici/lib/web/websocket/connection.js", "../node_modules/undici/lib/web/websocket/permessage-deflate.js", "../node_modules/undici/lib/web/websocket/receiver.js", "../node_modules/undici/lib/web/websocket/sender.js", "../node_modules/undici/lib/web/websocket/websocket.js", "../node_modules/undici/lib/web/eventsource/util.js", "../node_modules/undici/lib/web/eventsource/eventsource-stream.js",Line truncated
|
||||
"sourcesContent": ["'use strict';\n\nvar net = require('net');\nvar tls = require('tls');\nvar http = require('http');\nvar https = require('https');\nvar events = require('events');\nvar assert = require('assert');\nvar util = require('util');\n\n\nexports.httpOverHttp = httpOverHttp;\nexports.httpsOverHttp = httpsOverHttp;\nexports.httpOverHttps = httpOverHttps;\nexports.httpsOverHttps = httpsOverHttps;\n\n\nfunction httpOverHttp(options) {\n var agent = new TunnelingAgent(options);\n agent.request = http.request;\n return agent;\n}\n\nfunction httpsOverHttp(options) {\n var agent = new TunnelingAgent(options);\n agent.request = http.request;\n agent.createSocket = createSecureSocket;\n agent.defaultPort = 443;\n return agent;\n}\n\nfunction httpOverHttps(options) {\n var agent = new TunnelingAgent(options);\n agent.request = https.request;\n return agent;\n}\n\nfunction httpsOverHttps(options) {\n var agent = new TunnelingAgent(options);\n agent.request = https.request;\n agent.createSocket = createSecureSocket;\n agent.defaultPort = 443;\n return agent;\n}\n\n\nfunction TunnelingAgent(options) {\n var self = this;\n self.options = options || {};\n self.proxyOptions = self.options.proxy || {};\n self.maxSockets = self.options.maxSockets || http.Agent.defaultMaxSockets;\n self.requests = [];\n self.sockets = [];\n\n self.on('free', function onFree(socket, host, port, localAddress) {\n var options = toOptions(host, port, localAddress);\n for (var i = 0, len = self.requests.length; i < len; ++i) {\n var pending = self.requests[i];\n if (pending.host === options.host && pending.port === options.port) {\n // Detect the request to connect same origin server,\n // reuse the connection.\n self.requests.splice(i, 1);\n pending.request.onSocket(socket);\n return;\n }\n }\n socket.destroy();\n self.removeSocket(socket);\n });\n}\nutil.inherits(TunnelingAgent, events.EventEmitter);\n\nTunnelingAgent.prototype.addRequest = function addRequest(req, host, port, localAddress) {\n var self = this;\n var options = mergeOptions({request: req}, self.options, toOptions(host, port, localAddress));\n\n if (self.sockets.length >= this.maxSockets) {\n // We are over limit so we'll add it to the queue.\n self.requests.push(options);\n return;\n }\n\n // If we are under maxSockets create a new one.\n self.createSocket(options, function(socket) {\n socket.on('free', onFree);\n socket.on('close', onCloseOrRemove);\n socket.on('agentRemove', onCloseOrRemove);\n req.onSocket(socket);\n\n function onFree() {\n self.emit('free', socket, options);\n }\n\n function onCloseOrRemove(err) {\n self.removeSocket(socket);\n socket.removeListener('free', onFree);\n socket.removeListener('close', onCloseOrRemove);\n socket.removeListener('agentRemove', onCloseOrRemove);\n }\n });\n};\n\nTunnelingAgent.prototype.createSocket = function createSocket(options, cb) {\n var self = this;\n var placeholder = {};\n self.sockets.push(placeholder);\n\n var connectOptions = mergeOptions({}, self.proxyOptions, {\n method: 'CONNECT',\n path: options.host + ':' + options.port,\n agent: false,\n headers: {\n host: options.host + ':' + options.port\n }\n });\n if (options.localAddress) {\n connectOptions.localAddress = options.localAddress;\n }\n if (connectOptions.proxyAuth) {\n connectOptions.headers = connectOptions.headers || {};\n connectOptions.headers['Proxy-Authorization'] = 'Basic ' +\n new Buffer(connectOptions.proxyAuth).toString('base64');\n }\n\n debug('making CONNECT request');\n var connectReq = self.request(connectOptions);\n connectReq.useChunkedEncodingByDefault = false; // for v0.6\n connectReq.once('response', onResponse); // for v0.6\n connectReq.once('upgrade', onUpgrade); // for v0.6\n connectReq.once('connect', onConnect); // for v0.7 or later\n connectReq.once('error', onError);\n connectReq.end();\n\n function onResponse(res) {\n // Very hacky. This is necessary to avoid http-parser leaks.\n res.upgrade = true;\n }\n\n function onUpgrade(res, socket, head) {\n // Hacky.\n process.nextTick(function() {\n onConnect(res, socket, head);\n });\n }\n\n function onConnect(res, socket, head) {\n connectReq.removeAllListeners();\n socket.removeAllListeners();\n\n if (res.statusCode !== 200) {\n debug('tunneling socket could not be established, statusCode=%d',\n res.statusCode);\n socket.destroy();\n var error = new Error('tunneling socket could not be established, ' +\n 'statusCode=' + res.statusCode);\n error.code = 'ECONNRESET';\n options.request.emit('error', error);\n self.removeSocket(placeholder);\n return;\n }\n if (head.length > 0) {\n debug('got illegal response body from proxy');\n socket.destroy();\n var error = new Error('Line truncated
|
||||
"mappings": "koBAAA,IAAAA,IAAAC,EAAAC,IAAA,cAEA,IAAIC,IAAM,QAAQ,KAAK,EACnBC,IAAM,QAAQ,KAAK,EACnBC,GAAO,QAAQ,MAAM,EACrBC,IAAQ,QAAQ,OAAO,EACvBC,IAAS,QAAQ,QAAQ,EACzBC,IAAS,QAAQ,QAAQ,EACzBC,IAAO,QAAQ,MAAM,EAGzBP,GAAQ,aAAeQ,IACvBR,GAAQ,cAAgBS,IACxBT,GAAQ,cAAgBU,IACxBV,GAAQ,eAAiBW,IAGzB,SAASH,IAAaI,EAAS,CAC7B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUV,GAAK,QACdU,CACT,CAEA,SAASJ,IAAcG,EAAS,CAC9B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUV,GAAK,QACrBU,EAAM,aAAeE,IACrBF,EAAM,YAAc,IACbA,CACT,CAEA,SAASH,IAAcE,EAAS,CAC9B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUT,IAAM,QACfS,CACT,CAEA,SAASF,IAAeC,EAAS,CAC/B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUT,IAAM,QACtBS,EAAM,aAAeE,IACrBF,EAAM,YAAc,IACbA,CACT,CAGA,SAASC,GAAeF,EAAS,CAC/B,IAAII,EAAO,KACXA,EAAK,QAAUJ,GAAW,CAAC,EAC3BI,EAAK,aAAeA,EAAK,QAAQ,OAAS,CAAC,EAC3CA,EAAK,WAAaA,EAAK,QAAQ,YAAcb,GAAK,MAAM,kBACxDa,EAAK,SAAW,CAAC,EACjBA,EAAK,QAAU,CAAC,EAEhBA,EAAK,GAAG,OAAQ,SAAgBC,EAAQC,EAAMC,EAAMC,EAAc,CAEhE,QADIR,EAAUS,IAAUH,EAAMC,EAAMC,CAAY,EACvCE,EAAI,EAAGC,EAAMP,EAAK,SAAS,OAAQM,EAAIC,EAAK,EAAED,EAAG,CACxD,IAAIE,EAAUR,EAAK,SAASM,CAAC,EAC7B,GAAIE,EAAQ,OAASZ,EAAQ,MAAQY,EAAQ,OAASZ,EAAQ,KAAM,CAGlEI,EAAK,SAAS,OAAOM,EAAG,CAAC,EACzBE,EAAQ,QAAQ,SAASP,CAAM,EAC/B,MACF,CACF,CACAA,EAAO,QAAQ,EACfD,EAAK,aAAaC,CAAM,CAC1B,CAAC,CACH,CACAV,IAAK,SAASO,GAAgBT,IAAO,YAAY,EAEjDS,GAAe,UAAU,WAAa,SAAoBW,EAAKP,EAAMC,EAAMC,EAAc,CACvF,IAAIJ,EAAO,KACPJ,EAAUc,GAAa,CAAC,QAASD,CAAG,EAAGT,EAAK,QAASK,IAAUH,EAAMC,EAAMC,CAAY,CAAC,EAE5F,GAAIJ,EAAK,QAAQ,QAAU,KAAK,WAAY,CAE1CA,EAAK,SAAS,KAAKJ,CAAO,EAC1B,MACF,CAGAI,EAAK,aAAaJ,EAAS,SAASK,EAAQ,CAC1CA,EAAO,GAAG,OAAQU,CAAM,EACxBV,EAAO,GAAG,QAASW,CAAe,EAClCX,EAAO,GAAG,cAAeW,CAAe,EACxCH,EAAI,SAASR,CAAM,EAEnB,SAASU,GAAS,CAChBX,EAAK,KAAK,OAAQC,EAAQL,CAAO,CACnC,CAEA,SAASgB,EAAgBC,EAAK,CAC5Bb,EAAK,aAAaC,CAAM,EACxBA,EAAO,eAAe,OAAQU,CAAM,EACpCV,EAAO,eAAe,QAASW,CAAe,EAC9CX,EAAO,eAAe,cAAeW,CAAe,CACtD,CACF,CAAC,CACH,EAEAd,GAAe,UAAU,aAAe,SAAsBF,EAASkB,EAAI,CACzE,IAAId,EAAO,KACPe,EAAc,CAAC,EACnBf,EAAK,QAAQ,KAAKe,CAAW,EAE7B,IAAIC,EAAiBN,GAAa,CAAC,EAAGV,EAAK,aAAc,CACvD,OAAQ,UACR,KAAMJ,EAAQ,KAAO,IAAMA,EAAQ,KACnC,MAAO,GACP,QAAS,CACP,KAAMA,EAAQ,KAAO,IAAMA,EAAQ,IACrC,CACF,CAAC,EACGA,EAAQ,eACVoB,EAAe,aAAepB,EAAQ,cAEpCoB,EAAe,YACjBA,EAAe,QAAUA,EAAe,SAAW,CAAC,EACpDA,EAAe,QAAQ,qBAAqB,EAAI,SAC5C,IAAI,OAAOA,EAAe,SAAS,EAAE,SAAS,QAAQ,GAG5DC,GAAM,wBAAwB,EAC9B,IAAIC,EAAalB,EAAK,QAAQgB,CAAc,EAC5CE,EAAW,4BAA8B,GACzCA,EAAW,KAAK,WAAYC,CAAU,EACtCD,EAAW,KAAK,UAAWE,CAAS,EACpCF,EAAW,KAAK,UAAWG,CAAS,EACpCH,EAAW,KAAK,QAASI,CAAO,EAChCJ,EAAW,IAAI,EAEf,SAASC,EAAWI,EAAK,CAEvBA,EAAI,QAAU,EAChB,CAEA,SAASH,EAAUG,EAAKtB,EAAQuB,EAAM,CAEpC,QAAQ,SAAS,UAAW,CAC1BH,EAAUE,EAAKtB,EAAQuB,CAAI,CAC7B,CAAC,CACH,CAEA,SAASH,EAAUE,EAAKtB,EAAQuB,EAAM,CAIpC,GAHAN,EAAW,mBAAmB,EAC9BjB,EAAO,mBAAmB,EAEtBsB,EAAI,aAAe,IAAK,CAC1BN,GAAM,2DACJM,EAAI,UAAU,EAChBtB,EAAO,QAAQ,EACf,IAAIwB,EAAQ,IAAI,MAAM,yDACJF,EAAI,UAAU,EAChCE,EAAM,KAAO,aACb7B,EAAQ,QAAQ,KAAK,QAAS6B,CAAK,EACnCzB,EAAK,aAAae,CAAW,EAC7B,MACF,CACA,GAAIS,EAAK,OAAS,EAAG,CACnBP,GAAM,sCAAsC,EAC5ChB,EAAO,QAAQ,EACf,IAAIwB,EAAQ,IAAI,MAAM,sCAAsC,EAC5DA,EAAM,KAAO,aACb7B,EAAQ,QAAQ,KAAK,QAAS6B,CAAK,EACnCzB,EAAK,aAAae,CAAW,EAC7B,MACF,CACA,OAAAE,GAAM,sCAAsC,EAC5CjB,EAAK,QAAQA,EAAK,QAAQ,QAAQe,CAAW,CAAC,EAAId,EAC3Ca,EAAGb,CAAM,CAClB,CAEA,SAASqB,EAAQI,EAAO,CACtBR,EAAW,mBAAmB,EAE9BD,GAAM;AAAA,EACAS,EAAM,QAASA,EAAM,KAAK,EAChC,IAAID,EAAQ,IAAI,MAAM,oDACWC,EAAM,OAAO,EAC9CD,EAAM,KAAO,aACb7B,EAAQ,QAAQ,KAAK,QAAS6B,CAAK,EACnCzB,EAAK,aAAae,CAAW,CAC/B,CACF,EAEAjB,GAAe,UAAU,aAAe,SAAsBG,EAAQ,CACpE,IAAI0B,EAAM,KAAK,QAAQ,QAAQ1B,CAAM,EACrC,GAAI0B,IAAQ,GAGZ,MAAK,QAAQ,OAAOA,EAAK,CAAC,EAE1B,IAAInB,EAAU,KAAK,SAAS,MAAM,EAC9BA,GAGF,KAAK,aAAaA,EAAS,SAASP,EAAQ,CAC1CO,EAAQ,QAAQ,SAASP,CAAM,CACjC,CAAC,EAEL,EAEA,SAASF,IAAmBH,EAASkB,EAAI,CACvC,IAAId,EAAO,KACXF,GAAe,UAAU,aAAa,KAAKE,EAAMJ,EAAS,SAASK,EAAQ,CACzE,IAAI2B,EAAahC,EAAQ,QAAQ,UAAU,MAAM,EAC7CiC,EAAanB,GAAa,CAAC,EAAGV,EAAK,QAAS,CAC9C,OAAQC,EACR,WAAY2B,EAAaA,EAAW,QAAQ,OAAQ,EAAE,EAAIhC,EAAQ,IACpE,CAAC,EAGGkC,EAAe5C,IAAI,QAAQ,EAAG2C,CAAU,EAC5C7B,EAAK,QAAQA,EAAK,QAAQ,QAAQC,CAAM,CAAC,EAAI6B,EAC7ChB,EAAGgB,CAAY,CACjB,CAAC,CACH,CAGA,SAASzB,IAAUH,EAAMC,EAAMC,EAAc,CAC3C,OAAI,OAAOF,GAAS,SACX,CACL,KAAMA,EACN,KAAMC,EACN,aAAcC,CAChB,EAEKF,CACT,CAEA,SAASQ,GAAaqB,EAAQ,CAC5B,QAASzB,EAAI,EAAGC,EAAM,UAAU,OAAQD,EAAIC,EAAK,EAAED,EAAG,CACpD,IAAI0B,EAAY,UAAU1B,CAAC,EAC3B,GAAI,OAAO0B,GAAc,SAEvB,QADIC,EAAO,OAAO,KAAKD,CAAS,EACvBE,EAAI,EAAGC,EAASF,EAAK,OAAQC,EAAIC,EAAQ,EAAED,EAAG,CACrD,IAAIE,EAAIH,EAAKC,CAAC,EACVF,EAAUI,CAAC,IAAM,SACnBL,EAAOK,CAAC,EAAIJ,EAAUI,CAAC,EAE3B,CAEJ,CACA,OAAOL,CACT,CAGA,IAAId,GACA,QAAQ,IAAI,YAAc,aAAa,KAAK,QAAQ,IAAI,UAAU,EACpEA,GAAQ,UAAW,CACjB,IAAIoB,EAAO,MAAM,UAAU,MAAM,KAAK,SAAS,EAC3C,OAAOA,EAAK,CAAC,GAAM,SACrBA,EAAK,CAAC,EAAI,WAAaA,EAAK,CAAC,EAE7BA,EAAK,QAAQ,SAAS,EAExB,QAAQ,MAAM,MAAM,QAASA,CAAI,CACnC,EAEApB,GAAQ,UAAW,CAAC,EAEtBjC,GAAQ,MAAQiC,KCvQhB,IAAAqB,GAAAC,EAAA,CAAAC,IAAAC,MAAA,CAAAA,IAAO,QAAU,QCAjB,IAAAC,GAAAC,EAAA,CAAAC,IAAAC,MAAA,CAAAA,IAAO,QAAU,CACf,OAAQ,OAAO,OAAO,EACtB,SAAU,OAAO,SAAS,EAC1B,UAAW,OAAO,UAAU,EAC5B,KAAM,OAAO,KAAK,EAClB,SAAULine truncated
|
||||
"names": ["require_tunnel", "__commonJSMin", "exports", "net", "tls", "http", "https", "events", "assert", "util", "httpOverHttp", "httpsOverHttp", "httpOverHttps", "httpsOverHttps", "options", "agent", "TunnelingAgent", "createSecureSocket", "self", "socket", "host", "port", "localAddress", "toOptions", "i", "len", "pending", "req", "mergeOptions", "onFree", "onCloseOrRemove", "err", "cb", "placeholder", "connectOptions", "debug", "connectReq", "onResponse", "onUpgrade", "onConnect", "onError", "res", "head", "error", "cause", "pos", "hostHeader", "tlsOptions", "secureSocket", "target", "overrides", "keys", "j", "keyLen", "k", "args", "require_tunnel", "__commonJSMin", "exports", "module", "require_symbols", "__commonJSMin", "exports", "module", "require_errors", "__commonJSMin", "exports", "module", "kUndiciError", "UndiciError", "message", "instance", "kConnectTimeoutError", "ConnectTimeoutError", "kHeadersTimeoutError", "HeadersTimeoutError", "kHeadersOverflowError", "HeadersOverflowError", "kBodyTimeoutError", "BodyTimeoutError", "kResponseStatusCodeError", "ResponseStatusCodeError", "statusCode", "headers", "body", "kInvalidArgumentError", "InvalidArgumentError", "kInvalidReturnValueError", "InvalidReturnValueError", "kAbortError", "AbortError", "kRequestAbortedError", "RequestAbortedError", "kInformationalError", "InformationalError", "kRequestContentLengthMismatchError", "RequestContentLengthMismatchError", "kResponseContentLengthMismatchError", "ResponseContentLengthMismatchError", "kClientDestroyedError", "ClientDestroyedError", "kClientClosedError", "ClientClosedError", "kSocketError", "SocketError", "socket", "kNotSupportedError", "NotSupportedError", "kBalancedPoolMissingUpstreamError", "BalancedPoolMissingUpstreamError", "kHTTPParserError", "HTTPParserError", "code", "data", "kResponseExceededMaxSizeError", "ResponseExceededMaxSizeError", "kRequestRetryError", "RequestRetryError", "kResponseError", "ResponseError", "kSecureProxyConnectionError", "SecureProxyConnectionError", "cause", "options", "kMessageSizeExceededError", "MessageSizeExceededError", "require_constants", "__commonJSMin", "exports", "module", "headerNameLowerCasedRecord", "wellknownHeaderNames", "i", "key", "lowerCasedKey", "require_tree", "__commonJSMin", "exports", "module", "wellknownHeaderNames", "headerNameLowerCasedRecord", "TstNode", "_TstNode", "key", "value", "index", "length", "node", "code", "keylength", "TernarySearchTree", "tree", "i", "require_util", "__commonJSMin", "exports", "module", "assert", "kDestroyed", "kBodyUsed", "kListeners", "kBody", "IncomingMessage", "stream", "net", "Blob", "nodeUtil", "stringify", "EE", "InvalidArgumentError", "headerNameLowerCasedRecord", "tree", "nodeMajor", "nodeMinor", "v", "BodyAsyncIterable", "body", "wrapRequestBody", "isStream", "bodyLength", "isIterable", "nop", "obj", "isBlobLike", "object", "sTag", "buildURL", "url", "queryParams", "stringified", "isValidPort", "port", "value", "isHttpOrHttpsPrefixed", "parseURL", "origin", "path", "parseOrigin", "getHostname", "host", "idx", "getServerName", "servername", "deepClone", "isAsyncIterable", "state", "isBuffer", "isDestroyed", "destroy", "err", "KEEPALIVE_TIMEOUT_EXPR", "parseKeepAliveTimeout", "val", "m", "headerNameToString", "bufferToLowerCasedHeaderName", "parseHeaders", "headers", "i", "key", "headersValue", "x", "parseRawHeaders", "len", "ret", "hasContentLength", "contentDispositionIdx", "kLen", "n", "buffer", "validateHandler", "handler", "method", "upgrade", "isDisturbed", "isErrored", "isReadable", "getSocketInfo", "socket", "ReadableStreamFrom", "iterable", "iterator", "controller", "done", "buf", "reason", "isFormDataLike", "addAbortListener", "signal", "listener", "hasToWellFormed", "hasIsWellFormed", "toUSVString", "isUSVString", "isTokenCharCode", "c", "isValidHTTPToken", "characters", "headerCharRegex", "isValidHeaderValue", "parseRangeHeader", "range", "addListener", "name", "removeAllListeners", "errorRequest", "client", "request", "kEnumerableProperty", "normalizedMethodRecordsBase", "normalizedMethodRecords", "require_diagnostics", "__commonJSMin", "exports", "module", "diagnosticsChannel", "util", "undiciDebugLog", "fetchDebuglog", "websocketDebuglog", "isClientSet", "channels", "debuglog", "evt", "version", "protocol", "port", "host", "error", "method", "path", "origin", "statusCode", "address", "websocket", "code", "reason", "err", "require_request", "__commonJSMin", "exports", "module", "InvalidArgumentError", "NotSupportedError", "assert", "isValidHTTPToken", "isValidHeaderValue", "isStream", "destroy", "isBuffer", "isFormDataLike", "isIterable", "isBlobLike", "buildURL", "validateHandler", "getServerName", "normalizedMethodRecords", "channels", "headerNameLowerCasedRecord", "invalidPathRegex", "kHandler", "Request", "origin", "path", "method", "body", "headers", "query", "idempotent", "blocking", "upgrade", "headersTimeout", "bodyTimeout", "reset", "throwOnError", "expectContinue", "servername",Line truncated
|
||||
}
|
||||
+5
-3
@@ -3409,6 +3409,7 @@ The following npm packages may be included in this product:
|
||||
- imurmurhash@0.1.4
|
||||
- is-gzip@1.0.0
|
||||
- isarray@1.0.0
|
||||
- xml-naming@0.1.0
|
||||
|
||||
These packages each contain the following license:
|
||||
|
||||
@@ -3784,11 +3785,12 @@ SOFTWARE.
|
||||
|
||||
-----------
|
||||
|
||||
The following npm package may be included in this product:
|
||||
The following npm packages may be included in this product:
|
||||
|
||||
- path-expression-matcher@1.2.0
|
||||
- path-expression-matcher@1.5.0
|
||||
|
||||
This package contains the following license:
|
||||
These packages each contain the following license:
|
||||
|
||||
MIT License
|
||||
|
||||
@@ -3846,7 +3848,7 @@ SOFTWARE.
|
||||
|
||||
The following npm package may be included in this product:
|
||||
|
||||
- fast-xml-builder@1.1.4
|
||||
- fast-xml-builder@1.2.0
|
||||
|
||||
This package contains the following license:
|
||||
|
||||
|
||||
@@ -3181,11 +3181,12 @@ __metadata:
|
||||
linkType: hard
|
||||
|
||||
"fast-xml-builder@npm:^1.1.4":
|
||||
version: 1.1.4
|
||||
resolution: "fast-xml-builder@npm:1.1.4"
|
||||
version: 1.2.0
|
||||
resolution: "fast-xml-builder@npm:1.2.0"
|
||||
dependencies:
|
||||
path-expression-matcher: "npm:^1.1.3"
|
||||
checksum: 10/32937866aaf5a90e69d1f4ee6e15e875248d5b5d2afd70277e9e8323074de4980cef24575a591b8e43c29f405d5f12377b3bad3842dc412b0c5c17a3eaee4b6b
|
||||
path-expression-matcher: "npm:^1.5.0"
|
||||
xml-naming: "npm:^0.1.0"
|
||||
checksum: 10/5948add7796879d03b6c779cbb17f2f203a41cdf23dfaaa4789c65078a36376cd0709a6586701e980e3d244ebd5fdb35db1235ccb5e4fb9e9abfd8c51e7b8813
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
@@ -4649,13 +4650,20 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"path-expression-matcher@npm:^1.1.3, path-expression-matcher@npm:^1.2.0":
|
||||
"path-expression-matcher@npm:^1.2.0":
|
||||
version: 1.2.0
|
||||
resolution: "path-expression-matcher@npm:1.2.0"
|
||||
checksum: 10/eab23babd9a97d6cf4841a99825c3e990b70b2b29ea6529df9fb6a1f3953befbc68e9e282a373d7a75aff5dc6542d05a09ee2df036ff9bfddf5e1627b769875b
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"path-expression-matcher@npm:^1.5.0":
|
||||
version: 1.5.0
|
||||
resolution: "path-expression-matcher@npm:1.5.0"
|
||||
checksum: 10/28303bb9ee6831e6df14c10cd3f3f7b2d7c8d7f788d8bdb7440136fd696064c82a3e264999a0764d28e39f698275fc03a5493bec93c57ef4a22566280367dd64
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"path-key@npm:^3.1.0":
|
||||
version: 3.1.1
|
||||
resolution: "path-key@npm:3.1.1"
|
||||
@@ -5903,6 +5911,13 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"xml-naming@npm:^0.1.0":
|
||||
version: 0.1.0
|
||||
resolution: "xml-naming@npm:0.1.0"
|
||||
checksum: 10/45abd94ba64a508bda3f4d0b70e49811a3c3542596252c213caf47c858bbe9bba365ebba8eeff68e2a876e22a1bf6855d90cd2019b2f28012cebb167a4df2293
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"xtend@npm:~4.0.1":
|
||||
version: 4.0.2
|
||||
resolution: "xtend@npm:4.0.2"
|
||||
|
||||
Reference in new issue
Block a user