(window["webpackjsonp"] = window["webpackjsonp"] || []).push([[65],{ /***/ 186: /***/ (function(module, exports, __webpack_require__) { "use strict"; const denylist = new set([ 'enotfound', 'enetunreach', // ssl errors from https://github.com/nodejs/node/blob/fc8e3e2cdc521978351de257030db0076d79e0ab/src/crypto/crypto_common.cc#l301-l328 'unable_to_get_issuer_cert', 'unable_to_get_crl', 'unable_to_decrypt_cert_signature', 'unable_to_decrypt_crl_signature', 'unable_to_decode_issuer_public_key', 'cert_signature_failure', 'crl_signature_failure', 'cert_not_yet_valid', 'cert_has_expired', 'crl_not_yet_valid', 'crl_has_expired', 'error_in_cert_not_before_field', 'error_in_cert_not_after_field', 'error_in_crl_last_update_field', 'error_in_crl_next_update_field', 'out_of_mem', 'depth_zero_self_signed_cert', 'self_signed_cert_in_chain', 'unable_to_get_issuer_cert_locally', 'unable_to_verify_leaf_signature', 'cert_chain_too_long', 'cert_revoked', 'invalid_ca', 'path_length_exceeded', 'invalid_purpose', 'cert_untrusted', 'cert_rejected', 'hostname_mismatch' ]); // todo: use `error?.code` when targeting node.js 14 module.exports = error => !denylist.has(error && error.code); /***/ }), /***/ 198: /***/ (function(module, exports, __webpack_require__) { /* webpack var injection */(function(process, global) {var __webpack_amd_define_result__;/** * [js-md5]{@link https://github.com/emn178/js-md5} * * @namespace md5 * @version 0.7.3 * @author chen, yi-cyuan [emn178@gmail.com] * @copyright chen, yi-cyuan 2014-2017 * @license mit */ (function () { 'use strict'; var error = 'input is invalid type'; var window = typeof window === 'object'; var root = window ? window : {}; if (root.js_md5_no_window) { window = false; } var web_worker = !window && typeof self === 'object'; var node_js = !root.js_md5_no_node_js && typeof process === 'object' && process.versions && process.versions.node; if (node_js) { root = global; } else if (web_worker) { root = self; } var common_js = !root.js_md5_no_common_js && typeof module === 'object' && module.exports; var amd = true && __webpack_require__(338); var array_buffer = !root.js_md5_no_array_buffer && typeof arraybuffer !== 'undefined'; var hex_chars = '0123456789abcdef'.split(''); var extra = [128, 32768, 8388608, -2147483648]; var shift = [0, 8, 16, 24]; var output_types = ['hex', 'array', 'digest', 'buffer', 'arraybuffer', 'base64']; var base64_encode_char = 'abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz0123456789+/'.split(''); var blocks = [], buffer8; if (array_buffer) { var buffer = new arraybuffer(68); buffer8 = new uint8array(buffer); blocks = new uint32array(buffer); } if (root.js_md5_no_node_js || !array.isarray) { array.isarray = function (obj) { return object.prototype.tostring.call(obj) === '[object array]'; }; } if (array_buffer && (root.js_md5_no_array_buffer_is_view || !arraybuffer.isview)) { arraybuffer.isview = function (obj) { return typeof obj === 'object' && obj.buffer && obj.buffer.constructor === arraybuffer; }; } /** * @method hex * @memberof md5 * @description output hash as hex string * @param {string|array|uint8array|arraybuffer} message message to hash * @returns {string} hex string * @example * md5.hex('the quick brown fox jumps over the lazy dog'); * // equal to * md5('the quick brown fox jumps over the lazy dog'); */ /** * @method digest * @memberof md5 * @description output hash as bytes array * @param {string|array|uint8array|arraybuffer} message message to hash * @returns {array} bytes array * @example * md5.digest('the quick brown fox jumps over the lazy dog'); */ /** * @method array * @memberof md5 * @description output hash as bytes array * @param {string|array|uint8array|arraybuffer} message message to hash * @returns {array} bytes array * @example * md5.array('the quick brown fox jumps over the lazy dog'); */ /** * @method arraybuffer * @memberof md5 * @description output hash as arraybuffer * @param {string|array|uint8array|arraybuffer} message message to hash * @returns {arraybuffer} arraybuffer * @example * md5.arraybuffer('the quick brown fox jumps over the lazy dog'); */ /** * @method buffer * @deprecated this maybe confuse with buffer in node.js. please use arraybuffer instead. * @memberof md5 * @description output hash as arraybuffer * @param {string|array|uint8array|arraybuffer} message message to hash * @returns {arraybuffer} arraybuffer * @example * md5.buffer('the quick brown fox jumps over the lazy dog'); */ /** * @method base64 * @memberof md5 * @description output hash as base64 string * @param {string|array|uint8array|arraybuffer} message message to hash * @returns {string} base64 string * @example * md5.base64('the quick brown fox jumps over the lazy dog'); */ var createoutputmethod = function (outputtype) { return function (message) { return new md5(true).update(message)[outputtype](); }; }; /** * @method create * @memberof md5 * @description create md5 object * @returns {md5} md5 object. * @example * var hash = md5.create(); */ /** * @method update * @memberof md5 * @description create and update md5 object * @param {string|array|uint8array|arraybuffer} message message to hash * @returns {md5} md5 object. * @example * var hash = md5.update('the quick brown fox jumps over the lazy dog'); * // equal to * var hash = md5.create(); * hash.update('the quick brown fox jumps over the lazy dog'); */ var createmethod = function () { var method = createoutputmethod('hex'); if (node_js) { method = nodewrap(method); } method.create = function () { return new md5(); }; method.update = function (message) { return method.create().update(message); }; for (var i = 0; i < output_types.length; ++i) { var type = output_types[i]; method[type] = createoutputmethod(type); } return method; }; var nodewrap = function (method) { var crypto = eval("require('crypto')"); var buffer = eval("require('buffer').buffer"); var nodemethod = function (message) { if (typeof message === 'string') { return crypto.createhash('md5').update(message, 'utf8').digest('hex'); } else { if (message === null || message === undefined) { throw error; } else if (message.constructor === arraybuffer) { message = new uint8array(message); } } if (array.isarray(message) || arraybuffer.isview(message) || message.constructor === buffer) { return crypto.createhash('md5').update(new buffer(message)).digest('hex'); } else { return method(message); } }; return nodemethod; }; /** * md5 class * @class md5 * @description this is internal class. * @see {@link md5.create} */ function md5(sharedmemory) { if (sharedmemory) { blocks[0] = blocks[16] = blocks[1] = blocks[2] = blocks[3] = blocks[4] = blocks[5] = blocks[6] = blocks[7] = blocks[8] = blocks[9] = blocks[10] = blocks[11] = blocks[12] = blocks[13] = blocks[14] = blocks[15] = 0; this.blocks = blocks; this.buffer8 = buffer8; } else { if (array_buffer) { var buffer = new arraybuffer(68); this.buffer8 = new uint8array(buffer); this.blocks = new uint32array(buffer); } else { this.blocks = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]; } } this.h0 = this.h1 = this.h2 = this.h3 = this.start = this.bytes = this.hbytes = 0; this.finalized = this.hashed = false; this.first = true; } /** * @method update * @memberof md5 * @instance * @description update hash * @param {string|array|uint8array|arraybuffer} message message to hash * @returns {md5} md5 object. * @see {@link md5.update} */ md5.prototype.update = function (message) { if (this.finalized) { return; } var notstring, type = typeof message; if (type !== 'string') { if (type === 'object') { if (message === null) { throw error; } else if (array_buffer && message.constructor === arraybuffer) { message = new uint8array(message); } else if (!array.isarray(message)) { if (!array_buffer || !arraybuffer.isview(message)) { throw error; } } } else { throw error; } notstring = true; } var code, index = 0, i, length = message.length, blocks = this.blocks; var buffer8 = this.buffer8; while (index < length) { if (this.hashed) { this.hashed = false; blocks[0] = blocks[16]; blocks[16] = blocks[1] = blocks[2] = blocks[3] = blocks[4] = blocks[5] = blocks[6] = blocks[7] = blocks[8] = blocks[9] = blocks[10] = blocks[11] = blocks[12] = blocks[13] = blocks[14] = blocks[15] = 0; } if (notstring) { if (array_buffer) { for (i = this.start; index < length && i < 64; ++index) { buffer8[i++] = message[index]; } } else { for (i = this.start; index < length && i < 64; ++index) { blocks[i >> 2] |= message[index] << shift[i++ & 3]; } } } else { if (array_buffer) { for (i = this.start; index < length && i < 64; ++index) { code = message.charcodeat(index); if (code < 0x80) { buffer8[i++] = code; } else if (code < 0x800) { buffer8[i++] = 0xc0 | (code >> 6); buffer8[i++] = 0x80 | (code & 0x3f); } else if (code < 0xd800 || code >= 0xe000) { buffer8[i++] = 0xe0 | (code >> 12); buffer8[i++] = 0x80 | ((code >> 6) & 0x3f); buffer8[i++] = 0x80 | (code & 0x3f); } else { code = 0x10000 + (((code & 0x3ff) << 10) | (message.charcodeat(++index) & 0x3ff)); buffer8[i++] = 0xf0 | (code >> 18); buffer8[i++] = 0x80 | ((code >> 12) & 0x3f); buffer8[i++] = 0x80 | ((code >> 6) & 0x3f); buffer8[i++] = 0x80 | (code & 0x3f); } } } else { for (i = this.start; index < length && i < 64; ++index) { code = message.charcodeat(index); if (code < 0x80) { blocks[i >> 2] |= code << shift[i++ & 3]; } else if (code < 0x800) { blocks[i >> 2] |= (0xc0 | (code >> 6)) << shift[i++ & 3]; blocks[i >> 2] |= (0x80 | (code & 0x3f)) << shift[i++ & 3]; } else if (code < 0xd800 || code >= 0xe000) { blocks[i >> 2] |= (0xe0 | (code >> 12)) << shift[i++ & 3]; blocks[i >> 2] |= (0x80 | ((code >> 6) & 0x3f)) << shift[i++ & 3]; blocks[i >> 2] |= (0x80 | (code & 0x3f)) << shift[i++ & 3]; } else { code = 0x10000 + (((code & 0x3ff) << 10) | (message.charcodeat(++index) & 0x3ff)); blocks[i >> 2] |= (0xf0 | (code >> 18)) << shift[i++ & 3]; blocks[i >> 2] |= (0x80 | ((code >> 12) & 0x3f)) << shift[i++ & 3]; blocks[i >> 2] |= (0x80 | ((code >> 6) & 0x3f)) << shift[i++ & 3]; blocks[i >> 2] |= (0x80 | (code & 0x3f)) << shift[i++ & 3]; } } } } this.lastbyteindex = i; this.bytes += i - this.start; if (i >= 64) { this.start = i - 64; this.hash(); this.hashed = true; } else { this.start = i; } } if (this.bytes > 4294967295) { this.hbytes += this.bytes / 4294967296 << 0; this.bytes = this.bytes % 4294967296; } return this; }; md5.prototype.finalize = function () { if (this.finalized) { return; } this.finalized = true; var blocks = this.blocks, i = this.lastbyteindex; blocks[i >> 2] |= extra[i & 3]; if (i >= 56) { if (!this.hashed) { this.hash(); } blocks[0] = blocks[16]; blocks[16] = blocks[1] = blocks[2] = blocks[3] = blocks[4] = blocks[5] = blocks[6] = blocks[7] = blocks[8] = blocks[9] = blocks[10] = blocks[11] = blocks[12] = blocks[13] = blocks[14] = blocks[15] = 0; } blocks[14] = this.bytes << 3; blocks[15] = this.hbytes << 3 | this.bytes >>> 29; this.hash(); }; md5.prototype.hash = function () { var a, b, c, d, bc, da, blocks = this.blocks; if (this.first) { a = blocks[0] - 680876937; a = (a << 7 | a >>> 25) - 271733879 << 0; d = (-1732584194 ^ a & 2004318071) + blocks[1] - 117830708; d = (d << 12 | d >>> 20) + a << 0; c = (-271733879 ^ (d & (a ^ -271733879))) + blocks[2] - 1126478375; c = (c << 17 | c >>> 15) + d << 0; b = (a ^ (c & (d ^ a))) + blocks[3] - 1316259209; b = (b << 22 | b >>> 10) + c << 0; } else { a = this.h0; b = this.h1; c = this.h2; d = this.h3; a += (d ^ (b & (c ^ d))) + blocks[0] - 680876936; a = (a << 7 | a >>> 25) + b << 0; d += (c ^ (a & (b ^ c))) + blocks[1] - 389564586; d = (d << 12 | d >>> 20) + a << 0; c += (b ^ (d & (a ^ b))) + blocks[2] + 606105819; c = (c << 17 | c >>> 15) + d << 0; b += (a ^ (c & (d ^ a))) + blocks[3] - 1044525330; b = (b << 22 | b >>> 10) + c << 0; } a += (d ^ (b & (c ^ d))) + blocks[4] - 176418897; a = (a << 7 | a >>> 25) + b << 0; d += (c ^ (a & (b ^ c))) + blocks[5] + 1200080426; d = (d << 12 | d >>> 20) + a << 0; c += (b ^ (d & (a ^ b))) + blocks[6] - 1473231341; c = (c << 17 | c >>> 15) + d << 0; b += (a ^ (c & (d ^ a))) + blocks[7] - 45705983; b = (b << 22 | b >>> 10) + c << 0; a += (d ^ (b & (c ^ d))) + blocks[8] + 1770035416; a = (a << 7 | a >>> 25) + b << 0; d += (c ^ (a & (b ^ c))) + blocks[9] - 1958414417; d = (d << 12 | d >>> 20) + a << 0; c += (b ^ (d & (a ^ b))) + blocks[10] - 42063; c = (c << 17 | c >>> 15) + d << 0; b += (a ^ (c & (d ^ a))) + blocks[11] - 1990404162; b = (b << 22 | b >>> 10) + c << 0; a += (d ^ (b & (c ^ d))) + blocks[12] + 1804603682; a = (a << 7 | a >>> 25) + b << 0; d += (c ^ (a & (b ^ c))) + blocks[13] - 40341101; d = (d << 12 | d >>> 20) + a << 0; c += (b ^ (d & (a ^ b))) + blocks[14] - 1502002290; c = (c << 17 | c >>> 15) + d << 0; b += (a ^ (c & (d ^ a))) + blocks[15] + 1236535329; b = (b << 22 | b >>> 10) + c << 0; a += (c ^ (d & (b ^ c))) + blocks[1] - 165796510; a = (a << 5 | a >>> 27) + b << 0; d += (b ^ (c & (a ^ b))) + blocks[6] - 1069501632; d = (d << 9 | d >>> 23) + a << 0; c += (a ^ (b & (d ^ a))) + blocks[11] + 643717713; c = (c << 14 | c >>> 18) + d << 0; b += (d ^ (a & (c ^ d))) + blocks[0] - 373897302; b = (b << 20 | b >>> 12) + c << 0; a += (c ^ (d & (b ^ c))) + blocks[5] - 701558691; a = (a << 5 | a >>> 27) + b << 0; d += (b ^ (c & (a ^ b))) + blocks[10] + 38016083; d = (d << 9 | d >>> 23) + a << 0; c += (a ^ (b & (d ^ a))) + blocks[15] - 660478335; c = (c << 14 | c >>> 18) + d << 0; b += (d ^ (a & (c ^ d))) + blocks[4] - 405537848; b = (b << 20 | b >>> 12) + c << 0; a += (c ^ (d & (b ^ c))) + blocks[9] + 568446438; a = (a << 5 | a >>> 27) + b << 0; d += (b ^ (c & (a ^ b))) + blocks[14] - 1019803690; d = (d << 9 | d >>> 23) + a << 0; c += (a ^ (b & (d ^ a))) + blocks[3] - 187363961; c = (c << 14 | c >>> 18) + d << 0; b += (d ^ (a & (c ^ d))) + blocks[8] + 1163531501; b = (b << 20 | b >>> 12) + c << 0; a += (c ^ (d & (b ^ c))) + blocks[13] - 1444681467; a = (a << 5 | a >>> 27) + b << 0; d += (b ^ (c & (a ^ b))) + blocks[2] - 51403784; d = (d << 9 | d >>> 23) + a << 0; c += (a ^ (b & (d ^ a))) + blocks[7] + 1735328473; c = (c << 14 | c >>> 18) + d << 0; b += (d ^ (a & (c ^ d))) + blocks[12] - 1926607734; b = (b << 20 | b >>> 12) + c << 0; bc = b ^ c; a += (bc ^ d) + blocks[5] - 378558; a = (a << 4 | a >>> 28) + b << 0; d += (bc ^ a) + blocks[8] - 2022574463; d = (d << 11 | d >>> 21) + a << 0; da = d ^ a; c += (da ^ b) + blocks[11] + 1839030562; c = (c << 16 | c >>> 16) + d << 0; b += (da ^ c) + blocks[14] - 35309556; b = (b << 23 | b >>> 9) + c << 0; bc = b ^ c; a += (bc ^ d) + blocks[1] - 1530992060; a = (a << 4 | a >>> 28) + b << 0; d += (bc ^ a) + blocks[4] + 1272893353; d = (d << 11 | d >>> 21) + a << 0; da = d ^ a; c += (da ^ b) + blocks[7] - 155497632; c = (c << 16 | c >>> 16) + d << 0; b += (da ^ c) + blocks[10] - 1094730640; b = (b << 23 | b >>> 9) + c << 0; bc = b ^ c; a += (bc ^ d) + blocks[13] + 681279174; a = (a << 4 | a >>> 28) + b << 0; d += (bc ^ a) + blocks[0] - 358537222; d = (d << 11 | d >>> 21) + a << 0; da = d ^ a; c += (da ^ b) + blocks[3] - 722521979; c = (c << 16 | c >>> 16) + d << 0; b += (da ^ c) + blocks[6] + 76029189; b = (b << 23 | b >>> 9) + c << 0; bc = b ^ c; a += (bc ^ d) + blocks[9] - 640364487; a = (a << 4 | a >>> 28) + b << 0; d += (bc ^ a) + blocks[12] - 421815835; d = (d << 11 | d >>> 21) + a << 0; da = d ^ a; c += (da ^ b) + blocks[15] + 530742520; c = (c << 16 | c >>> 16) + d << 0; b += (da ^ c) + blocks[2] - 995338651; b = (b << 23 | b >>> 9) + c << 0; a += (c ^ (b | ~d)) + blocks[0] - 198630844; a = (a << 6 | a >>> 26) + b << 0; d += (b ^ (a | ~c)) + blocks[7] + 1126891415; d = (d << 10 | d >>> 22) + a << 0; c += (a ^ (d | ~b)) + blocks[14] - 1416354905; c = (c << 15 | c >>> 17) + d << 0; b += (d ^ (c | ~a)) + blocks[5] - 57434055; b = (b << 21 | b >>> 11) + c << 0; a += (c ^ (b | ~d)) + blocks[12] + 1700485571; a = (a << 6 | a >>> 26) + b << 0; d += (b ^ (a | ~c)) + blocks[3] - 1894986606; d = (d << 10 | d >>> 22) + a << 0; c += (a ^ (d | ~b)) + blocks[10] - 1051523; c = (c << 15 | c >>> 17) + d << 0; b += (d ^ (c | ~a)) + blocks[1] - 2054922799; b = (b << 21 | b >>> 11) + c << 0; a += (c ^ (b | ~d)) + blocks[8] + 1873313359; a = (a << 6 | a >>> 26) + b << 0; d += (b ^ (a | ~c)) + blocks[15] - 30611744; d = (d << 10 | d >>> 22) + a << 0; c += (a ^ (d | ~b)) + blocks[6] - 1560198380; c = (c << 15 | c >>> 17) + d << 0; b += (d ^ (c | ~a)) + blocks[13] + 1309151649; b = (b << 21 | b >>> 11) + c << 0; a += (c ^ (b | ~d)) + blocks[4] - 145523070; a = (a << 6 | a >>> 26) + b << 0; d += (b ^ (a | ~c)) + blocks[11] - 1120210379; d = (d << 10 | d >>> 22) + a << 0; c += (a ^ (d | ~b)) + blocks[2] + 718787259; c = (c << 15 | c >>> 17) + d << 0; b += (d ^ (c | ~a)) + blocks[9] - 343485551; b = (b << 21 | b >>> 11) + c << 0; if (this.first) { this.h0 = a + 1732584193 << 0; this.h1 = b - 271733879 << 0; this.h2 = c - 1732584194 << 0; this.h3 = d + 271733878 << 0; this.first = false; } else { this.h0 = this.h0 + a << 0; this.h1 = this.h1 + b << 0; this.h2 = this.h2 + c << 0; this.h3 = this.h3 + d << 0; } }; /** * @method hex * @memberof md5 * @instance * @description output hash as hex string * @returns {string} hex string * @see {@link md5.hex} * @example * hash.hex(); */ md5.prototype.hex = function () { this.finalize(); var h0 = this.h0, h1 = this.h1, h2 = this.h2, h3 = this.h3; return hex_chars[(h0 >> 4) & 0x0f] + hex_chars[h0 & 0x0f] + hex_chars[(h0 >> 12) & 0x0f] + hex_chars[(h0 >> 8) & 0x0f] + hex_chars[(h0 >> 20) & 0x0f] + hex_chars[(h0 >> 16) & 0x0f] + hex_chars[(h0 >> 28) & 0x0f] + hex_chars[(h0 >> 24) & 0x0f] + hex_chars[(h1 >> 4) & 0x0f] + hex_chars[h1 & 0x0f] + hex_chars[(h1 >> 12) & 0x0f] + hex_chars[(h1 >> 8) & 0x0f] + hex_chars[(h1 >> 20) & 0x0f] + hex_chars[(h1 >> 16) & 0x0f] + hex_chars[(h1 >> 28) & 0x0f] + hex_chars[(h1 >> 24) & 0x0f] + hex_chars[(h2 >> 4) & 0x0f] + hex_chars[h2 & 0x0f] + hex_chars[(h2 >> 12) & 0x0f] + hex_chars[(h2 >> 8) & 0x0f] + hex_chars[(h2 >> 20) & 0x0f] + hex_chars[(h2 >> 16) & 0x0f] + hex_chars[(h2 >> 28) & 0x0f] + hex_chars[(h2 >> 24) & 0x0f] + hex_chars[(h3 >> 4) & 0x0f] + hex_chars[h3 & 0x0f] + hex_chars[(h3 >> 12) & 0x0f] + hex_chars[(h3 >> 8) & 0x0f] + hex_chars[(h3 >> 20) & 0x0f] + hex_chars[(h3 >> 16) & 0x0f] + hex_chars[(h3 >> 28) & 0x0f] + hex_chars[(h3 >> 24) & 0x0f]; }; /** * @method tostring * @memberof md5 * @instance * @description output hash as hex string * @returns {string} hex string * @see {@link md5.hex} * @example * hash.tostring(); */ md5.prototype.tostring = md5.prototype.hex; /** * @method digest * @memberof md5 * @instance * @description output hash as bytes array * @returns {array} bytes array * @see {@link md5.digest} * @example * hash.digest(); */ md5.prototype.digest = function () { this.finalize(); var h0 = this.h0, h1 = this.h1, h2 = this.h2, h3 = this.h3; return [ h0 & 0xff, (h0 >> 8) & 0xff, (h0 >> 16) & 0xff, (h0 >> 24) & 0xff, h1 & 0xff, (h1 >> 8) & 0xff, (h1 >> 16) & 0xff, (h1 >> 24) & 0xff, h2 & 0xff, (h2 >> 8) & 0xff, (h2 >> 16) & 0xff, (h2 >> 24) & 0xff, h3 & 0xff, (h3 >> 8) & 0xff, (h3 >> 16) & 0xff, (h3 >> 24) & 0xff ]; }; /** * @method array * @memberof md5 * @instance * @description output hash as bytes array * @returns {array} bytes array * @see {@link md5.array} * @example * hash.array(); */ md5.prototype.array = md5.prototype.digest; /** * @method arraybuffer * @memberof md5 * @instance * @description output hash as arraybuffer * @returns {arraybuffer} arraybuffer * @see {@link md5.arraybuffer} * @example * hash.arraybuffer(); */ md5.prototype.arraybuffer = function () { this.finalize(); var buffer = new arraybuffer(16); var blocks = new uint32array(buffer); blocks[0] = this.h0; blocks[1] = this.h1; blocks[2] = this.h2; blocks[3] = this.h3; return buffer; }; /** * @method buffer * @deprecated this maybe confuse with buffer in node.js. please use arraybuffer instead. * @memberof md5 * @instance * @description output hash as arraybuffer * @returns {arraybuffer} arraybuffer * @see {@link md5.buffer} * @example * hash.buffer(); */ md5.prototype.buffer = md5.prototype.arraybuffer; /** * @method base64 * @memberof md5 * @instance * @description output hash as base64 string * @returns {string} base64 string * @see {@link md5.base64} * @example * hash.base64(); */ md5.prototype.base64 = function () { var v1, v2, v3, base64str = '', bytes = this.array(); for (var i = 0; i < 15;) { v1 = bytes[i++]; v2 = bytes[i++]; v3 = bytes[i++]; base64str += base64_encode_char[v1 >>> 2] + base64_encode_char[(v1 << 4 | v2 >>> 4) & 63] + base64_encode_char[(v2 << 2 | v3 >>> 6) & 63] + base64_encode_char[v3 & 63]; } v1 = bytes[i]; base64str += base64_encode_char[v1 >>> 2] + base64_encode_char[(v1 << 4) & 63] + '=='; return base64str; }; var exports = createmethod(); if (common_js) { module.exports = exports; } else { /** * @method md5 * @description md5 hash function, export to global in browsers. * @param {string|array|uint8array|arraybuffer} message message to hash * @returns {string} md5 hashes * @example * md5(''); // d41d8cd98f00b204e9800998ecf8427e * md5('the quick brown fox jumps over the lazy dog'); // 9e107d9d372bb6826bd81d3542a419d6 * md5('the quick brown fox jumps over the lazy dog.'); // e4d909c290d0fb1ca068ffaddf22cbd0 * * // it also supports utf-8 encoding * md5('中文'); // a7bac2239fcdcb3a067903d8077c4a07 * * // it also supports byte `array`, `uint8array`, `arraybuffer` * md5([]); // d41d8cd98f00b204e9800998ecf8427e * md5(new uint8array([])); // d41d8cd98f00b204e9800998ecf8427e */ root.md5 = exports; if (amd) { !(__webpack_amd_define_result__ = (function () { return exports; }).call(exports, __webpack_require__, exports, module), __webpack_amd_define_result__ !== undefined && (module.exports = __webpack_amd_define_result__)); } } })(); /* webpack var injection */}.call(this, __webpack_require__(106), __webpack_require__(15))) /***/ }), /***/ 311: /***/ (function(module, exports) { module.exports = isfunction var tostring = object.prototype.tostring function isfunction (fn) { if (!fn) { return false } var string = tostring.call(fn) return string === '[object function]' || (typeof fn === 'function' && string !== '[object regexp]') || (typeof window !== 'undefined' && // ie8 and below (fn === window.settimeout || fn === window.alert || fn === window.confirm || fn === window.prompt)) }; /***/ }), /***/ 319: /***/ (function(module, exports) { /*! ieee754. bsd-3-clause license. feross aboukhadijeh */ exports.read = function (buffer, offset, isle, mlen, nbytes) { var e, m var elen = (nbytes * 8) - mlen - 1 var emax = (1 << elen) - 1 var ebias = emax >> 1 var nbits = -7 var i = isle ? (nbytes - 1) : 0 var d = isle ? -1 : 1 var s = buffer[offset + i] i += d e = s & ((1 << (-nbits)) - 1) s >>= (-nbits) nbits += elen for (; nbits > 0; e = (e * 256) + buffer[offset + i], i += d, nbits -= 8) {} m = e & ((1 << (-nbits)) - 1) e >>= (-nbits) nbits += mlen for (; nbits > 0; m = (m * 256) + buffer[offset + i], i += d, nbits -= 8) {} if (e === 0) { e = 1 - ebias } else if (e === emax) { return m ? nan : ((s ? -1 : 1) * infinity) } else { m = m + math.pow(2, mlen) e = e - ebias } return (s ? -1 : 1) * m * math.pow(2, e - mlen) } exports.write = function (buffer, value, offset, isle, mlen, nbytes) { var e, m, c var elen = (nbytes * 8) - mlen - 1 var emax = (1 << elen) - 1 var ebias = emax >> 1 var rt = (mlen === 23 ? math.pow(2, -24) - math.pow(2, -77) : 0) var i = isle ? 0 : (nbytes - 1) var d = isle ? 1 : -1 var s = value < 0 || (value === 0 && 1 / value < 0) ? 1 : 0 value = math.abs(value) if (isnan(value) || value === infinity) { m = isnan(value) ? 1 : 0 e = emax } else { e = math.floor(math.log(value) / math.ln2) if (value * (c = math.pow(2, -e)) < 1) { e-- c *= 2 } if (e + ebias >= 1) { value += rt / c } else { value += rt * math.pow(2, 1 - ebias) } if (value * c >= 2) { e++ c /= 2 } if (e + ebias >= emax) { m = 0 e = emax } else if (e + ebias >= 1) { m = ((value * c) - 1) * math.pow(2, mlen) e = e + ebias } else { m = value * math.pow(2, ebias - 1) * math.pow(2, mlen) e = 0 } } for (; mlen >= 8; buffer[offset + i] = m & 0xff, i += d, m /= 256, mlen -= 8) {} e = (e << mlen) | m elen += mlen for (; elen > 0; buffer[offset + i] = e & 0xff, i += d, e /= 256, elen -= 8) {} buffer[offset + i - d] |= s * 128 } /***/ }), /***/ 320: /***/ (function(module, exports) { var tostring = {}.tostring; module.exports = array.isarray || function (arr) { return tostring.call(arr) == '[object array]'; }; /***/ }), /***/ 329: /***/ (function(module, exports, __webpack_require__) { "use strict"; var origsymbol = typeof symbol !== 'undefined' && symbol; var hassymbolsham = __webpack_require__(330); module.exports = function hasnativesymbols() { if (typeof origsymbol !== 'function') { return false; } if (typeof symbol !== 'function') { return false; } if (typeof origsymbol('foo') !== 'symbol') { return false; } if (typeof symbol('bar') !== 'symbol') { return false; } return hassymbolsham(); }; /***/ }), /***/ 330: /***/ (function(module, exports, __webpack_require__) { "use strict"; /* eslint complexity: [2, 18], max-statements: [2, 33] */ module.exports = function hassymbols() { if (typeof symbol !== 'function' || typeof object.getownpropertysymbols !== 'function') { return false; } if (typeof symbol.iterator === 'symbol') { return true; } var obj = {}; var sym = symbol('test'); var symobj = object(sym); if (typeof sym === 'string') { return false; } if (object.prototype.tostring.call(sym) !== '[object symbol]') { return false; } if (object.prototype.tostring.call(symobj) !== '[object symbol]') { return false; } // temp disabled per https://github.com/ljharb/object.assign/issues/17 // if (sym instanceof symbol) { return false; } // temp disabled per https://github.com/webreflection/get-own-property-symbols/issues/4 // if (!(symobj instanceof symbol)) { return false; } // if (typeof symbol.prototype.tostring !== 'function') { return false; } // if (string(sym) !== symbol.prototype.tostring.call(sym)) { return false; } var symval = 42; obj[sym] = symval; for (sym in obj) { return false; } // eslint-disable-line no-restricted-syntax, no-unreachable-loop if (typeof object.keys === 'function' && object.keys(obj).length !== 0) { return false; } if (typeof object.getownpropertynames === 'function' && object.getownpropertynames(obj).length !== 0) { return false; } var syms = object.getownpropertysymbols(obj); if (syms.length !== 1 || syms[0] !== sym) { return false; } if (!object.prototype.propertyisenumerable.call(obj, sym)) { return false; } if (typeof object.getownpropertydescriptor === 'function') { var descriptor = object.getownpropertydescriptor(obj, sym); if (descriptor.value !== symval || descriptor.enumerable !== true) { return false; } } return true; }; /***/ }), /***/ 332: /***/ (function(module, exports, __webpack_require__) { "use strict"; var bind = __webpack_require__(111); module.exports = bind.call(function.call, object.prototype.hasownproperty); /***/ }) }]);