UNPKG

iocane

Version:
8 lines 36.5 kB
!function(t,r){"object"==typeof exports&&"object"==typeof module?module.exports=r():"function"==typeof define&&define.amd?define([],r):"object"==typeof exports?exports.iocane=r():t.iocane=r()}(window,(function(){return function(t){var r={};function n(e){if(r[e])return r[e].exports;var i=r[e]={i:e,l:!1,exports:{}};return t[e].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=r,n.d=function(t,r,e){n.o(t,r)||Object.defineProperty(t,r,{enumerable:!0,get:e})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,r){if(1&r&&(t=n(t)),8&r)return t;if(4&r&&"object"==typeof t&&t&&t.__esModule)return t;var e=Object.create(null);if(n.r(e),Object.defineProperty(e,"default",{enumerable:!0,value:t}),2&r&&"string"!=typeof t)for(var i in t)n.d(e,i,function(r){return t[r]}.bind(null,i));return e},n.n=function(t){var r=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(r,"a",r),r},n.o=function(t,r){return Object.prototype.hasOwnProperty.call(t,r)},n.p="",n(n.s=10)}([function(t,r,n){"use strict";function e(t,r){if(t.byteLength!==r.byteLength)return!1;for(var n=new Uint8Array(t),e=new Uint8Array(r),i=0;i<t.byteLength;i+=1)if(n[i]!==e[i])return!1;return!0}function i(t,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return new Uint8Array(t).findIndex((function(t,i,o){if(i<n)return!1;var u=o.slice(i,i+r.byteLength).buffer;return Boolean(e(r,u))}))}function o(t){var r=Array.from(new Uint8Array(t)).map((function(t){return String.fromCharCode(t)})).join("");return btoa(r)}function u(t){for(var r,n=new Uint8Array(t),e="",i=0;i<n.byteLength;i+=1)(r=n[i].toString(16)).length<2&&(r="0"+r),e+=r;return e}function a(t){return(new TextDecoder).decode(t)}function f(t){for(var r=atob(t),n=new Uint8Array(new ArrayBuffer(r.length)),e=0;e<r.length;e+=1)n[e]=r.charCodeAt(e);return n.buffer}function c(t){if(t.length<=0)throw new Error("Failed concatenating array buffers: At least one must be passed");var r=t.reduce((function(t,r){return t+r.byteLength}),0),n=new Uint8Array(r),e=0;return t.forEach((function(t){n.set(new Uint8Array(t),e),e+=t.byteLength})),n.buffer}function s(t){var r=t.match(/[\da-f]{2}/gi).map((function(t){return parseInt(t,16)}));return new Uint8Array(r).buffer}function h(t){return(new TextEncoder).encode(t)}n.d(r,"e",(function(){return e})),n.d(r,"a",(function(){return i})),n.d(r,"b",(function(){return o})),n.d(r,"c",(function(){return u})),n.d(r,"d",(function(){return a})),n.d(r,"f",(function(){return f})),n.d(r,"g",(function(){return c})),n.d(r,"h",(function(){return s})),n.d(r,"i",(function(){return h}))},function(t,r,n){"use strict";n.d(r,"a",(function(){return e})),n.d(r,"b",(function(){return i})),n.d(r,"c",(function(){return o})),n.d(r,"d",(function(){return u})),n.d(r,"e",(function(){return a})),n.d(r,"f",(function(){return f})),n.d(r,"g",(function(){return c})),n.d(r,"h",(function(){return s})),n.d(r,"i",(function(){return h})),n.d(r,"j",(function(){return l}));var e=n(2).a.CBC,i="sha256",o=25e4,u=32,a="aes-256-cbc",f="aes-256-gcm",c="sha256",s=32,h=12,l=4},function(t,r,n){"use strict";var e;n.d(r,"a",(function(){return e})),function(t){t.CBC="cbc",t.GCM="gcm"}(e||(e={}))},function(t,r,n){"use strict";n.d(r,"b",(function(){return i})),n.d(r,"a",(function(){return o}));var e="iocane/2";function i(){return e.split("").map((function(t){return t.charCodeAt(0)}))}function o(){return[1,0,0,0,0,0,0,1]}},function(t,r,n){"use strict";(function(t){n.d(r,"a",(function(){return a})),n.d(r,"b",(function(){return c}));var e=n(3),i=n(0),o=n(1);function u(t){return Object(i.g)(t.reduce((function(t,r){var n,e,o;if("string"==typeof r||"number"==typeof r)n=Object(i.i)("".concat(r));else{if(!(r instanceof ArrayBuffer))throw new Error("Failed packing data: Invalid component type: ".concat(typeof r));n=r}return t.push((e=n.byteLength,o=new ArrayBuffer(4),new DataView(o).setUint32(0,e,!1),o)),t.push(n),t}),[]))}function a(t){var r=new Uint8Array(Object(e.a)()).buffer,n=[f(t)];return t.content&&n.push(u([r]),t.content,r),n.push(function(t){var r=t.auth;return u([JSON.stringify({auth:r})])}(t)),Object(i.g)(n)}function f(t){var r=new Uint8Array(Object(e.b)()).buffer,n=t.iv,o=t.salt,a=t.rounds,f=t.method,c=JSON.stringify({iv:n,salt:o,rounds:a,method:f});return Object(i.g)([r,u([c])])}function c(r){var n=0,u=new Uint8Array(Object(e.b)()).buffer,a=u.byteLength,f=r.slice(0,a);if(!Object(i.e)(f,u))throw new Error("Failed unpacking data: Signature mismatch");n=a;var c=new DataView(r),s=c.getUint32(n);n+=o.j;var h=r.slice(n,n+s);n+=s;var l=c.getUint32(n);n+=o.j;var p=r.slice(n,n+l);n+=l;var y=t.from(Object(e.a)());if(!Object(i.e)(y,p))throw new Error("Decoding error: Encrypted content length is corrupt");var d=Object(i.a)(r,p,n);if(-1===d)throw new Error("Decoding error: Encrypted content corrupt or incomplete");var g=r.slice(n,d);n=d+l;var v=c.getUint32(n);n+=o.j;var w=r.slice(n,n+v);n+=v;var b=JSON.parse(Object(i.d)(h)),m=b.iv,A=b.salt,E=b.rounds,_=b.method;return{content:g,iv:m,salt:A,auth:JSON.parse(Object(i.d)(w)).auth,rounds:E,method:_}}}).call(this,n(5).Buffer)},function(t,r,n){"use strict";(function(t){ /*! * The buffer module from node.js, for the browser. * * @author Feross Aboukhadijeh <http://feross.org> * @license MIT */ var e=n(7),i=n(8),o=n(9);function u(){return f.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function a(t,r){if(u()<r)throw new RangeError("Invalid typed array length");return f.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(r)).__proto__=f.prototype:(null===t&&(t=new f(r)),t.length=r),t}function f(t,r,n){if(!(f.TYPED_ARRAY_SUPPORT||this instanceof f))return new f(t,r,n);if("number"==typeof t){if("string"==typeof r)throw new Error("If encoding is specified then the first argument must be a string");return h(this,t)}return c(this,t,r,n)}function c(t,r,n,e){if("number"==typeof r)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&r instanceof ArrayBuffer?function(t,r,n,e){if(r.byteLength,n<0||r.byteLength<n)throw new RangeError("'offset' is out of bounds");if(r.byteLength<n+(e||0))throw new RangeError("'length' is out of bounds");r=void 0===n&&void 0===e?new Uint8Array(r):void 0===e?new Uint8Array(r,n):new Uint8Array(r,n,e);f.TYPED_ARRAY_SUPPORT?(t=r).__proto__=f.prototype:t=l(t,r);return t}(t,r,n,e):"string"==typeof r?function(t,r,n){"string"==typeof n&&""!==n||(n="utf8");if(!f.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var e=0|y(r,n),i=(t=a(t,e)).write(r,n);i!==e&&(t=t.slice(0,i));return t}(t,r,n):function(t,r){if(f.isBuffer(r)){var n=0|p(r.length);return 0===(t=a(t,n)).length?t:(r.copy(t,0,0,n),t)}if(r){if("undefined"!=typeof ArrayBuffer&&r.buffer instanceof ArrayBuffer||"length"in r)return"number"!=typeof r.length||(e=r.length)!=e?a(t,0):l(t,r);if("Buffer"===r.type&&o(r.data))return l(t,r.data)}var e;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(t,r)}function s(t){if("number"!=typeof t)throw new TypeError('"size" argument must be a number');if(t<0)throw new RangeError('"size" argument must not be negative')}function h(t,r){if(s(r),t=a(t,r<0?0:0|p(r)),!f.TYPED_ARRAY_SUPPORT)for(var n=0;n<r;++n)t[n]=0;return t}function l(t,r){var n=r.length<0?0:0|p(r.length);t=a(t,n);for(var e=0;e<n;e+=1)t[e]=255&r[e];return t}function p(t){if(t>=u())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+u().toString(16)+" bytes");return 0|t}function y(t,r){if(f.isBuffer(t))return t.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!=typeof t&&(t=""+t);var n=t.length;if(0===n)return 0;for(var e=!1;;)switch(r){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return K(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return F(t).length;default:if(e)return K(t).length;r=(""+r).toLowerCase(),e=!0}}function d(t,r,n){var e=!1;if((void 0===r||r<0)&&(r=0),r>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(r>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return B(this,r,n);case"utf8":case"utf-8":return S(this,r,n);case"ascii":return T(this,r,n);case"latin1":case"binary":return j(this,r,n);case"base64":return R(this,r,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return C(this,r,n);default:if(e)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),e=!0}}function g(t,r,n){var e=t[r];t[r]=t[n],t[n]=e}function v(t,r,n,e,i){if(0===t.length)return-1;if("string"==typeof n?(e=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:t.length-1),n<0&&(n=t.length+n),n>=t.length){if(i)return-1;n=t.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof r&&(r=f.from(r,e)),f.isBuffer(r))return 0===r.length?-1:w(t,r,n,e,i);if("number"==typeof r)return r&=255,f.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(t,r,n):Uint8Array.prototype.lastIndexOf.call(t,r,n):w(t,[r],n,e,i);throw new TypeError("val must be string, number or Buffer")}function w(t,r,n,e,i){var o,u=1,a=t.length,f=r.length;if(void 0!==e&&("ucs2"===(e=String(e).toLowerCase())||"ucs-2"===e||"utf16le"===e||"utf-16le"===e)){if(t.length<2||r.length<2)return-1;u=2,a/=2,f/=2,n/=2}function c(t,r){return 1===u?t[r]:t.readUInt16BE(r*u)}if(i){var s=-1;for(o=n;o<a;o++)if(c(t,o)===c(r,-1===s?0:o-s)){if(-1===s&&(s=o),o-s+1===f)return s*u}else-1!==s&&(o-=o-s),s=-1}else for(n+f>a&&(n=a-f),o=n;o>=0;o--){for(var h=!0,l=0;l<f;l++)if(c(t,o+l)!==c(r,l)){h=!1;break}if(h)return o}return-1}function b(t,r,n,e){n=Number(n)||0;var i=t.length-n;e?(e=Number(e))>i&&(e=i):e=i;var o=r.length;if(o%2!=0)throw new TypeError("Invalid hex string");e>o/2&&(e=o/2);for(var u=0;u<e;++u){var a=parseInt(r.substr(2*u,2),16);if(isNaN(a))return u;t[n+u]=a}return u}function m(t,r,n,e){return G(K(r,t.length-n),t,n,e)}function A(t,r,n,e){return G(function(t){for(var r=[],n=0;n<t.length;++n)r.push(255&t.charCodeAt(n));return r}(r),t,n,e)}function E(t,r,n,e){return A(t,r,n,e)}function _(t,r,n,e){return G(F(r),t,n,e)}function O(t,r,n,e){return G(function(t,r){for(var n,e,i,o=[],u=0;u<t.length&&!((r-=2)<0);++u)n=t.charCodeAt(u),e=n>>8,i=n%256,o.push(i),o.push(e);return o}(r,t.length-n),t,n,e)}function R(t,r,n){return 0===r&&n===t.length?e.fromByteArray(t):e.fromByteArray(t.slice(r,n))}function S(t,r,n){n=Math.min(t.length,n);for(var e=[],i=r;i<n;){var o,u,a,f,c=t[i],s=null,h=c>239?4:c>223?3:c>191?2:1;if(i+h<=n)switch(h){case 1:c<128&&(s=c);break;case 2:128==(192&(o=t[i+1]))&&(f=(31&c)<<6|63&o)>127&&(s=f);break;case 3:o=t[i+1],u=t[i+2],128==(192&o)&&128==(192&u)&&(f=(15&c)<<12|(63&o)<<6|63&u)>2047&&(f<55296||f>57343)&&(s=f);break;case 4:o=t[i+1],u=t[i+2],a=t[i+3],128==(192&o)&&128==(192&u)&&128==(192&a)&&(f=(15&c)<<18|(63&o)<<12|(63&u)<<6|63&a)>65535&&f<1114112&&(s=f)}null===s?(s=65533,h=1):s>65535&&(s-=65536,e.push(s>>>10&1023|55296),s=56320|1023&s),e.push(s),i+=h}return function(t){var r=t.length;if(r<=P)return String.fromCharCode.apply(String,t);var n="",e=0;for(;e<r;)n+=String.fromCharCode.apply(String,t.slice(e,e+=P));return n}(e)}r.Buffer=f,r.SlowBuffer=function(t){+t!=t&&(t=0);return f.alloc(+t)},r.INSPECT_MAX_BYTES=50,f.TYPED_ARRAY_SUPPORT=void 0!==t.TYPED_ARRAY_SUPPORT?t.TYPED_ARRAY_SUPPORT:function(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()&&"function"==typeof t.subarray&&0===t.subarray(1,1).byteLength}catch(t){return!1}}(),r.kMaxLength=u(),f.poolSize=8192,f._augment=function(t){return t.__proto__=f.prototype,t},f.from=function(t,r,n){return c(null,t,r,n)},f.TYPED_ARRAY_SUPPORT&&(f.prototype.__proto__=Uint8Array.prototype,f.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&f[Symbol.species]===f&&Object.defineProperty(f,Symbol.species,{value:null,configurable:!0})),f.alloc=function(t,r,n){return function(t,r,n,e){return s(r),r<=0?a(t,r):void 0!==n?"string"==typeof e?a(t,r).fill(n,e):a(t,r).fill(n):a(t,r)}(null,t,r,n)},f.allocUnsafe=function(t){return h(null,t)},f.allocUnsafeSlow=function(t){return h(null,t)},f.isBuffer=function(t){return!(null==t||!t._isBuffer)},f.compare=function(t,r){if(!f.isBuffer(t)||!f.isBuffer(r))throw new TypeError("Arguments must be Buffers");if(t===r)return 0;for(var n=t.length,e=r.length,i=0,o=Math.min(n,e);i<o;++i)if(t[i]!==r[i]){n=t[i],e=r[i];break}return n<e?-1:e<n?1:0},f.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},f.concat=function(t,r){if(!o(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return f.alloc(0);var n;if(void 0===r)for(r=0,n=0;n<t.length;++n)r+=t[n].length;var e=f.allocUnsafe(r),i=0;for(n=0;n<t.length;++n){var u=t[n];if(!f.isBuffer(u))throw new TypeError('"list" argument must be an Array of Buffers');u.copy(e,i),i+=u.length}return e},f.byteLength=y,f.prototype._isBuffer=!0,f.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var r=0;r<t;r+=2)g(this,r,r+1);return this},f.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var r=0;r<t;r+=4)g(this,r,r+3),g(this,r+1,r+2);return this},f.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var r=0;r<t;r+=8)g(this,r,r+7),g(this,r+1,r+6),g(this,r+2,r+5),g(this,r+3,r+4);return this},f.prototype.toString=function(){var t=0|this.length;return 0===t?"":0===arguments.length?S(this,0,t):d.apply(this,arguments)},f.prototype.equals=function(t){if(!f.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===f.compare(this,t)},f.prototype.inspect=function(){var t="",n=r.INSPECT_MAX_BYTES;return this.length>0&&(t=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(t+=" ... ")),"<Buffer "+t+">"},f.prototype.compare=function(t,r,n,e,i){if(!f.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===r&&(r=0),void 0===n&&(n=t?t.length:0),void 0===e&&(e=0),void 0===i&&(i=this.length),r<0||n>t.length||e<0||i>this.length)throw new RangeError("out of range index");if(e>=i&&r>=n)return 0;if(e>=i)return-1;if(r>=n)return 1;if(this===t)return 0;for(var o=(i>>>=0)-(e>>>=0),u=(n>>>=0)-(r>>>=0),a=Math.min(o,u),c=this.slice(e,i),s=t.slice(r,n),h=0;h<a;++h)if(c[h]!==s[h]){o=c[h],u=s[h];break}return o<u?-1:u<o?1:0},f.prototype.includes=function(t,r,n){return-1!==this.indexOf(t,r,n)},f.prototype.indexOf=function(t,r,n){return v(this,t,r,n,!0)},f.prototype.lastIndexOf=function(t,r,n){return v(this,t,r,n,!1)},f.prototype.write=function(t,r,n,e){if(void 0===r)e="utf8",n=this.length,r=0;else if(void 0===n&&"string"==typeof r)e=r,n=this.length,r=0;else{if(!isFinite(r))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");r|=0,isFinite(n)?(n|=0,void 0===e&&(e="utf8")):(e=n,n=void 0)}var i=this.length-r;if((void 0===n||n>i)&&(n=i),t.length>0&&(n<0||r<0)||r>this.length)throw new RangeError("Attempt to write outside buffer bounds");e||(e="utf8");for(var o=!1;;)switch(e){case"hex":return b(this,t,r,n);case"utf8":case"utf-8":return m(this,t,r,n);case"ascii":return A(this,t,r,n);case"latin1":case"binary":return E(this,t,r,n);case"base64":return _(this,t,r,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return O(this,t,r,n);default:if(o)throw new TypeError("Unknown encoding: "+e);e=(""+e).toLowerCase(),o=!0}},f.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var P=4096;function T(t,r,n){var e="";n=Math.min(t.length,n);for(var i=r;i<n;++i)e+=String.fromCharCode(127&t[i]);return e}function j(t,r,n){var e="";n=Math.min(t.length,n);for(var i=r;i<n;++i)e+=String.fromCharCode(t[i]);return e}function B(t,r,n){var e=t.length;(!r||r<0)&&(r=0),(!n||n<0||n>e)&&(n=e);for(var i="",o=r;o<n;++o)i+=N(t[o]);return i}function C(t,r,n){for(var e=t.slice(r,n),i="",o=0;o<e.length;o+=2)i+=String.fromCharCode(e[o]+256*e[o+1]);return i}function U(t,r,n){if(t%1!=0||t<0)throw new RangeError("offset is not uint");if(t+r>n)throw new RangeError("Trying to access beyond buffer length")}function I(t,r,n,e,i,o){if(!f.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(r>i||r<o)throw new RangeError('"value" argument is out of bounds');if(n+e>t.length)throw new RangeError("Index out of range")}function M(t,r,n,e){r<0&&(r=65535+r+1);for(var i=0,o=Math.min(t.length-n,2);i<o;++i)t[n+i]=(r&255<<8*(e?i:1-i))>>>8*(e?i:1-i)}function D(t,r,n,e){r<0&&(r=4294967295+r+1);for(var i=0,o=Math.min(t.length-n,4);i<o;++i)t[n+i]=r>>>8*(e?i:3-i)&255}function Y(t,r,n,e,i,o){if(n+e>t.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function L(t,r,n,e,o){return o||Y(t,0,n,4),i.write(t,r,n,e,23,4),n+4}function x(t,r,n,e,o){return o||Y(t,0,n,8),i.write(t,r,n,e,52,8),n+8}f.prototype.slice=function(t,r){var n,e=this.length;if((t=~~t)<0?(t+=e)<0&&(t=0):t>e&&(t=e),(r=void 0===r?e:~~r)<0?(r+=e)<0&&(r=0):r>e&&(r=e),r<t&&(r=t),f.TYPED_ARRAY_SUPPORT)(n=this.subarray(t,r)).__proto__=f.prototype;else{var i=r-t;n=new f(i,void 0);for(var o=0;o<i;++o)n[o]=this[o+t]}return n},f.prototype.readUIntLE=function(t,r,n){t|=0,r|=0,n||U(t,r,this.length);for(var e=this[t],i=1,o=0;++o<r&&(i*=256);)e+=this[t+o]*i;return e},f.prototype.readUIntBE=function(t,r,n){t|=0,r|=0,n||U(t,r,this.length);for(var e=this[t+--r],i=1;r>0&&(i*=256);)e+=this[t+--r]*i;return e},f.prototype.readUInt8=function(t,r){return r||U(t,1,this.length),this[t]},f.prototype.readUInt16LE=function(t,r){return r||U(t,2,this.length),this[t]|this[t+1]<<8},f.prototype.readUInt16BE=function(t,r){return r||U(t,2,this.length),this[t]<<8|this[t+1]},f.prototype.readUInt32LE=function(t,r){return r||U(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},f.prototype.readUInt32BE=function(t,r){return r||U(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},f.prototype.readIntLE=function(t,r,n){t|=0,r|=0,n||U(t,r,this.length);for(var e=this[t],i=1,o=0;++o<r&&(i*=256);)e+=this[t+o]*i;return e>=(i*=128)&&(e-=Math.pow(2,8*r)),e},f.prototype.readIntBE=function(t,r,n){t|=0,r|=0,n||U(t,r,this.length);for(var e=r,i=1,o=this[t+--e];e>0&&(i*=256);)o+=this[t+--e]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*r)),o},f.prototype.readInt8=function(t,r){return r||U(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},f.prototype.readInt16LE=function(t,r){r||U(t,2,this.length);var n=this[t]|this[t+1]<<8;return 32768&n?4294901760|n:n},f.prototype.readInt16BE=function(t,r){r||U(t,2,this.length);var n=this[t+1]|this[t]<<8;return 32768&n?4294901760|n:n},f.prototype.readInt32LE=function(t,r){return r||U(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},f.prototype.readInt32BE=function(t,r){return r||U(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},f.prototype.readFloatLE=function(t,r){return r||U(t,4,this.length),i.read(this,t,!0,23,4)},f.prototype.readFloatBE=function(t,r){return r||U(t,4,this.length),i.read(this,t,!1,23,4)},f.prototype.readDoubleLE=function(t,r){return r||U(t,8,this.length),i.read(this,t,!0,52,8)},f.prototype.readDoubleBE=function(t,r){return r||U(t,8,this.length),i.read(this,t,!1,52,8)},f.prototype.writeUIntLE=function(t,r,n,e){(t=+t,r|=0,n|=0,e)||I(this,t,r,n,Math.pow(2,8*n)-1,0);var i=1,o=0;for(this[r]=255&t;++o<n&&(i*=256);)this[r+o]=t/i&255;return r+n},f.prototype.writeUIntBE=function(t,r,n,e){(t=+t,r|=0,n|=0,e)||I(this,t,r,n,Math.pow(2,8*n)-1,0);var i=n-1,o=1;for(this[r+i]=255&t;--i>=0&&(o*=256);)this[r+i]=t/o&255;return r+n},f.prototype.writeUInt8=function(t,r,n){return t=+t,r|=0,n||I(this,t,r,1,255,0),f.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[r]=255&t,r+1},f.prototype.writeUInt16LE=function(t,r,n){return t=+t,r|=0,n||I(this,t,r,2,65535,0),f.TYPED_ARRAY_SUPPORT?(this[r]=255&t,this[r+1]=t>>>8):M(this,t,r,!0),r+2},f.prototype.writeUInt16BE=function(t,r,n){return t=+t,r|=0,n||I(this,t,r,2,65535,0),f.TYPED_ARRAY_SUPPORT?(this[r]=t>>>8,this[r+1]=255&t):M(this,t,r,!1),r+2},f.prototype.writeUInt32LE=function(t,r,n){return t=+t,r|=0,n||I(this,t,r,4,4294967295,0),f.TYPED_ARRAY_SUPPORT?(this[r+3]=t>>>24,this[r+2]=t>>>16,this[r+1]=t>>>8,this[r]=255&t):D(this,t,r,!0),r+4},f.prototype.writeUInt32BE=function(t,r,n){return t=+t,r|=0,n||I(this,t,r,4,4294967295,0),f.TYPED_ARRAY_SUPPORT?(this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=255&t):D(this,t,r,!1),r+4},f.prototype.writeIntLE=function(t,r,n,e){if(t=+t,r|=0,!e){var i=Math.pow(2,8*n-1);I(this,t,r,n,i-1,-i)}var o=0,u=1,a=0;for(this[r]=255&t;++o<n&&(u*=256);)t<0&&0===a&&0!==this[r+o-1]&&(a=1),this[r+o]=(t/u>>0)-a&255;return r+n},f.prototype.writeIntBE=function(t,r,n,e){if(t=+t,r|=0,!e){var i=Math.pow(2,8*n-1);I(this,t,r,n,i-1,-i)}var o=n-1,u=1,a=0;for(this[r+o]=255&t;--o>=0&&(u*=256);)t<0&&0===a&&0!==this[r+o+1]&&(a=1),this[r+o]=(t/u>>0)-a&255;return r+n},f.prototype.writeInt8=function(t,r,n){return t=+t,r|=0,n||I(this,t,r,1,127,-128),f.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[r]=255&t,r+1},f.prototype.writeInt16LE=function(t,r,n){return t=+t,r|=0,n||I(this,t,r,2,32767,-32768),f.TYPED_ARRAY_SUPPORT?(this[r]=255&t,this[r+1]=t>>>8):M(this,t,r,!0),r+2},f.prototype.writeInt16BE=function(t,r,n){return t=+t,r|=0,n||I(this,t,r,2,32767,-32768),f.TYPED_ARRAY_SUPPORT?(this[r]=t>>>8,this[r+1]=255&t):M(this,t,r,!1),r+2},f.prototype.writeInt32LE=function(t,r,n){return t=+t,r|=0,n||I(this,t,r,4,2147483647,-2147483648),f.TYPED_ARRAY_SUPPORT?(this[r]=255&t,this[r+1]=t>>>8,this[r+2]=t>>>16,this[r+3]=t>>>24):D(this,t,r,!0),r+4},f.prototype.writeInt32BE=function(t,r,n){return t=+t,r|=0,n||I(this,t,r,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),f.TYPED_ARRAY_SUPPORT?(this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=255&t):D(this,t,r,!1),r+4},f.prototype.writeFloatLE=function(t,r,n){return L(this,t,r,!0,n)},f.prototype.writeFloatBE=function(t,r,n){return L(this,t,r,!1,n)},f.prototype.writeDoubleLE=function(t,r,n){return x(this,t,r,!0,n)},f.prototype.writeDoubleBE=function(t,r,n){return x(this,t,r,!1,n)},f.prototype.copy=function(t,r,n,e){if(n||(n=0),e||0===e||(e=this.length),r>=t.length&&(r=t.length),r||(r=0),e>0&&e<n&&(e=n),e===n)return 0;if(0===t.length||0===this.length)return 0;if(r<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(e<0)throw new RangeError("sourceEnd out of bounds");e>this.length&&(e=this.length),t.length-r<e-n&&(e=t.length-r+n);var i,o=e-n;if(this===t&&n<r&&r<e)for(i=o-1;i>=0;--i)t[i+r]=this[i+n];else if(o<1e3||!f.TYPED_ARRAY_SUPPORT)for(i=0;i<o;++i)t[i+r]=this[i+n];else Uint8Array.prototype.set.call(t,this.subarray(n,n+o),r);return o},f.prototype.fill=function(t,r,n,e){if("string"==typeof t){if("string"==typeof r?(e=r,r=0,n=this.length):"string"==typeof n&&(e=n,n=this.length),1===t.length){var i=t.charCodeAt(0);i<256&&(t=i)}if(void 0!==e&&"string"!=typeof e)throw new TypeError("encoding must be a string");if("string"==typeof e&&!f.isEncoding(e))throw new TypeError("Unknown encoding: "+e)}else"number"==typeof t&&(t&=255);if(r<0||this.length<r||this.length<n)throw new RangeError("Out of range index");if(n<=r)return this;var o;if(r>>>=0,n=void 0===n?this.length:n>>>0,t||(t=0),"number"==typeof t)for(o=r;o<n;++o)this[o]=t;else{var u=f.isBuffer(t)?t:K(new f(t,e).toString()),a=u.length;for(o=0;o<n-r;++o)this[o+r]=u[o%a]}return this};var k=/[^+\/0-9A-Za-z-_]/g;function N(t){return t<16?"0"+t.toString(16):t.toString(16)}function K(t,r){var n;r=r||1/0;for(var e=t.length,i=null,o=[],u=0;u<e;++u){if((n=t.charCodeAt(u))>55295&&n<57344){if(!i){if(n>56319){(r-=3)>-1&&o.push(239,191,189);continue}if(u+1===e){(r-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(r-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(r-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((r-=1)<0)break;o.push(n)}else if(n<2048){if((r-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((r-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((r-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function F(t){return e.toByteArray(function(t){if((t=function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}(t).replace(k,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function G(t,r,n,e){for(var i=0;i<e&&!(i+n>=r.length||i>=t.length);++i)r[i+n]=t[i];return i}}).call(this,n(6))},function(t,r){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,r,n){"use strict";r.byteLength=function(t){var r=c(t),n=r[0],e=r[1];return 3*(n+e)/4-e},r.toByteArray=function(t){var r,n,e=c(t),u=e[0],a=e[1],f=new o(function(t,r,n){return 3*(r+n)/4-n}(0,u,a)),s=0,h=a>0?u-4:u;for(n=0;n<h;n+=4)r=i[t.charCodeAt(n)]<<18|i[t.charCodeAt(n+1)]<<12|i[t.charCodeAt(n+2)]<<6|i[t.charCodeAt(n+3)],f[s++]=r>>16&255,f[s++]=r>>8&255,f[s++]=255&r;2===a&&(r=i[t.charCodeAt(n)]<<2|i[t.charCodeAt(n+1)]>>4,f[s++]=255&r);1===a&&(r=i[t.charCodeAt(n)]<<10|i[t.charCodeAt(n+1)]<<4|i[t.charCodeAt(n+2)]>>2,f[s++]=r>>8&255,f[s++]=255&r);return f},r.fromByteArray=function(t){for(var r,n=t.length,i=n%3,o=[],u=0,a=n-i;u<a;u+=16383)o.push(s(t,u,u+16383>a?a:u+16383));1===i?(r=t[n-1],o.push(e[r>>2]+e[r<<4&63]+"==")):2===i&&(r=(t[n-2]<<8)+t[n-1],o.push(e[r>>10]+e[r>>4&63]+e[r<<2&63]+"="));return o.join("")};for(var e=[],i=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,u="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,f=u.length;a<f;++a)e[a]=u[a],i[u.charCodeAt(a)]=a;function c(t){var r=t.length;if(r%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=t.indexOf("=");return-1===n&&(n=r),[n,n===r?0:4-n%4]}function s(t,r,n){for(var i,o,u=[],a=r;a<n;a+=3)i=(t[a]<<16&16711680)+(t[a+1]<<8&65280)+(255&t[a+2]),u.push(e[(o=i)>>18&63]+e[o>>12&63]+e[o>>6&63]+e[63&o]);return u.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},function(t,r){r.read=function(t,r,n,e,i){var o,u,a=8*i-e-1,f=(1<<a)-1,c=f>>1,s=-7,h=n?i-1:0,l=n?-1:1,p=t[r+h];for(h+=l,o=p&(1<<-s)-1,p>>=-s,s+=a;s>0;o=256*o+t[r+h],h+=l,s-=8);for(u=o&(1<<-s)-1,o>>=-s,s+=e;s>0;u=256*u+t[r+h],h+=l,s-=8);if(0===o)o=1-c;else{if(o===f)return u?NaN:1/0*(p?-1:1);u+=Math.pow(2,e),o-=c}return(p?-1:1)*u*Math.pow(2,o-e)},r.write=function(t,r,n,e,i,o){var u,a,f,c=8*o-i-1,s=(1<<c)-1,h=s>>1,l=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,p=e?0:o-1,y=e?1:-1,d=r<0||0===r&&1/r<0?1:0;for(r=Math.abs(r),isNaN(r)||r===1/0?(a=isNaN(r)?1:0,u=s):(u=Math.floor(Math.log(r)/Math.LN2),r*(f=Math.pow(2,-u))<1&&(u--,f*=2),(r+=u+h>=1?l/f:l*Math.pow(2,1-h))*f>=2&&(u++,f/=2),u+h>=s?(a=0,u=s):u+h>=1?(a=(r*f-1)*Math.pow(2,i),u+=h):(a=r*Math.pow(2,h-1)*Math.pow(2,i),u=0));i>=8;t[n+p]=255&a,p+=y,a/=256,i-=8);for(u=u<<i|a,c+=i;c>0;t[n+p]=255&u,p+=y,u/=256,c-=8);t[n+p-y]|=128*d}},function(t,r){var n={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==n.call(t)}},function(t,r,n){"use strict";n.r(r);var e=n(2),i=n(1),o=n(0);function u(t,r){return function(t){if(Array.isArray(t))return t}(t)||function(t,r){if(!(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t)))return;var n=[],e=!0,i=!1,o=void 0;try{for(var u,a=t[Symbol.iterator]();!(e=(u=a.next()).done)&&(n.push(u.value),!r||n.length!==r);e=!0);}catch(t){i=!0,o=t}finally{try{e||null==a.return||a.return()}finally{if(i)throw o}}return n}(t,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function a(t,r,n){return n?r?r(t):t:(t&&t.then||(t=Promise.resolve(t)),r?t.then(r):t)}function f(t){return function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];try{return Promise.resolve(t.apply(this,r))}catch(t){return Promise.reject(t)}}}var c=f((function(t){if(t<=0)throw new Error("Failed generating salt: Invalid length supplied: ".concat(t));for(var r=m(),n="";n.length<t;){var e=new Uint8Array(3);r.getRandomValues(e);var i=e.reduce((function(t,r){return t+String.fromCharCode(r)}),"");(n+=btoa(i)).length>t&&(n=n.substr(0,t))}return n})),s=f((function(){var t=new Uint8Array(16);return m().getRandomValues(t),t.buffer})),h=f((function(t,r,n){var i=m(),f=r.rounds,c=new Uint8Array(n),s=Object(o.c)(n),h="string"==typeof t,l=h?Object(o.i)(t):t;return a(i.subtle.importKey("raw",r.key,{name:g},!1,["encrypt"]),(function(t){return a(i.subtle.encrypt({name:g,iv:c,additionalData:Object(o.i)("".concat(s).concat(r.salt))},t,l),(function(t){var n,i,a,c,l=u((i=v/8,a=(n=t).slice(0,n.byteLength-i),c=n.slice(n.byteLength-i),[a,c]),2),p=l[0],y=l[1],d=Object(o.c)(y),g=h?Object(o.b)(p):p,w={method:e.a.GCM,iv:s,salt:r.salt,rounds:f,content:g,auth:d};return w}))}))})),l=f((function(t,r,n){var i=m(),u=r.rounds,f=r.salt,c=new Uint16Array(n),s=Object(o.c)(n),h="string"==typeof t,l=h?Object(o.i)(t):t;return a(i.subtle.importKey("raw",r.key,{name:d},!1,["encrypt"]),(function(t){return a(i.subtle.importKey("raw",r.hmac,{name:b,hash:w},!1,["sign"]),(function(r){return a(i.subtle.encrypt({name:d,iv:c},t,l),(function(t){var n=h?Object(o.b)(t):t,i=h?Object(o.i)("".concat(n).concat(s).concat(f)):Object(o.g)([n,Object(o.i)(s),Object(o.i)(f)]);return a(window.crypto.subtle.sign(b,r,i),(function(t){var r=Object(o.c)(t),i={method:e.a.CBC,auth:r,iv:s,salt:f,rounds:u,content:n};return i}))}))}))}))})),p=f((function(t,r){var n=m(),e=t.auth,i=t.content,u=t.iv,f=t.salt,c=Object(o.h)(u),s=Object(o.h)(e),h="string"==typeof i,l=h?Object(o.g)([Object(o.f)(i),s]):Object(o.g)([i,s]);return a(n.subtle.importKey("raw",r.key,{name:g},!1,["decrypt"]),(function(t){return a(n.subtle.decrypt({name:g,iv:c,additionalData:Object(o.i)("".concat(u).concat(f))},t,l),(function(t){return h?Object(o.d)(t):t}))}))})),y=f((function(t,r){var n=m(),e=t.auth,i=t.content,u=t.iv,f=t.salt,c=Object(o.h)(u),s=Object(o.i)(u),h=Object(o.i)(f),l=Object(o.h)(e),p="string"==typeof i,y=p?Object(o.f)(i):i;return a(n.subtle.importKey("raw",r.key,{name:d},!1,["decrypt"]),(function(t){return a(n.subtle.importKey("raw",r.hmac,{name:b,hash:w},!1,["verify"]),(function(r){var e=p?Object(o.i)("".concat(i).concat(u).concat(f)):Object(o.g)([y,s,h]);return a(n.subtle.verify(b,r,l,e),(function(r){if(!r)throw new Error("Authentication failed while decrypting content");return a(n.subtle.decrypt({name:d,iv:c},t,y),(function(t){return p?Object(o.d)(t):t}))}))}))}))})),d="AES-CBC",g="AES-GCM",v=128,w="SHA-256",b="HMAC";function m(){return window.crypto||window.msCrypto}function A(t,r){return function(t){if(Array.isArray(t))return t}(t)||function(t,r){if(!(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t)))return;var n=[],e=!0,i=!1,o=void 0;try{for(var u,a=t[Symbol.iterator]();!(e=(u=a.next()).done)&&(n.push(u.value),!r||n.length!==r);e=!0);}catch(t){i=!0,o=t}finally{try{e||null==a.return||a.return()}finally{if(i)throw o}}return n}(t,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function E(t,r,n){return n?r?r(t):t:(t&&t.then||(t=Promise.resolve(t)),r?t.then(r):t)}function _(t){return function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];try{return Promise.resolve(t.apply(this,r))}catch(t){return Promise.reject(t)}}}var O=_((function(t,r,n,e){!function(){if(!window.TextEncoder||!window.TextDecoder)throw new Error("TextEncoder is not available")}();var i=window.crypto.subtle,u={name:"PBKDF2",hash:"SHA-256",salt:Object(o.i)(r),iterations:n},a=e/8/2;return E(i.importKey("raw",Object(o.i)(t),{name:"PBKDF2"},!1,["deriveBits"]),(function(t){return E(i.deriveBits(u,t,e),(function(t){return E(Promise.all([i.importKey("raw",t.slice(0,a),"AES-CBC",!0,["encrypt","decrypt"]),i.importKey("raw",t.slice(a,2*a),"AES-CBC",!0,["encrypt","decrypt"])]),(function(t){var r=A(t,2),n=r[0],e=r[1];return E(Promise.all([i.exportKey("raw",n),i.exportKey("raw",e)]),(function(t){var r=A(t,2),n=r[0],e=r[1];return Object(o.g)([n,e])}))}))}))}))})),R=_((function(t,r,n){var e=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];if(!t)throw new Error("Failed deriving key: Password must be provided");if(!r)throw new Error("Failed deriving key: Salt must be provided");if(!n||n<=0)throw new Error("Failed deriving key: Rounds must be greater than 0");var u=e?8*(i.h+i.d):8*i.h;return E(O(t,r,n,u),(function(t){var i=Object(o.c)(t),u=i.length,a=e?Object(o.h)(i.substr(0,u/2)):Object(o.h)(i);return{salt:r,key:a,rounds:n,hmac:e?Object(o.h)(i.substr(u/2,u/2)):null}}))}));function S(t,r){return function(t){if(Array.isArray(t))return t}(t)||function(t,r){if(!(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t)))return;var n=[],e=!0,i=!1,o=void 0;try{for(var u,a=t[Symbol.iterator]();!(e=(u=a.next()).done)&&(n.push(u.value),!r||n.length!==r);e=!0);}catch(t){i=!0,o=t}finally{try{e||null==a.return||a.return()}finally{if(i)throw o}}return n}(t,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var P=1e3;function T(t){return[t.content,t.iv,t.salt,t.auth,t.rounds,t.method].join("$")}function j(t){var r=S(t.split("$"),6),n=r[0],e=r[1],o=r[2],u=r[3],a=r[4],f=r[5];return{content:n,iv:e,salt:o,auth:u,rounds:a?parseInt(a,10):P,method:f||i.a}}var B=n(4);function C(t,r){return function(t){if(Array.isArray(t))return t}(t)||function(t,r){if(!(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t)))return;var n=[],e=!0,i=!1,o=void 0;try{for(var u,a=t[Symbol.iterator]();!(e=(u=a.next()).done)&&(n.push(u.value),!r||n.length!==r);e=!0);}catch(t){i=!0,o=t}finally{try{e||null==a.return||a.return()}finally{if(i)throw o}}return n}(t,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function U(t,r,n){return n?r?r(t):t:(t&&t.then||(t=Promise.resolve(t)),r?t.then(r):t)}var I=M((function(t,r,n){var o=t.algorithm,u=function(t,r){if(r===e.a.CBC)return t.encryptCBC;if(r===e.a.GCM)return t.encryptGCM;throw new Error("Invalid algorithm: ".concat(r))}(t,o);return U(t.generateSalt(i.i),(function(e){return U(Promise.all([t.deriveKey(n,e),t.generateIV()]),(function(n){var e=C(n,2),i=e[0],o=e[1];return U(u(r,i,o),(function(n){return"string"==typeof r?t.packText(n):t.packData(n)}))}))}))}));function M(t){return function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];try{return Promise.resolve(t.apply(this,r))}catch(t){return Promise.reject(t)}}}var D=M((function(t,r,n){var i=t.algorithm,o=t.derivationRounds;return R(r,n,o,i!==e.a.GCM)})),Y=M((function(t,r,n){var i="string"==typeof r?t.unpackText(r):t.unpackData(r),o=i.salt,u=i.rounds,a=i.method,f=function(t,r){if(r===e.a.CBC)return t.decryptCBC;if(r===e.a.GCM)return t.decryptGCM;throw new Error("Invalid algorithm: ".concat(r))}(t,a);return t.algorithm=a,t.derivationRounds=u,U(t.deriveKey(n,o),(function(t){return f(i,t)}))}));function L(){var t={algorithm:i.a,decrypt:function(r,n){return Y(t,r,n)},decryptCBC:y,decryptGCM:p,derivationRounds:i.c,deriveKey:function(r,n){return D(t,r,n)},encrypt:function(r,n){return I(t,r,n)},encryptCBC:l,encryptGCM:h,generateIV:s,generateSalt:c,packData:B.a,packText:T,setAlgorithm:function(r){return t.algorithm=r,t},setDerivationRounds:function(r){return t.derivationRounds=r,t},unpackData:B.b,unpackText:j};return t}n.d(r,"EncryptionAlgorithm",(function(){return e.a})),n.d(r,"ALGO_DEFAULT",(function(){return i.a})),n.d(r,"DERIVED_KEY_ALGORITHM",(function(){return i.b})),n.d(r,"DERIVED_KEY_ITERATIONS",(function(){return i.c})),n.d(r,"HMAC_KEY_SIZE",(function(){return i.d})),n.d(r,"NODE_ENC_ALGORITHM_CBC",(function(){return i.e})),n.d(r,"NODE_ENC_ALGORITHM_GCM",(function(){return i.f})),n.d(r,"NODE_HMAC_ALGORITHM",(function(){return i.g})),n.d(r,"PASSWORD_KEY_SIZE",(function(){return i.h})),n.d(r,"SALT_LENGTH",(function(){return i.i})),n.d(r,"SIZE_ENCODING_BYTES",(function(){return i.j})),n.d(r,"createAdapter",(function(){return L}))}])}));