var jNe=Object.create;var kz=Object.defineProperty;var $Ne=Object.getOwnPropertyDescriptor;var KNe=Object.getOwnPropertyNames;var ZNe=Object.getPrototypeOf,ewe=Object.prototype.hasOwnProperty;var i=(t,e)=>kz(t,"name",{value:e,configurable:!0});var h=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),twe=(t,e)=>{for(var r in e)kz(t,r,{get:e[r],enumerable:!0})},rwe=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of KNe(e))!ewe.call(t,o)&&o!==r&&kz(t,o,{get:()=>e[o],enumerable:!(n=$Ne(e,o))||n.enumerable});return t};var w=(t,e,r)=>(r=t!=null?jNe(ZNe(t)):{},rwe(e||!t||!t.__esModule?kz(r,"default",{value:t,enumerable:!0}):r,t));var kG=h(NA=>{"use strict";var mN0=require("net"),cwe=require("tls"),lI=require("http"),QG=require("https"),uwe=require("events"),zN0=require("assert"),pwe=require("util");NA.httpOverHttp=Awe;NA.httpsOverHttp=lwe;NA.httpOverHttps=dwe;NA.httpsOverHttps=bwe;function Awe(t){var e=new Ii(t);return e.request=lI.request,e}i(Awe,"httpOverHttp");function lwe(t){var e=new Ii(t);return e.request=lI.request,e.createSocket=_G,e.defaultPort=443,e}i(lwe,"httpsOverHttp");function dwe(t){var e=new Ii(t);return e.request=QG.request,e}i(dwe,"httpOverHttps");function bwe(t){var e=new Ii(t);return e.request=QG.request,e.createSocket=_G,e.defaultPort=443,e}i(bwe,"httpsOverHttps");function Ii(t){var e=this;e.options=t||{},e.proxyOptions=e.options.proxy||{},e.maxSockets=e.options.maxSockets||lI.Agent.defaultMaxSockets,e.requests=[],e.sockets=[],e.on("free",i(function(n,o,s,a){for(var c=PG(o,s,a),u=0,p=e.requests.length;u
=this.maxSockets){s.requests.push(a);return}s.createSocket(a,function(c){c.on("free",u),c.on("close",p),c.on("agentRemove",p),e.onSocket(c);function u(){s.emit("free",c,a)}i(u,"onFree");function p(l){s.removeSocket(c),c.removeListener("free",u),c.removeListener("close",p),c.removeListener("agentRemove",p)}i(p,"onCloseOrRemove")})},"addRequest");Ii.prototype.createSocket=i(function(e,r){var n=this,o={};n.sockets.push(o);var s=dI({},n.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:!1,headers:{host:e.host+":"+e.port}});e.localAddress&&(s.localAddress=e.localAddress),s.proxyAuth&&(s.headers=s.headers||{},s.headers["Proxy-Authorization"]="Basic "+new Buffer(s.proxyAuth).toString("base64")),Pa("making CONNECT request");var a=n.request(s);a.useChunkedEncodingByDefault=!1,a.once("response",c),a.once("upgrade",u),a.once("connect",p),a.once("error",l),a.end();function c(A){A.upgrade=!0}i(c,"onResponse");function u(A,b,M){process.nextTick(function(){p(A,b,M)})}i(u,"onUpgrade");function p(A,b,M){if(a.removeAllListeners(),b.removeAllListeners(),A.statusCode!==200){Pa("tunneling socket could not be established, statusCode=%d",A.statusCode),b.destroy();var z=new Error("tunneling socket could not be established, statusCode="+A.statusCode);z.code="ECONNRESET",e.request.emit("error",z),n.removeSocket(o);return}if(M.length>0){Pa("got illegal response body from proxy"),b.destroy();var z=new Error("got illegal response body from proxy");z.code="ECONNRESET",e.request.emit("error",z),n.removeSocket(o);return}return Pa("tunneling connection has established"),n.sockets[n.sockets.indexOf(o)]=b,r(b)}i(p,"onConnect");function l(A){a.removeAllListeners(),Pa(`tunneling socket could not be established, cause=%s
`,A.message,A.stack);var b=new Error("tunneling socket could not be established, cause="+A.message);b.code="ECONNRESET",e.request.emit("error",b),n.removeSocket(o)}i(l,"onError")},"createSocket");Ii.prototype.removeSocket=i(function(e){var r=this.sockets.indexOf(e);if(r!==-1){this.sockets.splice(r,1);var n=this.requests.shift();n&&this.createSocket(n,function(o){n.request.onSocket(o)})}},"removeSocket");function _G(t,e){var r=this;Ii.prototype.createSocket.call(r,t,function(n){var o=t.request.getHeader("host"),s=dI({},r.options,{socket:n,servername:o?o.replace(/:.*$/,""):t.host}),a=cwe.connect(0,s);r.sockets[r.sockets.indexOf(n)]=a,e(a)})}i(_G,"createSecureSocket");function PG(t,e,r){return typeof t=="string"?{host:t,port:e,localAddress:r}:t}i(PG,"toOptions");function dI(t){for(var e=1,r=arguments.length;e 0&&(n+=", "+o.join(", "));var s=0;Object.keys(this.aliases).forEach(function(u){var p=r.aliases[u];p.children&&p.referenceCount>1&&(n+=", alias"+ ++s+"="+u,p.children[0]="alias"+s)}),this.lookupPropertyFunctionIsUsed&&(n+=", "+this.lookupPropertyFunctionVarDeclaration());var a=["container","depth0","helpers","partials","data"];(this.useBlockParams||this.useDepths)&&a.push("blockParams"),this.useDepths&&a.push("depths");var c=this.mergeSource(n);return e?(a.push(c),Function.apply(this,a)):this.source.wrap(["function(",a.join(","),`) {
`,c,"}"])},"createFunctionContext"),mergeSource:i(function(e){var r=this.environment.isSimple,n=!this.forceBuffer,o=void 0,s=void 0,a=void 0,c=void 0;return this.source.each(function(u){u.appendToBuffer?(a?u.prepend(" + "):a=u,c=u):(a&&(s?a.prepend("buffer += "):o=!0,c.add(";"),a=c=void 0),s=!0,r||(n=!1))}),n?a?(a.prepend("return "),c.add(";")):s||this.source.push('return "";'):(e+=", buffer = "+(o?"":this.initializeBuffer()),a?(a.prepend("return buffer + "),c.add(";")):this.source.push("return buffer;")),e&&this.source.prepend("var "+e.substring(2)+(o?"":`;
`)),this.source.merge()},"mergeSource"),lookupPropertyFunctionVarDeclaration:i(function(){return`
lookupProperty = container.lookupProperty || function(parent, propertyName) {
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
return parent[propertyName];
}
return undefined
}
`.trim()},"lookupPropertyFunctionVarDeclaration"),blockValue:i(function(e){var r=this.aliasable("container.hooks.blockHelperMissing"),n=[this.contextName(0)];this.setupHelperArgs(e,0,n);var o=this.popStack();n.splice(1,0,o),this.push(this.source.functionCall(r,"call",n))},"blockValue"),ambiguousBlockValue:i(function(){var e=this.aliasable("container.hooks.blockHelperMissing"),r=[this.contextName(0)];this.setupHelperArgs("",0,r,!0),this.flushInline();var n=this.topStack();r.splice(1,0,n),this.pushSource(["if (!",this.lastHelper,") { ",n," = ",this.source.functionCall(e,"call",r),"}"])},"ambiguousBlockValue"),appendContent:i(function(e){this.pendingContent?e=this.pendingContent+e:this.pendingLocation=this.source.currentLocation,this.pendingContent=e},"appendContent"),append:i(function(){if(this.isInline())this.replaceStack(function(r){return[" != null ? ",r,' : ""']}),this.pushSource(this.appendToBuffer(this.popStack()));else{var e=this.popStack();this.pushSource(["if (",e," != null) { ",this.appendToBuffer(e,void 0,!0)," }"]),this.environment.isSimple&&this.pushSource(["else { ",this.appendToBuffer("''",void 0,!0)," }"])}},"append"),appendEscaped:i(function(){this.pushSource(this.appendToBuffer([this.aliasable("container.escapeExpression"),"(",this.popStack(),")"]))},"appendEscaped"),getContext:i(function(e){this.lastContext=e},"getContext"),pushContext:i(function(){this.pushStackLiteral(this.contextName(this.lastContext))},"pushContext"),lookupOnContext:i(function(e,r,n,o){var s=0;!o&&this.options.compat&&!this.lastContext?this.push(this.depthedLookup(e[s++])):this.pushContext(),this.resolvePath("context",e,s,r,n)},"lookupOnContext"),lookupBlockParam:i(function(e,r){this.useBlockParams=!0,this.push(["blockParams[",e[0],"][",e[1],"]"]),this.resolvePath("context",r,1)},"lookupBlockParam"),lookupData:i(function(e,r,n){e?this.pushStackLiteral("container.data(data, "+e+")"):this.pushStackLiteral("data"),this.resolvePath("data",r,0,!0,n)},"lookupData"),resolvePath:i(function(e,r,n,o,s){var a=this;if(this.options.strict||this.options.assumeObjects){this.push(ip0(this.options.strict&&s,this,r,n,e));return}for(var c=r.length,u=i(function(l){a.replaceStack(function(A){var b=a.nameLookup(A,r[l],e);return o?[" && ",b]:[" != null ? ",b," : ",A]})},"_loop"),p=n;p 0&&(n+=", "+o.join(", "));var s=0;Object.keys(this.aliases).forEach(function(u){var p=r.aliases[u];p.children&&p.referenceCount>1&&(n+=", alias"+ ++s+"="+u,p.children[0]="alias"+s)}),this.lookupPropertyFunctionIsUsed&&(n+=", "+this.lookupPropertyFunctionVarDeclaration());var a=["container","depth0","helpers","partials","data"];(this.useBlockParams||this.useDepths)&&a.push("blockParams"),this.useDepths&&a.push("depths");var c=this.mergeSource(n);return e?(a.push(c),Function.apply(this,a)):this.source.wrap(["function(",a.join(","),`) {
`,c,"}"])},"createFunctionContext"),mergeSource:i(function(e){var r=this.environment.isSimple,n=!this.forceBuffer,o=void 0,s=void 0,a=void 0,c=void 0;return this.source.each(function(u){u.appendToBuffer?(a?u.prepend(" + "):a=u,c=u):(a&&(s?a.prepend("buffer += "):o=!0,c.add(";"),a=c=void 0),s=!0,r||(n=!1))}),n?a?(a.prepend("return "),c.add(";")):s||this.source.push('return "";'):(e+=", buffer = "+(o?"":this.initializeBuffer()),a?(a.prepend("return buffer + "),c.add(";")):this.source.push("return buffer;")),e&&this.source.prepend("var "+e.substring(2)+(o?"":`;
`)),this.source.merge()},"mergeSource"),lookupPropertyFunctionVarDeclaration:i(function(){return`
lookupProperty = container.lookupProperty || function(parent, propertyName) {
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
return parent[propertyName];
}
return undefined
}
`.trim()},"lookupPropertyFunctionVarDeclaration"),blockValue:i(function(e){var r=this.aliasable("container.hooks.blockHelperMissing"),n=[this.contextName(0)];this.setupHelperArgs(e,0,n);var o=this.popStack();n.splice(1,0,o),this.push(this.source.functionCall(r,"call",n))},"blockValue"),ambiguousBlockValue:i(function(){var e=this.aliasable("container.hooks.blockHelperMissing"),r=[this.contextName(0)];this.setupHelperArgs("",0,r,!0),this.flushInline();var n=this.topStack();r.splice(1,0,n),this.pushSource(["if (!",this.lastHelper,") { ",n," = ",this.source.functionCall(e,"call",r),"}"])},"ambiguousBlockValue"),appendContent:i(function(e){this.pendingContent?e=this.pendingContent+e:this.pendingLocation=this.source.currentLocation,this.pendingContent=e},"appendContent"),append:i(function(){if(this.isInline())this.replaceStack(function(r){return[" != null ? ",r,' : ""']}),this.pushSource(this.appendToBuffer(this.popStack()));else{var e=this.popStack();this.pushSource(["if (",e," != null) { ",this.appendToBuffer(e,void 0,!0)," }"]),this.environment.isSimple&&this.pushSource(["else { ",this.appendToBuffer("''",void 0,!0)," }"])}},"append"),appendEscaped:i(function(){this.pushSource(this.appendToBuffer([this.aliasable("container.escapeExpression"),"(",this.popStack(),")"]))},"appendEscaped"),getContext:i(function(e){this.lastContext=e},"getContext"),pushContext:i(function(){this.pushStackLiteral(this.contextName(this.lastContext))},"pushContext"),lookupOnContext:i(function(e,r,n,o){var s=0;!o&&this.options.compat&&!this.lastContext?this.push(this.depthedLookup(e[s++])):this.pushContext(),this.resolvePath("context",e,s,r,n)},"lookupOnContext"),lookupBlockParam:i(function(e,r){this.useBlockParams=!0,this.push(["blockParams[",e[0],"][",e[1],"]"]),this.resolvePath("context",r,1)},"lookupBlockParam"),lookupData:i(function(e,r,n){e?this.pushStackLiteral("container.data(data, "+e+")"):this.pushStackLiteral("data"),this.resolvePath("data",r,0,!0,n)},"lookupData"),resolvePath:i(function(e,r,n,o,s){var a=this;if(this.options.strict||this.options.assumeObjects){this.push(jm0(this.options.strict&&s,this,r,n,e));return}for(var c=r.length,u=i(function(l){a.replaceStack(function(A){var b=a.nameLookup(A,r[l],e);return o?[" && ",b]:[" != null ? ",b," : ",A]})},"_loop"),p=n;p{"use strict";var gb=require("node:assert"),{kDestroyed:EH,kBodyUsed:wA,kListeners:LI,kBody:OH}=k0(),{IncomingMessage:Mwe}=require("node:http"),Zz=require("node:stream"),hwe=require("node:net"),{Blob:mwe}=require("node:buffer"),zwe=require("node:util"),{stringify:gwe}=require("node:querystring"),{EventEmitter:Owe}=require("node:events"),{InvalidArgumentError:J1}=i0(),{headerNameLowerCasedRecord:Ewe}=Jz(),{tree:CH}=gH(),[Cwe,ywe]=process.versions.node.split(".").map(t=>Number(t)),Kz=class{static{i(this,"BodyAsyncIterable")}constructor(e){this[OH]=e,this[wA]=!1}async*[Symbol.asyncIterator](){gb(!this[wA],"disturbed"),this[wA]=!0,yield*this[OH]}};function Bwe(t){return eg(t)?(IH(t)===0&&t.on("data",function(){gb(!1)}),typeof t.readableDidRead!="boolean"&&(t[wA]=!1,Owe.prototype.on.call(t,"data",function(){this[wA]=!0})),t):t&&typeof t.pipeTo=="function"?new Kz(t):t&&typeof t!="string"&&!ArrayBuffer.isView(t)&&DH(t)?new Kz(t):t}i(Bwe,"wrapRequestBody");function qwe(){}i(qwe,"nop");function eg(t){return t&&typeof t=="object"&&typeof t.pipe=="function"&&typeof t.on=="function"}i(eg,"isStream");function yH(t){if(t===null)return!1;if(t instanceof mwe)return!0;if(typeof t!="object")return!1;{let e=t[Symbol.toStringTag];return(e==="Blob"||e==="File")&&("stream"in t&&typeof t.stream=="function"||"arrayBuffer"in t&&typeof t.arrayBuffer=="function")}}i(yH,"isBlobLike");function Dwe(t,e){if(t.includes("?")||t.includes("#"))throw new Error('Query params cannot be passed when url already contains "?" or "#".');let r=gwe(e);return r&&(t+="?"+r),t}i(Dwe,"buildURL");function BH(t){let e=parseInt(t,10);return e===Number(t)&&e>=0&&e<=65535}i(BH,"isValidPort");function $z(t){return t!=null&&t[0]==="h"&&t[1]==="t"&&t[2]==="t"&&t[3]==="p"&&(t[4]===":"||t[4]==="s"&&t[5]===":")}i($z,"isHttpOrHttpsPrefixed");function qH(t){if(typeof t=="string"){if(t=new URL(t),!$z(t.origin||t.protocol))throw new J1("Invalid URL protocol: the URL must start with `http:` or `https:`.");return t}if(!t||typeof t!="object")throw new J1("Invalid URL: The URL argument must be a non-null object.");if(!(t instanceof URL)){if(t.port!=null&&t.port!==""&&BH(t.port)===!1)throw new J1("Invalid URL: port must be a valid integer or a string representation of an integer.");if(t.path!=null&&typeof t.path!="string")throw new J1("Invalid URL path: the path must be a string or null/undefined.");if(t.pathname!=null&&typeof t.pathname!="string")throw new J1("Invalid URL pathname: the pathname must be a string or null/undefined.");if(t.hostname!=null&&typeof t.hostname!="string")throw new J1("Invalid URL hostname: the hostname must be a string or null/undefined.");if(t.origin!=null&&typeof t.origin!="string")throw new J1("Invalid URL origin: the origin must be a string or null/undefined.");if(!$z(t.origin||t.protocol))throw new J1("Invalid URL protocol: the URL must start with `http:` or `https:`.");let e=t.port!=null?t.port:t.protocol==="https:"?443:80,r=t.origin!=null?t.origin:`${t.protocol||""}//${t.hostname||""}:${e}`,n=t.path!=null?t.path:`${t.pathname||""}${t.search||""}`;return r[r.length-1]==="/"&&(r=r.slice(0,r.length-1)),n&&n[0]!=="/"&&(n=`/${n}`),new URL(`${r}${n}`)}if(!$z(t.origin||t.protocol))throw new J1("Invalid URL protocol: the URL must start with `http:` or `https:`.");return t}i(qH,"parseURL");function Iwe(t){if(t=qH(t),t.pathname!=="/"||t.search||t.hash)throw new J1("invalid url");return t}i(Iwe,"parseOrigin");function Rwe(t){if(t[0]==="["){let r=t.indexOf("]");return gb(r!==-1),t.substring(1,r)}let e=t.indexOf(":");return e===-1?t:t.substring(0,e)}i(Rwe,"getHostname");function Nwe(t){if(!t)return null;gb(typeof t=="string");let e=Rwe(t);return hwe.isIP(e)?"":e}i(Nwe,"getServerName");function wwe(t){return JSON.parse(JSON.stringify(t))}i(wwe,"deepClone");function Swe(t){return t!=null&&typeof t[Symbol.asyncIterator]=="function"}i(Swe,"isAsyncIterable");function DH(t){return t!=null&&(typeof t[Symbol.iterator]=="function"||typeof t[Symbol.asyncIterator]=="function")}i(DH,"isIterable");function IH(t){if(t==null)return 0;if(eg(t)){let e=t._readableState;return e&&e.objectMode===!1&&e.ended===!0&&Number.isFinite(e.length)?e.length:null}else{if(yH(t))return t.size!=null?t.size:null;if(wH(t))return t.byteLength}return null}i(IH,"bodyLength");function RH(t){return t&&!!(t.destroyed||t[EH]||Zz.isDestroyed?.(t))}i(RH,"isDestroyed");function Fwe(t,e){t==null||!eg(t)||RH(t)||(typeof t.destroy=="function"?(Object.getPrototypeOf(t).constructor===Mwe&&(t.socket=null),t.destroy(e)):e&&queueMicrotask(()=>{t.emit("error",e)}),t.destroyed!==!0&&(t[EH]=!0))}i(Fwe,"destroy");var Wwe=/timeout=(\d+)/;function xwe(t){let e=t.toString().match(Wwe);return e?parseInt(e[1],10)*1e3:null}i(xwe,"parseKeepAliveTimeout");function NH(t){return typeof t=="string"?Ewe[t]??t.toLowerCase():CH.lookup(t)??t.toString("latin1").toLowerCase()}i(NH,"headerNameToString");function vwe(t){return CH.lookup(t)??t.toString("latin1").toLowerCase()}i(vwe,"bufferToLowerCasedHeaderName");function Twe(t,e){e===void 0&&(e={});for(let r=0;ro)throw _.errors.exception({header:"Integer conversion",message:`Value must be between ${s}-${o}, got ${a}.`});return a}return!Number.isNaN(a)&&n?.clamp===!0?(a=Math.min(Math.max(a,s),o),Math.floor(a)%2===0?a=Math.floor(a):a=Math.ceil(a),a):Number.isNaN(a)||a===0&&Object.is(0,a)||a===Number.POSITIVE_INFINITY||a===Number.NEGATIVE_INFINITY?0:(a=_.util.IntegerPart(a),a=a%Math.pow(2,e),r==="signed"&&a>=Math.pow(2,e)-1?a-Math.pow(2,e):a)};_.util.IntegerPart=function(t){let e=Math.floor(Math.abs(t));return t<0?-1*e:e};_.util.Stringify=function(t){switch(_.util.Type(t)){case"Symbol":return`Symbol(${t.description})`;case"Object":return uSe(t);case"String":return`"${t}"`;default:return`${t}`}};_.sequenceConverter=function(t){return(e,r,n,o)=>{if(_.util.Type(e)!=="Object")throw _.errors.exception({header:r,message:`${n} (${_.util.Stringify(e)}) is not iterable.`});let s=typeof o=="function"?o():e?.[Symbol.iterator]?.(),a=[],c=0;if(s===void 0||typeof s.next!="function")throw _.errors.exception({header:r,message:`${n} is not iterable.`});for(;;){let{done:u,value:p}=s.next();if(u)break;a.push(t(p,r,`${n}[${c++}]`))}return a}};_.recordConverter=function(t,e){return(r,n,o)=>{if(_.util.Type(r)!=="Object")throw _.errors.exception({header:n,message:`${o} ("${_.util.Type(r)}") is not an Object.`});let s={};if(!jo.isProxy(r)){let c=[...Object.getOwnPropertyNames(r),...Object.getOwnPropertySymbols(r)];for(let u of c){let p=t(u,n,o),l=e(r[u],n,o);s[p]=l}return s}let a=Reflect.ownKeys(r);for(let c of a)if(Reflect.getOwnPropertyDescriptor(r,c)?.enumerable){let p=t(c,n,o),l=e(r[c],n,o);s[p]=l}return s}};_.interfaceConverter=function(t){return(e,r,n,o)=>{if(o?.strict!==!1&&!(e instanceof t))throw _.errors.exception({header:r,message:`Expected ${n} ("${_.util.Stringify(e)}") to be an instance of ${t.name}.`});return e}};_.dictionaryConverter=function(t){return(e,r,n)=>{let o=_.util.Type(e),s={};if(o==="Null"||o==="Undefined")return s;if(o!=="Object")throw _.errors.exception({header:r,message:`Expected ${e} to be one of: Null, Undefined, Object.`});for(let a of t){let{key:c,defaultValue:u,required:p,converter:l}=a;if(p===!0&&!Object.hasOwn(e,c))throw _.errors.exception({header:r,message:`Missing required key "${c}".`});let A=e[c],b=Object.hasOwn(a,"defaultValue");if(b&&A!==null&&(A??=u()),p||b||A!==void 0){if(A=l(A,r,`${n}.${c}`),a.allowedValues&&!a.allowedValues.includes(A))throw _.errors.exception({header:r,message:`${A} is not an accepted type. Expected one of ${a.allowedValues.join(", ")}.`});s[c]=A}}return s}};_.nullableConverter=function(t){return(e,r,n)=>e===null?e:t(e,r,n)};_.converters.DOMString=function(t,e,r,n){if(t===null&&n?.legacyNullToEmptyString)return"";if(typeof t=="symbol")throw _.errors.exception({header:e,message:`${r} is a symbol, which cannot be converted to a DOMString.`});return String(t)};_.converters.ByteString=function(t,e,r){let n=_.converters.DOMString(t,e,r);for(let o=0;o=0?u:p;n.length&&(c=[s,a])}return c}i(c1e,"range")});var m1e=h((Yv0,h1e)=>{var Vv0=s1e(),A1e=p1e();h1e.exports=aGe;var l1e="\0SLASH"+Math.random()+"\0",d1e="\0OPEN"+Math.random()+"\0",_6="\0CLOSE"+Math.random()+"\0",b1e="\0COMMA"+Math.random()+"\0",f1e="\0PERIOD"+Math.random()+"\0",nGe=1e5,oGe=4e6;function L6(t){return parseInt(t,10)==t?parseInt(t,10):t.charCodeAt(0)}i(L6,"numeric");function sGe(t){return t.split("\\\\").join(l1e).split("\\{").join(d1e).split("\\}").join(_6).split("\\,").join(b1e).split("\\.").join(f1e)}i(sGe,"escapeBraces");function iGe(t){return t.split(l1e).join("\\").split(d1e).join("{").split(_6).join("}").split(b1e).join(",").split(f1e).join(".")}i(iGe,"unescapeBraces");function M1e(t){if(!t)return[""];var e=[],r=A1e("{","}",t);if(!r)return t.split(",");var n=r.pre,o=r.body,s=r.post,a=n.split(",");a[a.length-1]+="{"+o+"}";var c=M1e(s);return s.length&&(a[a.length-1]+=c.shift(),a.push.apply(a,c)),e.push.apply(e,a),e}i(M1e,"parseCommaParts");function aGe(t,e){if(!t)return[];e=e||{};var r=e.max==null?nGe:e.max,n=e.maxLength==null?oGe:e.maxLength;return t.substr(0,2)==="{}"&&(t="\\{\\}"+t.substr(2)),Q6(sGe(t),r,n,!0).map(iGe)}i(aGe,"expandTop");function cGe(t){return"{"+t+"}"}i(cGe,"embrace");function uGe(t){return/^-?0\d/.test(t)}i(uGe,"isPadded");function pGe(t,e){return t<=e}i(pGe,"lte");function AGe(t,e){return t>=e}i(AGe,"gte");function Pf(t,e,r,n,o,s,a,c){for(var u=[],p=0,l=0;l"u"?this.pattern:t,A3(t),e.nobrace||!/\{(?:(?!\{).)*\}/.test(t)?[t]:dGe(t)}i(E1e,"braceExpand");var gGe=1024*64,A3=i(function(t){if(typeof t!="string")throw new TypeError("invalid pattern");if(t.length>gGe)throw new TypeError("pattern is too long")},"assertValidPattern");ut.prototype.parse=OGe;var p3={};function OGe(t,e){A3(t);var r=this.options;if(t==="**")if(r.noglobstar)t="*";else return U6;if(t==="")return"";var n="",o=!!r.nocase,s=!1,a=[],c=[],u,p=!1,l=-1,A=-1,b=t.charAt(0)==="."?"":r.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",M=this;function z(){if(u){switch(u){case"*":n+=k6,o=!0;break;case"?":n+=P6,o=!0;break;default:n+="\\"+u;break}M.debug("clearStateChar %j %j",u,n),u=!1}}i(z,"clearStateChar");for(var O=0,y=t.length,E;O{"use strict";Object.defineProperty(wy,"__esModule",{value:!0});wy.ReflectionBinaryWriter=void 0;var tn=nh(),N0=wo(),q2=C2(),lh=Ic(),uL=class{static{i(this,"ReflectionBinaryWriter")}constructor(e){this.info=e}prepare(){if(!this.fields){let e=this.info.fields?this.info.fields.concat():[];this.fields=e.sort((r,n)=>r.no-n.no)}}write(e,r,n){this.prepare();for(let s of this.fields){let a,c,u=s.repeat,p=s.localName;if(s.oneof){let l=e[s.oneof];if(l.oneofKind!==p)continue;a=l[p],c=!0}else a=e[p],c=!1;switch(s.kind){case"scalar":case"enum":let l=s.kind=="enum"?N0.ScalarType.INT32:s.T;if(u)if(q2.assert(Array.isArray(a)),u==N0.RepeatType.PACKED)this.packed(r,l,s.no,a);else for(let A of a)this.scalar(r,l,s.no,A,!0);else a===void 0?q2.assert(s.opt):this.scalar(r,l,s.no,a,c||s.opt);break;case"message":if(u){q2.assert(Array.isArray(a));for(let A of a)this.message(r,n,s.T(),s.no,A)}else this.message(r,n,s.T(),s.no,a);break;case"map":q2.assert(typeof a=="object"&&a!==null);for(let[A,b]of Object.entries(a))this.mapEntry(r,n,s,A,b);break}}let o=n.writeUnknownFields;o!==!1&&(o===!0?tn.UnknownFieldHandler.onWrite:o)(this.info.typeName,e,r)}mapEntry(e,r,n,o,s){e.tag(n.no,tn.WireType.LengthDelimited),e.fork();let a=o;switch(n.K){case N0.ScalarType.INT32:case N0.ScalarType.FIXED32:case N0.ScalarType.UINT32:case N0.ScalarType.SFIXED32:case N0.ScalarType.SINT32:a=Number.parseInt(o);break;case N0.ScalarType.BOOL:q2.assert(o=="true"||o=="false"),a=o=="true";break}switch(this.scalar(e,n.K,1,a,!0),n.V.kind){case"scalar":this.scalar(e,n.V.T,2,s,!0);break;case"enum":this.scalar(e,N0.ScalarType.INT32,2,s,!0);break;case"message":this.message(e,r,n.V.T(),2,s);break}e.join()}message(e,r,n,o,s){s!==void 0&&(n.internalBinaryWrite(s,e.tag(o,tn.WireType.LengthDelimited).fork(),r),e.join())}scalar(e,r,n,o,s){let[a,c,u]=this.scalarInfo(r,o);(!u||s)&&(e.tag(n,a),e[c](o))}packed(e,r,n,o){if(!o.length)return;q2.assert(r!==N0.ScalarType.BYTES&&r!==N0.ScalarType.STRING),e.tag(n,tn.WireType.LengthDelimited),e.fork();let[,s]=this.scalarInfo(r);for(let a=0;ae.major?1:this.minor
{"use strict";Xn.__esModule=!0;Xn.SourceLocation=lu0;Xn.id=du0;Xn.stripFlags=bu0;Xn.stripComment=fu0;Xn.preparePath=Mu0;Xn.prepareMustache=hu0;Xn.prepareRawBlock=mu0;Xn.prepareBlock=zu0;Xn.prepareProgram=gu0;Xn.preparePartialBlock=Ou0;function pu0(t){return t&&t.__esModule?t:{default:t}}i(pu0,"_interopRequireDefault");var Au0=sn(),FQ=pu0(Au0);function WQ(t,e){if(e=e.path?e.path.original:e,t.path.original!==e){var r={loc:t.path.loc};throw new FQ.default(t.path.original+" doesn't match "+e,r)}}i(WQ,"validateClose");function lu0(t,e){this.source=t,this.start={line:e.first_line,column:e.first_column},this.end={line:e.last_line,column:e.last_column}}i(lu0,"SourceLocation");function du0(t){return/^\[.*\]$/.test(t)?t.substring(1,t.length-1):t}i(du0,"id");function bu0(t,e){return{open:t.charAt(2)==="~",close:e.charAt(e.length-3)==="~"}}i(bu0,"stripFlags");function fu0(t){return t.replace(/^\{\{~?!-?-?/,"").replace(/-?-?~?\}\}$/,"")}i(fu0,"stripComment");function Mu0(t,e,r){r=this.locInfo(r);for(var n=t?"@":"",o=[],s=0,a=0,c=e.length;a=0)return r}else{var n=GQ.toSetString(e);if(HQ.call(this._set,n))return this._set[n]}throw new Error('"'+e+'" is not in the set.')},"ArraySet_indexOf");ha.prototype.at=i(function(e){if(e>=0&&e{"use strict";uB.__esModule=!0;function nde(t){return t&&t.__esModule?t:{default:t}}i(nde,"_interopRequireDefault");var tde=U4(),np0=sn(),t_=nde(np0),op0=jt(),sp0=ede(),rde=nde(sp0);function J2(t){this.value=t}i(J2,"Literal");function j2(){}i(j2,"JavaScriptCompiler");j2.prototype={nameLookup:i(function(e,r){return this.internalNameLookup(e,r)},"nameLookup"),depthedLookup:i(function(e){return[this.aliasable("container.lookup"),"(depths, ",JSON.stringify(e),")"]},"depthedLookup"),compilerInfo:i(function(){var e=tde.COMPILER_REVISION,r=tde.REVISION_CHANGES[e];return[e,r]},"compilerInfo"),appendToBuffer:i(function(e,r,n){return op0.isArray(e)||(e=[e]),e=this.source.wrap(e,r),this.environment.isSimple?["return ",e,";"]:n?["buffer += ",e,";"]:(e.appendToBuffer=!0,e)},"appendToBuffer"),initializeBuffer:i(function(){return this.quotedString("")},"initializeBuffer"),internalNameLookup:i(function(e,r){return this.lookupPropertyFunctionIsUsed=!0,["lookupProperty(",e,",",JSON.stringify(r),")"]},"internalNameLookup"),lookupPropertyFunctionIsUsed:!1,compile:i(function(e,r,n,o){this.environment=e,this.options=r,this.stringParams=this.options.stringParams,this.trackIds=this.options.trackIds,this.precompile=!o,this.name=this.environment.name,this.isChild=!!n,this.context=n||{decorators:[],programs:[],environments:[]},this.preamble(),this.stackSlot=0,this.stackVars=[],this.aliases={},this.registers={list:[]},this.hashes=[],this.compileStack=[],this.inlineStack=[],this.blockParams=[],this.compileChildren(e,r),this.useDepths=this.useDepths||e.useDepths||e.useDecorators||this.options.compat,this.useBlockParams=this.useBlockParams||e.useBlockParams;var s=e.opcodes,a=void 0,c=void 0,u=void 0,p=void 0;for(u=0,p=s.length;u{var lB=cde().default,Ade=ude();lB.PrintVisitor=Ade.PrintVisitor;lB.print=Ade.print;lde.exports=lB;function pde(t,e){var r=require("fs"),n=r.readFileSync(e,"utf8");t.exports=lB.compile(n)}i(pde,"extension");typeof require<"u"&&require.extensions&&(require.extensions[".handlebars"]=pde,require.extensions[".hbs"]=pde)});var mB=h(vc=>{"use strict";Object.defineProperty(vc,"__esModule",{value:!0});vc.Signature=vc.Envelope=void 0;vc.Envelope={fromJSON(t){return{payload:hB(t.payload)?Buffer.from(qde(t.payload)):Buffer.alloc(0),payloadType:hB(t.payloadType)?globalThis.String(t.payloadType):"",signatures:globalThis.Array.isArray(t?.signatures)?t.signatures.map(e=>vc.Signature.fromJSON(e)):[]}},toJSON(t){let e={};return t.payload.length!==0&&(e.payload=Dde(t.payload)),t.payloadType!==""&&(e.payloadType=t.payloadType),t.signatures?.length&&(e.signatures=t.signatures.map(r=>vc.Signature.toJSON(r))),e}};vc.Signature={fromJSON(t){return{sig:hB(t.sig)?Buffer.from(qde(t.sig)):Buffer.alloc(0),keyid:hB(t.keyid)?globalThis.String(t.keyid):""}},toJSON(t){let e={};return t.sig.length!==0&&(e.sig=Dde(t.sig)),t.keyid!==""&&(e.keyid=t.keyid),e}};function qde(t){return Uint8Array.from(globalThis.Buffer.from(t,"base64"))}i(qde,"bytesFromBase64");function Dde(t){return globalThis.Buffer.from(t).toString("base64")}i(Dde,"base64FromBytes");function hB(t){return t!=null}i(hB,"isSet")});var Rde=h(zB=>{"use strict";Object.defineProperty(zB,"__esModule",{value:!0});zB.Timestamp=void 0;zB.Timestamp={fromJSON(t){return{seconds:Ide(t.seconds)?globalThis.String(t.seconds):"0",nanos:Ide(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 Ide(t){return t!=null}i(Ide,"isSet")});var za=h(ye=>{"use strict";Object.defineProperty(ye,"__esModule",{value:!0});ye.TimeRange=ye.X509CertificateChain=ye.SubjectAlternativeName=ye.X509Certificate=ye.DistinguishedName=ye.ObjectIdentifierValuePair=ye.ObjectIdentifier=ye.PublicKeyIdentifier=ye.PublicKey=ye.RFC3161SignedTimestamp=ye.LogId=ye.MessageSignature=ye.HashOutput=ye.SubjectAlternativeNameType=ye.PublicKeyDetails=ye.HashAlgorithm=void 0;ye.hashAlgorithmFromJSON=wde;ye.hashAlgorithmToJSON=Sde;ye.publicKeyDetailsFromJSON=Fde;ye.publicKeyDetailsToJSON=Wde;ye.subjectAlternativeNameTypeFromJSON=xde;ye.subjectAlternativeNameTypeToJSON=vde;var Bp0=Rde(),Or;(function(t){t[t.HASH_ALGORITHM_UNSPECIFIED=0]="HASH_ALGORITHM_UNSPECIFIED",t[t.SHA2_256=1]="SHA2_256",t[t.SHA2_384=2]="SHA2_384",t[t.SHA2_512=3]="SHA2_512",t[t.SHA3_256=4]="SHA3_256",t[t.SHA3_384=5]="SHA3_384"})(Or||(ye.HashAlgorithm=Or={}));function wde(t){switch(t){case 0:case"HASH_ALGORITHM_UNSPECIFIED":return Or.HASH_ALGORITHM_UNSPECIFIED;case 1:case"SHA2_256":return Or.SHA2_256;case 2:case"SHA2_384":return Or.SHA2_384;case 3:case"SHA2_512":return Or.SHA2_512;case 4:case"SHA3_256":return Or.SHA3_256;case 5:case"SHA3_384":return Or.SHA3_384;default:throw new globalThis.Error("Unrecognized enum value "+t+" for enum HashAlgorithm")}}i(wde,"hashAlgorithmFromJSON");function Sde(t){switch(t){case Or.HASH_ALGORITHM_UNSPECIFIED:return"HASH_ALGORITHM_UNSPECIFIED";case Or.SHA2_256:return"SHA2_256";case Or.SHA2_384:return"SHA2_384";case Or.SHA2_512:return"SHA2_512";case Or.SHA3_256:return"SHA3_256";case Or.SHA3_384:return"SHA3_384";default:throw new globalThis.Error("Unrecognized enum value "+t+" for enum HashAlgorithm")}}i(Sde,"hashAlgorithmToJSON");var Ce;(function(t){t[t.PUBLIC_KEY_DETAILS_UNSPECIFIED=0]="PUBLIC_KEY_DETAILS_UNSPECIFIED",t[t.PKCS1_RSA_PKCS1V5=1]="PKCS1_RSA_PKCS1V5",t[t.PKCS1_RSA_PSS=2]="PKCS1_RSA_PSS",t[t.PKIX_RSA_PKCS1V5=3]="PKIX_RSA_PKCS1V5",t[t.PKIX_RSA_PSS=4]="PKIX_RSA_PSS",t[t.PKIX_RSA_PKCS1V15_2048_SHA256=9]="PKIX_RSA_PKCS1V15_2048_SHA256",t[t.PKIX_RSA_PKCS1V15_3072_SHA256=10]="PKIX_RSA_PKCS1V15_3072_SHA256",t[t.PKIX_RSA_PKCS1V15_4096_SHA256=11]="PKIX_RSA_PKCS1V15_4096_SHA256",t[t.PKIX_RSA_PSS_2048_SHA256=16]="PKIX_RSA_PSS_2048_SHA256",t[t.PKIX_RSA_PSS_3072_SHA256=17]="PKIX_RSA_PSS_3072_SHA256",t[t.PKIX_RSA_PSS_4096_SHA256=18]="PKIX_RSA_PSS_4096_SHA256",t[t.PKIX_ECDSA_P256_HMAC_SHA_256=6]="PKIX_ECDSA_P256_HMAC_SHA_256",t[t.PKIX_ECDSA_P256_SHA_256=5]="PKIX_ECDSA_P256_SHA_256",t[t.PKIX_ECDSA_P384_SHA_384=12]="PKIX_ECDSA_P384_SHA_384",t[t.PKIX_ECDSA_P521_SHA_512=13]="PKIX_ECDSA_P521_SHA_512",t[t.PKIX_ED25519=7]="PKIX_ED25519",t[t.PKIX_ED25519_PH=8]="PKIX_ED25519_PH",t[t.PKIX_ECDSA_P384_SHA_256=19]="PKIX_ECDSA_P384_SHA_256",t[t.PKIX_ECDSA_P521_SHA_256=20]="PKIX_ECDSA_P521_SHA_256",t[t.LMS_SHA256=14]="LMS_SHA256",t[t.LMOTS_SHA256=15]="LMOTS_SHA256",t[t.ML_DSA_65=21]="ML_DSA_65",t[t.ML_DSA_87=22]="ML_DSA_87"})(Ce||(ye.PublicKeyDetails=Ce={}));function Fde(t){switch(t){case 0:case"PUBLIC_KEY_DETAILS_UNSPECIFIED":return Ce.PUBLIC_KEY_DETAILS_UNSPECIFIED;case 1:case"PKCS1_RSA_PKCS1V5":return Ce.PKCS1_RSA_PKCS1V5;case 2:case"PKCS1_RSA_PSS":return Ce.PKCS1_RSA_PSS;case 3:case"PKIX_RSA_PKCS1V5":return Ce.PKIX_RSA_PKCS1V5;case 4:case"PKIX_RSA_PSS":return Ce.PKIX_RSA_PSS;case 9:case"PKIX_RSA_PKCS1V15_2048_SHA256":return Ce.PKIX_RSA_PKCS1V15_2048_SHA256;case 10:case"PKIX_RSA_PKCS1V15_3072_SHA256":return Ce.PKIX_RSA_PKCS1V15_3072_SHA256;case 11:case"PKIX_RSA_PKCS1V15_4096_SHA256":return Ce.PKIX_RSA_PKCS1V15_4096_SHA256;case 16:case"PKIX_RSA_PSS_2048_SHA256":return Ce.PKIX_RSA_PSS_2048_SHA256;case 17:case"PKIX_RSA_PSS_3072_SHA256":return Ce.PKIX_RSA_PSS_3072_SHA256;case 18:case"PKIX_RSA_PSS_4096_SHA256":return Ce.PKIX_RSA_PSS_4096_SHA256;case 6:case"PKIX_ECDSA_P256_HMAC_SHA_256":return Ce.PKIX_ECDSA_P256_HMAC_SHA_256;case 5:case"PKIX_ECDSA_P256_SHA_256":return Ce.PKIX_ECDSA_P256_SHA_256;case 12:case"PKIX_ECDSA_P384_SHA_384":return Ce.PKIX_ECDSA_P384_SHA_384;case 13:case"PKIX_ECDSA_P521_SHA_512":return Ce.PKIX_ECDSA_P521_SHA_512;case 7:case"PKIX_ED25519":return Ce.PKIX_ED25519;case 8:case"PKIX_ED25519_PH":return Ce.PKIX_ED25519_PH;case 19:case"PKIX_ECDSA_P384_SHA_256":return Ce.PKIX_ECDSA_P384_SHA_256;case 20:case"PKIX_ECDSA_P521_SHA_256":return Ce.PKIX_ECDSA_P521_SHA_256;case 14:case"LMS_SHA256":return Ce.LMS_SHA256;case 15:case"LMOTS_SHA256":return Ce.LMOTS_SHA256;case 21:case"ML_DSA_65":return Ce.ML_DSA_65;case 22:case"ML_DSA_87":return Ce.ML_DSA_87;default:throw new globalThis.Error("Unrecognized enum value "+t+" for enum PublicKeyDetails")}}i(Fde,"publicKeyDetailsFromJSON");function Wde(t){switch(t){case Ce.PUBLIC_KEY_DETAILS_UNSPECIFIED:return"PUBLIC_KEY_DETAILS_UNSPECIFIED";case Ce.PKCS1_RSA_PKCS1V5:return"PKCS1_RSA_PKCS1V5";case Ce.PKCS1_RSA_PSS:return"PKCS1_RSA_PSS";case Ce.PKIX_RSA_PKCS1V5:return"PKIX_RSA_PKCS1V5";case Ce.PKIX_RSA_PSS:return"PKIX_RSA_PSS";case Ce.PKIX_RSA_PKCS1V15_2048_SHA256:return"PKIX_RSA_PKCS1V15_2048_SHA256";case Ce.PKIX_RSA_PKCS1V15_3072_SHA256:return"PKIX_RSA_PKCS1V15_3072_SHA256";case Ce.PKIX_RSA_PKCS1V15_4096_SHA256:return"PKIX_RSA_PKCS1V15_4096_SHA256";case Ce.PKIX_RSA_PSS_2048_SHA256:return"PKIX_RSA_PSS_2048_SHA256";case Ce.PKIX_RSA_PSS_3072_SHA256:return"PKIX_RSA_PSS_3072_SHA256";case Ce.PKIX_RSA_PSS_4096_SHA256:return"PKIX_RSA_PSS_4096_SHA256";case Ce.PKIX_ECDSA_P256_HMAC_SHA_256:return"PKIX_ECDSA_P256_HMAC_SHA_256";case Ce.PKIX_ECDSA_P256_SHA_256:return"PKIX_ECDSA_P256_SHA_256";case Ce.PKIX_ECDSA_P384_SHA_384:return"PKIX_ECDSA_P384_SHA_384";case Ce.PKIX_ECDSA_P521_SHA_512:return"PKIX_ECDSA_P521_SHA_512";case Ce.PKIX_ED25519:return"PKIX_ED25519";case Ce.PKIX_ED25519_PH:return"PKIX_ED25519_PH";case Ce.PKIX_ECDSA_P384_SHA_256:return"PKIX_ECDSA_P384_SHA_256";case Ce.PKIX_ECDSA_P521_SHA_256:return"PKIX_ECDSA_P521_SHA_256";case Ce.LMS_SHA256:return"LMS_SHA256";case Ce.LMOTS_SHA256:return"LMOTS_SHA256";case Ce.ML_DSA_65:return"ML_DSA_65";case Ce.ML_DSA_87:return"ML_DSA_87";default:throw new globalThis.Error("Unrecognized enum value "+t+" for enum PublicKeyDetails")}}i(Wde,"publicKeyDetailsToJSON");var js;(function(t){t[t.SUBJECT_ALTERNATIVE_NAME_TYPE_UNSPECIFIED=0]="SUBJECT_ALTERNATIVE_NAME_TYPE_UNSPECIFIED",t[t.EMAIL=1]="EMAIL",t[t.URI=2]="URI",t[t.OTHER_NAME=3]="OTHER_NAME"})(js||(ye.SubjectAlternativeNameType=js={}));function xde(t){switch(t){case 0:case"SUBJECT_ALTERNATIVE_NAME_TYPE_UNSPECIFIED":return js.SUBJECT_ALTERNATIVE_NAME_TYPE_UNSPECIFIED;case 1:case"EMAIL":return js.EMAIL;case 2:case"URI":return js.URI;case 3:case"OTHER_NAME":return js.OTHER_NAME;default:throw new globalThis.Error("Unrecognized enum value "+t+" for enum SubjectAlternativeNameType")}}i(xde,"subjectAlternativeNameTypeFromJSON");function vde(t){switch(t){case js.SUBJECT_ALTERNATIVE_NAME_TYPE_UNSPECIFIED:return"SUBJECT_ALTERNATIVE_NAME_TYPE_UNSPECIFIED";case js.EMAIL:return"EMAIL";case js.URI:return"URI";case js.OTHER_NAME:return"OTHER_NAME";default:throw new globalThis.Error("Unrecognized enum value "+t+" for enum SubjectAlternativeNameType")}}i(vde,"subjectAlternativeNameTypeToJSON");ye.HashOutput={fromJSON(t){return{algorithm:x1(t.algorithm)?wde(t.algorithm):0,digest:x1(t.digest)?Buffer.from(Qp(t.digest)):Buffer.alloc(0)}},toJSON(t){let e={};return t.algorithm!==0&&(e.algorithm=Sde(t.algorithm)),t.digest.length!==0&&(e.digest=_p(t.digest)),e}};ye.MessageSignature={fromJSON(t){return{messageDigest:x1(t.messageDigest)?ye.HashOutput.fromJSON(t.messageDigest):void 0,signature:x1(t.signature)?Buffer.from(Qp(t.signature)):Buffer.alloc(0)}},toJSON(t){let e={};return t.messageDigest!==void 0&&(e.messageDigest=ye.HashOutput.toJSON(t.messageDigest)),t.signature.length!==0&&(e.signature=_p(t.signature)),e}};ye.LogId={fromJSON(t){return{keyId:x1(t.keyId)?Buffer.from(Qp(t.keyId)):Buffer.alloc(0)}},toJSON(t){let e={};return t.keyId.length!==0&&(e.keyId=_p(t.keyId)),e}};ye.RFC3161SignedTimestamp={fromJSON(t){return{signedTimestamp:x1(t.signedTimestamp)?Buffer.from(Qp(t.signedTimestamp)):Buffer.alloc(0)}},toJSON(t){let e={};return t.signedTimestamp.length!==0&&(e.signedTimestamp=_p(t.signedTimestamp)),e}};ye.PublicKey={fromJSON(t){return{rawBytes:x1(t.rawBytes)?Buffer.from(Qp(t.rawBytes)):void 0,keyDetails:x1(t.keyDetails)?Fde(t.keyDetails):0,validFor:x1(t.validFor)?ye.TimeRange.fromJSON(t.validFor):void 0}},toJSON(t){let e={};return t.rawBytes!==void 0&&(e.rawBytes=_p(t.rawBytes)),t.keyDetails!==0&&(e.keyDetails=Wde(t.keyDetails)),t.validFor!==void 0&&(e.validFor=ye.TimeRange.toJSON(t.validFor)),e}};ye.PublicKeyIdentifier={fromJSON(t){return{hint:x1(t.hint)?globalThis.String(t.hint):""}},toJSON(t){let e={};return t.hint!==""&&(e.hint=t.hint),e}};ye.ObjectIdentifier={fromJSON(t){return{id:globalThis.Array.isArray(t?.id)?t.id.map(e=>globalThis.Number(e)):[]}},toJSON(t){let e={};return t.id?.length&&(e.id=t.id.map(r=>Math.round(r))),e}};ye.ObjectIdentifierValuePair={fromJSON(t){return{oid:x1(t.oid)?ye.ObjectIdentifier.fromJSON(t.oid):void 0,value:x1(t.value)?Buffer.from(Qp(t.value)):Buffer.alloc(0)}},toJSON(t){let e={};return t.oid!==void 0&&(e.oid=ye.ObjectIdentifier.toJSON(t.oid)),t.value.length!==0&&(e.value=_p(t.value)),e}};ye.DistinguishedName={fromJSON(t){return{organization:x1(t.organization)?globalThis.String(t.organization):"",commonName:x1(t.commonName)?globalThis.String(t.commonName):""}},toJSON(t){let e={};return t.organization!==""&&(e.organization=t.organization),t.commonName!==""&&(e.commonName=t.commonName),e}};ye.X509Certificate={fromJSON(t){return{rawBytes:x1(t.rawBytes)?Buffer.from(Qp(t.rawBytes)):Buffer.alloc(0)}},toJSON(t){let e={};return t.rawBytes.length!==0&&(e.rawBytes=_p(t.rawBytes)),e}};ye.SubjectAlternativeName={fromJSON(t){return{type:x1(t.type)?xde(t.type):0,identity:x1(t.regexp)?{$case:"regexp",regexp:globalThis.String(t.regexp)}:x1(t.value)?{$case:"value",value:globalThis.String(t.value)}:void 0}},toJSON(t){let e={};return t.type!==0&&(e.type=vde(t.type)),t.identity?.$case==="regexp"?e.regexp=t.identity.regexp:t.identity?.$case==="value"&&(e.value=t.identity.value),e}};ye.X509CertificateChain={fromJSON(t){return{certificates:globalThis.Array.isArray(t?.certificates)?t.certificates.map(e=>ye.X509Certificate.fromJSON(e)):[]}},toJSON(t){let e={};return t.certificates?.length&&(e.certificates=t.certificates.map(r=>ye.X509Certificate.toJSON(r))),e}};ye.TimeRange={fromJSON(t){return{start:x1(t.start)?Nde(t.start):void 0,end:x1(t.end)?Nde(t.end):void 0}},toJSON(t){let e={};return t.start!==void 0&&(e.start=t.start.toISOString()),t.end!==void 0&&(e.end=t.end.toISOString()),e}};function Qp(t){return Uint8Array.from(globalThis.Buffer.from(t,"base64"))}i(Qp,"bytesFromBase64");function _p(t){return globalThis.Buffer.from(t).toString("base64")}i(_p,"base64FromBytes");function qp0(t){let e=(globalThis.Number(t.seconds)||0)*1e3;return e+=(t.nanos||0)/1e6,new globalThis.Date(e)}i(qp0,"fromTimestamp");function Nde(t){return t instanceof globalThis.Date?t:typeof t=="string"?new globalThis.Date(t):qp0(Bp0.Timestamp.fromJSON(t))}i(Nde,"fromJsonTimestamp");function x1(t){return t!=null}i(x1,"isSet")});var p_=h(v1=>{"use strict";Object.defineProperty(v1,"__esModule",{value:!0});v1.TransparencyLogEntry=v1.InclusionPromise=v1.InclusionProof=v1.Checkpoint=v1.KindVersion=void 0;var Tde=za();v1.KindVersion={fromJSON(t){return{kind:$t(t.kind)?globalThis.String(t.kind):"",version:$t(t.version)?globalThis.String(t.version):""}},toJSON(t){let e={};return t.kind!==""&&(e.kind=t.kind),t.version!==""&&(e.version=t.version),e}};v1.Checkpoint={fromJSON(t){return{envelope:$t(t.envelope)?globalThis.String(t.envelope):""}},toJSON(t){let e={};return t.envelope!==""&&(e.envelope=t.envelope),e}};v1.InclusionProof={fromJSON(t){return{logIndex:$t(t.logIndex)?globalThis.String(t.logIndex):"0",rootHash:$t(t.rootHash)?Buffer.from(gB(t.rootHash)):Buffer.alloc(0),treeSize:$t(t.treeSize)?globalThis.String(t.treeSize):"0",hashes:globalThis.Array.isArray(t?.hashes)?t.hashes.map(e=>Buffer.from(gB(e))):[],checkpoint:$t(t.checkpoint)?v1.Checkpoint.fromJSON(t.checkpoint):void 0}},toJSON(t){let e={};return t.logIndex!=="0"&&(e.logIndex=t.logIndex),t.rootHash.length!==0&&(e.rootHash=OB(t.rootHash)),t.treeSize!=="0"&&(e.treeSize=t.treeSize),t.hashes?.length&&(e.hashes=t.hashes.map(r=>OB(r))),t.checkpoint!==void 0&&(e.checkpoint=v1.Checkpoint.toJSON(t.checkpoint)),e}};v1.InclusionPromise={fromJSON(t){return{signedEntryTimestamp:$t(t.signedEntryTimestamp)?Buffer.from(gB(t.signedEntryTimestamp)):Buffer.alloc(0)}},toJSON(t){let e={};return t.signedEntryTimestamp.length!==0&&(e.signedEntryTimestamp=OB(t.signedEntryTimestamp)),e}};v1.TransparencyLogEntry={fromJSON(t){return{logIndex:$t(t.logIndex)?globalThis.String(t.logIndex):"0",logId:$t(t.logId)?Tde.LogId.fromJSON(t.logId):void 0,kindVersion:$t(t.kindVersion)?v1.KindVersion.fromJSON(t.kindVersion):void 0,integratedTime:$t(t.integratedTime)?globalThis.String(t.integratedTime):"0",inclusionPromise:$t(t.inclusionPromise)?v1.InclusionPromise.fromJSON(t.inclusionPromise):void 0,inclusionProof:$t(t.inclusionProof)?v1.InclusionProof.fromJSON(t.inclusionProof):void 0,canonicalizedBody:$t(t.canonicalizedBody)?Buffer.from(gB(t.canonicalizedBody)):Buffer.alloc(0)}},toJSON(t){let e={};return t.logIndex!=="0"&&(e.logIndex=t.logIndex),t.logId!==void 0&&(e.logId=Tde.LogId.toJSON(t.logId)),t.kindVersion!==void 0&&(e.kindVersion=v1.KindVersion.toJSON(t.kindVersion)),t.integratedTime!=="0"&&(e.integratedTime=t.integratedTime),t.inclusionPromise!==void 0&&(e.inclusionPromise=v1.InclusionPromise.toJSON(t.inclusionPromise)),t.inclusionProof!==void 0&&(e.inclusionProof=v1.InclusionProof.toJSON(t.inclusionProof)),t.canonicalizedBody.length!==0&&(e.canonicalizedBody=OB(t.canonicalizedBody)),e}};function gB(t){return Uint8Array.from(globalThis.Buffer.from(t,"base64"))}i(gB,"bytesFromBase64");function OB(t){return globalThis.Buffer.from(t).toString("base64")}i(OB,"base64FromBytes");function $t(t){return t!=null}i($t,"isSet")});var A_=h(Jn=>{"use strict";Object.defineProperty(Jn,"__esModule",{value:!0});Jn.Bundle=Jn.VerificationMaterial=Jn.TimestampVerificationData=void 0;var Lde=mB(),$s=za(),Qde=p_();Jn.TimestampVerificationData={fromJSON(t){return{rfc3161Timestamps:globalThis.Array.isArray(t?.rfc3161Timestamps)?t.rfc3161Timestamps.map(e=>$s.RFC3161SignedTimestamp.fromJSON(e)):[]}},toJSON(t){let e={};return t.rfc3161Timestamps?.length&&(e.rfc3161Timestamps=t.rfc3161Timestamps.map(r=>$s.RFC3161SignedTimestamp.toJSON(r))),e}};Jn.VerificationMaterial={fromJSON(t){return{content:Tc(t.publicKey)?{$case:"publicKey",publicKey:$s.PublicKeyIdentifier.fromJSON(t.publicKey)}:Tc(t.x509CertificateChain)?{$case:"x509CertificateChain",x509CertificateChain:$s.X509CertificateChain.fromJSON(t.x509CertificateChain)}:Tc(t.certificate)?{$case:"certificate",certificate:$s.X509Certificate.fromJSON(t.certificate)}:void 0,tlogEntries:globalThis.Array.isArray(t?.tlogEntries)?t.tlogEntries.map(e=>Qde.TransparencyLogEntry.fromJSON(e)):[],timestampVerificationData:Tc(t.timestampVerificationData)?Jn.TimestampVerificationData.fromJSON(t.timestampVerificationData):void 0}},toJSON(t){let e={};return t.content?.$case==="publicKey"?e.publicKey=$s.PublicKeyIdentifier.toJSON(t.content.publicKey):t.content?.$case==="x509CertificateChain"?e.x509CertificateChain=$s.X509CertificateChain.toJSON(t.content.x509CertificateChain):t.content?.$case==="certificate"&&(e.certificate=$s.X509Certificate.toJSON(t.content.certificate)),t.tlogEntries?.length&&(e.tlogEntries=t.tlogEntries.map(r=>Qde.TransparencyLogEntry.toJSON(r))),t.timestampVerificationData!==void 0&&(e.timestampVerificationData=Jn.TimestampVerificationData.toJSON(t.timestampVerificationData)),e}};Jn.Bundle={fromJSON(t){return{mediaType:Tc(t.mediaType)?globalThis.String(t.mediaType):"",verificationMaterial:Tc(t.verificationMaterial)?Jn.VerificationMaterial.fromJSON(t.verificationMaterial):void 0,content:Tc(t.messageSignature)?{$case:"messageSignature",messageSignature:$s.MessageSignature.fromJSON(t.messageSignature)}:Tc(t.dsseEnvelope)?{$case:"dsseEnvelope",dsseEnvelope:Lde.Envelope.fromJSON(t.dsseEnvelope)}:void 0}},toJSON(t){let e={};return t.mediaType!==""&&(e.mediaType=t.mediaType),t.verificationMaterial!==void 0&&(e.verificationMaterial=Jn.VerificationMaterial.toJSON(t.verificationMaterial)),t.content?.$case==="messageSignature"?e.messageSignature=$s.MessageSignature.toJSON(t.content.messageSignature):t.content?.$case==="dsseEnvelope"&&(e.dsseEnvelope=Lde.Envelope.toJSON(t.content.dsseEnvelope)),e}};function Tc(t){return t!=null}i(Tc,"isSet")});var l_=h(we=>{"use strict";Object.defineProperty(we,"__esModule",{value:!0});we.ClientTrustConfig=we.ServiceConfiguration=we.Service=we.SigningConfig=we.TrustedRoot=we.CertificateAuthority=we.TransparencyLogInstance=we.ServiceSelector=void 0;we.serviceSelectorFromJSON=_de;we.serviceSelectorToJSON=Pde;var Dt=za(),Ks;(function(t){t[t.SERVICE_SELECTOR_UNDEFINED=0]="SERVICE_SELECTOR_UNDEFINED",t[t.ALL=1]="ALL",t[t.ANY=2]="ANY",t[t.EXACT=3]="EXACT"})(Ks||(we.ServiceSelector=Ks={}));function _de(t){switch(t){case 0:case"SERVICE_SELECTOR_UNDEFINED":return Ks.SERVICE_SELECTOR_UNDEFINED;case 1:case"ALL":return Ks.ALL;case 2:case"ANY":return Ks.ANY;case 3:case"EXACT":return Ks.EXACT;default:throw new globalThis.Error("Unrecognized enum value "+t+" for enum ServiceSelector")}}i(_de,"serviceSelectorFromJSON");function Pde(t){switch(t){case Ks.SERVICE_SELECTOR_UNDEFINED:return"SERVICE_SELECTOR_UNDEFINED";case Ks.ALL:return"ALL";case Ks.ANY:return"ANY";case Ks.EXACT:return"EXACT";default:throw new globalThis.Error("Unrecognized enum value "+t+" for enum ServiceSelector")}}i(Pde,"serviceSelectorToJSON");we.TransparencyLogInstance={fromJSON(t){return{baseUrl:J0(t.baseUrl)?globalThis.String(t.baseUrl):"",hashAlgorithm:J0(t.hashAlgorithm)?(0,Dt.hashAlgorithmFromJSON)(t.hashAlgorithm):0,publicKey:J0(t.publicKey)?Dt.PublicKey.fromJSON(t.publicKey):void 0,logId:J0(t.logId)?Dt.LogId.fromJSON(t.logId):void 0,checkpointKeyId:J0(t.checkpointKeyId)?Dt.LogId.fromJSON(t.checkpointKeyId):void 0,operator:J0(t.operator)?globalThis.String(t.operator):""}},toJSON(t){let e={};return t.baseUrl!==""&&(e.baseUrl=t.baseUrl),t.hashAlgorithm!==0&&(e.hashAlgorithm=(0,Dt.hashAlgorithmToJSON)(t.hashAlgorithm)),t.publicKey!==void 0&&(e.publicKey=Dt.PublicKey.toJSON(t.publicKey)),t.logId!==void 0&&(e.logId=Dt.LogId.toJSON(t.logId)),t.checkpointKeyId!==void 0&&(e.checkpointKeyId=Dt.LogId.toJSON(t.checkpointKeyId)),t.operator!==""&&(e.operator=t.operator),e}};we.CertificateAuthority={fromJSON(t){return{subject:J0(t.subject)?Dt.DistinguishedName.fromJSON(t.subject):void 0,uri:J0(t.uri)?globalThis.String(t.uri):"",certChain:J0(t.certChain)?Dt.X509CertificateChain.fromJSON(t.certChain):void 0,validFor:J0(t.validFor)?Dt.TimeRange.fromJSON(t.validFor):void 0,operator:J0(t.operator)?globalThis.String(t.operator):""}},toJSON(t){let e={};return t.subject!==void 0&&(e.subject=Dt.DistinguishedName.toJSON(t.subject)),t.uri!==""&&(e.uri=t.uri),t.certChain!==void 0&&(e.certChain=Dt.X509CertificateChain.toJSON(t.certChain)),t.validFor!==void 0&&(e.validFor=Dt.TimeRange.toJSON(t.validFor)),t.operator!==""&&(e.operator=t.operator),e}};we.TrustedRoot={fromJSON(t){return{mediaType:J0(t.mediaType)?globalThis.String(t.mediaType):"",tlogs:globalThis.Array.isArray(t?.tlogs)?t.tlogs.map(e=>we.TransparencyLogInstance.fromJSON(e)):[],certificateAuthorities:globalThis.Array.isArray(t?.certificateAuthorities)?t.certificateAuthorities.map(e=>we.CertificateAuthority.fromJSON(e)):[],ctlogs:globalThis.Array.isArray(t?.ctlogs)?t.ctlogs.map(e=>we.TransparencyLogInstance.fromJSON(e)):[],timestampAuthorities:globalThis.Array.isArray(t?.timestampAuthorities)?t.timestampAuthorities.map(e=>we.CertificateAuthority.fromJSON(e)):[]}},toJSON(t){let e={};return t.mediaType!==""&&(e.mediaType=t.mediaType),t.tlogs?.length&&(e.tlogs=t.tlogs.map(r=>we.TransparencyLogInstance.toJSON(r))),t.certificateAuthorities?.length&&(e.certificateAuthorities=t.certificateAuthorities.map(r=>we.CertificateAuthority.toJSON(r))),t.ctlogs?.length&&(e.ctlogs=t.ctlogs.map(r=>we.TransparencyLogInstance.toJSON(r))),t.timestampAuthorities?.length&&(e.timestampAuthorities=t.timestampAuthorities.map(r=>we.CertificateAuthority.toJSON(r))),e}};we.SigningConfig={fromJSON(t){return{mediaType:J0(t.mediaType)?globalThis.String(t.mediaType):"",caUrls:globalThis.Array.isArray(t?.caUrls)?t.caUrls.map(e=>we.Service.fromJSON(e)):[],oidcUrls:globalThis.Array.isArray(t?.oidcUrls)?t.oidcUrls.map(e=>we.Service.fromJSON(e)):[],rekorTlogUrls:globalThis.Array.isArray(t?.rekorTlogUrls)?t.rekorTlogUrls.map(e=>we.Service.fromJSON(e)):[],rekorTlogConfig:J0(t.rekorTlogConfig)?we.ServiceConfiguration.fromJSON(t.rekorTlogConfig):void 0,tsaUrls:globalThis.Array.isArray(t?.tsaUrls)?t.tsaUrls.map(e=>we.Service.fromJSON(e)):[],tsaConfig:J0(t.tsaConfig)?we.ServiceConfiguration.fromJSON(t.tsaConfig):void 0}},toJSON(t){let e={};return t.mediaType!==""&&(e.mediaType=t.mediaType),t.caUrls?.length&&(e.caUrls=t.caUrls.map(r=>we.Service.toJSON(r))),t.oidcUrls?.length&&(e.oidcUrls=t.oidcUrls.map(r=>we.Service.toJSON(r))),t.rekorTlogUrls?.length&&(e.rekorTlogUrls=t.rekorTlogUrls.map(r=>we.Service.toJSON(r))),t.rekorTlogConfig!==void 0&&(e.rekorTlogConfig=we.ServiceConfiguration.toJSON(t.rekorTlogConfig)),t.tsaUrls?.length&&(e.tsaUrls=t.tsaUrls.map(r=>we.Service.toJSON(r))),t.tsaConfig!==void 0&&(e.tsaConfig=we.ServiceConfiguration.toJSON(t.tsaConfig)),e}};we.Service={fromJSON(t){return{url:J0(t.url)?globalThis.String(t.url):"",majorApiVersion:J0(t.majorApiVersion)?globalThis.Number(t.majorApiVersion):0,validFor:J0(t.validFor)?Dt.TimeRange.fromJSON(t.validFor):void 0,operator:J0(t.operator)?globalThis.String(t.operator):""}},toJSON(t){let e={};return t.url!==""&&(e.url=t.url),t.majorApiVersion!==0&&(e.majorApiVersion=Math.round(t.majorApiVersion)),t.validFor!==void 0&&(e.validFor=Dt.TimeRange.toJSON(t.validFor)),t.operator!==""&&(e.operator=t.operator),e}};we.ServiceConfiguration={fromJSON(t){return{selector:J0(t.selector)?_de(t.selector):0,count:J0(t.count)?globalThis.Number(t.count):0}},toJSON(t){let e={};return t.selector!==0&&(e.selector=Pde(t.selector)),t.count!==0&&(e.count=Math.round(t.count)),e}};we.ClientTrustConfig={fromJSON(t){return{mediaType:J0(t.mediaType)?globalThis.String(t.mediaType):"",trustedRoot:J0(t.trustedRoot)?we.TrustedRoot.fromJSON(t.trustedRoot):void 0,signingConfig:J0(t.signingConfig)?we.SigningConfig.fromJSON(t.signingConfig):void 0}},toJSON(t){let e={};return t.mediaType!==""&&(e.mediaType=t.mediaType),t.trustedRoot!==void 0&&(e.trustedRoot=we.TrustedRoot.toJSON(t.trustedRoot)),t.signingConfig!==void 0&&(e.signingConfig=we.SigningConfig.toJSON(t.signingConfig)),e}};function J0(t){return t!=null}i(J0,"isSet")});var Gde=h(Se=>{"use strict";Object.defineProperty(Se,"__esModule",{value:!0});Se.Input=Se.Artifact=Se.ArtifactVerificationOptions_ObserverTimestampOptions=Se.ArtifactVerificationOptions_TlogIntegratedTimestampOptions=Se.ArtifactVerificationOptions_TimestampAuthorityOptions=Se.ArtifactVerificationOptions_CtlogOptions=Se.ArtifactVerificationOptions_TlogOptions=Se.ArtifactVerificationOptions=Se.PublicKeyIdentities=Se.CertificateIdentities=Se.CertificateIdentity=void 0;var kde=A_(),Lc=za(),Ude=l_();Se.CertificateIdentity={fromJSON(t){return{issuer:B0(t.issuer)?globalThis.String(t.issuer):"",san:B0(t.san)?Lc.SubjectAlternativeName.fromJSON(t.san):void 0,oids:globalThis.Array.isArray(t?.oids)?t.oids.map(e=>Lc.ObjectIdentifierValuePair.fromJSON(e)):[]}},toJSON(t){let e={};return t.issuer!==""&&(e.issuer=t.issuer),t.san!==void 0&&(e.san=Lc.SubjectAlternativeName.toJSON(t.san)),t.oids?.length&&(e.oids=t.oids.map(r=>Lc.ObjectIdentifierValuePair.toJSON(r))),e}};Se.CertificateIdentities={fromJSON(t){return{identities:globalThis.Array.isArray(t?.identities)?t.identities.map(e=>Se.CertificateIdentity.fromJSON(e)):[]}},toJSON(t){let e={};return t.identities?.length&&(e.identities=t.identities.map(r=>Se.CertificateIdentity.toJSON(r))),e}};Se.PublicKeyIdentities={fromJSON(t){return{publicKeys:globalThis.Array.isArray(t?.publicKeys)?t.publicKeys.map(e=>Lc.PublicKey.fromJSON(e)):[]}},toJSON(t){let e={};return t.publicKeys?.length&&(e.publicKeys=t.publicKeys.map(r=>Lc.PublicKey.toJSON(r))),e}};Se.ArtifactVerificationOptions={fromJSON(t){return{signers:B0(t.certificateIdentities)?{$case:"certificateIdentities",certificateIdentities:Se.CertificateIdentities.fromJSON(t.certificateIdentities)}:B0(t.publicKeys)?{$case:"publicKeys",publicKeys:Se.PublicKeyIdentities.fromJSON(t.publicKeys)}:void 0,tlogOptions:B0(t.tlogOptions)?Se.ArtifactVerificationOptions_TlogOptions.fromJSON(t.tlogOptions):void 0,ctlogOptions:B0(t.ctlogOptions)?Se.ArtifactVerificationOptions_CtlogOptions.fromJSON(t.ctlogOptions):void 0,tsaOptions:B0(t.tsaOptions)?Se.ArtifactVerificationOptions_TimestampAuthorityOptions.fromJSON(t.tsaOptions):void 0,integratedTsOptions:B0(t.integratedTsOptions)?Se.ArtifactVerificationOptions_TlogIntegratedTimestampOptions.fromJSON(t.integratedTsOptions):void 0,observerOptions:B0(t.observerOptions)?Se.ArtifactVerificationOptions_ObserverTimestampOptions.fromJSON(t.observerOptions):void 0}},toJSON(t){let e={};return t.signers?.$case==="certificateIdentities"?e.certificateIdentities=Se.CertificateIdentities.toJSON(t.signers.certificateIdentities):t.signers?.$case==="publicKeys"&&(e.publicKeys=Se.PublicKeyIdentities.toJSON(t.signers.publicKeys)),t.tlogOptions!==void 0&&(e.tlogOptions=Se.ArtifactVerificationOptions_TlogOptions.toJSON(t.tlogOptions)),t.ctlogOptions!==void 0&&(e.ctlogOptions=Se.ArtifactVerificationOptions_CtlogOptions.toJSON(t.ctlogOptions)),t.tsaOptions!==void 0&&(e.tsaOptions=Se.ArtifactVerificationOptions_TimestampAuthorityOptions.toJSON(t.tsaOptions)),t.integratedTsOptions!==void 0&&(e.integratedTsOptions=Se.ArtifactVerificationOptions_TlogIntegratedTimestampOptions.toJSON(t.integratedTsOptions)),t.observerOptions!==void 0&&(e.observerOptions=Se.ArtifactVerificationOptions_ObserverTimestampOptions.toJSON(t.observerOptions)),e}};Se.ArtifactVerificationOptions_TlogOptions={fromJSON(t){return{threshold:B0(t.threshold)?globalThis.Number(t.threshold):0,performOnlineVerification:B0(t.performOnlineVerification)?globalThis.Boolean(t.performOnlineVerification):!1,disable:B0(t.disable)?globalThis.Boolean(t.disable):!1}},toJSON(t){let e={};return t.threshold!==0&&(e.threshold=Math.round(t.threshold)),t.performOnlineVerification!==!1&&(e.performOnlineVerification=t.performOnlineVerification),t.disable!==!1&&(e.disable=t.disable),e}};Se.ArtifactVerificationOptions_CtlogOptions={fromJSON(t){return{threshold:B0(t.threshold)?globalThis.Number(t.threshold):0,disable:B0(t.disable)?globalThis.Boolean(t.disable):!1}},toJSON(t){let e={};return t.threshold!==0&&(e.threshold=Math.round(t.threshold)),t.disable!==!1&&(e.disable=t.disable),e}};Se.ArtifactVerificationOptions_TimestampAuthorityOptions={fromJSON(t){return{threshold:B0(t.threshold)?globalThis.Number(t.threshold):0,disable:B0(t.disable)?globalThis.Boolean(t.disable):!1}},toJSON(t){let e={};return t.threshold!==0&&(e.threshold=Math.round(t.threshold)),t.disable!==!1&&(e.disable=t.disable),e}};Se.ArtifactVerificationOptions_TlogIntegratedTimestampOptions={fromJSON(t){return{threshold:B0(t.threshold)?globalThis.Number(t.threshold):0,disable:B0(t.disable)?globalThis.Boolean(t.disable):!1}},toJSON(t){let e={};return t.threshold!==0&&(e.threshold=Math.round(t.threshold)),t.disable!==!1&&(e.disable=t.disable),e}};Se.ArtifactVerificationOptions_ObserverTimestampOptions={fromJSON(t){return{threshold:B0(t.threshold)?globalThis.Number(t.threshold):0,disable:B0(t.disable)?globalThis.Boolean(t.disable):!1}},toJSON(t){let e={};return t.threshold!==0&&(e.threshold=Math.round(t.threshold)),t.disable!==!1&&(e.disable=t.disable),e}};Se.Artifact={fromJSON(t){return{data:B0(t.artifactUri)?{$case:"artifactUri",artifactUri:globalThis.String(t.artifactUri)}:B0(t.artifact)?{$case:"artifact",artifact:Buffer.from(Dp0(t.artifact))}:B0(t.artifactDigest)?{$case:"artifactDigest",artifactDigest:Lc.HashOutput.fromJSON(t.artifactDigest)}:void 0}},toJSON(t){let e={};return t.data?.$case==="artifactUri"?e.artifactUri=t.data.artifactUri:t.data?.$case==="artifact"?e.artifact=Ip0(t.data.artifact):t.data?.$case==="artifactDigest"&&(e.artifactDigest=Lc.HashOutput.toJSON(t.data.artifactDigest)),e}};Se.Input={fromJSON(t){return{artifactTrustRoot:B0(t.artifactTrustRoot)?Ude.TrustedRoot.fromJSON(t.artifactTrustRoot):void 0,artifactVerificationOptions:B0(t.artifactVerificationOptions)?Se.ArtifactVerificationOptions.fromJSON(t.artifactVerificationOptions):void 0,bundle:B0(t.bundle)?kde.Bundle.fromJSON(t.bundle):void 0,artifact:B0(t.artifact)?Se.Artifact.fromJSON(t.artifact):void 0}},toJSON(t){let e={};return t.artifactTrustRoot!==void 0&&(e.artifactTrustRoot=Ude.TrustedRoot.toJSON(t.artifactTrustRoot)),t.artifactVerificationOptions!==void 0&&(e.artifactVerificationOptions=Se.ArtifactVerificationOptions.toJSON(t.artifactVerificationOptions)),t.bundle!==void 0&&(e.bundle=kde.Bundle.toJSON(t.bundle)),t.artifact!==void 0&&(e.artifact=Se.Artifact.toJSON(t.artifact)),e}};function Dp0(t){return Uint8Array.from(globalThis.Buffer.from(t,"base64"))}i(Dp0,"bytesFromBase64");function Ip0(t){return globalThis.Buffer.from(t).toString("base64")}i(Ip0,"base64FromBytes");function B0(t){return t!=null}i(B0,"isSet")});var td=h(jn=>{"use strict";var Rp0=jn&&jn.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var o=Object.getOwnPropertyDescriptor(e,r);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:i(function(){return e[r]},"get")}),Object.defineProperty(t,n,o)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),ed=jn&&jn.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&Rp0(e,t,r)};Object.defineProperty(jn,"__esModule",{value:!0});ed(mB(),jn);ed(A_(),jn);ed(za(),jn);ed(p_(),jn);ed(l_(),jn);ed(Gde(),jn)});var EB=h(Er=>{"use strict";Object.defineProperty(Er,"__esModule",{value:!0});Er.BUNDLE_V03_MEDIA_TYPE=Er.BUNDLE_V03_LEGACY_MEDIA_TYPE=Er.BUNDLE_V02_MEDIA_TYPE=Er.BUNDLE_V01_MEDIA_TYPE=void 0;Er.isBundleWithCertificateChain=Np0;Er.isBundleWithPublicKey=wp0;Er.isBundleWithMessageSignature=Sp0;Er.isBundleWithDsseEnvelope=Fp0;Er.BUNDLE_V01_MEDIA_TYPE="application/vnd.dev.sigstore.bundle+json;version=0.1";Er.BUNDLE_V02_MEDIA_TYPE="application/vnd.dev.sigstore.bundle+json;version=0.2";Er.BUNDLE_V03_LEGACY_MEDIA_TYPE="application/vnd.dev.sigstore.bundle+json;version=0.3";Er.BUNDLE_V03_MEDIA_TYPE="application/vnd.dev.sigstore.bundle.v0.3+json";function Np0(t){return t.verificationMaterial.content.$case==="x509CertificateChain"}i(Np0,"isBundleWithCertificateChain");function wp0(t){return t.verificationMaterial.content.$case==="publicKey"}i(wp0,"isBundleWithPublicKey");function Sp0(t){return t.content.$case==="messageSignature"}i(Sp0,"isBundleWithMessageSignature");function Fp0(t){return t.content.$case==="dsseEnvelope"}i(Fp0,"isBundleWithDsseEnvelope")});var Xde=h(yB=>{"use strict";Object.defineProperty(yB,"__esModule",{value:!0});yB.toMessageSignatureBundle=xp0;yB.toDSSEBundle=vp0;var Wp0=td(),CB=EB();function xp0(t){return{mediaType:t.certificateChain?CB.BUNDLE_V02_MEDIA_TYPE:CB.BUNDLE_V03_MEDIA_TYPE,content:{$case:"messageSignature",messageSignature:{messageDigest:{algorithm:Wp0.HashAlgorithm.SHA2_256,digest:t.digest},signature:t.signature}},verificationMaterial:Hde(t)}}i(xp0,"toMessageSignatureBundle");function vp0(t){return{mediaType:t.certificateChain?CB.BUNDLE_V02_MEDIA_TYPE:CB.BUNDLE_V03_MEDIA_TYPE,content:{$case:"dsseEnvelope",dsseEnvelope:Tp0(t)},verificationMaterial:Hde(t)}}i(vp0,"toDSSEBundle");function Tp0(t){return{payloadType:t.artifactType,payload:t.artifact,signatures:[Lp0(t)]}}i(Tp0,"toEnvelope");function Lp0(t){return{keyid:t.keyHint||"",sig:t.signature}}i(Lp0,"toSignature");function Hde(t){return{content:Qp0(t),tlogEntries:[],timestampVerificationData:{rfc3161Timestamps:[]}}}i(Hde,"toVerificationMaterial");function Qp0(t){return t.certificate?t.certificateChain?{$case:"x509CertificateChain",x509CertificateChain:{certificates:[{rawBytes:t.certificate}]}}:{$case:"certificate",certificate:{rawBytes:t.certificate}}:{$case:"publicKey",publicKey:{hint:t.keyHint||""}}}i(Qp0,"toKeyContent")});var b_=h(BB=>{"use strict";Object.defineProperty(BB,"__esModule",{value:!0});BB.ValidationError=void 0;var d_=class extends Error{static{i(this,"ValidationError")}fields;constructor(e,r){super(e),this.fields=r}};BB.ValidationError=d_});var f_=h(Pp=>{"use strict";Object.defineProperty(Pp,"__esModule",{value:!0});Pp.assertBundle=_p0;Pp.assertBundleV01=Vde;Pp.isBundleV01=Pp0;Pp.assertBundleV02=kp0;Pp.assertBundleLatest=Up0;var qB=b_();function _p0(t){let e=DB(t);if(e.length>0)throw new qB.ValidationError("invalid bundle",e)}i(_p0,"assertBundle");function Vde(t){let e=[];if(e.push(...DB(t)),e.push(...Gp0(t)),e.length>0)throw new qB.ValidationError("invalid v0.1 bundle",e)}i(Vde,"assertBundleV01");function Pp0(t){try{return Vde(t),!0}catch{return!1}}i(Pp0,"isBundleV01");function kp0(t){let e=[];if(e.push(...DB(t)),e.push(...Yde(t)),e.length>0)throw new qB.ValidationError("invalid v0.2 bundle",e)}i(kp0,"assertBundleV02");function Up0(t){let e=[];if(e.push(...DB(t)),e.push(...Yde(t)),e.push(...Hp0(t)),e.length>0)throw new qB.ValidationError("invalid bundle",e)}i(Up0,"assertBundleLatest");function DB(t){let e=[];if((t.mediaType===void 0||!t.mediaType.match(/^application\/vnd\.dev\.sigstore\.bundle\+json;version=\d\.\d/)&&!t.mediaType.match(/^application\/vnd\.dev\.sigstore\.bundle\.v\d\.\d\+json/))&&e.push("mediaType"),t.content===void 0)e.push("content");else switch(t.content.$case){case"messageSignature":t.content.messageSignature.messageDigest===void 0?e.push("content.messageSignature.messageDigest"):t.content.messageSignature.messageDigest.digest.length===0&&e.push("content.messageSignature.messageDigest.digest"),t.content.messageSignature.signature.length===0&&e.push("content.messageSignature.signature");break;case"dsseEnvelope":t.content.dsseEnvelope.payload.length===0&&e.push("content.dsseEnvelope.payload"),t.content.dsseEnvelope.signatures.length!==1?e.push("content.dsseEnvelope.signatures"):t.content.dsseEnvelope.signatures[0].sig.length===0&&e.push("content.dsseEnvelope.signatures[0].sig");break}if(t.verificationMaterial===void 0)e.push("verificationMaterial");else{if(t.verificationMaterial.content===void 0)e.push("verificationMaterial.content");else switch(t.verificationMaterial.content.$case){case"x509CertificateChain":t.verificationMaterial.content.x509CertificateChain.certificates.length===0&&e.push("verificationMaterial.content.x509CertificateChain.certificates"),t.verificationMaterial.content.x509CertificateChain.certificates.forEach((r,n)=>{r.rawBytes.length===0&&e.push(`verificationMaterial.content.x509CertificateChain.certificates[${n}].rawBytes`)});break;case"certificate":t.verificationMaterial.content.certificate.rawBytes.length===0&&e.push("verificationMaterial.content.certificate.rawBytes");break}t.verificationMaterial.tlogEntries===void 0?e.push("verificationMaterial.tlogEntries"):t.verificationMaterial.tlogEntries.length>0&&t.verificationMaterial.tlogEntries.forEach((r,n)=>{r.logId===void 0&&e.push(`verificationMaterial.tlogEntries[${n}].logId`),r.kindVersion===void 0&&e.push(`verificationMaterial.tlogEntries[${n}].kindVersion`)})}return e}i(DB,"validateBundleBase");function Gp0(t){let e=[];return t.verificationMaterial&&t.verificationMaterial.tlogEntries?.length>0&&t.verificationMaterial.tlogEntries.forEach((r,n)=>{r.inclusionPromise===void 0&&e.push(`verificationMaterial.tlogEntries[${n}].inclusionPromise`)}),e}i(Gp0,"validateInclusionPromise");function Yde(t){let e=[];return t.verificationMaterial&&t.verificationMaterial.tlogEntries?.length>0&&t.verificationMaterial.tlogEntries.forEach((r,n)=>{r.inclusionProof===void 0?e.push(`verificationMaterial.tlogEntries[${n}].inclusionProof`):r.inclusionProof.checkpoint===void 0&&e.push(`verificationMaterial.tlogEntries[${n}].inclusionProof.checkpoint`)}),e}i(Yde,"validateInclusionProof");function Hp0(t){let e=[];return t.verificationMaterial?.content?.$case==="x509CertificateChain"&&e.push("verificationMaterial.content.$case"),e}i(Hp0,"validateNoCertificateChain")});var jde=h(Zs=>{"use strict";Object.defineProperty(Zs,"__esModule",{value:!0});Zs.envelopeToJSON=Zs.envelopeFromJSON=Zs.bundleToJSON=Zs.bundleFromJSON=void 0;var IB=td(),Jde=EB(),M_=f_(),Xp0=i(t=>{let e=IB.Bundle.fromJSON(t);switch(e.mediaType){case Jde.BUNDLE_V01_MEDIA_TYPE:(0,M_.assertBundleV01)(e);break;case Jde.BUNDLE_V02_MEDIA_TYPE:(0,M_.assertBundleV02)(e);break;default:(0,M_.assertBundleLatest)(e);break}return e},"bundleFromJSON");Zs.bundleFromJSON=Xp0;var Vp0=i(t=>IB.Bundle.toJSON(t),"bundleToJSON");Zs.bundleToJSON=Vp0;var Yp0=i(t=>IB.Envelope.fromJSON(t),"envelopeFromJSON");Zs.envelopeFromJSON=Yp0;var Jp0=i(t=>IB.Envelope.toJSON(t),"envelopeToJSON");Zs.envelopeToJSON=Jp0});var h_=h(Pe=>{"use strict";Object.defineProperty(Pe,"__esModule",{value:!0});Pe.isBundleV01=Pe.assertBundleV02=Pe.assertBundleV01=Pe.assertBundleLatest=Pe.assertBundle=Pe.envelopeToJSON=Pe.envelopeFromJSON=Pe.bundleToJSON=Pe.bundleFromJSON=Pe.ValidationError=Pe.isBundleWithPublicKey=Pe.isBundleWithMessageSignature=Pe.isBundleWithDsseEnvelope=Pe.isBundleWithCertificateChain=Pe.BUNDLE_V03_MEDIA_TYPE=Pe.BUNDLE_V03_LEGACY_MEDIA_TYPE=Pe.BUNDLE_V02_MEDIA_TYPE=Pe.BUNDLE_V01_MEDIA_TYPE=Pe.toMessageSignatureBundle=Pe.toDSSEBundle=void 0;var $de=Xde();Object.defineProperty(Pe,"toDSSEBundle",{enumerable:!0,get:i(function(){return $de.toDSSEBundle},"get")});Object.defineProperty(Pe,"toMessageSignatureBundle",{enumerable:!0,get:i(function(){return $de.toMessageSignatureBundle},"get")});var Qc=EB();Object.defineProperty(Pe,"BUNDLE_V01_MEDIA_TYPE",{enumerable:!0,get:i(function(){return Qc.BUNDLE_V01_MEDIA_TYPE},"get")});Object.defineProperty(Pe,"BUNDLE_V02_MEDIA_TYPE",{enumerable:!0,get:i(function(){return Qc.BUNDLE_V02_MEDIA_TYPE},"get")});Object.defineProperty(Pe,"BUNDLE_V03_LEGACY_MEDIA_TYPE",{enumerable:!0,get:i(function(){return Qc.BUNDLE_V03_LEGACY_MEDIA_TYPE},"get")});Object.defineProperty(Pe,"BUNDLE_V03_MEDIA_TYPE",{enumerable:!0,get:i(function(){return Qc.BUNDLE_V03_MEDIA_TYPE},"get")});Object.defineProperty(Pe,"isBundleWithCertificateChain",{enumerable:!0,get:i(function(){return Qc.isBundleWithCertificateChain},"get")});Object.defineProperty(Pe,"isBundleWithDsseEnvelope",{enumerable:!0,get:i(function(){return Qc.isBundleWithDsseEnvelope},"get")});Object.defineProperty(Pe,"isBundleWithMessageSignature",{enumerable:!0,get:i(function(){return Qc.isBundleWithMessageSignature},"get")});Object.defineProperty(Pe,"isBundleWithPublicKey",{enumerable:!0,get:i(function(){return Qc.isBundleWithPublicKey},"get")});var jp0=b_();Object.defineProperty(Pe,"ValidationError",{enumerable:!0,get:i(function(){return jp0.ValidationError},"get")});var RB=jde();Object.defineProperty(Pe,"bundleFromJSON",{enumerable:!0,get:i(function(){return RB.bundleFromJSON},"get")});Object.defineProperty(Pe,"bundleToJSON",{enumerable:!0,get:i(function(){return RB.bundleToJSON},"get")});Object.defineProperty(Pe,"envelopeFromJSON",{enumerable:!0,get:i(function(){return RB.envelopeFromJSON},"get")});Object.defineProperty(Pe,"envelopeToJSON",{enumerable:!0,get:i(function(){return RB.envelopeToJSON},"get")});var Yh=f_();Object.defineProperty(Pe,"assertBundle",{enumerable:!0,get:i(function(){return Yh.assertBundle},"get")});Object.defineProperty(Pe,"assertBundleLatest",{enumerable:!0,get:i(function(){return Yh.assertBundleLatest},"get")});Object.defineProperty(Pe,"assertBundleV01",{enumerable:!0,get:i(function(){return Yh.assertBundleV01},"get")});Object.defineProperty(Pe,"assertBundleV02",{enumerable:!0,get:i(function(){return Yh.assertBundleV02},"get")});Object.defineProperty(Pe,"isBundleV01",{enumerable:!0,get:i(function(){return Yh.isBundleV01},"get")})});var Zde=h(Jh=>{"use strict";var Kde=Jh&&Jh.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Jh,"__esModule",{value:!0});Jh.appDataPath=Kp0;var $p0=Kde(require("os")),rd=Kde(require("path"));function Kp0(t){let e=$p0.default.homedir();switch(process.platform){case"darwin":{let r=rd.default.join(e,"Library","Application Support");return rd.default.join(r,t)}case"win32":{let r=process.env.LOCALAPPDATA||rd.default.join(e,"AppData","Local");return rd.default.join(r,t,"Data")}default:{let r=process.env.XDG_DATA_HOME||rd.default.join(e,".local","share");return rd.default.join(r,t)}}}i(Kp0,"appDataPath")});var ei=h(Cr=>{"use strict";Object.defineProperty(Cr,"__esModule",{value:!0});Cr.UnsupportedAlgorithmError=Cr.CryptoError=Cr.LengthOrHashMismatchError=Cr.UnsignedMetadataError=Cr.RepositoryError=Cr.ValueError=void 0;var m_=class extends Error{static{i(this,"ValueError")}};Cr.ValueError=m_;var jh=class extends Error{static{i(this,"RepositoryError")}};Cr.RepositoryError=jh;var z_=class extends jh{static{i(this,"UnsignedMetadataError")}};Cr.UnsignedMetadataError=z_;var g_=class extends jh{static{i(this,"LengthOrHashMismatchError")}};Cr.LengthOrHashMismatchError=g_;var NB=class extends Error{static{i(this,"CryptoError")}};Cr.CryptoError=NB;var O_=class extends NB{static{i(this,"UnsupportedAlgorithmError")}};Cr.UnsupportedAlgorithmError=O_});var tbe=h(_c=>{"use strict";Object.defineProperty(_c,"__esModule",{value:!0});_c.isDefined=Zp0;_c.isObject=ebe;_c.isStringArray=eA0;_c.isObjectArray=tA0;_c.isStringRecord=rA0;_c.isObjectRecord=nA0;function Zp0(t){return t!==void 0}i(Zp0,"isDefined");function ebe(t){return typeof t=="object"&&t!==null}i(ebe,"isObject");function eA0(t){return Array.isArray(t)&&t.every(e=>typeof e=="string")}i(eA0,"isStringArray");function tA0(t){return Array.isArray(t)&&t.every(ebe)}i(tA0,"isObjectArray");function rA0(t){return typeof t=="object"&&t!==null&&Object.keys(t).every(e=>typeof e=="string")&&Object.values(t).every(e=>typeof e=="string")}i(rA0,"isStringRecord");function nA0(t){return typeof t=="object"&&t!==null&&Object.keys(t).every(e=>typeof e=="string")&&Object.values(t).every(e=>typeof e=="object"&&e!==null)}i(nA0,"isObjectRecord")});var C_=h((Mp1,nbe)=>{function E_(t){let e=[];if(typeof t=="string")e.push(rbe(t));else if(typeof t=="boolean")e.push(JSON.stringify(t));else if(Number.isInteger(t))e.push(JSON.stringify(t));else if(t===null)e.push(JSON.stringify(t));else if(Array.isArray(t)){e.push("[");let r=!0;t.forEach(n=>{r||e.push(","),r=!1,e.push(E_(n))}),e.push("]")}else if(typeof t=="object"){e.push("{");let r=!0;Object.keys(t).sort().forEach(n=>{r||e.push(","),r=!1,e.push(rbe(n)),e.push(":"),e.push(E_(t[n]))}),e.push("}")}else throw new TypeError("cannot encode "+t.toString());return e.join("")}i(E_,"canonicalize");function rbe(t){return'"'+t.replace(/\\/g,"\\\\").replace(/"/g,'\\"')+'"'}i(rbe,"canonicalizeString");nbe.exports={canonicalize:E_}});var obe=h(nd=>{"use strict";var oA0=nd&&nd.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(nd,"__esModule",{value:!0});nd.verifySignature=void 0;var sA0=C_(),iA0=oA0(require("crypto")),aA0=i((t,e,r)=>{let n=Buffer.from((0,sA0.canonicalize)(t));return iA0.default.verify(void 0,n,e,Buffer.from(r,"hex"))},"verifySignature");nd.verifySignature=aA0});var xo=h($n=>{"use strict";var cA0=$n&&$n.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var o=Object.getOwnPropertyDescriptor(e,r);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:i(function(){return e[r]},"get")}),Object.defineProperty(t,n,o)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),uA0=$n&&$n.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),sbe=$n&&$n.__importStar||(function(){var t=i(function(e){return t=Object.getOwnPropertyNames||function(r){var n=[];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[n.length]=o);return n},t(e)},"ownKeys");return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n=t(e),o=0;o=0?u:p}n.length&&a!==void 0&&(c=[s,a])}return c},"range");Up.range=NA0});var Bbe=h(id=>{"use strict";Object.defineProperty(id,"__esModule",{value:!0});id.EXPANSION_MAX=void 0;id.expand=UA0;var zbe=mbe(),gbe="\0SLASH"+Math.random()+"\0",Obe="\0OPEN"+Math.random()+"\0",W_="\0CLOSE"+Math.random()+"\0",Ebe="\0COMMA"+Math.random()+"\0",Cbe="\0PERIOD"+Math.random()+"\0",wA0=new RegExp(gbe,"g"),SA0=new RegExp(Obe,"g"),FA0=new RegExp(W_,"g"),WA0=new RegExp(Ebe,"g"),xA0=new RegExp(Cbe,"g"),vA0=/\\\\/g,TA0=/\\{/g,LA0=/\\}/g,QA0=/\\,/g,_A0=/\\\./g;id.EXPANSION_MAX=1e5;function F_(t){return isNaN(t)?t.charCodeAt(0):parseInt(t,10)}i(F_,"numeric");function PA0(t){return t.replace(vA0,gbe).replace(TA0,Obe).replace(LA0,W_).replace(QA0,Ebe).replace(_A0,Cbe)}i(PA0,"escapeBraces");function kA0(t){return t.replace(wA0,"\\").replace(SA0,"{").replace(FA0,"}").replace(WA0,",").replace(xA0,".")}i(kA0,"unescapeBraces");function ybe(t){if(!t)return[""];let e=[],r=(0,zbe.balanced)("{","}",t);if(!r)return t.split(",");let{pre:n,body:o,post:s}=r,a=n.split(",");a[a.length-1]+="{"+o+"}";let c=ybe(s);return s.length&&(a[a.length-1]+=c.shift(),a.push.apply(a,c)),e.push.apply(e,a),e}i(ybe,"parseCommaParts");function UA0(t,e={}){if(!t)return[];let{max:r=id.EXPANSION_MAX}=e;return t.slice(0,2)==="{}"&&(t="\\{\\}"+t.slice(2)),rm(PA0(t),r,!0).map(kA0)}i(UA0,"expand");function GA0(t){return"{"+t+"}"}i(GA0,"embrace");function HA0(t){return/^-?0\d/.test(t)}i(HA0,"isPadded");function XA0(t,e){return t<=e}i(XA0,"lte");function VA0(t,e){return t>=e}i(VA0,"gte");function rm(t,e,r){let n=[];for(;;){let o=(0,zbe.balanced)("{","}",t);if(!o)return[t];let s=o.pre;if(/\$$/.test(o.pre)){let M=o.post.length?rm(o.post,e,!1):[""];for(let z=0;z{"use strict";Object.defineProperty(TB,"__esModule",{value:!0});TB.unescape=void 0;var ZA0=i((t,{windowsPathsNoEscape:e=!1,magicalBraces:r=!0}={})=>r?e?t.replace(/\[([^/\\])\]/g,"$1"):t.replace(/((?!\\).|^)\[([^/\\])\]/g,"$1$2").replace(/\\([^/])/g,"$1"):e?t.replace(/\[([^/\\{}])\]/g,"$1"):t.replace(/((?!\\).|^)\[([^/\\{}])\]/g,"$1$2").replace(/\\([^/{}])/g,"$1"),"unescape");TB.unescape=ZA0});var T_=h(kB=>{"use strict";var yr;Object.defineProperty(kB,"__esModule",{value:!0});kB.AST=void 0;var el0=Ibe(),QB=LB(),tl0=new Set(["!","?","+","*","@"]),x_=i(t=>tl0.has(t),"isExtglobType"),Rbe=i(t=>x_(t.type),"isExtglobAST"),rl0=new Map([["!",["@"]],["?",["?","@"]],["@",["@"]],["*",["*","+","?","@"]],["+",["+","@"]]]),nl0=new Map([["!",["?"]],["@",["?"]],["+",["?","*"]]]),ol0=new Map([["!",["?","@"]],["?",["?","@"]],["@",["?","@"]],["*",["*","+","?","@"]],["+",["+","@","?","*"]]]),Nbe=new Map([["!",new Map([["!","@"]])],["?",new Map([["*","*"],["+","*"]])],["@",new Map([["!","!"],["?","?"],["@","@"],["*","*"],["+","+"]])],["+",new Map([["?","*"],["*","*"]])]]),sl0="(?!(?:^|/)\\.\\.?(?:$|/))",_B="(?!\\.)",il0=new Set(["[","."]),al0=new Set(["..","."]),cl0=new Set("().*{}+?[]^$\\!"),ul0=i(t=>t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),"regExpEscape"),v_="[^/]",wbe=v_+"*?",Sbe=v_+"+?",pl0=0,PB=class{static{i(this,"AST")}type;#e;#t;#n=!1;#r=[];#o;#s;#a;#i=!1;#u;#c;#p=!1;id=++pl0;get depth(){return(this.#o?.depth??-1)+1}[Symbol.for("nodejs.util.inspect.custom")](){return{"@@type":"AST",id:this.id,type:this.type,root:this.#e.id,parent:this.#o?.id,depth:this.depth,partsLength:this.#r.length,parts:this.#r}}constructor(e,r,n={}){this.type=e,e&&(this.#t=!0),this.#o=r,this.#e=this.#o?this.#o.#e:this,this.#u=this.#e===this?n:this.#e.#u,this.#a=this.#e===this?[]:this.#e.#a,e==="!"&&!this.#e.#i&&this.#a.push(this),this.#s=this.#o?this.#o.#r.length:0}get hasMagic(){if(this.#t!==void 0)return this.#t;for(let e of this.#r)if(typeof e!="string"&&(e.type||e.hasMagic))return this.#t=!0;return this.#t}toString(){return this.#c!==void 0?this.#c:this.type?this.#c=this.type+"("+this.#r.map(e=>String(e)).join("|")+")":this.#c=this.#r.map(e=>String(e)).join("")}#h(){if(this!==this.#e)throw new Error("should only call on root");if(this.#i)return this;this.toString(),this.#i=!0;let e;for(;e=this.#a.pop();){if(e.type!=="!")continue;let r=e,n=r.#o;for(;n;){for(let o=r.#s+1;!n.type&&o{"use strict";oo.__esModule=!0;oo.SourceLocation=zm0;oo.id=gm0;oo.stripFlags=Om0;oo.stripComment=Em0;oo.preparePath=Cm0;oo.prepareMustache=ym0;oo.prepareRawBlock=Bm0;oo.prepareBlock=qm0;oo.prepareProgram=Dm0;oo.preparePartialBlock=Im0;function hm0(t){return t&&t.__esModule?t:{default:t}}i(hm0,"_interopRequireDefault");var mm0=no(),d7=hm0(mm0);function b7(t,e){if(e=e.path?e.path.original:e,t.path.original!==e){var r={loc:t.path.loc};throw new d7.default(t.path.original+" doesn't match "+e,r)}}i(b7,"validateClose");function zm0(t,e){this.source=t,this.start={line:e.first_line,column:e.first_column},this.end={line:e.last_line,column:e.last_column}}i(zm0,"SourceLocation");function gm0(t){return/^\[.*\]$/.test(t)?t.substring(1,t.length-1):t}i(gm0,"id");function Om0(t,e){return{open:t.charAt(2)==="~",close:e.charAt(e.length-3)==="~"}}i(Om0,"stripFlags");function Em0(t){return t.replace(/^\{\{~?!-?-?/,"").replace(/-?-?~?\}\}$/,"")}i(Em0,"stripComment");function Cm0(t,e,r){r=this.locInfo(r);for(var n=t?"@":"",o=[],s=0,a=0,c=e.length;a{"use strict";PD.__esModule=!0;function ame(t){return t&&t.__esModule?t:{default:t}}i(ame,"_interopRequireDefault");var sme=BD(),Ym0=no(),O7=ame(Ym0),Jm0=Nt(),cme=ome(),ime=ame(cme);function kd(t){this.value=t}i(kd,"Literal");function Ud(){}i(Ud,"JavaScriptCompiler");Ud.prototype={nameLookup:i(function(e,r){return this.internalNameLookup(e,r)},"nameLookup"),depthedLookup:i(function(e){return[this.aliasable("container.lookup"),"(depths, ",this.quotedString(e),")"]},"depthedLookup"),compilerInfo:i(function(){var e=sme.COMPILER_REVISION,r=sme.REVISION_CHANGES[e];return[e,r]},"compilerInfo"),appendToBuffer:i(function(e,r,n){return Jm0.isArray(e)||(e=[e]),e=this.source.wrap(e,r),this.environment.isSimple?["return ",e,";"]:n?["buffer += ",e,";"]:(e.appendToBuffer=!0,e)},"appendToBuffer"),initializeBuffer:i(function(){return this.quotedString("")},"initializeBuffer"),internalNameLookup:i(function(e,r){return this.lookupPropertyFunctionIsUsed=!0,["lookupProperty(",e,",",this.quotedString(r),")"]},"internalNameLookup"),lookupPropertyFunctionIsUsed:!1,compile:i(function(e,r,n,o){this.environment=e,this.options=r,this.stringParams=this.options.stringParams,this.trackIds=this.options.trackIds,this.precompile=!o,this.name=this.environment.name,this.isChild=!!n,this.context=n||{decorators:[],programs:[],environments:[]},this.preamble(),this.stackSlot=0,this.stackVars=[],this.aliases={},this.registers={list:[]},this.hashes=[],this.compileStack=[],this.inlineStack=[],this.blockParams=[],this.compileChildren(e,r),this.useDepths=this.useDepths||e.useDepths||e.useDecorators||this.options.compat,this.useBlockParams=this.useBlockParams||e.useBlockParams;var s=e.opcodes,a=void 0,c=void 0,u=void 0,p=void 0;for(u=0,p=s.length;u{var GD=bme().default,hme=fme();GD.PrintVisitor=hme.PrintVisitor;GD.print=hme.print;mme.exports=GD;function Mme(t,e){var r=require("fs"),n=r.readFileSync(e,"utf8");t.exports=GD.compile(n)}i(Mme,"extension");typeof require<"u"&&require.extensions&&(require.extensions[".handlebars"]=Mme,require.extensions[".hbs"]=Mme)});var gme=h((y7,Hd)=>{(function(t,e){typeof y7=="object"&&typeof Hd<"u"?Hd.exports=e():typeof define=="function"&&define.amd?define(e):t.moment=e()})(y7,(function(){"use strict";var t;function e(){return t.apply(null,arguments)}i(e,"hooks");function r(d){t=d}i(r,"setHookCallback");function n(d){return d instanceof Array||Object.prototype.toString.call(d)==="[object Array]"}i(n,"isArray");function o(d){return d!=null&&Object.prototype.toString.call(d)==="[object Object]"}i(o,"isObject");function s(d,f){return Object.prototype.hasOwnProperty.call(d,f)}i(s,"hasOwnProp");function a(d){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(d).length===0;var f;for(f in d)if(s(d,f))return!1;return!0}i(a,"isObjectEmpty");function c(d){return d===void 0}i(c,"isUndefined");function u(d){return typeof d=="number"||Object.prototype.toString.call(d)==="[object Number]"}i(u,"isNumber");function p(d){return d instanceof Date||Object.prototype.toString.call(d)==="[object Date]"}i(p,"isDate");function l(d,f){var m=[],g,C=d.length;for(g=0;g