var Eje=Object.create;var iB=Object.defineProperty;var yje=Object.getOwnPropertyDescriptor;var Cje=Object.getOwnPropertyNames;var Bje=Object.getPrototypeOf,Dje=Object.prototype.hasOwnProperty;var o=(t,e)=>iB(t,"name",{value:e,configurable:!0});var qje=(t,e)=>()=>(t&&(e=t(t=0)),e);var h=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),_se=(t,e)=>{for(var r in e)iB(t,r,{get:e[r],enumerable:!0})},Ije=(t,e,r,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of Cje(e))!Dje.call(t,n)&&n!==r&&iB(t,n,{get:()=>e[n],enumerable:!(s=yje(e,n))||s.enumerable});return t};var x=(t,e,r)=>(r=t!=null?Eje(Bje(t)):{},Ije(e||!t||!t.__esModule?iB(r,"default",{value:t,enumerable:!0}):r,t));var Hse=h(dh=>{"use strict";var ent=require("net"),Fje=require("tls"),fW=require("http"),kse=require("https"),Tje=require("events"),tnt=require("assert"),xje=require("util");dh.httpOverHttp=Wje;dh.httpsOverHttp=_je;dh.httpOverHttps=Lje;dh.httpsOverHttps=Qje;function Wje(t){var e=new uu(t);return e.request=fW.request,e}o(Wje,"httpOverHttp");function _je(t){var e=new uu(t);return e.request=fW.request,e.createSocket=Use,e.defaultPort=443,e}o(_je,"httpsOverHttp");function Lje(t){var e=new uu(t);return e.request=kse.request,e}o(Lje,"httpOverHttps");function Qje(t){var e=new uu(t);return e.request=kse.request,e.createSocket=Use,e.defaultPort=443,e}o(Qje,"httpsOverHttps");function uu(t){var e=this;e.options=t||{},e.proxyOptions=e.options.proxy||{},e.maxSockets=e.options.maxSockets||fW.Agent.defaultMaxSockets,e.requests=[],e.sockets=[],e.on("free",o(function(s,n,i,a){for(var c=Gse(n,i,a),u=0,p=e.requests.length;u
=this.maxSockets){i.requests.push(a);return}i.createSocket(a,function(c){c.on("free",u),c.on("close",p),c.on("agentRemove",p),e.onSocket(c);function u(){i.emit("free",c,a)}o(u,"onFree");function p(l){i.removeSocket(c),c.removeListener("free",u),c.removeListener("close",p),c.removeListener("agentRemove",p)}o(p,"onCloseOrRemove")})},"addRequest");uu.prototype.createSocket=o(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")),cl("making CONNECT request");var a=s.request(i);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}o(c,"onResponse");function u(A,d,b){process.nextTick(function(){p(A,d,b)})}o(u,"onUpgrade");function p(A,d,b){if(a.removeAllListeners(),d.removeAllListeners(),A.statusCode!==200){cl("tunneling socket could not be established, statusCode=%d",A.statusCode),d.destroy();var m=new Error("tunneling socket could not be established, statusCode="+A.statusCode);m.code="ECONNRESET",e.request.emit("error",m),s.removeSocket(n);return}if(b.length>0){cl("got illegal response body from proxy"),d.destroy();var m=new Error("got illegal response body from proxy");m.code="ECONNRESET",e.request.emit("error",m),s.removeSocket(n);return}return cl("tunneling connection has established"),s.sockets[s.sockets.indexOf(n)]=d,r(d)}o(p,"onConnect");function l(A){a.removeAllListeners(),cl(`tunneling socket could not be established, cause=%s
`,A.message,A.stack);var d=new Error("tunneling socket could not be established, cause="+A.message);d.code="ECONNRESET",e.request.emit("error",d),s.removeSocket(n)}o(l,"onError")},"createSocket");uu.prototype.removeSocket=o(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)})}},"removeSocket");function Use(t,e){var r=this;uu.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}),a=Fje.connect(0,i);r.sockets[r.sockets.indexOf(s)]=a,e(a)})}o(Use,"createSecureSocket");function Gse(t,e,r){return typeof t=="string"?{host:t,port:e,localAddress:r}:t}o(Gse,"toOptions");function hW(t){for(var e=1,r=arguments.length;e 0&&(s+=", "+n.join(", "));var i=0;Object.keys(this.aliases).forEach(function(u){var p=r.aliases[u];p.children&&p.referenceCount>1&&(s+=", alias"+ ++i+"="+u,p.children[0]="alias"+i)}),this.lookupPropertyFunctionIsUsed&&(s+=", "+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(s);return e?(a.push(c),Function.apply(this,a)):this.source.wrap(["function(",a.join(","),`) {
`,c,"}"])},"createFunctionContext"),mergeSource:o(function(e){var r=this.environment.isSimple,s=!this.forceBuffer,n=void 0,i=void 0,a=void 0,c=void 0;return this.source.each(function(u){u.appendToBuffer?(a?u.prepend(" + "):a=u,c=u):(a&&(i?a.prepend("buffer += "):n=!0,c.add(";"),a=c=void 0),i=!0,r||(s=!1))}),s?a?(a.prepend("return "),c.add(";")):i||this.source.push('return "";'):(e+=", buffer = "+(n?"":this.initializeBuffer()),a?(a.prepend("return buffer + "),c.add(";")):this.source.push("return buffer;")),e&&this.source.prepend("var "+e.substring(2)+(n?"":`;
`)),this.source.merge()},"mergeSource"),lookupPropertyFunctionVarDeclaration:o(function(){return`
lookupProperty = container.lookupProperty || function(parent, propertyName) {
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
return parent[propertyName];
}
return undefined
}
`.trim()},"lookupPropertyFunctionVarDeclaration"),blockValue:o(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))},"blockValue"),ambiguousBlockValue:o(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),"}"])},"ambiguousBlockValue"),appendContent:o(function(e){this.pendingContent?e=this.pendingContent+e:this.pendingLocation=this.source.currentLocation,this.pendingContent=e},"appendContent"),append:o(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:o(function(){this.pushSource(this.appendToBuffer([this.aliasable("container.escapeExpression"),"(",this.popStack(),")"]))},"appendEscaped"),getContext:o(function(e){this.lastContext=e},"getContext"),pushContext:o(function(){this.pushStackLiteral(this.contextName(this.lastContext))},"pushContext"),lookupOnContext:o(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)},"lookupOnContext"),lookupBlockParam:o(function(e,r){this.useBlockParams=!0,this.push(["blockParams[",e[0],"][",e[1],"]"]),this.resolvePath("context",r,1)},"lookupBlockParam"),lookupData:o(function(e,r,s){e?this.pushStackLiteral("container.data(data, "+e+")"):this.pushStackLiteral("data"),this.resolvePath("data",r,0,!0,s)},"lookupData"),resolvePath:o(function(e,r,s,n,i){var a=this;if(this.options.strict||this.options.assumeObjects){this.push(EB0(this.options.strict&&i,this,r,s,e));return}for(var c=r.length,u=o(function(l){a.replaceStack(function(A){var d=a.nameLookup(A,r[l],e);return n?[" && ",d]:[" != null ? ",d," : ",A]})},"_loop"),p=s;p2&&r[0]===239&&r[1]===187&&r[2]===191?3:0;return r.utf8Slice(n,s)}o(AL,"chunksDecode");function kae(t,e){if(t.length===0||e===0)return new Uint8Array(0);if(t.length===1)return new Uint8Array(t[0]);let r=new Uint8Array(Buffer.allocUnsafeSlow(e).buffer),s=0;for(let n=0;n>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)<>>i,c=!(!(a>>>7)&&e==0),u=(c?a|128:a)&255;if(r.push(u),!c)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 a=e>>>i,c=!!(a>>>7),u=(c?a|128:a)&255;if(r.push(u),!c)return}r.push(e>>>31&1)}}o(Kz0,"varint64write");Vs.varint64write=Kz0;var qR=65536*65536;function Zz0(t){let e=t[0]=="-";e&&(t=t.slice(1));let r=1e6,s=0,n=0;function i(a,c){let u=Number(t.slice(a,c));n*=r,s=s*r+u,s>=qR&&(n=n+(s/qR|0),s=s%qR)}return o(i,"add1e6digit"),i(-24,-18),i(-18,-12),i(-12,-6),i(-6),[e,s,n]}o(Zz0,"int64fromString");Vs.int64fromString=Zz0;function eO0(t,e){if(e>>>0<=2097151)return""+(qR*e+(t>>>0));let r=t&16777215,s=(t>>>24|e<<8)>>>0&16777215,n=e>>16&65535,i=r+s*6777216+n*6710656,a=s+n*8147497,c=n*2,u=1e7;i>=u&&(a+=Math.floor(i/u),i%=u),a>=u&&(c+=Math.floor(a/u),a%=u);function p(l,A){let d=l?String(l):"";return A?"0000000".slice(d.length)+d:d}return o(p,"decimalFrom1e7"),p(c,0)+p(a,c)+p(i,1)}o(eO0,"int64toString");Vs.int64toString=eO0;function tO0(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)}}o(tO0,"varint32write");Vs.varint32write=tO0;function rO0(){let t=this.buf[this.pos++],e=t&127;if((t&128)==0)return this.assertBounds(),e;if(t=this.buf[this.pos++],e|=(t&127)<<7,(t&128)==0)return this.assertBounds(),e;if(t=this.buf[this.pos++],e|=(t&127)<<14,(t&128)==0)return this.assertBounds(),e;if(t=this.buf[this.pos++],e|=(t&127)<<21,(t&128)==0)return this.assertBounds(),e;t=this.buf[this.pos++],e|=(t&15)<<28;for(let r=5;(t&128)!==0&&r<10;r++)t=this.buf[this.pos++];if((t&128)!=0)throw new Error("invalid varint");return this.assertBounds(),e>>>0}o(rO0,"varint32read");Vs.varint32read=rO0});var Yl=h($l=>{"use strict";Object.defineProperty($l,"__esModule",{value:!0});$l.PbLong=$l.PbULong=$l.detectBi=void 0;var L3=IR(),G0;function JOe(){let t=new DataView(new ArrayBuffer(8));G0=globalThis.BigInt!==void 0&&typeof t.getBigInt64=="function"&&typeof t.getBigUint64=="function"&&typeof t.setBigInt64=="function"&&typeof t.setBigUint64=="function"?{MIN:BigInt("-9223372036854775808"),MAX:BigInt("9223372036854775807"),UMIN:BigInt("0"),UMAX:BigInt("18446744073709551615"),C:BigInt,V:t}:void 0}o(JOe,"detectBi");$l.detectBi=JOe;JOe();function KOe(t){if(!t)throw new Error("BigInt unavailable, see https://github.com/timostamm/protobuf-ts/blob/v1.0.8/MANUAL.md#bigint-support")}o(KOe,"assertBi");var ZOe=/^-?[0-9]+$/,wR=4294967296,RR=2147483648,SR=class{static{o(this,"SharedPbLong")}constructor(e,r){this.lo=e|0,this.hi=r|0}isZero(){return this.lo==0&&this.hi==0}toNumber(){let e=this.hi*wR+(this.lo>>>0);if(!Number.isSafeInteger(e))throw new Error("cannot convert to safe number");return e}},Q3=class t extends SR{static{o(this,"PbULong")}static from(e){if(G0)switch(typeof e){case"string":if(e=="0")return this.ZERO;if(e=="")throw new Error("string is no integer");e=G0.C(e);case"number":if(e===0)return this.ZERO;e=G0.C(e);case"bigint":if(!e)return this.ZERO;if(e{"use strict";cE.__esModule=!0;cE.createProtoAccessControl=LC0;cE.resultIsAllowed=QC0;cE.resetLoggedProperties=kC0;function xC0(t){return t&&t.__esModule?t:{default:t}}o(xC0,"_interopRequireDefault");var Qye=ps(),WC0=YX(),_C0=xC0(WC0),kw=Object.create(null);function LC0(t){var e=Object.create(null);e.__proto__=!1,Qye.extend(e,t.allowedProtoProperties);var r=Object.create(null);return r.constructor=!1,r.__defineGetter__=!1,r.__defineSetter__=!1,r.__lookupGetter__=!1,r.__lookupSetter__=!1,Qye.extend(r,t.allowedProtoMethods),{properties:{whitelist:e,defaultValue:t.allowProtoPropertiesByDefault},methods:{whitelist:r,defaultValue:t.allowProtoMethodsByDefault}}}o(LC0,"createProtoAccessControl");function QC0(t,e,r){return Pye(typeof t=="function"?e.methods:e.properties,r)}o(QC0,"resultIsAllowed");function Pye(t,e){return t.whitelist[e]!==void 0?t.whitelist[e]===!0:t.defaultValue!==void 0?t.defaultValue:(PC0(e),!1)}o(Pye,"checkWhiteList");function PC0(t){kw[t]!==!0&&(kw[t]=!0,_C0.default.log("error",'Handlebars: Access has been denied to resolve the property "'+t+`" because it is not an "own property" of its parent.
You can add a runtime option to disable the check or this warning:
See https://handlebarsjs.com/api-reference/runtime-options.html#options-to-control-prototype-access for details`))}o(PC0,"logUnexpecedPropertyAccessOnce");function kC0(){Object.keys(kw).forEach(function(t){delete kw[t]})}o(kC0,"resetLoggedProperties")});var Gw=h(cc=>{"use strict";cc.__esModule=!0;cc.HandlebarsEnvironment=eV;function kye(t){return t&&t.__esModule?t:{default:t}}o(kye,"_interopRequireDefault");var C2=ps(),UC0=Hn(),KX=kye(UC0),GC0=jX(),HC0=_ye(),XC0=YX(),Uw=kye(XC0),VC0=JX(),jC0="4.7.9";cc.VERSION=jC0;var $C0=8;cc.COMPILER_REVISION=$C0;var YC0=7;cc.LAST_COMPATIBLE_COMPILER_REVISION=YC0;var JC0={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"};cc.REVISION_CHANGES=JC0;var ZX="[object Object]";function eV(t,e,r){this.helpers=t||{},this.partials=e||{},this.decorators=r||{},GC0.registerDefaultHelpers(this),HC0.registerDefaultDecorators(this)}o(eV,"HandlebarsEnvironment");eV.prototype={constructor:eV,logger:Uw.default,log:Uw.default.log,registerHelper:o(function(e,r){if(C2.toString.call(e)===ZX){if(r)throw new KX.default("Arg not supported with multiple helpers");C2.extend(this.helpers,e)}else this.helpers[e]=r},"registerHelper"),unregisterHelper:o(function(e){delete this.helpers[e]},"unregisterHelper"),registerPartial:o(function(e,r){if(C2.toString.call(e)===ZX)C2.extend(this.partials,e);else{if(typeof r>"u")throw new KX.default('Attempting to register a partial called "'+e+'" as undefined');this.partials[e]=r}},"registerPartial"),unregisterPartial:o(function(e){delete this.partials[e]},"unregisterPartial"),registerDecorator:o(function(e,r){if(C2.toString.call(e)===ZX){if(r)throw new KX.default("Arg not supported with multiple decorators");C2.extend(this.decorators,e)}else this.decorators[e]=r},"registerDecorator"),unregisterDecorator:o(function(e){delete this.decorators[e]},"unregisterDecorator"),resetLoggedPropertyAccesses:o(function(){VC0.resetLoggedProperties()},"resetLoggedPropertyAccesses")};var KC0=Uw.default.log;cc.log=KC0;cc.createFrame=C2.createFrame;cc.logger=Uw.default});var Gye=h((Hw,Uye)=>{"use strict";Hw.__esModule=!0;function tV(t){this.string=t}o(tV,"SafeString");tV.prototype.toString=tV.prototype.toHTML=function(){return""+this.string};Hw.default=tV;Uye.exports=Hw.default});var Hye=h(rV=>{"use strict";rV.__esModule=!0;rV.wrapHelper=ZC0;function ZC0(t,e){if(typeof t!="function")return t;var r=o(function(){var n=arguments[arguments.length-1];return arguments[arguments.length-1]=e(n),t.apply(this,arguments)},"wrapper");return r}o(ZC0,"wrapHelper")});var Jye=h(tA=>{"use strict";tA.__esModule=!0;tA.checkRevision=i40;tA.template=o40;tA.wrapProgram=Xw;tA.resolvePartial=a40;tA.invokePartial=c40;tA.noop=$ye;function e40(t){return t&&t.__esModule?t:{default:t}}o(e40,"_interopRequireDefault");function t40(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}o(t40,"_interopRequireWildcard");var r40=ps(),BM=t40(r40),s40=Hn(),$u=e40(s40),Yu=Gw(),Xye=jX(),n40=Hye(),Vye=JX();function i40(t){var e=t&&t[0]||1,r=Yu.COMPILER_REVISION;if(!(e>=Yu.LAST_COMPATIBLE_COMPILER_REVISION&&e<=Yu.COMPILER_REVISION))if(e{"use strict";rS.__esModule=!0;function y40(t){return t&&t.__esModule?t:{default:t}}o(y40,"_interopRequireDefault");var C40=tS(),B40=y40(C40);function uc(){var t=arguments.length<=0||arguments[0]===void 0?{}:arguments[0];this.options=t}o(uc,"WhitespaceControl");uc.prototype=new B40.default;uc.prototype.Program=function(t){var e=!this.options.ignoreStandalone,r=!this.isRootSeen;this.isRootSeen=!0;for(var s=t.body,n=0,i=s.length;n{"use strict";Wi.__esModule=!0;Wi.SourceLocation=I40;Wi.id=R40;Wi.stripFlags=w40;Wi.stripComment=S40;Wi.preparePath=N40;Wi.prepareMustache=v40;Wi.prepareRawBlock=F40;Wi.prepareBlock=T40;Wi.prepareProgram=x40;Wi.preparePartialBlock=W40;function D40(t){return t&&t.__esModule?t:{default:t}}o(D40,"_interopRequireDefault");var q40=Hn(),lV=D40(q40);function AV(t,e){if(e=e.path?e.path.original:e,t.path.original!==e){var r={loc:t.path.loc};throw new lV.default(t.path.original+" doesn't match "+e,r)}}o(AV,"validateClose");function I40(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}}o(I40,"SourceLocation");function R40(t){return/^\[.*\]$/.test(t)?t.substring(1,t.length-1):t}o(R40,"id");function w40(t,e){return{open:t.charAt(2)==="~",close:e.charAt(e.length-3)==="~"}}o(w40,"stripFlags");function S40(t){return t.replace(/^\{\{~?!-?-?/,"").replace(/-?-?~?\}\}$/,"")}o(S40,"stripComment");function N40(t,e,r){r=this.locInfo(r);for(var s=t?"@":"",n=[],i=0,a=0,c=e.length;a{var me=IM(),RV=xCe(),RM=CV().ArraySet,hB0=zV(),mE=_Ce().quickSort;function ot(t,e){var r=t;return typeof t=="string"&&(r=me.parseSourceMapInput(t)),r.sections!=null?new Qo(r,e):new fr(r,e)}o(ot,"SourceMapConsumer");ot.fromSourceMap=function(t,e){return fr.fromSourceMap(t,e)};ot.prototype._version=3;ot.prototype.__generatedMappings=null;Object.defineProperty(ot.prototype,"_generatedMappings",{configurable:!0,enumerable:!0,get:o(function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings},"get")});ot.prototype.__originalMappings=null;Object.defineProperty(ot.prototype,"_originalMappings",{configurable:!0,enumerable:!0,get:o(function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings},"get")});ot.prototype._charIsMappingSeparator=o(function(e,r){var s=e.charAt(r);return s===";"||s===","},"SourceMapConsumer_charIsMappingSeparator");ot.prototype._parseMappings=o(function(e,r){throw new Error("Subclasses must implement _parseMappings")},"SourceMapConsumer_parseMappings");ot.GENERATED_ORDER=1;ot.ORIGINAL_ORDER=2;ot.GREATEST_LOWER_BOUND=1;ot.LEAST_UPPER_BOUND=2;ot.prototype.eachMapping=o(function(e,r,s){var n=r||null,i=s||ot.GENERATED_ORDER,a;switch(i){case ot.GENERATED_ORDER:a=this._generatedMappings;break;case ot.ORIGINAL_ORDER:a=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}var c=this.sourceRoot;a.map(function(u){var p=u.source===null?null:this._sources.at(u.source);return p=me.computeSourceURL(c,p,this._sourceMapURL),{source:p,generatedLine:u.generatedLine,generatedColumn:u.generatedColumn,originalLine:u.originalLine,originalColumn:u.originalColumn,name:u.name===null?null:this._names.at(u.name)}},this).forEach(e,n)},"SourceMapConsumer_eachMapping");ot.prototype.allGeneratedPositionsFor=o(function(e){var r=me.getArg(e,"line"),s={source:me.getArg(e,"source"),originalLine:r,originalColumn:me.getArg(e,"column",0)};if(s.source=this._findSourceIndex(s.source),s.source<0)return[];var n=[],i=this._findMapping(s,this._originalMappings,"originalLine","originalColumn",me.compareByOriginalPositions,RV.LEAST_UPPER_BOUND);if(i>=0){var a=this._originalMappings[i];if(e.column===void 0)for(var c=a.originalLine;a&&a.originalLine===c;)n.push({line:me.getArg(a,"generatedLine",null),column:me.getArg(a,"generatedColumn",null),lastColumn:me.getArg(a,"lastGeneratedColumn",null)}),a=this._originalMappings[++i];else for(var u=a.originalColumn;a&&a.originalLine===r&&a.originalColumn==u;)n.push({line:me.getArg(a,"generatedLine",null),column:me.getArg(a,"generatedColumn",null),lastColumn:me.getArg(a,"lastGeneratedColumn",null)}),a=this._originalMappings[++i]}return n},"SourceMapConsumer_allGeneratedPositionsFor");oS.SourceMapConsumer=ot;function fr(t,e){var r=t;typeof t=="string"&&(r=me.parseSourceMapInput(t));var s=me.getArg(r,"version"),n=me.getArg(r,"sources"),i=me.getArg(r,"names",[]),a=me.getArg(r,"sourceRoot",null),c=me.getArg(r,"sourcesContent",null),u=me.getArg(r,"mappings"),p=me.getArg(r,"file",null);if(s!=this._version)throw new Error("Unsupported version: "+s);a&&(a=me.normalize(a)),n=n.map(String).map(me.normalize).map(function(l){return a&&me.isAbsolute(a)&&me.isAbsolute(l)?me.relative(a,l):l}),this._names=RM.fromArray(i.map(String),!0),this._sources=RM.fromArray(n,!0),this._absoluteSources=this._sources.toArray().map(function(l){return me.computeSourceURL(a,l,e)}),this.sourceRoot=a,this.sourcesContent=c,this._mappings=u,this._sourceMapURL=e,this.file=p}o(fr,"BasicSourceMapConsumer");fr.prototype=Object.create(ot.prototype);fr.prototype.consumer=ot;fr.prototype._findSourceIndex=function(t){var e=t;if(this.sourceRoot!=null&&(e=me.relative(this.sourceRoot,e)),this._sources.has(e))return this._sources.indexOf(e);var r;for(r=0;r{"use strict";lS.__esModule=!0;function gE(t){return t&&t.__esModule?t:{default:t}}o(gE,"_interopRequireDefault");var yB0=sCe(),CB0=gE(yB0),BB0=aV(),DB0=gE(BB0),vV=hCe(),FV=gCe(),qB0=KCe(),IB0=gE(qB0),RB0=tS(),wB0=gE(RB0),SB0=sV(),NB0=gE(SB0),vB0=CB0.default.create;function ZCe(){var t=vB0();return t.compile=function(e,r){return FV.compile(e,r,t)},t.precompile=function(e,r){return FV.precompile(e,r,t)},t.AST=DB0.default,t.Compiler=FV.Compiler,t.JavaScriptCompiler=IB0.default,t.Parser=vV.parser,t.parse=vV.parse,t.parseWithoutProcessing=vV.parseWithoutProcessing,t}o(ZCe,"create");var vM=ZCe();vM.create=ZCe;NB0.default(vM);vM.Visitor=wB0.default;vM.default=vM;lS.default=vM;e4e.exports=lS.default});var r4e=h(AS=>{"use strict";AS.__esModule=!0;AS.print=WB0;AS.PrintVisitor=Tt;function FB0(t){return t&&t.__esModule?t:{default:t}}o(FB0,"_interopRequireDefault");var TB0=tS(),xB0=FB0(TB0);function WB0(t){return new Tt().accept(t)}o(WB0,"print");function Tt(){this.padding=0}o(Tt,"PrintVisitor");Tt.prototype=new xB0.default;Tt.prototype.pad=function(t){for(var e="",r=0,s=this.padding;r "+e+" }}")};Tt.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+" }}")};Tt.prototype.ContentStatement=function(t){return this.pad("CONTENT[ '"+t.value+"' ]")};Tt.prototype.CommentStatement=function(t){return this.pad("{{! '"+t.value+"' }}")};Tt.prototype.SubExpression=function(t){for(var e=t.params,r=[],s=void 0,n=0,i=e.length;n{var dS=t4e().default,n4e=r4e();dS.PrintVisitor=n4e.PrintVisitor;dS.print=n4e.print;i4e.exports=dS;function s4e(t,e){var r=require("fs"),s=r.readFileSync(e,"utf8");t.exports=dS.compile(s)}o(s4e,"extension");typeof require<"u"&&require.extensions&&(require.extensions[".handlebars"]=s4e,require.extensions[".hbs"]=s4e)});var mS=h(sA=>{"use strict";Object.defineProperty(sA,"__esModule",{value:!0});sA.Signature=sA.Envelope=void 0;sA.Envelope={fromJSON(t){return{payload:MS(t.payload)?Buffer.from(b4e(t.payload)):Buffer.alloc(0),payloadType:MS(t.payloadType)?globalThis.String(t.payloadType):"",signatures:globalThis.Array.isArray(t?.signatures)?t.signatures.map(e=>sA.Signature.fromJSON(e)):[]}},toJSON(t){let e={};return t.payload.length!==0&&(e.payload=M4e(t.payload)),t.payloadType!==""&&(e.payloadType=t.payloadType),t.signatures?.length&&(e.signatures=t.signatures.map(r=>sA.Signature.toJSON(r))),e}};sA.Signature={fromJSON(t){return{sig:MS(t.sig)?Buffer.from(b4e(t.sig)):Buffer.alloc(0),keyid:MS(t.keyid)?globalThis.String(t.keyid):""}},toJSON(t){let e={};return t.sig.length!==0&&(e.sig=M4e(t.sig)),t.keyid!==""&&(e.keyid=t.keyid),e}};function b4e(t){return Uint8Array.from(globalThis.Buffer.from(t,"base64"))}o(b4e,"bytesFromBase64");function M4e(t){return globalThis.Buffer.from(t).toString("base64")}o(M4e,"base64FromBytes");function MS(t){return t!=null}o(MS,"isSet")});var g4e=h(gS=>{"use strict";Object.defineProperty(gS,"__esModule",{value:!0});gS.Timestamp=void 0;gS.Timestamp={fromJSON(t){return{seconds:m4e(t.seconds)?globalThis.String(t.seconds):"0",nanos:m4e(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 m4e(t){return t!=null}o(m4e,"isSet")});var Zu=h(xe=>{"use strict";Object.defineProperty(xe,"__esModule",{value:!0});xe.TimeRange=xe.X509CertificateChain=xe.SubjectAlternativeName=xe.X509Certificate=xe.DistinguishedName=xe.ObjectIdentifierValuePair=xe.ObjectIdentifier=xe.PublicKeyIdentifier=xe.PublicKey=xe.RFC3161SignedTimestamp=xe.LogId=xe.MessageSignature=xe.HashOutput=xe.SubjectAlternativeNameType=xe.PublicKeyDetails=xe.HashAlgorithm=void 0;xe.hashAlgorithmFromJSON=O4e;xe.hashAlgorithmToJSON=E4e;xe.publicKeyDetailsFromJSON=y4e;xe.publicKeyDetailsToJSON=C4e;xe.subjectAlternativeNameTypeFromJSON=B4e;xe.subjectAlternativeNameTypeToJSON=D4e;var HB0=g4e(),Ks;(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"})(Ks||(xe.HashAlgorithm=Ks={}));function O4e(t){switch(t){case 0:case"HASH_ALGORITHM_UNSPECIFIED":return Ks.HASH_ALGORITHM_UNSPECIFIED;case 1:case"SHA2_256":return Ks.SHA2_256;case 2:case"SHA2_384":return Ks.SHA2_384;case 3:case"SHA2_512":return Ks.SHA2_512;case 4:case"SHA3_256":return Ks.SHA3_256;case 5:case"SHA3_384":return Ks.SHA3_384;default:throw new globalThis.Error("Unrecognized enum value "+t+" for enum HashAlgorithm")}}o(O4e,"hashAlgorithmFromJSON");function E4e(t){switch(t){case Ks.HASH_ALGORITHM_UNSPECIFIED:return"HASH_ALGORITHM_UNSPECIFIED";case Ks.SHA2_256:return"SHA2_256";case Ks.SHA2_384:return"SHA2_384";case Ks.SHA2_512:return"SHA2_512";case Ks.SHA3_256:return"SHA3_256";case Ks.SHA3_384:return"SHA3_384";default:throw new globalThis.Error("Unrecognized enum value "+t+" for enum HashAlgorithm")}}o(E4e,"hashAlgorithmToJSON");var Te;(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"})(Te||(xe.PublicKeyDetails=Te={}));function y4e(t){switch(t){case 0:case"PUBLIC_KEY_DETAILS_UNSPECIFIED":return Te.PUBLIC_KEY_DETAILS_UNSPECIFIED;case 1:case"PKCS1_RSA_PKCS1V5":return Te.PKCS1_RSA_PKCS1V5;case 2:case"PKCS1_RSA_PSS":return Te.PKCS1_RSA_PSS;case 3:case"PKIX_RSA_PKCS1V5":return Te.PKIX_RSA_PKCS1V5;case 4:case"PKIX_RSA_PSS":return Te.PKIX_RSA_PSS;case 9:case"PKIX_RSA_PKCS1V15_2048_SHA256":return Te.PKIX_RSA_PKCS1V15_2048_SHA256;case 10:case"PKIX_RSA_PKCS1V15_3072_SHA256":return Te.PKIX_RSA_PKCS1V15_3072_SHA256;case 11:case"PKIX_RSA_PKCS1V15_4096_SHA256":return Te.PKIX_RSA_PKCS1V15_4096_SHA256;case 16:case"PKIX_RSA_PSS_2048_SHA256":return Te.PKIX_RSA_PSS_2048_SHA256;case 17:case"PKIX_RSA_PSS_3072_SHA256":return Te.PKIX_RSA_PSS_3072_SHA256;case 18:case"PKIX_RSA_PSS_4096_SHA256":return Te.PKIX_RSA_PSS_4096_SHA256;case 6:case"PKIX_ECDSA_P256_HMAC_SHA_256":return Te.PKIX_ECDSA_P256_HMAC_SHA_256;case 5:case"PKIX_ECDSA_P256_SHA_256":return Te.PKIX_ECDSA_P256_SHA_256;case 12:case"PKIX_ECDSA_P384_SHA_384":return Te.PKIX_ECDSA_P384_SHA_384;case 13:case"PKIX_ECDSA_P521_SHA_512":return Te.PKIX_ECDSA_P521_SHA_512;case 7:case"PKIX_ED25519":return Te.PKIX_ED25519;case 8:case"PKIX_ED25519_PH":return Te.PKIX_ED25519_PH;case 19:case"PKIX_ECDSA_P384_SHA_256":return Te.PKIX_ECDSA_P384_SHA_256;case 20:case"PKIX_ECDSA_P521_SHA_256":return Te.PKIX_ECDSA_P521_SHA_256;case 14:case"LMS_SHA256":return Te.LMS_SHA256;case 15:case"LMOTS_SHA256":return Te.LMOTS_SHA256;case 21:case"ML_DSA_65":return Te.ML_DSA_65;case 22:case"ML_DSA_87":return Te.ML_DSA_87;default:throw new globalThis.Error("Unrecognized enum value "+t+" for enum PublicKeyDetails")}}o(y4e,"publicKeyDetailsFromJSON");function C4e(t){switch(t){case Te.PUBLIC_KEY_DETAILS_UNSPECIFIED:return"PUBLIC_KEY_DETAILS_UNSPECIFIED";case Te.PKCS1_RSA_PKCS1V5:return"PKCS1_RSA_PKCS1V5";case Te.PKCS1_RSA_PSS:return"PKCS1_RSA_PSS";case Te.PKIX_RSA_PKCS1V5:return"PKIX_RSA_PKCS1V5";case Te.PKIX_RSA_PSS:return"PKIX_RSA_PSS";case Te.PKIX_RSA_PKCS1V15_2048_SHA256:return"PKIX_RSA_PKCS1V15_2048_SHA256";case Te.PKIX_RSA_PKCS1V15_3072_SHA256:return"PKIX_RSA_PKCS1V15_3072_SHA256";case Te.PKIX_RSA_PKCS1V15_4096_SHA256:return"PKIX_RSA_PKCS1V15_4096_SHA256";case Te.PKIX_RSA_PSS_2048_SHA256:return"PKIX_RSA_PSS_2048_SHA256";case Te.PKIX_RSA_PSS_3072_SHA256:return"PKIX_RSA_PSS_3072_SHA256";case Te.PKIX_RSA_PSS_4096_SHA256:return"PKIX_RSA_PSS_4096_SHA256";case Te.PKIX_ECDSA_P256_HMAC_SHA_256:return"PKIX_ECDSA_P256_HMAC_SHA_256";case Te.PKIX_ECDSA_P256_SHA_256:return"PKIX_ECDSA_P256_SHA_256";case Te.PKIX_ECDSA_P384_SHA_384:return"PKIX_ECDSA_P384_SHA_384";case Te.PKIX_ECDSA_P521_SHA_512:return"PKIX_ECDSA_P521_SHA_512";case Te.PKIX_ED25519:return"PKIX_ED25519";case Te.PKIX_ED25519_PH:return"PKIX_ED25519_PH";case Te.PKIX_ECDSA_P384_SHA_256:return"PKIX_ECDSA_P384_SHA_256";case Te.PKIX_ECDSA_P521_SHA_256:return"PKIX_ECDSA_P521_SHA_256";case Te.LMS_SHA256:return"LMS_SHA256";case Te.LMOTS_SHA256:return"LMOTS_SHA256";case Te.ML_DSA_65:return"ML_DSA_65";case Te.ML_DSA_87:return"ML_DSA_87";default:throw new globalThis.Error("Unrecognized enum value "+t+" for enum PublicKeyDetails")}}o(C4e,"publicKeyDetailsToJSON");var pc;(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"})(pc||(xe.SubjectAlternativeNameType=pc={}));function B4e(t){switch(t){case 0:case"SUBJECT_ALTERNATIVE_NAME_TYPE_UNSPECIFIED":return pc.SUBJECT_ALTERNATIVE_NAME_TYPE_UNSPECIFIED;case 1:case"EMAIL":return pc.EMAIL;case 2:case"URI":return pc.URI;case 3:case"OTHER_NAME":return pc.OTHER_NAME;default:throw new globalThis.Error("Unrecognized enum value "+t+" for enum SubjectAlternativeNameType")}}o(B4e,"subjectAlternativeNameTypeFromJSON");function D4e(t){switch(t){case pc.SUBJECT_ALTERNATIVE_NAME_TYPE_UNSPECIFIED:return"SUBJECT_ALTERNATIVE_NAME_TYPE_UNSPECIFIED";case pc.EMAIL:return"EMAIL";case pc.URI:return"URI";case pc.OTHER_NAME:return"OTHER_NAME";default:throw new globalThis.Error("Unrecognized enum value "+t+" for enum SubjectAlternativeNameType")}}o(D4e,"subjectAlternativeNameTypeToJSON");xe.HashOutput={fromJSON(t){return{algorithm:h1(t.algorithm)?O4e(t.algorithm):0,digest:h1(t.digest)?Buffer.from(w2(t.digest)):Buffer.alloc(0)}},toJSON(t){let e={};return t.algorithm!==0&&(e.algorithm=E4e(t.algorithm)),t.digest.length!==0&&(e.digest=S2(t.digest)),e}};xe.MessageSignature={fromJSON(t){return{messageDigest:h1(t.messageDigest)?xe.HashOutput.fromJSON(t.messageDigest):void 0,signature:h1(t.signature)?Buffer.from(w2(t.signature)):Buffer.alloc(0)}},toJSON(t){let e={};return t.messageDigest!==void 0&&(e.messageDigest=xe.HashOutput.toJSON(t.messageDigest)),t.signature.length!==0&&(e.signature=S2(t.signature)),e}};xe.LogId={fromJSON(t){return{keyId:h1(t.keyId)?Buffer.from(w2(t.keyId)):Buffer.alloc(0)}},toJSON(t){let e={};return t.keyId.length!==0&&(e.keyId=S2(t.keyId)),e}};xe.RFC3161SignedTimestamp={fromJSON(t){return{signedTimestamp:h1(t.signedTimestamp)?Buffer.from(w2(t.signedTimestamp)):Buffer.alloc(0)}},toJSON(t){let e={};return t.signedTimestamp.length!==0&&(e.signedTimestamp=S2(t.signedTimestamp)),e}};xe.PublicKey={fromJSON(t){return{rawBytes:h1(t.rawBytes)?Buffer.from(w2(t.rawBytes)):void 0,keyDetails:h1(t.keyDetails)?y4e(t.keyDetails):0,validFor:h1(t.validFor)?xe.TimeRange.fromJSON(t.validFor):void 0}},toJSON(t){let e={};return t.rawBytes!==void 0&&(e.rawBytes=S2(t.rawBytes)),t.keyDetails!==0&&(e.keyDetails=C4e(t.keyDetails)),t.validFor!==void 0&&(e.validFor=xe.TimeRange.toJSON(t.validFor)),e}};xe.PublicKeyIdentifier={fromJSON(t){return{hint:h1(t.hint)?globalThis.String(t.hint):""}},toJSON(t){let e={};return t.hint!==""&&(e.hint=t.hint),e}};xe.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}};xe.ObjectIdentifierValuePair={fromJSON(t){return{oid:h1(t.oid)?xe.ObjectIdentifier.fromJSON(t.oid):void 0,value:h1(t.value)?Buffer.from(w2(t.value)):Buffer.alloc(0)}},toJSON(t){let e={};return t.oid!==void 0&&(e.oid=xe.ObjectIdentifier.toJSON(t.oid)),t.value.length!==0&&(e.value=S2(t.value)),e}};xe.DistinguishedName={fromJSON(t){return{organization:h1(t.organization)?globalThis.String(t.organization):"",commonName:h1(t.commonName)?globalThis.String(t.commonName):""}},toJSON(t){let e={};return t.organization!==""&&(e.organization=t.organization),t.commonName!==""&&(e.commonName=t.commonName),e}};xe.X509Certificate={fromJSON(t){return{rawBytes:h1(t.rawBytes)?Buffer.from(w2(t.rawBytes)):Buffer.alloc(0)}},toJSON(t){let e={};return t.rawBytes.length!==0&&(e.rawBytes=S2(t.rawBytes)),e}};xe.SubjectAlternativeName={fromJSON(t){return{type:h1(t.type)?B4e(t.type):0,identity:h1(t.regexp)?{$case:"regexp",regexp:globalThis.String(t.regexp)}:h1(t.value)?{$case:"value",value:globalThis.String(t.value)}:void 0}},toJSON(t){let e={};return t.type!==0&&(e.type=D4e(t.type)),t.identity?.$case==="regexp"?e.regexp=t.identity.regexp:t.identity?.$case==="value"&&(e.value=t.identity.value),e}};xe.X509CertificateChain={fromJSON(t){return{certificates:globalThis.Array.isArray(t?.certificates)?t.certificates.map(e=>xe.X509Certificate.fromJSON(e)):[]}},toJSON(t){let e={};return t.certificates?.length&&(e.certificates=t.certificates.map(r=>xe.X509Certificate.toJSON(r))),e}};xe.TimeRange={fromJSON(t){return{start:h1(t.start)?z4e(t.start):void 0,end:h1(t.end)?z4e(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 w2(t){return Uint8Array.from(globalThis.Buffer.from(t,"base64"))}o(w2,"bytesFromBase64");function S2(t){return globalThis.Buffer.from(t).toString("base64")}o(S2,"base64FromBytes");function XB0(t){let e=(globalThis.Number(t.seconds)||0)*1e3;return e+=(t.nanos||0)/1e6,new globalThis.Date(e)}o(XB0,"fromTimestamp");function z4e(t){return t instanceof globalThis.Date?t:typeof t=="string"?new globalThis.Date(t):XB0(HB0.Timestamp.fromJSON(t))}o(z4e,"fromJsonTimestamp");function h1(t){return t!=null}o(h1,"isSet")});var UV=h(b1=>{"use strict";Object.defineProperty(b1,"__esModule",{value:!0});b1.TransparencyLogEntry=b1.InclusionPromise=b1.InclusionProof=b1.Checkpoint=b1.KindVersion=void 0;var q4e=Zu();b1.KindVersion={fromJSON(t){return{kind:ls(t.kind)?globalThis.String(t.kind):"",version:ls(t.version)?globalThis.String(t.version):""}},toJSON(t){let e={};return t.kind!==""&&(e.kind=t.kind),t.version!==""&&(e.version=t.version),e}};b1.Checkpoint={fromJSON(t){return{envelope:ls(t.envelope)?globalThis.String(t.envelope):""}},toJSON(t){let e={};return t.envelope!==""&&(e.envelope=t.envelope),e}};b1.InclusionProof={fromJSON(t){return{logIndex:ls(t.logIndex)?globalThis.String(t.logIndex):"0",rootHash:ls(t.rootHash)?Buffer.from(zS(t.rootHash)):Buffer.alloc(0),treeSize:ls(t.treeSize)?globalThis.String(t.treeSize):"0",hashes:globalThis.Array.isArray(t?.hashes)?t.hashes.map(e=>Buffer.from(zS(e))):[],checkpoint:ls(t.checkpoint)?b1.Checkpoint.fromJSON(t.checkpoint):void 0}},toJSON(t){let e={};return t.logIndex!=="0"&&(e.logIndex=t.logIndex),t.rootHash.length!==0&&(e.rootHash=OS(t.rootHash)),t.treeSize!=="0"&&(e.treeSize=t.treeSize),t.hashes?.length&&(e.hashes=t.hashes.map(r=>OS(r))),t.checkpoint!==void 0&&(e.checkpoint=b1.Checkpoint.toJSON(t.checkpoint)),e}};b1.InclusionPromise={fromJSON(t){return{signedEntryTimestamp:ls(t.signedEntryTimestamp)?Buffer.from(zS(t.signedEntryTimestamp)):Buffer.alloc(0)}},toJSON(t){let e={};return t.signedEntryTimestamp.length!==0&&(e.signedEntryTimestamp=OS(t.signedEntryTimestamp)),e}};b1.TransparencyLogEntry={fromJSON(t){return{logIndex:ls(t.logIndex)?globalThis.String(t.logIndex):"0",logId:ls(t.logId)?q4e.LogId.fromJSON(t.logId):void 0,kindVersion:ls(t.kindVersion)?b1.KindVersion.fromJSON(t.kindVersion):void 0,integratedTime:ls(t.integratedTime)?globalThis.String(t.integratedTime):"0",inclusionPromise:ls(t.inclusionPromise)?b1.InclusionPromise.fromJSON(t.inclusionPromise):void 0,inclusionProof:ls(t.inclusionProof)?b1.InclusionProof.fromJSON(t.inclusionProof):void 0,canonicalizedBody:ls(t.canonicalizedBody)?Buffer.from(zS(t.canonicalizedBody)):Buffer.alloc(0)}},toJSON(t){let e={};return t.logIndex!=="0"&&(e.logIndex=t.logIndex),t.logId!==void 0&&(e.logId=q4e.LogId.toJSON(t.logId)),t.kindVersion!==void 0&&(e.kindVersion=b1.KindVersion.toJSON(t.kindVersion)),t.integratedTime!=="0"&&(e.integratedTime=t.integratedTime),t.inclusionPromise!==void 0&&(e.inclusionPromise=b1.InclusionPromise.toJSON(t.inclusionPromise)),t.inclusionProof!==void 0&&(e.inclusionProof=b1.InclusionProof.toJSON(t.inclusionProof)),t.canonicalizedBody.length!==0&&(e.canonicalizedBody=OS(t.canonicalizedBody)),e}};function zS(t){return Uint8Array.from(globalThis.Buffer.from(t,"base64"))}o(zS,"bytesFromBase64");function OS(t){return globalThis.Buffer.from(t).toString("base64")}o(OS,"base64FromBytes");function ls(t){return t!=null}o(ls,"isSet")});var GV=h(Qi=>{"use strict";Object.defineProperty(Qi,"__esModule",{value:!0});Qi.Bundle=Qi.VerificationMaterial=Qi.TimestampVerificationData=void 0;var I4e=mS(),lc=Zu(),R4e=UV();Qi.TimestampVerificationData={fromJSON(t){return{rfc3161Timestamps:globalThis.Array.isArray(t?.rfc3161Timestamps)?t.rfc3161Timestamps.map(e=>lc.RFC3161SignedTimestamp.fromJSON(e)):[]}},toJSON(t){let e={};return t.rfc3161Timestamps?.length&&(e.rfc3161Timestamps=t.rfc3161Timestamps.map(r=>lc.RFC3161SignedTimestamp.toJSON(r))),e}};Qi.VerificationMaterial={fromJSON(t){return{content:nA(t.publicKey)?{$case:"publicKey",publicKey:lc.PublicKeyIdentifier.fromJSON(t.publicKey)}:nA(t.x509CertificateChain)?{$case:"x509CertificateChain",x509CertificateChain:lc.X509CertificateChain.fromJSON(t.x509CertificateChain)}:nA(t.certificate)?{$case:"certificate",certificate:lc.X509Certificate.fromJSON(t.certificate)}:void 0,tlogEntries:globalThis.Array.isArray(t?.tlogEntries)?t.tlogEntries.map(e=>R4e.TransparencyLogEntry.fromJSON(e)):[],timestampVerificationData:nA(t.timestampVerificationData)?Qi.TimestampVerificationData.fromJSON(t.timestampVerificationData):void 0}},toJSON(t){let e={};return t.content?.$case==="publicKey"?e.publicKey=lc.PublicKeyIdentifier.toJSON(t.content.publicKey):t.content?.$case==="x509CertificateChain"?e.x509CertificateChain=lc.X509CertificateChain.toJSON(t.content.x509CertificateChain):t.content?.$case==="certificate"&&(e.certificate=lc.X509Certificate.toJSON(t.content.certificate)),t.tlogEntries?.length&&(e.tlogEntries=t.tlogEntries.map(r=>R4e.TransparencyLogEntry.toJSON(r))),t.timestampVerificationData!==void 0&&(e.timestampVerificationData=Qi.TimestampVerificationData.toJSON(t.timestampVerificationData)),e}};Qi.Bundle={fromJSON(t){return{mediaType:nA(t.mediaType)?globalThis.String(t.mediaType):"",verificationMaterial:nA(t.verificationMaterial)?Qi.VerificationMaterial.fromJSON(t.verificationMaterial):void 0,content:nA(t.messageSignature)?{$case:"messageSignature",messageSignature:lc.MessageSignature.fromJSON(t.messageSignature)}:nA(t.dsseEnvelope)?{$case:"dsseEnvelope",dsseEnvelope:I4e.Envelope.fromJSON(t.dsseEnvelope)}:void 0}},toJSON(t){let e={};return t.mediaType!==""&&(e.mediaType=t.mediaType),t.verificationMaterial!==void 0&&(e.verificationMaterial=Qi.VerificationMaterial.toJSON(t.verificationMaterial)),t.content?.$case==="messageSignature"?e.messageSignature=lc.MessageSignature.toJSON(t.content.messageSignature):t.content?.$case==="dsseEnvelope"&&(e.dsseEnvelope=I4e.Envelope.toJSON(t.content.dsseEnvelope)),e}};function nA(t){return t!=null}o(nA,"isSet")});var HV=h(Ge=>{"use strict";Object.defineProperty(Ge,"__esModule",{value:!0});Ge.ClientTrustConfig=Ge.ServiceConfiguration=Ge.Service=Ge.SigningConfig=Ge.TrustedRoot=Ge.CertificateAuthority=Ge.TransparencyLogInstance=Ge.ServiceSelector=void 0;Ge.serviceSelectorFromJSON=w4e;Ge.serviceSelectorToJSON=S4e;var Ir=Zu(),Ac;(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"})(Ac||(Ge.ServiceSelector=Ac={}));function w4e(t){switch(t){case 0:case"SERVICE_SELECTOR_UNDEFINED":return Ac.SERVICE_SELECTOR_UNDEFINED;case 1:case"ALL":return Ac.ALL;case 2:case"ANY":return Ac.ANY;case 3:case"EXACT":return Ac.EXACT;default:throw new globalThis.Error("Unrecognized enum value "+t+" for enum ServiceSelector")}}o(w4e,"serviceSelectorFromJSON");function S4e(t){switch(t){case Ac.SERVICE_SELECTOR_UNDEFINED:return"SERVICE_SELECTOR_UNDEFINED";case Ac.ALL:return"ALL";case Ac.ANY:return"ANY";case Ac.EXACT:return"EXACT";default:throw new globalThis.Error("Unrecognized enum value "+t+" for enum ServiceSelector")}}o(S4e,"serviceSelectorToJSON");Ge.TransparencyLogInstance={fromJSON(t){return{baseUrl:Mt(t.baseUrl)?globalThis.String(t.baseUrl):"",hashAlgorithm:Mt(t.hashAlgorithm)?(0,Ir.hashAlgorithmFromJSON)(t.hashAlgorithm):0,publicKey:Mt(t.publicKey)?Ir.PublicKey.fromJSON(t.publicKey):void 0,logId:Mt(t.logId)?Ir.LogId.fromJSON(t.logId):void 0,checkpointKeyId:Mt(t.checkpointKeyId)?Ir.LogId.fromJSON(t.checkpointKeyId):void 0,operator:Mt(t.operator)?globalThis.String(t.operator):""}},toJSON(t){let e={};return t.baseUrl!==""&&(e.baseUrl=t.baseUrl),t.hashAlgorithm!==0&&(e.hashAlgorithm=(0,Ir.hashAlgorithmToJSON)(t.hashAlgorithm)),t.publicKey!==void 0&&(e.publicKey=Ir.PublicKey.toJSON(t.publicKey)),t.logId!==void 0&&(e.logId=Ir.LogId.toJSON(t.logId)),t.checkpointKeyId!==void 0&&(e.checkpointKeyId=Ir.LogId.toJSON(t.checkpointKeyId)),t.operator!==""&&(e.operator=t.operator),e}};Ge.CertificateAuthority={fromJSON(t){return{subject:Mt(t.subject)?Ir.DistinguishedName.fromJSON(t.subject):void 0,uri:Mt(t.uri)?globalThis.String(t.uri):"",certChain:Mt(t.certChain)?Ir.X509CertificateChain.fromJSON(t.certChain):void 0,validFor:Mt(t.validFor)?Ir.TimeRange.fromJSON(t.validFor):void 0,operator:Mt(t.operator)?globalThis.String(t.operator):""}},toJSON(t){let e={};return t.subject!==void 0&&(e.subject=Ir.DistinguishedName.toJSON(t.subject)),t.uri!==""&&(e.uri=t.uri),t.certChain!==void 0&&(e.certChain=Ir.X509CertificateChain.toJSON(t.certChain)),t.validFor!==void 0&&(e.validFor=Ir.TimeRange.toJSON(t.validFor)),t.operator!==""&&(e.operator=t.operator),e}};Ge.TrustedRoot={fromJSON(t){return{mediaType:Mt(t.mediaType)?globalThis.String(t.mediaType):"",tlogs:globalThis.Array.isArray(t?.tlogs)?t.tlogs.map(e=>Ge.TransparencyLogInstance.fromJSON(e)):[],certificateAuthorities:globalThis.Array.isArray(t?.certificateAuthorities)?t.certificateAuthorities.map(e=>Ge.CertificateAuthority.fromJSON(e)):[],ctlogs:globalThis.Array.isArray(t?.ctlogs)?t.ctlogs.map(e=>Ge.TransparencyLogInstance.fromJSON(e)):[],timestampAuthorities:globalThis.Array.isArray(t?.timestampAuthorities)?t.timestampAuthorities.map(e=>Ge.CertificateAuthority.fromJSON(e)):[]}},toJSON(t){let e={};return t.mediaType!==""&&(e.mediaType=t.mediaType),t.tlogs?.length&&(e.tlogs=t.tlogs.map(r=>Ge.TransparencyLogInstance.toJSON(r))),t.certificateAuthorities?.length&&(e.certificateAuthorities=t.certificateAuthorities.map(r=>Ge.CertificateAuthority.toJSON(r))),t.ctlogs?.length&&(e.ctlogs=t.ctlogs.map(r=>Ge.TransparencyLogInstance.toJSON(r))),t.timestampAuthorities?.length&&(e.timestampAuthorities=t.timestampAuthorities.map(r=>Ge.CertificateAuthority.toJSON(r))),e}};Ge.SigningConfig={fromJSON(t){return{mediaType:Mt(t.mediaType)?globalThis.String(t.mediaType):"",caUrls:globalThis.Array.isArray(t?.caUrls)?t.caUrls.map(e=>Ge.Service.fromJSON(e)):[],oidcUrls:globalThis.Array.isArray(t?.oidcUrls)?t.oidcUrls.map(e=>Ge.Service.fromJSON(e)):[],rekorTlogUrls:globalThis.Array.isArray(t?.rekorTlogUrls)?t.rekorTlogUrls.map(e=>Ge.Service.fromJSON(e)):[],rekorTlogConfig:Mt(t.rekorTlogConfig)?Ge.ServiceConfiguration.fromJSON(t.rekorTlogConfig):void 0,tsaUrls:globalThis.Array.isArray(t?.tsaUrls)?t.tsaUrls.map(e=>Ge.Service.fromJSON(e)):[],tsaConfig:Mt(t.tsaConfig)?Ge.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=>Ge.Service.toJSON(r))),t.oidcUrls?.length&&(e.oidcUrls=t.oidcUrls.map(r=>Ge.Service.toJSON(r))),t.rekorTlogUrls?.length&&(e.rekorTlogUrls=t.rekorTlogUrls.map(r=>Ge.Service.toJSON(r))),t.rekorTlogConfig!==void 0&&(e.rekorTlogConfig=Ge.ServiceConfiguration.toJSON(t.rekorTlogConfig)),t.tsaUrls?.length&&(e.tsaUrls=t.tsaUrls.map(r=>Ge.Service.toJSON(r))),t.tsaConfig!==void 0&&(e.tsaConfig=Ge.ServiceConfiguration.toJSON(t.tsaConfig)),e}};Ge.Service={fromJSON(t){return{url:Mt(t.url)?globalThis.String(t.url):"",majorApiVersion:Mt(t.majorApiVersion)?globalThis.Number(t.majorApiVersion):0,validFor:Mt(t.validFor)?Ir.TimeRange.fromJSON(t.validFor):void 0,operator:Mt(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=Ir.TimeRange.toJSON(t.validFor)),t.operator!==""&&(e.operator=t.operator),e}};Ge.ServiceConfiguration={fromJSON(t){return{selector:Mt(t.selector)?w4e(t.selector):0,count:Mt(t.count)?globalThis.Number(t.count):0}},toJSON(t){let e={};return t.selector!==0&&(e.selector=S4e(t.selector)),t.count!==0&&(e.count=Math.round(t.count)),e}};Ge.ClientTrustConfig={fromJSON(t){return{mediaType:Mt(t.mediaType)?globalThis.String(t.mediaType):"",trustedRoot:Mt(t.trustedRoot)?Ge.TrustedRoot.fromJSON(t.trustedRoot):void 0,signingConfig:Mt(t.signingConfig)?Ge.SigningConfig.fromJSON(t.signingConfig):void 0}},toJSON(t){let e={};return t.mediaType!==""&&(e.mediaType=t.mediaType),t.trustedRoot!==void 0&&(e.trustedRoot=Ge.TrustedRoot.toJSON(t.trustedRoot)),t.signingConfig!==void 0&&(e.signingConfig=Ge.SigningConfig.toJSON(t.signingConfig)),e}};function Mt(t){return t!=null}o(Mt,"isSet")});var F4e=h(He=>{"use strict";Object.defineProperty(He,"__esModule",{value:!0});He.Input=He.Artifact=He.ArtifactVerificationOptions_ObserverTimestampOptions=He.ArtifactVerificationOptions_TlogIntegratedTimestampOptions=He.ArtifactVerificationOptions_TimestampAuthorityOptions=He.ArtifactVerificationOptions_CtlogOptions=He.ArtifactVerificationOptions_TlogOptions=He.ArtifactVerificationOptions=He.PublicKeyIdentities=He.CertificateIdentities=He.CertificateIdentity=void 0;var N4e=GV(),iA=Zu(),v4e=HV();He.CertificateIdentity={fromJSON(t){return{issuer:H0(t.issuer)?globalThis.String(t.issuer):"",san:H0(t.san)?iA.SubjectAlternativeName.fromJSON(t.san):void 0,oids:globalThis.Array.isArray(t?.oids)?t.oids.map(e=>iA.ObjectIdentifierValuePair.fromJSON(e)):[]}},toJSON(t){let e={};return t.issuer!==""&&(e.issuer=t.issuer),t.san!==void 0&&(e.san=iA.SubjectAlternativeName.toJSON(t.san)),t.oids?.length&&(e.oids=t.oids.map(r=>iA.ObjectIdentifierValuePair.toJSON(r))),e}};He.CertificateIdentities={fromJSON(t){return{identities:globalThis.Array.isArray(t?.identities)?t.identities.map(e=>He.CertificateIdentity.fromJSON(e)):[]}},toJSON(t){let e={};return t.identities?.length&&(e.identities=t.identities.map(r=>He.CertificateIdentity.toJSON(r))),e}};He.PublicKeyIdentities={fromJSON(t){return{publicKeys:globalThis.Array.isArray(t?.publicKeys)?t.publicKeys.map(e=>iA.PublicKey.fromJSON(e)):[]}},toJSON(t){let e={};return t.publicKeys?.length&&(e.publicKeys=t.publicKeys.map(r=>iA.PublicKey.toJSON(r))),e}};He.ArtifactVerificationOptions={fromJSON(t){return{signers:H0(t.certificateIdentities)?{$case:"certificateIdentities",certificateIdentities:He.CertificateIdentities.fromJSON(t.certificateIdentities)}:H0(t.publicKeys)?{$case:"publicKeys",publicKeys:He.PublicKeyIdentities.fromJSON(t.publicKeys)}:void 0,tlogOptions:H0(t.tlogOptions)?He.ArtifactVerificationOptions_TlogOptions.fromJSON(t.tlogOptions):void 0,ctlogOptions:H0(t.ctlogOptions)?He.ArtifactVerificationOptions_CtlogOptions.fromJSON(t.ctlogOptions):void 0,tsaOptions:H0(t.tsaOptions)?He.ArtifactVerificationOptions_TimestampAuthorityOptions.fromJSON(t.tsaOptions):void 0,integratedTsOptions:H0(t.integratedTsOptions)?He.ArtifactVerificationOptions_TlogIntegratedTimestampOptions.fromJSON(t.integratedTsOptions):void 0,observerOptions:H0(t.observerOptions)?He.ArtifactVerificationOptions_ObserverTimestampOptions.fromJSON(t.observerOptions):void 0}},toJSON(t){let e={};return t.signers?.$case==="certificateIdentities"?e.certificateIdentities=He.CertificateIdentities.toJSON(t.signers.certificateIdentities):t.signers?.$case==="publicKeys"&&(e.publicKeys=He.PublicKeyIdentities.toJSON(t.signers.publicKeys)),t.tlogOptions!==void 0&&(e.tlogOptions=He.ArtifactVerificationOptions_TlogOptions.toJSON(t.tlogOptions)),t.ctlogOptions!==void 0&&(e.ctlogOptions=He.ArtifactVerificationOptions_CtlogOptions.toJSON(t.ctlogOptions)),t.tsaOptions!==void 0&&(e.tsaOptions=He.ArtifactVerificationOptions_TimestampAuthorityOptions.toJSON(t.tsaOptions)),t.integratedTsOptions!==void 0&&(e.integratedTsOptions=He.ArtifactVerificationOptions_TlogIntegratedTimestampOptions.toJSON(t.integratedTsOptions)),t.observerOptions!==void 0&&(e.observerOptions=He.ArtifactVerificationOptions_ObserverTimestampOptions.toJSON(t.observerOptions)),e}};He.ArtifactVerificationOptions_TlogOptions={fromJSON(t){return{threshold:H0(t.threshold)?globalThis.Number(t.threshold):0,performOnlineVerification:H0(t.performOnlineVerification)?globalThis.Boolean(t.performOnlineVerification):!1,disable:H0(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}};He.ArtifactVerificationOptions_CtlogOptions={fromJSON(t){return{threshold:H0(t.threshold)?globalThis.Number(t.threshold):0,disable:H0(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}};He.ArtifactVerificationOptions_TimestampAuthorityOptions={fromJSON(t){return{threshold:H0(t.threshold)?globalThis.Number(t.threshold):0,disable:H0(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}};He.ArtifactVerificationOptions_TlogIntegratedTimestampOptions={fromJSON(t){return{threshold:H0(t.threshold)?globalThis.Number(t.threshold):0,disable:H0(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}};He.ArtifactVerificationOptions_ObserverTimestampOptions={fromJSON(t){return{threshold:H0(t.threshold)?globalThis.Number(t.threshold):0,disable:H0(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}};He.Artifact={fromJSON(t){return{data:H0(t.artifactUri)?{$case:"artifactUri",artifactUri:globalThis.String(t.artifactUri)}:H0(t.artifact)?{$case:"artifact",artifact:Buffer.from(VB0(t.artifact))}:H0(t.artifactDigest)?{$case:"artifactDigest",artifactDigest:iA.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=jB0(t.data.artifact):t.data?.$case==="artifactDigest"&&(e.artifactDigest=iA.HashOutput.toJSON(t.data.artifactDigest)),e}};He.Input={fromJSON(t){return{artifactTrustRoot:H0(t.artifactTrustRoot)?v4e.TrustedRoot.fromJSON(t.artifactTrustRoot):void 0,artifactVerificationOptions:H0(t.artifactVerificationOptions)?He.ArtifactVerificationOptions.fromJSON(t.artifactVerificationOptions):void 0,bundle:H0(t.bundle)?N4e.Bundle.fromJSON(t.bundle):void 0,artifact:H0(t.artifact)?He.Artifact.fromJSON(t.artifact):void 0}},toJSON(t){let e={};return t.artifactTrustRoot!==void 0&&(e.artifactTrustRoot=v4e.TrustedRoot.toJSON(t.artifactTrustRoot)),t.artifactVerificationOptions!==void 0&&(e.artifactVerificationOptions=He.ArtifactVerificationOptions.toJSON(t.artifactVerificationOptions)),t.bundle!==void 0&&(e.bundle=N4e.Bundle.toJSON(t.bundle)),t.artifact!==void 0&&(e.artifact=He.Artifact.toJSON(t.artifact)),e}};function VB0(t){return Uint8Array.from(globalThis.Buffer.from(t,"base64"))}o(VB0,"bytesFromBase64");function jB0(t){return globalThis.Buffer.from(t).toString("base64")}o(jB0,"base64FromBytes");function H0(t){return t!=null}o(H0,"isSet")});var ep=h(Pi=>{"use strict";var $B0=Pi&&Pi.__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:o(function(){return e[r]},"get")}),Object.defineProperty(t,s,n)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),TM=Pi&&Pi.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&$B0(e,t,r)};Object.defineProperty(Pi,"__esModule",{value:!0});TM(mS(),Pi);TM(GV(),Pi);TM(Zu(),Pi);TM(UV(),Pi);TM(HV(),Pi);TM(F4e(),Pi)});var ES=h(Zs=>{"use strict";Object.defineProperty(Zs,"__esModule",{value:!0});Zs.BUNDLE_V03_MEDIA_TYPE=Zs.BUNDLE_V03_LEGACY_MEDIA_TYPE=Zs.BUNDLE_V02_MEDIA_TYPE=Zs.BUNDLE_V01_MEDIA_TYPE=void 0;Zs.isBundleWithCertificateChain=YB0;Zs.isBundleWithPublicKey=JB0;Zs.isBundleWithMessageSignature=KB0;Zs.isBundleWithDsseEnvelope=ZB0;Zs.BUNDLE_V01_MEDIA_TYPE="application/vnd.dev.sigstore.bundle+json;version=0.1";Zs.BUNDLE_V02_MEDIA_TYPE="application/vnd.dev.sigstore.bundle+json;version=0.2";Zs.BUNDLE_V03_LEGACY_MEDIA_TYPE="application/vnd.dev.sigstore.bundle+json;version=0.3";Zs.BUNDLE_V03_MEDIA_TYPE="application/vnd.dev.sigstore.bundle.v0.3+json";function YB0(t){return t.verificationMaterial.content.$case==="x509CertificateChain"}o(YB0,"isBundleWithCertificateChain");function JB0(t){return t.verificationMaterial.content.$case==="publicKey"}o(JB0,"isBundleWithPublicKey");function KB0(t){return t.content.$case==="messageSignature"}o(KB0,"isBundleWithMessageSignature");function ZB0(t){return t.content.$case==="dsseEnvelope"}o(ZB0,"isBundleWithDsseEnvelope")});var x4e=h(CS=>{"use strict";Object.defineProperty(CS,"__esModule",{value:!0});CS.toMessageSignatureBundle=tD0;CS.toDSSEBundle=rD0;var eD0=ep(),yS=ES();function tD0(t){return{mediaType:t.certificateChain?yS.BUNDLE_V02_MEDIA_TYPE:yS.BUNDLE_V03_MEDIA_TYPE,content:{$case:"messageSignature",messageSignature:{messageDigest:{algorithm:eD0.HashAlgorithm.SHA2_256,digest:t.digest},signature:t.signature}},verificationMaterial:T4e(t)}}o(tD0,"toMessageSignatureBundle");function rD0(t){return{mediaType:t.certificateChain?yS.BUNDLE_V02_MEDIA_TYPE:yS.BUNDLE_V03_MEDIA_TYPE,content:{$case:"dsseEnvelope",dsseEnvelope:sD0(t)},verificationMaterial:T4e(t)}}o(rD0,"toDSSEBundle");function sD0(t){return{payloadType:t.artifactType,payload:t.artifact,signatures:[nD0(t)]}}o(sD0,"toEnvelope");function nD0(t){return{keyid:t.keyHint||"",sig:t.signature}}o(nD0,"toSignature");function T4e(t){return{content:iD0(t),tlogEntries:[],timestampVerificationData:{rfc3161Timestamps:[]}}}o(T4e,"toVerificationMaterial");function iD0(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||""}}}o(iD0,"toKeyContent")});var VV=h(BS=>{"use strict";Object.defineProperty(BS,"__esModule",{value:!0});BS.ValidationError=void 0;var XV=class extends Error{static{o(this,"ValidationError")}constructor(e,r){super(e),this.fields=r}};BS.ValidationError=XV});var jV=h(N2=>{"use strict";Object.defineProperty(N2,"__esModule",{value:!0});N2.assertBundle=oD0;N2.assertBundleV01=W4e;N2.isBundleV01=aD0;N2.assertBundleV02=cD0;N2.assertBundleLatest=uD0;var DS=VV();function oD0(t){let e=qS(t);if(e.length>0)throw new DS.ValidationError("invalid bundle",e)}o(oD0,"assertBundle");function W4e(t){let e=[];if(e.push(...qS(t)),e.push(...pD0(t)),e.length>0)throw new DS.ValidationError("invalid v0.1 bundle",e)}o(W4e,"assertBundleV01");function aD0(t){try{return W4e(t),!0}catch{return!1}}o(aD0,"isBundleV01");function cD0(t){let e=[];if(e.push(...qS(t)),e.push(..._4e(t)),e.length>0)throw new DS.ValidationError("invalid v0.2 bundle",e)}o(cD0,"assertBundleV02");function uD0(t){let e=[];if(e.push(...qS(t)),e.push(..._4e(t)),e.push(...lD0(t)),e.length>0)throw new DS.ValidationError("invalid bundle",e)}o(uD0,"assertBundleLatest");function qS(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,s)=>{r.rawBytes.length===0&&e.push(`verificationMaterial.content.x509CertificateChain.certificates[${s}].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,s)=>{r.logId===void 0&&e.push(`verificationMaterial.tlogEntries[${s}].logId`),r.kindVersion===void 0&&e.push(`verificationMaterial.tlogEntries[${s}].kindVersion`)})}return e}o(qS,"validateBundleBase");function pD0(t){let e=[];return t.verificationMaterial&&t.verificationMaterial.tlogEntries?.length>0&&t.verificationMaterial.tlogEntries.forEach((r,s)=>{r.inclusionPromise===void 0&&e.push(`verificationMaterial.tlogEntries[${s}].inclusionPromise`)}),e}o(pD0,"validateInclusionPromise");function _4e(t){let e=[];return t.verificationMaterial&&t.verificationMaterial.tlogEntries?.length>0&&t.verificationMaterial.tlogEntries.forEach((r,s)=>{r.inclusionProof===void 0?e.push(`verificationMaterial.tlogEntries[${s}].inclusionProof`):r.inclusionProof.checkpoint===void 0&&e.push(`verificationMaterial.tlogEntries[${s}].inclusionProof.checkpoint`)}),e}o(_4e,"validateInclusionProof");function lD0(t){let e=[];return t.verificationMaterial?.content?.$case==="x509CertificateChain"&&e.push("verificationMaterial.content.$case"),e}o(lD0,"validateNoCertificateChain")});var Q4e=h(dc=>{"use strict";Object.defineProperty(dc,"__esModule",{value:!0});dc.envelopeToJSON=dc.envelopeFromJSON=dc.bundleToJSON=dc.bundleFromJSON=void 0;var IS=ep(),L4e=ES(),$V=jV(),AD0=o(t=>{let e=IS.Bundle.fromJSON(t);switch(e.mediaType){case L4e.BUNDLE_V01_MEDIA_TYPE:(0,$V.assertBundleV01)(e);break;case L4e.BUNDLE_V02_MEDIA_TYPE:(0,$V.assertBundleV02)(e);break;default:(0,$V.assertBundleLatest)(e);break}return e},"bundleFromJSON");dc.bundleFromJSON=AD0;var dD0=o(t=>IS.Bundle.toJSON(t),"bundleToJSON");dc.bundleToJSON=dD0;var fD0=o(t=>IS.Envelope.fromJSON(t),"envelopeFromJSON");dc.envelopeFromJSON=fD0;var hD0=o(t=>IS.Envelope.toJSON(t),"envelopeToJSON");dc.envelopeToJSON=hD0});var yE=h(Je=>{"use strict";Object.defineProperty(Je,"__esModule",{value:!0});Je.isBundleV01=Je.assertBundleV02=Je.assertBundleV01=Je.assertBundleLatest=Je.assertBundle=Je.envelopeToJSON=Je.envelopeFromJSON=Je.bundleToJSON=Je.bundleFromJSON=Je.ValidationError=Je.isBundleWithPublicKey=Je.isBundleWithMessageSignature=Je.isBundleWithDsseEnvelope=Je.isBundleWithCertificateChain=Je.BUNDLE_V03_MEDIA_TYPE=Je.BUNDLE_V03_LEGACY_MEDIA_TYPE=Je.BUNDLE_V02_MEDIA_TYPE=Je.BUNDLE_V01_MEDIA_TYPE=Je.toMessageSignatureBundle=Je.toDSSEBundle=void 0;var P4e=x4e();Object.defineProperty(Je,"toDSSEBundle",{enumerable:!0,get:o(function(){return P4e.toDSSEBundle},"get")});Object.defineProperty(Je,"toMessageSignatureBundle",{enumerable:!0,get:o(function(){return P4e.toMessageSignatureBundle},"get")});var oA=ES();Object.defineProperty(Je,"BUNDLE_V01_MEDIA_TYPE",{enumerable:!0,get:o(function(){return oA.BUNDLE_V01_MEDIA_TYPE},"get")});Object.defineProperty(Je,"BUNDLE_V02_MEDIA_TYPE",{enumerable:!0,get:o(function(){return oA.BUNDLE_V02_MEDIA_TYPE},"get")});Object.defineProperty(Je,"BUNDLE_V03_LEGACY_MEDIA_TYPE",{enumerable:!0,get:o(function(){return oA.BUNDLE_V03_LEGACY_MEDIA_TYPE},"get")});Object.defineProperty(Je,"BUNDLE_V03_MEDIA_TYPE",{enumerable:!0,get:o(function(){return oA.BUNDLE_V03_MEDIA_TYPE},"get")});Object.defineProperty(Je,"isBundleWithCertificateChain",{enumerable:!0,get:o(function(){return oA.isBundleWithCertificateChain},"get")});Object.defineProperty(Je,"isBundleWithDsseEnvelope",{enumerable:!0,get:o(function(){return oA.isBundleWithDsseEnvelope},"get")});Object.defineProperty(Je,"isBundleWithMessageSignature",{enumerable:!0,get:o(function(){return oA.isBundleWithMessageSignature},"get")});Object.defineProperty(Je,"isBundleWithPublicKey",{enumerable:!0,get:o(function(){return oA.isBundleWithPublicKey},"get")});var bD0=VV();Object.defineProperty(Je,"ValidationError",{enumerable:!0,get:o(function(){return bD0.ValidationError},"get")});var RS=Q4e();Object.defineProperty(Je,"bundleFromJSON",{enumerable:!0,get:o(function(){return RS.bundleFromJSON},"get")});Object.defineProperty(Je,"bundleToJSON",{enumerable:!0,get:o(function(){return RS.bundleToJSON},"get")});Object.defineProperty(Je,"envelopeFromJSON",{enumerable:!0,get:o(function(){return RS.envelopeFromJSON},"get")});Object.defineProperty(Je,"envelopeToJSON",{enumerable:!0,get:o(function(){return RS.envelopeToJSON},"get")});var EE=jV();Object.defineProperty(Je,"assertBundle",{enumerable:!0,get:o(function(){return EE.assertBundle},"get")});Object.defineProperty(Je,"assertBundleLatest",{enumerable:!0,get:o(function(){return EE.assertBundleLatest},"get")});Object.defineProperty(Je,"assertBundleV01",{enumerable:!0,get:o(function(){return EE.assertBundleV01},"get")});Object.defineProperty(Je,"assertBundleV02",{enumerable:!0,get:o(function(){return EE.assertBundleV02},"get")});Object.defineProperty(Je,"isBundleV01",{enumerable:!0,get:o(function(){return EE.isBundleV01},"get")})});var CE=h(wS=>{"use strict";Object.defineProperty(wS,"__esModule",{value:!0});wS.ByteStream=void 0;var YV=class extends Error{static{o(this,"StreamError")}},JV=class t{static{o(this,"ByteStream")}static BLOCK_SIZE=1024;buf;view;start=0;constructor(e){e?(this.buf=e,this.view=Buffer.from(e)):(this.buf=Buffer.alloc(0),this.view=Buffer.from(this.buf))}get buffer(){return this.view.subarray(0,this.start)}get length(){return this.view.byteLength}get position(){return this.start}seek(e){this.start=e}slice(e,r){let s=e+r;if(s>this.length)throw new YV("request past end of buffer");return this.view.subarray(e,s)}appendChar(e){this.ensureCapacity(1),this.view[this.start]=e,this.start+=1}appendUint16(e){this.ensureCapacity(2);let r=new Uint16Array([e]),s=new Uint8Array(r.buffer);this.view[this.start]=s[1],this.view[this.start+1]=s[0],this.start+=2}appendUint24(e){this.ensureCapacity(3);let r=new Uint32Array([e]),s=new Uint8Array(r.buffer);this.view[this.start]=s[2],this.view[this.start+1]=s[1],this.view[this.start+2]=s[0],this.start+=3}appendView(e){this.ensureCapacity(e.length),this.view.set(e,this.start),this.start+=e.length}getBlock(e){if(e<=0)return Buffer.alloc(0);if(this.start+e>this.view.length)throw new Error("request past end of buffer");let r=this.view.subarray(this.start,this.start+e);return this.start+=e,r}getUint8(){return this.getBlock(1)[0]}getUint16(){let e=this.getBlock(2);return e[0]<<8|e[1]}ensureCapacity(e){if(this.start+e>this.view.byteLength){let r=t.BLOCK_SIZE+(e>t.BLOCK_SIZE?e:0);this.realloc(this.view.byteLength+r)}}realloc(e){let r=Buffer.alloc(e),s=Buffer.from(r);s.set(this.view),this.buf=r,this.view=s}};wS.ByteStream=JV});var SS=h(xM=>{"use strict";Object.defineProperty(xM,"__esModule",{value:!0});xM.ASN1TypeError=xM.ASN1ParseError=void 0;var KV=class extends Error{static{o(this,"ASN1ParseError")}};xM.ASN1ParseError=KV;var ZV=class extends Error{static{o(this,"ASN1TypeError")}};xM.ASN1TypeError=ZV});var U4e=h(NS=>{"use strict";Object.defineProperty(NS,"__esModule",{value:!0});NS.decodeLength=MD0;NS.encodeLength=mD0;var k4e=SS();function MD0(t){let e=t.getUint8();if((e&128)===0)return e;let r=e&127;if(r>6)throw new k4e.ASN1ParseError("length exceeds 6 byte limit");let s=0;for(let n=0;n{"use strict";var aq0=Vn&&Vn.__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:o(function(){return e[r]},"get")}),Object.defineProperty(t,s,n)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),cq0=Vn&&Vn.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),lBe=Vn&&Vn.__importStar||(function(){var t=o(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)},"ownKeys");return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var s=t(e),n=0;n1)r=e;else if(this.head)s=this.head.next,r=this.head.value;else throw new TypeError("Reduce of empty list with no initial value");for(var n=0;s!==null;n++)r=t(r,s.value,n),s=s.next;return r};B0.prototype.reduceReverse=function(t,e){var r,s=this.tail;if(arguments.length>1)r=e;else if(this.tail)s=this.tail.prev,r=this.tail.value;else throw new TypeError("Reduce of empty list with no initial value");for(var n=this.length-1;s!==null;n--)r=t(r,s.value,n),s=s.prev;return r};B0.prototype.toArray=function(){for(var t=new Array(this.length),e=0,r=this.head;r!==null;e++)t[e]=r.value,r=r.next;return t};B0.prototype.toArrayReverse=function(){for(var t=new Array(this.length),e=0,r=this.tail;r!==null;e++)t[e]=r.value,r=r.prev;return t};B0.prototype.slice=function(t,e){e=e||this.length,e<0&&(e+=this.length),t=t||0,t<0&&(t+=this.length);var r=new B0;if(e