From d9e5e28cd31955cc911caa92311f3c0d4f554fba Mon Sep 17 00:00:00 2001 From: greenkeeperio-bot Date: Tue, 1 Mar 2016 11:33:39 +0100 Subject: [PATCH 1/6] chore(package): update gulp-filter to version 4.0.0 http://greenkeeper.io/ --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 4efe054c3..063d7d97b 100644 --- a/package.json +++ b/package.json @@ -39,7 +39,7 @@ "gulp": "^3.9.0", "gulp-bump": "^1.0.0", "gulp-eslint": "^2.0.0-rc-3", - "gulp-filter": "^3.0.1", + "gulp-filter": "^4.0.0", "gulp-git": "^1.6.0", "gulp-load-plugins": "^1.0.0", "gulp-mocha": "^2.1.3", From e295e8fd4efe71751a46ea9a07eb530eb2c7c0a2 Mon Sep 17 00:00:00 2001 From: Francisco Baio Dias Date: Tue, 1 Mar 2016 11:18:27 +0000 Subject: [PATCH 2/6] Avoid crash for responses without 'content-type' header --- src/request-api.js | 2 +- test/request-api.spec.js | 19 +++++++++++++++++++ 2 files changed, 20 insertions(+), 1 deletion(-) diff --git a/src/request-api.js b/src/request-api.js index eb8aa5908..7bf6336eb 100644 --- a/src/request-api.js +++ b/src/request-api.js @@ -25,7 +25,7 @@ function onRes (buffer, cb) { const stream = !!res.headers['x-stream-output'] const chunkedObjects = !!res.headers['x-chunked-output'] - const isJson = res.headers['content-type'].indexOf('application/json') === 0 + const isJson = res.headers['content-type'] && res.headers['content-type'].indexOf('application/json') === 0 if (res.statusCode >= 400 || !res.statusCode) { const error = new Error(`Server responded with ${res.statusCode}`) diff --git a/test/request-api.spec.js b/test/request-api.spec.js index d50126853..788c32453 100644 --- a/test/request-api.spec.js +++ b/test/request-api.spec.js @@ -41,5 +41,24 @@ describe('ipfsAPI request tests', () => { protocol: 'http' }).id(noop) }) + + it('does not crash if no content-type header is provided', (done) => { + if (!isNode) { + return done() + } + + // go-ipfs always (currently) adds a content-type header, even if no content is present, + // the standard behaviour for an http-api is to omit this header if no content is present + const server = require('http').createServer((req, res) => { + res.writeHead(200) + res.end() + }).listen(6001, () => { + ipfsAPI('/ip4/127.0.0.1/tcp/6001') + .config.replace('test/r-config.json', (err) => { + expect(err).to.be.equal(null) + server.close(done) + }) + }) + }) }) }) From f2b664c75640480361867ade687ed27bdd65761f Mon Sep 17 00:00:00 2001 From: David Dias Date: Tue, 1 Mar 2016 11:33:02 +0000 Subject: [PATCH 3/6] chore: build --- dist/ipfsapi.js | 4 ++-- dist/ipfsapi.min.js | 26 +++++++++++++------------- 2 files changed, 15 insertions(+), 15 deletions(-) diff --git a/dist/ipfsapi.js b/dist/ipfsapi.js index bb9798e6d..286941b2c 100644 --- a/dist/ipfsapi.js +++ b/dist/ipfsapi.js @@ -1287,13 +1287,13 @@ var ipfsAPI = /* 207 */ /***/ function(module, exports) { - eval("module.exports = {\n\t\"name\": \"ipfs-api\",\n\t\"version\": \"2.13.0\",\n\t\"description\": \"A client library for the IPFS API\",\n\t\"main\": \"src/index.js\",\n\t\"dependencies\": {\n\t\t\"merge-stream\": \"^1.0.0\",\n\t\t\"multiaddr\": \"^1.0.0\",\n\t\t\"multipart-stream\": \"^2.0.0\",\n\t\t\"ndjson\": \"^1.4.3\",\n\t\t\"qs\": \"^6.0.0\",\n\t\t\"require-dir\": \"^0.3.0\",\n\t\t\"vinyl\": \"^1.1.0\",\n\t\t\"vinyl-fs-browser\": \"^2.1.1-1\",\n\t\t\"vinyl-multipart-stream\": \"^1.2.6\",\n\t\t\"wreck\": \"^7.0.0\"\n\t},\n\t\"engines\": {\n\t\t\"node\": \">=4.2.2\"\n\t},\n\t\"repository\": {\n\t\t\"type\": \"git\",\n\t\t\"url\": \"https://github.com/ipfs/js-ipfs-api\"\n\t},\n\t\"devDependencies\": {\n\t\t\"babel-core\": \"^6.1.21\",\n\t\t\"babel-eslint\": \"^5.0.0-beta9\",\n\t\t\"babel-loader\": \"^6.2.0\",\n\t\t\"babel-plugin-transform-runtime\": \"^6.1.18\",\n\t\t\"babel-preset-es2015\": \"^6.0.15\",\n\t\t\"babel-runtime\": \"^6.3.19\",\n\t\t\"chai\": \"^3.4.1\",\n\t\t\"concurrently\": \"^1.0.0\",\n\t\t\"eslint\": \"^2.0.0-rc.0\",\n\t\t\"eslint-config-standard\": \"^5.1.0\",\n\t\t\"eslint-plugin-promise\": \"^1.0.8\",\n\t\t\"eslint-plugin-standard\": \"^1.3.1\",\n\t\t\"glob-stream\": \"5.3.1\",\n\t\t\"gulp\": \"^3.9.0\",\n\t\t\"gulp-bump\": \"^1.0.0\",\n\t\t\"gulp-eslint\": \"^2.0.0-rc-3\",\n\t\t\"gulp-filter\": \"^3.0.1\",\n\t\t\"gulp-git\": \"^1.6.0\",\n\t\t\"gulp-load-plugins\": \"^1.0.0\",\n\t\t\"gulp-mocha\": \"^2.1.3\",\n\t\t\"gulp-size\": \"^2.0.0\",\n\t\t\"gulp-tag-version\": \"^1.3.0\",\n\t\t\"gulp-util\": \"^3.0.7\",\n\t\t\"https-browserify\": \"0.0.1\",\n\t\t\"ipfsd-ctl\": \"^0.8.1\",\n\t\t\"json-loader\": \"^0.5.3\",\n\t\t\"karma\": \"^0.13.11\",\n\t\t\"karma-chrome-launcher\": \"^0.2.1\",\n\t\t\"karma-firefox-launcher\": \"^0.1.7\",\n\t\t\"karma-mocha\": \"^0.2.0\",\n\t\t\"karma-mocha-reporter\": \"^1.1.1\",\n\t\t\"karma-sauce-launcher\": \"^0.3.0\",\n\t\t\"karma-webpack\": \"^1.7.0\",\n\t\t\"mocha\": \"^2.3.3\",\n\t\t\"pre-commit\": \"^1.0.6\",\n\t\t\"raw-loader\": \"^0.5.1\",\n\t\t\"rimraf\": \"^2.4.5\",\n\t\t\"run-sequence\": \"^1.1.4\",\n\t\t\"semver\": \"^5.1.0\",\n\t\t\"stream-equal\": \"^0.1.7\",\n\t\t\"stream-http\": \"^2.1.0\",\n\t\t\"uglify-js\": \"^2.4.24\",\n\t\t\"vinyl-buffer\": \"^1.0.0\",\n\t\t\"vinyl-source-stream\": \"^1.1.0\",\n\t\t\"webpack-stream\": \"^3.1.0\"\n\t},\n\t\"scripts\": {\n\t\t\"test\": \"gulp test\",\n\t\t\"test:node\": \"gulp test:node\",\n\t\t\"test:browser\": \"gulp test:browser\",\n\t\t\"lint\": \"gulp lint\",\n\t\t\"build\": \"gulp build\"\n\t},\n\t\"pre-commit\": [\n\t\t\"lint\",\n\t\t\"test\"\n\t],\n\t\"keywords\": [\n\t\t\"ipfs\"\n\t],\n\t\"author\": \"Matt Bell \",\n\t\"contributors\": [\n\t\t\"Travis Person \",\n\t\t\"Jeromy Jonson \",\n\t\t\"David Dias \",\n\t\t\"Juan Benet \",\n\t\t\"Friedel Ziegelmayer \"\n\t],\n\t\"license\": \"MIT\",\n\t\"bugs\": {\n\t\t\"url\": \"https://github.com/ipfs/js-ipfs-api/issues\"\n\t},\n\t\"homepage\": \"https://github.com/ipfs/js-ipfs-api\"\n};\n\n/*****************\n ** WEBPACK FOOTER\n ** ./package.json\n ** module id = 207\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./package.json?"); + eval("module.exports = {\n\t\"name\": \"ipfs-api\",\n\t\"version\": \"2.13.1\",\n\t\"description\": \"A client library for the IPFS API\",\n\t\"main\": \"src/index.js\",\n\t\"dependencies\": {\n\t\t\"merge-stream\": \"^1.0.0\",\n\t\t\"multiaddr\": \"^1.0.0\",\n\t\t\"multipart-stream\": \"^2.0.0\",\n\t\t\"ndjson\": \"^1.4.3\",\n\t\t\"qs\": \"^6.0.0\",\n\t\t\"require-dir\": \"^0.3.0\",\n\t\t\"vinyl\": \"^1.1.0\",\n\t\t\"vinyl-fs-browser\": \"^2.1.1-1\",\n\t\t\"vinyl-multipart-stream\": \"^1.2.6\",\n\t\t\"wreck\": \"^7.0.0\"\n\t},\n\t\"engines\": {\n\t\t\"node\": \">=4.2.2\"\n\t},\n\t\"repository\": {\n\t\t\"type\": \"git\",\n\t\t\"url\": \"https://github.com/ipfs/js-ipfs-api\"\n\t},\n\t\"devDependencies\": {\n\t\t\"babel-core\": \"^6.1.21\",\n\t\t\"babel-eslint\": \"^5.0.0-beta9\",\n\t\t\"babel-loader\": \"^6.2.0\",\n\t\t\"babel-plugin-transform-runtime\": \"^6.1.18\",\n\t\t\"babel-preset-es2015\": \"^6.0.15\",\n\t\t\"babel-runtime\": \"^6.3.19\",\n\t\t\"chai\": \"^3.4.1\",\n\t\t\"concurrently\": \"^1.0.0\",\n\t\t\"eslint\": \"^2.0.0-rc.0\",\n\t\t\"eslint-config-standard\": \"^5.1.0\",\n\t\t\"eslint-plugin-promise\": \"^1.0.8\",\n\t\t\"eslint-plugin-standard\": \"^1.3.1\",\n\t\t\"glob-stream\": \"5.3.1\",\n\t\t\"gulp\": \"^3.9.0\",\n\t\t\"gulp-bump\": \"^1.0.0\",\n\t\t\"gulp-eslint\": \"^2.0.0-rc-3\",\n\t\t\"gulp-filter\": \"^4.0.0\",\n\t\t\"gulp-git\": \"^1.6.0\",\n\t\t\"gulp-load-plugins\": \"^1.0.0\",\n\t\t\"gulp-mocha\": \"^2.1.3\",\n\t\t\"gulp-size\": \"^2.0.0\",\n\t\t\"gulp-tag-version\": \"^1.3.0\",\n\t\t\"gulp-util\": \"^3.0.7\",\n\t\t\"https-browserify\": \"0.0.1\",\n\t\t\"ipfsd-ctl\": \"^0.8.1\",\n\t\t\"json-loader\": \"^0.5.3\",\n\t\t\"karma\": \"^0.13.11\",\n\t\t\"karma-chrome-launcher\": \"^0.2.1\",\n\t\t\"karma-firefox-launcher\": \"^0.1.7\",\n\t\t\"karma-mocha\": \"^0.2.0\",\n\t\t\"karma-mocha-reporter\": \"^1.1.1\",\n\t\t\"karma-sauce-launcher\": \"^0.3.0\",\n\t\t\"karma-webpack\": \"^1.7.0\",\n\t\t\"mocha\": \"^2.3.3\",\n\t\t\"pre-commit\": \"^1.0.6\",\n\t\t\"raw-loader\": \"^0.5.1\",\n\t\t\"rimraf\": \"^2.4.5\",\n\t\t\"run-sequence\": \"^1.1.4\",\n\t\t\"semver\": \"^5.1.0\",\n\t\t\"stream-equal\": \"^0.1.7\",\n\t\t\"stream-http\": \"^2.1.0\",\n\t\t\"uglify-js\": \"^2.4.24\",\n\t\t\"vinyl-buffer\": \"^1.0.0\",\n\t\t\"vinyl-source-stream\": \"^1.1.0\",\n\t\t\"webpack-stream\": \"^3.1.0\"\n\t},\n\t\"scripts\": {\n\t\t\"test\": \"gulp test\",\n\t\t\"test:node\": \"gulp test:node\",\n\t\t\"test:browser\": \"gulp test:browser\",\n\t\t\"lint\": \"gulp lint\",\n\t\t\"build\": \"gulp build\"\n\t},\n\t\"pre-commit\": [\n\t\t\"lint\",\n\t\t\"test\"\n\t],\n\t\"keywords\": [\n\t\t\"ipfs\"\n\t],\n\t\"author\": \"Matt Bell \",\n\t\"contributors\": [\n\t\t\"Travis Person \",\n\t\t\"Jeromy Jonson \",\n\t\t\"David Dias \",\n\t\t\"Juan Benet \",\n\t\t\"Friedel Ziegelmayer \"\n\t],\n\t\"license\": \"MIT\",\n\t\"bugs\": {\n\t\t\"url\": \"https://github.com/ipfs/js-ipfs-api/issues\"\n\t},\n\t\"homepage\": \"https://github.com/ipfs/js-ipfs-api\"\n};\n\n/*****************\n ** WEBPACK FOOTER\n ** ./package.json\n ** module id = 207\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./package.json?"); /***/ }, /* 208 */ /***/ function(module, exports, __webpack_require__) { - eval("/* WEBPACK VAR INJECTION */(function(global) {'use strict';\n\nvar _promise = __webpack_require__(165);\n\nvar _promise2 = _interopRequireDefault(_promise);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nvar Wreck = __webpack_require__(84);\nvar Qs = __webpack_require__(209);\nvar ndjson = __webpack_require__(188);\nvar getFilesStream = __webpack_require__(213);\n\nvar isNode = !global.window;\n\n// -- Internal\n\nfunction parseChunkedJson(res, cb) {\n var parsed = [];\n res.pipe(ndjson.parse()).on('data', parsed.push.bind(parsed)).on('end', function () {\n return cb(null, parsed);\n });\n}\n\nfunction onRes(buffer, cb) {\n return function (err, res) {\n if (err) {\n return cb(err);\n }\n\n var stream = !!res.headers['x-stream-output'];\n var chunkedObjects = !!res.headers['x-chunked-output'];\n var isJson = res.headers['content-type'].indexOf('application/json') === 0;\n\n if (res.statusCode >= 400 || !res.statusCode) {\n (function () {\n var error = new Error('Server responded with ' + res.statusCode);\n\n Wreck.read(res, { json: true }, function (err, payload) {\n if (err) {\n return cb(err);\n }\n if (payload) {\n error.code = payload.Code;\n error.message = payload.Message;\n }\n cb(error);\n });\n })();\n }\n\n // console.log('stream:', stream, ' chunked:', chunkedObjects)\n\n if (stream && !buffer) return cb(null, res);\n\n if (chunkedObjects) {\n if (isJson) return parseChunkedJson(res, cb);\n\n return Wreck.read(res, null, cb);\n }\n\n Wreck.read(res, { json: isJson }, cb);\n };\n}\n\nfunction requestAPI(config, path, args, qs, files, buffer, cb) {\n qs = qs || {};\n if (Array.isArray(path)) path = path.join('/');\n if (args && !Array.isArray(args)) args = [args];\n if (args) qs.arg = args;\n if (files && !Array.isArray(files)) files = [files];\n\n if (qs.r) {\n qs.recursive = qs.r;\n delete qs.r; // From IPFS 0.4.0, it throw an error when both r and recursive are passed\n }\n\n if (!isNode && qs.recursive && path === 'add') {\n return cb(new Error('Recursive uploads are not supported in the browser'));\n }\n\n qs['stream-channels'] = true;\n\n var stream = undefined;\n if (files) {\n stream = getFilesStream(files, qs);\n }\n\n // this option is only used internally, not passed to daemon\n delete qs.followSymlinks;\n\n var port = config.port ? ':' + config.port : '';\n\n var opts = {\n method: files ? 'POST' : 'GET',\n uri: config.protocol + '://' + config.host + port + config['api-path'] + path + '?' + Qs.stringify(qs, { arrayFormat: 'repeat' }),\n headers: {}\n };\n\n if (isNode) {\n // Browsers do not allow you to modify the user agent\n opts.headers['User-Agent'] = config['user-agent'];\n }\n\n if (files) {\n if (!stream.boundary) {\n return cb(new Error('No boundary in multipart stream'));\n }\n\n opts.headers['Content-Type'] = 'multipart/form-data; boundary=' + stream.boundary;\n opts.downstreamRes = stream;\n opts.payload = stream;\n }\n\n return Wreck.request(opts.method, opts.uri, opts, onRes(buffer, cb));\n}\n\n// -- Interface\n\nexports = module.exports = function getRequestAPI(config) {\n return function (path, args, qs, files, buffer, cb) {\n if (typeof buffer === 'function') {\n cb = buffer;\n buffer = false;\n }\n\n if (typeof cb !== 'function' && typeof _promise2.default !== 'undefined') {\n return new _promise2.default(function (resolve, reject) {\n requestAPI(config, path, args, qs, files, buffer, function (err, res) {\n if (err) return reject(err);\n resolve(res);\n });\n });\n }\n\n return requestAPI(config, path, args, qs, files, buffer, cb);\n };\n};\n/* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }())))\n\n/*****************\n ** WEBPACK FOOTER\n ** ./src/request-api.js\n ** module id = 208\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./src/request-api.js?"); + eval("/* WEBPACK VAR INJECTION */(function(global) {'use strict';\n\nvar _promise = __webpack_require__(165);\n\nvar _promise2 = _interopRequireDefault(_promise);\n\nvar _typeof2 = __webpack_require__(20);\n\nvar _typeof3 = _interopRequireDefault(_typeof2);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nvar Wreck = __webpack_require__(84);\nvar Qs = __webpack_require__(209);\nvar ndjson = __webpack_require__(188);\nvar getFilesStream = __webpack_require__(213);\n\nvar isNode = !global.window;\n\n// -- Internal\n\nfunction parseChunkedJson(res, cb) {\n var parsed = [];\n res.pipe(ndjson.parse()).on('data', parsed.push.bind(parsed)).on('end', function () {\n return cb(null, parsed);\n });\n}\n\nfunction onRes(buffer, cb) {\n return function (err, res) {\n if (err) {\n return cb(err);\n }\n\n var stream = !!res.headers['x-stream-output'];\n var chunkedObjects = !!res.headers['x-chunked-output'];\n var isJson = res.headers['content-type'] && res.headers['content-type'].indexOf('application/json') === 0;\n\n if (res.statusCode >= 400 || !res.statusCode) {\n var _ret = function () {\n var error = new Error('Server responded with ' + res.statusCode);\n\n return {\n v: Wreck.read(res, { json: true }, function (err, payload) {\n if (err) {\n return cb(err);\n }\n if (payload) {\n error.code = payload.Code;\n error.message = payload.Message;\n }\n cb(error);\n })\n };\n }();\n\n if ((typeof _ret === 'undefined' ? 'undefined' : (0, _typeof3.default)(_ret)) === \"object\") return _ret.v;\n }\n\n // console.log('stream:', stream, ' chunked:', chunkedObjects)\n\n if (stream && !buffer) return cb(null, res);\n\n if (chunkedObjects) {\n if (isJson) return parseChunkedJson(res, cb);\n\n return Wreck.read(res, null, cb);\n }\n\n Wreck.read(res, { json: isJson }, cb);\n };\n}\n\nfunction requestAPI(config, path, args, qs, files, buffer, cb) {\n qs = qs || {};\n if (Array.isArray(path)) path = path.join('/');\n if (args && !Array.isArray(args)) args = [args];\n if (args) qs.arg = args;\n if (files && !Array.isArray(files)) files = [files];\n\n if (qs.r) {\n qs.recursive = qs.r;\n delete qs.r; // From IPFS 0.4.0, it throw an error when both r and recursive are passed\n }\n\n if (!isNode && qs.recursive && path === 'add') {\n return cb(new Error('Recursive uploads are not supported in the browser'));\n }\n\n qs['stream-channels'] = true;\n\n var stream = undefined;\n if (files) {\n stream = getFilesStream(files, qs);\n }\n\n // this option is only used internally, not passed to daemon\n delete qs.followSymlinks;\n\n var port = config.port ? ':' + config.port : '';\n\n var opts = {\n method: files ? 'POST' : 'GET',\n uri: config.protocol + '://' + config.host + port + config['api-path'] + path + '?' + Qs.stringify(qs, { arrayFormat: 'repeat' }),\n headers: {}\n };\n\n if (isNode) {\n // Browsers do not allow you to modify the user agent\n opts.headers['User-Agent'] = config['user-agent'];\n }\n\n if (files) {\n if (!stream.boundary) {\n return cb(new Error('No boundary in multipart stream'));\n }\n\n opts.headers['Content-Type'] = 'multipart/form-data; boundary=' + stream.boundary;\n opts.downstreamRes = stream;\n opts.payload = stream;\n }\n\n return Wreck.request(opts.method, opts.uri, opts, onRes(buffer, cb));\n}\n\n// -- Interface\n\nexports = module.exports = function getRequestAPI(config) {\n return function (path, args, qs, files, buffer, cb) {\n if (typeof buffer === 'function') {\n cb = buffer;\n buffer = false;\n }\n\n if (typeof cb !== 'function' && typeof _promise2.default !== 'undefined') {\n return new _promise2.default(function (resolve, reject) {\n requestAPI(config, path, args, qs, files, buffer, function (err, res) {\n if (err) return reject(err);\n resolve(res);\n });\n });\n }\n\n return requestAPI(config, path, args, qs, files, buffer, cb);\n };\n};\n/* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }())))\n\n/*****************\n ** WEBPACK FOOTER\n ** ./src/request-api.js\n ** module id = 208\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./src/request-api.js?"); /***/ }, /* 209 */ diff --git a/dist/ipfsapi.min.js b/dist/ipfsapi.min.js index 3a0a53c18..b20c42e50 100644 --- a/dist/ipfsapi.min.js +++ b/dist/ipfsapi.min.js @@ -1,12 +1,12 @@ -var ipfsAPI=function(modules){function __webpack_require__(moduleId){if(installedModules[moduleId])return installedModules[moduleId].exports;var module=installedModules[moduleId]={exports:{},id:moduleId,loaded:!1};return modules[moduleId].call(module.exports,module,module.exports,__webpack_require__),module.loaded=!0,module.exports}var installedModules={};return __webpack_require__.m=modules,__webpack_require__.c=installedModules,__webpack_require__.p="/_karma_webpack_//",__webpack_require__(0)}([function(module,exports,__webpack_require__){(function(Buffer){"use strict";function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{"default":obj}}function IpfsAPI(host_or_multiaddr,port,opts){var config=getConfig();try{var maddr=multiaddr(host_or_multiaddr).nodeAddress();config.host=maddr.address,config.port=maddr.port}catch(e){"string"==typeof host_or_multiaddr&&(config.host=host_or_multiaddr,config.port=port&&"object"!==("undefined"==typeof port?"undefined":(0,_typeof3["default"])(port))?port:config.port)}for(var lastIndex=arguments.length;!opts&&lastIndex-- >0&&!(opts=arguments[lastIndex]););if((0,_assign2["default"])(config,opts),!config.host&&"undefined"!=typeof window){var split=window.location.host.split(":");config.host=split[0],config.port=split[1]}var requestAPI=getRequestAPI(config),cmds=loadCommands(requestAPI);return cmds.send=requestAPI,cmds.Buffer=Buffer,cmds}var _assign=__webpack_require__(149),_assign2=_interopRequireDefault(_assign),_typeof2=__webpack_require__(24),_typeof3=_interopRequireDefault(_typeof2),multiaddr=__webpack_require__(269),loadCommands=__webpack_require__(146),getConfig=__webpack_require__(144),getRequestAPI=__webpack_require__(147);exports=module.exports=IpfsAPI}).call(exports,__webpack_require__(1).Buffer)},function(module,exports,__webpack_require__){(function(Buffer,global){/*! +var ipfsAPI=function(modules){function __webpack_require__(moduleId){if(installedModules[moduleId])return installedModules[moduleId].exports;var module=installedModules[moduleId]={exports:{},id:moduleId,loaded:!1};return modules[moduleId].call(module.exports,module,module.exports,__webpack_require__),module.loaded=!0,module.exports}var installedModules={};return __webpack_require__.m=modules,__webpack_require__.c=installedModules,__webpack_require__.p="/_karma_webpack_//",__webpack_require__(0)}([function(module,exports,__webpack_require__){(function(Buffer){"use strict";function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{"default":obj}}function IpfsAPI(host_or_multiaddr,port,opts){var config=getConfig();try{var maddr=multiaddr(host_or_multiaddr).nodeAddress();config.host=maddr.address,config.port=maddr.port}catch(e){"string"==typeof host_or_multiaddr&&(config.host=host_or_multiaddr,config.port=port&&"object"!==("undefined"==typeof port?"undefined":(0,_typeof3["default"])(port))?port:config.port)}for(var lastIndex=arguments.length;!opts&&lastIndex-- >0&&!(opts=arguments[lastIndex]););if((0,_assign2["default"])(config,opts),!config.host&&"undefined"!=typeof window){var split=window.location.host.split(":");config.host=split[0],config.port=split[1]}var requestAPI=getRequestAPI(config),cmds=loadCommands(requestAPI);return cmds.send=requestAPI,cmds.Buffer=Buffer,cmds}var _assign=__webpack_require__(149),_assign2=_interopRequireDefault(_assign),_typeof2=__webpack_require__(19),_typeof3=_interopRequireDefault(_typeof2),multiaddr=__webpack_require__(269),loadCommands=__webpack_require__(146),getConfig=__webpack_require__(144),getRequestAPI=__webpack_require__(147);exports=module.exports=IpfsAPI}).call(exports,__webpack_require__(1).Buffer)},function(module,exports,__webpack_require__){(function(Buffer,global){/*! * The buffer module from node.js, for the browser. * * @author Feross Aboukhadijeh * @license MIT */ "use strict";function typedArraySupport(){function Bar(){}try{var arr=new Uint8Array(1);return arr.foo=function(){return 42},arr.constructor=Bar,42===arr.foo()&&arr.constructor===Bar&&"function"==typeof arr.subarray&&0===arr.subarray(1,1).byteLength}catch(e){return!1}}function kMaxLength(){return Buffer.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function Buffer(arg){return this instanceof Buffer?(Buffer.TYPED_ARRAY_SUPPORT||(this.length=0,this.parent=void 0),"number"==typeof arg?fromNumber(this,arg):"string"==typeof arg?fromString(this,arg,arguments.length>1?arguments[1]:"utf8"):fromObject(this,arg)):arguments.length>1?new Buffer(arg,arguments[1]):new Buffer(arg)}function fromNumber(that,length){if(that=allocate(that,0>length?0:0|checked(length)),!Buffer.TYPED_ARRAY_SUPPORT)for(var i=0;length>i;i++)that[i]=0;return that}function fromString(that,string,encoding){("string"!=typeof encoding||""===encoding)&&(encoding="utf8");var length=0|byteLength(string,encoding);return that=allocate(that,length),that.write(string,encoding),that}function fromObject(that,object){if(Buffer.isBuffer(object))return fromBuffer(that,object);if(isArray(object))return fromArray(that,object);if(null==object)throw new TypeError("must start with number, buffer, array or string");if("undefined"!=typeof ArrayBuffer){if(object.buffer instanceof ArrayBuffer)return fromTypedArray(that,object);if(object instanceof ArrayBuffer)return fromArrayBuffer(that,object)}return object.length?fromArrayLike(that,object):fromJsonObject(that,object)}function fromBuffer(that,buffer){var length=0|checked(buffer.length);return that=allocate(that,length),buffer.copy(that,0,0,length),that}function fromArray(that,array){var length=0|checked(array.length);that=allocate(that,length);for(var i=0;length>i;i+=1)that[i]=255&array[i];return that}function fromTypedArray(that,array){var length=0|checked(array.length);that=allocate(that,length);for(var i=0;length>i;i+=1)that[i]=255&array[i];return that}function fromArrayBuffer(that,array){return Buffer.TYPED_ARRAY_SUPPORT?(array.byteLength,that=Buffer._augment(new Uint8Array(array))):that=fromTypedArray(that,new Uint8Array(array)),that}function fromArrayLike(that,array){var length=0|checked(array.length);that=allocate(that,length);for(var i=0;length>i;i+=1)that[i]=255&array[i];return that}function fromJsonObject(that,object){var array,length=0;"Buffer"===object.type&&isArray(object.data)&&(array=object.data,length=0|checked(array.length)),that=allocate(that,length);for(var i=0;length>i;i+=1)that[i]=255&array[i];return that}function allocate(that,length){Buffer.TYPED_ARRAY_SUPPORT?(that=Buffer._augment(new Uint8Array(length)),that.__proto__=Buffer.prototype):(that.length=length,that._isBuffer=!0);var fromPool=0!==length&&length<=Buffer.poolSize>>>1;return fromPool&&(that.parent=rootParent),that}function checked(length){if(length>=kMaxLength())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+kMaxLength().toString(16)+" bytes");return 0|length}function SlowBuffer(subject,encoding){if(!(this instanceof SlowBuffer))return new SlowBuffer(subject,encoding);var buf=new Buffer(subject,encoding);return delete buf.parent,buf}function byteLength(string,encoding){"string"!=typeof string&&(string=""+string);var len=string.length;if(0===len)return 0;for(var loweredCase=!1;;)switch(encoding){case"ascii":case"binary":case"raw":case"raws":return len;case"utf8":case"utf-8":return utf8ToBytes(string).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*len;case"hex":return len>>>1;case"base64":return base64ToBytes(string).length;default:if(loweredCase)return utf8ToBytes(string).length;encoding=(""+encoding).toLowerCase(),loweredCase=!0}}function slowToString(encoding,start,end){var loweredCase=!1;if(start=0|start,end=void 0===end||end===1/0?this.length:0|end,encoding||(encoding="utf8"),0>start&&(start=0),end>this.length&&(end=this.length),start>=end)return"";for(;;)switch(encoding){case"hex":return hexSlice(this,start,end);case"utf8":case"utf-8":return utf8Slice(this,start,end);case"ascii":return asciiSlice(this,start,end);case"binary":return binarySlice(this,start,end);case"base64":return base64Slice(this,start,end);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return utf16leSlice(this,start,end);default:if(loweredCase)throw new TypeError("Unknown encoding: "+encoding);encoding=(encoding+"").toLowerCase(),loweredCase=!0}}function hexWrite(buf,string,offset,length){offset=Number(offset)||0;var remaining=buf.length-offset;length?(length=Number(length),length>remaining&&(length=remaining)):length=remaining;var strLen=string.length;if(strLen%2!==0)throw new Error("Invalid hex string");length>strLen/2&&(length=strLen/2);for(var i=0;length>i;i++){var parsed=parseInt(string.substr(2*i,2),16);if(isNaN(parsed))throw new Error("Invalid hex string");buf[offset+i]=parsed}return i}function utf8Write(buf,string,offset,length){return blitBuffer(utf8ToBytes(string,buf.length-offset),buf,offset,length)}function asciiWrite(buf,string,offset,length){return blitBuffer(asciiToBytes(string),buf,offset,length)}function binaryWrite(buf,string,offset,length){return asciiWrite(buf,string,offset,length)}function base64Write(buf,string,offset,length){return blitBuffer(base64ToBytes(string),buf,offset,length)}function ucs2Write(buf,string,offset,length){return blitBuffer(utf16leToBytes(string,buf.length-offset),buf,offset,length)}function base64Slice(buf,start,end){return 0===start&&end===buf.length?base64.fromByteArray(buf):base64.fromByteArray(buf.slice(start,end))}function utf8Slice(buf,start,end){end=Math.min(buf.length,end);for(var res=[],i=start;end>i;){var firstByte=buf[i],codePoint=null,bytesPerSequence=firstByte>239?4:firstByte>223?3:firstByte>191?2:1;if(end>=i+bytesPerSequence){var secondByte,thirdByte,fourthByte,tempCodePoint;switch(bytesPerSequence){case 1:128>firstByte&&(codePoint=firstByte);break;case 2:secondByte=buf[i+1],128===(192&secondByte)&&(tempCodePoint=(31&firstByte)<<6|63&secondByte,tempCodePoint>127&&(codePoint=tempCodePoint));break;case 3:secondByte=buf[i+1],thirdByte=buf[i+2],128===(192&secondByte)&&128===(192&thirdByte)&&(tempCodePoint=(15&firstByte)<<12|(63&secondByte)<<6|63&thirdByte,tempCodePoint>2047&&(55296>tempCodePoint||tempCodePoint>57343)&&(codePoint=tempCodePoint));break;case 4:secondByte=buf[i+1],thirdByte=buf[i+2],fourthByte=buf[i+3],128===(192&secondByte)&&128===(192&thirdByte)&&128===(192&fourthByte)&&(tempCodePoint=(15&firstByte)<<18|(63&secondByte)<<12|(63&thirdByte)<<6|63&fourthByte,tempCodePoint>65535&&1114112>tempCodePoint&&(codePoint=tempCodePoint))}}null===codePoint?(codePoint=65533,bytesPerSequence=1):codePoint>65535&&(codePoint-=65536,res.push(codePoint>>>10&1023|55296),codePoint=56320|1023&codePoint),res.push(codePoint),i+=bytesPerSequence}return decodeCodePointsArray(res)}function decodeCodePointsArray(codePoints){var len=codePoints.length;if(MAX_ARGUMENTS_LENGTH>=len)return String.fromCharCode.apply(String,codePoints);for(var res="",i=0;len>i;)res+=String.fromCharCode.apply(String,codePoints.slice(i,i+=MAX_ARGUMENTS_LENGTH));return res}function asciiSlice(buf,start,end){var ret="";end=Math.min(buf.length,end);for(var i=start;end>i;i++)ret+=String.fromCharCode(127&buf[i]);return ret}function binarySlice(buf,start,end){var ret="";end=Math.min(buf.length,end);for(var i=start;end>i;i++)ret+=String.fromCharCode(buf[i]);return ret}function hexSlice(buf,start,end){var len=buf.length;(!start||0>start)&&(start=0),(!end||0>end||end>len)&&(end=len);for(var out="",i=start;end>i;i++)out+=toHex(buf[i]);return out}function utf16leSlice(buf,start,end){for(var bytes=buf.slice(start,end),res="",i=0;ioffset)throw new RangeError("offset is not uint");if(offset+ext>length)throw new RangeError("Trying to access beyond buffer length")}function checkInt(buf,value,offset,ext,max,min){if(!Buffer.isBuffer(buf))throw new TypeError("buffer must be a Buffer instance");if(value>max||min>value)throw new RangeError("value is out of bounds");if(offset+ext>buf.length)throw new RangeError("index out of range")}function objectWriteUInt16(buf,value,offset,littleEndian){0>value&&(value=65535+value+1);for(var i=0,j=Math.min(buf.length-offset,2);j>i;i++)buf[offset+i]=(value&255<<8*(littleEndian?i:1-i))>>>8*(littleEndian?i:1-i)}function objectWriteUInt32(buf,value,offset,littleEndian){0>value&&(value=4294967295+value+1);for(var i=0,j=Math.min(buf.length-offset,4);j>i;i++)buf[offset+i]=value>>>8*(littleEndian?i:3-i)&255}function checkIEEE754(buf,value,offset,ext,max,min){if(value>max||min>value)throw new RangeError("value is out of bounds");if(offset+ext>buf.length)throw new RangeError("index out of range");if(0>offset)throw new RangeError("index out of range")}function writeFloat(buf,value,offset,littleEndian,noAssert){return noAssert||checkIEEE754(buf,value,offset,4,3.4028234663852886e38,-3.4028234663852886e38),ieee754.write(buf,value,offset,littleEndian,23,4),offset+4}function writeDouble(buf,value,offset,littleEndian,noAssert){return noAssert||checkIEEE754(buf,value,offset,8,1.7976931348623157e308,-1.7976931348623157e308),ieee754.write(buf,value,offset,littleEndian,52,8),offset+8}function base64clean(str){if(str=stringtrim(str).replace(INVALID_BASE64_RE,""),str.length<2)return"";for(;str.length%4!==0;)str+="=";return str}function stringtrim(str){return str.trim?str.trim():str.replace(/^\s+|\s+$/g,"")}function toHex(n){return 16>n?"0"+n.toString(16):n.toString(16)}function utf8ToBytes(string,units){units=units||1/0;for(var codePoint,length=string.length,leadSurrogate=null,bytes=[],i=0;length>i;i++){if(codePoint=string.charCodeAt(i),codePoint>55295&&57344>codePoint){if(!leadSurrogate){if(codePoint>56319){(units-=3)>-1&&bytes.push(239,191,189);continue}if(i+1===length){(units-=3)>-1&&bytes.push(239,191,189);continue}leadSurrogate=codePoint;continue}if(56320>codePoint){(units-=3)>-1&&bytes.push(239,191,189),leadSurrogate=codePoint;continue}codePoint=(leadSurrogate-55296<<10|codePoint-56320)+65536}else leadSurrogate&&(units-=3)>-1&&bytes.push(239,191,189);if(leadSurrogate=null,128>codePoint){if((units-=1)<0)break;bytes.push(codePoint)}else if(2048>codePoint){if((units-=2)<0)break;bytes.push(codePoint>>6|192,63&codePoint|128)}else if(65536>codePoint){if((units-=3)<0)break;bytes.push(codePoint>>12|224,codePoint>>6&63|128,63&codePoint|128)}else{if(!(1114112>codePoint))throw new Error("Invalid code point");if((units-=4)<0)break;bytes.push(codePoint>>18|240,codePoint>>12&63|128,codePoint>>6&63|128,63&codePoint|128)}}return bytes}function asciiToBytes(str){for(var byteArray=[],i=0;i>8,lo=c%256,byteArray.push(lo),byteArray.push(hi);return byteArray}function base64ToBytes(str){return base64.toByteArray(base64clean(str))}function blitBuffer(src,dst,offset,length){for(var i=0;length>i&&!(i+offset>=dst.length||i>=src.length);i++)dst[i+offset]=src[i];return i}var base64=__webpack_require__(158),ieee754=__webpack_require__(237),isArray=__webpack_require__(162);exports.Buffer=Buffer,exports.SlowBuffer=SlowBuffer,exports.INSPECT_MAX_BYTES=50,Buffer.poolSize=8192;var rootParent={};Buffer.TYPED_ARRAY_SUPPORT=void 0!==global.TYPED_ARRAY_SUPPORT?global.TYPED_ARRAY_SUPPORT:typedArraySupport(),Buffer.TYPED_ARRAY_SUPPORT?(Buffer.prototype.__proto__=Uint8Array.prototype,Buffer.__proto__=Uint8Array):(Buffer.prototype.length=void 0,Buffer.prototype.parent=void 0),Buffer.isBuffer=function(b){return!(null==b||!b._isBuffer)},Buffer.compare=function(a,b){if(!Buffer.isBuffer(a)||!Buffer.isBuffer(b))throw new TypeError("Arguments must be Buffers");if(a===b)return 0;for(var x=a.length,y=b.length,i=0,len=Math.min(x,y);len>i&&a[i]===b[i];)++i;return i!==len&&(x=a[i],y=b[i]),y>x?-1:x>y?1:0},Buffer.isEncoding=function(encoding){switch(String(encoding).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"raw":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},Buffer.concat=function(list,length){if(!isArray(list))throw new TypeError("list argument must be an Array of Buffers.");if(0===list.length)return new Buffer(0);var i;if(void 0===length)for(length=0,i=0;i0&&(str=this.toString("hex",0,max).match(/.{2}/g).join(" "),this.length>max&&(str+=" ... ")),""},Buffer.prototype.compare=function(b){if(!Buffer.isBuffer(b))throw new TypeError("Argument must be a Buffer");return this===b?0:Buffer.compare(this,b)},Buffer.prototype.indexOf=function(val,byteOffset){function arrayIndexOf(arr,val,byteOffset){for(var foundIndex=-1,i=0;byteOffset+i2147483647?byteOffset=2147483647:-2147483648>byteOffset&&(byteOffset=-2147483648),byteOffset>>=0,0===this.length)return-1;if(byteOffset>=this.length)return-1;if(0>byteOffset&&(byteOffset=Math.max(this.length+byteOffset,0)),"string"==typeof val)return 0===val.length?-1:String.prototype.indexOf.call(this,val,byteOffset);if(Buffer.isBuffer(val))return arrayIndexOf(this,val,byteOffset);if("number"==typeof val)return Buffer.TYPED_ARRAY_SUPPORT&&"function"===Uint8Array.prototype.indexOf?Uint8Array.prototype.indexOf.call(this,val,byteOffset):arrayIndexOf(this,[val],byteOffset);throw new TypeError("val must be string, number or Buffer")},Buffer.prototype.get=function(offset){return console.log(".get() is deprecated. Access using array indexes instead."),this.readUInt8(offset)},Buffer.prototype.set=function(v,offset){return console.log(".set() is deprecated. Access using array indexes instead."),this.writeUInt8(v,offset)},Buffer.prototype.write=function(string,offset,length,encoding){if(void 0===offset)encoding="utf8",length=this.length,offset=0;else if(void 0===length&&"string"==typeof offset)encoding=offset,length=this.length,offset=0;else if(isFinite(offset))offset=0|offset,isFinite(length)?(length=0|length,void 0===encoding&&(encoding="utf8")):(encoding=length,length=void 0);else{var swap=encoding;encoding=offset,offset=0|length,length=swap}var remaining=this.length-offset;if((void 0===length||length>remaining)&&(length=remaining),string.length>0&&(0>length||0>offset)||offset>this.length)throw new RangeError("attempt to write outside buffer bounds");encoding||(encoding="utf8");for(var loweredCase=!1;;)switch(encoding){case"hex":return hexWrite(this,string,offset,length);case"utf8":case"utf-8":return utf8Write(this,string,offset,length);case"ascii":return asciiWrite(this,string,offset,length);case"binary":return binaryWrite(this,string,offset,length);case"base64":return base64Write(this,string,offset,length);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ucs2Write(this,string,offset,length);default:if(loweredCase)throw new TypeError("Unknown encoding: "+encoding);encoding=(""+encoding).toLowerCase(),loweredCase=!0}},Buffer.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var MAX_ARGUMENTS_LENGTH=4096;Buffer.prototype.slice=function(start,end){var len=this.length;start=~~start,end=void 0===end?len:~~end,0>start?(start+=len,0>start&&(start=0)):start>len&&(start=len),0>end?(end+=len,0>end&&(end=0)):end>len&&(end=len),start>end&&(end=start);var newBuf;if(Buffer.TYPED_ARRAY_SUPPORT)newBuf=Buffer._augment(this.subarray(start,end));else{var sliceLen=end-start;newBuf=new Buffer(sliceLen,void 0);for(var i=0;sliceLen>i;i++)newBuf[i]=this[i+start]}return newBuf.length&&(newBuf.parent=this.parent||this),newBuf},Buffer.prototype.readUIntLE=function(offset,byteLength,noAssert){offset=0|offset,byteLength=0|byteLength,noAssert||checkOffset(offset,byteLength,this.length);for(var val=this[offset],mul=1,i=0;++i0&&(mul*=256);)val+=this[offset+--byteLength]*mul;return val},Buffer.prototype.readUInt8=function(offset,noAssert){return noAssert||checkOffset(offset,1,this.length),this[offset]},Buffer.prototype.readUInt16LE=function(offset,noAssert){return noAssert||checkOffset(offset,2,this.length),this[offset]|this[offset+1]<<8},Buffer.prototype.readUInt16BE=function(offset,noAssert){return noAssert||checkOffset(offset,2,this.length),this[offset]<<8|this[offset+1]},Buffer.prototype.readUInt32LE=function(offset,noAssert){return noAssert||checkOffset(offset,4,this.length),(this[offset]|this[offset+1]<<8|this[offset+2]<<16)+16777216*this[offset+3]},Buffer.prototype.readUInt32BE=function(offset,noAssert){return noAssert||checkOffset(offset,4,this.length),16777216*this[offset]+(this[offset+1]<<16|this[offset+2]<<8|this[offset+3])},Buffer.prototype.readIntLE=function(offset,byteLength,noAssert){offset=0|offset,byteLength=0|byteLength,noAssert||checkOffset(offset,byteLength,this.length);for(var val=this[offset],mul=1,i=0;++i=mul&&(val-=Math.pow(2,8*byteLength)),val},Buffer.prototype.readIntBE=function(offset,byteLength,noAssert){offset=0|offset,byteLength=0|byteLength,noAssert||checkOffset(offset,byteLength,this.length);for(var i=byteLength,mul=1,val=this[offset+--i];i>0&&(mul*=256);)val+=this[offset+--i]*mul;return mul*=128,val>=mul&&(val-=Math.pow(2,8*byteLength)),val},Buffer.prototype.readInt8=function(offset,noAssert){return noAssert||checkOffset(offset,1,this.length),128&this[offset]?-1*(255-this[offset]+1):this[offset]},Buffer.prototype.readInt16LE=function(offset,noAssert){noAssert||checkOffset(offset,2,this.length);var val=this[offset]|this[offset+1]<<8;return 32768&val?4294901760|val:val},Buffer.prototype.readInt16BE=function(offset,noAssert){noAssert||checkOffset(offset,2,this.length);var val=this[offset+1]|this[offset]<<8;return 32768&val?4294901760|val:val},Buffer.prototype.readInt32LE=function(offset,noAssert){return noAssert||checkOffset(offset,4,this.length),this[offset]|this[offset+1]<<8|this[offset+2]<<16|this[offset+3]<<24},Buffer.prototype.readInt32BE=function(offset,noAssert){return noAssert||checkOffset(offset,4,this.length),this[offset]<<24|this[offset+1]<<16|this[offset+2]<<8|this[offset+3]},Buffer.prototype.readFloatLE=function(offset,noAssert){return noAssert||checkOffset(offset,4,this.length),ieee754.read(this,offset,!0,23,4)},Buffer.prototype.readFloatBE=function(offset,noAssert){return noAssert||checkOffset(offset,4,this.length),ieee754.read(this,offset,!1,23,4)},Buffer.prototype.readDoubleLE=function(offset,noAssert){return noAssert||checkOffset(offset,8,this.length),ieee754.read(this,offset,!0,52,8)},Buffer.prototype.readDoubleBE=function(offset,noAssert){return noAssert||checkOffset(offset,8,this.length),ieee754.read(this,offset,!1,52,8)},Buffer.prototype.writeUIntLE=function(value,offset,byteLength,noAssert){value=+value,offset=0|offset,byteLength=0|byteLength,noAssert||checkInt(this,value,offset,byteLength,Math.pow(2,8*byteLength),0);var mul=1,i=0;for(this[offset]=255&value;++i=0&&(mul*=256);)this[offset+i]=value/mul&255;return offset+byteLength},Buffer.prototype.writeUInt8=function(value,offset,noAssert){return value=+value,offset=0|offset,noAssert||checkInt(this,value,offset,1,255,0),Buffer.TYPED_ARRAY_SUPPORT||(value=Math.floor(value)),this[offset]=255&value,offset+1},Buffer.prototype.writeUInt16LE=function(value,offset,noAssert){return value=+value,offset=0|offset,noAssert||checkInt(this,value,offset,2,65535,0),Buffer.TYPED_ARRAY_SUPPORT?(this[offset]=255&value,this[offset+1]=value>>>8):objectWriteUInt16(this,value,offset,!0),offset+2},Buffer.prototype.writeUInt16BE=function(value,offset,noAssert){return value=+value,offset=0|offset,noAssert||checkInt(this,value,offset,2,65535,0),Buffer.TYPED_ARRAY_SUPPORT?(this[offset]=value>>>8,this[offset+1]=255&value):objectWriteUInt16(this,value,offset,!1),offset+2},Buffer.prototype.writeUInt32LE=function(value,offset,noAssert){return value=+value,offset=0|offset,noAssert||checkInt(this,value,offset,4,4294967295,0),Buffer.TYPED_ARRAY_SUPPORT?(this[offset+3]=value>>>24,this[offset+2]=value>>>16,this[offset+1]=value>>>8,this[offset]=255&value):objectWriteUInt32(this,value,offset,!0),offset+4},Buffer.prototype.writeUInt32BE=function(value,offset,noAssert){return value=+value,offset=0|offset,noAssert||checkInt(this,value,offset,4,4294967295,0),Buffer.TYPED_ARRAY_SUPPORT?(this[offset]=value>>>24,this[offset+1]=value>>>16,this[offset+2]=value>>>8,this[offset+3]=255&value):objectWriteUInt32(this,value,offset,!1),offset+4},Buffer.prototype.writeIntLE=function(value,offset,byteLength,noAssert){if(value=+value,offset=0|offset,!noAssert){var limit=Math.pow(2,8*byteLength-1);checkInt(this,value,offset,byteLength,limit-1,-limit)}var i=0,mul=1,sub=0>value?1:0;for(this[offset]=255&value;++i>0)-sub&255;return offset+byteLength},Buffer.prototype.writeIntBE=function(value,offset,byteLength,noAssert){if(value=+value,offset=0|offset,!noAssert){var limit=Math.pow(2,8*byteLength-1);checkInt(this,value,offset,byteLength,limit-1,-limit)}var i=byteLength-1,mul=1,sub=0>value?1:0;for(this[offset+i]=255&value;--i>=0&&(mul*=256);)this[offset+i]=(value/mul>>0)-sub&255;return offset+byteLength},Buffer.prototype.writeInt8=function(value,offset,noAssert){return value=+value,offset=0|offset,noAssert||checkInt(this,value,offset,1,127,-128),Buffer.TYPED_ARRAY_SUPPORT||(value=Math.floor(value)),0>value&&(value=255+value+1),this[offset]=255&value,offset+1},Buffer.prototype.writeInt16LE=function(value,offset,noAssert){return value=+value,offset=0|offset,noAssert||checkInt(this,value,offset,2,32767,-32768),Buffer.TYPED_ARRAY_SUPPORT?(this[offset]=255&value,this[offset+1]=value>>>8):objectWriteUInt16(this,value,offset,!0),offset+2},Buffer.prototype.writeInt16BE=function(value,offset,noAssert){return value=+value,offset=0|offset,noAssert||checkInt(this,value,offset,2,32767,-32768),Buffer.TYPED_ARRAY_SUPPORT?(this[offset]=value>>>8,this[offset+1]=255&value):objectWriteUInt16(this,value,offset,!1),offset+2},Buffer.prototype.writeInt32LE=function(value,offset,noAssert){return value=+value,offset=0|offset,noAssert||checkInt(this,value,offset,4,2147483647,-2147483648),Buffer.TYPED_ARRAY_SUPPORT?(this[offset]=255&value,this[offset+1]=value>>>8,this[offset+2]=value>>>16,this[offset+3]=value>>>24):objectWriteUInt32(this,value,offset,!0),offset+4},Buffer.prototype.writeInt32BE=function(value,offset,noAssert){return value=+value,offset=0|offset,noAssert||checkInt(this,value,offset,4,2147483647,-2147483648),0>value&&(value=4294967295+value+1),Buffer.TYPED_ARRAY_SUPPORT?(this[offset]=value>>>24,this[offset+1]=value>>>16,this[offset+2]=value>>>8,this[offset+3]=255&value):objectWriteUInt32(this,value,offset,!1),offset+4},Buffer.prototype.writeFloatLE=function(value,offset,noAssert){return writeFloat(this,value,offset,!0,noAssert)},Buffer.prototype.writeFloatBE=function(value,offset,noAssert){return writeFloat(this,value,offset,!1,noAssert)},Buffer.prototype.writeDoubleLE=function(value,offset,noAssert){return writeDouble(this,value,offset,!0,noAssert)},Buffer.prototype.writeDoubleBE=function(value,offset,noAssert){return writeDouble(this,value,offset,!1,noAssert)},Buffer.prototype.copy=function(target,targetStart,start,end){if(start||(start=0),end||0===end||(end=this.length),targetStart>=target.length&&(targetStart=target.length),targetStart||(targetStart=0),end>0&&start>end&&(end=start),end===start)return 0;if(0===target.length||0===this.length)return 0;if(0>targetStart)throw new RangeError("targetStart out of bounds");if(0>start||start>=this.length)throw new RangeError("sourceStart out of bounds");if(0>end)throw new RangeError("sourceEnd out of bounds");end>this.length&&(end=this.length),target.length-targetStartstart&&end>targetStart)for(i=len-1;i>=0;i--)target[i+targetStart]=this[i+start];else if(1e3>len||!Buffer.TYPED_ARRAY_SUPPORT)for(i=0;len>i;i++)target[i+targetStart]=this[i+start];else target._set(this.subarray(start,start+len),targetStart);return len},Buffer.prototype.fill=function(value,start,end){if(value||(value=0),start||(start=0),end||(end=this.length),start>end)throw new RangeError("end < start");if(end!==start&&0!==this.length){if(0>start||start>=this.length)throw new RangeError("start out of bounds");if(0>end||end>this.length)throw new RangeError("end out of bounds");var i;if("number"==typeof value)for(i=start;end>i;i++)this[i]=value;else{var bytes=utf8ToBytes(value.toString()),len=bytes.length;for(i=start;end>i;i++)this[i]=bytes[i%len]}return this}},Buffer.prototype.toArrayBuffer=function(){if("undefined"!=typeof Uint8Array){if(Buffer.TYPED_ARRAY_SUPPORT)return new Buffer(this).buffer;for(var buf=new Uint8Array(this.length),i=0,len=buf.length;len>i;i+=1)buf[i]=this[i];return buf.buffer}throw new TypeError("Buffer.toArrayBuffer not supported in this browser")};var BP=Buffer.prototype;Buffer._augment=function(arr){return arr.constructor=Buffer,arr._isBuffer=!0,arr._set=arr.set,arr.get=BP.get,arr.set=BP.set,arr.write=BP.write,arr.toString=BP.toString,arr.toLocaleString=BP.toString,arr.toJSON=BP.toJSON,arr.equals=BP.equals,arr.compare=BP.compare,arr.indexOf=BP.indexOf,arr.copy=BP.copy,arr.slice=BP.slice,arr.readUIntLE=BP.readUIntLE,arr.readUIntBE=BP.readUIntBE,arr.readUInt8=BP.readUInt8,arr.readUInt16LE=BP.readUInt16LE,arr.readUInt16BE=BP.readUInt16BE,arr.readUInt32LE=BP.readUInt32LE,arr.readUInt32BE=BP.readUInt32BE,arr.readIntLE=BP.readIntLE,arr.readIntBE=BP.readIntBE,arr.readInt8=BP.readInt8,arr.readInt16LE=BP.readInt16LE,arr.readInt16BE=BP.readInt16BE,arr.readInt32LE=BP.readInt32LE,arr.readInt32BE=BP.readInt32BE,arr.readFloatLE=BP.readFloatLE,arr.readFloatBE=BP.readFloatBE,arr.readDoubleLE=BP.readDoubleLE,arr.readDoubleBE=BP.readDoubleBE,arr.writeUInt8=BP.writeUInt8,arr.writeUIntLE=BP.writeUIntLE,arr.writeUIntBE=BP.writeUIntBE,arr.writeUInt16LE=BP.writeUInt16LE,arr.writeUInt16BE=BP.writeUInt16BE,arr.writeUInt32LE=BP.writeUInt32LE,arr.writeUInt32BE=BP.writeUInt32BE,arr.writeIntLE=BP.writeIntLE,arr.writeIntBE=BP.writeIntBE,arr.writeInt8=BP.writeInt8,arr.writeInt16LE=BP.writeInt16LE,arr.writeInt16BE=BP.writeInt16BE,arr.writeInt32LE=BP.writeInt32LE,arr.writeInt32BE=BP.writeInt32BE,arr.writeFloatLE=BP.writeFloatLE,arr.writeFloatBE=BP.writeFloatBE,arr.writeDoubleLE=BP.writeDoubleLE,arr.writeDoubleBE=BP.writeDoubleBE,arr.fill=BP.fill,arr.inspect=BP.inspect,arr.toArrayBuffer=BP.toArrayBuffer,arr};var INVALID_BASE64_RE=/[^+\/0-9A-Za-z-_]/g}).call(exports,__webpack_require__(1).Buffer,function(){return this}())},function(module,exports){function cleanUpNextTick(){draining=!1,currentQueue.length?queue=currentQueue.concat(queue):queueIndex=-1,queue.length&&drainQueue()}function drainQueue(){if(!draining){var timeout=setTimeout(cleanUpNextTick);draining=!0;for(var len=queue.length;len;){for(currentQueue=queue,queue=[];++queueIndex1)for(var i=1;i=0;i--){var last=parts[i];"."===last?parts.splice(i,1):".."===last?(parts.splice(i,1),up++):up&&(parts.splice(i,1),up--)}if(allowAboveRoot)for(;up--;up)parts.unshift("..");return parts}function filter(xs,f){if(xs.filter)return xs.filter(f);for(var res=[],i=0;i=-1&&!resolvedAbsolute;i--){var path=i>=0?arguments[i]:process.cwd();if("string"!=typeof path)throw new TypeError("Arguments to path.resolve must be strings");path&&(resolvedPath=path+"/"+resolvedPath,resolvedAbsolute="/"===path.charAt(0))}return resolvedPath=normalizeArray(filter(resolvedPath.split("/"),function(p){return!!p}),!resolvedAbsolute).join("/"),(resolvedAbsolute?"/":"")+resolvedPath||"."},exports.normalize=function(path){var isAbsolute=exports.isAbsolute(path),trailingSlash="/"===substr(path,-1);return path=normalizeArray(filter(path.split("/"),function(p){return!!p}),!isAbsolute).join("/"),path||isAbsolute||(path="."),path&&trailingSlash&&(path+="/"),(isAbsolute?"/":"")+path},exports.isAbsolute=function(path){return"/"===path.charAt(0)},exports.join=function(){var paths=Array.prototype.slice.call(arguments,0);return exports.normalize(filter(paths,function(p,index){if("string"!=typeof p)throw new TypeError("Arguments to path.join must be strings");return p}).join("/"))},exports.relative=function(from,to){function trim(arr){for(var start=0;start=0&&""===arr[end];end--);return start>end?[]:arr.slice(start,end-start+1)}from=exports.resolve(from).substr(1),to=exports.resolve(to).substr(1);for(var fromParts=trim(from.split("/")),toParts=trim(to.split("/")),length=Math.min(fromParts.length,toParts.length),samePartsLength=length,i=0;length>i;i++)if(fromParts[i]!==toParts[i]){samePartsLength=i;break}for(var outputParts=[],i=samePartsLength;istart&&(start=str.length+start),str.substr(start,len)}}).call(exports,__webpack_require__(2))},function(module,exports){module.exports={}},function(module,exports){var $Object=Object;module.exports={create:$Object.create,getProto:$Object.getPrototypeOf,isEnum:{}.propertyIsEnumerable,getDesc:$Object.getOwnPropertyDescriptor,setDesc:$Object.defineProperty,setDescs:$Object.defineProperties,getKeys:$Object.keys,getNames:$Object.getOwnPropertyNames,getSymbols:$Object.getOwnPropertySymbols,each:[].forEach}},function(module,exports,__webpack_require__){(function(global,process){function inspect(obj,opts){var ctx={seen:[],stylize:stylizeNoColor};return arguments.length>=3&&(ctx.depth=arguments[2]),arguments.length>=4&&(ctx.colors=arguments[3]),isBoolean(opts)?ctx.showHidden=opts:opts&&exports._extend(ctx,opts),isUndefined(ctx.showHidden)&&(ctx.showHidden=!1),isUndefined(ctx.depth)&&(ctx.depth=2),isUndefined(ctx.colors)&&(ctx.colors=!1),isUndefined(ctx.customInspect)&&(ctx.customInspect=!0),ctx.colors&&(ctx.stylize=stylizeWithColor),formatValue(ctx,obj,ctx.depth)}function stylizeWithColor(str,styleType){var style=inspect.styles[styleType];return style?"["+inspect.colors[style][0]+"m"+str+"["+inspect.colors[style][1]+"m":str}function stylizeNoColor(str,styleType){return str}function arrayToHash(array){var hash={};return array.forEach(function(val,idx){hash[val]=!0}),hash}function formatValue(ctx,value,recurseTimes){if(ctx.customInspect&&value&&isFunction(value.inspect)&&value.inspect!==exports.inspect&&(!value.constructor||value.constructor.prototype!==value)){var ret=value.inspect(recurseTimes,ctx);return isString(ret)||(ret=formatValue(ctx,ret,recurseTimes)),ret}var primitive=formatPrimitive(ctx,value);if(primitive)return primitive;var keys=Object.keys(value),visibleKeys=arrayToHash(keys);if(ctx.showHidden&&(keys=Object.getOwnPropertyNames(value)),isError(value)&&(keys.indexOf("message")>=0||keys.indexOf("description")>=0))return formatError(value);if(0===keys.length){if(isFunction(value)){var name=value.name?": "+value.name:"";return ctx.stylize("[Function"+name+"]","special")}if(isRegExp(value))return ctx.stylize(RegExp.prototype.toString.call(value),"regexp");if(isDate(value))return ctx.stylize(Date.prototype.toString.call(value),"date");if(isError(value))return formatError(value)}var base="",array=!1,braces=["{","}"];if(isArray(value)&&(array=!0,braces=["[","]"]),isFunction(value)){var n=value.name?": "+value.name:"";base=" [Function"+n+"]"}if(isRegExp(value)&&(base=" "+RegExp.prototype.toString.call(value)),isDate(value)&&(base=" "+Date.prototype.toUTCString.call(value)),isError(value)&&(base=" "+formatError(value)),0===keys.length&&(!array||0==value.length))return braces[0]+base+braces[1];if(0>recurseTimes)return isRegExp(value)?ctx.stylize(RegExp.prototype.toString.call(value),"regexp"):ctx.stylize("[Object]","special");ctx.seen.push(value);var output;return output=array?formatArray(ctx,value,recurseTimes,visibleKeys,keys):keys.map(function(key){return formatProperty(ctx,value,recurseTimes,visibleKeys,key,array)}),ctx.seen.pop(),reduceToSingleString(output,base,braces)}function formatPrimitive(ctx,value){if(isUndefined(value))return ctx.stylize("undefined","undefined");if(isString(value)){var simple="'"+JSON.stringify(value).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return ctx.stylize(simple,"string")}return isNumber(value)?ctx.stylize(""+value,"number"):isBoolean(value)?ctx.stylize(""+value,"boolean"):isNull(value)?ctx.stylize("null","null"):void 0}function formatError(value){return"["+Error.prototype.toString.call(value)+"]"}function formatArray(ctx,value,recurseTimes,visibleKeys,keys){for(var output=[],i=0,l=value.length;l>i;++i)hasOwnProperty(value,String(i))?output.push(formatProperty(ctx,value,recurseTimes,visibleKeys,String(i),!0)):output.push("");return keys.forEach(function(key){key.match(/^\d+$/)||output.push(formatProperty(ctx,value,recurseTimes,visibleKeys,key,!0))}),output}function formatProperty(ctx,value,recurseTimes,visibleKeys,key,array){var name,str,desc;if(desc=Object.getOwnPropertyDescriptor(value,key)||{value:value[key]},desc.get?str=desc.set?ctx.stylize("[Getter/Setter]","special"):ctx.stylize("[Getter]","special"):desc.set&&(str=ctx.stylize("[Setter]","special")),hasOwnProperty(visibleKeys,key)||(name="["+key+"]"),str||(ctx.seen.indexOf(desc.value)<0?(str=isNull(recurseTimes)?formatValue(ctx,desc.value,null):formatValue(ctx,desc.value,recurseTimes-1),str.indexOf("\n")>-1&&(str=array?str.split("\n").map(function(line){return" "+line}).join("\n").substr(2):"\n"+str.split("\n").map(function(line){return" "+line}).join("\n"))):str=ctx.stylize("[Circular]","special")),isUndefined(name)){if(array&&key.match(/^\d+$/))return str;name=JSON.stringify(""+key),name.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(name=name.substr(1,name.length-2),name=ctx.stylize(name,"name")):(name=name.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),name=ctx.stylize(name,"string"))}return name+": "+str}function reduceToSingleString(output,base,braces){var numLinesEst=0,length=output.reduce(function(prev,cur){return numLinesEst++,cur.indexOf("\n")>=0&&numLinesEst++,prev+cur.replace(/\u001b\[\d\d?m/g,"").length+1},0);return length>60?braces[0]+(""===base?"":base+"\n ")+" "+output.join(",\n ")+" "+braces[1]:braces[0]+base+" "+output.join(", ")+" "+braces[1]}function isArray(ar){return Array.isArray(ar)}function isBoolean(arg){return"boolean"==typeof arg}function isNull(arg){return null===arg}function isNullOrUndefined(arg){return null==arg}function isNumber(arg){return"number"==typeof arg}function isString(arg){return"string"==typeof arg}function isSymbol(arg){return"symbol"==typeof arg}function isUndefined(arg){return void 0===arg}function isRegExp(re){return isObject(re)&&"[object RegExp]"===objectToString(re)}function isObject(arg){return"object"==typeof arg&&null!==arg}function isDate(d){return isObject(d)&&"[object Date]"===objectToString(d)}function isError(e){return isObject(e)&&("[object Error]"===objectToString(e)||e instanceof Error)}function isFunction(arg){return"function"==typeof arg}function isPrimitive(arg){return null===arg||"boolean"==typeof arg||"number"==typeof arg||"string"==typeof arg||"symbol"==typeof arg||"undefined"==typeof arg}function objectToString(o){return Object.prototype.toString.call(o)}function pad(n){return 10>n?"0"+n.toString(10):n.toString(10)}function timestamp(){var d=new Date,time=[pad(d.getHours()),pad(d.getMinutes()),pad(d.getSeconds())].join(":");return[d.getDate(),months[d.getMonth()],time].join(" ")}function hasOwnProperty(obj,prop){return Object.prototype.hasOwnProperty.call(obj,prop)}var formatRegExp=/%[sdj%]/g;exports.format=function(f){if(!isString(f)){for(var objects=[],i=0;i=len)return x;switch(x){case"%s":return String(args[i++]);case"%d":return Number(args[i++]);case"%j":try{return JSON.stringify(args[i++])}catch(_){return"[Circular]"}default:return x}}),x=args[i];len>i;x=args[++i])str+=isNull(x)||!isObject(x)?" "+x:" "+inspect(x);return str},exports.deprecate=function(fn,msg){function deprecated(){if(!warned){if(process.throwDeprecation)throw new Error(msg);process.traceDeprecation?console.trace(msg):console.error(msg),warned=!0}return fn.apply(this,arguments)}if(isUndefined(global.process))return function(){return exports.deprecate(fn,msg).apply(this,arguments)};if(process.noDeprecation===!0)return fn;var warned=!1;return deprecated};var debugEnviron,debugs={};exports.debuglog=function(set){if(isUndefined(debugEnviron)&&(debugEnviron=process.env.NODE_DEBUG||""),set=set.toUpperCase(),!debugs[set])if(new RegExp("\\b"+set+"\\b","i").test(debugEnviron)){var pid=process.pid;debugs[set]=function(){var msg=exports.format.apply(exports,arguments);console.error("%s %d: %s",set,pid,msg)}}else debugs[set]=function(){};return debugs[set]},exports.inspect=inspect,inspect.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},inspect.styles={special:"cyan",number:"yellow","boolean":"yellow",undefined:"grey","null":"bold",string:"green",date:"magenta",regexp:"red"},exports.isArray=isArray,exports.isBoolean=isBoolean,exports.isNull=isNull,exports.isNullOrUndefined=isNullOrUndefined,exports.isNumber=isNumber,exports.isString=isString,exports.isSymbol=isSymbol,exports.isUndefined=isUndefined,exports.isRegExp=isRegExp,exports.isObject=isObject,exports.isDate=isDate,exports.isError=isError,exports.isFunction=isFunction,exports.isPrimitive=isPrimitive,exports.isBuffer=__webpack_require__(310);var months=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];exports.log=function(){console.log("%s - %s",timestamp(),exports.format.apply(exports,arguments))},exports.inherits=__webpack_require__(4),exports._extend=function(origin,add){if(!add||!isObject(add))return origin;for(var keys=Object.keys(add),i=keys.length;i--;)origin[keys[i]]=add[keys[i]];return origin}}).call(exports,function(){return this}(),__webpack_require__(2))},function(module,exports,__webpack_require__){(function(Buffer){function isArray(arg){return Array.isArray?Array.isArray(arg):"[object Array]"===objectToString(arg)}function isBoolean(arg){return"boolean"==typeof arg}function isNull(arg){return null===arg}function isNullOrUndefined(arg){return null==arg}function isNumber(arg){return"number"==typeof arg}function isString(arg){return"string"==typeof arg}function isSymbol(arg){return"symbol"==typeof arg}function isUndefined(arg){return void 0===arg}function isRegExp(re){return"[object RegExp]"===objectToString(re)}function isObject(arg){return"object"==typeof arg&&null!==arg}function isDate(d){return"[object Date]"===objectToString(d)}function isError(e){return"[object Error]"===objectToString(e)||e instanceof Error}function isFunction(arg){return"function"==typeof arg}function isPrimitive(arg){return null===arg||"boolean"==typeof arg||"number"==typeof arg||"string"==typeof arg||"symbol"==typeof arg||"undefined"==typeof arg}function objectToString(o){return Object.prototype.toString.call(o)}exports.isArray=isArray,exports.isBoolean=isBoolean,exports.isNull=isNull,exports.isNullOrUndefined=isNullOrUndefined,exports.isNumber=isNumber,exports.isString=isString,exports.isSymbol=isSymbol,exports.isUndefined=isUndefined,exports.isRegExp=isRegExp,exports.isObject=isObject,exports.isDate=isDate,exports.isError=isError,exports.isFunction=isFunction,exports.isPrimitive=isPrimitive,exports.isBuffer=Buffer.isBuffer}).call(exports,__webpack_require__(1).Buffer)},function(module,exports){"use strict";exports.command=function(send,name){return function(opts,cb){return"function"==typeof opts&&(cb=opts,opts={}),send(name,null,opts,null,cb)}},exports.argCommand=function(send,name){return function(arg,opts,cb){return"function"==typeof opts&&(cb=opts,opts={}),send(name,arg,opts,null,cb)}}},function(module,exports){var core=module.exports={version:"1.2.6"};"number"==typeof __e&&(__e=core)},function(module,exports,__webpack_require__){var store=__webpack_require__(76)("wks"),uid=__webpack_require__(78),Symbol=__webpack_require__(14).Symbol;module.exports=function(name){return store[name]||(store[name]=Symbol&&Symbol[name]||(Symbol||uid)("Symbol."+name))}},function(module,exports,__webpack_require__){(function(process){function noop(){}function patch(fs){function readFile(path,options,cb){function go$readFile(path,options,cb){return fs$readFile(path,options,function(err){!err||"EMFILE"!==err.code&&"ENFILE"!==err.code?("function"==typeof cb&&cb.apply(this,arguments),retry()):enqueue([go$readFile,[path,options,cb]])})}return"function"==typeof options&&(cb=options,options=null),go$readFile(path,options,cb)}function writeFile(path,data,options,cb){function go$writeFile(path,data,options,cb){return fs$writeFile(path,data,options,function(err){!err||"EMFILE"!==err.code&&"ENFILE"!==err.code?("function"==typeof cb&&cb.apply(this,arguments),retry()):enqueue([go$writeFile,[path,data,options,cb]])})}return"function"==typeof options&&(cb=options,options=null),go$writeFile(path,data,options,cb)}function appendFile(path,data,options,cb){function go$appendFile(path,data,options,cb){return fs$appendFile(path,data,options,function(err){!err||"EMFILE"!==err.code&&"ENFILE"!==err.code?("function"==typeof cb&&cb.apply(this,arguments),retry()):enqueue([go$appendFile,[path,data,options,cb]])})}return"function"==typeof options&&(cb=options,options=null),go$appendFile(path,data,options,cb)}function readdir(path,cb){function go$readdir(){return fs$readdir(path,function(err,files){files&&files.sort&&files.sort(),!err||"EMFILE"!==err.code&&"ENFILE"!==err.code?("function"==typeof cb&&cb.apply(this,arguments),retry()):enqueue([go$readdir,[path,cb]])})}return go$readdir(path,cb)}function ReadStream(path,options){return this instanceof ReadStream?(fs$ReadStream.apply(this,arguments),this):ReadStream.apply(Object.create(ReadStream.prototype),arguments)}function ReadStream$open(){var that=this;open(that.path,that.flags,that.mode,function(err,fd){err?(that.autoClose&&that.destroy(),that.emit("error",err)):(that.fd=fd,that.emit("open",fd),that.read())})}function WriteStream(path,options){return this instanceof WriteStream?(fs$WriteStream.apply(this,arguments),this):WriteStream.apply(Object.create(WriteStream.prototype),arguments)}function WriteStream$open(){var that=this;open(that.path,that.flags,that.mode,function(err,fd){err?(that.destroy(),that.emit("error",err)):(that.fd=fd,that.emit("open",fd))})}function createReadStream(path,options){return new ReadStream(path,options)}function createWriteStream(path,options){return new WriteStream(path,options)}function open(path,flags,mode,cb){function go$open(path,flags,mode,cb){return fs$open(path,flags,mode,function(err,fd){!err||"EMFILE"!==err.code&&"ENFILE"!==err.code?("function"==typeof cb&&cb.apply(this,arguments),retry()):enqueue([go$open,[path,flags,mode,cb]])})}return"function"==typeof mode&&(cb=mode,mode=null),go$open(path,flags,mode,cb)}polyfills(fs),fs.gracefulify=patch,fs.FileReadStream=ReadStream,fs.FileWriteStream=WriteStream,fs.createReadStream=createReadStream,fs.createWriteStream=createWriteStream;var fs$readFile=fs.readFile;fs.readFile=readFile;var fs$writeFile=fs.writeFile;fs.writeFile=writeFile;var fs$appendFile=fs.appendFile;fs$appendFile&&(fs.appendFile=appendFile);var fs$readdir=fs.readdir;if(fs.readdir=readdir,"v0.8"===process.version.substr(0,4)){var legStreams=legacy(fs);ReadStream=legStreams.ReadStream,WriteStream=legStreams.WriteStream}var fs$ReadStream=fs.ReadStream;ReadStream.prototype=Object.create(fs$ReadStream.prototype),ReadStream.prototype.open=ReadStream$open;var fs$WriteStream=fs.WriteStream;WriteStream.prototype=Object.create(fs$WriteStream.prototype),WriteStream.prototype.open=WriteStream$open,fs.ReadStream=ReadStream,fs.WriteStream=WriteStream;var fs$open=fs.open;return fs.open=open,fs}function enqueue(elem){debug("ENQUEUE",elem[0].name,elem[1]),queue.push(elem)}function retry(){var elem=queue.shift();elem&&(debug("RETRY",elem[0].name,elem[1]),elem[0].apply(null,elem[1]))}var fs=__webpack_require__(6),polyfills=__webpack_require__(234),legacy=__webpack_require__(233),queue=[],util=__webpack_require__(8),debug=noop;util.debuglog?debug=util.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(debug=function(){var m=util.format.apply(util,arguments);m="GFS4: "+m.split(/\n/).join("\nGFS4: "),console.error(m)}),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){debug(queue),__webpack_require__(41).equal(queue.length,0)}),module.exports=patch(__webpack_require__(86)),process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&(module.exports=patch(fs)),module.exports.close=fs.close=function(fs$close){return function(fd,cb){return fs$close.call(fs,fd,function(err){err||retry(),"function"==typeof cb&&cb.apply(this,arguments)})}}(fs.close),module.exports.closeSync=fs.closeSync=function(fs$closeSync){return function(fd){var rval=fs$closeSync.apply(fs,arguments);return retry(),rval}}(fs.closeSync)}).call(exports,__webpack_require__(2))},function(module,exports){var global=module.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=global)},function(module,exports){function EventEmitter(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function isFunction(arg){return"function"==typeof arg}function isNumber(arg){return"number"==typeof arg}function isObject(arg){return"object"==typeof arg&&null!==arg}function isUndefined(arg){return void 0===arg}module.exports=EventEmitter,EventEmitter.EventEmitter=EventEmitter,EventEmitter.prototype._events=void 0,EventEmitter.prototype._maxListeners=void 0,EventEmitter.defaultMaxListeners=10,EventEmitter.prototype.setMaxListeners=function(n){if(!isNumber(n)||0>n||isNaN(n))throw TypeError("n must be a positive number");return this._maxListeners=n,this},EventEmitter.prototype.emit=function(type){var er,handler,len,args,i,listeners;if(this._events||(this._events={}),"error"===type&&(!this._events.error||isObject(this._events.error)&&!this._events.error.length)){if(er=arguments[1],er instanceof Error)throw er;throw TypeError('Uncaught, unspecified "error" event.')}if(handler=this._events[type],isUndefined(handler))return!1;if(isFunction(handler))switch(arguments.length){case 1:handler.call(this);break;case 2:handler.call(this,arguments[1]);break;case 3:handler.call(this,arguments[1],arguments[2]);break;default:args=Array.prototype.slice.call(arguments,1),handler.apply(this,args)}else if(isObject(handler))for(args=Array.prototype.slice.call(arguments,1),listeners=handler.slice(),len=listeners.length,i=0;len>i;i++)listeners[i].apply(this,args);return!0},EventEmitter.prototype.addListener=function(type,listener){var m;if(!isFunction(listener))throw TypeError("listener must be a function");return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",type,isFunction(listener.listener)?listener.listener:listener),this._events[type]?isObject(this._events[type])?this._events[type].push(listener):this._events[type]=[this._events[type],listener]:this._events[type]=listener,isObject(this._events[type])&&!this._events[type].warned&&(m=isUndefined(this._maxListeners)?EventEmitter.defaultMaxListeners:this._maxListeners,m&&m>0&&this._events[type].length>m&&(this._events[type].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[type].length),"function"==typeof console.trace&&console.trace())),this},EventEmitter.prototype.on=EventEmitter.prototype.addListener,EventEmitter.prototype.once=function(type,listener){function g(){this.removeListener(type,g),fired||(fired=!0,listener.apply(this,arguments))}if(!isFunction(listener))throw TypeError("listener must be a function");var fired=!1;return g.listener=listener,this.on(type,g),this},EventEmitter.prototype.removeListener=function(type,listener){var list,position,length,i;if(!isFunction(listener))throw TypeError("listener must be a function");if(!this._events||!this._events[type])return this;if(list=this._events[type],length=list.length,position=-1,list===listener||isFunction(list.listener)&&list.listener===listener)delete this._events[type],this._events.removeListener&&this.emit("removeListener",type,listener);else if(isObject(list)){for(i=length;i-- >0;)if(list[i]===listener||list[i].listener&&list[i].listener===listener){position=i;break}if(0>position)return this;1===list.length?(list.length=0,delete this._events[type]):list.splice(position,1),this._events.removeListener&&this.emit("removeListener",type,listener)}return this},EventEmitter.prototype.removeAllListeners=function(type){var key,listeners;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[type]&&delete this._events[type],this;if(0===arguments.length){for(key in this._events)"removeListener"!==key&&this.removeAllListeners(key);return this.removeAllListeners("removeListener"),this._events={},this}if(listeners=this._events[type],isFunction(listeners))this.removeListener(type,listeners);else if(listeners)for(;listeners.length;)this.removeListener(type,listeners[listeners.length-1]);return delete this._events[type],this},EventEmitter.prototype.listeners=function(type){var ret;return ret=this._events&&this._events[type]?isFunction(this._events[type])?[this._events[type]]:this._events[type].slice():[]},EventEmitter.prototype.listenerCount=function(type){if(this._events){var evlistener=this._events[type];if(isFunction(evlistener))return 1;if(evlistener)return evlistener.length}return 0},EventEmitter.listenerCount=function(emitter,type){return emitter.listenerCount(type)}},function(module,exports,__webpack_require__){(function(process){function Duplex(options){return this instanceof Duplex?(Readable.call(this,options),Writable.call(this,options),options&&options.readable===!1&&(this.readable=!1),options&&options.writable===!1&&(this.writable=!1),this.allowHalfOpen=!0,options&&options.allowHalfOpen===!1&&(this.allowHalfOpen=!1),void this.once("end",onend)):new Duplex(options)}function onend(){this.allowHalfOpen||this._writableState.ended||process.nextTick(this.end.bind(this))}function forEach(xs,f){for(var i=0,l=xs.length;l>i;i++)f(xs[i],i)}module.exports=Duplex;var objectKeys=Object.keys||function(obj){var keys=[];for(var key in obj)keys.push(key);return keys},util=__webpack_require__(9);util.inherits=__webpack_require__(4);var Readable=__webpack_require__(105),Writable=__webpack_require__(63);util.inherits(Duplex,Readable),forEach(objectKeys(Writable.prototype),function(method){Duplex.prototype[method]||(Duplex.prototype[method]=Writable.prototype[method])})}).call(exports,__webpack_require__(2))},function(module,exports){function extend(){for(var target={},i=0;i=this.charLength-this.charReceived?this.charLength-this.charReceived:buffer.length;if(buffer.copy(this.charBuffer,this.charReceived,0,available),this.charReceived+=available,this.charReceived=55296&&56319>=charCode)){if(this.charReceived=this.charLength=0,0===buffer.length)return charStr;break}this.charLength+=this.surrogateSize,charStr=""}this.detectIncompleteChar(buffer);var end=buffer.length;this.charLength&&(buffer.copy(this.charBuffer,0,buffer.length-this.charReceived,end),end-=this.charReceived),charStr+=buffer.toString(this.encoding,0,end);var end=charStr.length-1,charCode=charStr.charCodeAt(end);if(charCode>=55296&&56319>=charCode){var size=this.surrogateSize;return this.charLength+=size,this.charReceived+=size,this.charBuffer.copy(this.charBuffer,size,0,size),buffer.copy(this.charBuffer,0,0,size),charStr.substring(0,end)}return charStr},StringDecoder.prototype.detectIncompleteChar=function(buffer){for(var i=buffer.length>=3?3:buffer.length;i>0;i--){var c=buffer[buffer.length-i];if(1==i&&c>>5==6){this.charLength=2;break}if(2>=i&&c>>4==14){this.charLength=3;break}if(3>=i&&c>>3==30){this.charLength=4;break}}this.charReceived=i},StringDecoder.prototype.end=function(buffer){var res="";if(buffer&&buffer.length&&(res=this.write(buffer)),this.charReceived){var cr=this.charReceived,buf=this.charBuffer,enc=this.encoding;res+=buf.slice(0,cr).toString(enc)}return res}},function(module,exports,__webpack_require__){(function(Buffer,process){"use strict";function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{"default":obj}}var _stringify=__webpack_require__(148),_stringify2=_interopRequireDefault(_stringify),_keys=__webpack_require__(18),_keys2=_interopRequireDefault(_keys),_defineProperty=__webpack_require__(150),_defineProperty2=_interopRequireDefault(_defineProperty),_getOwnPropertyDescriptor=__webpack_require__(151),_getOwnPropertyDescriptor2=_interopRequireDefault(_getOwnPropertyDescriptor),_getOwnPropertyNames=__webpack_require__(152),_getOwnPropertyNames2=_interopRequireDefault(_getOwnPropertyNames),_create=__webpack_require__(42),_create2=_interopRequireDefault(_create),_getPrototypeOf=__webpack_require__(153),_getPrototypeOf2=_interopRequireDefault(_getPrototypeOf),_typeof2=__webpack_require__(24),_typeof3=_interopRequireDefault(_typeof2),Crypto=__webpack_require__(215),Path=__webpack_require__(5),Util=__webpack_require__(8),Escape=__webpack_require__(119),internals={};exports.clone=function(obj,seen){if("object"!==("undefined"==typeof obj?"undefined":(0,_typeof3["default"])(obj))||null===obj)return obj;seen=seen||{orig:[],copy:[]};var lookup=seen.orig.indexOf(obj);if(-1!==lookup)return seen.copy[lookup];var newObj=void 0,cloneDeep=!1;if(Array.isArray(obj))newObj=[],cloneDeep=!0;else if(Buffer.isBuffer(obj))newObj=new Buffer(obj);else if(obj instanceof Date)newObj=new Date(obj.getTime());else if(obj instanceof RegExp)newObj=new RegExp(obj);else{var proto=(0,_getPrototypeOf2["default"])(obj);proto&&proto.isImmutable?newObj=obj:(newObj=(0,_create2["default"])(proto),cloneDeep=!0)}if(seen.orig.push(obj),seen.copy.push(newObj),cloneDeep)for(var keys=(0,_getOwnPropertyNames2["default"])(obj),i=0;i=2,"Insufficient arguments"),exports.assert("string"==typeof ref||"object"===("undefined"==typeof ref?"undefined":(0,_typeof3["default"])(ref)),"Reference must be string or an object"),exports.assert(values.length,"Values array cannot be empty");var compare=void 0,compareFlags=void 0;if(options.deep){compare=exports.deepEqual;var hasOnly=options.hasOwnProperty("only"),hasPart=options.hasOwnProperty("part");compareFlags={prototype:hasOnly?options.only:hasPart?!options.part:!1,part:hasOnly?!options.only:hasPart?options.part:!0}}else compare=function(a,b){return a===b};for(var misses=!1,matches=new Array(values.length),i=0;i1||!options.part&&!matches[i])return!1;return options.only&&misses?!1:result},exports.flatten=function(array,target){for(var result=target||[],i=0;i\?@\[\]\^`\{\|\}~\"\\]*$/.test(attribute),"Bad attribute value ("+attribute+")"),attribute.replace(/\\/g,"\\\\").replace(/\"/g,'\\"')},exports.escapeHtml=function(string){return Escape.escapeHtml(string)},exports.escapeJavaScript=function(string){return Escape.escapeJavaScript(string)},exports.nextTick=function(callback){return function(){var args=arguments;process.nextTick(function(){callback.apply(null,args)})}},exports.once=function(method){if(method._hoekOnce)return method;var once=!1,wrapped=function(){once||(once=!0,method.apply(null,arguments))};return wrapped._hoekOnce=!0,wrapped},exports.isAbsolutePath=function(path,platform){return path?Path.isAbsolute?Path.isAbsolute(path):(platform=platform||process.platform,"win32"!==platform?"/"===path[0]:!!/^(?:[a-zA-Z]:[\\\/])|(?:[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/])/.test(path)):!1},exports.isInteger=function(value){return"number"==typeof value&&parseFloat(value)===parseInt(value,10)&&!isNaN(value)},exports.ignore=function(){},exports.inherits=Util.inherits,exports.format=Util.format,exports.transform=function(source,transform,options){if(exports.assert(null===source||void 0===source||"object"===("undefined"==typeof source?"undefined":(0,_typeof3["default"])(source))||Array.isArray(source),"Invalid source object: must be null, undefined, an object, or an array"),Array.isArray(source)){for(var results=[],i=0;i1;)segment=path.shift(),res[segment]||(res[segment]={}),res=res[segment];segment=path.shift(),res[segment]=exports.reach(source,sourcePath,options)}return result},exports.uniqueFilename=function(path,extension){extension=extension?"."!==extension[0]?"."+extension:extension:"",path=Path.resolve(path);var name=[Date.now(),process.pid,Crypto.randomBytes(8).toString("hex")].join("-")+extension;return Path.join(path,name)},exports.stringify=function(){try{return _stringify2["default"].apply(null,arguments)}catch(err){return"[Cannot display object: "+err.message+"]"}},exports.shallow=function(source){for(var target={},keys=(0,_keys2["default"])(source),i=0;i-1&&value%1==0&&MAX_SAFE_INTEGER>=value}function isFunction(value){return isObject(value)&&objToString.call(value)==funcTag}function isObject(value){var type=typeof value;return!!value&&("object"==type||"function"==type)}function isNative(value){return null==value?!1:isFunction(value)?reIsNative.test(fnToString.call(value)):isObjectLike(value)&&reIsHostCtor.test(value)}var arrayTag="[object Array]",funcTag="[object Function]",reIsHostCtor=/^\[object .+?Constructor\]$/,objectProto=Object.prototype,fnToString=Function.prototype.toString,hasOwnProperty=objectProto.hasOwnProperty,objToString=objectProto.toString,reIsNative=RegExp("^"+fnToString.call(hasOwnProperty).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),nativeIsArray=getNative(Array,"isArray"),MAX_SAFE_INTEGER=9007199254740991,isArray=nativeIsArray||function(value){return isObjectLike(value)&&isLength(value.length)&&objToString.call(value)==arrayTag};module.exports=isArray},function(module,exports,__webpack_require__){(function(process){function DestroyableTransform(opts){Transform.call(this,opts),this._destroyed=!1}function noop(chunk,enc,callback){callback(null,chunk)}function through2(construct){return function(options,transform,flush){return"function"==typeof options&&(flush=transform,transform=options,options={}),"function"!=typeof transform&&(transform=noop),"function"!=typeof flush&&(flush=null),construct(options,transform,flush)}}var Transform=__webpack_require__(61),inherits=__webpack_require__(8).inherits,xtend=__webpack_require__(17);inherits(DestroyableTransform,Transform),DestroyableTransform.prototype.destroy=function(err){if(!this._destroyed){this._destroyed=!0;var self=this;process.nextTick(function(){err&&self.emit("error",err),self.emit("close")})}},module.exports=through2(function(options,transform,flush){var t2=new DestroyableTransform(options);return t2._transform=transform,flush&&(t2._flush=flush),t2}),module.exports.ctor=through2(function(options,transform,flush){function Through2(override){return this instanceof Through2?(this.options=xtend(options,override),void DestroyableTransform.call(this,this.options)):new Through2(override)}return inherits(Through2,DestroyableTransform),Through2.prototype._transform=transform,flush&&(Through2.prototype._flush=flush),Through2}),module.exports.obj=through2(function(options,transform,flush){var t2=new DestroyableTransform(xtend({objectMode:!0,highWaterMark:16},options));return t2._transform=transform,flush&&(t2._flush=flush),t2})}).call(exports,__webpack_require__(2))},function(module,exports,__webpack_require__){module.exports={"default":__webpack_require__(177),__esModule:!0}},function(module,exports,__webpack_require__){module.exports=!__webpack_require__(33)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(module,exports){module.exports=function(exec){try{return!!exec()}catch(e){return!0}}},function(module,exports){module.exports=function(it){return"object"==typeof it?null!==it:"function"==typeof it}},function(module,exports,__webpack_require__){var $export=__webpack_require__(20),core=__webpack_require__(11),fails=__webpack_require__(33);module.exports=function(KEY,exec){var fn=(core.Object||{})[KEY]||Object[KEY],exp={};exp[KEY]=exec(fn),$export($export.S+$export.F*fails(function(){fn(1)}),"Object",exp)}},function(module,exports,__webpack_require__){var def=__webpack_require__(7).setDesc,has=__webpack_require__(45),TAG=__webpack_require__(12)("toStringTag");module.exports=function(it,tag,stat){it&&!has(it=stat?it:it.prototype,TAG)&&def(it,TAG,{configurable:!0,value:tag})}},function(module,exports,__webpack_require__){(function(Buffer,process){var stream=__webpack_require__(102),eos=__webpack_require__(219),util=__webpack_require__(8),SIGNAL_FLUSH=new Buffer([0]),onuncork=function(self,fn){self._corked?self.once("uncork",fn):fn()},destroyer=function(self,end){return function(err){err?self.destroy("premature close"===err.message?null:err):end&&!self._ended&&self.end()}},end=function(ws,fn){return ws?ws._writableState&&ws._writableState.finished?fn():ws._writableState?ws.end(fn):(ws.end(),void fn()):fn()},toStreams2=function(rs){return new stream.Readable({objectMode:!0,highWaterMark:16}).wrap(rs)},Duplexify=function(writable,readable,opts){return this instanceof Duplexify?(stream.Duplex.call(this,opts),this._writable=null,this._readable=null,this._readable2=null,this._forwardDestroy=!opts||opts.destroy!==!1,this._forwardEnd=!opts||opts.end!==!1,this._corked=1,this._ondrain=null,this._drained=!1,this._forwarding=!1,this._unwrite=null,this._unread=null,this._ended=!1,this.destroyed=!1,writable&&this.setWritable(writable),void(readable&&this.setReadable(readable))):new Duplexify(writable,readable,opts)};util.inherits(Duplexify,stream.Duplex),Duplexify.obj=function(writable,readable,opts){return opts||(opts={}),opts.objectMode=!0,opts.highWaterMark=16,new Duplexify(writable,readable,opts)},Duplexify.prototype.cork=function(){1===++this._corked&&this.emit("cork")},Duplexify.prototype.uncork=function(){this._corked&&0===--this._corked&&this.emit("uncork")},Duplexify.prototype.setWritable=function(writable){if(this._unwrite&&this._unwrite(),this.destroyed)return void(writable&&writable.destroy&&writable.destroy());if(null===writable||writable===!1)return void this.end();var self=this,unend=eos(writable,{writable:!0,readable:!1},destroyer(this,this._forwardEnd)),ondrain=function(){var ondrain=self._ondrain;self._ondrain=null,ondrain&&ondrain()},clear=function(){self._writable.removeListener("drain",ondrain),unend()};this._unwrite&&process.nextTick(ondrain),this._writable=writable,this._writable.on("drain",ondrain),this._unwrite=clear,this.uncork()},Duplexify.prototype.setReadable=function(readable){if(this._unread&&this._unread(),this.destroyed)return void(readable&&readable.destroy&&readable.destroy());if(null===readable||readable===!1)return this.push(null),void this.resume();var self=this,unend=eos(readable,{writable:!1,readable:!0},destroyer(this)),onreadable=function(){self._forward()},onend=function(){self.push(null)},clear=function(){self._readable2.removeListener("readable",onreadable),self._readable2.removeListener("end",onend),unend()};this._drained=!0,this._readable=readable,this._readable2=readable._readableState?readable:toStreams2(readable),this._readable2.on("readable",onreadable),this._readable2.on("end",onend),this._unread=clear,this._forward()},Duplexify.prototype._read=function(){this._drained=!0,this._forward()},Duplexify.prototype._forward=function(){if(!this._forwarding&&this._readable2&&this._drained){this._forwarding=!0;for(var data,state=this._readable2._readableState;null!==(data=this._readable2.read(state.buffer.length?state.buffer[0].length:state.length));)this._drained=this.push(data);this._forwarding=!1}},Duplexify.prototype.destroy=function(err){if(!this.destroyed){this.destroyed=!0;var self=this;process.nextTick(function(){self._destroy(err)})}},Duplexify.prototype._destroy=function(err){if(err){var ondrain=this._ondrain;this._ondrain=null,ondrain?ondrain(err):this.emit("error",err)}this._forwardDestroy&&(this._readable&&this._readable.destroy&&this._readable.destroy(),this._writable&&this._writable.destroy&&this._writable.destroy()),this.emit("close")},Duplexify.prototype._write=function(data,enc,cb){return this.destroyed?cb():this._corked?onuncork(this,this._write.bind(this,data,enc,cb)):data===SIGNAL_FLUSH?this._finish(cb):this._writable?void(this._writable.write(data)===!1?this._ondrain=cb:cb()):cb()},Duplexify.prototype._finish=function(cb){var self=this;this.emit("preend"),onuncork(this,function(){end(self._forwardEnd&&self._writable,function(){self._writableState.prefinished===!1&&(self._writableState.prefinished=!0),self.emit("prefinish"),onuncork(self,cb)})})},Duplexify.prototype.end=function(data,enc,cb){return"function"==typeof data?this.end(null,null,data):"function"==typeof enc?this.end(data,null,enc):(this._ended=!0,data&&this.write(data),this._writableState.ending||this.write(SIGNAL_FLUSH),stream.Writable.prototype.end.call(this,cb))},module.exports=Duplexify}).call(exports,__webpack_require__(1).Buffer,__webpack_require__(2))},function(module,exports){/*! +};exports.resolve=function(){for(var resolvedPath="",resolvedAbsolute=!1,i=arguments.length-1;i>=-1&&!resolvedAbsolute;i--){var path=i>=0?arguments[i]:process.cwd();if("string"!=typeof path)throw new TypeError("Arguments to path.resolve must be strings");path&&(resolvedPath=path+"/"+resolvedPath,resolvedAbsolute="/"===path.charAt(0))}return resolvedPath=normalizeArray(filter(resolvedPath.split("/"),function(p){return!!p}),!resolvedAbsolute).join("/"),(resolvedAbsolute?"/":"")+resolvedPath||"."},exports.normalize=function(path){var isAbsolute=exports.isAbsolute(path),trailingSlash="/"===substr(path,-1);return path=normalizeArray(filter(path.split("/"),function(p){return!!p}),!isAbsolute).join("/"),path||isAbsolute||(path="."),path&&trailingSlash&&(path+="/"),(isAbsolute?"/":"")+path},exports.isAbsolute=function(path){return"/"===path.charAt(0)},exports.join=function(){var paths=Array.prototype.slice.call(arguments,0);return exports.normalize(filter(paths,function(p,index){if("string"!=typeof p)throw new TypeError("Arguments to path.join must be strings");return p}).join("/"))},exports.relative=function(from,to){function trim(arr){for(var start=0;start=0&&""===arr[end];end--);return start>end?[]:arr.slice(start,end-start+1)}from=exports.resolve(from).substr(1),to=exports.resolve(to).substr(1);for(var fromParts=trim(from.split("/")),toParts=trim(to.split("/")),length=Math.min(fromParts.length,toParts.length),samePartsLength=length,i=0;length>i;i++)if(fromParts[i]!==toParts[i]){samePartsLength=i;break}for(var outputParts=[],i=samePartsLength;istart&&(start=str.length+start),str.substr(start,len)}}).call(exports,__webpack_require__(2))},function(module,exports){module.exports={}},function(module,exports){var $Object=Object;module.exports={create:$Object.create,getProto:$Object.getPrototypeOf,isEnum:{}.propertyIsEnumerable,getDesc:$Object.getOwnPropertyDescriptor,setDesc:$Object.defineProperty,setDescs:$Object.defineProperties,getKeys:$Object.keys,getNames:$Object.getOwnPropertyNames,getSymbols:$Object.getOwnPropertySymbols,each:[].forEach}},function(module,exports,__webpack_require__){(function(global,process){function inspect(obj,opts){var ctx={seen:[],stylize:stylizeNoColor};return arguments.length>=3&&(ctx.depth=arguments[2]),arguments.length>=4&&(ctx.colors=arguments[3]),isBoolean(opts)?ctx.showHidden=opts:opts&&exports._extend(ctx,opts),isUndefined(ctx.showHidden)&&(ctx.showHidden=!1),isUndefined(ctx.depth)&&(ctx.depth=2),isUndefined(ctx.colors)&&(ctx.colors=!1),isUndefined(ctx.customInspect)&&(ctx.customInspect=!0),ctx.colors&&(ctx.stylize=stylizeWithColor),formatValue(ctx,obj,ctx.depth)}function stylizeWithColor(str,styleType){var style=inspect.styles[styleType];return style?"["+inspect.colors[style][0]+"m"+str+"["+inspect.colors[style][1]+"m":str}function stylizeNoColor(str,styleType){return str}function arrayToHash(array){var hash={};return array.forEach(function(val,idx){hash[val]=!0}),hash}function formatValue(ctx,value,recurseTimes){if(ctx.customInspect&&value&&isFunction(value.inspect)&&value.inspect!==exports.inspect&&(!value.constructor||value.constructor.prototype!==value)){var ret=value.inspect(recurseTimes,ctx);return isString(ret)||(ret=formatValue(ctx,ret,recurseTimes)),ret}var primitive=formatPrimitive(ctx,value);if(primitive)return primitive;var keys=Object.keys(value),visibleKeys=arrayToHash(keys);if(ctx.showHidden&&(keys=Object.getOwnPropertyNames(value)),isError(value)&&(keys.indexOf("message")>=0||keys.indexOf("description")>=0))return formatError(value);if(0===keys.length){if(isFunction(value)){var name=value.name?": "+value.name:"";return ctx.stylize("[Function"+name+"]","special")}if(isRegExp(value))return ctx.stylize(RegExp.prototype.toString.call(value),"regexp");if(isDate(value))return ctx.stylize(Date.prototype.toString.call(value),"date");if(isError(value))return formatError(value)}var base="",array=!1,braces=["{","}"];if(isArray(value)&&(array=!0,braces=["[","]"]),isFunction(value)){var n=value.name?": "+value.name:"";base=" [Function"+n+"]"}if(isRegExp(value)&&(base=" "+RegExp.prototype.toString.call(value)),isDate(value)&&(base=" "+Date.prototype.toUTCString.call(value)),isError(value)&&(base=" "+formatError(value)),0===keys.length&&(!array||0==value.length))return braces[0]+base+braces[1];if(0>recurseTimes)return isRegExp(value)?ctx.stylize(RegExp.prototype.toString.call(value),"regexp"):ctx.stylize("[Object]","special");ctx.seen.push(value);var output;return output=array?formatArray(ctx,value,recurseTimes,visibleKeys,keys):keys.map(function(key){return formatProperty(ctx,value,recurseTimes,visibleKeys,key,array)}),ctx.seen.pop(),reduceToSingleString(output,base,braces)}function formatPrimitive(ctx,value){if(isUndefined(value))return ctx.stylize("undefined","undefined");if(isString(value)){var simple="'"+JSON.stringify(value).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return ctx.stylize(simple,"string")}return isNumber(value)?ctx.stylize(""+value,"number"):isBoolean(value)?ctx.stylize(""+value,"boolean"):isNull(value)?ctx.stylize("null","null"):void 0}function formatError(value){return"["+Error.prototype.toString.call(value)+"]"}function formatArray(ctx,value,recurseTimes,visibleKeys,keys){for(var output=[],i=0,l=value.length;l>i;++i)hasOwnProperty(value,String(i))?output.push(formatProperty(ctx,value,recurseTimes,visibleKeys,String(i),!0)):output.push("");return keys.forEach(function(key){key.match(/^\d+$/)||output.push(formatProperty(ctx,value,recurseTimes,visibleKeys,key,!0))}),output}function formatProperty(ctx,value,recurseTimes,visibleKeys,key,array){var name,str,desc;if(desc=Object.getOwnPropertyDescriptor(value,key)||{value:value[key]},desc.get?str=desc.set?ctx.stylize("[Getter/Setter]","special"):ctx.stylize("[Getter]","special"):desc.set&&(str=ctx.stylize("[Setter]","special")),hasOwnProperty(visibleKeys,key)||(name="["+key+"]"),str||(ctx.seen.indexOf(desc.value)<0?(str=isNull(recurseTimes)?formatValue(ctx,desc.value,null):formatValue(ctx,desc.value,recurseTimes-1),str.indexOf("\n")>-1&&(str=array?str.split("\n").map(function(line){return" "+line}).join("\n").substr(2):"\n"+str.split("\n").map(function(line){return" "+line}).join("\n"))):str=ctx.stylize("[Circular]","special")),isUndefined(name)){if(array&&key.match(/^\d+$/))return str;name=JSON.stringify(""+key),name.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(name=name.substr(1,name.length-2),name=ctx.stylize(name,"name")):(name=name.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),name=ctx.stylize(name,"string"))}return name+": "+str}function reduceToSingleString(output,base,braces){var numLinesEst=0,length=output.reduce(function(prev,cur){return numLinesEst++,cur.indexOf("\n")>=0&&numLinesEst++,prev+cur.replace(/\u001b\[\d\d?m/g,"").length+1},0);return length>60?braces[0]+(""===base?"":base+"\n ")+" "+output.join(",\n ")+" "+braces[1]:braces[0]+base+" "+output.join(", ")+" "+braces[1]}function isArray(ar){return Array.isArray(ar)}function isBoolean(arg){return"boolean"==typeof arg}function isNull(arg){return null===arg}function isNullOrUndefined(arg){return null==arg}function isNumber(arg){return"number"==typeof arg}function isString(arg){return"string"==typeof arg}function isSymbol(arg){return"symbol"==typeof arg}function isUndefined(arg){return void 0===arg}function isRegExp(re){return isObject(re)&&"[object RegExp]"===objectToString(re)}function isObject(arg){return"object"==typeof arg&&null!==arg}function isDate(d){return isObject(d)&&"[object Date]"===objectToString(d)}function isError(e){return isObject(e)&&("[object Error]"===objectToString(e)||e instanceof Error)}function isFunction(arg){return"function"==typeof arg}function isPrimitive(arg){return null===arg||"boolean"==typeof arg||"number"==typeof arg||"string"==typeof arg||"symbol"==typeof arg||"undefined"==typeof arg}function objectToString(o){return Object.prototype.toString.call(o)}function pad(n){return 10>n?"0"+n.toString(10):n.toString(10)}function timestamp(){var d=new Date,time=[pad(d.getHours()),pad(d.getMinutes()),pad(d.getSeconds())].join(":");return[d.getDate(),months[d.getMonth()],time].join(" ")}function hasOwnProperty(obj,prop){return Object.prototype.hasOwnProperty.call(obj,prop)}var formatRegExp=/%[sdj%]/g;exports.format=function(f){if(!isString(f)){for(var objects=[],i=0;i=len)return x;switch(x){case"%s":return String(args[i++]);case"%d":return Number(args[i++]);case"%j":try{return JSON.stringify(args[i++])}catch(_){return"[Circular]"}default:return x}}),x=args[i];len>i;x=args[++i])str+=isNull(x)||!isObject(x)?" "+x:" "+inspect(x);return str},exports.deprecate=function(fn,msg){function deprecated(){if(!warned){if(process.throwDeprecation)throw new Error(msg);process.traceDeprecation?console.trace(msg):console.error(msg),warned=!0}return fn.apply(this,arguments)}if(isUndefined(global.process))return function(){return exports.deprecate(fn,msg).apply(this,arguments)};if(process.noDeprecation===!0)return fn;var warned=!1;return deprecated};var debugEnviron,debugs={};exports.debuglog=function(set){if(isUndefined(debugEnviron)&&(debugEnviron=process.env.NODE_DEBUG||""),set=set.toUpperCase(),!debugs[set])if(new RegExp("\\b"+set+"\\b","i").test(debugEnviron)){var pid=process.pid;debugs[set]=function(){var msg=exports.format.apply(exports,arguments);console.error("%s %d: %s",set,pid,msg)}}else debugs[set]=function(){};return debugs[set]},exports.inspect=inspect,inspect.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},inspect.styles={special:"cyan",number:"yellow","boolean":"yellow",undefined:"grey","null":"bold",string:"green",date:"magenta",regexp:"red"},exports.isArray=isArray,exports.isBoolean=isBoolean,exports.isNull=isNull,exports.isNullOrUndefined=isNullOrUndefined,exports.isNumber=isNumber,exports.isString=isString,exports.isSymbol=isSymbol,exports.isUndefined=isUndefined,exports.isRegExp=isRegExp,exports.isObject=isObject,exports.isDate=isDate,exports.isError=isError,exports.isFunction=isFunction,exports.isPrimitive=isPrimitive,exports.isBuffer=__webpack_require__(310);var months=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];exports.log=function(){console.log("%s - %s",timestamp(),exports.format.apply(exports,arguments))},exports.inherits=__webpack_require__(4),exports._extend=function(origin,add){if(!add||!isObject(add))return origin;for(var keys=Object.keys(add),i=keys.length;i--;)origin[keys[i]]=add[keys[i]];return origin}}).call(exports,function(){return this}(),__webpack_require__(2))},function(module,exports,__webpack_require__){(function(Buffer){function isArray(arg){return Array.isArray?Array.isArray(arg):"[object Array]"===objectToString(arg)}function isBoolean(arg){return"boolean"==typeof arg}function isNull(arg){return null===arg}function isNullOrUndefined(arg){return null==arg}function isNumber(arg){return"number"==typeof arg}function isString(arg){return"string"==typeof arg}function isSymbol(arg){return"symbol"==typeof arg}function isUndefined(arg){return void 0===arg}function isRegExp(re){return"[object RegExp]"===objectToString(re)}function isObject(arg){return"object"==typeof arg&&null!==arg}function isDate(d){return"[object Date]"===objectToString(d)}function isError(e){return"[object Error]"===objectToString(e)||e instanceof Error}function isFunction(arg){return"function"==typeof arg}function isPrimitive(arg){return null===arg||"boolean"==typeof arg||"number"==typeof arg||"string"==typeof arg||"symbol"==typeof arg||"undefined"==typeof arg}function objectToString(o){return Object.prototype.toString.call(o)}exports.isArray=isArray,exports.isBoolean=isBoolean,exports.isNull=isNull,exports.isNullOrUndefined=isNullOrUndefined,exports.isNumber=isNumber,exports.isString=isString,exports.isSymbol=isSymbol,exports.isUndefined=isUndefined,exports.isRegExp=isRegExp,exports.isObject=isObject,exports.isDate=isDate,exports.isError=isError,exports.isFunction=isFunction,exports.isPrimitive=isPrimitive,exports.isBuffer=Buffer.isBuffer}).call(exports,__webpack_require__(1).Buffer)},function(module,exports){"use strict";exports.command=function(send,name){return function(opts,cb){return"function"==typeof opts&&(cb=opts,opts={}),send(name,null,opts,null,cb)}},exports.argCommand=function(send,name){return function(arg,opts,cb){return"function"==typeof opts&&(cb=opts,opts={}),send(name,arg,opts,null,cb)}}},function(module,exports){var core=module.exports={version:"1.2.6"};"number"==typeof __e&&(__e=core)},function(module,exports,__webpack_require__){var store=__webpack_require__(76)("wks"),uid=__webpack_require__(78),Symbol=__webpack_require__(14).Symbol;module.exports=function(name){return store[name]||(store[name]=Symbol&&Symbol[name]||(Symbol||uid)("Symbol."+name))}},function(module,exports,__webpack_require__){(function(process){function noop(){}function patch(fs){function readFile(path,options,cb){function go$readFile(path,options,cb){return fs$readFile(path,options,function(err){!err||"EMFILE"!==err.code&&"ENFILE"!==err.code?("function"==typeof cb&&cb.apply(this,arguments),retry()):enqueue([go$readFile,[path,options,cb]])})}return"function"==typeof options&&(cb=options,options=null),go$readFile(path,options,cb)}function writeFile(path,data,options,cb){function go$writeFile(path,data,options,cb){return fs$writeFile(path,data,options,function(err){!err||"EMFILE"!==err.code&&"ENFILE"!==err.code?("function"==typeof cb&&cb.apply(this,arguments),retry()):enqueue([go$writeFile,[path,data,options,cb]])})}return"function"==typeof options&&(cb=options,options=null),go$writeFile(path,data,options,cb)}function appendFile(path,data,options,cb){function go$appendFile(path,data,options,cb){return fs$appendFile(path,data,options,function(err){!err||"EMFILE"!==err.code&&"ENFILE"!==err.code?("function"==typeof cb&&cb.apply(this,arguments),retry()):enqueue([go$appendFile,[path,data,options,cb]])})}return"function"==typeof options&&(cb=options,options=null),go$appendFile(path,data,options,cb)}function readdir(path,cb){function go$readdir(){return fs$readdir(path,function(err,files){files&&files.sort&&files.sort(),!err||"EMFILE"!==err.code&&"ENFILE"!==err.code?("function"==typeof cb&&cb.apply(this,arguments),retry()):enqueue([go$readdir,[path,cb]])})}return go$readdir(path,cb)}function ReadStream(path,options){return this instanceof ReadStream?(fs$ReadStream.apply(this,arguments),this):ReadStream.apply(Object.create(ReadStream.prototype),arguments)}function ReadStream$open(){var that=this;open(that.path,that.flags,that.mode,function(err,fd){err?(that.autoClose&&that.destroy(),that.emit("error",err)):(that.fd=fd,that.emit("open",fd),that.read())})}function WriteStream(path,options){return this instanceof WriteStream?(fs$WriteStream.apply(this,arguments),this):WriteStream.apply(Object.create(WriteStream.prototype),arguments)}function WriteStream$open(){var that=this;open(that.path,that.flags,that.mode,function(err,fd){err?(that.destroy(),that.emit("error",err)):(that.fd=fd,that.emit("open",fd))})}function createReadStream(path,options){return new ReadStream(path,options)}function createWriteStream(path,options){return new WriteStream(path,options)}function open(path,flags,mode,cb){function go$open(path,flags,mode,cb){return fs$open(path,flags,mode,function(err,fd){!err||"EMFILE"!==err.code&&"ENFILE"!==err.code?("function"==typeof cb&&cb.apply(this,arguments),retry()):enqueue([go$open,[path,flags,mode,cb]])})}return"function"==typeof mode&&(cb=mode,mode=null),go$open(path,flags,mode,cb)}polyfills(fs),fs.gracefulify=patch,fs.FileReadStream=ReadStream,fs.FileWriteStream=WriteStream,fs.createReadStream=createReadStream,fs.createWriteStream=createWriteStream;var fs$readFile=fs.readFile;fs.readFile=readFile;var fs$writeFile=fs.writeFile;fs.writeFile=writeFile;var fs$appendFile=fs.appendFile;fs$appendFile&&(fs.appendFile=appendFile);var fs$readdir=fs.readdir;if(fs.readdir=readdir,"v0.8"===process.version.substr(0,4)){var legStreams=legacy(fs);ReadStream=legStreams.ReadStream,WriteStream=legStreams.WriteStream}var fs$ReadStream=fs.ReadStream;ReadStream.prototype=Object.create(fs$ReadStream.prototype),ReadStream.prototype.open=ReadStream$open;var fs$WriteStream=fs.WriteStream;WriteStream.prototype=Object.create(fs$WriteStream.prototype),WriteStream.prototype.open=WriteStream$open,fs.ReadStream=ReadStream,fs.WriteStream=WriteStream;var fs$open=fs.open;return fs.open=open,fs}function enqueue(elem){debug("ENQUEUE",elem[0].name,elem[1]),queue.push(elem)}function retry(){var elem=queue.shift();elem&&(debug("RETRY",elem[0].name,elem[1]),elem[0].apply(null,elem[1]))}var fs=__webpack_require__(6),polyfills=__webpack_require__(234),legacy=__webpack_require__(233),queue=[],util=__webpack_require__(8),debug=noop;util.debuglog?debug=util.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(debug=function(){var m=util.format.apply(util,arguments);m="GFS4: "+m.split(/\n/).join("\nGFS4: "),console.error(m)}),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){debug(queue),__webpack_require__(41).equal(queue.length,0)}),module.exports=patch(__webpack_require__(86)),process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&(module.exports=patch(fs)),module.exports.close=fs.close=function(fs$close){return function(fd,cb){return fs$close.call(fs,fd,function(err){err||retry(),"function"==typeof cb&&cb.apply(this,arguments)})}}(fs.close),module.exports.closeSync=fs.closeSync=function(fs$closeSync){return function(fd){var rval=fs$closeSync.apply(fs,arguments);return retry(),rval}}(fs.closeSync)}).call(exports,__webpack_require__(2))},function(module,exports){var global=module.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=global)},function(module,exports){function EventEmitter(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function isFunction(arg){return"function"==typeof arg}function isNumber(arg){return"number"==typeof arg}function isObject(arg){return"object"==typeof arg&&null!==arg}function isUndefined(arg){return void 0===arg}module.exports=EventEmitter,EventEmitter.EventEmitter=EventEmitter,EventEmitter.prototype._events=void 0,EventEmitter.prototype._maxListeners=void 0,EventEmitter.defaultMaxListeners=10,EventEmitter.prototype.setMaxListeners=function(n){if(!isNumber(n)||0>n||isNaN(n))throw TypeError("n must be a positive number");return this._maxListeners=n,this},EventEmitter.prototype.emit=function(type){var er,handler,len,args,i,listeners;if(this._events||(this._events={}),"error"===type&&(!this._events.error||isObject(this._events.error)&&!this._events.error.length)){if(er=arguments[1],er instanceof Error)throw er;throw TypeError('Uncaught, unspecified "error" event.')}if(handler=this._events[type],isUndefined(handler))return!1;if(isFunction(handler))switch(arguments.length){case 1:handler.call(this);break;case 2:handler.call(this,arguments[1]);break;case 3:handler.call(this,arguments[1],arguments[2]);break;default:args=Array.prototype.slice.call(arguments,1),handler.apply(this,args)}else if(isObject(handler))for(args=Array.prototype.slice.call(arguments,1),listeners=handler.slice(),len=listeners.length,i=0;len>i;i++)listeners[i].apply(this,args);return!0},EventEmitter.prototype.addListener=function(type,listener){var m;if(!isFunction(listener))throw TypeError("listener must be a function");return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",type,isFunction(listener.listener)?listener.listener:listener),this._events[type]?isObject(this._events[type])?this._events[type].push(listener):this._events[type]=[this._events[type],listener]:this._events[type]=listener,isObject(this._events[type])&&!this._events[type].warned&&(m=isUndefined(this._maxListeners)?EventEmitter.defaultMaxListeners:this._maxListeners,m&&m>0&&this._events[type].length>m&&(this._events[type].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[type].length),"function"==typeof console.trace&&console.trace())),this},EventEmitter.prototype.on=EventEmitter.prototype.addListener,EventEmitter.prototype.once=function(type,listener){function g(){this.removeListener(type,g),fired||(fired=!0,listener.apply(this,arguments))}if(!isFunction(listener))throw TypeError("listener must be a function");var fired=!1;return g.listener=listener,this.on(type,g),this},EventEmitter.prototype.removeListener=function(type,listener){var list,position,length,i;if(!isFunction(listener))throw TypeError("listener must be a function");if(!this._events||!this._events[type])return this;if(list=this._events[type],length=list.length,position=-1,list===listener||isFunction(list.listener)&&list.listener===listener)delete this._events[type],this._events.removeListener&&this.emit("removeListener",type,listener);else if(isObject(list)){for(i=length;i-- >0;)if(list[i]===listener||list[i].listener&&list[i].listener===listener){position=i;break}if(0>position)return this;1===list.length?(list.length=0,delete this._events[type]):list.splice(position,1),this._events.removeListener&&this.emit("removeListener",type,listener)}return this},EventEmitter.prototype.removeAllListeners=function(type){var key,listeners;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[type]&&delete this._events[type],this;if(0===arguments.length){for(key in this._events)"removeListener"!==key&&this.removeAllListeners(key);return this.removeAllListeners("removeListener"),this._events={},this}if(listeners=this._events[type],isFunction(listeners))this.removeListener(type,listeners);else if(listeners)for(;listeners.length;)this.removeListener(type,listeners[listeners.length-1]);return delete this._events[type],this},EventEmitter.prototype.listeners=function(type){var ret;return ret=this._events&&this._events[type]?isFunction(this._events[type])?[this._events[type]]:this._events[type].slice():[]},EventEmitter.prototype.listenerCount=function(type){if(this._events){var evlistener=this._events[type];if(isFunction(evlistener))return 1;if(evlistener)return evlistener.length}return 0},EventEmitter.listenerCount=function(emitter,type){return emitter.listenerCount(type)}},function(module,exports,__webpack_require__){(function(process){function Duplex(options){return this instanceof Duplex?(Readable.call(this,options),Writable.call(this,options),options&&options.readable===!1&&(this.readable=!1),options&&options.writable===!1&&(this.writable=!1),this.allowHalfOpen=!0,options&&options.allowHalfOpen===!1&&(this.allowHalfOpen=!1),void this.once("end",onend)):new Duplex(options)}function onend(){this.allowHalfOpen||this._writableState.ended||process.nextTick(this.end.bind(this))}function forEach(xs,f){for(var i=0,l=xs.length;l>i;i++)f(xs[i],i)}module.exports=Duplex;var objectKeys=Object.keys||function(obj){var keys=[];for(var key in obj)keys.push(key);return keys},util=__webpack_require__(9);util.inherits=__webpack_require__(4);var Readable=__webpack_require__(105),Writable=__webpack_require__(63);util.inherits(Duplex,Readable),forEach(objectKeys(Writable.prototype),function(method){Duplex.prototype[method]||(Duplex.prototype[method]=Writable.prototype[method])})}).call(exports,__webpack_require__(2))},function(module,exports){function extend(){for(var target={},i=0;i=this.charLength-this.charReceived?this.charLength-this.charReceived:buffer.length;if(buffer.copy(this.charBuffer,this.charReceived,0,available),this.charReceived+=available,this.charReceived=55296&&56319>=charCode)){if(this.charReceived=this.charLength=0,0===buffer.length)return charStr;break}this.charLength+=this.surrogateSize,charStr=""}this.detectIncompleteChar(buffer);var end=buffer.length;this.charLength&&(buffer.copy(this.charBuffer,0,buffer.length-this.charReceived,end),end-=this.charReceived),charStr+=buffer.toString(this.encoding,0,end);var end=charStr.length-1,charCode=charStr.charCodeAt(end);if(charCode>=55296&&56319>=charCode){var size=this.surrogateSize;return this.charLength+=size,this.charReceived+=size,this.charBuffer.copy(this.charBuffer,size,0,size),buffer.copy(this.charBuffer,0,0,size),charStr.substring(0,end)}return charStr},StringDecoder.prototype.detectIncompleteChar=function(buffer){for(var i=buffer.length>=3?3:buffer.length;i>0;i--){var c=buffer[buffer.length-i];if(1==i&&c>>5==6){this.charLength=2;break}if(2>=i&&c>>4==14){this.charLength=3;break}if(3>=i&&c>>3==30){this.charLength=4;break}}this.charReceived=i},StringDecoder.prototype.end=function(buffer){var res="";if(buffer&&buffer.length&&(res=this.write(buffer)),this.charReceived){var cr=this.charReceived,buf=this.charBuffer,enc=this.encoding;res+=buf.slice(0,cr).toString(enc)}return res}},function(module,exports,__webpack_require__){(function(Buffer,process){"use strict";function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{"default":obj}}var _stringify=__webpack_require__(148),_stringify2=_interopRequireDefault(_stringify),_keys=__webpack_require__(18),_keys2=_interopRequireDefault(_keys),_defineProperty=__webpack_require__(150),_defineProperty2=_interopRequireDefault(_defineProperty),_getOwnPropertyDescriptor=__webpack_require__(151),_getOwnPropertyDescriptor2=_interopRequireDefault(_getOwnPropertyDescriptor),_getOwnPropertyNames=__webpack_require__(152),_getOwnPropertyNames2=_interopRequireDefault(_getOwnPropertyNames),_create=__webpack_require__(42),_create2=_interopRequireDefault(_create),_getPrototypeOf=__webpack_require__(153),_getPrototypeOf2=_interopRequireDefault(_getPrototypeOf),_typeof2=__webpack_require__(19),_typeof3=_interopRequireDefault(_typeof2),Crypto=__webpack_require__(215),Path=__webpack_require__(5),Util=__webpack_require__(8),Escape=__webpack_require__(119),internals={}; +exports.clone=function(obj,seen){if("object"!==("undefined"==typeof obj?"undefined":(0,_typeof3["default"])(obj))||null===obj)return obj;seen=seen||{orig:[],copy:[]};var lookup=seen.orig.indexOf(obj);if(-1!==lookup)return seen.copy[lookup];var newObj=void 0,cloneDeep=!1;if(Array.isArray(obj))newObj=[],cloneDeep=!0;else if(Buffer.isBuffer(obj))newObj=new Buffer(obj);else if(obj instanceof Date)newObj=new Date(obj.getTime());else if(obj instanceof RegExp)newObj=new RegExp(obj);else{var proto=(0,_getPrototypeOf2["default"])(obj);proto&&proto.isImmutable?newObj=obj:(newObj=(0,_create2["default"])(proto),cloneDeep=!0)}if(seen.orig.push(obj),seen.copy.push(newObj),cloneDeep)for(var keys=(0,_getOwnPropertyNames2["default"])(obj),i=0;i=2,"Insufficient arguments"),exports.assert("string"==typeof ref||"object"===("undefined"==typeof ref?"undefined":(0,_typeof3["default"])(ref)),"Reference must be string or an object"),exports.assert(values.length,"Values array cannot be empty");var compare=void 0,compareFlags=void 0;if(options.deep){compare=exports.deepEqual;var hasOnly=options.hasOwnProperty("only"),hasPart=options.hasOwnProperty("part");compareFlags={prototype:hasOnly?options.only:hasPart?!options.part:!1,part:hasOnly?!options.only:hasPart?options.part:!0}}else compare=function(a,b){return a===b};for(var misses=!1,matches=new Array(values.length),i=0;i1||!options.part&&!matches[i])return!1;return options.only&&misses?!1:result},exports.flatten=function(array,target){for(var result=target||[],i=0;i\?@\[\]\^`\{\|\}~\"\\]*$/.test(attribute),"Bad attribute value ("+attribute+")"),attribute.replace(/\\/g,"\\\\").replace(/\"/g,'\\"')},exports.escapeHtml=function(string){return Escape.escapeHtml(string)},exports.escapeJavaScript=function(string){return Escape.escapeJavaScript(string)},exports.nextTick=function(callback){return function(){var args=arguments;process.nextTick(function(){callback.apply(null,args)})}},exports.once=function(method){if(method._hoekOnce)return method;var once=!1,wrapped=function(){once||(once=!0,method.apply(null,arguments))};return wrapped._hoekOnce=!0,wrapped},exports.isAbsolutePath=function(path,platform){return path?Path.isAbsolute?Path.isAbsolute(path):(platform=platform||process.platform,"win32"!==platform?"/"===path[0]:!!/^(?:[a-zA-Z]:[\\\/])|(?:[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/])/.test(path)):!1},exports.isInteger=function(value){return"number"==typeof value&&parseFloat(value)===parseInt(value,10)&&!isNaN(value)},exports.ignore=function(){},exports.inherits=Util.inherits,exports.format=Util.format,exports.transform=function(source,transform,options){if(exports.assert(null===source||void 0===source||"object"===("undefined"==typeof source?"undefined":(0,_typeof3["default"])(source))||Array.isArray(source),"Invalid source object: must be null, undefined, an object, or an array"),Array.isArray(source)){for(var results=[],i=0;i1;)segment=path.shift(),res[segment]||(res[segment]={}),res=res[segment];segment=path.shift(),res[segment]=exports.reach(source,sourcePath,options)}return result},exports.uniqueFilename=function(path,extension){extension=extension?"."!==extension[0]?"."+extension:extension:"",path=Path.resolve(path);var name=[Date.now(),process.pid,Crypto.randomBytes(8).toString("hex")].join("-")+extension;return Path.join(path,name)},exports.stringify=function(){try{return _stringify2["default"].apply(null,arguments)}catch(err){return"[Cannot display object: "+err.message+"]"}},exports.shallow=function(source){for(var target={},keys=(0,_keys2["default"])(source),i=0;i-1&&value%1==0&&MAX_SAFE_INTEGER>=value}function isFunction(value){return isObject(value)&&objToString.call(value)==funcTag}function isObject(value){var type=typeof value;return!!value&&("object"==type||"function"==type)}function isNative(value){return null==value?!1:isFunction(value)?reIsNative.test(fnToString.call(value)):isObjectLike(value)&&reIsHostCtor.test(value)}var arrayTag="[object Array]",funcTag="[object Function]",reIsHostCtor=/^\[object .+?Constructor\]$/,objectProto=Object.prototype,fnToString=Function.prototype.toString,hasOwnProperty=objectProto.hasOwnProperty,objToString=objectProto.toString,reIsNative=RegExp("^"+fnToString.call(hasOwnProperty).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),nativeIsArray=getNative(Array,"isArray"),MAX_SAFE_INTEGER=9007199254740991,isArray=nativeIsArray||function(value){return isObjectLike(value)&&isLength(value.length)&&objToString.call(value)==arrayTag};module.exports=isArray},function(module,exports,__webpack_require__){(function(process){function DestroyableTransform(opts){Transform.call(this,opts),this._destroyed=!1}function noop(chunk,enc,callback){callback(null,chunk)}function through2(construct){return function(options,transform,flush){return"function"==typeof options&&(flush=transform,transform=options,options={}),"function"!=typeof transform&&(transform=noop),"function"!=typeof flush&&(flush=null),construct(options,transform,flush)}}var Transform=__webpack_require__(61),inherits=__webpack_require__(8).inherits,xtend=__webpack_require__(17);inherits(DestroyableTransform,Transform),DestroyableTransform.prototype.destroy=function(err){if(!this._destroyed){this._destroyed=!0;var self=this;process.nextTick(function(){err&&self.emit("error",err),self.emit("close")})}},module.exports=through2(function(options,transform,flush){var t2=new DestroyableTransform(options);return t2._transform=transform,flush&&(t2._flush=flush),t2}),module.exports.ctor=through2(function(options,transform,flush){function Through2(override){return this instanceof Through2?(this.options=xtend(options,override),void DestroyableTransform.call(this,this.options)):new Through2(override)}return inherits(Through2,DestroyableTransform),Through2.prototype._transform=transform,flush&&(Through2.prototype._flush=flush),Through2}),module.exports.obj=through2(function(options,transform,flush){var t2=new DestroyableTransform(xtend({objectMode:!0,highWaterMark:16},options));return t2._transform=transform,flush&&(t2._flush=flush),t2})}).call(exports,__webpack_require__(2))},function(module,exports,__webpack_require__){module.exports={"default":__webpack_require__(177),__esModule:!0}},function(module,exports,__webpack_require__){module.exports=!__webpack_require__(33)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(module,exports){module.exports=function(exec){try{return!!exec()}catch(e){return!0}}},function(module,exports){module.exports=function(it){return"object"==typeof it?null!==it:"function"==typeof it}},function(module,exports,__webpack_require__){var $export=__webpack_require__(21),core=__webpack_require__(11),fails=__webpack_require__(33);module.exports=function(KEY,exec){var fn=(core.Object||{})[KEY]||Object[KEY],exp={};exp[KEY]=exec(fn),$export($export.S+$export.F*fails(function(){fn(1)}),"Object",exp)}},function(module,exports,__webpack_require__){var def=__webpack_require__(7).setDesc,has=__webpack_require__(45),TAG=__webpack_require__(12)("toStringTag");module.exports=function(it,tag,stat){it&&!has(it=stat?it:it.prototype,TAG)&&def(it,TAG,{configurable:!0,value:tag})}},function(module,exports,__webpack_require__){(function(Buffer,process){var stream=__webpack_require__(102),eos=__webpack_require__(219),util=__webpack_require__(8),SIGNAL_FLUSH=new Buffer([0]),onuncork=function(self,fn){self._corked?self.once("uncork",fn):fn()},destroyer=function(self,end){return function(err){err?self.destroy("premature close"===err.message?null:err):end&&!self._ended&&self.end()}},end=function(ws,fn){return ws?ws._writableState&&ws._writableState.finished?fn():ws._writableState?ws.end(fn):(ws.end(),void fn()):fn()},toStreams2=function(rs){return new stream.Readable({objectMode:!0,highWaterMark:16}).wrap(rs)},Duplexify=function(writable,readable,opts){return this instanceof Duplexify?(stream.Duplex.call(this,opts),this._writable=null,this._readable=null,this._readable2=null,this._forwardDestroy=!opts||opts.destroy!==!1,this._forwardEnd=!opts||opts.end!==!1,this._corked=1,this._ondrain=null,this._drained=!1,this._forwarding=!1,this._unwrite=null,this._unread=null,this._ended=!1,this.destroyed=!1,writable&&this.setWritable(writable),void(readable&&this.setReadable(readable))):new Duplexify(writable,readable,opts)};util.inherits(Duplexify,stream.Duplex),Duplexify.obj=function(writable,readable,opts){return opts||(opts={}),opts.objectMode=!0,opts.highWaterMark=16,new Duplexify(writable,readable,opts)},Duplexify.prototype.cork=function(){1===++this._corked&&this.emit("cork")},Duplexify.prototype.uncork=function(){this._corked&&0===--this._corked&&this.emit("uncork")},Duplexify.prototype.setWritable=function(writable){if(this._unwrite&&this._unwrite(),this.destroyed)return void(writable&&writable.destroy&&writable.destroy());if(null===writable||writable===!1)return void this.end();var self=this,unend=eos(writable,{writable:!0,readable:!1},destroyer(this,this._forwardEnd)),ondrain=function(){var ondrain=self._ondrain;self._ondrain=null,ondrain&&ondrain()},clear=function(){self._writable.removeListener("drain",ondrain),unend()};this._unwrite&&process.nextTick(ondrain),this._writable=writable,this._writable.on("drain",ondrain),this._unwrite=clear,this.uncork()},Duplexify.prototype.setReadable=function(readable){if(this._unread&&this._unread(),this.destroyed)return void(readable&&readable.destroy&&readable.destroy());if(null===readable||readable===!1)return this.push(null),void this.resume();var self=this,unend=eos(readable,{writable:!1,readable:!0},destroyer(this)),onreadable=function(){self._forward()},onend=function(){self.push(null)},clear=function(){self._readable2.removeListener("readable",onreadable),self._readable2.removeListener("end",onend),unend()};this._drained=!0,this._readable=readable,this._readable2=readable._readableState?readable:toStreams2(readable),this._readable2.on("readable",onreadable),this._readable2.on("end",onend),this._unread=clear,this._forward()},Duplexify.prototype._read=function(){this._drained=!0,this._forward()},Duplexify.prototype._forward=function(){if(!this._forwarding&&this._readable2&&this._drained){this._forwarding=!0;for(var data,state=this._readable2._readableState;null!==(data=this._readable2.read(state.buffer.length?state.buffer[0].length:state.length));)this._drained=this.push(data);this._forwarding=!1}},Duplexify.prototype.destroy=function(err){if(!this.destroyed){this.destroyed=!0;var self=this;process.nextTick(function(){self._destroy(err)})}},Duplexify.prototype._destroy=function(err){if(err){var ondrain=this._ondrain;this._ondrain=null,ondrain?ondrain(err):this.emit("error",err)}this._forwardDestroy&&(this._readable&&this._readable.destroy&&this._readable.destroy(),this._writable&&this._writable.destroy&&this._writable.destroy()),this.emit("close")},Duplexify.prototype._write=function(data,enc,cb){return this.destroyed?cb():this._corked?onuncork(this,this._write.bind(this,data,enc,cb)):data===SIGNAL_FLUSH?this._finish(cb):this._writable?void(this._writable.write(data)===!1?this._ondrain=cb:cb()):cb()},Duplexify.prototype._finish=function(cb){var self=this;this.emit("preend"),onuncork(this,function(){end(self._forwardEnd&&self._writable,function(){self._writableState.prefinished===!1&&(self._writableState.prefinished=!0),self.emit("prefinish"),onuncork(self,cb)})})},Duplexify.prototype.end=function(data,enc,cb){return"function"==typeof data?this.end(null,null,data):"function"==typeof enc?this.end(data,null,enc):(this._ended=!0,data&&this.write(data),this._writableState.ending||this.write(SIGNAL_FLUSH),stream.Writable.prototype.end.call(this,cb))},module.exports=Duplexify}).call(exports,__webpack_require__(1).Buffer,__webpack_require__(2))},function(module,exports){/*! * is-extglob * * Copyright (c) 2014-2015, Jon Schlinkert. @@ -18,9 +18,9 @@ module.exports=function(str){return"string"==typeof str&&/[@?!+*]\(/.test(str)}} * Copyright (c) 2014-2015, Jon Schlinkert. * Licensed under the MIT License. */ -var isExtglob=__webpack_require__(38);module.exports=function(str){return"string"==typeof str&&(/[*!?{}(|)[\]]/.test(str)||isExtglob(str))}},function(module,exports){module.exports=Array.isArray||function(arr){return"[object Array]"==Object.prototype.toString.call(arr)}},function(module,exports,__webpack_require__){function replacer(key,value){return util.isUndefined(value)?""+value:util.isNumber(value)&&!isFinite(value)?value.toString():util.isFunction(value)||util.isRegExp(value)?value.toString():value}function truncate(s,n){return util.isString(s)?s.length=0;i--)if(ka[i]!=kb[i])return!1;for(i=ka.length-1;i>=0;i--)if(key=ka[i],!_deepEqual(a[key],b[key]))return!1;return!0}function expectedException(actual,expected){return actual&&expected?"[object RegExp]"==Object.prototype.toString.call(expected)?expected.test(actual):actual instanceof expected?!0:expected.call({},actual)===!0?!0:!1:!1}function _throws(shouldThrow,block,expected,message){var actual;util.isString(expected)&&(message=expected,expected=null);try{block()}catch(e){actual=e}if(message=(expected&&expected.name?" ("+expected.name+").":".")+(message?" "+message:"."),shouldThrow&&!actual&&fail(actual,expected,"Missing expected exception"+message),!shouldThrow&&expectedException(actual,expected)&&fail(actual,expected,"Got unwanted exception"+message),shouldThrow&&actual&&expected&&!expectedException(actual,expected)||!shouldThrow&&actual)throw actual}var util=__webpack_require__(8),pSlice=Array.prototype.slice,hasOwn=Object.prototype.hasOwnProperty,assert=module.exports=ok;assert.AssertionError=function(options){this.name="AssertionError",this.actual=options.actual,this.expected=options.expected,this.operator=options.operator,options.message?(this.message=options.message,this.generatedMessage=!1):(this.message=getMessage(this),this.generatedMessage=!0);var stackStartFunction=options.stackStartFunction||fail;if(Error.captureStackTrace)Error.captureStackTrace(this,stackStartFunction);else{var err=new Error;if(err.stack){var out=err.stack,fn_name=stackStartFunction.name,idx=out.indexOf("\n"+fn_name);if(idx>=0){var next_line=out.indexOf("\n",idx+1);out=out.substring(next_line+1)}this.stack=out}}},util.inherits(assert.AssertionError,Error),assert.fail=fail,assert.ok=ok,assert.equal=function(actual,expected,message){actual!=expected&&fail(actual,expected,message,"==",assert.equal)},assert.notEqual=function(actual,expected,message){actual==expected&&fail(actual,expected,message,"!=",assert.notEqual)},assert.deepEqual=function(actual,expected,message){_deepEqual(actual,expected)||fail(actual,expected,message,"deepEqual",assert.deepEqual)},assert.notDeepEqual=function(actual,expected,message){_deepEqual(actual,expected)&&fail(actual,expected,message,"notDeepEqual",assert.notDeepEqual)},assert.strictEqual=function(actual,expected,message){actual!==expected&&fail(actual,expected,message,"===",assert.strictEqual)},assert.notStrictEqual=function(actual,expected,message){actual===expected&&fail(actual,expected,message,"!==",assert.notStrictEqual)},assert["throws"]=function(block,error,message){_throws.apply(this,[!0].concat(pSlice.call(arguments)))},assert.doesNotThrow=function(block,message){_throws.apply(this,[!1].concat(pSlice.call(arguments)))},assert.ifError=function(err){if(err)throw err};var objectKeys=Object.keys||function(obj){var keys=[];for(var key in obj)hasOwn.call(obj,key)&&keys.push(key);return keys}},function(module,exports,__webpack_require__){module.exports={"default":__webpack_require__(170),__esModule:!0}},function(module,exports){module.exports=function(it){if("function"!=typeof it)throw TypeError(it+" is not a function!");return it}},function(module,exports){module.exports=function(it){if(void 0==it)throw TypeError("Can't call method on "+it);return it}},function(module,exports){var hasOwnProperty={}.hasOwnProperty;module.exports=function(it,key){return hasOwnProperty.call(it,key)}},function(module,exports,__webpack_require__){var $=__webpack_require__(7),createDesc=__webpack_require__(48);module.exports=__webpack_require__(32)?function(object,key,value){return $.setDesc(object,key,createDesc(1,value))}:function(object,key,value){return object[key]=value,object}},function(module,exports){module.exports=!0},function(module,exports){module.exports=function(bitmap,value){return{enumerable:!(1&bitmap),configurable:!(2&bitmap),writable:!(4&bitmap),value:value}}},function(module,exports,__webpack_require__){module.exports=__webpack_require__(46)},function(module,exports,__webpack_require__){var defined=__webpack_require__(44);module.exports=function(it){return Object(defined(it))}},function(module,exports,__webpack_require__){(function(Buffer){var isBuffer=__webpack_require__(240),toString=Object.prototype.toString;module.exports=function(val){if("undefined"==typeof val)return"undefined";if(null===val)return"null";if(val===!0||val===!1||val instanceof Boolean)return"boolean";if("string"==typeof val||val instanceof String)return"string";if("number"==typeof val||val instanceof Number)return"number";if("function"==typeof val||val instanceof Function)return"function";if("undefined"!=typeof Array.isArray&&Array.isArray(val))return"array";if(val instanceof RegExp)return"regexp";if(val instanceof Date)return"date";var type=toString.call(val);return"[object RegExp]"===type?"regexp":"[object Date]"===type?"date":"[object Arguments]"===type?"arguments":"undefined"!=typeof Buffer&&isBuffer(val)?"buffer":"[object Set]"===type?"set":"[object WeakSet]"===type?"weakset":"[object Map]"===type?"map":"[object WeakMap]"===type?"weakmap":"[object Symbol]"===type?"symbol":"[object Int8Array]"===type?"int8array":"[object Uint8Array]"===type?"uint8array":"[object Uint8ClampedArray]"===type?"uint8clampedarray":"[object Int16Array]"===type?"int16array":"[object Uint16Array]"===type?"uint16array":"[object Int32Array]"===type?"int32array":"[object Uint32Array]"===type?"uint32array":"[object Float32Array]"===type?"float32array":"[object Float64Array]"===type?"float64array":"object"}}).call(exports,__webpack_require__(1).Buffer)},function(module,exports,__webpack_require__){function baseProperty(key){return function(object){return null==object?void 0:object[key]}}function isArrayLike(value){return null!=value&&isLength(getLength(value))}function isIndex(value,length){return value="number"==typeof value||reIsUint.test(value)?+value:-1,length=null==length?MAX_SAFE_INTEGER:length,value>-1&&value%1==0&&length>value}function isLength(value){return"number"==typeof value&&value>-1&&value%1==0&&MAX_SAFE_INTEGER>=value}function shimKeys(object){for(var props=keysIn(object),propsLength=props.length,length=propsLength&&object.length,allowIndexes=!!length&&isLength(length)&&(isArray(object)||isArguments(object)),index=-1,result=[];++index0;++index-1&&value%1==0&&MAX_SAFE_INTEGER>=value}function map(collection,iteratee,thisArg){var func=isArray(collection)?arrayMap:baseMap;return iteratee=baseCallback(iteratee,thisArg,3),func(collection,iteratee)}var arrayMap=__webpack_require__(254),baseCallback=__webpack_require__(91),baseEach=__webpack_require__(92),isArray=__webpack_require__(29),MAX_SAFE_INTEGER=9007199254740991,getLength=baseProperty("length");module.exports=map},function(module,exports,__webpack_require__){(function(process){"use strict";var win32=process&&"win32"===process.platform,path=__webpack_require__(5),fileRe=__webpack_require__(225),utils=module.exports;utils.diff=__webpack_require__(116),utils.unique=__webpack_require__(118),utils.braces=__webpack_require__(160),utils.brackets=__webpack_require__(220),utils.extglob=__webpack_require__(224),utils.isExtglob=__webpack_require__(38),utils.isGlob=__webpack_require__(39),utils.typeOf=__webpack_require__(51),utils.normalize=__webpack_require__(270),utils.omit=__webpack_require__(271),utils.parseGlob=__webpack_require__(273),utils.cache=__webpack_require__(281),utils.filename=function(fp){var seg=fp.match(fileRe());return seg&&seg[0]},utils.isPath=function(pattern,opts){return function(fp){return pattern===utils.unixify(fp,opts)}},utils.hasPath=function(pattern,opts){return function(fp){return-1!==utils.unixify(pattern,opts).indexOf(fp)}},utils.matchPath=function(pattern,opts){var fn=opts&&opts.contains?utils.hasPath(pattern,opts):utils.isPath(pattern,opts);return fn},utils.hasFilename=function(re){return function(fp){var name=utils.filename(fp);return name&&re.test(name)}},utils.arrayify=function(val){return Array.isArray(val)?val:[val]},utils.unixify=function(fp,opts){return opts&&opts.unixify===!1?fp:opts&&opts.unixify===!0||win32||"\\"===path.sep?utils.normalize(fp,!1):opts&&opts.unescape===!0?fp?fp.toString().replace(/\\(\w)/g,"$1"):"":fp},utils.escapePath=function(fp){return fp.replace(/[\\.]/g,"\\$&")},utils.unescapeGlob=function(fp){return fp.replace(/[\\"']/g,"")},utils.escapeRe=function(str){return str.replace(/[-[\\$*+?.#^\s{}(|)\]]/g,"\\$&")},module.exports=utils}).call(exports,__webpack_require__(2))},function(module,exports,__webpack_require__){function charSet(s){return s.split("").reduce(function(set,c){return set[c]=!0,set},{})}function filter(pattern,options){return options=options||{},function(p,i,list){return minimatch(p,pattern,options)}}function ext(a,b){a=a||{},b=b||{};var t={};return Object.keys(b).forEach(function(k){t[k]=b[k]}),Object.keys(a).forEach(function(k){t[k]=a[k]}),t}function minimatch(p,pattern,options){if("string"!=typeof pattern)throw new TypeError("glob pattern string required");return options||(options={}),options.nocomment||"#"!==pattern.charAt(0)?""===pattern.trim()?""===p:new Minimatch(pattern,options).match(p):!1}function Minimatch(pattern,options){if(!(this instanceof Minimatch))return new Minimatch(pattern,options);if("string"!=typeof pattern)throw new TypeError("glob pattern string required");options||(options={}),pattern=pattern.trim(),"/"!==path.sep&&(pattern=pattern.split(path.sep).join("/")),this.options=options,this.set=[],this.pattern=pattern,this.regexp=null,this.negate=!1,this.comment=!1,this.empty=!1,this.make()}function make(){if(!this._made){var pattern=this.pattern,options=this.options;if(!options.nocomment&&"#"===pattern.charAt(0))return void(this.comment=!0);if(!pattern)return void(this.empty=!0);this.parseNegate();var set=this.globSet=this.braceExpand();options.debug&&(this.debug=console.error),this.debug(this.pattern,set),set=this.globParts=set.map(function(s){return s.split(slashSplit)}),this.debug(this.pattern,set),set=set.map(function(s,si,set){return s.map(this.parse,this)},this),this.debug(this.pattern,set),set=set.filter(function(s){return-1===s.indexOf(!1)}),this.debug(this.pattern,set),this.set=set}}function parseNegate(){var pattern=this.pattern,negate=!1,options=this.options,negateOffset=0;if(!options.nonegate){for(var i=0,l=pattern.length;l>i&&"!"===pattern.charAt(i);i++)negate=!negate,negateOffset++;negateOffset&&(this.pattern=pattern.substr(negateOffset)),this.negate=negate}}function braceExpand(pattern,options){if(options||(options=this instanceof Minimatch?this.options:{}),pattern="undefined"==typeof pattern?this.pattern:pattern,"undefined"==typeof pattern)throw new Error("undefined pattern");return options.nobrace||!pattern.match(/\{.*\}/)?[pattern]:expand(pattern)}function parse(pattern,isSub){function clearStateChar(){if(stateChar){switch(stateChar){case"*":re+=star,hasMagic=!0;break;case"?":re+=qmark,hasMagic=!0;break;default:re+="\\"+stateChar}self.debug("clearStateChar %j %j",stateChar,re),stateChar=!1}}var options=this.options;if(!options.noglobstar&&"**"===pattern)return GLOBSTAR;if(""===pattern)return"";for(var plType,stateChar,c,re="",hasMagic=!!options.nocase,escaping=!1,patternListStack=[],negativeLists=[],inClass=!1,reClassStart=-1,classStart=-1,patternStart="."===pattern.charAt(0)?"":options.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",self=this,i=0,len=pattern.length;len>i&&(c=pattern.charAt(i));i++)if(this.debug("%s %s %s %j",pattern,i,re,c),escaping&&reSpecials[c])re+="\\"+c,escaping=!1;else switch(c){case"/":return!1;case"\\":clearStateChar(),escaping=!0;continue;case"?":case"*":case"+":case"@":case"!":if(this.debug("%s %s %s %j <-- stateChar",pattern,i,re,c),inClass){this.debug(" in class"),"!"===c&&i===classStart+1&&(c="^"),re+=c;continue}self.debug("call clearStateChar %j",stateChar),clearStateChar(),stateChar=c,options.noext&&clearStateChar();continue;case"(":if(inClass){re+="(";continue}if(!stateChar){re+="\\(";continue}plType=stateChar,patternListStack.push({type:plType,start:i-1,reStart:re.length}),re+="!"===stateChar?"(?:(?!(?:":"(?:",this.debug("plType %j %j",stateChar,re),stateChar=!1;continue;case")":if(inClass||!patternListStack.length){re+="\\)";continue}clearStateChar(),hasMagic=!0,re+=")";var pl=patternListStack.pop();switch(plType=pl.type){case"!":negativeLists.push(pl),re+=")[^/]*?)",pl.reEnd=re.length;break;case"?":case"+":case"*":re+=plType;break;case"@":}continue;case"|":if(inClass||!patternListStack.length||escaping){re+="\\|",escaping=!1;continue}clearStateChar(),re+="|";continue;case"[":if(clearStateChar(),inClass){re+="\\"+c;continue}inClass=!0,classStart=i,reClassStart=re.length,re+=c;continue;case"]":if(i===classStart+1||!inClass){re+="\\"+c,escaping=!1;continue}if(inClass){var cs=pattern.substring(classStart+1,i);try{RegExp("["+cs+"]")}catch(er){var sp=this.parse(cs,SUBPARSE);re=re.substr(0,reClassStart)+"\\["+sp[0]+"\\]",hasMagic=hasMagic||sp[1],inClass=!1;continue}}hasMagic=!0,inClass=!1,re+=c;continue;default:clearStateChar(),escaping?escaping=!1:!reSpecials[c]||"^"===c&&inClass||(re+="\\"),re+=c}for(inClass&&(cs=pattern.substr(classStart+1),sp=this.parse(cs,SUBPARSE),re=re.substr(0,reClassStart)+"\\["+sp[0],hasMagic=hasMagic||sp[1]),pl=patternListStack.pop();pl;pl=patternListStack.pop()){var tail=re.slice(pl.reStart+3);tail=tail.replace(/((?:\\{2})*)(\\?)\|/g,function(_,$1,$2){return $2||($2="\\"),$1+$1+$2+"|"}),this.debug("tail=%j\n %s",tail,tail);var t="*"===pl.type?star:"?"===pl.type?qmark:"\\"+pl.type;hasMagic=!0,re=re.slice(0,pl.reStart)+t+"\\("+tail}clearStateChar(),escaping&&(re+="\\\\");var addPatternStart=!1;switch(re.charAt(0)){case".":case"[":case"(":addPatternStart=!0}for(var n=negativeLists.length-1;n>-1;n--){var nl=negativeLists[n],nlBefore=re.slice(0,nl.reStart),nlFirst=re.slice(nl.reStart,nl.reEnd-8),nlLast=re.slice(nl.reEnd-8,nl.reEnd),nlAfter=re.slice(nl.reEnd);nlLast+=nlAfter;var openParensBefore=nlBefore.split("(").length-1,cleanAfter=nlAfter;for(i=0;openParensBefore>i;i++)cleanAfter=cleanAfter.replace(/\)[+*?]?/,"");nlAfter=cleanAfter;var dollar="";""===nlAfter&&isSub!==SUBPARSE&&(dollar="$");var newRe=nlBefore+nlFirst+nlAfter+dollar+nlLast;re=newRe}if(""!==re&&hasMagic&&(re="(?=.)"+re),addPatternStart&&(re=patternStart+re),isSub===SUBPARSE)return[re,hasMagic];if(!hasMagic)return globUnescape(pattern);var flags=options.nocase?"i":"",regExp=new RegExp("^"+re+"$",flags);return regExp._glob=pattern,regExp._src=re,regExp}function makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;var set=this.set;if(!set.length)return this.regexp=!1,this.regexp;var options=this.options,twoStar=options.noglobstar?star:options.dot?twoStarDot:twoStarNoDot,flags=options.nocase?"i":"",re=set.map(function(pattern){return pattern.map(function(p){return p===GLOBSTAR?twoStar:"string"==typeof p?regExpEscape(p):p._src}).join("\\/")}).join("|");re="^(?:"+re+")$",this.negate&&(re="^(?!"+re+").*$");try{this.regexp=new RegExp(re,flags)}catch(ex){this.regexp=!1}return this.regexp}function match(f,partial){if(this.debug("match",f,this.pattern),this.comment)return!1;if(this.empty)return""===f;if("/"===f&&partial)return!0;var options=this.options;"/"!==path.sep&&(f=f.split(path.sep).join("/")),f=f.split(slashSplit),this.debug(this.pattern,"split",f);var set=this.set;this.debug(this.pattern,"set",set);var filename,i;for(i=f.length-1;i>=0&&!(filename=f[i]);i--);for(i=0;ifi&&pl>pi;fi++,pi++){this.debug("matchOne loop");var p=pattern[pi],f=file[fi];if(this.debug(pattern,p,f),p===!1)return!1;if(p===GLOBSTAR){this.debug("GLOBSTAR",[pattern,p,f]);var fr=fi,pr=pi+1;if(pr===pl){for(this.debug("** at the end");fl>fi;fi++)if("."===file[fi]||".."===file[fi]||!options.dot&&"."===file[fi].charAt(0))return!1;return!0}for(;fl>fr;){var swallowee=file[fr];if(this.debug("\nglobstar while",file,fr,pattern,pr,swallowee),this.matchOne(file.slice(fr),pattern.slice(pr),partial))return this.debug("globstar found match!",fr,fl,swallowee),!0;if("."===swallowee||".."===swallowee||!options.dot&&"."===swallowee.charAt(0)){this.debug("dot detected!",file,fr,pattern,pr);break}this.debug("globstar swallow a segment, and continue"),fr++}return partial&&(this.debug("\n>>> no match, partial?",file,fr,pattern,pr),fr===fl)?!0:!1}var hit;if("string"==typeof p?(hit=options.nocase?f.toLowerCase()===p.toLowerCase():f===p,this.debug("string match",p,f,hit)):(hit=f.match(p),this.debug("pattern match",p,f,hit)),!hit)return!1}if(fi===fl&&pi===pl)return!0;if(fi===fl)return partial;if(pi===pl){var emptyFileEnd=fi===fl-1&&""===file[fi];return emptyFileEnd}throw new Error("wtf?")}},function(module,exports,__webpack_require__){function Protocols(proto){if("number"==typeof proto){if(Protocols.codes[proto])return Protocols.codes[proto];throw new Error("no protocol with code: "+proto)}if("string"==typeof proto||proto instanceof String){if(Protocols.names[proto])return Protocols.names[proto];throw new Error("no protocol with name: "+proto)}throw new Error("invalid protocol id type: "+proto)}function p(code,size,name){return{code:code,size:size,name:name}}var map=__webpack_require__(53);module.exports=Protocols,Protocols.table=[[4,32,"ip4"],[6,16,"tcp"],[17,16,"udp"],[33,16,"dccp"],[41,128,"ip6"],[132,16,"sctp"]],Protocols.names={},Protocols.codes={},map(Protocols.table,function(e){var proto=p.apply(this,e);Protocols.codes[proto.code]=proto,Protocols.names[proto.name]=proto}),Protocols.object=p},function(module,exports,__webpack_require__){function once(fn){var f=function(){return f.called?f.value:(f.called=!0,f.value=fn.apply(this,arguments))};return f.called=!1,f}var wrappy=__webpack_require__(115);module.exports=wrappy(once),once.proto=once(function(){Object.defineProperty(Function.prototype,"once",{value:function(){return once(this)},configurable:!0})})},function(module,exports,__webpack_require__){(function(process){"use strict";function posix(path){return"/"===path.charAt(0)}function win32(path){var splitDeviceRe=/^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/,result=splitDeviceRe.exec(path),device=result[1]||"",isUnc=!!device&&":"!==device.charAt(1);return!!result[2]||isUnc}module.exports="win32"===process.platform?win32:posix,module.exports.posix=posix,module.exports.win32=win32}).call(exports,__webpack_require__(2))},function(module,exports,__webpack_require__){(function(process){"use strict";function nextTick(fn){for(var args=new Array(arguments.length-1),i=0;i1){for(var cbs=[],c=0;c"},File.isVinyl=function(file){return file&&file._isVinyl===!0||!1},Object.defineProperty(File.prototype,"contents",{get:function(){return this._contents},set:function(val){if(!isBuffer(val)&&!isStream(val)&&!isNull(val))throw new Error("File.contents can only be a Buffer, a Stream, or null.");this._contents=val}}),Object.defineProperty(File.prototype,"relative",{get:function(){if(!this.base)throw new Error("No base specified! Can not get relative.");if(!this.path)throw new Error("No path specified! Can not get relative.");return path.relative(this.base,this.path)},set:function(){throw new Error("File.relative is generated from the base and path attributes. Do not modify it.")}}),Object.defineProperty(File.prototype,"dirname",{get:function(){if(!this.path)throw new Error("No path specified! Can not get dirname.");return path.dirname(this.path)},set:function(dirname){if(!this.path)throw new Error("No path specified! Can not set dirname.");this.path=path.join(dirname,path.basename(this.path))}}),Object.defineProperty(File.prototype,"basename",{get:function(){if(!this.path)throw new Error("No path specified! Can not get basename.");return path.basename(this.path)},set:function(basename){if(!this.path)throw new Error("No path specified! Can not set basename.");this.path=path.join(path.dirname(this.path),basename)}}),Object.defineProperty(File.prototype,"stem",{get:function(){if(!this.path)throw new Error("No path specified! Can not get stem.");return path.basename(this.path,this.extname)},set:function(stem){if(!this.path)throw new Error("No PassThrough specified! Can not set stem.");this.path=path.join(path.dirname(this.path),stem+this.extname)}}),Object.defineProperty(File.prototype,"extname",{get:function(){if(!this.path)throw new Error("No path specified! Can not get extname.");return path.extname(this.path)},set:function(extname){if(!this.path)throw new Error("No path specified! Can not set extname.");this.path=replaceExt(this.path,extname)}}),Object.defineProperty(File.prototype,"path",{get:function(){return this.history[this.history.length-1]},set:function(path){if("string"!=typeof path)throw new Error("path should be string");path&&path!==this.path&&this.history.push(path)}}),module.exports=File}).call(exports,__webpack_require__(2))},function(module,exports,__webpack_require__){"use strict";function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{"default":obj}}var _keys=__webpack_require__(18),_keys2=_interopRequireDefault(_keys),_setPrototypeOf=__webpack_require__(154),_setPrototypeOf2=_interopRequireDefault(_setPrototypeOf),Hoek=__webpack_require__(23),internals={STATUS_CODES:(0,_setPrototypeOf2["default"])({100:"Continue",101:"Switching Protocols",102:"Processing",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",207:"Multi-Status",300:"Multiple Choices",301:"Moved Permanently",302:"Moved Temporarily",303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Time-out",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Request Entity Too Large",414:"Request-URI Too Large",415:"Unsupported Media Type",416:"Requested Range Not Satisfiable",417:"Expectation Failed",418:"I'm a teapot",422:"Unprocessable Entity",423:"Locked",424:"Failed Dependency",425:"Unordered Collection",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",451:"Unavailable For Legal Reasons",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Time-out",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",509:"Bandwidth Limit Exceeded",510:"Not Extended",511:"Network Authentication Required"},null)};exports.wrap=function(error,statusCode,message){return Hoek.assert(error instanceof Error,"Cannot wrap non-Error object"),error.isBoom?error:internals.initialize(error,statusCode||500,message)},exports.create=function(statusCode,message,data){return internals.create(statusCode,message,data,exports.create)},internals.create=function(statusCode,message,data,ctor){var error=new Error(message?message:void 0);return Error.captureStackTrace(error,ctor),error.data=data||null,internals.initialize(error,statusCode),error},internals.initialize=function(error,statusCode,message){var numberCode=parseInt(statusCode,10);return Hoek.assert(!isNaN(numberCode)&&numberCode>=400,"First argument must be a number (400+):",statusCode),error.isBoom=!0,error.isServer=numberCode>=500,error.hasOwnProperty("data")||(error.data=null),error.output={statusCode:numberCode,payload:{},headers:{}},error.reformat=internals.reformat,error.reformat(),message||error.message||(message=error.output.payload.error),message&&(error.message=message+(error.message?": "+error.message:"")),error},internals.reformat=function(){this.output.payload.statusCode=this.output.statusCode,this.output.payload.error=internals.STATUS_CODES[this.output.statusCode]||"Unknown",500===this.output.statusCode?this.output.payload.message="An internal server error occurred":this.message&&(this.output.payload.message=this.message)},exports.badRequest=function(message,data){return internals.create(400,message,data,exports.badRequest)},exports.unauthorized=function(message,scheme,attributes){var err=internals.create(401,message,void 0,exports.unauthorized);if(!scheme)return err;var wwwAuthenticate="";if("string"==typeof scheme){if(wwwAuthenticate=scheme,(attributes||message)&&(err.output.payload.attributes={}),attributes)for(var names=(0,_keys2["default"])(attributes),i=0;ii;++i)array[i]="%"+((16>i?"0":"")+i.toString(16)).toUpperCase();return array}();exports.arrayToObject=function(source,options){for(var obj=options.plainObjects?(0,_create2["default"])(null):{},i=0;i=48&&57>=c||c>=65&&90>=c||c>=97&&122>=c?out+=string.charAt(i):128>c?out+=hexTable[c]:2048>c?out+=hexTable[192|c>>6]+hexTable[128|63&c]:55296>c||c>=57344?out+=hexTable[224|c>>12]+hexTable[128|c>>6&63]+hexTable[128|63&c]:(i+=1,c=65536+((1023&c)<<10|1023&string.charCodeAt(i)),out+=hexTable[240|c>>18]+hexTable[128|c>>12&63]+hexTable[128|c>>6&63]+hexTable[128|63&c])}return out},exports.compact=function(obj,references){if("object"!==("undefined"==typeof obj?"undefined":(0,_typeof3["default"])(obj))||null===obj)return obj;var refs=references||[],lookup=refs.indexOf(obj);if(-1!==lookup)return refs[lookup];if(refs.push(obj),Array.isArray(obj)){for(var compacted=[],i=0;i0&&(clientTimeoutId=setTimeout(function(){finishOnce(Boom.clientTimeout())},clientTimeout));var onResError=function(err){return finishOnce(Boom.internal("Payload stream error",err))},onResClose=function(){return finishOnce(Boom.internal("Payload stream closed prematurely"))};res.once("error",onResError),res.once("close",onResClose);var reader=new Recorder({maxBytes:options.maxBytes}),onReaderError=function(err){return res.destroy&&res.destroy(),finishOnce(err)};reader.once("error",onReaderError);var onReaderFinish=function(){return finishOnce(null,reader.collect())};reader.once("finish",onReaderFinish),res.pipe(reader)},internals.Client.prototype.toReadableStream=function(payload,encoding){return new Payload(payload,encoding)},internals.Client.prototype.parseCacheControl=function(field){var regex=/(?:^|(?:\s*\,\s*))([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)(?:\=(?:([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)|(?:\"((?:[^"\\]|\\.)*)\")))?/g,header={},error=field.replace(regex,function($0,$1,$2,$3){var value=$2||$3;return header[$1]=value?value.toLowerCase():!0,""});if(header["max-age"])try{var maxAge=parseInt(header["max-age"],10);if(isNaN(maxAge))return null;header["max-age"]=maxAge}catch(err){}return error?null:header},internals.Client.prototype.get=function(uri,options,callback){return this._shortcutWrap("GET",uri,options,callback)},internals.Client.prototype.post=function(uri,options,callback){return this._shortcutWrap("POST",uri,options,callback)},internals.Client.prototype.patch=function(uri,options,callback){return this._shortcutWrap("PATCH",uri,options,callback)},internals.Client.prototype.put=function(uri,options,callback){return this._shortcutWrap("PUT",uri,options,callback)},internals.Client.prototype["delete"]=function(uri,options,callback){return this._shortcutWrap("DELETE",uri,options,callback)},internals.Client.prototype._shortcutWrap=function(method,uri){var options="function"==typeof arguments[2]?{}:arguments[2],callback="function"==typeof arguments[2]?arguments[2]:arguments[3];return this._shortcut(method,uri,options,callback)},internals.Client.prototype._shortcut=function(method,uri,options,callback){var _this2=this;return this.request(method,uri,options,function(err,res){return err?callback(err):void _this2.read(res,options,function(err,payload){return callback(err,res,payload)})})},internals.tryParseBuffer=function(buffer){var result={json:null,err:null};try{var json=JSON.parse(buffer.toString());result.json=json}catch(err){result.err=err}return result},module.exports=new internals.Client}).call(exports,__webpack_require__(1).Buffer,__webpack_require__(2))},function(module,exports,__webpack_require__){(function(Buffer){"use strict";var Hoek=__webpack_require__(23),Stream=__webpack_require__(3),internals={};module.exports=internals.Payload=function(payload,encoding){Stream.Readable.call(this);for(var data=[].concat(payload||""),size=0,i=0;i=this._data.length&&this.push(null)}}).call(exports,__webpack_require__(1).Buffer)},function(module,exports,__webpack_require__){var cof=__webpack_require__(25),TAG=__webpack_require__(12)("toStringTag"),ARG="Arguments"==cof(function(){return arguments}());module.exports=function(it){var O,T,B;return void 0===it?"Undefined":null===it?"Null":"string"==typeof(T=(O=Object(it))[TAG])?T:ARG?cof(O):"Object"==(B=cof(O))&&"function"==typeof O.callee?"Arguments":B}},function(module,exports,__webpack_require__){var toIObject=__webpack_require__(28),getNames=__webpack_require__(7).getNames,toString={}.toString,windowNames="object"==typeof window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],getWindowNames=function(it){try{return getNames(it)}catch(e){return windowNames.slice()}};module.exports.get=function(it){return windowNames&&"[object Window]"==toString.call(it)?getWindowNames(it):getNames(toIObject(it))}},function(module,exports,__webpack_require__){var cof=__webpack_require__(25);module.exports=Object("z").propertyIsEnumerable(0)?Object:function(it){return"String"==cof(it)?it.split(""):Object(it)}},function(module,exports,__webpack_require__){"use strict";var LIBRARY=__webpack_require__(47),$export=__webpack_require__(20),redefine=__webpack_require__(49),hide=__webpack_require__(46),has=__webpack_require__(45),Iterators=__webpack_require__(27),$iterCreate=__webpack_require__(189),setToStringTag=__webpack_require__(36),getProto=__webpack_require__(7).getProto,ITERATOR=__webpack_require__(12)("iterator"),BUGGY=!([].keys&&"next"in[].keys()),FF_ITERATOR="@@iterator",KEYS="keys",VALUES="values",returnThis=function(){return this};module.exports=function(Base,NAME,Constructor,next,DEFAULT,IS_SET,FORCED){$iterCreate(Constructor,NAME,next); -var methods,key,getMethod=function(kind){if(!BUGGY&&kind in proto)return proto[kind];switch(kind){case KEYS:return function(){return new Constructor(this,kind)};case VALUES:return function(){return new Constructor(this,kind)}}return function(){return new Constructor(this,kind)}},TAG=NAME+" Iterator",DEF_VALUES=DEFAULT==VALUES,VALUES_BUG=!1,proto=Base.prototype,$native=proto[ITERATOR]||proto[FF_ITERATOR]||DEFAULT&&proto[DEFAULT],$default=$native||getMethod(DEFAULT);if($native){var IteratorPrototype=getProto($default.call(new Base));setToStringTag(IteratorPrototype,TAG,!0),!LIBRARY&&has(proto,FF_ITERATOR)&&hide(IteratorPrototype,ITERATOR,returnThis),DEF_VALUES&&$native.name!==VALUES&&(VALUES_BUG=!0,$default=function(){return $native.call(this)})}if(LIBRARY&&!FORCED||!BUGGY&&!VALUES_BUG&&proto[ITERATOR]||hide(proto,ITERATOR,$default),Iterators[NAME]=$default,Iterators[TAG]=returnThis,DEFAULT)if(methods={values:DEF_VALUES?$default:getMethod(VALUES),keys:IS_SET?$default:getMethod(KEYS),entries:DEF_VALUES?getMethod("entries"):$default},FORCED)for(key in methods)key in proto||redefine(proto,key,methods[key]);else $export($export.P+$export.F*(BUGGY||VALUES_BUG),NAME,methods);return methods}},function(module,exports,__webpack_require__){var getDesc=__webpack_require__(7).getDesc,isObject=__webpack_require__(34),anObject=__webpack_require__(19),check=function(O,proto){if(anObject(O),!isObject(proto)&&null!==proto)throw TypeError(proto+": can't set as prototype!")};module.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(test,buggy,set){try{set=__webpack_require__(26)(Function.call,getDesc(Object.prototype,"__proto__").set,2),set(test,[]),buggy=!(test instanceof Array)}catch(e){buggy=!0}return function(O,proto){return check(O,proto),buggy?O.__proto__=proto:set(O,proto),O}}({},!1):void 0),check:check}},function(module,exports,__webpack_require__){var global=__webpack_require__(14),SHARED="__core-js_shared__",store=global[SHARED]||(global[SHARED]={});module.exports=function(key){return store[key]||(store[key]={})}},function(module,exports){var ceil=Math.ceil,floor=Math.floor;module.exports=function(it){return isNaN(it=+it)?0:(it>0?floor:ceil)(it)}},function(module,exports){var id=0,px=Math.random();module.exports=function(key){return"Symbol(".concat(void 0===key?"":key,")_",(++id+px).toString(36))}},function(module,exports){},function(module,exports,__webpack_require__){"use strict";var $at=__webpack_require__(200)(!0);__webpack_require__(74)(String,"String",function(iterated){this._t=String(iterated),this._i=0},function(){var point,O=this._t,index=this._i;return index>=O.length?{value:void 0,done:!0}:(point=$at(O,index),this._i+=point.length,{value:point,done:!1})})},function(module,exports,__webpack_require__){__webpack_require__(204);var Iterators=__webpack_require__(27);Iterators.NodeList=Iterators.HTMLCollection=Iterators.Array},function(module,exports,__webpack_require__){(function(Buffer){function toConstructor(fn){return function(){var buffers=[],m={update:function(data,enc){return Buffer.isBuffer(data)||(data=new Buffer(data,enc)),buffers.push(data),this},digest:function(enc){var buf=Buffer.concat(buffers),r=fn(buf);return buffers=null,enc?r.toString(enc):r}};return m}}var createHash=__webpack_require__(287),md5=toConstructor(__webpack_require__(216)),rmd160=toConstructor(__webpack_require__(284));module.exports=function(alg){return"md5"===alg?new md5:"rmd160"===alg?new rmd160:createHash(alg)}}).call(exports,__webpack_require__(1).Buffer)},function(module,exports,__webpack_require__){"use strict";var path=__webpack_require__(5),isglob=__webpack_require__(39);module.exports=function(str){str+="a";do str=path.dirname(str);while(isglob(str));return str}},function(module,exports,__webpack_require__){(function(process){function ownProp(obj,field){return Object.prototype.hasOwnProperty.call(obj,field)}function alphasorti(a,b){return a.toLowerCase().localeCompare(b.toLowerCase())}function alphasort(a,b){return a.localeCompare(b)}function setupIgnores(self,options){self.ignore=options.ignore||[],Array.isArray(self.ignore)||(self.ignore=[self.ignore]),self.ignore.length&&(self.ignore=self.ignore.map(ignoreMap))}function ignoreMap(pattern){var gmatcher=null;if("/**"===pattern.slice(-3)){var gpattern=pattern.replace(/(\/\*\*)+$/,"");gmatcher=new Minimatch(gpattern)}return{matcher:new Minimatch(pattern),gmatcher:gmatcher}}function setopts(self,pattern,options){if(options||(options={}),options.matchBase&&-1===pattern.indexOf("/")){if(options.noglobstar)throw new Error("base matching requires globstar");pattern="**/"+pattern}self.silent=!!options.silent,self.pattern=pattern,self.strict=options.strict!==!1,self.realpath=!!options.realpath,self.realpathCache=options.realpathCache||Object.create(null),self.follow=!!options.follow,self.dot=!!options.dot,self.mark=!!options.mark,self.nodir=!!options.nodir,self.nodir&&(self.mark=!0),self.sync=!!options.sync,self.nounique=!!options.nounique,self.nonull=!!options.nonull,self.nosort=!!options.nosort,self.nocase=!!options.nocase,self.stat=!!options.stat,self.noprocess=!!options.noprocess,self.maxLength=options.maxLength||1/0,self.cache=options.cache||Object.create(null),self.statCache=options.statCache||Object.create(null),self.symlinks=options.symlinks||Object.create(null),setupIgnores(self,options),self.changedCwd=!1;var cwd=process.cwd();ownProp(options,"cwd")?(self.cwd=options.cwd,self.changedCwd=path.resolve(options.cwd)!==cwd):self.cwd=cwd,self.root=options.root||path.resolve(self.cwd,"/"),self.root=path.resolve(self.root),"win32"===process.platform&&(self.root=self.root.replace(/\\/g,"/")),self.nomount=!!options.nomount,options.nonegate=options.nonegate===!1?!1:!0,options.nocomment=options.nocomment===!1?!1:!0,deprecationWarning(options),self.minimatch=new Minimatch(pattern,options),self.options=self.minimatch.options}function deprecationWarning(options){if(!(options.nonegate&&options.nocomment||process.noDeprecation===!0||exports.deprecationWarned)){var msg="glob WARNING: comments and negation will be disabled in v6";if(process.throwDeprecation)throw new Error(msg);process.traceDeprecation?console.trace(msg):console.error(msg),exports.deprecationWarned=!0}}function finish(self){for(var nou=self.nounique,all=nou?[]:Object.create(null),i=0,l=self.matches.length;l>i;i++){var matches=self.matches[i];if(matches&&0!==Object.keys(matches).length){var m=Object.keys(matches);nou?all.push.apply(all,m):m.forEach(function(m){all[m]=!0})}else if(self.nonull){var literal=self.minimatch.globSet[i];nou?all.push(literal):all[literal]=!0}}if(nou||(all=Object.keys(all)),self.nosort||(all=all.sort(self.nocase?alphasorti:alphasort)),self.mark){for(var i=0;ii;i++)this._process(this.minimatch.set[i],i,!1,done)}function readdirCb(self,abs,cb){return function(er,entries){er?self._readdirError(abs,er,cb):self._readdirEntries(abs,entries,cb)}}module.exports=glob;var fs=__webpack_require__(6),minimatch=__webpack_require__(55),inherits=(minimatch.Minimatch,__webpack_require__(4)),EE=__webpack_require__(15).EventEmitter,path=__webpack_require__(5),assert=__webpack_require__(41),isAbsolute=__webpack_require__(58),globSync=__webpack_require__(232),common=__webpack_require__(84),setopts=(common.alphasort,common.alphasorti,common.setopts),ownProp=common.ownProp,inflight=__webpack_require__(238),util=__webpack_require__(8),childrenIgnored=common.childrenIgnored,isIgnored=common.isIgnored,once=__webpack_require__(57);glob.sync=globSync;var GlobSync=glob.GlobSync=globSync.GlobSync;glob.glob=glob,glob.hasMagic=function(pattern,options_){var options=util._extend({},options_);options.noprocess=!0;var g=new Glob(pattern,options),set=g.minimatch.set;if(set.length>1)return!0;for(var j=0;ji;i++){var e=matchedEntries[i];prefix&&(e="/"!==prefix?prefix+"/"+e:prefix+e),"/"!==e.charAt(0)||this.nomount||(e=path.join(this.root,e)),this._emitMatch(index,e)}return cb()}remain.shift();for(var i=0;len>i;i++){var e=matchedEntries[i];prefix&&(e="/"!==prefix?prefix+"/"+e:prefix+e),this._process([e].concat(remain),index,inGlobStar,cb)}cb()},Glob.prototype._emitMatch=function(index,e){if(!this.aborted&&!this.matches[index][e]&&!isIgnored(this,e)){if(this.paused)return void this._emitQueue.push([index,e]);var abs=this._makeAbs(e);if(this.nodir){var c=this.cache[abs];if("DIR"===c||Array.isArray(c))return}this.mark&&(e=this._mark(e)),this.matches[index][e]=!0;var st=this.statCache[abs];st&&this.emit("stat",e,st),this.emit("match",e)}},Glob.prototype._readdirInGlobStar=function(abs,cb){function lstatcb_(er,lstat){if(er)return cb();var isSym=lstat.isSymbolicLink();self.symlinks[abs]=isSym,isSym||lstat.isDirectory()?self._readdir(abs,!1,cb):(self.cache[abs]="FILE",cb())}if(!this.aborted){if(this.follow)return this._readdir(abs,!1,cb);var lstatkey="lstat\x00"+abs,self=this,lstatcb=inflight(lstatkey,lstatcb_);lstatcb&&fs.lstat(abs,lstatcb)}},Glob.prototype._readdir=function(abs,inGlobStar,cb){if(!this.aborted&&(cb=inflight("readdir\x00"+abs+"\x00"+inGlobStar,cb))){if(inGlobStar&&!ownProp(this.symlinks,abs))return this._readdirInGlobStar(abs,cb);if(ownProp(this.cache,abs)){var c=this.cache[abs];if(!c||"FILE"===c)return cb();if(Array.isArray(c))return cb(null,c)}fs.readdir(abs,readdirCb(this,abs,cb))}},Glob.prototype._readdirEntries=function(abs,entries,cb){if(!this.aborted){if(!this.mark&&!this.stat)for(var i=0;ii;i++){var e=entries[i];if("."!==e.charAt(0)||this.dot){var instead=gspref.concat(entries[i],remainWithoutGlobStar);this._process(instead,index,!0,cb);var below=gspref.concat(entries[i],remain);this._process(below,index,!0,cb)}}cb()},Glob.prototype._processSimple=function(prefix,index,cb){var self=this;this._stat(prefix,function(er,exists){self._processSimple2(prefix,index,er,exists,cb)})},Glob.prototype._processSimple2=function(prefix,index,er,exists,cb){if(this.matches[index]||(this.matches[index]=Object.create(null)),!exists)return cb();if(prefix&&isAbsolute(prefix)&&!this.nomount){var trail=/[\/\\]$/.test(prefix);"/"===prefix.charAt(0)?prefix=path.join(this.root,prefix):(prefix=path.resolve(this.root,prefix),trail&&(prefix+="/"))}"win32"===process.platform&&(prefix=prefix.replace(/\\/g,"/")),this._emitMatch(index,prefix),cb()},Glob.prototype._stat=function(f,cb){function lstatcb_(er,lstat){return lstat&&lstat.isSymbolicLink()?fs.stat(abs,function(er,stat){er?self._stat2(f,abs,null,lstat,cb):self._stat2(f,abs,er,stat,cb)}):void self._stat2(f,abs,er,lstat,cb)}var abs=this._makeAbs(f),needDir="/"===f.slice(-1);if(f.length>this.maxLength)return cb();if(!this.stat&&ownProp(this.cache,abs)){var c=this.cache[abs];if(Array.isArray(c)&&(c="DIR"),!needDir||"DIR"===c)return cb(null,c);if(needDir&&"FILE"===c)return cb()}var stat=this.statCache[abs];if(void 0!==stat){if(stat===!1)return cb(null,stat);var type=stat.isDirectory()?"DIR":"FILE";return needDir&&"FILE"===type?cb():cb(null,type,stat)}var self=this,statcb=inflight("stat\x00"+abs,lstatcb_);statcb&&fs.lstat(abs,statcb)},Glob.prototype._stat2=function(f,abs,er,stat,cb){if(er)return this.statCache[abs]=!1,cb();var needDir="/"===f.slice(-1);if(this.statCache[abs]=stat,"/"===abs.slice(-1)&&!stat.isDirectory())return cb(null,!1,stat);var c=stat.isDirectory()?"DIR":"FILE";return this.cache[abs]=this.cache[abs]||c,needDir&&"DIR"!==c?cb():cb(null,c,stat)}}).call(exports,__webpack_require__(2))},function(module,exports,__webpack_require__){"use strict";function clone(obj){if(null===obj||"object"!=typeof obj)return obj;if(obj instanceof Object)var copy={__proto__:obj.__proto__};else var copy=Object.create(null);return Object.getOwnPropertyNames(obj).forEach(function(key){Object.defineProperty(copy,key,Object.getOwnPropertyDescriptor(obj,key))}),copy}var fs=__webpack_require__(6);module.exports=clone(fs)},function(module,exports,__webpack_require__){(function(Buffer){"use strict";function unixStylePath(filePath){return filePath.split(path.sep).join("/")}var through=__webpack_require__(235),fs=__webpack_require__(13),path=__webpack_require__(5),File=__webpack_require__(66),convert=__webpack_require__(167),stripBom=__webpack_require__(64),PLUGIN_NAME="gulp-sourcemap",urlRegex=/^(https?|webpack(-[^:]+)?):\/\//;module.exports.init=function(options){function sourceMapInit(file,encoding,callback){if(file.isNull()||file.sourceMap)return this.push(file),callback();if(file.isStream())return callback(new Error(PLUGIN_NAME+"-init: Streaming not supported"));var sourceMap,fileContent=file.contents.toString();if(options&&options.loadMaps){var sourcePath="";if(sourceMap=convert.fromSource(fileContent))sourceMap=sourceMap.toObject(),sourcePath=path.dirname(file.path),fileContent=convert.removeComments(fileContent);else{var mapFile,mapComment=convert.mapFileCommentRegex.exec(fileContent);mapComment?(mapFile=path.resolve(path.dirname(file.path),mapComment[1]||mapComment[2]),fileContent=convert.removeMapFileComments(fileContent)):mapFile=file.path+".map",sourcePath=path.dirname(mapFile);try{sourceMap=JSON.parse(stripBom(fs.readFileSync(mapFile,"utf8")))}catch(e){}}sourceMap&&(sourceMap.sourcesContent=sourceMap.sourcesContent||[],sourceMap.sources.forEach(function(source,i){if(source.match(urlRegex))return void(sourceMap.sourcesContent[i]=sourceMap.sourcesContent[i]||null);var absPath=path.resolve(sourcePath,source);if(sourceMap.sources[i]=unixStylePath(path.relative(file.base,absPath)),!sourceMap.sourcesContent[i]){var sourceContent=null;if(sourceMap.sourceRoot){if(sourceMap.sourceRoot.match(urlRegex))return void(sourceMap.sourcesContent[i]=null);absPath=path.resolve(sourcePath,sourceMap.sourceRoot,source)}if(absPath===file.path)sourceContent=fileContent;else try{options.debug&&console.log(PLUGIN_NAME+'-init: No source content for "'+source+'". Loading from file.'),sourceContent=stripBom(fs.readFileSync(absPath,"utf8"))}catch(e){options.debug&&console.warn(PLUGIN_NAME+"-init: source file not found: "+absPath)}sourceMap.sourcesContent[i]=sourceContent}}),file.contents=new Buffer(fileContent,"utf8"))}sourceMap||(sourceMap={version:3,names:[],mappings:"",sources:[unixStylePath(file.relative)],sourcesContent:[fileContent]}),sourceMap.file=unixStylePath(file.relative),file.sourceMap=sourceMap,this.push(file),callback()}return through.obj(sourceMapInit)},module.exports.write=function(destPath,options){function sourceMapWrite(file,encoding,callback){if(file.isNull()||!file.sourceMap)return this.push(file),callback();if(file.isStream())return callback(new Error(PLUGIN_NAME+"-write: Streaming not supported"));var sourceMap=file.sourceMap;if(sourceMap.file=unixStylePath(file.relative),sourceMap.sources=sourceMap.sources.map(function(filePath){return unixStylePath(filePath)}),"function"==typeof options.sourceRoot?sourceMap.sourceRoot=options.sourceRoot(file):sourceMap.sourceRoot=options.sourceRoot,options.includeContent){sourceMap.sourcesContent=sourceMap.sourcesContent||[];for(var i=0;i=0;i--)if(ka[i]!=kb[i])return!1;for(i=ka.length-1;i>=0;i--)if(key=ka[i],!_deepEqual(a[key],b[key]))return!1;return!0}function expectedException(actual,expected){return actual&&expected?"[object RegExp]"==Object.prototype.toString.call(expected)?expected.test(actual):actual instanceof expected?!0:expected.call({},actual)===!0?!0:!1:!1}function _throws(shouldThrow,block,expected,message){var actual;util.isString(expected)&&(message=expected,expected=null);try{block()}catch(e){actual=e}if(message=(expected&&expected.name?" ("+expected.name+").":".")+(message?" "+message:"."),shouldThrow&&!actual&&fail(actual,expected,"Missing expected exception"+message),!shouldThrow&&expectedException(actual,expected)&&fail(actual,expected,"Got unwanted exception"+message),shouldThrow&&actual&&expected&&!expectedException(actual,expected)||!shouldThrow&&actual)throw actual}var util=__webpack_require__(8),pSlice=Array.prototype.slice,hasOwn=Object.prototype.hasOwnProperty,assert=module.exports=ok;assert.AssertionError=function(options){this.name="AssertionError",this.actual=options.actual,this.expected=options.expected,this.operator=options.operator,options.message?(this.message=options.message,this.generatedMessage=!1):(this.message=getMessage(this),this.generatedMessage=!0);var stackStartFunction=options.stackStartFunction||fail;if(Error.captureStackTrace)Error.captureStackTrace(this,stackStartFunction);else{var err=new Error;if(err.stack){var out=err.stack,fn_name=stackStartFunction.name,idx=out.indexOf("\n"+fn_name);if(idx>=0){var next_line=out.indexOf("\n",idx+1);out=out.substring(next_line+1)}this.stack=out}}},util.inherits(assert.AssertionError,Error),assert.fail=fail,assert.ok=ok,assert.equal=function(actual,expected,message){actual!=expected&&fail(actual,expected,message,"==",assert.equal)},assert.notEqual=function(actual,expected,message){actual==expected&&fail(actual,expected,message,"!=",assert.notEqual)},assert.deepEqual=function(actual,expected,message){_deepEqual(actual,expected)||fail(actual,expected,message,"deepEqual",assert.deepEqual)},assert.notDeepEqual=function(actual,expected,message){_deepEqual(actual,expected)&&fail(actual,expected,message,"notDeepEqual",assert.notDeepEqual)},assert.strictEqual=function(actual,expected,message){actual!==expected&&fail(actual,expected,message,"===",assert.strictEqual)},assert.notStrictEqual=function(actual,expected,message){actual===expected&&fail(actual,expected,message,"!==",assert.notStrictEqual)},assert["throws"]=function(block,error,message){_throws.apply(this,[!0].concat(pSlice.call(arguments)))},assert.doesNotThrow=function(block,message){_throws.apply(this,[!1].concat(pSlice.call(arguments)))},assert.ifError=function(err){if(err)throw err};var objectKeys=Object.keys||function(obj){var keys=[];for(var key in obj)hasOwn.call(obj,key)&&keys.push(key);return keys}},function(module,exports,__webpack_require__){module.exports={"default":__webpack_require__(170),__esModule:!0}},function(module,exports){module.exports=function(it){if("function"!=typeof it)throw TypeError(it+" is not a function!");return it}},function(module,exports){module.exports=function(it){if(void 0==it)throw TypeError("Can't call method on "+it);return it}},function(module,exports){var hasOwnProperty={}.hasOwnProperty;module.exports=function(it,key){return hasOwnProperty.call(it,key)}},function(module,exports,__webpack_require__){var $=__webpack_require__(7),createDesc=__webpack_require__(48);module.exports=__webpack_require__(32)?function(object,key,value){return $.setDesc(object,key,createDesc(1,value))}:function(object,key,value){return object[key]=value,object}},function(module,exports){module.exports=!0},function(module,exports){module.exports=function(bitmap,value){return{enumerable:!(1&bitmap),configurable:!(2&bitmap),writable:!(4&bitmap),value:value}}},function(module,exports,__webpack_require__){module.exports=__webpack_require__(46)},function(module,exports,__webpack_require__){var defined=__webpack_require__(44);module.exports=function(it){return Object(defined(it))}},function(module,exports,__webpack_require__){(function(Buffer){var isBuffer=__webpack_require__(240),toString=Object.prototype.toString;module.exports=function(val){if("undefined"==typeof val)return"undefined";if(null===val)return"null";if(val===!0||val===!1||val instanceof Boolean)return"boolean";if("string"==typeof val||val instanceof String)return"string";if("number"==typeof val||val instanceof Number)return"number";if("function"==typeof val||val instanceof Function)return"function";if("undefined"!=typeof Array.isArray&&Array.isArray(val))return"array";if(val instanceof RegExp)return"regexp";if(val instanceof Date)return"date";var type=toString.call(val);return"[object RegExp]"===type?"regexp":"[object Date]"===type?"date":"[object Arguments]"===type?"arguments":"undefined"!=typeof Buffer&&isBuffer(val)?"buffer":"[object Set]"===type?"set":"[object WeakSet]"===type?"weakset":"[object Map]"===type?"map":"[object WeakMap]"===type?"weakmap":"[object Symbol]"===type?"symbol":"[object Int8Array]"===type?"int8array":"[object Uint8Array]"===type?"uint8array":"[object Uint8ClampedArray]"===type?"uint8clampedarray":"[object Int16Array]"===type?"int16array":"[object Uint16Array]"===type?"uint16array":"[object Int32Array]"===type?"int32array":"[object Uint32Array]"===type?"uint32array":"[object Float32Array]"===type?"float32array":"[object Float64Array]"===type?"float64array":"object"}}).call(exports,__webpack_require__(1).Buffer)},function(module,exports,__webpack_require__){function baseProperty(key){return function(object){return null==object?void 0:object[key]}}function isArrayLike(value){return null!=value&&isLength(getLength(value))}function isIndex(value,length){return value="number"==typeof value||reIsUint.test(value)?+value:-1,length=null==length?MAX_SAFE_INTEGER:length,value>-1&&value%1==0&&length>value}function isLength(value){return"number"==typeof value&&value>-1&&value%1==0&&MAX_SAFE_INTEGER>=value}function shimKeys(object){for(var props=keysIn(object),propsLength=props.length,length=propsLength&&object.length,allowIndexes=!!length&&isLength(length)&&(isArray(object)||isArguments(object)),index=-1,result=[];++index0;++index-1&&value%1==0&&MAX_SAFE_INTEGER>=value}function map(collection,iteratee,thisArg){var func=isArray(collection)?arrayMap:baseMap;return iteratee=baseCallback(iteratee,thisArg,3),func(collection,iteratee)}var arrayMap=__webpack_require__(254),baseCallback=__webpack_require__(91),baseEach=__webpack_require__(92),isArray=__webpack_require__(29),MAX_SAFE_INTEGER=9007199254740991,getLength=baseProperty("length");module.exports=map},function(module,exports,__webpack_require__){(function(process){"use strict";var win32=process&&"win32"===process.platform,path=__webpack_require__(5),fileRe=__webpack_require__(225),utils=module.exports;utils.diff=__webpack_require__(116),utils.unique=__webpack_require__(118),utils.braces=__webpack_require__(160),utils.brackets=__webpack_require__(220),utils.extglob=__webpack_require__(224),utils.isExtglob=__webpack_require__(38),utils.isGlob=__webpack_require__(39),utils.typeOf=__webpack_require__(51),utils.normalize=__webpack_require__(270),utils.omit=__webpack_require__(271),utils.parseGlob=__webpack_require__(273),utils.cache=__webpack_require__(281),utils.filename=function(fp){var seg=fp.match(fileRe());return seg&&seg[0]},utils.isPath=function(pattern,opts){return function(fp){return pattern===utils.unixify(fp,opts)}},utils.hasPath=function(pattern,opts){return function(fp){return-1!==utils.unixify(pattern,opts).indexOf(fp)}},utils.matchPath=function(pattern,opts){var fn=opts&&opts.contains?utils.hasPath(pattern,opts):utils.isPath(pattern,opts);return fn},utils.hasFilename=function(re){return function(fp){var name=utils.filename(fp);return name&&re.test(name)}},utils.arrayify=function(val){return Array.isArray(val)?val:[val]},utils.unixify=function(fp,opts){return opts&&opts.unixify===!1?fp:opts&&opts.unixify===!0||win32||"\\"===path.sep?utils.normalize(fp,!1):opts&&opts.unescape===!0?fp?fp.toString().replace(/\\(\w)/g,"$1"):"":fp},utils.escapePath=function(fp){return fp.replace(/[\\.]/g,"\\$&")},utils.unescapeGlob=function(fp){return fp.replace(/[\\"']/g,"")},utils.escapeRe=function(str){return str.replace(/[-[\\$*+?.#^\s{}(|)\]]/g,"\\$&")},module.exports=utils}).call(exports,__webpack_require__(2))},function(module,exports,__webpack_require__){function charSet(s){return s.split("").reduce(function(set,c){return set[c]=!0,set},{})}function filter(pattern,options){return options=options||{},function(p,i,list){return minimatch(p,pattern,options)}}function ext(a,b){a=a||{},b=b||{};var t={};return Object.keys(b).forEach(function(k){t[k]=b[k]}),Object.keys(a).forEach(function(k){t[k]=a[k]}),t}function minimatch(p,pattern,options){if("string"!=typeof pattern)throw new TypeError("glob pattern string required");return options||(options={}),options.nocomment||"#"!==pattern.charAt(0)?""===pattern.trim()?""===p:new Minimatch(pattern,options).match(p):!1}function Minimatch(pattern,options){if(!(this instanceof Minimatch))return new Minimatch(pattern,options);if("string"!=typeof pattern)throw new TypeError("glob pattern string required");options||(options={}),pattern=pattern.trim(),"/"!==path.sep&&(pattern=pattern.split(path.sep).join("/")),this.options=options,this.set=[],this.pattern=pattern,this.regexp=null,this.negate=!1,this.comment=!1,this.empty=!1,this.make()}function make(){if(!this._made){var pattern=this.pattern,options=this.options;if(!options.nocomment&&"#"===pattern.charAt(0))return void(this.comment=!0);if(!pattern)return void(this.empty=!0);this.parseNegate();var set=this.globSet=this.braceExpand();options.debug&&(this.debug=console.error),this.debug(this.pattern,set),set=this.globParts=set.map(function(s){return s.split(slashSplit)}),this.debug(this.pattern,set),set=set.map(function(s,si,set){return s.map(this.parse,this)},this),this.debug(this.pattern,set),set=set.filter(function(s){return-1===s.indexOf(!1)}),this.debug(this.pattern,set),this.set=set}}function parseNegate(){var pattern=this.pattern,negate=!1,options=this.options,negateOffset=0;if(!options.nonegate){for(var i=0,l=pattern.length;l>i&&"!"===pattern.charAt(i);i++)negate=!negate,negateOffset++;negateOffset&&(this.pattern=pattern.substr(negateOffset)),this.negate=negate}}function braceExpand(pattern,options){if(options||(options=this instanceof Minimatch?this.options:{}),pattern="undefined"==typeof pattern?this.pattern:pattern,"undefined"==typeof pattern)throw new Error("undefined pattern");return options.nobrace||!pattern.match(/\{.*\}/)?[pattern]:expand(pattern)}function parse(pattern,isSub){function clearStateChar(){if(stateChar){switch(stateChar){case"*":re+=star,hasMagic=!0;break;case"?":re+=qmark,hasMagic=!0;break;default:re+="\\"+stateChar}self.debug("clearStateChar %j %j",stateChar,re),stateChar=!1}}var options=this.options;if(!options.noglobstar&&"**"===pattern)return GLOBSTAR;if(""===pattern)return"";for(var plType,stateChar,c,re="",hasMagic=!!options.nocase,escaping=!1,patternListStack=[],negativeLists=[],inClass=!1,reClassStart=-1,classStart=-1,patternStart="."===pattern.charAt(0)?"":options.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",self=this,i=0,len=pattern.length;len>i&&(c=pattern.charAt(i));i++)if(this.debug("%s %s %s %j",pattern,i,re,c),escaping&&reSpecials[c])re+="\\"+c,escaping=!1;else switch(c){case"/":return!1;case"\\":clearStateChar(),escaping=!0;continue;case"?":case"*":case"+":case"@":case"!":if(this.debug("%s %s %s %j <-- stateChar",pattern,i,re,c),inClass){this.debug(" in class"),"!"===c&&i===classStart+1&&(c="^"),re+=c;continue}self.debug("call clearStateChar %j",stateChar),clearStateChar(),stateChar=c,options.noext&&clearStateChar();continue;case"(":if(inClass){re+="(";continue}if(!stateChar){re+="\\(";continue}plType=stateChar,patternListStack.push({type:plType,start:i-1,reStart:re.length}),re+="!"===stateChar?"(?:(?!(?:":"(?:",this.debug("plType %j %j",stateChar,re),stateChar=!1;continue;case")":if(inClass||!patternListStack.length){re+="\\)";continue}clearStateChar(),hasMagic=!0,re+=")";var pl=patternListStack.pop();switch(plType=pl.type){case"!":negativeLists.push(pl),re+=")[^/]*?)",pl.reEnd=re.length;break;case"?":case"+":case"*":re+=plType;break;case"@":}continue;case"|":if(inClass||!patternListStack.length||escaping){re+="\\|",escaping=!1;continue}clearStateChar(),re+="|";continue;case"[":if(clearStateChar(),inClass){re+="\\"+c;continue}inClass=!0,classStart=i,reClassStart=re.length,re+=c;continue;case"]":if(i===classStart+1||!inClass){re+="\\"+c,escaping=!1;continue}if(inClass){var cs=pattern.substring(classStart+1,i);try{RegExp("["+cs+"]")}catch(er){var sp=this.parse(cs,SUBPARSE);re=re.substr(0,reClassStart)+"\\["+sp[0]+"\\]",hasMagic=hasMagic||sp[1],inClass=!1;continue}}hasMagic=!0,inClass=!1,re+=c;continue;default:clearStateChar(),escaping?escaping=!1:!reSpecials[c]||"^"===c&&inClass||(re+="\\"),re+=c}for(inClass&&(cs=pattern.substr(classStart+1),sp=this.parse(cs,SUBPARSE),re=re.substr(0,reClassStart)+"\\["+sp[0],hasMagic=hasMagic||sp[1]),pl=patternListStack.pop();pl;pl=patternListStack.pop()){var tail=re.slice(pl.reStart+3);tail=tail.replace(/((?:\\{2})*)(\\?)\|/g,function(_,$1,$2){return $2||($2="\\"),$1+$1+$2+"|"}),this.debug("tail=%j\n %s",tail,tail);var t="*"===pl.type?star:"?"===pl.type?qmark:"\\"+pl.type;hasMagic=!0,re=re.slice(0,pl.reStart)+t+"\\("+tail}clearStateChar(),escaping&&(re+="\\\\");var addPatternStart=!1;switch(re.charAt(0)){case".":case"[":case"(":addPatternStart=!0}for(var n=negativeLists.length-1;n>-1;n--){var nl=negativeLists[n],nlBefore=re.slice(0,nl.reStart),nlFirst=re.slice(nl.reStart,nl.reEnd-8),nlLast=re.slice(nl.reEnd-8,nl.reEnd),nlAfter=re.slice(nl.reEnd);nlLast+=nlAfter;var openParensBefore=nlBefore.split("(").length-1,cleanAfter=nlAfter;for(i=0;openParensBefore>i;i++)cleanAfter=cleanAfter.replace(/\)[+*?]?/,"");nlAfter=cleanAfter;var dollar="";""===nlAfter&&isSub!==SUBPARSE&&(dollar="$");var newRe=nlBefore+nlFirst+nlAfter+dollar+nlLast;re=newRe}if(""!==re&&hasMagic&&(re="(?=.)"+re),addPatternStart&&(re=patternStart+re),isSub===SUBPARSE)return[re,hasMagic];if(!hasMagic)return globUnescape(pattern);var flags=options.nocase?"i":"",regExp=new RegExp("^"+re+"$",flags);return regExp._glob=pattern,regExp._src=re,regExp}function makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;var set=this.set;if(!set.length)return this.regexp=!1,this.regexp;var options=this.options,twoStar=options.noglobstar?star:options.dot?twoStarDot:twoStarNoDot,flags=options.nocase?"i":"",re=set.map(function(pattern){return pattern.map(function(p){return p===GLOBSTAR?twoStar:"string"==typeof p?regExpEscape(p):p._src}).join("\\/")}).join("|");re="^(?:"+re+")$",this.negate&&(re="^(?!"+re+").*$");try{this.regexp=new RegExp(re,flags)}catch(ex){this.regexp=!1}return this.regexp}function match(f,partial){if(this.debug("match",f,this.pattern),this.comment)return!1;if(this.empty)return""===f;if("/"===f&&partial)return!0;var options=this.options;"/"!==path.sep&&(f=f.split(path.sep).join("/")),f=f.split(slashSplit),this.debug(this.pattern,"split",f);var set=this.set;this.debug(this.pattern,"set",set);var filename,i;for(i=f.length-1;i>=0&&!(filename=f[i]);i--);for(i=0;ifi&&pl>pi;fi++,pi++){this.debug("matchOne loop");var p=pattern[pi],f=file[fi];if(this.debug(pattern,p,f),p===!1)return!1;if(p===GLOBSTAR){this.debug("GLOBSTAR",[pattern,p,f]);var fr=fi,pr=pi+1;if(pr===pl){for(this.debug("** at the end");fl>fi;fi++)if("."===file[fi]||".."===file[fi]||!options.dot&&"."===file[fi].charAt(0))return!1;return!0}for(;fl>fr;){var swallowee=file[fr];if(this.debug("\nglobstar while",file,fr,pattern,pr,swallowee),this.matchOne(file.slice(fr),pattern.slice(pr),partial))return this.debug("globstar found match!",fr,fl,swallowee),!0;if("."===swallowee||".."===swallowee||!options.dot&&"."===swallowee.charAt(0)){this.debug("dot detected!",file,fr,pattern,pr);break}this.debug("globstar swallow a segment, and continue"),fr++}return partial&&(this.debug("\n>>> no match, partial?",file,fr,pattern,pr),fr===fl)?!0:!1}var hit;if("string"==typeof p?(hit=options.nocase?f.toLowerCase()===p.toLowerCase():f===p,this.debug("string match",p,f,hit)):(hit=f.match(p),this.debug("pattern match",p,f,hit)),!hit)return!1}if(fi===fl&&pi===pl)return!0;if(fi===fl)return partial;if(pi===pl){var emptyFileEnd=fi===fl-1&&""===file[fi];return emptyFileEnd}throw new Error("wtf?")}},function(module,exports,__webpack_require__){function Protocols(proto){if("number"==typeof proto){if(Protocols.codes[proto])return Protocols.codes[proto];throw new Error("no protocol with code: "+proto)}if("string"==typeof proto||proto instanceof String){if(Protocols.names[proto])return Protocols.names[proto];throw new Error("no protocol with name: "+proto)}throw new Error("invalid protocol id type: "+proto)}function p(code,size,name){return{code:code,size:size,name:name}}var map=__webpack_require__(53);module.exports=Protocols,Protocols.table=[[4,32,"ip4"],[6,16,"tcp"],[17,16,"udp"],[33,16,"dccp"],[41,128,"ip6"],[132,16,"sctp"]],Protocols.names={},Protocols.codes={},map(Protocols.table,function(e){var proto=p.apply(this,e);Protocols.codes[proto.code]=proto,Protocols.names[proto.name]=proto}),Protocols.object=p},function(module,exports,__webpack_require__){function once(fn){var f=function(){return f.called?f.value:(f.called=!0,f.value=fn.apply(this,arguments))};return f.called=!1,f}var wrappy=__webpack_require__(115);module.exports=wrappy(once),once.proto=once(function(){Object.defineProperty(Function.prototype,"once",{value:function(){return once(this)},configurable:!0})})},function(module,exports,__webpack_require__){(function(process){"use strict";function posix(path){return"/"===path.charAt(0)}function win32(path){var splitDeviceRe=/^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/,result=splitDeviceRe.exec(path),device=result[1]||"",isUnc=!!device&&":"!==device.charAt(1);return!!result[2]||isUnc}module.exports="win32"===process.platform?win32:posix,module.exports.posix=posix,module.exports.win32=win32}).call(exports,__webpack_require__(2))},function(module,exports,__webpack_require__){(function(process){"use strict";function nextTick(fn){for(var args=new Array(arguments.length-1),i=0;i1){for(var cbs=[],c=0;c"},File.isVinyl=function(file){return file&&file._isVinyl===!0||!1},Object.defineProperty(File.prototype,"contents",{get:function(){return this._contents},set:function(val){if(!isBuffer(val)&&!isStream(val)&&!isNull(val))throw new Error("File.contents can only be a Buffer, a Stream, or null.");this._contents=val}}),Object.defineProperty(File.prototype,"relative",{get:function(){if(!this.base)throw new Error("No base specified! Can not get relative.");if(!this.path)throw new Error("No path specified! Can not get relative.");return path.relative(this.base,this.path)},set:function(){throw new Error("File.relative is generated from the base and path attributes. Do not modify it.")}}),Object.defineProperty(File.prototype,"dirname",{get:function(){if(!this.path)throw new Error("No path specified! Can not get dirname.");return path.dirname(this.path)},set:function(dirname){if(!this.path)throw new Error("No path specified! Can not set dirname.");this.path=path.join(dirname,path.basename(this.path))}}),Object.defineProperty(File.prototype,"basename",{get:function(){if(!this.path)throw new Error("No path specified! Can not get basename.");return path.basename(this.path)},set:function(basename){if(!this.path)throw new Error("No path specified! Can not set basename.");this.path=path.join(path.dirname(this.path),basename)}}),Object.defineProperty(File.prototype,"stem",{get:function(){if(!this.path)throw new Error("No path specified! Can not get stem.");return path.basename(this.path,this.extname)},set:function(stem){if(!this.path)throw new Error("No PassThrough specified! Can not set stem.");this.path=path.join(path.dirname(this.path),stem+this.extname)}}),Object.defineProperty(File.prototype,"extname",{get:function(){if(!this.path)throw new Error("No path specified! Can not get extname.");return path.extname(this.path)},set:function(extname){if(!this.path)throw new Error("No path specified! Can not set extname.");this.path=replaceExt(this.path,extname)}}),Object.defineProperty(File.prototype,"path",{get:function(){return this.history[this.history.length-1]},set:function(path){if("string"!=typeof path)throw new Error("path should be string");path&&path!==this.path&&this.history.push(path)}}),module.exports=File}).call(exports,__webpack_require__(2))},function(module,exports,__webpack_require__){"use strict";function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{"default":obj}}var _keys=__webpack_require__(18),_keys2=_interopRequireDefault(_keys),_setPrototypeOf=__webpack_require__(154),_setPrototypeOf2=_interopRequireDefault(_setPrototypeOf),Hoek=__webpack_require__(24),internals={STATUS_CODES:(0,_setPrototypeOf2["default"])({100:"Continue",101:"Switching Protocols",102:"Processing",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",207:"Multi-Status",300:"Multiple Choices",301:"Moved Permanently",302:"Moved Temporarily",303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Time-out",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Request Entity Too Large",414:"Request-URI Too Large",415:"Unsupported Media Type",416:"Requested Range Not Satisfiable",417:"Expectation Failed",418:"I'm a teapot",422:"Unprocessable Entity",423:"Locked",424:"Failed Dependency",425:"Unordered Collection",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",451:"Unavailable For Legal Reasons",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Time-out",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",509:"Bandwidth Limit Exceeded",510:"Not Extended",511:"Network Authentication Required"},null)};exports.wrap=function(error,statusCode,message){return Hoek.assert(error instanceof Error,"Cannot wrap non-Error object"),error.isBoom?error:internals.initialize(error,statusCode||500,message)},exports.create=function(statusCode,message,data){return internals.create(statusCode,message,data,exports.create)},internals.create=function(statusCode,message,data,ctor){var error=new Error(message?message:void 0);return Error.captureStackTrace(error,ctor),error.data=data||null,internals.initialize(error,statusCode),error},internals.initialize=function(error,statusCode,message){var numberCode=parseInt(statusCode,10);return Hoek.assert(!isNaN(numberCode)&&numberCode>=400,"First argument must be a number (400+):",statusCode),error.isBoom=!0,error.isServer=numberCode>=500,error.hasOwnProperty("data")||(error.data=null),error.output={statusCode:numberCode,payload:{},headers:{}},error.reformat=internals.reformat,error.reformat(),message||error.message||(message=error.output.payload.error),message&&(error.message=message+(error.message?": "+error.message:"")),error},internals.reformat=function(){this.output.payload.statusCode=this.output.statusCode,this.output.payload.error=internals.STATUS_CODES[this.output.statusCode]||"Unknown",500===this.output.statusCode?this.output.payload.message="An internal server error occurred":this.message&&(this.output.payload.message=this.message)},exports.badRequest=function(message,data){return internals.create(400,message,data,exports.badRequest)},exports.unauthorized=function(message,scheme,attributes){var err=internals.create(401,message,void 0,exports.unauthorized);if(!scheme)return err;var wwwAuthenticate="";if("string"==typeof scheme){if(wwwAuthenticate=scheme,(attributes||message)&&(err.output.payload.attributes={}),attributes)for(var names=(0,_keys2["default"])(attributes),i=0;ii;++i)array[i]="%"+((16>i?"0":"")+i.toString(16)).toUpperCase();return array}();exports.arrayToObject=function(source,options){for(var obj=options.plainObjects?(0,_create2["default"])(null):{},i=0;i=48&&57>=c||c>=65&&90>=c||c>=97&&122>=c?out+=string.charAt(i):128>c?out+=hexTable[c]:2048>c?out+=hexTable[192|c>>6]+hexTable[128|63&c]:55296>c||c>=57344?out+=hexTable[224|c>>12]+hexTable[128|c>>6&63]+hexTable[128|63&c]:(i+=1,c=65536+((1023&c)<<10|1023&string.charCodeAt(i)),out+=hexTable[240|c>>18]+hexTable[128|c>>12&63]+hexTable[128|c>>6&63]+hexTable[128|63&c])}return out},exports.compact=function(obj,references){if("object"!==("undefined"==typeof obj?"undefined":(0,_typeof3["default"])(obj))||null===obj)return obj;var refs=references||[],lookup=refs.indexOf(obj);if(-1!==lookup)return refs[lookup];if(refs.push(obj),Array.isArray(obj)){for(var compacted=[],i=0;i0&&(clientTimeoutId=setTimeout(function(){finishOnce(Boom.clientTimeout())},clientTimeout));var onResError=function(err){return finishOnce(Boom.internal("Payload stream error",err))},onResClose=function(){return finishOnce(Boom.internal("Payload stream closed prematurely"))};res.once("error",onResError),res.once("close",onResClose);var reader=new Recorder({maxBytes:options.maxBytes}),onReaderError=function(err){return res.destroy&&res.destroy(),finishOnce(err)};reader.once("error",onReaderError);var onReaderFinish=function(){return finishOnce(null,reader.collect())};reader.once("finish",onReaderFinish),res.pipe(reader)},internals.Client.prototype.toReadableStream=function(payload,encoding){return new Payload(payload,encoding)},internals.Client.prototype.parseCacheControl=function(field){var regex=/(?:^|(?:\s*\,\s*))([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)(?:\=(?:([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)|(?:\"((?:[^"\\]|\\.)*)\")))?/g,header={},error=field.replace(regex,function($0,$1,$2,$3){var value=$2||$3;return header[$1]=value?value.toLowerCase():!0,""});if(header["max-age"])try{var maxAge=parseInt(header["max-age"],10);if(isNaN(maxAge))return null;header["max-age"]=maxAge}catch(err){}return error?null:header},internals.Client.prototype.get=function(uri,options,callback){return this._shortcutWrap("GET",uri,options,callback)},internals.Client.prototype.post=function(uri,options,callback){return this._shortcutWrap("POST",uri,options,callback)},internals.Client.prototype.patch=function(uri,options,callback){return this._shortcutWrap("PATCH",uri,options,callback)},internals.Client.prototype.put=function(uri,options,callback){return this._shortcutWrap("PUT",uri,options,callback)},internals.Client.prototype["delete"]=function(uri,options,callback){return this._shortcutWrap("DELETE",uri,options,callback)},internals.Client.prototype._shortcutWrap=function(method,uri){var options="function"==typeof arguments[2]?{}:arguments[2],callback="function"==typeof arguments[2]?arguments[2]:arguments[3];return this._shortcut(method,uri,options,callback)},internals.Client.prototype._shortcut=function(method,uri,options,callback){var _this2=this;return this.request(method,uri,options,function(err,res){return err?callback(err):void _this2.read(res,options,function(err,payload){return callback(err,res,payload)})})},internals.tryParseBuffer=function(buffer){var result={json:null,err:null};try{var json=JSON.parse(buffer.toString());result.json=json}catch(err){result.err=err}return result},module.exports=new internals.Client}).call(exports,__webpack_require__(1).Buffer,__webpack_require__(2))},function(module,exports,__webpack_require__){(function(Buffer){"use strict";var Hoek=__webpack_require__(24),Stream=__webpack_require__(3),internals={};module.exports=internals.Payload=function(payload,encoding){Stream.Readable.call(this);for(var data=[].concat(payload||""),size=0,i=0;i=this._data.length&&this.push(null)}}).call(exports,__webpack_require__(1).Buffer)},function(module,exports,__webpack_require__){var cof=__webpack_require__(25),TAG=__webpack_require__(12)("toStringTag"),ARG="Arguments"==cof(function(){return arguments}());module.exports=function(it){var O,T,B;return void 0===it?"Undefined":null===it?"Null":"string"==typeof(T=(O=Object(it))[TAG])?T:ARG?cof(O):"Object"==(B=cof(O))&&"function"==typeof O.callee?"Arguments":B}},function(module,exports,__webpack_require__){var toIObject=__webpack_require__(28),getNames=__webpack_require__(7).getNames,toString={}.toString,windowNames="object"==typeof window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],getWindowNames=function(it){try{return getNames(it)}catch(e){return windowNames.slice()}};module.exports.get=function(it){return windowNames&&"[object Window]"==toString.call(it)?getWindowNames(it):getNames(toIObject(it))}},function(module,exports,__webpack_require__){var cof=__webpack_require__(25);module.exports=Object("z").propertyIsEnumerable(0)?Object:function(it){return"String"==cof(it)?it.split(""):Object(it)}},function(module,exports,__webpack_require__){"use strict";var LIBRARY=__webpack_require__(47),$export=__webpack_require__(21),redefine=__webpack_require__(49),hide=__webpack_require__(46),has=__webpack_require__(45),Iterators=__webpack_require__(27),$iterCreate=__webpack_require__(189),setToStringTag=__webpack_require__(36),getProto=__webpack_require__(7).getProto,ITERATOR=__webpack_require__(12)("iterator"),BUGGY=!([].keys&&"next"in[].keys()),FF_ITERATOR="@@iterator",KEYS="keys",VALUES="values",returnThis=function(){return this};module.exports=function(Base,NAME,Constructor,next,DEFAULT,IS_SET,FORCED){$iterCreate(Constructor,NAME,next); +var methods,key,getMethod=function(kind){if(!BUGGY&&kind in proto)return proto[kind];switch(kind){case KEYS:return function(){return new Constructor(this,kind)};case VALUES:return function(){return new Constructor(this,kind)}}return function(){return new Constructor(this,kind)}},TAG=NAME+" Iterator",DEF_VALUES=DEFAULT==VALUES,VALUES_BUG=!1,proto=Base.prototype,$native=proto[ITERATOR]||proto[FF_ITERATOR]||DEFAULT&&proto[DEFAULT],$default=$native||getMethod(DEFAULT);if($native){var IteratorPrototype=getProto($default.call(new Base));setToStringTag(IteratorPrototype,TAG,!0),!LIBRARY&&has(proto,FF_ITERATOR)&&hide(IteratorPrototype,ITERATOR,returnThis),DEF_VALUES&&$native.name!==VALUES&&(VALUES_BUG=!0,$default=function(){return $native.call(this)})}if(LIBRARY&&!FORCED||!BUGGY&&!VALUES_BUG&&proto[ITERATOR]||hide(proto,ITERATOR,$default),Iterators[NAME]=$default,Iterators[TAG]=returnThis,DEFAULT)if(methods={values:DEF_VALUES?$default:getMethod(VALUES),keys:IS_SET?$default:getMethod(KEYS),entries:DEF_VALUES?getMethod("entries"):$default},FORCED)for(key in methods)key in proto||redefine(proto,key,methods[key]);else $export($export.P+$export.F*(BUGGY||VALUES_BUG),NAME,methods);return methods}},function(module,exports,__webpack_require__){var getDesc=__webpack_require__(7).getDesc,isObject=__webpack_require__(34),anObject=__webpack_require__(20),check=function(O,proto){if(anObject(O),!isObject(proto)&&null!==proto)throw TypeError(proto+": can't set as prototype!")};module.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(test,buggy,set){try{set=__webpack_require__(26)(Function.call,getDesc(Object.prototype,"__proto__").set,2),set(test,[]),buggy=!(test instanceof Array)}catch(e){buggy=!0}return function(O,proto){return check(O,proto),buggy?O.__proto__=proto:set(O,proto),O}}({},!1):void 0),check:check}},function(module,exports,__webpack_require__){var global=__webpack_require__(14),SHARED="__core-js_shared__",store=global[SHARED]||(global[SHARED]={});module.exports=function(key){return store[key]||(store[key]={})}},function(module,exports){var ceil=Math.ceil,floor=Math.floor;module.exports=function(it){return isNaN(it=+it)?0:(it>0?floor:ceil)(it)}},function(module,exports){var id=0,px=Math.random();module.exports=function(key){return"Symbol(".concat(void 0===key?"":key,")_",(++id+px).toString(36))}},function(module,exports){},function(module,exports,__webpack_require__){"use strict";var $at=__webpack_require__(200)(!0);__webpack_require__(74)(String,"String",function(iterated){this._t=String(iterated),this._i=0},function(){var point,O=this._t,index=this._i;return index>=O.length?{value:void 0,done:!0}:(point=$at(O,index),this._i+=point.length,{value:point,done:!1})})},function(module,exports,__webpack_require__){__webpack_require__(204);var Iterators=__webpack_require__(27);Iterators.NodeList=Iterators.HTMLCollection=Iterators.Array},function(module,exports,__webpack_require__){(function(Buffer){function toConstructor(fn){return function(){var buffers=[],m={update:function(data,enc){return Buffer.isBuffer(data)||(data=new Buffer(data,enc)),buffers.push(data),this},digest:function(enc){var buf=Buffer.concat(buffers),r=fn(buf);return buffers=null,enc?r.toString(enc):r}};return m}}var createHash=__webpack_require__(287),md5=toConstructor(__webpack_require__(216)),rmd160=toConstructor(__webpack_require__(284));module.exports=function(alg){return"md5"===alg?new md5:"rmd160"===alg?new rmd160:createHash(alg)}}).call(exports,__webpack_require__(1).Buffer)},function(module,exports,__webpack_require__){"use strict";var path=__webpack_require__(5),isglob=__webpack_require__(39);module.exports=function(str){str+="a";do str=path.dirname(str);while(isglob(str));return str}},function(module,exports,__webpack_require__){(function(process){function ownProp(obj,field){return Object.prototype.hasOwnProperty.call(obj,field)}function alphasorti(a,b){return a.toLowerCase().localeCompare(b.toLowerCase())}function alphasort(a,b){return a.localeCompare(b)}function setupIgnores(self,options){self.ignore=options.ignore||[],Array.isArray(self.ignore)||(self.ignore=[self.ignore]),self.ignore.length&&(self.ignore=self.ignore.map(ignoreMap))}function ignoreMap(pattern){var gmatcher=null;if("/**"===pattern.slice(-3)){var gpattern=pattern.replace(/(\/\*\*)+$/,"");gmatcher=new Minimatch(gpattern)}return{matcher:new Minimatch(pattern),gmatcher:gmatcher}}function setopts(self,pattern,options){if(options||(options={}),options.matchBase&&-1===pattern.indexOf("/")){if(options.noglobstar)throw new Error("base matching requires globstar");pattern="**/"+pattern}self.silent=!!options.silent,self.pattern=pattern,self.strict=options.strict!==!1,self.realpath=!!options.realpath,self.realpathCache=options.realpathCache||Object.create(null),self.follow=!!options.follow,self.dot=!!options.dot,self.mark=!!options.mark,self.nodir=!!options.nodir,self.nodir&&(self.mark=!0),self.sync=!!options.sync,self.nounique=!!options.nounique,self.nonull=!!options.nonull,self.nosort=!!options.nosort,self.nocase=!!options.nocase,self.stat=!!options.stat,self.noprocess=!!options.noprocess,self.maxLength=options.maxLength||1/0,self.cache=options.cache||Object.create(null),self.statCache=options.statCache||Object.create(null),self.symlinks=options.symlinks||Object.create(null),setupIgnores(self,options),self.changedCwd=!1;var cwd=process.cwd();ownProp(options,"cwd")?(self.cwd=options.cwd,self.changedCwd=path.resolve(options.cwd)!==cwd):self.cwd=cwd,self.root=options.root||path.resolve(self.cwd,"/"),self.root=path.resolve(self.root),"win32"===process.platform&&(self.root=self.root.replace(/\\/g,"/")),self.nomount=!!options.nomount,options.nonegate=options.nonegate===!1?!1:!0,options.nocomment=options.nocomment===!1?!1:!0,deprecationWarning(options),self.minimatch=new Minimatch(pattern,options),self.options=self.minimatch.options}function deprecationWarning(options){if(!(options.nonegate&&options.nocomment||process.noDeprecation===!0||exports.deprecationWarned)){var msg="glob WARNING: comments and negation will be disabled in v6";if(process.throwDeprecation)throw new Error(msg);process.traceDeprecation?console.trace(msg):console.error(msg),exports.deprecationWarned=!0}}function finish(self){for(var nou=self.nounique,all=nou?[]:Object.create(null),i=0,l=self.matches.length;l>i;i++){var matches=self.matches[i];if(matches&&0!==Object.keys(matches).length){var m=Object.keys(matches);nou?all.push.apply(all,m):m.forEach(function(m){all[m]=!0})}else if(self.nonull){var literal=self.minimatch.globSet[i];nou?all.push(literal):all[literal]=!0}}if(nou||(all=Object.keys(all)),self.nosort||(all=all.sort(self.nocase?alphasorti:alphasort)),self.mark){for(var i=0;ii;i++)this._process(this.minimatch.set[i],i,!1,done)}function readdirCb(self,abs,cb){return function(er,entries){er?self._readdirError(abs,er,cb):self._readdirEntries(abs,entries,cb)}}module.exports=glob;var fs=__webpack_require__(6),minimatch=__webpack_require__(55),inherits=(minimatch.Minimatch,__webpack_require__(4)),EE=__webpack_require__(15).EventEmitter,path=__webpack_require__(5),assert=__webpack_require__(41),isAbsolute=__webpack_require__(58),globSync=__webpack_require__(232),common=__webpack_require__(84),setopts=(common.alphasort,common.alphasorti,common.setopts),ownProp=common.ownProp,inflight=__webpack_require__(238),util=__webpack_require__(8),childrenIgnored=common.childrenIgnored,isIgnored=common.isIgnored,once=__webpack_require__(57);glob.sync=globSync;var GlobSync=glob.GlobSync=globSync.GlobSync;glob.glob=glob,glob.hasMagic=function(pattern,options_){var options=util._extend({},options_);options.noprocess=!0;var g=new Glob(pattern,options),set=g.minimatch.set;if(set.length>1)return!0;for(var j=0;ji;i++){var e=matchedEntries[i];prefix&&(e="/"!==prefix?prefix+"/"+e:prefix+e),"/"!==e.charAt(0)||this.nomount||(e=path.join(this.root,e)),this._emitMatch(index,e)}return cb()}remain.shift();for(var i=0;len>i;i++){var e=matchedEntries[i];prefix&&(e="/"!==prefix?prefix+"/"+e:prefix+e),this._process([e].concat(remain),index,inGlobStar,cb)}cb()},Glob.prototype._emitMatch=function(index,e){if(!this.aborted&&!this.matches[index][e]&&!isIgnored(this,e)){if(this.paused)return void this._emitQueue.push([index,e]);var abs=this._makeAbs(e);if(this.nodir){var c=this.cache[abs];if("DIR"===c||Array.isArray(c))return}this.mark&&(e=this._mark(e)),this.matches[index][e]=!0;var st=this.statCache[abs];st&&this.emit("stat",e,st),this.emit("match",e)}},Glob.prototype._readdirInGlobStar=function(abs,cb){function lstatcb_(er,lstat){if(er)return cb();var isSym=lstat.isSymbolicLink();self.symlinks[abs]=isSym,isSym||lstat.isDirectory()?self._readdir(abs,!1,cb):(self.cache[abs]="FILE",cb())}if(!this.aborted){if(this.follow)return this._readdir(abs,!1,cb);var lstatkey="lstat\x00"+abs,self=this,lstatcb=inflight(lstatkey,lstatcb_);lstatcb&&fs.lstat(abs,lstatcb)}},Glob.prototype._readdir=function(abs,inGlobStar,cb){if(!this.aborted&&(cb=inflight("readdir\x00"+abs+"\x00"+inGlobStar,cb))){if(inGlobStar&&!ownProp(this.symlinks,abs))return this._readdirInGlobStar(abs,cb);if(ownProp(this.cache,abs)){var c=this.cache[abs];if(!c||"FILE"===c)return cb();if(Array.isArray(c))return cb(null,c)}fs.readdir(abs,readdirCb(this,abs,cb))}},Glob.prototype._readdirEntries=function(abs,entries,cb){if(!this.aborted){if(!this.mark&&!this.stat)for(var i=0;ii;i++){var e=entries[i];if("."!==e.charAt(0)||this.dot){var instead=gspref.concat(entries[i],remainWithoutGlobStar);this._process(instead,index,!0,cb);var below=gspref.concat(entries[i],remain);this._process(below,index,!0,cb)}}cb()},Glob.prototype._processSimple=function(prefix,index,cb){var self=this;this._stat(prefix,function(er,exists){self._processSimple2(prefix,index,er,exists,cb)})},Glob.prototype._processSimple2=function(prefix,index,er,exists,cb){if(this.matches[index]||(this.matches[index]=Object.create(null)),!exists)return cb();if(prefix&&isAbsolute(prefix)&&!this.nomount){var trail=/[\/\\]$/.test(prefix);"/"===prefix.charAt(0)?prefix=path.join(this.root,prefix):(prefix=path.resolve(this.root,prefix),trail&&(prefix+="/"))}"win32"===process.platform&&(prefix=prefix.replace(/\\/g,"/")),this._emitMatch(index,prefix),cb()},Glob.prototype._stat=function(f,cb){function lstatcb_(er,lstat){return lstat&&lstat.isSymbolicLink()?fs.stat(abs,function(er,stat){er?self._stat2(f,abs,null,lstat,cb):self._stat2(f,abs,er,stat,cb)}):void self._stat2(f,abs,er,lstat,cb)}var abs=this._makeAbs(f),needDir="/"===f.slice(-1);if(f.length>this.maxLength)return cb();if(!this.stat&&ownProp(this.cache,abs)){var c=this.cache[abs];if(Array.isArray(c)&&(c="DIR"),!needDir||"DIR"===c)return cb(null,c);if(needDir&&"FILE"===c)return cb()}var stat=this.statCache[abs];if(void 0!==stat){if(stat===!1)return cb(null,stat);var type=stat.isDirectory()?"DIR":"FILE";return needDir&&"FILE"===type?cb():cb(null,type,stat)}var self=this,statcb=inflight("stat\x00"+abs,lstatcb_);statcb&&fs.lstat(abs,statcb)},Glob.prototype._stat2=function(f,abs,er,stat,cb){if(er)return this.statCache[abs]=!1,cb();var needDir="/"===f.slice(-1);if(this.statCache[abs]=stat,"/"===abs.slice(-1)&&!stat.isDirectory())return cb(null,!1,stat);var c=stat.isDirectory()?"DIR":"FILE";return this.cache[abs]=this.cache[abs]||c,needDir&&"DIR"!==c?cb():cb(null,c,stat)}}).call(exports,__webpack_require__(2))},function(module,exports,__webpack_require__){"use strict";function clone(obj){if(null===obj||"object"!=typeof obj)return obj;if(obj instanceof Object)var copy={__proto__:obj.__proto__};else var copy=Object.create(null);return Object.getOwnPropertyNames(obj).forEach(function(key){Object.defineProperty(copy,key,Object.getOwnPropertyDescriptor(obj,key))}),copy}var fs=__webpack_require__(6);module.exports=clone(fs)},function(module,exports,__webpack_require__){(function(Buffer){"use strict";function unixStylePath(filePath){return filePath.split(path.sep).join("/")}var through=__webpack_require__(235),fs=__webpack_require__(13),path=__webpack_require__(5),File=__webpack_require__(66),convert=__webpack_require__(167),stripBom=__webpack_require__(64),PLUGIN_NAME="gulp-sourcemap",urlRegex=/^(https?|webpack(-[^:]+)?):\/\//;module.exports.init=function(options){function sourceMapInit(file,encoding,callback){if(file.isNull()||file.sourceMap)return this.push(file),callback();if(file.isStream())return callback(new Error(PLUGIN_NAME+"-init: Streaming not supported"));var sourceMap,fileContent=file.contents.toString();if(options&&options.loadMaps){var sourcePath="";if(sourceMap=convert.fromSource(fileContent))sourceMap=sourceMap.toObject(),sourcePath=path.dirname(file.path),fileContent=convert.removeComments(fileContent);else{var mapFile,mapComment=convert.mapFileCommentRegex.exec(fileContent);mapComment?(mapFile=path.resolve(path.dirname(file.path),mapComment[1]||mapComment[2]),fileContent=convert.removeMapFileComments(fileContent)):mapFile=file.path+".map",sourcePath=path.dirname(mapFile);try{sourceMap=JSON.parse(stripBom(fs.readFileSync(mapFile,"utf8")))}catch(e){}}sourceMap&&(sourceMap.sourcesContent=sourceMap.sourcesContent||[],sourceMap.sources.forEach(function(source,i){if(source.match(urlRegex))return void(sourceMap.sourcesContent[i]=sourceMap.sourcesContent[i]||null);var absPath=path.resolve(sourcePath,source);if(sourceMap.sources[i]=unixStylePath(path.relative(file.base,absPath)),!sourceMap.sourcesContent[i]){var sourceContent=null;if(sourceMap.sourceRoot){if(sourceMap.sourceRoot.match(urlRegex))return void(sourceMap.sourcesContent[i]=null);absPath=path.resolve(sourcePath,sourceMap.sourceRoot,source)}if(absPath===file.path)sourceContent=fileContent;else try{options.debug&&console.log(PLUGIN_NAME+'-init: No source content for "'+source+'". Loading from file.'),sourceContent=stripBom(fs.readFileSync(absPath,"utf8"))}catch(e){options.debug&&console.warn(PLUGIN_NAME+"-init: source file not found: "+absPath)}sourceMap.sourcesContent[i]=sourceContent}}),file.contents=new Buffer(fileContent,"utf8"))}sourceMap||(sourceMap={version:3,names:[],mappings:"",sources:[unixStylePath(file.relative)],sourcesContent:[fileContent]}),sourceMap.file=unixStylePath(file.relative),file.sourceMap=sourceMap,this.push(file),callback()}return through.obj(sourceMapInit)},module.exports.write=function(destPath,options){function sourceMapWrite(file,encoding,callback){if(file.isNull()||!file.sourceMap)return this.push(file),callback();if(file.isStream())return callback(new Error(PLUGIN_NAME+"-write: Streaming not supported"));var sourceMap=file.sourceMap;if(sourceMap.file=unixStylePath(file.relative),sourceMap.sources=sourceMap.sources.map(function(filePath){return unixStylePath(filePath)}),"function"==typeof options.sourceRoot?sourceMap.sourceRoot=options.sourceRoot(file):sourceMap.sourceRoot=options.sourceRoot,options.includeContent){sourceMap.sourcesContent=sourceMap.sourcesContent||[];for(var i=0;i * * Copyright (c) 2015, Jon Schlinkert. @@ -38,13 +38,13 @@ var methods,key,getMethod=function(kind){if(!BUGGY&&kind in proto)return proto[k * Copyright (c) 2014-2015, Jon Schlinkert. * Licensed under the MIT License. */ -"use strict";module.exports=function(value){return null==value||"function"!=typeof value&&"object"!=typeof value}},function(module,exports,__webpack_require__){function baseToString(value){return null==value?"":value+""}function baseCallback(func,thisArg,argCount){var type=typeof func;return"function"==type?void 0===thisArg?func:bindCallback(func,thisArg,argCount):null==func?identity:"object"==type?baseMatches(func):void 0===thisArg?property(func):baseMatchesProperty(func,thisArg)}function baseGet(object,path,pathKey){if(null!=object){void 0!==pathKey&&pathKey in toObject(object)&&(path=[pathKey]);for(var index=0,length=path.length;null!=object&&length>index;)object=object[path[index++]];return index&&index==length?object:void 0}}function baseIsMatch(object,matchData,customizer){var index=matchData.length,length=index,noCustomizer=!customizer;if(null==object)return!length;for(object=toObject(object);index--;){var data=matchData[index];if(noCustomizer&&data[2]?data[1]!==object[data[0]]:!(data[0]in object))return!1}for(;++indexstart&&(start=-start>length?0:length+start),end=void 0===end||end>length?length:+end||0,0>end&&(end+=length),length=start>end?0:end-start>>>0,start>>>=0;for(var result=Array(length);++index-1&&value%1==0&&MAX_SAFE_INTEGER>=value}function toObject(value){return isObject(value)?value:Object(value)}function isObject(value){var type=typeof value;return!!value&&("object"==type||"function"==type)}var keys=__webpack_require__(52),MAX_SAFE_INTEGER=9007199254740991,baseEach=createBaseEach(baseForOwn),baseFor=createBaseFor(),getLength=baseProperty("length");module.exports=baseEach},function(module,exports,__webpack_require__){"use strict";var PassThrough=__webpack_require__(280);module.exports=function(){function add(source){return Array.isArray(source)?(source.forEach(add),this):(sources.push(source),source.once("end",remove.bind(null,source)),source.pipe(output,{end:!1}),this)}function isEmpty(){return 0==sources.length}function remove(source){sources=sources.filter(function(it){return it!==source}),!sources.length&&output.readable&&output.end()}var sources=[],output=new PassThrough({objectMode:!0});return output.setMaxListeners(0),output.add=add,output.isEmpty=isEmpty,output.on("unpipe",remove),Array.prototype.slice.call(arguments).forEach(add),output}},function(module,exports,__webpack_require__){(function(process){function mkdirP(p,opts,f,made){"function"==typeof opts?(f=opts,opts={}):opts&&"object"==typeof opts||(opts={mode:opts});var mode=opts.mode,xfs=opts.fs||fs;void 0===mode&&(mode=_0777&~process.umask()),made||(made=null);var cb=f||function(){};p=path.resolve(p),xfs.mkdir(p,mode,function(er){if(!er)return made=made||p,cb(null,made);switch(er.code){case"ENOENT":mkdirP(path.dirname(p),opts,function(er,made){er?cb(er,made):mkdirP(p,opts,cb,made)});break;default:xfs.stat(p,function(er2,stat){er2||!stat.isDirectory()?cb(er,made):cb(null,made)})}})}var path=__webpack_require__(5),fs=__webpack_require__(6),_0777=parseInt("0777",8);module.exports=mkdirP.mkdirp=mkdirP.mkdirP=mkdirP,mkdirP.sync=function sync(p,opts,made){opts&&"object"==typeof opts||(opts={mode:opts});var mode=opts.mode,xfs=opts.fs||fs;void 0===mode&&(mode=_0777&~process.umask()),made||(made=null),p=path.resolve(p);try{xfs.mkdirSync(p,mode),made=made||p}catch(err0){switch(err0.code){case"ENOENT":made=sync(path.dirname(p),opts,made),sync(p,opts,made);break;default:var stat;try{stat=xfs.statSync(p)}catch(err1){throw err0}if(!stat.isDirectory())throw err0}}return made}}).call(exports,__webpack_require__(2))},function(module,exports,__webpack_require__){function Multipart(boundary){return!this instanceof Multipart?new Multipart(boundary):(this.boundary=boundary||Math.random().toString(36).slice(2),Sandwich.call(this,{head:"--"+this.boundary+CRNL,tail:CRNL+"--"+this.boundary+"--",separator:CRNL+"--"+this.boundary+CRNL}),this._add=this.add,void(this.add=this.addPart))}var Sandwich=__webpack_require__(285).SandwichStream,stream=__webpack_require__(3),inherits=__webpack_require__(4),CRNL="\r\n";module.exports=Multipart,inherits(Multipart,Sandwich),Multipart.prototype.addPart=function(part){part=part||{};var partStream=new stream.PassThrough;if(part.headers)for(var key in part.headers){var header=part.headers[key];partStream.write(key+": "+header+CRNL)}partStream.write(CRNL),part.body instanceof stream.Stream?part.body.pipe(partStream):partStream.end(part.body),this._add(partStream)}},function(module,exports,__webpack_require__){function parse(opts){function parseRow(row){try{if(row)return JSON.parse(row)}catch(e){opts.strict&&this.emit("error",new Error("Could not parse row "+row.slice(0,50)+"..."))}}return opts=opts||{},opts.strict=opts.strict!==!1,split(parseRow)}function serialize(opts){return through.obj(opts,function(obj,enc,cb){cb(null,JSON.stringify(obj)+EOL)})}var through=__webpack_require__(65),split=__webpack_require__(291),EOL=__webpack_require__(98).EOL;module.exports=parse,module.exports.serialize=module.exports.stringify=serialize,module.exports.parse=parse},function(module,exports){"use strict";function toObject(val){if(null===val||void 0===val)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(val)}var hasOwnProperty=Object.prototype.hasOwnProperty,propIsEnumerable=Object.prototype.propertyIsEnumerable;module.exports=Object.assign||function(target,source){for(var from,symbols,to=toObject(target),s=1;s0)if(state.ended&&!addToFront){var e=new Error("stream.push() after EOF");stream.emit("error",e)}else if(state.endEmitted&&addToFront){var e=new Error("stream.unshift() after end event");stream.emit("error",e)}else!state.decoder||addToFront||encoding||(chunk=state.decoder.write(chunk)),addToFront||(state.reading=!1),state.flowing&&0===state.length&&!state.sync?(stream.emit("data",chunk),stream.read(0)):(state.length+=state.objectMode?1:chunk.length,addToFront?state.buffer.unshift(chunk):state.buffer.push(chunk),state.needReadable&&emitReadable(stream)),maybeReadMore(stream,state);else addToFront||(state.reading=!1);return needMoreData(state)}function needMoreData(state){return!state.ended&&(state.needReadable||state.length=MAX_HWM?n=MAX_HWM:(n--,n|=n>>>1,n|=n>>>2,n|=n>>>4,n|=n>>>8,n|=n>>>16,n++),n}function howMuchToRead(n,state){return 0===state.length&&state.ended?0:state.objectMode?0===n?0:1:null===n||isNaN(n)?state.flowing&&state.buffer.length?state.buffer[0].length:state.length:0>=n?0:(n>state.highWaterMark&&(state.highWaterMark=computeNewHighWaterMark(n)),n>state.length?state.ended?state.length:(state.needReadable=!0,0):n)}function chunkInvalid(state,chunk){var er=null;return Buffer.isBuffer(chunk)||"string"==typeof chunk||null===chunk||void 0===chunk||state.objectMode||(er=new TypeError("Invalid non-string/buffer chunk")),er}function onEofChunk(stream,state){if(!state.ended){if(state.decoder){var chunk=state.decoder.end();chunk&&chunk.length&&(state.buffer.push(chunk),state.length+=state.objectMode?1:chunk.length)}state.ended=!0,emitReadable(stream)}}function emitReadable(stream){var state=stream._readableState;state.needReadable=!1,state.emittedReadable||(debug("emitReadable",state.flowing),state.emittedReadable=!0,state.sync?processNextTick(emitReadable_,stream):emitReadable_(stream))}function emitReadable_(stream){debug("emit readable"),stream.emit("readable"),flow(stream)}function maybeReadMore(stream,state){state.readingMore||(state.readingMore=!0,processNextTick(maybeReadMore_,stream,state))}function maybeReadMore_(stream,state){for(var len=state.length;!state.reading&&!state.flowing&&!state.ended&&state.length=length)ret=stringMode?list.join(""):1===list.length?list[0]:Buffer.concat(list,length),list.length=0;else if(ni&&n>c;i++){var buf=list[0],cpy=Math.min(n-c,buf.length);stringMode?ret+=buf.slice(0,cpy):buf.copy(ret,c,0,cpy),cpy0)throw new Error("endReadable called on non-empty stream");state.endEmitted||(state.ended=!0,processNextTick(endReadableNT,state,stream))}function endReadableNT(state,stream){state.endEmitted||0!==state.length||(state.endEmitted=!0,stream.readable=!1,stream.emit("end"))}function forEach(xs,f){for(var i=0,l=xs.length;l>i;i++)f(xs[i],i)}function indexOf(xs,x){for(var i=0,l=xs.length;l>i;i++)if(xs[i]===x)return i;return-1}module.exports=Readable;var processNextTick=__webpack_require__(59),isArray=__webpack_require__(40),Buffer=__webpack_require__(1).Buffer;Readable.ReadableState=ReadableState;var Stream,EElistenerCount=(__webpack_require__(15),function(emitter,type){return emitter.listeners(type).length});!function(){try{Stream=__webpack_require__(3)}catch(_){}finally{Stream||(Stream=__webpack_require__(15).EventEmitter)}}();var Buffer=__webpack_require__(1).Buffer,util=__webpack_require__(9);util.inherits=__webpack_require__(4);var debug,debugUtil=__webpack_require__(336);debug=debugUtil&&debugUtil.debuglog?debugUtil.debuglog("stream"):function(){};var StringDecoder;util.inherits(Readable,Stream);var Duplex,Duplex;Readable.prototype.push=function(chunk,encoding){var state=this._readableState;return state.objectMode||"string"!=typeof chunk||(encoding=encoding||state.defaultEncoding,encoding!==state.encoding&&(chunk=new Buffer(chunk,encoding),encoding="")),readableAddChunk(this,state,chunk,encoding,!1)},Readable.prototype.unshift=function(chunk){var state=this._readableState;return readableAddChunk(this,state,chunk,"",!0)},Readable.prototype.isPaused=function(){return this._readableState.flowing===!1},Readable.prototype.setEncoding=function(enc){return StringDecoder||(StringDecoder=__webpack_require__(22).StringDecoder),this._readableState.decoder=new StringDecoder(enc),this._readableState.encoding=enc,this};var MAX_HWM=8388608;Readable.prototype.read=function(n){debug("read",n);var state=this._readableState,nOrig=n;if(("number"!=typeof n||n>0)&&(state.emittedReadable=!1),0===n&&state.needReadable&&(state.length>=state.highWaterMark||state.ended))return debug("read: emitReadable",state.length,state.ended),0===state.length&&state.ended?endReadable(this):emitReadable(this),null;if(n=howMuchToRead(n,state),0===n&&state.ended)return 0===state.length&&endReadable(this),null;var doRead=state.needReadable;debug("need readable",doRead),(0===state.length||state.length-n0?fromList(n,state):null,null===ret&&(state.needReadable=!0,n=0),state.length-=n,0!==state.length||state.ended||(state.needReadable=!0),nOrig!==n&&state.ended&&0===state.length&&endReadable(this),null!==ret&&this.emit("data",ret),ret},Readable.prototype._read=function(n){this.emit("error",new Error("not implemented"))},Readable.prototype.pipe=function(dest,pipeOpts){function onunpipe(readable){debug("onunpipe"),readable===src&&cleanup()}function onend(){debug("onend"),dest.end()}function cleanup(){debug("cleanup"),dest.removeListener("close",onclose),dest.removeListener("finish",onfinish),dest.removeListener("drain",ondrain),dest.removeListener("error",onerror),dest.removeListener("unpipe",onunpipe),src.removeListener("end",onend),src.removeListener("end",cleanup),src.removeListener("data",ondata),cleanedUp=!0,!state.awaitDrain||dest._writableState&&!dest._writableState.needDrain||ondrain()}function ondata(chunk){debug("ondata");var ret=dest.write(chunk);!1===ret&&(1!==state.pipesCount||state.pipes[0]!==dest||1!==src.listenerCount("data")||cleanedUp||(debug("false write response, pause",src._readableState.awaitDrain),src._readableState.awaitDrain++),src.pause())}function onerror(er){debug("onerror",er),unpipe(),dest.removeListener("error",onerror),0===EElistenerCount(dest,"error")&&dest.emit("error",er)}function onclose(){dest.removeListener("finish",onfinish),unpipe()}function onfinish(){debug("onfinish"),dest.removeListener("close",onclose),unpipe()}function unpipe(){debug("unpipe"),src.unpipe(dest)}var src=this,state=this._readableState;switch(state.pipesCount){case 0:state.pipes=dest;break;case 1:state.pipes=[state.pipes,dest];break;default:state.pipes.push(dest)}state.pipesCount+=1,debug("pipe count=%d opts=%j",state.pipesCount,pipeOpts);var doEnd=(!pipeOpts||pipeOpts.end!==!1)&&dest!==process.stdout&&dest!==process.stderr,endFn=doEnd?onend:cleanup;state.endEmitted?processNextTick(endFn):src.once("end",endFn),dest.on("unpipe",onunpipe);var ondrain=pipeOnDrain(src);dest.on("drain",ondrain);var cleanedUp=!1;return src.on("data",ondata),dest._events&&dest._events.error?isArray(dest._events.error)?dest._events.error.unshift(onerror):dest._events.error=[onerror,dest._events.error]:dest.on("error",onerror),dest.once("close",onclose),dest.once("finish",onfinish),dest.emit("pipe",src),state.flowing||(debug("pipe resume"),src.resume()),dest},Readable.prototype.unpipe=function(dest){var state=this._readableState;if(0===state.pipesCount)return this;if(1===state.pipesCount)return dest&&dest!==state.pipes?this:(dest||(dest=state.pipes),state.pipes=null,state.pipesCount=0,state.flowing=!1,dest&&dest.emit("unpipe",this),this);if(!dest){var dests=state.pipes,len=state.pipesCount;state.pipes=null,state.pipesCount=0,state.flowing=!1;for(var i=0;len>i;i++)dests[i].emit("unpipe",this);return this}var i=indexOf(state.pipes,dest);return-1===i?this:(state.pipes.splice(i,1),state.pipesCount-=1,1===state.pipesCount&&(state.pipes=state.pipes[0]),dest.emit("unpipe",this),this)},Readable.prototype.on=function(ev,fn){var res=Stream.prototype.on.call(this,ev,fn);if("data"===ev&&!1!==this._readableState.flowing&&this.resume(),"readable"===ev&&this.readable){var state=this._readableState;state.readableListening||(state.readableListening=!0,state.emittedReadable=!1,state.needReadable=!0,state.reading?state.length&&emitReadable(this,state):processNextTick(nReadingNextTick,this))}return res},Readable.prototype.addListener=Readable.prototype.on,Readable.prototype.resume=function(){var state=this._readableState;return state.flowing||(debug("resume"),state.flowing=!0,resume(this,state)),this},Readable.prototype.pause=function(){return debug("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(debug("pause"),this._readableState.flowing=!1,this.emit("pause")),this},Readable.prototype.wrap=function(stream){var state=this._readableState,paused=!1,self=this;stream.on("end",function(){if(debug("wrapped end"),state.decoder&&!state.ended){var chunk=state.decoder.end();chunk&&chunk.length&&self.push(chunk)}self.push(null)}),stream.on("data",function(chunk){if(debug("wrapped data"),state.decoder&&(chunk=state.decoder.write(chunk)),(!state.objectMode||null!==chunk&&void 0!==chunk)&&(state.objectMode||chunk&&chunk.length)){var ret=self.push(chunk);ret||(paused=!0,stream.pause())}});for(var i in stream)void 0===this[i]&&"function"==typeof stream[i]&&(this[i]=function(method){return function(){return stream[method].apply(stream,arguments)}}(i));var events=["error","close","destroy","pause","resume"];return forEach(events,function(ev){stream.on(ev,self.emit.bind(self,ev))}),self._read=function(n){debug("wrapped _read",n),paused&&(paused=!1,stream.resume())},self},Readable._fromList=fromList}).call(exports,__webpack_require__(2))},function(module,exports,__webpack_require__){"use strict";function nop(){}function WriteReq(chunk,encoding,cb){this.chunk=chunk,this.encoding=encoding,this.callback=cb,this.next=null}function WritableState(options,stream){Duplex=Duplex||__webpack_require__(21),options=options||{},this.objectMode=!!options.objectMode,stream instanceof Duplex&&(this.objectMode=this.objectMode||!!options.writableObjectMode);var hwm=options.highWaterMark,defaultHwm=this.objectMode?16:16384;this.highWaterMark=hwm||0===hwm?hwm:defaultHwm,this.highWaterMark=~~this.highWaterMark,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1;var noDecode=options.decodeStrings===!1;this.decodeStrings=!noDecode,this.defaultEncoding=options.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(er){onwrite(stream,er)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1}function Writable(options){return Duplex=Duplex||__webpack_require__(21),this instanceof Writable||this instanceof Duplex?(this._writableState=new WritableState(options,this),this.writable=!0,options&&("function"==typeof options.write&&(this._write=options.write),"function"==typeof options.writev&&(this._writev=options.writev)),void Stream.call(this)):new Writable(options)}function writeAfterEnd(stream,cb){var er=new Error("write after end");stream.emit("error",er),processNextTick(cb,er)}function validChunk(stream,state,chunk,cb){var valid=!0;if(!Buffer.isBuffer(chunk)&&"string"!=typeof chunk&&null!==chunk&&void 0!==chunk&&!state.objectMode){var er=new TypeError("Invalid non-string/buffer chunk");stream.emit("error",er),processNextTick(cb,er),valid=!1}return valid}function decodeChunk(state,chunk,encoding){return state.objectMode||state.decodeStrings===!1||"string"!=typeof chunk||(chunk=new Buffer(chunk,encoding)),chunk}function writeOrBuffer(stream,state,chunk,encoding,cb){chunk=decodeChunk(state,chunk,encoding),Buffer.isBuffer(chunk)&&(encoding="buffer");var len=state.objectMode?1:chunk.length;state.length+=len;var ret=state.length-1))throw new TypeError("Unknown encoding: "+encoding);this._writableState.defaultEncoding=encoding},Writable.prototype._write=function(chunk,encoding,cb){cb(new Error("not implemented"))},Writable.prototype._writev=null,Writable.prototype.end=function(chunk,encoding,cb){var state=this._writableState;"function"==typeof chunk?(cb=chunk,chunk=null,encoding=null):"function"==typeof encoding&&(cb=encoding,encoding=null),null!==chunk&&void 0!==chunk&&this.write(chunk,encoding),state.corked&&(state.corked=1,this.uncork()),state.ending||state.finished||endWritable(this,state,cb)}},function(module,exports,__webpack_require__){var Stream=function(){try{return __webpack_require__(3)}catch(_){}}();exports=module.exports=__webpack_require__(100),exports.Stream=Stream||exports,exports.Readable=exports,exports.Writable=__webpack_require__(101),exports.Duplex=__webpack_require__(21),exports.Transform=__webpack_require__(60),exports.PassThrough=__webpack_require__(99)},function(module,exports){/*! +"use strict";module.exports=function(value){return null==value||"function"!=typeof value&&"object"!=typeof value}},function(module,exports,__webpack_require__){function baseToString(value){return null==value?"":value+""}function baseCallback(func,thisArg,argCount){var type=typeof func;return"function"==type?void 0===thisArg?func:bindCallback(func,thisArg,argCount):null==func?identity:"object"==type?baseMatches(func):void 0===thisArg?property(func):baseMatchesProperty(func,thisArg)}function baseGet(object,path,pathKey){if(null!=object){void 0!==pathKey&&pathKey in toObject(object)&&(path=[pathKey]);for(var index=0,length=path.length;null!=object&&length>index;)object=object[path[index++]];return index&&index==length?object:void 0}}function baseIsMatch(object,matchData,customizer){var index=matchData.length,length=index,noCustomizer=!customizer;if(null==object)return!length;for(object=toObject(object);index--;){var data=matchData[index];if(noCustomizer&&data[2]?data[1]!==object[data[0]]:!(data[0]in object))return!1}for(;++indexstart&&(start=-start>length?0:length+start),end=void 0===end||end>length?length:+end||0,0>end&&(end+=length),length=start>end?0:end-start>>>0,start>>>=0;for(var result=Array(length);++index-1&&value%1==0&&MAX_SAFE_INTEGER>=value}function toObject(value){return isObject(value)?value:Object(value)}function isObject(value){var type=typeof value;return!!value&&("object"==type||"function"==type)}var keys=__webpack_require__(52),MAX_SAFE_INTEGER=9007199254740991,baseEach=createBaseEach(baseForOwn),baseFor=createBaseFor(),getLength=baseProperty("length");module.exports=baseEach},function(module,exports,__webpack_require__){"use strict";var PassThrough=__webpack_require__(280);module.exports=function(){function add(source){return Array.isArray(source)?(source.forEach(add),this):(sources.push(source),source.once("end",remove.bind(null,source)),source.pipe(output,{end:!1}),this)}function isEmpty(){return 0==sources.length}function remove(source){sources=sources.filter(function(it){return it!==source}),!sources.length&&output.readable&&output.end()}var sources=[],output=new PassThrough({objectMode:!0});return output.setMaxListeners(0),output.add=add,output.isEmpty=isEmpty,output.on("unpipe",remove),Array.prototype.slice.call(arguments).forEach(add),output}},function(module,exports,__webpack_require__){(function(process){function mkdirP(p,opts,f,made){"function"==typeof opts?(f=opts,opts={}):opts&&"object"==typeof opts||(opts={mode:opts});var mode=opts.mode,xfs=opts.fs||fs;void 0===mode&&(mode=_0777&~process.umask()),made||(made=null);var cb=f||function(){};p=path.resolve(p),xfs.mkdir(p,mode,function(er){if(!er)return made=made||p,cb(null,made);switch(er.code){case"ENOENT":mkdirP(path.dirname(p),opts,function(er,made){er?cb(er,made):mkdirP(p,opts,cb,made)});break;default:xfs.stat(p,function(er2,stat){er2||!stat.isDirectory()?cb(er,made):cb(null,made)})}})}var path=__webpack_require__(5),fs=__webpack_require__(6),_0777=parseInt("0777",8);module.exports=mkdirP.mkdirp=mkdirP.mkdirP=mkdirP,mkdirP.sync=function sync(p,opts,made){opts&&"object"==typeof opts||(opts={mode:opts});var mode=opts.mode,xfs=opts.fs||fs;void 0===mode&&(mode=_0777&~process.umask()),made||(made=null),p=path.resolve(p);try{xfs.mkdirSync(p,mode),made=made||p}catch(err0){switch(err0.code){case"ENOENT":made=sync(path.dirname(p),opts,made),sync(p,opts,made);break;default:var stat;try{stat=xfs.statSync(p)}catch(err1){throw err0}if(!stat.isDirectory())throw err0}}return made}}).call(exports,__webpack_require__(2))},function(module,exports,__webpack_require__){function Multipart(boundary){return!this instanceof Multipart?new Multipart(boundary):(this.boundary=boundary||Math.random().toString(36).slice(2),Sandwich.call(this,{head:"--"+this.boundary+CRNL,tail:CRNL+"--"+this.boundary+"--",separator:CRNL+"--"+this.boundary+CRNL}),this._add=this.add,void(this.add=this.addPart))}var Sandwich=__webpack_require__(285).SandwichStream,stream=__webpack_require__(3),inherits=__webpack_require__(4),CRNL="\r\n";module.exports=Multipart,inherits(Multipart,Sandwich),Multipart.prototype.addPart=function(part){part=part||{};var partStream=new stream.PassThrough;if(part.headers)for(var key in part.headers){var header=part.headers[key];partStream.write(key+": "+header+CRNL)}partStream.write(CRNL),part.body instanceof stream.Stream?part.body.pipe(partStream):partStream.end(part.body),this._add(partStream)}},function(module,exports,__webpack_require__){function parse(opts){function parseRow(row){try{if(row)return JSON.parse(row)}catch(e){opts.strict&&this.emit("error",new Error("Could not parse row "+row.slice(0,50)+"..."))}}return opts=opts||{},opts.strict=opts.strict!==!1,split(parseRow)}function serialize(opts){return through.obj(opts,function(obj,enc,cb){cb(null,JSON.stringify(obj)+EOL)})}var through=__webpack_require__(65),split=__webpack_require__(291),EOL=__webpack_require__(98).EOL;module.exports=parse,module.exports.serialize=module.exports.stringify=serialize,module.exports.parse=parse},function(module,exports){"use strict";function toObject(val){if(null===val||void 0===val)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(val)}var hasOwnProperty=Object.prototype.hasOwnProperty,propIsEnumerable=Object.prototype.propertyIsEnumerable;module.exports=Object.assign||function(target,source){for(var from,symbols,to=toObject(target),s=1;s0)if(state.ended&&!addToFront){var e=new Error("stream.push() after EOF");stream.emit("error",e)}else if(state.endEmitted&&addToFront){var e=new Error("stream.unshift() after end event");stream.emit("error",e)}else!state.decoder||addToFront||encoding||(chunk=state.decoder.write(chunk)),addToFront||(state.reading=!1),state.flowing&&0===state.length&&!state.sync?(stream.emit("data",chunk),stream.read(0)):(state.length+=state.objectMode?1:chunk.length,addToFront?state.buffer.unshift(chunk):state.buffer.push(chunk),state.needReadable&&emitReadable(stream)),maybeReadMore(stream,state);else addToFront||(state.reading=!1);return needMoreData(state)}function needMoreData(state){return!state.ended&&(state.needReadable||state.length=MAX_HWM?n=MAX_HWM:(n--,n|=n>>>1,n|=n>>>2,n|=n>>>4,n|=n>>>8,n|=n>>>16,n++),n}function howMuchToRead(n,state){return 0===state.length&&state.ended?0:state.objectMode?0===n?0:1:null===n||isNaN(n)?state.flowing&&state.buffer.length?state.buffer[0].length:state.length:0>=n?0:(n>state.highWaterMark&&(state.highWaterMark=computeNewHighWaterMark(n)),n>state.length?state.ended?state.length:(state.needReadable=!0,0):n)}function chunkInvalid(state,chunk){var er=null;return Buffer.isBuffer(chunk)||"string"==typeof chunk||null===chunk||void 0===chunk||state.objectMode||(er=new TypeError("Invalid non-string/buffer chunk")),er}function onEofChunk(stream,state){if(!state.ended){if(state.decoder){var chunk=state.decoder.end();chunk&&chunk.length&&(state.buffer.push(chunk),state.length+=state.objectMode?1:chunk.length)}state.ended=!0,emitReadable(stream)}}function emitReadable(stream){var state=stream._readableState;state.needReadable=!1,state.emittedReadable||(debug("emitReadable",state.flowing),state.emittedReadable=!0,state.sync?processNextTick(emitReadable_,stream):emitReadable_(stream))}function emitReadable_(stream){debug("emit readable"),stream.emit("readable"),flow(stream)}function maybeReadMore(stream,state){state.readingMore||(state.readingMore=!0,processNextTick(maybeReadMore_,stream,state))}function maybeReadMore_(stream,state){for(var len=state.length;!state.reading&&!state.flowing&&!state.ended&&state.length=length)ret=stringMode?list.join(""):1===list.length?list[0]:Buffer.concat(list,length),list.length=0;else if(ni&&n>c;i++){var buf=list[0],cpy=Math.min(n-c,buf.length);stringMode?ret+=buf.slice(0,cpy):buf.copy(ret,c,0,cpy),cpy0)throw new Error("endReadable called on non-empty stream");state.endEmitted||(state.ended=!0,processNextTick(endReadableNT,state,stream))}function endReadableNT(state,stream){state.endEmitted||0!==state.length||(state.endEmitted=!0,stream.readable=!1,stream.emit("end"))}function forEach(xs,f){for(var i=0,l=xs.length;l>i;i++)f(xs[i],i)}function indexOf(xs,x){for(var i=0,l=xs.length;l>i;i++)if(xs[i]===x)return i;return-1}module.exports=Readable;var processNextTick=__webpack_require__(59),isArray=__webpack_require__(40),Buffer=__webpack_require__(1).Buffer;Readable.ReadableState=ReadableState;var Stream,EElistenerCount=(__webpack_require__(15),function(emitter,type){return emitter.listeners(type).length});!function(){try{Stream=__webpack_require__(3)}catch(_){}finally{Stream||(Stream=__webpack_require__(15).EventEmitter)}}();var Buffer=__webpack_require__(1).Buffer,util=__webpack_require__(9);util.inherits=__webpack_require__(4);var debug,debugUtil=__webpack_require__(336);debug=debugUtil&&debugUtil.debuglog?debugUtil.debuglog("stream"):function(){};var StringDecoder;util.inherits(Readable,Stream);var Duplex,Duplex;Readable.prototype.push=function(chunk,encoding){var state=this._readableState;return state.objectMode||"string"!=typeof chunk||(encoding=encoding||state.defaultEncoding,encoding!==state.encoding&&(chunk=new Buffer(chunk,encoding),encoding="")),readableAddChunk(this,state,chunk,encoding,!1)},Readable.prototype.unshift=function(chunk){var state=this._readableState;return readableAddChunk(this,state,chunk,"",!0)},Readable.prototype.isPaused=function(){return this._readableState.flowing===!1},Readable.prototype.setEncoding=function(enc){return StringDecoder||(StringDecoder=__webpack_require__(23).StringDecoder),this._readableState.decoder=new StringDecoder(enc),this._readableState.encoding=enc,this};var MAX_HWM=8388608;Readable.prototype.read=function(n){debug("read",n);var state=this._readableState,nOrig=n;if(("number"!=typeof n||n>0)&&(state.emittedReadable=!1),0===n&&state.needReadable&&(state.length>=state.highWaterMark||state.ended))return debug("read: emitReadable",state.length,state.ended),0===state.length&&state.ended?endReadable(this):emitReadable(this),null;if(n=howMuchToRead(n,state),0===n&&state.ended)return 0===state.length&&endReadable(this),null;var doRead=state.needReadable;debug("need readable",doRead),(0===state.length||state.length-n0?fromList(n,state):null,null===ret&&(state.needReadable=!0,n=0),state.length-=n,0!==state.length||state.ended||(state.needReadable=!0),nOrig!==n&&state.ended&&0===state.length&&endReadable(this),null!==ret&&this.emit("data",ret),ret},Readable.prototype._read=function(n){this.emit("error",new Error("not implemented"))},Readable.prototype.pipe=function(dest,pipeOpts){function onunpipe(readable){debug("onunpipe"),readable===src&&cleanup()}function onend(){debug("onend"),dest.end()}function cleanup(){debug("cleanup"),dest.removeListener("close",onclose),dest.removeListener("finish",onfinish),dest.removeListener("drain",ondrain),dest.removeListener("error",onerror),dest.removeListener("unpipe",onunpipe),src.removeListener("end",onend),src.removeListener("end",cleanup),src.removeListener("data",ondata),cleanedUp=!0,!state.awaitDrain||dest._writableState&&!dest._writableState.needDrain||ondrain()}function ondata(chunk){debug("ondata");var ret=dest.write(chunk);!1===ret&&(1!==state.pipesCount||state.pipes[0]!==dest||1!==src.listenerCount("data")||cleanedUp||(debug("false write response, pause",src._readableState.awaitDrain),src._readableState.awaitDrain++),src.pause())}function onerror(er){debug("onerror",er),unpipe(),dest.removeListener("error",onerror),0===EElistenerCount(dest,"error")&&dest.emit("error",er)}function onclose(){dest.removeListener("finish",onfinish),unpipe()}function onfinish(){debug("onfinish"),dest.removeListener("close",onclose),unpipe()}function unpipe(){debug("unpipe"),src.unpipe(dest)}var src=this,state=this._readableState;switch(state.pipesCount){case 0:state.pipes=dest;break;case 1:state.pipes=[state.pipes,dest];break;default:state.pipes.push(dest)}state.pipesCount+=1,debug("pipe count=%d opts=%j",state.pipesCount,pipeOpts);var doEnd=(!pipeOpts||pipeOpts.end!==!1)&&dest!==process.stdout&&dest!==process.stderr,endFn=doEnd?onend:cleanup;state.endEmitted?processNextTick(endFn):src.once("end",endFn),dest.on("unpipe",onunpipe);var ondrain=pipeOnDrain(src);dest.on("drain",ondrain);var cleanedUp=!1;return src.on("data",ondata),dest._events&&dest._events.error?isArray(dest._events.error)?dest._events.error.unshift(onerror):dest._events.error=[onerror,dest._events.error]:dest.on("error",onerror),dest.once("close",onclose),dest.once("finish",onfinish),dest.emit("pipe",src),state.flowing||(debug("pipe resume"),src.resume()),dest},Readable.prototype.unpipe=function(dest){var state=this._readableState;if(0===state.pipesCount)return this;if(1===state.pipesCount)return dest&&dest!==state.pipes?this:(dest||(dest=state.pipes),state.pipes=null,state.pipesCount=0,state.flowing=!1,dest&&dest.emit("unpipe",this),this);if(!dest){var dests=state.pipes,len=state.pipesCount;state.pipes=null,state.pipesCount=0,state.flowing=!1;for(var i=0;len>i;i++)dests[i].emit("unpipe",this);return this}var i=indexOf(state.pipes,dest);return-1===i?this:(state.pipes.splice(i,1),state.pipesCount-=1,1===state.pipesCount&&(state.pipes=state.pipes[0]),dest.emit("unpipe",this),this)},Readable.prototype.on=function(ev,fn){var res=Stream.prototype.on.call(this,ev,fn);if("data"===ev&&!1!==this._readableState.flowing&&this.resume(),"readable"===ev&&this.readable){var state=this._readableState;state.readableListening||(state.readableListening=!0,state.emittedReadable=!1,state.needReadable=!0,state.reading?state.length&&emitReadable(this,state):processNextTick(nReadingNextTick,this))}return res},Readable.prototype.addListener=Readable.prototype.on,Readable.prototype.resume=function(){var state=this._readableState;return state.flowing||(debug("resume"),state.flowing=!0,resume(this,state)),this},Readable.prototype.pause=function(){return debug("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(debug("pause"),this._readableState.flowing=!1,this.emit("pause")),this},Readable.prototype.wrap=function(stream){var state=this._readableState,paused=!1,self=this;stream.on("end",function(){if(debug("wrapped end"),state.decoder&&!state.ended){var chunk=state.decoder.end();chunk&&chunk.length&&self.push(chunk)}self.push(null)}),stream.on("data",function(chunk){if(debug("wrapped data"),state.decoder&&(chunk=state.decoder.write(chunk)),(!state.objectMode||null!==chunk&&void 0!==chunk)&&(state.objectMode||chunk&&chunk.length)){var ret=self.push(chunk);ret||(paused=!0,stream.pause())}});for(var i in stream)void 0===this[i]&&"function"==typeof stream[i]&&(this[i]=function(method){return function(){return stream[method].apply(stream,arguments)}}(i));var events=["error","close","destroy","pause","resume"];return forEach(events,function(ev){stream.on(ev,self.emit.bind(self,ev))}),self._read=function(n){debug("wrapped _read",n),paused&&(paused=!1,stream.resume())},self},Readable._fromList=fromList}).call(exports,__webpack_require__(2))},function(module,exports,__webpack_require__){"use strict";function nop(){}function WriteReq(chunk,encoding,cb){this.chunk=chunk,this.encoding=encoding,this.callback=cb,this.next=null}function WritableState(options,stream){Duplex=Duplex||__webpack_require__(22),options=options||{},this.objectMode=!!options.objectMode,stream instanceof Duplex&&(this.objectMode=this.objectMode||!!options.writableObjectMode);var hwm=options.highWaterMark,defaultHwm=this.objectMode?16:16384;this.highWaterMark=hwm||0===hwm?hwm:defaultHwm,this.highWaterMark=~~this.highWaterMark,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1;var noDecode=options.decodeStrings===!1;this.decodeStrings=!noDecode,this.defaultEncoding=options.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(er){onwrite(stream,er)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1}function Writable(options){return Duplex=Duplex||__webpack_require__(22),this instanceof Writable||this instanceof Duplex?(this._writableState=new WritableState(options,this),this.writable=!0,options&&("function"==typeof options.write&&(this._write=options.write),"function"==typeof options.writev&&(this._writev=options.writev)),void Stream.call(this)):new Writable(options)}function writeAfterEnd(stream,cb){var er=new Error("write after end");stream.emit("error",er),processNextTick(cb,er)}function validChunk(stream,state,chunk,cb){var valid=!0;if(!Buffer.isBuffer(chunk)&&"string"!=typeof chunk&&null!==chunk&&void 0!==chunk&&!state.objectMode){var er=new TypeError("Invalid non-string/buffer chunk");stream.emit("error",er),processNextTick(cb,er),valid=!1}return valid}function decodeChunk(state,chunk,encoding){return state.objectMode||state.decodeStrings===!1||"string"!=typeof chunk||(chunk=new Buffer(chunk,encoding)),chunk}function writeOrBuffer(stream,state,chunk,encoding,cb){chunk=decodeChunk(state,chunk,encoding),Buffer.isBuffer(chunk)&&(encoding="buffer");var len=state.objectMode?1:chunk.length;state.length+=len;var ret=state.length-1))throw new TypeError("Unknown encoding: "+encoding);this._writableState.defaultEncoding=encoding},Writable.prototype._write=function(chunk,encoding,cb){cb(new Error("not implemented"))},Writable.prototype._writev=null,Writable.prototype.end=function(chunk,encoding,cb){var state=this._writableState;"function"==typeof chunk?(cb=chunk,chunk=null,encoding=null):"function"==typeof encoding&&(cb=encoding,encoding=null),null!==chunk&&void 0!==chunk&&this.write(chunk,encoding),state.corked&&(state.corked=1,this.uncork()),state.ending||state.finished||endWritable(this,state,cb)}},function(module,exports,__webpack_require__){var Stream=function(){try{return __webpack_require__(3)}catch(_){}}();exports=module.exports=__webpack_require__(100),exports.Stream=Stream||exports,exports.Readable=exports,exports.Writable=__webpack_require__(101),exports.Duplex=__webpack_require__(22),exports.Transform=__webpack_require__(60),exports.PassThrough=__webpack_require__(99)},function(module,exports){/*! * repeat-element * * Copyright (c) 2015 Jon Schlinkert. * Licensed under the MIT license. */ -"use strict";module.exports=function(ele,num){for(var arr=new Array(num),i=0;num>i;i++)arr[i]=ele;return arr}},function(module,exports,__webpack_require__){function PassThrough(options){return this instanceof PassThrough?void Transform.call(this,options):new PassThrough(options)}module.exports=PassThrough;var Transform=__webpack_require__(62),util=__webpack_require__(9);util.inherits=__webpack_require__(4),util.inherits(PassThrough,Transform),PassThrough.prototype._transform=function(chunk,encoding,cb){cb(null,chunk)}},function(module,exports,__webpack_require__){(function(process){function ReadableState(options,stream){var Duplex=__webpack_require__(16);options=options||{};var hwm=options.highWaterMark,defaultHwm=options.objectMode?16:16384;this.highWaterMark=hwm||0===hwm?hwm:defaultHwm,this.highWaterMark=~~this.highWaterMark,this.buffer=[],this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.objectMode=!!options.objectMode,stream instanceof Duplex&&(this.objectMode=this.objectMode||!!options.readableObjectMode),this.defaultEncoding=options.defaultEncoding||"utf8",this.ranOut=!1,this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,options.encoding&&(StringDecoder||(StringDecoder=__webpack_require__(22).StringDecoder),this.decoder=new StringDecoder(options.encoding),this.encoding=options.encoding)}function Readable(options){__webpack_require__(16);return this instanceof Readable?(this._readableState=new ReadableState(options,this),this.readable=!0,void Stream.call(this)):new Readable(options)}function readableAddChunk(stream,state,chunk,encoding,addToFront){var er=chunkInvalid(state,chunk);if(er)stream.emit("error",er);else if(util.isNullOrUndefined(chunk))state.reading=!1,state.ended||onEofChunk(stream,state);else if(state.objectMode||chunk&&chunk.length>0)if(state.ended&&!addToFront){var e=new Error("stream.push() after EOF");stream.emit("error",e)}else if(state.endEmitted&&addToFront){var e=new Error("stream.unshift() after end event");stream.emit("error",e)}else!state.decoder||addToFront||encoding||(chunk=state.decoder.write(chunk)),addToFront||(state.reading=!1),state.flowing&&0===state.length&&!state.sync?(stream.emit("data",chunk),stream.read(0)):(state.length+=state.objectMode?1:chunk.length,addToFront?state.buffer.unshift(chunk):state.buffer.push(chunk),state.needReadable&&emitReadable(stream)),maybeReadMore(stream,state);else addToFront||(state.reading=!1);return needMoreData(state)}function needMoreData(state){return!state.ended&&(state.needReadable||state.length=MAX_HWM)n=MAX_HWM;else{n--;for(var p=1;32>p;p<<=1)n|=n>>p;n++}return n}function howMuchToRead(n,state){return 0===state.length&&state.ended?0:state.objectMode?0===n?0:1:isNaN(n)||util.isNull(n)?state.flowing&&state.buffer.length?state.buffer[0].length:state.length:0>=n?0:(n>state.highWaterMark&&(state.highWaterMark=roundUpToNextPowerOf2(n)),n>state.length?state.ended?state.length:(state.needReadable=!0,0):n)}function chunkInvalid(state,chunk){var er=null;return util.isBuffer(chunk)||util.isString(chunk)||util.isNullOrUndefined(chunk)||state.objectMode||(er=new TypeError("Invalid non-string/buffer chunk")),er}function onEofChunk(stream,state){if(state.decoder&&!state.ended){var chunk=state.decoder.end();chunk&&chunk.length&&(state.buffer.push(chunk),state.length+=state.objectMode?1:chunk.length)}state.ended=!0,emitReadable(stream)}function emitReadable(stream){var state=stream._readableState;state.needReadable=!1,state.emittedReadable||(debug("emitReadable",state.flowing),state.emittedReadable=!0,state.sync?process.nextTick(function(){emitReadable_(stream)}):emitReadable_(stream))}function emitReadable_(stream){debug("emit readable"),stream.emit("readable"),flow(stream)}function maybeReadMore(stream,state){state.readingMore||(state.readingMore=!0,process.nextTick(function(){maybeReadMore_(stream,state)}))}function maybeReadMore_(stream,state){for(var len=state.length;!state.reading&&!state.flowing&&!state.ended&&state.length=length)ret=stringMode?list.join(""):Buffer.concat(list,length),list.length=0;else if(ni&&n>c;i++){var buf=list[0],cpy=Math.min(n-c,buf.length);stringMode?ret+=buf.slice(0,cpy):buf.copy(ret,c,0,cpy),cpy0)throw new Error("endReadable called on non-empty stream");state.endEmitted||(state.ended=!0,process.nextTick(function(){state.endEmitted||0!==state.length||(state.endEmitted=!0,stream.readable=!1,stream.emit("end"))}))}function forEach(xs,f){for(var i=0,l=xs.length;l>i;i++)f(xs[i],i)}function indexOf(xs,x){for(var i=0,l=xs.length;l>i;i++)if(xs[i]===x)return i;return-1}module.exports=Readable;var isArray=__webpack_require__(40),Buffer=__webpack_require__(1).Buffer;Readable.ReadableState=ReadableState;var EE=__webpack_require__(15).EventEmitter;EE.listenerCount||(EE.listenerCount=function(emitter,type){return emitter.listeners(type).length});var Stream=__webpack_require__(3),util=__webpack_require__(9);util.inherits=__webpack_require__(4);var StringDecoder,debug=__webpack_require__(337);debug=debug&&debug.debuglog?debug.debuglog("stream"):function(){},util.inherits(Readable,Stream),Readable.prototype.push=function(chunk,encoding){var state=this._readableState;return util.isString(chunk)&&!state.objectMode&&(encoding=encoding||state.defaultEncoding,encoding!==state.encoding&&(chunk=new Buffer(chunk,encoding),encoding="")),readableAddChunk(this,state,chunk,encoding,!1)},Readable.prototype.unshift=function(chunk){var state=this._readableState;return readableAddChunk(this,state,chunk,"",!0)},Readable.prototype.setEncoding=function(enc){return StringDecoder||(StringDecoder=__webpack_require__(22).StringDecoder),this._readableState.decoder=new StringDecoder(enc),this._readableState.encoding=enc,this};var MAX_HWM=8388608;Readable.prototype.read=function(n){debug("read",n);var state=this._readableState,nOrig=n;if((!util.isNumber(n)||n>0)&&(state.emittedReadable=!1),0===n&&state.needReadable&&(state.length>=state.highWaterMark||state.ended))return debug("read: emitReadable",state.length,state.ended),0===state.length&&state.ended?endReadable(this):emitReadable(this),null;if(n=howMuchToRead(n,state),0===n&&state.ended)return 0===state.length&&endReadable(this),null;var doRead=state.needReadable;debug("need readable",doRead),(0===state.length||state.length-n0?fromList(n,state):null,util.isNull(ret)&&(state.needReadable=!0,n=0),state.length-=n,0!==state.length||state.ended||(state.needReadable=!0),nOrig!==n&&state.ended&&0===state.length&&endReadable(this),util.isNull(ret)||this.emit("data",ret),ret},Readable.prototype._read=function(n){this.emit("error",new Error("not implemented"))},Readable.prototype.pipe=function(dest,pipeOpts){function onunpipe(readable){debug("onunpipe"),readable===src&&cleanup()}function onend(){debug("onend"),dest.end()}function cleanup(){debug("cleanup"),dest.removeListener("close",onclose),dest.removeListener("finish",onfinish),dest.removeListener("drain",ondrain),dest.removeListener("error",onerror),dest.removeListener("unpipe",onunpipe),src.removeListener("end",onend),src.removeListener("end",cleanup),src.removeListener("data",ondata),!state.awaitDrain||dest._writableState&&!dest._writableState.needDrain||ondrain()}function ondata(chunk){debug("ondata");var ret=dest.write(chunk);!1===ret&&(debug("false write response, pause",src._readableState.awaitDrain),src._readableState.awaitDrain++,src.pause())}function onerror(er){debug("onerror",er),unpipe(),dest.removeListener("error",onerror),0===EE.listenerCount(dest,"error")&&dest.emit("error",er)}function onclose(){dest.removeListener("finish",onfinish),unpipe()}function onfinish(){debug("onfinish"),dest.removeListener("close",onclose),unpipe()}function unpipe(){debug("unpipe"),src.unpipe(dest)}var src=this,state=this._readableState;switch(state.pipesCount){case 0:state.pipes=dest;break;case 1:state.pipes=[state.pipes,dest];break;default:state.pipes.push(dest)}state.pipesCount+=1,debug("pipe count=%d opts=%j",state.pipesCount,pipeOpts);var doEnd=(!pipeOpts||pipeOpts.end!==!1)&&dest!==process.stdout&&dest!==process.stderr,endFn=doEnd?onend:cleanup;state.endEmitted?process.nextTick(endFn):src.once("end",endFn),dest.on("unpipe",onunpipe);var ondrain=pipeOnDrain(src);return dest.on("drain",ondrain),src.on("data",ondata),dest._events&&dest._events.error?isArray(dest._events.error)?dest._events.error.unshift(onerror):dest._events.error=[onerror,dest._events.error]:dest.on("error",onerror),dest.once("close",onclose),dest.once("finish",onfinish),dest.emit("pipe",src),state.flowing||(debug("pipe resume"),src.resume()),dest},Readable.prototype.unpipe=function(dest){var state=this._readableState;if(0===state.pipesCount)return this;if(1===state.pipesCount)return dest&&dest!==state.pipes?this:(dest||(dest=state.pipes),state.pipes=null,state.pipesCount=0,state.flowing=!1,dest&&dest.emit("unpipe",this),this);if(!dest){var dests=state.pipes,len=state.pipesCount;state.pipes=null,state.pipesCount=0,state.flowing=!1;for(var i=0;len>i;i++)dests[i].emit("unpipe",this);return this}var i=indexOf(state.pipes,dest);return-1===i?this:(state.pipes.splice(i,1),state.pipesCount-=1,1===state.pipesCount&&(state.pipes=state.pipes[0]),dest.emit("unpipe",this),this)},Readable.prototype.on=function(ev,fn){var res=Stream.prototype.on.call(this,ev,fn);if("data"===ev&&!1!==this._readableState.flowing&&this.resume(),"readable"===ev&&this.readable){var state=this._readableState;if(!state.readableListening)if(state.readableListening=!0,state.emittedReadable=!1,state.needReadable=!0,state.reading)state.length&&emitReadable(this,state);else{var self=this;process.nextTick(function(){debug("readable nexttick read 0"),self.read(0)})}}return res},Readable.prototype.addListener=Readable.prototype.on,Readable.prototype.resume=function(){var state=this._readableState;return state.flowing||(debug("resume"),state.flowing=!0,state.reading||(debug("resume read 0"),this.read(0)),resume(this,state)),this},Readable.prototype.pause=function(){return debug("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(debug("pause"),this._readableState.flowing=!1,this.emit("pause")),this},Readable.prototype.wrap=function(stream){var state=this._readableState,paused=!1,self=this;stream.on("end",function(){if(debug("wrapped end"),state.decoder&&!state.ended){var chunk=state.decoder.end();chunk&&chunk.length&&self.push(chunk)}self.push(null)}),stream.on("data",function(chunk){if(debug("wrapped data"),state.decoder&&(chunk=state.decoder.write(chunk)),chunk&&(state.objectMode||chunk.length)){var ret=self.push(chunk);ret||(paused=!0,stream.pause())}});for(var i in stream)util.isFunction(stream[i])&&util.isUndefined(this[i])&&(this[i]=function(method){return function(){return stream[method].apply(stream,arguments)}}(i));var events=["error","close","destroy","pause","resume"];return forEach(events,function(ev){stream.on(ev,self.emit.bind(self,ev))}),self._read=function(n){debug("wrapped _read",n),paused&&(paused=!1,stream.resume())},self},Readable._fromList=fromList}).call(exports,__webpack_require__(2))},function(module,exports,__webpack_require__){(function(global){var ClientRequest=__webpack_require__(297),extend=__webpack_require__(17),statusCodes=__webpack_require__(163),url=__webpack_require__(110),http=exports;http.request=function(opts,cb){opts="string"==typeof opts?url.parse(opts):extend(opts);var defaultProtocol=-1===global.location.protocol.search(/^https?:$/)?"http:":"",protocol=opts.protocol||defaultProtocol,host=opts.hostname||opts.host,port=opts.port,path=opts.path||"/";host&&-1!==host.indexOf(":")&&(host="["+host+"]"),opts.url=(host?protocol+"//"+host:"")+(port?":"+port:"")+path,opts.method=(opts.method||"GET").toUpperCase(),opts.headers=opts.headers||{};var req=new ClientRequest(opts);return cb&&req.on("response",cb),req},http.get=function(opts,cb){var req=http.request(opts,cb);return req.end(),req},http.Agent=function(){},http.Agent.defaultMaxSockets=4,http.STATUS_CODES=statusCodes,http.METHODS=["CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","REPORT","SEARCH","SUBSCRIBE","TRACE","UNLOCK","UNSUBSCRIBE"]}).call(exports,function(){return this}())},function(module,exports){(function(global){function checkTypeSupport(type){try{return xhr.responseType=type,xhr.responseType===type}catch(e){}return!1}function isFunction(value){return"function"==typeof value}exports.fetch=isFunction(global.fetch)&&isFunction(global.ReadableByteStream),exports.blobConstructor=!1;try{new Blob([new ArrayBuffer(1)]),exports.blobConstructor=!0}catch(e){}var xhr=new global.XMLHttpRequest;xhr.open("GET",global.location.host?"/":"https://example.com");var haveArrayBuffer="undefined"!=typeof global.ArrayBuffer,haveSlice=haveArrayBuffer&&isFunction(global.ArrayBuffer.prototype.slice);exports.arraybuffer=haveArrayBuffer&&checkTypeSupport("arraybuffer"),exports.msstream=!exports.fetch&&haveSlice&&checkTypeSupport("ms-stream"),exports.mozchunkedarraybuffer=!exports.fetch&&haveArrayBuffer&&checkTypeSupport("moz-chunked-arraybuffer"),exports.overrideMimeType=isFunction(xhr.overrideMimeType),exports.vbArray=isFunction(global.VBArray),xhr=null}).call(exports,function(){return this}())},function(module,exports,__webpack_require__){"use strict";function ctor(options,fn){"function"==typeof options&&(fn=options,options={});var Filter=through2.ctor(options,function(chunk,encoding,callback){return this.options.wantStrings&&(chunk=chunk.toString()),fn.call(this,chunk,this._index++)&&this.push(chunk),callback()});return Filter.prototype._index=0,Filter}function objCtor(options,fn){return"function"==typeof options&&(fn=options,options={}),options=xtend({objectMode:!0,highWaterMark:16},options),ctor(options,fn)}function make(options,fn){return ctor(options,fn)()}function obj(options,fn){return"function"==typeof options&&(fn=options,options={}),options=xtend({objectMode:!0,highWaterMark:16},options),make(options,fn)}module.exports=make,module.exports.ctor=ctor,module.exports.objCtor=objCtor,module.exports.obj=obj;var through2=__webpack_require__(300),xtend=__webpack_require__(17)},function(module,exports,__webpack_require__){(function(process){function Duplex(options){return this instanceof Duplex?(Readable.call(this,options),Writable.call(this,options),options&&options.readable===!1&&(this.readable=!1),options&&options.writable===!1&&(this.writable=!1),this.allowHalfOpen=!0,options&&options.allowHalfOpen===!1&&(this.allowHalfOpen=!1),void this.once("end",onend)):new Duplex(options)}function onend(){this.allowHalfOpen||this._writableState.ended||process.nextTick(this.end.bind(this))}function forEach(xs,f){for(var i=0,l=xs.length;l>i;i++)f(xs[i],i)}module.exports=Duplex;var objectKeys=Object.keys||function(obj){var keys=[];for(var key in obj)keys.push(key);return keys},util=__webpack_require__(9);util.inherits=__webpack_require__(4);var Readable=__webpack_require__(301),Writable=__webpack_require__(303);util.inherits(Duplex,Readable),forEach(objectKeys(Writable.prototype),function(method){Duplex.prototype[method]||(Duplex.prototype[method]=Writable.prototype[method])})}).call(exports,__webpack_require__(2))},function(module,exports,__webpack_require__){function Url(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}function urlParse(url,parseQueryString,slashesDenoteHost){if(url&&isObject(url)&&url instanceof Url)return url;var u=new Url;return u.parse(url,parseQueryString,slashesDenoteHost),u}function urlFormat(obj){return isString(obj)&&(obj=urlParse(obj)),obj instanceof Url?obj.format():Url.prototype.format.call(obj)}function urlResolve(source,relative){return urlParse(source,!1,!0).resolve(relative)}function urlResolveObject(source,relative){return source?urlParse(source,!1,!0).resolveObject(relative):relative}function isString(arg){return"string"==typeof arg}function isObject(arg){return"object"==typeof arg&&null!==arg}function isNull(arg){return null===arg}function isNullOrUndefined(arg){return null==arg}var punycode=__webpack_require__(308);exports.parse=urlParse,exports.resolve=urlResolve,exports.resolveObject=urlResolveObject,exports.format=urlFormat,exports.Url=Url;var protocolPattern=/^([a-z0-9.+-]+:)/i,portPattern=/:[0-9]*$/,delims=["<",">",'"',"`"," ","\r","\n"," "],unwise=["{","}","|","\\","^","`"].concat(delims),autoEscape=["'"].concat(unwise),nonHostChars=["%","/","?",";","#"].concat(autoEscape),hostEndingChars=["/","?","#"],hostnameMaxLen=255,hostnamePartPattern=/^[a-z0-9A-Z_-]{0,63}$/,hostnamePartStart=/^([a-z0-9A-Z_-]{0,63})(.*)$/,unsafeProtocol={javascript:!0,"javascript:":!0},hostlessProtocol={javascript:!0,"javascript:":!0},slashedProtocol={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},querystring=__webpack_require__(278);Url.prototype.parse=function(url,parseQueryString,slashesDenoteHost){if(!isString(url))throw new TypeError("Parameter 'url' must be a string, not "+typeof url);var rest=url;rest=rest.trim();var proto=protocolPattern.exec(rest);if(proto){proto=proto[0];var lowerProto=proto.toLowerCase();this.protocol=lowerProto,rest=rest.substr(proto.length)}if(slashesDenoteHost||proto||rest.match(/^\/\/[^@\/]+@[^@\/]+/)){var slashes="//"===rest.substr(0,2);!slashes||proto&&hostlessProtocol[proto]||(rest=rest.substr(2),this.slashes=!0)}if(!hostlessProtocol[proto]&&(slashes||proto&&!slashedProtocol[proto])){for(var hostEnd=-1,i=0;ihec)&&(hostEnd=hec)}var auth,atSign;atSign=-1===hostEnd?rest.lastIndexOf("@"):rest.lastIndexOf("@",hostEnd),-1!==atSign&&(auth=rest.slice(0,atSign),rest=rest.slice(atSign+1),this.auth=decodeURIComponent(auth)),hostEnd=-1;for(var i=0;ihec)&&(hostEnd=hec)}-1===hostEnd&&(hostEnd=rest.length),this.host=rest.slice(0,hostEnd),rest=rest.slice(hostEnd),this.parseHost(),this.hostname=this.hostname||"";var ipv6Hostname="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!ipv6Hostname)for(var hostparts=this.hostname.split(/\./),i=0,l=hostparts.length;l>i;i++){var part=hostparts[i];if(part&&!part.match(hostnamePartPattern)){for(var newpart="",j=0,k=part.length;k>j;j++)newpart+=part.charCodeAt(j)>127?"x":part[j];if(!newpart.match(hostnamePartPattern)){var validParts=hostparts.slice(0,i),notHost=hostparts.slice(i+1),bit=part.match(hostnamePartStart);bit&&(validParts.push(bit[1]),notHost.unshift(bit[2])),notHost.length&&(rest="/"+notHost.join(".")+rest),this.hostname=validParts.join(".");break}}}if(this.hostname.length>hostnameMaxLen?this.hostname="":this.hostname=this.hostname.toLowerCase(),!ipv6Hostname){for(var domainArray=this.hostname.split("."),newOut=[],i=0;ii;i++){var ae=autoEscape[i],esc=encodeURIComponent(ae);esc===ae&&(esc=escape(ae)),rest=rest.split(ae).join(esc)}var hash=rest.indexOf("#");-1!==hash&&(this.hash=rest.substr(hash),rest=rest.slice(0,hash));var qm=rest.indexOf("?");if(-1!==qm?(this.search=rest.substr(qm),this.query=rest.substr(qm+1),parseQueryString&&(this.query=querystring.parse(this.query)),rest=rest.slice(0,qm)):parseQueryString&&(this.search="",this.query={}),rest&&(this.pathname=rest),slashedProtocol[lowerProto]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var p=this.pathname||"",s=this.search||"";this.path=p+s}return this.href=this.format(),this},Url.prototype.format=function(){var auth=this.auth||"";auth&&(auth=encodeURIComponent(auth),auth=auth.replace(/%3A/i,":"),auth+="@");var protocol=this.protocol||"",pathname=this.pathname||"",hash=this.hash||"",host=!1,query="";this.host?host=auth+this.host:this.hostname&&(host=auth+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(host+=":"+this.port)),this.query&&isObject(this.query)&&Object.keys(this.query).length&&(query=querystring.stringify(this.query));var search=this.search||query&&"?"+query||"";return protocol&&":"!==protocol.substr(-1)&&(protocol+=":"),this.slashes||(!protocol||slashedProtocol[protocol])&&host!==!1?(host="//"+(host||""),pathname&&"/"!==pathname.charAt(0)&&(pathname="/"+pathname)):host||(host=""),hash&&"#"!==hash.charAt(0)&&(hash="#"+hash),search&&"?"!==search.charAt(0)&&(search="?"+search),pathname=pathname.replace(/[?#]/g,function(match){return encodeURIComponent(match)}),search=search.replace("#","%23"),protocol+host+pathname+search+hash},Url.prototype.resolve=function(relative){return this.resolveObject(urlParse(relative,!1,!0)).format()},Url.prototype.resolveObject=function(relative){if(isString(relative)){var rel=new Url;rel.parse(relative,!1,!0),relative=rel}var result=new Url;if(Object.keys(this).forEach(function(k){result[k]=this[k]},this),result.hash=relative.hash,""===relative.href)return result.href=result.format(),result;if(relative.slashes&&!relative.protocol)return Object.keys(relative).forEach(function(k){"protocol"!==k&&(result[k]=relative[k])}),slashedProtocol[result.protocol]&&result.hostname&&!result.pathname&&(result.path=result.pathname="/"),result.href=result.format(),result;if(relative.protocol&&relative.protocol!==result.protocol){if(!slashedProtocol[relative.protocol])return Object.keys(relative).forEach(function(k){result[k]=relative[k]}),result.href=result.format(),result;if(result.protocol=relative.protocol,relative.host||hostlessProtocol[relative.protocol])result.pathname=relative.pathname;else{for(var relPath=(relative.pathname||"").split("/");relPath.length&&!(relative.host=relPath.shift()););relative.host||(relative.host=""),relative.hostname||(relative.hostname=""),""!==relPath[0]&&relPath.unshift(""),relPath.length<2&&relPath.unshift(""),result.pathname=relPath.join("/")}if(result.search=relative.search,result.query=relative.query,result.host=relative.host||"",result.auth=relative.auth,result.hostname=relative.hostname||relative.host,result.port=relative.port,result.pathname||result.search){var p=result.pathname||"",s=result.search||"";result.path=p+s}return result.slashes=result.slashes||relative.slashes,result.href=result.format(),result}var isSourceAbs=result.pathname&&"/"===result.pathname.charAt(0),isRelAbs=relative.host||relative.pathname&&"/"===relative.pathname.charAt(0),mustEndAbs=isRelAbs||isSourceAbs||result.host&&relative.pathname,removeAllDots=mustEndAbs,srcPath=result.pathname&&result.pathname.split("/")||[],relPath=relative.pathname&&relative.pathname.split("/")||[],psychotic=result.protocol&&!slashedProtocol[result.protocol];if(psychotic&&(result.hostname="",result.port=null,result.host&&(""===srcPath[0]?srcPath[0]=result.host:srcPath.unshift(result.host)),result.host="",relative.protocol&&(relative.hostname=null,relative.port=null,relative.host&&(""===relPath[0]?relPath[0]=relative.host:relPath.unshift(relative.host)),relative.host=null),mustEndAbs=mustEndAbs&&(""===relPath[0]||""===srcPath[0])),isRelAbs)result.host=relative.host||""===relative.host?relative.host:result.host,result.hostname=relative.hostname||""===relative.hostname?relative.hostname:result.hostname,result.search=relative.search,result.query=relative.query,srcPath=relPath;else if(relPath.length)srcPath||(srcPath=[]),srcPath.pop(),srcPath=srcPath.concat(relPath),result.search=relative.search,result.query=relative.query;else if(!isNullOrUndefined(relative.search)){if(psychotic){result.hostname=result.host=srcPath.shift();var authInHost=result.host&&result.host.indexOf("@")>0?result.host.split("@"):!1;authInHost&&(result.auth=authInHost.shift(),result.host=result.hostname=authInHost.shift())}return result.search=relative.search,result.query=relative.query,isNull(result.pathname)&&isNull(result.search)||(result.path=(result.pathname?result.pathname:"")+(result.search?result.search:"")),result.href=result.format(),result}if(!srcPath.length)return result.pathname=null,result.search?result.path="/"+result.search:result.path=null,result.href=result.format(),result;for(var last=srcPath.slice(-1)[0],hasTrailingSlash=(result.host||relative.host)&&("."===last||".."===last)||""===last,up=0,i=srcPath.length;i>=0;i--)last=srcPath[i],"."==last?srcPath.splice(i,1):".."===last?(srcPath.splice(i,1),up++):up&&(srcPath.splice(i,1),up--);if(!mustEndAbs&&!removeAllDots)for(;up--;up)srcPath.unshift("..");!mustEndAbs||""===srcPath[0]||srcPath[0]&&"/"===srcPath[0].charAt(0)||srcPath.unshift(""),hasTrailingSlash&&"/"!==srcPath.join("/").substr(-1)&&srcPath.push("");var isAbsolute=""===srcPath[0]||srcPath[0]&&"/"===srcPath[0].charAt(0);if(psychotic){result.hostname=result.host=isAbsolute?"":srcPath.length?srcPath.shift():"";var authInHost=result.host&&result.host.indexOf("@")>0?result.host.split("@"):!1;authInHost&&(result.auth=authInHost.shift(),result.host=result.hostname=authInHost.shift())}return mustEndAbs=mustEndAbs||result.host&&srcPath.length,mustEndAbs&&!isAbsolute&&srcPath.unshift(""),srcPath.length?result.pathname=srcPath.join("/"):(result.pathname=null,result.path=null),isNull(result.pathname)&&isNull(result.search)||(result.path=(result.pathname?result.pathname:"")+(result.search?result.search:"")),result.auth=relative.auth||result.auth,result.slashes=result.slashes||relative.slashes,result.href=result.format(),result},Url.prototype.parseHost=function(){var host=this.host,port=portPattern.exec(host);port&&(port=port[0],":"!==port&&(this.port=port.substr(1)),host=host.substr(0,host.length-port.length)),host&&(this.hostname=host)}},function(module,exports,__webpack_require__){(function(process){"use strict";function booleanOrFunc(v,file){return"boolean"!=typeof v&&"function"!=typeof v?null:"boolean"==typeof v?v:v(file)}function stringOrFunc(v,file){return"string"!=typeof v&&"function"!=typeof v?null:"string"==typeof v?v:v(file)}function prepareWrite(outFolder,file,opt,cb){var options=assign({cwd:process.cwd(),mode:file.stat?file.stat.mode:null,dirMode:null,overwrite:!0},opt),overwrite=booleanOrFunc(options.overwrite,file);options.flag=overwrite?"w":"wx";var cwd=path.resolve(options.cwd),outFolderPath=stringOrFunc(outFolder,file);if(!outFolderPath)throw new Error("Invalid output folder");var basePath=options.base?stringOrFunc(options.base,file):path.resolve(cwd,outFolderPath);if(!basePath)throw new Error("Invalid base option");var writePath=path.resolve(basePath,file.relative),writeFolder=path.dirname(writePath);file.stat=file.stat||new fs.Stats,file.stat.mode=options.mode,file.flag=options.flag,file.cwd=cwd,file.base=basePath,file.path=writePath,mkdirp(writeFolder,options.dirMode,function(err){return err?cb(err):void cb(null,writePath)})}var assign=__webpack_require__(97),path=__webpack_require__(5),mkdirp=__webpack_require__(94),fs=__webpack_require__(process.browser?6:13);module.exports=prepareWrite}).call(exports,__webpack_require__(2))},function(module,exports,__webpack_require__){(function(process){"use strict";function streamFile(file,opt,cb){file.contents=fs.createReadStream(file.path),opt.stripBOM&&(file.contents=file.contents.pipe(stripBom())),cb(null,file)}var fs=__webpack_require__(process.browser?6:13),stripBom=__webpack_require__(299);module.exports=streamFile}).call(exports,__webpack_require__(2))},function(module,exports){function randomString(){return Math.random().toString(36).slice(2)+Math.random().toString(36).slice(2)+Math.random().toString(36).slice(2)+Math.random().toString(36).slice(2)}function cleanPath(path,base){return path?base?("/"!=base[base.length-1]&&(base+="/"),path=path.replace(base,""),path=path.replace(/[\/]+/g,"/")):path:""}var x=module.exports={};x.randomString=randomString,x.cleanPath=cleanPath},function(module,exports,__webpack_require__){var Stream=__webpack_require__(3).Stream;module.exports=function(o){return!!o&&o instanceof Stream}},function(module,exports){function wrappy(fn,cb){function wrapper(){for(var args=new Array(arguments.length),i=0;ii;i++)arr[i]=ele;return arr}},function(module,exports,__webpack_require__){function PassThrough(options){return this instanceof PassThrough?void Transform.call(this,options):new PassThrough(options)}module.exports=PassThrough;var Transform=__webpack_require__(62),util=__webpack_require__(9);util.inherits=__webpack_require__(4),util.inherits(PassThrough,Transform),PassThrough.prototype._transform=function(chunk,encoding,cb){cb(null,chunk)}},function(module,exports,__webpack_require__){(function(process){function ReadableState(options,stream){var Duplex=__webpack_require__(16);options=options||{};var hwm=options.highWaterMark,defaultHwm=options.objectMode?16:16384;this.highWaterMark=hwm||0===hwm?hwm:defaultHwm,this.highWaterMark=~~this.highWaterMark,this.buffer=[],this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.objectMode=!!options.objectMode,stream instanceof Duplex&&(this.objectMode=this.objectMode||!!options.readableObjectMode),this.defaultEncoding=options.defaultEncoding||"utf8",this.ranOut=!1,this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,options.encoding&&(StringDecoder||(StringDecoder=__webpack_require__(23).StringDecoder),this.decoder=new StringDecoder(options.encoding),this.encoding=options.encoding)}function Readable(options){__webpack_require__(16);return this instanceof Readable?(this._readableState=new ReadableState(options,this),this.readable=!0,void Stream.call(this)):new Readable(options)}function readableAddChunk(stream,state,chunk,encoding,addToFront){var er=chunkInvalid(state,chunk);if(er)stream.emit("error",er);else if(util.isNullOrUndefined(chunk))state.reading=!1,state.ended||onEofChunk(stream,state);else if(state.objectMode||chunk&&chunk.length>0)if(state.ended&&!addToFront){var e=new Error("stream.push() after EOF");stream.emit("error",e)}else if(state.endEmitted&&addToFront){var e=new Error("stream.unshift() after end event");stream.emit("error",e)}else!state.decoder||addToFront||encoding||(chunk=state.decoder.write(chunk)),addToFront||(state.reading=!1),state.flowing&&0===state.length&&!state.sync?(stream.emit("data",chunk),stream.read(0)):(state.length+=state.objectMode?1:chunk.length,addToFront?state.buffer.unshift(chunk):state.buffer.push(chunk),state.needReadable&&emitReadable(stream)),maybeReadMore(stream,state);else addToFront||(state.reading=!1);return needMoreData(state)}function needMoreData(state){return!state.ended&&(state.needReadable||state.length=MAX_HWM)n=MAX_HWM;else{n--;for(var p=1;32>p;p<<=1)n|=n>>p;n++}return n}function howMuchToRead(n,state){return 0===state.length&&state.ended?0:state.objectMode?0===n?0:1:isNaN(n)||util.isNull(n)?state.flowing&&state.buffer.length?state.buffer[0].length:state.length:0>=n?0:(n>state.highWaterMark&&(state.highWaterMark=roundUpToNextPowerOf2(n)),n>state.length?state.ended?state.length:(state.needReadable=!0,0):n)}function chunkInvalid(state,chunk){var er=null;return util.isBuffer(chunk)||util.isString(chunk)||util.isNullOrUndefined(chunk)||state.objectMode||(er=new TypeError("Invalid non-string/buffer chunk")),er}function onEofChunk(stream,state){if(state.decoder&&!state.ended){var chunk=state.decoder.end();chunk&&chunk.length&&(state.buffer.push(chunk),state.length+=state.objectMode?1:chunk.length)}state.ended=!0,emitReadable(stream)}function emitReadable(stream){var state=stream._readableState;state.needReadable=!1,state.emittedReadable||(debug("emitReadable",state.flowing),state.emittedReadable=!0,state.sync?process.nextTick(function(){emitReadable_(stream)}):emitReadable_(stream))}function emitReadable_(stream){debug("emit readable"),stream.emit("readable"),flow(stream)}function maybeReadMore(stream,state){state.readingMore||(state.readingMore=!0,process.nextTick(function(){maybeReadMore_(stream,state)}))}function maybeReadMore_(stream,state){for(var len=state.length;!state.reading&&!state.flowing&&!state.ended&&state.length=length)ret=stringMode?list.join(""):Buffer.concat(list,length),list.length=0;else if(ni&&n>c;i++){var buf=list[0],cpy=Math.min(n-c,buf.length);stringMode?ret+=buf.slice(0,cpy):buf.copy(ret,c,0,cpy),cpy0)throw new Error("endReadable called on non-empty stream");state.endEmitted||(state.ended=!0,process.nextTick(function(){state.endEmitted||0!==state.length||(state.endEmitted=!0,stream.readable=!1,stream.emit("end"))}))}function forEach(xs,f){for(var i=0,l=xs.length;l>i;i++)f(xs[i],i)}function indexOf(xs,x){for(var i=0,l=xs.length;l>i;i++)if(xs[i]===x)return i;return-1}module.exports=Readable;var isArray=__webpack_require__(40),Buffer=__webpack_require__(1).Buffer;Readable.ReadableState=ReadableState;var EE=__webpack_require__(15).EventEmitter;EE.listenerCount||(EE.listenerCount=function(emitter,type){return emitter.listeners(type).length});var Stream=__webpack_require__(3),util=__webpack_require__(9);util.inherits=__webpack_require__(4);var StringDecoder,debug=__webpack_require__(337);debug=debug&&debug.debuglog?debug.debuglog("stream"):function(){},util.inherits(Readable,Stream),Readable.prototype.push=function(chunk,encoding){var state=this._readableState;return util.isString(chunk)&&!state.objectMode&&(encoding=encoding||state.defaultEncoding,encoding!==state.encoding&&(chunk=new Buffer(chunk,encoding),encoding="")),readableAddChunk(this,state,chunk,encoding,!1)},Readable.prototype.unshift=function(chunk){var state=this._readableState;return readableAddChunk(this,state,chunk,"",!0)},Readable.prototype.setEncoding=function(enc){return StringDecoder||(StringDecoder=__webpack_require__(23).StringDecoder),this._readableState.decoder=new StringDecoder(enc),this._readableState.encoding=enc,this};var MAX_HWM=8388608;Readable.prototype.read=function(n){debug("read",n);var state=this._readableState,nOrig=n;if((!util.isNumber(n)||n>0)&&(state.emittedReadable=!1),0===n&&state.needReadable&&(state.length>=state.highWaterMark||state.ended))return debug("read: emitReadable",state.length,state.ended),0===state.length&&state.ended?endReadable(this):emitReadable(this),null;if(n=howMuchToRead(n,state),0===n&&state.ended)return 0===state.length&&endReadable(this),null;var doRead=state.needReadable;debug("need readable",doRead),(0===state.length||state.length-n0?fromList(n,state):null,util.isNull(ret)&&(state.needReadable=!0,n=0),state.length-=n,0!==state.length||state.ended||(state.needReadable=!0),nOrig!==n&&state.ended&&0===state.length&&endReadable(this),util.isNull(ret)||this.emit("data",ret),ret},Readable.prototype._read=function(n){this.emit("error",new Error("not implemented"))},Readable.prototype.pipe=function(dest,pipeOpts){function onunpipe(readable){debug("onunpipe"),readable===src&&cleanup()}function onend(){debug("onend"),dest.end()}function cleanup(){debug("cleanup"),dest.removeListener("close",onclose),dest.removeListener("finish",onfinish),dest.removeListener("drain",ondrain),dest.removeListener("error",onerror),dest.removeListener("unpipe",onunpipe),src.removeListener("end",onend),src.removeListener("end",cleanup),src.removeListener("data",ondata),!state.awaitDrain||dest._writableState&&!dest._writableState.needDrain||ondrain()}function ondata(chunk){debug("ondata");var ret=dest.write(chunk);!1===ret&&(debug("false write response, pause",src._readableState.awaitDrain),src._readableState.awaitDrain++,src.pause())}function onerror(er){debug("onerror",er),unpipe(),dest.removeListener("error",onerror),0===EE.listenerCount(dest,"error")&&dest.emit("error",er)}function onclose(){dest.removeListener("finish",onfinish),unpipe()}function onfinish(){debug("onfinish"),dest.removeListener("close",onclose),unpipe()}function unpipe(){debug("unpipe"),src.unpipe(dest)}var src=this,state=this._readableState;switch(state.pipesCount){case 0:state.pipes=dest;break;case 1:state.pipes=[state.pipes,dest];break;default:state.pipes.push(dest)}state.pipesCount+=1,debug("pipe count=%d opts=%j",state.pipesCount,pipeOpts);var doEnd=(!pipeOpts||pipeOpts.end!==!1)&&dest!==process.stdout&&dest!==process.stderr,endFn=doEnd?onend:cleanup;state.endEmitted?process.nextTick(endFn):src.once("end",endFn),dest.on("unpipe",onunpipe);var ondrain=pipeOnDrain(src);return dest.on("drain",ondrain),src.on("data",ondata),dest._events&&dest._events.error?isArray(dest._events.error)?dest._events.error.unshift(onerror):dest._events.error=[onerror,dest._events.error]:dest.on("error",onerror),dest.once("close",onclose),dest.once("finish",onfinish),dest.emit("pipe",src),state.flowing||(debug("pipe resume"),src.resume()),dest},Readable.prototype.unpipe=function(dest){var state=this._readableState;if(0===state.pipesCount)return this;if(1===state.pipesCount)return dest&&dest!==state.pipes?this:(dest||(dest=state.pipes),state.pipes=null,state.pipesCount=0,state.flowing=!1,dest&&dest.emit("unpipe",this),this);if(!dest){var dests=state.pipes,len=state.pipesCount;state.pipes=null,state.pipesCount=0,state.flowing=!1;for(var i=0;len>i;i++)dests[i].emit("unpipe",this);return this}var i=indexOf(state.pipes,dest);return-1===i?this:(state.pipes.splice(i,1),state.pipesCount-=1,1===state.pipesCount&&(state.pipes=state.pipes[0]),dest.emit("unpipe",this),this)},Readable.prototype.on=function(ev,fn){var res=Stream.prototype.on.call(this,ev,fn);if("data"===ev&&!1!==this._readableState.flowing&&this.resume(),"readable"===ev&&this.readable){var state=this._readableState;if(!state.readableListening)if(state.readableListening=!0,state.emittedReadable=!1,state.needReadable=!0,state.reading)state.length&&emitReadable(this,state);else{var self=this;process.nextTick(function(){debug("readable nexttick read 0"),self.read(0)})}}return res},Readable.prototype.addListener=Readable.prototype.on,Readable.prototype.resume=function(){var state=this._readableState;return state.flowing||(debug("resume"),state.flowing=!0,state.reading||(debug("resume read 0"),this.read(0)),resume(this,state)),this},Readable.prototype.pause=function(){return debug("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(debug("pause"),this._readableState.flowing=!1,this.emit("pause")),this},Readable.prototype.wrap=function(stream){var state=this._readableState,paused=!1,self=this;stream.on("end",function(){if(debug("wrapped end"),state.decoder&&!state.ended){var chunk=state.decoder.end();chunk&&chunk.length&&self.push(chunk)}self.push(null)}),stream.on("data",function(chunk){if(debug("wrapped data"),state.decoder&&(chunk=state.decoder.write(chunk)),chunk&&(state.objectMode||chunk.length)){var ret=self.push(chunk);ret||(paused=!0,stream.pause())}});for(var i in stream)util.isFunction(stream[i])&&util.isUndefined(this[i])&&(this[i]=function(method){return function(){return stream[method].apply(stream,arguments)}}(i));var events=["error","close","destroy","pause","resume"];return forEach(events,function(ev){stream.on(ev,self.emit.bind(self,ev))}),self._read=function(n){debug("wrapped _read",n),paused&&(paused=!1,stream.resume())},self},Readable._fromList=fromList}).call(exports,__webpack_require__(2))},function(module,exports,__webpack_require__){(function(global){var ClientRequest=__webpack_require__(297),extend=__webpack_require__(17),statusCodes=__webpack_require__(163),url=__webpack_require__(110),http=exports;http.request=function(opts,cb){opts="string"==typeof opts?url.parse(opts):extend(opts);var defaultProtocol=-1===global.location.protocol.search(/^https?:$/)?"http:":"",protocol=opts.protocol||defaultProtocol,host=opts.hostname||opts.host,port=opts.port,path=opts.path||"/";host&&-1!==host.indexOf(":")&&(host="["+host+"]"),opts.url=(host?protocol+"//"+host:"")+(port?":"+port:"")+path,opts.method=(opts.method||"GET").toUpperCase(),opts.headers=opts.headers||{};var req=new ClientRequest(opts);return cb&&req.on("response",cb),req},http.get=function(opts,cb){var req=http.request(opts,cb);return req.end(),req},http.Agent=function(){},http.Agent.defaultMaxSockets=4,http.STATUS_CODES=statusCodes,http.METHODS=["CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","REPORT","SEARCH","SUBSCRIBE","TRACE","UNLOCK","UNSUBSCRIBE"]}).call(exports,function(){return this}())},function(module,exports){(function(global){function checkTypeSupport(type){try{return xhr.responseType=type,xhr.responseType===type}catch(e){}return!1}function isFunction(value){return"function"==typeof value}exports.fetch=isFunction(global.fetch)&&isFunction(global.ReadableByteStream),exports.blobConstructor=!1;try{new Blob([new ArrayBuffer(1)]),exports.blobConstructor=!0}catch(e){}var xhr=new global.XMLHttpRequest;xhr.open("GET",global.location.host?"/":"https://example.com");var haveArrayBuffer="undefined"!=typeof global.ArrayBuffer,haveSlice=haveArrayBuffer&&isFunction(global.ArrayBuffer.prototype.slice);exports.arraybuffer=haveArrayBuffer&&checkTypeSupport("arraybuffer"),exports.msstream=!exports.fetch&&haveSlice&&checkTypeSupport("ms-stream"),exports.mozchunkedarraybuffer=!exports.fetch&&haveArrayBuffer&&checkTypeSupport("moz-chunked-arraybuffer"),exports.overrideMimeType=isFunction(xhr.overrideMimeType),exports.vbArray=isFunction(global.VBArray),xhr=null}).call(exports,function(){return this}())},function(module,exports,__webpack_require__){"use strict";function ctor(options,fn){"function"==typeof options&&(fn=options,options={});var Filter=through2.ctor(options,function(chunk,encoding,callback){return this.options.wantStrings&&(chunk=chunk.toString()),fn.call(this,chunk,this._index++)&&this.push(chunk),callback()});return Filter.prototype._index=0,Filter}function objCtor(options,fn){return"function"==typeof options&&(fn=options,options={}),options=xtend({objectMode:!0,highWaterMark:16},options),ctor(options,fn)}function make(options,fn){return ctor(options,fn)()}function obj(options,fn){return"function"==typeof options&&(fn=options,options={}),options=xtend({objectMode:!0,highWaterMark:16},options),make(options,fn)}module.exports=make,module.exports.ctor=ctor,module.exports.objCtor=objCtor,module.exports.obj=obj;var through2=__webpack_require__(300),xtend=__webpack_require__(17)},function(module,exports,__webpack_require__){(function(process){function Duplex(options){return this instanceof Duplex?(Readable.call(this,options),Writable.call(this,options),options&&options.readable===!1&&(this.readable=!1),options&&options.writable===!1&&(this.writable=!1),this.allowHalfOpen=!0,options&&options.allowHalfOpen===!1&&(this.allowHalfOpen=!1),void this.once("end",onend)):new Duplex(options)}function onend(){this.allowHalfOpen||this._writableState.ended||process.nextTick(this.end.bind(this))}function forEach(xs,f){for(var i=0,l=xs.length;l>i;i++)f(xs[i],i)}module.exports=Duplex;var objectKeys=Object.keys||function(obj){var keys=[];for(var key in obj)keys.push(key);return keys},util=__webpack_require__(9);util.inherits=__webpack_require__(4);var Readable=__webpack_require__(301),Writable=__webpack_require__(303);util.inherits(Duplex,Readable),forEach(objectKeys(Writable.prototype),function(method){Duplex.prototype[method]||(Duplex.prototype[method]=Writable.prototype[method])})}).call(exports,__webpack_require__(2))},function(module,exports,__webpack_require__){function Url(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}function urlParse(url,parseQueryString,slashesDenoteHost){if(url&&isObject(url)&&url instanceof Url)return url;var u=new Url;return u.parse(url,parseQueryString,slashesDenoteHost),u}function urlFormat(obj){return isString(obj)&&(obj=urlParse(obj)),obj instanceof Url?obj.format():Url.prototype.format.call(obj)}function urlResolve(source,relative){return urlParse(source,!1,!0).resolve(relative)}function urlResolveObject(source,relative){return source?urlParse(source,!1,!0).resolveObject(relative):relative}function isString(arg){return"string"==typeof arg}function isObject(arg){return"object"==typeof arg&&null!==arg}function isNull(arg){return null===arg}function isNullOrUndefined(arg){return null==arg}var punycode=__webpack_require__(308);exports.parse=urlParse,exports.resolve=urlResolve,exports.resolveObject=urlResolveObject,exports.format=urlFormat,exports.Url=Url;var protocolPattern=/^([a-z0-9.+-]+:)/i,portPattern=/:[0-9]*$/,delims=["<",">",'"',"`"," ","\r","\n"," "],unwise=["{","}","|","\\","^","`"].concat(delims),autoEscape=["'"].concat(unwise),nonHostChars=["%","/","?",";","#"].concat(autoEscape),hostEndingChars=["/","?","#"],hostnameMaxLen=255,hostnamePartPattern=/^[a-z0-9A-Z_-]{0,63}$/,hostnamePartStart=/^([a-z0-9A-Z_-]{0,63})(.*)$/,unsafeProtocol={javascript:!0,"javascript:":!0},hostlessProtocol={javascript:!0,"javascript:":!0},slashedProtocol={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},querystring=__webpack_require__(278);Url.prototype.parse=function(url,parseQueryString,slashesDenoteHost){if(!isString(url))throw new TypeError("Parameter 'url' must be a string, not "+typeof url);var rest=url;rest=rest.trim();var proto=protocolPattern.exec(rest);if(proto){proto=proto[0];var lowerProto=proto.toLowerCase();this.protocol=lowerProto,rest=rest.substr(proto.length)}if(slashesDenoteHost||proto||rest.match(/^\/\/[^@\/]+@[^@\/]+/)){var slashes="//"===rest.substr(0,2);!slashes||proto&&hostlessProtocol[proto]||(rest=rest.substr(2),this.slashes=!0)}if(!hostlessProtocol[proto]&&(slashes||proto&&!slashedProtocol[proto])){for(var hostEnd=-1,i=0;ihec)&&(hostEnd=hec)}var auth,atSign;atSign=-1===hostEnd?rest.lastIndexOf("@"):rest.lastIndexOf("@",hostEnd),-1!==atSign&&(auth=rest.slice(0,atSign),rest=rest.slice(atSign+1),this.auth=decodeURIComponent(auth)),hostEnd=-1;for(var i=0;ihec)&&(hostEnd=hec)}-1===hostEnd&&(hostEnd=rest.length),this.host=rest.slice(0,hostEnd),rest=rest.slice(hostEnd),this.parseHost(),this.hostname=this.hostname||"";var ipv6Hostname="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!ipv6Hostname)for(var hostparts=this.hostname.split(/\./),i=0,l=hostparts.length;l>i;i++){var part=hostparts[i];if(part&&!part.match(hostnamePartPattern)){for(var newpart="",j=0,k=part.length;k>j;j++)newpart+=part.charCodeAt(j)>127?"x":part[j];if(!newpart.match(hostnamePartPattern)){var validParts=hostparts.slice(0,i),notHost=hostparts.slice(i+1),bit=part.match(hostnamePartStart);bit&&(validParts.push(bit[1]),notHost.unshift(bit[2])),notHost.length&&(rest="/"+notHost.join(".")+rest),this.hostname=validParts.join(".");break}}}if(this.hostname.length>hostnameMaxLen?this.hostname="":this.hostname=this.hostname.toLowerCase(),!ipv6Hostname){for(var domainArray=this.hostname.split("."),newOut=[],i=0;ii;i++){var ae=autoEscape[i],esc=encodeURIComponent(ae);esc===ae&&(esc=escape(ae)),rest=rest.split(ae).join(esc)}var hash=rest.indexOf("#");-1!==hash&&(this.hash=rest.substr(hash),rest=rest.slice(0,hash));var qm=rest.indexOf("?");if(-1!==qm?(this.search=rest.substr(qm),this.query=rest.substr(qm+1),parseQueryString&&(this.query=querystring.parse(this.query)),rest=rest.slice(0,qm)):parseQueryString&&(this.search="",this.query={}),rest&&(this.pathname=rest),slashedProtocol[lowerProto]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var p=this.pathname||"",s=this.search||"";this.path=p+s}return this.href=this.format(),this},Url.prototype.format=function(){var auth=this.auth||"";auth&&(auth=encodeURIComponent(auth),auth=auth.replace(/%3A/i,":"),auth+="@");var protocol=this.protocol||"",pathname=this.pathname||"",hash=this.hash||"",host=!1,query="";this.host?host=auth+this.host:this.hostname&&(host=auth+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(host+=":"+this.port)),this.query&&isObject(this.query)&&Object.keys(this.query).length&&(query=querystring.stringify(this.query));var search=this.search||query&&"?"+query||"";return protocol&&":"!==protocol.substr(-1)&&(protocol+=":"),this.slashes||(!protocol||slashedProtocol[protocol])&&host!==!1?(host="//"+(host||""),pathname&&"/"!==pathname.charAt(0)&&(pathname="/"+pathname)):host||(host=""),hash&&"#"!==hash.charAt(0)&&(hash="#"+hash),search&&"?"!==search.charAt(0)&&(search="?"+search),pathname=pathname.replace(/[?#]/g,function(match){return encodeURIComponent(match)}),search=search.replace("#","%23"),protocol+host+pathname+search+hash},Url.prototype.resolve=function(relative){return this.resolveObject(urlParse(relative,!1,!0)).format()},Url.prototype.resolveObject=function(relative){if(isString(relative)){var rel=new Url;rel.parse(relative,!1,!0),relative=rel}var result=new Url;if(Object.keys(this).forEach(function(k){result[k]=this[k]},this),result.hash=relative.hash,""===relative.href)return result.href=result.format(),result;if(relative.slashes&&!relative.protocol)return Object.keys(relative).forEach(function(k){"protocol"!==k&&(result[k]=relative[k])}),slashedProtocol[result.protocol]&&result.hostname&&!result.pathname&&(result.path=result.pathname="/"),result.href=result.format(),result;if(relative.protocol&&relative.protocol!==result.protocol){if(!slashedProtocol[relative.protocol])return Object.keys(relative).forEach(function(k){result[k]=relative[k]}),result.href=result.format(),result;if(result.protocol=relative.protocol,relative.host||hostlessProtocol[relative.protocol])result.pathname=relative.pathname;else{for(var relPath=(relative.pathname||"").split("/");relPath.length&&!(relative.host=relPath.shift()););relative.host||(relative.host=""),relative.hostname||(relative.hostname=""),""!==relPath[0]&&relPath.unshift(""),relPath.length<2&&relPath.unshift(""),result.pathname=relPath.join("/")}if(result.search=relative.search,result.query=relative.query,result.host=relative.host||"",result.auth=relative.auth,result.hostname=relative.hostname||relative.host,result.port=relative.port,result.pathname||result.search){var p=result.pathname||"",s=result.search||"";result.path=p+s}return result.slashes=result.slashes||relative.slashes,result.href=result.format(),result}var isSourceAbs=result.pathname&&"/"===result.pathname.charAt(0),isRelAbs=relative.host||relative.pathname&&"/"===relative.pathname.charAt(0),mustEndAbs=isRelAbs||isSourceAbs||result.host&&relative.pathname,removeAllDots=mustEndAbs,srcPath=result.pathname&&result.pathname.split("/")||[],relPath=relative.pathname&&relative.pathname.split("/")||[],psychotic=result.protocol&&!slashedProtocol[result.protocol];if(psychotic&&(result.hostname="",result.port=null,result.host&&(""===srcPath[0]?srcPath[0]=result.host:srcPath.unshift(result.host)),result.host="",relative.protocol&&(relative.hostname=null,relative.port=null,relative.host&&(""===relPath[0]?relPath[0]=relative.host:relPath.unshift(relative.host)),relative.host=null),mustEndAbs=mustEndAbs&&(""===relPath[0]||""===srcPath[0])),isRelAbs)result.host=relative.host||""===relative.host?relative.host:result.host,result.hostname=relative.hostname||""===relative.hostname?relative.hostname:result.hostname,result.search=relative.search,result.query=relative.query,srcPath=relPath;else if(relPath.length)srcPath||(srcPath=[]),srcPath.pop(),srcPath=srcPath.concat(relPath),result.search=relative.search,result.query=relative.query;else if(!isNullOrUndefined(relative.search)){if(psychotic){result.hostname=result.host=srcPath.shift();var authInHost=result.host&&result.host.indexOf("@")>0?result.host.split("@"):!1;authInHost&&(result.auth=authInHost.shift(),result.host=result.hostname=authInHost.shift())}return result.search=relative.search,result.query=relative.query,isNull(result.pathname)&&isNull(result.search)||(result.path=(result.pathname?result.pathname:"")+(result.search?result.search:"")),result.href=result.format(),result}if(!srcPath.length)return result.pathname=null,result.search?result.path="/"+result.search:result.path=null,result.href=result.format(),result;for(var last=srcPath.slice(-1)[0],hasTrailingSlash=(result.host||relative.host)&&("."===last||".."===last)||""===last,up=0,i=srcPath.length;i>=0;i--)last=srcPath[i],"."==last?srcPath.splice(i,1):".."===last?(srcPath.splice(i,1),up++):up&&(srcPath.splice(i,1),up--);if(!mustEndAbs&&!removeAllDots)for(;up--;up)srcPath.unshift("..");!mustEndAbs||""===srcPath[0]||srcPath[0]&&"/"===srcPath[0].charAt(0)||srcPath.unshift(""),hasTrailingSlash&&"/"!==srcPath.join("/").substr(-1)&&srcPath.push("");var isAbsolute=""===srcPath[0]||srcPath[0]&&"/"===srcPath[0].charAt(0);if(psychotic){result.hostname=result.host=isAbsolute?"":srcPath.length?srcPath.shift():"";var authInHost=result.host&&result.host.indexOf("@")>0?result.host.split("@"):!1;authInHost&&(result.auth=authInHost.shift(),result.host=result.hostname=authInHost.shift())}return mustEndAbs=mustEndAbs||result.host&&srcPath.length,mustEndAbs&&!isAbsolute&&srcPath.unshift(""),srcPath.length?result.pathname=srcPath.join("/"):(result.pathname=null,result.path=null),isNull(result.pathname)&&isNull(result.search)||(result.path=(result.pathname?result.pathname:"")+(result.search?result.search:"")),result.auth=relative.auth||result.auth,result.slashes=result.slashes||relative.slashes,result.href=result.format(),result},Url.prototype.parseHost=function(){var host=this.host,port=portPattern.exec(host);port&&(port=port[0],":"!==port&&(this.port=port.substr(1)),host=host.substr(0,host.length-port.length)),host&&(this.hostname=host)}},function(module,exports,__webpack_require__){(function(process){"use strict";function booleanOrFunc(v,file){return"boolean"!=typeof v&&"function"!=typeof v?null:"boolean"==typeof v?v:v(file)}function stringOrFunc(v,file){return"string"!=typeof v&&"function"!=typeof v?null:"string"==typeof v?v:v(file)}function prepareWrite(outFolder,file,opt,cb){var options=assign({cwd:process.cwd(),mode:file.stat?file.stat.mode:null,dirMode:null,overwrite:!0},opt),overwrite=booleanOrFunc(options.overwrite,file);options.flag=overwrite?"w":"wx";var cwd=path.resolve(options.cwd),outFolderPath=stringOrFunc(outFolder,file);if(!outFolderPath)throw new Error("Invalid output folder");var basePath=options.base?stringOrFunc(options.base,file):path.resolve(cwd,outFolderPath);if(!basePath)throw new Error("Invalid base option");var writePath=path.resolve(basePath,file.relative),writeFolder=path.dirname(writePath);file.stat=file.stat||new fs.Stats,file.stat.mode=options.mode,file.flag=options.flag,file.cwd=cwd,file.base=basePath,file.path=writePath,mkdirp(writeFolder,options.dirMode,function(err){return err?cb(err):void cb(null,writePath)})}var assign=__webpack_require__(97),path=__webpack_require__(5),mkdirp=__webpack_require__(94),fs=__webpack_require__(process.browser?6:13);module.exports=prepareWrite}).call(exports,__webpack_require__(2))},function(module,exports,__webpack_require__){(function(process){"use strict";function streamFile(file,opt,cb){file.contents=fs.createReadStream(file.path),opt.stripBOM&&(file.contents=file.contents.pipe(stripBom())),cb(null,file)}var fs=__webpack_require__(process.browser?6:13),stripBom=__webpack_require__(299);module.exports=streamFile}).call(exports,__webpack_require__(2))},function(module,exports){function randomString(){return Math.random().toString(36).slice(2)+Math.random().toString(36).slice(2)+Math.random().toString(36).slice(2)+Math.random().toString(36).slice(2)}function cleanPath(path,base){return path?base?("/"!=base[base.length-1]&&(base+="/"),path=path.replace(base,""),path=path.replace(/[\/]+/g,"/")):path:""}var x=module.exports={};x.randomString=randomString,x.cleanPath=cleanPath},function(module,exports,__webpack_require__){var Stream=__webpack_require__(3).Stream;module.exports=function(o){return!!o&&o instanceof Stream}},function(module,exports){function wrappy(fn,cb){function wrapper(){for(var args=new Array(arguments.length),i=0;i * * Copyright (c) 2014 Jon Schlinkert, contributors. @@ -62,13 +62,13 @@ var methods,key,getMethod=function(kind){if(!BUGGY&&kind in proto)return proto[k * Copyright (c) 2014-2015, Jon Schlinkert. * Licensed under the MIT License. */ -"use strict";module.exports=function(arr){if(!Array.isArray(arr))throw new TypeError("array-unique expects an array.");for(var len=arr.length,i=-1;i++=256)return"\\u"+internals.padLeft(""+charCode,4);var hexValue=new Buffer(String.fromCharCode(charCode),"ascii").toString("hex");return"\\x"+internals.padLeft(hexValue,2)},internals.escapeHtmlChar=function(charCode){var namedEscape=internals.namedHtml[charCode];if("undefined"!=typeof namedEscape)return namedEscape;if(charCode>=256)return"&#"+charCode+";";var hexValue=new Buffer(String.fromCharCode(charCode),"ascii").toString("hex");return"&#x"+internals.padLeft(hexValue,2)+";"},internals.padLeft=function(str,len){for(;str.lengthi;++i)(i>=97||i>=65&&90>=i||i>=48&&57>=i||32===i||46===i||44===i||45===i||58===i||95===i)&&(safe[i]=null);return safe}()}).call(exports,__webpack_require__(1).Buffer)},function(module,exports,__webpack_require__){"use strict";var Stringify=__webpack_require__(122),Parse=__webpack_require__(121);module.exports={stringify:Stringify,parse:Parse}},function(module,exports,__webpack_require__){"use strict";function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{"default":obj}}var _keys=__webpack_require__(18),_keys2=_interopRequireDefault(_keys),_create=__webpack_require__(42),_create2=_interopRequireDefault(_create),Utils=__webpack_require__(68),internals={delimiter:"&",depth:5,arrayLimit:20,parameterLimit:1e3,strictNullHandling:!1,plainObjects:!1,allowPrototypes:!1,allowDots:!1};internals.parseValues=function(str,options){for(var obj={},parts=str.split(options.delimiter,options.parameterLimit===1/0?void 0:options.parameterLimit),i=0;i=0&&options.parseArrays&&index<=options.arrayLimit?(obj=[],obj[index]=internals.parseObject(chain,val,options)):obj[cleanRoot]=internals.parseObject(chain,val,options)}return obj},internals.parseKeys=function(givenKey,val,options){if(givenKey){var key=options.allowDots?givenKey.replace(/\.([^\.\[]+)/g,"[$1]"):givenKey,parent=/^([^\[\]]*)/,child=/(\[[^\[\]]*\])/g,segment=parent.exec(key),keys=[];if(segment[1]){if(!options.plainObjects&&Object.prototype.hasOwnProperty(segment[1])&&!options.allowPrototypes)return;keys.push(segment[1])}for(var i=0;null!==(segment=child.exec(key))&&ithis.settings.maxBytes?this.emit("error",Boom.badRequest("Payload content length greater than maximum allowed: "+this.settings.maxBytes)):(this.length=this.length+chunk.length,this.buffers.push(chunk),void next())},internals.Recorder.prototype.collect=function(){var buffer=0===this.buffers.length?new Buffer(0):1===this.buffers.length?this.buffers[0]:Buffer.concat(this.buffers,this.length);return buffer}}).call(exports,__webpack_require__(1).Buffer)},function(module,exports,__webpack_require__){"use strict";var Hoek=__webpack_require__(23),Stream=__webpack_require__(3),Payload=__webpack_require__(70),internals={};module.exports=internals.Tap=function(){Stream.Transform.call(this),this.buffers=[]},Hoek.inherits(internals.Tap,Stream.Transform),internals.Tap.prototype._transform=function(chunk,encoding,next){this.buffers.push(chunk),next(null,chunk)},internals.Tap.prototype.collect=function(){return new Payload(this.buffers)}},function(module,exports,__webpack_require__){"use strict";var Wreck=__webpack_require__(69);module.exports=function(send){return function(files,opts,cb){return"function"==typeof opts&&void 0===cb&&(cb=opts,opts={}),"string"==typeof files&&files.startsWith("http")?Wreck.request("GET",files,null,function(err,res){return err?cb(err):void send("add",null,opts,res,cb)}):send("add",null,opts,files,cb)}}},function(module,exports,__webpack_require__){"use strict";var argCommand=__webpack_require__(10).argCommand;module.exports=function(send){return{get:argCommand(send,"block/get"),stat:argCommand(send,"block/stat"),put:function(file,cb){return Array.isArray(file)?cb(null,new Error("block.put() only accepts 1 file")):send("block/put",null,null,file,cb)}}}},function(module,exports,__webpack_require__){"use strict";var argCommand=__webpack_require__(10).argCommand;module.exports=function(send){return argCommand(send,"cat")}},function(module,exports,__webpack_require__){"use strict";var command=__webpack_require__(10).command;module.exports=function(send){return command(send,"commands")}},function(module,exports,__webpack_require__){"use strict";var argCommand=__webpack_require__(10).argCommand;module.exports=function(send){return{get:argCommand(send,"config"),set:function(key,value,opts,cb){return"function"==typeof opts&&(cb=opts,opts={}),send("config",[key,value],opts,null,cb)},show:function(cb){return send("config/show",null,null,null,!0,cb)},replace:function(file,cb){return send("config/replace",null,null,file,cb)}}}},function(module,exports,__webpack_require__){"use strict";function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{"default":obj}}var _typeof2=__webpack_require__(24),_typeof3=_interopRequireDefault(_typeof2),_promise=__webpack_require__(31),_promise2=_interopRequireDefault(_promise),argCommand=__webpack_require__(10).argCommand;module.exports=function(send){return{findprovs:argCommand(send,"dht/findprovs"),get:function(key,opts,cb){"function"!=typeof opts||cb||(cb=opts,opts=null);var handleResult=function(done,err,res){if(err)return done(err);if(!res)return done(new Error("empty response"));if(0===res.length)return done(new Error("no value returned for key"));if(Array.isArray(res)&&(res=res[0]),5===res.Type)done(null,res.Extra);else{var error=new Error("key was not found (type 6)");done(error)}};if("function"!=typeof cb&&"undefined"!=typeof _promise2["default"]){var _ret=function(){var done=function(err,res){if(err)throw err;return res};return{v:send("dht/get",key,opts).then(function(res){return handleResult(done,null,res)},function(err){return handleResult(done,err)})}}();if("object"===("undefined"==typeof _ret?"undefined":(0,_typeof3["default"])(_ret)))return _ret.v}return send("dht/get",key,opts,null,handleResult.bind(null,cb))},put:function(key,value,opts,cb){return"function"!=typeof opts||cb||(cb=opts,opts=null),send("dht/put",[key,value],opts,null,cb)}}}},function(module,exports,__webpack_require__){"use strict";var command=__webpack_require__(10).command;module.exports=function(send){return{net:command(send,"diag/net"),sys:command(send,"diag/sys")}}},function(module,exports){"use strict";module.exports=function(send){return function(idParam,cb){return"function"==typeof idParam&&(cb=idParam,idParam=null),send("id",idParam,null,null,cb)}}},function(module,exports,__webpack_require__){"use strict";function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{"default":obj}}var _promise=__webpack_require__(31),_promise2=_interopRequireDefault(_promise),ndjson=__webpack_require__(96);module.exports=function(send){return{tail:function(cb){return"function"!=typeof cb&&"undefined"!=typeof _promise2["default"]?send("log/tail",null,{},null,!1).then(function(res){return res.pipe(ndjson.parse())}):send("log/tail",null,{},null,!1,function(err,res){return err?cb(err):void cb(null,res.pipe(ndjson.parse()))})}}}},function(module,exports,__webpack_require__){"use strict";var argCommand=__webpack_require__(10).argCommand;module.exports=function(send){return argCommand(send,"ls")}},function(module,exports){"use strict";module.exports=function(send){return function(ipfs,ipns,cb){"function"==typeof ipfs?(cb=ipfs,ipfs=null):"function"==typeof ipns&&(cb=ipns,ipns=null);var opts={};return ipfs&&(opts.f=ipfs),ipns&&(opts.n=ipns),send("mount",null,opts,null,cb)}}},function(module,exports,__webpack_require__){"use strict";var argCommand=__webpack_require__(10).argCommand;module.exports=function(send){return{publish:argCommand(send,"name/publish"),resolve:argCommand(send,"name/resolve")}}},function(module,exports,__webpack_require__){"use strict";var argCommand=__webpack_require__(10).argCommand;module.exports=function(send){return{get:argCommand(send,"object/get"),put:function(file,encoding,cb){return"function"==typeof encoding?cb(null,new Error("Must specify an object encoding ('json' or 'protobuf')")):send("object/put",encoding,null,file,cb)},data:argCommand(send,"object/data"),links:argCommand(send,"object/links"),stat:argCommand(send,"object/stat"),"new":argCommand(send,"object/new"),patch:function(file,opts,cb){return send("object/patch",[file].concat(opts),null,null,cb)}}}},function(module,exports){"use strict";module.exports=function(send){return{add:function(hash,opts,cb){return"function"==typeof opts&&(cb=opts,opts=null),send("pin/add",hash,opts,null,cb)},remove:function(hash,opts,cb){return"function"==typeof opts&&(cb=opts,opts=null),send("pin/rm",hash,opts,null,cb)},list:function(type,cb){"function"==typeof type&&(cb=type,type=null);var opts=null;return type&&(opts={type:type}),send("pin/ls",null,opts,null,cb)}}}},function(module,exports,__webpack_require__){"use strict";function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{"default":obj}}var _promise=__webpack_require__(31),_promise2=_interopRequireDefault(_promise);module.exports=function(send){return function(id,cb){return"function"!=typeof cb&&"undefined"!=typeof _promise2["default"]?send("ping",id,{n:1},null).then(function(res){return res[1]}):send("ping",id,{n:1},null,function(err,res){return err?cb(err,null):void cb(null,res[1])})}}},function(module,exports,__webpack_require__){"use strict";var cmds=__webpack_require__(10);module.exports=function(send){var refs=cmds.argCommand(send,"refs");return refs.local=cmds.command(send,"refs/local"),refs}},function(module,exports,__webpack_require__){"use strict";var cmds=__webpack_require__(10);module.exports=function(send){return{peers:cmds.command(send,"swarm/peers"),connect:cmds.argCommand(send,"swarm/connect")}}},function(module,exports,__webpack_require__){"use strict";var command=__webpack_require__(10).command;module.exports=function(send){return{apply:command(send,"update"),check:command(send,"update/check"),log:command(send,"update/log")}}},function(module,exports,__webpack_require__){"use strict";var command=__webpack_require__(10).command;module.exports=function(send){return command(send,"version")}},function(module,exports,__webpack_require__){"use strict";var pkg=__webpack_require__(248);exports=module.exports=function(){return{"api-path":"/api/v0/","user-agent":"/node-"+pkg.name+"/"+pkg.version+"/",host:"localhost",port:"5001",protocol:"http"}}},function(module,exports,__webpack_require__){(function(Buffer){"use strict";function getFilesStream(files,opts){if(!files)return null;var adder=new Merge,single=new stream.PassThrough({objectMode:!0});adder.add(single);for(var i=0;i=400||!res.statusCode)&&!function(){var error=new Error("Server responded with "+res.statusCode);Wreck.read(res,{json:!0},function(err,payload){return err?cb(err):(payload&&(error.code=payload.Code,error.message=payload.Message),void cb(error))})}(),stream&&!buffer?cb(null,res):chunkedObjects?isJson?parseChunkedJson(res,cb):Wreck.read(res,null,cb):void Wreck.read(res,{json:isJson},cb)}}function requestAPI(config,path,args,qs,files,buffer,cb){if(qs=qs||{},Array.isArray(path)&&(path=path.join("/")),args&&!Array.isArray(args)&&(args=[args]),args&&(qs.arg=args),files&&!Array.isArray(files)&&(files=[files]),qs.r&&(qs.recursive=qs.r,delete qs.r),!isNode&&qs.recursive&&"add"===path)return cb(new Error("Recursive uploads are not supported in the browser"));qs["stream-channels"]=!0;var stream=void 0;files&&(stream=getFilesStream(files,qs)),delete qs.followSymlinks;var port=config.port?":"+config.port:"",opts={method:files?"POST":"GET",uri:config.protocol+"://"+config.host+port+config["api-path"]+path+"?"+Qs.stringify(qs,{arrayFormat:"repeat"}),headers:{}};if(isNode&&(opts.headers["User-Agent"]=config["user-agent"]),files){if(!stream.boundary)return cb(new Error("No boundary in multipart stream"));opts.headers["Content-Type"]="multipart/form-data; boundary="+stream.boundary,opts.downstreamRes=stream,opts.payload=stream}return Wreck.request(opts.method,opts.uri,opts,onRes(buffer,cb))}var _promise=__webpack_require__(31),_promise2=_interopRequireDefault(_promise),Wreck=__webpack_require__(69),Qs=__webpack_require__(120),ndjson=__webpack_require__(96),getFilesStream=__webpack_require__(145),isNode=!global.window;exports=module.exports=function(config){return function(path,args,qs,files,buffer,cb){return"function"==typeof buffer&&(cb=buffer,buffer=!1),"function"!=typeof cb&&"undefined"!=typeof _promise2["default"]?new _promise2["default"](function(resolve,reject){requestAPI(config,path,args,qs,files,buffer,function(err,res){return err?reject(err):void resolve(res)})}):requestAPI(config,path,args,qs,files,buffer,cb)}}}).call(exports,function(){return this}())},function(module,exports,__webpack_require__){module.exports={"default":__webpack_require__(168),__esModule:!0}},function(module,exports,__webpack_require__){module.exports={"default":__webpack_require__(169),__esModule:!0}},function(module,exports,__webpack_require__){module.exports={"default":__webpack_require__(171),__esModule:!0}},function(module,exports,__webpack_require__){module.exports={"default":__webpack_require__(172),__esModule:!0}},function(module,exports,__webpack_require__){module.exports={"default":__webpack_require__(173),__esModule:!0}},function(module,exports,__webpack_require__){module.exports={"default":__webpack_require__(174),__esModule:!0}},function(module,exports,__webpack_require__){module.exports={"default":__webpack_require__(176),__esModule:!0}},function(module,exports,__webpack_require__){module.exports={"default":__webpack_require__(178),__esModule:!0}},function(module,exports,__webpack_require__){module.exports={"default":__webpack_require__(179),__esModule:!0}},function(module,exports){function balanced(a,b,str){var r=range(a,b,str);return r&&{start:r[0],end:r[1],pre:str.slice(0,r[0]),body:str.slice(r[0]+a.length,r[1]),post:str.slice(r[1]+b.length)}}function range(a,b,str){var begs,beg,left,right,result,ai=str.indexOf(a),bi=str.indexOf(b,ai+1),i=ai;if(ai>=0&&bi>0){for(begs=[],left=str.length;i=0&&!result;)i==ai?(begs.push(i),ai=str.indexOf(a,i+1)):1==begs.length?result=[begs.pop(),bi]:(beg=begs.pop(),left>beg&&(left=beg,right=bi),bi=str.indexOf(b,i+1)),i=bi>ai&&ai>=0?ai:bi;begs.length&&(result=[left,right])}return result}module.exports=balanced,balanced.range=range},function(module,exports,__webpack_require__){var lookup="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";!function(exports){"use strict";function decode(elt){var code=elt.charCodeAt(0);return code===PLUS||code===PLUS_URL_SAFE?62:code===SLASH||code===SLASH_URL_SAFE?63:NUMBER>code?-1:NUMBER+10>code?code-NUMBER+26+26:UPPER+26>code?code-UPPER:LOWER+26>code?code-LOWER+26:void 0}function b64ToByteArray(b64){function push(v){arr[L++]=v}var i,j,l,tmp,placeHolders,arr;if(b64.length%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var len=b64.length;placeHolders="="===b64.charAt(len-2)?2:"="===b64.charAt(len-1)?1:0,arr=new Arr(3*b64.length/4-placeHolders),l=placeHolders>0?b64.length-4:b64.length;var L=0;for(i=0,j=0;l>i;i+=4,j+=3)tmp=decode(b64.charAt(i))<<18|decode(b64.charAt(i+1))<<12|decode(b64.charAt(i+2))<<6|decode(b64.charAt(i+3)),push((16711680&tmp)>>16),push((65280&tmp)>>8),push(255&tmp);return 2===placeHolders?(tmp=decode(b64.charAt(i))<<2|decode(b64.charAt(i+1))>>4,push(255&tmp)):1===placeHolders&&(tmp=decode(b64.charAt(i))<<10|decode(b64.charAt(i+1))<<4|decode(b64.charAt(i+2))>>2,push(tmp>>8&255),push(255&tmp)),arr}function uint8ToBase64(uint8){function encode(num){return lookup.charAt(num)}function tripletToBase64(num){return encode(num>>18&63)+encode(num>>12&63)+encode(num>>6&63)+encode(63&num)}var i,temp,length,extraBytes=uint8.length%3,output="";for(i=0,length=uint8.length-extraBytes;length>i;i+=3)temp=(uint8[i]<<16)+(uint8[i+1]<<8)+uint8[i+2],output+=tripletToBase64(temp);switch(extraBytes){case 1:temp=uint8[uint8.length-1],output+=encode(temp>>2),output+=encode(temp<<4&63),output+="==";break;case 2:temp=(uint8[uint8.length-2]<<8)+uint8[uint8.length-1],output+=encode(temp>>10),output+=encode(temp>>4&63),output+=encode(temp<<2&63),output+="="}return output}var Arr="undefined"!=typeof Uint8Array?Uint8Array:Array,PLUS="+".charCodeAt(0),SLASH="/".charCodeAt(0),NUMBER="0".charCodeAt(0),LOWER="a".charCodeAt(0),UPPER="A".charCodeAt(0),PLUS_URL_SAFE="-".charCodeAt(0),SLASH_URL_SAFE="_".charCodeAt(0);exports.toByteArray=b64ToByteArray,exports.fromByteArray=uint8ToBase64}(exports)},function(module,exports,__webpack_require__){function numeric(str){return parseInt(str,10)==str?parseInt(str,10):str.charCodeAt(0)}function escapeBraces(str){return str.split("\\\\").join(escSlash).split("\\{").join(escOpen).split("\\}").join(escClose).split("\\,").join(escComma).split("\\.").join(escPeriod)}function unescapeBraces(str){return str.split(escSlash).join("\\").split(escOpen).join("{").split(escClose).join("}").split(escComma).join(",").split(escPeriod).join(".")}function parseCommaParts(str){if(!str)return[""];var parts=[],m=balanced("{","}",str);if(!m)return str.split(",");var pre=m.pre,body=m.body,post=m.post,p=pre.split(",");p[p.length-1]+="{"+body+"}";var postParts=parseCommaParts(post);return post.length&&(p[p.length-1]+=postParts.shift(),p.push.apply(p,postParts)),parts.push.apply(parts,p),parts}function expandTop(str){return str?expand(escapeBraces(str),!0).map(unescapeBraces):[]}function embrace(str){return"{"+str+"}"}function isPadded(el){return/^-?0\d/.test(el)}function lte(i,y){return y>=i}function gte(i,y){return i>=y}function expand(str,isTop){var expansions=[],m=balanced("{","}",str);if(!m||/\$$/.test(m.pre))return[str];var isNumericSequence=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(m.body),isAlphaSequence=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(m.body),isSequence=isNumericSequence||isAlphaSequence,isOptions=/^(.*,)+(.+)?$/.test(m.body);if(!isSequence&&!isOptions)return m.post.match(/,.*\}/)?(str=m.pre+"{"+m.body+escClose+m.post,expand(str)):[str];var n;if(isSequence)n=m.body.split(/\.\./);else if(n=parseCommaParts(m.body),1===n.length&&(n=expand(n[0],!1).map(embrace),1===n.length)){var post=m.post.length?expand(m.post,!1):[""];return post.map(function(p){return m.pre+n[0]+p})}var N,pre=m.pre,post=m.post.length?expand(m.post,!1):[""];if(isSequence){var x=numeric(n[0]),y=numeric(n[1]),width=Math.max(n[0].length,n[1].length),incr=3==n.length?Math.abs(numeric(n[2])):1,test=lte,reverse=x>y;reverse&&(incr*=-1,test=gte);var pad=n.some(isPadded);N=[];for(var i=x;test(i,y);i+=incr){var c;if(isAlphaSequence)c=String.fromCharCode(i),"\\"===c&&(c="");else if(c=String(i),pad){var need=width-c.length;if(need>0){var z=new Array(need+1).join("0");c=0>i?"-"+z+c.slice(1):z+c}}N.push(c)}}else N=concatMap(n,function(el){return expand(el,!1)});for(var j=0;j=256)return"\\u"+internals.padLeft(""+charCode,4);var hexValue=new Buffer(String.fromCharCode(charCode),"ascii").toString("hex");return"\\x"+internals.padLeft(hexValue,2)},internals.escapeHtmlChar=function(charCode){var namedEscape=internals.namedHtml[charCode];if("undefined"!=typeof namedEscape)return namedEscape;if(charCode>=256)return"&#"+charCode+";";var hexValue=new Buffer(String.fromCharCode(charCode),"ascii").toString("hex");return"&#x"+internals.padLeft(hexValue,2)+";"},internals.padLeft=function(str,len){for(;str.lengthi;++i)(i>=97||i>=65&&90>=i||i>=48&&57>=i||32===i||46===i||44===i||45===i||58===i||95===i)&&(safe[i]=null);return safe}()}).call(exports,__webpack_require__(1).Buffer)},function(module,exports,__webpack_require__){"use strict";var Stringify=__webpack_require__(122),Parse=__webpack_require__(121);module.exports={stringify:Stringify,parse:Parse}},function(module,exports,__webpack_require__){"use strict";function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{"default":obj}}var _keys=__webpack_require__(18),_keys2=_interopRequireDefault(_keys),_create=__webpack_require__(42),_create2=_interopRequireDefault(_create),Utils=__webpack_require__(68),internals={delimiter:"&",depth:5,arrayLimit:20,parameterLimit:1e3,strictNullHandling:!1,plainObjects:!1,allowPrototypes:!1,allowDots:!1};internals.parseValues=function(str,options){for(var obj={},parts=str.split(options.delimiter,options.parameterLimit===1/0?void 0:options.parameterLimit),i=0;i=0&&options.parseArrays&&index<=options.arrayLimit?(obj=[],obj[index]=internals.parseObject(chain,val,options)):obj[cleanRoot]=internals.parseObject(chain,val,options)}return obj},internals.parseKeys=function(givenKey,val,options){if(givenKey){var key=options.allowDots?givenKey.replace(/\.([^\.\[]+)/g,"[$1]"):givenKey,parent=/^([^\[\]]*)/,child=/(\[[^\[\]]*\])/g,segment=parent.exec(key),keys=[];if(segment[1]){if(!options.plainObjects&&Object.prototype.hasOwnProperty(segment[1])&&!options.allowPrototypes)return;keys.push(segment[1])}for(var i=0;null!==(segment=child.exec(key))&&ithis.settings.maxBytes?this.emit("error",Boom.badRequest("Payload content length greater than maximum allowed: "+this.settings.maxBytes)):(this.length=this.length+chunk.length,this.buffers.push(chunk),void next())},internals.Recorder.prototype.collect=function(){var buffer=0===this.buffers.length?new Buffer(0):1===this.buffers.length?this.buffers[0]:Buffer.concat(this.buffers,this.length);return buffer}}).call(exports,__webpack_require__(1).Buffer)},function(module,exports,__webpack_require__){"use strict";var Hoek=__webpack_require__(24),Stream=__webpack_require__(3),Payload=__webpack_require__(70),internals={};module.exports=internals.Tap=function(){Stream.Transform.call(this),this.buffers=[]},Hoek.inherits(internals.Tap,Stream.Transform),internals.Tap.prototype._transform=function(chunk,encoding,next){this.buffers.push(chunk),next(null,chunk)},internals.Tap.prototype.collect=function(){return new Payload(this.buffers)}},function(module,exports,__webpack_require__){"use strict";var Wreck=__webpack_require__(69);module.exports=function(send){return function(files,opts,cb){return"function"==typeof opts&&void 0===cb&&(cb=opts,opts={}),"string"==typeof files&&files.startsWith("http")?Wreck.request("GET",files,null,function(err,res){return err?cb(err):void send("add",null,opts,res,cb)}):send("add",null,opts,files,cb)}}},function(module,exports,__webpack_require__){"use strict";var argCommand=__webpack_require__(10).argCommand;module.exports=function(send){return{get:argCommand(send,"block/get"),stat:argCommand(send,"block/stat"),put:function(file,cb){return Array.isArray(file)?cb(null,new Error("block.put() only accepts 1 file")):send("block/put",null,null,file,cb)}}}},function(module,exports,__webpack_require__){"use strict";var argCommand=__webpack_require__(10).argCommand;module.exports=function(send){return argCommand(send,"cat")}},function(module,exports,__webpack_require__){"use strict";var command=__webpack_require__(10).command;module.exports=function(send){return command(send,"commands")}},function(module,exports,__webpack_require__){"use strict";var argCommand=__webpack_require__(10).argCommand;module.exports=function(send){return{get:argCommand(send,"config"),set:function(key,value,opts,cb){return"function"==typeof opts&&(cb=opts,opts={}),send("config",[key,value],opts,null,cb)},show:function(cb){return send("config/show",null,null,null,!0,cb)},replace:function(file,cb){return send("config/replace",null,null,file,cb)}}}},function(module,exports,__webpack_require__){"use strict";function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{"default":obj}}var _typeof2=__webpack_require__(19),_typeof3=_interopRequireDefault(_typeof2),_promise=__webpack_require__(31),_promise2=_interopRequireDefault(_promise),argCommand=__webpack_require__(10).argCommand;module.exports=function(send){return{findprovs:argCommand(send,"dht/findprovs"),get:function(key,opts,cb){"function"!=typeof opts||cb||(cb=opts,opts=null);var handleResult=function(done,err,res){if(err)return done(err);if(!res)return done(new Error("empty response"));if(0===res.length)return done(new Error("no value returned for key"));if(Array.isArray(res)&&(res=res[0]),5===res.Type)done(null,res.Extra);else{var error=new Error("key was not found (type 6)");done(error)}};if("function"!=typeof cb&&"undefined"!=typeof _promise2["default"]){var _ret=function(){var done=function(err,res){if(err)throw err;return res};return{v:send("dht/get",key,opts).then(function(res){return handleResult(done,null,res)},function(err){return handleResult(done,err)})}}();if("object"===("undefined"==typeof _ret?"undefined":(0,_typeof3["default"])(_ret)))return _ret.v}return send("dht/get",key,opts,null,handleResult.bind(null,cb))},put:function(key,value,opts,cb){return"function"!=typeof opts||cb||(cb=opts,opts=null),send("dht/put",[key,value],opts,null,cb)}}}},function(module,exports,__webpack_require__){"use strict";var command=__webpack_require__(10).command;module.exports=function(send){return{net:command(send,"diag/net"),sys:command(send,"diag/sys")}}},function(module,exports){"use strict";module.exports=function(send){return function(idParam,cb){return"function"==typeof idParam&&(cb=idParam,idParam=null),send("id",idParam,null,null,cb)}}},function(module,exports,__webpack_require__){"use strict";function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{"default":obj}}var _promise=__webpack_require__(31),_promise2=_interopRequireDefault(_promise),ndjson=__webpack_require__(96);module.exports=function(send){return{tail:function(cb){return"function"!=typeof cb&&"undefined"!=typeof _promise2["default"]?send("log/tail",null,{},null,!1).then(function(res){return res.pipe(ndjson.parse())}):send("log/tail",null,{},null,!1,function(err,res){return err?cb(err):void cb(null,res.pipe(ndjson.parse()))})}}}},function(module,exports,__webpack_require__){"use strict";var argCommand=__webpack_require__(10).argCommand;module.exports=function(send){return argCommand(send,"ls")}},function(module,exports){"use strict";module.exports=function(send){return function(ipfs,ipns,cb){"function"==typeof ipfs?(cb=ipfs,ipfs=null):"function"==typeof ipns&&(cb=ipns,ipns=null);var opts={};return ipfs&&(opts.f=ipfs),ipns&&(opts.n=ipns),send("mount",null,opts,null,cb)}}},function(module,exports,__webpack_require__){"use strict";var argCommand=__webpack_require__(10).argCommand;module.exports=function(send){return{publish:argCommand(send,"name/publish"),resolve:argCommand(send,"name/resolve")}}},function(module,exports,__webpack_require__){"use strict";var argCommand=__webpack_require__(10).argCommand;module.exports=function(send){return{get:argCommand(send,"object/get"),put:function(file,encoding,cb){return"function"==typeof encoding?cb(null,new Error("Must specify an object encoding ('json' or 'protobuf')")):send("object/put",encoding,null,file,cb)},data:argCommand(send,"object/data"),links:argCommand(send,"object/links"),stat:argCommand(send,"object/stat"),"new":argCommand(send,"object/new"),patch:function(file,opts,cb){return send("object/patch",[file].concat(opts),null,null,cb)}}}},function(module,exports){"use strict";module.exports=function(send){return{add:function(hash,opts,cb){return"function"==typeof opts&&(cb=opts,opts=null),send("pin/add",hash,opts,null,cb)},remove:function(hash,opts,cb){return"function"==typeof opts&&(cb=opts,opts=null),send("pin/rm",hash,opts,null,cb)},list:function(type,cb){"function"==typeof type&&(cb=type,type=null);var opts=null;return type&&(opts={type:type}),send("pin/ls",null,opts,null,cb)}}}},function(module,exports,__webpack_require__){"use strict";function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{"default":obj}}var _promise=__webpack_require__(31),_promise2=_interopRequireDefault(_promise);module.exports=function(send){return function(id,cb){return"function"!=typeof cb&&"undefined"!=typeof _promise2["default"]?send("ping",id,{n:1},null).then(function(res){return res[1]}):send("ping",id,{n:1},null,function(err,res){return err?cb(err,null):void cb(null,res[1])})}}},function(module,exports,__webpack_require__){"use strict";var cmds=__webpack_require__(10);module.exports=function(send){var refs=cmds.argCommand(send,"refs");return refs.local=cmds.command(send,"refs/local"),refs}},function(module,exports,__webpack_require__){"use strict";var cmds=__webpack_require__(10);module.exports=function(send){return{peers:cmds.command(send,"swarm/peers"),connect:cmds.argCommand(send,"swarm/connect")}}},function(module,exports,__webpack_require__){"use strict";var command=__webpack_require__(10).command;module.exports=function(send){return{apply:command(send,"update"),check:command(send,"update/check"),log:command(send,"update/log")}}},function(module,exports,__webpack_require__){"use strict";var command=__webpack_require__(10).command;module.exports=function(send){return command(send,"version")}},function(module,exports,__webpack_require__){"use strict";var pkg=__webpack_require__(248);exports=module.exports=function(){return{"api-path":"/api/v0/","user-agent":"/node-"+pkg.name+"/"+pkg.version+"/",host:"localhost",port:"5001",protocol:"http"}}},function(module,exports,__webpack_require__){(function(Buffer){"use strict";function getFilesStream(files,opts){if(!files)return null;var adder=new Merge,single=new stream.PassThrough({objectMode:!0});adder.add(single);for(var i=0;i=400||!res.statusCode){var _ret=function(){var error=new Error("Server responded with "+res.statusCode);return{v:Wreck.read(res,{json:!0},function(err,payload){return err?cb(err):(payload&&(error.code=payload.Code,error.message=payload.Message),void cb(error))})}}();if("object"===("undefined"==typeof _ret?"undefined":(0,_typeof3["default"])(_ret)))return _ret.v}return stream&&!buffer?cb(null,res):chunkedObjects?isJson?parseChunkedJson(res,cb):Wreck.read(res,null,cb):void Wreck.read(res,{json:isJson},cb)}}function requestAPI(config,path,args,qs,files,buffer,cb){if(qs=qs||{},Array.isArray(path)&&(path=path.join("/")),args&&!Array.isArray(args)&&(args=[args]),args&&(qs.arg=args),files&&!Array.isArray(files)&&(files=[files]),qs.r&&(qs.recursive=qs.r,delete qs.r),!isNode&&qs.recursive&&"add"===path)return cb(new Error("Recursive uploads are not supported in the browser"));qs["stream-channels"]=!0;var stream=void 0;files&&(stream=getFilesStream(files,qs)),delete qs.followSymlinks;var port=config.port?":"+config.port:"",opts={method:files?"POST":"GET",uri:config.protocol+"://"+config.host+port+config["api-path"]+path+"?"+Qs.stringify(qs,{arrayFormat:"repeat"}),headers:{}};if(isNode&&(opts.headers["User-Agent"]=config["user-agent"]),files){if(!stream.boundary)return cb(new Error("No boundary in multipart stream"));opts.headers["Content-Type"]="multipart/form-data; boundary="+stream.boundary,opts.downstreamRes=stream,opts.payload=stream}return Wreck.request(opts.method,opts.uri,opts,onRes(buffer,cb))}var _promise=__webpack_require__(31),_promise2=_interopRequireDefault(_promise),_typeof2=__webpack_require__(19),_typeof3=_interopRequireDefault(_typeof2),Wreck=__webpack_require__(69),Qs=__webpack_require__(120),ndjson=__webpack_require__(96),getFilesStream=__webpack_require__(145),isNode=!global.window;exports=module.exports=function(config){return function(path,args,qs,files,buffer,cb){return"function"==typeof buffer&&(cb=buffer,buffer=!1),"function"!=typeof cb&&"undefined"!=typeof _promise2["default"]?new _promise2["default"](function(resolve,reject){requestAPI(config,path,args,qs,files,buffer,function(err,res){return err?reject(err):void resolve(res)})}):requestAPI(config,path,args,qs,files,buffer,cb)}}}).call(exports,function(){return this}())},function(module,exports,__webpack_require__){module.exports={"default":__webpack_require__(168),__esModule:!0}},function(module,exports,__webpack_require__){module.exports={"default":__webpack_require__(169),__esModule:!0}},function(module,exports,__webpack_require__){module.exports={"default":__webpack_require__(171),__esModule:!0}},function(module,exports,__webpack_require__){module.exports={"default":__webpack_require__(172),__esModule:!0}},function(module,exports,__webpack_require__){module.exports={"default":__webpack_require__(173),__esModule:!0}},function(module,exports,__webpack_require__){module.exports={"default":__webpack_require__(174),__esModule:!0}},function(module,exports,__webpack_require__){module.exports={"default":__webpack_require__(176),__esModule:!0}},function(module,exports,__webpack_require__){module.exports={"default":__webpack_require__(178),__esModule:!0}},function(module,exports,__webpack_require__){module.exports={"default":__webpack_require__(179),__esModule:!0}},function(module,exports){function balanced(a,b,str){var r=range(a,b,str);return r&&{start:r[0],end:r[1],pre:str.slice(0,r[0]),body:str.slice(r[0]+a.length,r[1]),post:str.slice(r[1]+b.length)}}function range(a,b,str){var begs,beg,left,right,result,ai=str.indexOf(a),bi=str.indexOf(b,ai+1),i=ai;if(ai>=0&&bi>0){for(begs=[],left=str.length;i=0&&!result;)i==ai?(begs.push(i),ai=str.indexOf(a,i+1)):1==begs.length?result=[begs.pop(),bi]:(beg=begs.pop(),left>beg&&(left=beg,right=bi),bi=str.indexOf(b,i+1)),i=bi>ai&&ai>=0?ai:bi;begs.length&&(result=[left,right])}return result}module.exports=balanced,balanced.range=range},function(module,exports,__webpack_require__){var lookup="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";!function(exports){"use strict";function decode(elt){var code=elt.charCodeAt(0);return code===PLUS||code===PLUS_URL_SAFE?62:code===SLASH||code===SLASH_URL_SAFE?63:NUMBER>code?-1:NUMBER+10>code?code-NUMBER+26+26:UPPER+26>code?code-UPPER:LOWER+26>code?code-LOWER+26:void 0}function b64ToByteArray(b64){function push(v){arr[L++]=v}var i,j,l,tmp,placeHolders,arr;if(b64.length%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var len=b64.length;placeHolders="="===b64.charAt(len-2)?2:"="===b64.charAt(len-1)?1:0,arr=new Arr(3*b64.length/4-placeHolders),l=placeHolders>0?b64.length-4:b64.length;var L=0;for(i=0,j=0;l>i;i+=4,j+=3)tmp=decode(b64.charAt(i))<<18|decode(b64.charAt(i+1))<<12|decode(b64.charAt(i+2))<<6|decode(b64.charAt(i+3)),push((16711680&tmp)>>16),push((65280&tmp)>>8),push(255&tmp);return 2===placeHolders?(tmp=decode(b64.charAt(i))<<2|decode(b64.charAt(i+1))>>4,push(255&tmp)):1===placeHolders&&(tmp=decode(b64.charAt(i))<<10|decode(b64.charAt(i+1))<<4|decode(b64.charAt(i+2))>>2,push(tmp>>8&255),push(255&tmp)),arr}function uint8ToBase64(uint8){function encode(num){return lookup.charAt(num)}function tripletToBase64(num){return encode(num>>18&63)+encode(num>>12&63)+encode(num>>6&63)+encode(63&num)}var i,temp,length,extraBytes=uint8.length%3,output="";for(i=0,length=uint8.length-extraBytes;length>i;i+=3)temp=(uint8[i]<<16)+(uint8[i+1]<<8)+uint8[i+2],output+=tripletToBase64(temp);switch(extraBytes){case 1:temp=uint8[uint8.length-1],output+=encode(temp>>2),output+=encode(temp<<4&63),output+="==";break;case 2:temp=(uint8[uint8.length-2]<<8)+uint8[uint8.length-1],output+=encode(temp>>10),output+=encode(temp>>4&63),output+=encode(temp<<2&63),output+="="}return output}var Arr="undefined"!=typeof Uint8Array?Uint8Array:Array,PLUS="+".charCodeAt(0),SLASH="/".charCodeAt(0),NUMBER="0".charCodeAt(0),LOWER="a".charCodeAt(0),UPPER="A".charCodeAt(0),PLUS_URL_SAFE="-".charCodeAt(0),SLASH_URL_SAFE="_".charCodeAt(0);exports.toByteArray=b64ToByteArray,exports.fromByteArray=uint8ToBase64}(exports)},function(module,exports,__webpack_require__){function numeric(str){return parseInt(str,10)==str?parseInt(str,10):str.charCodeAt(0)}function escapeBraces(str){return str.split("\\\\").join(escSlash).split("\\{").join(escOpen).split("\\}").join(escClose).split("\\,").join(escComma).split("\\.").join(escPeriod)}function unescapeBraces(str){return str.split(escSlash).join("\\").split(escOpen).join("{").split(escClose).join("}").split(escComma).join(",").split(escPeriod).join(".")}function parseCommaParts(str){if(!str)return[""];var parts=[],m=balanced("{","}",str);if(!m)return str.split(",");var pre=m.pre,body=m.body,post=m.post,p=pre.split(",");p[p.length-1]+="{"+body+"}";var postParts=parseCommaParts(post);return post.length&&(p[p.length-1]+=postParts.shift(),p.push.apply(p,postParts)),parts.push.apply(parts,p),parts}function expandTop(str){return str?expand(escapeBraces(str),!0).map(unescapeBraces):[]}function embrace(str){return"{"+str+"}"}function isPadded(el){return/^-?0\d/.test(el)}function lte(i,y){return y>=i}function gte(i,y){return i>=y}function expand(str,isTop){var expansions=[],m=balanced("{","}",str);if(!m||/\$$/.test(m.pre))return[str];var isNumericSequence=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(m.body),isAlphaSequence=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(m.body),isSequence=isNumericSequence||isAlphaSequence,isOptions=/^(.*,)+(.+)?$/.test(m.body);if(!isSequence&&!isOptions)return m.post.match(/,.*\}/)?(str=m.pre+"{"+m.body+escClose+m.post,expand(str)):[str];var n;if(isSequence)n=m.body.split(/\.\./);else if(n=parseCommaParts(m.body),1===n.length&&(n=expand(n[0],!1).map(embrace),1===n.length)){var post=m.post.length?expand(m.post,!1):[""];return post.map(function(p){return m.pre+n[0]+p})}var N,pre=m.pre,post=m.post.length?expand(m.post,!1):[""];if(isSequence){var x=numeric(n[0]),y=numeric(n[1]),width=Math.max(n[0].length,n[1].length),incr=3==n.length?Math.abs(numeric(n[2])):1,test=lte,reverse=x>y;reverse&&(incr*=-1,test=gte);var pad=n.some(isPadded);N=[];for(var i=x;test(i,y);i+=incr){var c;if(isAlphaSequence)c=String.fromCharCode(i),"\\"===c&&(c="");else if(c=String(i),pad){var need=width-c.length;if(need>0){var z=new Array(need+1).join("0");c=0>i?"-"+z+c.slice(1):z+c}}N.push(c)}}else N=concatMap(n,function(el){return expand(el,!1)});for(var j=0;j * * Copyright (c) 2014-2015, Jon Schlinkert. * Licensed under the MIT license. */ -"use strict";function braces(str,arr,options){if(""===str)return[];Array.isArray(arr)||(options=arr,arr=[]);var opts=options||{};arr=arr||[],"undefined"==typeof opts.nodupes&&(opts.nodupes=!0);var es6,fn=opts.fn;"function"==typeof opts&&(fn=opts,opts={}),patternRe instanceof RegExp||(patternRe=patternRegex());var matches=str.match(patternRe)||[],m=matches[0];switch(m){case"\\,":return escapeCommas(str,arr,opts);case"\\.":return escapeDots(str,arr,opts);case"/.":return escapePaths(str,arr,opts);case" ":return splitWhitespace(str);case"{,}":return exponential(str,opts,braces);case"{}":return emptyBraces(str,arr,opts);case"\\{":case"\\}":return escapeBraces(str,arr,opts);case"${":if(!/\{[^{]+\{/.test(str))return arr.concat(str);es6=!0,str=tokens.before(str,es6Regex())}braceRe instanceof RegExp||(braceRe=braceRegex());var match=braceRe.exec(str);if(null==match)return[str];var outter=match[1],inner=match[2];if(""===inner)return[str];var segs,segsLength;if(-1!==inner.indexOf(".."))segs=expand(inner,opts,fn)||inner.split(","),segsLength=segs.length;else{if('"'===inner[0]||"'"===inner[0])return arr.concat(str.split(/['"]/).join(""));if(segs=inner.split(","),opts.makeRe)return braces(str.replace(outter,wrap(segs,"|")),opts);segsLength=segs.length,1===segsLength&&opts.bash&&(segs[0]=wrap(segs[0],"\\"))}for(var val,len=segs.length,i=0;len--;){var path=segs[i++];if(/(\.[^.\/])/.test(path))return segsLength>1?segs:[str];if(val=splice(str,outter,path),/\{[^{}]+?\}/.test(val))arr=braces(val,arr,opts);else if(""!==val){if(opts.nodupes&&-1!==arr.indexOf(val))continue;arr.push(es6?tokens.after(val):val)}}return opts.strict?filter(arr,filterEmpty):arr}function exponential(str,options,fn){"function"==typeof options&&(fn=options,options=null);var res,opts=options||{},esc="__ESC_EXP__",exp=0,parts=str.split("{,}");if(opts.nodupes)return fn(parts.join(""),opts);exp=parts.length-1,res=fn(parts.join(esc),opts);for(var len=res.length,arr=[],i=0;len--;){var ele=res[i++],idx=ele.indexOf(esc);if(-1===idx)arr.push(ele);else if(ele=ele.split("__ESC_EXP__").join(""),ele&&opts.nodupes!==!1)arr.push(ele);else{var num=Math.pow(2,exp);arr.push.apply(arr,repeat(ele,num))}}return arr}function wrap(val,ch){return"|"===ch?"("+val.join(ch)+")":","===ch?"{"+val.join(ch)+"}":"-"===ch?"["+val.join(ch)+"]":"\\"===ch?"\\{"+val+"\\}":void 0}function emptyBraces(str,arr,opts){return braces(str.split("{}").join("\\{\\}"),arr,opts)}function filterEmpty(ele){return!!ele&&"\\"!==ele}function splitWhitespace(str){for(var segs=str.split(" "),len=segs.length,res=[],i=0;len--;)res.push.apply(res,braces(segs[i++]));return res}function escapeBraces(str,arr,opts){return/\{[^{]+\{/.test(str)?(str=str.split("\\{").join("__LT_BRACE__"),str=str.split("\\}").join("__RT_BRACE__"),map(braces(str,arr,opts),function(ele){return ele=ele.split("__LT_BRACE__").join("{"),ele.split("__RT_BRACE__").join("}")})):arr.concat(str.split("\\").join(""))}function escapeDots(str,arr,opts){return/[^\\]\..+\\\./.test(str)?(str=str.split("\\.").join("__ESC_DOT__"),map(braces(str,arr,opts),function(ele){return ele.split("__ESC_DOT__").join(".")})):arr.concat(str.split("\\").join(""))}function escapePaths(str,arr,opts){return str=str.split("/.").join("__ESC_PATH__"),map(braces(str,arr,opts),function(ele){return ele.split("__ESC_PATH__").join("/.")})}function escapeCommas(str,arr,opts){return/\w,/.test(str)?(str=str.split("\\,").join("__ESC_COMMA__"),map(braces(str,arr,opts),function(ele){return ele.split("__ESC_COMMA__").join(",")})):arr.concat(str.split("\\").join(""))}function patternRegex(){return/\$\{|[ \t]|{}|{,}|\\,(?=.*[{}])|\/\.(?=.*[{}])|\\\.(?={)|\\{|\\}/}function braceRegex(){return/.*(\\?\{([^}]+)\})/}function es6Regex(){return/\$\{([^}]+)\}/}function splice(str,token,replacement){var i=str.indexOf(token);return str.substr(0,i)+replacement+str.substr(i+token.length)}function map(arr,fn){if(null==arr)return[];for(var len=arr.length,res=new Array(len),i=-1;++i0;i--)if(line=lines[i],~line.indexOf("sourceMappingURL=data:"))return exports.fromComment(line)}var fs=__webpack_require__(6),path=__webpack_require__(5),commentRx=/^\s*\/(?:\/|\*)[@#]\s+sourceMappingURL=data:(?:application|text)\/json;(?:charset[:=]\S+;)?base64,(.*)$/gm,mapFileCommentRx=/(?:\/\/[@#][ \t]+sourceMappingURL=([^\s'"]+?)[ \t]*$)|(?:\/\*[@#][ \t]+sourceMappingURL=([^\*]+?)[ \t]*(?:\*\/){1}[ \t]*$)/gm;Converter.prototype.toJSON=function(space){return JSON.stringify(this.sourcemap,null,space)},Converter.prototype.toBase64=function(){var json=this.toJSON();return new Buffer(json).toString("base64")},Converter.prototype.toComment=function(options){var base64=this.toBase64(),data="sourceMappingURL=data:application/json;base64,"+base64;return options&&options.multiline?"/*# "+data+" */":"//# "+data},Converter.prototype.toObject=function(){return JSON.parse(this.toJSON())},Converter.prototype.addProperty=function(key,value){if(this.sourcemap.hasOwnProperty(key))throw new Error("property %s already exists on the sourcemap, use set property instead");return this.setProperty(key,value)},Converter.prototype.setProperty=function(key,value){return this.sourcemap[key]=value,this},Converter.prototype.getProperty=function(key){return this.sourcemap[key]},exports.fromObject=function(obj){return new Converter(obj)},exports.fromJSON=function(json){return new Converter(json,{isJSON:!0})},exports.fromBase64=function(base64){return new Converter(base64,{isEncoded:!0})},exports.fromComment=function(comment){return comment=comment.replace(/^\/\*/g,"//").replace(/\*\/$/g,""),new Converter(comment,{isEncoded:!0,hasComment:!0})},exports.fromMapFileComment=function(comment,dir){return new Converter(comment,{commentFileDir:dir,isFileComment:!0,isJSON:!0})},exports.fromSource=function(content,largeSource){if(largeSource){var res=convertFromLargeSource(content);return res?res:null}var m=content.match(commentRx);return commentRx.lastIndex=0,m?exports.fromComment(m.pop()):null},exports.fromMapFileSource=function(content,dir){var m=content.match(mapFileCommentRx);return mapFileCommentRx.lastIndex=0,m?exports.fromMapFileComment(m.pop(),dir):null},exports.removeComments=function(src){return commentRx.lastIndex=0,src.replace(commentRx,"")},exports.removeMapFileComments=function(src){return mapFileCommentRx.lastIndex=0,src.replace(mapFileCommentRx,"")},Object.defineProperty(exports,"commentRegex",{get:function(){return commentRx.lastIndex=0,commentRx}}),Object.defineProperty(exports,"mapFileCommentRegex",{get:function(){return mapFileCommentRx.lastIndex=0,mapFileCommentRx}})}).call(exports,__webpack_require__(1).Buffer)},function(module,exports,__webpack_require__){var core=__webpack_require__(11);module.exports=function(it){return(core.JSON&&core.JSON.stringify||JSON.stringify).apply(JSON,arguments)}},function(module,exports,__webpack_require__){__webpack_require__(205),module.exports=__webpack_require__(11).Object.assign},function(module,exports,__webpack_require__){var $=__webpack_require__(7);module.exports=function(P,D){return $.create(P,D)}},function(module,exports,__webpack_require__){var $=__webpack_require__(7);module.exports=function(it,key,desc){return $.setDesc(it,key,desc)}},function(module,exports,__webpack_require__){var $=__webpack_require__(7);__webpack_require__(206),module.exports=function(it,key){return $.getDesc(it,key)}},function(module,exports,__webpack_require__){var $=__webpack_require__(7);__webpack_require__(207),module.exports=function(it){return $.getNames(it)}},function(module,exports,__webpack_require__){__webpack_require__(208),module.exports=__webpack_require__(11).Object.getPrototypeOf},function(module,exports,__webpack_require__){__webpack_require__(209),module.exports=__webpack_require__(11).Object.keys},function(module,exports,__webpack_require__){__webpack_require__(210),module.exports=__webpack_require__(11).Object.setPrototypeOf},function(module,exports,__webpack_require__){__webpack_require__(79),__webpack_require__(80),__webpack_require__(81),__webpack_require__(211),module.exports=__webpack_require__(11).Promise},function(module,exports,__webpack_require__){__webpack_require__(212),__webpack_require__(79),module.exports=__webpack_require__(11).Symbol},function(module,exports,__webpack_require__){__webpack_require__(80),__webpack_require__(81),module.exports=__webpack_require__(12)("iterator")},function(module,exports){module.exports=function(){}},function(module,exports,__webpack_require__){var isObject=__webpack_require__(34),document=__webpack_require__(14).document,is=isObject(document)&&isObject(document.createElement);module.exports=function(it){return is?document.createElement(it):{}}},function(module,exports,__webpack_require__){var $=__webpack_require__(7);module.exports=function(it){var keys=$.getKeys(it),getSymbols=$.getSymbols;if(getSymbols)for(var key,symbols=getSymbols(it),isEnum=$.isEnum,i=0;symbols.length>i;)isEnum.call(it,key=symbols[i++])&&keys.push(key);return keys}},function(module,exports,__webpack_require__){var ctx=__webpack_require__(26),call=__webpack_require__(188),isArrayIter=__webpack_require__(186),anObject=__webpack_require__(19),toLength=__webpack_require__(202),getIterFn=__webpack_require__(203);module.exports=function(iterable,entries,fn,that){var length,step,iterator,iterFn=getIterFn(iterable),f=ctx(fn,that,entries?2:1),index=0;if("function"!=typeof iterFn)throw TypeError(iterable+" is not iterable!");if(isArrayIter(iterFn))for(length=toLength(iterable.length);length>index;index++)entries?f(anObject(step=iterable[index])[0],step[1]):f(iterable[index]);else for(iterator=iterFn.call(iterable);!(step=iterator.next()).done;)call(iterator,f,step.value,entries)}},function(module,exports,__webpack_require__){module.exports=__webpack_require__(14).document&&document.documentElement},function(module,exports){module.exports=function(fn,args,that){var un=void 0===that;switch(args.length){case 0:return un?fn():fn.call(that);case 1:return un?fn(args[0]):fn.call(that,args[0]);case 2:return un?fn(args[0],args[1]):fn.call(that,args[0],args[1]);case 3:return un?fn(args[0],args[1],args[2]):fn.call(that,args[0],args[1],args[2]);case 4:return un?fn(args[0],args[1],args[2],args[3]):fn.call(that,args[0],args[1],args[2],args[3])}return fn.apply(that,args)}},function(module,exports,__webpack_require__){var Iterators=__webpack_require__(27),ITERATOR=__webpack_require__(12)("iterator"),ArrayProto=Array.prototype;module.exports=function(it){return void 0!==it&&(Iterators.Array===it||ArrayProto[ITERATOR]===it)}},function(module,exports,__webpack_require__){var cof=__webpack_require__(25);module.exports=Array.isArray||function(arg){return"Array"==cof(arg)}},function(module,exports,__webpack_require__){var anObject=__webpack_require__(19);module.exports=function(iterator,fn,value,entries){try{return entries?fn(anObject(value)[0],value[1]):fn(value)}catch(e){var ret=iterator["return"];throw void 0!==ret&&anObject(ret.call(iterator)),e}}},function(module,exports,__webpack_require__){"use strict";var $=__webpack_require__(7),descriptor=__webpack_require__(48),setToStringTag=__webpack_require__(36),IteratorPrototype={};__webpack_require__(46)(IteratorPrototype,__webpack_require__(12)("iterator"),function(){return this}),module.exports=function(Constructor,NAME,next){Constructor.prototype=$.create(IteratorPrototype,{next:descriptor(1,next)}),setToStringTag(Constructor,NAME+" Iterator")}},function(module,exports,__webpack_require__){var ITERATOR=__webpack_require__(12)("iterator"),SAFE_CLOSING=!1;try{var riter=[7][ITERATOR]();riter["return"]=function(){SAFE_CLOSING=!0},Array.from(riter,function(){throw 2})}catch(e){}module.exports=function(exec,skipClosing){if(!skipClosing&&!SAFE_CLOSING)return!1;var safe=!1;try{var arr=[7],iter=arr[ITERATOR]();iter.next=function(){safe=!0},arr[ITERATOR]=function(){return iter},exec(arr)}catch(e){}return safe}},function(module,exports){module.exports=function(done,value){return{value:value,done:!!done}}},function(module,exports,__webpack_require__){var $=__webpack_require__(7),toIObject=__webpack_require__(28);module.exports=function(object,el){for(var key,O=toIObject(object),keys=$.getKeys(O),length=keys.length,index=0;length>index;)if(O[key=keys[index++]]===el)return key}},function(module,exports,__webpack_require__){var head,last,notify,global=__webpack_require__(14),macrotask=__webpack_require__(201).set,Observer=global.MutationObserver||global.WebKitMutationObserver,process=global.process,Promise=global.Promise,isNode="process"==__webpack_require__(25)(process),flush=function(){var parent,domain,fn;for(isNode&&(parent=process.domain)&&(process.domain=null,parent.exit());head;)domain=head.domain,fn=head.fn,domain&&domain.enter(),fn(),domain&&domain.exit(),head=head.next;last=void 0,parent&&parent.enter()};if(isNode)notify=function(){process.nextTick(flush)};else if(Observer){var toggle=1,node=document.createTextNode("");new Observer(flush).observe(node,{characterData:!0}),notify=function(){node.data=toggle=-toggle}}else notify=Promise&&Promise.resolve?function(){Promise.resolve().then(flush)}:function(){macrotask.call(global,flush)};module.exports=function(fn){var task={fn:fn,next:void 0,domain:isNode&&process.domain};last&&(last.next=task),head||(head=task,notify()),last=task}},function(module,exports,__webpack_require__){var $=__webpack_require__(7),toObject=__webpack_require__(50),IObject=__webpack_require__(73);module.exports=__webpack_require__(33)(function(){var a=Object.assign,A={},B={},S=Symbol(),K="abcdefghijklmnopqrst";return A[S]=7,K.split("").forEach(function(k){B[k]=k}),7!=a({},A)[S]||Object.keys(a({},B)).join("")!=K})?function(target,source){for(var T=toObject(target),$$=arguments,$$len=$$.length,index=1,getKeys=$.getKeys,getSymbols=$.getSymbols,isEnum=$.isEnum;$$len>index;)for(var key,S=IObject($$[index++]),keys=getSymbols?getKeys(S).concat(getSymbols(S)):getKeys(S),length=keys.length,j=0;length>j;)isEnum.call(S,key=keys[j++])&&(T[key]=S[key]);return T}:Object.assign},function(module,exports,__webpack_require__){var redefine=__webpack_require__(49);module.exports=function(target,src){for(var key in src)redefine(target,key,src[key]);return target}},function(module,exports){module.exports=Object.is||function(x,y){return x===y?0!==x||1/x===1/y:x!=x&&y!=y}},function(module,exports,__webpack_require__){"use strict";var core=__webpack_require__(11),$=__webpack_require__(7),DESCRIPTORS=__webpack_require__(32),SPECIES=__webpack_require__(12)("species");module.exports=function(KEY){var C=core[KEY];DESCRIPTORS&&C&&!C[SPECIES]&&$.setDesc(C,SPECIES,{configurable:!0,get:function(){return this}})}},function(module,exports,__webpack_require__){var anObject=__webpack_require__(19),aFunction=__webpack_require__(43),SPECIES=__webpack_require__(12)("species");module.exports=function(O,D){var S,C=anObject(O).constructor;return void 0===C||void 0==(S=anObject(C)[SPECIES])?D:aFunction(S)}},function(module,exports){module.exports=function(it,Constructor,name){if(!(it instanceof Constructor))throw TypeError(name+": use the 'new' operator!");return it}},function(module,exports,__webpack_require__){var toInteger=__webpack_require__(77),defined=__webpack_require__(44);module.exports=function(TO_STRING){return function(that,pos){var a,b,s=String(defined(that)),i=toInteger(pos),l=s.length;return 0>i||i>=l?TO_STRING?"":void 0:(a=s.charCodeAt(i),55296>a||a>56319||i+1===l||(b=s.charCodeAt(i+1))<56320||b>57343?TO_STRING?s.charAt(i):a:TO_STRING?s.slice(i,i+2):(a-55296<<10)+(b-56320)+65536)}}},function(module,exports,__webpack_require__){var defer,channel,port,ctx=__webpack_require__(26),invoke=__webpack_require__(185),html=__webpack_require__(184),cel=__webpack_require__(181),global=__webpack_require__(14),process=global.process,setTask=global.setImmediate,clearTask=global.clearImmediate,MessageChannel=global.MessageChannel,counter=0,queue={},ONREADYSTATECHANGE="onreadystatechange",run=function(){var id=+this;if(queue.hasOwnProperty(id)){var fn=queue[id];delete queue[id],fn()}},listner=function(event){run.call(event.data)};setTask&&clearTask||(setTask=function(fn){for(var args=[],i=1;arguments.length>i;)args.push(arguments[i++]);return queue[++counter]=function(){invoke("function"==typeof fn?fn:Function(fn),args)},defer(counter),counter},clearTask=function(id){delete queue[id]},"process"==__webpack_require__(25)(process)?defer=function(id){process.nextTick(ctx(run,id,1))}:MessageChannel?(channel=new MessageChannel,port=channel.port2,channel.port1.onmessage=listner,defer=ctx(port.postMessage,port,1)):global.addEventListener&&"function"==typeof postMessage&&!global.importScripts?(defer=function(id){global.postMessage(id+"","*")},global.addEventListener("message",listner,!1)):defer=ONREADYSTATECHANGE in cel("script")?function(id){html.appendChild(cel("script"))[ONREADYSTATECHANGE]=function(){html.removeChild(this),run.call(id)}}:function(id){setTimeout(ctx(run,id,1),0)}),module.exports={set:setTask,clear:clearTask}},function(module,exports,__webpack_require__){var toInteger=__webpack_require__(77),min=Math.min;module.exports=function(it){return it>0?min(toInteger(it),9007199254740991):0}},function(module,exports,__webpack_require__){var classof=__webpack_require__(71),ITERATOR=__webpack_require__(12)("iterator"),Iterators=__webpack_require__(27);module.exports=__webpack_require__(11).getIteratorMethod=function(it){return void 0!=it?it[ITERATOR]||it["@@iterator"]||Iterators[classof(it)]:void 0}},function(module,exports,__webpack_require__){"use strict";var addToUnscopables=__webpack_require__(180),step=__webpack_require__(191),Iterators=__webpack_require__(27),toIObject=__webpack_require__(28);module.exports=__webpack_require__(74)(Array,"Array",function(iterated,kind){this._t=toIObject(iterated),this._i=0,this._k=kind},function(){var O=this._t,kind=this._k,index=this._i++;return!O||index>=O.length?(this._t=void 0,step(1)):"keys"==kind?step(0,index):"values"==kind?step(0,O[index]):step(0,[index,O[index]])},"values"),Iterators.Arguments=Iterators.Array,addToUnscopables("keys"),addToUnscopables("values"),addToUnscopables("entries")},function(module,exports,__webpack_require__){var $export=__webpack_require__(20);$export($export.S+$export.F,"Object",{assign:__webpack_require__(194)})},function(module,exports,__webpack_require__){var toIObject=__webpack_require__(28);__webpack_require__(35)("getOwnPropertyDescriptor",function($getOwnPropertyDescriptor){return function(it,key){return $getOwnPropertyDescriptor(toIObject(it),key)}})},function(module,exports,__webpack_require__){__webpack_require__(35)("getOwnPropertyNames",function(){return __webpack_require__(72).get})},function(module,exports,__webpack_require__){var toObject=__webpack_require__(50);__webpack_require__(35)("getPrototypeOf",function($getPrototypeOf){return function(it){return $getPrototypeOf(toObject(it))}})},function(module,exports,__webpack_require__){var toObject=__webpack_require__(50);__webpack_require__(35)("keys",function($keys){return function(it){return $keys(toObject(it))}})},function(module,exports,__webpack_require__){var $export=__webpack_require__(20);$export($export.S,"Object",{setPrototypeOf:__webpack_require__(75).set})},function(module,exports,__webpack_require__){"use strict";var Wrapper,$=__webpack_require__(7),LIBRARY=__webpack_require__(47),global=__webpack_require__(14),ctx=__webpack_require__(26),classof=__webpack_require__(71),$export=__webpack_require__(20),isObject=__webpack_require__(34),anObject=__webpack_require__(19),aFunction=__webpack_require__(43),strictNew=__webpack_require__(199),forOf=__webpack_require__(183),setProto=__webpack_require__(75).set,same=__webpack_require__(196),SPECIES=__webpack_require__(12)("species"),speciesConstructor=__webpack_require__(198),asap=__webpack_require__(193),PROMISE="Promise",process=global.process,isNode="process"==classof(process),P=global[PROMISE],testResolve=function(sub){var test=new P(function(){});return sub&&(test.constructor=Object),P.resolve(test)===test},USE_NATIVE=function(){function P2(x){var self=new P(x);return setProto(self,P2.prototype),self}var works=!1;try{if(works=P&&P.resolve&&testResolve(),setProto(P2,P),P2.prototype=$.create(P.prototype,{constructor:{value:P2}}),P2.resolve(5).then(function(){})instanceof P2||(works=!1),works&&__webpack_require__(32)){var thenableThenGotten=!1;P.resolve($.setDesc({},"then",{get:function(){thenableThenGotten=!0}})),works=thenableThenGotten}}catch(e){works=!1}return works}(),sameConstructor=function(a,b){return LIBRARY&&a===P&&b===Wrapper?!0:same(a,b)},getConstructor=function(C){var S=anObject(C)[SPECIES];return void 0!=S?S:C},isThenable=function(it){var then;return isObject(it)&&"function"==typeof(then=it.then)?then:!1},PromiseCapability=function(C){var resolve,reject;this.promise=new C(function($$resolve,$$reject){if(void 0!==resolve||void 0!==reject)throw TypeError("Bad Promise constructor");resolve=$$resolve,reject=$$reject}),this.resolve=aFunction(resolve),this.reject=aFunction(reject)},perform=function(exec){try{exec()}catch(e){return{error:e}}},notify=function(record,isReject){if(!record.n){record.n=!0;var chain=record.c;asap(function(){for(var value=record.v,ok=1==record.s,i=0,run=function(reaction){var result,then,handler=ok?reaction.ok:reaction.fail,resolve=reaction.resolve,reject=reaction.reject;try{handler?(ok||(record.h=!0),result=handler===!0?value:handler(value),result===reaction.promise?reject(TypeError("Promise-chain cycle")):(then=isThenable(result))?then.call(result,resolve,reject):resolve(result)):reject(value)}catch(e){reject(e)}};chain.length>i;)run(chain[i++]);chain.length=0,record.n=!1,isReject&&setTimeout(function(){var handler,console,promise=record.p;isUnhandled(promise)&&(isNode?process.emit("unhandledRejection",value,promise):(handler=global.onunhandledrejection)?handler({promise:promise,reason:value}):(console=global.console)&&console.error&&console.error("Unhandled promise rejection",value)),record.a=void 0},1)})}},isUnhandled=function(promise){var reaction,record=promise._d,chain=record.a||record.c,i=0;if(record.h)return!1;for(;chain.length>i;)if(reaction=chain[i++],reaction.fail||!isUnhandled(reaction.promise))return!1;return!0},$reject=function(value){var record=this;record.d||(record.d=!0,record=record.r||record,record.v=value,record.s=2,record.a=record.c.slice(),notify(record,!0))},$resolve=function(value){var then,record=this;if(!record.d){record.d=!0,record=record.r||record;try{if(record.p===value)throw TypeError("Promise can't be resolved itself");(then=isThenable(value))?asap(function(){var wrapper={r:record,d:!1};try{then.call(value,ctx($resolve,wrapper,1),ctx($reject,wrapper,1))}catch(e){$reject.call(wrapper,e)}}):(record.v=value,record.s=1,notify(record,!1))}catch(e){$reject.call({r:record,d:!1},e)}}};USE_NATIVE||(P=function(executor){aFunction(executor);var record=this._d={p:strictNew(this,P,PROMISE),c:[],a:void 0,s:0,d:!1,v:void 0,h:!1,n:!1};try{executor(ctx($resolve,record,1),ctx($reject,record,1))}catch(err){$reject.call(record,err)}},__webpack_require__(195)(P.prototype,{then:function(onFulfilled,onRejected){var reaction=new PromiseCapability(speciesConstructor(this,P)),promise=reaction.promise,record=this._d;return reaction.ok="function"==typeof onFulfilled?onFulfilled:!0,reaction.fail="function"==typeof onRejected&&onRejected,record.c.push(reaction),record.a&&record.a.push(reaction),record.s&¬ify(record,!1),promise},"catch":function(onRejected){return this.then(void 0,onRejected)}})),$export($export.G+$export.W+$export.F*!USE_NATIVE,{Promise:P}),__webpack_require__(36)(P,PROMISE),__webpack_require__(197)(PROMISE),Wrapper=__webpack_require__(11)[PROMISE],$export($export.S+$export.F*!USE_NATIVE,PROMISE,{reject:function(r){var capability=new PromiseCapability(this),$$reject=capability.reject;return $$reject(r),capability.promise}}),$export($export.S+$export.F*(!USE_NATIVE||testResolve(!0)),PROMISE,{resolve:function(x){if(x instanceof P&&sameConstructor(x.constructor,this))return x;var capability=new PromiseCapability(this),$$resolve=capability.resolve;return $$resolve(x),capability.promise}}),$export($export.S+$export.F*!(USE_NATIVE&&__webpack_require__(190)(function(iter){P.all(iter)["catch"](function(){})})),PROMISE,{all:function(iterable){var C=getConstructor(this),capability=new PromiseCapability(C),resolve=capability.resolve,reject=capability.reject,values=[],abrupt=perform(function(){forOf(iterable,!1,values.push,values);var remaining=values.length,results=Array(remaining);remaining?$.each.call(values,function(promise,index){var alreadyCalled=!1;C.resolve(promise).then(function(value){alreadyCalled||(alreadyCalled=!0,results[index]=value,--remaining||resolve(results))},reject)}):resolve(results)});return abrupt&&reject(abrupt.error),capability.promise},race:function(iterable){var C=getConstructor(this),capability=new PromiseCapability(C),reject=capability.reject,abrupt=perform(function(){forOf(iterable,!1,function(promise){C.resolve(promise).then(capability.resolve,reject)})});return abrupt&&reject(abrupt.error),capability.promise}})},function(module,exports,__webpack_require__){"use strict";var $=__webpack_require__(7),global=__webpack_require__(14),has=__webpack_require__(45),DESCRIPTORS=__webpack_require__(32),$export=__webpack_require__(20),redefine=__webpack_require__(49),$fails=__webpack_require__(33),shared=__webpack_require__(76),setToStringTag=__webpack_require__(36),uid=__webpack_require__(78),wks=__webpack_require__(12),keyOf=__webpack_require__(192),$names=__webpack_require__(72),enumKeys=__webpack_require__(182),isArray=__webpack_require__(187),anObject=__webpack_require__(19),toIObject=__webpack_require__(28),createDesc=__webpack_require__(48),getDesc=$.getDesc,setDesc=$.setDesc,_create=$.create,getNames=$names.get,$Symbol=global.Symbol,$JSON=global.JSON,_stringify=$JSON&&$JSON.stringify,setter=!1,HIDDEN=wks("_hidden"),isEnum=$.isEnum,SymbolRegistry=shared("symbol-registry"),AllSymbols=shared("symbols"),useNative="function"==typeof $Symbol,ObjectProto=Object.prototype,setSymbolDesc=DESCRIPTORS&&$fails(function(){ +"use strict";function braces(str,arr,options){if(""===str)return[];Array.isArray(arr)||(options=arr,arr=[]);var opts=options||{};arr=arr||[],"undefined"==typeof opts.nodupes&&(opts.nodupes=!0);var es6,fn=opts.fn;"function"==typeof opts&&(fn=opts,opts={}),patternRe instanceof RegExp||(patternRe=patternRegex());var matches=str.match(patternRe)||[],m=matches[0];switch(m){case"\\,":return escapeCommas(str,arr,opts);case"\\.":return escapeDots(str,arr,opts);case"/.":return escapePaths(str,arr,opts);case" ":return splitWhitespace(str);case"{,}":return exponential(str,opts,braces);case"{}":return emptyBraces(str,arr,opts);case"\\{":case"\\}":return escapeBraces(str,arr,opts);case"${":if(!/\{[^{]+\{/.test(str))return arr.concat(str);es6=!0,str=tokens.before(str,es6Regex())}braceRe instanceof RegExp||(braceRe=braceRegex());var match=braceRe.exec(str);if(null==match)return[str];var outter=match[1],inner=match[2];if(""===inner)return[str];var segs,segsLength;if(-1!==inner.indexOf(".."))segs=expand(inner,opts,fn)||inner.split(","),segsLength=segs.length;else{if('"'===inner[0]||"'"===inner[0])return arr.concat(str.split(/['"]/).join(""));if(segs=inner.split(","),opts.makeRe)return braces(str.replace(outter,wrap(segs,"|")),opts);segsLength=segs.length,1===segsLength&&opts.bash&&(segs[0]=wrap(segs[0],"\\"))}for(var val,len=segs.length,i=0;len--;){var path=segs[i++];if(/(\.[^.\/])/.test(path))return segsLength>1?segs:[str];if(val=splice(str,outter,path),/\{[^{}]+?\}/.test(val))arr=braces(val,arr,opts);else if(""!==val){if(opts.nodupes&&-1!==arr.indexOf(val))continue;arr.push(es6?tokens.after(val):val)}}return opts.strict?filter(arr,filterEmpty):arr}function exponential(str,options,fn){"function"==typeof options&&(fn=options,options=null);var res,opts=options||{},esc="__ESC_EXP__",exp=0,parts=str.split("{,}");if(opts.nodupes)return fn(parts.join(""),opts);exp=parts.length-1,res=fn(parts.join(esc),opts);for(var len=res.length,arr=[],i=0;len--;){var ele=res[i++],idx=ele.indexOf(esc);if(-1===idx)arr.push(ele);else if(ele=ele.split("__ESC_EXP__").join(""),ele&&opts.nodupes!==!1)arr.push(ele);else{var num=Math.pow(2,exp);arr.push.apply(arr,repeat(ele,num))}}return arr}function wrap(val,ch){return"|"===ch?"("+val.join(ch)+")":","===ch?"{"+val.join(ch)+"}":"-"===ch?"["+val.join(ch)+"]":"\\"===ch?"\\{"+val+"\\}":void 0}function emptyBraces(str,arr,opts){return braces(str.split("{}").join("\\{\\}"),arr,opts)}function filterEmpty(ele){return!!ele&&"\\"!==ele}function splitWhitespace(str){for(var segs=str.split(" "),len=segs.length,res=[],i=0;len--;)res.push.apply(res,braces(segs[i++]));return res}function escapeBraces(str,arr,opts){return/\{[^{]+\{/.test(str)?(str=str.split("\\{").join("__LT_BRACE__"),str=str.split("\\}").join("__RT_BRACE__"),map(braces(str,arr,opts),function(ele){return ele=ele.split("__LT_BRACE__").join("{"),ele.split("__RT_BRACE__").join("}")})):arr.concat(str.split("\\").join(""))}function escapeDots(str,arr,opts){return/[^\\]\..+\\\./.test(str)?(str=str.split("\\.").join("__ESC_DOT__"),map(braces(str,arr,opts),function(ele){return ele.split("__ESC_DOT__").join(".")})):arr.concat(str.split("\\").join(""))}function escapePaths(str,arr,opts){return str=str.split("/.").join("__ESC_PATH__"),map(braces(str,arr,opts),function(ele){return ele.split("__ESC_PATH__").join("/.")})}function escapeCommas(str,arr,opts){return/\w,/.test(str)?(str=str.split("\\,").join("__ESC_COMMA__"),map(braces(str,arr,opts),function(ele){return ele.split("__ESC_COMMA__").join(",")})):arr.concat(str.split("\\").join(""))}function patternRegex(){return/\$\{|[ \t]|{}|{,}|\\,(?=.*[{}])|\/\.(?=.*[{}])|\\\.(?={)|\\{|\\}/}function braceRegex(){return/.*(\\?\{([^}]+)\})/}function es6Regex(){return/\$\{([^}]+)\}/}function splice(str,token,replacement){var i=str.indexOf(token);return str.substr(0,i)+replacement+str.substr(i+token.length)}function map(arr,fn){if(null==arr)return[];for(var len=arr.length,res=new Array(len),i=-1;++i0;i--)if(line=lines[i],~line.indexOf("sourceMappingURL=data:"))return exports.fromComment(line)}var fs=__webpack_require__(6),path=__webpack_require__(5),commentRx=/^\s*\/(?:\/|\*)[@#]\s+sourceMappingURL=data:(?:application|text)\/json;(?:charset[:=]\S+;)?base64,(.*)$/gm,mapFileCommentRx=/(?:\/\/[@#][ \t]+sourceMappingURL=([^\s'"]+?)[ \t]*$)|(?:\/\*[@#][ \t]+sourceMappingURL=([^\*]+?)[ \t]*(?:\*\/){1}[ \t]*$)/gm;Converter.prototype.toJSON=function(space){return JSON.stringify(this.sourcemap,null,space)},Converter.prototype.toBase64=function(){var json=this.toJSON();return new Buffer(json).toString("base64")},Converter.prototype.toComment=function(options){var base64=this.toBase64(),data="sourceMappingURL=data:application/json;base64,"+base64;return options&&options.multiline?"/*# "+data+" */":"//# "+data},Converter.prototype.toObject=function(){return JSON.parse(this.toJSON())},Converter.prototype.addProperty=function(key,value){if(this.sourcemap.hasOwnProperty(key))throw new Error("property %s already exists on the sourcemap, use set property instead");return this.setProperty(key,value)},Converter.prototype.setProperty=function(key,value){return this.sourcemap[key]=value,this},Converter.prototype.getProperty=function(key){return this.sourcemap[key]},exports.fromObject=function(obj){return new Converter(obj)},exports.fromJSON=function(json){return new Converter(json,{isJSON:!0})},exports.fromBase64=function(base64){return new Converter(base64,{isEncoded:!0})},exports.fromComment=function(comment){return comment=comment.replace(/^\/\*/g,"//").replace(/\*\/$/g,""),new Converter(comment,{isEncoded:!0,hasComment:!0})},exports.fromMapFileComment=function(comment,dir){return new Converter(comment,{commentFileDir:dir,isFileComment:!0,isJSON:!0})},exports.fromSource=function(content,largeSource){if(largeSource){var res=convertFromLargeSource(content);return res?res:null}var m=content.match(commentRx);return commentRx.lastIndex=0,m?exports.fromComment(m.pop()):null},exports.fromMapFileSource=function(content,dir){var m=content.match(mapFileCommentRx);return mapFileCommentRx.lastIndex=0,m?exports.fromMapFileComment(m.pop(),dir):null},exports.removeComments=function(src){return commentRx.lastIndex=0,src.replace(commentRx,"")},exports.removeMapFileComments=function(src){return mapFileCommentRx.lastIndex=0,src.replace(mapFileCommentRx,"")},Object.defineProperty(exports,"commentRegex",{get:function(){return commentRx.lastIndex=0,commentRx}}),Object.defineProperty(exports,"mapFileCommentRegex",{get:function(){return mapFileCommentRx.lastIndex=0,mapFileCommentRx}})}).call(exports,__webpack_require__(1).Buffer)},function(module,exports,__webpack_require__){var core=__webpack_require__(11);module.exports=function(it){return(core.JSON&&core.JSON.stringify||JSON.stringify).apply(JSON,arguments)}},function(module,exports,__webpack_require__){__webpack_require__(205),module.exports=__webpack_require__(11).Object.assign},function(module,exports,__webpack_require__){var $=__webpack_require__(7);module.exports=function(P,D){return $.create(P,D)}},function(module,exports,__webpack_require__){var $=__webpack_require__(7);module.exports=function(it,key,desc){return $.setDesc(it,key,desc)}},function(module,exports,__webpack_require__){var $=__webpack_require__(7);__webpack_require__(206),module.exports=function(it,key){return $.getDesc(it,key)}},function(module,exports,__webpack_require__){var $=__webpack_require__(7);__webpack_require__(207),module.exports=function(it){return $.getNames(it)}},function(module,exports,__webpack_require__){__webpack_require__(208),module.exports=__webpack_require__(11).Object.getPrototypeOf},function(module,exports,__webpack_require__){__webpack_require__(209),module.exports=__webpack_require__(11).Object.keys},function(module,exports,__webpack_require__){__webpack_require__(210),module.exports=__webpack_require__(11).Object.setPrototypeOf},function(module,exports,__webpack_require__){__webpack_require__(79),__webpack_require__(80),__webpack_require__(81),__webpack_require__(211),module.exports=__webpack_require__(11).Promise},function(module,exports,__webpack_require__){__webpack_require__(212),__webpack_require__(79),module.exports=__webpack_require__(11).Symbol},function(module,exports,__webpack_require__){__webpack_require__(80),__webpack_require__(81),module.exports=__webpack_require__(12)("iterator")},function(module,exports){module.exports=function(){}},function(module,exports,__webpack_require__){var isObject=__webpack_require__(34),document=__webpack_require__(14).document,is=isObject(document)&&isObject(document.createElement);module.exports=function(it){return is?document.createElement(it):{}}},function(module,exports,__webpack_require__){var $=__webpack_require__(7);module.exports=function(it){var keys=$.getKeys(it),getSymbols=$.getSymbols;if(getSymbols)for(var key,symbols=getSymbols(it),isEnum=$.isEnum,i=0;symbols.length>i;)isEnum.call(it,key=symbols[i++])&&keys.push(key);return keys}},function(module,exports,__webpack_require__){var ctx=__webpack_require__(26),call=__webpack_require__(188),isArrayIter=__webpack_require__(186),anObject=__webpack_require__(20),toLength=__webpack_require__(202),getIterFn=__webpack_require__(203);module.exports=function(iterable,entries,fn,that){var length,step,iterator,iterFn=getIterFn(iterable),f=ctx(fn,that,entries?2:1),index=0;if("function"!=typeof iterFn)throw TypeError(iterable+" is not iterable!");if(isArrayIter(iterFn))for(length=toLength(iterable.length);length>index;index++)entries?f(anObject(step=iterable[index])[0],step[1]):f(iterable[index]);else for(iterator=iterFn.call(iterable);!(step=iterator.next()).done;)call(iterator,f,step.value,entries)}},function(module,exports,__webpack_require__){module.exports=__webpack_require__(14).document&&document.documentElement},function(module,exports){module.exports=function(fn,args,that){var un=void 0===that;switch(args.length){case 0:return un?fn():fn.call(that);case 1:return un?fn(args[0]):fn.call(that,args[0]);case 2:return un?fn(args[0],args[1]):fn.call(that,args[0],args[1]);case 3:return un?fn(args[0],args[1],args[2]):fn.call(that,args[0],args[1],args[2]);case 4:return un?fn(args[0],args[1],args[2],args[3]):fn.call(that,args[0],args[1],args[2],args[3])}return fn.apply(that,args)}},function(module,exports,__webpack_require__){var Iterators=__webpack_require__(27),ITERATOR=__webpack_require__(12)("iterator"),ArrayProto=Array.prototype;module.exports=function(it){return void 0!==it&&(Iterators.Array===it||ArrayProto[ITERATOR]===it)}},function(module,exports,__webpack_require__){var cof=__webpack_require__(25);module.exports=Array.isArray||function(arg){return"Array"==cof(arg)}},function(module,exports,__webpack_require__){var anObject=__webpack_require__(20);module.exports=function(iterator,fn,value,entries){try{return entries?fn(anObject(value)[0],value[1]):fn(value)}catch(e){var ret=iterator["return"];throw void 0!==ret&&anObject(ret.call(iterator)),e}}},function(module,exports,__webpack_require__){"use strict";var $=__webpack_require__(7),descriptor=__webpack_require__(48),setToStringTag=__webpack_require__(36),IteratorPrototype={};__webpack_require__(46)(IteratorPrototype,__webpack_require__(12)("iterator"),function(){return this}),module.exports=function(Constructor,NAME,next){Constructor.prototype=$.create(IteratorPrototype,{next:descriptor(1,next)}),setToStringTag(Constructor,NAME+" Iterator")}},function(module,exports,__webpack_require__){var ITERATOR=__webpack_require__(12)("iterator"),SAFE_CLOSING=!1;try{var riter=[7][ITERATOR]();riter["return"]=function(){SAFE_CLOSING=!0},Array.from(riter,function(){throw 2})}catch(e){}module.exports=function(exec,skipClosing){if(!skipClosing&&!SAFE_CLOSING)return!1;var safe=!1;try{var arr=[7],iter=arr[ITERATOR]();iter.next=function(){safe=!0},arr[ITERATOR]=function(){return iter},exec(arr)}catch(e){}return safe}},function(module,exports){module.exports=function(done,value){return{value:value,done:!!done}}},function(module,exports,__webpack_require__){var $=__webpack_require__(7),toIObject=__webpack_require__(28);module.exports=function(object,el){for(var key,O=toIObject(object),keys=$.getKeys(O),length=keys.length,index=0;length>index;)if(O[key=keys[index++]]===el)return key}},function(module,exports,__webpack_require__){var head,last,notify,global=__webpack_require__(14),macrotask=__webpack_require__(201).set,Observer=global.MutationObserver||global.WebKitMutationObserver,process=global.process,Promise=global.Promise,isNode="process"==__webpack_require__(25)(process),flush=function(){var parent,domain,fn;for(isNode&&(parent=process.domain)&&(process.domain=null,parent.exit());head;)domain=head.domain,fn=head.fn,domain&&domain.enter(),fn(),domain&&domain.exit(),head=head.next;last=void 0,parent&&parent.enter()};if(isNode)notify=function(){process.nextTick(flush)};else if(Observer){var toggle=1,node=document.createTextNode("");new Observer(flush).observe(node,{characterData:!0}),notify=function(){node.data=toggle=-toggle}}else notify=Promise&&Promise.resolve?function(){Promise.resolve().then(flush)}:function(){macrotask.call(global,flush)};module.exports=function(fn){var task={fn:fn,next:void 0,domain:isNode&&process.domain};last&&(last.next=task),head||(head=task,notify()),last=task}},function(module,exports,__webpack_require__){var $=__webpack_require__(7),toObject=__webpack_require__(50),IObject=__webpack_require__(73);module.exports=__webpack_require__(33)(function(){var a=Object.assign,A={},B={},S=Symbol(),K="abcdefghijklmnopqrst";return A[S]=7,K.split("").forEach(function(k){B[k]=k}),7!=a({},A)[S]||Object.keys(a({},B)).join("")!=K})?function(target,source){for(var T=toObject(target),$$=arguments,$$len=$$.length,index=1,getKeys=$.getKeys,getSymbols=$.getSymbols,isEnum=$.isEnum;$$len>index;)for(var key,S=IObject($$[index++]),keys=getSymbols?getKeys(S).concat(getSymbols(S)):getKeys(S),length=keys.length,j=0;length>j;)isEnum.call(S,key=keys[j++])&&(T[key]=S[key]);return T}:Object.assign},function(module,exports,__webpack_require__){var redefine=__webpack_require__(49);module.exports=function(target,src){for(var key in src)redefine(target,key,src[key]);return target}},function(module,exports){module.exports=Object.is||function(x,y){return x===y?0!==x||1/x===1/y:x!=x&&y!=y}},function(module,exports,__webpack_require__){"use strict";var core=__webpack_require__(11),$=__webpack_require__(7),DESCRIPTORS=__webpack_require__(32),SPECIES=__webpack_require__(12)("species");module.exports=function(KEY){var C=core[KEY];DESCRIPTORS&&C&&!C[SPECIES]&&$.setDesc(C,SPECIES,{configurable:!0,get:function(){return this}})}},function(module,exports,__webpack_require__){var anObject=__webpack_require__(20),aFunction=__webpack_require__(43),SPECIES=__webpack_require__(12)("species");module.exports=function(O,D){var S,C=anObject(O).constructor;return void 0===C||void 0==(S=anObject(C)[SPECIES])?D:aFunction(S)}},function(module,exports){module.exports=function(it,Constructor,name){if(!(it instanceof Constructor))throw TypeError(name+": use the 'new' operator!");return it}},function(module,exports,__webpack_require__){var toInteger=__webpack_require__(77),defined=__webpack_require__(44);module.exports=function(TO_STRING){return function(that,pos){var a,b,s=String(defined(that)),i=toInteger(pos),l=s.length;return 0>i||i>=l?TO_STRING?"":void 0:(a=s.charCodeAt(i),55296>a||a>56319||i+1===l||(b=s.charCodeAt(i+1))<56320||b>57343?TO_STRING?s.charAt(i):a:TO_STRING?s.slice(i,i+2):(a-55296<<10)+(b-56320)+65536)}}},function(module,exports,__webpack_require__){var defer,channel,port,ctx=__webpack_require__(26),invoke=__webpack_require__(185),html=__webpack_require__(184),cel=__webpack_require__(181),global=__webpack_require__(14),process=global.process,setTask=global.setImmediate,clearTask=global.clearImmediate,MessageChannel=global.MessageChannel,counter=0,queue={},ONREADYSTATECHANGE="onreadystatechange",run=function(){var id=+this;if(queue.hasOwnProperty(id)){var fn=queue[id];delete queue[id],fn()}},listner=function(event){run.call(event.data)};setTask&&clearTask||(setTask=function(fn){for(var args=[],i=1;arguments.length>i;)args.push(arguments[i++]);return queue[++counter]=function(){invoke("function"==typeof fn?fn:Function(fn),args)},defer(counter),counter},clearTask=function(id){delete queue[id]},"process"==__webpack_require__(25)(process)?defer=function(id){process.nextTick(ctx(run,id,1))}:MessageChannel?(channel=new MessageChannel,port=channel.port2,channel.port1.onmessage=listner,defer=ctx(port.postMessage,port,1)):global.addEventListener&&"function"==typeof postMessage&&!global.importScripts?(defer=function(id){global.postMessage(id+"","*")},global.addEventListener("message",listner,!1)):defer=ONREADYSTATECHANGE in cel("script")?function(id){html.appendChild(cel("script"))[ONREADYSTATECHANGE]=function(){html.removeChild(this),run.call(id)}}:function(id){setTimeout(ctx(run,id,1),0)}),module.exports={set:setTask,clear:clearTask}},function(module,exports,__webpack_require__){var toInteger=__webpack_require__(77),min=Math.min;module.exports=function(it){return it>0?min(toInteger(it),9007199254740991):0}},function(module,exports,__webpack_require__){var classof=__webpack_require__(71),ITERATOR=__webpack_require__(12)("iterator"),Iterators=__webpack_require__(27);module.exports=__webpack_require__(11).getIteratorMethod=function(it){return void 0!=it?it[ITERATOR]||it["@@iterator"]||Iterators[classof(it)]:void 0}},function(module,exports,__webpack_require__){"use strict";var addToUnscopables=__webpack_require__(180),step=__webpack_require__(191),Iterators=__webpack_require__(27),toIObject=__webpack_require__(28);module.exports=__webpack_require__(74)(Array,"Array",function(iterated,kind){this._t=toIObject(iterated),this._i=0,this._k=kind},function(){var O=this._t,kind=this._k,index=this._i++;return!O||index>=O.length?(this._t=void 0,step(1)):"keys"==kind?step(0,index):"values"==kind?step(0,O[index]):step(0,[index,O[index]])},"values"),Iterators.Arguments=Iterators.Array,addToUnscopables("keys"),addToUnscopables("values"),addToUnscopables("entries")},function(module,exports,__webpack_require__){var $export=__webpack_require__(21);$export($export.S+$export.F,"Object",{assign:__webpack_require__(194)})},function(module,exports,__webpack_require__){var toIObject=__webpack_require__(28);__webpack_require__(35)("getOwnPropertyDescriptor",function($getOwnPropertyDescriptor){return function(it,key){return $getOwnPropertyDescriptor(toIObject(it),key)}})},function(module,exports,__webpack_require__){__webpack_require__(35)("getOwnPropertyNames",function(){return __webpack_require__(72).get})},function(module,exports,__webpack_require__){var toObject=__webpack_require__(50);__webpack_require__(35)("getPrototypeOf",function($getPrototypeOf){return function(it){return $getPrototypeOf(toObject(it))}})},function(module,exports,__webpack_require__){var toObject=__webpack_require__(50);__webpack_require__(35)("keys",function($keys){return function(it){return $keys(toObject(it))}})},function(module,exports,__webpack_require__){var $export=__webpack_require__(21);$export($export.S,"Object",{setPrototypeOf:__webpack_require__(75).set})},function(module,exports,__webpack_require__){"use strict";var Wrapper,$=__webpack_require__(7),LIBRARY=__webpack_require__(47),global=__webpack_require__(14),ctx=__webpack_require__(26),classof=__webpack_require__(71),$export=__webpack_require__(21),isObject=__webpack_require__(34),anObject=__webpack_require__(20),aFunction=__webpack_require__(43),strictNew=__webpack_require__(199),forOf=__webpack_require__(183),setProto=__webpack_require__(75).set,same=__webpack_require__(196),SPECIES=__webpack_require__(12)("species"),speciesConstructor=__webpack_require__(198),asap=__webpack_require__(193),PROMISE="Promise",process=global.process,isNode="process"==classof(process),P=global[PROMISE],testResolve=function(sub){var test=new P(function(){});return sub&&(test.constructor=Object),P.resolve(test)===test},USE_NATIVE=function(){function P2(x){var self=new P(x);return setProto(self,P2.prototype),self}var works=!1;try{if(works=P&&P.resolve&&testResolve(),setProto(P2,P),P2.prototype=$.create(P.prototype,{constructor:{value:P2}}),P2.resolve(5).then(function(){})instanceof P2||(works=!1),works&&__webpack_require__(32)){var thenableThenGotten=!1;P.resolve($.setDesc({},"then",{get:function(){thenableThenGotten=!0}})),works=thenableThenGotten}}catch(e){works=!1}return works}(),sameConstructor=function(a,b){return LIBRARY&&a===P&&b===Wrapper?!0:same(a,b)},getConstructor=function(C){var S=anObject(C)[SPECIES];return void 0!=S?S:C},isThenable=function(it){var then;return isObject(it)&&"function"==typeof(then=it.then)?then:!1},PromiseCapability=function(C){var resolve,reject;this.promise=new C(function($$resolve,$$reject){if(void 0!==resolve||void 0!==reject)throw TypeError("Bad Promise constructor");resolve=$$resolve,reject=$$reject}),this.resolve=aFunction(resolve),this.reject=aFunction(reject)},perform=function(exec){try{exec()}catch(e){return{error:e}}},notify=function(record,isReject){if(!record.n){record.n=!0;var chain=record.c;asap(function(){for(var value=record.v,ok=1==record.s,i=0,run=function(reaction){var result,then,handler=ok?reaction.ok:reaction.fail,resolve=reaction.resolve,reject=reaction.reject;try{handler?(ok||(record.h=!0),result=handler===!0?value:handler(value),result===reaction.promise?reject(TypeError("Promise-chain cycle")):(then=isThenable(result))?then.call(result,resolve,reject):resolve(result)):reject(value)}catch(e){reject(e)}};chain.length>i;)run(chain[i++]);chain.length=0,record.n=!1,isReject&&setTimeout(function(){var handler,console,promise=record.p;isUnhandled(promise)&&(isNode?process.emit("unhandledRejection",value,promise):(handler=global.onunhandledrejection)?handler({promise:promise,reason:value}):(console=global.console)&&console.error&&console.error("Unhandled promise rejection",value)),record.a=void 0},1)})}},isUnhandled=function(promise){var reaction,record=promise._d,chain=record.a||record.c,i=0;if(record.h)return!1;for(;chain.length>i;)if(reaction=chain[i++],reaction.fail||!isUnhandled(reaction.promise))return!1;return!0},$reject=function(value){var record=this;record.d||(record.d=!0,record=record.r||record,record.v=value,record.s=2,record.a=record.c.slice(),notify(record,!0))},$resolve=function(value){var then,record=this;if(!record.d){record.d=!0,record=record.r||record;try{if(record.p===value)throw TypeError("Promise can't be resolved itself");(then=isThenable(value))?asap(function(){var wrapper={r:record,d:!1};try{then.call(value,ctx($resolve,wrapper,1),ctx($reject,wrapper,1))}catch(e){$reject.call(wrapper,e)}}):(record.v=value,record.s=1,notify(record,!1))}catch(e){$reject.call({r:record,d:!1},e)}}};USE_NATIVE||(P=function(executor){aFunction(executor);var record=this._d={p:strictNew(this,P,PROMISE),c:[],a:void 0,s:0,d:!1,v:void 0,h:!1,n:!1};try{executor(ctx($resolve,record,1),ctx($reject,record,1))}catch(err){$reject.call(record,err)}},__webpack_require__(195)(P.prototype,{then:function(onFulfilled,onRejected){var reaction=new PromiseCapability(speciesConstructor(this,P)),promise=reaction.promise,record=this._d;return reaction.ok="function"==typeof onFulfilled?onFulfilled:!0,reaction.fail="function"==typeof onRejected&&onRejected,record.c.push(reaction),record.a&&record.a.push(reaction),record.s&¬ify(record,!1),promise},"catch":function(onRejected){return this.then(void 0,onRejected)}})),$export($export.G+$export.W+$export.F*!USE_NATIVE,{Promise:P}),__webpack_require__(36)(P,PROMISE),__webpack_require__(197)(PROMISE),Wrapper=__webpack_require__(11)[PROMISE],$export($export.S+$export.F*!USE_NATIVE,PROMISE,{reject:function(r){var capability=new PromiseCapability(this),$$reject=capability.reject;return $$reject(r),capability.promise}}),$export($export.S+$export.F*(!USE_NATIVE||testResolve(!0)),PROMISE,{resolve:function(x){if(x instanceof P&&sameConstructor(x.constructor,this))return x;var capability=new PromiseCapability(this),$$resolve=capability.resolve;return $$resolve(x),capability.promise}}),$export($export.S+$export.F*!(USE_NATIVE&&__webpack_require__(190)(function(iter){P.all(iter)["catch"](function(){})})),PROMISE,{all:function(iterable){var C=getConstructor(this),capability=new PromiseCapability(C),resolve=capability.resolve,reject=capability.reject,values=[],abrupt=perform(function(){forOf(iterable,!1,values.push,values);var remaining=values.length,results=Array(remaining);remaining?$.each.call(values,function(promise,index){var alreadyCalled=!1;C.resolve(promise).then(function(value){alreadyCalled||(alreadyCalled=!0,results[index]=value,--remaining||resolve(results))},reject)}):resolve(results)});return abrupt&&reject(abrupt.error),capability.promise},race:function(iterable){var C=getConstructor(this),capability=new PromiseCapability(C),reject=capability.reject,abrupt=perform(function(){forOf(iterable,!1,function(promise){C.resolve(promise).then(capability.resolve,reject)})});return abrupt&&reject(abrupt.error),capability.promise}})},function(module,exports,__webpack_require__){"use strict";var $=__webpack_require__(7),global=__webpack_require__(14),has=__webpack_require__(45),DESCRIPTORS=__webpack_require__(32),$export=__webpack_require__(21),redefine=__webpack_require__(49),$fails=__webpack_require__(33),shared=__webpack_require__(76),setToStringTag=__webpack_require__(36),uid=__webpack_require__(78),wks=__webpack_require__(12),keyOf=__webpack_require__(192),$names=__webpack_require__(72),enumKeys=__webpack_require__(182),isArray=__webpack_require__(187),anObject=__webpack_require__(20),toIObject=__webpack_require__(28),createDesc=__webpack_require__(48),getDesc=$.getDesc,setDesc=$.setDesc,_create=$.create,getNames=$names.get,$Symbol=global.Symbol,$JSON=global.JSON,_stringify=$JSON&&$JSON.stringify,setter=!1,HIDDEN=wks("_hidden"),isEnum=$.isEnum,SymbolRegistry=shared("symbol-registry"),AllSymbols=shared("symbols"),useNative="function"==typeof $Symbol,ObjectProto=Object.prototype,setSymbolDesc=DESCRIPTORS&&$fails(function(){ return 7!=_create(setDesc({},"a",{get:function(){return setDesc(this,"a",{value:7}).a}})).a})?function(it,key,D){var protoDesc=getDesc(ObjectProto,key);protoDesc&&delete ObjectProto[key],setDesc(it,key,D),protoDesc&&it!==ObjectProto&&setDesc(ObjectProto,key,protoDesc)}:setDesc,wrap=function(tag){var sym=AllSymbols[tag]=_create($Symbol.prototype);return sym._k=tag,DESCRIPTORS&&setter&&setSymbolDesc(ObjectProto,tag,{configurable:!0,set:function(value){has(this,HIDDEN)&&has(this[HIDDEN],tag)&&(this[HIDDEN][tag]=!1),setSymbolDesc(this,tag,createDesc(1,value))}}),sym},isSymbol=function(it){return"symbol"==typeof it},$defineProperty=function(it,key,D){return D&&has(AllSymbols,key)?(D.enumerable?(has(it,HIDDEN)&&it[HIDDEN][key]&&(it[HIDDEN][key]=!1),D=_create(D,{enumerable:createDesc(0,!1)})):(has(it,HIDDEN)||setDesc(it,HIDDEN,createDesc(1,{})),it[HIDDEN][key]=!0),setSymbolDesc(it,key,D)):setDesc(it,key,D)},$defineProperties=function(it,P){anObject(it);for(var key,keys=enumKeys(P=toIObject(P)),i=0,l=keys.length;l>i;)$defineProperty(it,key=keys[i++],P[key]);return it},$create=function(it,P){return void 0===P?_create(it):$defineProperties(_create(it),P)},$propertyIsEnumerable=function(key){var E=isEnum.call(this,key);return E||!has(this,key)||!has(AllSymbols,key)||has(this,HIDDEN)&&this[HIDDEN][key]?E:!0},$getOwnPropertyDescriptor=function(it,key){var D=getDesc(it=toIObject(it),key);return!D||!has(AllSymbols,key)||has(it,HIDDEN)&&it[HIDDEN][key]||(D.enumerable=!0),D},$getOwnPropertyNames=function(it){for(var key,names=getNames(toIObject(it)),result=[],i=0;names.length>i;)has(AllSymbols,key=names[i++])||key==HIDDEN||result.push(key);return result},$getOwnPropertySymbols=function(it){for(var key,names=getNames(toIObject(it)),result=[],i=0;names.length>i;)has(AllSymbols,key=names[i++])&&result.push(AllSymbols[key]);return result},$stringify=function(it){if(void 0!==it&&!isSymbol(it)){for(var replacer,$replacer,args=[it],i=1,$$=arguments;$$.length>i;)args.push($$[i++]);return replacer=args[1],"function"==typeof replacer&&($replacer=replacer),($replacer||!isArray(replacer))&&(replacer=function(key,value){return $replacer&&(value=$replacer.call(this,key,value)),isSymbol(value)?void 0:value}),args[1]=replacer,_stringify.apply($JSON,args)}},buggyJSON=$fails(function(){var S=$Symbol();return"[null]"!=_stringify([S])||"{}"!=_stringify({a:S})||"{}"!=_stringify(Object(S))});useNative||($Symbol=function(){if(isSymbol(this))throw TypeError("Symbol is not a constructor");return wrap(uid(arguments.length>0?arguments[0]:void 0))},redefine($Symbol.prototype,"toString",function(){return this._k}),isSymbol=function(it){return it instanceof $Symbol},$.create=$create,$.isEnum=$propertyIsEnumerable,$.getDesc=$getOwnPropertyDescriptor,$.setDesc=$defineProperty,$.setDescs=$defineProperties,$.getNames=$names.get=$getOwnPropertyNames,$.getSymbols=$getOwnPropertySymbols,DESCRIPTORS&&!__webpack_require__(47)&&redefine(ObjectProto,"propertyIsEnumerable",$propertyIsEnumerable,!0));var symbolStatics={"for":function(key){return has(SymbolRegistry,key+="")?SymbolRegistry[key]:SymbolRegistry[key]=$Symbol(key)},keyFor:function(key){return keyOf(SymbolRegistry,key)},useSetter:function(){setter=!0},useSimple:function(){setter=!1}};$.each.call("hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),function(it){var sym=wks(it);symbolStatics[it]=useNative?sym:wrap(sym)}),setter=!0,$export($export.G+$export.W,{Symbol:$Symbol}),$export($export.S,"Symbol",symbolStatics),$export($export.S+$export.F*!useNative,"Object",{create:$create,defineProperty:$defineProperty,defineProperties:$defineProperties,getOwnPropertyDescriptor:$getOwnPropertyDescriptor,getOwnPropertyNames:$getOwnPropertyNames,getOwnPropertySymbols:$getOwnPropertySymbols}),$JSON&&$export($export.S+$export.F*(!useNative||buggyJSON),"JSON",{stringify:$stringify}),setToStringTag($Symbol,"Symbol"),setToStringTag(Math,"Math",!0),setToStringTag(global.JSON,"JSON",!0)},function(module,exports,__webpack_require__){(function(Buffer){function Hmac(alg,key){if(!(this instanceof Hmac))return new Hmac(alg,key);this._opad=opad,this._alg=alg;var blocksize="sha512"===alg?128:64;key=this._key=Buffer.isBuffer(key)?key:new Buffer(key),key.length>blocksize?key=createHash(alg).update(key).digest():key.lengthi;i++)ipad[i]=54^key[i],opad[i]=92^key[i];this._hash=createHash(alg).update(ipad)}var createHash=__webpack_require__(82),zeroBuffer=new Buffer(128);zeroBuffer.fill(0),module.exports=Hmac,Hmac.prototype.update=function(data,enc){return this._hash.update(data,enc),this},Hmac.prototype.digest=function(enc){var h=this._hash.digest();return createHash(this._alg).update(this._opad).update(h).digest(enc)}}).call(exports,__webpack_require__(1).Buffer)},function(module,exports,__webpack_require__){(function(Buffer){function toArray(buf,bigEndian){if(buf.length%intSize!==0){var len=buf.length+(intSize-buf.length%intSize);buf=Buffer.concat([buf,zeroBuffer],len)}for(var arr=[],fn=bigEndian?buf.readInt32BE:buf.readInt32LE,i=0;i>5]|=128<>>9<<4)+14]=len;for(var a=1732584193,b=-271733879,c=-1732584194,d=271733878,i=0;i>16)+(y>>16)+(lsw>>16);return msw<<16|65535&lsw}function bit_rol(num,cnt){return num<>>32-cnt}var helpers=__webpack_require__(214);module.exports=function(buf){return helpers.hash(buf,core_md5,16)}},function(module,exports,__webpack_require__){var pbkdf2Export=__webpack_require__(274);module.exports=function(crypto,exports){exports=exports||{};var exported=pbkdf2Export(crypto);return exports.pbkdf2=exported.pbkdf2,exports.pbkdf2Sync=exported.pbkdf2Sync,exports}},function(module,exports,__webpack_require__){(function(global,Buffer){!function(){var g=("undefined"==typeof window?global:window)||{};_crypto=g.crypto||g.msCrypto||__webpack_require__(335),module.exports=function(size){if(_crypto.getRandomValues){var bytes=new Buffer(size);return _crypto.getRandomValues(bytes),bytes}if(_crypto.randomBytes)return _crypto.randomBytes(size);throw new Error("secure random number generation not supported by this browser\nuse chrome, FireFox or Internet Explorer 11")}}()}).call(exports,function(){return this}(),__webpack_require__(1).Buffer)},function(module,exports,__webpack_require__){var once=__webpack_require__(57),noop=function(){},isRequest=function(stream){return stream.setHeader&&"function"==typeof stream.abort},eos=function(stream,opts,callback){if("function"==typeof opts)return eos(stream,null,opts);opts||(opts={}),callback=once(callback||noop);var ws=stream._writableState,rs=stream._readableState,readable=opts.readable||opts.readable!==!1&&stream.readable,writable=opts.writable||opts.writable!==!1&&stream.writable,onlegacyfinish=function(){stream.writable||onfinish()},onfinish=function(){writable=!1,readable||callback()},onend=function(){readable=!1,writable||callback()},onclose=function(){return(!readable||rs&&rs.ended)&&(!writable||ws&&ws.ended)?void 0:callback(new Error("premature close"))},onrequest=function(){stream.req.on("finish",onfinish)};return isRequest(stream)?(stream.on("complete",onfinish),stream.on("abort",onclose),stream.req?onrequest():stream.on("request",onrequest)):writable&&!ws&&(stream.on("end",onlegacyfinish),stream.on("close",onlegacyfinish)),stream.on("end",onend),stream.on("finish",onfinish),opts.error!==!1&&stream.on("error",callback),stream.on("close",onclose),function(){stream.removeListener("complete",onfinish),stream.removeListener("abort",onclose),stream.removeListener("request",onrequest),stream.req&&stream.req.removeListener("finish",onfinish),stream.removeListener("end",onlegacyfinish),stream.removeListener("close",onlegacyfinish),stream.removeListener("finish",onfinish),stream.removeListener("end",onend),stream.removeListener("error",callback),stream.removeListener("close",onclose)}};module.exports=eos},function(module,exports){/*! * expand-brackets * @@ -135,7 +135,7 @@ module.exports=function(str){if(46===str.charCodeAt(0)&&-1===str.indexOf("/",1)) * Copyright (c) 2014-2015, Jon Schlinkert. * Licensed under the MIT License. */ -"use strict";var isArray=__webpack_require__(40);module.exports=function(o){return null!=o&&"object"==typeof o&&!isArray(o)}},function(module,exports){module.exports={O_RDONLY:0,O_WRONLY:1,O_RDWR:2,S_IFMT:61440,S_IFREG:32768,S_IFDIR:16384,S_IFCHR:8192,S_IFBLK:24576,S_IFIFO:4096,S_IFLNK:40960,S_IFSOCK:49152,O_CREAT:512,O_EXCL:2048,O_NOCTTY:131072,O_TRUNC:1024,O_APPEND:8,O_DIRECTORY:1048576,O_NOFOLLOW:256,O_SYNC:128,O_SYMLINK:2097152,S_IRWXU:448,S_IRUSR:256,S_IWUSR:128,S_IXUSR:64,S_IRWXG:56,S_IRGRP:32,S_IWGRP:16,S_IXGRP:8,S_IRWXO:7,S_IROTH:4,S_IWOTH:2,S_IXOTH:1,E2BIG:7,EACCES:13,EADDRINUSE:48,EADDRNOTAVAIL:49,EAFNOSUPPORT:47,EAGAIN:35,EALREADY:37,EBADF:9,EBADMSG:94,EBUSY:16,ECANCELED:89,ECHILD:10,ECONNABORTED:53,ECONNREFUSED:61,ECONNRESET:54,EDEADLK:11,EDESTADDRREQ:39,EDOM:33,EDQUOT:69,EEXIST:17,EFAULT:14,EFBIG:27,EHOSTUNREACH:65,EIDRM:90,EILSEQ:92,EINPROGRESS:36,EINTR:4,EINVAL:22,EIO:5,EISCONN:56,EISDIR:21,ELOOP:62,EMFILE:24,EMLINK:31,EMSGSIZE:40,EMULTIHOP:95,ENAMETOOLONG:63,ENETDOWN:50,ENETRESET:52,ENETUNREACH:51,ENFILE:23,ENOBUFS:55,ENODATA:96,ENODEV:19,ENOENT:2,ENOEXEC:8,ENOLCK:77,ENOLINK:97,ENOMEM:12,ENOMSG:91,ENOPROTOOPT:42,ENOSPC:28,ENOSR:98,ENOSTR:99,ENOSYS:78,ENOTCONN:57,ENOTDIR:20,ENOTEMPTY:66,ENOTSOCK:38,ENOTSUP:45,ENOTTY:25,ENXIO:6,EOPNOTSUPP:102,EOVERFLOW:84,EPERM:1,EPIPE:32,EPROTO:100,EPROTONOSUPPORT:43,EPROTOTYPE:41,ERANGE:34,EROFS:30,ESPIPE:29,ESRCH:3,ESTALE:70,ETIME:101,ETIMEDOUT:60,ETXTBSY:26,EWOULDBLOCK:35,EXDEV:18,SIGHUP:1,SIGINT:2,SIGQUIT:3,SIGILL:4,SIGTRAP:5,SIGABRT:6,SIGIOT:6,SIGBUS:10,SIGFPE:8,SIGKILL:9,SIGUSR1:30,SIGSEGV:11,SIGUSR2:31,SIGPIPE:13,SIGALRM:14,SIGTERM:15,SIGCHLD:20,SIGCONT:19,SIGSTOP:17,SIGTSTP:18,SIGTTIN:21,SIGTTOU:22,SIGURG:16,SIGXCPU:24,SIGXFSZ:25,SIGVTALRM:26,SIGPROF:27,SIGWINCH:28,SIGIO:23,SIGSYS:12,SSL_OP_ALL:2147486719,SSL_OP_ALLOW_UNSAFE_LEGACY_RENEGOTIATION:262144,SSL_OP_CIPHER_SERVER_PREFERENCE:4194304,SSL_OP_CISCO_ANYCONNECT:32768,SSL_OP_COOKIE_EXCHANGE:8192,SSL_OP_CRYPTOPRO_TLSEXT_BUG:2147483648,SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS:2048,SSL_OP_EPHEMERAL_RSA:2097152,SSL_OP_LEGACY_SERVER_CONNECT:4,SSL_OP_MICROSOFT_BIG_SSLV3_BUFFER:32,SSL_OP_MICROSOFT_SESS_ID_BUG:1,SSL_OP_MSIE_SSLV2_RSA_PADDING:64,SSL_OP_NETSCAPE_CA_DN_BUG:536870912,SSL_OP_NETSCAPE_CHALLENGE_BUG:2,SSL_OP_NETSCAPE_DEMO_CIPHER_CHANGE_BUG:1073741824,SSL_OP_NETSCAPE_REUSE_CIPHER_CHANGE_BUG:8,SSL_OP_NO_COMPRESSION:131072,SSL_OP_NO_QUERY_MTU:4096,SSL_OP_NO_SESSION_RESUMPTION_ON_RENEGOTIATION:65536,SSL_OP_NO_SSLv2:16777216,SSL_OP_NO_SSLv3:33554432,SSL_OP_NO_TICKET:16384,SSL_OP_NO_TLSv1:67108864,SSL_OP_NO_TLSv1_1:268435456,SSL_OP_NO_TLSv1_2:134217728,SSL_OP_PKCS1_CHECK_1:0,SSL_OP_PKCS1_CHECK_2:0,SSL_OP_SINGLE_DH_USE:1048576,SSL_OP_SINGLE_ECDH_USE:524288,SSL_OP_SSLEAY_080_CLIENT_DH_BUG:128,SSL_OP_SSLREF2_REUSE_CERT_TYPE_BUG:16,SSL_OP_TLS_BLOCK_PADDING_BUG:512,SSL_OP_TLS_D5_BUG:256,SSL_OP_TLS_ROLLBACK_BUG:8388608,NPN_ENABLED:1}},function(module,exports){module.exports={name:"ipfs-api",version:"2.13.0",description:"A client library for the IPFS API",main:"src/index.js",dependencies:{"merge-stream":"^1.0.0",multiaddr:"^1.0.0","multipart-stream":"^2.0.0",ndjson:"^1.4.3",qs:"^6.0.0","require-dir":"^0.3.0",vinyl:"^1.1.0","vinyl-fs-browser":"^2.1.1-1","vinyl-multipart-stream":"^1.2.6",wreck:"^7.0.0"},engines:{node:">=4.2.2"},repository:{type:"git",url:"https://github.com/ipfs/js-ipfs-api"},devDependencies:{"babel-core":"^6.1.21","babel-eslint":"^5.0.0-beta9","babel-loader":"^6.2.0","babel-plugin-transform-runtime":"^6.1.18","babel-preset-es2015":"^6.0.15","babel-runtime":"^6.3.19",chai:"^3.4.1",concurrently:"^1.0.0",eslint:"^2.0.0-rc.0","eslint-config-standard":"^5.1.0","eslint-plugin-promise":"^1.0.8","eslint-plugin-standard":"^1.3.1","glob-stream":"5.3.1",gulp:"^3.9.0","gulp-bump":"^1.0.0","gulp-eslint":"^2.0.0-rc-3","gulp-filter":"^3.0.1","gulp-git":"^1.6.0","gulp-load-plugins":"^1.0.0","gulp-mocha":"^2.1.3","gulp-size":"^2.0.0","gulp-tag-version":"^1.3.0","gulp-util":"^3.0.7","https-browserify":"0.0.1","ipfsd-ctl":"^0.8.1","json-loader":"^0.5.3",karma:"^0.13.11","karma-chrome-launcher":"^0.2.1","karma-firefox-launcher":"^0.1.7","karma-mocha":"^0.2.0","karma-mocha-reporter":"^1.1.1","karma-sauce-launcher":"^0.3.0","karma-webpack":"^1.7.0",mocha:"^2.3.3","pre-commit":"^1.0.6","raw-loader":"^0.5.1",rimraf:"^2.4.5","run-sequence":"^1.1.4",semver:"^5.1.0","stream-equal":"^0.1.7","stream-http":"^2.1.0","uglify-js":"^2.4.24","vinyl-buffer":"^1.0.0","vinyl-source-stream":"^1.1.0","webpack-stream":"^3.1.0"},scripts:{test:"gulp test","test:node":"gulp test:node","test:browser":"gulp test:browser",lint:"gulp lint",build:"gulp build"},"pre-commit":["lint","test"],keywords:["ipfs"],author:"Matt Bell ",contributors:["Travis Person ","Jeromy Jonson ","David Dias ","Juan Benet ","Friedel Ziegelmayer "],license:"MIT",bugs:{url:"https://github.com/ipfs/js-ipfs-api/issues"},homepage:"https://github.com/ipfs/js-ipfs-api"}},function(module,exports,__webpack_require__){var json="undefined"!=typeof JSON?JSON:__webpack_require__(250);module.exports=function(obj,opts){opts||(opts={}),"function"==typeof opts&&(opts={cmp:opts});var space=opts.space||"";"number"==typeof space&&(space=Array(space+1).join(" "));var cycles="boolean"==typeof opts.cycles?opts.cycles:!1,replacer=opts.replacer||function(key,value){return value},cmp=opts.cmp&&function(f){return function(node){return function(a,b){var aobj={key:a,value:node[a]},bobj={key:b,value:node[b]};return f(aobj,bobj)}}}(opts.cmp),seen=[];return function stringify(parent,key,node,level){var indent=space?"\n"+new Array(level+1).join(space):"",colonSeparator=space?": ":":";if(node&&node.toJSON&&"function"==typeof node.toJSON&&(node=node.toJSON()),node=replacer.call(parent,key,node),void 0!==node){if("object"!=typeof node||null===node)return json.stringify(node);if(isArray(node)){for(var out=[],i=0;i="0"&&"9">=ch;)string+=ch,next();if("."===ch)for(string+=".";next()&&ch>="0"&&"9">=ch;)string+=ch;if("e"===ch||"E"===ch)for(string+=ch,next(),("-"===ch||"+"===ch)&&(string+=ch,next());ch>="0"&&"9">=ch;)string+=ch,next();return number=+string,isFinite(number)?number:void error("Bad number")},string=function(){var hex,i,uffff,string="";if('"'===ch)for(;next();){if('"'===ch)return next(),string;if("\\"===ch)if(next(),"u"===ch){for(uffff=0,i=0;4>i&&(hex=parseInt(next(),16),isFinite(hex));i+=1)uffff=16*uffff+hex;string+=String.fromCharCode(uffff)}else{if("string"!=typeof escapee[ch])break;string+=escapee[ch]}else string+=ch}error("Bad string")},white=function(){for(;ch&&" ">=ch;)next()},word=function(){switch(ch){case"t":return next("t"),next("r"),next("u"),next("e"),!0;case"f":return next("f"),next("a"),next("l"),next("s"),next("e"),!1;case"n":return next("n"),next("u"),next("l"),next("l"),null}error("Unexpected '"+ch+"'")},array=function(){var array=[];if("["===ch){if(next("["),white(),"]"===ch)return next("]"),array;for(;ch;){if(array.push(value()),white(),"]"===ch)return next("]"),array;next(","),white()}}error("Bad array")},object=function(){var key,object={};if("{"===ch){if(next("{"),white(),"}"===ch)return next("}"),object;for(;ch;){if(key=string(),white(),next(":"),Object.hasOwnProperty.call(object,key)&&error('Duplicate key "'+key+'"'),object[key]=value(),white(),"}"===ch)return next("}"),object;next(","),white()}}error("Bad object")};value=function(){switch(white(),ch){case"{":return object();case"[":return array();case'"':return string();case"-":return number();default:return ch>="0"&&"9">=ch?number():word()}},module.exports=function(source,reviver){var result;return text=source,at=0,ch=" ",result=value(),white(),ch&&error("Syntax error"),"function"==typeof reviver?function walk(holder,key){var k,v,value=holder[key];if(value&&"object"==typeof value)for(k in value)Object.prototype.hasOwnProperty.call(value,k)&&(v=walk(value,k),void 0!==v?value[k]=v:delete value[k]);return reviver.call(holder,key,value)}({"":result},""):result}},function(module,exports){function quote(string){return escapable.lastIndex=0,escapable.test(string)?'"'+string.replace(escapable,function(a){var c=meta[a];return"string"==typeof c?c:"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+string+'"'}function str(key,holder){var i,k,v,length,partial,mind=gap,value=holder[key];switch(value&&"object"==typeof value&&"function"==typeof value.toJSON&&(value=value.toJSON(key)),"function"==typeof rep&&(value=rep.call(holder,key,value)),typeof value){case"string":return quote(value);case"number":return isFinite(value)?String(value):"null";case"boolean":case"null":return String(value);case"object":if(!value)return"null";if(gap+=indent,partial=[],"[object Array]"===Object.prototype.toString.apply(value)){for(length=value.length,i=0;length>i;i+=1)partial[i]=str(i,value)||"null";return v=0===partial.length?"[]":gap?"[\n"+gap+partial.join(",\n"+gap)+"\n"+mind+"]":"["+partial.join(",")+"]",gap=mind,v}if(rep&&"object"==typeof rep)for(length=rep.length,i=0;length>i;i+=1)k=rep[i],"string"==typeof k&&(v=str(k,value),v&&partial.push(quote(k)+(gap?": ":":")+v));else for(k in value)Object.prototype.hasOwnProperty.call(value,k)&&(v=str(k,value),v&&partial.push(quote(k)+(gap?": ":":")+v));return v=0===partial.length?"{}":gap?"{\n"+gap+partial.join(",\n"+gap)+"\n"+mind+"}":"{"+partial.join(",")+"}",gap=mind,v}}var gap,indent,rep,escapable=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,meta={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};module.exports=function(value,replacer,space){var i;if(gap="",indent="","number"==typeof space)for(i=0;space>i;i+=1)indent+=" ";else"string"==typeof space&&(indent=space);if(rep=replacer,replacer&&"function"!=typeof replacer&&("object"!=typeof replacer||"number"!=typeof replacer.length))throw new Error("JSON.stringify");return str("",{"":value})}},function(module,exports){function arrayFilter(array,predicate){for(var index=-1,length=array.length,resIndex=-1,result=[];++indexarrLength))return!1;for(;++index-1&&value%1==0&&MAX_SAFE_INTEGER>=value}function isObject(value){var type=typeof value;return!!value&&("object"==type||"function"==type)}function isObjectLike(value){return!!value&&"object"==typeof value}var MAX_SAFE_INTEGER=9007199254740991,argsTag="[object Arguments]",funcTag="[object Function]",genTag="[object GeneratorFunction]",objectProto=Object.prototype,hasOwnProperty=objectProto.hasOwnProperty,objectToString=objectProto.toString,propertyIsEnumerable=objectProto.propertyIsEnumerable,getLength=baseProperty("length");module.exports=isArguments},function(module,exports){function isLength(value){return"number"==typeof value&&value>-1&&value%1==0&&MAX_SAFE_INTEGER>=value}function isObjectLike(value){return!!value&&"object"==typeof value}function isTypedArray(value){return isObjectLike(value)&&isLength(value.length)&&!!typedArrayTags[objectToString.call(value)]}var MAX_SAFE_INTEGER=9007199254740991,argsTag="[object Arguments]",arrayTag="[object Array]",boolTag="[object Boolean]",dateTag="[object Date]",errorTag="[object Error]",funcTag="[object Function]",mapTag="[object Map]",numberTag="[object Number]",objectTag="[object Object]",regexpTag="[object RegExp]",setTag="[object Set]",stringTag="[object String]",weakMapTag="[object WeakMap]",arrayBufferTag="[object ArrayBuffer]",float32Tag="[object Float32Array]",float64Tag="[object Float64Array]",int8Tag="[object Int8Array]",int16Tag="[object Int16Array]",int32Tag="[object Int32Array]",uint8Tag="[object Uint8Array]",uint8ClampedTag="[object Uint8ClampedArray]",uint16Tag="[object Uint16Array]",uint32Tag="[object Uint32Array]",typedArrayTags={};typedArrayTags[float32Tag]=typedArrayTags[float64Tag]=typedArrayTags[int8Tag]=typedArrayTags[int16Tag]=typedArrayTags[int32Tag]=typedArrayTags[uint8Tag]=typedArrayTags[uint8ClampedTag]=typedArrayTags[uint16Tag]=typedArrayTags[uint32Tag]=!0,typedArrayTags[argsTag]=typedArrayTags[arrayTag]=typedArrayTags[arrayBufferTag]=typedArrayTags[boolTag]=typedArrayTags[dateTag]=typedArrayTags[errorTag]=typedArrayTags[funcTag]=typedArrayTags[mapTag]=typedArrayTags[numberTag]=typedArrayTags[objectTag]=typedArrayTags[regexpTag]=typedArrayTags[setTag]=typedArrayTags[stringTag]=typedArrayTags[weakMapTag]=!1;var objectProto=Object.prototype,objectToString=objectProto.toString;module.exports=isTypedArray},function(module,exports,__webpack_require__){function toObject(value){return isObject(value)?value:Object(value)}function isObject(value){var type=typeof value;return!!value&&("object"==type||"function"==type)}function pairs(object){object=toObject(object);for(var index=-1,props=keys(object),length=props.length,result=Array(length);++index=4.2.2"},repository:{type:"git",url:"https://github.com/ipfs/js-ipfs-api"},devDependencies:{"babel-core":"^6.1.21","babel-eslint":"^5.0.0-beta9","babel-loader":"^6.2.0","babel-plugin-transform-runtime":"^6.1.18","babel-preset-es2015":"^6.0.15","babel-runtime":"^6.3.19",chai:"^3.4.1",concurrently:"^1.0.0",eslint:"^2.0.0-rc.0","eslint-config-standard":"^5.1.0","eslint-plugin-promise":"^1.0.8","eslint-plugin-standard":"^1.3.1","glob-stream":"5.3.1",gulp:"^3.9.0","gulp-bump":"^1.0.0","gulp-eslint":"^2.0.0-rc-3","gulp-filter":"^4.0.0","gulp-git":"^1.6.0","gulp-load-plugins":"^1.0.0","gulp-mocha":"^2.1.3","gulp-size":"^2.0.0","gulp-tag-version":"^1.3.0","gulp-util":"^3.0.7","https-browserify":"0.0.1","ipfsd-ctl":"^0.8.1","json-loader":"^0.5.3",karma:"^0.13.11","karma-chrome-launcher":"^0.2.1","karma-firefox-launcher":"^0.1.7","karma-mocha":"^0.2.0","karma-mocha-reporter":"^1.1.1","karma-sauce-launcher":"^0.3.0","karma-webpack":"^1.7.0",mocha:"^2.3.3","pre-commit":"^1.0.6","raw-loader":"^0.5.1",rimraf:"^2.4.5","run-sequence":"^1.1.4",semver:"^5.1.0","stream-equal":"^0.1.7","stream-http":"^2.1.0","uglify-js":"^2.4.24","vinyl-buffer":"^1.0.0","vinyl-source-stream":"^1.1.0","webpack-stream":"^3.1.0"},scripts:{test:"gulp test","test:node":"gulp test:node","test:browser":"gulp test:browser",lint:"gulp lint",build:"gulp build"},"pre-commit":["lint","test"],keywords:["ipfs"],author:"Matt Bell ",contributors:["Travis Person ","Jeromy Jonson ","David Dias ","Juan Benet ","Friedel Ziegelmayer "],license:"MIT",bugs:{url:"https://github.com/ipfs/js-ipfs-api/issues"},homepage:"https://github.com/ipfs/js-ipfs-api"}},function(module,exports,__webpack_require__){var json="undefined"!=typeof JSON?JSON:__webpack_require__(250);module.exports=function(obj,opts){opts||(opts={}),"function"==typeof opts&&(opts={cmp:opts});var space=opts.space||"";"number"==typeof space&&(space=Array(space+1).join(" "));var cycles="boolean"==typeof opts.cycles?opts.cycles:!1,replacer=opts.replacer||function(key,value){return value},cmp=opts.cmp&&function(f){return function(node){return function(a,b){var aobj={key:a,value:node[a]},bobj={key:b,value:node[b]};return f(aobj,bobj)}}}(opts.cmp),seen=[];return function stringify(parent,key,node,level){var indent=space?"\n"+new Array(level+1).join(space):"",colonSeparator=space?": ":":";if(node&&node.toJSON&&"function"==typeof node.toJSON&&(node=node.toJSON()),node=replacer.call(parent,key,node),void 0!==node){if("object"!=typeof node||null===node)return json.stringify(node);if(isArray(node)){for(var out=[],i=0;i="0"&&"9">=ch;)string+=ch,next();if("."===ch)for(string+=".";next()&&ch>="0"&&"9">=ch;)string+=ch;if("e"===ch||"E"===ch)for(string+=ch,next(),("-"===ch||"+"===ch)&&(string+=ch,next());ch>="0"&&"9">=ch;)string+=ch,next();return number=+string,isFinite(number)?number:void error("Bad number")},string=function(){var hex,i,uffff,string="";if('"'===ch)for(;next();){if('"'===ch)return next(),string;if("\\"===ch)if(next(),"u"===ch){for(uffff=0,i=0;4>i&&(hex=parseInt(next(),16),isFinite(hex));i+=1)uffff=16*uffff+hex;string+=String.fromCharCode(uffff)}else{if("string"!=typeof escapee[ch])break;string+=escapee[ch]}else string+=ch}error("Bad string")},white=function(){for(;ch&&" ">=ch;)next()},word=function(){switch(ch){case"t":return next("t"),next("r"),next("u"),next("e"),!0;case"f":return next("f"),next("a"),next("l"),next("s"),next("e"),!1;case"n":return next("n"),next("u"),next("l"),next("l"),null}error("Unexpected '"+ch+"'")},array=function(){var array=[];if("["===ch){if(next("["),white(),"]"===ch)return next("]"),array;for(;ch;){if(array.push(value()),white(),"]"===ch)return next("]"),array;next(","),white()}}error("Bad array")},object=function(){var key,object={};if("{"===ch){if(next("{"),white(),"}"===ch)return next("}"),object;for(;ch;){if(key=string(),white(),next(":"),Object.hasOwnProperty.call(object,key)&&error('Duplicate key "'+key+'"'),object[key]=value(),white(),"}"===ch)return next("}"),object;next(","),white()}}error("Bad object")};value=function(){switch(white(),ch){case"{":return object();case"[":return array();case'"':return string();case"-":return number();default:return ch>="0"&&"9">=ch?number():word()}},module.exports=function(source,reviver){var result;return text=source,at=0,ch=" ",result=value(),white(),ch&&error("Syntax error"),"function"==typeof reviver?function walk(holder,key){var k,v,value=holder[key];if(value&&"object"==typeof value)for(k in value)Object.prototype.hasOwnProperty.call(value,k)&&(v=walk(value,k),void 0!==v?value[k]=v:delete value[k]);return reviver.call(holder,key,value)}({"":result},""):result}},function(module,exports){function quote(string){return escapable.lastIndex=0,escapable.test(string)?'"'+string.replace(escapable,function(a){var c=meta[a];return"string"==typeof c?c:"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+string+'"'}function str(key,holder){var i,k,v,length,partial,mind=gap,value=holder[key];switch(value&&"object"==typeof value&&"function"==typeof value.toJSON&&(value=value.toJSON(key)),"function"==typeof rep&&(value=rep.call(holder,key,value)),typeof value){case"string":return quote(value);case"number":return isFinite(value)?String(value):"null";case"boolean":case"null":return String(value);case"object":if(!value)return"null";if(gap+=indent,partial=[],"[object Array]"===Object.prototype.toString.apply(value)){for(length=value.length,i=0;length>i;i+=1)partial[i]=str(i,value)||"null";return v=0===partial.length?"[]":gap?"[\n"+gap+partial.join(",\n"+gap)+"\n"+mind+"]":"["+partial.join(",")+"]",gap=mind,v}if(rep&&"object"==typeof rep)for(length=rep.length,i=0;length>i;i+=1)k=rep[i],"string"==typeof k&&(v=str(k,value),v&&partial.push(quote(k)+(gap?": ":":")+v));else for(k in value)Object.prototype.hasOwnProperty.call(value,k)&&(v=str(k,value),v&&partial.push(quote(k)+(gap?": ":":")+v));return v=0===partial.length?"{}":gap?"{\n"+gap+partial.join(",\n"+gap)+"\n"+mind+"}":"{"+partial.join(",")+"}",gap=mind,v}}var gap,indent,rep,escapable=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,meta={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};module.exports=function(value,replacer,space){var i;if(gap="",indent="","number"==typeof space)for(i=0;space>i;i+=1)indent+=" ";else"string"==typeof space&&(indent=space);if(rep=replacer,replacer&&"function"!=typeof replacer&&("object"!=typeof replacer||"number"!=typeof replacer.length))throw new Error("JSON.stringify");return str("",{"":value})}},function(module,exports){function arrayFilter(array,predicate){for(var index=-1,length=array.length,resIndex=-1,result=[];++indexarrLength))return!1;for(;++index-1&&value%1==0&&MAX_SAFE_INTEGER>=value}function isObject(value){var type=typeof value;return!!value&&("object"==type||"function"==type)}function isObjectLike(value){return!!value&&"object"==typeof value}var MAX_SAFE_INTEGER=9007199254740991,argsTag="[object Arguments]",funcTag="[object Function]",genTag="[object GeneratorFunction]",objectProto=Object.prototype,hasOwnProperty=objectProto.hasOwnProperty,objectToString=objectProto.toString,propertyIsEnumerable=objectProto.propertyIsEnumerable,getLength=baseProperty("length");module.exports=isArguments},function(module,exports){function isLength(value){return"number"==typeof value&&value>-1&&value%1==0&&MAX_SAFE_INTEGER>=value}function isObjectLike(value){return!!value&&"object"==typeof value}function isTypedArray(value){return isObjectLike(value)&&isLength(value.length)&&!!typedArrayTags[objectToString.call(value)]}var MAX_SAFE_INTEGER=9007199254740991,argsTag="[object Arguments]",arrayTag="[object Array]",boolTag="[object Boolean]",dateTag="[object Date]",errorTag="[object Error]",funcTag="[object Function]",mapTag="[object Map]",numberTag="[object Number]",objectTag="[object Object]",regexpTag="[object RegExp]",setTag="[object Set]",stringTag="[object String]",weakMapTag="[object WeakMap]",arrayBufferTag="[object ArrayBuffer]",float32Tag="[object Float32Array]",float64Tag="[object Float64Array]",int8Tag="[object Int8Array]",int16Tag="[object Int16Array]",int32Tag="[object Int32Array]",uint8Tag="[object Uint8Array]",uint8ClampedTag="[object Uint8ClampedArray]",uint16Tag="[object Uint16Array]",uint32Tag="[object Uint32Array]",typedArrayTags={};typedArrayTags[float32Tag]=typedArrayTags[float64Tag]=typedArrayTags[int8Tag]=typedArrayTags[int16Tag]=typedArrayTags[int32Tag]=typedArrayTags[uint8Tag]=typedArrayTags[uint8ClampedTag]=typedArrayTags[uint16Tag]=typedArrayTags[uint32Tag]=!0,typedArrayTags[argsTag]=typedArrayTags[arrayTag]=typedArrayTags[arrayBufferTag]=typedArrayTags[boolTag]=typedArrayTags[dateTag]=typedArrayTags[errorTag]=typedArrayTags[funcTag]=typedArrayTags[mapTag]=typedArrayTags[numberTag]=typedArrayTags[objectTag]=typedArrayTags[regexpTag]=typedArrayTags[setTag]=typedArrayTags[stringTag]=typedArrayTags[weakMapTag]=!1;var objectProto=Object.prototype,objectToString=objectProto.toString;module.exports=isTypedArray},function(module,exports,__webpack_require__){function toObject(value){return isObject(value)?value:Object(value)}function isObject(value){var type=typeof value;return!!value&&("object"==type||"function"==type)}function pairs(object){object=toObject(object);for(var index=-1,props=keys(object),length=props.length,result=Array(length);++index * * Copyright (c) 2014-2015, Jon Schlinkert. @@ -200,6 +200,6 @@ module.exports=function(str,stripTrailing){if("string"!=typeof str)throw new Typ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -var zl=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],zr=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],sl=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],sr=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11],hl=[0,1518500249,1859775393,2400959708,2840853838],hr=[1352829926,1548603684,1836072691,2053994217,0],bytesToWords=function(bytes){for(var words=[],i=0,b=0;i>>5]|=bytes[i]<<24-b%32;return words},wordsToBytes=function(words){for(var bytes=[],b=0;b<32*words.length;b+=8)bytes.push(words[b>>>5]>>>24-b%32&255);return bytes},processBlock=function(H,M,offset){for(var i=0;16>i;i++){var offset_i=offset+i,M_offset_i=M[offset_i];M[offset_i]=16711935&(M_offset_i<<8|M_offset_i>>>24)|4278255360&(M_offset_i<<24|M_offset_i>>>8)}var al,bl,cl,dl,el,ar,br,cr,dr,er;ar=al=H[0],br=bl=H[1],cr=cl=H[2],dr=dl=H[3],er=el=H[4];for(var t,i=0;80>i;i+=1)t=al+M[offset+zl[i]]|0,t+=16>i?f1(bl,cl,dl)+hl[0]:32>i?f2(bl,cl,dl)+hl[1]:48>i?f3(bl,cl,dl)+hl[2]:64>i?f4(bl,cl,dl)+hl[3]:f5(bl,cl,dl)+hl[4],t=0|t,t=rotl(t,sl[i]),t=t+el|0,al=el,el=dl,dl=rotl(cl,10),cl=bl,bl=t,t=ar+M[offset+zr[i]]|0,t+=16>i?f5(br,cr,dr)+hr[0]:32>i?f4(br,cr,dr)+hr[1]:48>i?f3(br,cr,dr)+hr[2]:64>i?f2(br,cr,dr)+hr[3]:f1(br,cr,dr)+hr[4],t=0|t,t=rotl(t,sr[i]),t=t+er|0,ar=er,er=dr,dr=rotl(cr,10),cr=br,br=t;t=H[1]+cl+dr|0,H[1]=H[2]+dl+er|0,H[2]=H[3]+el+ar|0,H[3]=H[4]+al+br|0,H[4]=H[0]+bl+cr|0,H[0]=t}}).call(exports,__webpack_require__(1).Buffer)},function(module,exports,__webpack_require__){function SandwichStream(options){Readable.call(this,options),options=options||{},this._streamsActive=!1,this._streamsAdded=!1,this._streams=[],this._currentStream=void 0,this._errorsEmitted=!1,options.head&&(this._head=options.head),options.tail&&(this._tail=options.tail),options.separator&&(this._separator=options.separator)}function sandwichStream(options){var stream=new SandwichStream(options);return stream}var Readable=__webpack_require__(3).Readable;__webpack_require__(3).PassThrough;SandwichStream.prototype=Object.create(Readable.prototype,{constructor:SandwichStream}),SandwichStream.prototype._read=function(){this._streamsActive||(this._streamsActive=!0,this._pushHead(),this._streamNextStream())},SandwichStream.prototype.add=function(newStream){if(this._streamsActive)throw new Error("SandwichStream error adding new stream while streaming");this._streamsAdded=!0,this._streams.push(newStream),newStream.on("error",this._substreamOnError.bind(this))},SandwichStream.prototype._substreamOnError=function(error){this._errorsEmitted=!0,this.emit("error",error)},SandwichStream.prototype._pushHead=function(){this._head&&this.push(this._head)},SandwichStream.prototype._streamNextStream=function(){this._nextStream()?this._bindCurrentStreamEvents():(this._pushTail(),this.push(null))},SandwichStream.prototype._nextStream=function(){return this._currentStream=this._streams.shift(),void 0!==this._currentStream},SandwichStream.prototype._bindCurrentStreamEvents=function(){this._currentStream.on("readable",this._currentStreamOnReadable.bind(this)),this._currentStream.on("end",this._currentStreamOnEnd.bind(this))},SandwichStream.prototype._currentStreamOnReadable=function(){this.push(this._currentStream.read()||"")},SandwichStream.prototype._currentStreamOnEnd=function(){this._pushSeparator(),this._streamNextStream()},SandwichStream.prototype._pushSeparator=function(){this._streams.length>0&&this._separator&&this.push(this._separator)},SandwichStream.prototype._pushTail=function(){this._tail&&this.push(this._tail)},sandwichStream.SandwichStream=SandwichStream,module.exports=sandwichStream},function(module,exports){module.exports=function(Buffer){function Hash(blockSize,finalSize){this._block=new Buffer(blockSize),this._finalSize=finalSize,this._blockSize=blockSize,this._len=0,this._s=0}return Hash.prototype.init=function(){this._s=0,this._len=0},Hash.prototype.update=function(data,enc){"string"==typeof data&&(enc=enc||"utf8",data=new Buffer(data,enc));for(var l=this._len+=data.length,s=this._s=this._s||0,f=0,buffer=this._block;l>s;){for(var t=Math.min(data.length,f+this._blockSize-s%this._blockSize),ch=t-f,i=0;ch>i;i++)buffer[s%this._blockSize+i]=data[i+f];s+=ch,f+=ch,s%this._blockSize===0&&this._update(buffer)}return this._s=s,this},Hash.prototype.digest=function(enc){var l=8*this._len;this._block[this._len%this._blockSize]=128,this._block.fill(0,this._len%this._blockSize+1),l%(8*this._blockSize)>=8*this._finalSize&&(this._update(this._block),this._block.fill(0)),this._block.writeInt32BE(l,this._blockSize-4);var hash=this._update(this._block)||this._hash();return enc?hash.toString(enc):hash},Hash.prototype._update=function(){throw new Error("_update must be implemented by subclass")},Hash}},function(module,exports,__webpack_require__){var exports=module.exports=function(alg){var Alg=exports[alg];if(!Alg)throw new Error(alg+" is not supported (we accept pull requests)");return new Alg},Buffer=__webpack_require__(1).Buffer,Hash=__webpack_require__(286)(Buffer);exports.sha1=__webpack_require__(288)(Buffer,Hash),exports.sha256=__webpack_require__(289)(Buffer,Hash),exports.sha512=__webpack_require__(290)(Buffer,Hash)},function(module,exports,__webpack_require__){var inherits=__webpack_require__(8).inherits;module.exports=function(Buffer,Hash){function Sha1(){return POOL.length?POOL.pop().init():this instanceof Sha1?(this._w=W,Hash.call(this,64,56),this._h=null,void this.init()):new Sha1}function sha1_ft(t,b,c,d){return 20>t?b&c|~b&d:40>t?b^c^d:60>t?b&c|b&d|c&d:b^c^d}function sha1_kt(t){return 20>t?1518500249:40>t?1859775393:60>t?-1894007588:-899497514}function add(x,y){return x+y|0}function rol(num,cnt){return num<>>32-cnt}var A=0,B=4,C=8,D=12,E=16,W=new("undefined"==typeof Int32Array?Array:Int32Array)(80),POOL=[];return inherits(Sha1,Hash),Sha1.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,Hash.prototype.init.call(this),this},Sha1.prototype._POOL=POOL,Sha1.prototype._update=function(X){var a,b,c,d,e,_a,_b,_c,_d,_e;a=_a=this._a,b=_b=this._b,c=_c=this._c,d=_d=this._d,e=_e=this._e;for(var w=this._w,j=0;80>j;j++){var W=w[j]=16>j?X.readInt32BE(4*j):rol(w[j-3]^w[j-8]^w[j-14]^w[j-16],1),t=add(add(rol(a,5),sha1_ft(j,b,c,d)),add(add(e,W),sha1_kt(j)));e=d,d=c,c=rol(b,30),b=a,a=t}this._a=add(a,_a),this._b=add(b,_b),this._c=add(c,_c),this._d=add(d,_d),this._e=add(e,_e)},Sha1.prototype._hash=function(){POOL.length<100&&POOL.push(this);var H=new Buffer(20);return H.writeInt32BE(0|this._a,A),H.writeInt32BE(0|this._b,B),H.writeInt32BE(0|this._c,C),H.writeInt32BE(0|this._d,D),H.writeInt32BE(0|this._e,E),H},Sha1}},function(module,exports,__webpack_require__){var inherits=__webpack_require__(8).inherits;module.exports=function(Buffer,Hash){function Sha256(){this.init(),this._w=W,Hash.call(this,64,56)}function S(X,n){return X>>>n|X<<32-n}function R(X,n){return X>>>n}function Ch(x,y,z){return x&y^~x&z}function Maj(x,y,z){return x&y^x&z^y&z}function Sigma0256(x){return S(x,2)^S(x,13)^S(x,22)}function Sigma1256(x){return S(x,6)^S(x,11)^S(x,25)}function Gamma0256(x){return S(x,7)^S(x,18)^R(x,3)}function Gamma1256(x){return S(x,17)^S(x,19)^R(x,10)}var K=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],W=new Array(64);return inherits(Sha256,Hash),Sha256.prototype.init=function(){return this._a=1779033703,this._b=-1150833019,this._c=1013904242,this._d=-1521486534,this._e=1359893119,this._f=-1694144372,this._g=528734635,this._h=1541459225,this._len=this._s=0,this},Sha256.prototype._update=function(M){var a,b,c,d,e,f,g,h,T1,T2,W=this._w;a=0|this._a,b=0|this._b,c=0|this._c,d=0|this._d,e=0|this._e,f=0|this._f,g=0|this._g,h=0|this._h;for(var j=0;64>j;j++){var w=W[j]=16>j?M.readInt32BE(4*j):Gamma1256(W[j-2])+W[j-7]+Gamma0256(W[j-15])+W[j-16];T1=h+Sigma1256(e)+Ch(e,f,g)+K[j]+w,T2=Sigma0256(a)+Maj(a,b,c),h=g,g=f,f=e,e=d+T1,d=c,c=b,b=a,a=T1+T2}this._a=a+this._a|0,this._b=b+this._b|0,this._c=c+this._c|0,this._d=d+this._d|0,this._e=e+this._e|0,this._f=f+this._f|0,this._g=g+this._g|0,this._h=h+this._h|0},Sha256.prototype._hash=function(){var H=new Buffer(32);return H.writeInt32BE(this._a,0),H.writeInt32BE(this._b,4),H.writeInt32BE(this._c,8),H.writeInt32BE(this._d,12),H.writeInt32BE(this._e,16),H.writeInt32BE(this._f,20),H.writeInt32BE(this._g,24),H.writeInt32BE(this._h,28),H},Sha256}},function(module,exports,__webpack_require__){var inherits=__webpack_require__(8).inherits;module.exports=function(Buffer,Hash){function Sha512(){this.init(),this._w=W,Hash.call(this,128,112)}function S(X,Xl,n){return X>>>n|Xl<<32-n}function Ch(x,y,z){return x&y^~x&z}function Maj(x,y,z){return x&y^x&z^y&z}var K=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],W=new Array(160);return inherits(Sha512,Hash),Sha512.prototype.init=function(){return this._a=1779033703,this._b=-1150833019,this._c=1013904242,this._d=-1521486534,this._e=1359893119,this._f=-1694144372,this._g=528734635,this._h=1541459225,this._al=-205731576,this._bl=-2067093701,this._cl=-23791573,this._dl=1595750129,this._el=-1377402159,this._fl=725511199,this._gl=-79577749,this._hl=327033209,this._len=this._s=0,this},Sha512.prototype._update=function(M){var a,b,c,d,e,f,g,h,al,bl,cl,dl,el,fl,gl,hl,W=this._w;a=0|this._a,b=0|this._b,c=0|this._c,d=0|this._d,e=0|this._e,f=0|this._f,g=0|this._g,h=0|this._h,al=0|this._al,bl=0|this._bl,cl=0|this._cl,dl=0|this._dl,el=0|this._el,fl=0|this._fl,gl=0|this._gl,hl=0|this._hl;for(var i=0;80>i;i++){var Wi,Wil,j=2*i;if(16>i)Wi=W[j]=M.readInt32BE(4*j),Wil=W[j+1]=M.readInt32BE(4*j+4);else{var x=W[j-30],xl=W[j-30+1],gamma0=S(x,xl,1)^S(x,xl,8)^x>>>7,gamma0l=S(xl,x,1)^S(xl,x,8)^S(xl,x,7);x=W[j-4],xl=W[j-4+1];var gamma1=S(x,xl,19)^S(xl,x,29)^x>>>6,gamma1l=S(xl,x,19)^S(x,xl,29)^S(xl,x,6),Wi7=W[j-14],Wi7l=W[j-14+1],Wi16=W[j-32],Wi16l=W[j-32+1];Wil=gamma0l+Wi7l,Wi=gamma0+Wi7+(gamma0l>>>0>Wil>>>0?1:0),Wil+=gamma1l,Wi=Wi+gamma1+(gamma1l>>>0>Wil>>>0?1:0),Wil+=Wi16l,Wi=Wi+Wi16+(Wi16l>>>0>Wil>>>0?1:0),W[j]=Wi,W[j+1]=Wil}var maj=Maj(a,b,c),majl=Maj(al,bl,cl),sigma0h=S(a,al,28)^S(al,a,2)^S(al,a,7),sigma0l=S(al,a,28)^S(a,al,2)^S(a,al,7),sigma1h=S(e,el,14)^S(e,el,18)^S(el,e,9),sigma1l=S(el,e,14)^S(el,e,18)^S(e,el,9),Ki=K[j],Kil=K[j+1],ch=Ch(e,f,g),chl=Ch(el,fl,gl),t1l=hl+sigma1l,t1=h+sigma1h+(hl>>>0>t1l>>>0?1:0);t1l+=chl,t1=t1+ch+(chl>>>0>t1l>>>0?1:0),t1l+=Kil,t1=t1+Ki+(Kil>>>0>t1l>>>0?1:0),t1l+=Wil,t1=t1+Wi+(Wil>>>0>t1l>>>0?1:0);var t2l=sigma0l+majl,t2=sigma0h+maj+(sigma0l>>>0>t2l>>>0?1:0);h=g,hl=gl,g=f,gl=fl,f=e,fl=el,el=dl+t1l|0,e=d+t1+(dl>>>0>el>>>0?1:0)|0,d=c,dl=cl,c=b,cl=bl,b=a,bl=al,al=t1l+t2l|0,a=t1+t2+(t1l>>>0>al>>>0?1:0)|0}this._al=this._al+al|0,this._bl=this._bl+bl|0,this._cl=this._cl+cl|0,this._dl=this._dl+dl|0,this._el=this._el+el|0,this._fl=this._fl+fl|0,this._gl=this._gl+gl|0,this._hl=this._hl+hl|0,this._a=this._a+a+(this._al>>>0>>0?1:0)|0,this._b=this._b+b+(this._bl>>>0>>0?1:0)|0,this._c=this._c+c+(this._cl>>>0>>0?1:0)|0,this._d=this._d+d+(this._dl>>>0
>>0?1:0)|0,this._e=this._e+e+(this._el>>>0>>0?1:0)|0,this._f=this._f+f+(this._fl>>>0>>0?1:0)|0,this._g=this._g+g+(this._gl>>>0>>0?1:0)|0,this._h=this._h+h+(this._hl>>>0>>0?1:0)|0},Sha512.prototype._hash=function(){function writeInt64BE(h,l,offset){H.writeInt32BE(h,offset),H.writeInt32BE(l,offset+4)}var H=new Buffer(64);return writeInt64BE(this._a,this._al,0),writeInt64BE(this._b,this._bl,8),writeInt64BE(this._c,this._cl,16),writeInt64BE(this._d,this._dl,24),writeInt64BE(this._e,this._el,32),writeInt64BE(this._f,this._fl,40),writeInt64BE(this._g,this._gl,48),writeInt64BE(this._h,this._hl,56),H},Sha512}},function(module,exports,__webpack_require__){"use strict";function transform(chunk,enc,cb){var i,list=chunk.toString("utf8").split(this.matcher),remaining=list.pop();for(list.length>=1?push(this,this.mapper(this._last+list.shift())):remaining=this._last+remaining,i=0;iself._pos){var newData=response.substr(self._pos);if("x-user-defined"===self._charset){for(var buffer=new Buffer(newData.length),i=0;iself._pos&&(self.push(new Buffer(new Uint8Array(reader.result.slice(self._pos)))),self._pos=reader.result.byteLength)},reader.onload=function(){self.push(null)},reader.readAsArrayBuffer(response)}self._xhr.readyState===rStates.DONE&&"ms-stream"!==self._mode&&self.push(null)}}).call(exports,__webpack_require__(2),__webpack_require__(1).Buffer,function(){return this}())},function(module,exports,__webpack_require__){"use strict";var firstChunk=__webpack_require__(227),stripBom=__webpack_require__(64);module.exports=function(){return firstChunk({minSize:3},function(chunk,enc,cb){this.push(stripBom(chunk)),cb()})}},function(module,exports,__webpack_require__){(function(process){function DestroyableTransform(opts){Transform.call(this,opts),this._destroyed=!1}function noop(chunk,enc,callback){callback(null,chunk)}function through2(construct){return function(options,transform,flush){return"function"==typeof options&&(flush=transform,transform=options,options={}),"function"!=typeof transform&&(transform=noop),"function"!=typeof flush&&(flush=null),construct(options,transform,flush)}}var Transform=__webpack_require__(61),inherits=__webpack_require__(8).inherits,xtend=__webpack_require__(17);inherits(DestroyableTransform,Transform),DestroyableTransform.prototype.destroy=function(err){if(!this._destroyed){this._destroyed=!0;var self=this;process.nextTick(function(){err&&self.emit("error",err),self.emit("close")})}},module.exports=through2(function(options,transform,flush){var t2=new DestroyableTransform(options);return t2._transform=transform,flush&&(t2._flush=flush),t2}),module.exports.ctor=through2(function(options,transform,flush){function Through2(override){return this instanceof Through2?(this.options=xtend(options,override),void DestroyableTransform.call(this,this.options)):new Through2(override)}return inherits(Through2,DestroyableTransform),Through2.prototype._transform=transform,flush&&(Through2.prototype._flush=flush),Through2}),module.exports.obj=through2(function(options,transform,flush){var t2=new DestroyableTransform(xtend({objectMode:!0,highWaterMark:16},options));return t2._transform=transform,flush&&(t2._flush=flush),t2})}).call(exports,__webpack_require__(2))},function(module,exports,__webpack_require__){(function(process){function ReadableState(options,stream){options=options||{};var hwm=options.highWaterMark;this.highWaterMark=hwm||0===hwm?hwm:16384,this.highWaterMark=~~this.highWaterMark,this.buffer=[],this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=!1,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.calledRead=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.objectMode=!!options.objectMode,this.defaultEncoding=options.defaultEncoding||"utf8",this.ranOut=!1,this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,options.encoding&&(StringDecoder||(StringDecoder=__webpack_require__(22).StringDecoder),this.decoder=new StringDecoder(options.encoding),this.encoding=options.encoding)}function Readable(options){return this instanceof Readable?(this._readableState=new ReadableState(options,this),this.readable=!0,void Stream.call(this)):new Readable(options)}function readableAddChunk(stream,state,chunk,encoding,addToFront){var er=chunkInvalid(state,chunk);if(er)stream.emit("error",er);else if(null===chunk||void 0===chunk)state.reading=!1,state.ended||onEofChunk(stream,state);else if(state.objectMode||chunk&&chunk.length>0)if(state.ended&&!addToFront){var e=new Error("stream.push() after EOF");stream.emit("error",e)}else if(state.endEmitted&&addToFront){var e=new Error("stream.unshift() after end event");stream.emit("error",e)}else!state.decoder||addToFront||encoding||(chunk=state.decoder.write(chunk)),state.length+=state.objectMode?1:chunk.length,addToFront?state.buffer.unshift(chunk):(state.reading=!1,state.buffer.push(chunk)),state.needReadable&&emitReadable(stream),maybeReadMore(stream,state);else addToFront||(state.reading=!1);return needMoreData(state)}function needMoreData(state){return!state.ended&&(state.needReadable||state.length=MAX_HWM)n=MAX_HWM;else{n--;for(var p=1;32>p;p<<=1)n|=n>>p;n++}return n}function howMuchToRead(n,state){return 0===state.length&&state.ended?0:state.objectMode?0===n?0:1:null===n||isNaN(n)?state.flowing&&state.buffer.length?state.buffer[0].length:state.length:0>=n?0:(n>state.highWaterMark&&(state.highWaterMark=roundUpToNextPowerOf2(n)),n>state.length?state.ended?state.length:(state.needReadable=!0,0):n)}function chunkInvalid(state,chunk){var er=null;return Buffer.isBuffer(chunk)||"string"==typeof chunk||null===chunk||void 0===chunk||state.objectMode||(er=new TypeError("Invalid non-string/buffer chunk")),er}function onEofChunk(stream,state){if(state.decoder&&!state.ended){var chunk=state.decoder.end();chunk&&chunk.length&&(state.buffer.push(chunk),state.length+=state.objectMode?1:chunk.length)}state.ended=!0,state.length>0?emitReadable(stream):endReadable(stream)}function emitReadable(stream){var state=stream._readableState;state.needReadable=!1,state.emittedReadable||(state.emittedReadable=!0,state.sync?process.nextTick(function(){emitReadable_(stream)}):emitReadable_(stream))}function emitReadable_(stream){stream.emit("readable")}function maybeReadMore(stream,state){state.readingMore||(state.readingMore=!0,process.nextTick(function(){maybeReadMore_(stream,state)}))}function maybeReadMore_(stream,state){for(var len=state.length;!state.reading&&!state.flowing&&!state.ended&&state.length0)return;return 0===state.pipesCount?(state.flowing=!1,void(EE.listenerCount(src,"data")>0&&emitDataEvents(src))):void(state.ranOut=!0)}function pipeOnReadable(){this._readableState.ranOut&&(this._readableState.ranOut=!1,flow(this))}function emitDataEvents(stream,startPaused){var state=stream._readableState;if(state.flowing)throw new Error("Cannot switch to old mode now.");var paused=startPaused||!1,readable=!1;stream.readable=!0,stream.pipe=Stream.prototype.pipe,stream.on=stream.addListener=Stream.prototype.on,stream.on("readable",function(){readable=!0;for(var c;!paused&&null!==(c=stream.read());)stream.emit("data",c);null===c&&(readable=!1,stream._readableState.needReadable=!0)}),stream.pause=function(){paused=!0,this.emit("pause")},stream.resume=function(){paused=!1,readable?process.nextTick(function(){stream.emit("readable")}):this.read(0),this.emit("resume")},stream.emit("readable")}function fromList(n,state){var ret,list=state.buffer,length=state.length,stringMode=!!state.decoder,objectMode=!!state.objectMode;if(0===list.length)return null;if(0===length)ret=null;else if(objectMode)ret=list.shift();else if(!n||n>=length)ret=stringMode?list.join(""):Buffer.concat(list,length),list.length=0;else if(ni&&n>c;i++){var buf=list[0],cpy=Math.min(n-c,buf.length);stringMode?ret+=buf.slice(0,cpy):buf.copy(ret,c,0,cpy),cpy0)throw new Error("endReadable called on non-empty stream");!state.endEmitted&&state.calledRead&&(state.ended=!0,process.nextTick(function(){state.endEmitted||0!==state.length||(state.endEmitted=!0, -stream.readable=!1,stream.emit("end"))}))}function forEach(xs,f){for(var i=0,l=xs.length;l>i;i++)f(xs[i],i)}function indexOf(xs,x){for(var i=0,l=xs.length;l>i;i++)if(xs[i]===x)return i;return-1}module.exports=Readable;var isArray=__webpack_require__(40),Buffer=__webpack_require__(1).Buffer;Readable.ReadableState=ReadableState;var EE=__webpack_require__(15).EventEmitter;EE.listenerCount||(EE.listenerCount=function(emitter,type){return emitter.listeners(type).length});var Stream=__webpack_require__(3),util=__webpack_require__(9);util.inherits=__webpack_require__(4);var StringDecoder;util.inherits(Readable,Stream),Readable.prototype.push=function(chunk,encoding){var state=this._readableState;return"string"!=typeof chunk||state.objectMode||(encoding=encoding||state.defaultEncoding,encoding!==state.encoding&&(chunk=new Buffer(chunk,encoding),encoding="")),readableAddChunk(this,state,chunk,encoding,!1)},Readable.prototype.unshift=function(chunk){var state=this._readableState;return readableAddChunk(this,state,chunk,"",!0)},Readable.prototype.setEncoding=function(enc){StringDecoder||(StringDecoder=__webpack_require__(22).StringDecoder),this._readableState.decoder=new StringDecoder(enc),this._readableState.encoding=enc};var MAX_HWM=8388608;Readable.prototype.read=function(n){var state=this._readableState;state.calledRead=!0;var ret,nOrig=n;if(("number"!=typeof n||n>0)&&(state.emittedReadable=!1),0===n&&state.needReadable&&(state.length>=state.highWaterMark||state.ended))return emitReadable(this),null;if(n=howMuchToRead(n,state),0===n&&state.ended)return ret=null,state.length>0&&state.decoder&&(ret=fromList(n,state),state.length-=ret.length),0===state.length&&endReadable(this),ret;var doRead=state.needReadable;return state.length-n<=state.highWaterMark&&(doRead=!0),(state.ended||state.reading)&&(doRead=!1),doRead&&(state.reading=!0,state.sync=!0,0===state.length&&(state.needReadable=!0),this._read(state.highWaterMark),state.sync=!1),doRead&&!state.reading&&(n=howMuchToRead(nOrig,state)),ret=n>0?fromList(n,state):null,null===ret&&(state.needReadable=!0,n=0),state.length-=n,0!==state.length||state.ended||(state.needReadable=!0),state.ended&&!state.endEmitted&&0===state.length&&endReadable(this),ret},Readable.prototype._read=function(n){this.emit("error",new Error("not implemented"))},Readable.prototype.pipe=function(dest,pipeOpts){function onunpipe(readable){readable===src&&cleanup()}function onend(){dest.end()}function cleanup(){dest.removeListener("close",onclose),dest.removeListener("finish",onfinish),dest.removeListener("drain",ondrain),dest.removeListener("error",onerror),dest.removeListener("unpipe",onunpipe),src.removeListener("end",onend),src.removeListener("end",cleanup),(!dest._writableState||dest._writableState.needDrain)&&ondrain()}function onerror(er){unpipe(),dest.removeListener("error",onerror),0===EE.listenerCount(dest,"error")&&dest.emit("error",er)}function onclose(){dest.removeListener("finish",onfinish),unpipe()}function onfinish(){dest.removeListener("close",onclose),unpipe()}function unpipe(){src.unpipe(dest)}var src=this,state=this._readableState;switch(state.pipesCount){case 0:state.pipes=dest;break;case 1:state.pipes=[state.pipes,dest];break;default:state.pipes.push(dest)}state.pipesCount+=1;var doEnd=(!pipeOpts||pipeOpts.end!==!1)&&dest!==process.stdout&&dest!==process.stderr,endFn=doEnd?onend:cleanup;state.endEmitted?process.nextTick(endFn):src.once("end",endFn),dest.on("unpipe",onunpipe);var ondrain=pipeOnDrain(src);return dest.on("drain",ondrain),dest._events&&dest._events.error?isArray(dest._events.error)?dest._events.error.unshift(onerror):dest._events.error=[onerror,dest._events.error]:dest.on("error",onerror),dest.once("close",onclose),dest.once("finish",onfinish),dest.emit("pipe",src),state.flowing||(this.on("readable",pipeOnReadable),state.flowing=!0,process.nextTick(function(){flow(src)})),dest},Readable.prototype.unpipe=function(dest){var state=this._readableState;if(0===state.pipesCount)return this;if(1===state.pipesCount)return dest&&dest!==state.pipes?this:(dest||(dest=state.pipes),state.pipes=null,state.pipesCount=0,this.removeListener("readable",pipeOnReadable),state.flowing=!1,dest&&dest.emit("unpipe",this),this);if(!dest){var dests=state.pipes,len=state.pipesCount;state.pipes=null,state.pipesCount=0,this.removeListener("readable",pipeOnReadable),state.flowing=!1;for(var i=0;len>i;i++)dests[i].emit("unpipe",this);return this}var i=indexOf(state.pipes,dest);return-1===i?this:(state.pipes.splice(i,1),state.pipesCount-=1,1===state.pipesCount&&(state.pipes=state.pipes[0]),dest.emit("unpipe",this),this)},Readable.prototype.on=function(ev,fn){var res=Stream.prototype.on.call(this,ev,fn);if("data"!==ev||this._readableState.flowing||emitDataEvents(this),"readable"===ev&&this.readable){var state=this._readableState;state.readableListening||(state.readableListening=!0,state.emittedReadable=!1,state.needReadable=!0,state.reading?state.length&&emitReadable(this,state):this.read(0))}return res},Readable.prototype.addListener=Readable.prototype.on,Readable.prototype.resume=function(){emitDataEvents(this),this.read(0),this.emit("resume")},Readable.prototype.pause=function(){emitDataEvents(this,!0),this.emit("pause")},Readable.prototype.wrap=function(stream){var state=this._readableState,paused=!1,self=this;stream.on("end",function(){if(state.decoder&&!state.ended){var chunk=state.decoder.end();chunk&&chunk.length&&self.push(chunk)}self.push(null)}),stream.on("data",function(chunk){if(state.decoder&&(chunk=state.decoder.write(chunk)),(!state.objectMode||null!==chunk&&void 0!==chunk)&&(state.objectMode||chunk&&chunk.length)){var ret=self.push(chunk);ret||(paused=!0,stream.pause())}});for(var i in stream)"function"==typeof stream[i]&&"undefined"==typeof this[i]&&(this[i]=function(method){return function(){return stream[method].apply(stream,arguments)}}(i));var events=["error","close","destroy","pause","resume"];return forEach(events,function(ev){stream.on(ev,self.emit.bind(self,ev))}),self._read=function(n){paused&&(paused=!1,stream.resume())},self},Readable._fromList=fromList}).call(exports,__webpack_require__(2))},function(module,exports,__webpack_require__){function TransformState(options,stream){this.afterTransform=function(er,data){return afterTransform(stream,er,data)},this.needTransform=!1,this.transforming=!1,this.writecb=null,this.writechunk=null}function afterTransform(stream,er,data){var ts=stream._transformState;ts.transforming=!1;var cb=ts.writecb;if(!cb)return stream.emit("error",new Error("no writecb in Transform class"));ts.writechunk=null,ts.writecb=null,null!==data&&void 0!==data&&stream.push(data),cb&&cb(er);var rs=stream._readableState;rs.reading=!1,(rs.needReadable||rs.lengthi;i++)arrayCopy[i]=buf[i];return arrayCopy.buffer}throw new Error("Argument must be a Buffer")}},function(module,exports,__webpack_require__){(function(global){"use strict";function prop(propName){return function(data){return data[propName]}}function unique(propName,keyStore){keyStore=keyStore||new ES6Set;var keyfn=stringify;return"string"==typeof propName?keyfn=prop(propName):"function"==typeof propName&&(keyfn=propName),filter(function(data){var key=keyfn(data);return keyStore.has(key)?!1:(keyStore.add(key),!0)})}var ES6Set,filter=__webpack_require__(108).obj,stringify=__webpack_require__(249);ES6Set="function"==typeof global.Set?global.Set:function(){this.keys=[],this.has=function(val){return-1!==this.keys.indexOf(val)},this.add=function(val){this.keys.push(val)}},module.exports=unique}).call(exports,function(){return this}())},function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_RESULT__;(function(module,global){!function(root){function error(type){throw RangeError(errors[type])}function map(array,fn){for(var length=array.length,result=[];length--;)result[length]=fn(array[length]);return result}function mapDomain(string,fn){var parts=string.split("@"),result="";parts.length>1&&(result=parts[0]+"@",string=parts[1]),string=string.replace(regexSeparators,".");var labels=string.split("."),encoded=map(labels,fn).join(".");return result+encoded}function ucs2decode(string){for(var value,extra,output=[],counter=0,length=string.length;length>counter;)value=string.charCodeAt(counter++),value>=55296&&56319>=value&&length>counter?(extra=string.charCodeAt(counter++),56320==(64512&extra)?output.push(((1023&value)<<10)+(1023&extra)+65536):(output.push(value),counter--)):output.push(value);return output}function ucs2encode(array){return map(array,function(value){var output="";return value>65535&&(value-=65536,output+=stringFromCharCode(value>>>10&1023|55296),value=56320|1023&value),output+=stringFromCharCode(value)}).join("")}function basicToDigit(codePoint){return 10>codePoint-48?codePoint-22:26>codePoint-65?codePoint-65:26>codePoint-97?codePoint-97:base}function digitToBasic(digit,flag){return digit+22+75*(26>digit)-((0!=flag)<<5)}function adapt(delta,numPoints,firstTime){var k=0;for(delta=firstTime?floor(delta/damp):delta>>1,delta+=floor(delta/numPoints);delta>baseMinusTMin*tMax>>1;k+=base)delta=floor(delta/baseMinusTMin);return floor(k+(baseMinusTMin+1)*delta/(delta+skew))}function decode(input){var out,basic,j,index,oldi,w,k,digit,t,baseMinusT,output=[],inputLength=input.length,i=0,n=initialN,bias=initialBias;for(basic=input.lastIndexOf(delimiter),0>basic&&(basic=0),j=0;basic>j;++j)input.charCodeAt(j)>=128&&error("not-basic"),output.push(input.charCodeAt(j));for(index=basic>0?basic+1:0;inputLength>index;){for(oldi=i,w=1,k=base;index>=inputLength&&error("invalid-input"),digit=basicToDigit(input.charCodeAt(index++)),(digit>=base||digit>floor((maxInt-i)/w))&&error("overflow"),i+=digit*w,t=bias>=k?tMin:k>=bias+tMax?tMax:k-bias,!(t>digit);k+=base)baseMinusT=base-t,w>floor(maxInt/baseMinusT)&&error("overflow"),w*=baseMinusT;out=output.length+1,bias=adapt(i-oldi,out,0==oldi),floor(i/out)>maxInt-n&&error("overflow"),n+=floor(i/out),i%=out,output.splice(i++,0,n)}return ucs2encode(output)}function encode(input){var n,delta,handledCPCount,basicLength,bias,j,m,q,k,t,currentValue,inputLength,handledCPCountPlusOne,baseMinusT,qMinusT,output=[];for(input=ucs2decode(input),inputLength=input.length,n=initialN,delta=0,bias=initialBias,j=0;inputLength>j;++j)currentValue=input[j],128>currentValue&&output.push(stringFromCharCode(currentValue));for(handledCPCount=basicLength=output.length,basicLength&&output.push(delimiter);inputLength>handledCPCount;){for(m=maxInt,j=0;inputLength>j;++j)currentValue=input[j],currentValue>=n&&m>currentValue&&(m=currentValue);for(handledCPCountPlusOne=handledCPCount+1,m-n>floor((maxInt-delta)/handledCPCountPlusOne)&&error("overflow"),delta+=(m-n)*handledCPCountPlusOne,n=m,j=0;inputLength>j;++j)if(currentValue=input[j],n>currentValue&&++delta>maxInt&&error("overflow"),currentValue==n){for(q=delta,k=base;t=bias>=k?tMin:k>=bias+tMax?tMax:k-bias,!(t>q);k+=base)qMinusT=q-t,baseMinusT=base-t,output.push(stringFromCharCode(digitToBasic(t+qMinusT%baseMinusT,0))),q=floor(qMinusT/baseMinusT);output.push(stringFromCharCode(digitToBasic(q,0))),bias=adapt(delta,handledCPCountPlusOne,handledCPCount==basicLength),delta=0,++handledCPCount}++delta,++n}return output.join("")}function toUnicode(input){return mapDomain(input,function(string){return regexPunycode.test(string)?decode(string.slice(4).toLowerCase()):string})}function toASCII(input){return mapDomain(input,function(string){return regexNonASCII.test(string)?"xn--"+encode(string):string})}var freeGlobal=("object"==typeof exports&&exports&&!exports.nodeType&&exports,"object"==typeof module&&module&&!module.nodeType&&module,"object"==typeof global&&global);(freeGlobal.global===freeGlobal||freeGlobal.window===freeGlobal||freeGlobal.self===freeGlobal)&&(root=freeGlobal);var punycode,maxInt=2147483647,base=36,tMin=1,tMax=26,skew=38,damp=700,initialBias=72,initialN=128,delimiter="-",regexPunycode=/^xn--/,regexNonASCII=/[^\x20-\x7E]/,regexSeparators=/[\x2E\u3002\uFF0E\uFF61]/g,errors={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},baseMinusTMin=base-tMin,floor=Math.floor,stringFromCharCode=String.fromCharCode;punycode={version:"1.3.2",ucs2:{decode:ucs2decode,encode:ucs2encode},decode:decode,encode:encode,toASCII:toASCII,toUnicode:toUnicode},__WEBPACK_AMD_DEFINE_RESULT__=function(){return punycode}.call(exports,__webpack_require__,exports,module),!(void 0!==__WEBPACK_AMD_DEFINE_RESULT__&&(module.exports=__WEBPACK_AMD_DEFINE_RESULT__))}(this)}).call(exports,__webpack_require__(334)(module),function(){return this}())},function(module,exports){(function(global){function deprecate(fn,msg){function deprecated(){if(!warned){if(config("throwDeprecation"))throw new Error(msg);config("traceDeprecation")?console.trace(msg):console.warn(msg),warned=!0}return fn.apply(this,arguments)}if(config("noDeprecation"))return fn;var warned=!1;return deprecated}function config(name){try{if(!global.localStorage)return!1}catch(_){return!1}var val=global.localStorage[name];return null==val?!1:"true"===String(val).toLowerCase()}module.exports=deprecate}).call(exports,function(){return this}())},function(module,exports){module.exports=function(arg){return arg&&"object"==typeof arg&&"function"==typeof arg.copy&&"function"==typeof arg.fill&&"function"==typeof arg.readUInt8}},function(module,exports,__webpack_require__){"use strict";module.exports={src:__webpack_require__(323),dest:__webpack_require__(312),symlink:__webpack_require__(325)}},function(module,exports,__webpack_require__){(function(process){"use strict";function dest(outFolder,opt){function saveFile(file,enc,cb){prepareWrite(outFolder,file,opt,function(err,writePath){return err?cb(err):void writeContents(writePath,file,cb)})}opt||(opt={});var saveStream=through2.obj(saveFile);if(!opt.sourcemaps)return saveStream;var mapStream=sourcemaps.write(opt.sourcemaps.path,opt.sourcemaps),outputStream=duplexify.obj(mapStream,saveStream);return mapStream.pipe(saveStream),outputStream}var through2=__webpack_require__(30),sourcemaps=process.browser?null:__webpack_require__(87),duplexify=__webpack_require__(37),prepareWrite=__webpack_require__(111),writeContents=__webpack_require__(313);module.exports=dest}).call(exports,__webpack_require__(2))},function(module,exports,__webpack_require__){"use strict";function writeContents(writePath,file,cb){function complete(err){cb(err,file)}function written(err){return isErrorFatal(err)?complete(err):!file.stat||"number"!=typeof file.stat.mode||file.symlink?complete():void fs.stat(writePath,function(err,st){if(err)return complete(err);var currentMode=st.mode&parseInt("0777",8),expectedMode=file.stat.mode&parseInt("0777",8);return currentMode===expectedMode?complete():void fs.chmod(writePath,expectedMode,complete)})}function isErrorFatal(err){return err?"EEXIST"===err.code&&"wx"===file.flag?!1:!0:!1}return file.isDirectory()?writeDir(writePath,file,written):file.isStream()?writeStream(writePath,file,written):file.symlink?writeSymbolicLink(writePath,file,written):file.isBuffer()?writeBuffer(writePath,file,written):file.isNull()?complete():void 0}var fs=__webpack_require__(6),writeDir=__webpack_require__(315),writeStream=__webpack_require__(316),writeBuffer=__webpack_require__(314),writeSymbolicLink=__webpack_require__(317);module.exports=writeContents},function(module,exports,__webpack_require__){(function(process){"use strict";function writeBuffer(writePath,file,cb){var opt={mode:file.stat.mode,flag:file.flag};fs.writeFile(writePath,file.contents,opt,cb)}var fs=__webpack_require__(process.browser?6:13);module.exports=writeBuffer}).call(exports,__webpack_require__(2))},function(module,exports,__webpack_require__){"use strict";function writeDir(writePath,file,cb){mkdirp(writePath,file.stat.mode,cb)}var mkdirp=__webpack_require__(94);module.exports=writeDir},function(module,exports,__webpack_require__){(function(process){"use strict";function writeStream(writePath,file,cb){function success(){streamFile(file,{},complete)}function complete(err){file.contents.removeListener("error",cb),outStream.removeListener("error",cb),outStream.removeListener("finish",success),cb(err)}var opt={mode:file.stat.mode,flag:file.flag},outStream=fs.createWriteStream(writePath,opt);file.contents.once("error",complete),outStream.once("error",complete),outStream.once("finish",success),file.contents.pipe(outStream)}var streamFile=__webpack_require__(112),fs=__webpack_require__(process.browser?6:13);module.exports=writeStream}).call(exports,__webpack_require__(2))},function(module,exports,__webpack_require__){(function(process){"use strict";function writeSymbolicLink(writePath,file,cb){fs.symlink(file.symlink,writePath,function(err){return err&&"EEXIST"!==err.code?cb(err):void cb(null,file)})}var fs=__webpack_require__(process.browser?6:13);module.exports=writeSymbolicLink}).call(exports,__webpack_require__(2))},function(module,exports,__webpack_require__){"use strict";var filter=__webpack_require__(108);module.exports=function(d){var isValid="number"==typeof d||d instanceof Number||d instanceof Date;if(!isValid)throw new Error("expected since option to be a date or a number");return filter.obj(function(file){return file.stat&&file.stat.mtime>d})}},function(module,exports,__webpack_require__){(function(process){"use strict";function bufferFile(file,opt,cb){fs.readFile(file.path,function(err,data){return err?cb(err):(opt.stripBOM?file.contents=stripBom(data):file.contents=data,void cb(null,file))})}var fs=__webpack_require__(process.browser?6:13),stripBom=__webpack_require__(64);module.exports=bufferFile}).call(exports,__webpack_require__(2))},function(module,exports,__webpack_require__){"use strict";function getContents(opt){return through2.obj(function(file,enc,cb){return file.isDirectory()?readDir(file,opt,cb):file.stat&&file.stat.isSymbolicLink()?readSymbolicLink(file,opt,cb):opt.buffer!==!1?bufferFile(file,opt,cb):streamFile(file,opt,cb)})}var through2=__webpack_require__(30),readDir=__webpack_require__(321),readSymbolicLink=__webpack_require__(322),bufferFile=__webpack_require__(319),streamFile=__webpack_require__(112);module.exports=getContents},function(module,exports){"use strict";function readDir(file,opt,cb){cb(null,file)}module.exports=readDir},function(module,exports,__webpack_require__){(function(process){"use strict";function readLink(file,opt,cb){fs.readlink(file.path,function(err,target){return err?cb(err):(file.symlink=target,cb(null,file))})}var fs=__webpack_require__(process.browser?6:13);module.exports=readLink}).call(exports,__webpack_require__(2))},function(module,exports,__webpack_require__){(function(process){"use strict";function createFile(globFile,enc,cb){cb(null,new File(globFile))}function src(glob,opt){var inputPass,options=assign({read:!0,buffer:!0,stripBOM:!0,sourcemaps:!1,passthrough:!1,followSymlinks:!0},opt);if(!isValidGlob(glob))throw new Error("Invalid glob argument: "+glob);var globStream=gs.create(glob,options),outputStream=globStream.pipe(resolveSymlinks(options)).pipe(through.obj(createFile));return null!=options.since&&(outputStream=outputStream.pipe(filterSince(options.since))),options.read!==!1&&(outputStream=outputStream.pipe(getContents(options))),options.passthrough===!0&&(inputPass=through.obj(),outputStream=duplexify.obj(inputPass,merge(outputStream,inputPass))),options.sourcemaps===!0&&(outputStream=outputStream.pipe(sourcemaps.init({loadMaps:!0}))),globStream.on("error",outputStream.emit.bind(outputStream,"error")),outputStream}var assign=__webpack_require__(97),through=__webpack_require__(30),gs=__webpack_require__(231),File=__webpack_require__(66),duplexify=__webpack_require__(37),merge=__webpack_require__(93),sourcemaps=process.browser?null:__webpack_require__(87),filterSince=__webpack_require__(318),isValidGlob=__webpack_require__(245),getContents=__webpack_require__(320),resolveSymlinks=__webpack_require__(324);module.exports=src}).call(exports,__webpack_require__(2))},function(module,exports,__webpack_require__){(function(process){"use strict";function resolveSymlinks(options){function resolveFile(globFile,enc,cb){fs.lstat(globFile.path,function(err,stat){return err?cb(err):(globFile.stat=stat,stat.isSymbolicLink()&&options.followSymlinks?void fs.realpath(globFile.path,function(err,filePath){return err?cb(err):(globFile.base=path.dirname(filePath),globFile.path=filePath,void resolveFile(globFile,enc,cb))}):cb(null,globFile))})}return through2.obj(resolveFile)}var through2=__webpack_require__(30),fs=__webpack_require__(process.browser?6:13),path=__webpack_require__(5);module.exports=resolveSymlinks}).call(exports,__webpack_require__(2))},function(module,exports,__webpack_require__){(function(process){"use strict";function symlink(outFolder,opt){function linkFile(file,enc,cb){var srcPath=file.path,symType=file.isDirectory()?"dir":"file";prepareWrite(outFolder,file,opt,function(err,writePath){return err?cb(err):void fs.symlink(srcPath,writePath,symType,function(err){return err&&"EEXIST"!==err.code?cb(err):void cb(null,file)})})}var stream=through2.obj(linkFile);return stream.resume(),stream}var through2=__webpack_require__(30),fs=__webpack_require__(process.browser?6:13),prepareWrite=__webpack_require__(111);module.exports=symlink}).call(exports,__webpack_require__(2))},function(module,exports,__webpack_require__){function collect(stream,cb){function get(name){return files.named[name]||(files.named[name]={children:[]}),files.named[name]}var files={paths:[],named:{},unnamed:[]};stream.on("data",function(file){if(null===cb)return void stream.on("data",function(){});if(file.path){var fo=get(file.path);fo.file=file;var po=get(Path.dirname(file.path));fo!==po&&po.children.push(fo),files.paths.push(file.path)}else files.unnamed.push({file:file,children:[]})}),stream.on("error",function(err){cb&&cb(err),cb=null}),stream.on("end",function(){cb&&cb(null,files),cb=null})}var Path=__webpack_require__(5);module.exports=collect},function(module,exports,__webpack_require__){var flat=__webpack_require__(328),tree=__webpack_require__(329),x=module.exports=tree;x.flat=flat,x.tree=tree},function(module,exports,__webpack_require__){function v2mpFlat(opts){opts=opts||{},opts.boundary=opts.boundary||randomString();var w=new stream.Writable({objectMode:!0}),r=new stream.PassThrough({objectMode:!0}),mp=new Multipart(opts.boundary);w._write=function(file,enc,cb){writePart(mp,file,cb)},w.on("finish",function(){mp.pipe(r)});var out=duplexify.obj(w,r);return out.boundary=opts.boundary,out}function writePart(mp,file,cb){var c=file.contents;null===c&&(c=emptyStream()),mp.addPart({body:file.contents,headers:headersForFile(file)}),cb(null)}function emptyStream(){var s=new stream.PassThrough({objectMode:!0});return s.write(null),s}function headersForFile(file){var fpath=common.cleanPath(file.path,file.base),h={};return h["Content-Disposition"]='file; filename="'+fpath+'"',file.isDirectory()?h["Content-Type"]="text/directory":h["Content-Type"]="application/octet-stream",h}function randomString(){return Math.random().toString(36).slice(2)+Math.random().toString(36).slice(2)+Math.random().toString(36).slice(2)+Math.random().toString(36).slice(2)}var Multipart=__webpack_require__(95),duplexify=__webpack_require__(37),stream=__webpack_require__(3),common=__webpack_require__(113);randomString=common.randomString,module.exports=v2mpFlat},function(module,exports,__webpack_require__){function v2mpTree(opts){opts=opts||{},opts.boundary=opts.boundary||randomString();var r=new stream.PassThrough({objectMode:!0}),w=new stream.PassThrough({objectMode:!0}),out=duplexify.obj(w,r);return out.boundary=opts.boundary,collect(w,function(err,files){if(err)return void r.emit("error",err);try{var mp=streamForCollection(opts.boundary,files);out.multipartHdr="Content-Type: multipart/mixed; boundary="+mp.boundary,opts.writeHeader&&(r.write(out.multipartHdr+"\r\n"),r.write("\r\n")),mp.pipe(r)}catch(e){r.emit("error",e)}}),out}function streamForCollection(boundary,files){var parts=[];files.paths.sort();for(var i=0;i>>5]|=bytes[i]<<24-b%32;return words},wordsToBytes=function(words){for(var bytes=[],b=0;b<32*words.length;b+=8)bytes.push(words[b>>>5]>>>24-b%32&255);return bytes},processBlock=function(H,M,offset){for(var i=0;16>i;i++){var offset_i=offset+i,M_offset_i=M[offset_i];M[offset_i]=16711935&(M_offset_i<<8|M_offset_i>>>24)|4278255360&(M_offset_i<<24|M_offset_i>>>8)}var al,bl,cl,dl,el,ar,br,cr,dr,er;ar=al=H[0],br=bl=H[1],cr=cl=H[2],dr=dl=H[3],er=el=H[4];for(var t,i=0;80>i;i+=1)t=al+M[offset+zl[i]]|0,t+=16>i?f1(bl,cl,dl)+hl[0]:32>i?f2(bl,cl,dl)+hl[1]:48>i?f3(bl,cl,dl)+hl[2]:64>i?f4(bl,cl,dl)+hl[3]:f5(bl,cl,dl)+hl[4],t=0|t,t=rotl(t,sl[i]),t=t+el|0,al=el,el=dl,dl=rotl(cl,10),cl=bl,bl=t,t=ar+M[offset+zr[i]]|0,t+=16>i?f5(br,cr,dr)+hr[0]:32>i?f4(br,cr,dr)+hr[1]:48>i?f3(br,cr,dr)+hr[2]:64>i?f2(br,cr,dr)+hr[3]:f1(br,cr,dr)+hr[4],t=0|t,t=rotl(t,sr[i]),t=t+er|0,ar=er,er=dr,dr=rotl(cr,10),cr=br,br=t;t=H[1]+cl+dr|0,H[1]=H[2]+dl+er|0,H[2]=H[3]+el+ar|0,H[3]=H[4]+al+br|0,H[4]=H[0]+bl+cr|0,H[0]=t}}).call(exports,__webpack_require__(1).Buffer)},function(module,exports,__webpack_require__){function SandwichStream(options){Readable.call(this,options),options=options||{},this._streamsActive=!1,this._streamsAdded=!1,this._streams=[],this._currentStream=void 0,this._errorsEmitted=!1,options.head&&(this._head=options.head),options.tail&&(this._tail=options.tail),options.separator&&(this._separator=options.separator)}function sandwichStream(options){var stream=new SandwichStream(options);return stream}var Readable=__webpack_require__(3).Readable;__webpack_require__(3).PassThrough;SandwichStream.prototype=Object.create(Readable.prototype,{constructor:SandwichStream}),SandwichStream.prototype._read=function(){this._streamsActive||(this._streamsActive=!0,this._pushHead(),this._streamNextStream())},SandwichStream.prototype.add=function(newStream){if(this._streamsActive)throw new Error("SandwichStream error adding new stream while streaming");this._streamsAdded=!0,this._streams.push(newStream),newStream.on("error",this._substreamOnError.bind(this))},SandwichStream.prototype._substreamOnError=function(error){this._errorsEmitted=!0,this.emit("error",error)},SandwichStream.prototype._pushHead=function(){this._head&&this.push(this._head)},SandwichStream.prototype._streamNextStream=function(){this._nextStream()?this._bindCurrentStreamEvents():(this._pushTail(),this.push(null))},SandwichStream.prototype._nextStream=function(){return this._currentStream=this._streams.shift(),void 0!==this._currentStream},SandwichStream.prototype._bindCurrentStreamEvents=function(){this._currentStream.on("readable",this._currentStreamOnReadable.bind(this)),this._currentStream.on("end",this._currentStreamOnEnd.bind(this))},SandwichStream.prototype._currentStreamOnReadable=function(){this.push(this._currentStream.read()||"")},SandwichStream.prototype._currentStreamOnEnd=function(){this._pushSeparator(),this._streamNextStream()},SandwichStream.prototype._pushSeparator=function(){this._streams.length>0&&this._separator&&this.push(this._separator)},SandwichStream.prototype._pushTail=function(){this._tail&&this.push(this._tail)},sandwichStream.SandwichStream=SandwichStream,module.exports=sandwichStream},function(module,exports){module.exports=function(Buffer){function Hash(blockSize,finalSize){this._block=new Buffer(blockSize),this._finalSize=finalSize,this._blockSize=blockSize,this._len=0,this._s=0}return Hash.prototype.init=function(){this._s=0,this._len=0},Hash.prototype.update=function(data,enc){"string"==typeof data&&(enc=enc||"utf8",data=new Buffer(data,enc));for(var l=this._len+=data.length,s=this._s=this._s||0,f=0,buffer=this._block;l>s;){for(var t=Math.min(data.length,f+this._blockSize-s%this._blockSize),ch=t-f,i=0;ch>i;i++)buffer[s%this._blockSize+i]=data[i+f];s+=ch,f+=ch,s%this._blockSize===0&&this._update(buffer)}return this._s=s,this},Hash.prototype.digest=function(enc){var l=8*this._len;this._block[this._len%this._blockSize]=128,this._block.fill(0,this._len%this._blockSize+1),l%(8*this._blockSize)>=8*this._finalSize&&(this._update(this._block),this._block.fill(0)),this._block.writeInt32BE(l,this._blockSize-4);var hash=this._update(this._block)||this._hash();return enc?hash.toString(enc):hash},Hash.prototype._update=function(){throw new Error("_update must be implemented by subclass")},Hash}},function(module,exports,__webpack_require__){var exports=module.exports=function(alg){var Alg=exports[alg];if(!Alg)throw new Error(alg+" is not supported (we accept pull requests)");return new Alg},Buffer=__webpack_require__(1).Buffer,Hash=__webpack_require__(286)(Buffer);exports.sha1=__webpack_require__(288)(Buffer,Hash),exports.sha256=__webpack_require__(289)(Buffer,Hash),exports.sha512=__webpack_require__(290)(Buffer,Hash)},function(module,exports,__webpack_require__){var inherits=__webpack_require__(8).inherits;module.exports=function(Buffer,Hash){function Sha1(){return POOL.length?POOL.pop().init():this instanceof Sha1?(this._w=W,Hash.call(this,64,56),this._h=null,void this.init()):new Sha1}function sha1_ft(t,b,c,d){return 20>t?b&c|~b&d:40>t?b^c^d:60>t?b&c|b&d|c&d:b^c^d}function sha1_kt(t){return 20>t?1518500249:40>t?1859775393:60>t?-1894007588:-899497514}function add(x,y){return x+y|0}function rol(num,cnt){return num<>>32-cnt}var A=0,B=4,C=8,D=12,E=16,W=new("undefined"==typeof Int32Array?Array:Int32Array)(80),POOL=[];return inherits(Sha1,Hash),Sha1.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,Hash.prototype.init.call(this),this},Sha1.prototype._POOL=POOL,Sha1.prototype._update=function(X){var a,b,c,d,e,_a,_b,_c,_d,_e;a=_a=this._a,b=_b=this._b,c=_c=this._c,d=_d=this._d,e=_e=this._e;for(var w=this._w,j=0;80>j;j++){var W=w[j]=16>j?X.readInt32BE(4*j):rol(w[j-3]^w[j-8]^w[j-14]^w[j-16],1),t=add(add(rol(a,5),sha1_ft(j,b,c,d)),add(add(e,W),sha1_kt(j)));e=d,d=c,c=rol(b,30),b=a,a=t}this._a=add(a,_a),this._b=add(b,_b),this._c=add(c,_c),this._d=add(d,_d),this._e=add(e,_e)},Sha1.prototype._hash=function(){POOL.length<100&&POOL.push(this);var H=new Buffer(20);return H.writeInt32BE(0|this._a,A),H.writeInt32BE(0|this._b,B),H.writeInt32BE(0|this._c,C),H.writeInt32BE(0|this._d,D),H.writeInt32BE(0|this._e,E),H},Sha1}},function(module,exports,__webpack_require__){var inherits=__webpack_require__(8).inherits;module.exports=function(Buffer,Hash){function Sha256(){this.init(),this._w=W,Hash.call(this,64,56)}function S(X,n){return X>>>n|X<<32-n}function R(X,n){return X>>>n}function Ch(x,y,z){return x&y^~x&z}function Maj(x,y,z){return x&y^x&z^y&z}function Sigma0256(x){return S(x,2)^S(x,13)^S(x,22)}function Sigma1256(x){return S(x,6)^S(x,11)^S(x,25)}function Gamma0256(x){return S(x,7)^S(x,18)^R(x,3)}function Gamma1256(x){return S(x,17)^S(x,19)^R(x,10)}var K=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],W=new Array(64);return inherits(Sha256,Hash),Sha256.prototype.init=function(){return this._a=1779033703,this._b=-1150833019,this._c=1013904242,this._d=-1521486534,this._e=1359893119,this._f=-1694144372,this._g=528734635,this._h=1541459225,this._len=this._s=0,this},Sha256.prototype._update=function(M){var a,b,c,d,e,f,g,h,T1,T2,W=this._w;a=0|this._a,b=0|this._b,c=0|this._c,d=0|this._d,e=0|this._e,f=0|this._f,g=0|this._g,h=0|this._h;for(var j=0;64>j;j++){var w=W[j]=16>j?M.readInt32BE(4*j):Gamma1256(W[j-2])+W[j-7]+Gamma0256(W[j-15])+W[j-16];T1=h+Sigma1256(e)+Ch(e,f,g)+K[j]+w,T2=Sigma0256(a)+Maj(a,b,c),h=g,g=f,f=e,e=d+T1,d=c,c=b,b=a,a=T1+T2}this._a=a+this._a|0,this._b=b+this._b|0,this._c=c+this._c|0,this._d=d+this._d|0,this._e=e+this._e|0,this._f=f+this._f|0,this._g=g+this._g|0,this._h=h+this._h|0},Sha256.prototype._hash=function(){var H=new Buffer(32);return H.writeInt32BE(this._a,0),H.writeInt32BE(this._b,4),H.writeInt32BE(this._c,8),H.writeInt32BE(this._d,12),H.writeInt32BE(this._e,16),H.writeInt32BE(this._f,20),H.writeInt32BE(this._g,24),H.writeInt32BE(this._h,28),H},Sha256}},function(module,exports,__webpack_require__){var inherits=__webpack_require__(8).inherits;module.exports=function(Buffer,Hash){function Sha512(){this.init(),this._w=W,Hash.call(this,128,112)}function S(X,Xl,n){return X>>>n|Xl<<32-n}function Ch(x,y,z){return x&y^~x&z}function Maj(x,y,z){return x&y^x&z^y&z}var K=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],W=new Array(160);return inherits(Sha512,Hash),Sha512.prototype.init=function(){return this._a=1779033703,this._b=-1150833019,this._c=1013904242,this._d=-1521486534,this._e=1359893119,this._f=-1694144372,this._g=528734635,this._h=1541459225,this._al=-205731576,this._bl=-2067093701,this._cl=-23791573,this._dl=1595750129,this._el=-1377402159,this._fl=725511199,this._gl=-79577749,this._hl=327033209,this._len=this._s=0,this},Sha512.prototype._update=function(M){var a,b,c,d,e,f,g,h,al,bl,cl,dl,el,fl,gl,hl,W=this._w;a=0|this._a,b=0|this._b,c=0|this._c,d=0|this._d,e=0|this._e,f=0|this._f,g=0|this._g,h=0|this._h,al=0|this._al,bl=0|this._bl,cl=0|this._cl,dl=0|this._dl,el=0|this._el,fl=0|this._fl,gl=0|this._gl,hl=0|this._hl;for(var i=0;80>i;i++){var Wi,Wil,j=2*i;if(16>i)Wi=W[j]=M.readInt32BE(4*j),Wil=W[j+1]=M.readInt32BE(4*j+4);else{var x=W[j-30],xl=W[j-30+1],gamma0=S(x,xl,1)^S(x,xl,8)^x>>>7,gamma0l=S(xl,x,1)^S(xl,x,8)^S(xl,x,7);x=W[j-4],xl=W[j-4+1];var gamma1=S(x,xl,19)^S(xl,x,29)^x>>>6,gamma1l=S(xl,x,19)^S(x,xl,29)^S(xl,x,6),Wi7=W[j-14],Wi7l=W[j-14+1],Wi16=W[j-32],Wi16l=W[j-32+1];Wil=gamma0l+Wi7l,Wi=gamma0+Wi7+(gamma0l>>>0>Wil>>>0?1:0),Wil+=gamma1l,Wi=Wi+gamma1+(gamma1l>>>0>Wil>>>0?1:0),Wil+=Wi16l,Wi=Wi+Wi16+(Wi16l>>>0>Wil>>>0?1:0),W[j]=Wi,W[j+1]=Wil}var maj=Maj(a,b,c),majl=Maj(al,bl,cl),sigma0h=S(a,al,28)^S(al,a,2)^S(al,a,7),sigma0l=S(al,a,28)^S(a,al,2)^S(a,al,7),sigma1h=S(e,el,14)^S(e,el,18)^S(el,e,9),sigma1l=S(el,e,14)^S(el,e,18)^S(e,el,9),Ki=K[j],Kil=K[j+1],ch=Ch(e,f,g),chl=Ch(el,fl,gl),t1l=hl+sigma1l,t1=h+sigma1h+(hl>>>0>t1l>>>0?1:0);t1l+=chl,t1=t1+ch+(chl>>>0>t1l>>>0?1:0),t1l+=Kil,t1=t1+Ki+(Kil>>>0>t1l>>>0?1:0),t1l+=Wil,t1=t1+Wi+(Wil>>>0>t1l>>>0?1:0);var t2l=sigma0l+majl,t2=sigma0h+maj+(sigma0l>>>0>t2l>>>0?1:0);h=g,hl=gl,g=f,gl=fl,f=e,fl=el,el=dl+t1l|0,e=d+t1+(dl>>>0>el>>>0?1:0)|0,d=c,dl=cl,c=b,cl=bl,b=a,bl=al,al=t1l+t2l|0,a=t1+t2+(t1l>>>0>al>>>0?1:0)|0}this._al=this._al+al|0,this._bl=this._bl+bl|0,this._cl=this._cl+cl|0,this._dl=this._dl+dl|0,this._el=this._el+el|0,this._fl=this._fl+fl|0,this._gl=this._gl+gl|0,this._hl=this._hl+hl|0,this._a=this._a+a+(this._al>>>0>>0?1:0)|0,this._b=this._b+b+(this._bl>>>0>>0?1:0)|0,this._c=this._c+c+(this._cl>>>0>>0?1:0)|0,this._d=this._d+d+(this._dl>>>0
>>0?1:0)|0,this._e=this._e+e+(this._el>>>0>>0?1:0)|0,this._f=this._f+f+(this._fl>>>0>>0?1:0)|0,this._g=this._g+g+(this._gl>>>0>>0?1:0)|0,this._h=this._h+h+(this._hl>>>0>>0?1:0)|0},Sha512.prototype._hash=function(){function writeInt64BE(h,l,offset){H.writeInt32BE(h,offset),H.writeInt32BE(l,offset+4)}var H=new Buffer(64);return writeInt64BE(this._a,this._al,0),writeInt64BE(this._b,this._bl,8),writeInt64BE(this._c,this._cl,16),writeInt64BE(this._d,this._dl,24),writeInt64BE(this._e,this._el,32),writeInt64BE(this._f,this._fl,40),writeInt64BE(this._g,this._gl,48),writeInt64BE(this._h,this._hl,56),H},Sha512}},function(module,exports,__webpack_require__){"use strict";function transform(chunk,enc,cb){var i,list=chunk.toString("utf8").split(this.matcher),remaining=list.pop();for(list.length>=1?push(this,this.mapper(this._last+list.shift())):remaining=this._last+remaining,i=0;iself._pos){var newData=response.substr(self._pos);if("x-user-defined"===self._charset){for(var buffer=new Buffer(newData.length),i=0;iself._pos&&(self.push(new Buffer(new Uint8Array(reader.result.slice(self._pos)))),self._pos=reader.result.byteLength)},reader.onload=function(){self.push(null)},reader.readAsArrayBuffer(response)}self._xhr.readyState===rStates.DONE&&"ms-stream"!==self._mode&&self.push(null)}}).call(exports,__webpack_require__(2),__webpack_require__(1).Buffer,function(){return this}())},function(module,exports,__webpack_require__){"use strict";var firstChunk=__webpack_require__(227),stripBom=__webpack_require__(64);module.exports=function(){return firstChunk({minSize:3},function(chunk,enc,cb){this.push(stripBom(chunk)),cb()})}},function(module,exports,__webpack_require__){(function(process){function DestroyableTransform(opts){Transform.call(this,opts),this._destroyed=!1}function noop(chunk,enc,callback){callback(null,chunk)}function through2(construct){return function(options,transform,flush){return"function"==typeof options&&(flush=transform,transform=options,options={}),"function"!=typeof transform&&(transform=noop),"function"!=typeof flush&&(flush=null),construct(options,transform,flush)}}var Transform=__webpack_require__(61),inherits=__webpack_require__(8).inherits,xtend=__webpack_require__(17);inherits(DestroyableTransform,Transform),DestroyableTransform.prototype.destroy=function(err){if(!this._destroyed){this._destroyed=!0;var self=this;process.nextTick(function(){err&&self.emit("error",err),self.emit("close")})}},module.exports=through2(function(options,transform,flush){var t2=new DestroyableTransform(options);return t2._transform=transform,flush&&(t2._flush=flush),t2}),module.exports.ctor=through2(function(options,transform,flush){function Through2(override){return this instanceof Through2?(this.options=xtend(options,override),void DestroyableTransform.call(this,this.options)):new Through2(override)}return inherits(Through2,DestroyableTransform),Through2.prototype._transform=transform,flush&&(Through2.prototype._flush=flush),Through2}),module.exports.obj=through2(function(options,transform,flush){var t2=new DestroyableTransform(xtend({objectMode:!0,highWaterMark:16},options));return t2._transform=transform,flush&&(t2._flush=flush),t2})}).call(exports,__webpack_require__(2))},function(module,exports,__webpack_require__){(function(process){function ReadableState(options,stream){options=options||{};var hwm=options.highWaterMark;this.highWaterMark=hwm||0===hwm?hwm:16384,this.highWaterMark=~~this.highWaterMark,this.buffer=[],this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=!1,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.calledRead=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.objectMode=!!options.objectMode,this.defaultEncoding=options.defaultEncoding||"utf8",this.ranOut=!1,this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,options.encoding&&(StringDecoder||(StringDecoder=__webpack_require__(23).StringDecoder),this.decoder=new StringDecoder(options.encoding),this.encoding=options.encoding)}function Readable(options){return this instanceof Readable?(this._readableState=new ReadableState(options,this),this.readable=!0,void Stream.call(this)):new Readable(options)}function readableAddChunk(stream,state,chunk,encoding,addToFront){var er=chunkInvalid(state,chunk);if(er)stream.emit("error",er);else if(null===chunk||void 0===chunk)state.reading=!1,state.ended||onEofChunk(stream,state);else if(state.objectMode||chunk&&chunk.length>0)if(state.ended&&!addToFront){var e=new Error("stream.push() after EOF");stream.emit("error",e)}else if(state.endEmitted&&addToFront){var e=new Error("stream.unshift() after end event");stream.emit("error",e)}else!state.decoder||addToFront||encoding||(chunk=state.decoder.write(chunk)),state.length+=state.objectMode?1:chunk.length,addToFront?state.buffer.unshift(chunk):(state.reading=!1,state.buffer.push(chunk)),state.needReadable&&emitReadable(stream),maybeReadMore(stream,state);else addToFront||(state.reading=!1);return needMoreData(state)}function needMoreData(state){return!state.ended&&(state.needReadable||state.length=MAX_HWM)n=MAX_HWM;else{n--;for(var p=1;32>p;p<<=1)n|=n>>p;n++}return n}function howMuchToRead(n,state){return 0===state.length&&state.ended?0:state.objectMode?0===n?0:1:null===n||isNaN(n)?state.flowing&&state.buffer.length?state.buffer[0].length:state.length:0>=n?0:(n>state.highWaterMark&&(state.highWaterMark=roundUpToNextPowerOf2(n)),n>state.length?state.ended?state.length:(state.needReadable=!0,0):n)}function chunkInvalid(state,chunk){var er=null;return Buffer.isBuffer(chunk)||"string"==typeof chunk||null===chunk||void 0===chunk||state.objectMode||(er=new TypeError("Invalid non-string/buffer chunk")),er}function onEofChunk(stream,state){if(state.decoder&&!state.ended){var chunk=state.decoder.end();chunk&&chunk.length&&(state.buffer.push(chunk),state.length+=state.objectMode?1:chunk.length)}state.ended=!0,state.length>0?emitReadable(stream):endReadable(stream)}function emitReadable(stream){var state=stream._readableState;state.needReadable=!1,state.emittedReadable||(state.emittedReadable=!0,state.sync?process.nextTick(function(){emitReadable_(stream)}):emitReadable_(stream))}function emitReadable_(stream){stream.emit("readable")}function maybeReadMore(stream,state){state.readingMore||(state.readingMore=!0,process.nextTick(function(){maybeReadMore_(stream,state)}))}function maybeReadMore_(stream,state){for(var len=state.length;!state.reading&&!state.flowing&&!state.ended&&state.length0)return;return 0===state.pipesCount?(state.flowing=!1,void(EE.listenerCount(src,"data")>0&&emitDataEvents(src))):void(state.ranOut=!0)}function pipeOnReadable(){this._readableState.ranOut&&(this._readableState.ranOut=!1,flow(this))}function emitDataEvents(stream,startPaused){var state=stream._readableState;if(state.flowing)throw new Error("Cannot switch to old mode now.");var paused=startPaused||!1,readable=!1;stream.readable=!0,stream.pipe=Stream.prototype.pipe,stream.on=stream.addListener=Stream.prototype.on,stream.on("readable",function(){readable=!0;for(var c;!paused&&null!==(c=stream.read());)stream.emit("data",c);null===c&&(readable=!1,stream._readableState.needReadable=!0)}),stream.pause=function(){paused=!0,this.emit("pause")},stream.resume=function(){paused=!1,readable?process.nextTick(function(){stream.emit("readable")}):this.read(0),this.emit("resume")},stream.emit("readable")}function fromList(n,state){var ret,list=state.buffer,length=state.length,stringMode=!!state.decoder,objectMode=!!state.objectMode;if(0===list.length)return null;if(0===length)ret=null;else if(objectMode)ret=list.shift();else if(!n||n>=length)ret=stringMode?list.join(""):Buffer.concat(list,length),list.length=0;else if(ni&&n>c;i++){var buf=list[0],cpy=Math.min(n-c,buf.length);stringMode?ret+=buf.slice(0,cpy):buf.copy(ret,c,0,cpy),cpy0)throw new Error("endReadable called on non-empty stream");!state.endEmitted&&state.calledRead&&(state.ended=!0,process.nextTick(function(){state.endEmitted||0!==state.length||(state.endEmitted=!0, +stream.readable=!1,stream.emit("end"))}))}function forEach(xs,f){for(var i=0,l=xs.length;l>i;i++)f(xs[i],i)}function indexOf(xs,x){for(var i=0,l=xs.length;l>i;i++)if(xs[i]===x)return i;return-1}module.exports=Readable;var isArray=__webpack_require__(40),Buffer=__webpack_require__(1).Buffer;Readable.ReadableState=ReadableState;var EE=__webpack_require__(15).EventEmitter;EE.listenerCount||(EE.listenerCount=function(emitter,type){return emitter.listeners(type).length});var Stream=__webpack_require__(3),util=__webpack_require__(9);util.inherits=__webpack_require__(4);var StringDecoder;util.inherits(Readable,Stream),Readable.prototype.push=function(chunk,encoding){var state=this._readableState;return"string"!=typeof chunk||state.objectMode||(encoding=encoding||state.defaultEncoding,encoding!==state.encoding&&(chunk=new Buffer(chunk,encoding),encoding="")),readableAddChunk(this,state,chunk,encoding,!1)},Readable.prototype.unshift=function(chunk){var state=this._readableState;return readableAddChunk(this,state,chunk,"",!0)},Readable.prototype.setEncoding=function(enc){StringDecoder||(StringDecoder=__webpack_require__(23).StringDecoder),this._readableState.decoder=new StringDecoder(enc),this._readableState.encoding=enc};var MAX_HWM=8388608;Readable.prototype.read=function(n){var state=this._readableState;state.calledRead=!0;var ret,nOrig=n;if(("number"!=typeof n||n>0)&&(state.emittedReadable=!1),0===n&&state.needReadable&&(state.length>=state.highWaterMark||state.ended))return emitReadable(this),null;if(n=howMuchToRead(n,state),0===n&&state.ended)return ret=null,state.length>0&&state.decoder&&(ret=fromList(n,state),state.length-=ret.length),0===state.length&&endReadable(this),ret;var doRead=state.needReadable;return state.length-n<=state.highWaterMark&&(doRead=!0),(state.ended||state.reading)&&(doRead=!1),doRead&&(state.reading=!0,state.sync=!0,0===state.length&&(state.needReadable=!0),this._read(state.highWaterMark),state.sync=!1),doRead&&!state.reading&&(n=howMuchToRead(nOrig,state)),ret=n>0?fromList(n,state):null,null===ret&&(state.needReadable=!0,n=0),state.length-=n,0!==state.length||state.ended||(state.needReadable=!0),state.ended&&!state.endEmitted&&0===state.length&&endReadable(this),ret},Readable.prototype._read=function(n){this.emit("error",new Error("not implemented"))},Readable.prototype.pipe=function(dest,pipeOpts){function onunpipe(readable){readable===src&&cleanup()}function onend(){dest.end()}function cleanup(){dest.removeListener("close",onclose),dest.removeListener("finish",onfinish),dest.removeListener("drain",ondrain),dest.removeListener("error",onerror),dest.removeListener("unpipe",onunpipe),src.removeListener("end",onend),src.removeListener("end",cleanup),(!dest._writableState||dest._writableState.needDrain)&&ondrain()}function onerror(er){unpipe(),dest.removeListener("error",onerror),0===EE.listenerCount(dest,"error")&&dest.emit("error",er)}function onclose(){dest.removeListener("finish",onfinish),unpipe()}function onfinish(){dest.removeListener("close",onclose),unpipe()}function unpipe(){src.unpipe(dest)}var src=this,state=this._readableState;switch(state.pipesCount){case 0:state.pipes=dest;break;case 1:state.pipes=[state.pipes,dest];break;default:state.pipes.push(dest)}state.pipesCount+=1;var doEnd=(!pipeOpts||pipeOpts.end!==!1)&&dest!==process.stdout&&dest!==process.stderr,endFn=doEnd?onend:cleanup;state.endEmitted?process.nextTick(endFn):src.once("end",endFn),dest.on("unpipe",onunpipe);var ondrain=pipeOnDrain(src);return dest.on("drain",ondrain),dest._events&&dest._events.error?isArray(dest._events.error)?dest._events.error.unshift(onerror):dest._events.error=[onerror,dest._events.error]:dest.on("error",onerror),dest.once("close",onclose),dest.once("finish",onfinish),dest.emit("pipe",src),state.flowing||(this.on("readable",pipeOnReadable),state.flowing=!0,process.nextTick(function(){flow(src)})),dest},Readable.prototype.unpipe=function(dest){var state=this._readableState;if(0===state.pipesCount)return this;if(1===state.pipesCount)return dest&&dest!==state.pipes?this:(dest||(dest=state.pipes),state.pipes=null,state.pipesCount=0,this.removeListener("readable",pipeOnReadable),state.flowing=!1,dest&&dest.emit("unpipe",this),this);if(!dest){var dests=state.pipes,len=state.pipesCount;state.pipes=null,state.pipesCount=0,this.removeListener("readable",pipeOnReadable),state.flowing=!1;for(var i=0;len>i;i++)dests[i].emit("unpipe",this);return this}var i=indexOf(state.pipes,dest);return-1===i?this:(state.pipes.splice(i,1),state.pipesCount-=1,1===state.pipesCount&&(state.pipes=state.pipes[0]),dest.emit("unpipe",this),this)},Readable.prototype.on=function(ev,fn){var res=Stream.prototype.on.call(this,ev,fn);if("data"!==ev||this._readableState.flowing||emitDataEvents(this),"readable"===ev&&this.readable){var state=this._readableState;state.readableListening||(state.readableListening=!0,state.emittedReadable=!1,state.needReadable=!0,state.reading?state.length&&emitReadable(this,state):this.read(0))}return res},Readable.prototype.addListener=Readable.prototype.on,Readable.prototype.resume=function(){emitDataEvents(this),this.read(0),this.emit("resume")},Readable.prototype.pause=function(){emitDataEvents(this,!0),this.emit("pause")},Readable.prototype.wrap=function(stream){var state=this._readableState,paused=!1,self=this;stream.on("end",function(){if(state.decoder&&!state.ended){var chunk=state.decoder.end();chunk&&chunk.length&&self.push(chunk)}self.push(null)}),stream.on("data",function(chunk){if(state.decoder&&(chunk=state.decoder.write(chunk)),(!state.objectMode||null!==chunk&&void 0!==chunk)&&(state.objectMode||chunk&&chunk.length)){var ret=self.push(chunk);ret||(paused=!0,stream.pause())}});for(var i in stream)"function"==typeof stream[i]&&"undefined"==typeof this[i]&&(this[i]=function(method){return function(){return stream[method].apply(stream,arguments)}}(i));var events=["error","close","destroy","pause","resume"];return forEach(events,function(ev){stream.on(ev,self.emit.bind(self,ev))}),self._read=function(n){paused&&(paused=!1,stream.resume())},self},Readable._fromList=fromList}).call(exports,__webpack_require__(2))},function(module,exports,__webpack_require__){function TransformState(options,stream){this.afterTransform=function(er,data){return afterTransform(stream,er,data)},this.needTransform=!1,this.transforming=!1,this.writecb=null,this.writechunk=null}function afterTransform(stream,er,data){var ts=stream._transformState;ts.transforming=!1;var cb=ts.writecb;if(!cb)return stream.emit("error",new Error("no writecb in Transform class"));ts.writechunk=null,ts.writecb=null,null!==data&&void 0!==data&&stream.push(data),cb&&cb(er);var rs=stream._readableState;rs.reading=!1,(rs.needReadable||rs.lengthi;i++)arrayCopy[i]=buf[i];return arrayCopy.buffer}throw new Error("Argument must be a Buffer")}},function(module,exports,__webpack_require__){(function(global){"use strict";function prop(propName){return function(data){return data[propName]}}function unique(propName,keyStore){keyStore=keyStore||new ES6Set;var keyfn=stringify;return"string"==typeof propName?keyfn=prop(propName):"function"==typeof propName&&(keyfn=propName),filter(function(data){var key=keyfn(data);return keyStore.has(key)?!1:(keyStore.add(key),!0)})}var ES6Set,filter=__webpack_require__(108).obj,stringify=__webpack_require__(249);ES6Set="function"==typeof global.Set?global.Set:function(){this.keys=[],this.has=function(val){return-1!==this.keys.indexOf(val)},this.add=function(val){this.keys.push(val)}},module.exports=unique}).call(exports,function(){return this}())},function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_RESULT__;(function(module,global){!function(root){function error(type){throw RangeError(errors[type])}function map(array,fn){for(var length=array.length,result=[];length--;)result[length]=fn(array[length]);return result}function mapDomain(string,fn){var parts=string.split("@"),result="";parts.length>1&&(result=parts[0]+"@",string=parts[1]),string=string.replace(regexSeparators,".");var labels=string.split("."),encoded=map(labels,fn).join(".");return result+encoded}function ucs2decode(string){for(var value,extra,output=[],counter=0,length=string.length;length>counter;)value=string.charCodeAt(counter++),value>=55296&&56319>=value&&length>counter?(extra=string.charCodeAt(counter++),56320==(64512&extra)?output.push(((1023&value)<<10)+(1023&extra)+65536):(output.push(value),counter--)):output.push(value);return output}function ucs2encode(array){return map(array,function(value){var output="";return value>65535&&(value-=65536,output+=stringFromCharCode(value>>>10&1023|55296),value=56320|1023&value),output+=stringFromCharCode(value)}).join("")}function basicToDigit(codePoint){return 10>codePoint-48?codePoint-22:26>codePoint-65?codePoint-65:26>codePoint-97?codePoint-97:base}function digitToBasic(digit,flag){return digit+22+75*(26>digit)-((0!=flag)<<5)}function adapt(delta,numPoints,firstTime){var k=0;for(delta=firstTime?floor(delta/damp):delta>>1,delta+=floor(delta/numPoints);delta>baseMinusTMin*tMax>>1;k+=base)delta=floor(delta/baseMinusTMin);return floor(k+(baseMinusTMin+1)*delta/(delta+skew))}function decode(input){var out,basic,j,index,oldi,w,k,digit,t,baseMinusT,output=[],inputLength=input.length,i=0,n=initialN,bias=initialBias;for(basic=input.lastIndexOf(delimiter),0>basic&&(basic=0),j=0;basic>j;++j)input.charCodeAt(j)>=128&&error("not-basic"),output.push(input.charCodeAt(j));for(index=basic>0?basic+1:0;inputLength>index;){for(oldi=i,w=1,k=base;index>=inputLength&&error("invalid-input"),digit=basicToDigit(input.charCodeAt(index++)),(digit>=base||digit>floor((maxInt-i)/w))&&error("overflow"),i+=digit*w,t=bias>=k?tMin:k>=bias+tMax?tMax:k-bias,!(t>digit);k+=base)baseMinusT=base-t,w>floor(maxInt/baseMinusT)&&error("overflow"),w*=baseMinusT;out=output.length+1,bias=adapt(i-oldi,out,0==oldi),floor(i/out)>maxInt-n&&error("overflow"),n+=floor(i/out),i%=out,output.splice(i++,0,n)}return ucs2encode(output)}function encode(input){var n,delta,handledCPCount,basicLength,bias,j,m,q,k,t,currentValue,inputLength,handledCPCountPlusOne,baseMinusT,qMinusT,output=[];for(input=ucs2decode(input),inputLength=input.length,n=initialN,delta=0,bias=initialBias,j=0;inputLength>j;++j)currentValue=input[j],128>currentValue&&output.push(stringFromCharCode(currentValue));for(handledCPCount=basicLength=output.length,basicLength&&output.push(delimiter);inputLength>handledCPCount;){for(m=maxInt,j=0;inputLength>j;++j)currentValue=input[j],currentValue>=n&&m>currentValue&&(m=currentValue);for(handledCPCountPlusOne=handledCPCount+1,m-n>floor((maxInt-delta)/handledCPCountPlusOne)&&error("overflow"),delta+=(m-n)*handledCPCountPlusOne,n=m,j=0;inputLength>j;++j)if(currentValue=input[j],n>currentValue&&++delta>maxInt&&error("overflow"),currentValue==n){for(q=delta,k=base;t=bias>=k?tMin:k>=bias+tMax?tMax:k-bias,!(t>q);k+=base)qMinusT=q-t,baseMinusT=base-t,output.push(stringFromCharCode(digitToBasic(t+qMinusT%baseMinusT,0))),q=floor(qMinusT/baseMinusT);output.push(stringFromCharCode(digitToBasic(q,0))),bias=adapt(delta,handledCPCountPlusOne,handledCPCount==basicLength),delta=0,++handledCPCount}++delta,++n}return output.join("")}function toUnicode(input){return mapDomain(input,function(string){return regexPunycode.test(string)?decode(string.slice(4).toLowerCase()):string})}function toASCII(input){return mapDomain(input,function(string){return regexNonASCII.test(string)?"xn--"+encode(string):string})}var freeGlobal=("object"==typeof exports&&exports&&!exports.nodeType&&exports,"object"==typeof module&&module&&!module.nodeType&&module,"object"==typeof global&&global);(freeGlobal.global===freeGlobal||freeGlobal.window===freeGlobal||freeGlobal.self===freeGlobal)&&(root=freeGlobal);var punycode,maxInt=2147483647,base=36,tMin=1,tMax=26,skew=38,damp=700,initialBias=72,initialN=128,delimiter="-",regexPunycode=/^xn--/,regexNonASCII=/[^\x20-\x7E]/,regexSeparators=/[\x2E\u3002\uFF0E\uFF61]/g,errors={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},baseMinusTMin=base-tMin,floor=Math.floor,stringFromCharCode=String.fromCharCode;punycode={version:"1.3.2",ucs2:{decode:ucs2decode,encode:ucs2encode},decode:decode,encode:encode,toASCII:toASCII,toUnicode:toUnicode},__WEBPACK_AMD_DEFINE_RESULT__=function(){return punycode}.call(exports,__webpack_require__,exports,module),!(void 0!==__WEBPACK_AMD_DEFINE_RESULT__&&(module.exports=__WEBPACK_AMD_DEFINE_RESULT__))}(this)}).call(exports,__webpack_require__(334)(module),function(){return this}())},function(module,exports){(function(global){function deprecate(fn,msg){function deprecated(){if(!warned){if(config("throwDeprecation"))throw new Error(msg);config("traceDeprecation")?console.trace(msg):console.warn(msg),warned=!0}return fn.apply(this,arguments)}if(config("noDeprecation"))return fn;var warned=!1;return deprecated}function config(name){try{if(!global.localStorage)return!1}catch(_){return!1}var val=global.localStorage[name];return null==val?!1:"true"===String(val).toLowerCase()}module.exports=deprecate}).call(exports,function(){return this}())},function(module,exports){module.exports=function(arg){return arg&&"object"==typeof arg&&"function"==typeof arg.copy&&"function"==typeof arg.fill&&"function"==typeof arg.readUInt8}},function(module,exports,__webpack_require__){"use strict";module.exports={src:__webpack_require__(323),dest:__webpack_require__(312),symlink:__webpack_require__(325)}},function(module,exports,__webpack_require__){(function(process){"use strict";function dest(outFolder,opt){function saveFile(file,enc,cb){prepareWrite(outFolder,file,opt,function(err,writePath){return err?cb(err):void writeContents(writePath,file,cb)})}opt||(opt={});var saveStream=through2.obj(saveFile);if(!opt.sourcemaps)return saveStream;var mapStream=sourcemaps.write(opt.sourcemaps.path,opt.sourcemaps),outputStream=duplexify.obj(mapStream,saveStream);return mapStream.pipe(saveStream),outputStream}var through2=__webpack_require__(30),sourcemaps=process.browser?null:__webpack_require__(87),duplexify=__webpack_require__(37),prepareWrite=__webpack_require__(111),writeContents=__webpack_require__(313);module.exports=dest}).call(exports,__webpack_require__(2))},function(module,exports,__webpack_require__){"use strict";function writeContents(writePath,file,cb){function complete(err){cb(err,file)}function written(err){return isErrorFatal(err)?complete(err):!file.stat||"number"!=typeof file.stat.mode||file.symlink?complete():void fs.stat(writePath,function(err,st){if(err)return complete(err);var currentMode=st.mode&parseInt("0777",8),expectedMode=file.stat.mode&parseInt("0777",8);return currentMode===expectedMode?complete():void fs.chmod(writePath,expectedMode,complete)})}function isErrorFatal(err){return err?"EEXIST"===err.code&&"wx"===file.flag?!1:!0:!1}return file.isDirectory()?writeDir(writePath,file,written):file.isStream()?writeStream(writePath,file,written):file.symlink?writeSymbolicLink(writePath,file,written):file.isBuffer()?writeBuffer(writePath,file,written):file.isNull()?complete():void 0}var fs=__webpack_require__(6),writeDir=__webpack_require__(315),writeStream=__webpack_require__(316),writeBuffer=__webpack_require__(314),writeSymbolicLink=__webpack_require__(317);module.exports=writeContents},function(module,exports,__webpack_require__){(function(process){"use strict";function writeBuffer(writePath,file,cb){var opt={mode:file.stat.mode,flag:file.flag};fs.writeFile(writePath,file.contents,opt,cb)}var fs=__webpack_require__(process.browser?6:13);module.exports=writeBuffer}).call(exports,__webpack_require__(2))},function(module,exports,__webpack_require__){"use strict";function writeDir(writePath,file,cb){mkdirp(writePath,file.stat.mode,cb)}var mkdirp=__webpack_require__(94);module.exports=writeDir},function(module,exports,__webpack_require__){(function(process){"use strict";function writeStream(writePath,file,cb){function success(){streamFile(file,{},complete)}function complete(err){file.contents.removeListener("error",cb),outStream.removeListener("error",cb),outStream.removeListener("finish",success),cb(err)}var opt={mode:file.stat.mode,flag:file.flag},outStream=fs.createWriteStream(writePath,opt);file.contents.once("error",complete),outStream.once("error",complete),outStream.once("finish",success),file.contents.pipe(outStream)}var streamFile=__webpack_require__(112),fs=__webpack_require__(process.browser?6:13);module.exports=writeStream}).call(exports,__webpack_require__(2))},function(module,exports,__webpack_require__){(function(process){"use strict";function writeSymbolicLink(writePath,file,cb){fs.symlink(file.symlink,writePath,function(err){return err&&"EEXIST"!==err.code?cb(err):void cb(null,file)})}var fs=__webpack_require__(process.browser?6:13);module.exports=writeSymbolicLink}).call(exports,__webpack_require__(2))},function(module,exports,__webpack_require__){"use strict";var filter=__webpack_require__(108);module.exports=function(d){var isValid="number"==typeof d||d instanceof Number||d instanceof Date;if(!isValid)throw new Error("expected since option to be a date or a number");return filter.obj(function(file){return file.stat&&file.stat.mtime>d})}},function(module,exports,__webpack_require__){(function(process){"use strict";function bufferFile(file,opt,cb){fs.readFile(file.path,function(err,data){return err?cb(err):(opt.stripBOM?file.contents=stripBom(data):file.contents=data,void cb(null,file))})}var fs=__webpack_require__(process.browser?6:13),stripBom=__webpack_require__(64);module.exports=bufferFile}).call(exports,__webpack_require__(2))},function(module,exports,__webpack_require__){"use strict";function getContents(opt){return through2.obj(function(file,enc,cb){return file.isDirectory()?readDir(file,opt,cb):file.stat&&file.stat.isSymbolicLink()?readSymbolicLink(file,opt,cb):opt.buffer!==!1?bufferFile(file,opt,cb):streamFile(file,opt,cb)})}var through2=__webpack_require__(30),readDir=__webpack_require__(321),readSymbolicLink=__webpack_require__(322),bufferFile=__webpack_require__(319),streamFile=__webpack_require__(112);module.exports=getContents},function(module,exports){"use strict";function readDir(file,opt,cb){cb(null,file)}module.exports=readDir},function(module,exports,__webpack_require__){(function(process){"use strict";function readLink(file,opt,cb){fs.readlink(file.path,function(err,target){return err?cb(err):(file.symlink=target,cb(null,file))})}var fs=__webpack_require__(process.browser?6:13);module.exports=readLink}).call(exports,__webpack_require__(2))},function(module,exports,__webpack_require__){(function(process){"use strict";function createFile(globFile,enc,cb){cb(null,new File(globFile))}function src(glob,opt){var inputPass,options=assign({read:!0,buffer:!0,stripBOM:!0,sourcemaps:!1,passthrough:!1,followSymlinks:!0},opt);if(!isValidGlob(glob))throw new Error("Invalid glob argument: "+glob);var globStream=gs.create(glob,options),outputStream=globStream.pipe(resolveSymlinks(options)).pipe(through.obj(createFile));return null!=options.since&&(outputStream=outputStream.pipe(filterSince(options.since))),options.read!==!1&&(outputStream=outputStream.pipe(getContents(options))),options.passthrough===!0&&(inputPass=through.obj(),outputStream=duplexify.obj(inputPass,merge(outputStream,inputPass))),options.sourcemaps===!0&&(outputStream=outputStream.pipe(sourcemaps.init({loadMaps:!0}))),globStream.on("error",outputStream.emit.bind(outputStream,"error")),outputStream}var assign=__webpack_require__(97),through=__webpack_require__(30),gs=__webpack_require__(231),File=__webpack_require__(66),duplexify=__webpack_require__(37),merge=__webpack_require__(93),sourcemaps=process.browser?null:__webpack_require__(87),filterSince=__webpack_require__(318),isValidGlob=__webpack_require__(245),getContents=__webpack_require__(320),resolveSymlinks=__webpack_require__(324);module.exports=src}).call(exports,__webpack_require__(2))},function(module,exports,__webpack_require__){(function(process){"use strict";function resolveSymlinks(options){function resolveFile(globFile,enc,cb){fs.lstat(globFile.path,function(err,stat){return err?cb(err):(globFile.stat=stat,stat.isSymbolicLink()&&options.followSymlinks?void fs.realpath(globFile.path,function(err,filePath){return err?cb(err):(globFile.base=path.dirname(filePath),globFile.path=filePath,void resolveFile(globFile,enc,cb))}):cb(null,globFile))})}return through2.obj(resolveFile)}var through2=__webpack_require__(30),fs=__webpack_require__(process.browser?6:13),path=__webpack_require__(5);module.exports=resolveSymlinks}).call(exports,__webpack_require__(2))},function(module,exports,__webpack_require__){(function(process){"use strict";function symlink(outFolder,opt){function linkFile(file,enc,cb){var srcPath=file.path,symType=file.isDirectory()?"dir":"file";prepareWrite(outFolder,file,opt,function(err,writePath){return err?cb(err):void fs.symlink(srcPath,writePath,symType,function(err){return err&&"EEXIST"!==err.code?cb(err):void cb(null,file)})})}var stream=through2.obj(linkFile);return stream.resume(),stream}var through2=__webpack_require__(30),fs=__webpack_require__(process.browser?6:13),prepareWrite=__webpack_require__(111);module.exports=symlink}).call(exports,__webpack_require__(2))},function(module,exports,__webpack_require__){function collect(stream,cb){function get(name){return files.named[name]||(files.named[name]={children:[]}),files.named[name]}var files={paths:[],named:{},unnamed:[]};stream.on("data",function(file){if(null===cb)return void stream.on("data",function(){});if(file.path){var fo=get(file.path);fo.file=file;var po=get(Path.dirname(file.path));fo!==po&&po.children.push(fo),files.paths.push(file.path)}else files.unnamed.push({file:file,children:[]})}),stream.on("error",function(err){cb&&cb(err),cb=null}),stream.on("end",function(){cb&&cb(null,files),cb=null})}var Path=__webpack_require__(5);module.exports=collect},function(module,exports,__webpack_require__){var flat=__webpack_require__(328),tree=__webpack_require__(329),x=module.exports=tree;x.flat=flat,x.tree=tree},function(module,exports,__webpack_require__){function v2mpFlat(opts){opts=opts||{},opts.boundary=opts.boundary||randomString();var w=new stream.Writable({objectMode:!0}),r=new stream.PassThrough({objectMode:!0}),mp=new Multipart(opts.boundary);w._write=function(file,enc,cb){writePart(mp,file,cb)},w.on("finish",function(){mp.pipe(r)});var out=duplexify.obj(w,r);return out.boundary=opts.boundary,out}function writePart(mp,file,cb){var c=file.contents;null===c&&(c=emptyStream()),mp.addPart({body:file.contents,headers:headersForFile(file)}),cb(null)}function emptyStream(){var s=new stream.PassThrough({objectMode:!0});return s.write(null),s}function headersForFile(file){var fpath=common.cleanPath(file.path,file.base),h={};return h["Content-Disposition"]='file; filename="'+fpath+'"',file.isDirectory()?h["Content-Type"]="text/directory":h["Content-Type"]="application/octet-stream",h}function randomString(){return Math.random().toString(36).slice(2)+Math.random().toString(36).slice(2)+Math.random().toString(36).slice(2)+Math.random().toString(36).slice(2)}var Multipart=__webpack_require__(95),duplexify=__webpack_require__(37),stream=__webpack_require__(3),common=__webpack_require__(113);randomString=common.randomString,module.exports=v2mpFlat},function(module,exports,__webpack_require__){function v2mpTree(opts){opts=opts||{},opts.boundary=opts.boundary||randomString();var r=new stream.PassThrough({objectMode:!0}),w=new stream.PassThrough({objectMode:!0}),out=duplexify.obj(w,r);return out.boundary=opts.boundary,collect(w,function(err,files){if(err)return void r.emit("error",err);try{var mp=streamForCollection(opts.boundary,files);out.multipartHdr="Content-Type: multipart/mixed; boundary="+mp.boundary,opts.writeHeader&&(r.write(out.multipartHdr+"\r\n"),r.write("\r\n")),mp.pipe(r)}catch(e){r.emit("error",e)}}),out}function streamForCollection(boundary,files){var parts=[];files.paths.sort();for(var i=0;i"}}},function(module,exports,__webpack_require__){module.exports=__webpack_require__(1).Buffer.isBuffer},function(module,exports){module.exports=function(v){return null===v}},function(module,exports){module.exports=function(module){return module.webpackPolyfill||(module.deprecate=function(){},module.paths=[],module.children=[],module.webpackPolyfill=1),module}},function(module,exports){},function(module,exports){},function(module,exports){}]); \ No newline at end of file From 2150be59d6d23ff2044963cc0c9ab5ab0155ad61 Mon Sep 17 00:00:00 2001 From: David Dias Date: Tue, 1 Mar 2016 11:33:02 +0000 Subject: [PATCH 4/6] chore: release version v2.13.2 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 063d7d97b..243371072 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ipfs-api", - "version": "2.13.1", + "version": "2.13.2", "description": "A client library for the IPFS API", "main": "src/index.js", "dependencies": { From 86bc4fb47b73c287bdbe8c52c45c6a50b19b0d1f Mon Sep 17 00:00:00 2001 From: Francisco Baio Dias Date: Wed, 2 Mar 2016 22:29:11 +0000 Subject: [PATCH 5/6] Add symlink support --- src/get-files-stream.js | 48 +++++++++++++++++++++++++++---------- test/api/add.spec.js | 28 ++++++++++++++++++++-- test/api/ls.spec.js | 4 ++-- test/test-folder/hello-link | 1 + 4 files changed, 65 insertions(+), 16 deletions(-) create mode 120000 test/test-folder/hello-link diff --git a/src/get-files-stream.js b/src/get-files-stream.js index 9a2206f3d..ce9a69056 100644 --- a/src/get-files-stream.js +++ b/src/get-files-stream.js @@ -12,6 +12,8 @@ function headers (file) { if (file.dir) { header['Content-Type'] = 'application/x-directory' + } else if (file.symlink) { + header['Content-Type'] = 'application/symlink' } else { header['Content-Type'] = 'application/octet-stream' } @@ -46,20 +48,41 @@ function loadPaths (opts, file) { follow: followSymlinks }) - return mg.found.map((name) => { - if (mg.cache[name] === 'FILE') { - return { - path: strip(name, file), - dir: false, - content: fs.createReadStream(name) + return mg.found + .map((name) => { + // symlinks + if (mg.symlinks[name] === true) { + return { + path: strip(name, file), + symlink: true, + dir: false, + content: fs.readlinkSync(name) + } } - } else { - return { - path: strip(name, file), - dir: true + + // files + if (mg.cache[name] === 'FILE') { + return { + path: strip(name, file), + symlink: false, + dir: false, + content: fs.createReadStream(name) + } } - } - }) + + // directories + if (mg.cache[name] === 'DIR' || mg.cache[name] instanceof Array) { + return { + path: strip(name, file), + symlink: false, + dir: true + } + } + + // files inside symlinks and others + return + }) + .filter((file) => !!file) // filter out null files } return { @@ -88,6 +111,7 @@ function getFilesStream (files, opts) { return { path: '', + symlink: false, dir: false, content: file } diff --git a/test/api/add.spec.js b/test/api/add.spec.js index 35a535cbc..abf66e493 100644 --- a/test/api/add.spec.js +++ b/test/api/add.spec.js @@ -78,13 +78,37 @@ describe('.add', () => { }) }) - it('add a nested dir', (done) => { + it('add a nested dir following symlinks', (done) => { apiClients['a'].add(path.join(__dirname, '/../test-folder'), { recursive: true }, (err, res) => { if (isNode) { expect(err).to.not.exist const added = res[res.length - 1] - expect(added).to.have.property('Hash', 'QmTDH2RXGn8XyDAo9YyfbZAUXwL1FCr44YJCN9HBZmL9Gj') + expect(added).to.have.property('Hash', 'QmRNjDeKStKGTQXnJ2NFqeQ9oW23WcpbmvCVrpDHgDg3T6') + + // check that the symlink was replaced by the target file + const linkPath = 'test-folder/hello-link' + const filePath = 'test-folder/files/hello.txt' + const linkHash = res.filter((e) => e.Name === linkPath)[0].Hash + const fileHash = res.filter((e) => e.Name === filePath)[0].Hash + expect(linkHash).to.equal(fileHash) + + done() + } else { + expect(err.message).to.be.equal('Recursive uploads are not supported in the browser') + done() + } + }) + }) + + it('add a nested dir without following symlinks', (done) => { + apiClients['a'].add(path.join(__dirname, '/../test-folder'), { recursive: true, followSymlinks: false }, (err, res) => { + if (isNode) { + expect(err).to.not.exist + + const added = res[res.length - 1] + // same hash as the result from the cli (ipfs add test/test-folder -r) + expect(added).to.have.property('Hash', 'QmRArDYd8Rk7Zb7K2699KqmQM1uUoejn1chtEAcqkvjzGg') done() } else { expect(err.message).to.be.equal('Recursive uploads are not supported in the browser') diff --git a/test/api/ls.spec.js b/test/api/ls.spec.js index d2a823248..3e523bffb 100644 --- a/test/api/ls.spec.js +++ b/test/api/ls.spec.js @@ -27,7 +27,7 @@ describe('ls', function () { it('should correctly handle a nonexisting path', function (done) { if (!isNode) return done() - apiClients['a'].ls('QmTDH2RXGn8XyDAo9YyfbZAUXwL1FCr44YJCN9HBZmL9Gj/folder_that_isnt_there', (err, res) => { + apiClients['a'].ls('QmRNjDeKStKGTQXnJ2NFqeQ9oW23WcpbmvCVrpDHgDg3T6/folder_that_isnt_there', (err, res) => { expect(err).to.exist expect(res).to.not.exist done() @@ -56,7 +56,7 @@ describe('ls', function () { it('should correctly handle a nonexisting path', () => { if (!isNode) return - return apiClients['a'].ls('QmTDH2RXGn8XyDAo9YyfbZAUXwL1FCr44YJCN9HBZmL9Gj/folder_that_isnt_there') + return apiClients['a'].ls('QmRNjDeKStKGTQXnJ2NFqeQ9oW23WcpbmvCVrpDHgDg3T6/folder_that_isnt_there') .catch((err) => { expect(err).to.exist }) diff --git a/test/test-folder/hello-link b/test/test-folder/hello-link new file mode 120000 index 000000000..50b07e9e7 --- /dev/null +++ b/test/test-folder/hello-link @@ -0,0 +1 @@ +files/hello.txt \ No newline at end of file From 2b5472b74959b20f3dc08796528c2797483dd92e Mon Sep 17 00:00:00 2001 From: Francisco Baio Dias Date: Wed, 2 Mar 2016 22:54:19 +0000 Subject: [PATCH 6/6] Fix expect on content-type header test --- test/request-api.spec.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/request-api.spec.js b/test/request-api.spec.js index 788c32453..de30b78c0 100644 --- a/test/request-api.spec.js +++ b/test/request-api.spec.js @@ -55,7 +55,7 @@ describe('ipfsAPI request tests', () => { }).listen(6001, () => { ipfsAPI('/ip4/127.0.0.1/tcp/6001') .config.replace('test/r-config.json', (err) => { - expect(err).to.be.equal(null) + expect(err).to.not.exist server.close(done) }) })