d||4>=j?k:b[l[k>>>24]]^x[l[k>>>16&255]]^q[l[k>>>
-8&255]]^n[l[k&255]]},encryptBlock:function(a,b){this._doCryptBlock(a,b,this._keySchedule,t,r,w,v,l)},decryptBlock:function(a,c){var d=a[c+1];a[c+1]=a[c+3];a[c+3]=d;this._doCryptBlock(a,c,this._invKeySchedule,b,x,q,n,s);d=a[c+1];a[c+1]=a[c+3];a[c+3]=d},_doCryptBlock:function(a,b,c,d,e,j,l,f){for(var m=this._nRounds,g=a[b]^c[0],h=a[b+1]^c[1],k=a[b+2]^c[2],n=a[b+3]^c[3],p=4,r=1;r>>24]^e[h>>>16&255]^j[k>>>8&255]^l[n&255]^c[p++],s=d[h>>>24]^e[k>>>16&255]^j[n>>>8&255]^l[g&255]^c[p++],t=
-d[k>>>24]^e[n>>>16&255]^j[g>>>8&255]^l[h&255]^c[p++],n=d[n>>>24]^e[g>>>16&255]^j[h>>>8&255]^l[k&255]^c[p++],g=q,h=s,k=t;q=(f[g>>>24]<<24|f[h>>>16&255]<<16|f[k>>>8&255]<<8|f[n&255])^c[p++];s=(f[h>>>24]<<24|f[k>>>16&255]<<16|f[n>>>8&255]<<8|f[g&255])^c[p++];t=(f[k>>>24]<<24|f[n>>>16&255]<<16|f[g>>>8&255]<<8|f[h&255])^c[p++];n=(f[n>>>24]<<24|f[g>>>16&255]<<16|f[h>>>8&255]<<8|f[k&255])^c[p++];a[b]=q;a[b+1]=s;a[b+2]=t;a[b+3]=n},keySize:8});u.AES=p._createHelper(d)})();
diff --git a/WWW/_sandbox/AESBox/index.htm b/WWW/_sandbox/AESBox/index.htm
deleted file mode 100644
index a79e7e6b..00000000
--- a/WWW/_sandbox/AESBox/index.htm
+++ /dev/null
@@ -1,93 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/WWW/_sandbox/AESBox/index.html b/WWW/_sandbox/AESBox/index.html
deleted file mode 100644
index 8cdf3e78..00000000
--- a/WWW/_sandbox/AESBox/index.html
+++ /dev/null
@@ -1,60 +0,0 @@
-
-
-
-
- CryptoJS Decryption
-
-
-
-
-
-
- CryptoJS Decryption
- Please enter the password to decrypt the hidden value:
-
-
-
-
-
-Please wait...
-Insert new note:
-
-
-
-
-
diff --git a/WWW/_sandbox/AESBox/openpgp.min.js b/WWW/_sandbox/AESBox/openpgp.min.js
deleted file mode 100644
index dc54e41f..00000000
--- a/WWW/_sandbox/AESBox/openpgp.min.js
+++ /dev/null
@@ -1,2 +0,0 @@
-/*! OpenPGP.js v2.6.2 - 2018-01-21 - this is LGPL licensed code, see LICENSE/our website http://openpgpjs.org/ for more information. */
-!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).openpgp=e()}}(function(){return function e(t,r,n){function i(a,o){if(!r[a]){if(!t[a]){var u="function"==typeof require&&require;if(!o&&u)return u(a,!0);if(s)return s(a,!0);var f=new Error("Cannot find module '"+a+"'");throw f.code="MODULE_NOT_FOUND",f}var h=r[a]={exports:{}};t[a][0].call(h.exports,function(e){var r=t[a][1][e];return i(r||e)},h,h.exports,e,t,r,n)}return r[a].exports}for(var s="function"==typeof require&&require,a=0;a=r)throw new Error("Malformed string, low surrogate expected at position "+i);a=(55296^a)<<10|65536|56320^e.charCodeAt(i)}else if(!t&&a>>>8)throw new Error("Wide characters are not allowed.");!t||a<=127?n[s++]=a:a<=2047?(n[s++]=192|a>>6,n[s++]=128|63&a):a<=65535?(n[s++]=224|a>>12,n[s++]=128|a>>6&63,n[s++]=128|63&a):(n[s++]=240|a>>18,n[s++]=128|a>>12&63,n[s++]=128|a>>6&63,n[s++]=128|63&a)}return n.subarray(0,s)}function o(e){return btoa(function(e,t){t=!!t;for(var r=e.length,n=new Array(r),i=0,s=0;i=192&&a<224&&i+1=224&&a<240&&i+2=240&&a<248&&i+3>10,n[s++]=56320|1023&o)}}for(var u="",i=0;i>2,r.getUint32(0),r.getUint32(4),r.getUint32(8),r.getUint32(12),t>16?r.getUint32(16):0,t>16?r.getUint32(20):0,t>24?r.getUint32(24):0,t>24?r.getUint32(28):0),this.key=e}else if(!this.key)throw new Error("key is required")}.call(this,e.key),this.hasOwnProperty("iv")&&y.call(this,e.iv),this.hasOwnProperty("padding")&&function(e){this.padding=void 0===e||!!e}.call(this,e.padding),this}function m(e){if(f(e)&&(e=a(e)),h(e)&&(e=new Uint8Array(e)),!l(e))throw new TypeError("data isn't of expected type");for(var t=this.asm,r=this.heap,n=D.ENC[this.mode],i=D.HEAP_DATA,s=this.pos,o=this.len,u=0,c=e.length||0,p=0,y=o+c&-16,g=0,m=new Uint8Array(y);c>0;)o+=g=d(r,s+o,e,u,c),u+=g,c-=g,(g=t.cipher(n,i+s,o))&&m.set(r.subarray(s,s+g),p),p+=g,g0;)o+=m=d(r,s+o,e,u,c),u+=m,c-=m,(m=t.cipher(n,i+s,o-(c?0:g)))&&v.set(r.subarray(s,s+m),p),p+=m,m0){if(h%16){if(this.hasOwnProperty("padding"))throw new i("data length must be a multiple of the block size");h+=16-h%16}if(n.cipher(o,u+f,h),this.hasOwnProperty("padding")&&this.padding){var c=a[f+l-1];if(c<1||c>16||c>l)throw new s("bad padding");for(var d=0,p=c;p>1;p--)d|=c^a[f+l-p];if(d)throw new s("bad padding");l-=c}}var y=new Uint8Array(r+l);return r>0&&y.set(t),l>0&&y.set(a.subarray(f,f+l),r),this.result=y,this.pos=0,this.len=0,this}function k(e){this.iv=null,p.call(this,e),this.mode="CFB"}function A(e){k.call(this,e)}function _(e){k.call(this,e)}function E(e){this.nonce=null,this.counter=0,this.counterSize=0,p.call(this,e),this.mode="CTR"}function S(e){return e=e||{},g.call(this,e),function(e,t,r){if(void 0!==r){if(r<8||r>48)throw new i("illegal counter size");this.counterSize=r;var n=Math.pow(2,r)-1;this.asm.set_mask(0,0,n/4294967296|0,0|n)}else this.counterSize=r=48,this.asm.set_mask(0,0,65535,4294967295);if(void 0===e)throw new Error("nonce is required");if(h(e)||l(e))e=new Uint8Array(e);else{if(!f(e))throw new TypeError("unexpected nonce type");e=a(e)}var s=e.length;if(!s||s>16)throw new i("illegal nonce size");this.nonce=e;var o=new DataView(new ArrayBuffer(16));if(new Uint8Array(o.buffer).set(e),this.asm.set_nonce(o.getUint32(0),o.getUint32(4),o.getUint32(8),o.getUint32(12)),void 0!==t){if(!u(t))throw new TypeError("unexpected counter type");if(t<0||t>=Math.pow(2,r))throw new i("illegal counter value");this.counter=t,this.asm.set_counter(0,0,t/4294967296|0,0|t)}else this.counter=t=0}.call(this,e.nonce,e.counter,e.counterSize),this}function U(e){for(var t=this.heap,r=this.asm,n=0,i=e.length||0,s=0;i>0;){for(n+=s=d(t,0,e,n,i),i-=s;15&s;)t[s++]=0;r.mac(D.MAC.GCM,D.HEAP_DATA,s)}}function K(e){this.nonce=null,this.adata=null,this.iv=null,this.counter=1,this.tagSize=16,p.call(this,e),this.mode="GCM"}function P(e){K.call(this,e)}function j(e){K.call(this,e)}function x(e){g.call(this,e=e||{});var t=this.asm,r=this.heap;t.gcm_init();var n=e.tagSize;if(void 0!==n){if(!u(n))throw new TypeError("tagSize must be a number");if(n<4||n>16)throw new i("illegal tagSize value");this.tagSize=n}else this.tagSize=16;var s=e.nonce;if(void 0===s)throw new Error("nonce is required");if(l(s)||h(s))s=new Uint8Array(s);else{if(!f(s))throw new TypeError("unexpected nonce type");s=a(s)}this.nonce=s;var o=s.length||0,c=new Uint8Array(16);12!==o?(U.call(this,s),r[0]=r[1]=r[2]=r[3]=r[4]=r[5]=r[6]=r[7]=r[8]=r[9]=r[10]=0,r[11]=o>>>29,r[12]=o>>>21&255,r[13]=o>>>13&255,r[14]=o>>>5&255,r[15]=o<<3&255,t.mac(D.MAC.GCM,D.HEAP_DATA,16),t.get_iv(D.HEAP_DATA),t.set_iv(),c.set(r.subarray(0,16))):(c.set(s),c[15]=1);var d=new DataView(c.buffer);this.gamma0=d.getUint32(12),t.set_nonce(d.getUint32(0),d.getUint32(4),d.getUint32(8),0),t.set_mask(0,0,0,4294967295);var p=e.adata;if(void 0!==p&&null!==p){if(l(p)||h(p))p=new Uint8Array(p);else{if(!f(p))throw new TypeError("unexpected adata type");p=a(p)}if(p.length>z)throw new i("illegal adata length");p.length?(this.adata=p,U.call(this,p)):this.adata=null}else this.adata=null;var m=e.counter;if(void 0!==m){if(!u(m))throw new TypeError("counter must be a number");if(m<1||m>4294967295)throw new RangeError("counter must be a positive 32-bit integer");this.counter=m,t.set_counter(0,0,0,this.gamma0+m|0)}else this.counter=1,t.set_counter(0,0,0,this.gamma0+1|0);var v=e.iv;if(void 0!==v){if(!u(m))throw new TypeError("counter must be a number");this.iv=v,y.call(this,v)}return this}function T(e){if(f(e)&&(e=a(e)),h(e)&&(e=new Uint8Array(e)),!l(e))throw new TypeError("data isn't of expected type");var t=0,r=e.length||0,n=this.asm,i=this.heap,s=this.counter,o=this.pos,u=this.len,c=0,p=u+r&-16,y=0;if((s-1<<4)+u+r>z)throw new RangeError("counter overflow");for(var g=new Uint8Array(p);r>0;)u+=y=d(i,o+u,e,t,r),t+=y,r-=y,y=n.cipher(D.ENC.CTR,D.HEAP_DATA+o,u),(y=n.mac(D.MAC.GCM,D.HEAP_DATA+o,y))&&g.set(i.subarray(o,o+y),c),s+=y>>>4,c+=y,y>>29,t[4]=f>>>21,t[5]=f>>>13&255,t[6]=f>>>5&255,t[7]=f<<3&255,t[8]=t[9]=t[10]=0,t[11]=h>>>29,t[12]=h>>>21&255,t[13]=h>>>13&255,t[14]=h>>>5&255,t[15]=h<<3&255,e.mac(D.MAC.GCM,D.HEAP_DATA,16),e.get_iv(D.HEAP_DATA),e.set_counter(0,0,0,this.gamma0),e.cipher(D.ENC.CTR,D.HEAP_DATA,16),o.set(t.subarray(0,n),a),this.result=o,this.counter=1,this.pos=0,this.len=0,this}function C(e){if(f(e)&&(e=a(e)),h(e)&&(e=new Uint8Array(e)),!l(e))throw new TypeError("data isn't of expected type");var t=0,r=e.length||0,n=this.asm,i=this.heap,s=this.counter,o=this.tagSize,u=this.pos,c=this.len,p=0,y=c+r>o?c+r-o&-16:0,g=c+r-y,m=0;if((s-1<<4)+c+r>z)throw new RangeError("counter overflow");for(var v=new Uint8Array(y);r>g;)c+=m=d(i,u+c,e,t,r-g),t+=m,r-=m,m=n.mac(D.MAC.GCM,D.HEAP_DATA+u,m),(m=n.cipher(D.DEC.CTR,D.HEAP_DATA+u,m))&&v.set(i.subarray(u,u+m),p),s+=m>>>4,p+=m,u=0,c=0;return r>0&&(c+=d(i,0,e,t,r)),this.result=v,this.counter=s,this.pos=u,this.len=c,this}function I(){var e=this.asm,t=this.heap,r=this.tagSize,i=this.adata,a=this.counter,o=this.pos,u=this.len,f=u-r;if(u>>29,t[4]=d>>>21,t[5]=d>>>13&255,t[6]=d>>>5&255,t[7]=d<<3&255,t[8]=t[9]=t[10]=0,t[11]=p>>>29,t[12]=p>>>21&255,t[13]=p>>>13&255,t[14]=p>>>5&255,t[15]=p<<3&255,e.mac(D.MAC.GCM,D.HEAP_DATA,16),e.get_iv(D.HEAP_DATA),e.set_counter(0,0,0,this.gamma0),e.cipher(D.ENC.CTR,D.HEAP_DATA,16);for(var y=0,c=0;c>>6^P>>>11^P>>>25^P<<26^P<<21^P<<7)+(x^P&(j^x))+0x428a2f98|0;T=x;x=j;j=P;P=K+O|0;K=U;U=S;S=E;E=O+(S&U^K&(S^U))+(S>>>2^S>>>13^S>>>22^S<<30^S<<19^S<<10)|0;O=t+T+(P>>>6^P>>>11^P>>>25^P<<26^P<<21^P<<7)+(x^P&(j^x))+0x71374491|0;T=x;x=j;j=P;P=K+O|0;K=U;U=S;S=E;E=O+(S&U^K&(S^U))+(S>>>2^S>>>13^S>>>22^S<<30^S<<19^S<<10)|0;O=r+T+(P>>>6^P>>>11^P>>>25^P<<26^P<<21^P<<7)+(x^P&(j^x))+0xb5c0fbcf|0;T=x;x=j;j=P;P=K+O|0;K=U;U=S;S=E;E=O+(S&U^K&(S^U))+(S>>>2^S>>>13^S>>>22^S<<30^S<<19^S<<10)|0;O=l+T+(P>>>6^P>>>11^P>>>25^P<<26^P<<21^P<<7)+(x^P&(j^x))+0xe9b5dba5|0;T=x;x=j;j=P;P=K+O|0;K=U;U=S;S=E;E=O+(S&U^K&(S^U))+(S>>>2^S>>>13^S>>>22^S<<30^S<<19^S<<10)|0;O=c+T+(P>>>6^P>>>11^P>>>25^P<<26^P<<21^P<<7)+(x^P&(j^x))+0x3956c25b|0;T=x;x=j;j=P;P=K+O|0;K=U;U=S;S=E;E=O+(S&U^K&(S^U))+(S>>>2^S>>>13^S>>>22^S<<30^S<<19^S<<10)|0;O=d+T+(P>>>6^P>>>11^P>>>25^P<<26^P<<21^P<<7)+(x^P&(j^x))+0x59f111f1|0;T=x;x=j;j=P;P=K+O|0;K=U;U=S;S=E;E=O+(S&U^K&(S^U))+(S>>>2^S>>>13^S>>>22^S<<30^S<<19^S<<10)|0;O=p+T+(P>>>6^P>>>11^P>>>25^P<<26^P<<21^P<<7)+(x^P&(j^x))+0x923f82a4|0;T=x;x=j;j=P;P=K+O|0;K=U;U=S;S=E;E=O+(S&U^K&(S^U))+(S>>>2^S>>>13^S>>>22^S<<30^S<<19^S<<10)|0;O=y+T+(P>>>6^P>>>11^P>>>25^P<<26^P<<21^P<<7)+(x^P&(j^x))+0xab1c5ed5|0;T=x;x=j;j=P;P=K+O|0;K=U;U=S;S=E;E=O+(S&U^K&(S^U))+(S>>>2^S>>>13^S>>>22^S<<30^S<<19^S<<10)|0;O=g+T+(P>>>6^P>>>11^P>>>25^P<<26^P<<21^P<<7)+(x^P&(j^x))+0xd807aa98|0;T=x;x=j;j=P;P=K+O|0;K=U;U=S;S=E;E=O+(S&U^K&(S^U))+(S>>>2^S>>>13^S>>>22^S<<30^S<<19^S<<10)|0;O=m+T+(P>>>6^P>>>11^P>>>25^P<<26^P<<21^P<<7)+(x^P&(j^x))+0x12835b01|0;T=x;x=j;j=P;P=K+O|0;K=U;U=S;S=E;E=O+(S&U^K&(S^U))+(S>>>2^S>>>13^S>>>22^S<<30^S<<19^S<<10)|0;O=v+T+(P>>>6^P>>>11^P>>>25^P<<26^P<<21^P<<7)+(x^P&(j^x))+0x243185be|0;T=x;x=j;j=P;P=K+O|0;K=U;U=S;S=E;E=O+(S&U^K&(S^U))+(S>>>2^S>>>13^S>>>22^S<<30^S<<19^S<<10)|0;O=w+T+(P>>>6^P>>>11^P>>>25^P<<26^P<<21^P<<7)+(x^P&(j^x))+0x550c7dc3|0;T=x;x=j;j=P;P=K+O|0;K=U;U=S;S=E;E=O+(S&U^K&(S^U))+(S>>>2^S>>>13^S>>>22^S<<30^S<<19^S<<10)|0;O=b+T+(P>>>6^P>>>11^P>>>25^P<<26^P<<21^P<<7)+(x^P&(j^x))+0x72be5d74|0;T=x;x=j;j=P;P=K+O|0;K=U;U=S;S=E;E=O+(S&U^K&(S^U))+(S>>>2^S>>>13^S>>>22^S<<30^S<<19^S<<10)|0;O=k+T+(P>>>6^P>>>11^P>>>25^P<<26^P<<21^P<<7)+(x^P&(j^x))+0x80deb1fe|0;T=x;x=j;j=P;P=K+O|0;K=U;U=S;S=E;E=O+(S&U^K&(S^U))+(S>>>2^S>>>13^S>>>22^S<<30^S<<19^S<<10)|0;O=A+T+(P>>>6^P>>>11^P>>>25^P<<26^P<<21^P<<7)+(x^P&(j^x))+0x9bdc06a7|0;T=x;x=j;j=P;P=K+O|0;K=U;U=S;S=E;E=O+(S&U^K&(S^U))+(S>>>2^S>>>13^S>>>22^S<<30^S<<19^S<<10)|0;O=_+T+(P>>>6^P>>>11^P>>>25^P<<26^P<<21^P<<7)+(x^P&(j^x))+0xc19bf174|0;T=x;x=j;j=P;P=K+O|0;K=U;U=S;S=E;E=O+(S&U^K&(S^U))+(S>>>2^S>>>13^S>>>22^S<<30^S<<19^S<<10)|0;e=O=(t>>>7^t>>>18^t>>>3^t<<25^t<<14)+(A>>>17^A>>>19^A>>>10^A<<15^A<<13)+e+m|0;O=O+T+(P>>>6^P>>>11^P>>>25^P<<26^P<<21^P<<7)+(x^P&(j^x))+0xe49b69c1|0;T=x;x=j;j=P;P=K+O|0;K=U;U=S;S=E;E=O+(S&U^K&(S^U))+(S>>>2^S>>>13^S>>>22^S<<30^S<<19^S<<10)|0;t=O=(r>>>7^r>>>18^r>>>3^r<<25^r<<14)+(_>>>17^_>>>19^_>>>10^_<<15^_<<13)+t+v|0;O=O+T+(P>>>6^P>>>11^P>>>25^P<<26^P<<21^P<<7)+(x^P&(j^x))+0xefbe4786|0;T=x;x=j;j=P;P=K+O|0;K=U;U=S;S=E;E=O+(S&U^K&(S^U))+(S>>>2^S>>>13^S>>>22^S<<30^S<<19^S<<10)|0;r=O=(l>>>7^l>>>18^l>>>3^l<<25^l<<14)+(e>>>17^e>>>19^e>>>10^e<<15^e<<13)+r+w|0;O=O+T+(P>>>6^P>>>11^P>>>25^P<<26^P<<21^P<<7)+(x^P&(j^x))+0x0fc19dc6|0;T=x;x=j;j=P;P=K+O|0;K=U;U=S;S=E;E=O+(S&U^K&(S^U))+(S>>>2^S>>>13^S>>>22^S<<30^S<<19^S<<10)|0;l=O=(c>>>7^c>>>18^c>>>3^c<<25^c<<14)+(t>>>17^t>>>19^t>>>10^t<<15^t<<13)+l+b|0;O=O+T+(P>>>6^P>>>11^P>>>25^P<<26^P<<21^P<<7)+(x^P&(j^x))+0x240ca1cc|0;T=x;x=j;j=P;P=K+O|0;K=U;U=S;S=E;E=O+(S&U^K&(S^U))+(S>>>2^S>>>13^S>>>22^S<<30^S<<19^S<<10)|0;c=O=(d>>>7^d>>>18^d>>>3^d<<25^d<<14)+(r>>>17^r>>>19^r>>>10^r<<15^r<<13)+c+k|0;O=O+T+(P>>>6^P>>>11^P>>>25^P<<26^P<<21^P<<7)+(x^P&(j^x))+0x2de92c6f|0;T=x;x=j;j=P;P=K+O|0;K=U;U=S;S=E;E=O+(S&U^K&(S^U))+(S>>>2^S>>>13^S>>>22^S<<30^S<<19^S<<10)|0;d=O=(p>>>7^p>>>18^p>>>3^p<<25^p<<14)+(l>>>17^l>>>19^l>>>10^l<<15^l<<13)+d+A|0;O=O+T+(P>>>6^P>>>11^P>>>25^P<<26^P<<21^P<<7)+(x^P&(j^x))+0x4a7484aa|0;T=x;x=j;j=P;P=K+O|0;K=U;U=S;S=E;E=O+(S&U^K&(S^U))+(S>>>2^S>>>13^S>>>22^S<<30^S<<19^S<<10)|0;p=O=(y>>>7^y>>>18^y>>>3^y<<25^y<<14)+(c>>>17^c>>>19^c>>>10^c<<15^c<<13)+p+_|0;O=O+T+(P>>>6^P>>>11^P>>>25^P<<26^P<<21^P<<7)+(x^P&(j^x))+0x5cb0a9dc|0;T=x;x=j;j=P;P=K+O|0;K=U;U=S;S=E;E=O+(S&U^K&(S^U))+(S>>>2^S>>>13^S>>>22^S<<30^S<<19^S<<10)|0;y=O=(g>>>7^g>>>18^g>>>3^g<<25^g<<14)+(d>>>17^d>>>19^d>>>10^d<<15^d<<13)+y+e|0;O=O+T+(P>>>6^P>>>11^P>>>25^P<<26^P<<21^P<<7)+(x^P&(j^x))+0x76f988da|0;T=x;x=j;j=P;P=K+O|0;K=U;U=S;S=E;E=O+(S&U^K&(S^U))+(S>>>2^S>>>13^S>>>22^S<<30^S<<19^S<<10)|0;g=O=(m>>>7^m>>>18^m>>>3^m<<25^m<<14)+(p>>>17^p>>>19^p>>>10^p<<15^p<<13)+g+t|0;O=O+T+(P>>>6^P>>>11^P>>>25^P<<26^P<<21^P<<7)+(x^P&(j^x))+0x983e5152|0;T=x;x=j;j=P;P=K+O|0;K=U;U=S;S=E;E=O+(S&U^K&(S^U))+(S>>>2^S>>>13^S>>>22^S<<30^S<<19^S<<10)|0;m=O=(v>>>7^v>>>18^v>>>3^v<<25^v<<14)+(y>>>17^y>>>19^y>>>10^y<<15^y<<13)+m+r|0;O=O+T+(P>>>6^P>>>11^P>>>25^P<<26^P<<21^P<<7)+(x^P&(j^x))+0xa831c66d|0;T=x;x=j;j=P;P=K+O|0;K=U;U=S;S=E;E=O+(S&U^K&(S^U))+(S>>>2^S>>>13^S>>>22^S<<30^S<<19^S<<10)|0;v=O=(w>>>7^w>>>18^w>>>3^w<<25^w<<14)+(g>>>17^g>>>19^g>>>10^g<<15^g<<13)+v+l|0;O=O+T+(P>>>6^P>>>11^P>>>25^P<<26^P<<21^P<<7)+(x^P&(j^x))+0xb00327c8|0;T=x;x=j;j=P;P=K+O|0;K=U;U=S;S=E;E=O+(S&U^K&(S^U))+(S>>>2^S>>>13^S>>>22^S<<30^S<<19^S<<10)|0;w=O=(b>>>7^b>>>18^b>>>3^b<<25^b<<14)+(m>>>17^m>>>19^m>>>10^m<<15^m<<13)+w+c|0;O=O+T+(P>>>6^P>>>11^P>>>25^P<<26^P<<21^P<<7)+(x^P&(j^x))+0xbf597fc7|0;T=x;x=j;j=P;P=K+O|0;K=U;U=S;S=E;E=O+(S&U^K&(S^U))+(S>>>2^S>>>13^S>>>22^S<<30^S<<19^S<<10)|0;b=O=(k>>>7^k>>>18^k>>>3^k<<25^k<<14)+(v>>>17^v>>>19^v>>>10^v<<15^v<<13)+b+d|0;O=O+T+(P>>>6^P>>>11^P>>>25^P<<26^P<<21^P<<7)+(x^P&(j^x))+0xc6e00bf3|0;T=x;x=j;j=P;P=K+O|0;K=U;U=S;S=E;E=O+(S&U^K&(S^U))+(S>>>2^S>>>13^S>>>22^S<<30^S<<19^S<<10)|0;k=O=(A>>>7^A>>>18^A>>>3^A<<25^A<<14)+(w>>>17^w>>>19^w>>>10^w<<15^w<<13)+k+p|0;O=O+T+(P>>>6^P>>>11^P>>>25^P<<26^P<<21^P<<7)+(x^P&(j^x))+0xd5a79147|0;T=x;x=j;j=P;P=K+O|0;K=U;U=S;S=E;E=O+(S&U^K&(S^U))+(S>>>2^S>>>13^S>>>22^S<<30^S<<19^S<<10)|0;A=O=(_>>>7^_>>>18^_>>>3^_<<25^_<<14)+(b>>>17^b>>>19^b>>>10^b<<15^b<<13)+A+y|0;O=O+T+(P>>>6^P>>>11^P>>>25^P<<26^P<<21^P<<7)+(x^P&(j^x))+0x06ca6351|0;T=x;x=j;j=P;P=K+O|0;K=U;U=S;S=E;E=O+(S&U^K&(S^U))+(S>>>2^S>>>13^S>>>22^S<<30^S<<19^S<<10)|0;_=O=(e>>>7^e>>>18^e>>>3^e<<25^e<<14)+(k>>>17^k>>>19^k>>>10^k<<15^k<<13)+_+g|0;O=O+T+(P>>>6^P>>>11^P>>>25^P<<26^P<<21^P<<7)+(x^P&(j^x))+0x14292967|0;T=x;x=j;j=P;P=K+O|0;K=U;U=S;S=E;E=O+(S&U^K&(S^U))+(S>>>2^S>>>13^S>>>22^S<<30^S<<19^S<<10)|0;e=O=(t>>>7^t>>>18^t>>>3^t<<25^t<<14)+(A>>>17^A>>>19^A>>>10^A<<15^A<<13)+e+m|0;O=O+T+(P>>>6^P>>>11^P>>>25^P<<26^P<<21^P<<7)+(x^P&(j^x))+0x27b70a85|0;T=x;x=j;j=P;P=K+O|0;K=U;U=S;S=E;E=O+(S&U^K&(S^U))+(S>>>2^S>>>13^S>>>22^S<<30^S<<19^S<<10)|0;t=O=(r>>>7^r>>>18^r>>>3^r<<25^r<<14)+(_>>>17^_>>>19^_>>>10^_<<15^_<<13)+t+v|0;O=O+T+(P>>>6^P>>>11^P>>>25^P<<26^P<<21^P<<7)+(x^P&(j^x))+0x2e1b2138|0;T=x;x=j;j=P;P=K+O|0;K=U;U=S;S=E;E=O+(S&U^K&(S^U))+(S>>>2^S>>>13^S>>>22^S<<30^S<<19^S<<10)|0;r=O=(l>>>7^l>>>18^l>>>3^l<<25^l<<14)+(e>>>17^e>>>19^e>>>10^e<<15^e<<13)+r+w|0;O=O+T+(P>>>6^P>>>11^P>>>25^P<<26^P<<21^P<<7)+(x^P&(j^x))+0x4d2c6dfc|0;T=x;x=j;j=P;P=K+O|0;K=U;U=S;S=E;E=O+(S&U^K&(S^U))+(S>>>2^S>>>13^S>>>22^S<<30^S<<19^S<<10)|0;l=O=(c>>>7^c>>>18^c>>>3^c<<25^c<<14)+(t>>>17^t>>>19^t>>>10^t<<15^t<<13)+l+b|0;O=O+T+(P>>>6^P>>>11^P>>>25^P<<26^P<<21^P<<7)+(x^P&(j^x))+0x53380d13|0;T=x;x=j;j=P;P=K+O|0;K=U;U=S;S=E;E=O+(S&U^K&(S^U))+(S>>>2^S>>>13^S>>>22^S<<30^S<<19^S<<10)|0;c=O=(d>>>7^d>>>18^d>>>3^d<<25^d<<14)+(r>>>17^r>>>19^r>>>10^r<<15^r<<13)+c+k|0;O=O+T+(P>>>6^P>>>11^P>>>25^P<<26^P<<21^P<<7)+(x^P&(j^x))+0x650a7354|0;T=x;x=j;j=P;P=K+O|0;K=U;U=S;S=E;E=O+(S&U^K&(S^U))+(S>>>2^S>>>13^S>>>22^S<<30^S<<19^S<<10)|0;d=O=(p>>>7^p>>>18^p>>>3^p<<25^p<<14)+(l>>>17^l>>>19^l>>>10^l<<15^l<<13)+d+A|0;O=O+T+(P>>>6^P>>>11^P>>>25^P<<26^P<<21^P<<7)+(x^P&(j^x))+0x766a0abb|0;T=x;x=j;j=P;P=K+O|0;K=U;U=S;S=E;E=O+(S&U^K&(S^U))+(S>>>2^S>>>13^S>>>22^S<<30^S<<19^S<<10)|0;p=O=(y>>>7^y>>>18^y>>>3^y<<25^y<<14)+(c>>>17^c>>>19^c>>>10^c<<15^c<<13)+p+_|0;O=O+T+(P>>>6^P>>>11^P>>>25^P<<26^P<<21^P<<7)+(x^P&(j^x))+0x81c2c92e|0;T=x;x=j;j=P;P=K+O|0;K=U;U=S;S=E;E=O+(S&U^K&(S^U))+(S>>>2^S>>>13^S>>>22^S<<30^S<<19^S<<10)|0;y=O=(g>>>7^g>>>18^g>>>3^g<<25^g<<14)+(d>>>17^d>>>19^d>>>10^d<<15^d<<13)+y+e|0;O=O+T+(P>>>6^P>>>11^P>>>25^P<<26^P<<21^P<<7)+(x^P&(j^x))+0x92722c85|0;T=x;x=j;j=P;P=K+O|0;K=U;U=S;S=E;E=O+(S&U^K&(S^U))+(S>>>2^S>>>13^S>>>22^S<<30^S<<19^S<<10)|0;g=O=(m>>>7^m>>>18^m>>>3^m<<25^m<<14)+(p>>>17^p>>>19^p>>>10^p<<15^p<<13)+g+t|0;O=O+T+(P>>>6^P>>>11^P>>>25^P<<26^P<<21^P<<7)+(x^P&(j^x))+0xa2bfe8a1|0;T=x;x=j;j=P;P=K+O|0;K=U;U=S;S=E;E=O+(S&U^K&(S^U))+(S>>>2^S>>>13^S>>>22^S<<30^S<<19^S<<10)|0;m=O=(v>>>7^v>>>18^v>>>3^v<<25^v<<14)+(y>>>17^y>>>19^y>>>10^y<<15^y<<13)+m+r|0;O=O+T+(P>>>6^P>>>11^P>>>25^P<<26^P<<21^P<<7)+(x^P&(j^x))+0xa81a664b|0;T=x;x=j;j=P;P=K+O|0;K=U;U=S;S=E;E=O+(S&U^K&(S^U))+(S>>>2^S>>>13^S>>>22^S<<30^S<<19^S<<10)|0;v=O=(w>>>7^w>>>18^w>>>3^w<<25^w<<14)+(g>>>17^g>>>19^g>>>10^g<<15^g<<13)+v+l|0;O=O+T+(P>>>6^P>>>11^P>>>25^P<<26^P<<21^P<<7)+(x^P&(j^x))+0xc24b8b70|0;T=x;x=j;j=P;P=K+O|0;K=U;U=S;S=E;E=O+(S&U^K&(S^U))+(S>>>2^S>>>13^S>>>22^S<<30^S<<19^S<<10)|0;w=O=(b>>>7^b>>>18^b>>>3^b<<25^b<<14)+(m>>>17^m>>>19^m>>>10^m<<15^m<<13)+w+c|0;O=O+T+(P>>>6^P>>>11^P>>>25^P<<26^P<<21^P<<7)+(x^P&(j^x))+0xc76c51a3|0;T=x;x=j;j=P;P=K+O|0;K=U;U=S;S=E;E=O+(S&U^K&(S^U))+(S>>>2^S>>>13^S>>>22^S<<30^S<<19^S<<10)|0;b=O=(k>>>7^k>>>18^k>>>3^k<<25^k<<14)+(v>>>17^v>>>19^v>>>10^v<<15^v<<13)+b+d|0;O=O+T+(P>>>6^P>>>11^P>>>25^P<<26^P<<21^P<<7)+(x^P&(j^x))+0xd192e819|0;T=x;x=j;j=P;P=K+O|0;K=U;U=S;S=E;E=O+(S&U^K&(S^U))+(S>>>2^S>>>13^S>>>22^S<<30^S<<19^S<<10)|0;k=O=(A>>>7^A>>>18^A>>>3^A<<25^A<<14)+(w>>>17^w>>>19^w>>>10^w<<15^w<<13)+k+p|0;O=O+T+(P>>>6^P>>>11^P>>>25^P<<26^P<<21^P<<7)+(x^P&(j^x))+0xd6990624|0;T=x;x=j;j=P;P=K+O|0;K=U;U=S;S=E;E=O+(S&U^K&(S^U))+(S>>>2^S>>>13^S>>>22^S<<30^S<<19^S<<10)|0;A=O=(_>>>7^_>>>18^_>>>3^_<<25^_<<14)+(b>>>17^b>>>19^b>>>10^b<<15^b<<13)+A+y|0;O=O+T+(P>>>6^P>>>11^P>>>25^P<<26^P<<21^P<<7)+(x^P&(j^x))+0xf40e3585|0;T=x;x=j;j=P;P=K+O|0;K=U;U=S;S=E;E=O+(S&U^K&(S^U))+(S>>>2^S>>>13^S>>>22^S<<30^S<<19^S<<10)|0;_=O=(e>>>7^e>>>18^e>>>3^e<<25^e<<14)+(k>>>17^k>>>19^k>>>10^k<<15^k<<13)+_+g|0;O=O+T+(P>>>6^P>>>11^P>>>25^P<<26^P<<21^P<<7)+(x^P&(j^x))+0x106aa070|0;T=x;x=j;j=P;P=K+O|0;K=U;U=S;S=E;E=O+(S&U^K&(S^U))+(S>>>2^S>>>13^S>>>22^S<<30^S<<19^S<<10)|0;e=O=(t>>>7^t>>>18^t>>>3^t<<25^t<<14)+(A>>>17^A>>>19^A>>>10^A<<15^A<<13)+e+m|0;O=O+T+(P>>>6^P>>>11^P>>>25^P<<26^P<<21^P<<7)+(x^P&(j^x))+0x19a4c116|0;T=x;x=j;j=P;P=K+O|0;K=U;U=S;S=E;E=O+(S&U^K&(S^U))+(S>>>2^S>>>13^S>>>22^S<<30^S<<19^S<<10)|0;t=O=(r>>>7^r>>>18^r>>>3^r<<25^r<<14)+(_>>>17^_>>>19^_>>>10^_<<15^_<<13)+t+v|0;O=O+T+(P>>>6^P>>>11^P>>>25^P<<26^P<<21^P<<7)+(x^P&(j^x))+0x1e376c08|0;T=x;x=j;j=P;P=K+O|0;K=U;U=S;S=E;E=O+(S&U^K&(S^U))+(S>>>2^S>>>13^S>>>22^S<<30^S<<19^S<<10)|0;r=O=(l>>>7^l>>>18^l>>>3^l<<25^l<<14)+(e>>>17^e>>>19^e>>>10^e<<15^e<<13)+r+w|0;O=O+T+(P>>>6^P>>>11^P>>>25^P<<26^P<<21^P<<7)+(x^P&(j^x))+0x2748774c|0;T=x;x=j;j=P;P=K+O|0;K=U;U=S;S=E;E=O+(S&U^K&(S^U))+(S>>>2^S>>>13^S>>>22^S<<30^S<<19^S<<10)|0;l=O=(c>>>7^c>>>18^c>>>3^c<<25^c<<14)+(t>>>17^t>>>19^t>>>10^t<<15^t<<13)+l+b|0;O=O+T+(P>>>6^P>>>11^P>>>25^P<<26^P<<21^P<<7)+(x^P&(j^x))+0x34b0bcb5|0;T=x;x=j;j=P;P=K+O|0;K=U;U=S;S=E;E=O+(S&U^K&(S^U))+(S>>>2^S>>>13^S>>>22^S<<30^S<<19^S<<10)|0;c=O=(d>>>7^d>>>18^d>>>3^d<<25^d<<14)+(r>>>17^r>>>19^r>>>10^r<<15^r<<13)+c+k|0;O=O+T+(P>>>6^P>>>11^P>>>25^P<<26^P<<21^P<<7)+(x^P&(j^x))+0x391c0cb3|0;T=x;x=j;j=P;P=K+O|0;K=U;U=S;S=E;E=O+(S&U^K&(S^U))+(S>>>2^S>>>13^S>>>22^S<<30^S<<19^S<<10)|0;d=O=(p>>>7^p>>>18^p>>>3^p<<25^p<<14)+(l>>>17^l>>>19^l>>>10^l<<15^l<<13)+d+A|0;O=O+T+(P>>>6^P>>>11^P>>>25^P<<26^P<<21^P<<7)+(x^P&(j^x))+0x4ed8aa4a|0;T=x;x=j;j=P;P=K+O|0;K=U;U=S;S=E;E=O+(S&U^K&(S^U))+(S>>>2^S>>>13^S>>>22^S<<30^S<<19^S<<10)|0;p=O=(y>>>7^y>>>18^y>>>3^y<<25^y<<14)+(c>>>17^c>>>19^c>>>10^c<<15^c<<13)+p+_|0;O=O+T+(P>>>6^P>>>11^P>>>25^P<<26^P<<21^P<<7)+(x^P&(j^x))+0x5b9cca4f|0;T=x;x=j;j=P;P=K+O|0;K=U;U=S;S=E;E=O+(S&U^K&(S^U))+(S>>>2^S>>>13^S>>>22^S<<30^S<<19^S<<10)|0;y=O=(g>>>7^g>>>18^g>>>3^g<<25^g<<14)+(d>>>17^d>>>19^d>>>10^d<<15^d<<13)+y+e|0;O=O+T+(P>>>6^P>>>11^P>>>25^P<<26^P<<21^P<<7)+(x^P&(j^x))+0x682e6ff3|0;T=x;x=j;j=P;P=K+O|0;K=U;U=S;S=E;E=O+(S&U^K&(S^U))+(S>>>2^S>>>13^S>>>22^S<<30^S<<19^S<<10)|0;g=O=(m>>>7^m>>>18^m>>>3^m<<25^m<<14)+(p>>>17^p>>>19^p>>>10^p<<15^p<<13)+g+t|0;O=O+T+(P>>>6^P>>>11^P>>>25^P<<26^P<<21^P<<7)+(x^P&(j^x))+0x748f82ee|0;T=x;x=j;j=P;P=K+O|0;K=U;U=S;S=E;E=O+(S&U^K&(S^U))+(S>>>2^S>>>13^S>>>22^S<<30^S<<19^S<<10)|0;m=O=(v>>>7^v>>>18^v>>>3^v<<25^v<<14)+(y>>>17^y>>>19^y>>>10^y<<15^y<<13)+m+r|0;O=O+T+(P>>>6^P>>>11^P>>>25^P<<26^P<<21^P<<7)+(x^P&(j^x))+0x78a5636f|0;T=x;x=j;j=P;P=K+O|0;K=U;U=S;S=E;E=O+(S&U^K&(S^U))+(S>>>2^S>>>13^S>>>22^S<<30^S<<19^S<<10)|0;v=O=(w>>>7^w>>>18^w>>>3^w<<25^w<<14)+(g>>>17^g>>>19^g>>>10^g<<15^g<<13)+v+l|0;O=O+T+(P>>>6^P>>>11^P>>>25^P<<26^P<<21^P<<7)+(x^P&(j^x))+0x84c87814|0;T=x;x=j;j=P;P=K+O|0;K=U;U=S;S=E;E=O+(S&U^K&(S^U))+(S>>>2^S>>>13^S>>>22^S<<30^S<<19^S<<10)|0;w=O=(b>>>7^b>>>18^b>>>3^b<<25^b<<14)+(m>>>17^m>>>19^m>>>10^m<<15^m<<13)+w+c|0;O=O+T+(P>>>6^P>>>11^P>>>25^P<<26^P<<21^P<<7)+(x^P&(j^x))+0x8cc70208|0;T=x;x=j;j=P;P=K+O|0;K=U;U=S;S=E;E=O+(S&U^K&(S^U))+(S>>>2^S>>>13^S>>>22^S<<30^S<<19^S<<10)|0;b=O=(k>>>7^k>>>18^k>>>3^k<<25^k<<14)+(v>>>17^v>>>19^v>>>10^v<<15^v<<13)+b+d|0;O=O+T+(P>>>6^P>>>11^P>>>25^P<<26^P<<21^P<<7)+(x^P&(j^x))+0x90befffa|0;T=x;x=j;j=P;P=K+O|0;K=U;U=S;S=E;E=O+(S&U^K&(S^U))+(S>>>2^S>>>13^S>>>22^S<<30^S<<19^S<<10)|0;k=O=(A>>>7^A>>>18^A>>>3^A<<25^A<<14)+(w>>>17^w>>>19^w>>>10^w<<15^w<<13)+k+p|0;O=O+T+(P>>>6^P>>>11^P>>>25^P<<26^P<<21^P<<7)+(x^P&(j^x))+0xa4506ceb|0;T=x;x=j;j=P;P=K+O|0;K=U;U=S;S=E;E=O+(S&U^K&(S^U))+(S>>>2^S>>>13^S>>>22^S<<30^S<<19^S<<10)|0;A=O=(_>>>7^_>>>18^_>>>3^_<<25^_<<14)+(b>>>17^b>>>19^b>>>10^b<<15^b<<13)+A+y|0;O=O+T+(P>>>6^P>>>11^P>>>25^P<<26^P<<21^P<<7)+(x^P&(j^x))+0xbef9a3f7|0;T=x;x=j;j=P;P=K+O|0;K=U;U=S;S=E;E=O+(S&U^K&(S^U))+(S>>>2^S>>>13^S>>>22^S<<30^S<<19^S<<10)|0;_=O=(e>>>7^e>>>18^e>>>3^e<<25^e<<14)+(k>>>17^k>>>19^k>>>10^k<<15^k<<13)+_+g|0;O=O+T+(P>>>6^P>>>11^P>>>25^P<<26^P<<21^P<<7)+(x^P&(j^x))+0xc67178f2|0;T=x;x=j;j=P;P=K+O|0;K=U;U=S;S=E;E=O+(S&U^K&(S^U))+(S>>>2^S>>>13^S>>>22^S<<30^S<<19^S<<10)|0;n=n+E|0;i=i+S|0;s=s+U|0;a=a+K|0;o=o+P|0;u=u+j|0;f=f+x|0;h=h+T|0}function T(e){e=e|0;x(j[e|0]<<24|j[e|1]<<16|j[e|2]<<8|j[e|3],j[e|4]<<24|j[e|5]<<16|j[e|6]<<8|j[e|7],j[e|8]<<24|j[e|9]<<16|j[e|10]<<8|j[e|11],j[e|12]<<24|j[e|13]<<16|j[e|14]<<8|j[e|15],j[e|16]<<24|j[e|17]<<16|j[e|18]<<8|j[e|19],j[e|20]<<24|j[e|21]<<16|j[e|22]<<8|j[e|23],j[e|24]<<24|j[e|25]<<16|j[e|26]<<8|j[e|27],j[e|28]<<24|j[e|29]<<16|j[e|30]<<8|j[e|31],j[e|32]<<24|j[e|33]<<16|j[e|34]<<8|j[e|35],j[e|36]<<24|j[e|37]<<16|j[e|38]<<8|j[e|39],j[e|40]<<24|j[e|41]<<16|j[e|42]<<8|j[e|43],j[e|44]<<24|j[e|45]<<16|j[e|46]<<8|j[e|47],j[e|48]<<24|j[e|49]<<16|j[e|50]<<8|j[e|51],j[e|52]<<24|j[e|53]<<16|j[e|54]<<8|j[e|55],j[e|56]<<24|j[e|57]<<16|j[e|58]<<8|j[e|59],j[e|60]<<24|j[e|61]<<16|j[e|62]<<8|j[e|63])}function O(e){e=e|0;j[e|0]=n>>>24;j[e|1]=n>>>16&255;j[e|2]=n>>>8&255;j[e|3]=n&255;j[e|4]=i>>>24;j[e|5]=i>>>16&255;j[e|6]=i>>>8&255;j[e|7]=i&255;j[e|8]=s>>>24;j[e|9]=s>>>16&255;j[e|10]=s>>>8&255;j[e|11]=s&255;j[e|12]=a>>>24;j[e|13]=a>>>16&255;j[e|14]=a>>>8&255;j[e|15]=a&255;j[e|16]=o>>>24;j[e|17]=o>>>16&255;j[e|18]=o>>>8&255;j[e|19]=o&255;j[e|20]=u>>>24;j[e|21]=u>>>16&255;j[e|22]=u>>>8&255;j[e|23]=u&255;j[e|24]=f>>>24;j[e|25]=f>>>16&255;j[e|26]=f>>>8&255;j[e|27]=f&255;j[e|28]=h>>>24;j[e|29]=h>>>16&255;j[e|30]=h>>>8&255;j[e|31]=h&255}function C(){n=0x6a09e667;i=0xbb67ae85;s=0x3c6ef372;a=0xa54ff53a;o=0x510e527f;u=0x9b05688c;f=0x1f83d9ab;h=0x5be0cd19;l=c=0}function I(e,t,r,d,p,y,g,m,v,w){e=e|0;t=t|0;r=r|0;d=d|0;p=p|0;y=y|0;g=g|0;m=m|0;v=v|0;w=w|0;n=e;i=t;s=r;a=d;o=p;u=y;f=g;h=m;l=v;c=w}function M(e,t){e=e|0;t=t|0;var r=0;if(e&63)return-1;while((t|0)>=64){T(e);e=e+64|0;t=t-64|0;r=r+64|0}l=l+r|0;if(l>>>0>>0)c=c+1|0;return r|0}function B(e,t,r){e=e|0;t=t|0;r=r|0;var n=0,i=0;if(e&63)return-1;if(~r)if(r&31)return-1;if((t|0)>=64){n=M(e,t)|0;if((n|0)==-1)return-1;e=e+n|0;t=t-n|0}n=n+t|0;l=l+t|0;if(l>>>0>>0)c=c+1|0;j[e|t]=0x80;if((t|0)>=56){for(i=t+1|0;(i|0)<64;i=i+1|0)j[e|i]=0x00;T(e);t=0;j[e|0]=0}for(i=t+1|0;(i|0)<59;i=i+1|0)j[e|i]=0;j[e|56]=c>>>21&255;j[e|57]=c>>>13&255;j[e|58]=c>>>5&255;j[e|59]=c<<3&255|l>>>29;j[e|60]=l>>>21&255;j[e|61]=l>>>13&255;j[e|62]=l>>>5&255;j[e|63]=l<<3&255;T(e);if(~r)O(r);return n|0}function D(){n=d;i=p;s=y;a=g;o=m;u=v;f=w;h=b;l=64;c=0}function N(){n=k;i=A;s=_;a=E;o=S;u=U;f=K;h=P;l=64;c=0}function L(e,t,r,j,T,O,I,M,B,D,N,L,R,H,F,z){e=e|0;t=t|0;r=r|0;j=j|0;T=T|0;O=O|0;I=I|0;M=M|0;B=B|0;D=D|0;N=N|0;L=L|0;R=R|0;H=H|0;F=F|0;z=z|0;C();x(e^0x5c5c5c5c,t^0x5c5c5c5c,r^0x5c5c5c5c,j^0x5c5c5c5c,T^0x5c5c5c5c,O^0x5c5c5c5c,I^0x5c5c5c5c,M^0x5c5c5c5c,B^0x5c5c5c5c,D^0x5c5c5c5c,N^0x5c5c5c5c,L^0x5c5c5c5c,R^0x5c5c5c5c,H^0x5c5c5c5c,F^0x5c5c5c5c,z^0x5c5c5c5c);k=n;A=i;_=s;E=a;S=o;U=u;K=f;P=h;C();x(e^0x36363636,t^0x36363636,r^0x36363636,j^0x36363636,T^0x36363636,O^0x36363636,I^0x36363636,M^0x36363636,B^0x36363636,D^0x36363636,N^0x36363636,L^0x36363636,R^0x36363636,H^0x36363636,F^0x36363636,z^0x36363636);d=n;p=i;y=s;g=a;m=o;v=u;w=f;b=h;l=64;c=0}function R(e,t,r){e=e|0;t=t|0;r=r|0;var l=0,c=0,d=0,p=0,y=0,g=0,m=0,v=0,w=0;if(e&63)return-1;if(~r)if(r&31)return-1;w=B(e,t,-1)|0;l=n,c=i,d=s,p=a,y=o,g=u,m=f,v=h;N();x(l,c,d,p,y,g,m,v,0x80000000,0,0,0,0,0,0,768);if(~r)O(r);return w|0}function H(e,t,r,l,c){e=e|0;t=t|0;r=r|0;l=l|0;c=c|0;var d=0,p=0,y=0,g=0,m=0,v=0,w=0,b=0,k=0,A=0,_=0,E=0,S=0,U=0,K=0,P=0;if(e&63)return-1;if(~c)if(c&31)return-1;j[e+t|0]=r>>>24;j[e+t+1|0]=r>>>16&255;j[e+t+2|0]=r>>>8&255;j[e+t+3|0]=r&255;R(e,t+4|0,-1)|0;d=k=n,p=A=i,y=_=s,g=E=a,m=S=o,v=U=u,w=K=f,b=P=h;l=l-1|0;while((l|0)>0){D();x(k,A,_,E,S,U,K,P,0x80000000,0,0,0,0,0,0,768);k=n,A=i,_=s,E=a,S=o,U=u,K=f,P=h;N();x(k,A,_,E,S,U,K,P,0x80000000,0,0,0,0,0,0,768);k=n,A=i,_=s,E=a,S=o,U=u,K=f,P=h;d=d^n;p=p^i;y=y^s;g=g^a;m=m^o;v=v^u;w=w^f;b=b^h;l=l-1|0}n=d;i=p;s=y;a=g;o=m;u=v;f=w;h=b;if(~c)O(c);return 0}return{reset:C,init:I,process:M,finish:B,hmac_reset:D,hmac_init:L,hmac_finish:R,pbkdf2_generate_block:H}}(r,null,this.heap.buffer),this.BLOCK_SIZE=X,this.HASH_SIZE=W,this.reset()}function B(e){if(void 0===e)throw new SyntaxError("data required");return(null===J&&(J=new M({heapSize:1048576})),J).reset().process(e).finish().result}n.prototype=Object.create(Error.prototype,{name:{value:"IllegalStateError"}}),i.prototype=Object.create(Error.prototype,{name:{value:"IllegalArgumentError"}}),s.prototype=Object.create(Error.prototype,{name:{value:"SecurityError"}});r.Float64Array||r.Float32Array;r.IllegalStateError=n,r.IllegalArgumentError=i,r.SecurityError=s;var D=function(){"use strict";function e(e,t){var i=r[(n[e]+n[t])%255];return 0!==e&&0!==t||(i=0),i}function t(){function t(e){var t,i,s;for(i=s=function(e){var t=r[255-n[e]];return 0===e&&(t=0),t}(e),t=0;t<4;t++)s^=i=255&(i<<1|i>>>7);return s^=99}u||function(){r=[],n=[];var e,t,i=1;for(e=0;e<255;e++)r[e]=i,t=128&i,i<<=1,i&=255,128===t&&(i^=27),i^=r[e],n[r[e]]=e;r[255]=r[0],n[0]=0,u=!0}(),i=[],s=[],a=[[],[],[],[]],o=[[],[],[],[]];for(var f=0;f<256;f++){var h=t(f);i[f]=h,s[h]=f,a[0][f]=e(2,h)<<24|h<<16|h<<8|e(3,h),o[0][h]=e(14,f)<<24|e(9,f)<<16|e(13,f)<<8|e(11,f);for(var l=1;l<4;l++)a[l][f]=a[l-1][f]>>>8|a[l-1][f]<<24,o[l][h]=o[l-1][h]>>>8|o[l-1][h]<<24}}var r,n,i,s,a,o,u=!1,f=function(e,r,n){t();var u=new Uint32Array(n);u.set(i,512),u.set(s,768);for(var f=0;f<4;f++)u.set(a[f],4096+1024*f>>2),u.set(o[f],8192+1024*f>>2);var h=function(e,t,r){"use asm";var n=0,i=0,s=0,a=0,o=0,u=0,f=0,h=0,l=0,c=0,d=0,p=0,y=0,g=0,m=0,v=0,w=0,b=0,k=0,A=0,_=0;var E=new e.Uint32Array(r),S=new e.Uint8Array(r);function U(e,t,r,o,u,f,h,l){e=e|0;t=t|0;r=r|0;o=o|0;u=u|0;f=f|0;h=h|0;l=l|0;var c=0,d=0,p=0,y=0,g=0,m=0,v=0,w=0;c=r|0x400,d=r|0x800,p=r|0xc00;u=u^E[(e|0)>>2],f=f^E[(e|4)>>2],h=h^E[(e|8)>>2],l=l^E[(e|12)>>2];for(w=16;(w|0)<=o<<4;w=w+16|0){y=E[(r|u>>22&1020)>>2]^E[(c|f>>14&1020)>>2]^E[(d|h>>6&1020)>>2]^E[(p|l<<2&1020)>>2]^E[(e|w|0)>>2],g=E[(r|f>>22&1020)>>2]^E[(c|h>>14&1020)>>2]^E[(d|l>>6&1020)>>2]^E[(p|u<<2&1020)>>2]^E[(e|w|4)>>2],m=E[(r|h>>22&1020)>>2]^E[(c|l>>14&1020)>>2]^E[(d|u>>6&1020)>>2]^E[(p|f<<2&1020)>>2]^E[(e|w|8)>>2],v=E[(r|l>>22&1020)>>2]^E[(c|u>>14&1020)>>2]^E[(d|f>>6&1020)>>2]^E[(p|h<<2&1020)>>2]^E[(e|w|12)>>2];u=y,f=g,h=m,l=v}n=E[(t|u>>22&1020)>>2]<<24^E[(t|f>>14&1020)>>2]<<16^E[(t|h>>6&1020)>>2]<<8^E[(t|l<<2&1020)>>2]^E[(e|w|0)>>2],i=E[(t|f>>22&1020)>>2]<<24^E[(t|h>>14&1020)>>2]<<16^E[(t|l>>6&1020)>>2]<<8^E[(t|u<<2&1020)>>2]^E[(e|w|4)>>2],s=E[(t|h>>22&1020)>>2]<<24^E[(t|l>>14&1020)>>2]<<16^E[(t|u>>6&1020)>>2]<<8^E[(t|f<<2&1020)>>2]^E[(e|w|8)>>2],a=E[(t|l>>22&1020)>>2]<<24^E[(t|u>>14&1020)>>2]<<16^E[(t|f>>6&1020)>>2]<<8^E[(t|h<<2&1020)>>2]^E[(e|w|12)>>2]}function K(e,t,r,n){e=e|0;t=t|0;r=r|0;n=n|0;U(0x0000,0x0800,0x1000,_,e,t,r,n)}function P(e,t,r,n){e=e|0;t=t|0;r=r|0;n=n|0;var s=0;U(0x0400,0x0c00,0x2000,_,e,n,r,t);s=i,i=a,a=s}function j(e,t,r,l){e=e|0;t=t|0;r=r|0;l=l|0;U(0x0000,0x0800,0x1000,_,o^e,u^t,f^r,h^l);o=n,u=i,f=s,h=a}function x(e,t,r,l){e=e|0;t=t|0;r=r|0;l=l|0;var c=0;U(0x0400,0x0c00,0x2000,_,e,l,r,t);c=i,i=a,a=c;n=n^o,i=i^u,s=s^f,a=a^h;o=e,u=t,f=r,h=l}function T(e,t,r,l){e=e|0;t=t|0;r=r|0;l=l|0;U(0x0000,0x0800,0x1000,_,o,u,f,h);o=n=n^e,u=i=i^t,f=s=s^r,h=a=a^l}function O(e,t,r,l){e=e|0;t=t|0;r=r|0;l=l|0;U(0x0000,0x0800,0x1000,_,o,u,f,h);n=n^e,i=i^t,s=s^r,a=a^l;o=e,u=t,f=r,h=l}function C(e,t,r,l){e=e|0;t=t|0;r=r|0;l=l|0;U(0x0000,0x0800,0x1000,_,o,u,f,h);o=n,u=i,f=s,h=a;n=n^e,i=i^t,s=s^r,a=a^l}function I(e,t,r,o){e=e|0;t=t|0;r=r|0;o=o|0;U(0x0000,0x0800,0x1000,_,l,c,d,p);p=~v&p|v&p+1,d=~m&d|m&d+((p|0)==0),c=~g&c|g&c+((d|0)==0),l=~y&l|y&l+((c|0)==0);n=n^e,i=i^t,s=s^r,a=a^o}function M(e,t,r,n){e=e|0;t=t|0;r=r|0;n=n|0;var i=0,s=0,a=0,l=0,c=0,d=0,p=0,y=0,g=0,m=0;e=e^o,t=t^u,r=r^f,n=n^h;i=w|0,s=b|0,a=k|0,l=A|0;for(;(g|0)<128;g=g+1|0){if(i>>>31){c=c^e,d=d^t,p=p^r,y=y^n}i=i<<1|s>>>31,s=s<<1|a>>>31,a=a<<1|l>>>31,l=l<<1;m=n&1;n=n>>>1|r<<31,r=r>>>1|t<<31,t=t>>>1|e<<31,e=e>>>1;if(m)e=e^0xe1000000}o=c,u=d,f=p,h=y}function B(e){e=e|0;_=e}function D(e,t,r,o){e=e|0;t=t|0;r=r|0;o=o|0;n=e,i=t,s=r,a=o}function N(e,t,r,n){e=e|0;t=t|0;r=r|0;n=n|0;o=e,u=t,f=r,h=n}function L(e,t,r,n){e=e|0;t=t|0;r=r|0;n=n|0;l=e,c=t,d=r,p=n}function R(e,t,r,n){e=e|0;t=t|0;r=r|0;n=n|0;y=e,g=t,m=r,v=n}function H(e,t,r,n){e=e|0;t=t|0;r=r|0;n=n|0;p=~v&p|v&n,d=~m&d|m&r,c=~g&c|g&t,l=~y&l|y&e}function F(e){e=e|0;if(e&15)return-1;S[e|0]=n>>>24,S[e|1]=n>>>16&255,S[e|2]=n>>>8&255,S[e|3]=n&255,S[e|4]=i>>>24,S[e|5]=i>>>16&255,S[e|6]=i>>>8&255,S[e|7]=i&255,S[e|8]=s>>>24,S[e|9]=s>>>16&255,S[e|10]=s>>>8&255,S[e|11]=s&255,S[e|12]=a>>>24,S[e|13]=a>>>16&255,S[e|14]=a>>>8&255,S[e|15]=a&255;return 16}function z(e){e=e|0;if(e&15)return-1;S[e|0]=o>>>24,S[e|1]=o>>>16&255,S[e|2]=o>>>8&255,S[e|3]=o&255,S[e|4]=u>>>24,S[e|5]=u>>>16&255,S[e|6]=u>>>8&255,S[e|7]=u&255,S[e|8]=f>>>24,S[e|9]=f>>>16&255,S[e|10]=f>>>8&255,S[e|11]=f&255,S[e|12]=h>>>24,S[e|13]=h>>>16&255,S[e|14]=h>>>8&255,S[e|15]=h&255;return 16}function q(){K(0,0,0,0);w=n,b=i,k=s,A=a}function G(e,t,r){e=e|0;t=t|0;r=r|0;var o=0;if(t&15)return-1;while((r|0)>=16){Z[e&7](S[t|0]<<24|S[t|1]<<16|S[t|2]<<8|S[t|3],S[t|4]<<24|S[t|5]<<16|S[t|6]<<8|S[t|7],S[t|8]<<24|S[t|9]<<16|S[t|10]<<8|S[t|11],S[t|12]<<24|S[t|13]<<16|S[t|14]<<8|S[t|15]);S[t|0]=n>>>24,S[t|1]=n>>>16&255,S[t|2]=n>>>8&255,S[t|3]=n&255,S[t|4]=i>>>24,S[t|5]=i>>>16&255,S[t|6]=i>>>8&255,S[t|7]=i&255,S[t|8]=s>>>24,S[t|9]=s>>>16&255,S[t|10]=s>>>8&255,S[t|11]=s&255,S[t|12]=a>>>24,S[t|13]=a>>>16&255,S[t|14]=a>>>8&255,S[t|15]=a&255;o=o+16|0,t=t+16|0,r=r-16|0}return o|0}function V(e,t,r){e=e|0;t=t|0;r=r|0;var n=0;if(t&15)return-1;while((r|0)>=16){Y[e&1](S[t|0]<<24|S[t|1]<<16|S[t|2]<<8|S[t|3],S[t|4]<<24|S[t|5]<<16|S[t|6]<<8|S[t|7],S[t|8]<<24|S[t|9]<<16|S[t|10]<<8|S[t|11],S[t|12]<<24|S[t|13]<<16|S[t|14]<<8|S[t|15]);n=n+16|0,t=t+16|0,r=r-16|0}return n|0}var Z=[K,P,j,x,T,O,C,I];var Y=[j,M];return{set_rounds:B,set_state:D,set_iv:N,set_nonce:L,set_mask:R,set_counter:H,get_state:F,get_iv:z,gcm_init:q,cipher:G,mac:V}}(e,r,n);return h.set_key=function(e,t,r,n,s,a,f,l,c){var d=u.subarray(0,60),p=u.subarray(256,316);d.set([t,r,n,s,a,f,l,c]);for(var y=e,g=1;y<4*e+28;y++)w=d[y-1],(y%e==0||8===e&&y%e==4)&&(w=i[w>>>24]<<24^i[w>>>16&255]<<16^i[w>>>8&255]<<8^i[255&w]),y%e==0&&(w=w<<8^w>>>24^g<<24,g=g<<1^(128&g?27:0)),d[y]=d[y-e]^w;for(var m=0;m=y-4?w:o[0][i[w>>>24]]^o[1][i[w>>>16&255]]^o[2][i[w>>>8&255]]^o[3][i[255&w]]}h.set_rounds(e+5)},h};return f.ENC={ECB:0,CBC:2,CFB:4,OFB:6,CTR:7},f.DEC={ECB:1,CBC:3,CFB:5,OFB:6,CTR:7},f.MAC={CBC:0,GCM:1},f.HEAP_DATA=16384,f}(),N=k.prototype;N.BLOCK_SIZE=16,N.reset=g,N.encrypt=v,N.decrypt=b;var L=A.prototype;L.BLOCK_SIZE=16,L.reset=g,L.process=m,L.finish=v;var R=_.prototype;R.BLOCK_SIZE=16,R.reset=g,R.process=w,R.finish=b;var H=E.prototype;H.BLOCK_SIZE=16,H.reset=S,H.encrypt=v,H.decrypt=v;var F=function(e){E.call(this,e)}.prototype;F.BLOCK_SIZE=16,F.reset=S,F.process=m,F.finish=v;var z=68719476704,q=K.prototype;q.BLOCK_SIZE=16,q.reset=x,q.encrypt=function(e){var t=T.call(this,e).result,r=O.call(this).result,n=new Uint8Array(t.length+r.length);return t.length&&n.set(t),r.length&&n.set(r,t.length),this.result=n,this},q.decrypt=function(e){var t=C.call(this,e).result,r=I.call(this).result,n=new Uint8Array(t.length+r.length);return t.length&&n.set(t),r.length&&n.set(r,t.length),this.result=n,this};var G=P.prototype;G.BLOCK_SIZE=16,G.reset=x,G.process=T,G.finish=O;var V=j.prototype;V.BLOCK_SIZE=16,V.reset=x,V.process=C,V.finish=I;var Z=new Uint8Array(1048576),Y=D(r,null,Z.buffer);e.AES_CFB=k,e.AES_CFB.encrypt=function(e,t,r){if(void 0===e)throw new SyntaxError("data required");if(void 0===t)throw new SyntaxError("key required");return new k({heap:Z,asm:Y,key:t,iv:r}).encrypt(e).result},e.AES_CFB.decrypt=function(e,t,r){if(void 0===e)throw new SyntaxError("data required");if(void 0===t)throw new SyntaxError("key required");return new k({heap:Z,asm:Y,key:t,iv:r}).decrypt(e).result},e.AES_CFB.Encrypt=A,e.AES_CFB.Decrypt=_,e.AES_GCM=K,e.AES_GCM.encrypt=function(e,t,r,n,i){if(void 0===e)throw new SyntaxError("data required");if(void 0===t)throw new SyntaxError("key required");if(void 0===r)throw new SyntaxError("nonce required");return new K({heap:Z,asm:Y,key:t,nonce:r,adata:n,tagSize:i}).encrypt(e).result},e.AES_GCM.decrypt=function(e,t,r,n,i){if(void 0===e)throw new SyntaxError("data required");if(void 0===t)throw new SyntaxError("key required");if(void 0===r)throw new SyntaxError("nonce required");return new K({heap:Z,asm:Y,key:t,nonce:r,adata:n,tagSize:i}).decrypt(e).result},e.AES_GCM.Encrypt=P,e.AES_GCM.Decrypt=j;var X=64,W=32;M.BLOCK_SIZE=X,M.HASH_SIZE=W;var $=M.prototype;$.reset=function(){return this.result=null,this.pos=0,this.len=0,this.asm.reset(),this},$.process=function(e){if(null!==this.result)throw new n("state must be reset before processing new data");if(f(e)&&(e=a(e)),h(e)&&(e=new Uint8Array(e)),!l(e))throw new TypeError("data isn't of expected type");for(var t=this.asm,r=this.heap,i=this.pos,s=this.len,o=0,u=e.length,c=0;u>0;)s+=c=d(r,i+s,e,o,u),o+=c,u-=c,i+=c=t.process(i,s),(s-=c)||(i=0);return this.pos=i,this.len=s,this},$.finish=function(){if(null!==this.result)throw new n("state must be reset before processing new data");return this.asm.finish(this.pos,this.len,0),this.result=new Uint8Array(this.HASH_SIZE),this.result.set(this.heap.subarray(0,this.HASH_SIZE)),this.pos=0,this.len=0,this};var J=null;M.bytes=B,M.hex=function(e){return function(e){for(var t="",r=0;r1)for(var r=1;r0;e+=1);return e},o=function(e,t,r,n,i){var s,a=i%4,o=(n+a)%4,u=n-o;switch(a){case 0:e[i]=this[r+3];case 1:e[i+1-(a<<1)|0]=this[r+2];case 2:e[i+2-(a<<1)|0]=this[r+1];case 3:e[i+3-(a<<1)|0]=this[r]}if(!(n>2|0]=this[r+s]<<24|this[r+s+1]<<16|this[r+s+2]<<8|this[r+s+3];switch(o){case 3:e[i+u+1|0]=this[r+u+2];case 2:e[i+u+2|0]=this[r+u+1];case 1:e[i+u+3|0]=this[r+u]}}},u=function(e){switch(i(e)){case"string":return function(e,t,r,n,i){var s,a=i%4,o=(n+a)%4,u=n-o;switch(a){case 0:e[i]=this.charCodeAt(r+3);case 1:e[i+1-(a<<1)|0]=this.charCodeAt(r+2);case 2:e[i+2-(a<<1)|0]=this.charCodeAt(r+1);case 3:e[i+3-(a<<1)|0]=this.charCodeAt(r)}if(!(n>2]=this.charCodeAt(r+s)<<24|this.charCodeAt(r+s+1)<<16|this.charCodeAt(r+s+2)<<8|this.charCodeAt(r+s+3);switch(o){case 3:e[i+u+1|0]=this.charCodeAt(r+u+2);case 2:e[i+u+2|0]=this.charCodeAt(r+u+1);case 1:e[i+u+3|0]=this.charCodeAt(r+u)}}}.bind(e);case"array":case"buffer":return o.bind(e);case"arraybuffer":return o.bind(new Uint8Array(e));case"view":return o.bind(new Uint8Array(e.buffer,e.byteOffset,e.byteLength));case"blob":return function(e,t,r,i,s){var a,o=s%4,u=(i+o)%4,f=i-u,h=new Uint8Array(n.readAsArrayBuffer(this.slice(r,r+i)));switch(o){case 0:e[s]=h[3];case 1:e[s+1-(o<<1)|0]=h[2];case 2:e[s+2-(o<<1)|0]=h[1];case 3:e[s+3-(o<<1)|0]=h[0]}if(!(i>2|0]=h[a]<<24|h[a+1]<<16|h[a+2]<<8|h[a+3];switch(u){case 3:e[s+f+1|0]=h[f+2];case 2:e[s+f+2|0]=h[f+1];case 1:e[s+f+3|0]=h[f]}}}.bind(e)}},f=new Array(256),h=0;h<256;h++)f[h]=(h<16?"0":"")+h.toString(16);var l=function(e){for(var t=new Uint8Array(e),r=new Array(e.byteLength),n=0;n0)throw new Error("Chunk size must be a multiple of 128 bit");s.offset=0,s.maxChunkLen=e,s.padMaxChunkLen=a(e),s.heap=new ArrayBuffer(function(e){var t;if(e<=65536)return 65536;if(e<16777216)for(t=1;t>2);return function(e,t){var r=new Uint8Array(e.buffer),n=t%4,i=t-n;switch(n){case 0:r[i+3]=0;case 1:r[i+2]=0;case 2:r[i+1]=0;case 3:r[i+0]=0}for(var s=1+(t>>2);s>2]|=128<<24-(t%4<<3),e[14+(2+(t>>2)&-16)]=r/(1<<29)|0,e[15+(2+(t>>2)&-16)]=r<<3}(n,e,t),r},p=function(e,t,r,n){u(e)(s.h8,s.h32,t,r,n||0)},y=function(e,t,r,n,i){var a=r;p(e,t,r),i&&(a=d(r,n)),s.core.hash(a,s.padMaxChunkLen)},g=function(e,t){var r=new Int32Array(e,t+320,5),n=new Int32Array(5),i=new DataView(n.buffer);return i.setInt32(0,r[0],!1),i.setInt32(4,r[1],!1),i.setInt32(8,r[2],!1),i.setInt32(12,r[3],!1),i.setInt32(16,r[4],!1),n},m=this.rawDigest=function(e){var t=e.byteLength||e.length||e.size||0;c(s.heap,s.padMaxChunkLen);var r=0,n=s.maxChunkLen;for(r=0;t>r+n;r+=n)y(e,r,n,t,!1);return y(e,r,t-r,t,!0),g(s.heap,s.padMaxChunkLen)};this.digest=this.digestFromString=this.digestFromBuffer=this.digestFromArrayBuffer=function(e){return l(m(e).buffer)},this.resetState=function(){return c(s.heap,s.padMaxChunkLen),this},this.append=function(e){var t,r=0,n=e.byteLength||e.length||e.size||0,i=s.offset%s.maxChunkLen;for(s.offset+=n;r>2]|0;o=n[t+324>>2]|0;f=n[t+328>>2]|0;l=n[t+332>>2]|0;d=n[t+336>>2]|0;for(r=0;(r|0)<(e|0);r=r+64|0){a=s;u=o;h=f;c=l;p=d;for(i=0;(i|0)<64;i=i+4|0){g=n[r+i>>2]|0;y=((s<<5|s>>>27)+(o&f|~o&l)|0)+((g+d|0)+1518500249|0)|0;d=l;l=f;f=o<<30|o>>>2;o=s;s=y;n[e+i>>2]=g}for(i=e+64|0;(i|0)<(e+80|0);i=i+4|0){g=(n[i-12>>2]^n[i-32>>2]^n[i-56>>2]^n[i-64>>2])<<1|(n[i-12>>2]^n[i-32>>2]^n[i-56>>2]^n[i-64>>2])>>>31;y=((s<<5|s>>>27)+(o&f|~o&l)|0)+((g+d|0)+1518500249|0)|0;d=l;l=f;f=o<<30|o>>>2;o=s;s=y;n[i>>2]=g}for(i=e+80|0;(i|0)<(e+160|0);i=i+4|0){g=(n[i-12>>2]^n[i-32>>2]^n[i-56>>2]^n[i-64>>2])<<1|(n[i-12>>2]^n[i-32>>2]^n[i-56>>2]^n[i-64>>2])>>>31;y=((s<<5|s>>>27)+(o^f^l)|0)+((g+d|0)+1859775393|0)|0;d=l;l=f;f=o<<30|o>>>2;o=s;s=y;n[i>>2]=g}for(i=e+160|0;(i|0)<(e+240|0);i=i+4|0){g=(n[i-12>>2]^n[i-32>>2]^n[i-56>>2]^n[i-64>>2])<<1|(n[i-12>>2]^n[i-32>>2]^n[i-56>>2]^n[i-64>>2])>>>31;y=((s<<5|s>>>27)+(o&f|o&l|f&l)|0)+((g+d|0)-1894007588|0)|0;d=l;l=f;f=o<<30|o>>>2;o=s;s=y;n[i>>2]=g}for(i=e+240|0;(i|0)<(e+320|0);i=i+4|0){g=(n[i-12>>2]^n[i-32>>2]^n[i-56>>2]^n[i-64>>2])<<1|(n[i-12>>2]^n[i-32>>2]^n[i-56>>2]^n[i-64>>2])>>>31;y=((s<<5|s>>>27)+(o^f^l)|0)+((g+d|0)-899497514|0)|0;d=l;l=f;f=o<<30|o>>>2;o=s;s=y;n[i>>2]=g}s=s+a|0;o=o+u|0;f=f+h|0;l=l+c|0;d=d+p|0}n[t+320>>2]=s;n[t+324>>2]=o;n[t+328>>2]=f;n[t+332>>2]=l;n[t+336>>2]=d}return{hash:i}},void 0!==t?t.exports=r:"undefined"!=typeof window&&(window.Rusha=r),"undefined"!=typeof FileReaderSync){var n=new FileReaderSync,i=function(e,t,r,n,s){var a=new self.FileReader;a.onloadend=function(){var o=a.result;t+=a.result.byteLength;try{e.append(o)}catch(e){return void s(e)}t>16&255,i[s++]=r>>24;var a;switch(f){case 1===n:a=[0,n-1,0];break;case 2===n:a=[1,n-2,0];break;case 3===n:a=[2,n-3,0];break;case 4===n:a=[3,n-4,0];break;case 6>=n:a=[4,n-5,1];break;case 8>=n:a=[5,n-7,1];break;case 12>=n:a=[6,n-9,2];break;case 16>=n:a=[7,n-13,2];break;case 24>=n:a=[8,n-17,3];break;case 32>=n:a=[9,n-25,3];break;case 48>=n:a=[10,n-33,4];break;case 64>=n:a=[11,n-49,4];break;case 96>=n:a=[12,n-65,5];break;case 128>=n:a=[13,n-97,5];break;case 192>=n:a=[14,n-129,6];break;case 256>=n:a=[15,n-193,6];break;case 384>=n:a=[16,n-257,7];break;case 512>=n:a=[17,n-385,7];break;case 768>=n:a=[18,n-513,8];break;case 1024>=n:a=[19,n-769,8];break;case 1536>=n:a=[20,n-1025,9];break;case 2048>=n:a=[21,n-1537,9];break;case 3072>=n:a=[22,n-2049,10];break;case 4096>=n:a=[23,n-3073,10];break;case 6144>=n:a=[24,n-4097,11];break;case 8192>=n:a=[25,n-6145,11];break;case 12288>=n:a=[26,n-8193,12];break;case 16384>=n:a=[27,n-12289,12];break;case 24576>=n:a=[28,n-16385,13];break;case 32768>=n:a=[29,n-24577,13];break;default:throw"invalid distance"}r=a,i[s++]=r[0],i[s++]=r[1],i[s++]=r[2];var o,u;for(o=0,u=i.length;o=s;)w[s++]=0;for(s=0;29>=s;)b[s++]=0}for(w[256]=1,n=0,i=t.length;n=i){for(d&&r(d,-1),s=0,a=i-n;ss&&t+sf&&(i=n,f=s),258===s)break}return new function(e,t){this.length=e,this.g=t}(f,t-i)}(t,n,h),d?d.length2*f[s-1]+h[s]&&(f[s]=2*f[s-1]+h[s]),d[s]=Array(f[s]),p[s]=Array(f[s]);for(i=0;ie[i]?(d[s][a]=o,p[s][a]=t,u+=2):(d[s][a]=e[i],p[s][a]=i,++i);y[s]=0,1===h[s]&&n(s)}return c}(i,i.length,t),a=0,o=r.length;a>>=1;return s}var u=void 0,f=!0,h=this,l="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array&&"undefined"!=typeof DataView;t.prototype.a=function(e,t,n){var i,s=this.buffer,a=this.index,o=this.d,u=s[a];if(n&&1>>8&255]<<16|m[e>>>16&255]<<8|m[e>>>24&255])>>32-t:m[e]>>8-t),8>t+o)u=u<>t-i-1&1,8==++o&&(o=0,s[a++]=m[u],u=0,a===s.length&&(s=r(this)));s[a]=u,this.buffer=s,this.d=o,this.index=a},t.prototype.finish=function(){var e,t=this.buffer,r=this.index;return 0c;++c){for(var p=g=c,y=7,g=g>>>1;g;g>>>=1)p<<=1,p|=1&g,--y;d[c]=(p<>>0}var m=d;n.prototype.getParent=function(e){return 2*((e-2)/4|0)},n.prototype.push=function(e,t){var r,n,i,s=this.buffer;for(r=this.length,s[this.length++]=t,s[this.length++]=e;0s[n]);)i=s[r],s[r]=s[n],s[n]=i,i=s[r+1],s[r+1]=s[n+1],s[n+1]=i,r=n;return this.length},n.prototype.pop=function(){var e,t,r,n,i,s=this.buffer;for(t=s[0],e=s[1],this.length-=2,s[0]=s[this.length],s[1]=s[this.length+1],i=0;!((n=2*i+2)>=this.length)&&(n+2s[n]&&(n+=2),s[n]>s[i]);)r=s[i],s[i]=s[n],s[n]=r,r=s[i+1],s[i+1]=s[n+1],s[n+1]=r,i=n;return{index:e,value:t,length:this.length}};var v,w=2,b=[];for(v=0;288>v;v++)switch(f){case 143>=v:b.push([v+48,8]);break;case 255>=v:b.push([v-144+400,9]);break;case 279>=v:b.push([v-256+0,7]);break;case 287>=v:b.push([v-280+192,8]);break;default:throw"invalid literal: "+v}i.prototype.h=function(){var e,r,n,i,h=this.input;switch(this.e){case 0:for(n=0,i=h.length;n>>8&255,k[A++]=255&g,k[A++]=g>>>8&255,l)k.set(c,A),A+=c.length,k=k.subarray(0,A);else{for(m=0,v=c.length;mY)for(;0Y?Y:138)>Y-3&&$=$?(te[W++]=17,te[W++]=$-3,re[17]++):(te[W++]=18,te[W++]=$-11,re[18]++),Y-=$;else if(te[W++]=ee[V],re[ee[V]]++,3>--Y)for(;0Y?Y:6)>Y-3&&$H;H++)G[H]=D[q[H]];for(O=19;4=e:return[265,e-11,1];case 14>=e:return[266,e-13,1];case 16>=e:return[267,e-15,1];case 18>=e:return[268,e-17,1];case 22>=e:return[269,e-19,2];case 26>=e:return[270,e-23,2];case 30>=e:return[271,e-27,2];case 34>=e:return[272,e-31,2];case 42>=e:return[273,e-35,3];case 50>=e:return[274,e-43,3];case 58>=e:return[275,e-51,3];case 66>=e:return[276,e-59,3];case 82>=e:return[277,e-67,4];case 98>=e:return[278,e-83,4];case 114>=e:return[279,e-99,4];case 130>=e:return[280,e-115,4];case 162>=e:return[281,e-131,5];case 194>=e:return[282,e-163,5];case 226>=e:return[283,e-195,5];case 257>=e:return[284,e-227,5];case 258===e:return[285,e-258,0];default:throw"invalid length: "+e}}var t,r,n=[];for(t=3;258>=t;t++)r=e(t),n[t]=r[2]<<24|r[1]<<16|r[0];return n}(),A=l?new Uint32Array(k):k;e("Zlib.RawDeflate",i),e("Zlib.RawDeflate.prototype.compress",i.prototype.h);var _,E,S,U,K={NONE:0,FIXED:1,DYNAMIC:w};if(Object.keys)_=Object.keys(K);else for(E in _=[],S=0,K)_[S++]=E;for(S=0,U=_.length;Sd&&(d=e[f]),e[f]>=1;for(l=n<<16|f,h=a;h=o)throw Error("input buffer is broken");n|=s[a++]<>>t,e.c=i-t,e.d=a,r}function i(e,t){for(var r,n,i=e.f,s=e.c,a=e.input,o=e.d,u=a.length,f=t[0],h=t[1];s=u);)i|=a[o++]<>>16)>s)throw Error("invalid code length: "+n);return e.f=i>>n,e.c=s-n,e.d=o,65535&r}var s=void 0,a=this,o="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array&&"undefined"!=typeof DataView,u=0,f=1;r.prototype.t=function(){for(;!this.l;){var e=n(this,3);switch(1&e&&(this.l=!0),e>>>=1){case 0:var r=this.input,a=this.d,h=this.b,l=this.a,c=r.length,p=s,y=s,g=h.length,m=s;if(this.c=this.f=0,a+1>=c)throw Error("invalid uncompressed block header: LEN");if(p=r[a++]|r[a++]<<8,a+1>=c)throw Error("invalid uncompressed block header: NLEN");if(y=r[a++]|r[a++]<<8,p===~y)throw Error("invalid uncompressed block header: length verify");if(a+p>r.length)throw Error("input buffer is broken");switch(this.i){case u:for(;l+p>h.length;){if(m=g-l,p-=m,o)h.set(r.subarray(a,a+m),l),l+=m,a+=m;else for(;m--;)h[l++]=r[a++];this.a=l,h=this.e(),l=this.a}break;case f:for(;l+p>h.length;)h=this.e({o:2});break;default:throw Error("invalid inflate mode")}if(o)h.set(r.subarray(a,a+p),l),l+=p,a+=p;else for(;p--;)h[l++]=r[a++];this.d=a,this.a=l,this.b=h;break;case 1:this.j(S,K);break;case 2:for(var v=n(this,5)+257,w=n(this,5)+1,b=n(this,4)+4,k=new(o?Uint8Array:Array)(d.length),A=s,_=s,E=s,U=s,P=s,j=s,x=s,T=s,O=s,T=0;T=h?8:255>=h?9:279>=h?7:8;var _,E,S=t(A),U=new(o?Uint8Array:Array)(30);for(_=0,E=U.length;_a)s>=h&&(this.a=s,r=this.e(),s=this.a),r[s++]=a;else for(f=y[o=a-257],0=h&&(this.a=s,r=this.e(),s=this.a);f--;)r[s]=r[s++-u];for(;8<=this.c;)this.c-=8,this.d--;this.a=s},r.prototype.s=function(e,t){var r=this.b,s=this.a;this.n=e;for(var a,o,u,f,h=r.length;256!==(a=i(this,e));)if(256>a)s>=h&&(r=this.e(),h=r.length),r[s++]=a;else for(f=y[o=a-257],0h&&(r=this.e(),h=r.length);f--;)r[s]=r[s++-u];for(;8<=this.c;)this.c-=8,this.d--;this.a=s},r.prototype.e=function(){var e,t,r=new(o?Uint8Array:Array)(this.a-32768),n=this.a-32768,i=this.b;if(o)r.set(i.subarray(32768,r.length));else for(e=0,t=r.length;ee;++e)i[e]=i[n+e];return this.a=32768,i},r.prototype.u=function(e){var t,r,n,i,s=this.input.length/this.d+1|0,a=this.input,u=this.b;return e&&("number"==typeof e.o&&(s=e.o),"number"==typeof e.q&&(s+=e.q)),2>s?(r=(a.length-this.d)/this.n[2],i=r/2*258|0,n=it&&(this.b.length=t),e=this.b),this.buffer=e},e("Zlib.RawInflate",r),e("Zlib.RawInflate.prototype.decompress",r.prototype.t);var P,j,x,T,O={ADAPTIVE:f,BLOCK:u};if(Object.keys)P=Object.keys(O);else for(j in P=[],x=0,O)P[x++]=j;for(x=0,T=P.length;xc&&(c=e[u]),e[u]>=1;for(h=n<<16|u,f=a;f>16&255,s[a++]=n>>24;var o;switch(m){case 1===i:o=[0,i-1,0];break;case 2===i:o=[1,i-2,0];break;case 3===i:o=[2,i-3,0];break;case 4===i:o=[3,i-4,0];break;case 6>=i:o=[4,i-5,1];break;case 8>=i:o=[5,i-7,1];break;case 12>=i:o=[6,i-9,2];break;case 16>=i:o=[7,i-13,2];break;case 24>=i:o=[8,i-17,3];break;case 32>=i:o=[9,i-25,3];break;case 48>=i:o=[10,i-33,4];break;case 64>=i:o=[11,i-49,4];break;case 96>=i:o=[12,i-65,5];break;case 128>=i:o=[13,i-97,5];break;case 192>=i:o=[14,i-129,6];break;case 256>=i:o=[15,i-193,6];break;case 384>=i:o=[16,i-257,7];break;case 512>=i:o=[17,i-385,7];break;case 768>=i:o=[18,i-513,8];break;case 1024>=i:o=[19,i-769,8];break;case 1536>=i:o=[20,i-1025,9];break;case 2048>=i:o=[21,i-1537,9];break;case 3072>=i:o=[22,i-2049,10];break;case 4096>=i:o=[23,i-3073,10];break;case 6144>=i:o=[24,i-4097,11];break;case 8192>=i:o=[25,i-6145,11];break;case 12288>=i:o=[26,i-8193,12];break;case 16384>=i:o=[27,i-12289,12];break;case 24576>=i:o=[28,i-16385,13];break;case 32768>=i:o=[29,i-24577,13];break;default:e("invalid distance")}n=o,s[a++]=n[0],s[a++]=n[1],s[a++]=n[2];var u,f;for(u=0,f=s.length;u=a;)b[a++]=0;for(a=0;29>=a;)k[a++]=0}for(b[256]=1,i=0,s=r.length;i=s){for(l&&n(l,-1),a=0,o=s-i;as&&t+sf&&(i=n,f=s),258===s)break}return new function(e,t){this.length=e,this.G=t}(f,t-i)}(r,i,f),l?l.length2*f[s-1]+h[s]&&(f[s]=2*f[s-1]+h[s]),c[s]=Array(f[s]),d[s]=Array(f[s]);for(i=0;ie[i]?(c[s][a]=o,d[s][a]=t,u+=2):(c[s][a]=e[i],d[s][a]=i,++i);p[s]=0,1===h[s]&&n(s)}return l}(i,i.length,t),a=0,o=r.length;a>>=1;return s}function f(t,r){switch(this.l=[],this.m=32768,this.e=this.g=this.c=this.q=0,this.input=w?new Uint8Array(t):t,this.s=!1,this.n=C,this.B=!1,!r&&(r={})||(r.index&&(this.c=r.index),r.bufferSize&&(this.m=r.bufferSize),r.bufferType&&(this.n=r.bufferType),r.resize&&(this.B=r.resize)),this.n){case O:this.b=32768,this.a=new(w?Uint8Array:Array)(32768+this.m+258);break;case C:this.b=0,this.a=new(w?Uint8Array:Array)(this.m),this.f=this.J,this.t=this.H,this.o=this.I;break;default:e(Error("invalid inflate mode"))}}function h(t,r){for(var n,i=t.g,s=t.e,a=t.input,o=t.c,u=a.length;s=u&&e(Error("input buffer is broken")),i|=a[o++]<>>r,t.e=s-r,t.c=o,n}function l(t,r){for(var n,i,s=t.g,a=t.e,o=t.input,u=t.c,f=o.length,h=r[0],l=r[1];a=f);)s|=o[u++]<>>16)>a&&e(Error("invalid code length: "+i)),t.g=s>>i,t.e=a-i,t.c=u,65535&n}function c(e){if("string"==typeof e){var t,r,n=e.split("");for(t=0,r=n.length;t>>0;e=n}for(var i,s=1,a=0,o=e.length,u=0;0>>0}function d(t,r){var n,i;switch(this.input=t,this.c=0,!r&&(r={})||(r.index&&(this.c=r.index),r.verify&&(this.M=r.verify)),n=t[this.c++],i=t[this.c++],15&n){case Q:this.method=Q;break;default:e(Error("unsupported compression method"))}0!=((n<<8)+i)%31&&e(Error("invalid fcheck flag:"+((n<<8)+i)%31)),32&i&&e(Error("fdict flag is not supported")),this.A=new f(t,{index:this.c,bufferSize:r.bufferSize,bufferType:r.bufferType,resize:r.resize})}function p(e,t){this.input=e,this.a=new(w?Uint8Array:Array)(32768),this.h=ee.k;var r,n={};!t&&(t={})||"number"!=typeof t.compressionType||(this.h=t.compressionType);for(r in t)n[r]=t[r];n.outputBuffer=this.a,this.z=new s(this.input,n)}function y(e,r){var n,i,s,a;if(Object.keys)n=Object.keys(r);else for(i in n=[],s=0,r)n[s++]=i;for(s=0,a=n.length;s>>8&255]<<16|S[e>>>16&255]<<8|S[e>>>24&255])>>32-t:S[e]>>8-t),8>t+a)o=o<>t-n-1&1,8==++a&&(a=0,i[s++]=S[o],o=0,s===i.length&&(i=this.f()));i[s]=o,this.buffer=i,this.i=a,this.index=s},r.prototype.finish=function(){var e,t=this.buffer,r=this.index;return 0b;++b){for(var A=E=b,_=7,E=E>>>1;E;E>>>=1)A<<=1,A|=1&E,--_;k[b]=(A<<_&255)>>>0}var S=k;n.prototype.getParent=function(e){return 2*((e-2)/4|0)},n.prototype.push=function(e,t){var r,n,i,s=this.buffer;for(r=this.length,s[this.length++]=t,s[this.length++]=e;0s[n]);)i=s[r],s[r]=s[n],s[n]=i,i=s[r+1],s[r+1]=s[n+1],s[n+1]=i,r=n;return this.length},n.prototype.pop=function(){var e,t,r,n,i,s=this.buffer;for(t=s[0],e=s[1],this.length-=2,s[0]=s[this.length],s[1]=s[this.length+1],i=0;!((n=2*i+2)>=this.length)&&(n+2s[n]&&(n+=2),s[n]>s[i]);)r=s[i],s[i]=s[n],s[n]=r,r=s[i+1],s[i+1]=s[n+1],s[n+1]=r,i=n;return{index:e,value:t,length:this.length}};var U,K=2,P={NONE:0,r:1,k:K,N:3},j=[];for(U=0;288>U;U++)switch(m){case 143>=U:j.push([U+48,8]);break;case 255>=U:j.push([U-144+400,9]);break;case 279>=U:j.push([U-256+0,7]);break;case 287>=U:j.push([U-280+192,8]);break;default:e("invalid literal: "+U)}s.prototype.j=function(){var t,n,i,s,f=this.input;switch(this.h){case 0:for(i=0,s=f.length;i>>8&255,b[k++]=255&p,b[k++]=p>>>8&255,w)b.set(h,k),k+=h.length,b=b.subarray(0,k);else{for(y=0,v=h.length;yX)for(;0X?X:138)>X-3&&J=J?(re[$++]=17,re[$++]=J-3,ne[17]++):(re[$++]=18,re[$++]=J-11,ne[18]++),X-=J;else if(re[$++]=te[Z],ne[te[Z]]++,3>--X)for(;0X?X:6)>X-3&&JF;F++)V[F]=N[G[F]];for(C=19;4=t:return[265,t-11,1];case 14>=t:return[266,t-13,1];case 16>=t:return[267,t-15,1];case 18>=t:return[268,t-17,1];case 22>=t:return[269,t-19,2];case 26>=t:return[270,t-23,2];case 30>=t:return[271,t-27,2];case 34>=t:return[272,t-31,2];case 42>=t:return[273,t-35,3];case 50>=t:return[274,t-43,3];case 58>=t:return[275,t-51,3];case 66>=t:return[276,t-59,3];case 82>=t:return[277,t-67,4];case 98>=t:return[278,t-83,4];case 114>=t:return[279,t-99,4];case 130>=t:return[280,t-115,4];case 162>=t:return[281,t-131,5];case 194>=t:return[282,t-163,5];case 226>=t:return[283,t-195,5];case 257>=t:return[284,t-227,5];case 258===t:return[285,t-258,0];default:e("invalid length: "+t)}}var r,n,i=[];for(r=3;258>=r;r++)n=t(r),i[r]=n[2]<<24|n[1]<<16|n[0];return i}(),T=w?new Uint32Array(x):x,O=0,C=1,I={D:O,C:C};f.prototype.p=function(){for(;!this.s;){var t=h(this,3);switch(1&t&&(this.s=m),t>>>=1){case 0:var r=this.input,n=this.c,s=this.a,a=this.b,o=r.length,u=g,f=g,c=s.length,d=g;switch(this.e=this.g=0,n+1>=o&&e(Error("invalid uncompressed block header: LEN")),u=r[n++]|r[n++]<<8,n+1>=o&&e(Error("invalid uncompressed block header: NLEN")),f=r[n++]|r[n++]<<8,u===~f&&e(Error("invalid uncompressed block header: length verify")),n+u>r.length&&e(Error("input buffer is broken")),this.n){case O:for(;a+u>s.length;){if(d=c-a,u-=d,w)s.set(r.subarray(n,n+d),a),a+=d,n+=d;else for(;d--;)s[a++]=r[n++];this.b=a,s=this.f(),a=this.b}break;case C:for(;a+u>s.length;)s=this.f({v:2});break;default:e(Error("invalid inflate mode"))}if(w)s.set(r.subarray(n,n+u),a),a+=u,n+=u;else for(;u--;)s[a++]=r[n++];this.c=n,this.b=a,this.a=s;break;case 1:this.o(W,J);break;case 2:for(var p=h(this,5)+257,y=h(this,5)+1,v=h(this,4)+4,b=new(w?Uint8Array:Array)(N.length),k=g,A=g,_=g,E=g,S=g,U=g,K=g,P=g,j=g,P=0;P=M?8:255>=M?9:279>=M?7:8;var Y,X,W=i(Z),$=new(w?Uint8Array:Array)(30);for(Y=0,X=$.length;Yi)n>=u&&(this.b=n,r=this.f(),n=this.b),r[n++]=i;else for(o=R[s=i-257],0=u&&(this.b=n,r=this.f(),n=this.b);o--;)r[n]=r[n++-a];for(;8<=this.e;)this.e-=8,this.c--;this.b=n},f.prototype.I=function(e,t){var r=this.a,n=this.b;this.u=e;for(var i,s,a,o,u=r.length;256!==(i=l(this,e));)if(256>i)n>=u&&(r=this.f(),u=r.length),r[n++]=i;else for(o=R[s=i-257],0u&&(r=this.f(),u=r.length);o--;)r[n]=r[n++-a];for(;8<=this.e;)this.e-=8,this.c--;this.b=n},f.prototype.f=function(){var e,t,r=new(w?Uint8Array:Array)(this.b-32768),n=this.b-32768,i=this.a;if(w)r.set(i.subarray(32768,r.length));else for(e=0,t=r.length;ee;++e)i[e]=i[n+e];return this.b=32768,i},f.prototype.J=function(e){var t,r,n,i,s=this.input.length/this.c+1|0,a=this.input,o=this.a;return e&&("number"==typeof e.v&&(s=e.v),"number"==typeof e.F&&(s+=e.F)),2>s?(r=(a.length-this.c)/this.u[2],i=r/2*258|0,n=it&&(this.a.length=t),e=this.a),this.buffer=e},d.prototype.p=function(){var t,r=this.input;return t=this.A.p(),this.c=this.A.c,this.M&&(r[this.c++]<<24|r[this.c++]<<16|r[this.c++]<<8|r[this.c++])>>>0!==c(t)&&e(Error("invalid adler-32 checksum")),t};var Q=8,ee=P;p.prototype.j=function(){var t,r,n,i,s,a,o,u=0;switch(o=this.a,t=Q){case Q:r=Math.LOG2E*Math.log(32768)-8;break;default:e(Error("invalid compression method"))}switch(n=r<<4|t,o[u++]=n,t){case Q:switch(this.h){case ee.NONE:s=0;break;case ee.r:s=1;break;case ee.k:s=2;break;default:e(Error("unsupported compression type"))}break;default:e(Error("invalid compression method"))}return i=s<<6|0,o[u++]=i|31-(256*n+i)%31,a=c(this.input),this.z.b=u,o=this.z.j(),u=o.length,w&&((o=new Uint8Array(o.buffer)).length<=u+4&&(this.a=new Uint8Array(o.length+4),this.a.set(o),o=this.a),o=o.subarray(0,u+4)),o[u++]=a>>24&255,o[u++]=a>>16&255,o[u++]=a>>8&255,o[u++]=255&a,o},t("Zlib.Inflate",d),t("Zlib.Inflate.prototype.decompress",d.prototype.p),y("Zlib.Inflate.BufferType",{ADAPTIVE:I.C,BLOCK:I.D}),t("Zlib.Deflate",p),t("Zlib.Deflate.compress",function(e,t){return new p(e,t).j()}),t("Zlib.Deflate.prototype.compress",p.prototype.j),y("Zlib.Deflate.CompressionType",{NONE:ee.NONE,FIXED:ee.r,DYNAMIC:ee.k})}).call(this)},{}],9:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=function(e){return e&&e.__esModule?e:{default:e}}(e("../enums.js"));r.default={prefer_hash_algorithm:n.default.hash.sha256,encryption_cipher:n.default.symmetric.aes256,compression:n.default.compression.zip,aead_protect:!1,integrity_protect:!0,ignore_mdc_error:!1,checksum_required:!1,verify_expired_keys:!0,rsa_blinding:!0,use_native:!0,zero_copy:!1,debug:!1,tolerant:!0,show_version:!0,show_comment:!0,versionstring:"OpenPGP.js v2.6.2",commentstring:"https://openpgpjs.org",keyserver:"https://keyserver.ubuntu.com",node_store:"./openpgp.store"}},{"../enums.js":35}],10:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=e("./config.js");Object.defineProperty(r,"default",{enumerable:!0,get:function(){return function(e){return e&&e.__esModule?e:{default:e}}(n).default}})},{"./config.js":9}],11:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=function(e){return e&&e.__esModule?e:{default:e}}(e("./cipher"));r.default={encrypt:function(e,t,r,i,s){var a=(t=new n.default[t](i)).blockSize,o=new Uint8Array(a),u=new Uint8Array(a),f=new Uint8Array(e.length+2);f.set(e),f[e.length]=e[a-2],f[e.length+1]=e[a-1],e=f;var h,l,c,d=new Uint8Array(r.length+2+2*a),p=s?0:2;for(h=0;ha*f;){var c=e.encrypt(u);for(o=r.subarray(f*a,f*a+a),s=0;so*u;){var l=e.encrypt(s);for(s=r.subarray(u*o+0,u*o+o+0),a=0;a>8&255}function s(e){return e>>16&255}function a(e){return e>>24&255}function o(e,t,r,n){return i(c[255&e])|i(c[t>>8&255])<<8|i(c[r>>16&255])<<16|i(c[n>>>24])<<24}function u(e,t,r){var u,f,h;for(h=function(e){var t,r,n=e.length,i=new Array(n/4);if(e&&!(n%4)){for(t=0,r=0;r>8&255]^p[r[2]>>16&255]^y[r[3]>>>24],h[1]=c[255&r[1]]^d[r[2]>>8&255]^p[r[3]>>16&255]^y[r[0]>>>24],h[2]=c[255&r[2]]^d[r[3]>>8&255]^p[r[0]>>16&255]^y[r[1]>>>24],h[3]=c[255&r[3]]^d[r[0]>>8&255]^p[r[1]>>16&255]^y[r[2]>>>24];return u=f-1,r[0]=h[0]^t.rk[u][0],r[1]=h[1]^t.rk[u][1],r[2]=h[2]^t.rk[u][2],r[3]=h[3]^t.rk[u][3],h[0]=o(r[0],r[1],r[2],r[3])^t.rk[f][0],h[1]=o(r[1],r[2],r[3],r[0])^t.rk[f][1],h[2]=o(r[2],r[3],r[0],r[1])^t.rk[f][2],h[3]=o(r[3],r[0],r[1],r[2])^t.rk[f][3],function(e){var t,r=0,o=e.length,u=new Array(4*o);for(t=0;t=0;o--)v[o]=y[o];for(u=0,f=0,o=0;o>>=8,n=255&e,e>>>=8,r=255&e,e>>>=8,t=255&e,s=this.sboxes[0][t]+this.sboxes[1][r],s^=this.sboxes[2][n],s+=this.sboxes[3][i]},n.prototype._encrypt_block=function(e){var t,r=e[0],n=e[1];for(t=0;t>>24-8*t&255,i[t+n]=r[1]>>>24-8*t&255;return i},n.prototype._decrypt_block=function(e){var t,r=e[0],n=e[1];for(t=this.NN+1;t>1;--t){var i=r^=this.parray[t];r=n=this._F(r)^n,n=i}r^=this.parray[1],n^=this.parray[0],e[0]=this._clean(n),e[1]=this._clean(r)},n.prototype.init=function(e){var t,r=0;for(this.parray=[],t=0;t=e.length&&(r=0);this.parray[t]=this.PARRAY[t]^i}for(this.sboxes=[],t=0;t<4;++t)for(this.sboxes[t]=[],r=0;r<256;++r)this.sboxes[t][r]=this.SBOXES[t][r];var s=[0,0];for(t=0;t>>32-r;return(s[0][i>>>24]^s[1][i>>>16&255])-s[2][i>>>8&255]+s[3][255&i]}function t(e,t,r){var n=t^e,i=n<>>32-r;return s[0][i>>>24]-s[1][i>>>16&255]+s[2][i>>>8&255]^s[3][255&i]}function r(e,t,r){var n=t-e,i=n<>>32-r;return(s[0][i>>>24]+s[1][i>>>16&255]^s[2][i>>>8&255])-s[3][255&i]}this.BlockSize=8,this.KeySize=16,this.setKey=function(e){if(this.masking=new Array(16),this.rotate=new Array(16),this.reset(),e.length!==this.KeySize)throw new Error("CAST-128: keys must be 16 bytes");return this.keySchedule(e),!0},this.reset=function(){for(var e=0;e<16;e++)this.masking[e]=0,this.rotate[e]=0},this.getBlockSize=function(){return this.BlockSize},this.encrypt=function(n){for(var i=new Array(n.length),s=0;s>>24&255,i[s+1]=u>>>16&255,i[s+2]=u>>>8&255,i[s+3]=255&u,i[s+4]=o>>>24&255,i[s+5]=o>>>16&255,i[s+6]=o>>>8&255,i[s+7]=255&o}return i},this.decrypt=function(n){for(var i=new Array(n.length),s=0;s>>24&255,i[s+1]=u>>>16&255,i[s+2]=u>>>8&255,i[s+3]=255&u,i[s+4]=o>>>24&255,i[s+5]=o>>16&255,i[s+6]=o>>8&255,i[s+7]=255&o}return i};var n=new Array(4);n[0]=new Array(4),n[0][0]=new Array(4,0,13,15,12,14,8),n[0][1]=new Array(5,2,16,18,17,19,10),n[0][2]=new Array(6,3,23,22,21,20,9),n[0][3]=new Array(7,1,26,25,27,24,11),n[1]=new Array(4),n[1][0]=new Array(0,6,21,23,20,22,16),n[1][1]=new Array(1,4,0,2,1,3,18),n[1][2]=new Array(2,5,7,6,5,4,17),n[1][3]=new Array(3,7,10,9,11,8,19),n[2]=new Array(4),n[2][0]=new Array(4,0,13,15,12,14,8),n[2][1]=new Array(5,2,16,18,17,19,10),n[2][2]=new Array(6,3,23,22,21,20,9),n[2][3]=new Array(7,1,26,25,27,24,11),n[3]=new Array(4),n[3][0]=new Array(0,6,21,23,20,22,16),n[3][1]=new Array(1,4,0,2,1,3,18),n[3][2]=new Array(2,5,7,6,5,4,17),n[3][3]=new Array(3,7,10,9,11,8,19);var i=new Array(4);i[0]=new Array(4),i[0][0]=new Array(24,25,23,22,18),i[0][1]=new Array(26,27,21,20,22),i[0][2]=new Array(28,29,19,18,25),i[0][3]=new Array(30,31,17,16,28),i[1]=new Array(4),i[1][0]=new Array(3,2,12,13,8),i[1][1]=new Array(1,0,14,15,13),i[1][2]=new Array(7,6,8,9,3),i[1][3]=new Array(5,4,10,11,7),i[2]=new Array(4),i[2][0]=new Array(19,18,28,29,25),i[2][1]=new Array(17,16,30,31,28),i[2][2]=new Array(23,22,24,25,18),i[2][3]=new Array(21,20,26,27,22),i[3]=new Array(4),i[3][0]=new Array(8,9,7,6,3),i[3][1]=new Array(10,11,5,4,7),i[3][2]=new Array(12,13,3,2,8),i[3][3]=new Array(14,15,1,0,13),this.keySchedule=function(e){var t,r,a=new Array(8),o=new Array(32);for(t=0;t<4;t++)r=4*t,a[t]=e[r]<<24|e[r+1]<<16|e[r+2]<<8|e[r+3];for(var u,f=[6,7,4,5],h=0,l=0;l<2;l++)for(var c=0;c<4;c++){for(r=0;r<4;r++){var d=n[c][r];u=a[d[1]],u^=s[4][a[d[2]>>>2]>>>24-8*(3&d[2])&255],u^=s[5][a[d[3]>>>2]>>>24-8*(3&d[3])&255],u^=s[6][a[d[4]>>>2]>>>24-8*(3&d[4])&255],u^=s[7][a[d[5]>>>2]>>>24-8*(3&d[5])&255],u^=s[f[r]][a[d[6]>>>2]>>>24-8*(3&d[6])&255],a[d[0]]=u}for(r=0;r<4;r++){var p=i[c][r];u=s[4][a[p[0]>>>2]>>>24-8*(3&p[0])&255],u^=s[5][a[p[1]>>>2]>>>24-8*(3&p[1])&255],u^=s[6][a[p[2]>>>2]>>>24-8*(3&p[2])&255],u^=s[7][a[p[3]>>>2]>>>24-8*(3&p[3])&255],u^=s[4+r][a[p[4]>>>2]>>>24-8*(3&p[4])&255],o[h]=u,h++}}for(t=0;t<16;t++)this.masking[t]=o[t],this.rotate[t]=31&o[16+t]};var s=new Array(8);s[0]=new Array(821772500,2678128395,1810681135,1059425402,505495343,2617265619,1610868032,3483355465,3218386727,2294005173,3791863952,2563806837,1852023008,365126098,3269944861,584384398,677919599,3229601881,4280515016,2002735330,1136869587,3744433750,2289869850,2731719981,2714362070,879511577,1639411079,575934255,717107937,2857637483,576097850,2731753936,1725645e3,2810460463,5111599,767152862,2543075244,1251459544,1383482551,3052681127,3089939183,3612463449,1878520045,1510570527,2189125840,2431448366,582008916,3163445557,1265446783,1354458274,3529918736,3202711853,3073581712,3912963487,3029263377,1275016285,4249207360,2905708351,3304509486,1442611557,3585198765,2712415662,2731849581,3248163920,2283946226,208555832,2766454743,1331405426,1447828783,3315356441,3108627284,2957404670,2981538698,3339933917,1669711173,286233437,1465092821,1782121619,3862771680,710211251,980974943,1651941557,430374111,2051154026,704238805,4128970897,3144820574,2857402727,948965521,3333752299,2227686284,718756367,2269778983,2731643755,718440111,2857816721,3616097120,1113355533,2478022182,410092745,1811985197,1944238868,2696854588,1415722873,1682284203,1060277122,1998114690,1503841958,82706478,2315155686,1068173648,845149890,2167947013,1768146376,1993038550,3566826697,3390574031,940016341,3355073782,2328040721,904371731,1205506512,4094660742,2816623006,825647681,85914773,2857843460,1249926541,1417871568,3287612,3211054559,3126306446,1975924523,1353700161,2814456437,2438597621,1800716203,722146342,2873936343,1151126914,4160483941,2877670899,458611604,2866078500,3483680063,770352098,2652916994,3367839148,3940505011,3585973912,3809620402,718646636,2504206814,2914927912,3631288169,2857486607,2860018678,575749918,2857478043,718488780,2069512688,3548183469,453416197,1106044049,3032691430,52586708,3378514636,3459808877,3211506028,1785789304,218356169,3571399134,3759170522,1194783844,1523787992,3007827094,1975193539,2555452411,1341901877,3045838698,3776907964,3217423946,2802510864,2889438986,1057244207,1636348243,3761863214,1462225785,2632663439,481089165,718503062,24497053,3332243209,3344655856,3655024856,3960371065,1195698900,2971415156,3710176158,2115785917,4027663609,3525578417,2524296189,2745972565,3564906415,1372086093,1452307862,2780501478,1476592880,3389271281,18495466,2378148571,901398090,891748256,3279637769,3157290713,2560960102,1447622437,4284372637,216884176,2086908623,1879786977,3588903153,2242455666,2938092967,3559082096,2810645491,758861177,1121993112,215018983,642190776,4169236812,1196255959,2081185372,3508738393,941322904,4124243163,2877523539,1848581667,2205260958,3180453958,2589345134,3694731276,550028657,2519456284,3789985535,2973870856,2093648313,443148163,46942275,2734146937,1117713533,1115362972,1523183689,3717140224,1551984063),s[1]=new Array(522195092,4010518363,1776537470,960447360,4267822970,4005896314,1435016340,1929119313,2913464185,1310552629,3579470798,3724818106,2579771631,1594623892,417127293,2715217907,2696228731,1508390405,3994398868,3925858569,3695444102,4019471449,3129199795,3770928635,3520741761,990456497,4187484609,2783367035,21106139,3840405339,631373633,3783325702,532942976,396095098,3548038825,4267192484,2564721535,2011709262,2039648873,620404603,3776170075,2898526339,3612357925,4159332703,1645490516,223693667,1567101217,3362177881,1029951347,3470931136,3570957959,1550265121,119497089,972513919,907948164,3840628539,1613718692,3594177948,465323573,2659255085,654439692,2575596212,2699288441,3127702412,277098644,624404830,4100943870,2717858591,546110314,2403699828,3655377447,1321679412,4236791657,1045293279,4010672264,895050893,2319792268,494945126,1914543101,2777056443,3894764339,2219737618,311263384,4275257268,3458730721,669096869,3584475730,3835122877,3319158237,3949359204,2005142349,2713102337,2228954793,3769984788,569394103,3855636576,1425027204,108000370,2736431443,3671869269,3043122623,1750473702,2211081108,762237499,3972989403,2798899386,3061857628,2943854345,867476300,964413654,1591880597,1594774276,2179821409,552026980,3026064248,3726140315,2283577634,3110545105,2152310760,582474363,1582640421,1383256631,2043843868,3322775884,1217180674,463797851,2763038571,480777679,2718707717,2289164131,3118346187,214354409,200212307,3810608407,3025414197,2674075964,3997296425,1847405948,1342460550,510035443,4080271814,815934613,833030224,1620250387,1945732119,2703661145,3966000196,1388869545,3456054182,2687178561,2092620194,562037615,1356438536,3409922145,3261847397,1688467115,2150901366,631725691,3840332284,549916902,3455104640,394546491,837744717,2114462948,751520235,2221554606,2415360136,3999097078,2063029875,803036379,2702586305,821456707,3019566164,360699898,4018502092,3511869016,3677355358,2402471449,812317050,49299192,2570164949,3259169295,2816732080,3331213574,3101303564,2156015656,3705598920,3546263921,143268808,3200304480,1638124008,3165189453,3341807610,578956953,2193977524,3638120073,2333881532,807278310,658237817,2969561766,1641658566,11683945,3086995007,148645947,1138423386,4158756760,1981396783,2401016740,3699783584,380097457,2680394679,2803068651,3334260286,441530178,4016580796,1375954390,761952171,891809099,2183123478,157052462,3683840763,1592404427,341349109,2438483839,1417898363,644327628,2233032776,2353769706,2201510100,220455161,1815641738,182899273,2995019788,3627381533,3702638151,2890684138,1052606899,588164016,1681439879,4038439418,2405343923,4229449282,167996282,1336969661,1688053129,2739224926,1543734051,1046297529,1138201970,2121126012,115334942,1819067631,1902159161,1941945968,2206692869,1159982321),s[2]=new Array(2381300288,637164959,3952098751,3893414151,1197506559,916448331,2350892612,2932787856,3199334847,4009478890,3905886544,1373570990,2450425862,4037870920,3778841987,2456817877,286293407,124026297,3001279700,1028597854,3115296800,4208886496,2691114635,2188540206,1430237888,1218109995,3572471700,308166588,570424558,2187009021,2455094765,307733056,1310360322,3135275007,1384269543,2388071438,863238079,2359263624,2801553128,3380786597,2831162807,1470087780,1728663345,4072488799,1090516929,532123132,2389430977,1132193179,2578464191,3051079243,1670234342,1434557849,2711078940,1241591150,3314043432,3435360113,3091448339,1812415473,2198440252,267246943,796911696,3619716990,38830015,1526438404,2806502096,374413614,2943401790,1489179520,1603809326,1920779204,168801282,260042626,2358705581,1563175598,2397674057,1356499128,2217211040,514611088,2037363785,2186468373,4022173083,2792511869,2913485016,1173701892,4200428547,3896427269,1334932762,2455136706,602925377,2835607854,1613172210,41346230,2499634548,2457437618,2188827595,41386358,4172255629,1313404830,2405527007,3801973774,2217704835,873260488,2528884354,2478092616,4012915883,2555359016,2006953883,2463913485,575479328,2218240648,2099895446,660001756,2341502190,3038761536,3888151779,3848713377,3286851934,1022894237,1620365795,3449594689,1551255054,15374395,3570825345,4249311020,4151111129,3181912732,310226346,1133119310,530038928,136043402,2476768958,3107506709,2544909567,1036173560,2367337196,1681395281,1758231547,3641649032,306774401,1575354324,3716085866,1990386196,3114533736,2455606671,1262092282,3124342505,2768229131,4210529083,1833535011,423410938,660763973,2187129978,1639812e3,3508421329,3467445492,310289298,272797111,2188552562,2456863912,310240523,677093832,1013118031,901835429,3892695601,1116285435,3036471170,1337354835,243122523,520626091,277223598,4244441197,4194248841,1766575121,594173102,316590669,742362309,3536858622,4176435350,3838792410,2501204839,1229605004,3115755532,1552908988,2312334149,979407927,3959474601,1148277331,176638793,3614686272,2083809052,40992502,1340822838,2731552767,3535757508,3560899520,1354035053,122129617,7215240,2732932949,3118912700,2718203926,2539075635,3609230695,3725561661,1928887091,2882293555,1988674909,2063640240,2491088897,1459647954,4189817080,2302804382,1113892351,2237858528,1927010603,4002880361,1856122846,1594404395,2944033133,3855189863,3474975698,1643104450,4054590833,3431086530,1730235576,2984608721,3084664418,2131803598,4178205752,267404349,1617849798,1616132681,1462223176,736725533,2327058232,551665188,2945899023,1749386277,2575514597,1611482493,674206544,2201269090,3642560800,728599968,1680547377,2620414464,1388111496,453204106,4156223445,1094905244,2754698257,2201108165,3757000246,2704524545,3922940700,3996465027),s[3]=new Array(2645754912,532081118,2814278639,3530793624,1246723035,1689095255,2236679235,4194438865,2116582143,3859789411,157234593,2045505824,4245003587,1687664561,4083425123,605965023,672431967,1336064205,3376611392,214114848,4258466608,3232053071,489488601,605322005,3998028058,264917351,1912574028,756637694,436560991,202637054,135989450,85393697,2152923392,3896401662,2895836408,2145855233,3535335007,115294817,3147733898,1922296357,3464822751,4117858305,1037454084,2725193275,2127856640,1417604070,1148013728,1827919605,642362335,2929772533,909348033,1346338451,3547799649,297154785,1917849091,4161712827,2883604526,3968694238,1469521537,3780077382,3375584256,1763717519,136166297,4290970789,1295325189,2134727907,2798151366,1566297257,3672928234,2677174161,2672173615,965822077,2780786062,289653839,1133871874,3491843819,35685304,1068898316,418943774,672553190,642281022,2346158704,1954014401,3037126780,4079815205,2030668546,3840588673,672283427,1776201016,359975446,3750173538,555499703,2769985273,1324923,69110472,152125443,3176785106,3822147285,1340634837,798073664,1434183902,15393959,216384236,1303690150,3881221631,3711134124,3960975413,106373927,2578434224,1455997841,1801814300,1578393881,1854262133,3188178946,3258078583,2302670060,1539295533,3505142565,3078625975,2372746020,549938159,3278284284,2620926080,181285381,2865321098,3970029511,68876850,488006234,1728155692,2608167508,836007927,2435231793,919367643,3339422534,3655756360,1457871481,40520939,1380155135,797931188,234455205,2255801827,3990488299,397000196,739833055,3077865373,2871719860,4022553888,772369276,390177364,3853951029,557662966,740064294,1640166671,1699928825,3535942136,622006121,3625353122,68743880,1742502,219489963,1664179233,1577743084,1236991741,410585305,2366487942,823226535,1050371084,3426619607,3586839478,212779912,4147118561,1819446015,1911218849,530248558,3486241071,3252585495,2886188651,3410272728,2342195030,20547779,2982490058,3032363469,3631753222,312714466,1870521650,1493008054,3491686656,615382978,4103671749,2534517445,1932181,2196105170,278426614,6369430,3274544417,2913018367,697336853,2143000447,2946413531,701099306,1558357093,2805003052,3500818408,2321334417,3567135975,216290473,3591032198,23009561,1996984579,3735042806,2024298078,3739440863,569400510,2339758983,3016033873,3097871343,3639523026,3844324983,3256173865,795471839,2951117563,4101031090,4091603803,3603732598,971261452,534414648,428311343,3389027175,2844869880,694888862,1227866773,2456207019,3043454569,2614353370,3749578031,3676663836,459166190,4132644070,1794958188,51825668,2252611902,3084671440,2036672799,3436641603,1099053433,2469121526,3059204941,1323291266,2061838604,1018778475,2233344254,2553501054,334295216,3556750194,1065731521,183467730),s[4]=new Array(2127105028,745436345,2601412319,2788391185,3093987327,500390133,1155374404,389092991,150729210,3891597772,3523549952,1935325696,716645080,946045387,2901812282,1774124410,3869435775,4039581901,3293136918,3438657920,948246080,363898952,3867875531,1286266623,1598556673,68334250,630723836,1104211938,1312863373,613332731,2377784574,1101634306,441780740,3129959883,1917973735,2510624549,3238456535,2544211978,3308894634,1299840618,4076074851,1756332096,3977027158,297047435,3790297736,2265573040,3621810518,1311375015,1667687725,47300608,3299642885,2474112369,201668394,1468347890,576830978,3594690761,3742605952,1958042578,1747032512,3558991340,1408974056,3366841779,682131401,1033214337,1545599232,4265137049,206503691,103024618,2855227313,1337551222,2428998917,2963842932,4015366655,3852247746,2796956967,3865723491,3747938335,247794022,3755824572,702416469,2434691994,397379957,851939612,2314769512,218229120,1380406772,62274761,214451378,3170103466,2276210409,3845813286,28563499,446592073,1693330814,3453727194,29968656,3093872512,220656637,2470637031,77972100,1667708854,1358280214,4064765667,2395616961,325977563,4277240721,4220025399,3605526484,3355147721,811859167,3069544926,3962126810,652502677,3075892249,4132761541,3498924215,1217549313,3250244479,3858715919,3053989961,1538642152,2279026266,2875879137,574252750,3324769229,2651358713,1758150215,141295887,2719868960,3515574750,4093007735,4194485238,1082055363,3417560400,395511885,2966884026,179534037,3646028556,3738688086,1092926436,2496269142,257381841,3772900718,1636087230,1477059743,2499234752,3811018894,2675660129,3285975680,90732309,1684827095,1150307763,1723134115,3237045386,1769919919,1240018934,815675215,750138730,2239792499,1234303040,1995484674,138143821,675421338,1145607174,1936608440,3238603024,2345230278,2105974004,323969391,779555213,3004902369,2861610098,1017501463,2098600890,2628620304,2940611490,2682542546,1171473753,3656571411,3687208071,4091869518,393037935,159126506,1662887367,1147106178,391545844,3452332695,1891500680,3016609650,1851642611,546529401,1167818917,3194020571,2848076033,3953471836,575554290,475796850,4134673196,450035699,2351251534,844027695,1080539133,86184846,1554234488,3692025454,1972511363,2018339607,1491841390,1141460869,1061690759,4244549243,2008416118,2351104703,2868147542,1598468138,722020353,1027143159,212344630,1387219594,1725294528,3745187956,2500153616,458938280,4129215917,1828119673,544571780,3503225445,2297937496,1241802790,267843827,2694610800,1397140384,1558801448,3782667683,1806446719,929573330,2234912681,400817706,616011623,4121520928,3603768725,1761550015,1968522284,4053731006,4192232858,4005120285,872482584,3140537016,3894607381,2287405443,1963876937,3663887957,1584857e3,2975024454,1833426440,4025083860),s[5]=new Array(4143615901,749497569,1285769319,3795025788,2514159847,23610292,3974978748,844452780,3214870880,3751928557,2213566365,1676510905,448177848,3730751033,4086298418,2307502392,871450977,3222878141,4110862042,3831651966,2735270553,1310974780,2043402188,1218528103,2736035353,4274605013,2702448458,3936360550,2693061421,162023535,2827510090,687910808,23484817,3784910947,3371371616,779677500,3503626546,3473927188,4157212626,3500679282,4248902014,2466621104,3899384794,1958663117,925738300,1283408968,3669349440,1840910019,137959847,2679828185,1239142320,1315376211,1547541505,1690155329,739140458,3128809933,3933172616,3876308834,905091803,1548541325,4040461708,3095483362,144808038,451078856,676114313,2861728291,2469707347,993665471,373509091,2599041286,4025009006,4170239449,2149739950,3275793571,3749616649,2794760199,1534877388,572371878,2590613551,1753320020,3467782511,1405125690,4270405205,633333386,3026356924,3475123903,632057672,2846462855,1404951397,3882875879,3915906424,195638627,2385783745,3902872553,1233155085,3355999740,2380578713,2702246304,2144565621,3663341248,3894384975,2502479241,4248018925,3094885567,1594115437,572884632,3385116731,767645374,1331858858,1475698373,3793881790,3532746431,1321687957,619889600,1121017241,3440213920,2070816767,2833025776,1933951238,4095615791,890643334,3874130214,859025556,360630002,925594799,1764062180,3920222280,4078305929,979562269,2810700344,4087740022,1949714515,546639971,1165388173,3069891591,1495988560,922170659,1291546247,2107952832,1813327274,3406010024,3306028637,4241950635,153207855,2313154747,1608695416,1150242611,1967526857,721801357,1220138373,3691287617,3356069787,2112743302,3281662835,1111556101,1778980689,250857638,2298507990,673216130,2846488510,3207751581,3562756981,3008625920,3417367384,2198807050,529510932,3547516680,3426503187,2364944742,102533054,2294910856,1617093527,1204784762,3066581635,1019391227,1069574518,1317995090,1691889997,3661132003,510022745,3238594800,1362108837,1817929911,2184153760,805817662,1953603311,3699844737,120799444,2118332377,207536705,2282301548,4120041617,145305846,2508124933,3086745533,3261524335,1877257368,2977164480,3160454186,2503252186,4221677074,759945014,254147243,2767453419,3801518371,629083197,2471014217,907280572,3900796746,940896768,2751021123,2625262786,3161476951,3661752313,3260732218,1425318020,2977912069,1496677566,3988592072,2140652971,3126511541,3069632175,977771578,1392695845,1698528874,1411812681,1369733098,1343739227,3620887944,1142123638,67414216,3102056737,3088749194,1626167401,2546293654,3941374235,697522451,33404913,143560186,2595682037,994885535,1247667115,3859094837,2699155541,3547024625,4114935275,2968073508,3199963069,2732024527,1237921620,951448369,1898488916,1211705605,2790989240,2233243581,3598044975),s[6]=new Array(2246066201,858518887,1714274303,3485882003,713916271,2879113490,3730835617,539548191,36158695,1298409750,419087104,1358007170,749914897,2989680476,1261868530,2995193822,2690628854,3443622377,3780124940,3796824509,2976433025,4259637129,1551479e3,512490819,1296650241,951993153,2436689437,2460458047,144139966,3136204276,310820559,3068840729,643875328,1969602020,1680088954,2185813161,3283332454,672358534,198762408,896343282,276269502,3014846926,84060815,197145886,376173866,3943890818,3813173521,3545068822,1316698879,1598252827,2633424951,1233235075,859989710,2358460855,3503838400,3409603720,1203513385,1193654839,2792018475,2060853022,207403770,1144516871,3068631394,1121114134,177607304,3785736302,326409831,1929119770,2983279095,4183308101,3474579288,3200513878,3228482096,119610148,1170376745,3378393471,3163473169,951863017,3337026068,3135789130,2907618374,1183797387,2015970143,4045674555,2182986399,2952138740,3928772205,384012900,2454997643,10178499,2879818989,2596892536,111523738,2995089006,451689641,3196290696,235406569,1441906262,3890558523,3013735005,4158569349,1644036924,376726067,1006849064,3664579700,2041234796,1021632941,1374734338,2566452058,371631263,4007144233,490221539,206551450,3140638584,1053219195,1853335209,3412429660,3562156231,735133835,1623211703,3104214392,2738312436,4096837757,3366392578,3110964274,3956598718,3196820781,2038037254,3877786376,2339753847,300912036,3766732888,2372630639,1516443558,4200396704,1574567987,4069441456,4122592016,2699739776,146372218,2748961456,2043888151,35287437,2596680554,655490400,1132482787,110692520,1031794116,2188192751,1324057718,1217253157,919197030,686247489,3261139658,1028237775,3135486431,3059715558,2460921700,986174950,2661811465,4062904701,2752986992,3709736643,367056889,1353824391,731860949,1650113154,1778481506,784341916,357075625,3608602432,1074092588,2480052770,3811426202,92751289,877911070,3600361838,1231880047,480201094,3756190983,3094495953,434011822,87971354,363687820,1717726236,1901380172,3926403882,2481662265,400339184,1490350766,2661455099,1389319756,2558787174,784598401,1983468483,30828846,3550527752,2716276238,3841122214,1765724805,1955612312,1277890269,1333098070,1564029816,2704417615,1026694237,3287671188,1260819201,3349086767,1016692350,1582273796,1073413053,1995943182,694588404,1025494639,3323872702,3551898420,4146854327,453260480,1316140391,1435673405,3038941953,3486689407,1622062951,403978347,817677117,950059133,4246079218,3278066075,1486738320,1417279718,481875527,2549965225,3933690356,760697757,1452955855,3897451437,1177426808,1702951038,4085348628,2447005172,1084371187,3516436277,3068336338,1073369276,1027665953,3284188590,1230553676,1368340146,2226246512,267243139,2274220762,4070734279,2497715176,2423353163,2504755875),s[7]=new Array(3793104909,3151888380,2817252029,895778965,2005530807,3871412763,237245952,86829237,296341424,3851759377,3974600970,2475086196,709006108,1994621201,2972577594,937287164,3734691505,168608556,3189338153,2225080640,3139713551,3033610191,3025041904,77524477,185966941,1208824168,2344345178,1721625922,3354191921,1066374631,1927223579,1971335949,2483503697,1551748602,2881383779,2856329572,3003241482,48746954,1398218158,2050065058,313056748,4255789917,393167848,1912293076,940740642,3465845460,3091687853,2522601570,2197016661,1727764327,364383054,492521376,1291706479,3264136376,1474851438,1685747964,2575719748,1619776915,1814040067,970743798,1561002147,2925768690,2123093554,1880132620,3151188041,697884420,2550985770,2607674513,2659114323,110200136,1489731079,997519150,1378877361,3527870668,478029773,2766872923,1022481122,431258168,1112503832,897933369,2635587303,669726182,3383752315,918222264,163866573,3246985393,3776823163,114105080,1903216136,761148244,3571337562,1690750982,3166750252,1037045171,1888456500,2010454850,642736655,616092351,365016990,1185228132,4174898510,1043824992,2023083429,2241598885,3863320456,3279669087,3674716684,108438443,2132974366,830746235,606445527,4173263986,2204105912,1844756978,2532684181,4245352700,2969441100,3796921661,1335562986,4061524517,2720232303,2679424040,634407289,885462008,3294724487,3933892248,2094100220,339117932,4048830727,3202280980,1458155303,2689246273,1022871705,2464987878,3714515309,353796843,2822958815,4256850100,4052777845,551748367,618185374,3778635579,4020649912,1904685140,3069366075,2670879810,3407193292,2954511620,4058283405,2219449317,3135758300,1120655984,3447565834,1474845562,3577699062,550456716,3466908712,2043752612,881257467,869518812,2005220179,938474677,3305539448,3850417126,1315485940,3318264702,226533026,965733244,321539988,1136104718,804158748,573969341,3708209826,937399083,3290727049,2901666755,1461057207,4013193437,4066861423,3242773476,2421326174,1581322155,3028952165,786071460,3900391652,3918438532,1485433313,4023619836,3708277595,3678951060,953673138,1467089153,1930354364,1533292819,2492563023,1346121658,1685000834,1965281866,3765933717,4190206607,2052792609,3515332758,690371149,3125873887,2180283551,2903598061,3933952357,436236910,289419410,14314871,1242357089,2904507907,1616633776,2666382180,585885352,3471299210,2699507360,1432659641,277164553,3354103607,770115018,2303809295,3741942315,3177781868,2853364978,2269453327,3774259834,987383833,1290892879,225909803,1741533526,890078084,1496906255,1111072499,916028167,243534141,1252605537,2204162171,531204876,290011180,3916834213,102027703,237315147,209093447,1486785922,220223953,2758195998,4175039106,82940208,3127791296,2569425252,518464269,1353887104,3941492737,2377294467,3935040926)},this.cast5.setKey(e),this.encrypt=function(e){return this.cast5.encrypt(e)}}Object.defineProperty(r,"__esModule",{value:!0}),r.default=n,n.blockSize=n.prototype.blockSize=8,n.keySize=n.prototype.keySize=16},{}],15:[function(e,t,r){"use strict";function n(e,t,r,n,i,s){var a,o,u,f,h,l,c,d,p,y,g,m,v,w,b=new Array(16843776,0,65536,16843780,16842756,66564,4,65536,1024,16843776,16843780,1024,16778244,16842756,16777216,4,1028,16778240,16778240,66560,66560,16842752,16842752,16778244,65540,16777220,16777220,65540,0,1028,66564,16777216,65536,16843780,4,16842752,16843776,16777216,16777216,1024,16842756,65536,66560,16777220,1024,4,16778244,66564,16843780,65540,16842752,16778244,16777220,1028,66564,16843776,1028,16778240,16778240,0,65540,66560,0,16842756),k=new Array(-2146402272,-2147450880,32768,1081376,1048576,32,-2146435040,-2147450848,-2147483616,-2146402272,-2146402304,-2147483648,-2147450880,1048576,32,-2146435040,1081344,1048608,-2147450848,0,-2147483648,32768,1081376,-2146435072,1048608,-2147483616,0,1081344,32800,-2146402304,-2146435072,32800,0,1081376,-2146435040,1048576,-2147450848,-2146435072,-2146402304,32768,-2146435072,-2147450880,32,-2146402272,1081376,32,32768,-2147483648,32800,-2146402304,1048576,-2147483616,1048608,-2147450848,-2147483616,1048608,1081344,0,-2147450880,32800,-2147483648,-2146435040,-2146402272,1081344),A=new Array(520,134349312,0,134348808,134218240,0,131592,134218240,131080,134217736,134217736,131072,134349320,131080,134348800,520,134217728,8,134349312,512,131584,134348800,134348808,131592,134218248,131584,131072,134218248,8,134349320,512,134217728,134349312,134217728,131080,520,131072,134349312,134218240,0,512,131080,134349320,134218240,134217736,512,0,134348808,134218248,131072,134217728,134349320,8,131592,131584,134217736,134348800,134218248,520,134348800,131592,8,134348808,131584),_=new Array(8396801,8321,8321,128,8396928,8388737,8388609,8193,0,8396800,8396800,8396929,129,0,8388736,8388609,1,8192,8388608,8396801,128,8388608,8193,8320,8388737,1,8320,8388736,8192,8396928,8396929,129,8388736,8388609,8396800,8396929,129,0,0,8396800,8320,8388736,8388737,1,8396801,8321,8321,128,8396929,129,1,8192,8388609,8193,8396928,8388737,8193,8320,8388608,8396801,128,8388608,8192,8396928),E=new Array(256,34078976,34078720,1107296512,524288,256,1073741824,34078720,1074266368,524288,33554688,1074266368,1107296512,1107820544,524544,1073741824,33554432,1074266112,1074266112,0,1073742080,1107820800,1107820800,33554688,1107820544,1073742080,0,1107296256,34078976,33554432,1107296256,524544,524288,1107296512,256,33554432,1073741824,34078720,1107296512,1074266368,33554688,1073741824,1107820544,34078976,1074266368,256,33554432,1107820544,1107820800,524544,1107296256,1107820800,34078720,0,1074266112,1107296256,524544,33554688,1073742080,524288,0,1074266112,34078976,1073742080),S=new Array(536870928,541065216,16384,541081616,541065216,16,541081616,4194304,536887296,4210704,4194304,536870928,4194320,536887296,536870912,16400,0,4194320,536887312,16384,4210688,536887312,16,541065232,541065232,0,4210704,541081600,16400,4210688,541081600,536870912,536887296,16,541065232,4210688,541081616,4194304,16400,536870928,4194304,536887296,536870912,16400,536870928,541081616,4210688,541065216,4210704,541081600,0,541065232,16,16384,541065216,4210704,16384,4194320,536887312,0,541081600,536870912,4194320,536887312),U=new Array(2097152,69206018,67110914,0,2048,67110914,2099202,69208064,69208066,2097152,0,67108866,2,67108864,69206018,2050,67110912,2099202,2097154,67110912,67108866,69206016,69208064,2097154,69206016,2048,2050,69208066,2099200,2,67108864,2099200,67108864,2099200,2097152,67110914,67110914,69206018,69206018,2,2097154,67108864,67110912,2097152,69208064,2050,2099202,69208064,2050,67108866,69208066,69206016,2099200,0,2,69208066,0,2099202,69206016,2048,67108866,67110912,2048,2097154),K=new Array(268439616,4096,262144,268701760,268435456,268439616,64,268435456,262208,268697600,268701760,266240,268701696,266304,4096,64,268697600,268435520,268439552,4160,266240,262208,268697664,268701696,4160,0,0,268697664,268435520,268439552,266304,262144,266304,262144,268701696,4096,64,268697664,4096,266304,268439552,64,268435520,268697600,268697664,268435456,262144,268439616,0,268701760,262208,268435520,268697600,268439552,268439616,0,268701760,266240,266240,4160,4160,262208,268435456,268701696),P=0,j=t.length,x=32===e.length?3:9;d=3===x?r?new Array(0,32,2):new Array(30,-2,-2):r?new Array(0,32,2,62,30,-2,64,96,2):new Array(94,62,-2,32,64,2,30,-2,-2),r&&(j=(t=function(e,t){var r,n=8-e.length%8;if(2===t&&n<8)r=" ".charCodeAt(0);else if(1===t)r=n;else{if(t||!(n<8)){if(8===n)return e;throw new Error("des: invalid padding")}r=0}for(var i=new Uint8Array(e.length+n),s=0;s>>4^c))<<4,l^=(u=65535&(l>>>16^(c^=u)))<<16,l^=u=858993459&((c^=u)>>>2^l),l^=u=16711935&((c^=u<<2)>>>8^l),l=(l^=(u=1431655765&(l>>>1^(c^=u<<8)))<<1)<<1|l>>>31,c=(c^=u)<<1|c>>>31,o=0;o>>4|c<<28)^e[a+1],u=l,l=c,c=u^(k[f>>>24&63]|_[f>>>16&63]|S[f>>>8&63]|K[63&f]|b[h>>>24&63]|A[h>>>16&63]|E[h>>>8&63]|U[63&h]);u=l,l=c,c=u}c=c>>>1|c<<31,c^=u=1431655765&((l=l>>>1|l<<31)>>>1^c),c^=(u=16711935&(c>>>8^(l^=u<<1)))<<8,c^=(u=858993459&(c>>>2^(l^=u)))<<2,c^=u=65535&((l^=u)>>>16^c),c^=u=252645135&((l^=u<<16)>>>4^c),l^=u<<4,1===n&&(r?(p=l,g=c):(l^=y,c^=m)),T[O++]=l>>>24,T[O++]=l>>>16&255,T[O++]=l>>>8&255,T[O++]=255&l,T[O++]=c>>>24,T[O++]=c>>>16&255,T[O++]=c>>>8&255,T[O++]=255&c}return r||(T=function(e,t){var r,n=null;if(2===t)r=" ".charCodeAt(0);else if(1===t)n=e[e.length-1];else{if(t)throw new Error("des: invalid padding");r=0}if(!n){for(n=1;e[e.length-n]===r;)n++;n--}return e.subarray(0,e.length-n)}(T,s)),T}function i(e){for(var t,r,n,i=new Array(0,4,536870912,536870916,65536,65540,536936448,536936452,512,516,536871424,536871428,66048,66052,536936960,536936964),s=new Array(0,1,1048576,1048577,67108864,67108865,68157440,68157441,256,257,1048832,1048833,67109120,67109121,68157696,68157697),a=new Array(0,8,2048,2056,16777216,16777224,16779264,16779272,0,8,2048,2056,16777216,16777224,16779264,16779272),o=new Array(0,2097152,134217728,136314880,8192,2105344,134225920,136323072,131072,2228224,134348800,136445952,139264,2236416,134356992,136454144),u=new Array(0,262144,16,262160,0,262144,16,262160,4096,266240,4112,266256,4096,266240,4112,266256),f=new Array(0,1024,32,1056,0,1024,32,1056,33554432,33555456,33554464,33555488,33554432,33555456,33554464,33555488),h=new Array(0,268435456,524288,268959744,2,268435458,524290,268959746,0,268435456,524288,268959744,2,268435458,524290,268959746),l=new Array(0,65536,2048,67584,536870912,536936448,536872960,536938496,131072,196608,133120,198656,537001984,537067520,537004032,537069568),c=new Array(0,262144,0,262144,2,262146,2,262146,33554432,33816576,33554432,33816576,33554434,33816578,33554434,33816578),d=new Array(0,268435456,8,268435464,0,268435456,8,268435464,1024,268436480,1032,268436488,1024,268436480,1032,268436488),p=new Array(0,32,0,32,1048576,1048608,1048576,1048608,8192,8224,8192,8224,1056768,1056800,1056768,1056800),y=new Array(0,16777216,512,16777728,2097152,18874368,2097664,18874880,67108864,83886080,67109376,83886592,69206016,85983232,69206528,85983744),g=new Array(0,4096,134217728,134221824,524288,528384,134742016,134746112,16,4112,134217744,134221840,524304,528400,134742032,134746128),m=new Array(0,4,256,260,0,4,256,260,1,5,257,261,1,5,257,261),v=e.length>8?3:1,w=new Array(32*v),b=new Array(0,0,1,1,1,1,1,1,0,1,1,1,1,1,1,0),k=0,A=0,_=0;_>>4^S))<<4,E^=n=65535&((S^=n)>>>-16^E),E^=(n=858993459&(E>>>2^(S^=n<<-16)))<<2,E^=n=65535&((S^=n)>>>-16^E),E^=(n=1431655765&(E>>>1^(S^=n<<-16)))<<1,E^=n=16711935&((S^=n)>>>8^E),n=(E^=(n=1431655765&(E>>>1^(S^=n<<8)))<<1)<<8|(S^=n)>>>20&240,E=S<<24|S<<8&16711680|S>>>8&65280|S>>>24&240,S=n;for(var U=0;U>>26,S=S<<2|S>>>26):(E=E<<1|E>>>27,S=S<<1|S>>>27),S&=-15,t=i[(E&=-15)>>>28]|s[E>>>24&15]|a[E>>>20&15]|o[E>>>16&15]|u[E>>>12&15]|f[E>>>8&15]|h[E>>>4&15],n=65535&((r=l[S>>>28]|c[S>>>24&15]|d[S>>>20&15]|p[S>>>16&15]|y[S>>>12&15]|g[S>>>8&15]|m[S>>>4&15])>>>16^t),w[A++]=t^n,w[A++]=r^n<<16}return w}function s(e){this.key=[];for(var t=0;t<3;t++)this.key.push(new Uint8Array(e.subarray(8*t,8*t+8)));this.encrypt=function(e){return n(i(this.key[2]),n(i(this.key[1]),n(i(this.key[0]),e,!0,0,null,null),!1,0,null,null),!0,0,null,null)}}Object.defineProperty(r,"__esModule",{value:!0}),s.keySize=s.prototype.keySize=24,s.blockSize=s.prototype.blockSize=8,r.default={des:s,originalDes:function(e){this.key=e,this.encrypt=function(e,t){return n(i(this.key),e,!0,0,null,t)},this.decrypt=function(e,t){return n(i(this.key),e,!1,0,null,t)}}}},{}],16:[function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(r,"__esModule",{value:!0});var i=n(e("./aes.js")),s=n(e("./des.js")),a=n(e("./cast5.js")),o=n(e("./twofish.js")),u=n(e("./blowfish.js"));r.default={aes128:i.default[128],aes192:i.default[192],aes256:i.default[256],des:s.default.originalDes,tripledes:s.default.des,cast5:a.default,twofish:o.default,blowfish:u.default,idea:function(){throw new Error("IDEA symmetric-key algorithm not implemented")}}},{"./aes.js":12,"./blowfish.js":13,"./cast5.js":14,"./des.js":15,"./twofish.js":17}],17:[function(e,t,r){"use strict";function n(e,t){return(e<>>32-t)&f}function i(e,t){return e[t]|e[t+1]<<8|e[t+2]<<16|e[t+3]<<24}function s(e,t,r){e.splice(t,4,255&r,r>>>8&255,r>>>16&255,r>>>24&255)}function a(e,t){return e>>>8*t&255}function o(e){this.tf=function(){function e(e){return d[0][a(e,0)]^d[1][a(e,1)]^d[2][a(e,2)]^d[3][a(e,3)]}function t(e){return d[0][a(e,3)]^d[1][a(e,0)]^d[2][a(e,1)]^d[3][a(e,2)]}function r(r,i){var s=e(i[0]),a=t(i[1]);i[2]=n(i[2]^s+a+c[4*r+8]&f,31),i[3]=n(i[3],1)^s+2*a+c[4*r+9]&f,s=e(i[2]),a=t(i[3]),i[0]=n(i[0]^s+a+c[4*r+10]&f,31),i[1]=n(i[1],1)^s+2*a+c[4*r+11]&f}function o(r,i){var s=e(i[0]),a=t(i[1]);i[2]=n(i[2],1)^s+a+c[4*r+10]&f,i[3]=n(i[3]^s+2*a+c[4*r+11]&f,31),s=e(i[2]),a=t(i[3]),i[0]=n(i[0],1)^s+a+c[4*r+8]&f,i[1]=n(i[1]^s+2*a+c[4*r+9]&f,31)}var u=null,h=null,l=-1,c=[],d=[[],[],[],[]];return{name:"twofish",blocksize:16,open:function(e){function t(e){return e^e>>2^[0,90,180,238][3&e]}function r(e){return e^e>>1^e>>2^[0,238,180,90][3&e]}function s(e,t){var r,n,i;for(r=0;r<8;r++)n=t>>>24,t=t<<8&f|e>>>24,e=e<<8&f,i=n<<1,128&n&&(i^=333),t^=n^i<<16,i^=n>>>1,1&n&&(i^=166),t^=i<<24|i<<8;return t}function o(e,t){var r,n,i,s;return r=t>>4,n=15&t,i=U[e][r^n],s=K[e][x[n]^T[r]],j[e][x[s]^T[i]]<<4|P[e][i^s]}function h(e,t){var r=a(e,0),n=a(e,1),i=a(e,2),s=a(e,3);switch(v){case 4:r=O[1][r]^a(t[3],0),n=O[0][n]^a(t[3],1),i=O[0][i]^a(t[3],2),s=O[1][s]^a(t[3],3);case 3:r=O[1][r]^a(t[2],0),n=O[1][n]^a(t[2],1),i=O[0][i]^a(t[2],2),s=O[0][s]^a(t[2],3);case 2:r=O[0][O[0][r]^a(t[1],0)]^a(t[0],0),n=O[0][O[1][n]^a(t[1],1)]^a(t[0],1),i=O[1][O[0][i]^a(t[1],2)]^a(t[0],2),s=O[1][O[1][s]^a(t[1],3)]^a(t[0],3)}return C[0][r]^C[1][n]^C[2][i]^C[3][s]}var l,p,y,g,m,v,w,b,k,A=[],_=[],E=[],S=[],U=[[8,1,7,13,6,15,3,2,0,11,5,9,14,12,10,4],[2,8,11,13,15,7,6,14,3,1,9,4,0,10,12,5]],K=[[14,12,11,8,1,2,3,5,15,4,10,6,7,0,9,13],[1,14,2,11,4,12,3,7,6,13,10,5,15,9,0,8]],P=[[11,10,5,14,6,13,9,0,12,8,15,3,2,4,7,1],[4,12,7,5,1,6,9,10,0,14,13,8,2,11,3,15]],j=[[13,7,15,4,1,2,6,14,9,11,3,0,8,5,12,10],[11,9,5,1,12,3,13,14,6,4,7,15,2,0,8,10]],x=[0,8,1,9,2,10,3,11,4,12,5,13,6,14,7,15],T=[0,9,2,11,4,13,6,15,8,1,10,3,12,5,14,7],O=[[],[]],C=[[],[],[],[]];for(l=(u=(u=e).slice(0,32)).length;16!==l&&24!==l&&32!==l;)u[l++]=0;for(l=0;l>2]=i(u,l);for(l=0;l<256;l++)O[0][l]=o(0,l),O[1][l]=o(1,l);for(l=0;l<256;l++)b=t(w=O[1][l]),k=r(w),C[0][l]=w+(b<<8)+(k<<16)+(k<<24),C[2][l]=b+(k<<8)+(w<<16)+(k<<24),b=t(w=O[0][l]),k=r(w),C[1][l]=k+(k<<8)+(b<<16)+(w<<24),C[3][l]=b+(w<<8)+(k<<16)+(b<<24);for(v=E.length/2,l=0;l=0;n--)o(n,r);s(h,l,r[2]^c[0]),s(h,l+4,r[3]^c[1]),s(h,l+8,r[0]^c[2]),s(h,l+12,r[1]^c[3]),l+=16},finalize:function(){return h}}}(),this.tf.open(u(e),0),this.encrypt=function(e){return this.tf.encrypt(u(e),0)}}function u(e){for(var t=[],r=0;r>>32-i,r)}function s(e,t,r,n,s,a,o){return i(t&r|~t&n,e,t,s,a,o)}function a(e,t,r,n,s,a,o){return i(t&n|r&~n,e,t,s,a,o)}function o(e,t,r,n,s,a,o){return i(t^r^n,e,t,s,a,o)}function u(e,t,r,n,s,a,o){return i(r^(t|~n),e,t,s,a,o)}function f(e){for(var t="",r=0;r<4;r++)t+=d[e>>8*r+4&15]+d[e>>8*r&15];return t}function h(e){return function(e){for(var t=0;t>2]=e.charCodeAt(t)+(e.charCodeAt(t+1)<<8)+(e.charCodeAt(t+2)<<16)+(e.charCodeAt(t+3)<<24);return r}(e.substring(t-64,t)));e=e.substring(t-64);var s=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(t=0;t>2]|=e.charCodeAt(t)<<(t%4<<3);if(s[t>>2]|=128<<(t%4<<3),t>55)for(n(i,s),t=0;t<16;t++)s[t]=0;return s[14]=8*r,n(i,s),i}(e))}function l(e,t){return e+t&4294967295}Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(e){var t=h(c.default.Uint8Array2str(e));return c.default.str2Uint8Array(c.default.hex2bin(t))};var c=function(e){return e&&e.__esModule?e:{default:e}}(e("../../util.js")),d="0123456789abcdef".split("")},{"../../util.js":70}],22:[function(e,t,r){"use strict";function n(e,t){return new Number(e<>>32-t)}function i(e,t,r){return new Number(e^t^r)}function s(e,t,r){return new Number(e&t|~e&r)}function a(e,t,r){return new Number((e|~t)^r)}function o(e,t,r){return new Number(e&r|t&~r)}function u(e,t,r){return new Number(e^(t|~r))}function f(e,t,r,f,h,l,c,d){switch(d){case 0:e+=i(t,r,f)+l+0;break;case 1:e+=s(t,r,f)+l+1518500249;break;case 2:e+=a(t,r,f)+l+1859775393;break;case 3:e+=o(t,r,f)+l+2400959708;break;case 4:e+=u(t,r,f)+l+2840853838;break;case 5:e+=u(t,r,f)+l+1352829926;break;case 6:e+=o(t,r,f)+l+1548603684;break;case 7:e+=a(t,r,f)+l+1836072691;break;case 8:e+=s(t,r,f)+l+2053994217;break;case 9:e+=i(t,r,f)+l+0;break;default:throw new Error("Bogus round number")}e=n(e,c)+h,r=n(r,10),e&=4294967295,t&=4294967295,r&=4294967295,f&=4294967295,h&=4294967295;var p=[];return p[0]=e,p[1]=t,p[2]=r,p[3]=f,p[4]=h,p[5]=l,p[6]=c,p}function h(e,t){var r,n,i,s=[],a=[];for(n=0;n<5;n++)s[n]=new Number(e[n]),a[n]=new Number(e[n]);var o=0;for(i=0;i<5;i++)for(n=0;n<16;n++)r=f(s[(o+0)%5],s[(o+1)%5],s[(o+2)%5],s[(o+3)%5],s[(o+4)%5],t[m[i][n]],g[i][n],i),s[(o+0)%5]=r[0],s[(o+1)%5]=r[1],s[(o+2)%5]=r[2],s[(o+3)%5]=r[3],s[(o+4)%5]=r[4],o+=4;for(o=0,i=5;i<10;i++)for(n=0;n<16;n++)r=f(a[(o+0)%5],a[(o+1)%5],a[(o+2)%5],a[(o+3)%5],a[(o+4)%5],t[m[i][n]],g[i][n],i),a[(o+0)%5]=r[0],a[(o+1)%5]=r[1],a[(o+2)%5]=r[2],a[(o+3)%5]=r[3],a[(o+4)%5]=r[4],o+=4;a[3]+=s[2]+e[1],e[1]=e[2]+s[3]+a[4],e[2]=e[3]+s[4]+a[0],e[3]=e[4]+s[0]+a[1],e[4]=e[0]+s[1]+a[2],e[0]=a[3]}function l(e){for(var t=0;t<16;t++)e[t]=0}function c(e){var t=(255&e.charCodeAt(3))<<24;return t|=(255&e.charCodeAt(2))<<16,t|=(255&e.charCodeAt(1))<<8,t|=255&e.charCodeAt(0)}function d(e){var t,r,n=new Array(y/32),i=new Array(y/8);!function(e){e[0]=1732584193,e[1]=4023233417,e[2]=2562383102,e[3]=271733878,e[4]=3285377520}(n),t=e.length;var s=new Array(16);l(s);var a,o=0;for(r=t;r>63;r-=64){for(a=0;a<16;a++)s[a]=c(e.substr(o,4)),o+=4;h(n,s)}for(function(e,t,r,n){var i=new Array(16);l(i);for(var s=0,a=0;a<(63&r);a++)i[a>>>2]^=(255&t.charCodeAt(s++))<<8*(3&a);i[r>>>2&15]^=1<<8*(3&r)+7,(63&r)>55&&(h(e,i),l(i=new Array(16))),i[14]=r<<3,i[15]=r>>>29|n<<3,h(e,i)}(n,e.substr(o),t,0),a=0;a>>2],i[a+1]=n[a>>>2]>>>8&255,i[a+2]=n[a>>>2]>>>16&255,i[a+3]=n[a>>>2]>>>24&255;return i}Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(e){for(var t=d(p.default.Uint8Array2str(e)),r="",n=0;n(r=e.charCodeAt(n))?o.push(r):2048>r?(o.push(192|r>>>6),o.push(128|63&r)):55296>r||57344<=r?o.push(224|r>>>12,128|r>>>6&63,128|63&r):(n+=1,r=65536+((1023&r)<<10|1023&e.charCodeAt(n)),o.push(240|r>>>18,128|r>>>12&63,128|r>>>6&63,128|63&r)),i=0;i>>2;a.length<=s;)a.push(0);a[s]|=o[i]<<24-u%4*8,u+=1}else if("UTF16BE"===t||"UTF16LE"===t)for(n=0;n>8),s=u>>>2;a.length<=s;)a.push(0);a[s]|=r<<16-u%4*8,u+=2}return{value:a,binLen:8*u}}function s(e){var t,r,n,i=[],s=e.length;if(0!=s%2)throw"String of HEX type must be in byte increments";for(t=0;t>>3;i.length<=n;)i.push(0);i[t>>>3]|=r<<24-t%8*4}return{value:i,binLen:4*s}}function a(e){var t,r,n,i=[];for(r=0;r>>2,i.length<=n&&i.push(0),i[n]|=t<<24-r%4*8;return{value:i,binLen:8*e.length}}function o(e){var t,r,n,i,s,a,o=[],u=0;if(-1===e.search(/^[a-zA-Z0-9=+\/]+$/))throw"Invalid character in base-64 string";if(s=e.indexOf("="),e=e.replace(/\=/g,""),-1!==s&&s>>2;o.length<=a;)o.push(0);o[a]|=(n>>>16-8*r&255)<<24-u%4*8,u+=1}}return{value:o,binLen:8*u}}function u(e,t){var r,n,i="0123456789abcdef",s="",a=4*e.length;for(r=0;r>>2]>>>8*(3-r%4),s+=i.charAt(n>>>4&15)+i.charAt(15&n);return t.outputUpper?s.toUpperCase():s}function f(e,t){var r,n,i,s,a,o,u="",f=4*e.length;for(r=0;r>>2,a=e.length<=s?0:e[s],s=r+2>>>2,o=e.length<=s?0:e[s],i=(e[r>>>2]>>>8*(3-r%4)&255)<<16|(a>>>8*(3-(r+1)%4)&255)<<8|o>>>8*(3-(r+2)%4)&255,n=0;n<4;n+=1)8*r+6*n<=32*e.length?u+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(i>>>6*(3-n)&63):u+=t.b64Pad;return u}function h(e,t){var r,n,i="",s=4*e.length;for(r=0;r>>2]>>>8*(3-r%4)&255,i+=String.fromCharCode(n);return i}function l(e,t){var r,n=4*e.length,i=new Uint8Array(n);for(r=0;r>>2]>>>8*(3-r%4)&255;return i}function c(e){var t={outputUpper:!1,b64Pad:"="};try{e.hasOwnProperty("outputUpper")&&(t.outputUpper=e.outputUpper),e.hasOwnProperty("b64Pad")&&(t.b64Pad=e.b64Pad)}catch(e){}if("boolean"!=typeof t.outputUpper)throw"Invalid outputUpper formatting option";if("string"!=typeof t.b64Pad)throw"Invalid b64Pad formatting option";return t}function d(e,t){return e<>>32-t}function p(e,t){return e>>>t|e<<32-t}function y(e,t){var r=new n(e.highOrder,e.lowOrder);return 32>=t?new n(r.highOrder>>>t|r.lowOrder<<32-t&4294967295,r.lowOrder>>>t|r.highOrder<<32-t&4294967295):new n(r.lowOrder>>>t-32|r.highOrder<<64-t&4294967295,r.highOrder>>>t-32|r.lowOrder<<64-t&4294967295)}function g(e,t){return e>>>t}function m(e,t){return 32>=t?new n(e.highOrder>>>t,e.lowOrder>>>t|e.highOrder<<32-t&4294967295):new n(0,e.highOrder>>>t-32)}function v(e,t,r){return e^t^r}function w(e,t,r){return e&t^~e&r}function b(e,t,r){return new n(e.highOrder&t.highOrder^~e.highOrder&r.highOrder,e.lowOrder&t.lowOrder^~e.lowOrder&r.lowOrder)}function k(e,t,r){return e&t^e&r^t&r}function A(e,t,r){return new n(e.highOrder&t.highOrder^e.highOrder&r.highOrder^t.highOrder&r.highOrder,e.lowOrder&t.lowOrder^e.lowOrder&r.lowOrder^t.lowOrder&r.lowOrder)}function _(e){return p(e,2)^p(e,13)^p(e,22)}function E(e){var t=y(e,28),r=y(e,34),i=y(e,39);return new n(t.highOrder^r.highOrder^i.highOrder,t.lowOrder^r.lowOrder^i.lowOrder)}function S(e){return p(e,6)^p(e,11)^p(e,25)}function U(e){var t=y(e,14),r=y(e,18),i=y(e,41);return new n(t.highOrder^r.highOrder^i.highOrder,t.lowOrder^r.lowOrder^i.lowOrder)}function K(e){return p(e,7)^p(e,18)^g(e,3)}function P(e){var t=y(e,1),r=y(e,8),i=m(e,7);return new n(t.highOrder^r.highOrder^i.highOrder,t.lowOrder^r.lowOrder^i.lowOrder)}function j(e){return p(e,17)^p(e,19)^g(e,10)}function x(e){var t=y(e,19),r=y(e,61),i=m(e,6);return new n(t.highOrder^r.highOrder^i.highOrder,t.lowOrder^r.lowOrder^i.lowOrder)}function T(e,t){var r=(65535&e)+(65535&t);return(65535&(e>>>16)+(t>>>16)+(r>>>16))<<16|65535&r}function O(e,t,r,n){var i=(65535&e)+(65535&t)+(65535&r)+(65535&n);return(65535&(e>>>16)+(t>>>16)+(r>>>16)+(n>>>16)+(i>>>16))<<16|65535&i}function C(e,t,r,n,i){var s=(65535&e)+(65535&t)+(65535&r)+(65535&n)+(65535&i);return(65535&(e>>>16)+(t>>>16)+(r>>>16)+(n>>>16)+(i>>>16)+(s>>>16))<<16|65535&s}function I(e,t){var r,i,s,a;return r=(65535&e.lowOrder)+(65535&t.lowOrder),i=(e.lowOrder>>>16)+(t.lowOrder>>>16)+(r>>>16),s=(65535&i)<<16|65535&r,r=(65535&e.highOrder)+(65535&t.highOrder)+(i>>>16),i=(e.highOrder>>>16)+(t.highOrder>>>16)+(r>>>16),a=(65535&i)<<16|65535&r,new n(a,s)}function M(e,t,r,i){var s,a,o,u;return s=(65535&e.lowOrder)+(65535&t.lowOrder)+(65535&r.lowOrder)+(65535&i.lowOrder),a=(e.lowOrder>>>16)+(t.lowOrder>>>16)+(r.lowOrder>>>16)+(i.lowOrder>>>16)+(s>>>16),o=(65535&a)<<16|65535&s,s=(65535&e.highOrder)+(65535&t.highOrder)+(65535&r.highOrder)+(65535&i.highOrder)+(a>>>16),a=(e.highOrder>>>16)+(t.highOrder>>>16)+(r.highOrder>>>16)+(i.highOrder>>>16)+(s>>>16),u=(65535&a)<<16|65535&s,new n(u,o)}function B(e,t,r,i,s){var a,o,u,f;return a=(65535&e.lowOrder)+(65535&t.lowOrder)+(65535&r.lowOrder)+(65535&i.lowOrder)+(65535&s.lowOrder),o=(e.lowOrder>>>16)+(t.lowOrder>>>16)+(r.lowOrder>>>16)+(i.lowOrder>>>16)+(s.lowOrder>>>16)+(a>>>16),u=(65535&o)<<16|65535&a,a=(65535&e.highOrder)+(65535&t.highOrder)+(65535&r.highOrder)+(65535&i.highOrder)+(65535&s.highOrder)+(o>>>16),o=(e.highOrder>>>16)+(t.highOrder>>>16)+(r.highOrder>>>16)+(i.highOrder>>>16)+(s.highOrder>>>16)+(a>>>16),f=(65535&o)<<16|65535&a,new n(f,u)}function D(e,t){var r,n,i,s,a,o,u,f,h,l,c=[],p=w,y=v,g=k,m=d,b=T,A=C,_=[1732584193,4023233417,2562383102,271733878,3285377520];for(l=15+(t+65>>>9<<4);e.length<=l;)e.push(0);for(e[t>>>5]|=128<<24-t%32,e[l]=t,h=e.length,u=0;u>>9<<4),D=16,N=1,X=Number,R=T,H=O,F=C,z=K,q=j,G=_,V=S,Y=k,Z=w,p="SHA-224"===r?ne:ie;else{if("SHA-384"!==r&&"SHA-512"!==r||!(4&L))throw"Unexpected error in SHA-2 implementation";y=80,g=31+(t+128>>>10<<5),D=32,N=2,R=I,H=M,F=B,z=P,q=x,G=E,V=U,Y=A,Z=b,re=[new(X=n)(re[0],3609767458),new X(re[1],602891725),new X(re[2],3964484399),new X(re[3],2173295548),new X(re[4],4081628472),new X(re[5],3053834265),new X(re[6],2937671579),new X(re[7],3664609560),new X(re[8],2734883394),new X(re[9],1164996542),new X(re[10],1323610764),new X(re[11],3590304994),new X(re[12],4068182383),new X(re[13],991336113),new X(re[14],633803317),new X(re[15],3479774868),new X(re[16],2666613458),new X(re[17],944711139),new X(re[18],2341262773),new X(re[19],2007800933),new X(re[20],1495990901),new X(re[21],1856431235),new X(re[22],3175218132),new X(re[23],2198950837),new X(re[24],3999719339),new X(re[25],766784016),new X(re[26],2566594879),new X(re[27],3203337956),new X(re[28],1034457026),new X(re[29],2466948901),new X(re[30],3758326383),new X(re[31],168717936),new X(re[32],1188179964),new X(re[33],1546045734),new X(re[34],1522805485),new X(re[35],2643833823),new X(re[36],2343527390),new X(re[37],1014477480),new X(re[38],1206759142),new X(re[39],344077627),new X(re[40],1290863460),new X(re[41],3158454273),new X(re[42],3505952657),new X(re[43],106217008),new X(re[44],3606008344),new X(re[45],1432725776),new X(re[46],1467031594),new X(re[47],851169720),new X(re[48],3100823752),new X(re[49],1363258195),new X(re[50],3750685593),new X(re[51],3785050280),new X(re[52],3318307427),new X(re[53],3812723403),new X(re[54],2003034995),new X(re[55],3602036899),new X(re[56],1575990012),new X(re[57],1125592928),new X(re[58],2716904306),new X(re[59],442776044),new X(re[60],593698344),new X(re[61],3733110249),new X(re[62],2999351573),new X(re[63],3815920427),new X(3391569614,3928383900),new X(3515267271,566280711),new X(3940187606,3454069534),new X(4118630271,4000239992),new X(116418474,1914138554),new X(174292421,2731055270),new X(289380356,3203993006),new X(460393269,320620315),new X(685471733,587496836),new X(852142971,1086792851),new X(1017036298,365543100),new X(1126000580,2618297676),new X(1288033470,3409855158),new X(1501505948,4234509866),new X(1607167915,987167468),new X(1816402316,1246189591)],p="SHA-384"===r?[new X(3418070365,ne[0]),new X(1654270250,ne[1]),new X(2438529370,ne[2]),new X(355462360,ne[3]),new X(1731405415,ne[4]),new X(41048885895,ne[5]),new X(3675008525,ne[6]),new X(1203062813,ne[7])]:[new X(ie[0],4089235720),new X(ie[1],2227873595),new X(ie[2],4271175723),new X(ie[3],1595750129),new X(ie[4],2917565137),new X(ie[5],725511199),new X(ie[6],4215389547),new X(ie[7],327033209)]}for(;e.length<=g;)e.push(0);for(e[t>>>5]|=128<<24-t%32,e[g]=t,Q=e.length,m=0;m>>2,i.length<=n&&i.push(0),i[n]|=t<<24-r%4*8;return{value:i,binLen:8*e.length}}(e),n=y.binLen,d=y.value}this.getHash=function(e,t,r,i){var s,a=null,o=d.slice(),p=n;if(3===arguments.length?"number"!=typeof r&&(i=r,r=1):2===arguments.length&&(r=1),r!==parseInt(r,10)||1>r)throw"numRounds must a integer >= 1";switch(t){case"HEX":a=u;break;case"B64":a=f;break;case"BYTES":a=h;break;case"TYPED":a=l;break;default:throw"format must be HEX, B64, or BYTES"}if("SHA-1"===e&&1&L)for(s=0;s_/8){for(;m.length<=A;)m.push(0);m[A]&=4294967040}for(b=0;b<=A;b+=1)S[b]=909522486^m[b],U[b]=1549556828^m[b];if("SHA-1"===r&&1&L)k=D(U.concat(D(S.concat(d),w+n)),w+E);else{if(!(6&L))throw"Unexpected error in HMAC implementation";k=N(U.concat(N(S.concat(d),w+n,r)),w+E,r)}return g(k,c(y))}};r.default={sha1:function(e){return new R(e,"TYPED","UTF8").getHash("SHA-1","TYPED")},sha224:function(e){return new R(e,"TYPED","UTF8").getHash("SHA-224","TYPED")},sha256:function(e){return new R(e,"TYPED","UTF8").getHash("SHA-256","TYPED")},sha384:function(e){return new R(e,"TYPED","UTF8").getHash("SHA-384","TYPED")},sha512:function(e){return new R(e,"TYPED","UTF8").getHash("SHA-512","TYPED")}}},{}],24:[function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(r,"__esModule",{value:!0});var i=n(e("./cipher")),s=n(e("./hash")),a=n(e("./cfb")),o=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}(e("./gcm")),u=n(e("./public_key")),f=n(e("./signature")),h=n(e("./random")),l=n(e("./pkcs1")),c=n(e("./crypto.js")),d={cipher:i.default,hash:s.default,cfb:a.default,gcm:o,publicKey:u.default,signature:f.default,random:h.default,pkcs1:l.default};for(var p in c.default)d[p]=c.default[p];r.default=d},{"./cfb":11,"./cipher":16,"./crypto.js":18,"./gcm":19,"./hash":20,"./pkcs1":25,"./public_key":28,"./random":31,"./signature":32}],25:[function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(r,"__esModule",{value:!0});var i=n(e("./random.js")),s=n(e("../util.js")),a=n(e("./public_key/jsbn.js")),o=n(e("./hash")),u=[];u[1]=[48,32,48,12,6,8,42,134,72,134,247,13,2,5,5,0,4,16],u[2]=[48,33,48,9,6,5,43,14,3,2,26,5,0,4,20],u[3]=[48,33,48,9,6,5,43,36,3,2,1,5,0,4,20],u[8]=[48,49,48,13,6,9,96,134,72,1,101,3,4,2,1,5,0,4,32],u[9]=[48,65,48,13,6,9,96,134,72,1,101,3,4,2,2,5,0,4,48],u[10]=[48,81,48,13,6,9,96,134,72,1,101,3,4,2,3,5,0,4,64],u[11]=[48,45,48,13,6,9,96,134,72,1,101,3,4,2,4,5,0,4,28],r.default={eme:{encode:function(e,t){var r=e.length;if(r>t-11)throw new Error("Message too long");var n=function(e){for(var t,r="";r.length=8&&0===s)return e.substr(n);throw new Error("Decryption error")}},emsa:{encode:function(e,t,r){var n,i=s.default.Uint8Array2str(o.default.digest(e,s.default.str2Uint8Array(t)));if(i.length!==o.default.getHashByteLength(e))throw new Error("Invalid hash length");var f="";for(n=0;n11&&10!==t&&t<8?2:t;case 28:return t>11&&t<8?11:t;case 32:return t>10&&t<8?8:t;default:return o.default.print_debug("DSA select hash algorithm: returning null for an unknown length of q"),null}},this.sign=function(e,t,r,n,u,f){for(var h,l,c,d=o.default.getLeftNBits(o.default.Uint8Array2str(a.default.digest(e,o.default.str2Uint8Array(t))),u.bitLength()),p=new i.default(o.default.hexstrdump(d),16);h=s.default.getRandomBigIntegerInRange(i.default.ONE,u.subtract(i.default.ONE)),l=r.modPow(h,n).mod(u),c=h.modInverse(u).multiply(p.add(f.multiply(l))).mod(u),0===l||0===c;);var y=[];return y[0]=l.toMPI(),y[1]=c.toMPI(),y},this.verify=function(e,t,r,n,s,u,f,h){var l=o.default.getLeftNBits(o.default.Uint8Array2str(a.default.digest(e,o.default.str2Uint8Array(n))),u.bitLength()),c=new i.default(o.default.hexstrdump(l),16);if(i.default.ZERO.compareTo(t)>=0||t.compareTo(u)>=0||i.default.ZERO.compareTo(r)>=0||r.compareTo(u)>=0)return o.default.print_debug("invalid DSA Signature"),null;var d=r.modInverse(u);if(0===i.default.ZERO.compareTo(d))return o.default.print_debug("invalid DSA Signature"),null;var p=c.multiply(d).mod(u),y=t.multiply(d).mod(u);return f.modPow(p,s).multiply(h.modPow(y,s)).mod(s).mod(u)}};var i=n(e("./jsbn.js")),s=n(e("../random.js")),a=n(e("../hash")),o=n(e("../../util.js")),u=n(e("../../config"))},{"../../config":10,"../../util.js":70,"../hash":20,"../random.js":31,"./jsbn.js":29}],27:[function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(){this.encrypt=function(e,t,r,n){var a=r.subtract(i.default.TWO),o=s.default.getRandomBigIntegerInRange(i.default.ONE,a);o=o.mod(a).add(i.default.ONE);var u=[];return u[0]=t.modPow(o,r),u[1]=n.modPow(o,r).multiply(e).mod(r),u},this.decrypt=function(e,t,r,n){return a.default.print_debug("Elgamal Decrypt:\nc1:"+a.default.hexstrdump(e.toMPI())+"\nc2:"+a.default.hexstrdump(t.toMPI())+"\np:"+a.default.hexstrdump(r.toMPI())+"\nx:"+a.default.hexstrdump(n.toMPI())),e.modPow(n,r).modInverse(r).multiply(t).mod(r)}};var i=n(e("./jsbn.js")),s=n(e("../random.js")),a=n(e("../../util.js"))},{"../../util.js":70,"../random.js":31,"./jsbn.js":29}],28:[function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(r,"__esModule",{value:!0});var i=n(e("./rsa.js")),s=n(e("./elgamal.js")),a=n(e("./dsa.js"));r.default={rsa:i.default,elgamal:s.default,dsa:a.default}},{"./dsa.js":26,"./elgamal.js":27,"./rsa.js":30}],29:[function(e,t,r){"use strict";function n(e,t,r){null!=e&&("number"==typeof e?this.fromNumber(e,t,r):null==t&&"string"!=typeof e?this.fromString(e,256):this.fromString(e,t))}function i(){return new n(null)}function s(e){return _.charAt(e)}function a(e,t){var r=E[e.charCodeAt(t)];return null==r?-1:r}function o(e){var t=i();return t.fromInt(e),t}function u(e){var t,r=1;return 0!=(t=e>>>16)&&(e=t,r+=16),0!=(t=e>>8)&&(e=t,r+=8),0!=(t=e>>4)&&(e=t,r+=4),0!=(t=e>>2)&&(e=t,r+=2),0!=(t=e>>1)&&(e=t,r+=1),r}function f(e){this.m=e}function h(e){this.m=e,this.mp=e.invDigit(),this.mpl=32767&this.mp,this.mph=this.mp>>15,this.um=(1<>=16,t+=16),0==(255&e)&&(e>>=8,t+=8),0==(15&e)&&(e>>=4,t+=4),0==(3&e)&&(e>>=2,t+=2),0==(1&e)&&++t,t}function g(e){for(var t=0;0!=e;)e&=e-1,++t;return t}function m(){}function v(e){return e}function w(e){this.r2=i(),this.q3=i(),n.ONE.dlShiftTo(2*e.t,this.r2),this.mu=this.r2.divide(e),this.m=e}function u(e){var t,r=1;return 0!=(t=e>>>16)&&(e=t,r+=16),0!=(t=e>>8)&&(e=t,r+=8),0!=(t=e>>4)&&(e=t,r+=4),0!=(t=e>>2)&&(e=t,r+=2),0!=(t=e>>1)&&(e=t,r+=1),r}Object.defineProperty(r,"__esModule",{value:!0}),r.default=n;var b=function(e){return e&&e.__esModule?e:{default:e}}(e("../../util.js"));n.prototype.am=function(e,t,r,n,i,s){for(;--s>=0;){var a=t*this[e++]+r[n]+i;i=Math.floor(a/67108864),r[n++]=67108863&a}return i},n.prototype.DB=26,n.prototype.DM=67108863,n.prototype.DV=1<<26;n.prototype.FV=Math.pow(2,52),n.prototype.F1=26,n.prototype.F2=0;var k,A,_="0123456789abcdefghijklmnopqrstuvwxyz",E=new Array;for(k="0".charCodeAt(0),A=0;A<=9;++A)E[k++]=A;for(k="a".charCodeAt(0),A=10;A<36;++A)E[k++]=A;for(k="A".charCodeAt(0),A=10;A<36;++A)E[k++]=A;f.prototype.convert=function(e){return e.s<0||e.compareTo(this.m)>=0?e.mod(this.m):e},f.prototype.revert=function(e){return e},f.prototype.reduce=function(e){e.divRemTo(this.m,null,e)},f.prototype.mulTo=function(e,t,r){e.multiplyTo(t,r),this.reduce(r)},f.prototype.sqrTo=function(e,t){e.squareTo(t),this.reduce(t)},h.prototype.convert=function(e){var t=i();return e.abs().dlShiftTo(this.m.t,t),t.divRemTo(this.m,null,t),e.s<0&&t.compareTo(n.ZERO)>0&&this.m.subTo(t,t),t},h.prototype.revert=function(e){var t=i();return e.copyTo(t),this.reduce(t),t},h.prototype.reduce=function(e){for(;e.t<=this.mt2;)e[e.t++]=0;for(var t=0;t>15)*this.mpl&this.um)<<15)&e.DM;for(e[r=t+this.m.t]+=this.m.am(0,n,e,t,0,this.m.t);e[r]>=e.DV;)e[r]-=e.DV,e[++r]++}e.clamp(),e.drShiftTo(this.m.t,e),e.compareTo(this.m)>=0&&e.subTo(this.m,e)},h.prototype.mulTo=function(e,t,r){e.multiplyTo(t,r),this.reduce(r)},h.prototype.sqrTo=function(e,t){e.squareTo(t),this.reduce(t)},n.prototype.copyTo=function(e){for(var t=this.t-1;t>=0;--t)e[t]=this[t];e.t=this.t,e.s=this.s},n.prototype.fromInt=function(e){this.t=1,this.s=e<0?-1:0,e>0?this[0]=e:e<-1?this[0]=e+this.DV:this.t=0},n.prototype.fromString=function(e,t){var r;if(16==t)r=4;else if(8==t)r=3;else if(256==t)r=8;else if(2==t)r=1;else if(32==t)r=5;else{if(4!=t)return void this.fromRadix(e,t);r=2}this.t=0,this.s=0;for(var i=e.length,s=!1,o=0;--i>=0;){var u=8==r?255&e[i]:a(e,i);u<0?"-"==e.charAt(i)&&(s=!0):(s=!1,0==o?this[this.t++]=u:o+r>this.DB?(this[this.t-1]|=(u&(1<>this.DB-o):this[this.t-1]|=u<=this.DB&&(o-=this.DB))}8==r&&0!=(128&e[0])&&(this.s=-1,o>0&&(this[this.t-1]|=(1<0&&this[this.t-1]==e;)--this.t},n.prototype.dlShiftTo=function(e,t){var r;for(r=this.t-1;r>=0;--r)t[r+e]=this[r];for(r=e-1;r>=0;--r)t[r]=0;t.t=this.t+e,t.s=this.s},n.prototype.drShiftTo=function(e,t){for(var r=e;r=0;--r)t[r+a+1]=this[r]>>i|o,o=(this[r]&s)<=0;--r)t[r]=0;t[a]=o,t.t=this.t+a+1,t.s=this.s,t.clamp()},n.prototype.rShiftTo=function(e,t){t.s=this.s;var r=Math.floor(e/this.DB);if(r>=this.t)t.t=0;else{var n=e%this.DB,i=this.DB-n,s=(1<>n;for(var a=r+1;a>n;n>0&&(t[this.t-r-1]|=(this.s&s)<>=this.DB;if(e.t>=this.DB;n+=this.s}else{for(n+=this.s;r>=this.DB;n-=e.s}t.s=n<0?-1:0,n<-1?t[r++]=this.DV+n:n>0&&(t[r++]=n),t.t=r,t.clamp()},n.prototype.multiplyTo=function(e,t){var r=this.abs(),i=e.abs(),s=r.t;for(t.t=s+i.t;--s>=0;)t[s]=0;for(s=0;s=0;)e[r]=0;for(r=0;r=t.DV&&(e[r+t.t]-=t.DV,e[r+t.t+1]=1)}e.t>0&&(e[e.t-1]+=t.am(r,t[r],e,2*r,0,1)),e.s=0,e.clamp()},n.prototype.divRemTo=function(e,t,r){var s=e.abs();if(!(s.t<=0)){var a=this.abs();if(a.t0?(s.lShiftTo(l,o),a.lShiftTo(l,r)):(s.copyTo(o),a.copyTo(r));var c=o.t,d=o[c-1];if(0!=d){var p=d*(1<1?o[c-2]>>this.F2:0),y=this.FV/p,g=(1<=0&&(r[r.t++]=1,r.subTo(b,r)),n.ONE.dlShiftTo(c,b),b.subTo(o,o);o.t=0;){var k=r[--v]==d?this.DM:Math.floor(r[v]*y+(r[v-1]+m)*g);if((r[v]+=o.am(0,k,r,w,0,c))0&&r.rShiftTo(l,r),f<0&&n.ZERO.subTo(r,r)}}},n.prototype.invDigit=function(){if(this.t<1)return 0;var e=this[0];if(0==(1&e))return 0;var t=3&e;return t=t*(2-(15&e)*t)&15,t=t*(2-(255&e)*t)&255,t=t*(2-((65535&e)*t&65535))&65535,(t=t*(2-e*t%this.DV)%this.DV)>0?this.DV-t:-t},n.prototype.isEven=function(){return 0==(this.t>0?1&this[0]:this.s)},n.prototype.exp=function(e,t){if(e>4294967295||e<1)return n.ONE;var r=i(),s=i(),a=t.convert(this),o=u(e)-1;for(a.copyTo(r);--o>=0;)if(t.sqrTo(r,s),(e&1<0)t.mulTo(s,a,r);else{var f=r;r=s,s=f}return t.revert(r)},n.prototype.toString=function(e){if(this.s<0)return"-"+this.negate().toString(e);var t;if(16==e)t=4;else if(8==e)t=3;else if(2==e)t=1;else if(32==e)t=5;else{if(4!=e)return this.toRadix(e);t=2}var r,n=(1<0)for(u>u)>0&&(i=!0,a=s(r));o>=0;)u>(u+=this.DB-t)):(r=this[o]>>(u-=t)&n,u<=0&&(u+=this.DB,--o)),r>0&&(i=!0),i&&(a+=s(r));return i?a:"0"},n.prototype.negate=function(){var e=i();return n.ZERO.subTo(this,e),e},n.prototype.abs=function(){return this.s<0?this.negate():this},n.prototype.compareTo=function(e){var t=this.s-e.s;if(0!=t)return t;var r=this.t;if(0!=(t=r-e.t))return this.s<0?-t:t;for(;--r>=0;)if(0!=(t=this[r]-e[r]))return t;return 0},n.prototype.bitLength=function(){return this.t<=0?0:this.DB*(this.t-1)+u(this[this.t-1]^this.s&this.DM)},n.prototype.mod=function(e){var t=i();return this.abs().divRemTo(e,null,t),this.s<0&&t.compareTo(n.ZERO)>0&&e.subTo(t,t),t},n.prototype.modPowInt=function(e,t){var r;return r=e<256||t.isEven()?new f(t):new h(t),this.exp(e,r)},n.ZERO=o(0),n.ONE=o(1),n.TWO=o(2),m.prototype.convert=v,m.prototype.revert=v,m.prototype.mulTo=function(e,t,r){e.multiplyTo(t,r)},m.prototype.sqrTo=function(e,t){e.squareTo(t)},w.prototype.convert=function(e){if(e.s<0||e.t>2*this.m.t)return e.mod(this.m);if(e.compareTo(this.m)<0)return e;var t=i();return e.copyTo(t),this.reduce(t),t},w.prototype.revert=function(e){return e},w.prototype.reduce=function(e){for(e.drShiftTo(this.m.t-1,this.r2),e.t>this.m.t+1&&(e.t=this.m.t+1,e.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);e.compareTo(this.r2)<0;)e.dAddOffset(1,this.m.t+1);for(e.subTo(this.r2,e);e.compareTo(this.m)>=0;)e.subTo(this.m,e)},w.prototype.mulTo=function(e,t,r){e.multiplyTo(t,r),this.reduce(r)},w.prototype.sqrTo=function(e,t){e.squareTo(t),this.reduce(t)};var S=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997],U=(1<<26)/S[S.length-1];n.prototype.chunkSize=function(e){return Math.floor(Math.LN2*this.DB/Math.log(e))},n.prototype.toRadix=function(e){if(null==e&&(e=10),0==this.signum()||e<2||e>36)return"0";var t=this.chunkSize(e),r=Math.pow(e,t),n=o(r),s=i(),a=i(),u="";for(this.divRemTo(n,s,a);s.signum()>0;)u=(r+a.intValue()).toString(e).substr(1)+u,s.divRemTo(n,s,a);return a.intValue().toString(e)+u},n.prototype.fromRadix=function(e,t){this.fromInt(0),null==t&&(t=10);for(var r=this.chunkSize(t),i=Math.pow(t,r),s=!1,o=0,u=0,f=0;f=r&&(this.dMultiply(i),this.dAddOffset(u,0),o=0,u=0))}o>0&&(this.dMultiply(Math.pow(t,o)),this.dAddOffset(u,0)),s&&n.ZERO.subTo(this,this)},n.prototype.fromNumber=function(e,t,r){if("number"==typeof t)if(e<2)this.fromInt(1);else for(this.fromNumber(e,r),this.testBit(e-1)||this.bitwiseTo(n.ONE.shiftLeft(e-1),c,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(t);)this.dAddOffset(2,0),this.bitLength()>e&&this.subTo(n.ONE.shiftLeft(e-1),this);else{var i=new Array,s=7&e;i.length=1+(e>>3),t.nextBytes(i),s>0?i[0]&=(1<>=this.DB;if(e.t>=this.DB;n+=this.s}else{for(n+=this.s;r>=this.DB;n+=e.s}t.s=n<0?-1:0,n>0?t[r++]=n:n<-1&&(t[r++]=this.DV+n),t.t=r,t.clamp()},n.prototype.dMultiply=function(e){this[this.t]=this.am(0,e-1,this,0,0,this.t),++this.t,this.clamp()},n.prototype.dAddOffset=function(e,t){if(0!=e){for(;this.t<=t;)this[this.t++]=0;for(this[t]+=e;this[t]>=this.DV;)this[t]-=this.DV,++t>=this.t&&(this[this.t++]=0),++this[t]}},n.prototype.multiplyLowerTo=function(e,t,r){var n=Math.min(this.t+e.t,t);for(r.s=0,r.t=n;n>0;)r[--n]=0;var i;for(i=r.t-this.t;n=0;)r[n]=0;for(n=Math.max(t-this.t,0);n0)if(0==t)r=this[0]%e;else for(var n=this.t-1;n>=0;--n)r=(t*r+this[n])%e;return r},n.prototype.millerRabin=function(e){var t=this.subtract(n.ONE),r=t.getLowestSetBit();if(r<=0)return!1;var s=t.shiftRight(r);(e=e+1>>1)>S.length&&(e=S.length);for(var a=i(),o=[],u=0;u>24},n.prototype.shortValue=function(){return 0==this.t?this.s:this[0]<<16>>16},n.prototype.signum=function(){return this.s<0?-1:this.t<=0||1==this.t&&this[0]<=0?0:1},n.prototype.toByteArray=function(){var e=this.t,t=new Array;t[0]=this.s;var r,n=this.DB-e*this.DB%8,i=0;if(e-- >0)for(n>n)!=(this.s&this.DM)>>n&&(t[i++]=r|this.s<=0;)n<8?(r=(this[e]&(1<>(n+=this.DB-8)):(r=this[e]>>(n-=8)&255,n<=0&&(n+=this.DB,--e)),(i>0||r!=this.s)&&(t[i++]=r);return t},n.prototype.equals=function(e){return 0==this.compareTo(e)},n.prototype.min=function(e){return this.compareTo(e)<0?this:e},n.prototype.max=function(e){return this.compareTo(e)>0?this:e},n.prototype.and=function(e){var t=i();return this.bitwiseTo(e,l,t),t},n.prototype.or=function(e){var t=i();return this.bitwiseTo(e,c,t),t},n.prototype.xor=function(e){var t=i();return this.bitwiseTo(e,d,t),t},n.prototype.andNot=function(e){var t=i();return this.bitwiseTo(e,p,t),t},n.prototype.not=function(){for(var e=i(),t=0;t=this.t?0!=this.s:0!=(this[t]&1<1){var y=i();for(n.sqrTo(l[1],y);c<=p;)l[c]=i(),n.mulTo(y,l[c-2],l[c]),c+=2}var g,m,v=e.t-1,b=!0,k=i();for(s=u(e[v])-1;v>=0;){for(s>=d?g=e[v]>>s-d&p:(g=(e[v]&(1<0&&(g|=e[v-1]>>this.DB+s-d)),c=r;0==(1&g);)g>>=1,--c;if((s-=c)<0&&(s+=this.DB,--v),b)l[g].copyTo(a),b=!1;else{for(;c>1;)n.sqrTo(a,k),n.sqrTo(k,a),c-=2;c>0?n.sqrTo(a,k):(m=a,a=k,k=m),n.mulTo(k,l[g],a)}for(;v>=0&&0==(e[v]&1<=0?(r.subTo(i,r),t&&s.subTo(u,s),a.subTo(f,a)):(i.subTo(r,i),t&&u.subTo(s,u),f.subTo(a,f))}return 0!=i.compareTo(n.ONE)?n.ZERO:f.compareTo(e)>=0?f.subtract(e):f.signum()<0?(f.addTo(e,f),f.signum()<0?f.add(e):f):f},n.prototype.pow=function(e){return this.exp(e,new m)},n.prototype.gcd=function(e){var t=this.s<0?this.negate():this.clone(),r=e.s<0?e.negate():e.clone();if(t.compareTo(r)<0){var n=t;t=r,r=n}var i=t.getLowestSetBit(),s=r.getLowestSetBit();if(s<0)return t;for(i0&&(t.rShiftTo(s,t),r.rShiftTo(s,r));t.signum()>0;)(i=t.getLowestSetBit())>0&&t.rShiftTo(i,t),(i=r.getLowestSetBit())>0&&r.rShiftTo(i,r),t.compareTo(r)>=0?(t.subTo(r,t),t.rShiftTo(1,t)):(r.subTo(t,r),r.rShiftTo(1,r));return s>0&&r.lShiftTo(s,r),r},n.prototype.isProbablePrime=function(e){var t,r=this.abs();if(1==r.t&&r[0]<=S[S.length-1]){for(t=0;t>8),r+=String.fromCharCode(255&t),r+=b.default.bin2str(e)},n.prototype.square=function(){var e=i();return this.squareTo(e),e}},{"../../util.js":70}],30:[function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(){function e(){this.n=null,this.e=0,this.ee=null,this.d=null,this.p=null,this.q=null,this.dmp1=null,this.dmq1=null,this.u=null}this.encrypt=function(e,t,r){return e.modPowInt(t,r)},this.decrypt=function(e,t,r,n,h,l,c){o.default.rsa_blinding&&(e=function(e,t,r){return f=f.bitLength()===t.bitLength()?f.square().mod(t):a.default.getRandomBigIntegerInRange(i.default.TWO,t),u=f.modInverse(t).modPow(r,t),e.multiply(u).mod(t)}(e,t,r));var d=e.mod(h).modPow(n.mod(h.subtract(i.default.ONE)),h),p=e.mod(l).modPow(n.mod(l.subtract(i.default.ONE)),l);s.default.print_debug("rsa.js decrypt\nxpn:"+s.default.hexstrdump(d.toMPI())+"\nxqn:"+s.default.hexstrdump(p.toMPI()));var y=p.subtract(d);return 0===y[0]?(y=(y=d.subtract(p)).multiply(c).mod(l),y=l.subtract(y)):y=y.multiply(c).mod(l),y=y.multiply(h).add(d),o.default.rsa_blinding&&(y=function(e,t){return y.multiply(f).mod(t)}(0,t)),y},this.verify=function(e,t,r){return e.modPowInt(t,r)},this.sign=function(e,t,r){return e.modPow(t,r)},this.generate=function(t,r){function n(t){function n(e){var t=e.replace(/\-/g,"+").replace(/_/g,"/"),r=s.default.hexstrdump(atob(t));return new i.default(r,16)}var a=new e;return a.n=n(t.n),a.ee=new i.default(r,16),a.d=n(t.d),a.p=n(t.p),a.q=n(t.q),a.u=a.p.modInverse(a.q),a}var o=s.default.getWebCryptoAll();if(o){var u,f,h=new Uint32Array([parseInt(r,16)]),l=new Uint8Array(h.buffer);return window.crypto&&window.crypto.webkitSubtle?(u={name:"RSA-OAEP",modulusLength:t,publicExponent:l.subarray(0,3),hash:{name:"SHA-1"}},f=o.generateKey(u,!0,["encrypt","decrypt"])):(u={name:"RSASSA-PKCS1-v1_5",modulusLength:t,publicExponent:l.subarray(0,3),hash:{name:"SHA-1"}},"function"!=typeof(f=o.generateKey(u,!0,["sign","verify"])).then&&(f=s.default.promisifyIE11Op(f,"Error generating RSA key pair."))),f.then(function(e){var t=o.exportKey("jwk",e.privateKey);return"function"!=typeof t.then&&(t=s.default.promisifyIE11Op(t,"Error exporting RSA key pair.")),t}).then(function(e){return n(e instanceof ArrayBuffer?JSON.parse(String.fromCharCode.apply(null,new Uint8Array(e))):e)})}return new Promise(function(n){var s=new e,o=new function(){this.nextBytes=function(e){for(var t=0;t>1;for(s.e=parseInt(r,16),s.ee=new i.default(r,16);;){for(;s.p=new i.default(t-u,1,o),0!==s.p.subtract(i.default.ONE).gcd(s.ee).compareTo(i.default.ONE)||!s.p.isProbablePrime(10););for(;s.q=new i.default(u,1,o),0!==s.q.subtract(i.default.ONE).gcd(s.ee).compareTo(i.default.ONE)||!s.q.isProbablePrime(10););if(s.p.compareTo(s.q)<=0){var f=s.p;s.p=s.q,s.q=f}var h=s.p.subtract(i.default.ONE),l=s.q.subtract(i.default.ONE),c=h.multiply(l);if(0===c.gcd(s.ee).compareTo(i.default.ONE)){s.n=s.p.multiply(s.q),s.d=s.ee.modInverse(c),s.dmp1=s.d.mod(h),s.dmq1=s.d.mod(l),s.u=s.p.modInverse(s.q);break}}n(s)})},this.keyObject=e};var i=n(e("./jsbn.js")),s=n(e("../../util.js")),a=n(e("../random.js")),o=n(e("../../config")),u=i.default.ZERO,f=i.default.ZERO},{"../../config":10,"../../util.js":70,"../random.js":31,"./jsbn.js":29}],31:[function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function i(){this.buffer=null,this.size=null}Object.defineProperty(r,"__esModule",{value:!0});var s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a=n(e("../type/mpi.js")),o=n(e("../util.js")),u=o.default.detectNode()&&e("crypto");r.default={getRandomBytes:function(e){for(var t=new Uint8Array(e),r=0;rt-e;)r=this.getSecureRandomUint();return e+Math.abs(r&Math.pow(2,n)-1)},getSecureRandomOctet:function(){var e=new Uint8Array(1);return this.getRandomValues(e),e[0]},getSecureRandomUint:function(){var e=new Uint8Array(4),t=new DataView(e.buffer);return this.getRandomValues(e),t.getUint32(0)},getRandomValues:function(e){if(!(e instanceof Uint8Array))throw new Error("Invalid type: buf not an Uint8Array");if("undefined"!=typeof window&&window.crypto&&window.crypto.getRandomValues)window.crypto.getRandomValues(e);else if("undefined"!=typeof window&&"object"===s(window.msCrypto)&&"function"==typeof window.msCrypto.getRandomValues)window.msCrypto.getRandomValues(e);else if(u){var t=u.randomBytes(e.length);e.set(t)}else{if(!this.randomBuffer.buffer)throw new Error("No secure random number generator available.");this.randomBuffer.get(e)}return e},getRandomBigInteger:function(e){if(e<1)throw new Error("Illegal parameter value: bits < 1");var t=Math.floor((e+7)/8),r=o.default.Uint8Array2str(this.getRandomBytes(t));e%8>0&&(r=String.fromCharCode(Math.pow(2,e%8)-1&r.charCodeAt(0))+r.substring(1));var n=new a.default;return n.fromBytes(r),n.toBigInteger()},getRandomBigIntegerInRange:function(e,t){if(t.compareTo(e)<=0)throw new Error("Illegal parameter value: max <= min");for(var r=t.subtract(e),n=this.getRandomBigInteger(r.bitLength());n.compareTo(r)>0;)n=this.getRandomBigInteger(r.bitLength());return e.add(n)},randomBuffer:new i},i.prototype.init=function(e){this.buffer=new Uint8Array(e),this.size=0},i.prototype.set=function(e){if(!this.buffer)throw new Error("RandomBuffer is not initialized");if(!(e instanceof Uint8Array))throw new Error("Invalid type: buf not an Uint8Array");var t=this.buffer.length-this.size;e.length>t&&(e=e.subarray(0,t)),this.buffer.set(e,this.size),this.size+=e.length},i.prototype.get=function(e){if(!this.buffer)throw new Error("RandomBuffer is not initialized");if(!(e instanceof Uint8Array))throw new Error("Invalid type: buf not an Uint8Array");if(this.size>16^e[r])];return 16777215&t}(e),r=new Uint8Array([t>>16,t>>8&255,255&t]);return f.default.encode(r)}function a(e){var t="",r=e,n=/^[ \f\r\t\u00a0\u2000-\u200a\u202f\u205f\u3000]*\n/m.exec(e);if(null===n)throw new Error("Mandatory blank line missing between armor headers and armor data");return t=e.slice(0,n.index),r=e.slice(n.index+n[0].length),(t=t.split("\n")).pop(),{headers:t,body:r}}function o(e){for(var t=0;t=0&&n!==e.length-1&&(t=e.slice(0,n),r=e.slice(n+1).substr(0,4)),{body:t,checksum:r}}Object.defineProperty(r,"__esModule",{value:!0});var f=n(e("./base64.js")),h=n(e("../enums.js")),l=n(e("../config")),c=[0,8801531,25875725,17603062,60024545,51751450,35206124,44007191,128024889,120049090,103502900,112007375,70412248,78916387,95990485,88014382,264588937,256049778,240098180,248108927,207005800,215016595,232553829,224014750,140824496,149062475,166599357,157832774,200747345,191980970,176028764,184266919,520933865,529177874,512099556,503334943,480196360,471432179,487973381,496217854,414011600,405478443,422020573,430033190,457094705,465107658,448029500,439496647,281648992,273666971,289622637,298124950,324696449,333198714,315665548,307683447,392699481,401494690,383961940,375687087,352057528,343782467,359738805,368533838,1041867730,1050668841,1066628831,1058355748,1032471859,1024199112,1006669886,1015471301,968368875,960392720,942864358,951368477,975946762,984451313,1000411399,992435708,836562267,828023200,810956886,818967725,844041146,852051777,868605623,860066380,914189410,922427545,938981743,930215316,904825475,896059e3,878993294,887231349,555053627,563297984,547333942,538569677,579245274,570480673,588005847,596249900,649392898,640860153,658384399,666397428,623318499,631331096,615366894,606833685,785398962,777416777,794487231,802989380,759421523,767923880,751374174,743392165,695319947,704115056,687564934,679289981,719477610,711202705,728272487,737067676,2083735460,2092239711,2109313705,2101337682,2141233477,2133257662,2116711496,2125215923,2073216669,2064943718,2048398224,2057199467,2013339772,2022141063,2039215473,2030942602,1945504045,1936737750,1920785440,1929023707,1885728716,1893966647,1911503553,1902736954,1951893524,1959904495,1977441561,1968902626,2009362165,2000822798,1984871416,1992881923,1665111629,1673124534,1656046400,1647513531,1621913772,1613380695,1629922721,1637935450,1688082292,1679317903,1695859321,1704103554,1728967061,1737211246,1720132760,1711368291,1828378820,1820103743,1836060105,1844855090,1869168165,1877963486,1860430632,1852155859,1801148925,1809650950,1792118e3,1784135691,1757986588,1750004711,1765960209,1774462698,1110107254,1118611597,1134571899,1126595968,1102643863,1094667884,1077139354,1085643617,1166763343,1158490548,1140961346,1149762745,1176011694,1184812885,1200772771,1192499800,1307552511,1298785796,1281720306,1289958153,1316768798,1325007077,1341561107,1332794856,1246636998,1254647613,1271201483,1262662192,1239272743,1230733788,1213667370,1221678289,1562785183,1570797924,1554833554,1546300521,1588974462,1580441477,1597965939,1605978760,1518843046,1510078557,1527603627,1535847760,1494504007,1502748348,1486784330,1478020017,1390639894,1382365165,1399434779,1408230112,1366334967,1375129868,1358579962,1350304769,1430452783,1438955220,1422405410,1414423513,1456544974,1448562741,1465633219,1474135352];r.default={encode:function(e,t,r,n){var a=[];switch(e){case h.default.armor.multipart_section:a.push("-----BEGIN PGP MESSAGE, PART "+r+"/"+n+"-----\r\n"),a.push(i()),a.push(f.default.encode(t)),a.push("\r\n="+s(t)+"\r\n"),a.push("-----END PGP MESSAGE, PART "+r+"/"+n+"-----\r\n");break;case h.default.armor.multipart_last:a.push("-----BEGIN PGP MESSAGE, PART "+r+"-----\r\n"),a.push(i()),a.push(f.default.encode(t)),a.push("\r\n="+s(t)+"\r\n"),a.push("-----END PGP MESSAGE, PART "+r+"-----\r\n");break;case h.default.armor.signed:a.push("\r\n-----BEGIN PGP SIGNED MESSAGE-----\r\n"),a.push("Hash: "+t.hash+"\r\n\r\n"),a.push(t.text.replace(/\n-/g,"\n- -")),a.push("\r\n-----BEGIN PGP SIGNATURE-----\r\n"),a.push(i()),a.push(f.default.encode(t.data)),a.push("\r\n="+s(t.data)+"\r\n"),a.push("-----END PGP SIGNATURE-----\r\n");break;case h.default.armor.message:a.push("-----BEGIN PGP MESSAGE-----\r\n"),a.push(i()),a.push(f.default.encode(t)),a.push("\r\n="+s(t)+"\r\n"),a.push("-----END PGP MESSAGE-----\r\n");break;case h.default.armor.public_key:a.push("-----BEGIN PGP PUBLIC KEY BLOCK-----\r\n"),a.push(i()),a.push(f.default.encode(t)),a.push("\r\n="+s(t)+"\r\n"),a.push("-----END PGP PUBLIC KEY BLOCK-----\r\n\r\n");break;case h.default.armor.private_key:a.push("-----BEGIN PGP PRIVATE KEY BLOCK-----\r\n"),a.push(i()),a.push(f.default.encode(t)),a.push("\r\n="+s(t)+"\r\n"),a.push("-----END PGP PRIVATE KEY BLOCK-----\r\n");break;case h.default.armor.signature:a.push("-----BEGIN PGP SIGNATURE-----\r\n"),a.push(i()),a.push(f.default.encode(t)),a.push("\r\n="+s(t)+"\r\n"),a.push("-----END PGP SIGNATURE-----\r\n")}return a.join("")},decode:function(e){var t,r,n,i=/^-----[^-]+-----$\n/m,c=function(t){var r=(e=e.replace(/[\t\r ]+\n/g,"\n")).match(/^-----BEGIN PGP (MESSAGE, PART \d+\/\d+|MESSAGE, PART \d+|SIGNED MESSAGE|MESSAGE|PUBLIC KEY BLOCK|PRIVATE KEY BLOCK|SIGNATURE)-----$\n/m);if(!r)throw new Error("Unknown ASCII armor type");return/MESSAGE, PART \d+\/\d+/.test(r[1])?h.default.armor.multipart_section:/MESSAGE, PART \d+/.test(r[1])?h.default.armor.multipart_last:/SIGNED MESSAGE/.test(r[1])?h.default.armor.signed:/MESSAGE/.test(r[1])?h.default.armor.message:/PUBLIC KEY BLOCK/.test(r[1])?h.default.armor.public_key:/PRIVATE KEY BLOCK/.test(r[1])?h.default.armor.private_key:/SIGNATURE/.test(r[1])?h.default.armor.signature:void 0}(),d=(e=e.trim()+"\n").split(i),p=1;if(e.search(i)!==d[0].length&&(p=0),2!==c){var y=u((n=a(d[p])).body);t={data:f.default.decode(y.body),headers:n.headers,type:c},r=y.checksum}else{n=a(d[p].replace(/^- /gm,""));var g=a(d[p+1].replace(/^- /gm,""));o(g.headers);var m=u(g.body);t={text:n.body.replace(/\n$/,"").replace(/\n/g,"\r\n"),data:f.default.decode(m.body),headers:n.headers,type:c},r=m.checksum}if(!function(e,t){var r=s(e),n=t;return r[0]===n[0]&&r[1]===n[1]&&r[2]===n[2]&&r[3]===n[3]}(t.data,r)&&(r||l.default.checksum_required))throw new Error("Ascii armor integrity check on message failed: '"+r+"' should be '"+s(t.data)+"'");return o(t.headers),t}}},{"../config":10,"../enums.js":35,"./base64.js":34}],34:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";r.default={encode:function(e,t){var r,i,s,a=t||[],o=0,u=0,f=e.length;for(s=0;s>2&63)),r=(3&i)<<4):1===u?(a.push(n.charAt(r|i>>4&15)),r=(15&i)<<2):2===u&&(a.push(n.charAt(r|i>>6&3)),(o+=1)%60==0&&a.push("\n"),a.push(n.charAt(63&i))),(o+=1)%60==0&&a.push("\n"),3===(u+=1)&&(u=0);if(u>0&&(a.push(n.charAt(r)),(o+=1)%60==0&&a.push("\n"),a.push("="),o+=1),1===u&&(o%60==0&&a.push("\n"),a.push("=")),!t)return a.join("")},decode:function(e){var t,r,i=[],s=0,a=0,o=e.length;for(r=0;r=0&&(s&&i.push(a|t>>6-s&255),a=t<<(s=s+2&7)&255);return new Uint8Array(i)}}},{}],35:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default={s2k:{simple:0,salted:1,iterated:3,gnu:101},publicKey:{rsa_encrypt_sign:1,rsa_encrypt:2,rsa_sign:3,elgamal:16,dsa:17},symmetric:{plaintext:0,idea:1,tripledes:2,cast5:3,blowfish:4,aes128:7,aes192:8,aes256:9,twofish:10},compression:{uncompressed:0,zip:1,zlib:2,bzip2:3},hash:{md5:1,sha1:2,ripemd:3,sha256:8,sha384:9,sha512:10,sha224:11},packet:{publicKeyEncryptedSessionKey:1,signature:2,symEncryptedSessionKey:3,onePassSignature:4,secretKey:5,publicKey:6,secretSubkey:7,compressed:8,symmetricallyEncrypted:9,marker:10,literal:11,trust:12,userid:13,publicSubkey:14,userAttribute:17,symEncryptedIntegrityProtected:18,modificationDetectionCode:19,symEncryptedAEADProtected:20},literal:{binary:"b".charCodeAt(),text:"t".charCodeAt(),utf8:"u".charCodeAt()},signature:{binary:0,text:1,standalone:2,cert_generic:16,cert_persona:17,cert_casual:18,cert_positive:19,cert_revocation:48,subkey_binding:24,key_binding:25,key:31,key_revocation:32,subkey_revocation:40,timestamp:64,third_party:80},signatureSubpacket:{signature_creation_time:2,signature_expiration_time:3,exportable_certification:4,trust_signature:5,regular_expression:6,revocable:7,key_expiration_time:9,placeholder_backwards_compatibility:10,preferred_symmetric_algorithms:11,revocation_key:12,issuer:16,notation_data:20,preferred_hash_algorithms:21,preferred_compression_algorithms:22,key_server_preferences:23,preferred_key_server:24,primary_user_id:25,policy_uri:26,key_flags:27,signers_user_id:28,reason_for_revocation:29,features:30,signature_target:31,embedded_signature:32},keyFlags:{certify_keys:1,sign_data:2,encrypt_communication:4,encrypt_storage:8,split_private_key:16,authentication:32,shared_private_key:128},keyStatus:{invalid:0,expired:1,revoked:2,valid:3,no_self_cert:4},armor:{multipart_section:0,multipart_last:1,signed:2,message:3,public_key:4,private_key:5,signature:6},write:function(e,t){if("number"==typeof t&&(t=this.read(e,t)),void 0!==e[t])return e[t];throw new Error("Invalid enum value.")},read:function(e,t){for(var r in e)if(e[r]===parseInt(t))return r;throw new Error("Invalid enum value.")}}},{}],36:[function(e,t,r){"use strict";function n(t){this._baseUrl=t||i.default.keyserver,this._fetch="undefined"!=typeof window?window.fetch:e("node-fetch")}Object.defineProperty(r,"__esModule",{value:!0}),r.default=n;var i=function(e){return e&&e.__esModule?e:{default:e}}(e("./config"));n.prototype.lookup=function(e){var t=this._baseUrl+"/pks/lookup?op=get&options=mr&search=",r=this._fetch;if(e.keyId)t+="0x"+encodeURIComponent(e.keyId);else{if(!e.query)throw new Error("You must provide a query parameter!");t+=encodeURIComponent(e.query)}return r(t).then(function(e){if(200===e.status)return e.text()}).then(function(e){if(e&&!(e.indexOf("-----END PGP PUBLIC KEY BLOCK-----")<0))return e.trim()})},n.prototype.upload=function(e){var t=this._baseUrl+"/pks/add";return(0,this._fetch)(t,{method:"post",headers:{"Content-Type":"application/x-www-form-urlencoded; charset=UTF-8"},body:"keytext="+encodeURIComponent(e)})}},{"./config":10,"node-fetch":"node-fetch"}],37:[function(e,t,r){"use strict";function n(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(r,"__esModule",{value:!0}),r.HKP=r.AsyncProxy=r.Keyring=r.crypto=r.config=r.enums=r.armor=r.Keyid=r.S2K=r.MPI=r.packet=r.util=r.cleartext=r.message=r.signature=r.key=void 0;var s=e("./openpgp");Object.keys(s).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(r,e,{enumerable:!0,get:function(){return s[e]}})});var a=e("./util");Object.defineProperty(r,"util",{enumerable:!0,get:function(){return i(a).default}});var o=e("./packet");Object.defineProperty(r,"packet",{enumerable:!0,get:function(){return i(o).default}});var u=e("./type/mpi");Object.defineProperty(r,"MPI",{enumerable:!0,get:function(){return i(u).default}});var f=e("./type/s2k");Object.defineProperty(r,"S2K",{enumerable:!0,get:function(){return i(f).default}});var h=e("./type/keyid");Object.defineProperty(r,"Keyid",{enumerable:!0,get:function(){return i(h).default}});var l=e("./encoding/armor");Object.defineProperty(r,"armor",{enumerable:!0,get:function(){return i(l).default}});var c=e("./enums");Object.defineProperty(r,"enums",{enumerable:!0,get:function(){return i(c).default}});var d=e("./config/config");Object.defineProperty(r,"config",{enumerable:!0,get:function(){return i(d).default}});var p=e("./crypto");Object.defineProperty(r,"crypto",{enumerable:!0,get:function(){return i(p).default}});var y=e("./keyring");Object.defineProperty(r,"Keyring",{enumerable:!0,get:function(){return i(y).default}});var g=e("./worker/async_proxy");Object.defineProperty(r,"AsyncProxy",{enumerable:!0,get:function(){return i(g).default}});var m=e("./hkp");Object.defineProperty(r,"HKP",{enumerable:!0,get:function(){return i(m).default}});var v=n(s),w=n(e("./key")),b=n(e("./signature")),k=n(e("./message")),A=n(e("./cleartext"));r.default=v;r.key=w,r.signature=b,r.message=k,r.cleartext=A},{"./cleartext":5,"./config/config":9,"./crypto":24,"./encoding/armor":33,"./enums":35,"./hkp":36,"./key":38,"./keyring":39,"./message":42,"./openpgp":43,"./packet":47,"./signature":66,"./type/keyid":67,"./type/mpi":68,"./type/s2k":69,"./util":70,"./worker/async_proxy":71}],38:[function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function i(e){if(!(this instanceof i))return new i(e);if(this.primaryKey=null,this.revocationSignature=null,this.directSignatures=null,this.users=null,this.subKeys=null,this.packetlist2structure(e),!this.primaryKey||!this.users)throw new Error("Invalid key: need at least key and user ID packet")}function s(e,t){return e.algorithm!==p.default.read(p.default.publicKey,p.default.publicKey.dsa)&&e.algorithm!==p.default.read(p.default.publicKey,p.default.publicKey.rsa_sign)&&(!t.keyFlags||0!=(t.keyFlags[0]&p.default.keyFlags.encrypt_communication)||0!=(t.keyFlags[0]&p.default.keyFlags.encrypt_storage))}function a(e,t){return!(e.algorithm!==p.default.read(p.default.publicKey,p.default.publicKey.dsa)&&e.algorithm!==p.default.read(p.default.publicKey,p.default.publicKey.rsa_sign)&&e.algorithm!==p.default.read(p.default.publicKey,p.default.publicKey.rsa_encrypt_sign)||t.keyFlags&&0==(t.keyFlags[0]&p.default.keyFlags.sign_data))}function o(e,t){return 3===e.version&&0!==e.expirationTimeV3?new Date(e.created.getTime()+24*e.expirationTimeV3*3600*1e3):4===e.version&&!1===t.keyNeverExpires?new Date(e.created.getTime()+1e3*t.keyExpirationTime):null}function u(e,t,r,n){(e=e[r])&&(t[r]?e.forEach(function(e){e.isExpired()||n&&!n(e)||t[r].some(function(t){return m.default.equalsUint8Array(t.signature,e.signature)})||t[r].push(e)}):t[r]=e)}function f(e){if(!(this instanceof f))return new f(e);this.userId=e.tag===p.default.packet.userid?e:null,this.userAttribute=e.tag===p.default.packet.userAttribute?e:null,this.selfCertifications=null,this.otherCertifications=null,this.revocationCertifications=null}function h(e){if(!(this instanceof h))return new h(e);this.subKey=e,this.bindingSignatures=[],this.revocationSignature=null}function l(e){var t={};t.keys=[];try{var r=new d.default.List;r.read(e);var n=r.indexOfTag(p.default.packet.publicKey,p.default.packet.secretKey);if(0===n.length)throw new Error("No key packet found");for(var s=0;s0&&(o.keyExpirationTime=r.keyExpirationTime,o.keyNeverExpires=!1),o.sign(e,a),n.push(s),n.push(o)});var s={};s.key=e,s.bind=t;var a=new d.default.Signature;return a.signatureType=p.default.signature.subkey_binding,a.publicKeyAlgorithm=r.keyType,a.hashAlgorithm=g.default.prefer_hash_algorithm,a.keyFlags=[p.default.keyFlags.encrypt_communication|p.default.keyFlags.encrypt_storage],r.keyExpirationTime>0&&(a.keyExpirationTime=r.keyExpirationTime,a.keyNeverExpires=!1),a.sign(e,s),n.push(t),n.push(a),r.unlocked||(e.clearPrivateMPIs(),t.clearPrivateMPIs()),new i(n)}Object.defineProperty(r,"__esModule",{value:!0}),r.Key=i,r.read=l,r.readArmored=function(e){try{var t=y.default.decode(e);if(t.type!==p.default.armor.public_key&&t.type!==p.default.armor.private_key)throw new Error("Armored text not of type key");return l(t.data)}catch(e){var r={keys:[],err:[]};return r.err.push(e),r}},r.generate=function(e){var t,r;return Promise.resolve().then(function(){if(e.keyType=e.keyType||p.default.publicKey.rsa_encrypt_sign,e.keyType!==p.default.publicKey.rsa_encrypt_sign)throw new Error("Only RSA Encrypt or Sign supported");return e.passphrase||(e.unlocked=!0),(String.prototype.isPrototypeOf(e.userIds)||"string"==typeof e.userIds)&&(e.userIds=[e.userIds]),Promise.all([(t=new d.default.SecretKey,t.algorithm=p.default.read(p.default.publicKey,e.keyType),t.generate(e.numBits)),(r=new d.default.SecretSubkey,r.algorithm=p.default.read(p.default.publicKey,e.keyType),r.generate(e.numBits))]).then(function(){return c(t,r,e)})})},r.reformat=function(e){var t,r;return Promise.resolve().then(function(){if(e.keyType=e.keyType||p.default.publicKey.rsa_encrypt_sign,e.keyType!==p.default.publicKey.rsa_encrypt_sign)throw new Error("Only RSA Encrypt or Sign supported");if(!e.privateKey.decrypt())throw new Error("Key not decrypted");e.passphrase||(e.unlocked=!0),(String.prototype.isPrototypeOf(e.userIds)||"string"==typeof e.userIds)&&(e.userIds=[e.userIds]);for(var n=e.privateKey.toPacketlist(),i=0;i>r,n.count++})});var r={prio:0,algo:g.default.encryption_cipher};for(var n in t)try{n!==p.default.symmetric.plaintext&&n!==p.default.symmetric.idea&&p.default.read(p.default.symmetric,n)&&t[n].count===e.length&&t[n].prio>r.prio&&(r=t[n])}catch(e){}return r.algo};var d=n(e("./packet")),p=n(e("./enums.js")),y=n(e("./encoding/armor.js")),g=n(e("./config")),m=n(e("./util"));i.prototype.packetlist2structure=function(e){for(var t,r,n,i=0;i1&&void 0!==arguments[1]&&arguments[1],r=this.getPrimaryUser(t);if(r&&a(this.primaryKey,r.selfCertificate)&&(!e||this.primaryKey.getKeyId().equals(e))&&this.verifyPrimaryKey(t)===p.default.keyStatus.valid)return this.primaryKey;if(this.subKeys)for(var n=0;n0&&void 0!==arguments[0]&&arguments[0];if(this.revocationSignature&&!this.revocationSignature.isExpired()&&(this.revocationSignature.verified||this.revocationSignature.verify(this.primaryKey,{key:this.primaryKey})))return p.default.keyStatus.revoked;if(!e&&3===this.primaryKey.version&&0!==this.primaryKey.expirationTimeV3&&Date.now()>this.primaryKey.created.getTime()+24*this.primaryKey.expirationTimeV3*3600*1e3)return p.default.keyStatus.expired;for(var t=!1,r=0;rthis.primaryKey.created.getTime()+1e3*n.selfCertificate.keyExpirationTime?p.default.keyStatus.expired:p.default.keyStatus.valid:p.default.keyStatus.invalid},i.prototype.getExpirationTime=function(){if(3===this.primaryKey.version)return o(this.primaryKey);if(4===this.primaryKey.version){var e=this.getPrimaryUser();return e?o(this.primaryKey,e.selfCertificate):null}},i.prototype.getPrimaryUser=function(){for(var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=[],r=0;rt.selfCertificate.isPrimaryUserID?-1:e.selfCertificate.isPrimaryUserIDt.selfCertificate.created?-1:e.selfCertificate.created2&&void 0!==arguments[2]&&arguments[2];return!this.isRevoked(t,e)&&!(t.isExpired()&&!r||!t.verified&&!t.verify(e,{userid:this.userId||this.userAttribute,key:e}))},f.prototype.sign=function(e,t){var r,n,i,s;return n={},n.key=e,n.userid=this.userId||this.userAttribute,r=new f(this.userId||this.userAttribute),r.otherCertifications=[],t.forEach(function(t){if(t.isPublic())throw new Error("Need private key for signing");if(t.primaryKey.getFingerprint()===e.getFingerprint())throw new Error("Not implemented for self signing");if(!(i=t.getSigningKeyPacket()))throw new Error("Could not find valid signing key packet");if(!i.isDecrypted)throw new Error("Private key is not decrypted.");(s=new d.default.Signature).signatureType=p.default.write(p.default.signature,p.default.signature.cert_generic),s.keyFlags=[p.default.keyFlags.certify_keys|p.default.keyFlags.sign_data],s.hashAlgorithm=t.getPreferredHashAlgorithm(),s.publicKeyAlgorithm=i.algorithm,s.signingKeyId=i.getKeyId(),s.sign(i,n),r.otherCertifications.push(s)}),r.update(this,e),r},f.prototype.verifyAllSignatures=function(e,t){var r={userid:this.userId||this.userAttribute,key:e};return this.selfCertifications.concat(this.otherCertifications||[]).map(function(e){var n=t.filter(function(t){return t.getSigningKeyPacket(e.issuerKeyId)}),i=null;return n.length>0&&(i=n.some(function(t){return e.verify(t.primaryKey,r)})),{keyid:e.issuerKeyId,valid:i}})},f.prototype.verify=function(e){if(!this.selfCertifications)return p.default.keyStatus.no_self_cert;for(var t,r=0;r1&&void 0!==arguments[1]&&arguments[1];if(this.verify(e,t)!==p.default.keyStatus.valid)return!1;for(var r=0;r1&&void 0!==arguments[1]&&arguments[1];if(this.revocationSignature&&!this.revocationSignature.isExpired()&&(this.revocationSignature.verified||this.revocationSignature.verify(e,{key:e,bind:this.subKey})))return p.default.keyStatus.revoked;if(!t&&3===this.subKey.version&&0!==this.subKey.expirationTimeV3&&Date.now()>this.subKey.created.getTime()+24*this.subKey.expirationTimeV3*3600*1e3)return p.default.keyStatus.expired;for(var r=0;rthis.subKey.created.getTime()+1e3*i.keyExpirationTime))return p.default.keyStatus.valid;if(n)return p.default.keyStatus.expired}else if(n)return p.default.keyStatus.invalid}else if(n)return p.default.keyStatus.expired}return p.default.keyStatus.invalid},h.prototype.getExpirationTime=function(){for(var e,t=0;te)&&(e=r)}return e},h.prototype.update=function(e,t){if(e.verify(t)!==p.default.keyStatus.invalid){if(this.subKey.getFingerprint()!==e.subKey.getFingerprint())throw new Error("SubKey update method: fingerprints of subkeys not equal");if(this.subKey.tag===p.default.packet.publicSubkey&&e.subKey.tag===p.default.packet.secretSubkey&&(this.subKey=e.subKey),this.bindingSignatures.length"),i=t.getUserIds(),s=0;s0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=new h.default.List,n=this.packets.findPacket(l.default.packet.literal);if(!n)throw new Error("No literal data packet to sign.");var i,a,o,u,f=l.default.write(l.default.literal,n.format)===l.default.literal.binary?l.default.signature.binary:l.default.signature.text;if(t&&(o=t.packets.filterByTag(l.default.packet.signature)).length)for(i=o.length-1;i>=0;i--){var c=o[i];(u=new h.default.OnePassSignature).type=f,u.hashAlgorithm=d.default.prefer_hash_algorithm,u.publicKeyAlgorithm=c.publicKeyAlgorithm,u.signingKeyId=c.issuerKeyId,e.length||0!==i||(u.flags=1),r.push(u)}for(i=0;i=0;i--){var p=new h.default.Signature;if(p.signatureType=f,p.hashAlgorithm=d.default.prefer_hash_algorithm,p.publicKeyAlgorithm=a.algorithm,!a.isDecrypted)throw new Error("Private key is not decrypted.");p.sign(a,n),r.push(p)}return t&&r.concat(o),new s(r)},s.prototype.signDetached=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=new h.default.List,n=this.packets.findPacket(l.default.packet.literal);if(!n)throw new Error("No literal data packet to sign.");for(var i=l.default.write(l.default.literal,n.format)===l.default.literal.binary?l.default.signature.binary:l.default.signature.text,s=0;s0&&(e.name+=" "),e.name+"<"+e.email+">"}),e):e}function u(e){return e&&!g.default.isArray(e)&&(e=[e]),e}function f(e,t){return new Promise(function(t){return t(e())}).catch(h.bind(null,t))}function h(e,t){throw y.default.debug&&console.error(t.stack),t.message=e+": "+t.message,t}function l(){return g.default.getWebCrypto()&&y.default.aead_protect}Object.defineProperty(r,"__esModule",{value:!0}),r.initWorker=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.path,r=void 0===t?"openpgp.worker.min.js":t,n=e.worker;if(n||"undefined"!=typeof window&&window.Worker)return v=new m.default({path:r,worker:n,config:y.default}),!0},r.getWorker=function(){return v},r.destroyWorker=function(){v=void 0},r.generateKey=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.userIds,r=void 0===t?[]:t,n=e.passphrase,i=e.numBits,s=void 0===i?2048:i,a=e.unlocked,u=void 0!==a&&a,f=e.keyExpirationTime,l=o({userIds:r,passphrase:n,numBits:s,unlocked:u,keyExpirationTime:void 0===f?0:f});return!g.default.getWebCryptoAll()&&v?v.delegate("generateKey",l):p.generate(l).then(function(e){return{key:e,privateKeyArmored:e.armor(),publicKeyArmored:e.toPublic().armor()}}).catch(h.bind(null,"Error generating keypair"))},r.reformatKey=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.privateKey,r=e.userIds,n=void 0===r?[]:r,i=e.passphrase,s=void 0===i?"":i,a=e.unlocked,u=void 0!==a&&a,f=e.keyExpirationTime,l=o({privateKey:t,userIds:n,passphrase:s,unlocked:u,keyExpirationTime:void 0===f?0:f});return v?v.delegate("reformatKey",l):p.reformat(l).then(function(e){return{key:e,privateKeyArmored:e.armor(),publicKeyArmored:e.toPublic().armor()}}).catch(h.bind(null,"Error reformatting keypair"))},r.decryptKey=function(e){var t=e.privateKey,r=e.passphrase;return v?v.delegate("decryptKey",{privateKey:t,passphrase:r}):f(function(){if(!t.decrypt(r))throw new Error("Invalid passphrase");return{key:t}},"Error decrypting private key")},r.encrypt=function(e){var t=e.data,r=e.publicKeys,n=e.privateKeys,i=e.passwords,a=e.sessionKey,o=e.filename,f=e.armor,d=void 0===f||f,p=e.detached,y=void 0!==p&&p,m=e.signature,w=void 0===m?null:m,b=e.returnSessionKey,k=void 0!==b&&b;if(s(t),r=u(r),n=u(n),i=u(i),!l()&&v)return v.delegate("encrypt",{data:t,publicKeys:r,privateKeys:n,passwords:i,sessionKey:a,filename:o,armor:d,detached:y,signature:w,returnSessionKey:k});var A={};return Promise.resolve().then(function(){var e=function(e,t){var r=void 0;if(g.default.isUint8Array(e))r=c.fromBinary(e,t);else{if(!g.default.isString(e))throw new Error("Data must be of type String or Uint8Array");r=c.fromText(e,t)}return r}(t,o);if(n||(n=[]),n.length||w)if(y){var s=e.signDetached(n,w);A.signature=d?s.armor():s}else e=e.sign(n,w);return e.encrypt(r,i,a)}).then(function(e){return d?A.data=e.message.armor():A.message=e.message,k&&(A.sessionKey=e.sessionKey),A}).catch(h.bind(null,"Error encrypting message"))},r.decrypt=function(e){var t=e.message,r=e.privateKey,n=e.publicKeys,i=e.sessionKey,s=e.password,o=e.format,f=void 0===o?"utf8":o,c=e.signature,d=void 0===c?null:c;return a(t),n=u(n),!l()&&v?v.delegate("decrypt",{message:t,privateKey:r,publicKeys:n,sessionKey:i,password:s,format:f,signature:d}):t.decrypt(r,i,s).then(function(e){var t=function(e,t){if("binary"===t)return{data:e.getLiteralData(),filename:e.getFilename()};if("utf8"===t)return{data:e.getText(),filename:e.getFilename()};throw new Error("Invalid format")}(e,f);return n||(n=[]),t.signatures=d?e.verifyDetached(d,n):e.verify(n),t}).catch(h.bind(null,"Error decrypting message"))},r.sign=function(e){var t=e.data,r=e.privateKeys,n=e.armor,i=void 0===n||n,a=e.detached,o=void 0!==a&&a;if(s(t),r=u(r),v)return v.delegate("sign",{data:t,privateKeys:r,armor:i,detached:o});var h={};return f(function(){var e;if(e=g.default.isString(t)?new d.CleartextMessage(t):c.fromBinary(t),o){var n=e.signDetached(r);h.signature=i?n.armor():n}else e=e.sign(r),i?h.data=e.armor():h.message=e;return h},"Error signing cleartext message")},r.verify=function(e){var t=e.message,r=e.publicKeys,n=e.signature,i=void 0===n?null:n;if(function(e){if(!d.CleartextMessage.prototype.isPrototypeOf(e)&&!c.Message.prototype.isPrototypeOf(e))throw new Error("Parameter [message] needs to be of type Message or CleartextMessage")}(t),r=u(r),v)return v.delegate("verify",{message:t,publicKeys:r,signature:i});var s={};return f(function(){return d.CleartextMessage.prototype.isPrototypeOf(t)?s.data=t.getText():s.data=t.getLiteralData(),s.signatures=i?t.verifyDetached(i,r):t.verify(r),s},"Error verifying cleartext signed message")},r.encryptSessionKey=function(e){var t=e.data,r=e.algorithm,n=e.publicKeys,i=e.passwords;return function(e,t){if(!g.default.isUint8Array(e))throw new Error("Parameter ["+(t||"data")+"] must be of type Uint8Array")}(t),function(e,t){if(!g.default.isString(e))throw new Error("Parameter ["+(t||"data")+"] must be of type String")}(r,"algorithm"),n=u(n),i=u(i),v?v.delegate("encryptSessionKey",{data:t,algorithm:r,publicKeys:n,passwords:i}):f(function(){return{message:c.encryptSessionKey(t,r,n,i)}},"Error encrypting session key")},r.decryptSessionKey=function(e){var t=e.message,r=e.privateKey,n=e.password;return a(t),v?v.delegate("decryptSessionKey",{message:t,privateKey:r,password:n}):f(function(){return t.decryptSessionKey(r,n)},"Error decrypting session key")};var c=i(e("./message.js")),d=i(e("./cleartext.js")),p=i(e("./key.js")),y=n(e("./config/config.js")),g=n(e("./util")),m=n(e("./worker/async_proxy.js"));n(e("es6-promise")).default.polyfill();var v=void 0},{"./cleartext.js":5,"./config/config.js":9,"./key.js":38,"./message.js":42,"./util":70,"./worker/async_proxy.js":71,"es6-promise":2}],44:[function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function i(e){return new(_[function(e){return e.substr(0,1).toUpperCase()+e.substr(1)}(e)])}Object.defineProperty(r,"__esModule",{value:!0}),r.Trust=r.Signature=r.SecretSubkey=r.Userid=r.SecretKey=r.OnePassSignature=r.UserAttribute=r.PublicSubkey=r.Marker=r.SymmetricallyEncrypted=r.PublicKey=r.Literal=r.SymEncryptedSessionKey=r.PublicKeyEncryptedSessionKey=r.SymEncryptedAEADProtected=r.SymEncryptedIntegrityProtected=r.Compressed=void 0;var s=e("./compressed.js");Object.defineProperty(r,"Compressed",{enumerable:!0,get:function(){return n(s).default}});var a=e("./sym_encrypted_integrity_protected.js");Object.defineProperty(r,"SymEncryptedIntegrityProtected",{enumerable:!0,get:function(){return n(a).default}});var o=e("./sym_encrypted_aead_protected.js");Object.defineProperty(r,"SymEncryptedAEADProtected",{enumerable:!0,get:function(){return n(o).default}});var u=e("./public_key_encrypted_session_key.js");Object.defineProperty(r,"PublicKeyEncryptedSessionKey",{enumerable:!0,get:function(){return n(u).default}});var f=e("./sym_encrypted_session_key.js");Object.defineProperty(r,"SymEncryptedSessionKey",{enumerable:!0,get:function(){return n(f).default}});var h=e("./literal.js");Object.defineProperty(r,"Literal",{enumerable:!0,get:function(){return n(h).default}});var l=e("./public_key.js");Object.defineProperty(r,"PublicKey",{enumerable:!0,get:function(){return n(l).default}});var c=e("./symmetrically_encrypted.js");Object.defineProperty(r,"SymmetricallyEncrypted",{enumerable:!0,get:function(){return n(c).default}});var d=e("./marker.js");Object.defineProperty(r,"Marker",{enumerable:!0,get:function(){return n(d).default}});var p=e("./public_subkey.js");Object.defineProperty(r,"PublicSubkey",{enumerable:!0,get:function(){return n(p).default}});var y=e("./user_attribute.js");Object.defineProperty(r,"UserAttribute",{enumerable:!0,get:function(){return n(y).default}});var g=e("./one_pass_signature.js");Object.defineProperty(r,"OnePassSignature",{enumerable:!0,get:function(){return n(g).default}});var m=e("./secret_key.js");Object.defineProperty(r,"SecretKey",{enumerable:!0,get:function(){return n(m).default}});var v=e("./userid.js");Object.defineProperty(r,"Userid",{enumerable:!0,get:function(){return n(v).default}});var w=e("./secret_subkey.js");Object.defineProperty(r,"SecretSubkey",{enumerable:!0,get:function(){return n(w).default}});var b=e("./signature.js");Object.defineProperty(r,"Signature",{enumerable:!0,get:function(){return n(b).default}});var k=e("./trust.js");Object.defineProperty(r,"Trust",{enumerable:!0,get:function(){return n(k).default}}),r.newPacketFromTag=i,r.fromStructuredClone=function(e){var t=i(A.default.read(A.default.packet,e.tag));for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);return t.postCloneTypeFix&&t.postCloneTypeFix(),t};var A=n(e("../enums.js")),_=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}(e("./all_packets.js"))},{"../enums.js":35,"./all_packets.js":44,"./compressed.js":46,"./literal.js":48,"./marker.js":49,"./one_pass_signature.js":50,"./public_key.js":53,"./public_key_encrypted_session_key.js":54,"./public_subkey.js":55,"./secret_key.js":56,"./secret_subkey.js":57,"./signature.js":58,"./sym_encrypted_aead_protected.js":59,"./sym_encrypted_integrity_protected.js":60,"./sym_encrypted_session_key.js":61,"./symmetrically_encrypted.js":62,"./trust.js":63,"./user_attribute.js":64,"./userid.js":65}],45:[function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function i(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}function s(e){var t=l.default.fromStructuredClone(e);return new o.Key(t)}function a(e){return e.keyid=c.default.fromClone(e.keyid),e.signature=new h.Signature(e.signature),e}Object.defineProperty(r,"__esModule",{value:!0}),r.clonePackets=function(e){return e.publicKeys&&(e.publicKeys=e.publicKeys.map(function(e){return e.toPacketlist()})),e.privateKeys&&(e.privateKeys=e.privateKeys.map(function(e){return e.toPacketlist()})),e.privateKey&&(e.privateKey=e.privateKey.toPacketlist()),e.key&&(e.key=e.key.toPacketlist()),e.message&&(e.message instanceof u.Message?e.message=e.message.packets:e.message instanceof f.CleartextMessage&&(e.message.signature=e.message.signature.packets)),e.signature&&e.signature instanceof h.Signature&&(e.signature=e.signature.packets),e.signatures&&(e.signatures=e.signatures.map(function(e){return function(e){return e.signature=e.signature.packets,e}(e)})),e},r.parseClonedPackets=function(e,t){return e.publicKeys&&(e.publicKeys=e.publicKeys.map(s)),e.privateKeys&&(e.privateKeys=e.privateKeys.map(s)),e.privateKey&&(e.privateKey=s(e.privateKey)),e.key&&(e.key=s(e.key)),e.message&&e.message.signature?e.message=function(e){var t=l.default.fromStructuredClone(e.signature);return new f.CleartextMessage(e.text,new h.Signature(t))}(e.message):e.message&&(e.message=function(e){var t=l.default.fromStructuredClone(e);return new u.Message(t)}(e.message)),e.signatures&&(e.signatures=e.signatures.map(a)),e.signature&&(e.signature=function(e){if("string"==typeof e)return e;var t=l.default.fromStructuredClone(e);return new h.Signature(t)}(e.signature)),e};var o=i(e("../key.js")),u=i(e("../message.js")),f=i(e("../cleartext.js")),h=i(e("../signature.js")),l=n(e("./packetlist.js")),c=n(e("../type/keyid.js"))},{"../cleartext.js":5,"../key.js":38,"../message.js":42,"../signature.js":66,"../type/keyid.js":67,"./packetlist.js":52}],46:[function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function i(){this.tag=s.default.packet.compressed,this.packets=null,this.algorithm="zip",this.compressed=null}Object.defineProperty(r,"__esModule",{value:!0}),r.default=i;var s=n(e("../enums.js")),a=n(e("../util.js")),o=n(e("../compression/zlib.min.js")),u=n(e("../compression/rawinflate.min.js")),f=n(e("../compression/rawdeflate.min.js"));i.prototype.read=function(e){this.algorithm=s.default.read(s.default.compression,e[0]),this.compressed=e.subarray(1,e.length),this.decompress()},i.prototype.write=function(){return null===this.compressed&&this.compress(),a.default.concatUint8Array(new Uint8Array([s.default.write(s.default.compression,this.algorithm)]),this.compressed)},i.prototype.decompress=function(){var e;switch(this.algorithm){case"uncompressed":e=this.compressed;break;case"zip":e=new u.default.Zlib.RawInflate(this.compressed).decompress();break;case"zlib":e=new o.default.Zlib.Inflate(this.compressed).decompress();break;case"bzip2":throw new Error("Compression algorithm BZip2 [BZ2] is not implemented.");default:throw new Error("Compression algorithm unknown :"+this.algorithm)}this.packets.read(e)},i.prototype.compress=function(){var e,t;switch(e=this.packets.write(),this.algorithm){case"uncompressed":this.compressed=e;break;case"zip":t=new f.default.Zlib.RawDeflate(e),this.compressed=t.compress();break;case"zlib":t=new o.default.Zlib.Deflate(e),this.compressed=t.compress();break;case"bzip2":throw new Error("Compression algorithm BZip2 [BZ2] is not implemented.");default:throw new Error("Compression algorithm unknown :"+this.type)}}},{"../compression/rawdeflate.min.js":6,"../compression/rawinflate.min.js":7,"../compression/zlib.min.js":8,"../enums.js":35,"../util.js":70}],47:[function(e,t,r){"use strict";function n(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}Object.defineProperty(r,"__esModule",{value:!0});var i=n(e("./all_packets.js")),s=n(e("./clone.js")),a={List:function(e){return e&&e.__esModule?e:{default:e}}(e("./packetlist.js")).default,clone:s};for(var o in i)a[o]=i[o];r.default=a},{"./all_packets.js":44,"./clone.js":45,"./packetlist.js":52}],48:[function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function i(){this.tag=a.default.packet.literal,this.format="utf8",this.date=new Date,this.data=new Uint8Array(0),this.filename="msg.txt"}Object.defineProperty(r,"__esModule",{value:!0}),r.default=i;var s=n(e("../util.js")),a=n(e("../enums.js"));i.prototype.setText=function(e){e=e.replace(/\r\n/g,"\n").replace(/\r/g,"\n").replace(/\n/g,"\r\n"),this.data="utf8"===this.format?s.default.str2Uint8Array(s.default.encode_utf8(e)):s.default.str2Uint8Array(e)},i.prototype.getText=function(){return s.default.decode_utf8(s.default.Uint8Array2str(this.data)).replace(/\r\n/g,"\n")},i.prototype.setBytes=function(e,t){this.format=t,this.data=e},i.prototype.getBytes=function(){return this.data},i.prototype.setFilename=function(e){this.filename=e},i.prototype.getFilename=function(){return this.filename},i.prototype.read=function(e){var t=a.default.read(a.default.literal,e[0]),r=e[1];this.filename=s.default.decode_utf8(s.default.Uint8Array2str(e.subarray(2,2+r))),this.date=s.default.readDate(e.subarray(2+r,2+r+4));var n=e.subarray(6+r,e.length);this.setBytes(n,t)},i.prototype.write=function(){var e=s.default.str2Uint8Array(s.default.encode_utf8(this.filename)),t=new Uint8Array([e.length]),r=new Uint8Array([a.default.write(a.default.literal,this.format)]),n=s.default.writeDate(this.date),i=this.getBytes();return s.default.concatUint8Array([r,t,e,n,i])}},{"../enums.js":35,"../util.js":70}],49:[function(e,t,r){"use strict";function n(){this.tag=i.default.packet.marker}Object.defineProperty(r,"__esModule",{value:!0}),r.default=n;var i=function(e){return e&&e.__esModule?e:{default:e}}(e("../enums.js"));n.prototype.read=function(e){return 80===e[0]&&71===e[1]&&80===e[2]}},{"../enums.js":35}],50:[function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function i(){this.tag=a.default.packet.onePassSignature,this.version=null,this.type=null,this.hashAlgorithm=null,this.publicKeyAlgorithm=null,this.signingKeyId=null,this.flags=null}Object.defineProperty(r,"__esModule",{value:!0}),r.default=i;var s=n(e("../util.js")),a=n(e("../enums.js")),o=n(e("../type/keyid.js"));i.prototype.read=function(e){var t=0;return this.version=e[t++],this.type=a.default.read(a.default.signature,e[t++]),this.hashAlgorithm=a.default.read(a.default.hash,e[t++]),this.publicKeyAlgorithm=a.default.read(a.default.publicKey,e[t++]),this.signingKeyId=new o.default,this.signingKeyId.read(e.subarray(t,t+8)),t+=8,this.flags=e[t++],this},i.prototype.write=function(){var e=new Uint8Array([3,a.default.write(a.default.signature,this.type),a.default.write(a.default.hash,this.hashAlgorithm),a.default.write(a.default.publicKey,this.publicKeyAlgorithm)]),t=new Uint8Array([this.flags]);return s.default.concatUint8Array([e,this.signingKeyId.write(),t])},i.prototype.postCloneTypeFix=function(){this.signingKeyId=o.default.fromClone(this.signingKeyId)}},{"../enums.js":35,"../type/keyid.js":67,"../util.js":70}],51:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=function(e){return e&&e.__esModule?e:{default:e}}(e("../util.js"));r.default={readSimpleLength:function(e){var t,r=0,i=e[0];return i<192?(r=e[0],t=1):i<255?(r=(e[0]-192<<8)+e[1]+192,t=2):255===i&&(r=n.default.readNumber(e.subarray(1,5)),t=5),{len:r,offset:t}},writeSimpleLength:function(e){return e<192?new Uint8Array([e]):e>191&&e<8384?new Uint8Array([192+(e-192>>8),e-192&255]):n.default.concatUint8Array([new Uint8Array([255]),n.default.writeNumber(e,4)])},writeHeader:function(e,t){return n.default.concatUint8Array([new Uint8Array([192|e]),this.writeSimpleLength(t)])},writeOldHeader:function(e,t){return t<256?new Uint8Array([128|e<<2,t]):t<65536?n.default.concatUint8Array([new Uint8Array([129|e<<2]),n.default.writeNumber(t,2)]):n.default.concatUint8Array([new Uint8Array([130|e<<2]),n.default.writeNumber(t,4)])},read:function(e,t,r){if(null===e||e.length<=t||e.subarray(t,e.length).length<2||0==(128&e[t]))throw new Error("Error during parsing. This message / key probably does not conform to a valid OpenPGP format.");var i,s=t,a=-1,o=-1;o=0,0!=(64&e[s])&&(o=1);var u;o?a=63&e[s]:(a=(63&e[s])>>2,u=3&e[s]),s++;var f=null,h=-1;if(o)if(e[s]<192)i=e[s++],n.default.print_debug("1 byte length:"+i);else if(e[s]>=192&&e[s]<224)i=(e[s++]-192<<8)+e[s++]+192,n.default.print_debug("2 byte length:"+i);else if(e[s]>223&&e[s]<255){i=1<<(31&e[s++]),n.default.print_debug("4 byte length:"+i);var l=s+i;f=[e.subarray(s,s+i)];for(var c;;){if(e[l]<192){i+=c=e[l++],f.push(e.subarray(l,l+c)),l+=c;break}if(e[l]>=192&&e[l]<224){i+=c=(e[l++]-192<<8)+e[l++]+192,f.push(e.subarray(l,l+c)),l+=c;break}if(!(e[l]>223&&e[l]<255)){l++,c=e[l++]<<24|e[l++]<<16|e[l++]<<8|e[l++],f.push(e.subarray(l,l+c)),i+=c,l+=c;break}i+=c=1<<(31&e[l++]),f.push(e.subarray(l,l+c)),l+=c}h=l-s}else s++,i=e[s++]<<24|e[s++]<<16|e[s++]<<8|e[s++];else switch(u){case 0:i=e[s++];break;case 1:i=e[s++]<<8|e[s++];break;case 2:i=e[s++]<<24|e[s++]<<16|e[s++]<<8|e[s++];break;default:i=r}return-1===h&&(h=i),null===f?f=e.subarray(s,s+h):f instanceof Array&&(f=n.default.concatUint8Array(f)),{tag:a,packet:f,offset:s+h}}}},{"../util.js":70}],52:[function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function i(){this.length=0}Object.defineProperty(r,"__esModule",{value:!0}),r.default=i;var s=n(e("../util")),a=n(e("./packet.js")),o=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}(e("./all_packets.js")),u=n(e("../enums.js")),f=n(e("../config"));i.prototype.read=function(e){for(var t=0;tn.length)throw new Error("Error reading MPI @:"+i);return i+6}throw new Error("Version "+this.version+" of the key packet is unsupported.")},i.prototype.readPublicKey=i.prototype.read,i.prototype.write=function(){var e=[];e.push(new Uint8Array([this.version])),e.push(s.default.writeDate(this.created)),3===this.version&&e.push(s.default.writeNumber(this.expirationTimeV3,2)),e.push(new Uint8Array([u.default.write(u.default.publicKey,this.algorithm)]));for(var t=f.default.getPublicMpiCount(this.algorithm),r=0;r0&&n<4?l=1:17===n&&(l=2);for(var c=[],d=0,p=0;pthis.created.getTime()+1e3*this.signatureExpirationTime},i.prototype.postCloneTypeFix=function(){this.issuerKeyId=l.default.fromClone(this.issuerKeyId)}},{"../crypto":24,"../enums.js":35,"../type/keyid.js":67,"../type/mpi.js":68,"../util.js":70,"./packet.js":51}],59:[function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function i(){this.tag=o.default.packet.symEncryptedAEADProtected,this.version=u,this.iv=null,this.encrypted=null,this.packets=null}Object.defineProperty(r,"__esModule",{value:!0}),r.default=i;var s=n(e("../util.js")),a=n(e("../crypto")),o=n(e("../enums.js")),u=1,f=a.default.gcm.ivLength;i.prototype.read=function(e){var t=0;if(e[t]!==u)throw new Error("Invalid packet version.");t++,this.iv=e.subarray(t,f+t),t+=f,this.encrypted=e.subarray(t,e.length)},i.prototype.write=function(){return s.default.concatUint8Array([new Uint8Array([this.version]),this.iv,this.encrypted])},i.prototype.decrypt=function(e,t){var r=this;return a.default.gcm.decrypt(e,this.encrypted,t,this.iv).then(function(e){r.packets.read(e)})},i.prototype.encrypt=function(e,t){var r=this;return this.iv=a.default.random.getRandomValues(new Uint8Array(f)),a.default.gcm.encrypt(e,this.packets.write(),t,this.iv).then(function(e){r.encrypted=e})}},{"../crypto":24,"../enums.js":35,"../util.js":70}],60:[function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function i(){this.tag=f.default.packet.symEncryptedIntegrityProtected,this.version=d,this.encrypted=null,this.modification=!1,this.packets=null}function s(e,t,r,n){return l?function(e,t,r,n){n=new c(n);var i=new c(new Uint8Array(u.default.cipher[e].blockSize)),s=new l.createCipheriv("aes-"+e.substr(3,3)+"-cfb",n,i).update(new c(o.default.concatUint8Array([t,r])));return new Uint8Array(s)}(e,t,r,n):h.default.AES_CFB.encrypt(o.default.concatUint8Array([t,r]),n)}function a(e,t,r){var n=void 0;return(n=l?function(e,t,r){t=new c(t),r=new c(r);var n=new c(new Uint8Array(u.default.cipher[e].blockSize)),i=new l.createDecipheriv("aes-"+e.substr(3,3)+"-cfb",r,n).update(t);return new Uint8Array(i)}(e,t,r):h.default.AES_CFB.decrypt(t,r)).subarray(u.default.cipher[e].blockSize+2,n.length)}Object.defineProperty(r,"__esModule",{value:!0}),r.default=i;var o=n(e("../util.js")),u=n(e("../crypto")),f=n(e("../enums.js")),h=n(e("asmcrypto-lite")),l=o.default.getNodeCrypto(),c=o.default.getNodeBuffer(),d=1;i.prototype.read=function(e){if(e[0]!==d)throw new Error("Invalid packet version.");this.encrypted=e.subarray(1,e.length)},i.prototype.write=function(){return o.default.concatUint8Array([new Uint8Array([d]),this.encrypted])},i.prototype.encrypt=function(e,t){var r=this.packets.write(),n=u.default.getPrefixRandom(e),i=new Uint8Array([n[n.length-2],n[n.length-1]]),a=o.default.concatUint8Array([n,i]),f=new Uint8Array([211,20]),h=o.default.concatUint8Array([r,f]),l=u.default.hash.sha1(o.default.concatUint8Array([a,h]));return h=o.default.concatUint8Array([h,l]),"aes"===e.substr(0,3)?this.encrypted=s(e,a,h,t):(this.encrypted=u.default.cfb.encrypt(n,e,h,t,!1),this.encrypted=this.encrypted.subarray(0,a.length+h.length)),Promise.resolve()},i.prototype.decrypt=function(e,t){var r=void 0;r="aes"===e.substr(0,3)?a(e,this.encrypted,t):u.default.cfb.decrypt(e,t,this.encrypted,!1);var n=u.default.cfb.mdc(e,t,this.encrypted),i=r.subarray(0,r.length-20),s=o.default.concatUint8Array([n,i]);this.hash=o.default.Uint8Array2str(u.default.hash.sha1(s));var f=o.default.Uint8Array2str(r.subarray(r.length-20,r.length));if(this.hash!==f)throw new Error("Modification detected.");return this.packets.read(r.subarray(0,r.length-22)),Promise.resolve()}},{"../crypto":24,"../enums.js":35,"../util.js":70,"asmcrypto-lite":1}],61:[function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function i(){this.tag=o.default.packet.symEncryptedSessionKey,this.version=4,this.sessionKey=null,this.sessionKeyEncryptionAlgorithm=null,this.sessionKeyAlgorithm="aes256",this.encrypted=null,this.s2k=new a.default}Object.defineProperty(r,"__esModule",{value:!0}),r.default=i;var s=n(e("../util.js")),a=n(e("../type/s2k.js")),o=n(e("../enums.js")),u=n(e("../crypto"));i.prototype.read=function(e){this.version=e[0];var t=o.default.read(o.default.symmetric,e[1]),r=this.s2k.read(e.subarray(2,e.length))+2;r>4)},i.prototype.read=function(e){var t=0;switch(this.type=s.default.read(s.default.s2k,e[t++]),this.algorithm=s.default.read(s.default.hash,e[t++]),this.type){case"simple":break;case"salted":this.salt=e.subarray(t,t+8),t+=8;break;case"iterated":this.salt=e.subarray(t,t+8),t+=8,this.c=e[t++];break;case"gnu":if("GNU"!==a.default.Uint8Array2str(e.subarray(t,3)))throw new Error("Unknown s2k type.");t+=3;var r=1e3+e[t++];if(1001!==r)throw new Error("Unknown s2k gnu protection mode.");this.type=r;break;default:throw new Error("Unknown s2k type.")}return t},i.prototype.write=function(){var e=[new Uint8Array([s.default.write(s.default.s2k,this.type),s.default.write(s.default.hash,this.algorithm)])];switch(this.type){case"simple":break;case"salted":e.push(this.salt);break;case"iterated":e.push(this.salt),e.push(new Uint8Array([this.c]));break;case"gnu":throw new Error("GNU s2k type not supported.");default:throw new Error("Unknown s2k type.")}return a.default.concatUint8Array(e)},i.prototype.produce_key=function(e,t){function r(t,r){var n=s.default.write(s.default.hash,r.algorithm);switch(r.type){case"simple":return o.default.hash.digest(n,a.default.concatUint8Array([t,e]));case"salted":return o.default.hash.digest(n,a.default.concatUint8Array([t,r.salt,e]));case"iterated":for(var i=[],u=r.get_count(),f=a.default.concatUint8Array([r.salt,e]);i.length*f.lengthu&&(i=i.subarray(0,u)),o.default.hash.digest(n,a.default.concatUint8Array([t,i]));case"gnu":throw new Error("GNU s2k type not supported.");default:throw new Error("Unknown s2k type.")}}e=a.default.str2Uint8Array(a.default.encode_utf8(e));for(var n=[],i=0,u=new Uint8Array(t),f=0;f()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(e)},isUserId:function(e){return!!this.isString(e)&&(/$/.test(e))},getTransferables:function(e){if(n.default.zero_copy&&Object.prototype.isPrototypeOf(e)){var t=[];return this.collectBuffers(e,t),t.length?t:void 0}},collectBuffers:function(e,t){if(e)if(this.isUint8Array(e)&&-1===t.indexOf(e.buffer))t.push(e.buffer);else if(Object.prototype.isPrototypeOf(e))for(var r in e)this.collectBuffers(e[r],t)},readNumber:function(e){for(var t=0,r=0;r>8*(t-n-1)&255;return r},readDate:function(e){var t=this.readNumber(e),r=new Date;return r.setTime(1e3*t),r},writeDate:function(e){var t=Math.round(e.getTime()/1e3);return this.writeNumber(t,4)},hexdump:function(e){for(var t,r=[],n=e.length,i=0,s=0;i=0;n--)r[n]>>=t%8,n>0&&(r[n]|=r[n-1]<<8-t%8&255);return this.bin2str(r)},get_hashAlgorithmString:function(e){switch(e){case 1:return"MD5";case 2:return"SHA1";case 3:return"RIPEMD160";case 8:return"SHA256";case 9:return"SHA384";case 10:return"SHA512";case 11:return"SHA224"}return"unknown"},getWebCrypto:function(){if(n.default.use_native)return"undefined"!=typeof window&&window.crypto&&window.crypto.subtle},getWebCryptoAll:function(){if(n.default.use_native&&"undefined"!=typeof window){if(window.crypto)return window.crypto.subtle||window.crypto.webkitSubtle;if(window.msCrypto)return window.msCrypto.subtle}},promisify:function(e){return function(){var t=arguments;return new Promise(function(r){r(e.apply(null,t))})}},promisifyIE11Op:function(e,t){return new Promise(function(r,n){e.onerror=function(){n(new Error(t))},e.oncomplete=function(e){r(e.target.result)}})},detectNode:function(){return"undefined"==typeof window},getNodeCrypto:function(){if(this.detectNode()&&n.default.use_native)return e("crypto")},getNodeBuffer:function(){if(this.detectNode())return e("buffer").Buffer}}},{"./config":10,buffer:"buffer",crypto:"crypto"}],71:[function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.path,r=void 0===t?"openpgp.worker.min.js":t,n=e.worker,i=e.config;this.worker=n||new Worker(r),this.worker.onmessage=this.onMessage.bind(this),this.worker.onerror=function(e){throw new Error("Unhandled error in openpgp worker: "+e.message+" ("+e.filename+":"+e.lineno+")")},this.seedRandom(u),i&&this.worker.postMessage({event:"configure",config:i}),this.tasks={},this.currentID=0}Object.defineProperty(r,"__esModule",{value:!0}),r.default=i;var s=n(e("../util.js")),a=n(e("../crypto")),o=n(e("../packet")),u=5e4;i.prototype.getID=function(){return this.currentID++},i.prototype.onMessage=function(e){var t=e.data;switch(t.event){case"method-return":if(t.err){var r=new Error(t.err);r.workerStack=t.stack,this.tasks[t.id].reject(r)}else this.tasks[t.id].resolve(t.data);delete this.tasks[t.id];break;case"request-seed":this.seedRandom(2e4);break;default:throw new Error("Unknown Worker Event.")}},i.prototype.seedRandom=function(e){var t=this.getRandomBuffer(e);this.worker.postMessage({event:"seed-random",buf:t},s.default.getTransferables.call(s.default,t))},i.prototype.getRandomBuffer=function(e){if(!e)return null;var t=new Uint8Array(e);return a.default.random.getRandomValues(t),t},i.prototype.terminate=function(){this.worker.terminate()},i.prototype.delegate=function(e,t){var r=this,n=this.getID();return new Promise(function(i,a){r.worker.postMessage({id:n,event:e,options:o.default.clone.clonePackets(t)},s.default.getTransferables.call(s.default,t)),r.tasks[n]={resolve:function(t){return i(o.default.clone.parseClonedPackets(t,e))},reject:a}})}},{"../crypto":24,"../packet":47,"../util.js":70}]},{},[37])(37)});
\ No newline at end of file
diff --git a/WWW/_sandbox/AESBox/openpgp.min.mjs b/WWW/_sandbox/AESBox/openpgp.min.mjs
deleted file mode 100644
index 26b471d1..00000000
--- a/WWW/_sandbox/AESBox/openpgp.min.mjs
+++ /dev/null
@@ -1,17 +0,0 @@
-/*! OpenPGP.js v5.7.0 - 2023-02-21 - this is LGPL licensed code, see LICENSE/our website https://openpgpjs.org/ for more information. */
-const e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=Symbol("doneWritingPromise"),r=Symbol("doneWritingResolve"),i=Symbol("doneWritingReject"),n=Symbol("readingIndex");class a extends Array{constructor(){super(),this[t]=new Promise(((e,t)=>{this[r]=e,this[i]=t})),this[t].catch((()=>{}))}}function s(e){return e&&e.getReader&&Array.isArray(e)}function o(e){if(!s(e)){const t=e.getWriter(),r=t.releaseLock;return t.releaseLock=()=>{t.closed.catch((function(){})),r.call(t)},t}this.stream=e}a.prototype.getReader=function(){return void 0===this[n]&&(this[n]=0),{read:async()=>(await this[t],this[n]===this.length?{value:void 0,done:!0}:{value:this[this[n]++],done:!1})}},a.prototype.readToEnd=async function(e){await this[t];const r=e(this.slice(this[n]));return this.length=0,r},a.prototype.clone=function(){const e=new a;return e[t]=this[t].then((()=>{e.push(...this)})),e},o.prototype.write=async function(e){this.stream.push(e)},o.prototype.close=async function(){this.stream[r]()},o.prototype.abort=async function(e){return this.stream[i](e),e},o.prototype.releaseLock=function(){};const c="object"==typeof e.process&&"object"==typeof e.process.versions,u=c&&void 0;function h(t){return s(t)?"array":e.ReadableStream&&e.ReadableStream.prototype.isPrototypeOf(t)?"web":k&&k.prototype.isPrototypeOf(t)?"ponyfill":u&&u.prototype.isPrototypeOf(t)?"node":!(!t||!t.getReader)&&"web-like"}function d(e){return Uint8Array.prototype.isPrototypeOf(e)}function f(e){if(1===e.length)return e[0];let t=0;for(let r=0;r{t||(l.isBuffer(i)&&(i=new Uint8Array(i.buffer,i.byteOffset,i.byteLength)),r.enqueue(i),e.pause())})),e.on("end",(()=>{t||r.close()})),e.on("error",(e=>r.error(e)))},pull(){e.resume()},cancel(r){t=!0,e.destroy(r)}})};class e extends p{constructor(e,t){super(t),this._reader=K(e)}async _read(e){try{for(;;){const{done:e,value:t}=await this._reader.read();if(e){this.push(null);break}if(!this.push(t)||this._cancelling){this._reading=!1;break}}}catch(e){this.emit("error",e)}}_destroy(e){this._reader.cancel(e)}}b=function(t,r){return new e(t,r)}}const m=new WeakSet,g=Symbol("externalBuffer");function w(e){if(this.stream=e,e[g]&&(this[g]=e[g].slice()),s(e)){const t=e.getReader();return this._read=t.read.bind(t),this._releaseLock=()=>{},void(this._cancel=()=>{})}let t=h(e);if("node"===t&&(e=y(e)),t){const t=e.getReader();return this._read=t.read.bind(t),this._releaseLock=()=>{t.closed.catch((function(){})),t.releaseLock()},void(this._cancel=t.cancel.bind(t))}let r=!1;this._read=async()=>r||m.has(e)?{value:void 0,done:!0}:(r=!0,{value:e,done:!1}),this._releaseLock=()=>{if(r)try{m.add(e)}catch(e){}}}w.prototype.read=async function(){if(this[g]&&this[g].length){return{done:!1,value:this[g].shift()}}return this._read()},w.prototype.releaseLock=function(){this[g]&&(this.stream[g]=this[g]),this._releaseLock()},w.prototype.cancel=function(e){return this._cancel(e)},w.prototype.readLine=async function(){let e,t=[];for(;!e;){let{done:r,value:i}=await this.read();if(i+="",r)return t.length?C(t):void 0;const n=i.indexOf("\n")+1;n&&(e=C(t.concat(i.substr(0,n))),t=[]),n!==i.length&&t.push(i.substr(n))}return this.unshift(...t),e},w.prototype.readByte=async function(){const{done:e,value:t}=await this.read();if(e)return;const r=t[0];return this.unshift(N(t,1)),r},w.prototype.readBytes=async function(e){const t=[];let r=0;for(;;){const{done:i,value:n}=await this.read();if(i)return t.length?C(t):void 0;if(t.push(n),r+=n.length,r>=e){const r=C(t);return this.unshift(N(r,e)),N(r,0,e)}}},w.prototype.peekBytes=async function(e){const t=await this.readBytes(e);return this.unshift(t),t},w.prototype.unshift=function(...e){this[g]||(this[g]=[]),1===e.length&&d(e[0])&&this[g].length&&e[0].length&&this[g][0].byteOffset>=e[0].length?this[g][0]=new Uint8Array(this[g][0].buffer,this[g][0].byteOffset-e[0].length,this[g][0].byteLength+e[0].length):this[g].unshift(...e.filter((e=>e&&e.length)))},w.prototype.readToEnd=async function(e=C){const t=[];for(;;){const{done:e,value:r}=await this.read();if(e)break;t.push(r)}return e(t)};let v,_,{ReadableStream:k,WritableStream:A,TransformStream:S}=e;async function E(){if(S)return;const[t,r]=await Promise.all([Promise.resolve().then((function(){return xp})),Promise.resolve().then((function(){return $p}))]);({ReadableStream:k,WritableStream:A,TransformStream:S}=t);const{createReadableStreamWrapper:i}=r;e.ReadableStream&&k!==e.ReadableStream&&(v=i(k),_=i(e.ReadableStream))}const P=c&&void 0;function x(e){let t=h(e);return"node"===t?y(e):"web"===t&&v?v(e):t?e:new k({start(t){t.enqueue(e),t.close()}})}function M(e){if(h(e))return e;const t=new a;return(async()=>{const r=D(t);await r.write(e),await r.close()})(),t}function C(e){return e.some((e=>h(e)&&!s(e)))?function(e){e=e.map(x);const t=I((async function(e){await Promise.all(i.map((t=>L(t,e))))}));let r=Promise.resolve();const i=e.map(((i,n)=>T(i,((i,a)=>(r=r.then((()=>R(i,t.writable,{preventClose:n!==e.length-1}))),r)))));return t.readable}(e):e.some((e=>s(e)))?function(e){const t=new a;let r=Promise.resolve();return e.forEach(((i,n)=>(r=r.then((()=>R(i,t,{preventClose:n!==e.length-1}))),r))),t}(e):"string"==typeof e[0]?e.join(""):P&&P.isBuffer(e[0])?P.concat(e):f(e)}function K(e){return new w(e)}function D(e){return new o(e)}async function R(e,t,{preventClose:r=!1,preventAbort:i=!1,preventCancel:n=!1}={}){if(h(e)&&!s(e)){e=x(e);try{if(e[g]){const r=D(t);for(let t=0;t{t=e})),t=null)},close:r.close.bind(r),abort:r.error.bind(r)})}}function B(e,t=(()=>{}),r=(()=>{})){if(s(e)){const i=new a;return(async()=>{const n=D(i);try{const i=await j(e),a=t(i),s=r();let o;o=void 0!==a&&void 0!==s?C([a,s]):void 0!==a?a:s,await n.write(o),await n.close()}catch(e){await n.abort(e)}})(),i}if(h(e))return U(e,{async transform(e,r){try{const i=await t(e);void 0!==i&&r.enqueue(i)}catch(e){r.error(e)}},async flush(e){try{const t=await r();void 0!==t&&e.enqueue(t)}catch(t){e.error(t)}}});const i=t(e),n=r();return void 0!==i&&void 0!==n?C([i,n]):void 0!==i?i:n}function T(e,t){if(h(e)&&!s(e)){let r;const i=new S({start(e){r=e}}),n=R(e,i.writable),a=I((async function(e){r.error(e),await n,await new Promise(setTimeout)}));return t(i.readable,a.writable),a.readable}e=M(e);const r=new a;return t(e,r),r}function z(e,t){let r;const i=T(e,((e,n)=>{const a=K(e);a.remainder=()=>(a.releaseLock(),R(e,n),i),r=t(a)}));return r}function q(e){if(s(e))return e.clone();if(h(e)){const t=function(e){if(s(e))throw Error("ArrayStream cannot be tee()d, use clone() instead");if(h(e)){const t=x(e).tee();return t[0][g]=t[1][g]=e[g],t}return[N(e),N(e)]}(e);return O(e,t[0]),t[1]}return N(e)}function F(e){return s(e)?q(e):h(e)?new k({start(t){const r=T(e,(async(e,r)=>{const i=K(e),n=D(r);try{for(;;){await n.ready;const{done:e,value:r}=await i.read();if(e){try{t.close()}catch(e){}return void await n.close()}try{t.enqueue(r)}catch(e){}await n.write(r)}}catch(e){t.error(e),await n.abort(e)}}));O(e,r)}}):N(e)}function O(e,t){Object.entries(Object.getOwnPropertyDescriptors(e.constructor.prototype)).forEach((([r,i])=>{"constructor"!==r&&(i.value?i.value=i.value.bind(t):i.get=i.get.bind(t),Object.defineProperty(e,r,i))}))}function N(e,t=0,r=1/0){if(s(e))throw Error("Not implemented");if(h(e)){if(t>=0&&r>=0){let i=0;return U(e,{transform(e,n){i=t&&n.enqueue(N(e,Math.max(t-i,0),r-i)),i+=e.length):n.terminate()}})}if(t<0&&(r<0||r===1/0)){let i=[];return B(e,(e=>{e.length>=-t?i=[e]:i.push(e)}),(()=>N(C(i),t,r)))}if(0===t&&r<0){let i;return B(e,(e=>{const n=i?C([i,e]):e;if(n.length>=-r)return i=N(n,r),N(n,t,r);i=n}))}return console.warn(`stream.slice(input, ${t}, ${r}) not implemented efficiently.`),W((async()=>N(await j(e),t,r)))}return e[g]&&(e=C(e[g].concat([e]))),!d(e)||P&&P.isBuffer(e)?e.slice(t,r):(r===1/0&&(r=e.length),e.subarray(t,r))}async function j(e,t=C){return s(e)?e.readToEnd(t):h(e)?K(e).readToEnd(t):e}async function L(e,t){if(h(e)){if(e.cancel)return e.cancel(t);if(e.destroy)return e.destroy(t),await new Promise(setTimeout),t}}function W(e){const t=new a;return(async()=>{const r=D(t);try{await r.write(await e()),await r.close()}catch(e){await r.abort(e)}})(),t}class H{constructor(e){if(void 0===e)throw Error("Invalid BigInteger input");if(e instanceof Uint8Array){const t=e,r=Array(t.length);for(let e=0;eBigInt(0);){const e=r&BigInt(1);r>>=BigInt(1);const a=n*i%t.value;n=e?a:n,i=i*i%t.value}return new H(n)}modInv(e){const{gcd:t,x:r}=this._egcd(e);if(!t.isOne())throw Error("Inverse does not exist");return r.add(e).mod(e)}_egcd(e){let t=BigInt(0),r=BigInt(1),i=BigInt(1),n=BigInt(0),a=this.value;for(e=e.value;e!==BigInt(0);){const s=a/e;let o=t;t=i-s*t,i=o,o=r,r=n-s*r,n=o,o=e,e=a%e,a=o}return{x:new H(i),y:new H(n),gcd:new H(a)}}gcd(e){let t=this.value;for(e=e.value;e!==BigInt(0);){const r=e;e=t%e,t=r}return new H(t)}ileftShift(e){return this.value<<=e.value,this}leftShift(e){return this.clone().ileftShift(e)}irightShift(e){return this.value>>=e.value,this}rightShift(e){return this.clone().irightShift(e)}equal(e){return this.value===e.value}lt(e){return this.valuee.value}gte(e){return this.value>=e.value}isZero(){return this.value===BigInt(0)}isOne(){return this.value===BigInt(1)}isNegative(){return this.valueNumber.MAX_SAFE_INTEGER)throw Error("Number can only safely store up to 53 bits");return e}getBit(e){return(this.value>>BigInt(e)&BigInt(1))===BigInt(0)?0:1}bitLength(){const e=new H(0),t=new H(1),r=new H(-1),i=this.isNegative()?r:e;let n=1;const a=this.clone();for(;!a.irightShift(t).equal(i);)n++;return n}byteLength(){const e=new H(0),t=new H(-1),r=this.isNegative()?t:e,i=new H(8);let n=1;const a=this.clone();for(;!a.irightShift(i).equal(r);)n++;return n}toUint8Array(e="be",t){let r=this.value.toString(16);r.length%2==1&&(r="0"+r);const i=r.length/2,n=new Uint8Array(t||i),a=t?t-i:0;let s=0;for(;s"undefined"!=typeof BigInt;const V=(()=>{try{return"development"===process.env.NODE_ENV}catch(e){}return!1})(),$={isString:function(e){return"string"==typeof e||e instanceof String},isArray:function(e){return e instanceof Array},isUint8Array:d,isStream:h,readNumber:function(e){let t=0;for(let r=0;r>8*(t-i-1)&255;return r},readDate:function(e){const t=$.readNumber(e);return new Date(1e3*t)},writeDate:function(e){const t=Math.floor(e.getTime()/1e3);return $.writeNumber(t,4)},normalizeDate:function(e=Date.now()){return null===e||e===1/0?e:new Date(1e3*Math.floor(+e/1e3))},readMPI:function(e){const t=(e[0]<<8|e[1])+7>>>3;return e.subarray(2,2+t)},leftPad(e,t){const r=new Uint8Array(t),i=t-e.length;return r.set(e,i),r},uint8ArrayToMPI:function(e){const t=$.uint8ArrayBitLength(e);if(0===t)throw Error("Zero MPI");const r=e.subarray(e.length-Math.ceil(t/8)),i=new Uint8Array([(65280&t)>>8,255&t]);return $.concatUint8Array([i,r])},uint8ArrayBitLength:function(e){let t;for(t=0;t>1);for(let r=0;r>1;r++)t[r]=parseInt(e.substr(r<<1,2),16);return t},uint8ArrayToHex:function(e){const t=[],r=e.length;let i,n=0;for(;n{if(!$.isString(e))throw Error("stringToUint8Array: Data must be in the form of a string");const t=new Uint8Array(e.length);for(let r=0;rr("",!0)))},decodeUTF8:function(e){const t=new TextDecoder("utf-8");function r(e,r=!1){return t.decode(e,{stream:!r})}return B(e,r,(()=>r(new Uint8Array,!0)))},concat:C,concatUint8Array:f,equalsUint8Array:function(e,t){if(!$.isUint8Array(e)||!$.isUint8Array(t))throw Error("Data must be in the form of a Uint8Array");if(e.length!==t.length)return!1;for(let r=0;r>>16;return 0!==r&&(e=r,t+=16),r=e>>8,0!==r&&(e=r,t+=8),r=e>>4,0!==r&&(e=r,t+=4),r=e>>2,0!==r&&(e=r,t+=2),r=e>>1,0!==r&&(e=r,t+=1),t},double:function(e){const t=new Uint8Array(e.length),r=e.length-1;for(let i=0;i>7;return t[r]=e[r]<<1^135*(e[0]>>7),t},shiftRight:function(e,t){if(t)for(let r=e.length-1;r>=0;r--)e[r]>>=t,r>0&&(e[r]|=e[r-1]<<8-t);return e},getWebCrypto:function(){return void 0!==e&&e.crypto&&e.crypto.subtle},getBigInteger:async function(){if(G())return H;{const{default:e}=await Promise.resolve().then((function(){return Jp}));return e}},getNodeCrypto:function(){},getNodeZlib:function(){},getNodeBuffer:function(){return{}.Buffer},getHardwareConcurrency:function(){if("undefined"!=typeof navigator)return navigator.hardwareConcurrency||1;return(void 0).cpus().length},isEmailAddress:function(e){if(!$.isString(e))return!1;return/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+([a-zA-Z]{2,}|xn--[a-zA-Z\-0-9]+)))$/.test(e)},canonicalizeEOL:function(e){let t=!1;return B(e,(e=>{let r;t&&(e=$.concatUint8Array([new Uint8Array([13]),e])),13===e[e.length-1]?(t=!0,e=e.subarray(0,-1)):t=!1;const i=[];for(let t=0;r=e.indexOf(10,t)+1,r;t=r)13!==e[r-2]&&i.push(r);if(!i.length)return e;const n=new Uint8Array(e.length+i.length);let a=0;for(let t=0;tt?new Uint8Array([13]):void 0))},nativeEOL:function(e){let t=!1;return B(e,(e=>{let r;13===(e=t&&10!==e[0]?$.concatUint8Array([new Uint8Array([13]),e]):new Uint8Array(e))[e.length-1]?(t=!0,e=e.subarray(0,-1)):t=!1;let i=0;for(let t=0;t!==e.length;t=r){r=e.indexOf(13,t)+1,r||(r=e.length);const n=r-(10===e[r]?1:0);t&&e.copyWithin(i,t,n),i+=n-t}return e.subarray(0,i)}),(()=>t?new Uint8Array([13]):void 0))},removeTrailingSpaces:function(e){return e.split("\n").map((e=>{let t=e.length-1;for(;t>=0&&(" "===e[t]||"\t"===e[t]||"\r"===e[t]);t--);return e.substr(0,t+1)})).join("\n")},wrapError:function(e,t){if(!t)return Error(e);try{t.message=e+": "+t.message}catch(e){}return t},constructAllowedPackets:function(e){const t={};return e.forEach((e=>{if(!e.tag)throw Error("Invalid input: expected a packet class");t[e.tag]=e})),t},anyPromise:function(e){return new Promise((async(t,r)=>{let i;await Promise.all(e.map((async e=>{try{t(await e)}catch(e){i=e}}))),r(i)}))},selectUint8Array:function(e,t,r){const i=Math.max(t.length,r.length),n=new Uint8Array(i);let a=0;for(let i=0;i{t=$.concatUint8Array([t,e]);const r=[],i=Math.floor(t.length/45),n=45*i,a=Y(t.subarray(0,n));for(let e=0;et.length?Y(t)+"\n":""))}function J(e){let t="";return B(e,(e=>{t+=e;let r=0;const i=[" ","\t","\r","\n"];for(let e=0;e0&&(n-r)%4!=0;n--)i.includes(t[n])&&r--;const a=X(t.substr(0,n));return t=t.substr(n),a}),(()=>X(t)))}function ee(e){return J(e.replace(/-/g,"+").replace(/_/g,"/"))}function te(e,t){let r=Q(e).replace(/[\r\n]/g,"");return t&&(r=r.replace(/[+]/g,"-").replace(/[/]/g,"_").replace(/[=]/g,"")),r}Z?(Y=e=>Z.from(e).toString("base64"),X=e=>{const t=Z.from(e,"base64");return new Uint8Array(t.buffer,t.byteOffset,t.byteLength)}):(Y=e=>btoa($.uint8ArrayToString(e)),X=e=>$.stringToUint8Array(atob(e)));const re=Symbol("byValue");var ie={curve:{p256:"p256","P-256":"p256",secp256r1:"p256",prime256v1:"p256","1.2.840.10045.3.1.7":"p256","2a8648ce3d030107":"p256","2A8648CE3D030107":"p256",p384:"p384","P-384":"p384",secp384r1:"p384","1.3.132.0.34":"p384","2b81040022":"p384","2B81040022":"p384",p521:"p521","P-521":"p521",secp521r1:"p521","1.3.132.0.35":"p521","2b81040023":"p521","2B81040023":"p521",secp256k1:"secp256k1","1.3.132.0.10":"secp256k1","2b8104000a":"secp256k1","2B8104000A":"secp256k1",ED25519:"ed25519",ed25519:"ed25519",Ed25519:"ed25519","1.3.6.1.4.1.11591.15.1":"ed25519","2b06010401da470f01":"ed25519","2B06010401DA470F01":"ed25519",X25519:"curve25519",cv25519:"curve25519",curve25519:"curve25519",Curve25519:"curve25519","1.3.6.1.4.1.3029.1.5.1":"curve25519","2b060104019755010501":"curve25519","2B060104019755010501":"curve25519",brainpoolP256r1:"brainpoolP256r1","1.3.36.3.3.2.8.1.1.7":"brainpoolP256r1","2b2403030208010107":"brainpoolP256r1","2B2403030208010107":"brainpoolP256r1",brainpoolP384r1:"brainpoolP384r1","1.3.36.3.3.2.8.1.1.11":"brainpoolP384r1","2b240303020801010b":"brainpoolP384r1","2B240303020801010B":"brainpoolP384r1",brainpoolP512r1:"brainpoolP512r1","1.3.36.3.3.2.8.1.1.13":"brainpoolP512r1","2b240303020801010d":"brainpoolP512r1","2B240303020801010D":"brainpoolP512r1"},s2k:{simple:0,salted:1,iterated:3,gnu:101},publicKey:{rsaEncryptSign:1,rsaEncrypt:2,rsaSign:3,elgamal:16,dsa:17,ecdh:18,ecdsa:19,eddsa:22,aedh:23,aedsa:24},symmetric:{plaintext:0,idea:1,tripledes:2,cast5:3,blowfish:4,aes128:7,aes192:8,aes256:9,twofish:10},compression:{uncompressed:0,zip:1,zlib:2,bzip2:3},hash:{md5:1,sha1:2,ripemd:3,sha256:8,sha384:9,sha512:10,sha224:11},webHash:{"SHA-1":2,"SHA-256":8,"SHA-384":9,"SHA-512":10},aead:{eax:1,ocb:2,experimentalGCM:100},packet:{publicKeyEncryptedSessionKey:1,signature:2,symEncryptedSessionKey:3,onePassSignature:4,secretKey:5,publicKey:6,secretSubkey:7,compressedData:8,symmetricallyEncryptedData:9,marker:10,literalData:11,trust:12,userID:13,publicSubkey:14,userAttribute:17,symEncryptedIntegrityProtectedData:18,modificationDetectionCode:19,aeadEncryptedData:20},literal:{binary:98,text:116,utf8:117,mime:109},signature:{binary:0,text:1,standalone:2,certGeneric:16,certPersona:17,certCasual:18,certPositive:19,certRevocation:48,subkeyBinding:24,keyBinding:25,key:31,keyRevocation:32,subkeyRevocation:40,timestamp:64,thirdParty:80},signatureSubpacket:{signatureCreationTime:2,signatureExpirationTime:3,exportableCertification:4,trustSignature:5,regularExpression:6,revocable:7,keyExpirationTime:9,placeholderBackwardsCompatibility:10,preferredSymmetricAlgorithms:11,revocationKey:12,issuer:16,notationData:20,preferredHashAlgorithms:21,preferredCompressionAlgorithms:22,keyServerPreferences:23,preferredKeyServer:24,primaryUserID:25,policyURI:26,keyFlags:27,signersUserID:28,reasonForRevocation:29,features:30,signatureTarget:31,embeddedSignature:32,issuerFingerprint:33,preferredAEADAlgorithms:34},keyFlags:{certifyKeys:1,signData:2,encryptCommunication:4,encryptStorage:8,splitPrivateKey:16,authentication:32,sharedPrivateKey:128},armor:{multipartSection:0,multipartLast:1,signed:2,message:3,publicKey:4,privateKey:5,signature:6},reasonForRevocation:{noReason:0,keySuperseded:1,keyCompromised:2,keyRetired:3,userIDInvalid:32},features:{modificationDetection:1,aead:2,v5Keys:4},write:function(e,t){if("number"==typeof t&&(t=this.read(e,t)),void 0!==e[t])return e[t];throw Error("Invalid enum value.")},read:function(e,t){if(e[re]||(e[re]=[],Object.entries(e).forEach((([t,r])=>{e[re][r]=t}))),void 0!==e[re][t])return e[re][t];throw Error("Invalid enum value.")}},ne={preferredHashAlgorithm:ie.hash.sha256,preferredSymmetricAlgorithm:ie.symmetric.aes256,preferredCompressionAlgorithm:ie.compression.uncompressed,deflateLevel:6,aeadProtect:!1,preferredAEADAlgorithm:ie.aead.eax,aeadChunkSizeByte:12,v5Keys:!1,s2kIterationCountByte:224,allowUnauthenticatedMessages:!1,allowUnauthenticatedStream:!1,checksumRequired:!1,minRSABits:2047,passwordCollisionCheck:!1,revocationsExpire:!1,allowInsecureDecryptionWithSigningKeys:!1,allowInsecureVerificationWithReformattedKeys:!1,constantTimePKCS1Decryption:!1,constantTimePKCS1DecryptionSupportedSymmetricAlgorithms:new Set([ie.symmetric.aes128,ie.symmetric.aes192,ie.symmetric.aes256]),minBytesForWebCrypto:1e3,ignoreUnsupportedPackets:!0,ignoreMalformedPackets:!1,showVersion:!1,showComment:!1,versionString:"OpenPGP.js 5.7.0",commentString:"https://openpgpjs.org",maxUserIDLength:5120,knownNotations:[],useIndutnyElliptic:!0,rejectHashAlgorithms:new Set([ie.hash.md5,ie.hash.ripemd]),rejectMessageHashAlgorithms:new Set([ie.hash.md5,ie.hash.ripemd,ie.hash.sha1]),rejectPublicKeyAlgorithms:new Set([ie.publicKey.elgamal,ie.publicKey.dsa]),rejectCurves:new Set([ie.curve.secp256k1])};function ae(e){const t=e.match(/^-----BEGIN PGP (MESSAGE, PART \d+\/\d+|MESSAGE, PART \d+|SIGNED MESSAGE|MESSAGE|PUBLIC KEY BLOCK|PRIVATE KEY BLOCK|SIGNATURE)-----$/m);if(!t)throw Error("Unknown ASCII armor type");return/MESSAGE, PART \d+\/\d+/.test(t[1])?ie.armor.multipartSection:/MESSAGE, PART \d+/.test(t[1])?ie.armor.multipartLast:/SIGNED MESSAGE/.test(t[1])?ie.armor.signed:/MESSAGE/.test(t[1])?ie.armor.message:/PUBLIC KEY BLOCK/.test(t[1])?ie.armor.publicKey:/PRIVATE KEY BLOCK/.test(t[1])?ie.armor.privateKey:/SIGNATURE/.test(t[1])?ie.armor.signature:void 0}function se(e,t){let r="";return t.showVersion&&(r+="Version: "+t.versionString+"\n"),t.showComment&&(r+="Comment: "+t.commentString+"\n"),e&&(r+="Comment: "+e+"\n"),r+="\n",r}function oe(e){return Q(function(e){let t=13501623;return B(e,(e=>{const r=ue?Math.floor(e.length/4):0,i=new Uint32Array(e.buffer,e.byteOffset,r);for(let e=0;e>24&255]^ce[1][t>>16&255]^ce[2][t>>8&255]^ce[3][t>>0&255];for(let i=4*r;i>8^ce[0][255&t^e[i]]}),(()=>new Uint8Array([t,t>>8,t>>16])))}(e))}const ce=[Array(255),Array(255),Array(255),Array(255)];for(let e=0;e<=255;e++){let t=e<<16;for(let e=0;e<8;e++)t=t<<1^(0!=(8388608&t)?8801531:0);ce[0][e]=(16711680&t)>>16|65280&t|(255&t)<<16}for(let e=0;e<=255;e++)ce[1][e]=ce[0][e]>>8^ce[0][255&ce[0][e]];for(let e=0;e<=255;e++)ce[2][e]=ce[1][e]>>8^ce[0][255&ce[1][e]];for(let e=0;e<=255;e++)ce[3][e]=ce[2][e]>>8^ce[0][255&ce[2][e]];const ue=function(){const e=new ArrayBuffer(2);return new DataView(e).setInt16(0,255,!0),255===new Int16Array(e)[0]}();function he(e){for(let t=0;t=0&&i!==e.length-1&&(t=e.slice(0,i),r=e.slice(i+1).substr(0,4)),{body:t,checksum:r}}function fe(e,t=ne){return new Promise((async(r,i)=>{try{const n=/^-----[^-]+-----$/m,a=/^[ \f\r\t\u00a0\u2000-\u200a\u202f\u205f\u3000]*$/;let s;const o=[];let c,u,h,d=o,f=[],l=J(T(e,(async(e,t)=>{const p=K(e);try{for(;;){let e=await p.readLine();if(void 0===e)throw Error("Misformed armored text");if(e=$.removeTrailingSpaces(e.replace(/[\r\n]/g,"")),s)if(c)u||2!==s||(n.test(e)?(f=f.join("\r\n"),u=!0,he(d),d=[],c=!1):f.push(e.replace(/^- /,"")));else if(n.test(e)&&i(Error("Mandatory blank line missing between armor headers and armor data")),a.test(e)){if(he(d),c=!0,u||2!==s){r({text:f,data:l,headers:o,type:s});break}}else d.push(e);else n.test(e)&&(s=ae(e))}}catch(e){return void i(e)}const y=D(t);try{for(;;){await y.ready;const{done:e,value:t}=await p.read();if(e)throw Error("Misformed armored text");const r=t+"";if(-1!==r.indexOf("=")||-1!==r.indexOf("-")){let e=await p.readToEnd();e.length||(e=""),e=r+e,e=$.removeTrailingSpaces(e.replace(/\r/g,""));const t=e.split(n);if(1===t.length)throw Error("Misformed armored text");const i=de(t[0].slice(0,-1));h=i.checksum,await y.write(i.body);break}await y.write(r)}await y.ready,await y.close()}catch(e){await y.abort(e)}})));l=T(l,(async(e,r)=>{const i=j(oe(F(e)));i.catch((()=>{})),await R(e,r,{preventClose:!0});const n=D(r);try{const e=(await i).replace("\n","");if(h!==e&&(h||t.checksumRequired))throw Error("Ascii armor integrity check failed");await n.ready,await n.close()}catch(e){await n.abort(e)}}))}catch(e){i(e)}})).then((async e=>(s(e.data)&&(e.data=await j(e.data)),e)))}function le(e,t,r,i,n,a=ne){let s,o;e===ie.armor.signed&&(s=t.text,o=t.hash,t=t.data);const c=F(t),u=[];switch(e){case ie.armor.multipartSection:u.push("-----BEGIN PGP MESSAGE, PART "+r+"/"+i+"-----\n"),u.push(se(n,a)),u.push(Q(t)),u.push("=",oe(c)),u.push("-----END PGP MESSAGE, PART "+r+"/"+i+"-----\n");break;case ie.armor.multipartLast:u.push("-----BEGIN PGP MESSAGE, PART "+r+"-----\n"),u.push(se(n,a)),u.push(Q(t)),u.push("=",oe(c)),u.push("-----END PGP MESSAGE, PART "+r+"-----\n");break;case ie.armor.signed:u.push("-----BEGIN PGP SIGNED MESSAGE-----\n"),u.push("Hash: "+o+"\n\n"),u.push(s.replace(/^-/gm,"- -")),u.push("\n-----BEGIN PGP SIGNATURE-----\n"),u.push(se(n,a)),u.push(Q(t)),u.push("=",oe(c)),u.push("-----END PGP SIGNATURE-----\n");break;case ie.armor.message:u.push("-----BEGIN PGP MESSAGE-----\n"),u.push(se(n,a)),u.push(Q(t)),u.push("=",oe(c)),u.push("-----END PGP MESSAGE-----\n");break;case ie.armor.publicKey:u.push("-----BEGIN PGP PUBLIC KEY BLOCK-----\n"),u.push(se(n,a)),u.push(Q(t)),u.push("=",oe(c)),u.push("-----END PGP PUBLIC KEY BLOCK-----\n");break;case ie.armor.privateKey:u.push("-----BEGIN PGP PRIVATE KEY BLOCK-----\n"),u.push(se(n,a)),u.push(Q(t)),u.push("=",oe(c)),u.push("-----END PGP PRIVATE KEY BLOCK-----\n");break;case ie.armor.signature:u.push("-----BEGIN PGP SIGNATURE-----\n"),u.push(se(n,a)),u.push(Q(t)),u.push("=",oe(c)),u.push("-----END PGP SIGNATURE-----\n")}return $.concat(u)}class pe{constructor(){this.bytes=""}read(e){this.bytes=$.uint8ArrayToString(e.subarray(0,8))}write(){return $.stringToUint8Array(this.bytes)}toHex(){return $.uint8ArrayToHex($.stringToUint8Array(this.bytes))}equals(e,t=!1){return t&&(e.isWildcard()||this.isWildcard())||this.bytes===e.bytes}isNull(){return""===this.bytes}isWildcard(){return/^0+$/.test(this.toHex())}static mapToHex(e){return e.toHex()}static fromID(e){const t=new pe;return t.read($.hexToUint8Array(e)),t}static wildcard(){const e=new pe;return e.read(new Uint8Array(8)),e}}var ye=function(){var e,t,r=!1;function i(r,i){var n=e[(t[r]+t[i])%255];return 0!==r&&0!==i||(n=0),n}var n,a,s,o,c=!1;function u(){function u(r){var i,n,a;for(n=a=function(r){var i=e[255-t[r]];return 0===r&&(i=0),i}(r),i=0;i<4;i++)a^=n=255&(n<<1|n>>>7);return a^=99}r||function(){e=[],t=[];var i,n,a=1;for(i=0;i<255;i++)e[i]=a,n=128&a,a<<=1,a&=255,128===n&&(a^=27),a^=e[i],t[e[i]]=i;e[255]=e[0],t[0]=0,r=!0}(),n=[],a=[],s=[[],[],[],[]],o=[[],[],[],[]];for(var h=0;h<256;h++){var d=u(h);n[h]=d,a[d]=h,s[0][h]=i(2,d)<<24|d<<16|d<<8|i(3,d),o[0][d]=i(14,h)<<24|i(9,h)<<16|i(13,h)<<8|i(11,h);for(var f=1;f<4;f++)s[f][h]=s[f-1][h]>>>8|s[f-1][h]<<24,o[f][d]=o[f-1][d]>>>8|o[f-1][d]<<24}c=!0}var h=function(e,t){c||u();var r=new Uint32Array(t);r.set(n,512),r.set(a,768);for(var i=0;i<4;i++)r.set(s[i],4096+1024*i>>2),r.set(o[i],8192+1024*i>>2);var h=function(e,t,r){"use asm";var i=0,n=0,a=0,s=0,o=0,c=0,u=0,h=0,d=0,f=0,l=0,p=0,y=0,b=0,m=0,g=0,w=0,v=0,_=0,k=0,A=0;var S=new e.Uint32Array(r),E=new e.Uint8Array(r);function P(e,t,r,o,c,u,h,d){e=e|0;t=t|0;r=r|0;o=o|0;c=c|0;u=u|0;h=h|0;d=d|0;var f=0,l=0,p=0,y=0,b=0,m=0,g=0,w=0;f=r|0x400,l=r|0x800,p=r|0xc00;c=c^S[(e|0)>>2],u=u^S[(e|4)>>2],h=h^S[(e|8)>>2],d=d^S[(e|12)>>2];for(w=16;(w|0)<=o<<4;w=w+16|0){y=S[(r|c>>22&1020)>>2]^S[(f|u>>14&1020)>>2]^S[(l|h>>6&1020)>>2]^S[(p|d<<2&1020)>>2]^S[(e|w|0)>>2],b=S[(r|u>>22&1020)>>2]^S[(f|h>>14&1020)>>2]^S[(l|d>>6&1020)>>2]^S[(p|c<<2&1020)>>2]^S[(e|w|4)>>2],m=S[(r|h>>22&1020)>>2]^S[(f|d>>14&1020)>>2]^S[(l|c>>6&1020)>>2]^S[(p|u<<2&1020)>>2]^S[(e|w|8)>>2],g=S[(r|d>>22&1020)>>2]^S[(f|c>>14&1020)>>2]^S[(l|u>>6&1020)>>2]^S[(p|h<<2&1020)>>2]^S[(e|w|12)>>2];c=y,u=b,h=m,d=g}i=S[(t|c>>22&1020)>>2]<<24^S[(t|u>>14&1020)>>2]<<16^S[(t|h>>6&1020)>>2]<<8^S[(t|d<<2&1020)>>2]^S[(e|w|0)>>2],n=S[(t|u>>22&1020)>>2]<<24^S[(t|h>>14&1020)>>2]<<16^S[(t|d>>6&1020)>>2]<<8^S[(t|c<<2&1020)>>2]^S[(e|w|4)>>2],a=S[(t|h>>22&1020)>>2]<<24^S[(t|d>>14&1020)>>2]<<16^S[(t|c>>6&1020)>>2]<<8^S[(t|u<<2&1020)>>2]^S[(e|w|8)>>2],s=S[(t|d>>22&1020)>>2]<<24^S[(t|c>>14&1020)>>2]<<16^S[(t|u>>6&1020)>>2]<<8^S[(t|h<<2&1020)>>2]^S[(e|w|12)>>2]}function x(e,t,r,i){e=e|0;t=t|0;r=r|0;i=i|0;P(0x0000,0x0800,0x1000,A,e,t,r,i)}function M(e,t,r,i){e=e|0;t=t|0;r=r|0;i=i|0;var a=0;P(0x0400,0x0c00,0x2000,A,e,i,r,t);a=n,n=s,s=a}function C(e,t,r,d){e=e|0;t=t|0;r=r|0;d=d|0;P(0x0000,0x0800,0x1000,A,o^e,c^t,u^r,h^d);o=i,c=n,u=a,h=s}function K(e,t,r,d){e=e|0;t=t|0;r=r|0;d=d|0;var f=0;P(0x0400,0x0c00,0x2000,A,e,d,r,t);f=n,n=s,s=f;i=i^o,n=n^c,a=a^u,s=s^h;o=e,c=t,u=r,h=d}function D(e,t,r,d){e=e|0;t=t|0;r=r|0;d=d|0;P(0x0000,0x0800,0x1000,A,o,c,u,h);o=i=i^e,c=n=n^t,u=a=a^r,h=s=s^d}function R(e,t,r,d){e=e|0;t=t|0;r=r|0;d=d|0;P(0x0000,0x0800,0x1000,A,o,c,u,h);i=i^e,n=n^t,a=a^r,s=s^d;o=e,c=t,u=r,h=d}function U(e,t,r,d){e=e|0;t=t|0;r=r|0;d=d|0;P(0x0000,0x0800,0x1000,A,o,c,u,h);o=i,c=n,u=a,h=s;i=i^e,n=n^t,a=a^r,s=s^d}function I(e,t,r,o){e=e|0;t=t|0;r=r|0;o=o|0;P(0x0000,0x0800,0x1000,A,d,f,l,p);p=~g&p|g&p+1;l=~m&l|m&l+((p|0)==0);f=~b&f|b&f+((l|0)==0);d=~y&d|y&d+((f|0)==0);i=i^e;n=n^t;a=a^r;s=s^o}function B(e,t,r,i){e=e|0;t=t|0;r=r|0;i=i|0;var n=0,a=0,s=0,d=0,f=0,l=0,p=0,y=0,b=0,m=0;e=e^o,t=t^c,r=r^u,i=i^h;n=w|0,a=v|0,s=_|0,d=k|0;for(;(b|0)<128;b=b+1|0){if(n>>>31){f=f^e,l=l^t,p=p^r,y=y^i}n=n<<1|a>>>31,a=a<<1|s>>>31,s=s<<1|d>>>31,d=d<<1;m=i&1;i=i>>>1|r<<31,r=r>>>1|t<<31,t=t>>>1|e<<31,e=e>>>1;if(m)e=e^0xe1000000}o=f,c=l,u=p,h=y}function T(e){e=e|0;A=e}function z(e,t,r,o){e=e|0;t=t|0;r=r|0;o=o|0;i=e,n=t,a=r,s=o}function q(e,t,r,i){e=e|0;t=t|0;r=r|0;i=i|0;o=e,c=t,u=r,h=i}function F(e,t,r,i){e=e|0;t=t|0;r=r|0;i=i|0;d=e,f=t,l=r,p=i}function O(e,t,r,i){e=e|0;t=t|0;r=r|0;i=i|0;y=e,b=t,m=r,g=i}function N(e,t,r,i){e=e|0;t=t|0;r=r|0;i=i|0;p=~g&p|g&i,l=~m&l|m&r,f=~b&f|b&t,d=~y&d|y&e}function j(e){e=e|0;if(e&15)return-1;E[e|0]=i>>>24,E[e|1]=i>>>16&255,E[e|2]=i>>>8&255,E[e|3]=i&255,E[e|4]=n>>>24,E[e|5]=n>>>16&255,E[e|6]=n>>>8&255,E[e|7]=n&255,E[e|8]=a>>>24,E[e|9]=a>>>16&255,E[e|10]=a>>>8&255,E[e|11]=a&255,E[e|12]=s>>>24,E[e|13]=s>>>16&255,E[e|14]=s>>>8&255,E[e|15]=s&255;return 16}function L(e){e=e|0;if(e&15)return-1;E[e|0]=o>>>24,E[e|1]=o>>>16&255,E[e|2]=o>>>8&255,E[e|3]=o&255,E[e|4]=c>>>24,E[e|5]=c>>>16&255,E[e|6]=c>>>8&255,E[e|7]=c&255,E[e|8]=u>>>24,E[e|9]=u>>>16&255,E[e|10]=u>>>8&255,E[e|11]=u&255,E[e|12]=h>>>24,E[e|13]=h>>>16&255,E[e|14]=h>>>8&255,E[e|15]=h&255;return 16}function W(){x(0,0,0,0);w=i,v=n,_=a,k=s}function H(e,t,r){e=e|0;t=t|0;r=r|0;var o=0;if(t&15)return-1;while((r|0)>=16){V[e&7](E[t|0]<<24|E[t|1]<<16|E[t|2]<<8|E[t|3],E[t|4]<<24|E[t|5]<<16|E[t|6]<<8|E[t|7],E[t|8]<<24|E[t|9]<<16|E[t|10]<<8|E[t|11],E[t|12]<<24|E[t|13]<<16|E[t|14]<<8|E[t|15]);E[t|0]=i>>>24,E[t|1]=i>>>16&255,E[t|2]=i>>>8&255,E[t|3]=i&255,E[t|4]=n>>>24,E[t|5]=n>>>16&255,E[t|6]=n>>>8&255,E[t|7]=n&255,E[t|8]=a>>>24,E[t|9]=a>>>16&255,E[t|10]=a>>>8&255,E[t|11]=a&255,E[t|12]=s>>>24,E[t|13]=s>>>16&255,E[t|14]=s>>>8&255,E[t|15]=s&255;o=o+16|0,t=t+16|0,r=r-16|0}return o|0}function G(e,t,r){e=e|0;t=t|0;r=r|0;var i=0;if(t&15)return-1;while((r|0)>=16){$[e&1](E[t|0]<<24|E[t|1]<<16|E[t|2]<<8|E[t|3],E[t|4]<<24|E[t|5]<<16|E[t|6]<<8|E[t|7],E[t|8]<<24|E[t|9]<<16|E[t|10]<<8|E[t|11],E[t|12]<<24|E[t|13]<<16|E[t|14]<<8|E[t|15]);i=i+16|0,t=t+16|0,r=r-16|0}return i|0}var V=[x,M,C,K,D,R,U,I];var $=[C,B];return{set_rounds:T,set_state:z,set_iv:q,set_nonce:F,set_mask:O,set_counter:N,get_state:j,get_iv:L,gcm_init:W,cipher:H,mac:G}}({Uint8Array,Uint32Array},e,t);return h.set_key=function(e,t,i,a,s,c,u,d,f){var l=r.subarray(0,60),p=r.subarray(256,316);l.set([t,i,a,s,c,u,d,f]);for(var y=e,b=1;y<4*e+28;y++){var m=l[y-1];(y%e==0||8===e&&y%e==4)&&(m=n[m>>>24]<<24^n[m>>>16&255]<<16^n[m>>>8&255]<<8^n[255&m]),y%e==0&&(m=m<<8^m>>>24^b<<24,b=b<<1^(128&b?27:0)),l[y]=l[y-e]^m}for(var g=0;g=y-4?m:o[0][n[m>>>24]]^o[1][n[m>>>16&255]]^o[2][n[m>>>8&255]]^o[3][n[255&m]]}h.set_rounds(e+5)},h};return h.ENC={ECB:0,CBC:2,CFB:4,OFB:6,CTR:7},h.DEC={ECB:1,CBC:3,CFB:5,OFB:6,CTR:7},h.MAC={CBC:0,GCM:1},h.HEAP_DATA=16384,h}();function be(e){return e instanceof Uint8Array}function me(e,t){const r=e?e.byteLength:t||65536;if(4095&r||r<=0)throw Error("heap size must be a positive integer and a multiple of 4096");return e=e||new Uint8Array(new ArrayBuffer(r))}function ge(e,t,r,i,n){const a=e.length-t,s=ae+t.length),0),r=new Uint8Array(t);let i=0;for(let t=0;t>2,n.getUint32(0),n.getUint32(4),n.getUint32(8),n.getUint32(12),i>16?n.getUint32(16):0,i>16?n.getUint32(20):0,i>24?n.getUint32(24):0,i>24?n.getUint32(28):0),void 0!==t){if(16!==t.length)throw new _e("illegal iv size");let e=new DataView(t.buffer,t.byteOffset,t.byteLength);r.set_iv(e.getUint32(0),e.getUint32(4),e.getUint32(8),e.getUint32(12))}else r.set_iv(0,0,0,0)}AES_Encrypt_process(e){if(!be(e))throw new TypeError("data isn't of expected type");let{heap:t,asm:r}=this.acquire_asm(),i=ye.ENC[this.mode],n=ye.HEAP_DATA,a=this.pos,s=this.len,o=0,c=e.length||0,u=0,h=0,d=new Uint8Array(s+c&-16);for(;c>0;)h=ge(t,a+s,e,o,c),s+=h,o+=h,c-=h,h=r.cipher(i,n+a,s),h&&d.set(t.subarray(a,a+h),u),u+=h,h0;)f=ge(t,a+s,e,o,c),s+=f,o+=f,c-=f,f=r.cipher(i,n+a,s-(c?0:d)),f&&l.set(t.subarray(a,a+f),u),u+=f,f0){if(a%16){if(this.hasOwnProperty("padding"))throw new _e("data length must be a multiple of the block size");a+=16-a%16}if(t.cipher(r,i+n,a),this.hasOwnProperty("padding")&&this.padding){let t=e[n+s-1];if(t<1||t>16||t>s)throw new ke("bad padding");let r=0;for(let i=t;i>1;i--)r|=t^e[n+s-i];if(r)throw new ke("bad padding");s-=t}}const o=new Uint8Array(s);return s>0&&o.set(e.subarray(n,n+s)),this.pos=0,this.len=0,this.release_asm(),o}}class Pe{static encrypt(e,t,r=!1){return new Pe(t,r).encrypt(e)}static decrypt(e,t,r=!1){return new Pe(t,r).decrypt(e)}constructor(e,t=!1,r){this.aes=r||new Ee(e,void 0,t,"ECB")}encrypt(e){return we(this.aes.AES_Encrypt_process(e),this.aes.AES_Encrypt_finish())}decrypt(e){return we(this.aes.AES_Decrypt_process(e),this.aes.AES_Decrypt_finish())}}function xe(e){const t=function(e){const t=new Pe(e);this.encrypt=function(e){return t.encrypt(e)},this.decrypt=function(e){return t.decrypt(e)}};return t.blockSize=t.prototype.blockSize=16,t.keySize=t.prototype.keySize=e/8,t}function Me(e,t,r,i,n,a){const s=[16843776,0,65536,16843780,16842756,66564,4,65536,1024,16843776,16843780,1024,16778244,16842756,16777216,4,1028,16778240,16778240,66560,66560,16842752,16842752,16778244,65540,16777220,16777220,65540,0,1028,66564,16777216,65536,16843780,4,16842752,16843776,16777216,16777216,1024,16842756,65536,66560,16777220,1024,4,16778244,66564,16843780,65540,16842752,16778244,16777220,1028,66564,16843776,1028,16778240,16778240,0,65540,66560,0,16842756],o=[-2146402272,-2147450880,32768,1081376,1048576,32,-2146435040,-2147450848,-2147483616,-2146402272,-2146402304,-2147483648,-2147450880,1048576,32,-2146435040,1081344,1048608,-2147450848,0,-2147483648,32768,1081376,-2146435072,1048608,-2147483616,0,1081344,32800,-2146402304,-2146435072,32800,0,1081376,-2146435040,1048576,-2147450848,-2146435072,-2146402304,32768,-2146435072,-2147450880,32,-2146402272,1081376,32,32768,-2147483648,32800,-2146402304,1048576,-2147483616,1048608,-2147450848,-2147483616,1048608,1081344,0,-2147450880,32800,-2147483648,-2146435040,-2146402272,1081344],c=[520,134349312,0,134348808,134218240,0,131592,134218240,131080,134217736,134217736,131072,134349320,131080,134348800,520,134217728,8,134349312,512,131584,134348800,134348808,131592,134218248,131584,131072,134218248,8,134349320,512,134217728,134349312,134217728,131080,520,131072,134349312,134218240,0,512,131080,134349320,134218240,134217736,512,0,134348808,134218248,131072,134217728,134349320,8,131592,131584,134217736,134348800,134218248,520,134348800,131592,8,134348808,131584],u=[8396801,8321,8321,128,8396928,8388737,8388609,8193,0,8396800,8396800,8396929,129,0,8388736,8388609,1,8192,8388608,8396801,128,8388608,8193,8320,8388737,1,8320,8388736,8192,8396928,8396929,129,8388736,8388609,8396800,8396929,129,0,0,8396800,8320,8388736,8388737,1,8396801,8321,8321,128,8396929,129,1,8192,8388609,8193,8396928,8388737,8193,8320,8388608,8396801,128,8388608,8192,8396928],h=[256,34078976,34078720,1107296512,524288,256,1073741824,34078720,1074266368,524288,33554688,1074266368,1107296512,1107820544,524544,1073741824,33554432,1074266112,1074266112,0,1073742080,1107820800,1107820800,33554688,1107820544,1073742080,0,1107296256,34078976,33554432,1107296256,524544,524288,1107296512,256,33554432,1073741824,34078720,1107296512,1074266368,33554688,1073741824,1107820544,34078976,1074266368,256,33554432,1107820544,1107820800,524544,1107296256,1107820800,34078720,0,1074266112,1107296256,524544,33554688,1073742080,524288,0,1074266112,34078976,1073742080],d=[536870928,541065216,16384,541081616,541065216,16,541081616,4194304,536887296,4210704,4194304,536870928,4194320,536887296,536870912,16400,0,4194320,536887312,16384,4210688,536887312,16,541065232,541065232,0,4210704,541081600,16400,4210688,541081600,536870912,536887296,16,541065232,4210688,541081616,4194304,16400,536870928,4194304,536887296,536870912,16400,536870928,541081616,4210688,541065216,4210704,541081600,0,541065232,16,16384,541065216,4210704,16384,4194320,536887312,0,541081600,536870912,4194320,536887312],f=[2097152,69206018,67110914,0,2048,67110914,2099202,69208064,69208066,2097152,0,67108866,2,67108864,69206018,2050,67110912,2099202,2097154,67110912,67108866,69206016,69208064,2097154,69206016,2048,2050,69208066,2099200,2,67108864,2099200,67108864,2099200,2097152,67110914,67110914,69206018,69206018,2,2097154,67108864,67110912,2097152,69208064,2050,2099202,69208064,2050,67108866,69208066,69206016,2099200,0,2,69208066,0,2099202,69206016,2048,67108866,67110912,2048,2097154],l=[268439616,4096,262144,268701760,268435456,268439616,64,268435456,262208,268697600,268701760,266240,268701696,266304,4096,64,268697600,268435520,268439552,4160,266240,262208,268697664,268701696,4160,0,0,268697664,268435520,268439552,266304,262144,266304,262144,268701696,4096,64,268697664,4096,266304,268439552,64,268435520,268697600,268697664,268435456,262144,268439616,0,268701760,262208,268435520,268697600,268439552,268439616,0,268701760,266240,266240,4160,4160,262208,268435456,268701696];let p,y,b,m,g,w,v,_,k,A,S,E,P,x,M=0,C=t.length;const K=32===e.length?3:9;_=3===K?r?[0,32,2]:[30,-2,-2]:r?[0,32,2,62,30,-2,64,96,2]:[94,62,-2,32,64,2,30,-2,-2],r&&(t=function(e,t){const r=8-e.length%8;let i;if(2===t&&r<8)i=32;else if(1===t)i=r;else{if(t||!(r<8)){if(8===r)return e;throw Error("des: invalid padding")}i=0}const n=new Uint8Array(e.length+r);for(let t=0;t>>4^v),v^=b,w^=b<<4,b=65535&(w>>>16^v),v^=b,w^=b<<16,b=858993459&(v>>>2^w),w^=b,v^=b<<2,b=16711935&(v>>>8^w),w^=b,v^=b<<8,b=1431655765&(w>>>1^v),v^=b,w^=b<<1,w=w<<1|w>>>31,v=v<<1|v>>>31,y=0;y>>4|v<<28)^e[p+1],b=w,w=v,v=b^(o[m>>>24&63]|u[m>>>16&63]|d[m>>>8&63]|l[63&m]|s[g>>>24&63]|c[g>>>16&63]|h[g>>>8&63]|f[63&g]);b=w,w=v,v=b}w=w>>>1|w<<31,v=v>>>1|v<<31,b=1431655765&(w>>>1^v),v^=b,w^=b<<1,b=16711935&(v>>>8^w),w^=b,v^=b<<8,b=858993459&(v>>>2^w),w^=b,v^=b<<2,b=65535&(w>>>16^v),v^=b,w^=b<<16,b=252645135&(w>>>4^v),v^=b,w^=b<<4,1===i&&(r?(k=w,S=v):(w^=A,v^=E)),D[R++]=w>>>24,D[R++]=w>>>16&255,D[R++]=w>>>8&255,D[R++]=255&w,D[R++]=v>>>24,D[R++]=v>>>16&255,D[R++]=v>>>8&255,D[R++]=255&v}return r||(D=function(e,t){let r,i=null;if(2===t)r=32;else if(1===t)i=e[e.length-1];else{if(t)throw Error("des: invalid padding");r=0}if(!i){for(i=1;e[e.length-i]===r;)i++;i--}return e.subarray(0,e.length-i)}(D,a)),D}function Ce(e){const t=[0,4,536870912,536870916,65536,65540,536936448,536936452,512,516,536871424,536871428,66048,66052,536936960,536936964],r=[0,1,1048576,1048577,67108864,67108865,68157440,68157441,256,257,1048832,1048833,67109120,67109121,68157696,68157697],i=[0,8,2048,2056,16777216,16777224,16779264,16779272,0,8,2048,2056,16777216,16777224,16779264,16779272],n=[0,2097152,134217728,136314880,8192,2105344,134225920,136323072,131072,2228224,134348800,136445952,139264,2236416,134356992,136454144],a=[0,262144,16,262160,0,262144,16,262160,4096,266240,4112,266256,4096,266240,4112,266256],s=[0,1024,32,1056,0,1024,32,1056,33554432,33555456,33554464,33555488,33554432,33555456,33554464,33555488],o=[0,268435456,524288,268959744,2,268435458,524290,268959746,0,268435456,524288,268959744,2,268435458,524290,268959746],c=[0,65536,2048,67584,536870912,536936448,536872960,536938496,131072,196608,133120,198656,537001984,537067520,537004032,537069568],u=[0,262144,0,262144,2,262146,2,262146,33554432,33816576,33554432,33816576,33554434,33816578,33554434,33816578],h=[0,268435456,8,268435464,0,268435456,8,268435464,1024,268436480,1032,268436488,1024,268436480,1032,268436488],d=[0,32,0,32,1048576,1048608,1048576,1048608,8192,8224,8192,8224,1056768,1056800,1056768,1056800],f=[0,16777216,512,16777728,2097152,18874368,2097664,18874880,67108864,83886080,67109376,83886592,69206016,85983232,69206528,85983744],l=[0,4096,134217728,134221824,524288,528384,134742016,134746112,16,4112,134217744,134221840,524304,528400,134742032,134746128],p=[0,4,256,260,0,4,256,260,1,5,257,261,1,5,257,261],y=e.length>8?3:1,b=Array(32*y),m=[0,0,1,1,1,1,1,1,0,1,1,1,1,1,1,0];let g,w,v,_=0,k=0;for(let A=0;A>>4^A),A^=v,y^=v<<4,v=65535&(A>>>-16^y),y^=v,A^=v<<-16,v=858993459&(y>>>2^A),A^=v,y^=v<<2,v=65535&(A>>>-16^y),y^=v,A^=v<<-16,v=1431655765&(y>>>1^A),A^=v,y^=v<<1,v=16711935&(A>>>8^y),y^=v,A^=v<<8,v=1431655765&(y>>>1^A),A^=v,y^=v<<1,v=y<<8|A>>>20&240,y=A<<24|A<<8&16711680|A>>>8&65280|A>>>24&240,A=v;for(let e=0;e<16;e++)m[e]?(y=y<<2|y>>>26,A=A<<2|A>>>26):(y=y<<1|y>>>27,A=A<<1|A>>>27),y&=-15,A&=-15,g=t[y>>>28]|r[y>>>24&15]|i[y>>>20&15]|n[y>>>16&15]|a[y>>>12&15]|s[y>>>8&15]|o[y>>>4&15],w=c[A>>>28]|u[A>>>24&15]|h[A>>>20&15]|d[A>>>16&15]|f[A>>>12&15]|l[A>>>8&15]|p[A>>>4&15],v=65535&(w>>>16^g),b[k++]=g^v,b[k++]=w^v<<16}return b}function Ke(e){this.key=[];for(let t=0;t<3;t++)this.key.push(new Uint8Array(e.subarray(8*t,8*t+8)));this.encrypt=function(e){return Me(Ce(this.key[2]),Me(Ce(this.key[1]),Me(Ce(this.key[0]),e,!0,0,null,null),!1,0,null,null),!0,0,null,null)}}function De(){this.BlockSize=8,this.KeySize=16,this.setKey=function(e){if(this.masking=Array(16),this.rotate=Array(16),this.reset(),e.length!==this.KeySize)throw Error("CAST-128: keys must be 16 bytes");return this.keySchedule(e),!0},this.reset=function(){for(let e=0;e<16;e++)this.masking[e]=0,this.rotate[e]=0},this.getBlockSize=function(){return this.BlockSize},this.encrypt=function(e){const t=Array(e.length);for(let a=0;a>>24&255,t[a+1]=c>>>16&255,t[a+2]=c>>>8&255,t[a+3]=255&c,t[a+4]=o>>>24&255,t[a+5]=o>>>16&255,t[a+6]=o>>>8&255,t[a+7]=255&o}return t},this.decrypt=function(e){const t=Array(e.length);for(let a=0;a>>24&255,t[a+1]=c>>>16&255,t[a+2]=c>>>8&255,t[a+3]=255&c,t[a+4]=o>>>24&255,t[a+5]=o>>16&255,t[a+6]=o>>8&255,t[a+7]=255&o}return t};const e=[,,,,];e[0]=[,,,,],e[0][0]=[4,0,13,15,12,14,8],e[0][1]=[5,2,16,18,17,19,10],e[0][2]=[6,3,23,22,21,20,9],e[0][3]=[7,1,26,25,27,24,11],e[1]=[,,,,],e[1][0]=[0,6,21,23,20,22,16],e[1][1]=[1,4,0,2,1,3,18],e[1][2]=[2,5,7,6,5,4,17],e[1][3]=[3,7,10,9,11,8,19],e[2]=[,,,,],e[2][0]=[4,0,13,15,12,14,8],e[2][1]=[5,2,16,18,17,19,10],e[2][2]=[6,3,23,22,21,20,9],e[2][3]=[7,1,26,25,27,24,11],e[3]=[,,,,],e[3][0]=[0,6,21,23,20,22,16],e[3][1]=[1,4,0,2,1,3,18],e[3][2]=[2,5,7,6,5,4,17],e[3][3]=[3,7,10,9,11,8,19];const t=[,,,,];function r(e,t,r){const i=t+e,n=i<>>32-r;return(a[0][n>>>24]^a[1][n>>>16&255])-a[2][n>>>8&255]+a[3][255&n]}function i(e,t,r){const i=t^e,n=i<>>32-r;return a[0][n>>>24]-a[1][n>>>16&255]+a[2][n>>>8&255]^a[3][255&n]}function n(e,t,r){const i=t-e,n=i<>>32-r;return(a[0][n>>>24]+a[1][n>>>16&255]^a[2][n>>>8&255])-a[3][255&n]}t[0]=[,,,,],t[0][0]=[24,25,23,22,18],t[0][1]=[26,27,21,20,22],t[0][2]=[28,29,19,18,25],t[0][3]=[30,31,17,16,28],t[1]=[,,,,],t[1][0]=[3,2,12,13,8],t[1][1]=[1,0,14,15,13],t[1][2]=[7,6,8,9,3],t[1][3]=[5,4,10,11,7],t[2]=[,,,,],t[2][0]=[19,18,28,29,25],t[2][1]=[17,16,30,31,28],t[2][2]=[23,22,24,25,18],t[2][3]=[21,20,26,27,22],t[3]=[,,,,],t[3][0]=[8,9,7,6,3],t[3][1]=[10,11,5,4,7],t[3][2]=[12,13,3,2,8],t[3][3]=[14,15,1,0,13],this.keySchedule=function(r){const i=[,,,,,,,,],n=Array(32);let s;for(let e=0;e<4;e++)s=4*e,i[e]=r[s]<<24|r[s+1]<<16|r[s+2]<<8|r[s+3];const o=[6,7,4,5];let c,u=0;for(let r=0;r<2;r++)for(let r=0;r<4;r++){for(s=0;s<4;s++){const t=e[r][s];c=i[t[1]],c^=a[4][i[t[2]>>>2]>>>24-8*(3&t[2])&255],c^=a[5][i[t[3]>>>2]>>>24-8*(3&t[3])&255],c^=a[6][i[t[4]>>>2]>>>24-8*(3&t[4])&255],c^=a[7][i[t[5]>>>2]>>>24-8*(3&t[5])&255],c^=a[o[s]][i[t[6]>>>2]>>>24-8*(3&t[6])&255],i[t[0]]=c}for(s=0;s<4;s++){const e=t[r][s];c=a[4][i[e[0]>>>2]>>>24-8*(3&e[0])&255],c^=a[5][i[e[1]>>>2]>>>24-8*(3&e[1])&255],c^=a[6][i[e[2]>>>2]>>>24-8*(3&e[2])&255],c^=a[7][i[e[3]>>>2]>>>24-8*(3&e[3])&255],c^=a[4+s][i[e[4]>>>2]>>>24-8*(3&e[4])&255],n[u]=c,u++}}for(let e=0;e<16;e++)this.masking[e]=n[e],this.rotate[e]=31&n[16+e]};const a=[,,,,,,,,];a[0]=[821772500,2678128395,1810681135,1059425402,505495343,2617265619,1610868032,3483355465,3218386727,2294005173,3791863952,2563806837,1852023008,365126098,3269944861,584384398,677919599,3229601881,4280515016,2002735330,1136869587,3744433750,2289869850,2731719981,2714362070,879511577,1639411079,575934255,717107937,2857637483,576097850,2731753936,1725645e3,2810460463,5111599,767152862,2543075244,1251459544,1383482551,3052681127,3089939183,3612463449,1878520045,1510570527,2189125840,2431448366,582008916,3163445557,1265446783,1354458274,3529918736,3202711853,3073581712,3912963487,3029263377,1275016285,4249207360,2905708351,3304509486,1442611557,3585198765,2712415662,2731849581,3248163920,2283946226,208555832,2766454743,1331405426,1447828783,3315356441,3108627284,2957404670,2981538698,3339933917,1669711173,286233437,1465092821,1782121619,3862771680,710211251,980974943,1651941557,430374111,2051154026,704238805,4128970897,3144820574,2857402727,948965521,3333752299,2227686284,718756367,2269778983,2731643755,718440111,2857816721,3616097120,1113355533,2478022182,410092745,1811985197,1944238868,2696854588,1415722873,1682284203,1060277122,1998114690,1503841958,82706478,2315155686,1068173648,845149890,2167947013,1768146376,1993038550,3566826697,3390574031,940016341,3355073782,2328040721,904371731,1205506512,4094660742,2816623006,825647681,85914773,2857843460,1249926541,1417871568,3287612,3211054559,3126306446,1975924523,1353700161,2814456437,2438597621,1800716203,722146342,2873936343,1151126914,4160483941,2877670899,458611604,2866078500,3483680063,770352098,2652916994,3367839148,3940505011,3585973912,3809620402,718646636,2504206814,2914927912,3631288169,2857486607,2860018678,575749918,2857478043,718488780,2069512688,3548183469,453416197,1106044049,3032691430,52586708,3378514636,3459808877,3211506028,1785789304,218356169,3571399134,3759170522,1194783844,1523787992,3007827094,1975193539,2555452411,1341901877,3045838698,3776907964,3217423946,2802510864,2889438986,1057244207,1636348243,3761863214,1462225785,2632663439,481089165,718503062,24497053,3332243209,3344655856,3655024856,3960371065,1195698900,2971415156,3710176158,2115785917,4027663609,3525578417,2524296189,2745972565,3564906415,1372086093,1452307862,2780501478,1476592880,3389271281,18495466,2378148571,901398090,891748256,3279637769,3157290713,2560960102,1447622437,4284372637,216884176,2086908623,1879786977,3588903153,2242455666,2938092967,3559082096,2810645491,758861177,1121993112,215018983,642190776,4169236812,1196255959,2081185372,3508738393,941322904,4124243163,2877523539,1848581667,2205260958,3180453958,2589345134,3694731276,550028657,2519456284,3789985535,2973870856,2093648313,443148163,46942275,2734146937,1117713533,1115362972,1523183689,3717140224,1551984063],a[1]=[522195092,4010518363,1776537470,960447360,4267822970,4005896314,1435016340,1929119313,2913464185,1310552629,3579470798,3724818106,2579771631,1594623892,417127293,2715217907,2696228731,1508390405,3994398868,3925858569,3695444102,4019471449,3129199795,3770928635,3520741761,990456497,4187484609,2783367035,21106139,3840405339,631373633,3783325702,532942976,396095098,3548038825,4267192484,2564721535,2011709262,2039648873,620404603,3776170075,2898526339,3612357925,4159332703,1645490516,223693667,1567101217,3362177881,1029951347,3470931136,3570957959,1550265121,119497089,972513919,907948164,3840628539,1613718692,3594177948,465323573,2659255085,654439692,2575596212,2699288441,3127702412,277098644,624404830,4100943870,2717858591,546110314,2403699828,3655377447,1321679412,4236791657,1045293279,4010672264,895050893,2319792268,494945126,1914543101,2777056443,3894764339,2219737618,311263384,4275257268,3458730721,669096869,3584475730,3835122877,3319158237,3949359204,2005142349,2713102337,2228954793,3769984788,569394103,3855636576,1425027204,108000370,2736431443,3671869269,3043122623,1750473702,2211081108,762237499,3972989403,2798899386,3061857628,2943854345,867476300,964413654,1591880597,1594774276,2179821409,552026980,3026064248,3726140315,2283577634,3110545105,2152310760,582474363,1582640421,1383256631,2043843868,3322775884,1217180674,463797851,2763038571,480777679,2718707717,2289164131,3118346187,214354409,200212307,3810608407,3025414197,2674075964,3997296425,1847405948,1342460550,510035443,4080271814,815934613,833030224,1620250387,1945732119,2703661145,3966000196,1388869545,3456054182,2687178561,2092620194,562037615,1356438536,3409922145,3261847397,1688467115,2150901366,631725691,3840332284,549916902,3455104640,394546491,837744717,2114462948,751520235,2221554606,2415360136,3999097078,2063029875,803036379,2702586305,821456707,3019566164,360699898,4018502092,3511869016,3677355358,2402471449,812317050,49299192,2570164949,3259169295,2816732080,3331213574,3101303564,2156015656,3705598920,3546263921,143268808,3200304480,1638124008,3165189453,3341807610,578956953,2193977524,3638120073,2333881532,807278310,658237817,2969561766,1641658566,11683945,3086995007,148645947,1138423386,4158756760,1981396783,2401016740,3699783584,380097457,2680394679,2803068651,3334260286,441530178,4016580796,1375954390,761952171,891809099,2183123478,157052462,3683840763,1592404427,341349109,2438483839,1417898363,644327628,2233032776,2353769706,2201510100,220455161,1815641738,182899273,2995019788,3627381533,3702638151,2890684138,1052606899,588164016,1681439879,4038439418,2405343923,4229449282,167996282,1336969661,1688053129,2739224926,1543734051,1046297529,1138201970,2121126012,115334942,1819067631,1902159161,1941945968,2206692869,1159982321],a[2]=[2381300288,637164959,3952098751,3893414151,1197506559,916448331,2350892612,2932787856,3199334847,4009478890,3905886544,1373570990,2450425862,4037870920,3778841987,2456817877,286293407,124026297,3001279700,1028597854,3115296800,4208886496,2691114635,2188540206,1430237888,1218109995,3572471700,308166588,570424558,2187009021,2455094765,307733056,1310360322,3135275007,1384269543,2388071438,863238079,2359263624,2801553128,3380786597,2831162807,1470087780,1728663345,4072488799,1090516929,532123132,2389430977,1132193179,2578464191,3051079243,1670234342,1434557849,2711078940,1241591150,3314043432,3435360113,3091448339,1812415473,2198440252,267246943,796911696,3619716990,38830015,1526438404,2806502096,374413614,2943401790,1489179520,1603809326,1920779204,168801282,260042626,2358705581,1563175598,2397674057,1356499128,2217211040,514611088,2037363785,2186468373,4022173083,2792511869,2913485016,1173701892,4200428547,3896427269,1334932762,2455136706,602925377,2835607854,1613172210,41346230,2499634548,2457437618,2188827595,41386358,4172255629,1313404830,2405527007,3801973774,2217704835,873260488,2528884354,2478092616,4012915883,2555359016,2006953883,2463913485,575479328,2218240648,2099895446,660001756,2341502190,3038761536,3888151779,3848713377,3286851934,1022894237,1620365795,3449594689,1551255054,15374395,3570825345,4249311020,4151111129,3181912732,310226346,1133119310,530038928,136043402,2476768958,3107506709,2544909567,1036173560,2367337196,1681395281,1758231547,3641649032,306774401,1575354324,3716085866,1990386196,3114533736,2455606671,1262092282,3124342505,2768229131,4210529083,1833535011,423410938,660763973,2187129978,1639812e3,3508421329,3467445492,310289298,272797111,2188552562,2456863912,310240523,677093832,1013118031,901835429,3892695601,1116285435,3036471170,1337354835,243122523,520626091,277223598,4244441197,4194248841,1766575121,594173102,316590669,742362309,3536858622,4176435350,3838792410,2501204839,1229605004,3115755532,1552908988,2312334149,979407927,3959474601,1148277331,176638793,3614686272,2083809052,40992502,1340822838,2731552767,3535757508,3560899520,1354035053,122129617,7215240,2732932949,3118912700,2718203926,2539075635,3609230695,3725561661,1928887091,2882293555,1988674909,2063640240,2491088897,1459647954,4189817080,2302804382,1113892351,2237858528,1927010603,4002880361,1856122846,1594404395,2944033133,3855189863,3474975698,1643104450,4054590833,3431086530,1730235576,2984608721,3084664418,2131803598,4178205752,267404349,1617849798,1616132681,1462223176,736725533,2327058232,551665188,2945899023,1749386277,2575514597,1611482493,674206544,2201269090,3642560800,728599968,1680547377,2620414464,1388111496,453204106,4156223445,1094905244,2754698257,2201108165,3757000246,2704524545,3922940700,3996465027],a[3]=[2645754912,532081118,2814278639,3530793624,1246723035,1689095255,2236679235,4194438865,2116582143,3859789411,157234593,2045505824,4245003587,1687664561,4083425123,605965023,672431967,1336064205,3376611392,214114848,4258466608,3232053071,489488601,605322005,3998028058,264917351,1912574028,756637694,436560991,202637054,135989450,85393697,2152923392,3896401662,2895836408,2145855233,3535335007,115294817,3147733898,1922296357,3464822751,4117858305,1037454084,2725193275,2127856640,1417604070,1148013728,1827919605,642362335,2929772533,909348033,1346338451,3547799649,297154785,1917849091,4161712827,2883604526,3968694238,1469521537,3780077382,3375584256,1763717519,136166297,4290970789,1295325189,2134727907,2798151366,1566297257,3672928234,2677174161,2672173615,965822077,2780786062,289653839,1133871874,3491843819,35685304,1068898316,418943774,672553190,642281022,2346158704,1954014401,3037126780,4079815205,2030668546,3840588673,672283427,1776201016,359975446,3750173538,555499703,2769985273,1324923,69110472,152125443,3176785106,3822147285,1340634837,798073664,1434183902,15393959,216384236,1303690150,3881221631,3711134124,3960975413,106373927,2578434224,1455997841,1801814300,1578393881,1854262133,3188178946,3258078583,2302670060,1539295533,3505142565,3078625975,2372746020,549938159,3278284284,2620926080,181285381,2865321098,3970029511,68876850,488006234,1728155692,2608167508,836007927,2435231793,919367643,3339422534,3655756360,1457871481,40520939,1380155135,797931188,234455205,2255801827,3990488299,397000196,739833055,3077865373,2871719860,4022553888,772369276,390177364,3853951029,557662966,740064294,1640166671,1699928825,3535942136,622006121,3625353122,68743880,1742502,219489963,1664179233,1577743084,1236991741,410585305,2366487942,823226535,1050371084,3426619607,3586839478,212779912,4147118561,1819446015,1911218849,530248558,3486241071,3252585495,2886188651,3410272728,2342195030,20547779,2982490058,3032363469,3631753222,312714466,1870521650,1493008054,3491686656,615382978,4103671749,2534517445,1932181,2196105170,278426614,6369430,3274544417,2913018367,697336853,2143000447,2946413531,701099306,1558357093,2805003052,3500818408,2321334417,3567135975,216290473,3591032198,23009561,1996984579,3735042806,2024298078,3739440863,569400510,2339758983,3016033873,3097871343,3639523026,3844324983,3256173865,795471839,2951117563,4101031090,4091603803,3603732598,971261452,534414648,428311343,3389027175,2844869880,694888862,1227866773,2456207019,3043454569,2614353370,3749578031,3676663836,459166190,4132644070,1794958188,51825668,2252611902,3084671440,2036672799,3436641603,1099053433,2469121526,3059204941,1323291266,2061838604,1018778475,2233344254,2553501054,334295216,3556750194,1065731521,183467730],a[4]=[2127105028,745436345,2601412319,2788391185,3093987327,500390133,1155374404,389092991,150729210,3891597772,3523549952,1935325696,716645080,946045387,2901812282,1774124410,3869435775,4039581901,3293136918,3438657920,948246080,363898952,3867875531,1286266623,1598556673,68334250,630723836,1104211938,1312863373,613332731,2377784574,1101634306,441780740,3129959883,1917973735,2510624549,3238456535,2544211978,3308894634,1299840618,4076074851,1756332096,3977027158,297047435,3790297736,2265573040,3621810518,1311375015,1667687725,47300608,3299642885,2474112369,201668394,1468347890,576830978,3594690761,3742605952,1958042578,1747032512,3558991340,1408974056,3366841779,682131401,1033214337,1545599232,4265137049,206503691,103024618,2855227313,1337551222,2428998917,2963842932,4015366655,3852247746,2796956967,3865723491,3747938335,247794022,3755824572,702416469,2434691994,397379957,851939612,2314769512,218229120,1380406772,62274761,214451378,3170103466,2276210409,3845813286,28563499,446592073,1693330814,3453727194,29968656,3093872512,220656637,2470637031,77972100,1667708854,1358280214,4064765667,2395616961,325977563,4277240721,4220025399,3605526484,3355147721,811859167,3069544926,3962126810,652502677,3075892249,4132761541,3498924215,1217549313,3250244479,3858715919,3053989961,1538642152,2279026266,2875879137,574252750,3324769229,2651358713,1758150215,141295887,2719868960,3515574750,4093007735,4194485238,1082055363,3417560400,395511885,2966884026,179534037,3646028556,3738688086,1092926436,2496269142,257381841,3772900718,1636087230,1477059743,2499234752,3811018894,2675660129,3285975680,90732309,1684827095,1150307763,1723134115,3237045386,1769919919,1240018934,815675215,750138730,2239792499,1234303040,1995484674,138143821,675421338,1145607174,1936608440,3238603024,2345230278,2105974004,323969391,779555213,3004902369,2861610098,1017501463,2098600890,2628620304,2940611490,2682542546,1171473753,3656571411,3687208071,4091869518,393037935,159126506,1662887367,1147106178,391545844,3452332695,1891500680,3016609650,1851642611,546529401,1167818917,3194020571,2848076033,3953471836,575554290,475796850,4134673196,450035699,2351251534,844027695,1080539133,86184846,1554234488,3692025454,1972511363,2018339607,1491841390,1141460869,1061690759,4244549243,2008416118,2351104703,2868147542,1598468138,722020353,1027143159,212344630,1387219594,1725294528,3745187956,2500153616,458938280,4129215917,1828119673,544571780,3503225445,2297937496,1241802790,267843827,2694610800,1397140384,1558801448,3782667683,1806446719,929573330,2234912681,400817706,616011623,4121520928,3603768725,1761550015,1968522284,4053731006,4192232858,4005120285,872482584,3140537016,3894607381,2287405443,1963876937,3663887957,1584857e3,2975024454,1833426440,4025083860],a[5]=[4143615901,749497569,1285769319,3795025788,2514159847,23610292,3974978748,844452780,3214870880,3751928557,2213566365,1676510905,448177848,3730751033,4086298418,2307502392,871450977,3222878141,4110862042,3831651966,2735270553,1310974780,2043402188,1218528103,2736035353,4274605013,2702448458,3936360550,2693061421,162023535,2827510090,687910808,23484817,3784910947,3371371616,779677500,3503626546,3473927188,4157212626,3500679282,4248902014,2466621104,3899384794,1958663117,925738300,1283408968,3669349440,1840910019,137959847,2679828185,1239142320,1315376211,1547541505,1690155329,739140458,3128809933,3933172616,3876308834,905091803,1548541325,4040461708,3095483362,144808038,451078856,676114313,2861728291,2469707347,993665471,373509091,2599041286,4025009006,4170239449,2149739950,3275793571,3749616649,2794760199,1534877388,572371878,2590613551,1753320020,3467782511,1405125690,4270405205,633333386,3026356924,3475123903,632057672,2846462855,1404951397,3882875879,3915906424,195638627,2385783745,3902872553,1233155085,3355999740,2380578713,2702246304,2144565621,3663341248,3894384975,2502479241,4248018925,3094885567,1594115437,572884632,3385116731,767645374,1331858858,1475698373,3793881790,3532746431,1321687957,619889600,1121017241,3440213920,2070816767,2833025776,1933951238,4095615791,890643334,3874130214,859025556,360630002,925594799,1764062180,3920222280,4078305929,979562269,2810700344,4087740022,1949714515,546639971,1165388173,3069891591,1495988560,922170659,1291546247,2107952832,1813327274,3406010024,3306028637,4241950635,153207855,2313154747,1608695416,1150242611,1967526857,721801357,1220138373,3691287617,3356069787,2112743302,3281662835,1111556101,1778980689,250857638,2298507990,673216130,2846488510,3207751581,3562756981,3008625920,3417367384,2198807050,529510932,3547516680,3426503187,2364944742,102533054,2294910856,1617093527,1204784762,3066581635,1019391227,1069574518,1317995090,1691889997,3661132003,510022745,3238594800,1362108837,1817929911,2184153760,805817662,1953603311,3699844737,120799444,2118332377,207536705,2282301548,4120041617,145305846,2508124933,3086745533,3261524335,1877257368,2977164480,3160454186,2503252186,4221677074,759945014,254147243,2767453419,3801518371,629083197,2471014217,907280572,3900796746,940896768,2751021123,2625262786,3161476951,3661752313,3260732218,1425318020,2977912069,1496677566,3988592072,2140652971,3126511541,3069632175,977771578,1392695845,1698528874,1411812681,1369733098,1343739227,3620887944,1142123638,67414216,3102056737,3088749194,1626167401,2546293654,3941374235,697522451,33404913,143560186,2595682037,994885535,1247667115,3859094837,2699155541,3547024625,4114935275,2968073508,3199963069,2732024527,1237921620,951448369,1898488916,1211705605,2790989240,2233243581,3598044975],a[6]=[2246066201,858518887,1714274303,3485882003,713916271,2879113490,3730835617,539548191,36158695,1298409750,419087104,1358007170,749914897,2989680476,1261868530,2995193822,2690628854,3443622377,3780124940,3796824509,2976433025,4259637129,1551479e3,512490819,1296650241,951993153,2436689437,2460458047,144139966,3136204276,310820559,3068840729,643875328,1969602020,1680088954,2185813161,3283332454,672358534,198762408,896343282,276269502,3014846926,84060815,197145886,376173866,3943890818,3813173521,3545068822,1316698879,1598252827,2633424951,1233235075,859989710,2358460855,3503838400,3409603720,1203513385,1193654839,2792018475,2060853022,207403770,1144516871,3068631394,1121114134,177607304,3785736302,326409831,1929119770,2983279095,4183308101,3474579288,3200513878,3228482096,119610148,1170376745,3378393471,3163473169,951863017,3337026068,3135789130,2907618374,1183797387,2015970143,4045674555,2182986399,2952138740,3928772205,384012900,2454997643,10178499,2879818989,2596892536,111523738,2995089006,451689641,3196290696,235406569,1441906262,3890558523,3013735005,4158569349,1644036924,376726067,1006849064,3664579700,2041234796,1021632941,1374734338,2566452058,371631263,4007144233,490221539,206551450,3140638584,1053219195,1853335209,3412429660,3562156231,735133835,1623211703,3104214392,2738312436,4096837757,3366392578,3110964274,3956598718,3196820781,2038037254,3877786376,2339753847,300912036,3766732888,2372630639,1516443558,4200396704,1574567987,4069441456,4122592016,2699739776,146372218,2748961456,2043888151,35287437,2596680554,655490400,1132482787,110692520,1031794116,2188192751,1324057718,1217253157,919197030,686247489,3261139658,1028237775,3135486431,3059715558,2460921700,986174950,2661811465,4062904701,2752986992,3709736643,367056889,1353824391,731860949,1650113154,1778481506,784341916,357075625,3608602432,1074092588,2480052770,3811426202,92751289,877911070,3600361838,1231880047,480201094,3756190983,3094495953,434011822,87971354,363687820,1717726236,1901380172,3926403882,2481662265,400339184,1490350766,2661455099,1389319756,2558787174,784598401,1983468483,30828846,3550527752,2716276238,3841122214,1765724805,1955612312,1277890269,1333098070,1564029816,2704417615,1026694237,3287671188,1260819201,3349086767,1016692350,1582273796,1073413053,1995943182,694588404,1025494639,3323872702,3551898420,4146854327,453260480,1316140391,1435673405,3038941953,3486689407,1622062951,403978347,817677117,950059133,4246079218,3278066075,1486738320,1417279718,481875527,2549965225,3933690356,760697757,1452955855,3897451437,1177426808,1702951038,4085348628,2447005172,1084371187,3516436277,3068336338,1073369276,1027665953,3284188590,1230553676,1368340146,2226246512,267243139,2274220762,4070734279,2497715176,2423353163,2504755875],a[7]=[3793104909,3151888380,2817252029,895778965,2005530807,3871412763,237245952,86829237,296341424,3851759377,3974600970,2475086196,709006108,1994621201,2972577594,937287164,3734691505,168608556,3189338153,2225080640,3139713551,3033610191,3025041904,77524477,185966941,1208824168,2344345178,1721625922,3354191921,1066374631,1927223579,1971335949,2483503697,1551748602,2881383779,2856329572,3003241482,48746954,1398218158,2050065058,313056748,4255789917,393167848,1912293076,940740642,3465845460,3091687853,2522601570,2197016661,1727764327,364383054,492521376,1291706479,3264136376,1474851438,1685747964,2575719748,1619776915,1814040067,970743798,1561002147,2925768690,2123093554,1880132620,3151188041,697884420,2550985770,2607674513,2659114323,110200136,1489731079,997519150,1378877361,3527870668,478029773,2766872923,1022481122,431258168,1112503832,897933369,2635587303,669726182,3383752315,918222264,163866573,3246985393,3776823163,114105080,1903216136,761148244,3571337562,1690750982,3166750252,1037045171,1888456500,2010454850,642736655,616092351,365016990,1185228132,4174898510,1043824992,2023083429,2241598885,3863320456,3279669087,3674716684,108438443,2132974366,830746235,606445527,4173263986,2204105912,1844756978,2532684181,4245352700,2969441100,3796921661,1335562986,4061524517,2720232303,2679424040,634407289,885462008,3294724487,3933892248,2094100220,339117932,4048830727,3202280980,1458155303,2689246273,1022871705,2464987878,3714515309,353796843,2822958815,4256850100,4052777845,551748367,618185374,3778635579,4020649912,1904685140,3069366075,2670879810,3407193292,2954511620,4058283405,2219449317,3135758300,1120655984,3447565834,1474845562,3577699062,550456716,3466908712,2043752612,881257467,869518812,2005220179,938474677,3305539448,3850417126,1315485940,3318264702,226533026,965733244,321539988,1136104718,804158748,573969341,3708209826,937399083,3290727049,2901666755,1461057207,4013193437,4066861423,3242773476,2421326174,1581322155,3028952165,786071460,3900391652,3918438532,1485433313,4023619836,3708277595,3678951060,953673138,1467089153,1930354364,1533292819,2492563023,1346121658,1685000834,1965281866,3765933717,4190206607,2052792609,3515332758,690371149,3125873887,2180283551,2903598061,3933952357,436236910,289419410,14314871,1242357089,2904507907,1616633776,2666382180,585885352,3471299210,2699507360,1432659641,277164553,3354103607,770115018,2303809295,3741942315,3177781868,2853364978,2269453327,3774259834,987383833,1290892879,225909803,1741533526,890078084,1496906255,1111072499,916028167,243534141,1252605537,2204162171,531204876,290011180,3916834213,102027703,237315147,209093447,1486785922,220223953,2758195998,4175039106,82940208,3127791296,2569425252,518464269,1353887104,3941492737,2377294467,3935040926]}function Re(e){this.cast5=new De,this.cast5.setKey(e),this.encrypt=function(e){return this.cast5.encrypt(e)}}Ke.keySize=Ke.prototype.keySize=24,Ke.blockSize=Ke.prototype.blockSize=8,Re.blockSize=Re.prototype.blockSize=8,Re.keySize=Re.prototype.keySize=16;const Ue=4294967295;function Ie(e,t){return(e<>>32-t)&Ue}function Be(e,t){return e[t]|e[t+1]<<8|e[t+2]<<16|e[t+3]<<24}function Te(e,t,r){e.splice(t,4,255&r,r>>>8&255,r>>>16&255,r>>>24&255)}function ze(e,t){return e>>>8*t&255}function qe(e){this.tf=function(){let e=null,t=null,r=-1,i=[],n=[[],[],[],[]];function a(e){return n[0][ze(e,0)]^n[1][ze(e,1)]^n[2][ze(e,2)]^n[3][ze(e,3)]}function s(e){return n[0][ze(e,3)]^n[1][ze(e,0)]^n[2][ze(e,1)]^n[3][ze(e,2)]}function o(e,t){let r=a(t[0]),n=s(t[1]);t[2]=Ie(t[2]^r+n+i[4*e+8]&Ue,31),t[3]=Ie(t[3],1)^r+2*n+i[4*e+9]&Ue,r=a(t[2]),n=s(t[3]),t[0]=Ie(t[0]^r+n+i[4*e+10]&Ue,31),t[1]=Ie(t[1],1)^r+2*n+i[4*e+11]&Ue}function c(e,t){let r=a(t[0]),n=s(t[1]);t[2]=Ie(t[2],1)^r+n+i[4*e+10]&Ue,t[3]=Ie(t[3]^r+2*n+i[4*e+11]&Ue,31),r=a(t[2]),n=s(t[3]),t[0]=Ie(t[0],1)^r+n+i[4*e+8]&Ue,t[1]=Ie(t[1]^r+2*n+i[4*e+9]&Ue,31)}return{name:"twofish",blocksize:16,open:function(t){let r,a,s,o,c;e=t;const u=[],h=[],d=[];let f;const l=[];let p,y,b;const m=[[8,1,7,13,6,15,3,2,0,11,5,9,14,12,10,4],[2,8,11,13,15,7,6,14,3,1,9,4,0,10,12,5]],g=[[14,12,11,8,1,2,3,5,15,4,10,6,7,0,9,13],[1,14,2,11,4,12,3,7,6,13,10,5,15,9,0,8]],w=[[11,10,5,14,6,13,9,0,12,8,15,3,2,4,7,1],[4,12,7,5,1,6,9,10,0,14,13,8,2,11,3,15]],v=[[13,7,15,4,1,2,6,14,9,11,3,0,8,5,12,10],[11,9,5,1,12,3,13,14,6,4,7,15,2,0,8,10]],_=[0,8,1,9,2,10,3,11,4,12,5,13,6,14,7,15],k=[0,9,2,11,4,13,6,15,8,1,10,3,12,5,14,7],A=[[],[]],S=[[],[],[],[]];function E(e){return e^e>>2^[0,90,180,238][3&e]}function P(e){return e^e>>1^e>>2^[0,238,180,90][3&e]}function x(e,t){let r,i,n;for(r=0;r<8;r++)i=t>>>24,t=t<<8&Ue|e>>>24,e=e<<8&Ue,n=i<<1,128&i&&(n^=333),t^=i^n<<16,n^=i>>>1,1&i&&(n^=166),t^=n<<24|n<<8;return t}function M(e,t){const r=t>>4,i=15&t,n=m[e][r^i],a=g[e][_[i]^k[r]];return v[e][_[a]^k[n]]<<4|w[e][n^a]}function C(e,t){let r=ze(e,0),i=ze(e,1),n=ze(e,2),a=ze(e,3);switch(f){case 4:r=A[1][r]^ze(t[3],0),i=A[0][i]^ze(t[3],1),n=A[0][n]^ze(t[3],2),a=A[1][a]^ze(t[3],3);case 3:r=A[1][r]^ze(t[2],0),i=A[1][i]^ze(t[2],1),n=A[0][n]^ze(t[2],2),a=A[0][a]^ze(t[2],3);case 2:r=A[0][A[0][r]^ze(t[1],0)]^ze(t[0],0),i=A[0][A[1][i]^ze(t[1],1)]^ze(t[0],1),n=A[1][A[0][n]^ze(t[1],2)]^ze(t[0],2),a=A[1][A[1][a]^ze(t[1],3)]^ze(t[0],3)}return S[0][r]^S[1][i]^S[2][n]^S[3][a]}for(e=e.slice(0,32),r=e.length;16!==r&&24!==r&&32!==r;)e[r++]=0;for(r=0;r>2]=Be(e,r);for(r=0;r<256;r++)A[0][r]=M(0,r),A[1][r]=M(1,r);for(r=0;r<256;r++)p=A[1][r],y=E(p),b=P(p),S[0][r]=p+(y<<8)+(b<<16)+(b<<24),S[2][r]=y+(b<<8)+(p<<16)+(b<<24),p=A[0][r],y=E(p),b=P(p),S[1][r]=b+(b<<8)+(y<<16)+(p<<24),S[3][r]=y+(p<<8)+(b<<16)+(y<<24);for(f=d.length/2,r=0;r