Files
metadata-action/dist/index.cjs

378 lines
3.5 MiB
JavaScript
Raw Normal View History

2026-05-28 10:25:16 +00:00
var AJe=Object.create;var LW=Object.defineProperty;var dJe=Object.getOwnPropertyDescriptor;var fJe=Object.getOwnPropertyNames;var hJe=Object.getPrototypeOf,bJe=Object.prototype.hasOwnProperty;var MJe=(t,e)=>()=>(t&&(e=t(t=0)),e);var f=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),Nne=(t,e)=>{for(var r in e)LW(t,r,{get:e[r],enumerable:!0})},mJe=(t,e,r,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of fJe(e))!bJe.call(t,n)&&n!==r&&LW(t,n,{get:()=>e[n],enumerable:!(s=dJe(e,n))||s.enumerable});return t};var F=(t,e,r)=>(r=t!=null?AJe(hJe(t)):{},mJe(e||!t||!t.__esModule?LW(r,"default",{value:t,enumerable:!0}):r,t));var Lne=f(Eh=>{"use strict";var Nut=require("net"),CJe=require("tls"),GW=require("http"),xne=require("https"),BJe=require("events"),vut=require("assert"),DJe=require("util");Eh.httpOverHttp=qJe;Eh.httpsOverHttp=IJe;Eh.httpOverHttps=RJe;Eh.httpsOverHttps=wJe;function qJe(t){var e=new zu(t);return e.request=GW.request,e}function IJe(t){var e=new zu(t);return e.request=GW.request,e.createSocket=Wne,e.defaultPort=443,e}function RJe(t){var e=new zu(t);return e.request=xne.request,e}function wJe(t){var e=new zu(t);return e.request=xne.request,e.createSocket=Wne,e.defaultPort=443,e}function zu(t){var e=this;e.options=t||{},e.proxyOptions=e.options.proxy||{},e.maxSockets=e.options.maxSockets||GW.Agent.defaultMaxSockets,e.requests=[],e.sockets=[],e.on("free",function(s,n,i,o){for(var a=_ne(n,i,o),c=0,u=e.requests.length;c<u;++c){var p=e.requests[c];if(p.host===a.host&&p.port===a.port){e.requests.splice(c,1),p.request.onSocket(s);return}}s.destroy(),e.removeSocket(s)})}DJe.inherits(zu,BJe.EventEmitter);zu.prototype.addRequest=function(e,r,s,n){var i=this,o=HW({request:e},i.options,_ne(r,s,n));if(i.sockets.length>=this.maxSockets){i.requests.push(o);return}i.createSocket(o,function(a){a.on("free",c),a.on("close",u),a.on("agentRemove",u),e.onSocket(a);function c(){i.emit("free",a,o)}function u(p){i.removeSocket(a),a.removeListener("free",c),a.removeListener("close",u),a.removeListener("agentRemove",u)}})};zu.prototype.createSocket=function(e,r){var s=this,n={};s.sockets.push(n);var i=HW({},s.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:!1,headers:{host:e.host+":"+e.port}});e.localAddress&&(i.localAddress=e.localAddress),i.proxyAuth&&(i.headers=i.headers||{},i.headers["Proxy-Authorization"]="Basic "+new Buffer(i.proxyAuth).toString("base64")),bl("making CONNECT request");var o=s.request(i);o.useChunkedEncodingByDefault=!1,o.once("response",a),o.once("upgrade",c),o.once("connect",u),o.once("error",p),o.end();function a(l){l.upgrade=!0}function c(l,A,h){process.nextTick(function(){u(l,A,h)})}function u(l,A,h){if(o.removeAllListeners(),A.removeAllListeners(),l.statusCode!==200){bl("tunneling socket could not be established, statusCode=%d",l.statusCode),A.destroy();var M=new Error("tunneling socket could not be established, statusCode="+l.statusCode);M.code="ECONNRESET",e.request.emit("error",M),s.removeSocket(n);return}if(h.length>0){bl("got illegal response body from proxy"),A.destroy();var M=new Error("got illegal response body from proxy");M.code="ECONNRESET",e.request.emit("error",M),s.removeSocket(n);return}return bl("tunneling connection has established"),s.sockets[s.sockets.indexOf(n)]=A,r(A)}function p(l){o.removeAllListeners(),bl(`tunneling socket could not be established, cause=%s
`,l.message,l.stack);var A=new Error("tunneling socket could not be established, cause="+l.message);A.code="ECONNRESET",e.request.emit("error",A),s.removeSocket(n)}};zu.prototype.removeSocket=function(e){var r=this.sockets.indexOf(e);if(r!==-1){this.sockets.splice(r,1);var s=this.requests.shift();s&&this.createSocket(s,function(n){s.request.onSocket(n)})}};function Wne(t,e){var r=this;zu.prototype.createSocket.call(r,t,function(s){var n=t.request.getHeader("host"),i=HW({},r.options,{socket:s,servername:n?n.replace(/:.*$/,""):t.host}),o=CJe.connect(0,i);r.sockets[r.sockets.indexOf(s)]=o,e(o)})}function _ne(t,e,r){return typeof t=="string"?{host:t,port:e,localAddress:r}:t}function HW(t){for(var e=1,r=arguments.length;e<r;++e){var s=arguments[e];if(typeof s=="object")for(var n=Object.keys(s),i=0,o=n.length;i<o;++i){var a=n[i];s[a]!==void 0&&(t[a]=s[a])}}return t}var bl;process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)?bl=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)}:bl=function(){};Eh.debug=bl});var DB=f((Tut,Qne)=>{Qne.exports=Lne()});var dt=f((xut,Pne)=>{Pne.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 O0=f((Wut,Aie)=>{"use strict";var kne=Symbol.for("undici.error.UND_ERR"),ft=class extends Error{constructor(e){super(e),this.name="UndiciError",this.code="UND_ERR"}static[Symbol.hasInstance](e){return e&&e[kne]===!0}[kne]=!0},Une=Symbol.for("undici.error.UND_ERR_CONNECT_TIMEOUT"),XW=class extends ft{constructor(e){super(e),this.name="ConnectTimeoutError",this.message=e||"Connect Timeout Error",this.code="UND_ERR_CONNECT_TIMEOUT"}static[Symbol.hasInstance](e){return e&&e[Une]===!0}[Une]=!0},Gne=Symbol.for("undici.error.UND_ERR_HEADERS_TIMEOUT"),VW=class extends ft{constructor(e){super(e),this.name="HeadersTimeo
`)||t.includes("\r")||t.includes("\0"))===!1}function XZe(t,e){let{headersList:r}=e,s=(r.get("referrer-policy",!0)??"").split(","),n="";if(s.length>0)for(let i=s.length;i!==0;i--){let o=s[i-1].trim();if(wZe.has(o)){n=o;break}}n!==""&&(t.referrerPolicy=n)}function VZe(){return"allowed"}function jZe(){return"success"}function $Ze(){return"success"}function YZe(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}function JZe(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&&P_(t.origin)&&!P_(gz(t))&&(e=null);break;case"same-origin":VB(t,gz(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}function Nh(t,e){return t}function KZe(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:Nh(t.domainLookupStartTime,r),domainLookupEndTime:Nh(t.domainLookupEndTime,r),connectionStartTime:Nh(t.connectionStartTime,r),connectionEndTime:Nh(t.connectionEndTime,r),secureConnectionStartTime:Nh(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}function ZZe(t){return Nh(TZe.now(),t)}function ee0(t){return{startTime:t.startTime??0,redirectStartTime:0,redirectEndTime:0,postRedirectStartTime:t.startTime??0,finalServiceWorkerStartTime:0,finalNetworkResponseStartTime:0,finalNetworkRequestStartTime:0,endTime:0,encodedBodySize:0,decodedBodySize:0,finalConnectionTimingInfo:null}}function qoe(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function te0(t){return{referrerPolicy:t.referrerPolicy}}function re0(t){let e=t.referrerPolicy;Md(e);let r=null;if(t.referrer==="client"){let a=Ooe();if(!a||a.origin==="null")return"no-referrer";r=new URL(a)}else t.referrer instanceof URL&&(r=t.referrer);let s=Q_(r),n=Q_(r,!0);s.toString().length>4096&&(s=n);let i=VB(t,s),o=mz(s)&&!mz(t.url);switch(e){case"origin":return n??Q_(r,!0);case"unsafe-url":return s;case"same-origin":return i?n:"no-referrer";case"origin-when-cross-origin":return i?s:n;case"strict-origin-when-cross-origin":{let a=gz(t);return VB(s,a)?s:mz(s)&&!mz(a)?"no-referrer":n}default:return o?"no-referrer":n}}function Q_(t,e){return Md(t instanceof URL),t=new URL(t),t.protocol==="file:"||t.protocol==="about:"||t.protocol==="blank:"?"no-referrer":(t.username="",t.password="",t.hash="",e&&(t.pathname="",t.search=""),t)}function mz(t){if(!(t instanceof URL))return!1;if(t.href==="about:blank"||t.href==="about:srcdoc"||t.protocol==="data:"||t.protocol==="file:")return!0;return e(t.origin);function e(r){if(r==null||r==="null")return!1;let s=new URL(r);return!!(s.protocol==="https:"||s.protocol==="wss:"||/^127(?:\.[0-9]+){0,2}\.[0-9]+$|^\[(?:0*:)*?:?0*1\]$/.test(s.hostname)||s.hostname==="localhost"||s.hostname.includes("localhost.")||s.hostname.endsWith(".localhost"))}}function se0(t,e){if(XB===void 0)return!0;let r=Ioe(e);if(r==="no metadata"||r.length===0)return!0;let s=ie0(r),n=oe0(r,s);for(let i of n){let o=i.algo,a=i.hash,c=XB.createHash(o).update(t).digest("base64");if(c[c.length-1]==="="&&(c[c.length-2]==="="?c=c.slice(0,-2):c=c.slice(0,-1)),ae0(c,a))return!0}return!1}var ne0=/(?<algo>sha256|sha384|sha512)-((?<hash>[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;function Ioe(t){let e=[],r=!0;for(let s of t.split(" ")){r=!1;let n=ne0.exec(s);if(n===null||n.groups===void 0||n.groups.algo===void 0)continue;let i=n.groups.algo.toLowerCase();yoe.includes(i)&&e.push(n.groups)}return r===!0?"no metadata":e}function ie0(t){let e=t[0].algo;if(e[3]==="5")return e;for(let r=1;r<t.length;++r){let s=t[r];if(s.algo[3]==="5"){e="sha512";break}else{if(e[3]==="3")continue;s.algo[3]==="3"&&(e="sha384")}}return e}function oe0(t,e){if(t.length===1)return t;let r=0;for(let s=0;s<t.l
`);function Ge0(t){for(let e=0;e<t.length;++e)if((t.charCodeAt(e)&-128)!==0)return!1;return!0}function He0(t){let e=t.length;if(e<27||e>70)return!1;for(let r=0;r<e;++r){let s=t.charCodeAt(r);if(!(s>=48&&s<=57||s>=65&&s<=90||s>=97&&s<=122||s===39||s===45||s===95))return!1}return!0}function Xe0(t,e){$B(e!=="failure"&&e.essence==="multipart/form-data");let r=e.parameters.get("boundary");if(r===void 0)return"failure";let s=Buffer.from(`--${r}`,"utf8"),n=[],i={position:0};for(;t[i.position]===13&&t[i.position+1]===10;)i.position+=2;let o=t.length;for(;t[o-1]===10&&t[o-2]===13;)o-=2;for(o!==t.length&&(t=t.subarray(0,o));;){if(t.subarray(i.position,i.position+s.length).equals(s))i.position+=s.length;else return"failure";if(i.position===t.length-2&&YB(t,ke0,i)||i.position===t.length-4&&YB(t,Ue0,i))return n;if(t[i.position]!==13||t[i.position+1]!==10)return"failure";i.position+=2;let a=Ve0(t,i);if(a==="failure")return"failure";let{name:c,filename:u,contentType:p,encoding:l}=a;i.position+=2;let A;{let M=t.indexOf(s.subarray(2),i.position);if(M===-1)return"failure";A=t.subarray(i.position,M-4),i.position+=A.length,l==="base64"&&(A=Buffer.from(A.toString(),"base64"))}if(t[i.position]!==13||t[i.position+1]!==10)return"failure";i.position+=2;let h;u!==null?(p??="text/plain",Ge0(p)||(p=""),h=new Qe0([A],u,{type:p})):h=Te0(Buffer.from(A)),$B(Poe(c)),$B(typeof h=="string"&&Poe(h)||We0(h)),n.push(_e0(c,h,u))}}function Ve0(t,e){let r=null,s=null,n=null,i=null;for(;;){if(t[e.position]===13&&t[e.position+1]===10)return r===null?"failure":{name:r,filename:s,contentType:n,encoding:i};let o=Fh(a=>a!==10&&a!==13&&a!==58,t,e);if(o=j_(o,!0,!0,a=>a===9||a===32),!xe0.test(o.toString())||t[e.position]!==58)return"failure";switch(e.position++,Fh(a=>a===32||a===9,t,e),Fe0(o)){case"content-disposition":{if(r=s=null,!YB(t,Pe0,e)||(e.position+=17,r=Goe(t,e),r===null))return"failure";if(YB(t,Uoe,e)){let a=e.position+Uoe.length;if(t[a]===42&&(e.position+=1,a+=1),t[a]!==61||t[a+1]!==34||(e.position+=12,s=Goe(t,e),s===null))return"failure"}break}case"content-type":{let a=Fh(c=>c!==10&&c!==13,t,e);a=j_(a,!1,!0,c=>c===9||c===32),n=koe(a);break}case"content-transfer-encoding":{let a=Fh(c=>c!==10&&c!==13,t,e);a=j_(a,!1,!0,c=>c===9||c===32),i=koe(a);break}default:Fh(a=>a!==10&&a!==13,t,e)}if(t[e.position]!==13&&t[e.position+1]!==10)return"failure";e.position+=2}}function Goe(t,e){$B(t[e.position-1]===34);let r=Fh(s=>s!==10&&s!==13&&s!==34,t,e);return t[e.position]!==34?null:(e.position++,r=new TextDecoder().decode(r).replace(/%0A/ig,`
`).replace(/%0D/ig,"\r").replace(/%22/g,'"'),r)}function Fh(t,e,r){let s=r.position;for(;s<e.length&&t(e[s]);)++s;return e.subarray(r.position,r.position=s)}function j_(t,e,r,s){let n=0,i=t.length-1;if(e)for(;n<t.length&&s(t[n]);)n++;if(r)for(;i>0&&s(t[i]);)i--;return n===0&&i===t.length-1?t:t.subarray(n,i+1)}function YB(t,e,r){if(t.length<e.length)return!1;for(let s=0;s<e.length;s++)if(e[s]!==t[r.position+s])return!1;return!0}Hoe.exports={multipartFormDataParser:Xe0,validateBoundary:He0}});var Wh=f((cpt,rae)=>{"use strict";var Ez=i0(),{ReadableStreamFrom:je0,isBlobLike:Voe,isReadableStreamLike:$e0,readableStreamClose:Ye0,createDeferredPromise:Je0,fullyReadBody:Ke0,extractMimeType:Ze0,utf8DecodeBytes:Yoe}=Dn(),{FormData:joe}=Oz(),{kState:xh}=Ml(),{webidl:e00}=lr(),{Blob:t00}=require("node:buffer"),$_=require("node:assert"),{isErrored:Joe,isDisturbed:r00}=require("node:stream"),{isArrayBuffer:s00}=require("node:util/types"),{serializeAMimeType:n00}=Qs(),{multipartFormDataParser:i00}=Xoe(),Y_;try{let t=require("node:crypto");Y_=e=>t.randomInt(0,e)}catch{Y_=t=>Math.floor(Math.random(t))}var JB=new TextEncoder;function o00(){}var Koe=globalThis.FinalizationRegistry&&process.version.indexOf("v18")!==0,Zoe;Koe&&(Zoe=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!r00(e)&&!Joe(e)&&e.cancel("Response object has been garbage collected").catch(o00)}));function eae(t,e=!1){let r=null;t instanceof ReadableStream?r=t:Voe(t)?r=t.stream():r=new ReadableStream({async pull(c){let u=typeof n=="string"?JB.encode(n):n;u.byteLength&&c.enqueue(u),queueMicrotask(()=>Ye0(c))},start(){},type:"bytes"}),$_($e0(r));let s=null,n=null,i=null,o=null;if(typeof t=="string")n=t,o="text/plain;charset=UTF-8";else if(t instanceof URLSearchParams)n=t.toString(),o="application/x-www-form-urlencoded;charset=UTF-8";else if(s00(t))n=new Uint8Array(t.slice());else if(ArrayBuffer.isView(t))n=new Uint8Array(t.buffer.slice(t.byteOffset,t.byteOffset+t.byteLength));else if(Ez.isFormDataLike(t)){let c=`----formdata-undici-0${`${Y_(1e11)}`.padStart(11,"0")}`,u=`--${c}\r
Content-Disposition: form-data`;let p=y=>y.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22"),l=y=>y.replace(/\r?\n|\r/g,`\r
2026-05-28 10:25:16 +00:00
`),A=[],h=new Uint8Array([13,10]);i=0;let M=!1;for(let[y,O]of t)if(typeof O=="string"){let B=JB.encode(u+`; name="${p(l(y))}"\r
\r
${l(O)}\r
2026-05-28 10:25:16 +00:00
`);A.push(B),i+=B.byteLength}else{let B=JB.encode(`${u}; name="${p(l(y))}"`+(O.name?`; filename="${p(O.name)}"`:"")+`\r
Content-Type: ${O.type||"application/octet-stream"}\r
\r
2026-05-28 10:25:16 +00:00
`);A.push(B,O,h),typeof O.size=="number"?i+=B.byteLength+O.size+h.byteLength:M=!0}let g=JB.encode(`--${c}--\r
`);A.push(g),i+=g.byteLength,M&&(i=null),n=t,s=async function*(){for(let y of A)y.stream?yield*y.stream():yield y},o=`multipart/form-data; boundary=${c}`}else if(Voe(t))n=t,i=t.size,t.type&&(o=t.type);else if(typeof t[Symbol.asyncIterator]=="function"){if(e)throw new TypeError("keepalive");if(Ez.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=t instanceof ReadableStream?t:je0(t)}if((typeof n=="string"||Ez.isBuffer(n))&&(i=Buffer.byteLength(n)),s!=null){let c;r=new ReadableStream({async start(){c=s(t)[Symbol.asyncIterator]()},async pull(u){let{value:p,done:l}=await c.next();if(l)queueMicrotask(()=>{u.close(),u.byobRequest?.respond(0)});else if(!Joe(r)){let A=new Uint8Array(p);A.byteLength&&u.enqueue(A)}return u.desiredSize>0},async cancel(u){await c.return()},type:"bytes"})}return[{stream:r,source:n,length:i},o]}function a00(t,e=!1){return t instanceof ReadableStream&&($_(!Ez.isDisturbed(t),"The body has already been consumed."),$_(!t.locked,"The stream is locked.")),eae(t,e)}function c00(t,e){let[r,s]=e.stream.tee();return e.stream=r,{stream:s,length:e.length,source:e.source}}function u00(t){if(t.aborted)throw new DOMException("The operation was aborted.","AbortError")}function p00(t){return{blob(){return Th(this,r=>{let s=$oe(this);return s===null?s="":s&&(s=n00(s)),new t00([r],{type:s})},t)},arrayBuffer(){return Th(this,r=>new Uint8Array(r).buffer,t)},text(){return Th(this,Yoe,t)},json(){return Th(this,A00,t)},formData(){return Th(this,r=>{let s=$oe(this);if(s!==null)switch(s.essence){case"multipart/form-data":{let n=i00(r,s);if(n==="failure")throw new TypeError("Failed to parse body as FormData.");let i=new joe;return i[xh]=n,i}case"application/x-www-form-urlencoded":{let n=new URLSearchParams(r.toString()),i=new joe;for(let[o,a]of n)i.append(o,a);return i}}throw new TypeError('Content-Type was not one of "multipart/form-data" or "application/x-www-form-urlencoded".')},t)},bytes(){return Th(this,r=>new Uint8Array(r),t)}}}function l00(t){Object.assign(t.prototype,p00(t))}async function Th(t,e,r){if(e00.brandCheck(t,r),tae(t))throw new TypeError("Body is unusable: Body has already been read");u00(t[xh]);let s=Je0(),n=o=>s.reject(o),i=o=>{try{s.resolve(e(o))}catch(a){n(a)}};return t[xh].body==null?(i(Buffer.allocUnsafe(0)),s.promise):(await Ke0(t[xh].body,i,n),s.promise)}function tae(t){let e=t[xh].body;return e!=null&&(e.stream.locked||Ez.isDisturbed(e.stream))}function A00(t){return JSON.parse(Yoe(t))}function $oe(t){let e=t[xh].headersList,r=Ze0(e);return r==="failure"?null:r}rae.exports={extractBody:eae,safelyExtractBody:a00,cloneBody:c00,mixinBody:l00,streamRegistry:Zoe,hasFinalizationRegistry:Koe,bodyUnusable:tae}});var dae=f((upt,Aae)=>{"use strict";var Ne=require("node:assert"),Ue=i0(),{channels:sae}=Ch(),J_=N_(),{RequestContentLengthMismatchError:md,ResponseContentLengthMismatchError:d00,RequestAbortedError:uae,HeadersTimeoutError:f00,HeadersOverflowError:h00,SocketError:sD,InformationalError:_h,BodyTimeoutError:b00,HTTPParserError:M00,ResponseExceededMaxSizeError:m00}=O0(),{kUrl:pae,kReset:Ps,kClient:tL,kParser:Rt,kBlocking:Bz,kRunning:Er,kPending:g00,kSize:nae,kWriting:gl,kQueue:Do,kNoRef:yz,kKeepAliveDefaultTimeout:z00,kHostHeader:O00,kPendingIdx:E00,kRunningIdx:bi,kError:Mi,kPipelining:tD,kSocket:Lh,kKeepAliveTimeoutValue:nD,kMaxHeadersSize:K_,kKeepAliveMaxTimeout:y00,kKeepAliveTimeoutThreshold:C00,kHeadersTimeout:B00,kBodyTimeout:D00,kStrictContentLength:rL,kMaxRequests:iae,kCounter:q00,kMaxResponseSize:I00,kOnError:R00,kResume:ml,kHTTPContext:lae}=dt(),Ea=Zie(),w00=Buffer.alloc(0),KB=Buffer[Symbol.species],ZB=Ue.addListener,S00=Ue.removeAllListeners,Z_;async function N00(){let t=process.env.JEST_WORKER_ID?T_():void 0,e;try{e=await WebAssembly.compile(roe())}catch{e=await WebAssembly.compile(t||T_())}return await WebAssembly.instantiate(e,{env:{wasm_on_url:(r,s,n)=>0,wasm_on_status:(r,s,n)=>{Ne(E1.ptr===r);let i=s-Ca+ya.byteOffset;return E1.onStatus(new KB(ya.buffer,i,n))||0},wasm_on_message_begin:r=>(Ne(E1.ptr===r),E1.onMessageBegin()||0),wasm_on_he
`;if(typeof n=="string"?g+=`host: ${n}\r
2026-05-28 10:25:16 +00:00
`:g+=t[O00],i?g+=`connection: upgrade\r
upgrade: ${i}\r
2026-05-28 10:25:16 +00:00
`:t[tD]&&!h[Ps]?g+=`connection: keep-alive\r
`:g+=`connection: close\r
2026-05-22 12:36:07 +00:00
`,Array.isArray(u))for(let y=0;y<u.length;y+=2){let O=u[y+0],B=u[y+1];if(Array.isArray(B))for(let I=0;I<B.length;I++)g+=`${O}: ${B[I]}\r
`;else g+=`${O}: ${B}\r
2026-05-28 10:25:16 +00:00
`}return sae.sendHeaders.hasSubscribers&&sae.sendHeaders.publish({request:e,headers:g,socket:h}),!c||A===0?aae(M,null,t,e,h,p,g,l):Ue.isBuffer(c)?aae(M,c,t,e,h,p,g,l):Ue.isBlobLike(c)?typeof c.stream=="function"?cae(M,c.stream(),t,e,h,p,g,l):L00(M,c,t,e,h,p,g,l):Ue.isStream(c)?_00(M,c,t,e,h,p,g,l):Ue.isIterable(c)?cae(M,c,t,e,h,p,g,l):Ne(!1),!0}function _00(t,e,r,s,n,i,o,a){Ne(i!==0||r[Er]===0,"stream body cannot be pipelined");let c=!1,u=new iD({abort:t,socket:n,request:s,contentLength:i,client:r,expectsPayload:a,header:o}),p=function(M){if(!c)try{!u.write(M)&&this.pause&&this.pause()}catch(g){Ue.destroy(this,g)}},l=function(){c||e.resume&&e.resume()},A=function(){if(queueMicrotask(()=>{e.removeListener("error",h)}),!c){let M=new uae;queueMicrotask(()=>h(M))}},h=function(M){if(!c){if(c=!0,Ne(n.destroyed||n[gl]&&r[Er]<=1),n.off("drain",l).off("error",h),e.removeListener("data",p).removeListener("end",h).removeListener("close",A),!M)try{u.end()}catch(g){M=g}u.destroy(M),M&&(M.code!=="UND_ERR_INFO"||M.message!=="reset")?Ue.destroy(e,M):Ue.destroy(e)}};e.on("data",p).on("end",h).on("error",h).on("close",A),e.resume&&e.resume(),n.on("drain",l).on("error",h),e.errorEmitted??e.errored?setImmediate(()=>h(e.errored)):(e.endEmitted??e.readableEnded)&&setImmediate(()=>h(null)),(e.closeEmitted??e.closed)&&setImmediate(A)}function aae(t,e,r,s,n,i,o,a){try{e?Ue.isBuffer(e)&&(Ne(i===e.byteLength,"buffer body must have content length"),n.cork(),n.write(`${o}content-length: ${i}\r
\r
2026-05-28 10:25:16 +00:00
`,"latin1"),n.write(e),n.uncork(),s.onBodySent(e),!a&&s.reset!==!1&&(n[Ps]=!0)):i===0?n.write(`${o}content-length: 0\r
\r
2026-05-28 10:25:16 +00:00
`,"latin1"):(Ne(i===null,"no body must not have content length"),n.write(`${o}\r
`,"latin1")),s.onRequestSent(),r[ml]()}catch(c){t(c)}}async function L00(t,e,r,s,n,i,o,a){Ne(i===e.size,"blob body must have content length");try{if(i!=null&&i!==e.size)throw new md;let c=Buffer.from(await e.arrayBuffer());n.cork(),n.write(`${o}content-length: ${i}\r
\r
2026-05-28 10:25:16 +00:00
`,"latin1"),n.write(c),n.uncork(),s.onBodySent(c),s.onRequestSent(),!a&&s.reset!==!1&&(n[Ps]=!0),r[ml]()}catch(c){t(c)}}async function cae(t,e,r,s,n,i,o,a){Ne(i!==0||r[Er]===0,"iterator body cannot be pipelined");let c=null;function u(){if(c){let A=c;c=null,A()}}let p=()=>new Promise((A,h)=>{Ne(c===null),n[Mi]?h(n[Mi]):c=A});n.on("close",u).on("drain",u);let l=new iD({abort:t,socket:n,request:s,contentLength:i,client:r,expectsPayload:a,header:o});try{for await(let A of e){if(n[Mi])throw n[Mi];l.write(A)||await p()}l.end()}catch(A){l.destroy(A)}finally{n.off("close",u).off("drain",u)}}var iD=class{constructor({abort:e,socket:r,request:s,contentLength:n,client:i,expectsPayload:o,header:a}){this.socket=r,this.request=s,this.contentLength=n,this.client=i,this.bytesWritten=0,this.expectsPayload=o,this.header=a,this.abort=e,r[gl]=!0}write(e){let{socket:r,request:s,contentLength:n,client:i,bytesWritten:o,expectsPayload:a,header:c}=this;if(r[Mi])throw r[Mi];if(r.destroyed)return!1;let u=Buffer.byteLength(e);if(!u)return!0;if(n!==null&&o+u>n){if(i[rL])throw new md;process.emitWarning(new md)}r.cork(),o===0&&(!a&&s.reset!==!1&&(r[Ps]=!0),n===null?r.write(`${c}transfer-encoding: chunked\r
`,"latin1"):r.write(`${c}content-length: ${n}\r
\r
`,"latin1")),n===null&&r.write(`\r
${u.toString(16)}\r
2026-05-28 10:25:16 +00:00
`,"latin1"),this.bytesWritten+=u;let p=r.write(e);return r.uncork(),s.onBodySent(e),p||r[Rt].timeout&&r[Rt].timeoutType===Qh&&r[Rt].timeout.refresh&&r[Rt].timeout.refresh(),p}end(){let{socket:e,contentLength:r,client:s,bytesWritten:n,expectsPayload:i,header:o,request:a}=this;if(a.onRequestSent(),e[gl]=!1,e[Mi])throw e[Mi];if(!e.destroyed){if(n===0?i?e.write(`${o}content-length: 0\r
\r
`,"latin1"):e.write(`${o}\r
`,"latin1"):r===null&&e.write(`\r
0\r
\r
2026-05-28 10:25:16 +00:00
`,"latin1"),r!==null&&n!==r){if(s[rL])throw new md;process.emitWarning(new md)}e[Rt].timeout&&e[Rt].timeoutType===Qh&&e[Rt].timeout.refresh&&e[Rt].timeout.refresh(),s[ml]()}}destroy(e){let{socket:r,client:s,abort:n}=this;r[gl]=!1,e&&(Ne(s[Er]<=1,"pipeline should only contain this request"),n(e))}};Aae.exports=F00});var Oae=f((ppt,zae)=>{"use strict";var mi=require("node:assert"),{pipeline:Q00}=require("node:stream"),u0=i0(),{RequestContentLengthMismatchError:oL,RequestAbortedError:fae,SocketError:Dz,InformationalError:aL}=O0(),{kUrl:oD,kReset:cD,kClient:Ph,kRunning:uD,kPending:P00,kQueue:zl,kPendingIdx:cL,kRunningIdx:qo,kError:Ro,kSocket:v1,kStrictContentLength:k00,kOnError:uL,kMaxConcurrentStreams:gae,kHTTP2Session:Io,kResume:Ol,kSize:U00,kHTTPContext:G00}=dt(),Du=Symbol("open streams"),hae,bae=!1,aD;try{aD=require("node:http2")}catch{aD={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:H00,HTTP2_HEADER_METHOD:X00,HTTP2_HEADER_PATH:V00,HTTP2_HEADER_SCHEME:j00,HTTP2_HEADER_CONTENT_LENGTH:$00,HTTP2_HEADER_EXPECT:Y00,HTTP2_HEADER_STATUS:J00}}=aD;function K00(t){let e=[];for(let[r,s]of Object.entries(t))if(Array.isArray(s))for(let n of s)e.push(Buffer.from(r),Buffer.from(n));else e.push(Buffer.from(r),Buffer.from(s));return e}async function Z00(t,e){t[v1]=e,bae||(bae=!0,process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"}));let r=aD.connect(t[oD],{createConnection:()=>e,peerMaxConcurrentStreams:t[gae]});r[Du]=0,r[Ph]=t,r[v1]=e,u0.addListener(r,"error",tt0),u0.addListener(r,"frameError",rt0),u0.addListener(r,"end",st0),u0.addListener(r,"goaway",nt0),u0.addListener(r,"close",function(){let{[Ph]:n}=this,{[v1]:i}=n,o=this[v1][Ro]||this[Ro]||new Dz("closed",u0.getSocketInfo(i));if(n[Io]=null,n.destroyed){mi(n[P00]===0);let a=n[zl].splice(n[qo]);for(let c=0;c<a.length;c++){let u=a[c];u0.errorRequest(n,u,o)}}}),r.unref(),t[Io]=r,e[Io]=r,u0.addListener(e,"error",function(n){mi(n.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[Ro]=n,this[Ph][uL](n)}),u0.addListener(e,"end",function(){u0.destroy(this,new Dz("other side closed",u0.getSocketInfo(this)))}),u0.addListener(e,"close",function(){let n=this[Ro]||new Dz("closed",u0.getSocketInfo(this));t[v1]=null,this[Io]!=null&&this[Io].destroy(n),t[cL]=t[qo],mi(t[uD]===0),t.emit("disconnect",t[oD],[t],n),t[Ol]()});let s=!1;return e.on("close",()=>{s=!0}),{version:"h2",defaultPipelining:1/0,write(...n){return ot0(t,...n)},resume(){et0(t)},destroy(n,i){s?queueMicrotask(i):e.destroy(n).on("close",i)},get destroyed(){return e.destroyed},busy(){return!1}}}function et0(t){let e=t[v1];e?.destroyed===!1&&(t[U00]===0&&t[gae]===0?(e.unref(),t[Io].unref()):(e.ref(),t[Io].ref()))}function tt0(t){mi(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[v1][Ro]=t,this[Ph][uL](t)}function rt0(t,e,r){if(r===0){let s=new aL(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[v1][Ro]=s,this[Ph][uL](s)}}function st0(){let t=new Dz("other side closed",u0.getSocketInfo(this[v1]));this.destroy(t),u0.destroy(this[v1],t)}function nt0(t){let e=this[Ro]||new Dz(`HTTP/2: "GOAWAY" frame received with code ${t}`,u0.getSocketInfo(this)),r=this[Ph];if(r[v1]=null,r[G00]=null,this[Io]!=null&&(this[Io].destroy(e),this[Io]=null),u0.destroy(this[v1],e),r[qo]<r[zl].length){let s=r[zl][r[qo]];r[zl][r[qo]++]=null,u0.errorRequest(r,s,e),r[cL]=r[qo]}mi(r[uD]===0),r.emit("disconnect",r[oD],[r],e),r[Ol]()}function it0(t){return t!=="GET"&&t!=="HEAD"&&t!=="OPTIONS"&&t!=="TRACE"&&t!=="CONNECT"}function ot0(t,e){let r=t[Io],{method:s,path:n,host:i,upgrade:o,expectContinue:a,signal:c,headers:u}=e,{body:p}=e;if(o)return u0.errorRequest(t,e,new Error("Upgrade not supported for H2")),!1;let l={};for(let R=0;R<u.length;R+=2){let N=u[R+0],T=u[R+1];if(Array.isArray(T))for(let W=0;W<T.length;W++)l[N]?l[N]+=`,${T[W]}`:l[N]=T[W];else l[N]=T}let A,{hostname:h,port:M}=t[oD];l[H00]=i||`${h}${M?`:${M}`:""}`,l[X00]=s;let g=R=>{e.aborted||e.completed||(R=R||new fae,u0.errorRequest(t,e,R),A!=null&&u0.destroy(A,R),u0.destroy(p,R),t[zl][t[qo]++]=null,t[Ol]())};try{e.onConnect(g)}catch(R){u0.errorRequest
`,this[Nt0]=c??3e5,this[St0]=n??3e5,this[vt0]=B??!0,this[Ft0]=R,this[dL]=T,this[yl]=null,this[Lt0]=j>-1?j:-1,this[Pt0]=K??100,this[Yt]=null,this[wo]=[],this[Iu]=0,this[So]=0,this[wz]=we=>hL(this,we),this[Qt0]=we=>vae(this,we)}get pipelining(){return this[dD]}set pipelining(e){this[dD]=e,this[wz](!0)}get[vz](){return this[wo].length-this[So]}get[Nz](){return this[So]-this[Iu]}get[Sz](){return this[wo].length-this[Iu]}get[Ct0](){return!!this[Yt]&&!this[Uh]&&!this[Yt].destroyed}get[AL](){return!!(this[Yt]?.busy(null)||this[Sz]>=(Nae(this)||1)||this[vz]>0)}[yt0](e){Fae(this),this.once("connect",e)}[_t0](e,r){let s=e.origin||this[Da].origin,n=new Mt0(s,e,r);return this[wo].push(n),this[zd]||(gd.bodyLength(n.body)==null&&gd.isIterable(n.body)?(this[zd]=1,queueMicrotask(()=>hL(this))):this[wz](!0)),this[zd]&&this[Cl]!==2&&this[AL]&&(this[Cl]=2),this[Cl]<2}async[xt0](){return new Promise(e=>{this[Sz]?this[yl]=e:e(null)})}async[Wt0](e){return new Promise(r=>{let s=this[wo].splice(this[So]);for(let i=0;i<s.length;i++){let o=s[i];gd.errorRequest(this,o,e)}let n=()=>{this[yl]&&(this[yl](),this[yl]=null),r(null)};this[Yt]?(this[Yt].destroy(e,n),this[Yt]=null):queueMicrotask(n),this[wz]()})}},Gt0=AD();function vae(t,e){if(t[Nz]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){qu(t[So]===t[Iu]);let r=t[wo].splice(t[Iu]);for(let s=0;s<r.length;s++){let n=r[s];gd.errorRequest(t,n,e)}qu(t[Sz]===0)}}async function Fae(t){qu(!t[Uh]),qu(!t[Yt]);let{host:e,hostname:r,protocol:s,port:n}=t[Da];if(r[0]==="["){let i=r.indexOf("]");qu(i!==-1);let o=r.substring(1,i);qu(Sae.isIP(o)),r=o}t[Uh]=!0,kh.beforeConnect.hasSubscribers&&kh.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:s,port:n,version:t[Yt]?.version,servername:t[El],localAddress:t[Rz]},connector:t[Iz]});try{let i=await new Promise((o,a)=>{t[Iz]({host:e,hostname:r,protocol:s,port:n,servername:t[El],localAddress:t[Rz]},(c,u)=>{c?a(c):o(u)})});if(t.destroyed){gd.destroy(i.on("error",Rae),new zt0);return}qu(i);try{t[Yt]=i.alpnProtocol==="h2"?await Ut0(t,i):await kt0(t,i)}catch(o){throw i.destroy().on("error",Rae),o}t[Uh]=!1,i[Tt0]=0,i[dL]=t[dL],i[Et0]=t,i[Dt0]=null,kh.connected.hasSubscribers&&kh.connected.publish({connectParams:{host:e,hostname:r,protocol:s,port:n,version:t[Yt]?.version,servername:t[El],localAddress:t[Rz]},connector:t[Iz],socket:i}),t.emit("connect",t[Da],[t])}catch(i){if(t.destroyed)return;if(t[Uh]=!1,kh.connectError.hasSubscribers&&kh.connectError.publish({connectParams:{host:e,hostname:r,protocol:s,port:n,version:t[Yt]?.version,servername:t[El],localAddress:t[Rz]},connector:t[Iz],error:i}),i.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(qu(t[Nz]===0);t[vz]>0&&t[wo][t[So]].servername===t[El];){let o=t[wo][t[So]++];gd.errorRequest(t,o,i)}else vae(t,i);t.emit("connectionError",t[Da],[t],i)}t[wz]()}function wae(t){t[Cl]=0,t.emit("drain",t[Da],[t])}function hL(t,e){t[zd]!==2&&(t[zd]=2,Ht0(t,e),t[zd]=0,t[Iu]>256&&(t[wo].splice(0,t[Iu]),t[So]-=t[Iu],t[Iu]=0))}function Ht0(t,e){for(;;){if(t.destroyed){qu(t[vz]===0);return}if(t[yl]&&!t[Sz]){t[yl](),t[yl]=null;return}if(t[Yt]&&t[Yt].resume(),t[AL])t[Cl]=2;else if(t[Cl]===2){e?(t[Cl]=1,queueMicrotask(()=>wae(t))):wae(t);continue}if(t[vz]===0||t[Nz]>=(Nae(t)||1))return;let r=t[wo][t[So]];if(t[Da].protocol==="https:"&&t[El]!==r.servername){if(t[Nz]>0)return;t[El]=r.servername,t[Yt]?.destroy(new gt0("servername changed"),()=>{t[Yt]=null,hL(t)})}if(t[Uh])return;if(!t[Yt]){Fae(t);return}if(t[Yt].destroyed||t[Yt].busy(r))return;!r.aborted&&t[Yt].write(r)?t[So]++:t[wo].splice(t[So],1)}}Tae.exports=fL});var bL=f((hpt,xae)=>{"use strict";var fD=class{constructor(){this.bottom=0,this.top=0,this.list=new Array(2048),this.next=null}isEmpty(){return this.top===this.bottom}isFull(){return(this.top+1&2047)===this.bottom}push(e){this.list[this.top]=e,this.top=this.top+1&2047}shift(){let e=this.list[this.bottom];return e===void 0?null:(this.list[this.bottom]=void 0,this.bottom=this.bottom+1&2047,e)}};xae.exports=class{constructor(){this.head=this.tail=new fD}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.
${s.count} ${s.noun} ${s.is} pending:
${e.format(r)}
2026-05-28 10:25:16 +00:00
`.trim())}};epe.exports=y8});var ND=f((Hpt,ipe)=>{"use strict";var rpe=Symbol.for("undici.globalDispatcher.1"),{InvalidArgumentError:Ns0}=O0(),vs0=Xh();npe()===void 0&&spe(new vs0);function spe(t){if(!t||typeof t.dispatch!="function")throw new Ns0("Argument agent must implement Agent");Object.defineProperty(globalThis,rpe,{value:t,writable:!0,enumerable:!1,configurable:!1})}function npe(){return globalThis[rpe]}ipe.exports={setGlobalDispatcher:spe,getGlobalDispatcher:npe}});var vD=f((Vpt,ope)=>{"use strict";ope.exports=class{#e;constructor(e){if(typeof e!="object"||e===null)throw new TypeError("handler must be an object");this.#e=e}onConnect(...e){return this.#e.onConnect?.(...e)}onError(...e){return this.#e.onError?.(...e)}onUpgrade(...e){return this.#e.onUpgrade?.(...e)}onResponseStarted(...e){return this.#e.onResponseStarted?.(...e)}onHeaders(...e){return this.#e.onHeaders?.(...e)}onData(...e){return this.#e.onData?.(...e)}onComplete(...e){return this.#e.onComplete?.(...e)}onBodySent(...e){return this.#e.onBodySent?.(...e)}}});var cpe=f((jpt,ape)=>{"use strict";var Fs0=lD();ape.exports=t=>{let e=t?.maxRedirections;return r=>function(n,i){let{maxRedirections:o=e,...a}=n;if(!o)return r(n,i);let c=new Fs0(r,o,n,i);return r(a,c)}}});var ppe=f(($pt,upe)=>{"use strict";var Ts0=ED();upe.exports=t=>e=>function(s,n){return e(s,new Ts0({...s,retryOptions:{...t,...s.retryOptions}},{handler:n,dispatch:e}))}});var Ape=f((Ypt,lpe)=>{"use strict";var xs0=i0(),{InvalidArgumentError:Ws0,RequestAbortedError:_s0}=O0(),Ls0=vD(),C8=class extends Ls0{#e=1024*1024;#t=null;#s=!1;#r=!1;#n=0;#i=null;#c=null;constructor({maxSize:e},r){if(super(r),e!=null&&(!Number.isFinite(e)||e<1))throw new Ws0("maxSize must be a number greater than 0");this.#e=e??this.#e,this.#c=r}onConnect(e){this.#t=e,this.#c.onConnect(this.#a.bind(this))}#a(e){this.#r=!0,this.#i=e}onHeaders(e,r,s,n){let o=xs0.parseHeaders(r)["content-length"];if(o!=null&&o>this.#e)throw new _s0(`Response size (${o}) larger than maxSize (${this.#e})`);return this.#r?!0:this.#c.onHeaders(e,r,s,n)}onError(e){this.#s||(e=this.#i??e,this.#c.onError(e))}onData(e){return this.#n=this.#n+e.length,this.#n>=this.#e&&(this.#s=!0,this.#r?this.#c.onError(this.#i):this.#c.onComplete([])),!0}onComplete(e){if(!this.#s){if(this.#r){this.#c.onError(this.reason);return}this.#c.onComplete(e)}}};function Qs0({maxSize:t}={maxSize:1024*1024}){return e=>function(s,n){let{dumpMaxSize:i=t}=s,o=new C8({maxSize:i},n);return e(s,o)}}lpe.exports=Qs0});var hpe=f((Jpt,fpe)=>{"use strict";var{isIP:Ps0}=require("node:net"),{lookup:ks0}=require("node:dns"),Us0=vD(),{InvalidArgumentError:rb,InformationalError:Gs0}=O0(),dpe=Math.pow(2,31)-1,B8=class{#e=0;#t=0;#s=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.#n}get full(){return this.#s.size===this.#t}runLookup(e,r,s){let n=this.#s.get(e.hostname);if(n==null&&this.full){s(null,e.origin);return}let i={affinity:this.affinity,dualStack:this.dualStack,lookup:this.lookup,pick:this.pick,...r.dns,maxTTL:this.#e,maxItems:this.#t};if(n==null)this.lookup(e,i,(o,a)=>{if(o||a==null||a.length===0){s(o??new Gs0("No DNS entries found"));return}this.setRecords(e,a);let c=this.#s.get(e.hostname),u=this.pick(e,c,i.affinity),p;typeof u.port=="number"?p=`:${u.port}`:e.port!==""?p=`:${e.port}`:p="",s(null,`${e.protocol}//${u.family===6?`[${u.address}]`:u.address}${p}`)});else{let o=this.pick(e,n,i.affinity);if(o==null){this.#s.delete(e.hostname),this.runLookup(e,r,s);return}let a;typeof o.port=="number"?a=`:${o.port}`:e.port!==""?a=`:${e.port}`:a="",s(null,`${e.protocol}//${o.family===6?`[${o.address}]`:o.address}${a}`)}}#r(e,r,s){ks0(e.hostname,{all:!0,family:this.dualStack===!1?this.affinity:0,order:"ipv4first"},(n,i)=>{if(n)return s(n);let o=new Map;for(let a of i)o.set(`${a.address}:${a.family}`,a);s(null,o.values())})}#n(e,r,s){let n=null,{records:i,offset:o}=r,a;if(this.dualStack?(s==null&&(o==null||o===dpe?(r.offset=0,s=4):(r
${i}`;break;case"retry":jAe(i)&&(r[n]=i);break;case"id":$Ae(i)&&(r[n]=i);break;case"event":i.length>0&&(r[n]=i);break}}processEvent(e){e.retry&&jAe(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id&&$Ae(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}}};YAe.exports={EventSourceStream:AQ}});var ide=f((Ilt,nde)=>{"use strict";var{pipeline:Za0}=require("node:stream"),{fetching:ec0}=jz(),{makeRequest:tc0}=ib(),{webidl:vu}=lr(),{EventSourceStream:rc0}=JAe(),{parseMIMEType:sc0}=Qs(),{createFastMessageEvent:nc0}=lb(),{isNetworkError:KAe}=Xz(),{delay:ic0}=pQ(),{kEnumerableProperty:xd}=i0(),{environmentSettingsObject:ZAe}=Dn(),ede=!1,tde=3e3,aO=0,rde=1,cO=2,oc0="anonymous",ac0="use-credentials",bb=class t extends EventTarget{#e={open:null,error:null,message:null};#t=null;#s=!1;#r=aO;#n=null;#i=null;#c;#a;constructor(e,r={}){super(),vu.util.markAsUncloneable(this);let s="EventSource constructor";vu.argumentLengthCheck(arguments,1,s),ede||(ede=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=vu.converters.USVString(e,s,"url"),r=vu.converters.EventSourceInitDict(r,s,"eventSourceInitDict"),this.#c=r.dispatcher,this.#a={lastEventId:"",reconnectionTime:tde};let n=ZAe,i;try{i=new URL(e,n.settingsObject.baseUrl),this.#a.origin=i.origin}catch(c){throw new DOMException(c,"SyntaxError")}this.#t=i.href;let o=oc0;r.withCredentials&&(o=ac0,this.#s=!0);let a={redirect:"follow",keepalive:!0,mode:"cors",credentials:o==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};a.client=ZAe.settingsObject,a.headersList=[["accept",{name:"accept",value:"text/event-stream"}]],a.cache="no-store",a.initiator="other",a.urlList=[new URL(this.#t)],this.#n=tc0(a),this.#o()}get readyState(){return this.#r}get url(){return this.#t}get withCredentials(){return this.#s}#o(){if(this.#r===cO)return;this.#r=aO;let e={request:this.#n,dispatcher:this.#c},r=s=>{KAe(s)&&(this.dispatchEvent(new Event("error")),this.close()),this.#l()};e.processResponseEndOfBody=r,e.processResponse=s=>{if(KAe(s))if(s.aborted){this.close(),this.dispatchEvent(new Event("error"));return}else{this.#l();return}let n=s.headersList.get("content-type",!0),i=n!==null?sc0(n):"failure",o=i!=="failure"&&i.essence==="text/event-stream";if(s.status!==200||o===!1){this.close(),this.dispatchEvent(new Event("error"));return}this.#r=rde,this.dispatchEvent(new Event("open")),this.#a.origin=s.urlList[s.urlList.length-1].origin;let a=new rc0({eventSourceSettings:this.#a,push:c=>{this.dispatchEvent(nc0(c.type,c.options))}});Za0(s.body.stream,a,c=>{c?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#i=ec0(e)}async#l(){this.#r!==cO&&(this.#r=aO,this.dispatchEvent(new Event("error")),await ic0(this.#a.reconnectionTime),this.#r===aO&&(this.#a.lastEventId.length&&this.#n.headersList.set("last-event-id",this.#a.lastEventId,!0),this.#o()))}close(){vu.brandCheck(this,t),this.#r!==cO&&(this.#r=cO,this.#i.abort(),this.#n=null)}get onopen(){return this.#e.open}set onopen(e){this.#e.open&&this.removeEventListener("open",this.#e.open),typeof e=="function"?(this.#e.open=e,this.addEventListener("open",e)):this.#e.open=null}get onmessage(){return this.#e.message}set onmessage(e){this.#e.message&&this.removeEventListener("message",this.#e.message),typeof e=="function"?(this.#e.message=e,this.addEventListener("message",e)):this.#e.message=null}get onerror(){return this.#e.error}set onerror(e){this.#e.error&&this.removeEventListener("error",this.#e.error),typeof e=="function"?(this.#e.error=e,this.addEventListener("error",e)):this.#e.error=null}},sde={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:aO,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:rde,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:cO,writable:!1}};Object.defineProperties(bb,sde);Object.definePropert
%s`,N,N,B,s);var T=B.type==="*"?OP:B.type==="?"?zP:"\\"+B.type;n=!0,s=s.slice(0,B.reStart)+T+"\\("+N}M(),i&&(s+="\\\\");var W=!1;switch(s.charAt(0)){case"[":case".":case"(":W=!0}for(var j=a.length-1;j>-1;j--){var Me=a[j],Se=s.slice(0,Me.reStart),K=s.slice(Me.reStart,Me.reEnd-8),Ie=s.slice(Me.reEnd-8,Me.reEnd),Y=s.slice(Me.reEnd);Ie+=Y;var we=Se.split("(").length-1,Pe=Y;for(g=0;g<we;g++)Pe=Pe.replace(/\)[+*?]?/,"");Y=Pe;var z0="";Y===""&&e!==Gq&&(z0="$");var d0=Se+K+Y+z0+Ie;s=d0}if(s!==""&&n&&(s="(?=.)"+s),W&&(s=A+s),e===Gq)return[s,n];if(!n)return jA0(t);var x0=r.nocase?"i":"";try{var yt=new RegExp("^"+s+"$",x0)}catch{return new RegExp("$.")}return yt._glob=t,yt._src=s,yt}Wn.makeRe=function(t,e){return new fr(t,e||{}).makeRe()};fr.prototype.makeRe=VA0;function VA0(){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?OP:e.dot?LA0:QA0,s=e.nocase?"i":"",n=t.map(function(i){return i.map(function(o){return o===EP?r:typeof o=="string"?$A0(o):o._src}).join("\\/")}).join("|");n="^(?:"+n+")$",this.negate&&(n="^(?!"+n+").*$");try{this.regexp=new RegExp(n,s)}catch{this.regexp=!1}return this.regexp}Wn.match=function(t,e,r){r=r||{};var s=new fr(e,r);return t=t.filter(function(n){return s.match(n)}),s.options.nonull&&!t.length&&t.push(e),t};fr.prototype.match=function(e,r){if(typeof r>"u"&&(r=this.partial),this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return e==="";if(e==="/"&&r)return!0;var s=this.options;FO.sep!=="/"&&(e=e.split(FO.sep).join("/")),e=e.split(ghe),this.debug(this.pattern,"split",e);var n=this.set;this.debug(this.pattern,"set",n);var i,o;for(o=e.length-1;o>=0&&(i=e[o],!i);o--);for(o=0;o<n.length;o++){var a=n[o],c=e;s.matchBase&&a.length===1&&(c=[i]);var u=this.matchOne(c,a,r);if(u)return s.flipNegate?!0:!this.negate}return s.flipNegate?!1:this.negate};fr.prototype.matchOne=function(t,e,r){var s=this.options;this.debug("matchOne",{this:this,file:t,pattern:e}),this.debug("matchOne",t.length,e.length);for(var n=0,i=0,o=t.length,a=e.length;n<o&&i<a;n++,i++){this.debug("matchOne loop");var c=e[i],u=t[n];if(this.debug(e,c,u),c===!1)return!1;if(c===EP){this.debug("GLOBSTAR",[e,c,u]);var p=n,l=i+1;if(l===a){for(this.debug("** at the end");n<o;n++)if(t[n]==="."||t[n]===".."||!s.dot&&t[n].charAt(0)===".")return!1;return!0}for(;p<o;){var A=t[p];if(this.debug(`
2026-05-22 12:07:22 +00:00
globstar while`,t,p,e,l,A),this.matchOne(t.slice(p),e.slice(l),r))return this.debug("globstar found match!",p,o,A),!0;if(A==="."||A===".."||!s.dot&&A.charAt(0)==="."){this.debug("dot detected!",t,p,e,l);break}this.debug("globstar swallow a segment, and continue"),p++}return!!(r&&(this.debug(`
2026-05-28 10:25:16 +00:00
>>> no match, partial?`,t,p,e,l),p===o))}var h;if(typeof c=="string"?(h=u===c,this.debug("string match",c,u,h)):(h=u.match(c),this.debug("pattern match",c,u,h)),!h)return!1}if(n===o&&i===a)return!0;if(n===o)return r;if(i===a)return n===o-1&&t[n]==="";throw new Error("wtf?")};function jA0(t){return t.replace(/\\(.)/g,"$1")}function $A0(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}});var WO=f((ift,Dhe)=>{"use strict";var sd0="2.0.0",nd0=Number.MAX_SAFE_INTEGER||9007199254740991,id0=16,od0=250,ad0=["major","premajor","minor","preminor","patch","prepatch","prerelease"];Dhe.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:id0,MAX_SAFE_BUILD_LENGTH:od0,MAX_SAFE_INTEGER:nd0,RELEASE_TYPES:ad0,SEMVER_SPEC_VERSION:sd0,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var _O=f((oft,qhe)=>{"use strict";var cd0=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};qhe.exports=cd0});var wb=f((xa,Ihe)=>{"use strict";var{MAX_SAFE_COMPONENT_LENGTH:CP,MAX_SAFE_BUILD_LENGTH:ud0,MAX_LENGTH:pd0}=WO(),ld0=_O();xa=Ihe.exports={};var Ad0=xa.re=[],dd0=xa.safeRe=[],le=xa.src=[],fd0=xa.safeSrc=[],Ae=xa.t={},hd0=0,BP="[a-zA-Z0-9-]",bd0=[["\\s",1],["\\d",pd0],[BP,ud0]],Md0=t=>{for(let[e,r]of bd0)t=t.split(`${e}*`).join(`${e}{0,${r}}`).split(`${e}+`).join(`${e}{1,${r}}`);return t},$e=(t,e,r)=>{let s=Md0(e),n=hd0++;ld0(t,n,e),Ae[t]=n,le[n]=e,fd0[n]=s,Ad0[n]=new RegExp(e,r?"g":void 0),dd0[n]=new RegExp(s,r?"g":void 0)};$e("NUMERICIDENTIFIER","0|[1-9]\\d*");$e("NUMERICIDENTIFIERLOOSE","\\d+");$e("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${BP}*`);$e("MAINVERSION",`(${le[Ae.NUMERICIDENTIFIER]})\\.(${le[Ae.NUMERICIDENTIFIER]})\\.(${le[Ae.NUMERICIDENTIFIER]})`);$e("MAINVERSIONLOOSE",`(${le[Ae.NUMERICIDENTIFIERLOOSE]})\\.(${le[Ae.NUMERICIDENTIFIERLOOSE]})\\.(${le[Ae.NUMERICIDENTIFIERLOOSE]})`);$e("PRERELEASEIDENTIFIER",`(?:${le[Ae.NONNUMERICIDENTIFIER]}|${le[Ae.NUMERICIDENTIFIER]})`);$e("PRERELEASEIDENTIFIERLOOSE",`(?:${le[Ae.NONNUMERICIDENTIFIER]}|${le[Ae.NUMERICIDENTIFIERLOOSE]})`);$e("PRERELEASE",`(?:-(${le[Ae.PRERELEASEIDENTIFIER]}(?:\\.${le[Ae.PRERELEASEIDENTIFIER]})*))`);$e("PRERELEASELOOSE",`(?:-?(${le[Ae.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${le[Ae.PRERELEASEIDENTIFIERLOOSE]})*))`);$e("BUILDIDENTIFIER",`${BP}+`);$e("BUILD",`(?:\\+(${le[Ae.BUILDIDENTIFIER]}(?:\\.${le[Ae.BUILDIDENTIFIER]})*))`);$e("FULLPLAIN",`v?${le[Ae.MAINVERSION]}${le[Ae.PRERELEASE]}?${le[Ae.BUILD]}?`);$e("FULL",`^${le[Ae.FULLPLAIN]}$`);$e("LOOSEPLAIN",`[v=\\s]*${le[Ae.MAINVERSIONLOOSE]}${le[Ae.PRERELEASELOOSE]}?${le[Ae.BUILD]}?`);$e("LOOSE",`^${le[Ae.LOOSEPLAIN]}$`);$e("GTLT","((?:<|>)?=?)");$e("XRANGEIDENTIFIERLOOSE",`${le[Ae.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);$e("XRANGEIDENTIFIER",`${le[Ae.NUMERICIDENTIFIER]}|x|X|\\*`);$e("XRANGEPLAIN",`[v=\\s]*(${le[Ae.XRANGEIDENTIFIER]})(?:\\.(${le[Ae.XRANGEIDENTIFIER]})(?:\\.(${le[Ae.XRANGEIDENTIFIER]})(?:${le[Ae.PRERELEASE]})?${le[Ae.BUILD]}?)?)?`);$e("XRANGEPLAINLOOSE",`[v=\\s]*(${le[Ae.XRANGEIDENTIFIERLOOSE]})(?:\\.(${le[Ae.XRANGEIDENTIFIERLOOSE]})(?:\\.(${le[Ae.XRANGEIDENTIFIERLOOSE]})(?:${le[Ae.PRERELEASELOOSE]})?${le[Ae.BUILD]}?)?)?`);$e("XRANGE",`^${le[Ae.GTLT]}\\s*${le[Ae.XRANGEPLAIN]}$`);$e("XRANGELOOSE",`^${le[Ae.GTLT]}\\s*${le[Ae.XRANGEPLAINLOOSE]}$`);$e("COERCEPLAIN",`(^|[^\\d])(\\d{1,${CP}})(?:\\.(\\d{1,${CP}}))?(?:\\.(\\d{1,${CP}}))?`);$e("COERCE",`${le[Ae.COERCEPLAIN]}(?:$|[^\\d])`);$e("COERCEFULL",le[Ae.COERCEPLAIN]+`(?:${le[Ae.PRERELEASE]})?(?:${le[Ae.BUILD]})?(?:$|[^\\d])`);$e("COERCERTL",le[Ae.COERCE],!0);$e("COERCERTLFULL",le[Ae.COERCEFULL],!0);$e("LONETILDE","(?:~>?)");$e("TILDETRIM",`(\\s*)${le[Ae.LONETILDE]}\\s+`,!0);xa.tildeTrimReplace="$1~";$e("TILDE",`^${le[Ae.LONETILDE]}${le[Ae.XRANGEPLAIN]}$`);$e("TILDELOOSE",`^${le[Ae.LONETILDE]}${le[Ae.XRANGEPLAINLOOSE]}$`);$e("LONECARET","(?:\\^)");$e("CARETTRIM",`(\\s*)${le[Ae.LONECARET]}\\s+`,!0);xa.caretTrimReplace="$1^";$e("CARET",`^${le[Ae.LONECARET]}${le[Ae.XRANGEPLAIN]}$`);$e("CARETLOOSE",`^${le[Ae.LONECARET]}${le[Ae.XRANGEPLAINLOOSE]}$`);$e("COMPARATORLOOSE",`^${le[Ae.GTLT]}\\s*(${l
`).join(`
2026-05-28 10:25:16 +00:00
`+i),t.push(n+"m+"+NI.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=Ph0()+e+" "+t[0]}function Ph0(){return hr.inspectOpts.hideDate?"":new Date().toISOString()+" "}function kh0(...t){return process.stderr.write(SI.format(...t)+`
`)}function Uh0(t){t?process.env.DEBUG=t:delete process.env.DEBUG}function Gh0(){return process.env.DEBUG}function Hh0(t){t.inspectOpts={};let e=Object.keys(hr.inspectOpts);for(let r=0;r<e.length;r++)t.inspectOpts[e[r]]=hr.inspectOpts[e[r]]}NI.exports=pk()(hr);var{formatters:cme}=NI.exports;cme.o=function(t){return this.inspectOpts.colors=this.useColors,SI.inspect(t,this.inspectOpts).split(`
`).map(e=>e.trim()).join(" ")};cme.O=function(t){return this.inspectOpts.colors=this.useColors,SI.inspect(t,this.inspectOpts)}});var e2=f((Ebt,fk)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?fk.exports=sme():fk.exports=ume()});var Ame=f(Vs=>{"use strict";var Xh0=Vs&&Vs.__createBinding||(Object.create?(function(t,e,r,s){s===void 0&&(s=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,s,n)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),Vh0=Vs&&Vs.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),pme=Vs&&Vs.__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)&&Xh0(e,t,r);return Vh0(e,t),e};Object.defineProperty(Vs,"__esModule",{value:!0});Vs.req=Vs.json=Vs.toBuffer=void 0;var jh0=pme(require("http")),$h0=pme(require("https"));async function lme(t){let e=0,r=[];for await(let s of t)e+=s.length,r.push(s);return Buffer.concat(r,e)}Vs.toBuffer=lme;async function Yh0(t){let r=(await lme(t)).toString("utf8");try{return JSON.parse(r)}catch(s){let n=s;throw n.message+=` (input: ${r})`,n}}Vs.json=Yh0;function Jh0(t,e={}){let s=((typeof t=="string"?t:t.href).startsWith("https:")?$h0:jh0).request(t,e),n=new Promise((i,o)=>{s.once("response",i).once("error",o).end()});return s.then=n.then.bind(n),s}Vs.req=Jh0});var bme=f(Pn=>{"use strict";var fme=Pn&&Pn.__createBinding||(Object.create?(function(t,e,r,s){s===void 0&&(s=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,s,n)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),Kh0=Pn&&Pn.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),hme=Pn&&Pn.__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)&&fme(e,t,r);return Kh0(e,t),e},Zh0=Pn&&Pn.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&fme(e,t,r)};Object.defineProperty(Pn,"__esModule",{value:!0});Pn.Agent=void 0;var eb0=hme(require("net")),dme=hme(require("http")),tb0=require("https");Zh0(Ame(),Pn);var La=Symbol("AgentBaseInternalState"),hk=class extends dme.Agent{constructor(e){super(e),this[La]={}}isSecureEndpoint(e){if(e){if(typeof e.secureEndpoint=="boolean")return e.secureEndpoint;if(typeof e.protocol=="string")return e.protocol==="https:"}let{stack:r}=new Error;return typeof r!="string"?!1:r.split(`
`).some(s=>s.indexOf("(https.js:")!==-1||s.indexOf("node:https:")!==-1)}incrementSockets(e){if(this.maxSockets===1/0&&this.maxTotalSockets===1/0)return null;this.sockets[e]||(this.sockets[e]=[]);let r=new eb0.Socket({writable:!1});return this.sockets[e].push(r),this.totalSocketCount++,r}decrementSockets(e,r){if(!this.sockets[e]||r===null)return;let s=this.sockets[e],n=s.indexOf(r);n!==-1&&(s.splice(n,1),this.totalSocketCount--,s.length===0&&delete this.sockets[e])}getName(e){return this.isSecureEndpoint(e)?tb0.Agent.prototype.getName.call(this,e):super.getName(e)}createSocket(e,r,s){let n={...r,secureEndpoint:this.isSecureEndpoint(r)},i=this.getName(n),o=this.incrementSockets(i);Promise.resolve().then(()=>this.connect(e,n)).then(a=>{if(this.decrementSockets(i,o),a instanceof dme.Agent)try{return a.addRequest(e,n)}catch(c){return s(c)}this[La].currentSocket=a,super.createSocket(e,r,s)},a=>{this.decrementSockets(i,o),s(a)})}createConnection(){let e=this[La].currentSocket;if(this[La].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[La].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[La]&&(this[La].defaultPort=e)}get protocol(){return this[La].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[La]&&(this[La].protocol=e)}};Pn.Agent=hk});var Mme=f(Lb=>{"use strict";var rb0=Lb&&Lb.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Lb,"__esModule",{value:!0});Lb.parseProxyResponse=void 0;var sb0=rb0(e2()),vI=(0,sb0.default)("https-proxy-agent:parse-proxy-response");function nb0(t){return new Promise((e,r)=>{let s=0,n=[];function i(){let p=t.read();p?u(p):t.once("readable",i)}function o(){t.removeListener("end",a),t.removeListener("error",c),t.removeListener("readable",i)}function a(){o(),vI("onend"),r(new Error("Proxy connection ended before receiving CONNECT response"))}function c(p){o(),vI("onerror %o",p),r(p)}function u(p){n.push(p),s+=p.length;let l=Buffer.concat(n,s),A=l.indexOf(`\r
\r
2026-05-28 10:25:16 +00:00
`);if(A===-1){vI("have not received end of HTTP headers yet..."),i();return}let h=l.slice(0,A).toString("ascii").split(`\r
`),M=h.shift();if(!M)return t.destroy(),r(new Error("No header received from proxy CONNECT response"));let g=M.split(" "),y=+g[1],O=g.slice(2).join(" "),B={};for(let I of h){if(!I)continue;let R=I.indexOf(":");if(R===-1)return t.destroy(),r(new Error(`Invalid header from proxy CONNECT response: "${I}"`));let N=I.slice(0,R).toLowerCase(),T=I.slice(R+1).trimStart(),W=B[N];typeof W=="string"?B[N]=[W,T]:Array.isArray(W)?W.push(T):B[N]=T}vI("got proxy server response: %o %o",M,B),o(),e({connect:{statusCode:y,statusText:O,headers:B},buffered:l})}t.on("error",c),t.on("end",a),i()})}Lb.parseProxyResponse=nb0});var yme=f(Si=>{"use strict";var ib0=Si&&Si.__createBinding||(Object.create?(function(t,e,r,s){s===void 0&&(s=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,s,n)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),ob0=Si&&Si.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Ome=Si&&Si.__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)&&ib0(e,t,r);return ob0(e,t),e},Eme=Si&&Si.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Si,"__esModule",{value:!0});Si.HttpsProxyAgent=void 0;var FI=Ome(require("net")),mme=Ome(require("tls")),ab0=Eme(require("assert")),cb0=Eme(e2()),ub0=bme(),pb0=require("url"),lb0=Mme(),KO=(0,cb0.default)("https-proxy-agent"),gme=t=>t.servername===void 0&&t.host&&!FI.isIP(t.host)?{...t,servername:t.host}:t,TI=class extends ub0.Agent{constructor(e,r){super(r),this.options={path:void 0},this.proxy=typeof e=="string"?new pb0.URL(e):e,this.proxyHeaders=r?.headers??{},KO("Creating new HttpsProxyAgent instance: %o",this.proxy.href);let s=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),n=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={ALPNProtocols:["http/1.1"],...r?zme(r,"headers"):null,host:s,port:n}}async connect(e,r){let{proxy:s}=this;if(!r.host)throw new TypeError('No "host" provided');let n;s.protocol==="https:"?(KO("Creating `tls.Socket`: %o",this.connectOpts),n=mme.connect(gme(this.connectOpts))):(KO("Creating `net.Socket`: %o",this.connectOpts),n=FI.connect(this.connectOpts));let i=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders},o=FI.isIPv6(r.host)?`[${r.host}]`:r.host,a=`CONNECT ${o}:${r.port} HTTP/1.1\r
2026-05-22 12:07:22 +00:00
`;if(s.username||s.password){let A=`${decodeURIComponent(s.username)}:${decodeURIComponent(s.password)}`;i["Proxy-Authorization"]=`Basic ${Buffer.from(A).toString("base64")}`}i.Host=`${o}:${r.port}`,i["Proxy-Connection"]||(i["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let A of Object.keys(i))a+=`${A}: ${i[A]}\r
2026-05-28 10:25:16 +00:00
`;let c=(0,lb0.parseProxyResponse)(n);n.write(`${a}\r
`);let{connect:u,buffered:p}=await c;if(e.emit("proxyConnect",u),this.emit("proxyConnect",u,e),u.statusCode===200)return e.once("socket",Ab0),r.secureEndpoint?(KO("Upgrading socket connection to TLS"),mme.connect({...zme(gme(r),"host","path","port"),socket:n})):n;n.destroy();let l=new FI.Socket({writable:!1});return l.readable=!0,e.once("socket",A=>{KO("Replaying proxy buffer for failed request"),(0,ab0.default)(A.listenerCount("data")>0),A.push(p),A.push(null)}),l}};TI.protocols=["http","https"];Si.HttpsProxyAgent=TI;function Ab0(t){t.resume()}function zme(t,...e){let r={},s;for(s in t)e.includes(s)||(r[s]=t[s]);return r}});var Dme=f(js=>{"use strict";var db0=js&&js.__createBinding||(Object.create?(function(t,e,r,s){s===void 0&&(s=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,s,n)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),fb0=js&&js.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Cme=js&&js.__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)&&db0(e,t,r);return fb0(e,t),e};Object.defineProperty(js,"__esModule",{value:!0});js.req=js.json=js.toBuffer=void 0;var hb0=Cme(require("http")),bb0=Cme(require("https"));async function Bme(t){let e=0,r=[];for await(let s of t)e+=s.length,r.push(s);return Buffer.concat(r,e)}js.toBuffer=Bme;async function Mb0(t){let r=(await Bme(t)).toString("utf8");try{return JSON.parse(r)}catch(s){let n=s;throw n.message+=` (input: ${r})`,n}}js.json=Mb0;function mb0(t,e={}){let s=((typeof t=="string"?t:t.href).startsWith("https:")?bb0:hb0).request(t,e),n=new Promise((i,o)=>{s.once("response",i).once("error",o).end()});return s.then=n.then.bind(n),s}js.req=mb0});var ZO=f(kn=>{"use strict";var Ime=kn&&kn.__createBinding||(Object.create?(function(t,e,r,s){s===void 0&&(s=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,s,n)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),gb0=kn&&kn.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Rme=kn&&kn.__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)&&Ime(e,t,r);return gb0(e,t),e},zb0=kn&&kn.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&Ime(e,t,r)};Object.defineProperty(kn,"__esModule",{value:!0});kn.Agent=void 0;var Ob0=Rme(require("net")),qme=Rme(require("http")),Eb0=require("https");zb0(Dme(),kn);var Qa=Symbol("AgentBaseInternalState"),bk=class extends qme.Agent{constructor(e){super(e),this[Qa]={}}isSecureEndpoint(e){if(e){if(typeof e.secureEndpoint=="boolean")return e.secureEndpoint;if(typeof e.protocol=="string")return e.protocol==="https:"}let{stack:r}=new Error;return typeof r!="string"?!1:r.split(`
`).some(s=>s.indexOf("(https.js:")!==-1||s.indexOf("node:https:")!==-1)}incrementSockets(e){if(this.maxSockets===1/0&&this.maxTotalSockets===1/0)return null;this.sockets[e]||(this.sockets[e]=[]);let r=new Ob0.Socket({writable:!1});return this.sockets[e].push(r),this.totalSocketCount++,r}decrementSockets(e,r){if(!this.sockets[e]||r===null)return;let s=this.sockets[e],n=s.indexOf(r);n!==-1&&(s.splice(n,1),this.totalSocketCount--,s.length===0&&delete this.sockets[e])}getName(e){return(typeof e.secureEndpoint=="boolean"?e.secureEndpoint:this.isSecureEndpoint(e))?Eb0.Agent.prototype.getName.call(this,e):super.getName(e)}createSocket(e,r,s){let n={...r,secureEndpoint:this.isSecureEndpoint(r)},i=this.getName(n),o=this.incrementSockets(i);Promise.resolve().then(()=>this.connect(e,n)).then(a=>{if(this.decrementSockets(i,o),a instanceof qme.Agent)return a.addRequest(e,n);this[Qa].currentSocket=a,super.createSocket(e,r,s)},a=>{this.decrementSockets(i,o),s(a)})}createConnection(){let e=this[Qa].currentSocket;if(this[Qa].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[Qa].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[Qa]&&(this[Qa].defaultPort=e)}get protocol(){return this[Qa].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[Qa]&&(this[Qa].protocol=e)}};kn.Agent=bk});var Mk=f(Ni=>{"use strict";var yb0=Ni&&Ni.__createBinding||(Object.create?(function(t,e,r,s){s===void 0&&(s=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,s,n)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),Cb0=Ni&&Ni.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Sme=Ni&&Ni.__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)&&yb0(e,t,r);return Cb0(e,t),e},Bb0=Ni&&Ni.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Ni,"__esModule",{value:!0});Ni.HttpProxyAgent=void 0;var Db0=Sme(require("net")),qb0=Sme(require("tls")),Ib0=Bb0(e2()),Rb0=require("events"),wb0=ZO(),wme=require("url"),Qb=(0,Ib0.default)("http-proxy-agent"),xI=class extends wb0.Agent{constructor(e,r){super(r),this.proxy=typeof e=="string"?new wme.URL(e):e,this.proxyHeaders=r?.headers??{},Qb("Creating new HttpProxyAgent instance: %o",this.proxy.href);let s=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),n=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={...r?Sb0(r,"headers"):null,host:s,port:n}}addRequest(e,r){e._header=null,this.setRequestProps(e,r),super.addRequest(e,r)}setRequestProps(e,r){let{proxy:s}=this,n=r.secureEndpoint?"https:":"http:",i=e.getHeader("host")||"localhost",o=`${n}//${i}`,a=new wme.URL(e.path,o);r.port!==80&&(a.port=String(r.port)),e.path=String(a);let c=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders};if(s.username||s.password){let u=`${decodeURIComponent(s.username)}:${decodeURIComponent(s.password)}`;c["Proxy-Authorization"]=`Basic ${Buffer.from(u).toString("base64")}`}c["Proxy-Connection"]||(c["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let u of Object.keys(c)){let p=c[u];p&&e.setHeader(u,p)}}async connect(e,r){e._header=null,e.path.includes("://")||this.setRequestProps(e,r);let s,n;Qb("Regenerating stored HTTP header string for request"),e._implicitHeader(),e.outputData&&e.outputData.length>0&&(Qb("Patching connection write() output buffer with updated header"),s=e.outputData[0].data,n=s.indexOf(`\r
\r
2026-05-28 10:25:16 +00:00
`)+4,e.outputData[0].data=e._header+s.substring(n),Qb("Output buffer: %o",e.outputData[0].data));let i;return this.proxy.protocol==="https:"?(Qb("Creating `tls.Socket`: %o",this.connectOpts),i=qb0.connect(this.connectOpts)):(Qb("Creating `net.Socket`: %o",this.connectOpts),i=Db0.connect(this.connectOpts)),await(0,Rb0.once)(i,"connect"),i}};xI.protocols=["http","https"];Ni.HttpProxyAgent=xI;function Sb0(t,...e){let r={},s;for(s in t)e.includes(s)||(r[s]=t[s]);return r}});var Zme=f(YI=>{"use strict";Object.defineProperty(YI,"__esModule",{value:!0});YI.state=void 0;YI.state={instrumenterImplementation:void 0}});var bge=f(tR=>{"use strict";Object.defineProperty(tR,"__esModule",{value:!0});tR.state=void 0;tR.state={operationRequestMap:new WeakMap}});var jOe=f(nM=>{"use strict";Object.defineProperty(nM,"__esModule",{value:!0});var JO0=require("os"),KO0=require("util");function ZO0(t){return t&&typeof t=="object"&&"default"in t?t:{default:t}}var e30=ZO0(KO0);function t30(t,...e){process.stderr.write(`${e30.default.format(t,...e)}${JO0.EOL}`)}var _Oe=typeof process<"u"&&process.env&&process.env.DEBUG||void 0,QOe,$G=[],YG=[],z5=[];_Oe&&JG(_Oe);var POe=Object.assign(t=>kOe(t),{enable:JG,enabled:KG,disable:r30,log:t30});function JG(t){QOe=t,$G=[],YG=[];let e=/\*/g,r=t.split(",").map(s=>s.trim().replace(e,".*?"));for(let s of r)s.startsWith("-")?YG.push(new RegExp(`^${s.substr(1)}$`)):$G.push(new RegExp(`^${s}$`));for(let s of z5)s.enabled=KG(s.namespace)}function KG(t){if(t.endsWith("*"))return!0;for(let e of YG)if(e.test(t))return!1;for(let e of $G)if(e.test(t))return!0;return!1}function r30(){let t=QOe||"";return JG(""),t}function kOe(t){let e=Object.assign(r,{enabled:KG(t),destroy:s30,log:POe.log,namespace:t,extend:n30});function r(...s){e.enabled&&(s.length>0&&(s[0]=`${t} ${s[0]}`),e.log(...s))}return z5.push(e),e}function s30(){let t=z5.indexOf(this);return t>=0?(z5.splice(t,1),!0):!1}function n30(t){let e=kOe(`${this.namespace}:${t}`);return e.log=this.log,e}var Q3=POe,UOe=new Set,m5=typeof process<"u"&&process.env&&process.env.AZURE_LOG_LEVEL||void 0,O5,E5=Q3("azure");E5.log=(...t)=>{Q3.log(...t)};var ZG=["verbose","info","warning","error"];m5&&(VOe(m5)?GOe(m5):console.error(`AZURE_LOG_LEVEL set to unknown log level '${m5}'; logging is not enabled. Acceptable values: ${ZG.join(", ")}.`));function GOe(t){if(t&&!VOe(t))throw new Error(`Unknown log level '${t}'. Acceptable values: ${ZG.join(",")}`);O5=t;let e=[];for(let r of UOe)XOe(r)&&e.push(r.namespace);Q3.enable(e.join(","))}function i30(){return O5}var LOe={verbose:400,info:300,warning:200,error:100};function o30(t){let e=E5.extend(t);return HOe(E5,e),{error:g5(e,"error"),warning:g5(e,"warning"),info:g5(e,"info"),verbose:g5(e,"verbose")}}function HOe(t,e){e.log=(...r)=>{t.log(...r)}}function g5(t,e){let r=Object.assign(t.extend(e),{level:e});if(HOe(t,r),XOe(r)){let s=Q3.disable();Q3.enable(s+","+r.namespace)}return UOe.add(r),r}function XOe(t){return!!(O5&&LOe[t.level]<=LOe[O5])}function VOe(t){return ZG.includes(t)}nM.AzureLogger=E5;nM.createClientLogger=o30;nM.getLogLevel=i30;nM.setLogLevel=GOe});var rH=f(k3=>{"use strict";Object.defineProperty(k3,"__esModule",{value:!0});var iM=new WeakMap,y5=new WeakMap,P3=class t{constructor(){this.onabort=null,iM.set(this,[]),y5.set(this,!1)}get aborted(){if(!y5.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");return y5.get(this)}static get none(){return new t}addEventListener(e,r){if(!iM.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");iM.get(this).push(r)}removeEventListener(e,r){if(!iM.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");let s=iM.get(this),n=s.indexOf(r);n>-1&&s.splice(n,1)}dispatchEvent(e){throw new Error("This is a stub dispatchEvent implementation that should not be used. It only exists for type-checking purposes.")}};function $Oe(t){if(t.aborted)return;t.onabort&&t.onabort.call(t);let e=iM.get(t);e&&e.slice().forEach(r=>{r.call(t,{type:"abort"})}),y5.set(t,!0)}var eH=class extends Error{constructor(e){super(e),t
Polling from: ${r.config.operationLocation}
Operation status: ${p}
2026-05-28 10:25:16 +00:00
Polling status: ${n3e.includes(p)?"Stopped":"Running"}`),p==="succeeded"){let l=o(u,r);if(l!==void 0)return{response:await e(l).catch(r3e({state:r,stateProxy:s,isOperationError:a})),status:p}}return{response:u,status:p}}async function c3e(t){let{poll:e,state:r,stateProxy:s,options:n,getOperationStatus:i,getResourceLocation:o,getOperationLocation:a,isOperationError:c,withOperationLocation:u,getPollingInterval:p,processResult:l,getError:A,updateState:h,setDelay:M,isDone:g,setErrorAsResult:y}=t,{operationLocation:O}=r.config;if(O!==void 0){let{response:B,status:I}=await x30({poll:e,getOperationStatus:i,state:r,stateProxy:s,operationLocation:O,getResourceLocation:o,isOperationError:c,options:n});if(o3e({status:I,response:B,state:r,stateProxy:s,isDone:g,processResult:l,getError:A,setErrorAsResult:y}),!n3e.includes(I)){let R=p?.(B);R&&M(R);let N=a?.(B,r);if(N!==void 0){let T=O!==N;r.config.operationLocation=N,u?.(N,T)}else u?.(O,!1)}h?.(r,B)}}function u3e(t){let{azureAsyncOperation:e,operationLocation:r}=t;return r??e}function p3e(t){return t.headers.location}function l3e(t){return t.headers["operation-location"]}function A3e(t){return t.headers["azure-asyncoperation"]}function W30(t){var e;let{location:r,requestMethod:s,requestPath:n,resourceLocationConfig:i}=t;switch(s){case"PUT":return n;case"DELETE":return;case"PATCH":return(e=o())!==null&&e!==void 0?e:n;default:return o()}function o(){switch(i){case"azure-async-operation":return;case"original-uri":return n;default:return r}}}function d3e(t){let{rawResponse:e,requestMethod:r,requestPath:s,resourceLocationConfig:n}=t,i=l3e(e),o=A3e(e),a=u3e({operationLocation:i,azureAsyncOperation:o}),c=p3e(e),u=r?.toLocaleUpperCase();return a!==void 0?{mode:"OperationLocation",operationLocation:a,resourceLocation:W30({requestMethod:u,location:c,requestPath:s,resourceLocationConfig:n})}:c!==void 0?{mode:"ResourceLocation",operationLocation:c}:u==="PUT"&&s?{mode:"Body",operationLocation:s}:void 0}function f3e(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 dH(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 m2.verbose(`LRO: unrecognized operation status: ${e}`),e}}function _30(t){var e;let{status:r}=(e=t.body)!==null&&e!==void 0?e:{};return f3e({status:r,statusCode:t.statusCode})}function L30(t){var e,r;let{properties:s,provisioningState:n}=(e=t.body)!==null&&e!==void 0?e:{},i=(r=s?.provisioningState)!==null&&r!==void 0?r:n;return f3e({status:i,statusCode:t.statusCode})}function dH(t){return t===202?"running":t<300?"succeeded":"failed"}function h3e({rawResponse:t}){let e=t.headers["retry-after"];if(e!==void 0){let r=parseInt(e);return isNaN(r)?Q30(new Date(e)):r*1e3}}function b3e(t){let e=t.flatResponse.error;if(!e){m2.warning("The long-running operation failed but there is no error property in the response's body");return}if(!e.code||!e.message){m2.warning("The long-running operation failed but the error property in the response's body doesn't contain code or message");return}return e}function Q30(t){let e=Math.floor(new Date().getTime()),r=t.getTime();if(e<r)return r-e}function M3e(t){let{response:e,state:r,operationLocation:s}=t;function n(){var o;switch((o=r.config.metadata)===null||o===void 0?void 0:o.mode){case void 0:return dH(e.rawResponse.statusCode);case"Body":return fH(e,r);default:return"running"}}let i=n();return i==="running"&&s===void 0?"succeeded":i}async function P30(t){let{stateProxy:e,resourceLocationConfig:r,processResult:s,lro:n,setErrorAsResult:i}=t;return a3e({init:async()=>{let o=await n.sendInitialRequest(),a=d3e({rawResponse:o.rawResponse,requestPath:n.requestPath,requestMethod:n.r
`:case"\r":case" ":case" ":continue;default:throw Error("invalid base64 string.")}switch(n){case 0:o=i,n=1;break;case 1:r[s++]=o<<2|(i&48)>>4,o=i,n=2;break;case 2:r[s++]=(o&15)<<4|(i&60)>>2,o=i,n=3;break;case 3:r[s++]=(o&3)<<6|i,n=0;break}}if(n==1)throw Error("invalid base64 string.");return r.subarray(0,s)}lM.base64decode=CE0;function BE0(t){let e="",r=0,s,n=0;for(let i=0;i<t.length;i++)switch(s=t[i],r){case 0:e+=Ku[s>>2],n=(s&3)<<4,r=1;break;case 1:e+=Ku[n|s>>4],n=(s&15)<<2,r=2;break;case 2:e+=Ku[n|s>>6],e+=Ku[s&63],r=0;break}return r&&(e+=Ku[n],e+="=",r==1&&(e+="=")),e}lM.base64encode=BE0});var j3e=f(k5=>{"use strict";Object.defineProperty(k5,"__esModule",{value:!0});k5.utf8read=void 0;var CH=t=>String.fromCharCode.apply(String,t);function DE0(t){if(t.length<1)return"";let e=0,r=[],s=[],n=0,i,o=t.length;for(;e<o;)i=t[e++],i<128?s[n++]=i:i>191&&i<224?s[n++]=(i&31)<<6|t[e++]&63:i>239&&i<365?(i=((i&7)<<18|(t[e++]&63)<<12|(t[e++]&63)<<6|t[e++]&63)-65536,s[n++]=55296+(i>>10),s[n++]=56320+(i&1023)):s[n++]=(i&15)<<12|(t[e++]&63)<<6|t[e++]&63,n>8191&&(r.push(CH(s)),n=0);return r.length?(n&&r.push(CH(s.slice(0,n))),r.join("")):CH(s.slice(0,n))}k5.utf8read=DE0});var Y3=f(Ac=>{"use strict";Object.defineProperty(Ac,"__esModule",{value:!0});Ac.WireType=Ac.mergeBinaryOptions=Ac.UnknownFieldHandler=void 0;var qE0;(function(t){t.symbol=Symbol.for("protobuf-ts/unknown"),t.onRead=(r,s,n,i,o)=>{(e(s)?s[t.symbol]:s[t.symbol]=[]).push({no:n,wireType:i,data:o})},t.onWrite=(r,s,n)=>{for(let{no:i,wireType:o,data:a}of t.list(s))n.tag(i,o).raw(a)},t.list=(r,s)=>{if(e(r)){let n=r[t.symbol];return s?n.filter(i=>i.no==s):n}return[]},t.last=(r,s)=>t.list(r,s).slice(-1)[0];let e=r=>r&&Array.isArray(r[t.symbol])})(qE0=Ac.UnknownFieldHandler||(Ac.UnknownFieldHandler={}));function IE0(t,e){return Object.assign(Object.assign({},t),e)}Ac.mergeBinaryOptions=IE0;var RE0;(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"})(RE0=Ac.WireType||(Ac.WireType={}))});var G5=f(tn=>{"use strict";Object.defineProperty(tn,"__esModule",{value:!0});tn.varint32read=tn.varint32write=tn.int64toString=tn.int64fromString=tn.varint64write=tn.varint64read=void 0;function wE0(){let t=0,e=0;for(let s=0;s<28;s+=7){let n=this.buf[this.pos++];if(t|=(n&127)<<s,(n&128)==0)return this.assertBounds(),[t,e]}let r=this.buf[this.pos++];if(t|=(r&15)<<28,e=(r&112)>>4,(r&128)==0)return this.assertBounds(),[t,e];for(let s=3;s<=31;s+=7){let n=this.buf[this.pos++];if(e|=(n&127)<<s,(n&128)==0)return this.assertBounds(),[t,e]}throw new Error("invalid varint")}tn.varint64read=wE0;function SE0(t,e,r){for(let i=0;i<28;i=i+7){let o=t>>>i,a=!(!(o>>>7)&&e==0),c=(a?o|128:o)&255;if(r.push(c),!a)return}let s=t>>>28&15|(e&7)<<4,n=e>>3!=0;if(r.push((n?s|128:s)&255),!!n){for(let i=3;i<31;i=i+7){let o=e>>>i,a=!!(o>>>7),c=(a?o|128:o)&255;if(r.push(c),!a)return}r.push(e>>>31&1)}}tn.varint64write=SE0;var U5=65536*65536;function NE0(t){let e=t[0]=="-";e&&(t=t.slice(1));let r=1e6,s=0,n=0;function i(o,a){let c=Number(t.slice(o,a));n*=r,s=s*r+c,s>=U5&&(n=n+(s/U5|0),s=s%U5)}return i(-24,-18),i(-18,-12),i(-12,-6),i(-6),[e,s,n]}tn.int64fromString=NE0;function vE0(t,e){if(e>>>0<=2097151)return""+(U5*e+(t>>>0));let r=t&16777215,s=(t>>>24|e<<8)>>>0&16777215,n=e>>16&65535,i=r+s*6777216+n*6710656,o=s+n*8147497,a=n*2,c=1e7;i>=c&&(o+=Math.floor(i/c),i%=c),o>=c&&(a+=Math.floor(o/c),o%=c);function u(p,l){let A=p?String(p):"";return l?"0000000".slice(A.length)+A:A}return u(a,0)+u(o,a)+u(i,1)}tn.int64toString=vE0;function FE0(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)}}tn.varint32write=FE0;function TE0(){let t=this.buf[this.pos++],e=t&127;if((t&128)==0)return this.assertBounds(),e;if(t=this.buf[this.pos++],e|=(t&127)<<7,(t&128)==0)return this.assertBounds(),e;if(t=this.buf[this.pos++],e|=(t&127)<<14,(t&128)==0)return this.assertBounds(),e;if(t=this.buf[this.pos++],e|=(t&127)<<21,(t&128)==0)return this.assertBounds(),e;t=this.bu
`)}};Mw.RpcError=JH});var ZH=f(gw=>{"use strict";Object.defineProperty(gw,"__esModule",{value:!0});gw.mergeRpcOptions=void 0;var qEe=t1();function sC0(t,e){if(!e)return t;let r={};mw(t,r),mw(e,r);for(let s of Object.keys(e)){let n=e[s];switch(s){case"jsonOptions":r.jsonOptions=qEe.mergeJsonOptions(t.jsonOptions,r.jsonOptions);break;case"binaryOptions":r.binaryOptions=qEe.mergeBinaryOptions(t.binaryOptions,r.binaryOptions);break;case"meta":r.meta={},mw(t.meta,r.meta),mw(e.meta,r.meta);break;case"interceptors":r.interceptors=t.interceptors?t.interceptors.concat(n):n.concat();break}}return r}gw.mergeRpcOptions=sC0;function mw(t,e){if(!t)return;let r=e;for(let[s,n]of Object.entries(t))n instanceof Date?r[s]=new Date(n.getTime()):Array.isArray(n)?r[s]=n.concat():r[s]=n}});var tX=f(y2=>{"use strict";Object.defineProperty(y2,"__esModule",{value:!0});y2.Deferred=y2.DeferredState=void 0;var hc;(function(t){t[t.PENDING=0]="PENDING",t[t.REJECTED=1]="REJECTED",t[t.RESOLVED=2]="RESOLVED"})(hc=y2.DeferredState||(y2.DeferredState={}));var eX=class{constructor(e=!0){this._state=hc.PENDING,this._promise=new Promise((r,s)=>{this._resolve=r,this._reject=s}),e&&this._promise.catch(r=>{})}get state(){return this._state}get promise(){return this._promise}resolve(e){if(this.state!==hc.PENDING)throw new Error(`cannot resolve ${hc[this.state].toLowerCase()}`);this._resolve(e),this._state=hc.RESOLVED}reject(e){if(this.state!==hc.PENDING)throw new Error(`cannot reject ${hc[this.state].toLowerCase()}`);this._reject(e),this._state=hc.REJECTED}resolvePending(e){this._state===hc.PENDING&&this.resolve(e)}rejectPending(e){this._state===hc.PENDING&&this.reject(e)}};y2.Deferred=eX});var sX=f(zw=>{"use strict";Object.defineProperty(zw,"__esModule",{value:!0});zw.RpcOutputStreamController=void 0;var IEe=tX(),C2=t1(),rX=class{constructor(){this._lis={nxt:[],msg:[],err:[],cmp:[]},this._closed=!1,this._itState={q:[]}}onNext(e){return this.addLis(e,this._lis.nxt)}onMessage(e){return this.addLis(e,this._lis.msg)}onError(e){return this.addLis(e,this._lis.err)}onComplete(e){return this.addLis(e,this._lis.cmp)}addLis(e,r){return r.push(e),()=>{let s=r.indexOf(e);s>=0&&r.splice(s,1)}}clearLis(){for(let e of Object.values(this._lis))e.splice(0,e.length)}get closed(){return this._closed!==!1}notifyNext(e,r,s){C2.assert((e?1:0)+(r?1:0)+(s?1:0)<=1,"only one emission at a time"),e&&this.notifyMessage(e),r&&this.notifyError(r),s&&this.notifyComplete()}notifyMessage(e){C2.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){C2.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(){C2.assert(!this.closed,"stream is closed"),this._closed=!0,this.pushIt({value:null,done:!0}),this._lis.cmp.forEach(e=>e()),this._lis.nxt.forEach(e=>e(void 0,void 0,!0)),this.clearLis()}[Symbol.asyncIterator](){return this._closed===!0?this.pushIt({value:null,done:!0}):this._closed!==!1&&this.pushIt(this._closed),{next:()=>{let e=this._itState;C2.assert(e,"bad state"),C2.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 IEe.Deferred,e.p.promise)}}}pushIt(e){let r=this._itState;if(r.p){let s=r.p;C2.assert(s.state==IEe.DeferredState.PENDING,"iterator contract broken"),"value"in e?s.resolve(e):s.reject(e),delete r.p}else r.q.push(e)}};zw.RpcOutputStreamController=rX});var iX=f(mM=>{"use strict";var nC0=mM&&mM.__awaiter||function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(p){try{u(s.next(p))}catch(l){o(l)}}function c(p){try{u(s.throw(p))}catch(l){o(l)}}function u(p){p.done?i(p.value):n(p.value).then(a,c)}u((s=s.apply(t,e||[])).next())})};Object.defineProperty(mM,"__esModule",{value:!0});mM.UnaryCall=void 0;var nX=class{constructor(e,r,s,n,i,o,a){this.method=e,this.requestHeaders=r,this.request=s,this.headers=n,this.response=i,
You can add a runtime option to disable the check or this warning:
2026-05-28 10:25:16 +00:00
See https://handlebarsjs.com/api-reference/runtime-options.html#options-to-control-prototype-access for details`))}function DR0(){Object.keys(bS).forEach(function(t){delete bS[t]})}});var mS=f(gc=>{"use strict";gc.__esModule=!0;gc.HandlebarsEnvironment=YV;function wBe(t){return t&&t.__esModule?t:{default:t}}var v2=ms(),qR0=Kn(),jV=wBe(qR0),IR0=GV(),RR0=DBe(),wR0=XV(),MS=wBe(wR0),SR0=VV(),NR0="4.7.9";gc.VERSION=NR0;var vR0=8;gc.COMPILER_REVISION=vR0;var FR0=7;gc.LAST_COMPATIBLE_COMPILER_REVISION=FR0;var TR0={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"};gc.REVISION_CHANGES=TR0;var $V="[object Object]";function YV(t,e,r){this.helpers=t||{},this.partials=e||{},this.decorators=r||{},IR0.registerDefaultHelpers(this),RR0.registerDefaultDecorators(this)}YV.prototype={constructor:YV,logger:MS.default,log:MS.default.log,registerHelper:function(e,r){if(v2.toString.call(e)===$V){if(r)throw new jV.default("Arg not supported with multiple helpers");v2.extend(this.helpers,e)}else this.helpers[e]=r},unregisterHelper:function(e){delete this.helpers[e]},registerPartial:function(e,r){if(v2.toString.call(e)===$V)v2.extend(this.partials,e);else{if(typeof r>"u")throw new jV.default('Attempting to register a partial called "'+e+'" as undefined');this.partials[e]=r}},unregisterPartial:function(e){delete this.partials[e]},registerDecorator:function(e,r){if(v2.toString.call(e)===$V){if(r)throw new jV.default("Arg not supported with multiple decorators");v2.extend(this.decorators,e)}else this.decorators[e]=r},unregisterDecorator:function(e){delete this.decorators[e]},resetLoggedPropertyAccesses:function(){SR0.resetLoggedProperties()}};var xR0=MS.default.log;gc.log=xR0;gc.createFrame=v2.createFrame;gc.logger=MS.default});var NBe=f((gS,SBe)=>{"use strict";gS.__esModule=!0;function JV(t){this.string=t}JV.prototype.toString=JV.prototype.toHTML=function(){return""+this.string};gS.default=JV;SBe.exports=gS.default});var vBe=f(KV=>{"use strict";KV.__esModule=!0;KV.wrapHelper=WR0;function WR0(t,e){if(typeof t!="function")return t;var r=function(){var n=arguments[arguments.length-1];return arguments[arguments.length-1]=e(n),t.apply(this,arguments)};return r}});var LBe=f(cA=>{"use strict";cA.__esModule=!0;cA.checkRevision=UR0;cA.template=GR0;cA.wrapProgram=zS;cA.resolvePartial=HR0;cA.invokePartial=XR0;cA.noop=WBe;function _R0(t){return t&&t.__esModule?t:{default:t}}function LR0(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e.default=t,e}var QR0=ms(),TM=LR0(QR0),PR0=Kn(),sp=_R0(PR0),np=mS(),FBe=GV(),kR0=vBe(),TBe=VV();function UR0(t){var e=t&&t[0]||1,r=np.COMPILER_REVISION;if(!(e>=np.LAST_COMPATIBLE_COMPILER_REVISION&&e<=np.COMPILER_REVISION))if(e<np.LAST_COMPATIBLE_COMPILER_REVISION){var s=np.REVISION_CHANGES[r],n=np.REVISION_CHANGES[e];throw new sp.default("Template was precompiled with an older version of Handlebars than the current runtime. Please update your precompiler to a newer version ("+s+") or downgrade your runtime to an older version ("+n+").")}else throw new sp.default("Template was precompiled with a newer version of Handlebars than the current runtime. Please update your runtime to a newer version ("+t[1]+").")}function GR0(t,e){if(!e)throw new sp.default("No environment passed to template");if(!t||!t.main)throw new sp.default("Unknown template object: "+typeof t);t.main.decorator=t.main_d,e.VM.checkRevision(t.compiler);var r=t.compiler&&t.compiler[0]===7;function s(o,a,c){c.hash&&(a=TM.extend({},a,c.hash),c.ids&&(c.ids[0]=!0)),o=e.VM.resolvePartial.call(this,o,a,c),c.hooks=this.hooks,c.protoAccessControl=this.protoAccessControl;var u=e.VM.invokePartial.call(this,o,a,c);if(u==null&&e.compile&&(c.partials[c.name]=e.compile(o,t.compilerOptions,e),u=c.partials[c.name](a,c)),u!=null){if(c.indent){for(var p=u.split(`
2026-05-22 12:20:24 +00:00
`),l=0,A=p.length;l<A&&!(!p[l]&&l+1===A);l++)p[l]=c.indent+p[l];u=p.join(`
2026-05-28 10:25:16 +00:00
`)}return u}else throw new sp.default("The partial "+c.name+" could not be compiled when running in runtime-only mode")}var n={strict:function(a,c,u){if(!a||!(c in a))throw new sp.default('"'+c+'" not defined in '+a,{loc:u});return n.lookupProperty(a,c)},lookupProperty:function(a,c){var u=a[c];if(u==null||Object.prototype.hasOwnProperty.call(a,c)||TBe.resultIsAllowed(u,n.protoAccessControl,c))return u},lookup:function(a,c){for(var u=a.length,p=0;p<u;p++){var l=a[p]&&n.lookupProperty(a[p],c);if(l!=null)return l}},lambda:function(a,c){return typeof a=="function"?a.call(c):a},escapeExpression:TM.escapeExpression,invokePartial:s,fn:function(a){var c=t[a];return c.decorator=t[a+"_d"],c},programs:[],program:function(a,c,u,p,l){var A=this.programs[a],h=this.fn(a);return c||l||p||u?A=zS(this,a,h,c,u,p,l):A||(A=this.programs[a]=zS(this,a,h)),A},data:function(a,c){for(;a&&c--;)a=a._parent;return a},mergeIfNeeded:function(a,c){var u=a||c;return a&&c&&a!==c&&(u=TM.extend({},c,a)),u},nullContext:Object.seal({}),noop:e.VM.noop,compilerInfo:t.compiler};function i(o){var a=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],c=a.data;i._setup(a),!a.partial&&t.useData&&(c=VR0(o,c));var u=void 0,p=t.useBlockParams?[]:void 0;t.useDepths&&(a.depths?u=o!=a.depths[0]?[o].concat(a.depths):a.depths:u=[o]);function l(A){return""+t.main(n,A,n.helpers,n.partials,c,p,u)}return l=_Be(t.main,l,n,a.depths||[],c,p),l(o,a)}return i.isTop=!0,i._setup=function(o){if(o.partial)n.protoAccessControl=o.protoAccessControl,n.helpers=o.helpers,n.partials=o.partials,n.decorators=o.decorators,n.hooks=o.hooks;else{var a={};xBe(a,e.helpers,n),xBe(a,o.helpers,n),n.helpers=a,t.usePartial&&(n.partials=n.mergeIfNeeded(o.partials,e.partials)),(t.usePartial||t.useDecorators)&&(n.decorators=TM.extend({},e.decorators,o.decorators)),n.hooks={},n.protoAccessControl=TBe.createProtoAccessControl(o);var c=o.allowCallsToHelperMissing||r;FBe.moveHelperToHooks(n,"helperMissing",c),FBe.moveHelperToHooks(n,"blockHelperMissing",c)}},i._child=function(o,a,c,u){if(t.useBlockParams&&!c)throw new sp.default("must pass block params");if(t.useDepths&&!u)throw new sp.default("must pass parent depths");return zS(n,o,t[o],a,0,c,u)},i}function zS(t,e,r,s,n,i,o){function a(c){var u=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],p=o;return o&&c!=o[0]&&!(c===t.nullContext&&o[0]===null)&&(p=[c].concat(o)),r(t,c,t.helpers,t.partials,u.data||s,i&&[u.blockParams].concat(i),p)}return a=_Be(r,a,t,o,s,i),a.program=e,a.depth=o?o.length:0,a.blockParams=n||0,a}function HR0(t,e,r){return t?!t.call&&!r.name&&(r.name=t,t=OS(r.partials,t)):r.name==="@partial-block"?t=OS(r.data,"partial-block"):t=OS(r.partials,r.name),t}function XR0(t,e,r){var s=OS(r.data,"partial-block");r.partial=!0,r.ids&&(r.data.contextPath=r.ids[0]||r.data.contextPath);var n=void 0;if(r.fn&&r.fn!==WBe&&(function(){r.data=np.createFrame(r.data);var i=r.fn;n=r.data["partial-block"]=function(a){var c=arguments.length<=1||arguments[1]===void 0?{}:arguments[1];return c.data=np.createFrame(c.data),c.data["partial-block"]=s,i(a,c)},i.partials&&(r.partials=TM.extend({},r.partials,i.partials))})(),t===void 0&&n&&(t=n),t===void 0)throw new sp.default("The partial "+r.name+" could not be found");if(t instanceof Function)return t(e,r)}function WBe(){return""}function OS(t,e){if(t&&Object.prototype.hasOwnProperty.call(t,e))return t[e]}function VR0(t,e){return(!e||!("root"in e))&&(e=e?np.createFrame(e):{},e.root=t),e}function _Be(t,e,r,s,n,i){if(t.decorator){var o={};e=t.decorator(e,o,r,s&&s[0],n,i,s),TM.extend(e,o)}return e}function xBe(t,e,r){e&&Object.keys(e).forEach(function(s){var n=e[s];t[s]=jR0(n,r)})}function jR0(t,e){var r=e.lookupProperty;return kR0.wrapHelper(t,function(s){return s.lookupProperty=r,s})}});var ZV=f((ES,QBe)=>{"use strict";ES.__esModule=!0;ES.default=function(t){(function(){typeof globalThis!="object"&&(Object.prototype.__defineGetter__("__magic__",function(){return this}),__magic__.globalThis=__magic__,delete Object.prototype.__magic__)})();var e=globalThis.Handlebars;t.noConflict=function(){return globalThis
`+this.lexer.showPosition()+`
2026-05-28 10:25:16 +00:00
Expecting `+we.join(", ")+", got '"+(this.terminals_[R]||R)+"'":Pe="Parse error on line "+(l+1)+": Unexpected "+(R==1?"end of input":"'"+(this.terminals_[R]||R)+"'"),this.parseError(Pe,{text:this.lexer.match,token:this.terminals_[R]||R,line:this.lexer.yylineno,loc:y,expected:we})}}if(W[0]instanceof Array&&W.length>1)throw new Error("Parse Error: multiple actions possible at state: "+T+", token: "+R);switch(W[0]){case 1:o.push(R),a.push(this.lexer.yytext),c.push(this.lexer.yylloc),o.push(W[1]),R=null,N?(R=N,N=null):(A=this.lexer.yyleng,p=this.lexer.yytext,l=this.lexer.yylineno,y=this.lexer.yylloc,h>0&&h--);break;case 2:if(Ie=this.productions_[W[1]][1],Se.$=a[a.length-Ie],Se._$={first_line:c[c.length-(Ie||1)].first_line,last_line:c[c.length-1].last_line,first_column:c[c.length-(Ie||1)].first_column,last_column:c[c.length-1].last_column},O&&(Se._$.range=[c[c.length-(Ie||1)].range[0],c[c.length-1].range[1]]),Me=this.performAction.call(Se,p,A,l,this.yy,W[1],a,c),typeof Me<"u")return Me;Ie&&(o=o.slice(0,-1*Ie*2),a=a.slice(0,-1*Ie),c=c.slice(0,-1*Ie)),o.push(this.productions_[W[1]][0]),a.push(Se.$),c.push(Se._$),Y=u[o[o.length-2]][o[o.length-1]],o.push(Y);break;case 3:return!0}}return!0}},e=(function(){var s={EOF:1,parseError:function(i,o){if(this.yy.parser)this.yy.parser.parseError(i,o);else throw new Error(i)},setInput:function(i){return this._input=i,this._more=this._less=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var i=this._input[0];this.yytext+=i,this.yyleng++,this.offset++,this.match+=i,this.matched+=i;var o=i.match(/(?:\r\n?|\n).*/g);return o?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),i},unput:function(i){var o=i.length,a=i.split(/(?:\r\n?|\n)/g);this._input=i+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-o-1),this.offset-=o;var c=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),a.length-1&&(this.yylineno-=a.length-1);var u=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:a?(a.length===c.length?this.yylloc.first_column:0)+c[c.length-a.length].length-a[0].length:this.yylloc.first_column-o},this.options.ranges&&(this.yylloc.range=[u[0],u[0]+this.yyleng-o]),this},more:function(){return this._more=!0,this},less:function(i){this.unput(this.match.slice(i))},pastInput:function(){var i=this.matched.substr(0,this.matched.length-this.match.length);return(i.length>20?"...":"")+i.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var i=this.match;return i.length<20&&(i+=this._input.substr(0,20-i.length)),(i.substr(0,20)+(i.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var i=this.pastInput(),o=new Array(i.length+1).join("-");return i+this.upcomingInput()+`
2026-05-22 12:07:22 +00:00
`+o+"^"},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var i,o,a,c,u,p;this._more||(this.yytext="",this.match="");for(var l=this._currentRules(),A=0;A<l.length&&(a=this._input.match(this.rules[l[A]]),!(a&&(!o||a[0].length>o[0].length)&&(o=a,c=A,!this.options.flex)));A++);return o?(p=o[0].match(/(?:\r\n?|\n).*/g),p&&(this.yylineno+=p.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:p?p[p.length-1].length-p[p.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+o[0].length},this.yytext+=o[0],this.match+=o[0],this.matches=o,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._input=this._input.slice(o[0].length),this.matched+=o[0],i=this.performAction.call(this,this.yy,this,l[c],this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),i||void 0):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
2026-05-28 10:25:16 +00:00
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var i=this.next();return typeof i<"u"?i:this.lex()},begin:function(i){this.conditionStack.push(i)},popState:function(){return this.conditionStack.pop()},_currentRules:function(){return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules},topState:function(){return this.conditionStack[this.conditionStack.length-2]},pushState:function(i){this.begin(i)}};return s.options={},s.performAction=function(i,o,a,c){function u(l,A){return o.yytext=o.yytext.substring(l,o.yyleng-A+l)}var p=c;switch(a){case 0:if(o.yytext.slice(-2)==="\\\\"?(u(0,1),this.begin("mu")):o.yytext.slice(-1)==="\\"?(u(0,1),this.begin("emu")):this.begin("mu"),o.yytext)return 15;break;case 1:return 15;case 2:return this.popState(),15;break;case 3:return this.begin("raw"),15;break;case 4:return this.popState(),this.conditionStack[this.conditionStack.length-1]==="raw"?15:(u(5,9),"END_RAW_BLOCK");case 5:return 15;case 6:return this.popState(),14;break;case 7:return 65;case 8:return 68;case 9:return 19;case 10:return this.popState(),this.begin("raw"),23;break;case 11:return 55;case 12:return 60;case 13:return 29;case 14:return 47;case 15:return this.popState(),44;break;case 16:return this.popState(),44;break;case 17:return 34;case 18:return 39;case 19:return 51;case 20:return 48;case 21:this.unput(o.yytext),this.popState(),this.begin("com");break;case 22:return this.popState(),14;break;case 23:return 48;case 24:return 73;case 25:return 72;case 26:return 72;case 27:return 87;case 28:break;case 29:return this.popState(),54;break;case 30:return this.popState(),33;break;case 31:return o.yytext=u(1,2).replace(/\\"/g,'"'),80;break;case 32:return o.yytext=u(1,2).replace(/\\'/g,"'"),80;break;case 33:return 85;case 34:return 82;case 35:return 82;case 36:return 83;case 37:return 84;case 38:return 81;case 39:return 75;case 40:return 77;case 41:return 72;case 42:return o.yytext=o.yytext.replace(/\\([\\\]])/g,"$1"),72;break;case 43:return"INVALID";case 44:return 5}},s.rules=[/^(?:[^\x00]*?(?=(\{\{)))/,/^(?:[^\x00]+)/,/^(?:[^\x00]{2,}?(?=(\{\{|\\\{\{|\\\\\{\{|$)))/,/^(?:\{\{\{\{(?=[^\/]))/,/^(?:\{\{\{\{\/[^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=[=}\s\/.])\}\}\}\})/,/^(?:[^\x00]+?(?=(\{\{\{\{)))/,/^(?:[\s\S]*?--(~)?\}\})/,/^(?:\()/,/^(?:\))/,/^(?:\{\{\{\{)/,/^(?:\}\}\}\})/,/^(?:\{\{(~)?>)/,/^(?:\{\{(~)?#>)/,/^(?:\{\{(~)?#\*?)/,/^(?:\{\{(~)?\/)/,/^(?:\{\{(~)?\^\s*(~)?\}\})/,/^(?:\{\{(~)?\s*else\s*(~)?\}\})/,/^(?:\{\{(~)?\^)/,/^(?:\{\{(~)?\s*else\b)/,/^(?:\{\{(~)?\{)/,/^(?:\{\{(~)?&)/,/^(?:\{\{(~)?!--)/,/^(?:\{\{(~)?![\s\S]*?\}\})/,/^(?:\{\{(~)?\*?)/,/^(?:=)/,/^(?:\.\.)/,/^(?:\.(?=([=~}\s\/.)|])))/,/^(?:[\/.])/,/^(?:\s+)/,/^(?:\}(~)?\}\})/,/^(?:(~)?\}\})/,/^(?:"(\\["]|[^"])*")/,/^(?:'(\\[']|[^'])*')/,/^(?:@)/,/^(?:true(?=([~}\s)])))/,/^(?:false(?=([~}\s)])))/,/^(?:undefined(?=([~}\s)])))/,/^(?:null(?=([~}\s)])))/,/^(?:-?[0-9]+(?:\.[0-9]+)?(?=([~}\s)])))/,/^(?:as\s+\|)/,/^(?:\|)/,/^(?:([^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=([=~}\s\/.)|]))))/,/^(?:\[(\\\]|[^\]])*\])/,/^(?:.)/,/^(?:$)/],s.conditions={mu:{rules:[7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44],inclusive:!1},emu:{rules:[2],inclusive:!1},com:{rules:[6],inclusive:!1},raw:{rules:[3,4,5],inclusive:!1},INITIAL:{rules:[0,1,44],inclusive:!0}},s})();t.lexer=e;function r(){this.yy={}}return r.prototype=t,t.Parser=r,new r})();BS.default=n50;jBe.exports=BS.default});var RS=f((IS,KBe)=>{"use strict";IS.__esModule=!0;function i50(t){return t&&t.__esModule?t:{default:t}}var o50=Kn(),nj=i50(o50);function DS(){this.parents=[]}DS.prototype={constructor:DS,mutating:!1,acceptKey:function(e,r){var s=this.accept(e[r]);if(this.mutating){if(s&&!DS.prototype[s.type])throw new nj.default('Unexpected node type "'+s.type+'" found when accepting '+r+" on "+e.type);e[r]=s}},acceptRequired:function(e,r){if(this.acceptKey(e,r),!e[r])throw new nj.default(e.type+" requires "+r)},acceptArray:function(e){for(var r=0,s=e.length;r<s;r++)this.acceptKey(e,r),e[r]||(e.splice(r,1),r--,s--)},accept:function(e){if(
`])}),e},each:function(e){for(var r=0,s=this.source.length;r<s;r++)e(this.source[r])},empty:function(){var e=this.currentLocation||{start:{}};return new W2(e.start.line,e.start.column,this.srcFile)},wrap:function(e){var r=arguments.length<=1||arguments[1]===void 0?this.currentLocation||{start:{}}:arguments[1];return e instanceof W2?e:(e=Dj(e,this,r),new W2(r.start.line,r.start.column,this.srcFile,e))},functionCall:function(e,r,s){return s=this.generateList(s),this.wrap([e,r?"."+r+"(":"(",s,")"])},quotedString:function(e){return'"'+(e+"").replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")+'"'},objectLiteral:function(e){var r=this,s=[];Object.keys(e).forEach(function(i){var o=Dj(e[i],r);o!=="undefined"&&s.push([r.quotedString(i),":",o])});var n=this.generateList(s);return n.prepend("{"),n.add("}"),n},generateList:function(e){for(var r=this.empty(),s=0,n=e.length;s<n;s++)s&&r.add(","),r.add(Dj(e[s],this));return r},generateArray:function(e){var r=this.generateList(e);return r.prepend("["),r.add("]"),r}};WS.default=vDe;FDe.exports=WS.default});var QDe=f((_S,LDe)=>{"use strict";_S.__esModule=!0;function _De(t){return t&&t.__esModule?t:{default:t}}var xDe=mS(),sw0=Kn(),Ij=_De(sw0),nw0=ms(),iw0=TDe(),WDe=_De(iw0);function PM(t){this.value=t}function kM(){}kM.prototype={nameLookup:function(e,r){return this.internalNameLookup(e,r)},depthedLookup:function(e){return[this.aliasable("container.lookup"),"(depths, ",JSON.stringify(e),")"]},compilerInfo:function(){var e=xDe.COMPILER_REVISION,r=xDe.REVISION_CHANGES[e];return[e,r]},appendToBuffer:function(e,r,s){return nw0.isArray(e)||(e=[e]),e=this.source.wrap(e,r),this.environment.isSimple?["return ",e,";"]:s?["buffer += ",e,";"]:(e.appendToBuffer=!0,e)},initializeBuffer:function(){return this.quotedString("")},internalNameLookup:function(e,r){return this.lookupPropertyFunctionIsUsed=!0,["lookupProperty(",e,",",JSON.stringify(r),")"]},lookupPropertyFunctionIsUsed:!1,compile:function(e,r,s,n){this.environment=e,this.options=r,this.stringParams=this.options.stringParams,this.trackIds=this.options.trackIds,this.precompile=!n,this.name=this.environment.name,this.isChild=!!s,this.context=s||{decorators:[],programs:[],environments:[]},this.preamble(),this.stackSlot=0,this.stackVars=[],this.aliases={},this.registers={list:[]},this.hashes=[],this.compileStack=[],this.inlineStack=[],this.blockParams=[],this.compileChildren(e,r),this.useDepths=this.useDepths||e.useDepths||e.useDecorators||this.options.compat,this.useBlockParams=this.useBlockParams||e.useBlockParams;var i=e.opcodes,o=void 0,a=void 0,c=void 0,u=void 0;for(c=0,u=i.length;c<u;c++)o=i[c],this.source.currentLocation=o.loc,a=a||o.loc,this[o.opcode].apply(this,o.args);if(this.source.currentLocation=a,this.pushSource(""),this.stackSlot||this.inlineStack.length||this.compileStack.length)throw new Ij.default("Compile completed with content left on stack");this.decorators.isEmpty()?this.decorators=void 0:(this.useDecorators=!0,this.decorators.prepend(["var decorators = container.decorators, ",this.lookupPropertyFunctionVarDeclaration(),`;
`]),this.decorators.push("return fn;"),n?this.decorators=Function.apply(this,["fn","props","container","depth0","data","blockParams","depths",this.decorators.merge()]):(this.decorators.prepend(`function(fn, props, container, depth0, data, blockParams, depths) {
`),this.decorators.push(`}
2026-05-28 10:25:16 +00:00
`),this.decorators=this.decorators.merge()));var p=this.createFunctionContext(n);if(this.isChild)return p;var l={compiler:this.compilerInfo(),main:p};this.decorators&&(l.main_d=this.decorators,l.useDecorators=!0);var A=this.context,h=A.programs,M=A.decorators;for(c=0,u=h.length;c<u;c++)l[c]=h[c],M[c]&&(l[c+"_d"]=M[c],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),n?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},preamble:function(){this.lastContext=0,this.source=new WDe.default(this.options.srcName),this.decorators=new WDe.default(this.options.srcName)},createFunctionContext:function(e){var r=this,s="",n=this.stackVars.concat(this.registers.list);n.length>0&&(s+=", "+n.join(", "));var i=0;Object.keys(this.aliases).forEach(function(c){var u=r.aliases[c];u.children&&u.referenceCount>1&&(s+=", alias"+ ++i+"="+c,u.children[0]="alias"+i)}),this.lookupPropertyFunctionIsUsed&&(s+=", "+this.lookupPropertyFunctionVarDeclaration());var o=["container","depth0","helpers","partials","data"];(this.useBlockParams||this.useDepths)&&o.push("blockParams"),this.useDepths&&o.push("depths");var a=this.mergeSource(s);return e?(o.push(a),Function.apply(this,o)):this.source.wrap(["function(",o.join(","),`) {
`,a,"}"])},mergeSource:function(e){var r=this.environment.isSimple,s=!this.forceBuffer,n=void 0,i=void 0,o=void 0,a=void 0;return this.source.each(function(c){c.appendToBuffer?(o?c.prepend(" + "):o=c,a=c):(o&&(i?o.prepend("buffer += "):n=!0,a.add(";"),o=a=void 0),i=!0,r||(s=!1))}),s?o?(o.prepend("return "),a.add(";")):i||this.source.push('return "";'):(e+=", buffer = "+(n?"":this.initializeBuffer()),o?(o.prepend("return buffer + "),a.add(";")):this.source.push("return buffer;")),e&&this.source.prepend("var "+e.substring(2)+(n?"":`;
`)),this.source.merge()},lookupPropertyFunctionVarDeclaration:function(){return`
lookupProperty = container.lookupProperty || function(parent, propertyName) {
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
return parent[propertyName];
}
return undefined
}
2026-05-28 10:25:16 +00:00
`.trim()},blockValue:function(e){var r=this.aliasable("container.hooks.blockHelperMissing"),s=[this.contextName(0)];this.setupHelperArgs(e,0,s);var n=this.popStack();s.splice(1,0,n),this.push(this.source.functionCall(r,"call",s))},ambiguousBlockValue:function(){var e=this.aliasable("container.hooks.blockHelperMissing"),r=[this.contextName(0)];this.setupHelperArgs("",0,r,!0),this.flushInline();var s=this.topStack();r.splice(1,0,s),this.pushSource(["if (!",this.lastHelper,") { ",s," = ",this.source.functionCall(e,"call",r),"}"])},appendContent:function(e){this.pendingContent?e=this.pendingContent+e:this.pendingLocation=this.source.currentLocation,this.pendingContent=e},append:function(){if(this.isInline())this.replaceStack(function(r){return[" != null ? ",r,' : ""']}),this.pushSource(this.appendToBuffer(this.popStack()));else{var e=this.popStack();this.pushSource(["if (",e," != null) { ",this.appendToBuffer(e,void 0,!0)," }"]),this.environment.isSimple&&this.pushSource(["else { ",this.appendToBuffer("''",void 0,!0)," }"])}},appendEscaped:function(){this.pushSource(this.appendToBuffer([this.aliasable("container.escapeExpression"),"(",this.popStack(),")"]))},getContext:function(e){this.lastContext=e},pushContext:function(){this.pushStackLiteral(this.contextName(this.lastContext))},lookupOnContext:function(e,r,s,n){var i=0;!n&&this.options.compat&&!this.lastContext?this.push(this.depthedLookup(e[i++])):this.pushContext(),this.resolvePath("context",e,i,r,s)},lookupBlockParam:function(e,r){this.useBlockParams=!0,this.push(["blockParams[",e[0],"][",e[1],"]"]),this.resolvePath("context",r,1)},lookupData:function(e,r,s){e?this.pushStackLiteral("container.data(data, "+e+")"):this.pushStackLiteral("data"),this.resolvePath("data",r,0,!0,s)},resolvePath:function(e,r,s,n,i){var o=this;if(this.options.strict||this.options.assumeObjects){this.push(ow0(this.options.strict&&i,this,r,s,e));return}for(var a=r.length,c=function(p){o.replaceStack(function(l){var A=o.nameLookup(l,r[p],e);return n?[" && ",A]:[" != null ? ",A," : ",l]})},u=s;u<a;u++)c(u)},resolvePossibleLambda:function(){this.push([this.aliasable("container.lambda"),"(",this.popStack(),", ",this.contextName(0),")"])},pushStringParam:function(e,r){this.pushContext(),this.pushString(r),r!=="SubExpression"&&(typeof e=="string"?this.pushString(e):this.pushStackLiteral(e))},emptyHash:function(e){this.trackIds&&this.push("{}"),this.stringParams&&(this.push("{}"),this.push("{}")),this.pushStackLiteral(e?"undefined":"{}")},pushHash:function(){this.hash&&this.hashes.push(this.hash),this.hash={values:{},types:[],contexts:[],ids:[]}},popHash:function(){var e=this.hash;this.hash=this.hashes.pop(),this.trackIds&&this.push(this.objectLiteral(e.ids)),this.stringParams&&(this.push(this.objectLiteral(e.contexts)),this.push(this.objectLiteral(e.types))),this.push(this.objectLiteral(e.values))},pushString:function(e){this.pushStackLiteral(this.quotedString(e))},pushLiteral:function(e){this.pushStackLiteral(e)},pushProgram:function(e){e!=null?this.pushStackLiteral(this.programExpression(e)):this.pushStackLiteral(null)},registerDecorator:function(e,r){var s=this.nameLookup("decorators",r,"decorator"),n=this.setupHelperArgs(r,e);this.decorators.push(["var decorator = ",s,";"]),this.decorators.push(['if (typeof decorator !== "function") { throw new Error(',this.quotedString('Missing decorator: "'+r+'"'),"); }"]),this.decorators.push(["fn = ",this.decorators.functionCall("decorator","",["fn","props","container",n])," || fn;"])},invokeHelper:function(e,r,s){var n=this.popStack(),i=this.setupHelper(e,r),o=[];s&&o.push(i.name),o.push(n),this.options.strict||o.push(this.aliasable("container.hooks.helperMissing"));var a=["(",this.itemsSeparatedBy(o,"||"),")"],c=this.source.functionCall(a,"call",i.callParams);this.push(c)},itemsSeparatedBy:function(e,r){var s=[];s.push(e[0]);for(var n=1;n<e.length;n++)s.push(r,e[n]);return s},invokeKnownHelper:function(e,r){var s=this.setupHelper(e,r);this.push(this.source.functionCall(s.name,"call",s.callParams))},invokeAmbiguous:function(e,r){this.useRegister("helper")
`,e};Lt.prototype.Program=function(t){var e="",r=t.body,s=void 0,n=void 0;if(t.blockParams){var i="BLOCK PARAMS: [";for(s=0,n=t.blockParams.length;s<n;s++)i+=" "+t.blockParams[s];i+=" ]",e+=this.pad(i)}for(s=0,n=r.length;s<n;s++)e+=this.accept(r[s]);return this.padding--,e};Lt.prototype.MustacheStatement=function(t){return this.pad("{{ "+this.SubExpression(t)+" }}")};Lt.prototype.Decorator=function(t){return this.pad("{{ DIRECTIVE "+this.SubExpression(t)+" }}")};Lt.prototype.BlockStatement=Lt.prototype.DecoratorBlock=function(t){var e="";return e+=this.pad((t.type==="DecoratorBlock"?"DIRECTIVE ":"")+"BLOCK:"),this.padding++,e+=this.pad(this.SubExpression(t)),t.program&&(e+=this.pad("PROGRAM:"),this.padding++,e+=this.accept(t.program),this.padding--),t.inverse&&(t.program&&this.padding++,e+=this.pad("{{^}}"),this.padding++,e+=this.accept(t.inverse),this.padding--,t.program&&this.padding--),this.padding--,e};Lt.prototype.PartialStatement=function(t){var e="PARTIAL:"+t.name.original;return t.params[0]&&(e+=" "+this.accept(t.params[0])),t.hash&&(e+=" "+this.accept(t.hash)),this.pad("{{> "+e+" }}")};Lt.prototype.PartialBlockStatement=function(t){var e="PARTIAL BLOCK:"+t.name.original;return t.params[0]&&(e+=" "+this.accept(t.params[0])),t.hash&&(e+=" "+this.accept(t.hash)),e+=" "+this.pad("PROGRAM:"),this.padding++,e+=this.accept(t.program),this.padding--,this.pad("{{> "+e+" }}")};Lt.prototype.ContentStatement=function(t){return this.pad("CONTENT[ '"+t.value+"' ]")};Lt.prototype.CommentStatement=function(t){return this.pad("{{! '"+t.value+"' }}")};Lt.prototype.SubExpression=function(t){for(var e=t.params,r=[],s=void 0,n=0,i=e.length;n<i;n++)r.push(this.accept(e[n]));return e="["+r.join(", ")+"]",s=t.hash?" "+this.accept(t.hash):"",this.accept(t.path)+" "+e+s};Lt.prototype.PathExpression=function(t){var e=t.parts.join("/");return(t.data?"@":"")+"PATH:"+e};Lt.prototype.StringLiteral=function(t){return'"'+t.value+'"'};Lt.prototype.NumberLiteral=function(t){return"NUMBER{"+t.value+"}"};Lt.prototype.BooleanLiteral=function(t){return"BOOLEAN{"+t.value+"}"};Lt.prototype.UndefinedLiteral=function(){return"UNDEFINED"};Lt.prototype.NullLiteral=function(){return"NULL"};Lt.prototype.Hash=function(t){for(var e=t.pairs,r=[],s=0,n=e.length;s<n;s++)r.push(this.accept(e[s]));return"HASH{"+r.join(", ")+"}"};Lt.prototype.HashPair=function(t){return t.key+"="+this.accept(t.value)}});var Sj=f((UNt,VDe)=>{var PS=UDe().default,XDe=GDe();PS.PrintVisitor=XDe.PrintVisitor;PS.print=XDe.print;VDe.exports=PS;function HDe(t,e){var r=require("fs"),s=r.readFileSync(e,"utf8");t.exports=PS.compile(s)}typeof require<"u"&&require.extensions&&(require.extensions[".handlebars"]=HDe,require.extensions[".hbs"]=HDe)});var XS=f(pA=>{"use strict";Object.defineProperty(pA,"__esModule",{value:!0});pA.Signature=pA.Envelope=void 0;pA.Envelope={fromJSON(t){return{payload:HS(t.payload)?Buffer.from(nqe(t.payload)):Buffer.alloc(0),payloadType:HS(t.payloadType)?globalThis.String(t.payloadType):"",signatures:globalThis.Array.isArray(t?.signatures)?t.signatures.map(e=>pA.Signature.fromJSON(e)):[]}},toJSON(t){let e={};return t.payload.length!==0&&(e.payload=iqe(t.payload)),t.payloadType!==""&&(e.payloadType=t.payloadType),t.signatures?.length&&(e.signatures=t.signatures.map(r=>pA.Signature.toJSON(r))),e}};pA.Signature={fromJSON(t){return{sig:HS(t.sig)?Buffer.from(nqe(t.sig)):Buffer.alloc(0),keyid:HS(t.keyid)?globalThis.String(t.keyid):""}},toJSON(t){let e={};return t.sig.length!==0&&(e.sig=iqe(t.sig)),t.keyid!==""&&(e.keyid=t.keyid),e}};function nqe(t){return Uint8Array.from(globalThis.Buffer.from(t,"base64"))}function iqe(t){return globalThis.Buffer.from(t).toString("base64")}function HS(t){return t!=null}});var aqe=f(VS=>{"use strict";Object.defineProperty(VS,"__esModule",{value:!0});VS.Timestamp=void 0;VS.Timestamp={fromJSON(t){return{seconds:oqe(t.seconds)?globalThis.String(t.seconds):"0",nanos:oqe(t.nanos)?globalThis.Number(t.nanos):0}},toJSON(t){let e={};return t.seconds!=="0"&&(e.seconds=t.seconds),t.nanos!==0&&(e.nanos=Math.round(t.nanos)),e}};function oqe(t){return t!=n
`).forEach(r=>{r.match(OS0)||r.match(ES0)||(e+=r)}),Buffer.from(e,"base64")}function CS0(t,e="CERTIFICATE"){let s=t.toString("base64").match(/.{1,64}/g)||"";return[`-----BEGIN ${e}-----`,...s,`-----END ${e}-----`].join(`
2026-05-22 12:36:07 +00:00
`).concat(`
2026-05-28 10:25:16 +00:00
`)}});var fN=f(bA=>{"use strict";Object.defineProperty(bA,"__esModule",{value:!0});bA.SHA2_HASH_ALGOS=bA.RSA_SIGNATURE_ALGOS=bA.ECDSA_SIGNATURE_ALGOS=void 0;bA.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"};bA.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"};bA.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 n$=f(hN=>{"use strict";Object.defineProperty(hN,"__esModule",{value:!0});hN.RFC3161TimestampVerificationError=void 0;var s$=class extends Error{};hN.RFC3161TimestampVerificationError=s$});var Xqe=f(Bc=>{"use strict";var BS0=Bc&&Bc.__createBinding||(Object.create?(function(t,e,r,s){s===void 0&&(s=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,s,n)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),DS0=Bc&&Bc.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),qS0=Bc&&Bc.__importStar||(function(){var t=function(e){return t=Object.getOwnPropertyNames||function(r){var s=[];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(s[s.length]=n);return s},t(e)};return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var s=t(e),n=0;n<s.length;n++)s[n]!=="default"&&BS0(r,e,s[n]);return DS0(r,e),r}})();Object.defineProperty(Bc,"__esModule",{value:!0});Bc.TSTInfo=void 0;var Hqe=qS0($M()),IS0=fN(),RS0=n$(),i$=class{root;constructor(e){this.root=e}get version(){return this.root.subs[0].toInteger()}get genTime(){return this.root.subs[4].toDate()}get messageImprintHashAlgorithm(){let e=this.messageImprintObj.subs[0].subs[0].toOID();return IS0.SHA2_HASH_ALGOS[e]}get messageImprintHashedMessage(){return this.messageImprintObj.subs[1].value}get raw(){return this.root.toDER()}verify(e){let r=Hqe.digest(this.messageImprintHashAlgorithm,e);if(!Hqe.bufferEqual(r,this.messageImprintHashedMessage))throw new RS0.RFC3161TimestampVerificationError("message imprint does not match artifact")}get messageImprintObj(){return this.root.subs[2]}};Bc.TSTInfo=i$});var jqe=f(Dc=>{"use strict";var wS0=Dc&&Dc.__createBinding||(Object.create?(function(t,e,r,s){s===void 0&&(s=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,s,n)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),SS0=Dc&&Dc.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),NS0=Dc&&Dc.__importStar||(function(){var t=function(e){return t=Object.getOwnPropertyNames||function(r){var s=[];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(s[s.length]=n);return s},t(e)};return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var s=t(e),n=0;n<s.length;n++)s[n]!=="default"&&wS0(r,e,s[n]);return SS0(r,e),r}})();Object.defineProperty(Dc,"__esModule",{value:!0});Dc.RFC3161Timestamp=void 0;var vS0=lN(),o$=NS0($M()),Vqe=fN(),kE=n$(),FS0=Xqe(),TS0="1.2.840.113549.1.7.2",xS0="1.2.840.113549.1.9.16.1.4",WS0="1.2.840.113549.1.9.4",a$=class t{root;constructor(e){this.root=e}static parse(e){let r=vS0.ASN1Obj.parseBuffer(e);return new t(r)}get status(){return this.pkiStatusInfoObj.subs[0].toInteger()}get contentType(){return this.contentTypeObj.toOID()}get eContentType(){return this.eContentTypeObj.toOID()}get signingTime(){return this.tstInfo.genTime}get signerIssuer(){return this.signerSidObj.subs[0].value}get signerSerialNumber(){return this.signerSidObj.subs[1].value}get signerDigestAlgorithm(){let e=this.signerDigestAlgorithmObj.subs[0].toOID();return Vqe.SHA2_HASH_ALGOS[e]}get signatureAlgorithm(){let e=this.signatureAlgorithmObj.subs[0].toOID();return Vqe
2026-05-22 12:36:07 +00:00
\v\f\r\x1B !"#$\u066A&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~\x7F\xB0\xB7\u2219\u221A\u2592\u2500\u2502\u253C\u2524\u252C\u251C\u2534\u2510\u250C\u2514\u2518\u03B2\u221E\u03C6\xB1\xBD\xBC\u2248\xAB\xBB\uFEF7\uFEF8\uFFFD\uFFFD\uFEFB\uFEFC\uFFFD\xA0\xAD\uFE82\xA3\xA4\uFE84\uFFFD\uFFFD\uFE8E\uFE8F\uFE95\uFE99\u060C\uFE9D\uFEA1\uFEA5\u0660\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\uFED1\u061B\uFEB1\uFEB5\uFEB9\u061F\xA2\uFE80\uFE81\uFE83\uFE85\uFECA\uFE8B\uFE8D\uFE91\uFE93\uFE97\uFE9B\uFE9F\uFEA3\uFEA7\uFEA9\uFEAB\uFEAD\uFEAF\uFEB3\uFEB7\uFEBB\uFEBF\uFEC1\uFEC5\uFECB\uFECF\xA6\xAC\xF7\xD7\uFEC9\u0640\uFED3\uFED7\uFEDB\uFEDF\uFEE3\uFEE7\uFEEB\uFEED\uFEEF\uFEF3\uFEBD\uFECC\uFECE\uFECD\uFEE1\uFE7D\u0651\uFEE5\uFEE9\uFEEC\uFEF0\uFEF2\uFED0\uFED5\uFEF5\uFEF6\uFEDD\uFED9\uFEF1\u25A0\uFFFD`},ibm864:"cp864",csibm864:"cp864",cp865:{type:"_sbcs",chars:"\xC7\xFC\xE9\xE2\xE4\xE0\xE5\xE7\xEA\xEB\xE8\xEF\xEE\xEC\xC4\xC5\xC9\xE6\xC6\xF4\xF6\xF2\xFB\xF9\xFF\xD6\xDC\xF8\xA3\xD8\u20A7\u0192\xE1\xED\xF3\xFA\xF1\xD1\xAA\xBA\xBF\u2310\xAC\xBD\xBC\xA1\xAB\xA4\u2591\u2592\u2593\u2502\u2524\u2561\u2562\u2556\u2555\u2563\u2551\u2557\u255D\u255C\u255B\u2510\u2514\u2534\u252C\u251C\u2500\u253C\u255E\u255F\u255A\u2554\u2569\u2566\u2560\u2550\u256C\u2567\u2568\u2564\u2565\u2559\u2558\u2552\u2553\u256B\u256A\u2518\u250C\u2588\u2584\u258C\u2590\u2580\u03B1\xDF\u0393\u03C0\u03A3\u03C3\xB5\u03C4\u03A6\u0398\u03A9\u03B4\u221E\u03C6\u03B5\u2229\u2261\xB1\u2265\u2264\u2320\u2321\xF7\u2248\xB0\u2219\xB7\u221A\u207F\xB2\u25A0\xA0"},ibm865:"cp865",csibm865:"cp865",cp866:{type:"_sbcs",chars:"\u0410\u0411\u0412\u0413\u0414\u0415\u0416\u0417\u0418\u0419\u041A\u041B\u041C\u041D\u041E\u041F\u0420\u0421\u0422\u0423\u0424\u0425\u0426\u0427\u0428\u0429\u042A\u042B\u042C\u042D\u042E\u042F\u0430\u0431\u0432\u0433\u0434\u0435\u0436\u0437\u0438\u0439\u043A\u043B\u043C\u043D\u043E\u043F\u2591\u2592\u2593\u2502\u2524\u2561\u2562\u2556\u2555\u2563\u2551\u2557\u255D\u255C\u255B\u2510\u2514\u2534\u252C\u251C\u2500\u253C\u255E\u255F\u255A\u2554\u2569\u2566\u2560\u2550\u256C\u2567\u2568\u2564\u2565\u2559\u2558\u2552\u2553\u256B\u256A\u2518\u250C\u2588\u2584\u258C\u2590\u2580\u0440\u0441\u0442\u0443\u0444\u0445\u0446\u0447\u0448\u0449\u044A\u044B\u044C\u044D\u044E\u044F\u0401\u0451\u0404\u0454\u0407\u0457\u040E\u045E\xB0\u2219\xB7\u221A\u2116\xA4\u25A0\xA0"},ibm866:"cp866",csibm866:"cp866",cp869:{type:"_sbcs",chars:"\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\u0386\uFFFD\xB7\xAC\xA6\u2018\u2019\u0388\u2015\u0389\u038A\u03AA\u038C\uFFFD\uFFFD\u038E\u03AB\xA9\u038F\xB2\xB3\u03AC\xA3\u03AD\u03AE\u03AF\u03CA\u0390\u03CC\u03CD\u0391\u0392\u0393\u0394\u0395\u0396\u0397\xBD\u0398\u0399\xAB\xBB\u2591\u2592\u2593\u2502\u2524\u039A\u039B\u039C\u039D\u2563\u2551\u2557\u255D\u039E\u039F\u2510\u2514\u2534\u252C\u251C\u2500\u253C\u03A0\u03A1\u255A\u2554\u2569\u2566\u2560\u2550\u256C\u03A3\u03A4\u03A5\u03A6\u03A7\u03A8\u03A9\u03B1\u03B2\u03B3\u2518\u250C\u2588\u2584\u03B4\u03B5\u2580\u03B6\u03B7\u03B8\u03B9\u03BA\u03BB\u03BC\u03BD\u03BE\u03BF\u03C0\u03C1\u03C3\u03C2\u03C4\u0384\xAD\xB1\u03C5\u03C6\u03C7\xA7\u03C8\u0385\xB0\xA8\u03C9\u03CB\u03B0\u03CE\u25A0\xA0"},ibm869:"cp869",csibm869:"cp869",cp922:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\xA1\xA2\xA3\xA4\xA5\xA6\xA7\xA8\xA9\xAA\xAB\xAC\xAD\xAE\u203E\xB0\xB1\xB2\xB3\xB4\xB5\xB6\xB7\xB8\xB9\xBA\xBB\xBC\xBD\xBE\xBF\xC0\xC1\xC2\xC3\xC4\xC5\xC6\xC7\xC8\xC9\xCA\xCB\xCC\xCD\xCE\xCF\u0160\xD1\xD2\xD3\xD4\xD5\xD6\xD7\xD8\xD9\xDA\xDB\xDC\xDD\u017D\xDF\xE0\xE1\xE2\xE3\xE4\xE5\xE6\xE7\xE8\xE9\xEA\xEB\xEC\xED\xEE\xEF\u0161\xF1\xF2\xF3\xF4\xF5\xF6\xF7\xF8\xF9\xFA\xFB\xFC\xFD\u017E\xFF"},ibm922:"cp922",csibm922:"cp922",cp1046:{type:"_sbcs",chars:"\uFE88\xD7\xF7\uF8F6\uF8F5\uF8F4\uF8F7\uFE71\x88\u25A0\u2502\u2500\u2510\u250C\u2514\u2518\uFE79\uFE7B\uFE7D\uFE7F\uFE77\uFE8A\uFEF0\uFEF3\uFEF2\uFECE\uFECF\uFED0\uFEF6\uFEF8\uFEFA\uFEFC\xA0\uF8FA\uF8F9\uF8F8\xA4\uF8FB\uFE8B\uFE91\uFE9
\v\f\r\u1EE8\u1EF0\u1EF2\u1EF6\u1EF8\xDD\u1EF4\x1B !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~\x7F\xC0\u1EA2\xC3\xC1\u1EA0\u1EB6\u1EAC\xC8\u1EBA\u1EBC\xC9\u1EB8\u1EC6\xCC\u1EC8\u0128\xCD\u1ECA\xD2\u1ECE\xD5\xD3\u1ECC\u1ED8\u1EDC\u1EDE\u1EE0\u1EDA\u1EE2\xD9\u1EE6\u0168\xA0\u0102\xC2\xCA\xD4\u01A0\u01AF\u0110\u0103\xE2\xEA\xF4\u01A1\u01B0\u0111\u1EB0\u0300\u0309\u0303\u0301\u0323\xE0\u1EA3\xE3\xE1\u1EA1\u1EB2\u1EB1\u1EB3\u1EB5\u1EAF\u1EB4\u1EAE\u1EA6\u1EA8\u1EAA\u1EA4\u1EC0\u1EB7\u1EA7\u1EA9\u1EAB\u1EA5\u1EAD\xE8\u1EC2\u1EBB\u1EBD\xE9\u1EB9\u1EC1\u1EC3\u1EC5\u1EBF\u1EC7\xEC\u1EC9\u1EC4\u1EBE\u1ED2\u0129\xED\u1ECB\xF2\u1ED4\u1ECF\xF5\xF3\u1ECD\u1ED3\u1ED5\u1ED7\u1ED1\u1ED9\u1EDD\u1EDF\u1EE1\u1EDB\u1EE3\xF9\u1ED6\u1EE7\u0169\xFA\u1EE5\u1EEB\u1EED\u1EEF\u1EE9\u1EF1\u1EF3\u1EF7\u1EF9\xFD\u1EF5\u1ED0`},georgianacademy:{type:"_sbcs",chars:"\x80\x81\u201A\u0192\u201E\u2026\u2020\u2021\u02C6\u2030\u0160\u2039\u0152\x8D\x8E\x8F\x90\u2018\u2019\u201C\u201D\u2022\u2013\u2014\u02DC\u2122\u0161\u203A\u0153\x9D\x9E\u0178\xA0\xA1\xA2\xA3\xA4\xA5\xA6\xA7\xA8\xA9\xAA\xAB\xAC\xAD\xAE\xAF\xB0\xB1\xB2\xB3\xB4\xB5\xB6\xB7\xB8\xB9\xBA\xBB\xBC\xBD\xBE\xBF\u10D0\u10D1\u10D2\u10D3\u10D4\u10D5\u10D6\u10D7\u10D8\u10D9\u10DA\u10DB\u10DC\u10DD\u10DE\u10DF\u10E0\u10E1\u10E2\u10E3\u10E4\u10E5\u10E6\u10E7\u10E8\u10E9\u10EA\u10EB\u10EC\u10ED\u10EE\u10EF\u10F0\u10F1\u10F2\u10F3\u10F4\u10F5\u10F6\xE7\xE8\xE9\xEA\xEB\xEC\xED\xEE\xEF\xF0\xF1\xF2\xF3\xF4\xF5\xF6\xF7\xF8\xF9\xFA\xFB\xFC\xFD\xFE\xFF"},georgianps:{type:"_sbcs",chars:"\x80\x81\u201A\u0192\u201E\u2026\u2020\u2021\u02C6\u2030\u0160\u2039\u0152\x8D\x8E\x8F\x90\u2018\u2019\u201C\u201D\u2022\u2013\u2014\u02DC\u2122\u0161\u203A\u0153\x9D\x9E\u0178\xA0\xA1\xA2\xA3\xA4\xA5\xA6\xA7\xA8\xA9\xAA\xAB\xAC\xAD\xAE\xAF\xB0\xB1\xB2\xB3\xB4\xB5\xB6\xB7\xB8\xB9\xBA\xBB\xBC\xBD\xBE\xBF\u10D0\u10D1\u10D2\u10D3\u10D4\u10D5\u10D6\u10F1\u10D7\u10D8\u10D9\u10DA\u10DB\u10DC\u10F2\u10DD\u10DE\u10DF\u10E0\u10E1\u10E2\u10F3\u10E3\u10E4\u10E5\u10E6\u10E7\u10E8\u10E9\u10EA\u10EB\u10EC\u10ED\u10EE\u10F4\u10EF\u10F0\u10F5\xE6\xE7\xE8\xE9\xEA\xEB\xEC\xED\xEE\xEF\xF0\xF1\xF2\xF3\xF4\xF5\xF6\xF7\xF8\xF9\xFA\xFB\xFC\xFD\xFE\xFF"},pt154:{type:"_sbcs",chars:"\u0496\u0492\u04EE\u0493\u201E\u2026\u04B6\u04AE\u04B2\u04AF\u04A0\u04E2\u04A2\u049A\u04BA\u04B8\u0497\u2018\u2019\u201C\u201D\u2022\u2013\u2014\u04B3\u04B7\u04A1\u04E3\u04A3\u049B\u04BB\u04B9\xA0\u040E\u045E\u0408\u04E8\u0498\u04B0\xA7\u0401\xA9\u04D8\xAB\xAC\u04EF\xAE\u049C\xB0\u04B1\u0406\u0456\u0499\u04E9\xB6\xB7\u0451\u2116\u04D9\xBB\u0458\u04AA\u04AB\u049D\u0410\u0411\u0412\u0413\u0414\u0415\u0416\u0417\u0418\u0419\u041A\u041B\u041C\u041D\u041E\u041F\u0420\u0421\u0422\u0423\u0424\u0425\u0426\u0427\u0428\u0429\u042A\u042B\u042C\u042D\u042E\u042F\u0430\u0431\u0432\u0433\u0434\u0435\u0436\u0437\u0438\u0439\u043A\u043B\u043C\u043D\u043E\u043F\u0440\u0441\u0442\u0443\u0444\u0445\u0446\u0447\u0448\u0449\u044A\u044B\u044C\u044D\u044E\u044F"},viscii:{type:"_sbcs",chars:`\0\u1EB2\u1EB4\u1EAA\x07\b
\v\f\r\u1EF6\u1EF8\x1B\u1EF4 !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~\x7F\u1EA0\u1EAE\u1EB0\u1EB6\u1EA4\u1EA6\u1EA8\u1EAC\u1EBC\u1EB8\u1EBE\u1EC0\u1EC2\u1EC4\u1EC6\u1ED0\u1ED2\u1ED4\u1ED6\u1ED8\u1EE2\u1EDA\u1EDC\u1EDE\u1ECA\u1ECE\u1ECC\u1EC8\u1EE6\u0168\u1EE4\u1EF2\xD5\u1EAF\u1EB1\u1EB7\u1EA5\u1EA7\u1EA9\u1EAD\u1EBD\u1EB9\u1EBF\u1EC1\u1EC3\u1EC5\u1EC7\u1ED1\u1ED3\u1ED5\u1ED7\u1EE0\u01A0\u1ED9\u1EDD\u1EDF\u1ECB\u1EF0\u1EE8\u1EEA\u1EEC\u01A1\u1EDB\u01AF\xC0\xC1\xC2\xC3\u1EA2\u0102\u1EB3\u1EB5\xC8\xC9\xCA\u1EBA\xCC\xCD\u0128\u1EF3\u0110\u1EE9\xD2\xD3\xD4\u1EA1\u1EF7\u1EEB\u1EED\xD9\xDA\u1EF9\u1EF5\xDD\u1EE1\u01B0\xE0\xE1\xE2\xE3\u1EA3\u0103\u1EEF\u1EAB\xE8\xE9\xEA\u1EBB\xEC\xED\u0129\u1EC9\u0111\u1EF1\xF2\xF3\xF4\xF5\u1ECF\u1ECD\u1EE5\xF9\xFA\u0169\u1EE7\xFD\u1EE3\u1EEE`},iso646cn:{type:"_sbcs",chars:`\0\x07\b
\v\f\r\x1B !"#\xA5%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}\u203E\x7F\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD`},iso646jp:{type:"_sbcs",chars:`\0\x07\b
2026-05-28 10:25:16 +00:00
\v\f\r\x1B !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\xA5]^_\`abcdefghijklmnopqrstuvwxyz{|}\u203E\x7F\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD`},hproman8:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\xC0\xC2\xC8\xCA\xCB\xCE\xCF\xB4\u02CB\u02C6\xA8\u02DC\xD9\xDB\u20A4\xAF\xDD\xFD\xB0\xC7\xE7\xD1\xF1\xA1\xBF\xA4\xA3\xA5\xA7\u0192\xA2\xE2\xEA\xF4\xFB\xE1\xE9\xF3\xFA\xE0\xE8\xF2\xF9\xE4\xEB\xF6\xFC\xC5\xEE\xD8\xC6\xE5\xED\xF8\xE6\xC4\xEC\xD6\xDC\xC9\xEF\xDF\xD4\xC1\xC3\xE3\xD0\xF0\xCD\xCC\xD3\xD2\xD5\xF5\u0160\u0161\xDA\u0178\xFF\xDE\xFE\xB7\xB5\xB6\xBE\u2014\xBC\xBD\xAA\xBA\xAB\u25A0\xBB\xB1\uFFFD"},macintosh:{type:"_sbcs",chars:"\xC4\xC5\xC7\xC9\xD1\xD6\xDC\xE1\xE0\xE2\xE4\xE3\xE5\xE7\xE9\xE8\xEA\xEB\xED\xEC\xEE\xEF\xF1\xF3\xF2\xF4\xF6\xF5\xFA\xF9\xFB\xFC\u2020\xB0\xA2\xA3\xA7\u2022\xB6\xDF\xAE\xA9\u2122\xB4\xA8\u2260\xC6\xD8\u221E\xB1\u2264\u2265\xA5\xB5\u2202\u2211\u220F\u03C0\u222B\xAA\xBA\u2126\xE6\xF8\xBF\xA1\xAC\u221A\u0192\u2248\u2206\xAB\xBB\u2026\xA0\xC0\xC3\xD5\u0152\u0153\u2013\u2014\u201C\u201D\u2018\u2019\xF7\u25CA\xFF\u0178\u2044\xA4\u2039\u203A\uFB01\uFB02\u2021\xB7\u201A\u201E\u2030\xC2\xCA\xC1\xCB\xC8\xCD\xCE\xCF\xCC\xD3\xD4\uFFFD\xD2\xDA\xDB\xD9\u0131\u02C6\u02DC\xAF\u02D8\u02D9\u02DA\xB8\u02DD\u02DB\u02C7"},ascii:{type:"_sbcs",chars:"\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD"},tis620:{type:"_sbcs",chars:"\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\u0E01\u0E02\u0E03\u0E04\u0E05\u0E06\u0E07\u0E08\u0E09\u0E0A\u0E0B\u0E0C\u0E0D\u0E0E\u0E0F\u0E10\u0E11\u0E12\u0E13\u0E14\u0E15\u0E16\u0E17\u0E18\u0E19\u0E1A\u0E1B\u0E1C\u0E1D\u0E1E\u0E1F\u0E20\u0E21\u0E22\u0E23\u0E24\u0E25\u0E26\u0E27\u0E28\u0E29\u0E2A\u0E2B\u0E2C\u0E2D\u0E2E\u0E2F\u0E30\u0E31\u0E32\u0E33\u0E34\u0E35\u0E36\u0E37\u0E38\u0E39\u0E3A\uFFFD\uFFFD\uFFFD\uFFFD\u0E3F\u0E40\u0E41\u0E42\u0E43\u0E44\u0E45\u0E46\u0E47\u0E48\u0E49\u0E4A\u0E4B\u0E4C\u0E4D\u0E4E\u0E4F\u0E50\u0E51\u0E52\u0E53\u0E54\u0E55\u0E56\u0E57\u0E58\u0E59\u0E5A\u0E5B\uFFFD\uFFFD\uFFFD\uFFFD"}}});var cRe=f(aRe=>{"use strict";var $Y=Mp().Buffer;aRe._dbcs=gp;var gr=-1,oRe=-2,Zi=-10,Ds=-1e3,um=new Array(256),ay=-1;for(e6=0;e6<256;e6++)um[e6]=gr;var e6;function gp(t,e){if(this.encodingName=t.encodingName,!t)throw new Error("DBCS codec is called without the data.");if(!t.table)throw new Error("Encoding '"+this.encodingName+"' has no data.");var r=t.table();this.decodeTables=[]
2026-05-22 12:36:07 +00:00
Wanted: ${this.expectedSize}
2026-05-28 10:25:16 +00:00
Found: ${this.size}`);s.code="EBADSIZE",s.found=this.size,s.expected=this.expectedSize,s.sri=this.sri,this.emit("error",s)}else if(this.sri&&!r){let s=new Error(`${this.sri} integrity checksum failed when using ${this.algorithm}: wanted ${this.digests} but got ${e}. (${this.size} bytes)`);s.code="EINTEGRITY",s.found=e,s.expected=this.digests,s.algorithm=this.algorithm,s.sri=this.sri,this.emit("error",s)}else this.#t=this.size,this.emit("size",this.size),this.#e=e,this.emit("integrity",e),r&&(this.#s=r,this.emit("verified",r))}},Cp=class{get isHash(){return!0}constructor(e,r){let s=r?.strict;this.source=e.trim(),this.digest="",this.algorithm="",this.options=[];let n=this.source.match(s?$v0:jv0);if(!n||s&&!gJ.includes(n[1])||!f5e.includes(n[1]))return;this.algorithm=n[1],this.digest=n[2];let i=n[3];i&&(this.options=i.slice(1).split("?"))}hexDigest(){return this.digest&&Buffer.from(this.digest,"base64").toString("hex")}toJSON(){return this.toString()}match(e,r){let s=ni(e,r);if(!s)return!1;if(s.isIntegrity){let n=s.pickAlgorithm(r,[this.algorithm]);if(!n)return!1;let i=s[n].find(o=>o.digest===this.digest);return i||!1}return s.digest===this.digest?s:!1}toString(e){return e?.strict&&!(gJ.includes(this.algorithm)&&this.digest.match(Vv0)&&this.options.every(r=>r.match(Yv0)))?"":`${this.algorithm}-${this.digest}${hy(this.options)}`}};function d5e(t,e,r,s){let n=t!=="",i=!1,o="",a=s.length-1;for(let u=0;u<a;u++){let p=Cp.prototype.toString.call(s[u],r);p&&(i=!0,o+=p,o+=e)}let c=Cp.prototype.toString.call(s[a],r);return c&&(i=!0,o+=c),n&&i?t+e+o:t+o}var rf=class{get isIntegrity(){return!0}toJSON(){return this.toString()}isEmpty(){return Object.keys(this).length===0}toString(e){let r=e?.sep||" ",s="";if(e?.strict){r=r.replace(/\S+/g," ");for(let n of gJ)this[n]&&(s=d5e(s,r,e,this[n]))}else for(let n of Object.keys(this))s=d5e(s,r,e,this[n]);return s}concat(e,r){let s=typeof e=="string"?e:dy(e,r);return ni(`${this.toString(r)} ${s}`,r)}hexDigest(){return ni(this,{single:!0}).hexDigest()}merge(e,r){let s=ni(e,r);for(let n in s)if(this[n]){if(!this[n].find(i=>s[n].find(o=>i.digest===o.digest)))throw new Error("hashes do not match, cannot update integrity")}else this[n]=s[n]}match(e,r){let s=ni(e,r);if(!s)return!1;let n=s.pickAlgorithm(r,Object.keys(this));return!!n&&this[n].find(i=>s[n].find(o=>i.digest===o.digest))||!1}pickAlgorithm(e,r){let s=e?.pickAlgorithm||sF0,n=Object.keys(this);return r?.length&&(n=n.filter(i=>r.includes(i))),n.length?n.reduce((i,o)=>s(i,o)||i):null}};xc.exports.parse=ni;function ni(t,e){if(!t)return null;if(typeof t=="string")return mJ(t,e);if(t.algorithm&&t.digest){let r=new rf;return r[t.algorithm]=[t],mJ(dy(r,e),e)}else return mJ(dy(t,e),e)}function mJ(t,e){if(e?.single)return new Cp(t,e);let r=t.trim().split(/\s+/).reduce((s,n)=>{let i=new Cp(n,e);if(i.algorithm&&i.digest){let o=i.algorithm;Object.keys(s).includes(o)||(s[o]=[]),s[o].push(i)}return s},new rf);return r.isEmpty()?null:r}xc.exports.stringify=dy;function dy(t,e){return t.algorithm&&t.digest?Cp.prototype.toString.call(t,e):typeof t=="string"?dy(ni(t,e),e):rf.prototype.toString.call(t,e)}xc.exports.fromHex=Jv0;function Jv0(t,e,r){let s=hy(r?.options);return ni(`${e}-${Buffer.from(t,"hex").toString("base64")}${s}`,r)}xc.exports.fromData=Kv0;function Kv0(t,e){let r=e?.algorithms||[...OJ],s=hy(e?.options);return r.reduce((n,i)=>{let o=fy.createHash(i).update(t).digest("base64"),a=new Cp(`${i}-${o}${s}`,e);if(a.algorithm&&a.digest){let c=a.algorithm;n[c]||(n[c]=[]),n[c].push(a)}return n},new rf)}xc.exports.fromStream=Zv0;function Zv0(t,e){let r=EJ(e);return new Promise((s,n)=>{t.pipe(r),t.on("error",n),r.on("error",n);let i;r.on("integrity",o=>{i=o}),r.on("end",()=>s(i)),r.resume()})}xc.exports.checkData=eF0;function eF0(t,e,r){if(e=ni(e,r),!e||!Object.keys(e).length){if(r?.error)throw Object.assign(new Error("No valid integrity hashes to check against"),{code:"EINTEGRITY"});return!1}let s=e.pickAlgorithm(r),n=fy.createHash(s).update(t).digest("base64"),i=ni({algorithm:s,digest:n}),o=i.match(e,r);if(r=r||{},o||!r.error)return o;if(typeof r.size=
2026-05-22 12:36:07 +00:00
Wanted: ${r.size}
2026-05-28 10:25:16 +00:00
Found: ${t.length}`);throw a.code="EBADSIZE",a.found=t.length,a.expected=r.size,a.sri=e,a}else{let a=new Error(`Integrity checksum failed when using ${s}: Wanted ${e}, but got ${i}. (${t.length} bytes)`);throw a.code="EINTEGRITY",a.found=i,a.expected=e,a.algorithm=s,a.sri=e,a}}xc.exports.checkStream=tF0;function tF0(t,e,r){if(r=r||Object.create(null),r.integrity=e,e=ni(e,r),!e||!Object.keys(e).length)return Promise.reject(Object.assign(new Error("No valid integrity hashes to check against"),{code:"EINTEGRITY"}));let s=EJ(r);return new Promise((n,i)=>{t.pipe(s),t.on("error",i),s.on("error",i);let o;s.on("verified",a=>{o=a}),s.on("end",()=>n(o)),s.resume()})}xc.exports.integrityStream=EJ;function EJ(t=Object.create(null)){return new zJ(t)}xc.exports.create=rF0;function rF0(t){let e=t?.algorithms||[...OJ],r=hy(t?.options),s=e.map(fy.createHash);return{update:function(n,i){return s.forEach(o=>o.update(n,i)),this},digest:function(){return e.reduce((i,o)=>{let a=s.shift().digest("base64"),c=new Cp(`${o}-${a}${r}`,t);return i[c.algorithm]||(i[c.algorithm]=[]),i[c.algorithm].push(c),i},new rf)}}}function sF0(t,e){return A5e.indexOf(t.toLowerCase())>=A5e.indexOf(e.toLowerCase())?t:e}});var CJ=f((BFt,g5e)=>{var h5e=lJ(),b5e=MJ(),nF0=by(),M5e={shared:!1,ignoreCargoCult:!0},iF0={status:200,headers:{}},Am=t=>{let e={method:t.method,url:t.url,headers:{},compress:t.compress};return t.headers.forEach((r,s)=>{e.headers[s]=r}),e},m5e=t=>{let e={status:t.status,headers:{}};return t.headers.forEach((r,s)=>{e.headers[s]=r}),e},yJ=class{constructor({entry:e,request:r,response:s,options:n}){this.entry=e,this.request=Am(r),this.response=m5e(s),this.options=n,this.policy=new h5e(this.request,this.response,M5e),this.entry&&(this.policy._responseTime=this.entry.metadata.time)}static storable(e,r){return!r.cachePath||r.cache==="no-store"||!["GET","HEAD"].includes(e.method)?!1:new h5e(Am(e),iF0,M5e).storable()}satisfies(e){let r=Am(e);if(this.request.headers.host!==r.headers.host||this.request.compress!==r.compress)return!1;let s=new b5e(this.request),n=new b5e(r);return JSON.stringify(s.mediaTypes())!==JSON.stringify(n.mediaTypes())||JSON.stringify(s.languages())!==JSON.stringify(n.languages())||JSON.stringify(s.encodings())!==JSON.stringify(n.encodings())?!1:this.options.integrity?nF0.parse(this.options.integrity).match(this.entry.integrity):!0}storable(){return this.policy.storable()}get mustRevalidate(){return!!this.policy._rescc["must-revalidate"]}needsRevalidation(e){let r=Am(e);return r.method="GET",!this.policy.satisfiesWithoutRevalidation(r)}responseHeaders(){return this.policy.responseHeaders()}revalidationHeaders(e){let r=Am(e);return this.policy.revalidationHeaders(r)}revalidated(e,r){let s=Am(e),n=m5e(r);return!this.policy.revalidatedPolicy(s,n).modified}};g5e.exports=yJ});var O5e=f((DFt,z5e)=>{var BJ=class extends Error{constructor(e){super(`request to ${e} failed: cache mode is 'only-if-cached' but no cached response is available.`),this.code="ENOTCACHED"}};z5e.exports={NotCachedError:BJ}});var S5e=f((qFt,w5e)=>{"use strict";var E5e=typeof process=="object"&&process?process:{stdout:null,stderr:null},oF0=require("events"),y5e=require("stream"),C5e=require("string_decoder").StringDecoder,Bp=Symbol("EOF"),Dp=Symbol("maybeEmitEnd"),CA=Symbol("emittedEnd"),d6=Symbol("emittingEnd"),My=Symbol("emittedError"),f6=Symbol("closed"),B5e=Symbol("read"),h6=Symbol("flush"),D5e=Symbol("flushChunk"),un=Symbol("encoding"),qp=Symbol("decoder"),b6=Symbol("flowing"),my=Symbol("paused"),dm=Symbol("resume"),Y1=Symbol("bufferLength"),DJ=Symbol("bufferPush"),qJ=Symbol("bufferShift"),Qr=Symbol("objectMode"),Pr=Symbol("destroyed"),IJ=Symbol("emitData"),q5e=Symbol("emitEnd"),RJ=Symbol("emitEnd2"),Ip=Symbol("async"),gy=t=>Promise.resolve().then(t),I5e=global._MP_NO_ITERATOR_SYMBOLS_!=="1",aF0=I5e&&Symbol.asyncIterator||Symbol("asyncIterator not implemented"),cF0=I5e&&Symbol.iterator||Symbol("iterator not implemented"),uF0=t=>t==="end"||t==="finish"||t==="prefinish",pF0=t=>t instanceof ArrayBuffer||typeof t=="object"&&t.constructor&&t.constructor.name==="ArrayB
2026-05-22 12:36:07 +00:00
Wanted: ${this.expectedSize}
2026-05-28 10:25:16 +00:00
Found: ${this.size}`);s.code="EBADSIZE",s.found=this.size,s.expected=this.expectedSize,s.sri=this.sri,this.emit("error",s)}else if(this.sri&&!r){let s=new Error(`${this.sri} integrity checksum failed when using ${this.algorithm}: wanted ${this.digests} but got ${e}. (${this.size} bytes)`);s.code="EINTEGRITY",s.found=e,s.expected=this.digests,s.algorithm=this.algorithm,s.sri=this.sri,this.emit("error",s)}else this.#t=this.size,this.emit("size",this.size),this.#e=e,this.emit("integrity",e),r&&(this.#s=r,this.emit("verified",r))}},vp=class{get isHash(){return!0}constructor(e,r){let s=r?.strict;this.source=e.trim(),this.digest="",this.algorithm="",this.options=[];let n=this.source.match(s?BF0:CF0);if(!n||s&&!VJ.includes(n[1]))return;this.algorithm=n[1],this.digest=n[2];let i=n[3];i&&(this.options=i.slice(1).split("?"))}hexDigest(){return this.digest&&Buffer.from(this.digest,"base64").toString("hex")}toJSON(){return this.toString()}match(e,r){let s=oi(e,r);if(!s)return!1;if(s.isIntegrity){let n=s.pickAlgorithm(r,[this.algorithm]);if(!n)return!1;let i=s[n].find(o=>o.digest===this.digest);return i||!1}return s.digest===this.digest?s:!1}toString(e){return e?.strict&&!(VJ.includes(this.algorithm)&&this.digest.match(yF0)&&this.options.every(r=>r.match(DF0)))?"":`${this.algorithm}-${this.digest}${Dy(this.options)}`}};function J5e(t,e,r,s){let n=t!=="",i=!1,o="",a=s.length-1;for(let u=0;u<a;u++){let p=vp.prototype.toString.call(s[u],r);p&&(i=!0,o+=p,o+=e)}let c=vp.prototype.toString.call(s[a],r);return c&&(i=!0,o+=c),n&&i?t+e+o:t+o}var of=class{get isIntegrity(){return!0}toJSON(){return this.toString()}isEmpty(){return Object.keys(this).length===0}toString(e){let r=e?.sep||" ",s="";if(e?.strict){r=r.replace(/\S+/g," ");for(let n of VJ)this[n]&&(s=J5e(s,r,e,this[n]))}else for(let n of Object.keys(this))s=J5e(s,r,e,this[n]);return s}concat(e,r){let s=typeof e=="string"?e:Cy(e,r);return oi(`${this.toString(r)} ${s}`,r)}hexDigest(){return oi(this,{single:!0}).hexDigest()}merge(e,r){let s=oi(e,r);for(let n in s)if(this[n]){if(!this[n].find(i=>s[n].find(o=>i.digest===o.digest)))throw new Error("hashes do not match, cannot update integrity")}else this[n]=s[n]}match(e,r){let s=oi(e,r);if(!s)return!1;let n=s.pickAlgorithm(r,Object.keys(this));return!!n&&this[n]&&s[n]&&this[n].find(i=>s[n].find(o=>i.digest===o.digest))||!1}pickAlgorithm(e,r){let s=e?.pickAlgorithm||FF0,n=Object.keys(this).filter(i=>r?.length?r.includes(i):!0);return n.length?n.reduce((i,o)=>s(i,o)||i):null}};Wc.exports.parse=oi;function oi(t,e){if(!t)return null;if(typeof t=="string")return XJ(t,e);if(t.algorithm&&t.digest){let r=new of;return r[t.algorithm]=[t],XJ(Cy(r,e),e)}else return XJ(Cy(t,e),e)}function XJ(t,e){if(e?.single)return new vp(t,e);let r=t.trim().split(/\s+/).reduce((s,n)=>{let i=new vp(n,e);if(i.algorithm&&i.digest){let o=i.algorithm;s[o]||(s[o]=[]),s[o].push(i)}return s},new of);return r.isEmpty()?null:r}Wc.exports.stringify=Cy;function Cy(t,e){return t.algorithm&&t.digest?vp.prototype.toString.call(t,e):typeof t=="string"?Cy(oi(t,e),e):of.prototype.toString.call(t,e)}Wc.exports.fromHex=qF0;function qF0(t,e,r){let s=Dy(r?.options);return oi(`${e}-${Buffer.from(t,"hex").toString("base64")}${s}`,r)}Wc.exports.fromData=IF0;function IF0(t,e){let r=e?.algorithms||[...$J],s=Dy(e?.options);return r.reduce((n,i)=>{let o=By.createHash(i).update(t).digest("base64"),a=new vp(`${i}-${o}${s}`,e);if(a.algorithm&&a.digest){let c=a.algorithm;n[c]||(n[c]=[]),n[c].push(a)}return n},new of)}Wc.exports.fromStream=RF0;function RF0(t,e){let r=YJ(e);return new Promise((s,n)=>{t.pipe(r),t.on("error",n),r.on("error",n);let i;r.on("integrity",o=>{i=o}),r.on("end",()=>s(i)),r.resume()})}Wc.exports.checkData=wF0;function wF0(t,e,r){if(e=oi(e,r),!e||!Object.keys(e).length){if(r?.error)throw Object.assign(new Error("No valid integrity hashes to check against"),{code:"EINTEGRITY"});return!1}let s=e.pickAlgorithm(r),n=By.createHash(s).update(t).digest("base64"),i=oi({algorithm:s,digest:n}),o=i.match(e,r);if(r=r||{},o||!r.error)return o;if(typeof r.size=="number"&&t.length!==r.size){le
2026-05-22 12:36:07 +00:00
Wanted: ${r.size}
2026-05-28 10:25:16 +00:00
Found: ${t.length}`);throw a.code="EBADSIZE",a.found=t.length,a.expected=r.size,a.sri=e,a}else{let a=new Error(`Integrity checksum failed when using ${s}: Wanted ${e}, but got ${i}. (${t.length} bytes)`);throw a.code="EINTEGRITY",a.found=i,a.expected=e,a.algorithm=s,a.sri=e,a}}Wc.exports.checkStream=SF0;function SF0(t,e,r){if(r=r||Object.create(null),r.integrity=e,e=oi(e,r),!e||!Object.keys(e).length)return Promise.reject(Object.assign(new Error("No valid integrity hashes to check against"),{code:"EINTEGRITY"}));let s=YJ(r);return new Promise((n,i)=>{t.pipe(s),t.on("error",i),s.on("error",i);let o;s.on("verified",a=>{o=a}),s.on("end",()=>n(o)),s.resume()})}Wc.exports.integrityStream=YJ;function YJ(t=Object.create(null)){return new jJ(t)}Wc.exports.create=NF0;function NF0(t){let e=t?.algorithms||[...$J],r=Dy(t?.options),s=e.map(By.createHash);return{update:function(n,i){return s.forEach(o=>o.update(n,i)),this},digest:function(){return e.reduce((i,o)=>{let a=s.shift().digest("base64"),c=new vp(`${o}-${a}${r}`,t);if(c.algorithm&&c.digest){let u=c.algorithm;i[u]||(i[u]=[]),i[u].push(c)}return i},new of)}}}var vF0=By.getHashes(),K5e=["md5","whirlpool","sha1","sha224","sha256","sha384","sha512","sha3","sha3-256","sha3-384","sha3-512","sha3_256","sha3_384","sha3_512"].filter(t=>vF0.includes(t));function FF0(t,e){return K5e.indexOf(t.toLowerCase())>=K5e.indexOf(e.toLowerCase())?t:e}});var Z5e=f((vFt,JJ)=>{(function(){var t;function e(r,s){var n=this instanceof e?this:t;if(n.reset(s),typeof r=="string"&&r.length>0&&n.hash(r),n!==this)return n}e.prototype.hash=function(r){var s,n,i,o,a;switch(a=r.length,this.len+=a,n=this.k1,i=0,this.rem){case 0:n^=a>i?r.charCodeAt(i++)&65535:0;case 1:n^=a>i?(r.charCodeAt(i++)&65535)<<8:0;case 2:n^=a>i?(r.charCodeAt(i++)&65535)<<16:0;case 3:n^=a>i?(r.charCodeAt(i)&255)<<24:0,n^=a>i?(r.charCodeAt(i++)&65280)>>8:0}if(this.rem=a+this.rem&3,a-=this.rem,a>0){for(s=this.h1;n=n*11601+(n&65535)*3432906752&4294967295,n=n<<15|n>>>17,n=n*13715+(n&65535)*461832192&4294967295,s^=n,s=s<<13|s>>>19,s=s*5+3864292196&4294967295,!(i>=a);)n=r.charCodeAt(i++)&65535^(r.charCodeAt(i++)&65535)<<8^(r.charCodeAt(i++)&65535)<<16,o=r.charCodeAt(i++),n^=(o&255)<<24^(o&65280)>>8;switch(n=0,this.rem){case 3:n^=(r.charCodeAt(i+2)&65535)<<16;case 2:n^=(r.charCodeAt(i+1)&65535)<<8;case 1:n^=r.charCodeAt(i)&65535}this.h1=s}return this.k1=n,this},e.prototype.result=function(){var r,s;return r=this.k1,s=this.h1,r>0&&(r=r*11601+(r&65535)*3432906752&4294967295,r=r<<15|r>>>17,r=r*13715+(r&65535)*461832192&4294967295,s^=r),s^=this.len,s^=s>>>16,s=s*51819+(s&65535)*2246770688&4294967295,s^=s>>>13,s=s*44597+(s&65535)*3266445312&4294967295,s^=s>>>16,s>>>0},e.prototype.reset=function(r){return this.h1=typeof r=="number"?r:0,this.rem=this.k1=this.len=0,this},t=new e,typeof JJ<"u"?JJ.exports=e:this.MurmurHash3=e})()});var twe=f((FFt,ewe)=>{"use strict";var TF0=Z5e();ewe.exports=function(t){if(t){var e=new TF0(t);return("00000000"+e.result().toString(16)).slice(-8)}else return(Math.random().toString(16)+"0000000").slice(2,10)}});var KJ=f((TFt,rwe)=>{var xF0=require("path"),WF0=twe();rwe.exports=function(t,e,r){return xF0.join(t,(e?e+"-":"")+WF0(r))}});var ZJ=f((xFt,_F0)=>{_F0.exports={name:"cacache",version:"20.0.1","cache-version":{content:"2",index:"5"},description:"Fast, fault-tolerant, cross-platform, disk-based, data-agnostic, content-addressable cache.",main:"lib/index.js",files:["bin/","lib/"],scripts:{test:"tap",snap:"tap",coverage:"tap","test-docker":'docker run -it --rm --name pacotest -v "$PWD":/tmp -w /tmp node:latest npm test',lint:"npm run eslint",npmclilint:"npmcli-lint",lintfix:"npm run eslint -- --fix",postsnap:"npm run lintfix --",postlint:"template-oss-check",posttest:"npm run lint","template-oss-apply":"template-oss-apply --force",eslint:'eslint "**/*.{js,cjs,ts,mjs,jsx,tsx}"'},repository:{type:"git",url:"git+https://github.com/npm/cacache.git"},keywords:["cache","caching","content-addressable","sri","sri hash","subresource integrity","cache","storage","store","file store","filesystem","disk cache","disk storage"],license
`+o.map(A=>{let h=JSON.stringify(A);return`${k6(h)} ${h}`}).join(`
`),c=async()=>{let A=tL0(Lc.join(t,"tmp"),s.tmpPrefix);return await wK(Lc.dirname(A),{recursive:!0}),{target:A,moved:!1}},u=async A=>{if(!A.moved)return UNe(A.target,{recursive:!0,force:!0})},p=async A=>{await K_0(A.target,a,{flag:"wx"}),await wK(Lc.dirname(n),{recursive:!0}),await iL0(A.target,n),A.moved=!0},l=await c();try{await p(l)}finally{await u(l)}return o.reverse().map(A=>U6(t,A,!0))}ai.exports.insert=GNe;async function GNe(t,e,r,s={}){let{metadata:n,size:i,time:o}=s,a=Ly(t,e),c={key:e,integrity:r&&eL0.stringify(r),time:o||Date.now(),size:i,metadata:n};try{await wK(Lc.dirname(a),{recursive:!0});let u=JSON.stringify(c);await $_0(a,`
${k6(u)} ${u}`)}catch(u){if(u.code==="ENOENT")return;throw u}return U6(t,c)}ai.exports.find=aL0;async function aL0(t,e){let r=Ly(t,e);try{return(await P6(r)).reduce((n,i)=>i&&i.key===e?U6(t,i):n,null)}catch(s){if(s.code==="ENOENT")return null;throw s}}ai.exports.delete=cL0;function cL0(t,e,r={}){if(!r.removeFully)return GNe(t,e,null,r);let s=Ly(t,e);return UNe(s,{recursive:!0,force:!0})}ai.exports.lsStream=HNe;function HNe(t){let e=SK(t),r=new Z_0({objectMode:!0});return Promise.resolve().then(async()=>{let{default:s}=await Promise.resolve().then(()=>(Q6(),L6)),n=await RK(e);return await s(n,async i=>{let o=Lc.join(e,i),a=await RK(o);await s(a,async c=>{let u=Lc.join(o,c),p=await RK(u);await s(p,async l=>{let A=Lc.join(u,l);try{let M=(await P6(A)).reduce((g,y)=>(g.set(y.key,y),g),new Map);for(let g of M.values()){let y=U6(t,g);y&&r.write(y)}}catch(h){if(h.code==="ENOENT")return;throw h}},{concurrency:IK})},{concurrency:IK})},{concurrency:IK}),r.end(),r}).catch(s=>r.emit("error",s)),r}ai.exports.ls=uL0;async function uL0(t){return(await HNe(t).collect()).reduce((r,s)=>(r[s.key]=s,r),{})}ai.exports.bucketEntries=P6;async function P6(t,e){let r=await Y_0(t,"utf8");return pL0(r,e)}function pL0(t){let e=[];return t.split(`
`).forEach(r=>{if(!r)return;let s=r.split(" ");if(!s[1]||k6(s[1])!==s[0])return;let n;try{n=JSON.parse(s[1])}catch{}n&&e.push(n)}),e}ai.exports.bucketDir=SK;function SK(t){return Lc.join(t,`index-v${nL0}`)}ai.exports.bucketPath=Ly;function Ly(t,e){let r=XNe(e);return Lc.join.apply(Lc,[SK(t)].concat(sL0(r)))}ai.exports.hashKey=XNe;function XNe(t){return VNe(t,"sha256")}ai.exports.hashEntry=k6;function k6(t){return VNe(t,"sha1")}function VNe(t,e){return j_0.createHash(e).update(t).digest("hex")}function U6(t,e,r){return!e.integrity&&!r?null:{key:e.key,integrity:e.integrity,path:e.integrity?rL0(t,e.integrity):void 0,size:e.size,time:e.time,metadata:e.metadata}}function RK(t){return J_0(t).catch(e=>{if(e.code==="ENOENT"||e.code==="ENOTDIR")return[];throw e})}});var Dm=f(H6=>{"use strict";Object.defineProperty(H6,"__esModule",{value:!0});H6.LRUCache=void 0;var lL0=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,$Ne=new Set,NK=typeof process=="object"&&process?process:{},YNe=(t,e,r,s)=>{typeof NK.emitWarning=="function"?NK.emitWarning(t,e,r,s):console.error(`[${r}] ${e}: ${t}`)},G6=globalThis.AbortController,jNe=globalThis.AbortSignal;if(typeof G6>"u"){jNe=class{onabort;_onabort=[];reason;aborted=!1;addEventListener(s,n){this._onabort.push(n)}},G6=class{constructor(){e()}signal=new jNe;abort(s){if(!this.signal.aborted){this.signal.reason=s,this.signal.aborted=!0;for(let n of this.signal._onabort)n(s);this.signal.onabort?.(s)}}};let t=NK.env?.LRU_CACHE_IGNORE_AC_WARNING!=="1",e=()=>{t&&(t=!1,YNe("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.","NO_ABORT_CONTROLLER","ENOTSUP",e))}}var AL0=t=>!$Ne.has(t),DA=t=>t&&t===Math.floor(t)&&t>0&&isFinite(t),JNe=t=>DA(t)?t<=Math.pow(2,8)?Uint8Array:t<=Math.pow(2,16)?Uint16Array:t<=Math.pow(2,32)?Uint32Array:t<=Number.MAX_SAFE_INTEGER?Bm:null:null,Bm=class extends Array{constructor(e){super(e),this.fill(0)}},vK=class t{heap;length;static#e=!1;static create(e){let r=JNe(e);if(!r)return[];t.#e=!0;let s=new t(e,r);return t.#e=!1,s}constructor(e,r){if(!t.#e)throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new r(e),this.length=0}push(e){this.heap[this.length++]=e}pop(){return this.heap[--this.length]}},FK=class t{#e;#t;#s;#r;#n;#i;#c;#a;get perf(){return this.#a}ttl;ttlResolution;ttlAutopurge;updateAgeOnGet;updateAgeOnHas;allowStale;noDisposeOnSet;noUpdateTTL;maxEntrySize;sizeCalculation;noDeleteOnFetchRejection;noDeleteOnStaleGet;allowStaleOnFetchAbort;allowStaleOnFetchRejection;ignoreFetchAbort;#o;#l;#d;#A;#u;#b;#O;#M;#m;#B;#g;#y;#C;#h;#E;#D;#z;#p;static unsafeExposeInternals(e){return{starts:e.#C,ttls:e.#h,sizes:e.#y,keyMap:e.#d,keyList:e.#A,valList:e.#u,next:e.#b,prev:e.#O,get head(){return e.#M},get tail(){return e.#m},free:e.#B,isBackgroundFetch:r=>e.#f(r),backgroundFetch:(r,s,n,i)=>e.#U(r,s,n,i),moveToTail:r=>e.#W(r),indexes:r=>e.#w(r),rindexes:r=>e.#N(r),isStale:r=>e.#I(r)}}get max(){return this.#e}get maxSize(){return this.#t}get calculatedSize(){return this.#l}get size(){return this.#o}get fetchMethod(){return this.#i}get memoMethod(){return this.#c}get dispose(){return this.#s}get onInsert(){return this.#r}get disposeAfter(){return this.#n}constructor(e){let{max:r=0,ttl:s,ttlResolution:n=1,ttlAutopurge:i,updateAgeOnGet:o,updateAgeOnHas:a,allowStale:c,dispose:u,onInsert:p,disposeAfter:l,noDisposeOnSet:A,noUpdateTTL:h,maxSize:M=0,maxEntrySize:g=0,sizeCalculation:y,fetchMethod:O,memoMethod:B,noDeleteOnFetchRejection:I,noDeleteOnStaleGet:R,allowStaleOnFetchRejection:N,allowStaleOnFetchAbort:T,ignoreFetchAbort:W,perf:j}=e;if(j!==void 0&&typeof j?.now!="function")throw new TypeError("perf option must have a now() method if specified");if(this.#a=j??lL0,r!==
2026-05-22 12:36:07 +00:00
Wanted: ${t}
2026-05-28 10:25:16 +00:00
Found: ${e}`);return r.code="EINTEGRITY",r.expected=t,r.found=e,r}});var g6e=f((KTt,jK)=>{"use strict";var h6e=Cm(),b6e=Qy(),M6e=f6e(),jL0=zy(),{PassThrough:$L0}=TJ(),YL0=nf(),m6e=t=>({algorithms:["sha512"],...t});jK.exports=JL0;async function JL0(t,e,r,s={}){let{memoize:n}=s;s=m6e(s);let i=await M6e(t,r,s),o=await h6e.insert(t,e,i.integrity,{...s,size:i.size});return n&&b6e.put(t,o,r,s),i.integrity}jK.exports.stream=KL0;function KL0(t,e,r={}){let{memoize:s}=r;r=m6e(r);let n,i,o,a,c=new YL0;if(s){let p=new $L0().on("collect",l=>{a=l});c.push(p)}let u=M6e.stream(t,r).on("integrity",p=>{n=p}).on("size",p=>{i=p}).on("error",p=>{o=p});return c.push(u),c.push(new jL0({async flush(){if(!o){let p=await h6e.insert(t,e,n,{...r,size:i});s&&a&&b6e.put(t,p,a,r),c.emit("integrity",n),c.emit("size",i)}}})),c}});var O6e=f(hf=>{"use strict";Object.defineProperty(hf,"__esModule",{value:!0});hf.range=hf.balanced=void 0;var ZL0=(t,e,r)=>{let s=t instanceof RegExp?z6e(t,r):t,n=e instanceof RegExp?z6e(e,r):e,i=s!==null&&n!=null&&(0,hf.range)(s,n,r);return i&&{start:i[0],end:i[1],pre:r.slice(0,i[0]),body:r.slice(i[0]+s.length,i[1]),post:r.slice(i[1]+n.length)}};hf.balanced=ZL0;var z6e=(t,e)=>{let r=e.match(t);return r?r[0]:null},e80=(t,e,r)=>{let s,n,i,o,a,c=r.indexOf(t),u=r.indexOf(e,c+1),p=c;if(c>=0&&u>0){if(t===e)return[c,u];for(s=[],i=r.length;p>=0&&!a;){if(p===c)s.push(p),c=r.indexOf(t,p+1);else if(s.length===1){let l=s.pop();l!==void 0&&(a=[l,u])}else n=s.pop(),n!==void 0&&n<i&&(i=n,o=u),u=r.indexOf(e,p+1);p=c<u&&c>=0?c:u}s.length&&o!==void 0&&(a=[i,o])}return a};hf.range=e80});var I6e=f(Tm=>{"use strict";Object.defineProperty(Tm,"__esModule",{value:!0});Tm.EXPANSION_MAX=void 0;Tm.expand=d80;var E6e=O6e(),y6e="\0SLASH"+Math.random()+"\0",C6e="\0OPEN"+Math.random()+"\0",YK="\0CLOSE"+Math.random()+"\0",B6e="\0COMMA"+Math.random()+"\0",D6e="\0PERIOD"+Math.random()+"\0",t80=new RegExp(y6e,"g"),r80=new RegExp(C6e,"g"),s80=new RegExp(YK,"g"),n80=new RegExp(B6e,"g"),i80=new RegExp(D6e,"g"),o80=/\\\\/g,a80=/\\{/g,c80=/\\}/g,u80=/\\,/g,p80=/\\./g;Tm.EXPANSION_MAX=1e5;function $K(t){return isNaN(t)?t.charCodeAt(0):parseInt(t,10)}function l80(t){return t.replace(o80,y6e).replace(a80,C6e).replace(c80,YK).replace(u80,B6e).replace(p80,D6e)}function A80(t){return t.replace(t80,"\\").replace(r80,"{").replace(s80,"}").replace(n80,",").replace(i80,".")}function q6e(t){if(!t)return[""];let e=[],r=(0,E6e.balanced)("{","}",t);if(!r)return t.split(",");let{pre:s,body:n,post:i}=r,o=s.split(",");o[o.length-1]+="{"+n+"}";let a=q6e(i);return i.length&&(o[o.length-1]+=a.shift(),o.push.apply(o,a)),e.push.apply(e,o),e}function d80(t,e={}){if(!t)return[];let{max:r=Tm.EXPANSION_MAX}=e;return t.slice(0,2)==="{}"&&(t="\\{\\}"+t.slice(2)),Vy(l80(t),r,!0).map(A80)}function f80(t){return"{"+t+"}"}function h80(t){return/^-?0\d/.test(t)}function b80(t,e){return t<=e}function M80(t,e){return t>=e}function Vy(t,e,r){let s=[],n=(0,E6e.balanced)("{","}",t);if(!n)return[t];let i=n.pre,o=n.post.length?Vy(n.post,e,!1):[""];if(/\$$/.test(n.pre))for(let a=0;a<o.length&&a<e;a++){let c=i+"{"+n.body+"}"+o[a];s.push(c)}else{let a=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(n.body),c=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(n.body),u=a||c,p=n.body.indexOf(",")>=0;if(!u&&!p)return n.post.match(/,(?!,).*\}/)?(t=n.pre+"{"+n.body+YK+n.post,Vy(t,e,!0)):[t];let l;if(u)l=n.body.split(/\.\./);else if(l=q6e(n.body),l.length===1&&l[0]!==void 0&&(l=Vy(l[0],e,!1).map(f80),l.length===1))return o.map(h=>n.pre+l[0]+h);let A;if(u&&l[0]!==void 0&&l[1]!==void 0){let h=$K(l[0]),M=$K(l[1]),g=Math.max(l[0].length,l[1].length),y=l.length===3&&l[2]!==void 0?Math.abs($K(l[2])):1,O=b80;M<h&&(y*=-1,O=M80);let I=l.some(h80);A=[];for(let R=h;O(R,M);R+=y){let N;if(c)N=String.fromCharCode(R),N==="\\"&&(N="");else if(N=String(R),I){let T=g-N.length;if(T>0){let W=new Array(T+1).join("0");R<0?N="-"+W+N.slice(1):N=W+N}}A.push(N)}}else{A=[];for(let h=0;h<l.length;h++)A.push.apply(A,Vy(l[h],e,!1))}for(let h=0;h<A.length;h++)for(let M=0;M<o.length&&s.length<e;M++){let g=i+A[h]+o[M];(!r||u||g)&&s.push(g)}}return s}});var R6
2026-05-22 12:36:07 +00:00
globstar while`,e,A,r,h,M),this.matchOne(e.slice(A),r.slice(h),s))return this.debug("globstar found match!",A,c,M),!0;if(M==="."||M===".."||!n.dot&&M.charAt(0)==="."){this.debug("dot detected!",e,A,r,h);break}this.debug("globstar swallow a segment, and continue"),A++}return!!(s&&(this.debug(`
2026-05-28 10:25:16 +00:00
>>> no match, partial?`,e,A,r,h),A===c))}let g;if(typeof p=="string"?(g=l===p,this.debug("string match",p,l,g)):(g=p.test(l),this.debug("pattern match",p,l,g)),!g)return!1}if(o===c&&a===u)return!0;if(o===c)return s;if(a===u)return o===c-1&&e[o]==="";throw new Error("wtf?")}braceExpand(){return(0,ye.braceExpand)(this.pattern,this.options)}parse(e){(0,pv.assertValidPattern)(e);let r=this.options;if(e==="**")return ye.GLOBSTAR;if(e==="")return"";let s,n=null;(s=e.match(X80))?n=r.dot?j80:V80:(s=e.match(x80))?n=(r.nocase?r.dot?Q80:L80:r.dot?_80:W80)(s[1]):(s=e.match($80))?n=(r.nocase?r.dot?J80:Y80:r.dot?K80:Z80)(s):(s=e.match(P80))?n=r.dot?U80:k80:(s=e.match(G80))&&(n=H80);let i=W6e.AST.fromGlob(e,this.options).toMMPattern();return n&&typeof i=="object"&&Reflect.defineProperty(i,"test",{value:n}),i}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;let e=this.set;if(!e.length)return this.regexp=!1,this.regexp;let r=this.options,s=r.noglobstar?tQ0:r.dot?rQ0:sQ0,n=new Set(r.nocase?["i"]:[]),i=e.map(c=>{let u=c.map(l=>{if(l instanceof RegExp)for(let A of l.flags.split(""))n.add(A);return typeof l=="string"?uQ0(l):l===ye.GLOBSTAR?ye.GLOBSTAR:l._src});u.forEach((l,A)=>{let h=u[A+1],M=u[A-1];l!==ye.GLOBSTAR||M===ye.GLOBSTAR||(M===void 0?h!==void 0&&h!==ye.GLOBSTAR?u[A+1]="(?:\\/|"+s+"\\/)?"+h:u[A]=s:h===void 0?u[A-1]=M+"(?:\\/|\\/"+s+")?":h!==ye.GLOBSTAR&&(u[A-1]=M+"(?:\\/|\\/"+s+"\\/)"+h,u[A+1]=ye.GLOBSTAR))});let p=u.filter(l=>l!==ye.GLOBSTAR);if(this.partial&&p.length>=1){let l=[];for(let A=1;A<=p.length;A++)l.push(p.slice(0,A).join("/"));return"(?:"+l.join("|")+")"}return p.join("/")}).join("|"),[o,a]=e.length>1?["(?:",")"]:["",""];i="^"+o+i+a+"$",this.partial&&(i="^(?:\\/|"+o+i.slice(1,-1)+a+")$"),this.negate&&(i="^(?!"+i+").+$");try{this.regexp=new RegExp(i,[...n].join(""))}catch{this.regexp=!1}return this.regexp}slashSplit(e){return this.preserveMultipleSlashes?e.split("/"):this.isWindows&&/^\/\/[^\/]+/.test(e)?["",...e.split(/\/+/)]:e.split(/\/+/)}match(e,r=this.partial){if(this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return e==="";if(e==="/"&&r)return!0;let s=this.options;this.isWindows&&(e=e.split("\\").join("/"));let n=this.slashSplit(e);this.debug(this.pattern,"split",n);let i=this.set;this.debug(this.pattern,"set",i);let o=n[n.length-1];if(!o)for(let a=n.length-2;!o&&a>=0;a--)o=n[a];for(let a=0;a<i.length;a++){let c=i[a],u=n;if(s.matchBase&&c.length===1&&(u=[o]),this.matchOne(u,c,r))return s.flipNegate?!0:!this.negate}return s.flipNegate?!1:this.negate}static defaults(e){return ye.minimatch.defaults(e).Minimatch}};ye.Minimatch=bf;var pQ0=ZK();Object.defineProperty(ye,"AST",{enumerable:!0,get:function(){return pQ0.AST}});var lQ0=eZ();Object.defineProperty(ye,"escape",{enumerable:!0,get:function(){return lQ0.escape}});var AQ0=iv();Object.defineProperty(ye,"unescape",{enumerable:!0,get:function(){return AQ0.unescape}});ye.minimatch.AST=W6e.AST;ye.minimatch.Minimatch=bf;ye.minimatch.escape=v80.escape;ye.minimatch.unescape=F80.unescape});var X6e=f(ws=>{"use strict";var dQ0=ws&&ws.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(ws,"__esModule",{value:!0});ws.Minipass=ws.isWritable=ws.isReadable=ws.isStream=void 0;var P6e=typeof process=="object"&&process?process:{stdout:null,stderr:null},aZ=require("node:events"),H6e=dQ0(require("node:stream")),fQ0=require("node:string_decoder"),hQ0=t=>!!t&&typeof t=="object"&&(t instanceof Mv||t instanceof H6e.default||(0,ws.isReadable)(t)||(0,ws.isWritable)(t));ws.isStream=hQ0;var bQ0=t=>!!t&&typeof t=="object"&&t instanceof aZ.EventEmitter&&typeof t.pipe=="function"&&t.pipe!==H6e.default.Writable.prototype.pipe;ws.isReadable=bQ0;var MQ0=t=>!!t&&typeof t=="object"&&t instanceof aZ.EventEmitter&&typeof t.write=="function"&&typeof t.end=="function";ws.isWritable=MQ0;var kp=Symbol("EOF"),Up=Symbol("maybeEmitEnd"),SA=Symbol("emittedEnd"),lv=Symbol("emittingEnd"),$y=Symbol("emittedError"),Av=Symbol("closed"),k6e=Symbol("read"),dv=Symbol("flush"),U6e=Symbol("flushChunk"),sa=Symbol("encoding"),xm=Symbol("decoder"),Z1=Sy
2026-05-22 12:36:07 +00:00
\r
2026-05-28 10:25:16 +00:00
`);if(A===-1){Vv("have not received end of HTTP headers yet..."),i();return}let h=l.slice(0,A).toString("ascii").split(`\r
`),M=h.shift();if(!M)return t.destroy(),r(new Error("No header received from proxy CONNECT response"));let g=M.split(" "),y=+g[1],O=g.slice(2).join(" "),B={};for(let I of h){if(!I)continue;let R=I.indexOf(":");if(R===-1)return t.destroy(),r(new Error(`Invalid header from proxy CONNECT response: "${I}"`));let N=I.slice(0,R).toLowerCase(),T=I.slice(R+1).trimStart(),W=B[N];typeof W=="string"?B[N]=[W,T]:Array.isArray(W)?W.push(T):B[N]=T}Vv("got proxy server response: %o %o",M,B),o(),e({connect:{statusCode:y,statusText:O,headers:B},buffered:l})}t.on("error",c),t.on("end",a),i()})}Um.parseProxyResponse=Rk0});var dFe=f(oo=>{"use strict";var wk0=oo&&oo.__createBinding||(Object.create?(function(t,e,r,s){s===void 0&&(s=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,s,n)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),Sk0=oo&&oo.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),lFe=oo&&oo.__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)&&wk0(e,t,r);return Sk0(e,t),e},AFe=oo&&oo.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(oo,"__esModule",{value:!0});oo.HttpsProxyAgent=void 0;var mC=lFe(require("net")),uFe=lFe(require("tls")),Nk0=AFe(require("assert")),vk0=AFe(e2()),Fk0=ZO(),Tk0=require("url"),xk0=cFe(),gC=(0,vk0.default)("https-proxy-agent"),jv=class extends Fk0.Agent{constructor(e,r){super(r),this.options={path:void 0},this.proxy=typeof e=="string"?new Tk0.URL(e):e,this.proxyHeaders=r?.headers??{},gC("Creating new HttpsProxyAgent instance: %o",this.proxy.href);let s=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),n=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={ALPNProtocols:["http/1.1"],...r?pFe(r,"headers"):null,host:s,port:n}}async connect(e,r){let{proxy:s}=this;if(!r.host)throw new TypeError('No "host" provided');let n;if(s.protocol==="https:"){gC("Creating `tls.Socket`: %o",this.connectOpts);let A=this.connectOpts.servername||this.connectOpts.host;n=uFe.connect({...this.connectOpts,servername:A&&mC.isIP(A)?void 0:A})}else gC("Creating `net.Socket`: %o",this.connectOpts),n=mC.connect(this.connectOpts);let i=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders},o=mC.isIPv6(r.host)?`[${r.host}]`:r.host,a=`CONNECT ${o}:${r.port} HTTP/1.1\r
2026-05-22 12:36:07 +00:00
`;if(s.username||s.password){let A=`${decodeURIComponent(s.username)}:${decodeURIComponent(s.password)}`;i["Proxy-Authorization"]=`Basic ${Buffer.from(A).toString("base64")}`}i.Host=`${o}:${r.port}`,i["Proxy-Connection"]||(i["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let A of Object.keys(i))a+=`${A}: ${i[A]}\r
2026-05-28 10:25:16 +00:00
`;let c=(0,xk0.parseProxyResponse)(n);n.write(`${a}\r
`);let{connect:u,buffered:p}=await c;if(e.emit("proxyConnect",u),this.emit("proxyConnect",u,e),u.statusCode===200){if(e.once("socket",Wk0),r.secureEndpoint){gC("Upgrading socket connection to TLS");let A=r.servername||r.host;return uFe.connect({...pFe(r,"host","path","port"),socket:n,servername:mC.isIP(A)?void 0:A})}return n}n.destroy();let l=new mC.Socket({writable:!1});return l.readable=!0,e.once("socket",A=>{gC("Replaying proxy buffer for failed request"),(0,Nk0.default)(A.listenerCount("data")>0),A.push(p),A.push(null)}),l}};jv.protocols=["http","https"];oo.HttpsProxyAgent=jv;function Wk0(t){t.resume()}function pFe(t,...e){let r={},s;for(s in t)e.includes(s)||(r[s]=t[s]);return r}});var MFe=f(Xp=>{"use strict";Object.defineProperty(Xp,"__esModule",{value:!0});var fFe=require("buffer"),Ef={INVALID_ENCODING:"Invalid encoding provided. Please specify a valid encoding the internal Node.js Buffer supports.",INVALID_SMARTBUFFER_SIZE:"Invalid size provided. Size must be a valid integer greater than zero.",INVALID_SMARTBUFFER_BUFFER:"Invalid Buffer provided in SmartBufferOptions.",INVALID_SMARTBUFFER_OBJECT:"Invalid SmartBufferOptions object supplied to SmartBuffer constructor or factory methods.",INVALID_OFFSET:"An invalid offset value was provided.",INVALID_OFFSET_NON_NUMBER:"An invalid offset value was provided. A numeric value is required.",INVALID_LENGTH:"An invalid length value was provided.",INVALID_LENGTH_NON_NUMBER:"An invalid length value was provived. A numeric value is required.",INVALID_TARGET_OFFSET:"Target offset is beyond the bounds of the internal SmartBuffer data.",INVALID_TARGET_LENGTH:"Specified length value moves cursor beyong the bounds of the internal SmartBuffer data.",INVALID_READ_BEYOND_BOUNDS:"Attempted to read beyond the bounds of the managed data.",INVALID_WRITE_BEYOND_BOUNDS:"Attempted to write beyond the bounds of the managed data."};Xp.ERRORS=Ef;function _k0(t){if(!fFe.Buffer.isEncoding(t))throw new Error(Ef.INVALID_ENCODING)}Xp.checkEncoding=_k0;function hFe(t){return typeof t=="number"&&isFinite(t)&&kk0(t)}Xp.isFiniteInteger=hFe;function bFe(t,e){if(typeof t=="number"){if(!hFe(t)||t<0)throw new Error(e?Ef.INVALID_OFFSET:Ef.INVALID_LENGTH)}else throw new Error(e?Ef.INVALID_OFFSET_NON_NUMBER:Ef.INVALID_LENGTH_NON_NUMBER)}function Lk0(t){bFe(t,!1)}Xp.checkLengthValue=Lk0;function Qk0(t){bFe(t,!0)}Xp.checkOffsetValue=Qk0;function Pk0(t,e){if(t<0||t>e.length)throw new Error(Ef.INVALID_TARGET_OFFSET)}Xp.checkTargetOffset=Pk0;function kk0(t){return typeof t=="number"&&isFinite(t)&&Math.floor(t)===t}function Uk0(t){if(typeof BigInt>"u")throw new Error("Platform does not support JS BigInt type.");if(typeof fFe.Buffer.prototype[t]>"u")throw new Error(`Platform does not support Buffer.prototype.${t}.`)}Xp.bigIntAndBufferInt64Check=Uk0});var gFe=f(YZ=>{"use strict";Object.defineProperty(YZ,"__esModule",{value:!0});var s0=MFe(),mFe=4096,Gk0="utf8",$Z=class t{constructor(e){if(this.length=0,this._encoding=Gk0,this._writeOffset=0,this._readOffset=0,t.isSmartBufferOptions(e))if(e.encoding&&(s0.checkEncoding(e.encoding),this._encoding=e.encoding),e.size)if(s0.isFiniteInteger(e.size)&&e.size>0)this._buff=Buffer.allocUnsafe(e.size);else throw new Error(s0.ERRORS.INVALID_SMARTBUFFER_SIZE);else if(e.buff)if(Buffer.isBuffer(e.buff))this._buff=e.buff,this.length=e.buff.length;else throw new Error(s0.ERRORS.INVALID_SMARTBUFFER_BUFFER);else this._buff=Buffer.allocUnsafe(mFe);else{if(typeof e<"u")throw new Error(s0.ERRORS.INVALID_SMARTBUFFER_OBJECT);this._buff=Buffer.allocUnsafe(mFe)}}static fromSize(e,r){return new this({size:e,encoding:r})}static fromBuffer(e,r){return new this({buff:e,encoding:r})}static fromOptions(e){return new this(e)}static isSmartBufferOptions(e){let r=e;return r&&(r.encoding!==void 0||r.size!==void 0||r.buff!==void 0)}readInt8(e){return this._readNumberValue(Buffer.prototype.readInt8,1,e)}readInt16BE(e){return this._readNumberValue(Buffer.prototype.readInt16BE,2,e)}readInt16LE(e){return this._readNumberValue(Buffer.prototype.readInt16LE,2,e)}readInt32BE(e){return this._readNumberValue(Buffe
2026-05-22 12:36:07 +00:00
`).join(`
2026-05-28 10:25:16 +00:00
`+i),t.push(n+"m+"+aT.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=hV0()+e+" "+t[0]}function hV0(){return ar.inspectOpts.hideDate?"":new Date().toISOString()+" "}function bV0(...t){return process.stderr.write(oT.formatWithOptions(ar.inspectOpts,...t)+`
`)}function MV0(t){t?process.env.DEBUG=t:delete process.env.DEBUG}function mV0(){return process.env.DEBUG}function gV0(t){t.inspectOpts={};let e=Object.keys(ar.inspectOpts);for(let r=0;r<e.length;r++)t.inspectOpts[e[r]]=ar.inspectOpts[e[r]]}aT.exports=V0e()(ar);var{formatters:cWe}=aT.exports;cWe.o=function(t){return this.inspectOpts.colors=this.useColors,oT.inspect(t,this.inspectOpts).split(`
`).map(e=>e.trim()).join(" ")};cWe.O=function(t){return this.inspectOpts.colors=this.useColors,oT.inspect(t,this.inspectOpts)}});var $0e=f((M_t,j0e)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?j0e.exports=aWe():j0e.exports=uWe()});var lWe=f((m_t,pWe)=>{var zV0=require("dns"),OV0=["if-modified-since","if-none-match","if-unmodified-since","if-match","if-range"],EV0=t=>{let{strictSSL:e,...r}={...t};if(r.method=r.method?r.method.toUpperCase():"GET",e==null?r.rejectUnauthorized=process.env.NODE_TLS_REJECT_UNAUTHORIZED!=="0":r.rejectUnauthorized=e!==!1,!r.retry)r.retry={retries:0};else if(typeof r.retry=="string"){let s=parseInt(r.retry,10);isFinite(s)?r.retry={retries:s}:r.retry={retries:0}}else typeof r.retry=="number"?r.retry={retries:r.retry}:r.retry={retries:0,...r.retry};return r.dns={ttl:300*1e3,lookup:zV0.lookup,...r.dns},r.cache=r.cache||"default",r.cache==="default"&&Object.keys(r.headers||{}).some(n=>OV0.includes(n.toLowerCase()))&&(r.cache="no-store"),r.cacheAdditionalHeaders=r.cacheAdditionalHeaders||[],r.cacheManager&&!r.cachePath&&(r.cachePath=r.cacheManager),r};pWe.exports=EV0});var J0e=f((g_t,bWe)=>{var AWe=lJ(),dWe=MJ(),yV0=by(),fWe={shared:!1,ignoreCargoCult:!0},CV0={status:200,headers:{}},Mg=t=>{let e={method:t.method,url:t.url,headers:{},compress:t.compress};return t.headers.forEach((r,s)=>{e.headers[s]=r}),e},hWe=t=>{let e={status:t.status,headers:{}};return t.headers.forEach((r,s)=>{e.headers[s]=r}),e},Y0e=class{constructor({entry:e,request:r,response:s,options:n}){this.entry=e,this.request=Mg(r),this.response=hWe(s),this.options=n,this.policy=new AWe(this.request,this.response,fWe),this.entry&&(this.policy._responseTime=this.entry.metadata.time)}static storable(e,r){return!r.cachePath||r.cache==="no-store"||!["GET","HEAD"].includes(e.method)?!1:new AWe(Mg(e),CV0,fWe).storable()}satisfies(e){let r=Mg(e);if(this.request.headers.host!==r.headers.host||this.request.compress!==r.compress)return!1;let s=new dWe(this.request),n=new dWe(r);return JSON.stringify(s.mediaTypes())!==JSON.stringify(n.mediaTypes())||JSON.stringify(s.languages())!==JSON.stringify(n.languages())||JSON.stringify(s.encodings())!==JSON.stringify(n.encodings())?!1:this.options.integrity?yV0.parse(this.options.integrity).match(this.entry.integrity):!0}storable(){return this.policy.storable()}get mustRevalidate(){return!!this.policy._rescc["must-revalidate"]}needsRevalidation(e){let r=Mg(e);return r.method="GET",!this.policy.satisfiesWithoutRevalidation(r)}responseHeaders(){return this.policy.responseHeaders()}revalidationHeaders(e){let r=Mg(e);return this.policy.revalidationHeaders(r)}revalidated(e,r){let s=Mg(e),n=hWe(r);return!this.policy.revalidatedPolicy(s,n).modified}};bWe.exports=Y0e});var mWe=f((z_t,MWe)=>{var K0e=class extends Error{constructor(e){super(`request to ${e} failed: cache mode is 'only-if-cached' but no cached response is available.`),this.code="ENOTCACHED"}};MWe.exports={NotCachedError:K0e}});var ete=f((O_t,gWe)=>{"use strict";var BV0=nf(),Z0e=class extends BV0{#e=[];#t=new Map;constructor(e,...r){super(),this.#e=e.events,r.length&&this.push(...r)}on(e,r){return this.#e.includes(e)&&this.#t.has(e)?r(...this.#t.get(e)):super.on(e,r)}emit(e,...r){return this.#e.includes(e)&&this.#t.set(e,r),super.emit(e,...r)}};gWe.exports=Z0e});var OWe=f((E_t,zWe)=>{var{URL:DV0,format:qV0}=require("url"),IV0={auth:!1,fragment:!1,search:!0,unicode:!1},RV0=t=>{let e=new DV0(t.url);return`make-fetch-happen:request-cache:${qV0(e,IV0)}`};zWe.exports=RV0});var EWe=f((y_t,wV0)=>{wV0.exports={name:"make-fetch-happen",version:"15.0.4",description:"Opinionated, caching, retrying fetch client",main:"lib/index.js",files:["bin/","lib/"],scripts:{test:"tap",posttest:"npm run lint",eslint:'eslint "**/*.{js,cjs,ts,mjs,jsx,tsx}"',lint:"npm run eslint",lintfix:"npm run eslint -- --fix",postlint:"template-oss-check",snap:"tap","template-oss-apply":"template-oss-apply --force"},repository:{type:"git",url:"git+https://github.com/npm/make-fetch-happen.git"},keywords:["http","request","fetch","mean girls","caching","c
`).forEach(r=>{r.match(m$0)||r.match(g$0)||(e+=r)}),Buffer.from(e,"base64")}function O$0(t,e="CERTIFICATE"){let s=t.toString("base64").match(/.{1,64}/g)||"";return[`-----BEGIN ${e}-----`,...s,`-----END ${e}-----`].join(`
2026-05-22 12:36:07 +00:00
`).concat(`
2026-05-28 10:25:16 +00:00
`)}});var vT=f(VA=>{"use strict";Object.defineProperty(VA,"__esModule",{value:!0});VA.SHA2_HASH_ALGOS=VA.RSA_SIGNATURE_ALGOS=VA.ECDSA_SIGNATURE_ALGOS=void 0;VA.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"};VA.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"};VA.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 Pte=f(FT=>{"use strict";Object.defineProperty(FT,"__esModule",{value:!0});FT.RFC3161TimestampVerificationError=void 0;var Qte=class extends Error{};FT.RFC3161TimestampVerificationError=Qte});var z_e=f(eu=>{"use strict";var E$0=eu&&eu.__createBinding||(Object.create?(function(t,e,r,s){s===void 0&&(s=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,s,n)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),y$0=eu&&eu.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),C$0=eu&&eu.__importStar||(function(){var t=function(e){return t=Object.getOwnPropertyNames||function(r){var s=[];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(s[s.length]=n);return s},t(e)};return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var s=t(e),n=0;n<s.length;n++)s[n]!=="default"&&E$0(r,e,s[n]);return y$0(r,e),r}})();Object.defineProperty(eu,"__esModule",{value:!0});eu.TSTInfo=void 0;var g_e=C$0(Cg()),B$0=vT(),D$0=Pte(),kte=class{root;constructor(e){this.root=e}get version(){return this.root.subs[0].toInteger()}get genTime(){return this.root.subs[4].toDate()}get messageImprintHashAlgorithm(){let e=this.messageImprintObj.subs[0].subs[0].toOID();return B$0.SHA2_HASH_ALGOS[e]}get messageImprintHashedMessage(){return this.messageImprintObj.subs[1].value}get raw(){return this.root.toDER()}verify(e){let r=g_e.digest(this.messageImprintHashAlgorithm,e);if(!g_e.bufferEqual(r,this.messageImprintHashedMessage))throw new D$0.RFC3161TimestampVerificationError("message imprint does not match artifact")}get messageImprintObj(){return this.root.subs[2]}};eu.TSTInfo=kte});var E_e=f(tu=>{"use strict";var q$0=tu&&tu.__createBinding||(Object.create?(function(t,e,r,s){s===void 0&&(s=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,s,n)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),I$0=tu&&tu.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),R$0=tu&&tu.__importStar||(function(){var t=function(e){return t=Object.getOwnPropertyNames||function(r){var s=[];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(s[s.length]=n);return s},t(e)};return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var s=t(e),n=0;n<s.length;n++)s[n]!=="default"&&q$0(r,e,s[n]);return I$0(r,e),r}})();Object.defineProperty(tu,"__esModule",{value:!0});tu.RFC3161Timestamp=void 0;var w$0=wT(),Ute=R$0(Cg()),O_e=vT(),VC=Pte(),S$0=z_e(),N$0="1.2.840.113549.1.7.2",v$0="1.2.840.113549.1.9.16.1.4",F$0="1.2.840.113549.1.9.4",Gte=class t{root;constructor(e){this.root=e}static parse(e){let r=w$0.ASN1Obj.parseBuffer(e);return new t(r)}get status(){return this.pkiStatusInfoObj.subs[0].toInteger()}get contentType(){return this.contentTypeObj.toOID()}get eContentType(){return this.eContentTypeObj.toOID()}get signingTime(){return this.tstInfo.genTime}get signerIssuer(){return this.signerSidObj.subs[0].value}get signerSerialNumber(){return this.signerSidObj.subs[1].value}get signerDigestAlgorithm(){let e=this.signerDigestAlgorithmObj.subs[0].toOID();return O_e.SHA2_HASH_ALGOS[e]}get signatureAlgorithm(){let e=this.signatureAlgorithmObj.subs[0].toOID();r
2026-05-22 12:36:07 +00:00
2026-05-28 10:25:16 +00:00
`,$Y0=/\u2014 (\S+) (\S+)\n/g;function YY0(t,e){let r=t.inclusionProof,s=M1e.fromString(r.checkpoint.envelope),n=VT.fromString(s.note);if(!JY0(s,e))throw new KC.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"invalid checkpoint signature"});return n}function JY0(t,e){let r=Buffer.from(t.note,"utf-8");return t.signatures.some(s=>{let n=e.find(i=>$_e.crypto.bufferEqual(i.logID.subarray(0,4),s.keyHint)&&i.baseURL.match(s.name));return n?$_e.crypto.verify(r,n.publicKey,s.signature):!1})}var M1e=class t{note;signatures;constructor(e,r){this.note=e,this.signatures=r}static fromString(e){if(!e.includes(b1e))throw new KC.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"missing checkpoint separator"});let r=e.indexOf(b1e),s=e.slice(0,r+1),i=e.slice(r+b1e.length).matchAll($Y0),o=Array.from(i,a=>{let[,c,u]=a,p=Buffer.from(u,"base64");if(p.length<5)throw new KC.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"malformed checkpoint signature"});return{name:c,keyHint:p.subarray(0,4),signature:p.subarray(4)}});if(o.length===0)throw new KC.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"no signatures found in checkpoint"});return new t(s,o)}},VT=class t{origin;logSize;logHash;rest;constructor(e,r,s,n){this.origin=e,this.logSize=r,this.logHash=s,this.rest=n}static fromString(e){let r=e.trimEnd().split(`
`);if(r.length<3)throw new KC.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"too few lines in checkpoint header"});let s=r[0],n=BigInt(r[1]),i=Buffer.from(r[2],"base64"),o=r.slice(3);return new t(s,n,i,o)}};ZC.LogCheckpoint=VT});var J_e=f(O1e=>{"use strict";Object.defineProperty(O1e,"__esModule",{value:!0});O1e.verifyMerkleInclusion=eJ0;var z1e=ca(),m1e=$r(),KY0=Buffer.from([0]),ZY0=Buffer.from([1]);function eJ0(t,e){let r=t.inclusionProof,s=BigInt(r.logIndex),n=BigInt(e.logSize);if(s<0n||s>=n)throw new m1e.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:`invalid index: ${s}`});let{inner:i,border:o}=tJ0(s,n);if(r.hashes.length!==i+o)throw new m1e.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"invalid hash count"});let a=r.hashes.slice(0,i),c=r.hashes.slice(i),u=aJ0(t.canonicalizedBody),p=sJ0(rJ0(u,a,s),c);if(!z1e.crypto.bufferEqual(p,e.logHash))throw new m1e.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"calculated root hash does not match inclusion proof"})}function tJ0(t,e){let r=nJ0(t,e),s=iJ0(t>>BigInt(r));return{inner:r,border:s}}function rJ0(t,e,r){return e.reduce((s,n,i)=>r>>BigInt(i)&BigInt(1)?g1e(n,s):g1e(s,n),t)}function sJ0(t,e){return e.reduce((r,s)=>g1e(s,r),t)}function nJ0(t,e){return oJ0(t^e-BigInt(1))}function iJ0(t){return t.toString(2).split("1").length-1}function oJ0(t){return t===0n?0:t.toString(2).length}function g1e(t,e){return z1e.crypto.digest("sha256",ZY0,t,e)}function aJ0(t){return z1e.crypto.digest("sha256",KY0,t)}});var Z_e=f(E1e=>{"use strict";Object.defineProperty(E1e,"__esModule",{value:!0});E1e.verifyTLogSET=pJ0;var K_e=ca(),cJ0=$r(),uJ0=qg();function pJ0(t,e){if(!(0,uJ0.filterTLogAuthorities)(e,{logID:t.logId.keyId,targetDate:new Date(Number(t.integratedTime)*1e3)}).some(n=>{let i=lJ0(t),o=Buffer.from(K_e.json.canonicalize(i),"utf8"),a=t.inclusionPromise.signedEntryTimestamp;return K_e.crypto.verify(o,n.publicKey,a)}))throw new cJ0.VerificationError({code:"TLOG_INCLUSION_PROMISE_ERROR",message:"inclusion promise could not be verified"})}function lJ0(t){let{integratedTime:e,logIndex:r,logId:s,canonicalizedBody:n}=t;return{body:n.toString("base64"),integratedTime:Number(e),logIndex:Number(r),logID:s.keyId.toString("hex")}}});var tLe=f(jT=>{"use strict";Object.defineProperty(jT,"__esModule",{value:!0});jT.verifyTLogBody=bJ0;jT.verifyTLogInclusion=MJ0;var eLe=Gee(),B1e=$r(),y1e=X_e(),C1e=V_e(),AJ0=j_e(),dJ0=Y_e(),fJ0=J_e(),hJ0=Z_e();function bJ0(t,e){let{kind:r,version:s}=t.kindVersion,n=JSON.parse(t.canonicalizedBody.toString("utf8"));if(r!==n.kind||s!==n.apiVersion)throw new B1e.VerificationError({code:"TLOG_BODY_ERROR",message:`kind/version mismatch - expected: ${r}/${s}, received: ${n.kind}/${n.apiVersion}`});switch(r){case"dsse":if(s==y1e.DSSE_API_VERSION_V1)return(0,y1e.verifyDSSETLogBody)(n,e);{let i=eLe.Entry.fromJSON(n);return(0,y1e.verifyDSSETLogBodyV2)(i,e)}case"intoto":return(0,AJ0.verifyIntotoTLogBody)(n,e);case"hashedrekord":if(s==C1e.HASHEDREKORD_API_VERSION_V1)return(0,C1e.verifyHashedRekordTLogBody)(n,e);{let i=eLe.Entry.fromJSON(n);return(0,C1e.verifyHashedRekordTLogBodyV2)(i,e)}default:throw new B1e.VerificationError({code:"TLOG_BODY_ERROR",message:`unsupported kind: ${r}`})}}function MJ0(t,e){let r=!1;if(mJ0(t)&&((0,hJ0.verifyTLogSET)(t,e),r=!0),gJ0(t)){let s=(0,dJ0.verifyCheckpoint)(t,e);(0,fJ0.verifyMerkleInclusion)(t,s),r=!0}if(!r)throw new B1e.VerificationError({code:"TLOG_MISSING_INCLUSION_ERROR",message:"inclusion could not be verified"})}function mJ0(t){return t.inclusionPromise!==void 0}function gJ0(t){return t.inclusionProof!==void 0}});var aLe=f($T=>{"use strict";Object.defineProperty($T,"__esModule",{value:!0});$T.Verifier=void 0;var zJ0=require("util"),Ig=$r(),rLe=Q_e(),sLe=k_e(),nLe=H_e(),iLe=tLe(),D1e=class{trustMaterial;options;constructor(e,r={}){this.trustMaterial=e,this.options={ctlogThreshold:r.ctlogThreshold??1,tlogThreshold:r.tlogThreshold??1,timestampThreshold:r.timestampThreshold??r.tsaThreshold??1,tsaThreshold:0}}verify(e,r){let s=this.verifyTimestamps(e),n=this.verifySigningKey(e,s);return
2026-05-22 12:36:07 +00:00
[`+w+"] ";for(x in arguments[0])i(arguments[0],x)&&(D+=x+": "+arguments[0][x]+", ");D=D.slice(0,-2)}else D=arguments[w];z.push(D)}W(d+`
Arguments: `+Array.prototype.slice.call(z).join("")+`
2026-05-28 10:25:16 +00:00
`+new Error().stack),m=!1}return b.apply(this,arguments)},b)}var Me={};function Se(d,b){e.deprecationHandler!=null&&e.deprecationHandler(d,b),Me[d]||(W(b),Me[d]=!0)}e.suppressDeprecationWarnings=!1,e.deprecationHandler=null;function K(d){return typeof Function<"u"&&d instanceof Function||Object.prototype.toString.call(d)==="[object Function]"}function Ie(d){var b,m;for(m in d)i(d,m)&&(b=d[m],K(b)?this[m]=b:this["_"+m]=b);this._config=d,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function Y(d,b){var m=l({},d),z;for(z in b)i(b,z)&&(n(d[z])&&n(b[z])?(m[z]={},l(m[z],d[z]),l(m[z],b[z])):b[z]!=null?m[z]=b[z]:delete m[z]);for(z in d)i(d,z)&&!i(b,z)&&n(d[z])&&(m[z]=l({},m[z]));return m}function we(d){d!=null&&this.set(d)}var Pe;Object.keys?Pe=Object.keys:Pe=function(d){var b,m=[];for(b in d)i(d,b)&&m.push(b);return m};var z0={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function d0(d,b,m){var z=this._calendar[d]||this._calendar.sameElse;return K(z)?z.call(b,m):z}function x0(d,b,m){var z=""+Math.abs(d),D=b-z.length,w=d>=0;return(w?m?"+":"":"-")+Math.pow(10,Math.max(0,D)).toString().substr(1)+z}var yt=/(\[[^\[]*\])|(\\)?([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,G0=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,ur={},Xt={};function Ee(d,b,m,z){var D=z;typeof z=="string"&&(D=function(){return this[z]()}),d&&(Xt[d]=D),b&&(Xt[b[0]]=function(){return x0(D.apply(this,arguments),b[1],b[2])}),m&&(Xt[m]=function(){return this.localeData().ordinal(D.apply(this,arguments),d)})}function id(d){return d.match(/\[[\s\S]/)?d.replace(/^\[|\]$/g,""):d.replace(/\\/g,"")}function go(d){var b=d.match(yt),m,z;for(m=0,z=b.length;m<z;m++)Xt[b[m]]?b[m]=Xt[b[m]]:b[m]=id(b[m]);return function(D){var w="",x;for(x=0;x<z;x++)w+=K(b[x])?b[x].call(D,d):b[x];return w}}function C0(d,b){return d.isValid()?(b=It(b,d.localeData()),ur[b]=ur[b]||go(b),ur[b](d)):d.localeData().invalidDate()}function It(d,b){var m=5;function z(D){return b.longDateFormat(D)||D}for(G0.lastIndex=0;m>=0&&G0.test(d);)d=d.replace(G0,z),G0.lastIndex=0,m-=1;return d}var nh={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 ih(d){var b=this._longDateFormat[d],m=this._longDateFormat[d.toUpperCase()];return b||!m?b:(this._longDateFormat[d]=m.match(yt).map(function(z){return z==="MMMM"||z==="MM"||z==="DD"||z==="dddd"?z.slice(1):z}).join(""),this._longDateFormat[d])}var Zg="Invalid date";function du(){return this._invalidDate}var S="%d",P=/\d{1,2}/;function k(d){return this._ordinal.replace("%d",d)}var $={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 Te(d,b,m,z){var D=this._relativeTime[m];return K(D)?D(d,b,m,z):D.replace(/%d/i,d)}function c0(d,b){var m=this._relativeTime[d>0?"future":"past"];return K(m)?m(b):m.replace(/%s/i,b)}var st={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:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function He(d){return typeof d=="stri
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}N4.exports=git,N4.exports.__esModule=!0,N4.exports.default=N4.exports});var qGe=f((IUt,v4)=>{var zit=lUe(),Oit=rGe(),Eit=BGe(),yit=DGe();function Cit(t,e){return zit(t)||Oit(t,e)||Eit(t,e)||yit()}v4.exports=Cit,v4.exports.__esModule=!0,v4.exports.default=v4.exports});var RGe=f((RUt,IGe)=>{"use strict";var Bit=Hx().forEach,Dit=q4(),qit=Dit("forEach");IGe.exports=qit?[].forEach:function(e){return Bit(this,e,arguments.length>1?arguments[1]:void 0)}});var SGe=f(()=>{"use strict";var Iit=rt(),wGe=RGe();Iit({target:"Array",proto:!0,forced:[].forEach!==wGe},{forEach:wGe})});var vGe=f((NUt,NGe)=>{"use strict";SGe();var Rit=ha();NGe.exports=Rit("Array","forEach")});var TGe=f((vUt,FGe)=>{"use strict";var wit=vGe();FGe.exports=wit});var xGe=f(()=>{});var _Ge=f((xUt,WGe)=>{"use strict";var Sit=Hg(),Nit=xs(),vit=mn(),Fit=TGe();xGe();var yse=Array.prototype,Tit={DOMTokenList:!0,NodeList:!0};WGe.exports=function(t){var e=t.forEach;return t===yse||vit(yse,t)&&e===yse.forEach||Nit(Tit,Sit(t))?Fit:e}});var Cse=f((WUt,LGe)=>{LGe.exports=_Ge()});var QGe=f(()=>{"use strict";var xit=rt(),Wit=Ix().includes,_it=Gt(),Lit=nre(),Qit=_it(function(){return!Array(1).includes()});xit({target:"Array",proto:!0,forced:Qit},{includes:function(e){return Wit(this,e,arguments.length>1?arguments[1]:void 0)}});Lit("includes")});var kGe=f((QUt,PGe)=>{"use strict";QGe();var Pit=ha();PGe.exports=Pit("Array","includes")});var GGe=f((PUt,UGe)=>{"use strict";var kit=Ai(),Uit=rl(),Git=l1(),Hit=Git("match");UGe.exports=function(t){var e;return kit(t)&&((e=t[Hit])!==void 0?!!e:Uit(t)==="RegExp")}});var XGe=f((kUt,HGe)=>{"use strict";var Xit=GGe(),Vit=TypeError;HGe.exports=function(t){if(Xit(t))throw new Vit("The method doesn't accept regular expressions");return t}});var jGe=f((UUt,VGe)=>{"use strict";var jit=l1(),$it=jit("match");VGe.exports=function(t){var e=/./;try{"/./"[t](e)}catch{try{return e[$it]=!1,"/./"[t](e)}catch{}}return!1}});var YGe=f(()=>{"use strict";var Yit=rt(),Jit=qt(),Kit=XGe(),Zit=Gf(),$Ge=lu(),eot=jGe(),tot=Jit("".indexOf);Yit({target:"String",proto:!0,forced:!eot("includes")},{includes:function(e){return!!~tot($Ge(Zit(this)),$Ge(Kit(e)),arguments.length>1?arguments[1]:void 0)}})});var KGe=f((XUt,JGe)=>{"use strict";YGe();var rot=ha();JGe.exports=rot("String","includes")});var tHe=f((VUt,eHe)=>{"use strict";var ZGe=mn(),sot=kGe(),not=KGe(),Bse=Array.prototype,Dse=String.prototype;eHe.exports=function(t){var e=t.includes;return t===Bse||ZGe(Bse,t)&&e===Bse.includes?sot:typeof t=="string"||t===Dse||ZGe(Dse,t)&&e===Dse.includes?not:e}});var sHe=f((jUt,rHe)=>{"use strict";var iot=tHe();rHe.exports=iot});var F4=f(($Ut,nHe)=>{nHe.exports=sHe()});var qse=f((YUt,iHe)=>{"use strict";iHe.exports=`
\v\f\r \xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF`});var cHe=f((JUt,aHe)=>{"use strict";var oot=qt(),aot=Gf(),cot=lu(),Rse=qse(),oHe=oot("".replace),uot=RegExp("^["+Rse+"]+"),pot=RegExp("(^|[^"+Rse+"])["+Rse+"]+$"),Ise=function(t){return function(e){var r=cot(aot(e));return t&1&&(r=oHe(r,uot,"")),t&2&&(r=oHe(r,pot,"$1")),r}};aHe.exports={start:Ise(1),end:Ise(2),trim:Ise(3)}});var hHe=f((KUt,fHe)=>{"use strict";var AHe=w1(),lot=Gt(),Aot=qt(),dot=lu(),fot=cHe().trim,uHe=qse(),T4=AHe.parseInt,pHe=AHe.Symbol,lHe=pHe&&pHe.iterator,dHe=/^[+-]?0x/i,hot=Aot(dHe.exec),bot=T4(uHe+"08")!==8||T4(uHe+"0x16")!==22||lHe&&!lot(function(){T4(Object(lHe))});fHe.exports=bot?function(e,r){var s=fot(dot(e));return T4(s,r>>>0||(hot(dHe,s)?16:10))}:T4});var MHe=f(()=>{"use strict";var Mot=rt(),bHe=hHe();Mot({global:!0,forced:parseInt!==bHe},{parseInt:bHe})});var gHe=f((tGt,mHe)=>{"use strict";MHe();var mot=la();mHe.exports=mot.parseInt});var OHe=f((rGt,zHe)=>{"use strict";var got=gHe();zHe.exports=got});var yHe=f((sGt,EHe)=>{EHe.exports=OHe()});var eW=f((nGt,CHe)=>{CHe.exports=Ese()});var qHe=f((iGt,DHe)=>{"use strict";var BHe=c4(),zot=TypeError;DHe.exports=function(t,e){if(!delete t[e])throw new zot("Cannot delete property "+BHe(e)+" of "+BHe(t))}});var wHe=f((oGt,RHe)=>{"use strict";var IHe=z4(),Oot=Math.floor,wse=function(t,e){var r=t.length;if(r<8)for(var s=1,n,i;s<r;){for(i=s,n=t[s];i&&e(t[i-1],n)>0;)t[i]=t[--i];i!==s++&&(t[i]=n)}else for(var o=Oot(r/2),a=wse(IHe(t,0,o),e),c=wse(IHe(t,o),e),u=a.length,p=c.length,l=0,A=0;l<u||A<p;)t[l+A]=l<u&&A<p?e(a[l],c[A])<=0?a[l++]:c[A++]:l<u?a[l++]:c[A++];return t};RHe.exports=wse});var vHe=f((aGt,NHe)=>{"use strict";var Eot=Wg(),SHe=Eot.match(/firefox\/(\d+)/i);NHe.exports=!!SHe&&+SHe[1]});var THe=f((cGt,FHe)=>{"use strict";var yot=Wg();FHe.exports=/MSIE|Trident/.test(yot)});var _He=f((uGt,WHe)=>{"use strict";var Cot=Wg(),xHe=Cot.match(/AppleWebKit\/(\d+)\./);WHe.exports=!!xHe&&+xHe[1]});var VHe=f(()=>{"use strict";var Bot=rt(),HHe=qt(),Dot=Xf(),qot=uu(),LHe=il(),Iot=qHe(),QHe=lu(),Sse=Gt(),Rot=wHe(),wot=q4(),PHe=vHe(),Sot=THe(),kHe=_g(),UHe=_He(),td=[],GHe=HHe(td.sort),Not=HHe(td.push),vot=Sse(function(){td.sort(void 0)}),Fot=Sse(function(){td.sort(null)}),Tot=wot("sort"),XHe=!Sse(function(){if(kHe)return kHe<70;if(!(PHe&&PHe>3)){if(Sot)return!0;if(UHe)return UHe<603;var t="",e,r,s,n;for(e=65;e<76;e++){switch(r=String.fromCharCode(e),e){case 66:case 69:case 70:case 72:s=3;break;case 68:case 71:s=4;break;default:s=2}for(n=0;n<47;n++)td.push({k:r+n,v:s})}for(td.sort(function(i,o){return o.v-i.v}),n=0;n<td.length;n++)r=td[n].k.charAt(0),t.charAt(t.length-1)!==r&&(t+=r);return t!=="DGBEFHACIJK"}}),xot=vot||!Fot||!Tot||!XHe,Wot=function(t){return function(e,r){return r===void 0?-1:e===void 0?1:t!==void 0?+t(e,r)||0:QHe(e)>QHe(r)?1:-1}};Bot({target:"Array",proto:!0,forced:xot},{sort:function(e){e!==void 0&&Dot(e);var r=qot(this);if(XHe)return e===void 0?GHe(r):GHe(r,e);var s=[],n=LHe(r),i,o;for(o=0;o<n;o++)o in r&&Not(s,r[o]);for(Rot(s,Wot(e)),i=LHe(s),o=0;o<i;)r[o]=s[o++];for(;o<n;)Iot(r,o++);return r}})});var $He=f((AGt,jHe)=>{"use strict";VHe();var _ot=ha();jHe.exports=_ot("Array","sort")});var JHe=f((dGt,YHe)=>{"use strict";var Lot=mn(),Qot=$He(),Nse=Array.prototype;YHe.exports=function(t){var e=t.sort;return t===Nse||Lot(Nse,t)&&e===Nse.sort?Qot:e}});var ZHe=f((fGt,KHe)=>{"use strict";var Pot=JHe();KHe.exports=Pot});var tXe=f((hGt,eXe)=>{eXe.exports=ZHe()});var rXe=f(()=>{});var iXe=f((mGt,nXe)=>{"use strict";var kot=w1(),Uot=Gt(),sXe=kot.RegExp,Got=!Uot(function(){var t=!0;try{sXe(".","d")}catch{t=!1}var e={},r="",s=t?"dgimsy":"gimsy",n=function(c,u){Object.defineProperty(e,c,{get:function(){return r+=u,!0}})},i={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};t&&(i.hasIndices="d");for(var o in i)n(o,i[o]);var a=Object.getOwnPropertyDescriptor(sXe.prototype,"flags").get.call(e);return a!==s||r!==s});nXe.exports={correct:Got}});var aXe=f((gGt,oXe)=>{"use strict";var Hot=nl();oXe.exports=function(){var t=Hot(this),e=
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var i=!0,o=!1,a;return{s:function(){r=(0,rat.default)(t)},n:function(){var u=r.next();return i=u.done,u},e:function(u){o=!0,a=u},f:function(){try{!i&&r.return!=null&&r.return()}finally{if(o)throw a}}}}function pat(t,e){var r;if(t){if(typeof t=="string")return zXe(t,e);var s=(0,mo.default)(r=Object.prototype.toString.call(t)).call(r,8,-1);if(s==="Object"&&t.constructor&&(s=t.constructor.name),s==="Map"||s==="Set")return(0,oat.default)(t);if(s==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s))return zXe(t,e)}}function zXe(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,s=new Array(e);r<e;r++)s[r]=t[r];return s}var lt="xregexp",th={astral:!1,namespacing:!1},Ht={exec:RegExp.prototype.exec,test:RegExp.prototype.test,match:String.prototype.match,replace:String.prototype.replace,split:String.prototype.split},Au={},x4={},$g={},vse=[],Yg="default",OXe="class",lat={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]/},Aat=/\$(?:{([\w$]+)}|<([\w$]+)>|(\d\d?|[\s\S]))/g,dat=Ht.exec.call(/()??/,"")[1]===void 0,fat=(0,eh.default)(/x/)!==void 0,hat={},DXe=hat.toString;function Tse(t){var e=!0;try{if(new RegExp("",t),t==="y"){var r=(function(){return"gy"})(),s=".a".replace(new RegExp("a",r),".")==="..";s&&(e=!1)}}catch{e=!1}return e}var qXe=Tse("u"),xse=Tse("y"),IXe={g:!0,i:!0,m:!0,u:qXe,y:xse};function RXe(t,e,r,s,n){var i;if(t[lt]={captureNames:e},n)return t;if(t.__proto__)t.__proto__=ae.prototype;else for(var o in ae.prototype)t[o]=ae.prototype[o];return t[lt].source=r,t[lt].flags=s&&(0,uat.default)(i=s.split("")).call(i).join(""),t}function W4(t){return Ht.replace.call(t,/([\s\S])(?=[\s\S]*\1)/g,"")}function sh(t,e){var r;if(!ae.isRegExp(t))throw new TypeError("Type RegExp expected");var s=t[lt]||{},n=bat(t),i="",o="",a=null,c=null;return e=e||{},e.removeG&&(o+="g"),e.removeY&&(o+="y"),o&&(n=Ht.replace.call(n,new RegExp("[".concat(o,"]+"),"g"),"")),e.addG&&(i+="g"),e.addY&&(i+="y"),i&&(n=W4(n+i)),e.isInternalOnly||(s.source!==void 0&&(a=s.source),(0,eh.default)(s)!=null&&(c=i?W4((0,eh.default)(s)+i):(0,eh.default)(s))),t=RXe(new RegExp(e.source||t.source,n),Mat(t)?(0,mo.default)(r=s.captureNames).call(r,0):null,a,c,e.isInternalOnly),t}function wXe(t){return(0,BXe.default)(t,16)}function SXe(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||Ht.test.call(/^\(\?[:=!]/,t.input.substr(t.index-3,3))||mat(t.input,t.index+t[0].length,r)?"":"(?:)"}function bat(t){return fat?(0,eh.default)(t):Ht.exec.call(/\/([a-z]*)$/i,RegExp.prototype.toString.call(t))[1]}function Mat(t){return!!(t[lt]&&t[lt].captureNames)}function NXe(t){return(0,BXe.default)(t,10).toString(16)}function mat(t,e,r){var s="\\(\\?#[^)]*\\)",n="#[^#\\n]*",i="[?*+]|{\\d+(?:,\\d*)?}";return Ht.test.call((0,rh.default)(r).call(r,"x")?/^(?:\s|#[^#\n]*|\(\?#[^)]*\))*(?:[?*+]|{\d+(?:,\d*)?})/:/^(?:\(\?#[^)]*\))*(?:[?*+]|{\d+(?:,\d*)?})/,(0,mo.default)(t).call(t,e))}function Wse(t,e){return DXe.call(t)==="[object ".concat(e,"]")}function vXe(t){for(;t.length<4;)t="0".concat(t);return t}function gat(t,e){if(W4(e)!==e)throw new SyntaxError("Invalid duplicate regex flag ".concat(e));t=Ht.replace.call(t,/^\(\?([\w$]+)\)/,function(i,o){if(Ht.test.call(/[gy]/,o))throw new SyntaxError("Cannot use flag g or y in mode modifier ".concat(i));return e=W4(e+o),""});var r=_4(e),s;try{for(r.s();!(s=r.n()).done;){var n=s.value;if(!IXe[n])throw new SyntaxError("Unknown regex flag ".concat(n))}}catch(i){r.e(i)}finally{r.f()}return{pattern:t,flags:e}}function FXe(t){var e={};return Wse(t,"String")?((0,Fse.default)(ae).call(ae,t,/[^\s,]+/,function(r){e[r]=!0}),e):t}function EXe(t){if(!/^[\w$]$/.test(t))throw new Error("Flag must be
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var i=!0,o=!1,a;return{s:function(){r=(0,tct.default)(t)},n:function(){var u=r.next();return i=u.done,u},e:function(u){o=!0,a=u},f:function(){try{!i&&r.return!=null&&r.return()}finally{if(o)throw a}}}}function pct(t,e){var r;if(t){if(typeof t=="string")return zVe(t,e);var s=(0,oct.default)(r=Object.prototype.toString.call(t)).call(r,8,-1);if(s==="Object"&&t.constructor&&(s=t.constructor.name),s==="Map"||s==="Set")return(0,ict.default)(t);if(s==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s))return zVe(t,e)}}function zVe(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,s=new Array(e);r<e;r++)s[r]=t[r];return s}var lct=function(e){var r={},s=e._dec,n=e._hex,i=e._pad4;function o(A){return A.replace(/[- _]+/g,"").toLowerCase()}function a(A){var h=/^\\[xu](.+)/.exec(A);return h?s(h[1]):A.charCodeAt(A[0]==="\\"?1:0)}function c(A){var h="",M=-1;return(0,cct.default)(e).call(e,A,/(\\x..|\\u....|\\?[\s\S])(?:-(\\x..|\\u....|\\?[\s\S]))?/,function(g){var y=a(g[1]);y>M+1&&(h+="\\u".concat(i(n(M+1))),y>M+2&&(h+="-\\u".concat(i(n(y-1))))),M=a(g[2]||g[1])}),M<65535&&(h+="\\u".concat(i(n(M+1))),M<65534&&(h+="-\\uFFFF")),h}function u(A){var h="b!";return r[A][h]||(r[A][h]=c(r[A].bmp))}function p(A,h){var M=r[A],g="";if(M.bmp&&!M.isBmpLast){var y;g=(0,Pse.default)(y="[".concat(M.bmp,"]")).call(y,M.astral?"|":"")}if(M.astral&&(g+=M.astral),M.isBmpLast&&M.bmp){var O;g+=(0,Pse.default)(O="".concat(M.astral?"|":"","[")).call(O,M.bmp,"]")}return h?"(?:(?!".concat(g,")(?:[\uD800-\uDBFF][\uDC00-\uDFFF]|[\0-\uFFFF]))"):"(?:".concat(g,")")}function l(A,h){var M=h?"a!":"a=";return r[A][M]||(r[A][M]=p(A,h))}e.addToken(/\\([pP])(?:{(\^?)([^}]*)}|([A-Za-z]))/,function(A,h,M){var g="Invalid double negation ",y="Unknown Unicode token ",O="Unicode token missing data ",B="Astral mode required for Unicode token ",I="Astral mode does not support Unicode tokens within character classes",R=A[1]==="P"||!!A[2],N=(0,act.default)(M).call(M,"A"),T=o(A[4]||A[3]),W=r[T];if(A[1]==="P"&&A[2])throw new SyntaxError(g+A[0]);if(!r.hasOwnProperty(T))throw new SyntaxError(y+A[0]);if(W.inverseOf){if(T=o(W.inverseOf),!r.hasOwnProperty(T)){var j;throw new ReferenceError((0,Pse.default)(j="".concat(O+A[0]," -> ")).call(j,W.inverseOf))}W=r[T],R=!R}if(!(W.bmp||N))throw new SyntaxError(B+A[0]);if(N){if(h==="class")throw new SyntaxError(I);return l(T,R)}return h==="class"?R?u(T):W.bmp:"".concat((R?"[^":"[")+W.bmp,"]")},{scope:"all",optionalFlags:"A",leadChar:"\\"}),e.addUnicodeData=function(A){var h="Unicode token requires name",M="Unicode token has no character data ",g=uct(A),y;try{for(g.s();!(y=g.n()).done;){var O=y.value;if(!O.name)throw new Error(h);if(!(O.inverseOf||O.bmp||O.astral))throw new Error(M+O.name);r[o(O.name)]=O,O.alias&&(r[o(O.alias)]=O)}}catch(B){g.e(B)}finally{g.f()}e.cache.flush("patterns")},e._getUnicodeProperty=function(A){var h=o(A);return r[h]}};G4.default=lct;OVe.exports=G4.default});var CVe=f((QGt,yVe)=>{yVe.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",bmp:"\uFE70-\uFEFF"},{name:"InArabic_Supplement",bmp:"\u0750-\u077F"},{name:"InArmenian",bmp:"\u0530-\u058F"},{name:"InArrows",bmp:"\u2190-\u21FF"},{name:"InAvestan",astral:"\uD802[\uDF00-\uDF3F]"},{name:"InBalinese",bmp:"\u1B00-\u1B7F"},{name:"InBamum",
Support boolean input list: \`true | True | TRUE | false | False | FALSE\``)}function IQ(t,e){if(process.env.GITHUB_OUTPUT||"")return pz("OUTPUT",CB(t,e));process.stdout.write(qQ.EOL),ma("set-output",{name:t},Ma(e))}function Nde(t){process.exitCode=DQ.Failure,su0(t)}function vde(){return process.env.RUNNER_DEBUG==="1"}function Q(t){ma("debug",{},t)}function su0(t,e={}){ma("error",QW(e),t instanceof Error?t.toString():t)}function St(t,e={}){ma("warning",QW(e),t instanceof Error?t.toString():t)}function _(t){process.stdout.write(t+qQ.EOL)}function Ld(t){kW("group",t)}function Qd(){kW("endgroup")}function dr(t,e){return ru0(this,void 0,void 0,function*(){Ld(t);let r;try{r=yield e()}finally{Qd()}return r})}function Dq(t,e){if(process.env.GITHUB_STATE||"")return pz("STATE",CB(t,e));ma("save-state",{name:t},Ma(e))}function Fde(t){return process.env[`STATE_${t}`]||""}var Iw=F(require("fs"),1),PX=F(require("os"),1),kX=F(require("path"),1);var xde=F(require("os"),1);function MO(t){return t==null?"":typeof t=="string"||t instanceof String?t:JSON.stringify(t)}function Wde(t,e,r){let s=new RQ(t,e,r);process.stdout.write(s.toString()+xde.EOL)}var Tde="::",RQ=class{constructor(e,r,s){e||(e="missing.command"),this.command=e,this.properties=r,this.message=s}toString(){let e=Tde+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let r=!0;for(let s in this.properties)if(this.properties.hasOwnProperty(s)){let n=this.properties[s];n&&(r?r=!1:e+=",",e+=`${s}=${iu0(n)}`)}}return e+=`${Tde}${nu0(this.message)}`,e}};function nu0(t){return MO(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}function iu0(t){return MO(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}var Pde=F(require("os"),1);var Lde=require("os"),mO=require("fs"),wQ=function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(p){try{u(s.next(p))}catch(l){o(l)}}function c(p){try{u(s.throw(p))}catch(l){o(l)}}function u(p){p.done?i(p.value):n(p.value).then(a,c)}u((s=s.apply(t,e||[])).next())})},{access:ou0,appendFile:au0,writeFile:cu0}=mO.promises,_de="GITHUB_STEP_SUMMARY";var SQ=class{constructor(){this._buffer=""}filePath(){return wQ(this,void 0,void 0,function*(){if(this._filePath)return this._filePath;let e=process.env[_de];if(!e)throw new Error(`Unable to find environment variable for $${_de}. Check if your runtime environment supports job summaries.`);try{yield ou0(e,mO.constants.R_OK|mO.constants.W_OK)}catch{throw new Error(`Unable to access summary file: '${e}'. Check if the file has correct read/write permissions.`)}return this._filePath=e,this._filePath})}wrap(e,r,s={}){let n=Object.entries(s).map(([i,o])=>` ${i}="${o}"`).join("");return r?`<${e}${n}>${r}</${e}>`:`<${e}${n}>`}write(e){return wQ(this,void 0,void 0,function*(){let r=!!e?.overwrite,s=yield this.filePath();return yield(r?cu0:au0)(s,this._buffer,{encoding:"utf8"}),this.emptyBuffer()})}clear(){return wQ(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(Lde.EOL)}addCodeBlock(e,r){let s=Object.assign({},r&&{lang:r}),n=this.wrap("pre",this.wrap("code",e),s);return this.addRaw(n).addEOL()}addList(e,r=!1){let s=r?"ol":"ul",n=e.map(o=>this.wrap("li",o)).join(""),i=this.wrap(s,n);return this.addRaw(i).addEOL()}addTable(e){let r=e.map(n=>{let i=n.map(o=>{if(typeof o=="string")return this.wrap("td",o);let{header:a,data:c,colspan:u,rowspan:p}=o,l=a?"th":"td",A=Object.assign(Object.assign({},u&&{colspan:u}),p&&{rowspan:p});return this.wrap(l,c,A)}).join("");return this.wrap("tr",i)}).join(""),s=this.wrap("table",r);return this.addRaw(s).addEOL()}addDetails(e,r){let s=this.wrap("details",this.wrap("summary",e)+r);return this.addRaw(s).addEOL()}addImage(e,r,s){let{width:n,height:i}=s||{},o=Object.assign(Object.assign({},
`),e=e.replace(/\r/g,`
`));let n=e.split(`
2026-05-28 10:25:16 +00:00
`).map(i=>i.trim());for(let i of n)!i||i.startsWith("#")||s.patterns.push(new TO(i));return s.searchPaths.push(...MP(s.patterns)),s})}static stat(e,r,s){return yP(this,void 0,void 0,function*(){let n;if(r.followSymbolicLinks)try{n=yield Rb.promises.stat(e.path)}catch(i){if(i.code==="ENOENT"){if(r.omitBrokenSymbolicLinks){Di(`Broken symlink '${e.path}'`);return}throw new Error(`No information found for the path '${e.path}'. This may indicate a broken symbolic link.`)}throw i}else n=yield Rb.promises.lstat(e.path);if(n.isDirectory()&&r.followSymbolicLinks){let i=yield Rb.promises.realpath(e.path);for(;s.length>=e.level;)s.pop();if(s.some(o=>o===i)){Di(`Symlink cycle detected for path '${e.path}' and realpath '${i}'`);return}s.push(i)}return n})}};var td0=function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(p){try{u(s.next(p))}catch(l){o(l)}}function c(p){try{u(s.throw(p))}catch(l){o(l)}}function u(p){p.done?i(p.value):n(p.value).then(a,c)}u((s=s.apply(t,e||[])).next())})};function Bhe(t,e){return td0(this,void 0,void 0,function*(){return yield Xq.create(t,e)})}var cI=F(require("crypto"),1),Nb=F(require("fs"),1),Vd=F(require("path"),1),bMe=F(fMe(),1),MMe=F(require("util"),1);var GO;(function(t){t.Gzip="cache.tgz",t.Zstd="cache.tzst"})(GO||(GO={}));var cs;(function(t){t.Gzip="gzip",t.ZstdWithoutLong="zstd-without-long",t.Zstd="zstd"})(cs||(cs={}));var _n;(function(t){t.GNU="gnu",t.BSD="bsd"})(_n||(_n={}));var oI=2,aI=5e3,UP=5e3,GP=`${process.env.PROGRAMFILES}\\Git\\usr\\bin\\tar.exe`,hMe=`${process.env.SYSTEMDRIVE}\\Windows\\System32\\tar.exe`,HO="cache.tar",HP="manifest.txt",$ft=10*Math.pow(1024,3);var Sb=function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(p){try{u(s.next(p))}catch(l){o(l)}}function c(p){try{u(s.throw(p))}catch(l){o(l)}}function u(p){p.done?i(p.value):n(p.value).then(a,c)}u((s=s.apply(t,e||[])).next())})},Kf0=function(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],r;return e?e.call(t):(t=typeof __values=="function"?__values(t):t[Symbol.iterator](),r={},s("next"),s("throw"),s("return"),r[Symbol.asyncIterator]=function(){return this},r);function s(i){r[i]=t[i]&&function(o){return new Promise(function(a,c){o=t[i](o),n(a,c,o.done,o.value)})}}function n(i,o,a,c){Promise.resolve(c).then(function(u){i({value:u,done:a})},o)}},Zf0="1.0";function XO(){return Sb(this,void 0,void 0,function*(){let t=process.platform==="win32",e=process.env.RUNNER_TEMP||"";if(!e){let s;t?s=process.env.USERPROFILE||"C:\\":process.platform==="darwin"?s="/Users":s="/home",e=Vd.join(s,"actions","temp")}let r=Vd.join(e,cI.randomUUID());return yield Tu(r),r})}function Wa(t){return Nb.statSync(t).size}function XP(t){return Sb(this,void 0,void 0,function*(){var e,r,s,n,i;let o=[],a=(i=process.env.GITHUB_WORKSPACE)!==null&&i!==void 0?i:process.cwd(),c=yield Bhe(t.join(`
`),{implicitDescendants:!1});try{for(var u=!0,p=Kf0(c.globGenerator()),l;l=yield p.next(),e=l.done,!e;u=!0){n=l.value,u=!1;let h=Vd.relative(a,n).replace(new RegExp(`\\${Vd.sep}`,"g"),"/");ee(`Matched: ${h}`),h===""?o.push("."):o.push(`${h}`)}}catch(A){r={error:A}}finally{try{!u&&!e&&(s=p.return)&&(yield s.call(p))}finally{if(r)throw r.error}}return o})}function VO(t){return Sb(this,void 0,void 0,function*(){return MMe.promisify(Nb.unlink)(t)})}function mMe(t){return Sb(this,arguments,void 0,function*(e,r=[]){let s="";r.push("--version"),ee(`Checking ${e} ${r.join(" ")}`);try{yield Tn(`${e}`,r,{ignoreReturnCode:!0,silent:!0,listeners:{stdout:n=>s+=n.toString(),stderr:n=>s+=n.toString()}})}catch(n){ee(n.message)}return s=s.trim(),ee(s),s})}function jO(){return Sb(this,void 0,void 0,function*(){let t=yield mMe("zstd",["--quiet"]),e=bMe.clean(t);return ee(`zstd version: ${e}`),t===""?cs.Gzip:cs.ZstdWithoutLong})}function kl(t){return t===cs.Gzip?GO.Gzip:GO.Zstd}function gMe(){return Sb(this,void 0,void 0,function*(){return Nb.existsSync(GP)?GP:(yield mMe("tar")).toLowerCase().includes("gnu tar")?Ar("tar"):""})}function VP(t,e){if(e===void 0)throw Error(`Expected ${t} but value was undefiend`);return e}function vb(t,e,r=!1){let s=t.slice();return e&&s.push(e),process.platform==="win32"&&!r&&s.push("windows-only"),s.push(Zf0),cI.createHash("sha256").update(s.join("|")).digest("hex")}function zMe(){let t=process.env.ACTIONS_RUNTIME_TOKEN;if(!t)throw new Error("Unable to get the ACTIONS_RUNTIME_TOKEN env variable");return t}var uM=F(require("fs"),1),H3e=require("url");var _a=class extends Error{constructor(e){super(e),this.name="AbortError"}};var OMe=require("node:os"),EMe=F(require("node:util"),1),yMe=F(require("node:process"),1);function CMe(t,...e){yMe.default.stderr.write(`${EMe.default.format(t,...e)}${OMe.EOL}`)}var BMe=typeof process<"u"&&process.env&&process.env.DEBUG||void 0,qMe,jP=[],$P=[],pI=[];BMe&&YP(BMe);var IMe=Object.assign(t=>RMe(t),{enable:YP,enabled:JP,disable:eh0,log:CMe});function YP(t){qMe=t,jP=[],$P=[];let e=t.split(",").map(r=>r.trim());for(let r of e)r.startsWith("-")?$P.push(r.substring(1)):jP.push(r);for(let r of pI)r.enabled=JP(r.namespace)}function JP(t){if(t.endsWith("*"))return!0;for(let e of $P)if(DMe(t,e))return!1;for(let e of jP)if(DMe(t,e))return!0;return!1}function DMe(t,e){if(e.indexOf("*")===-1)return t===e;let r=e;if(e.indexOf("**")!==-1){let A=[],h="";for(let M of e)M==="*"&&h==="*"||(h=M,A.push(M));r=A.join("")}let s=0,n=0,i=r.length,o=t.length,a=-1,c=-1;for(;s<o&&n<i;)if(r[n]==="*"){if(a=n,n++,n===i)return!0;for(;t[s]!==r[n];)if(s++,s===o)return!1;c=s,s++,n++;continue}else if(r[n]===t[s])n++,s++;else if(a>=0){if(n=a+1,s=c+1,s===o)return!1;for(;t[s]!==r[n];)if(s++,s===o)return!1;c=s,s++,n++;continue}else return!1;let u=s===t.length,p=n===r.length,l=n===r.length-1&&r[n]==="*";return u&&(p||l)}function eh0(){let t=qMe||"";return YP(""),t}function RMe(t){let e=Object.assign(r,{enabled:JP(t),destroy:th0,log:IMe.log,namespace:t,extend:rh0});function r(...s){e.enabled&&(s.length>0&&(s[0]=`${t} ${s[0]}`),e.log(...s))}return pI.push(e),e}function th0(){let t=pI.indexOf(this);return t>=0?(pI.splice(t,1),!0):!1}function rh0(t){let e=RMe(`${this.namespace}:${t}`);return e.log=this.log,e}var Fb=IMe;var KP=["verbose","info","warning","error"],wMe={verbose:400,info:300,warning:200,error:100};function SMe(t,e){e.log=(...r)=>{t.log(...r)}}function NMe(t){return KP.includes(t)}function lI(t){let e=new Set,r=typeof process<"u"&&process.env&&process.env[t.logLevelEnvVarName]||void 0,s,n=Fb(t.namespace);n.log=(...p)=>{Fb.log(...p)};function i(p){if(p&&!NMe(p))throw new Error(`Unknown log level '${p}'. Acceptable values: ${KP.join(",")}`);s=p;let l=[];for(let A of e)o(A)&&l.push(A.namespace);Fb.enable(l.join(","))}r&&(NMe(r)?i(r):console.error(`${t.logLevelEnvVarName} set to unknown log level '${r}'; logging is not enabled. Acceptable values: ${KP.join(", ")}.`));function o(p){return!!(s&&wMe[p.level]<=wMe[s])}function a(p,l){let A=Object.assign(p.extend(l),{level:l});if(SMe(p,A),o(A)){let h=Fb.disable();Fb
${ah0.sanitize({...this,request:{...this.request,agent:s},response:this.response})}`,enumerable:!1}),Object.setPrototypeOf(this,t.prototype)}};function hI(t){return t instanceof us?!0:$d(t)&&t.name==="RestError"}function Xs(t,e){return Buffer.from(t,e)}var bI=F(require("node:http"),1),MI=F(require("node:https"),1),sk=F(require("node:zlib"),1),_Me=require("node:stream");var Ri=$O("ts-http-runtime");var ch0={};function YO(t){return t&&typeof t.pipe=="function"}function WMe(t){return t.readable===!1?Promise.resolve():new Promise(e=>{let r=()=>{e(),t.removeListener("close",r),t.removeListener("end",r),t.removeListener("error",r)};t.on("close",r),t.on("end",r),t.on("error",r)})}function LMe(t){return t&&typeof t.byteLength=="number"}var mI=class extends _Me.Transform{loadedBytes=0;progressCallback;_transform(e,r,s){this.push(e),this.loadedBytes+=e.length;try{this.progressCallback({loadedBytes:this.loadedBytes}),s()}catch(n){s(n)}}constructor(e){super(),this.progressCallback=e}},nk=class{cachedHttpAgent;cachedHttpsAgents=new WeakMap;async sendRequest(e){let r=new AbortController,s;if(e.abortSignal){if(e.abortSignal.aborted)throw new _a("The operation was aborted. Request has already been canceled.");s=u=>{u.type==="abort"&&r.abort()},e.abortSignal.addEventListener("abort",s)}let n;e.timeout>0&&(n=setTimeout(()=>{let u=new Qo;Ri.info(`request to '${u.sanitizeUrl(e.url)}' timed out. canceling...`),r.abort()},e.timeout));let i=e.headers.get("Accept-Encoding"),o=i?.includes("gzip")||i?.includes("deflate"),a=typeof e.body=="function"?e.body():e.body;if(a&&!e.headers.has("Content-Length")){let u=Ah0(a);u!==null&&e.headers.set("Content-Length",u)}let c;try{if(a&&e.onUploadProgress){let M=e.onUploadProgress,g=new mI(M);g.on("error",y=>{Ri.error("Error in upload progress",y)}),YO(a)?a.pipe(g):g.end(a),a=g}let u=await this.makeRequest(e,r,a);n!==void 0&&clearTimeout(n);let p=uh0(u),A={status:u.statusCode??0,headers:p,request:e};if(e.method==="HEAD")return u.resume(),A;c=o?ph0(u,p):u;let h=e.onDownloadProgress;if(h){let M=new mI(h);M.on("error",g=>{Ri.error("Error in download progress",g)}),c.pipe(M),c=M}return e.streamResponseStatusCodes?.has(Number.POSITIVE_INFINITY)||e.streamResponseStatusCodes?.has(A.status)?A.readableStreamBody=c:A.bodyAsText=await lh0(c),A}finally{if(e.abortSignal&&s){let u=Promise.resolve();YO(a)&&(u=WMe(a));let p=Promise.resolve();YO(c)&&(p=WMe(c)),Promise.all([u,p]).then(()=>{s&&e.abortSignal?.removeEventListener("abort",s)}).catch(l=>{Ri.warning("Error when cleaning up abortListener on httpRequest",l)})}}}makeRequest(e,r,s){let n=new URL(e.url),i=n.protocol!=="https:";if(i&&!e.allowInsecureConnection)throw new Error(`Cannot connect to ${e.url} while allowInsecureConnection is false.`);let a={agent:e.agent??this.getOrCreateAgent(e,i),hostname:n.hostname,path:`${n.pathname}${n.search}`,port:n.port,method:e.method,headers:e.headers.toJSON({preserveCase:!0}),...e.requestOverrides};return new Promise((c,u)=>{let p=i?bI.default.request(a,c):MI.default.request(a,c);p.once("error",l=>{u(new us(l.message,{code:l.code??us.REQUEST_SEND_ERROR,request:e}))}),r.signal.addEventListener("abort",()=>{let l=new _a("The operation was aborted. Rejecting from abort signal callback while making request.");p.destroy(l),u(l)}),s&&YO(s)?s.pipe(p):s?typeof s=="string"||Buffer.isBuffer(s)?p.end(s):LMe(s)?p.end(ArrayBuffer.isView(s)?Buffer.from(s.buffer):Buffer.from(s)):(Ri.error("Unrecognized body type",s),u(new us("Unrecognized body type"))):p.end()})}getOrCreateAgent(e,r){let s=e.disableKeepAlive;if(r)return s?bI.default.globalAgent:(this.cachedHttpAgent||(this.cachedHttpAgent=new bI.default.Agent({keepAlive:!0})),this.cachedHttpAgent);{if(s&&!e.tlsSettings)return MI.default.globalAgent;let n=e.tlsSettings??ch0,i=this.cachedHttpsAgents.get(n);return i&&i.options.keepAlive===!s||(Ri.info("No cached TLS Agent exist, creating a new Agent"),i=new MI.default.Agent({keepAlive:!s,...n}),this.cachedHttpsAgents.set(n,i)),i}}};function uh0(t){let e=Ln();for(let r of Object.keys(t.headers)){let s=t.headers[r];Array.isArray(s)?s.length>0&&e.set(
`;return e}function Gb0(t){return t instanceof Uint8Array?t.byteLength:PI(t)?t.size===-1?void 0:t.size:void 0}function Hb0(t){let e=0;for(let r of t){let s=Gb0(r);if(s===void 0)return;e+=s}return e}async function Xb0(t,e,r){let s=[Xs(`--${r}`,"utf-8"),...e.flatMap(i=>[Xs(`\r
`,"utf-8"),Xs(Ub0(i.headers),"utf-8"),Xs(`\r
`,"utf-8"),i.body,Xs(`\r
--${r}`,"utf-8")]),Xs(`--\r
\r
2026-05-28 10:25:16 +00:00
`,"utf-8")],n=Hb0(s);n&&t.headers.set("Content-Length",n),t.body=await Pme(s)}var e3="multipartPolicy",Vb0=70,jb0=new Set("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'()+,-./:=?");function $b0(t){if(t.length>Vb0)throw new Error(`Multipart boundary "${t}" exceeds maximum length of 70 characters`);if(Array.from(t).some(e=>!jb0.has(e)))throw new Error(`Multipart boundary "${t}" contains invalid characters`)}function UI(){return{name:e3,async sendRequest(t,e){if(!t.multipartBody)return e(t);if(t.body)throw new Error("multipartBody and regular body cannot be set at the same time");let r=t.multipartBody.boundary,s=t.headers.get("Content-Type")??"multipart/mixed",n=s.match(/^(multipart\/[^ ;]+)(?:; *boundary=(.+))?$/);if(!n)throw new Error(`Got multipart request body, but content-type header was not multipart: ${s}`);let[,i,o]=n;if(o&&r&&o!==r)throw new Error(`Multipart boundary was specified as ${o} in the header, but got ${r} in the request body`);return r??=o,r?$b0(r):r=kb0(),t.headers.set("Content-Type",`${i}; boundary=${r}`),await Xb0(t,t.multipartBody.parts,r),t.multipartBody=void 0,e(t)}}}function GI(){return fI()}var kme=lI({logLevelEnvVarName:"AZURE_LOG_LEVEL",namespace:"azure"}),Nmt=kme.logger;function Pa(t){return kme.createClientLogger(t)}var ka=Pa("core-rest-pipeline");function Ck(t={}){return zI({logger:ka.info,...t})}var Bk=OI;function Dk(t={}){return EI(t)}var HI=F(require("node:os"),1),XI=F(require("node:process"),1);function Ume(){return"User-Agent"}async function Gme(t){if(XI.default&&XI.default.versions){let e=`${HI.default.type()} ${HI.default.release()}; ${HI.default.arch()}`,r=XI.default.versions;r.bun?t.set("Bun",`${r.bun} (${e})`):r.deno?t.set("Deno",`${r.deno} (${e})`):r.node&&t.set("Node",`${r.node} (${e})`)}}var VI="1.22.2";function sM0(t){let e=[];for(let[r,s]of t){let n=s?`${r}/${s}`:r;e.push(n)}return e.join(" ")}function Hme(){return Ume()}async function jI(t){let e=new Map;e.set("core-rest-pipeline",VI),await Gme(e);let r=sM0(e);return t?`${t} ${r}`:r}var Xme=Hme(),Vme="userAgentPolicy";function qk(t={}){let e=jI(t.userAgentPrefix);return{name:Vme,async sendRequest(r,s){return r.headers.has(Xme)||r.headers.set(Xme,await e),s(r)}}}var Un=class extends Error{constructor(e){super(e),this.name="AbortError"}};function Ik(t,e){let{cleanupBeforeAbort:r,abortSignal:s,abortErrorMsg:n}=e??{};return new Promise((i,o)=>{function a(){o(new Un(n??"The operation was aborted."))}function c(){s?.removeEventListener("abort",u)}function u(){r?.(),c(),a()}if(s?.aborted)return a();try{t(p=>{c(),i(p)},p=>{c(),o(p)})}catch(p){o(p)}s?.addEventListener("abort",u)})}var cM0="The delay was aborted.";function t3(t,e){let r,{abortSignal:s,abortErrorMsg:n}=e??{};return Ik(i=>{r=setTimeout(i,t)},{cleanupBeforeAbort:()=>clearTimeout(r),abortSignal:s,abortErrorMsg:n??cM0})}function Gl(t){if($d(t))return t.message;{let e;try{typeof t=="object"&&t?e=JSON.stringify(t):e=String(t)}catch{e="[unable to stringify input]"}return`Unknown error ${e}`}}function jme(t){return $d(t)}function Pb(){return jd()}var I0=Kd;var $me=Symbol("rawContent");function wk(t){return typeof t[$me]=="function"}function Yme(t){return wk(t)?t[$me]():t}var $I=e3;function Sk(){let t=UI();return{name:$I,sendRequest:async(e,r)=>{if(e.multipartBody)for(let s of e.multipartBody.parts)wk(s.body)&&(s.body=Yme(s.body));return t.sendRequest(e,r)}}}var Nk=yI;function vk(){return CI()}function Fk(t={}){return qI(t)}function Tk(){return II()}function Hl(t){return gk(t)}function xk(t,e){return _I(t,e)}var Jme="setClientRequestIdPolicy";function Wk(t="x-ms-client-request-id"){return{name:Jme,async sendRequest(e,r){return e.headers.has(t)||e.headers.set(t,e.requestId),r(e)}}}function _k(t){return LI(t)}function Lk(t){return QI(t)}var kb={span:Symbol.for("@azure/core-tracing span"),namespace:Symbol.for("@azure/core-tracing namespace")};function Kme(t={}){let e=new Qk(t.parentContext);return t.span&&(e=e.setValue(kb.span,t.span)),t.namespace&&(e=e.setValue(kb.namespace,t.namespace)),e}var Qk=class t{_contextMap;constructor(e){this._contextMap=e instanceof t
`&&t[i]!=="\r";i++)c+=t[i];if(c=c.trim(),c[c.length-1]==="/"&&(c=c.substring(0,c.length-1),i--),!Nm0(c)){let l;return c.trim().length===0?l="Invalid space after '<'.":l="Tag '"+c+"' is an invalid name.",Kt("InvalidTag",l,ps(t,i))}let u=qm0(t,i);if(u===!1)return Kt("InvalidAttr","Attributes for '"+c+"' have open quote.",ps(t,i));let p=u.value;if(i=u.index,p[p.length-1]==="/"){let l=i-p.length;p=p.substring(0,p.length-1);let A=Tge(p,e);if(A===!0)s=!0;else return Kt(A.err.code,A.err.msg,ps(t,l+A.err.line))}else if(a)if(u.tagClosed){if(p.trim().length>0)return Kt("InvalidTag","Closing tag '"+c+"' can't have attributes or invalid starting.",ps(t,o));if(r.length===0)return Kt("InvalidTag","Closing tag '"+c+"' has not been opened.",ps(t,o));{let l=r.pop();if(c!==l.tagName){let A=ps(t,l.tagStartPos);return Kt("InvalidTag","Expected closing tag '"+l.tagName+"' (opened in line "+A.line+", col "+A.col+") instead of closing tag '"+c+"'.",ps(t,o))}r.length==0&&(n=!0)}}else return Kt("InvalidTag","Closing tag '"+c+"' doesn't have proper closing.",ps(t,i));else{let l=Tge(p,e);if(l!==!0)return Kt(l.err.code,l.err.msg,ps(t,i-p.length+l.err.line));if(n===!0)return Kt("InvalidXml","Multiple possible root nodes found.",ps(t,i));e.unpairedTags.indexOf(c)!==-1||r.push({tagName:c,tagStartPos:o}),s=!0}for(i++;i<t.length;i++)if(t[i]==="<")if(t[i+1]==="!"){i++,i=Fge(t,i);continue}else if(t[i+1]==="?"){if(i=vge(t,++i),i.err)return i}else break;else if(t[i]==="&"){let l=wm0(t,i);if(l==-1)return Kt("InvalidChar","char '&' is not expected.",ps(t,i));i=l}else if(n===!0&&!Nge(t[i]))return Kt("InvalidXml","Extra text at the end",ps(t,i));t[i]==="<"&&i--}}else{if(Nge(t[i]))continue;return Kt("InvalidChar","char '"+t[i]+"' is not expected.",ps(t,i))}if(s){if(r.length==1)return Kt("InvalidTag","Unclosed tag '"+r[0].tagName+"'.",ps(t,r[0].tagStartPos));if(r.length>0)return Kt("InvalidXml","Invalid '"+JSON.stringify(r.map(i=>i.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}else return Kt("InvalidXml","Start tag expected.",1);return!0}function Nge(t){return t===" "||t===" "||t===`
`||t==="\r"}function vge(t,e){let r=e;for(;e<t.length;e++)if(t[e]=="?"||t[e]==" "){let s=t.substr(r,e-r);if(e>5&&s==="xml")return Kt("InvalidXml","XML declaration allowed only at the start of the document.",ps(t,e));if(t[e]=="?"&&t[e+1]==">"){e++;break}else continue}return e}function Fge(t,e){if(t.length>e+5&&t[e+1]==="-"&&t[e+2]==="-"){for(e+=3;e<t.length;e++)if(t[e]==="-"&&t[e+1]==="-"&&t[e+2]===">"){e+=2;break}}else if(t.length>e+8&&t[e+1]==="D"&&t[e+2]==="O"&&t[e+3]==="C"&&t[e+4]==="T"&&t[e+5]==="Y"&&t[e+6]==="P"&&t[e+7]==="E"){let r=1;for(e+=8;e<t.length;e++)if(t[e]==="<")r++;else if(t[e]===">"&&(r--,r===0))break}else if(t.length>e+9&&t[e+1]==="["&&t[e+2]==="C"&&t[e+3]==="D"&&t[e+4]==="A"&&t[e+5]==="T"&&t[e+6]==="A"&&t[e+7]==="["){for(e+=8;e<t.length;e++)if(t[e]==="]"&&t[e+1]==="]"&&t[e+2]===">"){e+=2;break}}return e}var Bm0='"',Dm0="'";function qm0(t,e){let r="",s="",n=!1;for(;e<t.length;e++){if(t[e]===Bm0||t[e]===Dm0)s===""?s=t[e]:s!==t[e]||(s="");else if(t[e]===">"&&s===""){n=!0;break}r+=t[e]}return s!==""?!1:{value:r,index:e,tagClosed:n}}var Im0=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function Tge(t,e){let r=oR(t,Im0),s={};for(let n=0;n<r.length;n++){if(r[n][1].length===0)return Kt("InvalidAttr","Attribute '"+r[n][2]+"' has no space in starting.",d3(r[n]));if(r[n][3]!==void 0&&r[n][4]===void 0)return Kt("InvalidAttr","Attribute '"+r[n][2]+"' is without value.",d3(r[n]));if(r[n][3]===void 0&&!e.allowBooleanAttributes)return Kt("InvalidAttr","boolean attribute '"+r[n][2]+"' is not allowed.",d3(r[n]));let i=r[n][2];if(!Sm0(i))return Kt("InvalidAttr","Attribute '"+i+"' is an invalid name.",d3(r[n]));if(!Object.prototype.hasOwnProperty.call(s,i))s[i]=1;else return Kt("InvalidAttr","Attribute '"+i+"' is repeated.",d3(r[n]))}return!0}function Rm0(t,e){let r=/\d/;for(t[e]==="x"&&(e++,r=/[\da-fA-F]/);e<t.length;e++){if(t[e]===";")return e;if(!t[e].match(r))break}return-1}function wm0(t,e){if(e++,t[e]===";")return-1;if(t[e]==="#")return e++,Rm0(t,e);let r=0;for(;e<t.length;e++,r++)if(!(t[e].match(/\w/)&&r<20)){if(t[e]===";")break;return-1}return e}function Kt(t,e,r){return{err:{code:t,msg:e,line:r.line||r,col:r.col}}}function Sm0(t){return n7(t)}function Nm0(t){return n7(t)}function ps(t,e){let r=t.substring(0,e).split(/\r?\n/);return{line:r.length,col:r[r.length-1].length+1}}function d3(t){return t.startIndex+t[1].length}var xge={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"},Wge={Agrave:"\xC0",agrave:"\xE0",Aacute:"\xC1",aacute:"\xE1",Acirc:"\xC2",acirc:"\xE2",Atilde:"\xC3",atilde:"\xE3",Auml:"\xC4",auml:"\xE4",Aring:"\xC5",aring:"\xE5",AElig:"\xC6",aelig:"\xE6",Ccedil:"\xC7",ccedil:"\xE7",Egrave:"\xC8",egrave:"\xE8",Eacute:"\xC9",eacute:"\xE9",Ecirc:"\xCA",ecirc:"\xEA",Euml:"\xCB",euml:"\xEB",Igrave:"\xCC",igrave:"\xEC",Iacute:"\xCD",iacute:"\xED",Icirc:"\xCE",icirc:"\xEE",Iuml:"\xCF",iuml:"\xEF",ETH:"\xD0",eth:"\xF0",Ntilde:"\xD1",ntilde:"\xF1",Ograve:"\xD2",ograve:"\xF2",Oacute:"\xD3",oacute:"\xF3",Ocirc:"\xD4",ocirc:"\xF4",Otilde:"\xD5",otilde:"\xF5",Ouml:"\xD6",ouml:"\xF6",Oslash:"\xD8",oslash:"\xF8",Ugrave:"\xD9",ugrave:"\xF9",Uacute:"\xDA",uacute:"\xFA",Ucirc:"\xDB",ucirc:"\xFB",Uuml:"\xDC",uuml:"\xFC",Yacute:"\xDD",yacute:"\xFD",THORN:"\xDE",tho
`);let e=new Ys("!xml"),r=e,s="";this.matcher.reset(),this.entityDecoder.reset(),this.entityExpansionCount=0,this.currentExpandedLength=0;let n=this.options,i=new b3(n.processEntities),o=t.length;for(let a=0;a<o;a++)if(t[a]==="<"){let u=t.charCodeAt(a+1);if(u===47){let p=Vb(t,">",a,"Closing Tag is not closed."),l=t.substring(a+2,p).trim();if(n.removeNSPrefix){let h=l.indexOf(":");h!==-1&&(l=l.substr(h+1))}l=A7(n.transformTagName,l,"",n).tagName,r&&(s=this.saveTextToParentTag(s,r,this.readonlyMatcher));let A=this.matcher.getCurrentTag();if(l&&n.unpairedTagsSet.has(l))throw new Error(`Unpaired tag can not be used as closing tag: </${l}>`);A&&n.unpairedTagsSet.has(A)&&(this.matcher.pop(),this.tagsNodeStack.pop()),this.matcher.pop(),this.isCurrentNodeStopNode=!1,r=this.tagsNodeStack.pop(),s="",a=p}else if(u===63){let p=d7(t,a,!1,"?>");if(!p)throw new Error("Pi Tag is not closed.");s=this.saveTextToParentTag(s,r,this.readonlyMatcher);let l=this.buildAttributesMap(p.tagExp,this.matcher,p.tagName,!0);if(l){let A=l[this.options.attributeNamePrefix+"version"];this.entityDecoder.setXmlVersion(Number(A)||1),i.setXmlVersion(Number(A)||1)}if(!(n.ignoreDeclaration&&p.tagName==="?xml"||n.ignorePiTags)){let A=new Ys(p.tagName);A.add(n.textNodeName,""),p.tagName!==p.tagExp&&p.attrExpPresent&&n.ignoreAttributes!==!0&&(A[":@"]=l),this.addChild(r,A,this.readonlyMatcher,a)}a=p.closeIndex+1}else if(u===33&&t.charCodeAt(a+2)===45&&t.charCodeAt(a+3)===45){let p=Vb(t,"-->",a+4,"Comment is not closed.");if(n.commentPropName){let l=t.substring(a+4,p-2);s=this.saveTextToParentTag(s,r,this.readonlyMatcher),r.add(n.commentPropName,[{[n.textNodeName]:l}])}a=p}else if(u===33&&t.charCodeAt(a+2)===68){let p=i.readDocType(t,a);this.entityDecoder.addInputEntities(p.entities),a=p.i}else if(u===33&&t.charCodeAt(a+2)===91){let p=Vb(t,"]]>",a,"CDATA is not closed.")-2,l=t.substring(a+9,p);s=this.saveTextToParentTag(s,r,this.readonlyMatcher);let A=this.parseTextData(l,r.tagname,this.readonlyMatcher,!0,!1,!0,!0);A==null&&(A=""),n.cdataPropName?r.add(n.cdataPropName,[{[n.textNodeName]:l}]):r.add(n.textNodeName,A),a=p+2}else{let p=d7(t,a,n.removeNSPrefix);if(!p){let T=t.substring(Math.max(0,a-50),Math.min(o,a+50));throw new Error(`readTagExp returned undefined at position ${a}. Context: "${T}"`)}let l=p.tagName,A=p.rawTagName,h=p.tagExp,M=p.attrExpPresent,g=p.closeIndex;if({tagName:l,tagExp:h}=A7(n.transformTagName,l,h,n),n.strictReservedNames&&(l===n.commentPropName||l===n.cdataPropName||l===n.textNodeName||l===n.attributesGroupName))throw new Error(`Invalid tag name: ${l}`);r&&s&&r.tagname!=="!xml"&&(s=this.saveTextToParentTag(s,r,this.readonlyMatcher,!1));let y=r;y&&n.unpairedTagsSet.has(y.tagname)&&(r=this.tagsNodeStack.pop(),this.matcher.pop());let O=!1;h.length>0&&h.lastIndexOf("/")===h.length-1&&(O=!0,l[l.length-1]==="/"?(l=l.substr(0,l.length-1),h=l):h=h.substr(0,h.length-1),M=l!==h);let B=null,I={},R;R=tg0(A),l!==e.tagname&&this.matcher.push(l,{},R),l!==h&&M&&(B=this.buildAttributesMap(h,this.matcher,l),B&&(I=eg0(B,n))),l!==e.tagname&&(this.isCurrentNodeStopNode=this.isItStopNode());let N=a;if(this.isCurrentNodeStopNode){let T="";if(O)a=p.closeIndex;else if(n.unpairedTagsSet.has(l))a=p.closeIndex;else{let j=this.readStopNodeData(t,A,g+1);if(!j)throw new Error(`Unexpected end of ${A}`);a=j.i,T=j.tagContent}let W=new Ys(l);B&&(W[":@"]=B),W.add(n.textNodeName,T),this.matcher.pop(),this.isCurrentNodeStopNode=!1,this.addChild(r,W,this.readonlyMatcher,N)}else{if(O){({tagName:l,tagExp:h}=A7(n.transformTagName,l,h,n));let T=new Ys(l);B&&(T[":@"]=B),this.addChild(r,T,this.readonlyMatcher,N),this.matcher.pop(),this.isCurrentNodeStopNode=!1}else if(n.unpairedTagsSet.has(l)){let T=new Ys(l);B&&(T[":@"]=B),this.addChild(r,T,this.readonlyMatcher,N),this.matcher.pop(),this.isCurrentNodeStopNode=!1,a=p.closeIndex;continue}else{let T=new Ys(l);if(this.tagsNodeStack.length>n.maxNestedTags)throw new Error("Maximum nested tags exceeded");this.tagsNodeStack.push(r),B&&(T[":@"]=B),this.addChild(r,T,this.readonlyMatcher,N),r=T}s="",a=g}}}else s+=t[a];return e.child};function a
`;function gg0(t,e){if(!Array.isArray(t)||t.length===0)return"1.0";let r=t[0];if(g7(r)==="?xml"){let n=r[":@"];if(n){let i=e.attributeNamePrefix+"version";if(n[i])return n[i]}}return"1.0"}function nze(t,e,r,s,n){return!r.sanitizeName||n2(t,{xmlVersion:n})?t:r.sanitizeName(t,{isAttribute:e,matcher:s.readOnly()})}function m7(t,e){let r="";e.format&&(r=mg0);let s=[];if(e.stopNodes&&Array.isArray(e.stopNodes))for(let o=0;o<e.stopNodes.length;o++){let a=e.stopNodes[o];typeof a=="string"?s.push(new Xn(a)):a instanceof Xn&&s.push(a)}let n=gg0(t,e),i=new Ha;return ize(t,e,r,i,s,n)}function ize(t,e,r,s,n,i){let o="",a=!1;if(e.maxNestedTags&&s.getDepth()>e.maxNestedTags)throw new Error("Maximum nested tags exceeded");if(!Array.isArray(t)){if(t!=null){let c=t.toString();return c=M7(c,e),c}return""}for(let c=0;c<t.length;c++){let u=t[c],p=g7(u);if(p===void 0)continue;let A=p===e.textNodeName||p===e.cdataPropName||p===e.commentPropName||p[0]==="?"?p:nze(p,!1,e,s,i),h=zg0(u[":@"],e);s.push(A,h);let M=Eg0(s,n);if(A===e.textNodeName){let I=u[p];M||(I=e.tagValueProcessor(A,I),I=M7(I,e)),a&&(o+=r),o+=I,a=!1,s.pop();continue}else if(A===e.cdataPropName){a&&(o+=r);let I=u[p][0][e.textNodeName],R=dR(I);o+=`<![CDATA[${R}]]>`,a=!1,s.pop();continue}else if(A===e.commentPropName){let I=u[p][0][e.textNodeName],R=AR(I);o+=r+`<!--${R}-->`,a=!0,s.pop();continue}else if(A[0]==="?"){let I=sze(u[":@"],e,M,s,i);o+=(A==="?xml"?"":r)+`<${A}${I}?>`,a=!0,s.pop();continue}let g=r;g!==""&&(g+=e.indentBy);let y=sze(u[":@"],e,M,s,i),O=r+`<${A}${y}`,B;M?B=oze(u[p],e):B=ize(u[p],e,g,s,n,i),e.unpairedTags.indexOf(A)!==-1?e.suppressUnpairedNode?o+=O+">":o+=O+"/>":(!B||B.length===0)&&e.suppressEmptyNode?o+=O+"/>":B&&B.endsWith(">")?o+=O+`>${B}${r}</${A}>`:(o+=O+">",B&&r!==""&&(B.includes("/>")||B.includes("</"))?o+=r+e.indentBy+B+r:o+=B,o+=`</${A}>`),a=!0,s.pop()}return o}function zg0(t,e){if(!t||e.ignoreAttributes)return null;let r={},s=!1;for(let n in t){if(!Object.prototype.hasOwnProperty.call(t,n))continue;let i=n.startsWith(e.attributeNamePrefix)?n.substr(e.attributeNamePrefix.length):n;r[i]=jl(t[n]),s=!0}return s?r:null}function oze(t,e){if(!Array.isArray(t))return t!=null?t.toString():"";let r="";for(let s=0;s<t.length;s++){let n=t[s],i=g7(n);if(i===e.textNodeName)r+=n[i];else if(i===e.cdataPropName)r+=n[i][0][e.textNodeName];else if(i===e.commentPropName)r+=n[i][0][e.textNodeName];else{if(i&&i[0]==="?")continue;if(i){let o=Og0(n[":@"],e),a=oze(n[i],e);!a||a.length===0?r+=`<${i}${o}/>`:r+=`<${i}${o}>${a}</${i}>`}}}return r}function Og0(t,e){let r="";if(t&&!e.ignoreAttributes)for(let s in t){if(!Object.prototype.hasOwnProperty.call(t,s))continue;let n=t[s];n===!0&&e.suppressBooleanAttributes?r+=` ${s.substr(e.attributeNamePrefix.length)}`:r+=` ${s.substr(e.attributeNamePrefix.length)}="${jl(n)}"`}return r}function g7(t){let e=Object.keys(t);for(let r=0;r<e.length;r++){let s=e[r];if(Object.prototype.hasOwnProperty.call(t,s)&&s!==":@")return s}}function sze(t,e,r,s,n){let i="";if(t&&!e.ignoreAttributes)for(let o in t){if(!Object.prototype.hasOwnProperty.call(t,o))continue;let a=o.substr(e.attributeNamePrefix.length),c=r?a:nze(a,!0,e,s,n),u;r?u=t[o]:(u=e.attributeValueProcessor(o,t[o]),u=M7(u,e)),u===!0&&e.suppressBooleanAttributes?i+=` ${c}`:i+=` ${c}="${jl(u)}"`}return i}function Eg0(t,e){if(!e||e.length===0)return!1;for(let r=0;r<e.length;r++)if(t.matches(e[r]))return!0;return!1}function M7(t,e){if(t&&t.length>0&&e.processEntities)for(let r=0;r<e.entities.length;r++){let s=e.entities[r];t=t.replace(s.regex,s.val)}return t}function z7(t){return typeof t=="function"?t:Array.isArray(t)?e=>{for(let r of t)if(typeof r=="string"&&e===r||r instanceof RegExp&&r.test(e))return!0}:()=>!1}var yg0={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:" ",suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:function(t,e){return e},attributeValueProcessor:function(t,e){return e},preserveOrder:!1,commentPropName:!1,unpairedTags:[],entities:[{regex:new RegExp("&","
`,this.newLine=`
2026-05-28 10:25:16 +00:00
`):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}function Cg0(t,e){let r=t["?xml"];if(r&&typeof r=="object"){if(e.attributesGroupName&&r[e.attributesGroupName]){let n=r[e.attributesGroupName][e.attributeNamePrefix+"version"];if(n)return n}let s=r[e.attributeNamePrefix+"version"];if(s)return s}return"1.0"}function O7(t,e,r,s,n){return!r.sanitizeName||n2(t,{xmlVersion:n})?t:r.sanitizeName(t,{isAttribute:e,matcher:s.readOnly()})}Ks.prototype.build=function(t){if(this.options.preserveOrder)return m7(t,this.options);{Array.isArray(t)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(t={[this.options.arrayNodeName]:t});let e=new Ha,r=Cg0(t,this.options);return this.j2x(t,0,e,r).val}};Ks.prototype.j2x=function(t,e,r,s){let n="",i="";if(this.options.maxNestedTags&&r.getDepth()>=this.options.maxNestedTags)throw new Error("Maximum nested tags exceeded");let o=this.options.jPath?r.toString():r,a=this.checkStopNode(r);for(let c in t){if(!Object.prototype.hasOwnProperty.call(t,c))continue;let p=c===this.options.textNodeName||c===this.options.cdataPropName||c===this.options.commentPropName||this.options.attributesGroupName&&c===this.options.attributesGroupName||this.isAttribute(c)||c[0]==="?"?c:O7(c,!1,this.options,r,s);if(typeof t[c]>"u")this.isAttribute(c)&&(i+="");else if(t[c]===null)this.isAttribute(c)||p===this.options.cdataPropName||p===this.options.commentPropName?i+="":p[0]==="?"?i+=this.indentate(e)+"<"+p+"?"+this.tagEndChar:i+=this.indentate(e)+"<"+p+"/"+this.tagEndChar;else if(t[c]instanceof Date)i+=this.buildTextValNode(t[c],p,"",e,r);else if(typeof t[c]!="object"){let l=this.isAttribute(c);if(l&&!this.ignoreAttributesFn(l,o)){let A=O7(l,!0,this.options,r,s);n+=this.buildAttrPairStr(A,""+t[c],a)}else if(!l)if(c===this.options.textNodeName){let A=this.options.tagValueProcessor(c,""+t[c]);i+=this.replaceEntitiesValue(A)}else{r.push(p);let A=this.checkStopNode(r);if(r.pop(),A){let h=""+t[c];h===""?i+=this.indentate(e)+"<"+p+this.closeTag(p)+this.tagEndChar:i+=this.indentate(e)+"<"+p+">"+h+"</"+p+this.tagEndChar}else i+=this.buildTextValNode(t[c],p,"",e,r)}}else if(Array.isArray(t[c])){let l=t[c].length,A="",h="";for(let M=0;M<l;M++){let g=t[c][M];if(!(typeof g>"u"))if(g===null)p[0]==="?"?i+=this.indentate(e)+"<"+p+"?"+this.tagEndChar:i+=this.indentate(e)+"<"+p+"/"+this.tagEndChar;else if(typeof g=="object")if(this.options.oneListGroup){r.push(p);let y=this.j2x(g,e+1,r,s);r.pop(),A+=y.val,this.options.attributesGroupName&&g.hasOwnProperty(this.options.attributesGroupName)&&(h+=y.attrStr)}else A+=this.processTextOrObjNode(g,p,e,r,s);else if(this.options.oneListGroup){let y=this.options.tagValueProcessor(p,g);y=this.replaceEntitiesValue(y),A+=y}else{r.push(p);let y=this.checkStopNode(r);if(r.pop(),y){let O=""+g;O===""?A+=this.indentate(e)+"<"+p+this.closeTag(p)+this.tagEndChar:A+=this.indentate(e)+"<"+p+">"+O+"</"+p+this.tagEndChar}else A+=this.buildTextValNode(g,p,"",e,r)}}this.options.oneListGroup&&(A=this.buildObjectNode(A,p,h,e)),i+=A}else if(this.options.attributesGroupName&&c===this.options.attributesGroupName){let l=Object.keys(t[c]),A=l.length;for(let h=0;h<A;h++){let M=O7(l[h],!0,this.options,r,s);n+=this.buildAttrPairStr(M,""+t[c][l[h]],a)}}else i+=this.processTextOrObjNode(t[c],p,e,r,s)}return{attrStr:n,val:i}};Ks.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+'="'+jl(e)+'"'};function Bg0(t,e,r,s,n){let i=this.extractAttributes(t);if(s.push(e,i),this.checkStopNode(s)){let c=this.buildRawContent(t),u=this.buildAttributesForStopNode(t);return s.pop(),this.buildObjectNode(c,e,u,r)}let a=this.j2x(t,r+1,s,n);return s.pop(),e[0]==="?"?this.buildTextValNode("",e,a.attrStr,r,s):t[this.options.textNodeName]!==void 0&&Object.keys(t).length===1?this.buildTextValNode(t[this.options.textNodeName],e,a.attrStr,r,s):this.buildObjectNode(a.val,e,a.attrStr,r)}Ks.prototype.extractAttributes=function(t){if(!t||typeof t!="object")return null;let e
`)+`
2026-05-28 10:25:16 +00:00
`+this.getCanonicalizedHeadersString(e)+this.getCanonicalizedResourceString(e),s=this.factory.computeHMACSHA256(r);return e.headers.set(Qe.AUTHORIZATION,`SharedKey ${this.factory.accountName}:${s}`),e}getHeaderValueToSign(e,r){let s=e.headers.get(r);return!s||r===Qe.CONTENT_LENGTH&&s==="0"?"":s}getCanonicalizedHeadersString(e){let r=e.headers.headersArray().filter(n=>n.name.toLowerCase().startsWith(Qe.PREFIX_FOR_STORAGE));r.sort((n,i)=>CR(n.name.toLowerCase(),i.name.toLowerCase())),r=r.filter((n,i,o)=>!(i>0&&n.name.toLowerCase()===o[i-1].name.toLowerCase()));let s="";return r.forEach(n=>{s+=`${n.name.toLowerCase().trimRight()}:${n.value.trimLeft()}
`}),s}getCanonicalizedResourceString(e){let r=OR(e.url)||"/",s="";s+=`/${this.factory.accountName}${r}`;let n=ER(e.url),i={};if(n){let o=[];for(let a in n)if(Object.prototype.hasOwnProperty.call(n,a)){let c=a.toLowerCase();i[c]=n[a],o.push(c)}o.sort();for(let a of o)s+=`
${a}:${decodeURIComponent(i[a])}`}return s}};var Nt=class extends a2{accountName;accountKey;constructor(e,r){super(),this.accountName=e,this.accountKey=Buffer.from(r,"base64")}create(e,r){return new O3(e,r,this)}computeHMACSHA256(e){return(0,fze.createHmac)("sha256",this.accountKey).update(e,"utf8").digest("base64")}};var C1=Pa("storage-common");var vi;(function(t){t[t.EXPONENTIAL=0]="EXPONENTIAL",t[t.FIXED=1]="FIXED"})(vi||(vi={}));var Yl={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:vi.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},Fg0=new Un("The operation was aborted."),E3=class extends Xa{retryOptions;constructor(e,r,s=Yl){super(e,r),this.retryOptions={retryPolicyType:s.retryPolicyType?s.retryPolicyType:Yl.retryPolicyType,maxTries:s.maxTries&&s.maxTries>=1?Math.floor(s.maxTries):Yl.maxTries,tryTimeoutInMs:s.tryTimeoutInMs&&s.tryTimeoutInMs>=0?s.tryTimeoutInMs:Yl.tryTimeoutInMs,retryDelayInMs:s.retryDelayInMs&&s.retryDelayInMs>=0?Math.min(s.retryDelayInMs,s.maxRetryDelayInMs?s.maxRetryDelayInMs:Yl.maxRetryDelayInMs):Yl.retryDelayInMs,maxRetryDelayInMs:s.maxRetryDelayInMs&&s.maxRetryDelayInMs>=0?s.maxRetryDelayInMs:Yl.maxRetryDelayInMs,secondaryHost:s.secondaryHost?s.secondaryHost:Yl.secondaryHost}}async sendRequest(e){return this.attemptSendRequest(e,!1,1)}async attemptSendRequest(e,r,s){let n=e.clone(),i=r||!this.retryOptions.secondaryHost||!(e.method==="GET"||e.method==="HEAD"||e.method==="OPTIONS")||s%2===1;i||(n.url=zR(n.url,this.retryOptions.secondaryHost)),this.retryOptions.tryTimeoutInMs&&(n.url=$l(n.url,ku.Parameters.TIMEOUT,Math.floor(this.retryOptions.tryTimeoutInMs/1e3).toString()));let o;try{if(C1.info(`RetryPolicy: =====> Try=${s} ${i?"Primary":"Secondary"}`),o=await this._nextPolicy.sendRequest(n),!this.shouldRetry(i,s,o))return o;r=r||!i&&o.status===404}catch(a){if(C1.error(`RetryPolicy: Caught error, message: ${a.message}, code: ${a.code}`),!this.shouldRetry(i,s,o,a))throw a}return await this.delay(i,s,e.abortSignal),this.attemptSendRequest(e,r,++s)}shouldRetry(e,r,s,n){if(r>=this.retryOptions.maxTries)return C1.info(`RetryPolicy: Attempt(s) ${r} >= maxTries ${this.retryOptions.maxTries}, no further try.`),!1;let i=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"];if(n){for(let o of i)if(n.name.toUpperCase().includes(o)||n.message.toUpperCase().includes(o)||n.code&&n.code.toString().toUpperCase()===o)return C1.info(`RetryPolicy: Network error ${o} found, will retry.`),!0}if(s||n){let o=s?s.status:n?n.statusCode:0;if(!e&&o===404)return C1.info("RetryPolicy: Secondary access with 404, will retry."),!0;if(o===503||o===500)return C1.info(`RetryPolicy: Will retry for status code ${o}.`),!0}if(s&&s?.status>=400){let o=s.headers.get(Qe.X_MS_CopySourceErrorCode);if(o!==void 0)switch(o){case"InternalError":case"OperationTimedOut":case"ServerBusy":return!0}}return n?.code==="PARSE_ERROR"&&n?.message.startsWith('Error "Error: Unclosed root tag')?(C1.info("RetryPolicy: Incomplete XML response likely due to service timeout, will retry."),!0):!1}async delay(e,r,s){let n=0;if(e)switch(this.retryOptions.retryPolicyType){case vi.EXPONENTIAL:n=Math.min((Math.pow(2,r-1)-1)*this.retryOptions.retryDelayInMs,this.retryOptions.maxRetryDelayInMs);break;case vi.FIXED:n=this.retryOptions.retryDelayInMs;break}else n=Math.random()*1e3;return C1.info(`RetryPolicy: Delay for ${n}ms`),yR(n,s,Fg0)}};var y3=class{retryOptions;constructor(e){this.retryOptions=e}create(e,r){return new E3(e,r,this.retryOptions)}};var Tg0="storageBrowserPolicy";function hze(){return{name:Tg0,async sendRequest(t,e){return I0||((t.method==="GET"||t.method==="HEAD")&&(t.url=$l(t.url,ku.Parameters.FORCE_BROWSER_NO_CACHE,new Date().getTime().toString())),t.headers.delete(Qe.COOKIE),t.headers.delete(Qe.CONTENT_LENGTH)),e(t)}}}var xg0="StorageCorrectContentLengthPolicy";function bze(){function t(e){e.body&&(typeof e.body=="string"||Buffer.isBuffer(e.body))&&e.body.length>0&&e.headers.set(Qe.CONTENT_LENGTH,Buffer.byteLength(e.body))}return{name:xg0,async send
`)+`
2026-05-28 10:25:16 +00:00
`+s(i)+n(i),a=(0,mze.createHmac)("sha256",t.accountKey).update(o,"utf8").digest("base64");i.headers.set(Qe.AUTHORIZATION,`SharedKey ${t.accountName}:${a}`)}function r(i,o){let a=i.headers.get(o);return!a||o===Qe.CONTENT_LENGTH&&a==="0"?"":a}function s(i){let o=[];for(let[c,u]of i.headers)c.toLowerCase().startsWith(Qe.PREFIX_FOR_STORAGE)&&o.push({name:c,value:u});o.sort((c,u)=>CR(c.name.toLowerCase(),u.name.toLowerCase())),o=o.filter((c,u,p)=>!(u>0&&c.name.toLowerCase()===p[u-1].name.toLowerCase()));let a="";return o.forEach(c=>{a+=`${c.name.toLowerCase().trimRight()}:${c.value.trimLeft()}
`}),a}function n(i){let o=OR(i.url)||"/",a="";a+=`/${t.accountName}${o}`;let c=ER(i.url),u={};if(c){let p=[];for(let l in c)if(Object.prototype.hasOwnProperty.call(c,l)){let A=l.toLowerCase();u[A]=c[l],p.push(A)}p.sort();for(let l of p)a+=`
${l}:${decodeURIComponent(u[l])}`}return a}return{name:Qg0,async sendRequest(i,o){return e(i),o(i)}}}var Pg0="storageRequestFailureDetailsParserPolicy";function gze(){return{name:Pg0,async sendRequest(t,e){try{return await e(t)}catch(r){throw typeof r=="object"&&r!==null&&r.response&&r.response.parsedBody&&r.response.parsedBody.code==="InvalidHeaderValue"&&r.response.parsedBody.HeaderName==="x-ms-version"&&(r.message=`The provided service version is not enabled on this storage account. Please see https://learn.microsoft.com/rest/api/storageservices/versioning-for-the-azure-storage-services for additional information.
`),r}}}}var zze=require("node:crypto"),BR=class{accountName;userDelegationKey;key;constructor(e,r){this.accountName=e,this.userDelegationKey=r,this.key=Buffer.from(r.value,"base64")}computeHMACSHA256(e){return(0,zze.createHmac)("sha256",this.key).update(e,"utf8").digest("base64")}};var DR="12.31.0",qR="2026-02-06";var IR="https://storage.azure.com/.default",Uu={Parameters:{FORCE_BROWSER_NO_CACHE:"_",SIGNATURE:"sig",SNAPSHOT:"snapshot",VERSIONID:"versionid",TIMEOUT:"timeout"}};var Po="",q7="*",kg0=1*1024*1024;var Ug0=4*kg0;var Oze="AES256",Eze="DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;",yze=["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"],Cze=["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"],Bze="BlobUsesCustomerSpecifiedEncryption",Dze="BlobDoesNotUseCustomerSpecifiedEncryption",qze=["10000","10001","10002","10003","10004","10100","10101","10102","10103","10104","11000","11001","11002","11003","11004","11100","11101","11102","11103","11104"];function Gu(t){if(!t||typeof t!="object")return!1;let e=t;return Array.isArray(e.factories)&&typeof e.options=="object"&&typeof e.toServiceClientOptions=="function"}var C3=class{factories;options;constructor(e,r={}){this.factories=e,this.options=r}toServiceClientOptions(){return{httpClient:this.options.httpClient,requestPolicyFactories:this.factories}}};function Zt(t,e={}){t||(t=new bt);let r=new C3([],e);return r._credential=t,r}function Gg0(t){let e=[Hg0,Ize,Xg0,Vg0,jg0,$g0,Jg0];if(t.factories.length){let r=t.factories.filter(s=>!e.some(n=>n(s)));if(r.length){let s=r.some(n=>Yg0(n));return{wrappedPolicies:r7(r),afterRetry:s}}}}function I7(t)
`),i=e.computeHMACSHA256(n);return{sasQueryParameters:new Xo(t.version,i,s,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType),stringToSign:n}}function HO0(t,e){if(t=b2(t),!t.identifier&&!(t.permissions&&t.expiresOn))throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.");let r="c",s=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",s=t.versionId));let n;t.permissions&&(t.blobName?n=uc.parse(t.permissions.toString()).toString():n=pc.parse(t.permissions.toString()).toString());let i=[n||"",t.startsOn?R0(t.startsOn,!1):"",t.expiresOn?R0(t.expiresOn,!1):"",h2(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?Ho(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,s,t.cacheControl?t.cacheControl:"",t.contentDisposition?t.contentDisposition:"",t.contentEncoding?t.contentEncoding:"",t.contentLanguage?t.contentLanguage:"",t.contentType?t.contentType:""].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new Xo(t.version,o,n,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType),stringToSign:i}}function XO0(t,e){if(t=b2(t),!t.identifier&&!(t.permissions&&t.expiresOn))throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.");let r="c",s=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",s=t.versionId));let n;t.permissions&&(t.blobName?n=uc.parse(t.permissions.toString()).toString():n=pc.parse(t.permissions.toString()).toString());let i=[n||"",t.startsOn?R0(t.startsOn,!1):"",t.expiresOn?R0(t.expiresOn,!1):"",h2(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?Ho(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,s,t.encryptionScope,t.cacheControl?t.cacheControl:"",t.contentDisposition?t.contentDisposition:"",t.contentEncoding?t.contentEncoding:"",t.contentLanguage?t.contentLanguage:"",t.contentType?t.contentType:""].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new Xo(t.version,o,n,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,void 0,void 0,void 0,t.encryptionScope),stringToSign:i}}function VO0(t,e){if(t=b2(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",s=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",s=t.versionId));let n;t.permissions&&(t.blobName?n=uc.parse(t.permissions.toString()).toString():n=pc.parse(t.permissions.toString()).toString());let i=[n||"",t.startsOn?R0(t.startsOn,!1):"",t.expiresOn?R0(t.expiresOn,!1):"",h2(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?R0(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?R0(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.ipRange?Ho(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,s,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new Xo(t.version,o,n,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey),stringToSign:i}}function jO0(t,e){if(t=b2(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",s=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",s=t.versionId));let n;t.permissions&&(t.blobName?n=uc.parse(t.permissions.toString()).toString():n=pc.parse(t.permissions.toString()).toString());let i=[n||"",t.startsOn?R0(t.startsOn,!1):"",t.expiresOn?R0(t.expiresOn,!1):"",h2(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?R0(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?R0(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?Ho(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,s,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new Xo(t.version,o,n,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId),stringToSign:i}}function $O0(t,e){if(t=b2(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",s=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",s=t.versionId));let n;t.permissions&&(t.blobName?n=uc.parse(t.permissions.toString()).toString():n=pc.parse(t.permissions.toString()).toString());let i=[n||"",t.startsOn?R0(t.startsOn,!1):"",t.expiresOn?R0(t.expiresOn,!1):"",h2(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?R0(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?R0(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?Ho(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,s,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new Xo(t.version,o,n,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId,t.encryptionScope),stringToSign:i}}function YO0(t,e){if(t=b2(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",s=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",s=t.versionId));let n;t.permissions&&(t.blobName?n=uc.parse(t.permissions.toString()).toString():n=pc.parse(t.permissions.toString()).toString());let i=[n||"",t.startsOn?R0(t.startsOn,!1):"",t.expiresOn?R0(t.expiresOn,!1):"",h2(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?R0(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?R0(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,void 0,t.delegatedUserObjectId,t.ipRange?Ho(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,s,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new Xo(t.version,o,n,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId,t.encryptionScope,t.delegatedUserObjectId),stringToSign:i}}function h2(t,e,r){let s=[`/blob/${t}/${e}`];return r&&s.push(`/${r}`),s.join("")}function b2(t){let e=t.version?t.version:qR;if(t.snapshotTime&&e<"2018-11-09")throw RangeError("'version' must be >= '2018-11-09' when providing 'snapshotTime'.");if(t.blobName===void 0&&t.snapshotTime)throw RangeError("Must provide 'blobName' when providing 'snapshotTime'.");if(t.versionId&&e<"2019-10-10")throw RangeError("'version' must be >= '2019-10-10' when providing 'versionId'.");if(t.blobName===void 0&&t.versionId)throw RangeError("Must provide 'blobName' when providing 'versionId'.");if(t.permissions&&t.permissions.setImmutabilityPolicy&&e<"2020-08-04")throw RangeError("'version' must be >= '2020-08-04' when provided 'i' permission.");if(t.permissions&&t.permissions.deleteVersion&&e<"2019-10-10")throw RangeError("'version' must be >= '2019-10-10' when providing 'x' permission.");if(t.permissions&&t.permissions.permanentDelete&&e<"2019-10-10")throw RangeError("'version' must be >= '2019-10-10' when providing 'y' permission.");if(t.permissions&&t.permissions.tag&&e<"2019-12-12")throw RangeError("'version' must be >= '2019-12-12' when providing 't' permission.");if(e<"2020-02-10"&&t.permissions&&(t.permissions.move||t.permissions.execute))throw RangeError("'version' must be >= '2020-02-10' when providing the 'm' or 'e' permission.");if(e<"2021-04-10"&&t.permissions&&t.permissions.filterByTags)throw RangeError("'version' must be >= '2021-04-10' when providing the 'f' permission.");if(e<"2020-02-10"&&(t.preauthorizedAgentObjectId||t.correlationId))throw RangeError("'version' must be >= '2020-02-10' when providing 'preauthorizedAgentObjectId' or 'correlationId'.");if(t.encryptionScope&&e<"2020-12-06")throw RangeError("'version' must be >= '2020-12-06' when provided 'encryptionScope' in SAS.");return t.version=e,t}var x3=class{_leaseId;_url;_containerOrBlobOperation;_isContainer;get leaseId(){return this._leaseId}get url(){return this._url}constructor(e,r){let s=e.storageClientContext;this._url=e.url,e.name===void 0?(this._isContainer=!0,this._containerOrBlobOperation=s.container):(this._isContainer=!1,this._containerOrBlobOperation=s.blob),r||(r=Pb()),this._leaseId=r}async acquireLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==Po||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==Po||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 Oe.withSpan("BlobLeaseClient-acquireLease",r,async s=>De(await this._containerOrBlobOperation.acquireLease({abortSignal:r.abortSignal,duration:e,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},proposedLeaseId:this._leaseId,tracingOptions:s.tracingOptions})))}async changeLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==Po||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==Po||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 Oe.withSpan("BlobLeaseClient-changeLease",r,async s=>{let n=De(await this._containerOrBlobOperation.changeLease(this._leaseId,e,{abortSignal:r.abortSignal,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},tracingOptions:s.tracingOptions}));return this._leaseId=e,n})}async releaseLease(e={}){if(this._isContainer&&(e.conditions?.ifMatch&&e.conditions?.ifMatch!==Po||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==Po||e.conditions?.tagConditions))throw new RangeError("The IfMatch,
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"}};aM.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var z2=class extends Error{constructor(){super(`Cache storage quota has been hit. Unable to upload any new cache entries. Usage is recalculated every 6-12 hours.
More info on storage limits: https://docs.github.com/en/billing/managing-billing-for-github-actions/about-billing-for-github-actions#calculating-minute-and-storage-spending`),this.name="UsageError"}};z2.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var X3=class extends Error{constructor(e){super(e),this.name="RateLimitError"}};var oE0=function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(p){try{u(s.next(p))}catch(l){o(l)}}function c(p){try{u(s.throw(p))}catch(l){o(l)}}function u(p){p.done?i(p.value):n(p.value).then(a,c)}u((s=s.apply(t,e||[])).next())})},mH=class{constructor(e){this.contentLength=e,this.sentBytes=0,this.displayedComplete=!1,this.startTime=Date.now()}setSentBytes(e){this.sentBytes=e}getTransferredBytes(){return this.sentBytes}isDone(){return this.getTransferredBytes()===this.contentLength}display(){if(this.displayedComplete)return;let e=this.sentBytes,r=(100*(e/this.contentLength)).toFixed(1),s=Date.now()-this.startTime,n=(e/(1024*1024)/(s/1e3)).toFixed(1);h1(`Sent ${e} of ${this.contentLength} (${r}%), ${n} MBs/sec`),this.isDone()&&(this.displayedComplete=!0)}onProgress(){return e=>{this.setSentBytes(e.loadedBytes)}}startDisplayTimer(e=1e3){let r=()=>{this.display(),this.isDone()||(this.timeoutHandle=setTimeout(r,e))};this.timeoutHandle=setTimeout(r,e)}stopDisplayTimer(){this.timeoutHandle&&(clearTimeout(this.timeoutHandle),this.timeoutHandle=void 0),this.display()}};function S3e(t,e,r){return oE0(this,void 0,void 0,function*(){var s;let n=new Ju(t),i=n.getBlockBlobClient(),o=new mH((s=r?.archiveSizeBytes)!==null&&s!==void 0?s:0),a={blockSize:r?.uploadChunkSize,concurrency:r?.uploadConcurrency,maxSingleShotSize:128*1024*1024,onProgress:o.onProgress()};try{o.startDisplayTimer(),ee(`BlobClient: ${n.name}:${n.accountName}:${n.containerName}`);let c=yield i.uploadFile(e,a);if(c._response.status>=400)throw new N5(`uploadCacheArchiveSDK: upload failed with status code ${c._response.status}`);return c}catch(c){throw Wo(`uploadCacheArchiveSDK: internal error uploading cache archive: ${c.message}`),c}finally{o.stopDisplayTimer()}})}var v3e=F(require("buffer"),1),lc=F(require("fs"),1),F3e=F(require("stream"),1),T3e=F(require("util"),1);var v5=function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(p){try{u(s.next(p))}catch(l){o(l)}}function c(p){try{u(s.throw(p))}catch(l){o(l)}}function u(p){p.done?i(p.value):n(p.value).then(a,c)}u((s=s.apply(t,e||[])).next())})};function F5(t){return t?t>=200&&t<300:!1}function aE0(t){return t?t>=500:!0}function cE0(t){return t?[wt.BadGateway,wt.ServiceUnavailable,wt.GatewayTimeout].includes(t):!1}function uE0(t){return v5(this,void 0,void 0,function*(){return new Promise(e=>setTimeout(e,t))})}function N3e(t,e,r){return v5(this,arguments,void 0,function*(s,n,i,o=oI,a=aI,c=void 0){let u="",p=1;for(;p<=o;){let l,A,h=!1;try{l=yield n()}catch(M){c&&(l=c(M)),h=!0,u=M.message}if(l&&(A=i(l),!aE0(A)))return l;if(A&&(h=cE0(A),u=`Cache service responded with ${A}`),ee(`${s} - Attempt ${p} of ${o} failed with error: ${u}`),!h){ee(`${s} - Error is not retryable`);break}yield uE0(a),p++}throw Error(`${s} failed: ${u}`)})}function V3(t,e){return v5(this,arguments,void 0,function*(r,s,n=oI,i=aI){return yield N3e(r,s,o=>o.statusCode,n,i,o=>{if(o instanceof wa)return{statusCode:o.statusCode,result:null,headers:{},error:o}})})}function cM(t,e){return v5(this,arguments,void 0,function*(r,s,n=oI,i=aI){return yield N3e(r,s,o=>o.message.statusCode,n,i)})}var _i=function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(p){try{u(s.next(p))}catch(l){o(l)}}function c(p){try{u(s.throw(p))}catch(l){o(l)}}function u(p){p.done?i(p.value):n(p.value).then(a,c)}u((s=s.apply(t,e||[])).next())})};function pE0(t,e){return _i(this,void 0,void 0,function*(){yield T3e.promisify(F3e.pipeline)(t.message,e)})}var T5=class{constructor(e){this.contentLength=e,this.segmentIndex=0,th
Other caches with similar key:`);for(let a of i?.artifactCaches||[])ee(`Cache Key: ${a?.cacheKey}, Cache Version: ${a?.cacheVersion}, Cache Scope: ${a?.scope}, Cache Created: ${a?.creationTime}`)}}})}function EH(t,e,r){return en(this,void 0,void 0,function*(){let s=new H3e.URL(t),n=L3e(r);s.hostname.endsWith(".blob.core.windows.net")?n.useAzureSdk?yield W3e(t,e,n):n.concurrentBlobDownloads?yield x3e(t,e,n):yield x5(t,e):yield x5(t,e)})}function V3e(t,e,r){return en(this,void 0,void 0,function*(){let s=OH(),n=vb(e,r?.compressionMethod,r?.enableCrossOsArchive),i={key:t,version:n,cacheSize:r?.cacheSize};return yield V3("reserveCache",()=>en(this,void 0,void 0,function*(){return s.postJson($3("caches"),i)}))})}function G3e(t,e){return`bytes ${t}-${e}/*`}function mE0(t,e,r,s,n){return en(this,void 0,void 0,function*(){ee(`Uploading chunk of size ${n-s+1} bytes at offset ${s} with content range: ${G3e(s,n)}`);let i={"Content-Type":"application/octet-stream","Content-Range":G3e(s,n)},o=yield cM(`uploadChunk (start: ${s}, end: ${n})`,()=>en(this,void 0,void 0,function*(){return t.sendStream("PATCH",e,r(),i)}));if(!F5(o.message.statusCode))throw new Error(`Cache service responded with ${o.message.statusCode} during upload chunk.`)})}function gE0(t,e,r,s){return en(this,void 0,void 0,function*(){let n=Wa(r),i=$3(`caches/${e.toString()}`),o=uM.openSync(r,"r"),a=gH(s),c=VP("uploadConcurrency",a.uploadConcurrency),u=VP("uploadChunkSize",a.uploadChunkSize),p=[...new Array(c).keys()];ee("Awaiting all uploads");let l=0;try{yield Promise.all(p.map(()=>en(this,void 0,void 0,function*(){for(;l<n;){let A=Math.min(n-l,u),h=l,M=l+A-1;l+=u,yield mE0(t,i,()=>uM.createReadStream(r,{fd:o,start:h,end:M,autoClose:!1}).on("error",g=>{throw new Error(`Cache upload failed because file read failed with ${g.message}`)}),h,M)}})))}finally{uM.closeSync(o)}})}function zE0(t,e,r){return en(this,void 0,void 0,function*(){let s={size:r};return yield V3("commitCache",()=>en(this,void 0,void 0,function*(){return t.postJson($3(`caches/${e.toString()}`),s)}))})}function yH(t,e,r,s){return en(this,void 0,void 0,function*(){if(gH(s).useAzureSdk){if(!r)throw new Error("Azure Storage SDK can only be used when a signed URL is provided.");yield S3e(r,e,s)}else{let i=OH();ee("Upload cache"),yield gE0(i,t,e,s),ee("Commiting cache");let o=Wa(e);h1(`Cache Size: ~${Math.round(o/(1024*1024))} MB (${o} B)`);let a=yield zE0(i,t,o);if(!F5(a.statusCode))throw new Error(`Cache service responded with ${a.statusCode} during commit cache.`);h1("Cache saved successfully")}})}var PEe=F(FEe(),1),r1=F(t1(),1),$n=F(t1(),1),B2=F(t1(),1),D2=F(t1(),1),q2=F(t1(),1);var MX=F(t1(),1),mX=F(t1(),1),_Ee=F(t1(),1),LEe=F(t1(),1),QEe=F(t1(),1);var fX=F(t1(),1),hX=F(t1(),1),TEe=F(t1(),1),xEe=F(t1(),1),WEe=F(t1(),1),bX=class extends WEe.MessageType{constructor(){super("github.actions.results.entities.v1.CacheScope",[{no:1,name:"scope",kind:"scalar",T:9},{no:2,name:"permission",kind:"scalar",T:3}])}create(e){let r={scope:"",permission:"0"};return globalThis.Object.defineProperty(r,xEe.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,TEe.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,s,n){let i=n??this.create(),o=e.pos+r;for(;e.pos<o;){let[a,c]=e.tag();switch(a){case 1:i.scope=e.string();break;case 2:i.permission=e.int64().toString();break;default:let u=s.readUnknownField;if(u==="throw")throw new globalThis.Error(`Unknown field ${a} (wire type ${c}) for ${this.typeName}`);let p=e.skip(c);u!==!1&&(u===!0?hX.UnknownFieldHandler.onRead:u)(this.typeName,i,a,c,p)}}return i}internalBinaryWrite(e,r,s){e.scope!==""&&r.tag(1,fX.WireType.LengthDelimited).string(e.scope),e.permission!=="0"&&r.tag(2,fX.WireType.Varint).int64(e.permission);let n=s.writeUnknownFields;return n!==!1&&(n==!0?hX.UnknownFieldHandler.onWrite:n)(this.typeName,e,r),r}},yw=new bX;var gX=class extends QEe.MessageType{constructor(){super("github.actions.results.entities.v1.CacheMetadata",[{no:1,name:"repository_id",kind:"scalar",T:3},{no:2,name:"scope",kind:"message",repeat:1,T:()=>yw}])}create(e){let r={repositoryId:"0",sco
`));let s=yield FX(r,"create");yield TX(s,t)})}var DM=function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(p){try{u(s.next(p))}catch(l){o(l)}}function c(p){try{u(s.throw(p))}catch(l){o(l)}}function u(p){p.done?i(p.value):n(p.value).then(a,c)}u((s=s.apply(t,e||[])).next())})},$o=class t extends Error{constructor(e){super(e),this.name="ValidationError",Object.setPrototypeOf(this,t.prototype)}},BM=class t extends Error{constructor(e){super(e),this.name="ReserveCacheError",Object.setPrototypeOf(this,t.prototype)}},qw=class t extends Error{constructor(e){super(e),this.name="FinalizeCacheError",Object.setPrototypeOf(this,t.prototype)}};function HEe(t){if(!t||t.length===0)throw new $o("Path Validation Error: At least one directory or file path is required")}function _X(t){if(t.length>512)throw new $o(`Key Validation Error: ${t} cannot be larger than 512 characters.`);if(!/^[^,]*$/.test(t))throw new $o(`Key Validation Error: ${t} cannot contain commas.`)}function LX(){return j3()==="v2"?!!process.env.ACTIONS_RESULTS_URL:!!process.env.ACTIONS_CACHE_URL}function XEe(t,e,r,s){return DM(this,arguments,void 0,function*(n,i,o,a,c=!1){let u=j3();return ee(`Cache service version: ${u}`),HEe(n),u==="v2"?yield TC0(n,i,o,a,c):yield FC0(n,i,o,a,c)})}function FC0(t,e,r,s){return DM(this,arguments,void 0,function*(n,i,o,a,c=!1){o=o||[];let u=[i,...o];if(ee("Resolved Keys:"),ee(JSON.stringify(u)),u.length>10)throw new $o("Key Validation Error: Keys are limited to a maximum of 10.");for(let A of u)_X(A);let p=yield jO(),l="";try{let A=yield X3e(u,n,{compressionMethod:p,enableCrossOsArchive:c});if(!A?.archiveLocation)return;if(a?.lookupOnly)return h1("Lookup only - skipping download"),A.cacheKey;l=lE.join(yield XO(),kl(p)),ee(`Archive Path: ${l}`),yield EH(A.archiveLocation,l,a),kd()&&(yield pE(l,p));let h=Wa(l);return h1(`Cache Size: ~${Math.round(h/(1024*1024))} MB (${h} B)`),yield xX(l,p),h1("Cache restored successfully"),A.cacheKey}catch(A){let h=A;if(h.name===$o.name)throw A;h instanceof wa&&typeof h.statusCode=="number"&&h.statusCode>=500?RO(`Failed to restore: ${A.message}`):Wo(`Failed to restore: ${A.message}`)}finally{try{yield VO(l)}catch(A){ee(`Failed to delete archive: ${A}`)}}})}function TC0(t,e,r,s){return DM(this,arguments,void 0,function*(n,i,o,a,c=!1){a=Object.assign(Object.assign({},a),{useAzureSdk:!0}),o=o||[];let u=[i,...o];if(ee("Resolved Keys:"),ee(JSON.stringify(u)),u.length>10)throw new $o("Key Validation Error: Keys are limited to a maximum of 10.");for(let l of u)_X(l);let p="";try{let l=vX(),A=yield jO(),h={key:i,restoreKeys:o,version:vb(n,A,c)},M=yield l.GetCacheEntryDownloadURL(h);if(!M.ok){ee(`Cache not found for version ${h.version} of keys: ${u.join(", ")}`);return}if(h.key!==M.matchedKey?h1(`Cache hit for restore-key: ${M.matchedKey}`):h1(`Cache hit for: ${M.matchedKey}`),a?.lookupOnly)return h1("Lookup only - skipping download"),M.matchedKey;p=lE.join(yield XO(),kl(A)),ee(`Archive path: ${p}`),ee(`Starting download of archive to: ${p}`),yield EH(M.signedDownloadUrl,p,a);let y=Wa(p);return h1(`Cache Size: ~${Math.round(y/(1024*1024))} MB (${y} B)`),kd()&&(yield pE(p,A)),yield xX(p,A),h1("Cache restored successfully"),M.matchedKey}catch(l){let A=l;if(A.name===$o.name)throw l;A instanceof wa&&typeof A.statusCode=="number"&&A.statusCode>=500?RO(`Failed to restore: ${l.message}`):Wo(`Failed to restore: ${l.message}`)}finally{try{p&&(yield VO(p))}catch(l){ee(`Failed to delete archive: ${l}`)}}})}function QX(t,e,r){return DM(this,arguments,void 0,function*(s,n,i,o=!1){let a=j3();return ee(`Cache service version: ${a}`),HEe(s),_X(n),a==="v2"?yield WC0(s,n,i,o):yield xC0(s,n,i,o)})}function xC0(t,e,r){return DM(this,arguments,void 0,function*(s,n,i,o=!1){var a,c,u,p,l;let A=yield jO(),h=-1,M=yield XP(s);if(ee("Cache Paths:"),ee(`${JSON.stringify(M)}`),M.length===0)throw new Error("Path Validation Error: Path(s) specified in the action for caching do(es) not exist, hence no cache is being saved.");let g=yield XO(),y=lE.join(g,kl(A));ee(`Archi
`+t.errors.map(e=>` - ${e.message}`).join(`
2026-05-28 10:25:16 +00:00
`)}var N40=class extends Error{constructor(t,e,r){super(S40(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},v40=["method","baseUrl","url","headers","request","query","mediaType","operationName"],F40=["query","method","url"],vye=/\/api\/v3\/?$/;function T40(t,e,r){if(r){if(typeof e=="string"&&"query"in r)return Promise.reject(new Error('[@octokit/graphql] "query" cannot be used as variable name'));for(let o in r)if(F40.includes(o))return Promise.reject(new Error(`[@octokit/graphql] "${o}" cannot be used as variable name`))}let s=typeof e=="string"?Object.assign({query:e},r):e,n=Object.keys(s).reduce((o,a)=>v40.includes(a)?(o[a]=s[a],o):(o.variables||(o.variables={}),o.variables[a]=s[a],o),{}),i=s.baseUrl||t.endpoint.DEFAULTS.baseUrl;return vye.test(i)&&(n.url=i.replace(vye,"/api/graphql")),t(n).then(o=>{if(o.data.errors){let a={};for(let c of Object.keys(o.headers))a[c]=o.headers[c];throw new N40(n,a,o.data)}return o.data.data})}function ZX(t,e){let r=t.defaults(e);return Object.assign((n,i)=>T40(r,n,i),{defaults:ZX.bind(null,r),endpoint:r.endpoint})}var Vwt=ZX(hE,{headers:{"user-agent":`octokit-graphql.js/${w40} ${iA()}`},method:"POST",url:"/graphql"});function Fye(t){return ZX(t,{method:"POST",url:"/graphql"})}var eV="(?:[a-zA-Z0-9_-]+)",Tye="\\.",xye=new RegExp(`^${eV}${Tye}${eV}${Tye}${eV}$`),x40=xye.test.bind(xye);async function W40(t){let e=x40(t),r=t.startsWith("v1.")||t.startsWith("ghs_"),s=t.startsWith("ghu_");return{type:"token",token:t,tokenType:e?"app":r?"installation":s?"user-to-server":"oauth"}}function _40(t){return t.split(/\./).length===3?`bearer ${t}`:`token ${t}`}async function L40(t,e,r,s){let n=e.endpoint.merge(r,s);return n.headers.authorization=_40(t),e(n)}var Wye=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(W40.bind(null,e),{hook:L40.bind(null,e)})};var tV="7.0.6";var _ye=()=>{},Q40=console.warn.bind(console),P40=console.error.bind(console);function k40(t={}){return typeof t.debug!="function"&&(t.debug=_ye),typeof t.info!="function"&&(t.info=_ye),typeof t.warn!="function"&&(t.warn=Q40),typeof t.error!="function"&&(t.error=P40),t}var Lye=`octokit-core.js/${tV} ${iA()}`,Qw=class{static VERSION=tV;static defaults(e){return class extends this{constructor(...s){let n=s[0]||{};if(typeof e=="function"){super(e(n));return}super(Object.assign({},e,n,n.userAgent&&e.userAgent?{userAgent:`${n.userAgent} ${e.userAgent}`}:null))}}}static plugins=[];static plugin(...e){let r=this.plugins;return class extends this{static plugins=r.concat(e.filter(n=>!r.includes(n)))}}constructor(e={}){let r=new Aye.Collection,s={baseUrl:hE.endpoint.DEFAULTS.baseUrl,headers:{},request:Object.assign({},e.request,{hook:r.bind(null,"request")}),mediaType:{previews:[],format:""}};if(s.headers["user-agent"]=e.userAgent?`${e.userAgent} ${Lye}`:Lye,e.baseUrl&&(s.baseUrl=e.baseUrl),e.previews&&(s.mediaType.previews=e.previews),e.timeZone&&(s.headers["time-zone"]=e.timeZone),this.request=hE.defaults(s),this.graphql=Fye(this.request).defaults(s),this.log=k40(e.log),this.hook=r,e.authStrategy){let{authStrategy:i,...o}=e,a=i(Object.assign({request:this.request,log:this.log,octokit:this,octokitOptions:o},e.auth));r.wrap("request",a.hook),this.auth=a}else if(!e.auth)this.auth=async()=>({type:"unauthenticated"});else{let i=Wye(e.auth);r.wrap("request",i.hook),this.auth=i}let n=this.constructor;for(let i=0;i<n.plugins.length;++i)Object.assign(this,n.plugins[i](this,e))}request;graphql;log;hook;auth};var rV="17.0.0";var U40={actions:{addCustomLabelsToSelfHostedRunnerForOrg:["POST /orgs/{org}/actions/runners/{runner_id}/labels"],addCustomLabelsToSelfHostedRunnerForRepo:["POST /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],addRepoAccessToSelfHostedRunnerGroupInOrg:["PUT /or
`,o).length:l,u?(a===null?0:a.length)+c.length:0,u?c.length+l:0);return A<h},parse:function(s,n,i,o){let{bom:a,comment_no_infix:c,encoding:u,from_line:p,ltrim:l,max_record_size:A,raw:h,relax_quotes:M,rtrim:g,skip_empty_lines:y,to:O,to_line:B}=this.options,{comment:I,escape:R,quote:N,record_delimiter:T}=this.options,{bomSkipped:W,previousBuf:j,rawBuffer:Me,escapeIsQuote:Se}=this.state,K;if(j===void 0)if(s===void 0){o();return}else K=s;else j!==void 0&&s===void 0?K=j:K=Buffer.concat([j,s]);if(W===!1)if(a===!1)this.state.bomSkipped=!0;else if(K.length<3){if(n===!1){this.state.previousBuf=K;return}}else{for(let we in GM)if(GM[we].compare(K,0,GM[we].length)===0){let Pe=GM[we].length;this.state.bufBytesStart+=Pe,K=K.slice(Pe);let z0=Fj({...this.original_options,encoding:we});for(let d0 in z0)this.options[d0]=z0[d0];({comment:I,escape:R,quote:N}=this.options);break}this.state.bomSkipped=!0}let Ie=K.length,Y;for(Y=0;Y<Ie&&!this.__needMoreData(Y,Ie,n);Y++){if(this.state.wasRowDelimiter===!0&&(this.info.lines++,this.state.wasRowDelimiter=!1),B!==-1&&this.info.lines>B){this.state.stop=!0,o();return}this.state.quoting===!1&&T.length===0&&this.__autoDiscoverRecordDelimiter(K,Y)&&(T=this.options.record_delimiter);let we=K[Y];if(h===!0&&Me.append(we),(we===qw0||we===Iw0)&&this.state.wasRowDelimiter===!1&&(this.state.wasRowDelimiter=!0),this.state.escaping===!0)this.state.escaping=!1;else{if(R!==null&&this.state.quoting===!0&&this.__isEscape(K,Y,we)&&Y+R.length<Ie)if(Se){if(this.__isQuote(K,Y+R.length)){this.state.escaping=!0,Y+=R.length-1;continue}}else{this.state.escaping=!0,Y+=R.length-1;continue}if(this.state.commenting===!1&&this.__isQuote(K,Y))if(this.state.quoting===!0){let d0=K[Y+N.length],x0=g&&this.__isCharTrimable(K,Y+N.length),yt=I!==null&&this.__compareBytes(I,K,Y+N.length,d0),G0=this.__isDelimiter(K,Y+N.length,d0),ur=T.length===0?this.__autoDiscoverRecordDelimiter(K,Y+N.length):this.__isRecordDelimiter(d0,K,Y+N.length);if(R!==null&&this.__isEscape(K,Y,we)&&this.__isQuote(K,Y+R.length))Y+=R.length-1;else if(!d0||G0||ur||yt||x0){this.state.quoting=!1,this.state.wasQuoting=!0,Y+=N.length-1;continue}else if(M===!1){let Xt=this.__error(new g0("CSV_INVALID_CLOSING_QUOTE",["Invalid Closing Quote:",`got "${String.fromCharCode(d0)}"`,`at line ${this.info.lines}`,"instead of delimiter, record delimiter, trimable character","(if activated) or comment"],this.options,this.__infoField()));if(Xt!==void 0)return Xt}else this.state.quoting=!1,this.state.wasQuoting=!0,this.state.field.prepend(N),Y+=N.length-1}else if(this.state.field.length!==0){if(M===!1){let d0=this.__infoField(),x0=Object.keys(GM).map(G0=>GM[G0].equals(this.state.field.toString())?G0:!1).filter(Boolean)[0],yt=this.__error(new g0("INVALID_OPENING_QUOTE",["Invalid Opening Quote:",`a quote is found on field ${JSON.stringify(d0.column)} at line ${d0.lines}, value is ${JSON.stringify(this.state.field.toString(u))}`,x0?`(${x0} bom)`:void 0],this.options,d0,{field:this.state.field}));if(yt!==void 0)return yt}}else{this.state.quoting=!0,Y+=N.length-1;continue}if(this.state.quoting===!1){let d0=this.__isRecordDelimiter(we,K,Y);if(d0!==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)>=p){this.state.enabled=!0,this.__resetField(),this.__resetRecord(),Y+=d0-1;continue}if(y===!0&&this.state.wasQuoting===!1&&this.state.record.length===0&&this.state.field.length===0){this.info.empty_lines++,Y+=d0-1;continue}this.info.bytes=this.state.bufBytesStart+Y;let G0=this.__onField();if(G0!==void 0)return G0;this.info.bytes=this.state.bufBytesStart+Y+d0;let ur=this.__onRecord(i);if(ur!==void 0)return ur;if(O!==-1&&this.info.records>=O){this.state.stop=!0,o();return}}this.state.commenting=!1,Y+=d0-1;continue}if(this.state.commenting)continue;if(I!==null&&(c===!1||this.state.record.length===0&&this.state.field.length===0)&&this.__compareBytes(I,K,Y,we)!==0){this.state.commenting=!0;continue}let x0=this.__isDelimiter(K,Y,w
`,i),Buffer.from(`
2026-05-28 10:25:16 +00:00
`,i),Buffer.from("\r",i)];e:for(let a=0;a<o.length;a++){let c=o[a].length;for(let u=0;u<c;u++)if(o[a][u]!==s[n+u])continue e;return this.options.record_delimiter.push(o[a]),this.state.recordDelimiterMaxLength=o[a].length,o[a].length}return 0},__error:function(s){let{encoding:n,raw:i,skip_records_with_error:o}=this.options,a=typeof s=="string"?new Error(s):s;if(o){if(this.state.recordHasError=!0,this.options.on_skip!==void 0)try{this.options.on_skip(a,i?this.state.rawBuffer.toString(n):void 0)}catch(c){return c}return}else return a},__infoDataSet:function(){return{...this.info,columns:this.options.columns}},__infoRecord:function(){let{columns:s,raw:n,encoding:i}=this.options;return{...this.__infoDataSet(),bytes_records:this.info.bytes,error:this.state.error,header:s===!0,index:this.state.record.length,raw:n?this.state.rawBuffer.toString(i):void 0}},__infoField:function(){let{columns:s}=this.options,n=Array.isArray(s),i=this.info.bytes_records;return{...this.__infoRecord(),bytes_records:i,column:n===!0?s.length>this.state.record.length?s[this.state.record.length].name:null:this.state.record.length,quoting:this.state.wasQuoting}}}};var m1=function(t,e={}){typeof t=="string"&&(t=Buffer.from(t));let r=e&&e.objname?{}:[],s=KDe(e),n=a=>{s.options.objname===void 0?r.push(a):r[a[0]]=a[1]},i=()=>{},o=s.parse(t,!0,n,i);if(o!==void 0)throw o;return r};var y0=class t{static getInputList(e,r){return this.getList(xn(e,{trimWhitespace:r?.trimWhitespace!==!1}),r)}static getList(e,r){let s=[];if(e=="")return s;let n=m1(e,{columns:!1,relaxQuotes:!0,comment:r?.comment,comment_no_infix:r?.commentNoInfix,relaxColumnCount:!0,skipEmptyLines:!0,quote:r?.quote});for(let i of n)i.length==1?r?.ignoreComma?s.push(i[0]):s.push(...i[0].split(",")):r?.ignoreComma?s.push(i.join(",")):s.push(...i);return s.filter(i=>i).map(i=>r?.trimWhitespace===!1?i:i.trim())}static getInputNumber(e){let r=xn(e);if(r)return parseInt(r)}static async asyncForEach(e,r){for(let s=0;s<e.length;s++)await r(e[s],s,e)}static isValidURL(e){let r;try{r=new URL(e)}catch{return!1}return r.protocol==="http:"||r.protocol==="https:"}static isValidRef(e){if(t.isValidURL(e))return!0;for(let r of["git://","github.com/","git@"])if(e.startsWith(r))return!0;return!1}static async powershellCommand(e,r){let s=await Ar("powershell",!0),n=e.replace(/'/g,"''").replace(/"|\n|\r/g,""),i=[];if(r)for(let o in r)i.push(`-${o} '${r[o].replace(/'/g,"''").replace(/"|\n|\r/g,"")}'`);return{command:`"${s}"`,args:["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",`& '${n}' ${i.join(" ")}`]}}static isDirectory(e){try{return ZDe.default.lstatSync(e).isDirectory()}catch{}return!1}static trimPrefix(e,r){return!e||!r||e.indexOf(r)!==0?e:e.substring(r.length)}static trimSuffix(e,r){if(!e||!r)return e;let s=e.lastIndexOf(r);return s===-1||s+r.length!==e.length?e:e.substring(0,s)}static sleep(e){return new Promise(r=>setTimeout(r,e*1e3))}static hash(e){return Tj.default.createHash("sha256").update(e).digest("hex")}static parseBool(e){if(e===void 0)return!1;switch(e){case"1":case"t":case"T":case"true":case"TRUE":case"True":return!0;case"0":case"f":case"F":case"false":case"FALSE":case"False":return!1;default:throw new Error(`parseBool syntax error: ${e}`)}}static parseBoolOrDefault(e,r=!1){try{return this.parseBool(e)}catch{return r}}static formatFileSize(e){if(e===0)return"0 Bytes";let r=1024,s=["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"],n=Math.floor(Math.log(e)/Math.log(r));return parseFloat((e/Math.pow(r,n)).toFixed(2))+" "+s[n]}static generateRandomString(e=10){return Tj.default.randomBytes(Math.ceil(e/2)).toString("hex").slice(0,e)}static compileHandlebars(e,r,s){return eqe.default.compile(e,r)(s)}static stringToUnicodeEntities(e){return Array.from(e).map(r=>`&#x${r.charCodeAt(0).toString(16)};`).join("")}static countLines(e){return e.split(/\r\n|\r|\n/).length}static isPathRelativeTo(e,r){let s=WE.default.resolve(e);return WE.default.resolve(r).startsWith(s.endsWith(WE.default.sep)?s:`${s}${WE.default.sep}`)}static formatDuration(e){if(e===0)return"0s";let r=Ma
More info: ${c.url}`);let h=c.range&&c.range.length>0?c.range[0]?.start.line:void 0,M=!1;for(let g of o)if(g.remote||g.path.endsWith(u)&&g.content===p){a.push({title:l,message:A,file:g.path,startLine:h}),M=!0;break}M||Q(`Buildx.convertWarningsToGitHubAnnotations: skipping warning without matching Dockerfile ${u}: ${l}`)}return a}};var _2=F(require("fs"),1),Wj=F(require("path"),1);var US=class t{buildx;iidFilename;metadataFilename;constructor(e){this.buildx=e?.buildx||new Z0,this.iidFilename=`build-iidfile-${y0.generateRandomString()}.txt`,this.metadataFilename=`build-metadata-${y0.generateRandomString()}.json`}async gitContext(e){let r=new Set(["ref","checksum","subdir"]),s=e?.attrs||{},n=Object.entries(s).filter(([h])=>!r.has(h)),i=y0.parseBoolOrDefault(s["fetch-by-commit"]),o=e?.ref||s.ref||fs.ref;o.startsWith("refs/")?o.startsWith("refs/pull/")&&y0.parseBoolOrDefault(process.env.DOCKER_DEFAULT_GIT_CONTEXT_PR_HEAD_REF)&&(o=o.replace(/\/merge$/g,"/head")):o=`refs/heads/${o}`;let a=`${E0.serverURL}/${fs.repo.owner}/${fs.repo.repo}.git`,c=e?.checksum||s.checksum,u=e?.subdir||s.subdir,p=e?.format;if(!p){if(p="fragment",n.length>0)p="query";else if(y0.parseBoolOrDefault(process.env.BUILDX_SEND_GIT_QUERY_AS_INPUT))try{await this.buildx.versionSatisfies(">=0.29.0")&&(p="query")}catch{}}let l=fs.sha||o;o.startsWith("refs/pull/")&&o.endsWith("/head")&&(l=typeof fs.payload.pull_request?.head?.sha=="string"?fs.payload.pull_request.head.sha:o);let A=c||l;if(p==="query"){let h=[`ref=${i||c?o:A}`],M=i?A:c;M&&h.push(`checksum=${M}`),u&&u!=="."&&h.push(`subdir=${u}`);for(let[g,y]of n)h.push(`${g}=${y}`);return`${a}?${h.join("&")}`}return`${a}#${A}${u&&u!=="."?`:${u}`:""}`}getImageIDFilePath(){return Wj.default.join(m0.tmpDir(),this.iidFilename)}resolveImageID(){let e=this.getImageIDFilePath();if(_2.default.existsSync(e))return _2.default.readFileSync(e,{encoding:"utf-8"}).trim()}getMetadataFilePath(){return Wj.default.join(m0.tmpDir(),this.metadataFilename)}resolveMetadata(){let e=this.getMetadataFilePath();if(!_2.default.existsSync(e))return;let r=_2.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,s]=t.resolveSecret(e,{redact:!0});return`id=${r},src=${s}`}static resolveSecretFile(e){let[r,s]=t.resolveSecret(e,{asFile:!0});return`id=${r},src=${s}`}static resolveSecretEnv(e){let[r,s]=t.parseSecretKvp(e);return`id=${r},env=${s}`}static resolveSecret(e,r){let[s,n]=t.parseSecretKvp(e,r?.redact);if(r?.asFile){if(!_2.default.existsSync(n))throw new Error(`secret file ${n} not found`);return[s,n]}let i=m0.tmpName({tmpdir:m0.tmpDir()});return _2.default.writeFileSync(i,n),[s,i]}static getProvenanceInput(e){let r=xn(e);if(!r)return r;try{return Sde(e)?`builder-id=${E0.workflowRunURL(!0)}`:"false"}catch{return t.resolveProvenanceAttrs(r)}}static resolveProvenanceAttrs(e){if(!e)return`builder-id=${E0.workflowRunURL(!0)}`;let r=m1(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0];for(let s of r)if(s.toString().split(/(?<=^[^=]+?)=/).map(i=>i.trim())[0]=="builder-id")return e;return`${e},builder-id=${E0.workflowRunURL(!0)}`}static resolveCacheToAttrs(e,r){if(!e)return e;let s="registry",n="",i="",o=m1(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0];for(let a of o){let c=a.toString().split(/(?<=^[^=]+?)=/).map(u=>u.trim());c[0]==="type"?s=c[1]:c[0]==="repository"?n=c[1]:c[0]==="ghtoken"&&(i=c[1])}return s==="gha"&&(n||(e=`${e},repository=${E0.repository}`),!i&&r&&(e=`${e},ghtoken=${r}`)),e}static hasLocalExporter(e){return t.hasExporterType("local",e)}static hasTarExporter(e){return t.hasExporterType("tar",e)}stat
`),{delimiter:",",trim:!0,columns:!1,relaxColumnCount:!0});for(let n of s){if(n.length==1&&!n[0].startsWith("type="))return e=="local";for(let[i,o]of n.map(a=>a.split("=").map(c=>c.trim())))if(i=="type"&&o==e)return!0}return!1}static hasAttestationType(e,r){let s=m1(r,{delimiter:",",trim:!0,columns:!1,relaxColumnCount:!0});for(let n of s)for(let[i,o]of n.map(a=>a.split("=").map(c=>c.trim())))if(i=="type"&&o==e)return!0;return!1}static resolveAttestationAttrs(e){let r=m1(e,{delimiter:",",trim:!0,columns:!1,relaxColumnCount:!0}),s=[];for(let n of r)for(let i of n)try{let o=y0.parseBool(i);s.push(`disabled=${!o}`)}catch{s.push(i)}return s.join(",")}static hasGitAuthTokenSecret(e,r){for(let s of e){if(r&&s.startsWith(`GIT_AUTH_TOKEN.${r}=`))return!0;if(s.startsWith("GIT_AUTH_TOKEN="))return!0}return!1}static parseSecretKvp(e,r){let s=e.indexOf("="),n=e.substring(0,s),i=e.substring(s+1);if(n.length==0||i.length==0)throw new Error(`${e} is not a valid secret`);return r&&dO(i),[n,i]}};var _j=F(require("fs"),1),sqe=F(require("path"),1);var GS=class t{buildx;metadataFilename;constructor(e){this.buildx=e?.buildx||new Z0,this.metadataFilename=`bake-metadata-${y0.generateRandomString()}.json`}getMetadataFilePath(){return sqe.default.join(m0.tmpDir(),this.metadataFilename)}resolveMetadata(){let e=this.getMetadataFilePath();if(!_j.default.existsSync(e))return;let r=_j.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 s in e)"buildx.build.ref"in e[s]&&r.push(e[s]["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 s=["bake"],n,i=[],o=[...e.files||[],e.source];if(o){for(let c of o.map(u=>u?u.trim():""))if(c.length!=0){if(!y0.isValidRef(c)){i.push(c);continue}if(n)throw new Error("Only one remote bake definition can be defined");n=c}}n&&s.push(n);for(let c of i)s.push("--file",c);if(e.overrides)for(let c of e.overrides)s.push("--set",c);if(e.vars)for(let c of e.vars)s.push("--var",c);if(e.allow)for(let c of e.allow)s.push("--allow",c);e.call&&s.push("--call",e.call),e.load&&s.push("--load"),e.noCache&&s.push("--no-cache"),e.provenance&&s.push("--provenance",e.provenance),e.push&&s.push("--push"),e.sbom&&s.push("--sbom",e.sbom);let a=await this.buildx.getCommand([...s,"--print",...e.targets||[]]);return await xe.getExecOutput(a.command,a.args,r).then(c=>{if(c.stderr.length>0&&c.exitCode!=0)throw new Error(`cannot parse bake definitions: ${c.stderr.match(/(.*)\s*$/)?.[0]?.trim()??"unknown error"}`);return t.parseDefinition(c.stdout.trim())})}static parseDefinition(e){let r=JSON.parse(e);for(let s in r.target){let n=r.target[s];n.attest&&Array.isArray(n.attest)&&(n.attest=n.attest.map(i=>t.parseAttestEntry(i))),n["cache-from"]&&Array.isArray(n["cache-from"])&&(n["cache-from"]=n["cache-from"].map(i=>t.parseCacheEntry(i))),n["cache-to"]&&Array.isArray(n["cache-to"])&&(n["cache-to"]=n["cache-to"].map(i=>t.parseCacheEntry(i))),n.output&&Array.isArray(n.output)&&(n.output=n.output.map(i=>t.parseExportEntry(i))),n.secret&&Array.isArray(n.secret)&&(n.secret=n.secret.map(i=>t.parseSecretEntry(i))),n.ssh&&Array.isArray(n.ssh)&&(n.ssh=n.ssh.map(i=>t.parseSSHEntry(i)))}return r}static parseAttestEntry(e){if(typeof e!="string")return e;let r={type:""},s=m1(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0];for(let n of s){let[i,o]=n.toString().split(/(?<=^[^=]+?)=/).map(a=>a.trim());switch(i){case"type":r.type=o;break;case"disabled":r.disabled=y0.parseBool(o);break;default:r[i]=o}}return r}static parseCacheEntry(e){if(typeof e!="string")return e;let r={type:""},s=m1(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0];if(s.length===1&&!s[0].includes("="))return r.type="registry",r.ref=s[0],r;for(let n of s){let[i,o]=n.toString().split(/(?<=^[^=]+?)=/)
`)[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"]);Q(`detached HEAD ref: ${e}`);let r=e.replace(/^grafted, /,"").trim();if(r==="HEAD")return await t.inferRefFromHead();let s=r.match(/^HEAD, (.*)$/);if(!s||!s[1])throw new Error(`Cannot find detached HEAD ref in "${e}"`);let n=s[1].trim();if(n.startsWith("tag: "))return`refs/tags/${n.split(":")[1].trim()}`;if(n.match(/^pull\/\d+\/(head|merge)$/))return`refs/${n}`;let o=n.match(/^[^/]+\/[^/]+, (.+)$/);if(o)return`refs/heads/${o[1].trim()}`;let a=n.match(/^[^/]+\/(.+)$/);if(a)return`refs/heads/${a[1].trim()}`;throw new Error(`Unsupported detached HEAD ref in "${e}"`)}static async exec(e=[]){return await xe.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 i=r.match(/^refs\/remotes\/[^/]+\/(.+)$/);return i?`refs/heads/${i[1]}`:r}let s=await t.exec(["tag","--contains","HEAD"]),[n]=s.split(`
`).map(i=>i.trim()).filter(i=>i.length>0);if(n)return`refs/tags/${n}`;throw new Error("Cannot infer ref from detached HEAD")}static async findContainingRef(e){let r=await t.exec(["for-each-ref","--format=%(refname)","--contains","HEAD","--sort=-committerdate",e]),[s]=r.split(`
2026-05-28 10:25:16 +00:00
`).map(n=>n.trim()).filter(n=>n.length>0);return s}static async commitDate(e){return new Date(await t.exec(["show","-s",'--format="%ci"',e]))}};var bLe=require("crypto"),su=F(require("fs"),1),YA=F(require("path"),1);var e4=F(QE(),1),nu=F(sxe(),1),MLe=F(Ite(),1),Rg=F(uLe(),1);var q1e=F(QE(),1);var lLe=F(Hi(),1);var pLe="application/vnd.oci.empty.v1+json";var Kp=class{binPath;_version;_versionOnce;constructor(e){this.binPath=e?.binPath||"cosign",this._version="",this._versionOnce=!1}async isAvailable(){let e=await xe.getExecOutput(this.binPath,[],{ignoreReturnCode:!0,silent:!0}).then(r=>r.stderr.length>0&&r.exitCode!=0?(Q(`Cosign.isAvailable cmd err: ${r.stderr.trim()}`),!1):r.exitCode==0).catch(r=>(Q(`Cosign.isAvailable error: ${r}`),!1));return Q(`Cosign.isAvailable: ${e}`),e}async version(){return this._versionOnce?this._version:(this._versionOnce=!0,this._version=await xe.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 xe.exec(this.binPath,["version","--json"],{failOnStdErr:!1})}async versionSatisfies(e,r){let s=r??await this.version();if(!s)return Q("Cosign.versionSatisfies false: undefined version"),!1;let n=lLe.satisfies(s,e)||/^[0-9a-f]{7}$/.exec(s)!==null;return Q(`Cosign.versionSatisfies ${s} statisfies ${e}: ${n}`),n}static parseCommandOutput(e){let r,s,n,i;for(let o of e.split(/\r?\n/)){let a=o.trim();if(!a.startsWith("{")||!a.endsWith("}"))continue;let c;try{c=JSON.parse(a)}catch{continue}if(c&&Array.isArray(c.errors)&&c.errors.length>0&&(i=c.errors),!r&&c&&Array.isArray(c.manifests)&&c.manifests.length>0){let u=c.manifests[0];u?.artifactType===q1e.BUNDLE_V03_MEDIA_TYPE&&typeof u.digest=="string"?r=u.digest:u?.artifactType===pLe&&typeof u.digest=="string"&&(s=u.digest)}if(!n&&c&&c.mediaType===q1e.BUNDLE_V03_MEDIA_TYPE&&(n=c),n&&(r||s)){i=void 0;break}}return{bundle:n,signatureManifestDigest:r||s,errors:i}}};var I1e=F(require("fs"),1);var YT=class t{buildx;constructor(e){this.buildx=e?.buildx||new Z0}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 s=r.manifests.filter(o=>o.annotations?.["vnd.docker.reference.type"]==="attestation-manifest");if(!e.platform)return s;let n=e.platform,i=new Map;for(let o of r.manifests)o.digest&&i.set(o.digest,o);return s.filter(o=>{let a=o.annotations?.["vnd.docker.reference.digest"];if(!a)return!1;let c=i.get(a);return c?c.platform?.os===n.os&&c.platform?.architecture===n.architecture&&(c.platform?.variant??"")===(n.variant??""):!1})}async attestationDigests(e){return(await this.attestationDescriptors(e)).map(r=>r.digest)}async create(e){let r=[],s=m0.tmpName({tmpdir:m0.tmpDir(),template:"imagetools-metadata-XXXXXX"}),n=[],i=[];for(let a of e.sources){if(a.startsWith("cwd://")){let c=a.substring(6);c.length>0&&n.push(c);continue}i.push(a)}if(e.tags)for(let a of e.tags)r.push("--tag",a);if(e.platforms)for(let a of e.platforms)r.push("--platform",a);if(e.annotations)for(let a of e.annotations)r.push("--annotation",a);e.dryRun?r.push("--dry-run"):r.push("--metadata-file",s);for(let a of n)r.push("--file",a);for(let a of i)r.push(a);let o=await this.getCreat
${o.message}`),await new Promise(u=>setTimeout(u,Math.pow(2,a)*100))}throw o??new Error(`ImageTools inspect command failed for ${e.name}`)}async execInspect(e,r,s){return await xe.getExecOutput(e,r,{ignoreReturnCode:!0,silent:!0}).then(n=>{if(n.stderr.length>0&&n.exitCode!=0)throw new Error(n.stderr.trim());return s(JSON.parse(n.stdout))})}static isManifestUnknownError(e){return/(MANIFEST_UNKNOWN|manifest unknown|not found: not found)/i.test(e)}};var ALe="application/vnd.in-toto+json";var dLe="https://fulcio.sigstore.dev",fLe="https://rekor.sigstore.dev",hLe="https://timestamp.sigstore.dev",Uf="https://search.sigstore.dev";var CJ0="slsaprovenance1",JA=class t{cosign;imageTools;constructor(e){this.cosign=e?.cosign||new Kp,this.imageTools=e?.imageTools||new YT}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 s=this.signingEndpoints(e.noTransparencyLog);_(`Using Sigstore signing endpoint: ${s.fulcioURL}`);let n=t.noTransparencyLog(e.noTransparencyLog),i=[];await this.cosign.versionSatisfies(">=3.0.4")?await dr("Creating Sigstore protobuf signing config",async()=>{let o=m0.tmpName({template:"signing-config-XXXXXX.json",tmpdir:m0.tmpDir()}),a=["signing-config","create","--with-default-services=true",`--out=${o}`];n&&a.push("--no-default-rekor=true"),await xe.exec(this.cosign.binPath,a,{env:Object.assign({},process.env,{COSIGN_EXPERIMENTAL:"1"})}),_(JSON.stringify(JSON.parse(su.default.readFileSync(o,{encoding:"utf-8"})),null,2)),i.push(`--signing-config=${o}`)}):(i.push("--use-signing-config"),n&&i.push("--tlog-upload=false"));for(let o of e.imageNames){let a=await this.imageTools.attestationDigests({name:`${o}@${e.imageDigest}`,retryOnManifestUnknown:e.retryOnManifestUnknown,retryLimit:e.retryLimit});for(let c of a){let u=`${o}@${c}`;await dr(`Signing attestation manifest ${u}`,async()=>{let p=["sign","--yes","--oidc-provider","github-actions","--registry-referrers-mode","oci-1-1","--new-bundle-format",...i];_(`[command]${this.cosign.binPath} ${[...p,u].join(" ")}`);let l=await xe.getExecOutput(this.cosign.binPath,["--verbose",...p,u],{ignoreReturnCode:!0,silent:!0,env:Object.assign({},process.env,{COSIGN_EXPERIMENTAL:"1"})}),A=Kp.parseCommandOutput(l.stderr.trim());if(l.exitCode!=0)if(A.errors&&A.errors.length>0){let M=A.errors.map(g=>`- [${g.code}] ${g.message} : ${g.detail}`).join(`
`);throw new Error(`Cosign sign command failed with errors:
2026-05-28 10:25:16 +00:00
${M}`)}else throw new Error(`Cosign sign command failed with: ${l.stderr.trim().split(/\r?\n/).filter(M=>M.length>0).pop()??"unknown error"}`);let h=t.parseBundle((0,e4.bundleFromJSON)(A.bundle));h.tlogID&&_(`Uploaded to Rekor transparency log: ${Uf}?logIndex=${h.tlogID}`),_(`Signature manifest pushed: https://oci.dag.dev/?referrers=${u}`),r[u]={...h,imageName:o}})}}}catch(s){throw new Error(`Signing BuildKit attestation manifests failed: ${s.message}`)}return r}async verifySignedManifests(e,r){let s={};for(let[n,i]of Object.entries(e))await dr(`Verifying signature of ${n}`,async()=>{let o=await this.verifyImageAttestation(n,{certificateIdentityRegexp:r.certificateIdentityRegexp,noTransparencyLog:r.noTransparencyLog||!i.tlogID,retryOnManifestUnknown:r.retryOnManifestUnknown});_(`Signature manifest verified: https://oci.dag.dev/?image=${i.imageName}@${o.signatureManifestDigest}`),s[n]=o});return s}async verifyImageAttestations(e,r){let s={},n=await this.imageTools.attestationDigests({name:e,platform:r.platform,retryOnManifestUnknown:r.retryOnManifestUnknown,retryLimit:r.retryLimit});if(n.length===0)throw new Error(`No attestation manifests found for ${e}`);let i=e.split(":",1)[0];for(let o of n){let a=`${i}@${o}`,c=await this.verifyImageAttestation(a,r);_(`Signature manifest verified: https://oci.dag.dev/?image=${i}@${c.signatureManifestDigest}`),s[a]=c}return s}async verifyImageAttestation(e,r){if(!await this.cosign.isAvailable())throw new Error("Cosign is required to verify signed manifests");let s=["verify","--experimental-oci11","--new-bundle-format","--certificate-oidc-issuer","https://token.actions.githubusercontent.com","--certificate-identity-regexp",r.certificateIdentityRegexp];if(r.noTransparencyLog&&s.push("--use-signed-timestamps","--insecure-ignore-tlog"),!r.retryOnManifestUnknown){_(`[command]${this.cosign.binPath} ${[...s,e].join(" ")}`);let o=await xe.getExecOutput(this.cosign.binPath,["--verbose",...s,e],{ignoreReturnCode:!0,silent:!0,env:Object.assign({},process.env,{COSIGN_EXPERIMENTAL:"1"})});if(o.exitCode!==0)throw new Error(`Cosign verify command failed with: ${o.stderr.trim().split(/\r?\n/).filter(c=>c.length>0).pop()??"unknown error"}`);let a=Kp.parseCommandOutput(o.stderr.trim());return{cosignArgs:s,signatureManifestDigest:a.signatureManifestDigest}}let n=r.retryLimit??15,i;_(`[command]${this.cosign.binPath} ${[...s,e].join(" ")}`);for(let o=0;o<n;o++){let a=await xe.getExecOutput(this.cosign.binPath,["--verbose",...s,e],{ignoreReturnCode:!0,silent:!0,env:Object.assign({},process.env,{COSIGN_EXPERIMENTAL:"1"})}),c=Kp.parseCommandOutput(a.stderr.trim());if(a.exitCode===0)return{cosignArgs:s,signatureManifestDigest:c.signatureManifestDigest};if(c.errors&&c.errors.length>0){let u=c.errors.map(p=>`- [${p.code}] ${p.message} : ${p.detail}`).join(`
`);if(i=new Error(`Cosign verify command failed with errors:
2026-05-28 10:25:16 +00:00
${u}`),c.errors.some(p=>p.code==="MANIFEST_UNKNOWN"))_(`Cosign verify command failed with MANIFEST_UNKNOWN, retrying attempt ${o+1}/${n}...
${u}`),await new Promise(p=>setTimeout(p,Math.pow(2,o)*100));else throw i}else throw new Error(`Cosign verify command failed with: ${a.stderr.trim().split(/\r?\n/).filter(u=>u.length>0).pop()??"unknown error"}`)}throw i}async signProvenanceBlobs(e){let r={};try{if(!process.env.ACTIONS_ID_TOKEN_REQUEST_URL)throw new Error('missing "id-token" permission. Please add "permissions: id-token: write" to your workflow.');let s=this.signingEndpoints(e.noTransparencyLog);_(`Using Sigstore signing endpoint: ${s.fulcioURL}`);let n=t.getProvenanceBlobs(e);for(let i of Object.keys(n))await dr(`Signing ${i}`,async()=>{let o=n[i],a=YA.default.join(YA.default.dirname(i),`${e.name??"provenance"}.sigstore.json`),c=t.getProvenanceSubjects(o);if(c.length===0){St(`No subjects found in provenance ${i}, skip signing.`);return}let u=await t.signPayload({data:o,type:ALe},s),p=t.parseBundle(u);_("Provenance blob signed for:");for(let l of c){let[A,h]=Object.entries(l.digest)[0]||[];_(` - ${l.name} (${A}:${h})`)}p.tlogID&&_(`Attestation signature uploaded to Rekor transparency log: ${Uf}?logIndex=${p.tlogID}`),_(`Writing Sigstore bundle to: ${a}`),su.default.writeFileSync(a,JSON.stringify(p.payload,null,2),{encoding:"utf-8"}),r[i]={...p,bundlePath:a,subjects:c}})}catch(s){throw new Error(`Signing BuildKit provenance blobs failed: ${s.message}`)}return r}async verifySignedArtifacts(e,r){let s={};if(!await this.cosign.isAvailable())throw new Error("Cosign is required to verify signed artifacts");for(let[n,i]of Object.entries(e)){let o=YA.default.dirname(n);await dr(`Verifying signature bundle ${i.bundlePath}`,async()=>{for(let a of i.subjects){let c=YA.default.join(o,a.name);_(`Verifying signed artifact ${c}`);let u=["verify-blob-attestation","--new-bundle-format","--certificate-oidc-issuer","https://token.actions.githubusercontent.com","--certificate-identity-regexp",r.certificateIdentityRegexp,"--type",r.predicateType??CJ0];(r.noTransparencyLog||!i.tlogID)&&u.push("--use-signed-timestamps","--insecure-ignore-tlog");let p=await xe.getExecOutput(this.cosign.binPath,[...u,"--bundle",i.bundlePath,c],{ignoreReturnCode:!0});if(p.stderr.length>0&&p.exitCode!=0)throw new Error(p.stderr);s[c]={bundlePath:i.bundlePath,cosignArgs:u}}})}return s}async verifyArtifact(e,r,s){_("Verifying keyless verification bundle signature");let n=JSON.parse(su.default.readFileSync(r,"utf-8")),i=(0,e4.bundleFromJSON)(n);_("Fetching Sigstore TUF trusted root metadata");let o=await MLe.getTrustedRoot(),a=(0,Rg.toTrustMaterial)(o);try{_("Verifying artifact signature");let c=(0,Rg.toSignedEntity)(i,su.default.readFileSync(e)),u=t.parseCertificate(i),p=i.verificationMaterial.tlogEntries,l=p.length>0?p[0].logIndex:void 0;if(s?.subjectAlternativeName&&s?.subjectAlternativeName instanceof RegExp){let M=u.subjectAltName?.replace(/^uri:/i,"");if(M){if(!M.match(s.subjectAlternativeName))throw new Error(`Signing certificate subjectAlternativeName "${M}" does not match expected pattern`)}else throw new Error("Signing certificate does not contain subjectAltName")}let h=new Rg.Verifier(a).verify(c,{subjectAlternativeName:s?.subjectAlternativeName&&typeof s.subjectAlternativeName=="string"?s.subjectAlternativeName:void 0,extensions:s?.issuer?{issuer:s.issuer}:void 0});return Q(`Sigstore.verifyArtifact signer: ${JSON.stringify(h)}`),{payload:n,certificate:u.toString(),tlogID:l}}catch(c){throw new Error(`Failed to verify artifact signature: ${c}`)}}signingEndpoints(e){return e=t.noTransparencyLog(e),_(`Upload to transparency log: ${e?"disabled":"enabled"}`),{fulcioURL:dLe,rekorURL:e?void 0:fLe,tsaServerURL:hLe}}static noTransparencyLog(e){return e??E0.context.payload.repository?.private}static getProvenanceBlobs(e){let r=YA.default.join(e.localExportDir,"provenance.json");if(su.default.existsSync(r))return{[r]:su.default.readFileSync(r)};let s=su.default.readdirSync(e.localExportDir,{withFileTypes:!0}),n=s.filter(i=>i.isDirectory());if(n.length>0&&n.length===s.length&&n.every(i=>su.default.existsSync(YA.default.join(e.localExportDir,i.name,"provenance.json")))){let i={};for(let o of n){let a=
2026-05-22 12:36:07 +00:00
`)){let[u,...p]=c.split(":"),l=u.toLowerCase(),A=p.map(h=>h.trim()).join(":");if(u.length!=0)switch(!0){case l=="name":s=void 0,r.name==null?r.name=A:(i&&n.gcPolicy&&(n.gcPolicy.push(i),i=void 0),n.name&&r.nodes.push(n),n={name:A});break;case l=="driver":s=void 0,r.driver=A;break;case l=="last activity":s=void 0,r.lastActivity=new Date(A);break;case l=="endpoint":s=void 0,n.endpoint=A;break;case l=="driver options":s=void 0,n["driver-opts"]=(A.match(/([a-zA-Z0-9_.]+)="([^"]*)"/g)||[]).map(h=>h.replace(/^(.*)="(.*)"$/g,"$1=$2"));break;case l=="status":s=void 0,n.status=A;break;case l=="buildkit daemon flags":case l=="flags":s=void 0,n["buildkitd-flags"]=A;break;case l=="buildkit version":case l=="buildkit":s=void 0,n.buildkit=A;break;case l=="platforms":{if(s=void 0,!A)break;let h=[];if(A.includes("*"))for(let M of A.split(", "))M.includes("*")&&h.push(M.replace(/\*/g,""));else h=A.split(", ");n.platforms=h.join(",");break}case l=="features":s="features",n.features={};break;case l=="labels":s="label",n.labels={};break;case l=="devices":s="devices",n.devices=n.devices||[];break;case l.startsWith("gc policy rule#"):s="gcpolicy",n.gcPolicy&&i&&(n.gcPolicy.push(i),i=void 0);break;case l.startsWith("file#"):s="file",a=u.split("#")[1],n.files=n.files||{},n.files[a]="";break;default:switch(s&&s!=="devices"&&n.devices&&o&&(n.devices.push(o),o=void 0),s||""){case"features":{n.features=n.features||{},n.features[u.trim()]=!!A;break}case"label":{n.labels=n.labels||{},n.labels[u.trim()]=A;break}case"devices":{switch(l.trim()){case"name":{n.devices&&o&&n.devices.push(o),o={},o.name=A;break}case"on-demand":{o&&A&&(o.onDemand=A=="true");break}case"automatically allowed":{o&&A&&(o.autoAllow=A=="true");break}case"annotations":{o&&(o.annotations=o.annotations||{});break}default:o&&o.annotations&&(o.annotations[u.trim()]=A)}break}case"gcpolicy":{switch(n.gcPolicy=n.gcPolicy||[],i=i||{},l.trim()){case"all":{i.all=A=="true";break}case"filters":{A&&(i.filter=A.split(","));break}case"keep duration":{i.keepDuration=A;break}case"keep bytes":{i.keepBytes=A;break}case"reserved space":{i.reservedSpace=A;break}case"max used space":{i.maxUsedSpace=A;break}case"min free space":{i.minFreeSpace=A;break}}break}case"file":{a&&n.files&&(n.files[a].length>0&&(n.files[a]+=`
2026-05-28 10:25:16 +00:00
`),n.files[a]+=c.replace(/^\s>\s?/,""));break}}}}return o&&n.devices&&n.devices.push(o),i&&n.gcPolicy&&n.gcPolicy.push(i),n.name&&r.nodes.push(n),r}};var mLe=F(Hi(),1);var KT=F(require("fs"),1);var ZT=class{resolveFromString(e){return this.resolve(e,!1)}resolveFromFile(e){return this.resolve(e,!0)}resolve(e,r){if(r){if(!KT.default.existsSync(e))throw new Error(`config file ${e} not found`);e=KT.default.readFileSync(e,{encoding:"utf-8"})}let s=m0.tmpName({tmpdir:m0.tmpDir()});return KT.default.writeFileSync(s,e),s}};var ex=class{buildx;config;constructor(e){this.config=new ZT,this.buildx=e?.buildx||new Z0}async getVersion(e){if(!e.buildkit&&e.name)try{return await this.getVersionWithinImage(e.name)}catch(r){St(r)}return e.buildkit}async getVersionWithinImage(e){return Q(`BuildKit.getVersionWithinImage nodeName: ${e}`),vr.getExecOutput(["inspect","--format","{{.Config.Image}}",`${Z0.containerNamePrefix}${e}`],{ignoreReturnCode:!0,silent:!0}).then(r=>{if(r.exitCode==0&&r.stdout.length>0)return Q(`BuildKit.getVersionWithinImage image: ${r.stdout.trim()}`),vr.getExecOutput(["run","--rm",r.stdout.trim(),"--version"],{ignoreReturnCode:!0,silent:!0}).then(s=>{if(s.exitCode==0&&s.stdout.length>0)return`${r.stdout.trim()} => ${s.stdout.trim()}`;if(s.stderr.length>0)throw new Error(r.stderr.trim());return s.stdout.trim()});if(r.stderr.length>0)throw new Error(r.stderr.trim());return r.stdout.trim()})}async versionSatisfies(e,r,s){s||(s=await new Sg({buildx:this.buildx}).inspect(e));for(let n of s.nodes){let i=n.buildkit;if(Q(`BuildKit.versionSatisfies ${i}: ${r}`),!i)try{i=await this.getVersionWithinImage(n.name||"")}catch{return Q(`BuildKit.versionSatisfies ${n.name}: can't get version`),!1}if(Q(`BuildKit.versionSatisfies ${n.name}: version ${i}`),s.driver=="docker"&&!i.endsWith("-moby")||!mLe.satisfies(i.replace(/-moby$/,""),r))return!1}return!0}};var tx=class t{_version;_versionOnce;_standalone;constructor(e){this._standalone=e?.standalone,this._version="",this._versionOnce=!1}async isStandalone(){let e=this._standalone??!await vr.isAvailable();return Q(`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 xe.getExecOutput(e.command,e.args,{ignoreReturnCode:!0,silent:!0}).then(s=>s.stderr.length>0&&s.exitCode!=0?(Q(`Compose.isAvailable cmd err: ${s.stderr.trim()}`),!1):s.exitCode==0).catch(s=>(Q(`Compose.isAvailable error: ${s}`),!1));return Q(`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 xe.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 xe.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 el=F(require("fs"),1),ou=F(require("os"),1),Ng=F(require("path"),1);var sx=F(Hi(),1),w1e=F(require("util"),1);var rx=class t{standalone;githubToken;constructor(e){this.standalone=e?.standalone,this.githubToken=e?.githubToken||process.env.GITHUB_TOKEN}async download(e,r){let s=await t.getDownloadVersion(e);Q(`Install.download version: ${s.version}`);let n=await t.getRelease(s,this.githubToken);Q(`Install.download release tag name: ${n.tag_name}`);let i=await this.vspec(n.tag_name);Q(`Install.download vspec: ${i}`);let o=sx.clean(i)||"";if(!sx.valid(o))throw new Error(`Invalid Compose version "${i}".`);let a=new Q1({htcName:s.key!="official"?`compose-dl-bin-${s.key}`:"compose-dl-bin",htcVersion:i,baseCacheDir:Ng.default.join(ou.default.homedir(),".bin","docker-compose"),cacheFile:ou.default.platform()=="win32"?"docker-compose.exe":"docker-compose",ghaNoCache:r}),c=await a.find();if(c)return _(`Compose binary found in ${c}`),c
# 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 /
2026-05-28 10:25:16 +00:00
`;var nx=class t{githubToken;buildx;sigstore;constructor(e){this.githubToken=e?.githubToken||process.env.GITHUB_TOKEN,this.buildx=e?.buildx||new Z0,this.sigstore=e?.sigstore||new JA}async download(e){let r=await t.getDownloadVersion(e.version);Q(`Install.download version: ${r.version}`);let s=await t.getRelease(r,this.githubToken);Q(`Install.download release tag name: ${s.tag_name}`);let n=await this.vspec(s.tag_name);Q(`Install.download vspec: ${n}`);let i=Fg.clean(n)||"";if(!Fg.valid(i))throw new Error(`Invalid Cosign version "${n}".`);let o=new Q1({htcName:"cosign-dl-bin",htcVersion:n,baseCacheDir:vg.default.join(ua.default.homedir(),".bin"),cacheFile:ua.default.platform()=="win32"?"cosign.exe":"cosign",ghaNoCache:e.ghaNoCache}),a=await o.find();if(a)return _(`Cosign binary found in ${a}`),a;let c=S1e.format(r.downloadURL,n,this.filename());_(`Downloading ${c}`);let u=await Bi(c,void 0,this.githubToken);Q(`Install.download htcDownloadPath: ${u}`),e.verifySignature&&Fg.satisfies(n,">=3.0.1")&&await this.verifySignature(u,c);let p=await o.save(u,e.skipState);return _(`Cached to ${p}`),p}async build(e,r,s){let n=await this.vspec(e);Q(`Install.build vspec: ${n}`);let i=new Q1({htcName:"cosign-build-bin",htcVersion:n,baseCacheDir:vg.default.join(ua.default.homedir(),".bin"),cacheFile:ua.default.platform()=="win32"?"cosign.exe":"cosign",ghaNoCache:r}),o=await i.find();if(o)return _(`Cosign binary found in ${o}`),o;let a=vg.default.join(m0.tmpDir(),"cosign-build-cache"),c=await this.buildCommand(e,a),u=await xe.getExecOutput(c.command,c.args,{ignoreReturnCode:!0,input:Buffer.from(gLe)}).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`${a}/cosign`}),p=await i.save(u,s);return _(`Cached to ${p}`),p}async install(e,r){r=r||m0.tmpDir();let s=vg.default.join(r,"cosign-bin");t4.default.existsSync(s)||t4.default.mkdirSync(s,{recursive:!0});let n=ua.default.platform()=="win32"?"cosign.exe":"cosign",i=vg.default.join(s,n);return t4.default.copyFileSync(e,i),_("Fixing perms"),t4.default.chmodSync(i,"0755"),va(s),_("Added Cosign to PATH"),_(`Binary path: ${i}`),i}async buildCommand(e,r){let s=await new Z0({standalone:!0}).isAvailable(),n=await new Z0({standalone:!1}).isAvailable(),i=!1;if(await this.buildx.isStandalone()&&s)Q("Install.buildCommand: Buildx standalone found, build with it"),i=!0;else if(!await this.buildx.isStandalone()&&n)Q("Install.buildCommand: Buildx plugin found, build with it"),i=!1;else if(s)Q("Install.buildCommand: Buildx plugin not found, but standalone found so trying to build with it"),i=!0;else if(n)Q("Install.buildCommand: Buildx standalone not found, but plugin found so trying to build with it"),i=!1;else throw new Error(`Neither buildx standalone or plugin have been found to build from ref ${e}`);let o=["build","--platform","local","--build-arg","BUILDKIT_CONTEXT_KEEP_GIT_DIR=1","--output",`type=local,dest=${r}`];return process.env.GIT_AUTH_TOKEN&&o.push("--secret","id=GIT_AUTH_TOKEN"),o.push("-f-",e),await new Z0({standalone:i}).getCommand(o)}async verifySignature(e,r){let s=`${r}.sigstore.json`;_(`Downloading keyless verification bundle at ${s}`);let n=await Bi(s,void 0,this.githubToken);Q(`Install.verifySignature bundlePath: ${n}`);let i=await this.sigstore.verifyArtifact(e,n,{subjectAlternativeName:"keyless@projectsigstore.iam.gserviceaccount.com",issuer:"https://accounts.google.com"});_(`Cosign binary signature verified! ${i.tlogID?`${Uf}?logIndex=${i.tlogID}`:""}`)}filename(){let e;switch(ua.default.arch()){case"x64":{e="amd64";break}case"ppc64":{e="ppc64le";break}default:{e=ua.default.arch();break}}let r=ua.default.platform()=="win32"?"windows":ua.default.platform(),s=ua.default.platform()=="win32"?".exe":"";return S1e.format("cosign-%s-%s%s",r,e,s)}async vspec(e){if(!y0.isValidRef(e)){let u=e.replace(/^v+|v+$/g,"");return _(`Use ${u} version spec cache key for ${e}`),u}let[r,s]=e.split("#");s.length==0&&(s="master");let n;s.match(/^[0-9a-fA-F]{40}$/)?n=s:n=await op.remoteSha(r,s,process.env.GIT_AU
`,sepLabels:xn("sep-labels",{trimWhitespace:!1})||`
`,sepAnnotations:xn("sep-annotations",{trimWhitespace:!1})||`
`,bakeTarget:xn("bake-target")||"docker-metadata-action",githubToken:xn("github-token")}}async function yLe(t,e){switch(t){case"workflow":return await BJ0(e);case"git":return await DJ0();default:throw new Error(`Invalid context source: ${t}`)}}async function BJ0(t){let e=E0.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 qJ0(e.sha,t),...e}}async function DJ0(){let t=await op.context();return{commitDate:await op.commitDate(t.sha),...t}}async function qJ0(t,e){let r=E0.context.payload;if(r.commits){let s=r.commits.find(n=>n.id===t)?.timestamp;if(s)return new Date(s)}if(r.head_commit&&r.head_commit.id===t)return new Date(r.head_commit.timestamp);try{let s=await e.github.octokit.rest.repos.getCommit({owner:E0.context.repo.owner,repo:E0.context.repo.repo,ref:t});if(s.data.commit.committer?.date)return new Date(s.data.commit.committer.date);throw new Error("Committer date not found")}catch(s){return Q(`Failed to get commit date from GitHub API: ${s.message}`),new Date}}var ul=F(Sj(),1),hje=F(require("fs"),1),bje=F(require("path"),1),J4=F(RLe(),1),di=F(pje(),1),Kg=F(Hi(),1);function Aje(t){let e=[];if(t.length==1){let r=!1,s=m1(t[0],{relaxColumnCount:!0,skipEmptyLines:!0})[0];for(let n of s){let i=n.toString().split("=").map(o=>o.trim());if(i.length==1)e.push({name:i[0],enable:!0});else{r=!0;break}}if(!r)return lje(e)}e=[];for(let r of t){let s={name:"",enable:!0},n=m1(r,{relaxColumnCount:!0,skipEmptyLines:!0})[0];for(let i of n){let o=i.toString().split("=").map(a=>a.trim());if(o.length==1)s.name=o[0];else{let a=o[0].toLowerCase(),c=o[1];switch(a){case"name":{s.name=c;break}case"enable":{if(!["true","false"].includes(c))throw new Error(`Invalid enable attribute value: ${r}`);s.enable=/true/i.test(c);break}default:throw new Error(`Unknown image attribute: ${r}`)}}}if(s.name.length==0)throw new Error(`Image name attribute empty: ${r}`);e.push(s)}return lje(e)}function lje(t){Ld("Processing images input");for(let e of t)_(`name=${e.name},enable=${e.enable}`);return Qd(),t}var tne=(c=>(c.Schedule="schedule",c.Semver="semver",c.Pep440="pep440",c.Match="match",c.Edge="edge",c.Ref="ref",c.Raw="raw",c.Sha="sha",c))(tne||{}),nW=(s=>(s.Branch="branch",s.Tag="tag",s.PR="pr",s))(nW||{}),iW=(r=>(r.Short="short",r.Long="long",r))(iW||{}),ene=class{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(",")}},gut={schedule:"1000",semver:"900",pep440:"900",match:"800",edge:"700",ref:"600",raw:"200",sha:"100"};function dje(t){let e=[];t.length==0&&(t=["type=schedule","type=ref,event=branch","type=ref,event=tag","type=ref,event=pr"]);for(let s of t)e.push(zut(s));let r=e.sort((s,n)=>Number(s.attrs.priority)<Number(n.attrs.priority)?1:Number(s.attrs.priority)>Number(n.attrs.priority)?-1:0);Ld("Processing tags input");for(let s of r)_(s.toString());return Qd(),r}function zut(t){let e=m1(t,{relaxColumnCount:!0,skipEmptyLines:!0})[0],r=new ene;for(let s of e){let n=s.toString().split(/(?<=^[^=]+?)=/).map(i=>i.trim());if(n.length==1)r.attrs.value=n[0];else{let i=n[0].toLowerCase(),o=n[1];switch(i){case"type":{if(!Object.values(tne).includes(o))throw new Error(`Unknown tag type attribute: ${o}`);r.type=o;break}default:{r.attrs[i]=o;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.call(r.attrs,"value")||(r.attrs.value=""),Object.prototype.hasOwnProperty.call(r.attrs,"match")||(r.attrs.match="");break}case"match":{if(!Object.prototype.hasOwnProperty.call(r.attrs,"pattern"))throw new Error(`Missing
/*! 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
*)
negotiator/index.js:
(*!
* negotiator
* Copyright(c) 2012 Federico Romero
* Copyright(c) 2012-2014 Isaac Z. Schlueter
* Copyright(c) 2015 Douglas Christopher Wilson
* MIT Licensed
*)
imurmurhash/imurmurhash.js:
(**
* @preserve
* JS Implementation of incremental MurmurHash3 (r150) (as of May 10, 2013)
*
* @author <a href="mailto:jensyt@gmail.com">Jens Taylor</a>
* @see http://github.com/homebrewing/brauhaus-diff
* @author <a href="mailto:gary.court@gmail.com">Gary Court</a>
* @see http://github.com/garycourt/murmurhash-js
* @author <a href="mailto:aappleby@gmail.com">Austin Appleby</a>
* @see http://sites.google.com/site/murmurhash/
*)
2026-05-22 12:36:07 +00:00
make-fetch-happen/lib/fetch.js:
make-fetch-happen/lib/fetch.js:
(**
* @license
* Copyright (c) 2010-2012 Mikeal Rogers
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an "AS
* IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language
* governing permissions and limitations under the License.
*)
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