/*! OpenPGP.js v5.11.2 - 2024-06-19 - this is LGPL licensed code, see LICENSE/our website https://openpgpjs.org/ for more information. */constqe="undefined"!=typeofwindow?window:"undefined"!=typeofglobal?global:"undefined"!=typeofself?self:{};Object.defineProperty(Se,"__esModule",{value:!0});varFe=Ce(4300),$e=Ce(2781),rt=Ce(6113),it=Ce(9796),nt=Ce(2037),st=Ce(3837),ut=Ce(4293);functionc(Ae){returnAe&&"object"==typeofAe&&"default"inAe?Ae:{default:Ae}}varht=c(Fe),ft=c($e),yt=c(rt),vt=c(it),_t=c(nt),Ct=c(st),Rt=c(ut);constUt=Symbol("doneWritingPromise"),It=Symbol("doneWritingResolve"),Ot=Symbol("doneWritingReject"),Nt=Symbol("readingIndex");classvextendsArray{constructor(){super(),this[Ut]=newPromise(((Ae,Se)=>{this[It]=Ae,this[Ot]=Se})),this[Ut].catch((()=>{}))}}function_(Ae){returnAe&&Ae.getReader&&Array.isArray(Ae)}functionk(Ae){if(!_(Ae)){constSe=Ae.getWriter(),Ce=Se.releaseLock;returnSe.releaseLock=()=>{Se.closed.catch((function(){})),Ce.call(Se)},Se}this.stream=Ae}v.prototype.getReader=function(){returnvoid0===this[Nt]&&(this[Nt]=0),{read:async()=>(awaitthis[Ut],this[Nt]===this.length?{value:void0,done:!0}:{value:this[this[Nt]++],done:!1})}},v.prototype.readToEnd=asyncfunction(Ae){awaitthis[Ut];constSe=Ae(this.slice(this[Nt]));returnthis.length=0,Se},v.prototype.clone=function(){constAe=newv;returnAe[Ut]=this[Ut].then((()=>{Ae.push(...this)})),Ae},k.prototype.write=asyncfunction(Ae){this.stream.push(Ae)},k.prototype.close=asyncfunction(){this.stream[It]()},k.prototype.abort=asyncfunction(Ae){returnthis.stream[Ot](Ae),Ae},k.prototype.releaseLock=function(){};constjt="object"==typeofqe.process&&"object"==typeofqe.process.versions,Ft=jt&&ft.default.Readable;functionE(Ae){return_(Ae)?"array":qe.ReadableStream&&qe.ReadableStream.prototype.isPrototypeOf(Ae)?"web":Xt&&Xt.prototype.isPrototypeOf(Ae)?"ponyfill":Ft&&Ft.prototype.isPrototypeOf(Ae)?"node":!(!Ae||!Ae.getReader)&&"web-like"}functionP(Ae){returnUint8Array.prototype.isPrototypeOf(Ae)}functionx(Ae){if(1===Ae.length)returnAe[0];letSe=0;for(letCe=0;Ce<Ae.length;Ce++){if(!P(Ae[Ce]))throwError("concatUint8Array: Data must be in the form of a Uint8Array");Se+=Ae[Ce].length}constCe=newUint8Array(Se);letqe=0;returnAe.forEach((function(Ae){Ce.set(Ae,qe),qe+=Ae.length})),Ce}constLt=jt&&ht.default.Buffer,Ht=jt&&ft.default.Readable;letWt,Gt;if(Ht){Wt=function(Ae){letSe=!1;returnnewXt({start(Ce){Ae.pause(),Ae.on("data",(qe=>{Se||(Lt.isBuffer(qe)&&(qe=newUint8Array(qe.buffer,qe.byteOffset,qe.byteLength)),Ce.enqueue(qe),Ae.pause())})),Ae.on("end",(()=>{Se||Ce.close()})),Ae.on("error",(Ae=>Ce.error(Ae)))},pull(){Ae.resume()},cancel(Ce){Se=!0,Ae.destroy(Ce)}})};classeextendsHt{constructor(Ae,Se){super(Se),this._reader=W(Ae)}async_read(Ae){try{for(;;){const{done:Ae,value:Se}=awaitthis._reader.read();if(Ae){this.push(null);break}if(!this.push(Se))break}}catch(Ae){this.destroy(Ae)}}async_destroy(Ae,Se){this._reader.cancel(Ae).then(Se,Se)}}Gt=function(Ae,Se){returnnewe(Ae,Se)}}const$t=newWeakSet,Vt=Symbol("externalBuffer");functionI(Ae){if(this.stream=Ae,Ae[Vt]&&(this[Vt]=Ae[Vt].slice()),_(Ae)){constSe=Ae.getReader();returnthis._read=Se.read.bind(Se),this._releaseLock=()=>{},void(this._cancel=async()=>{})}letSe=E(Ae);if("node"===Se&&(Ae=Wt(Ae)),Se){constSe=Ae.getReader();returnthis._read=Se.read.bind(Se),this._releaseLock=()=>{Se.closed.catch((function(){})),Se.releaseLock()},void(this._cancel=Se.cancel.bind(Se))}letCe=!1;this._read=async()=>Ce||$t.has(Ae)?{value:void0,done:!0}:(Ce=!0,{value:Ae,done:!1}),this._releaseLock=()=>{if(Ce)try{$t.add(Ae)}catch(Ae){}}}I.prototype.read=asyncfunction(){if(this[Vt]&&this[Vt].length){return{done:!1,value:this[Vt].shift()}}returnthis._read()},I.prototype.releaseLock=function(){this[Vt]&&(this.stream[Vt]=this[Vt]),this._releaseLock()},I.prototype.cancel=function(Ae){returnthis._cancel(Ae)},I.prototype.readLine=asyncfunction(){letAe,Se=[];for(;!Ae;){let{done:Ce,value:qe}=awaitthis.read();if(qe+="",Ce)returnSe.length?H(Se):void0;constFe=qe.indexOf("\n")+1;Fe&&(Ae=H(Se.c