Files
metadata-action/dist/index.cjs
T

316 lines
2.7 MiB
JavaScript
Raw Normal View History

var gIe=Object.create;var dz=Object.defineProperty;var OIe=Object.getOwnPropertyDescriptor;var EIe=Object.getOwnPropertyNames;var CIe=Object.getPrototypeOf,yIe=Object.prototype.hasOwnProperty;var i=(t,e)=>dz(t,"name",{value:e,configurable:!0});var m=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),BIe=(t,e)=>{for(var r in e)dz(t,r,{get:e[r],enumerable:!0})},qIe=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of EIe(e))!yIe.call(t,o)&&o!==r&&dz(t,o,{get:()=>e[o],enumerable:!(n=OIe(e,o))||n.enumerable});return t};var w=(t,e,r)=>(r=t!=null?gIe(CIe(t)):{},qIe(e||!t||!t.__esModule?dz(r,"default",{value:t,enumerable:!0}):r,t));var $9=m(lA=>{"use strict";var iB0=require("net"),SIe=require("tls"),tI=require("http"),V9=require("https"),FIe=require("events"),aB0=require("assert"),WIe=require("util");lA.httpOverHttp=xIe;lA.httpsOverHttp=TIe;lA.httpOverHttps=vIe;lA.httpsOverHttps=LIe;function xIe(t){var e=new gi(t);return e.request=tI.request,e}i(xIe,"httpOverHttp");function TIe(t){var e=new gi(t);return e.request=tI.request,e.createSocket=J9,e.defaultPort=443,e}i(TIe,"httpsOverHttp");function vIe(t){var e=new gi(t);return e.request=V9.request,e}i(vIe,"httpOverHttps");function LIe(t){var e=new gi(t);return e.request=V9.request,e.createSocket=J9,e.defaultPort=443,e}i(LIe,"httpsOverHttps");function gi(t){var e=this;e.options=t||{},e.proxyOptions=e.options.proxy||{},e.maxSockets=e.options.maxSockets||tI.Agent.defaultMaxSockets,e.requests=[],e.sockets=[],e.on("free",i(function(n,o,s,a){for(var c=Y9(o,s,a),u=0,p=e.requests.length;u<p;++u){var A=e.requests[u];if(A.host===c.host&&A.port===c.port){e.requests.splice(u,1),A.request.onSocket(n);return}}n.destroy(),e.removeSocket(n)},"onFree"))}i(gi,"TunnelingAgent");WIe.inherits(gi,FIe.EventEmitter);gi.prototype.addRequest=i(function(e,r,n,o){var s=this,a=rI({request:e},s.options,Y9(r,n,o));if(s.sockets.length>=this.maxSockets){s.requests.push(a);return}s.createSocket(a,function(c){c.on("free",u),c.on("close",p),c.on("agentRemove",p),e.onSocket(c);function u(){s.emit("free",c,a)}i(u,"onFree");function p(A){s.removeSocket(c),c.removeListener("free",u),c.removeListener("close",p),c.removeListener("agentRemove",p)}i(p,"onCloseOrRemove")})},"addRequest");gi.prototype.createSocket=i(function(e,r){var n=this,o={};n.sockets.push(o);var s=rI({},n.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:!1,headers:{host:e.host+":"+e.port}});e.localAddress&&(s.localAddress=e.localAddress),s.proxyAuth&&(s.headers=s.headers||{},s.headers["Proxy-Authorization"]="Basic "+new Buffer(s.proxyAuth).toString("base64")),wa("making CONNECT request");var a=n.request(s);a.useChunkedEncodingByDefault=!1,a.once("response",c),a.once("upgrade",u),a.once("connect",p),a.once("error",A),a.end();function c(l){l.upgrade=!0}i(c,"onResponse");function u(l,b,M){process.nextTick(function(){p(l,b,M)})}i(u,"onUpgrade");function p(l,b,M){if(a.removeAllListeners(),b.removeAllListeners(),l.statusCode!==200){wa("tunneling socket could not be established, statusCode=%d",l.statusCode),b.destroy();var z=new Error("tunneling socket could not be established, statusCode="+l.statusCode);z.code="ECONNRESET",e.request.emit("error",z),n.removeSocket(o);return}if(M.length>0){wa("got illegal response body from proxy"),b.destroy();var z=new Error("got illegal response body from proxy");z.code="ECONNRESET",e.request.emit("error",z),n.removeSocket(o);return}return wa("tunneling connection has established"),n.sockets[n.sockets.indexOf(o)]=b,r(b)}i(p,"onConnect");function A(l){a.removeAllListeners(),wa(`tunneling socket could not be established, cause=%s
`,l.message,l.stack);var b=new Error("tunneling socket could not be established, cause="+l.message);b.code="ECONNRESET",e.request.emit("error",b),n.removeSocket(o)}i(A,"onError")},"createSocket");gi.prototype.removeSocket=i(function(e){var r=this.sockets.indexOf(e);if(r!==-1){this.sockets.splice(r,1);var n=this.requests.shift();n&&this.createSocket(n,function(o){n.request.onSocket(o)})}},"removeSocket");function J9(t,e){var r=this;gi.prototype.createSocket.call(r,t,function(n){var o=t.request.getHeader("host"),s=rI({},r.options,{socket:n,servername:o?o.replace(/:.*$/,""):t.host}),a=SIe.connect(0,s);r.sockets[r.sockets.indexOf(n)]=a,e(a)})}i(J9,"createSecureSocket");function Y9(t,e,r){return typeof t=="string"?{host:t,port:e,localAddress:r}:t}i(Y9,"toOptions");function rI(t){for(var e=1,r=arguments.length;e<r;++e){var n=arguments[e];if(typeof n=="object")for(var o=Object.keys(n),s=0,a=o.length;s<a;++s){var c=o[s];n[c]!==void 0&&(t[c]=n[c])}}return t}i(rI,"mergeOptions");var wa;process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)?wa=i(function(){var t=Array.prototype.slice.call(arguments);typeof t[0]=="string"?t[0]="TUNNEL: "+t[0]:t.unshift("TUNNEL:"),console.error.apply(console,t)},"debug"):wa=i(function(){},"debug");lA.debug=wa});var $d=m((pB0,j9)=>{j9.exports=$9()});var G0=m((AB0,K9)=>{K9.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 p0=m((lB0,CU)=>{"use strict";var Z9=Symbol.for("undici.error.UND_ERR"),H0=class extends Error{static{i(this,"UndiciError")}constructor(e){super(e),this.name="UndiciError",this.code="UND_ERR"}static[Symbol.hasInstance](e){return e&&e[Z9]===!0}[Z9]=!0},eU=Symbol.for("undici.error.UND_ERR_CONNECT_TIMEOUT"),nI=class extends H0{static{i(this,"ConnectTimeoutError")}constructor(e){super(e),this.name="ConnectTimeoutError",this.message=e||"Connect Timeout Error",this.code="UND_ERR_CONNECT_TIM
`)||t.includes("\r")||t.includes("\0"))===!1}i(TG,"isValidHeaderValue");function eNe(t,e){let{headersList:r}=e,n=(r.get("referrer-policy",!0)??"").split(","),o="";if(n.length>0)for(let s=n.length;s!==0;s--){let a=n[s-1].trim();if(LRe.has(a)){o=a;break}}o!==""&&(t.referrerPolicy=o)}i(eNe,"setRequestReferrerPolicyOnRedirect");function tNe(){return"allowed"}i(tNe,"crossOriginResourcePolicyCheck");function rNe(){return"success"}i(rNe,"corsCheck");function nNe(){return"success"}i(nNe,"TAOCheck");function oNe(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}i(oNe,"appendFetchMetadata");function sNe(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&&ZI(t.origin)&&!ZI(sb(t))&&(e=null);break;case"same-origin":Lz(t,sb(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}i(sNe,"appendRequestOriginHeader");function EA(t,e){return t}i(EA,"coarsenTime");function iNe(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:EA(t.domainLookupStartTime,r),domainLookupEndTime:EA(t.domainLookupEndTime,r),connectionStartTime:EA(t.connectionStartTime,r),connectionEndTime:EA(t.connectionEndTime,r),secureConnectionStartTime:EA(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}i(iNe,"clampAndCoarsenConnectionTimingInfo");function aNe(t){return EA(URe.now(),t)}i(aNe,"coarsenedSharedCurrentTime");function cNe(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}}i(cNe,"createOpaqueTimingInfo");function vG(){return{referrerPolicy:"strict-origin-when-cross-origin"}}i(vG,"makePolicyContainer");function uNe(t){return{referrerPolicy:t.referrerPolicy}}i(uNe,"clonePolicyContainer");function pNe(t){let e=t.referrerPolicy;ru(e);let r=null;if(t.referrer==="client"){let c=wG();if(!c||c.origin==="null")return"no-referrer";r=new URL(c)}else t.referrer instanceof URL&&(r=t.referrer);let n=KI(r),o=KI(r,!0);n.toString().length>4096&&(n=o);let s=Lz(t,n),a=ob(n)&&!ob(t.url);switch(e){case"origin":return o??KI(r,!0);case"unsafe-url":return n;case"same-origin":return s?o:"no-referrer";case"origin-when-cross-origin":return s?n:o;case"strict-origin-when-cross-origin":{let c=sb(t);return Lz(n,c)?n:ob(n)&&!ob(c)?"no-referrer":o}default:return a?"no-referrer":o}}i(pNe,"determineRequestsReferrer");function KI(t,e){return ru(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)}i(KI,"stripURLForReferrer");function ob(t){if(!(t instanceof URL))return!1;if(t.href==="about:blank"||t.href==="about:srcdoc"||t.protocol==="data:"||t.protocol==="file:")return!0;return e(t.origin);function e(r){if(r==null||r==="null")return!1;let n=new URL(r);return!!(n.protocol==="https:"||n.protocol==="wss:"||/^127(?:\.[0-9]+){0,2}\.[0-9]+$|^\[(?:0*:)*?:?0*1\]$/.test(n.hostname)||n.hostname==="localhost"||n.hostname.includes("localhost.")||n.hostname.endsWith(".localhost"))}}i(ob,"isURLPotentiallyTrustworthy");function ANe(t,e){if(vz===void 0)return!0;let r=LG(e);if(r==="no metadata"||r.length===0)return!0;let n=dNe(r),o=bNe(r,n);for(let s of o){let a=s.algo,c=s.hash,u=vz.createHash(a).update(t).digest("base64");if(u[u.length-1]==="="&&(u[u.length-2]==="="?u=u.slice(0,-2):u=u.slice(0,-1)),fNe(u,c))return!0}return!1}i(ANe,"bytesMatch");var lNe=/(?<algo>sha256|sha384|sha512)-((?<hash>[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-
`);function KNe(t){for(let e=0;e<t.length;++e)if((t.charCodeAt(e)&-128)!==0)return!1;return!0}i(KNe,"isAsciiString");function ZNe(t){let e=t.length;if(e<27||e>70)return!1;for(let r=0;r<e;++r){let n=t.charCodeAt(r);if(!(n>=48&&n<=57||n>=65&&n<=90||n>=97&&n<=122||n===39||n===45||n===95))return!1}return!0}i(ZNe,"validateBoundary");function ewe(t,e){Qz(e!=="failure"&&e.essence==="multipart/form-data");let r=e.parameters.get("boundary");if(r===void 0)return"failure";let n=Buffer.from(`--${r}`,"utf8"),o=[],s={position:0};for(;t[s.position]===13&&t[s.position+1]===10;)s.position+=2;let a=t.length;for(;t[a-1]===10&&t[a-2]===13;)a-=2;for(a!==t.length&&(t=t.subarray(0,a));;){if(t.subarray(s.position,s.position+n.length).equals(n))s.position+=n.length;else return"failure";if(s.position===t.length-2&&Pz(t,$Ne,s)||s.position===t.length-4&&Pz(t,jNe,s))return o;if(t[s.position]!==13||t[s.position+1]!==10)return"failure";s.position+=2;let c=twe(t,s);if(c==="failure")return"failure";let{name:u,filename:p,contentType:A,encoding:l}=c;s.position+=2;let b;{let z=t.indexOf(n.subarray(2),s.position);if(z===-1)return"failure";b=t.subarray(s.position,z-4),s.position+=b.length,l==="base64"&&(b=Buffer.from(b.toString(),"base64"))}if(t[s.position]!==13||t[s.position+1]!==10)return"failure";s.position+=2;let M;p!==null?(A??="text/plain",KNe(A)||(A=""),M=new JNe([b],p,{type:A})):M=UNe(Buffer.from(b)),Qz(jG(u)),Qz(typeof M=="string"&&jG(M)||HNe(M)),o.push(XNe(u,M,p))}}i(ewe,"multipartFormDataParser");function twe(t,e){let r=null,n=null,o=null,s=null;for(;;){if(t[e.position]===13&&t[e.position+1]===10)return r===null?"failure":{name:r,filename:n,contentType:o,encoding:s};let a=yA(c=>c!==10&&c!==13&&c!==58,t,e);if(a=i5(a,!0,!0,c=>c===9||c===32),!GNe.test(a.toString())||t[e.position]!==58)return"failure";switch(e.position++,yA(c=>c===32||c===9,t,e),kNe(a)){case"content-disposition":{if(r=n=null,!Pz(t,YNe,e)||(e.position+=17,r=eH(t,e),r===null))return"failure";if(Pz(t,ZG,e)){let c=e.position+ZG.length;if(t[c]===42&&(e.position+=1,c+=1),t[c]!==61||t[c+1]!==34||(e.position+=12,n=eH(t,e),n===null))return"failure"}break}case"content-type":{let c=yA(u=>u!==10&&u!==13,t,e);c=i5(c,!1,!0,u=>u===9||u===32),o=KG(c);break}case"content-transfer-encoding":{let c=yA(u=>u!==10&&u!==13,t,e);c=i5(c,!1,!0,u=>u===9||u===32),s=KG(c);break}default:yA(c=>c!==10&&c!==13,t,e)}if(t[e.position]!==13&&t[e.position+1]!==10)return"failure";e.position+=2}}i(twe,"parseMultipartFormDataHeaders");function eH(t,e){Qz(t[e.position-1]===34);let r=yA(n=>n!==10&&n!==13&&n!==34,t,e);return t[e.position]!==34?null:(e.position++,r=new TextDecoder().decode(r).replace(/%0A/ig,`
`).replace(/%0D/ig,"\r").replace(/%22/g,'"'),r)}i(eH,"parseMultipartFormDataName");function yA(t,e,r){let n=r.position;for(;n<e.length&&t(e[n]);)++n;return e.subarray(r.position,r.position=n)}i(yA,"collectASequenceOfBytes");function i5(t,e,r,n){let o=0,s=t.length-1;if(e)for(;o<t.length&&n(t[o]);)o++;if(r)for(;s>0&&n(t[s]);)s--;return o===0&&s===t.length-1?t:t.subarray(o,s+1)}i(i5,"removeChars");function Pz(t,e,r){if(t.length<e.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[r.position+n])return!1;return!0}i(Pz,"bufferStartsWith");tH.exports={multipartFormDataParser:ewe,validateBoundary:ZNe}});var DA=m((KB0,lH)=>{"use strict";var cb=Xe(),{ReadableStreamFrom:rwe,isBlobLike:nH,isReadableStreamLike:nwe,readableStreamClose:owe,createDeferredPromise:swe,fullyReadBody:iwe,extractMimeType:awe,utf8DecodeBytes:iH}=Nr(),{FormData:oH}=ab(),{kState:qA}=Sa(),{webidl:cwe}=it(),{Blob:uwe}=require("node:buffer"),a5=require("node:assert"),{isErrored:aH,isDisturbed:pwe}=require("node:stream"),{isArrayBuffer:Awe}=require("node:util/types"),{serializeAMimeType:lwe}=tr(),{multipartFormDataParser:dwe}=rH(),c5;try{let t=require("node:crypto");c5=i(e=>t.randomInt(0,e),"random")}catch{c5=i(t=>Math.floor(Math.random(t)),"random")}var kz=new TextEncoder;function bwe(){}i(bwe,"noop");var cH=globalThis.FinalizationRegistry&&process.version.indexOf("v18")!==0,uH;cH&&(uH=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!pwe(e)&&!aH(e)&&e.cancel("Response object has been garbage collected").catch(bwe)}));function pH(t,e=!1){let r=null;t instanceof ReadableStream?r=t:nH(t)?r=t.stream():r=new ReadableStream({async pull(u){let p=typeof o=="string"?kz.encode(o):o;p.byteLength&&u.enqueue(p),queueMicrotask(()=>owe(u))},start(){},type:"bytes"}),a5(nwe(r));let n=null,o=null,s=null,a=null;if(typeof t=="string")o=t,a="text/plain;charset=UTF-8";else if(t instanceof URLSearchParams)o=t.toString(),a="application/x-www-form-urlencoded;charset=UTF-8";else if(Awe(t))o=new Uint8Array(t.slice());else if(ArrayBuffer.isView(t))o=new Uint8Array(t.buffer.slice(t.byteOffset,t.byteOffset+t.byteLength));else if(cb.isFormDataLike(t)){let u=`----formdata-undici-0${`${c5(1e11)}`.padStart(11,"0")}`,p=`--${u}\r
Content-Disposition: form-data`;let A=i(y=>y.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22"),"escape"),l=i(y=>y.replace(/\r?\n|\r/g,`\r
`),"normalizeLinefeeds"),b=[],M=new Uint8Array([13,10]);s=0;let z=!1;for(let[y,E]of t)if(typeof E=="string"){let B=kz.encode(p+`; name="${A(l(y))}"\r
\r
${l(E)}\r
`);b.push(B),s+=B.byteLength}else{let B=kz.encode(`${p}; name="${A(l(y))}"`+(E.name?`; filename="${A(E.name)}"`:"")+`\r
2026-06-29 15:01:08 +02:00
Content-Type: ${E.type||"application/octet-stream"}\r
\r
`);b.push(B,E,M),typeof E.size=="number"?s+=B.byteLength+E.size+M.byteLength:z=!0}let O=kz.encode(`--${u}--\r
`);b.push(O),s+=O.byteLength,z&&(s=null),o=t,n=i(async function*(){for(let y of b)y.stream?yield*y.stream():yield y},"action"),a=`multipart/form-data; boundary=${u}`}else if(nH(t))o=t,s=t.size,t.type&&(a=t.type);else if(typeof t[Symbol.asyncIterator]=="function"){if(e)throw new TypeError("keepalive");if(cb.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=t instanceof ReadableStream?t:rwe(t)}if((typeof o=="string"||cb.isBuffer(o))&&(s=Buffer.byteLength(o)),n!=null){let u;r=new ReadableStream({async start(){u=n(t)[Symbol.asyncIterator]()},async pull(p){let{value:A,done:l}=await u.next();if(l)queueMicrotask(()=>{p.close(),p.byobRequest?.respond(0)});else if(!aH(r)){let b=new Uint8Array(A);b.byteLength&&p.enqueue(b)}return p.desiredSize>0},async cancel(p){await u.return()},type:"bytes"})}return[{stream:r,source:o,length:s},a]}i(pH,"extractBody");function fwe(t,e=!1){return t instanceof ReadableStream&&(a5(!cb.isDisturbed(t),"The body has already been consumed."),a5(!t.locked,"The stream is locked.")),pH(t,e)}i(fwe,"safelyExtractBody");function Mwe(t,e){let[r,n]=e.stream.tee();return e.stream=r,{stream:n,length:e.length,source:e.source}}i(Mwe,"cloneBody");function mwe(t){if(t.aborted)throw new DOMException("The operation was aborted.","AbortError")}i(mwe,"throwIfAborted");function hwe(t){return{blob(){return BA(this,r=>{let n=sH(this);return n===null?n="":n&&(n=lwe(n)),new uwe([r],{type:n})},t)},arrayBuffer(){return BA(this,r=>new Uint8Array(r).buffer,t)},text(){return BA(this,iH,t)},json(){return BA(this,gwe,t)},formData(){return BA(this,r=>{let n=sH(this);if(n!==null)switch(n.essence){case"multipart/form-data":{let o=dwe(r,n);if(o==="failure")throw new TypeError("Failed to parse body as FormData.");let s=new oH;return s[qA]=o,s}case"application/x-www-form-urlencoded":{let o=new URLSearchParams(r.toString()),s=new oH;for(let[a,c]of o)s.append(a,c);return s}}throw new TypeError('Content-Type was not one of "multipart/form-data" or "application/x-www-form-urlencoded".')},t)},bytes(){return BA(this,r=>new Uint8Array(r),t)}}}i(hwe,"bodyMixinMethods");function zwe(t){Object.assign(t.prototype,hwe(t))}i(zwe,"mixinBody");async function BA(t,e,r){if(cwe.brandCheck(t,r),AH(t))throw new TypeError("Body is unusable: Body has already been read");mwe(t[qA]);let n=swe(),o=i(a=>n.reject(a),"errorSteps"),s=i(a=>{try{n.resolve(e(a))}catch(c){o(c)}},"successSteps");return t[qA].body==null?(s(Buffer.allocUnsafe(0)),n.promise):(await iwe(t[qA].body,s,o),n.promise)}i(BA,"consumeBody");function AH(t){let e=t[qA].body;return e!=null&&(e.stream.locked||cb.isDisturbed(e.stream))}i(AH,"bodyUnusable");function gwe(t){return JSON.parse(iH(t))}i(gwe,"parseJSONFromBytes");function sH(t){let e=t[qA].headersList,r=awe(e);return r==="failure"?null:r}i(sH,"bodyMimeType");lH.exports={extractBody:pH,safelyExtractBody:fwe,cloneBody:Mwe,mixinBody:zwe,streamRegistry:uH,hasFinalizationRegistry:cH,bodyUnusable:AH}});var IH=m((eq0,DH)=>{"use strict";var fe=require("node:assert"),ge=Xe(),{channels:dH}=bA(),u5=GI(),{RequestContentLengthMismatchError:nu,ResponseContentLengthMismatchError:bH,RequestAbortedError:EH,HeadersTimeoutError:Owe,HeadersOverflowError:Ewe,SocketError:IA,InformationalError:RA,BodyTimeoutError:Cwe,HTTPParserError:ywe,ResponseExceededMaxSizeError:Bwe}=p0(),{kUrl:CH,kReset:rr,kClient:Xz,kParser:T0,kBlocking:Ab,kRunning:w1,kPending:yH,kSize:fH,kWriting:Fa,kQueue:so,kNoRef:ub,kKeepAliveDefaultTimeout:qwe,kHostHeader:Dwe,kPendingIdx:Iwe,kRunningIdx:dn,kError:Ft,kPipelining:Vz,kSocket:su,kKeepAliveTimeoutValue:Yz,kMaxHeadersSize:p5,kKeepAliveMaxTimeout:Rwe,kKeepAliveTimeoutThreshold:Nwe,kHeadersTimeout:wwe,kBodyTimeout:Swe,kStrictContentLength:d5,kMaxRequests:MH,kCounter:Fwe,kMaxResponseSize:Wwe,kOnError:mH,kResume:qi,kHTTPContext:BH}=G0(),wr=uG(),hH=Buffer.alloc(0),Uz=Buffer[Symbol.species],Gz=ge.addListener,xwe=ge.removeAllListeners,iu=Symbol("kIdleSocketValidation"),ou=Symbol("kIdleSocketValidationTimeout"),m5=Symbol("kSocketUsed"),A5;async function Twe(){let t=process.env.JEST_WORKER_ID?VI():vo
`;if(typeof o=="string"?O+=`host: ${o}\r
`:O+=t[Dwe],s?O+=`connection: upgrade\r
upgrade: ${s}\r
`:t[Vz]&&!M[rr]?O+=`connection: keep-alive\r
`:O+=`connection: close\r
`,Array.isArray(p))for(let y=0;y<p.length;y+=2){let E=p[y+0],B=p[y+1];if(Array.isArray(B))for(let q=0;q<B.length;q++)O+=`${E}: ${B[q]}\r
`;else O+=`${E}: ${B}\r
`}return dH.sendHeaders.hasSubscribers&&dH.sendHeaders.publish({request:e,headers:O,socket:M}),!u||b===0?gH(z,null,t,e,M,A,O,l):ge.isBuffer(u)?gH(z,u,t,e,M,A,O,l):ge.isBlobLike(u)?typeof u.stream=="function"?OH(z,u.stream(),t,e,M,A,O,l):Gwe(z,u,t,e,M,A,O,l):ge.isStream(u)?Uwe(z,u,t,e,M,A,O,l):ge.isIterable(u)?OH(z,u,t,e,M,A,O,l):fe(!1),!0}i(kwe,"writeH1");function Uwe(t,e,r,n,o,s,a,c){fe(s!==0||r[w1]===0,"stream body cannot be pipelined");let u=!1,p=new $z({abort:t,socket:o,request:n,contentLength:s,client:r,expectsPayload:c,header:a}),A=i(function(z){if(!u)try{!p.write(z)&&this.pause&&this.pause()}catch(O){ge.destroy(this,O)}},"onData"),l=i(function(){u||e.resume&&e.resume()},"onDrain"),b=i(function(){if(queueMicrotask(()=>{e.removeListener("error",M)}),!u){let z=new EH;queueMicrotask(()=>M(z))}},"onClose"),M=i(function(z){if(!u){if(u=!0,fe(o.destroyed||o[Fa]&&r[w1]<=1),o.off("drain",l).off("error",M),e.removeListener("data",A).removeListener("end",M).removeListener("close",b),!z)try{p.end()}catch(O){z=O}p.destroy(z),z&&(z.code!=="UND_ERR_INFO"||z.message!=="reset")?ge.destroy(e,z):ge.destroy(e)}},"onFinished");e.on("data",A).on("end",M).on("error",M).on("close",b),e.resume&&e.resume(),o.on("drain",l).on("error",M),e.errorEmitted??e.errored?setImmediate(()=>M(e.errored)):(e.endEmitted??e.readableEnded)&&setImmediate(()=>M(null)),(e.closeEmitted??e.closed)&&setImmediate(b)}i(Uwe,"writeStream");function gH(t,e,r,n,o,s,a,c){try{e?ge.isBuffer(e)&&(fe(s===e.byteLength,"buffer body must have content length"),o.cork(),o.write(`${a}content-length: ${s}\r
\r
`,"latin1"),o.write(e),o.uncork(),n.onBodySent(e),!c&&n.reset!==!1&&(o[rr]=!0)):s===0?o.write(`${a}content-length: 0\r
\r
`,"latin1"):(fe(s===null,"no body must not have content length"),o.write(`${a}\r
`,"latin1")),n.onRequestSent(),r[qi]()}catch(u){t(u)}}i(gH,"writeBuffer");async function Gwe(t,e,r,n,o,s,a,c){fe(s===e.size,"blob body must have content length");try{if(s!=null&&s!==e.size)throw new nu;let u=Buffer.from(await e.arrayBuffer());o.cork(),o.write(`${a}content-length: ${s}\r
\r
`,"latin1"),o.write(u),o.uncork(),n.onBodySent(u),n.onRequestSent(),!c&&n.reset!==!1&&(o[rr]=!0),r[qi]()}catch(u){t(u)}}i(Gwe,"writeBlob");async function OH(t,e,r,n,o,s,a,c){fe(s!==0||r[w1]===0,"iterator body cannot be pipelined");let u=null;function p(){if(u){let b=u;u=null,b()}}i(p,"onDrain");let A=i(()=>new Promise((b,M)=>{fe(u===null),o[Ft]?M(o[Ft]):u=b}),"waitForDrain");o.on("close",p).on("drain",p);let l=new $z({abort:t,socket:o,request:n,contentLength:s,client:r,expectsPayload:c,header:a});try{for await(let b of e){if(o[Ft])throw o[Ft];l.write(b)||await A()}l.end()}catch(b){l.destroy(b)}finally{o.off("close",p).off("drain",p)}}i(OH,"writeIterable");var $z=class{static{i(this,"AsyncWriter")}constructor({abort:e,socket:r,request:n,contentLength:o,client:s,expectsPayload:a,header:c}){this.socket=r,this.request=n,this.contentLength=o,this.client=s,this.bytesWritten=0,this.expectsPayload=a,this.header=c,this.abort=e,r[Fa]=!0}write(e){let{socket:r,request:n,contentLength:o,client:s,bytesWritten:a,expectsPayload:c,header:u}=this;if(r[Ft])throw r[Ft];if(r.destroyed)return!1;let p=Buffer.byteLength(e);if(!p)return!0;if(o!==null&&a+p>o){if(s[d5])throw new nu;process.emitWarning(new nu)}r.cork(),a===0&&(!c&&n.reset!==!1&&(r[rr]=!0),o===null?r.write(`${u}transfer-encoding: chunked\r
`,"latin1"):r.write(`${u}content-length: ${o}\r
\r
`,"latin1")),o===null&&r.write(`\r
2026-06-29 15:01:08 +02:00
${p.toString(16)}\r
`,"latin1"),this.bytesWritten+=p;let A=r.write(e);return r.uncork(),n.onBodySent(e),A||r[T0].timeout&&r[T0].timeoutType===NA&&r[T0].timeout.refresh&&r[T0].timeout.refresh(),A}end(){let{socket:e,contentLength:r,client:n,bytesWritten:o,expectsPayload:s,header:a,request:c}=this;if(c.onRequestSent(),e[Fa]=!1,e[Ft])throw e[Ft];if(!e.destroyed){if(o===0?s?e.write(`${a}content-length: 0\r
\r
2026-06-29 15:01:08 +02:00
`,"latin1"):e.write(`${a}\r
`,"latin1"):r===null&&e.write(`\r
0\r
\r
`,"latin1"),r!==null&&o!==r){if(n[d5])throw new nu;process.emitWarning(new nu)}e[T0].timeout&&e[T0].timeoutType===NA&&e[T0].timeout.refresh&&e[T0].timeout.refresh(),n[qi]()}}destroy(e){let{socket:r,client:n,abort:o}=this;r[Fa]=!1,e&&(fe(n[w1]<=1,"pipeline should only contain this request"),o(e))}};DH.exports=Lwe});var TH=m((rq0,xH)=>{"use strict";var bn=require("node:assert"),{pipeline:Hwe}=require("node:stream"),Ze=Xe(),{RequestContentLengthMismatchError:h5,RequestAbortedError:RH,SocketError:lb,InformationalError:z5}=p0(),{kUrl:jz,kReset:Zz,kClient:wA,kRunning:eg,kPending:Xwe,kQueue:Wa,kPendingIdx:g5,kRunningIdx:io,kError:co,kSocket:$1,kStrictContentLength:Vwe,kOnError:O5,kMaxConcurrentStreams:WH,kHTTP2Session:ao,kResume:xa,kSize:Jwe,kHTTPContext:Ywe}=G0(),Di=Symbol("open streams"),NH,wH=!1,Kz;try{Kz=require("node:http2")}catch{Kz={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:$we,HTTP2_HEADER_METHOD:jwe,HTTP2_HEADER_PATH:Kwe,HTTP2_HEADER_SCHEME:Zwe,HTTP2_HEADER_CONTENT_LENGTH:e6e,HTTP2_HEADER_EXPECT:t6e,HTTP2_HEADER_STATUS:r6e}}=Kz;function n6e(t){let e=[];for(let[r,n]of Object.entries(t))if(Array.isArray(n))for(let o of n)e.push(Buffer.from(r),Buffer.from(o));else e.push(Buffer.from(r),Buffer.from(n));return e}i(n6e,"parseH2Headers");async function o6e(t,e){t[$1]=e,wH||(wH=!0,process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"}));let r=Kz.connect(t[jz],{createConnection:i(()=>e,"createConnection"),peerMaxConcurrentStreams:t[WH]});r[Di]=0,r[wA]=t,r[$1]=e,Ze.addListener(r,"error",i6e),Ze.addListener(r,"frameError",a6e),Ze.addListener(r,"end",c6e),Ze.addListener(r,"goaway",u6e),Ze.addListener(r,"close",function(){let{[wA]:o}=this,{[$1]:s}=o,a=this[$1][co]||this[co]||new lb("closed",Ze.getSocketInfo(s));if(o[ao]=null,o.destroyed){bn(o[Xwe]===0);let c=o[Wa].splice(o[io]);for(let u=0;u<c.length;u++){let p=c[u];Ze.errorRequest(o,p,a)}}}),r.unref(),t[ao]=r,e[ao]=r,Ze.addListener(e,"error",function(o){bn(o.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[co]=o,this[wA][O5](o)}),Ze.addListener(e,"end",function(){Ze.destroy(this,new lb("other side closed",Ze.getSocketInfo(this)))}),Ze.addListener(e,"close",function(){let o=this[co]||new lb("closed",Ze.getSocketInfo(this));t[$1]=null,this[ao]!=null&&this[ao].destroy(o),t[g5]=t[io],bn(t[eg]===0),t.emit("disconnect",t[jz],[t],o),t[xa]()});let n=!1;return e.on("close",()=>{n=!0}),{version:"h2",defaultPipelining:1/0,write(...o){return A6e(t,...o)},resume(){s6e(t)},destroy(o,s){n?queueMicrotask(s):e.destroy(o).on("close",s)},get destroyed(){return e.destroyed},busy(){return!1}}}i(o6e,"connectH2");function s6e(t){let e=t[$1];e?.destroyed===!1&&(t[Jwe]===0&&t[WH]===0?(e.unref(),t[ao].unref()):(e.ref(),t[ao].ref()))}i(s6e,"resumeH2");function i6e(t){bn(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[$1][co]=t,this[wA][O5](t)}i(i6e,"onHttp2SessionError");function a6e(t,e,r){if(r===0){let n=new z5(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[$1][co]=n,this[wA][O5](n)}}i(a6e,"onHttp2FrameError");function c6e(){let t=new lb("other side closed",Ze.getSocketInfo(this[$1]));this.destroy(t),Ze.destroy(this[$1],t)}i(c6e,"onHttp2SessionEnd");function u6e(t){let e=this[co]||new lb(`HTTP/2: "GOAWAY" frame received with code ${t}`,Ze.getSocketInfo(this)),r=this[wA];if(r[$1]=null,r[Ywe]=null,this[ao]!=null&&(this[ao].destroy(e),this[ao]=null),Ze.destroy(this[$1],e),r[io]<r[Wa].length){let n=r[Wa][r[io]];r[Wa][r[io]++]=null,Ze.errorRequest(r,n,e),r[g5]=r[io]}bn(r[eg]===0),r.emit("disconnect",r[jz],[r],e),r[xa]()}i(u6e,"onHTTP2GoAway");function p6e(t){return t!=="GET"&&t!=="HEAD"&&t!=="OPTIONS"&&t!=="TRACE"&&t!=="CONNECT"}i(p6e,"shouldSendContentLength");function A6e(t,e){let r=t[ao],{method:n,path:o,host:s,upgrade:a,expectContinue:c,signal:u,headers:p}=e,{body:A}=e;if(a)return Ze.errorRequest(t,e,new Error("Upgrade not supported for H2")),!1;let l={};for(let D=0;D<p.length;D+=2){let F=p[D+0],x=p[D+1];if(Array.isArray(x))for(let _=0;_<x.length;_++)l[F]?l[F]+=`,${x[_]}`:l[F]=x[_];else l[F]=x}let b,{hostname:M,port:z}=t[jz];l[$we]=s||`${M}
`,this[v6e]=u??3e5,this[T6e]=o??3e5,this[L6e]=B??!0,this[_6e]=D,this[B5]=x,this[va]=null,this[G6e]=ce>-1?ce:-1,this[X6e]=De??100,this[g1]=null,this[uo]=[],this[Ri]=0,this[po]=0,this[Mb]=k=>D5(this,k),this[H6e]=k=>JH(this,k)}get pipelining(){return this[og]}set pipelining(e){this[og]=e,this[Mb](!0)}get[zb](){return this[uo].length-this[po]}get[hb](){return this[po]-this[Ri]}get[mb](){return this[uo].length-this[Ri]}get[R6e](){return!!this[g1]&&!this[FA]&&!this[g1].destroyed}get[y5](){return!!(this[g1]?.busy(null)||this[mb]>=(VH(this)||1)||this[zb]>0)}[I6e](e){YH(this),this.once("connect",e)}[U6e](e,r){let n=e.origin||this[Jo].origin,o=new E6e(n,e,r);return this[uo].push(o),this[cu]||(au.bodyLength(o.body)==null&&au.isIterable(o.body)?(this[cu]=1,queueMicrotask(()=>D5(this))):this[Mb](!0)),this[cu]&&this[La]!==2&&this[y5]&&(this[La]=2),this[La]<2}async[P6e](){return new Promise(e=>{this[mb]?this[va]=e:e(null)})}async[k6e](e){return new Promise(r=>{let n=this[uo].splice(this[po]);for(let s=0;s<n.length;s++){let a=n[s];au.errorRequest(this,a,e)}let o=i(()=>{this[va]&&(this[va](),this[va]=null),r(null)},"callback");this[g1]?(this[g1].destroy(e,o),this[g1]=null):queueMicrotask(o),this[Mb]()})}},Y6e=ng();function JH(t,e){if(t[hb]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){Ii(t[po]===t[Ri]);let r=t[uo].splice(t[Ri]);for(let n=0;n<r.length;n++){let o=r[n];au.errorRequest(t,o,e)}Ii(t[mb]===0)}}i(JH,"onError");async function YH(t){Ii(!t[FA]),Ii(!t[g1]);let{host:e,hostname:r,protocol:n,port:o}=t[Jo];if(r[0]==="["){let s=r.indexOf("]");Ii(s!==-1);let a=r.substring(1,s);Ii(XH.isIP(a)),r=a}t[FA]=!0,SA.beforeConnect.hasSubscribers&&SA.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:n,port:o,version:t[g1]?.version,servername:t[Ta],localAddress:t[fb]},connector:t[bb]});try{let s=await new Promise((a,c)=>{t[bb]({host:e,hostname:r,protocol:n,port:o,servername:t[Ta],localAddress:t[fb]},(u,p)=>{u?c(u):a(p)})});if(t.destroyed){au.destroy(s.on("error",GH),new B6e);return}Ii(s);try{t[g1]=s.alpnProtocol==="h2"?await J6e(t,s):await V6e(t,s)}catch(a){throw s.destroy().on("error",GH),a}t[FA]=!1,s[Q6e]=0,s[B5]=t[B5],s[D6e]=t,s[w6e]=null,SA.connected.hasSubscribers&&SA.connected.publish({connectParams:{host:e,hostname:r,protocol:n,port:o,version:t[g1]?.version,servername:t[Ta],localAddress:t[fb]},connector:t[bb],socket:s}),t.emit("connect",t[Jo],[t])}catch(s){if(t.destroyed)return;if(t[FA]=!1,SA.connectError.hasSubscribers&&SA.connectError.publish({connectParams:{host:e,hostname:r,protocol:n,port:o,version:t[g1]?.version,servername:t[Ta],localAddress:t[fb]},connector:t[bb],error:s}),s.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(Ii(t[hb]===0);t[zb]>0&&t[uo][t[po]].servername===t[Ta];){let a=t[uo][t[po]++];au.errorRequest(t,a,s)}else JH(t,s);t.emit("connectionError",t[Jo],[t],s)}t[Mb]()}i(YH,"connect");function HH(t){t[La]=0,t.emit("drain",t[Jo],[t])}i(HH,"emitDrain");function D5(t,e){t[cu]!==2&&(t[cu]=2,$6e(t,e),t[cu]=0,t[Ri]>256&&(t[uo].splice(0,t[Ri]),t[po]-=t[Ri],t[Ri]=0))}i(D5,"resume");function $6e(t,e){for(;;){if(t.destroyed){Ii(t[zb]===0);return}if(t[va]&&!t[mb]){t[va](),t[va]=null;return}if(t[g1]&&t[g1].resume(),t[y5])t[La]=2;else if(t[La]===2){e?(t[La]=1,queueMicrotask(()=>HH(t))):HH(t);continue}if(t[zb]===0||t[hb]>=(VH(t)||1))return;let r=t[uo][t[po]];if(t[Jo].protocol==="https:"&&t[Ta]!==r.servername){if(t[hb]>0)return;t[Ta]=r.servername,t[g1]?.destroy(new y6e("servername changed"),()=>{t[g1]=null,D5(t)})}if(t[FA])return;if(!t[g1]){YH(t);return}if(t[g1].destroyed||t[g1].busy(r))return;!r.aborted&&t[g1].write(r)?t[po]++:t[uo].splice(t[po],1)}}i($6e,"_resume");$H.exports=q5});var I5=m((Aq0,jH)=>{"use strict";var sg=class{static{i(this,"FixedCircularBuffer")}constructor(){this.bottom=0,this.top=0,this.list=new Array(2048),this.next=null}isEmpty(){return this.top===this.bottom}isFull(){return(this.top+1&2047)===this.bottom}push(e){this.list[this.top]=e,this.top=this.top+1&2047}shift(){let e=this.list[this.bottom];return e===void 0?null:(this.list[this.bottom]=void 0,this.bottom=this.bottom+1&2047,e)}};jH.exports=cla
${n.count} ${n.noun} ${n.is} pending:
${e.format(r)}
`.trim())}};fJ.exports=xR});var Cg=m((dD0,gJ)=>{"use strict";var mJ=Symbol.for("undici.globalDispatcher.1"),{InvalidArgumentError:vWe}=p0(),LWe=TA();zJ()===void 0&&hJ(new LWe);function hJ(t){if(!t||typeof t.dispatch!="function")throw new vWe("Argument agent must implement Agent");Object.defineProperty(globalThis,mJ,{value:t,writable:!0,enumerable:!1,configurable:!1})}i(hJ,"setGlobalDispatcher");function zJ(){return globalThis[mJ]}i(zJ,"getGlobalDispatcher");gJ.exports={setGlobalDispatcher:hJ,getGlobalDispatcher:zJ}});var yg=m((MD0,OJ)=>{"use strict";OJ.exports=class{static{i(this,"DecoratorHandler")}#e;constructor(e){if(typeof e!="object"||e===null)throw new TypeError("handler must be an object");this.#e=e}onConnect(...e){return this.#e.onConnect?.(...e)}onError(...e){return this.#e.onError?.(...e)}onUpgrade(...e){return this.#e.onUpgrade?.(...e)}onResponseStarted(...e){return this.#e.onResponseStarted?.(...e)}onHeaders(...e){return this.#e.onHeaders?.(...e)}onData(...e){return this.#e.onData?.(...e)}onComplete(...e){return this.#e.onComplete?.(...e)}onBodySent(...e){return this.#e.onBodySent?.(...e)}}});var CJ=m((hD0,EJ)=>{"use strict";var _We=rg();EJ.exports=t=>{let e=t?.maxRedirections;return r=>i(function(o,s){let{maxRedirections:a=e,...c}=o;if(!a)return r(o,s);let u=new _We(r,a,o,s);return r(c,u)},"redirectInterceptor")}});var BJ=m((gD0,yJ)=>{"use strict";var QWe=dg();yJ.exports=t=>e=>i(function(n,o){return e(n,new QWe({...n,retryOptions:{...t,...n.retryOptions}},{handler:o,dispatch:e}))},"retryInterceptor")});var DJ=m((ED0,qJ)=>{"use strict";var PWe=Xe(),{InvalidArgumentError:kWe,RequestAbortedError:UWe}=p0(),GWe=yg(),TR=class extends GWe{static{i(this,"DumpHandler")}#e=1024*1024;#t=null;#n=!1;#r=!1;#o=0;#s=null;#a=null;constructor({maxSize:e},r){if(super(r),e!=null&&(!Number.isFinite(e)||e<1))throw new kWe("maxSize must be a number greater than 0");this.#e=e??this.#e,this.#a=r}onConnect(e){this.#t=e,this.#a.onConnect(this.#i.bind(this))}#i(e){this.#r=!0,this.#s=e}onHeaders(e,r,n,o){let a=PWe.parseHeaders(r)["content-length"];if(a!=null&&a>this.#e)throw new UWe(`Response size (${a}) larger than maxSize (${this.#e})`);return this.#r?!0:this.#a.onHeaders(e,r,n,o)}onError(e){this.#n||(e=this.#s??e,this.#a.onError(e))}onData(e){return this.#o=this.#o+e.length,this.#o>=this.#e&&(this.#n=!0,this.#r?this.#a.onError(this.#s):this.#a.onComplete([])),!0}onComplete(e){if(!this.#n){if(this.#r){this.#a.onError(this.reason);return}this.#a.onComplete(e)}}};function HWe({maxSize:t}={maxSize:1024*1024}){return e=>i(function(n,o){let{dumpMaxSize:s=t}=n,a=new TR({maxSize:s},o);return e(n,a)},"Intercept")}i(HWe,"createDumpInterceptor");qJ.exports=HWe});var NJ=m((yD0,RJ)=>{"use strict";var{isIP:XWe}=require("node:net"),{lookup:VWe}=require("node:dns"),JWe=yg(),{InvalidArgumentError:XA,InformationalError:YWe}=p0(),IJ=Math.pow(2,31)-1,vR=class{static{i(this,"DNSInstance")}#e=0;#t=0;#n=new Map;dualStack=!0;affinity=null;lookup=null;pick=null;constructor(e){this.#e=e.maxTTL,this.#t=e.maxItems,this.dualStack=e.dualStack,this.affinity=e.affinity,this.lookup=e.lookup??this.#r,this.pick=e.pick??this.#o}get full(){return this.#n.size===this.#t}runLookup(e,r,n){let o=this.#n.get(e.hostname);if(o==null&&this.full){n(null,e.origin);return}let s={affinity:this.affinity,dualStack:this.dualStack,lookup:this.lookup,pick:this.pick,...r.dns,maxTTL:this.#e,maxItems:this.#t};if(o==null)this.lookup(e,s,(a,c)=>{if(a||c==null||c.length===0){n(a??new YWe("No DNS entries found"));return}this.setRecords(e,c);let u=this.#n.get(e.hostname),p=this.pick(e,u,s.affinity),A;typeof p.port=="number"?A=`:${p.port}`:e.port!==""?A=`:${e.port}`:A="",n(null,`${e.protocol}//${p.family===6?`[${p.address}]`:p.address}${A}`)});else{let a=this.pick(e,o,s.affinity);if(a==null){this.#n.delete(e.hostname),this.runLookup(e,r,n);return}let c;typeof a.port=="number"?c=`:${a.port}`:e.port!==""?c=`:${e.port}`:c="",n(null,`${e.protocol}//${a.family===6?`[${a.address}]`:a.address}${c}`)}}#r(e,r,n){VWe(e.hostname,{all:!0,family:this.dualStack===!1?this.affinity:0,order:"ipv4first"},(o,s)=>
${s}`;break;case"retry":uj(s)&&(r[o]=s);break;case"id":pj(s)&&(r[o]=s);break;case"event":s.length>0&&(r[o]=s);break}}processEvent(e){e.retry&&uj(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id&&pj(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}}};Aj.exports={EventSourceStream:BN}});var gj=m((DI0,zj)=>{"use strict";var{pipeline:n_e}=require("node:stream"),{fetching:o_e}=Wb(),{makeRequest:s_e}=YA(),{webidl:Wi}=it(),{EventSourceStream:i_e}=lj(),{parseMIMEType:a_e}=tr(),{createFastMessageEvent:c_e}=tl(),{isNetworkError:dj}=Sb(),{delay:u_e}=CN(),{kEnumerableProperty:yu}=Xe(),{environmentSettingsObject:bj}=Nr(),fj=!1,Mj=3e3,Jb=0,mj=1,Yb=2,p_e="anonymous",A_e="use-credentials",il=class t extends EventTarget{static{i(this,"EventSource")}#e={open:null,error:null,message:null};#t=null;#n=!1;#r=Jb;#o=null;#s=null;#a;#i;constructor(e,r={}){super(),Wi.util.markAsUncloneable(this);let n="EventSource constructor";Wi.argumentLengthCheck(arguments,1,n),fj||(fj=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=Wi.converters.USVString(e,n,"url"),r=Wi.converters.EventSourceInitDict(r,n,"eventSourceInitDict"),this.#a=r.dispatcher,this.#i={lastEventId:"",reconnectionTime:Mj};let o=bj,s;try{s=new URL(e,o.settingsObject.baseUrl),this.#i.origin=s.origin}catch(u){throw new DOMException(u,"SyntaxError")}this.#t=s.href;let a=p_e;r.withCredentials&&(a=A_e,this.#n=!0);let c={redirect:"follow",keepalive:!0,mode:"cors",credentials:a==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};c.client=bj.settingsObject,c.headersList=[["accept",{name:"accept",value:"text/event-stream"}]],c.cache="no-store",c.initiator="other",c.urlList=[new URL(this.#t)],this.#o=s_e(c),this.#u()}get readyState(){return this.#r}get url(){return this.#t}get withCredentials(){return this.#n}#u(){if(this.#r===Yb)return;this.#r=Jb;let e={request:this.#o,dispatcher:this.#a},r=i(n=>{dj(n)&&(this.dispatchEvent(new Event("error")),this.close()),this.#c()},"processEventSourceEndOfBody");e.processResponseEndOfBody=r,e.processResponse=n=>{if(dj(n))if(n.aborted){this.close(),this.dispatchEvent(new Event("error"));return}else{this.#c();return}let o=n.headersList.get("content-type",!0),s=o!==null?a_e(o):"failure",a=s!=="failure"&&s.essence==="text/event-stream";if(n.status!==200||a===!1){this.close(),this.dispatchEvent(new Event("error"));return}this.#r=mj,this.dispatchEvent(new Event("open")),this.#i.origin=n.urlList[n.urlList.length-1].origin;let c=new i_e({eventSourceSettings:this.#i,push:i(u=>{this.dispatchEvent(c_e(u.type,u.options))},"push")});n_e(n.body.stream,c,u=>{u?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#s=o_e(e)}async#c(){this.#r!==Yb&&(this.#r=Jb,this.dispatchEvent(new Event("error")),await u_e(this.#i.reconnectionTime),this.#r===Jb&&(this.#i.lastEventId.length&&this.#o.headersList.set("last-event-id",this.#i.lastEventId,!0),this.#u()))}close(){Wi.brandCheck(this,t),this.#r!==Yb&&(this.#r=Yb,this.#s.abort(),this.#o=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}},hj={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:Jb,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:mj,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:Yb,writable:!1}};Obj
%s`,F,F,B,n);var x=B.type==="*"?Nw:B.type==="?"?Rw:"\\"+B.type;o=!0,n=n.slice(0,B.reStart)+x+"\\("+F}z(),s&&(n+="\\\\");var _=!1;switch(n.charAt(0)){case"[":case".":case"(":_=!0}for(var ce=c.length-1;ce>-1;ce--){var ye=c[ce],Ne=n.slice(0,ye.reStart),De=n.slice(ye.reStart,ye.reEnd-8),ze=n.slice(ye.reEnd-8,ye.reEnd),Fe=n.slice(ye.reEnd);ze+=Fe;var k=Ne.split("(").length-1,Te=Fe;for(O=0;O<k;O++)Te=Te.replace(/\)[+*?]?/,"");Fe=Te;var T="";Fe===""&&e!==xO&&(T="$");var j=Ne+De+Fe+T+ze;n=j}if(n!==""&&o&&(n="(?=.)"+n),_&&(n=b+n),e===xO)return[n,o];if(!o)return Gke(t);var $e=r.nocase?"i":"";try{var m1=new RegExp("^"+n+"$",$e)}catch{return new RegExp("$.")}return m1._glob=t,m1._src=n,m1}i(kke,"parse");Ur.makeRe=function(t,e){return new ut(t,e||{}).makeRe()};ut.prototype.makeRe=Uke;function Uke(){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?Nw:e.dot?xke:Tke,n=e.nocase?"i":"",o=t.map(function(s){return s.map(function(a){return a===ww?r:typeof a=="string"?Hke(a):a._src}).join("\\/")}).join("|");o="^(?:"+o+")$",this.negate&&(o="^(?!"+o+").*$");try{this.regexp=new RegExp(o,n)}catch{this.regexp=!1}return this.regexp}i(Uke,"makeRe");Ur.match=function(t,e,r){r=r||{};var n=new ut(e,r);return t=t.filter(function(o){return n.match(o)}),n.options.nonull&&!t.length&&t.push(e),t};ut.prototype.match=i(function(e,r){if(typeof r>"u"&&(r=this.partial),this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return e==="";if(e==="/"&&r)return!0;var n=this.options;hf.sep!=="/"&&(e=e.split(hf.sep).join("/")),e=e.split(Iee),this.debug(this.pattern,"split",e);var o=this.set;this.debug(this.pattern,"set",o);var s,a;for(a=e.length-1;a>=0&&(s=e[a],!s);a--);for(a=0;a<o.length;a++){var c=o[a],u=e;n.matchBase&&c.length===1&&(u=[s]);var p=this.matchOne(u,c,r);if(p)return n.flipNegate?!0:!this.negate}return n.flipNegate?!1:this.negate},"match");ut.prototype.matchOne=function(t,e,r){var n=this.options;this.debug("matchOne",{this:this,file:t,pattern:e}),this.debug("matchOne",t.length,e.length);for(var o=0,s=0,a=t.length,c=e.length;o<a&&s<c;o++,s++){this.debug("matchOne loop");var u=e[s],p=t[o];if(this.debug(e,u,p),u===!1)return!1;if(u===ww){this.debug("GLOBSTAR",[e,u,p]);var A=o,l=s+1;if(l===c){for(this.debug("** at the end");o<a;o++)if(t[o]==="."||t[o]===".."||!n.dot&&t[o].charAt(0)===".")return!1;return!0}for(;A<a;){var b=t[A];if(this.debug(`
globstar while`,t,A,e,l,b),this.matchOne(t.slice(A),e.slice(l),r))return this.debug("globstar found match!",A,a,b),!0;if(b==="."||b===".."||!n.dot&&b.charAt(0)==="."){this.debug("dot detected!",t,A,e,l);break}this.debug("globstar swallow a segment, and continue"),A++}return!!(r&&(this.debug(`
>>> no match, partial?`,t,A,e,l),A===a))}var M;if(typeof u=="string"?(M=p===u,this.debug("string match",u,p,M)):(M=p.match(u),this.debug("pattern match",u,p,M)),!M)return!1}if(o===a&&s===c)return!0;if(o===a)return r;if(s===c)return o===a-1&&t[o]==="";throw new Error("wtf?")};function Gke(t){return t.replace(/\\(.)/g,"$1")}i(Gke,"globUnescape");function Hke(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}i(Hke,"regExpEscape")});var zl=m((s60,xee)=>{"use strict";var Zke="2.0.0",e7e=Number.MAX_SAFE_INTEGER||9007199254740991,t7e=16,r7e=250,n7e=["major","premajor","minor","preminor","patch","prepatch","prerelease"];xee.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:t7e,MAX_SAFE_BUILD_LENGTH:r7e,MAX_SAFE_INTEGER:e7e,RELEASE_TYPES:n7e,SEMVER_SPEC_VERSION:Zke,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var Of=m((i60,Tee)=>{"use strict";var o7e=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};Tee.exports=o7e});var gl=m((ns,vee)=>{"use strict";var{MAX_SAFE_COMPONENT_LENGTH:Fw,MAX_SAFE_BUILD_LENGTH:s7e,MAX_LENGTH:i7e}=zl(),a7e=Of();ns=vee.exports={};var c7e=ns.re=[],u7e=ns.safeRe=[],re=ns.src=[],p7e=ns.safeSrc=[],ne=ns.t={},A7e=0,Ww="[a-zA-Z0-9-]",l7e=[["\\s",1],["\\d",i7e],[Ww,s7e]],d7e=i(t=>{for(let[e,r]of l7e)t=t.split(`${e}*`).join(`${e}{0,${r}}`).split(`${e}+`).join(`${e}{1,${r}}`);return t},"makeSafeRegex"),Le=i((t,e,r)=>{let n=d7e(e),o=A7e++;a7e(t,o,e),ne[t]=o,re[o]=e,p7e[o]=n,c7e[o]=new RegExp(e,r?"g":void 0),u7e[o]=new RegExp(n,r?"g":void 0)},"createToken");Le("NUMERICIDENTIFIER","0|[1-9]\\d*");Le("NUMERICIDENTIFIERLOOSE","\\d+");Le("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${Ww}*`);Le("MAINVERSION",`(${re[ne.NUMERICIDENTIFIER]})\\.(${re[ne.NUMERICIDENTIFIER]})\\.(${re[ne.NUMERICIDENTIFIER]})`);Le("MAINVERSIONLOOSE",`(${re[ne.NUMERICIDENTIFIERLOOSE]})\\.(${re[ne.NUMERICIDENTIFIERLOOSE]})\\.(${re[ne.NUMERICIDENTIFIERLOOSE]})`);Le("PRERELEASEIDENTIFIER",`(?:${re[ne.NONNUMERICIDENTIFIER]}|${re[ne.NUMERICIDENTIFIER]})`);Le("PRERELEASEIDENTIFIERLOOSE",`(?:${re[ne.NONNUMERICIDENTIFIER]}|${re[ne.NUMERICIDENTIFIERLOOSE]})`);Le("PRERELEASE",`(?:-(${re[ne.PRERELEASEIDENTIFIER]}(?:\\.${re[ne.PRERELEASEIDENTIFIER]})*))`);Le("PRERELEASELOOSE",`(?:-?(${re[ne.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${re[ne.PRERELEASEIDENTIFIERLOOSE]})*))`);Le("BUILDIDENTIFIER",`${Ww}+`);Le("BUILD",`(?:\\+(${re[ne.BUILDIDENTIFIER]}(?:\\.${re[ne.BUILDIDENTIFIER]})*))`);Le("FULLPLAIN",`v?${re[ne.MAINVERSION]}${re[ne.PRERELEASE]}?${re[ne.BUILD]}?`);Le("FULL",`^${re[ne.FULLPLAIN]}$`);Le("LOOSEPLAIN",`[v=\\s]*${re[ne.MAINVERSIONLOOSE]}${re[ne.PRERELEASELOOSE]}?${re[ne.BUILD]}?`);Le("LOOSE",`^${re[ne.LOOSEPLAIN]}$`);Le("GTLT","((?:<|>)?=?)");Le("XRANGEIDENTIFIERLOOSE",`${re[ne.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);Le("XRANGEIDENTIFIER",`${re[ne.NUMERICIDENTIFIER]}|x|X|\\*`);Le("XRANGEPLAIN",`[v=\\s]*(${re[ne.XRANGEIDENTIFIER]})(?:\\.(${re[ne.XRANGEIDENTIFIER]})(?:\\.(${re[ne.XRANGEIDENTIFIER]})(?:${re[ne.PRERELEASE]})?${re[ne.BUILD]}?)?)?`);Le("XRANGEPLAINLOOSE",`[v=\\s]*(${re[ne.XRANGEIDENTIFIERLOOSE]})(?:\\.(${re[ne.XRANGEIDENTIFIERLOOSE]})(?:\\.(${re[ne.XRANGEIDENTIFIERLOOSE]})(?:${re[ne.PRERELEASELOOSE]})?${re[ne.BUILD]}?)?)?`);Le("XRANGE",`^${re[ne.GTLT]}\\s*${re[ne.XRANGEPLAIN]}$`);Le("XRANGELOOSE",`^${re[ne.GTLT]}\\s*${re[ne.XRANGEPLAINLOOSE]}$`);Le("COERCEPLAIN",`(^|[^\\d])(\\d{1,${Fw}})(?:\\.(\\d{1,${Fw}}))?(?:\\.(\\d{1,${Fw}}))?`);Le("COERCE",`${re[ne.COERCEPLAIN]}(?:$|[^\\d])`);Le("COERCEFULL",re[ne.COERCEPLAIN]+`(?:${re[ne.PRERELEASE]})?(?:${re[ne.BUILD]})?(?:$|[^\\d])`);Le("COERCERTL",re[ne.COERCE],!0);Le("COERCERTLFULL",re[ne.COERCEFULL],!0);Le("LONETILDE","(?:~>?)");Le("TILDETRIM",`(\\s*)${re[ne.LONETILDE]}\\s+`,!0);ns.tildeTrimReplace="$1~";Le("TILDE",`^${re[ne.LONETILDE]}${re[ne.XRANGEPLAIN]}$`);Le("TILDELOOSE",`^${re[ne.LONETILDE]}${re[ne.XRANGEPLAINLOOSE]}$`);Le("LONECARET","(?:\\^)");Le("CARETTRIM",`(\\s*)${re[ne.LONECARET]}\\s+`,!0);ns.caretTrimReplace="$1^";Le("CARET",`^${re[ne.LONECARET]}${re[ne.XRANGEPLAIN]}$`);Le("CARETLOOSE",`^${re[ne.LONECAR
`).join(`
`+s),t.push(o+"m+"+y3.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=rHe()+e+" "+t[0]}i(tHe,"formatArgs");function rHe(){return lt.inspectOpts.hideDate?"":new Date().toISOString()+" "}i(rHe,"getDate");function nHe(...t){return process.stderr.write(C3.format(...t)+`
`)}i(nHe,"log");function oHe(t){t?process.env.DEBUG=t:delete process.env.DEBUG}i(oHe,"save");function sHe(){return process.env.DEBUG}i(sHe,"load");function iHe(t){t.inspectOpts={};let e=Object.keys(lt.inspectOpts);for(let r=0;r<e.length;r++)t.inspectOpts[e[r]]=lt.inspectOpts[e[r]]}i(iHe,"init");y3.exports=C6()(lt);var{formatters:gte}=y3.exports;gte.o=function(t){return this.inspectOpts.colors=this.useColors,C3.inspect(t,this.inspectOpts).split(`
`).map(e=>e.trim()).join(" ")};gte.O=function(t){return this.inspectOpts.colors=this.useColors,C3.inspect(t,this.inspectOpts)}});var B3=m((jW0,D6)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?D6.exports=fte():D6.exports=Ote()});var yte=m(cr=>{"use strict";var aHe=cr&&cr.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var o=Object.getOwnPropertyDescriptor(e,r);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:i(function(){return e[r]},"get")}),Object.defineProperty(t,n,o)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),cHe=cr&&cr.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Ete=cr&&cr.__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)&&aHe(e,t,r);return cHe(e,t),e};Object.defineProperty(cr,"__esModule",{value:!0});cr.req=cr.json=cr.toBuffer=void 0;var uHe=Ete(require("http")),pHe=Ete(require("https"));async function Cte(t){let e=0,r=[];for await(let n of t)e+=n.length,r.push(n);return Buffer.concat(r,e)}i(Cte,"toBuffer");cr.toBuffer=Cte;async function AHe(t){let r=(await Cte(t)).toString("utf8");try{return JSON.parse(r)}catch(n){let o=n;throw o.message+=` (input: ${r})`,o}}i(AHe,"json");cr.json=AHe;function lHe(t,e={}){let n=((typeof t=="string"?t:t.href).startsWith("https:")?pHe:uHe).request(t,e),o=new Promise((s,a)=>{n.once("response",s).once("error",a).end()});return n.then=o.then.bind(o),n}i(lHe,"req");cr.req=lHe});var Ite=m(Vr=>{"use strict";var qte=Vr&&Vr.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var o=Object.getOwnPropertyDescriptor(e,r);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:i(function(){return e[r]},"get")}),Object.defineProperty(t,n,o)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),dHe=Vr&&Vr.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Dte=Vr&&Vr.__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)&&qte(e,t,r);return dHe(e,t),e},bHe=Vr&&Vr.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&qte(e,t,r)};Object.defineProperty(Vr,"__esModule",{value:!0});Vr.Agent=void 0;var fHe=Dte(require("net")),Bte=Dte(require("http")),MHe=require("https");bHe(yte(),Vr);var as=Symbol("AgentBaseInternalState"),I6=class extends Bte.Agent{static{i(this,"Agent")}constructor(e){super(e),this[as]={}}isSecureEndpoint(e){if(e){if(typeof e.secureEndpoint=="boolean")return e.secureEndpoint;if(typeof e.protocol=="string")return e.protocol==="https:"}let{stack:r}=new Error;return typeof r!="string"?!1:r.split(`
`).some(n=>n.indexOf("(https.js:")!==-1||n.indexOf("node:https:")!==-1)}incrementSockets(e){if(this.maxSockets===1/0&&this.maxTotalSockets===1/0)return null;this.sockets[e]||(this.sockets[e]=[]);let r=new fHe.Socket({writable:!1});return this.sockets[e].push(r),this.totalSocketCount++,r}decrementSockets(e,r){if(!this.sockets[e]||r===null)return;let n=this.sockets[e],o=n.indexOf(r);o!==-1&&(n.splice(o,1),this.totalSocketCount--,n.length===0&&delete this.sockets[e])}getName(e){return this.isSecureEndpoint(e)?MHe.Agent.prototype.getName.call(this,e):super.getName(e)}createSocket(e,r,n){let o={...r,secureEndpoint:this.isSecureEndpoint(r)},s=this.getName(o),a=this.incrementSockets(s);Promise.resolve().then(()=>this.connect(e,o)).then(c=>{if(this.decrementSockets(s,a),c instanceof Bte.Agent)try{return c.addRequest(e,o)}catch(u){return n(u)}this[as].currentSocket=c,super.createSocket(e,r,n)},c=>{this.decrementSockets(s,a),n(c)})}createConnection(){let e=this[as].currentSocket;if(this[as].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[as].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[as]&&(this[as].defaultPort=e)}get protocol(){return this[as].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[as]&&(this[as].protocol=e)}};Vr.Agent=I6});var Rte=m(Nl=>{"use strict";var mHe=Nl&&Nl.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Nl,"__esModule",{value:!0});Nl.parseProxyResponse=void 0;var hHe=mHe(B3()),q3=(0,hHe.default)("https-proxy-agent:parse-proxy-response");function zHe(t){return new Promise((e,r)=>{let n=0,o=[];function s(){let A=t.read();A?p(A):t.once("readable",s)}i(s,"read");function a(){t.removeListener("end",c),t.removeListener("error",u),t.removeListener("readable",s)}i(a,"cleanup");function c(){a(),q3("onend"),r(new Error("Proxy connection ended before receiving CONNECT response"))}i(c,"onend");function u(A){a(),q3("onerror %o",A),r(A)}i(u,"onerror");function p(A){o.push(A),n+=A.length;let l=Buffer.concat(o,n),b=l.indexOf(`\r
\r
`);if(b===-1){q3("have not received end of HTTP headers yet..."),s();return}let M=l.slice(0,b).toString("ascii").split(`\r
`),z=M.shift();if(!z)return t.destroy(),r(new Error("No header received from proxy CONNECT response"));let O=z.split(" "),y=+O[1],E=O.slice(2).join(" "),B={};for(let q of M){if(!q)continue;let D=q.indexOf(":");if(D===-1)return t.destroy(),r(new Error(`Invalid header from proxy CONNECT response: "${q}"`));let F=q.slice(0,D).toLowerCase(),x=q.slice(D+1).trimStart(),_=B[F];typeof _=="string"?B[F]=[_,x]:Array.isArray(_)?_.push(x):B[F]=x}q3("got proxy server response: %o %o",z,B),a(),e({connect:{statusCode:y,statusText:E,headers:B},buffered:l})}i(p,"ondata"),t.on("error",u),t.on("end",c),s()})}i(zHe,"parseProxyResponse");Nl.parseProxyResponse=zHe});var xte=m(In=>{"use strict";var gHe=In&&In.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var o=Object.getOwnPropertyDescriptor(e,r);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:i(function(){return e[r]},"get")}),Object.defineProperty(t,n,o)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),OHe=In&&In.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Fte=In&&In.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&gHe(e,t,r);return OHe(e,t),e},Wte=In&&In.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(In,"__esModule",{value:!0});In.HttpsProxyAgent=void 0;var D3=Fte(require("net")),Nte=Fte(require("tls")),EHe=Wte(require("assert")),CHe=Wte(B3()),yHe=Ite(),BHe=require("url"),qHe=Rte(),Tf=(0,CHe.default)("https-proxy-agent"),wte=i(t=>t.servername===void 0&&t.host&&!D3.isIP(t.host)?{...t,servername:t.host}:t,"setServernameFromNonIpHost"),I3=class extends yHe.Agent{static{i(this,"HttpsProxyAgent")}constructor(e,r){super(r),this.options={path:void 0},this.proxy=typeof e=="string"?new BHe.URL(e):e,this.proxyHeaders=r?.headers??{},Tf("Creating new HttpsProxyAgent instance: %o",this.proxy.href);let n=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),o=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={ALPNProtocols:["http/1.1"],...r?Ste(r,"headers"):null,host:n,port:o}}async connect(e,r){let{proxy:n}=this;if(!r.host)throw new TypeError('No "host" provided');let o;n.protocol==="https:"?(Tf("Creating `tls.Socket`: %o",this.connectOpts),o=Nte.connect(wte(this.connectOpts))):(Tf("Creating `net.Socket`: %o",this.connectOpts),o=D3.connect(this.connectOpts));let s=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders},a=D3.isIPv6(r.host)?`[${r.host}]`:r.host,c=`CONNECT ${a}:${r.port} HTTP/1.1\r
`;if(n.username||n.password){let b=`${decodeURIComponent(n.username)}:${decodeURIComponent(n.password)}`;s["Proxy-Authorization"]=`Basic ${Buffer.from(b).toString("base64")}`}s.Host=`${a}:${r.port}`,s["Proxy-Connection"]||(s["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let b of Object.keys(s))c+=`${b}: ${s[b]}\r
`;let u=(0,qHe.parseProxyResponse)(o);o.write(`${c}\r
`);let{connect:p,buffered:A}=await u;if(e.emit("proxyConnect",p),this.emit("proxyConnect",p,e),p.statusCode===200)return e.once("socket",DHe),r.secureEndpoint?(Tf("Upgrading socket connection to TLS"),Nte.connect({...Ste(wte(r),"host","path","port"),socket:o})):o;o.destroy();let l=new D3.Socket({writable:!1});return l.readable=!0,e.once("socket",b=>{Tf("Replaying proxy buffer for failed request"),(0,EHe.default)(b.listenerCount("data")>0),b.push(A),b.push(null)}),l}};I3.protocols=["http","https"];In.HttpsProxyAgent=I3;function DHe(t){t.resume()}i(DHe,"resume");function Ste(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}i(Ste,"omit")});var Lte=m(ur=>{"use strict";var IHe=ur&&ur.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var o=Object.getOwnPropertyDescriptor(e,r);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:i(function(){return e[r]},"get")}),Object.defineProperty(t,n,o)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),RHe=ur&&ur.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Tte=ur&&ur.__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)&&IHe(e,t,r);return RHe(e,t),e};Object.defineProperty(ur,"__esModule",{value:!0});ur.req=ur.json=ur.toBuffer=void 0;var NHe=Tte(require("http")),wHe=Tte(require("https"));async function vte(t){let e=0,r=[];for await(let n of t)e+=n.length,r.push(n);return Buffer.concat(r,e)}i(vte,"toBuffer");ur.toBuffer=vte;async function SHe(t){let r=(await vte(t)).toString("utf8");try{return JSON.parse(r)}catch(n){let o=n;throw o.message+=` (input: ${r})`,o}}i(SHe,"json");ur.json=SHe;function FHe(t,e={}){let n=((typeof t=="string"?t:t.href).startsWith("https:")?wHe:NHe).request(t,e),o=new Promise((s,a)=>{n.once("response",s).once("error",a).end()});return n.then=o.then.bind(o),n}i(FHe,"req");ur.req=FHe});var kte=m(Jr=>{"use strict";var Qte=Jr&&Jr.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var o=Object.getOwnPropertyDescriptor(e,r);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:i(function(){return e[r]},"get")}),Object.defineProperty(t,n,o)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),WHe=Jr&&Jr.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Pte=Jr&&Jr.__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)&&Qte(e,t,r);return WHe(e,t),e},xHe=Jr&&Jr.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&Qte(e,t,r)};Object.defineProperty(Jr,"__esModule",{value:!0});Jr.Agent=void 0;var THe=Pte(require("net")),_te=Pte(require("http")),vHe=require("https");xHe(Lte(),Jr);var cs=Symbol("AgentBaseInternalState"),R6=class extends _te.Agent{static{i(this,"Agent")}constructor(e){super(e),this[cs]={}}isSecureEndpoint(e){if(e){if(typeof e.secureEndpoint=="boolean")return e.secureEndpoint;if(typeof e.protocol=="string")return e.protocol==="https:"}let{stack:r}=new Error;return typeof r!="string"?!1:r.split(`
`).some(n=>n.indexOf("(https.js:")!==-1||n.indexOf("node:https:")!==-1)}incrementSockets(e){if(this.maxSockets===1/0&&this.maxTotalSockets===1/0)return null;this.sockets[e]||(this.sockets[e]=[]);let r=new THe.Socket({writable:!1});return this.sockets[e].push(r),this.totalSocketCount++,r}decrementSockets(e,r){if(!this.sockets[e]||r===null)return;let n=this.sockets[e],o=n.indexOf(r);o!==-1&&(n.splice(o,1),this.totalSocketCount--,n.length===0&&delete this.sockets[e])}getName(e){return(typeof e.secureEndpoint=="boolean"?e.secureEndpoint:this.isSecureEndpoint(e))?vHe.Agent.prototype.getName.call(this,e):super.getName(e)}createSocket(e,r,n){let o={...r,secureEndpoint:this.isSecureEndpoint(r)},s=this.getName(o),a=this.incrementSockets(s);Promise.resolve().then(()=>this.connect(e,o)).then(c=>{if(this.decrementSockets(s,a),c instanceof _te.Agent)return c.addRequest(e,o);this[cs].currentSocket=c,super.createSocket(e,r,n)},c=>{this.decrementSockets(s,a),n(c)})}createConnection(){let e=this[cs].currentSocket;if(this[cs].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[cs].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[cs]&&(this[cs].defaultPort=e)}get protocol(){return this[cs].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[cs]&&(this[cs].protocol=e)}};Jr.Agent=R6});var Hte=m(Rn=>{"use strict";var LHe=Rn&&Rn.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var o=Object.getOwnPropertyDescriptor(e,r);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:i(function(){return e[r]},"get")}),Object.defineProperty(t,n,o)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),_He=Rn&&Rn.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Gte=Rn&&Rn.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&LHe(e,t,r);return _He(e,t),e},QHe=Rn&&Rn.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Rn,"__esModule",{value:!0});Rn.HttpProxyAgent=void 0;var PHe=Gte(require("net")),kHe=Gte(require("tls")),UHe=QHe(B3()),GHe=require("events"),HHe=kte(),Ute=require("url"),wl=(0,UHe.default)("http-proxy-agent"),R3=class extends HHe.Agent{static{i(this,"HttpProxyAgent")}constructor(e,r){super(r),this.proxy=typeof e=="string"?new Ute.URL(e):e,this.proxyHeaders=r?.headers??{},wl("Creating new HttpProxyAgent instance: %o",this.proxy.href);let n=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),o=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={...r?XHe(r,"headers"):null,host:n,port:o}}addRequest(e,r){e._header=null,this.setRequestProps(e,r),super.addRequest(e,r)}setRequestProps(e,r){let{proxy:n}=this,o=r.secureEndpoint?"https:":"http:",s=e.getHeader("host")||"localhost",a=`${o}//${s}`,c=new Ute.URL(e.path,a);r.port!==80&&(c.port=String(r.port)),e.path=String(c);let u=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders};if(n.username||n.password){let p=`${decodeURIComponent(n.username)}:${decodeURIComponent(n.password)}`;u["Proxy-Authorization"]=`Basic ${Buffer.from(p).toString("base64")}`}u["Proxy-Connection"]||(u["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let p of Object.keys(u)){let A=u[p];A&&e.setHeader(p,A)}}async connect(e,r){e._header=null,e.path.includes("://")||this.setRequestProps(e,r);let n,o;wl("Regenerating stored HTTP header string for request"),e._implicitHeader(),e.outputData&&e.outputData.length>0&&(wl("Patching connection write() output buffer with updated header"),n=e.outputData[0].data,o=n.indexOf(`\r
\r
`)+4,e.outputData[0].data=e._header+n.substring(o),wl("Output buffer: %o",e.outputData[0].data));let s;return this.proxy.protocol==="https:"?(wl("Creating `tls.Socket`: %o",this.connectOpts),s=kHe.connect(this.connectOpts)):(wl("Creating `net.Socket`: %o",this.connectOpts),s=PHe.connect(this.connectOpts)),await(0,GHe.once)(s,"connect"),s}};R3.protocols=["http","https"];Rn.HttpProxyAgent=R3;function XHe(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}i(XHe,"omit")});var dre=m(U3=>{"use strict";Object.defineProperty(U3,"__esModule",{value:!0});U3.state=void 0;U3.state={instrumenterImplementation:void 0}});var Nre=m(J3=>{"use strict";Object.defineProperty(J3,"__esModule",{value:!0});J3.state=void 0;J3.state={operationRequestMap:new WeakMap}});var cse=m(Yl=>{"use strict";Object.defineProperty(Yl,"__esModule",{value:!0});var lje=require("os"),dje=require("util");function bje(t){return t&&typeof t=="object"&&"default"in t?t:{default:t}}i(bje,"_interopDefaultLegacy");var fje=bje(dje);function Mje(t,...e){process.stderr.write(`${fje.default.format(t,...e)}${lje.EOL}`)}i(Mje,"log");var Koe=typeof process<"u"&&process.env&&process.env.DEBUG||void 0,ese,aT=[],cT=[],dC=[];Koe&&uT(Koe);var tse=Object.assign(t=>rse(t),{enable:uT,enabled:pT,disable:mje,log:Mje});function uT(t){ese=t,aT=[],cT=[];let e=/\*/g,r=t.split(",").map(n=>n.trim().replace(e,".*?"));for(let n of r)n.startsWith("-")?cT.push(new RegExp(`^${n.substr(1)}$`)):aT.push(new RegExp(`^${n}$`));for(let n of dC)n.enabled=pT(n.namespace)}i(uT,"enable");function pT(t){if(t.endsWith("*"))return!0;for(let e of cT)if(e.test(t))return!1;for(let e of aT)if(e.test(t))return!0;return!1}i(pT,"enabled");function mje(){let t=ese||"";return uT(""),t}i(mje,"disable");function rse(t){let e=Object.assign(r,{enabled:pT(t),destroy:hje,log:tse.log,namespace:t,extend:zje});function r(...n){e.enabled&&(n.length>0&&(n[0]=`${t} ${n[0]}`),e.log(...n))}return i(r,"debug"),dC.push(e),e}i(rse,"createDebugger");function hje(){let t=dC.indexOf(this);return t>=0?(dC.splice(t,1),!0):!1}i(hje,"destroy");function zje(t){let e=rse(`${this.namespace}:${t}`);return e.log=this.log,e}i(zje,"extend");var CM=tse,nse=new Set,AC=typeof process<"u"&&process.env&&process.env.AZURE_LOG_LEVEL||void 0,bC,fC=CM("azure");fC.log=(...t)=>{CM.log(...t)};var AT=["verbose","info","warning","error"];AC&&(ase(AC)?ose(AC):console.error(`AZURE_LOG_LEVEL set to unknown log level '${AC}'; logging is not enabled. Acceptable values: ${AT.join(", ")}.`));function ose(t){if(t&&!ase(t))throw new Error(`Unknown log level '${t}'. Acceptable values: ${AT.join(",")}`);bC=t;let e=[];for(let r of nse)ise(r)&&e.push(r.namespace);CM.enable(e.join(","))}i(ose,"setLogLevel");function gje(){return bC}i(gje,"getLogLevel");var Zoe={verbose:400,info:300,warning:200,error:100};function Oje(t){let e=fC.extend(t);return sse(fC,e),{error:lC(e,"error"),warning:lC(e,"warning"),info:lC(e,"info"),verbose:lC(e,"verbose")}}i(Oje,"createClientLogger");function sse(t,e){e.log=(...r)=>{t.log(...r)}}i(sse,"patchLogMethod");function lC(t,e){let r=Object.assign(t.extend(e),{level:e});if(sse(t,r),ise(r)){let n=CM.disable();CM.enable(n+","+r.namespace)}return nse.add(r),r}i(lC,"createLogger");function ise(t){return!!(bC&&Zoe[t.level]<=Zoe[bC])}i(ise,"shouldEnable");function ase(t){return AT.includes(t)}i(ase,"isAzureLogLevel");Yl.AzureLogger=fC;Yl.createClientLogger=Oje;Yl.getLogLevel=gje;Yl.setLogLevel=ose});var bT=m(BM=>{"use strict";Object.defineProperty(BM,"__esModule",{value:!0});var $l=new WeakMap,MC=new WeakMap,yM=class t{static{i(this,"AbortSignal")}constructor(){this.onabort=null,$l.set(this,[]),MC.set(this,!1)}get aborted(){if(!MC.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");return MC.get(this)}static get none(){return new t}addEventListener(e,r){if(!$l.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");$l.get(this).push(r)}removeEventListener(e,r){if(!$l.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");let n=$l.get(this),o=n.indexOf(r);o>-
Polling from: ${r.config.operationLocation}
Operation status: ${A}
Polling status: ${hse.includes(A)?"Stopped":"Running"}`),A==="succeeded"){let l=a(p,r);if(l!==void 0)return{response:await e(l).catch(Mse({state:r,stateProxy:n,isOperationError:c})),status:A}}return{response:p,status:A}}i(jje,"pollOperationHelper");async function Ese(t){let{poll:e,state:r,stateProxy:n,options:o,getOperationStatus:s,getResourceLocation:a,getOperationLocation:c,isOperationError:u,withOperationLocation:p,getPollingInterval:A,processResult:l,getError:b,updateState:M,setDelay:z,isDone:O,setErrorAsResult:y}=t,{operationLocation:E}=r.config;if(E!==void 0){let{response:B,status:q}=await jje({poll:e,getOperationStatus:s,state:r,stateProxy:n,operationLocation:E,getResourceLocation:a,isOperationError:u,options:o});if(gse({status:q,response:B,state:r,stateProxy:n,isDone:O,processResult:l,getError:b,setErrorAsResult:y}),!hse.includes(q)){let D=A?.(B);D&&z(D);let F=c?.(B,r);if(F!==void 0){let x=E!==F;r.config.operationLocation=F,p?.(F,x)}else p?.(E,!1)}M?.(r,B)}}i(Ese,"pollOperation");function Cse(t){let{azureAsyncOperation:e,operationLocation:r}=t;return r??e}i(Cse,"getOperationLocationPollingUrl");function yse(t){return t.headers.location}i(yse,"getLocationHeader");function Bse(t){return t.headers["operation-location"]}i(Bse,"getOperationLocationHeader");function qse(t){return t.headers["azure-asyncoperation"]}i(qse,"getAzureAsyncOperationHeader");function Kje(t){var e;let{location:r,requestMethod:n,requestPath:o,resourceLocationConfig:s}=t;switch(n){case"PUT":return o;case"DELETE":return;case"PATCH":return(e=a())!==null&&e!==void 0?e:o;default:return a()}function a(){switch(s){case"azure-async-operation":return;case"original-uri":return o;default:return r}}i(a,"getDefault")}i(Kje,"findResourceLocation");function Dse(t){let{rawResponse:e,requestMethod:r,requestPath:n,resourceLocationConfig:o}=t,s=Bse(e),a=qse(e),c=Cse({operationLocation:s,azureAsyncOperation:a}),u=yse(e),p=r?.toLocaleUpperCase();return c!==void 0?{mode:"OperationLocation",operationLocation:c,resourceLocation:Kje({requestMethod:p,location:u,requestPath:n,resourceLocationConfig:o})}:u!==void 0?{mode:"ResourceLocation",operationLocation:u}:p==="PUT"&&n?{mode:"Body",operationLocation:n}:void 0}i(Dse,"inferLroMode");function Ise(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 BT(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 np.verbose(`LRO: unrecognized operation status: ${e}`),e}}i(Ise,"transformStatus");function Zje(t){var e;let{status:r}=(e=t.body)!==null&&e!==void 0?e:{};return Ise({status:r,statusCode:t.statusCode})}i(Zje,"getStatus");function eKe(t){var e,r;let{properties:n,provisioningState:o}=(e=t.body)!==null&&e!==void 0?e:{},s=(r=n?.provisioningState)!==null&&r!==void 0?r:o;return Ise({status:s,statusCode:t.statusCode})}i(eKe,"getProvisioningState");function BT(t){return t===202?"running":t<300?"succeeded":"failed"}i(BT,"toOperationStatus");function Rse({rawResponse:t}){let e=t.headers["retry-after"];if(e!==void 0){let r=parseInt(e);return isNaN(r)?tKe(new Date(e)):r*1e3}}i(Rse,"parseRetryAfter");function Nse(t){let e=t.flatResponse.error;if(!e){np.warning("The long-running operation failed but there is no error property in the response's body");return}if(!e.code||!e.message){np.warning("The long-running operation failed but the error property in the response's body doesn't contain code or message");return}return e}i(Nse,"getErrorFromResponse");function tKe(t){let e=Math.floor(new Date().getTime()),r=t.getTime();if(e<r)return r-e}i(tKe,"calculatePollingIntervalFromDate");function wse(t){let{response:e,state:r,operationLocation:n}=t;function o(){var a;switch
`:case"\r":case" ":case" ":continue;default:throw Error("invalid base64 string.")}switch(o){case 0:a=s,o=1;break;case 1:r[n++]=a<<2|(s&48)>>4,a=s,o=2;break;case 2:r[n++]=(a&15)<<4|(s&60)>>2,a=s,o=3;break;case 3:r[n++]=(a&3)<<6|s,o=0;break}}if(o==1)throw Error("invalid base64 string.");return r.subarray(0,n)}i(_Ke,"base64decode");r2.base64decode=_Ke;function QKe(t){let e="",r=0,n,o=0;for(let s=0;s<t.length;s++)switch(n=t[s],r){case 0:e+=ra[n>>2],o=(n&3)<<4,r=1;break;case 1:e+=ra[o|n>>4],o=(n&15)<<2,r=2;break;case 2:e+=ra[o|n>>6],e+=ra[n&63],r=0;break}return r&&(e+=ra[o],e+="=",r==1&&(e+="=")),e}i(QKe,"base64encode");r2.base64encode=QKe});var cie=m(xC=>{"use strict";Object.defineProperty(xC,"__esModule",{value:!0});xC.utf8read=void 0;var TT=i(t=>String.fromCharCode.apply(String,t),"fromCharCodes");function PKe(t){if(t.length<1)return"";let e=0,r=[],n=[],o=0,s,a=t.length;for(;e<a;)s=t[e++],s<128?n[o++]=s:s>191&&s<224?n[o++]=(s&31)<<6|t[e++]&63:s>239&&s<365?(s=((s&7)<<18|(t[e++]&63)<<12|(t[e++]&63)<<6|t[e++]&63)-65536,n[o++]=55296+(s>>10),n[o++]=56320+(s&1023)):n[o++]=(s&15)<<12|(t[e++]&63)<<6|t[e++]&63,o>8191&&(r.push(TT(n)),o=0);return r.length?(o&&r.push(TT(n.slice(0,o))),r.join("")):TT(n.slice(0,o))}i(PKe,"utf8read");xC.utf8read=PKe});var FM=m(Ws=>{"use strict";Object.defineProperty(Ws,"__esModule",{value:!0});Ws.WireType=Ws.mergeBinaryOptions=Ws.UnknownFieldHandler=void 0;var kKe;(function(t){t.symbol=Symbol.for("protobuf-ts/unknown"),t.onRead=(r,n,o,s,a)=>{(e(n)?n[t.symbol]:n[t.symbol]=[]).push({no:o,wireType:s,data:a})},t.onWrite=(r,n,o)=>{for(let{no:s,wireType:a,data:c}of t.list(n))o.tag(s,a).raw(c)},t.list=(r,n)=>{if(e(r)){let o=r[t.symbol];return n?o.filter(s=>s.no==n):o}return[]},t.last=(r,n)=>t.list(r,n).slice(-1)[0];let e=i(r=>r&&Array.isArray(r[t.symbol]),"is")})(kKe=Ws.UnknownFieldHandler||(Ws.UnknownFieldHandler={}));function UKe(t,e){return Object.assign(Object.assign({},t),e)}i(UKe,"mergeBinaryOptions");Ws.mergeBinaryOptions=UKe;var GKe;(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"})(GKe=Ws.WireType||(Ws.WireType={}))});var vC=m(Mr=>{"use strict";Object.defineProperty(Mr,"__esModule",{value:!0});Mr.varint32read=Mr.varint32write=Mr.int64toString=Mr.int64fromString=Mr.varint64write=Mr.varint64read=void 0;function HKe(){let t=0,e=0;for(let n=0;n<28;n+=7){let o=this.buf[this.pos++];if(t|=(o&127)<<n,(o&128)==0)return this.assertBounds(),[t,e]}let r=this.buf[this.pos++];if(t|=(r&15)<<28,e=(r&112)>>4,(r&128)==0)return this.assertBounds(),[t,e];for(let n=3;n<=31;n+=7){let o=this.buf[this.pos++];if(e|=(o&127)<<n,(o&128)==0)return this.assertBounds(),[t,e]}throw new Error("invalid varint")}i(HKe,"varint64read");Mr.varint64read=HKe;function XKe(t,e,r){for(let s=0;s<28;s=s+7){let a=t>>>s,c=!(!(a>>>7)&&e==0),u=(c?a|128:a)&255;if(r.push(u),!c)return}let n=t>>>28&15|(e&7)<<4,o=e>>3!=0;if(r.push((o?n|128:n)&255),!!o){for(let s=3;s<31;s=s+7){let a=e>>>s,c=!!(a>>>7),u=(c?a|128:a)&255;if(r.push(u),!c)return}r.push(e>>>31&1)}}i(XKe,"varint64write");Mr.varint64write=XKe;var TC=65536*65536;function VKe(t){let e=t[0]=="-";e&&(t=t.slice(1));let r=1e6,n=0,o=0;function s(a,c){let u=Number(t.slice(a,c));o*=r,n=n*r+u,n>=TC&&(o=o+(n/TC|0),n=n%TC)}return i(s,"add1e6digit"),s(-24,-18),s(-18,-12),s(-12,-6),s(-6),[e,n,o]}i(VKe,"int64fromString");Mr.int64fromString=VKe;function JKe(t,e){if(e>>>0<=2097151)return""+(TC*e+(t>>>0));let r=t&16777215,n=(t>>>24|e<<8)>>>0&16777215,o=e>>16&65535,s=r+n*6777216+o*6710656,a=n+o*8147497,c=o*2,u=1e7;s>=u&&(a+=Math.floor(s/u),s%=u),a>=u&&(c+=Math.floor(a/u),a%=u);function p(A,l){let b=A?String(A):"";return l?"0000000".slice(b.length)+b:b}return i(p,"decimalFrom1e7"),p(c,0)+p(a,c)+p(s,1)}i(JKe,"int64toString");Mr.int64toString=JKe;function YKe(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)}}i(YKe,"varint32write");Mr.varint32write=YKe;function $Ke(){let t=this.buf[this.pos++],e=t&127;if((t&128)==0)return
`)}};py.RpcError=uv});var Av=m(ly=>{"use strict";Object.defineProperty(ly,"__esModule",{value:!0});ly.mergeRpcOptions=void 0;var Pie=q1();function he0(t,e){if(!e)return t;let r={};Ay(t,r),Ay(e,r);for(let n of Object.keys(e)){let o=e[n];switch(n){case"jsonOptions":r.jsonOptions=Pie.mergeJsonOptions(t.jsonOptions,r.jsonOptions);break;case"binaryOptions":r.binaryOptions=Pie.mergeBinaryOptions(t.binaryOptions,r.binaryOptions);break;case"meta":r.meta={},Ay(t.meta,r.meta),Ay(e.meta,r.meta);break;case"interceptors":r.interceptors=t.interceptors?t.interceptors.concat(o):o.concat();break}}return r}i(he0,"mergeRpcOptions");ly.mergeRpcOptions=he0;function Ay(t,e){if(!t)return;let r=e;for(let[n,o]of Object.entries(t))o instanceof Date?r[n]=new Date(o.getTime()):Array.isArray(o)?r[n]=o.concat():r[n]=o}i(Ay,"copy")});var dv=m(cp=>{"use strict";Object.defineProperty(cp,"__esModule",{value:!0});cp.Deferred=cp.DeferredState=void 0;var vs;(function(t){t[t.PENDING=0]="PENDING",t[t.REJECTED=1]="REJECTED",t[t.RESOLVED=2]="RESOLVED"})(vs=cp.DeferredState||(cp.DeferredState={}));var lv=class{static{i(this,"Deferred")}constructor(e=!0){this._state=vs.PENDING,this._promise=new Promise((r,n)=>{this._resolve=r,this._reject=n}),e&&this._promise.catch(r=>{})}get state(){return this._state}get promise(){return this._promise}resolve(e){if(this.state!==vs.PENDING)throw new Error(`cannot resolve ${vs[this.state].toLowerCase()}`);this._resolve(e),this._state=vs.RESOLVED}reject(e){if(this.state!==vs.PENDING)throw new Error(`cannot reject ${vs[this.state].toLowerCase()}`);this._reject(e),this._state=vs.REJECTED}resolvePending(e){this._state===vs.PENDING&&this.resolve(e)}rejectPending(e){this._state===vs.PENDING&&this.reject(e)}};cp.Deferred=lv});var fv=m(dy=>{"use strict";Object.defineProperty(dy,"__esModule",{value:!0});dy.RpcOutputStreamController=void 0;var kie=dv(),up=q1(),bv=class{static{i(this,"RpcOutputStreamController")}constructor(){this._lis={nxt:[],msg:[],err:[],cmp:[]},this._closed=!1,this._itState={q:[]}}onNext(e){return this.addLis(e,this._lis.nxt)}onMessage(e){return this.addLis(e,this._lis.msg)}onError(e){return this.addLis(e,this._lis.err)}onComplete(e){return this.addLis(e,this._lis.cmp)}addLis(e,r){return r.push(e),()=>{let n=r.indexOf(e);n>=0&&r.splice(n,1)}}clearLis(){for(let e of Object.values(this._lis))e.splice(0,e.length)}get closed(){return this._closed!==!1}notifyNext(e,r,n){up.assert((e?1:0)+(r?1:0)+(n?1:0)<=1,"only one emission at a time"),e&&this.notifyMessage(e),r&&this.notifyError(r),n&&this.notifyComplete()}notifyMessage(e){up.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){up.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(){up.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:i(()=>{let e=this._itState;up.assert(e,"bad state"),up.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 kie.Deferred,e.p.promise)},"next")}}pushIt(e){let r=this._itState;if(r.p){let n=r.p;up.assert(n.state==kie.DeferredState.PENDING,"iterator contract broken"),"value"in e?n.resolve(e):n.reject(e),delete r.p}else r.q.push(e)}};dy.RpcOutputStreamController=bv});var mv=m(u2=>{"use strict";var ze0=u2&&u2.__awaiter||function(t,e,r,n){function o(s){return s instanceof r?s:new r(function(a){a(s)})}return i(o,"adopt"),new(r||(r=Promise))(function(s,a){function c(A){try{p(n.next(A))}catch(l){a(l)}}i(c,"fulfilled");function u(A){try{p(n.throw(A))}catch(l){a(l)}}i(u,"rejected");function p(A){A.done?s(A.value):o(A.value).then(c,u)}i(p,"step"),p((n=n.apply(t,e||[])).next())})};Object.definePrope
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`))}i(ko0,"logUnexpecedPropertyAccessOnce");function Uo0(){Object.keys(u4).forEach(function(t){delete u4[t]})}i(Uo0,"resetLoggedProperties")});var A4=m(Ps=>{"use strict";Ps.__esModule=!0;Ps.HandlebarsEnvironment=u_;function Gpe(t){return t&&t.__esModule?t:{default:t}}i(Gpe,"_interopRequireDefault");var zp=$t(),Go0=on(),a_=Gpe(Go0),Ho0=n_(),Xo0=Qpe(),Vo0=s_(),p4=Gpe(Vo0),Jo0=i_(),Yo0="4.7.9";Ps.VERSION=Yo0;var $o0=8;Ps.COMPILER_REVISION=$o0;var jo0=7;Ps.LAST_COMPATIBLE_COMPILER_REVISION=jo0;var Ko0={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"};Ps.REVISION_CHANGES=Ko0;var c_="[object Object]";function u_(t,e,r){this.helpers=t||{},this.partials=e||{},this.decorators=r||{},Ho0.registerDefaultHelpers(this),Xo0.registerDefaultDecorators(this)}i(u_,"HandlebarsEnvironment");u_.prototype={constructor:u_,logger:p4.default,log:p4.default.log,registerHelper:i(function(e,r){if(zp.toString.call(e)===c_){if(r)throw new a_.default("Arg not supported with multiple helpers");zp.extend(this.helpers,e)}else this.helpers[e]=r},"registerHelper"),unregisterHelper:i(function(e){delete this.helpers[e]},"unregisterHelper"),registerPartial:i(function(e,r){if(zp.toString.call(e)===c_)zp.extend(this.partials,e);else{if(typeof r>"u")throw new a_.default('Attempting to register a partial called "'+e+'" as undefined');this.partials[e]=r}},"registerPartial"),unregisterPartial:i(function(e){delete this.partials[e]},"unregisterPartial"),registerDecorator:i(function(e,r){if(zp.toString.call(e)===c_){if(r)throw new a_.default("Arg not supported with multiple decorators");zp.extend(this.decorators,e)}else this.decorators[e]=r},"registerDecorator"),unregisterDecorator:i(function(e){delete this.decorators[e]},"unregisterDecorator"),resetLoggedPropertyAccesses:i(function(){Jo0.resetLoggedProperties()},"resetLoggedPropertyAccesses")};var Zo0=p4.default.log;Ps.log=Zo0;Ps.createFrame=zp.createFrame;Ps.logger=p4.default});var Xpe=m((l4,Hpe)=>{"use strict";l4.__esModule=!0;function p_(t){this.string=t}i(p_,"SafeString");p_.prototype.toString=p_.prototype.toHTML=function(){return""+this.string};l4.default=p_;Hpe.exports=l4.default});var Vpe=m(A_=>{"use strict";A_.__esModule=!0;A_.wrapHelper=es0;function es0(t,e){if(typeof t!="function")return t;var r=i(function(){var o=arguments[arguments.length-1];return arguments[arguments.length-1]=e(o),t.apply(this,arguments)},"wrapper");return r}i(es0,"wrapHelper")});var Zpe=m(yc=>{"use strict";yc.__esModule=!0;yc.checkRevision=is0;yc.template=as0;yc.wrapProgram=d4;yc.resolvePartial=cs0;yc.invokePartial=us0;yc.noop=jpe;function ts0(t){return t&&t.__esModule?t:{default:t}}i(ts0,"_interopRequireDefault");function rs0(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}i(rs0,"_interopRequireWildcard");var ns0=$t(),q2=rs0(ns0),os0=on(),aa=ts0(os0),ca=A4(),Jpe=n_(),ss0=Vpe(),Ype=i_();function is0(t){var e=t&&t[0]||1,r=ca.COMPILER_REVISION;if(!(e>=ca.LAST_COMPATIBLE_COMPILER_REVISION&&e<=ca.COMPILER_REVISION))if(e<ca.LAST_COMPATIBLE_COMPILER_REVISION){var n=ca.REVISION_CHANGES[r],o=ca.REVISION_CHANGES[e];throw new aa.default("Template was precompiled with an older version of Handlebars than the current runtime. Please update your precompiler to a newer version ("+n+") or downgrade your runtime to an older version ("+o+").")}else throw new aa.default("Template was precompiled with a newer version of Handlebars than the current runtime. Please update your runtime to a newer version ("+t[1]+").")}i(is0,"checkRevision");function as0(t,e){if(!e)throw new aa.default("No environment passed to template");if(!t||!t.main)throw new aa.default("Unknown template object: "+typeof t);t.main.decorator=t.main_d,e.VM.checkRevision(t.compiler);var r=t.compiler&&t.compiler[0]===7;function n(a,c,u){u.hash&&(c=q2.extend({},c,u.hash),u.ids&&(u.ids[0]=!0)),a=e.VM.res
`),l=0,b=A.length;l<b&&!(!A[l]&&l+1===b);l++)A[l]=u.indent+A[l];p=A.join(`
`)}return p}else throw new aa.default("The partial "+u.name+" could not be compiled when running in runtime-only mode")}i(n,"invokePartialWrapper");var o={strict:i(function(c,u,p){if(!c||!(u in c))throw new aa.default('"'+u+'" not defined in '+c,{loc:p});return o.lookupProperty(c,u)},"strict"),lookupProperty:i(function(c,u){var p=c[u];if(p==null||Object.prototype.hasOwnProperty.call(c,u)||Ype.resultIsAllowed(p,o.protoAccessControl,u))return p},"lookupProperty"),lookup:i(function(c,u){for(var p=c.length,A=0;A<p;A++){var l=c[A]&&o.lookupProperty(c[A],u);if(l!=null)return l}},"lookup"),lambda:i(function(c,u){return typeof c=="function"?c.call(u):c},"lambda"),escapeExpression:q2.escapeExpression,invokePartial:n,fn:i(function(c){var u=t[c];return u.decorator=t[c+"_d"],u},"fn"),programs:[],program:i(function(c,u,p,A,l){var b=this.programs[c],M=this.fn(c);return u||l||A||p?b=d4(this,c,M,u,p,A,l):b||(b=this.programs[c]=d4(this,c,M)),b},"program"),data:i(function(c,u){for(;c&&u--;)c=c._parent;return c},"data"),mergeIfNeeded:i(function(c,u){var p=c||u;return c&&u&&c!==u&&(p=q2.extend({},u,c)),p},"mergeIfNeeded"),nullContext:Object.seal({}),noop:e.VM.noop,compilerInfo:t.compiler};function s(a){var c=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],u=c.data;s._setup(c),!c.partial&&t.useData&&(u=ps0(a,u));var p=void 0,A=t.useBlockParams?[]:void 0;t.useDepths&&(c.depths?p=a!=c.depths[0]?[a].concat(c.depths):c.depths:p=[a]);function l(b){return""+t.main(o,b,o.helpers,o.partials,u,A,p)}return i(l,"main"),l=Kpe(t.main,l,o,c.depths||[],u,A),l(a,c)}return i(s,"ret"),s.isTop=!0,s._setup=function(a){if(a.partial)o.protoAccessControl=a.protoAccessControl,o.helpers=a.helpers,o.partials=a.partials,o.decorators=a.decorators,o.hooks=a.hooks;else{var c={};$pe(c,e.helpers,o),$pe(c,a.helpers,o),o.helpers=c,t.usePartial&&(o.partials=o.mergeIfNeeded(a.partials,e.partials)),(t.usePartial||t.useDecorators)&&(o.decorators=q2.extend({},e.decorators,a.decorators)),o.hooks={},o.protoAccessControl=Ype.createProtoAccessControl(a);var u=a.allowCallsToHelperMissing||r;Jpe.moveHelperToHooks(o,"helperMissing",u),Jpe.moveHelperToHooks(o,"blockHelperMissing",u)}},s._child=function(a,c,u,p){if(t.useBlockParams&&!u)throw new aa.default("must pass block params");if(t.useDepths&&!p)throw new aa.default("must pass parent depths");return d4(o,a,t[a],c,0,u,p)},s}i(as0,"template");function d4(t,e,r,n,o,s,a){function c(u){var p=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],A=a;return a&&u!=a[0]&&!(u===t.nullContext&&a[0]===null)&&(A=[u].concat(a)),r(t,u,t.helpers,t.partials,p.data||n,s&&[p.blockParams].concat(s),A)}return i(c,"prog"),c=Kpe(r,c,t,a,n,s),c.program=e,c.depth=a?a.length:0,c.blockParams=o||0,c}i(d4,"wrapProgram");function cs0(t,e,r){return t?!t.call&&!r.name&&(r.name=t,t=b4(r.partials,t)):r.name==="@partial-block"?t=b4(r.data,"partial-block"):t=b4(r.partials,r.name),t}i(cs0,"resolvePartial");function us0(t,e,r){var n=b4(r.data,"partial-block");r.partial=!0,r.ids&&(r.data.contextPath=r.ids[0]||r.data.contextPath);var o=void 0;if(r.fn&&r.fn!==jpe&&(function(){r.data=ca.createFrame(r.data);var s=r.fn;o=r.data["partial-block"]=i(function(c){var u=arguments.length<=1||arguments[1]===void 0?{}:arguments[1];return u.data=ca.createFrame(u.data),u.data["partial-block"]=n,s(c,u)},"partialBlockWrapper"),s.partials&&(r.partials=q2.extend({},r.partials,s.partials))})(),t===void 0&&o&&(t=o),t===void 0)throw new aa.default("The partial "+r.name+" could not be found");if(t instanceof Function)return t(e,r)}i(us0,"invokePartial");function jpe(){return""}i(jpe,"noop");function b4(t,e){if(t&&Object.prototype.hasOwnProperty.call(t,e))return t[e]}i(b4,"lookupOwnProperty");function ps0(t,e){return(!e||!("root"in e))&&(e=e?ca.createFrame(e):{},e.root=t),e}i(ps0,"initData");function Kpe(t,e,r,n,o,s){if(t.decorator){var a={};e=t.decorator(e,a,r,n&&n[0],o,s,n),q2.extend(e,a)}return e}i(Kpe,"executeDecorators");function $pe(t,e,r){e&&Object.keys(e).forEach(function(n){var o=e[n];t[n]=As0(o,r)})}i($pe,"addHelpers");function As0(t,e){var r=e.lookupProperty;return ss0
`+this.lexer.showPosition()+`
Expecting `+k.join(", ")+", got '"+(this.terminals_[D]||D)+"'":Te="Parse error on line "+(l+1)+": Unexpected "+(D==1?"end of input":"'"+(this.terminals_[D]||D)+"'"),this.parseError(Te,{text:this.lexer.match,token:this.terminals_[D]||D,line:this.lexer.yylineno,loc:y,expected:k})}}if(_[0]instanceof Array&&_.length>1)throw new Error("Parse Error: multiple actions possible at state: "+x+", token: "+D);switch(_[0]){case 1:a.push(D),c.push(this.lexer.yytext),u.push(this.lexer.yylloc),a.push(_[1]),D=null,F?(D=F,F=null):(b=this.lexer.yyleng,A=this.lexer.yytext,l=this.lexer.yylineno,y=this.lexer.yylloc,M>0&&M--);break;case 2:if(ze=this.productions_[_[1]][1],Ne.$=c[c.length-ze],Ne._$={first_line:u[u.length-(ze||1)].first_line,last_line:u[u.length-1].last_line,first_column:u[u.length-(ze||1)].first_column,last_column:u[u.length-1].last_column},E&&(Ne._$.range=[u[u.length-(ze||1)].range[0],u[u.length-1].range[1]]),ye=this.performAction.call(Ne,A,b,l,this.yy,_[1],c,u),typeof ye<"u")return ye;ze&&(a=a.slice(0,-1*ze*2),c=c.slice(0,-1*ze),u=u.slice(0,-1*ze)),a.push(this.productions_[_[1]][0]),c.push(Ne.$),u.push(Ne._$),Fe=p[a[a.length-2]][a[a.length-1]],a.push(Fe);break;case 3:return!0}}return!0},"parse")},e=(function(){var n={EOF:1,parseError:i(function(s,a){if(this.yy.parser)this.yy.parser.parseError(s,a);else throw new Error(s)},"parseError"),setInput:i(function(s){return this._input=s,this._more=this._less=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:i(function(){var s=this._input[0];this.yytext+=s,this.yyleng++,this.offset++,this.match+=s,this.matched+=s;var a=s.match(/(?:\r\n?|\n).*/g);return a?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),s},"input"),unput:i(function(s){var a=s.length,c=s.split(/(?:\r\n?|\n)/g);this._input=s+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-a-1),this.offset-=a;var u=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),c.length-1&&(this.yylineno-=c.length-1);var p=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:c?(c.length===u.length?this.yylloc.first_column:0)+u[u.length-c.length].length-c[0].length:this.yylloc.first_column-a},this.options.ranges&&(this.yylloc.range=[p[0],p[0]+this.yyleng-a]),this},"unput"),more:i(function(){return this._more=!0,this},"more"),less:i(function(s){this.unput(this.match.slice(s))},"less"),pastInput:i(function(){var s=this.matched.substr(0,this.matched.length-this.match.length);return(s.length>20?"...":"")+s.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:i(function(){var s=this.match;return s.length<20&&(s+=this._input.substr(0,20-s.length)),(s.substr(0,20)+(s.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:i(function(){var s=this.pastInput(),a=new Array(s.length+1).join("-");return s+this.upcomingInput()+`
`+a+"^"},"showPosition"),next:i(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var s,a,c,u,p,A;this._more||(this.yytext="",this.match="");for(var l=this._currentRules(),b=0;b<l.length&&(c=this._input.match(this.rules[l[b]]),!(c&&(!a||c[0].length>a[0].length)&&(a=c,u=b,!this.options.flex)));b++);return a?(A=a[0].match(/(?:\r\n?|\n).*/g),A&&(this.yylineno+=A.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:A?A[A.length-1].length-A[A.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+a[0].length},this.yytext+=a[0],this.match+=a[0],this.matches=a,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._input=this._input.slice(a[0].length),this.matched+=a[0],s=this.performAction.call(this,this.yy,this,l[u],this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),s||void 0):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:i(function(){var s=this.next();return typeof s<"u"?s:this.lex()},"lex"),begin:i(function(s){this.conditionStack.push(s)},"begin"),popState:i(function(){return this.conditionStack.pop()},"popState"),_currentRules:i(function(){return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules},"_currentRules"),topState:i(function(){return this.conditionStack[this.conditionStack.length-2]},"topState"),pushState:i(function(s){this.begin(s)},"begin")};return n.options={},n.performAction=i(function(s,a,c,u){function p(l,b){return a.yytext=a.yytext.substring(l,a.yyleng-b+l)}i(p,"strip");var A=u;switch(c){case 0:if(a.yytext.slice(-2)==="\\\\"?(p(0,1),this.begin("mu")):a.yytext.slice(-1)==="\\"?(p(0,1),this.begin("emu")):this.begin("mu"),a.yytext)return 15;break;case 1:return 15;case 2:return this.popState(),15;break;case 3:return this.begin("raw"),15;break;case 4:return this.popState(),this.conditionStack[this.conditionStack.length-1]==="raw"?15:(p(5,9),"END_RAW_BLOCK");case 5:return 15;case 6:return this.popState(),14;break;case 7:return 65;case 8:return 68;case 9:return 19;case 10:return this.popState(),this.begin("raw"),23;break;case 11:return 55;case 12:return 60;case 13:return 29;case 14:return 47;case 15:return this.popState(),44;break;case 16:return this.popState(),44;break;case 17:return 34;case 18:return 39;case 19:return 51;case 20:return 48;case 21:this.unput(a.yytext),this.popState(),this.begin("com");break;case 22:return this.popState(),14;break;case 23:return 48;case 24:return 73;case 25:return 72;case 26:return 72;case 27:return 87;case 28:break;case 29:return this.popState(),54;break;case 30:return this.popState(),33;break;case 31:return a.yytext=p(1,2).replace(/\\"/g,'"'),80;break;case 32:return a.yytext=p(1,2).replace(/\\'/g,"'"),80;break;case 33:return 85;case 34:return 82;case 35:return 82;case 36:return 83;case 37:return 84;case 38:return 81;case 39:return 75;case 40:return 77;case 41:return 72;case 42:return a.yytext=a.yytext.replace(/\\([\\\]])/g,"$1"),72;break;case 43:return"INVALID";case 44:return 5}},"anonymous"),n.rules=[/^(?:[^\x00]*?(?=(\{\{)))/,/^(?:[^\x00]+)/,/^(?:[^\x00]{2,}?(?=(\{\{|\\\{\{|\\\\\{\{|$)))/,/^(?:\{\{\{\{(?=[^\/]))/,/^(?:\{\{\{\{\/[^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=[=}\s\/.])\}\}\}\})/,/^(?:[^\x00]+?(?=(\{\{\{\{)))/,/^(?:[\s\S]*?--(~)?\}\})/,/^(?:\()/,/^(?:\))/,/^(?:\{\{\{\{)/,/^(?:\}\}\}\})/,/^(?:\{\{(~)?>)/,/^(?:\{\{(~)?#>)/,/^(?:\{\{(~)?#\*?)/,/^(?:\{\{(~)?\/)/,/^(?:\{\{(~)?\^\s*(~)?\}\})/,/^(?:\{\{(~)?\s*else\s*(~)?\}\})/,/^(?:\{\{(~)?\^)/,/^(?:\{\{(~)?\s*else\b)/,/^(?:\{\{(~)?\{)/,/^(?:\{\{(~)?&)/,/^(?:\{\{(~)?!--)/,/^(?:\{\{(~)?![\s\S]*?\}\})/,/^(?:\{\{(~)?\*?)/,/^(?:=)/,/^(?:\.\.)/,/^(?:\.(?=([=~}\s\/.)|])))/,/^(?:[\/.])/,/^(?:\s+)/,/^(?:\}(~)?\}\})/,/^(?:(~)?\}\})/,/^(?:"(\\["]|[^"])*")/,/^(?:'(\\[']|[^'])*')/,/^(?:@)/,/^(?:true(?=([~}\s)])))/,/^(?:false(?=([~}\s)])))/,/^(?:undefined(?=([~}\s)])))/,/^(?:null(?=([~}\s)])))/,/^(?:-?[0-9]+(?:\.[0-9]+)?(?=([~}\s)])))/,/^(?:as\s+\|)/,/^(?:\|)/,/^(?:([^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=([=~}\s\/.)|]))))/,/^(?:\[(\\\]|[^\]])*\])/,/^(?:.)/,/^(?:$)/],n.conditions={mu:{rules:[7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44],inclusive:!1},emu:{rules:[2],inclusive:!1},com:{rules:[6],inclusive:!1},raw:{rules:[3,4,5],inclusive:!1},INITIAL:{rules:[0,1,44],inclusive:!0}},n})();t.lexer=e;function r(){this.yy={}}return i(r,"Parser"),r.prototype=t,t.Parser=r,new r})();h4.default=Os0;cAe.exports=h4.default});var E4=m((O4,lAe)=>{"use strict";O4.__esModule=!0;function Es0(t){return t&&t.__esModule?t:{default:t}}i(Es0,"_interopRequireDefault");var Cs0=on(),m_=Es0(Cs0);function z4(){this.parents=[]}i(z4,"Visitor");z4.prototype={constructor:z4,mutating:!1,acceptKey:i(function(e,r){var n=this.accept(e[r]);if(this.mutating){if(n&&!z4.prototype[n.type])throw new m_.default('Unexpected node type "'+n.type+'" found when accepting '+r+" on "+e.type);e[r]=n}},"acceptKey"),acceptRequired:i(function(e,r){if(this.a
`])}),e},"merge"),each:i(function(e){for(var r=0,n=this.source.length;r<n;r++)e(this.source[r])},"each"),empty:i(function(){var e=this.currentLocation||{start:{}};return new Cp(e.start.line,e.start.column,this.srcFile)},"empty"),wrap:i(function(e){var r=arguments.length<=1||arguments[1]===void 0?this.currentLocation||{start:{}}:arguments[1];return e instanceof Cp?e:(e=__(e,this,r),new Cp(r.start.line,r.start.column,this.srcFile,e))},"wrap"),functionCall:i(function(e,r,n){return n=this.generateList(n),this.wrap([e,r?"."+r+"(":"(",n,")"])},"functionCall"),quotedString:i(function(e){return'"'+(e+"").replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")+'"'},"quotedString"),objectLiteral:i(function(e){var r=this,n=[];Object.keys(e).forEach(function(s){var a=__(e[s],r);a!=="undefined"&&n.push([r.quotedString(s),":",a])});var o=this.generateList(n);return o.prepend("{"),o.add("}"),o},"objectLiteral"),generateList:i(function(e){for(var r=this.empty(),n=0,o=e.length;n<o;n++)n&&r.add(","),r.add(__(e[n],this));return r},"generateList"),generateArray:i(function(e){var r=this.generateList(e);return r.prepend("["),r.add("]"),r},"generateArray")};N4.default=VAe;JAe.exports=N4.default});var ele=m((w4,ZAe)=>{"use strict";w4.__esModule=!0;function KAe(t){return t&&t.__esModule?t:{default:t}}i(KAe,"_interopRequireDefault");var $Ae=A4(),gi0=on(),P_=KAe(gi0),Oi0=$t(),Ei0=YAe(),jAe=KAe(Ei0);function S2(t){this.value=t}i(S2,"Literal");function F2(){}i(F2,"JavaScriptCompiler");F2.prototype={nameLookup:i(function(e,r){return this.internalNameLookup(e,r)},"nameLookup"),depthedLookup:i(function(e){return[this.aliasable("container.lookup"),"(depths, ",JSON.stringify(e),")"]},"depthedLookup"),compilerInfo:i(function(){var e=$Ae.COMPILER_REVISION,r=$Ae.REVISION_CHANGES[e];return[e,r]},"compilerInfo"),appendToBuffer:i(function(e,r,n){return Oi0.isArray(e)||(e=[e]),e=this.source.wrap(e,r),this.environment.isSimple?["return ",e,";"]:n?["buffer += ",e,";"]:(e.appendToBuffer=!0,e)},"appendToBuffer"),initializeBuffer:i(function(){return this.quotedString("")},"initializeBuffer"),internalNameLookup:i(function(e,r){return this.lookupPropertyFunctionIsUsed=!0,["lookupProperty(",e,",",JSON.stringify(r),")"]},"internalNameLookup"),lookupPropertyFunctionIsUsed:!1,compile:i(function(e,r,n,o){this.environment=e,this.options=r,this.stringParams=this.options.stringParams,this.trackIds=this.options.trackIds,this.precompile=!o,this.name=this.environment.name,this.isChild=!!n,this.context=n||{decorators:[],programs:[],environments:[]},this.preamble(),this.stackSlot=0,this.stackVars=[],this.aliases={},this.registers={list:[]},this.hashes=[],this.compileStack=[],this.inlineStack=[],this.blockParams=[],this.compileChildren(e,r),this.useDepths=this.useDepths||e.useDepths||e.useDecorators||this.options.compat,this.useBlockParams=this.useBlockParams||e.useBlockParams;var s=e.opcodes,a=void 0,c=void 0,u=void 0,p=void 0;for(u=0,p=s.length;u<p;u++)a=s[u],this.source.currentLocation=a.loc,c=c||a.loc,this[a.opcode].apply(this,a.args);if(this.source.currentLocation=c,this.pushSource(""),this.stackSlot||this.inlineStack.length||this.compileStack.length)throw new P_.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;"),o?this.decorators=Function.apply(this,["fn","props","container","depth0","data","blockParams","depths",this.decorators.merge()]):(this.decorators.prepend(`function(fn, props, container, depth0, data, blockParams, depths) {
`),this.decorators.push(`}
`),this.decorators=this.decorators.merge()));var A=this.createFunctionContext(o);if(this.isChild)return A;var l={compiler:this.compilerInfo(),main:A};this.decorators&&(l.main_d=this.decorators,l.useDecorators=!0);var b=this.context,M=b.programs,z=b.decorators;for(u=0,p=M.length;u<p;u++)l[u]=M[u],z[u]&&(l[u+"_d"]=z[u],l.useDecorators=!0);return this.environment.usePartial&&(l.usePartial=!0),this.options.data&&(l.useData=!0),this.useDepths&&(l.useDepths=!0),this.useBlockParams&&(l.useBlockParams=!0),this.options.compat&&(l.compat=!0),o?l.compilerOptions=this.options:(l.compiler=JSON.stringify(l.compiler),this.source.currentLocation={start:{line:1,column:0}},l=this.objectLiteral(l),r.srcName?(l=l.toStringWithSourceMap({file:r.destName}),l.map=l.map&&l.map.toString()):l=l.toString()),l},"compile"),preamble:i(function(){this.lastContext=0,this.source=new jAe.default(this.options.srcName),this.decorators=new jAe.default(this.options.srcName)},"preamble"),createFunctionContext:i(function(e){var r=this,n="",o=this.stackVars.concat(this.registers.list);o.length>0&&(n+=", "+o.join(", "));var s=0;Object.keys(this.aliases).forEach(function(u){var p=r.aliases[u];p.children&&p.referenceCount>1&&(n+=", alias"+ ++s+"="+u,p.children[0]="alias"+s)}),this.lookupPropertyFunctionIsUsed&&(n+=", "+this.lookupPropertyFunctionVarDeclaration());var a=["container","depth0","helpers","partials","data"];(this.useBlockParams||this.useDepths)&&a.push("blockParams"),this.useDepths&&a.push("depths");var c=this.mergeSource(n);return e?(a.push(c),Function.apply(this,a)):this.source.wrap(["function(",a.join(","),`) {
`,c,"}"])},"createFunctionContext"),mergeSource:i(function(e){var r=this.environment.isSimple,n=!this.forceBuffer,o=void 0,s=void 0,a=void 0,c=void 0;return this.source.each(function(u){u.appendToBuffer?(a?u.prepend(" + "):a=u,c=u):(a&&(s?a.prepend("buffer += "):o=!0,c.add(";"),a=c=void 0),s=!0,r||(n=!1))}),n?a?(a.prepend("return "),c.add(";")):s||this.source.push('return "";'):(e+=", buffer = "+(o?"":this.initializeBuffer()),a?(a.prepend("return buffer + "),c.add(";")):this.source.push("return buffer;")),e&&this.source.prepend("var "+e.substring(2)+(o?"":`;
`)),this.source.merge()},"mergeSource"),lookupPropertyFunctionVarDeclaration:i(function(){return`
lookupProperty = container.lookupProperty || function(parent, propertyName) {
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
return parent[propertyName];
}
return undefined
}
`.trim()},"lookupPropertyFunctionVarDeclaration"),blockValue:i(function(e){var r=this.aliasable("container.hooks.blockHelperMissing"),n=[this.contextName(0)];this.setupHelperArgs(e,0,n);var o=this.popStack();n.splice(1,0,o),this.push(this.source.functionCall(r,"call",n))},"blockValue"),ambiguousBlockValue:i(function(){var e=this.aliasable("container.hooks.blockHelperMissing"),r=[this.contextName(0)];this.setupHelperArgs("",0,r,!0),this.flushInline();var n=this.topStack();r.splice(1,0,n),this.pushSource(["if (!",this.lastHelper,") { ",n," = ",this.source.functionCall(e,"call",r),"}"])},"ambiguousBlockValue"),appendContent:i(function(e){this.pendingContent?e=this.pendingContent+e:this.pendingLocation=this.source.currentLocation,this.pendingContent=e},"appendContent"),append:i(function(){if(this.isInline())this.replaceStack(function(r){return[" != null ? ",r,' : ""']}),this.pushSource(this.appendToBuffer(this.popStack()));else{var e=this.popStack();this.pushSource(["if (",e," != null) { ",this.appendToBuffer(e,void 0,!0)," }"]),this.environment.isSimple&&this.pushSource(["else { ",this.appendToBuffer("''",void 0,!0)," }"])}},"append"),appendEscaped:i(function(){this.pushSource(this.appendToBuffer([this.aliasable("container.escapeExpression"),"(",this.popStack(),")"]))},"appendEscaped"),getContext:i(function(e){this.lastContext=e},"getContext"),pushContext:i(function(){this.pushStackLiteral(this.contextName(this.lastContext))},"pushContext"),lookupOnContext:i(function(e,r,n,o){var s=0;!o&&this.options.compat&&!this.lastContext?this.push(this.depthedLookup(e[s++])):this.pushContext(),this.resolvePath("context",e,s,r,n)},"lookupOnContext"),lookupBlockParam:i(function(e,r){this.useBlockParams=!0,this.push(["blockParams[",e[0],"][",e[1],"]"]),this.resolvePath("context",r,1)},"lookupBlockParam"),lookupData:i(function(e,r,n){e?this.pushStackLiteral("container.data(data, "+e+")"):this.pushStackLiteral("data"),this.resolvePath("data",r,0,!0,n)},"lookupData"),resolvePath:i(function(e,r,n,o,s){var a=this;if(this.options.strict||this.options.assumeObjects){this.push(Ci0(this.options.strict&&s,this,r,n,e));return}for(var c=r.length,u=i(function(A){a.replaceStack(function(l){var b=a.nameLookup(l,r[A],e);return o?[" && ",b]:[" != null ? ",b," : ",l]})},"_loop"),p=n;p<c;p++)u(p)},"resolvePath"),resolvePossibleLambda:i(function(){this.push([this.aliasable("container.lambda"),"(",this.popStack(),", ",this.contextName(0),")"])},"resolvePossibleLambda"),pushStringParam:i(function(e,r){this.pushContext(),this.pushString(r),r!=="SubExpression"&&(typeof e=="string"?this.pushString(e):this.pushStackLiteral(e))},"pushStringParam"),emptyHash:i(function(e){this.trackIds&&this.push("{}"),this.stringParams&&(this.push("{}"),this.push("{}")),this.pushStackLiteral(e?"undefined":"{}")},"emptyHash"),pushHash:i(function(){this.hash&&this.hashes.push(this.hash),this.hash={values:{},types:[],contexts:[],ids:[]}},"pushHash"),popHash:i(function(){var e=this.hash;this.hash=this.hashes.pop(),this.trackIds&&this.push(this.objectLiteral(e.ids)),this.stringParams&&(this.push(this.objectLiteral(e.contexts)),this.push(this.objectLiteral(e.types))),this.push(this.objectLiteral(e.values))},"popHash"),pushString:i(function(e){this.pushStackLiteral(this.quotedString(e))},"pushString"),pushLiteral:i(function(e){this.pushStackLiteral(e)},"pushLiteral"),pushProgram:i(function(e){e!=null?this.pushStackLiteral(this.programExpression(e)):this.pushStackLiteral(null)},"pushProgram"),registerDecorator:i(function(e,r){var n=this.nameLookup("decorators",r,"decorator"),o=this.setupHelperArgs(r,e);this.decorators.push(["var decorator = ",n,";"]),this.decorators.push(['if (typeof decorator !== "function") { throw new Error(',this.quotedString('Missing decorator: "'+r+'"'),"); }"]),this.decorators.push(["fn = ",this.decorators.functionCall("decorator","",["fn","props","container",o])," || fn;"])},"registerDecorator"),invokeHelper:i(function(e,r,n){var o=this.popStack(),s=this.setupHelper(e,r),a=[];n&&a.push(s.name),a.push(o),this.options.strict||a.push(this.aliasable("container.hoo
`,e};d1.prototype.Program=function(t){var e="",r=t.body,n=void 0,o=void 0;if(t.blockParams){var s="BLOCK PARAMS: [";for(n=0,o=t.blockParams.length;n<o;n++)s+=" "+t.blockParams[n];s+=" ]",e+=this.pad(s)}for(n=0,o=r.length;n<o;n++)e+=this.accept(r[n]);return this.padding--,e};d1.prototype.MustacheStatement=function(t){return this.pad("{{ "+this.SubExpression(t)+" }}")};d1.prototype.Decorator=function(t){return this.pad("{{ DIRECTIVE "+this.SubExpression(t)+" }}")};d1.prototype.BlockStatement=d1.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};d1.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+" }}")};d1.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+" }}")};d1.prototype.ContentStatement=function(t){return this.pad("CONTENT[ '"+t.value+"' ]")};d1.prototype.CommentStatement=function(t){return this.pad("{{! '"+t.value+"' }}")};d1.prototype.SubExpression=function(t){for(var e=t.params,r=[],n=void 0,o=0,s=e.length;o<s;o++)r.push(this.accept(e[o]));return e="["+r.join(", ")+"]",n=t.hash?" "+this.accept(t.hash):"",this.accept(t.path)+" "+e+n};d1.prototype.PathExpression=function(t){var e=t.parts.join("/");return(t.data?"@":"")+"PATH:"+e};d1.prototype.StringLiteral=function(t){return'"'+t.value+'"'};d1.prototype.NumberLiteral=function(t){return"NUMBER{"+t.value+"}"};d1.prototype.BooleanLiteral=function(t){return"BOOLEAN{"+t.value+"}"};d1.prototype.UndefinedLiteral=function(){return"UNDEFINED"};d1.prototype.NullLiteral=function(){return"NULL"};d1.prototype.Hash=function(t){for(var e=t.pairs,r=[],n=0,o=e.length;n<o;n++)r.push(this.accept(e[n]));return"HASH{"+r.join(", ")+"}"};d1.prototype.HashPair=function(t){return t.key+"="+this.accept(t.value)}});var G_=m(($t1,ale)=>{var W4=nle().default,ile=ole();W4.PrintVisitor=ile.PrintVisitor;W4.print=ile.print;ale.exports=W4;function sle(t,e){var r=require("fs"),n=r.readFileSync(e,"utf8");t.exports=W4.compile(n)}i(sle,"extension");typeof require<"u"&&require.extensions&&(require.extensions[".handlebars"]=sle,require.extensions[".hbs"]=sle)});var Q4=m(qc=>{"use strict";Object.defineProperty(qc,"__esModule",{value:!0});qc.Signature=qc.Envelope=void 0;qc.Envelope={fromJSON(t){return{payload:_4(t.payload)?Buffer.from(mle(t.payload)):Buffer.alloc(0),payloadType:_4(t.payloadType)?globalThis.String(t.payloadType):"",signatures:globalThis.Array.isArray(t?.signatures)?t.signatures.map(e=>qc.Signature.fromJSON(e)):[]}},toJSON(t){let e={};return t.payload.length!==0&&(e.payload=hle(t.payload)),t.payloadType!==""&&(e.payloadType=t.payloadType),t.signatures?.length&&(e.signatures=t.signatures.map(r=>qc.Signature.toJSON(r))),e}};qc.Signature={fromJSON(t){return{sig:_4(t.sig)?Buffer.from(mle(t.sig)):Buffer.alloc(0),keyid:_4(t.keyid)?globalThis.String(t.keyid):""}},toJSON(t){let e={};return t.sig.length!==0&&(e.sig=hle(t.sig)),t.keyid!==""&&(e.keyid=t.keyid),e}};function mle(t){return Uint8Array.from(globalThis.Buffer.from(t,"base64"))}i(mle,"bytesFromBase64");function hle(t){return globalThis.Buffer.from(t).toString("base64")}i(hle,"base64FromBytes");function _4(t){return t!=null}i(_4,"isSet")});var gle=m(P4=>{"use strict";Object.defineProperty(P4,"__esModule",{value:!0});P4.Timestamp=void 0;P4.Timestamp={fromJSON(t){return{seconds:zle(t.seconds)?globalThis.String(t.seconds):"0",nanos:zle(t.nanos)?globalThis.Number(t.nanos):0}},toJSON(t){let e={};return t.seconds!=="0"&&(e.seconds=t.s
2026-05-22 12:36:07 +00:00
`).join(`
`+s),t.push(o+"m+"+qB.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=fp0()+e+" "+t[0]}i(bp0,"formatArgs");function fp0(){return ot.inspectOpts.hideDate?"":new Date().toISOString()+" "}i(fp0,"getDate");function Mp0(...t){return process.stderr.write(BB.formatWithOptions(ot.inspectOpts,...t)+`
`)}i(Mp0,"log");function mp0(t){t?process.env.DEBUG=t:delete process.env.DEBUG}i(mp0,"save");function hp0(){return process.env.DEBUG}i(hp0,"load");function zp0(t){t.inspectOpts={};let e=Object.keys(ot.inspectOpts);for(let r=0;r<e.length;r++)t.inspectOpts[e[r]]=ot.inspectOpts[e[r]]}i(zp0,"init");qB.exports=JQ()(ot);var{formatters:V2e}=qB.exports;V2e.o=function(t){return this.inspectOpts.colors=this.useColors,BB.inspect(t,this.inspectOpts).split(`
`).map(e=>e.trim()).join(" ")};V2e.O=function(t){return this.inspectOpts.colors=this.useColors,BB.inspect(t,this.inspectOpts)}});var $Q=m((Ko1,YQ)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?YQ.exports=X2e():YQ.exports=J2e()});var IB=m(b1=>{"use strict";Object.defineProperty(b1,"__esModule",{value:!0});b1.DownloadHTTPError=b1.DownloadLengthMismatchError=b1.DownloadError=b1.ExpiredMetadataError=b1.EqualVersionError=b1.BadVersionError=b1.RepositoryError=b1.PersistError=b1.RuntimeError=b1.ValueError=void 0;var jQ=class extends Error{static{i(this,"ValueError")}};b1.ValueError=jQ;var KQ=class extends Error{static{i(this,"RuntimeError")}};b1.RuntimeError=KQ;var ZQ=class extends Error{static{i(this,"PersistError")}};b1.PersistError=ZQ;var xm=class extends Error{static{i(this,"RepositoryError")}};b1.RepositoryError=xm;var DB=class extends xm{static{i(this,"BadVersionError")}};b1.BadVersionError=DB;var e8=class extends DB{static{i(this,"EqualVersionError")}};b1.EqualVersionError=e8;var t8=class extends xm{static{i(this,"ExpiredMetadataError")}};b1.ExpiredMetadataError=t8;var Tm=class extends Error{static{i(this,"DownloadError")}};b1.DownloadError=Tm;var r8=class extends Tm{static{i(this,"DownloadLengthMismatchError")}};b1.DownloadLengthMismatchError=r8;var n8=class extends Tm{static{i(this,"DownloadHTTPError")}statusCode;constructor(e,r){super(e),this.statusCode=r}};b1.DownloadHTTPError=n8});var $2e=m(Z2=>{"use strict";var s8=Z2&&Z2.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Z2,"__esModule",{value:!0});Z2.withTempFile=void 0;var o8=s8(require("fs/promises")),gp0=s8(require("os")),Y2e=s8(require("path")),Op0=i(async t=>Ep0(async e=>t(Y2e.default.join(e,"tempfile"))),"withTempFile");Z2.withTempFile=Op0;var Ep0=i(async t=>{let e=await o8.default.realpath(gp0.default.tmpdir()),r=await o8.default.mkdtemp(e+Y2e.default.sep);try{return await t(r)}finally{await o8.default.rm(r,{force:!0,recursive:!0,maxRetries:3})}},"withTempDir")});var K2e=m((ns1,j2e)=>{var i8=class{static{i(this,"RetryOperation")}#e=1;#t=null;#n=[];#r=null;#o;#s=null;#a;#i;#u=null;#c;constructor(e,r={}){this.#a=[...e],this.#i=[...e],this.#c=r.unref,this.#o=r.maxRetryTime||1/0,r.forever&&(this.#t=[...this.#i])}get timeouts(){return[...this.#i]}get errors(){return[...this.#n]}get attempts(){return this.#e}get mainError(){let e=null;if(this.#n.length){let r=0,n={};for(let o=0;o<this.#n.length;o++){let s=this.#n[o],{message:a}=s;n[a]||(n[a]=0),n[a]++,n[a]>=r&&(e=s,r=n[a])}}return e}reset(){this.#e=1,this.#i=[...this.#a]}stop(){this.#u&&clearTimeout(this.#u),this.#i=[],this.#t=null}retry(e){if(this.#n.push(e),new Date().getTime()-this.#s>=this.#o)return this.#n.unshift(new Error("RetryOperation timeout occurred")),!1;let r=this.#i.shift();if(r===void 0)if(this.#t)this.#n.pop(),r=this.#t.at(-1);else return!1;return this.#u=setTimeout(()=>{this.#e++,this.#r(this.#e)},r),this.#c&&this.#u.unref(),!0}attempt(e){this.#r=e,this.#s=new Date().getTime(),this.#r(this.#e)}};j2e.exports={RetryOperation:i8}});var tde=m((ss1,ede)=>{var{RetryOperation:Cp0}=K2e(),Z2e=i((t,e)=>Math.min(Math.round((1+(e.randomize?Math.random():0))*Math.max(e.minTimeout,1)*Math.pow(e.factor,t)),e.maxTimeout),"createTimeout"),yp0=i(t=>t?.code==="EPROMISERETRY"&&Object.hasOwn(t,"retried"),"isRetryError"),Bp0=i(async(t,e={})=>{let r=[];if(e instanceof Array)r=[...e];else{e.retries===1/0&&(e.forever=!0,delete e.retries);let o={retries:10,factor:2,minTimeout:1*1e3,maxTimeout:1/0,randomize:!1,...e};if(o.minTimeout>o.maxTimeout)throw new Error("minTimeout is greater than maxTimeout");if(o.retries){for(let s=0;s<o.retries;s++)r.push(Z2e(s,o));r.sort((s,a)=>s-a)}else e.forever&&r.push(Z2e(0,o))}let n=new Cp0(r,{forever:e.forever,unref:e.unref,maxRetryTime:e.maxRetryTime});return new Promise(function(o,s){n.attempt(async a=>{try{let c=await t(u=>{throw Object.assign(new Error("Retrying"),{code:"EPROMISERETRY",retried:u})},a,n);return o(c)}catch(c){if(!yp0(c))return s(c);if(!n.retry(c.retried||new Error))return s(c.retried)}})})},"
`).forEach(r=>{r.match(vA0)||r.match(LA0)||(e+=r)}),Buffer.from(e,"base64")}i(_A0,"toDER");function QA0(t,e="CERTIFICATE"){let n=t.toString("base64").match(/.{1,64}/g)||"";return[`-----BEGIN ${e}-----`,...n,`-----END ${e}-----`].join(`
`).concat(`
`)}i(QA0,"fromDER")});var HB=m(Lc=>{"use strict";Object.defineProperty(Lc,"__esModule",{value:!0});Lc.SHA2_HASH_ALGOS=Lc.RSA_SIGNATURE_ALGOS=Lc.ECDSA_SIGNATURE_ALGOS=void 0;Lc.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"};Lc.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"};Lc.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 F8=m(XB=>{"use strict";Object.defineProperty(XB,"__esModule",{value:!0});XB.RFC3161TimestampVerificationError=void 0;var S8=class extends Error{static{i(this,"RFC3161TimestampVerificationError")}};XB.RFC3161TimestampVerificationError=S8});var Fde=m(Ys=>{"use strict";var PA0=Ys&&Ys.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var o=Object.getOwnPropertyDescriptor(e,r);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:i(function(){return e[r]},"get")}),Object.defineProperty(t,n,o)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),kA0=Ys&&Ys.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),UA0=Ys&&Ys.__importStar||(function(){var t=i(function(e){return t=Object.getOwnPropertyNames||function(r){var n=[];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[n.length]=o);return n},t(e)},"ownKeys");return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n=t(e),o=0;o<n.length;o++)n[o]!=="default"&&PA0(r,e,n[o]);return kA0(r,e),r}})();Object.defineProperty(Ys,"__esModule",{value:!0});Ys.TSTInfo=void 0;var Sde=UA0(sd()),GA0=HB(),HA0=F8(),W8=class{static{i(this,"TSTInfo")}root;constructor(e){this.root=e}get version(){return this.root.subs[0].toInteger()}get genTime(){return this.root.subs[4].toDate()}get messageImprintHashAlgorithm(){let e=this.messageImprintObj.subs[0].subs[0].toOID();return GA0.SHA2_HASH_ALGOS[e]}get messageImprintHashedMessage(){return this.messageImprintObj.subs[1].value}get raw(){return this.root.toDER()}verify(e){let r=Sde.digest(this.messageImprintHashAlgorithm,e);if(!Sde.bufferEqual(r,this.messageImprintHashedMessage))throw new HA0.RFC3161TimestampVerificationError("message imprint does not match artifact")}get messageImprintObj(){return this.root.subs[2]}};Ys.TSTInfo=W8});var xde=m($s=>{"use strict";var XA0=$s&&$s.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var o=Object.getOwnPropertyDescriptor(e,r);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:i(function(){return e[r]},"get")}),Object.defineProperty(t,n,o)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),VA0=$s&&$s.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),JA0=$s&&$s.__importStar||(function(){var t=i(function(e){return t=Object.getOwnPropertyNames||function(r){var n=[];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[n.length]=o);return n},t(e)},"ownKeys");return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n=t(e),o=0;o<n.length;o++)n[o]!=="default"&&XA0(r,e,n[o]);return VA0(r,e),r}})();Object.defineProperty($s,"__esModule",{value:!0});$s.RFC3161Timestamp=void 0;var YA0=kB(),x8=JA0(sd()),Wde=HB(),km=F8(),$A0=Fde(),jA0="1.2.840.113549.1.7.2",KA0="1.2.840.113549.1.9.16.1.4",ZA0="1.2.840.113549.1.9.4",T8=class t{static{i(this,"RFC3161Timestamp")}root;constructor(e){this.root=e}static parse(e){let r=YA0.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 signerDigestAlgorith
2026-05-22 12:36:07 +00:00
`,z20=/\u2014 (\S+) (\S+)\n/g;function g20(t,e){let r=t.inclusionProof,n=lP.fromString(r.checkpoint.envelope),o=lq.fromString(n.note);if(!O20(n,e))throw new Vm.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"invalid checkpoint signature"});return o}i(g20,"verifyCheckpoint");function O20(t,e){let r=Buffer.from(t.note,"utf-8");return t.signatures.some(n=>{let o=e.find(s=>fbe.crypto.bufferEqual(s.logID.subarray(0,4),n.keyHint)&&s.baseURL.match(n.name));return o?fbe.crypto.verify(r,o.publicKey,n.signature):!1})}i(O20,"verifySignedNote");var lP=class t{static{i(this,"SignedNote")}note;signatures;constructor(e,r){this.note=e,this.signatures=r}static fromString(e){if(!e.includes(AP))throw new Vm.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"missing checkpoint separator"});let r=e.indexOf(AP),n=e.slice(0,r+1),s=e.slice(r+AP.length).matchAll(z20),a=Array.from(s,c=>{let[,u,p]=c,A=Buffer.from(p,"base64");if(A.length<5)throw new Vm.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"malformed checkpoint signature"});return{name:u,keyHint:A.subarray(0,4),signature:A.subarray(4)}});if(a.length===0)throw new Vm.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"no signatures found in checkpoint"});return new t(n,a)}},lq=class t{static{i(this,"LogCheckpoint")}origin;logSize;logHash;rest;constructor(e,r,n,o){this.origin=e,this.logSize=r,this.logHash=n,this.rest=o}static fromString(e){let r=e.trimEnd().split(`
`);if(r.length<3)throw new Vm.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"too few lines in checkpoint header"});let n=r[0],o=BigInt(r[1]),s=Buffer.from(r[2],"base64"),a=r.slice(3);return new t(n,o,s,a)}};Jm.LogCheckpoint=lq});var mbe=m(MP=>{"use strict";Object.defineProperty(MP,"__esModule",{value:!0});MP.verifyMerkleInclusion=y20;var fP=wo(),dP=It(),E20=Buffer.from([0]),C20=Buffer.from([1]);function y20(t,e){let r=t.inclusionProof,n=BigInt(r.logIndex),o=BigInt(e.logSize);if(n<0n||n>=o)throw new dP.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:`invalid index: ${n}`});let{inner:s,border:a}=B20(n,o);if(r.hashes.length!==s+a)throw new dP.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"invalid hash count"});let c=r.hashes.slice(0,s),u=r.hashes.slice(s),p=w20(t.canonicalizedBody),A=D20(q20(p,c,n),u);if(!fP.crypto.bufferEqual(A,e.logHash))throw new dP.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"calculated root hash does not match inclusion proof"})}i(y20,"verifyMerkleInclusion");function B20(t,e){let r=I20(t,e),n=R20(t>>BigInt(r));return{inner:r,border:n}}i(B20,"decompInclProof");function q20(t,e,r){return e.reduce((n,o,s)=>r>>BigInt(s)&BigInt(1)?bP(o,n):bP(n,o),t)}i(q20,"chainInner");function D20(t,e){return e.reduce((r,n)=>bP(n,r),t)}i(D20,"chainBorderRight");function I20(t,e){return N20(t^e-BigInt(1))}i(I20,"innerProofSize");function R20(t){return t.toString(2).split("1").length-1}i(R20,"onesCount");function N20(t){return t===0n?0:t.toString(2).length}i(N20,"bitLength");function bP(t,e){return fP.crypto.digest("sha256",C20,t,e)}i(bP,"hashChildren");function w20(t){return fP.crypto.digest("sha256",E20,t)}i(w20,"hashLeaf")});var zbe=m(mP=>{"use strict";Object.defineProperty(mP,"__esModule",{value:!0});mP.verifyTLogSET=W20;var hbe=wo(),S20=It(),F20=cd();function W20(t,e){if(!(0,F20.filterTLogAuthorities)(e,{logID:t.logId.keyId,targetDate:new Date(Number(t.integratedTime)*1e3)}).some(o=>{let s=x20(t),a=Buffer.from(hbe.json.canonicalize(s),"utf8"),c=t.inclusionPromise.signedEntryTimestamp;return hbe.crypto.verify(a,o.publicKey,c)}))throw new S20.VerificationError({code:"TLOG_INCLUSION_PROMISE_ERROR",message:"inclusion promise could not be verified"})}i(W20,"verifyTLogSET");function x20(t){let{integratedTime:e,logIndex:r,logId:n,canonicalizedBody:o}=t;return{body:o.toString("base64"),integratedTime:Number(e),logIndex:Number(r),logID:n.keyId.toString("hex")}}i(x20,"toVerificationPayload")});var Obe=m(dq=>{"use strict";Object.defineProperty(dq,"__esModule",{value:!0});dq.verifyTLogBody=Q20;dq.verifyTLogInclusion=P20;var gbe=Abe(),gP=It(),hP=lbe(),zP=dbe(),T20=bbe(),v20=Mbe(),L20=mbe(),_20=zbe();function Q20(t,e){let{kind:r,version:n}=t.kindVersion,o=JSON.parse(t.canonicalizedBody.toString("utf8"));if(r!==o.kind||n!==o.apiVersion)throw new gP.VerificationError({code:"TLOG_BODY_ERROR",message:`kind/version mismatch - expected: ${r}/${n}, received: ${o.kind}/${o.apiVersion}`});switch(r){case"dsse":if(n==hP.DSSE_API_VERSION_V1)return(0,hP.verifyDSSETLogBody)(o,e);{let s=gbe.Entry.fromJSON(o);return(0,hP.verifyDSSETLogBodyV2)(s,e)}case"intoto":return(0,T20.verifyIntotoTLogBody)(o,e);case"hashedrekord":if(n==zP.HASHEDREKORD_API_VERSION_V1)return(0,zP.verifyHashedRekordTLogBody)(o,e);{let s=gbe.Entry.fromJSON(o);return(0,zP.verifyHashedRekordTLogBodyV2)(s,e)}default:throw new gP.VerificationError({code:"TLOG_BODY_ERROR",message:`unsupported kind: ${r}`})}}i(Q20,"verifyTLogBody");function P20(t,e){let r=!1;if(k20(t)&&((0,_20.verifyTLogSET)(t,e),r=!0),U20(t)){let n=(0,v20.verifyCheckpoint)(t,e);(0,L20.verifyMerkleInclusion)(t,n),r=!0}if(!r)throw new gP.VerificationError({code:"TLOG_MISSING_INCLUSION_ERROR",message:"inclusion could not be verified"})}i(P20,"verifyTLogInclusion");function k20(t){return t.inclusionPromise!==void 0}i(k20,"isTLogEntryWithInclusionPromise");function U20(t){return t.inclusionProof!==void 0}i(U20,"isTLogEntryWithInclusionProof")});var qbe=m(bq=>{"use strict";Object.defineProperty(bq,"__esModule",{value:!0});bq.Verifier=void 0;var G20=require("util"),
[`+I+"] ";for(W in arguments[0])s(arguments[0],W)&&(C+=W+": "+arguments[0][W]+", ");C=C.slice(0,-2)}else C=arguments[I];g.push(C)}_(d+`
Arguments: `+Array.prototype.slice.call(g).join("")+`
`+new Error().stack),h=!1}return f.apply(this,arguments)},f)}i(ce,"deprecate");var ye={};function Ne(d,f){e.deprecationHandler!=null&&e.deprecationHandler(d,f),ye[d]||(_(f),ye[d]=!0)}i(Ne,"deprecateSimple"),e.suppressDeprecationWarnings=!1,e.deprecationHandler=null;function De(d){return typeof Function<"u"&&d instanceof Function||Object.prototype.toString.call(d)==="[object Function]"}i(De,"isFunction");function ze(d){var f,h;for(h in d)s(d,h)&&(f=d[h],De(f)?this[h]=f:this["_"+h]=f);this._config=d,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}i(ze,"set");function Fe(d,f){var h=l({},d),g;for(g in f)s(f,g)&&(o(d[g])&&o(f[g])?(h[g]={},l(h[g],d[g]),l(h[g],f[g])):f[g]!=null?h[g]=f[g]:delete h[g]);for(g in d)s(d,g)&&!s(f,g)&&o(d[g])&&(h[g]=l({},h[g]));return h}i(Fe,"mergeConfigs");function k(d){d!=null&&this.set(d)}i(k,"Locale");var Te;Object.keys?Te=Object.keys:Te=i(function(d){var f,h=[];for(f in d)s(d,f)&&h.push(f);return h},"keys");var T={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function j(d,f,h){var g=this._calendar[d]||this._calendar.sameElse;return De(g)?g.call(f,h):g}i(j,"calendar");function $e(d,f,h){var g=""+Math.abs(d),C=f-g.length,I=d>=0;return(I?h?"+":"":"-")+Math.pow(10,Math.max(0,C)).toString().substr(1)+g}i($e,"zeroFill");var m1=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,he=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,q0={},je={};function X(d,f,h,g){var C=g;typeof g=="string"&&(C=i(function(){return this[g]()},"func")),d&&(je[d]=C),f&&(je[f[0]]=function(){return $e(C.apply(this,arguments),f[1],f[2])}),h&&(je[h]=function(){return this.localeData().ordinal(C.apply(this,arguments),d)})}i(X,"addFormatToken");function Rt(d){return d.match(/\[[\s\S]/)?d.replace(/^\[|\]$/g,""):d.replace(/\\/g,"")}i(Rt,"removeFormattingTokens");function Nt(d){var f=d.match(m1),h,g;for(h=0,g=f.length;h<g;h++)je[f[h]]?f[h]=je[f[h]]:f[h]=Rt(f[h]);return function(C){var I="",W;for(W=0;W<g;W++)I+=De(f[W])?f[W].call(C,d):f[W];return I}}i(Nt,"makeFormatFunction");function m0(d,f){return d.isValid()?(f=er(f,d.localeData()),q0[f]=q0[f]||Nt(f),q0[f](d)):d.localeData().invalidDate()}i(m0,"formatMoment");function er(d,f){var h=5;function g(C){return f.longDateFormat(C)||C}for(i(g,"replaceLongDateFormatTokens"),he.lastIndex=0;h>=0&&he.test(d);)d=d.replace(he,g),he.lastIndex=0,h-=1;return d}i(er,"expandFormat");var Vh={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function Jh(d){var f=this._longDateFormat[d],h=this._longDateFormat[d.toUpperCase()];return f||!h?f:(this._longDateFormat[d]=h.match(m1).map(function(g){return g==="MMMM"||g==="MM"||g==="DD"||g==="dddd"?g.slice(1):g}).join(""),this._longDateFormat[d])}i(Jh,"longDateFormat");var ID="Invalid date";function Yc(){return this._invalidDate}i(Yc,"invalidDate");var R="%d",v=/\d{1,2}/;function L(d){return this._ordinal.replace("%d",d)}i(L,"ordinal");var G={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function we(d,f,h,g){var C=this._relativeTime[h];return De(C)?C(d,f,h,g):C.replace(/%d/i,d)}i(we,"relativeTime");function o0(d,f){var h=this._relativeTime[d>0?"future":"past"];return De(h)?h(f):h.replace(/%s/i,f)}i(o0,"pastFuture");var e1={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"m
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}i(Q30,"_nonIterableRest");qh.exports=Q30,qh.exports.__esModule=!0,qh.exports.default=qh.exports});var U3e=m((yb1,Dh)=>{var P30=DOe(),k30=h3e(),U30=P3e(),G30=k3e();function H30(t,e){return P30(t)||k30(t,e)||U30(t,e)||G30()}i(H30,"_slicedToArray");Dh.exports=H30,Dh.exports.__esModule=!0,Dh.exports.default=Dh.exports});var H3e=m((qb1,G3e)=>{"use strict";var X30=pD().forEach,V30=Oh(),J30=V30("forEach");G3e.exports=J30?[].forEach:i(function(e){return X30(this,e,arguments.length>1?arguments[1]:void 0)},"forEach")});var V3e=m(()=>{"use strict";var Y30=F0(),X3e=H3e();Y30({target:"Array",proto:!0,forced:[].forEach!==X3e},{forEach:X3e})});var Y3e=m((Nb1,J3e)=>{"use strict";V3e();var $30=Lo();J3e.exports=$30("Array","forEach")});var j3e=m((wb1,$3e)=>{"use strict";var j30=Y3e();$3e.exports=j30});var K3e=m(()=>{});var eEe=m((Wb1,Z3e)=>{"use strict";var K30=Nd(),Z30=Kt(),eE0=Dr(),tE0=j3e();K3e();var z7=Array.prototype,rE0={DOMTokenList:!0,NodeList:!0};Z3e.exports=function(t){var e=t.forEach;return t===z7||eE0(z7,t)&&e===z7.forEach||Z30(rE0,K30(t))?tE0:e}});var g7=m((xb1,tEe)=>{tEe.exports=eEe()});var rEe=m(()=>{"use strict";var nE0=F0(),oE0=Vq().includes,sE0=f1(),iE0=ek(),aE0=sE0(function(){return!Array(1).includes()});nE0({target:"Array",proto:!0,forced:aE0},{includes:i(function(e){return oE0(this,e,arguments.length>1?arguments[1]:void 0)},"includes")});iE0("includes")});var oEe=m((_b1,nEe)=>{"use strict";rEe();var cE0=Lo();nEe.exports=cE0("Array","includes")});var iEe=m((Qb1,sEe)=>{"use strict";var uE0=un(),pE0=ga(),AE0=N1(),lE0=AE0("match");sEe.exports=function(t){var e;return uE0(t)&&((e=t[lE0])!==void 0?!!e:pE0(t)==="RegExp")}});var cEe=m((Pb1,aEe)=>{"use strict";var dE0=iEe(),bE0=TypeError;aEe.exports=function(t){if(dE0(t))throw new bE0("The method doesn't accept regular expressions");return t}});var pEe=m((kb1,uEe)=>{"use strict";var fE0=N1(),ME0=fE0("match");uEe.exports=function(t){var e=/./;try{"/./"[t](e)}catch{try{return e[ME0]=!1,"/./"[t](e)}catch{}}return!1}});var lEe=m(()=>{"use strict";var mE0=F0(),hE0=n1(),zE0=cEe(),gE0=Up(),AEe=ui(),OE0=pEe(),EE0=hE0("".indexOf);mE0({target:"String",proto:!0,forced:!OE0("includes")},{includes:i(function(e){return!!~EE0(AEe(gE0(this)),AEe(zE0(e)),arguments.length>1?arguments[1]:void 0)},"includes")})});var bEe=m((Xb1,dEe)=>{"use strict";lEe();var CE0=Lo();dEe.exports=CE0("String","includes")});var mEe=m((Vb1,MEe)=>{"use strict";var fEe=Dr(),yE0=oEe(),BE0=bEe(),O7=Array.prototype,E7=String.prototype;MEe.exports=function(t){var e=t.includes;return t===O7||fEe(O7,t)&&e===O7.includes?yE0:typeof t=="string"||t===E7||fEe(E7,t)&&e===E7.includes?BE0:e}});var zEe=m((Jb1,hEe)=>{"use strict";var qE0=mEe();hEe.exports=qE0});var Ih=m((Yb1,gEe)=>{gEe.exports=zEe()});var C7=m(($b1,OEe)=>{"use strict";OEe.exports=`
\v\f\r \xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF`});var yEe=m((jb1,CEe)=>{"use strict";var DE0=n1(),IE0=Up(),RE0=ui(),B7=C7(),EEe=DE0("".replace),NE0=RegExp("^["+B7+"]+"),wE0=RegExp("(^|[^"+B7+"])["+B7+"]+$"),y7=i(function(t){return function(e){var r=RE0(IE0(e));return t&1&&(r=EEe(r,NE0,"")),t&2&&(r=EEe(r,wE0,"$1")),r}},"createMethod");CEe.exports={start:y7(1),end:y7(2),trim:y7(3)}});var wEe=m((Zb1,NEe)=>{"use strict";var IEe=J1(),SE0=f1(),FE0=n1(),WE0=ui(),xE0=yEe().trim,BEe=C7(),Rh=IEe.parseInt,qEe=IEe.Symbol,DEe=qEe&&qEe.iterator,REe=/^[+-]?0x/i,TE0=FE0(REe.exec),vE0=Rh(BEe+"08")!==8||Rh(BEe+"0x16")!==22||DEe&&!SE0(function(){Rh(Object(DEe))});NEe.exports=vE0?i(function(e,r){var n=xE0(WE0(e));return Rh(n,r>>>0||(TE0(REe,n)?16:10))},"parseInt"):Rh});var FEe=m(()=>{"use strict";var LE0=F0(),SEe=wEe();LE0({global:!0,forced:parseInt!==SEe},{parseInt:SEe})});var xEe=m((nf1,WEe)=>{"use strict";FEe();var _E0=Wo();WEe.exports=_E0.parseInt});var vEe=m((of1,TEe)=>{"use strict";var QE0=xEe();TEe.exports=QE0});var _Ee=m((sf1,LEe)=>{LEe.exports=vEe()});var zD=m((if1,QEe)=>{QEe.exports=h7()});var UEe=m((af1,kEe)=>{"use strict";var PEe=rh(),PE0=TypeError;kEe.exports=function(t,e){if(!delete t[e])throw new PE0("Cannot delete property "+PEe(e)+" of "+PEe(t))}});var XEe=m((cf1,HEe)=>{"use strict";var GEe=bh(),kE0=Math.floor,q7=i(function(t,e){var r=t.length;if(r<8)for(var n=1,o,s;n<r;){for(s=n,o=t[n];s&&e(t[s-1],o)>0;)t[s]=t[--s];s!==n++&&(t[s]=o)}else for(var a=kE0(r/2),c=q7(GEe(t,0,a),e),u=q7(GEe(t,a),e),p=c.length,A=u.length,l=0,b=0;l<p||b<A;)t[l+b]=l<p&&b<A?e(c[l],u[b])<=0?c[l++]:u[b++]:l<p?c[l++]:u[b++];return t},"sort");HEe.exports=q7});var YEe=m((pf1,JEe)=>{"use strict";var UE0=Ed(),VEe=UE0.match(/firefox\/(\d+)/i);JEe.exports=!!VEe&&+VEe[1]});var jEe=m((Af1,$Ee)=>{"use strict";var GE0=Ed();$Ee.exports=/MSIE|Trident/.test(GE0)});var eCe=m((lf1,ZEe)=>{"use strict";var HE0=Ed(),KEe=HE0.match(/AppleWebKit\/(\d+)\./);ZEe.exports=!!KEe&&+KEe[1]});var uCe=m(()=>{"use strict";var XE0=F0(),aCe=n1(),VE0=Hp(),JE0=ai(),tCe=Ca(),YE0=UEe(),rCe=ui(),D7=f1(),$E0=XEe(),jE0=Oh(),nCe=YEe(),KE0=jEe(),oCe=Cd(),sCe=eCe(),Hc=[],iCe=aCe(Hc.sort),ZE0=aCe(Hc.push),eC0=D7(function(){Hc.sort(void 0)}),tC0=D7(function(){Hc.sort(null)}),rC0=jE0("sort"),cCe=!D7(function(){if(oCe)return oCe<70;if(!(nCe&&nCe>3)){if(KE0)return!0;if(sCe)return sCe<603;var t="",e,r,n,o;for(e=65;e<76;e++){switch(r=String.fromCharCode(e),e){case 66:case 69:case 70:case 72:n=3;break;case 68:case 71:n=4;break;default:n=2}for(o=0;o<47;o++)Hc.push({k:r+o,v:n})}for(Hc.sort(function(s,a){return a.v-s.v}),o=0;o<Hc.length;o++)r=Hc[o].k.charAt(0),t.charAt(t.length-1)!==r&&(t+=r);return t!=="DGBEFHACIJK"}}),nC0=eC0||!tC0||!rC0||!cCe,oC0=i(function(t){return function(e,r){return r===void 0?-1:e===void 0?1:t!==void 0?+t(e,r)||0:rCe(e)>rCe(r)?1:-1}},"getSortCompare");XE0({target:"Array",proto:!0,forced:nC0},{sort:i(function(e){e!==void 0&&VE0(e);var r=JE0(this);if(cCe)return e===void 0?iCe(r):iCe(r,e);var n=[],o=tCe(r),s,a;for(a=0;a<o;a++)a in r&&ZE0(n,r[a]);for($E0(n,oC0(e)),s=tCe(n),a=0;a<s;)r[a]=n[a++];for(;a<o;)YE0(r,a++);return r},"sort")})});var ACe=m((Mf1,pCe)=>{"use strict";uCe();var sC0=Lo();pCe.exports=sC0("Array","sort")});var dCe=m((mf1,lCe)=>{"use strict";var iC0=Dr(),aC0=ACe(),I7=Array.prototype;lCe.exports=function(t){var e=t.sort;return t===I7||iC0(I7,t)&&e===I7.sort?aC0:e}});var fCe=m((hf1,bCe)=>{"use strict";var cC0=dCe();bCe.exports=cC0});var mCe=m((zf1,MCe)=>{MCe.exports=fCe()});var hCe=m(()=>{});var OCe=m((Ef1,gCe)=>{"use strict";var uC0=J1(),pC0=f1(),zCe=uC0.RegExp,AC0=!pC0(function(){var t=!0;try{zCe(".","d")}catch{t=!1}var e={},r="",n=t?"dgimsy":"gimsy",o=i(function(u,p){Object.defineProperty(e,u,{get:i(function(){return r+=p,!0},"get")})},"addGetter"),s={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};t&&(s.hasIndices="d");for(var a in s)o(a,s[a]);var c=Object.getOwnPropertyDescriptor(zCe.prototype,"flags").get.call(e);return c!==n||r!==n});gCe.exports={correct:AC0}});var CCe=m((yf1,E
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var s=!0,a=!1,c;return{s:i(function(){r=(0,CC0.default)(t)},"s"),n:i(function(){var p=r.next();return s=p.done,p},"n"),e:i(function(p){a=!0,c=p},"e"),f:i(function(){try{!s&&r.return!=null&&r.return()}finally{if(a)throw c}},"f")}}i(Sh,"_createForOfIteratorHelper");function wC0(t,e){var r;if(t){if(typeof t=="string")return TCe(t,e);var n=(0,ro.default)(r=Object.prototype.toString.call(t)).call(r,8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return(0,DC0.default)(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return TCe(t,e)}}i(wC0,"_unsupportedIterableToArray");function TCe(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}i(TCe,"_arrayLikeToArray");var k0="xregexp",eA={astral:!1,namespacing:!1},M1={exec:RegExp.prototype.exec,test:RegExp.prototype.test,match:String.prototype.match,replace:String.prototype.replace,split:String.prototype.split},pi={},Nh={},Wd={},R7=[],xd="default",vCe="class",SC0={default:/\\(?:0(?:[0-3][0-7]{0,2}|[4-7][0-7]?)?|[1-9]\d*|x[\dA-Fa-f]{2}|u(?:[\dA-Fa-f]{4}|{[\dA-Fa-f]+})|c[A-Za-z]|[\s\S])|\(\?(?:[:=!]|<[=!])|[?*+]\?|{\d+(?:,\d*)?}\??|[\s\S]/,class:/\\(?:[0-3][0-7]{0,2}|[4-7][0-7]?|x[\dA-Fa-f]{2}|u(?:[\dA-Fa-f]{4}|{[\dA-Fa-f]+})|c[A-Za-z]|[\s\S])|[\s\S]/},FC0=/\$(?:{([\w$]+)}|<([\w$]+)>|(\d\d?|[\s\S]))/g,WC0=M1.exec.call(/()??/,"")[1]===void 0,xC0=(0,Zp.default)(/x/)!==void 0,TC0={},kCe=TC0.toString;function w7(t){var e=!0;try{if(new RegExp("",t),t==="y"){var r=(function(){return"gy"})(),n=".a".replace(new RegExp("a",r),".")==="..";n&&(e=!1)}}catch{e=!1}return e}i(w7,"hasNativeFlag");var UCe=w7("u"),S7=w7("y"),GCe={g:!0,i:!0,m:!0,u:UCe,y:S7};function HCe(t,e,r,n,o){var s;if(t[k0]={captureNames:e},o)return t;if(t.__proto__)t.__proto__=K.prototype;else for(var a in K.prototype)t[a]=K.prototype[a];return t[k0].source=r,t[k0].flags=n&&(0,NC0.default)(s=n.split("")).call(s).join(""),t}i(HCe,"augment");function wh(t){return M1.replace.call(t,/([\s\S])(?=[\s\S]*\1)/g,"")}i(wh,"clipDuplicates");function rA(t,e){var r;if(!K.isRegExp(t))throw new TypeError("Type RegExp expected");var n=t[k0]||{},o=vC0(t),s="",a="",c=null,u=null;return e=e||{},e.removeG&&(a+="g"),e.removeY&&(a+="y"),a&&(o=M1.replace.call(o,new RegExp("[".concat(a,"]+"),"g"),"")),e.addG&&(s+="g"),e.addY&&(s+="y"),s&&(o=wh(o+s)),e.isInternalOnly||(n.source!==void 0&&(c=n.source),(0,Zp.default)(n)!=null&&(u=s?wh((0,Zp.default)(n)+s):(0,Zp.default)(n))),t=HCe(new RegExp(e.source||t.source,o),LC0(t)?(0,ro.default)(r=n.captureNames).call(r,0):null,c,u,e.isInternalOnly),t}i(rA,"copyRegex");function XCe(t){return(0,PCe.default)(t,16)}i(XCe,"dec");function VCe(t,e,r){return t.input[t.index-1]==="("||t.input[t.index+t[0].length]===")"||t.input[t.index-1]==="|"||t.input[t.index+t[0].length]==="|"||t.index<1||t.index+t[0].length>=t.input.length||M1.test.call(/^\(\?[:=!]/,t.input.substr(t.index-3,3))||_C0(t.input,t.index+t[0].length,r)?"":"(?:)"}i(VCe,"getContextualTokenSeparator");function vC0(t){return xC0?(0,Zp.default)(t):M1.exec.call(/\/([a-z]*)$/i,RegExp.prototype.toString.call(t))[1]}i(vC0,"getNativeFlags");function LC0(t){return!!(t[k0]&&t[k0].captureNames)}i(LC0,"hasNamedCapture");function JCe(t){return(0,PCe.default)(t,10).toString(16)}i(JCe,"hex");function _C0(t,e,r){var n="\\(\\?#[^)]*\\)",o="#[^#\\n]*",s="[?*+]|{\\d+(?:,\\d*)?}";return M1.test.call((0,tA.default)(r).call(r,"x")?/^(?:\s|#[^#\n]*|\(\?#[^)]*\))*(?:[?*+]|{\d+(?:,\d*)?})/:/^(?:\(\?#[^)]*\))*(?:[?*+]|{\d+(?:,\d*)?})/,(0,ro.default)(t).call(t,e))}i(_C0,"isQuantifierNext");function F7(t,e){return kCe.call(t)==="[object ".concat(e,"]")}i(F7,"isType");function YCe(t){for(;t.length<4;)t="0".concat(t);return t}i(YCe,"pad4");function QC0(t,e){if(wh(e)!==e)throw new SyntaxError("Invalid duplicate regex flag ".concat(e));t=M1.replace.call(t,/^\(\?([\w$]+)\)/,function(s,a){if(M1.test.call(/[gy]/,a))throw new SyntaxError("Cannot use flag g or y in mode modifier ".concat(s));return e=wh(e+a),""});var
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var s=!0,a=!1,c;return{s:i(function(){r=(0,Ey0.default)(t)},"s"),n:i(function(){var p=r.next();return s=p.done,p},"n"),e:i(function(p){a=!0,c=p},"e"),f:i(function(){try{!s&&r.return!=null&&r.return()}finally{if(a)throw c}},"f")}}i(Ny0,"_createForOfIteratorHelper");function wy0(t,e){var r;if(t){if(typeof t=="string")return Tye(t,e);var n=(0,Dy0.default)(r=Object.prototype.toString.call(t)).call(r,8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return(0,qy0.default)(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Tye(t,e)}}i(wy0,"_unsupportedIterableToArray");function Tye(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}i(Tye,"_arrayLikeToArray");var Sy0=i(function(e){var r={},n=e._dec,o=e._hex,s=e._pad4;function a(b){return b.replace(/[- _]+/g,"").toLowerCase()}i(a,"normalize");function c(b){var M=/^\\[xu](.+)/.exec(b);return M?n(M[1]):b.charCodeAt(b[0]==="\\"?1:0)}i(c,"charCode");function u(b){var M="",z=-1;return(0,Ry0.default)(e).call(e,b,/(\\x..|\\u....|\\?[\s\S])(?:-(\\x..|\\u....|\\?[\s\S]))?/,function(O){var y=c(O[1]);y>z+1&&(M+="\\u".concat(s(o(z+1))),y>z+2&&(M+="-\\u".concat(s(o(y-1))))),z=c(O[2]||O[1])}),z<65535&&(M+="\\u".concat(s(o(z+1))),z<65534&&(M+="-\\uFFFF")),M}i(u,"invertBmp");function p(b){var M="b!";return r[b][M]||(r[b][M]=u(r[b].bmp))}i(p,"cacheInvertedBmp");function A(b,M){var z=r[b],O="";if(z.bmp&&!z.isBmpLast){var y;O=(0,v7.default)(y="[".concat(z.bmp,"]")).call(y,z.astral?"|":"")}if(z.astral&&(O+=z.astral),z.isBmpLast&&z.bmp){var E;O+=(0,v7.default)(E="".concat(z.astral?"|":"","[")).call(E,z.bmp,"]")}return M?"(?:(?!".concat(O,")(?:[\uD800-\uDBFF][\uDC00-\uDFFF]|[\0-\uFFFF]))"):"(?:".concat(O,")")}i(A,"buildAstral");function l(b,M){var z=M?"a!":"a=";return r[b][z]||(r[b][z]=A(b,M))}i(l,"cacheAstral"),e.addToken(/\\([pP])(?:{(\^?)([^}]*)}|([A-Za-z]))/,function(b,M,z){var O="Invalid double negation ",y="Unknown Unicode token ",E="Unicode token missing data ",B="Astral mode required for Unicode token ",q="Astral mode does not support Unicode tokens within character classes",D=b[1]==="P"||!!b[2],F=(0,Iy0.default)(z).call(z,"A"),x=a(b[4]||b[3]),_=r[x];if(b[1]==="P"&&b[2])throw new SyntaxError(O+b[0]);if(!r.hasOwnProperty(x))throw new SyntaxError(y+b[0]);if(_.inverseOf){if(x=a(_.inverseOf),!r.hasOwnProperty(x)){var ce;throw new ReferenceError((0,v7.default)(ce="".concat(E+b[0]," -> ")).call(ce,_.inverseOf))}_=r[x],D=!D}if(!(_.bmp||F))throw new SyntaxError(B+b[0]);if(F){if(M==="class")throw new SyntaxError(q);return l(x,D)}return M==="class"?D?p(x):_.bmp:"".concat((D?"[^":"[")+_.bmp,"]")},{scope:"all",optionalFlags:"A",leadChar:"\\"}),e.addUnicodeData=function(b){var M="Unicode token requires name",z="Unicode token has no character data ",O=Ny0(b),y;try{for(O.s();!(y=O.n()).done;){var E=y.value;if(!E.name)throw new Error(M);if(!(E.inverseOf||E.bmp||E.astral))throw new Error(z+E.name);r[a(E.name)]=E,E.alias&&(r[a(E.alias)]=E)}}catch(B){O.e(B)}finally{O.f()}e.cache.flush("patterns")},e._getUnicodeProperty=function(b){var M=a(b);return r[M]}},"_default");Lh.default=Sy0;vye.exports=Lh.default});var Qye=m((Zf1,_ye)=>{_ye.exports=[{name:"InAdlam",astral:"\uD83A[\uDD00-\uDD5F]"},{name:"InAegean_Numbers",astral:"\uD800[\uDD00-\uDD3F]"},{name:"InAhom",astral:"\uD805[\uDF00-\uDF3F]"},{name:"InAlchemical_Symbols",astral:"\uD83D[\uDF00-\uDF7F]"},{name:"InAlphabetic_Presentation_Forms",bmp:"\uFB00-\uFB4F"},{name:"InAnatolian_Hieroglyphs",astral:"\uD811[\uDC00-\uDE7F]"},{name:"InAncient_Greek_Musical_Notation",astral:"\uD834[\uDE00-\uDE4F]"},{name:"InAncient_Greek_Numbers",astral:"\uD800[\uDD40-\uDD8F]"},{name:"InAncient_Symbols",astral:"\uD800[\uDD90-\uDDCF]"},{name:"InArabic",bmp:"\u0600-\u06FF"},{name:"InArabic_Extended_A",bmp:"\u08A0-\u08FF"},{name:"InArabic_Mathematical_Alphabetic_Symbols",astral:"\uD83B[\uDE00-\uDEFF]"},{name:"InArabic_Presentation_Forms_A",bmp:"\uFB50-\uFDFF"},{name:"InArabic_Presentation_Forms_B",
Support boolean input list: \`true | True | TRUE | false | False | FALSE\``)}i(Vj,"getBooleanInput");function kN(t,e){if(process.env.GITHUB_OUTPUT||"")return Yd("OUTPUT",Mz(t,e));process.stdout.write(PN.EOL),Po("set-output",{name:t},Qo(e))}i(kN,"setOutput");function Jj(t){process.exitCode=QN.Failure,Al(t)}i(Jj,"setFailed");function vi(){return process.env.RUNNER_DEBUG==="1"}i(vi,"isDebug");function N(t){Po("debug",{},t)}i(N,"debug");function Al(t,e={}){Po("error",jD(e),t instanceof Error?t.toString():t)}i(Al,"error");function r0(t,e={}){Po("warning",jD(e),t instanceof Error?t.toString():t)}i(r0,"warning");function S(t){process.stdout.write(t+PN.EOL)}i(S,"info");function Iu(t){ZD("group",t)}i(Iu,"startGroup");function Ru(){ZD("endgroup")}i(Ru,"endGroup");function ct(t,e){return sQe(this,void 0,void 0,function*(){Iu(t);let r;try{r=yield e()}finally{Ru()}return r})}i(ct,"group");function mO(t,e){if(process.env.GITHUB_STATE||"")return Yd("STATE",Mz(t,e));Po("save-state",{name:t},Qo(e))}i(mO,"saveState");function Yj(t){return process.env[`STATE_${t}`]||""}i(Yj,"getState");var Oy=w(require("fs"),1),eL=w(require("os"),1),tL=w(require("path"),1);var jj=w(require("os"),1);function of(t){return t==null?"":typeof t=="string"||t instanceof String?t:JSON.stringify(t)}i(of,"toCommandValue");function Kj(t,e,r){let n=new UN(t,e,r);process.stdout.write(n.toString()+jj.EOL)}i(Kj,"issueCommand");var $j="::",UN=class{static{i(this,"Command")}constructor(e,r,n){e||(e="missing.command"),this.command=e,this.properties=r,this.message=n}toString(){let e=$j+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let r=!0;for(let n in this.properties)if(this.properties.hasOwnProperty(n)){let o=this.properties[n];o&&(r?r=!1:e+=",",e+=`${n}=${aQe(o)}`)}}return e+=`${$j}${iQe(this.message)}`,e}};function iQe(t){return of(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}i(iQe,"escapeData");function aQe(t){return of(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}i(aQe,"escapeProperty");var rK=w(require("os"),1);var eK=require("os"),sf=require("fs");var GN=function(t,e,r,n){function o(s){return s instanceof r?s:new r(function(a){a(s)})}return i(o,"adopt"),new(r||(r=Promise))(function(s,a){function c(A){try{p(n.next(A))}catch(l){a(l)}}i(c,"fulfilled");function u(A){try{p(n.throw(A))}catch(l){a(l)}}i(u,"rejected");function p(A){A.done?s(A.value):o(A.value).then(c,u)}i(p,"step"),p((n=n.apply(t,e||[])).next())})},{access:cQe,appendFile:uQe,writeFile:pQe}=sf.promises,Zj="GITHUB_STEP_SUMMARY";var HN=class{static{i(this,"Summary")}constructor(){this._buffer=""}filePath(){return GN(this,void 0,void 0,function*(){if(this._filePath)return this._filePath;let e=process.env[Zj];if(!e)throw new Error(`Unable to find environment variable for $${Zj}. Check if your runtime environment supports job summaries.`);try{yield cQe(e,sf.constants.R_OK|sf.constants.W_OK)}catch{throw new Error(`Unable to access summary file: '${e}'. Check if the file has correct read/write permissions.`)}return this._filePath=e,this._filePath})}wrap(e,r,n={}){let o=Object.entries(n).map(([s,a])=>` ${s}="${a}"`).join("");return r?`<${e}${o}>${r}</${e}>`:`<${e}${o}>`}write(e){return GN(this,void 0,void 0,function*(){let r=!!e?.overwrite,n=yield this.filePath();return yield(r?pQe:uQe)(n,this._buffer,{encoding:"utf8"}),this.emptyBuffer()})}clear(){return GN(this,void 0,void 0,function*(){return this.emptyBuffer().write({overwrite:!0})})}stringify(){return this._buffer}isEmptyBuffer(){return this._buffer.length===0}emptyBuffer(){return this._buffer="",this}addRaw(e,r=!1){return this._buffer+=e,r?this.addEOL():this}addEOL(){return this.addRaw(eK.EOL)}addCodeBlock(e,r){let n=Object.assign({},r&&{lang:r}),o=this.wrap("pre",this.wrap("code",e),n);return this.addRaw(o).addEOL()}addList(e,r=!1){let n=r?"ol":"ul",o=e.map(a=>this.wrap("li",a)).join(""),s=this.wrap(n,o);return this.addRaw(s).addEOL()}addTable(e){let r=e.map(o=>{let s=o.map(a=>{if(typeof a=="string")return this.wrap("td",a);let{header:c,data:u,cols
`),e=e.replace(/\r/g,`
`));let o=e.split(`
`).map(s=>s.trim());for(let s of o)!s||s.startsWith("#")||n.patterns.push(new zf(s));return n.searchPaths.push(...qw(n.patterns)),n})}static stat(e,r,n){return Sw(this,void 0,void 0,function*(){let o;if(r.followSymbolicLinks)try{o=yield hl.promises.stat(e.path)}catch(s){if(s.code==="ENOENT"){if(r.omitBrokenSymbolicLinks){Cn(`Broken symlink '${e.path}'`);return}throw new Error(`No information found for the path '${e.path}'. This may indicate a broken symbolic link.`)}throw s}else o=yield hl.promises.lstat(e.path);if(o.isDirectory()&&r.followSymbolicLinks){let s=yield hl.promises.realpath(e.path);for(;n.length>=e.level;)n.pop();if(n.some(a=>a===s)){Cn(`Symlink cycle detected for path '${e.path}' and realpath '${s}'`);return}n.push(s)}return o})}};var jke=function(t,e,r,n){function o(s){return s instanceof r?s:new r(function(a){a(s)})}return i(o,"adopt"),new(r||(r=Promise))(function(s,a){function c(A){try{p(n.next(A))}catch(l){a(l)}}i(c,"fulfilled");function u(A){try{p(n.throw(A))}catch(l){a(l)}}i(u,"rejected");function p(A){A.done?s(A.value):o(A.value).then(c,u)}i(p,"step"),p((n=n.apply(t,e||[])).next())})};function Wee(t,e){return jke(this,void 0,void 0,function*(){return yield vO.create(t,e)})}i(Wee,"create");var ZO=w(require("crypto"),1),El=w(require("fs"),1),Fu=w(require("path"),1),D1e=w(B1e(),1),I1e=w(require("util"),1);var qf;(function(t){t.Gzip="cache.tgz",t.Zstd="cache.tzst"})(qf||(qf={}));var Qt;(function(t){t.Gzip="gzip",t.ZstdWithoutLong="zstd-without-long",t.Zstd="zstd"})(Qt||(Qt={}));var Gr;(function(t){t.GNU="gnu",t.BSD="bsd"})(Gr||(Gr={}));var jO=2,KO=5e3,Zw=5e3,e6=`${process.env.PROGRAMFILES}\\Git\\usr\\bin\\tar.exe`,q1e=`${process.env.SYSTEMDRIVE}\\Windows\\System32\\tar.exe`,Df="cache.tar",t6="manifest.txt",LS0=10*Math.pow(1024,3);var Ol=function(t,e,r,n){function o(s){return s instanceof r?s:new r(function(a){a(s)})}return i(o,"adopt"),new(r||(r=Promise))(function(s,a){function c(A){try{p(n.next(A))}catch(l){a(l)}}i(c,"fulfilled");function u(A){try{p(n.throw(A))}catch(l){a(l)}}i(u,"rejected");function p(A){A.done?s(A.value):o(A.value).then(c,u)}i(p,"step"),p((n=n.apply(t,e||[])).next())})},oGe=function(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],r;return e?e.call(t):(t=typeof __values=="function"?__values(t):t[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(s){r[s]=t[s]&&function(a){return new Promise(function(c,u){a=t[s](a),o(c,u,a.done,a.value)})}}function o(s,a,c,u){Promise.resolve(u).then(function(p){s({value:p,done:c})},a)}},sGe="1.0";function If(){return Ol(this,void 0,void 0,function*(){let t=process.platform==="win32",e=process.env.RUNNER_TEMP||"";if(!e){let n;t?n=process.env.USERPROFILE||"C:\\":process.platform==="darwin"?n="/Users":n="/home",e=Fu.join(n,"actions","temp")}let r=Fu.join(e,ZO.randomUUID());return yield Ti(r),r})}i(If,"createTempDirectory");function os(t){return El.statSync(t).size}i(os,"getArchiveFileSizeInBytes");function r6(t){return Ol(this,void 0,void 0,function*(){var e,r,n,o,s;let a=[],c=(s=process.env.GITHUB_WORKSPACE)!==null&&s!==void 0?s:process.cwd(),u=yield Wee(t.join(`
`),{implicitDescendants:!1});try{for(var p=!0,A=oGe(u.globGenerator()),l;l=yield A.next(),e=l.done,!e;p=!0){o=l.value,p=!1;let M=Fu.relative(c,o).replace(new RegExp(`\\${Fu.sep}`,"g"),"/");N(`Matched: ${M}`),M===""?a.push("."):a.push(`${M}`)}}catch(b){r={error:b}}finally{try{!p&&!e&&(n=A.return)&&(yield n.call(A))}finally{if(r)throw r.error}}return a})}i(r6,"resolvePaths");function Rf(t){return Ol(this,void 0,void 0,function*(){return I1e.promisify(El.unlink)(t)})}i(Rf,"unlinkFile");function R1e(t){return Ol(this,arguments,void 0,function*(e,r=[]){let n="";r.push("--version"),N(`Checking ${e} ${r.join(" ")}`);try{yield Pr(`${e}`,r,{ignoreReturnCode:!0,silent:!0,listeners:{stdout:i(o=>n+=o.toString(),"stdout"),stderr:i(o=>n+=o.toString(),"stderr")}})}catch(o){N(o.message)}return n=n.trim(),N(n),n})}i(R1e,"getVersion");function Nf(){return Ol(this,void 0,void 0,function*(){let t=yield R1e("zstd",["--quiet"]),e=D1e.clean(t);return N(`zstd version: ${e}`),t===""?Qt.Gzip:Qt.ZstdWithoutLong})}i(Nf,"getCompressionMethod");function nc(t){return t===Qt.Gzip?qf.Gzip:qf.Zstd}i(nc,"getCacheFileName");function N1e(){return Ol(this,void 0,void 0,function*(){return El.existsSync(e6)?e6:(yield R1e("tar")).toLowerCase().includes("gnu tar")?at("tar"):""})}i(N1e,"getGnuTarPathOnWindows");function n6(t,e){if(e===void 0)throw Error(`Expected ${t} but value was undefiend`);return e}i(n6,"assertDefined");function Cl(t,e,r=!1){let n=t.slice();return e&&n.push(e),process.platform==="win32"&&!r&&n.push("windows-only"),n.push(sGe),ZO.createHash("sha256").update(n.join("|")).digest("hex")}i(Cl,"getCacheVersion");function w1e(){let t=process.env.ACTIONS_RUNTIME_TOKEN;if(!t)throw new Error("Unable to get the ACTIONS_RUNTIME_TOKEN env variable");return t}i(w1e,"getRuntimeToken");var Sf=w(require("http"),1),i6=w(require("https"),1);function o6(t){let e=t.protocol==="https:";if(iGe(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 t3(r)}catch{if(!r.startsWith("http://")&&!r.startsWith("https://"))return new t3(`http://${r}`)}else return}i(o6,"getProxyUrl");function iGe(t){if(!t.hostname)return!1;let e=t.hostname;if(aGe(e))return!0;let r=process.env.no_proxy||process.env.NO_PROXY||"";if(!r)return!1;let n;t.port?n=Number(t.port):t.protocol==="http:"?n=80:t.protocol==="https:"&&(n=443);let o=[t.hostname.toUpperCase()];typeof n=="number"&&o.push(`${o[0]}:${n}`);for(let s of r.split(",").map(a=>a.trim().toUpperCase()).filter(a=>a))if(s==="*"||o.some(a=>a===s||a.endsWith(`.${s}`)||s.startsWith(".")&&a.endsWith(`${s}`)))return!0;return!1}i(iGe,"checkBypass");function aGe(t){let e=t.toLowerCase();return e==="localhost"||e.startsWith("127.")||e.startsWith("[::1]")||e.startsWith("[0:0:0:0:0:0:0:1]")}i(aGe,"isLoopbackAddress");var t3=class extends URL{static{i(this,"DecodedURL")}constructor(e,r){super(e,r),this._decodedUsername=decodeURIComponent(super.username),this._decodedPassword=decodeURIComponent(super.password)}get username(){return this._decodedUsername}get password(){return this._decodedPassword}};var oc=w($d(),1),S1e=w(cl(),1);var E1=function(t,e,r,n){function o(s){return s instanceof r?s:new r(function(a){a(s)})}return i(o,"adopt"),new(r||(r=Promise))(function(s,a){function c(A){try{p(n.next(A))}catch(l){a(l)}}i(c,"fulfilled");function u(A){try{p(n.throw(A))}catch(l){a(l)}}i(u,"rejected");function p(A){A.done?s(A.value):o(A.value).then(c,u)}i(p,"step"),p((n=n.apply(t,e||[])).next())})},s1;(function(t){t[t.OK=200]="OK",t[t.MultipleChoices=300]="MultipleChoices",t[t.MovedPermanently=301]="MovedPermanently",t[t.ResourceMoved=302]="ResourceMoved",t[t.SeeOther=303]="SeeOther",t[t.NotModified=304]="NotModified",t[t.UseProxy=305]="UseProxy",t[t.SwitchProxy=306]="SwitchProxy",t[t.TemporaryRedirect=307]="TemporaryRedirect",t[t.PermanentRedirect=308]="PermanentRedirect",t[t.BadRequest=400]="BadRequest",t[t.Unauthorized=401]="Unauthorized",t[t.PaymentRequired=402]="PaymentRequired",t[t.Forbidden=403]="Forbidden",t[t.NotFound=404]="NotFound",t[t.MethodNotAllowed=405]="MethodNotAllo
${EGe.sanitize({...this,request:{...this.request,agent:n},response:this.response})}`,"value"),enumerable:!1}),Object.setPrototypeOf(this,t.prototype)}};function a3(t){return t instanceof kt?!0:xu(t)&&t.name==="RestError"}i(a3,"isRestError");function ar(t,e){return Buffer.from(t,e)}i(ar,"stringToUint8Array");var c3=w(require("node:http"),1),u3=w(require("node:https"),1),M6=w(require("node:zlib"),1),$1e=require("node:stream");var qn=Ff("ts-http-runtime");var CGe={};function Wf(t){return t&&typeof t.pipe=="function"}i(Wf,"isReadableStream");function Y1e(t){return t.readable===!1?Promise.resolve():new Promise(e=>{let r=i(()=>{e(),t.removeListener("close",r),t.removeListener("end",r),t.removeListener("error",r)},"handler");t.on("close",r),t.on("end",r),t.on("error",r)})}i(Y1e,"isStreamComplete");function j1e(t){return t&&typeof t.byteLength=="number"}i(j1e,"isArrayBuffer");var p3=class extends $1e.Transform{static{i(this,"ReportTransform")}loadedBytes=0;progressCallback;_transform(e,r,n){this.push(e),this.loadedBytes+=e.length;try{this.progressCallback({loadedBytes:this.loadedBytes}),n()}catch(o){n(o)}}constructor(e){super(),this.progressCallback=e}},m6=class{static{i(this,"NodeHttpClient")}cachedHttpAgent;cachedHttpsAgents=new WeakMap;async sendRequest(e){let r=new AbortController,n;if(e.abortSignal){if(e.abortSignal.aborted)throw new is("The operation was aborted. Request has already been canceled.");n=i(p=>{p.type==="abort"&&r.abort()},"abortListener"),e.abortSignal.addEventListener("abort",n)}let o;e.timeout>0&&(o=setTimeout(()=>{let p=new zo;qn.info(`request to '${p.sanitizeUrl(e.url)}' timed out. canceling...`),r.abort()},e.timeout));let s=e.headers.get("Accept-Encoding"),a=s?.includes("gzip")||s?.includes("deflate"),c=typeof e.body=="function"?e.body():e.body;if(c&&!e.headers.has("Content-Length")){let p=DGe(c);p!==null&&e.headers.set("Content-Length",p)}let u;try{if(c&&e.onUploadProgress){let z=e.onUploadProgress,O=new p3(z);O.on("error",y=>{qn.error("Error in upload progress",y)}),Wf(c)?c.pipe(O):O.end(c),c=O}let p=await this.makeRequest(e,r,c);o!==void 0&&clearTimeout(o);let A=yGe(p),b={status:p.statusCode??0,headers:A,request:e};if(e.method==="HEAD")return p.resume(),b;u=a?BGe(p,A):p;let M=e.onDownloadProgress;if(M){let z=new p3(M);z.on("error",O=>{qn.error("Error in download progress",O)}),u.pipe(z),u=z}return e.streamResponseStatusCodes?.has(Number.POSITIVE_INFINITY)||e.streamResponseStatusCodes?.has(b.status)?b.readableStreamBody=u:b.bodyAsText=await qGe(u),b}finally{if(e.abortSignal&&n){let p=Promise.resolve();Wf(c)&&(p=Y1e(c));let A=Promise.resolve();Wf(u)&&(A=Y1e(u)),Promise.all([p,A]).then(()=>{n&&e.abortSignal?.removeEventListener("abort",n)}).catch(l=>{qn.warning("Error when cleaning up abortListener on httpRequest",l)})}}}makeRequest(e,r,n){let o=new URL(e.url),s=o.protocol!=="https:";if(s&&!e.allowInsecureConnection)throw new Error(`Cannot connect to ${e.url} while allowInsecureConnection is false.`);let c={agent:e.agent??this.getOrCreateAgent(e,s),hostname:o.hostname,path:`${o.pathname}${o.search}`,port:o.port,method:e.method,headers:e.headers.toJSON({preserveCase:!0}),...e.requestOverrides};return new Promise((u,p)=>{let A=s?c3.default.request(c,u):u3.default.request(c,u);A.once("error",l=>{p(new kt(l.message,{code:l.code??kt.REQUEST_SEND_ERROR,request:e}))}),r.signal.addEventListener("abort",()=>{let l=new is("The operation was aborted. Rejecting from abort signal callback while making request.");A.destroy(l),p(l)}),n&&Wf(n)?n.pipe(A):n?typeof n=="string"||Buffer.isBuffer(n)?A.end(n):j1e(n)?A.end(ArrayBuffer.isView(n)?Buffer.from(n.buffer):Buffer.from(n)):(qn.error("Unrecognized body type",n),p(new kt("Unrecognized body type"))):A.end()})}getOrCreateAgent(e,r){let n=e.disableKeepAlive;if(r)return n?c3.default.globalAgent:(this.cachedHttpAgent||(this.cachedHttpAgent=new c3.default.Agent({keepAlive:!0})),this.cachedHttpAgent);{if(n&&!e.tlsSettings)return u3.default.globalAgent;let o=e.tlsSettings??CGe,s=this.cachedHttpsAgents.get(o);return s&&s.options.keepAlive===!n||(qn.info("No cached TLS Agent exi
`;return e}i(oXe,"encodeHeaders");function sXe(t){return t instanceof Uint8Array?t.byteLength:W3(t)?t.size===-1?void 0:t.size:void 0}i(sXe,"getLength");function iXe(t){let e=0;for(let r of t){let n=sXe(r);if(n===void 0)return;e+=n}return e}i(iXe,"getTotalLength");async function aXe(t,e,r){let n=[ar(`--${r}`,"utf-8"),...e.flatMap(s=>[ar(`\r
`,"utf-8"),ar(oXe(s.headers),"utf-8"),ar(`\r
`,"utf-8"),s.body,ar(`\r
--${r}`,"utf-8")]),ar(`--\r
\r
`,"utf-8")],o=iXe(n);o&&t.headers.set("Content-Length",o),t.body=await tre(n)}i(aXe,"buildRequestBody");var vf="multipartPolicy",cXe=70,uXe=new Set("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'()+,-./:=?");function pXe(t){if(t.length>cXe)throw new Error(`Multipart boundary "${t}" exceeds maximum length of 70 characters`);if(Array.from(t).some(e=>!uXe.has(e)))throw new Error(`Multipart boundary "${t}" contains invalid characters`)}i(pXe,"assertValidBoundary");function T3(){return{name:vf,async sendRequest(t,e){if(!t.multipartBody)return e(t);if(t.body)throw new Error("multipartBody and regular body cannot be set at the same time");let r=t.multipartBody.boundary,n=t.headers.get("Content-Type")??"multipart/mixed",o=n.match(/^(multipart\/[^ ;]+)(?:; *boundary=(.+))?$/);if(!o)throw new Error(`Got multipart request body, but content-type header was not multipart: ${n}`);let[,s,a]=o;if(a&&r&&a!==r)throw new Error(`Multipart boundary was specified as ${a} in the header, but got ${r} in the request body`);return r??=a,r?pXe(r):r=nXe(),t.headers.set("Content-Type",`${s}; boundary=${r}`),await aXe(t,t.multipartBody.parts,r),t.multipartBody=void 0,e(t)}}}i(T3,"multipartPolicy");function v3(){return i3()}i(v3,"createEmptyPipeline");var rre=n3({logLevelEnvVarName:"AZURE_LOG_LEVEL",namespace:"azure"}),Tv0=rre.logger;function us(t){return rre.createClientLogger(t)}i(us,"createClientLogger");var ps=us("core-rest-pipeline");function T6(t={}){return l3({logger:ps.info,...t})}i(T6,"logPolicy");var v6=d3;function L6(t={}){return b3(t)}i(L6,"redirectPolicy");var L3=w(require("node:os"),1),_3=w(require("node:process"),1);function nre(){return"User-Agent"}i(nre,"getHeaderName");async function ore(t){if(_3.default&&_3.default.versions){let e=`${L3.default.type()} ${L3.default.release()}; ${L3.default.arch()}`,r=_3.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})`)}}i(ore,"setPlatformSpecificData");var Q3="1.22.2";function hXe(t){let e=[];for(let[r,n]of t){let o=n?`${r}/${n}`:r;e.push(o)}return e.join(" ")}i(hXe,"getUserAgentString");function sre(){return nre()}i(sre,"getUserAgentHeaderName");async function P3(t){let e=new Map;e.set("core-rest-pipeline",Q3),await ore(e);let r=hXe(e);return t?`${t} ${r}`:r}i(P3,"getUserAgentValue");var ire=sre(),are="userAgentPolicy";function _6(t={}){let e=P3(t.userAgentPrefix);return{name:are,async sendRequest(r,n){return r.headers.has(ire)||r.headers.set(ire,await e),n(r)}}}i(_6,"userAgentPolicy");var Yr=class extends Error{static{i(this,"AbortError")}constructor(e){super(e),this.name="AbortError"}};function Q6(t,e){let{cleanupBeforeAbort:r,abortSignal:n,abortErrorMsg:o}=e??{};return new Promise((s,a)=>{function c(){a(new Yr(o??"The operation was aborted."))}i(c,"rejectOnAbort");function u(){n?.removeEventListener("abort",p)}i(u,"removeListeners");function p(){r?.(),u(),c()}if(i(p,"onAbort"),n?.aborted)return c();try{t(A=>{u(),s(A)},A=>{u(),a(A)})}catch(A){a(A)}n?.addEventListener("abort",p)})}i(Q6,"createAbortablePromise");var CXe="The delay was aborted.";function Lf(t,e){let r,{abortSignal:n,abortErrorMsg:o}=e??{};return Q6(s=>{r=setTimeout(s,t)},{cleanupBeforeAbort:i(()=>clearTimeout(r),"cleanupBeforeAbort"),abortSignal:n,abortErrorMsg:o??CXe})}i(Lf,"delay");function ic(t){if(xu(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}`}}i(ic,"getErrorMessage");function cre(t){return xu(t)}i(cre,"isError");function Sl(){return Wu()}i(Sl,"randomUUID");var f0=Lu;var ure=Symbol("rawContent");function k6(t){return typeof t[ure]=="function"}i(k6,"hasRawContent");function pre(t){return k6(t)?t[ure]():t}i(pre,"getRawContent");var k3=vf;function U6(){let t=T3();return{name:k3,sendRequest:i(async(e,r)=>{if(e.multipartBody)for(let n of e.multipartBody.parts)k6(n.body)&&(n.body=pre(n.body));return t.sendRequest(e,r)},"sendRequest")}}i(U6,"multipartPolicy");var G6=f3;function H6(){return M3()}i(H6,"decompressResponsePolicy");fun
`&&t[s]!=="\r";s++)u+=t[s];if(u=u.trim(),u[u.length-1]==="/"&&(u=u.substring(0,u.length-1),s--),!VVe(u)){let l;return u.trim().length===0?l="Invalid space after '<'.":l="Tag '"+u+"' is an invalid name.",C1("InvalidTag",l,Ut(t,s))}let p=kVe(t,s);if(p===!1)return C1("InvalidAttr","Attributes for '"+u+"' have open quote.",Ut(t,s));let A=p.value;if(s=p.index,A[A.length-1]==="/"){let l=s-A.length;A=A.substring(0,A.length-1);let b=Yre(A,e);if(b===!0)n=!0;else return C1(b.err.code,b.err.msg,Ut(t,l+b.err.line))}else if(c)if(p.tagClosed){if(A.trim().length>0)return C1("InvalidTag","Closing tag '"+u+"' can't have attributes or invalid starting.",Ut(t,a));if(r.length===0)return C1("InvalidTag","Closing tag '"+u+"' has not been opened.",Ut(t,a));{let l=r.pop();if(u!==l.tagName){let b=Ut(t,l.tagStartPos);return C1("InvalidTag","Expected closing tag '"+l.tagName+"' (opened in line "+b.line+", col "+b.col+") instead of closing tag '"+u+"'.",Ut(t,a))}r.length==0&&(o=!0)}}else return C1("InvalidTag","Closing tag '"+u+"' doesn't have proper closing.",Ut(t,s));else{let l=Yre(A,e);if(l!==!0)return C1(l.err.code,l.err.msg,Ut(t,s-A.length+l.err.line));if(o===!0)return C1("InvalidXml","Multiple possible root nodes found.",Ut(t,s));e.unpairedTags.indexOf(u)!==-1||r.push({tagName:u,tagStartPos:a}),n=!0}for(s++;s<t.length;s++)if(t[s]==="<")if(t[s+1]==="!"){s++,s=Jre(t,s);continue}else if(t[s+1]==="?"){if(s=Vre(t,++s),s.err)return s}else break;else if(t[s]==="&"){let l=HVe(t,s);if(l==-1)return C1("InvalidChar","char '&' is not expected.",Ut(t,s));s=l}else if(o===!0&&!Xre(t[s]))return C1("InvalidXml","Extra text at the end",Ut(t,s));t[s]==="<"&&s--}}else{if(Xre(t[s]))continue;return C1("InvalidChar","char '"+t[s]+"' is not expected.",Ut(t,s))}if(n){if(r.length==1)return C1("InvalidTag","Unclosed tag '"+r[0].tagName+"'.",Ut(t,r[0].tagStartPos));if(r.length>0)return C1("InvalidXml","Invalid '"+JSON.stringify(r.map(s=>s.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}else return C1("InvalidXml","Start tag expected.",1);return!0}i(tE,"validate");function Xre(t){return t===" "||t===" "||t===`
`||t==="\r"}i(Xre,"isWhiteSpace");function Vre(t,e){let r=e;for(;e<t.length;e++)if(t[e]=="?"||t[e]==" "){let n=t.substr(r,e-r);if(e>5&&n==="xml")return C1("InvalidXml","XML declaration allowed only at the start of the document.",Ut(t,e));if(t[e]=="?"&&t[e+1]==">"){e++;break}else continue}return e}i(Vre,"readPI");function Jre(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}i(Jre,"readCommentAndCDATA");var QVe='"',PVe="'";function kVe(t,e){let r="",n="",o=!1;for(;e<t.length;e++){if(t[e]===QVe||t[e]===PVe)n===""?n=t[e]:n!==t[e]||(n="");else if(t[e]===">"&&n===""){o=!0;break}r+=t[e]}return n!==""?!1:{value:r,index:e,tagClosed:o}}i(kVe,"readAttributeStr");var UVe=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function Yre(t,e){let r=Z3(t,UVe),n={};for(let o=0;o<r.length;o++){if(r[o][1].length===0)return C1("InvalidAttr","Attribute '"+r[o][2]+"' has no space in starting.",$f(r[o]));if(r[o][3]!==void 0&&r[o][4]===void 0)return C1("InvalidAttr","Attribute '"+r[o][2]+"' is without value.",$f(r[o]));if(r[o][3]===void 0&&!e.allowBooleanAttributes)return C1("InvalidAttr","boolean attribute '"+r[o][2]+"' is not allowed.",$f(r[o]));let s=r[o][2];if(!XVe(s))return C1("InvalidAttr","Attribute '"+s+"' is an invalid name.",$f(r[o]));if(!Object.prototype.hasOwnProperty.call(n,s))n[s]=1;else return C1("InvalidAttr","Attribute '"+s+"' is repeated.",$f(r[o]))}return!0}i(Yre,"validateAttributeString");function GVe(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}i(GVe,"validateNumberAmpersand");function HVe(t,e){if(e++,t[e]===";")return-1;if(t[e]==="#")return e++,GVe(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}i(HVe,"validateAmpersand");function C1(t,e,r){return{err:{code:t,msg:e,line:r.line||r,col:r.col}}}i(C1,"getErrorObject");function XVe(t){return MS(t)}i(XVe,"validateAttrName");function VVe(t){return MS(t)}i(VVe,"validateTagName");function Ut(t,e){let r=t.substring(0,e).split(/\r?\n/);return{line:r.length,col:r[r.length-1].length+1}}i(Ut,"getLineNumberForPosition");function $f(t){return t.startIndex+t[1].length}i($f,"getPositionFromMatch");var $re={amp:"&",AMP:"&",lt:"<",LT:"<",gt:">",GT:">",quot:'"',QUOT:'"',apos:"'",lsquo:"\u2018",rsquo:"\u2019",ldquo:"\u201C",rdquo:"\u201D",lsquor:"\u201A",rsquor:"\u2019",ldquor:"\u201E",bdquo:"\u201E",comma:",",period:".",colon:":",semi:";",excl:"!",quest:"?",num:"#",dollar:"$",percent:"%",amp:"&",ast:"*",commat:"@",lowbar:"_",verbar:"|",vert:"|",sol:"/",bsol:"\\",lbrace:"{",rbrace:"}",lbrack:"[",rbrack:"]",lpar:"(",rpar:")",nbsp:"\xA0",iexcl:"\xA1",cent:"\xA2",pound:"\xA3",curren:"\xA4",yen:"\xA5",brvbar:"\xA6",sect:"\xA7",uml:"\xA8",copy:"\xA9",COPY:"\xA9",ordf:"\xAA",laquo:"\xAB",not:"\xAC",shy:"\xAD",reg:"\xAE",REG:"\xAE",macr:"\xAF",deg:"\xB0",plusmn:"\xB1",sup2:"\xB2",sup3:"\xB3",acute:"\xB4",micro:"\xB5",para:"\xB6",middot:"\xB7",cedil:"\xB8",sup1:"\xB9",ordm:"\xBA",raquo:"\xBB",frac14:"\xBC",frac12:"\xBD",half:"\xBD",frac34:"\xBE",iquest:"\xBF",times:"\xD7",div:"\xF7",divide:"\xF7"},jre={Agrave:"\xC0",agrave:"\xE0",Aacute:"\xC1",aacute:"\xE1",Acirc:"\xC2",acirc:"\xE2",Atilde:"\xC3",atilde:"\xE3",Auml:"\xC4",auml:"\xE4",Aring:"\xC5",aring:"\xE5",AElig:"\xC6",aelig:"\xE6",Ccedil:"\xC7",ccedil:"\xE7",Egrave:"\xC8",egrave:"\xE8",Eacute:"\xC9",eacute:"\xE9",Ecirc:"\xCA",ecirc:"\xEA",Euml:"\xCB",euml:"\xEB",Igrave:"\xCC",igrave:"\xEC",Iacute:"\xCD",iacute:"\xED",Icirc:"\xCE",icirc:"\xEE",Iuml:"\xCF",iuml:"\xEF",ETH:"\xD0",eth:"\xF0",Ntilde:"\xD1",ntil
`);let e=new Ar("!xml"),r=e,n="";this.matcher.reset(),this.entityDecoder.reset(),this.entityExpansionCount=0,this.currentExpandedLength=0;let o=this.options,s=new Zf(o.processEntities),a=t.length;for(let c=0;c<a;c++)if(t[c]==="<"){let p=t.charCodeAt(c+1);if(p===47){let A=Ll(t,">",c,"Closing Tag is not closed."),l=t.substring(c+2,A).trim();if(o.removeNSPrefix){let M=l.indexOf(":");M!==-1&&(l=l.substr(M+1))}l=yS(o.transformTagName,l,"",o).tagName,r&&(n=this.saveTextToParentTag(n,r,this.readonlyMatcher));let b=this.matcher.getCurrentTag();if(l&&o.unpairedTagsSet.has(l))throw new Error(`Unpaired tag can not be used as closing tag: </${l}>`);b&&o.unpairedTagsSet.has(b)&&(this.matcher.pop(),this.tagsNodeStack.pop()),this.matcher.pop(),this.isCurrentNodeStopNode=!1,r=this.tagsNodeStack.pop(),n="",c=A}else if(p===63){let A=BS(t,c,!1,"?>");if(!A)throw new Error("Pi Tag is not closed.");n=this.saveTextToParentTag(n,r,this.readonlyMatcher);let l=this.buildAttributesMap(A.tagExp,this.matcher,A.tagName,!0);if(l){let b=l[this.options.attributeNamePrefix+"version"];this.entityDecoder.setXmlVersion(Number(b)||1),s.setXmlVersion(Number(b)||1)}if(!(o.ignoreDeclaration&&A.tagName==="?xml"||o.ignorePiTags)){let b=new Ar(A.tagName);b.add(o.textNodeName,""),A.tagName!==A.tagExp&&A.attrExpPresent&&o.ignoreAttributes!==!0&&(b[":@"]=l),this.addChild(r,b,this.readonlyMatcher,c)}c=A.closeIndex+1}else if(p===33&&t.charCodeAt(c+2)===45&&t.charCodeAt(c+3)===45){let A=Ll(t,"-->",c+4,"Comment is not closed.");if(o.commentPropName){let l=t.substring(c+4,A-2);n=this.saveTextToParentTag(n,r,this.readonlyMatcher),r.add(o.commentPropName,[{[o.textNodeName]:l}])}c=A}else if(p===33&&t.charCodeAt(c+2)===68){let A=s.readDocType(t,c);this.entityDecoder.addInputEntities(A.entities),c=A.i}else if(p===33&&t.charCodeAt(c+2)===91){let A=Ll(t,"]]>",c,"CDATA is not closed.")-2,l=t.substring(c+9,A);n=this.saveTextToParentTag(n,r,this.readonlyMatcher);let b=this.parseTextData(l,r.tagname,this.readonlyMatcher,!0,!1,!0,!0);b==null&&(b=""),o.cdataPropName?r.add(o.cdataPropName,[{[o.textNodeName]:l}]):r.add(o.textNodeName,b),c=A+2}else{let A=BS(t,c,o.removeNSPrefix);if(!A){let x=t.substring(Math.max(0,c-50),Math.min(a,c+50));throw new Error(`readTagExp returned undefined at position ${c}. Context: "${x}"`)}let l=A.tagName,b=A.rawTagName,M=A.tagExp,z=A.attrExpPresent,O=A.closeIndex;if({tagName:l,tagExp:M}=yS(o.transformTagName,l,M,o),o.strictReservedNames&&(l===o.commentPropName||l===o.cdataPropName||l===o.textNodeName||l===o.attributesGroupName))throw new Error(`Invalid tag name: ${l}`);r&&n&&r.tagname!=="!xml"&&(n=this.saveTextToParentTag(n,r,this.readonlyMatcher,!1));let y=r;y&&o.unpairedTagsSet.has(y.tagname)&&(r=this.tagsNodeStack.pop(),this.matcher.pop());let E=!1;M.length>0&&M.lastIndexOf("/")===M.length-1&&(E=!0,l[l.length-1]==="/"?(l=l.substr(0,l.length-1),M=l):M=M.substr(0,M.length-1),z=l!==M);let B=null,q={},D;D=MJe(b),l!==e.tagname&&this.matcher.push(l,{},D),l!==M&&z&&(B=this.buildAttributesMap(M,this.matcher,l),B&&(q=fJe(B,o))),l!==e.tagname&&(this.isCurrentNodeStopNode=this.isItStopNode());let F=c;if(this.isCurrentNodeStopNode){let x="";if(E)c=A.closeIndex;else if(o.unpairedTagsSet.has(l))c=A.closeIndex;else{let ce=this.readStopNodeData(t,b,O+1);if(!ce)throw new Error(`Unexpected end of ${b}`);c=ce.i,x=ce.tagContent}let _=new Ar(l);B&&(_[":@"]=B),_.add(o.textNodeName,x),this.matcher.pop(),this.isCurrentNodeStopNode=!1,this.addChild(r,_,this.readonlyMatcher,F)}else{if(E){({tagName:l,tagExp:M}=yS(o.transformTagName,l,M,o));let x=new Ar(l);B&&(x[":@"]=B),this.addChild(r,x,this.readonlyMatcher,F),this.matcher.pop(),this.isCurrentNodeStopNode=!1}else if(o.unpairedTagsSet.has(l)){let x=new Ar(l);B&&(x[":@"]=B),this.addChild(r,x,this.readonlyMatcher,F),this.matcher.pop(),this.isCurrentNodeStopNode=!1,c=A.closeIndex;continue}else{let x=new Ar(l);if(this.tagsNodeStack.length>o.maxNestedTags)throw new Error("Maximum nested tags exceeded");this.tagsNodeStack.push(r),B&&(x[":@"]=B),this.addChild(r,x,this.readonlyMatcher,F),r=x}n="",c=O}}}else n+=t[c];return e.child},"parse
`;function WJe(t,e){if(!Array.isArray(t)||t.length===0)return"1.0";let r=t[0];if(wS(r)==="?xml"){let o=r[":@"];if(o){let s=e.attributeNamePrefix+"version";if(o[s])return o[s]}}return"1.0"}i(WJe,"detectXmlVersionFromArray");function hne(t,e,r,n,o){return!r.sanitizeName||Uu(t,{xmlVersion:o})?t:r.sanitizeName(t,{isAttribute:e,matcher:n.readOnly()})}i(hne,"resolveTagName");function NS(t,e){let r="";e.format&&(r=FJe);let n=[];if(e.stopNodes&&Array.isArray(e.stopNodes))for(let a=0;a<e.stopNodes.length;a++){let c=e.stopNodes[a];typeof c=="string"?n.push(new Kr(c)):c instanceof Kr&&n.push(c)}let o=WJe(t,e),s=new ds;return zne(t,e,r,s,n,o)}i(NS,"toXml");function zne(t,e,r,n,o,s){let a="",c=!1;if(e.maxNestedTags&&n.getDepth()>e.maxNestedTags)throw new Error("Maximum nested tags exceeded");if(!Array.isArray(t)){if(t!=null){let u=t.toString();return u=RS(u,e),u}return""}for(let u=0;u<t.length;u++){let p=t[u],A=wS(p);if(A===void 0)continue;let b=A===e.textNodeName||A===e.cdataPropName||A===e.commentPropName||A[0]==="?"?A:hne(A,!1,e,n,s),M=xJe(p[":@"],e);n.push(b,M);let z=vJe(n,o);if(b===e.textNodeName){let q=p[A];z||(q=e.tagValueProcessor(b,q),q=RS(q,e)),c&&(a+=r),a+=q,c=!1,n.pop();continue}else if(b===e.cdataPropName){c&&(a+=r);let q=p[A][0][e.textNodeName],D=iE(q);a+=`<![CDATA[${D}]]>`,c=!1,n.pop();continue}else if(b===e.commentPropName){let q=p[A][0][e.textNodeName],D=sE(q);a+=r+`<!--${D}-->`,c=!0,n.pop();continue}else if(b[0]==="?"){let q=mne(p[":@"],e,z,n,s);a+=(b==="?xml"?"":r)+`<${b}${q}?>`,c=!0,n.pop();continue}let O=r;O!==""&&(O+=e.indentBy);let y=mne(p[":@"],e,z,n,s),E=r+`<${b}${y}`,B;z?B=gne(p[A],e):B=zne(p[A],e,O,n,o,s),e.unpairedTags.indexOf(b)!==-1?e.suppressUnpairedNode?a+=E+">":a+=E+"/>":(!B||B.length===0)&&e.suppressEmptyNode?a+=E+"/>":B&&B.endsWith(">")?a+=E+`>${B}${r}</${b}>`:(a+=E+">",B&&r!==""&&(B.includes("/>")||B.includes("</"))?a+=r+e.indentBy+B+r:a+=B,a+=`</${b}>`),c=!0,n.pop()}return a}i(zne,"arrToStr");function xJe(t,e){if(!t||e.ignoreAttributes)return null;let r={},n=!1;for(let o in t){if(!Object.prototype.hasOwnProperty.call(t,o))continue;let s=o.startsWith(e.attributeNamePrefix)?o.substr(e.attributeNamePrefix.length):o;r[s]=pc(t[o]),n=!0}return n?r:null}i(xJe,"extractAttributeValues");function gne(t,e){if(!Array.isArray(t))return t!=null?t.toString():"";let r="";for(let n=0;n<t.length;n++){let o=t[n],s=wS(o);if(s===e.textNodeName)r+=o[s];else if(s===e.cdataPropName)r+=o[s][0][e.textNodeName];else if(s===e.commentPropName)r+=o[s][0][e.textNodeName];else{if(s&&s[0]==="?")continue;if(s){let a=TJe(o[":@"],e),c=gne(o[s],e);!c||c.length===0?r+=`<${s}${a}/>`:r+=`<${s}${a}>${c}</${s}>`}}}return r}i(gne,"getRawContent");function TJe(t,e){let r="";if(t&&!e.ignoreAttributes)for(let n in t){if(!Object.prototype.hasOwnProperty.call(t,n))continue;let o=t[n];o===!0&&e.suppressBooleanAttributes?r+=` ${n.substr(e.attributeNamePrefix.length)}`:r+=` ${n.substr(e.attributeNamePrefix.length)}="${pc(o)}"`}return r}i(TJe,"attr_to_str_raw");function wS(t){let e=Object.keys(t);for(let r=0;r<e.length;r++){let n=e[r];if(Object.prototype.hasOwnProperty.call(t,n)&&n!==":@")return n}}i(wS,"propName");function mne(t,e,r,n,o){let s="";if(t&&!e.ignoreAttributes)for(let a in t){if(!Object.prototype.hasOwnProperty.call(t,a))continue;let c=a.substr(e.attributeNamePrefix.length),u=r?c:hne(c,!0,e,n,o),p;r?p=t[a]:(p=e.attributeValueProcessor(a,t[a]),p=RS(p,e)),p===!0&&e.suppressBooleanAttributes?s+=` ${u}`:s+=` ${u}="${pc(p)}"`}return s}i(mne,"attr_to_str");function vJe(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}i(vJe,"checkStopNode");function RS(t,e){if(t&&t.length>0&&e.processEntities)for(let r=0;r<e.entities.length;r++){let n=e.entities[r];t=t.replace(n.regex,n.val)}return t}i(RS,"replaceEntitiesValue");function SS(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}i(SS,"getIgnoreAttributesFn");var LJe={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0
`,this.newLine=`
`):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}i(dr,"Builder");function _Je(t,e){let r=t["?xml"];if(r&&typeof r=="object"){if(e.attributesGroupName&&r[e.attributesGroupName]){let o=r[e.attributesGroupName][e.attributeNamePrefix+"version"];if(o)return o}let n=r[e.attributeNamePrefix+"version"];if(n)return n}return"1.0"}i(_Je,"detectXmlVersionFromObj");function FS(t,e,r,n,o){return!r.sanitizeName||Uu(t,{xmlVersion:o})?t:r.sanitizeName(t,{isAttribute:e,matcher:n.readOnly()})}i(FS,"resolveTagName");dr.prototype.build=function(t){if(this.options.preserveOrder)return NS(t,this.options);{Array.isArray(t)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(t={[this.options.arrayNodeName]:t});let e=new ds,r=_Je(t,this.options);return this.j2x(t,0,e,r).val}};dr.prototype.j2x=function(t,e,r,n){let o="",s="";if(this.options.maxNestedTags&&r.getDepth()>=this.options.maxNestedTags)throw new Error("Maximum nested tags exceeded");let a=this.options.jPath?r.toString():r,c=this.checkStopNode(r);for(let u in t){if(!Object.prototype.hasOwnProperty.call(t,u))continue;let A=u===this.options.textNodeName||u===this.options.cdataPropName||u===this.options.commentPropName||this.options.attributesGroupName&&u===this.options.attributesGroupName||this.isAttribute(u)||u[0]==="?"?u:FS(u,!1,this.options,r,n);if(typeof t[u]>"u")this.isAttribute(u)&&(s+="");else if(t[u]===null)this.isAttribute(u)||A===this.options.cdataPropName||A===this.options.commentPropName?s+="":A[0]==="?"?s+=this.indentate(e)+"<"+A+"?"+this.tagEndChar:s+=this.indentate(e)+"<"+A+"/"+this.tagEndChar;else if(t[u]instanceof Date)s+=this.buildTextValNode(t[u],A,"",e,r);else if(typeof t[u]!="object"){let l=this.isAttribute(u);if(l&&!this.ignoreAttributesFn(l,a)){let b=FS(l,!0,this.options,r,n);o+=this.buildAttrPairStr(b,""+t[u],c)}else if(!l)if(u===this.options.textNodeName){let b=this.options.tagValueProcessor(u,""+t[u]);s+=this.replaceEntitiesValue(b)}else{r.push(A);let b=this.checkStopNode(r);if(r.pop(),b){let M=""+t[u];M===""?s+=this.indentate(e)+"<"+A+this.closeTag(A)+this.tagEndChar:s+=this.indentate(e)+"<"+A+">"+M+"</"+A+this.tagEndChar}else s+=this.buildTextValNode(t[u],A,"",e,r)}}else if(Array.isArray(t[u])){let l=t[u].length,b="",M="";for(let z=0;z<l;z++){let O=t[u][z];if(!(typeof O>"u"))if(O===null)A[0]==="?"?s+=this.indentate(e)+"<"+A+"?"+this.tagEndChar:s+=this.indentate(e)+"<"+A+"/"+this.tagEndChar;else if(typeof O=="object")if(this.options.oneListGroup){r.push(A);let y=this.j2x(O,e+1,r,n);r.pop(),b+=y.val,this.options.attributesGroupName&&O.hasOwnProperty(this.options.attributesGroupName)&&(M+=y.attrStr)}else b+=this.processTextOrObjNode(O,A,e,r,n);else if(this.options.oneListGroup){let y=this.options.tagValueProcessor(A,O);y=this.replaceEntitiesValue(y),b+=y}else{r.push(A);let y=this.checkStopNode(r);if(r.pop(),y){let E=""+O;E===""?b+=this.indentate(e)+"<"+A+this.closeTag(A)+this.tagEndChar:b+=this.indentate(e)+"<"+A+">"+E+"</"+A+this.tagEndChar}else b+=this.buildTextValNode(O,A,"",e,r)}}this.options.oneListGroup&&(b=this.buildObjectNode(b,A,M,e)),s+=b}else if(this.options.attributesGroupName&&u===this.options.attributesGroupName){let l=Object.keys(t[u]),b=l.length;for(let M=0;M<b;M++){let z=FS(l[M],!0,this.options,r,n);o+=this.buildAttrPairStr(z,""+t[u][l[M]],c)}}else s+=this.processTextOrObjNode(t[u],A,e,r,n)}return{attrStr:o,val:s}};dr.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+'="'+pc(e)+'"'};function QJe(t,e,r,n,o){let s=this.extractAttributes(t);if(n.push(e,s),this.checkStopNode(n)){let u=this.buildRawContent(t),p=this.buildAttributesForStopNode(t);return n.pop(),this.buildObjectNode(u,e,p,r)}let c=this.j2x(t,r+1,n,o);return n.pop(),e[0]==="?"?this.buildTextValNode("",e,c.attrStr,r,n):t[this.options.textNodeName]!==void 0&&Object.keys(t).length===1?this.buildTextValNode(t[this.options.textNodeName],e,c.attrStr,r,n):this.buildObjectNode(c.val,e,c.attrStr,r)}i(QJe,"process
`)+`
`+this.getCanonicalizedHeadersString(e)+this.getCanonicalizedResourceString(e),n=this.factory.computeHMACSHA256(r);return e.headers.set(Re.AUTHORIZATION,`SharedKey ${this.factory.accountName}:${n}`),e}getHeaderValueToSign(e,r){let n=e.headers.get(r);return!n||r===Re.CONTENT_LENGTH&&n==="0"?"":n}getCanonicalizedHeadersString(e){let r=e.headers.headersArray().filter(o=>o.name.toLowerCase().startsWith(Re.PREFIX_FOR_STORAGE));r.sort((o,s)=>mE(o.name.toLowerCase(),s.name.toLowerCase())),r=r.filter((o,s,a)=>!(s>0&&o.name.toLowerCase()===a[s-1].name.toLowerCase()));let n="";return r.forEach(o=>{n+=`${o.name.toLowerCase().trimRight()}:${o.value.trimLeft()}
`}),n}getCanonicalizedResourceString(e){let r=bE(e.url)||"/",n="";n+=`/${this.factory.accountName}${r}`;let o=fE(e.url),s={};if(o){let a=[];for(let c in o)if(Object.prototype.hasOwnProperty.call(o,c)){let u=c.toLowerCase();s[u]=o[c],a.push(u)}a.sort();for(let c of a)n+=`
${c}:${decodeURIComponent(s[c])}`}return n}};var i1=class extends Xu{static{i(this,"StorageSharedKeyCredential")}accountName;accountKey;constructor(e,r){super(),this.accountName=e,this.accountKey=Buffer.from(r,"base64")}create(e,r){return new oM(e,r,this)}computeHMACSHA256(e){return(0,Ine.createHmac)("sha256",this.accountKey).update(e,"utf8").digest("base64")}};var P1=us("storage-common");var Nn;(function(t){t[t.EXPONENTIAL=0]="EXPONENTIAL",t[t.FIXED=1]="FIXED"})(Nn||(Nn={}));var lc={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:Nn.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},YJe=new Yr("The operation was aborted."),sM=class extends bs{static{i(this,"StorageRetryPolicy")}retryOptions;constructor(e,r,n=lc){super(e,r),this.retryOptions={retryPolicyType:n.retryPolicyType?n.retryPolicyType:lc.retryPolicyType,maxTries:n.maxTries&&n.maxTries>=1?Math.floor(n.maxTries):lc.maxTries,tryTimeoutInMs:n.tryTimeoutInMs&&n.tryTimeoutInMs>=0?n.tryTimeoutInMs:lc.tryTimeoutInMs,retryDelayInMs:n.retryDelayInMs&&n.retryDelayInMs>=0?Math.min(n.retryDelayInMs,n.maxRetryDelayInMs?n.maxRetryDelayInMs:lc.maxRetryDelayInMs):lc.retryDelayInMs,maxRetryDelayInMs:n.maxRetryDelayInMs&&n.maxRetryDelayInMs>=0?n.maxRetryDelayInMs:lc.maxRetryDelayInMs,secondaryHost:n.secondaryHost?n.secondaryHost:lc.secondaryHost}}async sendRequest(e){return this.attemptSendRequest(e,!1,1)}async attemptSendRequest(e,r,n){let o=e.clone(),s=r||!this.retryOptions.secondaryHost||!(e.method==="GET"||e.method==="HEAD"||e.method==="OPTIONS")||n%2===1;s||(o.url=dE(o.url,this.retryOptions.secondaryHost)),this.retryOptions.tryTimeoutInMs&&(o.url=Ac(o.url,Xi.Parameters.TIMEOUT,Math.floor(this.retryOptions.tryTimeoutInMs/1e3).toString()));let a;try{if(P1.info(`RetryPolicy: =====> Try=${n} ${s?"Primary":"Secondary"}`),a=await this._nextPolicy.sendRequest(o),!this.shouldRetry(s,n,a))return a;r=r||!s&&a.status===404}catch(c){if(P1.error(`RetryPolicy: Caught error, message: ${c.message}, code: ${c.code}`),!this.shouldRetry(s,n,a,c))throw c}return await this.delay(s,n,e.abortSignal),this.attemptSendRequest(e,r,++n)}shouldRetry(e,r,n,o){if(r>=this.retryOptions.maxTries)return P1.info(`RetryPolicy: Attempt(s) ${r} >= maxTries ${this.retryOptions.maxTries}, no further try.`),!1;let s=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"];if(o){for(let a of s)if(o.name.toUpperCase().includes(a)||o.message.toUpperCase().includes(a)||o.code&&o.code.toString().toUpperCase()===a)return P1.info(`RetryPolicy: Network error ${a} found, will retry.`),!0}if(n||o){let a=n?n.status:o?o.statusCode:0;if(!e&&a===404)return P1.info("RetryPolicy: Secondary access with 404, will retry."),!0;if(a===503||a===500)return P1.info(`RetryPolicy: Will retry for status code ${a}.`),!0}if(n&&n?.status>=400){let a=n.headers.get(Re.X_MS_CopySourceErrorCode);if(a!==void 0)switch(a){case"InternalError":case"OperationTimedOut":case"ServerBusy":return!0}}return o?.code==="PARSE_ERROR"&&o?.message.startsWith('Error "Error: Unclosed root tag')?(P1.info("RetryPolicy: Incomplete XML response likely due to service timeout, will retry."),!0):!1}async delay(e,r,n){let o=0;if(e)switch(this.retryOptions.retryPolicyType){case Nn.EXPONENTIAL:o=Math.min((Math.pow(2,r-1)-1)*this.retryOptions.retryDelayInMs,this.retryOptions.maxRetryDelayInMs);break;case Nn.FIXED:o=this.retryOptions.retryDelayInMs;break}else o=Math.random()*1e3;return P1.info(`RetryPolicy: Delay for ${o}ms`),ME(o,n,YJe)}};var iM=class{static{i(this,"StorageRetryPolicyFactory")}retryOptions;constructor(e){this.retryOptions=e}create(e,r){return new sM(e,r,this.retryOptions)}};var $Je="storageBrowserPolicy";function Rne(){return{name:$Je,async sendRequest(t,e){return f0||((t.method==="GET"||t.method==="HEAD")&&(t.url=Ac(t.url,Xi.Parameters.FORCE_BROWSER_NO_CACHE,new Date().getTime().toString())),t.headers.delete(Re.COOKIE),t.headers.delete(Re.CONTENT_LENGTH)),e(t)}}}i(Rne,"storageBrowserPolicy");var jJe="StorageCorrectContentLengthPolicy";function Nne(){function t(e){e.body&&(
`)+`
`+n(s)+o(s),c=(0,Sne.createHmac)("sha256",t.accountKey).update(a,"utf8").digest("base64");s.headers.set(Re.AUTHORIZATION,`SharedKey ${t.accountName}:${c}`)}i(e,"signRequest");function r(s,a){let c=s.headers.get(a);return!c||a===Re.CONTENT_LENGTH&&c==="0"?"":c}i(r,"getHeaderValueToSign");function n(s){let a=[];for(let[u,p]of s.headers)u.toLowerCase().startsWith(Re.PREFIX_FOR_STORAGE)&&a.push({name:u,value:p});a.sort((u,p)=>mE(u.name.toLowerCase(),p.name.toLowerCase())),a=a.filter((u,p,A)=>!(p>0&&u.name.toLowerCase()===A[p-1].name.toLowerCase()));let c="";return a.forEach(u=>{c+=`${u.name.toLowerCase().trimRight()}:${u.value.trimLeft()}
`}),c}i(n,"getCanonicalizedHeadersString");function o(s){let a=bE(s.url)||"/",c="";c+=`/${t.accountName}${a}`;let u=fE(s.url),p={};if(u){let A=[];for(let l in u)if(Object.prototype.hasOwnProperty.call(u,l)){let b=l.toLowerCase();p[b]=u[l],A.push(b)}A.sort();for(let l of A)c+=`
${l}:${decodeURIComponent(p[l])}`}return c}return i(o,"getCanonicalizedResourceString"),{name:tYe,async sendRequest(s,a){return e(s),a(s)}}}i(LS,"storageSharedKeyCredentialPolicy");var rYe="storageRequestFailureDetailsParserPolicy";function Fne(){return{name:rYe,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}}}}i(Fne,"storageRequestFailureDetailsParserPolicy");var Wne=require("node:crypto");var hE=class{static{i(this,"UserDelegationKeyCredential")}accountName;userDelegationKey;key;constructor(e,r){this.accountName=e,this.userDelegationKey=r,this.key=Buffer.from(r.value,"base64")}computeHMACSHA256(e){return(0,Wne.createHmac)("sha256",this.key).update(e,"utf8").digest("base64")}};var zE="12.31.0",gE="2026-02-06";var OE="https://storage.azure.com/.default",Vi={Parameters:{FORCE_BROWSER_NO_CACHE:"_",SIGNATURE:"sig",SNAPSHOT:"snapshot",VERSIONID:"versionid",TIMEOUT:"timeout"}};var go="",_S="*",nYe=1*1024*1024;var oYe=4*nYe;var xne="AES256",Tne="DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;",vne=["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"],Lne=["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"],_ne="BlobUsesCustomerSpecifiedEncryption",Qne="BlobDoesNotUseCustomerSpecifiedEncryption",Pne=["10000","10001","10002","10003","10004","10100","10101","10102","10103","10104","11000","11001","11002","11003","11004","11100","11101","11102","11103","11104"];function Ji(t){if(!t||typeof t!="object")return!1;let e=t;return Array.isArray(e.factories)&&typeof e.options=="object"&&typeof e.toServiceClientOptions=="function"}i(Ji,"isPipelineLike");var aM=class{static{i(this,"Pipeline")}factories;options;constructor(e,r={}){this.factories=e,this.options=r}toServiceClientOptions(){return{httpClient:this.options.httpClient,requestPolicyFactories:this.factories}}};function y1(t,e={}){t||(t=new V0);let r=new aM([],e);return r._credential=t,r}i(y1,"newPipeline");function sYe(t){let e=[iYe,kne,aYe,cYe,uYe,pYe,lY
`),s=e.computeHMACSHA256(o);return{sasQueryParameters:new Bo(t.version,s,n,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType),stringToSign:o}}i(sje,"generateBlobSASQueryParameters20150405");function ije(t,e){if(t=tp(t),!t.identifier&&!(t.permissions&&t.expiresOn))throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let o;t.permissions&&(t.blobName?o=ws.parse(t.permissions.toString()).toString():o=Ss.parse(t.permissions.toString()).toString());let s=[o||"",t.startsOn?M0(t.startsOn,!1):"",t.expiresOn?M0(t.expiresOn,!1):"",ep(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?yo(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.cacheControl?t.cacheControl:"",t.contentDisposition?t.contentDisposition:"",t.contentEncoding?t.contentEncoding:"",t.contentLanguage?t.contentLanguage:"",t.contentType?t.contentType:""].join(`
`),a=e.computeHMACSHA256(s);return{sasQueryParameters:new Bo(t.version,a,o,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}}i(ije,"generateBlobSASQueryParameters20181109");function aje(t,e){if(t=tp(t),!t.identifier&&!(t.permissions&&t.expiresOn))throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let o;t.permissions&&(t.blobName?o=ws.parse(t.permissions.toString()).toString():o=Ss.parse(t.permissions.toString()).toString());let s=[o||"",t.startsOn?M0(t.startsOn,!1):"",t.expiresOn?M0(t.expiresOn,!1):"",ep(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?yo(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.encryptionScope,t.cacheControl?t.cacheControl:"",t.contentDisposition?t.contentDisposition:"",t.contentEncoding?t.contentEncoding:"",t.contentLanguage?t.contentLanguage:"",t.contentType?t.contentType:""].join(`
`),a=e.computeHMACSHA256(s);return{sasQueryParameters:new Bo(t.version,a,o,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:s}}i(aje,"generateBlobSASQueryParameters20201206");function cje(t,e){if(t=tp(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let o;t.permissions&&(t.blobName?o=ws.parse(t.permissions.toString()).toString():o=Ss.parse(t.permissions.toString()).toString());let s=[o||"",t.startsOn?M0(t.startsOn,!1):"",t.expiresOn?M0(t.expiresOn,!1):"",ep(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?M0(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?M0(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.ipRange?yo(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),a=e.computeHMACSHA256(s);return{sasQueryParameters:new Bo(t.version,a,o,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:s}}i(cje,"generateBlobSASQueryParametersUDK20181109");function uje(t,e){if(t=tp(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let o;t.permissions&&(t.blobName?o=ws.parse(t.permissions.toString()).toString():o=Ss.parse(t.permissions.toString()).toString());let s=[o||"",t.startsOn?M0(t.startsOn,!1):"",t.expiresOn?M0(t.expiresOn,!1):"",ep(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?M0(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?M0(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?yo(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),a=e.computeHMACSHA256(s);return{sasQueryParameters:new Bo(t.version,a,o,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:s}}i(uje,"generateBlobSASQueryParametersUDK20200210");function pje(t,e){if(t=tp(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let o;t.permissions&&(t.blobName?o=ws.parse(t.permissions.toString()).toString():o=Ss.parse(t.permissions.toString()).toString());let s=[o||"",t.startsOn?M0(t.startsOn,!1):"",t.expiresOn?M0(t.expiresOn,!1):"",ep(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?M0(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?M0(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?yo(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),a=e.computeHMACSHA256(s);return{sasQueryParameters:new Bo(t.version,a,o,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:s}}i(pje,"generateBlobSASQueryParametersUDK20201206");function Aje(t,e){if(t=tp(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let o;t.permissions&&(t.blobName?o=ws.parse(t.permissions.toString()).toString():o=Ss.parse(t.permissions.toString()).toString());let s=[o||"",t.startsOn?M0(t.startsOn,!1):"",t.expiresOn?M0(t.expiresOn,!1):"",ep(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?M0(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?M0(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,void 0,t.delegatedUserObjectId,t.ipRange?yo(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),a=e.computeHMACSHA256(s);return{sasQueryParameters:new Bo(t.version,a,o,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:s}}i(Aje,"generateBlobSASQueryParametersUDK20250705");function ep(t,e,r){let n=[`/blob/${t}/${e}`];return r&&n.push(`/${r}`),n.join("")}i(ep,"getCanonicalName");function tp(t){let e=t.version?t.version:gE;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}i(tp,"SASSignatureValuesSanityCheckAndAutofill");var zM=class{static{i(this,"BlobLeaseClient")}_leaseId;_url;_containerOrBlobOperation;_isContainer;get leaseId(){return this._leaseId}get url(){return this._url}constructor(e,r){let n=e.storageClientContext;this._url=e.url,e.name===void 0?(this._isContainer=!0,this._containerOrBlobOperation=n.container):(this._isContainer=!1,this._containerOrBlobOperation=n.blob),r||(r=Sl()),this._leaseId=r}async acquireLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==go||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==go||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 Ae.withSpan("BlobLeaseClient-acquireLease",r,async n=>be(await this._containerOrBlobOperation.acquireLease({abortSignal:r.abortSignal,duration:e,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},proposedLeaseId:this._leaseId,tracingOptions:n.tracingOptions})))}async changeLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==go||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==go||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 Ae.withSpan("BlobLeaseClient-changeLease",r,async n=>{let o=be(await this._containerOrBlobOperation.changeLease(this._leaseId,e,{abortSignal:r.abortSignal,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},tracingOptions:n.tracingOptions}));return this._leaseId=e,o})}async releaseLease(e={}){if(this._isContainer&&(e.conditions?.i
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"}};Kl.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var sp=class extends Error{static{i(this,"UsageError")}constructor(){super(`Cache storage quota has been hit. Unable to upload any new cache entries.
More info on storage limits: https://docs.github.com/en/billing/managing-billing-for-github-actions/about-billing-for-github-actions#calculating-minute-and-storage-spending`),this.name="UsageError"}};sp.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var RM=class extends Error{static{i(this,"RateLimitError")}constructor(e){super(e),this.name="RateLimitError"}};var OKe=function(t,e,r,n){function o(s){return s instanceof r?s:new r(function(a){a(s)})}return i(o,"adopt"),new(r||(r=Promise))(function(s,a){function c(A){try{p(n.next(A))}catch(l){a(l)}}i(c,"fulfilled");function u(A){try{p(n.throw(A))}catch(l){a(l)}}i(u,"rejected");function p(A){A.done?s(A.value):o(A.value).then(c,u)}i(p,"step"),p((n=n.apply(t,e||[])).next())})},NT=class{static{i(this,"UploadProgress")}constructor(e){this.contentLength=e,this.sentBytes=0,this.displayedComplete=!1,this.startTime=Date.now()}setSentBytes(e){this.sentBytes=e}getTransferredBytes(){return this.sentBytes}isDone(){return this.getTransferredBytes()===this.contentLength}display(){if(this.displayedComplete)return;let e=this.sentBytes,r=(100*(e/this.contentLength)).toFixed(1),n=Date.now()-this.startTime,o=(e/(1024*1024)/(n/1e3)).toFixed(1);S(`Sent ${e} of ${this.contentLength} (${r}%), ${o} MBs/sec`),this.isDone()&&(this.displayedComplete=!0)}onProgress(){return e=>{this.setSentBytes(e.loadedBytes)}}startDisplayTimer(e=1e3){let r=i(()=>{this.display(),this.isDone()||(this.timeoutHandle=setTimeout(r,e))},"displayCallback");this.timeoutHandle=setTimeout(r,e)}stopDisplayTimer(){this.timeoutHandle&&(clearTimeout(this.timeoutHandle),this.timeoutHandle=void 0),this.display()}};function Hse(t,e,r){return OKe(this,void 0,void 0,function*(){var n;let o=new ta(t),s=o.getBlockBlobClient(),a=new NT((n=r?.archiveSizeBytes)!==null&&n!==void 0?n:0),c={blockSize:r?.uploadChunkSize,concurrency:r?.uploadConcurrency,maxSingleShotSize:128*1024*1024,onProgress:a.onProgress()};try{a.startDisplayTimer(),N(`BlobClient: ${o.name}:${o.accountName}:${o.containerName}`);let u=yield s.uploadFile(e,c);if(u._response.status>=400)throw new BC(`uploadCacheArchiveSDK: upload failed with status code ${u._response.status}`);return u}catch(u){throw r0(`uploadCacheArchiveSDK: internal error uploading cache archive: ${u.message}`),u}finally{a.stopDisplayTimer()}})}i(Hse,"uploadCacheArchiveSDK");var Vse=w(require("buffer"),1),Fs=w(require("fs"),1),Jse=w(require("stream"),1),Yse=w(require("util"),1);var qC=function(t,e,r,n){function o(s){return s instanceof r?s:new r(function(a){a(s)})}return i(o,"adopt"),new(r||(r=Promise))(function(s,a){function c(A){try{p(n.next(A))}catch(l){a(l)}}i(c,"fulfilled");function u(A){try{p(n.throw(A))}catch(l){a(l)}}i(u,"rejected");function p(A){A.done?s(A.value):o(A.value).then(c,u)}i(p,"step"),p((n=n.apply(t,e||[])).next())})};function DC(t){return t?t>=200&&t<300:!1}i(DC,"isSuccessStatusCode");function EKe(t){return t?t>=500:!0}i(EKe,"isServerErrorStatusCode");function CKe(t){return t?[s1.BadGateway,s1.ServiceUnavailable,s1.GatewayTimeout].includes(t):!1}i(CKe,"isRetryableStatusCode");function yKe(t){return qC(this,void 0,void 0,function*(){return new Promise(e=>setTimeout(e,t))})}i(yKe,"sleep");function Xse(t,e,r){return qC(this,arguments,void 0,function*(n,o,s,a=jO,c=KO,u=void 0){let p="",A=1;for(;A<=a;){let l,b,M=!1;try{l=yield o()}catch(z){u&&(l=u(z)),M=!0,p=z.message}if(l&&(b=s(l),!EKe(b)))return l;if(b&&(M=CKe(b),p=`Cache service responded with ${b}`),N(`${n} - Attempt ${A} of ${a} failed with error: ${p}`),!M){N(`${n} - Error is not retryable`);break}yield yKe(c),A++}throw Error(`${n} failed: ${p}`)})}i(Xse,"retry");function NM(t,e){return qC(this,arguments,void 0,function*(r,n,o=jO,s=KO){return yield Xse(r,n,a=>a.statusCode,o,s,a=>{if(a instanceof ss)return{statusCode:a.statusCode,result:null,headers:{},error:a}})})}i(NM,"retryTypedResponse");function Zl(t,e){return qC(this,arguments,void 0,function*(r,n,o=jO,s=KO){return yield Xse(r,n,a=>a.message.statusCode,o,s)})}i(Zl,"retryHttpClientResponse");var xn=function(t,e,r,n){function o(s){return s instanceof r?s:new r(function(a
Other caches with similar key:`);for(let c of s?.artifactCaches||[])N(`Cache Key: ${c?.cacheKey}, Cache Version: ${c?.cacheVersion}, Cache Scope: ${c?.scope}, Cache Created: ${c?.creationTime}`)}}})}i(SKe,"printCachesListForDiagnostics");function WT(t,e,r){return fr(this,void 0,void 0,function*(){let n=new sie.URL(t),o=Zse(r);n.hostname.endsWith(".blob.core.windows.net")?o.useAzureSdk?yield jse(t,e,o):o.concurrentBlobDownloads?yield $se(t,e,o):yield RC(t,e):yield RC(t,e)})}i(WT,"downloadCache");function aie(t,e,r){return fr(this,void 0,void 0,function*(){let n=FT(),o=Cl(e,r?.compressionMethod,r?.enableCrossOsArchive),s={key:t,version:o,cacheSize:r?.cacheSize};return yield NM("reserveCache",()=>fr(this,void 0,void 0,function*(){return n.postJson(SM("caches"),s)}))})}i(aie,"reserveCache");function oie(t,e){return`bytes ${t}-${e}/*`}i(oie,"getContentRange");function FKe(t,e,r,n,o){return fr(this,void 0,void 0,function*(){N(`Uploading chunk of size ${o-n+1} bytes at offset ${n} with content range: ${oie(n,o)}`);let s={"Content-Type":"application/octet-stream","Content-Range":oie(n,o)},a=yield Zl(`uploadChunk (start: ${n}, end: ${o})`,()=>fr(this,void 0,void 0,function*(){return t.sendStream("PATCH",e,r(),s)}));if(!DC(a.message.statusCode))throw new Error(`Cache service responded with ${a.message.statusCode} during upload chunk.`)})}i(FKe,"uploadChunk");function WKe(t,e,r,n){return fr(this,void 0,void 0,function*(){let o=os(r),s=SM(`caches/${e.toString()}`),a=e2.openSync(r,"r"),c=wT(n),u=n6("uploadConcurrency",c.uploadConcurrency),p=n6("uploadChunkSize",c.uploadChunkSize),A=[...new Array(u).keys()];N("Awaiting all uploads");let l=0;try{yield Promise.all(A.map(()=>fr(this,void 0,void 0,function*(){for(;l<o;){let b=Math.min(o-l,p),M=l,z=l+b-1;l+=p,yield FKe(t,s,()=>e2.createReadStream(r,{fd:a,start:M,end:z,autoClose:!1}).on("error",O=>{throw new Error(`Cache upload failed because file read failed with ${O.message}`)}),M,z)}})))}finally{e2.closeSync(a)}})}i(WKe,"uploadFile");function xKe(t,e,r){return fr(this,void 0,void 0,function*(){let n={size:r};return yield NM("commitCache",()=>fr(this,void 0,void 0,function*(){return t.postJson(SM(`caches/${e.toString()}`),n)}))})}i(xKe,"commitCache");function xT(t,e,r,n){return fr(this,void 0,void 0,function*(){if(wT(n).useAzureSdk){if(!r)throw new Error("Azure Storage SDK can only be used when a signed URL is provided.");yield Hse(r,e,n)}else{let s=FT();N("Upload cache"),yield WKe(s,t,e,n),N("Commiting cache");let a=os(e);S(`Cache Size: ~${Math.round(a/(1024*1024))} MB (${a} B)`);let c=yield xKe(s,t,a);if(!DC(c.statusCode))throw new Error(`Cache service responded with ${c.statusCode} during commit cache.`);S("Cache saved successfully")}})}i(xT,"saveCache");var tae=w(Jie(),1),D1=w(q1(),1),tn=w(q1(),1),pp=w(q1(),1),Ap=w(q1(),1),lp=w(q1(),1);var Rv=w(q1(),1),Nv=w(q1(),1),Kie=w(q1(),1),Zie=w(q1(),1),eae=w(q1(),1);var qv=w(q1(),1),Dv=w(q1(),1),Yie=w(q1(),1),$ie=w(q1(),1),jie=w(q1(),1);var Iv=class extends jie.MessageType{static{i(this,"CacheScope$Type")}constructor(){super("github.actions.results.entities.v1.CacheScope",[{no:1,name:"scope",kind:"scalar",T:9},{no:2,name:"permission",kind:"scalar",T:3}])}create(e){let r={scope:"",permission:"0"};return globalThis.Object.defineProperty(r,$ie.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,Yie.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,n,o){let s=o??this.create(),a=e.pos+r;for(;e.pos<a;){let[c,u]=e.tag();switch(c){case 1:s.scope=e.string();break;case 2:s.permission=e.int64().toString();break;default:let p=n.readUnknownField;if(p==="throw")throw new globalThis.Error(`Unknown field ${c} (wire type ${u}) for ${this.typeName}`);let A=e.skip(u);p!==!1&&(p===!0?Dv.UnknownFieldHandler.onRead:p)(this.typeName,s,c,u,A)}}return s}internalBinaryWrite(e,r,n){e.scope!==""&&r.tag(1,qv.WireType.LengthDelimited).string(e.scope),e.permission!=="0"&&r.tag(2,qv.WireType.Varint).int64(e.permission);let o=n.writeUnknownFields;return o!==!1&&(o==!0?Dv.UnknownFieldHandler.onWrite:o)(this.typeName,e,r),r}},My=new Iv;var wv=class extends eae.Mess
`));let n=yield Xv(r,"create");yield Vv(n,t)})}i(Yv,"createTar");var m2=function(t,e,r,n){function o(s){return s instanceof r?s:new r(function(a){a(s)})}return i(o,"adopt"),new(r||(r=Promise))(function(s,a){function c(A){try{p(n.next(A))}catch(l){a(l)}}i(c,"fulfilled");function u(A){try{p(n.throw(A))}catch(l){a(l)}}i(u,"rejected");function p(A){A.done?s(A.value):o(A.value).then(c,u)}i(p,"step"),p((n=n.apply(t,e||[])).next())})},Io=class t extends Error{static{i(this,"ValidationError")}constructor(e){super(e),this.name="ValidationError",Object.setPrototypeOf(this,t.prototype)}},dp=class t extends Error{static{i(this,"ReserveCacheError")}constructor(e){super(e),this.name="ReserveCacheError",Object.setPrototypeOf(this,t.prototype)}},$v="cache write denied:",M2=class t extends dp{static{i(this,"CacheWriteDeniedError")}constructor(e){super(e),this.name="CacheWriteDeniedError",Object.setPrototypeOf(this,t.prototype)}},gy=class t extends Error{static{i(this,"FinalizeCacheError")}constructor(e){super(e),this.name="FinalizeCacheError",Object.setPrototypeOf(this,t.prototype)}};function sae(t){if(!t||t.length===0)throw new Io("Path Validation Error: At least one directory or file path is required")}i(sae,"checkPaths");function jv(t){if(t.length>512)throw new Io(`Key Validation Error: ${t} cannot be larger than 512 characters.`);if(!/^[^,]*$/.test(t))throw new Io(`Key Validation Error: ${t} cannot contain commas.`)}i(jv,"checkKey");function Kv(){return wM()==="v2"?!!process.env.ACTIONS_RESULTS_URL:!!process.env.ACTIONS_CACHE_URL}i(Kv,"isFeatureAvailable");function iae(t,e,r,n){return m2(this,arguments,void 0,function*(o,s,a,c,u=!1){let p=wM();return N(`Cache service version: ${p}`),sae(o),p==="v2"?yield $e0(o,s,a,c,u):yield Ye0(o,s,a,c,u)})}i(iae,"restoreCache");function Ye0(t,e,r,n){return m2(this,arguments,void 0,function*(o,s,a,c,u=!1){a=a||[];let p=[s,...a];if(N("Resolved Keys:"),N(JSON.stringify(p)),p.length>10)throw new Io("Key Validation Error: Keys are limited to a maximum of 10.");for(let b of p)jv(b);let A=yield Nf(),l="";try{let b=yield iie(p,o,{compressionMethod:A,enableCrossOsArchive:u});if(!b?.archiveLocation)return;if(c?.lookupOnly)return S("Lookup only - skipping download"),b.cacheKey;l=JM.join(yield If(),nc(A)),N(`Archive Path: ${l}`),yield WT(b.archiveLocation,l,c),vi()&&(yield VM(l,A));let M=os(l);return S(`Cache Size: ~${Math.round(M/(1024*1024))} MB (${M} B)`),yield Jv(l,A),S("Cache restored successfully"),b.cacheKey}catch(b){let M=b;if(M.name===Io.name)throw b;M instanceof ss&&typeof M.statusCode=="number"&&M.statusCode>=500?Al(`Failed to restore: ${b.message}`):r0(`Failed to restore: ${b.message}`)}finally{try{yield Rf(l)}catch(b){N(`Failed to delete archive: ${b}`)}}})}i(Ye0,"restoreCacheV1");function $e0(t,e,r,n){return m2(this,arguments,void 0,function*(o,s,a,c,u=!1){c=Object.assign(Object.assign({},c),{useAzureSdk:!0}),a=a||[];let p=[s,...a];if(N("Resolved Keys:"),N(JSON.stringify(p)),p.length>10)throw new Io("Key Validation Error: Keys are limited to a maximum of 10.");for(let l of p)jv(l);let A="";try{let l=Hv(),b=yield Nf(),M={key:s,restoreKeys:a,version:Cl(o,b,u)},z=yield l.GetCacheEntryDownloadURL(M);if(!z.ok){N(`Cache not found for version ${M.version} of keys: ${p.join(", ")}`);return}if(M.key!==z.matchedKey?S(`Cache hit for restore-key: ${z.matchedKey}`):S(`Cache hit for: ${z.matchedKey}`),c?.lookupOnly)return S("Lookup only - skipping download"),z.matchedKey;A=JM.join(yield If(),nc(b)),N(`Archive path: ${A}`),N(`Starting download of archive to: ${A}`),yield WT(z.signedDownloadUrl,A,c);let y=os(A);return S(`Cache Size: ~${Math.round(y/(1024*1024))} MB (${y} B)`),vi()&&(yield VM(A,b)),yield Jv(A,b),S("Cache restored successfully"),z.matchedKey}catch(l){let b=l;if(b.name===Io.name)throw l;b instanceof ss&&typeof b.statusCode=="number"&&b.statusCode>=500?Al(`Failed to restore: ${l.message}`):r0(`Failed to restore: ${l.message}`)}finally{try{A&&(yield Rf(A))}catch(l){N(`Failed to delete archive: ${l}`)}}})}i($e0,"restoreCacheV2");function Zv(t,e,r){return m2(this,arguments,void 0,function*(n,o,s,a=!1)
`+t.errors.map(e=>` - ${e.message}`).join(`
`)}i(X00,"_buildMessageForResponseErrors");var V00=class extends Error{static{i(this,"GraphqlResponseError")}constructor(t,e,r){super(X00(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},J00=["method","baseUrl","url","headers","request","query","mediaType","operationName"],Y00=["query","method","url"],Vae=/\/api\/v3\/?$/;function $00(t,e,r){if(r){if(typeof e=="string"&&"query"in r)return Promise.reject(new Error('[@octokit/graphql] "query" cannot be used as variable name'));for(let a in r)if(Y00.includes(a))return Promise.reject(new Error(`[@octokit/graphql] "${a}" cannot be used as variable name`))}let n=typeof e=="string"?Object.assign({query:e},r):e,o=Object.keys(n).reduce((a,c)=>J00.includes(c)?(a[c]=n[c],a):(a.variables||(a.variables={}),a.variables[c]=n[c],a),{}),s=n.baseUrl||t.endpoint.DEFAULTS.baseUrl;return Vae.test(s)&&(o.url=s.replace(Vae,"/api/graphql")),t(o).then(a=>{if(a.data.errors){let c={};for(let u of Object.keys(a.headers))c[u]=a.headers[u];throw new V00(o,c,a.data)}return a.data.data})}i($00,"graphql");function lL(t,e){let r=t.defaults(e);return Object.assign(i((o,s)=>$00(r,o,s),"newApi"),{defaults:lL.bind(null,r),endpoint:r.endpoint})}i(lL,"withDefaults");var be1=lL(KM,{headers:{"user-agent":`octokit-graphql.js/${H00} ${Oc()}`},method:"POST",url:"/graphql"});function Jae(t){return lL(t,{method:"POST",url:"/graphql"})}i(Jae,"withCustomRequest");var dL="(?:[a-zA-Z0-9_-]+)",Yae="\\.",$ae=new RegExp(`^${dL}${Yae}${dL}${Yae}${dL}$`),j00=$ae.test.bind($ae);async function K00(t){let e=j00(t),r=t.startsWith("v1.")||t.startsWith("ghs_"),n=t.startsWith("ghu_");return{type:"token",token:t,tokenType:e?"app":r?"installation":n?"user-to-server":"oauth"}}i(K00,"auth");function Z00(t){return t.split(/\./).length===3?`bearer ${t}`:`token ${t}`}i(Z00,"withAuthorizationPrefix");async function e10(t,e,r,n){let o=e.endpoint.merge(r,n);return o.headers.authorization=Z00(t),e(o)}i(e10,"hook");var jae=i(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(K00.bind(null,e),{hook:e10.bind(null,e)})},"createTokenAuth2");var bL="7.0.6";var Kae=i(()=>{},"noop"),t10=console.warn.bind(console),r10=console.error.bind(console);function n10(t={}){return typeof t.debug!="function"&&(t.debug=Kae),typeof t.info!="function"&&(t.info=Kae),typeof t.warn!="function"&&(t.warn=t10),typeof t.error!="function"&&(t.error=r10),t}i(n10,"createLogger");var Zae=`octokit-core.js/${bL} ${Oc()}`,Fy=class{static{i(this,"Octokit")}static VERSION=bL;static defaults(e){return class extends this{static{i(this,"OctokitWithDefaults")}constructor(...n){let o=n[0]||{};if(typeof e=="function"){super(e(o));return}super(Object.assign({},e,o,o.userAgent&&e.userAgent?{userAgent:`${o.userAgent} ${e.userAgent}`}:null))}}}static plugins=[];static plugin(...e){let r=this.plugins;return class extends this{static{i(this,"NewOctokit")}static plugins=r.concat(e.filter(o=>!r.includes(o)))}}constructor(e={}){let r=new qae.Collection,n={baseUrl:KM.endpoint.DEFAULTS.baseUrl,headers:{},request:Object.assign({},e.request,{hook:r.bind(null,"request")}),mediaType:{previews:[],format:""}};if(n.headers["user-agent"]=e.userAgent?`${e.userAgent} ${Zae}`:Zae,e.baseUrl&&(n.baseUrl=e.baseUrl),e.previews&&(n.mediaType.previews=e.previews),e.timeZone&&(n.headers["time-zone"]=e.timeZone),this.request=KM.defaults(n),this.graphql=Jae(this.request).defaults(n),this.log=n10(e.log),this.hook=r,e.authStrategy){let{authStrategy:s,...a}=e,c=s(Object.assign({request:this.request,log:this.log,octokit:this,octokitOptions:a},e.auth));r.wrap("request",c.hook),this.auth=c}else if(!e.auth)this.auth=async()=>({type:"unauthenticated"});else{let s=jae(e.auth);r.wrap("request",s.hook),this.auth=s}let o=this.constructor;for(let s=0;s<o.plugins.length;++s)
`,a).length:l,p?(c===null?0:c.length)+u.length:0,p?u.length+l:0);return b<M},"__needMoreData"),parse:i(function(n,o,s,a){let{bom:c,comment_no_infix:u,delimiter_auto:p,encoding:A,from_line:l,ltrim:b,max_record_size:M,raw:z,relax_quotes:O,rtrim:y,skip_empty_lines:E,to:B,to_line:q}=this.options,{comment:D,escape:F,quote:x,record_delimiter:_}=this.options,{bomSkipped:ce,delimiterDiscovered:ye,delimiterBufPrevious:Ne,rawBuffer:De,escapeIsQuote:ze}=this.state;if(!ye&&p){let j;if(Ne===void 0?j=n:Ne!==void 0&&n===void 0?j=Ne:j=Buffer.concat([Ne,n]),n=void 0,o||j.length>p.size)this.options.delimiter=[Buffer.from(ple(j,this.options.delimiter_auto))],this.state.previousBuf=j,this.state.delimiterBufPrevious=void 0,this.state.delimiterDiscovered=!0;else{this.state.delimiterBufPrevious=j;return}}let{previousBuf:Fe}=this.state,k;if(Fe===void 0)if(n===void 0){a();return}else k=n;else Fe!==void 0&&n===void 0?k=Fe:k=Buffer.concat([Fe,n]);if(ce===!1)if(c===!1)this.state.bomSkipped=!0;else if(k.length<3){if(o===!1){this.state.previousBuf=k;return}}else{for(let j in T2)if(T2[j].compare(k,0,T2[j].length)===0){let $e=T2[j].length;this.state.bufBytesStart+=$e,k=k.slice($e);let m1=x2({...this.original_options,encoding:j});for(let he in m1)this.options[he]=m1[he];({comment:D,escape:F,quote:x}=this.options);break}this.state.bomSkipped=!0}let Te=k.length,T;for(T=0;T<Te&&!this.__needMoreData(T,Te,o);T++){if(this.state.wasRowDelimiter===!0&&(this.info.lines++,this.state.wasRowDelimiter=!1),q!==-1&&this.info.lines>q){this.state.stop=!0,a();return}this.state.quoting===!1&&_.length===0&&this.__autoDiscoverRecordDelimiter(k,T)&&(_=this.options.record_delimiter);let j=k[T];if(z===!0&&De.append(j),(j===Qi0||j===Pi0)&&this.state.wasRowDelimiter===!1&&(this.state.wasRowDelimiter=!0),this.state.escaping===!0)this.state.escaping=!1;else{if(F!==null&&this.state.quoting===!0&&this.__isEscape(k,T,j)&&T+F.length<Te)if(ze){if(this.__isQuote(k,T+F.length)){this.state.escaping=!0,T+=F.length-1;continue}}else{this.state.escaping=!0,T+=F.length-1;continue}if(this.state.commenting===!1&&this.__isQuote(k,T))if(this.state.quoting===!0){let he=k[T+x.length],q0=y&&this.__isCharTrimable(k,T+x.length),je=D!==null&&this.__compareBytes(D,k,T+x.length,he),X=this.__isDelimiter(k,T+x.length,he),Rt=_.length===0?this.__autoDiscoverRecordDelimiter(k,T+x.length):this.__isRecordDelimiter(he,k,T+x.length);if(F!==null&&this.__isEscape(k,T,j)&&this.__isQuote(k,T+F.length))T+=F.length-1;else if(!he||X||Rt||je||q0){this.state.quoting=!1,this.state.wasQuoting=!0,T+=x.length-1;continue}else if(O===!1){let Nt=this.__error(new Je("CSV_INVALID_CLOSING_QUOTE",["Invalid Closing Quote:",`got "${String.fromCharCode(he)}"`,`at line ${this.info.lines}`,"instead of delimiter, record delimiter, trimable character","(if activated) or comment"],this.options,this.__infoField()));if(Nt!==void 0)return Nt}else this.state.quoting=!1,this.state.wasQuoting=!0,this.state.field.prepend(x),T+=x.length-1}else if(this.state.field.length!==0){if(O===!1){let he=this.__infoField(),q0=Object.keys(T2).map(X=>T2[X].equals(this.state.field.toString())?X:!1).filter(Boolean)[0],je=this.__error(new Je("INVALID_OPENING_QUOTE",["Invalid Opening Quote:",`a quote is found on field ${JSON.stringify(he.column)} at line ${he.lines}, value is ${JSON.stringify(this.state.field.toString(A))}`,q0?`(${q0} bom)`:void 0],this.options,he,{field:this.state.field}));if(je!==void 0)return je}}else{this.state.quoting=!0,T+=x.length-1;continue}if(this.state.quoting===!1){let he=this.__isRecordDelimiter(j,k,T);if(he!==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(),T+=he-1;continue}if(E===!0&&this.state.wasQuoting===!1&&this.state.record.length===0&&this.state.field.length===0){this.info.empty_lines++,T+=he-1;continue}this.info.bytes=this.state.bufBytesStart+T;let X=this.__onField();if(X!==void 0)return
`,s),Buffer.from(`
`,s),Buffer.from("\r",s)];e:for(let c=0;c<a.length;c++){let u=a[c].length;for(let p=0;p<u;p++)if(a[c][p]!==n[o+p])continue e;return this.options.record_delimiter.push(a[c]),this.state.recordDelimiterMaxLength=a[c].length,a[c].length}return 0},"__autoDiscoverRecordDelimiter"),__error:i(function(n){let{encoding:o,raw:s,skip_records_with_error:a}=this.options,c=typeof n=="string"?new Error(n):n;if(a){if(this.state.recordHasError=!0,this.options.on_skip!==void 0)try{this.options.on_skip(c,s?this.state.rawBuffer.toString(o):void 0)}catch(u){return u}return}else return c},"__error"),__infoDataSet:i(function(){return{...this.info,columns:this.options.columns}},"__infoDataSet"),__infoRecord:i(function(){let{columns:n,raw:o,encoding:s}=this.options;return{...this.__infoDataSet(),bytes_records:this.info.bytes,error:this.state.error,header:n===!0,index:this.state.record.length,raw:o?this.state.rawBuffer.toString(s):void 0}},"__infoRecord"),__infoField:i(function(){let{columns:n}=this.options,o=Array.isArray(n),s=this.info.bytes_records;return{...this.__infoRecord(),bytes_records:s,column:o===!0?n.length>this.state.record.length?n[this.state.record.length].name:null:this.state.record.length,quoting:this.state.wasQuoting}},"__infoField")}},"transform");var an=i(function(t,e={}){typeof t=="string"&&(t=Buffer.from(t));let r=e&&e.objname?Object.create(null):[],n=T4(e),o=i(c=>{n.options.objname===void 0?r.push(c):r[c[0]]=c[1]},"push"),s=i(()=>{},"close"),a=n.parse(t,!0,o,s);if(a!==void 0)throw a;return r},"parse");var l0=class t{static{i(this,"Util")}static getInputList(e,r){return this.getList(kr(e,{trimWhitespace:r?.trimWhitespace!==!1}),r)}static getList(e,r){let n=[];if(e=="")return n;let o=an(e,{columns:!1,relaxQuotes:!0,comment:r?.comment,comment_no_infix:r?.commentNoInfix,relaxColumnCount:!0,skipEmptyLines:!0,quote:r?.quote});for(let s of o)s.length==1?r?.ignoreComma?n.push(s[0]):n.push(...s[0].split(",")):r?.ignoreComma?n.push(s.join(",")):n.push(...s);return n.filter(s=>s).map(s=>r?.trimWhitespace===!1?s:s.trim())}static getInputNumber(e){let r=kr(e);if(r)return parseInt(r)}static async asyncForEach(e,r){for(let n=0;n<e.length;n++)await r(e[n],n,e)}static isValidURL(e){let r;try{r=new URL(e)}catch{return!1}return r.protocol==="http:"||r.protocol==="https:"}static isValidRef(e){if(t.isValidURL(e))return!0;for(let r of["git://","github.com/","git@"])if(e.startsWith(r))return!0;return!1}static async powershellCommand(e,r){let n=await at("powershell",!0),o=e.replace(/'/g,"''").replace(/"|\n|\r/g,""),s=[];if(r)for(let a in r)s.push(`-${a} '${r[a].replace(/'/g,"''").replace(/"|\n|\r/g,"")}'`);return{command:`"${n}"`,args:["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",`& '${o}' ${s.join(" ")}`]}}static isDirectory(e){try{return lle.default.lstatSync(e).isDirectory()}catch{}return!1}static trimPrefix(e,r){return!e||!r||e.indexOf(r)!==0?e:e.substring(r.length)}static trimSuffix(e,r){if(!e||!r)return e;let n=e.lastIndexOf(r);return n===-1||n+r.length!==e.length?e:e.substring(0,n)}static sleep(e){return new Promise(r=>setTimeout(r,e*1e3))}static hash(e){return V_.default.createHash("sha256").update(e).digest("hex")}static parseBool(e){if(e===void 0)return!1;switch(e){case"1":case"t":case"T":case"true":case"TRUE":case"True":return!0;case"0":case"f":case"F":case"false":case"FALSE":case"False":return!1;default:throw new Error(`parseBool syntax error: ${e}`)}}static parseBoolOrDefault(e,r=!1){try{return this.parseBool(e)}catch{return r}}static formatFileSize(e){if(e===0)return"0 Bytes";let r=1024,n=["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"],o=Math.floor(Math.log(e)/Math.log(r));return parseFloat((e/Math.pow(r,o)).toFixed(2))+" "+n[o]}static generateRandomString(e=10){return V_.default.randomBytes(Math.ceil(e/2)).toString("hex").slice(0,e)}static compileHandlebars(e,r,n){return dle.default.compile(e,r)(n)}static stringToUnicodeEntities(e){return Array.from(e).map(r=>`&#x${r.charCodeAt(0).toString(16)};`).join("")}static countLines(e){return e.split(/\r\n|\r|\n/).length}static isPathRelative
More info: ${u.url}`);let M=u.range&&u.range.length>0?u.range[0]?.start.line:void 0,z=!1;for(let O of a)if(O.remote||O.path.endsWith(p)&&O.content===A){c.push({title:l,message:b,file:O.path,startLine:M}),z=!0;break}z||N(`Buildx.convertWarningsToGitHubAnnotations: skipping warning without matching Dockerfile ${p}: ${l}`)}return c}};var yp=w(require("fs"),1),Y_=w(require("path"),1);var v4=class t{static{i(this,"Build")}buildx;iidFilename;metadataFilename;constructor(e){this.buildx=e?.buildx||new S0,this.iidFilename=`build-iidfile-${l0.generateRandomString()}.txt`,this.metadataFilename=`build-metadata-${l0.generateRandomString()}.json`}async gitContext(e){let r=new Set(["ref","checksum","subdir"]),n=e?.attrs||{},o=Object.entries(n).filter(([M])=>!r.has(M)),s=l0.parseBoolOrDefault(n["fetch-by-commit"]),a=e?.ref||n.ref||Vt.ref;a.startsWith("refs/")?a.startsWith("refs/pull/")&&l0.parseBoolOrDefault(process.env.DOCKER_DEFAULT_GIT_CONTEXT_PR_HEAD_REF)&&(a=a.replace(/\/merge$/g,"/head")):a=`refs/heads/${a}`;let c=`${A0.serverURL}/${Vt.repo.owner}/${Vt.repo.repo}.git`,u=e?.checksum||n.checksum,p=e?.subdir||n.subdir,A=e?.format;if(!A){if(A="fragment",o.length>0)A="query";else if(l0.parseBoolOrDefault(process.env.BUILDX_SEND_GIT_QUERY_AS_INPUT))try{await this.buildx.versionSatisfies(">=0.29.0")&&(A="query")}catch{}}let l=Vt.sha||a;a.startsWith("refs/pull/")&&a.endsWith("/head")&&(l=typeof Vt.payload.pull_request?.head?.sha=="string"?Vt.payload.pull_request.head.sha:a);let b=u||l;if(A==="query"){let M=[`ref=${s||u?a:b}`],z=s?b:u;z&&M.push(`checksum=${z}`),p&&p!=="."&&M.push(`subdir=${p}`);for(let[O,y]of o)M.push(`${O}=${y}`);return`${c}?${M.join("&")}`}return`${c}#${b}${p&&p!=="."?`:${p}`:""}`}getImageIDFilePath(){return Y_.default.join(u0.tmpDir(),this.iidFilename)}resolveImageID(){let e=this.getImageIDFilePath();if(yp.default.existsSync(e))return yp.default.readFileSync(e,{encoding:"utf-8"}).trim()}getMetadataFilePath(){return Y_.default.join(u0.tmpDir(),this.metadataFilename)}resolveMetadata(){let e=this.getMetadataFilePath();if(!yp.default.existsSync(e))return;let r=yp.default.readFileSync(e,{encoding:"utf-8"}).trim();if(r!=="null")return JSON.parse(r)}resolveRef(e){if(!(!e&&(e=this.resolveMetadata(),!e))&&"buildx.build.ref"in e)return e["buildx.build.ref"]}resolveProvenance(e){if(!(!e&&(e=this.resolveMetadata(),!e))&&"buildx.build.provenance"in e)return e["buildx.build.provenance"]}resolveWarnings(e){if(!(!e&&(e=this.resolveMetadata(),!e))&&"buildx.build.warnings"in e)return e["buildx.build.warnings"]}resolveDigest(e){if(!(!e&&(e=this.resolveMetadata(),!e))&&"containerimage.digest"in e)return e["containerimage.digest"]}static resolveSecretString(e){let[r,n]=t.resolveSecret(e,{redact:!0});return`id=${r},src=${n}`}static resolveSecretFile(e){let[r,n]=t.resolveSecret(e,{asFile:!0});return`id=${r},src=${n}`}static resolveSecretEnv(e){let[r,n]=t.parseSecretKvp(e);return`id=${r},env=${n}`}static resolveSecret(e,r){let[n,o]=t.parseSecretKvp(e,r?.redact);if(r?.asFile){if(!yp.default.existsSync(o))throw new Error(`secret file ${o} not found`);return[n,o]}let s=u0.tmpName({tmpdir:u0.tmpDir()});return yp.default.writeFileSync(s,o),[n,s]}static getProvenanceInput(e){let r=kr(e);if(!r)return r;try{return Vj(e)?`builder-id=${A0.workflowRunURL(!0)}`:"false"}catch{return t.resolveProvenanceAttrs(r)}}static resolveProvenanceAttrs(e){if(!e)return`builder-id=${A0.workflowRunURL(!0)}`;let r=an(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0];for(let n of r)if(n.toString().split(/(?<=^[^=]+?)=/).map(s=>s.trim())[0]=="builder-id")return e;return`${e},builder-id=${A0.workflowRunURL(!0)}`}static resolveCacheToAttrs(e,r){if(!e)return e;let n="registry",o="",s="",a=an(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0];for(let c of a){let u=c.toString().split(/(?<=^[^=]+?)=/).map(p=>p.trim());u[0]==="type"?n=u[1]:u[0]==="repository"?o=u[1]:u[0]==="ghtoken"&&(s=u[1])}return n==="gha"&&(o||(e=`${e},repository=${A0.repository}`),!s&&r&&(e=`${e},ghtoken=${r}`)),e}static hasLocalExporter(e){return t.hasExporterType("local",e)}static hasTarExporter(e){return t.hasExpo
`),{delimiter:",",trim:!0,columns:!1,relaxColumnCount:!0});for(let o of n){if(o.length==1&&!o[0].startsWith("type="))return e=="local";for(let[s,a]of o.map(c=>c.split("=").map(u=>u.trim())))if(s=="type"&&a==e)return!0}return!1}static hasAttestationType(e,r){let n=an(r,{delimiter:",",trim:!0,columns:!1,relaxColumnCount:!0});for(let o of n)for(let[s,a]of o.map(c=>c.split("=").map(u=>u.trim())))if(s=="type"&&a==e)return!0;return!1}static resolveAttestationAttrs(e){let r=an(e,{delimiter:",",trim:!0,columns:!1,relaxColumnCount:!0}),n=[];for(let o of r)for(let s of o)try{let a=l0.parseBool(s);n.push(`disabled=${!a}`)}catch{n.push(s)}return n.join(",")}static hasGitAuthTokenSecret(e,r){for(let n of e){if(r&&n.startsWith(`GIT_AUTH_TOKEN.${r}=`))return!0;if(n.startsWith("GIT_AUTH_TOKEN="))return!0}return!1}static parseSecretKvp(e,r){let n=e.indexOf("="),o=e.substring(0,n),s=e.substring(n+1);if(o.length==0||s.length==0)throw new Error(`${e} is not a valid secret`);return r&&Ko(s),[o,s]}};var $_=w(require("fs"),1),Mle=w(require("path"),1);var L4=class t{static{i(this,"Bake")}buildx;metadataFilename;constructor(e){this.buildx=e?.buildx||new S0,this.metadataFilename=`bake-metadata-${l0.generateRandomString()}.json`}getMetadataFilePath(){return Mle.default.join(u0.tmpDir(),this.metadataFilename)}resolveMetadata(){let e=this.getMetadataFilePath();if(!$_.default.existsSync(e))return;let r=$_.default.readFileSync(e,{encoding:"utf-8"}).trim();if(r!=="null")return JSON.parse(r)}resolveRefs(e){if(!e&&(e=this.resolveMetadata(),!e))return;let r=new Array;for(let n in e)"buildx.build.ref"in e[n]&&r.push(e[n]["buildx.build.ref"]);return r.length>0?r:void 0}resolveWarnings(e){if(!(!e&&(e=this.resolveMetadata(),!e))&&"buildx.build.warnings"in e)return e["buildx.build.warnings"]}async getDefinition(e,r){r=r||{ignoreReturnCode:!0},r.ignoreReturnCode=!0,r.env=Object.assign({},process.env,r.env||{},e.githubToken?{BUILDX_BAKE_GIT_AUTH_TOKEN:e.githubToken}:{});let n=["bake"],o,s=[],a=[...e.files||[],e.source];if(a){for(let u of a.map(p=>p?p.trim():""))if(u.length!=0){if(!l0.isValidRef(u)){s.push(u);continue}if(o)throw new Error("Only one remote bake definition can be defined");o=u}}o&&n.push(o);for(let u of s)n.push("--file",u);if(e.overrides)for(let u of e.overrides)n.push("--set",u);if(e.vars)for(let u of e.vars)n.push("--var",u);if(e.allow)for(let u of e.allow)n.push("--allow",u);e.call&&n.push("--call",e.call),e.load&&n.push("--load"),e.noCache&&n.push("--no-cache"),e.provenance&&n.push("--provenance",e.provenance),e.push&&n.push("--push"),e.sbom&&n.push("--sbom",e.sbom);let c=await this.buildx.getCommand([...n,"--print",...e.targets||[]]);return await Ce.getExecOutput(c.command,c.args,r).then(u=>{if(u.stderr.length>0&&u.exitCode!=0)throw new Error(`cannot parse bake definitions: ${u.stderr.match(/(.*)\s*$/)?.[0]?.trim()??"unknown error"}`);return t.parseDefinition(u.stdout.trim())})}static parseDefinition(e){let r=JSON.parse(e);for(let n in r.target){let o=r.target[n];o.attest&&Array.isArray(o.attest)&&(o.attest=o.attest.map(s=>t.parseAttestEntry(s))),o["cache-from"]&&Array.isArray(o["cache-from"])&&(o["cache-from"]=o["cache-from"].map(s=>t.parseCacheEntry(s))),o["cache-to"]&&Array.isArray(o["cache-to"])&&(o["cache-to"]=o["cache-to"].map(s=>t.parseCacheEntry(s))),o.output&&Array.isArray(o.output)&&(o.output=o.output.map(s=>t.parseExportEntry(s))),o.secret&&Array.isArray(o.secret)&&(o.secret=o.secret.map(s=>t.parseSecretEntry(s))),o.ssh&&Array.isArray(o.ssh)&&(o.ssh=o.ssh.map(s=>t.parseSSHEntry(s)))}return r}static parseAttestEntry(e){if(typeof e!="string")return e;let r={type:""},n=an(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0];for(let o of n){let[s,a]=o.toString().split(/(?<=^[^=]+?)=/).map(c=>c.trim());switch(s){case"type":r.type=a;break;case"disabled":r.disabled=l0.parseBool(a);break;default:r[s]=a}}return r}static parseCacheEntry(e){if(typeof e!="string")return e;let r={type:""},n=an(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0];if(n.length===1&&!n[0].includes("="))return r.type="registry",r.ref=n[0],r;for(let o of n){let[s,a]=o.toString().
`)[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 n=r.match(/^HEAD, (.*)$/);if(!n||!n[1])throw new Error(`Cannot find detached HEAD ref in "${e}"`);let o=n[1].trim();if(o.startsWith("tag: "))return await t.findDetachedTagRef(o,e);if(o.match(/^pull\/\d+\/(head|merge)$/))return`refs/${o}`;let a=o.match(/^[^/]+\/[^/]+, (.+)$/);if(a)return`refs/heads/${a[1].trim()}`;let c=o.match(/^[^/]+\/(.+)$/);if(c)return`refs/heads/${c[1].trim()}`;throw new Error(`Unsupported detached HEAD ref in "${e}"`)}static async exec(e=[]){return await Ce.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 s=r.match(/^refs\/remotes\/[^/]+\/(.+)$/);return s?`refs/heads/${s[1]}`:r}let n=await t.exec(["tag","--contains","HEAD"]),[o]=n.split(`
`).map(s=>s.trim()).filter(s=>s.length>0);if(o)return`refs/tags/${o}`;throw new Error("Cannot infer ref from detached HEAD")}static async findDetachedTagRef(e,r){let o=(await t.exec(["for-each-ref","--format=%(refname)","--points-at","HEAD","refs/tags/"])).split(`
`).map(s=>s.trim()).filter(s=>s.length>0).sort((s,a)=>a.length-s.length);for(let s of o){let a=`tag: ${s.slice(10)}`;if(e===a||e.startsWith(`${a}, `))return s}if(o.length===1)return o[0];throw new Error(`Cannot find detached tag ref in "${r}"`)}static async findContainingRef(e){let r=await t.exec(["for-each-ref","--format=%(refname)","--contains","HEAD","--sort=-committerdate",e]),[n]=r.split(`
`).map(o=>o.trim()).filter(o=>o.length>0);return n}static async commitDate(e){return new Date(await t.exec(["show","-s",'--format="%ci"',e]))}};var Sbe=require("crypto"),ti=w(require("fs"),1),ri=w(require("path"),1);var dd=w(oQ(),1),Fbe=w(z8(),1),bd=w(Ibe(),1);var CP=w(oQ(),1);var Nbe=w(kn(),1);var Rbe="application/vnd.oci.empty.v1+json";var ei=class{static{i(this,"Cosign")}binPath;_version;_versionOnce;constructor(e){this.binPath=e?.binPath||"cosign",this._version="",this._versionOnce=!1}async isAvailable(){let e=await Ce.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 Ce.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 Ce.exec(this.binPath,["version","--json"],{failOnStdErr:!1})}async versionSatisfies(e,r){let n=r??await this.version();if(!n)return N("Cosign.versionSatisfies false: undefined version"),!1;let o=Nbe.satisfies(n,e)||/^[0-9a-f]{7}$/.exec(n)!==null;return N(`Cosign.versionSatisfies ${n} statisfies ${e}: ${o}`),o}static parseCommandOutput(e){let r,n,o,s;for(let a of e.split(/\r?\n/)){let c=a.trim();if(!c.startsWith("{")||!c.endsWith("}"))continue;let u;try{u=JSON.parse(c)}catch{continue}if(u&&Array.isArray(u.errors)&&u.errors.length>0&&(s=u.errors),!r&&u&&Array.isArray(u.manifests)&&u.manifests.length>0){let p=u.manifests[0];p?.artifactType===CP.BUNDLE_V03_MEDIA_TYPE&&typeof p.digest=="string"?r=p.digest:p?.artifactType===Rbe&&typeof p.digest=="string"&&(n=p.digest)}if(!o&&u&&u.mediaType===CP.BUNDLE_V03_MEDIA_TYPE&&(o=u),o&&(r||n)){s=void 0;break}}return{bundle:o,signatureManifestDigest:r||n,errors:s}}};var yP=w(require("fs"),1);var fq=class t{static{i(this,"ImageTools")}buildx;constructor(e){this.buildx=e?.buildx||new S0}async getCommand(e){return await this.buildx.getCommand(["imagetools",...e])}async getInspectCommand(e){return await this.getCommand(["inspect",...e])}async getCreateCommand(e){return await this.getCommand(["create",...e])}async inspectImage(e){return await this.inspect(e,"{{json .Image}}",r=>{if(typeof r=="object"&&!Array.isArray(r)&&r!==null)return Object.prototype.hasOwnProperty.call(r,"config"),r;throw new Error("Unexpected output format")})}async inspectManifest(e){return await this.inspect(e,"{{json .Manifest}}",r=>{if(typeof r=="object"&&!Array.isArray(r)&&r!==null)return Object.prototype.hasOwnProperty.call(r,"manifests"),r;throw new Error("Unexpected output format")})}async attestationDescriptors(e){let r=await this.inspectManifest(e);if(typeof r!="object"||r===null||!("manifests"in r)||!Array.isArray(r.manifests))throw new Error(`No descriptor found for ${e.name}`);let n=r.manifests.filter(a=>a.annotations?.["vnd.docker.reference.type"]==="attestation-manifest");if(!e.platform)return n;let o=e.platform,s=new Map;for(let a of r.manifests)a.digest&&s.set(a.digest,a);return n.filter(a=>{let c=a.annotations?.["vnd.docker.reference.digest"];if(!c)return!1;let u=s.get(c);return u?u.platform?.os===o.os&&u.platform?.architecture===o.architecture&&(u.platform?.variant??"")===(o.variant??""):!1})}async attestationDigests(e){return(await this.attestationDescriptors(e)).map(r=>r.digest)}async create(e){let r=[],n=u0.tmpName({tmpdir:u0.tmpDir(),template:"imagetools-metadata-XXXXXX"}),o=[],s=[];for(let c of e.sources){if(c.startsWith("cwd://")){let u=c.substring(6);u.length>0&&o.push(u);continue}s.push(c)}if(e.tags)for(let c of e.tags)r.push("--tag",c);if(e.platforms)for(let c of e.platforms)r.push("--platform",c);if(e.annotations)for(let c of e.annotations)r.push("--annotation",c);e.dryRun?r.push("--dry-run"):r.push("--metadata-file",n);for(let c of o)r.push("--file",c);for(let c of s)r.
${a.message}`),await new Promise(p=>setTimeout(p,Math.pow(2,c)*100))}throw a??new Error(`ImageTools inspect command failed for ${e.name}`)}async execInspect(e,r,n){return await Ce.getExecOutput(e,r,{ignoreReturnCode:!0,silent:!0}).then(o=>{if(o.stderr.length>0&&o.exitCode!=0)throw new Error(o.stderr.trim());return n(JSON.parse(o.stdout))})}static isManifestUnknownError(e){return/(MANIFEST_UNKNOWN|manifest unknown)/i.test(e)||/:\s*not found$/i.test(e)}};var kp="https://search.sigstore.dev";var wbe="slsaprovenance1",Pc=class t{static{i(this,"Sigstore")}cosign;imageTools;constructor(e){this.cosign=e?.cosign||new ei,this.imageTools=e?.imageTools||new fq}async signAttestationManifests(e){if(!await this.cosign.isAvailable())throw new Error("Cosign is required to sign attestation manifests");let r={};try{if(!process.env.ACTIONS_ID_TOKEN_REQUEST_URL)throw new Error('missing "id-token" permission. Please add "permissions: id-token: write" to your workflow.');let n=await this.cosignSigningConfigArgs(e.noTransparencyLog);for(let o of e.imageNames){let s=await this.imageTools.attestationDigests({name:`${o}@${e.imageDigest}`,retryOnManifestUnknown:e.retryOnManifestUnknown,retryLimit:e.retryLimit});for(let a of s){let c=`${o}@${a}`;await ct(`Signing attestation manifest ${c}`,async()=>{let u=["sign","--yes","--oidc-provider","github-actions","--registry-referrers-mode","oci-1-1","--new-bundle-format",...n];S(`[command]${this.cosign.binPath} ${[...u,c].join(" ")}`);let p=await Ce.getExecOutput(this.cosign.binPath,["--verbose",...u,c],{ignoreReturnCode:!0,silent:!0,env:Object.assign({},process.env,{COSIGN_EXPERIMENTAL:"1"})}),A=ei.parseCommandOutput(p.stderr.trim());if(p.exitCode!=0)if(A.errors&&A.errors.length>0){let b=A.errors.map(M=>`- [${M.code}] ${M.message} : ${M.detail}`).join(`
`);throw new Error(`Cosign sign command failed with errors:
${b}`)}else throw new Error(`Cosign sign command failed with: ${p.stderr.trim().split(/\r?\n/).filter(b=>b.length>0).pop()??"unknown error"}`);let l=t.parseBundle((0,dd.bundleFromJSON)(A.bundle));l.tlogID&&S(`Uploaded to Rekor transparency log: ${kp}?logIndex=${l.tlogID}`),S(`Signature manifest pushed: https://oci.dag.dev/?referrers=${c}`),r[c]={...l,imageName:o}})}}}catch(n){throw new Error(`Signing BuildKit attestation manifests failed: ${n.message}`)}return r}async verifySignedManifests(e,r){let n={};for(let[o,s]of Object.entries(e))await ct(`Verifying signature of ${o}`,async()=>{let a=await this.verifyImageAttestation(o,{certificateIdentityRegexp:r.certificateIdentityRegexp,noTransparencyLog:r.noTransparencyLog||!s.tlogID,retryOnManifestUnknown:r.retryOnManifestUnknown,retryLimit:r.retryLimit});S(`Signature manifest verified: https://oci.dag.dev/?image=${s.imageName}@${a.signatureManifestDigest}`),n[o]=a});return n}async verifyImageAttestations(e,r){let n={},o=await this.imageTools.attestationDigests({name:e,platform:r.platform,retryOnManifestUnknown:r.retryOnManifestUnknown,retryLimit:r.retryLimit});if(o.length===0)throw new Error(`No attestation manifests found for ${e}`);let s=e.split(":",1)[0];for(let a of o){let c=`${s}@${a}`,u=await this.verifyImageAttestation(c,r);S(`Signature manifest verified: https://oci.dag.dev/?image=${s}@${u.signatureManifestDigest}`),n[c]=u}return n}async verifyImageAttestation(e,r){if(!await this.cosign.isAvailable())throw new Error("Cosign is required to verify signed manifests");let n=["verify","--experimental-oci11","--new-bundle-format","--certificate-oidc-issuer","https://token.actions.githubusercontent.com","--certificate-identity-regexp",r.certificateIdentityRegexp];if(r.noTransparencyLog&&n.push("--use-signed-timestamps","--insecure-ignore-tlog"),!r.retryOnManifestUnknown){S(`[command]${this.cosign.binPath} ${[...n,e].join(" ")}`);let a=await Ce.getExecOutput(this.cosign.binPath,["--verbose",...n,e],{ignoreReturnCode:!0,silent:!0,env:Object.assign({},process.env,{COSIGN_EXPERIMENTAL:"1"})});if(a.exitCode!==0)throw new Error(`Cosign verify command failed with: ${a.stderr.trim().split(/\r?\n/).filter(u=>u.length>0).pop()??"unknown error"}`);let c=ei.parseCommandOutput(a.stderr.trim());return{cosignArgs:n,signatureManifestDigest:c.signatureManifestDigest}}let o=r.retryLimit??15,s;S(`[command]${this.cosign.binPath} ${[...n,e].join(" ")}`);for(let a=0;a<o;a++){let c=await Ce.getExecOutput(this.cosign.binPath,["--verbose",...n,e],{ignoreReturnCode:!0,silent:!0,env:Object.assign({},process.env,{COSIGN_EXPERIMENTAL:"1"})}),u=ei.parseCommandOutput(c.stderr.trim());if(c.exitCode===0)return{cosignArgs:n,signatureManifestDigest:u.signatureManifestDigest};if(u.errors&&u.errors.length>0){let p=u.errors.map(A=>`- [${A.code}] ${A.message} : ${A.detail}`).join(`
`);if(s=new Error(`Cosign verify command failed with errors:
${p}`),u.errors.some(A=>A.code==="MANIFEST_UNKNOWN"))S(`Cosign verify command failed with MANIFEST_UNKNOWN, retrying attempt ${a+1}/${o}...
${p}`),await new Promise(A=>setTimeout(A,Math.pow(2,a)*100));else throw s}else throw new Error(`Cosign verify command failed with: ${c.stderr.trim().split(/\r?\n/).filter(p=>p.length>0).pop()??"unknown error"}`)}throw s}async signProvenanceBlobs(e){if(!await this.cosign.isAvailable())throw new Error("Cosign is required to sign provenance blobs");let r={};try{if(!process.env.ACTIONS_ID_TOKEN_REQUEST_URL)throw new Error('missing "id-token" permission. Please add "permissions: id-token: write" to your workflow.');let n=await this.cosignSigningConfigArgs(e.noTransparencyLog),o=t.getProvenanceBlobs(e);for(let s of Object.keys(o))await ct(`Signing ${s}`,async()=>{let a=o[s],c=ri.default.join(ri.default.dirname(s),`${e.name??"provenance"}.sigstore.json`),u=t.getProvenanceSubjects(a);if(u.length===0){r0(`No subjects found in provenance ${s}, skip signing.`);return}let p=ri.default.join(ri.default.dirname(s),u[0].name),A=["attest-blob","--yes","--oidc-provider","github-actions","--new-bundle-format","--statement",s,"--type",wbe,"--bundle",c,...n];S(`[command]${this.cosign.binPath} ${[...A,p].join(" ")}`);let l=await Ce.getExecOutput(this.cosign.binPath,["--verbose",...A,p],{ignoreReturnCode:!0,silent:!0,env:Object.assign({},process.env,{COSIGN_EXPERIMENTAL:"1"})}),b=ei.parseCommandOutput(l.stderr.trim());if(l.exitCode!=0)if(b.errors&&b.errors.length>0){let z=b.errors.map(O=>`- [${O.code}] ${O.message} : ${O.detail}`).join(`
`);throw new Error(`Cosign attest-blob command failed with errors:
${z}`)}else throw new Error(`Cosign attest-blob command failed with: ${l.stderr.trim().split(/\r?\n/).filter(z=>z.length>0).pop()??"unknown error"}`);let M=t.parseBundle((0,dd.bundleFromJSON)(JSON.parse(ti.default.readFileSync(c,{encoding:"utf-8"}))));S("Provenance blob signed for:");for(let z of u){let[O,y]=Object.entries(z.digest)[0]||[];S(` - ${z.name} (${O}:${y})`)}M.tlogID&&S(`Attestation signature uploaded to Rekor transparency log: ${kp}?logIndex=${M.tlogID}`),S(`Sigstore bundle written to: ${c}`),r[s]={...M,bundlePath:c,subjects:u}})}catch(n){throw new Error(`Signing BuildKit provenance blobs failed: ${n.message}`)}return r}async verifySignedArtifacts(e,r){let n={};if(!await this.cosign.isAvailable())throw new Error("Cosign is required to verify signed artifacts");for(let[o,s]of Object.entries(e)){let a=ri.default.dirname(o);await ct(`Verifying signature bundle ${s.bundlePath}`,async()=>{for(let c of s.subjects){let u=ri.default.join(a,c.name);S(`Verifying signed artifact ${u}`);let p=["verify-blob-attestation","--new-bundle-format","--certificate-oidc-issuer","https://token.actions.githubusercontent.com","--certificate-identity-regexp",r.certificateIdentityRegexp,"--type",r.predicateType??wbe];(r.noTransparencyLog||!s.tlogID)&&p.push("--use-signed-timestamps","--insecure-ignore-tlog");let A=await Ce.getExecOutput(this.cosign.binPath,[...p,"--bundle",s.bundlePath,u],{ignoreReturnCode:!0});if(A.stderr.length>0&&A.exitCode!=0)throw new Error(A.stderr);n[u]={bundlePath:s.bundlePath,cosignArgs:p}}})}return n}async verifyArtifact(e,r,n){S("Verifying keyless verification bundle signature");let o=JSON.parse(ti.default.readFileSync(r,"utf-8")),s=(0,dd.bundleFromJSON)(o);S("Fetching Sigstore TUF trusted root metadata");let a=await Fbe.getTrustedRoot(),c=(0,bd.toTrustMaterial)(a);try{S("Verifying artifact signature");let u=(0,bd.toSignedEntity)(s,ti.default.readFileSync(e)),p=t.parseCertificate(s),A=s.verificationMaterial.tlogEntries,l=A.length>0?A[0].logIndex:void 0;if(n?.subjectAlternativeName&&n?.subjectAlternativeName instanceof RegExp){let z=p.subjectAltName?.replace(/^uri:/i,"");if(z){if(!z.match(n.subjectAlternativeName))throw new Error(`Signing certificate subjectAlternativeName "${z}" does not match expected pattern`)}else throw new Error("Signing certificate does not contain subjectAltName")}let M=new bd.Verifier(c).verify(u,{subjectAlternativeName:n?.subjectAlternativeName&&typeof n.subjectAlternativeName=="string"?n.subjectAlternativeName:void 0,extensions:n?.issuer?{issuer:n.issuer}:void 0});return N(`Sigstore.verifyArtifact signer: ${JSON.stringify(M)}`),{payload:o,certificate:p.toString(),tlogID:l}}catch(u){throw new Error(`Failed to verify artifact signature: ${u}`)}}static noTransparencyLog(e){return e??A0.context.payload.repository?.private??!1}async cosignSigningConfigArgs(e){let r=[],n=t.noTransparencyLog(e);return S(`Upload to transparency log: ${n?"disabled":"enabled"}`),await this.cosign.versionSatisfies(">=3.0.4")?await ct("Creating Sigstore protobuf signing config",async()=>{let o=u0.tmpName({template:"signing-config-XXXXXX.json",tmpdir:u0.tmpDir()}),s=["signing-config","create","--with-default-services=true",`--out=${o}`];n&&s.push("--no-default-rekor=true"),await Ce.exec(this.cosign.binPath,s,{env:Object.assign({},process.env,{COSIGN_EXPERIMENTAL:"1"})}),S(JSON.stringify(JSON.parse(ti.default.readFileSync(o,{encoding:"utf-8"})),null,2)),r.push(`--signing-config=${o}`)}):(r.push("--use-signing-config"),n&&r.push("--tlog-upload=false")),r}static getProvenanceBlobs(e){let r=ri.default.join(e.localExportDir,"provenance.json");if(ti.default.existsSync(r))return{[r]:ti.default.readFileSync(r)};let n=ti.default.readdirSync(e.localExportDir,{withFileTypes:!0}),o=n.filter(s=>s.isDirectory());if(o.length>0&&o.length===n.length&&o.every(s=>ti.default.existsSync(ri.default.join(e.localExportDir,s.name,"provenance.json")))){let s={};for(let a of o){let c=ri.default.join(e.localExportDir,a.name,"provenance.json");s[c]=ti.default.readFileSync(c)}return s}throw new Error(`No valid provenance.json found in ${e.
`)){let[p,...A]=u.split(":"),l=p.toLowerCase(),b=A.map(M=>M.trim()).join(":");if(p.length!=0)switch(!0){case l=="name":n=void 0,r.name==null?r.name=b:(s&&o.gcPolicy&&(o.gcPolicy.push(s),s=void 0),o.name&&r.nodes.push(o),o={name:b});break;case l=="driver":n=void 0,r.driver=b;break;case l=="last activity":n=void 0,r.lastActivity=new Date(b);break;case l=="endpoint":n=void 0,o.endpoint=b;break;case l=="driver options":n=void 0,o["driver-opts"]=(b.match(/([a-zA-Z0-9_.]+)="([^"]*)"/g)||[]).map(M=>M.replace(/^(.*)="(.*)"$/g,"$1=$2"));break;case l=="status":n=void 0,o.status=b;break;case l=="buildkit daemon flags":case l=="flags":n=void 0,o["buildkitd-flags"]=b;break;case l=="buildkit version":case l=="buildkit":n=void 0,o.buildkit=b;break;case l=="platforms":{if(n=void 0,!b)break;let M=[];if(b.includes("*"))for(let z of b.split(", "))z.includes("*")&&M.push(z.replace(/\*/g,""));else M=b.split(", ");o.platforms=M.join(",");break}case l=="features":n="features",o.features={};break;case l=="labels":n="label",o.labels={};break;case l=="devices":n="devices",o.devices=o.devices||[];break;case l.startsWith("gc policy rule#"):n="gcpolicy",o.gcPolicy&&s&&(o.gcPolicy.push(s),s=void 0);break;case l.startsWith("file#"):n="file",c=p.split("#")[1],o.files=o.files||{},o.files[c]="";break;default:switch(n&&n!=="devices"&&o.devices&&a&&(o.devices.push(a),a=void 0),n||""){case"features":{o.features=o.features||{},o.features[p.trim()]=!!b;break}case"label":{o.labels=o.labels||{},o.labels[p.trim()]=b;break}case"devices":{switch(l.trim()){case"name":{o.devices&&a&&o.devices.push(a),a={},a.name=b;break}case"on-demand":{a&&b&&(a.onDemand=b=="true");break}case"automatically allowed":{a&&b&&(a.autoAllow=b=="true");break}case"annotations":{a&&(a.annotations=a.annotations||{});break}default:a&&a.annotations&&(a.annotations[p.trim()]=b)}break}case"gcpolicy":{switch(o.gcPolicy=o.gcPolicy||[],s=s||{},l.trim()){case"all":{s.all=b=="true";break}case"filters":{b&&(s.filter=b.split(","));break}case"keep duration":{s.keepDuration=b;break}case"keep bytes":{s.keepBytes=b;break}case"reserved space":{s.reservedSpace=b;break}case"max used space":{s.maxUsedSpace=b;break}case"min free space":{s.minFreeSpace=b;break}}break}case"file":{c&&o.files&&(o.files[c].length>0&&(o.files[c]+=`
`),o.files[c]+=u.replace(/^\s>\s?/,""));break}}}}return a&&o.devices&&o.devices.push(a),s&&o.gcPolicy&&o.gcPolicy.push(s),o.name&&r.nodes.push(o),r}};var Wbe=w(kn(),1);var mq=w(require("fs"),1);var hq=class{static{i(this,"Config")}resolveFromString(e){return this.resolve(e,!1)}resolveFromFile(e){return this.resolve(e,!0)}resolve(e,r){if(r){if(!mq.default.existsSync(e))throw new Error(`config file ${e} not found`);e=mq.default.readFileSync(e,{encoding:"utf-8"})}let n=u0.tmpName({tmpdir:u0.tmpDir()});return mq.default.writeFileSync(n,e),n}};var zq=class{static{i(this,"BuildKit")}buildx;config;constructor(e){this.config=new hq,this.buildx=e?.buildx||new S0}async getVersion(e){if(!e.buildkit&&e.name)try{return await this.getVersionWithinImage(e.name)}catch(r){r0(r)}return e.buildkit}async getVersionWithinImage(e){return N(`BuildKit.getVersionWithinImage nodeName: ${e}`),Bt.getExecOutput(["inspect","--format","{{.Config.Image}}",`${S0.containerNamePrefix}${e}`],{ignoreReturnCode:!0,silent:!0}).then(r=>{if(r.exitCode==0&&r.stdout.length>0)return N(`BuildKit.getVersionWithinImage image: ${r.stdout.trim()}`),Bt.getExecOutput(["run","--rm",r.stdout.trim(),"--version"],{ignoreReturnCode:!0,silent:!0}).then(n=>{if(n.exitCode==0&&n.stdout.length>0)return`${r.stdout.trim()} => ${n.stdout.trim()}`;if(n.stderr.length>0)throw new Error(r.stderr.trim());return n.stdout.trim()});if(r.stderr.length>0)throw new Error(r.stderr.trim());return r.stdout.trim()})}async versionSatisfies(e,r,n){n||(n=await new Md({buildx:this.buildx}).inspect(e));for(let o of n.nodes){let s=o.buildkit;if(N(`BuildKit.versionSatisfies ${s}: ${r}`),!s)try{s=await this.getVersionWithinImage(o.name||"")}catch{return N(`BuildKit.versionSatisfies ${o.name}: can't get version`),!1}if(N(`BuildKit.versionSatisfies ${o.name}: version ${s}`),n.driver=="docker"&&!s.endsWith("-moby")||!Wbe.satisfies(s.replace(/-moby$/,""),r))return!1}return!0}};var gq=class t{static{i(this,"Compose")}_version;_versionOnce;_standalone;constructor(e){this._standalone=e?.standalone,this._version="",this._versionOnce=!1}async isStandalone(){let e=this._standalone??!await Bt.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 Ce.getExecOutput(e.command,e.args,{ignoreReturnCode:!0,silent:!0}).then(n=>n.stderr.length>0&&n.exitCode!=0?(N(`Compose.isAvailable cmd err: ${n.stderr.trim()}`),!1):n.exitCode==0).catch(n=>(N(`Compose.isAvailable error: ${n}`),!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 Ce.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 Ce.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 ha=w(require("fs"),1),oi=w(require("os"),1),md=w(require("path"),1);var Eq=w(kn(),1),qP=w(require("util"),1);var Oq=class t{static{i(this,"Install")}standalone;githubToken;constructor(e){this.standalone=e?.standalone,this.githubToken=e?.githubToken||process.env.GITHUB_TOKEN}async download(e,r){let n=await t.getDownloadVersion(e);N(`Install.download version: ${n.version}`);let o=await t.getRelease(n,this.githubToken);N(`Install.download release tag name: ${o.tag_name}`);let s=await this.vspec(o.tag_name);N(`Install.download vspec: ${s}`);let a=Eq.clean(s)||"";if(!Eq.valid(a))throw new Error(`Invalid Compose version "${s}".`);let c=new nt({htcName:n.key!="official"?`compose-dl-bin-${n.key}`:"compose-dl-bin",htcVersion:s,baseCacheDir:md.default.join(oi.default.homedir(),".bin","docker-compose"),cacheFile:oi.default.platform()=="win32"?"docker-compose.ex
# syntax=docker/dockerfile:1
ARG GO_VERSION="1.24"
ARG ALPINE_VERSION="3.22"
FROM --platform=$BUILDPLATFORM tonistiigi/xx:1.7.0 AS xx
FROM --platform=$BUILDPLATFORM golang:\${GO_VERSION}-alpine\${ALPINE_VERSION} AS builder-base
COPY --from=xx / /
RUN apk add --no-cache git
ENV GOTOOLCHAIN=auto
ENV CGO_ENABLED=0
WORKDIR /src
RUN --mount=type=cache,target=/go/pkg/mod \\
--mount=type=bind,source=go.mod,target=go.mod \\
--mount=type=bind,source=go.sum,target=go.sum \\
go mod download
FROM builder-base AS version
RUN --mount=type=bind,target=. <<'EOT'
git rev-parse HEAD 2>/dev/null || {
echo >&2 "Failed to get git revision, make sure --build-arg BUILDKIT_CONTEXT_KEEP_GIT_DIR=1 is set when building from Git directly"
exit 1
}
set -ex
export PKG=sigs.k8s.io BUILDDATE=$(date -u +"%Y-%m-%dT%H:%M:%SZ") TREESTATE=$(if ! git diff --no-ext-diff --quiet --exit-code; then echo dirty; else echo clean; fi) VERSION=$(git describe --match 'v[0-9]*' --dirty='.m' --always --tags) COMMIT=$(git rev-parse HEAD)$(if ! git diff --no-ext-diff --quiet --exit-code; then echo .m; fi);
echo "-X \${PKG}/release-utils/version.gitVersion=\${VERSION} -X \${PKG}/release-utils/version.gitCommit=\${COMMIT} -X \${PKG}/release-utils/version.gitTreeState=\${TREESTATE} -X \${PKG}/release-utils/version.buildDate=\${BUILDDATE}" > /tmp/.ldflags;
echo -n "\${VERSION}" > /tmp/.version;
EOT
FROM builder-base AS builder
ARG TARGETPLATFORM
RUN --mount=type=bind,target=. \\
--mount=type=cache,target=/root/.cache,id=cosign-$TARGETPLATFORM \\
--mount=source=/tmp/.ldflags,target=/tmp/.ldflags,from=version \\
--mount=type=cache,target=/go/pkg/mod <<EOT
set -ex
xx-go build -trimpath -ldflags "-s -w $(cat /tmp/.ldflags)" -o /out/cosign ./cmd/cosign
xx-verify --static /out/cosign
EOT
FROM scratch
COPY --from=builder /out /
`;var Cq=class t{static{i(this,"Install")}githubToken;buildx;sigstore;constructor(e){this.githubToken=e?.githubToken||process.env.GITHUB_TOKEN,this.buildx=e?.buildx||new S0,this.sigstore=e?.sigstore||new Pc}async download(e){let r=await t.getDownloadVersion(e.version);N(`Install.download version: ${r.version}`);let n=await t.getRelease(r,this.githubToken);N(`Install.download release tag name: ${n.tag_name}`);let o=await this.vspec(n.tag_name);N(`Install.download vspec: ${o}`);let s=zd.clean(o)||"";if(!zd.valid(s))throw new Error(`Invalid Cosign version "${o}".`);let a=new nt({htcName:"cosign-dl-bin",htcVersion:o,baseCacheDir:hd.default.join(So.default.homedir(),".bin"),cacheFile:So.default.platform()=="win32"?"cosign.exe":"cosign",ghaNoCache:e.ghaNoCache}),c=await a.find();if(c)return S(`Cosign binary found in ${c}`),c;let u=DP.format(r.downloadURL,o,this.filename());S(`Downloading ${u}`);let p=await En(u,void 0,this.githubToken);N(`Install.download htcDownloadPath: ${p}`),e.verifySignature&&zd.satisfies(o,">=3.0.1")&&await this.verifySignature(p,u);let A=await a.save(p,e.skipState);return S(`Cached to ${A}`),A}async build(e,r,n){let o=await this.vspec(e);N(`Install.build vspec: ${o}`);let s=new nt({htcName:"cosign-build-bin",htcVersion:o,baseCacheDir:hd.default.join(So.default.homedir(),".bin"),cacheFile:So.default.platform()=="win32"?"cosign.exe":"cosign",ghaNoCache:r}),a=await s.find();if(a)return S(`Cosign binary found in ${a}`),a;let c=hd.default.join(u0.tmpDir(),"cosign-build-cache"),u=await this.buildCommand(e,c),p=await Ce.getExecOutput(u.command,u.args,{ignoreReturnCode:!0,input:Buffer.from(xbe)}).then(l=>{if(l.stderr.length>0&&l.exitCode!=0)throw new Error(`build failed with: ${l.stderr.match(/(.*)\s*$/)?.[0]?.trim()??"unknown error"}`);return`${c}/cosign`}),A=await s.save(p,n);return S(`Cached to ${A}`),A}async install(e,r){r=r||u0.tmpDir();let n=hd.default.join(r,"cosign-bin");Ym.default.existsSync(n)||Ym.default.mkdirSync(n,{recursive:!0});let o=So.default.platform()=="win32"?"cosign.exe":"cosign",s=hd.default.join(n,o);return Ym.default.copyFileSync(e,s),S("Fixing perms"),Ym.default.chmodSync(s,"0755"),es(n),S("Added Cosign to PATH"),S(`Binary path: ${s}`),s}async buildCommand(e,r){let n=await new S0({standalone:!0}).isAvailable(),o=await new S0({standalone:!1}).isAvailable(),s=!1;if(await this.buildx.isStandalone()&&n)N("Install.buildCommand: Buildx standalone found, build with it"),s=!0;else if(!await this.buildx.isStandalone()&&o)N("Install.buildCommand: Buildx plugin found, build with it"),s=!1;else if(n)N("Install.buildCommand: Buildx plugin not found, but standalone found so trying to build with it"),s=!0;else if(o)N("Install.buildCommand: Buildx standalone not found, but plugin found so trying to build with it"),s=!1;else throw new Error(`Neither buildx standalone or plugin have been found to build from ref ${e}`);let a=["build","--platform","local","--build-arg","BUILDKIT_CONTEXT_KEEP_GIT_DIR=1","--output",`type=local,dest=${r}`];return process.env.GIT_AUTH_TOKEN&&a.push("--secret","id=GIT_AUTH_TOKEN"),a.push("-f-",e),await new S0({standalone:s}).getCommand(a)}async verifySignature(e,r){let n=`${r}.sigstore.json`;S(`Downloading keyless verification bundle at ${n}`);let o=await En(n,void 0,this.githubToken);N(`Install.verifySignature bundlePath: ${o}`);let s=await this.sigstore.verifyArtifact(e,o,{subjectAlternativeName:"keyless@projectsigstore.iam.gserviceaccount.com",issuer:"https://accounts.google.com"});S(`Cosign binary signature verified! ${s.tlogID?`${kp}?logIndex=${s.tlogID}`:""}`)}filename(){let e;switch(So.default.arch()){case"x64":{e="amd64";break}case"ppc64":{e="ppc64le";break}default:{e=So.default.arch();break}}let r=So.default.platform()=="win32"?"windows":So.default.platform(),n=So.default.platform()=="win32"?".exe":"";return DP.format("cosign-%s-%s%s",r,e,n)}async vspec(e){if(!l0.isValidRef(e)){let p=e.replace(/^v+|v+$/g,"");return S(`Use ${p} version spec cache key for ${e}`),p}let[r,n]=e.split("#");n.length==0&&(n="master");let o;n.match(/^[0-9a-fA-F]{40}$/)?o=n:o=await pa.remoteSha
`,sepLabels:kr("sep-labels",{trimWhitespace:!1})||`
`,sepAnnotations:kr("sep-annotations",{trimWhitespace:!1})||`
`,bakeTarget:kr("bake-target")||"docker-metadata-action",githubToken:kr("github-token")}}i(Lbe,"getInputs");async function _be(t,e){switch(t){case"workflow":return await J20(e);case"git":return await Y20();default:throw new Error(`Invalid context source: ${t}`)}}i(_be,"getContext");async function J20(t){let e=A0.context;return/pull_request_target/.test(e.eventName)&&(e.ref=`refs/pull/${e.payload.number}/merge`),/true/i.test(process.env.DOCKER_METADATA_PR_HEAD_SHA||"")&&(/pull_request/.test(e.eventName)||/pull_request_target/.test(e.eventName))&&e.payload?.pull_request?.head?.sha!=null&&(e.sha=e.payload.pull_request.head.sha),{commitDate:await $20(e.sha,t),...e}}i(J20,"getContextFromWorkflow");async function Y20(){let t=await pa.context();return{commitDate:await pa.commitDate(t.sha),...t}}i(Y20,"getContextFromGit");async function $20(t,e){let r=A0.context.payload;if(r.commits){let n=r.commits.find(o=>o.id===t)?.timestamp;if(n)return new Date(n)}if(r.head_commit&&r.head_commit.id===t)return new Date(r.head_commit.timestamp);try{let n=await e.github.octokit.rest.repos.getCommit({owner:A0.context.repo.owner,repo:A0.context.repo.repo,ref:t});if(n.data.commit.committer?.date)return new Date(n.data.commit.committer.date);throw new Error("Committer date not found")}catch(n){return N(`Failed to get commit date from GitHub API: ${n.message}`),new Date}}i($20,"getCommitDateFromWorkflow");var Da=w(G_(),1),x4e=w(require("fs"),1),T4e=w(require("path"),1),Xh=w(Hbe(),1),pn=w(q4e(),1),_d=w(kn(),1);var Ye=class t extends Error{static{i(this,"CsvError")}constructor(e,r,n,...o){Array.isArray(r)&&(r=r.join(" ").trim()),super(r),Error.captureStackTrace!==void 0&&Error.captureStackTrace(this,t),this.code=e;for(let s of o)for(let a in s){let c=s[a];this[a]=Buffer.isBuffer(c)?c.toString(n.encoding):c==null?c:JSON.parse(JSON.stringify(c))}}};var Hh=i(function(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)},"is_object");var CD=i(function(t){let e=[];for(let r=0,n=t.length;r<n;r++){let o=t[r];if(o==null||o===!1)e[r]={disabled:!0};else if(typeof o=="string"||typeof o=="number")e[r]={name:`${o}`};else if(Hh(o)){if(typeof o.name!="string")throw new Ye("CSV_OPTION_COLUMNS_MISSING_NAME",["Option columns missing name:",`property "name" is required at position ${r}`,"when column is an object literal"]);e[r]=o}else throw new Ye("CSV_INVALID_COLUMN_DEFINITION",["Invalid column definition:","expect a string or a literal object,",`got ${JSON.stringify(o)} at position ${r}`])}return e},"normalize_columns_array");var $7=class{static{i(this,"ResizeableBuffer")}constructor(e=100){this.size=e,this.length=0,this.buf=Buffer.allocUnsafe(e)}prepend(e){if(Buffer.isBuffer(e)){let r=this.length+e.length;if(r>=this.size&&(this.resize(),r>=this.size))throw Error("INVALID_BUFFER_STATE");let n=this.buf;this.buf=Buffer.allocUnsafe(this.size),e.copy(this.buf,0),n.copy(this.buf,e.length),this.length+=e.length}else{let r=this.length++;r===this.size&&this.resize();let n=this.clone();this.buf[0]=e,n.copy(this.buf,1,0,r)}}append(e){let r=this.length++;r===this.size&&this.resize(),this.buf[r]=e}clone(){return Buffer.from(this.buf.slice(0,this.length))}resize(){let e=this.length;this.size=this.size*2;let r=Buffer.allocUnsafe(this.size);this.buf.copy(r,0,0,e),this.buf=r}toString(e){return e?this.buf.slice(0,this.length).toString(e):Uint8Array.prototype.slice.call(this.buf.slice(0,this.length))}toJSON(){return this.toString("utf8")}reset(){this.length=0}},j7=$7;var D4e=i(function(t){let e=[32,9,10,13,12,11,160,5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8232,8233,8239,8287,12288,65279].reduce((n,o)=>{let s=Buffer.from(String.fromCharCode(o),t.encoding);return o!==63&&s.length===1&&s[0]===63||n.push(s),n},[]),r=new Uint8Array(256);for(let n of e)r[n[0]]=1;return{bomSkipped:!1,bufBytesStart:0,castField:t.cast_function,commenting:!1,delimiterBufPrevious:void 0,delimiterDiscovered:!1,error:void 0,enabled:t.from_line===1,escaping:!1,escapeIsQuote:Buffer.isBuffer(t.escape)&&Buffer.isBuffer(t.quote)&&Buffer.compare(t.escape,t.quote)===0,expectedRecordLength:Array.i
`,a).length:l,p?(c===null?0:c.length)+u.length:0,p?u.length+l:0);return b<M},"__needMoreData"),parse:i(function(n,o,s,a){let{bom:c,comment_no_infix:u,delimiter_auto:p,encoding:A,from_line:l,ltrim:b,max_record_size:M,raw:z,relax_quotes:O,rtrim:y,skip_empty_lines:E,to:B,to_line:q}=this.options,{comment:D,escape:F,quote:x,record_delimiter:_}=this.options,{bomSkipped:ce,delimiterDiscovered:ye,delimiterBufPrevious:Ne,rawBuffer:De,escapeIsQuote:ze}=this.state;if(!ye&&p){let j;if(Ne===void 0?j=n:Ne!==void 0&&n===void 0?j=Ne:j=Buffer.concat([Ne,n]),n=void 0,o||j.length>p.size)this.options.delimiter=[Buffer.from(R4e(j,this.options.delimiter_auto))],this.state.previousBuf=j,this.state.delimiterBufPrevious=void 0,this.state.delimiterDiscovered=!0;else{this.state.delimiterBufPrevious=j;return}}let{previousBuf:Fe}=this.state,k;if(Fe===void 0)if(n===void 0){a();return}else k=n;else Fe!==void 0&&n===void 0?k=Fe:k=Buffer.concat([Fe,n]);if(ce===!1)if(c===!1)this.state.bomSkipped=!0;else if(k.length<3){if(o===!1){this.state.previousBuf=k;return}}else{for(let j in Ld)if(Ld[j].compare(k,0,Ld[j].length)===0){let $e=Ld[j].length;this.state.bufBytesStart+=$e,k=k.slice($e);let m1=vd({...this.original_options,encoding:j});for(let he in m1)this.options[he]=m1[he];({comment:D,escape:F,quote:x}=this.options);break}this.state.bomSkipped=!0}let Te=k.length,T;for(T=0;T<Te&&!this.__needMoreData(T,Te,o);T++){if(this.state.wasRowDelimiter===!0&&(this.info.lines++,this.state.wasRowDelimiter=!1),q!==-1&&this.info.lines>q){this.state.stop=!0,a();return}this.state.quoting===!1&&_.length===0&&this.__autoDiscoverRecordDelimiter(k,T)&&(_=this.options.record_delimiter);let j=k[T];if(z===!0&&De.append(j),(j===Q40||j===P40)&&this.state.wasRowDelimiter===!1&&(this.state.wasRowDelimiter=!0),this.state.escaping===!0)this.state.escaping=!1;else{if(F!==null&&this.state.quoting===!0&&this.__isEscape(k,T,j)&&T+F.length<Te)if(ze){if(this.__isQuote(k,T+F.length)){this.state.escaping=!0,T+=F.length-1;continue}}else{this.state.escaping=!0,T+=F.length-1;continue}if(this.state.commenting===!1&&this.__isQuote(k,T))if(this.state.quoting===!0){let he=k[T+x.length],q0=y&&this.__isCharTrimable(k,T+x.length),je=D!==null&&this.__compareBytes(D,k,T+x.length,he),X=this.__isDelimiter(k,T+x.length,he),Rt=_.length===0?this.__autoDiscoverRecordDelimiter(k,T+x.length):this.__isRecordDelimiter(he,k,T+x.length);if(F!==null&&this.__isEscape(k,T,j)&&this.__isQuote(k,T+F.length))T+=F.length-1;else if(!he||X||Rt||je||q0){this.state.quoting=!1,this.state.wasQuoting=!0,T+=x.length-1;continue}else if(O===!1){let Nt=this.__error(new Ye("CSV_INVALID_CLOSING_QUOTE",["Invalid Closing Quote:",`got "${String.fromCharCode(he)}"`,`at line ${this.info.lines}`,"instead of delimiter, record delimiter, trimable character","(if activated) or comment"],this.options,this.__infoField()));if(Nt!==void 0)return Nt}else this.state.quoting=!1,this.state.wasQuoting=!0,this.state.field.prepend(x),T+=x.length-1}else if(this.state.field.length!==0){if(O===!1){let he=this.__infoField(),q0=Object.keys(Ld).map(X=>Ld[X].equals(this.state.field.toString())?X:!1).filter(Boolean)[0],je=this.__error(new Ye("INVALID_OPENING_QUOTE",["Invalid Opening Quote:",`a quote is found on field ${JSON.stringify(he.column)} at line ${he.lines}, value is ${JSON.stringify(this.state.field.toString(A))}`,q0?`(${q0} bom)`:void 0],this.options,he,{field:this.state.field}));if(je!==void 0)return je}}else{this.state.quoting=!0,T+=x.length-1;continue}if(this.state.quoting===!1){let he=this.__isRecordDelimiter(j,k,T);if(he!==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(),T+=he-1;continue}if(E===!0&&this.state.wasQuoting===!1&&this.state.record.length===0&&this.state.field.length===0){this.info.empty_lines++,T+=he-1;continue}this.info.bytes=this.state.bufBytesStart+T;let X=this.__onField();if(X!==void 0)return
`,s),Buffer.from(`
`,s),Buffer.from("\r",s)];e:for(let c=0;c<a.length;c++){let u=a[c].length;for(let p=0;p<u;p++)if(a[c][p]!==n[o+p])continue e;return this.options.record_delimiter.push(a[c]),this.state.recordDelimiterMaxLength=a[c].length,a[c].length}return 0},"__autoDiscoverRecordDelimiter"),__error:i(function(n){let{encoding:o,raw:s,skip_records_with_error:a}=this.options,c=typeof n=="string"?new Error(n):n;if(a){if(this.state.recordHasError=!0,this.options.on_skip!==void 0)try{this.options.on_skip(c,s?this.state.rawBuffer.toString(o):void 0)}catch(u){return u}return}else return c},"__error"),__infoDataSet:i(function(){return{...this.info,columns:this.options.columns}},"__infoDataSet"),__infoRecord:i(function(){let{columns:n,raw:o,encoding:s}=this.options;return{...this.__infoDataSet(),bytes_records:this.info.bytes,error:this.state.error,header:n===!0,index:this.state.record.length,raw:o?this.state.rawBuffer.toString(s):void 0}},"__infoRecord"),__infoField:i(function(){let{columns:n}=this.options,o=Array.isArray(n),s=this.info.bytes_records;return{...this.__infoRecord(),bytes_records:s,column:o===!0?n.length>this.state.record.length?n[this.state.record.length].name:null:this.state.record.length,quoting:this.state.wasQuoting}},"__infoField")}},"transform");var nA=i(function(t,e={}){typeof t=="string"&&(t=Buffer.from(t));let r=e&&e.objname?Object.create(null):[],n=yD(e),o=i(c=>{n.options.objname===void 0?r.push(c):r[c[0]]=c[1]},"push"),s=i(()=>{},"close"),a=n.parse(t,!0,o,s);if(a!==void 0)throw a;return r},"parse");function S4e(t){let e=[];if(t.length==1){let r=!1,n=nA(t[0],{relaxColumnCount:!0,skipEmptyLines:!0})[0];for(let o of n){let s=o.toString().split("=").map(a=>a.trim());if(s.length==1)e.push({name:s[0],enable:!0});else{r=!0;break}}if(!r)return w4e(e)}e=[];for(let r of t){let n={name:"",enable:!0},o=nA(r,{relaxColumnCount:!0,skipEmptyLines:!0})[0];for(let s of o){let a=s.toString().split("=").map(c=>c.trim());if(a.length==1)n.name=a[0];else{let c=a[0].toLowerCase(),u=a[1];switch(c){case"name":{n.name=u;break}case"enable":{if(!["true","false"].includes(u))throw new Error(`Invalid enable attribute value: ${r}`);n.enable=/true/i.test(u);break}default:throw new Error(`Unknown image attribute: ${r}`)}}}if(n.name.length==0)throw new Error(`Image name attribute empty: ${r}`);e.push(n)}return w4e(e)}i(S4e,"Transform");function w4e(t){Iu("Processing images input");for(let e of t)S(`name=${e.name},enable=${e.enable}`);return Ru(),t}i(w4e,"output");var Z7=(u=>(u.Schedule="schedule",u.Semver="semver",u.Pep440="pep440",u.Match="match",u.Edge="edge",u.Ref="ref",u.Raw="raw",u.Sha="sha",u))(Z7||{}),BD=(n=>(n.Branch="branch",n.Tag="tag",n.PR="pr",n))(BD||{}),qD=(r=>(r.Short="short",r.Long="long",r))(qD||{}),K7=class{static{i(this,"Tag")}type;attrs;constructor(){this.attrs={}}toString(){let e=[`type=${this.type}`];for(let r in this.attrs)e.push(`${r}=${this.attrs[r]}`);return e.join(",")}},U40={schedule:"1000",semver:"900",pep440:"900",match:"800",edge:"700",ref:"600",raw:"200",sha:"100"};function F4e(t){let e=[];t.length==0&&(t=["type=schedule","type=ref,event=branch","type=ref,event=tag","type=ref,event=pr"]);for(let n of t)e.push(G40(n));let r=e.sort((n,o)=>Number(n.attrs.priority)<Number(o.attrs.priority)?1:Number(n.attrs.priority)>Number(o.attrs.priority)?-1:0);Iu("Processing tags input");for(let n of r)S(n.toString());return Ru(),r}i(F4e,"Transform");function G40(t){let e=nA(t,{relaxColumnCount:!0,skipEmptyLines:!0})[0],r=new K7;for(let n of e){let o=n.toString().split(/(?<=^[^=]+?)=/).map(s=>s.trim());if(o.length==1)r.attrs.value=o[0];else{let s=o[0].toLowerCase(),a=o[1];switch(s){case"type":{if(!Object.values(Z7).includes(a))throw new Error(`Unknown tag type attribute: ${a}`);r.type=a;break}default:{r.attrs[s]=a;break}}}}switch(r.type==null&&(r.type="raw"),r.type){case"schedule":{Object.prototype.hasOwnProperty.call(r.attrs,"pattern")||(r.attrs.pattern="nightly");break}case"semver":case"pep440":{if(!Object.prototype.hasOwnProperty.call(r.attrs,"pattern"))throw new Error(`Missing pattern attribute for ${t}`);Object.prototype.hasOwnProperty.
/*! Bundled license information:
undici/lib/web/fetch/body.js:
(*! formdata-polyfill. MIT License. Jimmy Wärting <https://jimmy.warting.se/opensource> *)
undici/lib/web/websocket/frame.js:
(*! ws. MIT License. Einar Otto Stangvik <einaros@gmail.com> *)
tmp/lib/tmp.js:
(*!
* Tmp
*
* Copyright (c) 2011-2017 KARASZI Istvan <github@spam.raszi.hu>
*
* MIT Licensed
*)
moment/moment.js:
(*! moment.js *)
(*! version : 2.30.1 *)
(*! authors : Tim Wood, Iskren Chernev, Moment.js contributors *)
(*! license : MIT *)
(*! momentjs.com *)
moment-timezone/moment-timezone.js:
(*! moment-timezone.js *)
2026-05-28 08:28:29 +00:00
(*! version : 0.6.2 *)
(*! Copyright (c) JS Foundation and other contributors *)
(*! license : MIT *)
(*! github.com/moment/moment-timezone *)
xregexp/lib/xregexp.js:
(*!
* XRegExp 4.4.1
* <xregexp.com>
* Steven Levithan (c) 2007-present MIT License
*)
xregexp/lib/addons/build.js:
(*!
* XRegExp.build 4.4.1
* <xregexp.com>
* Steven Levithan (c) 2012-present MIT License
*)
xregexp/lib/addons/matchrecursive.js:
(*!
* XRegExp.matchRecursive 4.4.1
* <xregexp.com>
* Steven Levithan (c) 2009-present MIT License
*)
xregexp/lib/addons/unicode-base.js:
(*!
* XRegExp Unicode Base 4.4.1
* <xregexp.com>
* Steven Levithan (c) 2008-present MIT License
*)
xregexp/lib/addons/unicode-blocks.js:
(*!
* XRegExp Unicode Blocks 4.4.1
* <xregexp.com>
* Steven Levithan (c) 2010-present MIT License
* Unicode data by Mathias Bynens <mathiasbynens.be>
*)
xregexp/lib/addons/unicode-categories.js:
(*!
* XRegExp Unicode Categories 4.4.1
* <xregexp.com>
* Steven Levithan (c) 2010-present MIT License
* Unicode data by Mathias Bynens <mathiasbynens.be>
*)
xregexp/lib/addons/unicode-properties.js:
(*!
* XRegExp Unicode Properties 4.4.1
* <xregexp.com>
* Steven Levithan (c) 2012-present MIT License
* Unicode data by Mathias Bynens <mathiasbynens.be>
*)
xregexp/lib/addons/unicode-scripts.js:
(*!
* XRegExp Unicode Scripts 4.4.1
* <xregexp.com>
* Steven Levithan (c) 2010-present MIT License
* Unicode data by Mathias Bynens <mathiasbynens.be>
*)
@octokit/request-error/dist-src/index.js:
(* v8 ignore else -- @preserve -- Bug with vitest coverage where it sees an else branch that doesn't exist *)
@octokit/request/dist-bundle/index.js:
(* v8 ignore next -- @preserve *)
(* v8 ignore else -- @preserve *)
*/
//# sourceMappingURL=index.cjs.map