"use strict";(globalThis.webpackChunkproton_pass_extension=globalThis.webpackChunkproton_pass_extension||[]).push([["node_modules_pmcrypto_lib_crypto__md5_ts"],{27816:(t,e,s)=>{s.d(e,{TQ:()=>i,ol:()=>o,r9:()=>r});var n=s(27997);function r(t,e,s){return t&e^~t&s}function i(t,e,s){return t&e^t&s^e&s}class o extends n.Vw{constructor(t,e,s,r){super(),this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.blockLen=t,this.outputLen=e,this.padOffset=s,this.isLE=r,this.buffer=new Uint8Array(t),this.view=(0,n.O8)(this.buffer)}update(t){(0,n.CC)(this),t=(0,n.ZJ)(t),(0,n.DO)(t);let{view:e,buffer:s,blockLen:r}=this,i=t.length;for(let o=0;o<i;){let h=Math.min(r-this.pos,i-o);if(h===r){let e=(0,n.O8)(t);for(;r<=i-o;o+=r)this.process(e,o);continue}s.set(t.subarray(o,o+h),this.pos),this.pos+=h,o+=h,this.pos===r&&(this.process(e,0),this.pos=0)}return this.length+=t.length,this.roundClean(),this}digestInto(t){(0,n.CC)(this),(0,n.Ht)(t,this),this.finished=!0;let{buffer:e,view:s,blockLen:r,isLE:i}=this,{pos:o}=this;e[o++]=128,(0,n.uH)(this.buffer.subarray(o)),this.padOffset>r-o&&(this.process(s,0),o=0);for(let t=o;t<r;t++)e[t]=0;!function(t,e,s,n){if("function"==typeof t.setBigUint64)return t.setBigUint64(e,s,n);let r=BigInt(32),i=BigInt(0xffffffff),o=Number(s>>r&i),h=Number(s&i),f=4*!!n,l=4*!n;t.setUint32(e+f,o,n),t.setUint32(e+l,h,n)}(s,r-8,BigInt(8*this.length),i),this.process(s,0);let h=(0,n.O8)(t),f=this.outputLen;if(f%4)throw Error("_sha2: outputLen should be aligned to 32bit");let l=f/4,u=this.get();if(l>u.length)throw Error("_sha2: outputLen bigger than state");for(let t=0;t<l;t++)h.setUint32(4*t,u[t],i)}digest(){let{buffer:t,outputLen:e}=this;this.digestInto(t);let s=t.slice(0,e);return this.destroy(),s}_cloneInto(t){t||(t=new this.constructor),t.set(...this.get());let{blockLen:e,buffer:s,length:n,finished:r,destroyed:i,pos:o}=this;return t.destroyed=i,t.finished=r,t.length=n,t.pos=o,n%e&&t.buffer.set(s),t}clone(){return this._cloneInto()}}},27997:(t,e,s)=>{function n(t,...e){if(!(t instanceof Uint8Array||ArrayBuffer.isView(t)&&"Uint8Array"===t.constructor.name))throw Error("Uint8Array expected");if(e.length>0&&!e.includes(t.length))throw Error("Uint8Array expected of length "+e+", got length="+t.length)}function r(t,e=!0){if(t.destroyed)throw Error("Hash instance has been destroyed");if(e&&t.finished)throw Error("Hash#digest() has already been called")}function i(t,e){n(t);let s=e.outputLen;if(t.length<s)throw Error("digestInto() expects output buffer of length at least "+s)}function o(...t){for(let e=0;e<t.length;e++)t[e].fill(0)}function h(t){return new DataView(t.buffer,t.byteOffset,t.byteLength)}function f(t,e){return t<<e|t>>>32-e>>>0}function l(t){return"string"==typeof t&&(t=function(t){if("string"!=typeof t)throw Error("string expected");return new Uint8Array(new TextEncoder().encode(t))}(t)),n(t),t}s.d(e,{CC:()=>r,DO:()=>n,Ht:()=>i,O8:()=>h,Vw:()=>u,ZJ:()=>l,aZ:()=>f,ld:()=>c,qj:()=>a,uH:()=>o});class u{}function a(t){let e=e=>t().update(l(e)).digest(),s=t();return e.outputLen=s.outputLen,e.blockLen=s.blockLen,e.create=()=>t(),e}let c=a},38667:(t,e,s)=>{s.d(e,{md5:()=>u});var n=s(27816),r=s(27997);let i=Array.from({length:64},(t,e)=>Math.floor(0x100000000*Math.abs(Math.sin(e+1)))),o=(t,e,s)=>t&e^~t&s,h=new Uint32Array([0x67452301,0xefcdab89,0x98badcfe,0x10325476]),f=new Uint32Array(16);class l extends n.ol{A=0|h[0];B=0|h[1];C=0|h[2];D=0|h[3];constructor(){super(64,16,8,!0)}get(){let{A:t,B:e,C:s,D:n}=this;return[t,e,s,n]}set(t,e,s,n){this.A=0|t,this.B=0|e,this.C=0|s,this.D=0|n}process(t,e){for(let s=0;s<16;s++,e+=4)f[s]=t.getUint32(e,!0);let{A:s,B:n,C:h,D:l}=this;for(let t=0;t<64;t++){let e,u,a;t<16?(e=o(n,h,l),u=t,a=[7,12,17,22]):t<32?(e=o(l,n,h),u=(5*t+1)%16,a=[5,9,14,20]):t<48?(e=n^h^l,u=(3*t+5)%16,a=[4,11,16,23]):(e=h^(n|~l),u=7*t%16,a=[6,10,15,21]),e=e+s+i[t]+f[u],s=l,l=h,h=n,n+=(0,r.aZ)(e,a[t%4])}s=s+this.A|0,n=n+this.B|0,h=h+this.C|0,l=l+this.D|0,this.set(s,n,h,l)}roundClean(){f.fill(0)}destroy(){this.set(0,0,0,0),this.buffer.fill(0)}}let u=(0,r.ld)(()=>new l)}}]);
